summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorMichael Widenius <monty@mariadb.org>2018-03-09 14:05:35 +0200
committerMonty <monty@mariadb.org>2018-03-29 13:59:44 +0300
commita7abddeffa6a760ce948c2dfb007cdf3f1a369d5 (patch)
tree70eb743fa965a17380bbc0ac88ae79ca1075b896 /mysql-test/r
parentab1941266c59a19703a74b5593cf3f508a5752d7 (diff)
downloadmariadb-git-a7abddeffa6a760ce948c2dfb007cdf3f1a369d5.tar.gz
Create 'main' test directory and move 't' and 'r' there
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/1st.result40
-rw-r--r--mysql-test/r/aborted_clients.result16
-rw-r--r--mysql-test/r/adddate_454.result12
-rw-r--r--mysql-test/r/alias.result220
-rw-r--r--mysql-test/r/almost_full.result30
-rw-r--r--mysql-test/r/alter_table-big.result119
-rw-r--r--mysql-test/r/alter_table.result2326
-rw-r--r--mysql-test/r/alter_table_autoinc-5574.result11
-rw-r--r--mysql-test/r/alter_table_mdev539_maria.result253
-rw-r--r--mysql-test/r/alter_table_mdev539_myisam.result253
-rw-r--r--mysql-test/r/alter_table_online.result271
-rw-r--r--mysql-test/r/alter_table_trans.result26
-rw-r--r--mysql-test/r/alter_user.result93
-rw-r--r--mysql-test/r/analyze.result66
-rw-r--r--mysql-test/r/analyze_debug.result10
-rw-r--r--mysql-test/r/analyze_format_json.result820
-rw-r--r--mysql-test/r/analyze_stmt.result336
-rw-r--r--mysql-test/r/analyze_stmt_orderby.result597
-rw-r--r--mysql-test/r/analyze_stmt_privileges.result41
-rw-r--r--mysql-test/r/analyze_stmt_privileges2.result5237
-rw-r--r--mysql-test/r/analyze_stmt_slow_query_log.result18
-rw-r--r--mysql-test/r/ansi.result48
-rw-r--r--mysql-test/r/assign_key_cache-5405.result19
-rw-r--r--mysql-test/r/auth_named_pipe.result13
-rw-r--r--mysql-test/r/auth_rpl.result27
-rw-r--r--mysql-test/r/auto_increment.result539
-rw-r--r--mysql-test/r/auto_increment_ranges_innodb.result266
-rw-r--r--mysql-test/r/auto_increment_ranges_myisam.result272
-rw-r--r--mysql-test/r/bad_frm_crash_5029.result13
-rw-r--r--mysql-test/r/bench_count_distinct.result11
-rw-r--r--mysql-test/r/big_test.require2
-rw-r--r--mysql-test/r/bigint.result512
-rw-r--r--mysql-test/r/binary.result200
-rw-r--r--mysql-test/r/binary_to_hex.result121
-rw-r--r--mysql-test/r/blackhole.result26
-rw-r--r--mysql-test/r/blackhole_plugin.result20
-rw-r--r--mysql-test/r/bool.result88
-rw-r--r--mysql-test/r/bootstrap.result28
-rw-r--r--mysql-test/r/bug12427262.result56
-rw-r--r--mysql-test/r/bug13633383.result50
-rw-r--r--mysql-test/r/bug39022.result38
-rw-r--r--mysql-test/r/bug46760.result43
-rw-r--r--mysql-test/r/bug47671.result14
-rw-r--r--mysql-test/r/bug58669.result21
-rw-r--r--mysql-test/r/bulk_replace.result11
-rw-r--r--mysql-test/r/cache_innodb.result240
-rw-r--r--mysql-test/r/cache_temporal_4265.result23
-rw-r--r--mysql-test/r/case.result546
-rw-r--r--mysql-test/r/case_insensitive_file_system.require2
-rw-r--r--mysql-test/r/case_insensitive_fs.require2
-rw-r--r--mysql-test/r/case_sensitive_file_system.require2
-rw-r--r--mysql-test/r/cast.result1279
-rw-r--r--mysql-test/r/change_user.result103
-rw-r--r--mysql-test/r/change_user_notembedded.result10
-rw-r--r--mysql-test/r/check.result54
-rw-r--r--mysql-test/r/check_constraint.result158
-rw-r--r--mysql-test/r/check_constraint_show.result17
-rw-r--r--mysql-test/r/check_var_limit.require2
-rw-r--r--mysql-test/r/client_xml.result92
-rw-r--r--mysql-test/r/column_compression.result1362
-rw-r--r--mysql-test/r/column_compression_parts.result293
-rw-r--r--mysql-test/r/column_compression_rpl.result2250
-rw-r--r--mysql-test/r/comment_column.result415
-rw-r--r--mysql-test/r/comment_column2.result397
-rw-r--r--mysql-test/r/comment_index.result484
-rw-r--r--mysql-test/r/comment_table.result127
-rw-r--r--mysql-test/r/comments.result116
-rw-r--r--mysql-test/r/commit.result578
-rw-r--r--mysql-test/r/commit_1innodb.result893
-rw-r--r--mysql-test/r/compare.result102
-rw-r--r--mysql-test/r/compound.result172
-rw-r--r--mysql-test/r/compress.result2168
-rw-r--r--mysql-test/r/concurrent_innodb_safelog.result800
-rw-r--r--mysql-test/r/concurrent_innodb_unsafelog.result796
-rw-r--r--mysql-test/r/connect.result390
-rw-r--r--mysql-test/r/connect2.result73
-rw-r--r--mysql-test/r/consistent_snapshot.result44
-rw-r--r--mysql-test/r/constraints.result76
-rw-r--r--mysql-test/r/contributors.result22
-rw-r--r--mysql-test/r/count_distinct.result133
-rw-r--r--mysql-test/r/count_distinct2.result129
-rw-r--r--mysql-test/r/count_distinct3.result9
-rw-r--r--mysql-test/r/crash_commit_before.result14
-rw-r--r--mysql-test/r/create-big.result358
-rw-r--r--mysql-test/r/create-uca.result31
-rw-r--r--mysql-test/r/create.result2095
-rw-r--r--mysql-test/r/create_delayed.result3
-rw-r--r--mysql-test/r/create_drop_binlog.result393
-rw-r--r--mysql-test/r/create_drop_db.result40
-rw-r--r--mysql-test/r/create_drop_event.result48
-rw-r--r--mysql-test/r/create_drop_function.result54
-rw-r--r--mysql-test/r/create_drop_index.result44
-rw-r--r--mysql-test/r/create_drop_procedure.result47
-rw-r--r--mysql-test/r/create_drop_role.result79
-rw-r--r--mysql-test/r/create_drop_server.result46
-rw-r--r--mysql-test/r/create_drop_trigger.result36
-rw-r--r--mysql-test/r/create_drop_udf.result38
-rw-r--r--mysql-test/r/create_drop_user.result43
-rw-r--r--mysql-test/r/create_drop_view.result59
-rw-r--r--mysql-test/r/create_not_windows.result31
-rw-r--r--mysql-test/r/create_or_replace.result480
-rw-r--r--mysql-test/r/create_or_replace2.result27
-rw-r--r--mysql-test/r/create_or_replace_permission.result56
-rw-r--r--mysql-test/r/create_select_tmp.result20
-rw-r--r--mysql-test/r/create_user.result72
-rw-r--r--mysql-test/r/create_w_max_indexes_128.result1250
-rw-r--r--mysql-test/r/create_w_max_indexes_64.result783
-rw-r--r--mysql-test/r/cte_grant.result123
-rw-r--r--mysql-test/r/cte_nonrecursive.result1464
-rw-r--r--mysql-test/r/cte_recursive.result3340
-rw-r--r--mysql-test/r/ctype_ascii.result177
-rw-r--r--mysql-test/r/ctype_big5.result5374
-rw-r--r--mysql-test/r/ctype_binary.result3153
-rw-r--r--mysql-test/r/ctype_collate.result756
-rw-r--r--mysql-test/r/ctype_cp1250_ch.result914
-rw-r--r--mysql-test/r/ctype_cp1251.result3424
-rw-r--r--mysql-test/r/ctype_cp850.result14
-rw-r--r--mysql-test/r/ctype_cp932.result599
-rw-r--r--mysql-test/r/ctype_cp932_binlog_row.result21
-rw-r--r--mysql-test/r/ctype_cp932_binlog_stm.result20458
-rw-r--r--mysql-test/r/ctype_create.result110
-rw-r--r--mysql-test/r/ctype_errors.result51
-rw-r--r--mysql-test/r/ctype_eucjpms.result34470
-rw-r--r--mysql-test/r/ctype_euckr.result25970
-rw-r--r--mysql-test/r/ctype_filename.result23
-rw-r--r--mysql-test/r/ctype_filesystem.result11
-rw-r--r--mysql-test/r/ctype_gb2312.result5069
-rw-r--r--mysql-test/r/ctype_gbk.result6505
-rw-r--r--mysql-test/r/ctype_gbk_binlog.result27
-rw-r--r--mysql-test/r/ctype_gbk_export_import.result3903
-rw-r--r--mysql-test/r/ctype_hebrew.result11
-rw-r--r--mysql-test/r/ctype_latin1.result8847
-rw-r--r--mysql-test/r/ctype_latin1_de.result837
-rw-r--r--mysql-test/r/ctype_latin2.result846
-rw-r--r--mysql-test/r/ctype_latin2_ch.result1006
-rw-r--r--mysql-test/r/ctype_ldml.result3036
-rw-r--r--mysql-test/r/ctype_like_range.result4479
-rw-r--r--mysql-test/r/ctype_many.result1812
-rw-r--r--mysql-test/r/ctype_mb.result57
-rw-r--r--mysql-test/r/ctype_nopad_8bit.result12771
-rw-r--r--mysql-test/r/ctype_partitions.result51
-rw-r--r--mysql-test/r/ctype_recoding.result316
-rw-r--r--mysql-test/r/ctype_sjis.result19286
-rw-r--r--mysql-test/r/ctype_swe7.result3637
-rw-r--r--mysql-test/r/ctype_tis620.result4413
-rw-r--r--mysql-test/r/ctype_uca.result15379
-rw-r--r--mysql-test/r/ctype_uca_innodb.result254
-rw-r--r--mysql-test/r/ctype_uca_partitions.result86
-rw-r--r--mysql-test/r/ctype_ucs.result6326
-rw-r--r--mysql-test/r/ctype_ucs2_def.result35
-rw-r--r--mysql-test/r/ctype_ucs2_query_cache.result26
-rw-r--r--mysql-test/r/ctype_ucs2_uca.result590
-rw-r--r--mysql-test/r/ctype_ujis.result26775
-rw-r--r--mysql-test/r/ctype_ujis_ucs2.result19159
-rw-r--r--mysql-test/r/ctype_upgrade.result401
-rw-r--r--mysql-test/r/ctype_utf16.result2781
-rw-r--r--mysql-test/r/ctype_utf16_def.result10
-rw-r--r--mysql-test/r/ctype_utf16_uca.result7897
-rw-r--r--mysql-test/r/ctype_utf16le.result2961
-rw-r--r--mysql-test/r/ctype_utf32.result2837
-rw-r--r--mysql-test/r/ctype_utf32_uca.result7917
-rw-r--r--mysql-test/r/ctype_utf8.result11281
-rw-r--r--mysql-test/r/ctype_utf8_uca.result589
-rw-r--r--mysql-test/r/ctype_utf8mb4.result4092
-rw-r--r--mysql-test/r/ctype_utf8mb4_heap.result2567
-rw-r--r--mysql-test/r/ctype_utf8mb4_innodb.result2710
-rw-r--r--mysql-test/r/ctype_utf8mb4_myisam.result2719
-rw-r--r--mysql-test/r/ctype_utf8mb4_uca.result6607
-rw-r--r--mysql-test/r/custom_aggregate_functions.result949
-rw-r--r--mysql-test/r/date_formats.result575
-rw-r--r--mysql-test/r/datetime_456.result8
-rw-r--r--mysql-test/r/ddl_i18n_koi8r.result2834
-rw-r--r--mysql-test/r/ddl_i18n_utf8.result2834
-rw-r--r--mysql-test/r/deadlock_innodb.result127
-rw-r--r--mysql-test/r/debug_sync.result295
-rw-r--r--mysql-test/r/default.result3382
-rw-r--r--mysql-test/r/default_debug.result21
-rw-r--r--mysql-test/r/default_session.result94
-rw-r--r--mysql-test/r/default_storage_engine.result1
-rw-r--r--mysql-test/r/delayed.result512
-rw-r--r--mysql-test/r/delete.result527
-rw-r--r--mysql-test/r/delete_returning.result213
-rw-r--r--mysql-test/r/delete_returning_grant.result83
-rw-r--r--mysql-test/r/delete_use_source.result154
-rw-r--r--mysql-test/r/delimiter_command_case_sensitivity.result2
-rw-r--r--mysql-test/r/deprecated_features.result24
-rw-r--r--mysql-test/r/derived.result1164
-rw-r--r--mysql-test/r/derived_cond_pushdown.result14947
-rw-r--r--mysql-test/r/derived_opt.result507
-rw-r--r--mysql-test/r/derived_view.result2981
-rw-r--r--mysql-test/r/dirty_close.result36
-rw-r--r--mysql-test/r/distinct.result1042
-rw-r--r--mysql-test/r/drop-no_root.result28
-rw-r--r--mysql-test/r/drop.result232
-rw-r--r--mysql-test/r/drop_bad_db_type.result33
-rw-r--r--mysql-test/r/dyncol.result1958
-rw-r--r--mysql-test/r/empty_server_name-8224.result2
-rw-r--r--mysql-test/r/empty_string_literal.result181
-rw-r--r--mysql-test/r/empty_table.result18
-rw-r--r--mysql-test/r/empty_user_table.result9
-rw-r--r--mysql-test/r/endspace.result220
-rw-r--r--mysql-test/r/enforce_storage_engine.result162
-rw-r--r--mysql-test/r/enforce_storage_engine_opt.result15
-rw-r--r--mysql-test/r/engine_error_in_alter-8453.result6
-rw-r--r--mysql-test/r/error_simulation.result132
-rw-r--r--mysql-test/r/errors.result184
-rw-r--r--mysql-test/r/events_1.result502
-rw-r--r--mysql-test/r/events_2.result409
-rw-r--r--mysql-test/r/events_bugs.result816
-rw-r--r--mysql-test/r/events_embedded.result2
-rw-r--r--mysql-test/r/events_grant.result137
-rw-r--r--mysql-test/r/events_logs_tests.result72
-rw-r--r--mysql-test/r/events_microsec.result13
-rw-r--r--mysql-test/r/events_restart.result106
-rw-r--r--mysql-test/r/events_scheduling.result105
-rw-r--r--mysql-test/r/events_slowlog.result13
-rw-r--r--mysql-test/r/events_stress.result78
-rw-r--r--mysql-test/r/events_time_zone.result152
-rw-r--r--mysql-test/r/events_trans.result139
-rw-r--r--mysql-test/r/events_trans_notembedded.result49
-rw-r--r--mysql-test/r/except.result537
-rw-r--r--mysql-test/r/execution_constants.result12
-rw-r--r--mysql-test/r/explain.result409
-rw-r--r--mysql-test/r/explain_json.result1646
-rw-r--r--mysql-test/r/explain_json_format_partitions.result86
-rw-r--r--mysql-test/r/explain_json_innodb.result57
-rw-r--r--mysql-test/r/explain_non_select.result275
-rw-r--r--mysql-test/r/explain_slowquerylog.result56
-rw-r--r--mysql-test/r/ext_key_noPK_6794.result20
-rw-r--r--mysql-test/r/failed_auth_3909.result24
-rw-r--r--mysql-test/r/failed_auth_unixsocket.result13
-rw-r--r--mysql-test/r/fast_prefix_index_fetch_innodb.result401
-rw-r--r--mysql-test/r/features.result169
-rw-r--r--mysql-test/r/file_contents.result6
-rw-r--r--mysql-test/r/filesort_bad_i_s-7585.result9
-rw-r--r--mysql-test/r/filesort_debug.result81
-rw-r--r--mysql-test/r/fix_priv_tables.result37
-rw-r--r--mysql-test/r/flush-innodb-notembedded.result40
-rw-r--r--mysql-test/r/flush-innodb.result305
-rw-r--r--mysql-test/r/flush.result544
-rw-r--r--mysql-test/r/flush2.result38
-rw-r--r--mysql-test/r/flush_block_commit.result68
-rw-r--r--mysql-test/r/flush_block_commit_notembedded.result36
-rw-r--r--mysql-test/r/flush_read_lock.result1679
-rw-r--r--mysql-test/r/flush_read_lock_kill.result42
-rw-r--r--mysql-test/r/flush_table.result140
-rw-r--r--mysql-test/r/foreign_key.result84
-rw-r--r--mysql-test/r/frm_bad_row_type-7333.result14
-rw-r--r--mysql-test/r/fulltext.result778
-rw-r--r--mysql-test/r/fulltext2.result251
-rw-r--r--mysql-test/r/fulltext3.result29
-rw-r--r--mysql-test/r/fulltext_cache.result68
-rw-r--r--mysql-test/r/fulltext_charsets.result7
-rw-r--r--mysql-test/r/fulltext_derived_4257.result6
-rw-r--r--mysql-test/r/fulltext_derived_4316.result8
-rw-r--r--mysql-test/r/fulltext_distinct.result43
-rw-r--r--mysql-test/r/fulltext_left_join.result113
-rw-r--r--mysql-test/r/fulltext_multi.result29
-rw-r--r--mysql-test/r/fulltext_order_by.result176
-rw-r--r--mysql-test/r/fulltext_update.result22
-rw-r--r--mysql-test/r/fulltext_var.result38
-rw-r--r--mysql-test/r/func_analyse.result173
-rw-r--r--mysql-test/r/func_compress.result216
-rw-r--r--mysql-test/r/func_concat.result270
-rw-r--r--mysql-test/r/func_crypt.result216
-rw-r--r--mysql-test/r/func_date_add.result202
-rw-r--r--mysql-test/r/func_debug.result1657
-rw-r--r--mysql-test/r/func_default.result34
-rw-r--r--mysql-test/r/func_des_encrypt.result37
-rw-r--r--mysql-test/r/func_digest.result1483
-rw-r--r--mysql-test/r/func_encrypt.result236
-rw-r--r--mysql-test/r/func_encrypt_nossl.result98
-rw-r--r--mysql-test/r/func_encrypt_ucs2.result19
-rw-r--r--mysql-test/r/func_equal.result45
-rw-r--r--mysql-test/r/func_gconcat.result1382
-rw-r--r--mysql-test/r/func_group.result2491
-rw-r--r--mysql-test/r/func_group_innodb.result249
-rw-r--r--mysql-test/r/func_hybrid_type.result3757
-rw-r--r--mysql-test/r/func_if.result250
-rw-r--r--mysql-test/r/func_in.result911
-rw-r--r--mysql-test/r/func_int.result134
-rw-r--r--mysql-test/r/func_isnull.result110
-rw-r--r--mysql-test/r/func_json.result770
-rw-r--r--mysql-test/r/func_like.result291
-rw-r--r--mysql-test/r/func_math.result902
-rw-r--r--mysql-test/r/func_misc.result1553
-rw-r--r--mysql-test/r/func_op.result51
-rw-r--r--mysql-test/r/func_regexp.result165
-rw-r--r--mysql-test/r/func_regexp_pcre.result930
-rw-r--r--mysql-test/r/func_regexp_pcre_debug.result10
-rw-r--r--mysql-test/r/func_rollback.result457
-rw-r--r--mysql-test/r/func_sapdb.result316
-rw-r--r--mysql-test/r/func_set.result231
-rw-r--r--mysql-test/r/func_str.result4926
-rw-r--r--mysql-test/r/func_system.result97
-rw-r--r--mysql-test/r/func_test.result439
-rw-r--r--mysql-test/r/func_time.result3486
-rw-r--r--mysql-test/r/func_time_hires.result208
-rw-r--r--mysql-test/r/func_timestamp.result13
-rw-r--r--mysql-test/r/func_weight_string.result172
-rw-r--r--mysql-test/r/function_defaults.result3095
-rw-r--r--mysql-test/r/function_defaults_innodb.result3096
-rw-r--r--mysql-test/r/function_defaults_notembedded.result185
-rw-r--r--mysql-test/r/gcc296.result20
-rw-r--r--mysql-test/r/get_diagnostics.result795
-rw-r--r--mysql-test/r/gis-alter_table_online.result51
-rw-r--r--mysql-test/r/gis-debug.result407
-rw-r--r--mysql-test/r/gis-json.result109
-rw-r--r--mysql-test/r/gis-loaddata.result25
-rw-r--r--mysql-test/r/gis-precise.result801
-rw-r--r--mysql-test/r/gis-rt-precise.result84
-rw-r--r--mysql-test/r/gis-rtree.result1630
-rw-r--r--mysql-test/r/gis.result4922
-rw-r--r--mysql-test/r/gis2.result38
-rw-r--r--mysql-test/r/grant.result2734
-rw-r--r--mysql-test/r/grant2.result948
-rw-r--r--mysql-test/r/grant3.result198
-rw-r--r--mysql-test/r/grant4.result226
-rw-r--r--mysql-test/r/grant5.result20
-rw-r--r--mysql-test/r/grant_4332.result35
-rw-r--r--mysql-test/r/grant_cache_no_prot.result249
-rw-r--r--mysql-test/r/grant_cache_ps_prot.result249
-rw-r--r--mysql-test/r/grant_explain_non_select.result214
-rw-r--r--mysql-test/r/grant_lowercase.result25
-rw-r--r--mysql-test/r/grant_lowercase_fs.result23
-rw-r--r--mysql-test/r/greedy_optimizer.result739
-rw-r--r--mysql-test/r/group_by.result2834
-rw-r--r--mysql-test/r/group_by_innodb.result171
-rw-r--r--mysql-test/r/group_by_null.result6
-rw-r--r--mysql-test/r/group_min_max.result3897
-rw-r--r--mysql-test/r/group_min_max_innodb.result304
-rw-r--r--mysql-test/r/handler_read_last.result68
-rw-r--r--mysql-test/r/handlersocket.result14
-rw-r--r--mysql-test/r/have_compress.require2
-rw-r--r--mysql-test/r/have_geometry.require2
-rw-r--r--mysql-test/r/have_local_infile.require2
-rw-r--r--mysql-test/r/have_log_bin.require2
-rw-r--r--mysql-test/r/have_met_timezone.require2
-rw-r--r--mysql-test/r/have_moscow_leap_timezone.require2
-rw-r--r--mysql-test/r/have_outfile.require3
-rw-r--r--mysql-test/r/have_perror.require2
-rw-r--r--mysql-test/r/have_pool_of_threads.require2
-rw-r--r--mysql-test/r/have_profiling.require2
-rw-r--r--mysql-test/r/have_query_cache.require2
-rw-r--r--mysql-test/r/have_symlink.require2
-rw-r--r--mysql-test/r/have_utf16.require2
-rw-r--r--mysql-test/r/have_utf32.require2
-rw-r--r--mysql-test/r/have_utf8mb4.require2
-rw-r--r--mysql-test/r/have_working_dns.require2
-rw-r--r--mysql-test/r/having.result831
-rw-r--r--mysql-test/r/help.result285
-rw-r--r--mysql-test/r/host_cache_size_functionality.result78
-rw-r--r--mysql-test/r/huge_frm-6224.result1
-rw-r--r--mysql-test/r/implicit_char_to_num_conversion.result366
-rw-r--r--mysql-test/r/implicit_commit.result1067
-rw-r--r--mysql-test/r/in_datetime_241.result5
-rw-r--r--mysql-test/r/index_intersect.result1043
-rw-r--r--mysql-test/r/index_intersect_innodb.result1045
-rw-r--r--mysql-test/r/index_merge_innodb.result830
-rw-r--r--mysql-test/r/index_merge_myisam.result1717
-rw-r--r--mysql-test/r/information_schema-big.result117
-rw-r--r--mysql-test/r/information_schema.result2191
-rw-r--r--mysql-test/r/information_schema2.result20
-rw-r--r--mysql-test/r/information_schema_all_engines.result457
-rw-r--r--mysql-test/r/information_schema_chmod.result5
-rw-r--r--mysql-test/r/information_schema_db.result246
-rw-r--r--mysql-test/r/information_schema_inno.result109
-rw-r--r--mysql-test/r/information_schema_linux.result10
-rw-r--r--mysql-test/r/information_schema_parameters.result628
-rw-r--r--mysql-test/r/information_schema_part.result161
-rw-r--r--mysql-test/r/information_schema_routines.result853
-rw-r--r--mysql-test/r/information_schema_stats.result70
-rw-r--r--mysql-test/r/init_connect.result203
-rw-r--r--mysql-test/r/init_connection_query_cache.result23
-rw-r--r--mysql-test/r/init_file.result21
-rw-r--r--mysql-test/r/init_file_longline_3816.result3
-rw-r--r--mysql-test/r/init_file_set_password-7656.result8
-rw-r--r--mysql-test/r/innodb_bug878769.result57
-rw-r--r--mysql-test/r/innodb_ext_key.result1210
-rw-r--r--mysql-test/r/innodb_group.result13
-rw-r--r--mysql-test/r/innodb_icp.result949
-rw-r--r--mysql-test/r/innodb_ignore_builtin.result6
-rw-r--r--mysql-test/r/innodb_load_xa.result18
-rw-r--r--mysql-test/r/innodb_mrr_cpk.result238
-rw-r--r--mysql-test/r/innodb_mysql_lock.result169
-rw-r--r--mysql-test/r/innodb_mysql_lock2.result703
-rw-r--r--mysql-test/r/innodb_mysql_sync.result569
-rw-r--r--mysql-test/r/innodb_utf8.result10
-rw-r--r--mysql-test/r/insert.result753
-rw-r--r--mysql-test/r/insert_innodb.result45
-rw-r--r--mysql-test/r/insert_notembedded.result123
-rw-r--r--mysql-test/r/insert_select.result858
-rw-r--r--mysql-test/r/insert_update.result414
-rw-r--r--mysql-test/r/insert_update_autoinc-7150.result9
-rw-r--r--mysql-test/r/intersect.result775
-rw-r--r--mysql-test/r/invisible_binlog.result65
-rw-r--r--mysql-test/r/invisible_field.result553
-rw-r--r--mysql-test/r/invisible_field_debug.result371
-rw-r--r--mysql-test/r/ipv4_and_ipv6.result64
-rw-r--r--mysql-test/r/ipv4_as_ipv6.result197
-rw-r--r--mysql-test/r/ipv6.result97
-rw-r--r--mysql-test/r/join.result1559
-rw-r--r--mysql-test/r/join_cache.result6019
-rw-r--r--mysql-test/r/join_crash.result103
-rw-r--r--mysql-test/r/join_nested.result1968
-rw-r--r--mysql-test/r/join_nested_jcl6.result2091
-rw-r--r--mysql-test/r/join_optimizer.result37
-rw-r--r--mysql-test/r/join_outer.result2464
-rw-r--r--mysql-test/r/join_outer_innodb.result500
-rw-r--r--mysql-test/r/join_outer_jcl6.result2482
-rw-r--r--mysql-test/r/key.result641
-rw-r--r--mysql-test/r/key_cache.result836
-rw-r--r--mysql-test/r/key_diff.result52
-rw-r--r--mysql-test/r/key_primary.result20
-rw-r--r--mysql-test/r/keyread.result6
-rw-r--r--mysql-test/r/keywords.result360
-rw-r--r--mysql-test/r/kill-2.result12
-rw-r--r--mysql-test/r/kill.result401
-rw-r--r--mysql-test/r/kill_processlist-6619.result18
-rw-r--r--mysql-test/r/kill_query-6728.result7
-rw-r--r--mysql-test/r/last_value.result73
-rw-r--r--mysql-test/r/limit.result148
-rw-r--r--mysql-test/r/limit_rows_examined.result865
-rw-r--r--mysql-test/r/loaddata.result637
-rw-r--r--mysql-test/r/loaddata_autocom_innodb.result21
-rw-r--r--mysql-test/r/loadxml.result156
-rw-r--r--mysql-test/r/locale.result308
-rw-r--r--mysql-test/r/lock.result491
-rw-r--r--mysql-test/r/lock_multi.result611
-rw-r--r--mysql-test/r/lock_multi_bug38499.result33
-rw-r--r--mysql-test/r/lock_multi_bug38691.result27
-rw-r--r--mysql-test/r/lock_sync.result857
-rw-r--r--mysql-test/r/lock_tables_lost_commit.result15
-rw-r--r--mysql-test/r/locked_temporary-5955.result4
-rw-r--r--mysql-test/r/log_errchk.result11
-rw-r--r--mysql-test/r/log_slow.result79
-rw-r--r--mysql-test/r/log_state.result284
-rw-r--r--mysql-test/r/log_state_bug33693.result3
-rw-r--r--mysql-test/r/log_tables-big.result40
-rw-r--r--mysql-test/r/log_tables.result959
-rw-r--r--mysql-test/r/log_tables_debug.result24
-rw-r--r--mysql-test/r/log_tables_upgrade.result64
-rw-r--r--mysql-test/r/long_tmpdir.result3
-rw-r--r--mysql-test/r/lowercase0.require2
-rw-r--r--mysql-test/r/lowercase1.require2
-rw-r--r--mysql-test/r/lowercase2.require2
-rw-r--r--mysql-test/r/lowercase_fs_off.result91
-rw-r--r--mysql-test/r/lowercase_fs_on.result4
-rw-r--r--mysql-test/r/lowercase_mixed_tmpdir.result6
-rw-r--r--mysql-test/r/lowercase_mixed_tmpdir_innodb.result6
-rw-r--r--mysql-test/r/lowercase_table.result129
-rw-r--r--mysql-test/r/lowercase_table2.result336
-rw-r--r--mysql-test/r/lowercase_table4.result118
-rw-r--r--mysql-test/r/lowercase_table5.result13
-rw-r--r--mysql-test/r/lowercase_table_grant.result24
-rw-r--r--mysql-test/r/lowercase_table_qcache.result27
-rw-r--r--mysql-test/r/lowercase_utf8.result9
-rw-r--r--mysql-test/r/lowercase_view.result93
-rw-r--r--mysql-test/r/max_statement_time.result183
-rw-r--r--mysql-test/r/mdev-504.result24
-rw-r--r--mysql-test/r/mdev13607.result469
-rw-r--r--mysql-test/r/mdev316.result22
-rw-r--r--mysql-test/r/mdev375.result20
-rw-r--r--mysql-test/r/mdev6830.result48
-rw-r--r--mysql-test/r/mdev_14586.result44
-rw-r--r--mysql-test/r/mdl.result22
-rw-r--r--mysql-test/r/mdl_sync.result3069
-rw-r--r--mysql-test/r/merge-big.result28
-rw-r--r--mysql-test/r/merge.result3914
-rw-r--r--mysql-test/r/merge_debug.result27
-rw-r--r--mysql-test/r/merge_innodb.result70
-rw-r--r--mysql-test/r/merge_mmap.result190
-rw-r--r--mysql-test/r/metadata.result804
-rw-r--r--mysql-test/r/mix2_myisam.result2203
-rw-r--r--mysql-test/r/mix2_myisam_ucs2.result312
-rw-r--r--mysql-test/r/mrr_derived_crash_4610.result19
-rw-r--r--mysql-test/r/mrr_icp_extra.result898
-rw-r--r--mysql-test/r/multi_statement.result51
-rw-r--r--mysql-test/r/multi_update.result970
-rw-r--r--mysql-test/r/multi_update2.result25
-rw-r--r--mysql-test/r/multi_update_binlog.result61
-rw-r--r--mysql-test/r/multi_update_innodb.result153
-rw-r--r--mysql-test/r/multi_update_tiny_hash.result45
-rw-r--r--mysql-test/r/myisam-big.result46
-rw-r--r--mysql-test/r/myisam-blob.result47
-rw-r--r--mysql-test/r/myisam-optimize.result83
-rw-r--r--mysql-test/r/myisam-system.result19
-rw-r--r--mysql-test/r/myisam.result2671
-rw-r--r--mysql-test/r/myisam_crash_before_flush_keys.result30
-rw-r--r--mysql-test/r/myisam_debug.result43
-rw-r--r--mysql-test/r/myisam_enable_keys-10506.result115
-rw-r--r--mysql-test/r/myisam_explain_non_select_all.result2929
-rw-r--r--mysql-test/r/myisam_icp.result986
-rw-r--r--mysql-test/r/myisam_icp_notembedded.result22
-rw-r--r--mysql-test/r/myisam_mrr.result639
-rw-r--r--mysql-test/r/myisam_optimize.result45
-rw-r--r--mysql-test/r/myisam_recover.result154
-rw-r--r--mysql-test/r/myisampack.result213
-rw-r--r--mysql-test/r/mysql-bug41486.result19
-rw-r--r--mysql-test/r/mysql-bug45236.result11
-rw-r--r--mysql-test/r/mysql.result604
-rw-r--r--mysql-test/r/mysql5613mysql.result302
-rw-r--r--mysql-test/r/mysql57_virtual.result38
-rw-r--r--mysql-test/r/mysql_binary_mode.result50
-rw-r--r--mysql-test/r/mysql_client_test.result126
-rw-r--r--mysql-test/r/mysql_client_test_comp.result5
-rw-r--r--mysql-test/r/mysql_client_test_nonblock.result7
-rw-r--r--mysql-test/r/mysql_comments.result64
-rw-r--r--mysql-test/r/mysql_cp932.result10
-rw-r--r--mysql-test/r/mysql_embedded.result5
-rw-r--r--mysql-test/r/mysql_locale_posix.result72
-rw-r--r--mysql-test/r/mysql_not_windows.result11
-rw-r--r--mysql-test/r/mysql_protocols.result10
-rw-r--r--mysql-test/r/mysql_tzinfo_to_sql_symlink.result91
-rw-r--r--mysql-test/r/mysql_upgrade-6984.result68
-rw-r--r--mysql-test/r/mysql_upgrade.result592
-rw-r--r--mysql-test/r/mysql_upgrade_no_innodb.result57
-rw-r--r--mysql-test/r/mysql_upgrade_noengine.result308
-rw-r--r--mysql-test/r/mysql_upgrade_ssl.result49
-rw-r--r--mysql-test/r/mysql_upgrade_view.result403
-rw-r--r--mysql-test/r/mysqladmin.result19
-rw-r--r--mysql-test/r/mysqlbinlog-innodb.result85
-rw-r--r--mysql-test/r/mysqlbinlog.result1259
-rw-r--r--mysql-test/r/mysqlbinlog_raw_mode.result274
-rw-r--r--mysql-test/r/mysqlbinlog_row_big.result101
-rw-r--r--mysql-test/r/mysqlbinlog_row_compressed.result485
-rw-r--r--mysql-test/r/mysqlbinlog_row_minimal.result332
-rw-r--r--mysql-test/r/mysqlbinlog_stmt_compressed.result207
-rw-r--r--mysql-test/r/mysqlcheck.result483
-rw-r--r--mysql-test/r/mysqld--defaults-file.result12
-rw-r--r--mysql-test/r/mysqld--help,win.rdiff124
-rw-r--r--mysql-test/r/mysqld--help.result1687
-rw-r--r--mysql-test/r/mysqld_help_crash-9183.result3
-rw-r--r--mysql-test/r/mysqld_option_err.result8
-rw-r--r--mysql-test/r/mysqldump-compat.result4
-rw-r--r--mysql-test/r/mysqldump-max.result352
-rw-r--r--mysql-test/r/mysqldump-nl.result169
-rw-r--r--mysql-test/r/mysqldump-no-binlog.result1
-rw-r--r--mysql-test/r/mysqldump.result5830
-rw-r--r--mysql-test/r/mysqldump_restore.result110
-rw-r--r--mysql-test/r/mysqlhotcopy_myisam.result164
-rw-r--r--mysql-test/r/mysqlshow.result78
-rw-r--r--mysql-test/r/mysqlslap.result257
-rw-r--r--mysql-test/r/mysqltest.result992
-rw-r--r--mysql-test/r/mysqltest_256.result1
-rw-r--r--mysql-test/r/mysqltest_cont_on_error.result7
-rw-r--r--mysql-test/r/mysqltest_ps.result34
-rw-r--r--mysql-test/r/named_pipe.result2160
-rw-r--r--mysql-test/r/negation_elimination.result506
-rw-r--r--mysql-test/r/no-threads.result13
-rw-r--r--mysql-test/r/no_binlog.result2
-rw-r--r--mysql-test/r/no_password_column-mdev-11170.result169
-rw-r--r--mysql-test/r/non_blocking_api.result14
-rw-r--r--mysql-test/r/not_embedded_server.result137
-rw-r--r--mysql-test/r/not_partition.result101
-rw-r--r--mysql-test/r/not_staging.require2
-rw-r--r--mysql-test/r/not_true.require2
-rw-r--r--mysql-test/r/not_valgrind.require2
-rw-r--r--mysql-test/r/null.result1864
-rw-r--r--mysql-test/r/null_key.result466
-rw-r--r--mysql-test/r/odbc.result29
-rw-r--r--mysql-test/r/olap.result818
-rw-r--r--mysql-test/r/old-mode.result182
-rw-r--r--mysql-test/r/one_thread_per_connection.require2
-rw-r--r--mysql-test/r/openssl_1.result231
-rw-r--r--mysql-test/r/openssl_6975,tlsv10.result27
-rw-r--r--mysql-test/r/openssl_6975,tlsv12.result27
-rw-r--r--mysql-test/r/opt_tvc.result658
-rw-r--r--mysql-test/r/order_by-mdev-10122.result127
-rw-r--r--mysql-test/r/order_by.result3255
-rw-r--r--mysql-test/r/order_by_innodb.result123
-rw-r--r--mysql-test/r/order_by_optimizer.result30
-rw-r--r--mysql-test/r/order_by_optimizer_innodb.result98
-rw-r--r--mysql-test/r/order_by_sortkey.result161
-rw-r--r--mysql-test/r/order_by_zerolength-4285.result27
-rw-r--r--mysql-test/r/order_fill_sortbuf.result11
-rw-r--r--mysql-test/r/outfile.resultbin2323 -> 0 bytes
-rw-r--r--mysql-test/r/outfile_loaddata.result270
-rw-r--r--mysql-test/r/overflow.result6
-rw-r--r--mysql-test/r/packet.result38
-rw-r--r--mysql-test/r/parser.result1351
-rw-r--r--mysql-test/r/parser_bug21114_innodb.result867
-rw-r--r--mysql-test/r/parser_not_embedded.result104
-rw-r--r--mysql-test/r/parser_precedence.result748
-rw-r--r--mysql-test/r/parser_stack.result306
-rw-r--r--mysql-test/r/partition.result2663
-rw-r--r--mysql-test/r/partition_alter.result129
-rw-r--r--mysql-test/r/partition_binlog.result54
-rw-r--r--mysql-test/r/partition_binlog_stmt.result13
-rw-r--r--mysql-test/r/partition_blackhole.result7
-rw-r--r--mysql-test/r/partition_bug18198.result173
-rw-r--r--mysql-test/r/partition_cache.result211
-rw-r--r--mysql-test/r/partition_cache_innodb.result154
-rw-r--r--mysql-test/r/partition_cache_myisam.result156
-rw-r--r--mysql-test/r/partition_charset.result22
-rw-r--r--mysql-test/r/partition_column.result672
-rw-r--r--mysql-test/r/partition_column_prune.result66
-rw-r--r--mysql-test/r/partition_csv.result58
-rw-r--r--mysql-test/r/partition_datatype.result1353
-rw-r--r--mysql-test/r/partition_debug_sync.result66
-rw-r--r--mysql-test/r/partition_default.result1267
-rw-r--r--mysql-test/r/partition_disabled.result108
-rw-r--r--mysql-test/r/partition_error.result1868
-rw-r--r--mysql-test/r/partition_example.result31
-rw-r--r--mysql-test/r/partition_exchange.result1299
-rw-r--r--mysql-test/r/partition_explicit_prune.result1872
-rw-r--r--mysql-test/r/partition_grant.result51
-rw-r--r--mysql-test/r/partition_hash.result202
-rw-r--r--mysql-test/r/partition_innodb.result927
-rw-r--r--mysql-test/r/partition_innodb_plugin.result156
-rw-r--r--mysql-test/r/partition_innodb_semi_consistent.result161
-rw-r--r--mysql-test/r/partition_innodb_stmt.result50
-rw-r--r--mysql-test/r/partition_key_cache.result442
-rw-r--r--mysql-test/r/partition_list.result336
-rw-r--r--mysql-test/r/partition_mgm.result95
-rw-r--r--mysql-test/r/partition_mgm_err.result160
-rw-r--r--mysql-test/r/partition_mgm_err2.result2
-rw-r--r--mysql-test/r/partition_myisam.result262
-rw-r--r--mysql-test/r/partition_not_blackhole.result16
-rw-r--r--mysql-test/r/partition_not_windows.result97
-rw-r--r--mysql-test/r/partition_open_files_limit.result22
-rw-r--r--mysql-test/r/partition_order.result785
-rw-r--r--mysql-test/r/partition_pruning.result3486
-rw-r--r--mysql-test/r/partition_range.result984
-rw-r--r--mysql-test/r/partition_rename_longfilename.result66
-rw-r--r--mysql-test/r/partition_symlink.result179
-rw-r--r--mysql-test/r/partition_sync.result63
-rw-r--r--mysql-test/r/partition_truncate.result26
-rw-r--r--mysql-test/r/partition_utf8.result53
-rw-r--r--mysql-test/r/partition_windows.result30
-rw-r--r--mysql-test/r/perror-win.result7
-rw-r--r--mysql-test/r/perror.result6
-rw-r--r--mysql-test/r/plugin.result333
-rw-r--r--mysql-test/r/plugin_auth.result491
-rw-r--r--mysql-test/r/plugin_auth_qa.result326
-rw-r--r--mysql-test/r/plugin_auth_qa_1.result330
-rw-r--r--mysql-test/r/plugin_auth_qa_2.result132
-rw-r--r--mysql-test/r/plugin_auth_qa_3.result11
-rw-r--r--mysql-test/r/plugin_innodb.result11
-rw-r--r--mysql-test/r/plugin_load.result10
-rw-r--r--mysql-test/r/plugin_load_option.result7
-rw-r--r--mysql-test/r/plugin_loaderr.result13
-rw-r--r--mysql-test/r/plugin_maturity.result8
-rw-r--r--mysql-test/r/plugin_not_embedded.result18
-rw-r--r--mysql-test/r/plugin_vars.result32
-rw-r--r--mysql-test/r/pool_of_threads.result2188
-rw-r--r--mysql-test/r/preload.result169
-rw-r--r--mysql-test/r/processlist.result45
-rw-r--r--mysql-test/r/profiling.result422
-rw-r--r--mysql-test/r/progress_976225.result11
-rw-r--r--mysql-test/r/ps.result5242
-rw-r--r--mysql-test/r/ps_10nestset.result76
-rw-r--r--mysql-test/r/ps_11bugs.result193
-rw-r--r--mysql-test/r/ps_1general.result793
-rw-r--r--mysql-test/r/ps_2myisam.result3492
-rw-r--r--mysql-test/r/ps_3innodb.result3475
-rw-r--r--mysql-test/r/ps_4heap.result3476
-rw-r--r--mysql-test/r/ps_5merge.result6782
-rw-r--r--mysql-test/r/ps_change_master.result22
-rw-r--r--mysql-test/r/ps_ddl.result2585
-rw-r--r--mysql-test/r/ps_ddl1.result482
-rw-r--r--mysql-test/r/ps_grant.result94
-rw-r--r--mysql-test/r/ps_max_subselect-5113.result16
-rw-r--r--mysql-test/r/ps_not_windows.result14
-rw-r--r--mysql-test/r/query_cache.result2193
-rw-r--r--mysql-test/r/query_cache_28249.result67
-rw-r--r--mysql-test/r/query_cache_debug.result286
-rw-r--r--mysql-test/r/query_cache_innodb.result90
-rw-r--r--mysql-test/r/query_cache_merge.result1698
-rw-r--r--mysql-test/r/query_cache_notembedded.result469
-rw-r--r--mysql-test/r/query_cache_ps_no_prot.result577
-rw-r--r--mysql-test/r/query_cache_ps_ps_prot.result577
-rw-r--r--mysql-test/r/query_cache_with_views.result212
-rw-r--r--mysql-test/r/quick_select_4161.result37
-rw-r--r--mysql-test/r/range.result3009
-rw-r--r--mysql-test/r/range_innodb.result39
-rw-r--r--mysql-test/r/range_interrupted-13751.result16
-rw-r--r--mysql-test/r/range_mrr_icp.result3022
-rw-r--r--mysql-test/r/range_vs_index_merge.result1891
-rw-r--r--mysql-test/r/range_vs_index_merge_innodb.result1893
-rw-r--r--mysql-test/r/read_many_rows_innodb.result101
-rw-r--r--mysql-test/r/read_only.result213
-rw-r--r--mysql-test/r/read_only_innodb.result246
-rw-r--r--mysql-test/r/rename.result80
-rw-r--r--mysql-test/r/renamedb.result12
-rw-r--r--mysql-test/r/reopen_temp_table.result192
-rw-r--r--mysql-test/r/repair.result231
-rw-r--r--mysql-test/r/repair_symlink-5543.result18
-rw-r--r--mysql-test/r/replace.result32
-rw-r--r--mysql-test/r/rollback.result29
-rw-r--r--mysql-test/r/round.result272
-rw-r--r--mysql-test/r/row-checksum-old.result85
-rw-r--r--mysql-test/r/row-checksum.result85
-rw-r--r--mysql-test/r/row.result525
-rw-r--r--mysql-test/r/rowid_order_innodb.result187
-rw-r--r--mysql-test/r/rpl_mysqldump_slave.result68
-rw-r--r--mysql-test/r/schema.result105
-rw-r--r--mysql-test/r/second_frac-9175.result13
-rw-r--r--mysql-test/r/secure_file_priv_win.result38
-rw-r--r--mysql-test/r/select.result5550
-rw-r--r--mysql-test/r/select_debug.result18
-rw-r--r--mysql-test/r/select_found.result365
-rw-r--r--mysql-test/r/select_jcl6.result5568
-rw-r--r--mysql-test/r/select_pkeycache.result5550
-rw-r--r--mysql-test/r/select_safe.result95
-rw-r--r--mysql-test/r/selectivity.result1535
-rw-r--r--mysql-test/r/selectivity_innodb.result1695
-rw-r--r--mysql-test/r/selectivity_no_engine.result302
-rw-r--r--mysql-test/r/servers.result26
-rw-r--r--mysql-test/r/set_password_plugin-9835.result160
-rw-r--r--mysql-test/r/set_statement.result1227
-rw-r--r--mysql-test/r/set_statement_debug.result23
-rw-r--r--mysql-test/r/set_statement_notembedded.result18
-rw-r--r--mysql-test/r/set_statement_notembedded_binlog.result108
-rw-r--r--mysql-test/r/set_statement_profiling.result4
-rw-r--r--mysql-test/r/shm.result2170
-rw-r--r--mysql-test/r/show.result12
-rw-r--r--mysql-test/r/show_bad_definer-5553.result13
-rw-r--r--mysql-test/r/show_check.result1577
-rw-r--r--mysql-test/r/show_create_user.result39
-rw-r--r--mysql-test/r/show_explain.result1317
-rw-r--r--mysql-test/r/show_explain_non_select.result55
-rw-r--r--mysql-test/r/show_explain_ps.result42
-rw-r--r--mysql-test/r/show_function_with_pad_char_to_full_length.result24
-rw-r--r--mysql-test/r/show_grants_with_plugin-7985.result197
-rw-r--r--mysql-test/r/show_profile.result10
-rw-r--r--mysql-test/r/show_row_order-9226.result80
-rw-r--r--mysql-test/r/shutdown.result16
-rw-r--r--mysql-test/r/sighup-6580.result3
-rw-r--r--mysql-test/r/signal.result2394
-rw-r--r--mysql-test/r/signal_code.result35
-rw-r--r--mysql-test/r/signal_demo1.result270
-rw-r--r--mysql-test/r/signal_demo2.result197
-rw-r--r--mysql-test/r/signal_demo3.result152
-rw-r--r--mysql-test/r/signal_sqlmode.result86
-rw-r--r--mysql-test/r/simultaneous_assignment.result222
-rw-r--r--mysql-test/r/single_delete_update.result1210
-rw-r--r--mysql-test/r/single_delete_update_innodb.result32
-rw-r--r--mysql-test/r/skip_grants.result97
-rw-r--r--mysql-test/r/skip_log_bin.result6
-rw-r--r--mysql-test/r/skip_name_resolve.result42
-rw-r--r--mysql-test/r/slowlog_enospace-10508.result60
-rw-r--r--mysql-test/r/sp-anchor-row-type-cursor.result1033
-rw-r--r--mysql-test/r/sp-anchor-row-type-table.result810
-rw-r--r--mysql-test/r/sp-anchor-type.result1073
-rw-r--r--mysql-test/r/sp-big.result87
-rw-r--r--mysql-test/r/sp-bugs.result294
-rw-r--r--mysql-test/r/sp-bugs2.result23
-rw-r--r--mysql-test/r/sp-code.result1303
-rw-r--r--mysql-test/r/sp-cursor.result613
-rw-r--r--mysql-test/r/sp-destruct.result230
-rw-r--r--mysql-test/r/sp-dynamic.result385
-rw-r--r--mysql-test/r/sp-error.result2876
-rw-r--r--mysql-test/r/sp-fib.result33
-rw-r--r--mysql-test/r/sp-for-loop.result208
-rw-r--r--mysql-test/r/sp-group.result156
-rw-r--r--mysql-test/r/sp-innodb.result135
-rw-r--r--mysql-test/r/sp-lock.result846
-rw-r--r--mysql-test/r/sp-no-code.result4
-rw-r--r--mysql-test/r/sp-prelocking.result365
-rw-r--r--mysql-test/r/sp-row.result2283
-rw-r--r--mysql-test/r/sp-security-anchor-type.result263
-rw-r--r--mysql-test/r/sp-security.result775
-rw-r--r--mysql-test/r/sp-threads.result116
-rw-r--r--mysql-test/r/sp-ucs2.result148
-rw-r--r--mysql-test/r/sp-vars.result1243
-rw-r--r--mysql-test/r/sp.result8573
-rw-r--r--mysql-test/r/sp_gis.result30
-rw-r--r--mysql-test/r/sp_missing_4665.result6
-rw-r--r--mysql-test/r/sp_notembedded.result352
-rw-r--r--mysql-test/r/sp_stress_case.result120
-rw-r--r--mysql-test/r/sp_sync.result119
-rw-r--r--mysql-test/r/sp_trans.result647
-rw-r--r--mysql-test/r/sp_trans_log.result27
-rw-r--r--mysql-test/r/sql_mode.result782
-rw-r--r--mysql-test/r/ssl-big.result8
-rw-r--r--mysql-test/r/ssl-crl-revoked-crl.result1
-rw-r--r--mysql-test/r/ssl.result2182
-rw-r--r--mysql-test/r/ssl_7937,nossl.result15
-rw-r--r--mysql-test/r/ssl_7937.result16
-rw-r--r--mysql-test/r/ssl_8k_key.result2
-rw-r--r--mysql-test/r/ssl_and_innodb.result8
-rw-r--r--mysql-test/r/ssl_ca.result8
-rw-r--r--mysql-test/r/ssl_cert_verify.result5
-rw-r--r--mysql-test/r/ssl_cipher.result12
-rw-r--r--mysql-test/r/ssl_compress.result2171
-rw-r--r--mysql-test/r/ssl_connect.result1
-rw-r--r--mysql-test/r/ssl_crl.result23
-rw-r--r--mysql-test/r/ssl_crl_clients-valid.result24
-rw-r--r--mysql-test/r/ssl_crl_clients.result7
-rw-r--r--mysql-test/r/ssl_crl_clients_valid.result16
-rw-r--r--mysql-test/r/ssl_crl_clrpath.result23
-rw-r--r--mysql-test/r/ssl_timeout-9836.result9
-rw-r--r--mysql-test/r/ssl_timeout.result10
-rw-r--r--mysql-test/r/stack-crash.result87
-rw-r--r--mysql-test/r/stat_tables-enospc.result10
-rw-r--r--mysql-test/r/stat_tables.result519
-rw-r--r--mysql-test/r/stat_tables_disabled.result70
-rw-r--r--mysql-test/r/stat_tables_innodb.result548
-rw-r--r--mysql-test/r/stat_tables_innodb_debug.result25
-rw-r--r--mysql-test/r/stat_tables_myisam_debug.result24
-rw-r--r--mysql-test/r/stat_tables_par.result283
-rw-r--r--mysql-test/r/stat_tables_par_innodb.result318
-rw-r--r--mysql-test/r/stat_tables_partition.result13
-rw-r--r--mysql-test/r/stat_tables_rbr.result34
-rw-r--r--mysql-test/r/stat_tables_repl.result56
-rw-r--r--mysql-test/r/statistics.result1720
-rw-r--r--mysql-test/r/statistics_index_crash-7362.result35
-rw-r--r--mysql-test/r/status.result431
-rw-r--r--mysql-test/r/status2.result77
-rw-r--r--mysql-test/r/status_bug17954.result14
-rw-r--r--mysql-test/r/str_to_datetime_457.result51
-rw-r--r--mysql-test/r/strict.result1530
-rw-r--r--mysql-test/r/strict_autoinc_1myisam.result26
-rw-r--r--mysql-test/r/strict_autoinc_2innodb.result26
-rw-r--r--mysql-test/r/strict_autoinc_3heap.result26
-rw-r--r--mysql-test/r/subselect.result7285
-rw-r--r--mysql-test/r/subselect2.result396
-rw-r--r--mysql-test/r/subselect3.result1547
-rw-r--r--mysql-test/r/subselect3_jcl6.result1563
-rw-r--r--mysql-test/r/subselect4.result2516
-rw-r--r--mysql-test/r/subselect_cache.result3805
-rw-r--r--mysql-test/r/subselect_debug.result20
-rw-r--r--mysql-test/r/subselect_exists2in.result975
-rw-r--r--mysql-test/r/subselect_exists2in_costmat.result103
-rw-r--r--mysql-test/r/subselect_extra.result480
-rw-r--r--mysql-test/r/subselect_extra_no_semijoin.result484
-rw-r--r--mysql-test/r/subselect_gis.result8
-rw-r--r--mysql-test/r/subselect_innodb.result617
-rw-r--r--mysql-test/r/subselect_mat.result2788
-rw-r--r--mysql-test/r/subselect_mat_cost.result565
-rw-r--r--mysql-test/r/subselect_mat_cost_bugs.result521
-rw-r--r--mysql-test/r/subselect_no_exists_to_in.result7289
-rw-r--r--mysql-test/r/subselect_no_mat.result7283
-rw-r--r--mysql-test/r/subselect_no_opts.result7277
-rw-r--r--mysql-test/r/subselect_no_scache.result7296
-rw-r--r--mysql-test/r/subselect_no_semijoin.result7278
-rw-r--r--mysql-test/r/subselect_notembedded.result40
-rw-r--r--mysql-test/r/subselect_nulls.result123
-rw-r--r--mysql-test/r/subselect_partial_match.result985
-rw-r--r--mysql-test/r/subselect_sj.result3168
-rw-r--r--mysql-test/r/subselect_sj2.result1335
-rw-r--r--mysql-test/r/subselect_sj2_jcl6.result1445
-rw-r--r--mysql-test/r/subselect_sj2_mat.result1672
-rw-r--r--mysql-test/r/subselect_sj_aria.result59
-rw-r--r--mysql-test/r/subselect_sj_jcl6.result3422
-rw-r--r--mysql-test/r/subselect_sj_mat.result2517
-rw-r--r--mysql-test/r/subselect_sj_nonmerged.result122
-rw-r--r--mysql-test/r/sum_distinct-big.result180
-rw-r--r--mysql-test/r/sum_distinct.result109
-rw-r--r--mysql-test/r/symlink-aria-11902.result43
-rw-r--r--mysql-test/r/symlink-myisam-11902.result42
-rw-r--r--mysql-test/r/symlink.result251
-rw-r--r--mysql-test/r/synchronization.result218
-rw-r--r--mysql-test/r/sysdate_is_now.result4
-rw-r--r--mysql-test/r/system_mysql_db.result318
-rw-r--r--mysql-test/r/system_mysql_db_fix40123.result318
-rw-r--r--mysql-test/r/system_mysql_db_fix50030.result318
-rw-r--r--mysql-test/r/system_mysql_db_fix50117.result318
-rw-r--r--mysql-test/r/system_mysql_db_refs.result67
-rw-r--r--mysql-test/r/table_elim.result706
-rw-r--r--mysql-test/r/table_elim_debug.result22
-rw-r--r--mysql-test/r/table_keyinfo-6838.result12
-rw-r--r--mysql-test/r/table_options-5867.result37
-rw-r--r--mysql-test/r/table_options.result182
-rw-r--r--mysql-test/r/table_value_constr.result2073
-rw-r--r--mysql-test/r/tablelock.result57
-rw-r--r--mysql-test/r/tablespace.result112
-rw-r--r--mysql-test/r/tc_heuristic_recover.result38
-rw-r--r--mysql-test/r/temp_table.result550
-rw-r--r--mysql-test/r/temp_table_frm.result21
-rw-r--r--mysql-test/r/temporal_literal.result643
-rw-r--r--mysql-test/r/temporal_scale_4283.result12
-rw-r--r--mysql-test/r/thread_id_overflow.result23
-rw-r--r--mysql-test/r/timeout.result67
-rw-r--r--mysql-test/r/timezone.result50
-rw-r--r--mysql-test/r/timezone2.result334
-rw-r--r--mysql-test/r/timezone3.result49
-rw-r--r--mysql-test/r/timezone4.result6
-rw-r--r--mysql-test/r/timezone_grant.result92
-rw-r--r--mysql-test/r/tmp_table_count-7586.result83
-rw-r--r--mysql-test/r/trans_read_only.result42
-rw-r--r--mysql-test/r/transaction_timeout.result51
-rw-r--r--mysql-test/r/trigger-compat.result144
-rw-r--r--mysql-test/r/trigger-trans.result231
-rw-r--r--mysql-test/r/trigger.result2417
-rw-r--r--mysql-test/r/trigger_no_defaults-11698.result42
-rw-r--r--mysql-test/r/trigger_notembedded.result572
-rw-r--r--mysql-test/r/trigger_null-8605.result366
-rw-r--r--mysql-test/r/trigger_wl3253.result502
-rw-r--r--mysql-test/r/true.require2
-rw-r--r--mysql-test/r/truncate-stale-6500.result33
-rw-r--r--mysql-test/r/truncate.result161
-rw-r--r--mysql-test/r/truncate_badse.result13
-rw-r--r--mysql-test/r/truncate_coverage.result56
-rw-r--r--mysql-test/r/type_binary.result182
-rw-r--r--mysql-test/r/type_bit.result832
-rw-r--r--mysql-test/r/type_bit_innodb.result424
-rw-r--r--mysql-test/r/type_blob.result1065
-rw-r--r--mysql-test/r/type_date.result891
-rw-r--r--mysql-test/r/type_datetime.result1303
-rw-r--r--mysql-test/r/type_datetime_hires.result354
-rw-r--r--mysql-test/r/type_decimal.result1086
-rw-r--r--mysql-test/r/type_enum.result2313
-rw-r--r--mysql-test/r/type_float.result802
-rw-r--r--mysql-test/r/type_int.result95
-rw-r--r--mysql-test/r/type_json.result39
-rw-r--r--mysql-test/r/type_nchar.result50
-rw-r--r--mysql-test/r/type_newdecimal-big.result26
-rw-r--r--mysql-test/r/type_newdecimal.result2307
-rw-r--r--mysql-test/r/type_num.result1260
-rw-r--r--mysql-test/r/type_num_innodb.result107
-rw-r--r--mysql-test/r/type_ranges.result346
-rw-r--r--mysql-test/r/type_set.result360
-rw-r--r--mysql-test/r/type_temporal_innodb.result162
-rw-r--r--mysql-test/r/type_temporal_mysql56.result89
-rw-r--r--mysql-test/r/type_time.result1955
-rw-r--r--mysql-test/r/type_time_6065.result2354
-rw-r--r--mysql-test/r/type_time_hires.result354
-rw-r--r--mysql-test/r/type_timestamp.result1016
-rw-r--r--mysql-test/r/type_timestamp_hires.result335
-rw-r--r--mysql-test/r/type_uint.result72
-rw-r--r--mysql-test/r/type_varchar.result688
-rw-r--r--mysql-test/r/type_year.result488
-rw-r--r--mysql-test/r/udf.result467
-rw-r--r--mysql-test/r/udf_debug_sync.result28
-rw-r--r--mysql-test/r/udf_notembedded.result6
-rw-r--r--mysql-test/r/udf_query_cache.result25
-rw-r--r--mysql-test/r/udf_skip_grants.result5
-rw-r--r--mysql-test/r/union.result2504
-rw-r--r--mysql-test/r/union_crash-714.result5
-rw-r--r--mysql-test/r/uniques_crash-7912.result11
-rw-r--r--mysql-test/r/unsafe_binlog_innodb.result189
-rw-r--r--mysql-test/r/update.result721
-rw-r--r--mysql-test/r/update_ignore_216.result9
-rw-r--r--mysql-test/r/update_innodb.result67
-rw-r--r--mysql-test/r/update_use_source.result1201
-rw-r--r--mysql-test/r/upgrade.result153
-rw-r--r--mysql-test/r/user_limits.result188
-rw-r--r--mysql-test/r/user_var-binlog.result59
-rw-r--r--mysql-test/r/user_var.result593
-rw-r--r--mysql-test/r/userstat-badlogin-4824.result21
-rw-r--r--mysql-test/r/userstat.result233
-rw-r--r--mysql-test/r/varbinary.result183
-rw-r--r--mysql-test/r/variables-notembedded.result176
-rw-r--r--mysql-test/r/variables.result1828
-rw-r--r--mysql-test/r/variables_community.result7
-rw-r--r--mysql-test/r/view.result6512
-rw-r--r--mysql-test/r/view_alias.result119
-rw-r--r--mysql-test/r/view_debug.result25
-rw-r--r--mysql-test/r/view_grant.result1937
-rw-r--r--mysql-test/r/wait_timeout.result43
-rw-r--r--mysql-test/r/warnings.result372
-rw-r--r--mysql-test/r/warnings_debug.result10
-rw-r--r--mysql-test/r/warnings_engine_disabled.result16
-rw-r--r--mysql-test/r/win.result3304
-rw-r--r--mysql-test/r/win_as_arg_to_aggregate_func.result114
-rw-r--r--mysql-test/r/win_avg.result95
-rw-r--r--mysql-test/r/win_big-mdev-10092.result328
-rw-r--r--mysql-test/r/win_big-mdev-11697.result71
-rw-r--r--mysql-test/r/win_big.result111
-rw-r--r--mysql-test/r/win_bit.result117
-rw-r--r--mysql-test/r/win_empty_over.result145
-rw-r--r--mysql-test/r/win_first_last_value.result145
-rw-r--r--mysql-test/r/win_i_s.result38
-rw-r--r--mysql-test/r/win_insert_select.result93
-rw-r--r--mysql-test/r/win_lead_lag.result229
-rw-r--r--mysql-test/r/win_min_max.result864
-rw-r--r--mysql-test/r/win_nth_value.result120
-rw-r--r--mysql-test/r/win_ntile.result435
-rw-r--r--mysql-test/r/win_orderby.result26
-rw-r--r--mysql-test/r/win_percent_cume.result62
-rw-r--r--mysql-test/r/win_percentile.result326
-rw-r--r--mysql-test/r/win_rank.result104
-rw-r--r--mysql-test/r/win_std.result293
-rw-r--r--mysql-test/r/win_sum.result95
-rw-r--r--mysql-test/r/windows.result67
-rw-r--r--mysql-test/r/xa.result346
-rw-r--r--mysql-test/r/xa_binlog.result32
-rw-r--r--mysql-test/r/xa_sync.result42
-rw-r--r--mysql-test/r/xml.result1311
-rw-r--r--mysql-test/r/xtradb_mrr.result851
982 files changed, 0 insertions, 814889 deletions
diff --git a/mysql-test/r/1st.result b/mysql-test/r/1st.result
deleted file mode 100644
index cb2da3505f5..00000000000
--- a/mysql-test/r/1st.result
+++ /dev/null
@@ -1,40 +0,0 @@
-show databases;
-Database
-information_schema
-mtr
-mysql
-performance_schema
-test
-show tables in mysql;
-Tables_in_mysql
-column_stats
-columns_priv
-db
-event
-func
-general_log
-gtid_slave_pos
-help_category
-help_keyword
-help_relation
-help_topic
-host
-index_stats
-innodb_index_stats
-innodb_table_stats
-plugin
-proc
-procs_priv
-proxies_priv
-roles_mapping
-servers
-slow_log
-table_stats
-tables_priv
-time_zone
-time_zone_leap_second
-time_zone_name
-time_zone_transition
-time_zone_transition_type
-transaction_registry
-user
diff --git a/mysql-test/r/aborted_clients.result b/mysql-test/r/aborted_clients.result
deleted file mode 100644
index 8eb6df59653..00000000000
--- a/mysql-test/r/aborted_clients.result
+++ /dev/null
@@ -1,16 +0,0 @@
-FLUSH STATUS;
-connect con1,localhost,root,,;
-disconnect con1;
-connection default;
-SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='aborted_clients';
-VARIABLE_VALUE
-0
-connect con2,localhost,root,,;
-KILL CONNECTION_ID();
-ERROR 70100: Connection was killed
-disconnect con2;
-connection default;
-SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='aborted_clients';
-VARIABLE_VALUE
-1
-FLUSH STATUS;
diff --git a/mysql-test/r/adddate_454.result b/mysql-test/r/adddate_454.result
deleted file mode 100644
index 851292121f2..00000000000
--- a/mysql-test/r/adddate_454.result
+++ /dev/null
@@ -1,12 +0,0 @@
-create table t1 (d date);
-insert into t1 values ('2012-00-00');
-select * from t1;
-d
-2012-00-00
-update ignore t1 set d = adddate(d, interval 1 day);
-Warnings:
-Warning 1292 Incorrect datetime value: '2012-00-00'
-select * from t1;
-d
-NULL
-drop table t1;
diff --git a/mysql-test/r/alias.result b/mysql-test/r/alias.result
deleted file mode 100644
index defd44f2548..00000000000
--- a/mysql-test/r/alias.result
+++ /dev/null
@@ -1,220 +0,0 @@
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-cont_nr int(11) NOT NULL auto_increment,
-ver_nr int(11) NOT NULL default '0',
-aufnr int(11) NOT NULL default '0',
-username varchar(50) NOT NULL default '',
-hdl_nr int(11) NOT NULL default '0',
-eintrag date NOT NULL default '0000-00-00',
-st_klasse varchar(40) NOT NULL default '',
-st_wert varchar(40) NOT NULL default '',
-st_zusatz varchar(40) NOT NULL default '',
-st_bemerkung varchar(255) NOT NULL default '',
-kunden_art varchar(40) NOT NULL default '',
-mcbs_knr int(11) default NULL,
-mcbs_aufnr int(11) NOT NULL default '0',
-schufa_status char(1) default '?',
-bemerkung text,
-wirknetz text,
-wf_igz int(11) NOT NULL default '0',
-tarifcode varchar(80) default NULL,
-recycle char(1) default NULL,
-sim varchar(30) default NULL,
-mcbs_tpl varchar(30) default NULL,
-emp_nr int(11) NOT NULL default '0',
-laufzeit int(11) default NULL,
-hdl_name varchar(30) default NULL,
-prov_hdl_nr int(11) NOT NULL default '0',
-auto_wirknetz varchar(50) default NULL,
-auto_billing varchar(50) default NULL,
-touch timestamp NOT NULL,
-kategorie varchar(50) default NULL,
-kundentyp varchar(20) NOT NULL default '',
-sammel_rech_msisdn varchar(30) NOT NULL default '',
-p_nr varchar(9) NOT NULL default '',
-suffix char(3) NOT NULL default '',
-PRIMARY KEY (cont_nr),
-KEY idx_aufnr(aufnr),
-KEY idx_hdl_nr(hdl_nr),
-KEY idx_st_klasse(st_klasse),
-KEY ver_nr(ver_nr),
-KEY eintrag_idx(eintrag),
-KEY emp_nr_idx(emp_nr),
-KEY wf_igz(wf_igz),
-KEY touch(touch),
-KEY hdl_tag(eintrag,hdl_nr),
-KEY prov_hdl_nr(prov_hdl_nr),
-KEY mcbs_aufnr(mcbs_aufnr),
-KEY kundentyp(kundentyp),
-KEY p_nr(p_nr,suffix)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3359356,405,3359356,'Mustermann Musterfrau',52500,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1485525,2122316,'+','','N',1909160,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',3,24,'MobilCom Shop Koeln',52500,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359357,468,3359357,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1503580,2139699,'+','','P',1909171,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359358,407,3359358,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1501358,2137473,'N','','N',1909159,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359359,468,3359359,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1507831,2143894,'+','','P',1909162,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359360,0,0,'Mustermann Musterfrau',29674907,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1900169997,2414578,'+',NULL,'N',1909148,'',NULL,NULL,'RV99066_2',20,NULL,'POS',29674907,NULL,NULL,20010202105916,'Mobilfunk','','','97317481','007');
-INSERT INTO t1 VALUES (3359361,406,3359361,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag storniert','','(7001-84):Storno, Kd. möchte nicht mehr','privat',NULL,0,'+','','P',1909150,'MobilComSuper92000D1(Akquise)',NULL,NULL,'MS9ND1',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359362,406,3359362,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1509984,2145874,'+','','P',1909154,'MobilComSuper92000D1(Akquise)',NULL,NULL,'MS9ND1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-SELECT ELT(FIELD(kundentyp,'PP','PPA','PG','PGA','FK','FKA','FP','FPA','K','KA','V','VA',''), 'Privat (Private Nutzung)','Privat (Private Nutzung) Sitz im Ausland','Privat (geschaeftliche Nutzung)','Privat (geschaeftliche Nutzung) Sitz im Ausland','Firma (Kapitalgesellschaft)','Firma (Kapitalgesellschaft) Sitz im Ausland','Firma (Personengesellschaft)','Firma (Personengesellschaft) Sitz im Ausland','oeff. rechtl. Koerperschaft','oeff. rechtl. Koerperschaft Sitz im Ausland','Eingetragener Verein','Eingetragener Verein Sitz im Ausland','Typ unbekannt') AS Kundentyp ,kategorie FROM t1 WHERE hdl_nr < 2000000 AND kategorie IN ('Prepaid','Mobilfunk') AND st_klasse = 'Workflow' GROUP BY kundentyp ORDER BY kategorie;
-Kundentyp kategorie
-Privat (Private Nutzung) Mobilfunk
-Warnings:
-Warning 1052 Column 'kundentyp' in group statement is ambiguous
-drop table t1;
-CREATE TABLE t1 (
-AUFNR varchar(12) NOT NULL default '',
-PLNFL varchar(6) NOT NULL default '',
-VORNR varchar(4) NOT NULL default '',
-xstatus_vor smallint(5) unsigned NOT NULL default '0'
-);
-INSERT INTO t1 VALUES ('40004712','000001','0010',9);
-INSERT INTO t1 VALUES ('40004712','000001','0020',0);
-UPDATE t1 SET t1.xstatus_vor = Greatest(t1.xstatus_vor,1) WHERE t1.aufnr =
-"40004712" AND t1.plnfl = "000001" AND t1.vornr > "0010" ORDER BY t1.vornr
-ASC LIMIT 1;
-drop table t1;
-drop table if exists t1,t2,t3;
-create table t1 (a int, b int, c int);
-create table t2 (d int);
-create table t3 (a1 int, b1 int, c1 int);
-insert into t1 values(1,2,3);
-insert into t1 values(11,22,33);
-insert into t2 values(99);
-select t1.* as 'with_alias' from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias' from t1' at line 1
-select t2.* as 'with_alias' from t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias' from t2' at line 1
-select t1.*, t1.* as 'with_alias' from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias' from t1' at line 1
-select t1.* as 'with_alias', t1.* from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', t1.* from t1' at line 1
-select t1.* as 'with_alias', t1.* as 'alias2' from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', t1.* as 'alias2' from t1' at line 1
-select t1.* as 'with_alias', a, t1.* as 'alias2' from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', a, t1.* as 'alias2' from t1' at line 1
-select a, t1.* as 'with_alias' from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias' from t1' at line 1
-select t1.* as 'with_alias', a from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', a from t1' at line 1
-select a, t1.* as 'with_alias', b from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', b from t1' at line 1
-select (select d from t2 where d > a), t1.* as 'with_alias' from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias' from t1' at line 1
-select t1.* as 'with_alias', (select a from t2 where d > a) from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', (select a from t2 where d > a) from t1' at line 1
-select a as 'x', t1.* as 'with_alias' from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias' from t1' at line 1
-select t1.* as 'with_alias', a as 'x' from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', a as 'x' from t1' at line 1
-select a as 'x', t1.* as 'with_alias', b as 'x' from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', b as 'x' from t1' at line 1
-select (select d from t2 where d > a) as 'x', t1.* as 'with_alias' from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias' from t1' at line 1
-select t1.* as 'with_alias', (select a from t2 where d > a) as 'x' from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', (select a from t2 where d > a) as 'x' from t1' at line 1
-select (select t2.* as 'x' from t2) from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'x' from t2) from t1' at line 1
-select a, (select t2.* as 'x' from t2) from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'x' from t2) from t1' at line 1
-select t1.*, (select t2.* as 'x' from t2) from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'x' from t2) from t1' at line 1
-insert into t3 select t1.* as 'with_alias' from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias' from t1' at line 1
-insert into t3 select t2.* as 'with_alias', 1, 2 from t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', 1, 2 from t2' at line 1
-insert into t3 select t2.* as 'with_alias', d as 'x', d as 'z' from t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', d as 'x', d as 'z' from t2' at line 1
-insert into t3 select t2.*, t2.* as 'with_alias', 3 from t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', 3 from t2' at line 1
-create table t3 select t1.* as 'with_alias' from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias' from t1' at line 1
-create table t3 select t2.* as 'with_alias', 1, 2 from t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', 1, 2 from t2' at line 1
-create table t3 select t2.* as 'with_alias', d as 'x', d as 'z' from t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', d as 'x', d as 'z' from t2' at line 1
-create table t3 select t2.*, t2.* as 'with_alias', 3 from t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as 'with_alias', 3 from t2' at line 1
-select t1.* from t1;
-a b c
-1 2 3
-11 22 33
-select t2.* from t2;
-d
-99
-select t1.*, t1.* from t1;
-a b c a b c
-1 2 3 1 2 3
-11 22 33 11 22 33
-select t1.*, a, t1.* from t1;
-a b c a a b c
-1 2 3 1 1 2 3
-11 22 33 11 11 22 33
-select a, t1.* from t1;
-a a b c
-1 1 2 3
-11 11 22 33
-select t1.*, a from t1;
-a b c a
-1 2 3 1
-11 22 33 11
-select a, t1.*, b from t1;
-a a b c b
-1 1 2 3 2
-11 11 22 33 22
-select (select d from t2 where d > a), t1.* from t1;
-(select d from t2 where d > a) a b c
-99 1 2 3
-99 11 22 33
-select t1.*, (select a from t2 where d > a) from t1;
-a b c (select a from t2 where d > a)
-1 2 3 1
-11 22 33 11
-select a as 'x', t1.* from t1;
-x a b c
-1 1 2 3
-11 11 22 33
-select t1.*, a as 'x' from t1;
-a b c x
-1 2 3 1
-11 22 33 11
-select a as 'x', t1.*, b as 'x' from t1;
-x a b c x
-1 1 2 3 2
-11 11 22 33 22
-select (select d from t2 where d > a) as 'x', t1.* from t1;
-x a b c
-99 1 2 3
-99 11 22 33
-select t1.*, (select a from t2 where d > a) as 'x' from t1;
-a b c x
-1 2 3 1
-11 22 33 11
-select (select t2.* from t2) from t1;
-(select t2.* from t2)
-99
-99
-select a, (select t2.* from t2) from t1;
-a (select t2.* from t2)
-1 99
-11 99
-select t1.*, (select t2.* from t2) from t1;
-a b c (select t2.* from t2)
-1 2 3 99
-11 22 33 99
-insert into t3 select t1.* from t1;
-insert into t3 select t2.*, 1, 2 from t2;
-insert into t3 select t2.*, d as 'x', d as 'z' from t2;
-insert into t3 select t2.*, t2.*, 3 from t2;
-create table t4 select t1.* from t1;
-drop table t4;
-create table t4 select t2.*, 1, 2 from t2;
-drop table t4;
-create table t4 select t2.*, d as 'x', d as 'z' from t2;
-drop table t4;
-drop table t1,t2,t3;
-connect c1,localhost,root,,;
-connection c1;
-DELETE ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZROM t1 WHERE 1=1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1 WHERE 1=1' at line 1
-connection default;
-disconnect c1;
diff --git a/mysql-test/r/almost_full.result b/mysql-test/r/almost_full.result
deleted file mode 100644
index b2d7092aa51..00000000000
--- a/mysql-test/r/almost_full.result
+++ /dev/null
@@ -1,30 +0,0 @@
-call mtr.add_suppression("The table 't1' is full");
-drop table if exists t1;
-set global myisam_data_pointer_size=2;
-CREATE TABLE t1 (a int auto_increment primary key not null, b longtext) ENGINE=MyISAM;
-DELETE FROM t1 WHERE a=1 or a=5;
-INSERT INTO t1 SET b=repeat('a',600);
-ERROR HY000: The table 't1' is full
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check warning Datafile is almost full, 65448 of 65534 used
-test.t1 check status OK
-UPDATE t1 SET b=repeat('a', 800) where a=10;
-ERROR HY000: The table 't1' is full
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check warning Datafile is almost full, 65448 of 65534 used
-test.t1 check status OK
-INSERT INTO t1 SET b=repeat('a',400);
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check warning Datafile is almost full, 65448 of 65534 used
-test.t1 check status OK
-DELETE FROM t1 WHERE a=2 or a=6;
-UPDATE t1 SET b=repeat('a', 600) where a=11;
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check warning Datafile is almost full, 65448 of 65534 used
-test.t1 check status OK
-drop table t1;
-set global myisam_data_pointer_size=default;
diff --git a/mysql-test/r/alter_table-big.result b/mysql-test/r/alter_table-big.result
deleted file mode 100644
index 32689daa3a6..00000000000
--- a/mysql-test/r/alter_table-big.result
+++ /dev/null
@@ -1,119 +0,0 @@
-drop table if exists t1, t2;
-set debug_sync='RESET';
-connect addconroot, localhost, root,,;
-connect addconroot2, localhost, root,,;
-connection default;
-create table t1 (n1 int, n2 int, n3 int,
-key (n1, n2, n3),
-key (n2, n3, n1),
-key (n3, n1, n2));
-create table t2 (i int);
-alter table t1 disable keys;
-insert into t1 values (1, 2, 3);
-reset master;
-set debug_sync='alter_table_enable_indexes SIGNAL parked WAIT_FOR go';
-alter table t1 enable keys;;
-connection addconroot;
-set debug_sync='now WAIT_FOR parked';
-insert into t2 values (1);
-insert into t1 values (1, 1, 1);;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot;
-connection default;
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; insert into t2 values (1)
-master-bin.000001 # Query # # COMMIT
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; alter table t1 enable keys
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; insert into t1 values (1, 1, 1)
-master-bin.000001 # Query # # COMMIT
-drop tables t1, t2;
-disconnect addconroot;
-disconnect addconroot2;
-set debug_sync='RESET';
-End of 5.0 tests
-drop table if exists t1, t2, t3;
-connect addconroot, localhost, root,,;
-connect addconroot2, localhost, root,,;
-connection default;
-create table t1 (i int);
-reset master;
-set debug_sync='alter_table_before_main_binlog SIGNAL parked WAIT_FOR go';
-alter table t1 change i c char(10) default 'Test1';;
-connection addconroot;
-set debug_sync='now WAIT_FOR parked';
-insert into t1 values ();;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot;
-connection default;
-select * from t1;
-c
-Test1
-set debug_sync='alter_table_before_main_binlog SIGNAL parked WAIT_FOR go';
-alter table t1 change c vc varchar(100) default 'Test2';;
-connection addconroot;
-set debug_sync='now WAIT_FOR parked';
-rename table t1 to t2;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot;
-connection default;
-drop table t2;
-create table t1 (i int);
-set debug_sync='alter_table_before_main_binlog SIGNAL parked WAIT_FOR go';
-alter table t1 change i c char(10) default 'Test3', rename to t2;;
-connection addconroot;
-set debug_sync='now WAIT_FOR parked';
-insert into t2 values();;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot;
-connection default;
-select * from t2;
-c
-Test3
-alter table t2 change c vc varchar(100) default 'Test2', rename to t1;;
-connection addconroot;
-connection default;
-rename table t1 to t3;
-disconnect addconroot;
-disconnect addconroot2;
-drop table t3;
-set debug_sync='alter_table_before_main_binlog SIGNAL parked WAIT_FOR go';
-set debug_sync='RESET';
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; alter table t1 change i c char(10) default 'Test1'
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; insert into t1 values ()
-master-bin.000001 # Query # # COMMIT
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; alter table t1 change c vc varchar(100) default 'Test2'
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; rename table t1 to t2
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; DROP TABLE `t2` /* generated by server */
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; create table t1 (i int)
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; alter table t1 change i c char(10) default 'Test3', rename to t2
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; insert into t2 values()
-master-bin.000001 # Query # # COMMIT
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; alter table t2 change c vc varchar(100) default 'Test2', rename to t1
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; rename table t1 to t3
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; DROP TABLE `t3` /* generated by server */
-End of 5.1 tests
diff --git a/mysql-test/r/alter_table.result b/mysql-test/r/alter_table.result
deleted file mode 100644
index 9b394926489..00000000000
--- a/mysql-test/r/alter_table.result
+++ /dev/null
@@ -1,2326 +0,0 @@
-drop table if exists t1,t2;
-drop database if exists mysqltest;
-create table t1 (
-col1 int not null auto_increment primary key,
-col2 varchar(30) not null,
-col3 varchar (20) not null,
-col4 varchar(4) not null,
-col5 enum('PENDING', 'ACTIVE', 'DISABLED') not null,
-col6 int not null, to_be_deleted int);
-insert into t1 values (2,4,3,5,"PENDING",1,7);
-alter table t1
-add column col4_5 varchar(20) not null after col4,
-add column col7 varchar(30) not null after col5,
-add column col8 datetime not null, drop column to_be_deleted,
-change column col2 fourth varchar(30) not null after col3,
-modify column col6 int not null first;
-select * from t1;
-col6 col1 col3 fourth col4 col4_5 col5 col7 col8
-1 2 3 4 5 PENDING 0000-00-00 00:00:00
-drop table t1;
-create table t1 (bandID MEDIUMINT UNSIGNED NOT NULL PRIMARY KEY, payoutID SMALLINT UNSIGNED NOT NULL);
-insert into t1 (bandID,payoutID) VALUES (1,6),(2,6),(3,4),(4,9),(5,10),(6,1),(7,12),(8,12);
-alter table t1 add column new_col int, order by payoutid,bandid;
-select * from t1;
-bandID payoutID new_col
-6 1 NULL
-3 4 NULL
-1 6 NULL
-2 6 NULL
-4 9 NULL
-5 10 NULL
-7 12 NULL
-8 12 NULL
-alter table t1 order by bandid,payoutid;
-select * from t1;
-bandID payoutID new_col
-1 6 NULL
-2 6 NULL
-3 4 NULL
-4 9 NULL
-5 10 NULL
-6 1 NULL
-7 12 NULL
-8 12 NULL
-drop table t1;
-CREATE TABLE t1 (
-GROUP_ID int(10) unsigned DEFAULT '0' NOT NULL,
-LANG_ID smallint(5) unsigned DEFAULT '0' NOT NULL,
-NAME varchar(80) DEFAULT '' NOT NULL,
-PRIMARY KEY (GROUP_ID,LANG_ID),
-KEY NAME (NAME));
-ALTER TABLE t1 CHANGE NAME NAME CHAR(80) not null;
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-GROUP_ID int(10) unsigned NULL NO PRI 0 #
-LANG_ID smallint(5) unsigned NULL NO PRI 0 #
-NAME char(80) latin1_swedish_ci NO MUL NULL #
-DROP TABLE t1;
-create table t1 (n int);
-insert into t1 values(9),(3),(12),(10);
-alter table t1 order by n;
-select * from t1;
-n
-3
-9
-10
-12
-drop table t1;
-CREATE TABLE t1 (
-id int(11) unsigned NOT NULL default '0',
-category_id tinyint(4) unsigned NOT NULL default '0',
-type_id tinyint(4) unsigned NOT NULL default '0',
-body text NOT NULL,
-user_id int(11) unsigned NOT NULL default '0',
-status enum('new','old') NOT NULL default 'new',
-PRIMARY KEY (id)
-) ENGINE=MyISAM;
-ALTER TABLE t1 ORDER BY t1.id, t1.status, t1.type_id, t1.user_id, t1.body;
-DROP TABLE t1;
-CREATE TABLE t1 (AnamneseId int(10) unsigned NOT NULL auto_increment,B BLOB,PRIMARY KEY (AnamneseId)) engine=myisam;
-insert into t1 values (null,"hello");
-LOCK TABLES t1 WRITE;
-ALTER TABLE t1 ADD Column new_col int not null;
-UNLOCK TABLES;
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-DROP TABLE t1;
-create table t1 (i int unsigned not null auto_increment primary key);
-insert into t1 values (null),(null),(null),(null);
-alter table t1 drop i,add i int unsigned not null auto_increment, drop primary key, add primary key (i);
-select * from t1;
-i
-1
-2
-3
-4
-drop table t1;
-create table t1 (name char(15));
-insert into t1 (name) values ("current");
-create database mysqltest;
-create table mysqltest.t1 (name char(15));
-insert into mysqltest.t1 (name) values ("mysqltest");
-select * from t1;
-name
-current
-select * from mysqltest.t1;
-name
-mysqltest
-alter table t1 rename mysqltest.t1;
-ERROR 42S01: Table 't1' already exists
-select * from t1;
-name
-current
-select * from mysqltest.t1;
-name
-mysqltest
-drop table t1;
-drop database mysqltest;
-create table t1 (n1 int not null, n2 int, n3 int, n4 float,
-unique(n1),
-key (n1, n2, n3, n4),
-key (n2, n3, n4, n1),
-key (n3, n4, n1, n2),
-key (n4, n1, n2, n3) );
-alter table t1 disable keys;
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 n1 1 n1 A 0 NULL NULL BTREE
-t1 1 n1_2 1 n1 A NULL NULL NULL BTREE disabled
-t1 1 n1_2 2 n2 A NULL NULL NULL YES BTREE disabled
-t1 1 n1_2 3 n3 A NULL NULL NULL YES BTREE disabled
-t1 1 n1_2 4 n4 A NULL NULL NULL YES BTREE disabled
-t1 1 n2 1 n2 A NULL NULL NULL YES BTREE disabled
-t1 1 n2 2 n3 A NULL NULL NULL YES BTREE disabled
-t1 1 n2 3 n4 A NULL NULL NULL YES BTREE disabled
-t1 1 n2 4 n1 A NULL NULL NULL BTREE disabled
-t1 1 n3 1 n3 A NULL NULL NULL YES BTREE disabled
-t1 1 n3 2 n4 A NULL NULL NULL YES BTREE disabled
-t1 1 n3 3 n1 A NULL NULL NULL BTREE disabled
-t1 1 n3 4 n2 A NULL NULL NULL YES BTREE disabled
-t1 1 n4 1 n4 A NULL NULL NULL YES BTREE disabled
-t1 1 n4 2 n1 A NULL NULL NULL BTREE disabled
-t1 1 n4 3 n2 A NULL NULL NULL YES BTREE disabled
-t1 1 n4 4 n3 A NULL NULL NULL YES BTREE disabled
-alter table t1 enable keys;
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 n1 1 n1 A 10 NULL NULL BTREE
-t1 1 n1_2 1 n1 A 10 NULL NULL BTREE
-t1 1 n1_2 2 n2 A 10 NULL NULL YES BTREE
-t1 1 n1_2 3 n3 A 10 NULL NULL YES BTREE
-t1 1 n1_2 4 n4 A 10 NULL NULL YES BTREE
-t1 1 n2 1 n2 A 10 NULL NULL YES BTREE
-t1 1 n2 2 n3 A 10 NULL NULL YES BTREE
-t1 1 n2 3 n4 A 10 NULL NULL YES BTREE
-t1 1 n2 4 n1 A 10 NULL NULL BTREE
-t1 1 n3 1 n3 A 10 NULL NULL YES BTREE
-t1 1 n3 2 n4 A 10 NULL NULL YES BTREE
-t1 1 n3 3 n1 A 10 NULL NULL BTREE
-t1 1 n3 4 n2 A 10 NULL NULL YES BTREE
-t1 1 n4 1 n4 A 10 NULL NULL YES BTREE
-t1 1 n4 2 n1 A 10 NULL NULL BTREE
-t1 1 n4 3 n2 A 10 NULL NULL YES BTREE
-t1 1 n4 4 n3 A 10 NULL NULL YES BTREE
-drop table t1;
-create table t1 (i int unsigned not null auto_increment primary key);
-alter table t1 rename t2;
-alter table t2 rename t1, add c char(10) comment "no comment";
-show columns from t1;
-Field Type Null Key Default Extra
-i int(10) unsigned NO PRI NULL auto_increment
-c char(10) YES NULL
-drop table t1;
-create table t1 (a int, b int);
-alter table t1 add unique (a,b), add key (b);
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A 3 NULL NULL YES BTREE
-t1 0 a 2 b A 300 NULL NULL YES BTREE
-t1 1 b 1 b A 100 NULL NULL YES BTREE
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A 3 NULL NULL YES BTREE
-t1 0 a 2 b A 300 NULL NULL YES BTREE
-t1 1 b 1 b A 100 NULL NULL YES BTREE
-drop table t1;
-CREATE TABLE t1 (i int(10), index(i) ) ENGINE=MyISAM;
-ALTER TABLE t1 DISABLE KEYS;
-INSERT DELAYED INTO t1 VALUES(1),(2),(3);
-ALTER TABLE t1 ENABLE KEYS;
-drop table t1;
-CREATE TABLE t1 (
-Host varchar(16) binary NOT NULL default '',
-User varchar(16) binary NOT NULL default '',
-PRIMARY KEY (Host,User)
-) ENGINE=MyISAM;
-ALTER TABLE t1 DISABLE KEYS;
-LOCK TABLES t1 WRITE;
-INSERT INTO t1 VALUES ('localhost','root'),('localhost',''),('games','monty');
-SHOW INDEX FROM t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 Host A NULL NULL NULL BTREE
-t1 0 PRIMARY 2 User A 0 NULL NULL BTREE
-ALTER TABLE t1 ENABLE KEYS;
-UNLOCK TABLES;
-CHECK TABLES t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-CREATE TABLE t1 (
-Host varchar(16) binary NOT NULL default '',
-User varchar(16) binary NOT NULL default '',
-PRIMARY KEY (Host,User),
-KEY (Host)
-) ENGINE=MyISAM;
-ALTER TABLE t1 DISABLE KEYS;
-SHOW INDEX FROM t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 Host A NULL NULL NULL BTREE
-t1 0 PRIMARY 2 User A 0 NULL NULL BTREE
-t1 1 Host 1 Host A NULL NULL NULL BTREE disabled
-LOCK TABLES t1 WRITE;
-INSERT INTO t1 VALUES ('localhost','root'),('localhost','');
-SHOW INDEX FROM t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 Host A NULL NULL NULL BTREE
-t1 0 PRIMARY 2 User A 0 NULL NULL BTREE
-t1 1 Host 1 Host A NULL NULL NULL BTREE disabled
-ALTER TABLE t1 ENABLE KEYS;
-SHOW INDEX FROM t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 Host A NULL NULL NULL BTREE
-t1 0 PRIMARY 2 User A 2 NULL NULL BTREE
-t1 1 Host 1 Host A 1 NULL NULL BTREE
-UNLOCK TABLES;
-CHECK TABLES t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-LOCK TABLES t1 WRITE;
-ALTER TABLE t1 RENAME t2;
-UNLOCK TABLES;
-select * from t2;
-Host User
-localhost
-localhost root
-DROP TABLE t2;
-CREATE TABLE t1 (
-Host varchar(16) binary NOT NULL default '',
-User varchar(16) binary NOT NULL default '',
-PRIMARY KEY (Host,User),
-KEY (Host)
-) ENGINE=MyISAM;
-LOCK TABLES t1 WRITE;
-ALTER TABLE t1 DISABLE KEYS;
-SHOW INDEX FROM t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 Host A NULL NULL NULL BTREE
-t1 0 PRIMARY 2 User A 0 NULL NULL BTREE
-t1 1 Host 1 Host A NULL NULL NULL BTREE disabled
-DROP TABLE t1;
-create table t1 (a int);
-alter table t1 rename to ``;
-ERROR 42000: Incorrect table name ''
-rename table t1 to ``;
-ERROR 42000: Incorrect table name ''
-drop table t1;
-drop table if exists t1, t2;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-Note 1051 Unknown table 'test.t2'
-create table t1 ( a varchar(10) not null primary key ) engine=myisam;
-create table t2 ( a varchar(10) not null primary key ) engine=merge union=(t1);
-flush tables;
-alter table t1 modify a varchar(10);
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(10) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t1`)
-flush tables;
-alter table t1 modify a varchar(10) not null;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(10) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t1`)
-drop table if exists t1, t2;
-create table t1 (a int, b int, c int, d int, e int, f int, g int, h int,i int, primary key (a,b,c,d,e,f,g,i,h)) engine=MyISAM;
-insert ignore into t1 (a) values(1);
-Warnings:
-Warning 1364 Field 'b' doesn't have a default value
-Warning 1364 Field 'c' doesn't have a default value
-Warning 1364 Field 'd' doesn't have a default value
-Warning 1364 Field 'e' doesn't have a default value
-Warning 1364 Field 'f' doesn't have a default value
-Warning 1364 Field 'g' doesn't have a default value
-Warning 1364 Field 'h' doesn't have a default value
-Warning 1364 Field 'i' doesn't have a default value
-show table status like 't1';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 1 37 X X X X X X X X latin1_swedish_ci NULL X N
-alter table t1 modify a int;
-show table status like 't1';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 1 37 X X X X X X X X latin1_swedish_ci NULL X N
-drop table t1;
-create table t1 (a int not null, b int not null, c int not null, d int not null, e int not null, f int not null, g int not null, h int not null,i int not null, primary key (a,b,c,d,e,f,g,i,h)) engine=MyISAM;
-insert ignore into t1 (a) values(1);
-Warnings:
-Warning 1364 Field 'b' doesn't have a default value
-Warning 1364 Field 'c' doesn't have a default value
-Warning 1364 Field 'd' doesn't have a default value
-Warning 1364 Field 'e' doesn't have a default value
-Warning 1364 Field 'f' doesn't have a default value
-Warning 1364 Field 'g' doesn't have a default value
-Warning 1364 Field 'h' doesn't have a default value
-Warning 1364 Field 'i' doesn't have a default value
-show table status like 't1';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 1 37 X X X X X X X X latin1_swedish_ci NULL X N
-drop table t1;
-set names koi8r;
-create table t1 (a char(10) character set koi8r);
-insert into t1 values ('ÔÅÓÔ');
-select a,hex(a) from t1;
-a hex(a)
-ÔÅÓÔ D4C5D3D4
-alter table t1 change a a char(10) character set cp1251;
-select a,hex(a) from t1;
-a hex(a)
-ÔÅÓÔ F2E5F1F2
-alter table t1 change a a binary(4);
-select a,hex(a) from t1;
-a hex(a)
-òåñò F2E5F1F2
-alter table t1 change a a char(10) character set cp1251;
-select a,hex(a) from t1;
-a hex(a)
-ÔÅÓÔ F2E5F1F2
-alter table t1 change a a char(10) character set koi8r;
-select a,hex(a) from t1;
-a hex(a)
-ÔÅÓÔ D4C5D3D4
-alter table t1 change a a varchar(10) character set cp1251;
-select a,hex(a) from t1;
-a hex(a)
-ÔÅÓÔ F2E5F1F2
-alter table t1 change a a char(10) character set koi8r;
-select a,hex(a) from t1;
-a hex(a)
-ÔÅÓÔ D4C5D3D4
-alter table t1 change a a text character set cp1251;
-select a,hex(a) from t1;
-a hex(a)
-ÔÅÓÔ F2E5F1F2
-alter table t1 change a a char(10) character set koi8r;
-select a,hex(a) from t1;
-a hex(a)
-ÔÅÓÔ D4C5D3D4
-delete from t1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) CHARACTER SET koi8r DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 DEFAULT CHARACTER SET latin1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) CHARACTER SET koi8r DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 CONVERT TO CHARACTER SET latin1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 DEFAULT CHARACTER SET cp1251;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) CHARACTER SET latin1 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=cp1251
-drop table t1;
-create table t1 (myblob longblob,mytext longtext)
-default charset latin1 collate latin1_general_cs;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `myblob` longblob DEFAULT NULL,
- `mytext` longtext COLLATE latin1_general_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs
-alter table t1 character set latin2;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `myblob` longblob DEFAULT NULL,
- `mytext` longtext CHARACTER SET latin1 COLLATE latin1_general_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin2
-drop table t1;
-CREATE TABLE t1 (a int PRIMARY KEY, b INT UNIQUE);
-ALTER TABLE t1 DROP PRIMARY KEY;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) DEFAULT NULL,
- UNIQUE KEY `b` (`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 DROP PRIMARY KEY;
-ERROR 42000: Can't DROP INDEX `PRIMARY`; check that it exists
-DROP TABLE t1;
-create table t1 (a int, b int, key(a));
-insert into t1 values (1,1), (2,2);
-alter table t1 drop key no_such_key;
-ERROR 42000: Can't DROP INDEX `no_such_key`; check that it exists
-alter table t1 drop key a;
-drop table t1;
-CREATE TABLE T12207(a int) ENGINE=MYISAM;
-ALTER TABLE T12207 DISCARD TABLESPACE;
-ERROR HY000: Storage engine MyISAM of the table `test`.`T12207` doesn't have this option
-DROP TABLE T12207;
-create table t1 (a text) character set koi8r;
-insert into t1 values (_koi8r'ÔÅÓÔ');
-select hex(a) from t1;
-hex(a)
-D4C5D3D4
-alter table t1 convert to character set cp1251;
-select hex(a) from t1;
-hex(a)
-F2E5F1F2
-drop table t1;
-create table t1 ( a timestamp );
-alter table t1 add unique ( a(1) );
-ERROR HY000: Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
-drop table t1;
-drop table if exists t1;
-create table t1 (a int, key(a));
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE
-"this used not to disable the index"
-alter table t1 modify a int, disable keys;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE disabled
-alter table t1 enable keys;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE
-alter table t1 modify a bigint, disable keys;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE disabled
-alter table t1 enable keys;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE
-alter table t1 add b char(10), disable keys;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE disabled
-alter table t1 add c decimal(10,2), enable keys;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE
-"this however did"
-alter table t1 disable keys;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE disabled
-desc t1;
-Field Type Null Key Default Extra
-a bigint(20) YES MUL NULL
-b char(10) YES NULL
-c decimal(10,2) YES NULL
-alter table t1 add d decimal(15,5);
-"The key should still be disabled"
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE disabled
-drop table t1;
-"Now will test with one unique index"
-create table t1(a int, b char(10), unique(a));
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A NULL NULL NULL YES BTREE
-alter table t1 disable keys;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A NULL NULL NULL YES BTREE
-alter table t1 enable keys;
-"If no copy on noop change, this won't touch the data file"
-"Unique index, no change"
-alter table t1 modify a int, disable keys;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A NULL NULL NULL YES BTREE
-"Change the type implying data copy"
-"Unique index, no change"
-alter table t1 modify a bigint, disable keys;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A NULL NULL NULL YES BTREE
-alter table t1 modify a bigint;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A NULL NULL NULL YES BTREE
-alter table t1 modify a int;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A NULL NULL NULL YES BTREE
-drop table t1;
-"Now will test with one unique and one non-unique index"
-create table t1(a int, b char(10), unique(a), key(b));
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A NULL NULL NULL YES BTREE
-t1 1 b 1 b A NULL NULL NULL YES BTREE
-alter table t1 disable keys;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A NULL NULL NULL YES BTREE
-t1 1 b 1 b A NULL NULL NULL YES BTREE disabled
-alter table t1 enable keys;
-"If no copy on noop change, this won't touch the data file"
-"The non-unique index will be disabled"
-alter table t1 modify a int, disable keys;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A NULL NULL NULL YES BTREE
-t1 1 b 1 b A NULL NULL NULL YES BTREE disabled
-alter table t1 enable keys;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A NULL NULL NULL YES BTREE
-t1 1 b 1 b A NULL NULL NULL YES BTREE
-"Change the type implying data copy"
-"The non-unique index will be disabled"
-alter table t1 modify a bigint, disable keys;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A NULL NULL NULL YES BTREE
-t1 1 b 1 b A NULL NULL NULL YES BTREE disabled
-"Change again the type, but leave the indexes as_is"
-alter table t1 modify a int;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A NULL NULL NULL YES BTREE
-t1 1 b 1 b A NULL NULL NULL YES BTREE disabled
-"Try the same. When data is no copied on similar tables, this is noop"
-alter table t1 modify a int;
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 a 1 a A NULL NULL NULL YES BTREE
-t1 1 b 1 b A NULL NULL NULL YES BTREE disabled
-drop table t1;
-create database mysqltest;
-create table t1 (c1 int);
-alter table t1 rename mysqltest.t1;
-drop table t1;
-ERROR 42S02: Unknown table 'test.t1'
-alter table mysqltest.t1 rename t1;
-drop table t1;
-create table t1 (c1 int);
-use mysqltest;
-drop database mysqltest;
-alter table test.t1 rename t1;
-ERROR 3D000: No database selected
-alter table test.t1 rename test.t1;
-use test;
-drop table t1;
-CREATE TABLE t1(a INT) ROW_FORMAT=FIXED;
-CREATE INDEX i1 ON t1(a);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- KEY `i1` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED
-DROP INDEX i1 ON t1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED
-DROP TABLE t1;
-DROP TABLE IF EXISTS bug24219;
-DROP TABLE IF EXISTS bug24219_2;
-CREATE TABLE bug24219 (a INT, INDEX(a));
-SHOW INDEX FROM bug24219;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-bug24219 1 a 1 a A NULL NULL NULL YES BTREE
-ALTER TABLE bug24219 RENAME TO bug24219_2, DISABLE KEYS;
-SHOW INDEX FROM bug24219_2;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-bug24219_2 1 a 1 a A NULL NULL NULL YES BTREE disabled
-DROP TABLE bug24219_2;
-drop table if exists table_24562;
-create table table_24562(
-section int,
-subsection int,
-title varchar(50));
-insert into table_24562 values
-(1, 0, "Introduction"),
-(1, 1, "Authors"),
-(1, 2, "Acknowledgements"),
-(2, 0, "Basics"),
-(2, 1, "Syntax"),
-(2, 2, "Client"),
-(2, 3, "Server"),
-(3, 0, "Intermediate"),
-(3, 1, "Complex queries"),
-(3, 2, "Stored Procedures"),
-(3, 3, "Stored Functions"),
-(4, 0, "Advanced"),
-(4, 1, "Replication"),
-(4, 2, "Load balancing"),
-(4, 3, "High availability"),
-(5, 0, "Conclusion");
-select * from table_24562;
-section subsection title
-1 0 Introduction
-1 1 Authors
-1 2 Acknowledgements
-2 0 Basics
-2 1 Syntax
-2 2 Client
-2 3 Server
-3 0 Intermediate
-3 1 Complex queries
-3 2 Stored Procedures
-3 3 Stored Functions
-4 0 Advanced
-4 1 Replication
-4 2 Load balancing
-4 3 High availability
-5 0 Conclusion
-alter table table_24562 add column reviewer varchar(20),
-order by title;
-select * from table_24562;
-section subsection title reviewer
-1 2 Acknowledgements NULL
-4 0 Advanced NULL
-1 1 Authors NULL
-2 0 Basics NULL
-2 2 Client NULL
-3 1 Complex queries NULL
-5 0 Conclusion NULL
-4 3 High availability NULL
-3 0 Intermediate NULL
-1 0 Introduction NULL
-4 2 Load balancing NULL
-4 1 Replication NULL
-2 3 Server NULL
-3 3 Stored Functions NULL
-3 2 Stored Procedures NULL
-2 1 Syntax NULL
-update table_24562 set reviewer="Me" where section=2;
-update table_24562 set reviewer="You" where section=3;
-alter table table_24562
-order by section ASC, subsection DESC;
-select * from table_24562;
-section subsection title reviewer
-1 2 Acknowledgements NULL
-1 1 Authors NULL
-1 0 Introduction NULL
-2 3 Server Me
-2 2 Client Me
-2 1 Syntax Me
-2 0 Basics Me
-3 3 Stored Functions You
-3 2 Stored Procedures You
-3 1 Complex queries You
-3 0 Intermediate You
-4 3 High availability NULL
-4 2 Load balancing NULL
-4 1 Replication NULL
-4 0 Advanced NULL
-5 0 Conclusion NULL
-alter table table_24562
-order by table_24562.subsection ASC, table_24562.section DESC;
-select * from table_24562;
-section subsection title reviewer
-5 0 Conclusion NULL
-4 0 Advanced NULL
-3 0 Intermediate You
-2 0 Basics Me
-1 0 Introduction NULL
-4 1 Replication NULL
-3 1 Complex queries You
-2 1 Syntax Me
-1 1 Authors NULL
-4 2 Load balancing NULL
-3 2 Stored Procedures You
-2 2 Client Me
-1 2 Acknowledgements NULL
-4 3 High availability NULL
-3 3 Stored Functions You
-2 3 Server Me
-alter table table_24562 order by 12;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '12' at line 1
-alter table table_24562 order by (section + 12);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(section + 12)' at line 1
-alter table table_24562 order by length(title);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(title)' at line 1
-alter table table_24562 order by (select 12 from dual);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(select 12 from dual)' at line 1
-alter table table_24562 order by no_such_col;
-ERROR 42S22: Unknown column 'no_such_col' in 'order clause'
-drop table table_24562;
-create table t1 (mycol int(10) not null);
-alter table t1 alter column mycol set default 0;
-desc t1;
-Field Type Null Key Default Extra
-mycol int(10) NO 0
-drop table t1;
-create table t1(id int(8) primary key auto_increment) engine=heap;
-insert into t1 values (null);
-insert into t1 values (null);
-select * from t1;
-id
-1
-2
-alter table t1 auto_increment = 50;
-alter table t1 engine = myisam;
-insert into t1 values (null);
-select * from t1;
-id
-1
-2
-50
-alter table t1 engine = heap;
-insert into t1 values (null);
-select * from t1;
-id
-1
-2
-50
-51
-drop table t1;
-set @orig_sql_mode = @@sql_mode;
-set sql_mode="no_zero_date";
-create table t1(f1 int);
-alter table t1 add column f2 datetime not null, add column f21 date not null;
-insert into t1 values(1,'2000-01-01','2000-01-01');
-alter table t1 add column f3 datetime not null;
-ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'f3' at row 1
-alter table t1 add column f3 date not null;
-ERROR 22007: Incorrect date value: '0000-00-00' for column 'f3' at row 1
-alter table t1 add column f4 datetime not null default '2002-02-02',
-add column f41 date not null;
-ERROR 22007: Incorrect date value: '0000-00-00' for column 'f41' at row 1
-alter table t1 add column f4 datetime not null default '2002-02-02',
-add column f41 date not null default '2002-02-02';
-select * from t1;
-f1 f2 f21 f4 f41
-1 2000-01-01 00:00:00 2000-01-01 2002-02-02 00:00:00 2002-02-02
-drop table t1;
-set sql_mode= @orig_sql_mode;
-create table t1 (v varchar(32));
-insert into t1 values ('def'),('abc'),('hij'),('3r4f');
-select * from t1;
-v
-def
-abc
-hij
-3r4f
-alter table t1 change v v2 varchar(32);
-select * from t1;
-v2
-def
-abc
-hij
-3r4f
-alter table t1 change v2 v varchar(64);
-select * from t1;
-v
-def
-abc
-hij
-3r4f
-update t1 set v = 'lmn' where v = 'hij';
-select * from t1;
-v
-def
-abc
-lmn
-3r4f
-alter table t1 add i int auto_increment not null primary key first;
-select * from t1;
-i v
-1 def
-2 abc
-3 lmn
-4 3r4f
-update t1 set i=5 where i=3;
-select * from t1;
-i v
-1 def
-2 abc
-5 lmn
-4 3r4f
-alter table t1 change i i bigint;
-select * from t1;
-i v
-1 def
-2 abc
-5 lmn
-4 3r4f
-alter table t1 add unique key (i, v);
-select * from t1 where i between 2 and 4 and v in ('def','3r4f','lmn');
-i v
-4 3r4f
-drop table t1;
-create table t1 (t varchar(255) default null, key t (t(80)))
-engine=myisam default charset=latin1;
-alter table t1 change t t text;
-drop table t1;
-CREATE TABLE t1 (a varchar(500));
-ALTER TABLE t1 ADD b GEOMETRY NOT NULL, ADD SPATIAL INDEX(b);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(500) DEFAULT NULL,
- `b` geometry NOT NULL,
- SPATIAL KEY `b` (`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 ADD KEY(b(50));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(500) DEFAULT NULL,
- `b` geometry NOT NULL,
- SPATIAL KEY `b` (`b`),
- KEY `b_2` (`b`(50))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 ADD c POINT;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(500) DEFAULT NULL,
- `b` geometry NOT NULL,
- `c` point DEFAULT NULL,
- SPATIAL KEY `b` (`b`),
- KEY `b_2` (`b`(50))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 (a INT, KEY (a(20)));
-ERROR HY000: Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
-ALTER TABLE t1 ADD d INT;
-ALTER TABLE t1 ADD KEY (d(20));
-ERROR HY000: Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
-ALTER TABLE t1 ADD e GEOMETRY NOT NULL, ADD SPATIAL KEY (e(30));
-ERROR HY000: Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
-DROP TABLE t1;
-CREATE TABLE t1 (s CHAR(8) BINARY);
-INSERT INTO t1 VALUES ('test');
-SELECT LENGTH(s) FROM t1;
-LENGTH(s)
-4
-ALTER TABLE t1 MODIFY s CHAR(10) BINARY;
-SELECT LENGTH(s) FROM t1;
-LENGTH(s)
-4
-DROP TABLE t1;
-CREATE TABLE t1 (s BINARY(8));
-INSERT INTO t1 VALUES ('test');
-SELECT LENGTH(s) FROM t1;
-LENGTH(s)
-8
-SELECT HEX(s) FROM t1;
-HEX(s)
-7465737400000000
-ALTER TABLE t1 MODIFY s BINARY(10);
-SELECT HEX(s) FROM t1;
-HEX(s)
-74657374000000000000
-SELECT LENGTH(s) FROM t1;
-LENGTH(s)
-10
-DROP TABLE t1;
-CREATE TABLE t1 (v VARCHAR(3), b INT);
-INSERT INTO t1 VALUES ('abc', 5);
-SELECT * FROM t1;
-v b
-abc 5
-ALTER TABLE t1 MODIFY COLUMN v VARCHAR(4);
-SELECT * FROM t1;
-v b
-abc 5
-DROP TABLE t1;
-create table t1 (a tinytext character set latin1);
-alter table t1 convert to character set utf8;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-drop table t1;
-create table t1 (a mediumtext character set latin1);
-alter table t1 convert to character set utf8;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-drop table t1;
-End of 5.0 tests
-drop table if exists t1, t2, t3;
-create table t1 (i int);
-create table t3 (j int);
-insert into t1 values ();
-insert into t3 values ();
-lock table t1 write, t3 read;
-alter table t1 modify i int default 1;
-insert into t1 values ();
-select * from t1;
-i
-NULL
-1
-alter table t1 change i c char(10) default "Two";
-insert into t1 values ();
-select * from t1;
-c
-NULL
-1
-Two
-alter table t1 modify c char(10) default "Three", rename to t2;
-select * from t1;
-ERROR HY000: Table 't1' was not locked with LOCK TABLES
-select * from t2;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-select * from t3;
-j
-NULL
-unlock tables;
-insert into t2 values ();
-select * from t2;
-c
-NULL
-1
-Two
-Three
-lock table t2 write, t3 read;
-alter table t2 change c vc varchar(100) default "Four", rename to t1;
-select * from t1;
-ERROR HY000: Table 't1' was not locked with LOCK TABLES
-select * from t2;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-select * from t3;
-j
-NULL
-unlock tables;
-insert into t1 values ();
-select * from t1;
-vc
-NULL
-1
-Two
-Three
-Four
-drop tables t1, t3;
-DROP TABLE IF EXISTS `t+1`, `t+2`;
-CREATE TABLE `t+1` (c1 INT);
-ALTER TABLE `t+1` RENAME `t+2`;
-CREATE TABLE `t+1` (c1 INT);
-ALTER TABLE `t+1` RENAME `t+2`;
-ERROR 42S01: Table 't+2' already exists
-DROP TABLE `t+1`, `t+2`;
-CREATE TEMPORARY TABLE `tt+1` (c1 INT);
-ALTER TABLE `tt+1` RENAME `tt+2`;
-CREATE TEMPORARY TABLE `tt+1` (c1 INT);
-ALTER TABLE `tt+1` RENAME `tt+2`;
-ERROR 42S01: Table 'tt+2' already exists
-SHOW CREATE TABLE `tt+1`;
-Table Create Table
-tt+1 CREATE TEMPORARY TABLE `tt+1` (
- `c1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE `tt+2`;
-Table Create Table
-tt+2 CREATE TEMPORARY TABLE `tt+2` (
- `c1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE `tt+1`, `tt+2`;
-CREATE TABLE `#sql1` (c1 INT);
-CREATE TABLE `@0023sql2` (c1 INT);
-SHOW TABLES;
-Tables_in_test
-#sql1
-@0023sql2
-RENAME TABLE `#sql1` TO `@0023sql1`;
-RENAME TABLE `@0023sql2` TO `#sql2`;
-SHOW TABLES;
-Tables_in_test
-#sql2
-@0023sql1
-ALTER TABLE `@0023sql1` RENAME `#sql-1`;
-ALTER TABLE `#sql2` RENAME `@0023sql-2`;
-SHOW TABLES;
-Tables_in_test
-#sql-1
-@0023sql-2
-INSERT INTO `#sql-1` VALUES (1);
-INSERT INTO `@0023sql-2` VALUES (2);
-DROP TABLE `#sql-1`, `@0023sql-2`;
-CREATE TEMPORARY TABLE `#sql1` (c1 INT);
-CREATE TEMPORARY TABLE `@0023sql2` (c1 INT);
-SHOW TABLES;
-Tables_in_test
-ALTER TABLE `#sql1` RENAME `@0023sql1`;
-ALTER TABLE `@0023sql2` RENAME `#sql2`;
-SHOW TABLES;
-Tables_in_test
-INSERT INTO `#sql2` VALUES (1);
-INSERT INTO `@0023sql1` VALUES (2);
-SHOW CREATE TABLE `#sql2`;
-Table Create Table
-#sql2 CREATE TEMPORARY TABLE `#sql2` (
- `c1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE `@0023sql1`;
-Table Create Table
-@0023sql1 CREATE TEMPORARY TABLE `@0023sql1` (
- `c1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE `#sql2`, `@0023sql1`;
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-CREATE TABLE t1 (
-int_field INTEGER UNSIGNED NOT NULL,
-char_field CHAR(10),
-INDEX(`int_field`)
-);
-DESCRIBE t1;
-Field Type Null Key Default Extra
-int_field int(10) unsigned NO MUL NULL
-char_field char(10) YES NULL
-SHOW INDEXES FROM t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 int_field 1 int_field A NULL NULL NULL BTREE
-INSERT INTO t1 VALUES (1, "edno"), (1, "edno"), (2, "dve"), (3, "tri"), (5, "pet");
-"Non-copy data change - new frm, but old data and index files"
-ALTER TABLE t1
-CHANGE int_field unsigned_int_field INTEGER UNSIGNED NOT NULL,
-RENAME t2;
-SELECT * FROM t1 ORDER BY int_field;
-ERROR 42S02: Table 'test.t1' doesn't exist
-SELECT * FROM t2 ORDER BY unsigned_int_field;
-unsigned_int_field char_field
-1 edno
-1 edno
-2 dve
-3 tri
-5 pet
-DESCRIBE t2;
-Field Type Null Key Default Extra
-unsigned_int_field int(10) unsigned NO MUL NULL
-char_field char(10) YES NULL
-DESCRIBE t2;
-Field Type Null Key Default Extra
-unsigned_int_field int(10) unsigned NO MUL NULL
-char_field char(10) YES NULL
-ALTER TABLE t2 MODIFY unsigned_int_field BIGINT UNSIGNED NOT NULL;
-DESCRIBE t2;
-Field Type Null Key Default Extra
-unsigned_int_field bigint(20) unsigned NO MUL NULL
-char_field char(10) YES NULL
-DROP TABLE t2;
-CREATE TABLE t1 (f1 INT, f2 INT, f3 INT);
-INSERT INTO t1 VALUES (1, 2, NULL);
-SELECT * FROM t1;
-f1 f2 f3
-1 2 NULL
-ALTER TABLE t1 MODIFY COLUMN f3 INT AFTER f1;
-SELECT * FROM t1;
-f1 f3 f2
-1 NULL 2
-ALTER TABLE t1 MODIFY COLUMN f3 INT AFTER f2;
-SELECT * FROM t1;
-f1 f2 f3
-1 2 NULL
-DROP TABLE t1;
-create table t1 (c char(10) default "Two");
-lock table t1 write;
-insert into t1 values ();
-alter table t1 modify c char(10) default "Three";
-unlock tables;
-select * from t1;
-c
-Two
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (id int, c int) character set latin1;
-INSERT INTO t1 VALUES (1,1);
-ALTER TABLE t1 CHANGE c d int;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 CHANGE d c int;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 MODIFY c VARCHAR(10);
-affected rows: 1
-info: Records: 1 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 CHANGE c d varchar(10);
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 CHANGE d c varchar(10);
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (id int, c int) character set utf8;
-INSERT INTO t1 VALUES (1,1);
-ALTER TABLE t1 CHANGE c d int;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 CHANGE d c int;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 MODIFY c VARCHAR(10);
-affected rows: 1
-info: Records: 1 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 CHANGE c d varchar(10);
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 CHANGE d c varchar(10);
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-DROP TABLE t1;
-create table t1(f1 int not null, f2 int not null, key (f1), key (f2));
-select index_length into @unpaked_keys_size from
-information_schema.tables where table_name='t1';
-alter table t1 pack_keys=1;
-select index_length into @paked_keys_size from
-information_schema.tables where table_name='t1';
-select (@unpaked_keys_size > @paked_keys_size);
-(@unpaked_keys_size > @paked_keys_size)
-1
-select max_data_length into @orig_max_data_length from
-information_schema.tables where table_name='t1';
-alter table t1 max_rows=100;
-select max_data_length into @changed_max_data_length from
-information_schema.tables where table_name='t1';
-select (@orig_max_data_length > @changed_max_data_length);
-(@orig_max_data_length > @changed_max_data_length)
-1
-drop table t1;
-CREATE TABLE t1(a INT AUTO_INCREMENT PRIMARY KEY,
-b ENUM('a', 'b', 'c') NOT NULL);
-INSERT INTO t1 (b) VALUES ('a'), ('c'), ('b'), ('b'), ('a');
-ALTER TABLE t1 MODIFY b ENUM('a', 'z', 'b', 'c') NOT NULL;
-SELECT * FROM t1;
-a b
-1 a
-2 c
-3 b
-4 b
-5 a
-DROP TABLE t1;
-SET @save_sql_mode=@@sql_mode;
-SET sql_mode=strict_all_tables;
-CREATE TABLE t1 (a int NOT NULL default 42);
-INSERT INTO t1 values ();
-SELECT * FROM t1;
-a
-42
-ALTER TABLE t1 ALTER COLUMN a DROP DEFAULT;
-INSERT INTO t1 values ();
-ERROR HY000: Field 'a' doesn't have a default value
-INSERT INTO t1 (a) VALUES (11);
-SELECT * FROM t1 ORDER BY a;
-a
-11
-42
-DROP TABLE t1;
-SET @@sql_mode=@save_sql_mode;
-#
-# Bug#45567: Fast ALTER TABLE broken for enum and set
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a ENUM('a1','a2'));
-INSERT INTO t1 VALUES ('a1'),('a2');
-# No copy: No modification
-ALTER TABLE t1 MODIFY COLUMN a ENUM('a1','a2');
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-# No copy: Add new enumeration to the end
-ALTER TABLE t1 MODIFY COLUMN a ENUM('a1','a2','a3');
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-# Copy: Modify and add new to the end
-ALTER TABLE t1 MODIFY COLUMN a ENUM('a1','a2','xx','a5');
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-# Copy: Remove from the end
-ALTER TABLE t1 MODIFY COLUMN a ENUM('a1','a2','xx');
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-# Copy: Add new enumeration
-ALTER TABLE t1 MODIFY COLUMN a ENUM('a1','a2','a0','xx');
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-# No copy: Add new enumerations to the end
-ALTER TABLE t1 MODIFY COLUMN a ENUM('a1','a2','a0','xx','a5','a6');
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-DROP TABLE t1;
-CREATE TABLE t1 (a SET('a1','a2'));
-INSERT INTO t1 VALUES ('a1'),('a2');
-# No copy: No modification
-ALTER TABLE t1 MODIFY COLUMN a SET('a1','a2');
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-# No copy: Add new to the end
-ALTER TABLE t1 MODIFY COLUMN a SET('a1','a2','a3');
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-# Copy: Modify and add new to the end
-ALTER TABLE t1 MODIFY COLUMN a SET('a1','a2','xx','a5');
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-# Copy: Remove from the end
-ALTER TABLE t1 MODIFY COLUMN a SET('a1','a2','xx');
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-# Copy: Add new member
-ALTER TABLE t1 MODIFY COLUMN a SET('a1','a2','a0','xx');
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-# No copy: Add new to the end
-ALTER TABLE t1 MODIFY COLUMN a SET('a1','a2','a0','xx','a5','a6');
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-# Copy: Numerical incrase (pack lenght)
-ALTER TABLE t1 MODIFY COLUMN a SET('a1','a2','a0','xx','a5','a6','a7','a8','a9','a10');
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-DROP TABLE t1;
-CREATE TABLE t1 (f1 TIMESTAMP NULL DEFAULT NULL,
-f2 INT(11) DEFAULT NULL) ENGINE=MYISAM DEFAULT CHARSET=utf8;
-INSERT INTO t1 VALUES (NULL, NULL), ("2009-10-09 11:46:19", 2);
-this should affect no rows as there is no real change
-ALTER TABLE t1 CHANGE COLUMN f1 f1_no_real_change TIMESTAMP NULL DEFAULT NULL;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-DROP TABLE t1;
-#
-# Bug #31145: ALTER TABLE DROP COLUMN, ADD COLUMN crashes (linux)
-# or freezes (win) the server
-#
-CREATE TABLE t1 (a TEXT, id INT, b INT);
-ALTER TABLE t1 DROP COLUMN a, ADD COLUMN c TEXT FIRST;
-DROP TABLE t1;
-#
-# Test for bug #12652385 - "61493: REORDERING COLUMNS TO POSITION
-# FIRST CAN CAUSE DATA TO BE CORRUPTED".
-#
-drop table if exists t1;
-# Use MyISAM engine as the fact that InnoDB doesn't support
-# in-place ALTER TABLE in cases when columns are being renamed
-# hides some bugs.
-create table t1 (i int, j int) engine=myisam;
-insert into t1 value (1, 2);
-# First, test for original problem described in the bug report.
-select * from t1;
-i j
-1 2
-# Change of column order by the below ALTER TABLE statement should
-# affect both column names and column contents.
-alter table t1 modify column j int first;
-select * from t1;
-j i
-2 1
-# Now test for similar problem with the same root.
-# The below ALTER TABLE should change not only the name but
-# also the value for the last column of the table.
-alter table t1 drop column i, add column k int default 0;
-select * from t1;
-j k
-2 0
-# Clean-up.
-drop table t1;
-End of 5.1 tests
-CREATE TABLE t1(c CHAR(10),
-i INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY);
-INSERT INTO t1 VALUES('a',2),('b',4),('c',6);
-ALTER TABLE t1
-DROP i,
-ADD i INT UNSIGNED NOT NULL AUTO_INCREMENT,
-AUTO_INCREMENT = 1;
-DROP TABLE t1;
-CREATE TABLE t1 (a CHAR(1), PRIMARY KEY (a(255)));
-ERROR HY000: Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
-CREATE TABLE t1 (a CHAR(1));
-ALTER TABLE t1 ADD PRIMARY KEY (a(20));
-ERROR HY000: Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
-ALTER TABLE t1 ADD KEY (a(20));
-ERROR HY000: Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
-CREATE UNIQUE INDEX i1 ON t1 (a(20));
-ERROR HY000: Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
-CREATE INDEX i2 ON t1 (a(20));
-ERROR HY000: Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
-DROP TABLE t1;
-CREATE TABLE t1 (id int);
-INSERT INTO t1 VALUES (1), (2);
-ALTER TABLE t1 ADD COLUMN (f1 INT), ADD COLUMN (f2 INT), ADD KEY f2k(f2);
-DROP TABLE t1;
-#
-# Test for bug #53820 "ALTER a MEDIUMINT column table causes full
-# table copy".
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT, b MEDIUMINT);
-INSERT INTO t1 VALUES (1, 1), (2, 2);
-# The below ALTER should not copy table and so no rows should
-# be shown as affected.
-ALTER TABLE t1 CHANGE a id INT;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-DROP TABLE t1;
-#
-# Bug#11754461 CANNOT ALTER TABLE WHEN KEY PREFIX TOO LONG
-#
-DROP DATABASE IF EXISTS db1;
-CREATE DATABASE db1 CHARACTER SET utf8;
-CREATE TABLE db1.t1 (bar TINYTEXT, KEY (bar(100)));
-ALTER TABLE db1.t1 ADD baz INT;
-DROP DATABASE db1;
-# Additional coverage for refactoring which is made as part
-# of fix for bug #27480 "Extend CREATE TEMPORARY TABLES privilege
-# to allow temp table operations".
-#
-# At some point the below test case failed on assertion.
-DROP TABLE IF EXISTS t1;
-CREATE TEMPORARY TABLE t1 (i int) ENGINE=MyISAM;
-ALTER TABLE t1 DISCARD TABLESPACE;
-ERROR HY000: Storage engine MyISAM of the table `test`.`t1` doesn't have this option
-DROP TABLE t1;
-#
-# Bug#11938039 RE-EXECUTION OF FRM-ONLY ALTER TABLE WITH RENAME
-# CLAUSE FAILS OR ABORTS SERVER.
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt1 from 'alter table t1 alter column a set default 1, rename to t2';
-execute stmt1;
-rename table t2 to t1;
-# The below statement should succeed and not emit error or abort server.
-execute stmt1;
-deallocate prepare stmt1;
-drop table t2;
-#
-# MDEV-8960 Can't refer the same column twice in one ALTER TABLE
-#
-CREATE TABLE t1 (
-`a` int(11) DEFAULT NULL
-) DEFAULT CHARSET=utf8;
-ALTER TABLE t1 ADD COLUMN `consultant_id` integer NOT NULL,
-ALTER COLUMN `consultant_id` DROP DEFAULT;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `consultant_id` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-DROP TABLE t1;
-CREATE TABLE t1 (
-`a` int(11) DEFAULT NULL
-) DEFAULT CHARSET=utf8;
-ALTER TABLE t1 ADD COLUMN `consultant_id` integer NOT NULL,
-ALTER COLUMN `consultant_id` SET DEFAULT 2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `consultant_id` int(11) NOT NULL DEFAULT 2
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-DROP TABLE t1;
-CREATE TABLE t1 (
-`a` int(11) DEFAULT NULL
-) DEFAULT CHARSET=utf8;
-ALTER TABLE t1 ADD COLUMN `consultant_id` integer NOT NULL DEFAULT 2,
-ALTER COLUMN `consultant_id` DROP DEFAULT;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `consultant_id` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-DROP TABLE t1;
-CREATE TABLE t1 (
-`a` int(11) DEFAULT NULL
-) DEFAULT CHARSET=utf8;
-ALTER TABLE t1 ADD COLUMN `consultant_id` integer NOT NULL DEFAULT 2,
-ALTER COLUMN `consultant_id` DROP DEFAULT,
-MODIFY COLUMN `consultant_id` BIGINT;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `consultant_id` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-DROP TABLE t1;
-CREATE TABLE t1 (
-id INT(11) NOT NULL,
-x_param INT(11) DEFAULT NULL,
-PRIMARY KEY (id)
-) ENGINE=MYISAM;
-ALTER TABLE t1 ADD COLUMN IF NOT EXISTS id INT,
-ADD COLUMN IF NOT EXISTS lol INT AFTER id;
-Warnings:
-Note 1060 Duplicate column name 'id'
-ALTER TABLE t1 ADD COLUMN IF NOT EXISTS lol INT AFTER id;
-Warnings:
-Note 1060 Duplicate column name 'lol'
-ALTER TABLE t1 DROP COLUMN IF EXISTS lol;
-ALTER TABLE t1 DROP COLUMN IF EXISTS lol;
-Warnings:
-Note 1091 Can't DROP COLUMN `lol`; check that it exists
-ALTER TABLE t1 ADD KEY IF NOT EXISTS x_param(x_param);
-ALTER TABLE t1 ADD KEY IF NOT EXISTS x_param(x_param);
-Warnings:
-Note 1061 Duplicate key name 'x_param'
-ALTER TABLE t1 MODIFY IF EXISTS lol INT;
-Warnings:
-Note 1054 Unknown column 'lol' in 't1'
-DROP INDEX IF EXISTS x_param ON t1;
-DROP INDEX IF EXISTS x_param ON t1;
-Warnings:
-Note 1091 Can't DROP INDEX `x_param`; check that it exists
-CREATE INDEX IF NOT EXISTS x_param1 ON t1(x_param);
-CREATE INDEX IF NOT EXISTS x_param1 ON t1(x_param);
-Warnings:
-Note 1061 Duplicate key name 'x_param1'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL,
- `x_param` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `x_param1` (`x_param`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (
-id INT(11) NOT NULL,
-x_param INT(11) DEFAULT NULL,
-PRIMARY KEY (id)
-) ENGINE=INNODB;
-CREATE TABLE t2 (
-id INT(11) NOT NULL) ENGINE=INNODB;
-ALTER TABLE t1 ADD COLUMN IF NOT EXISTS id INT,
-ADD COLUMN IF NOT EXISTS lol INT AFTER id;
-Warnings:
-Note 1060 Duplicate column name 'id'
-ALTER TABLE t1 ADD COLUMN IF NOT EXISTS lol INT AFTER id;
-Warnings:
-Note 1060 Duplicate column name 'lol'
-ALTER TABLE t1 DROP COLUMN IF EXISTS lol;
-ALTER TABLE t1 DROP COLUMN IF EXISTS lol;
-Warnings:
-Note 1091 Can't DROP COLUMN `lol`; check that it exists
-ALTER TABLE t1 ADD KEY IF NOT EXISTS x_param(x_param);
-ALTER TABLE t1 ADD KEY IF NOT EXISTS x_param(x_param);
-Warnings:
-Note 1061 Duplicate key name 'x_param'
-ALTER TABLE t1 MODIFY IF EXISTS lol INT;
-Warnings:
-Note 1054 Unknown column 'lol' in 't1'
-DROP INDEX IF EXISTS x_param ON t1;
-DROP INDEX IF EXISTS x_param ON t1;
-Warnings:
-Note 1091 Can't DROP INDEX `x_param`; check that it exists
-CREATE INDEX IF NOT EXISTS x_param1 ON t1(x_param);
-CREATE INDEX IF NOT EXISTS x_param1 ON t1(x_param);
-Warnings:
-Note 1061 Duplicate key name 'x_param1'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL,
- `x_param` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `x_param1` (`x_param`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-ALTER TABLE t2 ADD FOREIGN KEY IF NOT EXISTS fk(id) REFERENCES t1(id);
-ALTER TABLE t2 ADD FOREIGN KEY IF NOT EXISTS fk(id) REFERENCES t1(id);
-Warnings:
-Note 1061 Duplicate key name 'fk'
-ALTER TABLE t2 DROP FOREIGN KEY IF EXISTS fk;
-ALTER TABLE t2 DROP FOREIGN KEY IF EXISTS fk;
-Warnings:
-Note 1091 Can't DROP FOREIGN KEY `fk`; check that it exists
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `id` int(11) NOT NULL,
- KEY `fk` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-ALTER TABLE t2 ADD FOREIGN KEY (id) REFERENCES t1(id);
-ALTER TABLE t2 ADD FOREIGN KEY IF NOT EXISTS t2_ibfk_1(id) REFERENCES t1(id);
-Warnings:
-Note 1061 Duplicate key name 't2_ibfk_1'
-ALTER TABLE t2 DROP FOREIGN KEY IF EXISTS t2_ibfk_1;
-ALTER TABLE t2 DROP FOREIGN KEY IF EXISTS t2_ibfk_1;
-Warnings:
-Note 1091 Can't DROP FOREIGN KEY `t2_ibfk_1`; check that it exists
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `id` int(11) NOT NULL,
- KEY `id` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 (
-id INT(11) NOT NULL);
-ALTER TABLE t2 ADD COLUMN a INT, ADD COLUMN IF NOT EXISTS a INT;
-Warnings:
-Note 1060 Duplicate column name 'a'
-ALTER TABLE t2 ADD KEY k_id(id), ADD KEY IF NOT EXISTS k_id(id);
-Warnings:
-Note 1061 Duplicate key name 'k_id'
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `id` int(11) NOT NULL,
- `a` int(11) DEFAULT NULL,
- KEY `k_id` (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t2 DROP KEY k_id, DROP KEY IF EXISTS k_id;
-Warnings:
-Note 1091 Can't DROP INDEX `k_id`; check that it exists
-ALTER TABLE t2 DROP COLUMN a, DROP COLUMN IF EXISTS a;
-Warnings:
-Note 1091 Can't DROP COLUMN `a`; check that it exists
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `id` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (
-`transaction_id` int(11) NOT NULL DEFAULT '0',
-KEY `transaction_id` (`transaction_id`));
-ALTER TABLE t1 DROP KEY IF EXISTS transaction_id, ADD PRIMARY KEY IF NOT EXISTS (transaction_id);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `transaction_id` int(11) NOT NULL DEFAULT 0,
- PRIMARY KEY (`transaction_id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-# Bug#11748057 (formerly known as 34972): ALTER TABLE statement doesn't
-# identify correct column name.
-#
-CREATE TABLE t1 (c1 int unsigned , c2 char(100) not null default '');
-ALTER TABLE t1 ADD c3 char(16) NOT NULL DEFAULT '' AFTER c2,
-MODIFY c2 char(100) NOT NULL DEFAULT '' AFTER c1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(10) unsigned DEFAULT NULL,
- `c2` char(100) NOT NULL DEFAULT '',
- `c3` char(16) NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# WL#5534 Online ALTER, Phase 1
-#
-# Single thread tests.
-# See innodb_mysql_sync.test for multi thread tests.
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT PRIMARY KEY, b INT) engine=InnoDB;
-CREATE TABLE m1(a INT PRIMARY KEY, b INT) engine=MyISAM;
-INSERT INTO t1 VALUES (1,1), (2,2);
-INSERT INTO m1 VALUES (1,1), (2,2);
-#
-# 1: Test ALGORITHM keyword
-#
-# --enable_info allows us to see how many rows were updated
-# by ALTER TABLE. in-place will show 0 rows, while copy > 0.
-ALTER TABLE t1 ADD INDEX i1(b);
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 ADD INDEX i2(b), ALGORITHM= DEFAULT;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 1
-Warnings:
-Note 1831 Duplicate index `i2`. This is deprecated and will be disallowed in a future release
-ALTER TABLE t1 ADD INDEX i3(b), ALGORITHM= COPY;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 1
-Warnings:
-Note 1831 Duplicate index `i3`. This is deprecated and will be disallowed in a future release
-ALTER TABLE t1 ADD INDEX i4(b), ALGORITHM= INPLACE;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 1
-Warnings:
-Note 1831 Duplicate index `i4`. This is deprecated and will be disallowed in a future release
-ALTER TABLE t1 ADD INDEX i5(b), ALGORITHM= INVALID;
-ERROR HY000: Unknown ALGORITHM 'INVALID'
-ALTER TABLE m1 ENABLE KEYS;
-affected rows: 0
-ALTER TABLE m1 ENABLE KEYS, ALGORITHM= DEFAULT;
-affected rows: 0
-ALTER TABLE m1 ENABLE KEYS, ALGORITHM= COPY;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE m1 ENABLE KEYS, ALGORITHM= INPLACE;
-affected rows: 0
-ALTER TABLE t1 DROP INDEX i1, DROP INDEX i2, DROP INDEX i3, DROP INDEX i4;
-#
-# 2: Test ALGORITHM + old_alter_table
-#
-SET SESSION old_alter_table= 1;
-affected rows: 0
-ALTER TABLE t1 ADD INDEX i1(b);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 ADD INDEX i2(b), ALGORITHM= DEFAULT;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 1
-Warnings:
-Note 1831 Duplicate index `i2`. This is deprecated and will be disallowed in a future release
-ALTER TABLE t1 ADD INDEX i3(b), ALGORITHM= COPY;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 1
-Warnings:
-Note 1831 Duplicate index `i3`. This is deprecated and will be disallowed in a future release
-ALTER TABLE t1 ADD INDEX i4(b), ALGORITHM= INPLACE;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 1
-Warnings:
-Note 1831 Duplicate index `i4`. This is deprecated and will be disallowed in a future release
-SET SESSION old_alter_table= 0;
-affected rows: 0
-ALTER TABLE t1 DROP INDEX i1, DROP INDEX i2, DROP INDEX i3, DROP INDEX i4;
-#
-# 3: Test unsupported in-place operation
-#
-ALTER TABLE t1 ADD COLUMN (c1 INT);
-ALTER TABLE t1 ADD COLUMN (c2 INT), ALGORITHM= DEFAULT;
-ALTER TABLE t1 ADD COLUMN (c3 INT), ALGORITHM= COPY;
-ALTER TABLE t1 ADD COLUMN (c4 INT), ALGORITHM= INPLACE;
-ALTER TABLE t1 DROP COLUMN c1, DROP COLUMN c2, DROP COLUMN c3, DROP COLUMN c4;
-#
-# 4: Test LOCK keyword
-#
-ALTER TABLE t1 ADD INDEX i1(b), LOCK= DEFAULT;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 ADD INDEX i2(b), LOCK= NONE;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 1
-Warnings:
-Note 1831 Duplicate index `i2`. This is deprecated and will be disallowed in a future release
-ALTER TABLE t1 ADD INDEX i3(b), LOCK= SHARED;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 1
-Warnings:
-Note 1831 Duplicate index `i3`. This is deprecated and will be disallowed in a future release
-ALTER TABLE t1 ADD INDEX i4(b), LOCK= EXCLUSIVE;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 1
-Warnings:
-Note 1831 Duplicate index `i4`. This is deprecated and will be disallowed in a future release
-ALTER TABLE t1 ADD INDEX i5(b), LOCK= INVALID;
-ERROR HY000: Unknown LOCK type 'INVALID'
-ALTER TABLE m1 ENABLE KEYS, LOCK= DEFAULT;
-ALTER TABLE m1 ENABLE KEYS, LOCK= NONE;
-ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE
-ALTER TABLE m1 ENABLE KEYS, LOCK= SHARED;
-ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE
-ALTER TABLE m1 ENABLE KEYS, LOCK= EXCLUSIVE;
-ALTER TABLE t1 DROP INDEX i1, DROP INDEX i2, DROP INDEX i3, DROP INDEX i4;
-#
-# 5: Test ALGORITHM + LOCK
-#
-ALTER TABLE t1 ADD INDEX i1(b), ALGORITHM= INPLACE, LOCK= NONE;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 ADD INDEX i2(b), ALGORITHM= INPLACE, LOCK= SHARED;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 1
-Warnings:
-Note 1831 Duplicate index `i2`. This is deprecated and will be disallowed in a future release
-ALTER TABLE t1 ADD INDEX i3(b), ALGORITHM= INPLACE, LOCK= EXCLUSIVE;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 1
-Warnings:
-Note 1831 Duplicate index `i3`. This is deprecated and will be disallowed in a future release
-ALTER TABLE t1 ADD INDEX i4(b), ALGORITHM= COPY, LOCK= NONE;
-ERROR 0A000: LOCK=NONE is not supported. Reason: COPY algorithm requires a lock. Try LOCK=SHARED
-ALTER TABLE t1 ADD INDEX i5(b), ALGORITHM= COPY, LOCK= SHARED;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 1
-Warnings:
-Note 1831 Duplicate index `i5`. This is deprecated and will be disallowed in a future release
-ALTER TABLE t1 ADD INDEX i6(b), ALGORITHM= COPY, LOCK= EXCLUSIVE;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 1
-Warnings:
-Note 1831 Duplicate index `i6`. This is deprecated and will be disallowed in a future release
-ALTER TABLE m1 ENABLE KEYS, ALGORITHM= INPLACE, LOCK= NONE;
-ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE
-ALTER TABLE m1 ENABLE KEYS, ALGORITHM= INPLACE, LOCK= SHARED;
-ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE
-ALTER TABLE m1 ENABLE KEYS, ALGORITHM= INPLACE, LOCK= EXCLUSIVE;
-affected rows: 0
-ALTER TABLE m1 ENABLE KEYS, ALGORITHM= COPY, LOCK= NONE;
-ERROR 0A000: LOCK=NONE is not supported. Reason: COPY algorithm requires a lock. Try LOCK=SHARED
-ALTER ONLINE TABLE m1 ADD COLUMN c int;
-ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
-ALTER TABLE m1 ENABLE KEYS, ALGORITHM= COPY, LOCK= SHARED;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE m1 ENABLE KEYS, ALGORITHM= COPY, LOCK= EXCLUSIVE;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-DROP TABLE t1, m1;
-#
-# 6: Possible deadlock involving thr_lock.c
-#
-CREATE TABLE t1(a INT PRIMARY KEY, b INT);
-INSERT INTO t1 VALUES (1,1), (2,2);
-START TRANSACTION;
-INSERT INTO t1 VALUES (3,3);
-connect con1, localhost, root;
-# Sending:
-ALTER TABLE t1 DISABLE KEYS;
-connection default;
-# Waiting until ALTER TABLE is blocked.
-UPDATE t1 SET b = 4;
-COMMIT;
-connection con1;
-# Reaping: ALTER TABLE t1 DISABLE KEYS
-disconnect con1;
-connection default;
-DROP TABLE t1;
-#
-# 7: Which operations require copy and which can be done in-place?
-#
-# Test which ALTER TABLE operations are done in-place and
-# which operations are done using temporary table copy.
-#
-# --enable_info allows us to see how many rows were updated
-# by ALTER TABLE. in-place will show 0 rows, while copy > 0.
-#
-DROP TABLE IF EXISTS ti1, ti2, ti3, tm1, tm2, tm3;
-# Single operation tests
-CREATE TABLE ti1(a INT NOT NULL, b INT, c INT) engine=InnoDB;
-CREATE TABLE tm1(a INT NOT NULL, b INT, c INT) engine=MyISAM;
-CREATE TABLE ti2(a INT PRIMARY KEY AUTO_INCREMENT, b INT, c INT) engine=InnoDB;
-CREATE TABLE tm2(a INT PRIMARY KEY AUTO_INCREMENT, b INT, c INT) engine=MyISAM;
-INSERT INTO ti1 VALUES (1,1,1), (2,2,2);
-INSERT INTO ti2 VALUES (1,1,1), (2,2,2);
-INSERT INTO tm1 VALUES (1,1,1), (2,2,2);
-INSERT INTO tm2 VALUES (1,1,1), (2,2,2);
-ALTER TABLE ti1;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 ADD COLUMN d VARCHAR(200);
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 ADD COLUMN d VARCHAR(200);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 ADD COLUMN d2 VARCHAR(200);
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 ADD COLUMN d2 VARCHAR(200);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 ADD COLUMN e ENUM('a', 'b') FIRST;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 ADD COLUMN e ENUM('a', 'b') FIRST;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 ADD COLUMN f INT AFTER a;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 ADD COLUMN f INT AFTER a;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 ADD INDEX ii1(b);
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 ADD INDEX im1(b);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 ADD UNIQUE INDEX ii2 (c);
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 ADD UNIQUE INDEX im2 (c);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 ADD FULLTEXT INDEX ii3 (d);
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 1
-Warnings:
-Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
-ALTER TABLE tm1 ADD FULLTEXT INDEX im3 (d);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 ADD FULLTEXT INDEX ii4 (d2);
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 ADD FULLTEXT INDEX im4 (d2);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 ADD PRIMARY KEY(a), ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: InnoDB presently supports one FULLTEXT index creation at a time. Try ALGORITHM=COPY
-ALTER TABLE ti1 ADD PRIMARY KEY(a);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 ADD PRIMARY KEY(a);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 DROP INDEX ii3;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 DROP INDEX im3;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 DROP COLUMN d2;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 DROP COLUMN d2;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 ADD CONSTRAINT fi1 FOREIGN KEY (b) REFERENCES ti2(a);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 ADD CONSTRAINT fm1 FOREIGN KEY (b) REFERENCES tm2(a);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 ALTER COLUMN b SET DEFAULT 1;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 ALTER COLUMN b SET DEFAULT 1;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 ALTER COLUMN b DROP DEFAULT;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 ALTER COLUMN b DROP DEFAULT;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 CHANGE COLUMN f g INT;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 CHANGE COLUMN f g INT;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 CHANGE COLUMN g h VARCHAR(20);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 CHANGE COLUMN g h VARCHAR(20);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 MODIFY COLUMN e ENUM('a', 'b', 'c');
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 MODIFY COLUMN e ENUM('a', 'b', 'c');
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 MODIFY COLUMN e INT;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 MODIFY COLUMN e INT;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 MODIFY COLUMN e INT AFTER h;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 MODIFY COLUMN e INT AFTER h;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 MODIFY COLUMN e INT FIRST;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 MODIFY COLUMN e INT FIRST;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-SET @orig_sql_mode = @@sql_mode;
-SET @@sql_mode = 'STRICT_TRANS_TABLES';
-ALTER TABLE ti1 MODIFY COLUMN c INT NOT NULL;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-SET @@sql_mode = @orig_sql_mode;
-ALTER TABLE tm1 MODIFY COLUMN c INT NOT NULL;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 MODIFY COLUMN c INT NULL;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 MODIFY COLUMN c INT NULL;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 MODIFY COLUMN h VARCHAR(30);
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 MODIFY COLUMN h VARCHAR(30);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 MODIFY COLUMN h VARCHAR(30) AFTER d;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 MODIFY COLUMN h VARCHAR(30) AFTER d;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 DROP COLUMN h;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 DROP COLUMN h;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 DROP INDEX ii2;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 DROP INDEX im2;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 DROP PRIMARY KEY;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 DROP PRIMARY KEY;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 DROP FOREIGN KEY fi1;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 DROP FOREIGN KEY fm1;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 RENAME TO ti3;
-affected rows: 0
-ALTER TABLE tm1 RENAME TO tm3;
-affected rows: 0
-ALTER TABLE ti3 RENAME TO ti1;
-affected rows: 0
-ALTER TABLE tm3 RENAME TO tm1;
-affected rows: 0
-ALTER TABLE ti1 ORDER BY b;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 ORDER BY b;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 CONVERT TO CHARACTER SET utf16;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 CONVERT TO CHARACTER SET utf16;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 DEFAULT CHARACTER SET utf8;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 DEFAULT CHARACTER SET utf8;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 FORCE;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 FORCE;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 AUTO_INCREMENT 3;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 AUTO_INCREMENT 3;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 AVG_ROW_LENGTH 10;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 AVG_ROW_LENGTH 10;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 CHECKSUM 1;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 CHECKSUM 1;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 COMMENT 'test';
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 COMMENT 'test';
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 MAX_ROWS 100;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 MAX_ROWS 100;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 MIN_ROWS 1;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 MIN_ROWS 1;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE ti1 PACK_KEYS 1;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE tm1 PACK_KEYS 1;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-DROP TABLE ti1, ti2, tm1, tm2;
-# Tests of >1 operation (InnoDB)
-CREATE TABLE ti1(a INT PRIMARY KEY AUTO_INCREMENT, b INT) engine=InnoDB;
-INSERT INTO ti1(b) VALUES (1), (2);
-ALTER TABLE ti1 RENAME TO ti3, ADD INDEX ii1(b);
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE ti3 DROP INDEX ii1, AUTO_INCREMENT 5;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-INSERT INTO ti3(b) VALUES (5);
-ALTER TABLE ti3 ADD INDEX ii1(b), AUTO_INCREMENT 7;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-INSERT INTO ti3(b) VALUES (7);
-SELECT * FROM ti3;
-a b
-1 1
-2 2
-5 5
-7 7
-DROP TABLE ti3;
-#
-# 8: Scenario in which ALTER TABLE was returning an unwarranted
-# ER_ILLEGAL_HA error at some point during work on this WL.
-#
-CREATE TABLE tm1(i INT DEFAULT 1) engine=MyISAM;
-ALTER TABLE tm1 ADD INDEX ii1(i), ALTER COLUMN i DROP DEFAULT;
-DROP TABLE tm1;
-create table if not exists t1 (i int);
-alter table t1 add key (i);
-alter table t1 add key if not exists (i);
-Warnings:
-Note 1061 Duplicate key name 'i'
-DROP TABLE t1;
-create table t1 (a int);
-alter table t1 change column if exists a b bigint;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-create table t1 (i int);
-alter table t1 add unique index if not exists idx(i);
-alter table t1 add unique index if not exists idx(i);
-Warnings:
-Note 1061 Duplicate key name 'idx'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL,
- UNIQUE KEY `idx` (`i`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (
-`event_id` bigint(20) unsigned NOT NULL DEFAULT '0',
-`market_id` bigint(20) unsigned NOT NULL DEFAULT '0',
-PRIMARY KEY (`event_id`,`market_id`)
-);
-ALTER TABLE t1 ADD PRIMARY KEY IF NOT EXISTS event_id (event_id,market_id);
-Warnings:
-Note 1061 Multiple primary key defined
-DROP TABLE t1;
-#
-# MDEV-11126 Crash while altering persistent virtual column
-#
-CREATE TABLE `tab1` (
-`id` bigint(20) NOT NULL AUTO_INCREMENT,
-`field2` set('option1','option2','option3','option4') NOT NULL,
-`field3` set('option1','option2','option3','option4','option5') NOT NULL,
-`field4` set('option1','option2','option3','option4') NOT NULL,
-`field5` varchar(32) NOT NULL,
-`field6` varchar(32) NOT NULL,
-`field7` varchar(32) NOT NULL,
-`field8` varchar(32) NOT NULL,
-`field9` int(11) NOT NULL DEFAULT '1',
-`field10` varchar(16) NOT NULL,
-`field11` enum('option1','option2','option3') NOT NULL DEFAULT 'option1',
-`v_col` varchar(128) AS (IF(field11='option1',CONCAT_WS(":","field1",field2,field3,field4,field5,field6,field7,field8,field9,field10), CONCAT_WS(":","field1",field11,field2,field3,field4,field5,field6,field7,field8,field9,field10))) PERSISTENT,
-PRIMARY KEY (`id`)
-) DEFAULT CHARSET=latin1;
-ALTER TABLE `tab1` CHANGE COLUMN v_col `v_col` varchar(128);
-SHOW CREATE TABLE `tab1`;
-Table Create Table
-tab1 CREATE TABLE `tab1` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `field2` set('option1','option2','option3','option4') NOT NULL,
- `field3` set('option1','option2','option3','option4','option5') NOT NULL,
- `field4` set('option1','option2','option3','option4') NOT NULL,
- `field5` varchar(32) NOT NULL,
- `field6` varchar(32) NOT NULL,
- `field7` varchar(32) NOT NULL,
- `field8` varchar(32) NOT NULL,
- `field9` int(11) NOT NULL DEFAULT 1,
- `field10` varchar(16) NOT NULL,
- `field11` enum('option1','option2','option3') NOT NULL DEFAULT 'option1',
- `v_col` varchar(128) DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE `tab1` CHANGE COLUMN v_col `v_col` varchar(128) AS (IF(field11='option1',CONCAT_WS(":","field1",field2,field3,field4,field5,field6,field7,field8,field9,field10), CONCAT_WS(":","field1",field11,field2,field3,field4,field5,field6,field7,field8,field9,field10))) PERSISTENT;
-SHOW CREATE TABLE `tab1`;
-Table Create Table
-tab1 CREATE TABLE `tab1` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `field2` set('option1','option2','option3','option4') NOT NULL,
- `field3` set('option1','option2','option3','option4','option5') NOT NULL,
- `field4` set('option1','option2','option3','option4') NOT NULL,
- `field5` varchar(32) NOT NULL,
- `field6` varchar(32) NOT NULL,
- `field7` varchar(32) NOT NULL,
- `field8` varchar(32) NOT NULL,
- `field9` int(11) NOT NULL DEFAULT 1,
- `field10` varchar(16) NOT NULL,
- `field11` enum('option1','option2','option3') NOT NULL DEFAULT 'option1',
- `v_col` varchar(128) GENERATED ALWAYS AS (if(`field11` = 'option1',concat_ws(':','field1',`field2`,`field3`,`field4`,`field5`,`field6`,`field7`,`field8`,`field9`,`field10`),concat_ws(':','field1',`field11`,`field2`,`field3`,`field4`,`field5`,`field6`,`field7`,`field8`,`field9`,`field10`))) STORED,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE `tab1`;
-#
-# MDEV-11548 Reproducible server crash after the 2nd ALTER TABLE ADD FOREIGN KEY IF NOT EXISTS
-#
-CREATE TABLE t1 (id INT UNSIGNED NOT NULL PRIMARY KEY);
-CREATE TABLE t2 (id1 INT UNSIGNED NOT NULL);
-ALTER TABLE t2
-ADD FOREIGN KEY IF NOT EXISTS (id1)
-REFERENCES t1 (id);
-ALTER TABLE t2
-ADD FOREIGN KEY IF NOT EXISTS (id1)
-REFERENCES t1 (id);
-Warnings:
-Note 1061 Duplicate key name 'id1'
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# MDEV-6390 CONVERT TO CHARACTER SET utf8 doesn't change DEFAULT CHARSET.
-#
-CREATE TABLE t1 (id int(11) NOT NULL, a int(11) NOT NULL, b int(11))
-ENGINE=InnoDB DEFAULT CHARSET=latin1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL,
- `a` int(11) NOT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-ALTER TABLE t1 CONVERT TO CHARACTER SET utf8;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL,
- `a` int(11) NOT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8
-DROP TABLE t1;
-#
-# End of 10.0 tests
-#
-#
-# MDEV-7374 : Losing connection to MySQL while running ALTER TABLE
-#
-CREATE TABLE t1(i INT) ENGINE=INNODB;
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8);
-INSERT INTO t1 SELECT a.* FROM t1 a, t1 b, t1 c, t1 d, t1 e;
-ALTER TABLE t1 MODIFY i FLOAT;
-DROP TABLE t1;
-#
-# MDEV-7816 ALTER with DROP INDEX and ADD INDEX .. COMMENT='comment2' ignores the new comment
-#
-CREATE TABLE t1(a INT);
-CREATE INDEX i1 ON t1(a) COMMENT 'comment1';
-ALTER TABLE t1 DROP INDEX i1, ADD INDEX i1(a) COMMENT 'comment2';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- KEY `i1` (`a`) COMMENT 'comment2'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# MDEV-10421 duplicate CHECK CONSTRAINTs
-#
-CREATE TABLE t1 (a INT, b INT) engine=myisam;
-ALTER TABLE t1 ADD CONSTRAINT IF NOT EXISTS `min` CHECK (a+b > 100);
-ALTER TABLE t1 ADD CONSTRAINT `min` CHECK (a+b > 100);
-ERROR HY000: Duplicate CHECK constraint name 'min'
-ALTER TABLE t1 ADD CONSTRAINT IF NOT EXISTS `min` CHECK (a+b > 100);
-Warnings:
-Note 1826 Duplicate CHECK constraint name 'min'
-ALTER TABLE t1 ADD CONSTRAINT `mini` CHECK (a+b > 100);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- CONSTRAINT `min` CHECK (`a` + `b` > 100),
- CONSTRAINT `mini` CHECK (`a` + `b` > 100)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1(a INT, b INT, CONSTRAINT min check (a>5),
-CONSTRAINT min check (b>5));
-ERROR HY000: Duplicate CHECK constraint name 'min'
-create table t1 (a int, b int, check(a>b));
-alter table t1 drop column a;
-ERROR 42S22: Unknown column 'a' in 'CHECK'
-alter table t1 drop column b, add column b bigint first;
-ERROR 42S22: Unknown column 'b' in 'CHECK'
-alter table t1 drop column a, drop constraint constraint_1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int, b int, check(a>0));
-alter table t1 drop column a;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int, b int, check(a>0));
-alter table t1 drop column a, add column a bigint first;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(20) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int, b int, c int, unique(a));
-alter table t1 drop column a;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int, b int, c int, unique(a,b));
-alter table t1 drop column a;
-ERROR 42000: Key column 'a' doesn't exist in table
-alter table t1 drop column a, drop index a;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (i int);
-alter table t1 alter column if exists a set default 1;
-Warnings:
-Note 1054 Unknown column 'a' in 't1'
-alter table t1 alter column if exists a drop default;
-Warnings:
-Note 1054 Unknown column 'a' in 't1'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-#
-# MDEV-13508 Check that rename of columns changes defaults, virtual
-# columns and constraints
-#
-create table t1 (a int, b int, check(a>b));
-alter table t1 change column a b int, change column b a int;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` int(11) DEFAULT NULL,
- CONSTRAINT `CONSTRAINT_1` CHECK (`b` > `a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int primary key, b int, c int default (a+b) check (a+b>0),
-d int as (a+b),
-key (b),
-constraint test check (a+b > 1));
-alter table t1 change b new_b int not null, add column b char(1), add constraint new check (length(b) > 0);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `new_b` int(11) NOT NULL,
- `c` int(11) DEFAULT (`a` + `new_b`) CHECK (`a` + `new_b` > 0),
- `d` int(11) GENERATED ALWAYS AS (`a` + `new_b`) VIRTUAL,
- `b` char(1) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `b` (`new_b`),
- CONSTRAINT `test` CHECK (`a` + `new_b` > 1),
- CONSTRAINT `new` CHECK (octet_length(`b`) > 0)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/alter_table_autoinc-5574.result b/mysql-test/r/alter_table_autoinc-5574.result
deleted file mode 100644
index 9476313c773..00000000000
--- a/mysql-test/r/alter_table_autoinc-5574.result
+++ /dev/null
@@ -1,11 +0,0 @@
-create table t1(a int(10)unsigned not null auto_increment primary key,
-b varchar(255) not null) engine=innodb default charset=utf8;
-insert into t1 values(1,'aaa'),(2,'bbb');
-alter table t1 auto_increment=1;
-insert into t1 values(NULL, 'ccc');
-select * from t1;
-a b
-1 aaa
-2 bbb
-3 ccc
-drop table t1;
diff --git a/mysql-test/r/alter_table_mdev539_maria.result b/mysql-test/r/alter_table_mdev539_maria.result
deleted file mode 100644
index 0206f4070a0..00000000000
--- a/mysql-test/r/alter_table_mdev539_maria.result
+++ /dev/null
@@ -1,253 +0,0 @@
-#
-set @@storage_engine= Aria;
-#
-# mdev-539: fast build of unique/primary indexes for MyISAM/Aria
-#
-call mtr.add_suppression("Can't find record in '.*'");
-DROP DATABASE IF EXISTS dbt3_s001;
-CREATE DATABASE dbt3_s001;
-use dbt3_s001;
-drop index `primary` on lineitem;
-show create table lineitem;
-Table Create Table
-lineitem CREATE TABLE `lineitem` (
- `l_orderkey` int(11) NOT NULL DEFAULT 0,
- `l_partkey` int(11) DEFAULT NULL,
- `l_suppkey` int(11) DEFAULT NULL,
- `l_linenumber` int(11) NOT NULL DEFAULT 0,
- `l_quantity` double DEFAULT NULL,
- `l_extendedprice` double DEFAULT NULL,
- `l_discount` double DEFAULT NULL,
- `l_tax` double DEFAULT NULL,
- `l_returnflag` char(1) DEFAULT NULL,
- `l_linestatus` char(1) DEFAULT NULL,
- `l_shipDATE` date DEFAULT NULL,
- `l_commitDATE` date DEFAULT NULL,
- `l_receiptDATE` date DEFAULT NULL,
- `l_shipinstruct` char(25) DEFAULT NULL,
- `l_shipmode` char(10) DEFAULT NULL,
- `l_comment` varchar(44) DEFAULT NULL,
- KEY `i_l_shipdate` (`l_shipDATE`),
- KEY `i_l_suppkey_partkey` (`l_partkey`,`l_suppkey`),
- KEY `i_l_partkey` (`l_partkey`),
- KEY `i_l_suppkey` (`l_suppkey`),
- KEY `i_l_receiptdate` (`l_receiptDATE`),
- KEY `i_l_orderkey` (`l_orderkey`),
- KEY `i_l_orderkey_quantity` (`l_orderkey`,`l_quantity`),
- KEY `i_l_commitdate` (`l_commitDATE`)
-) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
-alter table lineitem add primary key (l_orderkey, l_linenumber);
-show create table lineitem;
-Table Create Table
-lineitem CREATE TABLE `lineitem` (
- `l_orderkey` int(11) NOT NULL DEFAULT 0,
- `l_partkey` int(11) DEFAULT NULL,
- `l_suppkey` int(11) DEFAULT NULL,
- `l_linenumber` int(11) NOT NULL DEFAULT 0,
- `l_quantity` double DEFAULT NULL,
- `l_extendedprice` double DEFAULT NULL,
- `l_discount` double DEFAULT NULL,
- `l_tax` double DEFAULT NULL,
- `l_returnflag` char(1) DEFAULT NULL,
- `l_linestatus` char(1) DEFAULT NULL,
- `l_shipDATE` date DEFAULT NULL,
- `l_commitDATE` date DEFAULT NULL,
- `l_receiptDATE` date DEFAULT NULL,
- `l_shipinstruct` char(25) DEFAULT NULL,
- `l_shipmode` char(10) DEFAULT NULL,
- `l_comment` varchar(44) DEFAULT NULL,
- PRIMARY KEY (`l_orderkey`,`l_linenumber`),
- KEY `i_l_shipdate` (`l_shipDATE`),
- KEY `i_l_suppkey_partkey` (`l_partkey`,`l_suppkey`),
- KEY `i_l_partkey` (`l_partkey`),
- KEY `i_l_suppkey` (`l_suppkey`),
- KEY `i_l_receiptdate` (`l_receiptDATE`),
- KEY `i_l_orderkey` (`l_orderkey`),
- KEY `i_l_orderkey_quantity` (`l_orderkey`,`l_quantity`),
- KEY `i_l_commitdate` (`l_commitDATE`)
-) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
-drop index `primary` on lineitem;
-select * from lineitem where l_orderkey=1 and l_linenumber=2;
-l_orderkey l_partkey l_suppkey l_linenumber l_quantity l_extendedprice l_discount l_tax l_returnflag l_linestatus l_shipDATE l_commitDATE l_receiptDATE l_shipinstruct l_shipmode l_comment
-1 68 9 2 36 34850.16 0.09 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-insert into lineitem values
-(1,68,9,2,36,34850.16,0.07,0.06,'N','O','1996-04-12','1996-02-28','1996-04-20','TAKE BACK RETURN','MAIL','slyly bold pinto beans detect s');
-select * from lineitem where l_orderkey=1 and l_linenumber=2;
-l_orderkey l_partkey l_suppkey l_linenumber l_quantity l_extendedprice l_discount l_tax l_returnflag l_linestatus l_shipDATE l_commitDATE l_receiptDATE l_shipinstruct l_shipmode l_comment
-1 68 9 2 36 34850.16 0.09 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-1 68 9 2 36 34850.16 0.07 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-alter table lineitem add primary key (l_orderkey, l_linenumber);
-ERROR 23000: Duplicate entry '1-2' for key 'PRIMARY'
-show create table lineitem;
-Table Create Table
-lineitem CREATE TABLE `lineitem` (
- `l_orderkey` int(11) NOT NULL DEFAULT 0,
- `l_partkey` int(11) DEFAULT NULL,
- `l_suppkey` int(11) DEFAULT NULL,
- `l_linenumber` int(11) NOT NULL DEFAULT 0,
- `l_quantity` double DEFAULT NULL,
- `l_extendedprice` double DEFAULT NULL,
- `l_discount` double DEFAULT NULL,
- `l_tax` double DEFAULT NULL,
- `l_returnflag` char(1) DEFAULT NULL,
- `l_linestatus` char(1) DEFAULT NULL,
- `l_shipDATE` date DEFAULT NULL,
- `l_commitDATE` date DEFAULT NULL,
- `l_receiptDATE` date DEFAULT NULL,
- `l_shipinstruct` char(25) DEFAULT NULL,
- `l_shipmode` char(10) DEFAULT NULL,
- `l_comment` varchar(44) DEFAULT NULL,
- KEY `i_l_shipdate` (`l_shipDATE`),
- KEY `i_l_suppkey_partkey` (`l_partkey`,`l_suppkey`),
- KEY `i_l_partkey` (`l_partkey`),
- KEY `i_l_suppkey` (`l_suppkey`),
- KEY `i_l_receiptdate` (`l_receiptDATE`),
- KEY `i_l_orderkey` (`l_orderkey`),
- KEY `i_l_orderkey_quantity` (`l_orderkey`,`l_quantity`),
- KEY `i_l_commitdate` (`l_commitDATE`)
-) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
-select * from lineitem where l_orderkey=1 and l_linenumber=2;
-l_orderkey l_partkey l_suppkey l_linenumber l_quantity l_extendedprice l_discount l_tax l_returnflag l_linestatus l_shipDATE l_commitDATE l_receiptDATE l_shipinstruct l_shipmode l_comment
-1 68 9 2 36 34850.16 0.09 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-1 68 9 2 36 34850.16 0.07 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-delete from lineitem where l_orderkey=1 and l_linenumber=2 and l_discount=0.07;
-alter table lineitem add primary key (l_orderkey, l_linenumber);
-show create table lineitem;
-Table Create Table
-lineitem CREATE TABLE `lineitem` (
- `l_orderkey` int(11) NOT NULL DEFAULT 0,
- `l_partkey` int(11) DEFAULT NULL,
- `l_suppkey` int(11) DEFAULT NULL,
- `l_linenumber` int(11) NOT NULL DEFAULT 0,
- `l_quantity` double DEFAULT NULL,
- `l_extendedprice` double DEFAULT NULL,
- `l_discount` double DEFAULT NULL,
- `l_tax` double DEFAULT NULL,
- `l_returnflag` char(1) DEFAULT NULL,
- `l_linestatus` char(1) DEFAULT NULL,
- `l_shipDATE` date DEFAULT NULL,
- `l_commitDATE` date DEFAULT NULL,
- `l_receiptDATE` date DEFAULT NULL,
- `l_shipinstruct` char(25) DEFAULT NULL,
- `l_shipmode` char(10) DEFAULT NULL,
- `l_comment` varchar(44) DEFAULT NULL,
- PRIMARY KEY (`l_orderkey`,`l_linenumber`),
- KEY `i_l_shipdate` (`l_shipDATE`),
- KEY `i_l_suppkey_partkey` (`l_partkey`,`l_suppkey`),
- KEY `i_l_partkey` (`l_partkey`),
- KEY `i_l_suppkey` (`l_suppkey`),
- KEY `i_l_receiptdate` (`l_receiptDATE`),
- KEY `i_l_orderkey` (`l_orderkey`),
- KEY `i_l_orderkey_quantity` (`l_orderkey`,`l_quantity`),
- KEY `i_l_commitdate` (`l_commitDATE`)
-) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
-select * from lineitem where l_orderkey=1 and l_linenumber=2;
-l_orderkey l_partkey l_suppkey l_linenumber l_quantity l_extendedprice l_discount l_tax l_returnflag l_linestatus l_shipDATE l_commitDATE l_receiptDATE l_shipinstruct l_shipmode l_comment
-1 68 9 2 36 34850.16 0.09 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-create unique index i_c_name on customer(c_name);
-show create table customer;
-Table Create Table
-customer CREATE TABLE `customer` (
- `c_custkey` int(11) NOT NULL,
- `c_name` varchar(25) DEFAULT NULL,
- `c_address` varchar(40) DEFAULT NULL,
- `c_nationkey` int(11) DEFAULT NULL,
- `c_phone` char(15) DEFAULT NULL,
- `c_acctbal` double DEFAULT NULL,
- `c_mktsegment` char(10) DEFAULT NULL,
- `c_comment` varchar(117) DEFAULT NULL,
- PRIMARY KEY (`c_custkey`),
- UNIQUE KEY `i_c_name` (`c_name`),
- KEY `i_c_nationkey` (`c_nationkey`)
-) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
-select * from customer where c_name='Customer#000000003';
-c_custkey c_name c_address c_nationkey c_phone c_acctbal c_mktsegment c_comment
-3 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-drop index i_c_name on customer;
-insert into customer values
-(303,'Customer#000000003','MG9kdTD2WBHm',1,'11-719-748-3364',7498.12,'AUTOMOBILE','special packages wake. slyly reg');
-select * from customer where c_name='Customer#000000003';
-c_custkey c_name c_address c_nationkey c_phone c_acctbal c_mktsegment c_comment
-3 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-303 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-alter table customer add unique index i_c_name(c_name);
-ERROR 23000: Duplicate entry 'Customer#000000003' for key 'i_c_name'
-show create table customer;
-Table Create Table
-customer CREATE TABLE `customer` (
- `c_custkey` int(11) NOT NULL,
- `c_name` varchar(25) DEFAULT NULL,
- `c_address` varchar(40) DEFAULT NULL,
- `c_nationkey` int(11) DEFAULT NULL,
- `c_phone` char(15) DEFAULT NULL,
- `c_acctbal` double DEFAULT NULL,
- `c_mktsegment` char(10) DEFAULT NULL,
- `c_comment` varchar(117) DEFAULT NULL,
- PRIMARY KEY (`c_custkey`),
- KEY `i_c_nationkey` (`c_nationkey`)
-) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
-select * from customer where c_name='Customer#000000003';
-c_custkey c_name c_address c_nationkey c_phone c_acctbal c_mktsegment c_comment
-3 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-303 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-delete from customer where c_custkey=303;
-select * from customer where c_name='Customer#000000003';
-c_custkey c_name c_address c_nationkey c_phone c_acctbal c_mktsegment c_comment
-3 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-alter table customer add unique index i_c_name(c_name);
-show create table customer;
-Table Create Table
-customer CREATE TABLE `customer` (
- `c_custkey` int(11) NOT NULL,
- `c_name` varchar(25) DEFAULT NULL,
- `c_address` varchar(40) DEFAULT NULL,
- `c_nationkey` int(11) DEFAULT NULL,
- `c_phone` char(15) DEFAULT NULL,
- `c_acctbal` double DEFAULT NULL,
- `c_mktsegment` char(10) DEFAULT NULL,
- `c_comment` varchar(117) DEFAULT NULL,
- PRIMARY KEY (`c_custkey`),
- UNIQUE KEY `i_c_name` (`c_name`),
- KEY `i_c_nationkey` (`c_nationkey`)
-) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
-select * from customer where c_name='Customer#000000003';
-c_custkey c_name c_address c_nationkey c_phone c_acctbal c_mktsegment c_comment
-3 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-drop index `primary` on customer;
-show create table customer;
-Table Create Table
-customer CREATE TABLE `customer` (
- `c_custkey` int(11) NOT NULL,
- `c_name` varchar(25) DEFAULT NULL,
- `c_address` varchar(40) DEFAULT NULL,
- `c_nationkey` int(11) DEFAULT NULL,
- `c_phone` char(15) DEFAULT NULL,
- `c_acctbal` double DEFAULT NULL,
- `c_mktsegment` char(10) DEFAULT NULL,
- `c_comment` varchar(117) DEFAULT NULL,
- UNIQUE KEY `i_c_name` (`c_name`),
- KEY `i_c_nationkey` (`c_nationkey`)
-) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
-insert into customer values
-(3,'Customer#000000303','MG9kdTD2WBHm',1,'11-719-748-3364',7498.12,'AUTOMOBILE','special packages wake. slyly reg');
-alter ignore table customer add primary key (c_custkey);
-show create table customer;
-Table Create Table
-customer CREATE TABLE `customer` (
- `c_custkey` int(11) NOT NULL,
- `c_name` varchar(25) DEFAULT NULL,
- `c_address` varchar(40) DEFAULT NULL,
- `c_nationkey` int(11) DEFAULT NULL,
- `c_phone` char(15) DEFAULT NULL,
- `c_acctbal` double DEFAULT NULL,
- `c_mktsegment` char(10) DEFAULT NULL,
- `c_comment` varchar(117) DEFAULT NULL,
- PRIMARY KEY (`c_custkey`),
- UNIQUE KEY `i_c_name` (`c_name`),
- KEY `i_c_nationkey` (`c_nationkey`)
-) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
-select * from customer where c_custkey=3;
-c_custkey c_name c_address c_nationkey c_phone c_acctbal c_mktsegment c_comment
-3 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-DROP DATABASE dbt3_s001;
-set @@storage_engine= default;
diff --git a/mysql-test/r/alter_table_mdev539_myisam.result b/mysql-test/r/alter_table_mdev539_myisam.result
deleted file mode 100644
index 0339a64c9c7..00000000000
--- a/mysql-test/r/alter_table_mdev539_myisam.result
+++ /dev/null
@@ -1,253 +0,0 @@
-#
-set @@storage_engine= MyISAM;
-#
-# mdev-539: fast build of unique/primary indexes for MyISAM/Aria
-#
-call mtr.add_suppression("Can't find record in '.*'");
-DROP DATABASE IF EXISTS dbt3_s001;
-CREATE DATABASE dbt3_s001;
-use dbt3_s001;
-drop index `primary` on lineitem;
-show create table lineitem;
-Table Create Table
-lineitem CREATE TABLE `lineitem` (
- `l_orderkey` int(11) NOT NULL DEFAULT 0,
- `l_partkey` int(11) DEFAULT NULL,
- `l_suppkey` int(11) DEFAULT NULL,
- `l_linenumber` int(11) NOT NULL DEFAULT 0,
- `l_quantity` double DEFAULT NULL,
- `l_extendedprice` double DEFAULT NULL,
- `l_discount` double DEFAULT NULL,
- `l_tax` double DEFAULT NULL,
- `l_returnflag` char(1) DEFAULT NULL,
- `l_linestatus` char(1) DEFAULT NULL,
- `l_shipDATE` date DEFAULT NULL,
- `l_commitDATE` date DEFAULT NULL,
- `l_receiptDATE` date DEFAULT NULL,
- `l_shipinstruct` char(25) DEFAULT NULL,
- `l_shipmode` char(10) DEFAULT NULL,
- `l_comment` varchar(44) DEFAULT NULL,
- KEY `i_l_shipdate` (`l_shipDATE`),
- KEY `i_l_suppkey_partkey` (`l_partkey`,`l_suppkey`),
- KEY `i_l_partkey` (`l_partkey`),
- KEY `i_l_suppkey` (`l_suppkey`),
- KEY `i_l_receiptdate` (`l_receiptDATE`),
- KEY `i_l_orderkey` (`l_orderkey`),
- KEY `i_l_orderkey_quantity` (`l_orderkey`,`l_quantity`),
- KEY `i_l_commitdate` (`l_commitDATE`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table lineitem add primary key (l_orderkey, l_linenumber);
-show create table lineitem;
-Table Create Table
-lineitem CREATE TABLE `lineitem` (
- `l_orderkey` int(11) NOT NULL DEFAULT 0,
- `l_partkey` int(11) DEFAULT NULL,
- `l_suppkey` int(11) DEFAULT NULL,
- `l_linenumber` int(11) NOT NULL DEFAULT 0,
- `l_quantity` double DEFAULT NULL,
- `l_extendedprice` double DEFAULT NULL,
- `l_discount` double DEFAULT NULL,
- `l_tax` double DEFAULT NULL,
- `l_returnflag` char(1) DEFAULT NULL,
- `l_linestatus` char(1) DEFAULT NULL,
- `l_shipDATE` date DEFAULT NULL,
- `l_commitDATE` date DEFAULT NULL,
- `l_receiptDATE` date DEFAULT NULL,
- `l_shipinstruct` char(25) DEFAULT NULL,
- `l_shipmode` char(10) DEFAULT NULL,
- `l_comment` varchar(44) DEFAULT NULL,
- PRIMARY KEY (`l_orderkey`,`l_linenumber`),
- KEY `i_l_shipdate` (`l_shipDATE`),
- KEY `i_l_suppkey_partkey` (`l_partkey`,`l_suppkey`),
- KEY `i_l_partkey` (`l_partkey`),
- KEY `i_l_suppkey` (`l_suppkey`),
- KEY `i_l_receiptdate` (`l_receiptDATE`),
- KEY `i_l_orderkey` (`l_orderkey`),
- KEY `i_l_orderkey_quantity` (`l_orderkey`,`l_quantity`),
- KEY `i_l_commitdate` (`l_commitDATE`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop index `primary` on lineitem;
-select * from lineitem where l_orderkey=1 and l_linenumber=2;
-l_orderkey l_partkey l_suppkey l_linenumber l_quantity l_extendedprice l_discount l_tax l_returnflag l_linestatus l_shipDATE l_commitDATE l_receiptDATE l_shipinstruct l_shipmode l_comment
-1 68 9 2 36 34850.16 0.09 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-insert into lineitem values
-(1,68,9,2,36,34850.16,0.07,0.06,'N','O','1996-04-12','1996-02-28','1996-04-20','TAKE BACK RETURN','MAIL','slyly bold pinto beans detect s');
-select * from lineitem where l_orderkey=1 and l_linenumber=2;
-l_orderkey l_partkey l_suppkey l_linenumber l_quantity l_extendedprice l_discount l_tax l_returnflag l_linestatus l_shipDATE l_commitDATE l_receiptDATE l_shipinstruct l_shipmode l_comment
-1 68 9 2 36 34850.16 0.09 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-1 68 9 2 36 34850.16 0.07 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-alter table lineitem add primary key (l_orderkey, l_linenumber);
-ERROR 23000: Duplicate entry '1-2' for key 'PRIMARY'
-show create table lineitem;
-Table Create Table
-lineitem CREATE TABLE `lineitem` (
- `l_orderkey` int(11) NOT NULL DEFAULT 0,
- `l_partkey` int(11) DEFAULT NULL,
- `l_suppkey` int(11) DEFAULT NULL,
- `l_linenumber` int(11) NOT NULL DEFAULT 0,
- `l_quantity` double DEFAULT NULL,
- `l_extendedprice` double DEFAULT NULL,
- `l_discount` double DEFAULT NULL,
- `l_tax` double DEFAULT NULL,
- `l_returnflag` char(1) DEFAULT NULL,
- `l_linestatus` char(1) DEFAULT NULL,
- `l_shipDATE` date DEFAULT NULL,
- `l_commitDATE` date DEFAULT NULL,
- `l_receiptDATE` date DEFAULT NULL,
- `l_shipinstruct` char(25) DEFAULT NULL,
- `l_shipmode` char(10) DEFAULT NULL,
- `l_comment` varchar(44) DEFAULT NULL,
- KEY `i_l_shipdate` (`l_shipDATE`),
- KEY `i_l_suppkey_partkey` (`l_partkey`,`l_suppkey`),
- KEY `i_l_partkey` (`l_partkey`),
- KEY `i_l_suppkey` (`l_suppkey`),
- KEY `i_l_receiptdate` (`l_receiptDATE`),
- KEY `i_l_orderkey` (`l_orderkey`),
- KEY `i_l_orderkey_quantity` (`l_orderkey`,`l_quantity`),
- KEY `i_l_commitdate` (`l_commitDATE`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from lineitem where l_orderkey=1 and l_linenumber=2;
-l_orderkey l_partkey l_suppkey l_linenumber l_quantity l_extendedprice l_discount l_tax l_returnflag l_linestatus l_shipDATE l_commitDATE l_receiptDATE l_shipinstruct l_shipmode l_comment
-1 68 9 2 36 34850.16 0.09 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-1 68 9 2 36 34850.16 0.07 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-delete from lineitem where l_orderkey=1 and l_linenumber=2 and l_discount=0.07;
-alter table lineitem add primary key (l_orderkey, l_linenumber);
-show create table lineitem;
-Table Create Table
-lineitem CREATE TABLE `lineitem` (
- `l_orderkey` int(11) NOT NULL DEFAULT 0,
- `l_partkey` int(11) DEFAULT NULL,
- `l_suppkey` int(11) DEFAULT NULL,
- `l_linenumber` int(11) NOT NULL DEFAULT 0,
- `l_quantity` double DEFAULT NULL,
- `l_extendedprice` double DEFAULT NULL,
- `l_discount` double DEFAULT NULL,
- `l_tax` double DEFAULT NULL,
- `l_returnflag` char(1) DEFAULT NULL,
- `l_linestatus` char(1) DEFAULT NULL,
- `l_shipDATE` date DEFAULT NULL,
- `l_commitDATE` date DEFAULT NULL,
- `l_receiptDATE` date DEFAULT NULL,
- `l_shipinstruct` char(25) DEFAULT NULL,
- `l_shipmode` char(10) DEFAULT NULL,
- `l_comment` varchar(44) DEFAULT NULL,
- PRIMARY KEY (`l_orderkey`,`l_linenumber`),
- KEY `i_l_shipdate` (`l_shipDATE`),
- KEY `i_l_suppkey_partkey` (`l_partkey`,`l_suppkey`),
- KEY `i_l_partkey` (`l_partkey`),
- KEY `i_l_suppkey` (`l_suppkey`),
- KEY `i_l_receiptdate` (`l_receiptDATE`),
- KEY `i_l_orderkey` (`l_orderkey`),
- KEY `i_l_orderkey_quantity` (`l_orderkey`,`l_quantity`),
- KEY `i_l_commitdate` (`l_commitDATE`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from lineitem where l_orderkey=1 and l_linenumber=2;
-l_orderkey l_partkey l_suppkey l_linenumber l_quantity l_extendedprice l_discount l_tax l_returnflag l_linestatus l_shipDATE l_commitDATE l_receiptDATE l_shipinstruct l_shipmode l_comment
-1 68 9 2 36 34850.16 0.09 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-create unique index i_c_name on customer(c_name);
-show create table customer;
-Table Create Table
-customer CREATE TABLE `customer` (
- `c_custkey` int(11) NOT NULL,
- `c_name` varchar(25) DEFAULT NULL,
- `c_address` varchar(40) DEFAULT NULL,
- `c_nationkey` int(11) DEFAULT NULL,
- `c_phone` char(15) DEFAULT NULL,
- `c_acctbal` double DEFAULT NULL,
- `c_mktsegment` char(10) DEFAULT NULL,
- `c_comment` varchar(117) DEFAULT NULL,
- PRIMARY KEY (`c_custkey`),
- UNIQUE KEY `i_c_name` (`c_name`),
- KEY `i_c_nationkey` (`c_nationkey`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from customer where c_name='Customer#000000003';
-c_custkey c_name c_address c_nationkey c_phone c_acctbal c_mktsegment c_comment
-3 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-drop index i_c_name on customer;
-insert into customer values
-(303,'Customer#000000003','MG9kdTD2WBHm',1,'11-719-748-3364',7498.12,'AUTOMOBILE','special packages wake. slyly reg');
-select * from customer where c_name='Customer#000000003';
-c_custkey c_name c_address c_nationkey c_phone c_acctbal c_mktsegment c_comment
-3 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-303 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-alter table customer add unique index i_c_name(c_name);
-ERROR 23000: Duplicate entry 'Customer#000000003' for key 'i_c_name'
-show create table customer;
-Table Create Table
-customer CREATE TABLE `customer` (
- `c_custkey` int(11) NOT NULL,
- `c_name` varchar(25) DEFAULT NULL,
- `c_address` varchar(40) DEFAULT NULL,
- `c_nationkey` int(11) DEFAULT NULL,
- `c_phone` char(15) DEFAULT NULL,
- `c_acctbal` double DEFAULT NULL,
- `c_mktsegment` char(10) DEFAULT NULL,
- `c_comment` varchar(117) DEFAULT NULL,
- PRIMARY KEY (`c_custkey`),
- KEY `i_c_nationkey` (`c_nationkey`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from customer where c_name='Customer#000000003';
-c_custkey c_name c_address c_nationkey c_phone c_acctbal c_mktsegment c_comment
-3 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-303 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-delete from customer where c_custkey=303;
-select * from customer where c_name='Customer#000000003';
-c_custkey c_name c_address c_nationkey c_phone c_acctbal c_mktsegment c_comment
-3 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-alter table customer add unique index i_c_name(c_name);
-show create table customer;
-Table Create Table
-customer CREATE TABLE `customer` (
- `c_custkey` int(11) NOT NULL,
- `c_name` varchar(25) DEFAULT NULL,
- `c_address` varchar(40) DEFAULT NULL,
- `c_nationkey` int(11) DEFAULT NULL,
- `c_phone` char(15) DEFAULT NULL,
- `c_acctbal` double DEFAULT NULL,
- `c_mktsegment` char(10) DEFAULT NULL,
- `c_comment` varchar(117) DEFAULT NULL,
- PRIMARY KEY (`c_custkey`),
- UNIQUE KEY `i_c_name` (`c_name`),
- KEY `i_c_nationkey` (`c_nationkey`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from customer where c_name='Customer#000000003';
-c_custkey c_name c_address c_nationkey c_phone c_acctbal c_mktsegment c_comment
-3 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-drop index `primary` on customer;
-show create table customer;
-Table Create Table
-customer CREATE TABLE `customer` (
- `c_custkey` int(11) NOT NULL,
- `c_name` varchar(25) DEFAULT NULL,
- `c_address` varchar(40) DEFAULT NULL,
- `c_nationkey` int(11) DEFAULT NULL,
- `c_phone` char(15) DEFAULT NULL,
- `c_acctbal` double DEFAULT NULL,
- `c_mktsegment` char(10) DEFAULT NULL,
- `c_comment` varchar(117) DEFAULT NULL,
- UNIQUE KEY `i_c_name` (`c_name`),
- KEY `i_c_nationkey` (`c_nationkey`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into customer values
-(3,'Customer#000000303','MG9kdTD2WBHm',1,'11-719-748-3364',7498.12,'AUTOMOBILE','special packages wake. slyly reg');
-alter ignore table customer add primary key (c_custkey);
-show create table customer;
-Table Create Table
-customer CREATE TABLE `customer` (
- `c_custkey` int(11) NOT NULL,
- `c_name` varchar(25) DEFAULT NULL,
- `c_address` varchar(40) DEFAULT NULL,
- `c_nationkey` int(11) DEFAULT NULL,
- `c_phone` char(15) DEFAULT NULL,
- `c_acctbal` double DEFAULT NULL,
- `c_mktsegment` char(10) DEFAULT NULL,
- `c_comment` varchar(117) DEFAULT NULL,
- PRIMARY KEY (`c_custkey`),
- UNIQUE KEY `i_c_name` (`c_name`),
- KEY `i_c_nationkey` (`c_nationkey`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from customer where c_custkey=3;
-c_custkey c_name c_address c_nationkey c_phone c_acctbal c_mktsegment c_comment
-3 Customer#000000003 MG9kdTD2WBHm 1 11-719-748-3364 7498.12 AUTOMOBILE special packages wake. slyly reg
-DROP DATABASE dbt3_s001;
-set @@storage_engine= default;
diff --git a/mysql-test/r/alter_table_online.result b/mysql-test/r/alter_table_online.result
deleted file mode 100644
index d5a2a028acc..00000000000
--- a/mysql-test/r/alter_table_online.result
+++ /dev/null
@@ -1,271 +0,0 @@
-create table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b')) engine=myisam;
-insert into t1 (a) values (1),(2),(3);
-alter online table t1 modify b int default 5, alter c set default 'X';
-alter online table t1 change b new_name int;
-alter online table t1 modify e enum('a','b','c');
-alter online table t1 comment "new comment";
-alter table t1 add constraint q check (a > 0);
-alter online table t1 drop constraint q;
-alter online table t1 algorithm=INPLACE, lock=NONE;
-alter online table t1;
-alter table t1 algorithm=INPLACE;
-alter table t1 lock=NONE;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `new_name` int(11) DEFAULT NULL,
- `c` varchar(80) DEFAULT 'X',
- `e` enum('a','b','c') DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='new comment'
-drop table t1;
-create temporary table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b'));
-insert into t1 (a) values (1),(2),(3);
-alter online table t1 modify b int default 5, alter c set default 'X';
-alter online table t1 change b new_name int;
-alter online table t1 modify e enum('a','b','c');
-alter online table t1 comment "new comment";
-alter online table t1 rename to t2;
-show create table t2;
-Table Create Table
-t2 CREATE TEMPORARY TABLE `t2` (
- `a` int(11) NOT NULL,
- `new_name` int(11) DEFAULT NULL,
- `c` varchar(80) DEFAULT 'X',
- `e` enum('a','b','c') DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='new comment'
-drop table t2;
-create table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b')) engine=aria;
-insert into t1 (a) values (1),(2),(3);
-alter online table t1 modify b int default 5;
-alter online table t1 change b new_name int;
-alter online table t1 modify e enum('a','b','c');
-alter online table t1 comment "new comment";
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `new_name` int(11) DEFAULT NULL,
- `c` varchar(80) DEFAULT NULL,
- `e` enum('a','b','c') DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1 COMMENT='new comment'
-alter online table t1 page_checksum=1;
-alter online table t1 page_checksum=0;
-ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
-drop table t1;
-create table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b'));
-insert into t1 (a) values (1),(2),(3);
-alter online table t1 drop column b, add b int;
-ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
-alter online table t1 modify b bigint;
-ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
-alter online table t1 modify e enum('c','a','b');
-ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
-alter online table t1 modify c varchar(50);
-ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
-alter online table t1 modify c varchar(100);
-ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
-alter online table t1 add f int;
-ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
-alter online table t1 engine=memory;
-ERROR 0A000: LOCK=NONE is not supported. Reason: COPY algorithm requires a lock. Try LOCK=SHARED
-alter online table t1 rename to t2;
-ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE
-alter online table t1 checksum=1;
-ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
-alter online table t1 add constraint check (b > 0);
-ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
-alter table t1 engine=innodb;
-alter table t1 add index (b);
-alter online table t1 add index c (c);
-alter online table t1 drop index b;
-alter online table t1 comment "new comment";
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) DEFAULT NULL,
- `c` varchar(80) DEFAULT NULL,
- `e` enum('a','b') DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `c` (`c`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='new comment'
-drop table t1;
-create temporary table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b'));
-insert into t1 (a) values (1),(2),(3);
-alter online table t1 drop column b, add b int;
-alter online table t1 modify b bigint;
-alter online table t1 modify e enum('c','a','b');
-alter online table t1 modify c varchar(50);
-alter online table t1 modify c varchar(100);
-alter online table t1 add f int;
-alter online table t1 engine=memory;
-alter table t1 engine=innodb;
-alter table t1 add index (b);
-alter online table t1 add index c (c);
-alter online table t1 drop index b;
-drop table t1;
-create table t1 (a int not null primary key, b int, c varchar(80));
-create table t2 (a int not null primary key, b int, c varchar(80));
-create table t3 (a int not null primary key, b int, c varchar(80)) engine=merge UNION=(t1);
-alter online table t3 union=(t1,t2);
-ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE
-drop table t1,t2,t3;
-create table t1 (i int) partition by hash(i) partitions 2;
-alter online table t1 comment 'test';
-drop table t1;
-create table t1 (a int);
-alter online table t1 modify a int comment 'test';
-drop table t1;
-create table t1 (a int) engine=innodb;
-alter online table t1 modify a int comment 'test';
-drop table t1;
-create table t1 (a int) partition by hash(a) partitions 2;
-alter online table t1 modify a int comment 'test';
-drop table t1;
-#
-# MDEV-8948 ALTER ... INPLACE does work for BINARY, BLOB
-#
-CREATE TABLE t1 (a BINARY(10));
-ALTER TABLE t1 MODIFY a BINARY(10), ALGORITHM=INPLACE;
-DROP TABLE t1;
-CREATE TABLE t1 (a VARBINARY(10));
-ALTER TABLE t1 MODIFY a VARBINARY(10), ALGORITHM=INPLACE;
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYBLOB);
-ALTER TABLE t1 MODIFY a TINYBLOB, ALGORITHM=INPLACE;
-DROP TABLE t1;
-CREATE TABLE t1 (a MEDIUMBLOB);
-ALTER TABLE t1 MODIFY a MEDIUMBLOB, ALGORITHM=INPLACE;
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-ALTER TABLE t1 MODIFY a BLOB, ALGORITHM=INPLACE;
-DROP TABLE t1;
-CREATE TABLE t1 (a LONGBLOB);
-ALTER TABLE t1 MODIFY a LONGBLOB, ALGORITHM=INPLACE;
-DROP TABLE t1;
-CREATE TABLE t1 (a CHAR(10));
-ALTER TABLE t1 MODIFY a CHAR(10), ALGORITHM=INPLACE;
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10));
-ALTER TABLE t1 MODIFY a VARCHAR(10), ALGORITHM=INPLACE;
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYTEXT);
-ALTER TABLE t1 MODIFY a TINYTEXT, ALGORITHM=INPLACE;
-DROP TABLE t1;
-CREATE TABLE t1 (a MEDIUMTEXT);
-ALTER TABLE t1 MODIFY a MEDIUMTEXT, ALGORITHM=INPLACE;
-DROP TABLE t1;
-CREATE TABLE t1 (a TEXT);
-ALTER TABLE t1 MODIFY a TEXT, ALGORITHM=INPLACE;
-DROP TABLE t1;
-CREATE TABLE t1 (a LONGTEXT);
-ALTER TABLE t1 MODIFY a LONGTEXT, ALGORITHM=INPLACE;
-DROP TABLE t1;
-CREATE TABLE t1 (a CHAR(10));
-ALTER TABLE t1 MODIFY a CHAR(10) COLLATE latin1_bin, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10));
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE latin1_bin, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYTEXT);
-ALTER TABLE t1 MODIFY a TINYTEXT COLLATE latin1_bin, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a MEDIUMTEXT);
-ALTER TABLE t1 MODIFY a MEDIUMTEXT COLLATE latin1_bin, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a TEXT);
-ALTER TABLE t1 MODIFY a TEXT COLLATE latin1_bin, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a LONGTEXT);
-ALTER TABLE t1 MODIFY a LONGTEXT COLLATE latin1_bin, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a CHAR(10) COLLATE latin1_bin);
-ALTER TABLE t1 MODIFY a CHAR(10) COLLATE latin1_swedish_ci, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10) COLLATE latin1_bin);
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE latin1_swedish_ci, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYTEXT COLLATE latin1_bin);
-ALTER TABLE t1 MODIFY a TINYTEXT COLLATE latin1_swedish_ci, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a MEDIUMTEXT COLLATE latin1_bin);
-ALTER TABLE t1 MODIFY a MEDIUMTEXT COLLATE latin1_swedish_ci, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a TEXT COLLATE latin1_bin);
-ALTER TABLE t1 MODIFY a TEXT COLLATE latin1_swedish_ci, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a LONGTEXT COLLATE latin1_bin);
-ALTER TABLE t1 MODIFY a LONGTEXT COLLATE latin1_swedish_ci, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a CHAR(10) COLLATE latin1_general_ci);
-ALTER TABLE t1 MODIFY a CHAR(10) COLLATE latin1_swedish_ci, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10) COLLATE latin1_general_ci);
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE latin1_swedish_ci, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYTEXT COLLATE latin1_general_ci);
-ALTER TABLE t1 MODIFY a TINYTEXT COLLATE latin1_swedish_ci, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a MEDIUMTEXT COLLATE latin1_general_ci);
-ALTER TABLE t1 MODIFY a MEDIUMTEXT COLLATE latin1_swedish_ci, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a TEXT COLLATE latin1_general_ci);
-ALTER TABLE t1 MODIFY a TEXT COLLATE latin1_swedish_ci, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a LONGTEXT COLLATE latin1_general_ci);
-ALTER TABLE t1 MODIFY a LONGTEXT COLLATE latin1_swedish_ci, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-select @@global.delay_key_write;
-@@global.delay_key_write
-ON
-create table t1 (a int, b int, key(b));
-flush tables;
-flush status;
-show status like 'Feature_delay_key_write';
-Variable_name Value
-Feature_delay_key_write 0
-insert t1 values (1,2),(2,3),(3,4);
-show status like 'Feature_delay_key_write';
-Variable_name Value
-Feature_delay_key_write 0
-alter online table t1 delay_key_write=1;
-show status like 'Feature_delay_key_write';
-Variable_name Value
-Feature_delay_key_write 1
-flush tables;
-insert t1 values (1,2),(2,3),(3,4);
-show status like 'Feature_delay_key_write';
-Variable_name Value
-Feature_delay_key_write 2
-alter online table t1 delay_key_write=0;
-show status like 'Feature_delay_key_write';
-Variable_name Value
-Feature_delay_key_write 2
-flush tables;
-insert t1 values (1,2),(2,3),(3,4);
-show status like 'Feature_delay_key_write';
-Variable_name Value
-Feature_delay_key_write 2
-drop table t1;
diff --git a/mysql-test/r/alter_table_trans.result b/mysql-test/r/alter_table_trans.result
deleted file mode 100644
index eaae2039d4c..00000000000
--- a/mysql-test/r/alter_table_trans.result
+++ /dev/null
@@ -1,26 +0,0 @@
-drop table if exists t1,t2;
-CREATE TABLE t1 (a INT, INDEX(a)) engine=innodb;
-ALTER TABLE t1 RENAME TO t2, DISABLE KEYS;
-Warnings:
-Note 1031 Storage engine InnoDB of the table `test`.`t1` doesn't have this option
-DROP TABLE t2;
-CREATE TABLE t1 (
-col4 text NOT NULL,
-col2 int(11) NOT NULL DEFAULT '0',
-col3 int(11) DEFAULT NULL,
-extra int(11) DEFAULT NULL,
-KEY idx (col4(10))
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-insert t1 values (repeat('1', 8193),3,1,1);
-insert t1 values (repeat('3', 8193),3,1,1);
-ALTER TABLE t1 ADD PRIMARY KEY (col4(10)) , ADD UNIQUE KEY uidx (col3);
-ERROR 23000: Duplicate entry '1' for key 'uidx'
-DROP TABLE t1;
-CREATE TABLE t1 (a INT) ENGINE = InnoDB;
-INSERT INTO t1 VALUES (2);
-ALTER TABLE t1 ADD PRIMARY KEY (a);
-ALTER TABLE t1 DROP PRIMARY KEY;
-INSERT INTO t1 VALUES (2);
-ALTER TABLE t1 ADD PRIMARY KEY (a);
-ERROR 23000: Duplicate entry '2' for key 'PRIMARY'
-DROP TABLE t1;
diff --git a/mysql-test/r/alter_user.result b/mysql-test/r/alter_user.result
deleted file mode 100644
index 76f811f18c7..00000000000
--- a/mysql-test/r/alter_user.result
+++ /dev/null
@@ -1,93 +0,0 @@
-select * from mysql.user where user = 'root' and host = 'localhost';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-localhost root Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y 0 0 0 0 N N 0.000000
-# Test syntax
-#
-# These 2 selects should have no changes from the first one.
-alter user CURRENT_USER;
-select * from mysql.user where user = 'root' and host = 'localhost';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-localhost root Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y 0 0 0 0 N N 0.000000
-alter user CURRENT_USER();
-select * from mysql.user where user = 'root' and host = 'localhost';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-localhost root Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y 0 0 0 0 N N 0.000000
-create user foo;
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N 0 0 0 0 N N 0.000000
-alter user foo;
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N 0 0 0 0 N N 0.000000
-# Test super privilege works correctly with a read only database.
-SET @start_read_only = @@global.read_only;
-SET GLOBAL read_only=1;
-grant create user on *.* to foo;
-# Currently no super privileges.
-connect a, localhost, foo;
-select @@global.read_only;
-@@global.read_only
-1
-alter user foo;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-# Grant super privilege to the user.
-connection default;
-grant super on *.* to foo;
-# We now have super privilege. We should be able to run alter user.
-connect b, localhost, foo;
-alter user foo;
-connection default;
-SET GLOBAL read_only = @start_read_only;
-# Test inexistant user.
-alter user boo;
-ERROR HY000: Operation ALTER USER failed for 'boo'
-#--warning ER_CANNOT_USER
-alter if exists user boo;
-Warnings:
-Error 1133 Can't find any matching row in the user table
-Note 1396 Operation ALTER USER failed for 'boo'
-# Test password related altering.
-alter user foo identified by 'something';
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *88C89BE093D4ECF72D039F62EBB7477EA1FD4D63 N N N N N N N N N N N N N N N Y N N N N N N N N N Y N N N N 0 0 0 0 N N 0.000000
-alter user foo identified by 'something2';
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *9CD58369E930E28C8996A89DB18B63294E6DC10C N N N N N N N N N N N N N N N Y N N N N N N N N N Y N N N N 0 0 0 0 N N 0.000000
-alter user foo identified by password '*88C89BE093D4ECF72D039F62EBB7477EA1FD4D63';
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *88C89BE093D4ECF72D039F62EBB7477EA1FD4D63 N N N N N N N N N N N N N N N Y N N N N N N N N N Y N N N N 0 0 0 0 N N 0.000000
-alter user foo identified with 'somecoolplugin';
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo N N N N N N N N N N N N N N N Y N N N N N N N N N Y N N N N 0 0 0 0 somecoolplugin N N 0.000000
-alter user foo identified with 'somecoolplugin' using 'somecoolpassphrase';
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo N N N N N N N N N N N N N N N Y N N N N N N N N N Y N N N N 0 0 0 0 somecoolplugin somecoolpassphrase N N 0.000000
-# Test ssl related altering.
-alter user foo identified by 'something' require SSL;
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *88C89BE093D4ECF72D039F62EBB7477EA1FD4D63 N N N N N N N N N N N N N N N Y N N N N N N N N N Y N N N N ANY 0 0 0 0 N N 0.000000
-alter user foo identified by 'something' require X509;
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *88C89BE093D4ECF72D039F62EBB7477EA1FD4D63 N N N N N N N N N N N N N N N Y N N N N N N N N N Y N N N N X509 0 0 0 0 N N 0.000000
-alter user foo identified by 'something'
-require cipher 'text' issuer 'foo_issuer' subject 'foo_subject';
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *88C89BE093D4ECF72D039F62EBB7477EA1FD4D63 N N N N N N N N N N N N N N N Y N N N N N N N N N Y N N N N SPECIFIED text foo_issuer foo_subject 0 0 0 0 N N 0.000000
-# Test resource limits altering.
-alter user foo with MAX_QUERIES_PER_HOUR 10
-MAX_UPDATES_PER_HOUR 20
-MAX_CONNECTIONS_PER_HOUR 30
-MAX_USER_CONNECTIONS 40;
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *88C89BE093D4ECF72D039F62EBB7477EA1FD4D63 N N N N N N N N N N N N N N N Y N N N N N N N N N Y N N N N SPECIFIED text foo_issuer foo_subject 10 20 30 40 N N 0.000000
-drop user foo;
diff --git a/mysql-test/r/analyze.result b/mysql-test/r/analyze.result
deleted file mode 100644
index 9dff94ab08c..00000000000
--- a/mysql-test/r/analyze.result
+++ /dev/null
@@ -1,66 +0,0 @@
-create table t1 (a bigint);
-lock tables t1 write;
-insert into t1 values(0);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-unlock tables;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-create table t1 (a bigint);
-insert into t1 values(0);
-lock tables t1 write;
-delete from t1;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-unlock tables;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-create table t1 (a bigint);
-insert into t1 values(0);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-create table t1 (a mediumtext, fulltext key key1(a)) charset utf8 collate utf8_general_ci engine myisam;
-insert into t1 values ('hello');
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-drop table t1;
-CREATE TABLE t1 (a int);
-prepare stmt1 from "SELECT * FROM t1 PROCEDURE ANALYSE()";
-execute stmt1;
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-execute stmt1;
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-deallocate prepare stmt1;
-drop table t1;
-create temporary table t1(a int, index(a));
-insert into t1 values('1'),('2'),('3'),('4'),('5');
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A 5 NULL NULL YES BTREE
-drop table t1;
-End of 4.1 tests
-create table t1(a int);
-analyze table t1 extended;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'extended' at line 1
-optimize table t1 extended;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'extended' at line 1
-drop table t1;
-End of 5.0 tests
diff --git a/mysql-test/r/analyze_debug.result b/mysql-test/r/analyze_debug.result
deleted file mode 100644
index 2a11578a841..00000000000
--- a/mysql-test/r/analyze_debug.result
+++ /dev/null
@@ -1,10 +0,0 @@
-SET @save_use_stat_tables= @@use_stat_tables;
-SET use_stat_tables= PREFERABLY;
-CREATE TABLE t1 (a int);
-insert into t1 values (1),(2),(3);
-SET STATEMENT debug_dbug="d,fail_2call_open_only_one_table" for
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Operation failed
-drop table t1;
-SET use_stat_tables= @save_use_stat_tables;
diff --git a/mysql-test/r/analyze_format_json.result b/mysql-test/r/analyze_format_json.result
deleted file mode 100644
index 7991379bc55..00000000000
--- a/mysql-test/r/analyze_format_json.result
+++ /dev/null
@@ -1,820 +0,0 @@
-drop table if exists t0,t1,t2,t3;
-create table t0 (a int);
-INSERT INTO t0 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-# r_filtered=30%, because 3 rows match: 0,1,2
-analyze format=json select * from t0 where a<3;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 30,
- "attached_condition": "t0.a < 3"
- }
- }
-}
-create table t1 (a int, b int, c int, key(a));
-insert into t1 select A.a*10 + B.a, A.a*10 + B.a, A.a*10 + B.a from t0 A, t0 B;
-analyze
-select * from t0, t1 where t1.a=t0.a and t0.a > 9;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 10.00 100.00 0.00 Using where
-1 SIMPLE t1 ref a a 5 test.t0.a 1 NULL 100.00 NULL
-analyze format=json
-select * from t0, t1 where t1.a=t0.a and t0.a > 9;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 0,
- "attached_condition": "t0.a > 9 and t0.a is not null"
- },
- "table": {
- "table_name": "t1",
- "access_type": "ref",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t0.a"],
- "r_loops": 0,
- "rows": 1,
- "r_rows": null,
- "filtered": 100,
- "r_filtered": null
- }
- }
-}
-analyze
-select * from t0, t1 where t1.a=t0.a and t1.b<4;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 10.00 100.00 100.00 Using where
-1 SIMPLE t1 ref a a 5 test.t0.a 1 1.00 100.00 40.00 Using where
-analyze format=json
-select * from t0, t1 where t1.a=t0.a and t1.b<4;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "attached_condition": "t0.a is not null"
- },
- "table": {
- "table_name": "t1",
- "access_type": "ref",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t0.a"],
- "r_loops": 10,
- "rows": 1,
- "r_rows": 1,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 40,
- "attached_condition": "t1.b < 4"
- }
- }
-}
-analyze
-select * from t1 tbl1, t1 tbl2 where tbl1.b<2 and tbl2.b>5;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE tbl1 ALL NULL NULL NULL NULL 100 100.00 100.00 2.00 Using where
-1 SIMPLE tbl2 ALL NULL NULL NULL NULL 100 100.00 100.00 94.00 Using where; Using join buffer (flat, BNL join)
-analyze format=json
-select * from t1 tbl1, t1 tbl2 where tbl1.b<20 and tbl2.b<60;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "tbl1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 100,
- "r_rows": 100,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 20,
- "attached_condition": "tbl1.b < 20"
- },
- "block-nl-join": {
- "table": {
- "table_name": "tbl2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 100,
- "r_rows": 100,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 60,
- "attached_condition": "tbl2.b < 60"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "r_filtered": 100
- }
- }
-}
-analyze format=json
-select * from t1 tbl1, t1 tbl2 where tbl1.b<20 and tbl2.b<60 and tbl1.c > tbl2.c;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "tbl1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 100,
- "r_rows": 100,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 20,
- "attached_condition": "tbl1.b < 20"
- },
- "block-nl-join": {
- "table": {
- "table_name": "tbl2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 100,
- "r_rows": 100,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 60,
- "attached_condition": "tbl2.b < 60"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "tbl1.c > tbl2.c",
- "r_filtered": 15.833
- }
- }
-}
-drop table t1;
-drop table t0;
-#
-# MDEV-7674: ANALYZE shows r_rows=0
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, key(a));
-insert into t2 values (0),(1);
-analyze format=json select * from t1 straight_join t2 force index(a) where t2.a=t1.a;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "attached_condition": "t1.a is not null"
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t1.a"],
- "r_loops": 10,
- "rows": 2,
- "r_rows": 0.2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "using_index": true
- }
- }
-}
-drop table t1,t2;
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-#
-# MDEV-7679: ANALYZE crashes when printing WHERE when no default db
-#
-select database();
-database()
-test
-connect con1,localhost,root,,*NO-ONE*;
-connection con1;
-select database();
-database()
-NULL
-analyze format=json select * from test.t1 where t1.a<5;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 50,
- "attached_condition": "test.t1.a < 5"
- }
- }
-}
-disconnect con1;
-connection default;
-drop table t1;
-#
-# MDEV-7812: ANALYZE FORMAT=JSON UPDATE/DELETE doesnt print
-# the r_total_time_ms
-#
-create table t2(a int);
-insert into t2 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t3(a int);
-insert into t3 select A.a + B.a* 10 + C.a * 100 from t2 A, t2 B, t2 C;
-create table t1 (pk int primary key);
-insert into t1 select a from t3;
-alter table t1 add b int;
-analyze format=json
-update t1 set b=pk;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "update": 1,
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 1000,
- "r_rows": 1000,
- "r_filtered": 100,
- "r_total_time_ms": "REPLACED"
- }
- }
-}
-analyze format=json
-select * from t1 where pk < 10 and b > 4;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["pk"],
- "r_loops": 1,
- "rows": 11,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 50,
- "index_condition": "t1.pk < 10",
- "attached_condition": "t1.b > 4"
- }
- }
-}
-analyze format=json
-delete from t1 where pk < 10 and b > 4;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "delete": 1,
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["pk"],
- "rows": 11,
- "r_rows": 10,
- "r_filtered": 50,
- "r_total_time_ms": "REPLACED",
- "attached_condition": "t1.pk < 10 and t1.b > 4"
- }
- }
-}
-drop table t1, t3, t2;
-#
-# MDEV-7833:ANALYZE FORMAT=JSON and Range checked for each record
-#
-create table t3(a int);
-insert into t3 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t4(a int);
-insert into t4 select A.a + B.a* 10 + C.a * 100 from t3 A, t3 B, t3 C;
-create table t1 (lb1 int, rb1 int, lb2 int, rb2 int, c1 int, c2 int);
-insert into t1 values (1,2,10,20,15,15);
-insert into t1 values (3,5,10,20,15,15);
-insert into t1 values (10,20,10,20,15,15);
-insert into t1 values (10,20,1,2,15,15);
-insert into t1 values (10,20,10,20,1,3);
-create table t2 (key1 int, key2 int, key3 int, key4 int, col1 int,
-key(key1), key(key2), key(key3), key(key4));
-insert into t2 select a,a,a,a,a from t3;
-insert into t2 select 15,15,15,15,15 from t4;
-analyze format=json
-select * from t1, t2 where (t2.key1 between t1.lb1 and t1.rb1) and
-(t2.key2 between t1.lb2 and t1.rb2) and
-(t2.key3=t1.c1 OR t2.key4=t1.c2);
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 5,
- "r_rows": 5,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "range-checked-for-each-record": {
- "keys": ["key1", "key2", "key3", "key4"],
- "r_keys": {
- "full_scan": 1,
- "index_merge": 1,
- "range": {
- "key1": 2,
- "key2": 1,
- "key3": 0,
- "key4": 0
- }
- },
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "possible_keys": ["key1", "key2", "key3", "key4"],
- "r_loops": 5,
- "rows": 1010,
- "r_rows": 203.8,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 98.135
- }
- }
- }
-}
-drop table t1,t2,t3,t4;
-#
-# MDEV-7904: ANALYZE FORMAT=JSON SELECT .. UNION SELECT doesn't print r_rows for union output
-#
-create table t0 (a int);
-INSERT INTO t0 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int);
-INSERT INTO t1 select * from t0;
-analyze format=json (select * from t1 tbl1 where a<5) union (select * from t1 tbl2 where a in (2,3));
-ANALYZE
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "r_loops": 1,
- "r_rows": 5,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "tbl1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 50,
- "attached_condition": "tbl1.a < 5"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "tbl2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 20,
- "attached_condition": "tbl2.a in (2,3)"
- }
- }
- }
- ]
- }
- }
-}
-drop table t0, t1;
-#
-# MDEV-7970: EXPLAIN FORMAT=JSON does not print HAVING
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3);
-create table t1(a int);
-insert into t1 select A.a + B.a* 10 + C.a * 100 from t0 A, t0 B, t0 C;
-create table t2 (
-a int,
-b int,
-key (a)
-);
-insert into t2 select A.a*1000 + B.a, A.a*1000 + B.a from t0 A, t1 B;
-# normal HAVING
-analyze format=json select a, max(b) as TOP from t2 group by a having TOP > a;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "having_condition": "TOP > t2.a",
- "filesort": {
- "sort_key": "t2.a",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "r_used_priority_queue": false,
- "r_output_rows": 0,
- "r_buffer_size": "REPLACED",
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 256,
- "r_rows": 256,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- }
- }
-}
-# HAVING is always TRUE (not printed)
-analyze format=json select a, max(b) as TOP from t2 group by a having 1<>2;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "filesort": {
- "sort_key": "t2.a",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "r_used_priority_queue": false,
- "r_output_rows": 256,
- "r_buffer_size": "REPLACED",
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 256,
- "r_rows": 256,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- }
- }
-}
-# HAVING is always FALSE (intercepted by message)
-analyze format=json select a, max(b) as TOP from t2 group by a having 1=2;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "Impossible HAVING"
- }
- }
-}
-# HAVING is absent
-analyze format=json select a, max(b) as TOP from t2 group by a;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "filesort": {
- "sort_key": "t2.a",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "r_used_priority_queue": false,
- "r_output_rows": 256,
- "r_buffer_size": "REPLACED",
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 256,
- "r_rows": 256,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- }
- }
-}
-drop table t0, t1, t2;
-#
-# MDEV-7267: Server crashes in Item_field::print on ANALYZE FORMAT=JSON
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (3),(4);
-ANALYZE FORMAT=JSON SELECT STRAIGHT_JOIN * FROM t1, t2 WHERE b IN ( SELECT a FROM t1 );
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 0,
- "attached_condition": "<in_optimizer>(t2.b,t2.b in (subquery#2))"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "<in_optimizer>(t2.b,t2.b in (subquery#2))",
- "r_filtered": null
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 2,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- }
- ]
- }
-}
-drop table t1,t2;
-#
-# MDEV-8864: Server crash #2 in Item_field::print on ANALYZE FORMAT=JSON
-#
-CREATE TABLE t1 (f1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (2),(3);
-CREATE TABLE t3 (f3 INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (3),(4);
-ANALYZE FORMAT=JSON
-SELECT GROUP_CONCAT(f3) AS gc, ( SELECT MAX(f1) FROM t1, t2 WHERE f2 = f3 ) sq
-FROM t2, t3
-WHERE f3 IN ( 1, 2 )
-GROUP BY sq ORDER BY gc;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "filesort": {
- "sort_key": "group_concat(t3.f3 separator ',')",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "r_used_priority_queue": false,
- "r_output_rows": 0,
- "r_buffer_size": "REPLACED",
- "temporary_table": {
- "filesort": {
- "sort_key": "(subquery#2)",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "r_used_priority_queue": false,
- "r_output_rows": 0,
- "r_buffer_size": "REPLACED",
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 0,
- "attached_condition": "t3.f3 in (1,2)"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "r_filtered": null
- },
- "subqueries": [
- {
- "expression_cache": {
- "state": "uninitialized",
- "r_loops": 0,
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 0,
- "rows": 2,
- "r_rows": null,
- "filtered": 100,
- "r_filtered": null
- },
- "block-nl-join": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 0,
- "rows": 2,
- "r_rows": null,
- "filtered": 100,
- "r_filtered": null
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t2.f2 = t3.f3",
- "r_filtered": null
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop table t1,t2,t3;
-#
-# MDEV-13286: Floating point exception in Filesort_tracker::print_json_members(Json_writer*)
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b int, c int);
-insert into t1 select a,a,a from t0;
-create table t2 as select * from t1;
-analyze format=json select a, (select t2.b from t2 where t2.a<t1.a order by t2.c limit 1) from t1 where t1.a<0;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 0,
- "attached_condition": "t1.a < 0"
- },
- "subqueries": [
- {
- "expression_cache": {
- "state": "uninitialized",
- "r_loops": 0,
- "query_block": {
- "select_id": 2,
- "read_sorted_file": {
- "r_rows": null,
- "filesort": {
- "sort_key": "t2.c",
- "r_loops": null,
- "r_limit": null,
- "r_used_priority_queue": null,
- "r_output_rows": null,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 0,
- "rows": 10,
- "r_rows": null,
- "filtered": 100,
- "r_filtered": null,
- "attached_condition": "t2.a < t1.a"
- }
- }
- }
- }
- }
- }
- ]
- }
-}
-drop table t0,t1,t2;
diff --git a/mysql-test/r/analyze_stmt.result b/mysql-test/r/analyze_stmt.result
deleted file mode 100644
index c3c98593210..00000000000
--- a/mysql-test/r/analyze_stmt.result
+++ /dev/null
@@ -1,336 +0,0 @@
-drop table if exists t0,t1,t2,t3;
-create table t0 (a int) engine=myisam;
-INSERT INTO t0 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int) engine=myisam;
-INSERT INTO t1 select * from t0;
-# Try a few basic selects to see that r_rows and r_filtered columns work
-analyze select * from t1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 100.00 100.00
-analyze select * from t1 where a<5;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 100.00 50.00 Using where
-analyze select * from t1 where a>100;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 100.00 0.00 Using where
-# ANALYZE DELETE will delete rows:
-analyze delete from t1 where a in (2,3,4);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 100.00 30.00 Using where
-select * from t1;
-a
-0
-1
-5
-6
-7
-8
-9
-drop table t1;
-# ANALYZE UPDATE will make updates:
-create table t1(a int, b int);
-insert into t1 select a,a from t0;
-analyze update t1 set b=100+b where a in (6,7,8);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 100.00 30.00 Using where
-select * from t1;
-a b
-0 0
-1 1
-2 2
-3 3
-4 4
-5 5
-6 106
-7 107
-8 108
-9 9
-drop table t1;
-# Check that UNION works
-create table t1(a int, b int);
-insert into t1 select a,a from t0;
-analyze (select * from t1 A where a<5) union (select * from t1 B where a in (5,6));
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 10 10.00 100.00 50.00 Using where
-2 UNION B ALL NULL NULL NULL NULL 10 10.00 100.00 20.00 Using where
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL 7.00 NULL NULL
-analyze (select * from t1 A where a<5) union (select * from t1 B where a in (1,2));
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 10 10.00 100.00 50.00 Using where
-2 UNION B ALL NULL NULL NULL NULL 10 10.00 100.00 20.00 Using where
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL 5.00 NULL NULL
-drop table t1;
-drop table t0;
-#
-# Try a subquery.
-#
-create table t0 (a int, b int);
-insert into t0 values
-(0,0),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9);
-create table t1 (a int, b int);
-insert into t1 values (1,1),(2,2),(3,3);
-# See .test file for the right values of r_rows and r_filtered.
-analyze select a, a in (select t0.b from t0 where t0.b+1=t1.b+1) from t1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-2 DEPENDENT SUBQUERY t0 ALL NULL NULL NULL NULL 10 3.00 100.00 33.33 Using where
-# Try a subquery that is never executed
-analyze select a, a in (select t0.b from t0 where t0.b+1=t1.b+1) from t1 where t1.a > 5;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 3.00 100.00 0.00 Using where
-2 DEPENDENT SUBQUERY t0 ALL NULL NULL NULL NULL 10 NULL 100.00 NULL Using where
-drop table t0, t1;
-#
-# Tests for join buffering
-#
-create table t0 (a int, b int);
-insert into t0 values
-(0,0),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9);
-create table t1 like t0;
-insert into t1 select * from t0;
-explain select * from t0, t1 where t0.a<5 and t1.a<5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 Using where; Using join buffer (flat, BNL join)
-# These should have filtered=50
-analyze select * from t0, t1 where t0.a<5 and t1.a<5;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 10.00 100.00 50.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 100.00 50.00 Using where; Using join buffer (flat, BNL join)
-explain select * from t0, t1 where t0.a<5 and t1.b=t0.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 Using where; Using join buffer (flat, BNL join)
-# Now, t1 should have filtered=10
-analyze select * from t0, t1 where t0.a<5 and t1.b=t0.b;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 10.00 100.00 50.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 100.00 10.00 Using where; Using join buffer (flat, BNL join)
-explain select * from t0, t1 where t0.a<5 and t1.a<5 and t1.b=t0.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 Using where; Using join buffer (flat, BNL join)
-# Now, t1 should have filtered=10
-analyze select * from t0, t1 where t0.a<5 and t1.a<5 and t1.b=t0.b;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 10.00 100.00 50.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 100.00 10.00 Using where; Using join buffer (flat, BNL join)
-# TODO: Check what is counted for "range checked for each record".
-#
-# Test for joins
-#
-create table t2 (key1 int, key2x int, col1 int, key(key1), key(key2x));
-insert into t2 select A.a + 10 *B.a +100 * C.a,
-(A.a + 10 *B.a +100 * C.a)*2,
-A.a + 10 *B.a +100 * C.a
-from t0 A, t0 B, t0 C;
-# This always has matches, filtered=100%.
-analyze select * from t1,t2 where t2.key1=t1.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 100.00 100.00 Using where
-1 SIMPLE t2 ref key1 key1 5 test.t1.a 1 1.00 100.00 100.00
-# This shows r_rows=0. It is actually 0.5 (should r_rows be changed to double?)
-analyze select * from t1,t2 where t2.key2x=t1.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 100.00 100.00 Using where
-1 SIMPLE t2 ref key2x key2x 5 test.t1.a 1 0.50 100.00 100.00
-select * from t1,t2 where t2.key2x=t1.a;
-a b key1 key2x col1
-0 0 0 0 0
-2 2 1 2 1
-4 4 2 4 2
-6 6 3 6 3
-8 8 4 8 4
-# This has t2.filtered=40% (there are 5 values: {0,1,2,3,4}. two of them have mod=0)
-analyze select * from t1,t2 where t2.key2x=t1.a and mod(t2.col1,4)=0;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 100.00 100.00 Using where
-1 SIMPLE t2 ref key2x key2x 5 test.t1.a 1 0.50 100.00 40.00 Using where
-drop table t0,t1,t2;
-#
-# Check non-merged derived tables
-#
-create table t0 (a int, b int);
-insert into t0 values
-(0,0),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9);
-update t0 set b=b/3;
-analyze select * from (select count(*),max(a),b from t0 group by b) T;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 10 4.00 100.00 100.00
-2 DERIVED t0 ALL NULL NULL NULL NULL 10 10.00 100.00 100.00 Using temporary; Using filesort
-drop table t0;
-#
-# Check ORDER/GROUP BY
-#
-create table t0 (a int, b int);
-insert into t0 values
-(0,0),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9);
-analyze select count(*),max(a),b from t0 where a<7 group by b;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 10.00 100.00 70.00 Using where; Using temporary; Using filesort
-drop table t0;
-#
-# Check multi-table UPDATE/DELETE.
-#
-create table t0 (a int, b int);
-create table t1 (a int, b int);
-insert into t0 values (0,0),(2,2),(4,4), (8,8);
-insert into t1 values (0,0),(2,2), (6,6);
-analyze select * from t0,t1 where t0.a=t1.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t0 ALL NULL NULL NULL NULL 4 4.00 100.00 16.67 Using where; Using join buffer (flat, BNL join)
-analyze update t0,t1 set t1.b=5555 where t0.a=t1.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t0 ALL NULL NULL NULL NULL 4 4.00 100.00 16.67 Using where
-select * from t1;
-a b
-0 5555
-2 5555
-6 6
-analyze delete t1 from t1, t0 where t0.a=t1.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t0 ALL NULL NULL NULL NULL 4 4.00 100.00 16.67 Using where
-select * from t1;
-a b
-6 6
-drop table t0, t1;
-#
-# MDEV-6393: ANALYZE SELECT crashes in Explain_query::print_explain with a non-existing column
-#
-create table t1 (i int);
-insert into t1 values (1),(2);
-analyze select a from t1;
-ERROR 42S22: Unknown column 'a' in 'field list'
-analyze delete from t1 where a=2;
-ERROR 42S22: Unknown column 'a' in 'where clause'
-analyze update t1 set a=2;
-ERROR 42S22: Unknown column 'a' in 'field list'
-create table t2 like t1;
-insert into t2 select * from t1;
-analyze update t2,t1 set t2.i=5 where t2.a=t1.a;
-ERROR 42S22: Unknown column 't2.a' in 'where clause'
-analyze delete t1 from t2,t1 where t2.a=t1.a;
-ERROR 42S22: Unknown column 't2.a' in 'where clause'
-drop table t1, t2;
-#
-# MDEV-6395: ANALYZE UPDATE/DELETE with impossible where does not produce any output
-#
-create table t1 (a int, b int, key(a));
-insert into t1 values (1,1),(2,2),(3,3),(4,4),(5,5);
-analyze delete from t1 where 1 > 2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-analyze delete from t1 where a > 30 and a < 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-analyze update t1 set b=12345 where 1 > 2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-analyze update t1 set b=12345 where a > 30 and a < 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-drop table t1;
-#
-# MDEV-6398: ANALYZE UPDATE does not populate r_rows
-#
-create table t1 (i int);
-insert into t1 values (1),(2),(3),(4);
-analyze update t1 set i=8;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 100.00
-drop table t1;
-#
-# Check ANALYZE SELECT INTO
-#
-create table t1 (i int);
-insert into t1 values (1);
-analyze select * from t1 into @var;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 NULL 100.00 NULL
-drop table t1;
-#
-# MDEV-6394: ANALYZE DELETE .. RETURNING fails with ERROR 2027 Malformed packet
-#
-create table t1 (i int);
-analyze delete from t1 returning *;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 0 0.00 100.00 100.00
-drop table t1;
-#
-# MDEV-6396: ANALYZE INSERT/REPLACE is accepted, but does not produce a plan
-#
-create table t1 (a int primary key, b int);
-analyze insert into t1 values (1,1);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-select * from t1;
-a b
-1 1
-analyze replace t1 values (1,2);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-select * from t1;
-a b
-1 2
-drop table t1;
-#
-# MDEV-6400 "ANALYZE SELECT ... INTO @var" doesn't set @var
-#
-create table t1(a int);
-insert into t1 values (1),(2);
-analyze select a from t1 where a <2 into @var;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 2.00 100.00 50.00 Using where
-analyze select a from t1 into @var;
-ERROR 42000: Result consisted of more than one row
-analyze insert into t1 select * from t1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 2.00 100.00 100.00 Using temporary
-analyze select * into outfile '../../tmp/data1.tmp' from t1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 100.00
-drop table t1;
-#
-# MDEV-7024: Assertion `! is_set()' failed in
-# Diagnostics_area::set_eof_status on executing ANALYZE SELECT via PS
-#
-create table t1(a int);
-prepare stmt from "analyze select * from t1";
-execute stmt;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-drop table t1;
-#
-# MDEV-7674: ANALYZE shows r_rows=0
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, key(a));
-insert into t2 values (0),(1);
-analyze select * from t1 straight_join t2 force index(a) where t2.a=t1.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 100.00 100.00 Using where
-1 SIMPLE t2 ref a a 5 test.t1.a 2 0.20 100.00 100.00 Using index
-drop table t1,t2;
-#
-# MDEV-8063: Unconditional ANALYZE DELETE does not delete rows
-#
-create table t1 (i int);
-insert into t1 values (1),(2);
-analyze delete from t1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL 2 NULL NULL NULL Deleting all rows
-select * from t1;
-i
-insert into t1 values (1),(2);
-explain delete from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL 2 Deleting all rows
-select * from t1;
-i
-1
-2
-drop table t1;
diff --git a/mysql-test/r/analyze_stmt_orderby.result b/mysql-test/r/analyze_stmt_orderby.result
deleted file mode 100644
index dd7bd6b53f7..00000000000
--- a/mysql-test/r/analyze_stmt_orderby.result
+++ /dev/null
@@ -1,597 +0,0 @@
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int);
-insert into t1 select A.a + B.a* 10 + C.a * 100 from t0 A, t0 B, t0 C;
-create table t2 (
-a int,
-b int,
-key (a)
-);
-insert into t2 select A.a*1000 + B.a, A.a*1000 + B.a from t0 A, t1 B;
-#
-# Try an UPDATE that uses filesort:
-#
-explain
-update t2 set b=b+1 order by b limit 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 10000 Using filesort
-explain format=json
-update t2 set b=b+1 order by b limit 5;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "filesort": {
- "table": {
- "update": 1,
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 10000
- }
- }
- }
-}
-analyze format=json
-update t2 set b=b+1 order by b limit 5;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_total_time_ms": "REPLACED",
- "filesort": {
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "r_limit": 5,
- "r_used_priority_queue": true,
- "r_output_rows": 6,
- "table": {
- "update": 1,
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 10000,
- "r_rows": 10000,
- "r_filtered": 100,
- "r_total_time_ms": "REPLACED"
- }
- }
- }
-}
-#
-# Try an UPDATE that uses buffering:
-#
-explain
-update t2 set a=a+1 where a<10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 5 NULL 8 Using where; Using buffer
-explain format=json
-update t2 set a=a+1 where a<10;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "buffer": {
- "table": {
- "update": 1,
- "table_name": "t2",
- "access_type": "range",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 8,
- "attached_condition": "t2.a < 10"
- }
- }
- }
-}
-analyze format=json
-update t2 set a=a+1 where a<10;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_total_time_ms": "REPLACED",
- "buffer": {
- "table": {
- "update": 1,
- "table_name": "t2",
- "access_type": "range",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 8,
- "r_rows": 10,
- "r_filtered": 100,
- "r_total_time_ms": "REPLACED",
- "attached_condition": "t2.a < 10"
- }
- }
- }
-}
-#
-# Try a DELETE that uses filesort:
-#
-explain
-delete from t2 order by b limit 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 10000 Using filesort
-explain format=json
-delete from t2 order by b limit 5;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "filesort": {
- "table": {
- "delete": 1,
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 10000
- }
- }
- }
-}
-analyze format=json
-delete from t2 order by b limit 5;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_total_time_ms": "REPLACED",
- "filesort": {
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "r_used_priority_queue": false,
- "r_output_rows": 10000,
- "r_buffer_size": "REPLACED",
- "table": {
- "delete": 1,
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 10000,
- "r_rows": 10000,
- "r_filtered": 100,
- "r_total_time_ms": "REPLACED"
- }
- }
- }
-}
-#
-# Try a SELECT with QEP in form: filesort { tmp_table { join } }
-#
-explain
-select * from t0,t2 where t2.a=t0.a order by t2.b limit 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where; Using temporary; Using filesort
-1 SIMPLE t2 ref a a 5 test.t0.a 1
-explain format=json
-select * from t0,t2 where t2.a=t0.a order by t2.b limit 4;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "filesort": {
- "sort_key": "t2.b",
- "temporary_table": {
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "t0.a is not null"
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t0.a"],
- "rows": 1,
- "filtered": 100
- }
- }
- }
- }
-}
-analyze format=json
-select * from t0,t2 where t2.a=t0.a order by t2.b limit 4;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "filesort": {
- "sort_key": "t2.b",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "r_limit": 4,
- "r_used_priority_queue": true,
- "r_output_rows": 4,
- "temporary_table": {
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "attached_condition": "t0.a is not null"
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t0.a"],
- "r_loops": 10,
- "rows": 1,
- "r_rows": 0.4,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- }
- }
-}
-#
-# Try a SELECT with QEP in form: join { filesort { table0 }, table2 }
-#
-explain
-select * from t0,t2 where t2.a=t0.a order by t0.a limit 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where; Using filesort
-1 SIMPLE t2 ref a a 5 test.t0.a 1
-explain format=json
-select * from t0,t2 where t2.a=t0.a order by t0.a limit 4;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "read_sorted_file": {
- "filesort": {
- "sort_key": "t0.a",
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "t0.a is not null"
- }
- }
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t0.a"],
- "rows": 1,
- "filtered": 100
- }
- }
-}
-analyze format=json
-select * from t0,t2 where t2.a=t0.a order by t0.a limit 4;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "read_sorted_file": {
- "r_rows": 10,
- "filesort": {
- "sort_key": "t0.a",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "r_used_priority_queue": false,
- "r_output_rows": 10,
- "r_buffer_size": "REPLACED",
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 1,
- "attached_condition": "t0.a is not null"
- }
- }
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t0.a"],
- "r_loops": 10,
- "rows": 1,
- "r_rows": 0.4,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
-}
-drop table t2;
-create table t2 (
-a int,
-b int,
-c int
-);
-insert into t2
-select
-a.a+10*b.a+100*c.a,
-b.a+10*c.a,
-c.a
-from t0 a, t0 b, t0 c;
-analyze format=json
-select MAX(b) from t2 where mod(a,2)=0 group by c;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "filesort": {
- "sort_key": "t2.c",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "r_used_priority_queue": false,
- "r_output_rows": 10,
- "r_buffer_size": "REPLACED",
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 1000,
- "r_rows": 1000,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 50,
- "attached_condition": "t2.a MOD 2 = 0"
- }
- }
- }
- }
-}
-drop table t2;
-#
-# MDEV-8282: crash in filesort() with simple ordered delete
-#
-create table t3(a int) engine=innodb;
-delete from t3 order by a;
-# EXPLAIN thinks it will use delete_all_rows():
-explain
-delete from t3 order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL 1 Deleting all rows
-# ANALYZE shows that delete_all_rows() didn't work and we deleted rows
-# one-by-one:
-analyze
-delete from t3 order by a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 1 0.00 100.00 100.00 Using filesort
-drop table t3;
-#
-# A test for duplicate_removal()
-#
-create table t3 (a int, b int);
-insert into t3 select a, 123 from t0;
-analyze format=json
-select distinct max(t3.b) Q from t0, t3 where t0.a=t3.a group by t0.a order by null;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "duplicate_removal": {
- "temporary_table": {
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t3.a = t0.a",
- "r_filtered": 10
- }
- }
- }
- }
-}
-#
-# A query with two filesort calls:
-# - first is needed to do group-by-group grouping to calculate COUNT(DISTINCT)
-# - the second is need to produce ORDER BY.
-# (see MDEV-7836 for description of the query plan)
-create table t5 (a int , b int) ;
-create table t6 like t5 ;
-create table t7 like t5 ;
-insert into t5 values (0, 100), (1, 2), (1, 3), (2, 2), (2, 7),
-(2, -1), (3, 10);
-insert into t6 values (0, 0), (1, 1), (2, 1), (3, 1), (4, 1);
-insert into t7 values (3, 3), (2, 2), (1, 1);
-# TODO: This ANALYZE output doesn't make it clear what is used for what.
-analyze format=json
-select count(distinct t5.b) as sum from t5, t6
-where t5.a=t6.a and t6.b > 0 and t5.a <= 5
-group by t5.a order by sum limit 1;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "filesort": {
- "sort_key": "count(distinct t5.b)",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "r_limit": 1,
- "r_used_priority_queue": true,
- "r_output_rows": 2,
- "temporary_table": {
- "filesort": {
- "sort_key": "t5.a",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "r_used_priority_queue": false,
- "r_output_rows": 6,
- "r_buffer_size": "REPLACED",
- "temporary_table": {
- "table": {
- "table_name": "t6",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 5,
- "r_rows": 5,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 80,
- "attached_condition": "t6.b > 0 and t6.a <= 5"
- },
- "block-nl-join": {
- "table": {
- "table_name": "t5",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 7,
- "r_rows": 7,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t5.a = t6.a",
- "r_filtered": 21.429
- }
- }
- }
- }
- }
- }
-}
-explain format=json
-select count(distinct t5.b) as sum from t5, t6
-where t5.a=t6.a and t6.b > 0 and t5.a <= 5
-group by t5.a order by sum limit 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "filesort": {
- "sort_key": "count(distinct t5.b)",
- "temporary_table": {
- "filesort": {
- "sort_key": "t5.a",
- "temporary_table": {
- "table": {
- "table_name": "t6",
- "access_type": "ALL",
- "rows": 5,
- "filtered": 100,
- "attached_condition": "t6.b > 0 and t6.a <= 5"
- },
- "block-nl-join": {
- "table": {
- "table_name": "t5",
- "access_type": "ALL",
- "rows": 7,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t5.a = t6.a"
- }
- }
- }
- }
- }
- }
-}
-drop table t5,t6,t7;
-drop table t3;
-#
-# Tabular ANALYZE must get its data from execution tracker (and not from
-# the query plan)
-#
-CREATE TABLE t2(
-col1 int,
-col2 int,
-UNIQUE INDEX idx (col1, col2)) engine=myisam;
-INSERT INTO t2(col1, col2) VALUES
-(1,20),(2,19),(3,18),(4,17),(5,16),(6,15),(7,14),(8,13),(9,12),(10,11),
-(11,10),(12,9),(13,8),(14,7),(15,6),(16,5),(17,4),(18,3),(19,2),(20,1);
-flush status;
-explain
-select col1 f1, col2 f2, col1 f3 from t2 group by f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx 5 NULL 7 Using index for group-by
-analyze
-select col1 f1, col2 f2, col1 f3 from t2 group by f1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 range NULL idx 5 NULL 7 20.00 100.00 100.00 Using index for group-by
-analyze format=json
-select col1 f1, col2 f2, col1 f3 from t2 group by f1;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t2",
- "access_type": "range",
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["col1"],
- "r_loops": 1,
- "rows": 7,
- "r_rows": 20,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "using_index_for_group_by": true
- }
- }
-}
-drop table t2;
-drop table t0,t1;
diff --git a/mysql-test/r/analyze_stmt_privileges.result b/mysql-test/r/analyze_stmt_privileges.result
deleted file mode 100644
index d54b5b37863..00000000000
--- a/mysql-test/r/analyze_stmt_privileges.result
+++ /dev/null
@@ -1,41 +0,0 @@
-#
-# MDEV-7025 and MDEV-7027 ANALYZE SELECT/INSERT/UPDATE/DELETE from a
-# view does not check access permissions on the underlying table
-#
-create database db;
-use db;
-create table t1 (i int, c varchar(8));
-insert into t1 values (1,'foo'),(2,'bar'),(3,'baz'),(4,'qux');
-create view v1 as select * from t1 where i > 1;
-CREATE USER u1@localhost;
-grant ALL on db.v1 to u1@localhost;
-connect con1,localhost,u1,,;
-select * from db.t1;
-ERROR 42000: SELECT command denied to user 'u1'@'localhost' for table 't1'
-explain select * from db.t1;
-ERROR 42000: SELECT command denied to user 'u1'@'localhost' for table 't1'
-analyze select * from db.t1;
-ERROR 42000: SELECT command denied to user 'u1'@'localhost' for table 't1'
-select * from db.v1;
-i c
-2 bar
-3 baz
-4 qux
-explain select * from db.v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-analyze select * from db.v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE db.v1 SET i = 5;
-explain UPDATE db.v1 SET i = 5;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-analyze UPDATE db.v1 SET i = 5;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM db.v1 WHERE i = 5;
-explain DELETE FROM db.v1 WHERE i = 5;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-analyze DELETE FROM db.v1 WHERE i = 5;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-disconnect con1;
-connection default;
-drop user u1@localhost;
-drop database db;
diff --git a/mysql-test/r/analyze_stmt_privileges2.result b/mysql-test/r/analyze_stmt_privileges2.result
deleted file mode 100644
index cf38810b598..00000000000
--- a/mysql-test/r/analyze_stmt_privileges2.result
+++ /dev/null
@@ -1,5237 +0,0 @@
-set GLOBAL sql_mode="";
-set LOCAL sql_mode="";
-CREATE DATABASE privtest_db;
-CREATE TABLE privtest_db.t1 (a INT, b VARCHAR(3)) ENGINE=MyISAM;
-CREATE TABLE privtest_db.t2 (a INT, b VARCHAR(3)) ENGINE=MyISAM;
-CREATE VIEW privtest_db.v1 AS SELECT a, b FROM privtest_db.t1 WHERE b IS NOT NULL;
-CREATE VIEW privtest_db.v2 AS SELECT * FROM privtest_db.v1 WHERE a > 0;
-INSERT INTO privtest_db.t2 VALUES (1,'foo'), (2,'bar'), (3,'qux');
-GRANT SELECT ON privtest_db.t2 TO 'privtest'@'localhost';
-connect con1,localhost,privtest,,privtest_db;
-
-#########################################################################
-# Underlying table permission tests
-# (we modify permissions on the base table, keeping ALL on views)
-#########################################################################
-
-connection default;
-GRANT ALL ON privtest_db.v1 TO 'privtest'@'localhost';
-GRANT ALL ON privtest_db.v2 TO 'privtest'@'localhost';
-connection con1;
-
-#========================================================================
-# Test: No permissions on the table
-#========================================================================
-
-#------------------------------------------------------------------------
-# I/R/U/D/S on the table
-# Expectation: Cannot run query, EXPLAIN, ANALYZE on the table
-# because the query itself cannot be executed
-#------------------------------------------------------------------------
-INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 USING t1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 USING t1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1 USING t1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it would have revealed the structure of the table)
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v1 SELECT * FROM t2;
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v1 (a) VALUES (10);
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v1 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1 SET a = 10;
-EXPLAIN UPDATE v1 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1 SET a = a + 1;
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1;
-EXPLAIN DELETE FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 WHERE a = 10;
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 USING v1, t2;
-EXPLAIN DELETE FROM v1 USING v1, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1 USING v1, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1;
-a b
-EXPLAIN SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it would have revealed the structure of the table)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant SELECT on the table
-#========================================================================
-
-connection default;
-GRANT SELECT ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the table
-# Expectation: Can only run SELECT, EXPLAIN SELECT, ANALYZE SELECT
-#------------------------------------------------------------------------
-INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 USING t1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 USING t1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1 USING t1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1;
-a b
-10 NULL
-10 NULL
-10 NULL
-10 NULL
-EXPLAIN SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-ANALYZE SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 100.00
-SELECT * FROM t1 WHERE a = 10;
-a b
-10 NULL
-10 NULL
-10 NULL
-10 NULL
-EXPLAIN SELECT * FROM t1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-ANALYZE SELECT * FROM t1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 100.00 Using where
-SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3
-ANALYZE SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 3.00 100.00 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run everything
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-INSERT INTO v1 SELECT * FROM t2;
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-REPLACE INTO v1 (a) VALUES (10);
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-REPLACE INTO v1 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-UPDATE v1 SET a = 10;
-EXPLAIN UPDATE v1 SET a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 Using where
-ANALYZE UPDATE v1 SET a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 20.00 100.00 60.00 Using where
-UPDATE v1 SET a = a + 1;
-EXPLAIN UPDATE v1 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 Using where
-ANALYZE UPDATE v1 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 20.00 100.00 60.00 Using where
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 Using where
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 20.00 100.00 0.00 Using where
-DELETE FROM v1;
-EXPLAIN DELETE FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE DELETE FROM v1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-DELETE FROM v1 WHERE a = 10;
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE DELETE FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-DELETE FROM v1 USING v1, t2;
-EXPLAIN DELETE FROM v1 USING v1, t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE DELETE FROM v1 USING v1, t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-SELECT * FROM v1;
-a b
-EXPLAIN SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-SELECT * FROM v1 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 3.00 100.00 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run everything
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24 Using where
-ANALYZE UPDATE v2 SET a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24 24.00 100.00 50.00 Using where
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24 Using where
-ANALYZE UPDATE v2 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24 24.00 100.00 50.00 Using where
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24 Using where
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24 24.00 100.00 0.00 Using where
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 12 Using where
-ANALYZE DELETE FROM v2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 12 12.00 100.00 0.00 Using where
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 12 Using where
-ANALYZE DELETE FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 12 12.00 100.00 0.00 Using where
-DELETE FROM v2 USING v2, t2;
-ANALYZE DELETE FROM v2 USING v2, t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 12 12.00 100.00 0.00 Using where
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 12 12.00 100.00 0.00 Using where
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 12 Using where
-ANALYZE SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 12 12.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 12 Using where
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 12 12.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 Using where
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 3.00 100.00 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 12 12.00 100.00 0.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-
-#========================================================================
-# Test: Grant INSERT on the table
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
-GRANT INSERT ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the table
-# Expectation: Can only run INSERT, EXPLAIN INSERT, ANALYZE INSERT
-#------------------------------------------------------------------------
-INSERT INTO t1 (a) VALUES (10);
-EXPLAIN INSERT INTO t1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE INSERT INTO t1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-INSERT INTO t1 SELECT * FROM t2;
-EXPLAIN INSERT INTO t1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE INSERT INTO t1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 USING t1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 USING t1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1 USING t1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it would have revealed the structure of the table)
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v1 SELECT * FROM t2;
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v1 (a) VALUES (10);
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v1 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1 SET a = 10;
-EXPLAIN UPDATE v1 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1 SET a = a + 1;
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1;
-EXPLAIN DELETE FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 WHERE a = 10;
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 USING v1, t2;
-EXPLAIN DELETE FROM v1 USING v1, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1 USING v1, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1;
-a b
-EXPLAIN SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it would have revealed the structure of the table)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant UPDATE on the table
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
-GRANT UPDATE ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the table
-# Expectation: Can only run UPDATE, EXPLAIN UPDATE, ANALYZE UPDATE
-# when the UPDATE does not read any columns. UPDATEs which
-# read columns fail with ER_COLUMNACCESS_DENIED_ERROR
-#------------------------------------------------------------------------
-INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1 SET a = 10;
-EXPLAIN UPDATE t1 SET a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 18
-ANALYZE UPDATE t1 SET a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 18 18.00 100.00 100.00
-UPDATE t1 SET a = a + 1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-EXPLAIN UPDATE t1 SET a = a + 1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-ANALYZE UPDATE t1 SET a = a + 1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-ANALYZE UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-DELETE FROM t1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 USING t1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 USING t1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1 USING t1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it would have revealed the structure of the table)
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v1 SELECT * FROM t2;
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v1 (a) VALUES (10);
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v1 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1 SET a = 10;
-EXPLAIN UPDATE v1 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1 SET a = a + 1;
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1;
-EXPLAIN DELETE FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 WHERE a = 10;
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 USING v1, t2;
-EXPLAIN DELETE FROM v1 USING v1, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1 USING v1, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1;
-a b
-EXPLAIN SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it would have revealed the structure of the table)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant DELETE on the table
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
-GRANT DELETE ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the table
-# Expectation: Can only run DELETE, EXPLAIN DELETE, ANALYZE DELETE
-# when the DELETE does not read any columns. DELETEs which
-# read columns fail with ER_COLUMNACCESS_DENIED_ERROR
-#------------------------------------------------------------------------
-# Note: ANALYZE DELETE FROM t1 USING t1, t2 ... fails due to MDEV-7043
-INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1;
-EXPLAIN DELETE FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL 0 Deleting all rows
-ANALYZE DELETE FROM t1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL 0 NULL NULL NULL Deleting all rows
-DELETE FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-EXPLAIN DELETE FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-ANALYZE DELETE FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-DELETE FROM t1 USING t1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 USING t1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1 USING t1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it would have revealed the structure of the table)
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v1 SELECT * FROM t2;
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v1 (a) VALUES (10);
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v1 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1 SET a = 10;
-EXPLAIN UPDATE v1 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1 SET a = a + 1;
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1;
-EXPLAIN DELETE FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 WHERE a = 10;
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 USING v1, t2;
-EXPLAIN DELETE FROM v1 USING v1, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1 USING v1, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1;
-a b
-EXPLAIN SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it would have revealed the structure of the table)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant DELETE, SELECT(a) on the table
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
-GRANT SELECT(a), DELETE ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the table
-# Expectation: Can run DELETE, EXPLAIN DELETE, ANALYZE DELETE
-#------------------------------------------------------------------------
-INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE REPLACE INTO t1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1;
-EXPLAIN DELETE FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL 0 Deleting all rows
-ANALYZE DELETE FROM t1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL 0 NULL NULL NULL Deleting all rows
-DELETE FROM t1 WHERE a = 10;
-EXPLAIN DELETE FROM t1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1 Using where
-ANALYZE DELETE FROM t1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1 0.00 100.00 100.00 Using where
-DELETE FROM t1 USING t1, t2;
-EXPLAIN DELETE FROM t1 USING t1, t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 Const row not found
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE DELETE FROM t1 USING t1, t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-ANALYZE DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-ANALYZE SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run everything: SELECT access to the column `a`
-# in the underlying table is enough to show EXPLAIN
-# (that's how it works now)
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-INSERT INTO v1 SELECT * FROM t2;
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-REPLACE INTO v1 (a) VALUES (10);
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-REPLACE INTO v1 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-UPDATE v1 SET a = 10;
-EXPLAIN UPDATE v1 SET a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16 Using where
-ANALYZE UPDATE v1 SET a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16 16.00 100.00 75.00 Using where
-UPDATE v1 SET a = a + 1;
-EXPLAIN UPDATE v1 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16 Using where
-ANALYZE UPDATE v1 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16 16.00 100.00 75.00 Using where
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16 Using where
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16 16.00 100.00 0.00 Using where
-DELETE FROM v1;
-EXPLAIN DELETE FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-ANALYZE DELETE FROM v1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where
-DELETE FROM v1 WHERE a = 10;
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-ANALYZE DELETE FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where
-DELETE FROM v1 USING v1, t2;
-EXPLAIN DELETE FROM v1 USING v1, t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-ANALYZE DELETE FROM v1 USING v1, t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where
-SELECT * FROM v1;
-a b
-EXPLAIN SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-ANALYZE SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where
-SELECT * FROM v1 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 3.00 100.00 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run everything: SELECT access to the column `a`
-# in the underlying table is enough to show EXPLAIN
-# (that's how it works now)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 Using where
-ANALYZE UPDATE v2 SET a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 20.00 100.00 60.00 Using where
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 Using where
-ANALYZE UPDATE v2 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 20.00 100.00 60.00 Using where
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 Using where
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 20.00 100.00 0.00 Using where
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE DELETE FROM v2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE DELETE FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE DELETE FROM v2 USING v2, t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 Using where
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 3.00 100.00 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-
-#========================================================================
-# Test: Grant SELECT, INSERT, UPDATE, DELETE on the table
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
-GRANT SELECT, INSERT, UPDATE, DELETE ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the table
-# Expectation: Can run everything
-#------------------------------------------------------------------------
-INSERT INTO t1 (a) VALUES (10);
-EXPLAIN INSERT INTO t1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE INSERT INTO t1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-INSERT INTO t1 SELECT * FROM t2;
-EXPLAIN INSERT INTO t1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE INSERT INTO t1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-REPLACE INTO t1 (a) VALUES (10);
-EXPLAIN REPLACE INTO t1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE REPLACE INTO t1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-REPLACE INTO t1 SELECT * FROM t2;
-EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE REPLACE INTO t1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-UPDATE t1 SET a = 10;
-EXPLAIN UPDATE t1 SET a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24
-ANALYZE UPDATE t1 SET a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24 24.00 100.00 100.00
-UPDATE t1 SET a = a + 1;
-EXPLAIN UPDATE t1 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24
-ANALYZE UPDATE t1 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24 24.00 100.00 100.00
-UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24 Using where
-ANALYZE UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24 24.00 100.00 0.00 Using where
-DELETE FROM t1;
-EXPLAIN DELETE FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL 0 Deleting all rows
-ANALYZE DELETE FROM t1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL 0 NULL NULL NULL Deleting all rows
-DELETE FROM t1 WHERE a = 10;
-EXPLAIN DELETE FROM t1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1 Using where
-ANALYZE DELETE FROM t1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1 0.00 100.00 100.00 Using where
-DELETE FROM t1 USING t1, t2;
-EXPLAIN DELETE FROM t1 USING t1, t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 Const row not found
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE DELETE FROM t1 USING t1, t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-ANALYZE DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t1;
-a b
-EXPLAIN SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 Const row not found
-ANALYZE SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t1 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM t1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-ANALYZE SELECT * FROM t1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-ANALYZE SELECT * FROM t1 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run everything
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-INSERT INTO v1 SELECT * FROM t2;
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-REPLACE INTO v1 (a) VALUES (10);
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-REPLACE INTO v1 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-UPDATE v1 SET a = 10;
-EXPLAIN UPDATE v1 SET a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16 Using where
-ANALYZE UPDATE v1 SET a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16 16.00 100.00 75.00 Using where
-UPDATE v1 SET a = a + 1;
-EXPLAIN UPDATE v1 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16 Using where
-ANALYZE UPDATE v1 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16 16.00 100.00 75.00 Using where
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16 Using where
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16 16.00 100.00 0.00 Using where
-DELETE FROM v1;
-EXPLAIN DELETE FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-ANALYZE DELETE FROM v1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where
-DELETE FROM v1 WHERE a = 10;
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-ANALYZE DELETE FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where
-DELETE FROM v1 USING v1, t2;
-EXPLAIN DELETE FROM v1 USING v1, t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-ANALYZE DELETE FROM v1 USING v1, t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where
-SELECT * FROM v1;
-a b
-EXPLAIN SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-ANALYZE SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where
-SELECT * FROM v1 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 3.00 100.00 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 4.00 100.00 0.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run everything
-#------------------------------------------------------------------------
-# Note: some queries are commented due to MDEV-7034
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 Using where
-ANALYZE UPDATE v2 SET a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 20.00 100.00 60.00 Using where
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 Using where
-ANALYZE UPDATE v2 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 20.00 100.00 60.00 Using where
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 Using where
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 20 20.00 100.00 0.00 Using where
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE DELETE FROM v2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE DELETE FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-DELETE FROM v2 USING v2, t2;
-ANALYZE DELETE FROM v2 USING v2, t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 Using where
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 3.00 100.00 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 8.00 100.00 0.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-
-#########################################################################
-# Inner view permission tests
-# (we modify permissions on the inner view, keeping ALL the rest)
-#########################################################################
-
-
-#========================================================================
-# Test: No permissions on the inner view
-#========================================================================
-
-connection default;
-GRANT ALL ON privtest_db.t1 TO 'privtest'@'localhost';
-GRANT ALL ON privtest_db.v2 TO 'privtest'@'localhost';
-REVOKE ALL PRIVILEGES ON privtest_db.v1 FROM 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Cannot run anything
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it could have revealed the structure of the inner view)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant SHOW VIEW on the inner view
-#========================================================================
-
-connection default;
-GRANT SHOW VIEW ON privtest_db.v1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Cannot run anything
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (that's how it works now)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant SELECT on the inner view
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v1 FROM 'privtest'@'localhost';
-GRANT SELECT ON privtest_db.v1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run SELECT, but not EXPLAIN SELECT or ANALYZE SELECT
-# because the query plan cannot be shown
-# (it could have revealed the structure of the view)
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1;
-a b
-EXPLAIN SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it could have revealed the structure of the inner view)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant SELECT, SHOW VIEW on the inner view
-#========================================================================
-
-
-#------------------------------------------------------------------------
-# Test: SELECT + SHOW VIEW privileges allow ANALYZE SELECT for the inner
-# view, and ANALYZE <anything> for the outer view
-#------------------------------------------------------------------------
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v1 FROM 'privtest'@'localhost';
-GRANT SELECT, SHOW VIEW ON privtest_db.v1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run SELECT, EXPLAIN SELECT, ANALYZE SELECT
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1;
-a b
-EXPLAIN SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 14 Using where
-ANALYZE SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 14 14.00 100.00 0.00 Using where
-SELECT * FROM v1 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 14 Using where
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 14 14.00 100.00 0.00 Using where
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 14 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 3.00 100.00 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 14 14.00 100.00 0.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run everything
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 30 Using where
-ANALYZE UPDATE v2 SET a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 30 30.00 100.00 40.00 Using where
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 30 Using where
-ANALYZE UPDATE v2 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 30 30.00 100.00 40.00 Using where
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 30 Using where
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 30 30.00 100.00 0.00 Using where
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 18 Using where
-ANALYZE DELETE FROM v2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 18 18.00 100.00 0.00 Using where
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 18 Using where
-ANALYZE DELETE FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 18 18.00 100.00 0.00 Using where
-DELETE FROM v2 USING v2, t2;
-ANALYZE DELETE FROM v2 USING v2, t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 18 18.00 100.00 0.00 Using where
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 18 18.00 100.00 0.00 Using where
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 18 Using where
-ANALYZE SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 18 18.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 18 Using where
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 18 18.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 Using where
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 3.00 100.00 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 18 18.00 100.00 0.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-
-#========================================================================
-# Test: Grant INSERT on the inner view
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v1 FROM 'privtest'@'localhost';
-GRANT INSERT ON privtest_db.v1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run INSERT, but not EXPLAIN INSERT or ANALYZE INSERT
-# because the query plan cannot be shown
-# (it could have revealed the structure of the view)
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v1 SELECT * FROM t2;
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it could have revealed the structure of the inner view)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant UPDATE on the inner view
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v1 FROM 'privtest'@'localhost';
-GRANT UPDATE ON privtest_db.v1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run UPDATE which does not read any columns, but not
-# but not EXPLAIN UPDATE or ANALYZE UPDATE
-# because the query plan cannot be shown
-# (it could have revealed the structure of the view).
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = 10;
-EXPLAIN UPDATE v1 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1 SET a = a + 1;
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 'v1'
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it could have revealed the structure of the inner view)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant UPDATE, SELECT(a) on the inner view
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v1 FROM 'privtest'@'localhost';
-GRANT SELECT(a), UPDATE ON privtest_db.v1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run UPDATE, but not EXPLAIN or ANALYZE for it
-# because the query plan cannot be shown
-# (it could have revealed the structure of the view)
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = 10;
-EXPLAIN UPDATE v1 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1 SET a = a + 1;
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it could have revealed the structure of the inner view)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant SELECT, UPDATE on the inner view
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v1 FROM 'privtest'@'localhost';
-GRANT SELECT, UPDATE ON privtest_db.v1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run the UPDATE and SELECT queries, but not EXPLAIN
-# or ANALYZE because the query plan cannot be shown
-# (it could have revealed the structure of the view)
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = 10;
-EXPLAIN UPDATE v1 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1 SET a = a + 1;
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1;
-a b
-EXPLAIN SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it could have revealed the structure of the inner view)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant DELETE on the inner view
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v1 FROM 'privtest'@'localhost';
-GRANT DELETE ON privtest_db.v1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run DELETE which does not read any columns,
-# but not EXPLAIN DELETE or ANALYZE DELETE
-# because the query plan cannot be shown
-# (it could have revealed the structure of the view)
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1;
-EXPLAIN DELETE FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 'v1'
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (it could have revealed the structure of the inner view)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant DELETE, SHOW VIEW on the inner view
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v1 FROM 'privtest'@'localhost';
-GRANT SHOW VIEW, DELETE ON privtest_db.v1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run DELETE, EXPLAIN DELETE, UPDATE DELETE
-# which don't read any columns
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v1'
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-DELETE FROM v1;
-EXPLAIN DELETE FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 29 Using where
-ANALYZE DELETE FROM v1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 29 29.00 100.00 0.00 Using where
-DELETE FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 'v1'
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 'v1'
-ANALYZE DELETE FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 'v1'
-DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v1'
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run the queries, but not EXPLAIN or ANALYZE
-# because the query plan cannot be shown
-# (that's how it works now)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant SELECT, INSERT, UPDATE, DELETE, SHOW VIEW
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v1 FROM 'privtest'@'localhost';
-GRANT SELECT, INSERT, UPDATE, DELETE, SHOW VIEW ON privtest_db.v1 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run everything
-#------------------------------------------------------------------------
-INSERT INTO v1 (a) VALUES (10);
-EXPLAIN INSERT INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE INSERT INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-INSERT INTO v1 SELECT * FROM t2;
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE INSERT INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-REPLACE INTO v1 (a) VALUES (10);
-EXPLAIN REPLACE INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE REPLACE INTO v1 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-REPLACE INTO v1 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE REPLACE INTO v1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-UPDATE v1 SET a = 10;
-EXPLAIN UPDATE v1 SET a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 47 Using where
-ANALYZE UPDATE v1 SET a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 47 47.00 100.00 25.53 Using where
-UPDATE v1 SET a = a + 1;
-EXPLAIN UPDATE v1 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 47 Using where
-ANALYZE UPDATE v1 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 47 47.00 100.00 25.53 Using where
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 47 Using where
-ANALYZE UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 47 47.00 100.00 0.00 Using where
-DELETE FROM v1;
-EXPLAIN DELETE FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 35 Using where
-ANALYZE DELETE FROM v1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 35 35.00 100.00 0.00 Using where
-DELETE FROM v1 WHERE a = 10;
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 35 Using where
-ANALYZE DELETE FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 35 35.00 100.00 0.00 Using where
-DELETE FROM v1 USING v1, t2;
-EXPLAIN DELETE FROM v1 USING v1, t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 35 Using where
-ANALYZE DELETE FROM v1 USING v1, t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 35 35.00 100.00 0.00 Using where
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 35 Using where
-ANALYZE DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 35 35.00 100.00 0.00 Using where
-SELECT * FROM v1;
-a b
-EXPLAIN SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 35 Using where
-ANALYZE SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 35 35.00 100.00 0.00 Using where
-SELECT * FROM v1 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 35 Using where
-ANALYZE SELECT * FROM v1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 35 35.00 100.00 0.00 Using where
-SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 35 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3
-ANALYZE SELECT * FROM v1 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 3.00 100.00 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 35 35.00 100.00 0.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run everything
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 51 Using where
-ANALYZE UPDATE v2 SET a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 51 51.00 100.00 23.53 Using where
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 51 Using where
-ANALYZE UPDATE v2 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 51 51.00 100.00 23.53 Using where
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 51 Using where
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 51 51.00 100.00 0.00 Using where
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 Using where
-ANALYZE DELETE FROM v2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 39.00 100.00 0.00 Using where
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 Using where
-ANALYZE DELETE FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 39.00 100.00 0.00 Using where
-DELETE FROM v2 USING v2, t2;
-ANALYZE DELETE FROM v2 USING v2, t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 39.00 100.00 0.00 Using where
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 39.00 100.00 0.00 Using where
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 Using where
-ANALYZE SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 39.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 Using where
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 39.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 39 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 Using where
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 3.00 100.00 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 39 39.00 100.00 0.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-
-#########################################################################
-# Outer view permission tests
-# (we modify permissions on the outer view, keeping ALL the rest)
-#########################################################################
-
-
-#========================================================================
-# Test: No permissions on the outer view
-#========================================================================
-
-connection default;
-GRANT ALL ON privtest_db.t1 TO 'privtest'@'localhost';
-GRANT ALL ON privtest_db.v1 TO 'privtest'@'localhost';
-REVOKE ALL PRIVILEGES ON privtest_db.v2 FROM 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Cannot run anything
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-
-#========================================================================
-# Test: Grant SHOW VIEW on the outer view
-#========================================================================
-
-connection default;
-GRANT SHOW VIEW ON privtest_db.v2 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Cannot run anything
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-
-#========================================================================
-# Test: Grant SHOW VIEW, SELECT(a) on the outer view
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v2 FROM 'privtest'@'localhost';
-GRANT SELECT(a), SHOW VIEW ON privtest_db.v2 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run SELECT, EXPLAIN SELECT and ANALYZE SELECT
-# when only `a` column is involved
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT a FROM v2;
-a
-EXPLAIN SELECT a FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 Using where
-ANALYZE SELECT a FROM v2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 39.00 100.00 0.00 Using where
-SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT a FROM v2 WHERE a = 10;
-a
-EXPLAIN SELECT a FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 Using where
-ANALYZE SELECT a FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 39.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-
-#========================================================================
-# Test: Grant SELECT on the outer view
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v2 FROM 'privtest'@'localhost';
-GRANT SELECT ON privtest_db.v2 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run SELECT, but not EXPLAIN SELECT or ANALYZE SELECT
-# because the query plan cannot be shown
-# (it could have revealed the structure of the view)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant SHOW VIEW, SELECT on the outer view
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v2 FROM 'privtest'@'localhost';
-GRANT SELECT, SHOW VIEW ON privtest_db.v2 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run SELECT, EXPLAIN SELECT, ANALYZE SELECT
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 Using where
-ANALYZE SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 39.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 Using where
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 39 39.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 39 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 Using where
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 3.00 100.00 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 39 39.00 100.00 0.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-
-#========================================================================
-# Test: Grant INSERT on the outer view
-#========================================================================
-
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v2 FROM 'privtest'@'localhost';
-GRANT INSERT ON privtest_db.v2 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run INSERT, but not EXPLAIN INSERT or ANALYZE INSERT
-# because the query plan cannot be shown
-# (it could have revealed the structure of the view)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-
-#========================================================================
-# Test: Grant UPDATE on the outer view
-#========================================================================
-
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v2 FROM 'privtest'@'localhost';
-GRANT UPDATE ON privtest_db.v2 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run UPDATE which does not read any columns,
-# but not EXPLAIN UPDATE or ANALYZE UPDATE
-# because the query plan cannot be shown
-# (it could have revealed the structure of the view)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 'v2'
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-
-#========================================================================
-# Test: Grant UPDATE, SHOW VIEW on the outer view
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v2 FROM 'privtest'@'localhost';
-GRANT SHOW VIEW, UPDATE ON privtest_db.v2 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the inner view
-# Expectation: Can run UPDATE, EXPLAIN UPDATE, ANALYZE UPDATE
-# which do not read any columns
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 43 Using where
-ANALYZE UPDATE v2 SET a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 43 43.00 100.00 6.98 Using where
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 43 Using where
-ANALYZE UPDATE v2 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 43 43.00 100.00 6.98 Using where
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 'v2'
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 'v2'
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 'v2'
-DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-
-#========================================================================
-# Test: Grant DELETE on the outer view
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v2 FROM 'privtest'@'localhost';
-GRANT DELETE ON privtest_db.v2 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run DELETE which does not read any columns,
-# but not EXPLAIN DELETE or ANALYZE DELETE
-# because the query plan cannot be shown
-# (it could have revealed the structure of the view)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 'v2'
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 'v2'
-
-#========================================================================
-# Test: Grant DELETE, SELECT on the outer view
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v2 FROM 'privtest'@'localhost';
-GRANT SELECT, DELETE ON privtest_db.v2 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run DELETE and SELECT, but not EXPLAIN or ANALYZE
-# for them because the query plan cannot be shown
-# (it could have revealed the structure of the view)
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = 10;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-ANALYZE UPDATE v2 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 'v2'
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2;
-EXPLAIN DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-EXPLAIN DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-
-#========================================================================
-# Test: Grant SELECT, INSERT, UPDATE, DELETE, SHOW VIEW on the outer view
-#========================================================================
-
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.v2 FROM 'privtest'@'localhost';
-GRANT SELECT, INSERT, UPDATE, DELETE, SHOW VIEW ON privtest_db.v2 TO 'privtest'@'localhost';
-connection con1;
-#------------------------------------------------------------------------
-# I/R/U/D/S on the outer view
-# Expectation: Can run everything
-#------------------------------------------------------------------------
-INSERT INTO v2 (a) VALUES (10);
-EXPLAIN INSERT INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE INSERT INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-INSERT INTO v2 SELECT * FROM t2;
-EXPLAIN INSERT INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE INSERT INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-REPLACE INTO v2 (a) VALUES (10);
-EXPLAIN REPLACE INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-ANALYZE REPLACE INTO v2 (a) VALUES (10);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-REPLACE INTO v2 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-ANALYZE REPLACE INTO v2 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-UPDATE v2 SET a = 10;
-EXPLAIN UPDATE v2 SET a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 56 Using where
-ANALYZE UPDATE v2 SET a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 56 56.00 100.00 21.43 Using where
-UPDATE v2 SET a = a + 1;
-EXPLAIN UPDATE v2 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 56 Using where
-ANALYZE UPDATE v2 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 56 56.00 100.00 21.43 Using where
-UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-EXPLAIN UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 56 Using where
-ANALYZE UPDATE v2, t2 SET v2.a = v2.a + 1 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 56 56.00 100.00 0.00 Using where
-DELETE FROM v2;
-EXPLAIN DELETE FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 44 Using where
-ANALYZE DELETE FROM v2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 44 44.00 100.00 0.00 Using where
-DELETE FROM v2 WHERE a = 10;
-EXPLAIN DELETE FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 44 Using where
-ANALYZE DELETE FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 44 44.00 100.00 0.00 Using where
-DELETE FROM v2 USING v2, t2;
-ANALYZE DELETE FROM v2 USING v2, t2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 44 44.00 100.00 0.00 Using where
-DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-ANALYZE DELETE FROM v2 USING v2, t2 WHERE v2.a = t2.a;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 44 44.00 100.00 0.00 Using where
-SELECT * FROM v2;
-a b
-EXPLAIN SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 44 Using where
-ANALYZE SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 44 44.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a = 10;
-a b
-EXPLAIN SELECT * FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 44 Using where
-ANALYZE SELECT * FROM v2 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 44 44.00 100.00 0.00 Using where
-SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-a b
-EXPLAIN SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 44 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 Using where
-ANALYZE SELECT * FROM v2 WHERE a IN ( SELECT a FROM t2 );
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 3.00 100.00 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 44 44.00 100.00 0.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 3.00 100.00 100.00 Using where
-disconnect con1;
-connection default;
-DROP USER 'privtest'@localhost;
-USE test;
-DROP DATABASE privtest_db;
-set GLOBAL sql_mode=default;
diff --git a/mysql-test/r/analyze_stmt_slow_query_log.result b/mysql-test/r/analyze_stmt_slow_query_log.result
deleted file mode 100644
index a0c4b45dee0..00000000000
--- a/mysql-test/r/analyze_stmt_slow_query_log.result
+++ /dev/null
@@ -1,18 +0,0 @@
-drop table if exists t1;
-SET @@global.slow_query_log = OFF;
-FLUSH SLOW LOGS;
-SET @@global.slow_query_log = ON;
-create table t1 (a int);
-INSERT INTO t1 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-select * from t1 where a<3;
-a
-0
-1
-2
-drop table t1;
-# explain: id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-# explain: 1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
-# explain: id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-# explain: 1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 100.00 30.00 Using where
-# explain: id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-# explain: 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
diff --git a/mysql-test/r/ansi.result b/mysql-test/r/ansi.result
deleted file mode 100644
index 527748e00d5..00000000000
--- a/mysql-test/r/ansi.result
+++ /dev/null
@@ -1,48 +0,0 @@
-drop table if exists t1;
-set sql_mode="MySQL40";
-select @@sql_mode;
-@@sql_mode
-MYSQL40,HIGH_NOT_PRECEDENCE
-set @@sql_mode="ANSI";
-select @@sql_mode;
-@@sql_mode
-REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI
-SELECT 'A' || 'B';
-'A' || 'B'
-AB
-CREATE TABLE t1 (id INT, id2 int);
-SELECT id,NULL,1,1.1,'a' FROM t1 GROUP BY id;
-id NULL 1 1.1 a
-SELECT id FROM t1 GROUP BY id2;
-id
-drop table t1;
-SET @@SQL_MODE="";
-CREATE TABLE t1 (i int auto_increment NOT NULL, PRIMARY KEY (i));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`i`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SET @@SQL_MODE="MYSQL323";
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`i`)
-) TYPE=MyISAM
-SET @@SQL_MODE="MYSQL40";
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`i`)
-) TYPE=MyISAM
-SET @@SQL_MODE="NO_FIELD_OPTIONS";
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) NOT NULL,
- PRIMARY KEY (`i`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
diff --git a/mysql-test/r/assign_key_cache-5405.result b/mysql-test/r/assign_key_cache-5405.result
deleted file mode 100644
index c4cb56f3f72..00000000000
--- a/mysql-test/r/assign_key_cache-5405.result
+++ /dev/null
@@ -1,19 +0,0 @@
-create table t1 (f int, key(f)) engine=myisam;
-set global kc1.key_buffer_size = 65536;
-connect con1, localhost, root;
-set debug_sync='assign_key_cache_op_unlock wait_for op_locked';
-cache index t1 in kc1;
-connection default;
-set debug_sync='assign_key_cache_op_lock signal op_locked wait_for assigned';
-cache index t1 in kc1;
-connection con1;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-set debug_sync='now signal assigned';
-disconnect con1;
-connection default;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-drop table t1;
-set global kc1.key_buffer_size = 0;
-set debug_sync='reset';
diff --git a/mysql-test/r/auth_named_pipe.result b/mysql-test/r/auth_named_pipe.result
deleted file mode 100644
index fb190ccd149..00000000000
--- a/mysql-test/r/auth_named_pipe.result
+++ /dev/null
@@ -1,13 +0,0 @@
-INSTALL SONAME 'auth_named_pipe';
-CREATE USER 'USERNAME' IDENTIFIED WITH named_pipe;
-connect pipe_con,localhost,$USERNAME,,,,,PIPE;
-SELECT USER(),CURRENT_USER();
-USER() CURRENT_USER()
-USERNAME@localhost USERNAME@%
-disconnect pipe_con;
-connection default;
-DROP USER 'USERNAME';
-CREATE USER nosuchuser IDENTIFIED WITH named_pipe;
-ERROR 28000: Access denied for user 'nosuchuser'@'localhost'
-DROP USER nosuchuser;
-UNINSTALL SONAME 'auth_named_pipe';
diff --git a/mysql-test/r/auth_rpl.result b/mysql-test/r/auth_rpl.result
deleted file mode 100644
index a3da7985da1..00000000000
--- a/mysql-test/r/auth_rpl.result
+++ /dev/null
@@ -1,27 +0,0 @@
-include/master-slave.inc
-[connection master]
-connection slave;
-include/stop_slave.inc
-connection master;
-CREATE USER 'plug_user' IDENTIFIED WITH 'test_plugin_server' AS 'plug_user';
-GRANT REPLICATION SLAVE ON *.* TO plug_user;
-FLUSH PRIVILEGES;
-connection slave;
-CHANGE MASTER TO
-MASTER_USER= 'plug_user',
-MASTER_PASSWORD= 'plug_user';
-include/start_slave.inc
-connection master;
-connection slave;
-# Slave in-sync with master now.
-SELECT user, plugin, authentication_string FROM mysql.user WHERE user LIKE 'plug_user';
-user plugin authentication_string
-plug_user test_plugin_server plug_user
-# Cleanup (on slave).
-include/stop_slave.inc
-CHANGE MASTER TO MASTER_USER='root';
-DROP USER 'plug_user';
-# Cleanup (on master).
-connection master;
-DROP USER 'plug_user';
-include/rpl_end.inc
diff --git a/mysql-test/r/auto_increment.result b/mysql-test/r/auto_increment.result
deleted file mode 100644
index 12cbf294b69..00000000000
--- a/mysql-test/r/auto_increment.result
+++ /dev/null
@@ -1,539 +0,0 @@
-drop table if exists t1;
-drop table if exists t2;
-SET SQL_WARNINGS=1;
-create table t1 (a int not null auto_increment,b int, primary key (a)) engine=myisam auto_increment=3;
-insert into t1 values (1,1),(NULL,3),(NULL,4);
-delete from t1 where a=4;
-insert into t1 values (NULL,5),(NULL,6);
-select * from t1;
-a b
-1 1
-3 3
-5 5
-6 6
-delete from t1 where a=6;
-replace t1 values (3,1);
-ALTER TABLE t1 add c int;
-replace t1 values (3,3,3);
-insert into t1 values (NULL,7,7);
-update t1 set a=8,b=b+1,c=c+1 where a=7;
-insert into t1 values (NULL,9,9);
-select * from t1;
-a b c
-1 1 NULL
-3 3 3
-5 5 NULL
-8 8 8
-9 9 9
-drop table t1;
-create table t1 (
-skey tinyint unsigned NOT NULL auto_increment PRIMARY KEY,
-sval char(20)
-);
-insert into t1 values (NULL, "hello");
-insert into t1 values (NULL, "hey");
-select * from t1;
-skey sval
-1 hello
-2 hey
-select _rowid,t1._rowid,skey,sval from t1;
-_rowid _rowid skey sval
-1 1 1 hello
-2 2 2 hey
-drop table t1;
-create table t1 (a char(10) not null, b int not null auto_increment, primary key(a,b));
-insert into t1 values ("a",1),("b",2),("a",2),("c",1);
-insert into t1 values ("a",NULL),("b",NULL),("c",NULL),("e",NULL);
-insert into t1 (a) values ("a"),("b"),("c"),("d");
-insert into t1 (a) values ('k'),('d');
-insert into t1 (a) values ("a");
-insert into t1 values ("d",last_insert_id());
-select * from t1;
-a b
-a 1
-a 2
-a 3
-a 4
-a 5
-b 2
-b 3
-b 4
-c 1
-c 2
-c 3
-d 1
-d 2
-d 5
-e 1
-k 1
-drop table t1;
-create table t1 (ordid int(8) not null auto_increment, ord varchar(50) not null, primary key (ordid), index(ord,ordid));
-insert into t1 (ordid,ord) values (NULL,'sdj'),(NULL,'sdj');
-select * from t1;
-ordid ord
-1 sdj
-2 sdj
-drop table t1;
-create table t1 (ordid int(8) not null auto_increment, ord varchar(50) not null, primary key (ord,ordid));
-insert into t1 values (NULL,'sdj'),(NULL,'sdj'),(NULL,"abc"),(NULL,'abc'),(NULL,'zzz'),(NULL,'sdj'),(NULL,'abc');
-select * from t1;
-ordid ord
-1 abc
-2 abc
-3 abc
-1 sdj
-2 sdj
-3 sdj
-1 zzz
-drop table t1;
-create table t1 (sid char(5), id int(2) NOT NULL auto_increment, key(sid, id));
-create table t2 (sid char(20), id int(2));
-insert into t2 values ('skr',NULL),('skr',NULL),('test',NULL);
-insert into t1 select * from t2;
-select * from t1;
-sid id
-skr 1
-skr 2
-test 1
-drop table t1,t2;
-create table t1 (a int not null primary key auto_increment);
-insert into t1 values (0);
-update t1 set a=0;
-select * from t1;
-a
-0
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check warning Found row where the auto_increment column has the value 0
-test.t1 check status OK
-drop table t1;
-create table t1 (a int not null auto_increment primary key);
-insert into t1 values (NULL);
-insert into t1 values (-1);
-select last_insert_id();
-last_insert_id()
-1
-insert into t1 values (NULL);
-select * from t1;
-a
--1
-1
-2
-drop table t1;
-create table t1 (a int not null auto_increment primary key) /*!40102 engine=heap */;
-insert into t1 values (NULL);
-insert into t1 values (-1);
-select last_insert_id();
-last_insert_id()
-1
-insert into t1 values (NULL);
-select * from t1;
-a
-1
--1
-2
-drop table t1;
-create table t1 (i tinyint unsigned not null auto_increment primary key);
-insert into t1 set i = 254;
-insert into t1 set i = null;
-select last_insert_id();
-last_insert_id()
-255
-explain extended select last_insert_id();
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select last_insert_id() AS `last_insert_id()`
-insert into t1 set i = 254;
-ERROR 23000: Duplicate entry '254' for key 'PRIMARY'
-select last_insert_id();
-last_insert_id()
-255
-insert into t1 set i = null;
-ERROR 22003: Out of range value for column 'i' at row 1
-select last_insert_id();
-last_insert_id()
-255
-drop table t1;
-create table t1 (i tinyint unsigned not null auto_increment, key (i));
-insert into t1 set i = 254;
-insert into t1 set i = null;
-select last_insert_id();
-last_insert_id()
-255
-insert into t1 set i = null;
-ERROR 22003: Out of range value for column 'i' at row 1
-select last_insert_id();
-last_insert_id()
-255
-drop table t1;
-create table t1 (i tinyint unsigned not null auto_increment primary key, b int, unique (b));
-insert into t1 values (NULL, 10);
-select last_insert_id();
-last_insert_id()
-1
-insert into t1 values (NULL, 15);
-select last_insert_id();
-last_insert_id()
-2
-insert into t1 values (NULL, 10);
-ERROR 23000: Duplicate entry '10' for key 'b'
-select last_insert_id();
-last_insert_id()
-2
-drop table t1;
-create table t1(a int auto_increment,b int null,primary key(a));
-SET SQL_MODE=NO_AUTO_VALUE_ON_ZERO;
-insert into t1(a,b)values(NULL,1);
-insert into t1(a,b)values(200,2);
-insert into t1(a,b)values(0,3);
-insert into t1(b)values(4);
-insert into t1(b)values(5);
-insert into t1(b)values(6);
-insert into t1(b)values(7);
-select * from t1 order by b;
-a b
-1 1
-200 2
-0 3
-201 4
-202 5
-203 6
-204 7
-alter table t1 modify b mediumint;
-select * from t1 order by b;
-a b
-1 1
-200 2
-0 3
-201 4
-202 5
-203 6
-204 7
-create table t2 (a int);
-insert t2 values (1),(2);
-alter table t2 add b int auto_increment primary key;
-select * from t2;
-a b
-1 1
-2 2
-drop table t2;
-delete from t1 where a=0;
-update t1 set a=0 where b=5;
-select * from t1 order by b;
-a b
-1 1
-200 2
-201 4
-0 5
-203 6
-204 7
-delete from t1 where a=0;
-update t1 set a=NULL where b=6;
-Warnings:
-Warning 1048 Column 'a' cannot be null
-update t1 set a=300 where b=7;
-SET SQL_MODE='';
-insert into t1(a,b)values(NULL,8);
-insert into t1(a,b)values(400,9);
-insert into t1(a,b)values(0,10);
-insert into t1(b)values(11);
-insert into t1(b)values(12);
-insert into t1(b)values(13);
-insert into t1(b)values(14);
-select * from t1 order by b;
-a b
-1 1
-200 2
-201 4
-0 6
-300 7
-301 8
-400 9
-401 10
-402 11
-403 12
-404 13
-405 14
-delete from t1 where a=0;
-update t1 set a=0 where b=12;
-select * from t1 order by b;
-a b
-1 1
-200 2
-201 4
-300 7
-301 8
-400 9
-401 10
-402 11
-0 12
-404 13
-405 14
-delete from t1 where a=0;
-update t1 set a=NULL where b=13;
-Warnings:
-Warning 1048 Column 'a' cannot be null
-update t1 set a=500 where b=14;
-select * from t1 order by b;
-a b
-1 1
-200 2
-201 4
-300 7
-301 8
-400 9
-401 10
-402 11
-0 13
-500 14
-drop table t1;
-create table t1 (a bigint);
-insert into t1 values (1), (2), (3), (NULL), (NULL);
-alter table t1 modify a bigint not null auto_increment primary key;
-select * from t1;
-a
-1
-2
-3
-4
-5
-drop table t1;
-create table t1 (a bigint);
-insert into t1 values (1), (2), (3), (0), (0);
-alter table t1 modify a bigint not null auto_increment primary key;
-select * from t1;
-a
-1
-2
-3
-4
-5
-drop table t1;
-create table t1 (a bigint);
-insert into t1 values (0), (1), (2), (3);
-set sql_mode=NO_AUTO_VALUE_ON_ZERO;
-alter table t1 modify a bigint not null auto_increment primary key;
-set sql_mode= '';
-select * from t1;
-a
-0
-1
-2
-3
-drop table t1;
-create table t1 (a int auto_increment primary key , b int null);
-set sql_mode=NO_AUTO_VALUE_ON_ZERO;
-insert into t1 values (0,1),(1,2),(2,3);
-select * from t1;
-a b
-0 1
-1 2
-2 3
-set sql_mode= '';
-alter table t1 modify b varchar(255);
-insert into t1 values (0,4);
-select * from t1;
-a b
-0 1
-1 2
-2 3
-3 4
-drop table t1;
-CREATE TABLE t1 ( a INT AUTO_INCREMENT, b BLOB, PRIMARY KEY (a,b(10)));
-INSERT INTO t1 (b) VALUES ('aaaa');
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 (b) VALUES ('');
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 (b) VALUES ('bbbb');
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE IF EXISTS t1;
-CREATE TABLE `t1` (
-t1_name VARCHAR(255) DEFAULT NULL,
-t1_id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
-KEY (t1_name),
-PRIMARY KEY (t1_id)
-) AUTO_INCREMENT = 1000;
-INSERT INTO t1 (t1_name) VALUES('MySQL');
-INSERT INTO t1 (t1_name) VALUES('MySQL');
-INSERT INTO t1 (t1_name) VALUES('MySQL');
-SELECT * from t1;
-t1_name t1_id
-MySQL 1000
-MySQL 1001
-MySQL 1002
-SHOW CREATE TABLE `t1`;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t1_name` varchar(255) DEFAULT NULL,
- `t1_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`t1_id`),
- KEY `t1_name` (`t1_name`)
-) ENGINE=MyISAM AUTO_INCREMENT=1003 DEFAULT CHARSET=latin1
-DROP TABLE `t1`;
-create table t1(a int not null auto_increment primary key);
-create table t2(a int not null auto_increment primary key, t1a int);
-insert into t1 values(NULL);
-insert into t2 values (NULL, LAST_INSERT_ID()), (NULL, LAST_INSERT_ID());
-insert into t1 values (NULL);
-insert into t2 values (NULL, LAST_INSERT_ID()), (NULL, LAST_INSERT_ID()),
-(NULL, LAST_INSERT_ID());
-insert into t1 values (NULL);
-insert into t2 values (NULL, LAST_INSERT_ID()), (NULL, LAST_INSERT_ID()),
-(NULL, LAST_INSERT_ID()), (NULL, LAST_INSERT_ID());
-select * from t2;
-a t1a
-1 1
-2 1
-3 2
-4 2
-5 2
-6 3
-7 3
-8 3
-9 3
-drop table t1, t2;
-End of 4.1 tests
-CREATE TABLE t1 ( `a` int(11) NOT NULL auto_increment, `b` int(11) default NULL,PRIMARY KEY (`a`),UNIQUE KEY `b` (`b`));
-insert into t1 (b) values (1);
-replace into t1 (b) values (2), (1), (3);
-select * from t1;
-a b
-3 1
-2 2
-4 3
-truncate table t1;
-insert into t1 (b) values (1);
-replace into t1 (b) values (2);
-replace into t1 (b) values (1);
-replace into t1 (b) values (3);
-select * from t1;
-a b
-3 1
-2 2
-4 3
-drop table t1;
-create table t1 (rowid int not null auto_increment, val int not null,primary
-key (rowid), unique(val));
-replace into t1 (val) values ('1'),('2');
-replace into t1 (val) values ('1'),('2');
-insert into t1 (val) values ('1'),('2');
-ERROR 23000: Duplicate entry '1' for key 'val'
-select * from t1;
-rowid val
-3 1
-4 2
-drop table t1;
-create table t1 (a int not null auto_increment primary key, val int);
-insert into t1 (val) values (1);
-update t1 set a=2 where a=1;
-insert into t1 (val) values (1);
-select * from t1;
-a val
-2 1
-3 1
-drop table t1;
-CREATE TABLE t1 (t1 INT(10) PRIMARY KEY, t2 INT(10));
-INSERT INTO t1 VALUES(0, 0);
-INSERT INTO t1 VALUES(1, 1);
-ALTER TABLE t1 CHANGE t1 t1 INT(10) auto_increment;
-ERROR 23000: ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry '1' for key 'PRIMARY'
-DROP TABLE t1;
-create table t1 (a int primary key auto_increment, b int, c int, d timestamp default current_timestamp, unique(b),unique(c));
-insert into t1 values(null,1,1,now());
-insert into t1 values(null,0,0,null);
-replace into t1 values(null,1,0,null);
-select last_insert_id();
-last_insert_id()
-3
-drop table t1;
-create table t1 (a int primary key auto_increment, b int, c int, e int, d timestamp default current_timestamp, unique(b),unique(c),unique(e));
-insert into t1 values(null,1,1,1,now());
-insert into t1 values(null,0,0,0,null);
-replace into t1 values(null,1,0,2,null);
-select last_insert_id();
-last_insert_id()
-3
-drop table t1;
-#
-# Bug#46616: Assertion `!table->auto_increment_field_not_null' on view
-# manipulations
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1), (1);
-CREATE TABLE t2 ( a INT AUTO_INCREMENT KEY );
-INSERT INTO t2 SELECT a FROM t1;
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-UPDATE t2 SET a = 2;
-SELECT a FROM t2;
-a
-2
-DROP TABLE t1, t2;
-#
-# Bug#39828 autoinc wraps around when offset and increment > 1
-#
-CREATE TABLE t1 (c1 BIGINT UNSIGNED AUTO_INCREMENT, PRIMARY KEY(c1)) engine=MyISAM;
-INSERT INTO t1 VALUES(1);
-INSERT INTO t1 VALUES (18446744073709551601);
-SET @@SESSION.AUTO_INCREMENT_INCREMENT=10;
-SELECT @@SESSION.AUTO_INCREMENT_OFFSET;
-@@SESSION.AUTO_INCREMENT_OFFSET
-1
-INSERT INTO t1 VALUES (NULL), (NULL), (NULL);
-ERROR 22003: Out of range value for column 'c1' at row 2
-SELECT * FROM t1;
-c1
-1
-18446744073709551601
-18446744073709551611
-SET @@SESSION.AUTO_INCREMENT_INCREMENT=default;
-SET @@SESSION.AUTO_INCREMENT_OFFSET=default;
-DROP TABLE t1;
-End of 5.1 tests
-#
-# Bug#50619 assert in handler::update_auto_increment
-#
-CREATE TABLE t1 (pk INT AUTO_INCREMENT, PRIMARY KEY (pk));
-INSERT INTO t1 VALUES (NULL), (-1), (NULL);
-SELECT * FROM t1;
-pk
--1
-1
-2
-DROP TABLE t1;
-CREATE TABLE t1 (pk BIGINT UNSIGNED AUTO_INCREMENT, PRIMARY KEY (pk));
-INSERT INTO t1 VALUES (NULL), (18446744073709551615-1), (NULL);
-ERROR HY000: Failed to read auto-increment value from storage engine
-SELECT * FROM t1;
-pk
-1
-18446744073709551614
-DROP TABLE t1;
-CREATE TABLE t1 (pk BIGINT UNSIGNED AUTO_INCREMENT, PRIMARY KEY (pk));
-insert into t1 values((1<<63)+1);
-insert into t1 values(null);
-select last_insert_id();
-last_insert_id()
-9223372036854775810
-select * from t1;
-pk
-9223372036854775809
-9223372036854775810
-drop table t1;
-CREATE TABLE t1 (pk BIGINT AUTO_INCREMENT, PRIMARY KEY (pk));
-insert into t1 values(-5);
-insert into t1 values(null);
-select last_insert_id();
-last_insert_id()
-1
-select * from t1;
-pk
--5
-1
-drop table t1;
diff --git a/mysql-test/r/auto_increment_ranges_innodb.result b/mysql-test/r/auto_increment_ranges_innodb.result
deleted file mode 100644
index 1d827a5a166..00000000000
--- a/mysql-test/r/auto_increment_ranges_innodb.result
+++ /dev/null
@@ -1,266 +0,0 @@
-set default_storage_engine=innodb;
-drop table if exists t1;
-#
-# Testing ranges with smallint
-#
-create table t1 (a smallint primary key auto_increment);
-insert into t1 values(32767);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-truncate table t1;
-insert into t1 values(32767-1);
-insert into t1 values(NULL);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-select * from t1;
-a
-32766
-32767
-truncate table t1;
-insert into t1 values(32767),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 2
-select * from t1;
-a
-truncate table t1;
-insert into t1 values(32767-1),(NULL),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 3
-truncate table t1;
-insert ignore into t1 values(32767+1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-32767
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-drop table t1;
-#
-# Testing ranges with unsigned smallint
-#
-create table t1 (a smallint unsigned primary key auto_increment);
-insert into t1 values(65535);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-truncate table t1;
-insert into t1 values(65535-1);
-insert into t1 values(NULL);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-select * from t1;
-a
-65534
-65535
-truncate table t1;
-insert into t1 values(65535),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 2
-select * from t1;
-a
-truncate table t1;
-insert into t1 values(65535-1),(NULL),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 3
-truncate table t1;
-insert ignore into t1 values(65535+1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-65535
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-drop table t1;
-#
-# Testing ranges with integer
-#
-create table t1 (a int primary key auto_increment);
-insert into t1 values(2147483647);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-truncate table t1;
-insert into t1 values(2147483647-1);
-insert into t1 values(NULL);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-select * from t1;
-a
-2147483646
-2147483647
-truncate table t1;
-insert into t1 values(2147483647),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 2
-select * from t1;
-a
-truncate table t1;
-insert into t1 values(2147483647-1),(NULL),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 3
-truncate table t1;
-insert ignore into t1 values(2147483647+1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-2147483647
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-drop table t1;
-#
-# Testing ranges with unsigned integer
-#
-create table t1 (a int unsigned primary key auto_increment);
-insert into t1 values(4294967295);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-truncate table t1;
-insert into t1 values(4294967295-1);
-insert into t1 values(NULL);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-select * from t1;
-a
-4294967294
-4294967295
-truncate table t1;
-insert into t1 values(4294967295),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 2
-select * from t1;
-a
-truncate table t1;
-insert into t1 values(4294967295-1),(NULL),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 3
-truncate table t1;
-insert ignore into t1 values(4294967295+1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-4294967295
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-drop table t1;
-#
-# Testing ranges with bigint
-#
-create table t1 (a bigint primary key auto_increment);
-insert into t1 values(cast(9223372036854775807 as unsigned));
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-truncate table t1;
-insert into t1 values(cast(9223372036854775807 as unsigned)-1);
-insert into t1 values(NULL);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-select * from t1;
-a
-9223372036854775806
-9223372036854775807
-truncate table t1;
-insert into t1 values(cast(9223372036854775807 as unsigned)),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 2
-select * from t1;
-a
-truncate table t1;
-insert into t1 values(cast(9223372036854775807 as unsigned)-1),(NULL),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 3
-truncate table t1;
-insert ignore into t1 values(cast(9223372036854775807 as unsigned)+1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-9223372036854775807
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-drop table t1;
-#
-# Testing ranges with unsigned bigint
-#
-create table t1 (a bigint unsigned primary key auto_increment);
-insert into t1 values(18446744073709551615-1);
-insert into t1 values(NULL);
-ERROR HY000: Failed to read auto-increment value from storage engine
-insert into t1 values(NULL);
-ERROR HY000: Failed to read auto-increment value from storage engine
-truncate table t1;
-insert into t1 values(18446744073709551615-1);
-insert into t1 values(NULL);
-ERROR HY000: Failed to read auto-increment value from storage engine
-insert into t1 values(NULL);
-ERROR HY000: Failed to read auto-increment value from storage engine
-select * from t1;
-a
-18446744073709551614
-truncate table t1;
-insert into t1 values(18446744073709551615),(NULL);
-ERROR HY000: Failed to read auto-increment value from storage engine
-select * from t1;
-a
-truncate table t1;
-insert into t1 values(18446744073709551615-1),(NULL),(NULL);
-ERROR HY000: Failed to read auto-increment value from storage engine
-drop table t1;
-#
-# Test IGNORE and strict mode
-#
-create table t1 (a smallint primary key auto_increment);
-insert ignore into t1 values(32766),(NULL),(NULL),(1);
-Warnings:
-Warning 167 Out of range value for column 'a' at row 3
-select * from t1;
-a
-1
-32766
-32767
-truncate table t1;
-set @org_mode=@@sql_mode;
-set @@sql_mode='ansi,traditional';
-insert ignore into t1 values(32766),(NULL),(NULL);
-Warnings:
-Warning 167 Out of range value for column 'a' at row 3
-truncate table t1;
-insert into t1 values(32766),(NULL),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 3
-set @@sql_mode=@org_mode;
-drop table t1;
-#
-# Test auto increment with negative numbers
-#
-CREATE TABLE t1 (a INTEGER AUTO_INCREMENT, PRIMARY KEY (a));
-INSERT INTO t1 VALUES (NULL), (2), (-5), (NULL);
-INSERT INTO t1 VALUES (NULL);
-SELECT * FROM t1;
-a
--5
-1
-2
-3
-5
-TRUNCATE TABLE t1;
-INSERT INTO t1 VALUES (-5), (NULL);
-SELECT * FROM t1;
-a
--5
-1
-DROP TABLE t1;
-#
-# Test inserting a value out-of-range into an auto increment column
-#
-CREATE TABLE t1 (a smallint AUTO_INCREMENT, PRIMARY KEY (a));
-INSERT INTO t1 VALUES (2);
-INSERT IGNORE INTO t1 VALUES (32768);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-INSERT INTO t1 VALUES (NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-SELECT * FROM t1;
-a
-2
-32767
-DROP TABLE t1;
-#
-# Test old behaviour
-#
-create table t1 (a smallint primary key auto_increment);
-insert into t1 values(32766),(NULL);
-delete from t1 where a=32767;
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-drop table t1;
diff --git a/mysql-test/r/auto_increment_ranges_myisam.result b/mysql-test/r/auto_increment_ranges_myisam.result
deleted file mode 100644
index e849e980083..00000000000
--- a/mysql-test/r/auto_increment_ranges_myisam.result
+++ /dev/null
@@ -1,272 +0,0 @@
-set default_storage_engine=MYISAM;
-drop table if exists t1;
-#
-# Testing ranges with smallint
-#
-create table t1 (a smallint primary key auto_increment);
-insert into t1 values(32767);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-truncate table t1;
-insert into t1 values(32767-1);
-insert into t1 values(NULL);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-select * from t1;
-a
-32766
-32767
-truncate table t1;
-insert into t1 values(32767),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 2
-select * from t1;
-a
-32767
-truncate table t1;
-insert into t1 values(32767-1),(NULL),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 3
-truncate table t1;
-insert ignore into t1 values(32767+1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-32767
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-drop table t1;
-#
-# Testing ranges with unsigned smallint
-#
-create table t1 (a smallint unsigned primary key auto_increment);
-insert into t1 values(65535);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-truncate table t1;
-insert into t1 values(65535-1);
-insert into t1 values(NULL);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-select * from t1;
-a
-65534
-65535
-truncate table t1;
-insert into t1 values(65535),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 2
-select * from t1;
-a
-65535
-truncate table t1;
-insert into t1 values(65535-1),(NULL),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 3
-truncate table t1;
-insert ignore into t1 values(65535+1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-65535
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-drop table t1;
-#
-# Testing ranges with integer
-#
-create table t1 (a int primary key auto_increment);
-insert into t1 values(2147483647);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-truncate table t1;
-insert into t1 values(2147483647-1);
-insert into t1 values(NULL);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-select * from t1;
-a
-2147483646
-2147483647
-truncate table t1;
-insert into t1 values(2147483647),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 2
-select * from t1;
-a
-2147483647
-truncate table t1;
-insert into t1 values(2147483647-1),(NULL),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 3
-truncate table t1;
-insert ignore into t1 values(2147483647+1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-2147483647
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-drop table t1;
-#
-# Testing ranges with unsigned integer
-#
-create table t1 (a int unsigned primary key auto_increment);
-insert into t1 values(4294967295);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-truncate table t1;
-insert into t1 values(4294967295-1);
-insert into t1 values(NULL);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-select * from t1;
-a
-4294967294
-4294967295
-truncate table t1;
-insert into t1 values(4294967295),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 2
-select * from t1;
-a
-4294967295
-truncate table t1;
-insert into t1 values(4294967295-1),(NULL),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 3
-truncate table t1;
-insert ignore into t1 values(4294967295+1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-4294967295
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-drop table t1;
-#
-# Testing ranges with bigint
-#
-create table t1 (a bigint primary key auto_increment);
-insert into t1 values(cast(9223372036854775807 as unsigned));
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-truncate table t1;
-insert into t1 values(cast(9223372036854775807 as unsigned)-1);
-insert into t1 values(NULL);
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-select * from t1;
-a
-9223372036854775806
-9223372036854775807
-truncate table t1;
-insert into t1 values(cast(9223372036854775807 as unsigned)),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 2
-select * from t1;
-a
-9223372036854775807
-truncate table t1;
-insert into t1 values(cast(9223372036854775807 as unsigned)-1),(NULL),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 3
-truncate table t1;
-insert ignore into t1 values(cast(9223372036854775807 as unsigned)+1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-9223372036854775807
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-drop table t1;
-#
-# Testing ranges with unsigned bigint
-#
-create table t1 (a bigint unsigned primary key auto_increment);
-insert into t1 values(18446744073709551615-1);
-insert into t1 values(NULL);
-ERROR HY000: Failed to read auto-increment value from storage engine
-insert into t1 values(NULL);
-ERROR HY000: Failed to read auto-increment value from storage engine
-truncate table t1;
-insert into t1 values(18446744073709551615-1);
-insert into t1 values(NULL);
-ERROR HY000: Failed to read auto-increment value from storage engine
-insert into t1 values(NULL);
-ERROR HY000: Failed to read auto-increment value from storage engine
-select * from t1;
-a
-18446744073709551614
-truncate table t1;
-insert into t1 values(18446744073709551615),(NULL);
-ERROR HY000: Failed to read auto-increment value from storage engine
-select * from t1;
-a
-18446744073709551615
-truncate table t1;
-insert into t1 values(18446744073709551615-1),(NULL),(NULL);
-ERROR HY000: Failed to read auto-increment value from storage engine
-drop table t1;
-#
-# Test IGNORE and strict mode
-#
-create table t1 (a smallint primary key auto_increment);
-insert ignore into t1 values(32766),(NULL),(NULL),(1);
-Warnings:
-Warning 167 Out of range value for column 'a' at row 3
-select * from t1;
-a
-1
-32766
-32767
-truncate table t1;
-set @org_mode=@@sql_mode;
-set @@sql_mode='ansi,traditional';
-insert ignore into t1 values(32766),(NULL),(NULL);
-Warnings:
-Warning 167 Out of range value for column 'a' at row 3
-truncate table t1;
-insert into t1 values(32766),(NULL),(NULL);
-ERROR 22003: Out of range value for column 'a' at row 3
-set @@sql_mode=@org_mode;
-drop table t1;
-#
-# Test auto increment with negative numbers
-#
-CREATE TABLE t1 (a INTEGER AUTO_INCREMENT, PRIMARY KEY (a));
-INSERT INTO t1 VALUES (NULL), (2), (-5), (NULL);
-INSERT INTO t1 VALUES (NULL);
-SELECT * FROM t1;
-a
--5
-1
-2
-3
-4
-TRUNCATE TABLE t1;
-INSERT INTO t1 VALUES (-5), (NULL);
-SELECT * FROM t1;
-a
--5
-1
-DROP TABLE t1;
-#
-# Test inserting a value out-of-range into an auto increment column
-#
-CREATE TABLE t1 (a smallint AUTO_INCREMENT, PRIMARY KEY (a));
-INSERT INTO t1 VALUES (2);
-INSERT IGNORE INTO t1 VALUES (32768);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-INSERT INTO t1 VALUES (NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-SELECT * FROM t1;
-a
-2
-32767
-DROP TABLE t1;
-#
-# Test old behaviour
-#
-create table t1 (a smallint primary key auto_increment);
-insert into t1 values(32766),(NULL);
-delete from t1 where a=32767;
-insert into t1 values(NULL);
-ERROR 22003: Out of range value for column 'a' at row 1
-drop table t1;
diff --git a/mysql-test/r/bad_frm_crash_5029.result b/mysql-test/r/bad_frm_crash_5029.result
deleted file mode 100644
index 8aa0065f5ee..00000000000
--- a/mysql-test/r/bad_frm_crash_5029.result
+++ /dev/null
@@ -1,13 +0,0 @@
-show create table t1;
-ERROR 42000: Unknown storage engine 'InnoDB'
-call mtr.add_suppression("t1.frm is inconsistent: engine typecode 43, engine name Aria");
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT NULL,
- KEY `a` (`a`),
- KEY `b` (`b`)
-) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
-drop table t1;
diff --git a/mysql-test/r/bench_count_distinct.result b/mysql-test/r/bench_count_distinct.result
deleted file mode 100644
index 8b67e4be38a..00000000000
--- a/mysql-test/r/bench_count_distinct.result
+++ /dev/null
@@ -1,11 +0,0 @@
-drop table if exists t1;
-create table t1(n int not null, key(n)) delay_key_write = 1;
-select count(distinct n) from t1;
-count(distinct n)
-100
-explain extended select count(distinct n) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range NULL n 4 NULL 10 100.00 Using index for group-by
-Warnings:
-Note 1003 select count(distinct `test`.`t1`.`n`) AS `count(distinct n)` from `test`.`t1`
-drop table t1;
diff --git a/mysql-test/r/big_test.require b/mysql-test/r/big_test.require
deleted file mode 100644
index 001b903496b..00000000000
--- a/mysql-test/r/big_test.require
+++ /dev/null
@@ -1,2 +0,0 @@
-using_big_test
-1
diff --git a/mysql-test/r/bigint.result b/mysql-test/r/bigint.result
deleted file mode 100644
index 8f4b287ab21..00000000000
--- a/mysql-test/r/bigint.result
+++ /dev/null
@@ -1,512 +0,0 @@
-drop table if exists t1, t2;
-select 0,256,00000000000000065536,2147483647,-2147483648,2147483648,+4294967296;
-0 256 00000000000000065536 2147483647 -2147483648 2147483648 4294967296
-0 256 65536 2147483647 -2147483648 2147483648 4294967296
-select 9223372036854775807,-009223372036854775808;
-9223372036854775807 -009223372036854775808
-9223372036854775807 -9223372036854775808
-select +9999999999999999999,-9999999999999999999;
-9999999999999999999 -9999999999999999999
-9999999999999999999 -9999999999999999999
-select cast(9223372036854775808 as unsigned)+1;
-cast(9223372036854775808 as unsigned)+1
-9223372036854775809
-select 9223372036854775808+1;
-9223372036854775808+1
-9223372036854775809
-select -(0-3),round(-(0-3)), round(9999999999999999999);
--(0-3) round(-(0-3)) round(9999999999999999999)
-3 3 9999999999999999999
-select 1,11,101,1001,10001,100001,1000001,10000001,100000001,1000000001,10000000001,100000000001,1000000000001,10000000000001,100000000000001,1000000000000001,10000000000000001,100000000000000001,1000000000000000001,10000000000000000001;
-1 11 101 1001 10001 100001 1000001 10000001 100000001 1000000001 10000000001 100000000001 1000000000001 10000000000001 100000000000001 1000000000000001 10000000000000001 100000000000000001 1000000000000000001 10000000000000000001
-1 11 101 1001 10001 100001 1000001 10000001 100000001 1000000001 10000000001 100000000001 1000000000001 10000000000001 100000000000001 1000000000000001 10000000000000001 100000000000000001 1000000000000000001 10000000000000000001
-select -1,-11,-101,-1001,-10001,-100001,-1000001,-10000001,-100000001,-1000000001,-10000000001,-100000000001,-1000000000001,-10000000000001,-100000000000001,-1000000000000001,-10000000000000001,-100000000000000001,-1000000000000000001,-10000000000000000001;
--1 -11 -101 -1001 -10001 -100001 -1000001 -10000001 -100000001 -1000000001 -10000000001 -100000000001 -1000000000001 -10000000000001 -100000000000001 -1000000000000001 -10000000000000001 -100000000000000001 -1000000000000000001 -10000000000000000001
--1 -11 -101 -1001 -10001 -100001 -1000001 -10000001 -100000001 -1000000001 -10000000001 -100000000001 -1000000000001 -10000000000001 -100000000000001 -1000000000000001 -10000000000000001 -100000000000000001 -1000000000000000001 -10000000000000000001
-select conv(1,10,16),conv((1<<2)-1,10,16),conv((1<<10)-2,10,16),conv((1<<16)-3,10,16),conv((1<<25)-4,10,16),conv((1<<31)-5,10,16),conv((1<<36)-6,10,16),conv((1<<47)-7,10,16),conv((1<<48)-8,10,16),conv((1<<55)-9,10,16),conv((1<<56)-10,10,16),conv((1<<63)-11,10,16);
-conv(1,10,16) conv((1<<2)-1,10,16) conv((1<<10)-2,10,16) conv((1<<16)-3,10,16) conv((1<<25)-4,10,16) conv((1<<31)-5,10,16) conv((1<<36)-6,10,16) conv((1<<47)-7,10,16) conv((1<<48)-8,10,16) conv((1<<55)-9,10,16) conv((1<<56)-10,10,16) conv((1<<63)-11,10,16)
-1 3 3FE FFFD 1FFFFFC 7FFFFFFB FFFFFFFFA 7FFFFFFFFFF9 FFFFFFFFFFF8 7FFFFFFFFFFFF7 FFFFFFFFFFFFF6 7FFFFFFFFFFFFFF5
-create table t1 (a bigint unsigned not null, primary key(a));
-insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE), (18446744073709551613), (18446744073709551612);
-select * from t1;
-a
-18446744073709551612
-18446744073709551613
-18446744073709551614
-18446744073709551615
-select * from t1 where a=18446744073709551615;
-a
-18446744073709551615
-delete from t1 where a=18446744073709551615;
-select * from t1;
-a
-18446744073709551612
-18446744073709551613
-18446744073709551614
-drop table t1;
-create table t1 ( a int not null default 1, big bigint );
-insert into t1 (big) values (-1),(12345678901234567),(9223372036854775807),(18446744073709551615);
-Warnings:
-Warning 1264 Out of range value for column 'big' at row 4
-select * from t1;
-a big
-1 -1
-1 12345678901234567
-1 9223372036854775807
-1 9223372036854775807
-select min(big),max(big),max(big)-1 from t1;
-min(big) max(big) max(big)-1
--1 9223372036854775807 9223372036854775806
-select min(big),max(big),max(big)-1 from t1 group by a;
-min(big) max(big) max(big)-1
--1 9223372036854775807 9223372036854775806
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 modify big bigint unsigned not null;
-Warnings:
-Warning 1264 Out of range value for column 'big' at row 1
-select min(big),max(big),max(big)-1 from t1;
-min(big) max(big) max(big)-1
-0 9223372036854775807 9223372036854775806
-select min(big),max(big),max(big)-1 from t1 group by a;
-min(big) max(big) max(big)-1
-0 9223372036854775807 9223372036854775806
-insert into t1 (big) values (18446744073709551615);
-select * from t1;
-a big
-1 0
-1 12345678901234567
-1 9223372036854775807
-1 9223372036854775807
-1 18446744073709551615
-select min(big),max(big),max(big)-1 from t1;
-min(big) max(big) max(big)-1
-0 18446744073709551615 18446744073709551614
-select min(big),max(big),max(big)-1 from t1 group by a;
-min(big) max(big) max(big)-1
-0 18446744073709551615 18446744073709551614
-alter table t1 add key (big);
-select min(big),max(big),max(big)-1 from t1;
-min(big) max(big) max(big)-1
-0 18446744073709551615 18446744073709551614
-select min(big),max(big),max(big)-1 from t1 group by a;
-min(big) max(big) max(big)-1
-0 18446744073709551615 18446744073709551614
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 modify big bigint not null;
-Warnings:
-Warning 1264 Out of range value for column 'big' at row 5
-select * from t1;
-a big
-1 0
-1 12345678901234567
-1 9223372036854775807
-1 9223372036854775807
-1 9223372036854775807
-select min(big),max(big),max(big)-1 from t1;
-min(big) max(big) max(big)-1
-0 9223372036854775807 9223372036854775806
-select min(big),max(big),max(big)-1 from t1 group by a;
-min(big) max(big) max(big)-1
-0 9223372036854775807 9223372036854775806
-drop table t1;
-create table t1 (id bigint auto_increment primary key, a int) auto_increment=9999999999;
-insert into t1 values (null,1);
-select * from t1;
-id a
-9999999999 1
-select * from t1 limit 9999999999;
-id a
-9999999999 1
-drop table t1;
-CREATE TABLE t1 ( quantity decimal(60,0));
-insert into t1 values (10000000000000000000);
-insert into t1 values (10000000000000000000.0);
-insert into t1 values ('10000000000000000000');
-select * from t1;
-quantity
-10000000000000000000
-10000000000000000000
-10000000000000000000
-drop table t1;
-SELECT '0x8000000000000001'+0;
-'0x8000000000000001'+0
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '0x8000000000000001'
-create table t1 (
-value64 bigint unsigned not null,
-value32 integer not null,
-primary key(value64, value32)
-);
-create table t2 (
-value64 bigint unsigned not null,
-value32 integer not null,
-primary key(value64, value32)
-);
-insert into t1 values(17156792991891826145, 1);
-insert into t1 values( 9223372036854775807, 2);
-insert into t2 values(17156792991891826145, 3);
-insert into t2 values( 9223372036854775807, 4);
-select * from t1;
-value64 value32
-9223372036854775807 2
-17156792991891826145 1
-select * from t2;
-value64 value32
-9223372036854775807 4
-17156792991891826145 3
-select * from t1, t2 where t1.value64=17156792991891826145 and
-t2.value64=17156792991891826145;
-value64 value32 value64 value32
-17156792991891826145 1 17156792991891826145 3
-select * from t1, t2 where t1.value64=17156792991891826145 and
-t2.value64=t1.value64;
-value64 value32 value64 value32
-17156792991891826145 1 17156792991891826145 3
-select * from t1, t2 where t1.value64= 9223372036854775807 and
-t2.value64=9223372036854775807;
-value64 value32 value64 value32
-9223372036854775807 2 9223372036854775807 4
-select * from t1, t2 where t1.value64= 9223372036854775807 and
-t2.value64=t1.value64;
-value64 value32 value64 value32
-9223372036854775807 2 9223372036854775807 4
-drop table t1, t2;
-create table t1 (sint64 bigint not null);
-insert into t1 values (-9223372036854775808);
-select * from t1;
-sint64
--9223372036854775808
-drop table t1;
-create table t1 select 1 as 'a';
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 select 9223372036854775809 as 'a';
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(19) unsigned NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-a
-9223372036854775809
-drop table t1;
-DROP DATABASE IF EXISTS `scott`;
-Warnings:
-Note 1008 Can't drop database 'scott'; database doesn't exist
-create table t1 (a char(100), b varchar(100), c text, d blob);
-insert into t1 values(
-18446744073709551615,18446744073709551615,
-18446744073709551615, 18446744073709551615
-);
-insert into t1 values (-1 | 0,-1 | 0,-1 | 0 ,-1 | 0);
-select * from t1;
-a b c d
-18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615
-18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615
-drop table t1;
-create table t1 ( quantity decimal(2) unsigned);
-insert ignore into t1 values (500), (-500), (~0), (-1);
-Warnings:
-Warning 1264 Out of range value for column 'quantity' at row 1
-Warning 1264 Out of range value for column 'quantity' at row 2
-Warning 1264 Out of range value for column 'quantity' at row 3
-Warning 1264 Out of range value for column 'quantity' at row 4
-select * from t1;
-quantity
-99
-0
-99
-0
-drop table t1;
-CREATE TABLE t1 (
-`col1` INT(1) NULL,
-`col2` INT(2) NULL,
-`col3` INT(3) NULL,
-`col4` INT(4) NULL,
-`col5` INT(5) NULL,
-`col6` INT(6) NULL,
-`col7` INT(7) NULL,
-`col8` INT(8) NULL,
-`col9` INT(9) NULL,
-`col10` BIGINT(10) NULL,
-`col11` BIGINT(11) NULL,
-`col12` BIGINT(12) NULL,
-`col13` BIGINT(13) NULL,
-`col14` BIGINT(14) NULL,
-`col15` BIGINT(15) NULL,
-`col16` BIGINT(16) NULL,
-`col17` BIGINT(17) NULL,
-`col18` BIGINT(18) NULL,
-`col19` DECIMAL(19, 0) NULL,
-`col20` DECIMAL(20, 0) NULL,
-`col21` DECIMAL(21, 0) NULL,
-`col22` DECIMAL(22, 0) NULL,
-`col23` DECIMAL(23, 0) NULL,
-`col24` DECIMAL(24, 0) NULL,
-`col25` DECIMAL(25, 0) NULL,
-`col26` DECIMAL(26, 0) NULL,
-`col27` DECIMAL(27, 0) NULL,
-`col28` DECIMAL(28, 0) NULL,
-`col29` DECIMAL(29, 0) NULL,
-`col30` DECIMAL(30, 0) NULL,
-`col31` DECIMAL(31, 0) NULL,
-`col32` DECIMAL(32, 0) NULL,
-`col33` DECIMAL(33, 0) NULL,
-`col34` DECIMAL(34, 0) NULL,
-`col35` DECIMAL(35, 0) NULL,
-`col36` DECIMAL(36, 0) NULL,
-`col37` DECIMAL(37, 0) NULL,
-`col38` DECIMAL(38, 0) NULL,
-`fix1` DECIMAL(38, 1) NULL,
-`fix2` DECIMAL(38, 2) NULL,
-`fix3` DECIMAL(38, 3) NULL,
-`fix4` DECIMAL(38, 4) NULL,
-`fix5` DECIMAL(38, 5) NULL,
-`fix6` DECIMAL(38, 6) NULL,
-`fix7` DECIMAL(38, 7) NULL,
-`fix8` DECIMAL(38, 8) NULL,
-`fix9` DECIMAL(38, 9) NULL,
-`fix10` DECIMAL(38, 10) NULL,
-`fix11` DECIMAL(38, 11) NULL,
-`fix12` DECIMAL(38, 12) NULL,
-`fix13` DECIMAL(38, 13) NULL,
-`fix14` DECIMAL(38, 14) NULL,
-`fix15` DECIMAL(38, 15) NULL,
-`fix16` DECIMAL(38, 16) NULL,
-`fix17` DECIMAL(38, 17) NULL,
-`fix18` DECIMAL(38, 18) NULL,
-`fix19` DECIMAL(38, 19) NULL,
-`fix20` DECIMAL(38, 20) NULL,
-`fix21` DECIMAL(38, 21) NULL,
-`fix22` DECIMAL(38, 22) NULL,
-`fix23` DECIMAL(38, 23) NULL,
-`fix24` DECIMAL(38, 24) NULL,
-`fix25` DECIMAL(38, 25) NULL,
-`fix26` DECIMAL(38, 26) NULL,
-`fix27` DECIMAL(38, 27) NULL,
-`fix28` DECIMAL(38, 28) NULL,
-`fix29` DECIMAL(38, 29) NULL,
-`fix30` DECIMAL(38, 30) NULL
-);
-INSERT INTO t1(`col1`, `col2`, `col3`, `col4`, `col5`, `col6`, `col7`, `col8`, `col9`, `col10`, `col11`, `col12`, `col13`, `col14`, `col15`, `col16`, `col17`, `col18`, `col19`, `col20`, `col21`, `col22`, `col23`, `col24`, `col25`, `col26`, `col27`, `col28`, `col29`, `col30`, `col31`, `col32`, `col33`, `col34`, `col35`, `col36`, `col37`, `col38`, `fix1`, `fix2`, `fix3`, `fix4`, `fix5`, `fix6`, `fix7`, `fix8`, `fix9`, `fix10`, `fix11`, `fix12`, `fix13`, `fix14`, `fix15`, `fix16`, `fix17`, `fix18`, `fix19`, `fix20`, `fix21`, `fix22`, `fix23`, `fix24`, `fix25`, `fix26`, `fix27`, `fix28`, `fix29`, `fix30`)
-VALUES (9, 99, 999, 9999, 99999, 999999, 9999999, 99999999, 999999999,
-9999999999, 99999999999, 999999999999, 9999999999999, 99999999999999,
-999999999999999, 9999999999999999, 99999999999999999, 999999999999999999,
-9999999999999999999, 99999999999999999999, 999999999999999999999,
-9999999999999999999999, 99999999999999999999999, 999999999999999999999999,
-9999999999999999999999999, 99999999999999999999999999,
-999999999999999999999999999, 9999999999999999999999999999,
-99999999999999999999999999999, 999999999999999999999999999999,
-9999999999999999999999999999999, 99999999999999999999999999999999,
-999999999999999999999999999999999, 9999999999999999999999999999999999,
-99999999999999999999999999999999999, 999999999999999999999999999999999999,
-9999999999999999999999999999999999999, 99999999999999999999999999999999999999,
-9999999999999999999999999999999999999.9,
-999999999999999999999999999999999999.99,
-99999999999999999999999999999999999.999,
-9999999999999999999999999999999999.9999,
-999999999999999999999999999999999.99999,
-99999999999999999999999999999999.999999,
-9999999999999999999999999999999.9999999,
-999999999999999999999999999999.99999999,
-99999999999999999999999999999.999999999,
-9999999999999999999999999999.9999999999,
-999999999999999999999999999.99999999999,
-99999999999999999999999999.999999999999,
-9999999999999999999999999.9999999999999,
-999999999999999999999999.99999999999999,
-99999999999999999999999.999999999999999,
-9999999999999999999999.9999999999999999,
-999999999999999999999.99999999999999999,
-99999999999999999999.999999999999999999,
-9999999999999999999.9999999999999999999,
-999999999999999999.99999999999999999999,
-99999999999999999.999999999999999999999,
-9999999999999999.9999999999999999999999,
-999999999999999.99999999999999999999999,
-99999999999999.999999999999999999999999,
-9999999999999.9999999999999999999999999,
-999999999999.99999999999999999999999999,
-99999999999.999999999999999999999999999,
-9999999999.9999999999999999999999999999,
-999999999.99999999999999999999999999999,
-99999999.999999999999999999999999999999);
-SELECT * FROM t1;
-col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 col11 col12 col13 col14 col15 col16 col17 col18 col19 col20 col21 col22 col23 col24 col25 col26 col27 col28 col29 col30 col31 col32 col33 col34 col35 col36 col37 col38 fix1 fix2 fix3 fix4 fix5 fix6 fix7 fix8 fix9 fix10 fix11 fix12 fix13 fix14 fix15 fix16 fix17 fix18 fix19 fix20 fix21 fix22 fix23 fix24 fix25 fix26 fix27 fix28 fix29 fix30
-9 99 999 9999 99999 999999 9999999 99999999 999999999 9999999999 99999999999 999999999999 9999999999999 99999999999999 999999999999999 9999999999999999 99999999999999999 999999999999999999 9999999999999999999 99999999999999999999 999999999999999999999 9999999999999999999999 99999999999999999999999 999999999999999999999999 9999999999999999999999999 99999999999999999999999999 999999999999999999999999999 9999999999999999999999999999 99999999999999999999999999999 999999999999999999999999999999 9999999999999999999999999999999 99999999999999999999999999999999 999999999999999999999999999999999 9999999999999999999999999999999999 99999999999999999999999999999999999 999999999999999999999999999999999999 9999999999999999999999999999999999999 99999999999999999999999999999999999999 9999999999999999999999999999999999999.9 999999999999999999999999999999999999.99 99999999999999999999999999999999999.999 9999999999999999999999999999999999.9999 999999999999999999999999999999999.99999 99999999999999999999999999999999.999999 9999999999999999999999999999999.9999999 999999999999999999999999999999.99999999 99999999999999999999999999999.999999999 9999999999999999999999999999.9999999999 999999999999999999999999999.99999999999 99999999999999999999999999.999999999999 9999999999999999999999999.9999999999999 999999999999999999999999.99999999999999 99999999999999999999999.999999999999999 9999999999999999999999.9999999999999999 999999999999999999999.99999999999999999 99999999999999999999.999999999999999999 9999999999999999999.9999999999999999999 999999999999999999.99999999999999999999 99999999999999999.999999999999999999999 9999999999999999.9999999999999999999999 999999999999999.99999999999999999999999 99999999999999.999999999999999999999999 9999999999999.9999999999999999999999999 999999999999.99999999999999999999999999 99999999999.999999999999999999999999999 9999999999.9999999999999999999999999999 999999999.99999999999999999999999999999 99999999.999999999999999999999999999999
-DROP TABLE t1;
-create table t1 (bigint_col bigint unsigned);
-insert into t1 values (17666000000000000000);
-select * from t1 where bigint_col=17666000000000000000;
-bigint_col
-17666000000000000000
-select * from t1 where bigint_col='17666000000000000000';
-bigint_col
-17666000000000000000
-drop table t1;
-
-bug 19955 -- mod is signed with bigint
-select cast(10000002383263201056 as unsigned) mod 50 as result;
-result
-6
-create table t1 (c1 bigint unsigned);
-insert into t1 values (10000002383263201056);
-select c1 mod 50 as result from t1;
-result
-6
-drop table t1;
-select cast(19999999999999999999 as signed);
-cast(19999999999999999999 as signed)
-9223372036854775807
-Warnings:
-Warning 1916 Got overflow when converting '19999999999999999999' to INT. Value truncated
-select cast(-19999999999999999999 as signed);
-cast(-19999999999999999999 as signed)
--9223372036854775808
-Warnings:
-Warning 1916 Got overflow when converting '-19999999999999999999' to INT. Value truncated
-select -9223372036854775808;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def -9223372036854775808 8 20 20 N 32897 0 63
--9223372036854775808
--9223372036854775808
-select -(9223372036854775808);
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def -(9223372036854775808) 8 20 20 N 32897 0 63
--(9223372036854775808)
--9223372036854775808
-select -((9223372036854775808));
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def -((9223372036854775808)) 8 20 20 N 32897 0 63
--((9223372036854775808))
--9223372036854775808
-select -(-(9223372036854775808));
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def -(-(9223372036854775808)) 246 20 19 N 32897 0 63
--(-(9223372036854775808))
-9223372036854775808
-select --9223372036854775808, ---9223372036854775808, ----9223372036854775808;
---9223372036854775808 ---9223372036854775808 ----9223372036854775808
-9223372036854775808 -9223372036854775808 9223372036854775808
-select -(-9223372036854775808), -(-(-9223372036854775808));
--(-9223372036854775808) -(-(-9223372036854775808))
-9223372036854775808 -9223372036854775808
-create table t1 select -9223372036854775808 bi;
-describe t1;
-Field Type Null Key Default Extra
-bi bigint(20) NO NULL
-drop table t1;
-create table t1 select -9223372036854775809 bi;
-describe t1;
-Field Type Null Key Default Extra
-bi decimal(19,0) NO NULL
-drop table t1;
-#
-# Bug #45360: wrong results
-#
-CREATE TABLE t1 (id INT AUTO_INCREMENT PRIMARY KEY,
-a BIGINT(20) UNSIGNED,
-b VARCHAR(20));
-INSERT INTO t1 (a) VALUES
-(0),
-(CAST(0x7FFFFFFFFFFFFFFF AS UNSIGNED)),
-(CAST(0x8000000000000000 AS UNSIGNED)),
-(CAST(0xFFFFFFFFFFFFFFFF AS UNSIGNED));
-UPDATE t1 SET b = a;
-# FFFFFFFFFFFFFFFF
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE a = 18446744073709551615 AND TRIM(a) = b;
-SHOW WARNINGS;
-Level Code Message
-Note 1003 select 1 AS `1` from `test`.`t1` where `test`.`t1`.`a` = 18446744073709551615 and '18446744073709551615' = `test`.`t1`.`b`
-# 8000000000000000
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE a = 9223372036854775808 AND TRIM(a) = b;
-SHOW WARNINGS;
-Level Code Message
-Note 1003 select 1 AS `1` from `test`.`t1` where `test`.`t1`.`a` = 9223372036854775808 and '9223372036854775808' = `test`.`t1`.`b`
-# 7FFFFFFFFFFFFFFF
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE a = 9223372036854775807 AND TRIM(a) = b;
-SHOW WARNINGS;
-Level Code Message
-Note 1003 select 1 AS `1` from `test`.`t1` where `test`.`t1`.`a` = 9223372036854775807 and '9223372036854775807' = `test`.`t1`.`b`
-# 0
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE a = 0 AND TRIM(a) = b;
-SHOW WARNINGS;
-Level Code Message
-Note 1003 select 1 AS `1` from `test`.`t1` where `test`.`t1`.`a` = 0 and '0' = `test`.`t1`.`b`
-DROP TABLE t1;
-# End of 5.1 tests
-#
-# Bug#13463415 63502: INCORRECT RESULTS OF BIGINT AND DECIMAL COMPARISON
-#
-CREATE TABLE t_bigint(id BIGINT);
-INSERT INTO t_bigint VALUES (1), (2);
-SELECT id, id >= 1.1 FROM t_bigint;
-id id >= 1.1
-1 0
-2 1
-SELECT id, 1.1 <= id FROM t_bigint;
-id 1.1 <= id
-1 0
-2 1
-SELECT id, id = 1.1 FROM t_bigint;
-id id = 1.1
-1 0
-2 0
-SELECT id, 1.1 = id FROM t_bigint;
-id 1.1 = id
-1 0
-2 0
-SELECT * from t_bigint WHERE id = 1.1;
-id
-SELECT * from t_bigint WHERE id = 1.1e0;
-id
-SELECT * from t_bigint WHERE id = '1.1';
-id
-SELECT * from t_bigint WHERE id = '1.1e0';
-id
-SELECT * from t_bigint WHERE id IN (1.1, 2.2);
-id
-SELECT * from t_bigint WHERE id IN (1.1e0, 2.2e0);
-id
-SELECT * from t_bigint WHERE id IN ('1.1', '2.2');
-id
-SELECT * from t_bigint WHERE id IN ('1.1e0', '2.2e0');
-id
-SELECT * from t_bigint WHERE id BETWEEN 1.1 AND 1.9;
-id
-SELECT * from t_bigint WHERE id BETWEEN 1.1e0 AND 1.9e0;
-id
-SELECT * from t_bigint WHERE id BETWEEN '1.1' AND '1.9';
-id
-SELECT * from t_bigint WHERE id BETWEEN '1.1e0' AND '1.9e0';
-id
-DROP TABLE t_bigint;
-#
-# Bug#11758543 50756: BIGINT '100' MATCHES 1.001E2
-#
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t1 WHERE coalesce(a) BETWEEN 0 and 0.9;
-a
-SELECT * FROM t1 WHERE coalesce(a)=0.9;
-a
-SELECT * FROM t1 WHERE coalesce(a) in (0.8,0.9);
-a
-SELECT * FROM t1 WHERE a BETWEEN 0 AND 0.9;
-a
-SELECT * FROM t1 WHERE a=0.9;
-a
-SELECT * FROM t1 WHERE a IN (0.8,0.9);
-a
-DROP TABLE t1;
-#
-# MDEV-9372 select 100 between 1 and 9223372036854775808 returns false
-#
-SELECT 100 BETWEEN 1 AND 9223372036854775808;
-100 BETWEEN 1 AND 9223372036854775808
-1
diff --git a/mysql-test/r/binary.result b/mysql-test/r/binary.result
deleted file mode 100644
index be87c25e932..00000000000
--- a/mysql-test/r/binary.result
+++ /dev/null
@@ -1,200 +0,0 @@
-drop table if exists t1,t2;
-create table t1 (name char(20) not null, primary key (name));
-create table t2 (name char(20) binary not null, primary key (name));
-insert into t1 values ("å");
-insert into t1 values ("ä");
-insert into t1 values ("ö");
-insert into t2 select * from t1;
-select * from t1 order by name;
-name
-select concat("*",name,"*") from t1 order by 1;
-concat("*",name,"*")
-*å*
-*ä*
-*ö*
-select min(name),min(concat("*",name,"*")),max(name),max(concat("*",name,"*")) from t1;
-min(name) min(concat("*",name,"*")) max(name) max(concat("*",name,"*"))
-å *å* ö *ö*
-select * from t2 order by name;
-name
-select concat("*",name,"*") from t2 order by 1;
-concat("*",name,"*")
-*ä*
-*å*
-*ö*
-select min(name),min(concat("*",name,"*")),max(name),max(concat("*",name,"*")) from t2;
-min(name) min(concat("*",name,"*")) max(name) max(concat("*",name,"*"))
-ä *ä* ö *ö*
-select name from t1 where name between 'Ä' and 'Ö';
-name
-select name from t2 where name between 'ä' and 'ö';
-name
-select name from t2 where name between 'Ä' and 'Ö';
-name
-drop table t1,t2;
-create table t1 (a char(10) not null, b char(10) binary not null,key (a), key(b));
-insert into t1 values ("hello ","hello "),("hello2 ","hello2 ");
-select concat("-",a,"-",b,"-") from t1 where a="hello";
-concat("-",a,"-",b,"-")
--hello-hello-
-select concat("-",a,"-",b,"-") from t1 where a="hello ";
-concat("-",a,"-",b,"-")
--hello-hello-
-select concat("-",a,"-",b,"-") from t1 ignore index (a) where a="hello ";
-concat("-",a,"-",b,"-")
--hello-hello-
-select concat("-",a,"-",b,"-") from t1 where b="hello";
-concat("-",a,"-",b,"-")
--hello-hello-
-select concat("-",a,"-",b,"-") from t1 where b="hello ";
-concat("-",a,"-",b,"-")
--hello-hello-
-select concat("-",a,"-",b,"-") from t1 ignore index (b) where b="hello ";
-concat("-",a,"-",b,"-")
--hello-hello-
-alter table t1 modify b tinytext not null, drop key b, add key (b(100));
-select concat("-",a,"-",b,"-") from t1;
-concat("-",a,"-",b,"-")
--hello-hello-
--hello2-hello2-
-select concat("-",a,"-",b,"-") from t1 where b="hello ";
-concat("-",a,"-",b,"-")
--hello-hello-
-select concat("-",a,"-",b,"-") from t1 ignore index (b) where b="hello ";
-concat("-",a,"-",b,"-")
--hello-hello-
-drop table t1;
-create table t1 (b char(8));
-insert into t1 values(NULL);
-select b from t1 where binary b like '';
-b
-select b from t1 group by binary b like '';
-b
-NULL
-select b from t1 having binary b like '';
-b
-drop table t1;
-create table t1 (a char(3) binary, b binary(3));
-insert into t1 values ('aaa','bbb'),('AAA','BBB');
-select upper(a),upper(b) from t1;
-upper(a) upper(b)
-AAA bbb
-AAA BBB
-select lower(a),lower(b) from t1;
-lower(a) lower(b)
-aaa bbb
-aaa BBB
-select * from t1 where upper(a)='AAA';
-a b
-aaa bbb
-AAA BBB
-select * from t1 where lower(a)='aaa';
-a b
-aaa bbb
-AAA BBB
-select * from t1 where upper(b)='BBB';
-a b
-AAA BBB
-select * from t1 where lower(b)='bbb';
-a b
-aaa bbb
-select charset(a), charset(b), charset(binary 'ccc') from t1 limit 1;
-charset(a) charset(b) charset(binary 'ccc')
-latin1 binary binary
-select collation(a), collation(b), collation(binary 'ccc') from t1 limit 1;
-collation(a) collation(b) collation(binary 'ccc')
-latin1_bin binary binary
-drop table t1;
-create table t1( firstname char(20), lastname char(20));
-insert into t1 values ("john","doe"),("John","Doe");
-select * from t1 where firstname='john' and firstname like binary 'john';
-firstname lastname
-john doe
-select * from t1 where firstname='john' and binary 'john' = firstname;
-firstname lastname
-john doe
-select * from t1 where firstname='john' and firstname = binary 'john';
-firstname lastname
-john doe
-select * from t1 where firstname='John' and firstname like binary 'john';
-firstname lastname
-john doe
-select * from t1 where firstname='john' and firstname like binary 'John';
-firstname lastname
-John Doe
-drop table t1;
-create table t1 (a binary);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` binary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (col1 binary(4));
-insert into t1 values ('a'),('a ');
-select hex(col1) from t1;
-hex(col1)
-61000000
-61200000
-alter table t1 modify col1 binary(10);
-select hex(col1) from t1;
-hex(col1)
-61000000000000000000
-61200000000000000000
-insert into t1 values ('b'),('b ');
-select hex(col1) from t1;
-hex(col1)
-61000000000000000000
-61200000000000000000
-62000000000000000000
-62200000000000000000
-drop table t1;
-CREATE TABLE t1 (
-a binary(20) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0',
-index idx(a)
-);
-INSERT INTO t1 SET a=unhex('1F9480179366F2BF567E1C4B964C1EF029087575');
-INSERT INTO t1 SET a=unhex('1F9480179366F2BF567E1C4B964C1EF029082020');
-INSERT INTO t1 SET a=unhex('1F9480179366F2BF567E1C4B964C1EF029080707');
-SELECT hex(a) FROM t1 order by a;
-hex(a)
-1F9480179366F2BF567E1C4B964C1EF029080707
-1F9480179366F2BF567E1C4B964C1EF029082020
-1F9480179366F2BF567E1C4B964C1EF029087575
-EXPLAIN SELECT hex(a) FROM t1 order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL idx 20 NULL 3 Using index
-SELECT hex(a) from t1 WHERE a=unhex('1F9480179366F2BF567E1C4B964C1EF029082020');
-hex(a)
-1F9480179366F2BF567E1C4B964C1EF029082020
-EXPLAIN
-SELECT hex(a) from t1 WHERE a=unhex('1F9480179366F2BF567E1C4B964C1EF029082020');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx idx 20 const 1 Using where; Using index
-SELECT hex(a) from t1 WHERE a=unhex('1F9480179366F2BF567E1C4B964C1EF02908');
-hex(a)
-DROP TABLE t1;
-CREATE TABLE t1 (
-id numeric(20) NOT NULL,
-lang varchar(8) NOT NULL,
-msg varchar(32) NOT NULL,
-PRIMARY KEY (id,lang)
-);
-INSERT INTO t1 VALUES (33, 'en', 'zzzzzzz');
-INSERT INTO t1 VALUES (31, 'en', 'xxxxxxx');
-INSERT INTO t1 VALUES (32, 'en', 'yyyyyyy');
-SELECT * FROM t1 WHERE id=32;
-id lang msg
-32 en yyyyyyy
-DROP TABLE t1;
diff --git a/mysql-test/r/binary_to_hex.result b/mysql-test/r/binary_to_hex.result
deleted file mode 100644
index 51ee5fa1c62..00000000000
--- a/mysql-test/r/binary_to_hex.result
+++ /dev/null
@@ -1,121 +0,0 @@
-USE test;
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (c1 TINYBLOB,
-c2 BLOB,
-c3 MEDIUMBLOB,
-c4 LONGBLOB,
-c5 TEXT,
-c6 BIT(1),
-c7 CHAR,
-c8 VARCHAR(10),
-c9 GEOMETRY) CHARACTER SET = binary;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` tinyblob DEFAULT NULL,
- `c2` blob DEFAULT NULL,
- `c3` mediumblob DEFAULT NULL,
- `c4` longblob DEFAULT NULL,
- `c5` blob DEFAULT NULL,
- `c6` bit(1) DEFAULT NULL,
- `c7` binary(1) DEFAULT NULL,
- `c8` varbinary(10) DEFAULT NULL,
- `c9` geometry DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=binary
-INSERT INTO t1 VALUES ('tinyblob-text readable', 'blob-text readable',
-'mediumblob-text readable', 'longblob-text readable',
-'text readable', b'1', 'c', 'variable',
-POINT(1, 1));
-CREATE TABLE t2(id int, `col1` binary(10),`col2` blob);
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `id` int(11) DEFAULT NULL,
- `col1` binary(10) DEFAULT NULL,
- `col2` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t2 VALUES (1, X'AB1234', X'123ABC'), (2, X'DE1234', X'123DEF');
-#Print the table contents when binary-as-hex option is off.
-SELECT * FROM t1;
-c1 c2 c3 c4 c5 c6 c7 c8 c9
-tinyblob-text readable blob-text readable mediumblob-text readable longblob-text readable text readable # c variable #
-SELECT * FROM t2;
-id col1 col2
-1 # #
-2 # #
-#Print the table contents after turning on the binary-as-hex option
-
-#Print the table contents in tab format
-
-c1 c2 c3 c4 c5 c6 c7 c8 c9
-0x74696E79626C6F622D74657874207265616461626C65 0x626C6F622D74657874207265616461626C65 0x6D656469756D626C6F622D74657874207265616461626C65 0x6C6F6E67626C6F622D74657874207265616461626C65 0x74657874207265616461626C65 0x01 0x63 0x7661726961626C65 0x000000000101000000000000000000F03F000000000000F03F
-id col1 col2
-1 0xAB123400000000000000 0x123ABC
-2 0xDE123400000000000000 0x123DEF
-
-#Print the table contents in table format
-
-+------------------------------------------------+----------------------------------------+----------------------------------------------------+------------------------------------------------+------------------------------+------------+------------+--------------------+------------------------------------------------------+
-| c1 | c2 | c3 | c4 | c5 | c6 | c7 | c8 | c9 |
-+------------------------------------------------+----------------------------------------+----------------------------------------------------+------------------------------------------------+------------------------------+------------+------------+--------------------+------------------------------------------------------+
-| 0x74696E79626C6F622D74657874207265616461626C65 | 0x626C6F622D74657874207265616461626C65 | 0x6D656469756D626C6F622D74657874207265616461626C65 | 0x6C6F6E67626C6F622D74657874207265616461626C65 | 0x74657874207265616461626C65 | 0x01 | 0x63 | 0x7661726961626C65 | 0x000000000101000000000000000000F03F000000000000F03F |
-+------------------------------------------------+----------------------------------------+----------------------------------------------------+------------------------------------------------+------------------------------+------------+------------+--------------------+------------------------------------------------------+
-+------+------------------------+------------+
-| id | col1 | col2 |
-+------+------------------------+------------+
-| 1 | 0xAB123400000000000000 | 0x123ABC |
-+------+------------------------+------------+
-
-#Print the table contents vertically
-
-*************************** 1. row ***************************
-c1: 0x74696E79626C6F622D74657874207265616461626C65
-c2: 0x626C6F622D74657874207265616461626C65
-c3: 0x6D656469756D626C6F622D74657874207265616461626C65
-c4: 0x6C6F6E67626C6F622D74657874207265616461626C65
-c5: 0x74657874207265616461626C65
-c6: 0x01
-c7: 0x63
-c8: 0x7661726961626C65
-c9: 0x000000000101000000000000000000F03F000000000000F03F
-
-#Print the table contents in xml format
-
-<?xml version="1.0"?>
-
-<resultset statement="SELECT * FROM t1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <row>
- <field name="c1">0x74696E79626C6F622D74657874207265616461626C65</field>
- <field name="c2">0x626C6F622D74657874207265616461626C65</field>
- <field name="c3">0x6D656469756D626C6F622D74657874207265616461626C65</field>
- <field name="c4">0x6C6F6E67626C6F622D74657874207265616461626C65</field>
- <field name="c5">0x74657874207265616461626C65</field>
- <field name="c6">0x01</field>
- <field name="c7">0x63</field>
- <field name="c8">0x7661726961626C65</field>
- <field name="c9">0x000000000101000000000000000000F03F000000000000F03F</field>
- </row>
-</resultset>
-<?xml version="1.0"?>
-
-<resultset statement="SELECT * FROM t2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <row>
- <field name="id">1</field>
- <field name="col1">0xAB123400000000000000</field>
- <field name="col2">0x123ABC</field>
- </row>
-
- <row>
- <field name="id">2</field>
- <field name="col1">0xDE123400000000000000</field>
- <field name="col2">0x123DEF</field>
- </row>
-</resultset>
-
-#Print the table contents in html format
-
-<TABLE BORDER=1><TR><TH>c1</TH><TH>c2</TH><TH>c3</TH><TH>c4</TH><TH>c5</TH><TH>c6</TH><TH>c7</TH><TH>c8</TH><TH>c9</TH></TR><TR><TD>0x74696E79626C6F622D74657874207265616461626C65</TD><TD>0x626C6F622D74657874207265616461626C65</TD><TD>0x6D656469756D626C6F622D74657874207265616461626C65</TD><TD>0x6C6F6E67626C6F622D74657874207265616461626C65</TD><TD>0x74657874207265616461626C65</TD><TD>0x01</TD><TD>0x63</TD><TD>0x7661726961626C65</TD><TD>0x000000000101000000000000000000F03F000000000000F03F</TD></TR></TABLE><TABLE BORDER=1><TR><TH>id</TH><TH>col1</TH><TH>col2</TH></TR><TR><TD>1</TD><TD>0xAB123400000000000000</TD><TD>0x123ABC</TD></TR><TR><TD>2</TD><TD>0xDE123400000000000000</TD><TD>0x123DEF</TD></TR></TABLE>DROP TABLE t1, t2;
-create table t1 (a int);
-formatID gtrid_length bqual_length data
-1 3 2 0x7472316271
-DROP TABLE t1;
diff --git a/mysql-test/r/blackhole.result b/mysql-test/r/blackhole.result
deleted file mode 100644
index 36f5459ff85..00000000000
--- a/mysql-test/r/blackhole.result
+++ /dev/null
@@ -1,26 +0,0 @@
-#
-# Bug #11880012: INDEX_SUBQUERY, BLACKHOLE,
-# HANG IN PREPARING WITH 100% CPU USAGE
-#
-CREATE TABLE t1(a INT NOT NULL);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t2 (a INT UNSIGNED, b INT, UNIQUE KEY (a, b)) ENGINE=BLACKHOLE;
-SELECT 1 FROM t1 WHERE a = ANY (SELECT a FROM t2);
-1
-DROP TABLE t1, t2;
-create temporary table t1 (a int) engine=blackhole;
-lock table t1 write;
-truncate table t1;
-select * from t1;
-a
-unlock tables;
-drop temporary table t1;
-End of 5.5 tests
-#
-# Bug#13948247 DIVISION BY 0 IN GET_BEST_DISJUNCT_QUICK WITH FORCE INDEX GROUP BY
-#
-CREATE TABLE t1(a INT, b INT, c INT, KEY(c), UNIQUE(a)) ENGINE = BLACKHOLE;
-SELECT 0 FROM t1 FORCE INDEX FOR GROUP BY(a) WHERE a = 0 OR b = 0 AND c = 0;
-0
-DROP TABLE t1;
-End of 5.6 tests
diff --git a/mysql-test/r/blackhole_plugin.result b/mysql-test/r/blackhole_plugin.result
deleted file mode 100644
index 2884441056a..00000000000
--- a/mysql-test/r/blackhole_plugin.result
+++ /dev/null
@@ -1,20 +0,0 @@
-set sql_mode="";
-CREATE TABLE t1(a int) ENGINE=BLACKHOLE;
-Warnings:
-Warning 1286 Unknown storage engine 'BLACKHOLE'
-Warning 1266 Using storage engine MyISAM for table 't1'
-set sql_mode=default;
-DROP TABLE t1;
-INSTALL PLUGIN blackhole SONAME 'ha_blackhole.so';
-INSTALL PLUGIN BLACKHOLE SONAME 'ha_blackhole.so';
-ERROR HY000: Plugin 'BLACKHOLE' already installed
-UNINSTALL PLUGIN blackhole;
-INSTALL PLUGIN blackhole SONAME 'ha_blackhole.so';
-CREATE TABLE t1(a int) ENGINE=BLACKHOLE;
-DROP TABLE t1;
-SELECT 1;
-1
-1
-UNINSTALL PLUGIN blackhole;
-UNINSTALL PLUGIN blackhole;
-ERROR 42000: PLUGIN blackhole does not exist
diff --git a/mysql-test/r/bool.result b/mysql-test/r/bool.result
deleted file mode 100644
index 184046a2d6f..00000000000
--- a/mysql-test/r/bool.result
+++ /dev/null
@@ -1,88 +0,0 @@
-DROP TABLE IF EXISTS t1;
-SELECT IF(NULL AND 1, 1, 2), IF(1 AND NULL, 1, 2);
-IF(NULL AND 1, 1, 2) IF(1 AND NULL, 1, 2)
-2 2
-SELECT NULL AND 1, 1 AND NULL, 0 AND NULL, NULL and 0;
-NULL AND 1 1 AND NULL 0 AND NULL NULL and 0
-NULL NULL 0 0
-create table t1 (a int);
-insert into t1 values (0),(1),(NULL);
-SELECT * FROM t1 WHERE IF(a AND 1, 0, 1);
-a
-0
-NULL
-SELECT * FROM t1 WHERE IF(1 AND a, 0, 1);
-a
-0
-NULL
-SELECT * FROM t1 where NOT(a AND 1);
-a
-0
-SELECT * FROM t1 where NOT(1 AND a);
-a
-0
-SELECT * FROM t1 where (a AND 1)=0;
-a
-0
-SELECT * FROM t1 where (1 AND a)=0;
-a
-0
-SELECT * FROM t1 where (1 AND a)=1;
-a
-1
-SELECT * FROM t1 where (1 AND a) IS NULL;
-a
-NULL
-set sql_mode='high_not_precedence';
-select * from t1 where not a between 2 and 3;
-a
-set sql_mode=default;
-select * from t1 where not a between 2 and 3;
-a
-0
-1
-select a, a is false, a is true, a is unknown from t1;
-a a is false a is true a is unknown
-0 1 0 0
-1 0 1 0
-NULL 0 0 1
-select a, a is not false, a is not true, a is not unknown from t1;
-a a is not false a is not true a is not unknown
-0 0 1 1
-1 1 0 1
-NULL 1 1 0
-SET @a=0, @b=0;
-SELECT * FROM t1 WHERE NULL AND (@a:=@a+1);
-a
-SELECT * FROM t1 WHERE NOT(a>=0 AND NULL AND (@b:=@b+1));
-a
-SELECT * FROM t1 WHERE a=2 OR (NULL AND (@a:=@a+1));
-a
-SELECT * FROM t1 WHERE NOT(a=2 OR (NULL AND (@b:=@b+1)));
-a
-DROP TABLE t1;
-create table t1 (a int, b int);
-insert into t1 values(null, null), (0, null), (1, null), (null, 0), (null, 1), (0, 0), (0, 1), (1, 0), (1, 1);
-select ifnull(A, 'N') as A, ifnull(B, 'N') as B, ifnull(not A, 'N') as nA, ifnull(not B, 'N') as nB, ifnull(A and B, 'N') as AB, ifnull(not (A and B), 'N') as `n(AB)`, ifnull((not A or not B), 'N') as nAonB, ifnull(A or B, 'N') as AoB, ifnull(not(A or B), 'N') as `n(AoB)`, ifnull(not A and not B, 'N') as nAnB from t1;
-A B nA nB AB n(AB) nAonB AoB n(AoB) nAnB
-N N N N N N N N N N
-0 N 1 N 0 1 1 N N N
-1 N 0 N N N N 1 0 0
-N 0 N 1 0 1 1 N N N
-N 1 N 0 N N N 1 0 0
-0 0 1 1 0 1 1 0 1 1
-0 1 1 0 0 1 1 1 0 0
-1 0 0 1 0 1 1 1 0 0
-1 1 0 0 1 0 0 1 0 0
-select ifnull(A=1, 'N') as A, ifnull(B=1, 'N') as B, ifnull(not (A=1), 'N') as nA, ifnull(not (B=1), 'N') as nB, ifnull((A=1) and (B=1), 'N') as AB, ifnull(not ((A=1) and (B=1)), 'N') as `n(AB)`, ifnull((not (A=1) or not (B=1)), 'N') as nAonB, ifnull((A=1) or (B=1), 'N') as AoB, ifnull(not((A=1) or (B=1)), 'N') as `n(AoB)`, ifnull(not (A=1) and not (B=1), 'N') as nAnB from t1;
-A B nA nB AB n(AB) nAonB AoB n(AoB) nAnB
-N N N N N N N N N N
-0 N 1 N 0 1 1 N N N
-1 N 0 N N N N 1 0 0
-N 0 N 1 0 1 1 N N N
-N 1 N 0 N N N 1 0 0
-0 0 1 1 0 1 1 0 1 1
-0 1 1 0 0 1 1 1 0 0
-1 0 0 1 0 1 1 1 0 0
-1 1 0 0 1 0 0 1 0 0
-drop table t1;
diff --git a/mysql-test/r/bootstrap.result b/mysql-test/r/bootstrap.result
deleted file mode 100644
index 5cefc281996..00000000000
--- a/mysql-test/r/bootstrap.result
+++ /dev/null
@@ -1,28 +0,0 @@
-drop table if exists t1;
-drop table t1;
-drop table t1;
-ERROR 42S02: Unknown table 'test.t1'
-set @my_max_allowed_packet= @@max_allowed_packet;
-set global max_allowed_packet=64*@@max_allowed_packet;
-set global max_allowed_packet=@my_max_allowed_packet;
-drop table t1;
-End of 5.1 tests
-#
-# Bug #11766306: 59393: HAVE_INNODB=YES WHEN MYSQLD
-# STARTED WITH --SKIP-INNODB
-#
-SELECT 'bug' as '' FROM INFORMATION_SCHEMA.ENGINES WHERE engine='innodb'
- and SUPPORT='YES';
-
-End of 5.5 tests
-flush tables;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select * from mysql.plugin;
-name dl
-EXAMPLE ha_example.so
-truncate table mysql.plugin;
diff --git a/mysql-test/r/bug12427262.result b/mysql-test/r/bug12427262.result
deleted file mode 100644
index 8ec14efc45e..00000000000
--- a/mysql-test/r/bug12427262.result
+++ /dev/null
@@ -1,56 +0,0 @@
-#
-# Bug#12427262 : 60961: SHOW TABLES VERY SLOW WHEN NOT IN SYSTEM DISK CACHE.
-#
-create database show_table_lw_db;
-use show_table_lw_db;
-create table t1 (c1 int);
-create table t2 (c1 int);
-create table t3 (c1 int);
-create table t4 (c1 int);
-create table t5 (c1 int);
-create table t6 (c1 int);
-create table t7 (c1 int);
-create table t8 (c1 int);
-create table t9 (c1 int);
-create table t10 (c1 int);
-select Sum(ALL(COUNT_READ)) from performance_schema.file_summary_by_instance where FILE_NAME
-like "%show_table_lw_db%" AND FILE_NAME like "%.frm%" AND EVENT_NAME='wait/io/file/sql/FRM'
-into @count_read_before;
-show tables;
-Tables_in_show_table_lw_db
-t1
-t10
-t2
-t3
-t4
-t5
-t6
-t7
-t8
-t9
-select Sum(ALL(COUNT_READ)) from performance_schema.file_summary_by_instance where FILE_NAME
-like "%show_table_lw_db%" AND FILE_NAME like "%.frm%" AND EVENT_NAME='wait/io/file/sql/FRM'
-into @count_read_after;
-select @count_read_after-@count_read_before;
-@count_read_after-@count_read_before
-0.00000000000000000000000000000000000000
-show full tables;
-Tables_in_show_table_lw_db Table_type
-t1 BASE TABLE
-t10 BASE TABLE
-t2 BASE TABLE
-t3 BASE TABLE
-t4 BASE TABLE
-t5 BASE TABLE
-t6 BASE TABLE
-t7 BASE TABLE
-t8 BASE TABLE
-t9 BASE TABLE
-select Sum(ALL(COUNT_READ)) from performance_schema.file_summary_by_instance where FILE_NAME
-like "%show_table_lw_db%" AND FILE_NAME like "%.frm%" AND EVENT_NAME='wait/io/file/sql/FRM'
-into @count_read_after;
-select @count_read_after-@count_read_before;
-@count_read_after-@count_read_before
-10.00000000000000000000000000000000000000
-drop table t1;
-drop database show_table_lw_db;
diff --git a/mysql-test/r/bug13633383.result b/mysql-test/r/bug13633383.result
deleted file mode 100644
index ed94ec5b98b..00000000000
--- a/mysql-test/r/bug13633383.result
+++ /dev/null
@@ -1,50 +0,0 @@
-#
-# Bug#13633383 63183: SMALL SORT_BUFFER_SIZE CRASH IN MERGE_BUFFERS
-#
-CREATE TABLE t1 (
-`a` int(11) DEFAULT NULL,
-`col432` bit(8) DEFAULT NULL,
-`col433` geometry DEFAULT NULL,
-`col434` geometry DEFAULT NULL,
-`col435` decimal(50,17) unsigned DEFAULT NULL,
-`col436` geometry NOT NULL,
-`col437` tinyblob NOT NULL,
-`col438` geometry DEFAULT NULL,
-`col439` mediumblob NOT NULL,
-`col440` tinyblob NOT NULL,
-`col441` double unsigned DEFAULT NULL
-);
-CREATE TABLE t2 (
-`a` geometry DEFAULT NULL,
-`col460` date DEFAULT NULL,
-`col461` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-`col462` date NOT NULL,
-`col463` varbinary(89) NOT NULL,
-`col464` year(4) DEFAULT NULL,
-`col465` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-`col466` varchar(236) CHARACTER SET utf8 NOT NULL,
-`col467` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
-);
-CREATE TABLE t3 (
-`FTS_DOC_ID` bigint(20) unsigned NOT NULL,
-`col577` datetime DEFAULT NULL,
-`col579` bit(38) NOT NULL,
-`col580` varchar(93) NOT NULL,
-`col581` datetime DEFAULT NULL,
-`col583` geometry DEFAULT NULL,
-`col584` bit(47) NOT NULL
-);
-set session sort_buffer_size= 32768;
-select col435
-from t3
-natural right outer join t1
-natural right outer join t2 a
-left outer join t2 b on 1
-group by
-repeat('a',10000) desc,
-repeat('a',10000)
-with rollup
-;
-ERROR HY000: Illegal parameter data types int and geometry for operation '='
-set session sort_buffer_size= default;
-DROP TABLE t1, t2, t3;
diff --git a/mysql-test/r/bug39022.result b/mysql-test/r/bug39022.result
deleted file mode 100644
index 599808ca7d7..00000000000
--- a/mysql-test/r/bug39022.result
+++ /dev/null
@@ -1,38 +0,0 @@
-#
-# Bug #39022: Mysql randomly crashing in lock_sec_rec_cons_read_sees
-#
-call mtr.add_suppression("Deadlock found when trying to get lock; try restarting transaction");
-CREATE TABLE t1(a TINYINT NOT NULL,b TINYINT,PRIMARY KEY(b)) ENGINE=innodb;
-CREATE TABLE t2(d TINYINT NOT NULL,UNIQUE KEY(d)) ENGINE=innodb;
-INSERT INTO t1 VALUES (13,0),(8,1),(9,2),(6,3),
-(11,5),(11,6),(7,7),(7,8),(4,9),(6,10),(3,11),(11,12),
-(12,13),(7,14);
-INSERT INTO t2 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),
-(11),(12),(13),(14);
-connect thread1, localhost, root,,;
-connect thread2, localhost, root,,;
-connection thread1;
-START TRANSACTION;
-connection thread2;
-REPLACE INTO t2 VALUES (-17);
-SELECT d FROM t2,t1 WHERE d=(SELECT MAX(a) FROM t1 WHERE t1.a > t2.d) LOCK IN SHARE MODE;
-d
-connection thread1;
-REPLACE INTO t1(a,b) VALUES (67,20);
-connection thread2;
-COMMIT;
-START TRANSACTION;
-REPLACE INTO t1(a,b) VALUES (65,-50);
-REPLACE INTO t2 VALUES (-91);
-SELECT d FROM t2,t1 WHERE d=(SELECT MAX(a) FROM t1 WHERE t1.a > t2.d) LOCK IN SHARE MODE;
-connection thread1;
-# should not crash
-SELECT d FROM t2,t1 WHERE d=(SELECT MAX(a) FROM t1 WHERE t1.a > t2.d) LOCK IN SHARE MODE;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-connection thread2;
-d
-disconnect thread2;
-connection thread1;
-disconnect thread1;
-connection default;
-DROP TABLE t1,t2;
diff --git a/mysql-test/r/bug46760.result b/mysql-test/r/bug46760.result
deleted file mode 100644
index f05d6c5ef99..00000000000
--- a/mysql-test/r/bug46760.result
+++ /dev/null
@@ -1,43 +0,0 @@
-#
-# Bug#46760: Fast ALTER TABLE no longer works for InnoDB
-#
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1);
-# By using --enable_info and verifying that number of affected
-# rows is 0 we check that this ALTER TABLE is really carried
-# out as "fast/online" operation, i.e. without full-blown data
-# copying.
-#
-# I.e. info for the below statement should normally look like:
-#
-# affected rows: 0
-# info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 ALTER COLUMN a SET DEFAULT 10;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT 10
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# MySQL Bug#39200: optimize table does not recognize
-# ROW_FORMAT=COMPRESSED
-#
-CREATE TABLE t1 (a INT) ROW_FORMAT=compressed, ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status Table is already up to date
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED
-DROP TABLE t1;
-End of 5.1 tests
diff --git a/mysql-test/r/bug47671.result b/mysql-test/r/bug47671.result
deleted file mode 100644
index 55e422c12d9..00000000000
--- a/mysql-test/r/bug47671.result
+++ /dev/null
@@ -1,14 +0,0 @@
-#
-# Bug#47671 - wrong character-set after upgrade from 5.1.34 to 5.1.39
-#
-# Extract only charset information from 'status' command output using regex
---------------
-
-Server: MariaDB
-Server characterset: utf8
-Db characterset: utf8
-Client characterset: utf8
-Conn. characterset: utf8
-
---------------
-
diff --git a/mysql-test/r/bug58669.result b/mysql-test/r/bug58669.result
deleted file mode 100644
index a7d1d7b5581..00000000000
--- a/mysql-test/r/bug58669.result
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-# Bug#58669: read_only not enforced on 5.5.x
-#
-CREATE USER user1@localhost;
-CREATE DATABASE db1;
-GRANT ALL PRIVILEGES ON db1.* TO user1@localhost;
-CREATE TABLE db1.t1(a INT);
-connect con1,localhost,user1,,;
-connection con1;
-SELECT CURRENT_USER();
-CURRENT_USER()
-user1@localhost
-SHOW VARIABLES LIKE "read_only%";
-Variable_name Value
-read_only ON
-INSERT INTO db1.t1 VALUES (1);
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-connection default;
-disconnect con1;
-DROP DATABASE db1;
-DROP USER user1@localhost;
diff --git a/mysql-test/r/bulk_replace.result b/mysql-test/r/bulk_replace.result
deleted file mode 100644
index 70f23316829..00000000000
--- a/mysql-test/r/bulk_replace.result
+++ /dev/null
@@ -1,11 +0,0 @@
-drop table if exists t1;
-CREATE TABLE t1 (a int, unique (a), b int not null, unique(b), c int not null, index(c));
-replace into t1 values (1,1,1),(2,2,2),(3,1,3);
-select * from t1;
-a b c
-2 2 2
-3 1 3
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
diff --git a/mysql-test/r/cache_innodb.result b/mysql-test/r/cache_innodb.result
deleted file mode 100644
index 18ae0ac8a83..00000000000
--- a/mysql-test/r/cache_innodb.result
+++ /dev/null
@@ -1,240 +0,0 @@
-SET global query_cache_type=ON;
-SET local query_cache_type=ON;
-SET SESSION STORAGE_ENGINE = InnoDB;
-drop table if exists t1,t2,t3;
-set @save_query_cache_size = @@global.query_cache_size;
-set GLOBAL query_cache_size = 1355776;
-flush status;
-set autocommit=0;
-create table t1 (a int not null);
-insert into t1 values (1),(2),(3);
-select * from t1;
-a
-1
-2
-3
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-drop table t1;
-commit;
-set autocommit=1;
-begin;
-create table t1 (a int not null);
-insert into t1 values (1),(2),(3);
-select * from t1;
-a
-1
-2
-3
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-drop table t1;
-commit;
-create table t1 (a int not null);
-create table t2 (a int not null);
-create table t3 (a int not null);
-insert into t1 values (1),(2);
-insert into t2 values (1),(2);
-insert into t3 values (1),(2);
-select * from t1;
-a
-1
-2
-select * from t2;
-a
-1
-2
-select * from t3;
-a
-1
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 3
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-begin;
-select * from t1;
-a
-1
-2
-select * from t2;
-a
-1
-2
-select * from t3;
-a
-1
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-insert into t1 values (3);
-insert into t2 values (3);
-insert into t1 values (4);
-select * from t1;
-a
-1
-2
-3
-4
-select * from t2;
-a
-1
-2
-3
-select * from t3;
-a
-1
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-commit;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-drop table t3,t2,t1;
-CREATE TABLE t1 (id int(11) NOT NULL auto_increment, PRIMARY KEY (id));
-select count(*) from t1;
-count(*)
-0
-insert into t1 (id) values (0);
-select count(*) from t1;
-count(*)
-1
-drop table t1;
-CREATE TABLE t1 ( id int(10) NOT NULL auto_increment, a varchar(25) default NULL, PRIMARY KEY (id), UNIQUE KEY a (a));
-CREATE TABLE t2 ( id int(10) NOT NULL auto_increment, b varchar(25) default NULL, PRIMARY KEY (id), UNIQUE KEY b (b));
-CREATE TABLE t3 ( id int(10) NOT NULL auto_increment, t1_id int(10) NOT NULL default '0', t2_id int(10) NOT NULL default '0', state int(11) default NULL, PRIMARY KEY (id), UNIQUE KEY t1_id (t1_id,t2_id), KEY t2_id (t2_id,t1_id), CONSTRAINT `t3_ibfk_1` FOREIGN KEY (`t1_id`) REFERENCES `t1` (`id`), CONSTRAINT `t3_ibfk_2` FOREIGN KEY (`t2_id`) REFERENCES `t2` (`id`));
-INSERT INTO t1 VALUES (1,'me');
-INSERT INTO t2 VALUES (1,'you');
-INSERT INTO t3 VALUES (2,1,1,2);
-delete from t3 where t1_id = 1 and t2_id = 1;
-select t1.* from t1, t2, t3 where t3.state & 1 = 0 and t3.t1_id = t1.id and t3.t2_id = t2.id and t1.id = 1 order by t1.a asc;
-id a
-begin;
-insert into t3 VALUES ( NULL, 1, 1, 2 );
-insert into t3 VALUES ( NULL, 1, 1, 2 );
-ERROR 23000: Duplicate entry '1-1' for key 't1_id'
-commit;
-select t1.* from t1, t2, t3 where t3.state & 1 = 0 and t3.t1_id = t1.id and t3.t2_id = t2.id and t1.id = 1 order by t1.a asc;
-id a
-1 me
-drop table t3,t2,t1;
-connect connection1,localhost,root,,;
-SET SESSION STORAGE_ENGINE = InnoDB;
-SET @@autocommit=1;
-connection default;
-SHOW VARIABLES LIKE 'have_query_cache';
-Variable_name Value
-have_query_cache YES
-SET GLOBAL query_cache_size = 204800;
-flush status;
-SET @@autocommit=1;
-SET SESSION STORAGE_ENGINE = InnoDB;
-CREATE TABLE t2 (s1 int, s2 varchar(1000), key(s1));
-INSERT INTO t2 VALUES (1,repeat('a',10)),(2,repeat('a',10)),(3,repeat('a',10)),(4,repeat('a',10));
-COMMIT;
-START TRANSACTION;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-0
-UPDATE t2 SET s2 = 'w' WHERE s1 = 3;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-connection connection1;
-START TRANSACTION;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-0
-INSERT INTO t2 VALUES (5,'w');
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-1
-COMMIT;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-connection default;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-1
-COMMIT;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-connection connection1;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-2
-START TRANSACTION;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-2
-INSERT INTO t2 VALUES (6,'w');
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-3
-connection default;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-2
-START TRANSACTION;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-2
-DELETE from t2 WHERE s1=3;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-1
-COMMIT;
-connection connection1;
-COMMIT;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-disconnect connection1;
-connection default;
-set @@global.query_cache_size = @save_query_cache_size;
-drop table t2;
-SET global query_cache_type=default;
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-BEGIN;
-INSERT INTO t1 VALUES(1);
-ROLLBACK WORK AND CHAIN NO RELEASE;
-SELECT a FROM t1;
-a
-ROLLBACK WORK AND CHAIN NO RELEASE;
-SELECT a FROM t1;
-a
-ROLLBACK;
-DROP TABLE t1;
diff --git a/mysql-test/r/cache_temporal_4265.result b/mysql-test/r/cache_temporal_4265.result
deleted file mode 100644
index 7f215de43fb..00000000000
--- a/mysql-test/r/cache_temporal_4265.result
+++ /dev/null
@@ -1,23 +0,0 @@
-create table t1 (a date);
-insert t1 values ('2000-01-02'), ('2001-02-03'), ('2002-03-04');
-set debug_dbug='d,str_to_datetime_warn';
-select * from t1 where a > date_add('2000-01-01', interval 5 day);
-a
-2001-02-03
-2002-03-04
-Warnings:
-Note 1003 2000-01-01
-set debug_dbug='';
-drop table t1;
-create table t1 (id int not null, ut timestamp(6) not null);
-insert into t1 values(1, '2001-01-01 00:00:00.2');
-insert into t1 values(1, '2001-01-01 00:00:00.1');
-select * from t1;
-id ut
-1 2001-01-01 00:00:00.200000
-1 2001-01-01 00:00:00.100000
-select (select max(m2.ut) from t1 m2 where m1.id <> 0) from t1 m1;
-(select max(m2.ut) from t1 m2 where m1.id <> 0)
-2001-01-01 00:00:00.200000
-2001-01-01 00:00:00.200000
-drop table t1;
diff --git a/mysql-test/r/case.result b/mysql-test/r/case.result
deleted file mode 100644
index f385a3b20c7..00000000000
--- a/mysql-test/r/case.result
+++ /dev/null
@@ -1,546 +0,0 @@
-drop table if exists t1, t2;
-select CASE "b" when "a" then 1 when "b" then 2 END;
-CASE "b" when "a" then 1 when "b" then 2 END
-2
-select CASE "c" when "a" then 1 when "b" then 2 END;
-CASE "c" when "a" then 1 when "b" then 2 END
-NULL
-select CASE "c" when "a" then 1 when "b" then 2 ELSE 3 END;
-CASE "c" when "a" then 1 when "b" then 2 ELSE 3 END
-3
-select CASE BINARY "b" when "a" then 1 when "B" then 2 WHEN "b" then "ok" END;
-CASE BINARY "b" when "a" then 1 when "B" then 2 WHEN "b" then "ok" END
-ok
-select CASE "b" when "a" then 1 when binary "B" then 2 WHEN "b" then "ok" END;
-CASE "b" when "a" then 1 when binary "B" then 2 WHEN "b" then "ok" END
-ok
-select CASE concat("a","b") when concat("ab","") then "a" when "b" then "b" end;
-CASE concat("a","b") when concat("ab","") then "a" when "b" then "b" end
-a
-select CASE when 1=0 then "true" else "false" END;
-CASE when 1=0 then "true" else "false" END
-false
-select CASE 1 when 1 then "one" WHEN 2 then "two" ELSE "more" END;
-CASE 1 when 1 then "one" WHEN 2 then "two" ELSE "more" END
-one
-explain extended select CASE 1 when 1 then "one" WHEN 2 then "two" ELSE "more" END;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select case 1 when 1 then 'one' when 2 then 'two' else 'more' end AS `CASE 1 when 1 then "one" WHEN 2 then "two" ELSE "more" END`
-select CASE 2.0 when 1 then "one" WHEN 2.0 then "two" ELSE "more" END;
-CASE 2.0 when 1 then "one" WHEN 2.0 then "two" ELSE "more" END
-two
-select (CASE "two" when "one" then "1" WHEN "two" then "2" END) | 0;
-(CASE "two" when "one" then "1" WHEN "two" then "2" END) | 0
-2
-select (CASE "two" when "one" then 1.00 WHEN "two" then 2.00 END) +0.0;
-(CASE "two" when "one" then 1.00 WHEN "two" then 2.00 END) +0.0
-2.00
-select case 1/0 when "a" then "true" else "false" END;
-case 1/0 when "a" then "true" else "false" END
-false
-Warnings:
-Warning 1365 Division by 0
-select case 1/0 when "a" then "true" END;
-case 1/0 when "a" then "true" END
-NULL
-Warnings:
-Warning 1365 Division by 0
-select (case 1/0 when "a" then "true" END) | 0;
-(case 1/0 when "a" then "true" END) | 0
-NULL
-Warnings:
-Warning 1365 Division by 0
-select (case 1/0 when "a" then "true" END) + 0.0;
-(case 1/0 when "a" then "true" END) + 0.0
-NULL
-Warnings:
-Warning 1365 Division by 0
-select case when 1>0 then "TRUE" else "FALSE" END;
-case when 1>0 then "TRUE" else "FALSE" END
-TRUE
-select case when 1<0 then "TRUE" else "FALSE" END;
-case when 1<0 then "TRUE" else "FALSE" END
-FALSE
-create table t1 (a int);
-insert into t1 values(1),(2),(3),(4);
-select case a when 1 then 2 when 2 then 3 else 0 end as fcase, count(*) from t1 group by fcase;
-fcase count(*)
-0 2
-2 1
-3 1
-explain extended select case a when 1 then 2 when 2 then 3 else 0 end as fcase, count(*) from t1 group by fcase;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 select case `test`.`t1`.`a` when 1 then 2 when 2 then 3 else 0 end AS `fcase`,count(0) AS `count(*)` from `test`.`t1` group by case `test`.`t1`.`a` when 1 then 2 when 2 then 3 else 0 end
-select case a when 1 then "one" when 2 then "two" else "nothing" end as fcase, count(*) from t1 group by fcase;
-fcase count(*)
-nothing 2
-one 1
-two 1
-drop table t1;
-create table t1 (row int not null, col int not null, val varchar(255) not null);
-insert into t1 values (1,1,'orange'),(1,2,'large'),(2,1,'yellow'),(2,2,'medium'),(3,1,'green'),(3,2,'small');
-select max(case col when 1 then val else null end) as color from t1 group by row;
-color
-orange
-yellow
-green
-drop table t1;
-SET NAMES latin1;
-CREATE TABLE t1 SELECT
-CASE WHEN 1 THEN _latin1'a' COLLATE latin1_danish_ci ELSE _latin1'a' END AS c1,
-CASE WHEN 1 THEN _latin1'a' ELSE _latin1'a' COLLATE latin1_danish_ci END AS c2,
-CASE WHEN 1 THEN 'a' ELSE 1 END AS c3,
-CASE WHEN 1 THEN 1 ELSE 'a' END AS c4,
-CASE WHEN 1 THEN 'a' ELSE 1.0 END AS c5,
-CASE WHEN 1 THEN 1.0 ELSE 'a' END AS c6,
-CASE WHEN 1 THEN 1 ELSE 1.0 END AS c7,
-CASE WHEN 1 THEN 1.0 ELSE 1 END AS c8,
-CASE WHEN 1 THEN 1.0 END AS c9,
-CASE WHEN 1 THEN 0.1e1 else 0.1 END AS c10,
-CASE WHEN 1 THEN 0.1e1 else 1 END AS c11,
-CASE WHEN 1 THEN 0.1e1 else '1' END AS c12
-;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET latin1 COLLATE latin1_danish_ci DEFAULT NULL,
- `c2` varchar(1) CHARACTER SET latin1 COLLATE latin1_danish_ci DEFAULT NULL,
- `c3` varchar(1) NOT NULL,
- `c4` varchar(1) NOT NULL,
- `c5` varchar(4) NOT NULL,
- `c6` varchar(4) NOT NULL,
- `c7` decimal(2,1) NOT NULL,
- `c8` decimal(2,1) NOT NULL,
- `c9` decimal(2,1) DEFAULT NULL,
- `c10` double NOT NULL,
- `c11` double NOT NULL,
- `c12` varchar(5) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SELECT CASE
-WHEN 1
-THEN _latin1'a' COLLATE latin1_danish_ci
-ELSE _latin1'a' COLLATE latin1_swedish_ci
-END;
-ERROR HY000: Illegal mix of collations (latin1_danish_ci,EXPLICIT) and (latin1_swedish_ci,EXPLICIT) for operation 'case'
-SELECT CASE _latin1'a' COLLATE latin1_general_ci
-WHEN _latin1'a' COLLATE latin1_danish_ci THEN 1
-WHEN _latin1'a' COLLATE latin1_swedish_ci THEN 2
-END;
-ERROR HY000: Illegal mix of collations (latin1_general_ci,EXPLICIT), (latin1_danish_ci,EXPLICIT), (latin1_swedish_ci,EXPLICIT) for operation 'case'
-SELECT
-CASE _latin1'a' COLLATE latin1_general_ci WHEN _latin1'A' THEN '1' ELSE 2 END,
-CASE _latin1'a' COLLATE latin1_bin WHEN _latin1'A' THEN '1' ELSE 2 END,
-CASE _latin1'a' WHEN _latin1'A' COLLATE latin1_swedish_ci THEN '1' ELSE 2 END,
-CASE _latin1'a' WHEN _latin1'A' COLLATE latin1_bin THEN '1' ELSE 2 END
-;
-CASE _latin1'a' COLLATE latin1_general_ci WHEN _latin1'A' THEN '1' ELSE 2 END CASE _latin1'a' COLLATE latin1_bin WHEN _latin1'A' THEN '1' ELSE 2 END CASE _latin1'a' WHEN _latin1'A' COLLATE latin1_swedish_ci THEN '1' ELSE 2 END CASE _latin1'a' WHEN _latin1'A' COLLATE latin1_bin THEN '1' ELSE 2 END
-1 2 1 2
-CREATE TABLE t1 SELECT COALESCE(_latin1'a',_latin2'a');
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (latin2_general_ci,COERCIBLE) for operation 'coalesce'
-CREATE TABLE t1 SELECT COALESCE('a' COLLATE latin1_swedish_ci,'b' COLLATE latin1_bin);
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,EXPLICIT) and (latin1_bin,EXPLICIT) for operation 'coalesce'
-CREATE TABLE t1 SELECT
-COALESCE(1), COALESCE(1.0),COALESCE('a'),
-COALESCE(1,1.0), COALESCE(1,'1'),COALESCE(1.1,'1'),
-COALESCE('a' COLLATE latin1_bin,'b');
-explain extended SELECT
-COALESCE(1), COALESCE(1.0),COALESCE('a'),
-COALESCE(1,1.0), COALESCE(1,'1'),COALESCE(1.1,'1'),
-COALESCE('a' COLLATE latin1_bin,'b');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select coalesce(1) AS `COALESCE(1)`,coalesce(1.0) AS `COALESCE(1.0)`,coalesce('a') AS `COALESCE('a')`,coalesce(1,1.0) AS `COALESCE(1,1.0)`,coalesce(1,'1') AS `COALESCE(1,'1')`,coalesce(1.1,'1') AS `COALESCE(1.1,'1')`,coalesce('a' collate latin1_bin,'b') AS `COALESCE('a' COLLATE latin1_bin,'b')`
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `COALESCE(1)` int(1) NOT NULL,
- `COALESCE(1.0)` decimal(2,1) NOT NULL,
- `COALESCE('a')` varchar(1) NOT NULL,
- `COALESCE(1,1.0)` decimal(2,1) NOT NULL,
- `COALESCE(1,'1')` varchar(1) NOT NULL,
- `COALESCE(1.1,'1')` varchar(4) NOT NULL,
- `COALESCE('a' COLLATE latin1_bin,'b')` varchar(1) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 SELECT IFNULL('a' COLLATE latin1_swedish_ci, 'b' COLLATE latin1_bin);
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,EXPLICIT) and (latin1_bin,EXPLICIT) for operation 'ifnull'
-SELECT 'case+union+test'
-UNION
-SELECT CASE LOWER('1') WHEN LOWER('2') THEN 'BUG' ELSE 'nobug' END;
-case+union+test
-case+union+test
-nobug
-SELECT CASE LOWER('1') WHEN LOWER('2') THEN 'BUG' ELSE 'nobug' END;
-CASE LOWER('1') WHEN LOWER('2') THEN 'BUG' ELSE 'nobug' END
-nobug
-SELECT 'case+union+test'
-UNION
-SELECT CASE '1' WHEN '2' THEN 'BUG' ELSE 'nobug' END;
-case+union+test
-case+union+test
-nobug
-create table t1(a float, b int default 3);
-insert into t1 (a) values (2), (11), (8);
-select min(a), min(case when 1=1 then a else NULL end),
-min(case when 1!=1 then NULL else a end)
-from t1 where b=3 group by b;
-min(a) min(case when 1=1 then a else NULL end) min(case when 1!=1 then NULL else a end)
-2 2 2
-drop table t1;
-CREATE TABLE t1 (EMPNUM INT);
-INSERT INTO t1 VALUES (0), (2);
-CREATE TABLE t2 (EMPNUM DECIMAL (4, 2));
-INSERT INTO t2 VALUES (0.0), (9.0);
-SELECT COALESCE(t2.EMPNUM,t1.EMPNUM) AS CEMPNUM,
-t1.EMPNUM AS EMPMUM1, t2.EMPNUM AS EMPNUM2
-FROM t1 LEFT JOIN t2 ON t1.EMPNUM=t2.EMPNUM;
-CEMPNUM EMPMUM1 EMPNUM2
-0.00 0 0.00
-2.00 2 NULL
-SELECT IFNULL(t2.EMPNUM,t1.EMPNUM) AS CEMPNUM,
-t1.EMPNUM AS EMPMUM1, t2.EMPNUM AS EMPNUM2
-FROM t1 LEFT JOIN t2 ON t1.EMPNUM=t2.EMPNUM;
-CEMPNUM EMPMUM1 EMPNUM2
-0.00 0 0.00
-2.00 2 NULL
-DROP TABLE t1,t2;
-End of 4.1 tests
-create table t1 (a int, b bigint unsigned);
-create table t2 (c int);
-insert into t1 (a, b) values (1,4572794622775114594), (2,18196094287899841997),
-(3,11120436154190595086);
-insert into t2 (c) values (1), (2), (3);
-select t1.a, (case t1.a when 0 then 0 else t1.b end) d from t1
-join t2 on t1.a=t2.c order by d;
-a d
-1 4572794622775114594
-3 11120436154190595086
-2 18196094287899841997
-select t1.a, (case t1.a when 0 then 0 else t1.b end) d from t1
-join t2 on t1.a=t2.c where b=11120436154190595086 order by d;
-a d
-3 11120436154190595086
-drop table t1, t2;
-End of 5.0 tests
-#
-# Bug#19875294 ASSERTION `SRC' FAILED IN MY_STRNXFRM_UNICODE
-# (SIG 6 -STRINGS/CTYPE-UTF8.C:5151)
-#
-set @@sql_mode='';
-CREATE TABLE t1(c1 SET('','')CHARACTER SET ucs2);
-Warnings:
-Note 1291 Column 'c1' has duplicated value '' in SET
-INSERT INTO t1 VALUES(990101.102);
-Warnings:
-Warning 1265 Data truncated for column 'c1' at row 1
-SELECT COALESCE(c1)FROM t1 ORDER BY 1;
-COALESCE(c1)
-
-DROP TABLE t1;
-set @@sql_mode=default;
-CREATE TABLE t1(a YEAR);
-SELECT 1 FROM t1 WHERE a=1 AND CASE 1 WHEN a THEN 1 ELSE 1 END;
-1
-DROP TABLE t1;
-create table t1 (f1 time);
-insert t1 values ('00:00:00'),('00:01:00');
-select case t1.f1 when '00:00:00' then 1 end from t1;
-case t1.f1 when '00:00:00' then 1 end
-1
-NULL
-drop table t1;
-#
-# MDEV-9745 Crash with CASE WHEN TRUE THEN COALESCE(CAST(NULL AS UNSIGNED)) ELSE 4 END
-#
-CREATE TABLE t1 SELECT CASE WHEN TRUE THEN COALESCE(CAST(NULL AS UNSIGNED)) ELSE 4 END AS a;
-DESCRIBE t1;
-Field Type Null Key Default Extra
-a decimal(1,0) YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 SELECT CASE WHEN TRUE THEN COALESCE(CAST(NULL AS UNSIGNED)) ELSE 40 END AS a;
-DESCRIBE t1;
-Field Type Null Key Default Extra
-a decimal(2,0) YES NULL
-DROP TABLE t1;
-#
-# Start of 10.1 test
-#
-#
-# MDEV-8752 Wrong result for SELECT..WHERE CASE enum_field WHEN 1 THEN 1 ELSE 0 END AND a='5'
-#
-CREATE TABLE t1 (a ENUM('5','6') CHARACTER SET BINARY);
-INSERT INTO t1 VALUES ('5'),('6');
-SELECT * FROM t1 WHERE a='5';
-a
-5
-SELECT * FROM t1 WHERE a=1;
-a
-5
-SELECT * FROM t1 WHERE CASE a WHEN 1 THEN 1 ELSE 0 END;
-a
-5
-SELECT * FROM t1 WHERE CASE a WHEN 1 THEN 1 ELSE 0 END AND a='5';
-a
-5
-# Multiple comparison types in CASE, not Ok to propagate
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE CASE a WHEN 1 THEN 1 ELSE 0 END AND a='5';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '5' and case `test`.`t1`.`a` when 1 then 1 else 0 end
-DROP TABLE t1;
-CREATE TABLE t1 (a ENUM('a','b','100'));
-INSERT INTO t1 VALUES ('a'),('b'),('100');
-SELECT * FROM t1 WHERE a='a';
-a
-a
-SELECT * FROM t1 WHERE CASE a WHEN 'a' THEN 1 ELSE 0 END;
-a
-a
-SELECT * FROM t1 WHERE CASE a WHEN 'a' THEN 1 ELSE 0 END AND a='a';
-a
-a
-# String comparison in CASE and in the equality, ok to propagate
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE CASE a WHEN 'a' THEN 1 ELSE 0 END AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-SELECT * FROM t1 WHERE a=3;
-a
-100
-SELECT * FROM t1 WHERE CASE a WHEN 3 THEN 1 ELSE 0 END;
-a
-100
-SELECT * FROM t1 WHERE CASE a WHEN 3 THEN 1 ELSE 0 END AND a=3;
-a
-100
-# Integer comparison in CASE and in the equality, not ok to propagate
-# ENUM does not support this type of propagation yet.
-# This can change in the future. See MDEV-8748.
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE CASE a WHEN 3 THEN 1 ELSE 0 END AND a=3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where case `test`.`t1`.`a` when 3 then 1 else 0 end and `test`.`t1`.`a` = 3
-SELECT * FROM t1 WHERE a=3;
-a
-100
-SELECT * FROM t1 WHERE CASE a WHEN '100' THEN 1 ELSE 0 END;
-a
-100
-SELECT * FROM t1 WHERE CASE a WHEN '100' THEN 1 ELSE 0 END AND a=3;
-a
-100
-# String comparison in CASE, integer comparison in the equality, not Ok to propagate
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE CASE a WHEN '100' THEN 1 ELSE 0 END AND a=3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where case `test`.`t1`.`a` when '100' then 1 else 0 end and `test`.`t1`.`a` = 3
-SELECT * FROM t1 WHERE a='100';
-a
-100
-SELECT * FROM t1 WHERE CASE a WHEN 3 THEN 1 ELSE 0 END;
-a
-100
-SELECT * FROM t1 WHERE CASE a WHEN 3 THEN 1 ELSE 0 END AND a='100';
-a
-100
-# Integer comparison in CASE, string comparison in the equality, not Ok to propagate
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE CASE a WHEN 3 THEN 1 ELSE 0 END AND a='100';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '100' and case `test`.`t1`.`a` when 3 then 1 else 0 end
-SELECT * FROM t1 WHERE a='100';
-a
-100
-SELECT * FROM t1 WHERE CASE a WHEN 3 THEN 1 WHEN '100' THEN 1 ELSE 0 END;
-a
-100
-SELECT * FROM t1 WHERE CASE a WHEN 3 THEN 1 WHEN '100' THEN 1 ELSE 0 END AND a='100';
-a
-100
-# Multiple type comparison in CASE, string comparison in the equality, not Ok to propagate
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE CASE a WHEN 3 THEN 1 WHEN '100' THEN 1 ELSE 0 END AND a='100';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '100' and case `test`.`t1`.`a` when 3 then 1 when '100' then 1 else 0 end
-SELECT * FROM t1 WHERE a=3;
-a
-100
-SELECT * FROM t1 WHERE CASE a WHEN 3 THEN 1 WHEN '100' THEN 1 ELSE 0 END;
-a
-100
-SELECT * FROM t1 WHERE CASE a WHEN 3 THEN 1 WHEN '100' THEN 1 ELSE 0 END AND a=3;
-a
-100
-# Multiple type comparison in CASE, integer comparison in the equality, not Ok to propagate
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE CASE a WHEN 3 THEN 1 WHEN '100' THEN 1 ELSE 0 END AND a=3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where case `test`.`t1`.`a` when 3 then 1 when '100' then 1 else 0 end and `test`.`t1`.`a` = 3
-DROP TABLE t1;
-#
-# End of MDEV-8752
-#
-#
-# End of 10.1 test
-#
-select case 'foo' when time'10:00:00' then 'never' when '0' then 'bug' else 'ok' end;
-case 'foo' when time'10:00:00' then 'never' when '0' then 'bug' else 'ok' end
-ok
-Warnings:
-Warning 1292 Truncated incorrect time value: 'foo'
-select 'foo' in (time'10:00:00','0');
-'foo' in (time'10:00:00','0')
-0
-Warnings:
-Warning 1292 Truncated incorrect time value: 'foo'
-create table t1 (a time);
-insert t1 values (100000), (102030), (203040);
-select case 'foo' when a then 'never' when '0' then 'bug' else 'ok' end from t1;
-case 'foo' when a then 'never' when '0' then 'bug' else 'ok' end
-ok
-ok
-ok
-Warnings:
-Warning 1292 Truncated incorrect time value: 'foo'
-select 'foo' in (a,'0') from t1;
-'foo' in (a,'0')
-0
-0
-0
-Warnings:
-Warning 1292 Truncated incorrect time value: 'foo'
-drop table t1;
-select case '20:10:05' when date'2020-10-10' then 'never' when time'20:10:5' then 'ok' else 'bug' end;
-case '20:10:05' when date'2020-10-10' then 'never' when time'20:10:5' then 'ok' else 'bug' end
-ok
-#
-# End of 10.2 test
-#
-#
-# MDEV-11554 Wrong result for CASE on a mixture of signed and unsigned expressions
-#
-CREATE TABLE t1 (a BIGINT, b BIGINT UNSIGNED);
-INSERT INTO t1 VALUES (-9223372036854775808,18446744073709551615);
-SELECT
-CASE -1
-WHEN -9223372036854775808 THEN 'one'
- WHEN 18446744073709551615 THEN 'two'
- END AS c;
-c
-NULL
-PREPARE stmt FROM "SELECT
- CASE -1
- WHEN -9223372036854775808 THEN 'one'
- WHEN 18446744073709551615 THEN 'two'
- END AS c";
-EXECUTE stmt;
-c
-NULL
-EXECUTE stmt;
-c
-NULL
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# MDEV-11555 CASE with a mixture of TIME and DATETIME returns a wrong result
-#
-SELECT
-CASE TIME'10:20:30'
- WHEN 102030 THEN 'one'
- WHEN TIME'10:20:31' THEN 'two'
- END AS good,
-CASE TIME'10:20:30'
- WHEN 102030 THEN 'one'
- WHEN TIME'10:20:31' THEN 'two'
- WHEN TIMESTAMP'2001-01-01 10:20:32' THEN 'three'
- END AS was_bad_now_good;
-good was_bad_now_good
-one one
-PREPARE stmt FROM "SELECT
- CASE TIME'10:20:30'
- WHEN 102030 THEN 'one'
- WHEN TIME'10:20:31' THEN 'two'
- END AS good,
- CASE TIME'10:20:30'
- WHEN 102030 THEN 'one'
- WHEN TIME'10:20:31' THEN 'two'
- WHEN TIMESTAMP'2001-01-01 10:20:32' THEN 'three'
- END AS was_bad_now_good";
-EXECUTE stmt;
-good was_bad_now_good
-one one
-EXECUTE stmt;
-good was_bad_now_good
-one one
-DEALLOCATE PREPARE stmt;
-#
-# MDEV-13864 Change Item_func_case to store the predicant in args[0]
-#
-SET NAMES latin1;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1);
-INSERT INTO t1 VALUES ('a'),('b'),('c');
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='a' AND CASE a WHEN 'a' THEN 'a' ELSE 'a' END='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='a' AND CASE 'a' WHEN a THEN 'a' ELSE 'a' END='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='a' AND CASE 'a' WHEN 'a' THEN a ELSE 'a' END='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a' and (case 'a' when 'a' then `test`.`t1`.`a` else 'a' end) = 'a'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='a' AND CASE 'a' WHEN 'a' THEN 'a' ELSE a END='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a' and (case 'a' when 'a' then 'a' else `test`.`t1`.`a` end) = 'a'
-ALTER TABLE t1 MODIFY a VARBINARY(10);
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='a' AND CASE a WHEN 'a' THEN 'a' ELSE 'a' END='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='a' AND CASE 'a' WHEN a THEN 'a' ELSE 'a' END='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='a' AND CASE 'a' WHEN 'a' THEN a ELSE 'a' END='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='a' AND CASE 'a' WHEN 'a' THEN 'a' ELSE a END='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-DROP TABLE t1;
-#
-# End of 10.3 test
-#
diff --git a/mysql-test/r/case_insensitive_file_system.require b/mysql-test/r/case_insensitive_file_system.require
deleted file mode 100644
index 062ac610ddd..00000000000
--- a/mysql-test/r/case_insensitive_file_system.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Variable_name Value
-lower_case_file_system ON
diff --git a/mysql-test/r/case_insensitive_fs.require b/mysql-test/r/case_insensitive_fs.require
deleted file mode 100644
index 062ac610ddd..00000000000
--- a/mysql-test/r/case_insensitive_fs.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Variable_name Value
-lower_case_file_system ON
diff --git a/mysql-test/r/case_sensitive_file_system.require b/mysql-test/r/case_sensitive_file_system.require
deleted file mode 100644
index d0bdc6bf4ce..00000000000
--- a/mysql-test/r/case_sensitive_file_system.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Variable_name Value
-lower_case_file_system OFF
diff --git a/mysql-test/r/cast.result b/mysql-test/r/cast.result
deleted file mode 100644
index ca314573581..00000000000
--- a/mysql-test/r/cast.result
+++ /dev/null
@@ -1,1279 +0,0 @@
-SET timestamp=unix_timestamp('2001-02-03 10:20:30');
-select CAST(1-2 AS UNSIGNED);
-CAST(1-2 AS UNSIGNED)
-18446744073709551615
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select CAST(CAST(1-2 AS UNSIGNED) AS SIGNED INTEGER);
-CAST(CAST(1-2 AS UNSIGNED) AS SIGNED INTEGER)
--1
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select CAST('10 ' as unsigned integer);
-CAST('10 ' as unsigned integer)
-10
-Warnings:
-Note 1292 Truncated incorrect INTEGER value: '10 '
-select cast(-5 as unsigned) | 1, cast(-5 as unsigned) & -1;
-cast(-5 as unsigned) | 1 cast(-5 as unsigned) & -1
-18446744073709551611 18446744073709551611
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select cast(-5 as unsigned) -1, cast(-5 as unsigned) + 1;
-cast(-5 as unsigned) -1 cast(-5 as unsigned) + 1
-18446744073709551610 18446744073709551612
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select ~5, cast(~5 as signed);
-~5 cast(~5 as signed)
-18446744073709551610 -6
-explain extended select ~5, cast(~5 as signed);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select ~5 AS `~5`,cast(~5 as signed) AS `cast(~5 as signed)`
-select cast(18446744073709551615 as signed);
-cast(18446744073709551615 as signed)
--1
-select cast(5 as unsigned) -6.0;
-cast(5 as unsigned) -6.0
--1.0
-select cast(NULL as signed), cast(1/0 as signed);
-cast(NULL as signed) cast(1/0 as signed)
-NULL NULL
-Warnings:
-Warning 1365 Division by 0
-select cast(1 as double(5,2));
-cast(1 as double(5,2))
-1.00
-select cast("5.2222" as double(5,2));
-cast("5.2222" as double(5,2))
-5.22
-select cast(12.444 as double(5,2));
-cast(12.444 as double(5,2))
-12.44
-select cast(cast(12.444 as decimal(10,3)) as double(5,2));
-cast(cast(12.444 as decimal(10,3)) as double(5,2))
-12.44
-select cast(null as double(5,2));
-cast(null as double(5,2))
-NULL
-select cast(12.444 as double);
-cast(12.444 as double)
-12.444
-select cast(cast("20:01:01" as time) as datetime);
-cast(cast("20:01:01" as time) as datetime)
-2001-02-03 20:01:01
-select cast(cast("8:46:06.23434" AS time) as decimal(32,10));
-cast(cast("8:46:06.23434" AS time) as decimal(32,10))
-84606.0000000000
-select cast(cast("2011-04-05 8:46:06.23434" AS datetime) as decimal(32,6));
-cast(cast("2011-04-05 8:46:06.23434" AS datetime) as decimal(32,6))
-20110405084606.000000
-#
-# Check handling of cast with microseconds
-#
-select cast(cast(20010203101112.121314 as double) as datetime);
-cast(cast(20010203101112.121314 as double) as datetime)
-2001-02-03 10:11:12
-select cast(cast(010203101112.12 as double) as datetime);
-cast(cast(010203101112.12 as double) as datetime)
-2001-02-03 10:11:12
-select cast(cast(20010203101112.121314 as decimal(32,6)) as datetime);
-cast(cast(20010203101112.121314 as decimal(32,6)) as datetime)
-2001-02-03 10:11:12
-select cast(20010203101112.121314 as datetime);
-cast(20010203101112.121314 as datetime)
-2001-02-03 10:11:12
-select cast(110203101112.121314 as datetime);
-cast(110203101112.121314 as datetime)
-2011-02-03 10:11:12
-select cast(cast(010203101112.12 as double) as datetime);
-cast(cast(010203101112.12 as double) as datetime)
-2001-02-03 10:11:12
-select cast("2011-02-03 10:11:12.123456" as datetime);
-cast("2011-02-03 10:11:12.123456" as datetime)
-2011-02-03 10:11:12
-select cast("2011-02-03 10:11:12.123456" as datetime(0));
-cast("2011-02-03 10:11:12.123456" as datetime(0))
-2011-02-03 10:11:12
-select cast("2011-02-03 10:11:12.123456" as datetime(5));
-cast("2011-02-03 10:11:12.123456" as datetime(5))
-2011-02-03 10:11:12.12345
-select cast("2011-02-03 10:11:12.123456" as datetime(6));
-cast("2011-02-03 10:11:12.123456" as datetime(6))
-2011-02-03 10:11:12.123456
-select cast("2011-02-03 10:11:12" as datetime(6));
-cast("2011-02-03 10:11:12" as datetime(6))
-2011-02-03 10:11:12.000000
-select cast(cast(20010203101112.5 as double) as datetime(1));
-cast(cast(20010203101112.5 as double) as datetime(1))
-2001-02-03 10:11:12.5
-select cast(cast(010203101112.12 as double) as datetime(2));
-cast(cast(010203101112.12 as double) as datetime(2))
-2001-02-03 10:11:12.12
-select cast(cast(20010203101112.121314 as decimal(32,6)) as datetime(6));
-cast(cast(20010203101112.121314 as decimal(32,6)) as datetime(6))
-2001-02-03 10:11:12.121314
-select cast(20010203101112.121314 as datetime(6));
-cast(20010203101112.121314 as datetime(6))
-2001-02-03 10:11:12.121314
-select cast(110203101112.121314 as datetime(6));
-cast(110203101112.121314 as datetime(6))
-2011-02-03 10:11:12.121314
-select cast(cast(010203101112.12 as double) as datetime(6));
-cast(cast(010203101112.12 as double) as datetime(6))
-2001-02-03 10:11:12.120000
-select cast("2011-02-03 10:11:12.123456" as time);
-cast("2011-02-03 10:11:12.123456" as time)
-10:11:12
-select cast("2011-02-03 10:11:12.123456" as time(6));
-cast("2011-02-03 10:11:12.123456" as time(6))
-10:11:12.123456
-select cast("10:11:12.123456" as time);
-cast("10:11:12.123456" as time)
-10:11:12
-select cast("10:11:12.123456" as time(0));
-cast("10:11:12.123456" as time(0))
-10:11:12
-select cast("10:11:12.123456" as time(5));
-cast("10:11:12.123456" as time(5))
-10:11:12.12345
-select cast("10:11:12.123456" as time(6));
-cast("10:11:12.123456" as time(6))
-10:11:12.123456
-select cast("10:11:12" as time(6));
-cast("10:11:12" as time(6))
-10:11:12.000000
-select cast(cast("2011-04-05 8:46:06.123456" AS datetime) as time);
-cast(cast("2011-04-05 8:46:06.123456" AS datetime) as time)
-08:46:06
-select cast(cast("2011-04-05 8:46:06.123456" AS datetime) as time(6));
-cast(cast("2011-04-05 8:46:06.123456" AS datetime) as time(6))
-08:46:06.000000
-select cast(cast("2011-04-05 8:46:06.123456" AS datetime(6)) as time);
-cast(cast("2011-04-05 8:46:06.123456" AS datetime(6)) as time)
-08:46:06
-select cast(cast("2011-04-05 8:46:06.123456" AS datetime(6)) as time(6));
-cast(cast("2011-04-05 8:46:06.123456" AS datetime(6)) as time(6))
-08:46:06.123456
-select cast(NULL as unsigned), cast(1/0 as unsigned);
-cast(NULL as unsigned) cast(1/0 as unsigned)
-NULL NULL
-Warnings:
-Warning 1365 Division by 0
-select cast("A" as binary) = "a", cast(BINARY "a" as CHAR) = "A";
-cast("A" as binary) = "a" cast(BINARY "a" as CHAR) = "A"
-0 1
-select cast("2001-1-1" as DATE), cast("2001-1-1" as DATETIME);
-cast("2001-1-1" as DATE) cast("2001-1-1" as DATETIME)
-2001-01-01 2001-01-01 00:00:00
-select cast("1:2:3" as TIME);
-cast("1:2:3" as TIME)
-01:02:03
-select CONVERT("2004-01-22 21:45:33",DATE);
-CONVERT("2004-01-22 21:45:33",DATE)
-2004-01-22
-select 10+'10';
-10+'10'
-20
-select 10.0+'10';
-10.0+'10'
-20
-select 10E+0+'10';
-10E+0+'10'
-20
-select CONVERT(TIMESTAMP "2004-01-22 21:45:33" USING latin1);
-CONVERT(TIMESTAMP "2004-01-22 21:45:33" USING latin1)
-2004-01-22 21:45:33
-select CONVERT(TIMESTAMP "2004-01-22 21:45:33",CHAR);
-CONVERT(TIMESTAMP "2004-01-22 21:45:33",CHAR)
-2004-01-22 21:45:33
-select CONVERT(TIMESTAMP "2004-01-22 21:45:33",CHAR(4));
-CONVERT(TIMESTAMP "2004-01-22 21:45:33",CHAR(4))
-2004
-Warnings:
-Warning 1292 Truncated incorrect CHAR(4) value: '2004-01-22 21:45:33'
-select CONVERT(TIMESTAMP "2004-01-22 21:45:33",BINARY(4));
-CONVERT(TIMESTAMP "2004-01-22 21:45:33",BINARY(4))
-2004
-Warnings:
-Warning 1292 Truncated incorrect BINARY(4) value: '2004-01-22 21:45:33'
-select CAST(TIMESTAMP "2004-01-22 21:45:33" AS BINARY(4));
-CAST(TIMESTAMP "2004-01-22 21:45:33" AS BINARY(4))
-2004
-Warnings:
-Warning 1292 Truncated incorrect BINARY(4) value: '2004-01-22 21:45:33'
-select CAST(0xb3 as signed);
-CAST(0xb3 as signed)
-179
-select CAST(0x8fffffffffffffff as signed);
-CAST(0x8fffffffffffffff as signed)
--8070450532247928833
-select CAST(0xffffffffffffffff as unsigned);
-CAST(0xffffffffffffffff as unsigned)
-18446744073709551615
-select CAST(0xfffffffffffffffe as signed);
-CAST(0xfffffffffffffffe as signed)
--2
-select cast('-10a' as signed integer);
-cast('-10a' as signed integer)
--10
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '-10a'
-select cast('a10' as unsigned integer);
-cast('a10' as unsigned integer)
-0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'a10'
-select 10+'a';
-10+'a'
-10
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-select 10.0+cast('a' as decimal);
-10.0+cast('a' as decimal)
-10.0
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: 'a'
-select 10E+0+'a';
-10E+0+'a'
-10
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-select cast("a" as double(5,2));
-cast("a" as double(5,2))
-0.00
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-select cast(1000 as decimal(5,2));
-cast(1000 as decimal(5,2))
-999.99
-Warnings:
-Warning 1264 Out of range value for column 'cast(1000 as decimal(5,2))' at row 1
-select cast(-1000 as decimal(5,2));
-cast(-1000 as decimal(5,2))
--999.99
-Warnings:
-Warning 1264 Out of range value for column 'cast(-1000 as decimal(5,2))' at row 1
-select cast(1000 as double(5,2));
-cast(1000 as double(5,2))
-999.99
-Warnings:
-Warning 1264 Out of range value for column 'cast(1000 as double(5,2))' at row 1
-select cast(-1000 as double(5,2));
-cast(-1000 as double(5,2))
--999.99
-Warnings:
-Warning 1264 Out of range value for column 'cast(-1000 as double(5,2))' at row 1
-select cast(010203101112.121314 as datetime);
-cast(010203101112.121314 as datetime)
-2001-02-03 10:11:12
-select cast(120010203101112.121314 as datetime);
-cast(120010203101112.121314 as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '120010203101112.121314'
-select cast(cast(1.1 as decimal) as datetime);
-cast(cast(1.1 as decimal) as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-select cast(cast(-1.1 as decimal) as datetime);
-cast(cast(-1.1 as decimal) as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '-1'
-select cast('0' as date);
-cast('0' as date)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0'
-select cast('' as date);
-cast('' as date)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-select cast('0' as datetime);
-cast('0' as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0'
-select cast('' as datetime);
-cast('' as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-select cast('0' as time);
-cast('0' as time)
-00:00:00
-select cast('' as time);
-cast('' as time)
-NULL
-Warnings:
-Warning 1292 Truncated incorrect time value: ''
-select cast(NULL as DATE);
-cast(NULL as DATE)
-NULL
-select cast(NULL as DATETIME);
-cast(NULL as DATETIME)
-NULL
-select cast(NULL as TIME);
-cast(NULL as TIME)
-NULL
-select cast(NULL as BINARY);
-cast(NULL as BINARY)
-NULL
-select cast(cast(120010203101112.121314 as double) as datetime);
-cast(cast(120010203101112.121314 as double) as datetime)
-NULL
-select cast(cast(1.1 as double) as datetime);
-cast(cast(1.1 as double) as datetime)
-NULL
-select cast(cast(-1.1 as double) as datetime);
-cast(cast(-1.1 as double) as datetime)
-NULL
-explain extended select cast(10 as double(5,2));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select cast(10 as double(5,2)) AS `cast(10 as double(5,2))`
-explain extended select cast(10 as double);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select cast(10 as double) AS `cast(10 as double)`
-explain extended select cast(10 as decimal(5,2));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select cast(10 as decimal(5,2)) AS `cast(10 as decimal(5,2))`
-select cast('18446744073709551616' as unsigned);
-cast('18446744073709551616' as unsigned)
-18446744073709551615
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '18446744073709551616'
-select cast('18446744073709551616' as signed);
-cast('18446744073709551616' as signed)
--1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '18446744073709551616'
-select cast('9223372036854775809' as signed);
-cast('9223372036854775809' as signed)
--9223372036854775807
-Warnings:
-Note 1105 Cast to signed converted positive out-of-range integer to it's negative complement
-select cast('-1' as unsigned);
-cast('-1' as unsigned)
-18446744073709551615
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select cast('abc' as signed);
-cast('abc' as signed)
-0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'abc'
-select cast('1a' as signed);
-cast('1a' as signed)
-1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1a'
-select cast('' as signed);
-cast('' as signed)
-0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: ''
-select cast(1 as double(5,6));
-ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column '')
-select cast(1 as decimal(5,6));
-ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column '')
-select cast(1 as double(66,6));
-ERROR 42000: Too big precision 66 specified for '1'. Maximum is 65
-select cast(1 as decimal(66,6));
-ERROR 42000: Too big precision 66 specified for '1'. Maximum is 65
-select cast(1 as decimal(64,63));
-ERROR 42000: Too big scale 63 specified for '1'. Maximum is 38
-select cast(1 as double(64,63));
-ERROR 42000: Too big scale 63 specified for '1'. Maximum is 38
-set names binary;
-select cast(_latin1'test' as char character set latin2);
-cast(_latin1'test' as char character set latin2)
-test
-select cast(_koi8r'ÔÅÓÔ' as char character set cp1251);
-cast(_koi8r'ÔÅÓÔ' as char character set cp1251)
-òåñò
-create table t1 select cast(_koi8r'ÔÅÓÔ' as char character set cp1251) as t;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t` varchar(4) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select
-cast(_latin1'ab' AS char) as c1,
-cast(_latin1'a ' AS char) as c2,
-cast(_latin1'abc' AS char(2)) as c3,
-cast(_latin1'a ' AS char(2)) as c4,
-hex(cast(_latin1'a' AS char(2))) as c5;
-c1 c2 c3 c4 c5
-ab a ab a 6100
-Warnings:
-Warning 1292 Truncated incorrect BINARY(2) value: 'abc'
-Warning 1292 Truncated incorrect BINARY(2) value: 'a '
-select cast(1000 as CHAR(3));
-cast(1000 as CHAR(3))
-100
-Warnings:
-Warning 1292 Truncated incorrect BINARY(3) value: '1000'
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1 select
-cast(_latin1'ab' AS char) as c1,
-cast(_latin1'a ' AS char) as c2,
-cast(_latin1'abc' AS char(2)) as c3,
-cast(_latin1'a ' AS char(2)) as c4,
-cast(_latin1'a' AS char(2)) as c5;
-Warnings:
-Warning 1292 Truncated incorrect BINARY(2) value: 'abc'
-Warning 1292 Truncated incorrect BINARY(2) value: 'a '
-select c1,c2,c3,c4,hex(c5) from t1;
-c1 c2 c3 c4 hex(c5)
-ab a ab a 6100
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) NOT NULL,
- `c2` varbinary(2) NOT NULL,
- `c3` varbinary(2) NOT NULL,
- `c4` varbinary(2) NOT NULL,
- `c5` varbinary(2) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select
-cast(_koi8r'ÆÇ' AS nchar) as c1,
-cast(_koi8r'Æ ' AS nchar) as c2,
-cast(_koi8r'ÆÇÈ' AS nchar(2)) as c3,
-cast(_koi8r'Æ ' AS nchar(2)) as c4,
-cast(_koi8r'Æ' AS nchar(2)) as c5;
-c1 c2 c3 c4 c5
-фг ф фг ф ф
-Warnings:
-Warning 1292 Truncated incorrect CHAR(2) value: 'фгх'
-Warning 1292 Truncated incorrect CHAR(2) value: 'Ñ„ '
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1 select
-cast(_koi8r'ÆÇ' AS nchar) as c1,
-cast(_koi8r'Æ ' AS nchar) as c2,
-cast(_koi8r'ÆÇÈ' AS nchar(2)) as c3,
-cast(_koi8r'Æ ' AS nchar(2)) as c4,
-cast(_koi8r'Æ' AS nchar(2)) as c5;
-Warnings:
-Warning 1292 Truncated incorrect CHAR(2) value: 'фгх'
-Warning 1292 Truncated incorrect CHAR(2) value: 'Ñ„ '
-select * from t1;
-c1 c2 c3 c4 c5
-фг ф фг ф ф
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 NOT NULL,
- `c2` varchar(2) CHARACTER SET utf8 NOT NULL,
- `c3` varchar(2) CHARACTER SET utf8 NOT NULL,
- `c4` varchar(2) CHARACTER SET utf8 NOT NULL,
- `c5` varchar(2) CHARACTER SET utf8 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a binary(4), b char(4) character set koi8r);
-insert into t1 values (_binary'ÔÅÓÔ',_binary'ÔÅÓÔ');
-select a,b,cast(a as char character set cp1251),cast(b as binary) from t1;
-a b cast(a as char character set cp1251) cast(b as binary)
-ÔÅÓÔ ÔÅÓÔ ÔÅÓÔ ÔÅÓÔ
-set names koi8r;
-select a,b,cast(a as char character set cp1251),cast(b as binary) from t1;
-a b cast(a as char character set cp1251) cast(b as binary)
-ÔÅÓÔ ÔÅÓÔ æåõæ ÔÅÓÔ
-set names cp1251;
-select a,b,cast(a as char character set cp1251),cast(b as binary) from t1;
-a b cast(a as char character set cp1251) cast(b as binary)
-ÔÅÓÔ òåñò ÔÅÓÔ ÔÅÓÔ
-drop table t1;
-set names binary;
-select cast("2001-1-1" as date) = "2001-01-01";
-cast("2001-1-1" as date) = "2001-01-01"
-1
-select cast("2001-1-1" as datetime) = "2001-01-01 00:00:00";
-cast("2001-1-1" as datetime) = "2001-01-01 00:00:00"
-1
-select cast("1:2:3" as TIME) = "1:02:03";
-cast("1:2:3" as TIME) = "1:02:03"
-1
-CREATE TABLE t1 (a enum ('aac','aab','aaa') not null);
-INSERT INTO t1 VALUES ('aaa'),('aab'),('aac');
-SELECT a, CAST(a AS CHAR) FROM t1 ORDER BY CAST(a AS UNSIGNED) ;
-a CAST(a AS CHAR)
-aac aac
-aab aab
-aaa aaa
-SELECT a, CAST(a AS CHAR(3)) FROM t1 ORDER BY CAST(a AS CHAR(2)), a;
-a CAST(a AS CHAR(3))
-aac aac
-aab aab
-aaa aaa
-Warnings:
-Warning 1292 Truncated incorrect BINARY(2) value: 'aaa'
-Warning 1292 Truncated incorrect BINARY(2) value: 'aab'
-Warning 1292 Truncated incorrect BINARY(2) value: 'aac'
-SELECT a, CAST(a AS UNSIGNED) FROM t1 ORDER BY CAST(a AS CHAR) ;
-a CAST(a AS UNSIGNED)
-aaa 3
-aab 2
-aac 1
-SELECT a, CAST(a AS CHAR(2)) FROM t1 ORDER BY CAST(a AS CHAR(3)), a;
-a CAST(a AS CHAR(2))
-aaa aa
-aab aa
-aac aa
-Warnings:
-Warning 1292 Truncated incorrect BINARY(2) value: 'aaa'
-Warning 1292 Truncated incorrect BINARY(2) value: 'aab'
-Warning 1292 Truncated incorrect BINARY(2) value: 'aac'
-DROP TABLE t1;
-select date_add(cast('2004-12-30 12:00:00' as date), interval 0 hour);
-date_add(cast('2004-12-30 12:00:00' as date), interval 0 hour)
-2004-12-30 00:00:00
-select timediff(cast('2004-12-30 12:00:00' as time), '12:00:00');
-timediff(cast('2004-12-30 12:00:00' as time), '12:00:00')
-00:00:00
-select timediff(cast('1 12:00:00' as time), '12:00:00');
-timediff(cast('1 12:00:00' as time), '12:00:00')
-24:00:00
-select cast(18446744073709551615 as unsigned);
-cast(18446744073709551615 as unsigned)
-18446744073709551615
-select cast(18446744073709551615 as signed);
-cast(18446744073709551615 as signed)
--1
-select cast('18446744073709551615' as unsigned);
-cast('18446744073709551615' as unsigned)
-18446744073709551615
-select cast('18446744073709551615' as signed);
-cast('18446744073709551615' as signed)
--1
-Warnings:
-Note 1105 Cast to signed converted positive out-of-range integer to it's negative complement
-select cast('9223372036854775807' as signed);
-cast('9223372036854775807' as signed)
-9223372036854775807
-select cast(concat('184467440','73709551615') as unsigned);
-cast(concat('184467440','73709551615') as unsigned)
-18446744073709551615
-select cast(concat('184467440','73709551615') as signed);
-cast(concat('184467440','73709551615') as signed)
--1
-Warnings:
-Note 1105 Cast to signed converted positive out-of-range integer to it's negative complement
-select cast(repeat('1',20) as unsigned);
-cast(repeat('1',20) as unsigned)
-11111111111111111111
-select cast(repeat('1',20) as signed);
-cast(repeat('1',20) as signed)
--7335632962598440505
-Warnings:
-Note 1105 Cast to signed converted positive out-of-range integer to it's negative complement
-select cast(1.0e+300 as signed int);
-cast(1.0e+300 as signed int)
-9223372036854775807
-create table t1 select cast(1 as unsigned), cast(1 as signed), cast(1 as double(5,2)), cast(1 as decimal(5,3)), cast("A" as binary), cast("A" as char(100)), cast("2001-1-1" as DATE), cast("2001-1-1" as DATETIME), cast("1:2:3" as TIME);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `cast(1 as unsigned)` int(1) unsigned NOT NULL,
- `cast(1 as signed)` int(2) NOT NULL,
- `cast(1 as double(5,2))` double(5,2) DEFAULT NULL,
- `cast(1 as decimal(5,3))` decimal(5,3) NOT NULL,
- `cast("A" as binary)` varbinary(1) DEFAULT NULL,
- `cast("A" as char(100))` varbinary(100) DEFAULT NULL,
- `cast("2001-1-1" as DATE)` date DEFAULT NULL,
- `cast("2001-1-1" as DATETIME)` datetime DEFAULT NULL,
- `cast("1:2:3" as TIME)` time DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 (f1 double);
-INSERT INTO t1 SET f1 = -1.0e+30 ;
-INSERT INTO t1 SET f1 = +1.0e+30 ;
-SELECT f1 AS double_val, CAST(f1 AS SIGNED INT) AS cast_val FROM t1;
-double_val cast_val
--1e30 -9223372036854775808
-1e30 9223372036854775807
-Warnings:
-Warning 1916 Got overflow when converting '-1e30' to INT. Value truncated
-Warning 1916 Got overflow when converting '1e30' to INT. Value truncated
-DROP TABLE t1;
-select isnull(date(NULL)), isnull(cast(NULL as DATE));
-isnull(date(NULL)) isnull(cast(NULL as DATE))
-1 1
-SELECT CAST(cast('01-01-01' as date) AS UNSIGNED);
-CAST(cast('01-01-01' as date) AS UNSIGNED)
-20010101
-SELECT CAST(cast('01-01-01' as date) AS SIGNED);
-CAST(cast('01-01-01' as date) AS SIGNED)
-20010101
-End of 4.1 tests
-select cast('1.2' as decimal(3,2));
-cast('1.2' as decimal(3,2))
-1.20
-select 1e18 * cast('1.2' as decimal(3,2));
-1e18 * cast('1.2' as decimal(3,2))
-1.2e18
-select cast(cast('1.2' as decimal(3,2)) as signed);
-cast(cast('1.2' as decimal(3,2)) as signed)
-1
-set @v1=1e18;
-select cast(@v1 as decimal(22, 2));
-cast(@v1 as decimal(22, 2))
-1000000000000000000.00
-select cast(-1e18 as decimal(22,2));
-cast(-1e18 as decimal(22,2))
--1000000000000000000.00
-create table t1(s1 time);
-insert into t1 values ('11:11:11');
-select cast(s1 as decimal(7,2)) from t1;
-cast(s1 as decimal(7,2))
-99999.99
-Warnings:
-Warning 1264 Out of range value for column 'cast(s1 as decimal(7,2))' at row 1
-drop table t1;
-CREATE TABLE t1 (v varchar(10), tt tinytext, t text,
-mt mediumtext, lt longtext);
-INSERT INTO t1 VALUES ('1.01', '2.02', '3.03', '4.04', '5.05');
-SELECT CAST(v AS DECIMAL), CAST(tt AS DECIMAL), CAST(t AS DECIMAL),
-CAST(mt AS DECIMAL), CAST(lt AS DECIMAL) from t1;
-CAST(v AS DECIMAL) CAST(tt AS DECIMAL) CAST(t AS DECIMAL) CAST(mt AS DECIMAL) CAST(lt AS DECIMAL)
-1 2 3 4 5
-DROP TABLE t1;
-select cast(NULL as decimal(6)) as t1;
-t1
-NULL
-set names latin1;
-select hex(cast('a' as char(2) binary));
-hex(cast('a' as char(2) binary))
-61
-select hex(cast('a' as binary(2)));
-hex(cast('a' as binary(2)))
-6100
-select hex(cast('a' as char(2) binary));
-hex(cast('a' as char(2) binary))
-61
-CREATE TABLE t1 (d1 datetime);
-INSERT INTO t1(d1) VALUES ('2007-07-19 08:30:00'), (NULL),
-('2007-07-19 08:34:00'), (NULL), ('2007-07-19 08:36:00');
-SELECT cast(date(d1) as signed) FROM t1;
-cast(date(d1) as signed)
-20070719
-NULL
-20070719
-NULL
-20070719
-drop table t1;
-CREATE TABLE t1 (f1 DATE);
-INSERT INTO t1 VALUES ('2007-07-19'), (NULL);
-SELECT HOUR(f1),
-MINUTE(f1),
-SECOND(f1) FROM t1;
-HOUR(f1) MINUTE(f1) SECOND(f1)
-0 0 0
-NULL NULL NULL
-SELECT HOUR(CAST('2007-07-19' AS DATE)),
-MINUTE(CAST('2007-07-19' AS DATE)),
-SECOND(CAST('2007-07-19' AS DATE));
-HOUR(CAST('2007-07-19' AS DATE)) MINUTE(CAST('2007-07-19' AS DATE)) SECOND(CAST('2007-07-19' AS DATE))
-0 0 0
-SELECT HOUR(CAST(NULL AS DATE)),
-MINUTE(CAST(NULL AS DATE)),
-SECOND(CAST(NULL AS DATE));
-HOUR(CAST(NULL AS DATE)) MINUTE(CAST(NULL AS DATE)) SECOND(CAST(NULL AS DATE))
-NULL NULL NULL
-SELECT HOUR(NULL),
-MINUTE(NULL),
-SECOND(NULL);
-HOUR(NULL) MINUTE(NULL) SECOND(NULL)
-NULL NULL NULL
-DROP TABLE t1;
-End of 5.0 tests
-#
-# Bug #44766: valgrind error when using convert() in a subquery
-#
-CREATE TABLE t1(a tinyint);
-INSERT INTO t1 VALUES (127);
-SELECT 1 FROM
-(
-SELECT CONVERT(t2.a USING UTF8) FROM t1, t1 t2 LIMIT 1
-) AS s LIMIT 1;
-1
-1
-DROP TABLE t1;
-#
-# Bug #11765023: 57934: DOS POSSIBLE SINCE BINARY CASTING
-# DOESN'T ADHERE TO MAX_ALLOWED_PACKET
-SET @@GLOBAL.max_allowed_packet=2048;
-Warnings:
-Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
-connect newconn, localhost, root,,;
-SELECT CONVERT('a', BINARY(2049));
-CONVERT('a', BINARY(2049))
-a
-Warnings:
-Warning 1301 Result of cast_as_binary() was larger than max_allowed_packet (2048) - truncated
-SELECT CONVERT('a', CHAR(2049));
-CONVERT('a', CHAR(2049))
-a
-Warnings:
-Warning 1301 Result of cast_as_char() was larger than max_allowed_packet (2048) - truncated
-SELECT length(CONVERT(repeat('a',2048), CHAR(2049)));
-length(CONVERT(repeat('a',2048), CHAR(2049)))
-2048
-Warnings:
-Warning 1301 Result of cast_as_char() was larger than max_allowed_packet (2048) - truncated
-connection default;
-disconnect newconn;
-SET @@GLOBAL.max_allowed_packet=default;
-#
-# Bug#13519724 63793: CRASH IN DTCOLLATION::SET(DTCOLLATION &SET)
-#
-CREATE TABLE t1 (a VARCHAR(50));
-SELECT a FROM t1
-WHERE CAST(a as BINARY)=x'62736D697468'
-AND CAST(a AS BINARY)=x'65736D697468';
-a
-DROP TABLE t1;
-#
-# Bug#13581962 HIGH MEMORY USAGE ATTEMPT, THEN CRASH WITH
-# LONGTEXT, UNION, USER VARIABLE
-# Bug#14096619 UNABLE TO RESTORE DATABASE DUMP
-#
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t1 AS SELECT CONCAT(CAST(REPEAT('9', 1000) AS SIGNED)),
-CONCAT(CAST(REPEAT('9', 1000) AS UNSIGNED));
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
-Warning 1292 Truncated incorrect INTEGER value: '99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `CONCAT(CAST(REPEAT('9', 1000) AS SIGNED))` varchar(21) NOT NULL,
- `CONCAT(CAST(REPEAT('9', 1000) AS UNSIGNED))` varchar(20) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-# End of test for Bug#13581962, Bug#14096619
-End of 5.1 tests
-select cast("2101-00-01 02:03:04" as datetime);
-cast("2101-00-01 02:03:04" as datetime)
-2101-00-01 02:03:04
-select cast(cast("2101-00-01 02:03:04" as datetime) as time);
-cast(cast("2101-00-01 02:03:04" as datetime) as time)
-02:03:04
-SELECT CAST(CAST('20:05:05' AS TIME) as date);
-CAST(CAST('20:05:05' AS TIME) as date)
-2001-02-03
-set sql_mode= TRADITIONAL;
-select cast("2101-00-01 02:03:04" as datetime);
-cast("2101-00-01 02:03:04" as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2101-00-01 02:03:04'
-select cast(cast("2101-00-01 02:03:04" as datetime) as time);
-cast(cast("2101-00-01 02:03:04" as datetime) as time)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2101-00-01 02:03:04'
-SELECT CAST(CAST('20:05:05' AS TIME) as date);
-CAST(CAST('20:05:05' AS TIME) as date)
-2001-02-03
-set sql_mode=DEFAULT;
-create table t1 (f1 time, f2 date, f3 datetime);
-insert into t1 values ('11:22:33','2011-12-13','2011-12-13 11:22:33');
-select cast(f1 as unsigned), cast(f2 as unsigned), cast(f3 as unsigned) from t1;
-cast(f1 as unsigned) cast(f2 as unsigned) cast(f3 as unsigned)
-112233 20111213 20111213112233
-drop table t1;
-SELECT CAST(TIME('10:20:30') AS DATE) + INTERVAL 1 DAY;
-CAST(TIME('10:20:30') AS DATE) + INTERVAL 1 DAY
-2001-02-04
-SET SQL_MODE=ALLOW_INVALID_DATES;
-SELECT DATE("foo");
-DATE("foo")
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: 'foo'
-create table t1 (a int, b char(5) as (cast("a" as char(10) binary) + a) );
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` char(5) GENERATED ALWAYS AS (cast('a' as char(10) charset latin1) + `a`) VIRTUAL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select collation(cast("a" as char(10) binary));
-collation(cast("a" as char(10) binary))
-latin1_bin
-select collation(cast("a" as char(10) charset utf8 binary));
-collation(cast("a" as char(10) charset utf8 binary))
-utf8_bin
-select collation(cast("a" as char(10) ascii binary));
-collation(cast("a" as char(10) ascii binary))
-latin1_bin
-select collation(cast("a" as char(10) binary charset utf8));
-collation(cast("a" as char(10) binary charset utf8))
-utf8_bin
-select collation(cast("a" as char(10) binary ascii));
-collation(cast("a" as char(10) binary ascii))
-latin1_bin
-#
-# MDEV-11030 Assertion `precision > 0' failed in decimal_bin_size
-#
-SELECT * FROM (SELECT IFNULL(CONVERT(NULL, UNSIGNED), NULL)) sq;
-IFNULL(CONVERT(NULL, UNSIGNED), NULL)
-NULL
-CREATE TABLE t1 AS SELECT IFNULL(CONVERT(NULL, UNSIGNED), NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `IFNULL(CONVERT(NULL, UNSIGNED), NULL)` decimal(1,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT COALESCE(CONVERT(NULL, UNSIGNED), NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `COALESCE(CONVERT(NULL, UNSIGNED), NULL)` decimal(1,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT CASE WHEN TRUE THEN CONVERT(NULL, UNSIGNED) ELSE NULL END;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `CASE WHEN TRUE THEN CONVERT(NULL, UNSIGNED) ELSE NULL END` decimal(1,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT IFNULL(CONVERT(NULL,SIGNED),CONVERT(NULL,UNSIGNED)) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(1,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
--1,
-CONVERT(NULL,SIGNED),
-CONCAT(CONVERT(NULL,SIGNED)),
-1,
-CONVERT(NULL,UNSIGNED),
-CONCAT(CONVERT(NULL,UNSIGNED));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `-1` int(2) NOT NULL,
- `CONVERT(NULL,SIGNED)` int(2) DEFAULT NULL,
- `CONCAT(CONVERT(NULL,SIGNED))` varchar(2) DEFAULT NULL,
- `1` int(1) NOT NULL,
- `CONVERT(NULL,UNSIGNED)` int(1) unsigned DEFAULT NULL,
- `CONCAT(CONVERT(NULL,UNSIGNED))` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
-CONVERT('',SIGNED),
-CONCAT(CONVERT('',SIGNED)),
-CONVERT('',UNSIGNED),
-CONCAT(CONVERT('',UNSIGNED));
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: ''
-Warning 1292 Truncated incorrect INTEGER value: ''
-Warning 1292 Truncated incorrect INTEGER value: ''
-Warning 1292 Truncated incorrect INTEGER value: ''
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `CONVERT('',SIGNED)` int(2) NOT NULL,
- `CONCAT(CONVERT('',SIGNED))` varchar(2) NOT NULL,
- `CONVERT('',UNSIGNED)` int(1) unsigned NOT NULL,
- `CONCAT(CONVERT('',UNSIGNED))` varchar(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# MDEV-12849 Out-of-range errors when casting hex-hybrid to SIGNED and UNSIGNED
-#
-SET sql_mode=STRICT_ALL_TABLES;
-CREATE PROCEDURE p1(hh TEXT)
-BEGIN
-EXECUTE IMMEDIATE
-CONCAT('CREATE OR REPLACE TABLE t1 AS SELECT CAST(0x', hh, ' AS UNSIGNED) AS c');
-DESCRIBE t1;
-SELECT c, LENGTH(c) FROM t1;
-DROP TABLE t1;
-EXECUTE IMMEDIATE
-CONCAT('CREATE OR REPLACE TABLE t1 AS SELECT CAST(0x', hh, ' AS SIGNED) AS c');
-DESCRIBE t1;
-SELECT c, LENGTH(c) FROM t1;
-DROP TABLE t1;
-SELECT '' AS `------`;
-END
-$$
-CALL p1('FF');
-Field Type Null Key Default Extra
-c int(3) unsigned NO NULL
-c LENGTH(c)
-255 3
-Field Type Null Key Default Extra
-c int(3) NO NULL
-c LENGTH(c)
-255 3
-------
-
-CALL p1('FFFF');
-Field Type Null Key Default Extra
-c int(5) unsigned NO NULL
-c LENGTH(c)
-65535 5
-Field Type Null Key Default Extra
-c int(5) NO NULL
-c LENGTH(c)
-65535 5
-------
-
-CALL p1('FFFFFF');
-Field Type Null Key Default Extra
-c int(8) unsigned NO NULL
-c LENGTH(c)
-16777215 8
-Field Type Null Key Default Extra
-c int(8) NO NULL
-c LENGTH(c)
-16777215 8
-------
-
-CALL p1('FFFFFFFF');
-Field Type Null Key Default Extra
-c int(10) unsigned NO NULL
-c LENGTH(c)
-4294967295 10
-Field Type Null Key Default Extra
-c bigint(10) NO NULL
-c LENGTH(c)
-4294967295 10
-------
-
-CALL p1('FFFFFFFFFF');
-Field Type Null Key Default Extra
-c bigint(13) unsigned NO NULL
-c LENGTH(c)
-1099511627775 13
-Field Type Null Key Default Extra
-c bigint(13) NO NULL
-c LENGTH(c)
-1099511627775 13
-------
-
-CALL p1('FFFFFFFFFFFF');
-Field Type Null Key Default Extra
-c bigint(15) unsigned NO NULL
-c LENGTH(c)
-281474976710655 15
-Field Type Null Key Default Extra
-c bigint(15) NO NULL
-c LENGTH(c)
-281474976710655 15
-------
-
-CALL p1('FFFFFFFFFFFFFF');
-Field Type Null Key Default Extra
-c bigint(17) unsigned NO NULL
-c LENGTH(c)
-72057594037927935 17
-Field Type Null Key Default Extra
-c bigint(17) NO NULL
-c LENGTH(c)
-72057594037927935 17
-------
-
-CALL p1('FFFFFFFFFFFFFFFF');
-Field Type Null Key Default Extra
-c bigint(20) unsigned NO NULL
-c LENGTH(c)
-18446744073709551615 20
-Field Type Null Key Default Extra
-c bigint(20) NO NULL
-c LENGTH(c)
--1 2
-------
-
-CALL p1('FFFFFFFFFFFFFFFFFF');
-Field Type Null Key Default Extra
-c bigint(20) unsigned NO NULL
-c LENGTH(c)
-18446744073709551615 20
-Field Type Null Key Default Extra
-c bigint(20) NO NULL
-c LENGTH(c)
--1 2
-------
-
-CALL p1('FFFFFFFFFFFFFFFFFFFF');
-Field Type Null Key Default Extra
-c bigint(20) unsigned NO NULL
-c LENGTH(c)
-18446744073709551615 20
-Field Type Null Key Default Extra
-c bigint(20) NO NULL
-c LENGTH(c)
--1 2
-------
-
-CALL p1('8000000000000000');
-Field Type Null Key Default Extra
-c bigint(20) unsigned NO NULL
-c LENGTH(c)
-9223372036854775808 19
-Field Type Null Key Default Extra
-c bigint(20) NO NULL
-c LENGTH(c)
--9223372036854775808 20
-------
-
-CALL p1('80000000000000FF');
-Field Type Null Key Default Extra
-c bigint(20) unsigned NO NULL
-c LENGTH(c)
-9223372036854776063 19
-Field Type Null Key Default Extra
-c bigint(20) NO NULL
-c LENGTH(c)
--9223372036854775553 20
-------
-
-CALL p1('800000000000FFFF');
-Field Type Null Key Default Extra
-c bigint(20) unsigned NO NULL
-c LENGTH(c)
-9223372036854841343 19
-Field Type Null Key Default Extra
-c bigint(20) NO NULL
-c LENGTH(c)
--9223372036854710273 20
-------
-
-CALL p1('8000000000FFFFFF');
-Field Type Null Key Default Extra
-c bigint(20) unsigned NO NULL
-c LENGTH(c)
-9223372036871553023 19
-Field Type Null Key Default Extra
-c bigint(20) NO NULL
-c LENGTH(c)
--9223372036837998593 20
-------
-
-CALL p1('80000000FFFFFFFF');
-Field Type Null Key Default Extra
-c bigint(20) unsigned NO NULL
-c LENGTH(c)
-9223372041149743103 19
-Field Type Null Key Default Extra
-c bigint(20) NO NULL
-c LENGTH(c)
--9223372032559808513 20
-------
-
-CALL p1('800000FFFFFFFFFF');
-Field Type Null Key Default Extra
-c bigint(20) unsigned NO NULL
-c LENGTH(c)
-9223373136366403583 19
-Field Type Null Key Default Extra
-c bigint(20) NO NULL
-c LENGTH(c)
--9223370937343148033 20
-------
-
-CALL p1('8000FFFFFFFFFFFF');
-Field Type Null Key Default Extra
-c bigint(20) unsigned NO NULL
-c LENGTH(c)
-9223653511831486463 19
-Field Type Null Key Default Extra
-c bigint(20) NO NULL
-c LENGTH(c)
--9223090561878065153 20
-------
-
-CALL p1('80FFFFFFFFFFFFFF');
-Field Type Null Key Default Extra
-c bigint(20) unsigned NO NULL
-c LENGTH(c)
-9295429630892703743 19
-Field Type Null Key Default Extra
-c bigint(20) NO NULL
-c LENGTH(c)
--9151314442816847873 20
-------
-
-CALL p1('8FFFFFFFFFFFFFFF');
-Field Type Null Key Default Extra
-c bigint(20) unsigned NO NULL
-c LENGTH(c)
-10376293541461622783 20
-Field Type Null Key Default Extra
-c bigint(20) NO NULL
-c LENGTH(c)
--8070450532247928833 20
-------
-
-DROP PROCEDURE p1;
-SET sql_mode=DEFAULT;
-#
-# MDEV-12852 Out-of-range errors when CAST(1-2 AS UNSIGNED
-#
-SET sql_mode=STRICT_ALL_TABLES;
-CREATE TABLE t1 AS SELECT
-CAST(-1 AS UNSIGNED),
-CAST(1-2 AS UNSIGNED);
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `CAST(-1 AS UNSIGNED)` bigint(20) unsigned NOT NULL,
- `CAST(1-2 AS UNSIGNED)` bigint(20) unsigned NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-CAST(-1 AS UNSIGNED) CAST(1-2 AS UNSIGNED)
-18446744073709551615 18446744073709551615
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-#
-# MDEV-12853 Out-of-range errors when CAST('-1' AS UNSIGNED
-#
-SET sql_mode=STRICT_ALL_TABLES;
-CREATE TABLE t1 AS SELECT CAST('-1' AS UNSIGNED);
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `CAST('-1' AS UNSIGNED)` bigint(20) unsigned NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-CAST('-1' AS UNSIGNED)
-18446744073709551615
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-#
-# MDEV-14376 Explicit CAST(CHAR(N)) erroneously escalates warnings to errors in STRICT_ALL_TABLES
-#
-SET sql_mode=STRICT_ALL_TABLES;
-SELECT CAST('xxx' AS CHAR(1));
-CAST('xxx' AS CHAR(1))
-x
-Warnings:
-Warning 1292 Truncated incorrect CHAR(1) value: 'xxx'
-CREATE OR REPLACE TABLE t1 (a VARCHAR(1));
-INSERT INTO t1 VALUES (CAST('xxx' AS CHAR(1)));
-Warnings:
-Warning 1292 Truncated incorrect CHAR(1) value: 'xxx'
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 (a VARCHAR(3));
-INSERT INTO t1 VALUES ('xxx');
-UPDATE t1 SET a=CAST(a AS CHAR(1));
-Warnings:
-Warning 1292 Truncated incorrect CHAR(1) value: 'xxx'
-DROP TABLE t1;
-BEGIN NOT ATOMIC
-DECLARE a VARCHAR(30) CHARACTER SET latin1;
-SET a=CAST('xxx' AS CHAR(1));
-END;
-$$
-Warnings:
-Warning 1292 Truncated incorrect CHAR(1) value: 'xxx'
-BEGIN NOT ATOMIC
-DECLARE a VARCHAR(30) CHARACTER SET latin1;
-SET a=CAST(_latin1'xxx' AS CHAR(1) CHARACTER SET latin1);
-END;
-$$
-Warnings:
-Warning 1292 Truncated incorrect CHAR(1) value: 'xxx'
-BEGIN NOT ATOMIC
-DECLARE a VARCHAR(30) CHARACTER SET latin1;
-SET a=CAST(_latin1'xxx' AS CHAR(1) CHARACTER SET utf8);
-END;
-$$
-Warnings:
-Warning 1292 Truncated incorrect CHAR(1) value: 'xxx'
-BEGIN NOT ATOMIC
-DECLARE a VARCHAR(30) CHARACTER SET utf8;
-SET a=CAST('xxx' AS CHAR(1));
-END;
-$$
-Warnings:
-Warning 1292 Truncated incorrect CHAR(1) value: 'xxx'
-BEGIN NOT ATOMIC
-DECLARE a VARCHAR(30) CHARACTER SET utf8;
-SET a=CAST(_latin1'xxx' AS CHAR(1) CHARACTER SET latin1);
-END;
-$$
-Warnings:
-Warning 1292 Truncated incorrect CHAR(1) value: 'xxx'
-BEGIN NOT ATOMIC
-DECLARE a VARCHAR(30) CHARACTER SET utf8;
-SET a=CAST(_latin1'xxx' AS CHAR(1) CHARACTER SET utf8);
-END;
-$$
-Warnings:
-Warning 1292 Truncated incorrect CHAR(1) value: 'xxx'
-# Conversion problems still escalate warnings to errors (without right truncation)
-BEGIN NOT ATOMIC
-DECLARE a VARCHAR(30) CHARACTER SET utf8;
-SET a=CAST(_utf8 0xD18F AS CHAR(1) CHARACTER SET latin1);
-END;
-$$
-ERROR HY000: Cannot convert 'utf8' character 0xD18F to 'latin1'
-# Conversion problems still escalate warnings to errors (with right truncation)
-BEGIN NOT ATOMIC
-DECLARE a VARCHAR(30) CHARACTER SET utf8;
-SET a=CAST(_utf8 0xD18FD18F AS CHAR(1) CHARACTER SET latin1);
-END;
-$$
-ERROR HY000: Cannot convert 'utf8' character 0xD18F to 'latin1'
-# CAST(number AS CHAR) escalates warnings to errors on truncation
-CREATE OR REPLACE TABLE t1 (a VARCHAR(10));
-INSERT INTO t1 VALUES (CAST(123 AS CHAR(1)));
-ERROR 22007: Truncated incorrect CHAR(1) value: '123'
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 (a VARCHAR(10));
-INSERT INTO t1 VALUES ('1');
-UPDATE t1 SET a=CAST(123 AS CHAR(1));
-ERROR 22007: Truncated incorrect CHAR(1) value: '123'
-DROP TABLE t1;
-BEGIN NOT ATOMIC
-DECLARE a VARCHAR(10);
-SET a=CAST(123 AS CHAR(1));
-END;
-$$
-ERROR 22007: Truncated incorrect CHAR(1) value: '123'
-# CAST(temporal AS CHAR) escalates warnings to errors on truncation
-CREATE OR REPLACE TABLE t1 (a VARCHAR(10));
-INSERT INTO t1 VALUES (CAST(TIME'10:20:30' AS CHAR(1)));
-ERROR 22007: Truncated incorrect CHAR(1) value: '10:20:30'
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 (a VARCHAR(10));
-INSERT INTO t1 VALUES ('1');
-UPDATE t1 SET a=CAST(TIME'10:20:30' AS CHAR(1));
-ERROR 22007: Truncated incorrect CHAR(1) value: '10:20:30'
-DROP TABLE t1;
-BEGIN NOT ATOMIC
-DECLARE a VARCHAR(10);
-SET a=CAST(TIME'10:20:30' AS CHAR(1));
-END;
-$$
-ERROR 22007: Truncated incorrect CHAR(1) value: '10:20:30'
-SET sql_mode=DEFAULT;
diff --git a/mysql-test/r/change_user.result b/mysql-test/r/change_user.result
deleted file mode 100644
index fa934fbf09a..00000000000
--- a/mysql-test/r/change_user.result
+++ /dev/null
@@ -1,103 +0,0 @@
-set global secure_auth=0;
-create user test_nopw;
-grant select on test.* to test_nopw;
-create user test_oldpw identified by password "09301740536db389";
-grant select on test.* to test_oldpw;
-create user test_newpw identified by "newpw";
-grant select on test.* to test_newpw;
-select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
-concat('<', user(), '>') concat('<', current_user(), '>') database()
-<root@localhost> <root@localhost> test
-select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
-concat('<', user(), '>') concat('<', current_user(), '>') database()
-<test_nopw@localhost> <test_nopw@%> NULL
-select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
-concat('<', user(), '>') concat('<', current_user(), '>') database()
-<test_oldpw@localhost> <test_oldpw@%> NULL
-select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
-concat('<', user(), '>') concat('<', current_user(), '>') database()
-<test_newpw@localhost> <test_newpw@%> NULL
-select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
-concat('<', user(), '>') concat('<', current_user(), '>') database()
-<root@localhost> <root@localhost> NULL
-select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
-concat('<', user(), '>') concat('<', current_user(), '>') database()
-<test_nopw@localhost> <test_nopw@%> test
-select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
-concat('<', user(), '>') concat('<', current_user(), '>') database()
-<test_oldpw@localhost> <test_oldpw@%> test
-select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
-concat('<', user(), '>') concat('<', current_user(), '>') database()
-<test_newpw@localhost> <test_newpw@%> test
-select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
-concat('<', user(), '>') concat('<', current_user(), '>') database()
-<root@localhost> <root@localhost> test
-drop user test_nopw;
-drop user test_oldpw;
-drop user test_newpw;
-Bug#20023
-SELECT @@session.sql_big_selects;
-@@session.sql_big_selects
-1
-SELECT @@global.max_join_size;
-@@global.max_join_size
-HA_POS_ERROR
-change_user
-SELECT @@session.sql_big_selects;
-@@session.sql_big_selects
-1
-SELECT @@global.max_join_size;
-@@global.max_join_size
-HA_POS_ERROR
-SET @@global.max_join_size = 10000;
-SET @@session.max_join_size = default;
-change_user
-SELECT @@session.sql_big_selects;
-@@session.sql_big_selects
-0
-SET @@global.max_join_size = 18446744073709551615;
-SET @@session.max_join_size = default;
-change_user
-SELECT @@session.sql_big_selects;
-@@session.sql_big_selects
-1
-SELECT @@global.max_join_size;
-@@global.max_join_size
-18446744073709551615
-SELECT @@session.max_join_size;
-@@session.max_join_size
-18446744073709551615
-Bug#31418
-SELECT IS_FREE_LOCK('bug31418');
-IS_FREE_LOCK('bug31418')
-1
-SELECT IS_USED_LOCK('bug31418');
-IS_USED_LOCK('bug31418')
-NULL
-SELECT GET_LOCK('bug31418', 1);
-GET_LOCK('bug31418', 1)
-1
-SELECT IS_USED_LOCK('bug31418') = CONNECTION_ID();
-IS_USED_LOCK('bug31418') = CONNECTION_ID()
-1
-change_user
-SELECT IS_FREE_LOCK('bug31418');
-IS_FREE_LOCK('bug31418')
-1
-SELECT IS_USED_LOCK('bug31418');
-IS_USED_LOCK('bug31418')
-NULL
-FLUSH STATUS;
-Value of com_select did not change
-set global secure_auth=default;
-set timestamp=unix_timestamp('2010-10-10 10:10:10');
-select now();
-now()
-2010-10-10 10:10:10
-select year(now()) > 2011;
-year(now()) > 2011
-0
-change_user
-select year(now()) > 2011;
-year(now()) > 2011
-1
diff --git a/mysql-test/r/change_user_notembedded.result b/mysql-test/r/change_user_notembedded.result
deleted file mode 100644
index 41a154f8d3d..00000000000
--- a/mysql-test/r/change_user_notembedded.result
+++ /dev/null
@@ -1,10 +0,0 @@
-connect test,localhost,root,,;
-connection test;
-ERROR 28000: Access denied for user 'foo'@'localhost' (using password: YES)
-ERROR 28000: Access denied for user 'foo'@'localhost' (using password: NO)
-ERROR 28000: Access denied for user 'foo'@'localhost' (using password: YES)
-ERROR 08S01: Unknown command
-ERROR 08S01: Unknown command
-disconnect test;
-connection default;
-that's all
diff --git a/mysql-test/r/check.result b/mysql-test/r/check.result
deleted file mode 100644
index 341c4411298..00000000000
--- a/mysql-test/r/check.result
+++ /dev/null
@@ -1,54 +0,0 @@
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection con1;
-drop table if exists t1,t2;
-drop view if exists v1;
-create table t1(n int not null, key(n), key(n), key(n), key(n));
-Warnings:
-Note 1831 Duplicate index `n_2`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `n_3`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `n_4`. This is deprecated and will be disallowed in a future release
-check table t1 extended;
-connection con2;
-insert into t1 values (200000);
-connection con1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-connection default;
-disconnect con1;
-disconnect con2;
-drop table t1;
-Create table t1(f1 int);
-Create table t2(f1 int);
-Create view v1 as Select * from t1;
-Check Table v1,t2;
-Table Op Msg_type Msg_text
-test.v1 check status OK
-test.t2 check status OK
-drop view v1;
-drop table t1, t2;
-CREATE TEMPORARY TABLE t1(a INT);
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-DROP TABLE t1;
-#
-# Bug#56422 CHECK TABLE run when the table is locked reports corruption
-# along with timeout
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT);
-LOCK TABLE t1 WRITE;
-connect con1, localhost, root;
-SET lock_wait_timeout= 1;
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check Error Lock wait timeout exceeded; try restarting transaction
-test.t1 check status Operation failed
-connection default;
-UNLOCK TABLES;
-DROP TABLE t1;
-disconnect con1;
diff --git a/mysql-test/r/check_constraint.result b/mysql-test/r/check_constraint.result
deleted file mode 100644
index 70d64cd6ff7..00000000000
--- a/mysql-test/r/check_constraint.result
+++ /dev/null
@@ -1,158 +0,0 @@
-set @save_check_constraint=@@check_constraint_checks;
-create table t1 (a int check(a>10), b int check (b > 20), constraint `min` check (a+b > 100), constraint `max` check (a+b <500)) engine=myisam;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL CHECK (`a` > 10),
- `b` int(11) DEFAULT NULL CHECK (`b` > 20),
- CONSTRAINT `min` CHECK (`a` + `b` > 100),
- CONSTRAINT `max` CHECK (`a` + `b` < 500)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values (100,100);
-insert into t1 values (1,1);
-ERROR 23000: CONSTRAINT `a` failed for `test`.`t1`
-insert into t1 values (20,1);
-ERROR 23000: CONSTRAINT `b` failed for `test`.`t1`
-insert into t1 values (20,30);
-ERROR 23000: CONSTRAINT `min` failed for `test`.`t1`
-insert into t1 values (500,500);
-ERROR 23000: CONSTRAINT `max` failed for `test`.`t1`
-insert into t1 values (101,101),(102,102),(600,600),(103,103);
-ERROR 23000: CONSTRAINT `max` failed for `test`.`t1`
-select * from t1;
-a b
-100 100
-101 101
-102 102
-truncate table t1;
-insert ignore into t1 values (101,101),(102,102),(600,600),(103,103);
-Warnings:
-Warning 4025 CONSTRAINT `max` failed for `test`.`t1`
-select * from t1;
-a b
-101 101
-102 102
-103 103
-set check_constraint_checks=0;
-truncate table t1;
-insert into t1 values (101,101),(102,102),(600,600),(103,103);
-select * from t1;
-a b
-101 101
-102 102
-600 600
-103 103
-set check_constraint_checks=@save_check_constraint;
-alter table t1 add c int default 0 check (c < 10);
-ERROR 23000: CONSTRAINT `max` failed for table
-set check_constraint_checks=0;
-alter table t1 add c int default 0 check (c < 10);
-alter table t1 add check (a+b+c < 500);
-set check_constraint_checks=@save_check_constraint;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL CHECK (`a` > 10),
- `b` int(11) DEFAULT NULL CHECK (`b` > 20),
- `c` int(11) DEFAULT 0 CHECK (`c` < 10),
- CONSTRAINT `min` CHECK (`a` + `b` > 100),
- CONSTRAINT `max` CHECK (`a` + `b` < 500),
- CONSTRAINT `CONSTRAINT_1` CHECK (`a` + `b` + `c` < 500)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values(105,105,105);
-ERROR 23000: CONSTRAINT `c` failed for `test`.`t1`
-insert into t1 values(249,249,9);
-ERROR 23000: CONSTRAINT `CONSTRAINT_1` failed for `test`.`t1`
-insert into t1 values(105,105,9);
-select * from t1;
-a b c
-101 101 0
-102 102 0
-600 600 0
-103 103 0
-105 105 9
-create table t2 like t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL CHECK (`a` > 10),
- `b` int(11) DEFAULT NULL CHECK (`b` > 20),
- `c` int(11) DEFAULT 0 CHECK (`c` < 10),
- CONSTRAINT `min` CHECK (`a` + `b` > 100),
- CONSTRAINT `max` CHECK (`a` + `b` < 500),
- CONSTRAINT `CONSTRAINT_1` CHECK (`a` + `b` + `c` < 500)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t2 drop constraint c;
-ERROR 42000: Can't DROP CONSTRAINT `c`; check that it exists
-alter table t2 drop constraint if exists c;
-Warnings:
-Note 1091 Can't DROP CONSTRAINT `c`; check that it exists
-alter table t2 drop constraint min;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL CHECK (`a` > 10),
- `b` int(11) DEFAULT NULL CHECK (`b` > 20),
- `c` int(11) DEFAULT 0 CHECK (`c` < 10),
- CONSTRAINT `max` CHECK (`a` + `b` < 500),
- CONSTRAINT `CONSTRAINT_1` CHECK (`a` + `b` + `c` < 500)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1,t2;
-create or replace table t1 (a int, b int, constraint check (a>b));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- CONSTRAINT `CONSTRAINT_1` CHECK (`a` > `b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 (a int, b int,
-constraint CONSTRAINT_1 check (a>1),
-constraint check (b>1));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- CONSTRAINT `CONSTRAINT_1` CHECK (`a` > 1),
- CONSTRAINT `CONSTRAINT_2` CHECK (`b` > 1)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 (a int, b int,
-constraint CONSTRAINT_1 check (a>1),
-constraint check (b>1),
-constraint CONSTRAINT_2 check (a>b));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- CONSTRAINT `CONSTRAINT_1` CHECK (`a` > 1),
- CONSTRAINT `CONSTRAINT_3` CHECK (`b` > 1),
- CONSTRAINT `CONSTRAINT_2` CHECK (`a` > `b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1(c1 int, c2 int as (c1 + 1), check (c2 > 2));
-insert into t1(c1) values(1);
-ERROR 23000: CONSTRAINT `CONSTRAINT_1` failed for `test`.`t1`
-insert into t1(c1) values(2);
-drop table t1;
-create or replace table t1( c1 int auto_increment primary key, check( c1 > 0 or c1 is null ) );
-ERROR HY000: Function or expression 'AUTO_INCREMENT' cannot be used in the CHECK clause of `c1`
-create table t1 (a int check (@b in (select user from mysql.user)));
-ERROR HY000: Function or expression 'select ...' cannot be used in the CHECK clause of `a`
-create table t1 (a int check (a > @b));
-ERROR HY000: Function or expression '@b' cannot be used in the CHECK clause of `a`
-create table t1 (a int check (a = 1));
-insert t1 values (1);
-insert t1 values (2);
-ERROR 23000: CONSTRAINT `a` failed for `test`.`t1`
-insert t1 values (NULL);
-select * from t1;
-a
-1
-NULL
-drop table t1;
-create table t1 (id int auto_increment primary key, datecol datetime, check (datecol>'0001-01-01 00:00:00'));
-insert into t1 (datecol) values (now());
-insert into t1 (datecol) values (now());
-drop table t1;
diff --git a/mysql-test/r/check_constraint_show.result b/mysql-test/r/check_constraint_show.result
deleted file mode 100644
index def1c488758..00000000000
--- a/mysql-test/r/check_constraint_show.result
+++ /dev/null
@@ -1,17 +0,0 @@
-create or replace table t1( c1 int check( c1 > 0 ), c2 int check( c2 > 0 ), c3 int, constraint `range` check( ( c3 >= c1 ) and ( c3 <= c2 ) ), primary key( c1 ) );
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) NOT NULL CHECK (`c1` > 0),
- `c2` int(11) DEFAULT NULL CHECK (`c2` > 0),
- `c3` int(11) DEFAULT NULL,
- PRIMARY KEY (`c1`),
- CONSTRAINT `range` CHECK (`c3` >= `c1` and `c3` <= `c2`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from information_schema.table_constraints where table_name = 't1';
-CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_SCHEMA TABLE_NAME CONSTRAINT_TYPE
-def test PRIMARY test t1 PRIMARY KEY
-def test c1 test t1 CHECK
-def test c2 test t1 CHECK
-def test range test t1 CHECK
-drop table t1;
diff --git a/mysql-test/r/check_var_limit.require b/mysql-test/r/check_var_limit.require
deleted file mode 100644
index 01a59782180..00000000000
--- a/mysql-test/r/check_var_limit.require
+++ /dev/null
@@ -1,2 +0,0 @@
-limit
-1
diff --git a/mysql-test/r/client_xml.result b/mysql-test/r/client_xml.result
deleted file mode 100644
index 6f91c18318c..00000000000
--- a/mysql-test/r/client_xml.result
+++ /dev/null
@@ -1,92 +0,0 @@
-set @old_concurrent_insert= @@global.concurrent_insert;
-set @@global.concurrent_insert= 0;
-drop table if exists t1;
-create table t1 (
-`a&b` int,
-`a<b` int NOT NULL,
-`a>b` text
-);
-insert into t1 values (1, 2, 'a&b a<b a>b');
-<?xml version="1.0"?>
-
-<resultset statement="select * from t1
-" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <row>
- <field name="a&amp;b">1</field>
- <field name="a&lt;b">2</field>
- <field name="a&gt;b">a&amp;b a&lt;b a&gt;b</field>
- </row>
-</resultset>
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="test">
- <table_structure name="t1">
- <field Field="a&amp;b" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <field Field="a&lt;b" Type="int(11)" Null="NO" Key="" Extra="" Comment="" />
- <field Field="a&gt;b" Type="text" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- </table_structure>
- <table_data name="t1">
- <row>
- <field name="a&amp;b">1</field>
- <field name="a&lt;b">2</field>
- <field name="a&gt;b">a&amp;b a&lt;b a&gt;b</field>
- </row>
- </table_data>
-</database>
-</mysqldump>
-<?xml version="1.0"?>
-
-<resultset statement="select count(*) from t1
-" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <row>
- <field name="count(*)">1</field>
- </row>
-</resultset>
-<?xml version="1.0"?>
-
-<resultset statement="select 1 &lt; 2 from dual
-" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <row>
- <field name="1 &lt; 2">1</field>
- </row>
-</resultset>
-<?xml version="1.0"?>
-
-<resultset statement="select 1 &gt; 2 from dual
-" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <row>
- <field name="1 &gt; 2">0</field>
- </row>
-</resultset>
-<?xml version="1.0"?>
-
-<resultset statement="select 1 &amp; 3 from dual
-" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <row>
- <field name="1 &amp; 3">1</field>
- </row>
-</resultset>
-<?xml version="1.0"?>
-
-<resultset statement="select null from dual
-" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <row>
- <field name="NULL" xsi:nil="true" />
- </row>
-</resultset>
-<?xml version="1.0"?>
-
-<resultset statement="select 1 limit 0
-" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></resultset>
---------------
-select 1 limit 0
---------------
-
-<?xml version="1.0"?>
-
-<resultset statement="select 1 limit 0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></resultset>
-Empty set
-
-Bye
-drop table t1;
-set @@global.concurrent_insert= @old_concurrent_insert;
diff --git a/mysql-test/r/column_compression.result b/mysql-test/r/column_compression.result
deleted file mode 100644
index 243a118a706..00000000000
--- a/mysql-test/r/column_compression.result
+++ /dev/null
@@ -1,1362 +0,0 @@
-SET column_compression_zlib_wrap=true;
-FLUSH STATUS;
-CREATE TABLE t1(a BLOB COMPRESSED, KEY(a(10)));
-ERROR HY000: Compressed column 'a' can't be used in key specification
-CREATE TABLE t1(a BLOB COMPRESSED);
-ALTER TABLE t1 ADD KEY(a(10));
-ERROR HY000: Compressed column 'a' can't be used in key specification
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` blob /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-# Make sure column was actually compressed
-INSERT INTO t1 VALUES(REPEAT('a', 1000));
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 1
-COLUMN_DECOMPRESSIONS 2
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-28
-# Make sure ALTER TABLE rebuilds table
-ALTER TABLE t1 MODIFY COLUMN a BLOB;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 1
-COLUMN_DECOMPRESSIONS 3
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-1008
-# Rebuild back
-ALTER TABLE t1 MODIFY COLUMN a BLOB COMPRESSED;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` blob /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 5
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-28
-# Make sure CREATE TABLE ... LIKE inherits compression
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` blob /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-# Make sure implicit CREATE TABLE ... SELECT inherits compression
-CREATE TABLE t2 SELECT * FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` blob /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t2;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 7
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-28
-DROP TABLE t2;
-# Make sure explicit CREATE TABLE ... SELECT doesn't inherit compression
-CREATE TABLE t2(a BLOB) SELECT * FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t2;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 8
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-1008
-DROP TABLE t2;
-# Make sure engine change works
-ALTER TABLE t1 ENGINE=InnoDB;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` blob /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 10
-# Make sure online add column works (requires InnoDB)
-ALTER TABLE t1 ADD COLUMN b BLOB COMPRESSED DEFAULT "must be visible";
-SELECT LEFT(a, 10), LENGTH(a), b FROM t1;
-LEFT(a, 10) LENGTH(a) b
-aaaaaaaaaa 1000 must be visible
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 12
-ALTER TABLE t1 DROP COLUMN b;
-ALTER TABLE t1 ENGINE=MyISAM;
-TRUNCATE TABLE t1;
-# Make sure column_compression_zlib_level works
-SET column_compression_zlib_level= 1;
-INSERT INTO t1 VALUES(REPEAT('ab', 1000));
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 3
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-40
-TRUNCATE TABLE t1;
-SET column_compression_zlib_level= 9;
-INSERT INTO t1 VALUES(REPEAT('ab', 1000));
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-36
-SET column_compression_zlib_level= DEFAULT;
-TRUNCATE TABLE t1;
-# No compression, original data shorter than compressed
-INSERT INTO t1 VALUES('a');
-SELECT a, LENGTH(a) FROM t1;
-a LENGTH(a)
-a 1
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-20
-# Coverage for store(double) and store(longlong)
-INSERT INTO t1 VALUES(3.14),(CAST(9.8 AS DOUBLE)),(1),(''),(NULL);
-# and for sort_string()
-SELECT * FROM t1 ORDER BY a;
-a
-NULL
-
-1
-3.14
-9.8
-a
-# Coverage for val_real() and val_int()
-SELECT a+1 FROM t1 ORDER BY 1;
-a+1
-NULL
-1
-1
-2
-4.140000000000001
-10.8
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-DROP TABLE t1;
-#
-# MDEV-13540 - Server crashes in copy or Assertion `0' failed in virtual
-# Field* Field_varstring_compressed::new_key_field
-#
-CREATE TABLE t1 (c1 BLOB COMPRESSED) ENGINE=MyISAM;
-INSERT IGNORE INTO t1 VALUES ('foo'),('bar');
-CREATE TABLE t2 (c2 BLOB COMPRESSED) ENGINE=MyISAM;
-INSERT IGNORE INTO t2 VALUES ('qux'),('abc');
-SELECT * FROM t1 WHERE c1 NOT IN ( SELECT c2 FROM t2 WHERE c2 = c1 );
-c1
-foo
-bar
-DROP TABLE t1, t2;
-#
-# MDEV-13541 - Server crashes in next_breadth_first_tab or Assertion `0'
-# failed in Field_varstring_compressed::new_key_field
-#
-CREATE TABLE t1 (c BLOB COMPRESSED) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('foo'),('bar');
-SELECT DISTINCT c FROM t1;
-c
-foo
-bar
-DROP TABLE t1;
-FLUSH STATUS;
-CREATE TABLE t1(a TEXT COMPRESSED, KEY(a(10)));
-ERROR HY000: Compressed column 'a' can't be used in key specification
-CREATE TABLE t1(a TEXT COMPRESSED);
-ALTER TABLE t1 ADD KEY(a(10));
-ERROR HY000: Compressed column 'a' can't be used in key specification
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-# Make sure column was actually compressed
-INSERT INTO t1 VALUES(REPEAT('a', 1000));
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 1
-COLUMN_DECOMPRESSIONS 2
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-28
-# Make sure ALTER TABLE rebuilds table
-ALTER TABLE t1 MODIFY COLUMN a TEXT;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 1
-COLUMN_DECOMPRESSIONS 3
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-1008
-# Rebuild back
-ALTER TABLE t1 MODIFY COLUMN a TEXT COMPRESSED;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 5
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-28
-# Make sure CREATE TABLE ... LIKE inherits compression
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` text /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-# Make sure implicit CREATE TABLE ... SELECT inherits compression
-CREATE TABLE t2 SELECT * FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` text /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t2;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 7
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-28
-DROP TABLE t2;
-# Make sure explicit CREATE TABLE ... SELECT doesn't inherit compression
-CREATE TABLE t2(a TEXT) SELECT * FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t2;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 8
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-1008
-DROP TABLE t2;
-# Make sure engine change works
-ALTER TABLE t1 ENGINE=InnoDB;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 10
-# Make sure online add column works (requires InnoDB)
-ALTER TABLE t1 ADD COLUMN b TEXT COMPRESSED DEFAULT "must be visible";
-SELECT LEFT(a, 10), LENGTH(a), b FROM t1;
-LEFT(a, 10) LENGTH(a) b
-aaaaaaaaaa 1000 must be visible
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 12
-ALTER TABLE t1 DROP COLUMN b;
-ALTER TABLE t1 ENGINE=MyISAM;
-TRUNCATE TABLE t1;
-# Make sure column_compression_zlib_level works
-SET column_compression_zlib_level= 1;
-INSERT INTO t1 VALUES(REPEAT('ab', 1000));
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 3
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-40
-TRUNCATE TABLE t1;
-SET column_compression_zlib_level= 9;
-INSERT INTO t1 VALUES(REPEAT('ab', 1000));
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-36
-SET column_compression_zlib_level= DEFAULT;
-TRUNCATE TABLE t1;
-# No compression, original data shorter than compressed
-INSERT INTO t1 VALUES('a');
-SELECT a, LENGTH(a) FROM t1;
-a LENGTH(a)
-a 1
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-20
-# Coverage for store(double) and store(longlong)
-INSERT INTO t1 VALUES(3.14),(CAST(9.8 AS DOUBLE)),(1),(''),(NULL);
-# and for sort_string()
-SELECT * FROM t1 ORDER BY a;
-a
-NULL
-
-1
-3.14
-9.8
-a
-# Coverage for val_real() and val_int()
-SELECT a+1 FROM t1 ORDER BY 1;
-a+1
-NULL
-1
-1
-2
-4.140000000000001
-10.8
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-DROP TABLE t1;
-#
-# MDEV-13540 - Server crashes in copy or Assertion `0' failed in virtual
-# Field* Field_varstring_compressed::new_key_field
-#
-CREATE TABLE t1 (c1 TEXT COMPRESSED) ENGINE=MyISAM;
-INSERT IGNORE INTO t1 VALUES ('foo'),('bar');
-CREATE TABLE t2 (c2 TEXT COMPRESSED) ENGINE=MyISAM;
-INSERT IGNORE INTO t2 VALUES ('qux'),('abc');
-SELECT * FROM t1 WHERE c1 NOT IN ( SELECT c2 FROM t2 WHERE c2 = c1 );
-c1
-foo
-bar
-DROP TABLE t1, t2;
-#
-# MDEV-13541 - Server crashes in next_breadth_first_tab or Assertion `0'
-# failed in Field_varstring_compressed::new_key_field
-#
-CREATE TABLE t1 (c TEXT COMPRESSED) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('foo'),('bar');
-SELECT DISTINCT c FROM t1;
-c
-foo
-bar
-DROP TABLE t1;
-FLUSH STATUS;
-CREATE TABLE t1(a VARBINARY(10000) COMPRESSED, KEY(a(10)));
-ERROR HY000: Compressed column 'a' can't be used in key specification
-CREATE TABLE t1(a VARBINARY(10000) COMPRESSED);
-ALTER TABLE t1 ADD KEY(a(10));
-ERROR HY000: Compressed column 'a' can't be used in key specification
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varbinary(10000) /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-# Make sure column was actually compressed
-INSERT INTO t1 VALUES(REPEAT('a', 1000));
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 1
-COLUMN_DECOMPRESSIONS 2
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-28
-# Make sure ALTER TABLE rebuilds table
-ALTER TABLE t1 MODIFY COLUMN a VARBINARY(10000);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varbinary(10000) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 1
-COLUMN_DECOMPRESSIONS 3
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-1008
-# Rebuild back
-ALTER TABLE t1 MODIFY COLUMN a VARBINARY(10000) COMPRESSED;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varbinary(10000) /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 5
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-28
-# Make sure CREATE TABLE ... LIKE inherits compression
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varbinary(10000) /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-# Make sure implicit CREATE TABLE ... SELECT inherits compression
-CREATE TABLE t2 SELECT * FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varbinary(10000) /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t2;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 7
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-28
-DROP TABLE t2;
-# Make sure explicit CREATE TABLE ... SELECT doesn't inherit compression
-CREATE TABLE t2(a VARBINARY(10000)) SELECT * FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varbinary(10000) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t2;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 8
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-1008
-DROP TABLE t2;
-# Make sure engine change works
-ALTER TABLE t1 ENGINE=InnoDB;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varbinary(10000) /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 10
-# Make sure online add column works (requires InnoDB)
-ALTER TABLE t1 ADD COLUMN b VARBINARY(10000) COMPRESSED DEFAULT "must be visible";
-SELECT LEFT(a, 10), LENGTH(a), b FROM t1;
-LEFT(a, 10) LENGTH(a) b
-aaaaaaaaaa 1000 must be visible
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 12
-ALTER TABLE t1 DROP COLUMN b;
-ALTER TABLE t1 ENGINE=MyISAM;
-TRUNCATE TABLE t1;
-# Make sure column_compression_zlib_level works
-SET column_compression_zlib_level= 1;
-INSERT INTO t1 VALUES(REPEAT('ab', 1000));
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 3
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-40
-TRUNCATE TABLE t1;
-SET column_compression_zlib_level= 9;
-INSERT INTO t1 VALUES(REPEAT('ab', 1000));
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-32
-SET column_compression_zlib_level= DEFAULT;
-TRUNCATE TABLE t1;
-# No compression, original data shorter than compressed
-INSERT INTO t1 VALUES('a');
-SELECT a, LENGTH(a) FROM t1;
-a LENGTH(a)
-a 1
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-20
-# Coverage for store(double) and store(longlong)
-INSERT INTO t1 VALUES(3.14),(CAST(9.8 AS DOUBLE)),(1),(''),(NULL);
-# and for sort_string()
-SELECT * FROM t1 ORDER BY a;
-a
-NULL
-
-1
-3.14
-9.8
-a
-# Coverage for val_real() and val_int()
-SELECT a+1 FROM t1 ORDER BY 1;
-a+1
-NULL
-1
-1
-2
-4.140000000000001
-10.8
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-DROP TABLE t1;
-#
-# MDEV-13540 - Server crashes in copy or Assertion `0' failed in virtual
-# Field* Field_varstring_compressed::new_key_field
-#
-CREATE TABLE t1 (c1 VARBINARY(10000) COMPRESSED) ENGINE=MyISAM;
-INSERT IGNORE INTO t1 VALUES ('foo'),('bar');
-CREATE TABLE t2 (c2 VARBINARY(10000) COMPRESSED) ENGINE=MyISAM;
-INSERT IGNORE INTO t2 VALUES ('qux'),('abc');
-SELECT * FROM t1 WHERE c1 NOT IN ( SELECT c2 FROM t2 WHERE c2 = c1 );
-c1
-foo
-bar
-DROP TABLE t1, t2;
-#
-# MDEV-13541 - Server crashes in next_breadth_first_tab or Assertion `0'
-# failed in Field_varstring_compressed::new_key_field
-#
-CREATE TABLE t1 (c VARBINARY(10000) COMPRESSED) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('foo'),('bar');
-SELECT DISTINCT c FROM t1;
-c
-foo
-bar
-DROP TABLE t1;
-FLUSH STATUS;
-CREATE TABLE t1(a VARCHAR(10000) COMPRESSED, KEY(a(10)));
-ERROR HY000: Compressed column 'a' can't be used in key specification
-CREATE TABLE t1(a VARCHAR(10000) COMPRESSED);
-ALTER TABLE t1 ADD KEY(a(10));
-ERROR HY000: Compressed column 'a' can't be used in key specification
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10000) /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-# Make sure column was actually compressed
-INSERT INTO t1 VALUES(REPEAT('a', 1000));
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 1
-COLUMN_DECOMPRESSIONS 2
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-28
-# Make sure ALTER TABLE rebuilds table
-ALTER TABLE t1 MODIFY COLUMN a VARCHAR(10000);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10000) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 1
-COLUMN_DECOMPRESSIONS 3
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-1008
-# Rebuild back
-ALTER TABLE t1 MODIFY COLUMN a VARCHAR(10000) COMPRESSED;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10000) /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 5
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-28
-# Make sure CREATE TABLE ... LIKE inherits compression
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(10000) /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-# Make sure implicit CREATE TABLE ... SELECT inherits compression
-CREATE TABLE t2 SELECT * FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(10000) /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t2;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 7
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-28
-DROP TABLE t2;
-# Make sure explicit CREATE TABLE ... SELECT doesn't inherit compression
-CREATE TABLE t2(a VARCHAR(10000)) SELECT * FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(10000) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t2;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 8
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-1008
-DROP TABLE t2;
-# Make sure engine change works
-ALTER TABLE t1 ENGINE=InnoDB;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10000) /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 10
-# Make sure online add column works (requires InnoDB)
-ALTER TABLE t1 ADD COLUMN b VARCHAR(10000) COMPRESSED DEFAULT "must be visible";
-SELECT LEFT(a, 10), LENGTH(a), b FROM t1;
-LEFT(a, 10) LENGTH(a) b
-aaaaaaaaaa 1000 must be visible
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 12
-ALTER TABLE t1 DROP COLUMN b;
-ALTER TABLE t1 ENGINE=MyISAM;
-TRUNCATE TABLE t1;
-# Make sure column_compression_zlib_level works
-SET column_compression_zlib_level= 1;
-INSERT INTO t1 VALUES(REPEAT('ab', 1000));
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 3
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-40
-TRUNCATE TABLE t1;
-SET column_compression_zlib_level= 9;
-INSERT INTO t1 VALUES(REPEAT('ab', 1000));
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-32
-SET column_compression_zlib_level= DEFAULT;
-TRUNCATE TABLE t1;
-# No compression, original data shorter than compressed
-INSERT INTO t1 VALUES('a');
-SELECT a, LENGTH(a) FROM t1;
-a LENGTH(a)
-a 1
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-20
-# Coverage for store(double) and store(longlong)
-INSERT INTO t1 VALUES(3.14),(CAST(9.8 AS DOUBLE)),(1),(''),(NULL);
-# and for sort_string()
-SELECT * FROM t1 ORDER BY a;
-a
-NULL
-
-1
-3.14
-9.8
-a
-# Coverage for val_real() and val_int()
-SELECT a+1 FROM t1 ORDER BY 1;
-a+1
-NULL
-1
-1
-2
-4.140000000000001
-10.8
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-DROP TABLE t1;
-#
-# MDEV-13540 - Server crashes in copy or Assertion `0' failed in virtual
-# Field* Field_varstring_compressed::new_key_field
-#
-CREATE TABLE t1 (c1 VARCHAR(10000) COMPRESSED) ENGINE=MyISAM;
-INSERT IGNORE INTO t1 VALUES ('foo'),('bar');
-CREATE TABLE t2 (c2 VARCHAR(10000) COMPRESSED) ENGINE=MyISAM;
-INSERT IGNORE INTO t2 VALUES ('qux'),('abc');
-SELECT * FROM t1 WHERE c1 NOT IN ( SELECT c2 FROM t2 WHERE c2 = c1 );
-c1
-foo
-bar
-DROP TABLE t1, t2;
-#
-# MDEV-13541 - Server crashes in next_breadth_first_tab or Assertion `0'
-# failed in Field_varstring_compressed::new_key_field
-#
-CREATE TABLE t1 (c VARCHAR(10000) COMPRESSED) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('foo'),('bar');
-SELECT DISTINCT c FROM t1;
-c
-foo
-bar
-DROP TABLE t1;
-FLUSH STATUS;
-CREATE TABLE t1(a TEXT CHARSET ucs2 COMPRESSED, KEY(a(10)));
-ERROR HY000: Compressed column 'a' can't be used in key specification
-CREATE TABLE t1(a TEXT CHARSET ucs2 COMPRESSED);
-ALTER TABLE t1 ADD KEY(a(10));
-ERROR HY000: Compressed column 'a' can't be used in key specification
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text /*!100301 COMPRESSED*/ CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-# Make sure column was actually compressed
-INSERT INTO t1 VALUES(REPEAT('a', 1000));
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 2000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 1
-COLUMN_DECOMPRESSIONS 2
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-36
-# Make sure ALTER TABLE rebuilds table
-ALTER TABLE t1 MODIFY COLUMN a TEXT;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 1
-COLUMN_DECOMPRESSIONS 3
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-1008
-# Rebuild back
-ALTER TABLE t1 MODIFY COLUMN a TEXT CHARSET ucs2 COMPRESSED;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text /*!100301 COMPRESSED*/ CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 2000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 5
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-36
-# Make sure CREATE TABLE ... LIKE inherits compression
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` text /*!100301 COMPRESSED*/ CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-# Make sure implicit CREATE TABLE ... SELECT inherits compression
-CREATE TABLE t2 SELECT * FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` text /*!100301 COMPRESSED*/ CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t2;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 2000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 7
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-36
-DROP TABLE t2;
-# Make sure explicit CREATE TABLE ... SELECT doesn't inherit compression
-CREATE TABLE t2(a TEXT) SELECT * FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t2;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 8
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-1008
-DROP TABLE t2;
-# Make sure engine change works
-ALTER TABLE t1 ENGINE=InnoDB;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text /*!100301 COMPRESSED*/ CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 2000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 10
-# Make sure online add column works (requires InnoDB)
-ALTER TABLE t1 ADD COLUMN b TEXT CHARSET ucs2 COMPRESSED DEFAULT "must be visible";
-SELECT LEFT(a, 10), LENGTH(a), b FROM t1;
-LEFT(a, 10) LENGTH(a) b
-aaaaaaaaaa 2000 must be visible
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 12
-ALTER TABLE t1 DROP COLUMN b;
-ALTER TABLE t1 ENGINE=MyISAM;
-TRUNCATE TABLE t1;
-# Make sure column_compression_zlib_level works
-SET column_compression_zlib_level= 1;
-INSERT INTO t1 VALUES(REPEAT('ab', 1000));
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 3
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-60
-TRUNCATE TABLE t1;
-SET column_compression_zlib_level= 9;
-INSERT INTO t1 VALUES(REPEAT('ab', 1000));
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-44
-SET column_compression_zlib_level= DEFAULT;
-TRUNCATE TABLE t1;
-# No compression, original data shorter than compressed
-INSERT INTO t1 VALUES('a');
-SELECT a, LENGTH(a) FROM t1;
-a LENGTH(a)
-a 2
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-20
-# Coverage for store(double) and store(longlong)
-INSERT INTO t1 VALUES(3.14),(CAST(9.8 AS DOUBLE)),(1),(''),(NULL);
-# and for sort_string()
-SELECT * FROM t1 ORDER BY a;
-a
-NULL
-
-1
-3.14
-9.8
-a
-# Coverage for val_real() and val_int()
-SELECT a+1 FROM t1 ORDER BY 1;
-a+1
-NULL
-1
-1
-2
-4.140000000000001
-10.8
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-DROP TABLE t1;
-#
-# MDEV-13540 - Server crashes in copy or Assertion `0' failed in virtual
-# Field* Field_varstring_compressed::new_key_field
-#
-CREATE TABLE t1 (c1 TEXT CHARSET ucs2 COMPRESSED) ENGINE=MyISAM;
-INSERT IGNORE INTO t1 VALUES ('foo'),('bar');
-CREATE TABLE t2 (c2 TEXT CHARSET ucs2 COMPRESSED) ENGINE=MyISAM;
-INSERT IGNORE INTO t2 VALUES ('qux'),('abc');
-SELECT * FROM t1 WHERE c1 NOT IN ( SELECT c2 FROM t2 WHERE c2 = c1 );
-c1
-foo
-bar
-DROP TABLE t1, t2;
-#
-# MDEV-13541 - Server crashes in next_breadth_first_tab or Assertion `0'
-# failed in Field_varstring_compressed::new_key_field
-#
-CREATE TABLE t1 (c TEXT CHARSET ucs2 COMPRESSED) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('foo'),('bar');
-SELECT DISTINCT c FROM t1;
-c
-foo
-bar
-DROP TABLE t1;
-SET column_compression_zlib_wrap=DEFAULT;
-FLUSH STATUS;
-CREATE TABLE t1(a BLOB COMPRESSED, KEY(a(10)));
-ERROR HY000: Compressed column 'a' can't be used in key specification
-CREATE TABLE t1(a BLOB COMPRESSED);
-ALTER TABLE t1 ADD KEY(a(10));
-ERROR HY000: Compressed column 'a' can't be used in key specification
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` blob /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-# Make sure column was actually compressed
-INSERT INTO t1 VALUES(REPEAT('a', 1000));
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 1
-COLUMN_DECOMPRESSIONS 2
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-24
-# Make sure ALTER TABLE rebuilds table
-ALTER TABLE t1 MODIFY COLUMN a BLOB;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 1
-COLUMN_DECOMPRESSIONS 3
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-1008
-# Rebuild back
-ALTER TABLE t1 MODIFY COLUMN a BLOB COMPRESSED;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` blob /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 5
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-24
-# Make sure CREATE TABLE ... LIKE inherits compression
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` blob /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-# Make sure implicit CREATE TABLE ... SELECT inherits compression
-CREATE TABLE t2 SELECT * FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` blob /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t2;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 7
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-24
-DROP TABLE t2;
-# Make sure explicit CREATE TABLE ... SELECT doesn't inherit compression
-CREATE TABLE t2(a BLOB) SELECT * FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t2;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 8
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-1008
-DROP TABLE t2;
-# Make sure engine change works
-ALTER TABLE t1 ENGINE=InnoDB;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` blob /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT LEFT(a, 10), LENGTH(a) FROM t1;
-LEFT(a, 10) LENGTH(a)
-aaaaaaaaaa 1000
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 10
-# Make sure online add column works (requires InnoDB)
-ALTER TABLE t1 ADD COLUMN b BLOB COMPRESSED DEFAULT "must be visible";
-SELECT LEFT(a, 10), LENGTH(a), b FROM t1;
-LEFT(a, 10) LENGTH(a) b
-aaaaaaaaaa 1000 must be visible
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 2
-COLUMN_DECOMPRESSIONS 12
-ALTER TABLE t1 DROP COLUMN b;
-ALTER TABLE t1 ENGINE=MyISAM;
-TRUNCATE TABLE t1;
-# Make sure column_compression_zlib_level works
-SET column_compression_zlib_level= 1;
-INSERT INTO t1 VALUES(REPEAT('ab', 1000));
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 3
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-36
-TRUNCATE TABLE t1;
-SET column_compression_zlib_level= 9;
-INSERT INTO t1 VALUES(REPEAT('ab', 1000));
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-28
-SET column_compression_zlib_level= DEFAULT;
-TRUNCATE TABLE t1;
-# No compression, original data shorter than compressed
-INSERT INTO t1 VALUES('a');
-SELECT a, LENGTH(a) FROM t1;
-a LENGTH(a)
-a 1
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-20
-# Coverage for store(double) and store(longlong)
-INSERT INTO t1 VALUES(3.14),(CAST(9.8 AS DOUBLE)),(1),(''),(NULL);
-# and for sort_string()
-SELECT * FROM t1 ORDER BY a;
-a
-NULL
-
-1
-3.14
-9.8
-a
-# Coverage for val_real() and val_int()
-SELECT a+1 FROM t1 ORDER BY 1;
-a+1
-NULL
-1
-1
-2
-4.140000000000001
-10.8
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 4
-COLUMN_DECOMPRESSIONS 12
-DROP TABLE t1;
-#
-# MDEV-13540 - Server crashes in copy or Assertion `0' failed in virtual
-# Field* Field_varstring_compressed::new_key_field
-#
-CREATE TABLE t1 (c1 BLOB COMPRESSED) ENGINE=MyISAM;
-INSERT IGNORE INTO t1 VALUES ('foo'),('bar');
-CREATE TABLE t2 (c2 BLOB COMPRESSED) ENGINE=MyISAM;
-INSERT IGNORE INTO t2 VALUES ('qux'),('abc');
-SELECT * FROM t1 WHERE c1 NOT IN ( SELECT c2 FROM t2 WHERE c2 = c1 );
-c1
-foo
-bar
-DROP TABLE t1, t2;
-#
-# MDEV-13541 - Server crashes in next_breadth_first_tab or Assertion `0'
-# failed in Field_varstring_compressed::new_key_field
-#
-CREATE TABLE t1 (c BLOB COMPRESSED) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('foo'),('bar');
-SELECT DISTINCT c FROM t1;
-c
-foo
-bar
-DROP TABLE t1;
-CREATE TABLE t1(a CHAR(100) COMPRESSED);
-ERROR 42000: Incorrect column specifier for column 'a'
-CREATE TABLE t1(a INT COMPRESSED);
-ERROR 42000: Incorrect column specifier for column 'a'
-CREATE TABLE t1(a BLOB COMPRESSED=unknown);
-ERROR HY000: Unknown compression method: unknown
-CREATE TABLE t1(a BLOB COMPRESSED COMPRESSED);
-DROP TABLE t1;
-CREATE TABLE t1(a INT);
-ALTER TABLE t1 MODIFY a INT COMPRESSED;
-ERROR 42000: Incorrect column specifier for column 'a'
-DROP TABLE t1;
-# Test CSV
-CREATE TABLE t1(a BLOB NOT NULL COMPRESSED) ENGINE=CSV;
-INSERT INTO t1 VALUES(REPEAT('a', 110));
-SELECT LENGTH(a) FROM t1;
-LENGTH(a)
-110
-ALTER TABLE t1 ENGINE=MyISAM;
-SELECT LENGTH(a) FROM t1;
-LENGTH(a)
-110
-ALTER TABLE t1 ENGINE=CSV;
-SELECT LENGTH(a) FROM t1;
-LENGTH(a)
-110
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` blob /*!100301 COMPRESSED*/ NOT NULL DEFAULT ''
-) ENGINE=CSV DEFAULT CHARSET=latin1
-"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
-DROP TABLE t1;
-# Test fields that don't fit data
-CREATE TABLE t1(a VARCHAR(9) COMPRESSED);
-INSERT INTO t1 VALUES(REPEAT('a', 10));
-ERROR 22001: Data too long for column 'a' at row 1
-INSERT INTO t1 VALUES(REPEAT(' ', 10));
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SELECT a, LENGTH(a) FROM t1;
-a LENGTH(a)
- 9
-DROP TABLE t1;
-CREATE TABLE t1(a TINYTEXT COMPRESSED);
-SET column_compression_threshold=300;
-INSERT INTO t1 VALUES(REPEAT('a', 255));
-ERROR 22001: Data too long for column 'a' at row 1
-INSERT INTO t1 VALUES(REPEAT(' ', 255));
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SET column_compression_threshold=DEFAULT;
-SELECT a, LENGTH(a) FROM t1;
-a LENGTH(a)
- 254
-DROP TABLE t1;
-# Corner case: VARCHAR(255) COMPRESSED must have 2 bytes pack length
-CREATE TABLE t1(a VARCHAR(255) COMPRESSED);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(255) /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SET column_compression_threshold=300;
-INSERT INTO t1 VALUES(REPEAT('a', 255));
-SET column_compression_threshold=DEFAULT;
-SELECT a, LENGTH(a) FROM t1;
-a LENGTH(a)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 255
-DROP TABLE t1;
diff --git a/mysql-test/r/column_compression_parts.result b/mysql-test/r/column_compression_parts.result
deleted file mode 100644
index e0b54aec20c..00000000000
--- a/mysql-test/r/column_compression_parts.result
+++ /dev/null
@@ -1,293 +0,0 @@
-DROP TABLE IF EXISTS t1,t2,t3,t4;
-FLUSH STATUS;
----------------------------------------by range------------------------------------------
-CREATE TABLE t1 (i int, a VARCHAR(1000) COMPRESSED DEFAULT "AAA")
-PARTITION BY RANGE COLUMNS (a)(
-PARTITION p0 VALUES LESS THAN ('g') COMMENT "p0",
-PARTITION p1 VALUES LESS THAN ('m'),
-PARTITION p2 VALUES LESS THAN ('t'),
-PARTITION p3 VALUES LESS THAN ('w'));
-ALTER TABLE t1 ADD PARTITION (PARTITION p4 VALUES LESS THAN (MAXVALUE));
-INSERT INTO t1 VALUES (1,REPEAT('a',100)),(2,REPEAT('v',200)),(3,REPEAT('r',300)),(4,NULL);
-INSERT INTO t1 VALUES (5,REPEAT('k',500)),(6,'April'),(7,7),(8,""),(9,"M"),(10,DEFAULT);
-ALTER TABLE t1 ANALYZE PARTITION p1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-ALTER TABLE t1 CHECK PARTITION p2;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-SELECT i,SUBSTRING(a,1,10) FROM t1 PARTITION (p2) ORDER BY i;
-i SUBSTRING(a,1,10)
-3 rrrrrrrrrr
-9 M
-SELECT i,SUBSTRING(a,1,10) FROM t1 where length(a)>=300 ORDER BY i;
-i SUBSTRING(a,1,10)
-3 rrrrrrrrrr
-5 kkkkkkkkkk
-SELECT i,SUBSTRING(a,1,10) FROM t1 where a like "%k" ORDER BY i;
-i SUBSTRING(a,1,10)
-5 kkkkkkkkkk
-DELETE FROM t1 where a="";
-DELETE FROM t1 where a=(REPEAT('a',100));
-DELETE FROM t1 where a like "%v";
-SELECT i,SUBSTRING(a,1,10) FROM t1 ORDER BY i;
-i SUBSTRING(a,1,10)
-3 rrrrrrrrrr
-4 NULL
-5 kkkkkkkkkk
-6 April
-7 7
-9 M
-10 AAA
-SELECT i,SUBSTRING(a,1,10) FROM t1 where a not like "%k" ORDER BY i;
-i SUBSTRING(a,1,10)
-3 rrrrrrrrrr
-6 April
-7 7
-9 M
-10 AAA
-SELECT i,SUBSTRING(a,1,10) FROM t1 where (a>'m') ORDER BY i;
-i SUBSTRING(a,1,10)
-3 rrrrrrrrrr
-SELECT i,SUBSTRING(a,1,10) FROM t1 where (a between 'h' and 'z') and (i=9) ORDER BY i;
-i SUBSTRING(a,1,10)
-9 M
-EXPLAIN PARTITIONS SELECT i,SUBSTRING(a,1,10) FROM t1 where (a>'m');
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2,p3,p4 ALL NULL NULL NULL NULL 2 Using where
-EXPLAIN PARTITIONS SELECT i,SUBSTRING(a,1,10) FROM t1 where (a<'w');
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3 ALL NULL NULL NULL NULL 7 Using where
-ALTER TABLE t1 TRUNCATE PARTITION p2;
-ALTER TABLE t1 DROP PARTITION p0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL,
- `a` varchar(1000) /*!100301 COMPRESSED*/ DEFAULT 'AAA'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE COLUMNS(`a`)
-(PARTITION `p1` VALUES LESS THAN ('m') ENGINE = MyISAM,
- PARTITION `p2` VALUES LESS THAN ('t') ENGINE = MyISAM,
- PARTITION `p3` VALUES LESS THAN ('w') ENGINE = MyISAM,
- PARTITION `p4` VALUES LESS THAN (MAXVALUE) ENGINE = MyISAM)
-ALTER TABLE t1 MODIFY COLUMN a VARCHAR(1000);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL,
- `a` varchar(1000) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE COLUMNS(`a`)
-(PARTITION `p1` VALUES LESS THAN ('m') ENGINE = MyISAM,
- PARTITION `p2` VALUES LESS THAN ('t') ENGINE = MyISAM,
- PARTITION `p3` VALUES LESS THAN ('w') ENGINE = MyISAM,
- PARTITION `p4` VALUES LESS THAN (MAXVALUE) ENGINE = MyISAM)
-DROP TABLE t1;
----------------------------------------------------------------------------------------------
-CREATE TABLE t1 (a VARCHAR(1000) COMPRESSED NOT NULL, id INT)
-PARTITION BY RANGE COLUMNS(id,a)(
-PARTITION p0 VALUES LESS THAN (100,'sss'),
-PARTITION p1 VALUES LESS THAN (MAXVALUE,MAXVALUE));
-INSERT INTO t1 VALUES (REPEAT('a',100), 23),(REPEAT('v',100),123),(REPEAT('z',100),24),(REPEAT('k',100),124);
-SELECT id,SUBSTRING(a,1,10) FROM t1 order by id;
-id SUBSTRING(a,1,10)
-23 aaaaaaaaaa
-24 zzzzzzzzzz
-123 vvvvvvvvvv
-124 kkkkkkkkkk
-SELECT * from t1 partition (p0);
-a id
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 23
-zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 24
-SELECT * from t1 partition (p1);
-a id
-vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 123
-kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk 124
-INSERT INTO t1 VALUES (REPEAT('a',100),101);
-SELECT * from t1 partition (p0);
-a id
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 23
-zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 24
-SELECT * from t1 partition (p1);
-a id
-vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 123
-kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk 124
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 101
-ALTER TABLE t1 DROP PARTITION p1;
-SELECT id,SUBSTRING(a,1,10) FROM t1 WHERE id<50 order by id;
-id SUBSTRING(a,1,10)
-23 aaaaaaaaaa
-24 zzzzzzzzzz
-INSERT INTO t1 VALUES (REPEAT('a',100),101);
-ERROR HY000: Table has no partition for value from column_list
-ALTER TABLE t1 ALTER COLUMN a SET DEFAULT 'qwerty';
-ALTER TABLE t1 ALTER COLUMN a DROP DEFAULT;
-ALTER TABLE t1 MODIFY COLUMN a VARCHAR(1000);
-ALTER TABLE t1 ALTER COLUMN a DROP DEFAULT;
-INSERT INTO t1 VALUES (REPEAT('b',100),11);
-INSERT INTO t1 VALUES (default,10);
-ERROR HY000: Field 'a' doesn't have a default value
-ALTER TABLE t1 MODIFY COLUMN a VARCHAR(1000) COMPRESSED;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1000) /*!100301 COMPRESSED*/ DEFAULT NULL,
- `id` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE COLUMNS(`id`,`a`)
-(PARTITION `p0` VALUES LESS THAN (100,'sss') ENGINE = MyISAM)
-SELECT * from t1 ORDER BY id;
-a id
-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 11
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 23
-zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 24
-DROP TABLE t1;
-----------------------------1 partition--------------------------------------------------
-CREATE TABLE t1 (a VARCHAR(1000) COMPRESSED DEFAULT "10-12-2010")
-PARTITION BY RANGE COLUMNS (a) (partition p0 VALUES LESS THAN (MAXVALUE));
-INSERT INTO t1 VALUES (REPEAT('a',100)), (REPEAT('v',200)), (REPEAT('Z',300)),(NULL),(DEFAULT);
-INSERT INTO t1 VALUES (DEFAULT),(REPEAT('b',200)),(REPEAT('q',300)),(DEFAULT),("MAY");
-SELECT SUBSTRING(a,1,10) FROM t1;
-SUBSTRING(a,1,10)
-10-12-2010
-10-12-2010
-10-12-2010
-MAY
-NULL
-ZZZZZZZZZZ
-aaaaaaaaaa
-bbbbbbbbbb
-qqqqqqqqqq
-vvvvvvvvvv
------------------------------------------by key------------------------------------------
-ALTER TABLE t1 PARTITION BY KEY(a) PARTITIONS 6;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1000) /*!100301 COMPRESSED*/ DEFAULT '10-12-2010'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-PARTITIONS 6
-UPDATE t1 SET a="NEW" where length(a)<20;
-SELECT SUBSTRING(a,1,10) FROM t1;
-SUBSTRING(a,1,10)
-NEW
-NEW
-NEW
-NEW
-NULL
-ZZZZZZZZZZ
-aaaaaaaaaa
-bbbbbbbbbb
-qqqqqqqqqq
-vvvvvvvvvv
-CREATE TABLE t2 (a VARBINARY(1000) COMPRESSED)
-PARTITION BY KEY(a) PARTITIONS 3;
-ALTER TABLE t2 PARTITION BY LINEAR KEY ALGORITHM=2 (a) PARTITIONS 32;
-INSERT INTO t2 VALUES (REPEAT('a',100)),(REPEAT('v',6)),(REPEAT('z',13)),(REPEAT('k',900));
-SELECT SUBSTRING(a,1,10) FROM t2;
-SUBSTRING(a,1,10)
-aaaaaaaaaa
-kkkkkkkkkk
-vvvvvv
-zzzzzzzzzz
-CREATE TABLE t3 ( a VARCHAR(1000) COMPRESSED DEFAULT NULL)
-PARTITION BY LINEAR KEY(a) PARTITIONS 3;
-INSERT INTO t3 VALUES (REPEAT('a',100)),(REPEAT('v',100)),(NULL),(REPEAT('k',100)),(DEFAULT);
-SELECT SUBSTRING(a,1,10) FROM t3 where a<>NULL;
-SUBSTRING(a,1,10)
-CREATE TABLE t4 (a VARBINARY(1000) COMPRESSED NOT NULL DEFAULT 0 COMMENT "QQ")
-PARTITION BY LINEAR KEY(a)
-PARTITIONS 3;
-INSERT INTO t4 VALUES (REPEAT('a',100)),('0'),(DEFAULT),(DEFAULT),(REPEAT('v',100)),(REPEAT('k',100));
-SELECT SUBSTRING(a,1,10) FROM t4 where length(a)>3;
-SUBSTRING(a,1,10)
-aaaaaaaaaa
-kkkkkkkkkk
-vvvvvvvvvv
-DROP TABLE t1,t2,t3,t4;
------------------------------------subpartitions------------------------------------------
-CREATE TABLE t1 (a VARCHAR(1000) COMPRESSED, id INT NOT NULL)
-PARTITION BY RANGE(id)
-SUBPARTITION BY KEY(a) SUBPARTITIONS 4
-(PARTITION p0 VALUES LESS THAN (5),
-PARTITION p1 VALUES LESS THAN (MAXVALUE));
-INSERT INTO t1 VALUES (REPEAT('a',100),23),(REPEAT('v',100),123),(REPEAT('z',100),24),(REPEAT('k',100),124);
-SELECT id,SUBSTRING(a,1,10) FROM t1 where a=(REPEAT('k',100)) order by id;
-id SUBSTRING(a,1,10)
-124 kkkkkkkkkk
-DROP TABLE t1;
--------------------------------------------------------------------------------------------
-CREATE TABLE t1 (a BLOB COMPRESSED)
-PARTITION BY KEY(a) partitions 30;
-ERROR HY000: A BLOB field is not allowed in partition function
-CREATE TABLE t1 (a VARCHAR(200) COMPRESSED) PARTITION BY KEY(a) partitions 30;
-ALTER TABLE t1 COALESCE PARTITION 20;
-ALTER TABLE t1 ADD PARTITION (PARTITION pm);
-CREATE TABLE t2 like t1;
-ALTER TABLE t2 REMOVE PARTITIONING;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(200) /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-(PARTITION `p0` ENGINE = MyISAM,
- PARTITION `p1` ENGINE = MyISAM,
- PARTITION `p2` ENGINE = MyISAM,
- PARTITION `p3` ENGINE = MyISAM,
- PARTITION `p4` ENGINE = MyISAM,
- PARTITION `p5` ENGINE = MyISAM,
- PARTITION `p6` ENGINE = MyISAM,
- PARTITION `p7` ENGINE = MyISAM,
- PARTITION `p8` ENGINE = MyISAM,
- PARTITION `p9` ENGINE = MyISAM,
- PARTITION `pm` ENGINE = MyISAM)
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(200) /*!100301 COMPRESSED*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 EXCHANGE PARTITION pm WITH TABLE t2;
-DROP TABLE t1,t2;
--------------------------------------------------------------------------------------------
-CREATE TABLE t1 (a BLOB COMPRESSED default 5,i int);
-INSERT INTO t1 VALUES (REPEAT('a',100),1),(REPEAT('v',100),2),(REPEAT('z',100),3),(REPEAT('k',100),2),(2,2);
-ALTER TABLE t1 PARTITION BY KEY(a) partitions 3;
-ERROR HY000: A BLOB field is not allowed in partition function
-ALTER TABLE t1 PARTITION BY HASH(i) PARTITIONS 8;
-ALTER TABLE t1 REORGANIZE PARTITION p0 INTO (
-PARTITION s0 VALUES LESS THAN (1960),
-PARTITION s1 VALUES LESS THAN (1970)
-);
-ERROR HY000: Only RANGE PARTITIONING can use VALUES LESS THAN in partition definition
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` blob /*!100301 COMPRESSED*/ DEFAULT 5,
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY HASH (`i`)
-PARTITIONS 8
-ALTER TABLE t1 REMOVE PARTITIONING;
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(500) COMPRESSED default 5,i int)
-PARTITION BY RANGE COLUMNS(i)(
-PARTITION p0 VALUES LESS THAN (10),
-PARTITION p1 VALUES LESS THAN (100),
-PARTITION p2 VALUES LESS THAN (1000));
-INSERT INTO t1 VALUES (REPEAT('a',100),1),("one",21),(REPEAT('3',100),34),(REPEAT('k',100),267),(2,278);
-ALTER TABLE t1 REORGANIZE PARTITION p2 INTO (PARTITION p22 VALUES LESS THAN (MAXVALUE));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(500) /*!100301 COMPRESSED*/ DEFAULT '5',
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE COLUMNS(`i`)
-(PARTITION `p0` VALUES LESS THAN (10) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN (100) ENGINE = MyISAM,
- PARTITION `p22` VALUES LESS THAN (MAXVALUE) ENGINE = MyISAM)
-ALTER TABLE t1 REBUILD PARTITION p22;
-DROP TABLE t1;
diff --git a/mysql-test/r/column_compression_rpl.result b/mysql-test/r/column_compression_rpl.result
deleted file mode 100644
index 3cbc1802939..00000000000
--- a/mysql-test/r/column_compression_rpl.result
+++ /dev/null
@@ -1,2250 +0,0 @@
-include/master-slave.inc
-[connection master]
-connection slave;
-SET @saved_slave_type_conversions = @@slave_type_conversions;
-SET GLOBAL SLAVE_TYPE_CONVERSIONS = 'ALL_NON_LOSSY';
-connection master;
-DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
---------------------------------------------------------------------------------------------------------------
---------------------------------------------COMPRESSED TO COMPRESSED------------------------------------------
---------------------------------------------------------------------------------------------------------------
-connection slave;
-CREATE TABLE t1 (a BLOB COMPRESSED default "1111111111") ENGINE=innodb;
-CREATE TABLE t2 (a TINYBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t3 (a MEDIUMBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t4 (a LONGBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t5 (a TEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t6 (a TINYTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t7 (a MEDIUMTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t8 (a LONGTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t9 (a VARCHAR(10000) COMPRESSED default "0") ENGINE=innodb;
-CREATE TABLE t10 (a VARBINARY(10000) COMPRESSED) ENGINE=innodb;
-connection master;
-CREATE TABLE t1 (a BLOB COMPRESSED default "1111111111") ENGINE=myisam;
-CREATE TABLE t2 (a TINYBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE t3 (a MEDIUMBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE t4 (a LONGBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE t5 (a TEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t6 (a TINYTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t7 (a MEDIUMTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t8 (a LONGTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t9 (a VARCHAR(10000) COMPRESSED default "0") ENGINE=myisam;
-CREATE TABLE t10 (a VARBINARY(10000) COMPRESSED) ENGINE=myisam;
-INSERT INTO t1(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),(default);
-INSERT INTO t2(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t3(a) VALUES(REPEAT('a',100)),(REPEAT('v',2000)),("April"),(NULL);
-INSERT INTO t4(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("00-00-00");
-INSERT INTO t5(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t6(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t7(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',3000)),(NULL);
-INSERT INTO t8(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("qwerty");
-INSERT INTO t9(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("12-12-2009"),(default);
-INSERT INTO t10(a) VALUES(REPEAT('a',1000)),(REPEAT('v',2000)),(REPEAT('r',300)),(NULL), ("");
---------------------------------------------------data on master------------------------------------------------
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-0 M,compressed
-1000 aaaaaaaaaa M,compressed
-2000 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-108
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-1 0 M,compressed
-10 12-12-2009 M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-120
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-6 qwerty M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-120
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-3000 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-92
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-254 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-80
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-84
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-8 00-00-00 M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-120
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-2000 vvvvvvvvvv M,compressed
-5 April M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-88
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-254 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-80
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10 1111111111 M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-104
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 29
-COLUMN_DECOMPRESSIONS 58
---------------------------------------------------data on slave-------------------------------------------------
-connection slave;
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-0 S,compressed
-1000 aaaaaaaaaa S,compressed
-2000 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-108
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-1 0 S,compressed
-10 12-12-2009 S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-120
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-6 qwerty S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-120
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-3000 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-92
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-254 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-80
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-84
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-8 00-00-00 S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-120
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-2000 vvvvvvvvvv S,compressed
-5 April S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-88
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-254 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-80
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10 1111111111 S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-104
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 0
-COLUMN_DECOMPRESSIONS 58
-connection master;
-DROP TABLE t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
-FLUSH STATUS;
------------------------------------------------------------------------------------------------------------------
----------------------------------------COMPRESSED TO NOT COMPRESSED----------------------------------------------
------------------------------------------------------------------------------------------------------------------
-connection slave;
-FLUSH STATUS;
-CREATE TABLE t1 (a BLOB) ENGINE=innodb;
-CREATE TABLE t2 (a TINYBLOB) ENGINE=innodb;
-CREATE TABLE t3 (a MEDIUMBLOB) ENGINE=innodb;
-CREATE TABLE t4 (a LONGBLOB) ENGINE=innodb;
-CREATE TABLE t5 (a TEXT) ENGINE=innodb;
-CREATE TABLE t6 (a TINYTEXT) ENGINE=innodb;
-CREATE TABLE t7 (a MEDIUMTEXT) ENGINE=innodb;
-CREATE TABLE t8 (a LONGTEXT) ENGINE=innodb;
-CREATE TABLE t9 (a VARCHAR(10000)) ENGINE=innodb;
-CREATE TABLE t10 (a VARBINARY(10000)) ENGINE=innodb;
-connection master;
-CREATE TABLE IF NOT EXISTS t1 (a BLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t2 (a TINYBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t3 (a MEDIUMBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t4 (a LONGBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t5 (a TEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t6 (a TINYTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t7 (a MEDIUMTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t8 (a LONGTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t9 (a VARCHAR(10000) COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t10 (a VARBINARY(10000) COMPRESSED) ENGINE=myisam;
-INSERT INTO t1(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t2(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t3(a) VALUES(REPEAT('a',100)),(REPEAT('v',2000)),("April"),(NULL);
-INSERT INTO t4(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("00-00-00");
-INSERT INTO t5(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t6(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t7(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',3000)),(NULL);
-INSERT INTO t8(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("qwerty");
-INSERT INTO t9(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("12-12-2009");
-INSERT INTO t10(a) VALUES(REPEAT('a',1000)),(REPEAT('v',2000)),(REPEAT('r',300)),(NULL), ("");
----------------------------------------data on master-----------------------------------------------------------
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-0 M,compressed
-1000 aaaaaaaaaa M,compressed
-2000 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-108
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10 12-12-2009 M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-100
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-6 qwerty M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-120
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-3000 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-92
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-254 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-80
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-84
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-8 00-00-00 M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-120
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-2000 vvvvvvvvvv M,compressed
-5 April M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-88
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-254 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-80
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-84
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 29
-COLUMN_DECOMPRESSIONS 58
----------------------------------------data on slave-------------------------------------------------------------
-connection slave;
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-0 S,not compressed
-1000 aaaaaaaaaa S,not compressed
-2000 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-10 12-12-2009 S,not compressed
-1000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-10000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-6 qwerty S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-100 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-3000 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-100 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-254 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-1000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-10000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-8 00-00-00 S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-100 aaaaaaaaaa S,not compressed
-2000 vvvvvvvvvv S,not compressed
-5 April S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-100 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-254 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-1000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-16384
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 0
-COLUMN_DECOMPRESSIONS 0
-connection master;
-DROP TABLE t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
-FLUSH STATUS;
------------------------------------------------------------------------------------------------------------------
------------------------------------NOT COMPRESSED to COMPRESSED--------------------------------------------------
------------------------------------------------------------------------------------------------------------------
-connection slave;
-FLUSH STATUS;
-CREATE TABLE t1 (a BLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t2 (a TINYBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t3 (a MEDIUMBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t4 (a LONGBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t5 (a TEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t6 (a TINYTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t7 (a MEDIUMTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t8 (a LONGTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t9 (a VARCHAR(10000) COMPRESSED) ENGINE=innodb;
-CREATE TABLE t10 (a VARBINARY(10000) COMPRESSED) ENGINE=innodb;
-connection master;
-CREATE TABLE IF NOT EXISTS t1 (a BLOB) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t2 (a TINYBLOB) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t3 (a MEDIUMBLOB) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t4 (a LONGBLOB) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t5 (a TEXT) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t6 (a TINYTEXT) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t7 (a MEDIUMTEXT) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t8 (a LONGTEXT) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t9 (a VARCHAR(10000)) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t10 (a VARBINARY(10000)) ENGINE=myisam;
-INSERT INTO t1(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t2(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t3(a) VALUES(REPEAT('a',100)),(REPEAT('v',2000)),("April"),(NULL);
-INSERT INTO t4(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("00-00-00");
-INSERT INTO t5(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t6(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t7(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',3000)),(NULL);
-INSERT INTO t8(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("qwerty");
-INSERT INTO t9(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("12-12-2009");
-INSERT INTO t10(a) VALUES(REPEAT('a',1000)),(REPEAT('v',2000)),(REPEAT('r',300)),(NULL), ("");
------------------------------------data on master---------------------------------------------------------------
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-0 M,not compressed
-1000 aaaaaaaaaa M,not compressed
-2000 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-3364
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-10 12-12-2009 M,not compressed
-1000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-1564
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-10000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-6 qwerty M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-10576
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-100 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-3000 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-3344
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-100 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-254 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-596
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-1000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-1544
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-10000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-8 00-00-00 M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-10576
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-100 aaaaaaaaaa M,not compressed
-2000 vvvvvvvvvv M,not compressed
-5 April M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-2156
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-100 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-254 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-596
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-1000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-1544
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 0
-COLUMN_DECOMPRESSIONS 0
------------------------------------data on slave-----------------------------------------------------------------
-connection slave;
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-0 S,compressed
-1000 aaaaaaaaaa S,compressed
-2000 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10 12-12-2009 S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-6 qwerty S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-3000 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-254 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-8 00-00-00 S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-2000 vvvvvvvvvv S,compressed
-5 April S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-254 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-16384
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 0
-COLUMN_DECOMPRESSIONS 58
-connection master;
-DROP TABLE t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
------------------------------------------------------------------------------------------------------------------
-------varchar(1000)->varchar(999) compressed, varchar(1000) compressed->varchar(999) ----------------------------
------------------------------------------------------------------------------------------------------------------
-connection slave;
-CREATE TABLE t1 (a VARCHAR(999) COMPRESSED) ENGINE=innodb;
-CREATE TABLE t2 (a VARCHAR(999)) ENGINE=innodb;
-show warnings;
-Level Code Message
-call mtr.add_suppression("Slave: Data too long for column 'a' at row 1 Error_code: 1406");
-call mtr.add_suppression("Slave: Table 't2' already exists Error_code: 1050");
-connection master;
-CREATE TABLE IF NOT EXISTS t1 (a VARCHAR(1000))ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t2 (a VARCHAR(1000) COMPRESSED)ENGINE=myisam;
-INSERT INTO t1(a) VALUES(REPEAT('a',1000));
-connection slave;
-include/wait_for_slave_sql_error_and_skip.inc [errno=1406,1677]
-show warnings;
-Level Code Message
-connection master;
-INSERT INTO t2(a) VALUES(REPEAT('a',1000));
-connection slave;
-include/wait_for_slave_sql_error_and_skip.inc [errno=1406,1677]
-show warnings;
-Level Code Message
-SET GLOBAL SLAVE_TYPE_CONVERSIONS = @saved_slave_type_conversions;
-connection master;
-DROP TABLE t1,t2;
-connection slave;
-connection slave;
-SET @saved_slave_type_conversions = @@slave_type_conversions;
-SET GLOBAL SLAVE_TYPE_CONVERSIONS = 'ALL_NON_LOSSY';
-connection master;
-DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
---------------------------------------------------------------------------------------------------------------
---------------------------------------------COMPRESSED TO COMPRESSED------------------------------------------
---------------------------------------------------------------------------------------------------------------
-connection slave;
-CREATE TABLE t1 (a BLOB COMPRESSED default "1111111111") ENGINE=innodb;
-CREATE TABLE t2 (a TINYBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t3 (a MEDIUMBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t4 (a LONGBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t5 (a TEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t6 (a TINYTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t7 (a MEDIUMTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t8 (a LONGTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t9 (a VARCHAR(10000) COMPRESSED default "0") ENGINE=innodb;
-CREATE TABLE t10 (a VARBINARY(10000) COMPRESSED) ENGINE=innodb;
-connection master;
-CREATE TABLE t1 (a BLOB COMPRESSED default "1111111111") ENGINE=innodb;
-CREATE TABLE t2 (a TINYBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t3 (a MEDIUMBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t4 (a LONGBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t5 (a TEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t6 (a TINYTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t7 (a MEDIUMTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t8 (a LONGTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t9 (a VARCHAR(10000) COMPRESSED default "0") ENGINE=innodb;
-CREATE TABLE t10 (a VARBINARY(10000) COMPRESSED) ENGINE=innodb;
-INSERT INTO t1(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),(default);
-INSERT INTO t2(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t3(a) VALUES(REPEAT('a',100)),(REPEAT('v',2000)),("April"),(NULL);
-INSERT INTO t4(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("00-00-00");
-INSERT INTO t5(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t6(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t7(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',3000)),(NULL);
-INSERT INTO t8(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("qwerty");
-INSERT INTO t9(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("12-12-2009"),(default);
-INSERT INTO t10(a) VALUES(REPEAT('a',1000)),(REPEAT('v',2000)),(REPEAT('r',300)),(NULL), ("");
---------------------------------------------------data on master------------------------------------------------
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-0 M,compressed
-1000 aaaaaaaaaa M,compressed
-2000 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-1 0 M,compressed
-10 12-12-2009 M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-6 qwerty M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-3000 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-254 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-8 00-00-00 M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-2000 vvvvvvvvvv M,compressed
-5 April M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-254 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10 1111111111 M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-16384
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 30
-COLUMN_DECOMPRESSIONS 58
---------------------------------------------------data on slave-------------------------------------------------
-connection slave;
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-0 S,compressed
-1000 aaaaaaaaaa S,compressed
-2000 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-1 0 S,compressed
-10 12-12-2009 S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-6 qwerty S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-3000 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-254 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-8 00-00-00 S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-2000 vvvvvvvvvv S,compressed
-5 April S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-254 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10 1111111111 S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-16384
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 0
-COLUMN_DECOMPRESSIONS 116
-connection master;
-DROP TABLE t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
-FLUSH STATUS;
------------------------------------------------------------------------------------------------------------------
----------------------------------------COMPRESSED TO NOT COMPRESSED----------------------------------------------
------------------------------------------------------------------------------------------------------------------
-connection slave;
-FLUSH STATUS;
-CREATE TABLE t1 (a BLOB) ENGINE=innodb;
-CREATE TABLE t2 (a TINYBLOB) ENGINE=innodb;
-CREATE TABLE t3 (a MEDIUMBLOB) ENGINE=innodb;
-CREATE TABLE t4 (a LONGBLOB) ENGINE=innodb;
-CREATE TABLE t5 (a TEXT) ENGINE=innodb;
-CREATE TABLE t6 (a TINYTEXT) ENGINE=innodb;
-CREATE TABLE t7 (a MEDIUMTEXT) ENGINE=innodb;
-CREATE TABLE t8 (a LONGTEXT) ENGINE=innodb;
-CREATE TABLE t9 (a VARCHAR(10000)) ENGINE=innodb;
-CREATE TABLE t10 (a VARBINARY(10000)) ENGINE=innodb;
-connection master;
-CREATE TABLE IF NOT EXISTS t1 (a BLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t2 (a TINYBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t3 (a MEDIUMBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t4 (a LONGBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t5 (a TEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t6 (a TINYTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t7 (a MEDIUMTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t8 (a LONGTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t9 (a VARCHAR(10000) COMPRESSED) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t10 (a VARBINARY(10000) COMPRESSED) ENGINE=innodb;
-INSERT INTO t1(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t2(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t3(a) VALUES(REPEAT('a',100)),(REPEAT('v',2000)),("April"),(NULL);
-INSERT INTO t4(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("00-00-00");
-INSERT INTO t5(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t6(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t7(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',3000)),(NULL);
-INSERT INTO t8(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("qwerty");
-INSERT INTO t9(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("12-12-2009");
-INSERT INTO t10(a) VALUES(REPEAT('a',1000)),(REPEAT('v',2000)),(REPEAT('r',300)),(NULL), ("");
----------------------------------------data on master-----------------------------------------------------------
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-0 M,compressed
-1000 aaaaaaaaaa M,compressed
-2000 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10 12-12-2009 M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-6 qwerty M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-3000 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-254 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-8 00-00-00 M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-2000 vvvvvvvvvv M,compressed
-5 April M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-254 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-16384
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 29
-COLUMN_DECOMPRESSIONS 58
----------------------------------------data on slave-------------------------------------------------------------
-connection slave;
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-0 S,not compressed
-1000 aaaaaaaaaa S,not compressed
-2000 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-10 12-12-2009 S,not compressed
-1000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-10000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-6 qwerty S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-100 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-3000 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-100 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-254 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-1000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-10000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-8 00-00-00 S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-100 aaaaaaaaaa S,not compressed
-2000 vvvvvvvvvv S,not compressed
-5 April S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-100 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-254 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-1000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-16384
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 0
-COLUMN_DECOMPRESSIONS 0
-connection master;
-DROP TABLE t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
-FLUSH STATUS;
------------------------------------------------------------------------------------------------------------------
------------------------------------NOT COMPRESSED to COMPRESSED--------------------------------------------------
------------------------------------------------------------------------------------------------------------------
-connection slave;
-FLUSH STATUS;
-CREATE TABLE t1 (a BLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t2 (a TINYBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t3 (a MEDIUMBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t4 (a LONGBLOB COMPRESSED) ENGINE=innodb;
-CREATE TABLE t5 (a TEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t6 (a TINYTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t7 (a MEDIUMTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t8 (a LONGTEXT COMPRESSED) ENGINE=innodb;
-CREATE TABLE t9 (a VARCHAR(10000) COMPRESSED) ENGINE=innodb;
-CREATE TABLE t10 (a VARBINARY(10000) COMPRESSED) ENGINE=innodb;
-connection master;
-CREATE TABLE IF NOT EXISTS t1 (a BLOB) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t2 (a TINYBLOB) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t3 (a MEDIUMBLOB) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t4 (a LONGBLOB) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t5 (a TEXT) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t6 (a TINYTEXT) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t7 (a MEDIUMTEXT) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t8 (a LONGTEXT) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t9 (a VARCHAR(10000)) ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t10 (a VARBINARY(10000)) ENGINE=innodb;
-INSERT INTO t1(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t2(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t3(a) VALUES(REPEAT('a',100)),(REPEAT('v',2000)),("April"),(NULL);
-INSERT INTO t4(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("00-00-00");
-INSERT INTO t5(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t6(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t7(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',3000)),(NULL);
-INSERT INTO t8(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("qwerty");
-INSERT INTO t9(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("12-12-2009");
-INSERT INTO t10(a) VALUES(REPEAT('a',1000)),(REPEAT('v',2000)),(REPEAT('r',300)),(NULL), ("");
------------------------------------data on master---------------------------------------------------------------
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-0 M,not compressed
-1000 aaaaaaaaaa M,not compressed
-2000 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-10 12-12-2009 M,not compressed
-1000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-10000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-6 qwerty M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-100 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-3000 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-100 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-254 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-1000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-10000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-8 00-00-00 M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-100 aaaaaaaaaa M,not compressed
-2000 vvvvvvvvvv M,not compressed
-5 April M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-100 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-254 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-16384
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-1000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-16384
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 0
-COLUMN_DECOMPRESSIONS 0
------------------------------------data on slave-----------------------------------------------------------------
-connection slave;
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-0 S,compressed
-1000 aaaaaaaaaa S,compressed
-2000 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10 12-12-2009 S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-6 qwerty S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-3000 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-254 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-8 00-00-00 S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-2000 vvvvvvvvvv S,compressed
-5 April S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-254 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-16384
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-16384
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 0
-COLUMN_DECOMPRESSIONS 58
-connection master;
-DROP TABLE t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
------------------------------------------------------------------------------------------------------------------
-------varchar(1000)->varchar(999) compressed, varchar(1000) compressed->varchar(999) ----------------------------
------------------------------------------------------------------------------------------------------------------
-connection slave;
-CREATE TABLE t1 (a VARCHAR(999) COMPRESSED) ENGINE=innodb;
-CREATE TABLE t2 (a VARCHAR(999)) ENGINE=innodb;
-show warnings;
-Level Code Message
-call mtr.add_suppression("Slave: Data too long for column 'a' at row 1 Error_code: 1406");
-call mtr.add_suppression("Slave: Table 't2' already exists Error_code: 1050");
-connection master;
-CREATE TABLE IF NOT EXISTS t1 (a VARCHAR(1000))ENGINE=innodb;
-CREATE TABLE IF NOT EXISTS t2 (a VARCHAR(1000) COMPRESSED)ENGINE=innodb;
-INSERT INTO t1(a) VALUES(REPEAT('a',1000));
-connection slave;
-include/wait_for_slave_sql_error_and_skip.inc [errno=1406,1677]
-show warnings;
-Level Code Message
-connection master;
-INSERT INTO t2(a) VALUES(REPEAT('a',1000));
-connection slave;
-include/wait_for_slave_sql_error_and_skip.inc [errno=1406,1677]
-show warnings;
-Level Code Message
-SET GLOBAL SLAVE_TYPE_CONVERSIONS = @saved_slave_type_conversions;
-connection master;
-DROP TABLE t1,t2;
-connection slave;
-connection slave;
-SET @saved_slave_type_conversions = @@slave_type_conversions;
-SET GLOBAL SLAVE_TYPE_CONVERSIONS = 'ALL_NON_LOSSY';
-connection master;
-DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
---------------------------------------------------------------------------------------------------------------
---------------------------------------------COMPRESSED TO COMPRESSED------------------------------------------
---------------------------------------------------------------------------------------------------------------
-connection slave;
-CREATE TABLE t1 (a BLOB COMPRESSED default "1111111111") ENGINE=myisam;
-CREATE TABLE t2 (a TINYBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE t3 (a MEDIUMBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE t4 (a LONGBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE t5 (a TEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t6 (a TINYTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t7 (a MEDIUMTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t8 (a LONGTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t9 (a VARCHAR(10000) COMPRESSED default "0") ENGINE=myisam;
-CREATE TABLE t10 (a VARBINARY(10000) COMPRESSED) ENGINE=myisam;
-connection master;
-CREATE TABLE t1 (a BLOB COMPRESSED default "1111111111") ENGINE=myisam;
-CREATE TABLE t2 (a TINYBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE t3 (a MEDIUMBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE t4 (a LONGBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE t5 (a TEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t6 (a TINYTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t7 (a MEDIUMTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t8 (a LONGTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t9 (a VARCHAR(10000) COMPRESSED default "0") ENGINE=myisam;
-CREATE TABLE t10 (a VARBINARY(10000) COMPRESSED) ENGINE=myisam;
-INSERT INTO t1(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),(default);
-INSERT INTO t2(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t3(a) VALUES(REPEAT('a',100)),(REPEAT('v',2000)),("April"),(NULL);
-INSERT INTO t4(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("00-00-00");
-INSERT INTO t5(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t6(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t7(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',3000)),(NULL);
-INSERT INTO t8(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("qwerty");
-INSERT INTO t9(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("12-12-2009"),(default);
-INSERT INTO t10(a) VALUES(REPEAT('a',1000)),(REPEAT('v',2000)),(REPEAT('r',300)),(NULL), ("");
---------------------------------------------------data on master------------------------------------------------
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-0 M,compressed
-1000 aaaaaaaaaa M,compressed
-2000 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-108
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-1 0 M,compressed
-10 12-12-2009 M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-120
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-6 qwerty M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-120
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-3000 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-92
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-254 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-80
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-84
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-8 00-00-00 M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-120
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-2000 vvvvvvvvvv M,compressed
-5 April M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-88
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-254 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-80
-SELECT LENGTH(a), SUBSTRING(a,1,10), "M,compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10 1111111111 M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-104
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 30
-COLUMN_DECOMPRESSIONS 58
---------------------------------------------------data on slave-------------------------------------------------
-connection slave;
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-0 S,compressed
-1000 aaaaaaaaaa S,compressed
-2000 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-108
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-1 0 S,compressed
-10 12-12-2009 S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-120
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-6 qwerty S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-120
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-3000 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-92
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-254 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-80
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-84
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-8 00-00-00 S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-120
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-2000 vvvvvvvvvv S,compressed
-5 April S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-88
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-254 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-80
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10 1111111111 S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-104
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 0
-COLUMN_DECOMPRESSIONS 116
-connection master;
-DROP TABLE t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
-FLUSH STATUS;
------------------------------------------------------------------------------------------------------------------
----------------------------------------COMPRESSED TO NOT COMPRESSED----------------------------------------------
------------------------------------------------------------------------------------------------------------------
-connection slave;
-FLUSH STATUS;
-CREATE TABLE t1 (a BLOB) ENGINE=myisam;
-CREATE TABLE t2 (a TINYBLOB) ENGINE=myisam;
-CREATE TABLE t3 (a MEDIUMBLOB) ENGINE=myisam;
-CREATE TABLE t4 (a LONGBLOB) ENGINE=myisam;
-CREATE TABLE t5 (a TEXT) ENGINE=myisam;
-CREATE TABLE t6 (a TINYTEXT) ENGINE=myisam;
-CREATE TABLE t7 (a MEDIUMTEXT) ENGINE=myisam;
-CREATE TABLE t8 (a LONGTEXT) ENGINE=myisam;
-CREATE TABLE t9 (a VARCHAR(10000)) ENGINE=myisam;
-CREATE TABLE t10 (a VARBINARY(10000)) ENGINE=myisam;
-connection master;
-CREATE TABLE IF NOT EXISTS t1 (a BLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t2 (a TINYBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t3 (a MEDIUMBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t4 (a LONGBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t5 (a TEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t6 (a TINYTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t7 (a MEDIUMTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t8 (a LONGTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t9 (a VARCHAR(10000) COMPRESSED) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t10 (a VARBINARY(10000) COMPRESSED) ENGINE=myisam;
-INSERT INTO t1(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t2(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t3(a) VALUES(REPEAT('a',100)),(REPEAT('v',2000)),("April"),(NULL);
-INSERT INTO t4(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("00-00-00");
-INSERT INTO t5(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t6(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t7(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',3000)),(NULL);
-INSERT INTO t8(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("qwerty");
-INSERT INTO t9(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("12-12-2009");
-INSERT INTO t10(a) VALUES(REPEAT('a',1000)),(REPEAT('v',2000)),(REPEAT('r',300)),(NULL), ("");
----------------------------------------data on master-----------------------------------------------------------
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-0 M,compressed
-1000 aaaaaaaaaa M,compressed
-2000 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-108
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10 12-12-2009 M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-100
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-6 qwerty M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-120
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-3000 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-92
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-254 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-80
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-84
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-10000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-8 00-00-00 M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-120
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-2000 vvvvvvvvvv M,compressed
-5 April M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-88
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-100 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-254 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-80
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) M,compressed
-1000 aaaaaaaaaa M,compressed
-200 vvvvvvvvvv M,compressed
-300 rrrrrrrrrr M,compressed
-NULL NULL M,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-84
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 29
-COLUMN_DECOMPRESSIONS 58
----------------------------------------data on slave-------------------------------------------------------------
-connection slave;
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-0 S,not compressed
-1000 aaaaaaaaaa S,not compressed
-2000 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-3364
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-10 12-12-2009 S,not compressed
-1000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-1564
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-10000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-6 qwerty S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-10576
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-100 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-3000 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-3344
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-100 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-254 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-596
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-1000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-1544
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-10000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-8 00-00-00 S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-10576
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-100 aaaaaaaaaa S,not compressed
-2000 vvvvvvvvvv S,not compressed
-5 April S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-2156
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-100 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-254 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-596
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,not compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) S,not compressed
-1000 aaaaaaaaaa S,not compressed
-200 vvvvvvvvvv S,not compressed
-300 rrrrrrrrrr S,not compressed
-NULL NULL S,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-1544
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 0
-COLUMN_DECOMPRESSIONS 0
-connection master;
-DROP TABLE t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
-FLUSH STATUS;
------------------------------------------------------------------------------------------------------------------
------------------------------------NOT COMPRESSED to COMPRESSED--------------------------------------------------
------------------------------------------------------------------------------------------------------------------
-connection slave;
-FLUSH STATUS;
-CREATE TABLE t1 (a BLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE t2 (a TINYBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE t3 (a MEDIUMBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE t4 (a LONGBLOB COMPRESSED) ENGINE=myisam;
-CREATE TABLE t5 (a TEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t6 (a TINYTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t7 (a MEDIUMTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t8 (a LONGTEXT COMPRESSED) ENGINE=myisam;
-CREATE TABLE t9 (a VARCHAR(10000) COMPRESSED) ENGINE=myisam;
-CREATE TABLE t10 (a VARBINARY(10000) COMPRESSED) ENGINE=myisam;
-connection master;
-CREATE TABLE IF NOT EXISTS t1 (a BLOB) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t2 (a TINYBLOB) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t3 (a MEDIUMBLOB) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t4 (a LONGBLOB) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t5 (a TEXT) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t6 (a TINYTEXT) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t7 (a MEDIUMTEXT) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t8 (a LONGTEXT) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t9 (a VARCHAR(10000)) ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t10 (a VARBINARY(10000)) ENGINE=myisam;
-INSERT INTO t1(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t2(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t3(a) VALUES(REPEAT('a',100)),(REPEAT('v',2000)),("April"),(NULL);
-INSERT INTO t4(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("00-00-00");
-INSERT INTO t5(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL);
-INSERT INTO t6(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',254)),(NULL);
-INSERT INTO t7(a) VALUES(REPEAT('a',100)),(REPEAT('v',200)),(REPEAT('r',3000)),(NULL);
-INSERT INTO t8(a) VALUES(REPEAT('a',10000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("qwerty");
-INSERT INTO t9(a) VALUES(REPEAT('a',1000)),(REPEAT('v',200)),(REPEAT('r',300)),(NULL),("12-12-2009");
-INSERT INTO t10(a) VALUES(REPEAT('a',1000)),(REPEAT('v',2000)),(REPEAT('r',300)),(NULL), ("");
------------------------------------data on master---------------------------------------------------------------
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-0 M,not compressed
-1000 aaaaaaaaaa M,not compressed
-2000 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-3364
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-10 12-12-2009 M,not compressed
-1000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-1564
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-10000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-6 qwerty M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-10576
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-100 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-3000 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-3344
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-100 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-254 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-596
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-1000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-1544
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-10000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-8 00-00-00 M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-10576
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-100 aaaaaaaaaa M,not compressed
-2000 vvvvvvvvvv M,not compressed
-5 April M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-2156
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-100 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-254 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-596
-SELECT LENGTH(a),SUBSTRING(a,1,10), "M,not compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) M,not compressed
-1000 aaaaaaaaaa M,not compressed
-200 vvvvvvvvvv M,not compressed
-300 rrrrrrrrrr M,not compressed
-NULL NULL M,not compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-1544
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 0
-COLUMN_DECOMPRESSIONS 0
------------------------------------data on slave-----------------------------------------------------------------
-connection slave;
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t10;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-0 S,compressed
-1000 aaaaaaaaaa S,compressed
-2000 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t10';
-DATA_LENGTH
-108
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t9;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10 12-12-2009 S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t9';
-DATA_LENGTH
-100
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t8;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-6 qwerty S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t8';
-DATA_LENGTH
-120
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t7;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-3000 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t7';
-DATA_LENGTH
-92
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t6;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-254 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t6';
-DATA_LENGTH
-80
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t5;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t5';
-DATA_LENGTH
-84
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t4;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-10000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-8 00-00-00 S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t4';
-DATA_LENGTH
-120
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t3;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-2000 vvvvvvvvvv S,compressed
-5 April S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t3';
-DATA_LENGTH
-88
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t2;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-100 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-254 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t2';
-DATA_LENGTH
-80
-SELECT LENGTH(a), SUBSTRING(a,1,10), "S,compressed" from t1;
-LENGTH(a) SUBSTRING(a,1,10) S,compressed
-1000 aaaaaaaaaa S,compressed
-200 vvvvvvvvvv S,compressed
-300 rrrrrrrrrr S,compressed
-NULL NULL S,compressed
-SELECT DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-DATA_LENGTH
-84
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
-VARIABLE_NAME VARIABLE_VALUE
-COLUMN_COMPRESSIONS 0
-COLUMN_DECOMPRESSIONS 58
-connection master;
-DROP TABLE t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
------------------------------------------------------------------------------------------------------------------
-------varchar(1000)->varchar(999) compressed, varchar(1000) compressed->varchar(999) ----------------------------
------------------------------------------------------------------------------------------------------------------
-connection slave;
-CREATE TABLE t1 (a VARCHAR(999) COMPRESSED) ENGINE=myisam;
-CREATE TABLE t2 (a VARCHAR(999)) ENGINE=myisam;
-show warnings;
-Level Code Message
-call mtr.add_suppression("Slave: Data too long for column 'a' at row 1 Error_code: 1406");
-call mtr.add_suppression("Slave: Table 't2' already exists Error_code: 1050");
-connection master;
-CREATE TABLE IF NOT EXISTS t1 (a VARCHAR(1000))ENGINE=myisam;
-CREATE TABLE IF NOT EXISTS t2 (a VARCHAR(1000) COMPRESSED)ENGINE=myisam;
-INSERT INTO t1(a) VALUES(REPEAT('a',1000));
-connection slave;
-include/wait_for_slave_sql_error_and_skip.inc [errno=1406,1677]
-show warnings;
-Level Code Message
-connection master;
-INSERT INTO t2(a) VALUES(REPEAT('a',1000));
-connection slave;
-include/wait_for_slave_sql_error_and_skip.inc [errno=1406,1677]
-show warnings;
-Level Code Message
-SET GLOBAL SLAVE_TYPE_CONVERSIONS = @saved_slave_type_conversions;
-connection master;
-DROP TABLE t1,t2;
-connection slave;
-include/rpl_end.inc
diff --git a/mysql-test/r/comment_column.result b/mysql-test/r/comment_column.result
deleted file mode 100644
index a270b30573f..00000000000
--- a/mysql-test/r/comment_column.result
+++ /dev/null
@@ -1,415 +0,0 @@
-DROP TABLE IF EXISTS t1;
-create table t1 (c1 VARCHAR(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd', c2 INTEGER COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',c3 INTEGER COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789', c4 INTEGER, c5 INTEGER, c6 INTEGER, c7 INTEGER, INDEX i1 (c1) COMMENT 'i1 comment',INDEX i2(c2)
-) COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- i1 comment 10
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- KEY `i1` (`c1`) COMMENT 'i1 comment',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-ALTER TABLE t1 ADD COLUMN c8 INTEGER COMMENT 'ABCdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
-ABCdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- i1 comment 10
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` int(11) DEFAULT NULL COMMENT 'ABCdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i1` (`c1`) COMMENT 'i1 comment',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-ALTER TABLE t1 ADD COLUMN c9 INTEGER COMMENT 'ABCDefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
-ABCdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-ABCDefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- i1 comment 10
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` int(11) DEFAULT NULL COMMENT 'ABCdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c9` int(11) DEFAULT NULL COMMENT 'ABCDefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i1` (`c1`) COMMENT 'i1 comment',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-ALTER TABLE t1 ADD COLUMN c10 INTEGER COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
-ABCdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-ABCDefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- i1 comment 10
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` int(11) DEFAULT NULL COMMENT 'ABCdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c9` int(11) DEFAULT NULL COMMENT 'ABCDefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c10` int(11) DEFAULT NULL COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i1` (`c1`) COMMENT 'i1 comment',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-ALTER TABLE t1 MODIFY COLUMN c8 CHAR(10);
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
-ABCDefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- i1 comment 10
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` char(10) DEFAULT NULL,
- `c9` int(11) DEFAULT NULL COMMENT 'ABCDefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c10` int(11) DEFAULT NULL COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i1` (`c1`) COMMENT 'i1 comment',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-ALTER TABLE t1 CHANGE COLUMN c9 c9_1 INTEGER COMMENT '1234567890';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
-1234567890 10
-ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- i1 comment 10
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` char(10) DEFAULT NULL,
- `c9_1` int(11) DEFAULT NULL COMMENT '1234567890',
- `c10` int(11) DEFAULT NULL COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i1` (`c1`) COMMENT 'i1 comment',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-ALTER TABLE t1 DROP COLUMN c1;
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
-1234567890 10
-ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` char(10) DEFAULT NULL,
- `c9_1` int(11) DEFAULT NULL COMMENT '1234567890',
- `c10` int(11) DEFAULT NULL COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 ADD COLUMN c11 INTEGER COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-Warnings:
-Warning 1629 Comment for field 'c11' is too long (max = 1024)
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
-1234567890 10
-ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` char(10) DEFAULT NULL,
- `c9_1` int(11) DEFAULT NULL COMMENT '1234567890',
- `c10` int(11) DEFAULT NULL COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c11` int(11) DEFAULT NULL COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-set sql_mode='TRADITIONAL';
-ALTER TABLE t1 ADD COLUMN c12 INTEGER COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-ERROR HY000: Comment for field 'c12' is too long (max = 1024)
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
-1234567890 10
-ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` char(10) DEFAULT NULL,
- `c9_1` int(11) DEFAULT NULL COMMENT '1234567890',
- `c10` int(11) DEFAULT NULL COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c11` int(11) DEFAULT NULL COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-set sql_mode='';
-ALTER TABLE t1 ADD COLUMN c12 CHAR(100) COMMENT 'ABCDefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
-1234567890 10
-ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-ABCDefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` char(10) DEFAULT NULL,
- `c9_1` int(11) DEFAULT NULL COMMENT '1234567890',
- `c10` int(11) DEFAULT NULL COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c11` int(11) DEFAULT NULL COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c12` char(100) DEFAULT NULL COMMENT 'ABCDefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-drop table t1;
-create table t1 (c1 VARCHAR(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd', c2 INTEGER COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdaBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',c3 INTEGER COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789', c4 INTEGER, c5 INTEGER, c6 INTEGER, c7 INTEGER, INDEX i1 (c1) COMMENT 'i1 comment',INDEX i2(c2)
-) COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-Warnings:
-Warning 1629 Comment for field 'c2' is too long (max = 1024)
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- i1 comment 10
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- KEY `i1` (`c1`) COMMENT 'i1 comment',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-DROP TABLE t1;
-set sql_mode='TRADITIONAL';
-create table t1 (c1 VARCHAR(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd', c2 INTEGER COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdaBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',c3 INTEGER COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789', c4 INTEGER, c5 INTEGER, c6 INTEGER, c7 INTEGER, INDEX i1 (c1) COMMENT 'i1 comment',INDEX i2(c2)
-) COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-ERROR HY000: Comment for field 'c2' is too long (max = 1024)
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
-SET sql_mode='';
-CREATE TABLE t1_toupg (c1 INT, c2 VARCHAR(10) COMMENT
-'01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234')
-COMMENT='abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcde';
-Warnings:
-Warning 1629 Comment for field 'c2' is too long (max = 1024)
-ALTER TABLE t1_toupg COMMENT='012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012301234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234';
-Warnings:
-Warning 1628 Comment for table 't1_toupg' is too long (max = 2048)
-ALTER TABLE t1_toupg ADD c3 TIMESTAMP COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcde';
-Warnings:
-Warning 1629 Comment for field 'c3' is too long (max = 1024)
-ALTER TABLE t1_toupg ADD INDEX i1(c1) COMMENT '01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234';
-Warnings:
-Warning 1688 Comment for index 'i1' is too long (max = 1024)
-CREATE INDEX i2 ON t1_toupg(c2) COMMENT '01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234';
-Warnings:
-Warning 1688 Comment for index 'i2' is too long (max = 1024)
-ALTER TABLE t1_toupg drop column c1, drop column c2, drop column c3, add column c4 int, COMMENT='012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012301234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234';
-Warnings:
-Warning 1628 Comment for table 't1_toupg' is too long (max = 2048)
-drop table t1_toupg;
diff --git a/mysql-test/r/comment_column2.result b/mysql-test/r/comment_column2.result
deleted file mode 100644
index 99402e7f5b4..00000000000
--- a/mysql-test/r/comment_column2.result
+++ /dev/null
@@ -1,397 +0,0 @@
-DROP TABLE IF EXISTS t1;
-create table t1 (
-c1 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c2 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c3 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c4 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c5 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c6 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c7 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c8 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c9 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c10 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c11 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c12 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c13 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c14 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c15 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c16 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c17 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c18 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c19 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c20 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c21 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c22 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c23 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c24 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c25 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c26 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c27 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c28 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c29 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c30 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c31 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c32 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c33 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c34 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c35 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c36 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c37 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c38 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c39 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c40 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c41 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c42 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c43 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c44 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c45 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c46 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c47 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c48 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c49 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c50 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij');
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
- 0
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
-ALTER TABLE t1 ADD COLUMN c51 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',ADD COLUMN c52 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
- 0
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
-ALTER TABLE t1 ADD COLUMN c53 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij';
-ALTER TABLE t1 ADD COLUMN c54 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij';
-ALTER TABLE t1 ADD COLUMN c55 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij';
-ALTER TABLE t1 ADD COLUMN c56 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij';
-ALTER TABLE t1 ADD COLUMN c57 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij';
-ALTER TABLE t1 ADD COLUMN c58 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij';
-ALTER TABLE t1 ADD COLUMN c59 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij';
-ALTER TABLE t1 ADD COLUMN c60 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij';
-ALTER TABLE t1 ADD COLUMN c61 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij';
-ALTER TABLE t1 ADD COLUMN c62 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij';
-ALTER TABLE t1 ADD COLUMN c63 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
- 0
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
-ALTER TABLE t1 ADD COLUMN c64 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij';
-ERROR HY000: Table definition is too large
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
- 0
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij 1000
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
-drop table t1;
-create table t1 (
-c1 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c2 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c3 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c4 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c5 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c6 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c7 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c8 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c9 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c10 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c11 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c12 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c13 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c14 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c15 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c16 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c17 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c18 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c19 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c20 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c21 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c22 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c23 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c24 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c25 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c26 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c27 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c28 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c29 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c30 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c31 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c32 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c33 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c34 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c35 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c36 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c37 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c38 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c39 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c40 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c41 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c42 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c43 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c44 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c45 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c46 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c47 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c48 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c49 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c50 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c51 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c52 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c53 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c54 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c55 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c56 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c57 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c58 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c59 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c60 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c61 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c62 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c63 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c64 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij',
-c65 INTEGER COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij')
-;
-ERROR HY000: Table definition is too large
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
diff --git a/mysql-test/r/comment_index.result b/mysql-test/r/comment_index.result
deleted file mode 100644
index 82412871377..00000000000
--- a/mysql-test/r/comment_index.result
+++ /dev/null
@@ -1,484 +0,0 @@
-DROP TABLE IF EXISTS t1;
-create table t1 (c1 VARCHAR(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd', c2 INTEGER COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',c3 INTEGER COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789', c4 INTEGER, c5 INTEGER, c6 INTEGER, c7 INTEGER, c8 VARCHAR(100), c9 CHAR(50), c10 DATETIME, c11 DATETIME, c12 DATETIME,c13 DATETIME, INDEX i1 (c1) COMMENT 'i1 comment',INDEX i2(c2)
-) COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- i1 comment 10
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` varchar(100) DEFAULT NULL,
- `c9` char(50) DEFAULT NULL,
- `c10` datetime DEFAULT NULL,
- `c11` datetime DEFAULT NULL,
- `c12` datetime DEFAULT NULL,
- `c13` datetime DEFAULT NULL,
- KEY `i1` (`c1`) COMMENT 'i1 comment',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-CREATE INDEX i4 ON t1(c4) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- i1 comment 10
- 0
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` varchar(100) DEFAULT NULL,
- `c9` char(50) DEFAULT NULL,
- `c10` datetime DEFAULT NULL,
- `c11` datetime DEFAULT NULL,
- `c12` datetime DEFAULT NULL,
- `c13` datetime DEFAULT NULL,
- KEY `i1` (`c1`) COMMENT 'i1 comment',
- KEY `i2` (`c2`),
- KEY `i4` (`c4`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-ALTER TABLE t1 ADD INDEX (c6) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- i1 comment 10
- 0
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` varchar(100) DEFAULT NULL,
- `c9` char(50) DEFAULT NULL,
- `c10` datetime DEFAULT NULL,
- `c11` datetime DEFAULT NULL,
- `c12` datetime DEFAULT NULL,
- `c13` datetime DEFAULT NULL,
- KEY `i1` (`c1`) COMMENT 'i1 comment',
- KEY `i2` (`c2`),
- KEY `i4` (`c4`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `c6` (`c6`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-DROP INDEX i1 ON t1;
-ALTER TABLE t1 DROP INDEX i2, DROP INDEX i4;
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` varchar(100) DEFAULT NULL,
- `c9` char(50) DEFAULT NULL,
- `c10` datetime DEFAULT NULL,
- `c11` datetime DEFAULT NULL,
- `c12` datetime DEFAULT NULL,
- `c13` datetime DEFAULT NULL,
- KEY `c6` (`c6`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-ALTER TABLE t1 ADD INDEX i8(c8) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd', ADD INDEX i10(c10) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` varchar(100) DEFAULT NULL,
- `c9` char(50) DEFAULT NULL,
- `c10` datetime DEFAULT NULL,
- `c11` datetime DEFAULT NULL,
- `c12` datetime DEFAULT NULL,
- `c13` datetime DEFAULT NULL,
- KEY `c6` (`c6`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i8` (`c8`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i10` (`c10`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-CREATE INDEX i1_3 ON t1(c1,c2,c3) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` varchar(100) DEFAULT NULL,
- `c9` char(50) DEFAULT NULL,
- `c10` datetime DEFAULT NULL,
- `c11` datetime DEFAULT NULL,
- `c12` datetime DEFAULT NULL,
- `c13` datetime DEFAULT NULL,
- KEY `c6` (`c6`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i8` (`c8`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i10` (`c10`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i1_3` (`c1`,`c2`,`c3`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE INDEX i11 ON t1(c11) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-Warnings:
-Warning 1688 Comment for index 'i11' is too long (max = 1024)
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` varchar(100) DEFAULT NULL,
- `c9` char(50) DEFAULT NULL,
- `c10` datetime DEFAULT NULL,
- `c11` datetime DEFAULT NULL,
- `c12` datetime DEFAULT NULL,
- `c13` datetime DEFAULT NULL,
- KEY `c6` (`c6`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i8` (`c8`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i10` (`c10`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i1_3` (`c1`,`c2`,`c3`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i11` (`c11`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 ADD INDEX (c13) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-Warnings:
-Warning 1688 Comment for index 'c13' is too long (max = 1024)
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` varchar(100) DEFAULT NULL,
- `c9` char(50) DEFAULT NULL,
- `c10` datetime DEFAULT NULL,
- `c11` datetime DEFAULT NULL,
- `c12` datetime DEFAULT NULL,
- `c13` datetime DEFAULT NULL,
- KEY `c6` (`c6`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i8` (`c8`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i10` (`c10`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i1_3` (`c1`,`c2`,`c3`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i11` (`c11`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `c13` (`c13`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-set sql_mode='TRADITIONAL';
-ALTER TABLE t1 ADD INDEX i12 (c12) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-ERROR HY000: Comment for index 'i12' is too long (max = 1024)
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` varchar(100) DEFAULT NULL,
- `c9` char(50) DEFAULT NULL,
- `c10` datetime DEFAULT NULL,
- `c11` datetime DEFAULT NULL,
- `c12` datetime DEFAULT NULL,
- `c13` datetime DEFAULT NULL,
- KEY `c6` (`c6`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i8` (`c8`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i10` (`c10`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i1_3` (`c1`,`c2`,`c3`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i11` (`c11`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `c13` (`c13`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-set sql_mode='TRADITIONAL';
-CREATE INDEX i12 ON t1(c12) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-ERROR HY000: Comment for index 'i12' is too long (max = 1024)
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-SELECT comment,index_comment,char_length(index_comment) FROM information_schema.statistics WHERE table_name='t1';
-comment index_comment char_length(index_comment)
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
- abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c2` int(11) DEFAULT NULL COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` varchar(100) DEFAULT NULL,
- `c9` char(50) DEFAULT NULL,
- `c10` datetime DEFAULT NULL,
- `c11` datetime DEFAULT NULL,
- `c12` datetime DEFAULT NULL,
- `c13` datetime DEFAULT NULL,
- KEY `c6` (`c6`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i8` (`c8`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i10` (`c10`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i1_3` (`c1`,`c2`,`c3`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `i11` (`c11`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',
- KEY `c13` (`c13`) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-drop table t1;
diff --git a/mysql-test/r/comment_table.result b/mysql-test/r/comment_table.result
deleted file mode 100644
index 99ecb04a362..00000000000
--- a/mysql-test/r/comment_table.result
+++ /dev/null
@@ -1,127 +0,0 @@
-DROP TABLE IF EXISTS t1;
-create table t1 (c1 VARCHAR(10) NOT NULL COMMENT 'c1 comment', c2 INTEGER,c3 INTEGER COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789', c4 INTEGER, c5 INTEGER, c6 INTEGER, c7 INTEGER, INDEX i1 (c1) COMMENT 'i1 comment',INDEX i2(c2)
-) COMMENT='abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 1024
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-c1 comment 10
- 0
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'c1 comment',
- `c2` int(11) DEFAULT NULL,
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- KEY `i1` (`c1`) COMMENT 'i1 comment',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-drop table t1;
-create table t1 (c1 VARCHAR(10) NOT NULL COMMENT 'c1 comment', c2 INTEGER,c3 INTEGER COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789', c4 INTEGER, c5 INTEGER, c6 INTEGER, c7 INTEGER, INDEX i1 (c1) COMMENT 'i1 comment',INDEX i2(c2)
-) COMMENT='abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcde';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcde 1025
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-c1 comment 10
- 0
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'c1 comment',
- `c2` int(11) DEFAULT NULL,
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- KEY `i1` (`c1`) COMMENT 'i1 comment',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcde'
-drop table t1;
-set sql_mode='TRADITIONAL';
-create table t1 (c1 VARCHAR(10) NOT NULL COMMENT 'c1 comment', c2 INTEGER,c3 INTEGER COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789', c4 INTEGER, c5 INTEGER, c6 INTEGER, c7 INTEGER, INDEX i1 (c1) COMMENT 'i1 comment',INDEX i2(c2)
-) COMMENT='abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcde';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcde 1025
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-c1 comment 10
- 0
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
-drop table t1;
-create table t1 (c1 VARCHAR(10) NOT NULL COMMENT 'c1 comment', c2 INTEGER,c3 INTEGER COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789', c4 INTEGER, c5 INTEGER, c6 INTEGER, c7 INTEGER, INDEX i1 (c1) COMMENT 'i1 comment',INDEX i2(c2)
-) COMMENT='abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 2048
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-c1 comment 10
- 0
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) NOT NULL COMMENT 'c1 comment',
- `c2` int(11) DEFAULT NULL,
- `c3` int(11) DEFAULT NULL COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- KEY `i1` (`c1`) COMMENT 'i1 comment',
- KEY `i2` (`c2`)
-) ENGINE=ENGINE DEFAULT CHARSET=latin1 COMMENT='abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd'
-drop table t1;
-SET SQL_MODE='';
-create table t1 (c1 VARCHAR(10) NOT NULL COMMENT 'c1 comment', c2 INTEGER,c3 INTEGER COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789', c4 INTEGER, c5 INTEGER, c6 INTEGER, c7 INTEGER, INDEX i1 (c1) COMMENT 'i1 comment',INDEX i2(c2)
-) COMMENT='abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcde';
-Warnings:
-Warning 1628 Comment for table 't1' is too long (max = 2048)
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 2048
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
-c1 comment 10
- 0
-012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 300
- 0
- 0
- 0
- 0
-drop table t1;
-SET SQL_MODE='TRADITIONAL';
-create table t1 (c1 VARCHAR(10) NOT NULL COMMENT 'c1 comment', c2 INTEGER,c3 INTEGER COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789', c4 INTEGER, c5 INTEGER, c6 INTEGER, c7 INTEGER, INDEX i1 (c1) COMMENT 'i1 comment',INDEX i2(c2)
-) COMMENT='abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcde';
-ERROR HY000: Comment for table 't1' is too long (max = 2048)
-SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
-table_comment char_length(table_comment)
-SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
-column_comment char_length(column_comment)
diff --git a/mysql-test/r/comments.result b/mysql-test/r/comments.result
deleted file mode 100644
index c13eb510326..00000000000
--- a/mysql-test/r/comments.result
+++ /dev/null
@@ -1,116 +0,0 @@
-select 1+2/*hello*/+3;
-1+2/*hello*/+3
-6
-select 1 /* long
-multi line comment */;
-1
-1
-;
-ERROR 42000: Query was empty
-select 1 /*!32301 +1 */;
-1 +1
-2
-select 1 /*!952301 +1 */;
-1
-1
-select 1--1;
-1--1
-2
-select 1 --2
-+1;
-1 --2
-+1
-4
-select 1 # The rest of the row will be ignored
-;
-1
-1
-/* line with only comment */;
-select 1 /*M! +1 */;
-1 +1
-2
-select 1 /*M!50000 +1 */;
-1 +1
-2
-select 1 /*M!50300 +1 */;
-1 +1
-2
-select 2 /*M!99999 +1 */;
-2 +1
-3
-select 2 /*M!100000 +1 */;
-2 +1
-3
-select 2 /*M!999999 +1 */;
-2
-2
-select 2 /*M!0000 +1 */;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '0000 +1 */' at line 1
-#
-# Testing that MySQL versions >= 5.7.x and < 10.0.0 are ignored (MDEV-5009)
-#
-SELECT 1 /*!50699 +1*/;
-1 +1
-2
-SELECT 1 /*!50700 +1*/;
-1
-1
-SELECT 1 /*!50999 +1*/;
-1
-1
-SELECT 1 /*!99999 +1*/;
-1
-1
-SELECT 1 /*!100000 +1*/;
-1 +1
-2
-SELECT 1 /*!110000 +1*/;
-1
-1
-#
-# Tesing that versions >= 5.7.x and < 10.0.0 are not ignored
-# when used with the MariaDB executable comment syntax.
-#
-SELECT 1 /*M!50699 +1*/;
-1 +1
-2
-SELECT 1 /*M!50700 +1*/;
-1 +1
-2
-SELECT 1 /*M!50999 +1*/;
-1 +1
-2
-SELECT 1 /*M!99999 +1*/;
-1 +1
-2
-SELECT 1 /*M!100000 +1*/;
-1 +1
-2
-SELECT 1 /*M!110000 +1*/;
-1
-1
-select 1/*!2*/;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '2*/' at line 1
-select 1/*!0000002*/;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '2*/' at line 1
-select 1/*!999992*/;
-1
-1
-select 1 + /*!00000 2 */ + 3 /*!999999 noise*/ + 4;
-1 + 2 + 3 + 4
-10
-drop table if exists table_28779;
-create table table_28779 (a int);
-prepare bar from "DELETE FROM table_28779 WHERE a = 7 OR 1=1/*' AND b = 'bar';";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '/*' AND b = 'bar'' at line 1
-prepare bar from "DELETE FROM table_28779 WHERE a = 7 OR 1=1/*' AND b = 'bar';*";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '/*' AND b = 'bar';*' at line 1
-prepare bar from "DELETE FROM table_28779 WHERE a = 7 OR 1=1/*! AND 2=2;";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-prepare bar from "DELETE FROM table_28779 WHERE a = 7 OR 1=1/*! AND 2=2;*";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '*' at line 1
-prepare bar from "DELETE FROM table_28779 WHERE a = 7 OR 1=1/*!998765' AND b = 'bar';";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '/*!998765' AND b = 'bar'' at line 1
-prepare bar from "DELETE FROM table_28779 WHERE a = 7 OR 1=1/*!998765' AND b = 'bar';*";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '/*!998765' AND b = 'bar';*' at line 1
-drop table table_28779;
diff --git a/mysql-test/r/commit.result b/mysql-test/r/commit.result
deleted file mode 100644
index f2e012d4782..00000000000
--- a/mysql-test/r/commit.result
+++ /dev/null
@@ -1,578 +0,0 @@
-connect con1,localhost,root,,;
-#
-# Bug#20837 Apparent change of isolation level
-# during transaction
-#
-# Bug#53343 completion_type=1, COMMIT/ROLLBACK
-# AND CHAIN don't preserve the isolation
-# level
-connection default;
-SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;
-CREATE TABLE t1 (s1 INT) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1),(2);
-COMMIT;
-START TRANSACTION;
-SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
-ERROR 25001: Transaction characteristics can't be changed while a transaction is in progress
-COMMIT;
-SET @@autocommit=0;
-COMMIT;
-SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
-START TRANSACTION;
-SELECT @@tx_isolation;
-@@tx_isolation
-REPEATABLE-READ
-Should be REPEATABLE READ
-SELECT * FROM t1;
-s1
-1
-2
-SELECT @@tx_isolation;
-@@tx_isolation
-REPEATABLE-READ
-Should be REPEATABLE READ
-INSERT INTO t1 VALUES (-1);
-SELECT @@tx_isolation;
-@@tx_isolation
-REPEATABLE-READ
-Should be REPEATABLE READ
-COMMIT;
-START TRANSACTION;
-SELECT * FROM t1;
-s1
-1
-2
--1
-SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
-connection con1;
-START TRANSACTION;
-INSERT INTO t1 VALUES (1000);
-COMMIT;
-connection default;
-We should not be able to read the '1000'
-SELECT * FROM t1;
-s1
-1
-2
--1
-COMMIT;
-Now, the '1000' should appear.
-START TRANSACTION;
-SELECT * FROM t1;
-s1
-1
-2
--1
-1000
-COMMIT;
-SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;
-connection default;
-SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
-START TRANSACTION;
-connection con1;
-START TRANSACTION;
-INSERT INTO t1 VALUES (1001);
-COMMIT;
-connection default;
-SELECT COUNT(*) FROM t1 WHERE s1 = 1001;
-COUNT(*)
-1
-Should be 1
-COMMIT AND CHAIN;
-connection con1;
-INSERT INTO t1 VALUES (1002);
-COMMIT;
-connection default;
-SELECT COUNT(*) FROM t1 WHERE s1 = 1002;
-COUNT(*)
-1
-Should be 1
-COMMIT;
-SELECT * FROM t1;
-s1
-1
-2
--1
-1000
-1001
-1002
-DELETE FROM t1 WHERE s1 >= 1000;
-COMMIT;
-connection default;
-SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
-START TRANSACTION;
-connection con1;
-START TRANSACTION;
-INSERT INTO t1 VALUES (1001);
-COMMIT;
-connection default;
-SELECT COUNT(*) FROM t1 WHERE s1 = 1001;
-COUNT(*)
-1
-Should be 1
-ROLLBACK AND CHAIN;
-connection con1;
-INSERT INTO t1 VALUES (1002);
-COMMIT;
-connection default;
-SELECT COUNT(*) FROM t1 WHERE s1 = 1002;
-COUNT(*)
-1
-Should be 1
-COMMIT;
-SELECT * FROM t1;
-s1
-1
-2
--1
-1001
-1002
-DELETE FROM t1 WHERE s1 >= 1000;
-COMMIT;
-SET @@completion_type=1;
-connection default;
-SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
-START TRANSACTION;
-connection con1;
-START TRANSACTION;
-INSERT INTO t1 VALUES (1001);
-COMMIT;
-connection default;
-SELECT * FROM t1 WHERE s1 >= 1000;
-s1
-1001
-Should see 1001
-COMMIT AND NO CHAIN;
-default transaction is now in REPEATABLE READ
-connection con1;
-INSERT INTO t1 VALUES (1002);
-COMMIT;
-connection default;
-SELECT * FROM t1 WHERE s1 >= 1000;
-s1
-1001
-1002
-Should see 1001 and 1002
-connection con1;
-INSERT INTO t1 VALUES (1003);
-COMMIT;
-connection default;
-SELECT * FROM t1 WHERE s1 >= 1000;
-s1
-1001
-1002
-Should see 1001 and 1002, but NOT 1003
-COMMIT;
-SELECT * FROM t1;
-s1
-1
-2
--1
-1001
-1002
-1003
-DELETE FROM t1 WHERE s1 >= 1000;
-COMMIT AND NO CHAIN;
-SET @@completion_type=0;
-COMMIT;
-connection default;
-SET @@completion_type=1;
-COMMIT AND NO CHAIN;
-SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
-START TRANSACTION;
-connection con1;
-START TRANSACTION;
-INSERT INTO t1 VALUES (1001);
-COMMIT;
-connection default;
-SELECT * FROM t1 WHERE s1 >= 1000;
-s1
-1001
-Should see 1001
-ROLLBACK AND NO CHAIN;
-default transaction is now in REPEATABLE READ
-connection con1;
-INSERT INTO t1 VALUES (1002);
-COMMIT;
-connection default;
-SELECT * FROM t1 WHERE s1 >= 1000;
-s1
-1001
-1002
-Should see 1001 and 1002
-connection con1;
-INSERT INTO t1 VALUES (1003);
-COMMIT;
-connection default;
-SELECT * FROM t1 WHERE s1 >= 1000;
-s1
-1001
-1002
-Should see 1001 and 1002, but NOT 1003
-COMMIT;
-SELECT * FROM t1;
-s1
-1
-2
--1
-1001
-1002
-1003
-DELETE FROM t1 WHERE s1 >= 1000;
-COMMIT AND NO CHAIN;
-SET @@completion_type=0;
-COMMIT;
-connection default;
-SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
-SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;
-START TRANSACTION;
-SELECT * FROM t1;
-s1
-1
-2
--1
-connection con1;
-INSERT INTO t1 VALUES (1000);
-COMMIT;
-connection default;
-SELECT * FROM t1;
-s1
-1
-2
--1
-Should get same result as above (i.e should not read '1000')
-COMMIT;
-DELETE FROM t1 WHERE s1 >= 1000;
-COMMIT;
-SET @@completion_type=1;
-COMMIT AND NO CHAIN;
-SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
-START TRANSACTION;
-TRUNCATE TABLE t1;
-INSERT INTO t1 VALUES (1000);
-SELECT * FROM t1;
-s1
-1000
-Should read '1000'
-connection con1;
-INSERT INTO t1 VALUES (1001);
-COMMIT;
-connection default;
-SELECT * FROM t1;
-s1
-1000
-Should only read the '1000' as this transaction is now in REP READ
-COMMIT AND NO CHAIN;
-SET @@completion_type=0;
-COMMIT AND NO CHAIN;
-SET @@autocommit=1;
-COMMIT;
-disconnect con1;
-DROP TABLE t1;
-#
-# End of test cases for Bug#20837
-#
-#
-# WL#5968 Implement START TRANSACTION READ (WRITE|ONLY);
-#
-#
-# Test 1: Check supported syntax
-START TRANSACTION;
-COMMIT;
-START TRANSACTION READ ONLY;
-COMMIT;
-START TRANSACTION READ WRITE;
-COMMIT;
-START TRANSACTION READ ONLY, READ WRITE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-START TRANSACTION READ ONLY, WITH CONSISTENT SNAPSHOT;
-COMMIT;
-START TRANSACTION READ WRITE, WITH CONSISTENT SNAPSHOT;
-COMMIT;
-START TRANSACTION WITH CONSISTENT SNAPSHOT, READ ONLY;
-COMMIT;
-START TRANSACTION WITH CONSISTENT SNAPSHOT, READ WRITE;
-COMMIT;
-START TRANSACTION READ ONLY, WITH CONSISTENT SNAPSHOT, READ WRITE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-SET TRANSACTION READ ONLY;
-SET TRANSACTION READ WRITE;
-SET TRANSACTION ISOLATION LEVEL SERIALIZABLE, READ ONLY;
-SET TRANSACTION ISOLATION LEVEL SERIALIZABLE, READ WRITE;
-SET TRANSACTION READ ONLY, ISOLATION LEVEL READ COMMITTED;
-SET TRANSACTION READ WRITE, ISOLATION LEVEL READ COMMITTED;
-SET TRANSACTION READ ONLY, READ WRITE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'READ WRITE' at line 1
-COMMIT;
-#
-# Test 2: Check setting of variable.
-SET SESSION TRANSACTION READ WRITE;
-SELECT @@tx_read_only;
-@@tx_read_only
-0
-SET SESSION TRANSACTION READ ONLY;
-SELECT @@tx_read_only;
-@@tx_read_only
-1
-SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ, READ WRITE;
-SELECT @@tx_read_only;
-@@tx_read_only
-0
-SET SESSION TRANSACTION READ ONLY, ISOLATION LEVEL REPEATABLE READ;
-SELECT @@tx_read_only;
-@@tx_read_only
-1
-START TRANSACTION;
-# Not allowed inside a transaction
-SET TRANSACTION READ ONLY;
-ERROR 25001: Transaction characteristics can't be changed while a transaction is in progress
-# But these are allowed.
-SET SESSION TRANSACTION READ ONLY;
-SET GLOBAL TRANSACTION READ ONLY;
-COMMIT;
-SET SESSION TRANSACTION READ WRITE;
-SET GLOBAL TRANSACTION READ WRITE;
-#
-# Test 3: Test that write operations are properly blocked.
-CREATE TABLE t1(a INT);
-CREATE TEMPORARY TABLE temp_t2(a INT);
-SET SESSION TRANSACTION READ ONLY;
-# 1: DDL should be blocked, also on temporary tables.
-CREATE TABLE t3(a INT);
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-ALTER TABLE t1 COMMENT "Test";
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-DROP TABLE t1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-CREATE TEMPORARY TABLE temp_t3(a INT);
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-ALTER TABLE temp_t2 COMMENT "Test";
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-DROP TEMPORARY TABLE temp_t2;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-CREATE FUNCTION f1() RETURNS INT RETURN 1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-DROP FUNCTION f1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-CREATE PROCEDURE p1() BEGIN END;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-DROP PROCEDURE p1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-CREATE VIEW v1 AS SELECT 1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-SET SESSION TRANSACTION READ WRITE;
-CREATE VIEW v1 AS SELECT 1;
-SET SESSION TRANSACTION READ ONLY;
-DROP VIEW v1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-SET SESSION TRANSACTION READ WRITE;
-DROP VIEW v1;
-SET SESSION TRANSACTION READ ONLY;
-RENAME TABLE t1 TO t2;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-RENAME TABLE temp_t2 TO temp_t3;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-TRUNCATE TABLE t1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-CREATE DATABASE db1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-DROP DATABASE db1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-SET SESSION TRANSACTION READ WRITE;
-# 2: DML should be blocked on non-temporary tables.
-START TRANSACTION READ ONLY;
-INSERT INTO t1 VALUES (1), (2);
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-UPDATE t1 SET a= 3;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-DELETE FROM t1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-# 3: DML should be allowed on temporary tables.
-INSERT INTO temp_t2 VALUES (1), (2);
-UPDATE temp_t2 SET a= 3;
-DELETE FROM temp_t2;
-# 4: Queries should not be blocked.
-SELECT * FROM t1;
-a
-SELECT * FROM temp_t2;
-a
-HANDLER t1 OPEN;
-HANDLER t1 READ FIRST;
-a
-HANDLER t1 CLOSE;
-HANDLER temp_t2 OPEN;
-HANDLER temp_t2 READ FIRST;
-a
-HANDLER temp_t2 CLOSE;
-# 5: Prepared statements
-PREPARE stmt FROM "DELETE FROM t1";
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-PREPARE stmt FROM "DELETE FROM temp_t2";
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-COMMIT;
-# 6: Stored routines
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-DELETE FROM t1;
-RETURN 1;
-END|
-CREATE FUNCTION f2() RETURNS INT
-BEGIN
-DELETE FROM temp_t2;
-RETURN 1;
-END|
-CREATE PROCEDURE p1() DELETE FROM t1;
-CREATE PROCEDURE p2() DELETE FROM temp_t2;
-START TRANSACTION READ ONLY;
-SELECT f1();
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-SELECT f2();
-f2()
-1
-CALL p1();
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-CALL p2();
-COMMIT;
-DROP FUNCTION f1;
-DROP FUNCTION f2;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-# 7: Views
-CREATE VIEW v1 AS SELECT a FROM t1;
-START TRANSACTION READ ONLY;
-INSERT INTO v1 VALUES (1), (2);
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-SELECT * FROM v1;
-a
-COMMIT;
-DROP VIEW v1;
-# 8: LOCK TABLE
-SET SESSION TRANSACTION READ ONLY;
-LOCK TABLE t1 WRITE;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-LOCK TABLE t1 READ;
-UNLOCK TABLES;
-SET SESSION TRANSACTION READ WRITE;
-DROP TABLE temp_t2, t1;
-#
-# Test 4: SET TRANSACTION, CHAINing transactions
-CREATE TABLE t1(a INT);
-SET SESSION TRANSACTION READ ONLY;
-START TRANSACTION;
-DELETE FROM t1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-COMMIT;
-START TRANSACTION READ WRITE;
-DELETE FROM t1;
-COMMIT;
-SET SESSION TRANSACTION READ WRITE;
-SET TRANSACTION READ ONLY;
-START TRANSACTION;
-DELETE FROM t1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-COMMIT;
-START TRANSACTION READ WRITE;
-DELETE FROM t1;
-COMMIT;
-START TRANSACTION READ ONLY;
-SELECT * FROM t1;
-a
-COMMIT AND CHAIN;
-DELETE FROM t1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-COMMIT;
-START TRANSACTION READ ONLY;
-SELECT * FROM t1;
-a
-ROLLBACK AND CHAIN;
-DELETE FROM t1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-COMMIT;
-DROP TABLE t1;
-#
-# Test 5: Test that reserved keyword ONLY is still allowed as
-# identifier - both directly and in SPs.
-SET @only= 1;
-CREATE TABLE t1 (only INT);
-INSERT INTO t1 (only) values (1);
-SELECT only FROM t1 WHERE only = 1;
-only
-1
-DROP TABLE t1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE only INT DEFAULT 1;
-END|
-CALL p1();
-DROP PROCEDURE p1;
-#
-# Test 6: Check that XA transactions obey default access mode.
-CREATE TABLE t1(a INT);
-SET TRANSACTION READ ONLY;
-XA START 'test1';
-INSERT INTO t1 VALUES (1);
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-UPDATE t1 SET a=2;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-DELETE FROM t1;
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-XA END 'test1';
-XA PREPARE 'test1';
-XA COMMIT 'test1';
-DROP TABLE t1;
-#
-# Test 7: SET TRANSACTION inside stored routines
-CREATE PROCEDURE p1() SET SESSION TRANSACTION READ ONLY;
-CALL p1();
-SELECT @@tx_read_only;
-@@tx_read_only
-1
-SET SESSION TRANSACTION READ WRITE;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() SET SESSION TRANSACTION READ ONLY,
-ISOLATION LEVEL SERIALIZABLE;
-CALL p1();
-SELECT @@tx_read_only;
-@@tx_read_only
-1
-SET SESSION TRANSACTION READ WRITE, ISOLATION LEVEL REPEATABLE READ;
-DROP PROCEDURE p1;
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-SET SESSION TRANSACTION READ ONLY;
-RETURN 1;
-END|
-SELECT f1();
-f1()
-1
-SELECT @@tx_read_only;
-@@tx_read_only
-1
-SET SESSION TRANSACTION READ WRITE;
-DROP FUNCTION f1;
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE, READ ONLY;
-RETURN 1;
-END|
-SELECT f1();
-f1()
-1
-SELECT @@tx_read_only;
-@@tx_read_only
-1
-SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ, READ WRITE;
-DROP FUNCTION f1;
-#
-# Test 8: SET TRANSACTION and auto-commit
-SELECT @@autocommit;
-@@autocommit
-1
-CREATE TABLE t1(a INT) engine=InnoDB;
-SET TRANSACTION READ ONLY;
-SELECT * FROM t1;
-a
-# This statement should work, since last statement committed.
-INSERT INTO t1 VALUES (1);
-DROP TABLE t1;
diff --git a/mysql-test/r/commit_1innodb.result b/mysql-test/r/commit_1innodb.result
deleted file mode 100644
index 7d21540b548..00000000000
--- a/mysql-test/r/commit_1innodb.result
+++ /dev/null
@@ -1,893 +0,0 @@
-call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
-set sql_mode=no_engine_substitution;
-set default_storage_engine = InnoDB;
-set autocommit=1;
-drop table if exists t1;
-drop table if exists t2;
-drop table if exists t3;
-drop function if exists f2;
-drop procedure if exists bug12713_call;
-drop procedure if exists bug12713_dump_spvars;
-drop procedure if exists dummy;
-create table t1 (a int);
-create table t2 (a int unique);
-create table t3 (a int);
-set sql_mode=default;
-insert into t1 (a) values (1), (2);
-insert into t3 (a) values (1), (2);
-create function f2(x int) returns int
-begin
-insert into t2 (a) values (x);
-insert into t2 (a) values (x);
-return x;
-end|
-set autocommit=0;
-flush status;
-insert into t2 (a) values (1001);
-insert into t1 (a) values (f2(1));
-ERROR 23000: Duplicate entry '1' for key 'a'
-select * from t2;
-a
-1001
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1002);
-insert into t3 (a) select f2(2) from t1;
-ERROR 23000: Duplicate entry '2' for key 'a'
-select * from t2;
-a
-1002
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1003);
-update t1 set a= a + f2(3);
-ERROR 23000: Duplicate entry '3' for key 'a'
-select * from t2;
-a
-1003
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1004);
-update t1, t3 set t1.a = 0, t3.a = 0 where (f2(4) = 4) and (t1.a = t3.a);
-ERROR 23000: Duplicate entry '4' for key 'a'
-select * from t2;
-a
-1004
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1005);
-delete from t1 where (a = f2(5));
-ERROR 23000: Duplicate entry '5' for key 'a'
-select * from t2;
-a
-1005
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1006);
-delete from t1, t3 using t1, t3 where (f2(6) = 6) ;
-ERROR 23000: Duplicate entry '6' for key 'a'
-select * from t2;
-a
-1006
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1007);
-replace t1 values (f2(7));
-ERROR 23000: Duplicate entry '7' for key 'a'
-select * from t2;
-a
-1007
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1008);
-replace into t3 (a) select f2(8) from t1;
-ERROR 23000: Duplicate entry '8' for key 'a'
-select * from t2;
-a
-1008
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1009);
-select f2(9) from t1 ;
-ERROR 23000: Duplicate entry '9' for key 'a'
-select * from t2;
-a
-1009
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1010);
-show databases where (f2(10) = 10);
-ERROR 23000: Duplicate entry '10' for key 'a'
-select * from t2;
-a
-1010
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1011);
-show tables where (f2(11) = 11);
-ERROR 23000: Duplicate entry '11' for key 'a'
-select * from t2;
-a
-1011
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1012);
-show triggers where (f2(12) = 12);
-ERROR 23000: Duplicate entry '12' for key 'a'
-select * from t2;
-a
-1012
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1013);
-show table status where (f2(13) = 13);
-ERROR 23000: Duplicate entry '13' for key 'a'
-select * from t2;
-a
-1013
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1014);
-show open tables where (f2(14) = 14);
-ERROR 23000: Duplicate entry '14' for key 'a'
-select * from t2;
-a
-1014
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1015);
-show columns in mysql.proc where (f2(15) = 15);
-ERROR 23000: Duplicate entry '15' for key 'a'
-select * from t2;
-a
-1015
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1016);
-show status where (f2(16) = 16);
-ERROR 23000: Duplicate entry '16' for key 'a'
-select * from t2;
-a
-1016
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1017);
-show variables where (f2(17) = 17);
-ERROR 23000: Duplicate entry '17' for key 'a'
-select * from t2;
-a
-1017
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1018);
-show charset where (f2(18) = 18);
-ERROR 23000: Duplicate entry '18' for key 'a'
-select * from t2;
-a
-1018
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1019);
-show collation where (f2(19) = 19);
-ERROR 23000: Duplicate entry '19' for key 'a'
-select * from t2;
-a
-1019
-rollback;
-select * from t2;
-a
-# We need at least one procedure to make sure the WHERE clause is
-# evaluated
-create procedure dummy() begin end;
-insert into t2 (a) values (1020);
-show procedure status where (f2(20) = 20);
-ERROR 23000: Duplicate entry '20' for key 'a'
-select * from t2;
-a
-1020
-rollback;
-select * from t2;
-a
-drop procedure dummy;
-insert into t2 (a) values (1021);
-show function status where (f2(21) = 21);
-ERROR 23000: Duplicate entry '21' for key 'a'
-select * from t2;
-a
-1021
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1022);
-prepare stmt from "insert into t1 (a) values (f2(22))";
-execute stmt;
-ERROR 23000: Duplicate entry '22' for key 'a'
-select * from t2;
-a
-1022
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1023);
-do (f2(23));
-Warnings:
-Error 1062 Duplicate entry '23' for key 'a'
-Note 4094 At line 4 in test.f2
-select * from t2;
-a
-1023
-rollback;
-select * from t2;
-a
-create procedure bug12713_call ()
-begin
-insert into t2 (a) values (24);
-insert into t2 (a) values (24);
-end|
-insert into t2 (a) values (1024);
-call bug12713_call();
-ERROR 23000: Duplicate entry '24' for key 'a'
-select * from t2;
-a
-24
-1024
-rollback;
-select * from t2;
-a
-=======================================================================
-Testing select_to_file
-=======================================================================
-insert into t2 (a) values (1025);
-select f2(25) into outfile "../tmp/dml.out" from t1;
-ERROR 23000: Duplicate entry '25' for key 'a'
-select * from t2;
-a
-1025
-rollback;
-select * from t2;
-a
-insert into t2 (a) values (1026);
-load data infile "../../std_data/words.dat" ignore into table t1 (a) set a:=f2(26);
-ERROR 23000: Duplicate entry '26' for key 'a'
-select * from t2;
-a
-1026
-rollback;
-select * from t2;
-a
-=======================================================================
-Testing select_dumpvar
-=======================================================================
-insert into t2 (a) values (1027);
-select f2(27) into @foo;
-ERROR 23000: Duplicate entry '27' for key 'a'
-select * from t2;
-a
-1027
-rollback;
-select * from t2;
-a
-=======================================================================
-Testing Select_fetch_into_spvars
-=======================================================================
-create procedure bug12713_dump_spvars ()
-begin
-declare foo int;
-declare continue handler for sqlexception
-begin
-select "Exception trapped";
-end;
-select f2(28) into foo;
-select * from t2;
-end|
-insert into t2 (a) values (1028);
-call bug12713_dump_spvars ();
-Exception trapped
-Exception trapped
-a
-1028
-rollback;
-select * from t2;
-a
-=======================================================================
-Cleanup
-=======================================================================
-set autocommit=default;
-drop table t1;
-drop table t2;
-drop table t3;
-drop function f2;
-drop procedure bug12713_call;
-drop procedure bug12713_dump_spvars;
-#
-# Bug#12713 Error in a stored function called from a SELECT doesn't
-# cause ROLLBACK of statem
-#
-# Verify that two-phase commit is not issued for read-only
-# transactions.
-#
-# Verify that two-phase commit is issued for read-write transactions,
-# even if the change is done inside a stored function called from
-# SELECT or SHOW statement.
-#
-set autocommit=0;
-drop table if exists t1;
-drop table if exists t2;
-drop function if exists f1;
-drop procedure if exists p_verify_status_increment;
-set @binlog_format=@@global.binlog_format;
-set sql_mode=no_engine_substitution;
-create table t1 (a int unique);
-create table t2 (a int) engine=myisam;
-set sql_mode=default;
-#
-# An auxiliary procedure to track Handler_prepare and Handler_commit
-# statistics.
-#
-create procedure
-p_verify_status_increment(commit_inc_mixed int, prepare_inc_mixed int,
-commit_inc_row int, prepare_inc_row int)
-begin
-declare commit_inc int;
-declare prepare_inc int;
-declare old_commit_count int default ifnull(@commit_count, 0);
-declare old_prepare_count int default ifnull(@prepare_count, 0);
-declare c_res int;
-# Use a cursor to have just one access to I_S instead of 2, it is very slow
-# and amounts for over 90% of test CPU time
-declare c cursor for
-select variable_value
-from information_schema.session_status
-where variable_name='Handler_commit' or variable_name='Handler_prepare'
- order by variable_name;
-if @binlog_format = 'ROW' then
-set commit_inc= commit_inc_row;
-set prepare_inc= prepare_inc_row;
-else
-set commit_inc= commit_inc_mixed;
-set prepare_inc= prepare_inc_mixed;
-end if;
-open c;
-fetch c into c_res;
-set @commit_count=c_res;
-fetch c into c_res;
-set @prepare_count=c_res;
-close c;
-if old_commit_count + commit_inc <> @commit_count then
-select concat("Expected commit increment: ", commit_inc,
-" actual: ", @commit_count - old_commit_count)
-as 'ERROR';
-elseif old_prepare_count + prepare_inc <> @prepare_count then
-select concat("Expected prepare increment: ", prepare_inc,
-" actual: ", @prepare_count - old_prepare_count)
-as 'ERROR';
-else
-select '' as 'SUCCESS';
-end if;
-end|
-# Reset Handler_commit and Handler_prepare counters
-flush status;
-#
-# 1. Read-only statement: SELECT
-#
-select * from t1;
-a
-call p_verify_status_increment(1, 0, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(1, 0, 1, 0);
-SUCCESS
-
-# 2. Read-write statement: INSERT, insert 1 row.
-#
-insert into t1 (a) values (1);
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-# 3. Read-write statement: UPDATE, update 1 row.
-#
-update t1 set a=2;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-# 4. Read-write statement: UPDATE, update 0 rows, 1 row matches WHERE
-#
-update t1 set a=2;
-call p_verify_status_increment(2, 0, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 0, 1, 0);
-SUCCESS
-
-# 5. Read-write statement: UPDATE, update 0 rows, 0 rows match WHERE
-#
-# In mixed replication mode, there is a read-only transaction
-# in InnoDB and also the statement is written to the binary log.
-# So we have two commits but no 2pc, since the first engine's
-# transaction is read-only.
-# In the row level replication mode, we only have the read-only
-# transaction in InnoDB and nothing is written to the binary log.
-#
-update t1 set a=3 where a=1;
-call p_verify_status_increment(2, 0, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 0, 1, 0);
-SUCCESS
-
-# 6. Read-write statement: DELETE, delete 0 rows.
-#
-delete from t1 where a=1;
-call p_verify_status_increment(2, 0, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 0, 1, 0);
-SUCCESS
-
-# 7. Read-write statement: DELETE, delete 1 row.
-#
-delete from t1 where a=2;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-# 8. Read-write statement: unqualified DELETE
-#
-# In statement or mixed replication mode, we call
-# handler::ha_delete_all_rows() and write statement text
-# to the binary log. This results in two read-write transactions.
-# In row level replication mode, we do not call
-# handler::ha_delete_all_rows(), but delete rows one by one.
-# Since there are no rows, nothing is written to the binary log.
-# Thus we have just one read-only transaction in InnoDB.
-delete from t1;
-call p_verify_status_increment(2, 2, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 2, 1, 0);
-SUCCESS
-
-# 9. Read-write statement: REPLACE, change 1 row.
-#
-replace t1 set a=1;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-# 10. Read-write statement: REPLACE, change 0 rows.
-#
-replace t1 set a=1;
-call p_verify_status_increment(2, 2, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 2, 1, 0);
-SUCCESS
-
-# 11. Read-write statement: IODKU, change 1 row.
-#
-insert t1 set a=1 on duplicate key update a=a+1;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-select * from t1;
-a
-2
-call p_verify_status_increment(1, 0, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-# 12. Read-write statement: IODKU, change 0 rows.
-#
-insert t1 set a=2 on duplicate key update a=2;
-call p_verify_status_increment(2, 2, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 2, 1, 0);
-SUCCESS
-
-# 13. Read-write statement: INSERT IGNORE, change 0 rows.
-#
-insert ignore t1 set a=2;
-Warnings:
-Warning 1062 Duplicate entry '2' for key 'a'
-call p_verify_status_increment(2, 2, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 2, 1, 0);
-SUCCESS
-
-# 14. Read-write statement: INSERT IGNORE, change 1 row.
-#
-insert ignore t1 set a=1;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-# 15. Read-write statement: UPDATE IGNORE, change 0 rows.
-#
-update ignore t1 set a=2 where a=1;
-SUCCESS
-
-commit;
-SUCCESS
-
-#
-# Create a stored function that modifies a
-# non-transactional table. Demonstrate that changes in
-# non-transactional tables do not affect the two phase commit
-# algorithm.
-#
-create function f1() returns int
-begin
-insert t2 set a=2;
-return 2;
-end|
-call p_verify_status_increment(0, 0, 0, 0);
-SUCCESS
-
-# 16. A function changes non-trans-table.
-#
-# For row-based logging, there is an extra commit for the
-# non-transactional changes saved in the transaction cache to
-# the binary log.
-#
-select f1();
-f1()
-2
-call p_verify_status_increment(1, 0, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(1, 0, 1, 0);
-SUCCESS
-
-# 17. Read-only statement, a function changes non-trans-table.
-#
-# For row-based logging, there is an extra commit for the
-# non-transactional changes saved in the transaction cache to
-# the binary log.
-#
-select f1() from t1;
-f1()
-2
-2
-call p_verify_status_increment(2, 0, 2, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 0, 2, 0);
-SUCCESS
-
-# 18. Read-write statement: UPDATE, change 0 (transactional) rows.
-#
-select count(*) from t2;
-count(*)
-3
-update t1 set a=2 where a=f1()+10;
-select count(*) from t2;
-count(*)
-5
-call p_verify_status_increment(2, 0, 2, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 0, 2, 0);
-SUCCESS
-
-#
-# Replace the non-transactional table with a temporary
-# transactional table. Demonstrate that a change to a temporary
-# transactional table does not provoke 2-phase commit, although
-# does trigger a commit and a binlog write (in statement mode).
-#
-drop table t2;
-set sql_mode=no_engine_substitution;
-create temporary table t2 (a int);
-call p_verify_status_increment(1, 0, 0, 0);
-SUCCESS
-
-set sql_mode=default;
-# 19. A function changes temp-trans-table.
-#
-select f1();
-f1()
-2
-# Two commits because a binary log record is written
-call p_verify_status_increment(2, 0, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 0, 1, 0);
-SUCCESS
-
-# 20. Read-only statement, a function changes non-trans-table.
-#
-select f1() from t1;
-f1()
-2
-2
-# Two commits because a binary log record is written
-call p_verify_status_increment(2, 0, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 0, 1, 0);
-SUCCESS
-
-# 21. Read-write statement: UPDATE, change 0 (transactional) rows.
-#
-update t1 set a=2 where a=f1()+10;
-call p_verify_status_increment(2, 0, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 0, 1, 0);
-SUCCESS
-
-# 22. DDL: ALTER TEMPORARY TABLE, should not cause a 2pc
-#
-alter table t2 add column b int default 5;
-# A commit is done internally by ALTER.
-call p_verify_status_increment(2, 0, 2, 0);
-SUCCESS
-
-commit;
-# There is nothing left to commit
-call p_verify_status_increment(0, 0, 0, 0);
-SUCCESS
-
-# 23. DDL: RENAME TEMPORARY TABLE, does not start a transaction
-
-# No test because of Bug#8729 "rename table fails on temporary table"
-# 24. DDL: TRUNCATE TEMPORARY TABLE
-
-truncate table t2;
-call p_verify_status_increment(4, 0, 4, 0);
-ERROR
-Expected commit increment: 4 actual: 2
-commit;
-# There is nothing left to commit
-call p_verify_status_increment(0, 0, 0, 0);
-SUCCESS
-
-# 25. Read-write statement: unqualified DELETE
-
-delete from t2;
-call p_verify_status_increment(2, 0, 1, 0);
-SUCCESS
-
-commit;
-# There is nothing left to commit
-call p_verify_status_increment(2, 0, 1, 0);
-SUCCESS
-
-# 25. DDL: DROP TEMPORARY TABLE, does not start a transaction
-#
-drop temporary table t2;
-call p_verify_status_increment(1, 0, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(1, 0, 1, 0);
-SUCCESS
-
-# 26. Verify that SET AUTOCOMMIT issues an implicit commit
-#
-insert t1 set a=3;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-set autocommit=1;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-rollback;
-select a from t1 where a=3;
-a
-3
-call p_verify_status_increment(1, 0, 1, 0);
-SUCCESS
-
-delete from t1 where a=3;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-commit;
-call p_verify_status_increment(0, 0, 0, 0);
-SUCCESS
-
-set autocommit=0;
-call p_verify_status_increment(0, 0, 0, 0);
-SUCCESS
-
-insert t1 set a=3;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-# Sic: not actually changing the value of autocommit
-set autocommit=0;
-call p_verify_status_increment(0, 0, 0, 0);
-SUCCESS
-
-rollback;
-select a from t1 where a=3;
-a
-call p_verify_status_increment(1, 0, 1, 0);
-SUCCESS
-
-# 27. Savepoint management
-#
-insert t1 set a=3;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-savepoint a;
-call p_verify_status_increment(1, 0, 1, 0);
-SUCCESS
-
-insert t1 set a=4;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-release savepoint a;
-rollback;
-call p_verify_status_increment(0, 0, 0, 0);
-SUCCESS
-
-select a from t1 where a=3;
-a
-call p_verify_status_increment(1, 0, 1, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(1, 0, 1, 0);
-SUCCESS
-
-# 28. Read-write statement: DO
-#
-create table t2 (a int);
-call p_verify_status_increment(0, 0, 0, 0);
-SUCCESS
-
-do (select f1() from t1 where a=2);
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-commit;
-call p_verify_status_increment(2, 2, 2, 2);
-SUCCESS
-
-# 29. Read-write statement: MULTI-DELETE
-#
-delete t1, t2 from t1 join t2 on (t1.a=t2.a) where t1.a=2;
-commit;
-call p_verify_status_increment(4, 4, 4, 4);
-SUCCESS
-
-# 30. Read-write statement: INSERT-SELECT, MULTI-UPDATE, REPLACE-SELECT
-#
-insert into t2 select a from t1;
-commit;
-replace into t2 select a from t1;
-commit;
-call p_verify_status_increment(8, 8, 8, 8);
-SUCCESS
-
-update t1, t2 set t1.a=4, t2.a=8 where t1.a=t2.a and t1.a=1;
-commit;
-call p_verify_status_increment(4, 4, 4, 4);
-SUCCESS
-
-# 31. DDL: various DDL with transactional tables
-#
-# Sic: no table is created.
-create table if not exists t2 (a int) select 6 union select 7;
-Warnings:
-Note 1050 Table 't2' already exists
-# Sic: first commits the statement, and then the transaction.
-call p_verify_status_increment(0, 0, 0, 0);
-SUCCESS
-
-create table t3 select a from t2;
-call p_verify_status_increment(2, 0, 4, 4);
-SUCCESS
-
-alter table t3 add column (b int);
-call p_verify_status_increment(2, 0, 2, 0);
-SUCCESS
-
-alter table t3 rename t4;
-call p_verify_status_increment(0, 0, 0, 0);
-SUCCESS
-
-rename table t4 to t3;
-call p_verify_status_increment(0, 0, 0, 0);
-SUCCESS
-
-truncate table t3;
-call p_verify_status_increment(2, 0, 2, 0);
-SUCCESS
-
-create view v1 as select * from t2;
-call p_verify_status_increment(2, 0, 2, 0);
-SUCCESS
-
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-call p_verify_status_increment(2, 0, 2, 0);
-SUCCESS
-
-# Sic: after this bug is fixed, CHECK leaves no pending transaction
-commit;
-call p_verify_status_increment(0, 0, 0, 0);
-SUCCESS
-
-check table t1, t2, t3;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-test.t2 check status OK
-test.t3 check status OK
-call p_verify_status_increment(6, 0, 6, 0);
-SUCCESS
-
-commit;
-call p_verify_status_increment(0, 0, 0, 0);
-SUCCESS
-
-drop view v1;
-call p_verify_status_increment(0, 0, 0, 0);
-SUCCESS
-
-#
-# Cleanup
-#
-drop table t1, t2, t3;
-drop procedure p_verify_status_increment;
-drop function f1;
diff --git a/mysql-test/r/compare.result b/mysql-test/r/compare.result
deleted file mode 100644
index b4a6b22ba3a..00000000000
--- a/mysql-test/r/compare.result
+++ /dev/null
@@ -1,102 +0,0 @@
-drop table if exists t1;
-CREATE TABLE t1 (id CHAR(12) not null, PRIMARY KEY (id));
-insert into t1 values ('000000000001'),('000000000002');
-explain select * from t1 where id=000000000001;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 12 NULL 2 Using where; Using index
-select * from t1 where id=000000000001;
-id
-000000000001
-delete from t1 where id=000000000002;
-select * from t1;
-id
-000000000001
-drop table t1;
-SELECT 'a' = 'a ';
-'a' = 'a '
-1
-SELECT 'a\0' < 'a';
-'a\0' < 'a'
-1
-SELECT 'a\0' < 'a ';
-'a\0' < 'a '
-1
-SELECT 'a\t' < 'a';
-'a\t' < 'a'
-1
-SELECT 'a\t' < 'a ';
-'a\t' < 'a '
-1
-CREATE TABLE t1 (a char(10) not null);
-INSERT INTO t1 VALUES ('a'),('a\0'),('a\t'),('a ');
-SELECT hex(a),STRCMP(a,'a'), STRCMP(a,'a ') FROM t1;
-hex(a) STRCMP(a,'a') STRCMP(a,'a ')
-61 0 0
-6100 -1 -1
-6109 -1 -1
-61 0 0
-DROP TABLE t1;
-SELECT CHAR(31) = '', '' = CHAR(31);
-CHAR(31) = '' '' = CHAR(31)
-0 0
-SELECT CHAR(30) = '', '' = CHAR(30);
-CHAR(30) = '' '' = CHAR(30)
-0 0
-create table t1 (a tinyint(1),b binary(1));
-insert into t1 values (0x01,0x01);
-select * from t1 where a=b;
-a b
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '\x01'
-select * from t1 where a=b and b=0x01;
-a b
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '\x01'
-drop table if exists t1;
-CREATE TABLE t1 (b int(2) zerofill, c int(2) zerofill);
-INSERT INTO t1 (b,c) VALUES (1,2), (1,1), (2,2);
-SELECT CONCAT(b,c), CONCAT(b,c) = '0101' FROM t1;
-CONCAT(b,c) CONCAT(b,c) = '0101'
-0102 0
-0101 1
-0202 0
-EXPLAIN EXTENDED SELECT b,c FROM t1 WHERE b = 1 AND CONCAT(b,c) = '0101';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c` from `test`.`t1` where `test`.`t1`.`b` = 1 and concat(`test`.`t1`.`b`,`test`.`t1`.`c`) = '0101'
-SELECT b,c FROM t1 WHERE b = 1 AND CONCAT(b,c) = '0101';
-b c
-01 01
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES (1),(2);
-SELECT a,
-(SELECT COUNT(*) FROM t1
-WHERE b = t2.a AND CONCAT(b,c) = CONCAT('0',t2.a,'01')) x
-FROM t2 ORDER BY a;
-a x
-1 1
-2 0
-EXPLAIN EXTENDED
-SELECT a,
-(SELECT COUNT(*) FROM t1
-WHERE b = t2.a AND CONCAT(b,c) = CONCAT('0',t2.a,'01')) x
-FROM t2 ORDER BY a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using filesort
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t2.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t2.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,<expr_cache><`test`.`t2`.`a`>((/* select#2 */ select count(0) from `test`.`t1` where `test`.`t1`.`b` = `test`.`t2`.`a` and concat(`test`.`t1`.`b`,`test`.`t1`.`c`) = concat('0',`test`.`t2`.`a`,'01'))) AS `x` from `test`.`t2` order by `test`.`t2`.`a`
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a TIMESTAMP);
-INSERT INTO t1 VALUES (NOW()),(NOW()),(NOW());
-SELECT * FROM t1 WHERE a > '2008-01-01' AND a = '0000-00-00';
-a
-DROP TABLE t1;
-End of 5.0 tests
-CREATE TABLE t1(a INT ZEROFILL);
-SELECT 1 FROM t1 WHERE t1.a IN (1, t1.a) AND t1.a=2;
-1
-DROP TABLE t1;
diff --git a/mysql-test/r/compound.result b/mysql-test/r/compound.result
deleted file mode 100644
index a54faff4562..00000000000
--- a/mysql-test/r/compound.result
+++ /dev/null
@@ -1,172 +0,0 @@
-CREATE TABLE t1 (a INT PRIMARY KEY)|
-BEGIN NOT ATOMIC
-INSERT INTO t1 VALUES (1);
-INSERT INTO t1 VALUES (2);
-INSERT INTO t1 VALUES (3);
-END|
-SELECT * FROM t1|
-a
-1
-2
-3
-PREPARE stmt FROM "BEGIN NOT ATOMIC
- INSERT INTO t1 VALUES (4);
- INSERT INTO t1 VALUES (5);
- INSERT INTO t1 VALUES (?);
-END";
-SET @val = 6|
-reset master|
-EXECUTE stmt USING @val|
-SELECT * FROM t1|
-a
-1
-2
-3
-4
-5
-6
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (4)
-master-bin.000001 # Query # # COMMIT
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (5)
-master-bin.000001 # Query # # COMMIT
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (6)
-master-bin.000001 # Query # # COMMIT
-DROP TABLE t1|
-CREATE DATABASE mysqltest1|
-CREATE PROCEDURE mysqltest1.sp1()
-BEGIN
-PREPARE stmt FROM "BEGIN NOT ATOMIC CREATE TABLE t1 AS SELECT DATABASE(); END";
-EXECUTE stmt;
-END|
-CALL mysqltest1.sp1()|
-SELECT * FROM mysqltest1.t1|
-DATABASE()
-mysqltest1
-USE mysqltest1|
-DROP DATABASE mysqltest1|
-BEGIN NOT ATOMIC CREATE TABLE t1(a int); END|
-ERROR 3D000: No database selected
-BEGIN NOT ATOMIC SET @a=1; CREATE TABLE test.t1(a int); END|
-USE test|
-show tables|
-Tables_in_test
-t1
-drop table t1|
-/**/ if (select count(*) from information_schema.tables
-where table_schema='test' and table_name='t1') = 0
-then
-create table t1 (a int);
-end if|
-show tables|
-Tables_in_test
-t1
-/**/ if (select count(*) from information_schema.tables
-where table_schema='test' and table_name='t1') = 0
-then
-create table t1 (a int);
-end if|
-show tables|
-Tables_in_test
-t1
-case (select table_name from information_schema.tables where table_schema='test')
-when 't1' then create table t2 (b int);
-when 't2' then create table t3 (b int);
-else signal sqlstate '42S02';
-end case|
-show tables|
-Tables_in_test
-t1
-t2
-case
-when database() = 'test' then create table t3 (test text);
-when now() < date'2001-02-03' then create table oops (machine time);
-end case|
-show tables|
-Tables_in_test
-t1
-t2
-t3
-loop
-create table t4 (a int);
-end loop|
-ERROR 42S01: Table 't4' already exists
-show tables|
-Tables_in_test
-t1
-t2
-t3
-t4
-set @a=0;
-repeat
-set @a = @a + 1;
-until @a > 5
-end repeat|
-select @a|
-@a
-6
-/**/ while (select count(*) from information_schema.tables where table_schema='test')
-do
-select concat('drop table ', table_name) into @a
-from information_schema.tables where table_schema='test'
- order by table_name limit 1;
-select @a as 'executing:';
-prepare dt from @a;
-execute dt;
-end while|
-executing: drop table t1
-executing: drop table t2
-executing: drop table t3
-executing: drop table t4
-create table t1 (x int)|
-create function fn(a int) returns int
-begin
-insert t1 values (a+7);
-return a+8;
-end|
-reset master|
-/**/ if fn(9) > 5 then
-select 1;
-end if|
-1
-1
-prepare stmt from "if fn(?) > 6 then
- begin
- declare a int;
- set a=?*2;
- insert t1 values(a+?);
- end;
-end if"|
-set @a=1, @b=2, @c=3|
-execute stmt using @a, @b, @c|
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; SELECT `test`.`fn`(9)
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; SELECT `test`.`fn`(1)
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; insert t1 values( NAME_CONST('a',4)+3)
-master-bin.000001 # Query # # COMMIT
-drop function fn|
-drop table t1|
-begin not atomic select @@sql_mode; end|
-@@sql_mode
-STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-create table t1 (a int)|
-select a from t1 having a > 1|
-a
-begin not atomic select a from t1 having a > 1; end|
-a
-drop table t1|
-#
-# MDEV-8615: Assertion `m_cpp_buf <= begin_ptr &&
-# begin_ptr <= m_cpp_buf + m_buf_length' failed in
-# Lex_input_stream::body_utf8_start
-#
-b'|
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'b'' at line 1
diff --git a/mysql-test/r/compress.result b/mysql-test/r/compress.result
deleted file mode 100644
index 762ab6630d8..00000000000
--- a/mysql-test/r/compress.result
+++ /dev/null
@@ -1,2168 +0,0 @@
-connect comp_con,localhost,root,,,,,COMPRESS;
-SHOW STATUS LIKE 'Compression';
-Variable_name Value
-Compression ON
-select * from information_schema.session_status where variable_name= 'COMPRESSION';
-VARIABLE_NAME VARIABLE_VALUE
-COMPRESSION ON
-drop table if exists t1,t2,t3,t4;
-CREATE TABLE t1 (
-Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
-Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
-);
-INSERT INTO t1 VALUES (9410,9412);
-select period from t1;
-period
-9410
-select * from t1;
-Period Varor_period
-9410 9412
-select t1.* from t1;
-Period Varor_period
-9410 9412
-CREATE TABLE t2 (
-auto int not null auto_increment,
-fld1 int(6) unsigned zerofill DEFAULT '000000' NOT NULL,
-companynr tinyint(2) unsigned zerofill DEFAULT '00' NOT NULL,
-fld3 char(30) DEFAULT '' NOT NULL,
-fld4 char(35) DEFAULT '' NOT NULL,
-fld5 char(35) DEFAULT '' NOT NULL,
-fld6 char(4) DEFAULT '' NOT NULL,
-UNIQUE fld1 (fld1),
-KEY fld3 (fld3),
-PRIMARY KEY (auto)
-);
-select t2.fld3 from t2 where companynr = 58 and fld3 like "%imaginable%";
-fld3
-imaginable
-select fld3 from t2 where fld3 like "%cultivation" ;
-fld3
-cultivation
-select t2.fld3,companynr from t2 where companynr = 57+1 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3,companynr from t2 where companynr = 58 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3 from t2 order by fld3 desc limit 10;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select fld3 from t2 order by fld3 desc limit 5;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-select fld3 from t2 order by fld3 desc limit 5,5;
-fld3
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select t2.fld3 from t2 where fld3 = 'honeysuckle';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'hon_ysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle%';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'h%le';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle_';
-fld3
-select t2.fld3 from t2 where fld3 LIKE 'don_t_find_me_please%';
-fld3
-explain select t2.fld3 from t2 where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld1) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3,not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-explain select fld3 from t2 use index (not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-fld3
-honeysuckle
-honoring
-explain select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld3 fld3 30 NULL 2 Using where; Using index
-select fld1,fld3 from t2 where fld3="Colombo" or fld3 = "nondecreasing" order by fld3;
-fld1 fld3
-148504 Colombo
-068305 Colombo
-000000 nondecreasing
-select fld1,fld3 from t2 where companynr = 37 and fld3 = 'appendixes';
-fld1 fld3
-232605 appendixes
-1232605 appendixes
-1232606 appendixes
-1232607 appendixes
-1232608 appendixes
-1232609 appendixes
-select fld1 from t2 where fld1=250501 or fld1="250502";
-fld1
-250501
-250502
-explain select fld1 from t2 where fld1=250501 or fld1="250502";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 2 Using where; Using index
-select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-fld1
-250501
-250502
-250505
-250601
-explain select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 4 Using where; Using index
-select fld1,fld3 from t2 where companynr = 37 and fld3 like 'f%';
-fld1 fld3
-012001 flanking
-013602 foldout
-013606 fingerings
-018007 fanatic
-018017 featherweight
-018054 fetters
-018103 flint
-018104 flopping
-036002 funereal
-038017 fetched
-038205 firearm
-058004 Fenton
-088303 feminine
-186002 freakish
-188007 flurried
-188505 fitting
-198006 furthermore
-202301 Fitzpatrick
-208101 fiftieth
-208113 freest
-218008 finishers
-218022 feed
-218401 faithful
-226205 foothill
-226209 furnishings
-228306 forthcoming
-228311 fated
-231315 freezes
-232102 forgivably
-238007 filial
-238008 fixedly
-select fld3 from t2 where fld3 like "L%" and fld3 = "ok";
-fld3
-select fld3 from t2 where (fld3 like "C%" and fld3 = "Chantilly");
-fld3
-Chantilly
-select fld1,fld3 from t2 where fld1 like "25050%";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select fld1,fld3 from t2 where fld1 like "25050_";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select distinct companynr from t2;
-companynr
-00
-37
-36
-50
-58
-29
-40
-53
-65
-41
-34
-68
-select distinct companynr from t2 order by companynr;
-companynr
-00
-29
-34
-36
-37
-40
-41
-50
-53
-58
-65
-68
-select distinct companynr from t2 order by companynr desc;
-companynr
-68
-65
-58
-53
-50
-41
-40
-37
-36
-34
-29
-00
-select distinct t2.fld3,period from t2,t1 where companynr=37 and fld3 like "O%";
-fld3 period
-obliterates 9410
-offload 9410
-opaquely 9410
-organizer 9410
-overestimating 9410
-overlay 9410
-select distinct fld3 from t2 where companynr = 34 order by fld3;
-fld3
-absentee
-accessed
-ahead
-alphabetic
-Asiaticizations
-attitude
-aye
-bankruptcies
-belays
-Blythe
-bomb
-boulevard
-bulldozes
-cannot
-caressing
-charcoal
-checksumming
-chess
-clubroom
-colorful
-cosy
-creator
-crying
-Darius
-diffusing
-duality
-Eiffel
-Epiphany
-Ernestine
-explorers
-exterminated
-famine
-forked
-Gershwins
-heaving
-Hodges
-Iraqis
-Italianization
-Lagos
-landslide
-libretto
-Majorca
-mastering
-narrowed
-occurred
-offerers
-Palestine
-Peruvianizes
-pharmaceutic
-poisoning
-population
-Pygmalion
-rats
-realest
-recording
-regimented
-retransmitting
-reviver
-rouses
-scars
-sicker
-sleepwalk
-stopped
-sugars
-translatable
-uncles
-unexpected
-uprisings
-versatility
-vest
-select distinct fld3 from t2 limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct fld3 from t2 having fld3 like "A%" limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%";
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-Adl
-adm
-Ado
-ads
-adv
-aer
-aff
-afi
-afl
-afo
-agi
-ahe
-aim
-air
-Ald
-alg
-ali
-all
-alp
-alr
-ama
-ame
-amm
-ana
-and
-ane
-Ang
-ani
-Ann
-Ant
-api
-app
-aqu
-Ara
-arc
-Arm
-arr
-Art
-Asi
-ask
-asp
-ass
-ast
-att
-aud
-Aug
-aut
-ave
-avo
-awe
-aye
-Azt
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" order by a limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%" limit 10;
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-create table t3 (
-period int not null,
-name char(32) not null,
-companynr int not null,
-price double(11,0),
-price2 double(11,0),
-key (period),
-key (name)
-);
-create temporary table tmp engine = myisam select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-alter table t3 add t2nr int not null auto_increment primary key first;
-drop table tmp;
-SET BIG_TABLES=1;
-select distinct concat(fld3," ",fld3) as namn from t2,t3 where t2.fld1=t3.t2nr order by namn limit 10;
-namn
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-SET BIG_TABLES=0;
-select distinct concat(fld3," ",fld3) from t2,t3 where t2.fld1=t3.t2nr order by fld3 limit 10;
-concat(fld3," ",fld3)
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-select distinct fld5 from t2 limit 10;
-fld5
-neat
-Steinberg
-jarring
-tinily
-balled
-persist
-attainments
-fanatic
-measures
-rightfulness
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=1;
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=0;
-select distinct fld3,repeat("a",length(fld3)),count(*) from t2 group by companynr,fld3 limit 100,10;
-fld3 repeat("a",length(fld3)) count(*)
-circus aaaaaa 1
-cited aaaaa 1
-Colombo aaaaaaa 1
-congresswoman aaaaaaaaaaaaa 1
-contrition aaaaaaaaaa 1
-corny aaaaa 1
-cultivation aaaaaaaaaaa 1
-definiteness aaaaaaaaaaaa 1
-demultiplex aaaaaaaaaaa 1
-disappointing aaaaaaaaaaaaa 1
-select distinct companynr,rtrim(space(512+companynr)) from t3 order by 1,2;
-companynr rtrim(space(512+companynr))
-37
-78
-101
-154
-311
-447
-512
-select distinct fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by fld3;
-fld3
-explain select t3.t2nr,fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by t3.t2nr,fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL fld1 NULL NULL NULL 1199 Using where; Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.fld1 1 Using where; Using index
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL period NULL NULL NULL 41810 Using filesort
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index period period 4 NULL 1
-1 SIMPLE t1 ref period period 4 test.t3.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t1.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index period period 4 NULL 1
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-select period from t1;
-period
-9410
-select period from t1 where period=1900;
-period
-select fld3,period from t1,t2 where fld1 = 011401 order by period;
-fld3 period
-breaking 9410
-select fld3,period from t2,t3 where t2.fld1 = 011401 and t2.fld1=t3.t2nr and t3.period=1001;
-fld3 period
-breaking 1001
-explain select fld3,period from t2,t3 where t2.fld1 = 011401 and t3.t2nr=t2.fld1 and 1001 = t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const fld1 fld1 4 const 1
-1 SIMPLE t3 const PRIMARY,period PRIMARY 4 const 1
-select fld3,period from t2,t1 where companynr*10 = 37*10;
-fld3 period
-breaking 9410
-Romans 9410
-intercepted 9410
-bewilderingly 9410
-astound 9410
-admonishing 9410
-sumac 9410
-flanking 9410
-combed 9410
-subjective 9410
-scatterbrain 9410
-Eulerian 9410
-Kane 9410
-overlay 9410
-perturb 9410
-goblins 9410
-annihilates 9410
-Wotan 9410
-snatching 9410
-concludes 9410
-laterally 9410
-yelped 9410
-grazing 9410
-Baird 9410
-celery 9410
-misunderstander 9410
-handgun 9410
-foldout 9410
-mystic 9410
-succumbed 9410
-Nabisco 9410
-fingerings 9410
-aging 9410
-afield 9410
-ammonium 9410
-boat 9410
-intelligibility 9410
-Augustine 9410
-teethe 9410
-dreaded 9410
-scholastics 9410
-audiology 9410
-wallet 9410
-parters 9410
-eschew 9410
-quitter 9410
-neat 9410
-Steinberg 9410
-jarring 9410
-tinily 9410
-balled 9410
-persist 9410
-attainments 9410
-fanatic 9410
-measures 9410
-rightfulness 9410
-capably 9410
-impulsive 9410
-starlet 9410
-terminators 9410
-untying 9410
-announces 9410
-featherweight 9410
-pessimist 9410
-daughter 9410
-decliner 9410
-lawgiver 9410
-stated 9410
-readable 9410
-attrition 9410
-cascade 9410
-motors 9410
-interrogate 9410
-pests 9410
-stairway 9410
-dopers 9410
-testicle 9410
-Parsifal 9410
-leavings 9410
-postulation 9410
-squeaking 9410
-contrasted 9410
-leftover 9410
-whiteners 9410
-erases 9410
-Punjab 9410
-Merritt 9410
-Quixotism 9410
-sweetish 9410
-dogging 9410
-scornfully 9410
-bellow 9410
-bills 9410
-cupboard 9410
-sureties 9410
-puddings 9410
-fetters 9410
-bivalves 9410
-incurring 9410
-Adolph 9410
-pithed 9410
-Miles 9410
-trimmings 9410
-tragedies 9410
-skulking 9410
-flint 9410
-flopping 9410
-relaxing 9410
-offload 9410
-suites 9410
-lists 9410
-animized 9410
-multilayer 9410
-standardizes 9410
-Judas 9410
-vacuuming 9410
-dentally 9410
-humanness 9410
-inch 9410
-Weissmuller 9410
-irresponsibly 9410
-luckily 9410
-culled 9410
-medical 9410
-bloodbath 9410
-subschema 9410
-animals 9410
-Micronesia 9410
-repetitions 9410
-Antares 9410
-ventilate 9410
-pityingly 9410
-interdependent 9410
-Graves 9410
-neonatal 9410
-chafe 9410
-honoring 9410
-realtor 9410
-elite 9410
-funereal 9410
-abrogating 9410
-sorters 9410
-Conley 9410
-lectured 9410
-Abraham 9410
-Hawaii 9410
-cage 9410
-hushes 9410
-Simla 9410
-reporters 9410
-Dutchman 9410
-descendants 9410
-groupings 9410
-dissociate 9410
-coexist 9410
-Beebe 9410
-Taoism 9410
-Connally 9410
-fetched 9410
-checkpoints 9410
-rusting 9410
-galling 9410
-obliterates 9410
-traitor 9410
-resumes 9410
-analyzable 9410
-terminator 9410
-gritty 9410
-firearm 9410
-minima 9410
-Selfridge 9410
-disable 9410
-witchcraft 9410
-betroth 9410
-Manhattanize 9410
-imprint 9410
-peeked 9410
-swelling 9410
-interrelationships 9410
-riser 9410
-Gandhian 9410
-peacock 9410
-bee 9410
-kanji 9410
-dental 9410
-scarf 9410
-chasm 9410
-insolence 9410
-syndicate 9410
-alike 9410
-imperial 9410
-convulsion 9410
-railway 9410
-validate 9410
-normalizes 9410
-comprehensive 9410
-chewing 9410
-denizen 9410
-schemer 9410
-chronicle 9410
-Kline 9410
-Anatole 9410
-partridges 9410
-brunch 9410
-recruited 9410
-dimensions 9410
-Chicana 9410
-announced 9410
-praised 9410
-employing 9410
-linear 9410
-quagmire 9410
-western 9410
-relishing 9410
-serving 9410
-scheduling 9410
-lore 9410
-eventful 9410
-arteriole 9410
-disentangle 9410
-cured 9410
-Fenton 9410
-avoidable 9410
-drains 9410
-detectably 9410
-husky 9410
-impelling 9410
-undoes 9410
-evened 9410
-squeezes 9410
-destroyer 9410
-rudeness 9410
-beaner 9410
-boorish 9410
-Everhart 9410
-encompass 9410
-mushrooms 9410
-Alison 9410
-externally 9410
-pellagra 9410
-cult 9410
-creek 9410
-Huffman 9410
-Majorca 9410
-governing 9410
-gadfly 9410
-reassigned 9410
-intentness 9410
-craziness 9410
-psychic 9410
-squabbled 9410
-burlesque 9410
-capped 9410
-extracted 9410
-DiMaggio 9410
-exclamation 9410
-subdirectory 9410
-Gothicism 9410
-feminine 9410
-metaphysically 9410
-sanding 9410
-Miltonism 9410
-freakish 9410
-index 9410
-straight 9410
-flurried 9410
-denotative 9410
-coming 9410
-commencements 9410
-gentleman 9410
-gifted 9410
-Shanghais 9410
-sportswriting 9410
-sloping 9410
-navies 9410
-leaflet 9410
-shooter 9410
-Joplin 9410
-babies 9410
-assails 9410
-admiring 9410
-swaying 9410
-Goldstine 9410
-fitting 9410
-Norwalk 9410
-analogy 9410
-deludes 9410
-cokes 9410
-Clayton 9410
-exhausts 9410
-causality 9410
-sating 9410
-icon 9410
-throttles 9410
-communicants 9410
-dehydrate 9410
-priceless 9410
-publicly 9410
-incidentals 9410
-commonplace 9410
-mumbles 9410
-furthermore 9410
-cautioned 9410
-parametrized 9410
-registration 9410
-sadly 9410
-positioning 9410
-babysitting 9410
-eternal 9410
-hoarder 9410
-congregates 9410
-rains 9410
-workers 9410
-sags 9410
-unplug 9410
-garage 9410
-boulder 9410
-specifics 9410
-Teresa 9410
-Winsett 9410
-convenient 9410
-buckboards 9410
-amenities 9410
-resplendent 9410
-sews 9410
-participated 9410
-Simon 9410
-certificates 9410
-Fitzpatrick 9410
-Evanston 9410
-misted 9410
-textures 9410
-save 9410
-count 9410
-rightful 9410
-chaperone 9410
-Lizzy 9410
-clenched 9410
-effortlessly 9410
-accessed 9410
-beaters 9410
-Hornblower 9410
-vests 9410
-indulgences 9410
-infallibly 9410
-unwilling 9410
-excrete 9410
-spools 9410
-crunches 9410
-overestimating 9410
-ineffective 9410
-humiliation 9410
-sophomore 9410
-star 9410
-rifles 9410
-dialysis 9410
-arriving 9410
-indulge 9410
-clockers 9410
-languages 9410
-Antarctica 9410
-percentage 9410
-ceiling 9410
-specification 9410
-regimented 9410
-ciphers 9410
-pictures 9410
-serpents 9410
-allot 9410
-realized 9410
-mayoral 9410
-opaquely 9410
-hostess 9410
-fiftieth 9410
-incorrectly 9410
-decomposition 9410
-stranglings 9410
-mixture 9410
-electroencephalography 9410
-similarities 9410
-charges 9410
-freest 9410
-Greenberg 9410
-tinting 9410
-expelled 9410
-warm 9410
-smoothed 9410
-deductions 9410
-Romano 9410
-bitterroot 9410
-corset 9410
-securing 9410
-environing 9410
-cute 9410
-Crays 9410
-heiress 9410
-inform 9410
-avenge 9410
-universals 9410
-Kinsey 9410
-ravines 9410
-bestseller 9410
-equilibrium 9410
-extents 9410
-relatively 9410
-pressure 9410
-critiques 9410
-befouled 9410
-rightfully 9410
-mechanizing 9410
-Latinizes 9410
-timesharing 9410
-Aden 9410
-embassies 9410
-males 9410
-shapelessly 9410
-mastering 9410
-Newtonian 9410
-finishers 9410
-abates 9410
-teem 9410
-kiting 9410
-stodgy 9410
-feed 9410
-guitars 9410
-airships 9410
-store 9410
-denounces 9410
-Pyle 9410
-Saxony 9410
-serializations 9410
-Peruvian 9410
-taxonomically 9410
-kingdom 9410
-stint 9410
-Sault 9410
-faithful 9410
-Ganymede 9410
-tidiness 9410
-gainful 9410
-contrary 9410
-Tipperary 9410
-tropics 9410
-theorizers 9410
-renew 9410
-already 9410
-terminal 9410
-Hegelian 9410
-hypothesizer 9410
-warningly 9410
-journalizing 9410
-nested 9410
-Lars 9410
-saplings 9410
-foothill 9410
-labeled 9410
-imperiously 9410
-reporters 9410
-furnishings 9410
-precipitable 9410
-discounts 9410
-excises 9410
-Stalin 9410
-despot 9410
-ripeness 9410
-Arabia 9410
-unruly 9410
-mournfulness 9410
-boom 9410
-slaughter 9410
-Sabine 9410
-handy 9410
-rural 9410
-organizer 9410
-shipyard 9410
-civics 9410
-inaccuracy 9410
-rules 9410
-juveniles 9410
-comprised 9410
-investigations 9410
-stabilizes 9410
-seminaries 9410
-Hunter 9410
-sporty 9410
-test 9410
-weasels 9410
-CERN 9410
-tempering 9410
-afore 9410
-Galatean 9410
-techniques 9410
-error 9410
-veranda 9410
-severely 9410
-Cassites 9410
-forthcoming 9410
-guides 9410
-vanish 9410
-lied 9410
-sawtooth 9410
-fated 9410
-gradually 9410
-widens 9410
-preclude 9410
-evenhandedly 9410
-percentage 9410
-disobedience 9410
-humility 9410
-gleaning 9410
-petted 9410
-bloater 9410
-minion 9410
-marginal 9410
-apiary 9410
-measures 9410
-precaution 9410
-repelled 9410
-primary 9410
-coverings 9410
-Artemia 9410
-navigate 9410
-spatial 9410
-Gurkha 9410
-meanwhile 9410
-Melinda 9410
-Butterfield 9410
-Aldrich 9410
-previewing 9410
-glut 9410
-unaffected 9410
-inmate 9410
-mineral 9410
-impending 9410
-meditation 9410
-ideas 9410
-miniaturizes 9410
-lewdly 9410
-title 9410
-youthfulness 9410
-creak 9410
-Chippewa 9410
-clamored 9410
-freezes 9410
-forgivably 9410
-reduce 9410
-McGovern 9410
-Nazis 9410
-epistle 9410
-socializes 9410
-conceptions 9410
-Kevin 9410
-uncovering 9410
-chews 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-raining 9410
-infest 9410
-compartment 9410
-minting 9410
-ducks 9410
-roped 9410
-waltz 9410
-Lillian 9410
-repressions 9410
-chillingly 9410
-noncritical 9410
-lithograph 9410
-spongers 9410
-parenthood 9410
-posed 9410
-instruments 9410
-filial 9410
-fixedly 9410
-relives 9410
-Pandora 9410
-watering 9410
-ungrateful 9410
-secures 9410
-poison 9410
-dusted 9410
-encompasses 9410
-presentation 9410
-Kantian 9410
-select fld3,period,price,price2 from t2,t3 where t2.fld1=t3.t2nr and period >= 1001 and period <= 1002 and t2.companynr = 37 order by fld3,period, price;
-fld3 period price price2
-admonishing 1002 28357832 8723648
-analyzable 1002 28357832 8723648
-annihilates 1001 5987435 234724
-Antares 1002 28357832 8723648
-astound 1001 5987435 234724
-audiology 1001 5987435 234724
-Augustine 1002 28357832 8723648
-Baird 1002 28357832 8723648
-bewilderingly 1001 5987435 234724
-breaking 1001 5987435 234724
-Conley 1001 5987435 234724
-dentally 1002 28357832 8723648
-dissociate 1002 28357832 8723648
-elite 1001 5987435 234724
-eschew 1001 5987435 234724
-Eulerian 1001 5987435 234724
-flanking 1001 5987435 234724
-foldout 1002 28357832 8723648
-funereal 1002 28357832 8723648
-galling 1002 28357832 8723648
-Graves 1001 5987435 234724
-grazing 1001 5987435 234724
-groupings 1001 5987435 234724
-handgun 1001 5987435 234724
-humility 1002 28357832 8723648
-impulsive 1002 28357832 8723648
-inch 1001 5987435 234724
-intelligibility 1001 5987435 234724
-jarring 1001 5987435 234724
-lawgiver 1001 5987435 234724
-lectured 1002 28357832 8723648
-Merritt 1002 28357832 8723648
-neonatal 1001 5987435 234724
-offload 1002 28357832 8723648
-parters 1002 28357832 8723648
-pityingly 1002 28357832 8723648
-puddings 1002 28357832 8723648
-Punjab 1001 5987435 234724
-quitter 1002 28357832 8723648
-realtor 1001 5987435 234724
-relaxing 1001 5987435 234724
-repetitions 1001 5987435 234724
-resumes 1001 5987435 234724
-Romans 1002 28357832 8723648
-rusting 1001 5987435 234724
-scholastics 1001 5987435 234724
-skulking 1002 28357832 8723648
-stated 1002 28357832 8723648
-suites 1002 28357832 8723648
-sureties 1001 5987435 234724
-testicle 1002 28357832 8723648
-tinily 1002 28357832 8723648
-tragedies 1001 5987435 234724
-trimmings 1001 5987435 234724
-vacuuming 1001 5987435 234724
-ventilate 1001 5987435 234724
-wallet 1001 5987435 234724
-Weissmuller 1002 28357832 8723648
-Wotan 1002 28357832 8723648
-select t2.fld1,fld3,period,price,price2 from t2,t3 where t2.fld1>= 18201 and t2.fld1 <= 18811 and t2.fld1=t3.t2nr and period = 1001 and t2.companynr = 37;
-fld1 fld3 period price price2
-018201 relaxing 1001 5987435 234724
-018601 vacuuming 1001 5987435 234724
-018801 inch 1001 5987435 234724
-018811 repetitions 1001 5987435 234724
-create table t4 (
-companynr tinyint(2) unsigned zerofill NOT NULL default '00',
-companyname char(30) NOT NULL default '',
-PRIMARY KEY (companynr),
-UNIQUE KEY companyname(companyname)
-) ENGINE=MyISAM MAX_ROWS=50 PACK_KEYS=1 COMMENT='companynames';
-select STRAIGHT_JOIN t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select SQL_SMALL_RESULT t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select * from t1,t1 t12;
-Period Varor_period Period Varor_period
-9410 9412 9410 9412
-select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505;
-fld1 fld1
-250501 250501
-250502 250501
-250503 250501
-250504 250501
-250505 250501
-250501 250502
-250502 250502
-250503 250502
-250504 250502
-250505 250502
-250501 250503
-250502 250503
-250503 250503
-250504 250503
-250505 250503
-250501 250504
-250502 250504
-250503 250504
-250504 250504
-250505 250504
-250501 250505
-250502 250505
-250503 250505
-250504 250505
-250505 250505
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-insert into t2 (fld1, companynr) values (999999,99);
-select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-companynr companyname
-99 NULL
-select count(*) from t2 left join t4 using (companynr) where t4.companynr is not null;
-count(*)
-1199
-explain select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1 Using where; Not exists
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200 Using where; Not exists
-select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-companynr companyname
-select count(*) from t2 left join t4 using (companynr) where companynr is not null;
-count(*)
-1200
-explain select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-delete from t2 where fld1=999999;
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 and t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 and companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0 or t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where ifnull(t2.companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0 or companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where ifnull(companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-SET optimizer_switch=@save_optimizer_switch;
-select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-companynr companynr
-37 36
-41 40
-explain select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 index NULL PRIMARY 1 NULL 12 Using index; Using temporary
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where; Using join buffer (flat, BNL join)
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where t2.fld1 = 38208 and t2.fld1=t3.t2nr and period = 1008 or t2.fld1 = 38008 and t2.fld1 =t3.t2nr and period = 1008;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t2.fld1 = 38208 or t2.fld1 = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t3.t2nr = 38208 or t3.t2nr = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select period from t1 where (((period > 0) or period < 10000 or (period = 1900)) and (period=1900 and period <= 1901) or (period=1903 and (period=1903)) and period>=1902) or ((period=1904 or period=1905) or (period=1906 or period>1907)) or (period=1908 and period = 1909);
-period
-9410
-select period from t1 where ((period > 0 and period < 1) or (((period > 0 and period < 100) and (period > 10)) or (period > 10)) or (period > 0 and (period > 5 or period > 6)));
-period
-9410
-select a.fld1 from t2 as a,t2 b where ((a.fld1 = 250501 and a.fld1=b.fld1) or a.fld1=250502 or a.fld1=250503 or (a.fld1=250505 and a.fld1<=b.fld1 and b.fld1>=a.fld1)) and a.fld1=b.fld1;
-fld1
-250501
-250502
-250503
-250505
-select fld1 from t2 where fld1 in (250502,98005,98006,250503,250605,250606) and fld1 >=250502 and fld1 not in (250605,250606);
-fld1
-250502
-250503
-select fld1 from t2 where fld1 between 250502 and 250504;
-fld1
-250502
-250503
-250504
-select fld3 from t2 where (((fld3 like "_%L%" ) or (fld3 like "%ok%")) and ( fld3 like "L%" or fld3 like "G%")) and fld3 like "L%" ;
-fld3
-label
-labeled
-labeled
-landslide
-laterally
-leaflet
-lewdly
-Lillian
-luckily
-select count(*) from t1;
-count(*)
-1
-select companynr,count(*),sum(fld1) from t2 group by companynr;
-companynr count(*) sum(fld1)
-00 82 10355753
-29 95 14473298
-34 70 17788966
-36 215 22786296
-37 588 83602098
-40 37 6618386
-41 52 12816335
-50 11 1595438
-53 4 793210
-58 23 2254293
-65 10 2284055
-68 12 3097288
-select companynr,count(*) from t2 group by companynr order by companynr desc limit 5;
-companynr count(*)
-68 12
-65 10
-58 23
-53 4
-50 11
-select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-explain extended select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 100.00 Using where
-Warnings:
-Note 1003 select count(0) AS `count(*)`,min(`test`.`t2`.`fld4`) AS `min(fld4)`,max(`test`.`t2`.`fld4`) AS `max(fld4)`,sum(`test`.`t2`.`fld1`) AS `sum(fld1)`,avg(`test`.`t2`.`fld1`) AS `avg(fld1)`,std(`test`.`t2`.`fld1`) AS `std(fld1)`,variance(`test`.`t2`.`fld1`) AS `variance(fld1)` from `test`.`t2` where `test`.`t2`.`companynr` = 34 and `test`.`t2`.`fld4` <> ''
-select companynr,count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 group by companynr limit 3;
-companynr count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-00 82 Anthony windmills 10355753 126289.6707 115550.9757 13352027981.7087
-29 95 abut wetness 14473298 152350.5053 8368.5480 70032594.9026
-34 70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-select companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select /*! SQL_SMALL_RESULT */ companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select companynr,count(price),sum(price),min(price),max(price),avg(price) from t3 group by companynr ;
-companynr count(price) sum(price) min(price) max(price) avg(price)
-37 12543 309394878010 5987435 39654943 24666736.6667
-78 8362 414611089292 726498 98439034 49582766.0000
-101 4181 3489454238 834598 834598 834598.0000
-154 4181 4112197254950 983543950 983543950 983543950.0000
-311 4181 979599938 234298 234298 234298.0000
-447 4181 9929180954 2374834 2374834 2374834.0000
-512 4181 3288532102 786542 786542 786542.0000
-select distinct mod(companynr,10) from t4 group by companynr;
-mod(companynr,10)
-0
-9
-4
-6
-7
-1
-3
-8
-5
-select distinct 1 from t4 group by companynr;
-1
-1
-select count(distinct fld1) from t2;
-count(distinct fld1)
-1199
-select companynr,count(distinct fld1) from t2 group by companynr;
-companynr count(distinct fld1)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(*) from t2 group by companynr;
-companynr count(*)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,1000))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,1000)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,200))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,200)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct floor(fld1/100)) from t2 group by companynr;
-companynr count(distinct floor(fld1/100))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select companynr,count(distinct concat(repeat(65,1000),floor(fld1/100))) from t2 group by companynr;
-companynr count(distinct concat(repeat(65,1000),floor(fld1/100)))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select sum(fld1),fld3 from t2 where fld3="Romans" group by fld1 limit 10;
-sum(fld1) fld3
-11402 Romans
-select name,count(*) from t3 where name='cloakroom' group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name='cloakroom' and price>10 group by name;
-name count(*)
-cloakroom 4181
-select count(*) from t3 where name='cloakroom' and price2=823742;
-count(*)
-4181
-select name,count(*) from t3 where name='cloakroom' and price2=823742 group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name >= "extramarital" and price <= 39654943 group by name;
-name count(*)
-extramarital 4181
-gazer 4181
-gems 4181
-Iranizes 4181
-spates 4181
-tucked 4181
-violinist 4181
-select t2.fld3,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld3 count(*)
-spates 4181
-select companynr|0,companyname from t4 group by 1;
-companynr|0 companyname
-0 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by t2.companynr order by companyname;
-companynr companyname count(*)
-29 company 1 95
-68 company 10 12
-50 company 11 11
-34 company 2 70
-36 company 3 215
-37 company 4 588
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-00 Unknown 82
-select t2.fld1,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld1 count(*)
-158402 4181
-select sum(Period)/count(*) from t1;
-sum(Period)/count(*)
-9410.0000
-select companynr,count(price) as "count",sum(price) as "sum" ,abs(sum(price)/count(price)-avg(price)) as "diff",(0+count(price))*companynr as func from t3 group by companynr;
-companynr count sum diff func
-37 12543 309394878010 0.0000 464091
-78 8362 414611089292 0.0000 652236
-101 4181 3489454238 0.0000 422281
-154 4181 4112197254950 0.0000 643874
-311 4181 979599938 0.0000 1300291
-447 4181 9929180954 0.0000 1868907
-512 4181 3288532102 0.0000 2140672
-select companynr,sum(price)/count(price) as avg from t3 group by companynr having avg > 70000000 order by avg;
-companynr avg
-154 983543950.0000
-select companynr,count(*) from t2 group by companynr order by 2 desc;
-companynr count(*)
-37 588
-36 215
-29 95
-00 82
-34 70
-41 52
-40 37
-58 23
-68 12
-50 11
-65 10
-53 4
-select companynr,count(*) from t2 where companynr > 40 group by companynr order by 2 desc;
-companynr count(*)
-41 52
-58 23
-68 12
-50 11
-65 10
-53 4
-select t2.fld4,t2.fld1,count(price),sum(price),min(price),max(price),avg(price) from t3,t2 where t3.companynr = 37 and t2.fld1 = t3.t2nr group by fld1,t2.fld4;
-fld4 fld1 count(price) sum(price) min(price) max(price) avg(price)
-teethe 000001 1 5987435 5987435 5987435 5987435.0000
-dreaded 011401 1 5987435 5987435 5987435 5987435.0000
-scholastics 011402 1 28357832 28357832 28357832 28357832.0000
-audiology 011403 1 39654943 39654943 39654943 39654943.0000
-wallet 011501 1 5987435 5987435 5987435 5987435.0000
-parters 011701 1 5987435 5987435 5987435 5987435.0000
-eschew 011702 1 28357832 28357832 28357832 28357832.0000
-quitter 011703 1 39654943 39654943 39654943 39654943.0000
-neat 012001 1 5987435 5987435 5987435 5987435.0000
-Steinberg 012003 1 39654943 39654943 39654943 39654943.0000
-balled 012301 1 5987435 5987435 5987435 5987435.0000
-persist 012302 1 28357832 28357832 28357832 28357832.0000
-attainments 012303 1 39654943 39654943 39654943 39654943.0000
-capably 012501 1 5987435 5987435 5987435 5987435.0000
-impulsive 012602 1 28357832 28357832 28357832 28357832.0000
-starlet 012603 1 39654943 39654943 39654943 39654943.0000
-featherweight 012701 1 5987435 5987435 5987435 5987435.0000
-pessimist 012702 1 28357832 28357832 28357832 28357832.0000
-daughter 012703 1 39654943 39654943 39654943 39654943.0000
-lawgiver 013601 1 5987435 5987435 5987435 5987435.0000
-stated 013602 1 28357832 28357832 28357832 28357832.0000
-readable 013603 1 39654943 39654943 39654943 39654943.0000
-testicle 013801 1 5987435 5987435 5987435 5987435.0000
-Parsifal 013802 1 28357832 28357832 28357832 28357832.0000
-leavings 013803 1 39654943 39654943 39654943 39654943.0000
-squeaking 013901 1 5987435 5987435 5987435 5987435.0000
-contrasted 016001 1 5987435 5987435 5987435 5987435.0000
-leftover 016201 1 5987435 5987435 5987435 5987435.0000
-whiteners 016202 1 28357832 28357832 28357832 28357832.0000
-erases 016301 1 5987435 5987435 5987435 5987435.0000
-Punjab 016302 1 28357832 28357832 28357832 28357832.0000
-Merritt 016303 1 39654943 39654943 39654943 39654943.0000
-sweetish 018001 1 5987435 5987435 5987435 5987435.0000
-dogging 018002 1 28357832 28357832 28357832 28357832.0000
-scornfully 018003 1 39654943 39654943 39654943 39654943.0000
-fetters 018012 1 28357832 28357832 28357832 28357832.0000
-bivalves 018013 1 39654943 39654943 39654943 39654943.0000
-skulking 018021 1 5987435 5987435 5987435 5987435.0000
-flint 018022 1 28357832 28357832 28357832 28357832.0000
-flopping 018023 1 39654943 39654943 39654943 39654943.0000
-Judas 018032 1 28357832 28357832 28357832 28357832.0000
-vacuuming 018033 1 39654943 39654943 39654943 39654943.0000
-medical 018041 1 5987435 5987435 5987435 5987435.0000
-bloodbath 018042 1 28357832 28357832 28357832 28357832.0000
-subschema 018043 1 39654943 39654943 39654943 39654943.0000
-interdependent 018051 1 5987435 5987435 5987435 5987435.0000
-Graves 018052 1 28357832 28357832 28357832 28357832.0000
-neonatal 018053 1 39654943 39654943 39654943 39654943.0000
-sorters 018061 1 5987435 5987435 5987435 5987435.0000
-epistle 018062 1 28357832 28357832 28357832 28357832.0000
-Conley 018101 1 5987435 5987435 5987435 5987435.0000
-lectured 018102 1 28357832 28357832 28357832 28357832.0000
-Abraham 018103 1 39654943 39654943 39654943 39654943.0000
-cage 018201 1 5987435 5987435 5987435 5987435.0000
-hushes 018202 1 28357832 28357832 28357832 28357832.0000
-Simla 018402 1 28357832 28357832 28357832 28357832.0000
-reporters 018403 1 39654943 39654943 39654943 39654943.0000
-coexist 018601 1 5987435 5987435 5987435 5987435.0000
-Beebe 018602 1 28357832 28357832 28357832 28357832.0000
-Taoism 018603 1 39654943 39654943 39654943 39654943.0000
-Connally 018801 1 5987435 5987435 5987435 5987435.0000
-fetched 018802 1 28357832 28357832 28357832 28357832.0000
-checkpoints 018803 1 39654943 39654943 39654943 39654943.0000
-gritty 018811 1 5987435 5987435 5987435 5987435.0000
-firearm 018812 1 28357832 28357832 28357832 28357832.0000
-minima 019101 1 5987435 5987435 5987435 5987435.0000
-Selfridge 019102 1 28357832 28357832 28357832 28357832.0000
-disable 019103 1 39654943 39654943 39654943 39654943.0000
-witchcraft 019201 1 5987435 5987435 5987435 5987435.0000
-betroth 030501 1 5987435 5987435 5987435 5987435.0000
-Manhattanize 030502 1 28357832 28357832 28357832 28357832.0000
-imprint 030503 1 39654943 39654943 39654943 39654943.0000
-swelling 031901 1 5987435 5987435 5987435 5987435.0000
-interrelationships 036001 1 5987435 5987435 5987435 5987435.0000
-riser 036002 1 28357832 28357832 28357832 28357832.0000
-bee 038001 1 5987435 5987435 5987435 5987435.0000
-kanji 038002 1 28357832 28357832 28357832 28357832.0000
-dental 038003 1 39654943 39654943 39654943 39654943.0000
-railway 038011 1 5987435 5987435 5987435 5987435.0000
-validate 038012 1 28357832 28357832 28357832 28357832.0000
-normalizes 038013 1 39654943 39654943 39654943 39654943.0000
-Kline 038101 1 5987435 5987435 5987435 5987435.0000
-Anatole 038102 1 28357832 28357832 28357832 28357832.0000
-partridges 038103 1 39654943 39654943 39654943 39654943.0000
-recruited 038201 1 5987435 5987435 5987435 5987435.0000
-dimensions 038202 1 28357832 28357832 28357832 28357832.0000
-Chicana 038203 1 39654943 39654943 39654943 39654943.0000
-select t3.companynr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 group by companynr,fld3;
-companynr fld3 sum(price)
-512 boat 786542
-512 capably 786542
-512 cupboard 786542
-512 decliner 786542
-512 descendants 786542
-512 dopers 786542
-512 erases 786542
-512 Micronesia 786542
-512 Miles 786542
-512 skies 786542
-select t2.companynr,count(*),min(fld3),max(fld3),sum(price),avg(price) from t2,t3 where t3.companynr >= 30 and t3.companynr <= 58 and t3.t2nr = t2.fld1 and 1+1=2 group by t2.companynr;
-companynr count(*) min(fld3) max(fld3) sum(price) avg(price)
-00 1 Omaha Omaha 5987435 5987435.0000
-36 1 dubbed dubbed 28357832 28357832.0000
-37 83 Abraham Wotan 1908978016 22999735.1325
-50 2 scribbled tapestry 68012775 34006387.5000
-select t3.companynr+0,t3.t2nr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 37 group by 1,t3.t2nr,fld3,fld3,fld3,fld3,fld3 order by fld1;
-t3.companynr+0 t2nr fld3 sum(price)
-37 1 Omaha 5987435
-37 11401 breaking 5987435
-37 11402 Romans 28357832
-37 11403 intercepted 39654943
-37 11501 bewilderingly 5987435
-37 11701 astound 5987435
-37 11702 admonishing 28357832
-37 11703 sumac 39654943
-37 12001 flanking 5987435
-37 12003 combed 39654943
-37 12301 Eulerian 5987435
-37 12302 dubbed 28357832
-37 12303 Kane 39654943
-37 12501 annihilates 5987435
-37 12602 Wotan 28357832
-37 12603 snatching 39654943
-37 12701 grazing 5987435
-37 12702 Baird 28357832
-37 12703 celery 39654943
-37 13601 handgun 5987435
-37 13602 foldout 28357832
-37 13603 mystic 39654943
-37 13801 intelligibility 5987435
-37 13802 Augustine 28357832
-37 13803 teethe 39654943
-37 13901 scholastics 5987435
-37 16001 audiology 5987435
-37 16201 wallet 5987435
-37 16202 parters 28357832
-37 16301 eschew 5987435
-37 16302 quitter 28357832
-37 16303 neat 39654943
-37 18001 jarring 5987435
-37 18002 tinily 28357832
-37 18003 balled 39654943
-37 18012 impulsive 28357832
-37 18013 starlet 39654943
-37 18021 lawgiver 5987435
-37 18022 stated 28357832
-37 18023 readable 39654943
-37 18032 testicle 28357832
-37 18033 Parsifal 39654943
-37 18041 Punjab 5987435
-37 18042 Merritt 28357832
-37 18043 Quixotism 39654943
-37 18051 sureties 5987435
-37 18052 puddings 28357832
-37 18053 tapestry 39654943
-37 18061 trimmings 5987435
-37 18062 humility 28357832
-37 18101 tragedies 5987435
-37 18102 skulking 28357832
-37 18103 flint 39654943
-37 18201 relaxing 5987435
-37 18202 offload 28357832
-37 18402 suites 28357832
-37 18403 lists 39654943
-37 18601 vacuuming 5987435
-37 18602 dentally 28357832
-37 18603 humanness 39654943
-37 18801 inch 5987435
-37 18802 Weissmuller 28357832
-37 18803 irresponsibly 39654943
-37 18811 repetitions 5987435
-37 18812 Antares 28357832
-37 19101 ventilate 5987435
-37 19102 pityingly 28357832
-37 19103 interdependent 39654943
-37 19201 Graves 5987435
-37 30501 neonatal 5987435
-37 30502 scribbled 28357832
-37 30503 chafe 39654943
-37 31901 realtor 5987435
-37 36001 elite 5987435
-37 36002 funereal 28357832
-37 38001 Conley 5987435
-37 38002 lectured 28357832
-37 38003 Abraham 39654943
-37 38011 groupings 5987435
-37 38012 dissociate 28357832
-37 38013 coexist 39654943
-37 38101 rusting 5987435
-37 38102 galling 28357832
-37 38103 obliterates 39654943
-37 38201 resumes 5987435
-37 38202 analyzable 28357832
-37 38203 terminator 39654943
-select sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1= t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008;
-sum(price)
-234298
-select t2.fld1,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1 = t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008 or t3.t2nr = t2.fld1 and t2.fld1 = 38008 group by t2.fld1;
-fld1 sum(price)
-038008 234298
-explain select fld3 from t2 where 1>2 or 2>3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select fld3 from t2 where fld1=fld1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199
-select companynr,fld1 from t2 HAVING fld1=250501 or fld1=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,fld1 from t2 WHERE fld1>=250501 HAVING fld1<=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,count(*) as count,sum(fld1) as sum from t2 group by companynr having count > 40 and sum/count >= 120000;
-companynr count sum
-00 82 10355753
-29 95 14473298
-34 70 17788966
-37 588 83602098
-41 52 12816335
-select companynr from t2 group by companynr having count(*) > 40 and sum(fld1)/count(*) >= 120000 ;
-companynr
-00
-29
-34
-37
-41
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by companyname having t2.companynr >= 40;
-companynr companyname count(*)
-68 company 10 12
-50 company 11 11
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-select count(*) from t2;
-count(*)
-1199
-select count(*) from t2 where fld1 < 098024;
-count(*)
-387
-select min(fld1) from t2 where fld1>= 098024;
-min(fld1)
-98024
-select max(fld1) from t2 where fld1>= 098024;
-max(fld1)
-1232609
-select count(*) from t3 where price2=76234234;
-count(*)
-4181
-select count(*) from t3 where companynr=512 and price2=76234234;
-count(*)
-4181
-explain select min(fld1),max(fld1),count(*) from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(fld1),max(fld1),count(*) from t2;
-min(fld1) max(fld1) count(*)
-0 1232609 1199
-select min(t2nr),max(t2nr) from t3 where t2nr=2115 and price2=823742;
-min(t2nr) max(t2nr)
-2115 2115
-select count(*),min(t2nr),max(t2nr) from t3 where name='spates' and companynr=78;
-count(*) min(t2nr) max(t2nr)
-4181 4 41804
-select t2nr,count(*) from t3 where name='gems' group by t2nr limit 20;
-t2nr count(*)
-9 1
-19 1
-29 1
-39 1
-49 1
-59 1
-69 1
-79 1
-89 1
-99 1
-109 1
-119 1
-129 1
-139 1
-149 1
-159 1
-169 1
-179 1
-189 1
-199 1
-select max(t2nr) from t3 where price=983543950;
-max(t2nr)
-41807
-select t1.period from t3 = t1 limit 1;
-period
-1001
-select t1.period from t1 as t1 limit 1;
-period
-9410
-select t1.period as "Nuvarande period" from t1 as t1 limit 1;
-Nuvarande period
-9410
-select period as ok_period from t1 limit 1;
-ok_period
-9410
-select period as ok_period from t1 group by ok_period limit 1;
-ok_period
-9410
-select 1+1 as summa from t1 group by summa limit 1;
-summa
-2
-select period as "Nuvarande period" from t1 group by "Nuvarande period" limit 1;
-Nuvarande period
-9410
-show tables;
-Tables_in_test
-t1
-t2
-t3
-t4
-show tables from test like "s%";
-Tables_in_test (s%)
-show tables from test like "t?";
-Tables_in_test (t?)
-show full columns from t2;
-Field Type Collation Null Key Default Extra Privileges Comment
-auto int(11) NULL NO PRI NULL auto_increment #
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-companynr tinyint(2) unsigned zerofill NULL NO 00 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 'f%';
-Field Type Collation Null Key Default Extra Privileges Comment
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 's%';
-Field Type Collation Null Key Default Extra Privileges Comment
-show keys from t2;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t2 0 PRIMARY 1 auto A 1199 NULL NULL BTREE
-t2 0 fld1 1 fld1 A 1199 NULL NULL BTREE
-t2 1 fld3 1 fld3 A NULL NULL NULL BTREE
-drop table t4, t3, t2, t1;
-CREATE TABLE t1 (
-cont_nr int(11) NOT NULL auto_increment,
-ver_nr int(11) NOT NULL default '0',
-aufnr int(11) NOT NULL default '0',
-username varchar(50) NOT NULL default '',
-hdl_nr int(11) NOT NULL default '0',
-eintrag date NOT NULL default '0000-00-00',
-st_klasse varchar(40) NOT NULL default '',
-st_wert varchar(40) NOT NULL default '',
-st_zusatz varchar(40) NOT NULL default '',
-st_bemerkung varchar(255) NOT NULL default '',
-kunden_art varchar(40) NOT NULL default '',
-mcbs_knr int(11) default NULL,
-mcbs_aufnr int(11) NOT NULL default '0',
-schufa_status char(1) default '?',
-bemerkung text,
-wirknetz text,
-wf_igz int(11) NOT NULL default '0',
-tarifcode varchar(80) default NULL,
-recycle char(1) default NULL,
-sim varchar(30) default NULL,
-mcbs_tpl varchar(30) default NULL,
-emp_nr int(11) NOT NULL default '0',
-laufzeit int(11) default NULL,
-hdl_name varchar(30) default NULL,
-prov_hdl_nr int(11) NOT NULL default '0',
-auto_wirknetz varchar(50) default NULL,
-auto_billing varchar(50) default NULL,
-touch timestamp NOT NULL,
-kategorie varchar(50) default NULL,
-kundentyp varchar(20) NOT NULL default '',
-sammel_rech_msisdn varchar(30) NOT NULL default '',
-p_nr varchar(9) NOT NULL default '',
-suffix char(3) NOT NULL default '',
-PRIMARY KEY (cont_nr),
-KEY idx_aufnr(aufnr),
-KEY idx_hdl_nr(hdl_nr),
-KEY idx_st_klasse(st_klasse),
-KEY ver_nr(ver_nr),
-KEY eintrag_idx(eintrag),
-KEY emp_nr_idx(emp_nr),
-KEY wf_igz(wf_igz),
-KEY touch(touch),
-KEY hdl_tag(eintrag,hdl_nr),
-KEY prov_hdl_nr(prov_hdl_nr),
-KEY mcbs_aufnr(mcbs_aufnr),
-KEY kundentyp(kundentyp),
-KEY p_nr(p_nr,suffix)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3359356,405,3359356,'Mustermann Musterfrau',52500,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1485525,2122316,'+','','N',1909160,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',3,24,'MobilCom Shop Koeln',52500,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359357,468,3359357,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1503580,2139699,'+','','P',1909171,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359358,407,3359358,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1501358,2137473,'N','','N',1909159,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359359,468,3359359,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1507831,2143894,'+','','P',1909162,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359360,0,0,'Mustermann Musterfrau',29674907,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1900169997,2414578,'+',NULL,'N',1909148,'',NULL,NULL,'RV99066_2',20,NULL,'POS',29674907,NULL,NULL,20010202105916,'Mobilfunk','','','97317481','007');
-INSERT INTO t1 VALUES (3359361,406,3359361,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag storniert','','(7001-84):Storno, Kd. möchte nicht mehr','privat',NULL,0,'+','','P',1909150,'MobilComSuper92000D1(Akquise)',NULL,NULL,'MS9ND1',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359362,406,3359362,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1509984,2145874,'+','','P',1909154,'MobilComSuper92000D1(Akquise)',NULL,NULL,'MS9ND1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-SELECT ELT(FIELD(kundentyp,'PP','PPA','PG','PGA','FK','FKA','FP','FPA','K','KA','V','VA',''), 'Privat (Private Nutzung)','Privat (Private Nutzung) Sitz im Ausland','Privat (geschaeftliche Nutzung)','Privat (geschaeftliche Nutzung) Sitz im Ausland','Firma (Kapitalgesellschaft)','Firma (Kapitalgesellschaft) Sitz im Ausland','Firma (Personengesellschaft)','Firma (Personengesellschaft) Sitz im Ausland','oeff. rechtl. Koerperschaft','oeff. rechtl. Koerperschaft Sitz im Ausland','Eingetragener Verein','Eingetragener Verein Sitz im Ausland','Typ unbekannt') AS Kundentyp ,kategorie FROM t1 WHERE hdl_nr < 2000000 AND kategorie IN ('Prepaid','Mobilfunk') AND st_klasse = 'Workflow' GROUP BY kundentyp ORDER BY kategorie;
-Kundentyp kategorie
-Privat (Private Nutzung) Mobilfunk
-Warnings:
-Warning 1052 Column 'kundentyp' in group statement is ambiguous
-drop table t1;
-SHOW STATUS LIKE 'Compression';
-Variable_name Value
-Compression ON
-connection default;
-disconnect comp_con;
diff --git a/mysql-test/r/concurrent_innodb_safelog.result b/mysql-test/r/concurrent_innodb_safelog.result
deleted file mode 100644
index 27889777ac1..00000000000
--- a/mysql-test/r/concurrent_innodb_safelog.result
+++ /dev/null
@@ -1,800 +0,0 @@
-SET GLOBAL TRANSACTION ISOLATION LEVEL REPEATABLE READ;
-connection default;
-SET SQL_MODE="";
-SELECT @@global.tx_isolation;
-@@global.tx_isolation
-REPEATABLE-READ
-SELECT @@global.innodb_locks_unsafe_for_binlog;
-@@global.innodb_locks_unsafe_for_binlog
-0
-# keep_locks == 1
-GRANT USAGE ON test.* TO mysqltest@localhost;
-drop table if exists t1;
-
-**
-** two UPDATE's running and both changing distinct result sets
-**
-connect thread1, localhost, mysqltest,,;
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1(eta int(11) not null, tipo int(11), c varchar(255));
-insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
-insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
-insert into t1 values (20,2,"ddddddddddddddddddddddddddddddddddddddddddd");
-insert into t1 values (30,1,"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
-insert into t1 values (40,2,"fffffffffffffffffffffffffffffffffffffffffff");
-insert into t1 values (50,1,"ggggggggggggggggggggggggggggggggggggggggggg");
-insert into t1 values (60,2,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
-insert into t1 values (70,1,"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii");
-insert into t1 values (80,22,"jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj");
-insert into t1 values (90,11,"kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
-** Get user level lock (ULL) for thread 1
-select get_lock("hello",10);
-get_lock("hello",10)
-1
-connect thread2, localhost, mysqltest,,;
-connection thread2;
-** Start transaction for thread 2
-begin;
-** Update will cause a table scan and a new ULL will
-** be created and blocked on the first row where tipo=11.
-update t1 set eta=1+get_lock("hello",10)*0 where tipo=11;
-connection thread1;
-** Start new transaction for thread 1
-begin;
-** Update on t1 will cause a table scan which will be blocked because
-** the previously initiated table scan applied exclusive key locks on
-** all primary keys.
-** Not so if innodb_locks_unsafe_for_binlog is set. The locks that
-** do not match the WHERE condition are released.
-update t1 set eta=2 where tipo=22;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-** Release user level name lock from thread 1. This will cause the ULL
-** on thread 2 to end its wait.
-DO release_lock("hello");
-** Table is now updated with a new eta on tipo=22 for thread 1.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-** Release the lock and collect result from update on thread 2
-DO release_lock("hello");
-** Table should have eta updates where tipo=11 but updates made by
-** thread 1 shouldn't be visible yet.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-1 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-** Sending commit on thread 2.
-commit;
-connection thread1;
-** Make sure table reads didn't change yet on thread 1.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-** And send final commit on thread 1.
-commit;
-** Table should now be updated by both updates in the order of
-** thread 1,2.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-1 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-** Make sure the output is similar for t1.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-1 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread1;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-1 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection default;
-drop table t1;
-
-**
-** two UPDATE's running and one changing result set
-**
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1(eta int(11) not null, tipo int(11), c varchar(255));
-insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
-insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
-insert into t1 values (20,2,"ddddddddddddddddddddddddddddddddddddddddddd");
-insert into t1 values (30,1,"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
-insert into t1 values (40,2,"fffffffffffffffffffffffffffffffffffffffffff");
-insert into t1 values (50,1,"ggggggggggggggggggggggggggggggggggggggggggg");
-insert into t1 values (60,2,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
-insert into t1 values (70,1,"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii");
-insert into t1 values (80,22,"jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj");
-insert into t1 values (90,11,"kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
-** Get ULL "hello" on thread 1
-select get_lock("hello",10);
-get_lock("hello",10)
-1
-connection thread2;
-** Start transaction on thread 2
-begin;
-** Update will cause a table scan.
-** This will cause a hang on the first row where tipo=1 until the
-** blocking ULL is released.
-update t1 set eta=1+get_lock("hello",10)*0 where tipo=1;
-connection thread1;
-** Start transaction on thread 1
-begin;
-** Update on t1 will cause a table scan which will be blocked because
-** the previously initiated table scan applied exclusive key locks on
-** all primary keys.
-** Not so if innodb_locks_unsafe_for_binlog is set. The locks that
-** do not match the WHERE condition are released.
-update t1 set tipo=1 where tipo=2;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-** Release ULL. This will release the next waiting ULL on thread 2.
-DO release_lock("hello");
-** The table should still be updated with updates for thread 1 only:
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-** Release the lock and collect result from thread 2:
-DO release_lock("hello");
-** Seen from thread 2 the table should have been updated on four
-** places.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-1 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-1 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-1 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-1 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-commit;
-connection thread1;
-** Thread 2 has committed but the result should remain the same for
-** thread 1 (updated on three places):
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-commit;
-** After a commit the table should be merged with the previous
-** commit.
-** This select should show both updates:
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-1 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-1 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-1 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-1 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-1 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-1 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-1 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-1 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread1;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-1 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-1 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-1 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-1 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection default;
-drop table t1;
-
-**
-** One UPDATE and one INSERT .... Monty's test
-**
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1 (a int not null, b int not null);
-insert into t1 values (1,1),(2,1),(3,1),(4,1);
-** Create ULL 'hello2'
-select get_lock("hello2",10);
-get_lock("hello2",10)
-1
-connection thread2;
-** Begin a new transaction on thread 2
-begin;
-** Update will create a table scan which creates a ULL where a=2;
-** this will hang waiting on thread 1.
-update t1 set b=10+get_lock(concat("hello",a),10)*0 where a=2;
-connection thread1;
-** Insert new values to t1 from thread 1; this created an implicit
-** commit since there are no on-going transactions.
-insert into t1 values (1,1);
-** Release the ULL (thread 2 updates will finish).
-DO release_lock("hello2");
-** ..but thread 1 will still see t1 as if nothing has happend:
-select * from t1;
-a b
-1 1
-2 1
-3 1
-4 1
-1 1
-connection thread2;
-** Collect results from thread 2 and release the lock.
-DO release_lock("hello2");
-** The table should look like the original+updates for thread 2,
-** and consist of new rows:
-select * from t1;
-a b
-1 1
-2 10
-3 1
-4 1
-1 1
-** Commit changes from thread 2
-commit;
-connection default;
-drop table t1;
-
-**
-** one UPDATE changing result set and SELECT ... FOR UPDATE
-**
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1(eta int(11) not null, tipo int(11), c varchar(255));
-insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
-insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
-insert into t1 values (20,2,"ddddddddddddddddddddddddddddddddddddddddddd");
-insert into t1 values (30,1,"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
-insert into t1 values (40,2,"fffffffffffffffffffffffffffffffffffffffffff");
-insert into t1 values (50,1,"ggggggggggggggggggggggggggggggggggggggggggg");
-insert into t1 values (60,2,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
-insert into t1 values (70,1,"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii");
-insert into t1 values (80,22,"jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj");
-insert into t1 values (90,11,"kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
-connection thread2;
-** Begin a new transaction on thread 2
-begin;
-** Select a range for update.
-select * from t1 where tipo=2 FOR UPDATE;
-eta tipo c
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-connection thread1;
-** Begin a new transaction on thread 1
-begin;
-** Update the same range which is marked for update on thread 2; this
-** will hang because of row locks.
-update t1 set tipo=1 where tipo=2;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-** After the update the table will be unmodified because the previous
-** transaction failed and was rolled back.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-** The table should look unmodified from thread 2.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-** Sending a commit should release the row locks and enable
-** thread 1 to complete the transaction.
-commit;
-connection thread1;
-** Commit on thread 1.
-commit;
-connection thread2;
-** The table should not have been changed.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread1;
-** Even on thread 1:
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection default;
-drop table t1;
-
-**
-** one UPDATE not changing result set and SELECT ... FOR UPDATE
-**
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1(eta int(11) not null, tipo int(11), c varchar(255));
-insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
-insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
-insert into t1 values (20,2,"ddddddddddddddddddddddddddddddddddddddddddd");
-insert into t1 values (30,1,"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
-insert into t1 values (40,2,"fffffffffffffffffffffffffffffffffffffffffff");
-insert into t1 values (50,1,"ggggggggggggggggggggggggggggggggggggggggggg");
-insert into t1 values (60,2,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
-insert into t1 values (70,1,"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii");
-insert into t1 values (80,22,"jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj");
-insert into t1 values (90,11,"kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
-connection thread2;
-** Starting new transaction on thread 2.
-begin;
-** Starting SELECT .. FOR UPDATE
-select * from t1 where tipo=2 FOR UPDATE;
-eta tipo c
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-connection thread1;
-
-** Starting new transaction on thread 1
-begin;
-** Updating single row using a table scan. This will time out
-** because of ongoing transaction on thread 1 holding lock on
-** all primary keys in the scan.
-** Not so if innodb_locks_unsafe_for_binlog is set. The locks that
-** do not match the WHERE condition are released.
-update t1 set tipo=11 where tipo=22;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-** After the time out the transaction is aborted; no rows should
-** have changed.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-** The same thing should hold true for the transaction on
-** thread 2
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-commit;
-connection thread1;
-commit;
-connection thread2;
-** Even after committing:
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread1;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection default;
-drop table t1;
-
-**
-** two SELECT ... FOR UPDATE
-**
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1(eta int(11) not null, tipo int(11), c varchar(255));
-insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
-insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
-insert into t1 values (20,2,"ddddddddddddddddddddddddddddddddddddddddddd");
-insert into t1 values (30,1,"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
-insert into t1 values (40,2,"fffffffffffffffffffffffffffffffffffffffffff");
-insert into t1 values (50,1,"ggggggggggggggggggggggggggggggggggggggggggg");
-insert into t1 values (60,2,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
-insert into t1 values (70,1,"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii");
-insert into t1 values (80,22,"jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj");
-insert into t1 values (90,11,"kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
-connection thread2;
-** Begin a new transaction on thread 2
-begin;
-select * from t1 where tipo=2 FOR UPDATE;
-eta tipo c
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-connection thread1;
-** Begin a new transaction on thread 1
-begin;
-** Selecting a range for update by table scan will be blocked
-** because of on-going transaction on thread 2.
-select * from t1 where tipo=1 FOR UPDATE;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection thread2;
-** Table will be unchanged and the select command will not be
-** blocked:
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-** Commit transacton on thread 2.
-commit;
-connection thread1;
-** Commit transaction on thread 1.
-commit;
-connection thread2;
-** Make sure table isn't blocked on thread 2:
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread1;
-** Make sure table isn't blocked on thread 1:
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection default;
-drop table t1;
-
-**
-** one UPDATE changing result set and DELETE
-**
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1(eta int(11) not null, tipo int(11), c varchar(255));
-insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
-insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
-insert into t1 values (20,2,"ddddddddddddddddddddddddddddddddddddddddddd");
-insert into t1 values (30,1,"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
-insert into t1 values (40,2,"fffffffffffffffffffffffffffffffffffffffffff");
-insert into t1 values (50,1,"ggggggggggggggggggggggggggggggggggggggggggg");
-insert into t1 values (60,2,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
-insert into t1 values (70,1,"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii");
-insert into t1 values (80,22,"jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj");
-insert into t1 values (90,11,"kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
-connection thread2;
-begin;
-delete from t1 where tipo=2;
-connection thread1;
-begin;
-update t1 set tipo=1 where tipo=2;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-commit;
-connection thread1;
-commit;
-connection thread2;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread1;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection default;
-drop table t1;
-
-**
-** one UPDATE not changing result set and DELETE
-**
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1(eta int(11) not null, tipo int(11), c varchar(255));
-insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
-insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
-insert into t1 values (20,2,"ddddddddddddddddddddddddddddddddddddddddddd");
-insert into t1 values (30,1,"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
-insert into t1 values (40,2,"fffffffffffffffffffffffffffffffffffffffffff");
-insert into t1 values (50,1,"ggggggggggggggggggggggggggggggggggggggggggg");
-insert into t1 values (60,2,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
-insert into t1 values (70,1,"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii");
-insert into t1 values (80,22,"jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj");
-insert into t1 values (90,11,"kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
-connection thread2;
-begin;
-delete from t1 where tipo=2;
-connection thread1;
-begin;
-** Update on t1 will cause a table scan which will be blocked because
-** the previously initiated table scan applied exclusive key locks on
-** all primary keys.
-** Not so if innodb_locks_unsafe_for_binlog is set. The locks that
-** do not match the WHERE condition are released.
-update t1 set tipo=1 where tipo=22;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-commit;
-connection thread1;
-commit;
-connection thread2;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread1;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-** Cleanup
-connection thread1;
-disconnect thread1;
-connection thread2;
-disconnect thread2;
-connection default;
-drop table t1;
-drop user mysqltest@localhost;
-SET SQL_MODE=default;
diff --git a/mysql-test/r/concurrent_innodb_unsafelog.result b/mysql-test/r/concurrent_innodb_unsafelog.result
deleted file mode 100644
index 39e757aeeb1..00000000000
--- a/mysql-test/r/concurrent_innodb_unsafelog.result
+++ /dev/null
@@ -1,796 +0,0 @@
-SET GLOBAL TRANSACTION ISOLATION LEVEL REPEATABLE READ;
-connection default;
-SET SQL_MODE="";
-SELECT @@global.tx_isolation;
-@@global.tx_isolation
-REPEATABLE-READ
-SELECT @@global.innodb_locks_unsafe_for_binlog;
-@@global.innodb_locks_unsafe_for_binlog
-1
-# keep_locks == 0
-GRANT USAGE ON test.* TO mysqltest@localhost;
-drop table if exists t1;
-
-**
-** two UPDATE's running and both changing distinct result sets
-**
-connect thread1, localhost, mysqltest,,;
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1(eta int(11) not null, tipo int(11), c varchar(255));
-insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
-insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
-insert into t1 values (20,2,"ddddddddddddddddddddddddddddddddddddddddddd");
-insert into t1 values (30,1,"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
-insert into t1 values (40,2,"fffffffffffffffffffffffffffffffffffffffffff");
-insert into t1 values (50,1,"ggggggggggggggggggggggggggggggggggggggggggg");
-insert into t1 values (60,2,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
-insert into t1 values (70,1,"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii");
-insert into t1 values (80,22,"jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj");
-insert into t1 values (90,11,"kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
-** Get user level lock (ULL) for thread 1
-select get_lock("hello",10);
-get_lock("hello",10)
-1
-connect thread2, localhost, mysqltest,,;
-connection thread2;
-** Start transaction for thread 2
-begin;
-** Update will cause a table scan and a new ULL will
-** be created and blocked on the first row where tipo=11.
-update t1 set eta=1+get_lock("hello",10)*0 where tipo=11;
-connection thread1;
-** Start new transaction for thread 1
-begin;
-** Update on t1 will cause a table scan which will be blocked because
-** the previously initiated table scan applied exclusive key locks on
-** all primary keys.
-** Not so if innodb_locks_unsafe_for_binlog is set. The locks that
-** do not match the WHERE condition are released.
-update t1 set eta=2 where tipo=22;
-** Release user level name lock from thread 1. This will cause the ULL
-** on thread 2 to end its wait.
-DO release_lock("hello");
-** Table is now updated with a new eta on tipo=22 for thread 1.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-2 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-** Release the lock and collect result from update on thread 2
-DO release_lock("hello");
-** Table should have eta updates where tipo=11 but updates made by
-** thread 1 shouldn't be visible yet.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-1 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-** Sending commit on thread 2.
-commit;
-connection thread1;
-** Make sure table reads didn't change yet on thread 1.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-2 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-** And send final commit on thread 1.
-commit;
-** Table should now be updated by both updates in the order of
-** thread 1,2.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-2 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-1 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-** Make sure the output is similar for t1.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-2 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-1 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread1;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-2 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-1 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection default;
-drop table t1;
-
-**
-** two UPDATE's running and one changing result set
-**
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1(eta int(11) not null, tipo int(11), c varchar(255));
-insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
-insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
-insert into t1 values (20,2,"ddddddddddddddddddddddddddddddddddddddddddd");
-insert into t1 values (30,1,"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
-insert into t1 values (40,2,"fffffffffffffffffffffffffffffffffffffffffff");
-insert into t1 values (50,1,"ggggggggggggggggggggggggggggggggggggggggggg");
-insert into t1 values (60,2,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
-insert into t1 values (70,1,"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii");
-insert into t1 values (80,22,"jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj");
-insert into t1 values (90,11,"kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
-** Get ULL "hello" on thread 1
-select get_lock("hello",10);
-get_lock("hello",10)
-1
-connection thread2;
-** Start transaction on thread 2
-begin;
-** Update will cause a table scan.
-** This will cause a hang on the first row where tipo=1 until the
-** blocking ULL is released.
-update t1 set eta=1+get_lock("hello",10)*0 where tipo=1;
-connection thread1;
-** Start transaction on thread 1
-begin;
-** Update on t1 will cause a table scan which will be blocked because
-** the previously initiated table scan applied exclusive key locks on
-** all primary keys.
-** Not so if innodb_locks_unsafe_for_binlog is set. The locks that
-** do not match the WHERE condition are released.
-update t1 set tipo=1 where tipo=2;
-** Release ULL. This will release the next waiting ULL on thread 2.
-DO release_lock("hello");
-** The table should still be updated with updates for thread 1 only:
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 1 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 1 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 1 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-** Release the lock and collect result from thread 2:
-DO release_lock("hello");
-** Seen from thread 2 the table should have been updated on four
-** places.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-1 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-1 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-1 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-1 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-commit;
-connection thread1;
-** Thread 2 has committed but the result should remain the same for
-** thread 1 (updated on three places):
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 1 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 1 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 1 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-commit;
-** After a commit the table should be merged with the previous
-** commit.
-** This select should show both updates:
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-1 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 1 ddddddddddddddddddddddddddddddddddddddddddd
-1 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 1 fffffffffffffffffffffffffffffffffffffffffff
-1 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 1 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-1 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-1 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 1 ddddddddddddddddddddddddddddddddddddddddddd
-1 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 1 fffffffffffffffffffffffffffffffffffffffffff
-1 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 1 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-1 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread1;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-1 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 1 ddddddddddddddddddddddddddddddddddddddddddd
-1 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 1 fffffffffffffffffffffffffffffffffffffffffff
-1 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 1 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-1 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection default;
-drop table t1;
-
-**
-** One UPDATE and one INSERT .... Monty's test
-**
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1 (a int not null, b int not null);
-insert into t1 values (1,1),(2,1),(3,1),(4,1);
-** Create ULL 'hello2'
-select get_lock("hello2",10);
-get_lock("hello2",10)
-1
-connection thread2;
-** Begin a new transaction on thread 2
-begin;
-** Update will create a table scan which creates a ULL where a=2;
-** this will hang waiting on thread 1.
-update t1 set b=10+get_lock(concat("hello",a),10)*0 where a=2;
-connection thread1;
-** Insert new values to t1 from thread 1; this created an implicit
-** commit since there are no on-going transactions.
-insert into t1 values (1,1);
-** Release the ULL (thread 2 updates will finish).
-DO release_lock("hello2");
-** ..but thread 1 will still see t1 as if nothing has happend:
-select * from t1;
-a b
-1 1
-2 1
-3 1
-4 1
-1 1
-connection thread2;
-** Collect results from thread 2 and release the lock.
-DO release_lock("hello2");
-** The table should look like the original+updates for thread 2,
-** and consist of new rows:
-select * from t1;
-a b
-1 1
-2 10
-3 1
-4 1
-1 1
-** Commit changes from thread 2
-commit;
-connection default;
-drop table t1;
-
-**
-** one UPDATE changing result set and SELECT ... FOR UPDATE
-**
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1(eta int(11) not null, tipo int(11), c varchar(255));
-insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
-insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
-insert into t1 values (20,2,"ddddddddddddddddddddddddddddddddddddddddddd");
-insert into t1 values (30,1,"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
-insert into t1 values (40,2,"fffffffffffffffffffffffffffffffffffffffffff");
-insert into t1 values (50,1,"ggggggggggggggggggggggggggggggggggggggggggg");
-insert into t1 values (60,2,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
-insert into t1 values (70,1,"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii");
-insert into t1 values (80,22,"jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj");
-insert into t1 values (90,11,"kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
-connection thread2;
-** Begin a new transaction on thread 2
-begin;
-** Select a range for update.
-select * from t1 where tipo=2 FOR UPDATE;
-eta tipo c
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-connection thread1;
-** Begin a new transaction on thread 1
-begin;
-** Update the same range which is marked for update on thread 2; this
-** will hang because of row locks.
-update t1 set tipo=1 where tipo=2;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-** After the update the table will be unmodified because the previous
-** transaction failed and was rolled back.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-** The table should look unmodified from thread 2.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-** Sending a commit should release the row locks and enable
-** thread 1 to complete the transaction.
-commit;
-connection thread1;
-** Commit on thread 1.
-commit;
-connection thread2;
-** The table should not have been changed.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread1;
-** Even on thread 1:
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection default;
-drop table t1;
-
-**
-** one UPDATE not changing result set and SELECT ... FOR UPDATE
-**
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1(eta int(11) not null, tipo int(11), c varchar(255));
-insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
-insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
-insert into t1 values (20,2,"ddddddddddddddddddddddddddddddddddddddddddd");
-insert into t1 values (30,1,"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
-insert into t1 values (40,2,"fffffffffffffffffffffffffffffffffffffffffff");
-insert into t1 values (50,1,"ggggggggggggggggggggggggggggggggggggggggggg");
-insert into t1 values (60,2,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
-insert into t1 values (70,1,"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii");
-insert into t1 values (80,22,"jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj");
-insert into t1 values (90,11,"kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
-connection thread2;
-** Starting new transaction on thread 2.
-begin;
-** Starting SELECT .. FOR UPDATE
-select * from t1 where tipo=2 FOR UPDATE;
-eta tipo c
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-connection thread1;
-
-** Starting new transaction on thread 1
-begin;
-** Updating single row using a table scan. This will time out
-** because of ongoing transaction on thread 1 holding lock on
-** all primary keys in the scan.
-** Not so if innodb_locks_unsafe_for_binlog is set. The locks that
-** do not match the WHERE condition are released.
-update t1 set tipo=11 where tipo=22;
-** After the time out the transaction is aborted; no rows should
-** have changed.
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 11 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-** The same thing should hold true for the transaction on
-** thread 2
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-commit;
-connection thread1;
-commit;
-connection thread2;
-** Even after committing:
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 11 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread1;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 11 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection default;
-drop table t1;
-
-**
-** two SELECT ... FOR UPDATE
-**
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1(eta int(11) not null, tipo int(11), c varchar(255));
-insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
-insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
-insert into t1 values (20,2,"ddddddddddddddddddddddddddddddddddddddddddd");
-insert into t1 values (30,1,"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
-insert into t1 values (40,2,"fffffffffffffffffffffffffffffffffffffffffff");
-insert into t1 values (50,1,"ggggggggggggggggggggggggggggggggggggggggggg");
-insert into t1 values (60,2,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
-insert into t1 values (70,1,"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii");
-insert into t1 values (80,22,"jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj");
-insert into t1 values (90,11,"kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
-connection thread2;
-** Begin a new transaction on thread 2
-begin;
-select * from t1 where tipo=2 FOR UPDATE;
-eta tipo c
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-connection thread1;
-** Begin a new transaction on thread 1
-begin;
-** Selecting a range for update by table scan will be blocked
-** because of on-going transaction on thread 2.
-select * from t1 where tipo=1 FOR UPDATE;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection thread2;
-** Table will be unchanged and the select command will not be
-** blocked:
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-** Commit transacton on thread 2.
-commit;
-connection thread1;
-** Commit transaction on thread 1.
-commit;
-connection thread2;
-** Make sure table isn't blocked on thread 2:
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread1;
-** Make sure table isn't blocked on thread 1:
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection default;
-drop table t1;
-
-**
-** one UPDATE changing result set and DELETE
-**
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1(eta int(11) not null, tipo int(11), c varchar(255));
-insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
-insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
-insert into t1 values (20,2,"ddddddddddddddddddddddddddddddddddddddddddd");
-insert into t1 values (30,1,"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
-insert into t1 values (40,2,"fffffffffffffffffffffffffffffffffffffffffff");
-insert into t1 values (50,1,"ggggggggggggggggggggggggggggggggggggggggggg");
-insert into t1 values (60,2,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
-insert into t1 values (70,1,"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii");
-insert into t1 values (80,22,"jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj");
-insert into t1 values (90,11,"kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
-connection thread2;
-begin;
-delete from t1 where tipo=2;
-connection thread1;
-begin;
-update t1 set tipo=1 where tipo=2;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-commit;
-connection thread1;
-commit;
-connection thread2;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread1;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection default;
-drop table t1;
-
-**
-** one UPDATE not changing result set and DELETE
-**
-connection thread1;
-** Set up table
-SET SESSION STORAGE_ENGINE = InnoDB;
-create table t1(eta int(11) not null, tipo int(11), c varchar(255));
-insert into t1 values (7,7, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-insert into t1 values (8,8, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
-insert into t1 values (10,1,"ccccccccccccccccccccccccccccccccccccccccccc");
-insert into t1 values (20,2,"ddddddddddddddddddddddddddddddddddddddddddd");
-insert into t1 values (30,1,"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
-insert into t1 values (40,2,"fffffffffffffffffffffffffffffffffffffffffff");
-insert into t1 values (50,1,"ggggggggggggggggggggggggggggggggggggggggggg");
-insert into t1 values (60,2,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
-insert into t1 values (70,1,"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii");
-insert into t1 values (80,22,"jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj");
-insert into t1 values (90,11,"kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
-connection thread2;
-begin;
-delete from t1 where tipo=2;
-connection thread1;
-begin;
-** Update on t1 will cause a table scan which will be blocked because
-** the previously initiated table scan applied exclusive key locks on
-** all primary keys.
-** Not so if innodb_locks_unsafe_for_binlog is set. The locks that
-** do not match the WHERE condition are released.
-update t1 set tipo=1 where tipo=22;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-20 2 ddddddddddddddddddddddddddddddddddddddddddd
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-40 2 fffffffffffffffffffffffffffffffffffffffffff
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-60 2 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 1 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread2;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 22 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-commit;
-connection thread1;
-commit;
-connection thread2;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 1 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-connection thread1;
-select * from t1;
-eta tipo c
-7 7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-8 8 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-10 1 ccccccccccccccccccccccccccccccccccccccccccc
-30 1 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-50 1 ggggggggggggggggggggggggggggggggggggggggggg
-70 1 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
-80 1 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-90 11 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-** Cleanup
-connection thread1;
-disconnect thread1;
-connection thread2;
-disconnect thread2;
-connection default;
-drop table t1;
-drop user mysqltest@localhost;
-SET SQL_MODE=default;
diff --git a/mysql-test/r/connect.result b/mysql-test/r/connect.result
deleted file mode 100644
index f36483e6d8d..00000000000
--- a/mysql-test/r/connect.result
+++ /dev/null
@@ -1,390 +0,0 @@
-SET global secure_auth=0;
-drop table if exists t1,t2;
-connect con1,localhost,root,,mysql;
-show tables;
-Tables_in_mysql
-column_stats
-columns_priv
-db
-event
-func
-general_log
-gtid_slave_pos
-help_category
-help_keyword
-help_relation
-help_topic
-host
-index_stats
-innodb_index_stats
-innodb_table_stats
-plugin
-proc
-procs_priv
-proxies_priv
-roles_mapping
-servers
-slow_log
-table_stats
-tables_priv
-time_zone
-time_zone_leap_second
-time_zone_name
-time_zone_transition
-time_zone_transition_type
-transaction_registry
-user
-connect con2,localhost,root,,test;
-show tables;
-Tables_in_test
-connect(localhost,root,z,test2,MASTER_PORT,MASTER_SOCKET);
-connect fail_con,localhost,root,z,test2;
-ERROR 28000: Access denied for user 'root'@'localhost' (using password: YES)
-connect(localhost,root,z,test,MASTER_PORT,MASTER_SOCKET);
-connect fail_con,localhost,root,z,;
-ERROR 28000: Access denied for user 'root'@'localhost' (using password: YES)
-connection default;
-disconnect con1;
-disconnect con2;
-grant ALL on *.* to test@localhost identified by "gambling";
-grant ALL on *.* to test@127.0.0.1 identified by "gambling";
-connect con3,localhost,test,gambling,mysql;
-show tables;
-Tables_in_mysql
-column_stats
-columns_priv
-db
-event
-func
-general_log
-gtid_slave_pos
-help_category
-help_keyword
-help_relation
-help_topic
-host
-index_stats
-innodb_index_stats
-innodb_table_stats
-plugin
-proc
-procs_priv
-proxies_priv
-roles_mapping
-servers
-slow_log
-table_stats
-tables_priv
-time_zone
-time_zone_leap_second
-time_zone_name
-time_zone_transition
-time_zone_transition_type
-transaction_registry
-user
-connect con4,localhost,test,gambling,test;
-show tables;
-Tables_in_test
-connection default;
-disconnect con3;
-disconnect con4;
-connect(localhost,test,,test2,MASTER_PORT,MASTER_SOCKET);
-connect fail_con,localhost,test,,test2;
-ERROR 28000: Access denied for user 'test'@'localhost' (using password: NO)
-connect(localhost,test,,"",MASTER_PORT,MASTER_SOCKET);
-connect fail_con,localhost,test,,'""';
-ERROR 28000: Access denied for user 'test'@'localhost' (using password: NO)
-connect(localhost,test,zorro,test2,MASTER_PORT,MASTER_SOCKET);
-connect fail_con,localhost,test,zorro,test2;
-ERROR 28000: Access denied for user 'test'@'localhost' (using password: YES)
-connect(localhost,test,zorro,test,MASTER_PORT,MASTER_SOCKET);
-connect fail_con,localhost,test,zorro,;
-ERROR 28000: Access denied for user 'test'@'localhost' (using password: YES)
-update mysql.user set password=old_password("gambling2") where user=_binary"test";
-flush privileges;
-connect con10,localhost,test,gambling2,;
-connect con5,localhost,test,gambling2,mysql;
-connection con5;
-set password="";
-set password='gambling3';
-ERROR HY000: Password hash should be a 41-digit hexadecimal number
-set password=old_password('gambling3');
-show tables;
-Tables_in_mysql
-column_stats
-columns_priv
-db
-event
-func
-general_log
-gtid_slave_pos
-help_category
-help_keyword
-help_relation
-help_topic
-host
-index_stats
-innodb_index_stats
-innodb_table_stats
-plugin
-proc
-procs_priv
-proxies_priv
-roles_mapping
-servers
-slow_log
-table_stats
-tables_priv
-time_zone
-time_zone_leap_second
-time_zone_name
-time_zone_transition
-time_zone_transition_type
-transaction_registry
-user
-connect con6,localhost,test,gambling3,test;
-show tables;
-Tables_in_test
-connection default;
-disconnect con10;
-disconnect con5;
-disconnect con6;
-connect(localhost,test,,test2,MASTER_PORT,MASTER_SOCKET);
-connect fail_con,localhost,test,,test2;
-ERROR 28000: Access denied for user 'test'@'localhost' (using password: NO)
-connect(localhost,test,,test,MASTER_PORT,MASTER_SOCKET);
-connect fail_con,localhost,test,,;
-ERROR 28000: Access denied for user 'test'@'localhost' (using password: NO)
-connect(localhost,test,zorro,test2,MASTER_PORT,MASTER_SOCKET);
-connect fail_con,localhost,test,zorro,test2;
-ERROR 28000: Access denied for user 'test'@'localhost' (using password: YES)
-connect(localhost,test,zorro,test,MASTER_PORT,MASTER_SOCKET);
-connect fail_con,localhost,test,zorro,;
-ERROR 28000: Access denied for user 'test'@'localhost' (using password: YES)
-delete from mysql.user where user=_binary"test";
-flush privileges;
-connect con7,localhost,root,,test;
-connection con7;
-create table t1 (id integer not null auto_increment primary key);
-create temporary table t2(id integer not null auto_increment primary key);
-set @id := 1;
-delete from t1 where id like @id;
-connection default;
-disconnect con7;
-drop table t1;
-# ------------------------------------------------------------------
-# -- End of 4.1 tests
-# ------------------------------------------------------------------
-
-# -- Bug#33507: Event scheduler creates more threads than max_connections
-# -- which results in user lockout.
-
-CREATE USER mysqltest_u1@localhost;
-GRANT USAGE ON *.* TO mysqltest_u1@localhost;
-
-SET GLOBAL max_connections = 3;
-SET GLOBAL event_scheduler = ON;
-
-# -- Waiting for Event Scheduler to start...
-
-# -- Disconnecting default connection...
-disconnect default;
-
-# -- Check that we allow exactly three user connections, no matter how
-# -- many threads are running.
-
-# -- Connecting (1)...
-# -- Establishing connection 'con_1' (user: mysqltest_u1)...
-# -- Connection 'con_1' has been established.
-
-# -- Connecting (2)...
-# -- Establishing connection 'con_2' (user: mysqltest_u1)...
-# -- Connection 'con_2' has been established.
-
-# -- Connecting (3)...
-# -- Establishing connection 'con_3' (user: mysqltest_u1)...
-# -- Connection 'con_3' has been established.
-
-# -- Connecting (4) [should fail]...
-# -- Establishing connection 'con_4' (user: mysqltest_u1)...
-# -- Error: can not establish connection 'con_4'.
-
-# -- Check that we allow one extra SUPER-user connection.
-
-# -- Connecting super (1)...
-# -- Establishing connection 'con_super_1' (user: root)...
-# -- Connection 'con_super_1' has been established.
-
-# -- Connecting super (2) [should fail]...
-# -- Establishing connection 'con_super_2' (user: root)...
-# -- Error: can not establish connection 'con_super_2'.
-
-# -- Ensure that we have Event Scheduler thread, 3 ordinary user
-# -- connections and one extra super-user connection.
-SELECT user FROM information_schema.processlist ORDER BY id;
-user
-event_scheduler
-mysqltest_u1
-mysqltest_u1
-mysqltest_u1
-root
-
-# -- Resetting variables...
-SET GLOBAL max_connections = 151;
-
-# -- Stopping Event Scheduler...
-SET GLOBAL event_scheduler = OFF;
-
-# -- Waiting for Event Scheduler to stop...
-
-# -- That's it. Closing connections...
-disconnect con_1;
-disconnect con_2;
-disconnect con_3;
-disconnect con_super_1;
-
-# -- Restoring default connection...
-connect default,localhost,root,,test;
-
-# -- Waiting for connections to close...
-
-DROP USER mysqltest_u1@localhost;
-
-# -- End of Bug#33507.
-
-# -- Bug#35074: max_used_connections is not correct.
-
-FLUSH STATUS;
-
-SHOW STATUS LIKE 'max_used_connections';
-Variable_name Value
-Max_used_connections 1
-
-# -- Starting Event Scheduler...
-SET GLOBAL event_scheduler = ON;
-# -- Waiting for Event Scheduler to start...
-
-# -- Opening a new connection to check max_used_connections...
-connect con_1,localhost,root;
-
-# -- Check that max_used_connections hasn't changed.
-SHOW STATUS LIKE 'max_used_connections';
-Variable_name Value
-Max_used_connections 2
-
-# -- Closing new connection...
-disconnect con_1;
-connection default;
-
-# -- Stopping Event Scheduler...
-SET GLOBAL event_scheduler = OFF;
-# -- Waiting for Event Scheduler to stop...
-
-# -- End of Bug#35074.
-
-connect extracon,127.0.0.1,root,,test,$MASTER_EXTRA_PORT,;
-connection extracon;
-SELECT 'Connection on extra port ok';
-Connection on extra port ok
-Connection on extra port ok
-connect extracon2,127.0.0.1,root,,test,$MASTER_EXTRA_PORT,;
-connection extracon2;
-SELECT 'Connection on extra port 2 ok';
-Connection on extra port 2 ok
-Connection on extra port 2 ok
-# -- Success: more than --extra-max-connections + 1 normal connections not possible
-#
-# -- Bug#49752: 2469.126.2 unintentionally breaks authentication
-# against MySQL 5.1 server
-#
-GRANT ALL ON test.* TO 'O1234567890123456789012345678901234567890123456789012345678901234567890123456789'@'localhost' IDENTIFIED BY 'test123';
-FLUSH PRIVILEGES;
-connect con1,localhost,O1234567890123456789012345678901234567890123456789012345678901234567890123456789x,test123,test;
-disconnect con1;
-connection default;
-DROP USER 'O1234567890123456789012345678901234567890123456789012345678901234567890123456789'@'localhost';
-FLUSH PRIVILEGES;
-#
-# -- End of Bug#49752
-#
-# ------------------------------------------------------------------
-# -- End of 5.1 tests
-# ------------------------------------------------------------------
-disconnect extracon;
-disconnect extracon2;
-connection default;
-CREATE USER mysqltest_up1 IDENTIFIED VIA mysql_native_password using '*E8D46CE25265E545D225A8A6F1BAF642FEBEE5CB';
-CREATE USER mysqltest_up2 IDENTIFIED VIA mysql_old_password using '09301740536db389';
-connect(localhost,mysqltest_up1,foo,test,MASTER_PORT,MASTER_SOCKET);
-connect pcon1,localhost,mysqltest_up1,foo,,$MASTER_MYPORT,;
-ERROR 28000: Access denied for user 'mysqltest_up1'@'localhost' (using password: YES)
-connect pcon2,localhost,mysqltest_up1,bar,,$MASTER_MYPORT,;
-connection pcon2;
-select user(), current_user();
-user() current_user()
-mysqltest_up1@localhost mysqltest_up1@%
-disconnect pcon2;
-connect(localhost,mysqltest_up2,newpw,test,MASTER_PORT,MASTER_SOCKET);
-connect pcon3,localhost,mysqltest_up2,newpw,,$MASTER_MYPORT,;
-ERROR 28000: Access denied for user 'mysqltest_up2'@'localhost' (using password: YES)
-connect pcon4,localhost,mysqltest_up2,oldpw,,$MASTER_MYPORT,;
-connection pcon4;
-select user(), current_user();
-user() current_user()
-mysqltest_up2@localhost mysqltest_up2@%
-disconnect pcon4;
-connect(localhost,mysqltest_nouser,newpw,test,MASTER_PORT,MASTER_SOCKET);
-connect pcon5,localhost,mysqltest_nouser,newpw,,$MASTER_MYPORT,;
-ERROR 28000: Access denied for user 'mysqltest_nouser'@'localhost' (using password: YES)
-connect(localhost,mysqltest_nouser,,test,MASTER_PORT,MASTER_SOCKET);
-connect pcon5,localhost,mysqltest_nouser,,,$MASTER_MYPORT,;
-ERROR 28000: Access denied for user 'mysqltest_nouser'@'localhost' (using password: NO)
-connection default;
-update mysql.user set plugin='mysql_native_password' where user = 'mysqltest_up1';
-update mysql.user set plugin='mysql_old_password' where user = 'mysqltest_up2';
-select user, password, plugin, authentication_string from mysql.user
-where user like 'mysqltest_up_';
-user password plugin authentication_string
-mysqltest_up1 *E8D46CE25265E545D225A8A6F1BAF642FEBEE5CB mysql_native_password
-mysqltest_up2 09301740536db389 mysql_old_password
-flush privileges;
-connect pcon6,localhost,mysqltest_up1,bar,,$MASTER_MYPORT,;
-connection pcon6;
-select user(), current_user();
-user() current_user()
-mysqltest_up1@localhost mysqltest_up1@%
-disconnect pcon6;
-connect pcon7,localhost,mysqltest_up2,oldpw,,$MASTER_MYPORT,;
-connection pcon7;
-select user(), current_user();
-user() current_user()
-mysqltest_up2@localhost mysqltest_up2@%
-disconnect pcon7;
-connection default;
-DROP USER mysqltest_up1@'%';
-DROP USER mysqltest_up2@'%';
-#
-# BUG#1010351: New "via" keyword in 5.2+ can't be used as identifier anymore
-#
-create table t1 (via int);
-alter table t1 add key(via);
-drop table t1;
-create table t1 (col1 int);
-alter table t1 add via int not null;
-drop table t1;
-drop procedure if exists p1;
-create procedure p1(x int)
-foo: loop
-if x = 0 then
-leave foo;
-end if;
-select 'test';
-set x = x-1;
-end loop foo|
-call p1(2);
-test
-test
-test
-test
-drop procedure p1;
-SET global secure_auth=default;
diff --git a/mysql-test/r/connect2.result b/mysql-test/r/connect2.result
deleted file mode 100644
index 5430626a533..00000000000
--- a/mysql-test/r/connect2.result
+++ /dev/null
@@ -1,73 +0,0 @@
-call mtr.add_suppression("Allocation failed");
-SET @old_debug= @@session.debug;
-set @old_thread_cache_size=@@global.thread_cache_size;
-set @@global.thread_cache_size=0;
-connect con1,localhost,root,,test,,;
-select 1;
-1
-1
-disconnect con1;
-connection default;
-set global debug_dbug='+d,simulate_failed_connection_1';
-connect(localhost,root,,test,MASTER_PORT,MASTER_SOCKET);
-connect con1,localhost,root,,test,,;
-Got one of the listed errors
-connection default;
-set global debug_dbug=@old_debug;
-set global debug_dbug='+d,simulate_failed_connection_2';
-connect(localhost,root,,test,MASTER_PORT,MASTER_SOCKET);
-connect con1,localhost,root,,test,,;
-Got one of the listed errors
-connection default;
-set global debug_dbug=@old_debug;
-connect con1,localhost,root,,test,,;
-select 1;
-1
-1
-disconnect con1;
-connect con1,localhost,root,,test,$MASTER_EXTRA_PORT,;
-select 1;
-1
-1
-disconnect con1;
-connection default;
-set global debug_dbug='+d,simulate_failed_connection_1';
-connect(localhost,root,,test,MASTER_PORT,MASTER_SOCKET);
-connect con1,localhost,root,,test,$MASTER_EXTRA_PORT,;
-Got one of the listed errors
-connection default;
-set global debug_dbug=@old_debug;
-set global debug_dbug='+d,simulate_failed_connection_2';
-connect(localhost,root,,test,MASTER_PORT,MASTER_SOCKET);
-connect con1,localhost,root,,test,$MASTER_EXTRA_PORT,;
-Got one of the listed errors
-connection default;
-set global debug_dbug=@old_debug;
-connect con1,localhost,root,,test,$MASTER_EXTRA_PORT,;
-select 1;
-1
-1
-disconnect con1;
-connection default;
-set @@global.thread_cache_size=2;
-connect con1,localhost,root,,test,$MASTER_EXTRA_PORT,;
-select 1;
-1
-1
-connect con2,localhost,root,,test,$MASTER_EXTRA_PORT,;
-select 1;
-1
-1
-disconnect con1;
-disconnect con2;
-connection default;
-set global debug_dbug='+d,simulate_failed_connection_2';
-connect(localhost,root,,test,MASTER_PORT,MASTER_SOCKET);
-connect con1,localhost,root,,test,$MASTER_EXTRA_PORT,;
-Got one of the listed errors
-connection default;
-show status like "Threads_connected";
-Variable_name Value
-Threads_connected 1
-set global debug_dbug=@old_debug;
-set global thread_cache_size=@old_thread_cache_size;
diff --git a/mysql-test/r/consistent_snapshot.result b/mysql-test/r/consistent_snapshot.result
deleted file mode 100644
index b978f1dd9d2..00000000000
--- a/mysql-test/r/consistent_snapshot.result
+++ /dev/null
@@ -1,44 +0,0 @@
-DROP TABLE IF EXISTS t1;
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-### Test 1:
-### - While a consistent snapshot transaction is executed,
-### no external inserts should be visible to the transaction.
-connection con1;
-CREATE TABLE t1 (a INT) ENGINE=innodb;
-START TRANSACTION WITH CONSISTENT SNAPSHOT;
-connection con2;
-INSERT INTO t1 VALUES(1);
-connection con1;
-SELECT * FROM t1;
-a
-COMMIT;
-### Test 2:
-### - For any non-consistent snapshot transaction, external
-### committed inserts should be visible to the transaction.
-DELETE FROM t1;
-START TRANSACTION;
-connection con2;
-INSERT INTO t1 VALUES(1);
-connection con1;
-SELECT * FROM t1;
-a
-1
-COMMIT;
-### Test 3:
-### - Bug#44664: valgrind warning for COMMIT_AND_CHAIN and ROLLBACK_AND_CHAIN
-### Chaining a transaction does not retain consistency level.
-START TRANSACTION WITH CONSISTENT SNAPSHOT;
-DELETE FROM t1;
-COMMIT WORK AND CHAIN;
-connection con2;
-INSERT INTO t1 VALUES(1);
-connection con1;
-SELECT * FROM t1;
-a
-1
-COMMIT;
-connection default;
-disconnect con1;
-disconnect con2;
-DROP TABLE t1;
diff --git a/mysql-test/r/constraints.result b/mysql-test/r/constraints.result
deleted file mode 100644
index fe9398ea8ce..00000000000
--- a/mysql-test/r/constraints.result
+++ /dev/null
@@ -1,76 +0,0 @@
-drop table if exists t1;
-create table t1 (a int check (a>0));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL CHECK (`a` > 0)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values (1);
-insert into t1 values (0);
-ERROR 23000: CONSTRAINT `a` failed for `test`.`t1`
-drop table t1;
-create table t1 (a int, b int, check (a>b));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- CONSTRAINT `CONSTRAINT_1` CHECK (`a` > `b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values (1,0);
-insert into t1 values (0,1);
-ERROR 23000: CONSTRAINT `CONSTRAINT_1` failed for `test`.`t1`
-drop table t1;
-create table t1 (a int ,b int, constraint abc check (a>b));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- CONSTRAINT `abc` CHECK (`a` > `b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values (1,0);
-insert into t1 values (0,1);
-ERROR 23000: CONSTRAINT `abc` failed for `test`.`t1`
-drop table t1;
-create table t1 (a int null);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values (1),(NULL);
-drop table t1;
-create table t1 (a int null);
-alter table t1 add constraint constraint_1 unique (a);
-alter table t1 add constraint unique key_1(a);
-Warnings:
-Note 1831 Duplicate index `key_1`. This is deprecated and will be disallowed in a future release
-alter table t1 add constraint constraint_2 unique key_2(a);
-Warnings:
-Note 1831 Duplicate index `key_2`. This is deprecated and will be disallowed in a future release
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- UNIQUE KEY `constraint_1` (`a`),
- UNIQUE KEY `key_1` (`a`),
- UNIQUE KEY `key_2` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-drop table if exists t_illegal;
-create table t_illegal (a int, b int, check a>b);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'a>b)' at line 1
-create table t_illegal (a int, b int, constraint abc check a>b);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'a>b)' at line 1
-create table t_illegal (a int, b int, constraint abc);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1
-drop table if exists t_11714;
-create table t_11714(a int, b int);
-alter table t_11714 add constraint cons1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-drop table t_11714;
-CREATE TABLE t_illegal (col_1 INT CHECK something (whatever));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'something (whatever))' at line 1
-CREATE TABLE t_illegal (col_1 INT CHECK something);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'something)' at line 1
diff --git a/mysql-test/r/contributors.result b/mysql-test/r/contributors.result
deleted file mode 100644
index 927c0bcccbf..00000000000
--- a/mysql-test/r/contributors.result
+++ /dev/null
@@ -1,22 +0,0 @@
-SHOW CONTRIBUTORS;
-Name Location Comment
-Booking.com https://www.booking.com Founding member, Platinum Sponsor of the MariaDB Foundation
-Alibaba Cloud https://www.alibabacloud.com/ Platinum Sponsor of the MariaDB Foundation
-Tencent Cloud https://cloud.tencent.com Platinum Sponsor of the MariaDB Foundation
-Microsoft https://microsoft.com/ Platinum Sponsor of the MariaDB Foundation
-MariaDB Corporation https://mariadb.com Founding member, Gold Sponsor of the MariaDB Foundation
-Visma https://visma.com Gold Sponsor of the MariaDB Foundation
-DBS https://dbs.com Gold Sponsor of the MariaDB Foundation
-IBM https://www.ibm.com Gold Sponsor of the MariaDB Foundation
-Nexedi https://www.nexedi.com Silver Sponsor of the MariaDB Foundation
-Acronis http://www.acronis.com Silver Sponsor of the MariaDB Foundation
-Auttomattic https://automattic.com Bronze Sponsor of the MariaDB Foundation
-Verkkokauppa.com https://www.verkkokauppa.com Bronze Sponsor of the MariaDB Foundation
-Virtuozzo https://virtuozzo.com Bronze Sponsor of the MariaDB Foundation
-Tencent Game DBA http://tencentdba.com/about Bronze Sponsor of the MariaDB Foundation
-Tencent TDSQL http://tdsql.org Bronze Sponsor of the MariaDB Foundation
-Google USA Sponsoring encryption, parallel replication and GTID
-Facebook USA Sponsoring non-blocking API, LIMIT ROWS EXAMINED etc
-Ronald Bradford Brisbane, Australia EFF contribution for UC2006 Auction
-Sheeri Kritzer Boston, Mass. USA EFF contribution for UC2006 Auction
-Mark Shuttleworth London, UK. EFF contribution for UC2006 Auction
diff --git a/mysql-test/r/count_distinct.result b/mysql-test/r/count_distinct.result
deleted file mode 100644
index 760b2710586..00000000000
--- a/mysql-test/r/count_distinct.result
+++ /dev/null
@@ -1,133 +0,0 @@
-drop table if exists t1,t2,t3;
-create table t1 (libname varchar(21) not null, city text, primary key (libname));
-create table t2 (isbn varchar(21) not null, author text, title text, primary key (isbn));
-create table t3 (isbn varchar(21) not null, libname varchar(21) not null, quantity int ,primary key (isbn,libname));
-insert into t2 values ('001','Daffy','A duck''s life');
-insert into t2 values ('002','Bugs','A rabbit\'s life');
-insert into t2 values ('003','Cowboy','Life on the range');
-insert into t2 values ('000','Anonymous','Wanna buy this book?');
-insert into t2 values ('004','Best Seller','One Heckuva book');
-insert into t2 values ('005','EveryoneBuys','This very book');
-insert into t2 values ('006','San Fran','It is a san fran lifestyle');
-insert into t2 values ('007','BerkAuthor','Cool.Berkley.the.book');
-insert into t3 values('000','New York Public Libra','1');
-insert into t3 values('001','New York Public Libra','2');
-insert into t3 values('002','New York Public Libra','3');
-insert into t3 values('003','New York Public Libra','4');
-insert into t3 values('004','New York Public Libra','5');
-insert into t3 values('005','New York Public Libra','6');
-insert into t3 values('006','San Fransisco Public','5');
-insert into t3 values('007','Berkeley Public1','3');
-insert into t3 values('007','Berkeley Public2','3');
-insert into t3 values('001','NYC Lib','8');
-insert into t1 values ('New York Public Libra','New York');
-insert into t1 values ('San Fransisco Public','San Fran');
-insert into t1 values ('Berkeley Public1','Berkeley');
-insert into t1 values ('Berkeley Public2','Berkeley');
-insert into t1 values ('NYC Lib','New York');
-select t2.isbn,city,t1.libname,count(t1.libname) as a from t3 left join t1 on t3.libname=t1.libname left join t2 on t3.isbn=t2.isbn group by city,t1.libname;
-isbn city libname a
-007 Berkeley Berkeley Public1 1
-007 Berkeley Berkeley Public2 1
-000 New York New York Public Libra 6
-001 New York NYC Lib 1
-006 San Fran San Fransisco Public 1
-select t2.isbn,city,t1.libname,count(distinct t1.libname) as a from t3 left join t1 on t3.libname=t1.libname left join t2 on t3.isbn=t2.isbn group by city having count(distinct t1.libname) > 1;
-isbn city libname a
-007 Berkeley Berkeley Public1 2
-000 New York New York Public Libra 2
-select t2.isbn,city,t1.libname,count(distinct t1.libname) as a from t3 left join t1 on t3.libname=t1.libname left join t2 on t3.isbn=t2.isbn group by city having count(distinct concat(t1.libname,'a')) > 1;
-isbn city libname a
-007 Berkeley Berkeley Public1 2
-000 New York New York Public Libra 2
-select t2.isbn,city,@bar:=t1.libname,count(distinct t1.libname) as a
-from t3 left join t1 on t3.libname=t1.libname left join t2
-on t3.isbn=t2.isbn group by city having count(distinct
-t1.libname) > 1;
-isbn city @bar:=t1.libname a
-007 Berkeley Berkeley Public1 2
-000 New York New York Public Libra 2
-SELECT @bar;
-@bar
-Berkeley Public2
-select t2.isbn,city,concat(@bar:=t1.libname),count(distinct t1.libname) as a
-from t3 left join t1 on t3.libname=t1.libname left join t2
-on t3.isbn=t2.isbn group by city having count(distinct
-t1.libname) > 1;
-isbn city concat(@bar:=t1.libname) a
-007 Berkeley Berkeley Public1 2
-000 New York New York Public Libra 2
-SELECT @bar;
-@bar
-Berkeley Public2
-drop table t1, t2, t3;
-create table t1 (f1 int);
-insert into t1 values (1);
-create table t2 (f1 int,f2 int);
-select t1.f1,count(distinct t2.f2),count(distinct 1,NULL) from t1 left join t2 on t1.f1=t2.f1 group by t1.f1;
-f1 count(distinct t2.f2) count(distinct 1,NULL)
-1 0 0
-drop table t1,t2;
-create table t1 (f int);
-select count(distinct f) from t1;
-count(distinct f)
-0
-drop table t1;
-create table t1 (a char(3), b char(20), primary key (a, b));
-insert into t1 values ('ABW', 'Dutch'), ('ABW', 'English');
-select count(distinct a) from t1 group by b;
-count(distinct a)
-1
-1
-drop table t1;
-create table t1 (f1 int, f2 int);
-insert into t1 values (0,1),(1,2);
-select count(distinct if(f1,3,f2)) from t1;
-count(distinct if(f1,3,f2))
-2
-drop table t1;
-create table t1 (i int);
-insert into t1 values (0), (1);
-create view v1 as select * from t1;
-select count(distinct i) from v1;
-count(distinct i)
-2
-drop table t1;
-drop view v1;
-create table t1 (user_id char(64) character set utf8);
-insert t1 values(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),(13),(14),(15),(16),(17);
-set @@tmp_table_size = 1024;
-select count(distinct user_id) from t1;
-count(distinct user_id)
-17
-alter table t1 modify user_id char(128) character set utf8;
-select count(distinct user_id) from t1;
-count(distinct user_id)
-17
-drop table t1;
-set @@tmp_table_size = default;
-create table t1 (
-a VARCHAR(1020),
-b int
-);
-insert into t1 values
-( 0 , 1 ),
-( 1 , 2 ),
-( 2 , 3 ),
-( 3 , 4 ),
-( 4 , 5 ),
-( 5 , 6 ),
-( 6 , 7 ),
-( 7 , 8 ),
-( 8 , 9 ),
-( 9 , 10 ),
-( 0 , 11 ),
-( 1 , 12 ),
-( 2 , 13 ),
-( 3 , 14 );
-set @@tmp_table_size=1024;
-select count(distinct a) from t1;
-count(distinct a)
-10
-drop table t1;
-set @@tmp_table_size = default;
diff --git a/mysql-test/r/count_distinct2.result b/mysql-test/r/count_distinct2.result
deleted file mode 100644
index b92665b5c56..00000000000
--- a/mysql-test/r/count_distinct2.result
+++ /dev/null
@@ -1,129 +0,0 @@
-drop table if exists t1;
-create table t1(n1 int, n2 int, s char(20), vs varchar(20), t text);
-insert into t1 values (1,11, 'one','eleven', 'eleven'),
-(1,11, 'one','eleven', 'eleven'),
-(2,11, 'two','eleven', 'eleven'),
-(2,12, 'two','twevle', 'twelve'),
-(2,13, 'two','thirteen', 'foo'),
-(2,13, 'two','thirteen', 'foo'),
-(2,13, 'two','thirteen', 'bar'),
-(NULL,13, 'two','thirteen', 'bar'),
-(2,NULL, 'two','thirteen', 'bar'),
-(2,13, NULL,'thirteen', 'bar'),
-(2,13, 'two',NULL, 'bar'),
-(2,13, 'two','thirteen', NULL);
-select distinct n1 from t1;
-n1
-1
-2
-NULL
-select count(distinct n1) from t1;
-count(distinct n1)
-2
-select distinct n2 from t1;
-n2
-11
-12
-13
-NULL
-select count(distinct n2) from t1;
-count(distinct n2)
-3
-select distinct s from t1;
-s
-one
-two
-NULL
-select count(distinct s) from t1;
-count(distinct s)
-2
-select distinct vs from t1;
-vs
-eleven
-twevle
-thirteen
-NULL
-select count(distinct vs) from t1;
-count(distinct vs)
-3
-select distinct t from t1;
-t
-eleven
-twelve
-foo
-bar
-NULL
-select count(distinct t) from t1;
-count(distinct t)
-4
-select distinct n1,n2 from t1;
-n1 n2
-1 11
-2 11
-2 12
-2 13
-NULL 13
-2 NULL
-select count(distinct n1,n2) from t1;
-count(distinct n1,n2)
-4
-select distinct n1,s from t1;
-n1 s
-1 one
-2 two
-NULL two
-2 NULL
-select count(distinct n1,s) from t1;
-count(distinct n1,s)
-2
-select distinct s,n1,vs from t1;
-s n1 vs
-one 1 eleven
-two 2 eleven
-two 2 twevle
-two 2 thirteen
-two NULL thirteen
-NULL 2 thirteen
-two 2 NULL
-select count(distinct s,n1,vs) from t1;
-count(distinct s,n1,vs)
-4
-select distinct s,t from t1;
-s t
-one eleven
-two eleven
-two twelve
-two foo
-two bar
-NULL bar
-two NULL
-select count(distinct s,t) from t1;
-count(distinct s,t)
-5
-select count(distinct n1), count(distinct n2) from t1;
-count(distinct n1) count(distinct n2)
-2 3
-select count(distinct n2), n1 from t1 group by n1;
-count(distinct n2) n1
-1 NULL
-1 1
-3 2
-drop table t1;
-create table t1 (n int default NULL);
-flush status;
-select count(distinct n) from t1;
-count(distinct n)
-5000
-show status like 'Created_tmp_disk_tables';
-Variable_name Value
-Created_tmp_disk_tables 0
-drop table t1;
-create table t1 (s text);
-flush status;
-select count(distinct s) from t1;
-count(distinct s)
-5000
-show status like 'Created_tmp_disk_tables';
-Variable_name Value
-Created_tmp_disk_tables 1
-drop table t1;
diff --git a/mysql-test/r/count_distinct3.result b/mysql-test/r/count_distinct3.result
deleted file mode 100644
index 840c26669a1..00000000000
--- a/mysql-test/r/count_distinct3.result
+++ /dev/null
@@ -1,9 +0,0 @@
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (id INTEGER, grp TINYINT, id_rev INTEGER);
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-4201000
-SELECT COUNT(DISTINCT id) FROM t1 GROUP BY grp;
-# Begin cleanup
-SET session myisam_sort_buffer_size = @orig_myisam_sort_buffer_size;
-DROP TABLE t1;
diff --git a/mysql-test/r/crash_commit_before.result b/mysql-test/r/crash_commit_before.result
deleted file mode 100644
index 22d39e1ddbd..00000000000
--- a/mysql-test/r/crash_commit_before.result
+++ /dev/null
@@ -1,14 +0,0 @@
-CREATE TABLE t1(a int) engine=innodb;
-START TRANSACTION;
-insert into t1 values(9);
-SET GLOBAL debug_dbug="d,crash_commit_before";
-COMMIT;
-ERROR HY000: Lost connection to MySQL server during query
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-a
-DROP TABLE t1;
diff --git a/mysql-test/r/create-big.result b/mysql-test/r/create-big.result
deleted file mode 100644
index d041419443e..00000000000
--- a/mysql-test/r/create-big.result
+++ /dev/null
@@ -1,358 +0,0 @@
-connect addconroot1, localhost, root,,;
-connect addconroot2, localhost, root,,;
-connect addconroot3, localhost, root,,;
-connection default;
-drop table if exists t1,t2,t3,t4,t5;
-set debug_sync='RESET';
-set debug_sync='create_table_select_before_create SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-create table t1 (j char(5));;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-ERROR 42S01: Table 't1' already exists
-connection default;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set debug_sync='create_table_select_before_create SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-create table t1 select 'Test' as j;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-ERROR 42S01: Table 't1' already exists
-connection default;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t3 (j char(5));
-set debug_sync='create_table_select_before_create SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-create table t1 like t3;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-ERROR 42S01: Table 't1' already exists
-connection default;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set debug_sync='create_table_select_before_create SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-rename table t3 to t1;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-ERROR 42S01: Table 't1' already exists
-connection default;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set debug_sync='create_table_select_before_create SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-alter table t3 rename to t1;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-ERROR 42S01: Table 't1' already exists
-connection default;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set debug_sync='create_table_select_before_create SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-alter table t3 rename to t1, add k int;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-ERROR 42S01: Table 't1' already exists
-connection default;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1,t3;
-set debug_sync='create_table_select_before_open SIGNAL parked WAIT_FOR go';
-connection default;
-set debug_sync='create_table_select_before_open SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-drop table t1;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-connection default;
-set debug_sync='create_table_select_before_create SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-rename table t1 to t2;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-connection default;
-drop table t2;
-set debug_sync='create_table_select_before_create SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-select * from t1;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-i
-1
-connection default;
-drop table t1;
-set debug_sync='create_table_select_before_create SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-insert into t1 values (2);;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-connection default;
-select * from t1;
-i
-1
-2
-drop table t1;
-set @a:=0;
-set debug_sync='create_table_select_before_create SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-create trigger t1_bi before insert on t1 for each row set @a:=1;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-connection default;
-select @a;
-@a
-0
-drop table t1;
-set debug_sync='create_table_select_before_lock SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-drop table t1;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-connection default;
-set debug_sync='create_table_select_before_lock SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-rename table t1 to t2;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-connection default;
-drop table t2;
-set debug_sync='create_table_select_before_lock SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-select * from t1;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-i
-1
-connection default;
-drop table t1;
-set debug_sync='create_table_select_before_lock SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-insert into t1 values (2);;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-connection default;
-select * from t1;
-i
-1
-2
-drop table t1;
-set @a:=0;
-set debug_sync='create_table_select_before_lock SIGNAL parked WAIT_FOR go';
-create table t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-create trigger t1_bi before insert on t1 for each row set @a:=1;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-connection default;
-select @a;
-@a
-0
-drop table t1;
-set debug_sync='create_table_select_before_check_if_exists SIGNAL parked WAIT_FOR go';
-create table if not exists t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-drop table t1;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-connection default;
-create table t1 (i int);
-set @a:=0;
-set debug_sync='create_table_select_before_check_if_exists SIGNAL parked WAIT_FOR go';
-create table if not exists t1 select 1 as i;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-create trigger t1_bi before insert on t1 for each row set @a:=1;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-Warnings:
-Note 1050 Table 't1' already exists
-connection addconroot1;
-connection default;
-select @a;
-@a
-0
-select * from t1;
-i
-drop table t1;
-drop table if exists t1,t2;
-set debug_sync='RESET';
-create table t1 (i int);
-set debug_sync='create_table_like_after_open SIGNAL parked WAIT_FOR go';
-reset master;
-create table t2 like t1;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-insert into t1 values (1);
-drop table t1;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-connection default;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t2;
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; insert into t1 values (1)
-master-bin.000001 # Query # # COMMIT
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; create table t2 like t1
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; DROP TABLE `t2` /* generated by server */
-create table t1 (i int);
-set debug_sync='create_table_like_before_binlog SIGNAL parked WAIT_FOR go';
-reset master;
-create table t2 like t1;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-insert into t2 values (1);;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-connection default;
-drop table t2;
-set debug_sync='create_table_like_before_binlog SIGNAL parked WAIT_FOR go';
-create table t2 like t1;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-drop table t2;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-connection default;
-set debug_sync='create_table_like_before_binlog SIGNAL parked WAIT_FOR go';
-create table t2 like t1;;
-connection addconroot1;
-set debug_sync='now WAIT_FOR parked';
-drop table t1;;
-connection addconroot2;
-set debug_sync='now SIGNAL go';
-connection default;
-connection addconroot1;
-connection default;
-drop table t2;
-disconnect addconroot1;
-disconnect addconroot2;
-disconnect addconroot3;
-set debug_sync='RESET';
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; create table t2 like t1
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; insert into t2 values (1)
-master-bin.000001 # Query # # COMMIT
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; DROP TABLE `t2` /* generated by server */
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; create table t2 like t1
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; DROP TABLE `t2` /* generated by server */
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; create table t2 like t1
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; DROP TABLE `t2` /* generated by server */
diff --git a/mysql-test/r/create-uca.result b/mysql-test/r/create-uca.result
deleted file mode 100644
index f405cb72b40..00000000000
--- a/mysql-test/r/create-uca.result
+++ /dev/null
@@ -1,31 +0,0 @@
-drop table if exists t1,t2;
-CREATE TABLE t1(
-c1 INT DEFAULT 12 COMMENT 'column1',
-c2 INT NULL COMMENT 'column2',
-c3 INT NOT NULL COMMENT 'column3',
-c4 VARCHAR(255) CHARACTER SET utf8 NOT NULL DEFAULT 'a',
-c5 VARCHAR(255) COLLATE utf8_unicode_ci NULL DEFAULT 'b',
-c6 VARCHAR(255))
-COLLATE latin1_bin;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT 12 COMMENT 'column1',
- `c2` int(11) DEFAULT NULL COMMENT 'column2',
- `c3` int(11) NOT NULL COMMENT 'column3',
- `c4` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT 'a',
- `c5` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'b',
- `c6` varchar(255) COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin
-CREATE TABLE t2 AS SELECT * FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` int(11) DEFAULT 12 COMMENT 'column1',
- `c2` int(11) DEFAULT NULL COMMENT 'column2',
- `c3` int(11) NOT NULL COMMENT 'column3',
- `c4` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT 'a',
- `c5` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'b',
- `c6` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1,t2;
diff --git a/mysql-test/r/create.result b/mysql-test/r/create.result
deleted file mode 100644
index dc34185ad2e..00000000000
--- a/mysql-test/r/create.result
+++ /dev/null
@@ -1,2095 +0,0 @@
-call mtr.add_suppression("table or database name 't-1'");
-drop table if exists t1,t2,t3,t4,t5;
-drop database if exists mysqltest;
-drop view if exists v1;
-create table t1 (b char(0));
-insert into t1 values (""),(null);
-select * from t1;
-b
-
-NULL
-drop table if exists t1;
-create table t1 (b char(0) not null);
-create table if not exists t1 (b char(0) not null);
-Warnings:
-Note 1050 Table 't1' already exists
-insert into t1 values (""),(null);
-Warnings:
-Warning 1048 Column 'b' cannot be null
-select * from t1;
-b
-
-
-drop table t1;
-create table t1 (a int not null auto_increment,primary key (a)) engine=heap;
-drop table t1;
-create table t2 engine=heap select * from t1;
-ERROR 42S02: Table 'test.t1' doesn't exist
-create table t2 select auto+1 from t1;
-ERROR 42S02: Table 'test.t1' doesn't exist
-drop table if exists t1,t2;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-Note 1051 Unknown table 'test.t2'
-create table t1 (b char(0) not null, index(b));
-ERROR 42000: The storage engine MyISAM can't index column `b`
-create table t1 (a int not null,b text) engine=heap;
-ERROR 42000: Storage engine MEMORY doesn't support BLOB/TEXT columns
-drop table if exists t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-create table t1 (ordid int(8) not null auto_increment, ord varchar(50) not null, primary key (ord,ordid)) engine=heap;
-ERROR 42000: Incorrect table definition; there can be only one auto column and it must be defined as a key
-create table not_existing_database.test (a int);
-ERROR 42000: Unknown database 'not_existing_database'
-create table `a/a` (a int);
-show create table `a/a`;
-Table Create Table
-a/a CREATE TABLE `a/a` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table t1 like `a/a`;
-drop table `a/a`;
-drop table `t1`;
-create table `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa int);
-ERROR 42000: Incorrect table name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
-create table a (`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` int);
-ERROR 42000: Identifier name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' is too long
-create table t1 (a datetime default now());
-drop table t1;
-create table t1 (a datetime on update now());
-drop table t1;
-create table t1 (a int default 100 auto_increment);
-ERROR 42000: Invalid default value for 'a'
-create table t1 (a tinyint default 1000);
-ERROR 42000: Invalid default value for 'a'
-create table t1 (a varchar(5) default 'abcdef');
-ERROR 42000: Invalid default value for 'a'
-create table t1 (a varchar(5) default 'abcde');
-insert into t1 values();
-select * from t1;
-a
-abcde
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 alter column a set default 'abcdef';
-ERROR 42000: Invalid default value for 'a'
-drop table t1;
-create table 1ea10 (1a20 int,1e int);
-insert into 1ea10 values(1,1);
-select 1ea10.1a20,1e+ 1e+10 from 1ea10;
-1a20 1e+ 1e+10
-1 10000000001
-drop table 1ea10;
-create table t1 (t1.index int);
-drop table t1;
-drop database if exists mysqltest;
-Warnings:
-Note 1008 Can't drop database 'mysqltest'; database doesn't exist
-create database mysqltest;
-create table mysqltest.$test1 (a$1 int, $b int, c$ int);
-insert into mysqltest.$test1 values (1,2,3);
-select a$1, $b, c$ from mysqltest.$test1;
-a$1 $b c$
-1 2 3
-create table mysqltest.test2$ (a int);
-drop table mysqltest.test2$;
-drop database mysqltest;
-create table `` (a int);
-ERROR 42000: Incorrect table name ''
-drop table if exists ``;
-ERROR 42000: Incorrect table name ''
-create table t1 (`` int);
-ERROR 42000: Incorrect column name ''
-create table t1 (i int, index `` (i));
-ERROR 42000: Incorrect index name ''
-create table t1 (i int);
-lock tables t1 read;
-create table t2 (j int);
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-create temporary table t2 (j int);
-drop temporary table t2;
-unlock tables;
-drop table t1;
-create table t1 (a int auto_increment not null primary key, B CHAR(20));
-insert into t1 (b) values ("hello"),("my"),("world");
-create table t2 (key (b)) select * from t1;
-explain select * from t2 where b="world";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref B B 21 const 1 Using index condition
-select * from t2 where b="world";
-a B
-3 world
-drop table t1,t2;
-create table t1(x varchar(50) );
-create table t2 select x from t1 where 1=2;
-describe t1;
-Field Type Null Key Default Extra
-x varchar(50) YES NULL
-describe t2;
-Field Type Null Key Default Extra
-x varchar(50) YES NULL
-drop table t2;
-create table t2 select now() as a , curtime() as b, curdate() as c , 1+1 as d , 1.0 + 1 as e , 33333333333333333 + 3 as f;
-describe t2;
-Field Type Null Key Default Extra
-a datetime NO NULL
-b time NO NULL
-c date NO NULL
-d int(3) NO NULL
-e decimal(3,1) NO NULL
-f bigint(19) NO NULL
-drop table t2;
-create table t2 select CAST("2001-12-29" AS DATE) as d, CAST("20:45:11" AS TIME) as t, CAST("2001-12-29 20:45:11" AS DATETIME) as dt;
-describe t2;
-Field Type Null Key Default Extra
-d date YES NULL
-t time YES NULL
-dt datetime YES NULL
-drop table t1,t2;
-create table t1 (a tinyint);
-create table t2 (a int) select * from t1;
-describe t1;
-Field Type Null Key Default Extra
-a tinyint(4) YES NULL
-describe t2;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-drop table if exists t2;
-create table t2 (a int, a float) select * from t1;
-ERROR 42S21: Duplicate column name 'a'
-drop table if exists t2;
-Warnings:
-Note 1051 Unknown table 'test.t2'
-create table t2 (a int) select a as b, a+1 as b from t1;
-ERROR 42S21: Duplicate column name 'b'
-drop table if exists t2;
-Warnings:
-Note 1051 Unknown table 'test.t2'
-create table t2 (b int) select a as b, a+1 as b from t1;
-ERROR 42S21: Duplicate column name 'b'
-drop table if exists t1,t2;
-Warnings:
-Note 1051 Unknown table 'test.t2'
-CREATE TABLE t1 (a int not null);
-INSERT INTO t1 values (1),(2),(1);
-CREATE TABLE t2 (primary key(a)) SELECT * FROM t1;
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-SELECT * from t2;
-ERROR 42S02: Table 'test.t2' doesn't exist
-DROP TABLE t1;
-DROP TABLE IF EXISTS t2;
-Warnings:
-Note 1051 Unknown table 'test.t2'
-create table t1 (a int not null, b int, primary key(a), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b));
-Warnings:
-Note 1831 Duplicate index `b_2`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_3`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_4`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_5`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_6`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_7`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_8`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_9`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_10`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_11`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_12`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_13`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_14`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_15`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_16`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_17`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_18`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_19`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_20`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_21`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_22`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_23`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_24`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_25`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_26`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_27`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_28`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_29`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_30`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_31`. This is deprecated and will be disallowed in a future release
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `b` (`b`),
- KEY `b_2` (`b`),
- KEY `b_3` (`b`),
- KEY `b_4` (`b`),
- KEY `b_5` (`b`),
- KEY `b_6` (`b`),
- KEY `b_7` (`b`),
- KEY `b_8` (`b`),
- KEY `b_9` (`b`),
- KEY `b_10` (`b`),
- KEY `b_11` (`b`),
- KEY `b_12` (`b`),
- KEY `b_13` (`b`),
- KEY `b_14` (`b`),
- KEY `b_15` (`b`),
- KEY `b_16` (`b`),
- KEY `b_17` (`b`),
- KEY `b_18` (`b`),
- KEY `b_19` (`b`),
- KEY `b_20` (`b`),
- KEY `b_21` (`b`),
- KEY `b_22` (`b`),
- KEY `b_23` (`b`),
- KEY `b_24` (`b`),
- KEY `b_25` (`b`),
- KEY `b_26` (`b`),
- KEY `b_27` (`b`),
- KEY `b_28` (`b`),
- KEY `b_29` (`b`),
- KEY `b_30` (`b`),
- KEY `b_31` (`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 select if(1,'1','0'), month("2002-08-02");
-drop table t1;
-create table t1 select if('2002'='2002','Y','N');
-select * from t1;
-if('2002'='2002','Y','N')
-Y
-drop table if exists t1;
-SET SESSION storage_engine="heap";
-SELECT @@storage_engine;
-@@storage_engine
-MEMORY
-CREATE TABLE t1 (a int not null);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-drop table t1;
-SET SESSION storage_engine="gemini";
-ERROR 42000: Unknown storage engine 'gemini'
-SELECT @@storage_engine;
-@@storage_engine
-MEMORY
-CREATE TABLE t1 (a int not null);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-SET SESSION storage_engine=default;
-drop table t1;
-create table t1 ( k1 varchar(2), k2 int, primary key(k1,k2));
-insert into t1 values ("a", 1), ("b", 2);
-insert into t1 values ("c", NULL);
-ERROR 23000: Column 'k2' cannot be null
-insert into t1 values (NULL, 3);
-ERROR 23000: Column 'k1' cannot be null
-insert into t1 values (NULL, NULL);
-ERROR 23000: Column 'k1' cannot be null
-drop table t1;
-create table t1 select x'4132';
-drop table t1;
-create table t1 select 1,2,3;
-create table if not exists t1 select 1,2;
-Warnings:
-Note 1050 Table 't1' already exists
-create table if not exists t1 select 1,2,3,4;
-Warnings:
-Note 1050 Table 't1' already exists
-create table if not exists t1 select 1;
-Warnings:
-Note 1050 Table 't1' already exists
-select * from t1;
-1 2 3
-1 2 3
-drop table t1;
-flush status;
-create table t1 (a int not null, b int, primary key (a));
-insert into t1 values (1,1);
-create table if not exists t1 select 2;
-Warnings:
-Note 1050 Table 't1' already exists
-select * from t1;
-a b
-1 1
-create table if not exists t1 select 3 as 'a',4 as 'b';
-Warnings:
-Note 1050 Table 't1' already exists
-show warnings;
-Level Code Message
-Note 1050 Table 't1' already exists
-show status like "Opened_tables";
-Variable_name Value
-Opened_tables 1
-select * from t1;
-a b
-1 1
-drop table t1;
-create table `t1 `(a int);
-ERROR 42000: Incorrect table name 't1 '
-create database `db1 `;
-ERROR 42000: Incorrect database name 'db1 '
-create table t1(`a ` int);
-ERROR 42000: Incorrect column name 'a '
-create table t1 (a int,);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1
-create table t1 (a int,,b int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'b int)' at line 1
-create table t1 (,b int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'b int)' at line 1
-create table t1 (a int, key(a));
-create table t2 (b int, foreign key(b) references t1(a), key(b));
-drop table if exists t2,t1;
-create table t1(id int not null, name char(20));
-insert into t1 values(10,'mysql'),(20,'monty- the creator');
-create table t2(id int not null);
-insert into t2 values(10),(20);
-create table t3 like t1;
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `id` int(11) NOT NULL,
- `name` char(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t3;
-id name
-create table if not exists t3 like t1;
-Warnings:
-Note 1050 Table 't3' already exists
-select @@warning_count;
-@@warning_count
-1
-create temporary table t3 like t2;
-show create table t3;
-Table Create Table
-t3 CREATE TEMPORARY TABLE `t3` (
- `id` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t3;
-id
-drop table t3;
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `id` int(11) NOT NULL,
- `name` char(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t3;
-id name
-drop table t2, t3;
-create database mysqltest;
-create table mysqltest.t3 like t1;
-create temporary table t3 like mysqltest.t3;
-show create table t3;
-Table Create Table
-t3 CREATE TEMPORARY TABLE `t3` (
- `id` int(11) NOT NULL,
- `name` char(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table t2 like t3;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `id` int(11) NOT NULL,
- `name` char(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t2;
-id name
-create table t3 like t1;
-create table t3 like mysqltest.t3;
-ERROR 42S01: Table 't3' already exists
-create table non_existing_database.t1 like t1;
-ERROR 42000: Unknown database 'non_existing_database'
-create table t3 like non_existing_table;
-ERROR 42S02: Table 'test.non_existing_table' doesn't exist
-create temporary table t3 like t1;
-ERROR 42S01: Table 't3' already exists
-drop table t1, t2, t3;
-drop table t3;
-drop database mysqltest;
-create table t1 (i int);
-create table t2 (j int);
-lock tables t1 read;
-create table t3 like t1;
-ERROR HY000: Table 't3' was not locked with LOCK TABLES
-create temporary table t3 like t1;
-drop temporary table t3;
-create temporary table t3 like t2;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-unlock tables;
-drop tables t1, t2;
-SET SESSION storage_engine="heap";
-SELECT @@storage_engine;
-@@storage_engine
-MEMORY
-CREATE TABLE t1 (a int not null);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-drop table t1;
-SET SESSION storage_engine="gemini";
-ERROR 42000: Unknown storage engine 'gemini'
-SELECT @@storage_engine;
-@@storage_engine
-MEMORY
-CREATE TABLE t1 (a int not null);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-SET SESSION storage_engine=default;
-drop table t1;
-create table t1(a int,b int,c int unsigned,d date,e char,f datetime,g time,h blob);
-insert into t1(a)values(1);
-insert into t1(a,b,c,d,e,f,g,h)
-values(2,-2,2,'1825-12-14','a','2003-1-1 3:2:1','4:3:2','binary data');
-select * from t1;
-a b c d e f g h
-1 NULL NULL NULL NULL NULL NULL NULL
-2 -2 2 1825-12-14 a 2003-01-01 03:02:01 04:03:02 binary data
-select a,
-ifnull(b,cast(-7 as signed)) as b,
-ifnull(c,cast(7 as unsigned)) as c,
-ifnull(d,cast('2000-01-01' as date)) as d,
-ifnull(e,cast('b' as char)) as e,
-ifnull(f,cast('2000-01-01' as datetime)) as f,
-ifnull(g,cast('5:4:3' as time)) as g,
-ifnull(h,cast('yet another binary data' as binary)) as h,
-addtime(cast('1:0:0' as time),cast('1:0:0' as time)) as dd
-from t1;
-a b c d e f g h dd
-1 -7 7 2000-01-01 b 2000-01-01 00:00:00 05:04:03 yet another binary data 02:00:00
-2 -2 2 1825-12-14 a 2003-01-01 03:02:01 04:03:02 binary data 02:00:00
-create table t2
-select
-a,
-ifnull(b,cast(-7 as signed)) as b,
-ifnull(c,cast(7 as unsigned)) as c,
-ifnull(d,cast('2000-01-01' as date)) as d,
-ifnull(e,cast('b' as char)) as e,
-ifnull(f,cast('2000-01-01' as datetime)) as f,
-ifnull(g,cast('5:4:3' as time)) as g,
-ifnull(h,cast('yet another binary data' as binary)) as h,
-addtime(cast('1:0:0' as time),cast('1:0:0' as time)) as dd
-from t1;
-explain t2;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b int(11) NO NULL
-c int(10) unsigned NO NULL
-d date YES NULL
-e varchar(1) YES NULL
-f datetime YES NULL
-g time YES NULL
-h blob YES NULL
-dd time YES NULL
-select * from t2;
-a b c d e f g h dd
-1 -7 7 2000-01-01 b 2000-01-01 00:00:00 05:04:03 yet another binary data 02:00:00
-2 -2 2 1825-12-14 a 2003-01-01 03:02:01 04:03:02 binary data 02:00:00
-drop table t1, t2;
-CREATE TABLE t1 (
-c_tinytext tinytext,
-c_text text,
-c_mediumtext mediumtext,
-c_longtext longtext
-);
-CREATE TABLE t2 AS SELECT
-ifnull(c_tinytext, CAST('yet another binary data' AS BINARY)),
-ifnull(c_text, CAST('yet another binary data' AS BINARY)),
-ifnull(c_mediumtext, CAST('yet another binary data' AS BINARY)),
-ifnull(c_longtext, CAST('yet another binary data' AS BINARY))
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ifnull(c_tinytext, CAST('yet another binary data' AS BINARY))` tinyblob DEFAULT NULL,
- `ifnull(c_text, CAST('yet another binary data' AS BINARY))` blob DEFAULT NULL,
- `ifnull(c_mediumtext, CAST('yet another binary data' AS BINARY))` mediumblob DEFAULT NULL,
- `ifnull(c_longtext, CAST('yet another binary data' AS BINARY))` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-create table t1 (a tinyint, b smallint, c mediumint, d int, e bigint, f float(3,2), g double(4,3), h decimal(5,4), i year, j date, k timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, l datetime, m enum('a','b'), n set('a','b'), o char(10));
-create table t2 select ifnull(a,a), ifnull(b,b), ifnull(c,c), ifnull(d,d), ifnull(e,e), ifnull(f,f), ifnull(g,g), ifnull(h,h), ifnull(i,i), ifnull(j,j), ifnull(k,k), ifnull(l,l), ifnull(m,m), ifnull(n,n), ifnull(o,o) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ifnull(a,a)` tinyint(4) DEFAULT NULL,
- `ifnull(b,b)` smallint(6) DEFAULT NULL,
- `ifnull(c,c)` mediumint(9) DEFAULT NULL,
- `ifnull(d,d)` int(11) DEFAULT NULL,
- `ifnull(e,e)` bigint(20) DEFAULT NULL,
- `ifnull(f,f)` float(3,2) DEFAULT NULL,
- `ifnull(g,g)` double(4,3) DEFAULT NULL,
- `ifnull(h,h)` decimal(5,4) DEFAULT NULL,
- `ifnull(i,i)` year(4) DEFAULT NULL,
- `ifnull(j,j)` date DEFAULT NULL,
- `ifnull(k,k)` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `ifnull(l,l)` datetime DEFAULT NULL,
- `ifnull(m,m)` varchar(1) DEFAULT NULL,
- `ifnull(n,n)` varchar(3) DEFAULT NULL,
- `ifnull(o,o)` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1,t2;
-create table t1(str varchar(10) default 'def',strnull varchar(10),intg int default '10',rel double default '3.14');
-insert into t1 values ('','',0,0.0);
-describe t1;
-Field Type Null Key Default Extra
-str varchar(10) YES def
-strnull varchar(10) YES NULL
-intg int(11) YES 10
-rel double YES 3.14
-create table t2 select default(str) as str, default(strnull) as strnull, default(intg) as intg, default(rel) as rel from t1;
-describe t2;
-Field Type Null Key Default Extra
-str varchar(10) YES NULL
-strnull varchar(10) YES NULL
-intg int(11) YES NULL
-rel double YES NULL
-drop table t1, t2;
-create table t1(name varchar(10), age smallint default -1);
-describe t1;
-Field Type Null Key Default Extra
-name varchar(10) YES NULL
-age smallint(6) YES -1
-create table t2(name varchar(10), age smallint default - 1);
-describe t2;
-Field Type Null Key Default Extra
-name varchar(10) YES NULL
-age smallint(6) YES -1
-drop table t1, t2;
-create table t1(cenum enum('a'), cset set('b'));
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t2(cenum enum('a','a'), cset set('b','b'));
-Warnings:
-Note 1291 Column 'cenum' has duplicated value 'a' in ENUM
-Note 1291 Column 'cset' has duplicated value 'b' in SET
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t3(cenum enum('a','A','a','c','c'), cset set('b','B','b','d','d'));
-Warnings:
-Note 1291 Column 'cenum' has duplicated value 'a' in ENUM
-Note 1291 Column 'cenum' has duplicated value 'A' in ENUM
-Note 1291 Column 'cenum' has duplicated value 'c' in ENUM
-Note 1291 Column 'cset' has duplicated value 'b' in SET
-Note 1291 Column 'cset' has duplicated value 'B' in SET
-Note 1291 Column 'cset' has duplicated value 'd' in SET
-drop table t1, t2, t3;
-create database mysqltest;
-use mysqltest;
-select database();
-database()
-mysqltest
-drop database mysqltest;
-select database();
-database()
-NULL
-create user mysqltest_1;
-connect user1,localhost,mysqltest_1,,*NO-ONE*;
-connection user1;
-select database(), user();
-database() user()
-NULL mysqltest_1@localhost
-connection default;
-disconnect user1;
-drop user mysqltest_1;
-use test;
-create table t1 (a int, index `primary` (a));
-ERROR 42000: Incorrect index name 'primary'
-create table t1 (a int, index `PRIMARY` (a));
-ERROR 42000: Incorrect index name 'PRIMARY'
-create table t1 (`primary` int, index(`primary`));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `primary` int(11) DEFAULT NULL,
- KEY `primary_2` (`primary`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table t2 (`PRIMARY` int, index(`PRIMARY`));
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `PRIMARY` int(11) DEFAULT NULL,
- KEY `PRIMARY_2` (`PRIMARY`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table t3 (a int);
-alter table t3 add index `primary` (a);
-ERROR 42000: Incorrect index name 'primary'
-alter table t3 add index `PRIMARY` (a);
-ERROR 42000: Incorrect index name 'PRIMARY'
-create table t4 (`primary` int);
-alter table t4 add index(`primary`);
-show create table t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `primary` int(11) DEFAULT NULL,
- KEY `primary_2` (`primary`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table t5 (`PRIMARY` int);
-alter table t5 add index(`PRIMARY`);
-show create table t5;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `PRIMARY` int(11) DEFAULT NULL,
- KEY `PRIMARY_2` (`PRIMARY`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2, t3, t4, t5;
-CREATE TABLE t1(id varchar(10) NOT NULL PRIMARY KEY, dsc longtext);
-INSERT INTO t1 VALUES ('5000000001', NULL),('5000000003', 'Test'),('5000000004', NULL);
-CREATE TABLE t2(id varchar(15) NOT NULL, proc varchar(100) NOT NULL, runID varchar(16) NOT NULL, start datetime NOT NULL, PRIMARY KEY (id,proc,runID,start));
-INSERT INTO t2 VALUES ('5000000001', 'proc01', '20031029090650', '2003-10-29 13:38:40'),('5000000001', 'proc02', '20031029090650', '2003-10-29 13:38:51'),('5000000001', 'proc03', '20031029090650', '2003-10-29 13:38:11'),('5000000002', 'proc09', '20031024013310', '2003-10-24 01:33:11'),('5000000002', 'proc09', '20031024153537', '2003-10-24 15:36:04'),('5000000004', 'proc01', '20031024013641', '2003-10-24 01:37:29'),('5000000004', 'proc02', '20031024013641', '2003-10-24 01:37:39');
-CREATE TABLE t3 SELECT t1.dsc,COUNT(DISTINCT t2.id) AS countOfRuns FROM t1 LEFT JOIN t2 ON (t1.id=t2.id) GROUP BY t1.id;
-SELECT * FROM t3;
-dsc countOfRuns
-NULL 1
-Test 0
-NULL 1
-drop table t1, t2, t3;
-create table t1 (b bool not null default false);
-create table t2 (b bool not null default true);
-insert into t1 values ();
-insert into t2 values ();
-select * from t1;
-b
-0
-select * from t2;
-b
-1
-drop table t1,t2;
-create table t1 (a int);
-create table t1 select * from t1;
-ERROR 42S01: Table 't1' already exists
-create table t2 union = (t1) select * from t1;
-ERROR HY000: 'test.t2' is not of type 'BASE TABLE'
-flush tables with read lock;
-unlock tables;
-drop table t1;
-create table t1(column.name int);
-ERROR 42000: Incorrect table name 'column'
-create table t1(test.column.name int);
-ERROR 42000: Incorrect table name 'column'
-create table t1(xyz.t1.name int);
-ERROR 42000: Incorrect database name 'xyz'
-create table t1(t1.name int);
-create table t2(test.t2.name int);
-drop table t1,t2;
-CREATE TABLE t1 (f1 VARCHAR(255) CHARACTER SET utf8);
-CREATE TABLE t2 AS SELECT LEFT(f1,171) AS f2 FROM t1 UNION SELECT LEFT(f1,171) AS f2 FROM t1;
-DESC t2;
-Field Type Null Key Default Extra
-f2 varchar(171) YES NULL
-DROP TABLE t1,t2;
-CREATE TABLE t12913 (f1 ENUM ('a','b')) AS SELECT 'a' AS f1;
-SELECT * FROM t12913;
-f1
-a
-DROP TABLE t12913;
-create database mysqltest;
-use mysqltest;
-drop database mysqltest;
-create table test.t1 like x;
-ERROR 3D000: No database selected
-drop table if exists test.t1;
-create database mysqltest;
-use mysqltest;
-create view v1 as select 'foo' from dual;
-create table t1 like v1;
-ERROR HY000: 'mysqltest.v1' is not of type 'BASE TABLE'
-drop view v1;
-drop database mysqltest;
-create database mysqltest;
-create database if not exists mysqltest character set latin2;
-Warnings:
-Note 1007 Can't create database 'mysqltest'; database exists
-show create database mysqltest;
-Database Create Database
-mysqltest CREATE DATABASE `mysqltest` /*!40100 DEFAULT CHARACTER SET latin1 */
-drop database mysqltest;
-use test;
-create table t1 (a int);
-create table if not exists t1 (a int);
-Warnings:
-Note 1050 Table 't1' already exists
-drop table t1;
-create table t1 (
-a varchar(112) charset utf8 collate utf8_bin not null,
-primary key (a)
-) select 'test' as a ;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(112) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t2 (
-a int(11) default NULL
-);
-insert into t2 values(111);
-create table t1 (
-a varchar(12) charset utf8 collate utf8_bin not null,
-b int not null, primary key (a)
-) select a, 1 as b from t2 ;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
- `b` int(11) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1 (
-a varchar(12) charset utf8 collate utf8_bin not null,
-b int not null, primary key (a)
-) select a, 1 as c from t2 ;
-Warnings:
-Warning 1364 Field 'b' doesn't have a default value
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) NOT NULL,
- `a` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
- `c` int(1) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (
-a varchar(12) charset utf8 collate utf8_bin not null,
-b int null, primary key (a)
-) select a, 1 as c from t2 ;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
- `c` int(1) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (
-a varchar(12) charset utf8 collate utf8_bin not null,
-b int not null, primary key (a)
-) select 'a' as a , 1 as b from t2 ;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
- `b` int(11) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (
-a varchar(12) charset utf8 collate utf8_bin,
-b int not null, primary key (a)
-) select 'a' as a , 1 as b from t2 ;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
- `b` int(11) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (
-a1 int not null,
-a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int
-);
-insert into t1 values (1,1,1, 1,1,1, 1,1,1);
-create table t2 (
-a1 varchar(12) charset utf8 collate utf8_bin not null,
-a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int,
-primary key (a1)
-) select a1,a2,a3,a4,a5,a6,a7,a8,a9 from t1 ;
-drop table t2;
-create table t2 (
-a1 varchar(12) charset utf8 collate utf8_bin,
-a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int
-) select a1,a2,a3,a4,a5,a6,a7,a8,a9 from t1;
-drop table t1, t2;
-create table t1 (
-a1 int, a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int
-);
-insert into t1 values (1,1,1, 1,1,1, 1,1,1);
-create table t2 (
-a1 varchar(12) charset utf8 collate utf8_bin not null,
-a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int,
-primary key (a1)
-) select a1,a2,a3,a4,a5,a6,a7,a8,a9 from t1 ;
-drop table t2;
-create table t2 ( a int default 3, b int default 3)
-select a1,a2 from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT 3,
- `b` int(11) DEFAULT 3,
- `a1` int(11) DEFAULT NULL,
- `a2` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1(a set("a,b","c,d") not null);
-ERROR 22007: Illegal set 'a,b' value found during parsing
-create table t1 (i int) engine=myisam max_rows=100000000000;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=4294967295
-alter table t1 max_rows=100;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=100
-alter table t1 max_rows=100000000000;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=4294967295
-drop table t1;
-create table t1 select * from t2;
-ERROR 42S02: Table 'test.t2' doesn't exist
-create table t1 select * from t1;
-ERROR 42S02: Table 'test.t1' doesn't exist
-create table t1 select coalesce('a' collate latin1_swedish_ci,'b' collate latin1_bin);
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,EXPLICIT) and (latin1_bin,EXPLICIT) for operation 'coalesce'
-create table t1 (primary key(a)) select "b" as b;
-ERROR 42000: Key column 'a' doesn't exist in table
-create table t1 (a int);
-create table if not exists t1 select 1 as a, 2 as b;
-Warnings:
-Note 1050 Table 't1' already exists
-drop table t1;
-create table t1 (primary key (a)) (select 1 as a) union all (select 1 as a);
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-create table t1 (i int);
-create table t1 select 1 as i;
-ERROR 42S01: Table 't1' already exists
-create table if not exists t1 select 1 as i;
-Warnings:
-Note 1050 Table 't1' already exists
-select * from t1;
-i
-create table if not exists t1 select * from t1;
-Warnings:
-Note 1050 Table 't1' already exists
-select * from t1;
-i
-drop table t1;
-create table t1 select coalesce('a' collate latin1_swedish_ci,'b' collate latin1_bin);
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,EXPLICIT) and (latin1_bin,EXPLICIT) for operation 'coalesce'
-create temporary table t1 (j int);
-create table if not exists t1 select 1;
-select * from t1;
-j
-drop temporary table t1;
-select * from t1;
-1
-1
-drop table t1;
-create table t1 (i int);
-insert into t1 values (1), (2);
-lock tables t1 read;
-create table t2 select * from t1;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-create table if not exists t2 select * from t1;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-unlock tables;
-create table t2 (j int);
-lock tables t1 read;
-create table t2 select * from t1;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-create table if not exists t2 select * from t1;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-unlock tables;
-lock table t1 read, t2 read;
-create table t2 select * from t1;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-create table if not exists t2 select * from t1;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-unlock tables;
-lock table t1 read, t2 write;
-create table t2 select * from t1;
-ERROR 42S01: Table 't2' already exists
-create table if not exists t2 select * from t1;
-Warnings:
-Note 1050 Table 't2' already exists
-select * from t1;
-i
-1
-2
-unlock tables;
-drop table t2;
-lock tables t1 read;
-create temporary table t2 select * from t1;
-create temporary table if not exists t2 select * from t1;
-Warnings:
-Note 1050 Table 't2' already exists
-select * from t2;
-i
-1
-2
-unlock tables;
-drop table t1, t2;
-create table t1 (upgrade int);
-drop table t1;
-
-Bug #26104 Bug on foreign key class constructor
-
-Check that ref_columns is initalized correctly in the constructor
-and semantic checks in mysql_prepare_table work.
-
-We do not need a storage engine that supports foreign keys
-for this test, as the checks are purely syntax-based, and the
-syntax is supported for all engines.
-
-drop table if exists t1,t2;
-create table t1(a int not null, b int not null, primary key (a, b));
-create table t2(a int not null, b int not null, c int not null, primary key (a),
-foreign key fk_bug26104 (b,c) references t1(a));
-ERROR 42000: Incorrect foreign key definition for 'fk_bug26104': Key reference and table reference don't match
-drop table t1;
-create table t1(f1 int,f2 int);
-insert into t1 value(1,1),(1,2),(1,3),(2,1),(2,2),(2,3);
-flush status;
-create table t2 select sql_big_result f1,count(f2) from t1 group by f1;
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 7
-drop table t1,t2;
-CREATE TABLE t1(c1 VARCHAR(33), KEY USING BTREE (c1));
-DROP TABLE t1;
-CREATE TABLE t1(c1 VARCHAR(33), KEY (c1) USING BTREE);
-DROP TABLE t1;
-CREATE TABLE t1(c1 VARCHAR(33), KEY USING BTREE (c1) USING HASH) ENGINE=MEMORY;
-SHOW INDEX FROM t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 c1 1 c1 NULL 0 NULL NULL YES HASH
-DROP TABLE t1;
-CREATE TABLE t1(c1 VARCHAR(33), KEY USING HASH (c1) USING BTREE) ENGINE=MEMORY;
-SHOW INDEX FROM t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 c1 1 c1 A NULL NULL NULL YES BTREE
-DROP TABLE t1;
-create user mysqltest_1@'test@test';
-ERROR HY000: Malformed hostname (illegal symbol: '@')
-CREATE TABLE t1 (a INTEGER AUTO_INCREMENT PRIMARY KEY, b INTEGER NOT NULL);
-INSERT IGNORE INTO t1 (b) VALUES (5);
-CREATE TABLE IF NOT EXISTS t2 (a INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY)
-SELECT a FROM t1;
-INSERT INTO t2 SELECT a FROM t1;
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-INSERT INTO t2 SELECT a FROM t1;
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-DROP TABLE t1, t2;
-#
-# BUG#46384 - mysqld segfault when trying to create table with same
-# name as existing view
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t2 VALUES (1),(2),(3);
-CREATE VIEW v1 AS SELECT t1.a FROM t1, t2;
-CREATE TABLE v1 AS SELECT * FROM t1;
-ERROR 42S01: Table 'v1' already exists
-DROP VIEW v1;
-DROP TABLE t1,t2;
-End of 5.0 tests
-CREATE TABLE t1 (a int, b int);
-insert into t1 values (1,1),(1,2);
-CREATE TABLE t2 (primary key (a)) select * from t1;
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-drop table if exists t2;
-Warnings:
-Note 1051 Unknown table 'test.t2'
-CREATE TEMPORARY TABLE t2 (primary key (a)) select * from t1;
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-drop table if exists t2;
-Warnings:
-Note 1051 Unknown table 'test.t2'
-CREATE TABLE t2 (a int, b int, primary key (a));
-INSERT INTO t2 select * from t1;
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-SELECT * from t2;
-a b
-1 1
-TRUNCATE table t2;
-INSERT INTO t2 select * from t1;
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-SELECT * from t2;
-a b
-1 1
-drop table t2;
-CREATE TEMPORARY TABLE t2 (a int, b int, primary key (a));
-INSERT INTO t2 SELECT * FROM t1;
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-SELECT * from t2;
-a b
-1 1
-drop table t1,t2;
-CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
-ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
-DROP DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
-ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
-USE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
-ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
-SHOW CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
-ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
-set names utf8;
-create database имÑ_базы_в_кодировке_утф8_длиной_больше_чем_45;
-use имÑ_базы_в_кодировке_утф8_длиной_больше_чем_45;
-select database();
-database()
-имÑ_базы_в_кодировке_утф8_длиной_больше_чем_45
-use test;
-select SCHEMA_NAME from information_schema.schemata
-where schema_name='имÑ_базы_в_кодировке_утф8_длиной_больше_чем_45';
-SCHEMA_NAME
-имÑ_базы_в_кодировке_утф8_длиной_больше_чем_45
-drop database имÑ_базы_в_кодировке_утф8_длиной_больше_чем_45;
-create table имÑ_таблицы_в_кодировке_утф8_длиной_больше_чем_48
-(
-имÑ_полÑ_в_кодировке_утф8_длиной_больше_чем_45 int,
-index имÑ_индекÑа_в_кодировке_утф8_длиной_больше_чем_48 (имÑ_полÑ_в_кодировке_утф8_длиной_больше_чем_45)
-);
-create view имÑ_вью_кодировке_утф8_длиной_больше_чем_42 as
-select имÑ_полÑ_в_кодировке_утф8_длиной_больше_чем_45
-from имÑ_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
-select * from имÑ_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
-имÑ_полÑ_в_кодировке_утф8_длиной_больше_чем_45
-select TABLE_NAME from information_schema.tables where
-table_schema='test';
-TABLE_NAME
-имÑ_вью_кодировке_утф8_длиной_больше_чем_42
-имÑ_таблицы_в_кодировке_утф8_длиной_больше_чем_48
-select COLUMN_NAME from information_schema.columns where
-table_schema='test';
-COLUMN_NAME
-имÑ_полÑ_в_кодировке_утф8_длиной_больше_чем_45
-имÑ_полÑ_в_кодировке_утф8_длиной_больше_чем_45
-select INDEX_NAME from information_schema.statistics where
-table_schema='test';
-INDEX_NAME
-имÑ_индекÑа_в_кодировке_утф8_длиной_больше_чем_48
-select TABLE_NAME from information_schema.views where
-table_schema='test';
-TABLE_NAME
-имÑ_вью_кодировке_утф8_длиной_больше_чем_42
-show create table имÑ_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
-Table Create Table
-имÑ_таблицы_в_кодировке_утф8_длиной_больше_чем_48 CREATE TABLE `имÑ_таблицы_в_кодировке_утф8_длиной_больше_чем_48` (
- `имÑ_полÑ_в_кодировке_утф8_длиной_больше_чем_45` int(11) DEFAULT NULL,
- KEY `имÑ_индекÑа_в_кодировке_утф8_длиной_больше_чем_48` (`имÑ_полÑ_в_кодировке_утф8_длиной_больше_чем_45`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create view имÑ_вью_кодировке_утф8_длиной_больше_чем_42;
-View Create View character_set_client collation_connection
-имÑ_вью_кодировке_утф8_длиной_больше_чем_42 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `имÑ_вью_кодировке_утф8_длиной_больше_чем_42` AS select `имÑ_таблицы_в_кодировке_утф8_длиной_больше_чем_48`.`имÑ_полÑ_в_кодировке_утф8_длиной_больше_чем_45` AS `имÑ_полÑ_в_кодировке_утф8_длиной_больше_чем_45` from `имÑ_таблицы_в_кодировке_утф8_длиной_больше_чем_48` utf8 utf8_general_ci
-create trigger имÑ_триггера_в_кодировке_утф8_длиной_больше_чем_49
-before insert on имÑ_таблицы_в_кодировке_утф8_длиной_больше_чем_48 for each row set @a:=1;
-select TRIGGER_NAME from information_schema.triggers where
-trigger_schema='test';
-TRIGGER_NAME
-имÑ_триггера_в_кодировке_утф8_длиной_больше_чем_49
-drop trigger имÑ_триггера_в_кодировке_утф8_длиной_больше_чем_49;
-create trigger
-очень_очень_очень_очень_очень_очень_очень_очень_длиннаÑ_Ñтрока_66
-before insert on имÑ_таблицы_в_кодировке_утф8_длиной_больше_чем_48 for each row set @a:=1;
-ERROR 42000: Identifier name 'очень_очень_очень_очень_очень_очень_очень_очень_длинна' is too long
-drop trigger очень_очень_очень_очень_очень_очень_очень_очень_длиннаÑ_Ñтрока_66;
-ERROR 42000: Identifier name 'очень_очень_очень_очень_очень_очень_очень_очень_длинна' is too long
-create procedure имÑ_процедуры_в_кодировке_утф8_длиной_больше_чем_50()
-begin
-end;
-select ROUTINE_NAME from information_schema.routines where
-routine_schema='test';
-ROUTINE_NAME
-имÑ_процедуры_в_кодировке_утф8_длиной_больше_чем_50
-drop procedure имÑ_процедуры_в_кодировке_утф8_длиной_больше_чем_50;
-create procedure очень_очень_очень_очень_очень_очень_очень_очень_длиннаÑ_Ñтрока_66()
-begin
-end;
-ERROR 42000: Identifier name 'очень_очень_очень_очень_очень_очень_очень_очень_длинна' is too long
-create function имÑ_функции_в_кодировке_утф8_длиной_больше_чем_49()
-returns int
-return 0;
-select ROUTINE_NAME from information_schema.routines where
-routine_schema='test';
-ROUTINE_NAME
-имÑ_функции_в_кодировке_утф8_длиной_больше_чем_49
-drop function имÑ_функции_в_кодировке_утф8_длиной_больше_чем_49;
-create function очень_очень_очень_очень_очень_очень_очень_очень_длиннаÑ_Ñтрока_66()
-returns int
-return 0;
-ERROR 42000: Identifier name 'очень_очень_очень_очень_очень_очень_очень_очень_длинна' is too long
-drop view имÑ_вью_кодировке_утф8_длиной_больше_чем_42;
-drop table имÑ_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
-set names default;
-drop table if exists t1,t2,t3;
-drop function if exists f1;
-create function f1() returns int
-begin
-declare res int;
-create temporary table t3 select 1 i;
-set res:= (select count(*) from t1);
-drop temporary table t3;
-return res;
-end|
-create table t1 as select 1;
-create table t2 as select f1() from t1;
-drop table t1,t2;
-drop function f1;
-create table t1 like information_schema.processlist;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `ID` bigint(4) NOT NULL DEFAULT 0,
- `USER` varchar(128) NOT NULL DEFAULT '',
- `HOST` varchar(64) NOT NULL DEFAULT '',
- `DB` varchar(64) DEFAULT NULL,
- `COMMAND` varchar(16) NOT NULL DEFAULT '',
- `TIME` int(7) NOT NULL DEFAULT 0,
- `STATE` varchar(64) DEFAULT NULL,
- `INFO` longtext DEFAULT NULL,
- `TIME_MS` decimal(22,3) NOT NULL DEFAULT 0.000,
- `STAGE` tinyint(2) NOT NULL DEFAULT 0,
- `MAX_STAGE` tinyint(2) NOT NULL DEFAULT 0,
- `PROGRESS` decimal(7,3) NOT NULL DEFAULT 0.000,
- `MEMORY_USED` bigint(7) NOT NULL DEFAULT 0,
- `MAX_MEMORY_USED` bigint(7) NOT NULL DEFAULT 0,
- `EXAMINED_ROWS` int(7) NOT NULL DEFAULT 0,
- `QUERY_ID` bigint(4) NOT NULL DEFAULT 0,
- `INFO_BINARY` blob DEFAULT NULL,
- `TID` bigint(4) NOT NULL DEFAULT 0
-) DEFAULT CHARSET=utf8
-drop table t1;
-create temporary table t1 like information_schema.processlist;
-show create table t1;
-Table Create Table
-t1 CREATE TEMPORARY TABLE `t1` (
- `ID` bigint(4) NOT NULL DEFAULT 0,
- `USER` varchar(128) NOT NULL DEFAULT '',
- `HOST` varchar(64) NOT NULL DEFAULT '',
- `DB` varchar(64) DEFAULT NULL,
- `COMMAND` varchar(16) NOT NULL DEFAULT '',
- `TIME` int(7) NOT NULL DEFAULT 0,
- `STATE` varchar(64) DEFAULT NULL,
- `INFO` longtext DEFAULT NULL,
- `TIME_MS` decimal(22,3) NOT NULL DEFAULT 0.000,
- `STAGE` tinyint(2) NOT NULL DEFAULT 0,
- `MAX_STAGE` tinyint(2) NOT NULL DEFAULT 0,
- `PROGRESS` decimal(7,3) NOT NULL DEFAULT 0.000,
- `MEMORY_USED` bigint(7) NOT NULL DEFAULT 0,
- `MAX_MEMORY_USED` bigint(7) NOT NULL DEFAULT 0,
- `EXAMINED_ROWS` int(7) NOT NULL DEFAULT 0,
- `QUERY_ID` bigint(4) NOT NULL DEFAULT 0,
- `INFO_BINARY` blob DEFAULT NULL,
- `TID` bigint(4) NOT NULL DEFAULT 0
-) DEFAULT CHARSET=utf8
-drop table t1;
-create table t1 like information_schema.character_sets;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `CHARACTER_SET_NAME` varchar(32) NOT NULL DEFAULT '',
- `DEFAULT_COLLATE_NAME` varchar(32) NOT NULL DEFAULT '',
- `DESCRIPTION` varchar(60) NOT NULL DEFAULT '',
- `MAXLEN` bigint(3) NOT NULL DEFAULT 0
-) ENGINE=MEMORY DEFAULT CHARSET=utf8
-drop table t1;
-
-# --
-# -- Bug#18834: ALTER TABLE ADD INDEX on table with two timestamp fields
-# --
-
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-DROP TABLE IF EXISTS t3;
-
-CREATE TABLE t1(c1 TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, c2 TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00');
-
-SET sql_mode = NO_ZERO_DATE;
-
-CREATE TABLE t2(c1 TIMESTAMP, c2 TIMESTAMP DEFAULT 0);
-ERROR 42000: Invalid default value for 'c2'
-
-CREATE TABLE t2(c1 TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, c2 TIMESTAMP NOT NULL);
-ERROR 42000: Invalid default value for 'c2'
-
-# -- Check that NULL column still can be created.
-CREATE TABLE t2(c1 TIMESTAMP NULL);
-
-# -- Check ALTER TABLE.
-ALTER TABLE t1 ADD INDEX(c1);
-ERROR 42000: Invalid default value for 'c2'
-
-# -- Check DATETIME.
-SET sql_mode = '';
-
-CREATE TABLE t3(c1 DATETIME NOT NULL);
-INSERT INTO t3 VALUES (0);
-
-SET sql_mode = TRADITIONAL;
-
-ALTER TABLE t3 ADD INDEX(c1);
-ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'c1' at row 1
-
-# -- Cleanup.
-SET sql_mode = '';
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t3;
-
-# -- End of Bug#18834.
-
-# --
-# -- Bug#34274: Invalid handling of 'DEFAULT 0' for YEAR data type.
-# --
-
-DROP TABLE IF EXISTS t1;
-
-CREATE TABLE t1(c1 YEAR DEFAULT 2008, c2 YEAR DEFAULT 0);
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` year(4) DEFAULT 2008,
- `c2` year(4) DEFAULT 0000
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-INSERT INTO t1 VALUES();
-
-SELECT * FROM t1;
-c1 c2
-2008 0000
-
-ALTER TABLE t1 MODIFY c1 YEAR DEFAULT 0;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` year(4) DEFAULT 0000,
- `c2` year(4) DEFAULT 0000
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-INSERT INTO t1 VALUES();
-
-SELECT * FROM t1;
-c1 c2
-2008 0000
-0000 0000
-
-DROP TABLE t1;
-
-# -- End of Bug#34274
-create table `me:i`(id int);
-drop table `me:i`;
-
-# --
-# -- Bug#45829: CREATE TABLE TRANSACTIONAL PAGE_CHECKSUM ROW_FORMAT=PAGE accepted, does nothing
-# --
-
-drop table if exists t1,t2,t3;
-# Fix modified for MariaDB: we support this syntax
-create table t1 (a int) transactional=0;
-Warnings:
-Warning 1478 Table storage engine 'MyISAM' does not support the create option 'TRANSACTIONAL=1'
-create table t2 (a int) page_checksum=1;
-create table t3 (a int) row_format=page;
-drop table t1,t2,t3;
-
-# -- End of Bug#45829
-create table `#mysql50#t-1` (a int) engine=myisam;
-insert into `#mysql50#t-1` values (1);
-show tables;
-Tables_in_test
-#mysql50#t-1
-create table `t-1` (a int);
-show tables;
-Tables_in_test
-#mysql50#t-1
-t-1
-select * from `t-1`;
-a
-select * from `#mysql50#t-1`;
-a
-1
-drop table `t-1`;
-create table t1 (a int);
-alter table t1 rename `t-1`;
-show tables;
-Tables_in_test
-#mysql50#t-1
-t-1
-drop table `t-1`;
-create table t1 (a int);
-rename table t1 to `t-1`;
-show tables;
-Tables_in_test
-#mysql50#t-1
-t-1
-drop table `#mysql50#t-1`, `t-1`;
-
-End of 5.1 tests
-
-# --
-# -- Bug #43054 Assertion `!table->auto_increment_field_not_null'
-# -- failed when redefining trigger
-
-CREATE TABLE B (
-pk INTEGER AUTO_INCREMENT,
-int_key INTEGER NOT NULL,
-PRIMARY KEY (pk),
-KEY (int_key)
-);
-INSERT IGNORE INTO B VALUES ('9', '9');
-CREATE TABLE IF NOT EXISTS t1 (
-`pk` INTEGER NOT NULL AUTO_INCREMENT ,
-`int` INTEGER ,
-PRIMARY KEY ( `pk` )
-) SELECT `pk` , `int_key` FROM B ;
-CREATE TRIGGER f BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-INSERT INTO t1 ( `int` ) VALUES (4 ),( 8 ),( 2 ) ;
-END ; |
-INSERT INTO t1 (pk, int_key) SELECT `pk` , `int_key` FROM B ;
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-CREATE TRIGGER f BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-UPDATE A SET `pk`=1 WHERE `pk`=0 ;
-END ;|
-ERROR HY000: Trigger 'test.f' already exists
-CREATE TRIGGER f1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-UPDATE A SET `pk`=1 WHERE `pk`=0 ;
-END ;|
-DROP TABLE t1;
-DROP TABLE B;
-#
-# Bug #47107 assert in notify_shared_lock on incorrect
-# CREATE TABLE , HANDLER
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(f1 integer);
-# The following CREATE TABLEs before gave an assert.
-HANDLER t1 OPEN AS A;
-CREATE TABLE t1 SELECT 1 AS f2;
-ERROR 42S01: Table 't1' already exists
-HANDLER t1 OPEN AS A;
-CREATE TABLE t1(f1 integer);
-ERROR 42S01: Table 't1' already exists
-CREATE TABLE t2(f1 integer);
-HANDLER t1 OPEN AS A;
-CREATE TABLE t1 LIKE t2;
-ERROR 42S01: Table 't1' already exists
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Bug #48800 CREATE TABLE t...SELECT fails if t is a
-# temporary table
-#
-CREATE TEMPORARY TABLE t1 (a INT);
-CREATE TABLE t1 (a INT);
-CREATE TEMPORARY TABLE t2 (a INT);
-CREATE VIEW t2 AS SELECT 1;
-CREATE TABLE t3 (a INT);
-CREATE TEMPORARY TABLE t3 SELECT 1;
-CREATE TEMPORARY TABLE t4 (a INT);
-CREATE TABLE t4 AS SELECT 1;
-DROP TEMPORARY TABLE t1, t2, t3, t4;
-DROP TABLE t1, t3, t4;
-DROP VIEW t2;
-#
-# Bug #49193 CREATE TABLE reacts differently depending
-# on whether data is selected or not
-#
-CREATE TEMPORARY TABLE t2 (ID INT);
-INSERT INTO t2 VALUES (1),(2),(3);
-CREATE TEMPORARY TABLE t1 (ID INT);
-CREATE TABLE IF NOT EXISTS t1 (ID INT);
-INSERT INTO t1 SELECT * FROM t2;
-SELECT * FROM t1;
-ID
-1
-2
-3
-DROP TEMPORARY TABLE t1;
-SELECT * FROM t1;
-ID
-DROP TABLE t1;
-CREATE TEMPORARY TABLE t1 (ID INT);
-CREATE TABLE IF NOT EXISTS t1 SELECT * FROM t2;
-SELECT * FROM t1;
-ID
-DROP TEMPORARY TABLE t1;
-SELECT * FROM t1;
-ID
-1
-2
-3
-DROP TABLE t1;
-CREATE TEMPORARY TABLE t1 (ID INT);
-CREATE TABLE t1 SELECT * FROM t2;
-SELECT * FROM t1;
-ID
-DROP TEMPORARY TABLE t1;
-SELECT * FROM t1;
-ID
-1
-2
-3
-DROP TABLE t1;
-DROP TEMPORARY TABLE t2;
-#
-# Bug #22909 "Using CREATE ... LIKE is possible to create field
-# with invalid default value"
-#
-# Altough original bug report suggests to use older version of MySQL
-# for producing .FRM with invalid defaults we use sql_mode to achieve
-# the same effect.
-drop tables if exists t1, t2;
-# Attempt to create table with invalid default should fail in normal mode
-create table t1 (dt datetime default '2008-02-31 00:00:00');
-ERROR 42000: Invalid default value for 'dt'
-set @old_mode= @@sql_mode;
-set @@sql_mode='ALLOW_INVALID_DATES';
-# The same should be possible in relaxed mode
-create table t1 (dt datetime default '2008-02-31 00:00:00');
-set @@sql_mode= @old_mode;
-# In normal mode attempt to create copy of table with invalid
-# default should fail
-create table t2 like t1;
-ERROR 42000: Invalid default value for 'dt'
-set @@sql_mode='ALLOW_INVALID_DATES';
-# But should work in relaxed mode
-create table t2 like t1;
-# Check that table definitions match
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dt` datetime DEFAULT '2008-02-31 00:00:00'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `dt` datetime DEFAULT '2008-02-31 00:00:00'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-set @@sql_mode= @old_mode;
-drop tables t1, t2;
-CREATE TABLE t1 (id int);
-CREATE TABLE t2 (id int);
-INSERT INTO t1 VALUES (1), (1);
-INSERT INTO t2 VALUES (2), (2);
-CREATE VIEW v1 AS SELECT id FROM t2;
-CREATE TABLE IF NOT EXISTS v1(a int, b int) SELECT id, id as di FROM t1;
-Warnings:
-Note 1050 Table 'v1' already exists
-SHOW CREATE TABLE v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t2`.`id` AS `id` from `t2` latin1 latin1_swedish_ci
-SELECT * FROM t2;
-id
-2
-2
-SELECT * FROM v1;
-id
-2
-2
-DROP VIEW v1;
-CREATE TEMPORARY TABLE tt1 AS SELECT id FROM t2;
-CREATE TEMPORARY TABLE IF NOT EXISTS tt1(a int, b int) SELECT id, id FROM t1;
-Warnings:
-Note 1050 Table 'tt1' already exists
-SELECT * FROM t2;
-id
-2
-2
-SELECT * FROM tt1;
-id
-2
-2
-DROP TEMPORARY TABLE tt1;
-DROP TABLE t1, t2;
-#
-# WL#5370 "Changing 'CREATE TABLE IF NOT EXISTS ... SELECT'
-# behaviour.
-#
-#
-# 1. Basic case: a base table.
-#
-create table if not exists t1 (a int) select 1 as a;
-select * from t1;
-a
-1
-create table t1 (a int) select 2 as a;
-ERROR 42S01: Table 't1' already exists
-select * from t1;
-a
-1
-# Produces an essential warning ER_TABLE_EXISTS.
-create table if not exists t1 (a int) select 2 as a;
-Warnings:
-Note 1050 Table 't1' already exists
-# No new data in t1.
-select * from t1;
-a
-1
-drop table t1;
-#
-# 2. A temporary table.
-#
-create temporary table if not exists t1 (a int) select 1 as a;
-select * from t1;
-a
-1
-create temporary table t1 (a int) select 2 as a;
-ERROR 42S01: Table 't1' already exists
-select * from t1;
-a
-1
-# An essential warning.
-create temporary table if not exists t1 (a int) select 2 as a;
-Warnings:
-Note 1050 Table 't1' already exists
-# No new data in t1.
-select * from t1;
-a
-1
-drop temporary table t1;
-#
-# 3. Creating a base table in presence of a temporary table.
-#
-create table t1 (a int);
-# Create a view for convenience of querying t1 shadowed by a temp.
-create view v1 as select a from t1;
-drop table t1;
-create temporary table t1 (a int) select 1 as a;
-create table if not exists t1 (a int) select 2 as a;
-select * from t1;
-a
-1
-select * from v1;
-a
-2
-# Note: an essential warning.
-create table if not exists t1 (a int) select 3 as a;
-Warnings:
-Note 1050 Table 't1' already exists
-select * from t1;
-a
-1
-select * from v1;
-a
-2
-drop temporary table t1;
-select * from t1;
-a
-2
-drop view v1;
-drop table t1;
-#
-# 4. Creating a temporary table in presence of a base table.
-#
-create table t1 (a int) select 1 as a;
-create temporary table if not exists t1 select 2 as a;
-select * from t1;
-a
-2
-# Note: an essential warning.
-create temporary table if not exists t1 select 3 as a;
-Warnings:
-Note 1050 Table 't1' already exists
-select * from t1;
-a
-2
-drop temporary table t1;
-select * from t1;
-a
-1
-drop table t1;
-#
-# 5. Creating a base table in presence of an updatable view.
-#
-create table t2 (a int unique);
-create view t1 as select a from t2;
-insert into t1 (a) values (1);
-create table t1 (a int);
-ERROR 42S01: Table 't1' already exists
-# Note: an essential warning.
-create table if not exists t1 (a int);
-Warnings:
-Note 1050 Table 't1' already exists
-create table t1 (a int) select 2 as a;
-ERROR 42S01: Table 't1' already exists
-select * from t1;
-a
-1
-# Note: an essential warning.
-create table if not exists t1 (a int) select 2 as a;
-Warnings:
-Note 1050 Table 't1' already exists
-select * from t1;
-a
-1
-select * from t2;
-a
-1
-create temporary table if not exists t1 (a int) select 3 as a;
-select * from t1;
-a
-3
-select * from t2;
-a
-1
-# Note: an essential warning.
-create temporary table if not exists t1 (a int) select 4 as a;
-Warnings:
-Note 1050 Table 't1' already exists
-select * from t1;
-a
-3
-select * from t2;
-a
-1
-drop temporary table t1;
-#
-# Repeating the test with a non-updatable view.
-#
-drop view t1;
-create view t1 as select a + 5 as a from t2;
-insert into t1 (a) values (1);
-ERROR HY000: The target table t1 of the INSERT is not insertable-into
-update t1 set a=3 where a=2;
-ERROR HY000: Column 'a' is not updatable
-create table t1 (a int);
-ERROR 42S01: Table 't1' already exists
-# Note: an essential warning.
-create table if not exists t1 (a int);
-Warnings:
-Note 1050 Table 't1' already exists
-create table t1 (a int) select 2 as a;
-ERROR 42S01: Table 't1' already exists
-select * from t1;
-a
-6
-# Note: an essential warning.
-create table if not exists t1 (a int) select 2 as a;
-Warnings:
-Note 1050 Table 't1' already exists
-select * from t1;
-a
-6
-select * from t2;
-a
-1
-create temporary table if not exists t1 (a int) select 3 as a;
-select * from t1;
-a
-3
-select * from t2;
-a
-1
-# Note: an essential warning.
-create temporary table if not exists t1 (a int) select 4 as a;
-Warnings:
-Note 1050 Table 't1' already exists
-select * from t1;
-a
-3
-select * from t2;
-a
-1
-drop temporary table t1;
-drop view t1;
-drop table t2;
-#
-# Repeating the test with a view select a constant number
-#
-create view t1 as select 1 as a;
-insert into t1 (a) values (1);
-ERROR HY000: The target table t1 of the INSERT is not insertable-into
-update t1 set a=3 where a=2;
-ERROR HY000: The target table t1 of the UPDATE is not updatable
-create table t1 (a int);
-ERROR 42S01: Table 't1' already exists
-# Note: an essential warning.
-create table if not exists t1 (a int);
-Warnings:
-Note 1050 Table 't1' already exists
-create table t1 (a int) select 2 as a;
-ERROR 42S01: Table 't1' already exists
-select * from t1;
-a
-1
-# Note: an essential warning.
-create table if not exists t1 (a int) select 2 as a;
-Warnings:
-Note 1050 Table 't1' already exists
-select * from t1;
-a
-1
-create temporary table if not exists t1 (a int) select 3 as a;
-select * from t1;
-a
-3
-# Note: an essential warning.
-create temporary table if not exists t1 (a int) select 4 as a;
-Warnings:
-Note 1050 Table 't1' already exists
-select * from t1;
-a
-3
-drop temporary table t1;
-drop view t1;
-#
-# 6. Test of unique_table().
-#
-create table t1 (a int) select 1 as a;
-create temporary table if not exists t1 (a int) select * from t1;
-create temporary table if not exists t1 (a int) select * from t1;
-Warnings:
-Note 1050 Table 't1' already exists
-select * from t1;
-a
-1
-drop temporary table t1;
-select * from t1;
-a
-1
-drop table t1;
-create temporary table t1 (a int) select 1 as a;
-create table if not exists t1 (a int) select * from t1;
-create table if not exists t1 (a int) select * from t1;
-Warnings:
-Note 1050 Table 't1' already exists
-select * from t1;
-a
-1
-drop temporary table t1;
-select * from t1;
-a
-1
-drop table t1;
-create table if not exists t1 (a int) select * from t1;
-ERROR 42S02: Table 'test.t1' doesn't exist
-#
-# 7. Test of non-matching columns, REPLACE and IGNORE.
-#
-create table t1 (a int) select 1 as b, 2 as c;
-select * from t1;
-a b c
-NULL 1 2
-drop table t1;
-create table if not exists t1 (a int, b date, c date) select 1 as b, 2 as c;
-Warnings:
-Warning 1265 Data truncated for column 'b' at row 1
-Warning 1265 Data truncated for column 'c' at row 1
-select * from t1;
-a b c
-NULL 0000-00-00 0000-00-00
-drop table t1;
-set @@session.sql_mode='STRICT_ALL_TABLES';
-create table if not exists t1 (a int, b date, c date) select 1 as b, 2 as c;
-ERROR 22007: Incorrect date value: '1' for column 'b' at row 1
-select * from t1;
-ERROR 42S02: Table 'test.t1' doesn't exist
-create table if not exists t1 (a int, b date, c date)
-replace select 1 as b, 2 as c;
-ERROR 22007: Incorrect date value: '1' for column 'b' at row 1
-select * from t1;
-ERROR 42S02: Table 'test.t1' doesn't exist
-create table if not exists t1 (a int, b date, c date)
-ignore select 1 as b, 2 as c;
-Warnings:
-Warning 1265 Data truncated for column 'b' at row 1
-Warning 1265 Data truncated for column 'c' at row 1
-select * from t1;
-a b c
-NULL 0000-00-00 0000-00-00
-set @@session.sql_mode=default;
-drop table t1;
-create table if not exists t1 (a int unique, b int)
-replace select 1 as a, 1 as b union select 1 as a, 2 as b;
-select * from t1;
-a b
-1 2
-drop table t1;
-create table if not exists t1 (a int unique, b int)
-ignore select 1 as a, 1 as b union select 1 as a, 2 as b;
-Warnings:
-Warning 1062 Duplicate entry '1' for key 'a'
-select * from t1;
-a b
-1 1
-drop table t1;
-#
-# Checking that CREATE IF NOT EXISTS is not blocked by running SELECT
-#
-create table t1 (a int, b int) engine=myisam;
-create table t2 (a int, b int) engine=myisam;
-insert into t1 values (1,1);
-lock tables t1 read;
-connect user1,localhost,root,,test;
-set @@lock_wait_timeout=5;
-create table if not exists t1 (a int, b int);
-Warnings:
-Note 1050 Table 't1' already exists
-create table if not exists t1 (a int, b int) select 2,2;
-Warnings:
-Note 1050 Table 't1' already exists
-create table if not exists t1 like t2;
-Warnings:
-Note 1050 Table 't1' already exists
-create table t1 (a int, b int);
-ERROR 42S01: Table 't1' already exists
-create table t1 (a int, b int) select 2,2;
-ERROR 42S01: Table 't1' already exists
-create table t1 like t2;
-ERROR 42S01: Table 't1' already exists
-create or replace table t1 (a int, b int) select 2,2;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-disconnect user1;
-connection default;
-select * from t1;
-a b
-1 1
-unlock tables;
-drop table t1,t2;
-#
-# MDEV-6179: dynamic columns functions/cast()/convert() doesn't
-# play nice with CREATE/ALTER TABLE
-#
-create table t1 (
-color char(32) as (COLUMN_GET(dynamic_cols, 1 as char)) persistent,
-cl char(32) as (COLUMN_GET(COLUMN_ADD(COLUMN_CREATE(1 , 'blue' as char), 2, 'ttt'), i as char)) persistent,
-item_name varchar(32) primary key, -- A common attribute for all items
-i int,
-dynamic_cols blob -- Dynamic columns will be stored here
-);
-INSERT INTO t1(item_name, dynamic_cols, i) VALUES
-('MariaDB T-shirt', COLUMN_CREATE(1, 'blue', 2, 'XL'), 1);
-INSERT INTO t1(item_name, dynamic_cols, i) VALUES
-('Thinkpad Laptop', COLUMN_CREATE(1, 'black', 3, 500), 2);
-select item_name, color, cl from t1;
-item_name color cl
-MariaDB T-shirt blue blue
-Thinkpad Laptop black ttt
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `color` char(32) GENERATED ALWAYS AS (column_get(`dynamic_cols`,1 as char charset latin1)) STORED,
- `cl` char(32) GENERATED ALWAYS AS (column_get(column_add(column_create(1,'blue' AS char charset latin1 ),2,'ttt'),`i` as char charset latin1)) STORED,
- `item_name` varchar(32) NOT NULL,
- `i` int(11) DEFAULT NULL,
- `dynamic_cols` blob DEFAULT NULL,
- PRIMARY KEY (`item_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (
-n int,
-c char(32) as (convert(cast(n as char), char)) persistent
-);
-insert into t1(n) values (1),(2),(3);
-select * from t1;
-n c
-1 1
-2 2
-3 3
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `n` int(11) DEFAULT NULL,
- `c` char(32) GENERATED ALWAYS AS (cast(cast(`n` as char charset latin1) as char charset latin1)) STORED
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @@session.collation_server=filename;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1(a enum('',''));
-Warnings:
-Note 1291 Column 'a' has duplicated value '' in ENUM
-drop table t1;
-set @@session.collation_server=default;
-#
-# MDEV-7765: Crash (Assertion `!table || (!table->write_set ||
-# bitmap_is_set(table->write_set, field_index) ||
-# bitmap_is_set(table->vcol_set, field_index))' fails)
-# on using function over not created table
-#
-CREATE function f1() returns int
-BEGIN
-declare n int;
-set n:= (select count(*) from t1);
-return n;
-end|
-create table t1 as select f1();
-ERROR 42S02: Table 'test.t1' doesn't exist
-drop function f1;
-#
-# MDEV-10274 Bundling insert with create statement
-# for table with unsigned Decimal primary key issues warning 1194
-#
-create table t1(ID decimal(2,1) unsigned NOT NULL, PRIMARY KEY (ID))engine=memory
-select 2.1 ID;
-drop table t1;
-create table t1 (
-f01 int, f02 int, f03 int, f04 int, f05 int, f06 int, f07 int, f08 int, f09 int, f10 int, f11 int, f12 int, f13 int, f14 int, f15 int, f16 int, f17 int, f18 int, f19 int, f20 int, f21 int, f22 int, f23 int, f24 int, f25 int, f26 int, f27 int, f28 int, f29 int, f30 int, f31 int, f32 int, f33 int, f34 int, f35 int, f36 int, f37 int, f38 int, f39 int, f40 int, f41 int, f42 int, f43 int, f44 int, f45 int, f46 int, f47 int, f48 int, f49 int, f50 int, f51 int, f52 int, f53 int, f54 int, f55 int, f56 int, f57 int, f58 int, f59 int, f60 int, f61 int, f62 int, f63 int, f64 int,
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0001 (f01) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0002 (f02) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0003 (f03) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0004 (f04) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0005 (f05) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0006 (f06) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0007 (f07) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0008 (f08) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0009 (f09) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0010 (f10) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0011 (f11) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0012 (f12) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0013 (f13) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0014 (f14) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0015 (f15) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0016 (f16) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0017 (f17) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0018 (f18) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0019 (f19) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0020 (f20) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0021 (f21) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0022 (f22) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0023 (f23) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0024 (f24) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0025 (f25) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0026 (f26) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0027 (f27) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0028 (f28) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0029 (f29) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0030 (f30) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0031 (f31) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0032 (f32) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0033 (f33) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0034 (f34) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0035 (f35) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0036 (f36) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0037 (f37) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0038 (f38) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0039 (f39) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0040 (f40) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0041 (f41) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0042 (f42) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0043 (f43) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0044 (f44) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0045 (f45) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0046 (f46) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0047 (f47) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0048 (f48) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0049 (f49) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0050 (f50) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0051 (f51) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0052 (f52) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0053 (f53) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0054 (f54) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0055 (f55) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0056 (f56) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0057 (f57) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0058 (f58) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0059 (f59) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0060 (f60) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0061 (f61) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0062 (f62) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0063 (f63) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0064 (f64) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-fend int);
-ERROR HY000: Cannot create table `t1`: index information is too long. Decrease number of indexes or use shorter index names or shorter comments.
-create table t1 (
-f01 int, f02 int, f03 int, f04 int, f05 int, f06 int, f07 int, f08 int, f09 int, f10 int, f11 int, f12 int, f13 int, f14 int, f15 int, f16 int, f17 int, f18 int, f19 int, f20 int, f21 int, f22 int, f23 int, f24 int, f25 int, f26 int, f27 int, f28 int, f29 int, f30 int, f31 int, f32 int, f33 int, f34 int, f35 int, f36 int, f37 int, f38 int, f39 int, f40 int, f41 int, f42 int, f43 int, f44 int, f45 int, f46 int, f47 int, f48 int, f49 int, f50 int, f51 int, f52 int, f53 int, f54 int, f55 int, f56 int, f57 int, f58 int, f59 int, f60 int, f61 int, f62 int, f63 int, f64 int,
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0001 (f01) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0002 (f02) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0003 (f03) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0004 (f04) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0005 (f05) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0006 (f06) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0007 (f07) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0008 (f08) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0009 (f09) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0010 (f10) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0011 (f11) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0012 (f12) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0013 (f13) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0014 (f14) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0015 (f15) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0016 (f16) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0017 (f17) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0018 (f18) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0019 (f19) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0020 (f20) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0021 (f21) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0022 (f22) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0023 (f23) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0024 (f24) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0025 (f25) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0026 (f26) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0027 (f27) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0028 (f28) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0029 (f29) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0030 (f30) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0031 (f31) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0032 (f32) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0033 (f33) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0034 (f34) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0035 (f35) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0036 (f36) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0037 (f37) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0038 (f38) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0039 (f39) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0040 (f40) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0041 (f41) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0042 (f42) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0043 (f43) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0044 (f44) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0045 (f45) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0046 (f46) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0047 (f47) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0048 (f48) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0049 (f49) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0050 (f50) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0051 (f51) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0052 (f52) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0053 (f53) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0054 (f54) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0055 (f55) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0056 (f56) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0057 (f57) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0058 (f58) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0059 (f59) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0060 (f60) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0061 (f61) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0062 (f62) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0063 (f63) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
-fend int);
-alter table t1 add
-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0064 (f64) comment 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy';
-ERROR HY000: Cannot create table `t1`: index information is too long. Decrease number of indexes or use shorter index names or shorter comments.
-drop table t1;
-End of 5.5 tests
-create table t1;
-ERROR 42000: A table must have at least 1 column
-create table t1 (i int, j int, key(i), key(i)) as select 1 as i, 2 as j;
-Warnings:
-Note 1831 Duplicate index `i_2`. This is deprecated and will be disallowed in a future release
-drop table t1;
diff --git a/mysql-test/r/create_delayed.result b/mysql-test/r/create_delayed.result
deleted file mode 100644
index c36a8e60cbb..00000000000
--- a/mysql-test/r/create_delayed.result
+++ /dev/null
@@ -1,3 +0,0 @@
-drop table if exists t1;
-Starting test
-# All done
diff --git a/mysql-test/r/create_drop_binlog.result b/mysql-test/r/create_drop_binlog.result
deleted file mode 100644
index be40fcc140a..00000000000
--- a/mysql-test/r/create_drop_binlog.result
+++ /dev/null
@@ -1,393 +0,0 @@
-reset master;
-CREATE OR REPLACE DATABASE d1;
-CREATE OR REPLACE DATABASE d1;
-DROP DATABASE d1;
-CREATE DATABASE IF NOT EXISTS d1;
-CREATE DATABASE IF NOT EXISTS d1;
-Warnings:
-Note 1007 Can't create database 'd1'; database exists
-DROP DATABASE IF EXISTS d1;
-DROP DATABASE IF EXISTS d1;
-Warnings:
-Note 1008 Can't drop database 'd1'; database doesn't exist
-"Runnig SHOW BINLOG EVENTS"
-Log_name Pos Event_type Server_id End_log_pos Info
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # CREATE OR REPLACE DATABASE d1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # CREATE OR REPLACE DATABASE d1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # DROP DATABASE d1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # CREATE DATABASE IF NOT EXISTS d1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # CREATE DATABASE IF NOT EXISTS d1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # DROP DATABASE IF EXISTS d1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # DROP DATABASE IF EXISTS d1
-RESET MASTER;
-USE test;
-CREATE OR REPLACE FUNCTION f1() RETURNS INT RETURN 1;
-CREATE OR REPLACE FUNCTION f1() RETURNS INT RETURN 1;
-DROP FUNCTION f1;
-CREATE FUNCTION IF NOT EXISTS f1() RETURNS INT RETURN 1;
-CREATE FUNCTION IF NOT EXISTS f1() RETURNS INT RETURN 1;
-Warnings:
-Note 1304 FUNCTION f1 already exists
-DROP FUNCTION IF EXISTS f1;
-DROP FUNCTION IF EXISTS f1;
-Warnings:
-Note 1305 FUNCTION test.f1 does not exist
-SHOW BINLOG EVENTS;
-Log_name Pos Event_type Server_id End_log_pos Info
-# # Format_desc 1 # VER
-# # Gtid_list 1 # []
-# # Binlog_checkpoint 1 # master-bin.000001
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `f1`() RETURNS int(11)
-RETURN 1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `f1`() RETURNS int(11)
-RETURN 1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP FUNCTION f1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE DEFINER=`root`@`localhost` FUNCTION IF NOT EXISTS `f1`() RETURNS int(11)
-RETURN 1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE DEFINER=`root`@`localhost` FUNCTION IF NOT EXISTS `f1`() RETURNS int(11)
-RETURN 1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP FUNCTION IF EXISTS f1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP FUNCTION IF EXISTS f1
-RESET MASTER;
-CREATE TABLE t1 (a DATETIME);
-CREATE OR REPLACE PROCEDURE p1() DELETE FROM t1;
-CREATE OR REPLACE PROCEDURE p1() DELETE FROM t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE IF NOT EXISTS p1() DELETE FROM t1;
-CREATE PROCEDURE IF NOT EXISTS p1() DELETE FROM t1;
-Warnings:
-Note 1304 PROCEDURE p1 already exists
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p1;
-Warnings:
-Note 1305 PROCEDURE test.p1 does not exist
-SHOW BINLOG EVENTS;
-Log_name Pos Event_type Server_id End_log_pos Info
-# # Format_desc 1 # VER
-# # Gtid_list 1 # []
-# # Binlog_checkpoint 1 # master-bin.000001
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE TABLE t1 (a DATETIME)
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `p1`()
-DELETE FROM t1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `p1`()
-DELETE FROM t1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP PROCEDURE p1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE DEFINER=`root`@`localhost` PROCEDURE IF NOT EXISTS `p1`()
-DELETE FROM t1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE DEFINER=`root`@`localhost` PROCEDURE IF NOT EXISTS `p1`()
-DELETE FROM t1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP PROCEDURE IF EXISTS p1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP PROCEDURE IF EXISTS p1
-DROP TABLE t1;
-RESET MASTER;
-CREATE OR REPLACE FUNCTION metaphon RETURNS STRING SONAME 'UDF_EXAMPLE_LIB';
-CREATE OR REPLACE FUNCTION metaphon RETURNS STRING SONAME 'UDF_EXAMPLE_LIB';
-DROP FUNCTION metaphon;
-CREATE FUNCTION IF NOT EXISTS metaphon RETURNS STRING SONAME 'UDF_EXAMPLE_LIB';
-CREATE FUNCTION IF NOT EXISTS metaphon RETURNS STRING SONAME 'UDF_EXAMPLE_LIB';
-Warnings:
-Note 1125 Function 'metaphon' already exists
-DROP FUNCTION IF EXISTS metaphon;
-DROP FUNCTION IF EXISTS metaphon;
-Warnings:
-Note 1305 FUNCTION test.metaphon does not exist
-SHOW BINLOG EVENTS;
-Log_name Pos Event_type Server_id End_log_pos Info
-# # Format_desc 1 # VER
-# # Gtid_list 1 # []
-# # Binlog_checkpoint 1 # master-bin.000001
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE FUNCTION metaphon RETURNS STRING SONAME 'UDM_EXAMPLE_LIB'
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE FUNCTION metaphon RETURNS STRING SONAME 'UDM_EXAMPLE_LIB'
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP FUNCTION metaphon
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE FUNCTION IF NOT EXISTS metaphon RETURNS STRING SONAME 'UDM_EXAMPLE_LIB'
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE FUNCTION IF NOT EXISTS metaphon RETURNS STRING SONAME 'UDM_EXAMPLE_LIB'
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP FUNCTION IF EXISTS metaphon
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP FUNCTION IF EXISTS metaphon
-RESET MASTER;
-#
-# CREATE SERVER is not logged
-#
-CREATE OR REPLACE SERVER s1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'root', HOST 'localhost', DATABASE 'test');
-CREATE OR REPLACE SERVER s1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'root', HOST 'localhost', DATABASE 'test');
-DROP SERVER s1;
-CREATE SERVER IF NOT EXISTS s1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'root', HOST 'localhost', DATABASE 'test');
-CREATE SERVER IF NOT EXISTS s1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'root', HOST 'localhost', DATABASE 'test');
-Warnings:
-Note 1476 The foreign server, s1, you are trying to create already exists
-DROP SERVER IF EXISTS s1;
-DROP SERVER IF EXISTS s1;
-SHOW BINLOG EVENTS;
-Log_name Pos Event_type Server_id End_log_pos Info
-# # Format_desc 1 # VER
-# # Gtid_list 1 # []
-# # Binlog_checkpoint 1 # master-bin.000001
-RESET MASTER;
-CREATE OR REPLACE VIEW v1 AS SELECT 1;
-CREATE OR REPLACE VIEW v1 AS SELECT 1;
-DROP VIEW v1;
-CREATE VIEW IF NOT EXISTS v1 AS SELECT 1;
-CREATE VIEW IF NOT EXISTS v1 AS SELECT 1;
-Warnings:
-Note 1050 Table 'v1' already exists
-DROP VIEW IF EXISTS v1;
-DROP VIEW IF EXISTS v1;
-Warnings:
-Note 4092 Unknown VIEW: 'test.v1'
-SHOW BINLOG EVENTS;
-Log_name Pos Event_type Server_id End_log_pos Info
-# # Format_desc 1 # VER
-# # Gtid_list 1 # []
-# # Binlog_checkpoint 1 # master-bin.000001
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS SELECT 1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS SELECT 1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP VIEW v1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW IF NOT EXISTS `v1` AS SELECT 1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW IF NOT EXISTS `v1` AS SELECT 1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP VIEW IF EXISTS v1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP VIEW IF EXISTS v1
-RESET MASTER;
-CREATE OR REPLACE ROLE r1;
-CREATE OR REPLACE ROLE r1;
-DROP ROLE r1;
-CREATE ROLE IF NOT EXISTS r1;
-CREATE ROLE IF NOT EXISTS r1;
-Warnings:
-Note 1975 Can't create role 'r1'; it already exists
-DROP ROLE IF EXISTS r1;
-DROP ROLE IF EXISTS r1;
-Warnings:
-Note 1976 Can't drop role 'r1'; it doesn't exist
-SHOW BINLOG EVENTS;
-Log_name Pos Event_type Server_id End_log_pos Info
-# # Format_desc 1 # VER
-# # Gtid_list 1 # []
-# # Binlog_checkpoint 1 # master-bin.000001
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE ROLE r1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE ROLE r1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP ROLE r1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE ROLE IF NOT EXISTS r1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE ROLE IF NOT EXISTS r1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP ROLE IF EXISTS r1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP ROLE IF EXISTS r1
-RESET MASTER;
-CREATE OR REPLACE USER u1@localhost;
-CREATE OR REPLACE USER u1@localhost;
-DROP USER u1@localhost;
-CREATE USER IF NOT EXISTS u1@localhost;
-CREATE USER IF NOT EXISTS u1@localhost;
-Warnings:
-Note 1973 Can't create user 'u1'@'localhost'; it already exists
-DROP USER IF EXISTS u1@localhost;
-DROP USER IF EXISTS u1@localhost;
-Warnings:
-Note 1974 Can't drop user 'u1'@'localhost'; it doesn't exist
-SHOW BINLOG EVENTS;
-Log_name Pos Event_type Server_id End_log_pos Info
-# # Format_desc 1 # VER
-# # Gtid_list 1 # []
-# # Binlog_checkpoint 1 # master-bin.000001
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE USER u1@localhost
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE USER u1@localhost
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP USER u1@localhost
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE USER IF NOT EXISTS u1@localhost
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE USER IF NOT EXISTS u1@localhost
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP USER IF EXISTS u1@localhost
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP USER IF EXISTS u1@localhost
-RESET MASTER;
-SET timestamp=UNIX_TIMESTAMP('2014-11-01 10:20:30');
-CREATE OR REPLACE EVENT ev1 ON SCHEDULE EVERY 1 SECOND DO DROP TABLE IF EXISTS t1;
-CREATE OR REPLACE EVENT ev1 ON SCHEDULE EVERY 1 SECOND DO DROP TABLE IF EXISTS t2;
-SELECT EVENT_NAME, EVENT_DEFINITION FROM INFORMATION_SCHEMA.EVENTS;
-EVENT_NAME EVENT_DEFINITION
-ev1 DROP TABLE IF EXISTS t2
-DROP EVENT ev1;
-DROP EVENT IF EXISTS ev1;
-Warnings:
-Note 1305 Event ev1 does not exist
-SHOW BINLOG EVENTS;
-Log_name Pos Event_type Server_id End_log_pos Info
-# # Format_desc 1 # VER
-# # Gtid_list 1 # []
-# # Binlog_checkpoint 1 # master-bin.000001
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT ev1 ON SCHEDULE EVERY 1 SECOND DO DROP TABLE IF EXISTS t1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT ev1 ON SCHEDULE EVERY 1 SECOND DO DROP TABLE IF EXISTS t2
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP EVENT ev1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP EVENT IF EXISTS ev1
-RESET MASTER;
-CREATE TABLE t1 (a INT);
-CREATE OR REPLACE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET NEW.a=10;
-CREATE OR REPLACE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET NEW.a=11;
-DROP TRIGGER tr1;
-CREATE TRIGGER IF NOT EXISTS tr1 BEFORE INSERT ON t1 FOR EACH ROW SET NEW.a=20;
-CREATE TRIGGER IF NOT EXISTS tr1 BEFORE INSERT ON t1 FOR EACH ROW SET NEW.a=21;
-Warnings:
-Note 1359 Trigger 'test.tr1' already exists
-DROP TRIGGER IF EXISTS tr1;
-DROP TRIGGER IF EXISTS tr1;
-Warnings:
-Note 1360 Trigger does not exist
-DROP TABLE t1;
-SHOW BINLOG EVENTS;
-Log_name Pos Event_type Server_id End_log_pos Info
-# # Format_desc 1 # VER
-# # Gtid_list 1 # []
-# # Binlog_checkpoint 1 # master-bin.000001
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE TABLE t1 (a INT)
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET NEW.a=10
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET NEW.a=11
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP TRIGGER tr1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE DEFINER=`root`@`localhost` TRIGGER IF NOT EXISTS tr1 BEFORE INSERT ON t1 FOR EACH ROW SET NEW.a=20
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE DEFINER=`root`@`localhost` TRIGGER IF NOT EXISTS tr1 BEFORE INSERT ON t1 FOR EACH ROW SET NEW.a=21
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP TRIGGER IF EXISTS tr1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP TRIGGER IF EXISTS tr1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP TABLE `t1` /* generated by server */
-RESET MASTER;
-CREATE TABLE t1(a INT, b INT);
-CREATE TABLE IF NOT EXISTS t1(a INT, b INT);
-Warnings:
-Note 1050 Table 't1' already exists
-CREATE OR REPLACE INDEX i1 ON t1(a);
-CREATE OR REPLACE INDEX i1 ON t1(a);
-CREATE OR REPLACE INDEX i1 ON t1(a,b);
-CREATE OR REPLACE INDEX i1 ON t1(a,b);
-DROP TABLE t1;
-SHOW BINLOG EVENTS;
-Log_name Pos Event_type Server_id End_log_pos Info
-# # Format_desc 1 # VER
-# # Gtid_list 1 # []
-# # Binlog_checkpoint 1 # master-bin.000001
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE TABLE t1(a INT, b INT)
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE TABLE IF NOT EXISTS t1(a INT, b INT)
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE INDEX i1 ON t1(a)
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE INDEX i1 ON t1(a)
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE INDEX i1 ON t1(a,b)
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE OR REPLACE INDEX i1 ON t1(a,b)
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP TABLE `t1` /* generated by server */
-RESET MASTER;
-RESET MASTER;
-SHOW MASTER STATUS;
-File Position Binlog_Do_DB Binlog_Ignore_DB
-master-bin.000001 <pos>
-RESET MASTER TO 100;
-SHOW MASTER STATUS;
-File Position Binlog_Do_DB Binlog_Ignore_DB
-master-bin.000100 <pos>
-RESET MASTER;
-SHOW MASTER STATUS;
-File Position Binlog_Do_DB Binlog_Ignore_DB
-master-bin.000001 <pos>
-CREATE TABLE t1(a INT, b INT);
-CREATE TABLE IF NOT EXISTS t1(a INT, b INT);
-Warnings:
-Note 1050 Table 't1' already exists
-CREATE INDEX IF NOT EXISTS i1 ON t1(a);
-CREATE INDEX IF NOT EXISTS i1 ON t1(a);
-Warnings:
-Note 1061 Duplicate key name 'i1'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- KEY `i1` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP INDEX IF EXISTS i1 ON t1;
-DROP INDEX IF EXISTS i1 ON t1;
-Warnings:
-Note 1091 Can't DROP INDEX `i1`; check that it exists
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-SHOW BINLOG EVENTS;
-Log_name Pos Event_type Server_id End_log_pos Info
-# # Format_desc 1 # VER
-# # Gtid_list 1 # []
-# # Binlog_checkpoint 1 # master-bin.000001
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE TABLE t1(a INT, b INT)
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE TABLE IF NOT EXISTS t1(a INT, b INT)
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE INDEX IF NOT EXISTS i1 ON t1(a)
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; CREATE INDEX IF NOT EXISTS i1 ON t1(a)
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP INDEX IF EXISTS i1 ON t1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP INDEX IF EXISTS i1 ON t1
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP TABLE `t1` /* generated by server */
-# # Gtid 1 # GTID #-#-#
-# # Query 1 # use `test`; DROP TABLE IF EXISTS `t1` /* generated by server */
-RESET MASTER;
diff --git a/mysql-test/r/create_drop_db.result b/mysql-test/r/create_drop_db.result
deleted file mode 100644
index aee88703c9b..00000000000
--- a/mysql-test/r/create_drop_db.result
+++ /dev/null
@@ -1,40 +0,0 @@
-CREATE DATABASE IF NOT EXISTS db1;
-affected rows: 1
-CREATE DATABASE IF NOT EXISTS db1;
-affected rows: 0
-Warnings:
-Note 1007 Can't create database 'db1'; database exists
-CREATE TABLE db1.t1 (a INT);
-affected rows: 0
-SHOW TABLES IN db1;
-Tables_in_db1
-t1
-affected rows: 1
-CREATE OR REPLACE DATABASE db1;
-affected rows: 2
-SHOW TABLES IN db1;
-Tables_in_db1
-affected rows: 0
-CREATE OR REPLACE DATABASE IF NOT EXISTS db2;
-ERROR HY000: Incorrect usage of OR REPLACE and IF NOT EXISTS
-DROP DATABASE db1;
-affected rows: 0
-DROP DATABASE IF EXISTS db1;
-affected rows: 0
-Warnings:
-Note 1008 Can't drop database 'db1'; database doesn't exist
-DROP DATABASE db1;
-ERROR HY000: Can't drop database 'db1'; database doesn't exist
-CREATE OR REPLACE DATABASE db1;
-affected rows: 1
-SHOW TABLES IN db1;
-Tables_in_db1
-affected rows: 0
-CREATE DATABASE db1;
-ERROR HY000: Can't create database 'db1'; database exists
-DROP DATABASE IF EXISTS db1;
-affected rows: 0
-DROP DATABASE IF EXISTS db1;
-affected rows: 0
-Warnings:
-Note 1008 Can't drop database 'db1'; database doesn't exist
diff --git a/mysql-test/r/create_drop_event.result b/mysql-test/r/create_drop_event.result
deleted file mode 100644
index 0d69e85dfd6..00000000000
--- a/mysql-test/r/create_drop_event.result
+++ /dev/null
@@ -1,48 +0,0 @@
-SET timestamp=UNIX_TIMESTAMP('2014-11-01 10:20:30');
-SET GLOBAL event_scheduler=off;
-CREATE TABLE t1 (a INT);
-CREATE OR REPLACE EVENT IF NOT EXISTS ev1 ON SCHEDULE EVERY 1 SECOND DO DROP DATABASE db1;
-ERROR HY000: Incorrect usage of OR REPLACE and IF NOT EXISTS
-CREATE EVENT ev1 ON SCHEDULE EVERY 1 SECOND DO INSERT INTO t1 VALUES (10);
-SELECT EVENT_NAME, EVENT_DEFINITION FROM INFORMATION_SCHEMA.EVENTS;
-EVENT_NAME EVENT_DEFINITION
-ev1 INSERT INTO t1 VALUES (10)
-SET GLOBAL event_scheduler=on;
-SELECT DISTINCT a FROM t1;
-a
-10
-SET GLOBAL event_scheduler=off;
-DELETE FROM t1;
-CREATE EVENT ev1 ON SCHEDULE EVERY 1 SECOND DO INSERT INTO t1 VALUES (11);
-ERROR HY000: Event 'ev1' already exists
-SELECT EVENT_NAME, EVENT_DEFINITION FROM INFORMATION_SCHEMA.EVENTS;
-EVENT_NAME EVENT_DEFINITION
-ev1 INSERT INTO t1 VALUES (10)
-CREATE EVENT IF NOT EXISTS ev1 ON SCHEDULE EVERY 1 SECOND DO INSERT INTO t1 VALUES (12);
-Warnings:
-Note 1537 Event 'ev1' already exists
-SELECT EVENT_NAME, EVENT_DEFINITION FROM INFORMATION_SCHEMA.EVENTS;
-EVENT_NAME EVENT_DEFINITION
-ev1 INSERT INTO t1 VALUES (10)
-CREATE OR REPLACE EVENT ev1 ON SCHEDULE EVERY 1 SECOND DO INSERT INTO t1 VALUES (13);
-SELECT EVENT_NAME, EVENT_DEFINITION FROM INFORMATION_SCHEMA.EVENTS;
-EVENT_NAME EVENT_DEFINITION
-ev1 INSERT INTO t1 VALUES (13)
-SET GLOBAL event_scheduler=on;
-SELECT DISTINCT a FROM t1;
-a
-13
-SET GLOBAL event_scheduler=off;
-DELETE FROM t1;
-DROP EVENT IF EXISTS ev1;
-SELECT EVENT_NAME, EVENT_DEFINITION FROM INFORMATION_SCHEMA.EVENTS;
-EVENT_NAME EVENT_DEFINITION
-DROP EVENT IF EXISTS ev1;
-Warnings:
-Note 1305 Event ev1 does not exist
-DROP EVENT ev1;
-ERROR HY000: Unknown event 'ev1'
-SELECT EVENT_NAME, EVENT_DEFINITION FROM INFORMATION_SCHEMA.EVENTS;
-EVENT_NAME EVENT_DEFINITION
-DROP TABLE t1;
-SET timestamp=DEFAULT;
diff --git a/mysql-test/r/create_drop_function.result b/mysql-test/r/create_drop_function.result
deleted file mode 100644
index 3ba6581d61b..00000000000
--- a/mysql-test/r/create_drop_function.result
+++ /dev/null
@@ -1,54 +0,0 @@
-SET timestamp=UNIX_TIMESTAMP('2014-09-30 08:00:00');
-CREATE FUNCTION f1(str char(20))
-RETURNS CHAR(100)
-RETURN CONCAT('Hello, ', str, '!');
-SELECT * FROM mysql.proc WHERE name like 'f1';
-db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment character_set_client collation_connection db_collation body_utf8 aggregate
-test f1 FUNCTION f1 SQL CONTAINS_SQL NO DEFINER str char(20) char(100) CHARSET latin1 RETURN CONCAT('Hello, ', str, '!') root@localhost 2014-09-30 08:00:00 2014-09-30 08:00:00 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION latin1 latin1_swedish_ci latin1_swedish_ci RETURN CONCAT('Hello, ', str, '!') NONE
-SELECT f1('world');
-f1('world')
-Hello, world!
-CREATE FUNCTION f1(str char(20))
-RETURNS TEXT
-RETURN CONCAT('Hello2, ', str, '!');
-ERROR 42000: FUNCTION f1 already exists
-SELECT body FROM mysql.proc WHERE name like 'f1';
-body
-RETURN CONCAT('Hello, ', str, '!')
-CREATE FUNCTION IF NOT EXISTS f1(str char(20))
-RETURNS CHAR(100)
-RETURN CONCAT('Hello3, ', str, '!');
-Warnings:
-Note 1304 FUNCTION f1 already exists
-SELECT body FROM mysql.proc WHERE name like 'f1';
-body
-RETURN CONCAT('Hello, ', str, '!')
-CREATE OR REPLACE FUNCTION IF NOT EXISTS f1(str char(20))
-RETURNS CHAR(100)
-RETURN CONCAT('Hello4, ', str, '!');
-ERROR HY000: Incorrect usage of OR REPLACE and IF NOT EXISTS
-SELECT body FROM mysql.proc WHERE name like 'f1';
-body
-RETURN CONCAT('Hello, ', str, '!')
-CREATE OR REPLACE FUNCTION f1(str char(20))
-RETURNS CHAR(100)
-RETURN CONCAT('Hello5, ', str, '!');
-SELECT body FROM mysql.proc WHERE name like 'f1';
-body
-RETURN CONCAT('Hello5, ', str, '!')
-DROP FUNCTION f1;
-CREATE FUNCTION IF NOT EXISTS f1(str char(20))
-RETURNS CHAR(100)
-RETURN CONCAT('Hello6, ', str, '!');
-SELECT body FROM mysql.proc WHERE name like 'f1';
-body
-RETURN CONCAT('Hello6, ', str, '!')
-SELECT f1('world');
-f1('world')
-Hello6, world!
-DROP FUNCTION IF EXISTS f1;
-SELECT body FROM mysql.proc WHERE name like 'f1';
-body
-DROP FUNCTION IF EXISTS f1;
-Warnings:
-Note 1305 FUNCTION test.f1 does not exist
diff --git a/mysql-test/r/create_drop_index.result b/mysql-test/r/create_drop_index.result
deleted file mode 100644
index 7df6aeb5838..00000000000
--- a/mysql-test/r/create_drop_index.result
+++ /dev/null
@@ -1,44 +0,0 @@
-CREATE TABLE t1(a INT, b INT);
-CREATE INDEX IF NOT EXISTS i1 ON t1(a);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- KEY `i1` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP INDEX IF EXISTS i1 ON t1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP INDEX IF EXISTS i1 ON t1;
-Warnings:
-Note 1091 Can't DROP INDEX `i1`; check that it exists
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE OR REPLACE INDEX i1 ON t1(a);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- KEY `i1` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE OR REPLACE INDEX i1 ON t1(a,b);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- KEY `i1` (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE OR REPLACE INDEX IF NOT EXISTS i1 ON t1(b,a);
-ERROR HY000: Incorrect usage of OR REPLACE and IF NOT EXISTS
diff --git a/mysql-test/r/create_drop_procedure.result b/mysql-test/r/create_drop_procedure.result
deleted file mode 100644
index 02c71ab6446..00000000000
--- a/mysql-test/r/create_drop_procedure.result
+++ /dev/null
@@ -1,47 +0,0 @@
-CREATE TABLE t1 (id INT);
-CREATE PROCEDURE proc1 (OUT cnt INT) COMMENT 'comment1' BEGIN SELECT COUNT(*) INTO cnt FROM t1; END$$
-CALL proc1(@cnt);
-SELECT @cnt;
-@cnt
-0
-INSERT INTO t1 VALUES (1), (2), (3);
-CALL proc1(@cnt);
-SELECT @cnt;
-@cnt
-3
-CREATE PROCEDURE proc1 (OUT cnt INT) COMMENT 'comment2'
- BEGIN SELECT COUNT(*) INTO cnt FROM t1; END$$
-ERROR 42000: PROCEDURE proc1 already exists
-SELECT comment FROM mysql.proc WHERE name='proc1'$$
-comment
-comment1
-CREATE PROCEDURE IF NOT EXISTS proc1 (OUT cnt INT) COMMENT 'comment3'
- BEGIN SELECT COUNT(*) INTO cnt FROM t1; END$$
-Warnings:
-Note 1304 PROCEDURE proc1 already exists
-SELECT comment FROM mysql.proc WHERE name='proc1'$$
-comment
-comment1
-CREATE OR REPLACE PROCEDURE IF NOT EXISTS proc1 (OUT cnt INT) COMMENT 'comment4'
- BEGIN SELECT COUNT(*) INTO cnt FROM t1; END$$
-ERROR HY000: Incorrect usage of OR REPLACE and IF NOT EXISTS
-SELECT comment FROM mysql.proc WHERE name='proc1'$$
-comment
-comment1
-CREATE OR REPLACE PROCEDURE proc1 (OUT cnt INT) COMMENT 'comment5'
- BEGIN SELECT COUNT(*) INTO cnt FROM t1; END$$
-SELECT comment FROM mysql.proc WHERE name='proc1'$$
-comment
-comment5
-DROP PROCEDURE proc1;
-CREATE PROCEDURE IF NOT EXISTS proc1 (OUT cnt INT) BEGIN SELECT COUNT(*) INTO cnt FROM t1; END$$
-INSERT INTO t1 VALUES (1), (2), (3);
-CALL proc1(@cnt);
-SELECT @cnt;
-@cnt
-6
-DROP TABLE IF EXISTS t1;
-DROP PROCEDURE IF EXISTS proc1;
-DROP PROCEDURE IF EXISTS proc1;
-Warnings:
-Note 1305 PROCEDURE test.proc1 does not exist
diff --git a/mysql-test/r/create_drop_role.result b/mysql-test/r/create_drop_role.result
deleted file mode 100644
index 498dd4c1c02..00000000000
--- a/mysql-test/r/create_drop_role.result
+++ /dev/null
@@ -1,79 +0,0 @@
-CREATE ROLE IF NOT EXISTS role1 WITH ADMIN user1;
-Warnings:
-Note 1449 The user specified as a definer ('user1'@'%') does not exist
-SELECT * FROM mysql.roles_mapping;
-Host User Role Admin_option
-% user1 role1 Y
-DROP ROLE role1;
-CREATE OR REPLACE ROLE role1 WITH ADMIN user2;
-Warnings:
-Note 1449 The user specified as a definer ('user2'@'%') does not exist
-SELECT * FROM mysql.roles_mapping WHERE Role='role1';
-Host User Role Admin_option
-% user2 role1 Y
-CREATE OR REPLACE ROLE role1 WITH ADMIN user3;
-Warnings:
-Note 1449 The user specified as a definer ('user3'@'%') does not exist
-SELECT * FROM mysql.roles_mapping WHERE Role='role1';
-Host User Role Admin_option
-% user3 role1 Y
-CREATE ROLE IF NOT EXISTS role1 WITH ADMIN user4;
-Warnings:
-Note 1449 The user specified as a definer ('user4'@'%') does not exist
-Note 1975 Can't create role 'role1'; it already exists
-SELECT * FROM mysql.roles_mapping WHERE Role='role1';
-Host User Role Admin_option
-% user3 role1 Y
-DROP ROLE IF EXISTS role1;
-SELECT * FROM mysql.roles_mapping WHERE Role='role1';
-Host User Role Admin_option
-DROP ROLE IF EXISTS role1;
-Warnings:
-Note 1976 Can't drop role 'role1'; it doesn't exist
-CREATE ROLE role_1;
-CREATE ROLE IF NOT EXISTS role_1;
-Warnings:
-Note 1975 Can't create role 'role_1'; it already exists
-CREATE OR REPLACE ROLE role_1;
-CREATE OR REPLACE ROLE IF NOT EXISTS role_1;
-ERROR HY000: Incorrect usage of OR REPLACE and IF NOT EXISTS
-CREATE ROLE role_1;
-ERROR HY000: Operation CREATE ROLE failed for 'role_1'
-CREATE USER u1@localhost;
-REVOKE SHOW DATABASES ON *.* FROM 'u1'@'localhost';
-GRANT SHOW DATABASES ON *.* TO role_1;
-GRANT role_1 TO u1@localhost;
-connect user_a, localhost, u1,,;
-connection user_a;
-SELECT CURRENT_USER;
-CURRENT_USER
-u1@localhost
-SHOW DATABASES;
-Database
-information_schema
-test
-SELECT CURRENT_ROLE;
-CURRENT_ROLE
-NULL
-SET ROLE role_1;
-SELECT CURRENT_ROLE;
-CURRENT_ROLE
-role_1
-SHOW DATABASES;
-Database
-information_schema
-mtr
-mysql
-performance_schema
-test
-SET ROLE NONE;
-connect user_b, localhost, root,,;
-connection user_b;
-# Clearing up
-DROP ROLE role_1;
-DROP ROLE IF EXISTS role_1;
-Warnings:
-Note 1976 Can't drop role 'role_1'; it doesn't exist
-DROP ROLE role_1;
-ERROR HY000: Operation DROP ROLE failed for 'role_1'
-DROP USER u1@localhost;
diff --git a/mysql-test/r/create_drop_server.result b/mysql-test/r/create_drop_server.result
deleted file mode 100644
index 29c4fe7e123..00000000000
--- a/mysql-test/r/create_drop_server.result
+++ /dev/null
@@ -1,46 +0,0 @@
-#
-# MDEV-7285 SERVER: CREATE OR REPLACE and CREATE IF NOT EXISTS
-#
-CREATE SERVER IF NOT EXISTS server1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'user1', HOST 'localhost', DATABASE 'test0');
-SELECT server_name, username, db FROM mysql.servers;
-server_name username db
-server1 user1 test0
-CREATE SERVER IF NOT EXISTS server1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'user2', HOST 'localhost', DATABASE 'test1');
-Warnings:
-Note 1476 The foreign server, server1, you are trying to create already exists
-SELECT server_name, username, db FROM mysql.servers;
-server_name username db
-server1 user1 test0
-CREATE OR REPLACE SERVER server1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'user3', HOST 'localhost', DATABASE 'test2');
-SELECT server_name, username, db FROM mysql.servers;
-server_name username db
-server1 user3 test2
-DROP SERVER IF EXISTS server1;
-SELECT server_name, username, db FROM mysql.servers;
-server_name username db
-DROP SERVER IF EXISTS server1;
-CREATE SERVER server_1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'mysqltest_1', HOST 'localhost', DATABASE 'test0');
-CREATE SERVER server_1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'mysqltest_1', HOST 'localhost', DATABASE 'test1');
-ERROR HY000: The foreign server, server_1, you are trying to create already exists
-CREATE SERVER IF NOT EXISTS server_1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'mysqltest_1', HOST 'localhost', DATABASE 'test2');
-Warnings:
-Note 1476 The foreign server, server_1, you are trying to create already exists
-SELECT server_name, username, db FROM mysql.servers;
-server_name username db
-server_1 mysqltest_1 test0
-CREATE OR REPLACE SERVER IF NOT EXISTS server_1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'mysqltest_1', HOST 'localhost', DATABASE 'test3');
-ERROR HY000: Incorrect usage of OR REPLACE and IF NOT EXISTS
-CREATE OR REPLACE SERVER server_1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'mysqltest_1', HOST 'localhost', DATABASE 'test4');
-SELECT server_name, username, db FROM mysql.servers;
-server_name username db
-server_1 mysqltest_1 test4
-DROP SERVER server_1;
-CREATE SERVER server_1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'Remote', HOST 'Server.Example.Com', DATABASE 'test');
-SELECT Host FROM mysql.servers WHERE Server_Name = 'server_1';
-Host
-server.example.com
-ALTER SERVER server_1 OPTIONS(HOST 'Server.Example.Org');
-SELECT Host FROM mysql.servers WHERE Server_Name = 'server_1';
-Host
-server.example.org
-DROP SERVER server_1;
diff --git a/mysql-test/r/create_drop_trigger.result b/mysql-test/r/create_drop_trigger.result
deleted file mode 100644
index d2857a0cb79..00000000000
--- a/mysql-test/r/create_drop_trigger.result
+++ /dev/null
@@ -1,36 +0,0 @@
-CREATE DATABASE db1;
-USE db1;
-CREATE TABLE t1 (val INT);
-CREATE TRIGGER IF NOT EXISTS val_sum BEFORE INSERT ON t1 FOR EACH ROW SET @sum = @sum + NEW.val;
-SET @sum=0;
-INSERT INTO t1 VALUES (10), (20), (30);
-SELECT @sum;
-@sum
-60
-CREATE TRIGGER IF NOT EXISTS val_sum_new BEFORE INSERT ON t1 FOR EACH ROW SET @sum = @sum + NEW.val;
-CREATE TRIGGER IF NOT EXISTS val_sum AFTER INSERT ON t1 FOR EACH ROW SET @sum = @sum + 1 + NEW.val;
-Warnings:
-Note 1359 Trigger 'db1.val_sum' already exists
-CREATE OR REPLACE TRIGGER IF NOT EXISTS val_sum BEFORE INSERT ON t1 FOR EACH ROW SET @sum = @sum + 2 + NEW.val;
-ERROR HY000: Incorrect usage of OR REPLACE and IF NOT EXISTS
-SELECT ACTION_STATEMENT FROM INFORMATION_SCHEMA.TRIGGERS WHERE TRIGGER_NAME='val_sum';
-ACTION_STATEMENT
-SET @sum = @sum + NEW.val
-CREATE OR REPLACE TRIGGER val_sum BEFORE INSERT ON t1 FOR EACH ROW SET @sum = @sum + 3 + NEW.val;
-SELECT ACTION_STATEMENT FROM INFORMATION_SCHEMA.TRIGGERS WHERE TRIGGER_NAME='val_sum';
-ACTION_STATEMENT
-SET @sum = @sum + 3 + NEW.val
-CREATE TRIGGER val_sum BEFORE INSERT ON t1 FOR EACH ROW SET @sum = @sum + 4 + NEW.val;
-ERROR HY000: Trigger 'db1.val_sum' already exists
-SELECT ACTION_STATEMENT FROM INFORMATION_SCHEMA.TRIGGERS WHERE TRIGGER_NAME='val_sum';
-ACTION_STATEMENT
-SET @sum = @sum + 3 + NEW.val
-# Clearing up
-DROP TRIGGER IF EXISTS val_sum;
-SELECT ACTION_STATEMENT FROM INFORMATION_SCHEMA.TRIGGERS WHERE TRIGGER_NAME='val_sum';
-ACTION_STATEMENT
-DROP TRIGGER IF EXISTS val_sum;
-Warnings:
-Note 1360 Trigger does not exist
-DROP TABLE t1;
-DROP DATABASE db1;
diff --git a/mysql-test/r/create_drop_udf.result b/mysql-test/r/create_drop_udf.result
deleted file mode 100644
index 40da0b62a3a..00000000000
--- a/mysql-test/r/create_drop_udf.result
+++ /dev/null
@@ -1,38 +0,0 @@
-CREATE FUNCTION IF NOT EXISTS metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-SELECT ret FROM mysql.func WHERE name like 'metaphon';
-ret
-0
-CREATE FUNCTION metaphon RETURNS INT SONAME "$UDF_EXAMPLE_SO";
-ERROR HY000: Function 'metaphon' already exists
-SELECT ret FROM mysql.func WHERE name like 'metaphon';
-ret
-0
-CREATE FUNCTION IF NOT EXISTS metaphon RETURNS REAL SONAME "UDF_EXAMPLE_LIB";
-Warnings:
-Note 1125 Function 'metaphon' already exists
-SELECT ret FROM mysql.func WHERE name like 'metaphon';
-ret
-0
-DROP FUNCTION IF EXISTS metaphon;
-CREATE FUNCTION IF NOT EXISTS metaphon RETURNS REAL SONAME "UDF_EXAMPLE_LIB";
-SELECT ret FROM mysql.func WHERE name like 'metaphon';
-ret
-1
-CREATE OR REPLACE FUNCTION IF NOT EXISTS metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-ERROR HY000: Incorrect usage of OR REPLACE and IF NOT EXISTS
-SELECT ret FROM mysql.func WHERE name like 'metaphon';
-ret
-1
-CREATE OR REPLACE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-SELECT ret FROM mysql.func WHERE name like 'metaphon';
-ret
-0
-CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-ERROR HY000: Function 'metaphon' already exists
-SELECT metaphon('mariadb');
-metaphon('mariadb')
-MRTB
-DROP FUNCTION metaphon;
-DROP FUNCTION IF EXISTS metaphon;
-Warnings:
-Note 1305 FUNCTION test.metaphon does not exist
diff --git a/mysql-test/r/create_drop_user.result b/mysql-test/r/create_drop_user.result
deleted file mode 100644
index dd75d1c257a..00000000000
--- a/mysql-test/r/create_drop_user.result
+++ /dev/null
@@ -1,43 +0,0 @@
-CREATE USER IF NOT EXISTS u1@localhost IDENTIFIED BY 'pw1';
-SELECT password FROM mysql.user WHERE user='u1';
-password
-*2B602296A79E0A8784ACC5C88D92E46588CCA3C3
-CREATE USER IF NOT EXISTS u1@localhost IDENTIFIED BY 'pw2';
-Warnings:
-Note 1973 Can't create user 'u1'@'localhost'; it already exists
-SELECT password FROM mysql.user WHERE user='u1';
-password
-*2B602296A79E0A8784ACC5C88D92E46588CCA3C3
-CREATE OR REPLACE USER u1@localhost IDENTIFIED BY 'pw3';
-SELECT password FROM mysql.user WHERE user='u1';
-password
-*77B4A70CEFD76DB9415F36D291E74C110D2738E0
-CREATE OR REPLACE USER IF NOT EXISTS u1@localhost IDENTIFIED BY 'pw4';
-ERROR HY000: Incorrect usage of OR REPLACE and IF NOT EXISTS
-SELECT password FROM mysql.user WHERE user='u1';
-password
-*77B4A70CEFD76DB9415F36D291E74C110D2738E0
-DROP USER IF EXISTS u1@localhost;
-DROP USER IF EXISTS u1@localhost;
-Warnings:
-Note 1974 Can't drop user 'u1'@'localhost'; it doesn't exist
-DROP USER u1@localhost;
-ERROR HY000: Operation DROP USER failed for 'u1'@'localhost'
-CREATE OR REPLACE USER u1@localhost;
-CREATE USER u1@localhost;
-ERROR HY000: Operation CREATE USER failed for 'u1'@'localhost'
-DROP USER u1@localhost;
-CREATE USER u1;
-CREATE USER u1, u2;
-ERROR HY000: Operation CREATE USER failed for 'u1'@'%'
-CREATE USER u2;
-ERROR HY000: Operation CREATE USER failed for 'u2'@'%'
-CREATE OR REPLACE USER u1 IDENTIFIED BY PASSWORD 'password', u2;
-ERROR HY000: Password hash should be a 41-digit hexadecimal number
-CREATE OR REPLACE USER u1 IDENTIFIED BY PASSWORD 'abcdefghijklmnop', u2;
-DROP USER u1;
-DROP USER IF EXISTS u1, u2;
-Warnings:
-Note 1974 Can't drop user 'u1'@'%'; it doesn't exist
-DROP USER u2;
-ERROR HY000: Operation DROP USER failed for 'u2'@'%'
diff --git a/mysql-test/r/create_drop_view.result b/mysql-test/r/create_drop_view.result
deleted file mode 100644
index 9d7e42552bf..00000000000
--- a/mysql-test/r/create_drop_view.result
+++ /dev/null
@@ -1,59 +0,0 @@
-CREATE TABLE t1(id INT);
-CREATE VIEW IF NOT EXISTS v1 AS SELECT * FROM t1 WHERE id>10;
-INSERT INTO t1 VALUES (5), (8), (10), (20), (30);
-SELECT * FROM t1;
-id
-5
-8
-10
-20
-30
-SELECT * FROM v1;
-id
-20
-30
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE id>11;
-ERROR 42S01: Table 'v1' already exists
-SELECT VIEW_DEFINITION FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME='v1';
-VIEW_DEFINITION
-select `test`.`t1`.`id` AS `id` from `test`.`t1` where `test`.`t1`.`id` > 10
-CREATE VIEW IF NOT EXISTS v1 AS SELECT * FROM t1 WHERE id>12;
-Warnings:
-Note 1050 Table 'v1' already exists
-SELECT VIEW_DEFINITION FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME='v1';
-VIEW_DEFINITION
-select `test`.`t1`.`id` AS `id` from `test`.`t1` where `test`.`t1`.`id` > 10
-CREATE OR REPLACE VIEW IF NOT EXISTS v1 AS SELECT * FROM t1 WHERE id>13;
-ERROR HY000: Incorrect usage of OR REPLACE and IF NOT EXISTS
-SELECT VIEW_DEFINITION FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME='v1';
-VIEW_DEFINITION
-select `test`.`t1`.`id` AS `id` from `test`.`t1` where `test`.`t1`.`id` > 10
-CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1 WHERE id>14;
-SELECT VIEW_DEFINITION FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME='v1';
-VIEW_DEFINITION
-select `test`.`t1`.`id` AS `id` from `test`.`t1` where `test`.`t1`.`id` > 14
-INSERT INTO t1 VALUES (50), (80), (3), (2), (40);
-SELECT * FROM t1;
-id
-5
-8
-10
-20
-30
-50
-80
-3
-2
-40
-SELECT * FROM v1;
-id
-20
-30
-50
-80
-40
-DROP VIEW IF EXISTS v1;
-DROP VIEW IF EXISTS v1;
-Warnings:
-Note 4092 Unknown VIEW: 'test.v1'
-DROP TABLE t1;
diff --git a/mysql-test/r/create_not_windows.result b/mysql-test/r/create_not_windows.result
deleted file mode 100644
index abe76fd3fbe..00000000000
--- a/mysql-test/r/create_not_windows.result
+++ /dev/null
@@ -1,31 +0,0 @@
-drop table if exists `about:text`;
-create table `about:text` (
-_id int not null auto_increment,
-`about:text` varchar(255) not null default '',
-primary key (_id)
-);
-show create table `about:text`;
-Table Create Table
-about:text CREATE TABLE `about:text` (
- `_id` int(11) NOT NULL AUTO_INCREMENT,
- `about:text` varchar(255) NOT NULL DEFAULT '',
- PRIMARY KEY (`_id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table `about:text`;
-use test;
-drop table if exists t1;
-create table t1(a int) engine=myisam;
-insert into t1 values(1);
-"We get an error because the table is in the definition cache"
-create table t1(a int, b int);
-ERROR 42S01: Table 't1' already exists
-"Flush the cache and recreate the table anew to be able to drop it"
-flush tables;
-show open tables like "t%";
-Database Table In_use Name_locked
-create table t1(a int, b int, c int);
-"Try to select from the table. This should not crash the server"
-select count(a) from t1;
-count(a)
-0
-drop table t1;
diff --git a/mysql-test/r/create_or_replace.result b/mysql-test/r/create_or_replace.result
deleted file mode 100644
index e26884f1cbf..00000000000
--- a/mysql-test/r/create_or_replace.result
+++ /dev/null
@@ -1,480 +0,0 @@
-drop table if exists t1,t2,t3;
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES(1),(2),(3);
-#
-# Check first syntax and wrong usage
-#
-CREATE OR REPLACE TABLE IF NOT EXISTS t1 (a int);
-ERROR HY000: Incorrect usage of OR REPLACE and IF NOT EXISTS
-create or replace table mysql.general_log (a int);
-ERROR HY000: You cannot 'CREATE OR REPLACE' a log table if logging is enabled
-create or replace table mysql.slow_log (a int);
-ERROR HY000: You cannot 'CREATE OR REPLACE' a log table if logging is enabled
-#
-# Usage when table doesn't exist
-#
-CREATE OR REPLACE TABLE t1 (a int);
-CREATE TABLE t1 (a int);
-ERROR 42S01: Table 't1' already exists
-DROP TABLE t1;
-CREATE OR REPLACE TEMPORARY TABLE t1 (a int);
-CREATE TEMPORARY TABLE t1 (a int, b int, c int);
-ERROR 42S01: Table 't1' already exists
-DROP TEMPORARY TABLE t1;
-#
-# Testing with temporary tables
-#
-CREATE OR REPLACE TABLE t1 (a int);
-CREATE OR REPLACE TEMPORARY TABLE t1 (a int);
-CREATE OR REPLACE TEMPORARY TABLE t1 (a int, b int);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TEMPORARY TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TEMPORARY TABLE t1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-create temporary table t1 (i int) engine=InnoDB;
-create or replace temporary table t1 (a int, b int) engine=InnoDB;
-create or replace temporary table t1 (j int);
-show create table t1;
-Table Create Table
-t1 CREATE TEMPORARY TABLE `t1` (
- `j` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE OR REPLACE TABLE t1 (a int);
-LOCK TABLES t1 write;
-CREATE OR REPLACE TEMPORARY TABLE t1 (a int);
-CREATE OR REPLACE TEMPORARY TABLE t1 (a int, b int);
-CREATE OR REPLACE TEMPORARY TABLE t1 (a int, b int) engine= innodb;
-CREATE OR REPLACE TEMPORARY TABLE t1 (a int) engine= innodb;
-CREATE OR REPLACE TEMPORARY TABLE t1 (a int, b int) engine=myisam;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TEMPORARY TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TEMPORARY TABLE t1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE OR REPLACE TABLE t2 (a int);
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-DROP TABLE t1;
-UNLOCK TABLES;
-CREATE OR REPLACE TEMPORARY TABLE t1 (a int) SELECT * from t2;
-SELECT * FROM t1;
-a
-1
-2
-3
-CREATE OR REPLACE TEMPORARY TABLE t1 (b int) SELECT * from t2;
-SELECT * FROM t1;
-b a
-NULL 1
-NULL 2
-NULL 3
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TEMPORARY TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TEMPORARY TABLE t1 AS SELECT a FROM t2;
-CREATE TEMPORARY TABLE IF NOT EXISTS t1(a int, b int) SELECT 1,2 FROM t2;
-Warnings:
-Note 1050 Table 't1' already exists
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-CREATE OR REPLACE TABLE t1 AS SELECT 1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `1` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-create table t1 (a int);
-create or replace table t1 as select * from t1;
-ERROR HY000: Table 't1' is specified twice, both as a target for 'CREATE' and as a separate source for data
-create or replace table t1 as select a from (select a from t1) as t3;
-ERROR HY000: Table 't1' is specified twice, both as a target for 'CREATE' and as a separate source for data
-create or replace table t1 as select a from t2 where t2.a in (select a from t1);
-ERROR HY000: Table 't1' is specified twice, both as a target for 'CREATE' and as a separate source for data
-drop table t1;
-#
-# Testing with normal tables
-#
-CREATE OR REPLACE TABLE t1 (a int);
-CREATE OR REPLACE TABLE t1 (a int, b int);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a int) SELECT * from t2;
-SELECT * FROM t1;
-a
-1
-2
-3
-TRUNCATE TABLE t1;
-CREATE TABLE IF NOT EXISTS t1 (a int) SELECT * from t2;
-Warnings:
-Note 1050 Table 't1' already exists
-SELECT * FROM t1;
-a
-DROP TABLE t1;
-CREATE TABLE t1 (i int);
-CREATE OR REPLACE TABLE t1 AS SELECT 1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `1` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 (a int);
-LOCK TABLES t1 write,t2 write;
-CREATE OR REPLACE TABLE t1 (a int, b int);
-SELECT * FROM t1;
-a b
-INSERT INTO t1 values(1,1);
-CREATE OR REPLACE TABLE t1 (a int, b int, c int);
-INSERT INTO t1 values(1,1,1);
-CREATE OR REPLACE TABLE t3 (a int);
-ERROR HY000: Table 't3' was not locked with LOCK TABLES
-UNLOCK TABLES;
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 (a int);
-LOCK TABLES t1 write,t2 write;
-CREATE OR REPLACE TABLE t1 (a int, b int) select a,1 from t2;
-SELECT * FROM t2;
-a
-1
-2
-3
-SELECT * FROM t1;
-b a 1
-NULL 1 1
-NULL 2 1
-NULL 3 1
-SELECT * FROM t1;
-b a 1
-NULL 1 1
-NULL 2 1
-NULL 3 1
-INSERT INTO t1 values(1,1,1);
-CREATE OR REPLACE TABLE t1 (a int, b int, c int, d int);
-INSERT INTO t1 values(1,1,1,1);
-CREATE OR REPLACE TABLE t3 (a int);
-ERROR HY000: Table 't3' was not locked with LOCK TABLES
-UNLOCK TABLES;
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 (a int);
-LOCK TABLES t1 write,t2 write, t1 as t1_read read;
-CREATE OR REPLACE TABLE t1 (a int, b int) select a,1 from t2;
-SELECT * FROM t1;
-b a 1
-NULL 1 1
-NULL 2 1
-NULL 3 1
-SELECT * FROM t2;
-a
-1
-2
-3
-SELECT * FROM t1 as t1_read;
-ERROR HY000: Table 't1_read' was not locked with LOCK TABLES
-DROP TABLE t1;
-UNLOCK TABLES;
-CREATE OR REPLACE TABLE t1 (a int);
-LOCK TABLE t1 WRITE;
-CREATE OR REPLACE TABLE t1 AS SELECT 1;
-SELECT * from t1;
-1
-1
-SELECT * from t2;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-DROP TABLE t1;
-#
-# Test also with InnoDB (transactional engine)
-#
-create table t1 (i int) engine=innodb;
-lock table t1 write;
-create or replace table t1 (j int);
-unlock tables;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `j` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (i int) engine=InnoDB;
-lock table t1 write, t2 write;
-create or replace table t1 (j int) engine=innodb;
-unlock tables;
-drop table t1;
-create table t1 (i int) engine=InnoDB;
-create table t3 (i int) engine=InnoDB;
-insert into t3 values(1),(2),(3);
-create table t4 (i int) engine=InnoDB;
-insert into t4 values(1);
-lock table t1 write, t2 write, t3 write, t4 write;
-create or replace table t1 (a int, i int) engine=innodb select t2.a,t3.i from t2,t3;
-select * from t4;
-i
-1
-unlock tables;
-select * from t1 order by a,i;
-a i
-1 1
-1 2
-1 3
-2 1
-2 2
-2 3
-3 1
-3 2
-3 3
-drop table t1,t3,t4;
-#
-# Test the meta data locks are freed properly
-#
-create database mysqltest2;
-drop table if exists test.t1,mysqltest2.t2;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-Note 1051 Unknown table 'mysqltest2.t2'
-create table test.t1 (i int);
-create table mysqltest2.t2 like test.t1;
-lock table test.t1 write, mysqltest2.t2 write;
-select * from information_schema.metadata_lock_info;
-THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
-# MDL_INTENTION_EXCLUSIVE NULL Global read lock
-# MDL_INTENTION_EXCLUSIVE NULL Schema metadata lock mysqltest2
-# MDL_INTENTION_EXCLUSIVE NULL Schema metadata lock test
-# MDL_SHARED_NO_READ_WRITE NULL Table metadata lock mysqltest2 t2
-# MDL_SHARED_NO_READ_WRITE NULL Table metadata lock test t1
-create or replace table test.t1;
-ERROR 42000: A table must have at least 1 column
-show tables;
-Tables_in_test
-t2
-select * from information_schema.metadata_lock_info;
-THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
-# MDL_INTENTION_EXCLUSIVE NULL Global read lock
-# MDL_INTENTION_EXCLUSIVE NULL Schema metadata lock mysqltest2
-# MDL_INTENTION_EXCLUSIVE NULL Schema metadata lock test
-# MDL_SHARED_NO_READ_WRITE NULL Table metadata lock mysqltest2 t2
-create or replace table mysqltest2.t2;
-ERROR 42000: A table must have at least 1 column
-select * from information_schema.metadata_lock_info;
-THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
-create table t1 (i int);
-drop table t1;
-create table test.t1 (i int);
-create table mysqltest2.t2 like test.t1;
-lock table test.t1 write, mysqltest2.t2 write;
-select * from information_schema.metadata_lock_info;
-THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
-# MDL_INTENTION_EXCLUSIVE NULL Global read lock
-# MDL_INTENTION_EXCLUSIVE NULL Schema metadata lock mysqltest2
-# MDL_INTENTION_EXCLUSIVE NULL Schema metadata lock test
-# MDL_SHARED_NO_READ_WRITE NULL Table metadata lock mysqltest2 t2
-# MDL_SHARED_NO_READ_WRITE NULL Table metadata lock test t1
-create or replace table test.t1 (a int) select 1 as 'a', 2 as 'a';
-ERROR 42S21: Duplicate column name 'a'
-show tables;
-Tables_in_test
-t2
-select * from information_schema.metadata_lock_info;
-THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
-# MDL_INTENTION_EXCLUSIVE NULL Global read lock
-# MDL_INTENTION_EXCLUSIVE NULL Schema metadata lock mysqltest2
-# MDL_INTENTION_EXCLUSIVE NULL Schema metadata lock test
-# MDL_SHARED_NO_READ_WRITE NULL Table metadata lock mysqltest2 t2
-create or replace table mysqltest2.t2 (a int) select 1 as 'a', 2 as 'a';
-ERROR 42S21: Duplicate column name 'a'
-select * from information_schema.metadata_lock_info;
-THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
-create table t1 (i int);
-drop table t1;
-drop database mysqltest2;
-#
-# Testing CREATE .. LIKE
-#
-create or replace table t1 like t2;
-create or replace table t1 like t2;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (b int);
-lock tables t1 write, t2 read;
-create or replace table t1 like t2;
-SELECT * FROM t1;
-a
-INSERT INTO t1 values(1);
-CREATE OR REPLACE TABLE t1 like t2;
-INSERT INTO t1 values(2);
-unlock tables;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create or replace table t1 like t2;
-create or replace table t1 like t1;
-ERROR 42000: Not unique table/alias: 't1'
-drop table t1;
-CREATE TEMPORARY TABLE t1 like t2;
-CREATE OR REPLACE TABLE t1 like t1;
-ERROR 42000: Not unique table/alias: 't1'
-CREATE OR REPLACE TABLE t1 like t1;
-ERROR 42000: Not unique table/alias: 't1'
-drop table t1;
-CREATE TEMPORARY TABLE t1 like t2;
-CREATE OR REPLACE TEMPORARY TABLE t3 like t1;
-CREATE OR REPLACE TEMPORARY TABLE t3 like t3;
-ERROR 42000: Not unique table/alias: 't3'
-drop table t1,t3;
-#
-# Test with prepared statements
-#
-prepare stmt1 from 'create or replace table t1 select * from t2';
-execute stmt1;
-select * from t1;
-a
-1
-2
-3
-execute stmt1;
-select * from t1;
-a
-1
-2
-3
-drop table t1;
-execute stmt1;
-select * from t1;
-a
-1
-2
-3
-deallocate prepare stmt1;
-drop table t1;
-#
-# Test with views
-#
-create view t1 as select 1;
-create table if not exists t1 (a int);
-Warnings:
-Note 1050 Table 't1' already exists
-create or replace table t1 (a int);
-ERROR 42S02: 'test.t1' is a view
-drop table t1;
-ERROR 42S02: 'test.t1' is a view
-drop view t1;
-#
-# MDEV-5602 CREATE OR REPLACE obtains stricter locks than the
-# connection had before
-#
-create table t1 (a int);
-lock table t1 write, t2 read;
-select * from information_schema.metadata_lock_info;
-THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
-# MDL_INTENTION_EXCLUSIVE NULL Global read lock
-# MDL_INTENTION_EXCLUSIVE NULL Schema metadata lock test
-# MDL_SHARED_NO_READ_WRITE NULL Table metadata lock test t1
-# MDL_SHARED_READ NULL Table metadata lock test t2
-create or replace table t1 (i int);
-select * from information_schema.metadata_lock_info;
-THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
-# MDL_INTENTION_EXCLUSIVE NULL Global read lock
-# MDL_INTENTION_EXCLUSIVE NULL Schema metadata lock test
-# MDL_SHARED_NO_READ_WRITE NULL Table metadata lock test t1
-# MDL_SHARED_READ NULL Table metadata lock test t2
-create or replace table t1 like t2;
-select * from information_schema.metadata_lock_info;
-THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
-# MDL_INTENTION_EXCLUSIVE NULL Global read lock
-# MDL_INTENTION_EXCLUSIVE NULL Schema metadata lock test
-# MDL_SHARED_NO_READ_WRITE NULL Table metadata lock test t1
-# MDL_SHARED_READ NULL Table metadata lock test t2
-create or replace table t1 select 1 as f1;
-select * from information_schema.metadata_lock_info;
-THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
-# MDL_INTENTION_EXCLUSIVE NULL Global read lock
-# MDL_INTENTION_EXCLUSIVE NULL Schema metadata lock test
-# MDL_SHARED_NO_READ_WRITE NULL Table metadata lock test t1
-# MDL_SHARED_READ NULL Table metadata lock test t2
-drop table t1;
-unlock tables;
-#
-# MDEV-6560
-# Assertion `! is_set() ' failed in Diagnostics_area::set_ok_status
-#
-CREATE TABLE t1 (col_int_nokey INT) ENGINE=InnoDB;
-CREATE OR REPLACE TEMPORARY TABLE tmp LIKE t1;
-LOCK TABLE t1 WRITE;
-connect con1,localhost,root,,test;
-CREATE OR REPLACE TABLE t1 LIKE tmp;
-connection default;
-KILL QUERY con_id;
-connection con1;
-ERROR 70100: Query execution was interrupted
-CREATE OR REPLACE TABLE t1 (a int);
-connection default;
-KILL QUERY con_id;
-connection con1;
-ERROR 70100: Query execution was interrupted
-disconnect con1;
-connection default;
-drop table t1;
-DROP TABLE t2;
-#
-# MDEV-10824 - Crash in CREATE OR REPLACE TABLE t1 AS SELECT spfunc()
-#
-CREATE TABLE t1(a INT);
-CREATE FUNCTION f1() RETURNS VARCHAR(16383) RETURN 'test';
-CREATE OR REPLACE TABLE t1 AS SELECT f1();
-LOCK TABLE t1 WRITE;
-CREATE OR REPLACE TABLE t1 AS SELECT f1();
-UNLOCK TABLES;
-DROP FUNCTION f1;
-DROP TABLE t1;
-#
-# MDEV-11071 - Assertion `thd->transaction.stmt.is_empty()' failed in
-# Locked_tables_list::unlock_locked_tables
-#
-CREATE TEMPORARY TABLE t1(a INT) ENGINE=InnoDB;
-CREATE TEMPORARY TABLE t2(a INT);
-CREATE TABLE t3(a INT);
-LOCK TABLE t2 WRITE;
-SELECT * FROM t2;
-a
-CREATE OR REPLACE TEMPORARY TABLE t1(a INT) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;
-ERROR HY000: CREATE TEMPORARY TABLE is not allowed with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
-SELECT * FROM t3;
-ERROR HY000: Table 't3' was not locked with LOCK TABLES
-CREATE OR REPLACE TEMPORARY TABLE t2(a INT) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;
-ERROR HY000: CREATE TEMPORARY TABLE is not allowed with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
-SELECT * FROM t3;
-ERROR HY000: Table 't3' was not locked with LOCK TABLES
-UNLOCK TABLES;
-DROP TABLE t3;
diff --git a/mysql-test/r/create_or_replace2.result b/mysql-test/r/create_or_replace2.result
deleted file mode 100644
index 47431212492..00000000000
--- a/mysql-test/r/create_or_replace2.result
+++ /dev/null
@@ -1,27 +0,0 @@
-include/master-slave.inc
-[connection master]
-drop table if exists t1;
-SET @old_debug= @@session.debug;
-CREATE TABLE t1 (i INT, KEY(i)) ENGINE=InnoDB;
-CREATE OR REPLACE TEMPORARY TABLE tmp (a int, b int, key(a)) engine=myisam;
-set debug_dbug='+d,send_kill_after_delete';
-CREATE OR REPLACE TABLE t1 LIKE tmp;
-set debug_dbug=@old_debug;
-SHOW TABLES;
-Tables_in_test
-t1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- KEY `a` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection slave;
-SHOW TABLES;
-Tables_in_test
-t1
-connection master;
-drop temporary table if exists tmp;
-drop table t1;
-include/rpl_end.inc
diff --git a/mysql-test/r/create_or_replace_permission.result b/mysql-test/r/create_or_replace_permission.result
deleted file mode 100644
index b9938e4270a..00000000000
--- a/mysql-test/r/create_or_replace_permission.result
+++ /dev/null
@@ -1,56 +0,0 @@
-set local sql_mode="";
-set global sql_mode="";
-#
-# Tests for checking permission denied on CREATE OR REPLACE if DROP
-# access is revoked
-#
-# These statements do not need special tests for CREATE OR REPLACE,
-# because they do not have separate permissions for create and drop:
-# CREATE OR REPLACE EVENT (uses EVENT_ACL for both CREATE and DROP)
-# CREATE OR DROP SERVER (uses SUPER_ALC for both CREATE and DROP)
-# CREATE OR DROP TRIGGER (uses TRIGGER_ACL for both CREATE and DROP)
-SELECT CURRENT_USER;
-CURRENT_USER
-root@localhost
-CREATE DATABASE db1;
-GRANT ALL ON db1.* TO mysqltest_1@localhost;
-REVOKE DROP ON db1.* FROM mysqltest_1@localhost;
-REVOKE ALTER ROUTINE ON db1.* FROM mysqltest_1@localhost;
-GRANT DELETE ON mysql.* TO mysqltest_1@localhost;
-REVOKE DELETE ON mysql.* FROM mysqltest_1@localhost;
-FLUSH PRIVILEGES;
-connect user_a, localhost, mysqltest_1,,;
-connection user_a;
-SELECT CURRENT_USER;
-CURRENT_USER
-mysqltest_1@localhost
-CREATE DATABASE db1;
-ERROR HY000: Can't create database 'db1'; database exists
-CREATE OR REPLACE DATABASE db1;
-ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'db1'
-CREATE OR REPLACE DATABASE db2;
-ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'db2'
-USE db1;
-CREATE OR REPLACE TABLE t1(id INT);
-ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table 't1'
-CREATE OR REPLACE PROCEDURE proc1 (OUT cnt INT) BEGIN END;
-ERROR 42000: alter routine command denied to user 'mysqltest_1'@'localhost' for routine 'db1.proc1'
-CREATE OR REPLACE FUNCTION lookup RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'mysql'
-CREATE OR REPLACE FUNCTION hello(str char(20)) RETURNS TEXT RETURN CONCAT('Hello, ', str, '!');
-ERROR 42000: alter routine command denied to user 'mysqltest_1'@'localhost' for routine 'db1.hello'
-CREATE OR REPLACE USER u1@localhost;
-ERROR 42000: Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation
-CREATE OR REPLACE ROLE developer;
-ERROR 42000: Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation
-connection default;
-SELECT CURRENT_USER;
-CURRENT_USER
-root@localhost
-REVOKE ALL ON db1.* FROM mysqltest_1@localhost;
-DROP DATABASE IF EXISTS db2;
-Warnings:
-Note 1008 Can't drop database 'db2'; database doesn't exist
-DROP DATABASE db1;
-DROP USER mysqltest_1@localhost;
-set global sql_mode=default;
diff --git a/mysql-test/r/create_select_tmp.result b/mysql-test/r/create_select_tmp.result
deleted file mode 100644
index f499e539baf..00000000000
--- a/mysql-test/r/create_select_tmp.result
+++ /dev/null
@@ -1,20 +0,0 @@
-drop table if exists t1, t2;
-CREATE TABLE t1 ( a int );
-INSERT INTO t1 VALUES (1),(2),(1);
-CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-select * from t2;
-ERROR 42S02: Table 'test.t2' doesn't exist
-CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-select * from t2;
-ERROR 42S02: Table 'test.t2' doesn't exist
-CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-select * from t2;
-ERROR 42S02: Table 'test.t2' doesn't exist
-CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-select * from t2;
-ERROR 42S02: Table 'test.t2' doesn't exist
-drop table t1;
diff --git a/mysql-test/r/create_user.result b/mysql-test/r/create_user.result
deleted file mode 100644
index 8001b43221b..00000000000
--- a/mysql-test/r/create_user.result
+++ /dev/null
@@ -1,72 +0,0 @@
-create user foo;
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N 0 0 0 0 N N 0.000000
-drop user foo;
-create user foo identified by 'password';
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N 0 0 0 0 N N 0.000000
-drop user foo;
-create user foo identified by 'password' require SSL;
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N ANY 0 0 0 0 N N 0.000000
-drop user foo;
-create user foo identified by 'password' require X509;
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N X509 0 0 0 0 N N 0.000000
-drop user foo;
-create user foo identified by 'password' require CIPHER 'cipher';
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N SPECIFIED cipher 0 0 0 0 N N 0.000000
-drop user foo;
-create user foo identified by 'password' require ISSUER 'issuer';
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N SPECIFIED issuer 0 0 0 0 N N 0.000000
-drop user foo;
-create user foo identified by 'password' require SUBJECT 'subject';
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N SPECIFIED subject 0 0 0 0 N N 0.000000
-drop user foo;
-create user foo identified by 'password' require CIPHER 'cipher'
- SUBJECT 'subject';
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N SPECIFIED cipher subject 0 0 0 0 N N 0.000000
-drop user foo;
-create user foo identified by 'password' require CIPHER 'cipher'
-AND SUBJECT 'subject'
- AND ISSUER 'issuer';
-select * from mysql.user where user = 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N SPECIFIED cipher issuer subject 0 0 0 0 N N 0.000000
-drop user foo;
-create user foo, foo2 identified by 'password' require CIPHER 'cipher'
-AND SUBJECT 'subject'
- AND ISSUER 'issuer';
-select * from mysql.user where user like 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N SPECIFIED cipher issuer subject 0 0 0 0 N N 0.000000
-#--warning ER_USER_CREATE_EXISTS
-create user if not exists foo, foo2 identified by 'password2'
- require CIPHER 'cipher2' AND SUBJECT 'subject2' AND ISSUER 'issuer2';
-Warnings:
-Note 1973 Can't create user 'foo'@'%'; it already exists
-Note 1973 Can't create user 'foo2'@'%'; it already exists
-select * from mysql.user where user like 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N SPECIFIED cipher issuer subject 0 0 0 0 N N 0.000000
-drop user foo, foo2;
-create user foo with MAX_QUERIES_PER_HOUR 10
-MAX_UPDATES_PER_HOUR 20
-MAX_CONNECTIONS_PER_HOUR 30
-MAX_USER_CONNECTIONS 40;
-select * from mysql.user where user like 'foo';
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv Delete_history_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired is_role default_role max_statement_time
-% foo N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N 10 20 30 40 N N 0.000000
-drop user foo;
diff --git a/mysql-test/r/create_w_max_indexes_128.result b/mysql-test/r/create_w_max_indexes_128.result
deleted file mode 100644
index cd23e493f5c..00000000000
--- a/mysql-test/r/create_w_max_indexes_128.result
+++ /dev/null
@@ -1,1250 +0,0 @@
-create table t1 (
-c1 int, c2 int, c3 int, c4 int, c5 int, c6 int, c7 int, c8 int,
-c9 int, c10 int, c11 int, c12 int, c13 int, c14 int, c15 int, c16 int,
-key a001_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a002_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a003_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a004_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a005_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a006_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a007_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a008_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a009_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a010_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a011_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a012_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a013_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a014_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a015_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a016_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a017_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a018_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a019_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a020_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a021_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a022_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a023_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a024_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a025_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a026_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a027_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a028_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a029_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a030_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a031_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a032_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a033_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a034_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a035_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a036_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a037_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a038_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a039_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a040_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a041_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a042_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a043_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a044_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a045_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a046_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a047_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a048_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a049_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a050_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a051_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a052_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a053_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a054_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a055_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a056_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a057_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a058_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a059_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a060_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a061_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a062_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a063_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a064_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a065_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a066_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a067_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a068_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a069_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a070_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a071_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a072_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a073_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a074_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a075_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a076_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a077_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a078_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a079_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a080_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a081_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a082_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a083_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a084_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a085_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a086_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a087_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a088_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a089_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a090_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a091_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a092_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a093_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a094_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a095_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a096_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a097_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a098_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a099_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a100_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a101_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a102_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a103_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a104_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a105_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a106_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a107_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a108_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a109_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a110_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a111_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a112_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a113_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a114_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a115_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a116_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a117_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a118_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a119_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a120_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a121_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a122_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a123_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a124_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a125_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a126_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a127_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a128_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16)
-);
-Warnings:
-Note 1831 Duplicate index 'a002_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a003_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a004_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a005_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a006_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a007_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a008_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a009_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a010_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a011_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a012_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a013_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a014_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a015_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a016_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a017_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a018_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a019_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a020_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a021_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a022_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a023_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a024_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a025_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a026_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a027_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a028_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a029_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a030_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a031_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a032_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a033_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a034_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a035_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a036_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a037_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a038_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a039_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a040_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a041_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a042_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a043_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a044_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a045_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a046_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a047_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a048_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a049_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a050_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a051_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a052_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a053_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a054_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a055_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a056_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a057_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a058_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a059_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a060_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a061_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a062_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a063_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a064_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a065_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL,
- `c3` int(11) DEFAULT NULL,
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` int(11) DEFAULT NULL,
- `c9` int(11) DEFAULT NULL,
- `c10` int(11) DEFAULT NULL,
- `c11` int(11) DEFAULT NULL,
- `c12` int(11) DEFAULT NULL,
- `c13` int(11) DEFAULT NULL,
- `c14` int(11) DEFAULT NULL,
- `c15` int(11) DEFAULT NULL,
- `c16` int(11) DEFAULT NULL,
- KEY `a001_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a002_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a003_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a004_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a005_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a006_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a007_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a008_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a009_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a010_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a011_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a012_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a013_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a014_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a015_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a016_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a017_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a018_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a019_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a020_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a021_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a022_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a023_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a024_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a025_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a026_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a027_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a028_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a029_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a030_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a031_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a032_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a033_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a034_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a035_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a036_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a037_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a038_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a039_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a040_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a041_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a042_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a043_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a044_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a045_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a046_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a047_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a048_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a049_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a050_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a051_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a052_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a053_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a054_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a055_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a056_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a057_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a058_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a059_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a060_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a061_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a062_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a063_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a064_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a065_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a066_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a067_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a068_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a069_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a070_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a071_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a072_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a073_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a074_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a075_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a076_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a077_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a078_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a079_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a080_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a081_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a082_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a083_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a084_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a085_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a086_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a087_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a088_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a089_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a090_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a091_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a092_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a093_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a094_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a095_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a096_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a097_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a098_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a099_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a100_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a101_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a102_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a103_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a104_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a105_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a106_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a107_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a108_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a109_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a110_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a111_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a112_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a113_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a114_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a115_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a116_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a117_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a118_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a119_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a120_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a121_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a122_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a123_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a124_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a125_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a126_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a127_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a128_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-flush tables;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL,
- `c3` int(11) DEFAULT NULL,
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` int(11) DEFAULT NULL,
- `c9` int(11) DEFAULT NULL,
- `c10` int(11) DEFAULT NULL,
- `c11` int(11) DEFAULT NULL,
- `c12` int(11) DEFAULT NULL,
- `c13` int(11) DEFAULT NULL,
- `c14` int(11) DEFAULT NULL,
- `c15` int(11) DEFAULT NULL,
- `c16` int(11) DEFAULT NULL,
- KEY `a001_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a002_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a003_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a004_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a005_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a006_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a007_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a008_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a009_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a010_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a011_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a012_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a013_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a014_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a015_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a016_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a017_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a018_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a019_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a020_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a021_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a022_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a023_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a024_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a025_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a026_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a027_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a028_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a029_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a030_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a031_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a032_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a033_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a034_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a035_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a036_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a037_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a038_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a039_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a040_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a041_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a042_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a043_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a044_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a045_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a046_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a047_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a048_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a049_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a050_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a051_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a052_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a053_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a054_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a055_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a056_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a057_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a058_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a059_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a060_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a061_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a062_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a063_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a064_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a065_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a066_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a067_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a068_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a069_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a070_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a071_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a072_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a073_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a074_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a075_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a076_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a077_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a078_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a079_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a080_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a081_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a082_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a083_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a084_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a085_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a086_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a087_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a088_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a089_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a090_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a091_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a092_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a093_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a094_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a095_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a096_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a097_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a098_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a099_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a100_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a101_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a102_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a103_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a104_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a105_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a106_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a107_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a108_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a109_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a110_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a111_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a112_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a113_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a114_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a115_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a116_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a117_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a118_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a119_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a120_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a121_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a122_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a123_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a124_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a125_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a126_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a127_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a128_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (c1 int, c2 int, c3 int, c4 int, c5 int, c6 int, c7 int,
-c8 int, c9 int, c10 int, c11 int, c12 int, c13 int, c14 int, c15 int, c16 int);
-alter table t1
-add key a001_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a002_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a003_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a004_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a005_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a006_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a007_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a008_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a009_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a010_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a011_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a012_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a013_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a014_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a015_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a016_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a017_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a018_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a019_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a020_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a021_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a022_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a023_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a024_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a025_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a026_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a027_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a028_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a029_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a030_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a031_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a032_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a033_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a034_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a035_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a036_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a037_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a038_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a039_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a040_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a041_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a042_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a043_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a044_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a045_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a046_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a047_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a048_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a049_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a050_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a051_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a052_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a053_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a054_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a055_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a056_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a057_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a058_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a059_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a060_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a061_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a062_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a063_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a064_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a065_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a066_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a067_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a068_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a069_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a070_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a071_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a072_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a073_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a074_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a075_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a076_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a077_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a078_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a079_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a080_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a081_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a082_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a083_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a084_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a085_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a086_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a087_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a088_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a089_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a090_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a091_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a092_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a093_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a094_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a095_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a096_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a097_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a098_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a099_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a100_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a101_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a102_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a103_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a104_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a105_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a106_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a107_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a108_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a109_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a110_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a111_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a112_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a113_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a114_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a115_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a116_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a117_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a118_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a119_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a120_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a121_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a122_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a123_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a124_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a125_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a126_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a127_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a128_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16);
-Warnings:
-Note 1831 Duplicate index 'a002_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a003_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a004_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a005_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a006_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a007_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a008_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a009_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a010_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a011_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a012_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a013_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a014_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a015_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a016_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a017_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a018_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a019_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a020_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a021_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a022_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a023_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a024_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a025_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a026_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a027_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a028_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a029_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a030_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a031_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a032_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a033_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a034_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a035_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a036_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a037_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a038_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a039_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a040_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a041_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a042_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a043_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a044_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a045_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a046_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a047_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a048_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a049_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a050_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a051_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a052_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a053_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a054_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a055_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a056_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a057_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a058_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a059_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a060_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a061_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a062_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a063_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a064_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index 'a065_long_123456789_123456789_123456789_123456789_123456789_1234' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL,
- `c3` int(11) DEFAULT NULL,
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` int(11) DEFAULT NULL,
- `c9` int(11) DEFAULT NULL,
- `c10` int(11) DEFAULT NULL,
- `c11` int(11) DEFAULT NULL,
- `c12` int(11) DEFAULT NULL,
- `c13` int(11) DEFAULT NULL,
- `c14` int(11) DEFAULT NULL,
- `c15` int(11) DEFAULT NULL,
- `c16` int(11) DEFAULT NULL,
- KEY `a001_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a002_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a003_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a004_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a005_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a006_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a007_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a008_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a009_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a010_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a011_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a012_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a013_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a014_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a015_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a016_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a017_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a018_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a019_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a020_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a021_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a022_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a023_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a024_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a025_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a026_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a027_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a028_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a029_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a030_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a031_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a032_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a033_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a034_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a035_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a036_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a037_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a038_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a039_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a040_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a041_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a042_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a043_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a044_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a045_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a046_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a047_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a048_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a049_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a050_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a051_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a052_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a053_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a054_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a055_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a056_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a057_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a058_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a059_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a060_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a061_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a062_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a063_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a064_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a065_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a066_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a067_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a068_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a069_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a070_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a071_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a072_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a073_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a074_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a075_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a076_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a077_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a078_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a079_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a080_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a081_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a082_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a083_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a084_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a085_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a086_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a087_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a088_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a089_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a090_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a091_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a092_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a093_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a094_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a095_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a096_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a097_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a098_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a099_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a100_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a101_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a102_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a103_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a104_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a105_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a106_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a107_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a108_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a109_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a110_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a111_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a112_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a113_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a114_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a115_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a116_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a117_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a118_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a119_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a120_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a121_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a122_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a123_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a124_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a125_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a126_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a127_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a128_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-flush tables;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL,
- `c3` int(11) DEFAULT NULL,
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` int(11) DEFAULT NULL,
- `c9` int(11) DEFAULT NULL,
- `c10` int(11) DEFAULT NULL,
- `c11` int(11) DEFAULT NULL,
- `c12` int(11) DEFAULT NULL,
- `c13` int(11) DEFAULT NULL,
- `c14` int(11) DEFAULT NULL,
- `c15` int(11) DEFAULT NULL,
- `c16` int(11) DEFAULT NULL,
- KEY `a001_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a002_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a003_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a004_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a005_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a006_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a007_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a008_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a009_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a010_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a011_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a012_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a013_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a014_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a015_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a016_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a017_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a018_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a019_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a020_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a021_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a022_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a023_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a024_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a025_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a026_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a027_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a028_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a029_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a030_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a031_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a032_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a033_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a034_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a035_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a036_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a037_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a038_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a039_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a040_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a041_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a042_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a043_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a044_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a045_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a046_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a047_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a048_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a049_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a050_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a051_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a052_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a053_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a054_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a055_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a056_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a057_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a058_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a059_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a060_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a061_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a062_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a063_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a064_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a065_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a066_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a067_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a068_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a069_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a070_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a071_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a072_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a073_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a074_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a075_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a076_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a077_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a078_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a079_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a080_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a081_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a082_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a083_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a084_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a085_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a086_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a087_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a088_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a089_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a090_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a091_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a092_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a093_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a094_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a095_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a096_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a097_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a098_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a099_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a100_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a101_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a102_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a103_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a104_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a105_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a106_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a107_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a108_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a109_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a110_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a111_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a112_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a113_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a114_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a115_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a116_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a117_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a118_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a119_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a120_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a121_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a122_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a123_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a124_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a125_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a126_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a127_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a128_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 add key
-a129_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16);
-ERROR 42000: Too many keys specified; max 128 keys allowed
-drop table t1;
-"End of tests"
diff --git a/mysql-test/r/create_w_max_indexes_64.result b/mysql-test/r/create_w_max_indexes_64.result
deleted file mode 100644
index c937f3af312..00000000000
--- a/mysql-test/r/create_w_max_indexes_64.result
+++ /dev/null
@@ -1,783 +0,0 @@
-create table t1 (
-c1 int, c2 int, c3 int, c4 int, c5 int, c6 int, c7 int, c8 int,
-c9 int, c10 int, c11 int, c12 int, c13 int, c14 int, c15 int, c16 int,
-key a001_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a002_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a003_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a004_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a005_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a006_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a007_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a008_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a009_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a010_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a011_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a012_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a013_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a014_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a015_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a016_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a017_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a018_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a019_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a020_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a021_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a022_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a023_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a024_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a025_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a026_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a027_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a028_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a029_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a030_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a031_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a032_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a033_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a034_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a035_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a036_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a037_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a038_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a039_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a040_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a041_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a042_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a043_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a044_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a045_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a046_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a047_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a048_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a049_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a050_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a051_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a052_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a053_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a054_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a055_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a056_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a057_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a058_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a059_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a060_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a061_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a062_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a063_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-key a064_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16)
-);
-Warnings:
-Note 1831 Duplicate index `a002_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a003_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a004_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a005_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a006_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a007_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a008_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a009_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a010_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a011_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a012_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a013_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a014_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a015_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a016_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a017_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a018_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a019_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a020_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a021_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a022_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a023_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a024_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a025_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a026_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a027_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a028_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a029_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a030_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a031_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a032_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a033_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a034_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a035_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a036_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a037_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a038_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a039_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a040_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a041_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a042_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a043_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a044_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a045_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a046_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a047_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a048_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a049_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a050_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a051_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a052_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a053_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a054_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a055_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a056_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a057_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a058_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a059_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a060_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a061_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a062_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a063_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a064_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL,
- `c3` int(11) DEFAULT NULL,
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` int(11) DEFAULT NULL,
- `c9` int(11) DEFAULT NULL,
- `c10` int(11) DEFAULT NULL,
- `c11` int(11) DEFAULT NULL,
- `c12` int(11) DEFAULT NULL,
- `c13` int(11) DEFAULT NULL,
- `c14` int(11) DEFAULT NULL,
- `c15` int(11) DEFAULT NULL,
- `c16` int(11) DEFAULT NULL,
- KEY `a001_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a002_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a003_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a004_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a005_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a006_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a007_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a008_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a009_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a010_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a011_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a012_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a013_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a014_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a015_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a016_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a017_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a018_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a019_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a020_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a021_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a022_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a023_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a024_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a025_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a026_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a027_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a028_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a029_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a030_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a031_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a032_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a033_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a034_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a035_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a036_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a037_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a038_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a039_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a040_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a041_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a042_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a043_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a044_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a045_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a046_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a047_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a048_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a049_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a050_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a051_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a052_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a053_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a054_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a055_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a056_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a057_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a058_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a059_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a060_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a061_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a062_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a063_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a064_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-flush tables;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL,
- `c3` int(11) DEFAULT NULL,
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` int(11) DEFAULT NULL,
- `c9` int(11) DEFAULT NULL,
- `c10` int(11) DEFAULT NULL,
- `c11` int(11) DEFAULT NULL,
- `c12` int(11) DEFAULT NULL,
- `c13` int(11) DEFAULT NULL,
- `c14` int(11) DEFAULT NULL,
- `c15` int(11) DEFAULT NULL,
- `c16` int(11) DEFAULT NULL,
- KEY `a001_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a002_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a003_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a004_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a005_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a006_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a007_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a008_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a009_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a010_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a011_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a012_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a013_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a014_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a015_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a016_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a017_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a018_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a019_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a020_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a021_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a022_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a023_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a024_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a025_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a026_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a027_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a028_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a029_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a030_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a031_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a032_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a033_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a034_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a035_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a036_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a037_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a038_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a039_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a040_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a041_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a042_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a043_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a044_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a045_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a046_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a047_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a048_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a049_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a050_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a051_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a052_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a053_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a054_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a055_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a056_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a057_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a058_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a059_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a060_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a061_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a062_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a063_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a064_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (c1 int, c2 int, c3 int, c4 int, c5 int, c6 int, c7 int,
-c8 int, c9 int, c10 int, c11 int, c12 int, c13 int, c14 int, c15 int, c16 int);
-alter table t1
-add key a001_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a002_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a003_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a004_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a005_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a006_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a007_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a008_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a009_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a010_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a011_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a012_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a013_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a014_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a015_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a016_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a017_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a018_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a019_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a020_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a021_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a022_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a023_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a024_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a025_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a026_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a027_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a028_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a029_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a030_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a031_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a032_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a033_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a034_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a035_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a036_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a037_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a038_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a039_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a040_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a041_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a042_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a043_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a044_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a045_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a046_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a047_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a048_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a049_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a050_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a051_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a052_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a053_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a054_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a055_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a056_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a057_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a058_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a059_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a060_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a061_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a062_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a063_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16),
-add key a064_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16);
-Warnings:
-Note 1831 Duplicate index `a002_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a003_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a004_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a005_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a006_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a007_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a008_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a009_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a010_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a011_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a012_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a013_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a014_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a015_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a016_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a017_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a018_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a019_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a020_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a021_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a022_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a023_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a024_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a025_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a026_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a027_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a028_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a029_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a030_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a031_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a032_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a033_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a034_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a035_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a036_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a037_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a038_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a039_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a040_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a041_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a042_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a043_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a044_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a045_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a046_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a047_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a048_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a049_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a050_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a051_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a052_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a053_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a054_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a055_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a056_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a057_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a058_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a059_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a060_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a061_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a062_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a063_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a064_long_123456789_123456789_123456789_123456789_123456789_1234`. This is deprecated and will be disallowed in a future release
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL,
- `c3` int(11) DEFAULT NULL,
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` int(11) DEFAULT NULL,
- `c9` int(11) DEFAULT NULL,
- `c10` int(11) DEFAULT NULL,
- `c11` int(11) DEFAULT NULL,
- `c12` int(11) DEFAULT NULL,
- `c13` int(11) DEFAULT NULL,
- `c14` int(11) DEFAULT NULL,
- `c15` int(11) DEFAULT NULL,
- `c16` int(11) DEFAULT NULL,
- KEY `a001_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a002_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a003_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a004_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a005_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a006_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a007_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a008_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a009_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a010_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a011_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a012_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a013_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a014_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a015_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a016_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a017_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a018_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a019_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a020_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a021_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a022_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a023_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a024_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a025_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a026_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a027_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a028_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a029_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a030_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a031_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a032_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a033_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a034_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a035_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a036_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a037_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a038_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a039_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a040_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a041_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a042_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a043_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a044_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a045_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a046_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a047_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a048_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a049_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a050_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a051_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a052_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a053_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a054_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a055_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a056_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a057_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a058_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a059_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a060_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a061_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a062_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a063_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a064_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-flush tables;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL,
- `c3` int(11) DEFAULT NULL,
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` int(11) DEFAULT NULL,
- `c9` int(11) DEFAULT NULL,
- `c10` int(11) DEFAULT NULL,
- `c11` int(11) DEFAULT NULL,
- `c12` int(11) DEFAULT NULL,
- `c13` int(11) DEFAULT NULL,
- `c14` int(11) DEFAULT NULL,
- `c15` int(11) DEFAULT NULL,
- `c16` int(11) DEFAULT NULL,
- KEY `a001_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a002_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a003_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a004_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a005_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a006_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a007_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a008_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a009_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a010_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a011_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a012_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a013_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a014_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a015_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a016_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a017_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a018_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a019_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a020_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a021_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a022_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a023_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a024_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a025_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a026_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a027_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a028_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a029_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a030_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a031_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a032_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a033_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a034_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a035_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a036_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a037_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a038_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a039_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a040_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a041_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a042_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a043_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a044_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a045_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a046_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a047_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a048_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a049_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a050_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a051_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a052_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a053_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a054_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a055_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a056_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a057_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a058_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a059_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a060_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a061_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a062_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a063_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`),
- KEY `a064_long_123456789_123456789_123456789_123456789_123456789_1234` (`c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8`,`c9`,`c10`,`c11`,`c12`,`c13`,`c14`,`c15`,`c16`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 add key
-a065_long_123456789_123456789_123456789_123456789_123456789_1234 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16);
-ERROR 42000: Too many keys specified; max 64 keys allowed
-drop table t1;
-create table t1 (c1 int, c2 int, c3 int, c4 int, c5 int, c6 int, c7 int,
-c8 int, c9 int, c10 int, c11 int, c12 int, c13 int, c14 int, c15 int,
-c16 int, c17 int, c18 int,c19 int,c20 int,c21 int,c22 int,c23 int,c24 int,c25 int,c26 int,c27 int,c28 int,c29 int,c30 int,c31 int,c32 int, c33 int);
-alter table t1 add key i1 (
-c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16, c17,c18,c19,c20,c21,c22,c23,c24,c25,c26,c27,c28,c29,c30,c31,c32,c33);
-ERROR 42000: Too many key parts specified; max 32 parts allowed
-alter table t1 add key
-a001_long_123456789_123456789_123456789_123456789_123456789_12345 (c1);
-ERROR 42000: Identifier name 'a001_long_123456789_123456789_123456789_123456789_123456789_12345' is too long
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL,
- `c3` int(11) DEFAULT NULL,
- `c4` int(11) DEFAULT NULL,
- `c5` int(11) DEFAULT NULL,
- `c6` int(11) DEFAULT NULL,
- `c7` int(11) DEFAULT NULL,
- `c8` int(11) DEFAULT NULL,
- `c9` int(11) DEFAULT NULL,
- `c10` int(11) DEFAULT NULL,
- `c11` int(11) DEFAULT NULL,
- `c12` int(11) DEFAULT NULL,
- `c13` int(11) DEFAULT NULL,
- `c14` int(11) DEFAULT NULL,
- `c15` int(11) DEFAULT NULL,
- `c16` int(11) DEFAULT NULL,
- `c17` int(11) DEFAULT NULL,
- `c18` int(11) DEFAULT NULL,
- `c19` int(11) DEFAULT NULL,
- `c20` int(11) DEFAULT NULL,
- `c21` int(11) DEFAULT NULL,
- `c22` int(11) DEFAULT NULL,
- `c23` int(11) DEFAULT NULL,
- `c24` int(11) DEFAULT NULL,
- `c25` int(11) DEFAULT NULL,
- `c26` int(11) DEFAULT NULL,
- `c27` int(11) DEFAULT NULL,
- `c28` int(11) DEFAULT NULL,
- `c29` int(11) DEFAULT NULL,
- `c30` int(11) DEFAULT NULL,
- `c31` int(11) DEFAULT NULL,
- `c32` int(11) DEFAULT NULL,
- `c33` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-"End of tests"
diff --git a/mysql-test/r/cte_grant.result b/mysql-test/r/cte_grant.result
deleted file mode 100644
index 2ee31be3435..00000000000
--- a/mysql-test/r/cte_grant.result
+++ /dev/null
@@ -1,123 +0,0 @@
-connect root,localhost,root,,test;
-connection root;
-create database mysqltest;
-create user mysqltest_1@localhost;
-connect user1,localhost,mysqltest_1,,test;
-connection user1;
-connection root;
-create table mysqltest.t1 (a int, b int);
-insert into mysqltest.t1 values (2,10), (1,30);
-create table mysqltest.t2 (c int, d char(32));
-insert into mysqltest.t2 values (1,'xxx'), (1,'zzz');
-grant select on mysqltest.t1 to mysqltest_1@localhost;
-grant select (c) on mysqltest.t2 to mysqltest_1@localhost;
-connection user1;
-with t as (select c from mysqltest.t2 where c < 2)
-select t.c,t1.b from t,mysqltest.t1 where t.c=t1.a;
-c b
-1 30
-1 30
-select t.c,t.d,t1.b
-from (select c,d from mysqltest.t2 where c < 2) as t, mysqltest.t1
-where t.c=t1.a;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'd' in table 't2'
-with t as (select c,d from mysqltest.t2 where c < 2)
-select t.c,t.d,t1.b from t,mysqltest.t1 where t.c=t1.a;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'd' in table 't2'
-connection root;
-create view mysqltest.v1(f1,f2) as
-with t as (select c from mysqltest.t2 where c < 2)
-select t.c,t1.b from t,mysqltest.t1 where t.c=t1.a;
-create view mysqltest.v2(c,d) as
-with t as (select a from mysqltest.t1 where a>=3)
-select t.a,b from t,mysqltest.t1 where mysqltest.t1.a = t.a;
-grant select on mysqltest.v1 to mysqltest_1@localhost;
-grant select (c) on mysqltest.v2 to mysqltest_1@localhost;
-grant create view on mysqltest.* to mysqltest_1@localhost;
-connection user1;
-create view mysqltest.v3(c,d) as
-with t as (select c from mysqltest.t2 where c < 2)
-select t.c,t1.b from t,mysqltest.t1 where t.c=t1.a;
-create view mysqltest.v4(f1,f2,f3) as
-with t as (select c,d from mysqltest.t2 where c < 2)
-select t.c,t.d,t1.b from t,mysqltest.t1 where t.c=t1.a;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'd' in table 't2'
-select * from mysqltest.v1;
-f1 f2
-1 30
-1 30
-select c from mysqltest.v2;
-c
-select d from mysqltest.v2;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'd' in table 'v2'
-select * from mysqltest.v3;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'v3'
-connection root;
-grant select on mysqltest.v3 to mysqltest_1@localhost;
-connection user1;
-select * from mysqltest.v3;
-c d
-1 30
-1 30
-connection root;
-revoke all privileges on mysqltest.v1 from mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-#
-# MDEV-13453: privileges checking for CTE
-#
-create database db;
-use db;
-create table t1 (i int);
-insert into t1
-values (3), (7), (1), (4), (2), (3), (1);
-create table t2 (a int, b int);
-insert into t2
-values (3,10), (7,11), (1,17), (4,15), (2,11), (3,10), (1,15);
-create user foo@localhost;
-grant SELECT on db.t1 to foo@localhost;
-grant SELECT(a) on db.t2 to foo@localhost;
-connect con1,localhost,foo,,;
-use db;
-with cte as (select * from t1 where i < 4)
-select * from cte;
-i
-3
-1
-2
-3
-1
-with cte as (select * from t1 where i < 4 group by i)
-select * from cte;
-i
-1
-2
-3
-with cte as (select * from t1 where i < 4)
-select * from cte cte1 where i < 2 union select * from cte cte2 where i > 2;
-i
-1
-3
-with cte as (select * from t1 where i < 4 group by i)
-select * from cte cte1 where i < 2 union select * from cte cte2 where i > 2;
-i
-1
-3
-with cte as (select b from t2 where a < 4)
-select * from cte cte1 where b < 15 union select * from cte cte2 where b > 15;
-ERROR 42000: SELECT command denied to user 'foo'@'localhost' for column 'b' in table 't2'
-with cte as (select a from t2 where a < 4)
-select * from cte cte1 where a < 2 union select * from cte cte2 where a > 2;
-a
-1
-3
-connection default;
-revoke SELECT on db.t1 from foo@localhost;
-connection con1;
-with cte as (select * from t1 where i < 4)
-select * from cte;
-ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 't1'
-disconnect con1;
-connection default;
-drop database db;
-drop user foo@localhost;
diff --git a/mysql-test/r/cte_nonrecursive.result b/mysql-test/r/cte_nonrecursive.result
deleted file mode 100644
index 534a386fe12..00000000000
--- a/mysql-test/r/cte_nonrecursive.result
+++ /dev/null
@@ -1,1464 +0,0 @@
-create table t1 (a int, b varchar(32));
-insert into t1 values
-(4,'aaaa' ), (7,'bb'), (1,'ccc'), (4,'dd');
-insert into t1 values
-(3,'eee'), (7,'bb'), (1,'fff'), (4,'ggg');
-create table t2 (c int);
-insert into t2 values
-(2), (4), (5), (3);
-# select certain field in the specification of t
-with t as (select a from t1 where b >= 'c')
-select * from t2,t where t2.c=t.a;
-c a
-4 4
-3 3
-4 4
-select * from t2, (select a from t1 where b >= 'c') as t
-where t2.c=t.a;
-c a
-4 4
-3 3
-4 4
-explain
-with t as (select a from t1 where b >= 'c')
-select * from t2,t where t2.c=t.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-explain
-select * from t2, (select a from t1 where b >= 'c') as t
-where t2.c=t.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-# select '*' in the specification of t
-with t as (select * from t1 where b >= 'c')
-select * from t2,t where t2.c=t.a;
-c a b
-4 4 dd
-3 3 eee
-4 4 ggg
-select * from t2, (select * from t1 where b >= 'c') as t
-where t2.c=t.a;
-c a b
-4 4 dd
-3 3 eee
-4 4 ggg
-explain
-with t as (select * from t1 where b >= 'c')
-select * from t2,t where t2.c=t.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-explain
-select * from t2, (select * from t1 where b >= 'c') as t
-where t2.c=t.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-# rename fields returned by the specication when defining t
-with t(f1,f2) as (select * from t1 where b >= 'c')
-select * from t2,t where t2.c=t.f1;
-c f1 f2
-4 4 dd
-3 3 eee
-4 4 ggg
-explain
-with t(f1,f2) as (select * from t1 where b >= 'c')
-select * from t2,t where t2.c=t.f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-# materialized query specifying t
-with t as (select a, count(*) from t1 where b >= 'c' group by a)
-select * from t2,t where t2.c=t.a;
-c a count(*)
-4 4 2
-3 3 1
-select * from t2, (select a, count(*) from t1 where b >= 'c' group by a) as t
-where t2.c=t.a;
-c a count(*)
-4 4 2
-3 3 1
-explain
-with t as (select a, count(*) from t1 where b >= 'c' group by a)
-select * from t2,t where t2.c=t.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.c 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 8 Using where; Using temporary; Using filesort
-explain
-select * from t2, (select a, count(*) from t1 where b >= 'c' group by a) as t
-where t2.c=t.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.c 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 8 Using where; Using temporary; Using filesort
-# specivication of t contains having
-with t as (select a, count(*) from t1 where b >= 'c'
- group by a having count(*)=1 )
-select * from t2,t where t2.c=t.a;
-c a count(*)
-3 3 1
-select * from t2, (select a, count(*) from t1 where b >= 'c'
- group by a having count(*)=1) t
-where t2.c=t.a;
-c a count(*)
-3 3 1
-# main query contains having
-with t as (select * from t2 where c <= 4)
-select a, count(*) from t1,t where t1.a=t.c group by a having count(*)=1;
-a count(*)
-3 1
-select a, count(*) from t1, (select * from t2 where c <= 4) t
-where t1.a=t.c group by a having count(*)=1;
-a count(*)
-3 1
-# main query contains group by + order by
-with t as (select * from t2 where c <= 4 )
-select a, count(*) from t1,t where t1.a=t.c group by a order by count(*);
-a count(*)
-3 1
-4 3
-select a, count(*) from t1, (select * from t2 where c <= 4 ) t
-where t1.a=t.c group by a order by count(*);
-a count(*)
-3 1
-4 3
-# main query contains group by + order by + limit
-with t as (select * from t2 where c <= 4 )
-select a, count(*) from t1,t
-where t1.a=t.c group by a order by count(*) desc limit 1;
-a count(*)
-4 3
-select a, count(*) from t1, (select * from t2 where c <= 4 ) t
-where t1.a=t.c group by a order by count(*) desc limit 1;
-a count(*)
-4 3
-# t is used in a subquery
-with t as (select a from t1 where a<5)
-select * from t2 where c in (select a from t);
-c
-4
-3
-select * from t2
-where c in (select a from (select a from t1 where a<5) as t);
-c
-4
-3
-explain
-with t as (select a from t1 where a<5)
-select * from t2 where c in (select a from t);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 8 Using where
-explain
-select * from t2
-where c in (select a from (select a from t1 where a<5) as t);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 8 Using where
-# materialized t is used in a subquery
-with t as (select count(*) as c from t1 where b >= 'c' group by a)
-select * from t2 where c in (select c from t);
-c
-2
-select * from t2
-where c in (select c from (select count(*) as c from t1
-where b >= 'c' group by a) as t);
-c
-2
-explain
-with t as (select count(*) as c from t1 where b >= 'c' group by a)
-select * from t2 where c in (select c from t);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 Using where
-1 PRIMARY <derived2> ref key0 key0 8 test.t2.c 2 Using where; FirstMatch(t2)
-2 DERIVED t1 ALL NULL NULL NULL NULL 8 Using where; Using temporary; Using filesort
-explain
-select * from t2
-where c in (select c from (select count(*) as c from t1
-where b >= 'c' group by a) as t);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 Using where
-1 PRIMARY <derived3> ref key0 key0 8 test.t2.c 2 Using where; FirstMatch(t2)
-3 DERIVED t1 ALL NULL NULL NULL NULL 8 Using where; Using temporary; Using filesort
-# two references to t specified by a query
-# selecting a field: both in main query
-with t as (select a from t1 where b >= 'c')
-select * from t as r1, t as r2 where r1.a=r2.a;
-a a
-1 1
-1 1
-4 4
-4 4
-3 3
-1 1
-1 1
-4 4
-4 4
-select * from (select a from t1 where b >= 'c') as r1,
-(select a from t1 where b >= 'c') as r2
-where r1.a=r2.a;
-a a
-1 1
-1 1
-4 4
-4 4
-3 3
-1 1
-1 1
-4 4
-4 4
-explain
-with t as (select a from t1 where b >= 'c')
-select * from t as r1, t as r2 where r1.a=r2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-explain
-select * from (select a from t1 where b >= 'c') as r1,
-(select a from t1 where b >= 'c') as r2
-where r1.a=r2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-# two references to materialized t: both in main query
-with t as (select distinct a from t1 where b >= 'c')
-select * from t as r1, t as r2 where r1.a=r2.a;
-a a
-1 1
-4 4
-3 3
-select * from (select distinct a from t1 where b >= 'c') as r1,
-(select distinct a from t1 where b >= 'c') as r2
-where r1.a=r2.a;
-a a
-1 1
-4 4
-3 3
-explain
-with t as (select distinct a from t1 where b >= 'c')
-select * from t as r1, t as r2 where r1.a=r2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 8 Using where
-1 PRIMARY <derived3> ref key0 key0 5 r1.a 2
-3 DERIVED t1 ALL NULL NULL NULL NULL 8 Using where; Using temporary
-2 DERIVED t1 ALL NULL NULL NULL NULL 8 Using where; Using temporary
-explain
-select * from (select distinct a from t1 where b >= 'c') as r1,
-(select distinct a from t1 where b >= 'c') as r2
-where r1.a=r2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 8 Using where
-1 PRIMARY <derived3> ref key0 key0 5 r1.a 2
-3 DERIVED t1 ALL NULL NULL NULL NULL 8 Using where; Using temporary
-2 DERIVED t1 ALL NULL NULL NULL NULL 8 Using where; Using temporary
-# two references to t specified by a query
-# selecting all fields: both in main query
-with t as (select * from t1 where b >= 'c')
-select * from t as r1, t as r2 where r1.a=r2.a;
-a b a b
-1 ccc 1 ccc
-1 fff 1 ccc
-4 dd 4 dd
-4 ggg 4 dd
-3 eee 3 eee
-1 ccc 1 fff
-1 fff 1 fff
-4 dd 4 ggg
-4 ggg 4 ggg
-select * from (select * from t1 where b >= 'c') as r1,
-(select * from t1 where b >= 'c') as r2
-where r1.a=r2.a;
-a b a b
-1 ccc 1 ccc
-1 fff 1 ccc
-4 dd 4 dd
-4 ggg 4 dd
-3 eee 3 eee
-1 ccc 1 fff
-1 fff 1 fff
-4 dd 4 ggg
-4 ggg 4 ggg
-explain
-with t as (select * from t1 where b >= 'c')
-select * from t as r1, t as r2 where r1.a=r2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-explain
-select * from (select * from t1 where b >= 'c') as r1,
-(select * from t1 where b >= 'c') as r2
-where r1.a=r2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-# two references to t specifying explicitly column names
-with t(c) as (select a from t1 where b >= 'c')
-select * from t r1, t r2 where r1.c=r2.c;
-c c
-1 1
-1 1
-4 4
-4 4
-3 3
-1 1
-1 1
-4 4
-4 4
-# t two references of t used in different parts of a union
-with t as (select a from t1 where b >= 'c')
-select * from t where a < 2
-union
-select * from t where a >= 4;
-a
-1
-4
-select * from (select a from t1 where b >= 'c') as t
-where t.a < 2
-union
-select * from (select a from t1 where b >= 'c') as t
-where t.a >= 4;
-a
-1
-4
-explain
-with t as (select a from t1 where b >= 'c')
-select * from t where a < 2
-union
-select * from t where a >= 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where
-3 UNION t1 ALL NULL NULL NULL NULL 8 Using where
-NULL UNION RESULT <union1,3> ALL NULL NULL NULL NULL NULL
-explain
-select * from (select a from t1 where b >= 'c') as t
-where t.a < 2
-union
-select * from (select a from t1 where b >= 'c') as t
-where t.a >= 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where
-3 UNION t1 ALL NULL NULL NULL NULL 8 Using where
-NULL UNION RESULT <union1,3> ALL NULL NULL NULL NULL NULL
-# specification of t contains union
-with t as (select a from t1 where b >= 'f'
-union
-select c as a from t2 where c < 4)
-select * from t2,t where t2.c=t.a;
-c a
-2 2
-4 4
-3 3
-select * from t2,
-(select a from t1 where b >= 'f'
-union
-select c as a from t2 where c < 4) as t
-where t2.c=t.a;
-c a
-2 2
-4 4
-3 3
-explain
-with t as (select a from t1 where b >= 'f'
-union
-select c as a from t2 where c < 4)
-select * from t2,t where t2.c=t.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.c 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 8 Using where
-3 UNION t2 ALL NULL NULL NULL NULL 4 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-explain
-select * from t2,
-(select a from t1 where b >= 'f'
-union
-select c as a from t2 where c < 4) as t
-where t2.c=t.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.c 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 8 Using where
-3 UNION t2 ALL NULL NULL NULL NULL 4 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-# t is defined in the with clause of a subquery
-select t1.a,t1.b from t1,t2
-where t1.a>t2.c and
-t2.c in (with t as (select * from t1 where t1.a<5)
-select t2.c from t2,t where t2.c=t.a);
-a b
-4 aaaa
-7 bb
-7 bb
-4 dd
-7 bb
-7 bb
-4 ggg
-select t1.a,t1.b from t1,t2
-where t1.a>t2.c and
-t2.c in (select t2.c
-from t2,(select * from t1 where t1.a<5) as t
-where t2.c=t.a);
-a b
-4 aaaa
-7 bb
-7 bb
-4 dd
-7 bb
-7 bb
-4 ggg
-explain
-select t1.a,t1.b from t1,t2
-where t1.a>t2.c and
-t2.c in (with t as (select * from t1 where t1.a<5)
-select t2.c from t2,t where t2.c=t.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 4 Using where
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-explain
-select t1.a,t1.b from t1,t2
-where t1.a>t2.c and
-t2.c in (select t2.c
-from t2,(select * from t1 where t1.a<5) as t
-where t2.c=t.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 4 Using where
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-# two different definitions of t: one in the with clause of the main query,
-# the other in the with clause of a subquery
-with t as (select c from t2 where c >= 4)
-select t1.a,t1.b from t1,t
-where t1.a=t.c and
-t.c in (with t as (select * from t1 where t1.a<5)
-select t2.c from t2,t where t2.c=t.a);
-a b
-4 aaaa
-4 dd
-4 ggg
-select t1.a,t1.b from t1, (select c from t2 where c >= 4) as t
-where t1.a=t.c and
-t.c in (select t2.c from t2, (select * from t1 where t1.a<5) as t
-where t2.c=t.a);
-a b
-4 aaaa
-4 dd
-4 ggg
-explain
-with t as (select c from t2 where c >= 4)
-select t1.a,t1.b from t1,t
-where t1.a=t.c and
-t.c in (with t as (select * from t1 where t1.a<5)
-select t2.c from t2,t where t2.c=t.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 Using where
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 4 Using where
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-explain
-select t1.a,t1.b from t1, (select c from t2 where c >= 4) as t
-where t1.a=t.c and
-t.c in (select t2.c from t2, (select * from t1 where t1.a<5) as t
-where t2.c=t.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 Using where
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 4 Using where
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-# another with table tt is defined in the with clause of a subquery
-# from the specification of t
-with t as (select * from t1
-where a>2 and
-b in (with tt as (select * from t2 where t2.c<5)
-select t1.b from t1,tt where t1.a=tt.c))
-select t.a, count(*) from t1,t where t1.a=t.a group by t.a;
-a count(*)
-3 1
-4 9
-select t.a, count(*)
-from t1,
-(select * from t1
-where a>2 and
-b in (select t1.b
-from t1,
-(select * from t2 where t2.c<5) as tt
-where t1.a=tt.c)) as t
-where t1.a=t.a group by t.a;
-a count(*)
-3 1
-4 9
-explain
-with t as (select * from t1
-where a>2 and
-b in (with tt as (select * from t2 where t2.c<5)
-select t1.b from t1,tt where t1.a=tt.c))
-select t.a, count(*) from t1,t where t1.a=t.a group by t.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where; Using temporary; Using filesort
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 35 func 1
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 4 Using where
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-explain
-select t.a, count(*)
-from t1,
-(select * from t1
-where a>2 and
-b in (select t1.b
-from t1,
-(select * from t2 where t2.c<5) as tt
-where t1.a=tt.c)) as t
-where t1.a=t.a group by t.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where; Using temporary; Using filesort
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 35 func 1
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 4 Using where
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-# with clause in the specification of a derived table
-select *
-from t1,
-(with t as (select a from t1 where b >= 'c')
-select * from t2,t where t2.c=t.a) as tt
-where t1.b > 'f' and tt.a=t1.a;
-a b c a
-4 ggg 4 4
-4 ggg 4 4
-select *
-from t1,
-(select * from t2,
-(select a from t1 where b >= 'c') as t
-where t2.c=t.a) as tt
-where t1.b > 'f' and tt.a=t1.a;
-a b c a
-4 ggg 4 4
-4 ggg 4 4
-explain
-select *
-from t1,
-(with t as (select a from t1 where b >= 'c')
-select * from t2,t where t2.c=t.a) as tt
-where t1.b > 'f' and tt.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (incremental, BNL join)
-explain
-select *
-from t1,
-(select * from t2,
-(select a from t1 where b >= 'c') as t
-where t2.c=t.a) as tt
-where t1.b > 'f' and tt.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (incremental, BNL join)
-# with claused in the specification of a view
-create view v1 as
-with t as (select a from t1 where b >= 'c')
-select * from t2,t where t2.c=t.a;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS with t as (select `t1`.`a` AS `a` from `t1` where `t1`.`b` >= 'c')select `t2`.`c` AS `c`,`t`.`a` AS `a` from (`t2` join `t`) where `t2`.`c` = `t`.`a` latin1 latin1_swedish_ci
-select * from v1;
-c a
-4 4
-3 3
-4 4
-explain
-select * from v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-# with claused in the specification of a materialized view
-create view v2 as
-with t as (select a, count(*) from t1 where b >= 'c' group by a)
-select * from t2,t where t2.c=t.a;
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS with t as (select `t1`.`a` AS `a`,count(0) AS `count(*)` from `t1` where `t1`.`b` >= 'c' group by `t1`.`a`)select `t2`.`c` AS `c`,`t`.`a` AS `a`,`t`.`count(*)` AS `count(*)` from (`t2` join `t`) where `t2`.`c` = `t`.`a` latin1 latin1_swedish_ci
-select * from v2;
-c a count(*)
-4 4 2
-3 3 1
-explain
-select * from v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 Using where
-1 PRIMARY <derived3> ref key0 key0 5 test.t2.c 2
-3 DERIVED t1 ALL NULL NULL NULL NULL 8 Using where; Using temporary; Using filesort
-# with clause in the specification of a view that whose definition
-# table alias for a with table
-create view v3 as
-with t(c) as (select a from t1 where b >= 'c')
-select * from t r1 where r1.c=4;
-show create view v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS with t as (select `t1`.`a` AS `c` from `t1` where `t1`.`b` >= 'c')select `r1`.`c` AS `c` from `t` `r1` where `r1`.`c` = 4 latin1 latin1_swedish_ci
-select * from v3;
-c
-4
-4
-# with clause in the specification of a view that whose definition
-# two table aliases for for the same with table
-create view v4(c,d) as
-with t(c) as (select a from t1 where b >= 'c')
-select * from t r1, t r2 where r1.c=r2.c and r2.c=4;
-show create view v4;
-View Create View character_set_client collation_connection
-v4 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v4` AS with t as (select `test`.`t1`.`a` AS `c` from `test`.`t1` where `test`.`t1`.`b` >= 'c')select `r1`.`c` AS `c`,`r2`.`c` AS `d` from (`t` `r1` join (select `test`.`t1`.`a` AS `c` from `test`.`t1` where `test`.`t1`.`b` >= 'c') `r2`) where `r1`.`c` = `r2`.`c` and `r2`.`c` = 4 latin1 latin1_swedish_ci
-select * from v4;
-c d
-4 4
-4 4
-4 4
-4 4
-explain
-select * from v4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-drop view v1,v2,v3,v4;
-# currently any views containing with clause are not updatable
-create view v1(a) as
-with t as (select a from t1 where b >= 'c')
-select t.a from t2,t where t2.c=t.a;
-update v1 set a=0 where a > 4;
-ERROR HY000: The target table v1 of the UPDATE is not updatable
-drop view v1;
-# prepare of a query containing a definition of a with table t
-prepare stmt1 from "
-with t as (select a from t1 where b >= 'c')
- select * from t2,t where t2.c=t.a;
-";
-execute stmt1;
-c a
-4 4
-3 3
-4 4
-execute stmt1;
-c a
-4 4
-3 3
-4 4
-deallocate prepare stmt1;
-# prepare of a query containing a definition of a materialized t
-prepare stmt1 from "
-with t as (select a, count(*) from t1 where b >= 'c' group by a)
- select * from t2,t where t2.c=t.a;
-";
-execute stmt1;
-c a count(*)
-4 4 2
-3 3 1
-execute stmt1;
-c a count(*)
-4 4 2
-3 3 1
-deallocate prepare stmt1;
-# prepare of a query containing two references to with table t
-prepare stmt1 from "
-with t as (select * from t1 where b >= 'c')
- select * from t as r1, t as r2 where r1.a=r2.a;
-";
-execute stmt1;
-a b a b
-1 ccc 1 ccc
-1 fff 1 ccc
-4 dd 4 dd
-4 ggg 4 dd
-3 eee 3 eee
-1 ccc 1 fff
-1 fff 1 fff
-4 dd 4 ggg
-4 ggg 4 ggg
-execute stmt1;
-a b a b
-1 ccc 1 ccc
-1 fff 1 ccc
-4 dd 4 dd
-4 ggg 4 dd
-3 eee 3 eee
-1 ccc 1 fff
-1 fff 1 fff
-4 dd 4 ggg
-4 ggg 4 ggg
-deallocate prepare stmt1;
-with t(f) as (select * from t1 where b >= 'c')
-select * from t2,t where t2.c=t.f1;
-ERROR HY000: WITH column list and SELECT field list have different column counts
-with t(f1,f1) as (select * from t1 where b >= 'c')
-select * from t2,t where t2.c=t.f1;
-ERROR 42S21: Duplicate column name 'f1'
-with t as (select * from t2 where c>3),
-t as (select a from t1 where a>2)
-select * from t,t1 where t1.a=t.c;
-ERROR HY000: Duplicate query name `t` in WITH clause
-with t as (select a from s where a<5),
-s as (select a from t1 where b>='d')
-select * from t,s where t.a=s.a;
-ERROR 42S02: Table 'test.s' doesn't exist
-with recursive
-t as (select a from s where a<5),
-s as (select a from t1 where b>='d')
-select * from t,s where t.a=s.a;
-a a
-4 4
-4 4
-3 3
-1 1
-4 4
-4 4
-with recursive t as (select * from s where a>2),
-s as (select a from t1,r where t1.a>r.c),
-r as (select c from t,t2 where t.a=t2.c)
-select * from r where r.c<7;
-ERROR HY000: No anchors for recursive WITH element 't'
-with recursive
-t as (select * from s where a>2),
-s as (select a from t1,r where t1.a>r.c),
-r as (select c from t,t2 where t.a=t2.c)
-select * from r where r.c<7;
-ERROR HY000: No anchors for recursive WITH element 't'
-with recursive
-t as (select * from t1
-where a in (select c from s where b<='ccc') and b>'b'),
-s as (select * from t1,t2
-where t1.a=t2.c and t1.c in (select a from t where a<5))
-select * from s where s.b>'aaa';
-ERROR HY000: No anchors for recursive WITH element 't'
-with recursive
-t as (select * from t1 where b>'aaa' and b <='d')
-select t.b from t,t2
-where t.a=t2.c and
-t2.c in (with recursive
-s as (select t1.a from s,t1 where t1.a=s.a and t1.b<'c')
-select * from s);
-ERROR HY000: No anchors for recursive WITH element 's'
-#erroneous definition of unreferenced with table t
-with t as (select count(*) from t1 where d>='f' group by a)
-select t1.b from t2,t1 where t1.a = t2.c;
-ERROR 42S22: Unknown column 'd' in 'where clause'
-with t as (select count(*) from t1 where b>='f' group by a)
-select t1.b from t2,t1 where t1.a = t2.c;
-b
-aaaa
-dd
-eee
-ggg
-#erroneous definition of s referring to unreferenced t
-with t(d) as (select count(*) from t1 where b<='ccc' group by b),
-s as (select * from t1 where a in (select t2.d from t2,t where t2.c=t.d))
-select t1.b from t1,t2 where t1.a=t2.c;
-ERROR 42S22: Unknown column 't2.d' in 'field list'
-with t(d) as (select count(*) from t1 where b<='ccc' group by b),
-s as (select * from t1 where a in (select t2.c from t2,t where t2.c=t.c))
-select t1.b from t1,t2 where t1.a=t2.c;
-ERROR 42S22: Unknown column 't.c' in 'where clause'
-with t(d) as (select count(*) from t1 where b<='ccc' group by b),
-s as (select * from t1 where a in (select t2.c from t2,t where t2.c=t.d))
-select t1.b from t1,t2 where t1.a=t2.c;
-b
-aaaa
-dd
-eee
-ggg
-#erroneous definition of unreferenced with table t
-with t(f) as (select * from t1 where b >= 'c')
-select t1.b from t2,t1 where t1.a = t2.c;
-ERROR HY000: WITH column list and SELECT field list have different column counts
-#erroneous definition of unreferenced with table t
-with t(f1,f1) as (select * from t1 where b >= 'c')
-select t1.b from t2,t1 where t1.a = t2.c;
-ERROR 42S21: Duplicate column name 'f1'
-# explain for query with unreferenced with table
-explain
-with t as (select a from t1 where b >= 'c')
-select t1.b from t2,t1 where t1.a = t2.c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-explain
-with t as (select a, count(*) from t1 where b >= 'c' group by a)
-select t1.b from t2,t1 where t1.a = t2.c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-# too many with elements in with clause
-with s65 as (select * from t1), s64 as (select * from t1) , s63 as (select * from t1) , s62 as (select * from t1) , s61 as (select * from t1) , s60 as (select * from t1) , s59 as (select * from t1) , s58 as (select * from t1) , s57 as (select * from t1) , s56 as (select * from t1) , s55 as (select * from t1) , s54 as (select * from t1) , s53 as (select * from t1) , s52 as (select * from t1) , s51 as (select * from t1) , s50 as (select * from t1) , s49 as (select * from t1) , s48 as (select * from t1) , s47 as (select * from t1) , s46 as (select * from t1) , s45 as (select * from t1) , s44 as (select * from t1) , s43 as (select * from t1) , s42 as (select * from t1) , s41 as (select * from t1) , s40 as (select * from t1) , s39 as (select * from t1) , s38 as (select * from t1) , s37 as (select * from t1) , s36 as (select * from t1) , s35 as (select * from t1) , s34 as (select * from t1) , s33 as (select * from t1) , s32 as (select * from t1) , s31 as (select * from t1) , s30 as (select * from t1) , s29 as (select * from t1) , s28 as (select * from t1) , s27 as (select * from t1) , s26 as (select * from t1) , s25 as (select * from t1) , s24 as (select * from t1) , s23 as (select * from t1) , s22 as (select * from t1) , s21 as (select * from t1) , s20 as (select * from t1) , s19 as (select * from t1) , s18 as (select * from t1) , s17 as (select * from t1) , s16 as (select * from t1) , s15 as (select * from t1) , s14 as (select * from t1) , s13 as (select * from t1) , s12 as (select * from t1) , s11 as (select * from t1) , s10 as (select * from t1) , s9 as (select * from t1) , s8 as (select * from t1) , s7 as (select * from t1) , s6 as (select * from t1) , s5 as (select * from t1) , s4 as (select * from t1) , s3 as (select * from t1) , s2 as (select * from t1) , s1 as (select * from t1) select * from s65;
-ERROR HY000: Too many WITH elements in WITH clause
-drop table t1,t2;
-#
-# Bug mdev-9937: View used in the specification of with table
-# refers to the base table with the same name
-#
-create table t1 (a int);
-insert into t1 values (20), (30), (10);
-create view v1 as select * from t1 where a > 10;
-with t1 as (select * from v1) select * from t1;
-a
-20
-30
-drop view v1;
-drop table t1;
-#
-# Bug mdev-10058: Invalid derived table with WITH clause
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-CREATE TABLE t3 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t2 VALUES (1),(2),(3);
-INSERT INTO t3 VALUES (1),(2),(3);
-SELECT * FROM (WITH a AS (SELECT * FROM t1) (t2 NATURAL JOIN t3));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't2 NATURAL JOIN t3))' at line 1
-SELECT * FROM (WITH a AS (SELECT * FROM t1) SELECT * FROM t2 NATURAL JOIN t3) AS d1;
-a
-1
-2
-3
-DROP TABLE t1,t2,t3;
-#
-# Bug mdev-10344: the WITH clause of the query refers to a view that uses
-# a base table with the same name as a CTE table from the clause
-#
-create table ten(a int primary key);
-insert into ten values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table one_k(a int primary key);
-insert into one_k select A.a + B.a* 10 + C.a * 100 from ten A, ten B, ten C;
-create view v1 as select * from ten;
-select * from v1;
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-drop view v1;
-drop table ten, one_k;
-#
-# MDEV-10057 : Crash with EXPLAIN + WITH + constant query
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-SELECT * FROM (WITH a AS (SELECT * FROM t1) SELECT 1) AS t1;
-1
-1
-EXPLAIN SELECT * FROM (WITH a AS (SELECT * FROM t1) SELECT 1) AS t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 1
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-DROP TABLE t1;
-#
-# MDEV-10058: Suspicious EXPLAIN output for a derived table + WITH + joined table
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-CREATE TABLE t3 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t2 VALUES (1),(2),(3);
-INSERT INTO t3 VALUES (1),(2),(3);
-EXPLAIN SELECT * FROM (WITH a AS (SELECT * FROM t1) (t2 NATURAL JOIN t3));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't2 NATURAL JOIN t3))' at line 1
-explain SELECT * FROM (WITH a AS (SELECT * FROM t1) SELECT * FROM t2 NATURAL JOIN t3) AS d1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-DROP TABLE t1,t2,t3;
-#
-# MDEV-10729: Server crashes in st_select_lex::set_explain_type
-#
-CREATE TABLE t1 (i1 INT, KEY(i1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4),(8);
-CREATE TABLE t2 (a2 INT, b2 INT, KEY(b2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8,7);
-CREATE TABLE t3 (i3 INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (2),(6);
-SELECT * FROM t1, t2 WHERE a2 = i1 and b2 >= i1 AND i1 IN ( SELECT i3 FROM t3 )
-UNION
-SELECT * FROM t1, t2 WHERE a2 = i1 and b2 >= i1 AND i1 IN ( SELECT i3 FROM t3 )
-;
-i1 a2 b2
-DROP TABLE t1,t2,t3;
-#
-# MDEV-10923: mergeable CTE used twice in the query
-#
-create table employees (
-name varchar(32),
-dept varchar(32),
-country varchar(8)
-);
-insert into employees
-values
-('Sergei Golubchik', 'Development', 'DE'),
-('Claudio Nanni', 'Support', 'ES'),
-('Sergei Petrunia', 'Development', 'RU');
-with eng as
-(
-select * from employees
-where dept in ('Development','Support')
-),
-eu_eng as
-(
-select * from eng where country IN ('DE','ES','RU')
-)
-select * from eu_eng T1
-where
-not exists (select 1 from eu_eng T2
-where T2.country=T1.country
-and T2.name <> T1.name);
-name dept country
-Sergei Golubchik Development DE
-Claudio Nanni Support ES
-Sergei Petrunia Development RU
-drop table employees;
-#
-# MDEV-11818: EXPLAIN EXTENDED for a query with optimized away CTE table
-#
-CREATE TABLE t1 (i INT, c VARCHAR(3));
-INSERT INTO t1 VALUES (1,'foo');
-EXPLAIN EXTENDED
-WITH cte AS ( SELECT * FROM t1 ) SELECT i FROM cte;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 with cte as (select `test`.`t1`.`i` AS `i`,`test`.`t1`.`c` AS `c` from `test`.`t1`)select 1 AS `i` from dual
-DROP TABLE t1;
-#
-# MDEV-12185: view defintion contains WITH clause with
-# several specifications of CTE
-#
-with
-alias1 as (select 1 as one),
-alias2 as (select 2 as two)
-select one, two from alias1, alias2;
-one two
-1 2
-create view v1 as
-with
-alias1 as (select 1 as one),
-alias2 as (select 2 as two)
-select one, two from alias1, alias2;
-select * from v1;
-one two
-1 2
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS with alias1 as (select 1 AS `one`), alias2 as (select 2 AS `two`)select `alias1`.`one` AS `one`,`alias2`.`two` AS `two` from (`alias1` join `alias2`) latin1 latin1_swedish_ci
-drop view v1;
-#
-# MDEV-12440: the same CTE table is used twice
-#
-create table t1 (a int, b varchar(32));
-insert into t1 values
-(4,'aaaa' ), (7,'bb'), (1,'ccc'), (4,'dd');
-# cte2 is used in the main query and in the spec for ct3
-with
-cte1 as (select * from t1 where b >= 'c'),
-cte2 as (select * from cte1 where a < 7),
-cte3 as (select * from cte2 where a > 1)
-select * from cte2, cte3 where cte2.a = cte3.a;
-a b a b
-4 dd 4 dd
-# cte2 is used twice in the spec for ct3
-with
-cte1 as (select * from t1 where b >= 'b'),
-cte2 as (select * from cte1 where b > 'c'),
-cte3 as (select * from cte2 where a > 1 union select * from cte2 where a > 1)
-select * from cte3;
-a b
-4 dd
-drop table t1;
-#
-# MDEV-12558: CTE with the same name as temporary table
-#
-CREATE TABLE t ENGINE=MyISAM AS SELECT 1 AS i;
-CREATE TEMPORARY TABLE cte ENGINE=MyISAM AS SELECT 2 AS f;
-WITH cte AS ( SELECT i FROM t ) SELECT * FROM cte;
-i
-1
-WITH cte AS ( SELECT i FROM t GROUP BY i) SELECT * FROM cte;
-i
-1
-SELECT * FROM cte;
-f
-2
-DROP TABLE cte;
-DROP TABLE t;
-#
-# MDEV-13107: SHOW TABLE STATUS, SHOW CREATE VIEW
-# for CTEs that use derived tables
-#
-create table t1(a int) engine=myisam;
-insert into t1 values (3), (1), (2);
-create table t2 (b int) engine=myisam;
-insert into t2 values (2), (10);
-create view v1 as
-with t as (select s.a from (select t1.a from t1) s),
-r as(select t.a from t2, t where t2.b=t.a)
-select a from r;
-create view v2 as
-with t as (select s.a from (select t1.a from t1) s),
-r as(select t.a from t2, t where t2.b=t.a)
-select a from t1;
-show table status;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS with t as (select `s`.`a` AS `a` from (select `test`.`t1`.`a` AS `a` from `test`.`t1`) `s`), r as (select `t`.`a` AS `a` from (`test`.`t2` join `t`) where `test`.`t2`.`b` = `t`.`a`)select `r`.`a` AS `a` from `r` latin1 latin1_swedish_ci
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS with t as (select `s`.`a` AS `a` from (select `test`.`t1`.`a` AS `a` from `test`.`t1`) `s`), r as (select `t`.`a` AS `a` from (`test`.`t2` join `t`) where `test`.`t2`.`b` = `t`.`a`)select `test`.`t1`.`a` AS `a` from `test`.`t1` latin1 latin1_swedish_ci
-select * from v1;
-a
-2
-select * from v2;
-a
-3
-1
-2
-prepare stmt1 from "select * from v1";
-execute stmt1;
-a
-2
-execute stmt1;
-a
-2
-prepare stmt2 from "select * from v2";
-execute stmt2;
-a
-3
-1
-2
-execute stmt2;
-a
-3
-1
-2
-deallocate prepare stmt1;
-deallocate prepare stmt2;
-drop view v1,v2;
-drop table t1,t2;
-#
-# MDEV-13796: UNION of two materialized CTEs
-#
-CREATE TABLE t1 (id int, k int);
-CREATE TABLE t2 (id int);
-INSERT INTO t1 VALUES (3,5), (1,7), (4,3);
-INSERT INTO t2 VALUES (4), (3), (2);
-WITH d1 AS (SELECT SUM(k) FROM t1, t2 as t2 WHERE t1.id = t2.id),
-d2 AS (SELECT SUM(k) FROM t1, t2 as t2 WHERE t1.id = t2.id)
-SELECT * FROM d1 UNION SELECT * FROM d2;
-SUM(k)
-8
-explain WITH d1 AS (SELECT SUM(k) FROM t1, t2 as t2 WHERE t1.id = t2.id),
-d2 AS (SELECT SUM(k) FROM t1, t2 as t2 WHERE t1.id = t2.id)
-SELECT * FROM d1 UNION SELECT * FROM d2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 9
-2 DERIVED t1 ALL NULL NULL NULL NULL 3
-2 DERIVED t2 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-4 UNION <derived3> ALL NULL NULL NULL NULL 9
-3 DERIVED t1 ALL NULL NULL NULL NULL 3
-3 DERIVED t2 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-NULL UNION RESULT <union1,4> ALL NULL NULL NULL NULL NULL
-DROP TABLE t1,t2;
-#
-# MDEV-13780: tower of embedding CTEs with multiple usage of them
-#
-create table t1 (a int);
-insert into t1 values (3), (2), (4), (7), (1), (2), (5);
-with cte_e as
-(
-with cte_o as
-(
-with cte_i as (select * from t1 where a < 7)
-select * from cte_i where a > 1
-)
-select * from cte_o as cto_o1 where a < 3
-union
-select * from cte_o as cto_o2 where a > 4
-)
-select * from cte_e as cte_e1 where a > 1
-union
-select * from cte_e as cte_e2;
-a
-2
-5
-explain extended with cte_e as
-(
-with cte_o as
-(
-with cte_i as (select * from t1 where a < 7)
-select * from cte_i where a > 1
-)
-select * from cte_o as cto_o1 where a < 3
-union
-select * from cte_o as cto_o2 where a > 4
-)
-select * from cte_e as cte_e1 where a > 1
-union
-select * from cte_e as cte_e2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 14 100.00 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 7 100.00 Using where
-5 UNION t1 ALL NULL NULL NULL NULL 7 100.00 Using where
-NULL UNION RESULT <union2,5> ALL NULL NULL NULL NULL NULL NULL
-6 UNION <derived9> ALL NULL NULL NULL NULL 14 100.00
-9 DERIVED t1 ALL NULL NULL NULL NULL 7 100.00 Using where
-12 UNION t1 ALL NULL NULL NULL NULL 7 100.00 Using where
-NULL UNION RESULT <union9,12> ALL NULL NULL NULL NULL NULL NULL
-NULL UNION RESULT <union1,6> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 with cte_e as (with cte_o as (with cte_i as (/* select#4 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` < 7)/* select#3 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 1)/* select#2 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` < 3 and `test`.`t1`.`a` > 1 and `test`.`t1`.`a` < 7 and `test`.`t1`.`a` > 1 union /* select#5 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 4 and `test`.`t1`.`a` > 1 and `test`.`t1`.`a` < 7 and `test`.`t1`.`a` > 1)/* select#1 */ select `cte_e1`.`a` AS `a` from `cte_e` `cte_e1` where `cte_e1`.`a` > 1 union /* select#6 */ select `cte_e2`.`a` AS `a` from (with cte_o as (with cte_i as (/* select#11 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` < 7)/* select#10 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 1)/* select#9 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` < 3 and `test`.`t1`.`a` > 1 and `test`.`t1`.`a` < 7 union /* select#12 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 4 and `test`.`t1`.`a` > 1 and `test`.`t1`.`a` < 7) `cte_e2`
-drop table t1;
-#
-# MDEV-13753: embedded CTE in a VIEW created in prepared statement
-#
-SET @sql_query = "
- CREATE OR REPLACE VIEW cte_test AS
- WITH cte1 AS ( SELECT 1 as a from dual )
- , cte2 AS ( SELECT * FROM cte1 )
- SELECT * FROM cte2;
-";
-PREPARE stmt FROM @sql_query;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-SHOW CREATE VIEW cte_test;
-View Create View character_set_client collation_connection
-cte_test CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `cte_test` AS with cte1 as (select 1 AS `a`), cte2 as (select `cte1`.`a` AS `a` from `cte1`)select `cte2`.`a` AS `a` from `cte2` latin1 latin1_swedish_ci
-SELECT * FROM cte_test;
-a
-1
-DROP VIEW cte_test;
-#
-# mdev-14755 : PS for query using CTE in select with subquery
-#
-create table t1 (a int);
-insert into t1 values
-(7), (2), (8), (1), (3), (2), (7), (5), (4), (7), (9), (8);
-with cte as
-(select a from t1 where a between 4 and 7 group by a)
-(select a from cte where exists( select a from t1 where cte.a=t1.a ))
-union
-(select a from t1 where a < 2);
-a
-7
-5
-4
-1
-prepare stmt from "with cte as
-(select a from t1 where a between 4 and 7 group by a)
-(select a from cte where exists( select a from t1 where cte.a=t1.a ))
-union
-(select a from t1 where a < 2)";
-execute stmt;
-a
-7
-5
-4
-1
-execute stmt;
-a
-7
-5
-4
-1
-deallocate prepare stmt;
-with cte as
-(select a from t1 where a between 4 and 7 group by a)
-(select a from t1 where a < 2)
-union
-(select a from cte where exists( select a from t1 where cte.a=t1.a ));
-a
-1
-7
-5
-4
-prepare stmt from "with cte as
-(select a from t1 where a between 4 and 7 group by a)
-(select a from t1 where a < 2)
-union
-(select a from cte where exists( select a from t1 where cte.a=t1.a ))";
-execute stmt;
-a
-1
-7
-5
-4
-execute stmt;
-a
-1
-7
-5
-4
-deallocate prepare stmt;
-with cte as
-(select a from t1 where a between 4 and 7)
-(select a from t1 where a < 2)
-union
-(select a from cte where exists( select a from t1 where cte.a=t1.a ));
-a
-1
-7
-5
-4
-prepare stmt from "with cte as
-(select a from t1 where a between 4 and 7)
-(select a from t1 where a < 2)
-union
-(select a from cte where exists( select a from t1 where cte.a=t1.a ))";
-execute stmt;
-a
-1
-7
-5
-4
-execute stmt;
-a
-1
-7
-5
-4
-deallocate prepare stmt;
-with cte as
-(select a from t1 where a between 4 and 7)
-(select a from cte
-where exists( select a from t1 where t1.a < 2 and cte.a=t1.a ))
-union
-(select a from cte where exists( select a from t1 where cte.a=t1.a ));
-a
-7
-5
-4
-prepare stmt from "with cte as
-(select a from t1 where a between 4 and 7)
-(select a from cte
-where exists( select a from t1 where t1.a < 2 and cte.a=t1.a ))
-union
-(select a from cte where exists( select a from t1 where cte.a=t1.a ))";
-execute stmt;
-a
-7
-5
-4
-execute stmt;
-a
-7
-5
-4
-deallocate prepare stmt;
-drop table t1;
-#
-# MDEV-14852: CTE using temporary table in query
-# with two references to the CTE
-#
-create temporary table t1 (i int);
-insert into t1 values (5),(4),(1),(2),(3);
-with
-c1 as (select i from t1),
-c2 as (select i from c1 where c1.i=2)
-select i from c1 where i > 3 union select i from c2;
-i
-5
-4
-2
-drop table t1;
-create table t1 (term char(10));
-create temporary table t2 (term char(10));
-insert into t1 values ('TERM01'),('TERM02'),('TERM03');
-insert into t2 values ('TERM02'),('TERM03'),('TERM04');
-with c1 as (select * from t1), c2 as (select * from t2)
-(select * from c1 left outer join c2 on c1.term = c2.term)
-union all
-(select * from c1 right outer join c2 on c1.term = c2.term
-where c1.term is null);
-term term
-TERM02 TERM02
-TERM03 TERM03
-TERM01 NULL
-NULL TERM04
-drop table t1,t2;
-#
-# MDEV-14969: view using subquery with attached CTE
-#
-create table region (
-r_regionkey int,
-r_name char(25),
-primary key (r_regionkey)
-);
-insert into region values
-(0,'AFRICA'), (1,'AMERICA'), (2,'ASIA'), (3,'EUROPE'), (4,'MIDDLE EAST');
-create table nation (
-n_nationkey int,
-n_name char(25),
-n_regionkey int,
-primary key (n_nationkey),
-key i_n_regionkey (n_regionkey)
-);
-insert into nation values
-(0,'ALGERIA',0), (1,'ARGENTINA',1), (2,'BRAZIL',1), (3,'CANADA',1),
-(4,'EGYPT',4), (5,'ETHIOPIA',0), (6,'FRANCE',3), (7,'GERMANY',3),
-(8,'INDIA',2), (9,'INDONESIA',2), (10,'IRAN',4), (11,'IRAQ',4),
-(12,'JAPAN',2), (13,'JORDAN',4), (14,'KENYA',0), (15,'MOROCCO',0),
-(16,'MOZAMBIQUE',0), (17,'PERU',1), (18,'CHINA',2), (19,'ROMANIA',3),
-(20,'SAUDI ARABIA',4), (21,'VIETNAM',2), (22,'RUSSIA',3),
-(23,'UNITED KINGDOM',3), (24,'UNITED STATES',1);
-select * from nation n ,region r
-where n.n_regionkey = r.r_regionkey and
-r.r_regionkey in
-(with t as (select * from region where r_regionkey <= 3 )
-select r_regionkey from t where r_name <> "ASIA");
-n_nationkey n_name n_regionkey r_regionkey r_name
-0 ALGERIA 0 0 AFRICA
-5 ETHIOPIA 0 0 AFRICA
-14 KENYA 0 0 AFRICA
-15 MOROCCO 0 0 AFRICA
-16 MOZAMBIQUE 0 0 AFRICA
-1 ARGENTINA 1 1 AMERICA
-2 BRAZIL 1 1 AMERICA
-3 CANADA 1 1 AMERICA
-17 PERU 1 1 AMERICA
-24 UNITED STATES 1 1 AMERICA
-6 FRANCE 3 3 EUROPE
-7 GERMANY 3 3 EUROPE
-19 ROMANIA 3 3 EUROPE
-22 RUSSIA 3 3 EUROPE
-23 UNITED KINGDOM 3 3 EUROPE
-create view v as
-select * from nation n ,region r
-where n.n_regionkey = r.r_regionkey and
-r.r_regionkey in
-(with t as (select * from region where r_regionkey <= 3)
-select r_regionkey from t where r_name <> "ASIA");
-show create view v;
-View Create View character_set_client collation_connection
-v CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v` AS select `n`.`n_nationkey` AS `n_nationkey`,`n`.`n_name` AS `n_name`,`n`.`n_regionkey` AS `n_regionkey`,`r`.`r_regionkey` AS `r_regionkey`,`r`.`r_name` AS `r_name` from (`nation` `n` join `region` `r`) where `n`.`n_regionkey` = `r`.`r_regionkey` and `r`.`r_regionkey` in (with t as (select `region`.`r_regionkey` AS `r_regionkey`,`region`.`r_name` AS `r_name` from `region` where `region`.`r_regionkey` <= 3)select `t`.`r_regionkey` from `t` where `t`.`r_name` <> 'ASIA') latin1 latin1_swedish_ci
-select * from v;
-n_nationkey n_name n_regionkey r_regionkey r_name
-0 ALGERIA 0 0 AFRICA
-5 ETHIOPIA 0 0 AFRICA
-14 KENYA 0 0 AFRICA
-15 MOROCCO 0 0 AFRICA
-16 MOZAMBIQUE 0 0 AFRICA
-1 ARGENTINA 1 1 AMERICA
-2 BRAZIL 1 1 AMERICA
-3 CANADA 1 1 AMERICA
-17 PERU 1 1 AMERICA
-24 UNITED STATES 1 1 AMERICA
-6 FRANCE 3 3 EUROPE
-7 GERMANY 3 3 EUROPE
-19 ROMANIA 3 3 EUROPE
-22 RUSSIA 3 3 EUROPE
-23 UNITED KINGDOM 3 3 EUROPE
-drop view v;
-drop table region, nation;
-#
-# MDEV-15120: cte name used with database name
-#
-WITH cte AS (SELECT 1 AS a) SELECT test.cte.a FROM test.cte;
-ERROR 42S02: Table 'test.cte' doesn't exist
-CREATE DATABASE db1;
-USE db1;
-WITH cte AS (SELECT 1 AS a) SELECT db1.cte.a FROM db1.cte;
-ERROR 42S02: Table 'db1.cte' doesn't exist
-DROP DATABASE db1;
-USE test;
-#
-# MDEV-15119: CTE c2 specified after CTE c1 and is used in
-# CTE c3 that is embedded into the spec of c1
-#
-CREATE TABLE t1 (i int);
-INSERT INTO t1 VALUES (1),(2),(3);
-WITH c1 AS (WITH c3 AS (SELECT * FROM c2) SELECT * FROM c3),
-c2 AS (SELECT * FROM t1)
-SELECT * FROM c1;
-ERROR 42S02: Table 'test.c2' doesn't exist
-WITH RECURSIVE c1 AS (WITH c3 AS (SELECT * FROM c2) SELECT * FROM c3),
-c2 AS (SELECT * FROM t1)
-SELECT * FROM c1;
-i
-1
-2
-3
-DROP TABLE t1;
-#
-# MDEV-14297: Lost name of a explicitly named CTE column used in
-# the non-recursive CTE via prepared statement
-#
-CREATE TABLE t1 (i int);
-INSERT INTO t1 VALUES (1),(2),(3);
-PREPARE stmt FROM "WITH cte(a) AS (SELECT 1) SELECT * FROM cte";
-EXECUTE stmt;
-a
-1
-DEALLOCATE PREPARE stmt;
-PREPARE stmt FROM "CREATE VIEW v1 AS WITH cte(a) AS (SELECT 1) SELECT * FROM cte";
-EXECUTE stmt;
-SELECT * FROM v1;
-a
-1
-DEALLOCATE PREPARE stmt;
-PREPARE stmt FROM "CREATE VIEW v2 AS WITH cte(a) AS (SELECT * FROM t1) SELECT * FROM cte";
-EXECUTE stmt;
-SELECT * FROM v2;
-a
-1
-2
-3
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-DROP VIEW v1,v2;
-#
-# MDEV-15478: Lost name of a explicitly named CTE column used in
-# the non-recursive CTE defined with UNION
-#
-CREATE TABLE t1 (x int, y int);
-INSERT INTO t1 VALUES (1,2),(2,7),(3,3);
-WITH cte(a) AS (SELECT 1 UNION SELECT 2) SELECT * FROM cte;
-a
-1
-2
-WITH cte(a) AS (SELECT 1 UNION SELECT 2) SELECT a FROM cte;
-a
-1
-2
-WITH cte(a) AS (SELECT 1 UNION ALL SELECT 1) SELECT a FROM cte;
-a
-1
-1
-WITH cte(a) AS (SELECT x from t1 UNION SELECT 4) SELECT a FROM cte;
-a
-1
-2
-3
-4
-WITH cte(a) AS (SELECT 4 UNION SELECT x FROM t1 UNION SELECT 5)
-SELECT a FROM cte;
-a
-4
-1
-2
-3
-5
-WITH cte(a,b) AS (SELECT 4,5 UNION SELECT 4,3) SELECT a,b FROM cte;
-a b
-4 5
-4 3
-DROP TABLE t1;
diff --git a/mysql-test/r/cte_recursive.result b/mysql-test/r/cte_recursive.result
deleted file mode 100644
index 15d4fc1a01f..00000000000
--- a/mysql-test/r/cte_recursive.result
+++ /dev/null
@@ -1,3340 +0,0 @@
-create table t1 (a int, b varchar(32));
-insert into t1 values
-(4,'aaaa' ), (7,'bb'), (1,'ccc'), (4,'dd');
-insert into t1 values
-(3,'eee'), (7,'bb'), (1,'fff'), (4,'ggg');
-with recursive
-t as
-(
-select * from t1 where t1.b >= 'c'
- union
-select * from r
-),
-r as
-(
-select * from t
-union
-select t1.* from t1,r where r.a+1 = t1.a
-)
-select * from r;
-ERROR HY000: Unacceptable mutual recursion with anchored table 't'
-with recursive
-a1(a,b) as
-(select * from t1 where t1.a>3
-union
-select * from b1 where b1.a >3
-union
-select * from c1 where c1.a>3),
-b1(a,b) as
-(select * from a1 where a1.b > 'ccc'
-union
-select * from c1 where c1.b > 'ddd'),
-c1(a,b) as
-(select * from a1 where a1.a<6 and a1.b< 'zz'
-union
-select * from b1 where b1.b > 'auu')
-select * from c1;
-ERROR HY000: Unacceptable mutual recursion with anchored table 'a1'
-drop table t1;
-# WITH RECURSIVE vs just WITH
-create table t1 (a int);
-insert into t1 values
-(0), (1), (2), (3), (4);
-create table t2 (a int);
-insert into t2 values
-(1), (2), (3), (4), (5);
-# just WITH : s refers to t defined after s
-with
-s(a) as (select t.a + 10 from t),
-t(a) as (select t1.a from t1)
-select * from s;
-ERROR 42S02: Table 'test.t' doesn't exist
-# WITH RECURSIVE: s refers to t defined after s
-with recursive
-s(a) as (select t.a + 10 from t),
-t(a) as (select t1.a from t1)
-select * from s;
-a
-10
-11
-12
-13
-14
-# just WITH : defined t1 is non-recursive and uses base tables t1,t2
-with
-t1 as
-(
-select a from t2 where t2.a=3
-union
-select t2.a from t1,t2 where t1.a+1=t2.a
-)
-select * from t1;
-a
-3
-1
-2
-4
-5
-explain
-with
-t1 as
-(
-select a from t2 where t2.a=3
-union
-select t2.a from t1,t2 where t1.a+1=t2.a
-)
-select * from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 30
-2 DERIVED t2 ALL NULL NULL NULL NULL 5 Using where
-3 UNION t1 ALL NULL NULL NULL NULL 5
-3 UNION t2 ALL NULL NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-#WITH RECURSIVE : defined t1 is recursive and uses only base table t2
-with recursive
-t1 as
-(
-select a from t2 where t2.a=3
-union
-select t2.a from t1,t2 where t1.a+1=t2.a
-)
-select * from t1;
-a
-3
-4
-5
-explain
-with recursive
-t1 as
-(
-select a from t2 where t2.a=3
-union
-select t2.a from t1,t2 where t1.a+1=t2.a
-)
-select * from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 5
-2 DERIVED t2 ALL NULL NULL NULL NULL 5 Using where
-3 RECURSIVE UNION <derived2> ALL NULL NULL NULL NULL 5
-3 RECURSIVE UNION t2 ALL NULL NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-# just WITH : types of t1 columns are determined by all parts of union
-create view v1 as
-with
-t1 as
-(
-select a from t2 where t2.a=3
-union
-select t2.a+1 from t1,t2 where t1.a=t2.a
-)
-select * from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a bigint(12) YES NULL
-# WITH RECURSIVE : types of t1 columns are determined by anchor parts
-create view v2 as
-with recursive
-t1 as
-(
-select a from t2 where t2.a=3
-union
-select t2.a+1 from t1,t2 where t1.a=t2.a
-)
-select * from t1;
-show columns from v2;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-drop view v1,v2;
-drop table t1,t2;
-create table folks(id int, name char(32), dob date, father int, mother int);
-insert into folks values
-(100, 'Me', '2000-01-01', 20, 30),
-(20, 'Dad', '1970-02-02', 10, 9),
-(30, 'Mom', '1975-03-03', 8, 7),
-(10, 'Grandpa Bill', '1940-04-05', null, null),
-(9, 'Grandma Ann', '1941-10-15', null, null),
-(25, 'Uncle Jim', '1968-11-18', 8, 7),
-(98, 'Sister Amy', '2001-06-20', 20, 30),
-(7, 'Grandma Sally', '1943-08-23', null, 6),
-(8, 'Grandpa Ben', '1940-10-21', null, null),
-(6, 'Grandgrandma Martha', '1923-05-17', null, null),
-(67, 'Cousin Eddie', '1992-02-28', 25, 27),
-(27, 'Auntie Melinda', '1971-03-29', null, null);
-# simple recursion with one anchor and one recursive select
-# the anchor is the first select in the specification
-with recursive
-ancestors
-as
-(
-select *
-from folks
-where name = 'Me' and dob = '2000-01-01'
- union
-select p.id, p.name, p.dob, p.father, p.mother
-from folks as p, ancestors AS a
-where p.id = a.father or p.id = a.mother
-)
-select * from ancestors;
-id name dob father mother
-100 Me 2000-01-01 20 30
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-# simple recursion with one anchor and one recursive select
-# the anchor is the last select in the specification
-with recursive
-ancestors
-as
-(
-select p.*
-from folks as p, ancestors AS a
-where p.id = a.father or p.id = a.mother
-union
-select *
-from folks
-where name = 'Me' and dob = '2000-01-01'
-)
-select * from ancestors;
-id name dob father mother
-100 Me 2000-01-01 20 30
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-# simple recursion with one anchor and one recursive select
-# the anchor is the first select in the specification
-with recursive
-ancestors
-as
-(
-select *
-from folks
-where name = 'Cousin Eddie'
- union
-select p.*
-from folks as p, ancestors as a
-where p.id = a.father or p.id = a.mother
-)
-select * from ancestors;
-id name dob father mother
-67 Cousin Eddie 1992-02-28 25 27
-25 Uncle Jim 1968-11-18 8 7
-27 Auntie Melinda 1971-03-29 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-# simple recursion with or in anchor and or in recursive part
-with recursive
-ancestors
-as
-(
-select *
-from folks
-where name = 'Me' or name='Sister Amy'
- union
-select p.*
-from folks as p, ancestors as a
-where p.id = a.father or p.id = a.mother
-)
-select * from ancestors;
-id name dob father mother
-100 Me 2000-01-01 20 30
-98 Sister Amy 2001-06-20 20 30
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-# two recursive definition, one uses another
-with recursive
-prev_gen
-as
-(
-select folks.*
-from folks, prev_gen
-where folks.id=prev_gen.father or folks.id=prev_gen.mother
-union
-select *
-from folks
-where name='Me'
-),
-ancestors
-as
-(
-select *
-from folks
-where name='Me'
- union
-select *
-from ancestors
-union
-select *
-from prev_gen
-)
-select ancestors.name, ancestors.dob from ancestors;
-name dob
-Me 2000-01-01
-Dad 1970-02-02
-Mom 1975-03-03
-Grandpa Bill 1940-04-05
-Grandma Ann 1941-10-15
-Grandma Sally 1943-08-23
-Grandpa Ben 1940-10-21
-Grandgrandma Martha 1923-05-17
-# recursive definition with two attached non-recursive
-with recursive
-ancestors(id,name,dob)
-as
-(
-with
-father(child_id,id,name,dob)
-as
-(
-select folks.id, f.id, f.name, f.dob
-from folks, folks f
-where folks.father=f.id
-),
-mother(child_id,id,name,dob)
-as
-(
-select folks.id, m.id, m.name, m.dob
-from folks, folks m
-where folks.mother=m.id
-)
-select folks.id, folks.name, folks.dob
-from folks
-where name='Me'
- union
-select f.id, f.name, f.dob
-from ancestors a, father f
-where f.child_id=a.id
-union
-select m.id, m.name, m.dob
-from ancestors a, mother m
-where m.child_id=a.id
-)
-select ancestors.name, ancestors.dob from ancestors;
-name dob
-Me 2000-01-01
-Dad 1970-02-02
-Mom 1975-03-03
-Grandpa Bill 1940-04-05
-Grandpa Ben 1940-10-21
-Grandma Ann 1941-10-15
-Grandma Sally 1943-08-23
-Grandgrandma Martha 1923-05-17
-# simple recursion with one anchor and one recursive select
-# the anchor is the first select in the specification
-with recursive
-descendants
-as
-(
-select *
-from folks
-where name = 'Grandpa Bill'
- union
-select folks.*
-from folks, descendants as d
-where d.id=folks.father or d.id=folks.mother
-)
-select * from descendants;
-id name dob father mother
-10 Grandpa Bill 1940-04-05 NULL NULL
-20 Dad 1970-02-02 10 9
-100 Me 2000-01-01 20 30
-98 Sister Amy 2001-06-20 20 30
-# simple recursion with one anchor and one recursive select
-# the anchor is the first select in the specification
-with recursive
-descendants
-as
-(
-select *
-from folks
-where name = 'Grandma Sally'
- union
-select folks.*
-from folks, descendants as d
-where d.id=folks.father or d.id=folks.mother
-)
-select * from descendants;
-id name dob father mother
-7 Grandma Sally 1943-08-23 NULL 6
-30 Mom 1975-03-03 8 7
-25 Uncle Jim 1968-11-18 8 7
-100 Me 2000-01-01 20 30
-98 Sister Amy 2001-06-20 20 30
-67 Cousin Eddie 1992-02-28 25 27
-# simple recursive table used three times in the main query
-with recursive
-ancestors
-as
-(
-select *
-from folks
-where name = 'Me' and dob = '2000-01-01'
- union
-select p.*
-from folks as p, ancestors AS a
-where p.id = a.father OR p.id = a.mother
-)
-select *
-from ancestors t1, ancestors t2
-where exists (select * from ancestors a
-where a.father=t1.id AND a.mother=t2.id);
-id name dob father mother id name dob father mother
-20 Dad 1970-02-02 10 9 30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL 9 Grandma Ann 1941-10-15 NULL NULL
-8 Grandpa Ben 1940-10-21 NULL NULL 7 Grandma Sally 1943-08-23 NULL 6
-# simple recursive table used three times in the main query
-with
-ancestor_couples(husband, h_dob, wife, w_dob)
-as
-(
-with recursive
-ancestors
-as
-(
-select *
-from folks
-where name = 'Me'
- union
-select p.*
-from folks as p, ancestors AS a
-where p.id = a.father OR p.id = a.mother
-)
-select t1.name, t1.dob, t2.name, t2.dob
-from ancestors t1, ancestors t2
-where exists (select * from ancestors a
-where a.father=t1.id AND a.mother=t2.id)
-)
-select * from ancestor_couples;
-husband h_dob wife w_dob
-Dad 1970-02-02 Mom 1975-03-03
-Grandpa Bill 1940-04-05 Grandma Ann 1941-10-15
-Grandpa Ben 1940-10-21 Grandma Sally 1943-08-23
-# simple recursion with two selects in recursive part
-with recursive
-ancestors
-as
-(
-select *
-from folks
-where name = 'Me'
- union
-select p.*
-from folks as p, ancestors as fa
-where p.id = fa.father
-union
-select p.*
-from folks as p, ancestors as ma
-where p.id = ma.mother
-)
-select * from ancestors;
-id name dob father mother
-100 Me 2000-01-01 20 30
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-8 Grandpa Ben 1940-10-21 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-# mutual recursion with renaming
-with recursive
-ancestor_couples(h_id, h_name, h_dob, h_father, h_mother,
-w_id, w_name, w_dob, w_father, w_mother)
-as
-(
-select h.*, w.*
-from folks h, folks w, coupled_ancestors a
-where a.father = h.id AND a.mother = w.id
-union
-select h.*, w.*
-from folks v, folks h, folks w
-where v.name = 'Me' and
-(v.father = h.id AND v.mother= w.id)
-),
-coupled_ancestors (id, name, dob, father, mother)
-as
-(
-select h_id, h_name, h_dob, h_father, h_mother
-from ancestor_couples
-union
-select w_id, w_name, w_dob, w_father, w_mother
-from ancestor_couples
-)
-select h_name, h_dob, w_name, w_dob
-from ancestor_couples;
-h_name h_dob w_name w_dob
-Dad 1970-02-02 Mom 1975-03-03
-Grandpa Bill 1940-04-05 Grandma Ann 1941-10-15
-Grandpa Ben 1940-10-21 Grandma Sally 1943-08-23
-# mutual recursion with union all
-with recursive
-ancestor_couples(h_id, h_name, h_dob, h_father, h_mother,
-w_id, w_name, w_dob, w_father, w_mother)
-as
-(
-select h.*, w.*
-from folks h, folks w, coupled_ancestors a
-where a.father = h.id AND a.mother = w.id
-union
-select h.*, w.*
-from folks v, folks h, folks w
-where v.name = 'Me' and
-(v.father = h.id AND v.mother= w.id)
-),
-coupled_ancestors (id, name, dob, father, mother)
-as
-(
-select h_id, h_name, h_dob, h_father, h_mother
-from ancestor_couples
-union all
-select w_id, w_name, w_dob, w_father, w_mother
-from ancestor_couples
-)
-select h_name, h_dob, w_name, w_dob
-from ancestor_couples;
-h_name h_dob w_name w_dob
-Dad 1970-02-02 Mom 1975-03-03
-Grandpa Bill 1940-04-05 Grandma Ann 1941-10-15
-Grandpa Ben 1940-10-21 Grandma Sally 1943-08-23
-# mutual recursion with renaming
-with recursive
-ancestor_couples(h_id, h_name, h_dob, h_father, h_mother,
-w_id, w_name, w_dob, w_father, w_mother)
-as
-(
-select h.*, w.*
-from folks h, folks w, coupled_ancestors a
-where a.father = h.id AND a.mother = w.id
-union
-select h.*, w.*
-from folks v, folks h, folks w
-where v.name = 'Me' and
-(v.father = h.id AND v.mother= w.id)
-),
-coupled_ancestors (id, name, dob, father, mother)
-as
-(
-select h_id, h_name, h_dob, h_father, h_mother
-from ancestor_couples
-union
-select w_id, w_name, w_dob, w_father, w_mother
-from ancestor_couples
-)
-select h_name, h_dob, w_name, w_dob
-from ancestor_couples;
-h_name h_dob w_name w_dob
-Dad 1970-02-02 Mom 1975-03-03
-Grandpa Bill 1940-04-05 Grandma Ann 1941-10-15
-Grandpa Ben 1940-10-21 Grandma Sally 1943-08-23
-# mutual recursion with union all
-with recursive
-ancestor_couples(h_id, h_name, h_dob, h_father, h_mother,
-w_id, w_name, w_dob, w_father, w_mother)
-as
-(
-select h.*, w.*
-from folks h, folks w, coupled_ancestors a
-where a.father = h.id AND a.mother = w.id
-),
-coupled_ancestors (id, name, dob, father, mother)
-as
-(
-select *
-from folks
-where name = 'Me'
- union all
-select h_id, h_name, h_dob, h_father, h_mother
-from ancestor_couples
-union all
-select w_id, w_name, w_dob, w_father, w_mother
-from ancestor_couples
-)
-select h_name, h_dob, w_name, w_dob
-from ancestor_couples;
-h_name h_dob w_name w_dob
-Dad 1970-02-02 Mom 1975-03-03
-Grandpa Bill 1940-04-05 Grandma Ann 1941-10-15
-Grandpa Ben 1940-10-21 Grandma Sally 1943-08-23
-# mutual recursion with one select in the first definition
-with recursive
-ancestor_couple_ids(h_id, w_id)
-as
-(
-select a.father, a.mother
-from coupled_ancestors a
-where a.father is not null and a.mother is not null
-),
-coupled_ancestors (id, name, dob, father, mother)
-as
-(
-select *
-from folks
-where name = 'Me'
- union all
-select p.*
-from folks p, ancestor_couple_ids fa
-where p.id = fa.h_id
-union all
-select p.*
-from folks p, ancestor_couple_ids ma
-where p.id = ma.w_id
-)
-select *
-from ancestor_couple_ids;
-h_id w_id
-20 30
-10 9
-8 7
-# join of a mutually recursive table with base tables
-with recursive
-ancestor_couple_ids(h_id, w_id)
-as
-(
-select a.father, a.mother
-from coupled_ancestors a
-where a.father is not null and a.mother is not null
-),
-coupled_ancestors (id, name, dob, father, mother)
-as
-(
-select *
-from folks
-where name = 'Me'
- union all
-select p.*
-from folks p, ancestor_couple_ids fa
-where p.id = fa.h_id
-union all
-select p.*
-from folks p, ancestor_couple_ids ma
-where p.id = ma.w_id
-)
-select h.name, h.dob, w.name, w.dob
-from ancestor_couple_ids c, folks h, folks w
-where c.h_id = h.id and c.w_id= w.id;
-name dob name dob
-Dad 1970-02-02 Mom 1975-03-03
-Grandpa Bill 1940-04-05 Grandma Ann 1941-10-15
-Grandpa Ben 1940-10-21 Grandma Sally 1943-08-23
-# join of two mutually recursive tables
-with recursive
-ancestor_couple_ids(h_id, w_id)
-as
-(
-select a.father, a.mother
-from coupled_ancestors a
-where a.father is not null and a.mother is not null
-),
-coupled_ancestors (id, name, dob, father, mother)
-as
-(
-select *
-from folks
-where name = 'Me'
- union all
-select p.*
-from folks p, ancestor_couple_ids fa
-where p.id = fa.h_id
-union all
-select p.*
-from folks p, ancestor_couple_ids ma
-where p.id = ma.w_id
-)
-select h.name, h.dob, w.name, w.dob
-from ancestor_couple_ids c, coupled_ancestors h, coupled_ancestors w
-where c.h_id = h.id and c.w_id= w.id;
-name dob name dob
-Dad 1970-02-02 Mom 1975-03-03
-Grandpa Bill 1940-04-05 Grandma Ann 1941-10-15
-Grandpa Ben 1940-10-21 Grandma Sally 1943-08-23
-explain extended
-with recursive
-ancestor_couple_ids(h_id, w_id)
-as
-(
-select a.father, a.mother
-from coupled_ancestors a
-where a.father is not null and a.mother is not null
-),
-coupled_ancestors (id, name, dob, father, mother)
-as
-(
-select *
-from folks
-where name = 'Me'
- union all
-select p.*
-from folks p, ancestor_couple_ids fa
-where p.id = fa.h_id
-union all
-select p.*
-from folks p, ancestor_couple_ids ma
-where p.id = ma.w_id
-)
-select h.name, h.dob, w.name, w.dob
-from ancestor_couple_ids c, coupled_ancestors h, coupled_ancestors w
-where c.h_id = h.id and c.w_id= w.id;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 100.00 Using where
-1 PRIMARY <derived3> ref key0 key0 5 c.h_id 2 100.00
-1 PRIMARY <derived3> ref key0 key0 5 c.w_id 2 100.00
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 12 100.00 Using where
-3 DERIVED folks ALL NULL NULL NULL NULL 12 100.00 Using where
-4 RECURSIVE UNION <derived2> ALL NULL NULL NULL NULL 2 100.00
-4 RECURSIVE UNION p ALL NULL NULL NULL NULL 12 100.00 Using where; Using join buffer (flat, BNL join)
-5 RECURSIVE UNION <derived2> ALL NULL NULL NULL NULL 2 100.00
-5 RECURSIVE UNION p ALL NULL NULL NULL NULL 12 100.00 Using where; Using join buffer (flat, BNL join)
-NULL UNION RESULT <union3,4,5> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 with recursive ancestor_couple_ids as (/* select#2 */ select `a`.`father` AS `h_id`,`a`.`mother` AS `w_id` from `coupled_ancestors` `a` where `a`.`father` is not null and `a`.`mother` is not null), coupled_ancestors as (/* select#3 */ select `test`.`folks`.`id` AS `id`,`test`.`folks`.`name` AS `name`,`test`.`folks`.`dob` AS `dob`,`test`.`folks`.`father` AS `father`,`test`.`folks`.`mother` AS `mother` from `test`.`folks` where `test`.`folks`.`name` = 'Me' union all /* select#4 */ select `test`.`p`.`id` AS `id`,`test`.`p`.`name` AS `name`,`test`.`p`.`dob` AS `dob`,`test`.`p`.`father` AS `father`,`test`.`p`.`mother` AS `mother` from `test`.`folks` `p` join `ancestor_couple_ids` `fa` where `test`.`p`.`id` = `fa`.`h_id` union all /* select#5 */ select `test`.`p`.`id` AS `id`,`test`.`p`.`name` AS `name`,`test`.`p`.`dob` AS `dob`,`test`.`p`.`father` AS `father`,`test`.`p`.`mother` AS `mother` from `test`.`folks` `p` join `ancestor_couple_ids` `ma` where `test`.`p`.`id` = `ma`.`w_id`)/* select#1 */ select `h`.`name` AS `name`,`h`.`dob` AS `dob`,`w`.`name` AS `name`,`w`.`dob` AS `dob` from `ancestor_couple_ids` `c` join `coupled_ancestors` `h` join `coupled_ancestors` `w` where `h`.`id` = `c`.`h_id` and `w`.`id` = `c`.`w_id`
-# simple mutual recursion
-with recursive
-ancestor_couple_ids(h_id, w_id)
-as
-(
-select a.father, a.mother
-from coupled_ancestors a
-),
-coupled_ancestors (id, name, dob, father, mother)
-as
-(
-select *
-from folks
-where name = 'Me'
- union all
-select p.*
-from folks p, ancestor_couple_ids fa
-where p.id = fa.h_id
-union all
-select p.*
-from folks p, ancestor_couple_ids ma
-where p.id = ma.w_id
-)
-select *
-from ancestor_couple_ids;
-h_id w_id
-20 30
-10 9
-8 7
-NULL NULL
-NULL NULL
-NULL NULL
-NULL 6
-NULL NULL
-# join of two mutually recursive tables
-with recursive
-ancestor_couple_ids(h_id, w_id)
-as
-(
-select a.father, a.mother
-from coupled_ancestors a
-),
-coupled_ancestors (id, name, dob, father, mother)
-as
-(
-select *
-from folks
-where name = 'Me'
- union all
-select p.*
-from folks p, ancestor_couple_ids fa
-where p.id = fa.h_id
-union all
-select p.*
-from folks p, ancestor_couple_ids ma
-where p.id = ma.w_id
-)
-select h.name, h.dob, w.name, w.dob
-from ancestor_couple_ids c, coupled_ancestors h, coupled_ancestors w
-where c.h_id = h.id and c.w_id= w.id;
-name dob name dob
-Dad 1970-02-02 Mom 1975-03-03
-Grandpa Bill 1940-04-05 Grandma Ann 1941-10-15
-Grandpa Ben 1940-10-21 Grandma Sally 1943-08-23
-# execution of prepared query using a recursive table
-prepare stmt1 from "
-with recursive
-ancestors
-as
-(
- select *
- from folks
- where name = 'Me' and dob = '2000-01-01'
- union
- select p.id, p.name, p.dob, p.father, p.mother
- from folks as p, ancestors AS a
- where p.id = a.father or p.id = a.mother
-)
-select * from ancestors;
-";
-execute stmt1;
-id name dob father mother
-100 Me 2000-01-01 20 30
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-execute stmt1;
-id name dob father mother
-100 Me 2000-01-01 20 30
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-deallocate prepare stmt1;
-# view using a recursive table
-create view v1 as
-with recursive
-ancestors
-as
-(
-select *
-from folks
-where name = 'Me' and dob = '2000-01-01'
- union
-select p.id, p.name, p.dob, p.father, p.mother
-from folks as p, ancestors AS a
-where p.id = a.father or p.id = a.mother
-)
-select * from ancestors;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS with recursive ancestors as (select `folks`.`id` AS `id`,`folks`.`name` AS `name`,`folks`.`dob` AS `dob`,`folks`.`father` AS `father`,`folks`.`mother` AS `mother` from `folks` where `folks`.`name` = 'Me' and `folks`.`dob` = '2000-01-01' union select `p`.`id` AS `id`,`p`.`name` AS `name`,`p`.`dob` AS `dob`,`p`.`father` AS `father`,`p`.`mother` AS `mother` from (`folks` `p` join `ancestors` `a`) where `p`.`id` = `a`.`father` or `p`.`id` = `a`.`mother`)select `ancestors`.`id` AS `id`,`ancestors`.`name` AS `name`,`ancestors`.`dob` AS `dob`,`ancestors`.`father` AS `father`,`ancestors`.`mother` AS `mother` from `ancestors` latin1 latin1_swedish_ci
-select * from v1;
-id name dob father mother
-100 Me 2000-01-01 20 30
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-create view v2 as
-with recursive
-ancestors
-as
-(
-select *
-from folks
-where name = 'Me'
- union
-select p.*
-from folks as p, ancestors as fa
-where p.id = fa.father
-union
-select p.*
-from folks as p, ancestors as ma
-where p.id = ma.mother
-)
-select * from ancestors;
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS with recursive ancestors as (select `folks`.`id` AS `id`,`folks`.`name` AS `name`,`folks`.`dob` AS `dob`,`folks`.`father` AS `father`,`folks`.`mother` AS `mother` from `folks` where `folks`.`name` = 'Me' union select `p`.`id` AS `id`,`p`.`name` AS `name`,`p`.`dob` AS `dob`,`p`.`father` AS `father`,`p`.`mother` AS `mother` from (`folks` `p` join `ancestors` `fa`) where `p`.`id` = `fa`.`father` union select `p`.`id` AS `id`,`p`.`name` AS `name`,`p`.`dob` AS `dob`,`p`.`father` AS `father`,`p`.`mother` AS `mother` from (`folks` `p` join `ancestors` `ma`) where `p`.`id` = `ma`.`mother`)select `ancestors`.`id` AS `id`,`ancestors`.`name` AS `name`,`ancestors`.`dob` AS `dob`,`ancestors`.`father` AS `father`,`ancestors`.`mother` AS `mother` from `ancestors` latin1 latin1_swedish_ci
-select * from v2;
-id name dob father mother
-100 Me 2000-01-01 20 30
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-8 Grandpa Ben 1940-10-21 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-drop view v1,v2;
-explain extended
-with recursive
-ancestors
-as
-(
-select *
-from folks
-where name = 'Me' and dob = '2000-01-01'
- union
-select p.id, p.name, p.dob, p.father, p.mother
-from folks as p, ancestors AS a
-where p.id = a.father or p.id = a.mother
-)
-select * from ancestors;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 12 100.00
-2 DERIVED folks ALL NULL NULL NULL NULL 12 100.00 Using where
-3 RECURSIVE UNION p ALL NULL NULL NULL NULL 12 100.00
-3 RECURSIVE UNION <derived2> ALL NULL NULL NULL NULL 12 100.00 Using where; Using join buffer (flat, BNL join)
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 with recursive ancestors as (/* select#2 */ select `test`.`folks`.`id` AS `id`,`test`.`folks`.`name` AS `name`,`test`.`folks`.`dob` AS `dob`,`test`.`folks`.`father` AS `father`,`test`.`folks`.`mother` AS `mother` from `test`.`folks` where `test`.`folks`.`name` = 'Me' and `test`.`folks`.`dob` = DATE'2000-01-01' union /* select#3 */ select `p`.`id` AS `id`,`p`.`name` AS `name`,`p`.`dob` AS `dob`,`p`.`father` AS `father`,`p`.`mother` AS `mother` from `test`.`folks` `p` join `ancestors` `a` where `a`.`father` = `p`.`id` or `a`.`mother` = `p`.`id`)/* select#1 */ select `ancestors`.`id` AS `id`,`ancestors`.`name` AS `name`,`ancestors`.`dob` AS `dob`,`ancestors`.`father` AS `father`,`ancestors`.`mother` AS `mother` from `ancestors`
-# recursive spec with two anchor selects and two recursive ones
-with recursive
-ancestor_ids (id)
-as
-(
-select father from folks where name = 'Me'
- union
-select mother from folks where name = 'Me'
- union
-select father from folks, ancestor_ids a where folks.id = a.id
-union
-select mother from folks, ancestor_ids a where folks.id = a.id
-),
-ancestors
-as
-(
-select p.* from folks as p, ancestor_ids as a
-where p.id = a.id
-)
-select * from ancestors;
-id name dob father mother
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-# recursive spec using union all
-with recursive
-ancestors
-as
-(
-select *
-from folks
-where name = 'Me'
- union all
-select p.*
-from folks as p, ancestors as fa
-where p.id = fa.father
-union all
-select p.*
-from folks as p, ancestors as ma
-where p.id = ma.mother
-)
-select * from ancestors;
-id name dob father mother
-100 Me 2000-01-01 20 30
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-8 Grandpa Ben 1940-10-21 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-with recursive
-ancestor_ids (id, generation)
-as
-(
-select father, 1 from folks where name = 'Me' and father is not null
-union all
-select mother, 1 from folks where name = 'Me' and mother is not null
-union all
-select father, fa.generation+1 from folks, ancestor_ids fa
-where folks.id = fa.id and (father not in (select id from ancestor_ids))
-union all
-select mother, ma.generation+1 from folks, ancestor_ids ma
-where folks.id = ma.id and (mother not in (select id from ancestor_ids))
-)
-select generation, name from ancestor_ids a, folks
-where a.id = folks.id;
-ERROR HY000: Restrictions imposed on recursive definitions are violated for table 'ancestor_ids'
-set standard_compliant_cte=0;
-with recursive
-ancestor_ids (id, generation)
-as
-(
-select father from folks where name = 'Me' and father is not null
-union all
-select mother from folks where name = 'Me' and mother is not null
-union all
-select father, fa.generation+1 from folks, ancestor_ids fa
-where folks.id = fa.id and (father not in (select id from ancestor_ids))
-union all
-select mother, ma.generation+1 from folks, ancestor_ids ma
-where folks.id = ma.id and (mother not in (select id from ancestor_ids))
-)
-select generation, name from ancestor_ids a, folks
-where a.id = folks.id;
-ERROR HY000: WITH column list and SELECT field list have different column counts
-with recursive
-ancestor_ids (id, generation)
-as
-(
-select father, 1 from folks where name = 'Me' and father is not null
-union all
-select mother, 1 from folks where name = 'Me' and mother is not null
-union all
-select father, fa.generation+1 from folks, ancestor_ids fa
-where folks.id = fa.id and father is not null and
-(father not in (select id from ancestor_ids))
-union all
-select mother, ma.generation+1 from folks, ancestor_ids ma
-where folks.id = ma.id and mother is not null and
-(mother not in (select id from ancestor_ids))
-)
-select generation, name from ancestor_ids a, folks
-where a.id = folks.id;
-generation name
-1 Dad
-1 Mom
-2 Grandpa Bill
-2 Grandma Ann
-2 Grandma Sally
-2 Grandpa Ben
-3 Grandgrandma Martha
-set standard_compliant_cte=1;
-with recursive
-coupled_ancestor_ids (id)
-as
-(
-select father from folks where name = 'Me' and father is not null
-union
-select mother from folks where name = 'Me' and mother is not null
-union
-select n.father
-from folks, coupled_ancestor_ids fa, coupled_ancestor_ids ma, folks n
-where folks.father = fa.id and folks.mother = ma.id and
-(fa.id = n.id or ma.id = n.id) and
-n.father is not null and n.mother is not null
-union
-select n.mother
-from folks, coupled_ancestor_ids fa, coupled_ancestor_ids ma, folks n
-where folks.father = fa.id and folks.mother = ma.id and
-(fa.id = n.id or ma.id = n.id) and
-n.father is not null and n.mother is not null
-)
-select p.* from coupled_ancestor_ids a, folks p
-where a.id = p.id;
-ERROR HY000: Restrictions imposed on recursive definitions are violated for table 'coupled_ancestor_ids'
-set statement standard_compliant_cte=0 for
-with recursive
-coupled_ancestor_ids (id)
-as
-(
-select father from folks where name = 'Me' and father is not null
-union
-select mother from folks where name = 'Me' and mother is not null
-union
-select n.father
-from folks, coupled_ancestor_ids fa, coupled_ancestor_ids ma, folks n
-where folks.father = fa.id and folks.mother = ma.id and
-(fa.id = n.id or ma.id = n.id) and
-n.father is not null and n.mother is not null
-union
-select n.mother
-from folks, coupled_ancestor_ids fa, coupled_ancestor_ids ma, folks n
-where folks.father = fa.id and folks.mother = ma.id and
-(fa.id = n.id or ma.id = n.id) and
-n.father is not null and n.mother is not null
-)
-select p.* from coupled_ancestor_ids a, folks p
-where a.id = p.id;
-id name dob father mother
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-with recursive
-ancestor_ids (id)
-as
-(
-select father from folks where name = 'Me'
- union
-select mother from folks where name = 'Me'
- union
-select father from folks left join ancestor_ids a on folks.id = a.id
-union
-select mother from folks left join ancestor_ids a on folks.id = a.id
-),
-ancestors
-as
-(
-select p.* from folks as p, ancestor_ids as a
-where p.id = a.id
-)
-select * from ancestors;
-ERROR HY000: Restrictions imposed on recursive definitions are violated for table 'ancestor_ids'
-set statement standard_compliant_cte=0 for
-with recursive
-ancestor_ids (id)
-as
-(
-select father from folks where name = 'Me'
- union
-select mother from folks where name = 'Me'
- union
-select father from folks left join ancestor_ids a on folks.id = a.id
-union
-select mother from folks left join ancestor_ids a on folks.id = a.id
-),
-ancestors
-as
-(
-select p.* from folks as p, ancestor_ids as a
-where p.id = a.id
-)
-select * from ancestors;
-id name dob father mother
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-25 Uncle Jim 1968-11-18 8 7
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-27 Auntie Melinda 1971-03-29 NULL NULL
-with recursive
-ancestor_ids (id, generation)
-as
-(
-select father, 1 from folks where name = 'Me'
- union
-select mother, 1 from folks where name = 'Me'
- union
-select father, a.generation+1 from folks, ancestor_ids a
-where folks.id = a.id
-union
-select mother, a.generation+1 from folks, ancestor_ids a
-where folks.id = a.id
-),
-ancestors
-as
-(
-select generation, name from folks as p, ancestor_ids as a
-where p.id = a.id
-)
-select * from ancestors;
-generation name
-1 Dad
-1 Mom
-2 Grandpa Bill
-2 Grandma Ann
-2 Grandma Sally
-2 Grandpa Ben
-3 Grandgrandma Martha
-with recursive
-ancestor_ids (id, generation)
-as
-(
-select father, 1 from folks where name = 'Me'
- union
-select mother, 1 from folks where name = 'Me'
- union
-select max(father), max(a.generation)+1 from folks, ancestor_ids a
-where folks.id = a.id
-group by a.generation
-union
-select max(mother), max(a.generation)+1 from folks, ancestor_ids a
-where folks.id = a.id
-group by a.generation
-),
-ancestors
-as
-(
-select generation, name from folks as p, ancestor_ids as a
-where p.id = a.id
-)
-select * from ancestors;
-ERROR HY000: Restrictions imposed on recursive definitions are violated for table 'ancestor_ids'
-set statement standard_compliant_cte=0 for
-with recursive
-ancestor_ids (id, generation)
-as
-(
-select father, 1 from folks where name = 'Me'
- union
-select mother, 1 from folks where name = 'Me'
- union
-select max(father), a.generation+1 from folks, ancestor_ids a
-where folks.id = a.id
-group by a.generation
-union
-select max(mother), a.generation+1 from folks, ancestor_ids a
-where folks.id = a.id
-group by a.generation
-),
-ancestors
-as
-(
-select generation, name from folks as p, ancestor_ids as a
-where p.id = a.id
-)
-select * from ancestors;
-generation name
-1 Dad
-1 Mom
-2 Grandpa Bill
-2 Grandma Ann
-set statement max_recursive_iterations=1 for
-with recursive
-ancestor_ids (id, generation)
-as
-(
-select father, 1 from folks where name = 'Me'
- union
-select mother, 1 from folks where name = 'Me'
- union
-select father, a.generation+1 from folks, ancestor_ids a
-where folks.id = a.id
-union
-select mother, a.generation+1 from folks, ancestor_ids a
-where folks.id = a.id
-),
-ancestors
-as
-(
-select generation, name from folks as p, ancestor_ids as a
-where p.id = a.id
-)
-select * from ancestors;
-generation name
-1 Dad
-1 Mom
-2 Grandpa Bill
-2 Grandma Ann
-2 Grandma Sally
-2 Grandpa Ben
-# query with recursive tables using key access
-alter table folks add primary key (id);
-explain
-with recursive
-ancestors
-as
-(
-select *
-from folks
-where name = 'Me'
- union
-select p.*
-from folks as p, ancestors as fa
-where p.id = fa.father
-union
-select p.*
-from folks as p, ancestors as ma
-where p.id = ma.mother
-)
-select * from ancestors;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 12
-2 DERIVED folks ALL NULL NULL NULL NULL 12 Using where
-3 RECURSIVE UNION p ALL PRIMARY NULL NULL NULL 12
-3 RECURSIVE UNION <derived2> ref key0 key0 5 test.p.id 2
-4 RECURSIVE UNION p ALL PRIMARY NULL NULL NULL 12
-4 RECURSIVE UNION <derived2> ref key0 key0 5 test.p.id 2
-NULL UNION RESULT <union2,3,4> ALL NULL NULL NULL NULL NULL
-with recursive
-ancestors
-as
-(
-select *
-from folks
-where name = 'Me'
- union
-select p.*
-from folks as p, ancestors as fa
-where p.id = fa.father
-union
-select p.*
-from folks as p, ancestors as ma
-where p.id = ma.mother
-)
-select * from ancestors;
-id name dob father mother
-100 Me 2000-01-01 20 30
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-8 Grandpa Ben 1940-10-21 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-#
-# EXPLAIN FORMAT=JSON on a query where one recursive CTE uses another:
-#
-explain
-with recursive
-prev_gen
-as
-(
-select folks.*
-from folks, prev_gen
-where folks.id=prev_gen.father or folks.id=prev_gen.mother
-union
-select *
-from folks
-where name='Me'
-),
-ancestors
-as
-(
-select *
-from folks
-where name='Me'
- union
-select *
-from ancestors
-union
-select *
-from prev_gen
-)
-select ancestors.name, ancestors.dob from ancestors;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived4> ALL NULL NULL NULL NULL 24
-4 DERIVED folks ALL NULL NULL NULL NULL 12 Using where
-6 RECURSIVE UNION <derived3> ALL NULL NULL NULL NULL 12
-3 DERIVED folks ALL NULL NULL NULL NULL 12 Using where
-2 RECURSIVE UNION folks ALL PRIMARY NULL NULL NULL 12
-2 RECURSIVE UNION <derived3> ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-NULL UNION RESULT <union3,2> ALL NULL NULL NULL NULL NULL
-5 RECURSIVE UNION <derived4> ALL NULL NULL NULL NULL 24
-NULL UNION RESULT <union4,6,5> ALL NULL NULL NULL NULL NULL
-explain FORMAT=JSON
-with recursive
-prev_gen
-as
-(
-select folks.*
-from folks, prev_gen
-where folks.id=prev_gen.father or folks.id=prev_gen.mother
-union
-select *
-from folks
-where name='Me'
-),
-ancestors
-as
-(
-select *
-from folks
-where name='Me2'
- union
-select *
-from ancestors where id < 234
-union
-select *
-from prev_gen where id < 345
-)
-select ancestors.name, ancestors.dob from ancestors;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 24,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "recursive_union": {
- "table_name": "<union4,6,5>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 4,
- "table": {
- "table_name": "folks",
- "access_type": "ALL",
- "rows": 12,
- "filtered": 100,
- "attached_condition": "folks.`name` = 'Me2'"
- }
- }
- },
- {
- "query_block": {
- "select_id": 6,
- "operation": "UNION",
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 12,
- "filtered": 100,
- "attached_condition": "prev_gen.`id` < 345",
- "materialized": {
- "query_block": {
- "recursive_union": {
- "table_name": "<union3,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "folks",
- "access_type": "ALL",
- "rows": 12,
- "filtered": 100,
- "attached_condition": "folks.`name` = 'Me'"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "table_name": "folks",
- "access_type": "ALL",
- "possible_keys": ["PRIMARY"],
- "rows": 12,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 12,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "prev_gen.father = folks.`id` or prev_gen.mother = folks.`id`"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 5,
- "operation": "UNION",
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 24,
- "filtered": 100,
- "attached_condition": "ancestors.`id` < 234"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-#
-explain format=json
-with recursive
-ancestor_couples(h_id, h_name, h_dob, h_father, h_mother,
-w_id, w_name, w_dob, w_father, w_mother)
-as
-(
-select h.*, w.*
-from folks h, folks w, coupled_ancestors a
-where a.father = h.id AND a.mother = w.id
-union
-select h.*, w.*
-from folks v, folks h, folks w
-where v.name = 'Me' and
-(v.father = h.id AND v.mother= w.id)
-),
-coupled_ancestors (id, name, dob, father, mother)
-as
-(
-select h_id, h_name, h_dob, h_father, h_mother
-from ancestor_couples
-union all
-select w_id, w_name, w_dob, w_father, w_mother
-from ancestor_couples
-)
-select h_name, h_dob, w_name, w_dob
-from ancestor_couples;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 12,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "recursive_union": {
- "table_name": "<union3,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "v",
- "access_type": "ALL",
- "rows": 12,
- "filtered": 100,
- "attached_condition": "v.`name` = 'Me' and v.father is not null and v.mother is not null"
- },
- "table": {
- "table_name": "h",
- "access_type": "eq_ref",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["id"],
- "ref": ["test.v.father"],
- "rows": 1,
- "filtered": 100
- },
- "table": {
- "table_name": "w",
- "access_type": "eq_ref",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["id"],
- "ref": ["test.v.mother"],
- "rows": 1,
- "filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "a.father is not null and a.mother is not null"
- },
- "table": {
- "table_name": "h",
- "access_type": "eq_ref",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["id"],
- "ref": ["a.father"],
- "rows": 1,
- "filtered": 100
- },
- "table": {
- "table_name": "w",
- "access_type": "eq_ref",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["id"],
- "ref": ["a.mother"],
- "rows": 1,
- "filtered": 100
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-create table my_ancestors
-with recursive
-ancestor_ids (id)
-as
-(
-select father from folks where name = 'Me'
- union
-select mother from folks where name = 'Me'
- union
-select father from folks, ancestor_ids a where folks.id = a.id
-union
-select mother from folks, ancestor_ids a where folks.id = a.id
-)
-select p.* from folks as p, ancestor_ids as a where p.id = a.id;
-select * from my_ancestors;
-id name dob father mother
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-delete from my_ancestors;
-insert into my_ancestors
-with recursive
-ancestor_ids (id)
-as
-(
-select father from folks where name = 'Me'
- union
-select mother from folks where name = 'Me'
- union
-select father from folks, ancestor_ids a where folks.id = a.id
-union
-select mother from folks, ancestor_ids a where folks.id = a.id
-)
-select p.* from folks as p, ancestor_ids as a where p.id = a.id;
-select * from my_ancestors;
-id name dob father mother
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-drop table my_ancestors;
-#
-# MDEV-10883: execution of prepared statement from SELECT
-# with recursive CTE that renames columns
-#
-prepare stmt from"
-with recursive
-ancestor_ids (id)
-as
-(
- select father from folks where name = 'Me'
- union
- select mother from folks where name = 'Me'
- union
- select father from folks, ancestor_ids a where folks.id = a.id
- union
- select mother from folks, ancestor_ids a where folks.id = a.id
-)
-select p.* from folks as p, ancestor_ids as a where p.id = a.id;
-";
-execute stmt;
-id name dob father mother
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-deallocate prepare stmt;
-#
-# MDEV-10881: execution of prepared statement from
-# CREATE ... SELECT, INSERT ... SELECT
-#
-prepare stmt from"
-create table my_ancestors
-with recursive
-ancestor_ids (id)
-as
-(
- select father from folks where name = 'Me'
- union
- select mother from folks where name = 'Me'
- union
- select father from folks, ancestor_ids a where folks.id = a.id
- union
- select mother from folks, ancestor_ids a where folks.id = a.id
-)
-select p.* from folks as p, ancestor_ids as a where p.id = a.id;
-";
-execute stmt;
-deallocate prepare stmt;
-select * from my_ancestors;
-id name dob father mother
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-delete from my_ancestors;
-prepare stmt from"
-insert into my_ancestors
-with recursive
-ancestor_ids (id)
-as
-(
- select father from folks where name = 'Me'
- union
- select mother from folks where name = 'Me'
- union
- select father from folks, ancestor_ids a where folks.id = a.id
- union
- select mother from folks, ancestor_ids a where folks.id = a.id
-)
-select p.* from folks as p, ancestor_ids as a where p.id = a.id;
-";
-execute stmt;
-deallocate prepare stmt;
-select * from my_ancestors;
-id name dob father mother
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-drop table my_ancestors;
-#
-# MDEV-10933: WITH clause together with SELECT in parenthesis
-# CREATE SELECT
-#
-create table my_ancestors
-(
-with recursive
-ancestor_ids (id)
-as
-(
-select father from folks where name = 'Me'
- union
-select mother from folks where name = 'Me'
- union
-select father from folks, ancestor_ids a where folks.id = a.id
-union
-select mother from folks, ancestor_ids a where folks.id = a.id
-)
-select p.* from folks as p, ancestor_ids as a where p.id = a.id
-);
-select * from my_ancestors;
-id name dob father mother
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-drop table my_ancestors;
-drop table folks;
-#
-# MDEV-10372: [bb-10.2-mdev9864 tree] EXPLAIN with recursive CTE enters endless recursion
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-explain format=json
-with recursive t as (select a from t1 union select a+10 from t where a < 1000)
-select * from t;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "recursive_union": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "t.a < 1000"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop table t1;
-#
-# MDEV-10737: recursive union with several anchors at the end
-#
-WITH RECURSIVE cte(n) AS
-( SELECT n+1 FROM cte WHERE n < 5 UNION SELECT 1 UNION SELECT 1 )
-SELECT * FROM cte;
-n
-1
-2
-3
-4
-5
-#
-# MDEV-10736: recursive definition with anchor over a table with blob
-#
-CREATE TABLE t1 (f VARCHAR(1024));
-WITH RECURSIVE cte(f) AS
-(SELECT t1.f FROM t1 UNION ALL SELECT cte.f FROM cte)
-SELECT * FROM cte as t;
-f
-DROP TABLE t1;
-#
-# MDEV-10899: mergeable derived in the spec of recursive CTE
-#
-create table t1 (a int);
-insert into t1 values
-(0), (1), (2), (3), (4);
-create table t2 (a int);
-insert into t2 values
-(1), (2), (3), (4), (5);
-with recursive
-t1 as
-(
-select x.a from (select a from t2 where t2.a=3) x
-union
-select t2.a from t1,t2 where t1.a+1=t2.a
-)
-select * from t1;
-a
-3
-4
-5
-explain
-with recursive
-t1 as
-(
-select x.a from (select a from t2 where t2.a=3) x
-union
-select t2.a from t1,t2 where t1.a+1=t2.a
-)
-select * from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 5
-2 DERIVED t2 ALL NULL NULL NULL NULL 5 Using where
-4 RECURSIVE UNION <derived2> ALL NULL NULL NULL NULL 5
-4 RECURSIVE UNION t2 ALL NULL NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-NULL UNION RESULT <union2,4> ALL NULL NULL NULL NULL NULL
-drop table t1,t2;
-#
-# MDEV-11278: non-mergeable view in the spec of recursive CTE
-#
-create table t1 (a int);
-insert into t1 values
-(0), (1), (2), (3), (4);
-create table t2 (a int);
-insert into t2 values
-(1), (2), (3), (4), (5);
-create view v1 as
-select a from t2 where a < 3
-union
-select a from t2 where a > 4;
-with recursive
-t1 as
-(
-select a from v1 where a=1
-union
-select v1.a from t1,v1 where t1.a+1=v1.a
-)
-select * from t1;
-a
-1
-2
-drop view v1;
-drop table t1,t2;
-#
-# MDEV-11259: recursive CTE with concatenation operation
-#
-DROP TABLE IF EXISTS edges;
-Warnings:
-Note 1051 Unknown table 'test.edges'
-CREATE TABLE edges(
-a int(10) unsigned NOT NULL,
-b int(10) unsigned NOT NULL,
-PRIMARY KEY (a,b),
-KEY b(b)
-);
-INSERT INTO edges
-VALUES (1,3),(2,1),(2,4),(3,4),(3,5),(3,6),(4,7),(5,1),(5,6),(6,1);
-DROP TABLE IF EXISTS edges2;
-Warnings:
-Note 1051 Unknown table 'test.edges2'
-CREATE VIEW edges2 (a, b) AS
-SELECT a, b FROM edges UNION ALL SELECT b, a FROM edges;
-WITH RECURSIVE transitive_closure(a, b, distance, path_string) AS
-( SELECT a, b, 1 AS distance,
-concat(a, '.', b, '.') AS path_string
-FROM edges
-UNION ALL
-SELECT tc.a, e.b, tc.distance + 1,
-concat(tc.path_string, e.b, '.') AS path_string
-FROM edges AS e
-JOIN transitive_closure AS tc
-ON e.a = tc.b
-WHERE tc.path_string NOT LIKE concat('%', e.b, '.%')
-)
-SELECT * FROM transitive_closure
-ORDER BY a, b, distance;
-a b distance path_string
-1 3 1 1.3.
-1 4 2 1.3.4.
-1 5 2 1.3.5.
-1 6 2 1.3.6.
-1 6 3 1.3.5.6.
-1 7 3 1.3.4.7.
-2 1 1 2.1.
-2 3 2 2.1.3.
-2 4 1 2.4.
-2 4 3 2.1.3.4.
-2 5 3 2.1.3.5.
-2 6 3 2.1.3.6.
-2 6 4 2.1.3.5.6.
-2 7 2 2.4.7.
-2 7 4 2.1.3.4.7.
-3 1 2 3.5.1.
-3 1 2 3.6.1.
-3 1 3 3.5.6.1.
-3 4 1 3.4.
-3 5 1 3.5.
-3 6 1 3.6.
-3 6 2 3.5.6.
-3 7 2 3.4.7.
-4 7 1 4.7.
-5 1 1 5.1.
-5 1 2 5.6.1.
-5 3 2 5.1.3.
-5 3 3 5.6.1.3.
-5 4 3 5.1.3.4.
-5 4 4 5.6.1.3.4.
-5 6 1 5.6.
-5 6 3 5.1.3.6.
-5 7 4 5.1.3.4.7.
-5 7 5 5.6.1.3.4.7.
-6 1 1 6.1.
-6 3 2 6.1.3.
-6 4 3 6.1.3.4.
-6 5 3 6.1.3.5.
-6 7 4 6.1.3.4.7.
-WITH RECURSIVE transitive_closure(a, b, distance, path_string) AS
-( SELECT a, b, 1 AS distance,
-concat(a, '.', b, '.') AS path_string
-FROM edges
-WHERE a = 1 -- source
-UNION ALL
-SELECT tc.a, e.b, tc.distance + 1,
-concat(tc.path_string, e.b, '.') AS path_string
-FROM edges AS e
-JOIN transitive_closure AS tc ON e.a = tc.b
-WHERE tc.path_string NOT LIKE concat('%', e.b, '.%')
-)
-SELECT * FROM transitive_closure
-WHERE b = 6 -- destination
-ORDER BY a, b, distance;
-a b distance path_string
-1 6 2 1.3.6.
-1 6 3 1.3.5.6.
-WITH RECURSIVE transitive_closure(a, b, distance, path_string) AS
-( SELECT a, b, 1 AS distance,
-concat(a, '.', b, '.') AS path_string
-FROM edges2
-UNION ALL
-SELECT tc.a, e.b, tc.distance + 1,
-concat(tc.path_string, e.b, '.') AS path_string
-FROM edges2 AS e
-JOIN transitive_closure AS tc ON e.a = tc.b
-WHERE tc.path_string NOT LIKE concat('%', e.b, '.%')
-)
-SELECT * FROM transitive_closure
-ORDER BY a, b, distance;
-a b distance path_string
-1 2 1 1.2.
-1 2 3 1.3.4.2.
-1 2 4 1.5.3.4.2.
-1 2 4 1.6.3.4.2.
-1 2 5 1.5.6.3.4.2.
-1 2 5 1.6.5.3.4.2.
-1 3 1 1.3.
-1 3 2 1.5.3.
-1 3 2 1.6.3.
-1 3 3 1.2.4.3.
-1 3 3 1.5.6.3.
-1 3 3 1.6.5.3.
-1 4 2 1.2.4.
-1 4 2 1.3.4.
-1 4 3 1.5.3.4.
-1 4 3 1.6.3.4.
-1 4 4 1.5.6.3.4.
-1 4 4 1.6.5.3.4.
-1 5 1 1.5.
-1 5 2 1.3.5.
-1 5 2 1.6.5.
-1 5 3 1.3.6.5.
-1 5 3 1.6.3.5.
-1 5 4 1.2.4.3.5.
-1 5 5 1.2.4.3.6.5.
-1 6 1 1.6.
-1 6 2 1.3.6.
-1 6 2 1.5.6.
-1 6 3 1.3.5.6.
-1 6 3 1.5.3.6.
-1 6 4 1.2.4.3.6.
-1 6 5 1.2.4.3.5.6.
-1 7 3 1.2.4.7.
-1 7 3 1.3.4.7.
-1 7 4 1.5.3.4.7.
-1 7 4 1.6.3.4.7.
-1 7 5 1.5.6.3.4.7.
-1 7 5 1.6.5.3.4.7.
-2 1 1 2.1.
-2 1 3 2.4.3.1.
-2 1 4 2.4.3.5.1.
-2 1 4 2.4.3.6.1.
-2 1 5 2.4.3.5.6.1.
-2 1 5 2.4.3.6.5.1.
-2 3 2 2.1.3.
-2 3 2 2.4.3.
-2 3 3 2.1.5.3.
-2 3 3 2.1.6.3.
-2 3 4 2.1.5.6.3.
-2 3 4 2.1.6.5.3.
-2 4 1 2.4.
-2 4 3 2.1.3.4.
-2 4 4 2.1.5.3.4.
-2 4 4 2.1.6.3.4.
-2 4 5 2.1.5.6.3.4.
-2 4 5 2.1.6.5.3.4.
-2 5 2 2.1.5.
-2 5 3 2.1.3.5.
-2 5 3 2.1.6.5.
-2 5 3 2.4.3.5.
-2 5 4 2.1.3.6.5.
-2 5 4 2.1.6.3.5.
-2 5 4 2.4.3.1.5.
-2 5 4 2.4.3.6.5.
-2 5 5 2.4.3.1.6.5.
-2 5 5 2.4.3.6.1.5.
-2 6 2 2.1.6.
-2 6 3 2.1.3.6.
-2 6 3 2.1.5.6.
-2 6 3 2.4.3.6.
-2 6 4 2.1.3.5.6.
-2 6 4 2.1.5.3.6.
-2 6 4 2.4.3.1.6.
-2 6 4 2.4.3.5.6.
-2 6 5 2.4.3.1.5.6.
-2 6 5 2.4.3.5.1.6.
-2 7 2 2.4.7.
-2 7 4 2.1.3.4.7.
-2 7 5 2.1.5.3.4.7.
-2 7 5 2.1.6.3.4.7.
-2 7 6 2.1.5.6.3.4.7.
-2 7 6 2.1.6.5.3.4.7.
-3 1 1 3.1.
-3 1 2 3.5.1.
-3 1 2 3.6.1.
-3 1 3 3.4.2.1.
-3 1 3 3.5.6.1.
-3 1 3 3.6.5.1.
-3 2 2 3.1.2.
-3 2 2 3.4.2.
-3 2 3 3.5.1.2.
-3 2 3 3.6.1.2.
-3 2 4 3.5.6.1.2.
-3 2 4 3.6.5.1.2.
-3 4 1 3.4.
-3 4 3 3.1.2.4.
-3 4 4 3.5.1.2.4.
-3 4 4 3.6.1.2.4.
-3 4 5 3.5.6.1.2.4.
-3 4 5 3.6.5.1.2.4.
-3 5 1 3.5.
-3 5 2 3.1.5.
-3 5 2 3.6.5.
-3 5 3 3.1.6.5.
-3 5 3 3.6.1.5.
-3 5 4 3.4.2.1.5.
-3 5 5 3.4.2.1.6.5.
-3 6 1 3.6.
-3 6 2 3.1.6.
-3 6 2 3.5.6.
-3 6 3 3.1.5.6.
-3 6 3 3.5.1.6.
-3 6 4 3.4.2.1.6.
-3 6 5 3.4.2.1.5.6.
-3 7 2 3.4.7.
-3 7 4 3.1.2.4.7.
-3 7 5 3.5.1.2.4.7.
-3 7 5 3.6.1.2.4.7.
-3 7 6 3.5.6.1.2.4.7.
-3 7 6 3.6.5.1.2.4.7.
-4 1 2 4.2.1.
-4 1 2 4.3.1.
-4 1 3 4.3.5.1.
-4 1 3 4.3.6.1.
-4 1 4 4.3.5.6.1.
-4 1 4 4.3.6.5.1.
-4 2 1 4.2.
-4 2 3 4.3.1.2.
-4 2 4 4.3.5.1.2.
-4 2 4 4.3.6.1.2.
-4 2 5 4.3.5.6.1.2.
-4 2 5 4.3.6.5.1.2.
-4 3 1 4.3.
-4 3 3 4.2.1.3.
-4 3 4 4.2.1.5.3.
-4 3 4 4.2.1.6.3.
-4 3 5 4.2.1.5.6.3.
-4 3 5 4.2.1.6.5.3.
-4 5 2 4.3.5.
-4 5 3 4.2.1.5.
-4 5 3 4.3.1.5.
-4 5 3 4.3.6.5.
-4 5 4 4.2.1.3.5.
-4 5 4 4.2.1.6.5.
-4 5 4 4.3.1.6.5.
-4 5 4 4.3.6.1.5.
-4 5 5 4.2.1.3.6.5.
-4 5 5 4.2.1.6.3.5.
-4 6 2 4.3.6.
-4 6 3 4.2.1.6.
-4 6 3 4.3.1.6.
-4 6 3 4.3.5.6.
-4 6 4 4.2.1.3.6.
-4 6 4 4.2.1.5.6.
-4 6 4 4.3.1.5.6.
-4 6 4 4.3.5.1.6.
-4 6 5 4.2.1.3.5.6.
-4 6 5 4.2.1.5.3.6.
-4 7 1 4.7.
-5 1 1 5.1.
-5 1 2 5.3.1.
-5 1 2 5.6.1.
-5 1 3 5.3.6.1.
-5 1 3 5.6.3.1.
-5 1 4 5.3.4.2.1.
-5 1 5 5.6.3.4.2.1.
-5 2 2 5.1.2.
-5 2 3 5.3.1.2.
-5 2 3 5.3.4.2.
-5 2 3 5.6.1.2.
-5 2 4 5.1.3.4.2.
-5 2 4 5.3.6.1.2.
-5 2 4 5.6.3.1.2.
-5 2 4 5.6.3.4.2.
-5 2 5 5.1.6.3.4.2.
-5 2 5 5.6.1.3.4.2.
-5 3 1 5.3.
-5 3 2 5.1.3.
-5 3 2 5.6.3.
-5 3 3 5.1.6.3.
-5 3 3 5.6.1.3.
-5 3 4 5.1.2.4.3.
-5 3 5 5.6.1.2.4.3.
-5 4 2 5.3.4.
-5 4 3 5.1.2.4.
-5 4 3 5.1.3.4.
-5 4 3 5.6.3.4.
-5 4 4 5.1.6.3.4.
-5 4 4 5.3.1.2.4.
-5 4 4 5.6.1.2.4.
-5 4 4 5.6.1.3.4.
-5 4 5 5.3.6.1.2.4.
-5 4 5 5.6.3.1.2.4.
-5 6 1 5.6.
-5 6 2 5.1.6.
-5 6 2 5.3.6.
-5 6 3 5.1.3.6.
-5 6 3 5.3.1.6.
-5 6 5 5.1.2.4.3.6.
-5 6 5 5.3.4.2.1.6.
-5 7 3 5.3.4.7.
-5 7 4 5.1.2.4.7.
-5 7 4 5.1.3.4.7.
-5 7 4 5.6.3.4.7.
-5 7 5 5.1.6.3.4.7.
-5 7 5 5.3.1.2.4.7.
-5 7 5 5.6.1.2.4.7.
-5 7 5 5.6.1.3.4.7.
-5 7 6 5.3.6.1.2.4.7.
-5 7 6 5.6.3.1.2.4.7.
-6 1 1 6.1.
-6 1 2 6.3.1.
-6 1 2 6.5.1.
-6 1 3 6.3.5.1.
-6 1 3 6.5.3.1.
-6 1 4 6.3.4.2.1.
-6 1 5 6.5.3.4.2.1.
-6 2 2 6.1.2.
-6 2 3 6.3.1.2.
-6 2 3 6.3.4.2.
-6 2 3 6.5.1.2.
-6 2 4 6.1.3.4.2.
-6 2 4 6.3.5.1.2.
-6 2 4 6.5.3.1.2.
-6 2 4 6.5.3.4.2.
-6 2 5 6.1.5.3.4.2.
-6 2 5 6.5.1.3.4.2.
-6 3 1 6.3.
-6 3 2 6.1.3.
-6 3 2 6.5.3.
-6 3 3 6.1.5.3.
-6 3 3 6.5.1.3.
-6 3 4 6.1.2.4.3.
-6 3 5 6.5.1.2.4.3.
-6 4 2 6.3.4.
-6 4 3 6.1.2.4.
-6 4 3 6.1.3.4.
-6 4 3 6.5.3.4.
-6 4 4 6.1.5.3.4.
-6 4 4 6.3.1.2.4.
-6 4 4 6.5.1.2.4.
-6 4 4 6.5.1.3.4.
-6 4 5 6.3.5.1.2.4.
-6 4 5 6.5.3.1.2.4.
-6 5 1 6.5.
-6 5 2 6.1.5.
-6 5 2 6.3.5.
-6 5 3 6.1.3.5.
-6 5 3 6.3.1.5.
-6 5 5 6.1.2.4.3.5.
-6 5 5 6.3.4.2.1.5.
-6 7 3 6.3.4.7.
-6 7 4 6.1.2.4.7.
-6 7 4 6.1.3.4.7.
-6 7 4 6.5.3.4.7.
-6 7 5 6.1.5.3.4.7.
-6 7 5 6.3.1.2.4.7.
-6 7 5 6.5.1.2.4.7.
-6 7 5 6.5.1.3.4.7.
-6 7 6 6.3.5.1.2.4.7.
-6 7 6 6.5.3.1.2.4.7.
-7 1 3 7.4.2.1.
-7 1 3 7.4.3.1.
-7 1 4 7.4.3.5.1.
-7 1 4 7.4.3.6.1.
-7 1 5 7.4.3.5.6.1.
-7 1 5 7.4.3.6.5.1.
-7 2 2 7.4.2.
-7 2 4 7.4.3.1.2.
-7 2 5 7.4.3.5.1.2.
-7 2 5 7.4.3.6.1.2.
-7 2 6 7.4.3.5.6.1.2.
-7 2 6 7.4.3.6.5.1.2.
-7 3 2 7.4.3.
-7 3 4 7.4.2.1.3.
-7 3 5 7.4.2.1.5.3.
-7 3 5 7.4.2.1.6.3.
-7 3 6 7.4.2.1.5.6.3.
-7 3 6 7.4.2.1.6.5.3.
-7 4 1 7.4.
-7 5 3 7.4.3.5.
-7 5 4 7.4.2.1.5.
-7 5 4 7.4.3.1.5.
-7 5 4 7.4.3.6.5.
-7 5 5 7.4.2.1.3.5.
-7 5 5 7.4.2.1.6.5.
-7 5 5 7.4.3.1.6.5.
-7 5 5 7.4.3.6.1.5.
-7 5 6 7.4.2.1.3.6.5.
-7 5 6 7.4.2.1.6.3.5.
-7 6 3 7.4.3.6.
-7 6 4 7.4.2.1.6.
-7 6 4 7.4.3.1.6.
-7 6 4 7.4.3.5.6.
-7 6 5 7.4.2.1.3.6.
-7 6 5 7.4.2.1.5.6.
-7 6 5 7.4.3.1.5.6.
-7 6 5 7.4.3.5.1.6.
-7 6 6 7.4.2.1.3.5.6.
-7 6 6 7.4.2.1.5.3.6.
-WITH RECURSIVE transitive_closure(a, b, distance, path_string)
-AS
-( SELECT a, b, 1 AS distance,
-concat(a, '.', b, '.') AS path_string
-FROM edges2
-UNION ALL
-SELECT tc.a, e.b, tc.distance + 1,
-concat(tc.path_string, e.b, '.') AS path_string
-FROM edges2 AS e
-JOIN transitive_closure AS tc ON e.a = tc.b
-WHERE tc.path_string NOT LIKE concat('%', e.b, '.%')
-)
-SELECT a, b, min(distance) AS dist FROM transitive_closure
-GROUP BY a, b
-ORDER BY a, dist, b;
-a b dist
-1 2 1
-1 3 1
-1 4 2
-1 5 1
-1 6 1
-1 7 3
-2 1 1
-2 3 2
-2 4 1
-2 5 2
-2 6 2
-2 7 2
-3 1 1
-3 2 2
-3 4 1
-3 5 1
-3 6 1
-3 7 2
-4 1 2
-4 2 1
-4 3 1
-4 5 2
-4 6 2
-4 7 1
-5 1 1
-5 2 2
-5 3 1
-5 4 2
-5 6 1
-5 7 3
-6 1 1
-6 2 2
-6 3 1
-6 4 2
-6 5 1
-6 7 3
-7 1 3
-7 2 2
-7 3 2
-7 4 1
-7 5 3
-7 6 3
-DROP VIEW edges2;
-DROP TABLE edges;
-#
-# MDEV-11674: recursive CTE table that cannot be stored
-# in a heap table
-#
-create table t1 (id int, test_data varchar(36));
-insert into t1(id, test_data)
-select id, test_data
-from (
-with recursive data_generator(id, test_data) as (
-select 1 as id, uuid() as test_data
-union all
-select id + 1, uuid() from data_generator where id < 150000
-)
-select * from data_generator
-) as a;
-drop table t1;
-#
-# MDEV-10773: ANALYZE for query with recursive CTE
-#
-analyze format=json
-with recursive src(counter) as
-(select 1
-union
-select counter+1 from src where counter<10
-) select * from src;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "materialized": {
- "query_block": {
- "recursive_union": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "r_loops": 0,
- "r_rows": null,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "r_loops": 10,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "r_loops": 10,
- "rows": 2,
- "r_rows": 1,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 90,
- "attached_condition": "src.counter < 10"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-#
-# mdev-12360: recursive reference in left operand of LEFT JOIN
-#
-create table folks(id int, name char(32), dob date, father int, mother int);
-insert into folks values
-(100, 'Me', '2000-01-01', 20, 30),
-(20, 'Dad', '1970-02-02', 10, 9),
-(30, 'Mom', '1975-03-03', 8, 7),
-(10, 'Grandpa Bill', '1940-04-05', null, null),
-(9, 'Grandma Ann', '1941-10-15', null, null),
-(25, 'Uncle Jim', '1968-11-18', 8, 7),
-(98, 'Sister Amy', '2001-06-20', 20, 30),
-(7, 'Grandma Sally', '1943-08-23', null, 6),
-(8, 'Grandpa Ben', '1940-10-21', null, null),
-(6, 'Grandgrandma Martha', '1923-05-17', null, null),
-(67, 'Cousin Eddie', '1992-02-28', 25, 27),
-(27, 'Auntie Melinda', '1971-03-29', null, null);
-with recursive
-ancestor_ids (id)
-as
-(
-select father from folks where name = 'Me'
- union
-select mother from folks where name = 'Me'
- union
-select father from ancestor_ids as a left join folks on folks.id = a.id
-union
-select mother from ancestor_ids as a left join folks on folks.id = a.id
-),
-ancestors
-as
-(
-select p.* from folks as p, ancestor_ids as a
-where p.id = a.id
-)
-select * from ancestors;
-id name dob father mother
-20 Dad 1970-02-02 10 9
-30 Mom 1975-03-03 8 7
-10 Grandpa Bill 1940-04-05 NULL NULL
-9 Grandma Ann 1941-10-15 NULL NULL
-7 Grandma Sally 1943-08-23 NULL 6
-8 Grandpa Ben 1940-10-21 NULL NULL
-6 Grandgrandma Martha 1923-05-17 NULL NULL
-drop table folks;
-#
-# mdev-12368: crash with mutually recursive CTE
-# that arenot Standard compliant
-#
-create table value_nodes (v char(4));
-create table module_nodes(m char(4));
-create table module_arguments(m char(4), v char(4));
-create table module_results(m char(4), v char(4));
-with recursive
-reached_values as
-(
-select v from value_nodes where v in ('v3','v7','v9')
-union
-select module_results.v from module_results, applied_modules
-where module_results.m = applied_modules.m
-),
-applied_modules as
-(
-select module_nodes.m
-from
-module_nodes
-left join
-(
-module_arguments
-left join
-reached_values
-on module_arguments.v = reached_values.v
-)
-on reached_values.v is null and
-module_nodes.m = module_arguments.m
-where module_arguments.m is null
-)
-select * from reached_values;
-ERROR HY000: Restrictions imposed on recursive definitions are violated for table 'applied_modules'
-drop table value_nodes, module_nodes, module_arguments, module_results;
-#
-# mdev-12375: query using one of two mutually recursive CTEs
-# whose non-recursive part returns an empty set
-#
-create table value_nodes (v char(4));
-insert into value_nodes values
-('v1'), ('v2'), ('v3'), ('v4'), ('v5'), ('v6'), ('v7'), ('v8'), ('v9'),
-('v10'), ('v11'), ('v12'), ('v13'), ('v14'), ('v15'), ('v16');
-create table module_nodes(m char(4));
-insert into module_nodes values
-('m1'), ('m2'), ('m3'), ('m4'), ('m5'), ('m6'), ('m7');
-create table module_arguments(m char(4), v char(4));
-insert into module_arguments values
-('m1','v3'), ('m1','v9'),
-('m2','v4'), ('m2','v3'), ('m2','v7'),
-('m3','v6'),
-('m4','v4'), ('m4','v1'),
-('m5','v10'), ('m5','v8'), ('m5','v3'),
-('m6','v8'), ('m6','v1'),
-('m7','v11'), ('m7','v12');
-create table module_results(m char(4), v char(4));
-insert into module_results values
-('m1','v4'),
-('m2','v1'), ('m2','v6'),
-('m3','v10'),
-('m4','v8'),
-('m5','v11'), ('m5','v9'),
-('m6','v12'), ('m6','v4'),
-('m7','v2');
-set statement max_recursive_iterations=2, standard_compliant_cte=0 for
-with recursive
-reached_values as
-(
-select v from value_nodes where v in ('v3','v7','v9')
-union
-select module_results.v from module_results, applied_modules
-where module_results.m = applied_modules.m
-),
-applied_modules as
-(
-select * from module_nodes where 1=0
-union
-select module_nodes.m
-from
-module_nodes
-left join
-(
-module_arguments
-left join
-reached_values
-on module_arguments.v = reached_values.v
-)
-on reached_values.v is null and
-module_nodes.m = module_arguments.m
-where module_arguments.m is null
-)
-select * from applied_modules;
-m
-m1
-m2
-drop table value_nodes, module_nodes, module_arguments, module_results;
-#
-# mdev-12519: recursive references in subqueries
-#
-create table t1 (lp char(4) not null, rp char(4) not null);
-insert into t1 values
-('p1','p2'), ('p2','p3'), ('p3','p4'), ('p4','p5'),
-('p2','p7'), ('p7','p8'), ('p8','p3'), ('p8','p4');
-set standard_compliant_cte=0;
-with recursive
-reachables(p) as
-(
-select lp from t1 where lp = 'p1'
- union
-select t1.rp from reachables, t1
-where t1.lp = reachables.p
-)
-select * from reachables;
-p
-p1
-p2
-p3
-p7
-p4
-p8
-p5
-with recursive
-reachables(p) as
-(
-select lp from t1 where lp = 'p1'
- union
-select t1.rp from reachables, t1
-where 'p3' not in (select * from reachables) and
-t1.lp = reachables.p
-)
-select * from reachables;
-p
-p1
-p2
-p3
-p7
-with recursive
-reachables(p) as
-(
-select lp from t1 where lp = 'p1'
- union
-select t1.rp from reachables, t1
-where 'p3' not in (select p from reachables where p <= 'p5'
- union
-select p from reachables where p > 'p5') and
-t1.lp = reachables.p
-)
-select * from reachables;
-p
-p1
-p2
-p3
-p7
-prepare stmt from "
-with recursive
-reachables(p) as
-(
- select lp from t1 where lp = 'p1'
- union
- select t1.rp from reachables, t1
- where 'p3' not in (select p from reachables where p <= 'p5'
- union
- select p from reachables where p > 'p5') and
- t1.lp = reachables.p
-)
-select * from reachables;
-";
-execute stmt;
-p
-p1
-p2
-p3
-p7
-execute stmt;
-p
-p1
-p2
-p3
-p7
-deallocate prepare stmt;
-drop table t1;
-create table objects(v char(4) not null);
-insert into objects values
-('v1'), ('v2'), ('v3'), ('v4'), ('v5'),
-('v6'), ('v7'), ('v8'), ('v9'), ('v10');
-create table modules(m char(4) not null);
-insert into modules values
-('m1'), ('m2'), ('m3'), ('m4');
-create table module_arguments(m char(4) not null, v char(4) not null);
-insert into module_arguments values
-('m1','v3'), ('m1','v9'),
-('m2','v4'), ('m2','v7'),
-('m3','v6'), ('m4','v2');
-create table module_results(m char(4) not null, v char(4) not null);
-insert into module_results values
-('m1','v4'),
-('m2','v1'), ('m2','v6'),
-('m3','v10'), ('m4','v7');
-set standard_compliant_cte=0;
-with recursive
-reached_objects as
-(
-select v, 'init' as m from objects where v in ('v3','v7','v9')
-union
-select module_results.v, module_results.m from module_results, applied_modules
-where module_results.m = applied_modules.m
-),
-applied_modules as
-(
-select * from modules where 1=0
-union
-select modules.m
-from
-modules
-where
-not exists (select * from module_arguments
-where module_arguments.m = modules.m and
-module_arguments.v not in
-(select v from reached_objects))
-)
-select * from reached_objects;
-v m
-v3 init
-v7 init
-v9 init
-v4 m1
-v1 m2
-v6 m2
-v10 m3
-with recursive
-reached_objects as
-(
-select v, 'init' as m from objects where v in ('v3','v7','v9')
-union
-select module_results.v, module_results.m from module_results, applied_modules
-where module_results.m = applied_modules.m
-),
-applied_modules as
-(
-select * from modules where 1=0
-union
-select modules.m
-from
-modules
-where
-'v6' not in (select v from reached_objects) and
-not exists (select * from module_arguments
-where module_arguments.m = modules.m and
-module_arguments.v not in
-(select v from reached_objects))
-)
-select * from reached_objects;
-v m
-v3 init
-v7 init
-v9 init
-v4 m1
-v1 m2
-v6 m2
-prepare stmt from "
-with recursive
-reached_objects as
-(
- select v, 'init' as m from objects where v in ('v3','v7','v9')
- union
- select module_results.v, module_results.m from module_results, applied_modules
- where module_results.m = applied_modules.m
-),
-applied_modules as
-(
- select * from modules where 1=0
- union
- select modules.m
- from
- modules
- where
- 'v6' not in (select v from reached_objects) and
- not exists (select * from module_arguments
- where module_arguments.m = modules.m and
- module_arguments.v not in
- (select v from reached_objects))
-)
-select * from reached_objects;
-";
-execute stmt;
-v m
-v3 init
-v7 init
-v9 init
-v4 m1
-v1 m2
-v6 m2
-execute stmt;
-v m
-v3 init
-v7 init
-v9 init
-v4 m1
-v1 m2
-v6 m2
-deallocate prepare stmt;
-drop table objects, modules, module_arguments, module_results;
-set standard_compliant_cte=default;
-select @@standard_compliant_cte;
-@@standard_compliant_cte
-1
-#
-# mdev-12554: impossible where in recursive select
-#
-CREATE TABLE t1 (i int);
-INSERT INTO t1 VALUES (1),(2);
-WITH RECURSIVE
-cte(f) AS ( SELECT i FROM t1 UNION SELECT f FROM t1, cte WHERE 1=0 )
-SELECT * FROM cte;
-f
-1
-2
-DROP TABLE t1;
-#
-# mdev-12556: recursive execution uses Aria temporary tables
-#
-CREATE TABLE t (c1 varchar(255), c2 tinytext);
-INSERT INTO t VALUES ('a','a'),('b','b'),('c','c'),('d','d');
-ANALYZE WITH RECURSIVE cte(f) AS (
-SELECT c1 FROM t
-UNION
-SELECT c1 FROM t, cte
-) SELECT COUNT(*) FROM cte;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4 4.00 100.00 100.00
-2 DERIVED t ALL NULL NULL NULL NULL 4 4.00 100.00 100.00
-3 RECURSIVE UNION t ALL NULL NULL NULL NULL 4 4.00 100.00 100.00
-3 RECURSIVE UNION <derived2> ALL NULL NULL NULL NULL 4 4.00 100.00 100.00 Using join buffer (flat, BNL join)
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL 0.00 NULL NULL
-WITH RECURSIVE cte(f) AS (
-SELECT c1 FROM t
-UNION
-SELECT c1 FROM t, cte
-) SELECT COUNT(*) FROM cte;
-COUNT(*)
-4
-ANALYZE WITH RECURSIVE cte(f) AS (
-SELECT c2 FROM t
-UNION
-SELECT c2 FROM t, cte
-) SELECT COUNT(*) FROM cte;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4 4.00 100.00 100.00
-2 DERIVED t ALL NULL NULL NULL NULL 4 4.00 100.00 100.00
-3 RECURSIVE UNION t ALL NULL NULL NULL NULL 4 4.00 100.00 100.00
-3 RECURSIVE UNION <derived2> ALL NULL NULL NULL NULL 4 4.00 100.00 100.00 Using join buffer (flat, BNL join)
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL 0.00 NULL NULL
-WITH RECURSIVE cte(f) AS (
-SELECT c2 FROM t
-UNION
-SELECT c2 FROM t, cte
-) SELECT COUNT(*) FROM cte;
-COUNT(*)
-4
-DROP TABLE t;
-#
-# mdev-12563: no recursive references on the top level of the CTE spec
-#
-CREATE TABLE t (i int);
-INSERT INTO t VALUES (3), (1),(2);
-SET standard_compliant_cte=0;
-WITH RECURSIVE cte(f) AS (
-SELECT i FROM t
-UNION
-SELECT i FROM t WHERE i NOT IN ( SELECT * FROM cte )
-) SELECT * FROM cte;
-f
-3
-1
-2
-WITH RECURSIVE cte(f) AS (
-SELECT i FROM t
-UNION
-SELECT i FROM t WHERE i NOT IN ( SELECT * FROM cte WHERE i < 2 )
-UNION
-SELECT i FROM t WHERE i NOT IN ( SELECT * FROM cte WHERE i > 2 )
-) SELECT * FROM cte;
-f
-3
-1
-2
-WITH RECURSIVE cte(f) AS (
-SELECT i FROM t
-UNION
-SELECT i FROM t
-WHERE i NOT IN ( SELECT * FROM cte WHERE i < 2
-UNION
-SELECT * FROM cte WHERE i > 2)
-) SELECT * FROM cte;
-f
-3
-1
-2
-WITH RECURSIVE cte(f) AS (
-SELECT i FROM t
-UNION
-SELECT i FROM t
-WHERE i NOT IN ( SELECT * FROM t
-WHERE i IN ( SELECT * FROM cte ) GROUP BY i )
-) SELECT * FROM cte;
-f
-3
-1
-2
-WITH RECURSIVE cte(f) AS (
-SELECT i FROM t
-UNION
-SELECT i FROM t WHERE i NOT IN ( SELECT * FROM cte )
-UNION
-SELECT * FROM cte WHERE f > 2
-) SELECT * FROM cte;
-f
-3
-1
-2
-set standard_compliant_cte=default;
-DROP TABLE t;
-#
-# mdev-14184: recursive CTE embedded into CTE with multiple references
-#
-WITH
-cte1 AS (
-SELECT n FROM (
-WITH RECURSIVE rec_cte(n) AS (
-SELECT 1 as n1
-UNION ALL
-SELECT n+1 as n2 FROM rec_cte WHERE n < 3
-) SELECT n FROM rec_cte
-) AS X
-),
-cte2 as (
-SELECT 2 FROM cte1
-)
-SELECT *
-FROM cte1;
-n
-1
-2
-3
-#
-# mdev-14629: a user-defined variable is defined by the recursive CTE
-#
-set @var=
-(
-with recursive cte_tab(a) as (
-select 1
-union
-select a+1 from cte_tab
-where a<3)
-select count(*) from cte_tab
-);
-select @var;
-@var
-3
-create table t1(a int, b int);
-insert into t1 values (3,8),(1,5),(5,7),(7,4),(4,3);
-set @var=
-(
-with recursive summ(a,s) as (
-select 1, 0 union
-select t1.b, t1.b+summ.s from summ, t1
-where summ.a=t1.a)
-select s from summ
-order by a desc
-limit 1
-);
-select @var;
-@var
-27
-set @var=
-(
-with recursive
-cte_1 as (
-select 1
-union
-select * from cte_2),
-cte_2 as (
-select * from cte_1
-union
-select a from t1, cte_2
-where t1.a=cte_2.a)
-select * from cte_2
-limit 1
-);
-ERROR HY000: Unacceptable mutual recursion with anchored table 'cte_1'
-drop table t1;
-#
-# mdev-14777: crash caused by the same as in mdev-14755
-#
-CREATE TABLE t1 (i1 int NOT NULL, i2 int);
-CREATE TABLE t2 (d1 int NOT NULL PRIMARY KEY);
-CREATE TABLE t3 (i int );
-insert into t1 select seq,seq from seq_1_to_100000;
-insert into t2 select seq from seq_1000_to_100000;
-insert into t3 select seq from seq_1_to_1000;
-SELECT *
-FROM
-(
-SELECT *
-FROM
-(
-WITH RECURSIVE rt AS
-(
-SELECT i2 P, i1 C FROM t1 WHERE i1 IN (SELECT d1 FROM t2)
-UNION
-SELECT t1.i2 P, rt.C C FROM t1, rt
-)
-SELECT C,P
-FROM ( SELECT P,C FROM rt WHERE NOT EXISTS (SELECT 1 FROM t1) ) Y
-) X
-WHERE 1 = 1
-) K, t3;
-C P i
-drop table t1,t2,t3;
-#
-# mdev-14879: subquery with recursive reference in WHERE of CTE
-#
-create table flights
-(departure varchar(32),
-arrival varchar(32),
-carrier varchar(20),
-flight_number char(7));
-insert into flights values
-('Seattle', 'Frankfurt', 'Lufthansa', 'LH 491'),
-('Seattle', 'Chicago', 'American', 'AA 2573'),
-('Seattle', 'Los Angeles', 'Alaska Air', 'AS 410'),
-('Chicago', 'New York', 'American', 'AA 375'),
-('Chicago', 'Montreal', 'Air Canada', 'AC 3053'),
-('Los Angeles', 'New York', 'Delta', 'DL 1197'),
-('Moscow', 'Tokyo', 'Aeroflot', 'SU 264'),
-('New York', 'Paris', 'Air France', 'AF 23'),
-('Frankfurt', 'Moscow', 'Lufthansa', 'LH 1444'),
-('Tokyo', 'Seattle', 'ANA', 'NH 178'),
-('Los Angeles', 'Tokyo', 'ANA', 'NH 175'),
-('Moscow', 'Los Angeles', 'Aeroflot', 'SU 106'),
-('Montreal', 'Paris', 'Air Canada', 'AC 870'),
-('Cairo', 'Paris', 'Air France', 'AF 503'),
-('New York', 'Seattle', 'American', 'AA 45'),
-('Paris', 'Chicago', 'Air France', 'AF 6734');
-with recursive destinations (city) as
-( select a.arrival from flights a where a.departure='Cairo'
- union
-select b.arrival from destinations r, flights b where r.city=b.departure)
-select * from destinations;
-city
-Paris
-Chicago
-New York
-Montreal
-Seattle
-Frankfurt
-Los Angeles
-Moscow
-Tokyo
-set standard_compliant_cte=0;
-with recursive destinations (city, legs) as
-(
-select a.arrival, 1 from flights a where a.departure='Cairo'
- union
-select b.arrival, r.legs + 1 from destinations r, flights b
-where r.city=b.departure and b.arrival not in (select city from destinations)
-)
-select * from destinations;
-city legs
-Paris 1
-Chicago 2
-New York 3
-Montreal 3
-Seattle 4
-Frankfurt 5
-Los Angeles 5
-Moscow 6
-Tokyo 6
-explain extended with recursive destinations (city, legs) as
-(
-select a.arrival, 1 from flights a where a.departure='Cairo'
- union
-select b.arrival, r.legs + 1 from destinations r, flights b
-where r.city=b.departure and b.arrival not in (select city from destinations)
-)
-select * from destinations;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 16 100.00
-2 DERIVED a ALL NULL NULL NULL NULL 16 100.00 Using where
-3 RECURSIVE UNION b ALL NULL NULL NULL NULL 16 100.00 Using where
-3 RECURSIVE UNION <derived2> ref key0 key0 35 test.b.departure 2 100.00
-4 DEPENDENT SUBQUERY <derived2> ALL NULL NULL NULL NULL 16 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 with recursive destinations as (/* select#2 */ select `test`.`a`.`arrival` AS `city`,1 AS `legs` from `test`.`flights` `a` where `test`.`a`.`departure` = 'Cairo' union /* select#3 */ select `test`.`b`.`arrival` AS `arrival`,`r`.`legs` + 1 AS `r.legs + 1` from `destinations` `r` join `test`.`flights` `b` where `r`.`city` = `test`.`b`.`departure` and !<in_optimizer>(`test`.`b`.`arrival`,<exists>(/* select#4 */ select `destinations`.`city` from `destinations` where trigcond(`test`.`b`.`arrival` = `destinations`.`city` or `destinations`.`city` is null) having trigcond(`destinations`.`city` is null))))/* select#1 */ select `destinations`.`city` AS `city`,`destinations`.`legs` AS `legs` from `destinations`
-set standard_compliant_cte=default;
-drop table flights;
-#
-# MDEV-15162: Setting user variable in recursive CTE
-#
-SET @c=1;
-WITH RECURSIVE cte AS
-(SELECT 5
-UNION
-SELECT @c:=@c+1 FROM cte WHERE @c<3)
-SELECT * FROM cte;
-5
-5
-2
-3
-#
-# MDEV-14217 [db crash] Recursive CTE when SELECT includes new field
-#
-CREATE TEMPORARY TABLE a_tbl (
-a VARCHAR(33) PRIMARY KEY,
-b VARCHAR(33)
-);
-INSERT INTO a_tbl VALUES ('block0', 'block0'), ('block1', NULL);
-WITH RECURSIVE Q0 AS (
-SELECT T0.a, T0.b, 5
-FROM a_tbl T0
-WHERE b IS NULL
-UNION ALL
-SELECT T1.a, T1.b
-FROM Q0
-JOIN a_tbl T1
-ON T1.a=Q0.a
-) SELECT distinct(Q0.a), Q0.b
-FROM Q0;
-ERROR 21000: The used SELECT statements have a different number of columns
-DROP TABLE a_tbl;
-WITH RECURSIVE x AS (SELECT 1,2 UNION ALL SELECT 1 FROM x) SELECT * FROM x;
-ERROR 21000: The used SELECT statements have a different number of columns
-#
-# MDEV-15162: Setting user variable in recursive CTE
-#
-SET @c=1;
-WITH RECURSIVE cte AS
-(SELECT 5
-UNION
-SELECT @c:=@c+1 FROM cte WHERE @c<3)
-SELECT * FROM cte;
-5
-5
-2
-3
-#
-# MDEV-14883: recursive references in operands of INTERSECT / EXCEPT
-#
-create table flights
-(departure varchar(32),
-arrival varchar(32),
-carrier varchar(20),
-flight_number char(7));
-insert into flights values
-('Seattle', 'Frankfurt', 'Lufthansa', 'LH 491'),
-('Seattle', 'Amsterdam', 'KLM', 'KL 6032'),
-('Seattle', 'Chicago', 'American', 'AA 2573'),
-('Seattle', 'Los Angeles', 'Alaska Air', 'AS 410'),
-('Chicago', 'New York', 'American', 'AA 375'),
-('Chicago', 'Montreal', 'Air Canada', 'AC 3053'),
-('Los Angeles', 'New York', 'Delta', 'DL 1197'),
-('New York', 'London', 'British Airways', 'BA 1511'),
-('London', 'Moscow', 'British Airways', 'BA 233'),
-('Moscow', 'Tokyo', 'Aeroflot', 'SU 264'),
-('Moscow', 'Dubai', 'Emirates', 'EK 2421'),
-('Dubai', 'Tokyo', 'Emirates', 'EK 318'),
-('Dubai', 'Bangkok', 'Emirates', 'EK 2142'),
-('Beijing', 'Bangkok', 'Air China', 'CA 757'),
-('Beijing', 'Tokyo', 'Air China', 'CA 6653'),
-('Moscow', 'Bangkok', 'Aeroflot', 'SU 270'),
-('New York', 'Reykjavik', 'Icelandair', 'FL 416'),
-('New York', 'Paris', 'Air France', 'AF 23'),
-('Amsterdam', 'Moscow', 'KLM', 'KL 903'),
-('Frankfurt', 'Dubai', 'Lufthansa', 'LH 630'),
-('Frankfurt', 'Moscow', 'Lufthansa', 'LH 1444'),
-('Reykjavik', 'London', 'British Airways', 'BA 2229'),
-('Frankfurt', 'Beijing', 'Air China', 'CA 966'),
-('Tokyo', 'Seattle', 'ANA', 'NH 178'),
-('Los Angeles', 'Tokyo', 'ANA', 'NH 175'),
-('Moscow', 'Los Angeles', 'Aeroflot', 'SU 106'),
-('Montreal', 'Paris', 'Air Canada', 'AC 870'),
-('London', 'Delhi', 'British Airways', 'BA 143'),
-('Delhi', 'Bangkok', 'Air India', 'AI 306'),
-('Delhi', 'Dubai', 'Air India', 'AI 995'),
-('Dubai', 'Cairo', 'Emirates', 'EK 927'),
-('Cairo', 'Paris', 'Air France', 'AF 503'),
-('Amsterdam', 'New York', 'Delta', 'DL 47'),
-('New York', 'Seattle', 'American', 'AA 45'),
-('Paris', 'Chicago', 'Air France', 'AF 6734');
-create table distances
-(city1 varchar(32),
-city2 varchar(32),
-dist int);
-insert into distances values
-('Seattle', 'Frankfurt', 5080),
-('Seattle', 'Amsterdam', 4859),
-('Seattle', 'Chicago', 1733),
-('Seattle', 'Los Angeles', 960),
-('Chicago', 'New York', 712),
-('Chicago', 'Montreal', 746),
-('Los Angeles', 'New York', 2446),
-('New York', 'London', 3459),
-('London', 'Moscow', 1554),
-('Moscow', 'Tokyo', 4647),
-('Moscow', 'Dubai', 2298),
-('Dubai', 'Tokyo', 4929),
-('Dubai', 'Bangkok', 3050),
-('Beijing', 'Bangkok', 2046),
-('Beijing', 'Tokyo', 1301),
-('Moscow', 'Bangkok', 4390),
-('New York', 'Reykjavik', 2613),
-('New York', 'Paris', 3625),
-('Amsterdam', 'Moscow', 1334),
-('Frankfurt', 'Dubai', 3003),
-('Frankfurt', 'Moscow', 1256),
-('Reykjavik', 'London', 1173),
-('Frankfurt', 'Beijing', 4836),
-('Tokyo', 'Seattle', 4783),
-('Los Angeles', 'Tokyo', 5479),
-('Moscow', 'Los Angeles', 6071),
-('Moscow', 'Reykjavik', 2052),
-('Montreal', 'Paris', 3425),
-('London', 'Delhi', 4159),
-('London', 'Paris', 214),
-('Delhi', 'Bangkok', 1810),
-('Delhi', 'Dubai', 1369),
-('Delhi', 'Beijing', 2350),
-('Dubai', 'Cairo', 1501),
-('Cairo', 'Paris', 1992),
-('Amsterdam', 'New York', 3643),
-('New York', 'Seattle', 2402),
-('Paris', 'Chicago', 4136),
-('Paris', 'Los Angeles', 5647);
-with recursive destinations (city) as
-(
-select a.arrival from flights a where a.departure = 'Seattle'
- union
-select b.arrival from destinations r, flights b where r.city = b.departure
-)
-select * from destinations;
-city
-Frankfurt
-Amsterdam
-Chicago
-Los Angeles
-New York
-Montreal
-Moscow
-Dubai
-Beijing
-Tokyo
-London
-Bangkok
-Reykjavik
-Paris
-Seattle
-Cairo
-Delhi
-with recursive destinations (city) as
-(
-select a.arrival from flights a, distances d
-where a.departure = 'Seattle' and
-a.departure = d.city1 and a.arrival = d.city2 and
-d.dist < 4000
-union
-select b.arrival from destinations r, flights b, distances d
-where r.city = b.departure and
-b.departure = d.city1 and b.arrival = d.city2 and
-d.dist < 4000
-)
-select * from destinations;
-city
-Chicago
-Los Angeles
-New York
-Montreal
-London
-Reykjavik
-Paris
-Seattle
-Moscow
-Dubai
-Bangkok
-Cairo
-set standard_compliant_cte=0;
-with recursive legs_to_destinations
-(departure, arrival, dist, leg_no, acc_mileage) as
-(
-select a.departure, a.arrival, d.dist, 1, d.dist
-from flights a, distances d
-where a.departure = 'Seattle' and
-a.departure = d.city1 and a.arrival = d.city2 and
-d.dist < 4000
-union all
-select b.departure, b.arrival, d.dist, r.leg_no + 1, r.acc_mileage + d.dist
-from legs_to_destinations r, flights b, distances d
-where r.arrival = b.departure and
-b.departure = d.city1 and b.arrival = d.city2 and
-d.dist < 4000 and
-b.arrival not in (select arrival from legs_to_destinations)
-)
-select * from legs_to_destinations;
-departure arrival dist leg_no acc_mileage
-Seattle Chicago 1733 1 1733
-Seattle Los Angeles 960 1 960
-Chicago New York 712 2 2445
-Chicago Montreal 746 2 2479
-Los Angeles New York 2446 2 3406
-New York London 3459 3 6865
-New York London 3459 3 5904
-New York Reykjavik 2613 3 6019
-New York Reykjavik 2613 3 5058
-New York Paris 3625 3 7031
-New York Paris 3625 3 6070
-Montreal Paris 3425 3 5904
-New York Seattle 2402 3 5808
-New York Seattle 2402 3 4847
-London Moscow 1554 4 7458
-London Moscow 1554 4 8419
-Moscow Dubai 2298 5 10717
-Moscow Dubai 2298 5 9756
-Dubai Bangkok 3050 6 12806
-Dubai Bangkok 3050 6 13767
-Dubai Cairo 1501 6 11257
-Dubai Cairo 1501 6 12218
-set standard_compliant_cte=default;
-with recursive destinations (city) as
-(
-select a.arrival from flights a, distances d
-where a.departure = 'Seattle' and
-a.departure = d.city1 and a.arrival = d.city2 and
-d.dist < 4000
-union
-select b.arrival from destinations r, flights b
-where r.city = b.departure
-intersect
-select city2 from destinations s, distances d
-where s.city = d.city1 and d.dist < 4000
-)
-select * from destinations;
-city
-Chicago
-Los Angeles
-New York
-Montreal
-London
-Reykjavik
-Paris
-Seattle
-Moscow
-Dubai
-Bangkok
-Cairo
-with recursive destinations (city) as
-(
-select a.arrival from flights a where a.departure = 'Seattle'
- union
-select * from
-(
-select b.arrival from destinations r, flights b
-where r.city = b.departure
-except
-select arrival from flights
-where arrival in
-('New York', 'London', 'Moscow', 'Dubai', 'Cairo', 'Tokyo')
-) t
-)
-select * from destinations;
-city
-Frankfurt
-Amsterdam
-Chicago
-Los Angeles
-Montreal
-Beijing
-Bangkok
-Paris
-drop table flights, distances;
diff --git a/mysql-test/r/ctype_ascii.result b/mysql-test/r/ctype_ascii.result
deleted file mode 100644
index 06362486073..00000000000
--- a/mysql-test/r/ctype_ascii.result
+++ /dev/null
@@ -1,177 +0,0 @@
-set names ascii;
-select 'e'='`';
-'e'='`'
-0
-select 'y'='~';
-'y'='~'
-0
-create table t1 (a char(1) character set ascii);
-insert into t1 (a) values (' '), ('a'), ('b'), ('c'), ('d'), ('e'), ('f'), ('g'), ('h'), ('i'), ('j'), ('k'), ('l'), ('m'), ('n'), ('o'), ('p'), ('q'), ('r'), ('s'), ('t'), ('u'), ('v'), ('w'), ('x'), ('y'), ('z'), ('A'), ('B'), ('C'), ('D'), ('E'), ('F'), ('G'), ('H'), ('I'), ('J'), ('K'), ('L'), ('M'), ('N'), ('O'), ('P'), ('Q'), ('R'), ('S'), ('T'), ('U'), ('V'), ('W'), ('X'), ('Y'), ('Z'), ('!'), ('@'), ('#'), ('$'), ('%'), ('^'), ('&'), ('*'), ('('), (')'), ('_'), ('+'), ('`'), ('~'), ('1'), ('2'), ('3'), ('4'), ('5'), ('6'), ('7'), ('8'), ('9'), ('0'), ('['), (']'), ('\\'), ('|'), ('}'), ('{'), ('"'), (':'), (''''), (';'), ('/'), ('.'), (','), ('?'), ('>'), ('<'), ('\n'), ('\t'), ('\a'), ('\f'), ('\v');
-select t1a.a, t1b.a from t1 as t1a, t1 as t1b where t1a.a=t1b.a order by binary t1a.a, binary t1b.a;
-a a
-
-
-
-
-
-! !
-" "
-# #
-$ $
-% %
-& &
-' '
-( (
-) )
-* *
-+ +
-, ,
-. .
-/ /
-0 0
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 9
-: :
-; ;
-< <
-> >
-? ?
-@ @
-A A
-A a
-A a
-B B
-B b
-C C
-C c
-D D
-D d
-E E
-E e
-F F
-F f
-F f
-G G
-G g
-H H
-H h
-I I
-I i
-J J
-J j
-K K
-K k
-L L
-L l
-M M
-M m
-N N
-N n
-O O
-O o
-P P
-P p
-Q Q
-Q q
-R R
-R r
-S S
-S s
-T T
-T t
-U U
-U u
-V V
-V v
-V v
-W W
-W w
-X X
-X x
-Y Y
-Y y
-Z Z
-Z z
-[ [
-\ \
-] ]
-^ ^
-_ _
-` `
-a A
-a A
-a a
-a a
-a a
-a a
-b B
-b b
-c C
-c c
-d D
-d d
-e E
-e e
-f F
-f F
-f f
-f f
-f f
-f f
-g G
-g g
-h H
-h h
-i I
-i i
-j J
-j j
-k K
-k k
-l L
-l l
-m M
-m m
-n N
-n n
-o O
-o o
-p P
-p p
-q Q
-q q
-r R
-r r
-s S
-s s
-t T
-t t
-u U
-u u
-v V
-v V
-v v
-v v
-v v
-v v
-w W
-w w
-x X
-x x
-y Y
-y y
-z Z
-z z
-{ {
-| |
-} }
-~ ~
-drop table t1;
-End of 5.0 tests.
diff --git a/mysql-test/r/ctype_big5.result b/mysql-test/r/ctype_big5.result
deleted file mode 100644
index 2db4da51667..00000000000
--- a/mysql-test/r/ctype_big5.result
+++ /dev/null
@@ -1,5374 +0,0 @@
-drop table if exists t1;
-SET @test_character_set= 'big5';
-SET @test_collation= 'big5_chinese_ci';
-SET @safe_character_set_server= @@character_set_server;
-SET @safe_collation_server= @@collation_server;
-SET @safe_character_set_client= @@character_set_client;
-SET @safe_character_set_results= @@character_set_results;
-SET character_set_server= @test_character_set;
-SET collation_server= @test_collation;
-CREATE DATABASE d1;
-USE d1;
-CREATE TABLE t1 (c CHAR(10), KEY(c));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c char(10) big5_chinese_ci YES MUL NULL
-INSERT INTO t1 VALUES ('aaa'),('aaaa'),('aaaaa');
-SELECT c as want3results FROM t1 WHERE c LIKE 'aaa%';
-want3results
-aaa
-aaaa
-aaaaa
-DROP TABLE t1;
-CREATE TABLE t1 (c1 varchar(15), KEY c1 (c1(2)));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c1 varchar(15) big5_chinese_ci YES MUL NULL
-INSERT INTO t1 VALUES ('location'),('loberge'),('lotre'),('boabab');
-SELECT c1 as want3results from t1 where c1 like 'l%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want3results from t1 where c1 like 'lo%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want1result from t1 where c1 like 'loc%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'loca%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locat%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locati%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locatio%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'location%';
-want1result
-location
-DROP TABLE t1;
-create table t1 (a set('a') not null);
-insert ignore into t1 values (),();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-select cast(a as char(1)) from t1;
-cast(a as char(1))
-
-
-select a sounds like a from t1;
-a sounds like a
-1
-1
-select 1 from t1 order by cast(a as char(1));
-1
-1
-1
-drop table t1;
-#
-# MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found
-#
-SET character_set_client=latin1;
-SET character_set_connection= @test_character_set;
-SET collation_connection= @test_collation;
-SELECT COLLATION('.'), SUBSTRING_INDEX('.wwwmysqlcom', '.', -2) AS c1;
-COLLATION('.') c1
-big5_chinese_ci .wwwmysqlcom
-set names utf8;
-create table t1 (
-name varchar(10),
-level smallint unsigned);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `name` varchar(10) DEFAULT NULL,
- `level` smallint(5) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=big5
-insert into t1 values ('string',1);
-select concat(name,space(level)), concat(name, repeat(' ',level)) from t1;
-concat(name,space(level)) concat(name, repeat(' ',level))
-string string
-drop table t1;
-DROP DATABASE d1;
-USE test;
-SET character_set_server= @safe_character_set_server;
-SET collation_server= @safe_collation_server;
-SET character_set_client= @safe_character_set_client;
-SET character_set_results= @safe_character_set_results;
-SET NAMES big5;
-SET collation_connection='big5_chinese_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-big5_chinese_ci 6109
-big5_chinese_ci 61
-big5_chinese_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-big5_chinese_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-big5_chinese_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-create table t1 engine=innodb select repeat('a',50) as c1;
-alter table t1 add index(c1(5));
-insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
-select collation(c1) from t1 limit 1;
-collation(c1)
-big5_chinese_ci
-select c1 from t1 where c1 like 'abcdef%' order by c1;
-c1
-abcdefg
-select c1 from t1 where c1 like 'abcde1%' order by c1;
-c1
-abcde100
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde11%' order by c1;
-c1
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde111%' order by c1;
-c1
-abcde111
-drop table t1;
-select @@collation_connection;
-@@collation_connection
-big5_chinese_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F225
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-drop table if exists t1;
-create table t1 select repeat('a',10) as c1;
-delete from t1;
-insert into t1 values (0x20),(0x21),(0x22),(0x23),(0x24),(0x25),(0x26),(0x27),(0x28),(0x29),(0x2A),(0x2B),(0x2C),(0x2D),(0x2E),(0x2F);
-insert into t1 values (0x30),(0x31),(0x32),(0x33),(0x34),(0x35),(0x36),(0x37),(0x38),(0x39),(0x3A),(0x3B),(0x3C),(0x3D),(0x3E),(0x3F);
-insert into t1 values (0x40),(0x41),(0x42),(0x43),(0x44),(0x45),(0x46),(0x47),(0x48),(0x49),(0x4A),(0x4B),(0x4C),(0x4D),(0x4E),(0x4F);
-insert into t1 values (0x50),(0x51),(0x52),(0x53),(0x54),(0x55),(0x56),(0x57),(0x58),(0x59),(0x5A),(0x5B),(0x5C),(0x5D),(0x5E),(0x5F);
-insert into t1 values (0x60),(0x61),(0x62),(0x63),(0x64),(0x65),(0x66),(0x67),(0x68),(0x69),(0x6A),(0x6B),(0x6C),(0x6D),(0x6E),(0x6F);
-insert into t1 values (0x70),(0x71),(0x72),(0x73),(0x74),(0x75),(0x76),(0x77),(0x78),(0x79),(0x7A),(0x7B),(0x7C),(0x7D),(0x7E),(0x7F);
-SELECT GROUP_CONCAT(c1 ORDER BY binary c1 SEPARATOR ''), GROUP_CONCAT(hex(c1) ORDER BY BINARY c1) FROM t1 GROUP BY c1;
-GROUP_CONCAT(c1 ORDER BY binary c1 SEPARATOR '') GROUP_CONCAT(hex(c1) ORDER BY BINARY c1)
- 20
-! 21
-" 22
-# 23
-$ 24
-% 25
-& 26
-' 27
-( 28
-) 29
-* 2A
-+ 2B
-, 2C
-- 2D
-. 2E
-/ 2F
-0 30
-1 31
-2 32
-3 33
-4 34
-5 35
-6 36
-7 37
-8 38
-9 39
-: 3A
-; 3B
-< 3C
-= 3D
-> 3E
-? 3F
-@ 40
-Aa 41,61
-Bb 42,62
-Cc 43,63
-Dd 44,64
-E`e 45,60,65
-Ff 46,66
-Gg 47,67
-Hh 48,68
-Ii 49,69
-Jj 4A,6A
-Kk 4B,6B
-Ll 4C,6C
-Mm 4D,6D
-Nn 4E,6E
-Oo 4F,6F
-Pp 50,70
-Qq 51,71
-Rr 52,72
-Ss 53,73
-Tt 54,74
-Uu 55,75
-Vv 56,76
-Ww 57,77
-Xx 58,78
-Yy~ 59,79,7E
-Zz 5A,7A
-] 5D
-[ 5B
-\ 5C
-^ 5E
-_ 5F
-{ 7B
-| 7C
-} 7D
- 7F
-drop table t1;
-SELECT strcmp('a','a '), strcmp('a ','a');
-strcmp('a','a ') strcmp('a ','a')
-0 0
-SELECT strcmp('a\0','a' ), strcmp('a','a\0');
-strcmp('a\0','a' ) strcmp('a','a\0')
--1 1
-SELECT strcmp('a\0','a '), strcmp('a ','a\0');
-strcmp('a\0','a ') strcmp('a ','a\0')
--1 1
-SELECT strcmp('a\t','a' ), strcmp('a', 'a\t');
-strcmp('a\t','a' ) strcmp('a', 'a\t')
--1 1
-SELECT strcmp('a\t','a '), strcmp('a ', 'a\t');
-strcmp('a\t','a ') strcmp('a ', 'a\t')
--1 1
-SET collation_connection='big5_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-big5_bin 6109
-big5_bin 61
-big5_bin 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-big5_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-big5_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-create table t1 engine=innodb select repeat('a',50) as c1;
-alter table t1 add index(c1(5));
-insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
-select collation(c1) from t1 limit 1;
-collation(c1)
-big5_bin
-select c1 from t1 where c1 like 'abcdef%' order by c1;
-c1
-abcdefg
-select c1 from t1 where c1 like 'abcde1%' order by c1;
-c1
-abcde100
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde11%' order by c1;
-c1
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde111%' order by c1;
-c1
-abcde111
-drop table t1;
-select @@collation_connection;
-@@collation_connection
-big5_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F225
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-SELECT strcmp('a','a '), strcmp('a ','a');
-strcmp('a','a ') strcmp('a ','a')
-0 0
-SELECT strcmp('a\0','a' ), strcmp('a','a\0');
-strcmp('a\0','a' ) strcmp('a','a\0')
--1 1
-SELECT strcmp('a\0','a '), strcmp('a ','a\0');
-strcmp('a\0','a ') strcmp('a ','a\0')
--1 1
-SELECT strcmp('a\t','a' ), strcmp('a', 'a\t');
-strcmp('a\t','a' ) strcmp('a', 'a\t')
--1 1
-SELECT strcmp('a\t','a '), strcmp('a ', 'a\t');
-strcmp('a\t','a ') strcmp('a ', 'a\t')
--1 1
-SET NAMES big5;
-CREATE TABLE t1 (a text) character set big5;
-INSERT INTO t1 VALUES ('ùØ');
-SELECT * FROM t1;
-a
-ùØ
-DROP TABLE t1;
-CREATE TABLE t1 (a CHAR(50) CHARACTER SET big5 NOT NULL, FULLTEXT(a));
-INSERT INTO t1 VALUES(0xA741ADCCA66EB6DC20A7DAADCCABDCA66E);
-SELECT HEX(a) FROM t1 WHERE MATCH(a) AGAINST (0xA741ADCCA66EB6DC IN BOOLEAN MODE);
-HEX(a)
-A741ADCCA66EB6DC20A7DAADCCABDCA66E
-DROP TABLE t1;
-set names big5;
-create table t1 (a char character set big5);
-insert into t1 values (0xF9D6),(0xF9D7),(0xF9D8),(0xF9D9);
-insert into t1 values (0xF9DA),(0xF9DB),(0xF9DC);
-select hex(a) a, hex(@u:=convert(a using utf8)) b,
-hex(convert(@u using big5)) c from t1 order by a;
-a b c
-F9D6 E7A281 F9D6
-F9D7 E98AB9 F9D7
-F9D8 E8A38F F9D8
-F9D9 E5A2BB F9D9
-F9DA E68192 F9DA
-F9DB E7B2A7 F9DB
-F9DC E5ABBA F9DC
-alter table t1 convert to character set utf8;
-select hex(a) from t1 where a = _big5 0xF9DC;
-hex(a)
-E5ABBA
-drop table t1;
-select hex(convert(_big5 0xC84041 using ucs2));
-hex(convert(_big5 0xC84041 using ucs2))
-003F0041
-Warnings:
-Warning 1977 Cannot convert 'big5' character 0xC840 to 'ucs2'
-End of 4.1 tests
-set names big5;
-create table t1 (a blob);
-insert into t1 values (0xEE00);
-select * into outfile 'test/t1.txt' from t1;
-delete from t1;
-select hex(load_file('MYSQLD_DATADIR/test/t1.txt'));;
-hex(load_file('MYSQLD_DATADIR/test/t1.txt'))
-5CEE5C300A
-load data infile 't1.txt' into table t1;
-select hex(a) from t1;
-hex(a)
-EE00
-drop table t1;
-End of 5.0 tests
-#
-# Start of 5.5 tests
-#
-#
-# Testing WL#4583 Case conversion in Asian character sets
-#
-SET NAMES utf8;
-SET collation_connection=big5_chinese_ci;
-CREATE TABLE t1 (b VARCHAR(2));
-INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
-INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
-CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
-DROP TABLE t1;
-CREATE TABLE t1 AS
-SELECT concat(head, tail) AS code, ' ' AS a
-FROM head, tail
-WHERE (head BETWEEN '80' AND 'FF') AND (tail BETWEEN '20' AND 'FF')
-ORDER BY head, tail;
-DROP TEMPORARY TABLE head, tail;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `code` varchar(8) DEFAULT NULL,
- `a` varchar(1) CHARACTER SET big5 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-28672
-UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
-Warnings:
-Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
-Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
-Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
-Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
-Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
-Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
-Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
-Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
-Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
-Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
-Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
-Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
-Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
-Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
-Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
-Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
-Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
-Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
-Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
-Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
-Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
-Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
-Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
-Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
-Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
-Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
-Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
-Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
-Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
-Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
-Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
-Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
-Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
-Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
-Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
-Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
-Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
-Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
-Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
-Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
-Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
-Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
-Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
-Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
-Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
-Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
-Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
-Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
-Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
-Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
-Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
-Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
-Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
-Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
-Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
-Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
-Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
-Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
-Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
-Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
-Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
-Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
-Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
-SELECT COUNT(*) FROM t1 WHERE a<>'?';
-COUNT(*)
-13973
-SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a) FROM t1 WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a));
-code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
-A2CF A2CF A2E9 A A ï½
-A2D0 A2D0 A2EA B B b
-A2D1 A2D1 A2EB C C c
-A2D2 A2D2 A2EC D D d
-A2D3 A2D3 A2ED ï¼¥ ï¼¥ ï½…
-A2D4 A2D4 A2EE F F f
-A2D5 A2D5 A2EF G G g
-A2D6 A2D6 A2F0 H H h
-A2D7 A2D7 A2F1 I I i
-A2D8 A2D8 A2F2 J J j
-A2D9 A2D9 A2F3 K K k
-A2DA A2DA A2F4 L L l
-A2DB A2DB A2F5 ï¼­ ï¼­ ï½
-A2DC A2DC A2F6 N N n
-A2DD A2DD A2F7 O O ï½
-A2DE A2DE A2F8 ï¼° ï¼° ï½
-A2DF A2DF A2F9 Q Q q
-A2E0 A2E0 A2FA ï¼² ï¼² ï½’
-A2E1 A2E1 A2FB S S s
-A2E2 A2E2 A2FC ï¼´ ï¼´ ï½”
-A2E3 A2E3 A2FD U U u
-A2E4 A2E4 A2FE V V v
-A2E5 A2E5 A340 ï¼· ï¼· ï½—
-A2E6 A2E6 A341 X X x
-A2E7 A2E7 A342 ï¼¹ ï¼¹ ï½™
-A2E8 A2E8 A343 Z Z z
-A2E9 A2CF A2E9 ï½ ï¼¡ ï½
-A2EA A2D0 A2EA b B b
-A2EB A2D1 A2EB c C c
-A2EC A2D2 A2EC d D d
-A2ED A2D3 A2ED ï½… ï¼¥ ï½…
-A2EE A2D4 A2EE f F f
-A2EF A2D5 A2EF g G g
-A2F0 A2D6 A2F0 h H h
-A2F1 A2D7 A2F1 i I i
-A2F2 A2D8 A2F2 j J j
-A2F3 A2D9 A2F3 k K k
-A2F4 A2DA A2F4 l L l
-A2F5 A2DB A2F5 ï½ ï¼­ ï½
-A2F6 A2DC A2F6 n N n
-A2F7 A2DD A2F7 ï½ ï¼¯ ï½
-A2F8 A2DE A2F8 ï½ ï¼° ï½
-A2F9 A2DF A2F9 q Q q
-A2FA A2E0 A2FA ï½’ ï¼² ï½’
-A2FB A2E1 A2FB s S s
-A2FC A2E2 A2FC ï½” ï¼´ ï½”
-A2FD A2E3 A2FD u U u
-A2FE A2E4 A2FE v V v
-A340 A2E5 A340 ï½— ï¼· ï½—
-A341 A2E6 A341 x X x
-A342 A2E7 A342 ï½™ ï¼¹ ï½™
-A343 A2E8 A343 z Z z
-A344 A344 A35C Α Α α
-A345 A345 A35D Β Β β
-A346 A346 A35E Γ Γ γ
-A347 A347 A35F Δ Δ δ
-A348 A348 A360 Ε Ε ε
-A349 A349 A361 Ζ Ζ ζ
-A34A A34A A362 Η Η η
-A34B A34B A363 Θ Θ θ
-A34C A34C A364 Ι Ι ι
-A34D A34D A365 Κ Κ κ
-A34E A34E A366 Λ Λ λ
-A34F A34F A367 Μ Μ μ
-A350 A350 A368 ΠΠν
-A351 A351 A369 Ξ Ξ ξ
-A352 A352 A36A Ο Ο ο
-A353 A353 A36B Π Π π
-A354 A354 A36C Ρ Ρ Ï
-A355 A355 A36D Σ Σ σ
-A356 A356 A36E Τ Τ τ
-A357 A357 A36F Υ Υ υ
-A358 A358 A370 Φ Φ φ
-A359 A359 A371 Χ Χ χ
-A35A A35A A372 Ψ Ψ ψ
-A35B A35B A373 Ω Ω ω
-A35C A344 A35C α Α α
-A35D A345 A35D β Β β
-A35E A346 A35E γ Γ γ
-A35F A347 A35F δ Δ δ
-A360 A348 A360 ε Ε ε
-A361 A349 A361 ζ Ζ ζ
-A362 A34A A362 η Η η
-A363 A34B A363 θ Θ θ
-A364 A34C A364 ι Ι ι
-A365 A34D A365 κ Κ κ
-A366 A34E A366 λ Λ λ
-A367 A34F A367 μ Μ μ
-A368 A350 A368 ν Πν
-A369 A351 A369 ξ Ξ ξ
-A36A A352 A36A ο Ο ο
-A36B A353 A36B π Π π
-A36C A354 A36C Ï Î¡ Ï
-A36D A355 A36D σ Σ σ
-A36E A356 A36E τ Τ τ
-A36F A357 A36F υ Υ υ
-A370 A358 A370 φ Φ φ
-A371 A359 A371 χ Χ χ
-A372 A35A A372 ψ Ψ ψ
-A373 A35B A373 ω Ω ω
-C7B1 C7B1 C7CC Д Д д
-C7B2 C7B2 C7CD Е Е е
-C7B3 C7B3 C7CE Ð Ð Ñ‘
-C7B4 C7B4 C7CF Ж Ж ж
-C7B5 C7B5 C7D0 З З з
-C7B6 C7B6 C7D1 И И и
-C7B7 C7B7 C7D2 Й Й й
-C7B8 C7B8 C7D3 К К к
-C7B9 C7B9 C7D4 Л Л л
-C7BA C7BA C7D5 М М м
-C7BB C7BB C7DC У У у
-C7BC C7BC C7DD Ф Ф ф
-C7BD C7BD C7DE Х Х х
-C7BE C7BE C7DF Ц Ц ц
-C7BF C7BF C7E0 Ч Ч ч
-C7C0 C7C0 C7E1 Ш Ш ш
-C7C1 C7C1 C7E2 Щ Щ щ
-C7C2 C7C2 C7E3 Ъ Ъ ъ
-C7C3 C7C3 C7E4 Ы Ы ы
-C7C4 C7C4 C7E5 Ь Ь ь
-C7C5 C7C5 C7E6 Э Э Ñ
-C7C6 C7C6 C7E7 Ю Ю ю
-C7C7 C7C7 C7E8 Я Я Ñ
-C7CC C7B1 C7CC д Д д
-C7CD C7B2 C7CD е Е е
-C7CE C7B3 C7CE Ñ‘ Ð Ñ‘
-C7CF C7B4 C7CF ж Ж ж
-C7D0 C7B5 C7D0 з З з
-C7D1 C7B6 C7D1 и И и
-C7D2 C7B7 C7D2 й Й й
-C7D3 C7B8 C7D3 к К к
-C7D4 C7B9 C7D4 л Л л
-C7D5 C7BA C7D5 м М м
-C7DC C7BB C7DC у У у
-C7DD C7BC C7DD ф Ф ф
-C7DE C7BD C7DE х Х х
-C7DF C7BE C7DF ц Ц ц
-C7E0 C7BF C7E0 ч Ч ч
-C7E1 C7C0 C7E1 ш Ш ш
-C7E2 C7C1 C7E2 щ Щ щ
-C7E3 C7C2 C7E3 ъ Ъ ъ
-C7E4 C7C3 C7E4 ы Ы ы
-C7E5 C7C4 C7E5 ь Ь ь
-C7E6 C7C5 C7E6 Ñ Ð­ Ñ
-C7E7 C7C6 C7E7 ю Ю ю
-C7E8 C7C7 C7E8 Ñ Ð¯ Ñ
-SELECT * FROM t1
-WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-A2B9 â… 
-A2BA â…¡
-A2BB â…¢
-A2BC â…£
-A2BD â…¤
-A2BE â…¥
-A2BF â…¦
-A2C0 â…§
-A2C1 â…¨
-A2C2 â…©
-Warnings:
-Warning 1977 Cannot convert 'big5' character 0xA3C0 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C0 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C1 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C1 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C2 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C2 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C3 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C3 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C4 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C4 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C5 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C5 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C6 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C6 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C7 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C7 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C8 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C8 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C9 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C9 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CA to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CA to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CB to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CB to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CC to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CC to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CD to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CD to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CE to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CE to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CF to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CF to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D0 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D0 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D1 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D1 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D2 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D2 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D3 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D3 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D4 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D4 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D5 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D5 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D6 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D6 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D7 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D7 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D8 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D8 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D9 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D9 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DA to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DA to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DB to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DB to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DC to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DC to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DD to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DD to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DE to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DE to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DF to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DF to 'utf8'
-SELECT * FROM t1
-WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-C7C8 а
-C7C9 б
-C7CA в
-C7CB г
-C7D6 н
-C7D7 о
-C7D8 п
-C7D9 р
-C7DA Ñ
-C7DB Ñ‚
-Warnings:
-Warning 1977 Cannot convert 'big5' character 0xA3C0 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C0 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C1 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C1 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C2 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C2 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C3 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C3 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C4 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C4 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C5 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C5 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C6 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C6 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C7 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C7 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C8 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C8 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C9 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3C9 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CA to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CA to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CB to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CB to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CC to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CC to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CD to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CD to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CE to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CE to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CF to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3CF to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D0 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D0 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D1 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D1 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D2 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D2 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D3 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D3 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D4 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D4 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D5 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D5 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D6 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D6 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D7 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D7 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D8 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D8 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D9 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3D9 to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DA to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DA to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DB to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DB to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DC to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DC to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DD to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DD to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DE to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DE to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DF to 'utf8'
-Warning 1977 Cannot convert 'big5' character 0xA3DF to 'utf8'
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set names big5;
-select @@collation_connection;
-@@collation_connection
-big5_chinese_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET big5 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-41
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET big5 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-4141414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-4141414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41414141412020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41414141412020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-41
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-414243
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-4142
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-414243
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-4142432020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-41
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-4142
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-414220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-41422020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-4142202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-41422020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-41
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-4142
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-414243
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-41424320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-41
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-4142
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-414243
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-41424320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-big5_chinese_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-41
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-414243
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-4142
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-414243
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-4142432020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020434241
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-BEBDBCDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDFBCBDBE
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-big5_chinese_ci
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-4141
-select hex(weight_string(cast(0xA1A1 as char)));
-hex(weight_string(cast(0xA1A1 as char)))
-A140
-select hex(weight_string(cast(0xA1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1 as char) as char(1)))
-A140
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)))
-A140
-select hex(weight_string(cast(0xA1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1 as char) as char(3)))
-A1402020
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)))
-A140A14020
-select hex(weight_string(cast(0x40A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1 as char) as char(3)))
-40A14020
-select hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)))
-40A140A140
-select hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)))
-40A140A140
-select hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)))
-4040A140
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0))
-A140
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0))
-A140A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0))
-A140A140
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0))
-A140A14020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0))
-A140A140202020202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0))
-A140
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0))
-A140A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0))
-A140A140
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0))
-A140A140A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0))
-A140A140A14020202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0))
-A140
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0))
-A140A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0))
-A140A140
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0))
-A140A140A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0))
-A140A140A14020202020202020202020202020202020202020
-set collation_connection=big5_bin;
-select @@collation_connection;
-@@collation_connection
-big5_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET big5 COLLATE big5_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-61
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET big5 COLLATE big5_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-6161616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-6161616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61616161612020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61616161612020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-61
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-616263
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-6162
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-616263
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-6162632020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-61
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-6162
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-616220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-61622020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-6162202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-61622020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-61
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-6162
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-616263
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-61626320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-61
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-6162
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-616263
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-61626320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-big5_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-61
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-616263
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-6162
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-616263
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-6162632020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020636261
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-9E9D9CDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDF9C9D9E
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-big5_bin
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-6141
-select hex(weight_string(cast(0xA1A1 as char)));
-hex(weight_string(cast(0xA1A1 as char)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1 as char) as char(3)))
-A1A12020
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)))
-A1A1A1A120
-select hex(weight_string(cast(0x40A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1 as char) as char(3)))
-40A1A120
-select hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)))
-4040A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0))
-A1A1A1A120
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0))
-A1A1A1A1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.0 tests
-#
-# Start of ctype_unescape.inc
-SET sql_mode = '';
-SET @query=_binary'SELECT CHARSET(\'test\'),@@character_set_client,@@character_set_connection';
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-CHARSET('test') @@character_set_client @@character_set_connection
-big5 big5 big5
-DEALLOCATE PREPARE stmt;
-CREATE TABLE allbytes (a VARBINARY(10));
-# Using selected bytes combinations
-CREATE TABLE halfs (a INT);
-INSERT INTO halfs VALUES (0x00),(0x01),(0x02),(0x03),(0x04),(0x05),(0x06),(0x07);
-INSERT INTO halfs VALUES (0x08),(0x09),(0x0A),(0x0B),(0x0C),(0x0D),(0x0E),(0x0F);
-CREATE TEMPORARY TABLE bytes (a BINARY(1), KEY(a)) ENGINE=MyISAM;
-INSERT INTO bytes SELECT CHAR((t1.a << 4) | t2.a USING BINARY) FROM halfs t1, halfs t2;
-DROP TABLE halfs;
-CREATE TABLE selected_bytes (a VARBINARY(10));
-INSERT INTO selected_bytes (a) VALUES ('\0'),('\b'),('\t'),('\r'),('\n'),('\Z');
-INSERT INTO selected_bytes (a) VALUES ('0'),('b'),('t'),('r'),('n'),('Z');
-INSERT INTO selected_bytes (a) VALUES ('\\'),('_'),('%'),(0x22),(0x27);
-INSERT INTO selected_bytes (a) VALUES ('a');
-INSERT INTO selected_bytes (a) VALUES
-(0x3F), # 7bit
-(0x40), # 7bit mbtail
-(0x7E), # 7bit mbtail nonascii-8bit
-(0x7F), # 7bit nonascii-8bit
-(0x80), # mbtail bad-mb
-(0x81), # mbhead mbtail
-(0x9F), # mbhead mbtail bad-mb
-(0xA0), # mbhead mbtail bad-mb
-(0xA1), # mbhead mbtail nonascii-8bit
-(0xE0), # mbhead mbtai
-(0xEF), # mbhead mbtail
-(0xF9), # mbhead mbtail
-(0xFA), # mbhead mbtail bad-mb
-(0xFC), # mbhead mbtail bad-mb
-(0xFD), # mbhead mbtail bad-mb
-(0xFE), # mbhead mbtial bad-mb
-(0xFF);
-INSERT INTO allbytes (a) SELECT a FROM bytes;
-INSERT INTO allbytes (a) SELECT CONCAT(t1.a,t2.a) FROM selected_bytes t1,selected_bytes t2;
-INSERT INTO allbytes (a) SELECT CONCAT(0x5C,t1.a,t2.a) FROM selected_bytes t1,selected_bytes t2;
-INSERT INTO allbytes (a) SELECT CONCAT(0x5C,t1.a,0x5C,t2.a) FROM selected_bytes t1,selected_bytes t2;
-DROP TABLE selected_bytes;
-DELETE FROM allbytes WHERE
-OCTET_LENGTH(a)>1 AND
-LOCATE(0x5C,a)=0 AND
-a NOT LIKE '%\'%' AND
- a NOT LIKE '%"%';
-CREATE PROCEDURE p1(val VARBINARY(10))
-BEGIN
-DECLARE EXIT HANDLER FOR SQLSTATE '42000' INSERT INTO t1 (a,b) VALUES(val,NULL);
-SET @query=CONCAT(_binary"INSERT INTO t1 (a,b) VALUES (0x",HEX(val),",'",val,"')");
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-END//
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE val VARBINARY(10);
-DECLARE done INT DEFAULT FALSE;
-DECLARE stmt CURSOR FOR SELECT a FROM allbytes;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN stmt;
-read_loop1: LOOP
-FETCH stmt INTO val;
-IF done THEN
-LEAVE read_loop1;
-END IF;
-CALL p1(val);
-END LOOP;
-CLOSE stmt;
-END//
-CREATE FUNCTION iswellformed(a VARBINARY(256)) RETURNS INT RETURN a=BINARY CONVERT(a USING big5);//
-CREATE FUNCTION unescape(a VARBINARY(256)) RETURNS VARBINARY(256)
-BEGIN
-# We need to do it in a way to avoid producing new escape sequences
-# First, enclose all known escsape sequences to '{{xx}}'
- # - Backslash not followed by a LIKE pattern characters _ and %
-# - Double escapes
-# This uses PCRE Branch Reset Groups: (?|(alt1)|(alt2)|(alt3)).
-# So '\\1' in the last argument always means the match, no matter
-# which alternative it came from.
-SET a=REGEXP_REPLACE(a,'(?|(\\\\[^_%])|(\\x{27}\\x{27}))','{{\\1}}');
-# Now unescape all enclosed standard escape sequences
-SET a=REPLACE(a,'{{\\0}}', '\0');
-SET a=REPLACE(a,'{{\\b}}', '\b');
-SET a=REPLACE(a,'{{\\t}}', '\t');
-SET a=REPLACE(a,'{{\\r}}', '\r');
-SET a=REPLACE(a,'{{\\n}}', '\n');
-SET a=REPLACE(a,'{{\\Z}}', '\Z');
-SET a=REPLACE(a,'{{\\\'}}', '\'');
-# Unescape double quotes
-SET a=REPLACE(a,'{{\'\'}}', '\'');
- # Unescape the rest: all other \x sequences mean just 'x'
- SET a=REGEXP_REPLACE(a, '{{\\\\(.|\\R)}}', '\\1');
- RETURN a;
-END//
-CREATE FUNCTION unescape_type(a VARBINARY(256),b VARBINARY(256)) RETURNS VARBINARY(256)
-BEGIN
-RETURN CASE
-WHEN b IS NULL THEN '[SyntErr]'
- WHEN a=b THEN CASE
-WHEN OCTET_LENGTH(a)=1 THEN '[Preserve]'
- WHEN a RLIKE '\\\\[_%]' THEN '[Preserve][LIKE]'
- WHEN a RLIKE '^[[:ascii:]]+$' THEN '[Preserve][ASCII]'
- ELSE '[Preserv][MB]' END
-WHEN REPLACE(a,0x5C,'')=b THEN '[Trivial]'
- WHEN UNESCAPE(a)=b THEN '[Regular]'
- ELSE '[Special]' END;
-END//
-CREATE FUNCTION wellformedness(a VARBINARY(256), b VARBINARY(256))
-RETURNS VARBINARY(256)
-BEGIN
-RETURN CASE
-WHEN b IS NULL THEN ''
- WHEN NOT iswellformed(a) AND iswellformed(b) THEN '[FIXED]'
- WHEN iswellformed(a) AND NOT iswellformed(b) THEN '[BROKE]'
- WHEN NOT iswellformed(a) AND NOT iswellformed(b) THEN '[ILSEQ]'
- ELSE ''
- END;
-END//
-CREATE FUNCTION mysql_real_escape_string_generated(a VARBINARY(256))
-RETURNS VARBINARY(256)
-BEGIN
-DECLARE a1 BINARY(1) DEFAULT SUBSTR(a,1,1);
-DECLARE a2 BINARY(1) DEFAULT SUBSTR(a,2,1);
-DECLARE a3 BINARY(1) DEFAULT SUBSTR(a,3,1);
-DECLARE a4 BINARY(1) DEFAULT SUBSTR(a,4,1);
-DECLARE a2a4 BINARY(2) DEFAULT CONCAT(a2,a4);
-RETURN CASE
-WHEN (a1=0x5C) AND
-(a3=0x5C) AND
-(a2>0x7F) AND
-(a4 NOT IN ('_','%','0','t','r','n','Z')) AND
-iswellformed(a2a4) THEN '[USER]'
- ELSE ''
- END;
-END//
-CREATE TABLE t1 (a VARBINARY(10),b VARBINARY(10));
-CALL p2();
-SELECT HEX(a),HEX(b),
-CONCAT(unescape_type(a,b),
-wellformedness(a,b),
-mysql_real_escape_string_generated(a),
-IF(UNESCAPE(a)<>b,CONCAT('[BAD',HEX(UNESCAPE(a)),']'),'')) AS comment
-FROM t1 ORDER BY LENGTH(a),a;
-HEX(a) HEX(b) comment
-00 00 [Preserve]
-01 01 [Preserve]
-02 02 [Preserve]
-03 03 [Preserve]
-04 04 [Preserve]
-05 05 [Preserve]
-06 06 [Preserve]
-07 07 [Preserve]
-08 08 [Preserve]
-09 09 [Preserve]
-0A 0A [Preserve]
-0B 0B [Preserve]
-0C 0C [Preserve]
-0D 0D [Preserve]
-0E 0E [Preserve]
-0F 0F [Preserve]
-10 10 [Preserve]
-11 11 [Preserve]
-12 12 [Preserve]
-13 13 [Preserve]
-14 14 [Preserve]
-15 15 [Preserve]
-16 16 [Preserve]
-17 17 [Preserve]
-18 18 [Preserve]
-19 19 [Preserve]
-1A 1A [Preserve]
-1B 1B [Preserve]
-1C 1C [Preserve]
-1D 1D [Preserve]
-1E 1E [Preserve]
-1F 1F [Preserve]
-20 20 [Preserve]
-21 21 [Preserve]
-22 22 [Preserve]
-23 23 [Preserve]
-24 24 [Preserve]
-25 25 [Preserve]
-26 26 [Preserve]
-27 NULL [SyntErr]
-28 28 [Preserve]
-29 29 [Preserve]
-2A 2A [Preserve]
-2B 2B [Preserve]
-2C 2C [Preserve]
-2D 2D [Preserve]
-2E 2E [Preserve]
-2F 2F [Preserve]
-30 30 [Preserve]
-31 31 [Preserve]
-32 32 [Preserve]
-33 33 [Preserve]
-34 34 [Preserve]
-35 35 [Preserve]
-36 36 [Preserve]
-37 37 [Preserve]
-38 38 [Preserve]
-39 39 [Preserve]
-3A 3A [Preserve]
-3B 3B [Preserve]
-3C 3C [Preserve]
-3D 3D [Preserve]
-3E 3E [Preserve]
-3F 3F [Preserve]
-40 40 [Preserve]
-41 41 [Preserve]
-42 42 [Preserve]
-43 43 [Preserve]
-44 44 [Preserve]
-45 45 [Preserve]
-46 46 [Preserve]
-47 47 [Preserve]
-48 48 [Preserve]
-49 49 [Preserve]
-4A 4A [Preserve]
-4B 4B [Preserve]
-4C 4C [Preserve]
-4D 4D [Preserve]
-4E 4E [Preserve]
-4F 4F [Preserve]
-50 50 [Preserve]
-51 51 [Preserve]
-52 52 [Preserve]
-53 53 [Preserve]
-54 54 [Preserve]
-55 55 [Preserve]
-56 56 [Preserve]
-57 57 [Preserve]
-58 58 [Preserve]
-59 59 [Preserve]
-5A 5A [Preserve]
-5B 5B [Preserve]
-5C NULL [SyntErr]
-5D 5D [Preserve]
-5E 5E [Preserve]
-5F 5F [Preserve]
-60 60 [Preserve]
-61 61 [Preserve]
-62 62 [Preserve]
-63 63 [Preserve]
-64 64 [Preserve]
-65 65 [Preserve]
-66 66 [Preserve]
-67 67 [Preserve]
-68 68 [Preserve]
-69 69 [Preserve]
-6A 6A [Preserve]
-6B 6B [Preserve]
-6C 6C [Preserve]
-6D 6D [Preserve]
-6E 6E [Preserve]
-6F 6F [Preserve]
-70 70 [Preserve]
-71 71 [Preserve]
-72 72 [Preserve]
-73 73 [Preserve]
-74 74 [Preserve]
-75 75 [Preserve]
-76 76 [Preserve]
-77 77 [Preserve]
-78 78 [Preserve]
-79 79 [Preserve]
-7A 7A [Preserve]
-7B 7B [Preserve]
-7C 7C [Preserve]
-7D 7D [Preserve]
-7E 7E [Preserve]
-7F 7F [Preserve]
-80 80 [Preserve][ILSEQ]
-81 81 [Preserve][ILSEQ]
-82 82 [Preserve][ILSEQ]
-83 83 [Preserve][ILSEQ]
-84 84 [Preserve][ILSEQ]
-85 85 [Preserve][ILSEQ]
-86 86 [Preserve][ILSEQ]
-87 87 [Preserve][ILSEQ]
-88 88 [Preserve][ILSEQ]
-89 89 [Preserve][ILSEQ]
-8A 8A [Preserve][ILSEQ]
-8B 8B [Preserve][ILSEQ]
-8C 8C [Preserve][ILSEQ]
-8D 8D [Preserve][ILSEQ]
-8E 8E [Preserve][ILSEQ]
-8F 8F [Preserve][ILSEQ]
-90 90 [Preserve][ILSEQ]
-91 91 [Preserve][ILSEQ]
-92 92 [Preserve][ILSEQ]
-93 93 [Preserve][ILSEQ]
-94 94 [Preserve][ILSEQ]
-95 95 [Preserve][ILSEQ]
-96 96 [Preserve][ILSEQ]
-97 97 [Preserve][ILSEQ]
-98 98 [Preserve][ILSEQ]
-99 99 [Preserve][ILSEQ]
-9A 9A [Preserve][ILSEQ]
-9B 9B [Preserve][ILSEQ]
-9C 9C [Preserve][ILSEQ]
-9D 9D [Preserve][ILSEQ]
-9E 9E [Preserve][ILSEQ]
-9F 9F [Preserve][ILSEQ]
-A0 A0 [Preserve][ILSEQ]
-A1 A1 [Preserve][ILSEQ]
-A2 A2 [Preserve][ILSEQ]
-A3 A3 [Preserve][ILSEQ]
-A4 A4 [Preserve][ILSEQ]
-A5 A5 [Preserve][ILSEQ]
-A6 A6 [Preserve][ILSEQ]
-A7 A7 [Preserve][ILSEQ]
-A8 A8 [Preserve][ILSEQ]
-A9 A9 [Preserve][ILSEQ]
-AA AA [Preserve][ILSEQ]
-AB AB [Preserve][ILSEQ]
-AC AC [Preserve][ILSEQ]
-AD AD [Preserve][ILSEQ]
-AE AE [Preserve][ILSEQ]
-AF AF [Preserve][ILSEQ]
-B0 B0 [Preserve][ILSEQ]
-B1 B1 [Preserve][ILSEQ]
-B2 B2 [Preserve][ILSEQ]
-B3 B3 [Preserve][ILSEQ]
-B4 B4 [Preserve][ILSEQ]
-B5 B5 [Preserve][ILSEQ]
-B6 B6 [Preserve][ILSEQ]
-B7 B7 [Preserve][ILSEQ]
-B8 B8 [Preserve][ILSEQ]
-B9 B9 [Preserve][ILSEQ]
-BA BA [Preserve][ILSEQ]
-BB BB [Preserve][ILSEQ]
-BC BC [Preserve][ILSEQ]
-BD BD [Preserve][ILSEQ]
-BE BE [Preserve][ILSEQ]
-BF BF [Preserve][ILSEQ]
-C0 C0 [Preserve][ILSEQ]
-C1 C1 [Preserve][ILSEQ]
-C2 C2 [Preserve][ILSEQ]
-C3 C3 [Preserve][ILSEQ]
-C4 C4 [Preserve][ILSEQ]
-C5 C5 [Preserve][ILSEQ]
-C6 C6 [Preserve][ILSEQ]
-C7 C7 [Preserve][ILSEQ]
-C8 C8 [Preserve][ILSEQ]
-C9 C9 [Preserve][ILSEQ]
-CA CA [Preserve][ILSEQ]
-CB CB [Preserve][ILSEQ]
-CC CC [Preserve][ILSEQ]
-CD CD [Preserve][ILSEQ]
-CE CE [Preserve][ILSEQ]
-CF CF [Preserve][ILSEQ]
-D0 D0 [Preserve][ILSEQ]
-D1 D1 [Preserve][ILSEQ]
-D2 D2 [Preserve][ILSEQ]
-D3 D3 [Preserve][ILSEQ]
-D4 D4 [Preserve][ILSEQ]
-D5 D5 [Preserve][ILSEQ]
-D6 D6 [Preserve][ILSEQ]
-D7 D7 [Preserve][ILSEQ]
-D8 D8 [Preserve][ILSEQ]
-D9 D9 [Preserve][ILSEQ]
-DA DA [Preserve][ILSEQ]
-DB DB [Preserve][ILSEQ]
-DC DC [Preserve][ILSEQ]
-DD DD [Preserve][ILSEQ]
-DE DE [Preserve][ILSEQ]
-DF DF [Preserve][ILSEQ]
-E0 E0 [Preserve][ILSEQ]
-E1 E1 [Preserve][ILSEQ]
-E2 E2 [Preserve][ILSEQ]
-E3 E3 [Preserve][ILSEQ]
-E4 E4 [Preserve][ILSEQ]
-E5 E5 [Preserve][ILSEQ]
-E6 E6 [Preserve][ILSEQ]
-E7 E7 [Preserve][ILSEQ]
-E8 E8 [Preserve][ILSEQ]
-E9 E9 [Preserve][ILSEQ]
-EA EA [Preserve][ILSEQ]
-EB EB [Preserve][ILSEQ]
-EC EC [Preserve][ILSEQ]
-ED ED [Preserve][ILSEQ]
-EE EE [Preserve][ILSEQ]
-EF EF [Preserve][ILSEQ]
-F0 F0 [Preserve][ILSEQ]
-F1 F1 [Preserve][ILSEQ]
-F2 F2 [Preserve][ILSEQ]
-F3 F3 [Preserve][ILSEQ]
-F4 F4 [Preserve][ILSEQ]
-F5 F5 [Preserve][ILSEQ]
-F6 F6 [Preserve][ILSEQ]
-F7 F7 [Preserve][ILSEQ]
-F8 F8 [Preserve][ILSEQ]
-F9 F9 [Preserve][ILSEQ]
-FA FA [Preserve][ILSEQ]
-FB FB [Preserve][ILSEQ]
-FC FC [Preserve][ILSEQ]
-FD FD [Preserve][ILSEQ]
-FE FE [Preserve][ILSEQ]
-FF FF [Preserve][ILSEQ]
-0022 0022 [Preserve][ASCII]
-0027 NULL [SyntErr]
-005C NULL [SyntErr]
-0822 0822 [Preserve][ASCII]
-0827 NULL [SyntErr]
-085C NULL [SyntErr]
-0922 0922 [Preserve][ASCII]
-0927 NULL [SyntErr]
-095C NULL [SyntErr]
-0A22 0A22 [Preserve][ASCII]
-0A27 NULL [SyntErr]
-0A5C NULL [SyntErr]
-0D22 0D22 [Preserve][ASCII]
-0D27 NULL [SyntErr]
-0D5C NULL [SyntErr]
-1A22 1A22 [Preserve][ASCII]
-1A27 NULL [SyntErr]
-1A5C NULL [SyntErr]
-2200 2200 [Preserve][ASCII]
-2208 2208 [Preserve][ASCII]
-2209 2209 [Preserve][ASCII]
-220A 220A [Preserve][ASCII]
-220D 220D [Preserve][ASCII]
-221A 221A [Preserve][ASCII]
-2222 2222 [Preserve][ASCII]
-2225 2225 [Preserve][ASCII]
-2227 NULL [SyntErr]
-2230 2230 [Preserve][ASCII]
-223F 223F [Preserve][ASCII]
-2240 2240 [Preserve][ASCII]
-225A 225A [Preserve][ASCII]
-225C NULL [SyntErr]
-225F 225F [Preserve][ASCII]
-2261 2261 [Preserve][ASCII]
-2262 2262 [Preserve][ASCII]
-226E 226E [Preserve][ASCII]
-2272 2272 [Preserve][ASCII]
-2274 2274 [Preserve][ASCII]
-227E 227E [Preserve][ASCII]
-227F 227F [Preserve][ASCII]
-2280 2280 [Preserv][MB][ILSEQ]
-2281 2281 [Preserv][MB][ILSEQ]
-229F 229F [Preserv][MB][ILSEQ]
-22A0 22A0 [Preserv][MB][ILSEQ]
-22A1 22A1 [Preserv][MB][ILSEQ]
-22E0 22E0 [Preserv][MB][ILSEQ]
-22EF 22EF [Preserv][MB][ILSEQ]
-22F9 22F9 [Preserv][MB][ILSEQ]
-22FA 22FA [Preserv][MB][ILSEQ]
-22FC 22FC [Preserv][MB][ILSEQ]
-22FD 22FD [Preserv][MB][ILSEQ]
-22FE 22FE [Preserv][MB][ILSEQ]
-22FF 22FF [Preserv][MB][ILSEQ]
-2522 2522 [Preserve][ASCII]
-2527 NULL [SyntErr]
-255C NULL [SyntErr]
-2700 NULL [SyntErr]
-2708 NULL [SyntErr]
-2709 NULL [SyntErr]
-270A NULL [SyntErr]
-270D NULL [SyntErr]
-271A NULL [SyntErr]
-2722 NULL [SyntErr]
-2725 NULL [SyntErr]
-2727 27 [Regular]
-2730 NULL [SyntErr]
-273F NULL [SyntErr]
-2740 NULL [SyntErr]
-275A NULL [SyntErr]
-275C NULL [SyntErr]
-275F NULL [SyntErr]
-2761 NULL [SyntErr]
-2762 NULL [SyntErr]
-276E NULL [SyntErr]
-2772 NULL [SyntErr]
-2774 NULL [SyntErr]
-277E NULL [SyntErr]
-277F NULL [SyntErr]
-2780 NULL [SyntErr]
-2781 NULL [SyntErr]
-279F NULL [SyntErr]
-27A0 NULL [SyntErr]
-27A1 NULL [SyntErr]
-27E0 NULL [SyntErr]
-27EF NULL [SyntErr]
-27F9 NULL [SyntErr]
-27FA NULL [SyntErr]
-27FC NULL [SyntErr]
-27FD NULL [SyntErr]
-27FE NULL [SyntErr]
-27FF NULL [SyntErr]
-3022 3022 [Preserve][ASCII]
-3027 NULL [SyntErr]
-305C NULL [SyntErr]
-3F22 3F22 [Preserve][ASCII]
-3F27 NULL [SyntErr]
-3F5C NULL [SyntErr]
-4022 4022 [Preserve][ASCII]
-4027 NULL [SyntErr]
-405C NULL [SyntErr]
-5A22 5A22 [Preserve][ASCII]
-5A27 NULL [SyntErr]
-5A5C NULL [SyntErr]
-5C00 00 [Trivial]
-5C08 08 [Trivial]
-5C09 09 [Trivial]
-5C0A 0A [Trivial]
-5C0D 0D [Trivial]
-5C1A 1A [Trivial]
-5C22 22 [Trivial]
-5C25 5C25 [Preserve][LIKE]
-5C27 27 [Trivial]
-5C30 00 [Regular]
-5C3F 3F [Trivial]
-5C40 40 [Trivial]
-5C5A 1A [Regular]
-5C5C 5C [Regular]
-5C5F 5C5F [Preserve][LIKE]
-5C61 61 [Trivial]
-5C62 08 [Regular]
-5C6E 0A [Regular]
-5C72 0D [Regular]
-5C74 09 [Regular]
-5C7E 7E [Trivial]
-5C7F 7F [Trivial]
-5C80 80 [Trivial][ILSEQ]
-5C81 81 [Trivial][ILSEQ]
-5C9F 9F [Trivial][ILSEQ]
-5CA0 A0 [Trivial][ILSEQ]
-5CA1 A1 [Trivial][ILSEQ]
-5CE0 E0 [Trivial][ILSEQ]
-5CEF EF [Trivial][ILSEQ]
-5CF9 F9 [Trivial][ILSEQ]
-5CFA FA [Trivial][ILSEQ]
-5CFC FC [Trivial][ILSEQ]
-5CFD FD [Trivial][ILSEQ]
-5CFE FE [Trivial][ILSEQ]
-5CFF FF [Trivial][ILSEQ]
-5F22 5F22 [Preserve][ASCII]
-5F27 NULL [SyntErr]
-5F5C NULL [SyntErr]
-6122 6122 [Preserve][ASCII]
-6127 NULL [SyntErr]
-615C NULL [SyntErr]
-6222 6222 [Preserve][ASCII]
-6227 NULL [SyntErr]
-625C NULL [SyntErr]
-6E22 6E22 [Preserve][ASCII]
-6E27 NULL [SyntErr]
-6E5C NULL [SyntErr]
-7222 7222 [Preserve][ASCII]
-7227 NULL [SyntErr]
-725C NULL [SyntErr]
-7422 7422 [Preserve][ASCII]
-7427 NULL [SyntErr]
-745C NULL [SyntErr]
-7E22 7E22 [Preserve][ASCII]
-7E27 NULL [SyntErr]
-7E5C NULL [SyntErr]
-7F22 7F22 [Preserve][ASCII]
-7F27 NULL [SyntErr]
-7F5C NULL [SyntErr]
-8022 8022 [Preserv][MB][ILSEQ]
-8027 NULL [SyntErr]
-805C NULL [SyntErr]
-8122 8122 [Preserv][MB][ILSEQ]
-8127 NULL [SyntErr]
-815C NULL [SyntErr]
-9F22 9F22 [Preserv][MB][ILSEQ]
-9F27 NULL [SyntErr]
-9F5C NULL [SyntErr]
-A022 A022 [Preserv][MB][ILSEQ]
-A027 NULL [SyntErr]
-A05C NULL [SyntErr]
-A122 A122 [Preserv][MB][ILSEQ]
-A127 NULL [SyntErr]
-A15C A15C [Preserv][MB]
-E022 E022 [Preserv][MB][ILSEQ]
-E027 NULL [SyntErr]
-E05C E05C [Preserv][MB]
-EF22 EF22 [Preserv][MB][ILSEQ]
-EF27 NULL [SyntErr]
-EF5C EF5C [Preserv][MB]
-F922 F922 [Preserv][MB][ILSEQ]
-F927 NULL [SyntErr]
-F95C F95C [Preserv][MB]
-FA22 FA22 [Preserv][MB][ILSEQ]
-FA27 NULL [SyntErr]
-FA5C NULL [SyntErr]
-FC22 FC22 [Preserv][MB][ILSEQ]
-FC27 NULL [SyntErr]
-FC5C NULL [SyntErr]
-FD22 FD22 [Preserv][MB][ILSEQ]
-FD27 NULL [SyntErr]
-FD5C NULL [SyntErr]
-FE22 FE22 [Preserv][MB][ILSEQ]
-FE27 NULL [SyntErr]
-FE5C NULL [SyntErr]
-FF22 FF22 [Preserv][MB][ILSEQ]
-FF27 NULL [SyntErr]
-FF5C NULL [SyntErr]
-5C0000 0000 [Trivial]
-5C0008 0008 [Trivial]
-5C0009 0009 [Trivial]
-5C000A 000A [Trivial]
-5C000D 000D [Trivial]
-5C001A 001A [Trivial]
-5C0022 0022 [Trivial]
-5C0025 0025 [Trivial]
-5C0027 NULL [SyntErr]
-5C0030 0030 [Trivial]
-5C003F 003F [Trivial]
-5C0040 0040 [Trivial]
-5C005A 005A [Trivial]
-5C005C NULL [SyntErr]
-5C005F 005F [Trivial]
-5C0061 0061 [Trivial]
-5C0062 0062 [Trivial]
-5C006E 006E [Trivial]
-5C0072 0072 [Trivial]
-5C0074 0074 [Trivial]
-5C007E 007E [Trivial]
-5C007F 007F [Trivial]
-5C0080 0080 [Trivial][ILSEQ]
-5C0081 0081 [Trivial][ILSEQ]
-5C009F 009F [Trivial][ILSEQ]
-5C00A0 00A0 [Trivial][ILSEQ]
-5C00A1 00A1 [Trivial][ILSEQ]
-5C00E0 00E0 [Trivial][ILSEQ]
-5C00EF 00EF [Trivial][ILSEQ]
-5C00F9 00F9 [Trivial][ILSEQ]
-5C00FA 00FA [Trivial][ILSEQ]
-5C00FC 00FC [Trivial][ILSEQ]
-5C00FD 00FD [Trivial][ILSEQ]
-5C00FE 00FE [Trivial][ILSEQ]
-5C00FF 00FF [Trivial][ILSEQ]
-5C0800 0800 [Trivial]
-5C0808 0808 [Trivial]
-5C0809 0809 [Trivial]
-5C080A 080A [Trivial]
-5C080D 080D [Trivial]
-5C081A 081A [Trivial]
-5C0822 0822 [Trivial]
-5C0825 0825 [Trivial]
-5C0827 NULL [SyntErr]
-5C0830 0830 [Trivial]
-5C083F 083F [Trivial]
-5C0840 0840 [Trivial]
-5C085A 085A [Trivial]
-5C085C NULL [SyntErr]
-5C085F 085F [Trivial]
-5C0861 0861 [Trivial]
-5C0862 0862 [Trivial]
-5C086E 086E [Trivial]
-5C0872 0872 [Trivial]
-5C0874 0874 [Trivial]
-5C087E 087E [Trivial]
-5C087F 087F [Trivial]
-5C0880 0880 [Trivial][ILSEQ]
-5C0881 0881 [Trivial][ILSEQ]
-5C089F 089F [Trivial][ILSEQ]
-5C08A0 08A0 [Trivial][ILSEQ]
-5C08A1 08A1 [Trivial][ILSEQ]
-5C08E0 08E0 [Trivial][ILSEQ]
-5C08EF 08EF [Trivial][ILSEQ]
-5C08F9 08F9 [Trivial][ILSEQ]
-5C08FA 08FA [Trivial][ILSEQ]
-5C08FC 08FC [Trivial][ILSEQ]
-5C08FD 08FD [Trivial][ILSEQ]
-5C08FE 08FE [Trivial][ILSEQ]
-5C08FF 08FF [Trivial][ILSEQ]
-5C0900 0900 [Trivial]
-5C0908 0908 [Trivial]
-5C0909 0909 [Trivial]
-5C090A 090A [Trivial]
-5C090D 090D [Trivial]
-5C091A 091A [Trivial]
-5C0922 0922 [Trivial]
-5C0925 0925 [Trivial]
-5C0927 NULL [SyntErr]
-5C0930 0930 [Trivial]
-5C093F 093F [Trivial]
-5C0940 0940 [Trivial]
-5C095A 095A [Trivial]
-5C095C NULL [SyntErr]
-5C095F 095F [Trivial]
-5C0961 0961 [Trivial]
-5C0962 0962 [Trivial]
-5C096E 096E [Trivial]
-5C0972 0972 [Trivial]
-5C0974 0974 [Trivial]
-5C097E 097E [Trivial]
-5C097F 097F [Trivial]
-5C0980 0980 [Trivial][ILSEQ]
-5C0981 0981 [Trivial][ILSEQ]
-5C099F 099F [Trivial][ILSEQ]
-5C09A0 09A0 [Trivial][ILSEQ]
-5C09A1 09A1 [Trivial][ILSEQ]
-5C09E0 09E0 [Trivial][ILSEQ]
-5C09EF 09EF [Trivial][ILSEQ]
-5C09F9 09F9 [Trivial][ILSEQ]
-5C09FA 09FA [Trivial][ILSEQ]
-5C09FC 09FC [Trivial][ILSEQ]
-5C09FD 09FD [Trivial][ILSEQ]
-5C09FE 09FE [Trivial][ILSEQ]
-5C09FF 09FF [Trivial][ILSEQ]
-5C0A00 0A00 [Trivial]
-5C0A08 0A08 [Trivial]
-5C0A09 0A09 [Trivial]
-5C0A0A 0A0A [Trivial]
-5C0A0D 0A0D [Trivial]
-5C0A1A 0A1A [Trivial]
-5C0A22 0A22 [Trivial]
-5C0A25 0A25 [Trivial]
-5C0A27 NULL [SyntErr]
-5C0A30 0A30 [Trivial]
-5C0A3F 0A3F [Trivial]
-5C0A40 0A40 [Trivial]
-5C0A5A 0A5A [Trivial]
-5C0A5C NULL [SyntErr]
-5C0A5F 0A5F [Trivial]
-5C0A61 0A61 [Trivial]
-5C0A62 0A62 [Trivial]
-5C0A6E 0A6E [Trivial]
-5C0A72 0A72 [Trivial]
-5C0A74 0A74 [Trivial]
-5C0A7E 0A7E [Trivial]
-5C0A7F 0A7F [Trivial]
-5C0A80 0A80 [Trivial][ILSEQ]
-5C0A81 0A81 [Trivial][ILSEQ]
-5C0A9F 0A9F [Trivial][ILSEQ]
-5C0AA0 0AA0 [Trivial][ILSEQ]
-5C0AA1 0AA1 [Trivial][ILSEQ]
-5C0AE0 0AE0 [Trivial][ILSEQ]
-5C0AEF 0AEF [Trivial][ILSEQ]
-5C0AF9 0AF9 [Trivial][ILSEQ]
-5C0AFA 0AFA [Trivial][ILSEQ]
-5C0AFC 0AFC [Trivial][ILSEQ]
-5C0AFD 0AFD [Trivial][ILSEQ]
-5C0AFE 0AFE [Trivial][ILSEQ]
-5C0AFF 0AFF [Trivial][ILSEQ]
-5C0D00 0D00 [Trivial]
-5C0D08 0D08 [Trivial]
-5C0D09 0D09 [Trivial]
-5C0D0A 0D0A [Trivial]
-5C0D0D 0D0D [Trivial]
-5C0D1A 0D1A [Trivial]
-5C0D22 0D22 [Trivial]
-5C0D25 0D25 [Trivial]
-5C0D27 NULL [SyntErr]
-5C0D30 0D30 [Trivial]
-5C0D3F 0D3F [Trivial]
-5C0D40 0D40 [Trivial]
-5C0D5A 0D5A [Trivial]
-5C0D5C NULL [SyntErr]
-5C0D5F 0D5F [Trivial]
-5C0D61 0D61 [Trivial]
-5C0D62 0D62 [Trivial]
-5C0D6E 0D6E [Trivial]
-5C0D72 0D72 [Trivial]
-5C0D74 0D74 [Trivial]
-5C0D7E 0D7E [Trivial]
-5C0D7F 0D7F [Trivial]
-5C0D80 0D80 [Trivial][ILSEQ]
-5C0D81 0D81 [Trivial][ILSEQ]
-5C0D9F 0D9F [Trivial][ILSEQ]
-5C0DA0 0DA0 [Trivial][ILSEQ]
-5C0DA1 0DA1 [Trivial][ILSEQ]
-5C0DE0 0DE0 [Trivial][ILSEQ]
-5C0DEF 0DEF [Trivial][ILSEQ]
-5C0DF9 0DF9 [Trivial][ILSEQ]
-5C0DFA 0DFA [Trivial][ILSEQ]
-5C0DFC 0DFC [Trivial][ILSEQ]
-5C0DFD 0DFD [Trivial][ILSEQ]
-5C0DFE 0DFE [Trivial][ILSEQ]
-5C0DFF 0DFF [Trivial][ILSEQ]
-5C1A00 1A00 [Trivial]
-5C1A08 1A08 [Trivial]
-5C1A09 1A09 [Trivial]
-5C1A0A 1A0A [Trivial]
-5C1A0D 1A0D [Trivial]
-5C1A1A 1A1A [Trivial]
-5C1A22 1A22 [Trivial]
-5C1A25 1A25 [Trivial]
-5C1A27 NULL [SyntErr]
-5C1A30 1A30 [Trivial]
-5C1A3F 1A3F [Trivial]
-5C1A40 1A40 [Trivial]
-5C1A5A 1A5A [Trivial]
-5C1A5C NULL [SyntErr]
-5C1A5F 1A5F [Trivial]
-5C1A61 1A61 [Trivial]
-5C1A62 1A62 [Trivial]
-5C1A6E 1A6E [Trivial]
-5C1A72 1A72 [Trivial]
-5C1A74 1A74 [Trivial]
-5C1A7E 1A7E [Trivial]
-5C1A7F 1A7F [Trivial]
-5C1A80 1A80 [Trivial][ILSEQ]
-5C1A81 1A81 [Trivial][ILSEQ]
-5C1A9F 1A9F [Trivial][ILSEQ]
-5C1AA0 1AA0 [Trivial][ILSEQ]
-5C1AA1 1AA1 [Trivial][ILSEQ]
-5C1AE0 1AE0 [Trivial][ILSEQ]
-5C1AEF 1AEF [Trivial][ILSEQ]
-5C1AF9 1AF9 [Trivial][ILSEQ]
-5C1AFA 1AFA [Trivial][ILSEQ]
-5C1AFC 1AFC [Trivial][ILSEQ]
-5C1AFD 1AFD [Trivial][ILSEQ]
-5C1AFE 1AFE [Trivial][ILSEQ]
-5C1AFF 1AFF [Trivial][ILSEQ]
-5C2200 2200 [Trivial]
-5C2208 2208 [Trivial]
-5C2209 2209 [Trivial]
-5C220A 220A [Trivial]
-5C220D 220D [Trivial]
-5C221A 221A [Trivial]
-5C2222 2222 [Trivial]
-5C2225 2225 [Trivial]
-5C2227 NULL [SyntErr]
-5C2230 2230 [Trivial]
-5C223F 223F [Trivial]
-5C2240 2240 [Trivial]
-5C225A 225A [Trivial]
-5C225C NULL [SyntErr]
-5C225F 225F [Trivial]
-5C2261 2261 [Trivial]
-5C2262 2262 [Trivial]
-5C226E 226E [Trivial]
-5C2272 2272 [Trivial]
-5C2274 2274 [Trivial]
-5C227E 227E [Trivial]
-5C227F 227F [Trivial]
-5C2280 2280 [Trivial][ILSEQ]
-5C2281 2281 [Trivial][ILSEQ]
-5C229F 229F [Trivial][ILSEQ]
-5C22A0 22A0 [Trivial][ILSEQ]
-5C22A1 22A1 [Trivial][ILSEQ]
-5C22E0 22E0 [Trivial][ILSEQ]
-5C22EF 22EF [Trivial][ILSEQ]
-5C22F9 22F9 [Trivial][ILSEQ]
-5C22FA 22FA [Trivial][ILSEQ]
-5C22FC 22FC [Trivial][ILSEQ]
-5C22FD 22FD [Trivial][ILSEQ]
-5C22FE 22FE [Trivial][ILSEQ]
-5C22FF 22FF [Trivial][ILSEQ]
-5C2500 5C2500 [Preserve][LIKE]
-5C2508 5C2508 [Preserve][LIKE]
-5C2509 5C2509 [Preserve][LIKE]
-5C250A 5C250A [Preserve][LIKE]
-5C250D 5C250D [Preserve][LIKE]
-5C251A 5C251A [Preserve][LIKE]
-5C2522 5C2522 [Preserve][LIKE]
-5C2525 5C2525 [Preserve][LIKE]
-5C2527 NULL [SyntErr]
-5C2530 5C2530 [Preserve][LIKE]
-5C253F 5C253F [Preserve][LIKE]
-5C2540 5C2540 [Preserve][LIKE]
-5C255A 5C255A [Preserve][LIKE]
-5C255C NULL [SyntErr]
-5C255F 5C255F [Preserve][LIKE]
-5C2561 5C2561 [Preserve][LIKE]
-5C2562 5C2562 [Preserve][LIKE]
-5C256E 5C256E [Preserve][LIKE]
-5C2572 5C2572 [Preserve][LIKE]
-5C2574 5C2574 [Preserve][LIKE]
-5C257E 5C257E [Preserve][LIKE]
-5C257F 5C257F [Preserve][LIKE]
-5C2580 5C2580 [Preserve][LIKE][ILSEQ]
-5C2581 5C2581 [Preserve][LIKE][ILSEQ]
-5C259F 5C259F [Preserve][LIKE][ILSEQ]
-5C25A0 5C25A0 [Preserve][LIKE][ILSEQ]
-5C25A1 5C25A1 [Preserve][LIKE][ILSEQ]
-5C25E0 5C25E0 [Preserve][LIKE][ILSEQ]
-5C25EF 5C25EF [Preserve][LIKE][ILSEQ]
-5C25F9 5C25F9 [Preserve][LIKE][ILSEQ]
-5C25FA 5C25FA [Preserve][LIKE][ILSEQ]
-5C25FC 5C25FC [Preserve][LIKE][ILSEQ]
-5C25FD 5C25FD [Preserve][LIKE][ILSEQ]
-5C25FE 5C25FE [Preserve][LIKE][ILSEQ]
-5C25FF 5C25FF [Preserve][LIKE][ILSEQ]
-5C2700 2700 [Trivial]
-5C2708 2708 [Trivial]
-5C2709 2709 [Trivial]
-5C270A 270A [Trivial]
-5C270D 270D [Trivial]
-5C271A 271A [Trivial]
-5C2722 2722 [Trivial]
-5C2725 2725 [Trivial]
-5C2727 NULL [SyntErr]
-5C2730 2730 [Trivial]
-5C273F 273F [Trivial]
-5C2740 2740 [Trivial]
-5C275A 275A [Trivial]
-5C275C NULL [SyntErr]
-5C275F 275F [Trivial]
-5C2761 2761 [Trivial]
-5C2762 2762 [Trivial]
-5C276E 276E [Trivial]
-5C2772 2772 [Trivial]
-5C2774 2774 [Trivial]
-5C277E 277E [Trivial]
-5C277F 277F [Trivial]
-5C2780 2780 [Trivial][ILSEQ]
-5C2781 2781 [Trivial][ILSEQ]
-5C279F 279F [Trivial][ILSEQ]
-5C27A0 27A0 [Trivial][ILSEQ]
-5C27A1 27A1 [Trivial][ILSEQ]
-5C27E0 27E0 [Trivial][ILSEQ]
-5C27EF 27EF [Trivial][ILSEQ]
-5C27F9 27F9 [Trivial][ILSEQ]
-5C27FA 27FA [Trivial][ILSEQ]
-5C27FC 27FC [Trivial][ILSEQ]
-5C27FD 27FD [Trivial][ILSEQ]
-5C27FE 27FE [Trivial][ILSEQ]
-5C27FF 27FF [Trivial][ILSEQ]
-5C3000 0000 [Regular]
-5C3008 0008 [Regular]
-5C3009 0009 [Regular]
-5C300A 000A [Regular]
-5C300D 000D [Regular]
-5C301A 001A [Regular]
-5C3022 0022 [Regular]
-5C3025 0025 [Regular]
-5C3027 NULL [SyntErr]
-5C3030 0030 [Regular]
-5C303F 003F [Regular]
-5C3040 0040 [Regular]
-5C305A 005A [Regular]
-5C305C NULL [SyntErr]
-5C305F 005F [Regular]
-5C3061 0061 [Regular]
-5C3062 0062 [Regular]
-5C306E 006E [Regular]
-5C3072 0072 [Regular]
-5C3074 0074 [Regular]
-5C307E 007E [Regular]
-5C307F 007F [Regular]
-5C3080 0080 [Regular][ILSEQ]
-5C3081 0081 [Regular][ILSEQ]
-5C309F 009F [Regular][ILSEQ]
-5C30A0 00A0 [Regular][ILSEQ]
-5C30A1 00A1 [Regular][ILSEQ]
-5C30E0 00E0 [Regular][ILSEQ]
-5C30EF 00EF [Regular][ILSEQ]
-5C30F9 00F9 [Regular][ILSEQ]
-5C30FA 00FA [Regular][ILSEQ]
-5C30FC 00FC [Regular][ILSEQ]
-5C30FD 00FD [Regular][ILSEQ]
-5C30FE 00FE [Regular][ILSEQ]
-5C30FF 00FF [Regular][ILSEQ]
-5C3F00 3F00 [Trivial]
-5C3F08 3F08 [Trivial]
-5C3F09 3F09 [Trivial]
-5C3F0A 3F0A [Trivial]
-5C3F0D 3F0D [Trivial]
-5C3F1A 3F1A [Trivial]
-5C3F22 3F22 [Trivial]
-5C3F25 3F25 [Trivial]
-5C3F27 NULL [SyntErr]
-5C3F30 3F30 [Trivial]
-5C3F3F 3F3F [Trivial]
-5C3F40 3F40 [Trivial]
-5C3F5A 3F5A [Trivial]
-5C3F5C NULL [SyntErr]
-5C3F5F 3F5F [Trivial]
-5C3F61 3F61 [Trivial]
-5C3F62 3F62 [Trivial]
-5C3F6E 3F6E [Trivial]
-5C3F72 3F72 [Trivial]
-5C3F74 3F74 [Trivial]
-5C3F7E 3F7E [Trivial]
-5C3F7F 3F7F [Trivial]
-5C3F80 3F80 [Trivial][ILSEQ]
-5C3F81 3F81 [Trivial][ILSEQ]
-5C3F9F 3F9F [Trivial][ILSEQ]
-5C3FA0 3FA0 [Trivial][ILSEQ]
-5C3FA1 3FA1 [Trivial][ILSEQ]
-5C3FE0 3FE0 [Trivial][ILSEQ]
-5C3FEF 3FEF [Trivial][ILSEQ]
-5C3FF9 3FF9 [Trivial][ILSEQ]
-5C3FFA 3FFA [Trivial][ILSEQ]
-5C3FFC 3FFC [Trivial][ILSEQ]
-5C3FFD 3FFD [Trivial][ILSEQ]
-5C3FFE 3FFE [Trivial][ILSEQ]
-5C3FFF 3FFF [Trivial][ILSEQ]
-5C4000 4000 [Trivial]
-5C4008 4008 [Trivial]
-5C4009 4009 [Trivial]
-5C400A 400A [Trivial]
-5C400D 400D [Trivial]
-5C401A 401A [Trivial]
-5C4022 4022 [Trivial]
-5C4025 4025 [Trivial]
-5C4027 NULL [SyntErr]
-5C4030 4030 [Trivial]
-5C403F 403F [Trivial]
-5C4040 4040 [Trivial]
-5C405A 405A [Trivial]
-5C405C NULL [SyntErr]
-5C405F 405F [Trivial]
-5C4061 4061 [Trivial]
-5C4062 4062 [Trivial]
-5C406E 406E [Trivial]
-5C4072 4072 [Trivial]
-5C4074 4074 [Trivial]
-5C407E 407E [Trivial]
-5C407F 407F [Trivial]
-5C4080 4080 [Trivial][ILSEQ]
-5C4081 4081 [Trivial][ILSEQ]
-5C409F 409F [Trivial][ILSEQ]
-5C40A0 40A0 [Trivial][ILSEQ]
-5C40A1 40A1 [Trivial][ILSEQ]
-5C40E0 40E0 [Trivial][ILSEQ]
-5C40EF 40EF [Trivial][ILSEQ]
-5C40F9 40F9 [Trivial][ILSEQ]
-5C40FA 40FA [Trivial][ILSEQ]
-5C40FC 40FC [Trivial][ILSEQ]
-5C40FD 40FD [Trivial][ILSEQ]
-5C40FE 40FE [Trivial][ILSEQ]
-5C40FF 40FF [Trivial][ILSEQ]
-5C5A00 1A00 [Regular]
-5C5A08 1A08 [Regular]
-5C5A09 1A09 [Regular]
-5C5A0A 1A0A [Regular]
-5C5A0D 1A0D [Regular]
-5C5A1A 1A1A [Regular]
-5C5A22 1A22 [Regular]
-5C5A25 1A25 [Regular]
-5C5A27 NULL [SyntErr]
-5C5A30 1A30 [Regular]
-5C5A3F 1A3F [Regular]
-5C5A40 1A40 [Regular]
-5C5A5A 1A5A [Regular]
-5C5A5C NULL [SyntErr]
-5C5A5F 1A5F [Regular]
-5C5A61 1A61 [Regular]
-5C5A62 1A62 [Regular]
-5C5A6E 1A6E [Regular]
-5C5A72 1A72 [Regular]
-5C5A74 1A74 [Regular]
-5C5A7E 1A7E [Regular]
-5C5A7F 1A7F [Regular]
-5C5A80 1A80 [Regular][ILSEQ]
-5C5A81 1A81 [Regular][ILSEQ]
-5C5A9F 1A9F [Regular][ILSEQ]
-5C5AA0 1AA0 [Regular][ILSEQ]
-5C5AA1 1AA1 [Regular][ILSEQ]
-5C5AE0 1AE0 [Regular][ILSEQ]
-5C5AEF 1AEF [Regular][ILSEQ]
-5C5AF9 1AF9 [Regular][ILSEQ]
-5C5AFA 1AFA [Regular][ILSEQ]
-5C5AFC 1AFC [Regular][ILSEQ]
-5C5AFD 1AFD [Regular][ILSEQ]
-5C5AFE 1AFE [Regular][ILSEQ]
-5C5AFF 1AFF [Regular][ILSEQ]
-5C5C00 5C00 [Regular]
-5C5C08 5C08 [Regular]
-5C5C09 5C09 [Regular]
-5C5C0A 5C0A [Regular]
-5C5C0D 5C0D [Regular]
-5C5C1A 5C1A [Regular]
-5C5C22 5C22 [Regular]
-5C5C25 5C25 [Regular]
-5C5C27 NULL [SyntErr]
-5C5C30 5C30 [Regular]
-5C5C3F 5C3F [Regular]
-5C5C40 5C40 [Regular]
-5C5C5A 5C5A [Regular]
-5C5C5C NULL [SyntErr]
-5C5C5F 5C5F [Regular]
-5C5C61 5C61 [Regular]
-5C5C62 5C62 [Regular]
-5C5C6E 5C6E [Regular]
-5C5C72 5C72 [Regular]
-5C5C74 5C74 [Regular]
-5C5C7E 5C7E [Regular]
-5C5C7F 5C7F [Regular]
-5C5C80 5C80 [Regular][ILSEQ]
-5C5C81 5C81 [Regular][ILSEQ]
-5C5C9F 5C9F [Regular][ILSEQ]
-5C5CA0 5CA0 [Regular][ILSEQ]
-5C5CA1 5CA1 [Regular][ILSEQ]
-5C5CE0 5CE0 [Regular][ILSEQ]
-5C5CEF 5CEF [Regular][ILSEQ]
-5C5CF9 5CF9 [Regular][ILSEQ]
-5C5CFA 5CFA [Regular][ILSEQ]
-5C5CFC 5CFC [Regular][ILSEQ]
-5C5CFD 5CFD [Regular][ILSEQ]
-5C5CFE 5CFE [Regular][ILSEQ]
-5C5CFF 5CFF [Regular][ILSEQ]
-5C5F00 5C5F00 [Preserve][LIKE]
-5C5F08 5C5F08 [Preserve][LIKE]
-5C5F09 5C5F09 [Preserve][LIKE]
-5C5F0A 5C5F0A [Preserve][LIKE]
-5C5F0D 5C5F0D [Preserve][LIKE]
-5C5F1A 5C5F1A [Preserve][LIKE]
-5C5F22 5C5F22 [Preserve][LIKE]
-5C5F25 5C5F25 [Preserve][LIKE]
-5C5F27 NULL [SyntErr]
-5C5F30 5C5F30 [Preserve][LIKE]
-5C5F3F 5C5F3F [Preserve][LIKE]
-5C5F40 5C5F40 [Preserve][LIKE]
-5C5F5A 5C5F5A [Preserve][LIKE]
-5C5F5C NULL [SyntErr]
-5C5F5F 5C5F5F [Preserve][LIKE]
-5C5F61 5C5F61 [Preserve][LIKE]
-5C5F62 5C5F62 [Preserve][LIKE]
-5C5F6E 5C5F6E [Preserve][LIKE]
-5C5F72 5C5F72 [Preserve][LIKE]
-5C5F74 5C5F74 [Preserve][LIKE]
-5C5F7E 5C5F7E [Preserve][LIKE]
-5C5F7F 5C5F7F [Preserve][LIKE]
-5C5F80 5C5F80 [Preserve][LIKE][ILSEQ]
-5C5F81 5C5F81 [Preserve][LIKE][ILSEQ]
-5C5F9F 5C5F9F [Preserve][LIKE][ILSEQ]
-5C5FA0 5C5FA0 [Preserve][LIKE][ILSEQ]
-5C5FA1 5C5FA1 [Preserve][LIKE][ILSEQ]
-5C5FE0 5C5FE0 [Preserve][LIKE][ILSEQ]
-5C5FEF 5C5FEF [Preserve][LIKE][ILSEQ]
-5C5FF9 5C5FF9 [Preserve][LIKE][ILSEQ]
-5C5FFA 5C5FFA [Preserve][LIKE][ILSEQ]
-5C5FFC 5C5FFC [Preserve][LIKE][ILSEQ]
-5C5FFD 5C5FFD [Preserve][LIKE][ILSEQ]
-5C5FFE 5C5FFE [Preserve][LIKE][ILSEQ]
-5C5FFF 5C5FFF [Preserve][LIKE][ILSEQ]
-5C6100 6100 [Trivial]
-5C6108 6108 [Trivial]
-5C6109 6109 [Trivial]
-5C610A 610A [Trivial]
-5C610D 610D [Trivial]
-5C611A 611A [Trivial]
-5C6122 6122 [Trivial]
-5C6125 6125 [Trivial]
-5C6127 NULL [SyntErr]
-5C6130 6130 [Trivial]
-5C613F 613F [Trivial]
-5C6140 6140 [Trivial]
-5C615A 615A [Trivial]
-5C615C NULL [SyntErr]
-5C615F 615F [Trivial]
-5C6161 6161 [Trivial]
-5C6162 6162 [Trivial]
-5C616E 616E [Trivial]
-5C6172 6172 [Trivial]
-5C6174 6174 [Trivial]
-5C617E 617E [Trivial]
-5C617F 617F [Trivial]
-5C6180 6180 [Trivial][ILSEQ]
-5C6181 6181 [Trivial][ILSEQ]
-5C619F 619F [Trivial][ILSEQ]
-5C61A0 61A0 [Trivial][ILSEQ]
-5C61A1 61A1 [Trivial][ILSEQ]
-5C61E0 61E0 [Trivial][ILSEQ]
-5C61EF 61EF [Trivial][ILSEQ]
-5C61F9 61F9 [Trivial][ILSEQ]
-5C61FA 61FA [Trivial][ILSEQ]
-5C61FC 61FC [Trivial][ILSEQ]
-5C61FD 61FD [Trivial][ILSEQ]
-5C61FE 61FE [Trivial][ILSEQ]
-5C61FF 61FF [Trivial][ILSEQ]
-5C6200 0800 [Regular]
-5C6208 0808 [Regular]
-5C6209 0809 [Regular]
-5C620A 080A [Regular]
-5C620D 080D [Regular]
-5C621A 081A [Regular]
-5C6222 0822 [Regular]
-5C6225 0825 [Regular]
-5C6227 NULL [SyntErr]
-5C6230 0830 [Regular]
-5C623F 083F [Regular]
-5C6240 0840 [Regular]
-5C625A 085A [Regular]
-5C625C NULL [SyntErr]
-5C625F 085F [Regular]
-5C6261 0861 [Regular]
-5C6262 0862 [Regular]
-5C626E 086E [Regular]
-5C6272 0872 [Regular]
-5C6274 0874 [Regular]
-5C627E 087E [Regular]
-5C627F 087F [Regular]
-5C6280 0880 [Regular][ILSEQ]
-5C6281 0881 [Regular][ILSEQ]
-5C629F 089F [Regular][ILSEQ]
-5C62A0 08A0 [Regular][ILSEQ]
-5C62A1 08A1 [Regular][ILSEQ]
-5C62E0 08E0 [Regular][ILSEQ]
-5C62EF 08EF [Regular][ILSEQ]
-5C62F9 08F9 [Regular][ILSEQ]
-5C62FA 08FA [Regular][ILSEQ]
-5C62FC 08FC [Regular][ILSEQ]
-5C62FD 08FD [Regular][ILSEQ]
-5C62FE 08FE [Regular][ILSEQ]
-5C62FF 08FF [Regular][ILSEQ]
-5C6E00 0A00 [Regular]
-5C6E08 0A08 [Regular]
-5C6E09 0A09 [Regular]
-5C6E0A 0A0A [Regular]
-5C6E0D 0A0D [Regular]
-5C6E1A 0A1A [Regular]
-5C6E22 0A22 [Regular]
-5C6E25 0A25 [Regular]
-5C6E27 NULL [SyntErr]
-5C6E30 0A30 [Regular]
-5C6E3F 0A3F [Regular]
-5C6E40 0A40 [Regular]
-5C6E5A 0A5A [Regular]
-5C6E5C NULL [SyntErr]
-5C6E5F 0A5F [Regular]
-5C6E61 0A61 [Regular]
-5C6E62 0A62 [Regular]
-5C6E6E 0A6E [Regular]
-5C6E72 0A72 [Regular]
-5C6E74 0A74 [Regular]
-5C6E7E 0A7E [Regular]
-5C6E7F 0A7F [Regular]
-5C6E80 0A80 [Regular][ILSEQ]
-5C6E81 0A81 [Regular][ILSEQ]
-5C6E9F 0A9F [Regular][ILSEQ]
-5C6EA0 0AA0 [Regular][ILSEQ]
-5C6EA1 0AA1 [Regular][ILSEQ]
-5C6EE0 0AE0 [Regular][ILSEQ]
-5C6EEF 0AEF [Regular][ILSEQ]
-5C6EF9 0AF9 [Regular][ILSEQ]
-5C6EFA 0AFA [Regular][ILSEQ]
-5C6EFC 0AFC [Regular][ILSEQ]
-5C6EFD 0AFD [Regular][ILSEQ]
-5C6EFE 0AFE [Regular][ILSEQ]
-5C6EFF 0AFF [Regular][ILSEQ]
-5C7200 0D00 [Regular]
-5C7208 0D08 [Regular]
-5C7209 0D09 [Regular]
-5C720A 0D0A [Regular]
-5C720D 0D0D [Regular]
-5C721A 0D1A [Regular]
-5C7222 0D22 [Regular]
-5C7225 0D25 [Regular]
-5C7227 NULL [SyntErr]
-5C7230 0D30 [Regular]
-5C723F 0D3F [Regular]
-5C7240 0D40 [Regular]
-5C725A 0D5A [Regular]
-5C725C NULL [SyntErr]
-5C725F 0D5F [Regular]
-5C7261 0D61 [Regular]
-5C7262 0D62 [Regular]
-5C726E 0D6E [Regular]
-5C7272 0D72 [Regular]
-5C7274 0D74 [Regular]
-5C727E 0D7E [Regular]
-5C727F 0D7F [Regular]
-5C7280 0D80 [Regular][ILSEQ]
-5C7281 0D81 [Regular][ILSEQ]
-5C729F 0D9F [Regular][ILSEQ]
-5C72A0 0DA0 [Regular][ILSEQ]
-5C72A1 0DA1 [Regular][ILSEQ]
-5C72E0 0DE0 [Regular][ILSEQ]
-5C72EF 0DEF [Regular][ILSEQ]
-5C72F9 0DF9 [Regular][ILSEQ]
-5C72FA 0DFA [Regular][ILSEQ]
-5C72FC 0DFC [Regular][ILSEQ]
-5C72FD 0DFD [Regular][ILSEQ]
-5C72FE 0DFE [Regular][ILSEQ]
-5C72FF 0DFF [Regular][ILSEQ]
-5C7400 0900 [Regular]
-5C7408 0908 [Regular]
-5C7409 0909 [Regular]
-5C740A 090A [Regular]
-5C740D 090D [Regular]
-5C741A 091A [Regular]
-5C7422 0922 [Regular]
-5C7425 0925 [Regular]
-5C7427 NULL [SyntErr]
-5C7430 0930 [Regular]
-5C743F 093F [Regular]
-5C7440 0940 [Regular]
-5C745A 095A [Regular]
-5C745C NULL [SyntErr]
-5C745F 095F [Regular]
-5C7461 0961 [Regular]
-5C7462 0962 [Regular]
-5C746E 096E [Regular]
-5C7472 0972 [Regular]
-5C7474 0974 [Regular]
-5C747E 097E [Regular]
-5C747F 097F [Regular]
-5C7480 0980 [Regular][ILSEQ]
-5C7481 0981 [Regular][ILSEQ]
-5C749F 099F [Regular][ILSEQ]
-5C74A0 09A0 [Regular][ILSEQ]
-5C74A1 09A1 [Regular][ILSEQ]
-5C74E0 09E0 [Regular][ILSEQ]
-5C74EF 09EF [Regular][ILSEQ]
-5C74F9 09F9 [Regular][ILSEQ]
-5C74FA 09FA [Regular][ILSEQ]
-5C74FC 09FC [Regular][ILSEQ]
-5C74FD 09FD [Regular][ILSEQ]
-5C74FE 09FE [Regular][ILSEQ]
-5C74FF 09FF [Regular][ILSEQ]
-5C7E00 7E00 [Trivial]
-5C7E08 7E08 [Trivial]
-5C7E09 7E09 [Trivial]
-5C7E0A 7E0A [Trivial]
-5C7E0D 7E0D [Trivial]
-5C7E1A 7E1A [Trivial]
-5C7E22 7E22 [Trivial]
-5C7E25 7E25 [Trivial]
-5C7E27 NULL [SyntErr]
-5C7E30 7E30 [Trivial]
-5C7E3F 7E3F [Trivial]
-5C7E40 7E40 [Trivial]
-5C7E5A 7E5A [Trivial]
-5C7E5C NULL [SyntErr]
-5C7E5F 7E5F [Trivial]
-5C7E61 7E61 [Trivial]
-5C7E62 7E62 [Trivial]
-5C7E6E 7E6E [Trivial]
-5C7E72 7E72 [Trivial]
-5C7E74 7E74 [Trivial]
-5C7E7E 7E7E [Trivial]
-5C7E7F 7E7F [Trivial]
-5C7E80 7E80 [Trivial][ILSEQ]
-5C7E81 7E81 [Trivial][ILSEQ]
-5C7E9F 7E9F [Trivial][ILSEQ]
-5C7EA0 7EA0 [Trivial][ILSEQ]
-5C7EA1 7EA1 [Trivial][ILSEQ]
-5C7EE0 7EE0 [Trivial][ILSEQ]
-5C7EEF 7EEF [Trivial][ILSEQ]
-5C7EF9 7EF9 [Trivial][ILSEQ]
-5C7EFA 7EFA [Trivial][ILSEQ]
-5C7EFC 7EFC [Trivial][ILSEQ]
-5C7EFD 7EFD [Trivial][ILSEQ]
-5C7EFE 7EFE [Trivial][ILSEQ]
-5C7EFF 7EFF [Trivial][ILSEQ]
-5C7F00 7F00 [Trivial]
-5C7F08 7F08 [Trivial]
-5C7F09 7F09 [Trivial]
-5C7F0A 7F0A [Trivial]
-5C7F0D 7F0D [Trivial]
-5C7F1A 7F1A [Trivial]
-5C7F22 7F22 [Trivial]
-5C7F25 7F25 [Trivial]
-5C7F27 NULL [SyntErr]
-5C7F30 7F30 [Trivial]
-5C7F3F 7F3F [Trivial]
-5C7F40 7F40 [Trivial]
-5C7F5A 7F5A [Trivial]
-5C7F5C NULL [SyntErr]
-5C7F5F 7F5F [Trivial]
-5C7F61 7F61 [Trivial]
-5C7F62 7F62 [Trivial]
-5C7F6E 7F6E [Trivial]
-5C7F72 7F72 [Trivial]
-5C7F74 7F74 [Trivial]
-5C7F7E 7F7E [Trivial]
-5C7F7F 7F7F [Trivial]
-5C7F80 7F80 [Trivial][ILSEQ]
-5C7F81 7F81 [Trivial][ILSEQ]
-5C7F9F 7F9F [Trivial][ILSEQ]
-5C7FA0 7FA0 [Trivial][ILSEQ]
-5C7FA1 7FA1 [Trivial][ILSEQ]
-5C7FE0 7FE0 [Trivial][ILSEQ]
-5C7FEF 7FEF [Trivial][ILSEQ]
-5C7FF9 7FF9 [Trivial][ILSEQ]
-5C7FFA 7FFA [Trivial][ILSEQ]
-5C7FFC 7FFC [Trivial][ILSEQ]
-5C7FFD 7FFD [Trivial][ILSEQ]
-5C7FFE 7FFE [Trivial][ILSEQ]
-5C7FFF 7FFF [Trivial][ILSEQ]
-5C8000 8000 [Trivial][ILSEQ]
-5C8008 8008 [Trivial][ILSEQ]
-5C8009 8009 [Trivial][ILSEQ]
-5C800A 800A [Trivial][ILSEQ]
-5C800D 800D [Trivial][ILSEQ]
-5C801A 801A [Trivial][ILSEQ]
-5C8022 8022 [Trivial][ILSEQ]
-5C8025 8025 [Trivial][ILSEQ]
-5C8027 NULL [SyntErr]
-5C8030 8030 [Trivial][ILSEQ]
-5C803F 803F [Trivial][ILSEQ]
-5C8040 8040 [Trivial][ILSEQ]
-5C805A 805A [Trivial][ILSEQ]
-5C805C NULL [SyntErr]
-5C805F 805F [Trivial][ILSEQ]
-5C8061 8061 [Trivial][ILSEQ]
-5C8062 8062 [Trivial][ILSEQ]
-5C806E 806E [Trivial][ILSEQ]
-5C8072 8072 [Trivial][ILSEQ]
-5C8074 8074 [Trivial][ILSEQ]
-5C807E 807E [Trivial][ILSEQ]
-5C807F 807F [Trivial][ILSEQ]
-5C8080 8080 [Trivial][ILSEQ]
-5C8081 8081 [Trivial][ILSEQ]
-5C809F 809F [Trivial][ILSEQ]
-5C80A0 80A0 [Trivial][ILSEQ]
-5C80A1 80A1 [Trivial][ILSEQ]
-5C80E0 80E0 [Trivial][ILSEQ]
-5C80EF 80EF [Trivial][ILSEQ]
-5C80F9 80F9 [Trivial][ILSEQ]
-5C80FA 80FA [Trivial][ILSEQ]
-5C80FC 80FC [Trivial][ILSEQ]
-5C80FD 80FD [Trivial][ILSEQ]
-5C80FE 80FE [Trivial][ILSEQ]
-5C80FF 80FF [Trivial][ILSEQ]
-5C8100 8100 [Trivial][ILSEQ]
-5C8108 8108 [Trivial][ILSEQ]
-5C8109 8109 [Trivial][ILSEQ]
-5C810A 810A [Trivial][ILSEQ]
-5C810D 810D [Trivial][ILSEQ]
-5C811A 811A [Trivial][ILSEQ]
-5C8122 8122 [Trivial][ILSEQ]
-5C8125 8125 [Trivial][ILSEQ]
-5C8127 NULL [SyntErr]
-5C8130 8130 [Trivial][ILSEQ]
-5C813F 813F [Trivial][ILSEQ]
-5C8140 8140 [Trivial][ILSEQ]
-5C815A 815A [Trivial][ILSEQ]
-5C815C NULL [SyntErr]
-5C815F 815F [Trivial][ILSEQ]
-5C8161 8161 [Trivial][ILSEQ]
-5C8162 8162 [Trivial][ILSEQ]
-5C816E 816E [Trivial][ILSEQ]
-5C8172 8172 [Trivial][ILSEQ]
-5C8174 8174 [Trivial][ILSEQ]
-5C817E 817E [Trivial][ILSEQ]
-5C817F 817F [Trivial][ILSEQ]
-5C8180 8180 [Trivial][ILSEQ]
-5C8181 8181 [Trivial][ILSEQ]
-5C819F 819F [Trivial][ILSEQ]
-5C81A0 81A0 [Trivial][ILSEQ]
-5C81A1 81A1 [Trivial][ILSEQ]
-5C81E0 81E0 [Trivial][ILSEQ]
-5C81EF 81EF [Trivial][ILSEQ]
-5C81F9 81F9 [Trivial][ILSEQ]
-5C81FA 81FA [Trivial][ILSEQ]
-5C81FC 81FC [Trivial][ILSEQ]
-5C81FD 81FD [Trivial][ILSEQ]
-5C81FE 81FE [Trivial][ILSEQ]
-5C81FF 81FF [Trivial][ILSEQ]
-5C9F00 9F00 [Trivial][ILSEQ]
-5C9F08 9F08 [Trivial][ILSEQ]
-5C9F09 9F09 [Trivial][ILSEQ]
-5C9F0A 9F0A [Trivial][ILSEQ]
-5C9F0D 9F0D [Trivial][ILSEQ]
-5C9F1A 9F1A [Trivial][ILSEQ]
-5C9F22 9F22 [Trivial][ILSEQ]
-5C9F25 9F25 [Trivial][ILSEQ]
-5C9F27 NULL [SyntErr]
-5C9F30 9F30 [Trivial][ILSEQ]
-5C9F3F 9F3F [Trivial][ILSEQ]
-5C9F40 9F40 [Trivial][ILSEQ]
-5C9F5A 9F5A [Trivial][ILSEQ]
-5C9F5C NULL [SyntErr]
-5C9F5F 9F5F [Trivial][ILSEQ]
-5C9F61 9F61 [Trivial][ILSEQ]
-5C9F62 9F62 [Trivial][ILSEQ]
-5C9F6E 9F6E [Trivial][ILSEQ]
-5C9F72 9F72 [Trivial][ILSEQ]
-5C9F74 9F74 [Trivial][ILSEQ]
-5C9F7E 9F7E [Trivial][ILSEQ]
-5C9F7F 9F7F [Trivial][ILSEQ]
-5C9F80 9F80 [Trivial][ILSEQ]
-5C9F81 9F81 [Trivial][ILSEQ]
-5C9F9F 9F9F [Trivial][ILSEQ]
-5C9FA0 9FA0 [Trivial][ILSEQ]
-5C9FA1 9FA1 [Trivial][ILSEQ]
-5C9FE0 9FE0 [Trivial][ILSEQ]
-5C9FEF 9FEF [Trivial][ILSEQ]
-5C9FF9 9FF9 [Trivial][ILSEQ]
-5C9FFA 9FFA [Trivial][ILSEQ]
-5C9FFC 9FFC [Trivial][ILSEQ]
-5C9FFD 9FFD [Trivial][ILSEQ]
-5C9FFE 9FFE [Trivial][ILSEQ]
-5C9FFF 9FFF [Trivial][ILSEQ]
-5CA000 A000 [Trivial][ILSEQ]
-5CA008 A008 [Trivial][ILSEQ]
-5CA009 A009 [Trivial][ILSEQ]
-5CA00A A00A [Trivial][ILSEQ]
-5CA00D A00D [Trivial][ILSEQ]
-5CA01A A01A [Trivial][ILSEQ]
-5CA022 A022 [Trivial][ILSEQ]
-5CA025 A025 [Trivial][ILSEQ]
-5CA027 NULL [SyntErr]
-5CA030 A030 [Trivial][ILSEQ]
-5CA03F A03F [Trivial][ILSEQ]
-5CA040 A040 [Trivial][ILSEQ]
-5CA05A A05A [Trivial][ILSEQ]
-5CA05C NULL [SyntErr]
-5CA05F A05F [Trivial][ILSEQ]
-5CA061 A061 [Trivial][ILSEQ]
-5CA062 A062 [Trivial][ILSEQ]
-5CA06E A06E [Trivial][ILSEQ]
-5CA072 A072 [Trivial][ILSEQ]
-5CA074 A074 [Trivial][ILSEQ]
-5CA07E A07E [Trivial][ILSEQ]
-5CA07F A07F [Trivial][ILSEQ]
-5CA080 A080 [Trivial][ILSEQ]
-5CA081 A081 [Trivial][ILSEQ]
-5CA09F A09F [Trivial][ILSEQ]
-5CA0A0 A0A0 [Trivial][ILSEQ]
-5CA0A1 A0A1 [Trivial][ILSEQ]
-5CA0E0 A0E0 [Trivial][ILSEQ]
-5CA0EF A0EF [Trivial][ILSEQ]
-5CA0F9 A0F9 [Trivial][ILSEQ]
-5CA0FA A0FA [Trivial][ILSEQ]
-5CA0FC A0FC [Trivial][ILSEQ]
-5CA0FD A0FD [Trivial][ILSEQ]
-5CA0FE A0FE [Trivial][ILSEQ]
-5CA0FF A0FF [Trivial][ILSEQ]
-5CA100 A100 [Trivial][ILSEQ]
-5CA108 A108 [Trivial][ILSEQ]
-5CA109 A109 [Trivial][ILSEQ]
-5CA10A A10A [Trivial][ILSEQ]
-5CA10D A10D [Trivial][ILSEQ]
-5CA11A A11A [Trivial][ILSEQ]
-5CA122 A122 [Trivial][ILSEQ]
-5CA125 A125 [Trivial][ILSEQ]
-5CA127 NULL [SyntErr]
-5CA130 A130 [Trivial][ILSEQ]
-5CA13F A13F [Trivial][ILSEQ]
-5CA140 A140 [Trivial]
-5CA15A A15A [Trivial]
-5CA15C NULL [SyntErr]
-5CA15F A15F [Trivial]
-5CA161 A161 [Trivial]
-5CA162 A162 [Trivial]
-5CA16E A16E [Trivial]
-5CA172 A172 [Trivial]
-5CA174 A174 [Trivial]
-5CA17E A17E [Trivial]
-5CA17F A17F [Trivial][ILSEQ]
-5CA180 A180 [Trivial][ILSEQ]
-5CA181 A181 [Trivial][ILSEQ]
-5CA19F A19F [Trivial][ILSEQ]
-5CA1A0 A1A0 [Trivial][ILSEQ]
-5CA1A1 A1A1 [Trivial]
-5CA1E0 A1E0 [Trivial]
-5CA1EF A1EF [Trivial]
-5CA1F9 A1F9 [Trivial]
-5CA1FA A1FA [Trivial]
-5CA1FC A1FC [Trivial]
-5CA1FD A1FD [Trivial]
-5CA1FE A1FE [Trivial]
-5CA1FF A1FF [Trivial][ILSEQ]
-5CE000 E000 [Trivial][ILSEQ]
-5CE008 E008 [Trivial][ILSEQ]
-5CE009 E009 [Trivial][ILSEQ]
-5CE00A E00A [Trivial][ILSEQ]
-5CE00D E00D [Trivial][ILSEQ]
-5CE01A E01A [Trivial][ILSEQ]
-5CE022 E022 [Trivial][ILSEQ]
-5CE025 E025 [Trivial][ILSEQ]
-5CE027 NULL [SyntErr]
-5CE030 E030 [Trivial][ILSEQ]
-5CE03F E03F [Trivial][ILSEQ]
-5CE040 E040 [Trivial]
-5CE05A E05A [Trivial]
-5CE05C NULL [SyntErr]
-5CE05F E05F [Trivial]
-5CE061 E061 [Trivial]
-5CE062 E062 [Trivial]
-5CE06E E06E [Trivial]
-5CE072 E072 [Trivial]
-5CE074 E074 [Trivial]
-5CE07E E07E [Trivial]
-5CE07F E07F [Trivial][ILSEQ]
-5CE080 E080 [Trivial][ILSEQ]
-5CE081 E081 [Trivial][ILSEQ]
-5CE09F E09F [Trivial][ILSEQ]
-5CE0A0 E0A0 [Trivial][ILSEQ]
-5CE0A1 E0A1 [Trivial]
-5CE0E0 E0E0 [Trivial]
-5CE0EF E0EF [Trivial]
-5CE0F9 E0F9 [Trivial]
-5CE0FA E0FA [Trivial]
-5CE0FC E0FC [Trivial]
-5CE0FD E0FD [Trivial]
-5CE0FE E0FE [Trivial]
-5CE0FF E0FF [Trivial][ILSEQ]
-5CEF00 EF00 [Trivial][ILSEQ]
-5CEF08 EF08 [Trivial][ILSEQ]
-5CEF09 EF09 [Trivial][ILSEQ]
-5CEF0A EF0A [Trivial][ILSEQ]
-5CEF0D EF0D [Trivial][ILSEQ]
-5CEF1A EF1A [Trivial][ILSEQ]
-5CEF22 EF22 [Trivial][ILSEQ]
-5CEF25 EF25 [Trivial][ILSEQ]
-5CEF27 NULL [SyntErr]
-5CEF30 EF30 [Trivial][ILSEQ]
-5CEF3F EF3F [Trivial][ILSEQ]
-5CEF40 EF40 [Trivial]
-5CEF5A EF5A [Trivial]
-5CEF5C NULL [SyntErr]
-5CEF5F EF5F [Trivial]
-5CEF61 EF61 [Trivial]
-5CEF62 EF62 [Trivial]
-5CEF6E EF6E [Trivial]
-5CEF72 EF72 [Trivial]
-5CEF74 EF74 [Trivial]
-5CEF7E EF7E [Trivial]
-5CEF7F EF7F [Trivial][ILSEQ]
-5CEF80 EF80 [Trivial][ILSEQ]
-5CEF81 EF81 [Trivial][ILSEQ]
-5CEF9F EF9F [Trivial][ILSEQ]
-5CEFA0 EFA0 [Trivial][ILSEQ]
-5CEFA1 EFA1 [Trivial]
-5CEFE0 EFE0 [Trivial]
-5CEFEF EFEF [Trivial]
-5CEFF9 EFF9 [Trivial]
-5CEFFA EFFA [Trivial]
-5CEFFC EFFC [Trivial]
-5CEFFD EFFD [Trivial]
-5CEFFE EFFE [Trivial]
-5CEFFF EFFF [Trivial][ILSEQ]
-5CF900 F900 [Trivial][ILSEQ]
-5CF908 F908 [Trivial][ILSEQ]
-5CF909 F909 [Trivial][ILSEQ]
-5CF90A F90A [Trivial][ILSEQ]
-5CF90D F90D [Trivial][ILSEQ]
-5CF91A F91A [Trivial][ILSEQ]
-5CF922 F922 [Trivial][ILSEQ]
-5CF925 F925 [Trivial][ILSEQ]
-5CF927 NULL [SyntErr]
-5CF930 F930 [Trivial][ILSEQ]
-5CF93F F93F [Trivial][ILSEQ]
-5CF940 F940 [Trivial]
-5CF95A F95A [Trivial]
-5CF95C NULL [SyntErr]
-5CF95F F95F [Trivial]
-5CF961 F961 [Trivial]
-5CF962 F962 [Trivial]
-5CF96E F96E [Trivial]
-5CF972 F972 [Trivial]
-5CF974 F974 [Trivial]
-5CF97E F97E [Trivial]
-5CF97F F97F [Trivial][ILSEQ]
-5CF980 F980 [Trivial][ILSEQ]
-5CF981 F981 [Trivial][ILSEQ]
-5CF99F F99F [Trivial][ILSEQ]
-5CF9A0 F9A0 [Trivial][ILSEQ]
-5CF9A1 F9A1 [Trivial]
-5CF9E0 F9E0 [Trivial]
-5CF9EF F9EF [Trivial]
-5CF9F9 F9F9 [Trivial]
-5CF9FA F9FA [Trivial]
-5CF9FC F9FC [Trivial]
-5CF9FD F9FD [Trivial]
-5CF9FE F9FE [Trivial]
-5CF9FF F9FF [Trivial][ILSEQ]
-5CFA00 FA00 [Trivial][ILSEQ]
-5CFA08 FA08 [Trivial][ILSEQ]
-5CFA09 FA09 [Trivial][ILSEQ]
-5CFA0A FA0A [Trivial][ILSEQ]
-5CFA0D FA0D [Trivial][ILSEQ]
-5CFA1A FA1A [Trivial][ILSEQ]
-5CFA22 FA22 [Trivial][ILSEQ]
-5CFA25 FA25 [Trivial][ILSEQ]
-5CFA27 NULL [SyntErr]
-5CFA30 FA30 [Trivial][ILSEQ]
-5CFA3F FA3F [Trivial][ILSEQ]
-5CFA40 FA40 [Trivial][ILSEQ]
-5CFA5A FA5A [Trivial][ILSEQ]
-5CFA5C NULL [SyntErr]
-5CFA5F FA5F [Trivial][ILSEQ]
-5CFA61 FA61 [Trivial][ILSEQ]
-5CFA62 FA62 [Trivial][ILSEQ]
-5CFA6E FA6E [Trivial][ILSEQ]
-5CFA72 FA72 [Trivial][ILSEQ]
-5CFA74 FA74 [Trivial][ILSEQ]
-5CFA7E FA7E [Trivial][ILSEQ]
-5CFA7F FA7F [Trivial][ILSEQ]
-5CFA80 FA80 [Trivial][ILSEQ]
-5CFA81 FA81 [Trivial][ILSEQ]
-5CFA9F FA9F [Trivial][ILSEQ]
-5CFAA0 FAA0 [Trivial][ILSEQ]
-5CFAA1 FAA1 [Trivial][ILSEQ]
-5CFAE0 FAE0 [Trivial][ILSEQ]
-5CFAEF FAEF [Trivial][ILSEQ]
-5CFAF9 FAF9 [Trivial][ILSEQ]
-5CFAFA FAFA [Trivial][ILSEQ]
-5CFAFC FAFC [Trivial][ILSEQ]
-5CFAFD FAFD [Trivial][ILSEQ]
-5CFAFE FAFE [Trivial][ILSEQ]
-5CFAFF FAFF [Trivial][ILSEQ]
-5CFC00 FC00 [Trivial][ILSEQ]
-5CFC08 FC08 [Trivial][ILSEQ]
-5CFC09 FC09 [Trivial][ILSEQ]
-5CFC0A FC0A [Trivial][ILSEQ]
-5CFC0D FC0D [Trivial][ILSEQ]
-5CFC1A FC1A [Trivial][ILSEQ]
-5CFC22 FC22 [Trivial][ILSEQ]
-5CFC25 FC25 [Trivial][ILSEQ]
-5CFC27 NULL [SyntErr]
-5CFC30 FC30 [Trivial][ILSEQ]
-5CFC3F FC3F [Trivial][ILSEQ]
-5CFC40 FC40 [Trivial][ILSEQ]
-5CFC5A FC5A [Trivial][ILSEQ]
-5CFC5C NULL [SyntErr]
-5CFC5F FC5F [Trivial][ILSEQ]
-5CFC61 FC61 [Trivial][ILSEQ]
-5CFC62 FC62 [Trivial][ILSEQ]
-5CFC6E FC6E [Trivial][ILSEQ]
-5CFC72 FC72 [Trivial][ILSEQ]
-5CFC74 FC74 [Trivial][ILSEQ]
-5CFC7E FC7E [Trivial][ILSEQ]
-5CFC7F FC7F [Trivial][ILSEQ]
-5CFC80 FC80 [Trivial][ILSEQ]
-5CFC81 FC81 [Trivial][ILSEQ]
-5CFC9F FC9F [Trivial][ILSEQ]
-5CFCA0 FCA0 [Trivial][ILSEQ]
-5CFCA1 FCA1 [Trivial][ILSEQ]
-5CFCE0 FCE0 [Trivial][ILSEQ]
-5CFCEF FCEF [Trivial][ILSEQ]
-5CFCF9 FCF9 [Trivial][ILSEQ]
-5CFCFA FCFA [Trivial][ILSEQ]
-5CFCFC FCFC [Trivial][ILSEQ]
-5CFCFD FCFD [Trivial][ILSEQ]
-5CFCFE FCFE [Trivial][ILSEQ]
-5CFCFF FCFF [Trivial][ILSEQ]
-5CFD00 FD00 [Trivial][ILSEQ]
-5CFD08 FD08 [Trivial][ILSEQ]
-5CFD09 FD09 [Trivial][ILSEQ]
-5CFD0A FD0A [Trivial][ILSEQ]
-5CFD0D FD0D [Trivial][ILSEQ]
-5CFD1A FD1A [Trivial][ILSEQ]
-5CFD22 FD22 [Trivial][ILSEQ]
-5CFD25 FD25 [Trivial][ILSEQ]
-5CFD27 NULL [SyntErr]
-5CFD30 FD30 [Trivial][ILSEQ]
-5CFD3F FD3F [Trivial][ILSEQ]
-5CFD40 FD40 [Trivial][ILSEQ]
-5CFD5A FD5A [Trivial][ILSEQ]
-5CFD5C NULL [SyntErr]
-5CFD5F FD5F [Trivial][ILSEQ]
-5CFD61 FD61 [Trivial][ILSEQ]
-5CFD62 FD62 [Trivial][ILSEQ]
-5CFD6E FD6E [Trivial][ILSEQ]
-5CFD72 FD72 [Trivial][ILSEQ]
-5CFD74 FD74 [Trivial][ILSEQ]
-5CFD7E FD7E [Trivial][ILSEQ]
-5CFD7F FD7F [Trivial][ILSEQ]
-5CFD80 FD80 [Trivial][ILSEQ]
-5CFD81 FD81 [Trivial][ILSEQ]
-5CFD9F FD9F [Trivial][ILSEQ]
-5CFDA0 FDA0 [Trivial][ILSEQ]
-5CFDA1 FDA1 [Trivial][ILSEQ]
-5CFDE0 FDE0 [Trivial][ILSEQ]
-5CFDEF FDEF [Trivial][ILSEQ]
-5CFDF9 FDF9 [Trivial][ILSEQ]
-5CFDFA FDFA [Trivial][ILSEQ]
-5CFDFC FDFC [Trivial][ILSEQ]
-5CFDFD FDFD [Trivial][ILSEQ]
-5CFDFE FDFE [Trivial][ILSEQ]
-5CFDFF FDFF [Trivial][ILSEQ]
-5CFE00 FE00 [Trivial][ILSEQ]
-5CFE08 FE08 [Trivial][ILSEQ]
-5CFE09 FE09 [Trivial][ILSEQ]
-5CFE0A FE0A [Trivial][ILSEQ]
-5CFE0D FE0D [Trivial][ILSEQ]
-5CFE1A FE1A [Trivial][ILSEQ]
-5CFE22 FE22 [Trivial][ILSEQ]
-5CFE25 FE25 [Trivial][ILSEQ]
-5CFE27 NULL [SyntErr]
-5CFE30 FE30 [Trivial][ILSEQ]
-5CFE3F FE3F [Trivial][ILSEQ]
-5CFE40 FE40 [Trivial][ILSEQ]
-5CFE5A FE5A [Trivial][ILSEQ]
-5CFE5C NULL [SyntErr]
-5CFE5F FE5F [Trivial][ILSEQ]
-5CFE61 FE61 [Trivial][ILSEQ]
-5CFE62 FE62 [Trivial][ILSEQ]
-5CFE6E FE6E [Trivial][ILSEQ]
-5CFE72 FE72 [Trivial][ILSEQ]
-5CFE74 FE74 [Trivial][ILSEQ]
-5CFE7E FE7E [Trivial][ILSEQ]
-5CFE7F FE7F [Trivial][ILSEQ]
-5CFE80 FE80 [Trivial][ILSEQ]
-5CFE81 FE81 [Trivial][ILSEQ]
-5CFE9F FE9F [Trivial][ILSEQ]
-5CFEA0 FEA0 [Trivial][ILSEQ]
-5CFEA1 FEA1 [Trivial][ILSEQ]
-5CFEE0 FEE0 [Trivial][ILSEQ]
-5CFEEF FEEF [Trivial][ILSEQ]
-5CFEF9 FEF9 [Trivial][ILSEQ]
-5CFEFA FEFA [Trivial][ILSEQ]
-5CFEFC FEFC [Trivial][ILSEQ]
-5CFEFD FEFD [Trivial][ILSEQ]
-5CFEFE FEFE [Trivial][ILSEQ]
-5CFEFF FEFF [Trivial][ILSEQ]
-5CFF00 FF00 [Trivial][ILSEQ]
-5CFF08 FF08 [Trivial][ILSEQ]
-5CFF09 FF09 [Trivial][ILSEQ]
-5CFF0A FF0A [Trivial][ILSEQ]
-5CFF0D FF0D [Trivial][ILSEQ]
-5CFF1A FF1A [Trivial][ILSEQ]
-5CFF22 FF22 [Trivial][ILSEQ]
-5CFF25 FF25 [Trivial][ILSEQ]
-5CFF27 NULL [SyntErr]
-5CFF30 FF30 [Trivial][ILSEQ]
-5CFF3F FF3F [Trivial][ILSEQ]
-5CFF40 FF40 [Trivial][ILSEQ]
-5CFF5A FF5A [Trivial][ILSEQ]
-5CFF5C NULL [SyntErr]
-5CFF5F FF5F [Trivial][ILSEQ]
-5CFF61 FF61 [Trivial][ILSEQ]
-5CFF62 FF62 [Trivial][ILSEQ]
-5CFF6E FF6E [Trivial][ILSEQ]
-5CFF72 FF72 [Trivial][ILSEQ]
-5CFF74 FF74 [Trivial][ILSEQ]
-5CFF7E FF7E [Trivial][ILSEQ]
-5CFF7F FF7F [Trivial][ILSEQ]
-5CFF80 FF80 [Trivial][ILSEQ]
-5CFF81 FF81 [Trivial][ILSEQ]
-5CFF9F FF9F [Trivial][ILSEQ]
-5CFFA0 FFA0 [Trivial][ILSEQ]
-5CFFA1 FFA1 [Trivial][ILSEQ]
-5CFFE0 FFE0 [Trivial][ILSEQ]
-5CFFEF FFEF [Trivial][ILSEQ]
-5CFFF9 FFF9 [Trivial][ILSEQ]
-5CFFFA FFFA [Trivial][ILSEQ]
-5CFFFC FFFC [Trivial][ILSEQ]
-5CFFFD FFFD [Trivial][ILSEQ]
-5CFFFE FFFE [Trivial][ILSEQ]
-5CFFFF FFFF [Trivial][ILSEQ]
-5C005C00 0000 [Trivial]
-5C005C08 0008 [Trivial]
-5C005C09 0009 [Trivial]
-5C005C0A 000A [Trivial]
-5C005C0D 000D [Trivial]
-5C005C1A 001A [Trivial]
-5C005C22 0022 [Trivial]
-5C005C25 005C25 [Regular]
-5C005C27 0027 [Trivial]
-5C005C30 0000 [Regular]
-5C005C3F 003F [Trivial]
-5C005C40 0040 [Trivial]
-5C005C5A 001A [Regular]
-5C005C5C 005C [Regular]
-5C005C5F 005C5F [Regular]
-5C005C61 0061 [Trivial]
-5C005C62 0008 [Regular]
-5C005C6E 000A [Regular]
-5C005C72 000D [Regular]
-5C005C74 0009 [Regular]
-5C005C7E 007E [Trivial]
-5C005C7F 007F [Trivial]
-5C005C80 0080 [Trivial][ILSEQ]
-5C005C81 0081 [Trivial][ILSEQ]
-5C005C9F 009F [Trivial][ILSEQ]
-5C005CA0 00A0 [Trivial][ILSEQ]
-5C005CA1 00A1 [Trivial][ILSEQ]
-5C005CE0 00E0 [Trivial][ILSEQ]
-5C005CEF 00EF [Trivial][ILSEQ]
-5C005CF9 00F9 [Trivial][ILSEQ]
-5C005CFA 00FA [Trivial][ILSEQ]
-5C005CFC 00FC [Trivial][ILSEQ]
-5C005CFD 00FD [Trivial][ILSEQ]
-5C005CFE 00FE [Trivial][ILSEQ]
-5C005CFF 00FF [Trivial][ILSEQ]
-5C085C00 0800 [Trivial]
-5C085C08 0808 [Trivial]
-5C085C09 0809 [Trivial]
-5C085C0A 080A [Trivial]
-5C085C0D 080D [Trivial]
-5C085C1A 081A [Trivial]
-5C085C22 0822 [Trivial]
-5C085C25 085C25 [Regular]
-5C085C27 0827 [Trivial]
-5C085C30 0800 [Regular]
-5C085C3F 083F [Trivial]
-5C085C40 0840 [Trivial]
-5C085C5A 081A [Regular]
-5C085C5C 085C [Regular]
-5C085C5F 085C5F [Regular]
-5C085C61 0861 [Trivial]
-5C085C62 0808 [Regular]
-5C085C6E 080A [Regular]
-5C085C72 080D [Regular]
-5C085C74 0809 [Regular]
-5C085C7E 087E [Trivial]
-5C085C7F 087F [Trivial]
-5C085C80 0880 [Trivial][ILSEQ]
-5C085C81 0881 [Trivial][ILSEQ]
-5C085C9F 089F [Trivial][ILSEQ]
-5C085CA0 08A0 [Trivial][ILSEQ]
-5C085CA1 08A1 [Trivial][ILSEQ]
-5C085CE0 08E0 [Trivial][ILSEQ]
-5C085CEF 08EF [Trivial][ILSEQ]
-5C085CF9 08F9 [Trivial][ILSEQ]
-5C085CFA 08FA [Trivial][ILSEQ]
-5C085CFC 08FC [Trivial][ILSEQ]
-5C085CFD 08FD [Trivial][ILSEQ]
-5C085CFE 08FE [Trivial][ILSEQ]
-5C085CFF 08FF [Trivial][ILSEQ]
-5C095C00 0900 [Trivial]
-5C095C08 0908 [Trivial]
-5C095C09 0909 [Trivial]
-5C095C0A 090A [Trivial]
-5C095C0D 090D [Trivial]
-5C095C1A 091A [Trivial]
-5C095C22 0922 [Trivial]
-5C095C25 095C25 [Regular]
-5C095C27 0927 [Trivial]
-5C095C30 0900 [Regular]
-5C095C3F 093F [Trivial]
-5C095C40 0940 [Trivial]
-5C095C5A 091A [Regular]
-5C095C5C 095C [Regular]
-5C095C5F 095C5F [Regular]
-5C095C61 0961 [Trivial]
-5C095C62 0908 [Regular]
-5C095C6E 090A [Regular]
-5C095C72 090D [Regular]
-5C095C74 0909 [Regular]
-5C095C7E 097E [Trivial]
-5C095C7F 097F [Trivial]
-5C095C80 0980 [Trivial][ILSEQ]
-5C095C81 0981 [Trivial][ILSEQ]
-5C095C9F 099F [Trivial][ILSEQ]
-5C095CA0 09A0 [Trivial][ILSEQ]
-5C095CA1 09A1 [Trivial][ILSEQ]
-5C095CE0 09E0 [Trivial][ILSEQ]
-5C095CEF 09EF [Trivial][ILSEQ]
-5C095CF9 09F9 [Trivial][ILSEQ]
-5C095CFA 09FA [Trivial][ILSEQ]
-5C095CFC 09FC [Trivial][ILSEQ]
-5C095CFD 09FD [Trivial][ILSEQ]
-5C095CFE 09FE [Trivial][ILSEQ]
-5C095CFF 09FF [Trivial][ILSEQ]
-5C0A5C00 0A00 [Trivial]
-5C0A5C08 0A08 [Trivial]
-5C0A5C09 0A09 [Trivial]
-5C0A5C0A 0A0A [Trivial]
-5C0A5C0D 0A0D [Trivial]
-5C0A5C1A 0A1A [Trivial]
-5C0A5C22 0A22 [Trivial]
-5C0A5C25 0A5C25 [Regular]
-5C0A5C27 0A27 [Trivial]
-5C0A5C30 0A00 [Regular]
-5C0A5C3F 0A3F [Trivial]
-5C0A5C40 0A40 [Trivial]
-5C0A5C5A 0A1A [Regular]
-5C0A5C5C 0A5C [Regular]
-5C0A5C5F 0A5C5F [Regular]
-5C0A5C61 0A61 [Trivial]
-5C0A5C62 0A08 [Regular]
-5C0A5C6E 0A0A [Regular]
-5C0A5C72 0A0D [Regular]
-5C0A5C74 0A09 [Regular]
-5C0A5C7E 0A7E [Trivial]
-5C0A5C7F 0A7F [Trivial]
-5C0A5C80 0A80 [Trivial][ILSEQ]
-5C0A5C81 0A81 [Trivial][ILSEQ]
-5C0A5C9F 0A9F [Trivial][ILSEQ]
-5C0A5CA0 0AA0 [Trivial][ILSEQ]
-5C0A5CA1 0AA1 [Trivial][ILSEQ]
-5C0A5CE0 0AE0 [Trivial][ILSEQ]
-5C0A5CEF 0AEF [Trivial][ILSEQ]
-5C0A5CF9 0AF9 [Trivial][ILSEQ]
-5C0A5CFA 0AFA [Trivial][ILSEQ]
-5C0A5CFC 0AFC [Trivial][ILSEQ]
-5C0A5CFD 0AFD [Trivial][ILSEQ]
-5C0A5CFE 0AFE [Trivial][ILSEQ]
-5C0A5CFF 0AFF [Trivial][ILSEQ]
-5C0D5C00 0D00 [Trivial]
-5C0D5C08 0D08 [Trivial]
-5C0D5C09 0D09 [Trivial]
-5C0D5C0A 0D0A [Trivial]
-5C0D5C0D 0D0D [Trivial]
-5C0D5C1A 0D1A [Trivial]
-5C0D5C22 0D22 [Trivial]
-5C0D5C25 0D5C25 [Regular]
-5C0D5C27 0D27 [Trivial]
-5C0D5C30 0D00 [Regular]
-5C0D5C3F 0D3F [Trivial]
-5C0D5C40 0D40 [Trivial]
-5C0D5C5A 0D1A [Regular]
-5C0D5C5C 0D5C [Regular]
-5C0D5C5F 0D5C5F [Regular]
-5C0D5C61 0D61 [Trivial]
-5C0D5C62 0D08 [Regular]
-5C0D5C6E 0D0A [Regular]
-5C0D5C72 0D0D [Regular]
-5C0D5C74 0D09 [Regular]
-5C0D5C7E 0D7E [Trivial]
-5C0D5C7F 0D7F [Trivial]
-5C0D5C80 0D80 [Trivial][ILSEQ]
-5C0D5C81 0D81 [Trivial][ILSEQ]
-5C0D5C9F 0D9F [Trivial][ILSEQ]
-5C0D5CA0 0DA0 [Trivial][ILSEQ]
-5C0D5CA1 0DA1 [Trivial][ILSEQ]
-5C0D5CE0 0DE0 [Trivial][ILSEQ]
-5C0D5CEF 0DEF [Trivial][ILSEQ]
-5C0D5CF9 0DF9 [Trivial][ILSEQ]
-5C0D5CFA 0DFA [Trivial][ILSEQ]
-5C0D5CFC 0DFC [Trivial][ILSEQ]
-5C0D5CFD 0DFD [Trivial][ILSEQ]
-5C0D5CFE 0DFE [Trivial][ILSEQ]
-5C0D5CFF 0DFF [Trivial][ILSEQ]
-5C1A5C00 1A00 [Trivial]
-5C1A5C08 1A08 [Trivial]
-5C1A5C09 1A09 [Trivial]
-5C1A5C0A 1A0A [Trivial]
-5C1A5C0D 1A0D [Trivial]
-5C1A5C1A 1A1A [Trivial]
-5C1A5C22 1A22 [Trivial]
-5C1A5C25 1A5C25 [Regular]
-5C1A5C27 1A27 [Trivial]
-5C1A5C30 1A00 [Regular]
-5C1A5C3F 1A3F [Trivial]
-5C1A5C40 1A40 [Trivial]
-5C1A5C5A 1A1A [Regular]
-5C1A5C5C 1A5C [Regular]
-5C1A5C5F 1A5C5F [Regular]
-5C1A5C61 1A61 [Trivial]
-5C1A5C62 1A08 [Regular]
-5C1A5C6E 1A0A [Regular]
-5C1A5C72 1A0D [Regular]
-5C1A5C74 1A09 [Regular]
-5C1A5C7E 1A7E [Trivial]
-5C1A5C7F 1A7F [Trivial]
-5C1A5C80 1A80 [Trivial][ILSEQ]
-5C1A5C81 1A81 [Trivial][ILSEQ]
-5C1A5C9F 1A9F [Trivial][ILSEQ]
-5C1A5CA0 1AA0 [Trivial][ILSEQ]
-5C1A5CA1 1AA1 [Trivial][ILSEQ]
-5C1A5CE0 1AE0 [Trivial][ILSEQ]
-5C1A5CEF 1AEF [Trivial][ILSEQ]
-5C1A5CF9 1AF9 [Trivial][ILSEQ]
-5C1A5CFA 1AFA [Trivial][ILSEQ]
-5C1A5CFC 1AFC [Trivial][ILSEQ]
-5C1A5CFD 1AFD [Trivial][ILSEQ]
-5C1A5CFE 1AFE [Trivial][ILSEQ]
-5C1A5CFF 1AFF [Trivial][ILSEQ]
-5C225C00 2200 [Trivial]
-5C225C08 2208 [Trivial]
-5C225C09 2209 [Trivial]
-5C225C0A 220A [Trivial]
-5C225C0D 220D [Trivial]
-5C225C1A 221A [Trivial]
-5C225C22 2222 [Trivial]
-5C225C25 225C25 [Regular]
-5C225C27 2227 [Trivial]
-5C225C30 2200 [Regular]
-5C225C3F 223F [Trivial]
-5C225C40 2240 [Trivial]
-5C225C5A 221A [Regular]
-5C225C5C 225C [Regular]
-5C225C5F 225C5F [Regular]
-5C225C61 2261 [Trivial]
-5C225C62 2208 [Regular]
-5C225C6E 220A [Regular]
-5C225C72 220D [Regular]
-5C225C74 2209 [Regular]
-5C225C7E 227E [Trivial]
-5C225C7F 227F [Trivial]
-5C225C80 2280 [Trivial][ILSEQ]
-5C225C81 2281 [Trivial][ILSEQ]
-5C225C9F 229F [Trivial][ILSEQ]
-5C225CA0 22A0 [Trivial][ILSEQ]
-5C225CA1 22A1 [Trivial][ILSEQ]
-5C225CE0 22E0 [Trivial][ILSEQ]
-5C225CEF 22EF [Trivial][ILSEQ]
-5C225CF9 22F9 [Trivial][ILSEQ]
-5C225CFA 22FA [Trivial][ILSEQ]
-5C225CFC 22FC [Trivial][ILSEQ]
-5C225CFD 22FD [Trivial][ILSEQ]
-5C225CFE 22FE [Trivial][ILSEQ]
-5C225CFF 22FF [Trivial][ILSEQ]
-5C255C00 5C2500 [Regular]
-5C255C08 5C2508 [Regular]
-5C255C09 5C2509 [Regular]
-5C255C0A 5C250A [Regular]
-5C255C0D 5C250D [Regular]
-5C255C1A 5C251A [Regular]
-5C255C22 5C2522 [Regular]
-5C255C25 5C255C25 [Preserve][LIKE]
-5C255C27 5C2527 [Regular]
-5C255C30 5C2500 [Regular]
-5C255C3F 5C253F [Regular]
-5C255C40 5C2540 [Regular]
-5C255C5A 5C251A [Regular]
-5C255C5C 5C255C [Regular]
-5C255C5F 5C255C5F [Preserve][LIKE]
-5C255C61 5C2561 [Regular]
-5C255C62 5C2508 [Regular]
-5C255C6E 5C250A [Regular]
-5C255C72 5C250D [Regular]
-5C255C74 5C2509 [Regular]
-5C255C7E 5C257E [Regular]
-5C255C7F 5C257F [Regular]
-5C255C80 5C2580 [Regular][ILSEQ]
-5C255C81 5C2581 [Regular][ILSEQ]
-5C255C9F 5C259F [Regular][ILSEQ]
-5C255CA0 5C25A0 [Regular][ILSEQ]
-5C255CA1 5C25A1 [Regular][ILSEQ]
-5C255CE0 5C25E0 [Regular][ILSEQ]
-5C255CEF 5C25EF [Regular][ILSEQ]
-5C255CF9 5C25F9 [Regular][ILSEQ]
-5C255CFA 5C25FA [Regular][ILSEQ]
-5C255CFC 5C25FC [Regular][ILSEQ]
-5C255CFD 5C25FD [Regular][ILSEQ]
-5C255CFE 5C25FE [Regular][ILSEQ]
-5C255CFF 5C25FF [Regular][ILSEQ]
-5C275C00 2700 [Trivial]
-5C275C08 2708 [Trivial]
-5C275C09 2709 [Trivial]
-5C275C0A 270A [Trivial]
-5C275C0D 270D [Trivial]
-5C275C1A 271A [Trivial]
-5C275C22 2722 [Trivial]
-5C275C25 275C25 [Regular]
-5C275C27 2727 [Trivial]
-5C275C30 2700 [Regular]
-5C275C3F 273F [Trivial]
-5C275C40 2740 [Trivial]
-5C275C5A 271A [Regular]
-5C275C5C 275C [Regular]
-5C275C5F 275C5F [Regular]
-5C275C61 2761 [Trivial]
-5C275C62 2708 [Regular]
-5C275C6E 270A [Regular]
-5C275C72 270D [Regular]
-5C275C74 2709 [Regular]
-5C275C7E 277E [Trivial]
-5C275C7F 277F [Trivial]
-5C275C80 2780 [Trivial][ILSEQ]
-5C275C81 2781 [Trivial][ILSEQ]
-5C275C9F 279F [Trivial][ILSEQ]
-5C275CA0 27A0 [Trivial][ILSEQ]
-5C275CA1 27A1 [Trivial][ILSEQ]
-5C275CE0 27E0 [Trivial][ILSEQ]
-5C275CEF 27EF [Trivial][ILSEQ]
-5C275CF9 27F9 [Trivial][ILSEQ]
-5C275CFA 27FA [Trivial][ILSEQ]
-5C275CFC 27FC [Trivial][ILSEQ]
-5C275CFD 27FD [Trivial][ILSEQ]
-5C275CFE 27FE [Trivial][ILSEQ]
-5C275CFF 27FF [Trivial][ILSEQ]
-5C305C00 0000 [Regular]
-5C305C08 0008 [Regular]
-5C305C09 0009 [Regular]
-5C305C0A 000A [Regular]
-5C305C0D 000D [Regular]
-5C305C1A 001A [Regular]
-5C305C22 0022 [Regular]
-5C305C25 005C25 [Regular]
-5C305C27 0027 [Regular]
-5C305C30 0000 [Regular]
-5C305C3F 003F [Regular]
-5C305C40 0040 [Regular]
-5C305C5A 001A [Regular]
-5C305C5C 005C [Regular]
-5C305C5F 005C5F [Regular]
-5C305C61 0061 [Regular]
-5C305C62 0008 [Regular]
-5C305C6E 000A [Regular]
-5C305C72 000D [Regular]
-5C305C74 0009 [Regular]
-5C305C7E 007E [Regular]
-5C305C7F 007F [Regular]
-5C305C80 0080 [Regular][ILSEQ]
-5C305C81 0081 [Regular][ILSEQ]
-5C305C9F 009F [Regular][ILSEQ]
-5C305CA0 00A0 [Regular][ILSEQ]
-5C305CA1 00A1 [Regular][ILSEQ]
-5C305CE0 00E0 [Regular][ILSEQ]
-5C305CEF 00EF [Regular][ILSEQ]
-5C305CF9 00F9 [Regular][ILSEQ]
-5C305CFA 00FA [Regular][ILSEQ]
-5C305CFC 00FC [Regular][ILSEQ]
-5C305CFD 00FD [Regular][ILSEQ]
-5C305CFE 00FE [Regular][ILSEQ]
-5C305CFF 00FF [Regular][ILSEQ]
-5C3F5C00 3F00 [Trivial]
-5C3F5C08 3F08 [Trivial]
-5C3F5C09 3F09 [Trivial]
-5C3F5C0A 3F0A [Trivial]
-5C3F5C0D 3F0D [Trivial]
-5C3F5C1A 3F1A [Trivial]
-5C3F5C22 3F22 [Trivial]
-5C3F5C25 3F5C25 [Regular]
-5C3F5C27 3F27 [Trivial]
-5C3F5C30 3F00 [Regular]
-5C3F5C3F 3F3F [Trivial]
-5C3F5C40 3F40 [Trivial]
-5C3F5C5A 3F1A [Regular]
-5C3F5C5C 3F5C [Regular]
-5C3F5C5F 3F5C5F [Regular]
-5C3F5C61 3F61 [Trivial]
-5C3F5C62 3F08 [Regular]
-5C3F5C6E 3F0A [Regular]
-5C3F5C72 3F0D [Regular]
-5C3F5C74 3F09 [Regular]
-5C3F5C7E 3F7E [Trivial]
-5C3F5C7F 3F7F [Trivial]
-5C3F5C80 3F80 [Trivial][ILSEQ]
-5C3F5C81 3F81 [Trivial][ILSEQ]
-5C3F5C9F 3F9F [Trivial][ILSEQ]
-5C3F5CA0 3FA0 [Trivial][ILSEQ]
-5C3F5CA1 3FA1 [Trivial][ILSEQ]
-5C3F5CE0 3FE0 [Trivial][ILSEQ]
-5C3F5CEF 3FEF [Trivial][ILSEQ]
-5C3F5CF9 3FF9 [Trivial][ILSEQ]
-5C3F5CFA 3FFA [Trivial][ILSEQ]
-5C3F5CFC 3FFC [Trivial][ILSEQ]
-5C3F5CFD 3FFD [Trivial][ILSEQ]
-5C3F5CFE 3FFE [Trivial][ILSEQ]
-5C3F5CFF 3FFF [Trivial][ILSEQ]
-5C405C00 4000 [Trivial]
-5C405C08 4008 [Trivial]
-5C405C09 4009 [Trivial]
-5C405C0A 400A [Trivial]
-5C405C0D 400D [Trivial]
-5C405C1A 401A [Trivial]
-5C405C22 4022 [Trivial]
-5C405C25 405C25 [Regular]
-5C405C27 4027 [Trivial]
-5C405C30 4000 [Regular]
-5C405C3F 403F [Trivial]
-5C405C40 4040 [Trivial]
-5C405C5A 401A [Regular]
-5C405C5C 405C [Regular]
-5C405C5F 405C5F [Regular]
-5C405C61 4061 [Trivial]
-5C405C62 4008 [Regular]
-5C405C6E 400A [Regular]
-5C405C72 400D [Regular]
-5C405C74 4009 [Regular]
-5C405C7E 407E [Trivial]
-5C405C7F 407F [Trivial]
-5C405C80 4080 [Trivial][ILSEQ]
-5C405C81 4081 [Trivial][ILSEQ]
-5C405C9F 409F [Trivial][ILSEQ]
-5C405CA0 40A0 [Trivial][ILSEQ]
-5C405CA1 40A1 [Trivial][ILSEQ]
-5C405CE0 40E0 [Trivial][ILSEQ]
-5C405CEF 40EF [Trivial][ILSEQ]
-5C405CF9 40F9 [Trivial][ILSEQ]
-5C405CFA 40FA [Trivial][ILSEQ]
-5C405CFC 40FC [Trivial][ILSEQ]
-5C405CFD 40FD [Trivial][ILSEQ]
-5C405CFE 40FE [Trivial][ILSEQ]
-5C405CFF 40FF [Trivial][ILSEQ]
-5C5A5C00 1A00 [Regular]
-5C5A5C08 1A08 [Regular]
-5C5A5C09 1A09 [Regular]
-5C5A5C0A 1A0A [Regular]
-5C5A5C0D 1A0D [Regular]
-5C5A5C1A 1A1A [Regular]
-5C5A5C22 1A22 [Regular]
-5C5A5C25 1A5C25 [Regular]
-5C5A5C27 1A27 [Regular]
-5C5A5C30 1A00 [Regular]
-5C5A5C3F 1A3F [Regular]
-5C5A5C40 1A40 [Regular]
-5C5A5C5A 1A1A [Regular]
-5C5A5C5C 1A5C [Regular]
-5C5A5C5F 1A5C5F [Regular]
-5C5A5C61 1A61 [Regular]
-5C5A5C62 1A08 [Regular]
-5C5A5C6E 1A0A [Regular]
-5C5A5C72 1A0D [Regular]
-5C5A5C74 1A09 [Regular]
-5C5A5C7E 1A7E [Regular]
-5C5A5C7F 1A7F [Regular]
-5C5A5C80 1A80 [Regular][ILSEQ]
-5C5A5C81 1A81 [Regular][ILSEQ]
-5C5A5C9F 1A9F [Regular][ILSEQ]
-5C5A5CA0 1AA0 [Regular][ILSEQ]
-5C5A5CA1 1AA1 [Regular][ILSEQ]
-5C5A5CE0 1AE0 [Regular][ILSEQ]
-5C5A5CEF 1AEF [Regular][ILSEQ]
-5C5A5CF9 1AF9 [Regular][ILSEQ]
-5C5A5CFA 1AFA [Regular][ILSEQ]
-5C5A5CFC 1AFC [Regular][ILSEQ]
-5C5A5CFD 1AFD [Regular][ILSEQ]
-5C5A5CFE 1AFE [Regular][ILSEQ]
-5C5A5CFF 1AFF [Regular][ILSEQ]
-5C5C5C00 5C00 [Regular]
-5C5C5C08 5C08 [Regular]
-5C5C5C09 5C09 [Regular]
-5C5C5C0A 5C0A [Regular]
-5C5C5C0D 5C0D [Regular]
-5C5C5C1A 5C1A [Regular]
-5C5C5C22 5C22 [Regular]
-5C5C5C25 5C5C25 [Regular]
-5C5C5C27 5C27 [Regular]
-5C5C5C30 5C00 [Regular]
-5C5C5C3F 5C3F [Regular]
-5C5C5C40 5C40 [Regular]
-5C5C5C5A 5C1A [Regular]
-5C5C5C5C 5C5C [Regular]
-5C5C5C5F 5C5C5F [Regular]
-5C5C5C61 5C61 [Regular]
-5C5C5C62 5C08 [Regular]
-5C5C5C6E 5C0A [Regular]
-5C5C5C72 5C0D [Regular]
-5C5C5C74 5C09 [Regular]
-5C5C5C7E 5C7E [Regular]
-5C5C5C7F 5C7F [Regular]
-5C5C5C80 5C80 [Regular][ILSEQ]
-5C5C5C81 5C81 [Regular][ILSEQ]
-5C5C5C9F 5C9F [Regular][ILSEQ]
-5C5C5CA0 5CA0 [Regular][ILSEQ]
-5C5C5CA1 5CA1 [Regular][ILSEQ]
-5C5C5CE0 5CE0 [Regular][ILSEQ]
-5C5C5CEF 5CEF [Regular][ILSEQ]
-5C5C5CF9 5CF9 [Regular][ILSEQ]
-5C5C5CFA 5CFA [Regular][ILSEQ]
-5C5C5CFC 5CFC [Regular][ILSEQ]
-5C5C5CFD 5CFD [Regular][ILSEQ]
-5C5C5CFE 5CFE [Regular][ILSEQ]
-5C5C5CFF 5CFF [Regular][ILSEQ]
-5C5F5C00 5C5F00 [Regular]
-5C5F5C08 5C5F08 [Regular]
-5C5F5C09 5C5F09 [Regular]
-5C5F5C0A 5C5F0A [Regular]
-5C5F5C0D 5C5F0D [Regular]
-5C5F5C1A 5C5F1A [Regular]
-5C5F5C22 5C5F22 [Regular]
-5C5F5C25 5C5F5C25 [Preserve][LIKE]
-5C5F5C27 5C5F27 [Regular]
-5C5F5C30 5C5F00 [Regular]
-5C5F5C3F 5C5F3F [Regular]
-5C5F5C40 5C5F40 [Regular]
-5C5F5C5A 5C5F1A [Regular]
-5C5F5C5C 5C5F5C [Regular]
-5C5F5C5F 5C5F5C5F [Preserve][LIKE]
-5C5F5C61 5C5F61 [Regular]
-5C5F5C62 5C5F08 [Regular]
-5C5F5C6E 5C5F0A [Regular]
-5C5F5C72 5C5F0D [Regular]
-5C5F5C74 5C5F09 [Regular]
-5C5F5C7E 5C5F7E [Regular]
-5C5F5C7F 5C5F7F [Regular]
-5C5F5C80 5C5F80 [Regular][ILSEQ]
-5C5F5C81 5C5F81 [Regular][ILSEQ]
-5C5F5C9F 5C5F9F [Regular][ILSEQ]
-5C5F5CA0 5C5FA0 [Regular][ILSEQ]
-5C5F5CA1 5C5FA1 [Regular][ILSEQ]
-5C5F5CE0 5C5FE0 [Regular][ILSEQ]
-5C5F5CEF 5C5FEF [Regular][ILSEQ]
-5C5F5CF9 5C5FF9 [Regular][ILSEQ]
-5C5F5CFA 5C5FFA [Regular][ILSEQ]
-5C5F5CFC 5C5FFC [Regular][ILSEQ]
-5C5F5CFD 5C5FFD [Regular][ILSEQ]
-5C5F5CFE 5C5FFE [Regular][ILSEQ]
-5C5F5CFF 5C5FFF [Regular][ILSEQ]
-5C615C00 6100 [Trivial]
-5C615C08 6108 [Trivial]
-5C615C09 6109 [Trivial]
-5C615C0A 610A [Trivial]
-5C615C0D 610D [Trivial]
-5C615C1A 611A [Trivial]
-5C615C22 6122 [Trivial]
-5C615C25 615C25 [Regular]
-5C615C27 6127 [Trivial]
-5C615C30 6100 [Regular]
-5C615C3F 613F [Trivial]
-5C615C40 6140 [Trivial]
-5C615C5A 611A [Regular]
-5C615C5C 615C [Regular]
-5C615C5F 615C5F [Regular]
-5C615C61 6161 [Trivial]
-5C615C62 6108 [Regular]
-5C615C6E 610A [Regular]
-5C615C72 610D [Regular]
-5C615C74 6109 [Regular]
-5C615C7E 617E [Trivial]
-5C615C7F 617F [Trivial]
-5C615C80 6180 [Trivial][ILSEQ]
-5C615C81 6181 [Trivial][ILSEQ]
-5C615C9F 619F [Trivial][ILSEQ]
-5C615CA0 61A0 [Trivial][ILSEQ]
-5C615CA1 61A1 [Trivial][ILSEQ]
-5C615CE0 61E0 [Trivial][ILSEQ]
-5C615CEF 61EF [Trivial][ILSEQ]
-5C615CF9 61F9 [Trivial][ILSEQ]
-5C615CFA 61FA [Trivial][ILSEQ]
-5C615CFC 61FC [Trivial][ILSEQ]
-5C615CFD 61FD [Trivial][ILSEQ]
-5C615CFE 61FE [Trivial][ILSEQ]
-5C615CFF 61FF [Trivial][ILSEQ]
-5C625C00 0800 [Regular]
-5C625C08 0808 [Regular]
-5C625C09 0809 [Regular]
-5C625C0A 080A [Regular]
-5C625C0D 080D [Regular]
-5C625C1A 081A [Regular]
-5C625C22 0822 [Regular]
-5C625C25 085C25 [Regular]
-5C625C27 0827 [Regular]
-5C625C30 0800 [Regular]
-5C625C3F 083F [Regular]
-5C625C40 0840 [Regular]
-5C625C5A 081A [Regular]
-5C625C5C 085C [Regular]
-5C625C5F 085C5F [Regular]
-5C625C61 0861 [Regular]
-5C625C62 0808 [Regular]
-5C625C6E 080A [Regular]
-5C625C72 080D [Regular]
-5C625C74 0809 [Regular]
-5C625C7E 087E [Regular]
-5C625C7F 087F [Regular]
-5C625C80 0880 [Regular][ILSEQ]
-5C625C81 0881 [Regular][ILSEQ]
-5C625C9F 089F [Regular][ILSEQ]
-5C625CA0 08A0 [Regular][ILSEQ]
-5C625CA1 08A1 [Regular][ILSEQ]
-5C625CE0 08E0 [Regular][ILSEQ]
-5C625CEF 08EF [Regular][ILSEQ]
-5C625CF9 08F9 [Regular][ILSEQ]
-5C625CFA 08FA [Regular][ILSEQ]
-5C625CFC 08FC [Regular][ILSEQ]
-5C625CFD 08FD [Regular][ILSEQ]
-5C625CFE 08FE [Regular][ILSEQ]
-5C625CFF 08FF [Regular][ILSEQ]
-5C6E5C00 0A00 [Regular]
-5C6E5C08 0A08 [Regular]
-5C6E5C09 0A09 [Regular]
-5C6E5C0A 0A0A [Regular]
-5C6E5C0D 0A0D [Regular]
-5C6E5C1A 0A1A [Regular]
-5C6E5C22 0A22 [Regular]
-5C6E5C25 0A5C25 [Regular]
-5C6E5C27 0A27 [Regular]
-5C6E5C30 0A00 [Regular]
-5C6E5C3F 0A3F [Regular]
-5C6E5C40 0A40 [Regular]
-5C6E5C5A 0A1A [Regular]
-5C6E5C5C 0A5C [Regular]
-5C6E5C5F 0A5C5F [Regular]
-5C6E5C61 0A61 [Regular]
-5C6E5C62 0A08 [Regular]
-5C6E5C6E 0A0A [Regular]
-5C6E5C72 0A0D [Regular]
-5C6E5C74 0A09 [Regular]
-5C6E5C7E 0A7E [Regular]
-5C6E5C7F 0A7F [Regular]
-5C6E5C80 0A80 [Regular][ILSEQ]
-5C6E5C81 0A81 [Regular][ILSEQ]
-5C6E5C9F 0A9F [Regular][ILSEQ]
-5C6E5CA0 0AA0 [Regular][ILSEQ]
-5C6E5CA1 0AA1 [Regular][ILSEQ]
-5C6E5CE0 0AE0 [Regular][ILSEQ]
-5C6E5CEF 0AEF [Regular][ILSEQ]
-5C6E5CF9 0AF9 [Regular][ILSEQ]
-5C6E5CFA 0AFA [Regular][ILSEQ]
-5C6E5CFC 0AFC [Regular][ILSEQ]
-5C6E5CFD 0AFD [Regular][ILSEQ]
-5C6E5CFE 0AFE [Regular][ILSEQ]
-5C6E5CFF 0AFF [Regular][ILSEQ]
-5C725C00 0D00 [Regular]
-5C725C08 0D08 [Regular]
-5C725C09 0D09 [Regular]
-5C725C0A 0D0A [Regular]
-5C725C0D 0D0D [Regular]
-5C725C1A 0D1A [Regular]
-5C725C22 0D22 [Regular]
-5C725C25 0D5C25 [Regular]
-5C725C27 0D27 [Regular]
-5C725C30 0D00 [Regular]
-5C725C3F 0D3F [Regular]
-5C725C40 0D40 [Regular]
-5C725C5A 0D1A [Regular]
-5C725C5C 0D5C [Regular]
-5C725C5F 0D5C5F [Regular]
-5C725C61 0D61 [Regular]
-5C725C62 0D08 [Regular]
-5C725C6E 0D0A [Regular]
-5C725C72 0D0D [Regular]
-5C725C74 0D09 [Regular]
-5C725C7E 0D7E [Regular]
-5C725C7F 0D7F [Regular]
-5C725C80 0D80 [Regular][ILSEQ]
-5C725C81 0D81 [Regular][ILSEQ]
-5C725C9F 0D9F [Regular][ILSEQ]
-5C725CA0 0DA0 [Regular][ILSEQ]
-5C725CA1 0DA1 [Regular][ILSEQ]
-5C725CE0 0DE0 [Regular][ILSEQ]
-5C725CEF 0DEF [Regular][ILSEQ]
-5C725CF9 0DF9 [Regular][ILSEQ]
-5C725CFA 0DFA [Regular][ILSEQ]
-5C725CFC 0DFC [Regular][ILSEQ]
-5C725CFD 0DFD [Regular][ILSEQ]
-5C725CFE 0DFE [Regular][ILSEQ]
-5C725CFF 0DFF [Regular][ILSEQ]
-5C745C00 0900 [Regular]
-5C745C08 0908 [Regular]
-5C745C09 0909 [Regular]
-5C745C0A 090A [Regular]
-5C745C0D 090D [Regular]
-5C745C1A 091A [Regular]
-5C745C22 0922 [Regular]
-5C745C25 095C25 [Regular]
-5C745C27 0927 [Regular]
-5C745C30 0900 [Regular]
-5C745C3F 093F [Regular]
-5C745C40 0940 [Regular]
-5C745C5A 091A [Regular]
-5C745C5C 095C [Regular]
-5C745C5F 095C5F [Regular]
-5C745C61 0961 [Regular]
-5C745C62 0908 [Regular]
-5C745C6E 090A [Regular]
-5C745C72 090D [Regular]
-5C745C74 0909 [Regular]
-5C745C7E 097E [Regular]
-5C745C7F 097F [Regular]
-5C745C80 0980 [Regular][ILSEQ]
-5C745C81 0981 [Regular][ILSEQ]
-5C745C9F 099F [Regular][ILSEQ]
-5C745CA0 09A0 [Regular][ILSEQ]
-5C745CA1 09A1 [Regular][ILSEQ]
-5C745CE0 09E0 [Regular][ILSEQ]
-5C745CEF 09EF [Regular][ILSEQ]
-5C745CF9 09F9 [Regular][ILSEQ]
-5C745CFA 09FA [Regular][ILSEQ]
-5C745CFC 09FC [Regular][ILSEQ]
-5C745CFD 09FD [Regular][ILSEQ]
-5C745CFE 09FE [Regular][ILSEQ]
-5C745CFF 09FF [Regular][ILSEQ]
-5C7E5C00 7E00 [Trivial]
-5C7E5C08 7E08 [Trivial]
-5C7E5C09 7E09 [Trivial]
-5C7E5C0A 7E0A [Trivial]
-5C7E5C0D 7E0D [Trivial]
-5C7E5C1A 7E1A [Trivial]
-5C7E5C22 7E22 [Trivial]
-5C7E5C25 7E5C25 [Regular]
-5C7E5C27 7E27 [Trivial]
-5C7E5C30 7E00 [Regular]
-5C7E5C3F 7E3F [Trivial]
-5C7E5C40 7E40 [Trivial]
-5C7E5C5A 7E1A [Regular]
-5C7E5C5C 7E5C [Regular]
-5C7E5C5F 7E5C5F [Regular]
-5C7E5C61 7E61 [Trivial]
-5C7E5C62 7E08 [Regular]
-5C7E5C6E 7E0A [Regular]
-5C7E5C72 7E0D [Regular]
-5C7E5C74 7E09 [Regular]
-5C7E5C7E 7E7E [Trivial]
-5C7E5C7F 7E7F [Trivial]
-5C7E5C80 7E80 [Trivial][ILSEQ]
-5C7E5C81 7E81 [Trivial][ILSEQ]
-5C7E5C9F 7E9F [Trivial][ILSEQ]
-5C7E5CA0 7EA0 [Trivial][ILSEQ]
-5C7E5CA1 7EA1 [Trivial][ILSEQ]
-5C7E5CE0 7EE0 [Trivial][ILSEQ]
-5C7E5CEF 7EEF [Trivial][ILSEQ]
-5C7E5CF9 7EF9 [Trivial][ILSEQ]
-5C7E5CFA 7EFA [Trivial][ILSEQ]
-5C7E5CFC 7EFC [Trivial][ILSEQ]
-5C7E5CFD 7EFD [Trivial][ILSEQ]
-5C7E5CFE 7EFE [Trivial][ILSEQ]
-5C7E5CFF 7EFF [Trivial][ILSEQ]
-5C7F5C00 7F00 [Trivial]
-5C7F5C08 7F08 [Trivial]
-5C7F5C09 7F09 [Trivial]
-5C7F5C0A 7F0A [Trivial]
-5C7F5C0D 7F0D [Trivial]
-5C7F5C1A 7F1A [Trivial]
-5C7F5C22 7F22 [Trivial]
-5C7F5C25 7F5C25 [Regular]
-5C7F5C27 7F27 [Trivial]
-5C7F5C30 7F00 [Regular]
-5C7F5C3F 7F3F [Trivial]
-5C7F5C40 7F40 [Trivial]
-5C7F5C5A 7F1A [Regular]
-5C7F5C5C 7F5C [Regular]
-5C7F5C5F 7F5C5F [Regular]
-5C7F5C61 7F61 [Trivial]
-5C7F5C62 7F08 [Regular]
-5C7F5C6E 7F0A [Regular]
-5C7F5C72 7F0D [Regular]
-5C7F5C74 7F09 [Regular]
-5C7F5C7E 7F7E [Trivial]
-5C7F5C7F 7F7F [Trivial]
-5C7F5C80 7F80 [Trivial][ILSEQ]
-5C7F5C81 7F81 [Trivial][ILSEQ]
-5C7F5C9F 7F9F [Trivial][ILSEQ]
-5C7F5CA0 7FA0 [Trivial][ILSEQ]
-5C7F5CA1 7FA1 [Trivial][ILSEQ]
-5C7F5CE0 7FE0 [Trivial][ILSEQ]
-5C7F5CEF 7FEF [Trivial][ILSEQ]
-5C7F5CF9 7FF9 [Trivial][ILSEQ]
-5C7F5CFA 7FFA [Trivial][ILSEQ]
-5C7F5CFC 7FFC [Trivial][ILSEQ]
-5C7F5CFD 7FFD [Trivial][ILSEQ]
-5C7F5CFE 7FFE [Trivial][ILSEQ]
-5C7F5CFF 7FFF [Trivial][ILSEQ]
-5C805C00 8000 [Trivial][ILSEQ]
-5C805C08 8008 [Trivial][ILSEQ]
-5C805C09 8009 [Trivial][ILSEQ]
-5C805C0A 800A [Trivial][ILSEQ]
-5C805C0D 800D [Trivial][ILSEQ]
-5C805C1A 801A [Trivial][ILSEQ]
-5C805C22 8022 [Trivial][ILSEQ]
-5C805C25 805C25 [Regular][ILSEQ]
-5C805C27 8027 [Trivial][ILSEQ]
-5C805C30 8000 [Regular][ILSEQ]
-5C805C3F 803F [Trivial][ILSEQ]
-5C805C40 8040 [Trivial][ILSEQ]
-5C805C5A 801A [Regular][ILSEQ]
-5C805C5C 805C [Regular][ILSEQ]
-5C805C5F 805C5F [Regular][ILSEQ]
-5C805C61 8061 [Trivial][ILSEQ]
-5C805C62 8008 [Regular][ILSEQ]
-5C805C6E 800A [Regular][ILSEQ]
-5C805C72 800D [Regular][ILSEQ]
-5C805C74 8009 [Regular][ILSEQ]
-5C805C7E 807E [Trivial][ILSEQ]
-5C805C7F 807F [Trivial][ILSEQ]
-5C805C80 8080 [Trivial][ILSEQ]
-5C805C81 8081 [Trivial][ILSEQ]
-5C805C9F 809F [Trivial][ILSEQ]
-5C805CA0 80A0 [Trivial][ILSEQ]
-5C805CA1 80A1 [Trivial][ILSEQ]
-5C805CE0 80E0 [Trivial][ILSEQ]
-5C805CEF 80EF [Trivial][ILSEQ]
-5C805CF9 80F9 [Trivial][ILSEQ]
-5C805CFA 80FA [Trivial][ILSEQ]
-5C805CFC 80FC [Trivial][ILSEQ]
-5C805CFD 80FD [Trivial][ILSEQ]
-5C805CFE 80FE [Trivial][ILSEQ]
-5C805CFF 80FF [Trivial][ILSEQ]
-5C815C00 8100 [Trivial][ILSEQ]
-5C815C08 8108 [Trivial][ILSEQ]
-5C815C09 8109 [Trivial][ILSEQ]
-5C815C0A 810A [Trivial][ILSEQ]
-5C815C0D 810D [Trivial][ILSEQ]
-5C815C1A 811A [Trivial][ILSEQ]
-5C815C22 8122 [Trivial][ILSEQ]
-5C815C25 815C25 [Regular][ILSEQ]
-5C815C27 8127 [Trivial][ILSEQ]
-5C815C30 8100 [Regular][ILSEQ]
-5C815C3F 813F [Trivial][ILSEQ]
-5C815C40 8140 [Trivial][ILSEQ]
-5C815C5A 811A [Regular][ILSEQ]
-5C815C5C 815C [Regular][ILSEQ]
-5C815C5F 815C5F [Regular][ILSEQ]
-5C815C61 8161 [Trivial][ILSEQ]
-5C815C62 8108 [Regular][ILSEQ]
-5C815C6E 810A [Regular][ILSEQ]
-5C815C72 810D [Regular][ILSEQ]
-5C815C74 8109 [Regular][ILSEQ]
-5C815C7E 817E [Trivial][ILSEQ]
-5C815C7F 817F [Trivial][ILSEQ]
-5C815C80 8180 [Trivial][ILSEQ]
-5C815C81 8181 [Trivial][ILSEQ]
-5C815C9F 819F [Trivial][ILSEQ]
-5C815CA0 81A0 [Trivial][ILSEQ]
-5C815CA1 81A1 [Trivial][ILSEQ]
-5C815CE0 81E0 [Trivial][ILSEQ]
-5C815CEF 81EF [Trivial][ILSEQ]
-5C815CF9 81F9 [Trivial][ILSEQ]
-5C815CFA 81FA [Trivial][ILSEQ]
-5C815CFC 81FC [Trivial][ILSEQ]
-5C815CFD 81FD [Trivial][ILSEQ]
-5C815CFE 81FE [Trivial][ILSEQ]
-5C815CFF 81FF [Trivial][ILSEQ]
-5C9F5C00 9F00 [Trivial][ILSEQ]
-5C9F5C08 9F08 [Trivial][ILSEQ]
-5C9F5C09 9F09 [Trivial][ILSEQ]
-5C9F5C0A 9F0A [Trivial][ILSEQ]
-5C9F5C0D 9F0D [Trivial][ILSEQ]
-5C9F5C1A 9F1A [Trivial][ILSEQ]
-5C9F5C22 9F22 [Trivial][ILSEQ]
-5C9F5C25 9F5C25 [Regular][ILSEQ]
-5C9F5C27 9F27 [Trivial][ILSEQ]
-5C9F5C30 9F00 [Regular][ILSEQ]
-5C9F5C3F 9F3F [Trivial][ILSEQ]
-5C9F5C40 9F40 [Trivial][ILSEQ]
-5C9F5C5A 9F1A [Regular][ILSEQ]
-5C9F5C5C 9F5C [Regular][ILSEQ]
-5C9F5C5F 9F5C5F [Regular][ILSEQ]
-5C9F5C61 9F61 [Trivial][ILSEQ]
-5C9F5C62 9F08 [Regular][ILSEQ]
-5C9F5C6E 9F0A [Regular][ILSEQ]
-5C9F5C72 9F0D [Regular][ILSEQ]
-5C9F5C74 9F09 [Regular][ILSEQ]
-5C9F5C7E 9F7E [Trivial][ILSEQ]
-5C9F5C7F 9F7F [Trivial][ILSEQ]
-5C9F5C80 9F80 [Trivial][ILSEQ]
-5C9F5C81 9F81 [Trivial][ILSEQ]
-5C9F5C9F 9F9F [Trivial][ILSEQ]
-5C9F5CA0 9FA0 [Trivial][ILSEQ]
-5C9F5CA1 9FA1 [Trivial][ILSEQ]
-5C9F5CE0 9FE0 [Trivial][ILSEQ]
-5C9F5CEF 9FEF [Trivial][ILSEQ]
-5C9F5CF9 9FF9 [Trivial][ILSEQ]
-5C9F5CFA 9FFA [Trivial][ILSEQ]
-5C9F5CFC 9FFC [Trivial][ILSEQ]
-5C9F5CFD 9FFD [Trivial][ILSEQ]
-5C9F5CFE 9FFE [Trivial][ILSEQ]
-5C9F5CFF 9FFF [Trivial][ILSEQ]
-5CA05C00 A000 [Trivial][ILSEQ]
-5CA05C08 A008 [Trivial][ILSEQ]
-5CA05C09 A009 [Trivial][ILSEQ]
-5CA05C0A A00A [Trivial][ILSEQ]
-5CA05C0D A00D [Trivial][ILSEQ]
-5CA05C1A A01A [Trivial][ILSEQ]
-5CA05C22 A022 [Trivial][ILSEQ]
-5CA05C25 A05C25 [Regular][ILSEQ]
-5CA05C27 A027 [Trivial][ILSEQ]
-5CA05C30 A000 [Regular][ILSEQ]
-5CA05C3F A03F [Trivial][ILSEQ]
-5CA05C40 A040 [Trivial][ILSEQ]
-5CA05C5A A01A [Regular][ILSEQ]
-5CA05C5C A05C [Regular][ILSEQ]
-5CA05C5F A05C5F [Regular][ILSEQ]
-5CA05C61 A061 [Trivial][ILSEQ]
-5CA05C62 A008 [Regular][ILSEQ]
-5CA05C6E A00A [Regular][ILSEQ]
-5CA05C72 A00D [Regular][ILSEQ]
-5CA05C74 A009 [Regular][ILSEQ]
-5CA05C7E A07E [Trivial][ILSEQ]
-5CA05C7F A07F [Trivial][ILSEQ]
-5CA05C80 A080 [Trivial][ILSEQ]
-5CA05C81 A081 [Trivial][ILSEQ]
-5CA05C9F A09F [Trivial][ILSEQ]
-5CA05CA0 A0A0 [Trivial][ILSEQ]
-5CA05CA1 A0A1 [Trivial][ILSEQ]
-5CA05CE0 A0E0 [Trivial][ILSEQ]
-5CA05CEF A0EF [Trivial][ILSEQ]
-5CA05CF9 A0F9 [Trivial][ILSEQ]
-5CA05CFA A0FA [Trivial][ILSEQ]
-5CA05CFC A0FC [Trivial][ILSEQ]
-5CA05CFD A0FD [Trivial][ILSEQ]
-5CA05CFE A0FE [Trivial][ILSEQ]
-5CA05CFF A0FF [Trivial][ILSEQ]
-5CA15C00 A100 [Trivial][BROKE]
-5CA15C08 A108 [Trivial][BROKE]
-5CA15C09 A109 [Trivial][BROKE]
-5CA15C0A A10A [Trivial][BROKE]
-5CA15C0D A10D [Trivial][BROKE]
-5CA15C1A A11A [Trivial][BROKE]
-5CA15C22 A122 [Trivial][BROKE]
-5CA15C25 A15C25 [Regular]
-5CA15C27 A127 [Trivial][BROKE]
-5CA15C30 A100 [Regular][BROKE]
-5CA15C3F A13F [Trivial][BROKE]
-5CA15C40 A140 [Trivial][USER]
-5CA15C5A A11A [Regular][BROKE]
-5CA15C5C A15C [Regular][USER]
-5CA15C5F A15C5F [Regular]
-5CA15C61 A161 [Trivial][USER]
-5CA15C62 A108 [Regular][BROKE][USER]
-5CA15C6E A10A [Regular][BROKE]
-5CA15C72 A10D [Regular][BROKE]
-5CA15C74 A109 [Regular][BROKE]
-5CA15C7E A17E [Trivial][USER]
-5CA15C7F A17F [Trivial][BROKE]
-5CA15C80 A180 [Trivial][ILSEQ]
-5CA15C81 A181 [Trivial][ILSEQ]
-5CA15C9F A19F [Trivial][ILSEQ]
-5CA15CA0 A1A0 [Trivial][ILSEQ]
-5CA15CA1 A1A1 [Trivial][FIXED][USER]
-5CA15CE0 A1E0 [Trivial][FIXED][USER]
-5CA15CEF A1EF [Trivial][FIXED][USER]
-5CA15CF9 A1F9 [Trivial][FIXED][USER]
-5CA15CFA A1FA [Trivial][FIXED][USER]
-5CA15CFC A1FC [Trivial][FIXED][USER]
-5CA15CFD A1FD [Trivial][FIXED][USER]
-5CA15CFE A1FE [Trivial][FIXED][USER]
-5CA15CFF A1FF [Trivial][ILSEQ]
-5CE05C00 E000 [Trivial][BROKE]
-5CE05C08 E008 [Trivial][BROKE]
-5CE05C09 E009 [Trivial][BROKE]
-5CE05C0A E00A [Trivial][BROKE]
-5CE05C0D E00D [Trivial][BROKE]
-5CE05C1A E01A [Trivial][BROKE]
-5CE05C22 E022 [Trivial][BROKE]
-5CE05C25 E05C25 [Regular]
-5CE05C27 E027 [Trivial][BROKE]
-5CE05C30 E000 [Regular][BROKE]
-5CE05C3F E03F [Trivial][BROKE]
-5CE05C40 E040 [Trivial][USER]
-5CE05C5A E01A [Regular][BROKE]
-5CE05C5C E05C [Regular][USER]
-5CE05C5F E05C5F [Regular]
-5CE05C61 E061 [Trivial][USER]
-5CE05C62 E008 [Regular][BROKE][USER]
-5CE05C6E E00A [Regular][BROKE]
-5CE05C72 E00D [Regular][BROKE]
-5CE05C74 E009 [Regular][BROKE]
-5CE05C7E E07E [Trivial][USER]
-5CE05C7F E07F [Trivial][BROKE]
-5CE05C80 E080 [Trivial][ILSEQ]
-5CE05C81 E081 [Trivial][ILSEQ]
-5CE05C9F E09F [Trivial][ILSEQ]
-5CE05CA0 E0A0 [Trivial][ILSEQ]
-5CE05CA1 E0A1 [Trivial][FIXED][USER]
-5CE05CE0 E0E0 [Trivial][FIXED][USER]
-5CE05CEF E0EF [Trivial][FIXED][USER]
-5CE05CF9 E0F9 [Trivial][FIXED][USER]
-5CE05CFA E0FA [Trivial][FIXED][USER]
-5CE05CFC E0FC [Trivial][FIXED][USER]
-5CE05CFD E0FD [Trivial][FIXED][USER]
-5CE05CFE E0FE [Trivial][FIXED][USER]
-5CE05CFF E0FF [Trivial][ILSEQ]
-5CEF5C00 EF00 [Trivial][BROKE]
-5CEF5C08 EF08 [Trivial][BROKE]
-5CEF5C09 EF09 [Trivial][BROKE]
-5CEF5C0A EF0A [Trivial][BROKE]
-5CEF5C0D EF0D [Trivial][BROKE]
-5CEF5C1A EF1A [Trivial][BROKE]
-5CEF5C22 EF22 [Trivial][BROKE]
-5CEF5C25 EF5C25 [Regular]
-5CEF5C27 EF27 [Trivial][BROKE]
-5CEF5C30 EF00 [Regular][BROKE]
-5CEF5C3F EF3F [Trivial][BROKE]
-5CEF5C40 EF40 [Trivial][USER]
-5CEF5C5A EF1A [Regular][BROKE]
-5CEF5C5C EF5C [Regular][USER]
-5CEF5C5F EF5C5F [Regular]
-5CEF5C61 EF61 [Trivial][USER]
-5CEF5C62 EF08 [Regular][BROKE][USER]
-5CEF5C6E EF0A [Regular][BROKE]
-5CEF5C72 EF0D [Regular][BROKE]
-5CEF5C74 EF09 [Regular][BROKE]
-5CEF5C7E EF7E [Trivial][USER]
-5CEF5C7F EF7F [Trivial][BROKE]
-5CEF5C80 EF80 [Trivial][ILSEQ]
-5CEF5C81 EF81 [Trivial][ILSEQ]
-5CEF5C9F EF9F [Trivial][ILSEQ]
-5CEF5CA0 EFA0 [Trivial][ILSEQ]
-5CEF5CA1 EFA1 [Trivial][FIXED][USER]
-5CEF5CE0 EFE0 [Trivial][FIXED][USER]
-5CEF5CEF EFEF [Trivial][FIXED][USER]
-5CEF5CF9 EFF9 [Trivial][FIXED][USER]
-5CEF5CFA EFFA [Trivial][FIXED][USER]
-5CEF5CFC EFFC [Trivial][FIXED][USER]
-5CEF5CFD EFFD [Trivial][FIXED][USER]
-5CEF5CFE EFFE [Trivial][FIXED][USER]
-5CEF5CFF EFFF [Trivial][ILSEQ]
-5CF95C00 F900 [Trivial][BROKE]
-5CF95C08 F908 [Trivial][BROKE]
-5CF95C09 F909 [Trivial][BROKE]
-5CF95C0A F90A [Trivial][BROKE]
-5CF95C0D F90D [Trivial][BROKE]
-5CF95C1A F91A [Trivial][BROKE]
-5CF95C22 F922 [Trivial][BROKE]
-5CF95C25 F95C25 [Regular]
-5CF95C27 F927 [Trivial][BROKE]
-5CF95C30 F900 [Regular][BROKE]
-5CF95C3F F93F [Trivial][BROKE]
-5CF95C40 F940 [Trivial][USER]
-5CF95C5A F91A [Regular][BROKE]
-5CF95C5C F95C [Regular][USER]
-5CF95C5F F95C5F [Regular]
-5CF95C61 F961 [Trivial][USER]
-5CF95C62 F908 [Regular][BROKE][USER]
-5CF95C6E F90A [Regular][BROKE]
-5CF95C72 F90D [Regular][BROKE]
-5CF95C74 F909 [Regular][BROKE]
-5CF95C7E F97E [Trivial][USER]
-5CF95C7F F97F [Trivial][BROKE]
-5CF95C80 F980 [Trivial][ILSEQ]
-5CF95C81 F981 [Trivial][ILSEQ]
-5CF95C9F F99F [Trivial][ILSEQ]
-5CF95CA0 F9A0 [Trivial][ILSEQ]
-5CF95CA1 F9A1 [Trivial][FIXED][USER]
-5CF95CE0 F9E0 [Trivial][FIXED][USER]
-5CF95CEF F9EF [Trivial][FIXED][USER]
-5CF95CF9 F9F9 [Trivial][FIXED][USER]
-5CF95CFA F9FA [Trivial][FIXED][USER]
-5CF95CFC F9FC [Trivial][FIXED][USER]
-5CF95CFD F9FD [Trivial][FIXED][USER]
-5CF95CFE F9FE [Trivial][FIXED][USER]
-5CF95CFF F9FF [Trivial][ILSEQ]
-5CFA5C00 FA00 [Trivial][ILSEQ]
-5CFA5C08 FA08 [Trivial][ILSEQ]
-5CFA5C09 FA09 [Trivial][ILSEQ]
-5CFA5C0A FA0A [Trivial][ILSEQ]
-5CFA5C0D FA0D [Trivial][ILSEQ]
-5CFA5C1A FA1A [Trivial][ILSEQ]
-5CFA5C22 FA22 [Trivial][ILSEQ]
-5CFA5C25 FA5C25 [Regular][ILSEQ]
-5CFA5C27 FA27 [Trivial][ILSEQ]
-5CFA5C30 FA00 [Regular][ILSEQ]
-5CFA5C3F FA3F [Trivial][ILSEQ]
-5CFA5C40 FA40 [Trivial][ILSEQ]
-5CFA5C5A FA1A [Regular][ILSEQ]
-5CFA5C5C FA5C [Regular][ILSEQ]
-5CFA5C5F FA5C5F [Regular][ILSEQ]
-5CFA5C61 FA61 [Trivial][ILSEQ]
-5CFA5C62 FA08 [Regular][ILSEQ]
-5CFA5C6E FA0A [Regular][ILSEQ]
-5CFA5C72 FA0D [Regular][ILSEQ]
-5CFA5C74 FA09 [Regular][ILSEQ]
-5CFA5C7E FA7E [Trivial][ILSEQ]
-5CFA5C7F FA7F [Trivial][ILSEQ]
-5CFA5C80 FA80 [Trivial][ILSEQ]
-5CFA5C81 FA81 [Trivial][ILSEQ]
-5CFA5C9F FA9F [Trivial][ILSEQ]
-5CFA5CA0 FAA0 [Trivial][ILSEQ]
-5CFA5CA1 FAA1 [Trivial][ILSEQ]
-5CFA5CE0 FAE0 [Trivial][ILSEQ]
-5CFA5CEF FAEF [Trivial][ILSEQ]
-5CFA5CF9 FAF9 [Trivial][ILSEQ]
-5CFA5CFA FAFA [Trivial][ILSEQ]
-5CFA5CFC FAFC [Trivial][ILSEQ]
-5CFA5CFD FAFD [Trivial][ILSEQ]
-5CFA5CFE FAFE [Trivial][ILSEQ]
-5CFA5CFF FAFF [Trivial][ILSEQ]
-5CFC5C00 FC00 [Trivial][ILSEQ]
-5CFC5C08 FC08 [Trivial][ILSEQ]
-5CFC5C09 FC09 [Trivial][ILSEQ]
-5CFC5C0A FC0A [Trivial][ILSEQ]
-5CFC5C0D FC0D [Trivial][ILSEQ]
-5CFC5C1A FC1A [Trivial][ILSEQ]
-5CFC5C22 FC22 [Trivial][ILSEQ]
-5CFC5C25 FC5C25 [Regular][ILSEQ]
-5CFC5C27 FC27 [Trivial][ILSEQ]
-5CFC5C30 FC00 [Regular][ILSEQ]
-5CFC5C3F FC3F [Trivial][ILSEQ]
-5CFC5C40 FC40 [Trivial][ILSEQ]
-5CFC5C5A FC1A [Regular][ILSEQ]
-5CFC5C5C FC5C [Regular][ILSEQ]
-5CFC5C5F FC5C5F [Regular][ILSEQ]
-5CFC5C61 FC61 [Trivial][ILSEQ]
-5CFC5C62 FC08 [Regular][ILSEQ]
-5CFC5C6E FC0A [Regular][ILSEQ]
-5CFC5C72 FC0D [Regular][ILSEQ]
-5CFC5C74 FC09 [Regular][ILSEQ]
-5CFC5C7E FC7E [Trivial][ILSEQ]
-5CFC5C7F FC7F [Trivial][ILSEQ]
-5CFC5C80 FC80 [Trivial][ILSEQ]
-5CFC5C81 FC81 [Trivial][ILSEQ]
-5CFC5C9F FC9F [Trivial][ILSEQ]
-5CFC5CA0 FCA0 [Trivial][ILSEQ]
-5CFC5CA1 FCA1 [Trivial][ILSEQ]
-5CFC5CE0 FCE0 [Trivial][ILSEQ]
-5CFC5CEF FCEF [Trivial][ILSEQ]
-5CFC5CF9 FCF9 [Trivial][ILSEQ]
-5CFC5CFA FCFA [Trivial][ILSEQ]
-5CFC5CFC FCFC [Trivial][ILSEQ]
-5CFC5CFD FCFD [Trivial][ILSEQ]
-5CFC5CFE FCFE [Trivial][ILSEQ]
-5CFC5CFF FCFF [Trivial][ILSEQ]
-5CFD5C00 FD00 [Trivial][ILSEQ]
-5CFD5C08 FD08 [Trivial][ILSEQ]
-5CFD5C09 FD09 [Trivial][ILSEQ]
-5CFD5C0A FD0A [Trivial][ILSEQ]
-5CFD5C0D FD0D [Trivial][ILSEQ]
-5CFD5C1A FD1A [Trivial][ILSEQ]
-5CFD5C22 FD22 [Trivial][ILSEQ]
-5CFD5C25 FD5C25 [Regular][ILSEQ]
-5CFD5C27 FD27 [Trivial][ILSEQ]
-5CFD5C30 FD00 [Regular][ILSEQ]
-5CFD5C3F FD3F [Trivial][ILSEQ]
-5CFD5C40 FD40 [Trivial][ILSEQ]
-5CFD5C5A FD1A [Regular][ILSEQ]
-5CFD5C5C FD5C [Regular][ILSEQ]
-5CFD5C5F FD5C5F [Regular][ILSEQ]
-5CFD5C61 FD61 [Trivial][ILSEQ]
-5CFD5C62 FD08 [Regular][ILSEQ]
-5CFD5C6E FD0A [Regular][ILSEQ]
-5CFD5C72 FD0D [Regular][ILSEQ]
-5CFD5C74 FD09 [Regular][ILSEQ]
-5CFD5C7E FD7E [Trivial][ILSEQ]
-5CFD5C7F FD7F [Trivial][ILSEQ]
-5CFD5C80 FD80 [Trivial][ILSEQ]
-5CFD5C81 FD81 [Trivial][ILSEQ]
-5CFD5C9F FD9F [Trivial][ILSEQ]
-5CFD5CA0 FDA0 [Trivial][ILSEQ]
-5CFD5CA1 FDA1 [Trivial][ILSEQ]
-5CFD5CE0 FDE0 [Trivial][ILSEQ]
-5CFD5CEF FDEF [Trivial][ILSEQ]
-5CFD5CF9 FDF9 [Trivial][ILSEQ]
-5CFD5CFA FDFA [Trivial][ILSEQ]
-5CFD5CFC FDFC [Trivial][ILSEQ]
-5CFD5CFD FDFD [Trivial][ILSEQ]
-5CFD5CFE FDFE [Trivial][ILSEQ]
-5CFD5CFF FDFF [Trivial][ILSEQ]
-5CFE5C00 FE00 [Trivial][ILSEQ]
-5CFE5C08 FE08 [Trivial][ILSEQ]
-5CFE5C09 FE09 [Trivial][ILSEQ]
-5CFE5C0A FE0A [Trivial][ILSEQ]
-5CFE5C0D FE0D [Trivial][ILSEQ]
-5CFE5C1A FE1A [Trivial][ILSEQ]
-5CFE5C22 FE22 [Trivial][ILSEQ]
-5CFE5C25 FE5C25 [Regular][ILSEQ]
-5CFE5C27 FE27 [Trivial][ILSEQ]
-5CFE5C30 FE00 [Regular][ILSEQ]
-5CFE5C3F FE3F [Trivial][ILSEQ]
-5CFE5C40 FE40 [Trivial][ILSEQ]
-5CFE5C5A FE1A [Regular][ILSEQ]
-5CFE5C5C FE5C [Regular][ILSEQ]
-5CFE5C5F FE5C5F [Regular][ILSEQ]
-5CFE5C61 FE61 [Trivial][ILSEQ]
-5CFE5C62 FE08 [Regular][ILSEQ]
-5CFE5C6E FE0A [Regular][ILSEQ]
-5CFE5C72 FE0D [Regular][ILSEQ]
-5CFE5C74 FE09 [Regular][ILSEQ]
-5CFE5C7E FE7E [Trivial][ILSEQ]
-5CFE5C7F FE7F [Trivial][ILSEQ]
-5CFE5C80 FE80 [Trivial][ILSEQ]
-5CFE5C81 FE81 [Trivial][ILSEQ]
-5CFE5C9F FE9F [Trivial][ILSEQ]
-5CFE5CA0 FEA0 [Trivial][ILSEQ]
-5CFE5CA1 FEA1 [Trivial][ILSEQ]
-5CFE5CE0 FEE0 [Trivial][ILSEQ]
-5CFE5CEF FEEF [Trivial][ILSEQ]
-5CFE5CF9 FEF9 [Trivial][ILSEQ]
-5CFE5CFA FEFA [Trivial][ILSEQ]
-5CFE5CFC FEFC [Trivial][ILSEQ]
-5CFE5CFD FEFD [Trivial][ILSEQ]
-5CFE5CFE FEFE [Trivial][ILSEQ]
-5CFE5CFF FEFF [Trivial][ILSEQ]
-5CFF5C00 FF00 [Trivial][ILSEQ]
-5CFF5C08 FF08 [Trivial][ILSEQ]
-5CFF5C09 FF09 [Trivial][ILSEQ]
-5CFF5C0A FF0A [Trivial][ILSEQ]
-5CFF5C0D FF0D [Trivial][ILSEQ]
-5CFF5C1A FF1A [Trivial][ILSEQ]
-5CFF5C22 FF22 [Trivial][ILSEQ]
-5CFF5C25 FF5C25 [Regular][ILSEQ]
-5CFF5C27 FF27 [Trivial][ILSEQ]
-5CFF5C30 FF00 [Regular][ILSEQ]
-5CFF5C3F FF3F [Trivial][ILSEQ]
-5CFF5C40 FF40 [Trivial][ILSEQ]
-5CFF5C5A FF1A [Regular][ILSEQ]
-5CFF5C5C FF5C [Regular][ILSEQ]
-5CFF5C5F FF5C5F [Regular][ILSEQ]
-5CFF5C61 FF61 [Trivial][ILSEQ]
-5CFF5C62 FF08 [Regular][ILSEQ]
-5CFF5C6E FF0A [Regular][ILSEQ]
-5CFF5C72 FF0D [Regular][ILSEQ]
-5CFF5C74 FF09 [Regular][ILSEQ]
-5CFF5C7E FF7E [Trivial][ILSEQ]
-5CFF5C7F FF7F [Trivial][ILSEQ]
-5CFF5C80 FF80 [Trivial][ILSEQ]
-5CFF5C81 FF81 [Trivial][ILSEQ]
-5CFF5C9F FF9F [Trivial][ILSEQ]
-5CFF5CA0 FFA0 [Trivial][ILSEQ]
-5CFF5CA1 FFA1 [Trivial][ILSEQ]
-5CFF5CE0 FFE0 [Trivial][ILSEQ]
-5CFF5CEF FFEF [Trivial][ILSEQ]
-5CFF5CF9 FFF9 [Trivial][ILSEQ]
-5CFF5CFA FFFA [Trivial][ILSEQ]
-5CFF5CFC FFFC [Trivial][ILSEQ]
-5CFF5CFD FFFD [Trivial][ILSEQ]
-5CFF5CFE FFFE [Trivial][ILSEQ]
-5CFF5CFF FFFF [Trivial][ILSEQ]
-DROP TABLE t1;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP FUNCTION unescape;
-DROP FUNCTION unescape_type;
-DROP FUNCTION wellformedness;
-DROP FUNCTION mysql_real_escape_string_generated;
-DROP FUNCTION iswellformed;
-DROP TABLE allbytes;
-SET sql_mode = DEFAULT;
-# End of ctype_backslash.inc
-SET NAMES big5;
-# Start of ctype_E05C.inc
-SELECT HEX('à\'),HEX('à\t');
-HEX('à\') HEX('à\t')
-E05C E05C74
-SELECT HEX('\\à\'),HEX('\\à\t'),HEX('\\à\t\t');
-HEX('\\à\') HEX('\\à\t') HEX('\\à\t\t')
-5CE05C 5CE05C74 5CE05C7409
-SELECT HEX('''à\'),HEX('à\''');
-HEX('''à\') HEX('à\''')
-27E05C E05C27
-SELECT HEX('\\''à\'),HEX('à\''\\');
-HEX('\\''à\') HEX('à\''\\')
-5C27E05C E05C275C
-SELECT HEX(BINARY('à\')),HEX(BINARY('à\t'));
-HEX(BINARY('à\')) HEX(BINARY('à\t'))
-E05C E05C74
-SELECT HEX(BINARY('\\à\')),HEX(BINARY('\\à\t')),HEX(BINARY('\\à\t\t'));
-HEX(BINARY('\\à\')) HEX(BINARY('\\à\t')) HEX(BINARY('\\à\t\t'))
-5CE05C 5CE05C74 5CE05C7409
-SELECT HEX(BINARY('''à\')),HEX(BINARY('à\'''));
-HEX(BINARY('''à\')) HEX(BINARY('à\'''))
-27E05C E05C27
-SELECT HEX(BINARY('\\''à\')),HEX(BINARY('à\''\\'));
-HEX(BINARY('\\''à\')) HEX(BINARY('à\''\\'))
-5C27E05C E05C275C
-SELECT HEX(_BINARY'à\'),HEX(_BINARY'à\t');
-HEX(_BINARY'à\') HEX(_BINARY'à\t')
-E05C E05C74
-SELECT HEX(_BINARY'\\à\'),HEX(_BINARY'\\à\t'),HEX(_BINARY'\\à\t\t');
-HEX(_BINARY'\\à\') HEX(_BINARY'\\à\t') HEX(_BINARY'\\à\t\t')
-5CE05C 5CE05C74 5CE05C7409
-SELECT HEX(_BINARY'''à\'),HEX(_BINARY'à\''');
-HEX(_BINARY'''à\') HEX(_BINARY'à\''')
-27E05C E05C27
-SELECT HEX(_BINARY'\\''à\'),HEX(_BINARY'à\''\\');
-HEX(_BINARY'\\''à\') HEX(_BINARY'à\''\\')
-5C27E05C E05C275C
-CREATE TABLE t1 AS SELECT REPEAT(' ',10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET big5 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('à\'),('à\t');
-INSERT INTO t1 VALUES ('\\à\'),('\\à\t'),('\\à\t\t');
-INSERT INTO t1 VALUES ('''à\'),('à\''');
-INSERT INTO t1 VALUES ('\\''à\'),('à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES ('à\'),('à\t');
-INSERT INTO t1 VALUES ('\\à\'),('\\à\t'),('\\à\t\t');
-INSERT INTO t1 VALUES ('''à\'),('à\''');
-INSERT INTO t1 VALUES ('\\''à\'),('à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET big5 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (BINARY('à\')),(BINARY('à\t'));
-INSERT INTO t1 VALUES (BINARY('\\à\')),(BINARY('\\à\t')),(BINARY('\\à\t\t'));
-INSERT INTO t1 VALUES (BINARY('''à\')),(BINARY('à\'''));
-INSERT INTO t1 VALUES (BINARY('\\''à\')),(BINARY('à\''\\'));
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES (BINARY('à\')),(BINARY('à\t'));
-INSERT INTO t1 VALUES (BINARY('\\à\')),(BINARY('\\à\t')),(BINARY('\\à\t\t'));
-INSERT INTO t1 VALUES (BINARY('''à\')),(BINARY('à\'''));
-INSERT INTO t1 VALUES (BINARY('\\''à\')),(BINARY('à\''\\'));
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET big5 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_BINARY'à\'),(_BINARY'à\t');
-INSERT INTO t1 VALUES (_BINARY'\\à\'),(_BINARY'\\à\t'),(_BINARY'\\à\t\t');
-INSERT INTO t1 VALUES (_BINARY'''à\'),(_BINARY'à\''');
-INSERT INTO t1 VALUES (_BINARY'\\''à\'),(_BINARY'à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES (_BINARY'à\'),(_BINARY'à\t');
-INSERT INTO t1 VALUES (_BINARY'\\à\'),(_BINARY'\\à\t'),(_BINARY'\\à\t\t');
-INSERT INTO t1 VALUES (_BINARY'''à\'),(_BINARY'à\''');
-INSERT INTO t1 VALUES (_BINARY'\\''à\'),(_BINARY'à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-SET character_set_client=binary, character_set_results=binary;
-SELECT @@character_set_client, @@character_set_connection, @@character_set_results;
-@@character_set_client @@character_set_connection @@character_set_results
-binary big5 binary
-SELECT HEX('à\['), HEX('\à\[');
-HEX('à\[') HEX('\à\[')
-E05B E05B
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET big5 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('à\['),('\à\[');
-SELECT HEX(a) FROM t1;
-HEX(a)
-E05B
-E05B
-DROP TABLE t1;
-SET character_set_client=@@character_set_connection, character_set_results=@@character_set_connection;
-SET character_set_connection=binary;
-SELECT @@character_set_client, @@character_set_connection, @@character_set_results;
-@@character_set_client @@character_set_connection @@character_set_results
-big5 binary big5
-SELECT HEX('à\['), HEX('\à\[');
-HEX('à\[') HEX('\à\[')
-E05C5B E05B
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('à\['),('\à\[');
-SELECT HEX(a) FROM t1;
-HEX(a)
-E05C5B
-E05B
-DROP TABLE t1;
-# Start of ctype_E05C.inc
-SET NAMES big5;
-CREATE TABLE t1 (a ENUM('È@') CHARACTER SET big5);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('?') CHARACTER SET big5 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('È@');
-INSERT INTO t1 VALUES (_big5 0xC840);
-INSERT INTO t1 VALUES (0xC840);
-SELECT HEX(a),a FROM t1;
-HEX(a) a
-C840 È@
-C840 È@
-C840 È@
-DROP TABLE t1;
-SET NAMES binary;
-CREATE TABLE t1 (a ENUM('È@') CHARACTER SET big5);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('?') CHARACTER SET big5 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('È@');
-INSERT INTO t1 VALUES (_big5 0xC840);
-INSERT INTO t1 VALUES (0xC840);
-SELECT HEX(a),a FROM t1;
-HEX(a) a
-C840 È@
-C840 È@
-C840 È@
-DROP TABLE t1;
-SET NAMES big5;
-CREATE TABLE t1 (
-c1 CHAR(10) CHARACTER SET big5,
-c2 VARCHAR(10) CHARACTER SET big5,
-c3 TEXT CHARACTER SET big5
-);
-INSERT INTO t1 VALUES ('È@','È@','È@');
-INSERT INTO t1 VALUES (_big5 0xC840,_big5 0xC840,_big5 0xC840);
-INSERT INTO t1 VALUES (0xC840,0xC840,0xC840);
-SELECT HEX(c1),HEX(c2),HEX(c3) FROM t1;
-HEX(c1) HEX(c2) HEX(c3)
-C840 C840 C840
-C840 C840 C840
-C840 C840 C840
-DROP TABLE t1;
-SET NAMES binary;
-CREATE TABLE t1 (
-c1 CHAR(10) CHARACTER SET big5,
-c2 VARCHAR(10) CHARACTER SET big5,
-c3 TEXT CHARACTER SET big5
-);
-INSERT INTO t1 VALUES ('È@','È@','È@');
-INSERT INTO t1 VALUES (_big5 0xC840,_big5 0xC840,_big5 0xC840);
-INSERT INTO t1 VALUES (0xC840,0xC840,0xC840);
-SELECT HEX(c1),HEX(c2),HEX(c3) FROM t1;
-HEX(c1) HEX(c2) HEX(c3)
-C840 C840 C840
-C840 C840 C840
-C840 C840 C840
-DROP TABLE t1;
-SET NAMES binary;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET big5, KEY(a));
-INSERT INTO t1 VALUES (0xC840),(0xC841),(0xC842);
-SELECT HEX(a) FROM t1 WHERE a='È@';
-HEX(a)
-C840
-SELECT HEX(a) FROM t1 IGNORE KEY(a) WHERE a='È@';
-HEX(a)
-C840
-DROP TABLE t1;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=big5;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'big5_chinese_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE big5_chinese_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'big5_chinese_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'big5_chinese_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'big5_chinese_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'big5_chinese_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'big5_chinese_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'big5_chinese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'big5_chinese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'big5_chinese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'big5_chinese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'big5_chinese_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'big5_chinese_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'big5_chinese_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'big5_chinese_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'big5_chinese_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_chinese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_chinese_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'big5_chinese_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_chinese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_chinese_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'big5_chinese_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE big5_chinese_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=big5 COLLATE=big5_chinese_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'big5_chinese_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'big5_chinese_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'big5_chinese_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'big5_chinese_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'big5_chinese_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'big5_chinese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'big5_chinese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'big5_chinese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'big5_chinese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'big5_chinese_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'big5_chinese_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'big5_chinese_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'big5_chinese_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'big5_chinese_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_chinese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_chinese_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'big5_chinese_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_chinese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_chinese_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'big5_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE big5_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'big5_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'big5_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'big5_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'big5_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'big5_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'big5_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'big5_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'big5_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'big5_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'big5_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'big5_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'big5_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'big5_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'big5_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'big5_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'big5_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE big5_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=big5 COLLATE=big5_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'big5_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'big5_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'big5_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'big5_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'big5_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'big5_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'big5_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'big5_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'big5_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'big5_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'big5_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'big5_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'big5_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'big5_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'big5_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'big5_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_binary.result b/mysql-test/r/ctype_binary.result
deleted file mode 100644
index 0afe5298411..00000000000
--- a/mysql-test/r/ctype_binary.result
+++ /dev/null
@@ -1,3153 +0,0 @@
-set names binary;
-#
-# Start of 5.5 tests
-#
-SET TIME_ZONE = _latin1 '+03:00';
-#
-# Start of WL#2649 Number-to-string conversions
-#
-select hex(concat(1));
-hex(concat(1))
-31
-create table t1 as select concat(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-31
-drop table t1;
-select hex(concat(18446744073709551615));
-hex(concat(18446744073709551615))
-3138343436373434303733373039353531363135
-create table t1 as select concat(18446744073709551615) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-3138343436373434303733373039353531363135
-drop table t1;
-select hex(concat(1.1));
-hex(concat(1.1))
-312E31
-create table t1 as select concat(1.1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-312E31
-drop table t1;
-select hex(concat('a', 1+2)), charset(concat(1+2));
-hex(concat('a', 1+2)) charset(concat(1+2))
-6133 binary
-create table t1 as select concat(1+2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1-2));
-hex(concat(1-2))
-2D31
-create table t1 as select concat(1-2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1*2));
-hex(concat(1*2))
-32
-create table t1 as select concat(1*2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1/2));
-hex(concat(1/2))
-302E35303030
-create table t1 as select concat(1/2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(7) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1 div 2));
-hex(concat(1 div 2))
-30
-create table t1 as select concat(1 div 2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1 % 2));
-hex(concat(1 % 2))
-31
-create table t1 as select concat(1 % 2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(-1));
-hex(concat(-1))
-2D31
-create table t1 as select concat(-1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(-(1+2)));
-hex(concat(-(1+2)))
-2D33
-create table t1 as select concat(-(1+2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1|2));
-hex(concat(1|2))
-33
-create table t1 as select concat(1|2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1&2));
-hex(concat(1&2))
-30
-create table t1 as select concat(1&2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(bit_count(12)));
-hex(concat(bit_count(12)))
-32
-create table t1 as select concat(bit_count(12)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(2<<1));
-hex(concat(2<<1))
-34
-create table t1 as select concat(2<<1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(2>>1));
-hex(concat(2>>1))
-31
-create table t1 as select concat(2>>1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(~0));
-hex(concat(~0))
-3138343436373434303733373039353531363135
-create table t1 as select concat(~0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(3^2));
-hex(concat(3^2))
-31
-create table t1 as select concat(3^2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(abs(-2)));
-hex(concat(abs(-2)))
-32
-create table t1 as select concat(abs(-2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(exp(2)),1));
-hex(left(concat(exp(2)),1))
-37
-create table t1 as select concat(exp(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log(2)),1));
-hex(left(concat(log(2)),1))
-30
-create table t1 as select concat(log(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log2(2)),1));
-hex(left(concat(log2(2)),1))
-31
-create table t1 as select concat(log2(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log10(2)),1));
-hex(left(concat(log10(2)),1))
-30
-create table t1 as select concat(log10(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(sqrt(2)),1));
-hex(left(concat(sqrt(2)),1))
-31
-create table t1 as select concat(sqrt(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(pow(2,2)),1));
-hex(left(concat(pow(2,2)),1))
-34
-create table t1 as select concat(pow(2,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(acos(0.5)),1));
-hex(left(concat(acos(0.5)),1))
-31
-create table t1 as select concat(acos(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(asin(0.5)),1));
-hex(left(concat(asin(0.5)),1))
-30
-create table t1 as select concat(asin(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(atan(0.5)),1));
-hex(left(concat(atan(0.5)),1))
-30
-create table t1 as select concat(atan(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(cos(0.5)),1));
-hex(left(concat(cos(0.5)),1))
-30
-create table t1 as select concat(cos(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(sin(0.5)),1));
-hex(left(concat(sin(0.5)),1))
-30
-create table t1 as select concat(sin(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(tan(0.5)),1));
-hex(left(concat(tan(0.5)),1))
-30
-create table t1 as select concat(tan(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(degrees(0)));
-hex(concat(degrees(0)))
-30
-create table t1 as select concat(degrees(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(radians(0)));
-hex(concat(radians(0)))
-30
-create table t1 as select concat(radians(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ceiling(0.5)));
-hex(concat(ceiling(0.5)))
-31
-create table t1 as select concat(ceiling(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(floor(0.5)));
-hex(concat(floor(0.5)))
-30
-create table t1 as select concat(floor(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(round(0.5)));
-hex(concat(round(0.5)))
-31
-create table t1 as select concat(round(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sign(0.5)));
-hex(concat(sign(0.5)))
-31
-create table t1 as select concat(sign(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(rand()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(length('a')));
-hex(concat(length('a')))
-31
-create table t1 as select concat(length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(char_length('a')));
-hex(concat(char_length('a')))
-31
-create table t1 as select concat(char_length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(bit_length('a')));
-hex(concat(bit_length('a')))
-38
-create table t1 as select concat(bit_length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(coercibility('a')));
-hex(concat(coercibility('a')))
-34
-create table t1 as select concat(coercibility('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(locate('a','a')));
-hex(concat(locate('a','a')))
-31
-create table t1 as select concat(locate('a','a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(field('c','a','b','c')));
-hex(concat(field('c','a','b','c')))
-33
-create table t1 as select concat(field('c','a','b','c')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ascii(61)));
-hex(concat(ascii(61)))
-3534
-create table t1 as select concat(ascii(61)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ord(61)));
-hex(concat(ord(61)))
-3534
-create table t1 as select concat(ord(61)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(7) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(find_in_set('b','a,b,c,d')));
-hex(concat(find_in_set('b','a,b,c,d')))
-32
-create table t1 as select concat(find_in_set('b','a,b,c,d')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select md5('a'), hex(md5('a'));
-md5('a') hex(md5('a'))
-0cc175b9c0f1b6a831c399e269772661 3063633137356239633066316236613833316333393965323639373732363631
-create table t1 as select md5('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(32) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select old_password('a'), hex(old_password('a'));
-old_password('a') hex(old_password('a'))
-60671c896665c3fa 36303637316338393636363563336661
-create table t1 as select old_password('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(16) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select password('a'), hex(password('a'));
-password('a') hex(password('a'))
-*667F407DE7C6AD07358FA38DAED7828A72014B4E 2A36363746343037444537433641443037333538464133384441454437383238413732303134423445
-create table t1 as select password('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(41) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select sha('a'), hex(sha('a'));
-sha('a') hex(sha('a'))
-86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 38366637653433376661613561376663653135643164646362396561656165613337373636376238
-create table t1 as select sha('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(40) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select sha1('a'), hex(sha1('a'));
-sha1('a') hex(sha1('a'))
-86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 38366637653433376661613561376663653135643164646362396561656165613337373636376238
-create table t1 as select sha1('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(40) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('-1' as signed)));
-hex(concat(cast('-1' as signed)))
-2D31
-create table t1 as select concat(cast('-1' as signed)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('1' as unsigned)));
-hex(concat(cast('1' as unsigned)))
-31
-create table t1 as select concat(cast('1' as unsigned)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast(1/2 as decimal(5,5))));
-hex(concat(cast(1/2 as decimal(5,5))))
-302E3530303030
-create table t1 as select concat(cast(1/2 as decimal(5,5))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(7) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('2001-01-02 03:04:05' as date)));
-hex(concat(cast('2001-01-02 03:04:05' as date)))
-323030312D30312D3032
-create table t1 as select concat(cast('2001-01-02 03:04:05' as date)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2001-01-02
-drop table t1;
-select hex(concat(cast('2001-01-02 03:04:05' as time)));
-hex(concat(cast('2001-01-02 03:04:05' as time)))
-30333A30343A3035
-create table t1 as select concat(cast('2001-01-02 03:04:05' as time)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-03:04:05
-drop table t1;
-select hex(concat(cast('2001-01-02' as datetime)));
-hex(concat(cast('2001-01-02' as datetime)))
-323030312D30312D30322030303A30303A3030
-create table t1 as select concat(cast('2001-01-02' as datetime)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2001-01-02 00:00:00
-drop table t1;
-select hex(concat(least(1,2)));
-hex(concat(least(1,2)))
-31
-create table t1 as select concat(least(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(greatest(1,2)));
-hex(concat(greatest(1,2)))
-32
-create table t1 as select concat(greatest(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(case when 11 then 22 else 33 end));
-hex(concat(case when 11 then 22 else 33 end))
-3232
-create table t1 as select concat(case when 11 then 22 else 33 end) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(coalesce(1,2)));
-hex(concat(coalesce(1,2)))
-31
-create table t1 as select concat(coalesce(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat_ws(1,2,3));
-hex(concat_ws(1,2,3))
-323133
-create table t1 as select concat_ws(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(group_concat(1,2,3));
-hex(group_concat(1,2,3))
-313233
-create table t1 as select group_concat(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` mediumblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select 1 as c1 union select 'a';
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1 order by c1;
-hex(c1)
-31
-61
-drop table t1;
-create table t1 as select concat(last_insert_id()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(benchmark(0,0)));
-hex(concat(benchmark(0,0)))
-30
-create table t1 as select concat(benchmark(0,0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sleep(0)));
-hex(concat(sleep(0)))
-30
-create table t1 as select concat(sleep(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(is_free_lock('xxxx')));
-hex(concat(is_free_lock('xxxx')))
-31
-create table t1 as select concat(is_free_lock('xxxx')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(is_used_lock('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(release_lock('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(crc32('')));
-hex(concat(crc32('')))
-30
-create table t1 as select concat(crc32('')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(uncompressed_length('')));
-hex(concat(uncompressed_length('')))
-30
-create table t1 as select concat(uncompressed_length('')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(connection_id()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(inet_aton('127.1.1.1')));
-hex(concat(inet_aton('127.1.1.1')))
-32313330373732323235
-create table t1 as select concat(inet_aton('127.1.1.1')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(inet_ntoa(2130772225)));
-hex(concat(inet_ntoa(2130772225)))
-3132372E312E312E31
-create table t1 as select concat(inet_ntoa(2130772225)) as c1;
-select * from t1;
-c1
-127.1.1.1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(31) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select 1;
-1
-1
-select hex(concat(row_count()));
-hex(concat(row_count()))
-2D31
-create table t1 as select concat(row_count()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(found_rows()));
-hex(concat(found_rows()))
-30
-create table t1 as select concat(found_rows()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(uuid_short()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(uuid()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(36) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select coercibility(uuid()), coercibility(cast('a' as char character set latin1));
-coercibility(uuid()) coercibility(cast('a' as char character set latin1))
-4 2
-select charset(concat(uuid(), cast('a' as char character set latin1)));
-charset(concat(uuid(), cast('a' as char character set latin1)))
-latin1
-create table t1 as select concat(uuid(), cast('a' as char character set latin1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(37) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(master_pos_wait('non-existent',0,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=1));
-hex(concat(@a1:=1))
-31
-create table t1 as select concat(@a2:=2) as c1, @a3:=3 as c2;
-select hex(c1) from t1;
-hex(c1)
-32
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL,
- `c2` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=1;
-select hex(concat(@a2));
-hex(concat(@a2))
-31
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(20) DEFAULT NULL,
- `c2` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=sqrt(1)));
-hex(concat(@a1:=sqrt(1)))
-31
-create table t1 as select concat(@a2:=sqrt(1)) as c1, @a3:=sqrt(1) as c2;
-select hex(c1) from t1;
-hex(c1)
-31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL,
- `c2` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=sqrt(1);
-select hex(concat(@a2));
-hex(concat(@a2))
-31
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL,
- `c2` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=1.1));
-hex(concat(@a1:=1.1))
-312E31
-create table t1 as select concat(@a2:=1.1) as c1, @a3:=1.1 as c2;
-select hex(c1) from t1;
-hex(c1)
-312E31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(4) DEFAULT NULL,
- `c2` decimal(2,1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=1.1;
-select hex(concat(@a2));
-hex(concat(@a2))
-312E31
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-312E31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(83) DEFAULT NULL,
- `c2` decimal(65,38) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@@ft_max_word_len));
-hex(concat(@@ft_max_word_len))
-3834
-create table t1 as select concat(@@ft_max_word_len) as c1;
-select hex(c1) from t1;
-hex(c1)
-3834
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a'='a' IS TRUE));
-hex(concat('a'='a' IS TRUE))
-31
-create table t1 as select concat('a'='a' IS TRUE) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a'='a' IS NOT TRUE));
-hex(concat('a'='a' IS NOT TRUE))
-30
-create table t1 as select concat('a'='a' IS NOT TRUE) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NOT 'a'='a'));
-hex(concat(NOT 'a'='a'))
-30
-create table t1 as select concat(NOT 'a'='a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' IS NULL));
-hex(concat('a' IS NULL))
-30
-create table t1 as select concat('a' IS NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' IS NOT NULL));
-hex(concat('a' IS NOT NULL))
-31
-create table t1 as select concat('a' IS NOT NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' rlike 'a'));
-hex(concat('a' rlike 'a'))
-31
-create table t1 as select concat('a' IS NOT NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(strcmp('a','b')));
-hex(concat(strcmp('a','b')))
-2D31
-create table t1 as select concat(strcmp('a','b')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' like 'a'));
-hex(concat('a' like 'a'))
-31
-create table t1 as select concat('a' like 'b') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' between 'b' and 'c'));
-hex(concat('a' between 'b' and 'c'))
-30
-create table t1 as select concat('a' between 'b' and 'c') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' in ('a','b')));
-hex(concat('a' in ('a','b')))
-31
-create table t1 as select concat('a' in ('a','b')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(interval(23, 1, 15, 17, 30, 44, 200)));
-hex(concat(interval(23, 1, 15, 17, 30, 44, 200)))
-33
-create table t1 as select concat(interval(23, 1, 15, 17, 30, 44, 200)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a varchar(10), fulltext key(a));
-insert into t1 values ('a');
-select hex(concat(match (a) against ('a'))) from t1;
-hex(concat(match (a) against ('a')))
-30
-create table t2 as select concat(match (a) against ('a')) as a from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-select hex(ifnull(1,'a'));
-hex(ifnull(1,'a'))
-31
-create table t1 as select ifnull(1,'a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ifnull(1,1)));
-hex(concat(ifnull(1,1)))
-31
-create table t1 as select concat(ifnull(1,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ifnull(1.1,1.1)));
-hex(concat(ifnull(1.1,1.1)))
-312E31
-create table t1 as select concat(ifnull(1.1,1.1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(if(1,'b',1));
-hex(if(1,'b',1))
-62
-create table t1 as select if(1,'b',1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(if(1,1,'b'));
-hex(if(1,1,'b'))
-31
-create table t1 as select if(1,1,'b') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(if(1,1,1)));
-hex(concat(if(1,1,1)))
-31
-create table t1 as select concat(if(1,1,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(nullif(1,2)));
-hex(concat(nullif(1,2)))
-31
-create table t1 as select concat(nullif(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Dimension(GeomFromText('LINESTRING(0 0,10 10)'))));
-hex(concat(Dimension(GeomFromText('LINESTRING(0 0,10 10)'))))
-31
-create table t1 as select concat(Dimension(GeomFromText('LINSTRING(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))));
-hex(concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))))
-32
-create table t1 as select concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))));
-hex(concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))))
-32
-create table t1 as select concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))));
-hex(concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))))
-30
-create table t1 as select concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))));
-hex(concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))))
-31
-create table t1 as select concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsEmpty(GeomFromText('POINT(1 1)'))));
-hex(concat(IsEmpty(GeomFromText('POINT(1 1)'))))
-30
-create table t1 as select concat(IsEmpty(GeomFromText('Point(1 1)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsSimple(GeomFromText('POINT(1 1)'))));
-hex(concat(IsSimple(GeomFromText('POINT(1 1)'))))
-31
-create table t1 as select concat(IsSimple(GeomFromText('Point(1 1)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))));
-hex(concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))))
-30
-create table t1 as select concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))));
-hex(concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))))
-31
-create table t1 as select concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))) as c1;
-drop table t1;
-select hex(concat(x(GeomFromText('Point(1 2)'))));
-hex(concat(x(GeomFromText('Point(1 2)'))))
-31
-create table t1 as select concat(x(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(y(GeomFromText('Point(1 2)'))));
-hex(concat(y(GeomFromText('Point(1 2)'))))
-32
-create table t1 as select concat(x(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(GLength(GeomFromText('LineString(1 2,2 2)'))));
-hex(concat(GLength(GeomFromText('LineString(1 2,2 2)'))))
-31
-create table t1 as select concat(GLength(GeomFromText('LineString(1 2, 2 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))));
-hex(concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))))
-31
-create table t1 as select concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(GeometryType(GeomFromText('Point(1 2)'))));
-hex(concat(GeometryType(GeomFromText('Point(1 2)'))))
-504F494E54
-create table t1 as select concat(GeometryType(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(AsText(GeomFromText('Point(1 2)'))));
-hex(concat(AsText(GeomFromText('Point(1 2)'))))
-504F494E542831203229
-create table t1 as select concat(AsText(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(period_add(200902, 2)));
-hex(concat(period_add(200902, 2)))
-323030393034
-create table t1 as select concat(period_add(200902, 2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(period_diff(200902, 200802)));
-hex(concat(period_diff(200902, 200802)))
-3132
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1 as select concat(period_add(200902, 200802)) as c1;
-Warnings:
-Warning 1265 Data truncated for column 'c1' at row 1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(6) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(to_days(20090224)));
-hex(concat(to_days(20090224)))
-373333383237
-create table t1 as select concat(to_days(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofmonth(20090224)));
-hex(concat(dayofmonth(20090224)))
-3234
-create table t1 as select concat(dayofmonth(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofyear(20090224)));
-hex(concat(dayofyear(20090224)))
-3535
-create table t1 as select concat(dayofyear(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(hour('10:11:12')));
-hex(concat(hour('10:11:12')))
-3130
-create table t1 as select concat(hour('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(minute('10:11:12')));
-hex(concat(minute('10:11:12')))
-3131
-create table t1 as select concat(minute('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(second('10:11:12')));
-hex(concat(second('10:11:12')))
-3132
-create table t1 as select concat(second('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(quarter(20090224)));
-hex(concat(quarter(20090224)))
-31
-create table t1 as select concat(quarter(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(week(20090224)));
-hex(concat(week(20090224)))
-38
-create table t1 as select concat(week(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(yearweek(20090224)));
-hex(concat(yearweek(20090224)))
-323030393038
-create table t1 as select concat(yearweek(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(year(20090224)));
-hex(concat(year(20090224)))
-32303039
-create table t1 as select concat(year(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(weekday(20090224)));
-hex(concat(weekday(20090224)))
-31
-create table t1 as select concat(weekday(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofweek(20090224)));
-hex(concat(dayofweek(20090224)))
-33
-create table t1 as select concat(dayofweek(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(unix_timestamp(20090224)));
-hex(concat(unix_timestamp(20090224)))
-31323335343232383030
-create table t1 as select concat(unix_timestamp(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(17) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(time_to_sec('10:11:12')));
-hex(concat(time_to_sec('10:11:12')))
-3336363732
-create table t1 as select concat(time_to_sec('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(17) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(extract(year from 20090702)));
-hex(concat(extract(year from 20090702)))
-32303039
-create table t1 as select concat(extract(year from 20090702)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(microsecond('12:00:00.123456')));
-hex(concat(microsecond('12:00:00.123456')))
-313233343536
-create table t1 as select concat(microsecond('12:00:00.123456')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(month(20090224)));
-hex(concat(month(20090224)))
-32
-create table t1 as select concat(month(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(last_day('2003-02-05')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2003-02-28 323030332D30322D3238
-drop table t1;
-create table t1 as select concat(from_days(730669)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2000-07-03 323030302D30372D3033
-drop table t1;
-create table t1 as select concat(curdate()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(utc_date()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(curtime()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select repeat('a',20) as c1 limit 0;
-set timestamp=1216359724;
-insert into t1 values (current_date);
-insert into t1 values (current_time);
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2008-07-18 323030382D30372D3138
-08:42:04 30383A34323A3034
-drop table t1;
-create table t1 as select concat(utc_time()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sec_to_time(2378)));
-hex(concat(sec_to_time(2378)))
-30303A33393A3338
-create table t1 as select concat(sec_to_time(2378)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')));
-hex(concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')))
-32343A30303A3030
-create table t1 as select concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(maketime(10,11,12)));
-hex(concat(maketime(10,11,12)))
-31303A31313A3132
-create table t1 as select concat(maketime(10,11,12)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(get_format(DATE,'USA'));
-hex(get_format(DATE,'USA'))
-256D2E25642E2559
-create table t1 as select get_format(DATE,'USA') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(17) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(from_unixtime(1111885200)),4));
-hex(left(concat(from_unixtime(1111885200)),4))
-32303035
-create table t1 as select concat(from_unixtime(1111885200)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')));
-hex(concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')))
-323030332D31322D33312032303A30303A3030
-create table t1 as select concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(date_add('2004-01-01 12:00:00', interval 1 day)));
-hex(concat(date_add('2004-01-01 12:00:00', interval 1 day)))
-323030342D30312D30322031323A30303A3030
-create table t1 as select concat(date_add('2004-01-01 12:00:00', interval 1 day)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2004-01-02 12:00:00
-drop table t1;
-select hex(concat(makedate(2009,1)));
-hex(concat(makedate(2009,1)))
-323030392D30312D3031
-create table t1 as select concat(makedate(2009,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2009-01-01
-drop table t1;
-create table t1 as select concat(now()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(utc_timestamp()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(sysdate()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(addtime('00:00:00','11:22:33')));
-hex(concat(addtime('00:00:00','11:22:33')))
-31313A32323A3333
-create table t1 as select concat(addtime('00:00:00','11:22:33')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(26) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(subtime('23:59:59','11:22:33')));
-hex(concat(subtime('23:59:59','11:22:33')))
-31323A33373A3236
-create table t1 as select concat(subtime('23:59:59','11:22:33')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(26) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(elt(1,2,3));
-hex(elt(1,2,3))
-32
-create table t1 as select elt(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(export_set(1,2,3,4,2));
-hex(export_set(1,2,3,4,2))
-323433
-create table t1 as select export_set(1,2,3,4,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(127) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(insert(1133,3,0,22));
-hex(insert(1133,3,0,22))
-313132323333
-create table t1 as select insert(1133,3,0,22) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lcase(123));
-hex(lcase(123))
-313233
-create table t1 as select lcase(123) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(123,1));
-hex(left(123,1))
-31
-create table t1 as select left(123,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lower(123));
-hex(lower(123))
-313233
-create table t1 as select lower(123) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lpad(1,2,0));
-hex(lpad(1,2,0))
-3031
-create table t1 as select lpad(1,2,0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(ltrim(1));
-hex(ltrim(1))
-31
-create table t1 as select ltrim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(mid(1,1,1));
-hex(mid(1,1,1))
-31
-create table t1 as select mid(1,1,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(repeat(1,2));
-hex(repeat(1,2))
-3131
-create table t1 as select repeat(1,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(replace(1,1,2));
-hex(replace(1,1,2))
-32
-create table t1 as select replace(1,1,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(reverse(12));
-hex(reverse(12))
-3231
-create table t1 as select reverse(12) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(right(123,1));
-hex(right(123,1))
-33
-create table t1 as select right(123,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(rpad(1,2,0));
-hex(rpad(1,2,0))
-3130
-create table t1 as select rpad(1,2,0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(rtrim(1));
-hex(rtrim(1))
-31
-create table t1 as select rtrim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(soundex(1));
-hex(soundex(1))
-
-create table t1 as select soundex(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(substring(1,1,1));
-hex(substring(1,1,1))
-31
-create table t1 as select substring(1,1,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(trim(1));
-hex(trim(1))
-31
-create table t1 as select trim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(ucase(1));
-hex(ucase(1))
-31
-create table t1 as select ucase(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(upper(1));
-hex(upper(1))
-31
-create table t1 as select upper(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select repeat(' ', 64) as a limit 0;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varbinary(64) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ("1.1"), ("2.1");
-select a, hex(a) from t1;
-a hex(a)
-1.1 312E31
-2.1 322E31
-update t1 set a= a + 0.1;
-select a, hex(a) from t1;
-a hex(a)
-1.2000000000000002 312E32303030303030303030303030303032
-2.2 322E32
-drop table t1;
-create table t1 (a tinyint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a tinyint zerofill);
-insert into t1 values (1), (10), (100);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-303031 001
-303130 010
-313030 100
-drop table t1;
-create table t1 (a tinyint(4) zerofill);
-insert into t1 values (1), (10), (100);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-30303031 0001
-30303130 0010
-30313030 0100
-drop table t1;
-create table t1 (a decimal(10,2));
-insert into t1 values (123.45);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3132332E3435
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a smallint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a smallint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-3030303031 00001
-3030303130 00010
-3030313030 00100
-3031303030 01000
-3130303030 10000
-drop table t1;
-create table t1 (a mediumint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a mediumint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-3030303030303031 00000001
-3030303030303130 00000010
-3030303030313030 00000100
-3030303031303030 00001000
-3030303130303030 00010000
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a int zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-30303030303030303031 0000000001
-30303030303030303130 0000000010
-30303030303030313030 0000000100
-30303030303031303030 0000001000
-30303030303130303030 0000010000
-drop table t1;
-create table t1 (a bigint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a bigint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-3030303030303030303030303030303030303031 00000000000000000001
-3030303030303030303030303030303030303130 00000000000000000010
-3030303030303030303030303030303030313030 00000000000000000100
-3030303030303030303030303030303031303030 00000000000000001000
-3030303030303030303030303030303130303030 00000000000000010000
-drop table t1;
-create table t1 (a float);
-insert into t1 values (123.456);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3132332E343536
-select concat(a) from t1;
-concat(a)
-123.456
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a float zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-303030303030303030312E31 0000000001.1
-303030303030303031302E31 0000000010.1
-303030303030303130302E31 0000000100.1
-303030303030313030302E31 0000001000.1
-303030303031303030302E31 0000010000.1
-drop table t1;
-create table t1 (a double);
-insert into t1 values (123.456);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3132332E343536
-select concat(a) from t1;
-concat(a)
-123.456
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(22) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a double zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-30303030303030303030303030303030303030312E31 00000000000000000001.1
-30303030303030303030303030303030303031302E31 00000000000000000010.1
-30303030303030303030303030303030303130302E31 00000000000000000100.1
-30303030303030303030303030303030313030302E31 00000000000000001000.1
-30303030303030303030303030303031303030302E31 00000000000000010000.1
-drop table t1;
-create table t1 (a year(2));
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a year);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-32303031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a bit(64));
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-0000000000000001
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(64) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values (0);
-insert into t1 values (20010203040506);
-insert into t1 values (19800203040506);
-insert into t1 values ('2001-02-03 04:05:06');
-select hex(concat(a)) from t1;
-hex(concat(a))
-303030302D30302D30302030303A30303A3030
-323030312D30322D30332030343A30353A3036
-313938302D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-select concat(a) from t1;
-concat(a)
-0000-00-00 00:00:00
-2001-02-03 04:05:06
-1980-02-03 04:05:06
-2001-02-03 04:05:06
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a date);
-insert into t1 values ('2001-02-03');
-insert into t1 values (20010203);
-select hex(concat(a)) from t1;
-hex(concat(a))
-323030312D30322D3033
-323030312D30322D3033
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a time);
-insert into t1 values (1);
-insert into t1 values ('01:02:03');
-select hex(concat(a)) from t1;
-hex(concat(a))
-30303A30303A3031
-30313A30323A3033
-select concat(a) from t1;
-concat(a)
-00:00:01
-01:02:03
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a datetime);
-insert into t1 values ('2001-02-03 04:05:06');
-insert into t1 values (20010203040506);
-select hex(concat(a)) from t1;
-hex(concat(a))
-323030312D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a tinyint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(4) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a tinyint zerofill);
-insert into t1 values (1), (10), (100);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(3) YES NULL
-select hex(a) from v1;
-hex(a)
-303031
-303130
-313030
-drop table t1;
-drop view v1;
-create table t1 (a tinyint(30) zerofill);
-insert into t1 values (1), (10), (100);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(30) YES NULL
-select hex(a) from v1;
-hex(a)
-303030303030303030303030303030303030303030303030303030303031
-303030303030303030303030303030303030303030303030303030303130
-303030303030303030303030303030303030303030303030303030313030
-drop table t1;
-drop view v1;
-create table t1 (a decimal(10,2));
-insert into t1 values (123.45);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(12) YES NULL
-select hex(a) from v1;
-hex(a)
-3132332E3435
-drop table t1;
-drop view v1;
-create table t1 (a smallint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(6) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a smallint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(5) YES NULL
-select hex(a) from v1;
-hex(a)
-3030303031
-3030303130
-3030313030
-3031303030
-3130303030
-drop table t1;
-drop view v1;
-create table t1 (a mediumint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(9) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a mediumint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(8) YES NULL
-select hex(a) from v1;
-hex(a)
-3030303030303031
-3030303030303130
-3030303030313030
-3030303031303030
-3030303130303030
-drop table t1;
-drop view v1;
-create table t1 (a int);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(11) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a int zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(10) YES NULL
-select hex(a) from v1;
-hex(a)
-30303030303030303031
-30303030303030303130
-30303030303030313030
-30303030303031303030
-30303030303130303030
-drop table t1;
-drop view v1;
-create table t1 (a bigint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(20) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a bigint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(20) YES NULL
-select hex(a) from v1;
-hex(a)
-3030303030303030303030303030303030303031
-3030303030303030303030303030303030303130
-3030303030303030303030303030303030313030
-3030303030303030303030303030303031303030
-3030303030303030303030303030303130303030
-drop table t1;
-drop view v1;
-create table t1 (a float);
-insert into t1 values (123.456);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(12) YES NULL
-select hex(a) from v1;
-hex(a)
-3132332E343536
-drop table t1;
-drop view v1;
-create table t1 (a float zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(12) YES NULL
-select hex(a) from v1;
-hex(a)
-303030303030303030312E31
-303030303030303031302E31
-303030303030303130302E31
-303030303030313030302E31
-303030303031303030302E31
-drop table t1;
-drop view v1;
-create table t1 (a double);
-insert into t1 values (123.456);
-select concat(a) from t1;
-concat(a)
-123.456
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(22) YES NULL
-select hex(a) from v1;
-hex(a)
-3132332E343536
-drop table t1;
-drop view v1;
-create table t1 (a double zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(22) YES NULL
-select hex(a) from v1;
-hex(a)
-30303030303030303030303030303030303030312E31
-30303030303030303030303030303030303031302E31
-30303030303030303030303030303030303130302E31
-30303030303030303030303030303030313030302E31
-30303030303030303030303030303031303030302E31
-drop table t1;
-drop view v1;
-create table t1 (a year(2));
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(2) YES NULL
-select hex(a) from v1;
-hex(a)
-3031
-drop table t1;
-drop view v1;
-create table t1 (a year);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(4) YES NULL
-select hex(a) from v1;
-hex(a)
-32303031
-drop table t1;
-drop view v1;
-create table t1 (a bit(64));
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(64) YES NULL
-select hex(a) from v1;
-hex(a)
-0000000000000001
-drop table t1;
-drop view v1;
-create table t1 (a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values (0);
-insert into t1 values (20010203040506);
-insert into t1 values (19800203040506);
-insert into t1 values ('2001-02-03 04:05:06');
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(19) YES NULL
-select hex(a) from v1;
-hex(a)
-303030302D30302D30302030303A30303A3030
-323030312D30322D30332030343A30353A3036
-313938302D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-drop table t1;
-drop view v1;
-create table t1 (a date);
-insert into t1 values ('2001-02-03');
-insert into t1 values (20010203);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(10) YES NULL
-select hex(a) from v1;
-hex(a)
-323030312D30322D3033
-323030312D30322D3033
-drop table t1;
-drop view v1;
-create table t1 (a time);
-insert into t1 values (1);
-insert into t1 values ('01:02:03');
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(10) YES NULL
-select hex(a) from v1;
-hex(a)
-30303A30303A3031
-30313A30323A3033
-drop table t1;
-drop view v1;
-create table t1 (a datetime);
-insert into t1 values ('2001-02-03 04:05:06');
-insert into t1 values (20010203040506);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(19) YES NULL
-select hex(a) from v1;
-hex(a)
-323030312D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-drop table t1;
-drop view v1;
-create function f1 (par1 int) returns int
-begin
-return concat(par1);
-end|
-set @a= f1(1);
-select hex(@a);
-hex(@a)
-1
-select hex(concat(f1(1)));
-hex(concat(f1(1)))
-31
-create table t1 as select f1(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(1)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(11) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 decimal(18,2)) returns decimal(18,2)
-begin
-return concat(par1);
-end|
-set @a= f1(123.45);
-select hex(@a);
-hex(@a)
-7B
-select hex(concat(f1(123.45)));
-hex(concat(f1(123.45)))
-3132332E3435
-create table t1 as select f1(123.45) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` decimal(18,2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(123.45)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(123.45)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(20) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 float) returns float
-begin
-return concat(par1);
-end|
-set @a= f1(123.45);
-select hex(@a);
-hex(@a)
-7B
-select hex(concat(f1(123.45)));
-hex(concat(f1(123.45)))
-3132332E3435
-create table t1 as select f1(123.45) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` float DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(123.45)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(123.45)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(12) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 date) returns date
-begin
-return concat(par1);
-end|
-set @a= f1(cast('2001-01-02' as date));
-select hex(@a);
-hex(@a)
-323030312D30312D3032
-select hex(concat(f1(cast('2001-01-02' as date))));
-hex(concat(f1(cast('2001-01-02' as date))))
-323030312D30312D3032
-create table t1 as select f1(cast('2001-01-02' as date)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(cast('2001-01-02' as date))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(cast('2001-01-02' as date))) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(10) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-#
-# End of WL#2649 Number-to-string conversions
-#
-#
-# Bug#54668 User variable assignments get wrong type
-#
-SET @x=md5('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-binary binary
-SET @x=old_password('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-binary binary
-SET @x=password('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-binary binary
-SET @x=sha('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-binary binary
-SET @x=sha1('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-binary binary
-SET @x=astext(point(1,2));
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-binary binary
-SET @x=aswkt(point(1,2));
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-binary binary
-#
-# Bug#54916 GROUP_CONCAT + IFNULL truncates output
-#
-SELECT @@collation_connection;
-@@collation_connection
-binary
-CREATE TABLE t1 (a MEDIUMINT NULL) ENGINE=MYISAM;
-INSERT INTO t1 VALUES (1234567);
-SELECT GROUP_CONCAT(IFNULL(a,'')) FROM t1;
-GROUP_CONCAT(IFNULL(a,''))
-1234567
-SELECT GROUP_CONCAT(IF(a,a,'')) FROM t1;
-GROUP_CONCAT(IF(a,a,''))
-1234567
-SELECT GROUP_CONCAT(CASE WHEN a THEN a ELSE '' END) FROM t1;
-GROUP_CONCAT(CASE WHEN a THEN a ELSE '' END)
-1234567
-SELECT COALESCE(a,'') FROM t1 GROUP BY 1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def COALESCE(a,'') 253 9 7 Y 128 39 63
-COALESCE(a,'')
-1234567
-# All columns must be VARCHAR(9) with the same length:
-CREATE TABLE t2 AS
-SELECT
-CONCAT(a),
-IFNULL(a,''),
-IF(a,a,''),
-CASE WHEN a THEN a ELSE '' END,
-COALESCE(a,'')
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT(a)` varbinary(9) DEFAULT NULL,
- `IFNULL(a,'')` varbinary(9) NOT NULL,
- `IF(a,a,'')` varbinary(9) DEFAULT NULL,
- `CASE WHEN a THEN a ELSE '' END` varbinary(9) DEFAULT NULL,
- `COALESCE(a,'')` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT CONCAT_WS(1,2,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT_WS(1,2,3)` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT INSERT(1133,3,0,22) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `INSERT(1133,3,0,22)` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LCASE(a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LCASE(a)` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT UCASE(a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `UCASE(a)` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT REPEAT(1,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `REPEAT(1,2)` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LEFT(123,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEFT(123,2)` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT RIGHT(123,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `RIGHT(123,2)` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LTRIM(123) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LTRIM(123)` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT RTRIM(123) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `RTRIM(123)` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT ELT(1,111,222,333) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ELT(1,111,222,333)` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT REPLACE(111,2,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `REPLACE(111,2,3)` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT SUBSTRING_INDEX(111,111,1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `SUBSTRING_INDEX(111,111,1)` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT MAKE_SET(111,222,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `MAKE_SET(111,222,3)` varbinary(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT SOUNDEX(1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `SOUNDEX(1)` varbinary(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT EXPORT_SET(1,'Y','N','',8);
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `EXPORT_SET(1,'Y','N','',8)` varbinary(64) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# End of Bug#54916
-#
-#
-# Bug#58190 BETWEEN no longer uses indexes for date or datetime fields
-#
-SELECT @@collation_connection;
-@@collation_connection
-binary
-CREATE TABLE t1 (
-id INT(11) DEFAULT NULL,
-date_column DATE DEFAULT NULL,
-KEY(date_column));
-INSERT INTO t1 VALUES (1,'2010-09-01'),(2,'2010-10-01');
-EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range date_column date_column 4 NULL 1 Using index condition
-ALTER TABLE t1 MODIFY date_column DATETIME DEFAULT NULL;
-EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range date_column date_column 6 NULL 1 Using index condition
-DROP TABLE t1;
-#
-# Bug #31384 DATE_ADD() and DATE_SUB() return binary data
-#
-SELECT @@collation_connection, @@character_set_results;
-@@collation_connection @@character_set_results
-binary binary
-SELECT
-CHARSET(DATE_SUB('2007-08-03', INTERVAL 1 MINUTE)) AS field_str1,
-CHARSET(DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE)) AS field_str2,
-CHARSET(DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY)) AS field_date,
-CHARSET(DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE)) AS field_datetime;
-field_str1 field_str2 field_date field_datetime
-binary binary binary binary
-CREATE TABLE t1 AS
-SELECT
-DATE_SUB('2007-08-03', INTERVAL 1 MINUTE) AS field_str1,
-DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE) AS field1_str2,
-DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY) AS field_date,
-DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE) AS field_datetime;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `field_str1` varbinary(19) DEFAULT NULL,
- `field1_str2` varbinary(19) DEFAULT NULL,
- `field_date` date DEFAULT NULL,
- `field_datetime` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SELECT
-DATE_SUB('2007-08-03', INTERVAL 1 DAY) AS field_str1,
-DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE) AS field1_str2,
-DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY) AS field_date,
-DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE) AS field_datetime;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def field_str1 254 19 10 Y 128 0 63
-def field1_str2 254 19 19 Y 128 0 63
-def field_date 10 10 10 Y 128 0 63
-def field_datetime 12 19 19 Y 128 0 63
-field_str1 field1_str2 field_date field_datetime
-2007-08-02 2007-08-03 17:32:00 2007-08-02 2007-08-03 17:32:00
-SELECT
-HEX(DATE_SUB('2007-08-03', INTERVAL 1 MINUTE)) AS field_str1,
-HEX(DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE)) AS field1_str2,
-HEX(DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY)) AS field_date,
-HEX(DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE)) AS field_datetime;
-field_str1 field1_str2 field_date field_datetime
-323030372D30382D30322032333A35393A3030 323030372D30382D30332031373A33323A3030 323030372D30382D3032 323030372D30382D30332031373A33323A3030
-#
-# MDEV-4841 Wrong character set of ADDTIME() and DATE_ADD()
-#
-SELECT @@collation_connection, @@character_set_results;
-@@collation_connection @@character_set_results
-binary binary
-SELECT
-CHARSET(ADDTIME(_latin1'10:01:01',_latin1'10:00:00')) AS addtime1,
-CHARSET(ADDTIME('10:01:01','10:00:00')) AS addtime2,
-CHARSET(DATE_ADD(_latin1'2001-01-01 10:01:01',interval 10 second)) AS date_add1,
-CHARSET(DATE_ADD('2001-01-01 10:01:01',interval 10 second)) AS date_add2;
-addtime1 addtime2 date_add1 date_add2
-binary binary binary binary
-CREATE TABLE t1 AS
-SELECT
-ADDTIME(_latin1'10:01:01',_latin1'10:00:00') AS addtime1,
-ADDTIME('10:01:01','10:00:00') AS addtime2,
-DATE_ADD(_latin1'2001-01-01 10:01:01',interval 10 second) AS date_add1,
-DATE_ADD('2001-01-01 10:01:01',interval 10 second) AS date_add2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `addtime1` varbinary(26) DEFAULT NULL,
- `addtime2` varbinary(26) DEFAULT NULL,
- `date_add1` varbinary(19) DEFAULT NULL,
- `date_add2` varbinary(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-addtime1 addtime2 date_add1 date_add2
-20:01:01 20:01:01 2001-01-01 10:01:11 2001-01-01 10:01:11
-DROP TABLE t1;
-#
-# Bug#11926811 / Bug#60625 Illegal mix of collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-binary
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE v_LastPaymentDate DATETIME DEFAULT NULL;
-SELECT v_LastPaymentDate < NOW();
-EXPLAIN EXTENDED SELECT v_LastPaymentDate < NOW();
-SHOW WARNINGS;
-EXPLAIN EXTENDED SELECT CONCAT(v_LastPaymentDate, NOW());
-END//
-CALL p1;
-v_LastPaymentDate < NOW()
-NULL
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Level Code Message
-Note 1003 select v_LastPaymentDate@0 < current_timestamp() AS `v_LastPaymentDate < NOW()`
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select concat(v_LastPaymentDate@0,current_timestamp()) AS `CONCAT(v_LastPaymentDate, NOW())`
-DROP PROCEDURE p1;
-#
-# Bug#52159 returning time type from function and empty left join causes debug assertion
-#
-CREATE FUNCTION f1() RETURNS TIME RETURN 1;
-CREATE TABLE t1 (b INT);
-INSERT INTO t1 VALUES (0);
-SELECT f1() FROM t1 LEFT JOIN (SELECT 1 AS a FROM t1 LIMIT 0) AS d ON 1 GROUP BY a;
-f1()
-00:00:01
-DROP FUNCTION f1;
-DROP TABLE t1;
-#
-# MDEV-9662 Assertion `precision || !scale' failed in my_decimal_precision_to_length_no_truncation(uint, uint8, bool)
-#
-SELECT @@collation_connection;
-@@collation_connection
-binary
-SELECT CASE 1 WHEN 2 THEN ( - '3' ) END;
-CASE 1 WHEN 2 THEN ( - '3' ) END
-NULL
-#
-# MDEV-5702 Incorrect results are returned with NULLIF()
-#
-CREATE TABLE t1 (d DATE);
-INSERT INTO t1 VALUES ('1999-11-11'),('2014-02-04');
-SELECT DISTINCT d, CAST(d AS CHAR), NULLIF(d,"2000-01-01") AS bad, NULLIF(CAST(d AS CHAR),"2000-01-01") AS good FROM t1;
-d CAST(d AS CHAR) bad good
-1999-11-11 1999-11-11 1999-11-11 1999-11-11
-2014-02-04 2014-02-04 2014-02-04 2014-02-04
-CREATE TABLE t2 AS SELECT DISTINCT d, NULLIF(d,'2000-01-01') AS bad FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `d` date DEFAULT NULL,
- `bad` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1, t2;
-SET NAMES latin1;
-SET sql_mode='';
-CREATE TABLE t1(a char(215) CHARACTER SET utf8 NOT NULL DEFAULT '', KEY(a));
-INSERT INTO t1 VALUES ();
-SELECT maketime(`a`,`a`,`a`) FROM t1 GROUP BY 1;
-maketime(`a`,`a`,`a`)
-00:00:00.000000
-DROP TABLE t1;
-SET sql_mode=default;
-#
-# End of 5.5 tests
-#
-#
-# Start of 10.0 tests
-#
-SET NAMES binary;
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE CONCAT(c1)='a';
-c1
-a
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'a ';
-c1
-a
-SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-c1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 0
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1);
-c1
-a
-SELECT * FROM t1 WHERE 'a ' LIKE CONCAT(c1);
-c1
-a
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-c1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 0
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '% '=CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 0
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '%'=CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-#
-# MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a'
-#
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ';
-a LENGTH(a)
-a 1
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-a LENGTH(a)
-a 1
-EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-DROP TABLE t1;
-#
-# End of MDEV-8694
-#
-#
-# MDEV-7629 Regression: Bit and hex string literals changed column names in 10.0.14
-#
-SELECT _binary 0x7E, _binary X'7E', _binary B'01111110';
-_binary 0x7E _binary X'7E' _binary B'01111110'
-~ ~ ~
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8695 Wrong result for SELECT..WHERE varchar_column='a' AND CRC32(varchar_column)=3904355907
-#
-CREATE TABLE t1 (a VARBINARY(10));
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a), CRC32(a) FROM t1 WHERE CRC32(a)=3904355907;
-a LENGTH(a) CRC32(a)
-a 1 3904355907
-SELECT a, LENGTH(a), CRC32(a) FROM t1 WHERE a='a' AND CRC32(a)=3904355907;
-a LENGTH(a) CRC32(a)
-a 1 3904355907
-# Okey to propagate 'a' into CRC32(a)
-EXPLAIN EXTENDED SELECT a, LENGTH(a), CRC32(a) FROM t1 WHERE a='a' AND CRC32(a)=3904355907;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)`,crc32(`test`.`t1`.`a`) AS `CRC32(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-SELECT a, HEX(a) FROM t1 WHERE HEX(a)='61';
-a HEX(a)
-a 61
-SELECT *,HEX(a) FROM t1 WHERE a='a' AND HEX(a)='61';
-a HEX(a)
-a 61
-# Okey to propagate 'a' into HEX(a)
-EXPLAIN EXTENDED SELECT *,HEX(a) FROM t1 WHERE a='a' AND HEX(a)='61';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,hex(`test`.`t1`.`a`) AS `HEX(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-SELECT * FROM t1 WHERE a='a';
-a
-a
-SELECT * FROM t1 WHERE LENGTH(a)=2;
-a
-a
-SELECT * FROM t1 WHERE a='a' AND LENGTH(a)=2;
-a
-# Okey to propagate 'a' into LENGTH(a)
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='a' AND LENGTH(a)=2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-SELECT * FROM t1 WHERE a='a ';
-a
-a
-SELECT * FROM t1 WHERE a='a ' AND LENGTH(a)=2;
-a
-a
-# Okey to propagate 'a ' into LENGTH(a)
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='a ' AND LENGTH(a)=2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a '
-DROP TABLE t1;
-#
-# MDEV-8723 Wrong result for SELECT..WHERE COLLATION(a)='binary' AND a='a'
-#
-CREATE TABLE t1 (a VARBINARY(10));
-INSERT INTO t1 VALUES ('a'),('A');
-SELECT * FROM t1 WHERE COLLATION(a)='binary' AND a='a';
-a
-a
-SELECT * FROM t1 WHERE CHARSET(a)='binary' AND a='a';
-a
-a
-SELECT * FROM t1 WHERE COERCIBILITY(a)=2 AND a='a';
-a
-a
-SELECT * FROM t1 WHERE WEIGHT_STRING(a)='a' AND a='a';
-a
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE COLLATION(a)='binary' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CHARSET(a)='binary' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE COERCIBILITY(a)=2 AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE WEIGHT_STRING(a)='a' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a' and weight_string(`test`.`t1`.`a`,0,0,1) = 'a'
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
diff --git a/mysql-test/r/ctype_collate.result b/mysql-test/r/ctype_collate.result
deleted file mode 100644
index 5e8c5adac8f..00000000000
--- a/mysql-test/r/ctype_collate.result
+++ /dev/null
@@ -1,756 +0,0 @@
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-CREATE TABLE t1 (
-latin1_f CHAR(32) CHARACTER SET latin1 NOT NULL
-);
-CREATE TABLE t2 (
-latin1_f CHAR(32) CHARACTER SET latin1 COLLATE koi8r_general_ci NOT NULL
-);
-ERROR 42000: COLLATION 'koi8r_general_ci' is not valid for CHARACTER SET 'latin1'
-CREATE TABLE t2 (
-latin1_f CHAR(32) CHARACTER SET latin1 COLLATE some_non_existing_col NOT NULL
-);
-ERROR HY000: Unknown collation: 'some_non_existing_col'
-INSERT INTO t1 (latin1_f) VALUES (_latin1'A');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'a');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'AD');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'ad');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'AE');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'ae');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'AF');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'af');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'Ä');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'ä');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'Å');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'å');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'B');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'b');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'U');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'u');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'UE');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'ue');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'Ü');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'ü');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'SS');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'ss');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'ß');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'Y');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'y');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'Z');
-INSERT INTO t1 (latin1_f) VALUES (_latin1'z');
-SELECT latin1_f FROM t1 ORDER BY latin1_f;
-latin1_f
-A
-a
-AD
-ad
-ae
-AE
-AF
-af
-b
-B
-SS
-ss
-u
-U
-UE
-ue
-Y
-y
-Z
-z
-SELECT latin1_f FROM t1 ORDER BY latin1_f COLLATE latin1_swedish_ci;
-latin1_f
-A
-a
-AD
-ad
-ae
-AE
-AF
-af
-b
-B
-SS
-ss
-u
-U
-UE
-ue
-Y
-y
-Z
-z
-SELECT latin1_f FROM t1 ORDER BY latin1_f COLLATE latin1_german2_ci;
-latin1_f
-A
-a
-AD
-ad
-ae
-AE
-af
-AF
-b
-B
-ss
-SS
-U
-u
-ue
-UE
-Y
-y
-Z
-z
-SELECT latin1_f FROM t1 ORDER BY latin1_f COLLATE latin1_general_ci;
-latin1_f
-A
-a
-AD
-ad
-AE
-ae
-af
-AF
-b
-B
-ss
-SS
-U
-u
-UE
-ue
-Y
-y
-Z
-z
-SELECT latin1_f FROM t1 ORDER BY latin1_f COLLATE latin1_bin;
-latin1_f
-A
-AD
-AE
-AF
-B
-SS
-U
-UE
-Y
-Z
-a
-ad
-ae
-af
-b
-ss
-u
-ue
-y
-z
-SELECT latin1_f FROM t1 ORDER BY latin1_f COLLATE koi8r_general_ci;
-ERROR 42000: COLLATION 'koi8r_general_ci' is not valid for CHARACTER SET 'latin1'
-SELECT latin1_f COLLATE latin1_swedish_ci AS latin1_f_as FROM t1 ORDER BY latin1_f_as;
-latin1_f_as
-A
-a
-AD
-ad
-ae
-AE
-AF
-af
-b
-B
-SS
-ss
-u
-U
-UE
-ue
-Y
-y
-Z
-z
-SELECT latin1_f COLLATE latin1_german2_ci AS latin1_f_as FROM t1 ORDER BY latin1_f_as;
-latin1_f_as
-A
-a
-AD
-ad
-ae
-AE
-af
-AF
-b
-B
-ss
-SS
-U
-u
-ue
-UE
-Y
-y
-Z
-z
-SELECT latin1_f COLLATE latin1_general_ci AS latin1_f_as FROM t1 ORDER BY latin1_f_as;
-latin1_f_as
-A
-a
-AD
-ad
-AE
-ae
-af
-AF
-b
-B
-ss
-SS
-U
-u
-UE
-ue
-Y
-y
-Z
-z
-SELECT latin1_f COLLATE latin1_bin AS latin1_f_as FROM t1 ORDER BY latin1_f_as;
-latin1_f_as
-A
-AD
-AE
-AF
-B
-SS
-U
-UE
-Y
-Z
-a
-ad
-ae
-af
-b
-ss
-u
-ue
-y
-z
-SELECT latin1_f COLLATE koi8r_general_ci AS latin1_f_as FROM t1 ORDER BY latin1_f_as;
-ERROR 42000: COLLATION 'koi8r_general_ci' is not valid for CHARACTER SET 'latin1'
-SELECT latin1_f,count(*) FROM t1 GROUP BY latin1_f;
-latin1_f count(*)
-A 2
-AD 2
-AE 2
-AF 2
-B 2
-SS 2
-U 2
-UE 2
-Ü 4
-Z 2
-Å 2
-Ä 2
-ß 1
-SELECT latin1_f,count(*) FROM t1 GROUP BY latin1_f COLLATE latin1_swedish_ci;
-latin1_f count(*)
-A 2
-AD 2
-AE 2
-AF 2
-B 2
-SS 2
-U 2
-UE 2
-Ü 4
-Z 2
-Å 2
-Ä 2
-ß 1
-SELECT latin1_f,count(*) FROM t1 GROUP BY latin1_f COLLATE latin1_german2_ci;
-latin1_f count(*)
-A 4
-AD 2
-AE 4
-AF 2
-B 2
-SS 3
-U 2
-UE 4
-Y 2
-Z 2
-SELECT latin1_f,count(*) FROM t1 GROUP BY latin1_f COLLATE latin1_general_ci;
-latin1_f count(*)
-A 2
-AD 2
-AE 2
-AF 2
-Ä 2
-Å 2
-B 2
-SS 2
-ß 1
-U 2
-UE 2
-Ü 2
-Y 2
-Z 2
-SELECT latin1_f,count(*) FROM t1 GROUP BY latin1_f COLLATE latin1_bin;
-latin1_f count(*)
-A 1
-AD 1
-AE 1
-AF 1
-B 1
-SS 1
-U 1
-UE 1
-Y 1
-Z 1
-a 1
-ad 1
-ae 1
-af 1
-b 1
-ss 1
-u 1
-ue 1
-y 1
-z 1
-Ä 1
-Å 1
-Ü 1
-ß 1
-ä 1
-å 1
-ü 1
-SELECT latin1_f,count(*) FROM t1 GROUP BY latin1_f COLLATE koi8r_general_ci;
-ERROR 42000: COLLATION 'koi8r_general_ci' is not valid for CHARACTER SET 'latin1'
-SELECT DISTINCT latin1_f FROM t1;
-latin1_f
-A
-AD
-AE
-AF
-B
-U
-UE
-SS
-Z
-SELECT DISTINCT latin1_f COLLATE latin1_swedish_ci FROM t1;
-latin1_f COLLATE latin1_swedish_ci
-A
-AD
-AE
-AF
-B
-U
-UE
-SS
-Z
-SELECT DISTINCT latin1_f COLLATE latin1_german2_ci FROM t1;
-latin1_f COLLATE latin1_german2_ci
-A
-AD
-AE
-AF
-B
-U
-UE
-SS
-Y
-Z
-SELECT DISTINCT latin1_f COLLATE latin1_general_ci FROM t1;
-latin1_f COLLATE latin1_general_ci
-A
-AD
-AE
-AF
-B
-U
-UE
-SS
-Y
-Z
-SELECT DISTINCT latin1_f COLLATE latin1_bin FROM t1;
-latin1_f COLLATE latin1_bin
-A
-a
-AD
-ad
-AE
-ae
-AF
-af
-B
-b
-U
-u
-UE
-ue
-SS
-ss
-Y
-y
-Z
-z
-SELECT DISTINCT latin1_f COLLATE koi8r FROM t1;
-ERROR HY000: Unknown collation: 'koi8r'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `latin1_f` char(32) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW FIELDS FROM t1;
-Field Type Null Key Default Extra
-latin1_f char(32) NO NULL
-ALTER TABLE t1 CHANGE latin1_f
-latin1_f CHAR(32) CHARACTER SET latin1 COLLATE latin1_bin;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `latin1_f` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW FIELDS FROM t1;
-Field Type Null Key Default Extra
-latin1_f char(32) YES NULL
-ALTER TABLE t1 CHARACTER SET latin1 COLLATE latin1_bin;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `latin1_f` char(32) COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin
-SHOW FIELDS FROM t1;
-Field Type Null Key Default Extra
-latin1_f char(32) YES NULL
-SET CHARACTER SET 'latin1';
-SHOW VARIABLES LIKE 'character_set_client';
-Variable_name Value
-character_set_client latin1
-SELECT charset('a'),collation('a'),coercibility('a'),'a'='A';
-charset('a') collation('a') coercibility('a') 'a'='A'
-latin1 latin1_swedish_ci 4 1
-explain extended SELECT charset('a'),collation('a'),coercibility('a'),'a'='A';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select charset('a') AS `charset('a')`,collation('a') AS `collation('a')`,coercibility('a') AS `coercibility('a')`,'a' = 'A' AS `'a'='A'`
-SET CHARACTER SET koi8r;
-SHOW VARIABLES LIKE 'collation_client';
-Variable_name Value
-SELECT charset('a'),collation('a'),coercibility('a'),'a'='A';
-charset('a') collation('a') coercibility('a') 'a'='A'
-latin1 latin1_swedish_ci 4 1
-SET CHARACTER SET 'DEFAULT';
-ERROR 42000: Unknown character set: 'DEFAULT'
-DROP TABLE t1;
-CREATE TABLE t1
-(s1 CHAR(5) COLLATE latin1_german1_ci,
-s2 CHAR(5) COLLATE latin1_swedish_ci);
-SELECT * FROM t1 WHERE s1 = s2;
-ERROR HY000: Illegal mix of collations (latin1_german1_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='
-DROP TABLE t1;
-CREATE TABLE t1
-(s1 CHAR(5) COLLATE latin1_german1_ci,
-s2 CHAR(5) COLLATE latin1_swedish_ci,
-s3 CHAR(5) COLLATE latin1_bin);
-INSERT INTO t1 VALUES ('a','A','A');
-SELECT * FROM t1 WHERE s1 = s2;
-ERROR HY000: Illegal mix of collations (latin1_german1_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='
-SELECT * FROM t1 WHERE s1 = s3;
-s1 s2 s3
-SELECT * FROM t1 WHERE s2 = s3;
-s1 s2 s3
-a A A
-DROP TABLE t1;
-create table t1 (a varchar(1) character set latin1 collate latin1_general_ci);
-insert into t1 values ('A'),('a'),('B'),('b'),('C'),('c');
-select * from t1 where a > 'B' collate latin1_bin;
-a
-a
-b
-C
-c
-select * from t1 where a <> 'B' collate latin1_bin;
-a
-A
-a
-b
-C
-c
-create index i on t1 (a);
-select * from t1 where a > 'B' collate latin1_bin;
-a
-a
-b
-C
-c
-select * from t1 where a <> 'B' collate latin1_bin;
-a
-A
-a
-b
-C
-c
-drop table t1;
-SET NAMES latin1;
-CREATE TABLE t1
-(s1 char(10) COLLATE latin1_german1_ci,
-s2 char(10) COLLATE latin1_swedish_ci,
-KEY(s1),
-KEY(s2));
-INSERT INTO t1 VALUES ('a','a');
-INSERT INTO t1 VALUES ('b','b');
-INSERT INTO t1 VALUES ('c','c');
-INSERT INTO t1 VALUES ('d','d');
-INSERT INTO t1 VALUES ('e','e');
-INSERT INTO t1 VALUES ('f','f');
-INSERT INTO t1 VALUES ('g','g');
-INSERT INTO t1 VALUES ('h','h');
-INSERT INTO t1 VALUES ('i','i');
-INSERT INTO t1 VALUES ('j','j');
-EXPLAIN SELECT * FROM t1 WHERE s1='a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref s1 s1 11 const 1 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE s2='a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref s2 s2 11 const 1 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE s1='a' COLLATE latin1_german1_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref s1 s1 11 const 1 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE s2='a' COLLATE latin1_german1_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL s2 NULL NULL NULL 10 Using where
-EXPLAIN SELECT * FROM t1 WHERE s1 BETWEEN 'a' AND 'b' COLLATE latin1_german1_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range s1 s1 11 NULL 2 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE s2 BETWEEN 'a' AND 'b' COLLATE latin1_german1_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL s2 NULL NULL NULL 10 Using where
-EXPLAIN SELECT * FROM t1 WHERE s1 IN ('a','b' COLLATE latin1_german1_ci);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range s1 s1 11 NULL 2 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE s2 IN ('a','b' COLLATE latin1_german1_ci);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL s2 NULL NULL NULL 10 Using where
-EXPLAIN SELECT * FROM t1 WHERE s1 LIKE 'a' COLLATE latin1_german1_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range s1 s1 11 NULL 1 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE s2 LIKE 'a' COLLATE latin1_german1_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL s2 NULL NULL NULL 10 Using where
-DROP TABLE t1;
-create table t1(f1 varchar(10) character set latin2 collate latin2_hungarian_ci, key(f1));
-insert into t1 set f1=0x3F3F9DC73F;
-insert into t1 set f1=0x3F3F1E563F;
-insert into t1 set f1=0x3F3F;
-check table t1 extended;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-create table t1 (a varchar(2) character set latin7 collate latin7_general_ci,key(a));
-insert into t1 set a=0x4c20;
-insert into t1 set a=0x6c;
-insert into t1 set a=0x4c98;
-check table t1 extended;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-select least(_latin1'a',_latin2'b',_latin5'c' collate latin5_turkish_ci);
-least(_latin1'a',_latin2'b',_latin5'c' collate latin5_turkish_ci)
-a
-create table t1
-select least(_latin1'a',_latin2'b',_latin5'c' collate latin5_turkish_ci) as f1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f1` varchar(1) CHARACTER SET latin5 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select case _latin1'a' when _latin2'b' then 1 when _latin5'c' collate
-latin5_turkish_ci then 2 else 3 end;
-case _latin1'a' when _latin2'b' then 1 when _latin5'c' collate
-latin5_turkish_ci then 2 else 3 end
-3
-select concat(_latin1'a',_latin2'b',_latin5'c' collate latin5_turkish_ci);
-concat(_latin1'a',_latin2'b',_latin5'c' collate latin5_turkish_ci)
-abc
-#
-# Bug#11765016 57926: ILLEGAL MIX OF COLLATIONS FOR OPERATION 'UNION' .. USING CONCAT/FUNCTION/
-# Not a bug: only adding coverage tests
-#
-SET NAMES latin1 COLLATE latin1_german2_ci;
-CREATE DATABASE test1 DEFAULT CHARACTER SET latin1 COLLATE latin1_german2_ci;
-USE test1;
-#
-# Using "COLLATE latin1_swedish_ci" as the default collation for latin1
-#
-CREATE FUNCTION `getText`() RETURNS varchar(20) CHARSET latin1
-BEGIN
-RETURN "Testtext";
-END;//
-SELECT getText(), CHARSET(getText()), COLLATION(getText()), COERCIBILITY(getText());
-getText() CHARSET(getText()) COLLATION(getText()) COERCIBILITY(getText())
-Testtext latin1 latin1_swedish_ci 4
-CREATE TABLE t1 AS SELECT ' - ' AS a UNION SELECT getText();
-ERROR HY000: Illegal mix of collations for operation 'UNION'
-DROP FUNCTION getText;
-#
-# Using "CHARACTER SET latin1 COLLATE latin1_german2_ci" as the database defaults
-#
-CREATE FUNCTION `getText`() RETURNS varchar(20)
-BEGIN
-RETURN "Testtext";
-END;//
-SELECT getText(), CHARSET(getText()), COLLATION(getText()), COERCIBILITY(getText());
-getText() CHARSET(getText()) COLLATION(getText()) COERCIBILITY(getText())
-Testtext latin1 latin1_german2_ci 4
-CREATE TABLE t1 AS SELECT ' - ' AS a UNION SELECT getText();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(20) COLLATE latin1_german2_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci
-DROP TABLE t1;
-DROP FUNCTION getText;
-#
-# Using explicit "CHARACTER SET latin1 COLLATE latin1_german2_ci"
-#
-CREATE FUNCTION `getText`() RETURNS varchar(20) CHARACTER SET latin1 COLLATE latin1_german2_ci
-BEGIN
-RETURN "Testtext";
-END;//
-SELECT getText(), CHARSET(getText()), COLLATION(getText()), COERCIBILITY(getText());
-getText() CHARSET(getText()) COLLATION(getText()) COERCIBILITY(getText())
-Testtext latin1 latin1_german2_ci 4
-CREATE TABLE t1 AS SELECT ' - ' AS a UNION SELECT getText();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(20) COLLATE latin1_german2_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci
-DROP TABLE t1;
-DROP FUNCTION getText;
-DROP DATABASE test1;
-USE test;
-SET NAMES latin1;
-#
-# MDEV-11320, MySQL BUG#81810: Inconsistent sort order for blob/text between InnoDB and filesort
-#
-CREATE TABLE t1 (
-b LONGTEXT CHARACTER SET "latin1" COLLATE "latin1_bin",
-KEY b (b(32))
-);
-INSERT INTO t1 (b) VALUES ('a'), (_binary 0x1), (_binary 0x0), ('');
-drop table t1;
-CREATE TABLE t1 (
-b LONGTEXT CHARACTER SET "latin1" COLLATE "latin1_bin",
-PRIMARY KEY b (b(32))
-);
-INSERT INTO t1 (b) VALUES ('a'), (_binary 0x1), (_binary 0x0), ('');
-explain
-select hex(b) from t1 force index (PRIMARY) where b<'zzz';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 34 NULL 4 Using where
-select hex(b) from t1 force index (PRIMARY) where b<'zzz';
-hex(b)
-00
-01
-
-61
-explain
-select hex(b) from t1 where b<'zzz' order by b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 4 Using where; Using filesort
-select hex(b) from t1 where b<'zzz' order by b;
-hex(b)
-00
-01
-
-61
-drop table t1;
diff --git a/mysql-test/r/ctype_cp1250_ch.result b/mysql-test/r/ctype_cp1250_ch.result
deleted file mode 100644
index 5799331f73e..00000000000
--- a/mysql-test/r/ctype_cp1250_ch.result
+++ /dev/null
@@ -1,914 +0,0 @@
-drop table if exists t1;
-DROP TABLE IF EXISTS t1;
-SHOW COLLATION LIKE 'cp1250_czech_cs';
-Collation Charset Id Default Compiled Sortlen
-cp1250_czech_cs cp1250 34 Yes 2
-SET @test_character_set= 'cp1250';
-SET @test_collation= 'cp1250_general_ci';
-SET @safe_character_set_server= @@character_set_server;
-SET @safe_collation_server= @@collation_server;
-SET @safe_character_set_client= @@character_set_client;
-SET @safe_character_set_results= @@character_set_results;
-SET character_set_server= @test_character_set;
-SET collation_server= @test_collation;
-CREATE DATABASE d1;
-USE d1;
-CREATE TABLE t1 (c CHAR(10), KEY(c));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c char(10) cp1250_general_ci YES MUL NULL
-INSERT INTO t1 VALUES ('aaa'),('aaaa'),('aaaaa');
-SELECT c as want3results FROM t1 WHERE c LIKE 'aaa%';
-want3results
-aaa
-aaaa
-aaaaa
-DROP TABLE t1;
-CREATE TABLE t1 (c1 varchar(15), KEY c1 (c1(2)));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c1 varchar(15) cp1250_general_ci YES MUL NULL
-INSERT INTO t1 VALUES ('location'),('loberge'),('lotre'),('boabab');
-SELECT c1 as want3results from t1 where c1 like 'l%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want3results from t1 where c1 like 'lo%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want1result from t1 where c1 like 'loc%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'loca%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locat%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locati%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locatio%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'location%';
-want1result
-location
-DROP TABLE t1;
-create table t1 (a set('a') not null);
-insert ignore into t1 values (),();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-select cast(a as char(1)) from t1;
-cast(a as char(1))
-
-
-select a sounds like a from t1;
-a sounds like a
-1
-1
-select 1 from t1 order by cast(a as char(1));
-1
-1
-1
-drop table t1;
-#
-# MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found
-#
-SET character_set_client=latin1;
-SET character_set_connection= @test_character_set;
-SET collation_connection= @test_collation;
-SELECT COLLATION('.'), SUBSTRING_INDEX('.wwwmysqlcom', '.', -2) AS c1;
-COLLATION('.') c1
-cp1250_general_ci .wwwmysqlcom
-set names utf8;
-create table t1 (
-name varchar(10),
-level smallint unsigned);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `name` varchar(10) DEFAULT NULL,
- `level` smallint(5) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=cp1250
-insert into t1 values ('string',1);
-select concat(name,space(level)), concat(name, repeat(' ',level)) from t1;
-concat(name,space(level)) concat(name, repeat(' ',level))
-string string
-drop table t1;
-DROP DATABASE d1;
-USE test;
-SET character_set_server= @safe_character_set_server;
-SET collation_server= @safe_collation_server;
-SET character_set_client= @safe_character_set_client;
-SET character_set_results= @safe_character_set_results;
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE CONCAT(c1)='a';
-c1
-a
-a
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'a ';
-c1
-a
-SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'a' and concat(`test`.`t1`.`c1`) like 'a '
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1);
-c1
-a
-a
-SELECT * FROM t1 WHERE 'a ' LIKE CONCAT(c1);
-c1
-a
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 'a' = concat(`test`.`t1`.`c1`) and 'a ' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '% '=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '% ' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '%'=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-#
-# MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a'
-#
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ';
-a LENGTH(a)
-a 1
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-a LENGTH(a)
-a 1
-EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` not like 'a ' and `test`.`t1`.`a` = 'a'
-DROP TABLE t1;
-#
-# End of MDEV-8694
-#
-SET @test_character_set= 'cp1250';
-SET @test_collation= 'cp1250_czech_cs';
-SET @safe_character_set_server= @@character_set_server;
-SET @safe_collation_server= @@collation_server;
-SET @safe_character_set_client= @@character_set_client;
-SET @safe_character_set_results= @@character_set_results;
-SET character_set_server= @test_character_set;
-SET collation_server= @test_collation;
-CREATE DATABASE d1;
-USE d1;
-CREATE TABLE t1 (c CHAR(10), KEY(c));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c char(10) cp1250_czech_cs YES MUL NULL
-INSERT INTO t1 VALUES ('aaa'),('aaaa'),('aaaaa');
-SELECT c as want3results FROM t1 WHERE c LIKE 'aaa%';
-want3results
-aaa
-aaaa
-aaaaa
-DROP TABLE t1;
-CREATE TABLE t1 (c1 varchar(15), KEY c1 (c1(2)));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c1 varchar(15) cp1250_czech_cs YES MUL NULL
-INSERT INTO t1 VALUES ('location'),('loberge'),('lotre'),('boabab');
-SELECT c1 as want3results from t1 where c1 like 'l%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want3results from t1 where c1 like 'lo%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want1result from t1 where c1 like 'loc%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'loca%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locat%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locati%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locatio%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'location%';
-want1result
-location
-DROP TABLE t1;
-create table t1 (a set('a') not null);
-insert ignore into t1 values (),();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-select cast(a as char(1)) from t1;
-cast(a as char(1))
-
-
-select a sounds like a from t1;
-a sounds like a
-1
-1
-select 1 from t1 order by cast(a as char(1));
-1
-1
-1
-drop table t1;
-#
-# MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found
-#
-SET character_set_client=latin1;
-SET character_set_connection= @test_character_set;
-SET collation_connection= @test_collation;
-SELECT COLLATION('.'), SUBSTRING_INDEX('.wwwmysqlcom', '.', -2) AS c1;
-COLLATION('.') c1
-cp1250_czech_cs .wwwmysqlcom
-set names utf8;
-create table t1 (
-name varchar(10),
-level smallint unsigned);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `name` varchar(10) COLLATE cp1250_czech_cs DEFAULT NULL,
- `level` smallint(5) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=cp1250 COLLATE=cp1250_czech_cs
-insert into t1 values ('string',1);
-select concat(name,space(level)), concat(name, repeat(' ',level)) from t1;
-concat(name,space(level)) concat(name, repeat(' ',level))
-string string
-drop table t1;
-DROP DATABASE d1;
-USE test;
-SET character_set_server= @safe_character_set_server;
-SET collation_server= @safe_collation_server;
-SET character_set_client= @safe_character_set_client;
-SET character_set_results= @safe_character_set_results;
-CREATE TABLE t1 (a char(16)) character set cp1250 collate cp1250_czech_cs;
-INSERT INTO t1 VALUES ('');
-SELECT a, length(a), a='', a=' ', a=' ' FROM t1;
-a length(a) a='' a=' ' a=' '
- 0 1 1 1
-DROP TABLE t1;
-CREATE TABLE t1 (
-popisek varchar(30) collate cp1250_general_ci NOT NULL default '',
-PRIMARY KEY (`popisek`)
-);
-INSERT INTO t1 VALUES ('2005-01-1');
-SELECT * FROM t1 WHERE popisek = '2005-01-1';
-popisek
-2005-01-1
-SELECT * FROM t1 WHERE popisek LIKE '2005-01-1';
-popisek
-2005-01-1
-drop table t1;
-set names cp1250;
-CREATE TABLE t1
-(
-id INT AUTO_INCREMENT PRIMARY KEY,
-str VARCHAR(32) CHARACTER SET cp1250 COLLATE cp1250_czech_cs NOT NULL default '',
-UNIQUE KEY (str)
-);
-INSERT INTO t1 VALUES (NULL, 'a');
-INSERT INTO t1 VALUES (NULL, 'aa');
-INSERT INTO t1 VALUES (NULL, 'aaa');
-INSERT INTO t1 VALUES (NULL, 'aaaa');
-INSERT INTO t1 VALUES (NULL, 'aaaaa');
-INSERT INTO t1 VALUES (NULL, 'aaaaaa');
-INSERT INTO t1 VALUES (NULL, 'aaaaaaa');
-select * from t1 where str like 'aa%';
-id str
-2 aa
-3 aaa
-4 aaaa
-5 aaaaa
-6 aaaaaa
-7 aaaaaaa
-drop table t1;
-set names cp1250;
-create table t1 (a varchar(15) collate cp1250_czech_cs NOT NULL, primary key(a));
-insert into t1 values("abcdefghá");
-insert into t1 values("ááèè");
-select a from t1 where a like "abcdefghá";
-a
-abcdefghá
-drop table t1;
-set names cp1250 collate cp1250_czech_cs;
-SELECT strcmp('a','a '), strcmp('a ','a');
-strcmp('a','a ') strcmp('a ','a')
-0 0
-SELECT strcmp('a\0','a' ), strcmp('a','a\0');
-strcmp('a\0','a' ) strcmp('a','a\0')
-1 -1
-SELECT strcmp('a\0','a '), strcmp('a ','a\0');
-strcmp('a\0','a ') strcmp('a ','a\0')
-1 -1
-SELECT strcmp('a\t','a' ), strcmp('a', 'a\t');
-strcmp('a\t','a' ) strcmp('a', 'a\t')
-1 -1
-SELECT strcmp('a\t','a '), strcmp('a ', 'a\t');
-strcmp('a\t','a ') strcmp('a ', 'a\t')
-1 -1
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-cp1250_czech_cs 61
-cp1250_czech_cs 6109
-cp1250_czech_cs 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-cp1250_czech_cs
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-cp1250_czech_cs
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-set global LC_MESSAGES=convert((@@global.log_bin_trust_function_creators)
-using cp1250);
-ERROR HY000: Unknown locale: 'ON'
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-#
-# Note:
-# cp1250_czech_cs does not support WEIGHT_STRING in full extent
-#
-set names cp1250 collate cp1250_czech_cs;
-select @@collation_connection;
-@@collation_connection
-cp1250_czech_cs
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET cp1250 COLLATE cp1250_czech_cs NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-A402
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-A402
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET cp1250 COLLATE cp1250_czech_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-A4A4A4A4A40202020202
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-A4A4A4A4A40202020202
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-A4A4A4A4A40202020202
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-A4A4A4A4A40202020202
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-A4A4A4A4A40202020202
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-A4A4A4A4A40202020202
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-A402
-select hex(weight_string('A'));
-hex(weight_string('A'))
-A401
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-A4A5A6020202
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-A4A5A6020202
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-A4A5A6020202
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-A4A5A6020202
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-A4
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-A4A5
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-A4A5A6
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-A4A5A602
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-A4A5A60202
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-A4A5A602020200000000000000000000000000000000000000
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-A4
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-A4A5
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-A4A5A6
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-A4A5A602
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-A4A5A60202
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-A4A5A602020200000000000000000000000000000000000000
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-A4
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-A4A5
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-A4A5A6
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-A4A5A602
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-A4A5A60202
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-A4A5A602020200000000000000000000000000000000000000
-select @@collation_connection;
-@@collation_connection
-cp1250_czech_cs
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-8123
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-818181232323
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-818181232323
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-818181232323
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-818181232323
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-81
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-8181
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-818181
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-81818123
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-8181812323
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-81818123232300000000000000000000000000000000000000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-81
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-8181
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-818181
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-81818123
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-8181812323
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-81818123232300000000000000000000000000000000000000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-81
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-8181
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-818181
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-81818123
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-8181812323
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-81818123232300000000000000000000000000000000000000
-select @@collation_connection;
-@@collation_connection
-cp1250_czech_cs
-select collation(cast(_latin1 0xDF as char));
-collation(cast(_latin1 0xDF as char))
-cp1250_czech_cs
-select hex(weight_string('s'));
-hex(weight_string('s'))
-B902
-select hex(weight_string(cast(_latin1 0xDF as char)));
-hex(weight_string(cast(_latin1 0xDF as char)))
-BB01
-select hex(weight_string(cast(_latin1 0xDF as char) as char(1)));
-hex(weight_string(cast(_latin1 0xDF as char) as char(1)))
-BB01
-select hex(weight_string('c'));
-hex(weight_string('c'))
-A602
-select hex(weight_string('h'));
-hex(weight_string('h'))
-AC02
-select hex(weight_string('ch'));
-hex(weight_string('ch'))
-AD03
-select hex(weight_string('i'));
-hex(weight_string('i'))
-AE02
-select hex(weight_string(cast(_latin1 0x6368DF as char)));
-hex(weight_string(cast(_latin1 0x6368DF as char)))
-ADBB0301
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(1)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(1)))
-ADBB0301
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(2)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(2)))
-ADBB0301
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(3)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(3)))
-ADBB0301
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(4)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(4)))
-ADBB0301
-select hex(weight_string(cast(_latin1 0xDF6368 as char)));
-hex(weight_string(cast(_latin1 0xDF6368 as char)))
-BBAD0103
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(1)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(1)))
-BBAD0103
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(2)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(2)))
-BBAD0103
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(3)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(3)))
-BBAD0103
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(4)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(4)))
-BBAD0103
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 2, 0xC0))
-AD
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 2, 0xC0))
-ADBB
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 2, 0xC0))
-ADBB03
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 2, 0xC0))
-ADBB0301
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 2, 0xC0))
-ADBB0301000000000000000000000000000000000000000000
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 3, 0xC0))
-AD
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 3, 0xC0))
-ADBB
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 3, 0xC0))
-ADBB03
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 3, 0xC0))
-ADBB0301
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 3, 0xC0))
-ADBB0301000000000000000000000000000000000000000000
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 4, 0xC0))
-AD
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 4, 0xC0))
-ADBB
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 4, 0xC0))
-ADBB03
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 4, 0xC0))
-ADBB0301
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 4, 0xC0))
-ADBB0301000000000000000000000000000000000000000000
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 2,0xC0))
-BB
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 2,0xC0))
-BBAD
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 2,0xC0))
-BBAD01
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 2,0xC0))
-BBAD0103
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 2,0xC0))
-BBAD0103000000000000000000000000000000000000000000
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 3,0xC0))
-BB
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 3,0xC0))
-BBAD
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 3,0xC0))
-BBAD01
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 3,0xC0))
-BBAD0103
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 3,0xC0))
-BBAD0103000000000000000000000000000000000000000000
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 4,0xC0))
-BB
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 4,0xC0))
-BBAD
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 4,0xC0))
-BBAD01
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 4,0xC0))
-BBAD0103
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 4,0xC0))
-BBAD0103000000000000000000000000000000000000000000
-select @@collation_connection;
-@@collation_connection
-cp1250_czech_cs
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-A4
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-A4
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-A4A5A6
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-A4A5A6
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-A4A5A6
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-A4A5A6
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-A4A5A6
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-A4A5A6
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-A4A5A6
-select @@collation_connection;
-@@collation_connection
-cp1250_czech_cs
-select hex(weight_string('a' LEVEL 2));
-hex(weight_string('a' LEVEL 2))
-02
-select hex(weight_string('A' LEVEL 2));
-hex(weight_string('A' LEVEL 2))
-01
-select hex(weight_string('abc' LEVEL 2));
-hex(weight_string('abc' LEVEL 2))
-020202
-select hex(weight_string('abc' as char(2) LEVEL 2));
-hex(weight_string('abc' as char(2) LEVEL 2))
-020202
-select hex(weight_string('abc' as char(3) LEVEL 2));
-hex(weight_string('abc' as char(3) LEVEL 2))
-020202
-select hex(weight_string('abc' as char(5) LEVEL 2));
-hex(weight_string('abc' as char(5) LEVEL 2))
-020202
-select @@collation_connection;
-@@collation_connection
-cp1250_czech_cs
-select hex(weight_string('a' LEVEL 1,2));
-hex(weight_string('a' LEVEL 1,2))
-A402
-select hex(weight_string('a' LEVEL 1-2));
-hex(weight_string('a' LEVEL 1-2))
-A402
-select hex(weight_string('A' LEVEL 1,2));
-hex(weight_string('A' LEVEL 1,2))
-A401
-select hex(weight_string('A' LEVEL 1-2));
-hex(weight_string('A' LEVEL 1-2))
-A401
-#
-# End of 5.6 tests
-#
diff --git a/mysql-test/r/ctype_cp1251.result b/mysql-test/r/ctype_cp1251.result
deleted file mode 100644
index 2da53740619..00000000000
--- a/mysql-test/r/ctype_cp1251.result
+++ /dev/null
@@ -1,3424 +0,0 @@
-drop table if exists t1;
-SET NAMES cp1251;
-create table t1 (a varchar(10) not null) character set cp1251;
-insert into t1 values ("a"),("ab"),("abc");
-select * from t1;
-a
-a
-ab
-abc
-select a, left(a,1) as b from t1;
-a b
-a a
-ab a
-abc a
-select a, left(a,1) as b from t1 group by a;
-a b
-a a
-ab a
-abc a
-SELECT DISTINCT RIGHT(a,1) from t1;
-RIGHT(a,1)
-a
-b
-c
-drop table t1;
-create table t1 (a char(3) binary, b binary(3)) character set cp1251;
-insert into t1 values ('aaa','bbb'),('AAA','BBB');
-select upper(a),upper(b) from t1;
-upper(a) upper(b)
-AAA bbb
-AAA BBB
-select lower(a),lower(b) from t1;
-lower(a) lower(b)
-aaa bbb
-aaa BBB
-select * from t1 where upper(a)='AAA';
-a b
-aaa bbb
-AAA BBB
-select * from t1 where lower(a)='aaa';
-a b
-aaa bbb
-AAA BBB
-select * from t1 where upper(b)='BBB';
-a b
-AAA BBB
-select * from t1 where lower(b)='bbb';
-a b
-aaa bbb
-select charset(a), charset(b), charset(binary 'ccc') from t1 limit 1;
-charset(a) charset(b) charset(binary 'ccc')
-cp1251 binary binary
-select collation(a), collation(b), collation(binary 'ccc') from t1 limit 1;
-collation(a) collation(b) collation(binary 'ccc')
-cp1251_bin binary binary
-drop table t1;
-create table t1 (
-a varchar(16) character set cp1251 collate cp1251_bin not null,
-b int(10) default null,
-primary key(a)
-) charset=cp1251;
-insert into t1 (a) values ('air'),
-('we'),('g'),('we_toshko'), ('s0urce'),('we_ivo'),('we_iliyan'),
-('we_martin'),('vw_grado'),('vw_vasko'),('tn_vili'),('tn_kalina'),
-('tn_fakira'),('vw_silvia'),('vw_starshi'),('vw_geo'),('vw_b0x1');
-select * from t1 where a like 'we_%';
-a b
-we_iliyan NULL
-we_ivo NULL
-we_martin NULL
-we_toshko NULL
-drop table t1;
-CREATE TABLE t1 (
-e1 enum('ÿáúëêà'),
-e2 enum('ìëÿêî')
-) ENGINE=MYISAM character set cp1251;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `e1` enum('ÿáúëêà') DEFAULT NULL,
- `e2` enum('ìëÿêî') DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=cp1251
-DROP TABLE t1;
-#
-# Start of 5.1 tests
-#
-SELECT @@collation_connection;
-@@collation_connection
-cp1251_general_ci
-CREATE TABLE t1 AS SELECT ' ' AS a LIMIT 0;
-INSERT INTO t1 VALUES (0x00),(0x01),(0x02),(0x03),(0x04),(0x05),(0x06),(0x07);
-INSERT INTO t1 VALUES (0x08),(0x09),(0x0A),(0x0B),(0x0C),(0x0D),(0x0E),(0x0F);
-INSERT INTO t1 VALUES (0x10),(0x11),(0x12),(0x13),(0x14),(0x15),(0x16),(0x17);
-INSERT INTO t1 VALUES (0x18),(0x19),(0x1A),(0x1B),(0x1C),(0x1D),(0x1E),(0x1F);
-INSERT INTO t1 VALUES (0x20),(0x21),(0x22),(0x23),(0x24),(0x25),(0x26),(0x27);
-INSERT INTO t1 VALUES (0x28),(0x29),(0x2A),(0x2B),(0x2C),(0x2D),(0x2E),(0x2F);
-INSERT INTO t1 VALUES (0x30),(0x31),(0x32),(0x33),(0x34),(0x35),(0x36),(0x37);
-INSERT INTO t1 VALUES (0x38),(0x39),(0x3A),(0x3B),(0x3C),(0x3D),(0x3E),(0x3F);
-INSERT INTO t1 VALUES (0x40),(0x41),(0x42),(0x43),(0x44),(0x45),(0x46),(0x47);
-INSERT INTO t1 VALUES (0x48),(0x49),(0x4A),(0x4B),(0x4C),(0x4D),(0x4E),(0x4F);
-INSERT INTO t1 VALUES (0x50),(0x51),(0x52),(0x53),(0x54),(0x55),(0x56),(0x57);
-INSERT INTO t1 VALUES (0x58),(0x59),(0x5A),(0x5B),(0x5C),(0x5D),(0x5E),(0x5F);
-INSERT INTO t1 VALUES (0x60),(0x61),(0x62),(0x63),(0x64),(0x65),(0x66),(0x67);
-INSERT INTO t1 VALUES (0x68),(0x69),(0x6A),(0x6B),(0x6C),(0x6D),(0x6E),(0x6F);
-INSERT INTO t1 VALUES (0x70),(0x71),(0x72),(0x73),(0x74),(0x75),(0x76),(0x77);
-INSERT INTO t1 VALUES (0x78),(0x79),(0x7A),(0x7B),(0x7C),(0x7D),(0x7E),(0x7F);
-INSERT INTO t1 VALUES (0x80),(0x81),(0x82),(0x83),(0x84),(0x85),(0x86),(0x87);
-INSERT INTO t1 VALUES (0x88),(0x89),(0x8A),(0x8B),(0x8C),(0x8D),(0x8E),(0x8F);
-INSERT INTO t1 VALUES (0x90),(0x91),(0x92),(0x93),(0x94),(0x95),(0x96),(0x97);
-INSERT INTO t1 VALUES (0x98),(0x99),(0x9A),(0x9B),(0x9C),(0x9D),(0x9E),(0x9F);
-INSERT INTO t1 VALUES (0xA0),(0xA1),(0xA2),(0xA3),(0xA4),(0xA5),(0xA6),(0xA7);
-INSERT INTO t1 VALUES (0xA8),(0xA9),(0xAA),(0xAB),(0xAC),(0xAD),(0xAE),(0xAF);
-INSERT INTO t1 VALUES (0xB0),(0xB1),(0xB2),(0xB3),(0xB4),(0xB5),(0xB6),(0xB7);
-INSERT INTO t1 VALUES (0xB8),(0xB9),(0xBA),(0xBB),(0xBC),(0xBD),(0xBE),(0xBF);
-INSERT INTO t1 VALUES (0xC0),(0xC1),(0xC2),(0xC3),(0xC4),(0xC5),(0xC6),(0xC7);
-INSERT INTO t1 VALUES (0xC8),(0xC9),(0xCA),(0xCB),(0xCC),(0xCD),(0xCE),(0xCF);
-INSERT INTO t1 VALUES (0xD0),(0xD1),(0xD2),(0xD3),(0xD4),(0xD5),(0xD6),(0xD7);
-INSERT INTO t1 VALUES (0xD8),(0xD9),(0xDA),(0xDB),(0xDC),(0xDD),(0xDE),(0xDF);
-INSERT INTO t1 VALUES (0xE0),(0xE1),(0xE2),(0xE3),(0xE4),(0xE5),(0xE6),(0xE7);
-INSERT INTO t1 VALUES (0xE8),(0xE9),(0xEA),(0xEB),(0xEC),(0xED),(0xEE),(0xEF);
-INSERT INTO t1 VALUES (0xF0),(0xF1),(0xF2),(0xF3),(0xF4),(0xF5),(0xF6),(0xF7);
-INSERT INTO t1 VALUES (0xF8),(0xF9),(0xFA),(0xFB),(0xFC),(0xFD),(0xFE),(0xFF);
-SELECT
-HEX(a) AS chr,
-HEX(LOWER(a)) AS upper,
-HEX(LOWER(a)) AS lower,
-HEX(@utf8:=CONVERT(a USING utf8)) AS utf8,
-HEX(@roundtrip:=CAST(@utf8 AS CHAR)) AS roundtrip,
-if(a=BINARY @roundtrip,'','Round trip unsafe') AS issafe
-FROM t1 ORDER BY chr;
-chr upper lower utf8 roundtrip issafe
-00 00 00 00 00
-01 01 01 01 01
-02 02 02 02 02
-03 03 03 03 03
-04 04 04 04 04
-05 05 05 05 05
-06 06 06 06 06
-07 07 07 07 07
-08 08 08 08 08
-09 09 09 09 09
-0A 0A 0A 0A 0A
-0B 0B 0B 0B 0B
-0C 0C 0C 0C 0C
-0D 0D 0D 0D 0D
-0E 0E 0E 0E 0E
-0F 0F 0F 0F 0F
-10 10 10 10 10
-11 11 11 11 11
-12 12 12 12 12
-13 13 13 13 13
-14 14 14 14 14
-15 15 15 15 15
-16 16 16 16 16
-17 17 17 17 17
-18 18 18 18 18
-19 19 19 19 19
-1A 1A 1A 1A 1A
-1B 1B 1B 1B 1B
-1C 1C 1C 1C 1C
-1D 1D 1D 1D 1D
-1E 1E 1E 1E 1E
-1F 1F 1F 1F 1F
-20 20 20 20 20
-21 21 21 21 21
-22 22 22 22 22
-23 23 23 23 23
-24 24 24 24 24
-25 25 25 25 25
-26 26 26 26 26
-27 27 27 27 27
-28 28 28 28 28
-29 29 29 29 29
-2A 2A 2A 2A 2A
-2B 2B 2B 2B 2B
-2C 2C 2C 2C 2C
-2D 2D 2D 2D 2D
-2E 2E 2E 2E 2E
-2F 2F 2F 2F 2F
-30 30 30 30 30
-31 31 31 31 31
-32 32 32 32 32
-33 33 33 33 33
-34 34 34 34 34
-35 35 35 35 35
-36 36 36 36 36
-37 37 37 37 37
-38 38 38 38 38
-39 39 39 39 39
-3A 3A 3A 3A 3A
-3B 3B 3B 3B 3B
-3C 3C 3C 3C 3C
-3D 3D 3D 3D 3D
-3E 3E 3E 3E 3E
-3F 3F 3F 3F 3F
-40 40 40 40 40
-41 61 61 41 41
-42 62 62 42 42
-43 63 63 43 43
-44 64 64 44 44
-45 65 65 45 45
-46 66 66 46 46
-47 67 67 47 47
-48 68 68 48 48
-49 69 69 49 49
-4A 6A 6A 4A 4A
-4B 6B 6B 4B 4B
-4C 6C 6C 4C 4C
-4D 6D 6D 4D 4D
-4E 6E 6E 4E 4E
-4F 6F 6F 4F 4F
-50 70 70 50 50
-51 71 71 51 51
-52 72 72 52 52
-53 73 73 53 53
-54 74 74 54 54
-55 75 75 55 55
-56 76 76 56 56
-57 77 77 57 57
-58 78 78 58 58
-59 79 79 59 59
-5A 7A 7A 5A 5A
-5B 5B 5B 5B 5B
-5C 5C 5C 5C 5C
-5D 5D 5D 5D 5D
-5E 5E 5E 5E 5E
-5F 5F 5F 5F 5F
-60 60 60 60 60
-61 61 61 61 61
-62 62 62 62 62
-63 63 63 63 63
-64 64 64 64 64
-65 65 65 65 65
-66 66 66 66 66
-67 67 67 67 67
-68 68 68 68 68
-69 69 69 69 69
-6A 6A 6A 6A 6A
-6B 6B 6B 6B 6B
-6C 6C 6C 6C 6C
-6D 6D 6D 6D 6D
-6E 6E 6E 6E 6E
-6F 6F 6F 6F 6F
-70 70 70 70 70
-71 71 71 71 71
-72 72 72 72 72
-73 73 73 73 73
-74 74 74 74 74
-75 75 75 75 75
-76 76 76 76 76
-77 77 77 77 77
-78 78 78 78 78
-79 79 79 79 79
-7A 7A 7A 7A 7A
-7B 7B 7B 7B 7B
-7C 7C 7C 7C 7C
-7D 7D 7D 7D 7D
-7E 7E 7E 7E 7E
-7F 7F 7F 7F 7F
-80 90 90 D082 80
-81 83 83 D083 81
-82 82 82 E2809A 82
-83 83 83 D193 83
-84 84 84 E2809E 84
-85 85 85 E280A6 85
-86 86 86 E280A0 86
-87 87 87 E280A1 87
-88 88 88 E282AC 88
-89 89 89 E280B0 89
-8A 9A 9A D089 8A
-8B 8B 8B E280B9 8B
-8C 9C 9C D08A 8C
-8D 9D 9D D08C 8D
-8E 9E 9E D08B 8E
-8F 9F 9F D08F 8F
-90 90 90 D192 90
-91 91 91 E28098 91
-92 92 92 E28099 92
-93 93 93 E2809C 93
-94 94 94 E2809D 94
-95 95 95 E280A2 95
-96 96 96 E28093 96
-97 97 97 E28094 97
-98 98 98 3F 3F Round trip unsafe
-99 99 99 E284A2 99
-9A 9A 9A D199 9A
-9B 9B 9B E280BA 9B
-9C 9C 9C D19A 9C
-9D 9D 9D D19C 9D
-9E 9E 9E D19B 9E
-9F 9F 9F D19F 9F
-A0 A0 A0 C2A0 A0
-A1 A2 A2 D08E A1
-A2 A2 A2 D19E A2
-A3 BC BC D088 A3
-A4 A4 A4 C2A4 A4
-A5 B4 B4 D290 A5
-A6 A6 A6 C2A6 A6
-A7 A7 A7 C2A7 A7
-A8 B8 B8 D081 A8
-A9 A9 A9 C2A9 A9
-AA BA BA D084 AA
-AB AB AB C2AB AB
-AC AC AC C2AC AC
-AD AD AD C2AD AD
-AE AE AE C2AE AE
-AF BF BF D087 AF
-B0 B0 B0 C2B0 B0
-B1 B1 B1 C2B1 B1
-B2 B3 B3 D086 B2
-B3 B3 B3 D196 B3
-B4 B4 B4 D291 B4
-B5 B5 B5 C2B5 B5
-B6 B6 B6 C2B6 B6
-B7 B7 B7 C2B7 B7
-B8 B8 B8 D191 B8
-B9 B9 B9 E28496 B9
-BA BA BA D194 BA
-BB BB BB C2BB BB
-BC BC BC D198 BC
-BD BE BE D085 BD
-BE BE BE D195 BE
-BF BF BF D197 BF
-C0 E0 E0 D090 C0
-C1 E1 E1 D091 C1
-C2 E2 E2 D092 C2
-C3 E3 E3 D093 C3
-C4 E4 E4 D094 C4
-C5 E5 E5 D095 C5
-C6 E6 E6 D096 C6
-C7 E7 E7 D097 C7
-C8 E8 E8 D098 C8
-C9 E9 E9 D099 C9
-CA EA EA D09A CA
-CB EB EB D09B CB
-CC EC EC D09C CC
-CD ED ED D09D CD
-CE EE EE D09E CE
-CF EF EF D09F CF
-D0 F0 F0 D0A0 D0
-D1 F1 F1 D0A1 D1
-D2 F2 F2 D0A2 D2
-D3 F3 F3 D0A3 D3
-D4 F4 F4 D0A4 D4
-D5 F5 F5 D0A5 D5
-D6 F6 F6 D0A6 D6
-D7 F7 F7 D0A7 D7
-D8 F8 F8 D0A8 D8
-D9 F9 F9 D0A9 D9
-DA FA FA D0AA DA
-DB FB FB D0AB DB
-DC FC FC D0AC DC
-DD FD FD D0AD DD
-DE FE FE D0AE DE
-DF FF FF D0AF DF
-E0 E0 E0 D0B0 E0
-E1 E1 E1 D0B1 E1
-E2 E2 E2 D0B2 E2
-E3 E3 E3 D0B3 E3
-E4 E4 E4 D0B4 E4
-E5 E5 E5 D0B5 E5
-E6 E6 E6 D0B6 E6
-E7 E7 E7 D0B7 E7
-E8 E8 E8 D0B8 E8
-E9 E9 E9 D0B9 E9
-EA EA EA D0BA EA
-EB EB EB D0BB EB
-EC EC EC D0BC EC
-ED ED ED D0BD ED
-EE EE EE D0BE EE
-EF EF EF D0BF EF
-F0 F0 F0 D180 F0
-F1 F1 F1 D181 F1
-F2 F2 F2 D182 F2
-F3 F3 F3 D183 F3
-F4 F4 F4 D184 F4
-F5 F5 F5 D185 F5
-F6 F6 F6 D186 F6
-F7 F7 F7 D187 F7
-F8 F8 F8 D188 F8
-F9 F9 F9 D189 F9
-FA FA FA D18A FA
-FB FB FB D18B FB
-FC FC FC D18C FC
-FD FD FD D18D FD
-FE FE FE D18E FE
-FF FF FF D18F FF
-Warnings:
-Warning 1977 Cannot convert 'cp1251' character 0x98 to 'utf8'
-DROP TABLE t1;
-SELECT strcmp('a','a '), strcmp('a ','a');
-strcmp('a','a ') strcmp('a ','a')
-0 0
-SELECT strcmp('a\0','a' ), strcmp('a','a\0');
-strcmp('a\0','a' ) strcmp('a','a\0')
--1 1
-SELECT strcmp('a\0','a '), strcmp('a ','a\0');
-strcmp('a\0','a ') strcmp('a ','a\0')
--1 1
-SELECT strcmp('a\t','a' ), strcmp('a', 'a\t');
-strcmp('a\t','a' ) strcmp('a', 'a\t')
--1 1
-SELECT strcmp('a\t','a '), strcmp('a ', 'a\t');
-strcmp('a\t','a ') strcmp('a ', 'a\t')
--1 1
-set global LC_TIME_NAMES=convert((-8388608) using cp1251);
-ERROR HY000: Unknown locale: '-8388608'
-#
-# End of 5.1 tests
-#
-#
-# Start of 5.5 tests
-#
-SET TIME_ZONE = _latin1 '+03:00';
-#
-# Start of WL#2649 Number-to-string conversions
-#
-select hex(concat(1));
-hex(concat(1))
-31
-create table t1 as select concat(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-31
-drop table t1;
-select hex(concat(18446744073709551615));
-hex(concat(18446744073709551615))
-3138343436373434303733373039353531363135
-create table t1 as select concat(18446744073709551615) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-3138343436373434303733373039353531363135
-drop table t1;
-select hex(concat(1.1));
-hex(concat(1.1))
-312E31
-create table t1 as select concat(1.1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-312E31
-drop table t1;
-select hex(concat('a', 1+2)), charset(concat(1+2));
-hex(concat('a', 1+2)) charset(concat(1+2))
-6133 cp1251
-create table t1 as select concat(1+2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1-2));
-hex(concat(1-2))
-2D31
-create table t1 as select concat(1-2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1*2));
-hex(concat(1*2))
-32
-create table t1 as select concat(1*2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1/2));
-hex(concat(1/2))
-302E35303030
-create table t1 as select concat(1/2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(7) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1 div 2));
-hex(concat(1 div 2))
-30
-create table t1 as select concat(1 div 2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1 % 2));
-hex(concat(1 % 2))
-31
-create table t1 as select concat(1 % 2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(-1));
-hex(concat(-1))
-2D31
-create table t1 as select concat(-1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(-(1+2)));
-hex(concat(-(1+2)))
-2D33
-create table t1 as select concat(-(1+2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1|2));
-hex(concat(1|2))
-33
-create table t1 as select concat(1|2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1&2));
-hex(concat(1&2))
-30
-create table t1 as select concat(1&2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(bit_count(12)));
-hex(concat(bit_count(12)))
-32
-create table t1 as select concat(bit_count(12)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(2<<1));
-hex(concat(2<<1))
-34
-create table t1 as select concat(2<<1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(2>>1));
-hex(concat(2>>1))
-31
-create table t1 as select concat(2>>1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(~0));
-hex(concat(~0))
-3138343436373434303733373039353531363135
-create table t1 as select concat(~0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(3^2));
-hex(concat(3^2))
-31
-create table t1 as select concat(3^2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(abs(-2)));
-hex(concat(abs(-2)))
-32
-create table t1 as select concat(abs(-2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(exp(2)),1));
-hex(left(concat(exp(2)),1))
-37
-create table t1 as select concat(exp(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log(2)),1));
-hex(left(concat(log(2)),1))
-30
-create table t1 as select concat(log(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log2(2)),1));
-hex(left(concat(log2(2)),1))
-31
-create table t1 as select concat(log2(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log10(2)),1));
-hex(left(concat(log10(2)),1))
-30
-create table t1 as select concat(log10(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(sqrt(2)),1));
-hex(left(concat(sqrt(2)),1))
-31
-create table t1 as select concat(sqrt(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(pow(2,2)),1));
-hex(left(concat(pow(2,2)),1))
-34
-create table t1 as select concat(pow(2,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(acos(0.5)),1));
-hex(left(concat(acos(0.5)),1))
-31
-create table t1 as select concat(acos(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(asin(0.5)),1));
-hex(left(concat(asin(0.5)),1))
-30
-create table t1 as select concat(asin(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(atan(0.5)),1));
-hex(left(concat(atan(0.5)),1))
-30
-create table t1 as select concat(atan(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(cos(0.5)),1));
-hex(left(concat(cos(0.5)),1))
-30
-create table t1 as select concat(cos(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(sin(0.5)),1));
-hex(left(concat(sin(0.5)),1))
-30
-create table t1 as select concat(sin(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(tan(0.5)),1));
-hex(left(concat(tan(0.5)),1))
-30
-create table t1 as select concat(tan(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(degrees(0)));
-hex(concat(degrees(0)))
-30
-create table t1 as select concat(degrees(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(radians(0)));
-hex(concat(radians(0)))
-30
-create table t1 as select concat(radians(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ceiling(0.5)));
-hex(concat(ceiling(0.5)))
-31
-create table t1 as select concat(ceiling(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(floor(0.5)));
-hex(concat(floor(0.5)))
-30
-create table t1 as select concat(floor(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(round(0.5)));
-hex(concat(round(0.5)))
-31
-create table t1 as select concat(round(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sign(0.5)));
-hex(concat(sign(0.5)))
-31
-create table t1 as select concat(sign(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(rand()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(length('a')));
-hex(concat(length('a')))
-31
-create table t1 as select concat(length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(char_length('a')));
-hex(concat(char_length('a')))
-31
-create table t1 as select concat(char_length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(bit_length('a')));
-hex(concat(bit_length('a')))
-38
-create table t1 as select concat(bit_length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(11) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(coercibility('a')));
-hex(concat(coercibility('a')))
-34
-create table t1 as select concat(coercibility('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(locate('a','a')));
-hex(concat(locate('a','a')))
-31
-create table t1 as select concat(locate('a','a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(11) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(field('c','a','b','c')));
-hex(concat(field('c','a','b','c')))
-33
-create table t1 as select concat(field('c','a','b','c')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ascii(61)));
-hex(concat(ascii(61)))
-3534
-create table t1 as select concat(ascii(61)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ord(61)));
-hex(concat(ord(61)))
-3534
-create table t1 as select concat(ord(61)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(7) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(find_in_set('b','a,b,c,d')));
-hex(concat(find_in_set('b','a,b,c,d')))
-32
-create table t1 as select concat(find_in_set('b','a,b,c,d')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select md5('a'), hex(md5('a'));
-md5('a') hex(md5('a'))
-0cc175b9c0f1b6a831c399e269772661 3063633137356239633066316236613833316333393965323639373732363631
-create table t1 as select md5('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(32) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select old_password('a'), hex(old_password('a'));
-old_password('a') hex(old_password('a'))
-60671c896665c3fa 36303637316338393636363563336661
-create table t1 as select old_password('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(16) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select password('a'), hex(password('a'));
-password('a') hex(password('a'))
-*667F407DE7C6AD07358FA38DAED7828A72014B4E 2A36363746343037444537433641443037333538464133384441454437383238413732303134423445
-create table t1 as select password('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(41) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select sha('a'), hex(sha('a'));
-sha('a') hex(sha('a'))
-86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 38366637653433376661613561376663653135643164646362396561656165613337373636376238
-create table t1 as select sha('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(40) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select sha1('a'), hex(sha1('a'));
-sha1('a') hex(sha1('a'))
-86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 38366637653433376661613561376663653135643164646362396561656165613337373636376238
-create table t1 as select sha1('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(40) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('-1' as signed)));
-hex(concat(cast('-1' as signed)))
-2D31
-create table t1 as select concat(cast('-1' as signed)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('1' as unsigned)));
-hex(concat(cast('1' as unsigned)))
-31
-create table t1 as select concat(cast('1' as unsigned)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast(1/2 as decimal(5,5))));
-hex(concat(cast(1/2 as decimal(5,5))))
-302E3530303030
-create table t1 as select concat(cast(1/2 as decimal(5,5))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(7) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('2001-01-02 03:04:05' as date)));
-hex(concat(cast('2001-01-02 03:04:05' as date)))
-323030312D30312D3032
-create table t1 as select concat(cast('2001-01-02 03:04:05' as date)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2001-01-02
-drop table t1;
-select hex(concat(cast('2001-01-02 03:04:05' as time)));
-hex(concat(cast('2001-01-02 03:04:05' as time)))
-30333A30343A3035
-create table t1 as select concat(cast('2001-01-02 03:04:05' as time)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-03:04:05
-drop table t1;
-select hex(concat(cast('2001-01-02' as datetime)));
-hex(concat(cast('2001-01-02' as datetime)))
-323030312D30312D30322030303A30303A3030
-create table t1 as select concat(cast('2001-01-02' as datetime)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2001-01-02 00:00:00
-drop table t1;
-select hex(concat(least(1,2)));
-hex(concat(least(1,2)))
-31
-create table t1 as select concat(least(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(greatest(1,2)));
-hex(concat(greatest(1,2)))
-32
-create table t1 as select concat(greatest(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(case when 11 then 22 else 33 end));
-hex(concat(case when 11 then 22 else 33 end))
-3232
-create table t1 as select concat(case when 11 then 22 else 33 end) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(coalesce(1,2)));
-hex(concat(coalesce(1,2)))
-31
-create table t1 as select concat(coalesce(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat_ws(1,2,3));
-hex(concat_ws(1,2,3))
-323133
-create table t1 as select concat_ws(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(group_concat(1,2,3));
-hex(group_concat(1,2,3))
-313233
-create table t1 as select group_concat(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` mediumtext CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select 1 as c1 union select 'a';
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1 order by c1;
-hex(c1)
-31
-61
-drop table t1;
-create table t1 as select concat(last_insert_id()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(benchmark(0,0)));
-hex(concat(benchmark(0,0)))
-30
-create table t1 as select concat(benchmark(0,0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sleep(0)));
-hex(concat(sleep(0)))
-30
-create table t1 as select concat(sleep(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(is_free_lock('xxxx')));
-hex(concat(is_free_lock('xxxx')))
-31
-create table t1 as select concat(is_free_lock('xxxx')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(is_used_lock('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(release_lock('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(crc32('')));
-hex(concat(crc32('')))
-30
-create table t1 as select concat(crc32('')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(uncompressed_length('')));
-hex(concat(uncompressed_length('')))
-30
-create table t1 as select concat(uncompressed_length('')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(connection_id()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(inet_aton('127.1.1.1')));
-hex(concat(inet_aton('127.1.1.1')))
-32313330373732323235
-create table t1 as select concat(inet_aton('127.1.1.1')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(inet_ntoa(2130772225)));
-hex(concat(inet_ntoa(2130772225)))
-3132372E312E312E31
-create table t1 as select concat(inet_ntoa(2130772225)) as c1;
-select * from t1;
-c1
-127.1.1.1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(31) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select 1;
-1
-1
-select hex(concat(row_count()));
-hex(concat(row_count()))
-2D31
-create table t1 as select concat(row_count()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(found_rows()));
-hex(concat(found_rows()))
-30
-create table t1 as select concat(found_rows()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(uuid_short()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(uuid()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(36) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select coercibility(uuid()), coercibility(cast('a' as char character set latin1));
-coercibility(uuid()) coercibility(cast('a' as char character set latin1))
-4 2
-select charset(concat(uuid(), cast('a' as char character set latin1)));
-charset(concat(uuid(), cast('a' as char character set latin1)))
-latin1
-create table t1 as select concat(uuid(), cast('a' as char character set latin1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(37) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(master_pos_wait('non-existent',0,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=1));
-hex(concat(@a1:=1))
-31
-create table t1 as select concat(@a2:=2) as c1, @a3:=3 as c2;
-select hex(c1) from t1;
-hex(c1)
-32
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL,
- `c2` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=1;
-select hex(concat(@a2));
-hex(concat(@a2))
-31
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) CHARACTER SET cp1251 DEFAULT NULL,
- `c2` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=sqrt(1)));
-hex(concat(@a1:=sqrt(1)))
-31
-create table t1 as select concat(@a2:=sqrt(1)) as c1, @a3:=sqrt(1) as c2;
-select hex(c1) from t1;
-hex(c1)
-31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL,
- `c2` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=sqrt(1);
-select hex(concat(@a2));
-hex(concat(@a2))
-31
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL,
- `c2` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=1.1));
-hex(concat(@a1:=1.1))
-312E31
-create table t1 as select concat(@a2:=1.1) as c1, @a3:=1.1 as c2;
-select hex(c1) from t1;
-hex(c1)
-312E31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET cp1251 DEFAULT NULL,
- `c2` decimal(2,1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=1.1;
-select hex(concat(@a2));
-hex(concat(@a2))
-312E31
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-312E31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(83) CHARACTER SET cp1251 DEFAULT NULL,
- `c2` decimal(65,38) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@@ft_max_word_len));
-hex(concat(@@ft_max_word_len))
-3834
-create table t1 as select concat(@@ft_max_word_len) as c1;
-select hex(c1) from t1;
-hex(c1)
-3834
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a'='a' IS TRUE));
-hex(concat('a'='a' IS TRUE))
-31
-create table t1 as select concat('a'='a' IS TRUE) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a'='a' IS NOT TRUE));
-hex(concat('a'='a' IS NOT TRUE))
-30
-create table t1 as select concat('a'='a' IS NOT TRUE) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NOT 'a'='a'));
-hex(concat(NOT 'a'='a'))
-30
-create table t1 as select concat(NOT 'a'='a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' IS NULL));
-hex(concat('a' IS NULL))
-30
-create table t1 as select concat('a' IS NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' IS NOT NULL));
-hex(concat('a' IS NOT NULL))
-31
-create table t1 as select concat('a' IS NOT NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' rlike 'a'));
-hex(concat('a' rlike 'a'))
-31
-create table t1 as select concat('a' IS NOT NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(strcmp('a','b')));
-hex(concat(strcmp('a','b')))
-2D31
-create table t1 as select concat(strcmp('a','b')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' like 'a'));
-hex(concat('a' like 'a'))
-31
-create table t1 as select concat('a' like 'b') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' between 'b' and 'c'));
-hex(concat('a' between 'b' and 'c'))
-30
-create table t1 as select concat('a' between 'b' and 'c') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' in ('a','b')));
-hex(concat('a' in ('a','b')))
-31
-create table t1 as select concat('a' in ('a','b')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(interval(23, 1, 15, 17, 30, 44, 200)));
-hex(concat(interval(23, 1, 15, 17, 30, 44, 200)))
-33
-create table t1 as select concat(interval(23, 1, 15, 17, 30, 44, 200)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a varchar(10), fulltext key(a));
-insert into t1 values ('a');
-select hex(concat(match (a) against ('a'))) from t1;
-hex(concat(match (a) against ('a')))
-30
-create table t2 as select concat(match (a) against ('a')) as a from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-select hex(ifnull(1,'a'));
-hex(ifnull(1,'a'))
-31
-create table t1 as select ifnull(1,'a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ifnull(1,1)));
-hex(concat(ifnull(1,1)))
-31
-create table t1 as select concat(ifnull(1,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ifnull(1.1,1.1)));
-hex(concat(ifnull(1.1,1.1)))
-312E31
-create table t1 as select concat(ifnull(1.1,1.1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(if(1,'b',1));
-hex(if(1,'b',1))
-62
-create table t1 as select if(1,'b',1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(if(1,1,'b'));
-hex(if(1,1,'b'))
-31
-create table t1 as select if(1,1,'b') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(if(1,1,1)));
-hex(concat(if(1,1,1)))
-31
-create table t1 as select concat(if(1,1,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(nullif(1,2)));
-hex(concat(nullif(1,2)))
-31
-create table t1 as select concat(nullif(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Dimension(GeomFromText('LINESTRING(0 0,10 10)'))));
-hex(concat(Dimension(GeomFromText('LINESTRING(0 0,10 10)'))))
-31
-create table t1 as select concat(Dimension(GeomFromText('LINSTRING(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))));
-hex(concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))))
-32
-create table t1 as select concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))));
-hex(concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))))
-32
-create table t1 as select concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))));
-hex(concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))))
-30
-create table t1 as select concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))));
-hex(concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))))
-31
-create table t1 as select concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsEmpty(GeomFromText('POINT(1 1)'))));
-hex(concat(IsEmpty(GeomFromText('POINT(1 1)'))))
-30
-create table t1 as select concat(IsEmpty(GeomFromText('Point(1 1)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsSimple(GeomFromText('POINT(1 1)'))));
-hex(concat(IsSimple(GeomFromText('POINT(1 1)'))))
-31
-create table t1 as select concat(IsSimple(GeomFromText('Point(1 1)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))));
-hex(concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))))
-30
-create table t1 as select concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))));
-hex(concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))))
-31
-create table t1 as select concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))) as c1;
-drop table t1;
-select hex(concat(x(GeomFromText('Point(1 2)'))));
-hex(concat(x(GeomFromText('Point(1 2)'))))
-31
-create table t1 as select concat(x(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(y(GeomFromText('Point(1 2)'))));
-hex(concat(y(GeomFromText('Point(1 2)'))))
-32
-create table t1 as select concat(x(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(GLength(GeomFromText('LineString(1 2,2 2)'))));
-hex(concat(GLength(GeomFromText('LineString(1 2,2 2)'))))
-31
-create table t1 as select concat(GLength(GeomFromText('LineString(1 2, 2 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))));
-hex(concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))))
-31
-create table t1 as select concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(GeometryType(GeomFromText('Point(1 2)'))));
-hex(concat(GeometryType(GeomFromText('Point(1 2)'))))
-504F494E54
-create table t1 as select concat(GeometryType(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(AsText(GeomFromText('Point(1 2)'))));
-hex(concat(AsText(GeomFromText('Point(1 2)'))))
-504F494E542831203229
-create table t1 as select concat(AsText(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` longtext CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(period_add(200902, 2)));
-hex(concat(period_add(200902, 2)))
-323030393034
-create table t1 as select concat(period_add(200902, 2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(period_diff(200902, 200802)));
-hex(concat(period_diff(200902, 200802)))
-3132
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1 as select concat(period_add(200902, 200802)) as c1;
-Warnings:
-Warning 1265 Data truncated for column 'c1' at row 1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET cp1251 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(to_days(20090224)));
-hex(concat(to_days(20090224)))
-373333383237
-create table t1 as select concat(to_days(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofmonth(20090224)));
-hex(concat(dayofmonth(20090224)))
-3234
-create table t1 as select concat(dayofmonth(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofyear(20090224)));
-hex(concat(dayofyear(20090224)))
-3535
-create table t1 as select concat(dayofyear(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(hour('10:11:12')));
-hex(concat(hour('10:11:12')))
-3130
-create table t1 as select concat(hour('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(minute('10:11:12')));
-hex(concat(minute('10:11:12')))
-3131
-create table t1 as select concat(minute('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(second('10:11:12')));
-hex(concat(second('10:11:12')))
-3132
-create table t1 as select concat(second('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(quarter(20090224)));
-hex(concat(quarter(20090224)))
-31
-create table t1 as select concat(quarter(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(week(20090224)));
-hex(concat(week(20090224)))
-38
-create table t1 as select concat(week(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(yearweek(20090224)));
-hex(concat(yearweek(20090224)))
-323030393038
-create table t1 as select concat(yearweek(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(year(20090224)));
-hex(concat(year(20090224)))
-32303039
-create table t1 as select concat(year(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(weekday(20090224)));
-hex(concat(weekday(20090224)))
-31
-create table t1 as select concat(weekday(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofweek(20090224)));
-hex(concat(dayofweek(20090224)))
-33
-create table t1 as select concat(dayofweek(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(unix_timestamp(20090224)));
-hex(concat(unix_timestamp(20090224)))
-31323335343232383030
-create table t1 as select concat(unix_timestamp(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(17) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(time_to_sec('10:11:12')));
-hex(concat(time_to_sec('10:11:12')))
-3336363732
-create table t1 as select concat(time_to_sec('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(17) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(extract(year from 20090702)));
-hex(concat(extract(year from 20090702)))
-32303039
-create table t1 as select concat(extract(year from 20090702)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(microsecond('12:00:00.123456')));
-hex(concat(microsecond('12:00:00.123456')))
-313233343536
-create table t1 as select concat(microsecond('12:00:00.123456')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(month(20090224)));
-hex(concat(month(20090224)))
-32
-create table t1 as select concat(month(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(last_day('2003-02-05')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2003-02-28 323030332D30322D3238
-drop table t1;
-create table t1 as select concat(from_days(730669)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2000-07-03 323030302D30372D3033
-drop table t1;
-create table t1 as select concat(curdate()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(utc_date()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(curtime()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select repeat('a',20) as c1 limit 0;
-set timestamp=1216359724;
-insert into t1 values (current_date);
-insert into t1 values (current_time);
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2008-07-18 323030382D30372D3138
-08:42:04 30383A34323A3034
-drop table t1;
-create table t1 as select concat(utc_time()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sec_to_time(2378)));
-hex(concat(sec_to_time(2378)))
-30303A33393A3338
-create table t1 as select concat(sec_to_time(2378)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')));
-hex(concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')))
-32343A30303A3030
-create table t1 as select concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(maketime(10,11,12)));
-hex(concat(maketime(10,11,12)))
-31303A31313A3132
-create table t1 as select concat(maketime(10,11,12)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(get_format(DATE,'USA'));
-hex(get_format(DATE,'USA'))
-256D2E25642E2559
-create table t1 as select get_format(DATE,'USA') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(17) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(from_unixtime(1111885200)),4));
-hex(left(concat(from_unixtime(1111885200)),4))
-32303035
-create table t1 as select concat(from_unixtime(1111885200)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')));
-hex(concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')))
-323030332D31322D33312032303A30303A3030
-create table t1 as select concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(date_add('2004-01-01 12:00:00', interval 1 day)));
-hex(concat(date_add('2004-01-01 12:00:00', interval 1 day)))
-323030342D30312D30322031323A30303A3030
-create table t1 as select concat(date_add('2004-01-01 12:00:00', interval 1 day)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2004-01-02 12:00:00
-drop table t1;
-select hex(concat(makedate(2009,1)));
-hex(concat(makedate(2009,1)))
-323030392D30312D3031
-create table t1 as select concat(makedate(2009,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2009-01-01
-drop table t1;
-create table t1 as select concat(now()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(utc_timestamp()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(sysdate()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(addtime('00:00:00','11:22:33')));
-hex(concat(addtime('00:00:00','11:22:33')))
-31313A32323A3333
-create table t1 as select concat(addtime('00:00:00','11:22:33')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(26) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(subtime('23:59:59','11:22:33')));
-hex(concat(subtime('23:59:59','11:22:33')))
-31323A33373A3236
-create table t1 as select concat(subtime('23:59:59','11:22:33')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(26) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(elt(1,2,3));
-hex(elt(1,2,3))
-32
-create table t1 as select elt(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(export_set(1,2,3,4,2));
-hex(export_set(1,2,3,4,2))
-323433
-create table t1 as select export_set(1,2,3,4,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(127) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(insert(1133,3,0,22));
-hex(insert(1133,3,0,22))
-313132323333
-create table t1 as select insert(1133,3,0,22) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lcase(123));
-hex(lcase(123))
-313233
-create table t1 as select lcase(123) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(123,1));
-hex(left(123,1))
-31
-create table t1 as select left(123,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lower(123));
-hex(lower(123))
-313233
-create table t1 as select lower(123) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lpad(1,2,0));
-hex(lpad(1,2,0))
-3031
-create table t1 as select lpad(1,2,0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(ltrim(1));
-hex(ltrim(1))
-31
-create table t1 as select ltrim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(mid(1,1,1));
-hex(mid(1,1,1))
-31
-create table t1 as select mid(1,1,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(repeat(1,2));
-hex(repeat(1,2))
-3131
-create table t1 as select repeat(1,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(replace(1,1,2));
-hex(replace(1,1,2))
-32
-create table t1 as select replace(1,1,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(reverse(12));
-hex(reverse(12))
-3231
-create table t1 as select reverse(12) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(right(123,1));
-hex(right(123,1))
-33
-create table t1 as select right(123,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(rpad(1,2,0));
-hex(rpad(1,2,0))
-3130
-create table t1 as select rpad(1,2,0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(rtrim(1));
-hex(rtrim(1))
-31
-create table t1 as select rtrim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(soundex(1));
-hex(soundex(1))
-
-create table t1 as select soundex(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(substring(1,1,1));
-hex(substring(1,1,1))
-31
-create table t1 as select substring(1,1,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(trim(1));
-hex(trim(1))
-31
-create table t1 as select trim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(ucase(1));
-hex(ucase(1))
-31
-create table t1 as select ucase(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(upper(1));
-hex(upper(1))
-31
-create table t1 as select upper(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select repeat(' ', 64) as a limit 0;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(64) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ("1.1"), ("2.1");
-select a, hex(a) from t1;
-a hex(a)
-1.1 312E31
-2.1 322E31
-update t1 set a= a + 0.1;
-select a, hex(a) from t1;
-a hex(a)
-1.2000000000000002 312E32303030303030303030303030303032
-2.2 322E32
-drop table t1;
-create table t1 (a tinyint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(4) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a tinyint zerofill);
-insert into t1 values (1), (10), (100);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-303031 001
-303130 010
-313030 100
-drop table t1;
-create table t1 (a tinyint(4) zerofill);
-insert into t1 values (1), (10), (100);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-30303031 0001
-30303130 0010
-30313030 0100
-drop table t1;
-create table t1 (a decimal(10,2));
-insert into t1 values (123.45);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3132332E3435
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(12) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a smallint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(6) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a smallint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-3030303031 00001
-3030303130 00010
-3030313030 00100
-3031303030 01000
-3130303030 10000
-drop table t1;
-create table t1 (a mediumint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(9) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a mediumint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-3030303030303031 00000001
-3030303030303130 00000010
-3030303030313030 00000100
-3030303031303030 00001000
-3030303130303030 00010000
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(11) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a int zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-30303030303030303031 0000000001
-30303030303030303130 0000000010
-30303030303030313030 0000000100
-30303030303031303030 0000001000
-30303030303130303030 0000010000
-drop table t1;
-create table t1 (a bigint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(20) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a bigint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-3030303030303030303030303030303030303031 00000000000000000001
-3030303030303030303030303030303030303130 00000000000000000010
-3030303030303030303030303030303030313030 00000000000000000100
-3030303030303030303030303030303031303030 00000000000000001000
-3030303030303030303030303030303130303030 00000000000000010000
-drop table t1;
-create table t1 (a float);
-insert into t1 values (123.456);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3132332E343536
-select concat(a) from t1;
-concat(a)
-123.456
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(12) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a float zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-303030303030303030312E31 0000000001.1
-303030303030303031302E31 0000000010.1
-303030303030303130302E31 0000000100.1
-303030303030313030302E31 0000001000.1
-303030303031303030302E31 0000010000.1
-drop table t1;
-create table t1 (a double);
-insert into t1 values (123.456);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3132332E343536
-select concat(a) from t1;
-concat(a)
-123.456
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(22) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a double zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-30303030303030303030303030303030303030312E31 00000000000000000001.1
-30303030303030303030303030303030303031302E31 00000000000000000010.1
-30303030303030303030303030303030303130302E31 00000000000000000100.1
-30303030303030303030303030303030313030302E31 00000000000000001000.1
-30303030303030303030303030303031303030302E31 00000000000000010000.1
-drop table t1;
-create table t1 (a year(2));
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a year);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-32303031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(4) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a bit(64));
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-0000000000000001
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(64) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values (0);
-insert into t1 values (20010203040506);
-insert into t1 values (19800203040506);
-insert into t1 values ('2001-02-03 04:05:06');
-select hex(concat(a)) from t1;
-hex(concat(a))
-303030302D30302D30302030303A30303A3030
-323030312D30322D30332030343A30353A3036
-313938302D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-select concat(a) from t1;
-concat(a)
-0000-00-00 00:00:00
-2001-02-03 04:05:06
-1980-02-03 04:05:06
-2001-02-03 04:05:06
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(19) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a date);
-insert into t1 values ('2001-02-03');
-insert into t1 values (20010203);
-select hex(concat(a)) from t1;
-hex(concat(a))
-323030312D30322D3033
-323030312D30322D3033
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a time);
-insert into t1 values (1);
-insert into t1 values ('01:02:03');
-select hex(concat(a)) from t1;
-hex(concat(a))
-30303A30303A3031
-30313A30323A3033
-select concat(a) from t1;
-concat(a)
-00:00:01
-01:02:03
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a datetime);
-insert into t1 values ('2001-02-03 04:05:06');
-insert into t1 values (20010203040506);
-select hex(concat(a)) from t1;
-hex(concat(a))
-323030312D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(19) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a tinyint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(4) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a tinyint zerofill);
-insert into t1 values (1), (10), (100);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(3) YES NULL
-select hex(a) from v1;
-hex(a)
-303031
-303130
-313030
-drop table t1;
-drop view v1;
-create table t1 (a tinyint(30) zerofill);
-insert into t1 values (1), (10), (100);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(30) YES NULL
-select hex(a) from v1;
-hex(a)
-303030303030303030303030303030303030303030303030303030303031
-303030303030303030303030303030303030303030303030303030303130
-303030303030303030303030303030303030303030303030303030313030
-drop table t1;
-drop view v1;
-create table t1 (a decimal(10,2));
-insert into t1 values (123.45);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(12) YES NULL
-select hex(a) from v1;
-hex(a)
-3132332E3435
-drop table t1;
-drop view v1;
-create table t1 (a smallint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(6) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a smallint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(5) YES NULL
-select hex(a) from v1;
-hex(a)
-3030303031
-3030303130
-3030313030
-3031303030
-3130303030
-drop table t1;
-drop view v1;
-create table t1 (a mediumint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(9) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a mediumint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(8) YES NULL
-select hex(a) from v1;
-hex(a)
-3030303030303031
-3030303030303130
-3030303030313030
-3030303031303030
-3030303130303030
-drop table t1;
-drop view v1;
-create table t1 (a int);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(11) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a int zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(10) YES NULL
-select hex(a) from v1;
-hex(a)
-30303030303030303031
-30303030303030303130
-30303030303030313030
-30303030303031303030
-30303030303130303030
-drop table t1;
-drop view v1;
-create table t1 (a bigint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(20) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a bigint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(20) YES NULL
-select hex(a) from v1;
-hex(a)
-3030303030303030303030303030303030303031
-3030303030303030303030303030303030303130
-3030303030303030303030303030303030313030
-3030303030303030303030303030303031303030
-3030303030303030303030303030303130303030
-drop table t1;
-drop view v1;
-create table t1 (a float);
-insert into t1 values (123.456);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(12) YES NULL
-select hex(a) from v1;
-hex(a)
-3132332E343536
-drop table t1;
-drop view v1;
-create table t1 (a float zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(12) YES NULL
-select hex(a) from v1;
-hex(a)
-303030303030303030312E31
-303030303030303031302E31
-303030303030303130302E31
-303030303030313030302E31
-303030303031303030302E31
-drop table t1;
-drop view v1;
-create table t1 (a double);
-insert into t1 values (123.456);
-select concat(a) from t1;
-concat(a)
-123.456
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(22) YES NULL
-select hex(a) from v1;
-hex(a)
-3132332E343536
-drop table t1;
-drop view v1;
-create table t1 (a double zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(22) YES NULL
-select hex(a) from v1;
-hex(a)
-30303030303030303030303030303030303030312E31
-30303030303030303030303030303030303031302E31
-30303030303030303030303030303030303130302E31
-30303030303030303030303030303030313030302E31
-30303030303030303030303030303031303030302E31
-drop table t1;
-drop view v1;
-create table t1 (a year(2));
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(2) YES NULL
-select hex(a) from v1;
-hex(a)
-3031
-drop table t1;
-drop view v1;
-create table t1 (a year);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(4) YES NULL
-select hex(a) from v1;
-hex(a)
-32303031
-drop table t1;
-drop view v1;
-create table t1 (a bit(64));
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(64) YES NULL
-select hex(a) from v1;
-hex(a)
-0000000000000001
-drop table t1;
-drop view v1;
-create table t1 (a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values (0);
-insert into t1 values (20010203040506);
-insert into t1 values (19800203040506);
-insert into t1 values ('2001-02-03 04:05:06');
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(19) YES NULL
-select hex(a) from v1;
-hex(a)
-303030302D30302D30302030303A30303A3030
-323030312D30322D30332030343A30353A3036
-313938302D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-drop table t1;
-drop view v1;
-create table t1 (a date);
-insert into t1 values ('2001-02-03');
-insert into t1 values (20010203);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(10) YES NULL
-select hex(a) from v1;
-hex(a)
-323030312D30322D3033
-323030312D30322D3033
-drop table t1;
-drop view v1;
-create table t1 (a time);
-insert into t1 values (1);
-insert into t1 values ('01:02:03');
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(10) YES NULL
-select hex(a) from v1;
-hex(a)
-30303A30303A3031
-30313A30323A3033
-drop table t1;
-drop view v1;
-create table t1 (a datetime);
-insert into t1 values ('2001-02-03 04:05:06');
-insert into t1 values (20010203040506);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(19) YES NULL
-select hex(a) from v1;
-hex(a)
-323030312D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-drop table t1;
-drop view v1;
-create function f1 (par1 int) returns int
-begin
-return concat(par1);
-end|
-set @a= f1(1);
-select hex(@a);
-hex(@a)
-1
-select hex(concat(f1(1)));
-hex(concat(f1(1)))
-31
-create table t1 as select f1(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(1)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(11) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 decimal(18,2)) returns decimal(18,2)
-begin
-return concat(par1);
-end|
-set @a= f1(123.45);
-select hex(@a);
-hex(@a)
-7B
-select hex(concat(f1(123.45)));
-hex(concat(f1(123.45)))
-3132332E3435
-create table t1 as select f1(123.45) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` decimal(18,2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(123.45)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(123.45)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(20) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 float) returns float
-begin
-return concat(par1);
-end|
-set @a= f1(123.45);
-select hex(@a);
-hex(@a)
-7B
-select hex(concat(f1(123.45)));
-hex(concat(f1(123.45)))
-3132332E3435
-create table t1 as select f1(123.45) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` float DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(123.45)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(123.45)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(12) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 date) returns date
-begin
-return concat(par1);
-end|
-set @a= f1(cast('2001-01-02' as date));
-select hex(@a);
-hex(@a)
-323030312D30312D3032
-select hex(concat(f1(cast('2001-01-02' as date))));
-hex(concat(f1(cast('2001-01-02' as date))))
-323030312D30312D3032
-create table t1 as select f1(cast('2001-01-02' as date)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(cast('2001-01-02' as date))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(cast('2001-01-02' as date))) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(10) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-#
-# End of WL#2649 Number-to-string conversions
-#
-#
-# Bug#54668 User variable assignments get wrong type
-#
-SET @x=md5('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-cp1251 cp1251_general_ci
-SET @x=old_password('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-cp1251 cp1251_general_ci
-SET @x=password('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-cp1251 cp1251_general_ci
-SET @x=sha('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-cp1251 cp1251_general_ci
-SET @x=sha1('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-cp1251 cp1251_general_ci
-SET @x=astext(point(1,2));
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-cp1251 cp1251_general_ci
-SET @x=aswkt(point(1,2));
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-cp1251 cp1251_general_ci
-#
-# Bug#54916 GROUP_CONCAT + IFNULL truncates output
-#
-SELECT @@collation_connection;
-@@collation_connection
-cp1251_general_ci
-CREATE TABLE t1 (a MEDIUMINT NULL) ENGINE=MYISAM;
-INSERT INTO t1 VALUES (1234567);
-SELECT GROUP_CONCAT(IFNULL(a,'')) FROM t1;
-GROUP_CONCAT(IFNULL(a,''))
-1234567
-SELECT GROUP_CONCAT(IF(a,a,'')) FROM t1;
-GROUP_CONCAT(IF(a,a,''))
-1234567
-SELECT GROUP_CONCAT(CASE WHEN a THEN a ELSE '' END) FROM t1;
-GROUP_CONCAT(CASE WHEN a THEN a ELSE '' END)
-1234567
-SELECT COALESCE(a,'') FROM t1 GROUP BY 1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def COALESCE(a,'') 253 9 7 Y 0 39 51
-COALESCE(a,'')
-1234567
-# All columns must be VARCHAR(9) with the same length:
-CREATE TABLE t2 AS
-SELECT
-CONCAT(a),
-IFNULL(a,''),
-IF(a,a,''),
-CASE WHEN a THEN a ELSE '' END,
-COALESCE(a,'')
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT(a)` varchar(9) CHARACTER SET cp1251 DEFAULT NULL,
- `IFNULL(a,'')` varchar(9) CHARACTER SET cp1251 NOT NULL,
- `IF(a,a,'')` varchar(9) CHARACTER SET cp1251 DEFAULT NULL,
- `CASE WHEN a THEN a ELSE '' END` varchar(9) CHARACTER SET cp1251 DEFAULT NULL,
- `COALESCE(a,'')` varchar(9) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT CONCAT_WS(1,2,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT_WS(1,2,3)` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT INSERT(1133,3,0,22) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `INSERT(1133,3,0,22)` varchar(6) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LCASE(a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LCASE(a)` varchar(9) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT UCASE(a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `UCASE(a)` varchar(9) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT REPEAT(1,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `REPEAT(1,2)` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LEFT(123,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEFT(123,2)` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT RIGHT(123,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `RIGHT(123,2)` varchar(2) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LTRIM(123) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LTRIM(123)` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT RTRIM(123) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `RTRIM(123)` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT ELT(1,111,222,333) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ELT(1,111,222,333)` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT REPLACE(111,2,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `REPLACE(111,2,3)` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT SUBSTRING_INDEX(111,111,1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `SUBSTRING_INDEX(111,111,1)` varchar(3) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT MAKE_SET(111,222,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `MAKE_SET(111,222,3)` varchar(5) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT SOUNDEX(1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `SOUNDEX(1)` varchar(4) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT EXPORT_SET(1,'Y','N','',8);
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `EXPORT_SET(1,'Y','N','',8)` varchar(64) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# End of Bug#54916
-#
-#
-# Bug#58190 BETWEEN no longer uses indexes for date or datetime fields
-#
-SELECT @@collation_connection;
-@@collation_connection
-cp1251_general_ci
-CREATE TABLE t1 (
-id INT(11) DEFAULT NULL,
-date_column DATE DEFAULT NULL,
-KEY(date_column));
-INSERT INTO t1 VALUES (1,'2010-09-01'),(2,'2010-10-01');
-EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range date_column date_column 4 NULL 1 Using index condition
-ALTER TABLE t1 MODIFY date_column DATETIME DEFAULT NULL;
-EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range date_column date_column 6 NULL 1 Using index condition
-DROP TABLE t1;
-#
-# Bug #31384 DATE_ADD() and DATE_SUB() return binary data
-#
-SELECT @@collation_connection, @@character_set_results;
-@@collation_connection @@character_set_results
-cp1251_general_ci cp1251
-SELECT
-CHARSET(DATE_SUB('2007-08-03', INTERVAL 1 MINUTE)) AS field_str1,
-CHARSET(DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE)) AS field_str2,
-CHARSET(DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY)) AS field_date,
-CHARSET(DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE)) AS field_datetime;
-field_str1 field_str2 field_date field_datetime
-cp1251 cp1251 binary binary
-CREATE TABLE t1 AS
-SELECT
-DATE_SUB('2007-08-03', INTERVAL 1 MINUTE) AS field_str1,
-DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE) AS field1_str2,
-DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY) AS field_date,
-DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE) AS field_datetime;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `field_str1` varchar(19) CHARACTER SET cp1251 DEFAULT NULL,
- `field1_str2` varchar(19) CHARACTER SET cp1251 DEFAULT NULL,
- `field_date` date DEFAULT NULL,
- `field_datetime` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SELECT
-DATE_SUB('2007-08-03', INTERVAL 1 DAY) AS field_str1,
-DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE) AS field1_str2,
-DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY) AS field_date,
-DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE) AS field_datetime;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def field_str1 254 19 10 Y 0 0 51
-def field1_str2 254 19 19 Y 0 0 51
-def field_date 10 10 10 Y 128 0 63
-def field_datetime 12 19 19 Y 128 0 63
-field_str1 field1_str2 field_date field_datetime
-2007-08-02 2007-08-03 17:32:00 2007-08-02 2007-08-03 17:32:00
-SELECT
-HEX(DATE_SUB('2007-08-03', INTERVAL 1 MINUTE)) AS field_str1,
-HEX(DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE)) AS field1_str2,
-HEX(DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY)) AS field_date,
-HEX(DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE)) AS field_datetime;
-field_str1 field1_str2 field_date field_datetime
-323030372D30382D30322032333A35393A3030 323030372D30382D30332031373A33323A3030 323030372D30382D3032 323030372D30382D30332031373A33323A3030
-#
-# MDEV-4841 Wrong character set of ADDTIME() and DATE_ADD()
-#
-SELECT @@collation_connection, @@character_set_results;
-@@collation_connection @@character_set_results
-cp1251_general_ci cp1251
-SELECT
-CHARSET(ADDTIME(_latin1'10:01:01',_latin1'10:00:00')) AS addtime1,
-CHARSET(ADDTIME('10:01:01','10:00:00')) AS addtime2,
-CHARSET(DATE_ADD(_latin1'2001-01-01 10:01:01',interval 10 second)) AS date_add1,
-CHARSET(DATE_ADD('2001-01-01 10:01:01',interval 10 second)) AS date_add2;
-addtime1 addtime2 date_add1 date_add2
-cp1251 cp1251 cp1251 cp1251
-CREATE TABLE t1 AS
-SELECT
-ADDTIME(_latin1'10:01:01',_latin1'10:00:00') AS addtime1,
-ADDTIME('10:01:01','10:00:00') AS addtime2,
-DATE_ADD(_latin1'2001-01-01 10:01:01',interval 10 second) AS date_add1,
-DATE_ADD('2001-01-01 10:01:01',interval 10 second) AS date_add2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `addtime1` varchar(26) CHARACTER SET cp1251 DEFAULT NULL,
- `addtime2` varchar(26) CHARACTER SET cp1251 DEFAULT NULL,
- `date_add1` varchar(19) CHARACTER SET cp1251 DEFAULT NULL,
- `date_add2` varchar(19) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-addtime1 addtime2 date_add1 date_add2
-20:01:01 20:01:01 2001-01-01 10:01:11 2001-01-01 10:01:11
-DROP TABLE t1;
-#
-# Bug#11926811 / Bug#60625 Illegal mix of collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-cp1251_general_ci
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE v_LastPaymentDate DATETIME DEFAULT NULL;
-SELECT v_LastPaymentDate < NOW();
-EXPLAIN EXTENDED SELECT v_LastPaymentDate < NOW();
-SHOW WARNINGS;
-EXPLAIN EXTENDED SELECT CONCAT(v_LastPaymentDate, NOW());
-END//
-CALL p1;
-v_LastPaymentDate < NOW()
-NULL
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Level Code Message
-Note 1003 select v_LastPaymentDate@0 < current_timestamp() AS `v_LastPaymentDate < NOW()`
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select concat(convert(v_LastPaymentDate@0 using cp1251),current_timestamp()) AS `CONCAT(v_LastPaymentDate, NOW())`
-DROP PROCEDURE p1;
-#
-# Bug#52159 returning time type from function and empty left join causes debug assertion
-#
-CREATE FUNCTION f1() RETURNS TIME RETURN 1;
-CREATE TABLE t1 (b INT);
-INSERT INTO t1 VALUES (0);
-SELECT f1() FROM t1 LEFT JOIN (SELECT 1 AS a FROM t1 LIMIT 0) AS d ON 1 GROUP BY a;
-f1()
-00:00:01
-DROP FUNCTION f1;
-DROP TABLE t1;
-#
-# MDEV-9662 Assertion `precision || !scale' failed in my_decimal_precision_to_length_no_truncation(uint, uint8, bool)
-#
-SELECT @@collation_connection;
-@@collation_connection
-cp1251_general_ci
-SELECT CASE 1 WHEN 2 THEN ( - '3' ) END;
-CASE 1 WHEN 2 THEN ( - '3' ) END
-NULL
-#
-# MDEV-5702 Incorrect results are returned with NULLIF()
-#
-CREATE TABLE t1 (d DATE);
-INSERT INTO t1 VALUES ('1999-11-11'),('2014-02-04');
-SELECT DISTINCT d, CAST(d AS CHAR), NULLIF(d,"2000-01-01") AS bad, NULLIF(CAST(d AS CHAR),"2000-01-01") AS good FROM t1;
-d CAST(d AS CHAR) bad good
-1999-11-11 1999-11-11 1999-11-11 1999-11-11
-2014-02-04 2014-02-04 2014-02-04 2014-02-04
-CREATE TABLE t2 AS SELECT DISTINCT d, NULLIF(d,'2000-01-01') AS bad FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `d` date DEFAULT NULL,
- `bad` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1, t2;
-SET NAMES latin1;
-SET sql_mode='';
-CREATE TABLE t1(a char(215) CHARACTER SET utf8 NOT NULL DEFAULT '', KEY(a));
-INSERT INTO t1 VALUES ();
-SELECT maketime(`a`,`a`,`a`) FROM t1 GROUP BY 1;
-maketime(`a`,`a`,`a`)
-00:00:00.000000
-DROP TABLE t1;
-SET sql_mode=default;
-#
-# Bug#60101 COALESCE with cp1251 tables causes [Err] 1267 - Illegal mix of collations
-#
-CREATE TABLE t1 (test1 INT, test2 VARCHAR(255));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `test1` int(11) DEFAULT NULL,
- `test2` varchar(255) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT COALESCE(IF(test1=1, 1, NULL), test2) FROM t1;
-COALESCE(IF(test1=1, 1, NULL), test2)
-SELECT COALESCE(IF(test1=1, NULL, 1), test2) FROM t1;
-COALESCE(IF(test1=1, NULL, 1), test2)
-DROP TABLE t1;
-#
-# MDEV-5459 Illegal mix of collations for datetime
-#
-SET NAMES cp1251;
-CREATE TABLE t1 (dt DATETIME);
-INSERT INTO t1 VALUES ('2014-01-02 10:20:30');
-SELECT date(dt) FROM t1 WHERE (CASE WHEN 1 THEN date(dt) ELSE null END >= '2013-12-01 00:00:00');
-date(dt)
-2014-01-02
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8688 Wrong result for SELECT..WHERE varchar_column IN (1,2,3) AND varchar_column=' 1';
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET cp1251 COLLATE cp1251_ukrainian_ci);
-INSERT INTO t1 VALUES (' 1'),('`1');
-SELECT * FROM t1 WHERE a IN (1,2,3);
-a
- 1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '`1'
-SELECT * FROM t1 WHERE a IN (1,2,3) AND a=' 1';
-a
- 1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '`1'
-SELECT * FROM t1 WHERE a IN (1,2,3,'4') AND a=' 1';
-a
- 1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '`1'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a IN (1,2,3) AND a=' 1';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = ' 1' and `test`.`t1`.`a` in (1,2,3)
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a IN (1,2,3,'x') AND a=' 1';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = ' 1' and `test`.`t1`.`a` in (1,2,3,'x')
-DROP TABLE t1;
-#
-# MDEV-8671 Wrong result for SELECT..WHERE varchar_column=' 1' AND (varchar_column XOR '1')
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET cp1251 COLLATE cp1251_ukrainian_ci);
-INSERT INTO t1 VALUES (' 1'),('`1');
-SELECT * FROM t1 WHERE a=' 1';
-a
- 1
-`1
-SELECT * FROM t1 WHERE (a XOR '0');
-a
- 1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '`1'
-SELECT * FROM t1 WHERE a=' 1' AND (a XOR '0');
-a
- 1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '`1'
-# ' 1' should not be propagated into (a XIR '0')
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=' 1' AND (a XOR '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = ' 1' and (`test`.`t1`.`a` xor '0')
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
diff --git a/mysql-test/r/ctype_cp850.result b/mysql-test/r/ctype_cp850.result
deleted file mode 100644
index c028f72b58a..00000000000
--- a/mysql-test/r/ctype_cp850.result
+++ /dev/null
@@ -1,14 +0,0 @@
-#
-# Start of 5.5 tests
-#
-#
-# MDEV-9862 Illegal mix of collation, when comparing column with CASE expression
-#
-SET NAMES cp850;
-CREATE TABLE t1 (a CHAR(1) CHARACTER SET latin1);
-SELECT a FROM t1 WHERE CASE a WHEN 'aaaa' THEN 'Y' WHEN 'aaaa' THEN 'Y' ELSE NULL END <> a;
-a
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
diff --git a/mysql-test/r/ctype_cp932.result b/mysql-test/r/ctype_cp932.result
deleted file mode 100644
index eb714e9f8d7..00000000000
--- a/mysql-test/r/ctype_cp932.result
+++ /dev/null
@@ -1,599 +0,0 @@
-#
-# Bug #11755818 LIKE DOESN'T MATCH WHEN CP932_BIN/SJIS_BIN COLLATIONS ARE
-# USED.
-#
-SET @old_character_set_client= @@character_set_client;
-SET @old_character_set_connection= @@character_set_connection;
-SET @old_character_set_results= @@character_set_results;
-SET character_set_client= 'utf8';
-SET character_set_connection= 'utf8';
-SET character_set_results= 'utf8';
-CREATE TABLE t1 (a VARCHAR(10) COLLATE cp932_bin);
-INSERT INTO t1 VALUES('カカ');
-SELECT * FROM t1 WHERE a LIKE '%カ';
-a
-カカ
-SELECT * FROM t1 WHERE a LIKE '_カ';
-a
-カカ
-SELECT * FROM t1 WHERE a LIKE '%_カ';
-a
-カカ
-ALTER TABLE t1 MODIFY a VARCHAR(100) COLLATE sjis_bin;
-SELECT * FROM t1 WHERE a LIKE '%カ';
-a
-カカ
-SELECT * FROM t1 WHERE a LIKE '_カ';
-a
-カカ
-SELECT * FROM t1 WHERE a LIKE '%_カ';
-a
-カカ
-DROP TABLE t1;
-SET @@character_set_client= @old_character_set_client;
-SET @@character_set_connection= @old_character_set_connection;
-SET @@character_set_results= @old_character_set_results;
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=cp932;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp932_japanese_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp932_japanese_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp932 COLLATE=cp932_japanese_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp932_japanese_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp932_japanese_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp932_japanese_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp932_japanese_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp932_japanese_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp932_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp932_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp932_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp932_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp932_japanese_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp932_japanese_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp932_japanese_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp932_japanese_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp932_japanese_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_japanese_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp932_japanese_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_japanese_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp932_japanese_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp932_japanese_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp932 COLLATE=cp932_japanese_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp932_japanese_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp932_japanese_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp932_japanese_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp932_japanese_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp932_japanese_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp932_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp932_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp932_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp932_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp932_japanese_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp932_japanese_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp932_japanese_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp932_japanese_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp932_japanese_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_japanese_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp932_japanese_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_japanese_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp932_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp932_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp932 COLLATE=cp932_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp932_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp932_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp932_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp932_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp932_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp932_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp932_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp932_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp932_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp932_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp932_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp932_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp932_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp932_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp932_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp932_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp932_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp932 COLLATE=cp932_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp932_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp932_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp932_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp932_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp932_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp932_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp932_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp932_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp932_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp932_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp932_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp932_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp932_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp932_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp932_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp932_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_cp932_binlog_row.result b/mysql-test/r/ctype_cp932_binlog_row.result
deleted file mode 100644
index b42489677f0..00000000000
--- a/mysql-test/r/ctype_cp932_binlog_row.result
+++ /dev/null
@@ -1,21 +0,0 @@
-drop table if exists t1;
-set names cp932;
-set character_set_database = cp932;
-RESET MASTER;
-CREATE TABLE t1(f1 blob);
-PREPARE stmt1 FROM 'INSERT INTO t1 VALUES(?)';
-SET @var1= x'8300';
-EXECUTE stmt1 USING @var1;
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; CREATE TABLE t1(f1 blob)
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Annotate_rows # # INSERT INTO t1 VALUES(X'8300')
-master-bin.000001 # Table_map # # table_id: # (test.t1)
-master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
-master-bin.000001 # Query # # COMMIT
-SELECT HEX(f1) FROM t1;
-HEX(f1)
-8300
-DROP table t1;
diff --git a/mysql-test/r/ctype_cp932_binlog_stm.result b/mysql-test/r/ctype_cp932_binlog_stm.result
deleted file mode 100644
index f49400b63ff..00000000000
--- a/mysql-test/r/ctype_cp932_binlog_stm.result
+++ /dev/null
@@ -1,20458 +0,0 @@
-drop table if exists t1;
-set names cp932;
-set character_set_database = cp932;
-RESET MASTER;
-CREATE TABLE t1(f1 blob);
-PREPARE stmt1 FROM 'INSERT INTO t1 VALUES(?)';
-SET @var1= x'8300';
-EXECUTE stmt1 USING @var1;
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; CREATE TABLE t1(f1 blob)
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES(X'8300')
-master-bin.000001 # Query # # COMMIT
-SELECT HEX(f1) FROM t1;
-HEX(f1)
-8300
-DROP table t1;
-call mtr.add_suppression('Error in Log_event::read_log_event()');
-CREATE TABLE t4 (s1 CHAR(50) CHARACTER SET latin1,
-s2 CHAR(50) CHARACTER SET cp932,
-d DECIMAL(10,2))|
-CREATE PROCEDURE bug18293 (IN ins1 CHAR(50),
-IN ins2 CHAR(50) CHARACTER SET cp932,
-IN ind DECIMAL(10,2))
-BEGIN
-INSERT INTO t4 VALUES (ins1, ins2, ind);
-END|
-CALL bug18293("Foo's a Bar", _cp932 0xED40ED41ED42, 47.93)|
-SELECT HEX(s1),HEX(s2),d FROM t4|
-HEX(s1) HEX(s2) d
-466F6F2773206120426172 ED40ED41ED42 47.93
-DROP PROCEDURE bug18293|
-DROP TABLE t4|
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; CREATE TABLE t4 (s1 CHAR(50) CHARACTER SET latin1,
-s2 CHAR(50) CHARACTER SET cp932,
-d DECIMAL(10,2))
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` PROCEDURE `bug18293`(IN ins1 CHAR(50),
-IN ins2 CHAR(50) CHARACTER SET cp932,
-IN ind DECIMAL(10,2))
-BEGIN
-INSERT INTO t4 VALUES (ins1, ins2, ind);
-END
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; INSERT INTO t4 VALUES ( NAME_CONST('ins1',_latin1 X'466F6F2773206120426172' COLLATE 'latin1_swedish_ci'), NAME_CONST('ins2',_cp932 X'ED40ED41ED42' COLLATE 'cp932_japanese_ci'), NAME_CONST('ind',47.93))
-master-bin.000001 # Query # # COMMIT
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; DROP PROCEDURE bug18293
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; DROP TABLE `t4` /* generated by server */
-End of 5.0 tests
-call mtr.add_suppression("Error in Log_event::read_log_event\\\(\\\): 'Found invalid");
-SHOW BINLOG EVENTS FROM 504;
-ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Wrong offset or I/O error
-Bug#44352 UPPER/LOWER function doesn't work correctly on cp932 and sjis environment.
-CREATE TABLE t1 (a varchar(16)) character set cp932;
-INSERT INTO t1 VALUES (0x8372835E),(0x8352835E);
-SELECT hex(a), hex(lower(a)), hex(upper(a)) FROM t1 ORDER BY binary(a);
-hex(a) hex(lower(a)) hex(upper(a))
-8352835E 8352835E 8352835E
-8372835E 8372835E 8372835E
-DROP TABLE t1;
-End of 5.1 tests
-#
-# Start of 5.5 tests
-#
-#
-# Testing WL#4583 Case conversion in Asian character sets
-#
-SET NAMES utf8;
-SET collation_connection=cp932_japanese_ci;
-CREATE TABLE t1 (b VARCHAR(2));
-INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
-INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
-CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
-DROP TABLE t1;
-CREATE TABLE t1 AS
-SELECT concat(head, tail) AS code, ' ' AS a
-FROM head, tail
-WHERE (head BETWEEN '80' AND 'FF') AND (head NOT BETWEEN 'A1' AND 'DF')
-AND (tail BETWEEN '20' AND 'FF')
-ORDER BY head, tail;
-INSERT IGNORE t1 (code) SELECT head FROM head
-WHERE (head BETWEEN 'A1' AND 'DF')
-ORDER BY head;
-DROP TEMPORARY TABLE head, tail;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `code` varchar(8) DEFAULT NULL,
- `a` varchar(1) CHARACTER SET cp932 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
-Warnings:
-Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
-Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
-Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
-Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
-Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
-Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
-Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
-Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
-Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
-Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
-Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
-Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
-Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
-Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
-Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
-Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
-Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
-Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
-Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
-Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
-Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
-Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
-Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
-Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
-Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
-Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
-Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
-Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
-Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
-Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
-Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
-Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
-Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
-Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
-Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
-Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
-Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
-Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
-Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
-Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
-Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
-Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
-Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
-Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
-Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
-Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
-Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
-Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
-Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
-Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
-Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
-Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
-Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
-Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
-Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
-Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
-Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
-Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
-Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
-Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
-Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
-Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
-Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-14623
-SELECT COUNT(*) FROM t1 WHERE a<>'?' AND OCTET_LENGTH(a)=1;
-COUNT(*)
-63
-SELECT COUNT(*) FROM t1 WHERE a<>'' AND OCTET_LENGTH(a)=2;
-COUNT(*)
-11280
-SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a) FROM t1
-WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a))
-ORDER BY code;
-code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
-8260 8260 8281 A A ï½
-8261 8261 8282 B B b
-8262 8262 8283 C C c
-8263 8263 8284 D D d
-8264 8264 8285 ï¼¥ ï¼¥ ï½…
-8265 8265 8286 F F f
-8266 8266 8287 G G g
-8267 8267 8288 H H h
-8268 8268 8289 I I i
-8269 8269 828A J J j
-826A 826A 828B K K k
-826B 826B 828C L L l
-826C 826C 828D ï¼­ ï¼­ ï½
-826D 826D 828E N N n
-826E 826E 828F O O ï½
-826F 826F 8290 ï¼° ï¼° ï½
-8270 8270 8291 Q Q q
-8271 8271 8292 ï¼² ï¼² ï½’
-8272 8272 8293 S S s
-8273 8273 8294 ï¼´ ï¼´ ï½”
-8274 8274 8295 U U u
-8275 8275 8296 V V v
-8276 8276 8297 ï¼· ï¼· ï½—
-8277 8277 8298 X X x
-8278 8278 8299 ï¼¹ ï¼¹ ï½™
-8279 8279 829A Z Z z
-8281 8260 8281 ï½ ï¼¡ ï½
-8282 8261 8282 b B b
-8283 8262 8283 c C c
-8284 8263 8284 d D d
-8285 8264 8285 ï½… ï¼¥ ï½…
-8286 8265 8286 f F f
-8287 8266 8287 g G g
-8288 8267 8288 h H h
-8289 8268 8289 i I i
-828A 8269 828A j J j
-828B 826A 828B k K k
-828C 826B 828C l L l
-828D 826C 828D ï½ ï¼­ ï½
-828E 826D 828E n N n
-828F 826E 828F ï½ ï¼¯ ï½
-8290 826F 8290 ï½ ï¼° ï½
-8291 8270 8291 q Q q
-8292 8271 8292 ï½’ ï¼² ï½’
-8293 8272 8293 s S s
-8294 8273 8294 ï½” ï¼´ ï½”
-8295 8274 8295 u U u
-8296 8275 8296 v V v
-8297 8276 8297 ï½— ï¼· ï½—
-8298 8277 8298 x X x
-8299 8278 8299 ï½™ ï¼¹ ï½™
-829A 8279 829A z Z z
-839F 839F 83BF Α Α α
-83A0 83A0 83C0 Β Β β
-83A1 83A1 83C1 Γ Γ γ
-83A2 83A2 83C2 Δ Δ δ
-83A3 83A3 83C3 Ε Ε ε
-83A4 83A4 83C4 Ζ Ζ ζ
-83A5 83A5 83C5 Η Η η
-83A6 83A6 83C6 Θ Θ θ
-83A7 83A7 83C7 Ι Ι ι
-83A8 83A8 83C8 Κ Κ κ
-83A9 83A9 83C9 Λ Λ λ
-83AA 83AA 83CA Μ Μ μ
-83AB 83AB 83CB ΠΠν
-83AC 83AC 83CC Ξ Ξ ξ
-83AD 83AD 83CD Ο Ο ο
-83AE 83AE 83CE Π Π π
-83AF 83AF 83CF Ρ Ρ Ï
-83B0 83B0 83D0 Σ Σ σ
-83B1 83B1 83D1 Τ Τ τ
-83B2 83B2 83D2 Υ Υ υ
-83B3 83B3 83D3 Φ Φ φ
-83B4 83B4 83D4 Χ Χ χ
-83B5 83B5 83D5 Ψ Ψ ψ
-83B6 83B6 83D6 Ω Ω ω
-83BF 839F 83BF α Α α
-83C0 83A0 83C0 β Β β
-83C1 83A1 83C1 γ Γ γ
-83C2 83A2 83C2 δ Δ δ
-83C3 83A3 83C3 ε Ε ε
-83C4 83A4 83C4 ζ Ζ ζ
-83C5 83A5 83C5 η Η η
-83C6 83A6 83C6 θ Θ θ
-83C7 83A7 83C7 ι Ι ι
-83C8 83A8 83C8 κ Κ κ
-83C9 83A9 83C9 λ Λ λ
-83CA 83AA 83CA μ Μ μ
-83CB 83AB 83CB ν Πν
-83CC 83AC 83CC ξ Ξ ξ
-83CD 83AD 83CD ο Ο ο
-83CE 83AE 83CE π Π π
-83CF 83AF 83CF Ï Î¡ Ï
-83D0 83B0 83D0 σ Σ σ
-83D1 83B1 83D1 τ Τ τ
-83D2 83B2 83D2 υ Υ υ
-83D3 83B3 83D3 φ Φ φ
-83D4 83B4 83D4 χ Χ χ
-83D5 83B5 83D5 ψ Ψ ψ
-83D6 83B6 83D6 ω Ω ω
-8440 8440 8470 РРа
-8441 8441 8471 Б Б б
-8442 8442 8472 В В в
-8443 8443 8473 Г Г г
-8444 8444 8474 Д Д д
-8445 8445 8475 Е Е е
-8446 8446 8476 Ð Ð Ñ‘
-8447 8447 8477 Ж Ж ж
-8448 8448 8478 З З з
-8449 8449 8479 И И и
-844A 844A 847A Й Й й
-844B 844B 847B К К к
-844C 844C 847C Л Л л
-844D 844D 847D М М м
-844E 844E 847E РРн
-844F 844F 8480 О О о
-8450 8450 8481 П П п
-8451 8451 8482 Р Р р
-8452 8452 8483 С С Ñ
-8453 8453 8484 Т Т т
-8454 8454 8485 У У у
-8455 8455 8486 Ф Ф ф
-8456 8456 8487 Х Х х
-8457 8457 8488 Ц Ц ц
-8458 8458 8489 Ч Ч ч
-8459 8459 848A Ш Ш ш
-845A 845A 848B Щ Щ щ
-845B 845B 848C Ъ Ъ ъ
-845C 845C 848D Ы Ы ы
-845D 845D 848E Ь Ь ь
-845E 845E 848F Э Э Ñ
-845F 845F 8490 Ю Ю ю
-8460 8460 8491 Я Я Ñ
-8470 8440 8470 а Ра
-8471 8441 8471 б Б б
-8472 8442 8472 в В в
-8473 8443 8473 г Г г
-8474 8444 8474 д Д д
-8475 8445 8475 е Е е
-8476 8446 8476 Ñ‘ Ð Ñ‘
-8477 8447 8477 ж Ж ж
-8478 8448 8478 з З з
-8479 8449 8479 и И и
-847A 844A 847A й Й й
-847B 844B 847B к К к
-847C 844C 847C л Л л
-847D 844D 847D м М м
-847E 844E 847E н Рн
-8480 844F 8480 о О о
-8481 8450 8481 п П п
-8482 8451 8482 р Р р
-8483 8452 8483 Ñ Ð¡ Ñ
-8484 8453 8484 т Т т
-8485 8454 8485 у У у
-8486 8455 8486 ф Ф ф
-8487 8456 8487 х Х х
-8488 8457 8488 ц Ц ц
-8489 8458 8489 ч Ч ч
-848A 8459 848A ш Ш ш
-848B 845A 848B щ Щ щ
-848C 845B 848C ъ Ъ ъ
-848D 845C 848D ы Ы ы
-848E 845D 848E ь Ь ь
-848F 845E 848F Ñ Ð­ Ñ
-8490 845F 8490 ю Ю ю
-8491 8460 8491 Ñ Ð¯ Ñ
-8754 8754 EEEF â…  â…  â…°
-8755 8755 EEF0 â…¡ â…¡ â…±
-8756 8756 EEF1 â…¢ â…¢ â…²
-8757 8757 EEF2 â…£ â…£ â…³
-8758 8758 EEF3 â…¤ â…¤ â…´
-8759 8759 EEF4 â…¥ â…¥ â…µ
-875A 875A EEF5 â…¦ â…¦ â…¶
-875B 875B EEF6 â…§ â…§ â…·
-875C 875C EEF7 â…¨ â…¨ â…¸
-875D 875D EEF8 â…© â…© â…¹
-EEEF 8754 EEEF â…° â…  â…°
-EEF0 8755 EEF0 â…± â…¡ â…±
-EEF1 8756 EEF1 â…² â…¢ â…²
-EEF2 8757 EEF2 â…³ â…£ â…³
-EEF3 8758 EEF3 â…´ â…¤ â…´
-EEF4 8759 EEF4 â…µ â…¥ â…µ
-EEF5 875A EEF5 â…¶ â…¦ â…¶
-EEF6 875B EEF6 â…· â…§ â…·
-EEF7 875C EEF7 â…¸ â…¨ â…¸
-EEF8 875D EEF8 â…¹ â…© â…¹
-FA40 FA4A FA40 â…° â…  â…°
-FA41 FA4B FA41 â…± â…¡ â…±
-FA42 FA4C FA42 â…² â…¢ â…²
-FA43 FA4D FA43 â…³ â…£ â…³
-FA44 FA4E FA44 â…´ â…¤ â…´
-FA45 FA4F FA45 â…µ â…¥ â…µ
-FA46 FA50 FA46 â…¶ â…¦ â…¶
-FA47 FA51 FA47 â…· â…§ â…·
-FA48 FA52 FA48 â…¸ â…¨ â…¸
-FA49 FA53 FA49 â…¹ â…© â…¹
-FA4A FA4A FA40 â…  â…  â…°
-FA4B FA4B FA41 â…¡ â…¡ â…±
-FA4C FA4C FA42 â…¢ â…¢ â…²
-FA4D FA4D FA43 â…£ â…£ â…³
-FA4E FA4E FA44 â…¤ â…¤ â…´
-FA4F FA4F FA45 â…¥ â…¥ â…µ
-FA50 FA50 FA46 â…¦ â…¦ â…¶
-FA51 FA51 FA47 â…§ â…§ â…·
-FA52 FA52 FA48 â…¨ â…¨ â…¸
-FA53 FA53 FA49 â…© â…© â…¹
-SELECT * FROM t1
-WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-81F0 â„«
-Warnings:
-Warning 1977 Cannot convert 'cp932' character 0x81AD to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81AD to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81AE to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81AE to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81AF to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81AF to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81CF to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81CF to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D8 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D8 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D9 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D9 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81E9 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81E9 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81EA to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81EA to 'utf8'
-SELECT * FROM t1
-WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-Warnings:
-Warning 1977 Cannot convert 'cp932' character 0x81AD to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81AD to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81AE to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81AE to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81AF to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81AF to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81CF to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81CF to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D8 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D8 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D9 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D9 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81E9 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81E9 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81EA to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81EA to 'utf8'
-#
-# WL#3090 Japanese Character Set adjustments
-# Test cp932->Unicode conversion
-#
-SELECT HEX(a), HEX(CONVERT(a USING utf8)) as b FROM t1
-WHERE a<>'' HAVING b<>'3F' ORDER BY code;
-HEX(a) b
-8140 E38080
-8141 E38081
-8142 E38082
-8143 EFBC8C
-8144 EFBC8E
-8145 E383BB
-8146 EFBC9A
-8147 EFBC9B
-8148 EFBC9F
-8149 EFBC81
-814A E3829B
-814B E3829C
-814C C2B4
-814D EFBD80
-814E C2A8
-814F EFBCBE
-8150 EFBFA3
-8151 EFBCBF
-8152 E383BD
-8153 E383BE
-8154 E3829D
-8155 E3829E
-8156 E38083
-8157 E4BB9D
-8158 E38085
-8159 E38086
-815A E38087
-815B E383BC
-815C E28095
-815D E28090
-815E EFBC8F
-815F EFBCBC
-8160 EFBD9E
-8161 E288A5
-8162 EFBD9C
-8163 E280A6
-8164 E280A5
-8165 E28098
-8166 E28099
-8167 E2809C
-8168 E2809D
-8169 EFBC88
-816A EFBC89
-816B E38094
-816C E38095
-816D EFBCBB
-816E EFBCBD
-816F EFBD9B
-8170 EFBD9D
-8171 E38088
-8172 E38089
-8173 E3808A
-8174 E3808B
-8175 E3808C
-8176 E3808D
-8177 E3808E
-8178 E3808F
-8179 E38090
-817A E38091
-817B EFBC8B
-817C EFBC8D
-817D C2B1
-817E C397
-8180 C3B7
-8181 EFBC9D
-8182 E289A0
-8183 EFBC9C
-8184 EFBC9E
-8185 E289A6
-8186 E289A7
-8187 E2889E
-8188 E288B4
-8189 E29982
-818A E29980
-818B C2B0
-818C E280B2
-818D E280B3
-818E E28483
-818F EFBFA5
-8190 EFBC84
-8191 EFBFA0
-8192 EFBFA1
-8193 EFBC85
-8194 EFBC83
-8195 EFBC86
-8196 EFBC8A
-8197 EFBCA0
-8198 C2A7
-8199 E29886
-819A E29885
-819B E2978B
-819C E2978F
-819D E2978E
-819E E29787
-819F E29786
-81A0 E296A1
-81A1 E296A0
-81A2 E296B3
-81A3 E296B2
-81A4 E296BD
-81A5 E296BC
-81A6 E280BB
-81A7 E38092
-81A8 E28692
-81A9 E28690
-81AA E28691
-81AB E28693
-81AC E38093
-81B8 E28888
-81B9 E2888B
-81BA E28A86
-81BB E28A87
-81BC E28A82
-81BD E28A83
-81BE E288AA
-81BF E288A9
-81C8 E288A7
-81C9 E288A8
-81CA EFBFA2
-81CB E28792
-81CC E28794
-81CD E28880
-81CE E28883
-81DA E288A0
-81DB E28AA5
-81DC E28C92
-81DD E28882
-81DE E28887
-81DF E289A1
-81E0 E28992
-81E1 E289AA
-81E2 E289AB
-81E3 E2889A
-81E4 E288BD
-81E5 E2889D
-81E6 E288B5
-81E7 E288AB
-81E8 E288AC
-81F0 E284AB
-81F1 E280B0
-81F2 E299AF
-81F3 E299AD
-81F4 E299AA
-81F5 E280A0
-81F6 E280A1
-81F7 C2B6
-81FC E297AF
-824F EFBC90
-8250 EFBC91
-8251 EFBC92
-8252 EFBC93
-8253 EFBC94
-8254 EFBC95
-8255 EFBC96
-8256 EFBC97
-8257 EFBC98
-8258 EFBC99
-8260 EFBCA1
-8261 EFBCA2
-8262 EFBCA3
-8263 EFBCA4
-8264 EFBCA5
-8265 EFBCA6
-8266 EFBCA7
-8267 EFBCA8
-8268 EFBCA9
-8269 EFBCAA
-826A EFBCAB
-826B EFBCAC
-826C EFBCAD
-826D EFBCAE
-826E EFBCAF
-826F EFBCB0
-8270 EFBCB1
-8271 EFBCB2
-8272 EFBCB3
-8273 EFBCB4
-8274 EFBCB5
-8275 EFBCB6
-8276 EFBCB7
-8277 EFBCB8
-8278 EFBCB9
-8279 EFBCBA
-8281 EFBD81
-8282 EFBD82
-8283 EFBD83
-8284 EFBD84
-8285 EFBD85
-8286 EFBD86
-8287 EFBD87
-8288 EFBD88
-8289 EFBD89
-828A EFBD8A
-828B EFBD8B
-828C EFBD8C
-828D EFBD8D
-828E EFBD8E
-828F EFBD8F
-8290 EFBD90
-8291 EFBD91
-8292 EFBD92
-8293 EFBD93
-8294 EFBD94
-8295 EFBD95
-8296 EFBD96
-8297 EFBD97
-8298 EFBD98
-8299 EFBD99
-829A EFBD9A
-829F E38181
-82A0 E38182
-82A1 E38183
-82A2 E38184
-82A3 E38185
-82A4 E38186
-82A5 E38187
-82A6 E38188
-82A7 E38189
-82A8 E3818A
-82A9 E3818B
-82AA E3818C
-82AB E3818D
-82AC E3818E
-82AD E3818F
-82AE E38190
-82AF E38191
-82B0 E38192
-82B1 E38193
-82B2 E38194
-82B3 E38195
-82B4 E38196
-82B5 E38197
-82B6 E38198
-82B7 E38199
-82B8 E3819A
-82B9 E3819B
-82BA E3819C
-82BB E3819D
-82BC E3819E
-82BD E3819F
-82BE E381A0
-82BF E381A1
-82C0 E381A2
-82C1 E381A3
-82C2 E381A4
-82C3 E381A5
-82C4 E381A6
-82C5 E381A7
-82C6 E381A8
-82C7 E381A9
-82C8 E381AA
-82C9 E381AB
-82CA E381AC
-82CB E381AD
-82CC E381AE
-82CD E381AF
-82CE E381B0
-82CF E381B1
-82D0 E381B2
-82D1 E381B3
-82D2 E381B4
-82D3 E381B5
-82D4 E381B6
-82D5 E381B7
-82D6 E381B8
-82D7 E381B9
-82D8 E381BA
-82D9 E381BB
-82DA E381BC
-82DB E381BD
-82DC E381BE
-82DD E381BF
-82DE E38280
-82DF E38281
-82E0 E38282
-82E1 E38283
-82E2 E38284
-82E3 E38285
-82E4 E38286
-82E5 E38287
-82E6 E38288
-82E7 E38289
-82E8 E3828A
-82E9 E3828B
-82EA E3828C
-82EB E3828D
-82EC E3828E
-82ED E3828F
-82EE E38290
-82EF E38291
-82F0 E38292
-82F1 E38293
-8340 E382A1
-8341 E382A2
-8342 E382A3
-8343 E382A4
-8344 E382A5
-8345 E382A6
-8346 E382A7
-8347 E382A8
-8348 E382A9
-8349 E382AA
-834A E382AB
-834B E382AC
-834C E382AD
-834D E382AE
-834E E382AF
-834F E382B0
-8350 E382B1
-8351 E382B2
-8352 E382B3
-8353 E382B4
-8354 E382B5
-8355 E382B6
-8356 E382B7
-8357 E382B8
-8358 E382B9
-8359 E382BA
-835A E382BB
-835B E382BC
-835C E382BD
-835D E382BE
-835E E382BF
-835F E38380
-8360 E38381
-8361 E38382
-8362 E38383
-8363 E38384
-8364 E38385
-8365 E38386
-8366 E38387
-8367 E38388
-8368 E38389
-8369 E3838A
-836A E3838B
-836B E3838C
-836C E3838D
-836D E3838E
-836E E3838F
-836F E38390
-8370 E38391
-8371 E38392
-8372 E38393
-8373 E38394
-8374 E38395
-8375 E38396
-8376 E38397
-8377 E38398
-8378 E38399
-8379 E3839A
-837A E3839B
-837B E3839C
-837C E3839D
-837D E3839E
-837E E3839F
-8380 E383A0
-8381 E383A1
-8382 E383A2
-8383 E383A3
-8384 E383A4
-8385 E383A5
-8386 E383A6
-8387 E383A7
-8388 E383A8
-8389 E383A9
-838A E383AA
-838B E383AB
-838C E383AC
-838D E383AD
-838E E383AE
-838F E383AF
-8390 E383B0
-8391 E383B1
-8392 E383B2
-8393 E383B3
-8394 E383B4
-8395 E383B5
-8396 E383B6
-839F CE91
-83A0 CE92
-83A1 CE93
-83A2 CE94
-83A3 CE95
-83A4 CE96
-83A5 CE97
-83A6 CE98
-83A7 CE99
-83A8 CE9A
-83A9 CE9B
-83AA CE9C
-83AB CE9D
-83AC CE9E
-83AD CE9F
-83AE CEA0
-83AF CEA1
-83B0 CEA3
-83B1 CEA4
-83B2 CEA5
-83B3 CEA6
-83B4 CEA7
-83B5 CEA8
-83B6 CEA9
-83BF CEB1
-83C0 CEB2
-83C1 CEB3
-83C2 CEB4
-83C3 CEB5
-83C4 CEB6
-83C5 CEB7
-83C6 CEB8
-83C7 CEB9
-83C8 CEBA
-83C9 CEBB
-83CA CEBC
-83CB CEBD
-83CC CEBE
-83CD CEBF
-83CE CF80
-83CF CF81
-83D0 CF83
-83D1 CF84
-83D2 CF85
-83D3 CF86
-83D4 CF87
-83D5 CF88
-83D6 CF89
-8440 D090
-8441 D091
-8442 D092
-8443 D093
-8444 D094
-8445 D095
-8446 D081
-8447 D096
-8448 D097
-8449 D098
-844A D099
-844B D09A
-844C D09B
-844D D09C
-844E D09D
-844F D09E
-8450 D09F
-8451 D0A0
-8452 D0A1
-8453 D0A2
-8454 D0A3
-8455 D0A4
-8456 D0A5
-8457 D0A6
-8458 D0A7
-8459 D0A8
-845A D0A9
-845B D0AA
-845C D0AB
-845D D0AC
-845E D0AD
-845F D0AE
-8460 D0AF
-8470 D0B0
-8471 D0B1
-8472 D0B2
-8473 D0B3
-8474 D0B4
-8475 D0B5
-8476 D191
-8477 D0B6
-8478 D0B7
-8479 D0B8
-847A D0B9
-847B D0BA
-847C D0BB
-847D D0BC
-847E D0BD
-8480 D0BE
-8481 D0BF
-8482 D180
-8483 D181
-8484 D182
-8485 D183
-8486 D184
-8487 D185
-8488 D186
-8489 D187
-848A D188
-848B D189
-848C D18A
-848D D18B
-848E D18C
-848F D18D
-8490 D18E
-8491 D18F
-849F E29480
-84A0 E29482
-84A1 E2948C
-84A2 E29490
-84A3 E29498
-84A4 E29494
-84A5 E2949C
-84A6 E294AC
-84A7 E294A4
-84A8 E294B4
-84A9 E294BC
-84AA E29481
-84AB E29483
-84AC E2948F
-84AD E29493
-84AE E2949B
-84AF E29497
-84B0 E294A3
-84B1 E294B3
-84B2 E294AB
-84B3 E294BB
-84B4 E2958B
-84B5 E294A0
-84B6 E294AF
-84B7 E294A8
-84B8 E294B7
-84B9 E294BF
-84BA E2949D
-84BB E294B0
-84BC E294A5
-84BD E294B8
-84BE E29582
-8740 E291A0
-8741 E291A1
-8742 E291A2
-8743 E291A3
-8744 E291A4
-8745 E291A5
-8746 E291A6
-8747 E291A7
-8748 E291A8
-8749 E291A9
-874A E291AA
-874B E291AB
-874C E291AC
-874D E291AD
-874E E291AE
-874F E291AF
-8750 E291B0
-8751 E291B1
-8752 E291B2
-8753 E291B3
-8754 E285A0
-8755 E285A1
-8756 E285A2
-8757 E285A3
-8758 E285A4
-8759 E285A5
-875A E285A6
-875B E285A7
-875C E285A8
-875D E285A9
-875F E38D89
-8760 E38C94
-8761 E38CA2
-8762 E38D8D
-8763 E38C98
-8764 E38CA7
-8765 E38C83
-8766 E38CB6
-8767 E38D91
-8768 E38D97
-8769 E38C8D
-876A E38CA6
-876B E38CA3
-876C E38CAB
-876D E38D8A
-876E E38CBB
-876F E38E9C
-8770 E38E9D
-8771 E38E9E
-8772 E38E8E
-8773 E38E8F
-8774 E38F84
-8775 E38EA1
-877E E38DBB
-8780 E3809D
-8781 E3809F
-8782 E28496
-8783 E38F8D
-8784 E284A1
-8785 E38AA4
-8786 E38AA5
-8787 E38AA6
-8788 E38AA7
-8789 E38AA8
-878A E388B1
-878B E388B2
-878C E388B9
-878D E38DBE
-878E E38DBD
-878F E38DBC
-8790 E28992
-8791 E289A1
-8792 E288AB
-8793 E288AE
-8794 E28891
-8795 E2889A
-8796 E28AA5
-8797 E288A0
-8798 E2889F
-8799 E28ABF
-879A E288B5
-879B E288A9
-879C E288AA
-889F E4BA9C
-88A0 E59496
-88A1 E5A883
-88A2 E998BF
-88A3 E59380
-88A4 E6849B
-88A5 E68CA8
-88A6 E5A7B6
-88A7 E980A2
-88A8 E891B5
-88A9 E88C9C
-88AA E7A990
-88AB E682AA
-88AC E68FA1
-88AD E6B8A5
-88AE E697AD
-88AF E891A6
-88B0 E88AA6
-88B1 E9AFB5
-88B2 E6A293
-88B3 E59CA7
-88B4 E696A1
-88B5 E689B1
-88B6 E5AE9B
-88B7 E5A790
-88B8 E899BB
-88B9 E9A3B4
-88BA E7B5A2
-88BB E7B6BE
-88BC E9AE8E
-88BD E68896
-88BE E7B29F
-88BF E8A2B7
-88C0 E5AE89
-88C1 E5BAB5
-88C2 E68C89
-88C3 E69A97
-88C4 E6A188
-88C5 E99787
-88C6 E99E8D
-88C7 E69D8F
-88C8 E4BBA5
-88C9 E4BC8A
-88CA E4BD8D
-88CB E4BE9D
-88CC E58189
-88CD E59BB2
-88CE E5A4B7
-88CF E5A794
-88D0 E5A881
-88D1 E5B089
-88D2 E6839F
-88D3 E6848F
-88D4 E685B0
-88D5 E69893
-88D6 E6A485
-88D7 E782BA
-88D8 E7958F
-88D9 E795B0
-88DA E7A7BB
-88DB E7B6AD
-88DC E7B7AF
-88DD E88383
-88DE E8908E
-88DF E8A1A3
-88E0 E8AC82
-88E1 E98195
-88E2 E981BA
-88E3 E58CBB
-88E4 E4BA95
-88E5 E4BAA5
-88E6 E59F9F
-88E7 E882B2
-88E8 E98381
-88E9 E7A3AF
-88EA E4B880
-88EB E5A3B1
-88EC E6BAA2
-88ED E980B8
-88EE E7A8B2
-88EF E88CA8
-88F0 E88A8B
-88F1 E9B0AF
-88F2 E58581
-88F3 E58DB0
-88F4 E592BD
-88F5 E593A1
-88F6 E59BA0
-88F7 E5A7BB
-88F8 E5BC95
-88F9 E9A3B2
-88FA E6B7AB
-88FB E883A4
-88FC E894AD
-8940 E999A2
-8941 E999B0
-8942 E99AA0
-8943 E99FBB
-8944 E5908B
-8945 E58FB3
-8946 E5AE87
-8947 E7838F
-8948 E7BEBD
-8949 E8BF82
-894A E99BA8
-894B E58DAF
-894C E9B59C
-894D E7AABA
-894E E4B891
-894F E7A293
-8950 E887BC
-8951 E6B8A6
-8952 E59898
-8953 E59484
-8954 E6AC9D
-8955 E8949A
-8956 E9B0BB
-8957 E5A7A5
-8958 E58EA9
-8959 E6B5A6
-895A E7939C
-895B E9968F
-895C E59982
-895D E4BA91
-895E E9818B
-895F E99BB2
-8960 E88D8F
-8961 E9A48C
-8962 E58FA1
-8963 E596B6
-8964 E5ACB0
-8965 E5BDB1
-8966 E698A0
-8967 E69BB3
-8968 E6A084
-8969 E6B0B8
-896A E6B3B3
-896B E6B4A9
-896C E7919B
-896D E79B88
-896E E7A98E
-896F E9A0B4
-8970 E88BB1
-8971 E8A19B
-8972 E8A9A0
-8973 E98BAD
-8974 E6B6B2
-8975 E796AB
-8976 E79B8A
-8977 E9A785
-8978 E682A6
-8979 E8AC81
-897A E8B68A
-897B E996B2
-897C E6A68E
-897D E58EAD
-897E E58686
-8980 E59C92
-8981 E5A0B0
-8982 E5A584
-8983 E5AEB4
-8984 E5BBB6
-8985 E680A8
-8986 E68EA9
-8987 E68FB4
-8988 E6B2BF
-8989 E6BC94
-898A E7828E
-898B E78494
-898C E78599
-898D E78795
-898E E78CBF
-898F E7B881
-8990 E889B6
-8991 E88B91
-8992 E89697
-8993 E981A0
-8994 E9899B
-8995 E9B49B
-8996 E5A1A9
-8997 E696BC
-8998 E6B19A
-8999 E794A5
-899A E587B9
-899B E5A4AE
-899C E5A5A5
-899D E5BE80
-899E E5BF9C
-899F E68ABC
-89A0 E697BA
-89A1 E6A8AA
-89A2 E6ACA7
-89A3 E6AEB4
-89A4 E78E8B
-89A5 E7BF81
-89A6 E8A596
-89A7 E9B4AC
-89A8 E9B48E
-89A9 E9BB84
-89AA E5B2A1
-89AB E6B296
-89AC E88DBB
-89AD E58484
-89AE E5B18B
-89AF E686B6
-89B0 E88786
-89B1 E6A1B6
-89B2 E789A1
-89B3 E4B999
-89B4 E4BFBA
-89B5 E58DB8
-89B6 E681A9
-89B7 E6B8A9
-89B8 E7A98F
-89B9 E99FB3
-89BA E4B88B
-89BB E58C96
-89BC E4BBAE
-89BD E4BD95
-89BE E4BCBD
-89BF E4BEA1
-89C0 E4BDB3
-89C1 E58AA0
-89C2 E58FAF
-89C3 E59889
-89C4 E5A48F
-89C5 E5AB81
-89C6 E5AEB6
-89C7 E5AFA1
-89C8 E7A791
-89C9 E69A87
-89CA E69E9C
-89CB E69EB6
-89CC E6AD8C
-89CD E6B2B3
-89CE E781AB
-89CF E78F82
-89D0 E7A68D
-89D1 E7A6BE
-89D2 E7A8BC
-89D3 E7AE87
-89D4 E88AB1
-89D5 E88B9B
-89D6 E88C84
-89D7 E88DB7
-89D8 E88FAF
-89D9 E88F93
-89DA E89DA6
-89DB E8AAB2
-89DC E598A9
-89DD E8B2A8
-89DE E8BFA6
-89DF E9818E
-89E0 E99C9E
-89E1 E89A8A
-89E2 E4BF84
-89E3 E5B3A8
-89E4 E68891
-89E5 E78999
-89E6 E794BB
-89E7 E887A5
-89E8 E88ABD
-89E9 E89BBE
-89EA E8B380
-89EB E99B85
-89EC E9A493
-89ED E9A795
-89EE E4BB8B
-89EF E4BC9A
-89F0 E8A7A3
-89F1 E59B9E
-89F2 E5A18A
-89F3 E5A38A
-89F4 E5BBBB
-89F5 E5BFAB
-89F6 E680AA
-89F7 E68294
-89F8 E681A2
-89F9 E68790
-89FA E68892
-89FB E68B90
-89FC E694B9
-8A40 E9AD81
-8A41 E699A6
-8A42 E6A2B0
-8A43 E6B5B7
-8A44 E781B0
-8A45 E7958C
-8A46 E79A86
-8A47 E7B5B5
-8A48 E88AA5
-8A49 E89FB9
-8A4A E9968B
-8A4B E99A8E
-8A4C E8B29D
-8A4D E587B1
-8A4E E58ABE
-8A4F E5A496
-8A50 E592B3
-8A51 E5AEB3
-8A52 E5B496
-8A53 E685A8
-8A54 E6A682
-8A55 E6B6AF
-8A56 E7A28D
-8A57 E8938B
-8A58 E8A197
-8A59 E8A9B2
-8A5A E98EA7
-8A5B E9AAB8
-8A5C E6B5AC
-8A5D E9A6A8
-8A5E E89B99
-8A5F E59EA3
-8A60 E69FBF
-8A61 E89B8E
-8A62 E9888E
-8A63 E58A83
-8A64 E59A87
-8A65 E59084
-8A66 E5BB93
-8A67 E68BA1
-8A68 E692B9
-8A69 E6A0BC
-8A6A E6A0B8
-8A6B E6AEBB
-8A6C E78DB2
-8A6D E7A2BA
-8A6E E7A9AB
-8A6F E8A69A
-8A70 E8A792
-8A71 E8B5AB
-8A72 E8BC83
-8A73 E983AD
-8A74 E996A3
-8A75 E99A94
-8A76 E99DA9
-8A77 E5ADA6
-8A78 E5B2B3
-8A79 E6A5BD
-8A7A E9A18D
-8A7B E9A18E
-8A7C E68E9B
-8A7D E7ACA0
-8A7E E6A8AB
-8A80 E6A9BF
-8A81 E6A2B6
-8A82 E9B08D
-8A83 E6BD9F
-8A84 E589B2
-8A85 E5969D
-8A86 E681B0
-8A87 E68BAC
-8A88 E6B4BB
-8A89 E6B887
-8A8A E6BB91
-8A8B E8919B
-8A8C E8A490
-8A8D E8BD84
-8A8E E4B894
-8A8F E9B0B9
-8A90 E58FB6
-8A91 E6A49B
-8A92 E6A8BA
-8A93 E99E84
-8A94 E6A0AA
-8A95 E5859C
-8A96 E7AB83
-8A97 E892B2
-8A98 E9879C
-8A99 E98E8C
-8A9A E5999B
-8A9B E9B4A8
-8A9C E6A0A2
-8A9D E88C85
-8A9E E890B1
-8A9F E7B2A5
-8AA0 E58888
-8AA1 E88B85
-8AA2 E793A6
-8AA3 E4B9BE
-8AA4 E4BE83
-8AA5 E586A0
-8AA6 E5AF92
-8AA7 E5888A
-8AA8 E58B98
-8AA9 E58BA7
-8AAA E5B7BB
-8AAB E5969A
-8AAC E5A0AA
-8AAD E5A7A6
-8AAE E5AE8C
-8AAF E5AE98
-8AB0 E5AF9B
-8AB1 E5B9B2
-8AB2 E5B9B9
-8AB3 E682A3
-8AB4 E6849F
-8AB5 E685A3
-8AB6 E686BE
-8AB7 E68F9B
-8AB8 E695A2
-8AB9 E69F91
-8ABA E6A193
-8ABB E6A3BA
-8ABC E6ACBE
-8ABD E6AD93
-8ABE E6B197
-8ABF E6BCA2
-8AC0 E6BE97
-8AC1 E6BD85
-8AC2 E792B0
-8AC3 E79498
-8AC4 E79BA3
-8AC5 E79C8B
-8AC6 E7ABBF
-8AC7 E7AEA1
-8AC8 E7B0A1
-8AC9 E7B7A9
-8ACA E7BCB6
-8ACB E7BFB0
-8ACC E8829D
-8ACD E889A6
-8ACE E88E9E
-8ACF E8A6B3
-8AD0 E8AB8C
-8AD1 E8B2AB
-8AD2 E98284
-8AD3 E99191
-8AD4 E99693
-8AD5 E99691
-8AD6 E996A2
-8AD7 E999A5
-8AD8 E99F93
-8AD9 E9A4A8
-8ADA E88898
-8ADB E4B8B8
-8ADC E590AB
-8ADD E5B2B8
-8ADE E5B78C
-8ADF E78EA9
-8AE0 E7998C
-8AE1 E79CBC
-8AE2 E5B2A9
-8AE3 E7BFAB
-8AE4 E8B48B
-8AE5 E99B81
-8AE6 E9A091
-8AE7 E9A194
-8AE8 E9A198
-8AE9 E4BC81
-8AEA E4BC8E
-8AEB E58DB1
-8AEC E5969C
-8AED E599A8
-8AEE E59FBA
-8AEF E5A587
-8AF0 E5AC89
-8AF1 E5AF84
-8AF2 E5B290
-8AF3 E5B88C
-8AF4 E5B9BE
-8AF5 E5BF8C
-8AF6 E68FAE
-8AF7 E69CBA
-8AF8 E69797
-8AF9 E697A2
-8AFA E69C9F
-8AFB E6A38B
-8AFC E6A384
-8B40 E6A99F
-8B41 E5B8B0
-8B42 E6AF85
-8B43 E6B097
-8B44 E6B1BD
-8B45 E795BF
-8B46 E7A588
-8B47 E5ADA3
-8B48 E7A880
-8B49 E7B480
-8B4A E5BEBD
-8B4B E8A68F
-8B4C E8A898
-8B4D E8B2B4
-8B4E E8B5B7
-8B4F E8BB8C
-8B50 E8BC9D
-8B51 E9A3A2
-8B52 E9A88E
-8B53 E9ACBC
-8B54 E4BA80
-8B55 E581BD
-8B56 E58480
-8B57 E5A693
-8B58 E5AE9C
-8B59 E688AF
-8B5A E68A80
-8B5B E693AC
-8B5C E6ACBA
-8B5D E78AA0
-8B5E E79691
-8B5F E7A587
-8B60 E7BEA9
-8B61 E89FBB
-8B62 E8AABC
-8B63 E8ADB0
-8B64 E68EAC
-8B65 E88F8A
-8B66 E99EA0
-8B67 E59089
-8B68 E59083
-8B69 E596AB
-8B6A E6A194
-8B6B E6A998
-8B6C E8A9B0
-8B6D E7A0A7
-8B6E E69DB5
-8B6F E9BB8D
-8B70 E58DB4
-8B71 E5AEA2
-8B72 E8849A
-8B73 E89990
-8B74 E98086
-8B75 E4B898
-8B76 E4B985
-8B77 E4BB87
-8B78 E4BC91
-8B79 E58F8A
-8B7A E590B8
-8B7B E5AEAE
-8B7C E5BC93
-8B7D E680A5
-8B7E E69591
-8B80 E69CBD
-8B81 E6B182
-8B82 E6B1B2
-8B83 E6B3A3
-8B84 E781B8
-8B85 E79083
-8B86 E7A9B6
-8B87 E7AAAE
-8B88 E7AC88
-8B89 E7B49A
-8B8A E7B3BE
-8B8B E7B5A6
-8B8C E697A7
-8B8D E7899B
-8B8E E58EBB
-8B8F E5B185
-8B90 E5B7A8
-8B91 E68B92
-8B92 E68BA0
-8B93 E68C99
-8B94 E6B8A0
-8B95 E8999A
-8B96 E8A8B1
-8B97 E8B79D
-8B98 E98BB8
-8B99 E6BC81
-8B9A E7A6A6
-8B9B E9AD9A
-8B9C E4BAA8
-8B9D E4BAAB
-8B9E E4BAAC
-8B9F E4BE9B
-8BA0 E4BEA0
-8BA1 E58391
-8BA2 E58587
-8BA3 E7ABB6
-8BA4 E585B1
-8BA5 E587B6
-8BA6 E58D94
-8BA7 E58CA1
-8BA8 E58DBF
-8BA9 E58FAB
-8BAA E596AC
-8BAB E5A283
-8BAC E5B3A1
-8BAD E5BCB7
-8BAE E5BD8A
-8BAF E680AF
-8BB0 E68190
-8BB1 E681AD
-8BB2 E68C9F
-8BB3 E69599
-8BB4 E6A98B
-8BB5 E6B381
-8BB6 E78B82
-8BB7 E78BAD
-8BB8 E79FAF
-8BB9 E883B8
-8BBA E88485
-8BBB E88888
-8BBC E8958E
-8BBD E983B7
-8BBE E98FA1
-8BBF E99FBF
-8BC0 E9A597
-8BC1 E9A99A
-8BC2 E4BBB0
-8BC3 E5879D
-8BC4 E5B0AD
-8BC5 E69A81
-8BC6 E6A5AD
-8BC7 E5B180
-8BC8 E69BB2
-8BC9 E6A5B5
-8BCA E78E89
-8BCB E6A190
-8BCC E7B281
-8BCD E58385
-8BCE E58BA4
-8BCF E59D87
-8BD0 E5B7BE
-8BD1 E98CA6
-8BD2 E696A4
-8BD3 E6ACA3
-8BD4 E6ACBD
-8BD5 E790B4
-8BD6 E7A681
-8BD7 E7A6BD
-8BD8 E7AD8B
-8BD9 E7B78A
-8BDA E88AB9
-8BDB E88F8C
-8BDC E8A1BF
-8BDD E8A59F
-8BDE E8ACB9
-8BDF E8BF91
-8BE0 E98791
-8BE1 E5909F
-8BE2 E98A80
-8BE3 E4B99D
-8BE4 E580B6
-8BE5 E58FA5
-8BE6 E58CBA
-8BE7 E78B97
-8BE8 E78E96
-8BE9 E79FA9
-8BEA E88BA6
-8BEB E8BAAF
-8BEC E9A786
-8BED E9A788
-8BEE E9A792
-8BEF E585B7
-8BF0 E6849A
-8BF1 E8999E
-8BF2 E596B0
-8BF3 E7A9BA
-8BF4 E581B6
-8BF5 E5AF93
-8BF6 E98187
-8BF7 E99A85
-8BF8 E4B8B2
-8BF9 E6AB9B
-8BFA E987A7
-8BFB E5B191
-8BFC E5B188
-8C40 E68E98
-8C41 E7AA9F
-8C42 E6B293
-8C43 E99DB4
-8C44 E8BDA1
-8C45 E7AAAA
-8C46 E7868A
-8C47 E99A88
-8C48 E7B282
-8C49 E6A097
-8C4A E7B9B0
-8C4B E6A191
-8C4C E98DAC
-8C4D E58BB2
-8C4E E5909B
-8C4F E896AB
-8C50 E8A893
-8C51 E7BEA4
-8C52 E8BB8D
-8C53 E983A1
-8C54 E58DA6
-8C55 E8A288
-8C56 E7A581
-8C57 E4BF82
-8C58 E582BE
-8C59 E58891
-8C5A E58584
-8C5B E59593
-8C5C E59CAD
-8C5D E78FAA
-8C5E E59E8B
-8C5F E5A591
-8C60 E5BDA2
-8C61 E5BE84
-8C62 E681B5
-8C63 E685B6
-8C64 E685A7
-8C65 E686A9
-8C66 E68EB2
-8C67 E690BA
-8C68 E695AC
-8C69 E699AF
-8C6A E6A182
-8C6B E6B893
-8C6C E795A6
-8C6D E7A8BD
-8C6E E7B3BB
-8C6F E7B58C
-8C70 E7B699
-8C71 E7B98B
-8C72 E7BDAB
-8C73 E88C8E
-8C74 E88D8A
-8C75 E89B8D
-8C76 E8A888
-8C77 E8A9A3
-8C78 E8ADA6
-8C79 E8BBBD
-8C7A E9A09A
-8C7B E9B68F
-8C7C E88AB8
-8C7D E8BF8E
-8C7E E9AFA8
-8C80 E58A87
-8C81 E6889F
-8C82 E69283
-8C83 E6BF80
-8C84 E99A99
-8C85 E6A181
-8C86 E58291
-8C87 E6ACA0
-8C88 E6B1BA
-8C89 E6BD94
-8C8A E7A9B4
-8C8B E7B590
-8C8C E8A180
-8C8D E8A8A3
-8C8E E69C88
-8C8F E4BBB6
-8C90 E580B9
-8C91 E580A6
-8C92 E581A5
-8C93 E585BC
-8C94 E588B8
-8C95 E589A3
-8C96 E596A7
-8C97 E59C8F
-8C98 E5A085
-8C99 E5AB8C
-8C9A E5BBBA
-8C9B E686B2
-8C9C E687B8
-8C9D E68BB3
-8C9E E68DB2
-8C9F E6A49C
-8CA0 E6A8A9
-8CA1 E789BD
-8CA2 E78AAC
-8CA3 E78CAE
-8CA4 E7A094
-8CA5 E7A1AF
-8CA6 E7B5B9
-8CA7 E79C8C
-8CA8 E882A9
-8CA9 E8A68B
-8CAA E8AC99
-8CAB E8B3A2
-8CAC E8BB92
-8CAD E981A3
-8CAE E98DB5
-8CAF E999BA
-8CB0 E9A195
-8CB1 E9A893
-8CB2 E9B9B8
-8CB3 E58583
-8CB4 E58E9F
-8CB5 E58EB3
-8CB6 E5B9BB
-8CB7 E5BCA6
-8CB8 E6B89B
-8CB9 E6BA90
-8CBA E78E84
-8CBB E78FBE
-8CBC E7B583
-8CBD E888B7
-8CBE E8A880
-8CBF E8ABBA
-8CC0 E99990
-8CC1 E4B98E
-8CC2 E5808B
-8CC3 E58FA4
-8CC4 E591BC
-8CC5 E59BBA
-8CC6 E5A791
-8CC7 E5ADA4
-8CC8 E5B7B1
-8CC9 E5BAAB
-8CCA E5BCA7
-8CCB E688B8
-8CCC E69585
-8CCD E69EAF
-8CCE E6B996
-8CCF E78B90
-8CD0 E7B38A
-8CD1 E8A2B4
-8CD2 E882A1
-8CD3 E883A1
-8CD4 E88FB0
-8CD5 E8998E
-8CD6 E8AA87
-8CD7 E8B7A8
-8CD8 E988B7
-8CD9 E99B87
-8CDA E9A1A7
-8CDB E9BC93
-8CDC E4BA94
-8CDD E4BA92
-8CDE E4BC8D
-8CDF E58D88
-8CE0 E59189
-8CE1 E590BE
-8CE2 E5A8AF
-8CE3 E5BE8C
-8CE4 E5BEA1
-8CE5 E6829F
-8CE6 E6A2A7
-8CE7 E6AA8E
-8CE8 E7919A
-8CE9 E7A281
-8CEA E8AA9E
-8CEB E8AAA4
-8CEC E8ADB7
-8CED E98690
-8CEE E4B99E
-8CEF E9AF89
-8CF0 E4BAA4
-8CF1 E4BDBC
-8CF2 E4BEAF
-8CF3 E58099
-8CF4 E58096
-8CF5 E58589
-8CF6 E585AC
-8CF7 E58A9F
-8CF8 E58AB9
-8CF9 E58BBE
-8CFA E58E9A
-8CFB E58FA3
-8CFC E59091
-8D40 E5908E
-8D41 E59689
-8D42 E59D91
-8D43 E59EA2
-8D44 E5A5BD
-8D45 E5AD94
-8D46 E5AD9D
-8D47 E5AE8F
-8D48 E5B7A5
-8D49 E5B7A7
-8D4A E5B7B7
-8D4B E5B9B8
-8D4C E5BA83
-8D4D E5BA9A
-8D4E E5BAB7
-8D4F E5BC98
-8D50 E68192
-8D51 E6858C
-8D52 E68A97
-8D53 E68B98
-8D54 E68EA7
-8D55 E694BB
-8D56 E69882
-8D57 E69983
-8D58 E69BB4
-8D59 E69DAD
-8D5A E6A0A1
-8D5B E6A297
-8D5C E6A78B
-8D5D E6B19F
-8D5E E6B4AA
-8D5F E6B5A9
-8D60 E6B8AF
-8D61 E6BA9D
-8D62 E794B2
-8D63 E79A87
-8D64 E7A1AC
-8D65 E7A8BF
-8D66 E7B3A0
-8D67 E7B485
-8D68 E7B498
-8D69 E7B59E
-8D6A E7B6B1
-8D6B E88095
-8D6C E88083
-8D6D E882AF
-8D6E E882B1
-8D6F E88594
-8D70 E8868F
-8D71 E888AA
-8D72 E88D92
-8D73 E8A18C
-8D74 E8A1A1
-8D75 E8AC9B
-8D76 E8B2A2
-8D77 E8B3BC
-8D78 E9838A
-8D79 E985B5
-8D7A E989B1
-8D7B E7A0BF
-8D7C E98BBC
-8D7D E996A4
-8D7E E9998D
-8D80 E9A085
-8D81 E9A699
-8D82 E9AB98
-8D83 E9B4BB
-8D84 E5899B
-8D85 E58AAB
-8D86 E58FB7
-8D87 E59088
-8D88 E5A395
-8D89 E68BB7
-8D8A E6BFA0
-8D8B E8B1AA
-8D8C E8BD9F
-8D8D E9BAB9
-8D8E E5858B
-8D8F E588BB
-8D90 E5918A
-8D91 E59BBD
-8D92 E7A980
-8D93 E985B7
-8D94 E9B5A0
-8D95 E9BB92
-8D96 E78D84
-8D97 E6BC89
-8D98 E885B0
-8D99 E79491
-8D9A E5BFBD
-8D9B E6839A
-8D9C E9AAA8
-8D9D E78B9B
-8D9E E8BEBC
-8D9F E6ADA4
-8DA0 E9A083
-8DA1 E4BB8A
-8DA2 E59BB0
-8DA3 E59DA4
-8DA4 E5A2BE
-8DA5 E5A99A
-8DA6 E681A8
-8DA7 E68787
-8DA8 E6988F
-8DA9 E69886
-8DAA E6A0B9
-8DAB E6A2B1
-8DAC E6B7B7
-8DAD E79795
-8DAE E7B4BA
-8DAF E889AE
-8DB0 E9AD82
-8DB1 E4BA9B
-8DB2 E4BD90
-8DB3 E58F89
-8DB4 E59486
-8DB5 E5B5AF
-8DB6 E5B7A6
-8DB7 E5B7AE
-8DB8 E69FBB
-8DB9 E6B299
-8DBA E791B3
-8DBB E7A082
-8DBC E8A990
-8DBD E98E96
-8DBE E8A39F
-8DBF E59D90
-8DC0 E5BAA7
-8DC1 E68CAB
-8DC2 E582B5
-8DC3 E582AC
-8DC4 E5868D
-8DC5 E69C80
-8DC6 E59389
-8DC7 E5A19E
-8DC8 E5A6BB
-8DC9 E5AEB0
-8DCA E5BDA9
-8DCB E6898D
-8DCC E68EA1
-8DCD E6A0BD
-8DCE E6ADB3
-8DCF E6B888
-8DD0 E781BD
-8DD1 E98787
-8DD2 E78A80
-8DD3 E7A095
-8DD4 E7A0A6
-8DD5 E7A5AD
-8DD6 E6968E
-8DD7 E7B4B0
-8DD8 E88F9C
-8DD9 E8A381
-8DDA E8BC89
-8DDB E99A9B
-8DDC E589A4
-8DDD E59CA8
-8DDE E69D90
-8DDF E7BDAA
-8DE0 E8B2A1
-8DE1 E586B4
-8DE2 E59D82
-8DE3 E998AA
-8DE4 E5A0BA
-8DE5 E6A68A
-8DE6 E882B4
-8DE7 E592B2
-8DE8 E5B48E
-8DE9 E59FBC
-8DEA E7A295
-8DEB E9B7BA
-8DEC E4BD9C
-8DED E5898A
-8DEE E5928B
-8DEF E690BE
-8DF0 E698A8
-8DF1 E69C94
-8DF2 E69FB5
-8DF3 E7AA84
-8DF4 E7AD96
-8DF5 E7B4A2
-8DF6 E98CAF
-8DF7 E6A19C
-8DF8 E9AEAD
-8DF9 E7ACB9
-8DFA E58C99
-8DFB E5868A
-8DFC E588B7
-8E40 E5AF9F
-8E41 E68BB6
-8E42 E692AE
-8E43 E693A6
-8E44 E69CAD
-8E45 E6AEBA
-8E46 E896A9
-8E47 E99B91
-8E48 E79A90
-8E49 E9AF96
-8E4A E68D8C
-8E4B E98C86
-8E4C E9AEAB
-8E4D E79ABF
-8E4E E69992
-8E4F E4B889
-8E50 E58298
-8E51 E58F82
-8E52 E5B1B1
-8E53 E683A8
-8E54 E69292
-8E55 E695A3
-8E56 E6A19F
-8E57 E787A6
-8E58 E78F8A
-8E59 E794A3
-8E5A E7AE97
-8E5B E7BA82
-8E5C E89A95
-8E5D E8AE83
-8E5E E8B39B
-8E5F E985B8
-8E60 E9A490
-8E61 E696AC
-8E62 E69AAB
-8E63 E6AE8B
-8E64 E4BB95
-8E65 E4BB94
-8E66 E4BCBA
-8E67 E4BDBF
-8E68 E588BA
-8E69 E58FB8
-8E6A E58FB2
-8E6B E597A3
-8E6C E59B9B
-8E6D E5A3AB
-8E6E E5A78B
-8E6F E5A789
-8E70 E5A7BF
-8E71 E5AD90
-8E72 E5B18D
-8E73 E5B882
-8E74 E5B8AB
-8E75 E5BF97
-8E76 E6809D
-8E77 E68C87
-8E78 E694AF
-8E79 E5AD9C
-8E7A E696AF
-8E7B E696BD
-8E7C E697A8
-8E7D E69E9D
-8E7E E6ADA2
-8E80 E6ADBB
-8E81 E6B08F
-8E82 E78D85
-8E83 E7A589
-8E84 E7A781
-8E85 E7B3B8
-8E86 E7B499
-8E87 E7B4AB
-8E88 E882A2
-8E89 E88482
-8E8A E887B3
-8E8B E8A696
-8E8C E8A99E
-8E8D E8A9A9
-8E8E E8A9A6
-8E8F E8AA8C
-8E90 E8ABAE
-8E91 E8B387
-8E92 E8B39C
-8E93 E99B8C
-8E94 E9A3BC
-8E95 E6ADAF
-8E96 E4BA8B
-8E97 E4BCBC
-8E98 E4BE8D
-8E99 E58590
-8E9A E5AD97
-8E9B E5AFBA
-8E9C E68588
-8E9D E68C81
-8E9E E69982
-8E9F E6ACA1
-8EA0 E6BB8B
-8EA1 E6B2BB
-8EA2 E788BE
-8EA3 E792BD
-8EA4 E79794
-8EA5 E7A381
-8EA6 E7A4BA
-8EA7 E8808C
-8EA8 E880B3
-8EA9 E887AA
-8EAA E89294
-8EAB E8BE9E
-8EAC E6B190
-8EAD E9B9BF
-8EAE E5BC8F
-8EAF E8AD98
-8EB0 E9B4AB
-8EB1 E7ABBA
-8EB2 E8BBB8
-8EB3 E5AE8D
-8EB4 E99BAB
-8EB5 E4B883
-8EB6 E58FB1
-8EB7 E59FB7
-8EB8 E5A4B1
-8EB9 E5AB89
-8EBA E5AEA4
-8EBB E68289
-8EBC E6B9BF
-8EBD E6BC86
-8EBE E796BE
-8EBF E8B3AA
-8EC0 E5AE9F
-8EC1 E89480
-8EC2 E7AFA0
-8EC3 E581B2
-8EC4 E69FB4
-8EC5 E88A9D
-8EC6 E5B1A1
-8EC7 E8958A
-8EC8 E7B89E
-8EC9 E8888E
-8ECA E58699
-8ECB E5B084
-8ECC E68DA8
-8ECD E8B5A6
-8ECE E6969C
-8ECF E785AE
-8ED0 E7A4BE
-8ED1 E7B497
-8ED2 E88085
-8ED3 E8AC9D
-8ED4 E8BB8A
-8ED5 E981AE
-8ED6 E89B87
-8ED7 E982AA
-8ED8 E5809F
-8ED9 E58BBA
-8EDA E5B0BA
-8EDB E69D93
-8EDC E781BC
-8EDD E788B5
-8EDE E9858C
-8EDF E98788
-8EE0 E98CAB
-8EE1 E88BA5
-8EE2 E5AF82
-8EE3 E5BCB1
-8EE4 E683B9
-8EE5 E4B8BB
-8EE6 E58F96
-8EE7 E5AE88
-8EE8 E6898B
-8EE9 E69CB1
-8EEA E6AE8A
-8EEB E78BA9
-8EEC E78FA0
-8EED E7A8AE
-8EEE E885AB
-8EEF E8B6A3
-8EF0 E98592
-8EF1 E9A696
-8EF2 E58492
-8EF3 E58F97
-8EF4 E591AA
-8EF5 E5AFBF
-8EF6 E68E88
-8EF7 E6A8B9
-8EF8 E7B6AC
-8EF9 E99C80
-8EFA E59B9A
-8EFB E58F8E
-8EFC E591A8
-8F40 E5AE97
-8F41 E5B0B1
-8F42 E5B79E
-8F43 E4BFAE
-8F44 E68481
-8F45 E68BBE
-8F46 E6B4B2
-8F47 E7A780
-8F48 E7A78B
-8F49 E7B582
-8F4A E7B98D
-8F4B E7BF92
-8F4C E887AD
-8F4D E8889F
-8F4E E89290
-8F4F E8A186
-8F50 E8A5B2
-8F51 E8AE90
-8F52 E8B9B4
-8F53 E8BCAF
-8F54 E980B1
-8F55 E9858B
-8F56 E985AC
-8F57 E99B86
-8F58 E9869C
-8F59 E4BB80
-8F5A E4BD8F
-8F5B E58585
-8F5C E58D81
-8F5D E5BE93
-8F5E E6888E
-8F5F E69F94
-8F60 E6B181
-8F61 E6B88B
-8F62 E78DA3
-8F63 E7B8A6
-8F64 E9878D
-8F65 E98A83
-8F66 E58F94
-8F67 E5A499
-8F68 E5AEBF
-8F69 E6B791
-8F6A E7A59D
-8F6B E7B8AE
-8F6C E7B29B
-8F6D E5A1BE
-8F6E E7869F
-8F6F E587BA
-8F70 E8A193
-8F71 E8BFB0
-8F72 E4BF8A
-8F73 E5B3BB
-8F74 E698A5
-8F75 E79EAC
-8F76 E7ABA3
-8F77 E8889C
-8F78 E9A7BF
-8F79 E58786
-8F7A E5BEAA
-8F7B E697AC
-8F7C E6A5AF
-8F7D E6AE89
-8F7E E6B7B3
-8F80 E6BA96
-8F81 E6BDA4
-8F82 E79BBE
-8F83 E7B494
-8F84 E5B7A1
-8F85 E981B5
-8F86 E98687
-8F87 E9A086
-8F88 E587A6
-8F89 E5889D
-8F8A E68980
-8F8B E69A91
-8F8C E69B99
-8F8D E6B89A
-8F8E E5BAB6
-8F8F E7B792
-8F90 E7BDB2
-8F91 E69BB8
-8F92 E896AF
-8F93 E897B7
-8F94 E8ABB8
-8F95 E58AA9
-8F96 E58F99
-8F97 E5A5B3
-8F98 E5BA8F
-8F99 E5BE90
-8F9A E68195
-8F9B E98BA4
-8F9C E999A4
-8F9D E582B7
-8F9E E5849F
-8F9F E58B9D
-8FA0 E58CA0
-8FA1 E58D87
-8FA2 E58FAC
-8FA3 E593A8
-8FA4 E59586
-8FA5 E594B1
-8FA6 E59897
-8FA7 E5A5A8
-8FA8 E5A6BE
-8FA9 E5A8BC
-8FAA E5AEB5
-8FAB E5B086
-8FAC E5B08F
-8FAD E5B091
-8FAE E5B09A
-8FAF E5BA84
-8FB0 E5BA8A
-8FB1 E5BBA0
-8FB2 E5BDB0
-8FB3 E689BF
-8FB4 E68A84
-8FB5 E68B9B
-8FB6 E68E8C
-8FB7 E68DB7
-8FB8 E69887
-8FB9 E6988C
-8FBA E698AD
-8FBB E699B6
-8FBC E69DBE
-8FBD E6A2A2
-8FBE E6A89F
-8FBF E6A8B5
-8FC0 E6B2BC
-8FC1 E6B688
-8FC2 E6B889
-8FC3 E6B998
-8FC4 E784BC
-8FC5 E784A6
-8FC6 E785A7
-8FC7 E79787
-8FC8 E79C81
-8FC9 E7A19D
-8FCA E7A481
-8FCB E7A5A5
-8FCC E7A7B0
-8FCD E7ABA0
-8FCE E7AC91
-8FCF E7B2A7
-8FD0 E7B4B9
-8FD1 E88296
-8FD2 E88F96
-8FD3 E8928B
-8FD4 E89589
-8FD5 E8A19D
-8FD6 E8A3B3
-8FD7 E8A89F
-8FD8 E8A8BC
-8FD9 E8A994
-8FDA E8A9B3
-8FDB E8B1A1
-8FDC E8B39E
-8FDD E986A4
-8FDE E989A6
-8FDF E98DBE
-8FE0 E99098
-8FE1 E99A9C
-8FE2 E99E98
-8FE3 E4B88A
-8FE4 E4B888
-8FE5 E4B89E
-8FE6 E4B997
-8FE7 E58697
-8FE8 E589B0
-8FE9 E59F8E
-8FEA E5A0B4
-8FEB E5A38C
-8FEC E5ACA2
-8FED E5B8B8
-8FEE E68385
-8FEF E693BE
-8FF0 E69DA1
-8FF1 E69D96
-8FF2 E6B584
-8FF3 E78AB6
-8FF4 E795B3
-8FF5 E7A9A3
-8FF6 E892B8
-8FF7 E8ADB2
-8FF8 E986B8
-8FF9 E98CA0
-8FFA E598B1
-8FFB E59FB4
-8FFC E9A3BE
-9040 E68BAD
-9041 E6A48D
-9042 E6AE96
-9043 E787AD
-9044 E7B994
-9045 E881B7
-9046 E889B2
-9047 E8A7A6
-9048 E9A39F
-9049 E89D95
-904A E8BEB1
-904B E5B0BB
-904C E4BCB8
-904D E4BFA1
-904E E4BEB5
-904F E59487
-9050 E5A8A0
-9051 E5AF9D
-9052 E5AFA9
-9053 E5BF83
-9054 E6858E
-9055 E68CAF
-9056 E696B0
-9057 E6998B
-9058 E6A3AE
-9059 E6A69B
-905A E6B5B8
-905B E6B7B1
-905C E794B3
-905D E796B9
-905E E79C9F
-905F E7A59E
-9060 E7A7A6
-9061 E7B4B3
-9062 E887A3
-9063 E88AAF
-9064 E896AA
-9065 E8A6AA
-9066 E8A8BA
-9067 E8BAAB
-9068 E8BE9B
-9069 E980B2
-906A E9879D
-906B E99C87
-906C E4BABA
-906D E4BB81
-906E E58883
-906F E5A1B5
-9070 E5A3AC
-9071 E5B08B
-9072 E7949A
-9073 E5B0BD
-9074 E8858E
-9075 E8A88A
-9076 E8BF85
-9077 E999A3
-9078 E99DAD
-9079 E7ACA5
-907A E8AB8F
-907B E9A088
-907C E985A2
-907D E59BB3
-907E E58EA8
-9080 E98097
-9081 E590B9
-9082 E59E82
-9083 E5B8A5
-9084 E68EA8
-9085 E6B0B4
-9086 E7828A
-9087 E79DA1
-9088 E7B28B
-9089 E7BFA0
-908A E8A1B0
-908B E98182
-908C E98594
-908D E98C90
-908E E98C98
-908F E99A8F
-9090 E7919E
-9091 E9AB84
-9092 E5B487
-9093 E5B5A9
-9094 E695B0
-9095 E69EA2
-9096 E8B6A8
-9097 E99B9B
-9098 E68DAE
-9099 E69D89
-909A E6A499
-909B E88F85
-909C E9A097
-909D E99B80
-909E E8A3BE
-909F E6BE84
-90A0 E691BA
-90A1 E5AFB8
-90A2 E4B896
-90A3 E780AC
-90A4 E7959D
-90A5 E698AF
-90A6 E58784
-90A7 E588B6
-90A8 E58BA2
-90A9 E5A793
-90AA E5BE81
-90AB E680A7
-90AC E68890
-90AD E694BF
-90AE E695B4
-90AF E6989F
-90B0 E699B4
-90B1 E6A3B2
-90B2 E6A096
-90B3 E6ADA3
-90B4 E6B885
-90B5 E789B2
-90B6 E7949F
-90B7 E79B9B
-90B8 E7B2BE
-90B9 E88196
-90BA E5A3B0
-90BB E8A3BD
-90BC E8A5BF
-90BD E8AAA0
-90BE E8AA93
-90BF E8AB8B
-90C0 E9809D
-90C1 E98692
-90C2 E99D92
-90C3 E99D99
-90C4 E69689
-90C5 E7A88E
-90C6 E88486
-90C7 E99ABB
-90C8 E5B8AD
-90C9 E6839C
-90CA E6889A
-90CB E696A5
-90CC E69894
-90CD E69E90
-90CE E79FB3
-90CF E7A98D
-90D0 E7B18D
-90D1 E7B8BE
-90D2 E8848A
-90D3 E8B2AC
-90D4 E8B5A4
-90D5 E8B7A1
-90D6 E8B99F
-90D7 E7A2A9
-90D8 E58887
-90D9 E68B99
-90DA E68EA5
-90DB E69182
-90DC E68A98
-90DD E8A8AD
-90DE E7AA83
-90DF E7AF80
-90E0 E8AAAC
-90E1 E99BAA
-90E2 E7B5B6
-90E3 E8888C
-90E4 E89D89
-90E5 E4BB99
-90E6 E58588
-90E7 E58D83
-90E8 E58DA0
-90E9 E5AEA3
-90EA E5B082
-90EB E5B096
-90EC E5B79D
-90ED E688A6
-90EE E68987
-90EF E692B0
-90F0 E6A093
-90F1 E6A0B4
-90F2 E6B389
-90F3 E6B585
-90F4 E6B497
-90F5 E69F93
-90F6 E6BD9C
-90F7 E7858E
-90F8 E785BD
-90F9 E6978B
-90FA E7A9BF
-90FB E7AEAD
-90FC E7B79A
-9140 E7B98A
-9141 E7BEA8
-9142 E885BA
-9143 E8889B
-9144 E888B9
-9145 E896A6
-9146 E8A9AE
-9147 E8B38E
-9148 E8B7B5
-9149 E981B8
-914A E981B7
-914B E98AAD
-914C E98A91
-914D E99683
-914E E9AEAE
-914F E5898D
-9150 E59684
-9151 E6BCB8
-9152 E784B6
-9153 E585A8
-9154 E7A685
-9155 E7B995
-9156 E886B3
-9157 E7B38E
-9158 E5998C
-9159 E5A191
-915A E5B2A8
-915B E68EAA
-915C E69BBE
-915D E69BBD
-915E E6A59A
-915F E78B99
-9160 E7968F
-9161 E7968E
-9162 E7A48E
-9163 E7A596
-9164 E7A79F
-9165 E7B297
-9166 E7B4A0
-9167 E7B584
-9168 E89887
-9169 E8A8B4
-916A E998BB
-916B E981A1
-916C E9BCA0
-916D E583A7
-916E E589B5
-916F E58F8C
-9170 E58FA2
-9171 E58089
-9172 E596AA
-9173 E5A3AE
-9174 E5A58F
-9175 E788BD
-9176 E5AE8B
-9177 E5B1A4
-9178 E58C9D
-9179 E683A3
-917A E683B3
-917B E68D9C
-917C E68E83
-917D E68CBF
-917E E68EBB
-9180 E6938D
-9181 E697A9
-9182 E69BB9
-9183 E5B7A3
-9184 E6A78D
-9185 E6A7BD
-9186 E6BC95
-9187 E787A5
-9188 E4BA89
-9189 E797A9
-918A E79BB8
-918B E7AA93
-918C E7B39F
-918D E7B78F
-918E E7B69C
-918F E881A1
-9190 E88D89
-9191 E88D98
-9192 E891AC
-9193 E892BC
-9194 E897BB
-9195 E8A385
-9196 E8B5B0
-9197 E98081
-9198 E981AD
-9199 E98E97
-919A E99C9C
-919B E9A892
-919C E5838F
-919D E5A297
-919E E6868E
-919F E88793
-91A0 E894B5
-91A1 E8B488
-91A2 E980A0
-91A3 E4BF83
-91A4 E581B4
-91A5 E58987
-91A6 E58DB3
-91A7 E681AF
-91A8 E68D89
-91A9 E69D9F
-91AA E6B8AC
-91AB E8B6B3
-91AC E9809F
-91AD E4BF97
-91AE E5B19E
-91AF E8B38A
-91B0 E6978F
-91B1 E7B69A
-91B2 E58D92
-91B3 E8A296
-91B4 E585B6
-91B5 E68F83
-91B6 E5AD98
-91B7 E5ADAB
-91B8 E5B08A
-91B9 E6908D
-91BA E69D91
-91BB E9819C
-91BC E4BB96
-91BD E5A49A
-91BE E5A4AA
-91BF E6B1B0
-91C0 E8A991
-91C1 E594BE
-91C2 E5A095
-91C3 E5A6A5
-91C4 E683B0
-91C5 E68993
-91C6 E69F81
-91C7 E888B5
-91C8 E6A595
-91C9 E99980
-91CA E9A784
-91CB E9A8A8
-91CC E4BD93
-91CD E5A086
-91CE E5AFBE
-91CF E88090
-91D0 E5B2B1
-91D1 E5B8AF
-91D2 E5BE85
-91D3 E680A0
-91D4 E6858B
-91D5 E688B4
-91D6 E69BBF
-91D7 E6B3B0
-91D8 E6BB9E
-91D9 E8838E
-91DA E885BF
-91DB E88B94
-91DC E8A28B
-91DD E8B2B8
-91DE E98080
-91DF E980AE
-91E0 E99A8A
-91E1 E9BB9B
-91E2 E9AF9B
-91E3 E4BBA3
-91E4 E58FB0
-91E5 E5A4A7
-91E6 E7ACAC
-91E7 E9868D
-91E8 E9A18C
-91E9 E9B7B9
-91EA E6BB9D
-91EB E780A7
-91EC E58D93
-91ED E59584
-91EE E5AE85
-91EF E68998
-91F0 E68A9E
-91F1 E68B93
-91F2 E6B2A2
-91F3 E6BFAF
-91F4 E790A2
-91F5 E8A897
-91F6 E990B8
-91F7 E6BF81
-91F8 E8ABBE
-91F9 E88CB8
-91FA E587A7
-91FB E89BB8
-91FC E58FAA
-9240 E58FA9
-9241 E4BD86
-9242 E98194
-9243 E8BEB0
-9244 E5A5AA
-9245 E884B1
-9246 E5B7BD
-9247 E7ABAA
-9248 E8BEBF
-9249 E6A39A
-924A E8B0B7
-924B E78BB8
-924C E9B188
-924D E6A8BD
-924E E8AAB0
-924F E4B8B9
-9250 E58D98
-9251 E59886
-9252 E59DA6
-9253 E68B85
-9254 E68EA2
-9255 E697A6
-9256 E6AD8E
-9257 E6B7A1
-9258 E6B99B
-9259 E782AD
-925A E79FAD
-925B E7ABAF
-925C E7AEAA
-925D E7B6BB
-925E E880BD
-925F E88386
-9260 E89B8B
-9261 E8AA95
-9262 E98D9B
-9263 E59BA3
-9264 E5A387
-9265 E5BCBE
-9266 E696AD
-9267 E69A96
-9268 E6AA80
-9269 E6AEB5
-926A E794B7
-926B E8AB87
-926C E580A4
-926D E79FA5
-926E E59CB0
-926F E5BC9B
-9270 E681A5
-9271 E699BA
-9272 E6B1A0
-9273 E797B4
-9274 E7A89A
-9275 E7BDAE
-9276 E887B4
-9277 E89C98
-9278 E98185
-9279 E9A6B3
-927A E7AF89
-927B E7959C
-927C E7ABB9
-927D E7AD91
-927E E89384
-9280 E98090
-9281 E7A7A9
-9282 E7AA92
-9283 E88CB6
-9284 E5ABA1
-9285 E79D80
-9286 E4B8AD
-9287 E4BBB2
-9288 E5AE99
-9289 E5BFA0
-928A E68ABD
-928B E698BC
-928C E69FB1
-928D E6B3A8
-928E E899AB
-928F E8A1B7
-9290 E8A8BB
-9291 E9858E
-9292 E98BB3
-9293 E9A790
-9294 E6A897
-9295 E780A6
-9296 E78CAA
-9297 E88BA7
-9298 E89197
-9299 E8B2AF
-929A E4B881
-929B E58586
-929C E5878B
-929D E5968B
-929E E5AFB5
-929F E5B896
-92A0 E5B8B3
-92A1 E5BA81
-92A2 E5BC94
-92A3 E5BCB5
-92A4 E5BDAB
-92A5 E5BEB4
-92A6 E687B2
-92A7 E68C91
-92A8 E69AA2
-92A9 E69C9D
-92AA E6BDAE
-92AB E78992
-92AC E794BA
-92AD E79CBA
-92AE E881B4
-92AF E884B9
-92B0 E885B8
-92B1 E89DB6
-92B2 E8AABF
-92B3 E8AB9C
-92B4 E8B685
-92B5 E8B7B3
-92B6 E98A9A
-92B7 E995B7
-92B8 E9A082
-92B9 E9B3A5
-92BA E58B85
-92BB E68D97
-92BC E79BB4
-92BD E69C95
-92BE E6B288
-92BF E78F8D
-92C0 E8B383
-92C1 E98EAE
-92C2 E999B3
-92C3 E6B4A5
-92C4 E5A29C
-92C5 E6A48E
-92C6 E6A78C
-92C7 E8BFBD
-92C8 E98E9A
-92C9 E7979B
-92CA E9809A
-92CB E5A19A
-92CC E6A082
-92CD E68EB4
-92CE E6A7BB
-92CF E4BD83
-92D0 E6BCAC
-92D1 E69F98
-92D2 E8BEBB
-92D3 E894A6
-92D4 E7B6B4
-92D5 E98D94
-92D6 E6A4BF
-92D7 E6BDB0
-92D8 E59DAA
-92D9 E5A3B7
-92DA E5ACAC
-92DB E7B4AC
-92DC E788AA
-92DD E5908A
-92DE E987A3
-92DF E9B6B4
-92E0 E4BAAD
-92E1 E4BD8E
-92E2 E5819C
-92E3 E581B5
-92E4 E58983
-92E5 E8B29E
-92E6 E59188
-92E7 E5A0A4
-92E8 E5AE9A
-92E9 E5B89D
-92EA E5BA95
-92EB E5BAAD
-92EC E5BBB7
-92ED E5BC9F
-92EE E6828C
-92EF E68AB5
-92F0 E68CBA
-92F1 E68F90
-92F2 E6A2AF
-92F3 E6B180
-92F4 E7A287
-92F5 E7A68E
-92F6 E7A88B
-92F7 E7B7A0
-92F8 E88987
-92F9 E8A882
-92FA E8ABA6
-92FB E8B984
-92FC E98093
-9340 E982B8
-9341 E984AD
-9342 E98798
-9343 E9BC8E
-9344 E6B3A5
-9345 E69198
-9346 E693A2
-9347 E695B5
-9348 E6BBB4
-9349 E79A84
-934A E7AC9B
-934B E981A9
-934C E98F91
-934D E6BABA
-934E E593B2
-934F E5BEB9
-9350 E692A4
-9351 E8BD8D
-9352 E8BFAD
-9353 E98984
-9354 E585B8
-9355 E5A1AB
-9356 E5A4A9
-9357 E5B195
-9358 E5BA97
-9359 E6B7BB
-935A E7BA8F
-935B E7949C
-935C E8B2BC
-935D E8BBA2
-935E E9A19B
-935F E782B9
-9360 E4BC9D
-9361 E6AEBF
-9362 E6BEB1
-9363 E794B0
-9364 E99BBB
-9365 E5858E
-9366 E59090
-9367 E5A0B5
-9368 E5A197
-9369 E5A6AC
-936A E5B1A0
-936B E5BE92
-936C E69697
-936D E69D9C
-936E E6B8A1
-936F E799BB
-9370 E88F9F
-9371 E8B3AD
-9372 E98094
-9373 E983BD
-9374 E98D8D
-9375 E7A0A5
-9376 E7A0BA
-9377 E58AAA
-9378 E5BAA6
-9379 E59C9F
-937A E5A5B4
-937B E68092
-937C E58092
-937D E5859A
-937E E586AC
-9380 E5878D
-9381 E58880
-9382 E59490
-9383 E5A194
-9384 E5A198
-9385 E5A597
-9386 E5AE95
-9387 E5B3B6
-9388 E5B68B
-9389 E682BC
-938A E68A95
-938B E690AD
-938C E69DB1
-938D E6A183
-938E E6A2BC
-938F E6A39F
-9390 E79B97
-9391 E6B798
-9392 E6B9AF
-9393 E6B69B
-9394 E781AF
-9395 E78788
-9396 E5BD93
-9397 E79798
-9398 E7A5B7
-9399 E7AD89
-939A E7AD94
-939B E7AD92
-939C E7B396
-939D E7B5B1
-939E E588B0
-939F E891A3
-93A0 E895A9
-93A1 E897A4
-93A2 E8A88E
-93A3 E8AC84
-93A4 E8B186
-93A5 E8B88F
-93A6 E98083
-93A7 E9808F
-93A8 E99099
-93A9 E999B6
-93AA E9A0AD
-93AB E9A8B0
-93AC E99798
-93AD E5838D
-93AE E58B95
-93AF E5908C
-93B0 E5A082
-93B1 E5B08E
-93B2 E686A7
-93B3 E6929E
-93B4 E6B49E
-93B5 E79EB3
-93B6 E7ABA5
-93B7 E883B4
-93B8 E89084
-93B9 E98193
-93BA E98A85
-93BB E5B3A0
-93BC E9B487
-93BD E58CBF
-93BE E5BE97
-93BF E5BEB3
-93C0 E6B69C
-93C1 E789B9
-93C2 E79DA3
-93C3 E7A6BF
-93C4 E7AFA4
-93C5 E6AF92
-93C6 E78BAC
-93C7 E8AAAD
-93C8 E6A083
-93C9 E6A9A1
-93CA E587B8
-93CB E7AA81
-93CC E6A4B4
-93CD E5B18A
-93CE E9B3B6
-93CF E88BAB
-93D0 E5AF85
-93D1 E98589
-93D2 E7809E
-93D3 E599B8
-93D4 E5B1AF
-93D5 E68387
-93D6 E695A6
-93D7 E6B28C
-93D8 E8B19A
-93D9 E98181
-93DA E9A093
-93DB E59191
-93DC E69B87
-93DD E9888D
-93DE E5A588
-93DF E982A3
-93E0 E58685
-93E1 E4B98D
-93E2 E587AA
-93E3 E89699
-93E4 E8AC8E
-93E5 E78198
-93E6 E68DBA
-93E7 E98D8B
-93E8 E6A5A2
-93E9 E9A6B4
-93EA E7B884
-93EB E795B7
-93EC E58D97
-93ED E6A5A0
-93EE E8BB9F
-93EF E99BA3
-93F0 E6B19D
-93F1 E4BA8C
-93F2 E5B0BC
-93F3 E5BC90
-93F4 E8BFA9
-93F5 E58C82
-93F6 E8B391
-93F7 E88289
-93F8 E899B9
-93F9 E5BBBF
-93FA E697A5
-93FB E4B9B3
-93FC E585A5
-9440 E5A682
-9441 E5B0BF
-9442 E99FAE
-9443 E4BBBB
-9444 E5A68A
-9445 E5BF8D
-9446 E8AA8D
-9447 E6BFA1
-9448 E7A6B0
-9449 E7A5A2
-944A E5AFA7
-944B E891B1
-944C E78CAB
-944D E786B1
-944E E5B9B4
-944F E5BFB5
-9450 E68DBB
-9451 E6929A
-9452 E78783
-9453 E7B298
-9454 E4B983
-9455 E5BBBC
-9456 E4B98B
-9457 E59F9C
-9458 E59AA2
-9459 E682A9
-945A E6BF83
-945B E7B48D
-945C E883BD
-945D E884B3
-945E E886BF
-945F E8BEB2
-9460 E8A697
-9461 E89AA4
-9462 E5B7B4
-9463 E68A8A
-9464 E692AD
-9465 E8A687
-9466 E69DB7
-9467 E6B3A2
-9468 E6B4BE
-9469 E790B6
-946A E7A0B4
-946B E5A986
-946C E7BDB5
-946D E88AAD
-946E E9A6AC
-946F E4BFB3
-9470 E5BB83
-9471 E68B9D
-9472 E68E92
-9473 E69597
-9474 E69DAF
-9475 E79B83
-9476 E7898C
-9477 E8838C
-9478 E882BA
-9479 E8BCA9
-947A E9858D
-947B E5808D
-947C E59FB9
-947D E5AA92
-947E E6A285
-9480 E6A5B3
-9481 E785A4
-9482 E78BBD
-9483 E8B2B7
-9484 E5A3B2
-9485 E8B3A0
-9486 E999AA
-9487 E98099
-9488 E89DBF
-9489 E7A7A4
-948A E79FA7
-948B E890A9
-948C E4BCAF
-948D E589A5
-948E E58D9A
-948F E68B8D
-9490 E69F8F
-9491 E6B38A
-9492 E799BD
-9493 E7AE94
-9494 E7B295
-9495 E888B6
-9496 E89684
-9497 E8BFAB
-9498 E69B9D
-9499 E6BCA0
-949A E78886
-949B E7B89B
-949C E88EAB
-949D E9A781
-949E E9BAA6
-949F E587BD
-94A0 E7AEB1
-94A1 E7A1B2
-94A2 E7AEB8
-94A3 E88287
-94A4 E7AD88
-94A5 E6ABA8
-94A6 E5B9A1
-94A7 E8828C
-94A8 E79591
-94A9 E795A0
-94AA E585AB
-94AB E989A2
-94AC E6BA8C
-94AD E799BA
-94AE E98697
-94AF E9ABAA
-94B0 E4BC90
-94B1 E7BDB0
-94B2 E68A9C
-94B3 E7AD8F
-94B4 E996A5
-94B5 E9B3A9
-94B6 E599BA
-94B7 E5A199
-94B8 E89BA4
-94B9 E99ABC
-94BA E4BCB4
-94BB E588A4
-94BC E58D8A
-94BD E58F8D
-94BE E58F9B
-94BF E5B886
-94C0 E690AC
-94C1 E69691
-94C2 E69DBF
-94C3 E6B0BE
-94C4 E6B18E
-94C5 E78988
-94C6 E78AAF
-94C7 E78FAD
-94C8 E79594
-94C9 E7B981
-94CA E888AC
-94CB E897A9
-94CC E8B2A9
-94CD E7AF84
-94CE E98786
-94CF E785A9
-94D0 E9A092
-94D1 E9A3AF
-94D2 E68CBD
-94D3 E699A9
-94D4 E795AA
-94D5 E79BA4
-94D6 E7A390
-94D7 E89583
-94D8 E89BAE
-94D9 E58CAA
-94DA E58D91
-94DB E590A6
-94DC E5A683
-94DD E5BA87
-94DE E5BDBC
-94DF E682B2
-94E0 E68989
-94E1 E689B9
-94E2 E68AAB
-94E3 E69690
-94E4 E6AF94
-94E5 E6B38C
-94E6 E796B2
-94E7 E79AAE
-94E8 E7A291
-94E9 E7A798
-94EA E7B78B
-94EB E7BDB7
-94EC E882A5
-94ED E8A2AB
-94EE E8AAB9
-94EF E8B2BB
-94F0 E981BF
-94F1 E99D9E
-94F2 E9A39B
-94F3 E6A88B
-94F4 E7B0B8
-94F5 E58299
-94F6 E5B0BE
-94F7 E5BEAE
-94F8 E69E87
-94F9 E6AF98
-94FA E790B5
-94FB E79C89
-94FC E7BE8E
-9540 E9BCBB
-9541 E69F8A
-9542 E7A897
-9543 E58CB9
-9544 E7968B
-9545 E9ABAD
-9546 E5BDA6
-9547 E8869D
-9548 E88FB1
-9549 E88298
-954A E5BCBC
-954B E5BF85
-954C E795A2
-954D E7AD86
-954E E980BC
-954F E6A1A7
-9550 E5A7AB
-9551 E5AA9B
-9552 E7B490
-9553 E799BE
-9554 E8ACAC
-9555 E4BFB5
-9556 E5BDAA
-9557 E6A899
-9558 E6B0B7
-9559 E6BC82
-955A E793A2
-955B E7A5A8
-955C E8A1A8
-955D E8A995
-955E E8B1B9
-955F E5BB9F
-9560 E68F8F
-9561 E79785
-9562 E7A792
-9563 E88B97
-9564 E98CA8
-9565 E98BB2
-9566 E8929C
-9567 E89BAD
-9568 E9B0AD
-9569 E59381
-956A E5BDAC
-956B E6968C
-956C E6B59C
-956D E78095
-956E E8B2A7
-956F E8B393
-9570 E9A0BB
-9571 E6958F
-9572 E793B6
-9573 E4B88D
-9574 E4BB98
-9575 E59FA0
-9576 E5A4AB
-9577 E5A9A6
-9578 E5AF8C
-9579 E586A8
-957A E5B883
-957B E5BA9C
-957C E68096
-957D E689B6
-957E E695B7
-9580 E696A7
-9581 E699AE
-9582 E6B5AE
-9583 E788B6
-9584 E7ACA6
-9585 E88590
-9586 E8869A
-9587 E88A99
-9588 E8AD9C
-9589 E8B2A0
-958A E8B3A6
-958B E8B5B4
-958C E9989C
-958D E99984
-958E E4BEAE
-958F E692AB
-9590 E6ADA6
-9591 E8889E
-9592 E891A1
-9593 E895AA
-9594 E983A8
-9595 E5B081
-9596 E6A593
-9597 E9A2A8
-9598 E891BA
-9599 E89597
-959A E4BC8F
-959B E589AF
-959C E5BEA9
-959D E5B985
-959E E69C8D
-959F E7A68F
-95A0 E885B9
-95A1 E8A487
-95A2 E8A686
-95A3 E6B7B5
-95A4 E5BC97
-95A5 E68995
-95A6 E6B2B8
-95A7 E4BB8F
-95A8 E789A9
-95A9 E9AE92
-95AA E58886
-95AB E590BB
-95AC E599B4
-95AD E5A2B3
-95AE E686A4
-95AF E689AE
-95B0 E7849A
-95B1 E5A5AE
-95B2 E7B289
-95B3 E7B39E
-95B4 E7B49B
-95B5 E99BB0
-95B6 E69687
-95B7 E8819E
-95B8 E4B899
-95B9 E4BDB5
-95BA E585B5
-95BB E5A180
-95BC E5B9A3
-95BD E5B9B3
-95BE E5BC8A
-95BF E69F84
-95C0 E4B8A6
-95C1 E894BD
-95C2 E99689
-95C3 E9999B
-95C4 E7B1B3
-95C5 E9A081
-95C6 E583BB
-95C7 E5A381
-95C8 E79996
-95C9 E7A2A7
-95CA E588A5
-95CB E79EA5
-95CC E89491
-95CD E7AE86
-95CE E5818F
-95CF E5A489
-95D0 E78987
-95D1 E7AF87
-95D2 E7B7A8
-95D3 E8BEBA
-95D4 E8BF94
-95D5 E9818D
-95D6 E4BEBF
-95D7 E58B89
-95D8 E5A8A9
-95D9 E5BC81
-95DA E99EAD
-95DB E4BF9D
-95DC E88897
-95DD E98BAA
-95DE E59C83
-95DF E68D95
-95E0 E6ADA9
-95E1 E794AB
-95E2 E8A39C
-95E3 E8BC94
-95E4 E7A982
-95E5 E58B9F
-95E6 E5A293
-95E7 E68595
-95E8 E6888A
-95E9 E69AAE
-95EA E6AF8D
-95EB E7B0BF
-95EC E88FA9
-95ED E580A3
-95EE E4BFB8
-95EF E58C85
-95F0 E59186
-95F1 E5A0B1
-95F2 E5A589
-95F3 E5AE9D
-95F4 E5B3B0
-95F5 E5B3AF
-95F6 E5B4A9
-95F7 E5BA96
-95F8 E68AB1
-95F9 E68DA7
-95FA E694BE
-95FB E696B9
-95FC E69C8B
-9640 E6B395
-9641 E6B3A1
-9642 E783B9
-9643 E7A0B2
-9644 E7B8AB
-9645 E8839E
-9646 E88AB3
-9647 E8908C
-9648 E893AC
-9649 E89C82
-964A E8A492
-964B E8A8AA
-964C E8B18A
-964D E982A6
-964E E98B92
-964F E9A3BD
-9650 E9B3B3
-9651 E9B5AC
-9652 E4B98F
-9653 E4BAA1
-9654 E5828D
-9655 E58996
-9656 E59D8A
-9657 E5A6A8
-9658 E5B8BD
-9659 E5BF98
-965A E5BF99
-965B E688BF
-965C E69AB4
-965D E69C9B
-965E E69F90
-965F E6A392
-9660 E58692
-9661 E7B4A1
-9662 E882AA
-9663 E886A8
-9664 E8AC80
-9665 E8B28C
-9666 E8B2BF
-9667 E989BE
-9668 E998B2
-9669 E590A0
-966A E9A0AC
-966B E58C97
-966C E58395
-966D E58D9C
-966E E5A2A8
-966F E692B2
-9670 E69CB4
-9671 E789A7
-9672 E79DA6
-9673 E7A986
-9674 E987A6
-9675 E58B83
-9676 E6B2A1
-9677 E6AE86
-9678 E5A080
-9679 E5B98C
-967A E5A594
-967B E69CAC
-967C E7BFBB
-967D E587A1
-967E E79B86
-9680 E691A9
-9681 E7A3A8
-9682 E9AD94
-9683 E9BABB
-9684 E59F8B
-9685 E5A6B9
-9686 E698A7
-9687 E69E9A
-9688 E6AF8E
-9689 E593A9
-968A E6A799
-968B E5B995
-968C E8869C
-968D E69E95
-968E E9AEAA
-968F E69FBE
-9690 E9B192
-9691 E6A19D
-9692 E4BAA6
-9693 E4BFA3
-9694 E58F88
-9695 E68AB9
-9696 E69CAB
-9697 E6B2AB
-9698 E8BF84
-9699 E4BEAD
-969A E7B9AD
-969B E9BABF
-969C E4B887
-969D E685A2
-969E E6BA80
-969F E6BCAB
-96A0 E89493
-96A1 E591B3
-96A2 E69CAA
-96A3 E9AD85
-96A4 E5B7B3
-96A5 E7AE95
-96A6 E5B2AC
-96A7 E5AF86
-96A8 E89C9C
-96A9 E6B98A
-96AA E89391
-96AB E7A894
-96AC E88488
-96AD E5A699
-96AE E7B28D
-96AF E6B091
-96B0 E79CA0
-96B1 E58B99
-96B2 E5A4A2
-96B3 E784A1
-96B4 E7899F
-96B5 E79F9B
-96B6 E99CA7
-96B7 E9B5A1
-96B8 E6A48B
-96B9 E5A9BF
-96BA E5A898
-96BB E586A5
-96BC E5908D
-96BD E591BD
-96BE E6988E
-96BF E79B9F
-96C0 E8BFB7
-96C1 E98A98
-96C2 E9B3B4
-96C3 E5A7AA
-96C4 E7899D
-96C5 E6BB85
-96C6 E5858D
-96C7 E6A389
-96C8 E7B6BF
-96C9 E7B7AC
-96CA E99DA2
-96CB E9BABA
-96CC E691B8
-96CD E6A8A1
-96CE E88C82
-96CF E5A684
-96D0 E5AD9F
-96D1 E6AF9B
-96D2 E78C9B
-96D3 E79BB2
-96D4 E7B6B2
-96D5 E88097
-96D6 E89299
-96D7 E584B2
-96D8 E69CA8
-96D9 E9BB99
-96DA E79BAE
-96DB E69DA2
-96DC E58BBF
-96DD E9A485
-96DE E5B0A4
-96DF E688BB
-96E0 E7B1BE
-96E1 E8B2B0
-96E2 E5958F
-96E3 E682B6
-96E4 E7B48B
-96E5 E99680
-96E6 E58C81
-96E7 E4B99F
-96E8 E586B6
-96E9 E5A49C
-96EA E788BA
-96EB E880B6
-96EC E9878E
-96ED E5BCA5
-96EE E79FA2
-96EF E58E84
-96F0 E5BDB9
-96F1 E7B484
-96F2 E896AC
-96F3 E8A8B3
-96F4 E8BA8D
-96F5 E99D96
-96F6 E69FB3
-96F7 E896AE
-96F8 E99193
-96F9 E68489
-96FA E68488
-96FB E6B2B9
-96FC E79992
-9740 E8ABAD
-9741 E8BCB8
-9742 E594AF
-9743 E4BD91
-9744 E584AA
-9745 E58B87
-9746 E58F8B
-9747 E5AEA5
-9748 E5B9BD
-9749 E682A0
-974A E68682
-974B E68F96
-974C E69C89
-974D E69F9A
-974E E6B9A7
-974F E6B68C
-9750 E78CB6
-9751 E78CB7
-9752 E794B1
-9753 E7A590
-9754 E8A395
-9755 E8AA98
-9756 E9818A
-9757 E98291
-9758 E983B5
-9759 E99B84
-975A E89E8D
-975B E5A495
-975C E4BA88
-975D E4BD99
-975E E4B88E
-975F E8AA89
-9760 E8BCBF
-9761 E9A090
-9762 E582AD
-9763 E5B9BC
-9764 E5A696
-9765 E5AEB9
-9766 E5BAB8
-9767 E68F9A
-9768 E68FBA
-9769 E69381
-976A E69B9C
-976B E6A58A
-976C E6A798
-976D E6B48B
-976E E6BAB6
-976F E78694
-9770 E794A8
-9771 E7AAAF
-9772 E7BE8A
-9773 E88080
-9774 E89189
-9775 E89389
-9776 E8A681
-9777 E8ACA1
-9778 E8B88A
-9779 E981A5
-977A E999BD
-977B E9A48A
-977C E685BE
-977D E68A91
-977E E6ACB2
-9780 E6B283
-9781 E6B5B4
-9782 E7BF8C
-9783 E7BFBC
-9784 E6B780
-9785 E7BE85
-9786 E89EBA
-9787 E8A3B8
-9788 E69DA5
-9789 E88EB1
-978A E9A0BC
-978B E99BB7
-978C E6B49B
-978D E7B5A1
-978E E890BD
-978F E985AA
-9790 E4B9B1
-9791 E58DB5
-9792 E5B590
-9793 E6AC84
-9794 E6BFAB
-9795 E8978D
-9796 E898AD
-9797 E8A6A7
-9798 E588A9
-9799 E5908F
-979A E5B1A5
-979B E69D8E
-979C E6A2A8
-979D E79086
-979E E79283
-979F E797A2
-97A0 E8A38F
-97A1 E8A3A1
-97A2 E9878C
-97A3 E99BA2
-97A4 E999B8
-97A5 E5BE8B
-97A6 E78E87
-97A7 E7AB8B
-97A8 E8918E
-97A9 E68EA0
-97AA E795A5
-97AB E58A89
-97AC E6B581
-97AD E6BA9C
-97AE E79089
-97AF E79599
-97B0 E7A1AB
-97B1 E7B292
-97B2 E99A86
-97B3 E7AB9C
-97B4 E9BE8D
-97B5 E4BEB6
-97B6 E685AE
-97B7 E69785
-97B8 E8999C
-97B9 E4BA86
-97BA E4BAAE
-97BB E5839A
-97BC E4B8A1
-97BD E5878C
-97BE E5AFAE
-97BF E69699
-97C0 E6A281
-97C1 E6B6BC
-97C2 E78C9F
-97C3 E79982
-97C4 E79EAD
-97C5 E7A89C
-97C6 E7B3A7
-97C7 E889AF
-97C8 E8AB92
-97C9 E981BC
-97CA E9878F
-97CB E999B5
-97CC E9A098
-97CD E58A9B
-97CE E7B791
-97CF E580AB
-97D0 E58E98
-97D1 E69E97
-97D2 E6B78B
-97D3 E78790
-97D4 E790B3
-97D5 E887A8
-97D6 E8BCAA
-97D7 E99AA3
-97D8 E9B197
-97D9 E9BA9F
-97DA E791A0
-97DB E5A181
-97DC E6B699
-97DD E7B4AF
-97DE E9A19E
-97DF E4BBA4
-97E0 E4BCB6
-97E1 E4BE8B
-97E2 E586B7
-97E3 E58AB1
-97E4 E5B6BA
-97E5 E6809C
-97E6 E78EB2
-97E7 E7A4BC
-97E8 E88B93
-97E9 E988B4
-97EA E99AB7
-97EB E99BB6
-97EC E99C8A
-97ED E9BA97
-97EE E9BDA2
-97EF E69AA6
-97F0 E6ADB4
-97F1 E58897
-97F2 E58AA3
-97F3 E78388
-97F4 E8A382
-97F5 E5BB89
-97F6 E6818B
-97F7 E68690
-97F8 E6BCA3
-97F9 E78589
-97FA E7B0BE
-97FB E7B7B4
-97FC E881AF
-9840 E893AE
-9841 E980A3
-9842 E98CAC
-9843 E59182
-9844 E9ADAF
-9845 E6AB93
-9846 E78289
-9847 E8B382
-9848 E8B7AF
-9849 E99CB2
-984A E58AB4
-984B E5A981
-984C E5BB8A
-984D E5BC84
-984E E69C97
-984F E6A5BC
-9850 E6A694
-9851 E6B5AA
-9852 E6BC8F
-9853 E789A2
-9854 E78BBC
-9855 E7AFAD
-9856 E88081
-9857 E881BE
-9858 E89D8B
-9859 E9838E
-985A E585AD
-985B E9BA93
-985C E7A684
-985D E8828B
-985E E98CB2
-985F E8AB96
-9860 E580AD
-9861 E5928C
-9862 E8A9B1
-9863 E6ADAA
-9864 E8B384
-9865 E88487
-9866 E68391
-9867 E69EA0
-9868 E9B7B2
-9869 E4BA99
-986A E4BA98
-986B E9B090
-986C E8A9AB
-986D E89781
-986E E895A8
-986F E6A480
-9870 E6B9BE
-9871 E7A297
-9872 E88595
-989F E5BC8C
-98A0 E4B890
-98A1 E4B895
-98A2 E4B8AA
-98A3 E4B8B1
-98A4 E4B8B6
-98A5 E4B8BC
-98A6 E4B8BF
-98A7 E4B982
-98A8 E4B996
-98A9 E4B998
-98AA E4BA82
-98AB E4BA85
-98AC E8B1AB
-98AD E4BA8A
-98AE E88892
-98AF E5BC8D
-98B0 E4BA8E
-98B1 E4BA9E
-98B2 E4BA9F
-98B3 E4BAA0
-98B4 E4BAA2
-98B5 E4BAB0
-98B6 E4BAB3
-98B7 E4BAB6
-98B8 E4BB8E
-98B9 E4BB8D
-98BA E4BB84
-98BB E4BB86
-98BC E4BB82
-98BD E4BB97
-98BE E4BB9E
-98BF E4BBAD
-98C0 E4BB9F
-98C1 E4BBB7
-98C2 E4BC89
-98C3 E4BD9A
-98C4 E4BCB0
-98C5 E4BD9B
-98C6 E4BD9D
-98C7 E4BD97
-98C8 E4BD87
-98C9 E4BDB6
-98CA E4BE88
-98CB E4BE8F
-98CC E4BE98
-98CD E4BDBB
-98CE E4BDA9
-98CF E4BDB0
-98D0 E4BE91
-98D1 E4BDAF
-98D2 E4BE86
-98D3 E4BE96
-98D4 E58498
-98D5 E4BF94
-98D6 E4BF9F
-98D7 E4BF8E
-98D8 E4BF98
-98D9 E4BF9B
-98DA E4BF91
-98DB E4BF9A
-98DC E4BF90
-98DD E4BFA4
-98DE E4BFA5
-98DF E5809A
-98E0 E580A8
-98E1 E58094
-98E2 E580AA
-98E3 E580A5
-98E4 E58085
-98E5 E4BC9C
-98E6 E4BFB6
-98E7 E580A1
-98E8 E580A9
-98E9 E580AC
-98EA E4BFBE
-98EB E4BFAF
-98EC E58091
-98ED E58086
-98EE E58183
-98EF E58187
-98F0 E69C83
-98F1 E58195
-98F2 E58190
-98F3 E58188
-98F4 E5819A
-98F5 E58196
-98F6 E581AC
-98F7 E581B8
-98F8 E58280
-98F9 E5829A
-98FA E58285
-98FB E582B4
-98FC E582B2
-9940 E58389
-9941 E5838A
-9942 E582B3
-9943 E58382
-9944 E58396
-9945 E5839E
-9946 E583A5
-9947 E583AD
-9948 E583A3
-9949 E583AE
-994A E583B9
-994B E583B5
-994C E58489
-994D E58481
-994E E58482
-994F E58496
-9950 E58495
-9951 E58494
-9952 E5849A
-9953 E584A1
-9954 E584BA
-9955 E584B7
-9956 E584BC
-9957 E584BB
-9958 E584BF
-9959 E58580
-995A E58592
-995B E5858C
-995C E58594
-995D E585A2
-995E E7ABB8
-995F E585A9
-9960 E585AA
-9961 E585AE
-9962 E58680
-9963 E58682
-9964 E59B98
-9965 E5868C
-9966 E58689
-9967 E5868F
-9968 E58691
-9969 E58693
-996A E58695
-996B E58696
-996C E586A4
-996D E586A6
-996E E586A2
-996F E586A9
-9970 E586AA
-9971 E586AB
-9972 E586B3
-9973 E586B1
-9974 E586B2
-9975 E586B0
-9976 E586B5
-9977 E586BD
-9978 E58785
-9979 E58789
-997A E5879B
-997B E587A0
-997C E89995
-997D E587A9
-997E E587AD
-9980 E587B0
-9981 E587B5
-9982 E587BE
-9983 E58884
-9984 E5888B
-9985 E58894
-9986 E5888E
-9987 E588A7
-9988 E588AA
-9989 E588AE
-998A E588B3
-998B E588B9
-998C E5898F
-998D E58984
-998E E5898B
-998F E5898C
-9990 E5899E
-9991 E58994
-9992 E589AA
-9993 E589B4
-9994 E589A9
-9995 E589B3
-9996 E589BF
-9997 E589BD
-9998 E58A8D
-9999 E58A94
-999A E58A92
-999B E589B1
-999C E58A88
-999D E58A91
-999E E8BEA8
-999F E8BEA7
-99A0 E58AAC
-99A1 E58AAD
-99A2 E58ABC
-99A3 E58AB5
-99A4 E58B81
-99A5 E58B8D
-99A6 E58B97
-99A7 E58B9E
-99A8 E58BA3
-99A9 E58BA6
-99AA E9A3AD
-99AB E58BA0
-99AC E58BB3
-99AD E58BB5
-99AE E58BB8
-99AF E58BB9
-99B0 E58C86
-99B1 E58C88
-99B2 E794B8
-99B3 E58C8D
-99B4 E58C90
-99B5 E58C8F
-99B6 E58C95
-99B7 E58C9A
-99B8 E58CA3
-99B9 E58CAF
-99BA E58CB1
-99BB E58CB3
-99BC E58CB8
-99BD E58D80
-99BE E58D86
-99BF E58D85
-99C0 E4B897
-99C1 E58D89
-99C2 E58D8D
-99C3 E58796
-99C4 E58D9E
-99C5 E58DA9
-99C6 E58DAE
-99C7 E5A498
-99C8 E58DBB
-99C9 E58DB7
-99CA E58E82
-99CB E58E96
-99CC E58EA0
-99CD E58EA6
-99CE E58EA5
-99CF E58EAE
-99D0 E58EB0
-99D1 E58EB6
-99D2 E58F83
-99D3 E7B092
-99D4 E99B99
-99D5 E58F9F
-99D6 E69BBC
-99D7 E787AE
-99D8 E58FAE
-99D9 E58FA8
-99DA E58FAD
-99DB E58FBA
-99DC E59081
-99DD E590BD
-99DE E59180
-99DF E590AC
-99E0 E590AD
-99E1 E590BC
-99E2 E590AE
-99E3 E590B6
-99E4 E590A9
-99E5 E5909D
-99E6 E5918E
-99E7 E5928F
-99E8 E591B5
-99E9 E5928E
-99EA E5919F
-99EB E591B1
-99EC E591B7
-99ED E591B0
-99EE E59292
-99EF E591BB
-99F0 E59280
-99F1 E591B6
-99F2 E59284
-99F3 E59290
-99F4 E59286
-99F5 E59387
-99F6 E592A2
-99F7 E592B8
-99F8 E592A5
-99F9 E592AC
-99FA E59384
-99FB E59388
-99FC E592A8
-9A40 E592AB
-9A41 E59382
-9A42 E592A4
-9A43 E592BE
-9A44 E592BC
-9A45 E59398
-9A46 E593A5
-9A47 E593A6
-9A48 E5948F
-9A49 E59494
-9A4A E593BD
-9A4B E593AE
-9A4C E593AD
-9A4D E593BA
-9A4E E593A2
-9A4F E594B9
-9A50 E59580
-9A51 E595A3
-9A52 E5958C
-9A53 E594AE
-9A54 E5959C
-9A55 E59585
-9A56 E59596
-9A57 E59597
-9A58 E594B8
-9A59 E594B3
-9A5A E5959D
-9A5B E59699
-9A5C E59680
-9A5D E592AF
-9A5E E5968A
-9A5F E5969F
-9A60 E595BB
-9A61 E595BE
-9A62 E59698
-9A63 E5969E
-9A64 E596AE
-9A65 E595BC
-9A66 E59683
-9A67 E596A9
-9A68 E59687
-9A69 E596A8
-9A6A E5979A
-9A6B E59785
-9A6C E5979F
-9A6D E59784
-9A6E E5979C
-9A6F E597A4
-9A70 E59794
-9A71 E59894
-9A72 E597B7
-9A73 E59896
-9A74 E597BE
-9A75 E597BD
-9A76 E5989B
-9A77 E597B9
-9A78 E5998E
-9A79 E59990
-9A7A E7879F
-9A7B E598B4
-9A7C E598B6
-9A7D E598B2
-9A7E E598B8
-9A80 E599AB
-9A81 E599A4
-9A82 E598AF
-9A83 E599AC
-9A84 E599AA
-9A85 E59A86
-9A86 E59A80
-9A87 E59A8A
-9A88 E59AA0
-9A89 E59A94
-9A8A E59A8F
-9A8B E59AA5
-9A8C E59AAE
-9A8D E59AB6
-9A8E E59AB4
-9A8F E59B82
-9A90 E59ABC
-9A91 E59B81
-9A92 E59B83
-9A93 E59B80
-9A94 E59B88
-9A95 E59B8E
-9A96 E59B91
-9A97 E59B93
-9A98 E59B97
-9A99 E59BAE
-9A9A E59BB9
-9A9B E59C80
-9A9C E59BBF
-9A9D E59C84
-9A9E E59C89
-9A9F E59C88
-9AA0 E59C8B
-9AA1 E59C8D
-9AA2 E59C93
-9AA3 E59C98
-9AA4 E59C96
-9AA5 E59787
-9AA6 E59C9C
-9AA7 E59CA6
-9AA8 E59CB7
-9AA9 E59CB8
-9AAA E59D8E
-9AAB E59CBB
-9AAC E59D80
-9AAD E59D8F
-9AAE E59DA9
-9AAF E59F80
-9AB0 E59E88
-9AB1 E59DA1
-9AB2 E59DBF
-9AB3 E59E89
-9AB4 E59E93
-9AB5 E59EA0
-9AB6 E59EB3
-9AB7 E59EA4
-9AB8 E59EAA
-9AB9 E59EB0
-9ABA E59F83
-9ABB E59F86
-9ABC E59F94
-9ABD E59F92
-9ABE E59F93
-9ABF E5A08A
-9AC0 E59F96
-9AC1 E59FA3
-9AC2 E5A08B
-9AC3 E5A099
-9AC4 E5A09D
-9AC5 E5A1B2
-9AC6 E5A0A1
-9AC7 E5A1A2
-9AC8 E5A18B
-9AC9 E5A1B0
-9ACA E6AF80
-9ACB E5A192
-9ACC E5A0BD
-9ACD E5A1B9
-9ACE E5A285
-9ACF E5A2B9
-9AD0 E5A29F
-9AD1 E5A2AB
-9AD2 E5A2BA
-9AD3 E5A39E
-9AD4 E5A2BB
-9AD5 E5A2B8
-9AD6 E5A2AE
-9AD7 E5A385
-9AD8 E5A393
-9AD9 E5A391
-9ADA E5A397
-9ADB E5A399
-9ADC E5A398
-9ADD E5A3A5
-9ADE E5A39C
-9ADF E5A3A4
-9AE0 E5A39F
-9AE1 E5A3AF
-9AE2 E5A3BA
-9AE3 E5A3B9
-9AE4 E5A3BB
-9AE5 E5A3BC
-9AE6 E5A3BD
-9AE7 E5A482
-9AE8 E5A48A
-9AE9 E5A490
-9AEA E5A49B
-9AEB E6A2A6
-9AEC E5A4A5
-9AED E5A4AC
-9AEE E5A4AD
-9AEF E5A4B2
-9AF0 E5A4B8
-9AF1 E5A4BE
-9AF2 E7AB92
-9AF3 E5A595
-9AF4 E5A590
-9AF5 E5A58E
-9AF6 E5A59A
-9AF7 E5A598
-9AF8 E5A5A2
-9AF9 E5A5A0
-9AFA E5A5A7
-9AFB E5A5AC
-9AFC E5A5A9
-9B40 E5A5B8
-9B41 E5A681
-9B42 E5A69D
-9B43 E4BD9E
-9B44 E4BEAB
-9B45 E5A6A3
-9B46 E5A6B2
-9B47 E5A786
-9B48 E5A7A8
-9B49 E5A79C
-9B4A E5A68D
-9B4B E5A799
-9B4C E5A79A
-9B4D E5A8A5
-9B4E E5A89F
-9B4F E5A891
-9B50 E5A89C
-9B51 E5A889
-9B52 E5A89A
-9B53 E5A980
-9B54 E5A9AC
-9B55 E5A989
-9B56 E5A8B5
-9B57 E5A8B6
-9B58 E5A9A2
-9B59 E5A9AA
-9B5A E5AA9A
-9B5B E5AABC
-9B5C E5AABE
-9B5D E5AB8B
-9B5E E5AB82
-9B5F E5AABD
-9B60 E5ABA3
-9B61 E5AB97
-9B62 E5ABA6
-9B63 E5ABA9
-9B64 E5AB96
-9B65 E5ABBA
-9B66 E5ABBB
-9B67 E5AC8C
-9B68 E5AC8B
-9B69 E5AC96
-9B6A E5ACB2
-9B6B E5AB90
-9B6C E5ACAA
-9B6D E5ACB6
-9B6E E5ACBE
-9B6F E5AD83
-9B70 E5AD85
-9B71 E5AD80
-9B72 E5AD91
-9B73 E5AD95
-9B74 E5AD9A
-9B75 E5AD9B
-9B76 E5ADA5
-9B77 E5ADA9
-9B78 E5ADB0
-9B79 E5ADB3
-9B7A E5ADB5
-9B7B E5ADB8
-9B7C E69688
-9B7D E5ADBA
-9B7E E5AE80
-9B80 E5AE83
-9B81 E5AEA6
-9B82 E5AEB8
-9B83 E5AF83
-9B84 E5AF87
-9B85 E5AF89
-9B86 E5AF94
-9B87 E5AF90
-9B88 E5AFA4
-9B89 E5AFA6
-9B8A E5AFA2
-9B8B E5AF9E
-9B8C E5AFA5
-9B8D E5AFAB
-9B8E E5AFB0
-9B8F E5AFB6
-9B90 E5AFB3
-9B91 E5B085
-9B92 E5B087
-9B93 E5B088
-9B94 E5B08D
-9B95 E5B093
-9B96 E5B0A0
-9B97 E5B0A2
-9B98 E5B0A8
-9B99 E5B0B8
-9B9A E5B0B9
-9B9B E5B181
-9B9C E5B186
-9B9D E5B18E
-9B9E E5B193
-9B9F E5B190
-9BA0 E5B18F
-9BA1 E5ADB1
-9BA2 E5B1AC
-9BA3 E5B1AE
-9BA4 E4B9A2
-9BA5 E5B1B6
-9BA6 E5B1B9
-9BA7 E5B28C
-9BA8 E5B291
-9BA9 E5B294
-9BAA E5A69B
-9BAB E5B2AB
-9BAC E5B2BB
-9BAD E5B2B6
-9BAE E5B2BC
-9BAF E5B2B7
-9BB0 E5B385
-9BB1 E5B2BE
-9BB2 E5B387
-9BB3 E5B399
-9BB4 E5B3A9
-9BB5 E5B3BD
-9BB6 E5B3BA
-9BB7 E5B3AD
-9BB8 E5B68C
-9BB9 E5B3AA
-9BBA E5B48B
-9BBB E5B495
-9BBC E5B497
-9BBD E5B59C
-9BBE E5B49F
-9BBF E5B49B
-9BC0 E5B491
-9BC1 E5B494
-9BC2 E5B4A2
-9BC3 E5B49A
-9BC4 E5B499
-9BC5 E5B498
-9BC6 E5B58C
-9BC7 E5B592
-9BC8 E5B58E
-9BC9 E5B58B
-9BCA E5B5AC
-9BCB E5B5B3
-9BCC E5B5B6
-9BCD E5B687
-9BCE E5B684
-9BCF E5B682
-9BD0 E5B6A2
-9BD1 E5B69D
-9BD2 E5B6AC
-9BD3 E5B6AE
-9BD4 E5B6BD
-9BD5 E5B690
-9BD6 E5B6B7
-9BD7 E5B6BC
-9BD8 E5B789
-9BD9 E5B78D
-9BDA E5B793
-9BDB E5B792
-9BDC E5B796
-9BDD E5B79B
-9BDE E5B7AB
-9BDF E5B7B2
-9BE0 E5B7B5
-9BE1 E5B88B
-9BE2 E5B89A
-9BE3 E5B899
-9BE4 E5B891
-9BE5 E5B89B
-9BE6 E5B8B6
-9BE7 E5B8B7
-9BE8 E5B984
-9BE9 E5B983
-9BEA E5B980
-9BEB E5B98E
-9BEC E5B997
-9BED E5B994
-9BEE E5B99F
-9BEF E5B9A2
-9BF0 E5B9A4
-9BF1 E5B987
-9BF2 E5B9B5
-9BF3 E5B9B6
-9BF4 E5B9BA
-9BF5 E9BABC
-9BF6 E5B9BF
-9BF7 E5BAA0
-9BF8 E5BB81
-9BF9 E5BB82
-9BFA E5BB88
-9BFB E5BB90
-9BFC E5BB8F
-9C40 E5BB96
-9C41 E5BBA3
-9C42 E5BB9D
-9C43 E5BB9A
-9C44 E5BB9B
-9C45 E5BBA2
-9C46 E5BBA1
-9C47 E5BBA8
-9C48 E5BBA9
-9C49 E5BBAC
-9C4A E5BBB1
-9C4B E5BBB3
-9C4C E5BBB0
-9C4D E5BBB4
-9C4E E5BBB8
-9C4F E5BBBE
-9C50 E5BC83
-9C51 E5BC89
-9C52 E5BD9D
-9C53 E5BD9C
-9C54 E5BC8B
-9C55 E5BC91
-9C56 E5BC96
-9C57 E5BCA9
-9C58 E5BCAD
-9C59 E5BCB8
-9C5A E5BD81
-9C5B E5BD88
-9C5C E5BD8C
-9C5D E5BD8E
-9C5E E5BCAF
-9C5F E5BD91
-9C60 E5BD96
-9C61 E5BD97
-9C62 E5BD99
-9C63 E5BDA1
-9C64 E5BDAD
-9C65 E5BDB3
-9C66 E5BDB7
-9C67 E5BE83
-9C68 E5BE82
-9C69 E5BDBF
-9C6A E5BE8A
-9C6B E5BE88
-9C6C E5BE91
-9C6D E5BE87
-9C6E E5BE9E
-9C6F E5BE99
-9C70 E5BE98
-9C71 E5BEA0
-9C72 E5BEA8
-9C73 E5BEAD
-9C74 E5BEBC
-9C75 E5BF96
-9C76 E5BFBB
-9C77 E5BFA4
-9C78 E5BFB8
-9C79 E5BFB1
-9C7A E5BF9D
-9C7B E682B3
-9C7C E5BFBF
-9C7D E680A1
-9C7E E681A0
-9C80 E68099
-9C81 E68090
-9C82 E680A9
-9C83 E6808E
-9C84 E680B1
-9C85 E6809B
-9C86 E68095
-9C87 E680AB
-9C88 E680A6
-9C89 E6808F
-9C8A E680BA
-9C8B E6819A
-9C8C E68181
-9C8D E681AA
-9C8E E681B7
-9C8F E6819F
-9C90 E6818A
-9C91 E68186
-9C92 E6818D
-9C93 E681A3
-9C94 E68183
-9C95 E681A4
-9C96 E68182
-9C97 E681AC
-9C98 E681AB
-9C99 E68199
-9C9A E68281
-9C9B E6828D
-9C9C E683A7
-9C9D E68283
-9C9E E6829A
-9C9F E68284
-9CA0 E6829B
-9CA1 E68296
-9CA2 E68297
-9CA3 E68292
-9CA4 E682A7
-9CA5 E6828B
-9CA6 E683A1
-9CA7 E682B8
-9CA8 E683A0
-9CA9 E68393
-9CAA E682B4
-9CAB E5BFB0
-9CAC E682BD
-9CAD E68386
-9CAE E682B5
-9CAF E68398
-9CB0 E6858D
-9CB1 E68495
-9CB2 E68486
-9CB3 E683B6
-9CB4 E683B7
-9CB5 E68480
-9CB6 E683B4
-9CB7 E683BA
-9CB8 E68483
-9CB9 E684A1
-9CBA E683BB
-9CBB E683B1
-9CBC E6848D
-9CBD E6848E
-9CBE E68587
-9CBF E684BE
-9CC0 E684A8
-9CC1 E684A7
-9CC2 E6858A
-9CC3 E684BF
-9CC4 E684BC
-9CC5 E684AC
-9CC6 E684B4
-9CC7 E684BD
-9CC8 E68582
-9CC9 E68584
-9CCA E685B3
-9CCB E685B7
-9CCC E68598
-9CCD E68599
-9CCE E6859A
-9CCF E685AB
-9CD0 E685B4
-9CD1 E685AF
-9CD2 E685A5
-9CD3 E685B1
-9CD4 E6859F
-9CD5 E6859D
-9CD6 E68593
-9CD7 E685B5
-9CD8 E68699
-9CD9 E68696
-9CDA E68687
-9CDB E686AC
-9CDC E68694
-9CDD E6869A
-9CDE E6868A
-9CDF E68691
-9CE0 E686AB
-9CE1 E686AE
-9CE2 E6878C
-9CE3 E6878A
-9CE4 E68789
-9CE5 E687B7
-9CE6 E68788
-9CE7 E68783
-9CE8 E68786
-9CE9 E686BA
-9CEA E6878B
-9CEB E7BDB9
-9CEC E6878D
-9CED E687A6
-9CEE E687A3
-9CEF E687B6
-9CF0 E687BA
-9CF1 E687B4
-9CF2 E687BF
-9CF3 E687BD
-9CF4 E687BC
-9CF5 E687BE
-9CF6 E68880
-9CF7 E68888
-9CF8 E68889
-9CF9 E6888D
-9CFA E6888C
-9CFB E68894
-9CFC E6889B
-9D40 E6889E
-9D41 E688A1
-9D42 E688AA
-9D43 E688AE
-9D44 E688B0
-9D45 E688B2
-9D46 E688B3
-9D47 E68981
-9D48 E6898E
-9D49 E6899E
-9D4A E689A3
-9D4B E6899B
-9D4C E689A0
-9D4D E689A8
-9D4E E689BC
-9D4F E68A82
-9D50 E68A89
-9D51 E689BE
-9D52 E68A92
-9D53 E68A93
-9D54 E68A96
-9D55 E68B94
-9D56 E68A83
-9D57 E68A94
-9D58 E68B97
-9D59 E68B91
-9D5A E68ABB
-9D5B E68B8F
-9D5C E68BBF
-9D5D E68B86
-9D5E E69394
-9D5F E68B88
-9D60 E68B9C
-9D61 E68B8C
-9D62 E68B8A
-9D63 E68B82
-9D64 E68B87
-9D65 E68A9B
-9D66 E68B89
-9D67 E68C8C
-9D68 E68BAE
-9D69 E68BB1
-9D6A E68CA7
-9D6B E68C82
-9D6C E68C88
-9D6D E68BAF
-9D6E E68BB5
-9D6F E68D90
-9D70 E68CBE
-9D71 E68D8D
-9D72 E6909C
-9D73 E68D8F
-9D74 E68E96
-9D75 E68E8E
-9D76 E68E80
-9D77 E68EAB
-9D78 E68DB6
-9D79 E68EA3
-9D7A E68E8F
-9D7B E68E89
-9D7C E68E9F
-9D7D E68EB5
-9D7E E68DAB
-9D80 E68DA9
-9D81 E68EBE
-9D82 E68FA9
-9D83 E68F80
-9D84 E68F86
-9D85 E68FA3
-9D86 E68F89
-9D87 E68F92
-9D88 E68FB6
-9D89 E68F84
-9D8A E69096
-9D8B E690B4
-9D8C E69086
-9D8D E69093
-9D8E E690A6
-9D8F E690B6
-9D90 E6949D
-9D91 E69097
-9D92 E690A8
-9D93 E6908F
-9D94 E691A7
-9D95 E691AF
-9D96 E691B6
-9D97 E6918E
-9D98 E694AA
-9D99 E69295
-9D9A E69293
-9D9B E692A5
-9D9C E692A9
-9D9D E69288
-9D9E E692BC
-9D9F E6939A
-9DA0 E69392
-9DA1 E69385
-9DA2 E69387
-9DA3 E692BB
-9DA4 E69398
-9DA5 E69382
-9DA6 E693B1
-9DA7 E693A7
-9DA8 E88889
-9DA9 E693A0
-9DAA E693A1
-9DAB E68AAC
-9DAC E693A3
-9DAD E693AF
-9DAE E694AC
-9DAF E693B6
-9DB0 E693B4
-9DB1 E693B2
-9DB2 E693BA
-9DB3 E69480
-9DB4 E693BD
-9DB5 E69498
-9DB6 E6949C
-9DB7 E69485
-9DB8 E694A4
-9DB9 E694A3
-9DBA E694AB
-9DBB E694B4
-9DBC E694B5
-9DBD E694B7
-9DBE E694B6
-9DBF E694B8
-9DC0 E7958B
-9DC1 E69588
-9DC2 E69596
-9DC3 E69595
-9DC4 E6958D
-9DC5 E69598
-9DC6 E6959E
-9DC7 E6959D
-9DC8 E695B2
-9DC9 E695B8
-9DCA E69682
-9DCB E69683
-9DCC E8AE8A
-9DCD E6969B
-9DCE E6969F
-9DCF E696AB
-9DD0 E696B7
-9DD1 E69783
-9DD2 E69786
-9DD3 E69781
-9DD4 E69784
-9DD5 E6978C
-9DD6 E69792
-9DD7 E6979B
-9DD8 E69799
-9DD9 E697A0
-9DDA E697A1
-9DDB E697B1
-9DDC E69DB2
-9DDD E6988A
-9DDE E69883
-9DDF E697BB
-9DE0 E69DB3
-9DE1 E698B5
-9DE2 E698B6
-9DE3 E698B4
-9DE4 E6989C
-9DE5 E6998F
-9DE6 E69984
-9DE7 E69989
-9DE8 E69981
-9DE9 E6999E
-9DEA E6999D
-9DEB E699A4
-9DEC E699A7
-9DED E699A8
-9DEE E6999F
-9DEF E699A2
-9DF0 E699B0
-9DF1 E69A83
-9DF2 E69A88
-9DF3 E69A8E
-9DF4 E69A89
-9DF5 E69A84
-9DF6 E69A98
-9DF7 E69A9D
-9DF8 E69B81
-9DF9 E69AB9
-9DFA E69B89
-9DFB E69ABE
-9DFC E69ABC
-9E40 E69B84
-9E41 E69AB8
-9E42 E69B96
-9E43 E69B9A
-9E44 E69BA0
-9E45 E698BF
-9E46 E69BA6
-9E47 E69BA9
-9E48 E69BB0
-9E49 E69BB5
-9E4A E69BB7
-9E4B E69C8F
-9E4C E69C96
-9E4D E69C9E
-9E4E E69CA6
-9E4F E69CA7
-9E50 E99CB8
-9E51 E69CAE
-9E52 E69CBF
-9E53 E69CB6
-9E54 E69D81
-9E55 E69CB8
-9E56 E69CB7
-9E57 E69D86
-9E58 E69D9E
-9E59 E69DA0
-9E5A E69D99
-9E5B E69DA3
-9E5C E69DA4
-9E5D E69E89
-9E5E E69DB0
-9E5F E69EA9
-9E60 E69DBC
-9E61 E69DAA
-9E62 E69E8C
-9E63 E69E8B
-9E64 E69EA6
-9E65 E69EA1
-9E66 E69E85
-9E67 E69EB7
-9E68 E69FAF
-9E69 E69EB4
-9E6A E69FAC
-9E6B E69EB3
-9E6C E69FA9
-9E6D E69EB8
-9E6E E69FA4
-9E6F E69F9E
-9E70 E69F9D
-9E71 E69FA2
-9E72 E69FAE
-9E73 E69EB9
-9E74 E69F8E
-9E75 E69F86
-9E76 E69FA7
-9E77 E6AA9C
-9E78 E6A09E
-9E79 E6A186
-9E7A E6A0A9
-9E7B E6A180
-9E7C E6A18D
-9E7D E6A0B2
-9E7E E6A18E
-9E80 E6A2B3
-9E81 E6A0AB
-9E82 E6A199
-9E83 E6A1A3
-9E84 E6A1B7
-9E85 E6A1BF
-9E86 E6A29F
-9E87 E6A28F
-9E88 E6A2AD
-9E89 E6A294
-9E8A E6A29D
-9E8B E6A29B
-9E8C E6A283
-9E8D E6AAAE
-9E8E E6A2B9
-9E8F E6A1B4
-9E90 E6A2B5
-9E91 E6A2A0
-9E92 E6A2BA
-9E93 E6A48F
-9E94 E6A28D
-9E95 E6A1BE
-9E96 E6A481
-9E97 E6A38A
-9E98 E6A488
-9E99 E6A398
-9E9A E6A4A2
-9E9B E6A4A6
-9E9C E6A3A1
-9E9D E6A48C
-9E9E E6A38D
-9E9F E6A394
-9EA0 E6A3A7
-9EA1 E6A395
-9EA2 E6A4B6
-9EA3 E6A492
-9EA4 E6A484
-9EA5 E6A397
-9EA6 E6A3A3
-9EA7 E6A4A5
-9EA8 E6A3B9
-9EA9 E6A3A0
-9EAA E6A3AF
-9EAB E6A4A8
-9EAC E6A4AA
-9EAD E6A49A
-9EAE E6A4A3
-9EAF E6A4A1
-9EB0 E6A386
-9EB1 E6A5B9
-9EB2 E6A5B7
-9EB3 E6A59C
-9EB4 E6A5B8
-9EB5 E6A5AB
-9EB6 E6A594
-9EB7 E6A5BE
-9EB8 E6A5AE
-9EB9 E6A4B9
-9EBA E6A5B4
-9EBB E6A4BD
-9EBC E6A599
-9EBD E6A4B0
-9EBE E6A5A1
-9EBF E6A59E
-9EC0 E6A59D
-9EC1 E6A681
-9EC2 E6A5AA
-9EC3 E6A6B2
-9EC4 E6A6AE
-9EC5 E6A790
-9EC6 E6A6BF
-9EC7 E6A781
-9EC8 E6A793
-9EC9 E6A6BE
-9ECA E6A78E
-9ECB E5AFA8
-9ECC E6A78A
-9ECD E6A79D
-9ECE E6A6BB
-9ECF E6A783
-9ED0 E6A6A7
-9ED1 E6A8AE
-9ED2 E6A691
-9ED3 E6A6A0
-9ED4 E6A69C
-9ED5 E6A695
-9ED6 E6A6B4
-9ED7 E6A79E
-9ED8 E6A7A8
-9ED9 E6A882
-9EDA E6A89B
-9EDB E6A7BF
-9EDC E6AC8A
-9EDD E6A7B9
-9EDE E6A7B2
-9EDF E6A7A7
-9EE0 E6A885
-9EE1 E6A6B1
-9EE2 E6A89E
-9EE3 E6A7AD
-9EE4 E6A894
-9EE5 E6A7AB
-9EE6 E6A88A
-9EE7 E6A892
-9EE8 E6AB81
-9EE9 E6A8A3
-9EEA E6A893
-9EEB E6A984
-9EEC E6A88C
-9EED E6A9B2
-9EEE E6A8B6
-9EEF E6A9B8
-9EF0 E6A987
-9EF1 E6A9A2
-9EF2 E6A999
-9EF3 E6A9A6
-9EF4 E6A988
-9EF5 E6A8B8
-9EF6 E6A8A2
-9EF7 E6AA90
-9EF8 E6AA8D
-9EF9 E6AAA0
-9EFA E6AA84
-9EFB E6AAA2
-9EFC E6AAA3
-9F40 E6AA97
-9F41 E89897
-9F42 E6AABB
-9F43 E6AB83
-9F44 E6AB82
-9F45 E6AAB8
-9F46 E6AAB3
-9F47 E6AAAC
-9F48 E6AB9E
-9F49 E6AB91
-9F4A E6AB9F
-9F4B E6AAAA
-9F4C E6AB9A
-9F4D E6ABAA
-9F4E E6ABBB
-9F4F E6AC85
-9F50 E89896
-9F51 E6ABBA
-9F52 E6AC92
-9F53 E6AC96
-9F54 E9ACB1
-9F55 E6AC9F
-9F56 E6ACB8
-9F57 E6ACB7
-9F58 E79B9C
-9F59 E6ACB9
-9F5A E9A3AE
-9F5B E6AD87
-9F5C E6AD83
-9F5D E6AD89
-9F5E E6AD90
-9F5F E6AD99
-9F60 E6AD94
-9F61 E6AD9B
-9F62 E6AD9F
-9F63 E6ADA1
-9F64 E6ADB8
-9F65 E6ADB9
-9F66 E6ADBF
-9F67 E6AE80
-9F68 E6AE84
-9F69 E6AE83
-9F6A E6AE8D
-9F6B E6AE98
-9F6C E6AE95
-9F6D E6AE9E
-9F6E E6AEA4
-9F6F E6AEAA
-9F70 E6AEAB
-9F71 E6AEAF
-9F72 E6AEB2
-9F73 E6AEB1
-9F74 E6AEB3
-9F75 E6AEB7
-9F76 E6AEBC
-9F77 E6AF86
-9F78 E6AF8B
-9F79 E6AF93
-9F7A E6AF9F
-9F7B E6AFAC
-9F7C E6AFAB
-9F7D E6AFB3
-9F7E E6AFAF
-9F80 E9BABE
-9F81 E6B088
-9F82 E6B093
-9F83 E6B094
-9F84 E6B09B
-9F85 E6B0A4
-9F86 E6B0A3
-9F87 E6B19E
-9F88 E6B195
-9F89 E6B1A2
-9F8A E6B1AA
-9F8B E6B282
-9F8C E6B28D
-9F8D E6B29A
-9F8E E6B281
-9F8F E6B29B
-9F90 E6B1BE
-9F91 E6B1A8
-9F92 E6B1B3
-9F93 E6B292
-9F94 E6B290
-9F95 E6B384
-9F96 E6B3B1
-9F97 E6B393
-9F98 E6B2BD
-9F99 E6B397
-9F9A E6B385
-9F9B E6B39D
-9F9C E6B2AE
-9F9D E6B2B1
-9F9E E6B2BE
-9F9F E6B2BA
-9FA0 E6B39B
-9FA1 E6B3AF
-9FA2 E6B399
-9FA3 E6B3AA
-9FA4 E6B49F
-9FA5 E8A18D
-9FA6 E6B4B6
-9FA7 E6B4AB
-9FA8 E6B4BD
-9FA9 E6B4B8
-9FAA E6B499
-9FAB E6B4B5
-9FAC E6B4B3
-9FAD E6B492
-9FAE E6B48C
-9FAF E6B5A3
-9FB0 E6B693
-9FB1 E6B5A4
-9FB2 E6B59A
-9FB3 E6B5B9
-9FB4 E6B599
-9FB5 E6B68E
-9FB6 E6B695
-9FB7 E6BFA4
-9FB8 E6B685
-9FB9 E6B7B9
-9FBA E6B895
-9FBB E6B88A
-9FBC E6B6B5
-9FBD E6B787
-9FBE E6B7A6
-9FBF E6B6B8
-9FC0 E6B786
-9FC1 E6B7AC
-9FC2 E6B79E
-9FC3 E6B78C
-9FC4 E6B7A8
-9FC5 E6B792
-9FC6 E6B785
-9FC7 E6B7BA
-9FC8 E6B799
-9FC9 E6B7A4
-9FCA E6B795
-9FCB E6B7AA
-9FCC E6B7AE
-9FCD E6B8AD
-9FCE E6B9AE
-9FCF E6B8AE
-9FD0 E6B899
-9FD1 E6B9B2
-9FD2 E6B99F
-9FD3 E6B8BE
-9FD4 E6B8A3
-9FD5 E6B9AB
-9FD6 E6B8AB
-9FD7 E6B9B6
-9FD8 E6B98D
-9FD9 E6B89F
-9FDA E6B983
-9FDB E6B8BA
-9FDC E6B98E
-9FDD E6B8A4
-9FDE E6BBBF
-9FDF E6B89D
-9FE0 E6B8B8
-9FE1 E6BA82
-9FE2 E6BAAA
-9FE3 E6BA98
-9FE4 E6BB89
-9FE5 E6BAB7
-9FE6 E6BB93
-9FE7 E6BABD
-9FE8 E6BAAF
-9FE9 E6BB84
-9FEA E6BAB2
-9FEB E6BB94
-9FEC E6BB95
-9FED E6BA8F
-9FEE E6BAA5
-9FEF E6BB82
-9FF0 E6BA9F
-9FF1 E6BD81
-9FF2 E6BC91
-9FF3 E7818C
-9FF4 E6BBAC
-9FF5 E6BBB8
-9FF6 E6BBBE
-9FF7 E6BCBF
-9FF8 E6BBB2
-9FF9 E6BCB1
-9FFA E6BBAF
-9FFB E6BCB2
-9FFC E6BB8C
-A1 EFBDA1
-A2 EFBDA2
-A3 EFBDA3
-A4 EFBDA4
-A5 EFBDA5
-A6 EFBDA6
-A7 EFBDA7
-A8 EFBDA8
-A9 EFBDA9
-AA EFBDAA
-AB EFBDAB
-AC EFBDAC
-AD EFBDAD
-AE EFBDAE
-AF EFBDAF
-B0 EFBDB0
-B1 EFBDB1
-B2 EFBDB2
-B3 EFBDB3
-B4 EFBDB4
-B5 EFBDB5
-B6 EFBDB6
-B7 EFBDB7
-B8 EFBDB8
-B9 EFBDB9
-BA EFBDBA
-BB EFBDBB
-BC EFBDBC
-BD EFBDBD
-BE EFBDBE
-BF EFBDBF
-C0 EFBE80
-C1 EFBE81
-C2 EFBE82
-C3 EFBE83
-C4 EFBE84
-C5 EFBE85
-C6 EFBE86
-C7 EFBE87
-C8 EFBE88
-C9 EFBE89
-CA EFBE8A
-CB EFBE8B
-CC EFBE8C
-CD EFBE8D
-CE EFBE8E
-CF EFBE8F
-D0 EFBE90
-D1 EFBE91
-D2 EFBE92
-D3 EFBE93
-D4 EFBE94
-D5 EFBE95
-D6 EFBE96
-D7 EFBE97
-D8 EFBE98
-D9 EFBE99
-DA EFBE9A
-DB EFBE9B
-DC EFBE9C
-DD EFBE9D
-DE EFBE9E
-DF EFBE9F
-E040 E6BCBE
-E041 E6BC93
-E042 E6BBB7
-E043 E6BE86
-E044 E6BDBA
-E045 E6BDB8
-E046 E6BE81
-E047 E6BE80
-E048 E6BDAF
-E049 E6BD9B
-E04A E6BFB3
-E04B E6BDAD
-E04C E6BE82
-E04D E6BDBC
-E04E E6BD98
-E04F E6BE8E
-E050 E6BE91
-E051 E6BF82
-E052 E6BDA6
-E053 E6BEB3
-E054 E6BEA3
-E055 E6BEA1
-E056 E6BEA4
-E057 E6BEB9
-E058 E6BF86
-E059 E6BEAA
-E05A E6BF9F
-E05B E6BF95
-E05C E6BFAC
-E05D E6BF94
-E05E E6BF98
-E05F E6BFB1
-E060 E6BFAE
-E061 E6BF9B
-E062 E78089
-E063 E7808B
-E064 E6BFBA
-E065 E78091
-E066 E78081
-E067 E7808F
-E068 E6BFBE
-E069 E7809B
-E06A E7809A
-E06B E6BDB4
-E06C E7809D
-E06D E78098
-E06E E7809F
-E06F E780B0
-E070 E780BE
-E071 E780B2
-E072 E78191
-E073 E781A3
-E074 E78299
-E075 E78292
-E076 E782AF
-E077 E783B1
-E078 E782AC
-E079 E782B8
-E07A E782B3
-E07B E782AE
-E07C E7839F
-E07D E7838B
-E07E E7839D
-E080 E78399
-E081 E78489
-E082 E783BD
-E083 E7849C
-E084 E78499
-E085 E785A5
-E086 E78595
-E087 E78688
-E088 E785A6
-E089 E785A2
-E08A E7858C
-E08B E78596
-E08C E785AC
-E08D E7868F
-E08E E787BB
-E08F E78684
-E090 E78695
-E091 E786A8
-E092 E786AC
-E093 E78797
-E094 E786B9
-E095 E786BE
-E096 E78792
-E097 E78789
-E098 E78794
-E099 E7878E
-E09A E787A0
-E09B E787AC
-E09C E787A7
-E09D E787B5
-E09E E787BC
-E09F E787B9
-E0A0 E787BF
-E0A1 E7888D
-E0A2 E78890
-E0A3 E7889B
-E0A4 E788A8
-E0A5 E788AD
-E0A6 E788AC
-E0A7 E788B0
-E0A8 E788B2
-E0A9 E788BB
-E0AA E788BC
-E0AB E788BF
-E0AC E78980
-E0AD E78986
-E0AE E7898B
-E0AF E78998
-E0B0 E789B4
-E0B1 E789BE
-E0B2 E78A82
-E0B3 E78A81
-E0B4 E78A87
-E0B5 E78A92
-E0B6 E78A96
-E0B7 E78AA2
-E0B8 E78AA7
-E0B9 E78AB9
-E0BA E78AB2
-E0BB E78B83
-E0BC E78B86
-E0BD E78B84
-E0BE E78B8E
-E0BF E78B92
-E0C0 E78BA2
-E0C1 E78BA0
-E0C2 E78BA1
-E0C3 E78BB9
-E0C4 E78BB7
-E0C5 E5808F
-E0C6 E78C97
-E0C7 E78C8A
-E0C8 E78C9C
-E0C9 E78C96
-E0CA E78C9D
-E0CB E78CB4
-E0CC E78CAF
-E0CD E78CA9
-E0CE E78CA5
-E0CF E78CBE
-E0D0 E78D8E
-E0D1 E78D8F
-E0D2 E9BB98
-E0D3 E78D97
-E0D4 E78DAA
-E0D5 E78DA8
-E0D6 E78DB0
-E0D7 E78DB8
-E0D8 E78DB5
-E0D9 E78DBB
-E0DA E78DBA
-E0DB E78F88
-E0DC E78EB3
-E0DD E78F8E
-E0DE E78EBB
-E0DF E78F80
-E0E0 E78FA5
-E0E1 E78FAE
-E0E2 E78F9E
-E0E3 E792A2
-E0E4 E79085
-E0E5 E791AF
-E0E6 E790A5
-E0E7 E78FB8
-E0E8 E790B2
-E0E9 E790BA
-E0EA E79195
-E0EB E790BF
-E0EC E7919F
-E0ED E79199
-E0EE E79181
-E0EF E7919C
-E0F0 E791A9
-E0F1 E791B0
-E0F2 E791A3
-E0F3 E791AA
-E0F4 E791B6
-E0F5 E791BE
-E0F6 E7928B
-E0F7 E7929E
-E0F8 E792A7
-E0F9 E7938A
-E0FA E7938F
-E0FB E79394
-E0FC E78FB1
-E140 E793A0
-E141 E793A3
-E142 E793A7
-E143 E793A9
-E144 E793AE
-E145 E793B2
-E146 E793B0
-E147 E793B1
-E148 E793B8
-E149 E793B7
-E14A E79484
-E14B E79483
-E14C E79485
-E14D E7948C
-E14E E7948E
-E14F E7948D
-E150 E79495
-E151 E79493
-E152 E7949E
-E153 E794A6
-E154 E794AC
-E155 E794BC
-E156 E79584
-E157 E7958D
-E158 E7958A
-E159 E79589
-E15A E7959B
-E15B E79586
-E15C E7959A
-E15D E795A9
-E15E E795A4
-E15F E795A7
-E160 E795AB
-E161 E795AD
-E162 E795B8
-E163 E795B6
-E164 E79686
-E165 E79687
-E166 E795B4
-E167 E7968A
-E168 E79689
-E169 E79682
-E16A E79694
-E16B E7969A
-E16C E7969D
-E16D E796A5
-E16E E796A3
-E16F E79782
-E170 E796B3
-E171 E79783
-E172 E796B5
-E173 E796BD
-E174 E796B8
-E175 E796BC
-E176 E796B1
-E177 E7978D
-E178 E7978A
-E179 E79792
-E17A E79799
-E17B E797A3
-E17C E7979E
-E17D E797BE
-E17E E797BF
-E180 E797BC
-E181 E79881
-E182 E797B0
-E183 E797BA
-E184 E797B2
-E185 E797B3
-E186 E7988B
-E187 E7988D
-E188 E79889
-E189 E7989F
-E18A E798A7
-E18B E798A0
-E18C E798A1
-E18D E798A2
-E18E E798A4
-E18F E798B4
-E190 E798B0
-E191 E798BB
-E192 E79987
-E193 E79988
-E194 E79986
-E195 E7999C
-E196 E79998
-E197 E799A1
-E198 E799A2
-E199 E799A8
-E19A E799A9
-E19B E799AA
-E19C E799A7
-E19D E799AC
-E19E E799B0
-E19F E799B2
-E1A0 E799B6
-E1A1 E799B8
-E1A2 E799BC
-E1A3 E79A80
-E1A4 E79A83
-E1A5 E79A88
-E1A6 E79A8B
-E1A7 E79A8E
-E1A8 E79A96
-E1A9 E79A93
-E1AA E79A99
-E1AB E79A9A
-E1AC E79AB0
-E1AD E79AB4
-E1AE E79AB8
-E1AF E79AB9
-E1B0 E79ABA
-E1B1 E79B82
-E1B2 E79B8D
-E1B3 E79B96
-E1B4 E79B92
-E1B5 E79B9E
-E1B6 E79BA1
-E1B7 E79BA5
-E1B8 E79BA7
-E1B9 E79BAA
-E1BA E898AF
-E1BB E79BBB
-E1BC E79C88
-E1BD E79C87
-E1BE E79C84
-E1BF E79CA9
-E1C0 E79CA4
-E1C1 E79C9E
-E1C2 E79CA5
-E1C3 E79CA6
-E1C4 E79C9B
-E1C5 E79CB7
-E1C6 E79CB8
-E1C7 E79D87
-E1C8 E79D9A
-E1C9 E79DA8
-E1CA E79DAB
-E1CB E79D9B
-E1CC E79DA5
-E1CD E79DBF
-E1CE E79DBE
-E1CF E79DB9
-E1D0 E79E8E
-E1D1 E79E8B
-E1D2 E79E91
-E1D3 E79EA0
-E1D4 E79E9E
-E1D5 E79EB0
-E1D6 E79EB6
-E1D7 E79EB9
-E1D8 E79EBF
-E1D9 E79EBC
-E1DA E79EBD
-E1DB E79EBB
-E1DC E79F87
-E1DD E79F8D
-E1DE E79F97
-E1DF E79F9A
-E1E0 E79F9C
-E1E1 E79FA3
-E1E2 E79FAE
-E1E3 E79FBC
-E1E4 E7A08C
-E1E5 E7A092
-E1E6 E7A4A6
-E1E7 E7A0A0
-E1E8 E7A4AA
-E1E9 E7A185
-E1EA E7A28E
-E1EB E7A1B4
-E1EC E7A286
-E1ED E7A1BC
-E1EE E7A29A
-E1EF E7A28C
-E1F0 E7A2A3
-E1F1 E7A2B5
-E1F2 E7A2AA
-E1F3 E7A2AF
-E1F4 E7A391
-E1F5 E7A386
-E1F6 E7A38B
-E1F7 E7A394
-E1F8 E7A2BE
-E1F9 E7A2BC
-E1FA E7A385
-E1FB E7A38A
-E1FC E7A3AC
-E240 E7A3A7
-E241 E7A39A
-E242 E7A3BD
-E243 E7A3B4
-E244 E7A487
-E245 E7A492
-E246 E7A491
-E247 E7A499
-E248 E7A4AC
-E249 E7A4AB
-E24A E7A580
-E24B E7A5A0
-E24C E7A597
-E24D E7A59F
-E24E E7A59A
-E24F E7A595
-E250 E7A593
-E251 E7A5BA
-E252 E7A5BF
-E253 E7A68A
-E254 E7A69D
-E255 E7A6A7
-E256 E9BD8B
-E257 E7A6AA
-E258 E7A6AE
-E259 E7A6B3
-E25A E7A6B9
-E25B E7A6BA
-E25C E7A789
-E25D E7A795
-E25E E7A7A7
-E25F E7A7AC
-E260 E7A7A1
-E261 E7A7A3
-E262 E7A888
-E263 E7A88D
-E264 E7A898
-E265 E7A899
-E266 E7A8A0
-E267 E7A89F
-E268 E7A680
-E269 E7A8B1
-E26A E7A8BB
-E26B E7A8BE
-E26C E7A8B7
-E26D E7A983
-E26E E7A997
-E26F E7A989
-E270 E7A9A1
-E271 E7A9A2
-E272 E7A9A9
-E273 E9BE9D
-E274 E7A9B0
-E275 E7A9B9
-E276 E7A9BD
-E277 E7AA88
-E278 E7AA97
-E279 E7AA95
-E27A E7AA98
-E27B E7AA96
-E27C E7AAA9
-E27D E7AB88
-E27E E7AAB0
-E280 E7AAB6
-E281 E7AB85
-E282 E7AB84
-E283 E7AABF
-E284 E98283
-E285 E7AB87
-E286 E7AB8A
-E287 E7AB8D
-E288 E7AB8F
-E289 E7AB95
-E28A E7AB93
-E28B E7AB99
-E28C E7AB9A
-E28D E7AB9D
-E28E E7ABA1
-E28F E7ABA2
-E290 E7ABA6
-E291 E7ABAD
-E292 E7ABB0
-E293 E7AC82
-E294 E7AC8F
-E295 E7AC8A
-E296 E7AC86
-E297 E7ACB3
-E298 E7AC98
-E299 E7AC99
-E29A E7AC9E
-E29B E7ACB5
-E29C E7ACA8
-E29D E7ACB6
-E29E E7AD90
-E29F E7ADBA
-E2A0 E7AC84
-E2A1 E7AD8D
-E2A2 E7AC8B
-E2A3 E7AD8C
-E2A4 E7AD85
-E2A5 E7ADB5
-E2A6 E7ADA5
-E2A7 E7ADB4
-E2A8 E7ADA7
-E2A9 E7ADB0
-E2AA E7ADB1
-E2AB E7ADAC
-E2AC E7ADAE
-E2AD E7AE9D
-E2AE E7AE98
-E2AF E7AE9F
-E2B0 E7AE8D
-E2B1 E7AE9C
-E2B2 E7AE9A
-E2B3 E7AE8B
-E2B4 E7AE92
-E2B5 E7AE8F
-E2B6 E7AD9D
-E2B7 E7AE99
-E2B8 E7AF8B
-E2B9 E7AF81
-E2BA E7AF8C
-E2BB E7AF8F
-E2BC E7AEB4
-E2BD E7AF86
-E2BE E7AF9D
-E2BF E7AFA9
-E2C0 E7B091
-E2C1 E7B094
-E2C2 E7AFA6
-E2C3 E7AFA5
-E2C4 E7B1A0
-E2C5 E7B080
-E2C6 E7B087
-E2C7 E7B093
-E2C8 E7AFB3
-E2C9 E7AFB7
-E2CA E7B097
-E2CB E7B08D
-E2CC E7AFB6
-E2CD E7B0A3
-E2CE E7B0A7
-E2CF E7B0AA
-E2D0 E7B09F
-E2D1 E7B0B7
-E2D2 E7B0AB
-E2D3 E7B0BD
-E2D4 E7B18C
-E2D5 E7B183
-E2D6 E7B194
-E2D7 E7B18F
-E2D8 E7B180
-E2D9 E7B190
-E2DA E7B198
-E2DB E7B19F
-E2DC E7B1A4
-E2DD E7B196
-E2DE E7B1A5
-E2DF E7B1AC
-E2E0 E7B1B5
-E2E1 E7B283
-E2E2 E7B290
-E2E3 E7B2A4
-E2E4 E7B2AD
-E2E5 E7B2A2
-E2E6 E7B2AB
-E2E7 E7B2A1
-E2E8 E7B2A8
-E2E9 E7B2B3
-E2EA E7B2B2
-E2EB E7B2B1
-E2EC E7B2AE
-E2ED E7B2B9
-E2EE E7B2BD
-E2EF E7B380
-E2F0 E7B385
-E2F1 E7B382
-E2F2 E7B398
-E2F3 E7B392
-E2F4 E7B39C
-E2F5 E7B3A2
-E2F6 E9ACBB
-E2F7 E7B3AF
-E2F8 E7B3B2
-E2F9 E7B3B4
-E2FA E7B3B6
-E2FB E7B3BA
-E2FC E7B486
-E340 E7B482
-E341 E7B49C
-E342 E7B495
-E343 E7B48A
-E344 E7B585
-E345 E7B58B
-E346 E7B4AE
-E347 E7B4B2
-E348 E7B4BF
-E349 E7B4B5
-E34A E7B586
-E34B E7B5B3
-E34C E7B596
-E34D E7B58E
-E34E E7B5B2
-E34F E7B5A8
-E350 E7B5AE
-E351 E7B58F
-E352 E7B5A3
-E353 E7B693
-E354 E7B689
-E355 E7B59B
-E356 E7B68F
-E357 E7B5BD
-E358 E7B69B
-E359 E7B6BA
-E35A E7B6AE
-E35B E7B6A3
-E35C E7B6B5
-E35D E7B787
-E35E E7B6BD
-E35F E7B6AB
-E360 E7B8BD
-E361 E7B6A2
-E362 E7B6AF
-E363 E7B79C
-E364 E7B6B8
-E365 E7B69F
-E366 E7B6B0
-E367 E7B798
-E368 E7B79D
-E369 E7B7A4
-E36A E7B79E
-E36B E7B7BB
-E36C E7B7B2
-E36D E7B7A1
-E36E E7B885
-E36F E7B88A
-E370 E7B8A3
-E371 E7B8A1
-E372 E7B892
-E373 E7B8B1
-E374 E7B89F
-E375 E7B889
-E376 E7B88B
-E377 E7B8A2
-E378 E7B986
-E379 E7B9A6
-E37A E7B8BB
-E37B E7B8B5
-E37C E7B8B9
-E37D E7B983
-E37E E7B8B7
-E380 E7B8B2
-E381 E7B8BA
-E382 E7B9A7
-E383 E7B99D
-E384 E7B996
-E385 E7B99E
-E386 E7B999
-E387 E7B99A
-E388 E7B9B9
-E389 E7B9AA
-E38A E7B9A9
-E38B E7B9BC
-E38C E7B9BB
-E38D E7BA83
-E38E E7B795
-E38F E7B9BD
-E390 E8BEAE
-E391 E7B9BF
-E392 E7BA88
-E393 E7BA89
-E394 E7BA8C
-E395 E7BA92
-E396 E7BA90
-E397 E7BA93
-E398 E7BA94
-E399 E7BA96
-E39A E7BA8E
-E39B E7BA9B
-E39C E7BA9C
-E39D E7BCB8
-E39E E7BCBA
-E39F E7BD85
-E3A0 E7BD8C
-E3A1 E7BD8D
-E3A2 E7BD8E
-E3A3 E7BD90
-E3A4 E7BD91
-E3A5 E7BD95
-E3A6 E7BD94
-E3A7 E7BD98
-E3A8 E7BD9F
-E3A9 E7BDA0
-E3AA E7BDA8
-E3AB E7BDA9
-E3AC E7BDA7
-E3AD E7BDB8
-E3AE E7BE82
-E3AF E7BE86
-E3B0 E7BE83
-E3B1 E7BE88
-E3B2 E7BE87
-E3B3 E7BE8C
-E3B4 E7BE94
-E3B5 E7BE9E
-E3B6 E7BE9D
-E3B7 E7BE9A
-E3B8 E7BEA3
-E3B9 E7BEAF
-E3BA E7BEB2
-E3BB E7BEB9
-E3BC E7BEAE
-E3BD E7BEB6
-E3BE E7BEB8
-E3BF E8ADB1
-E3C0 E7BF85
-E3C1 E7BF86
-E3C2 E7BF8A
-E3C3 E7BF95
-E3C4 E7BF94
-E3C5 E7BFA1
-E3C6 E7BFA6
-E3C7 E7BFA9
-E3C8 E7BFB3
-E3C9 E7BFB9
-E3CA E9A39C
-E3CB E88086
-E3CC E88084
-E3CD E8808B
-E3CE E88092
-E3CF E88098
-E3D0 E88099
-E3D1 E8809C
-E3D2 E880A1
-E3D3 E880A8
-E3D4 E880BF
-E3D5 E880BB
-E3D6 E8818A
-E3D7 E88186
-E3D8 E88192
-E3D9 E88198
-E3DA E8819A
-E3DB E8819F
-E3DC E881A2
-E3DD E881A8
-E3DE E881B3
-E3DF E881B2
-E3E0 E881B0
-E3E1 E881B6
-E3E2 E881B9
-E3E3 E881BD
-E3E4 E881BF
-E3E5 E88284
-E3E6 E88286
-E3E7 E88285
-E3E8 E8829B
-E3E9 E88293
-E3EA E8829A
-E3EB E882AD
-E3EC E58690
-E3ED E882AC
-E3EE E8839B
-E3EF E883A5
-E3F0 E88399
-E3F1 E8839D
-E3F2 E88384
-E3F3 E8839A
-E3F4 E88396
-E3F5 E88489
-E3F6 E883AF
-E3F7 E883B1
-E3F8 E8849B
-E3F9 E884A9
-E3FA E884A3
-E3FB E884AF
-E3FC E8858B
-E440 E99A8B
-E441 E88586
-E442 E884BE
-E443 E88593
-E444 E88591
-E445 E883BC
-E446 E885B1
-E447 E885AE
-E448 E885A5
-E449 E885A6
-E44A E885B4
-E44B E88683
-E44C E88688
-E44D E8868A
-E44E E88680
-E44F E88682
-E450 E886A0
-E451 E88695
-E452 E886A4
-E453 E886A3
-E454 E8859F
-E455 E88693
-E456 E886A9
-E457 E886B0
-E458 E886B5
-E459 E886BE
-E45A E886B8
-E45B E886BD
-E45C E88780
-E45D E88782
-E45E E886BA
-E45F E88789
-E460 E8878D
-E461 E88791
-E462 E88799
-E463 E88798
-E464 E88788
-E465 E8879A
-E466 E8879F
-E467 E887A0
-E468 E887A7
-E469 E887BA
-E46A E887BB
-E46B E887BE
-E46C E88881
-E46D E88882
-E46E E88885
-E46F E88887
-E470 E8888A
-E471 E8888D
-E472 E88890
-E473 E88896
-E474 E888A9
-E475 E888AB
-E476 E888B8
-E477 E888B3
-E478 E88980
-E479 E88999
-E47A E88998
-E47B E8899D
-E47C E8899A
-E47D E8899F
-E47E E889A4
-E480 E889A2
-E481 E889A8
-E482 E889AA
-E483 E889AB
-E484 E888AE
-E485 E889B1
-E486 E889B7
-E487 E889B8
-E488 E889BE
-E489 E88A8D
-E48A E88A92
-E48B E88AAB
-E48C E88A9F
-E48D E88ABB
-E48E E88AAC
-E48F E88BA1
-E490 E88BA3
-E491 E88B9F
-E492 E88B92
-E493 E88BB4
-E494 E88BB3
-E495 E88BBA
-E496 E88E93
-E497 E88C83
-E498 E88BBB
-E499 E88BB9
-E49A E88B9E
-E49B E88C86
-E49C E88B9C
-E49D E88C89
-E49E E88B99
-E49F E88CB5
-E4A0 E88CB4
-E4A1 E88C96
-E4A2 E88CB2
-E4A3 E88CB1
-E4A4 E88D80
-E4A5 E88CB9
-E4A6 E88D90
-E4A7 E88D85
-E4A8 E88CAF
-E4A9 E88CAB
-E4AA E88C97
-E4AB E88C98
-E4AC E88E85
-E4AD E88E9A
-E4AE E88EAA
-E4AF E88E9F
-E4B0 E88EA2
-E4B1 E88E96
-E4B2 E88CA3
-E4B3 E88E8E
-E4B4 E88E87
-E4B5 E88E8A
-E4B6 E88DBC
-E4B7 E88EB5
-E4B8 E88DB3
-E4B9 E88DB5
-E4BA E88EA0
-E4BB E88E89
-E4BC E88EA8
-E4BD E88FB4
-E4BE E89093
-E4BF E88FAB
-E4C0 E88F8E
-E4C1 E88FBD
-E4C2 E89083
-E4C3 E88F98
-E4C4 E8908B
-E4C5 E88F81
-E4C6 E88FB7
-E4C7 E89087
-E4C8 E88FA0
-E4C9 E88FB2
-E4CA E8908D
-E4CB E890A2
-E4CC E890A0
-E4CD E88EBD
-E4CE E890B8
-E4CF E89486
-E4D0 E88FBB
-E4D1 E891AD
-E4D2 E890AA
-E4D3 E890BC
-E4D4 E8959A
-E4D5 E89284
-E4D6 E891B7
-E4D7 E891AB
-E4D8 E892AD
-E4D9 E891AE
-E4DA E89282
-E4DB E891A9
-E4DC E89186
-E4DD E890AC
-E4DE E891AF
-E4DF E891B9
-E4E0 E890B5
-E4E1 E8938A
-E4E2 E891A2
-E4E3 E892B9
-E4E4 E892BF
-E4E5 E8929F
-E4E6 E89399
-E4E7 E8938D
-E4E8 E892BB
-E4E9 E8939A
-E4EA E89390
-E4EB E89381
-E4EC E89386
-E4ED E89396
-E4EE E892A1
-E4EF E894A1
-E4F0 E893BF
-E4F1 E893B4
-E4F2 E89497
-E4F3 E89498
-E4F4 E894AC
-E4F5 E8949F
-E4F6 E89495
-E4F7 E89494
-E4F8 E893BC
-E4F9 E89580
-E4FA E895A3
-E4FB E89598
-E4FC E89588
-E540 E89581
-E541 E89882
-E542 E8958B
-E543 E89595
-E544 E89680
-E545 E896A4
-E546 E89688
-E547 E89691
-E548 E8968A
-E549 E896A8
-E54A E895AD
-E54B E89694
-E54C E8969B
-E54D E897AA
-E54E E89687
-E54F E8969C
-E550 E895B7
-E551 E895BE
-E552 E89690
-E553 E89789
-E554 E896BA
-E555 E8978F
-E556 E896B9
-E557 E89790
-E558 E89795
-E559 E8979D
-E55A E897A5
-E55B E8979C
-E55C E897B9
-E55D E8988A
-E55E E89893
-E55F E8988B
-E560 E897BE
-E561 E897BA
-E562 E89886
-E563 E898A2
-E564 E8989A
-E565 E898B0
-E566 E898BF
-E567 E8998D
-E568 E4B995
-E569 E89994
-E56A E8999F
-E56B E899A7
-E56C E899B1
-E56D E89A93
-E56E E89AA3
-E56F E89AA9
-E570 E89AAA
-E571 E89A8B
-E572 E89A8C
-E573 E89AB6
-E574 E89AAF
-E575 E89B84
-E576 E89B86
-E577 E89AB0
-E578 E89B89
-E579 E8A0A3
-E57A E89AAB
-E57B E89B94
-E57C E89B9E
-E57D E89BA9
-E57E E89BAC
-E580 E89B9F
-E581 E89B9B
-E582 E89BAF
-E583 E89C92
-E584 E89C86
-E585 E89C88
-E586 E89C80
-E587 E89C83
-E588 E89BBB
-E589 E89C91
-E58A E89C89
-E58B E89C8D
-E58C E89BB9
-E58D E89C8A
-E58E E89CB4
-E58F E89CBF
-E590 E89CB7
-E591 E89CBB
-E592 E89CA5
-E593 E89CA9
-E594 E89C9A
-E595 E89DA0
-E596 E89D9F
-E597 E89DB8
-E598 E89D8C
-E599 E89D8E
-E59A E89DB4
-E59B E89D97
-E59C E89DA8
-E59D E89DAE
-E59E E89D99
-E59F E89D93
-E5A0 E89DA3
-E5A1 E89DAA
-E5A2 E8A085
-E5A3 E89EA2
-E5A4 E89E9F
-E5A5 E89E82
-E5A6 E89EAF
-E5A7 E89F8B
-E5A8 E89EBD
-E5A9 E89F80
-E5AA E89F90
-E5AB E99B96
-E5AC E89EAB
-E5AD E89F84
-E5AE E89EB3
-E5AF E89F87
-E5B0 E89F86
-E5B1 E89EBB
-E5B2 E89FAF
-E5B3 E89FB2
-E5B4 E89FA0
-E5B5 E8A08F
-E5B6 E8A08D
-E5B7 E89FBE
-E5B8 E89FB6
-E5B9 E89FB7
-E5BA E8A08E
-E5BB E89F92
-E5BC E8A091
-E5BD E8A096
-E5BE E8A095
-E5BF E8A0A2
-E5C0 E8A0A1
-E5C1 E8A0B1
-E5C2 E8A0B6
-E5C3 E8A0B9
-E5C4 E8A0A7
-E5C5 E8A0BB
-E5C6 E8A184
-E5C7 E8A182
-E5C8 E8A192
-E5C9 E8A199
-E5CA E8A19E
-E5CB E8A1A2
-E5CC E8A1AB
-E5CD E8A281
-E5CE E8A1BE
-E5CF E8A29E
-E5D0 E8A1B5
-E5D1 E8A1BD
-E5D2 E8A2B5
-E5D3 E8A1B2
-E5D4 E8A282
-E5D5 E8A297
-E5D6 E8A292
-E5D7 E8A2AE
-E5D8 E8A299
-E5D9 E8A2A2
-E5DA E8A28D
-E5DB E8A2A4
-E5DC E8A2B0
-E5DD E8A2BF
-E5DE E8A2B1
-E5DF E8A383
-E5E0 E8A384
-E5E1 E8A394
-E5E2 E8A398
-E5E3 E8A399
-E5E4 E8A39D
-E5E5 E8A3B9
-E5E6 E8A482
-E5E7 E8A3BC
-E5E8 E8A3B4
-E5E9 E8A3A8
-E5EA E8A3B2
-E5EB E8A484
-E5EC E8A48C
-E5ED E8A48A
-E5EE E8A493
-E5EF E8A583
-E5F0 E8A49E
-E5F1 E8A4A5
-E5F2 E8A4AA
-E5F3 E8A4AB
-E5F4 E8A581
-E5F5 E8A584
-E5F6 E8A4BB
-E5F7 E8A4B6
-E5F8 E8A4B8
-E5F9 E8A58C
-E5FA E8A49D
-E5FB E8A5A0
-E5FC E8A59E
-E640 E8A5A6
-E641 E8A5A4
-E642 E8A5AD
-E643 E8A5AA
-E644 E8A5AF
-E645 E8A5B4
-E646 E8A5B7
-E647 E8A5BE
-E648 E8A683
-E649 E8A688
-E64A E8A68A
-E64B E8A693
-E64C E8A698
-E64D E8A6A1
-E64E E8A6A9
-E64F E8A6A6
-E650 E8A6AC
-E651 E8A6AF
-E652 E8A6B2
-E653 E8A6BA
-E654 E8A6BD
-E655 E8A6BF
-E656 E8A780
-E657 E8A79A
-E658 E8A79C
-E659 E8A79D
-E65A E8A7A7
-E65B E8A7B4
-E65C E8A7B8
-E65D E8A883
-E65E E8A896
-E65F E8A890
-E660 E8A88C
-E661 E8A89B
-E662 E8A89D
-E663 E8A8A5
-E664 E8A8B6
-E665 E8A981
-E666 E8A99B
-E667 E8A992
-E668 E8A986
-E669 E8A988
-E66A E8A9BC
-E66B E8A9AD
-E66C E8A9AC
-E66D E8A9A2
-E66E E8AA85
-E66F E8AA82
-E670 E8AA84
-E671 E8AAA8
-E672 E8AAA1
-E673 E8AA91
-E674 E8AAA5
-E675 E8AAA6
-E676 E8AA9A
-E677 E8AAA3
-E678 E8AB84
-E679 E8AB8D
-E67A E8AB82
-E67B E8AB9A
-E67C E8ABAB
-E67D E8ABB3
-E67E E8ABA7
-E680 E8ABA4
-E681 E8ABB1
-E682 E8AC94
-E683 E8ABA0
-E684 E8ABA2
-E685 E8ABB7
-E686 E8AB9E
-E687 E8AB9B
-E688 E8AC8C
-E689 E8AC87
-E68A E8AC9A
-E68B E8ABA1
-E68C E8AC96
-E68D E8AC90
-E68E E8AC97
-E68F E8ACA0
-E690 E8ACB3
-E691 E99EAB
-E692 E8ACA6
-E693 E8ACAB
-E694 E8ACBE
-E695 E8ACA8
-E696 E8AD81
-E697 E8AD8C
-E698 E8AD8F
-E699 E8AD8E
-E69A E8AD89
-E69B E8AD96
-E69C E8AD9B
-E69D E8AD9A
-E69E E8ADAB
-E69F E8AD9F
-E6A0 E8ADAC
-E6A1 E8ADAF
-E6A2 E8ADB4
-E6A3 E8ADBD
-E6A4 E8AE80
-E6A5 E8AE8C
-E6A6 E8AE8E
-E6A7 E8AE92
-E6A8 E8AE93
-E6A9 E8AE96
-E6AA E8AE99
-E6AB E8AE9A
-E6AC E8B0BA
-E6AD E8B181
-E6AE E8B0BF
-E6AF E8B188
-E6B0 E8B18C
-E6B1 E8B18E
-E6B2 E8B190
-E6B3 E8B195
-E6B4 E8B1A2
-E6B5 E8B1AC
-E6B6 E8B1B8
-E6B7 E8B1BA
-E6B8 E8B282
-E6B9 E8B289
-E6BA E8B285
-E6BB E8B28A
-E6BC E8B28D
-E6BD E8B28E
-E6BE E8B294
-E6BF E8B1BC
-E6C0 E8B298
-E6C1 E6889D
-E6C2 E8B2AD
-E6C3 E8B2AA
-E6C4 E8B2BD
-E6C5 E8B2B2
-E6C6 E8B2B3
-E6C7 E8B2AE
-E6C8 E8B2B6
-E6C9 E8B388
-E6CA E8B381
-E6CB E8B3A4
-E6CC E8B3A3
-E6CD E8B39A
-E6CE E8B3BD
-E6CF E8B3BA
-E6D0 E8B3BB
-E6D1 E8B484
-E6D2 E8B485
-E6D3 E8B48A
-E6D4 E8B487
-E6D5 E8B48F
-E6D6 E8B48D
-E6D7 E8B490
-E6D8 E9BD8E
-E6D9 E8B493
-E6DA E8B38D
-E6DB E8B494
-E6DC E8B496
-E6DD E8B5A7
-E6DE E8B5AD
-E6DF E8B5B1
-E6E0 E8B5B3
-E6E1 E8B681
-E6E2 E8B699
-E6E3 E8B782
-E6E4 E8B6BE
-E6E5 E8B6BA
-E6E6 E8B78F
-E6E7 E8B79A
-E6E8 E8B796
-E6E9 E8B78C
-E6EA E8B79B
-E6EB E8B78B
-E6EC E8B7AA
-E6ED E8B7AB
-E6EE E8B79F
-E6EF E8B7A3
-E6F0 E8B7BC
-E6F1 E8B888
-E6F2 E8B889
-E6F3 E8B7BF
-E6F4 E8B89D
-E6F5 E8B89E
-E6F6 E8B890
-E6F7 E8B89F
-E6F8 E8B982
-E6F9 E8B8B5
-E6FA E8B8B0
-E6FB E8B8B4
-E6FC E8B98A
-E740 E8B987
-E741 E8B989
-E742 E8B98C
-E743 E8B990
-E744 E8B988
-E745 E8B999
-E746 E8B9A4
-E747 E8B9A0
-E748 E8B8AA
-E749 E8B9A3
-E74A E8B995
-E74B E8B9B6
-E74C E8B9B2
-E74D E8B9BC
-E74E E8BA81
-E74F E8BA87
-E750 E8BA85
-E751 E8BA84
-E752 E8BA8B
-E753 E8BA8A
-E754 E8BA93
-E755 E8BA91
-E756 E8BA94
-E757 E8BA99
-E758 E8BAAA
-E759 E8BAA1
-E75A E8BAAC
-E75B E8BAB0
-E75C E8BB86
-E75D E8BAB1
-E75E E8BABE
-E75F E8BB85
-E760 E8BB88
-E761 E8BB8B
-E762 E8BB9B
-E763 E8BBA3
-E764 E8BBBC
-E765 E8BBBB
-E766 E8BBAB
-E767 E8BBBE
-E768 E8BC8A
-E769 E8BC85
-E76A E8BC95
-E76B E8BC92
-E76C E8BC99
-E76D E8BC93
-E76E E8BC9C
-E76F E8BC9F
-E770 E8BC9B
-E771 E8BC8C
-E772 E8BCA6
-E773 E8BCB3
-E774 E8BCBB
-E775 E8BCB9
-E776 E8BD85
-E777 E8BD82
-E778 E8BCBE
-E779 E8BD8C
-E77A E8BD89
-E77B E8BD86
-E77C E8BD8E
-E77D E8BD97
-E77E E8BD9C
-E780 E8BDA2
-E781 E8BDA3
-E782 E8BDA4
-E783 E8BE9C
-E784 E8BE9F
-E785 E8BEA3
-E786 E8BEAD
-E787 E8BEAF
-E788 E8BEB7
-E789 E8BF9A
-E78A E8BFA5
-E78B E8BFA2
-E78C E8BFAA
-E78D E8BFAF
-E78E E98287
-E78F E8BFB4
-E790 E98085
-E791 E8BFB9
-E792 E8BFBA
-E793 E98091
-E794 E98095
-E795 E980A1
-E796 E9808D
-E797 E9809E
-E798 E98096
-E799 E9808B
-E79A E980A7
-E79B E980B6
-E79C E980B5
-E79D E980B9
-E79E E8BFB8
-E79F E9818F
-E7A0 E98190
-E7A1 E98191
-E7A2 E98192
-E7A3 E9808E
-E7A4 E98189
-E7A5 E980BE
-E7A6 E98196
-E7A7 E98198
-E7A8 E9819E
-E7A9 E981A8
-E7AA E981AF
-E7AB E981B6
-E7AC E99AA8
-E7AD E981B2
-E7AE E98282
-E7AF E981BD
-E7B0 E98281
-E7B1 E98280
-E7B2 E9828A
-E7B3 E98289
-E7B4 E9828F
-E7B5 E982A8
-E7B6 E982AF
-E7B7 E982B1
-E7B8 E982B5
-E7B9 E983A2
-E7BA E983A4
-E7BB E68988
-E7BC E9839B
-E7BD E98482
-E7BE E98492
-E7BF E98499
-E7C0 E984B2
-E7C1 E984B0
-E7C2 E9858A
-E7C3 E98596
-E7C4 E98598
-E7C5 E985A3
-E7C6 E985A5
-E7C7 E985A9
-E7C8 E985B3
-E7C9 E985B2
-E7CA E9868B
-E7CB E98689
-E7CC E98682
-E7CD E986A2
-E7CE E986AB
-E7CF E986AF
-E7D0 E986AA
-E7D1 E986B5
-E7D2 E986B4
-E7D3 E986BA
-E7D4 E98780
-E7D5 E98781
-E7D6 E98789
-E7D7 E9878B
-E7D8 E98790
-E7D9 E98796
-E7DA E9879F
-E7DB E987A1
-E7DC E9879B
-E7DD E987BC
-E7DE E987B5
-E7DF E987B6
-E7E0 E9889E
-E7E1 E987BF
-E7E2 E98894
-E7E3 E988AC
-E7E4 E98895
-E7E5 E98891
-E7E6 E9899E
-E7E7 E98997
-E7E8 E98985
-E7E9 E98989
-E7EA E989A4
-E7EB E98988
-E7EC E98A95
-E7ED E988BF
-E7EE E9898B
-E7EF E98990
-E7F0 E98A9C
-E7F1 E98A96
-E7F2 E98A93
-E7F3 E98A9B
-E7F4 E9899A
-E7F5 E98B8F
-E7F6 E98AB9
-E7F7 E98AB7
-E7F8 E98BA9
-E7F9 E98C8F
-E7FA E98BBA
-E7FB E98D84
-E7FC E98CAE
-E840 E98C99
-E841 E98CA2
-E842 E98C9A
-E843 E98CA3
-E844 E98CBA
-E845 E98CB5
-E846 E98CBB
-E847 E98D9C
-E848 E98DA0
-E849 E98DBC
-E84A E98DAE
-E84B E98D96
-E84C E98EB0
-E84D E98EAC
-E84E E98EAD
-E84F E98E94
-E850 E98EB9
-E851 E98F96
-E852 E98F97
-E853 E98FA8
-E854 E98FA5
-E855 E98F98
-E856 E98F83
-E857 E98F9D
-E858 E98F90
-E859 E98F88
-E85A E98FA4
-E85B E9909A
-E85C E99094
-E85D E99093
-E85E E99083
-E85F E99087
-E860 E99090
-E861 E990B6
-E862 E990AB
-E863 E990B5
-E864 E990A1
-E865 E990BA
-E866 E99181
-E867 E99192
-E868 E99184
-E869 E9919B
-E86A E991A0
-E86B E991A2
-E86C E9919E
-E86D E991AA
-E86E E988A9
-E86F E991B0
-E870 E991B5
-E871 E991B7
-E872 E991BD
-E873 E9919A
-E874 E991BC
-E875 E991BE
-E876 E99281
-E877 E991BF
-E878 E99682
-E879 E99687
-E87A E9968A
-E87B E99694
-E87C E99696
-E87D E99698
-E87E E99699
-E880 E996A0
-E881 E996A8
-E882 E996A7
-E883 E996AD
-E884 E996BC
-E885 E996BB
-E886 E996B9
-E887 E996BE
-E888 E9978A
-E889 E6BFB6
-E88A E99783
-E88B E9978D
-E88C E9978C
-E88D E99795
-E88E E99794
-E88F E99796
-E890 E9979C
-E891 E997A1
-E892 E997A5
-E893 E997A2
-E894 E998A1
-E895 E998A8
-E896 E998AE
-E897 E998AF
-E898 E99982
-E899 E9998C
-E89A E9998F
-E89B E9998B
-E89C E999B7
-E89D E9999C
-E89E E9999E
-E89F E9999D
-E8A0 E9999F
-E8A1 E999A6
-E8A2 E999B2
-E8A3 E999AC
-E8A4 E99A8D
-E8A5 E99A98
-E8A6 E99A95
-E8A7 E99A97
-E8A8 E99AAA
-E8A9 E99AA7
-E8AA E99AB1
-E8AB E99AB2
-E8AC E99AB0
-E8AD E99AB4
-E8AE E99AB6
-E8AF E99AB8
-E8B0 E99AB9
-E8B1 E99B8E
-E8B2 E99B8B
-E8B3 E99B89
-E8B4 E99B8D
-E8B5 E8A58D
-E8B6 E99B9C
-E8B7 E99C8D
-E8B8 E99B95
-E8B9 E99BB9
-E8BA E99C84
-E8BB E99C86
-E8BC E99C88
-E8BD E99C93
-E8BE E99C8E
-E8BF E99C91
-E8C0 E99C8F
-E8C1 E99C96
-E8C2 E99C99
-E8C3 E99CA4
-E8C4 E99CAA
-E8C5 E99CB0
-E8C6 E99CB9
-E8C7 E99CBD
-E8C8 E99CBE
-E8C9 E99D84
-E8CA E99D86
-E8CB E99D88
-E8CC E99D82
-E8CD E99D89
-E8CE E99D9C
-E8CF E99DA0
-E8D0 E99DA4
-E8D1 E99DA6
-E8D2 E99DA8
-E8D3 E58B92
-E8D4 E99DAB
-E8D5 E99DB1
-E8D6 E99DB9
-E8D7 E99E85
-E8D8 E99DBC
-E8D9 E99E81
-E8DA E99DBA
-E8DB E99E86
-E8DC E99E8B
-E8DD E99E8F
-E8DE E99E90
-E8DF E99E9C
-E8E0 E99EA8
-E8E1 E99EA6
-E8E2 E99EA3
-E8E3 E99EB3
-E8E4 E99EB4
-E8E5 E99F83
-E8E6 E99F86
-E8E7 E99F88
-E8E8 E99F8B
-E8E9 E99F9C
-E8EA E99FAD
-E8EB E9BD8F
-E8EC E99FB2
-E8ED E7AB9F
-E8EE E99FB6
-E8EF E99FB5
-E8F0 E9A08F
-E8F1 E9A08C
-E8F2 E9A0B8
-E8F3 E9A0A4
-E8F4 E9A0A1
-E8F5 E9A0B7
-E8F6 E9A0BD
-E8F7 E9A186
-E8F8 E9A18F
-E8F9 E9A18B
-E8FA E9A1AB
-E8FB E9A1AF
-E8FC E9A1B0
-E940 E9A1B1
-E941 E9A1B4
-E942 E9A1B3
-E943 E9A2AA
-E944 E9A2AF
-E945 E9A2B1
-E946 E9A2B6
-E947 E9A384
-E948 E9A383
-E949 E9A386
-E94A E9A3A9
-E94B E9A3AB
-E94C E9A483
-E94D E9A489
-E94E E9A492
-E94F E9A494
-E950 E9A498
-E951 E9A4A1
-E952 E9A49D
-E953 E9A49E
-E954 E9A4A4
-E955 E9A4A0
-E956 E9A4AC
-E957 E9A4AE
-E958 E9A4BD
-E959 E9A4BE
-E95A E9A582
-E95B E9A589
-E95C E9A585
-E95D E9A590
-E95E E9A58B
-E95F E9A591
-E960 E9A592
-E961 E9A58C
-E962 E9A595
-E963 E9A697
-E964 E9A698
-E965 E9A6A5
-E966 E9A6AD
-E967 E9A6AE
-E968 E9A6BC
-E969 E9A79F
-E96A E9A79B
-E96B E9A79D
-E96C E9A798
-E96D E9A791
-E96E E9A7AD
-E96F E9A7AE
-E970 E9A7B1
-E971 E9A7B2
-E972 E9A7BB
-E973 E9A7B8
-E974 E9A881
-E975 E9A88F
-E976 E9A885
-E977 E9A7A2
-E978 E9A899
-E979 E9A8AB
-E97A E9A8B7
-E97B E9A985
-E97C E9A982
-E97D E9A980
-E97E E9A983
-E980 E9A8BE
-E981 E9A995
-E982 E9A98D
-E983 E9A99B
-E984 E9A997
-E985 E9A99F
-E986 E9A9A2
-E987 E9A9A5
-E988 E9A9A4
-E989 E9A9A9
-E98A E9A9AB
-E98B E9A9AA
-E98C E9AAAD
-E98D E9AAB0
-E98E E9AABC
-E98F E9AB80
-E990 E9AB8F
-E991 E9AB91
-E992 E9AB93
-E993 E9AB94
-E994 E9AB9E
-E995 E9AB9F
-E996 E9ABA2
-E997 E9ABA3
-E998 E9ABA6
-E999 E9ABAF
-E99A E9ABAB
-E99B E9ABAE
-E99C E9ABB4
-E99D E9ABB1
-E99E E9ABB7
-E99F E9ABBB
-E9A0 E9AC86
-E9A1 E9AC98
-E9A2 E9AC9A
-E9A3 E9AC9F
-E9A4 E9ACA2
-E9A5 E9ACA3
-E9A6 E9ACA5
-E9A7 E9ACA7
-E9A8 E9ACA8
-E9A9 E9ACA9
-E9AA E9ACAA
-E9AB E9ACAE
-E9AC E9ACAF
-E9AD E9ACB2
-E9AE E9AD84
-E9AF E9AD83
-E9B0 E9AD8F
-E9B1 E9AD8D
-E9B2 E9AD8E
-E9B3 E9AD91
-E9B4 E9AD98
-E9B5 E9ADB4
-E9B6 E9AE93
-E9B7 E9AE83
-E9B8 E9AE91
-E9B9 E9AE96
-E9BA E9AE97
-E9BB E9AE9F
-E9BC E9AEA0
-E9BD E9AEA8
-E9BE E9AEB4
-E9BF E9AF80
-E9C0 E9AF8A
-E9C1 E9AEB9
-E9C2 E9AF86
-E9C3 E9AF8F
-E9C4 E9AF91
-E9C5 E9AF92
-E9C6 E9AFA3
-E9C7 E9AFA2
-E9C8 E9AFA4
-E9C9 E9AF94
-E9CA E9AFA1
-E9CB E9B0BA
-E9CC E9AFB2
-E9CD E9AFB1
-E9CE E9AFB0
-E9CF E9B095
-E9D0 E9B094
-E9D1 E9B089
-E9D2 E9B093
-E9D3 E9B08C
-E9D4 E9B086
-E9D5 E9B088
-E9D6 E9B092
-E9D7 E9B08A
-E9D8 E9B084
-E9D9 E9B0AE
-E9DA E9B09B
-E9DB E9B0A5
-E9DC E9B0A4
-E9DD E9B0A1
-E9DE E9B0B0
-E9DF E9B187
-E9E0 E9B0B2
-E9E1 E9B186
-E9E2 E9B0BE
-E9E3 E9B19A
-E9E4 E9B1A0
-E9E5 E9B1A7
-E9E6 E9B1B6
-E9E7 E9B1B8
-E9E8 E9B3A7
-E9E9 E9B3AC
-E9EA E9B3B0
-E9EB E9B489
-E9EC E9B488
-E9ED E9B3AB
-E9EE E9B483
-E9EF E9B486
-E9F0 E9B4AA
-E9F1 E9B4A6
-E9F2 E9B6AF
-E9F3 E9B4A3
-E9F4 E9B49F
-E9F5 E9B584
-E9F6 E9B495
-E9F7 E9B492
-E9F8 E9B581
-E9F9 E9B4BF
-E9FA E9B4BE
-E9FB E9B586
-E9FC E9B588
-EA40 E9B59D
-EA41 E9B59E
-EA42 E9B5A4
-EA43 E9B591
-EA44 E9B590
-EA45 E9B599
-EA46 E9B5B2
-EA47 E9B689
-EA48 E9B687
-EA49 E9B6AB
-EA4A E9B5AF
-EA4B E9B5BA
-EA4C E9B69A
-EA4D E9B6A4
-EA4E E9B6A9
-EA4F E9B6B2
-EA50 E9B784
-EA51 E9B781
-EA52 E9B6BB
-EA53 E9B6B8
-EA54 E9B6BA
-EA55 E9B786
-EA56 E9B78F
-EA57 E9B782
-EA58 E9B799
-EA59 E9B793
-EA5A E9B7B8
-EA5B E9B7A6
-EA5C E9B7AD
-EA5D E9B7AF
-EA5E E9B7BD
-EA5F E9B89A
-EA60 E9B89B
-EA61 E9B89E
-EA62 E9B9B5
-EA63 E9B9B9
-EA64 E9B9BD
-EA65 E9BA81
-EA66 E9BA88
-EA67 E9BA8B
-EA68 E9BA8C
-EA69 E9BA92
-EA6A E9BA95
-EA6B E9BA91
-EA6C E9BA9D
-EA6D E9BAA5
-EA6E E9BAA9
-EA6F E9BAB8
-EA70 E9BAAA
-EA71 E9BAAD
-EA72 E99DA1
-EA73 E9BB8C
-EA74 E9BB8E
-EA75 E9BB8F
-EA76 E9BB90
-EA77 E9BB94
-EA78 E9BB9C
-EA79 E9BB9E
-EA7A E9BB9D
-EA7B E9BBA0
-EA7C E9BBA5
-EA7D E9BBA8
-EA7E E9BBAF
-EA80 E9BBB4
-EA81 E9BBB6
-EA82 E9BBB7
-EA83 E9BBB9
-EA84 E9BBBB
-EA85 E9BBBC
-EA86 E9BBBD
-EA87 E9BC87
-EA88 E9BC88
-EA89 E79AB7
-EA8A E9BC95
-EA8B E9BCA1
-EA8C E9BCAC
-EA8D E9BCBE
-EA8E E9BD8A
-EA8F E9BD92
-EA90 E9BD94
-EA91 E9BDA3
-EA92 E9BD9F
-EA93 E9BDA0
-EA94 E9BDA1
-EA95 E9BDA6
-EA96 E9BDA7
-EA97 E9BDAC
-EA98 E9BDAA
-EA99 E9BDB7
-EA9A E9BDB2
-EA9B E9BDB6
-EA9C E9BE95
-EA9D E9BE9C
-EA9E E9BEA0
-EA9F E5A0AF
-EAA0 E6A787
-EAA1 E98199
-EAA2 E791A4
-EAA3 E5879C
-EAA4 E78699
-ED40 E7BA8A
-ED41 E8A49C
-ED42 E98D88
-ED43 E98A88
-ED44 E8939C
-ED45 E4BF89
-ED46 E782BB
-ED47 E698B1
-ED48 E6A388
-ED49 E98BB9
-ED4A E69BBB
-ED4B E5BD85
-ED4C E4B8A8
-ED4D E4BBA1
-ED4E E4BBBC
-ED4F E4BC80
-ED50 E4BC83
-ED51 E4BCB9
-ED52 E4BD96
-ED53 E4BE92
-ED54 E4BE8A
-ED55 E4BE9A
-ED56 E4BE94
-ED57 E4BF8D
-ED58 E58180
-ED59 E580A2
-ED5A E4BFBF
-ED5B E5809E
-ED5C E58186
-ED5D E581B0
-ED5E E58182
-ED5F E58294
-ED60 E583B4
-ED61 E58398
-ED62 E5858A
-ED63 E585A4
-ED64 E5869D
-ED65 E586BE
-ED66 E587AC
-ED67 E58895
-ED68 E58A9C
-ED69 E58AA6
-ED6A E58B80
-ED6B E58B9B
-ED6C E58C80
-ED6D E58C87
-ED6E E58CA4
-ED6F E58DB2
-ED70 E58E93
-ED71 E58EB2
-ED72 E58F9D
-ED73 EFA88E
-ED74 E5929C
-ED75 E5928A
-ED76 E592A9
-ED77 E593BF
-ED78 E59686
-ED79 E59D99
-ED7A E59DA5
-ED7B E59EAC
-ED7C E59F88
-ED7D E59F87
-ED7E EFA88F
-ED80 EFA890
-ED81 E5A29E
-ED82 E5A2B2
-ED83 E5A48B
-ED84 E5A593
-ED85 E5A59B
-ED86 E5A59D
-ED87 E5A5A3
-ED88 E5A6A4
-ED89 E5A6BA
-ED8A E5AD96
-ED8B E5AF80
-ED8C E794AF
-ED8D E5AF98
-ED8E E5AFAC
-ED8F E5B09E
-ED90 E5B2A6
-ED91 E5B2BA
-ED92 E5B3B5
-ED93 E5B4A7
-ED94 E5B593
-ED95 EFA891
-ED96 E5B582
-ED97 E5B5AD
-ED98 E5B6B8
-ED99 E5B6B9
-ED9A E5B790
-ED9B E5BCA1
-ED9C E5BCB4
-ED9D E5BDA7
-ED9E E5BEB7
-ED9F E5BF9E
-EDA0 E6819D
-EDA1 E68285
-EDA2 E6828A
-EDA3 E6839E
-EDA4 E68395
-EDA5 E684A0
-EDA6 E683B2
-EDA7 E68491
-EDA8 E684B7
-EDA9 E684B0
-EDAA E68698
-EDAB E68893
-EDAC E68AA6
-EDAD E68FB5
-EDAE E691A0
-EDAF E6929D
-EDB0 E6938E
-EDB1 E6958E
-EDB2 E69880
-EDB3 E69895
-EDB4 E698BB
-EDB5 E69889
-EDB6 E698AE
-EDB7 E6989E
-EDB8 E698A4
-EDB9 E699A5
-EDBA E69997
-EDBB E69999
-EDBC EFA892
-EDBD E699B3
-EDBE E69A99
-EDBF E69AA0
-EDC0 E69AB2
-EDC1 E69ABF
-EDC2 E69BBA
-EDC3 E69C8E
-EDC4 EFA4A9
-EDC5 E69DA6
-EDC6 E69EBB
-EDC7 E6A192
-EDC8 E69F80
-EDC9 E6A081
-EDCA E6A184
-EDCB E6A38F
-EDCC EFA893
-EDCD E6A5A8
-EDCE EFA894
-EDCF E6A698
-EDD0 E6A7A2
-EDD1 E6A8B0
-EDD2 E6A9AB
-EDD3 E6A986
-EDD4 E6A9B3
-EDD5 E6A9BE
-EDD6 E6ABA2
-EDD7 E6ABA4
-EDD8 E6AF96
-EDD9 E6B0BF
-EDDA E6B19C
-EDDB E6B286
-EDDC E6B1AF
-EDDD E6B39A
-EDDE E6B484
-EDDF E6B687
-EDE0 E6B5AF
-EDE1 E6B696
-EDE2 E6B6AC
-EDE3 E6B78F
-EDE4 E6B7B8
-EDE5 E6B7B2
-EDE6 E6B7BC
-EDE7 E6B8B9
-EDE8 E6B99C
-EDE9 E6B8A7
-EDEA E6B8BC
-EDEB E6BABF
-EDEC E6BE88
-EDED E6BEB5
-EDEE E6BFB5
-EDEF E78085
-EDF0 E78087
-EDF1 E780A8
-EDF2 E78285
-EDF3 E782AB
-EDF4 E7848F
-EDF5 E78484
-EDF6 E7859C
-EDF7 E78586
-EDF8 E78587
-EDF9 EFA895
-EDFA E78781
-EDFB E787BE
-EDFC E78AB1
-EE40 E78ABE
-EE41 E78CA4
-EE42 EFA896
-EE43 E78DB7
-EE44 E78EBD
-EE45 E78F89
-EE46 E78F96
-EE47 E78FA3
-EE48 E78F92
-EE49 E79087
-EE4A E78FB5
-EE4B E790A6
-EE4C E790AA
-EE4D E790A9
-EE4E E790AE
-EE4F E791A2
-EE50 E79289
-EE51 E7929F
-EE52 E79481
-EE53 E795AF
-EE54 E79A82
-EE55 E79A9C
-EE56 E79A9E
-EE57 E79A9B
-EE58 E79AA6
-EE59 EFA897
-EE5A E79D86
-EE5B E58AAF
-EE5C E7A0A1
-EE5D E7A18E
-EE5E E7A1A4
-EE5F E7A1BA
-EE60 E7A4B0
-EE61 EFA898
-EE62 EFA899
-EE63 EFA89A
-EE64 E7A694
-EE65 EFA89B
-EE66 E7A69B
-EE67 E7AB91
-EE68 E7ABA7
-EE69 EFA89C
-EE6A E7ABAB
-EE6B E7AE9E
-EE6C EFA89D
-EE6D E7B588
-EE6E E7B59C
-EE6F E7B6B7
-EE70 E7B6A0
-EE71 E7B796
-EE72 E7B992
-EE73 E7BD87
-EE74 E7BEA1
-EE75 EFA89E
-EE76 E88C81
-EE77 E88DA2
-EE78 E88DBF
-EE79 E88F87
-EE7A E88FB6
-EE7B E89188
-EE7C E892B4
-EE7D E89593
-EE7E E89599
-EE80 E895AB
-EE81 EFA89F
-EE82 E896B0
-EE83 EFA8A0
-EE84 EFA8A1
-EE85 E8A087
-EE86 E8A3B5
-EE87 E8A892
-EE88 E8A8B7
-EE89 E8A9B9
-EE8A E8AAA7
-EE8B E8AABE
-EE8C E8AB9F
-EE8D EFA8A2
-EE8E E8ABB6
-EE8F E8AD93
-EE90 E8ADBF
-EE91 E8B3B0
-EE92 E8B3B4
-EE93 E8B492
-EE94 E8B5B6
-EE95 EFA8A3
-EE96 E8BB8F
-EE97 EFA8A4
-EE98 EFA8A5
-EE99 E981A7
-EE9A E9839E
-EE9B EFA8A6
-EE9C E98495
-EE9D E984A7
-EE9E E9879A
-EE9F E98797
-EEA0 E9879E
-EEA1 E987AD
-EEA2 E987AE
-EEA3 E987A4
-EEA4 E987A5
-EEA5 E98886
-EEA6 E98890
-EEA7 E9888A
-EEA8 E988BA
-EEA9 E98980
-EEAA E988BC
-EEAB E9898E
-EEAC E98999
-EEAD E98991
-EEAE E988B9
-EEAF E989A7
-EEB0 E98AA7
-EEB1 E989B7
-EEB2 E989B8
-EEB3 E98BA7
-EEB4 E98B97
-EEB5 E98B99
-EEB6 E98B90
-EEB7 EFA8A7
-EEB8 E98B95
-EEB9 E98BA0
-EEBA E98B93
-EEBB E98CA5
-EEBC E98CA1
-EEBD E98BBB
-EEBE EFA8A8
-EEBF E98C9E
-EEC0 E98BBF
-EEC1 E98C9D
-EEC2 E98C82
-EEC3 E98DB0
-EEC4 E98D97
-EEC5 E98EA4
-EEC6 E98F86
-EEC7 E98F9E
-EEC8 E98FB8
-EEC9 E990B1
-EECA E99185
-EECB E99188
-EECC E99692
-EECD EFA79C
-EECE EFA8A9
-EECF E99A9D
-EED0 E99AAF
-EED1 E99CB3
-EED2 E99CBB
-EED3 E99D83
-EED4 E99D8D
-EED5 E99D8F
-EED6 E99D91
-EED7 E99D95
-EED8 E9A197
-EED9 E9A1A5
-EEDA EFA8AA
-EEDB EFA8AB
-EEDC E9A4A7
-EEDD EFA8AC
-EEDE E9A69E
-EEDF E9A98E
-EEE0 E9AB99
-EEE1 E9AB9C
-EEE2 E9ADB5
-EEE3 E9ADB2
-EEE4 E9AE8F
-EEE5 E9AEB1
-EEE6 E9AEBB
-EEE7 E9B080
-EEE8 E9B5B0
-EEE9 E9B5AB
-EEEA EFA8AD
-EEEB E9B899
-EEEC E9BB91
-EEEF E285B0
-EEF0 E285B1
-EEF1 E285B2
-EEF2 E285B3
-EEF3 E285B4
-EEF4 E285B5
-EEF5 E285B6
-EEF6 E285B7
-EEF7 E285B8
-EEF8 E285B9
-EEF9 EFBFA2
-EEFA EFBFA4
-EEFB EFBC87
-EEFC EFBC82
-F040 EE8080
-F041 EE8081
-F042 EE8082
-F043 EE8083
-F044 EE8084
-F045 EE8085
-F046 EE8086
-F047 EE8087
-F048 EE8088
-F049 EE8089
-F04A EE808A
-F04B EE808B
-F04C EE808C
-F04D EE808D
-F04E EE808E
-F04F EE808F
-F050 EE8090
-F051 EE8091
-F052 EE8092
-F053 EE8093
-F054 EE8094
-F055 EE8095
-F056 EE8096
-F057 EE8097
-F058 EE8098
-F059 EE8099
-F05A EE809A
-F05B EE809B
-F05C EE809C
-F05D EE809D
-F05E EE809E
-F05F EE809F
-F060 EE80A0
-F061 EE80A1
-F062 EE80A2
-F063 EE80A3
-F064 EE80A4
-F065 EE80A5
-F066 EE80A6
-F067 EE80A7
-F068 EE80A8
-F069 EE80A9
-F06A EE80AA
-F06B EE80AB
-F06C EE80AC
-F06D EE80AD
-F06E EE80AE
-F06F EE80AF
-F070 EE80B0
-F071 EE80B1
-F072 EE80B2
-F073 EE80B3
-F074 EE80B4
-F075 EE80B5
-F076 EE80B6
-F077 EE80B7
-F078 EE80B8
-F079 EE80B9
-F07A EE80BA
-F07B EE80BB
-F07C EE80BC
-F07D EE80BD
-F07E EE80BE
-F080 EE80BF
-F081 EE8180
-F082 EE8181
-F083 EE8182
-F084 EE8183
-F085 EE8184
-F086 EE8185
-F087 EE8186
-F088 EE8187
-F089 EE8188
-F08A EE8189
-F08B EE818A
-F08C EE818B
-F08D EE818C
-F08E EE818D
-F08F EE818E
-F090 EE818F
-F091 EE8190
-F092 EE8191
-F093 EE8192
-F094 EE8193
-F095 EE8194
-F096 EE8195
-F097 EE8196
-F098 EE8197
-F099 EE8198
-F09A EE8199
-F09B EE819A
-F09C EE819B
-F09D EE819C
-F09E EE819D
-F09F EE819E
-F0A0 EE819F
-F0A1 EE81A0
-F0A2 EE81A1
-F0A3 EE81A2
-F0A4 EE81A3
-F0A5 EE81A4
-F0A6 EE81A5
-F0A7 EE81A6
-F0A8 EE81A7
-F0A9 EE81A8
-F0AA EE81A9
-F0AB EE81AA
-F0AC EE81AB
-F0AD EE81AC
-F0AE EE81AD
-F0AF EE81AE
-F0B0 EE81AF
-F0B1 EE81B0
-F0B2 EE81B1
-F0B3 EE81B2
-F0B4 EE81B3
-F0B5 EE81B4
-F0B6 EE81B5
-F0B7 EE81B6
-F0B8 EE81B7
-F0B9 EE81B8
-F0BA EE81B9
-F0BB EE81BA
-F0BC EE81BB
-F0BD EE81BC
-F0BE EE81BD
-F0BF EE81BE
-F0C0 EE81BF
-F0C1 EE8280
-F0C2 EE8281
-F0C3 EE8282
-F0C4 EE8283
-F0C5 EE8284
-F0C6 EE8285
-F0C7 EE8286
-F0C8 EE8287
-F0C9 EE8288
-F0CA EE8289
-F0CB EE828A
-F0CC EE828B
-F0CD EE828C
-F0CE EE828D
-F0CF EE828E
-F0D0 EE828F
-F0D1 EE8290
-F0D2 EE8291
-F0D3 EE8292
-F0D4 EE8293
-F0D5 EE8294
-F0D6 EE8295
-F0D7 EE8296
-F0D8 EE8297
-F0D9 EE8298
-F0DA EE8299
-F0DB EE829A
-F0DC EE829B
-F0DD EE829C
-F0DE EE829D
-F0DF EE829E
-F0E0 EE829F
-F0E1 EE82A0
-F0E2 EE82A1
-F0E3 EE82A2
-F0E4 EE82A3
-F0E5 EE82A4
-F0E6 EE82A5
-F0E7 EE82A6
-F0E8 EE82A7
-F0E9 EE82A8
-F0EA EE82A9
-F0EB EE82AA
-F0EC EE82AB
-F0ED EE82AC
-F0EE EE82AD
-F0EF EE82AE
-F0F0 EE82AF
-F0F1 EE82B0
-F0F2 EE82B1
-F0F3 EE82B2
-F0F4 EE82B3
-F0F5 EE82B4
-F0F6 EE82B5
-F0F7 EE82B6
-F0F8 EE82B7
-F0F9 EE82B8
-F0FA EE82B9
-F0FB EE82BA
-F0FC EE82BB
-F140 EE82BC
-F141 EE82BD
-F142 EE82BE
-F143 EE82BF
-F144 EE8380
-F145 EE8381
-F146 EE8382
-F147 EE8383
-F148 EE8384
-F149 EE8385
-F14A EE8386
-F14B EE8387
-F14C EE8388
-F14D EE8389
-F14E EE838A
-F14F EE838B
-F150 EE838C
-F151 EE838D
-F152 EE838E
-F153 EE838F
-F154 EE8390
-F155 EE8391
-F156 EE8392
-F157 EE8393
-F158 EE8394
-F159 EE8395
-F15A EE8396
-F15B EE8397
-F15C EE8398
-F15D EE8399
-F15E EE839A
-F15F EE839B
-F160 EE839C
-F161 EE839D
-F162 EE839E
-F163 EE839F
-F164 EE83A0
-F165 EE83A1
-F166 EE83A2
-F167 EE83A3
-F168 EE83A4
-F169 EE83A5
-F16A EE83A6
-F16B EE83A7
-F16C EE83A8
-F16D EE83A9
-F16E EE83AA
-F16F EE83AB
-F170 EE83AC
-F171 EE83AD
-F172 EE83AE
-F173 EE83AF
-F174 EE83B0
-F175 EE83B1
-F176 EE83B2
-F177 EE83B3
-F178 EE83B4
-F179 EE83B5
-F17A EE83B6
-F17B EE83B7
-F17C EE83B8
-F17D EE83B9
-F17E EE83BA
-F180 EE83BB
-F181 EE83BC
-F182 EE83BD
-F183 EE83BE
-F184 EE83BF
-F185 EE8480
-F186 EE8481
-F187 EE8482
-F188 EE8483
-F189 EE8484
-F18A EE8485
-F18B EE8486
-F18C EE8487
-F18D EE8488
-F18E EE8489
-F18F EE848A
-F190 EE848B
-F191 EE848C
-F192 EE848D
-F193 EE848E
-F194 EE848F
-F195 EE8490
-F196 EE8491
-F197 EE8492
-F198 EE8493
-F199 EE8494
-F19A EE8495
-F19B EE8496
-F19C EE8497
-F19D EE8498
-F19E EE8499
-F19F EE849A
-F1A0 EE849B
-F1A1 EE849C
-F1A2 EE849D
-F1A3 EE849E
-F1A4 EE849F
-F1A5 EE84A0
-F1A6 EE84A1
-F1A7 EE84A2
-F1A8 EE84A3
-F1A9 EE84A4
-F1AA EE84A5
-F1AB EE84A6
-F1AC EE84A7
-F1AD EE84A8
-F1AE EE84A9
-F1AF EE84AA
-F1B0 EE84AB
-F1B1 EE84AC
-F1B2 EE84AD
-F1B3 EE84AE
-F1B4 EE84AF
-F1B5 EE84B0
-F1B6 EE84B1
-F1B7 EE84B2
-F1B8 EE84B3
-F1B9 EE84B4
-F1BA EE84B5
-F1BB EE84B6
-F1BC EE84B7
-F1BD EE84B8
-F1BE EE84B9
-F1BF EE84BA
-F1C0 EE84BB
-F1C1 EE84BC
-F1C2 EE84BD
-F1C3 EE84BE
-F1C4 EE84BF
-F1C5 EE8580
-F1C6 EE8581
-F1C7 EE8582
-F1C8 EE8583
-F1C9 EE8584
-F1CA EE8585
-F1CB EE8586
-F1CC EE8587
-F1CD EE8588
-F1CE EE8589
-F1CF EE858A
-F1D0 EE858B
-F1D1 EE858C
-F1D2 EE858D
-F1D3 EE858E
-F1D4 EE858F
-F1D5 EE8590
-F1D6 EE8591
-F1D7 EE8592
-F1D8 EE8593
-F1D9 EE8594
-F1DA EE8595
-F1DB EE8596
-F1DC EE8597
-F1DD EE8598
-F1DE EE8599
-F1DF EE859A
-F1E0 EE859B
-F1E1 EE859C
-F1E2 EE859D
-F1E3 EE859E
-F1E4 EE859F
-F1E5 EE85A0
-F1E6 EE85A1
-F1E7 EE85A2
-F1E8 EE85A3
-F1E9 EE85A4
-F1EA EE85A5
-F1EB EE85A6
-F1EC EE85A7
-F1ED EE85A8
-F1EE EE85A9
-F1EF EE85AA
-F1F0 EE85AB
-F1F1 EE85AC
-F1F2 EE85AD
-F1F3 EE85AE
-F1F4 EE85AF
-F1F5 EE85B0
-F1F6 EE85B1
-F1F7 EE85B2
-F1F8 EE85B3
-F1F9 EE85B4
-F1FA EE85B5
-F1FB EE85B6
-F1FC EE85B7
-F240 EE85B8
-F241 EE85B9
-F242 EE85BA
-F243 EE85BB
-F244 EE85BC
-F245 EE85BD
-F246 EE85BE
-F247 EE85BF
-F248 EE8680
-F249 EE8681
-F24A EE8682
-F24B EE8683
-F24C EE8684
-F24D EE8685
-F24E EE8686
-F24F EE8687
-F250 EE8688
-F251 EE8689
-F252 EE868A
-F253 EE868B
-F254 EE868C
-F255 EE868D
-F256 EE868E
-F257 EE868F
-F258 EE8690
-F259 EE8691
-F25A EE8692
-F25B EE8693
-F25C EE8694
-F25D EE8695
-F25E EE8696
-F25F EE8697
-F260 EE8698
-F261 EE8699
-F262 EE869A
-F263 EE869B
-F264 EE869C
-F265 EE869D
-F266 EE869E
-F267 EE869F
-F268 EE86A0
-F269 EE86A1
-F26A EE86A2
-F26B EE86A3
-F26C EE86A4
-F26D EE86A5
-F26E EE86A6
-F26F EE86A7
-F270 EE86A8
-F271 EE86A9
-F272 EE86AA
-F273 EE86AB
-F274 EE86AC
-F275 EE86AD
-F276 EE86AE
-F277 EE86AF
-F278 EE86B0
-F279 EE86B1
-F27A EE86B2
-F27B EE86B3
-F27C EE86B4
-F27D EE86B5
-F27E EE86B6
-F280 EE86B7
-F281 EE86B8
-F282 EE86B9
-F283 EE86BA
-F284 EE86BB
-F285 EE86BC
-F286 EE86BD
-F287 EE86BE
-F288 EE86BF
-F289 EE8780
-F28A EE8781
-F28B EE8782
-F28C EE8783
-F28D EE8784
-F28E EE8785
-F28F EE8786
-F290 EE8787
-F291 EE8788
-F292 EE8789
-F293 EE878A
-F294 EE878B
-F295 EE878C
-F296 EE878D
-F297 EE878E
-F298 EE878F
-F299 EE8790
-F29A EE8791
-F29B EE8792
-F29C EE8793
-F29D EE8794
-F29E EE8795
-F29F EE8796
-F2A0 EE8797
-F2A1 EE8798
-F2A2 EE8799
-F2A3 EE879A
-F2A4 EE879B
-F2A5 EE879C
-F2A6 EE879D
-F2A7 EE879E
-F2A8 EE879F
-F2A9 EE87A0
-F2AA EE87A1
-F2AB EE87A2
-F2AC EE87A3
-F2AD EE87A4
-F2AE EE87A5
-F2AF EE87A6
-F2B0 EE87A7
-F2B1 EE87A8
-F2B2 EE87A9
-F2B3 EE87AA
-F2B4 EE87AB
-F2B5 EE87AC
-F2B6 EE87AD
-F2B7 EE87AE
-F2B8 EE87AF
-F2B9 EE87B0
-F2BA EE87B1
-F2BB EE87B2
-F2BC EE87B3
-F2BD EE87B4
-F2BE EE87B5
-F2BF EE87B6
-F2C0 EE87B7
-F2C1 EE87B8
-F2C2 EE87B9
-F2C3 EE87BA
-F2C4 EE87BB
-F2C5 EE87BC
-F2C6 EE87BD
-F2C7 EE87BE
-F2C8 EE87BF
-F2C9 EE8880
-F2CA EE8881
-F2CB EE8882
-F2CC EE8883
-F2CD EE8884
-F2CE EE8885
-F2CF EE8886
-F2D0 EE8887
-F2D1 EE8888
-F2D2 EE8889
-F2D3 EE888A
-F2D4 EE888B
-F2D5 EE888C
-F2D6 EE888D
-F2D7 EE888E
-F2D8 EE888F
-F2D9 EE8890
-F2DA EE8891
-F2DB EE8892
-F2DC EE8893
-F2DD EE8894
-F2DE EE8895
-F2DF EE8896
-F2E0 EE8897
-F2E1 EE8898
-F2E2 EE8899
-F2E3 EE889A
-F2E4 EE889B
-F2E5 EE889C
-F2E6 EE889D
-F2E7 EE889E
-F2E8 EE889F
-F2E9 EE88A0
-F2EA EE88A1
-F2EB EE88A2
-F2EC EE88A3
-F2ED EE88A4
-F2EE EE88A5
-F2EF EE88A6
-F2F0 EE88A7
-F2F1 EE88A8
-F2F2 EE88A9
-F2F3 EE88AA
-F2F4 EE88AB
-F2F5 EE88AC
-F2F6 EE88AD
-F2F7 EE88AE
-F2F8 EE88AF
-F2F9 EE88B0
-F2FA EE88B1
-F2FB EE88B2
-F2FC EE88B3
-F340 EE88B4
-F341 EE88B5
-F342 EE88B6
-F343 EE88B7
-F344 EE88B8
-F345 EE88B9
-F346 EE88BA
-F347 EE88BB
-F348 EE88BC
-F349 EE88BD
-F34A EE88BE
-F34B EE88BF
-F34C EE8980
-F34D EE8981
-F34E EE8982
-F34F EE8983
-F350 EE8984
-F351 EE8985
-F352 EE8986
-F353 EE8987
-F354 EE8988
-F355 EE8989
-F356 EE898A
-F357 EE898B
-F358 EE898C
-F359 EE898D
-F35A EE898E
-F35B EE898F
-F35C EE8990
-F35D EE8991
-F35E EE8992
-F35F EE8993
-F360 EE8994
-F361 EE8995
-F362 EE8996
-F363 EE8997
-F364 EE8998
-F365 EE8999
-F366 EE899A
-F367 EE899B
-F368 EE899C
-F369 EE899D
-F36A EE899E
-F36B EE899F
-F36C EE89A0
-F36D EE89A1
-F36E EE89A2
-F36F EE89A3
-F370 EE89A4
-F371 EE89A5
-F372 EE89A6
-F373 EE89A7
-F374 EE89A8
-F375 EE89A9
-F376 EE89AA
-F377 EE89AB
-F378 EE89AC
-F379 EE89AD
-F37A EE89AE
-F37B EE89AF
-F37C EE89B0
-F37D EE89B1
-F37E EE89B2
-F380 EE89B3
-F381 EE89B4
-F382 EE89B5
-F383 EE89B6
-F384 EE89B7
-F385 EE89B8
-F386 EE89B9
-F387 EE89BA
-F388 EE89BB
-F389 EE89BC
-F38A EE89BD
-F38B EE89BE
-F38C EE89BF
-F38D EE8A80
-F38E EE8A81
-F38F EE8A82
-F390 EE8A83
-F391 EE8A84
-F392 EE8A85
-F393 EE8A86
-F394 EE8A87
-F395 EE8A88
-F396 EE8A89
-F397 EE8A8A
-F398 EE8A8B
-F399 EE8A8C
-F39A EE8A8D
-F39B EE8A8E
-F39C EE8A8F
-F39D EE8A90
-F39E EE8A91
-F39F EE8A92
-F3A0 EE8A93
-F3A1 EE8A94
-F3A2 EE8A95
-F3A3 EE8A96
-F3A4 EE8A97
-F3A5 EE8A98
-F3A6 EE8A99
-F3A7 EE8A9A
-F3A8 EE8A9B
-F3A9 EE8A9C
-F3AA EE8A9D
-F3AB EE8A9E
-F3AC EE8A9F
-F3AD EE8AA0
-F3AE EE8AA1
-F3AF EE8AA2
-F3B0 EE8AA3
-F3B1 EE8AA4
-F3B2 EE8AA5
-F3B3 EE8AA6
-F3B4 EE8AA7
-F3B5 EE8AA8
-F3B6 EE8AA9
-F3B7 EE8AAA
-F3B8 EE8AAB
-F3B9 EE8AAC
-F3BA EE8AAD
-F3BB EE8AAE
-F3BC EE8AAF
-F3BD EE8AB0
-F3BE EE8AB1
-F3BF EE8AB2
-F3C0 EE8AB3
-F3C1 EE8AB4
-F3C2 EE8AB5
-F3C3 EE8AB6
-F3C4 EE8AB7
-F3C5 EE8AB8
-F3C6 EE8AB9
-F3C7 EE8ABA
-F3C8 EE8ABB
-F3C9 EE8ABC
-F3CA EE8ABD
-F3CB EE8ABE
-F3CC EE8ABF
-F3CD EE8B80
-F3CE EE8B81
-F3CF EE8B82
-F3D0 EE8B83
-F3D1 EE8B84
-F3D2 EE8B85
-F3D3 EE8B86
-F3D4 EE8B87
-F3D5 EE8B88
-F3D6 EE8B89
-F3D7 EE8B8A
-F3D8 EE8B8B
-F3D9 EE8B8C
-F3DA EE8B8D
-F3DB EE8B8E
-F3DC EE8B8F
-F3DD EE8B90
-F3DE EE8B91
-F3DF EE8B92
-F3E0 EE8B93
-F3E1 EE8B94
-F3E2 EE8B95
-F3E3 EE8B96
-F3E4 EE8B97
-F3E5 EE8B98
-F3E6 EE8B99
-F3E7 EE8B9A
-F3E8 EE8B9B
-F3E9 EE8B9C
-F3EA EE8B9D
-F3EB EE8B9E
-F3EC EE8B9F
-F3ED EE8BA0
-F3EE EE8BA1
-F3EF EE8BA2
-F3F0 EE8BA3
-F3F1 EE8BA4
-F3F2 EE8BA5
-F3F3 EE8BA6
-F3F4 EE8BA7
-F3F5 EE8BA8
-F3F6 EE8BA9
-F3F7 EE8BAA
-F3F8 EE8BAB
-F3F9 EE8BAC
-F3FA EE8BAD
-F3FB EE8BAE
-F3FC EE8BAF
-F440 EE8BB0
-F441 EE8BB1
-F442 EE8BB2
-F443 EE8BB3
-F444 EE8BB4
-F445 EE8BB5
-F446 EE8BB6
-F447 EE8BB7
-F448 EE8BB8
-F449 EE8BB9
-F44A EE8BBA
-F44B EE8BBB
-F44C EE8BBC
-F44D EE8BBD
-F44E EE8BBE
-F44F EE8BBF
-F450 EE8C80
-F451 EE8C81
-F452 EE8C82
-F453 EE8C83
-F454 EE8C84
-F455 EE8C85
-F456 EE8C86
-F457 EE8C87
-F458 EE8C88
-F459 EE8C89
-F45A EE8C8A
-F45B EE8C8B
-F45C EE8C8C
-F45D EE8C8D
-F45E EE8C8E
-F45F EE8C8F
-F460 EE8C90
-F461 EE8C91
-F462 EE8C92
-F463 EE8C93
-F464 EE8C94
-F465 EE8C95
-F466 EE8C96
-F467 EE8C97
-F468 EE8C98
-F469 EE8C99
-F46A EE8C9A
-F46B EE8C9B
-F46C EE8C9C
-F46D EE8C9D
-F46E EE8C9E
-F46F EE8C9F
-F470 EE8CA0
-F471 EE8CA1
-F472 EE8CA2
-F473 EE8CA3
-F474 EE8CA4
-F475 EE8CA5
-F476 EE8CA6
-F477 EE8CA7
-F478 EE8CA8
-F479 EE8CA9
-F47A EE8CAA
-F47B EE8CAB
-F47C EE8CAC
-F47D EE8CAD
-F47E EE8CAE
-F480 EE8CAF
-F481 EE8CB0
-F482 EE8CB1
-F483 EE8CB2
-F484 EE8CB3
-F485 EE8CB4
-F486 EE8CB5
-F487 EE8CB6
-F488 EE8CB7
-F489 EE8CB8
-F48A EE8CB9
-F48B EE8CBA
-F48C EE8CBB
-F48D EE8CBC
-F48E EE8CBD
-F48F EE8CBE
-F490 EE8CBF
-F491 EE8D80
-F492 EE8D81
-F493 EE8D82
-F494 EE8D83
-F495 EE8D84
-F496 EE8D85
-F497 EE8D86
-F498 EE8D87
-F499 EE8D88
-F49A EE8D89
-F49B EE8D8A
-F49C EE8D8B
-F49D EE8D8C
-F49E EE8D8D
-F49F EE8D8E
-F4A0 EE8D8F
-F4A1 EE8D90
-F4A2 EE8D91
-F4A3 EE8D92
-F4A4 EE8D93
-F4A5 EE8D94
-F4A6 EE8D95
-F4A7 EE8D96
-F4A8 EE8D97
-F4A9 EE8D98
-F4AA EE8D99
-F4AB EE8D9A
-F4AC EE8D9B
-F4AD EE8D9C
-F4AE EE8D9D
-F4AF EE8D9E
-F4B0 EE8D9F
-F4B1 EE8DA0
-F4B2 EE8DA1
-F4B3 EE8DA2
-F4B4 EE8DA3
-F4B5 EE8DA4
-F4B6 EE8DA5
-F4B7 EE8DA6
-F4B8 EE8DA7
-F4B9 EE8DA8
-F4BA EE8DA9
-F4BB EE8DAA
-F4BC EE8DAB
-F4BD EE8DAC
-F4BE EE8DAD
-F4BF EE8DAE
-F4C0 EE8DAF
-F4C1 EE8DB0
-F4C2 EE8DB1
-F4C3 EE8DB2
-F4C4 EE8DB3
-F4C5 EE8DB4
-F4C6 EE8DB5
-F4C7 EE8DB6
-F4C8 EE8DB7
-F4C9 EE8DB8
-F4CA EE8DB9
-F4CB EE8DBA
-F4CC EE8DBB
-F4CD EE8DBC
-F4CE EE8DBD
-F4CF EE8DBE
-F4D0 EE8DBF
-F4D1 EE8E80
-F4D2 EE8E81
-F4D3 EE8E82
-F4D4 EE8E83
-F4D5 EE8E84
-F4D6 EE8E85
-F4D7 EE8E86
-F4D8 EE8E87
-F4D9 EE8E88
-F4DA EE8E89
-F4DB EE8E8A
-F4DC EE8E8B
-F4DD EE8E8C
-F4DE EE8E8D
-F4DF EE8E8E
-F4E0 EE8E8F
-F4E1 EE8E90
-F4E2 EE8E91
-F4E3 EE8E92
-F4E4 EE8E93
-F4E5 EE8E94
-F4E6 EE8E95
-F4E7 EE8E96
-F4E8 EE8E97
-F4E9 EE8E98
-F4EA EE8E99
-F4EB EE8E9A
-F4EC EE8E9B
-F4ED EE8E9C
-F4EE EE8E9D
-F4EF EE8E9E
-F4F0 EE8E9F
-F4F1 EE8EA0
-F4F2 EE8EA1
-F4F3 EE8EA2
-F4F4 EE8EA3
-F4F5 EE8EA4
-F4F6 EE8EA5
-F4F7 EE8EA6
-F4F8 EE8EA7
-F4F9 EE8EA8
-F4FA EE8EA9
-F4FB EE8EAA
-F4FC EE8EAB
-F540 EE8EAC
-F541 EE8EAD
-F542 EE8EAE
-F543 EE8EAF
-F544 EE8EB0
-F545 EE8EB1
-F546 EE8EB2
-F547 EE8EB3
-F548 EE8EB4
-F549 EE8EB5
-F54A EE8EB6
-F54B EE8EB7
-F54C EE8EB8
-F54D EE8EB9
-F54E EE8EBA
-F54F EE8EBB
-F550 EE8EBC
-F551 EE8EBD
-F552 EE8EBE
-F553 EE8EBF
-F554 EE8F80
-F555 EE8F81
-F556 EE8F82
-F557 EE8F83
-F558 EE8F84
-F559 EE8F85
-F55A EE8F86
-F55B EE8F87
-F55C EE8F88
-F55D EE8F89
-F55E EE8F8A
-F55F EE8F8B
-F560 EE8F8C
-F561 EE8F8D
-F562 EE8F8E
-F563 EE8F8F
-F564 EE8F90
-F565 EE8F91
-F566 EE8F92
-F567 EE8F93
-F568 EE8F94
-F569 EE8F95
-F56A EE8F96
-F56B EE8F97
-F56C EE8F98
-F56D EE8F99
-F56E EE8F9A
-F56F EE8F9B
-F570 EE8F9C
-F571 EE8F9D
-F572 EE8F9E
-F573 EE8F9F
-F574 EE8FA0
-F575 EE8FA1
-F576 EE8FA2
-F577 EE8FA3
-F578 EE8FA4
-F579 EE8FA5
-F57A EE8FA6
-F57B EE8FA7
-F57C EE8FA8
-F57D EE8FA9
-F57E EE8FAA
-F580 EE8FAB
-F581 EE8FAC
-F582 EE8FAD
-F583 EE8FAE
-F584 EE8FAF
-F585 EE8FB0
-F586 EE8FB1
-F587 EE8FB2
-F588 EE8FB3
-F589 EE8FB4
-F58A EE8FB5
-F58B EE8FB6
-F58C EE8FB7
-F58D EE8FB8
-F58E EE8FB9
-F58F EE8FBA
-F590 EE8FBB
-F591 EE8FBC
-F592 EE8FBD
-F593 EE8FBE
-F594 EE8FBF
-F595 EE9080
-F596 EE9081
-F597 EE9082
-F598 EE9083
-F599 EE9084
-F59A EE9085
-F59B EE9086
-F59C EE9087
-F59D EE9088
-F59E EE9089
-F59F EE908A
-F5A0 EE908B
-F5A1 EE908C
-F5A2 EE908D
-F5A3 EE908E
-F5A4 EE908F
-F5A5 EE9090
-F5A6 EE9091
-F5A7 EE9092
-F5A8 EE9093
-F5A9 EE9094
-F5AA EE9095
-F5AB EE9096
-F5AC EE9097
-F5AD EE9098
-F5AE EE9099
-F5AF EE909A
-F5B0 EE909B
-F5B1 EE909C
-F5B2 EE909D
-F5B3 EE909E
-F5B4 EE909F
-F5B5 EE90A0
-F5B6 EE90A1
-F5B7 EE90A2
-F5B8 EE90A3
-F5B9 EE90A4
-F5BA EE90A5
-F5BB EE90A6
-F5BC EE90A7
-F5BD EE90A8
-F5BE EE90A9
-F5BF EE90AA
-F5C0 EE90AB
-F5C1 EE90AC
-F5C2 EE90AD
-F5C3 EE90AE
-F5C4 EE90AF
-F5C5 EE90B0
-F5C6 EE90B1
-F5C7 EE90B2
-F5C8 EE90B3
-F5C9 EE90B4
-F5CA EE90B5
-F5CB EE90B6
-F5CC EE90B7
-F5CD EE90B8
-F5CE EE90B9
-F5CF EE90BA
-F5D0 EE90BB
-F5D1 EE90BC
-F5D2 EE90BD
-F5D3 EE90BE
-F5D4 EE90BF
-F5D5 EE9180
-F5D6 EE9181
-F5D7 EE9182
-F5D8 EE9183
-F5D9 EE9184
-F5DA EE9185
-F5DB EE9186
-F5DC EE9187
-F5DD EE9188
-F5DE EE9189
-F5DF EE918A
-F5E0 EE918B
-F5E1 EE918C
-F5E2 EE918D
-F5E3 EE918E
-F5E4 EE918F
-F5E5 EE9190
-F5E6 EE9191
-F5E7 EE9192
-F5E8 EE9193
-F5E9 EE9194
-F5EA EE9195
-F5EB EE9196
-F5EC EE9197
-F5ED EE9198
-F5EE EE9199
-F5EF EE919A
-F5F0 EE919B
-F5F1 EE919C
-F5F2 EE919D
-F5F3 EE919E
-F5F4 EE919F
-F5F5 EE91A0
-F5F6 EE91A1
-F5F7 EE91A2
-F5F8 EE91A3
-F5F9 EE91A4
-F5FA EE91A5
-F5FB EE91A6
-F5FC EE91A7
-F640 EE91A8
-F641 EE91A9
-F642 EE91AA
-F643 EE91AB
-F644 EE91AC
-F645 EE91AD
-F646 EE91AE
-F647 EE91AF
-F648 EE91B0
-F649 EE91B1
-F64A EE91B2
-F64B EE91B3
-F64C EE91B4
-F64D EE91B5
-F64E EE91B6
-F64F EE91B7
-F650 EE91B8
-F651 EE91B9
-F652 EE91BA
-F653 EE91BB
-F654 EE91BC
-F655 EE91BD
-F656 EE91BE
-F657 EE91BF
-F658 EE9280
-F659 EE9281
-F65A EE9282
-F65B EE9283
-F65C EE9284
-F65D EE9285
-F65E EE9286
-F65F EE9287
-F660 EE9288
-F661 EE9289
-F662 EE928A
-F663 EE928B
-F664 EE928C
-F665 EE928D
-F666 EE928E
-F667 EE928F
-F668 EE9290
-F669 EE9291
-F66A EE9292
-F66B EE9293
-F66C EE9294
-F66D EE9295
-F66E EE9296
-F66F EE9297
-F670 EE9298
-F671 EE9299
-F672 EE929A
-F673 EE929B
-F674 EE929C
-F675 EE929D
-F676 EE929E
-F677 EE929F
-F678 EE92A0
-F679 EE92A1
-F67A EE92A2
-F67B EE92A3
-F67C EE92A4
-F67D EE92A5
-F67E EE92A6
-F680 EE92A7
-F681 EE92A8
-F682 EE92A9
-F683 EE92AA
-F684 EE92AB
-F685 EE92AC
-F686 EE92AD
-F687 EE92AE
-F688 EE92AF
-F689 EE92B0
-F68A EE92B1
-F68B EE92B2
-F68C EE92B3
-F68D EE92B4
-F68E EE92B5
-F68F EE92B6
-F690 EE92B7
-F691 EE92B8
-F692 EE92B9
-F693 EE92BA
-F694 EE92BB
-F695 EE92BC
-F696 EE92BD
-F697 EE92BE
-F698 EE92BF
-F699 EE9380
-F69A EE9381
-F69B EE9382
-F69C EE9383
-F69D EE9384
-F69E EE9385
-F69F EE9386
-F6A0 EE9387
-F6A1 EE9388
-F6A2 EE9389
-F6A3 EE938A
-F6A4 EE938B
-F6A5 EE938C
-F6A6 EE938D
-F6A7 EE938E
-F6A8 EE938F
-F6A9 EE9390
-F6AA EE9391
-F6AB EE9392
-F6AC EE9393
-F6AD EE9394
-F6AE EE9395
-F6AF EE9396
-F6B0 EE9397
-F6B1 EE9398
-F6B2 EE9399
-F6B3 EE939A
-F6B4 EE939B
-F6B5 EE939C
-F6B6 EE939D
-F6B7 EE939E
-F6B8 EE939F
-F6B9 EE93A0
-F6BA EE93A1
-F6BB EE93A2
-F6BC EE93A3
-F6BD EE93A4
-F6BE EE93A5
-F6BF EE93A6
-F6C0 EE93A7
-F6C1 EE93A8
-F6C2 EE93A9
-F6C3 EE93AA
-F6C4 EE93AB
-F6C5 EE93AC
-F6C6 EE93AD
-F6C7 EE93AE
-F6C8 EE93AF
-F6C9 EE93B0
-F6CA EE93B1
-F6CB EE93B2
-F6CC EE93B3
-F6CD EE93B4
-F6CE EE93B5
-F6CF EE93B6
-F6D0 EE93B7
-F6D1 EE93B8
-F6D2 EE93B9
-F6D3 EE93BA
-F6D4 EE93BB
-F6D5 EE93BC
-F6D6 EE93BD
-F6D7 EE93BE
-F6D8 EE93BF
-F6D9 EE9480
-F6DA EE9481
-F6DB EE9482
-F6DC EE9483
-F6DD EE9484
-F6DE EE9485
-F6DF EE9486
-F6E0 EE9487
-F6E1 EE9488
-F6E2 EE9489
-F6E3 EE948A
-F6E4 EE948B
-F6E5 EE948C
-F6E6 EE948D
-F6E7 EE948E
-F6E8 EE948F
-F6E9 EE9490
-F6EA EE9491
-F6EB EE9492
-F6EC EE9493
-F6ED EE9494
-F6EE EE9495
-F6EF EE9496
-F6F0 EE9497
-F6F1 EE9498
-F6F2 EE9499
-F6F3 EE949A
-F6F4 EE949B
-F6F5 EE949C
-F6F6 EE949D
-F6F7 EE949E
-F6F8 EE949F
-F6F9 EE94A0
-F6FA EE94A1
-F6FB EE94A2
-F6FC EE94A3
-F740 EE94A4
-F741 EE94A5
-F742 EE94A6
-F743 EE94A7
-F744 EE94A8
-F745 EE94A9
-F746 EE94AA
-F747 EE94AB
-F748 EE94AC
-F749 EE94AD
-F74A EE94AE
-F74B EE94AF
-F74C EE94B0
-F74D EE94B1
-F74E EE94B2
-F74F EE94B3
-F750 EE94B4
-F751 EE94B5
-F752 EE94B6
-F753 EE94B7
-F754 EE94B8
-F755 EE94B9
-F756 EE94BA
-F757 EE94BB
-F758 EE94BC
-F759 EE94BD
-F75A EE94BE
-F75B EE94BF
-F75C EE9580
-F75D EE9581
-F75E EE9582
-F75F EE9583
-F760 EE9584
-F761 EE9585
-F762 EE9586
-F763 EE9587
-F764 EE9588
-F765 EE9589
-F766 EE958A
-F767 EE958B
-F768 EE958C
-F769 EE958D
-F76A EE958E
-F76B EE958F
-F76C EE9590
-F76D EE9591
-F76E EE9592
-F76F EE9593
-F770 EE9594
-F771 EE9595
-F772 EE9596
-F773 EE9597
-F774 EE9598
-F775 EE9599
-F776 EE959A
-F777 EE959B
-F778 EE959C
-F779 EE959D
-F77A EE959E
-F77B EE959F
-F77C EE95A0
-F77D EE95A1
-F77E EE95A2
-F780 EE95A3
-F781 EE95A4
-F782 EE95A5
-F783 EE95A6
-F784 EE95A7
-F785 EE95A8
-F786 EE95A9
-F787 EE95AA
-F788 EE95AB
-F789 EE95AC
-F78A EE95AD
-F78B EE95AE
-F78C EE95AF
-F78D EE95B0
-F78E EE95B1
-F78F EE95B2
-F790 EE95B3
-F791 EE95B4
-F792 EE95B5
-F793 EE95B6
-F794 EE95B7
-F795 EE95B8
-F796 EE95B9
-F797 EE95BA
-F798 EE95BB
-F799 EE95BC
-F79A EE95BD
-F79B EE95BE
-F79C EE95BF
-F79D EE9680
-F79E EE9681
-F79F EE9682
-F7A0 EE9683
-F7A1 EE9684
-F7A2 EE9685
-F7A3 EE9686
-F7A4 EE9687
-F7A5 EE9688
-F7A6 EE9689
-F7A7 EE968A
-F7A8 EE968B
-F7A9 EE968C
-F7AA EE968D
-F7AB EE968E
-F7AC EE968F
-F7AD EE9690
-F7AE EE9691
-F7AF EE9692
-F7B0 EE9693
-F7B1 EE9694
-F7B2 EE9695
-F7B3 EE9696
-F7B4 EE9697
-F7B5 EE9698
-F7B6 EE9699
-F7B7 EE969A
-F7B8 EE969B
-F7B9 EE969C
-F7BA EE969D
-F7BB EE969E
-F7BC EE969F
-F7BD EE96A0
-F7BE EE96A1
-F7BF EE96A2
-F7C0 EE96A3
-F7C1 EE96A4
-F7C2 EE96A5
-F7C3 EE96A6
-F7C4 EE96A7
-F7C5 EE96A8
-F7C6 EE96A9
-F7C7 EE96AA
-F7C8 EE96AB
-F7C9 EE96AC
-F7CA EE96AD
-F7CB EE96AE
-F7CC EE96AF
-F7CD EE96B0
-F7CE EE96B1
-F7CF EE96B2
-F7D0 EE96B3
-F7D1 EE96B4
-F7D2 EE96B5
-F7D3 EE96B6
-F7D4 EE96B7
-F7D5 EE96B8
-F7D6 EE96B9
-F7D7 EE96BA
-F7D8 EE96BB
-F7D9 EE96BC
-F7DA EE96BD
-F7DB EE96BE
-F7DC EE96BF
-F7DD EE9780
-F7DE EE9781
-F7DF EE9782
-F7E0 EE9783
-F7E1 EE9784
-F7E2 EE9785
-F7E3 EE9786
-F7E4 EE9787
-F7E5 EE9788
-F7E6 EE9789
-F7E7 EE978A
-F7E8 EE978B
-F7E9 EE978C
-F7EA EE978D
-F7EB EE978E
-F7EC EE978F
-F7ED EE9790
-F7EE EE9791
-F7EF EE9792
-F7F0 EE9793
-F7F1 EE9794
-F7F2 EE9795
-F7F3 EE9796
-F7F4 EE9797
-F7F5 EE9798
-F7F6 EE9799
-F7F7 EE979A
-F7F8 EE979B
-F7F9 EE979C
-F7FA EE979D
-F7FB EE979E
-F7FC EE979F
-F840 EE97A0
-F841 EE97A1
-F842 EE97A2
-F843 EE97A3
-F844 EE97A4
-F845 EE97A5
-F846 EE97A6
-F847 EE97A7
-F848 EE97A8
-F849 EE97A9
-F84A EE97AA
-F84B EE97AB
-F84C EE97AC
-F84D EE97AD
-F84E EE97AE
-F84F EE97AF
-F850 EE97B0
-F851 EE97B1
-F852 EE97B2
-F853 EE97B3
-F854 EE97B4
-F855 EE97B5
-F856 EE97B6
-F857 EE97B7
-F858 EE97B8
-F859 EE97B9
-F85A EE97BA
-F85B EE97BB
-F85C EE97BC
-F85D EE97BD
-F85E EE97BE
-F85F EE97BF
-F860 EE9880
-F861 EE9881
-F862 EE9882
-F863 EE9883
-F864 EE9884
-F865 EE9885
-F866 EE9886
-F867 EE9887
-F868 EE9888
-F869 EE9889
-F86A EE988A
-F86B EE988B
-F86C EE988C
-F86D EE988D
-F86E EE988E
-F86F EE988F
-F870 EE9890
-F871 EE9891
-F872 EE9892
-F873 EE9893
-F874 EE9894
-F875 EE9895
-F876 EE9896
-F877 EE9897
-F878 EE9898
-F879 EE9899
-F87A EE989A
-F87B EE989B
-F87C EE989C
-F87D EE989D
-F87E EE989E
-F880 EE989F
-F881 EE98A0
-F882 EE98A1
-F883 EE98A2
-F884 EE98A3
-F885 EE98A4
-F886 EE98A5
-F887 EE98A6
-F888 EE98A7
-F889 EE98A8
-F88A EE98A9
-F88B EE98AA
-F88C EE98AB
-F88D EE98AC
-F88E EE98AD
-F88F EE98AE
-F890 EE98AF
-F891 EE98B0
-F892 EE98B1
-F893 EE98B2
-F894 EE98B3
-F895 EE98B4
-F896 EE98B5
-F897 EE98B6
-F898 EE98B7
-F899 EE98B8
-F89A EE98B9
-F89B EE98BA
-F89C EE98BB
-F89D EE98BC
-F89E EE98BD
-F89F EE98BE
-F8A0 EE98BF
-F8A1 EE9980
-F8A2 EE9981
-F8A3 EE9982
-F8A4 EE9983
-F8A5 EE9984
-F8A6 EE9985
-F8A7 EE9986
-F8A8 EE9987
-F8A9 EE9988
-F8AA EE9989
-F8AB EE998A
-F8AC EE998B
-F8AD EE998C
-F8AE EE998D
-F8AF EE998E
-F8B0 EE998F
-F8B1 EE9990
-F8B2 EE9991
-F8B3 EE9992
-F8B4 EE9993
-F8B5 EE9994
-F8B6 EE9995
-F8B7 EE9996
-F8B8 EE9997
-F8B9 EE9998
-F8BA EE9999
-F8BB EE999A
-F8BC EE999B
-F8BD EE999C
-F8BE EE999D
-F8BF EE999E
-F8C0 EE999F
-F8C1 EE99A0
-F8C2 EE99A1
-F8C3 EE99A2
-F8C4 EE99A3
-F8C5 EE99A4
-F8C6 EE99A5
-F8C7 EE99A6
-F8C8 EE99A7
-F8C9 EE99A8
-F8CA EE99A9
-F8CB EE99AA
-F8CC EE99AB
-F8CD EE99AC
-F8CE EE99AD
-F8CF EE99AE
-F8D0 EE99AF
-F8D1 EE99B0
-F8D2 EE99B1
-F8D3 EE99B2
-F8D4 EE99B3
-F8D5 EE99B4
-F8D6 EE99B5
-F8D7 EE99B6
-F8D8 EE99B7
-F8D9 EE99B8
-F8DA EE99B9
-F8DB EE99BA
-F8DC EE99BB
-F8DD EE99BC
-F8DE EE99BD
-F8DF EE99BE
-F8E0 EE99BF
-F8E1 EE9A80
-F8E2 EE9A81
-F8E3 EE9A82
-F8E4 EE9A83
-F8E5 EE9A84
-F8E6 EE9A85
-F8E7 EE9A86
-F8E8 EE9A87
-F8E9 EE9A88
-F8EA EE9A89
-F8EB EE9A8A
-F8EC EE9A8B
-F8ED EE9A8C
-F8EE EE9A8D
-F8EF EE9A8E
-F8F0 EE9A8F
-F8F1 EE9A90
-F8F2 EE9A91
-F8F3 EE9A92
-F8F4 EE9A93
-F8F5 EE9A94
-F8F6 EE9A95
-F8F7 EE9A96
-F8F8 EE9A97
-F8F9 EE9A98
-F8FA EE9A99
-F8FB EE9A9A
-F8FC EE9A9B
-F940 EE9A9C
-F941 EE9A9D
-F942 EE9A9E
-F943 EE9A9F
-F944 EE9AA0
-F945 EE9AA1
-F946 EE9AA2
-F947 EE9AA3
-F948 EE9AA4
-F949 EE9AA5
-F94A EE9AA6
-F94B EE9AA7
-F94C EE9AA8
-F94D EE9AA9
-F94E EE9AAA
-F94F EE9AAB
-F950 EE9AAC
-F951 EE9AAD
-F952 EE9AAE
-F953 EE9AAF
-F954 EE9AB0
-F955 EE9AB1
-F956 EE9AB2
-F957 EE9AB3
-F958 EE9AB4
-F959 EE9AB5
-F95A EE9AB6
-F95B EE9AB7
-F95C EE9AB8
-F95D EE9AB9
-F95E EE9ABA
-F95F EE9ABB
-F960 EE9ABC
-F961 EE9ABD
-F962 EE9ABE
-F963 EE9ABF
-F964 EE9B80
-F965 EE9B81
-F966 EE9B82
-F967 EE9B83
-F968 EE9B84
-F969 EE9B85
-F96A EE9B86
-F96B EE9B87
-F96C EE9B88
-F96D EE9B89
-F96E EE9B8A
-F96F EE9B8B
-F970 EE9B8C
-F971 EE9B8D
-F972 EE9B8E
-F973 EE9B8F
-F974 EE9B90
-F975 EE9B91
-F976 EE9B92
-F977 EE9B93
-F978 EE9B94
-F979 EE9B95
-F97A EE9B96
-F97B EE9B97
-F97C EE9B98
-F97D EE9B99
-F97E EE9B9A
-F980 EE9B9B
-F981 EE9B9C
-F982 EE9B9D
-F983 EE9B9E
-F984 EE9B9F
-F985 EE9BA0
-F986 EE9BA1
-F987 EE9BA2
-F988 EE9BA3
-F989 EE9BA4
-F98A EE9BA5
-F98B EE9BA6
-F98C EE9BA7
-F98D EE9BA8
-F98E EE9BA9
-F98F EE9BAA
-F990 EE9BAB
-F991 EE9BAC
-F992 EE9BAD
-F993 EE9BAE
-F994 EE9BAF
-F995 EE9BB0
-F996 EE9BB1
-F997 EE9BB2
-F998 EE9BB3
-F999 EE9BB4
-F99A EE9BB5
-F99B EE9BB6
-F99C EE9BB7
-F99D EE9BB8
-F99E EE9BB9
-F99F EE9BBA
-F9A0 EE9BBB
-F9A1 EE9BBC
-F9A2 EE9BBD
-F9A3 EE9BBE
-F9A4 EE9BBF
-F9A5 EE9C80
-F9A6 EE9C81
-F9A7 EE9C82
-F9A8 EE9C83
-F9A9 EE9C84
-F9AA EE9C85
-F9AB EE9C86
-F9AC EE9C87
-F9AD EE9C88
-F9AE EE9C89
-F9AF EE9C8A
-F9B0 EE9C8B
-F9B1 EE9C8C
-F9B2 EE9C8D
-F9B3 EE9C8E
-F9B4 EE9C8F
-F9B5 EE9C90
-F9B6 EE9C91
-F9B7 EE9C92
-F9B8 EE9C93
-F9B9 EE9C94
-F9BA EE9C95
-F9BB EE9C96
-F9BC EE9C97
-F9BD EE9C98
-F9BE EE9C99
-F9BF EE9C9A
-F9C0 EE9C9B
-F9C1 EE9C9C
-F9C2 EE9C9D
-F9C3 EE9C9E
-F9C4 EE9C9F
-F9C5 EE9CA0
-F9C6 EE9CA1
-F9C7 EE9CA2
-F9C8 EE9CA3
-F9C9 EE9CA4
-F9CA EE9CA5
-F9CB EE9CA6
-F9CC EE9CA7
-F9CD EE9CA8
-F9CE EE9CA9
-F9CF EE9CAA
-F9D0 EE9CAB
-F9D1 EE9CAC
-F9D2 EE9CAD
-F9D3 EE9CAE
-F9D4 EE9CAF
-F9D5 EE9CB0
-F9D6 EE9CB1
-F9D7 EE9CB2
-F9D8 EE9CB3
-F9D9 EE9CB4
-F9DA EE9CB5
-F9DB EE9CB6
-F9DC EE9CB7
-F9DD EE9CB8
-F9DE EE9CB9
-F9DF EE9CBA
-F9E0 EE9CBB
-F9E1 EE9CBC
-F9E2 EE9CBD
-F9E3 EE9CBE
-F9E4 EE9CBF
-F9E5 EE9D80
-F9E6 EE9D81
-F9E7 EE9D82
-F9E8 EE9D83
-F9E9 EE9D84
-F9EA EE9D85
-F9EB EE9D86
-F9EC EE9D87
-F9ED EE9D88
-F9EE EE9D89
-F9EF EE9D8A
-F9F0 EE9D8B
-F9F1 EE9D8C
-F9F2 EE9D8D
-F9F3 EE9D8E
-F9F4 EE9D8F
-F9F5 EE9D90
-F9F6 EE9D91
-F9F7 EE9D92
-F9F8 EE9D93
-F9F9 EE9D94
-F9FA EE9D95
-F9FB EE9D96
-F9FC EE9D97
-FA40 E285B0
-FA41 E285B1
-FA42 E285B2
-FA43 E285B3
-FA44 E285B4
-FA45 E285B5
-FA46 E285B6
-FA47 E285B7
-FA48 E285B8
-FA49 E285B9
-FA4A E285A0
-FA4B E285A1
-FA4C E285A2
-FA4D E285A3
-FA4E E285A4
-FA4F E285A5
-FA50 E285A6
-FA51 E285A7
-FA52 E285A8
-FA53 E285A9
-FA54 EFBFA2
-FA55 EFBFA4
-FA56 EFBC87
-FA57 EFBC82
-FA58 E388B1
-FA59 E28496
-FA5A E284A1
-FA5B E288B5
-FA5C E7BA8A
-FA5D E8A49C
-FA5E E98D88
-FA5F E98A88
-FA60 E8939C
-FA61 E4BF89
-FA62 E782BB
-FA63 E698B1
-FA64 E6A388
-FA65 E98BB9
-FA66 E69BBB
-FA67 E5BD85
-FA68 E4B8A8
-FA69 E4BBA1
-FA6A E4BBBC
-FA6B E4BC80
-FA6C E4BC83
-FA6D E4BCB9
-FA6E E4BD96
-FA6F E4BE92
-FA70 E4BE8A
-FA71 E4BE9A
-FA72 E4BE94
-FA73 E4BF8D
-FA74 E58180
-FA75 E580A2
-FA76 E4BFBF
-FA77 E5809E
-FA78 E58186
-FA79 E581B0
-FA7A E58182
-FA7B E58294
-FA7C E583B4
-FA7D E58398
-FA7E E5858A
-FA80 E585A4
-FA81 E5869D
-FA82 E586BE
-FA83 E587AC
-FA84 E58895
-FA85 E58A9C
-FA86 E58AA6
-FA87 E58B80
-FA88 E58B9B
-FA89 E58C80
-FA8A E58C87
-FA8B E58CA4
-FA8C E58DB2
-FA8D E58E93
-FA8E E58EB2
-FA8F E58F9D
-FA90 EFA88E
-FA91 E5929C
-FA92 E5928A
-FA93 E592A9
-FA94 E593BF
-FA95 E59686
-FA96 E59D99
-FA97 E59DA5
-FA98 E59EAC
-FA99 E59F88
-FA9A E59F87
-FA9B EFA88F
-FA9C EFA890
-FA9D E5A29E
-FA9E E5A2B2
-FA9F E5A48B
-FAA0 E5A593
-FAA1 E5A59B
-FAA2 E5A59D
-FAA3 E5A5A3
-FAA4 E5A6A4
-FAA5 E5A6BA
-FAA6 E5AD96
-FAA7 E5AF80
-FAA8 E794AF
-FAA9 E5AF98
-FAAA E5AFAC
-FAAB E5B09E
-FAAC E5B2A6
-FAAD E5B2BA
-FAAE E5B3B5
-FAAF E5B4A7
-FAB0 E5B593
-FAB1 EFA891
-FAB2 E5B582
-FAB3 E5B5AD
-FAB4 E5B6B8
-FAB5 E5B6B9
-FAB6 E5B790
-FAB7 E5BCA1
-FAB8 E5BCB4
-FAB9 E5BDA7
-FABA E5BEB7
-FABB E5BF9E
-FABC E6819D
-FABD E68285
-FABE E6828A
-FABF E6839E
-FAC0 E68395
-FAC1 E684A0
-FAC2 E683B2
-FAC3 E68491
-FAC4 E684B7
-FAC5 E684B0
-FAC6 E68698
-FAC7 E68893
-FAC8 E68AA6
-FAC9 E68FB5
-FACA E691A0
-FACB E6929D
-FACC E6938E
-FACD E6958E
-FACE E69880
-FACF E69895
-FAD0 E698BB
-FAD1 E69889
-FAD2 E698AE
-FAD3 E6989E
-FAD4 E698A4
-FAD5 E699A5
-FAD6 E69997
-FAD7 E69999
-FAD8 EFA892
-FAD9 E699B3
-FADA E69A99
-FADB E69AA0
-FADC E69AB2
-FADD E69ABF
-FADE E69BBA
-FADF E69C8E
-FAE0 EFA4A9
-FAE1 E69DA6
-FAE2 E69EBB
-FAE3 E6A192
-FAE4 E69F80
-FAE5 E6A081
-FAE6 E6A184
-FAE7 E6A38F
-FAE8 EFA893
-FAE9 E6A5A8
-FAEA EFA894
-FAEB E6A698
-FAEC E6A7A2
-FAED E6A8B0
-FAEE E6A9AB
-FAEF E6A986
-FAF0 E6A9B3
-FAF1 E6A9BE
-FAF2 E6ABA2
-FAF3 E6ABA4
-FAF4 E6AF96
-FAF5 E6B0BF
-FAF6 E6B19C
-FAF7 E6B286
-FAF8 E6B1AF
-FAF9 E6B39A
-FAFA E6B484
-FAFB E6B687
-FAFC E6B5AF
-FB40 E6B696
-FB41 E6B6AC
-FB42 E6B78F
-FB43 E6B7B8
-FB44 E6B7B2
-FB45 E6B7BC
-FB46 E6B8B9
-FB47 E6B99C
-FB48 E6B8A7
-FB49 E6B8BC
-FB4A E6BABF
-FB4B E6BE88
-FB4C E6BEB5
-FB4D E6BFB5
-FB4E E78085
-FB4F E78087
-FB50 E780A8
-FB51 E78285
-FB52 E782AB
-FB53 E7848F
-FB54 E78484
-FB55 E7859C
-FB56 E78586
-FB57 E78587
-FB58 EFA895
-FB59 E78781
-FB5A E787BE
-FB5B E78AB1
-FB5C E78ABE
-FB5D E78CA4
-FB5E EFA896
-FB5F E78DB7
-FB60 E78EBD
-FB61 E78F89
-FB62 E78F96
-FB63 E78FA3
-FB64 E78F92
-FB65 E79087
-FB66 E78FB5
-FB67 E790A6
-FB68 E790AA
-FB69 E790A9
-FB6A E790AE
-FB6B E791A2
-FB6C E79289
-FB6D E7929F
-FB6E E79481
-FB6F E795AF
-FB70 E79A82
-FB71 E79A9C
-FB72 E79A9E
-FB73 E79A9B
-FB74 E79AA6
-FB75 EFA897
-FB76 E79D86
-FB77 E58AAF
-FB78 E7A0A1
-FB79 E7A18E
-FB7A E7A1A4
-FB7B E7A1BA
-FB7C E7A4B0
-FB7D EFA898
-FB7E EFA899
-FB80 EFA89A
-FB81 E7A694
-FB82 EFA89B
-FB83 E7A69B
-FB84 E7AB91
-FB85 E7ABA7
-FB86 EFA89C
-FB87 E7ABAB
-FB88 E7AE9E
-FB89 EFA89D
-FB8A E7B588
-FB8B E7B59C
-FB8C E7B6B7
-FB8D E7B6A0
-FB8E E7B796
-FB8F E7B992
-FB90 E7BD87
-FB91 E7BEA1
-FB92 EFA89E
-FB93 E88C81
-FB94 E88DA2
-FB95 E88DBF
-FB96 E88F87
-FB97 E88FB6
-FB98 E89188
-FB99 E892B4
-FB9A E89593
-FB9B E89599
-FB9C E895AB
-FB9D EFA89F
-FB9E E896B0
-FB9F EFA8A0
-FBA0 EFA8A1
-FBA1 E8A087
-FBA2 E8A3B5
-FBA3 E8A892
-FBA4 E8A8B7
-FBA5 E8A9B9
-FBA6 E8AAA7
-FBA7 E8AABE
-FBA8 E8AB9F
-FBA9 EFA8A2
-FBAA E8ABB6
-FBAB E8AD93
-FBAC E8ADBF
-FBAD E8B3B0
-FBAE E8B3B4
-FBAF E8B492
-FBB0 E8B5B6
-FBB1 EFA8A3
-FBB2 E8BB8F
-FBB3 EFA8A4
-FBB4 EFA8A5
-FBB5 E981A7
-FBB6 E9839E
-FBB7 EFA8A6
-FBB8 E98495
-FBB9 E984A7
-FBBA E9879A
-FBBB E98797
-FBBC E9879E
-FBBD E987AD
-FBBE E987AE
-FBBF E987A4
-FBC0 E987A5
-FBC1 E98886
-FBC2 E98890
-FBC3 E9888A
-FBC4 E988BA
-FBC5 E98980
-FBC6 E988BC
-FBC7 E9898E
-FBC8 E98999
-FBC9 E98991
-FBCA E988B9
-FBCB E989A7
-FBCC E98AA7
-FBCD E989B7
-FBCE E989B8
-FBCF E98BA7
-FBD0 E98B97
-FBD1 E98B99
-FBD2 E98B90
-FBD3 EFA8A7
-FBD4 E98B95
-FBD5 E98BA0
-FBD6 E98B93
-FBD7 E98CA5
-FBD8 E98CA1
-FBD9 E98BBB
-FBDA EFA8A8
-FBDB E98C9E
-FBDC E98BBF
-FBDD E98C9D
-FBDE E98C82
-FBDF E98DB0
-FBE0 E98D97
-FBE1 E98EA4
-FBE2 E98F86
-FBE3 E98F9E
-FBE4 E98FB8
-FBE5 E990B1
-FBE6 E99185
-FBE7 E99188
-FBE8 E99692
-FBE9 EFA79C
-FBEA EFA8A9
-FBEB E99A9D
-FBEC E99AAF
-FBED E99CB3
-FBEE E99CBB
-FBEF E99D83
-FBF0 E99D8D
-FBF1 E99D8F
-FBF2 E99D91
-FBF3 E99D95
-FBF4 E9A197
-FBF5 E9A1A5
-FBF6 EFA8AA
-FBF7 EFA8AB
-FBF8 E9A4A7
-FBF9 EFA8AC
-FBFA E9A69E
-FBFB E9A98E
-FBFC E9AB99
-FC40 E9AB9C
-FC41 E9ADB5
-FC42 E9ADB2
-FC43 E9AE8F
-FC44 E9AEB1
-FC45 E9AEBB
-FC46 E9B080
-FC47 E9B5B0
-FC48 E9B5AB
-FC49 EFA8AD
-FC4A E9B899
-FC4B E9BB91
-Warnings:
-Warning 1977 Cannot convert 'cp932' character 0x81AD to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81AE to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81AF to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81B7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81C7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81CF to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D0 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D1 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D2 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D3 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D4 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D5 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D6 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D7 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D8 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81D9 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81E9 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81EA to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81EB to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81EC to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81ED to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81EE to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81EF to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81F8 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81F9 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81FA to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x81FB to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x8240 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x8241 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x8242 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x8243 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x8244 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x8245 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x8246 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x8247 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x8248 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x8249 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x824A to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x824B to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x824C to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x824D to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x824E to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x8259 to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x825A to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x825B to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x825C to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x825D to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x825E to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x825F to 'utf8'
-Warning 1977 Cannot convert 'cp932' character 0x827A to 'utf8'
-DROP TABLE t1;
-#
-# WL#3090 Japanese Character Set adjustments
-# Test Unicode->cp932 conversion
-#
-CREATE TABLE t1 (a CHAR(1)) CHARACTER SET utf8;
-INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
-INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
-CREATE TEMPORARY TABLE head AS SELECT concat(b1.a, b2.a) AS head FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE tail AS SELECT concat(b1.a, b2.a) AS tail FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE middle AS SELECT concat(b1.a, b2.a) AS middle FROM t1 b1, t1 b2;
-DROP TABLE t1;
-CREATE TABLE t1 (a varchar(1)) CHARACTER SET utf8;
-INSERT INTO t1 SELECT UNHEX(head)
-FROM head WHERE (head BETWEEN '00' AND '7F') ORDER BY head;
-INSERT INTO t1
-SELECT UNHEX(CONCAT(head,tail))
-FROM head, tail
-WHERE (head BETWEEN 'C2' AND 'DF') AND (tail BETWEEN '80' AND 'BF')
-ORDER BY head, tail;
-INSERT INTO t1
-SELECT UNHEX(CONCAT(head, middle, tail))
-FROM head, middle, tail
-WHERE (head BETWEEN 'E0' AND 'EF')
-AND (middle BETWEEN '80' AND 'BF')
-AND (tail BETWEEN '80' AND 'BF')
-AND NOT (head='E0' AND middle BETWEEN '80' AND '9F')
-ORDER BY head, middle, tail;
-SELECT count(*) FROM t1;
-count(*)
-65536
-SELECT HEX(a), HEX(CONVERT(a using cp932)) as b FROM t1 HAVING b<>'3F' ORDER BY BINARY a;
-HEX(a) b
-00 00
-01 01
-02 02
-03 03
-04 04
-05 05
-06 06
-07 07
-08 08
-09 09
-0A 0A
-0B 0B
-0C 0C
-0D 0D
-0E 0E
-0F 0F
-10 10
-11 11
-12 12
-13 13
-14 14
-15 15
-16 16
-17 17
-18 18
-19 19
-1A 1A
-1B 1B
-1C 1C
-1D 1D
-1E 1E
-1F 1F
-20 20
-21 21
-22 22
-23 23
-24 24
-25 25
-26 26
-27 27
-28 28
-29 29
-2A 2A
-2B 2B
-2C 2C
-2D 2D
-2E 2E
-2F 2F
-30 30
-31 31
-32 32
-33 33
-34 34
-35 35
-36 36
-37 37
-38 38
-39 39
-3A 3A
-3B 3B
-3C 3C
-3D 3D
-3E 3E
-40 40
-41 41
-42 42
-43 43
-44 44
-45 45
-46 46
-47 47
-48 48
-49 49
-4A 4A
-4B 4B
-4C 4C
-4D 4D
-4E 4E
-4F 4F
-50 50
-51 51
-52 52
-53 53
-54 54
-55 55
-56 56
-57 57
-58 58
-59 59
-5A 5A
-5B 5B
-5C 5C
-5D 5D
-5E 5E
-5F 5F
-60 60
-61 61
-62 62
-63 63
-64 64
-65 65
-66 66
-67 67
-68 68
-69 69
-6A 6A
-6B 6B
-6C 6C
-6D 6D
-6E 6E
-6F 6F
-70 70
-71 71
-72 72
-73 73
-74 74
-75 75
-76 76
-77 77
-78 78
-79 79
-7A 7A
-7B 7B
-7C 7C
-7D 7D
-7E 7E
-7F 7F
-C2A7 8198
-C2A8 814E
-C2B0 818B
-C2B1 817D
-C2B4 814C
-C2B6 81F7
-C397 817E
-C3B7 8180
-CE91 839F
-CE92 83A0
-CE93 83A1
-CE94 83A2
-CE95 83A3
-CE96 83A4
-CE97 83A5
-CE98 83A6
-CE99 83A7
-CE9A 83A8
-CE9B 83A9
-CE9C 83AA
-CE9D 83AB
-CE9E 83AC
-CE9F 83AD
-CEA0 83AE
-CEA1 83AF
-CEA3 83B0
-CEA4 83B1
-CEA5 83B2
-CEA6 83B3
-CEA7 83B4
-CEA8 83B5
-CEA9 83B6
-CEB1 83BF
-CEB2 83C0
-CEB3 83C1
-CEB4 83C2
-CEB5 83C3
-CEB6 83C4
-CEB7 83C5
-CEB8 83C6
-CEB9 83C7
-CEBA 83C8
-CEBB 83C9
-CEBC 83CA
-CEBD 83CB
-CEBE 83CC
-CEBF 83CD
-CF80 83CE
-CF81 83CF
-CF83 83D0
-CF84 83D1
-CF85 83D2
-CF86 83D3
-CF87 83D4
-CF88 83D5
-CF89 83D6
-D081 8446
-D090 8440
-D091 8441
-D092 8442
-D093 8443
-D094 8444
-D095 8445
-D096 8447
-D097 8448
-D098 8449
-D099 844A
-D09A 844B
-D09B 844C
-D09C 844D
-D09D 844E
-D09E 844F
-D09F 8450
-D0A0 8451
-D0A1 8452
-D0A2 8453
-D0A3 8454
-D0A4 8455
-D0A5 8456
-D0A6 8457
-D0A7 8458
-D0A8 8459
-D0A9 845A
-D0AA 845B
-D0AB 845C
-D0AC 845D
-D0AD 845E
-D0AE 845F
-D0AF 8460
-D0B0 8470
-D0B1 8471
-D0B2 8472
-D0B3 8473
-D0B4 8474
-D0B5 8475
-D0B6 8477
-D0B7 8478
-D0B8 8479
-D0B9 847A
-D0BA 847B
-D0BB 847C
-D0BC 847D
-D0BD 847E
-D0BE 8480
-D0BF 8481
-D180 8482
-D181 8483
-D182 8484
-D183 8485
-D184 8486
-D185 8487
-D186 8488
-D187 8489
-D188 848A
-D189 848B
-D18A 848C
-D18B 848D
-D18C 848E
-D18D 848F
-D18E 8490
-D18F 8491
-D191 8476
-E28090 815D
-E28095 815C
-E28098 8165
-E28099 8166
-E2809C 8167
-E2809D 8168
-E280A0 81F5
-E280A1 81F6
-E280A5 8164
-E280A6 8163
-E280B0 81F1
-E280B2 818C
-E280B3 818D
-E280BB 81A6
-E28483 818E
-E28496 8782
-E284A1 8784
-E284AB 81F0
-E285A0 8754
-E285A1 8755
-E285A2 8756
-E285A3 8757
-E285A4 8758
-E285A5 8759
-E285A6 875A
-E285A7 875B
-E285A8 875C
-E285A9 875D
-E285B0 FA40
-E285B1 FA41
-E285B2 FA42
-E285B3 FA43
-E285B4 FA44
-E285B5 FA45
-E285B6 FA46
-E285B7 FA47
-E285B8 FA48
-E285B9 FA49
-E28690 81A9
-E28691 81AA
-E28692 81A8
-E28693 81AB
-E28792 81CB
-E28794 81CC
-E28880 81CD
-E28882 81DD
-E28883 81CE
-E28887 81DE
-E28888 81B8
-E2888B 81B9
-E28891 8794
-E2889A 81E3
-E2889D 81E5
-E2889E 8187
-E2889F 8798
-E288A0 81DA
-E288A5 8161
-E288A7 81C8
-E288A8 81C9
-E288A9 81BF
-E288AA 81BE
-E288AB 81E7
-E288AC 81E8
-E288AE 8793
-E288B4 8188
-E288B5 81E6
-E288BD 81E4
-E28992 81E0
-E289A0 8182
-E289A1 81DF
-E289A6 8185
-E289A7 8186
-E289AA 81E1
-E289AB 81E2
-E28A82 81BC
-E28A83 81BD
-E28A86 81BA
-E28A87 81BB
-E28AA5 81DB
-E28ABF 8799
-E28C92 81DC
-E291A0 8740
-E291A1 8741
-E291A2 8742
-E291A3 8743
-E291A4 8744
-E291A5 8745
-E291A6 8746
-E291A7 8747
-E291A8 8748
-E291A9 8749
-E291AA 874A
-E291AB 874B
-E291AC 874C
-E291AD 874D
-E291AE 874E
-E291AF 874F
-E291B0 8750
-E291B1 8751
-E291B2 8752
-E291B3 8753
-E29480 849F
-E29481 84AA
-E29482 84A0
-E29483 84AB
-E2948C 84A1
-E2948F 84AC
-E29490 84A2
-E29493 84AD
-E29494 84A4
-E29497 84AF
-E29498 84A3
-E2949B 84AE
-E2949C 84A5
-E2949D 84BA
-E294A0 84B5
-E294A3 84B0
-E294A4 84A7
-E294A5 84BC
-E294A8 84B7
-E294AB 84B2
-E294AC 84A6
-E294AF 84B6
-E294B0 84BB
-E294B3 84B1
-E294B4 84A8
-E294B7 84B8
-E294B8 84BD
-E294BB 84B3
-E294BC 84A9
-E294BF 84B9
-E29582 84BE
-E2958B 84B4
-E296A0 81A1
-E296A1 81A0
-E296B2 81A3
-E296B3 81A2
-E296BC 81A5
-E296BD 81A4
-E29786 819F
-E29787 819E
-E2978B 819B
-E2978E 819D
-E2978F 819C
-E297AF 81FC
-E29885 819A
-E29886 8199
-E29980 818A
-E29982 8189
-E299AA 81F4
-E299AD 81F3
-E299AF 81F2
-E38080 8140
-E38081 8141
-E38082 8142
-E38083 8156
-E38085 8158
-E38086 8159
-E38087 815A
-E38088 8171
-E38089 8172
-E3808A 8173
-E3808B 8174
-E3808C 8175
-E3808D 8176
-E3808E 8177
-E3808F 8178
-E38090 8179
-E38091 817A
-E38092 81A7
-E38093 81AC
-E38094 816B
-E38095 816C
-E3809D 8780
-E3809F 8781
-E38181 829F
-E38182 82A0
-E38183 82A1
-E38184 82A2
-E38185 82A3
-E38186 82A4
-E38187 82A5
-E38188 82A6
-E38189 82A7
-E3818A 82A8
-E3818B 82A9
-E3818C 82AA
-E3818D 82AB
-E3818E 82AC
-E3818F 82AD
-E38190 82AE
-E38191 82AF
-E38192 82B0
-E38193 82B1
-E38194 82B2
-E38195 82B3
-E38196 82B4
-E38197 82B5
-E38198 82B6
-E38199 82B7
-E3819A 82B8
-E3819B 82B9
-E3819C 82BA
-E3819D 82BB
-E3819E 82BC
-E3819F 82BD
-E381A0 82BE
-E381A1 82BF
-E381A2 82C0
-E381A3 82C1
-E381A4 82C2
-E381A5 82C3
-E381A6 82C4
-E381A7 82C5
-E381A8 82C6
-E381A9 82C7
-E381AA 82C8
-E381AB 82C9
-E381AC 82CA
-E381AD 82CB
-E381AE 82CC
-E381AF 82CD
-E381B0 82CE
-E381B1 82CF
-E381B2 82D0
-E381B3 82D1
-E381B4 82D2
-E381B5 82D3
-E381B6 82D4
-E381B7 82D5
-E381B8 82D6
-E381B9 82D7
-E381BA 82D8
-E381BB 82D9
-E381BC 82DA
-E381BD 82DB
-E381BE 82DC
-E381BF 82DD
-E38280 82DE
-E38281 82DF
-E38282 82E0
-E38283 82E1
-E38284 82E2
-E38285 82E3
-E38286 82E4
-E38287 82E5
-E38288 82E6
-E38289 82E7
-E3828A 82E8
-E3828B 82E9
-E3828C 82EA
-E3828D 82EB
-E3828E 82EC
-E3828F 82ED
-E38290 82EE
-E38291 82EF
-E38292 82F0
-E38293 82F1
-E3829B 814A
-E3829C 814B
-E3829D 8154
-E3829E 8155
-E382A1 8340
-E382A2 8341
-E382A3 8342
-E382A4 8343
-E382A5 8344
-E382A6 8345
-E382A7 8346
-E382A8 8347
-E382A9 8348
-E382AA 8349
-E382AB 834A
-E382AC 834B
-E382AD 834C
-E382AE 834D
-E382AF 834E
-E382B0 834F
-E382B1 8350
-E382B2 8351
-E382B3 8352
-E382B4 8353
-E382B5 8354
-E382B6 8355
-E382B7 8356
-E382B8 8357
-E382B9 8358
-E382BA 8359
-E382BB 835A
-E382BC 835B
-E382BD 835C
-E382BE 835D
-E382BF 835E
-E38380 835F
-E38381 8360
-E38382 8361
-E38383 8362
-E38384 8363
-E38385 8364
-E38386 8365
-E38387 8366
-E38388 8367
-E38389 8368
-E3838A 8369
-E3838B 836A
-E3838C 836B
-E3838D 836C
-E3838E 836D
-E3838F 836E
-E38390 836F
-E38391 8370
-E38392 8371
-E38393 8372
-E38394 8373
-E38395 8374
-E38396 8375
-E38397 8376
-E38398 8377
-E38399 8378
-E3839A 8379
-E3839B 837A
-E3839C 837B
-E3839D 837C
-E3839E 837D
-E3839F 837E
-E383A0 8380
-E383A1 8381
-E383A2 8382
-E383A3 8383
-E383A4 8384
-E383A5 8385
-E383A6 8386
-E383A7 8387
-E383A8 8388
-E383A9 8389
-E383AA 838A
-E383AB 838B
-E383AC 838C
-E383AD 838D
-E383AE 838E
-E383AF 838F
-E383B0 8390
-E383B1 8391
-E383B2 8392
-E383B3 8393
-E383B4 8394
-E383B5 8395
-E383B6 8396
-E383BB 8145
-E383BC 815B
-E383BD 8152
-E383BE 8153
-E388B1 878A
-E388B2 878B
-E388B9 878C
-E38AA4 8785
-E38AA5 8786
-E38AA6 8787
-E38AA7 8788
-E38AA8 8789
-E38C83 8765
-E38C8D 8769
-E38C94 8760
-E38C98 8763
-E38CA2 8761
-E38CA3 876B
-E38CA6 876A
-E38CA7 8764
-E38CAB 876C
-E38CB6 8766
-E38CBB 876E
-E38D89 875F
-E38D8A 876D
-E38D8D 8762
-E38D91 8767
-E38D97 8768
-E38DBB 877E
-E38DBC 878F
-E38DBD 878E
-E38DBE 878D
-E38E8E 8772
-E38E8F 8773
-E38E9C 876F
-E38E9D 8770
-E38E9E 8771
-E38EA1 8775
-E38F84 8774
-E38F8D 8783
-E4B880 88EA
-E4B881 929A
-E4B883 8EB5
-E4B887 969C
-E4B888 8FE4
-E4B889 8E4F
-E4B88A 8FE3
-E4B88B 89BA
-E4B88D 9573
-E4B88E 975E
-E4B890 98A0
-E4B891 894E
-E4B894 8A8E
-E4B895 98A1
-E4B896 90A2
-E4B897 99C0
-E4B898 8B75
-E4B899 95B8
-E4B89E 8FE5
-E4B8A1 97BC
-E4B8A6 95C0
-E4B8A8 FA68
-E4B8AA 98A2
-E4B8AD 9286
-E4B8B1 98A3
-E4B8B2 8BF8
-E4B8B6 98A4
-E4B8B8 8ADB
-E4B8B9 924F
-E4B8BB 8EE5
-E4B8BC 98A5
-E4B8BF 98A6
-E4B982 98A7
-E4B983 9454
-E4B985 8B76
-E4B98B 9456
-E4B98D 93E1
-E4B98E 8CC1
-E4B98F 9652
-E4B995 E568
-E4B996 98A8
-E4B997 8FE6
-E4B998 98A9
-E4B999 89B3
-E4B99D 8BE3
-E4B99E 8CEE
-E4B99F 96E7
-E4B9A2 9BA4
-E4B9B1 9790
-E4B9B3 93FB
-E4B9BE 8AA3
-E4BA80 8B54
-E4BA82 98AA
-E4BA85 98AB
-E4BA86 97B9
-E4BA88 975C
-E4BA89 9188
-E4BA8A 98AD
-E4BA8B 8E96
-E4BA8C 93F1
-E4BA8E 98B0
-E4BA91 895D
-E4BA92 8CDD
-E4BA94 8CDC
-E4BA95 88E4
-E4BA98 986A
-E4BA99 9869
-E4BA9B 8DB1
-E4BA9C 889F
-E4BA9E 98B1
-E4BA9F 98B2
-E4BAA0 98B3
-E4BAA1 9653
-E4BAA2 98B4
-E4BAA4 8CF0
-E4BAA5 88E5
-E4BAA6 9692
-E4BAA8 8B9C
-E4BAAB 8B9D
-E4BAAC 8B9E
-E4BAAD 92E0
-E4BAAE 97BA
-E4BAB0 98B5
-E4BAB3 98B6
-E4BAB6 98B7
-E4BABA 906C
-E4BB80 8F59
-E4BB81 906D
-E4BB82 98BC
-E4BB84 98BA
-E4BB86 98BB
-E4BB87 8B77
-E4BB8A 8DA1
-E4BB8B 89EE
-E4BB8D 98B9
-E4BB8E 98B8
-E4BB8F 95A7
-E4BB94 8E65
-E4BB95 8E64
-E4BB96 91BC
-E4BB97 98BD
-E4BB98 9574
-E4BB99 90E5
-E4BB9D 8157
-E4BB9E 98BE
-E4BB9F 98C0
-E4BBA1 FA69
-E4BBA3 91E3
-E4BBA4 97DF
-E4BBA5 88C8
-E4BBAD 98BF
-E4BBAE 89BC
-E4BBB0 8BC2
-E4BBB2 9287
-E4BBB6 8C8F
-E4BBB7 98C1
-E4BBBB 9443
-E4BBBC FA6A
-E4BC80 FA6B
-E4BC81 8AE9
-E4BC83 FA6C
-E4BC89 98C2
-E4BC8A 88C9
-E4BC8D 8CDE
-E4BC8E 8AEA
-E4BC8F 959A
-E4BC90 94B0
-E4BC91 8B78
-E4BC9A 89EF
-E4BC9C 98E5
-E4BC9D 9360
-E4BCAF 948C
-E4BCB0 98C4
-E4BCB4 94BA
-E4BCB6 97E0
-E4BCB8 904C
-E4BCB9 FA6D
-E4BCBA 8E66
-E4BCBC 8E97
-E4BCBD 89BE
-E4BD83 92CF
-E4BD86 9241
-E4BD87 98C8
-E4BD8D 88CA
-E4BD8E 92E1
-E4BD8F 8F5A
-E4BD90 8DB2
-E4BD91 9743
-E4BD93 91CC
-E4BD95 89BD
-E4BD96 FA6E
-E4BD97 98C7
-E4BD99 975D
-E4BD9A 98C3
-E4BD9B 98C5
-E4BD9C 8DEC
-E4BD9D 98C6
-E4BD9E 9B43
-E4BDA9 98CE
-E4BDAF 98D1
-E4BDB0 98CF
-E4BDB3 89C0
-E4BDB5 95B9
-E4BDB6 98C9
-E4BDBB 98CD
-E4BDBC 8CF1
-E4BDBF 8E67
-E4BE83 8AA4
-E4BE86 98D2
-E4BE88 98CA
-E4BE8A FA70
-E4BE8B 97E1
-E4BE8D 8E98
-E4BE8F 98CB
-E4BE91 98D0
-E4BE92 FA6F
-E4BE94 FA72
-E4BE96 98D3
-E4BE98 98CC
-E4BE9A FA71
-E4BE9B 8B9F
-E4BE9D 88CB
-E4BEA0 8BA0
-E4BEA1 89BF
-E4BEAB 9B44
-E4BEAD 9699
-E4BEAE 958E
-E4BEAF 8CF2
-E4BEB5 904E
-E4BEB6 97B5
-E4BEBF 95D6
-E4BF82 8C57
-E4BF83 91A3
-E4BF84 89E2
-E4BF89 FA61
-E4BF8A 8F72
-E4BF8D FA73
-E4BF8E 98D7
-E4BF90 98DC
-E4BF91 98DA
-E4BF94 98D5
-E4BF97 91AD
-E4BF98 98D8
-E4BF9A 98DB
-E4BF9B 98D9
-E4BF9D 95DB
-E4BF9F 98D6
-E4BFA1 904D
-E4BFA3 9693
-E4BFA4 98DD
-E4BFA5 98DE
-E4BFAE 8F43
-E4BFAF 98EB
-E4BFB3 946F
-E4BFB5 9555
-E4BFB6 98E6
-E4BFB8 95EE
-E4BFBA 89B4
-E4BFBE 98EA
-E4BFBF FA76
-E58085 98E4
-E58086 98ED
-E58089 9171
-E5808B 8CC2
-E5808D 947B
-E5808F E0C5
-E58091 98EC
-E58092 937C
-E58094 98E1
-E58096 8CF4
-E58099 8CF3
-E5809A 98DF
-E5809E FA77
-E5809F 8ED8
-E580A1 98E7
-E580A2 FA75
-E580A3 95ED
-E580A4 926C
-E580A5 98E3
-E580A6 8C91
-E580A8 98E0
-E580A9 98E8
-E580AA 98E2
-E580AB 97CF
-E580AC 98E9
-E580AD 9860
-E580B6 8BE4
-E580B9 8C90
-E58180 FA74
-E58182 FA7A
-E58183 98EE
-E58186 FA78
-E58187 98EF
-E58188 98F3
-E58189 88CC
-E5818F 95CE
-E58190 98F2
-E58195 98F1
-E58196 98F5
-E5819A 98F4
-E5819C 92E2
-E581A5 8C92
-E581AC 98F6
-E581B0 FA79
-E581B2 8EC3
-E581B4 91A4
-E581B5 92E3
-E581B6 8BF4
-E581B8 98F7
-E581BD 8B55
-E58280 98F8
-E58285 98FA
-E5828D 9654
-E58291 8C86
-E58294 FA7B
-E58298 8E50
-E58299 94F5
-E5829A 98F9
-E582AC 8DC3
-E582AD 9762
-E582B2 98FC
-E582B3 9942
-E582B4 98FB
-E582B5 8DC2
-E582B7 8F9D
-E582BE 8C58
-E58382 9943
-E58385 8BCD
-E58389 9940
-E5838A 9941
-E5838D 93AD
-E5838F 919C
-E58391 8BA1
-E58395 966C
-E58396 9944
-E58398 FA7D
-E5839A 97BB
-E5839E 9945
-E583A3 9948
-E583A5 9946
-E583A7 916D
-E583AD 9947
-E583AE 9949
-E583B4 FA7C
-E583B5 994B
-E583B9 994A
-E583BB 95C6
-E58480 8B56
-E58481 994D
-E58482 994E
-E58484 89AD
-E58489 994C
-E58492 8EF2
-E58494 9951
-E58495 9950
-E58496 994F
-E58498 98D4
-E5849A 9952
-E5849F 8F9E
-E584A1 9953
-E584AA 9744
-E584B2 96D7
-E584B7 9955
-E584BA 9954
-E584BB 9957
-E584BC 9956
-E584BF 9958
-E58580 9959
-E58581 88F2
-E58583 8CB3
-E58584 8C5A
-E58585 8F5B
-E58586 929B
-E58587 8BA2
-E58588 90E6
-E58589 8CF5
-E5858A FA7E
-E5858B 8D8E
-E5858C 995B
-E5858D 96C6
-E5858E 9365
-E58590 8E99
-E58592 995A
-E58594 995C
-E5859A 937D
-E5859C 8A95
-E585A2 995D
-E585A4 FA80
-E585A5 93FC
-E585A8 9153
-E585A9 995F
-E585AA 9960
-E585AB 94AA
-E585AC 8CF6
-E585AD 985A
-E585AE 9961
-E585B1 8BA4
-E585B5 95BA
-E585B6 91B4
-E585B7 8BEF
-E585B8 9354
-E585BC 8C93
-E58680 9962
-E58682 9963
-E58685 93E0
-E58686 897E
-E58689 9966
-E5868A 8DFB
-E5868C 9965
-E5868D 8DC4
-E5868F 9967
-E58690 E3EC
-E58691 9968
-E58692 9660
-E58693 9969
-E58695 996A
-E58696 996B
-E58697 8FE7
-E58699 8ECA
-E5869D FA81
-E586A0 8AA5
-E586A2 996E
-E586A4 996C
-E586A5 96BB
-E586A6 996D
-E586A8 9579
-E586A9 996F
-E586AA 9970
-E586AB 9971
-E586AC 937E
-E586B0 9975
-E586B1 9973
-E586B2 9974
-E586B3 9972
-E586B4 8DE1
-E586B5 9976
-E586B6 96E8
-E586B7 97E2
-E586BD 9977
-E586BE FA82
-E58784 90A6
-E58785 9978
-E58786 8F79
-E58789 9979
-E5878B 929C
-E5878C 97BD
-E5878D 9380
-E58796 99C3
-E5879B 997A
-E5879C EAA3
-E5879D 8BC3
-E587A0 997B
-E587A1 967D
-E587A6 8F88
-E587A7 91FA
-E587A9 997D
-E587AA 93E2
-E587AC FA83
-E587AD 997E
-E587B0 9980
-E587B1 8A4D
-E587B5 9981
-E587B6 8BA5
-E587B8 93CA
-E587B9 899A
-E587BA 8F6F
-E587BD 949F
-E587BE 9982
-E58880 9381
-E58883 906E
-E58884 9983
-E58886 95AA
-E58887 90D8
-E58888 8AA0
-E5888A 8AA7
-E5888B 9984
-E5888E 9986
-E58891 8C59
-E58894 9985
-E58895 FA84
-E58897 97F1
-E5889D 8F89
-E588A4 94BB
-E588A5 95CA
-E588A7 9987
-E588A9 9798
-E588AA 9988
-E588AE 9989
-E588B0 939E
-E588B3 998A
-E588B6 90A7
-E588B7 8DFC
-E588B8 8C94
-E588B9 998B
-E588BA 8E68
-E588BB 8D8F
-E58983 92E4
-E58984 998D
-E58987 91A5
-E5898A 8DED
-E5898B 998E
-E5898C 998F
-E5898D 914F
-E5898F 998C
-E58994 9991
-E58996 9655
-E5899B 8D84
-E5899E 9990
-E589A3 8C95
-E589A4 8DDC
-E589A5 948D
-E589A9 9994
-E589AA 9992
-E589AF 959B
-E589B0 8FE8
-E589B1 999B
-E589B2 8A84
-E589B3 9995
-E589B4 9993
-E589B5 916E
-E589BD 9997
-E589BF 9996
-E58A83 8A63
-E58A87 8C80
-E58A88 999C
-E58A89 97AB
-E58A8D 9998
-E58A91 999D
-E58A92 999A
-E58A94 9999
-E58A9B 97CD
-E58A9C FA85
-E58A9F 8CF7
-E58AA0 89C1
-E58AA3 97F2
-E58AA6 FA86
-E58AA9 8F95
-E58AAA 9377
-E58AAB 8D85
-E58AAC 99A0
-E58AAD 99A1
-E58AAF FB77
-E58AB1 97E3
-E58AB4 984A
-E58AB5 99A3
-E58AB9 8CF8
-E58ABC 99A2
-E58ABE 8A4E
-E58B80 FA87
-E58B81 99A4
-E58B83 9675
-E58B85 92BA
-E58B87 9745
-E58B89 95D7
-E58B8D 99A5
-E58B92 E8D3
-E58B95 93AE
-E58B97 99A6
-E58B98 8AA8
-E58B99 96B1
-E58B9B FA88
-E58B9D 8F9F
-E58B9E 99A7
-E58B9F 95E5
-E58BA0 99AB
-E58BA2 90A8
-E58BA3 99A8
-E58BA4 8BCE
-E58BA6 99A9
-E58BA7 8AA9
-E58BB2 8C4D
-E58BB3 99AC
-E58BB5 99AD
-E58BB8 99AE
-E58BB9 99AF
-E58BBA 8ED9
-E58BBE 8CF9
-E58BBF 96DC
-E58C80 FA89
-E58C81 96E6
-E58C82 93F5
-E58C85 95EF
-E58C86 99B0
-E58C87 FA8A
-E58C88 99B1
-E58C8D 99B3
-E58C8F 99B5
-E58C90 99B4
-E58C95 99B6
-E58C96 89BB
-E58C97 966B
-E58C99 8DFA
-E58C9A 99B7
-E58C9D 9178
-E58CA0 8FA0
-E58CA1 8BA7
-E58CA3 99B8
-E58CA4 FA8B
-E58CAA 94D9
-E58CAF 99B9
-E58CB1 99BA
-E58CB3 99BB
-E58CB8 99BC
-E58CB9 9543
-E58CBA 8BE6
-E58CBB 88E3
-E58CBF 93BD
-E58D80 99BD
-E58D81 8F5C
-E58D83 90E7
-E58D85 99BF
-E58D86 99BE
-E58D87 8FA1
-E58D88 8CDF
-E58D89 99C1
-E58D8A 94BC
-E58D8D 99C2
-E58D91 94DA
-E58D92 91B2
-E58D93 91EC
-E58D94 8BA6
-E58D97 93EC
-E58D98 9250
-E58D9A 948E
-E58D9C 966D
-E58D9E 99C4
-E58DA0 90E8
-E58DA6 8C54
-E58DA9 99C5
-E58DAE 99C6
-E58DAF 894B
-E58DB0 88F3
-E58DB1 8AEB
-E58DB2 FA8C
-E58DB3 91A6
-E58DB4 8B70
-E58DB5 9791
-E58DB7 99C9
-E58DB8 89B5
-E58DBB 99C8
-E58DBF 8BA8
-E58E82 99CA
-E58E84 96EF
-E58E93 FA8D
-E58E96 99CB
-E58E98 97D0
-E58E9A 8CFA
-E58E9F 8CB4
-E58EA0 99CC
-E58EA5 99CE
-E58EA6 99CD
-E58EA8 907E
-E58EA9 8958
-E58EAD 897D
-E58EAE 99CF
-E58EB0 99D0
-E58EB2 FA8E
-E58EB3 8CB5
-E58EB6 99D1
-E58EBB 8B8E
-E58F82 8E51
-E58F83 99D2
-E58F88 9694
-E58F89 8DB3
-E58F8A 8B79
-E58F8B 9746
-E58F8C 916F
-E58F8D 94BD
-E58F8E 8EFB
-E58F94 8F66
-E58F96 8EE6
-E58F97 8EF3
-E58F99 8F96
-E58F9B 94BE
-E58F9D FA8F
-E58F9F 99D5
-E58FA1 8962
-E58FA2 9170
-E58FA3 8CFB
-E58FA4 8CC3
-E58FA5 8BE5
-E58FA8 99D9
-E58FA9 9240
-E58FAA 91FC
-E58FAB 8BA9
-E58FAC 8FA2
-E58FAD 99DA
-E58FAE 99D8
-E58FAF 89C2
-E58FB0 91E4
-E58FB1 8EB6
-E58FB2 8E6A
-E58FB3 8945
-E58FB6 8A90
-E58FB7 8D86
-E58FB8 8E69
-E58FBA 99DB
-E59081 99DC
-E59083 8B68
-E59084 8A65
-E59088 8D87
-E59089 8B67
-E5908A 92DD
-E5908B 8944
-E5908C 93AF
-E5908D 96BC
-E5908E 8D40
-E5908F 9799
-E59090 9366
-E59091 8CFC
-E5909B 8C4E
-E5909D 99E5
-E5909F 8BE1
-E590A0 9669
-E590A6 94DB
-E590A9 99E4
-E590AB 8ADC
-E590AC 99DF
-E590AD 99E0
-E590AE 99E2
-E590B6 99E3
-E590B8 8B7A
-E590B9 9081
-E590BB 95AB
-E590BC 99E1
-E590BD 99DD
-E590BE 8CE1
-E59180 99DE
-E59182 9843
-E59186 95F0
-E59188 92E6
-E59189 8CE0
-E5918A 8D90
-E5918E 99E6
-E59191 93DB
-E5919F 99EA
-E591A8 8EFC
-E591AA 8EF4
-E591B0 99ED
-E591B1 99EB
-E591B3 96A1
-E591B5 99E8
-E591B6 99F1
-E591B7 99EC
-E591BB 99EF
-E591BC 8CC4
-E591BD 96BD
-E59280 99F0
-E59284 99F2
-E59286 99F4
-E5928A FA92
-E5928B 8DEE
-E5928C 9861
-E5928E 99E9
-E5928F 99E7
-E59290 99F3
-E59292 99EE
-E5929C FA91
-E592A2 99F6
-E592A4 9A42
-E592A5 99F8
-E592A8 99FC
-E592A9 FA93
-E592AB 9A40
-E592AC 99F9
-E592AF 9A5D
-E592B2 8DE7
-E592B3 8A50
-E592B8 99F7
-E592BC 9A44
-E592BD 88F4
-E592BE 9A43
-E59380 88A3
-E59381 9569
-E59382 9A41
-E59384 99FA
-E59387 99F5
-E59388 99FB
-E59389 8DC6
-E59398 9A45
-E593A1 88F5
-E593A2 9A4E
-E593A5 9A46
-E593A6 9A47
-E593A8 8FA3
-E593A9 9689
-E593AD 9A4C
-E593AE 9A4B
-E593B2 934E
-E593BA 9A4D
-E593BD 9A4A
-E593BF FA94
-E59484 8953
-E59486 8DB4
-E59487 904F
-E5948F 9A48
-E59490 9382
-E59494 9A49
-E59496 88A0
-E594AE 9A53
-E594AF 9742
-E594B1 8FA5
-E594B3 9A59
-E594B8 9A58
-E594B9 9A4F
-E594BE 91C1
-E59580 9A50
-E59584 91ED
-E59585 9A55
-E59586 8FA4
-E5958C 9A52
-E5958F 96E2
-E59593 8C5B
-E59596 9A56
-E59597 9A57
-E5959C 9A54
-E5959D 9A5A
-E595A3 9A51
-E595BB 9A60
-E595BC 9A65
-E595BE 9A61
-E59680 9A5C
-E59683 9A66
-E59684 9150
-E59686 FA95
-E59687 9A68
-E59689 8D41
-E5968A 9A5E
-E5968B 929D
-E59698 9A62
-E59699 9A5B
-E5969A 8AAB
-E5969C 8AEC
-E5969D 8A85
-E5969E 9A63
-E5969F 9A5F
-E596A7 8C96
-E596A8 9A69
-E596A9 9A67
-E596AA 9172
-E596AB 8B69
-E596AC 8BAA
-E596AE 9A64
-E596B0 8BF2
-E596B6 8963
-E59784 9A6D
-E59785 9A6B
-E59787 9AA5
-E59794 9A70
-E5979A 9A6A
-E5979C 9A6E
-E5979F 9A6C
-E597A3 8E6B
-E597A4 9A6F
-E597B7 9A72
-E597B9 9A77
-E597BD 9A75
-E597BE 9A74
-E59886 9251
-E59889 89C3
-E59894 9A71
-E59896 9A73
-E59897 8FA6
-E59898 8952
-E5989B 9A76
-E598A9 89DC
-E598AF 9A82
-E598B1 8FFA
-E598B2 9A7D
-E598B4 9A7B
-E598B6 9A7C
-E598B8 9A7E
-E59982 895C
-E5998C 9158
-E5998E 9A78
-E59990 9A79
-E5999B 8A9A
-E599A4 9A81
-E599A8 8AED
-E599AA 9A84
-E599AB 9A80
-E599AC 9A83
-E599B4 95AC
-E599B8 93D3
-E599BA 94B6
-E59A80 9A86
-E59A86 9A85
-E59A87 8A64
-E59A8A 9A87
-E59A8F 9A8A
-E59A94 9A89
-E59AA0 9A88
-E59AA2 9458
-E59AA5 9A8B
-E59AAE 9A8C
-E59AB4 9A8E
-E59AB6 9A8D
-E59ABC 9A90
-E59B80 9A93
-E59B81 9A91
-E59B82 9A8F
-E59B83 9A92
-E59B88 9A94
-E59B8E 9A95
-E59B91 9A96
-E59B93 9A97
-E59B97 9A98
-E59B98 9964
-E59B9A 8EFA
-E59B9B 8E6C
-E59B9E 89F1
-E59BA0 88F6
-E59BA3 9263
-E59BAE 9A99
-E59BB0 8DA2
-E59BB2 88CD
-E59BB3 907D
-E59BB9 9A9A
-E59BBA 8CC5
-E59BBD 8D91
-E59BBF 9A9C
-E59C80 9A9B
-E59C83 95DE
-E59C84 9A9D
-E59C88 9A9F
-E59C89 9A9E
-E59C8B 9AA0
-E59C8D 9AA1
-E59C8F 8C97
-E59C92 8980
-E59C93 9AA2
-E59C96 9AA4
-E59C98 9AA3
-E59C9C 9AA6
-E59C9F 9379
-E59CA6 9AA7
-E59CA7 88B3
-E59CA8 8DDD
-E59CAD 8C5C
-E59CB0 926E
-E59CB7 9AA8
-E59CB8 9AA9
-E59CBB 9AAB
-E59D80 9AAC
-E59D82 8DE2
-E59D87 8BCF
-E59D8A 9656
-E59D8E 9AAA
-E59D8F 9AAD
-E59D90 8DBF
-E59D91 8D42
-E59D99 FA96
-E59DA1 9AB1
-E59DA4 8DA3
-E59DA5 FA97
-E59DA6 9252
-E59DA9 9AAE
-E59DAA 92D8
-E59DBF 9AB2
-E59E82 9082
-E59E88 9AB0
-E59E89 9AB3
-E59E8B 8C5E
-E59E93 9AB4
-E59EA0 9AB5
-E59EA2 8D43
-E59EA3 8A5F
-E59EA4 9AB7
-E59EAA 9AB8
-E59EAC FA98
-E59EB0 9AB9
-E59EB3 9AB6
-E59F80 9AAF
-E59F83 9ABA
-E59F86 9ABB
-E59F87 FA9A
-E59F88 FA99
-E59F8B 9684
-E59F8E 8FE9
-E59F92 9ABD
-E59F93 9ABE
-E59F94 9ABC
-E59F96 9AC0
-E59F9C 9457
-E59F9F 88E6
-E59FA0 9575
-E59FA3 9AC1
-E59FB4 8FFB
-E59FB7 8EB7
-E59FB9 947C
-E59FBA 8AEE
-E59FBC 8DE9
-E5A080 9678
-E5A082 93B0
-E5A085 8C98
-E5A086 91CD
-E5A08A 9ABF
-E5A08B 9AC2
-E5A095 91C2
-E5A099 9AC3
-E5A09D 9AC4
-E5A0A1 9AC6
-E5A0A4 92E7
-E5A0AA 8AAC
-E5A0AF EA9F
-E5A0B0 8981
-E5A0B1 95F1
-E5A0B4 8FEA
-E5A0B5 9367
-E5A0BA 8DE4
-E5A0BD 9ACC
-E5A180 95BB
-E5A181 97DB
-E5A18A 89F2
-E5A18B 9AC8
-E5A191 9159
-E5A192 9ACB
-E5A194 9383
-E5A197 9368
-E5A198 9384
-E5A199 94B7
-E5A19A 92CB
-E5A19E 8DC7
-E5A1A2 9AC7
-E5A1A9 8996
-E5A1AB 9355
-E5A1B0 9AC9
-E5A1B2 9AC5
-E5A1B5 906F
-E5A1B9 9ACD
-E5A1BE 8F6D
-E5A283 8BAB
-E5A285 9ACE
-E5A293 95E6
-E5A297 919D
-E5A29C 92C4
-E5A29E FA9D
-E5A29F 9AD0
-E5A2A8 966E
-E5A2AB 9AD1
-E5A2AE 9AD6
-E5A2B2 FA9E
-E5A2B3 95AD
-E5A2B8 9AD5
-E5A2B9 9ACF
-E5A2BA 9AD2
-E5A2BB 9AD4
-E5A2BE 8DA4
-E5A381 95C7
-E5A385 9AD7
-E5A387 9264
-E5A38A 89F3
-E5A38C 8FEB
-E5A391 9AD9
-E5A393 9AD8
-E5A395 8D88
-E5A397 9ADA
-E5A398 9ADC
-E5A399 9ADB
-E5A39C 9ADE
-E5A39E 9AD3
-E5A39F 9AE0
-E5A3A4 9ADF
-E5A3A5 9ADD
-E5A3AB 8E6D
-E5A3AC 9070
-E5A3AE 9173
-E5A3AF 9AE1
-E5A3B0 90BA
-E5A3B1 88EB
-E5A3B2 9484
-E5A3B7 92D9
-E5A3B9 9AE3
-E5A3BA 9AE2
-E5A3BB 9AE4
-E5A3BC 9AE5
-E5A3BD 9AE6
-E5A482 9AE7
-E5A489 95CF
-E5A48A 9AE8
-E5A48B FA9F
-E5A48F 89C4
-E5A490 9AE9
-E5A495 975B
-E5A496 8A4F
-E5A498 99C7
-E5A499 8F67
-E5A49A 91BD
-E5A49B 9AEA
-E5A49C 96E9
-E5A4A2 96B2
-E5A4A5 9AEC
-E5A4A7 91E5
-E5A4A9 9356
-E5A4AA 91BE
-E5A4AB 9576
-E5A4AC 9AED
-E5A4AD 9AEE
-E5A4AE 899B
-E5A4B1 8EB8
-E5A4B2 9AEF
-E5A4B7 88CE
-E5A4B8 9AF0
-E5A4BE 9AF1
-E5A584 8982
-E5A587 8AEF
-E5A588 93DE
-E5A589 95F2
-E5A58E 9AF5
-E5A58F 9174
-E5A590 9AF4
-E5A591 8C5F
-E5A593 FAA0
-E5A594 967A
-E5A595 9AF3
-E5A597 9385
-E5A598 9AF7
-E5A59A 9AF6
-E5A59B FAA1
-E5A59D FAA2
-E5A5A0 9AF9
-E5A5A2 9AF8
-E5A5A3 FAA3
-E5A5A5 899C
-E5A5A7 9AFA
-E5A5A8 8FA7
-E5A5A9 9AFC
-E5A5AA 9244
-E5A5AC 9AFB
-E5A5AE 95B1
-E5A5B3 8F97
-E5A5B4 937A
-E5A5B8 9B40
-E5A5BD 8D44
-E5A681 9B41
-E5A682 9440
-E5A683 94DC
-E5A684 96CF
-E5A68A 9444
-E5A68D 9B4A
-E5A693 8B57
-E5A696 9764
-E5A699 96AD
-E5A69B 9BAA
-E5A69D 9B42
-E5A6A3 9B45
-E5A6A4 FAA4
-E5A6A5 91C3
-E5A6A8 9657
-E5A6AC 9369
-E5A6B2 9B46
-E5A6B9 9685
-E5A6BA FAA5
-E5A6BB 8DC8
-E5A6BE 8FA8
-E5A786 9B47
-E5A789 8E6F
-E5A78B 8E6E
-E5A790 88B7
-E5A791 8CC6
-E5A793 90A9
-E5A794 88CF
-E5A799 9B4B
-E5A79A 9B4C
-E5A79C 9B49
-E5A7A5 8957
-E5A7A6 8AAD
-E5A7A8 9B48
-E5A7AA 96C3
-E5A7AB 9550
-E5A7B6 88A6
-E5A7BB 88F7
-E5A7BF 8E70
-E5A881 88D0
-E5A883 88A1
-E5A889 9B51
-E5A891 9B4F
-E5A898 96BA
-E5A89A 9B52
-E5A89C 9B50
-E5A89F 9B4E
-E5A8A0 9050
-E5A8A5 9B4D
-E5A8A9 95D8
-E5A8AF 8CE2
-E5A8B5 9B56
-E5A8B6 9B57
-E5A8BC 8FA9
-E5A980 9B53
-E5A981 984B
-E5A986 946B
-E5A989 9B55
-E5A99A 8DA5
-E5A9A2 9B58
-E5A9A6 9577
-E5A9AA 9B59
-E5A9AC 9B54
-E5A9BF 96B9
-E5AA92 947D
-E5AA9A 9B5A
-E5AA9B 9551
-E5AABC 9B5B
-E5AABD 9B5F
-E5AABE 9B5C
-E5AB81 89C5
-E5AB82 9B5E
-E5AB89 8EB9
-E5AB8B 9B5D
-E5AB8C 8C99
-E5AB90 9B6B
-E5AB96 9B64
-E5AB97 9B61
-E5ABA1 9284
-E5ABA3 9B60
-E5ABA6 9B62
-E5ABA9 9B63
-E5ABBA 9B65
-E5ABBB 9B66
-E5AC89 8AF0
-E5AC8B 9B68
-E5AC8C 9B67
-E5AC96 9B69
-E5ACA2 8FEC
-E5ACAA 9B6C
-E5ACAC 92DA
-E5ACB0 8964
-E5ACB2 9B6A
-E5ACB6 9B6D
-E5ACBE 9B6E
-E5AD80 9B71
-E5AD83 9B6F
-E5AD85 9B70
-E5AD90 8E71
-E5AD91 9B72
-E5AD94 8D45
-E5AD95 9B73
-E5AD96 FAA6
-E5AD97 8E9A
-E5AD98 91B6
-E5AD9A 9B74
-E5AD9B 9B75
-E5AD9C 8E79
-E5AD9D 8D46
-E5AD9F 96D0
-E5ADA3 8B47
-E5ADA4 8CC7
-E5ADA5 9B76
-E5ADA6 8A77
-E5ADA9 9B77
-E5ADAB 91B7
-E5ADB0 9B78
-E5ADB1 9BA1
-E5ADB3 9B79
-E5ADB5 9B7A
-E5ADB8 9B7B
-E5ADBA 9B7D
-E5AE80 9B7E
-E5AE83 9B80
-E5AE85 91EE
-E5AE87 8946
-E5AE88 8EE7
-E5AE89 88C0
-E5AE8B 9176
-E5AE8C 8AAE
-E5AE8D 8EB3
-E5AE8F 8D47
-E5AE95 9386
-E5AE97 8F40
-E5AE98 8AAF
-E5AE99 9288
-E5AE9A 92E8
-E5AE9B 88B6
-E5AE9C 8B58
-E5AE9D 95F3
-E5AE9F 8EC0
-E5AEA2 8B71
-E5AEA3 90E9
-E5AEA4 8EBA
-E5AEA5 9747
-E5AEA6 9B81
-E5AEAE 8B7B
-E5AEB0 8DC9
-E5AEB3 8A51
-E5AEB4 8983
-E5AEB5 8FAA
-E5AEB6 89C6
-E5AEB8 9B82
-E5AEB9 9765
-E5AEBF 8F68
-E5AF80 FAA7
-E5AF82 8EE2
-E5AF83 9B83
-E5AF84 8AF1
-E5AF85 93D0
-E5AF86 96A7
-E5AF87 9B84
-E5AF89 9B85
-E5AF8C 9578
-E5AF90 9B87
-E5AF92 8AA6
-E5AF93 8BF5
-E5AF94 9B86
-E5AF98 FAA9
-E5AF9B 8AB0
-E5AF9D 9051
-E5AF9E 9B8B
-E5AF9F 8E40
-E5AFA1 89C7
-E5AFA2 9B8A
-E5AFA4 9B88
-E5AFA5 9B8C
-E5AFA6 9B89
-E5AFA7 944A
-E5AFA8 9ECB
-E5AFA9 9052
-E5AFAB 9B8D
-E5AFAC FAAA
-E5AFAE 97BE
-E5AFB0 9B8E
-E5AFB3 9B90
-E5AFB5 929E
-E5AFB6 9B8F
-E5AFB8 90A1
-E5AFBA 8E9B
-E5AFBE 91CE
-E5AFBF 8EF5
-E5B081 9595
-E5B082 90EA
-E5B084 8ECB
-E5B085 9B91
-E5B086 8FAB
-E5B087 9B92
-E5B088 9B93
-E5B089 88D1
-E5B08A 91B8
-E5B08B 9071
-E5B08D 9B94
-E5B08E 93B1
-E5B08F 8FAC
-E5B091 8FAD
-E5B093 9B95
-E5B096 90EB
-E5B09A 8FAE
-E5B09E FAAB
-E5B0A0 9B96
-E5B0A2 9B97
-E5B0A4 96DE
-E5B0A8 9B98
-E5B0AD 8BC4
-E5B0B1 8F41
-E5B0B8 9B99
-E5B0B9 9B9A
-E5B0BA 8EDA
-E5B0BB 904B
-E5B0BC 93F2
-E5B0BD 9073
-E5B0BE 94F6
-E5B0BF 9441
-E5B180 8BC7
-E5B181 9B9B
-E5B185 8B8F
-E5B186 9B9C
-E5B188 8BFC
-E5B18A 93CD
-E5B18B 89AE
-E5B18D 8E72
-E5B18E 9B9D
-E5B18F 9BA0
-E5B190 9B9F
-E5B191 8BFB
-E5B193 9B9E
-E5B195 9357
-E5B19E 91AE
-E5B1A0 936A
-E5B1A1 8EC6
-E5B1A4 9177
-E5B1A5 979A
-E5B1AC 9BA2
-E5B1AE 9BA3
-E5B1AF 93D4
-E5B1B1 8E52
-E5B1B6 9BA5
-E5B1B9 9BA6
-E5B28C 9BA7
-E5B290 8AF2
-E5B291 9BA8
-E5B294 9BA9
-E5B2A1 89AA
-E5B2A6 FAAC
-E5B2A8 915A
-E5B2A9 8AE2
-E5B2AB 9BAB
-E5B2AC 96A6
-E5B2B1 91D0
-E5B2B3 8A78
-E5B2B6 9BAD
-E5B2B7 9BAF
-E5B2B8 8ADD
-E5B2BA FAAD
-E5B2BB 9BAC
-E5B2BC 9BAE
-E5B2BE 9BB1
-E5B385 9BB0
-E5B387 9BB2
-E5B399 9BB3
-E5B3A0 93BB
-E5B3A1 8BAC
-E5B3A8 89E3
-E5B3A9 9BB4
-E5B3AA 9BB9
-E5B3AD 9BB7
-E5B3AF 95F5
-E5B3B0 95F4
-E5B3B5 FAAE
-E5B3B6 9387
-E5B3BA 9BB6
-E5B3BB 8F73
-E5B3BD 9BB5
-E5B487 9092
-E5B48B 9BBA
-E5B48E 8DE8
-E5B491 9BC0
-E5B494 9BC1
-E5B495 9BBB
-E5B496 8A52
-E5B497 9BBC
-E5B498 9BC5
-E5B499 9BC4
-E5B49A 9BC3
-E5B49B 9BBF
-E5B49F 9BBE
-E5B4A2 9BC2
-E5B4A7 FAAF
-E5B4A9 95F6
-E5B582 FAB2
-E5B58B 9BC9
-E5B58C 9BC6
-E5B58E 9BC8
-E5B590 9792
-E5B592 9BC7
-E5B593 FAB0
-E5B59C 9BBD
-E5B5A9 9093
-E5B5AC 9BCA
-E5B5AD FAB3
-E5B5AF 8DB5
-E5B5B3 9BCB
-E5B5B6 9BCC
-E5B682 9BCF
-E5B684 9BCE
-E5B687 9BCD
-E5B68B 9388
-E5B68C 9BB8
-E5B690 9BD5
-E5B69D 9BD1
-E5B6A2 9BD0
-E5B6AC 9BD2
-E5B6AE 9BD3
-E5B6B7 9BD6
-E5B6B8 FAB4
-E5B6B9 FAB5
-E5B6BA 97E4
-E5B6BC 9BD7
-E5B6BD 9BD4
-E5B789 9BD8
-E5B78C 8ADE
-E5B78D 9BD9
-E5B790 FAB6
-E5B792 9BDB
-E5B793 9BDA
-E5B796 9BDC
-E5B79B 9BDD
-E5B79D 90EC
-E5B79E 8F42
-E5B7A1 8F84
-E5B7A3 9183
-E5B7A5 8D48
-E5B7A6 8DB6
-E5B7A7 8D49
-E5B7A8 8B90
-E5B7AB 9BDE
-E5B7AE 8DB7
-E5B7B1 8CC8
-E5B7B2 9BDF
-E5B7B3 96A4
-E5B7B4 9462
-E5B7B5 9BE0
-E5B7B7 8D4A
-E5B7BB 8AAA
-E5B7BD 9246
-E5B7BE 8BD0
-E5B882 8E73
-E5B883 957A
-E5B886 94BF
-E5B88B 9BE1
-E5B88C 8AF3
-E5B891 9BE4
-E5B896 929F
-E5B899 9BE3
-E5B89A 9BE2
-E5B89B 9BE5
-E5B89D 92E9
-E5B8A5 9083
-E5B8AB 8E74
-E5B8AD 90C8
-E5B8AF 91D1
-E5B8B0 8B41
-E5B8B3 92A0
-E5B8B6 9BE6
-E5B8B7 9BE7
-E5B8B8 8FED
-E5B8BD 9658
-E5B980 9BEA
-E5B983 9BE9
-E5B984 9BE8
-E5B985 959D
-E5B987 9BF1
-E5B98C 9679
-E5B98E 9BEB
-E5B994 9BED
-E5B995 968B
-E5B997 9BEC
-E5B99F 9BEE
-E5B9A1 94A6
-E5B9A2 9BEF
-E5B9A3 95BC
-E5B9A4 9BF0
-E5B9B2 8AB1
-E5B9B3 95BD
-E5B9B4 944E
-E5B9B5 9BF2
-E5B9B6 9BF3
-E5B9B8 8D4B
-E5B9B9 8AB2
-E5B9BA 9BF4
-E5B9BB 8CB6
-E5B9BC 9763
-E5B9BD 9748
-E5B9BE 8AF4
-E5B9BF 9BF6
-E5BA81 92A1
-E5BA83 8D4C
-E5BA84 8FAF
-E5BA87 94DD
-E5BA8A 8FB0
-E5BA8F 8F98
-E5BA95 92EA
-E5BA96 95F7
-E5BA97 9358
-E5BA9A 8D4D
-E5BA9C 957B
-E5BAA0 9BF7
-E5BAA6 9378
-E5BAA7 8DC0
-E5BAAB 8CC9
-E5BAAD 92EB
-E5BAB5 88C1
-E5BAB6 8F8E
-E5BAB7 8D4E
-E5BAB8 9766
-E5BB81 9BF8
-E5BB82 9BF9
-E5BB83 9470
-E5BB88 9BFA
-E5BB89 97F5
-E5BB8A 984C
-E5BB8F 9BFC
-E5BB90 9BFB
-E5BB93 8A66
-E5BB96 9C40
-E5BB9A 9C43
-E5BB9B 9C44
-E5BB9D 9C42
-E5BB9F 955F
-E5BBA0 8FB1
-E5BBA1 9C46
-E5BBA2 9C45
-E5BBA3 9C41
-E5BBA8 9C47
-E5BBA9 9C48
-E5BBAC 9C49
-E5BBB0 9C4C
-E5BBB1 9C4A
-E5BBB3 9C4B
-E5BBB4 9C4D
-E5BBB6 8984
-E5BBB7 92EC
-E5BBB8 9C4E
-E5BBBA 8C9A
-E5BBBB 89F4
-E5BBBC 9455
-E5BBBE 9C4F
-E5BBBF 93F9
-E5BC81 95D9
-E5BC83 9C50
-E5BC84 984D
-E5BC89 9C51
-E5BC8A 95BE
-E5BC8B 9C54
-E5BC8C 989F
-E5BC8D 98AF
-E5BC8F 8EAE
-E5BC90 93F3
-E5BC91 9C55
-E5BC93 8B7C
-E5BC94 92A2
-E5BC95 88F8
-E5BC96 9C56
-E5BC97 95A4
-E5BC98 8D4F
-E5BC9B 926F
-E5BC9F 92ED
-E5BCA1 FAB7
-E5BCA5 96ED
-E5BCA6 8CB7
-E5BCA7 8CCA
-E5BCA9 9C57
-E5BCAD 9C58
-E5BCAF 9C5E
-E5BCB1 8EE3
-E5BCB4 FAB8
-E5BCB5 92A3
-E5BCB7 8BAD
-E5BCB8 9C59
-E5BCBC 954A
-E5BCBE 9265
-E5BD81 9C5A
-E5BD85 FA67
-E5BD88 9C5B
-E5BD8A 8BAE
-E5BD8C 9C5C
-E5BD8E 9C5D
-E5BD91 9C5F
-E5BD93 9396
-E5BD96 9C60
-E5BD97 9C61
-E5BD99 9C62
-E5BD9C 9C53
-E5BD9D 9C52
-E5BDA1 9C63
-E5BDA2 8C60
-E5BDA6 9546
-E5BDA7 FAB9
-E5BDA9 8DCA
-E5BDAA 9556
-E5BDAB 92A4
-E5BDAC 956A
-E5BDAD 9C64
-E5BDB0 8FB2
-E5BDB1 8965
-E5BDB3 9C65
-E5BDB7 9C66
-E5BDB9 96F0
-E5BDBC 94DE
-E5BDBF 9C69
-E5BE80 899D
-E5BE81 90AA
-E5BE82 9C68
-E5BE83 9C67
-E5BE84 8C61
-E5BE85 91D2
-E5BE87 9C6D
-E5BE88 9C6B
-E5BE8A 9C6A
-E5BE8B 97A5
-E5BE8C 8CE3
-E5BE90 8F99
-E5BE91 9C6C
-E5BE92 936B
-E5BE93 8F5D
-E5BE97 93BE
-E5BE98 9C70
-E5BE99 9C6F
-E5BE9E 9C6E
-E5BEA0 9C71
-E5BEA1 8CE4
-E5BEA8 9C72
-E5BEA9 959C
-E5BEAA 8F7A
-E5BEAD 9C73
-E5BEAE 94F7
-E5BEB3 93BF
-E5BEB4 92A5
-E5BEB7 FABA
-E5BEB9 934F
-E5BEBC 9C74
-E5BEBD 8B4A
-E5BF83 9053
-E5BF85 954B
-E5BF8C 8AF5
-E5BF8D 9445
-E5BF96 9C75
-E5BF97 8E75
-E5BF98 9659
-E5BF99 965A
-E5BF9C 899E
-E5BF9D 9C7A
-E5BF9E FABB
-E5BFA0 9289
-E5BFA4 9C77
-E5BFAB 89F5
-E5BFB0 9CAB
-E5BFB1 9C79
-E5BFB5 944F
-E5BFB8 9C78
-E5BFBB 9C76
-E5BFBD 8D9A
-E5BFBF 9C7C
-E6808E 9C83
-E6808F 9C89
-E68090 9C81
-E68092 937B
-E68095 9C86
-E68096 957C
-E68099 9C80
-E6809B 9C85
-E6809C 97E5
-E6809D 8E76
-E680A0 91D3
-E680A1 9C7D
-E680A5 8B7D
-E680A6 9C88
-E680A7 90AB
-E680A8 8985
-E680A9 9C82
-E680AA 89F6
-E680AB 9C87
-E680AF 8BAF
-E680B1 9C84
-E680BA 9C8A
-E68181 9C8C
-E68182 9C96
-E68183 9C94
-E68186 9C91
-E6818A 9C90
-E6818B 97F6
-E6818D 9C92
-E68190 8BB0
-E68192 8D50
-E68195 8F9A
-E68199 9C99
-E6819A 9C8B
-E6819D FABC
-E6819F 9C8F
-E681A0 9C7E
-E681A2 89F8
-E681A3 9C93
-E681A4 9C95
-E681A5 9270
-E681A8 8DA6
-E681A9 89B6
-E681AA 9C8D
-E681AB 9C98
-E681AC 9C97
-E681AD 8BB1
-E681AF 91A7
-E681B0 8A86
-E681B5 8C62
-E681B7 9C8E
-E68281 9C9A
-E68283 9C9D
-E68284 9C9F
-E68285 FABD
-E68289 8EBB
-E6828A FABE
-E6828B 9CA5
-E6828C 92EE
-E6828D 9C9B
-E68292 9CA3
-E68294 89F7
-E68296 9CA1
-E68297 9CA2
-E6829A 9C9E
-E6829B 9CA0
-E6829F 8CE5
-E682A0 9749
-E682A3 8AB3
-E682A6 8978
-E682A7 9CA4
-E682A9 9459
-E682AA 88AB
-E682B2 94DF
-E682B3 9C7B
-E682B4 9CAA
-E682B5 9CAE
-E682B6 96E3
-E682B8 9CA7
-E682BC 9389
-E682BD 9CAC
-E68385 8FEE
-E68386 9CAD
-E68387 93D5
-E68391 9866
-E68393 9CA9
-E68395 FAC0
-E68398 9CAF
-E6839A 8D9B
-E6839C 90C9
-E6839E FABF
-E6839F 88D2
-E683A0 9CA8
-E683A1 9CA6
-E683A3 9179
-E683A7 9C9C
-E683A8 8E53
-E683B0 91C4
-E683B1 9CBB
-E683B2 FAC2
-E683B3 917A
-E683B4 9CB6
-E683B6 9CB3
-E683B7 9CB4
-E683B9 8EE4
-E683BA 9CB7
-E683BB 9CBA
-E68480 9CB5
-E68481 8F44
-E68483 9CB8
-E68486 9CB2
-E68488 96FA
-E68489 96F9
-E6848D 9CBC
-E6848E 9CBD
-E6848F 88D3
-E68491 FAC3
-E68495 9CB1
-E6849A 8BF0
-E6849B 88A4
-E6849F 8AB4
-E684A0 FAC1
-E684A1 9CB9
-E684A7 9CC1
-E684A8 9CC0
-E684AC 9CC5
-E684B0 FAC5
-E684B4 9CC6
-E684B7 FAC4
-E684BC 9CC4
-E684BD 9CC7
-E684BE 9CBF
-E684BF 9CC3
-E68582 9CC8
-E68584 9CC9
-E68587 9CBE
-E68588 8E9C
-E6858A 9CC2
-E6858B 91D4
-E6858C 8D51
-E6858D 9CB0
-E6858E 9054
-E68593 9CD6
-E68595 95E7
-E68598 9CCC
-E68599 9CCD
-E6859A 9CCE
-E6859D 9CD5
-E6859F 9CD4
-E685A2 969D
-E685A3 8AB5
-E685A5 9CD2
-E685A7 8C64
-E685A8 8A53
-E685AB 9CCF
-E685AE 97B6
-E685AF 9CD1
-E685B0 88D4
-E685B1 9CD3
-E685B3 9CCA
-E685B4 9CD0
-E685B5 9CD7
-E685B6 8C63
-E685B7 9CCB
-E685BE 977C
-E68682 974A
-E68687 9CDA
-E6868A 9CDE
-E6868E 919E
-E68690 97F7
-E68691 9CDF
-E68694 9CDC
-E68696 9CD9
-E68698 FAC6
-E68699 9CD8
-E6869A 9CDD
-E686A4 95AE
-E686A7 93B2
-E686A9 8C65
-E686AB 9CE0
-E686AC 9CDB
-E686AE 9CE1
-E686B2 8C9B
-E686B6 89AF
-E686BA 9CE9
-E686BE 8AB6
-E68783 9CE7
-E68786 9CE8
-E68787 8DA7
-E68788 9CE6
-E68789 9CE4
-E6878A 9CE3
-E6878B 9CEA
-E6878C 9CE2
-E6878D 9CEC
-E68790 89F9
-E687A3 9CEE
-E687A6 9CED
-E687B2 92A6
-E687B4 9CF1
-E687B6 9CEF
-E687B7 9CE5
-E687B8 8C9C
-E687BA 9CF0
-E687BC 9CF4
-E687BD 9CF3
-E687BE 9CF5
-E687BF 9CF2
-E68880 9CF6
-E68888 9CF7
-E68889 9CF8
-E6888A 95E8
-E6888C 9CFA
-E6888D 9CF9
-E6888E 8F5E
-E68890 90AC
-E68891 89E4
-E68892 89FA
-E68893 FAC7
-E68894 9CFB
-E68896 88BD
-E6889A 90CA
-E6889B 9CFC
-E6889D E6C1
-E6889E 9D40
-E6889F 8C81
-E688A1 9D41
-E688A6 90ED
-E688AA 9D42
-E688AE 9D43
-E688AF 8B59
-E688B0 9D44
-E688B2 9D45
-E688B3 9D46
-E688B4 91D5
-E688B8 8CCB
-E688BB 96DF
-E688BF 965B
-E68980 8F8A
-E68981 9D47
-E68987 90EE
-E68988 E7BB
-E68989 94E0
-E6898B 8EE8
-E6898D 8DCB
-E6898E 9D48
-E68993 91C5
-E68995 95A5
-E68998 91EF
-E6899B 9D4B
-E6899E 9D49
-E689A0 9D4C
-E689A3 9D4A
-E689A8 9D4D
-E689AE 95AF
-E689B1 88B5
-E689B6 957D
-E689B9 94E1
-E689BC 9D4E
-E689BE 9D51
-E689BF 8FB3
-E68A80 8B5A
-E68A82 9D4F
-E68A83 9D56
-E68A84 8FB4
-E68A89 9D50
-E68A8A 9463
-E68A91 977D
-E68A92 9D52
-E68A93 9D53
-E68A94 9D57
-E68A95 938A
-E68A96 9D54
-E68A97 8D52
-E68A98 90DC
-E68A9B 9D65
-E68A9C 94B2
-E68A9E 91F0
-E68AA6 FAC8
-E68AAB 94E2
-E68AAC 9DAB
-E68AB1 95F8
-E68AB5 92EF
-E68AB9 9695
-E68ABB 9D5A
-E68ABC 899F
-E68ABD 928A
-E68B82 9D63
-E68B85 9253
-E68B86 9D5D
-E68B87 9D64
-E68B88 9D5F
-E68B89 9D66
-E68B8A 9D62
-E68B8C 9D61
-E68B8D 948F
-E68B8F 9D5B
-E68B90 89FB
-E68B91 9D59
-E68B92 8B91
-E68B93 91F1
-E68B94 9D55
-E68B97 9D58
-E68B98 8D53
-E68B99 90D9
-E68B9B 8FB5
-E68B9C 9D60
-E68B9D 9471
-E68BA0 8B92
-E68BA1 8A67
-E68BAC 8A87
-E68BAD 9040
-E68BAE 9D68
-E68BAF 9D6D
-E68BB1 9D69
-E68BB3 8C9D
-E68BB5 9D6E
-E68BB6 8E41
-E68BB7 8D89
-E68BBE 8F45
-E68BBF 9D5C
-E68C81 8E9D
-E68C82 9D6B
-E68C87 8E77
-E68C88 9D6C
-E68C89 88C2
-E68C8C 9D67
-E68C91 92A7
-E68C99 8B93
-E68C9F 8BB2
-E68CA7 9D6A
-E68CA8 88A5
-E68CAB 8DC1
-E68CAF 9055
-E68CBA 92F0
-E68CBD 94D2
-E68CBE 9D70
-E68CBF 917D
-E68D89 91A8
-E68D8C 8E4A
-E68D8D 9D71
-E68D8F 9D73
-E68D90 9D6F
-E68D95 95DF
-E68D97 92BB
-E68D9C 917B
-E68DA7 95F9
-E68DA8 8ECC
-E68DA9 9D80
-E68DAB 9D7E
-E68DAE 9098
-E68DB2 8C9E
-E68DB6 9D78
-E68DB7 8FB7
-E68DBA 93E6
-E68DBB 9450
-E68E80 9D76
-E68E83 917C
-E68E88 8EF6
-E68E89 9D7B
-E68E8C 8FB6
-E68E8E 9D75
-E68E8F 9D7A
-E68E92 9472
-E68E96 9D74
-E68E98 8C40
-E68E9B 8A7C
-E68E9F 9D7C
-E68EA0 97A9
-E68EA1 8DCC
-E68EA2 9254
-E68EA3 9D79
-E68EA5 90DA
-E68EA7 8D54
-E68EA8 9084
-E68EA9 8986
-E68EAA 915B
-E68EAB 9D77
-E68EAC 8B64
-E68EB2 8C66
-E68EB4 92CD
-E68EB5 9D7D
-E68EBB 917E
-E68EBE 9D81
-E68F80 9D83
-E68F83 91B5
-E68F84 9D89
-E68F86 9D84
-E68F89 9D86
-E68F8F 9560
-E68F90 92F1
-E68F92 9D87
-E68F96 974B
-E68F9A 9767
-E68F9B 8AB7
-E68FA1 88AC
-E68FA3 9D85
-E68FA9 9D82
-E68FAE 8AF6
-E68FB4 8987
-E68FB5 FAC9
-E68FB6 9D88
-E68FBA 9768
-E69086 9D8C
-E6908D 91B9
-E6908F 9D93
-E69093 9D8D
-E69096 9D8A
-E69097 9D91
-E6909C 9D72
-E690A6 9D8E
-E690A8 9D92
-E690AC 94C0
-E690AD 938B
-E690B4 9D8B
-E690B6 9D8F
-E690BA 8C67
-E690BE 8DEF
-E69182 90DB
-E6918E 9D97
-E69198 9345
-E691A0 FACA
-E691A7 9D94
-E691A9 9680
-E691AF 9D95
-E691B6 9D96
-E691B8 96CC
-E691BA 90A0
-E69283 8C82
-E69288 9D9D
-E69292 8E54
-E69293 9D9A
-E69295 9D99
-E6929A 9451
-E6929D FACB
-E6929E 93B3
-E692A4 9350
-E692A5 9D9B
-E692A9 9D9C
-E692AB 958F
-E692AD 9464
-E692AE 8E42
-E692B0 90EF
-E692B2 966F
-E692B9 8A68
-E692BB 9DA3
-E692BC 9D9E
-E69381 9769
-E69382 9DA5
-E69385 9DA1
-E69387 9DA2
-E6938D 9180
-E6938E FACC
-E69392 9DA0
-E69394 9D5E
-E69398 9DA4
-E6939A 9D9F
-E693A0 9DA9
-E693A1 9DAA
-E693A2 9346
-E693A3 9DAC
-E693A6 8E43
-E693A7 9DA7
-E693AC 8B5B
-E693AF 9DAD
-E693B1 9DA6
-E693B2 9DB1
-E693B4 9DB0
-E693B6 9DAF
-E693BA 9DB2
-E693BD 9DB4
-E693BE 8FEF
-E69480 9DB3
-E69485 9DB7
-E69498 9DB5
-E6949C 9DB6
-E6949D 9D90
-E694A3 9DB9
-E694A4 9DB8
-E694AA 9D98
-E694AB 9DBA
-E694AC 9DAE
-E694AF 8E78
-E694B4 9DBB
-E694B5 9DBC
-E694B6 9DBE
-E694B7 9DBD
-E694B8 9DBF
-E694B9 89FC
-E694BB 8D55
-E694BE 95FA
-E694BF 90AD
-E69585 8CCC
-E69588 9DC1
-E6958D 9DC4
-E6958E FACD
-E6958F 9571
-E69591 8B7E
-E69595 9DC3
-E69596 9DC2
-E69597 9473
-E69598 9DC5
-E69599 8BB3
-E6959D 9DC7
-E6959E 9DC6
-E695A2 8AB8
-E695A3 8E55
-E695A6 93D6
-E695AC 8C68
-E695B0 9094
-E695B2 9DC8
-E695B4 90AE
-E695B5 9347
-E695B7 957E
-E695B8 9DC9
-E69682 9DCA
-E69683 9DCB
-E69687 95B6
-E69688 9B7C
-E69689 90C4
-E6968C 956B
-E6968E 8DD6
-E69690 94E3
-E69691 94C1
-E69697 936C
-E69699 97BF
-E6969B 9DCD
-E6969C 8ECE
-E6969F 9DCE
-E696A1 88B4
-E696A4 8BD2
-E696A5 90CB
-E696A7 9580
-E696AB 9DCF
-E696AC 8E61
-E696AD 9266
-E696AF 8E7A
-E696B0 9056
-E696B7 9DD0
-E696B9 95FB
-E696BC 8997
-E696BD 8E7B
-E69781 9DD3
-E69783 9DD1
-E69784 9DD4
-E69785 97B7
-E69786 9DD2
-E6978B 90F9
-E6978C 9DD5
-E6978F 91B0
-E69792 9DD6
-E69797 8AF8
-E69799 9DD8
-E6979B 9DD7
-E697A0 9DD9
-E697A1 9DDA
-E697A2 8AF9
-E697A5 93FA
-E697A6 9255
-E697A7 8B8C
-E697A8 8E7C
-E697A9 9181
-E697AC 8F7B
-E697AD 88AE
-E697B1 9DDB
-E697BA 89A0
-E697BB 9DDF
-E69880 FACE
-E69882 8D56
-E69883 9DDE
-E69886 8DA9
-E69887 8FB8
-E69889 FAD1
-E6988A 9DDD
-E6988C 8FB9
-E6988E 96BE
-E6988F 8DA8
-E69893 88D5
-E69894 90CC
-E69895 FACF
-E6989C 9DE4
-E6989E FAD3
-E6989F 90AF
-E698A0 8966
-E698A4 FAD4
-E698A5 8F74
-E698A7 9686
-E698A8 8DF0
-E698AD 8FBA
-E698AE FAD2
-E698AF 90A5
-E698B1 FA63
-E698B4 9DE3
-E698B5 9DE1
-E698B6 9DE2
-E698BB FAD0
-E698BC 928B
-E698BF 9E45
-E69981 9DE8
-E69982 8E9E
-E69983 8D57
-E69984 9DE6
-E69989 9DE7
-E6998B 9057
-E6998F 9DE5
-E69992 8E4E
-E69997 FAD6
-E69999 FAD7
-E6999D 9DEA
-E6999E 9DE9
-E6999F 9DEE
-E699A1 FAD7
-E699A2 9DEF
-E699A4 9DEB
-E699A5 FAD5
-E699A6 8A41
-E699A7 9DEC
-E699A8 9DED
-E699A9 94D3
-E699AE 9581
-E699AF 8C69
-E699B0 9DF0
-E699B3 FAD9
-E699B4 90B0
-E699B6 8FBB
-E699BA 9271
-E69A81 8BC5
-E69A83 9DF1
-E69A84 9DF5
-E69A87 89C9
-E69A88 9DF2
-E69A89 9DF4
-E69A8E 9DF3
-E69A91 8F8B
-E69A96 9267
-E69A97 88C3
-E69A98 9DF6
-E69A99 FADA
-E69A9D 9DF7
-E69AA0 FADB
-E69AA2 92A8
-E69AA6 97EF
-E69AAB 8E62
-E69AAE 95E9
-E69AB2 FADC
-E69AB4 965C
-E69AB8 9E41
-E69AB9 9DF9
-E69ABC 9DFC
-E69ABE 9DFB
-E69ABF FADD
-E69B81 9DF8
-E69B84 9E40
-E69B87 93DC
-E69B89 9DFA
-E69B96 9E42
-E69B99 8F8C
-E69B9A 9E43
-E69B9C 976A
-E69B9D 9498
-E69BA0 9E44
-E69BA6 9E46
-E69BA9 9E47
-E69BB0 9E48
-E69BB2 8BC8
-E69BB3 8967
-E69BB4 8D58
-E69BB5 9E49
-E69BB7 9E4A
-E69BB8 8F91
-E69BB9 9182
-E69BBA FADE
-E69BBB FA66
-E69BBC 99D6
-E69BBD 915D
-E69BBE 915C
-E69BBF 91D6
-E69C80 8DC5
-E69C83 98F0
-E69C88 8C8E
-E69C89 974C
-E69C8B 95FC
-E69C8D 959E
-E69C8E FADF
-E69C8F 9E4B
-E69C94 8DF1
-E69C95 92BD
-E69C96 9E4C
-E69C97 984E
-E69C9B 965D
-E69C9D 92A9
-E69C9E 9E4D
-E69C9F 8AFA
-E69CA6 9E4E
-E69CA7 9E4F
-E69CA8 96D8
-E69CAA 96A2
-E69CAB 9696
-E69CAC 967B
-E69CAD 8E44
-E69CAE 9E51
-E69CB1 8EE9
-E69CB4 9670
-E69CB6 9E53
-E69CB7 9E56
-E69CB8 9E55
-E69CBA 8AF7
-E69CBD 8B80
-E69CBF 9E52
-E69D81 9E54
-E69D86 9E57
-E69D89 9099
-E69D8E 979B
-E69D8F 88C7
-E69D90 8DDE
-E69D91 91BA
-E69D93 8EDB
-E69D96 8FF1
-E69D99 9E5A
-E69D9C 936D
-E69D9E 9E58
-E69D9F 91A9
-E69DA0 9E59
-E69DA1 8FF0
-E69DA2 96DB
-E69DA3 9E5B
-E69DA4 9E5C
-E69DA5 9788
-E69DA6 FAE1
-E69DAA 9E61
-E69DAD 8D59
-E69DAF 9474
-E69DB0 9E5E
-E69DB1 938C
-E69DB2 9DDC
-E69DB3 9DE0
-E69DB5 8B6E
-E69DB7 9466
-E69DBC 9E60
-E69DBE 8FBC
-E69DBF 94C2
-E69E85 9E66
-E69E87 94F8
-E69E89 9E5D
-E69E8B 9E63
-E69E8C 9E62
-E69E90 90CD
-E69E95 968D
-E69E97 97D1
-E69E9A 9687
-E69E9C 89CA
-E69E9D 8E7D
-E69EA0 9867
-E69EA1 9E65
-E69EA2 9095
-E69EA6 9E64
-E69EA9 9E5F
-E69EAF 8CCD
-E69EB3 9E6B
-E69EB4 9E69
-E69EB6 89CB
-E69EB7 9E67
-E69EB8 9E6D
-E69EB9 9E73
-E69EBB FAE2
-E69F80 FAE4
-E69F81 91C6
-E69F84 95BF
-E69F86 9E75
-E69F8A 9541
-E69F8E 9E74
-E69F8F 9490
-E69F90 965E
-E69F91 8AB9
-E69F93 90F5
-E69F94 8F5F
-E69F98 92D1
-E69F9A 974D
-E69F9D 9E70
-E69F9E 9E6F
-E69FA2 9E71
-E69FA4 9E6E
-E69FA7 9E76
-E69FA9 9E6C
-E69FAC 9E6A
-E69FAE 9E72
-E69FAF 9E68
-E69FB1 928C
-E69FB3 96F6
-E69FB4 8EC4
-E69FB5 8DF2
-E69FBB 8DB8
-E69FBE 968F
-E69FBF 8A60
-E6A081 FAE5
-E6A082 92CC
-E6A083 93C8
-E6A084 8968
-E6A093 90F0
-E6A096 90B2
-E6A097 8C49
-E6A09E 9E78
-E6A0A1 8D5A
-E6A0A2 8A9C
-E6A0A9 9E7A
-E6A0AA 8A94
-E6A0AB 9E81
-E6A0B2 9E7D
-E6A0B4 90F1
-E6A0B8 8A6A
-E6A0B9 8DAA
-E6A0BC 8A69
-E6A0BD 8DCD
-E6A180 9E7B
-E6A181 8C85
-E6A182 8C6A
-E6A183 938D
-E6A184 FAE6
-E6A186 9E79
-E6A188 88C4
-E6A18D 9E7C
-E6A18E 9E7E
-E6A190 8BCB
-E6A191 8C4B
-E6A192 FAE3
-E6A193 8ABA
-E6A194 8B6A
-E6A199 9E82
-E6A19C 8DF7
-E6A19D 9691
-E6A19F 8E56
-E6A1A3 9E83
-E6A1A7 954F
-E6A1B4 9E8F
-E6A1B6 89B1
-E6A1B7 9E84
-E6A1BE 9E95
-E6A1BF 9E85
-E6A281 97C0
-E6A283 9E8C
-E6A285 947E
-E6A28D 9E94
-E6A28F 9E87
-E6A293 88B2
-E6A294 9E89
-E6A297 8D5B
-E6A29B 9E8B
-E6A29D 9E8A
-E6A29F 9E86
-E6A2A0 9E91
-E6A2A2 8FBD
-E6A2A6 9AEB
-E6A2A7 8CE6
-E6A2A8 979C
-E6A2AD 9E88
-E6A2AF 92F2
-E6A2B0 8A42
-E6A2B1 8DAB
-E6A2B3 9E80
-E6A2B5 9E90
-E6A2B6 8A81
-E6A2B9 9E8E
-E6A2BA 9E92
-E6A2BC 938E
-E6A384 8AFC
-E6A386 9EB0
-E6A388 FA64
-E6A389 96C7
-E6A38A 9E97
-E6A38B 8AFB
-E6A38D 9E9E
-E6A38F FAE7
-E6A392 965F
-E6A394 9E9F
-E6A395 9EA1
-E6A397 9EA5
-E6A398 9E99
-E6A39A 9249
-E6A39F 938F
-E6A3A0 9EA9
-E6A3A1 9E9C
-E6A3A3 9EA6
-E6A3A7 9EA0
-E6A3AE 9058
-E6A3AF 9EAA
-E6A3B2 90B1
-E6A3B9 9EA8
-E6A3BA 8ABB
-E6A480 986F
-E6A481 9E96
-E6A484 9EA4
-E6A485 88D6
-E6A488 9E98
-E6A48B 96B8
-E6A48C 9E9D
-E6A48D 9041
-E6A48E 92C5
-E6A48F 9E93
-E6A492 9EA3
-E6A499 909A
-E6A49A 9EAD
-E6A49B 8A91
-E6A49C 8C9F
-E6A4A1 9EAF
-E6A4A2 9E9A
-E6A4A3 9EAE
-E6A4A5 9EA7
-E6A4A6 9E9B
-E6A4A8 9EAB
-E6A4AA 9EAC
-E6A4B0 9EBD
-E6A4B4 93CC
-E6A4B6 9EA2
-E6A4B9 9EB9
-E6A4BD 9EBB
-E6A4BF 92D6
-E6A58A 976B
-E6A593 9596
-E6A594 9EB6
-E6A595 91C8
-E6A599 9EBC
-E6A59A 915E
-E6A59C 9EB3
-E6A59D 9EC0
-E6A59E 9EBF
-E6A5A0 93ED
-E6A5A1 9EBE
-E6A5A2 93E8
-E6A5A8 FAE9
-E6A5AA 9EC2
-E6A5AB 9EB5
-E6A5AD 8BC6
-E6A5AE 9EB8
-E6A5AF 8F7C
-E6A5B3 9480
-E6A5B4 9EBA
-E6A5B5 8BC9
-E6A5B7 9EB2
-E6A5B8 9EB4
-E6A5B9 9EB1
-E6A5BC 984F
-E6A5BD 8A79
-E6A5BE 9EB7
-E6A681 9EC1
-E6A682 8A54
-E6A68A 8DE5
-E6A68E 897C
-E6A691 9ED2
-E6A694 9850
-E6A695 9ED5
-E6A698 FAEB
-E6A69B 9059
-E6A69C 9ED4
-E6A6A0 9ED3
-E6A6A7 9ED0
-E6A6AE 9EC4
-E6A6B1 9EE1
-E6A6B2 9EC3
-E6A6B4 9ED6
-E6A6BB 9ECE
-E6A6BE 9EC9
-E6A6BF 9EC6
-E6A781 9EC7
-E6A783 9ECF
-E6A787 EAA0
-E6A78A 9ECC
-E6A78B 8D5C
-E6A78C 92C6
-E6A78D 9184
-E6A78E 9ECA
-E6A790 9EC5
-E6A793 9EC8
-E6A798 976C
-E6A799 968A
-E6A79D 9ECD
-E6A79E 9ED7
-E6A7A2 FAEC
-E6A7A7 9EDF
-E6A7A8 9ED8
-E6A7AB 9EE5
-E6A7AD 9EE3
-E6A7B2 9EDE
-E6A7B9 9EDD
-E6A7BB 92CE
-E6A7BD 9185
-E6A7BF 9EDB
-E6A882 9ED9
-E6A885 9EE0
-E6A88A 9EE6
-E6A88B 94F3
-E6A88C 9EEC
-E6A892 9EE7
-E6A893 9EEA
-E6A894 9EE4
-E6A897 9294
-E6A899 9557
-E6A89B 9EDA
-E6A89E 9EE2
-E6A89F 8FBE
-E6A8A1 96CD
-E6A8A2 9EF6
-E6A8A3 9EE9
-E6A8A9 8CA0
-E6A8AA 89A1
-E6A8AB 8A7E
-E6A8AE 9ED1
-E6A8B0 FAED
-E6A8B5 8FBF
-E6A8B6 9EEE
-E6A8B8 9EF5
-E6A8B9 8EF7
-E6A8BA 8A92
-E6A8BD 924D
-E6A984 9EEB
-E6A986 FAEF
-E6A987 9EF0
-E6A988 9EF4
-E6A98B 8BB4
-E6A998 8B6B
-E6A999 9EF2
-E6A99F 8B40
-E6A9A1 93C9
-E6A9A2 9EF1
-E6A9A6 9EF3
-E6A9AB FAEE
-E6A9B2 9EED
-E6A9B3 FAF0
-E6A9B8 9EEF
-E6A9BE FAF1
-E6A9BF 8A80
-E6AA80 9268
-E6AA84 9EFA
-E6AA8D 9EF8
-E6AA8E 8CE7
-E6AA90 9EF7
-E6AA97 9F40
-E6AA9C 9E77
-E6AAA0 9EF9
-E6AAA2 9EFB
-E6AAA3 9EFC
-E6AAAA 9F4B
-E6AAAC 9F47
-E6AAAE 9E8D
-E6AAB3 9F46
-E6AAB8 9F45
-E6AABB 9F42
-E6AB81 9EE8
-E6AB82 9F44
-E6AB83 9F43
-E6AB91 9F49
-E6AB93 9845
-E6AB9A 9F4C
-E6AB9B 8BF9
-E6AB9E 9F48
-E6AB9F 9F4A
-E6ABA2 FAF2
-E6ABA4 FAF3
-E6ABA8 94A5
-E6ABAA 9F4D
-E6ABBA 9F51
-E6ABBB 9F4E
-E6AC84 9793
-E6AC85 9F4F
-E6AC8A 9EDC
-E6AC92 9F52
-E6AC96 9F53
-E6AC9D 8954
-E6AC9F 9F55
-E6ACA0 8C87
-E6ACA1 8E9F
-E6ACA3 8BD3
-E6ACA7 89A2
-E6ACB2 977E
-E6ACB7 9F57
-E6ACB8 9F56
-E6ACB9 9F59
-E6ACBA 8B5C
-E6ACBD 8BD4
-E6ACBE 8ABC
-E6AD83 9F5C
-E6AD87 9F5B
-E6AD89 9F5D
-E6AD8C 89CC
-E6AD8E 9256
-E6AD90 9F5E
-E6AD93 8ABD
-E6AD94 9F60
-E6AD99 9F5F
-E6AD9B 9F61
-E6AD9F 9F62
-E6ADA1 9F63
-E6ADA2 8E7E
-E6ADA3 90B3
-E6ADA4 8D9F
-E6ADA6 9590
-E6ADA9 95E0
-E6ADAA 9863
-E6ADAF 8E95
-E6ADB3 8DCE
-E6ADB4 97F0
-E6ADB8 9F64
-E6ADB9 9F65
-E6ADBB 8E80
-E6ADBF 9F66
-E6AE80 9F67
-E6AE83 9F69
-E6AE84 9F68
-E6AE86 9677
-E6AE89 8F7D
-E6AE8A 8EEA
-E6AE8B 8E63
-E6AE8D 9F6A
-E6AE95 9F6C
-E6AE96 9042
-E6AE98 9F6B
-E6AE9E 9F6D
-E6AEA4 9F6E
-E6AEAA 9F6F
-E6AEAB 9F70
-E6AEAF 9F71
-E6AEB1 9F73
-E6AEB2 9F72
-E6AEB3 9F74
-E6AEB4 89A3
-E6AEB5 9269
-E6AEB7 9F75
-E6AEBA 8E45
-E6AEBB 8A6B
-E6AEBC 9F76
-E6AEBF 9361
-E6AF80 9ACA
-E6AF85 8B42
-E6AF86 9F77
-E6AF8B 9F78
-E6AF8D 95EA
-E6AF8E 9688
-E6AF92 93C5
-E6AF93 9F79
-E6AF94 94E4
-E6AF96 FAF4
-E6AF98 94F9
-E6AF9B 96D1
-E6AF9F 9F7A
-E6AFAB 9F7C
-E6AFAC 9F7B
-E6AFAF 9F7E
-E6AFB3 9F7D
-E6B088 9F81
-E6B08F 8E81
-E6B091 96AF
-E6B093 9F82
-E6B094 9F83
-E6B097 8B43
-E6B09B 9F84
-E6B0A3 9F86
-E6B0A4 9F85
-E6B0B4 9085
-E6B0B7 9558
-E6B0B8 8969
-E6B0BE 94C3
-E6B0BF FAF5
-E6B180 92F3
-E6B181 8F60
-E6B182 8B81
-E6B18E 94C4
-E6B190 8EAC
-E6B195 9F88
-E6B197 8ABE
-E6B19A 8998
-E6B19C FAF6
-E6B19D 93F0
-E6B19E 9F87
-E6B19F 8D5D
-E6B1A0 9272
-E6B1A2 9F89
-E6B1A8 9F91
-E6B1AA 9F8A
-E6B1AF FAF8
-E6B1B0 91BF
-E6B1B2 8B82
-E6B1B3 9F92
-E6B1BA 8C88
-E6B1BD 8B44
-E6B1BE 9F90
-E6B281 9F8E
-E6B282 9F8B
-E6B283 9780
-E6B286 FAF7
-E6B288 92BE
-E6B28C 93D7
-E6B28D 9F8C
-E6B290 9F94
-E6B292 9F93
-E6B293 8C42
-E6B296 89AB
-E6B299 8DB9
-E6B29A 9F8D
-E6B29B 9F8F
-E6B2A1 9676
-E6B2A2 91F2
-E6B2AB 9697
-E6B2AE 9F9C
-E6B2B1 9F9D
-E6B2B3 89CD
-E6B2B8 95A6
-E6B2B9 96FB
-E6B2BA 9F9F
-E6B2BB 8EA1
-E6B2BC 8FC0
-E6B2BD 9F98
-E6B2BE 9F9E
-E6B2BF 8988
-E6B381 8BB5
-E6B384 9F95
-E6B385 9F9A
-E6B389 90F2
-E6B38A 9491
-E6B38C 94E5
-E6B393 9F97
-E6B395 9640
-E6B397 9F99
-E6B399 9FA2
-E6B39A FAF9
-E6B39B 9FA0
-E6B39D 9F9B
-E6B3A1 9641
-E6B3A2 9467
-E6B3A3 8B83
-E6B3A5 9344
-E6B3A8 928D
-E6B3AA 9FA3
-E6B3AF 9FA1
-E6B3B0 91D7
-E6B3B1 9F96
-E6B3B3 896A
-E6B484 FAFA
-E6B48B 976D
-E6B48C 9FAE
-E6B492 9FAD
-E6B497 90F4
-E6B499 9FAA
-E6B49B 978C
-E6B49E 93B4
-E6B49F 9FA4
-E6B4A5 92C3
-E6B4A9 896B
-E6B4AA 8D5E
-E6B4AB 9FA7
-E6B4B2 8F46
-E6B4B3 9FAC
-E6B4B5 9FAB
-E6B4B6 9FA6
-E6B4B8 9FA9
-E6B4BB 8A88
-E6B4BD 9FA8
-E6B4BE 9468
-E6B581 97AC
-E6B584 8FF2
-E6B585 90F3
-E6B599 9FB4
-E6B59A 9FB2
-E6B59C 956C
-E6B5A3 9FAF
-E6B5A4 9FB1
-E6B5A6 8959
-E6B5A9 8D5F
-E6B5AA 9851
-E6B5AC 8A5C
-E6B5AE 9582
-E6B5AF FAFC
-E6B5B4 9781
-E6B5B7 8A43
-E6B5B8 905A
-E6B5B9 9FB3
-E6B685 9FB8
-E6B687 FAFB
-E6B688 8FC1
-E6B68C 974F
-E6B68E 9FB5
-E6B693 9FB0
-E6B695 9FB6
-E6B696 FB40
-E6B699 97DC
-E6B69B 9393
-E6B69C 93C0
-E6B6AC FB41
-E6B6AF 8A55
-E6B6B2 8974
-E6B6B5 9FBC
-E6B6B8 9FBF
-E6B6BC 97C1
-E6B780 9784
-E6B785 9FC6
-E6B786 9FC0
-E6B787 9FBD
-E6B78B 97D2
-E6B78C 9FC3
-E6B78F FB42
-E6B791 8F69
-E6B792 9FC5
-E6B795 9FCA
-E6B798 9391
-E6B799 9FC8
-E6B79E 9FC2
-E6B7A1 9257
-E6B7A4 9FC9
-E6B7A6 9FBE
-E6B7A8 9FC4
-E6B7AA 9FCB
-E6B7AB 88FA
-E6B7AC 9FC1
-E6B7AE 9FCC
-E6B7B1 905B
-E6B7B2 FB44
-E6B7B3 8F7E
-E6B7B5 95A3
-E6B7B7 8DAC
-E6B7B8 FB43
-E6B7B9 9FB9
-E6B7BA 9FC7
-E6B7BB 9359
-E6B7BC FB45
-E6B885 90B4
-E6B887 8A89
-E6B888 8DCF
-E6B889 8FC2
-E6B88A 9FBB
-E6B88B 8F61
-E6B893 8C6B
-E6B895 9FBA
-E6B899 9FD0
-E6B89A 8F8D
-E6B89B 8CB8
-E6B89D 9FDF
-E6B89F 9FD9
-E6B8A0 8B94
-E6B8A1 936E
-E6B8A3 9FD4
-E6B8A4 9FDD
-E6B8A5 88AD
-E6B8A6 8951
-E6B8A7 FB48
-E6B8A9 89B7
-E6B8AB 9FD6
-E6B8AC 91AA
-E6B8AD 9FCD
-E6B8AE 9FCF
-E6B8AF 8D60
-E6B8B8 9FE0
-E6B8B9 FB46
-E6B8BA 9FDB
-E6B8BC FB49
-E6B8BE 9FD3
-E6B983 9FDA
-E6B98A 96A9
-E6B98D 9FD8
-E6B98E 9FDC
-E6B996 8CCE
-E6B998 8FC3
-E6B99B 9258
-E6B99C FB47
-E6B99F 9FD2
-E6B9A7 974E
-E6B9AB 9FD5
-E6B9AE 9FCE
-E6B9AF 9392
-E6B9B2 9FD1
-E6B9B6 9FD7
-E6B9BE 9870
-E6B9BF 8EBC
-E6BA80 969E
-E6BA82 9FE1
-E6BA8C 94AC
-E6BA8F 9FED
-E6BA90 8CB9
-E6BA96 8F80
-E6BA98 9FE3
-E6BA9C 97AD
-E6BA9D 8D61
-E6BA9F 9FF0
-E6BAA2 88EC
-E6BAA5 9FEE
-E6BAAA 9FE2
-E6BAAF 9FE8
-E6BAB2 9FEA
-E6BAB6 976E
-E6BAB7 9FE5
-E6BABA 934D
-E6BABD 9FE7
-E6BABF FB4A
-E6BB82 9FEF
-E6BB84 9FE9
-E6BB85 96C5
-E6BB89 9FE4
-E6BB8B 8EA0
-E6BB8C 9FFC
-E6BB91 8A8A
-E6BB93 9FE6
-E6BB94 9FEB
-E6BB95 9FEC
-E6BB9D 91EA
-E6BB9E 91D8
-E6BBAC 9FF4
-E6BBAF 9FFA
-E6BBB2 9FF8
-E6BBB4 9348
-E6BBB7 E042
-E6BBB8 9FF5
-E6BBBE 9FF6
-E6BBBF 9FDE
-E6BC81 8B99
-E6BC82 9559
-E6BC86 8EBD
-E6BC89 8D97
-E6BC8F 9852
-E6BC91 9FF2
-E6BC93 E041
-E6BC94 8989
-E6BC95 9186
-E6BCA0 9499
-E6BCA2 8ABF
-E6BCA3 97F8
-E6BCAB 969F
-E6BCAC 92D0
-E6BCB1 9FF9
-E6BCB2 9FFB
-E6BCB8 9151
-E6BCBE E040
-E6BCBF 9FF7
-E6BD81 9FF1
-E6BD85 8AC1
-E6BD94 8C89
-E6BD98 E04E
-E6BD9B E049
-E6BD9C 90F6
-E6BD9F 8A83
-E6BDA4 8F81
-E6BDA6 E052
-E6BDAD E04B
-E6BDAE 92AA
-E6BDAF E048
-E6BDB0 92D7
-E6BDB4 E06B
-E6BDB8 E045
-E6BDBA E044
-E6BDBC E04D
-E6BE80 E047
-E6BE81 E046
-E6BE82 E04C
-E6BE84 909F
-E6BE86 E043
-E6BE88 FB4B
-E6BE8E E04F
-E6BE91 E050
-E6BE97 8AC0
-E6BEA1 E055
-E6BEA3 E054
-E6BEA4 E056
-E6BEAA E059
-E6BEB1 9362
-E6BEB3 E053
-E6BEB5 FB4C
-E6BEB9 E057
-E6BF80 8C83
-E6BF81 91F7
-E6BF82 E051
-E6BF83 945A
-E6BF86 E058
-E6BF94 E05D
-E6BF95 E05B
-E6BF98 E05E
-E6BF9B E061
-E6BF9F E05A
-E6BFA0 8D8A
-E6BFA1 9447
-E6BFA4 9FB7
-E6BFAB 9794
-E6BFAC E05C
-E6BFAE E060
-E6BFAF 91F3
-E6BFB1 E05F
-E6BFB3 E04A
-E6BFB5 FB4D
-E6BFB6 E889
-E6BFBA E064
-E6BFBE E068
-E78081 E066
-E78085 FB4E
-E78087 FB4F
-E78089 E062
-E7808B E063
-E7808F E067
-E78091 E065
-E78095 956D
-E78098 E06D
-E7809A E06A
-E7809B E069
-E7809D E06C
-E7809E 93D2
-E7809F E06E
-E780A6 9295
-E780A7 91EB
-E780A8 FB50
-E780AC 90A3
-E780B0 E06F
-E780B2 E071
-E780BE E070
-E7818C 9FF3
-E78191 E072
-E78198 93E5
-E781A3 E073
-E781AB 89CE
-E781AF 9394
-E781B0 8A44
-E781B8 8B84
-E781BC 8EDC
-E781BD 8DD0
-E78285 FB51
-E78289 9846
-E7828A 9086
-E7828E 898A
-E78292 E075
-E78299 E074
-E782AB FB52
-E782AC E078
-E782AD 9259
-E782AE E07B
-E782AF E076
-E782B3 E07A
-E782B8 E079
-E782B9 935F
-E782BA 88D7
-E782BB FA62
-E78388 97F3
-E7838B E07D
-E7838F 8947
-E78399 E080
-E7839D E07E
-E7839F E07C
-E783B1 E077
-E783B9 9642
-E783BD E082
-E78484 FB54
-E78489 E081
-E7848F FB53
-E78494 898B
-E78499 E084
-E7849A 95B0
-E7849C E083
-E784A1 96B3
-E784A6 8FC5
-E784B6 9152
-E784BC 8FC4
-E78586 FB56
-E78587 FB57
-E78589 97F9
-E7858C E08A
-E7858E 90F7
-E78595 E086
-E78596 E08B
-E78599 898C
-E7859C FB55
-E785A2 E089
-E785A4 9481
-E785A5 E085
-E785A6 E088
-E785A7 8FC6
-E785A9 94CF
-E785AC E08C
-E785AE 8ECF
-E785BD 90F8
-E78684 E08F
-E78688 E087
-E7868A 8C46
-E7868F E08D
-E78694 976F
-E78695 E090
-E78699 EAA4
-E7869F 8F6E
-E786A8 E091
-E786AC E092
-E786B1 944D
-E786B9 E094
-E786BE E095
-E78781 FB59
-E78783 9452
-E78788 9395
-E78789 E097
-E7878E E099
-E78790 97D3
-E78792 E096
-E78794 E098
-E78795 898D
-E78797 E093
-E7879F 9A7A
-E787A0 E09A
-E787A5 9187
-E787A6 8E57
-E787A7 E09C
-E787AC E09B
-E787AD 9043
-E787AE 99D7
-E787B5 E09D
-E787B9 E09F
-E787BB E08E
-E787BC E09E
-E787BE FB5A
-E787BF E0A0
-E78886 949A
-E7888D E0A1
-E78890 E0A2
-E7889B E0A3
-E788A8 E0A4
-E788AA 92DC
-E788AC E0A6
-E788AD E0A5
-E788B0 E0A7
-E788B2 E0A8
-E788B5 8EDD
-E788B6 9583
-E788BA 96EA
-E788BB E0A9
-E788BC E0AA
-E788BD 9175
-E788BE 8EA2
-E788BF E0AB
-E78980 E0AC
-E78986 E0AD
-E78987 95D0
-E78988 94C5
-E7898B E0AE
-E7898C 9476
-E78992 92AB
-E78998 E0AF
-E78999 89E5
-E7899B 8B8D
-E7899D 96C4
-E7899F 96B4
-E789A1 89B2
-E789A2 9853
-E789A7 9671
-E789A9 95A8
-E789B2 90B5
-E789B4 E0B0
-E789B9 93C1
-E789BD 8CA1
-E789BE E0B1
-E78A80 8DD2
-E78A81 E0B3
-E78A82 E0B2
-E78A87 E0B4
-E78A92 E0B5
-E78A96 E0B6
-E78AA0 8B5D
-E78AA2 E0B7
-E78AA7 E0B8
-E78AAC 8CA2
-E78AAF 94C6
-E78AB1 FB5B
-E78AB2 E0BA
-E78AB6 8FF3
-E78AB9 E0B9
-E78ABE FB5C
-E78B82 8BB6
-E78B83 E0BB
-E78B84 E0BD
-E78B86 E0BC
-E78B8E E0BE
-E78B90 8CCF
-E78B92 E0BF
-E78B97 8BE7
-E78B99 915F
-E78B9B 8D9D
-E78BA0 E0C1
-E78BA1 E0C2
-E78BA2 E0C0
-E78BA9 8EEB
-E78BAC 93C6
-E78BAD 8BB7
-E78BB7 E0C4
-E78BB8 924B
-E78BB9 E0C3
-E78BBC 9854
-E78BBD 9482
-E78C8A E0C7
-E78C96 E0C9
-E78C97 E0C6
-E78C9B 96D2
-E78C9C E0C8
-E78C9D E0CA
-E78C9F 97C2
-E78CA4 FB5D
-E78CA5 E0CE
-E78CA9 E0CD
-E78CAA 9296
-E78CAB 944C
-E78CAE 8CA3
-E78CAF E0CC
-E78CB4 E0CB
-E78CB6 9750
-E78CB7 9751
-E78CBE E0CF
-E78CBF 898E
-E78D84 8D96
-E78D85 8E82
-E78D8E E0D0
-E78D8F E0D1
-E78D97 E0D3
-E78DA3 8F62
-E78DA8 E0D5
-E78DAA E0D4
-E78DB0 E0D6
-E78DB2 8A6C
-E78DB5 E0D8
-E78DB7 FB5F
-E78DB8 E0D7
-E78DBA E0DA
-E78DBB E0D9
-E78E84 8CBA
-E78E87 97A6
-E78E89 8BCA
-E78E8B 89A4
-E78E96 8BE8
-E78EA9 8ADF
-E78EB2 97E6
-E78EB3 E0DC
-E78EBB E0DE
-E78EBD FB60
-E78F80 E0DF
-E78F82 89CF
-E78F88 E0DB
-E78F89 FB61
-E78F8A 8E58
-E78F8D 92BF
-E78F8E E0DD
-E78F92 FB64
-E78F96 FB62
-E78F9E E0E2
-E78FA0 8EEC
-E78FA3 FB63
-E78FA5 E0E0
-E78FAA 8C5D
-E78FAD 94C7
-E78FAE E0E1
-E78FB1 E0FC
-E78FB5 FB66
-E78FB8 E0E7
-E78FBE 8CBB
-E79083 8B85
-E79085 E0E4
-E79086 979D
-E79087 FB65
-E79089 97AE
-E790A2 91F4
-E790A5 E0E6
-E790A6 FB67
-E790A9 FB69
-E790AA FB68
-E790AE FB6A
-E790B2 E0E8
-E790B3 97D4
-E790B4 8BD5
-E790B5 94FA
-E790B6 9469
-E790BA E0E9
-E790BF E0EB
-E79181 E0EE
-E79195 E0EA
-E79199 E0ED
-E7919A 8CE8
-E7919B 896C
-E7919C E0EF
-E7919E 9090
-E7919F E0EC
-E791A0 97DA
-E791A2 FB6B
-E791A3 E0F2
-E791A4 EAA2
-E791A9 E0F0
-E791AA E0F3
-E791AF E0E5
-E791B0 E0F1
-E791B3 8DBA
-E791B6 E0F4
-E791BE E0F5
-E79283 979E
-E79289 FB6C
-E7928B E0F6
-E7929E E0F7
-E7929F FB6D
-E792A2 E0E3
-E792A7 E0F8
-E792B0 8AC2
-E792BD 8EA3
-E7938A E0F9
-E7938F E0FA
-E79394 E0FB
-E7939C 895A
-E793A0 E140
-E793A2 955A
-E793A3 E141
-E793A6 8AA2
-E793A7 E142
-E793A9 E143
-E793AE E144
-E793B0 E146
-E793B1 E147
-E793B2 E145
-E793B6 9572
-E793B7 E149
-E793B8 E148
-E79481 FB6E
-E79483 E14B
-E79484 E14A
-E79485 E14C
-E7948C E14D
-E7948D E14F
-E7948E E14E
-E79491 8D99
-E79493 E151
-E79495 E150
-E79498 8AC3
-E7949A 9072
-E7949C 935B
-E7949E E152
-E7949F 90B6
-E794A3 8E59
-E794A5 8999
-E794A6 E153
-E794A8 9770
-E794AB 95E1
-E794AC E154
-E794AF FAA8
-E794B0 9363
-E794B1 9752
-E794B2 8D62
-E794B3 905C
-E794B7 926A
-E794B8 99B2
-E794BA 92AC
-E794BB 89E6
-E794BC E155
-E79584 E156
-E79586 E15B
-E79589 E159
-E7958A E158
-E7958B 9DC0
-E7958C 8A45
-E7958D E157
-E7958F 88D8
-E79591 94A8
-E79594 94C8
-E79599 97AF
-E7959A E15C
-E7959B E15A
-E7959C 927B
-E7959D 90A4
-E795A0 94A9
-E795A2 954C
-E795A4 E15E
-E795A5 97AA
-E795A6 8C6C
-E795A7 E15F
-E795A9 E15D
-E795AA 94D4
-E795AB E160
-E795AD E161
-E795AF FB6F
-E795B0 88D9
-E795B3 8FF4
-E795B4 E166
-E795B6 E163
-E795B7 93EB
-E795B8 E162
-E795BF 8B45
-E79682 E169
-E79686 E164
-E79687 E165
-E79689 E168
-E7968A E167
-E7968B 9544
-E7968E 9161
-E7968F 9160
-E79691 8B5E
-E79694 E16A
-E7969A E16B
-E7969D E16C
-E796A3 E16E
-E796A5 E16D
-E796AB 8975
-E796B1 E176
-E796B2 94E6
-E796B3 E170
-E796B5 E172
-E796B8 E174
-E796B9 905D
-E796BC E175
-E796BD E173
-E796BE 8EBE
-E79782 E16F
-E79783 E171
-E79785 9561
-E79787 8FC7
-E7978A E178
-E7978D E177
-E79792 E179
-E79794 8EA4
-E79795 8DAD
-E79798 9397
-E79799 E17A
-E7979B 92C9
-E7979E E17C
-E797A2 979F
-E797A3 E17B
-E797A9 9189
-E797B0 E182
-E797B2 E184
-E797B3 E185
-E797B4 9273
-E797BA E183
-E797BC E180
-E797BE E17D
-E797BF E17E
-E79881 E181
-E79889 E188
-E7988B E186
-E7988D E187
-E7989F E189
-E798A0 E18B
-E798A1 E18C
-E798A2 E18D
-E798A4 E18E
-E798A7 E18A
-E798B0 E190
-E798B4 E18F
-E798BB E191
-E79982 97C3
-E79986 E194
-E79987 E192
-E79988 E193
-E7998C 8AE0
-E79992 96FC
-E79996 95C8
-E79998 E196
-E7999C E195
-E799A1 E197
-E799A2 E198
-E799A7 E19C
-E799A8 E199
-E799A9 E19A
-E799AA E19B
-E799AC E19D
-E799B0 E19E
-E799B2 E19F
-E799B6 E1A0
-E799B8 E1A1
-E799BA 94AD
-E799BB 936F
-E799BC E1A2
-E799BD 9492
-E799BE 9553
-E79A80 E1A3
-E79A82 FB70
-E79A83 E1A4
-E79A84 9349
-E79A86 8A46
-E79A87 8D63
-E79A88 E1A5
-E79A8B E1A6
-E79A8E E1A7
-E79A90 8E48
-E79A93 E1A9
-E79A96 E1A8
-E79A99 E1AA
-E79A9A E1AB
-E79A9B FB73
-E79A9C FB71
-E79A9E FB72
-E79AA6 FB74
-E79AAE 94E7
-E79AB0 E1AC
-E79AB4 E1AD
-E79AB7 EA89
-E79AB8 E1AE
-E79AB9 E1AF
-E79ABA E1B0
-E79ABF 8E4D
-E79B82 E1B1
-E79B83 9475
-E79B86 967E
-E79B88 896D
-E79B8A 8976
-E79B8D E1B2
-E79B92 E1B4
-E79B96 E1B3
-E79B97 9390
-E79B9B 90B7
-E79B9C 9F58
-E79B9E E1B5
-E79B9F 96BF
-E79BA1 E1B6
-E79BA3 8AC4
-E79BA4 94D5
-E79BA5 E1B7
-E79BA7 E1B8
-E79BAA E1B9
-E79BAE 96DA
-E79BB2 96D3
-E79BB4 92BC
-E79BB8 918A
-E79BBB E1BB
-E79BBE 8F82
-E79C81 8FC8
-E79C84 E1BE
-E79C87 E1BD
-E79C88 E1BC
-E79C89 94FB
-E79C8B 8AC5
-E79C8C 8CA7
-E79C9B E1C4
-E79C9E E1C1
-E79C9F 905E
-E79CA0 96B0
-E79CA4 E1C0
-E79CA5 E1C2
-E79CA6 E1C3
-E79CA9 E1BF
-E79CB7 E1C5
-E79CB8 E1C6
-E79CBA 92AD
-E79CBC 8AE1
-E79D80 9285
-E79D86 FB76
-E79D87 E1C7
-E79D9A E1C8
-E79D9B E1CB
-E79DA1 9087
-E79DA3 93C2
-E79DA5 E1CC
-E79DA6 9672
-E79DA8 E1C9
-E79DAB E1CA
-E79DB9 E1CF
-E79DBE E1CE
-E79DBF E1CD
-E79E8B E1D1
-E79E8E E1D0
-E79E91 E1D2
-E79E9E E1D4
-E79EA0 E1D3
-E79EA5 95CB
-E79EAC 8F75
-E79EAD 97C4
-E79EB0 E1D5
-E79EB3 93B5
-E79EB6 E1D6
-E79EB9 E1D7
-E79EBB E1DB
-E79EBC E1D9
-E79EBD E1DA
-E79EBF E1D8
-E79F87 E1DC
-E79F8D E1DD
-E79F97 E1DE
-E79F9A E1DF
-E79F9B 96B5
-E79F9C E1E0
-E79FA2 96EE
-E79FA3 E1E1
-E79FA5 926D
-E79FA7 948A
-E79FA9 8BE9
-E79FAD 925A
-E79FAE E1E2
-E79FAF 8BB8
-E79FB3 90CE
-E79FBC E1E3
-E7A082 8DBB
-E7A08C E1E4
-E7A092 E1E5
-E7A094 8CA4
-E7A095 8DD3
-E7A0A0 E1E7
-E7A0A1 FB78
-E7A0A5 9375
-E7A0A6 8DD4
-E7A0A7 8B6D
-E7A0B2 9643
-E7A0B4 946A
-E7A0BA 9376
-E7A0BF 8D7B
-E7A185 E1E9
-E7A18E FB79
-E7A19D 8FC9
-E7A1A4 FB7A
-E7A1AB 97B0
-E7A1AC 8D64
-E7A1AF 8CA5
-E7A1B2 94A1
-E7A1B4 E1EB
-E7A1BA FB7B
-E7A1BC E1ED
-E7A281 8CE9
-E7A286 E1EC
-E7A287 92F4
-E7A28C E1EF
-E7A28D 8A56
-E7A28E E1EA
-E7A291 94E8
-E7A293 894F
-E7A295 8DEA
-E7A297 9871
-E7A29A E1EE
-E7A2A3 E1F0
-E7A2A7 95C9
-E7A2A9 90D7
-E7A2AA E1F2
-E7A2AF E1F3
-E7A2B5 E1F1
-E7A2BA 8A6D
-E7A2BC E1F9
-E7A2BE E1F8
-E7A381 8EA5
-E7A385 E1FA
-E7A386 E1F5
-E7A38A E1FB
-E7A38B E1F6
-E7A390 94D6
-E7A391 E1F4
-E7A394 E1F7
-E7A39A E241
-E7A3A7 E240
-E7A3A8 9681
-E7A3AC E1FC
-E7A3AF 88E9
-E7A3B4 E243
-E7A3BD E242
-E7A481 8FCA
-E7A487 E244
-E7A48E 9162
-E7A491 E246
-E7A492 E245
-E7A499 E247
-E7A4A6 E1E6
-E7A4AA E1E8
-E7A4AB E249
-E7A4AC E248
-E7A4B0 FB7C
-E7A4BA 8EA6
-E7A4BC 97E7
-E7A4BE 8ED0
-E7A580 E24A
-E7A581 8C56
-E7A587 8B5F
-E7A588 8B46
-E7A589 8E83
-E7A590 9753
-E7A593 E250
-E7A595 E24F
-E7A596 9163
-E7A597 E24C
-E7A59A E24E
-E7A59D 8F6A
-E7A59E 905F
-E7A59F E24D
-E7A5A0 E24B
-E7A5A2 9449
-E7A5A5 8FCB
-E7A5A8 955B
-E7A5AD 8DD5
-E7A5B7 9398
-E7A5BA E251
-E7A5BF E252
-E7A680 E268
-E7A681 8BD6
-E7A684 985C
-E7A685 9154
-E7A68A E253
-E7A68D 89D0
-E7A68E 92F5
-E7A68F 959F
-E7A694 FB81
-E7A69B FB83
-E7A69D E254
-E7A6A6 8B9A
-E7A6A7 E255
-E7A6AA E257
-E7A6AE E258
-E7A6B0 9448
-E7A6B3 E259
-E7A6B9 E25A
-E7A6BA E25B
-E7A6BD 8BD7
-E7A6BE 89D1
-E7A6BF 93C3
-E7A780 8F47
-E7A781 8E84
-E7A789 E25C
-E7A78B 8F48
-E7A791 89C8
-E7A792 9562
-E7A795 E25D
-E7A798 94E9
-E7A79F 9164
-E7A7A1 E260
-E7A7A3 E261
-E7A7A4 9489
-E7A7A6 9060
-E7A7A7 E25E
-E7A7A9 9281
-E7A7AC E25F
-E7A7B0 8FCC
-E7A7BB 88DA
-E7A880 8B48
-E7A888 E262
-E7A88B 92F6
-E7A88D E263
-E7A88E 90C5
-E7A894 96AB
-E7A897 9542
-E7A898 E264
-E7A899 E265
-E7A89A 9274
-E7A89C 97C5
-E7A89F E267
-E7A8A0 E266
-E7A8AE 8EED
-E7A8B1 E269
-E7A8B2 88EE
-E7A8B7 E26C
-E7A8BB E26A
-E7A8BC 89D2
-E7A8BD 8C6D
-E7A8BE E26B
-E7A8BF 8D65
-E7A980 8D92
-E7A982 95E4
-E7A983 E26D
-E7A986 9673
-E7A989 E26F
-E7A98D 90CF
-E7A98E 896E
-E7A98F 89B8
-E7A990 88AA
-E7A997 E26E
-E7A9A1 E270
-E7A9A2 E271
-E7A9A3 8FF5
-E7A9A9 E272
-E7A9AB 8A6E
-E7A9B0 E274
-E7A9B4 8C8A
-E7A9B6 8B86
-E7A9B9 E275
-E7A9BA 8BF3
-E7A9BD E276
-E7A9BF 90FA
-E7AA81 93CB
-E7AA83 90DE
-E7AA84 8DF3
-E7AA88 E277
-E7AA92 9282
-E7AA93 918B
-E7AA95 E279
-E7AA96 E27B
-E7AA97 E278
-E7AA98 E27A
-E7AA9F 8C41
-E7AAA9 E27C
-E7AAAA 8C45
-E7AAAE 8B87
-E7AAAF 9771
-E7AAB0 E27E
-E7AAB6 E280
-E7AABA 894D
-E7AABF E283
-E7AB83 8A96
-E7AB84 E282
-E7AB85 E281
-E7AB87 E285
-E7AB88 E27D
-E7AB8A E286
-E7AB8B 97A7
-E7AB8D E287
-E7AB8F E288
-E7AB91 FB84
-E7AB92 9AF2
-E7AB93 E28A
-E7AB95 E289
-E7AB99 E28B
-E7AB9A E28C
-E7AB9C 97B3
-E7AB9D E28D
-E7AB9F E8ED
-E7ABA0 8FCD
-E7ABA1 E28E
-E7ABA2 E28F
-E7ABA3 8F76
-E7ABA5 93B6
-E7ABA6 E290
-E7ABA7 FB85
-E7ABAA 9247
-E7ABAB FB87
-E7ABAD E291
-E7ABAF 925B
-E7ABB0 E292
-E7ABB6 8BA3
-E7ABB8 995E
-E7ABB9 927C
-E7ABBA 8EB1
-E7ABBF 8AC6
-E7AC82 E293
-E7AC84 E2A0
-E7AC86 E296
-E7AC88 8B88
-E7AC8A E295
-E7AC8B E2A2
-E7AC8F E294
-E7AC91 8FCE
-E7AC98 E298
-E7AC99 E299
-E7AC9B 934A
-E7AC9E E29A
-E7ACA0 8A7D
-E7ACA5 9079
-E7ACA6 9584
-E7ACA8 E29C
-E7ACAC 91E6
-E7ACB3 E297
-E7ACB5 E29B
-E7ACB6 E29D
-E7ACB9 8DF9
-E7AD85 E2A4
-E7AD86 954D
-E7AD88 94A4
-E7AD89 9399
-E7AD8B 8BD8
-E7AD8C E2A3
-E7AD8D E2A1
-E7AD8F 94B3
-E7AD90 E29E
-E7AD91 927D
-E7AD92 939B
-E7AD94 939A
-E7AD96 8DF4
-E7AD9D E2B6
-E7ADA5 E2A6
-E7ADA7 E2A8
-E7ADAC E2AB
-E7ADAE E2AC
-E7ADB0 E2A9
-E7ADB1 E2AA
-E7ADB4 E2A7
-E7ADB5 E2A5
-E7ADBA E29F
-E7AE86 95CD
-E7AE87 89D3
-E7AE8B E2B3
-E7AE8D E2B0
-E7AE8F E2B5
-E7AE92 E2B4
-E7AE94 9493
-E7AE95 96A5
-E7AE97 8E5A
-E7AE98 E2AE
-E7AE99 E2B7
-E7AE9A E2B2
-E7AE9C E2B1
-E7AE9D E2AD
-E7AE9E FB88
-E7AE9F E2AF
-E7AEA1 8AC7
-E7AEAA 925C
-E7AEAD 90FB
-E7AEB1 94A0
-E7AEB4 E2BC
-E7AEB8 94A2
-E7AF80 90DF
-E7AF81 E2B9
-E7AF84 94CD
-E7AF86 E2BD
-E7AF87 95D1
-E7AF89 927A
-E7AF8B E2B8
-E7AF8C E2BA
-E7AF8F E2BB
-E7AF9D E2BE
-E7AFA0 8EC2
-E7AFA4 93C4
-E7AFA5 E2C3
-E7AFA6 E2C2
-E7AFA9 E2BF
-E7AFAD 9855
-E7AFB3 E2C8
-E7AFB6 E2CC
-E7AFB7 E2C9
-E7B080 E2C5
-E7B087 E2C6
-E7B08D E2CB
-E7B091 E2C0
-E7B092 99D3
-E7B093 E2C7
-E7B094 E2C1
-E7B097 E2CA
-E7B09F E2D0
-E7B0A1 8AC8
-E7B0A3 E2CD
-E7B0A7 E2CE
-E7B0AA E2CF
-E7B0AB E2D2
-E7B0B7 E2D1
-E7B0B8 94F4
-E7B0BD E2D3
-E7B0BE 97FA
-E7B0BF 95EB
-E7B180 E2D8
-E7B183 E2D5
-E7B18C E2D4
-E7B18D 90D0
-E7B18F E2D7
-E7B190 E2D9
-E7B194 E2D6
-E7B196 E2DD
-E7B198 E2DA
-E7B19F E2DB
-E7B1A0 E2C4
-E7B1A4 E2DC
-E7B1A5 E2DE
-E7B1AC E2DF
-E7B1B3 95C4
-E7B1B5 E2E0
-E7B1BE 96E0
-E7B281 8BCC
-E7B282 8C48
-E7B283 E2E1
-E7B289 95B2
-E7B28B 9088
-E7B28D 96AE
-E7B290 E2E2
-E7B292 97B1
-E7B295 9494
-E7B297 9165
-E7B298 9453
-E7B29B 8F6C
-E7B29F 88BE
-E7B2A1 E2E7
-E7B2A2 E2E5
-E7B2A4 E2E3
-E7B2A5 8A9F
-E7B2A7 8FCF
-E7B2A8 E2E8
-E7B2AB E2E6
-E7B2AD E2E4
-E7B2AE E2EC
-E7B2B1 E2EB
-E7B2B2 E2EA
-E7B2B3 E2E9
-E7B2B9 E2ED
-E7B2BD E2EE
-E7B2BE 90B8
-E7B380 E2EF
-E7B382 E2F1
-E7B385 E2F0
-E7B38A 8CD0
-E7B38E 9157
-E7B392 E2F3
-E7B396 939C
-E7B398 E2F2
-E7B39C E2F4
-E7B39E 95B3
-E7B39F 918C
-E7B3A0 8D66
-E7B3A2 E2F5
-E7B3A7 97C6
-E7B3AF E2F7
-E7B3B2 E2F8
-E7B3B4 E2F9
-E7B3B6 E2FA
-E7B3B8 8E85
-E7B3BA E2FB
-E7B3BB 8C6E
-E7B3BE 8B8A
-E7B480 8B49
-E7B482 E340
-E7B484 96F1
-E7B485 8D67
-E7B486 E2FC
-E7B48A E343
-E7B48B 96E4
-E7B48D 945B
-E7B490 9552
-E7B494 8F83
-E7B495 E342
-E7B497 8ED1
-E7B498 8D68
-E7B499 8E86
-E7B49A 8B89
-E7B49B 95B4
-E7B49C E341
-E7B4A0 9166
-E7B4A1 9661
-E7B4A2 8DF5
-E7B4AB 8E87
-E7B4AC 92DB
-E7B4AE E346
-E7B4AF 97DD
-E7B4B0 8DD7
-E7B4B2 E347
-E7B4B3 9061
-E7B4B5 E349
-E7B4B9 8FD0
-E7B4BA 8DAE
-E7B4BF E348
-E7B582 8F49
-E7B583 8CBC
-E7B584 9167
-E7B585 E344
-E7B586 E34A
-E7B588 FB8A
-E7B58B E345
-E7B58C 8C6F
-E7B58E E34D
-E7B58F E351
-E7B590 8C8B
-E7B596 E34C
-E7B59B E355
-E7B59C FB8B
-E7B59E 8D69
-E7B5A1 978D
-E7B5A2 88BA
-E7B5A3 E352
-E7B5A6 8B8B
-E7B5A8 E34F
-E7B5AE E350
-E7B5B1 939D
-E7B5B2 E34E
-E7B5B3 E34B
-E7B5B5 8A47
-E7B5B6 90E2
-E7B5B9 8CA6
-E7B5BD E357
-E7B689 E354
-E7B68F E356
-E7B693 E353
-E7B699 8C70
-E7B69A 91B1
-E7B69B E358
-E7B69C 918E
-E7B69F E365
-E7B6A0 FB8D
-E7B6A2 E361
-E7B6A3 E35B
-E7B6AB E35F
-E7B6AC 8EF8
-E7B6AD 88DB
-E7B6AE E35A
-E7B6AF E362
-E7B6B0 E366
-E7B6B1 8D6A
-E7B6B2 96D4
-E7B6B4 92D4
-E7B6B5 E35C
-E7B6B7 FB8C
-E7B6B8 E364
-E7B6BA E359
-E7B6BB 925D
-E7B6BD E35E
-E7B6BE 88BB
-E7B6BF 96C8
-E7B787 E35D
-E7B78A 8BD9
-E7B78B 94EA
-E7B78F 918D
-E7B791 97CE
-E7B792 8F8F
-E7B795 E38E
-E7B796 FB8E
-E7B798 E367
-E7B79A 90FC
-E7B79C E363
-E7B79D E368
-E7B79E E36A
-E7B7A0 92F7
-E7B7A1 E36D
-E7B7A4 E369
-E7B7A8 95D2
-E7B7A9 8AC9
-E7B7AC 96C9
-E7B7AF 88DC
-E7B7B2 E36C
-E7B7B4 97FB
-E7B7BB E36B
-E7B881 898F
-E7B884 93EA
-E7B885 E36E
-E7B889 E375
-E7B88A E36F
-E7B88B E376
-E7B892 E372
-E7B89B 949B
-E7B89E 8EC8
-E7B89F E374
-E7B8A1 E371
-E7B8A2 E377
-E7B8A3 E370
-E7B8A6 8F63
-E7B8AB 9644
-E7B8AE 8F6B
-E7B8B1 E373
-E7B8B2 E380
-E7B8B5 E37B
-E7B8B7 E37E
-E7B8B9 E37C
-E7B8BA E381
-E7B8BB E37A
-E7B8BD E360
-E7B8BE 90D1
-E7B981 94C9
-E7B983 E37D
-E7B986 E378
-E7B98A 9140
-E7B98B 8C71
-E7B98D 8F4A
-E7B992 FB8F
-E7B994 9044
-E7B995 9155
-E7B996 E384
-E7B999 E386
-E7B99A E387
-E7B99D E383
-E7B99E E385
-E7B9A6 E379
-E7B9A7 E382
-E7B9A9 E38A
-E7B9AA E389
-E7B9AD 969A
-E7B9B0 8C4A
-E7B9B9 E388
-E7B9BB E38C
-E7B9BC E38B
-E7B9BD E38F
-E7B9BF E391
-E7BA82 8E5B
-E7BA83 E38D
-E7BA88 E392
-E7BA89 E393
-E7BA8A FA5C
-E7BA8C E394
-E7BA8E E39A
-E7BA8F 935A
-E7BA90 E396
-E7BA92 E395
-E7BA93 E397
-E7BA94 E398
-E7BA96 E399
-E7BA9B E39B
-E7BA9C E39C
-E7BCB6 8ACA
-E7BCB8 E39D
-E7BCBA E39E
-E7BD85 E39F
-E7BD87 FB90
-E7BD8C E3A0
-E7BD8D E3A1
-E7BD8E E3A2
-E7BD90 E3A3
-E7BD91 E3A4
-E7BD94 E3A6
-E7BD95 E3A5
-E7BD98 E3A7
-E7BD9F E3A8
-E7BDA0 E3A9
-E7BDA7 E3AC
-E7BDA8 E3AA
-E7BDA9 E3AB
-E7BDAA 8DDF
-E7BDAB 8C72
-E7BDAE 9275
-E7BDB0 94B1
-E7BDB2 8F90
-E7BDB5 946C
-E7BDB7 94EB
-E7BDB8 E3AD
-E7BDB9 9CEB
-E7BE82 E3AE
-E7BE83 E3B0
-E7BE85 9785
-E7BE86 E3AF
-E7BE87 E3B2
-E7BE88 E3B1
-E7BE8A 9772
-E7BE8C E3B3
-E7BE8E 94FC
-E7BE94 E3B4
-E7BE9A E3B7
-E7BE9D E3B6
-E7BE9E E3B5
-E7BEA1 FB91
-E7BEA3 E3B8
-E7BEA4 8C51
-E7BEA8 9141
-E7BEA9 8B60
-E7BEAE E3BC
-E7BEAF E3B9
-E7BEB2 E3BA
-E7BEB6 E3BD
-E7BEB8 E3BE
-E7BEB9 E3BB
-E7BEBD 8948
-E7BF81 89A5
-E7BF85 E3C0
-E7BF86 E3C1
-E7BF8A E3C2
-E7BF8C 9782
-E7BF92 8F4B
-E7BF94 E3C4
-E7BF95 E3C3
-E7BFA0 9089
-E7BFA1 E3C5
-E7BFA6 E3C6
-E7BFA9 E3C7
-E7BFAB 8AE3
-E7BFB0 8ACB
-E7BFB3 E3C8
-E7BFB9 E3C9
-E7BFBB 967C
-E7BFBC 9783
-E88080 9773
-E88081 9856
-E88083 8D6C
-E88084 E3CC
-E88085 8ED2
-E88086 E3CB
-E8808B E3CD
-E8808C 8EA7
-E88090 91CF
-E88092 E3CE
-E88095 8D6B
-E88097 96D5
-E88098 E3CF
-E88099 E3D0
-E8809C E3D1
-E880A1 E3D2
-E880A8 E3D3
-E880B3 8EA8
-E880B6 96EB
-E880BB E3D5
-E880BD 925E
-E880BF E3D4
-E88186 E3D7
-E8818A E3D6
-E88192 E3D8
-E88196 90B9
-E88198 E3D9
-E8819A E3DA
-E8819E 95B7
-E8819F E3DB
-E881A1 918F
-E881A2 E3DC
-E881A8 E3DD
-E881AF 97FC
-E881B0 E3E0
-E881B2 E3DF
-E881B3 E3DE
-E881B4 92AE
-E881B6 E3E1
-E881B7 9045
-E881B9 E3E2
-E881BD E3E3
-E881BE 9857
-E881BF E3E4
-E88284 E3E5
-E88285 E3E7
-E88286 E3E6
-E88287 94A3
-E88289 93F7
-E8828B 985D
-E8828C 94A7
-E88293 E3E9
-E88296 8FD1
-E88298 9549
-E8829A E3EA
-E8829B E3E8
-E8829D 8ACC
-E882A1 8CD2
-E882A2 8E88
-E882A5 94EC
-E882A9 8CA8
-E882AA 9662
-E882AC E3ED
-E882AD E3EB
-E882AF 8D6D
-E882B1 8D6E
-E882B2 88E7
-E882B4 8DE6
-E882BA 9478
-E88383 88DD
-E88384 E3F2
-E88386 925F
-E8838C 9477
-E8838E 91D9
-E88396 E3F4
-E88399 E3F0
-E8839A E3F3
-E8839B E3EE
-E8839D E3F1
-E8839E 9645
-E883A1 8CD3
-E883A4 88FB
-E883A5 E3EF
-E883AF E3F6
-E883B1 E3F7
-E883B4 93B7
-E883B8 8BB9
-E883BC E445
-E883BD 945C
-E88482 8E89
-E88485 8BBA
-E88486 90C6
-E88487 9865
-E88488 96AC
-E88489 E3F5
-E8848A 90D2
-E8849A 8B72
-E8849B E3F8
-E884A3 E3FA
-E884A9 E3F9
-E884AF E3FB
-E884B1 9245
-E884B3 945D
-E884B9 92AF
-E884BE E442
-E88586 E441
-E8858B E3FC
-E8858E 9074
-E88590 9585
-E88591 E444
-E88593 E443
-E88594 8D6F
-E88595 9872
-E8859F E454
-E885A5 E448
-E885A6 E449
-E885AB 8EEE
-E885AE E447
-E885B0 8D98
-E885B1 E446
-E885B4 E44A
-E885B8 92B0
-E885B9 95A0
-E885BA 9142
-E885BF 91DA
-E88680 E44E
-E88682 E44F
-E88683 E44B
-E88688 E44C
-E8868A E44D
-E8868F 8D70
-E88693 E455
-E88695 E451
-E8869A 9586
-E8869C 968C
-E8869D 9547
-E886A0 E450
-E886A3 E453
-E886A4 E452
-E886A8 9663
-E886A9 E456
-E886B0 E457
-E886B3 9156
-E886B5 E458
-E886B8 E45A
-E886BA E45E
-E886BD E45B
-E886BE E459
-E886BF 945E
-E88780 E45C
-E88782 E45D
-E88786 89B0
-E88788 E464
-E88789 E45F
-E8878D E460
-E88791 E461
-E88793 919F
-E88798 E463
-E88799 E462
-E8879A E465
-E8879F E466
-E887A0 E467
-E887A3 9062
-E887A5 89E7
-E887A7 E468
-E887A8 97D5
-E887AA 8EA9
-E887AD 8F4C
-E887B3 8E8A
-E887B4 9276
-E887BA E469
-E887BB E46A
-E887BC 8950
-E887BE E46B
-E88881 E46C
-E88882 E46D
-E88885 E46E
-E88887 E46F
-E88888 8BBB
-E88889 9DA8
-E8888A E470
-E8888C 90E3
-E8888D E471
-E8888E 8EC9
-E88890 E472
-E88892 98AE
-E88896 E473
-E88897 95DC
-E88898 8ADA
-E8889B 9143
-E8889C 8F77
-E8889E 9591
-E8889F 8F4D
-E888A9 E474
-E888AA 8D71
-E888AB E475
-E888AC 94CA
-E888AE E484
-E888B3 E477
-E888B5 91C7
-E888B6 9495
-E888B7 8CBD
-E888B8 E476
-E888B9 9144
-E88980 E478
-E88987 92F8
-E88998 E47A
-E88999 E479
-E8899A E47C
-E8899D E47B
-E8899F E47D
-E889A2 E480
-E889A4 E47E
-E889A6 8ACD
-E889A8 E481
-E889AA E482
-E889AB E483
-E889AE 8DAF
-E889AF 97C7
-E889B1 E485
-E889B2 9046
-E889B6 8990
-E889B7 E486
-E889B8 E487
-E889BE E488
-E88A8B 88F0
-E88A8D E489
-E88A92 E48A
-E88A99 9587
-E88A9D 8EC5
-E88A9F E48C
-E88AA5 8A48
-E88AA6 88B0
-E88AAB E48B
-E88AAC E48E
-E88AAD 946D
-E88AAF 9063
-E88AB1 89D4
-E88AB3 9646
-E88AB8 8C7C
-E88AB9 8BDA
-E88ABB E48D
-E88ABD 89E8
-E88B85 8AA1
-E88B91 8991
-E88B92 E492
-E88B93 97E8
-E88B94 91DB
-E88B97 9563
-E88B99 E49E
-E88B9B 89D5
-E88B9C E49C
-E88B9E E49A
-E88B9F E491
-E88BA1 E48F
-E88BA3 E490
-E88BA5 8EE1
-E88BA6 8BEA
-E88BA7 9297
-E88BAB 93CF
-E88BB1 8970
-E88BB3 E494
-E88BB4 E493
-E88BB9 E499
-E88BBA E495
-E88BBB E498
-E88C81 FB93
-E88C82 96CE
-E88C83 E497
-E88C84 89D6
-E88C85 8A9D
-E88C86 E49B
-E88C89 E49D
-E88C8E 8C73
-E88C96 E4A1
-E88C97 E4AA
-E88C98 E4AB
-E88C9C 88A9
-E88CA3 E4B2
-E88CA8 88EF
-E88CAB E4A9
-E88CAF E4A8
-E88CB1 E4A3
-E88CB2 E4A2
-E88CB4 E4A0
-E88CB5 E49F
-E88CB6 9283
-E88CB8 91F9
-E88CB9 E4A5
-E88D80 E4A4
-E88D85 E4A7
-E88D89 9190
-E88D8A 8C74
-E88D8F 8960
-E88D90 E4A6
-E88D92 8D72
-E88D98 9191
-E88DA2 FB94
-E88DB3 E4B8
-E88DB5 E4B9
-E88DB7 89D7
-E88DBB 89AC
-E88DBC E4B6
-E88DBF FB95
-E88E85 E4AC
-E88E87 E4B4
-E88E89 E4BB
-E88E8A E4B5
-E88E8E E4B3
-E88E93 E496
-E88E96 E4B1
-E88E9A E4AD
-E88E9E 8ACE
-E88E9F E4AF
-E88EA0 E4BA
-E88EA2 E4B0
-E88EA8 E4BC
-E88EAA E4AE
-E88EAB 949C
-E88EB1 9789
-E88EB5 E4B7
-E88EBD E4CD
-E88F81 E4C5
-E88F85 909B
-E88F87 FB96
-E88F8A 8B65
-E88F8C 8BDB
-E88F8E E4C0
-E88F93 89D9
-E88F96 8FD2
-E88F98 E4C3
-E88F9C 8DD8
-E88F9F 9370
-E88FA0 E4C8
-E88FA9 95EC
-E88FAB E4BF
-E88FAF 89D8
-E88FB0 8CD4
-E88FB1 9548
-E88FB2 E4C9
-E88FB4 E4BD
-E88FB6 FB97
-E88FB7 E4C6
-E88FBB E4D0
-E88FBD E4C1
-E89083 E4C2
-E89084 93B8
-E89087 E4C7
-E8908B E4C4
-E8908C 9647
-E8908D E4CA
-E8908E 88DE
-E89093 E4BE
-E890A0 E4CC
-E890A2 E4CB
-E890A9 948B
-E890AA E4D2
-E890AC E4DD
-E890B1 8A9E
-E890B5 E4E0
-E890B8 E4CE
-E890BC E4D3
-E890BD 978E
-E89186 E4DC
-E89188 FB98
-E89189 9774
-E8918E 97A8
-E89197 9298
-E8919B 8A8B
-E891A1 9592
-E891A2 E4E2
-E891A3 939F
-E891A6 88AF
-E891A9 E4DB
-E891AB E4D7
-E891AC 9192
-E891AD E4D1
-E891AE E4D9
-E891AF E4DE
-E891B1 944B
-E891B5 88A8
-E891B7 E4D6
-E891B9 E4DF
-E891BA 9598
-E89282 E4DA
-E89284 E4D5
-E8928B 8FD3
-E89290 8F4E
-E89294 8EAA
-E89299 96D6
-E8929C 9566
-E8929F E4E5
-E892A1 E4EE
-E892AD E4D8
-E892B2 8A97
-E892B4 FB99
-E892B8 8FF6
-E892B9 E4E3
-E892BB E4E8
-E892BC 9193
-E892BF E4E4
-E89381 E4EB
-E89384 927E
-E89386 E4EC
-E89389 9775
-E8938A E4E1
-E8938B 8A57
-E8938D E4E7
-E89390 E4EA
-E89391 96AA
-E89396 E4ED
-E89399 E4E6
-E8939A E4E9
-E8939C FA60
-E893AC 9648
-E893AE 9840
-E893B4 E4F1
-E893BC E4F8
-E893BF E4F0
-E89480 8EC1
-E89486 E4CF
-E89491 95CC
-E89493 96A0
-E89494 E4F7
-E89495 E4F6
-E89497 E4F2
-E89498 E4F3
-E8949A 8955
-E8949F E4F5
-E894A1 E4EF
-E894A6 92D3
-E894AC E4F4
-E894AD 88FC
-E894B5 91A0
-E894BD 95C1
-E89580 E4F9
-E89581 E540
-E89583 94D7
-E89588 E4FC
-E89589 8FD4
-E8958A 8EC7
-E8958B E542
-E8958E 8BBC
-E89593 FB9A
-E89595 E543
-E89597 9599
-E89598 E4FB
-E89599 FB9B
-E8959A E4D4
-E895A3 E4FA
-E895A8 986E
-E895A9 93A0
-E895AA 9593
-E895AB FB9C
-E895AD E54A
-E895B7 E550
-E895BE E551
-E89680 E544
-E89684 9496
-E89687 E54E
-E89688 E546
-E8968A E548
-E89690 E552
-E89691 E547
-E89694 E54B
-E89697 8992
-E89699 93E3
-E8969B E54C
-E8969C E54F
-E896A4 E545
-E896A6 9145
-E896A8 E549
-E896A9 8E46
-E896AA 9064
-E896AB 8C4F
-E896AC 96F2
-E896AE 96F7
-E896AF 8F92
-E896B0 FB9E
-E896B9 E556
-E896BA E554
-E89781 986D
-E89789 E553
-E8978D 9795
-E8978F E555
-E89790 E557
-E89795 E558
-E8979C E55B
-E8979D E559
-E897A4 93A1
-E897A5 E55A
-E897A9 94CB
-E897AA E54D
-E897B7 8F93
-E897B9 E55C
-E897BA E561
-E897BB 9194
-E897BE E560
-E89882 E541
-E89886 E562
-E89887 9168
-E8988A E55D
-E8988B E55F
-E89893 E55E
-E89896 9F50
-E89897 9F41
-E8989A E564
-E898A2 E563
-E898AD 9796
-E898AF E1BA
-E898B0 E565
-E898BF E566
-E8998D E567
-E8998E 8CD5
-E89990 8B73
-E89994 E569
-E89995 997C
-E8999A 8B95
-E8999C 97B8
-E8999E 8BF1
-E8999F E56A
-E899A7 E56B
-E899AB 928E
-E899B1 E56C
-E899B9 93F8
-E899BB 88B8
-E89A8A 89E1
-E89A8B E571
-E89A8C E572
-E89A93 E56D
-E89A95 8E5C
-E89AA3 E56E
-E89AA4 9461
-E89AA9 E56F
-E89AAA E570
-E89AAB E57A
-E89AAF E574
-E89AB0 E577
-E89AB6 E573
-E89B84 E575
-E89B86 E576
-E89B87 8ED6
-E89B89 E578
-E89B8B 9260
-E89B8D 8C75
-E89B8E 8A61
-E89B94 E57B
-E89B99 8A5E
-E89B9B E581
-E89B9E E57C
-E89B9F E580
-E89BA4 94B8
-E89BA9 E57D
-E89BAC E57E
-E89BAD 9567
-E89BAE 94D8
-E89BAF E582
-E89BB8 91FB
-E89BB9 E58C
-E89BBB E588
-E89BBE 89E9
-E89C80 E586
-E89C82 9649
-E89C83 E587
-E89C86 E584
-E89C88 E585
-E89C89 E58A
-E89C8A E58D
-E89C8D E58B
-E89C91 E589
-E89C92 E583
-E89C98 9277
-E89C9A E594
-E89C9C 96A8
-E89CA5 E592
-E89CA9 E593
-E89CB4 E58E
-E89CB7 E590
-E89CBB E591
-E89CBF E58F
-E89D89 90E4
-E89D8B 9858
-E89D8C E598
-E89D8E E599
-E89D93 E59F
-E89D95 9049
-E89D97 E59B
-E89D99 E59E
-E89D9F E596
-E89DA0 E595
-E89DA3 E5A0
-E89DA6 89DA
-E89DA8 E59C
-E89DAA E5A1
-E89DAE E59D
-E89DB4 E59A
-E89DB6 92B1
-E89DB8 E597
-E89DBF 9488
-E89E82 E5A5
-E89E8D 975A
-E89E9F E5A4
-E89EA2 E5A3
-E89EAB E5AC
-E89EAF E5A6
-E89EB3 E5AE
-E89EBA 9786
-E89EBB E5B1
-E89EBD E5A8
-E89F80 E5A9
-E89F84 E5AD
-E89F86 E5B0
-E89F87 E5AF
-E89F8B E5A7
-E89F90 E5AA
-E89F92 E5BB
-E89FA0 E5B4
-E89FAF E5B2
-E89FB2 E5B3
-E89FB6 E5B8
-E89FB7 E5B9
-E89FB9 8A49
-E89FBB 8B61
-E89FBE E5B7
-E8A085 E5A2
-E8A087 FBA1
-E8A08D E5B6
-E8A08E E5BA
-E8A08F E5B5
-E8A091 E5BC
-E8A095 E5BE
-E8A096 E5BD
-E8A0A1 E5C0
-E8A0A2 E5BF
-E8A0A3 E579
-E8A0A7 E5C4
-E8A0B1 E5C1
-E8A0B6 E5C2
-E8A0B9 E5C3
-E8A0BB E5C5
-E8A180 8C8C
-E8A182 E5C7
-E8A184 E5C6
-E8A186 8F4F
-E8A18C 8D73
-E8A18D 9FA5
-E8A192 E5C8
-E8A193 8F70
-E8A197 8A58
-E8A199 E5C9
-E8A19B 8971
-E8A19D 8FD5
-E8A19E E5CA
-E8A1A1 8D74
-E8A1A2 E5CB
-E8A1A3 88DF
-E8A1A8 955C
-E8A1AB E5CC
-E8A1B0 908A
-E8A1B2 E5D3
-E8A1B5 E5D0
-E8A1B7 928F
-E8A1BD E5D1
-E8A1BE E5CE
-E8A1BF 8BDC
-E8A281 E5CD
-E8A282 E5D4
-E8A288 8C55
-E8A28B 91DC
-E8A28D E5DA
-E8A292 E5D6
-E8A296 91B3
-E8A297 E5D5
-E8A299 E5D8
-E8A29E E5CF
-E8A2A2 E5D9
-E8A2A4 E5DB
-E8A2AB 94ED
-E8A2AE E5D7
-E8A2B0 E5DC
-E8A2B1 E5DE
-E8A2B4 8CD1
-E8A2B5 E5D2
-E8A2B7 88BF
-E8A2BF E5DD
-E8A381 8DD9
-E8A382 97F4
-E8A383 E5DF
-E8A384 E5E0
-E8A385 9195
-E8A38F 97A0
-E8A394 E5E1
-E8A395 9754
-E8A398 E5E2
-E8A399 E5E3
-E8A39C 95E2
-E8A39D E5E4
-E8A39F 8DBE
-E8A3A1 97A1
-E8A3A8 E5E9
-E8A3B2 E5EA
-E8A3B3 8FD6
-E8A3B4 E5E8
-E8A3B5 FBA2
-E8A3B8 9787
-E8A3B9 E5E5
-E8A3BC E5E7
-E8A3BD 90BB
-E8A3BE 909E
-E8A482 E5E6
-E8A484 E5EB
-E8A487 95A1
-E8A48A E5ED
-E8A48C E5EC
-E8A490 8A8C
-E8A492 964A
-E8A493 E5EE
-E8A49C FA5D
-E8A49D E5FA
-E8A49E E5F0
-E8A4A5 E5F1
-E8A4AA E5F2
-E8A4AB E5F3
-E8A4B6 E5F7
-E8A4B8 E5F8
-E8A4BB E5F6
-E8A581 E5F4
-E8A583 E5EF
-E8A584 E5F5
-E8A58C E5F9
-E8A58D E8B5
-E8A596 89A6
-E8A59E E5FC
-E8A59F 8BDD
-E8A5A0 E5FB
-E8A5A4 E641
-E8A5A6 E640
-E8A5AA E643
-E8A5AD E642
-E8A5AF E644
-E8A5B2 8F50
-E8A5B4 E645
-E8A5B7 E646
-E8A5BE E647
-E8A5BF 90BC
-E8A681 9776
-E8A683 E648
-E8A686 95A2
-E8A687 9465
-E8A688 E649
-E8A68A E64A
-E8A68B 8CA9
-E8A68F 8B4B
-E8A693 E64B
-E8A696 8E8B
-E8A697 9460
-E8A698 E64C
-E8A69A 8A6F
-E8A6A1 E64D
-E8A6A6 E64F
-E8A6A7 9797
-E8A6A9 E64E
-E8A6AA 9065
-E8A6AC E650
-E8A6AF E651
-E8A6B2 E652
-E8A6B3 8ACF
-E8A6BA E653
-E8A6BD E654
-E8A6BF E655
-E8A780 E656
-E8A792 8A70
-E8A79A E657
-E8A79C E658
-E8A79D E659
-E8A7A3 89F0
-E8A7A6 9047
-E8A7A7 E65A
-E8A7B4 E65B
-E8A7B8 E65C
-E8A880 8CBE
-E8A882 92F9
-E8A883 E65D
-E8A888 8C76
-E8A88A 9075
-E8A88C E660
-E8A88E 93A2
-E8A890 E65F
-E8A892 FBA3
-E8A893 8C50
-E8A896 E65E
-E8A897 91F5
-E8A898 8B4C
-E8A89B E661
-E8A89D E662
-E8A89F 8FD7
-E8A8A3 8C8D
-E8A8A5 E663
-E8A8AA 964B
-E8A8AD 90DD
-E8A8B1 8B96
-E8A8B3 96F3
-E8A8B4 9169
-E8A8B6 E664
-E8A8B7 FBA4
-E8A8BA 9066
-E8A8BB 9290
-E8A8BC 8FD8
-E8A981 E665
-E8A986 E668
-E8A988 E669
-E8A990 8DBC
-E8A991 91C0
-E8A992 E667
-E8A994 8FD9
-E8A995 955D
-E8A99B E666
-E8A99E 8E8C
-E8A9A0 8972
-E8A9A2 E66D
-E8A9A3 8C77
-E8A9A6 8E8E
-E8A9A9 8E8D
-E8A9AB 986C
-E8A9AC E66C
-E8A9AD E66B
-E8A9AE 9146
-E8A9B0 8B6C
-E8A9B1 9862
-E8A9B2 8A59
-E8A9B3 8FDA
-E8A9B9 FBA5
-E8A9BC E66A
-E8AA82 E66F
-E8AA84 E670
-E8AA85 E66E
-E8AA87 8CD6
-E8AA89 975F
-E8AA8C 8E8F
-E8AA8D 9446
-E8AA91 E673
-E8AA93 90BE
-E8AA95 9261
-E8AA98 9755
-E8AA9A E676
-E8AA9E 8CEA
-E8AAA0 90BD
-E8AAA1 E672
-E8AAA3 E677
-E8AAA4 8CEB
-E8AAA5 E674
-E8AAA6 E675
-E8AAA7 FBA6
-E8AAA8 E671
-E8AAAC 90E0
-E8AAAD 93C7
-E8AAB0 924E
-E8AAB2 89DB
-E8AAB9 94EE
-E8AABC 8B62
-E8AABE FBA7
-E8AABF 92B2
-E8AB82 E67A
-E8AB84 E678
-E8AB87 926B
-E8AB8B 90BF
-E8AB8C 8AD0
-E8AB8D E679
-E8AB8F 907A
-E8AB92 97C8
-E8AB96 985F
-E8AB9A E67B
-E8AB9B E687
-E8AB9C 92B3
-E8AB9E E686
-E8AB9F FBA8
-E8ABA0 E683
-E8ABA1 E68B
-E8ABA2 E684
-E8ABA4 E680
-E8ABA6 92FA
-E8ABA7 E67E
-E8ABAB E67C
-E8ABAD 9740
-E8ABAE 8E90
-E8ABB1 E681
-E8ABB3 E67D
-E8ABB6 FBAA
-E8ABB7 E685
-E8ABB8 8F94
-E8ABBA 8CBF
-E8ABBE 91F8
-E8AC80 9664
-E8AC81 8979
-E8AC82 88E0
-E8AC84 93A3
-E8AC87 E689
-E8AC8C E688
-E8AC8E 93E4
-E8AC90 E68D
-E8AC94 E682
-E8AC96 E68C
-E8AC97 E68E
-E8AC99 8CAA
-E8AC9A E68A
-E8AC9B 8D75
-E8AC9D 8ED3
-E8ACA0 E68F
-E8ACA1 9777
-E8ACA6 E692
-E8ACA8 E695
-E8ACAB E693
-E8ACAC 9554
-E8ACB3 E690
-E8ACB9 8BDE
-E8ACBE E694
-E8AD81 E696
-E8AD89 E69A
-E8AD8C E697
-E8AD8E E699
-E8AD8F E698
-E8AD93 FBAB
-E8AD96 E69B
-E8AD98 8EAF
-E8AD9A E69D
-E8AD9B E69C
-E8AD9C 9588
-E8AD9F E69F
-E8ADA6 8C78
-E8ADAB E69E
-E8ADAC E6A0
-E8ADAF E6A1
-E8ADB0 8B63
-E8ADB1 E3BF
-E8ADB2 8FF7
-E8ADB4 E6A2
-E8ADB7 8CEC
-E8ADBD E6A3
-E8ADBF FBAC
-E8AE80 E6A4
-E8AE83 8E5D
-E8AE8A 9DCC
-E8AE8C E6A5
-E8AE8E E6A6
-E8AE90 8F51
-E8AE92 E6A7
-E8AE93 E6A8
-E8AE96 E6A9
-E8AE99 E6AA
-E8AE9A E6AB
-E8B0B7 924A
-E8B0BA E6AC
-E8B0BF E6AE
-E8B181 E6AD
-E8B186 93A4
-E8B188 E6AF
-E8B18A 964C
-E8B18C E6B0
-E8B18E E6B1
-E8B190 E6B2
-E8B195 E6B3
-E8B19A 93D8
-E8B1A1 8FDB
-E8B1A2 E6B4
-E8B1AA 8D8B
-E8B1AB 98AC
-E8B1AC E6B5
-E8B1B8 E6B6
-E8B1B9 955E
-E8B1BA E6B7
-E8B1BC E6BF
-E8B282 E6B8
-E8B285 E6BA
-E8B289 E6B9
-E8B28A E6BB
-E8B28C 9665
-E8B28D E6BC
-E8B28E E6BD
-E8B294 E6BE
-E8B298 E6C0
-E8B29D 8A4C
-E8B29E 92E5
-E8B2A0 9589
-E8B2A1 8DE0
-E8B2A2 8D76
-E8B2A7 956E
-E8B2A8 89DD
-E8B2A9 94CC
-E8B2AA E6C3
-E8B2AB 8AD1
-E8B2AC 90D3
-E8B2AD E6C2
-E8B2AE E6C7
-E8B2AF 9299
-E8B2B0 96E1
-E8B2B2 E6C5
-E8B2B3 E6C6
-E8B2B4 8B4D
-E8B2B6 E6C8
-E8B2B7 9483
-E8B2B8 91DD
-E8B2BB 94EF
-E8B2BC 935C
-E8B2BD E6C4
-E8B2BF 9666
-E8B380 89EA
-E8B381 E6CA
-E8B382 9847
-E8B383 92C0
-E8B384 9864
-E8B387 8E91
-E8B388 E6C9
-E8B38A 91AF
-E8B38D E6DA
-E8B38E 9147
-E8B391 93F6
-E8B393 956F
-E8B39A E6CD
-E8B39B 8E5E
-E8B39C 8E92
-E8B39E 8FDC
-E8B3A0 9485
-E8B3A2 8CAB
-E8B3A3 E6CC
-E8B3A4 E6CB
-E8B3A6 958A
-E8B3AA 8EBF
-E8B3AD 9371
-E8B3B0 FBAD
-E8B3B4 FBAE
-E8B3BA E6CF
-E8B3BB E6D0
-E8B3BC 8D77
-E8B3BD E6CE
-E8B484 E6D1
-E8B485 E6D2
-E8B487 E6D4
-E8B488 91A1
-E8B48A E6D3
-E8B48B 8AE4
-E8B48D E6D6
-E8B48F E6D5
-E8B490 E6D7
-E8B492 FBAF
-E8B493 E6D9
-E8B494 E6DB
-E8B496 E6DC
-E8B5A4 90D4
-E8B5A6 8ECD
-E8B5A7 E6DD
-E8B5AB 8A71
-E8B5AD E6DE
-E8B5B0 9196
-E8B5B1 E6DF
-E8B5B3 E6E0
-E8B5B4 958B
-E8B5B6 FBB0
-E8B5B7 8B4E
-E8B681 E6E1
-E8B685 92B4
-E8B68A 897A
-E8B699 E6E2
-E8B6A3 8EEF
-E8B6A8 9096
-E8B6B3 91AB
-E8B6BA E6E5
-E8B6BE E6E4
-E8B782 E6E3
-E8B78B E6EB
-E8B78C E6E9
-E8B78F E6E6
-E8B796 E6E8
-E8B79A E6E7
-E8B79B E6EA
-E8B79D 8B97
-E8B79F E6EE
-E8B7A1 90D5
-E8B7A3 E6EF
-E8B7A8 8CD7
-E8B7AA E6EC
-E8B7AB E6ED
-E8B7AF 9848
-E8B7B3 92B5
-E8B7B5 9148
-E8B7BC E6F0
-E8B7BF E6F3
-E8B888 E6F1
-E8B889 E6F2
-E8B88A 9778
-E8B88F 93A5
-E8B890 E6F6
-E8B89D E6F4
-E8B89E E6F5
-E8B89F E6F7
-E8B8AA E748
-E8B8B0 E6FA
-E8B8B4 E6FB
-E8B8B5 E6F9
-E8B982 E6F8
-E8B984 92FB
-E8B987 E740
-E8B988 E744
-E8B989 E741
-E8B98A E6FC
-E8B98C E742
-E8B990 E743
-E8B995 E74A
-E8B999 E745
-E8B99F 90D6
-E8B9A0 E747
-E8B9A3 E749
-E8B9A4 E746
-E8B9B2 E74C
-E8B9B4 8F52
-E8B9B6 E74B
-E8B9BC E74D
-E8BA81 E74E
-E8BA84 E751
-E8BA85 E750
-E8BA87 E74F
-E8BA8A E753
-E8BA8B E752
-E8BA8D 96F4
-E8BA91 E755
-E8BA93 E754
-E8BA94 E756
-E8BA99 E757
-E8BAA1 E759
-E8BAAA E758
-E8BAAB 9067
-E8BAAC E75A
-E8BAAF 8BEB
-E8BAB0 E75B
-E8BAB1 E75D
-E8BABE E75E
-E8BB85 E75F
-E8BB86 E75C
-E8BB88 E760
-E8BB8A 8ED4
-E8BB8B E761
-E8BB8C 8B4F
-E8BB8D 8C52
-E8BB8F FBB2
-E8BB92 8CAC
-E8BB9B E762
-E8BB9F 93EE
-E8BBA2 935D
-E8BBA3 E763
-E8BBAB E766
-E8BBB8 8EB2
-E8BBBB E765
-E8BBBC E764
-E8BBBD 8C79
-E8BBBE E767
-E8BC83 8A72
-E8BC85 E769
-E8BC89 8DDA
-E8BC8A E768
-E8BC8C E771
-E8BC92 E76B
-E8BC93 E76D
-E8BC94 95E3
-E8BC95 E76A
-E8BC99 E76C
-E8BC9B E770
-E8BC9C E76E
-E8BC9D 8B50
-E8BC9F E76F
-E8BCA6 E772
-E8BCA9 9479
-E8BCAA 97D6
-E8BCAF 8F53
-E8BCB3 E773
-E8BCB8 9741
-E8BCB9 E775
-E8BCBB E774
-E8BCBE E778
-E8BCBF 9760
-E8BD82 E777
-E8BD84 8A8D
-E8BD85 E776
-E8BD86 E77B
-E8BD89 E77A
-E8BD8C E779
-E8BD8D 9351
-E8BD8E E77C
-E8BD97 E77D
-E8BD9C E77E
-E8BD9F 8D8C
-E8BDA1 8C44
-E8BDA2 E780
-E8BDA3 E781
-E8BDA4 E782
-E8BE9B 9068
-E8BE9C E783
-E8BE9E 8EAB
-E8BE9F E784
-E8BEA3 E785
-E8BEA7 999F
-E8BEA8 999E
-E8BEAD E786
-E8BEAE E390
-E8BEAF E787
-E8BEB0 9243
-E8BEB1 904A
-E8BEB2 945F
-E8BEB7 E788
-E8BEBA 95D3
-E8BEBB 92D2
-E8BEBC 8D9E
-E8BEBF 9248
-E8BF82 8949
-E8BF84 9698
-E8BF85 9076
-E8BF8E 8C7D
-E8BF91 8BDF
-E8BF94 95D4
-E8BF9A E789
-E8BFA2 E78B
-E8BFA5 E78A
-E8BFA6 89DE
-E8BFA9 93F4
-E8BFAA E78C
-E8BFAB 9497
-E8BFAD 9352
-E8BFAF E78D
-E8BFB0 8F71
-E8BFB4 E78F
-E8BFB7 96C0
-E8BFB8 E79E
-E8BFB9 E791
-E8BFBA E792
-E8BFBD 92C7
-E98080 91DE
-E98081 9197
-E98083 93A6
-E98085 E790
-E98086 8B74
-E9808B E799
-E9808D E796
-E9808E E7A3
-E9808F 93A7
-E98090 9280
-E98091 E793
-E98093 92FC
-E98094 9372
-E98095 E794
-E98096 E798
-E98097 9080
-E98099 9487
-E9809A 92CA
-E9809D 90C0
-E9809E E797
-E9809F 91AC
-E980A0 91A2
-E980A1 E795
-E980A2 88A7
-E980A3 9841
-E980A7 E79A
-E980AE 91DF
-E980B1 8F54
-E980B2 9069
-E980B5 E79C
-E980B6 E79B
-E980B8 88ED
-E980B9 E79D
-E980BC 954E
-E980BE E7A5
-E98181 93D9
-E98182 908B
-E98185 9278
-E98187 8BF6
-E98189 E7A4
-E9818A 9756
-E9818B 895E
-E9818D 95D5
-E9818E 89DF
-E9818F E79F
-E98190 E7A0
-E98191 E7A1
-E98192 E7A2
-E98193 93B9
-E98194 9242
-E98195 88E1
-E98196 E7A6
-E98198 E7A7
-E98199 EAA1
-E9819C 91BB
-E9819E E7A8
-E981A0 8993
-E981A1 916B
-E981A3 8CAD
-E981A5 9779
-E981A7 FBB5
-E981A8 E7A9
-E981A9 934B
-E981AD 9198
-E981AE 8ED5
-E981AF E7AA
-E981B2 E7AD
-E981B5 8F85
-E981B6 E7AB
-E981B7 914A
-E981B8 9149
-E981BA 88E2
-E981BC 97C9
-E981BD E7AF
-E981BF 94F0
-E98280 E7B1
-E98281 E7B0
-E98282 E7AE
-E98283 E284
-E98284 8AD2
-E98287 E78E
-E98289 E7B3
-E9828A E7B2
-E9828F E7B4
-E98291 9757
-E982A3 93DF
-E982A6 964D
-E982A8 E7B5
-E982AA 8ED7
-E982AF E7B6
-E982B1 E7B7
-E982B5 E7B8
-E982B8 9340
-E98381 88E8
-E9838A 8D78
-E9838E 9859
-E9839B E7BC
-E9839E FBB6
-E983A1 8C53
-E983A2 E7B9
-E983A4 E7BA
-E983A8 9594
-E983AD 8A73
-E983B5 9758
-E983B7 8BBD
-E983BD 9373
-E98482 E7BD
-E98492 E7BE
-E98495 FBB8
-E98499 E7BF
-E984A7 FBB9
-E984AD 9341
-E984B0 E7C1
-E984B2 E7C0
-E98589 93D1
-E9858A E7C2
-E9858B 8F55
-E9858C 8EDE
-E9858D 947A
-E9858E 9291
-E98592 8EF0
-E98594 908C
-E98596 E7C3
-E98598 E7C4
-E985A2 907C
-E985A3 E7C5
-E985A5 E7C6
-E985A9 E7C7
-E985AA 978F
-E985AC 8F56
-E985B2 E7C9
-E985B3 E7C8
-E985B5 8D79
-E985B7 8D93
-E985B8 8E5F
-E98682 E7CC
-E98687 8F86
-E98689 E7CB
-E9868B E7CA
-E9868D 91E7
-E98690 8CED
-E98692 90C1
-E98697 94AE
-E9869C 8F58
-E986A2 E7CD
-E986A4 8FDD
-E986AA E7D0
-E986AB E7CE
-E986AF E7CF
-E986B4 E7D2
-E986B5 E7D1
-E986B8 8FF8
-E986BA E7D3
-E98780 E7D4
-E98781 E7D5
-E98786 94CE
-E98787 8DD1
-E98788 8EDF
-E98789 E7D6
-E9878B E7D7
-E9878C 97A2
-E9878D 8F64
-E9878E 96EC
-E9878F 97CA
-E98790 E7D8
-E98791 8BE0
-E98796 E7D9
-E98797 FBBB
-E98798 9342
-E9879A FBBA
-E9879B E7DC
-E9879C 8A98
-E9879D 906A
-E9879E FBBC
-E9879F E7DA
-E987A1 E7DB
-E987A3 92DE
-E987A4 FBBF
-E987A5 FBC0
-E987A6 9674
-E987A7 8BFA
-E987AD FBBD
-E987AE FBBE
-E987B5 E7DE
-E987B6 E7DF
-E987BC E7DD
-E987BF E7E1
-E98886 FBC1
-E9888A FBC3
-E9888D 93DD
-E9888E 8A62
-E98890 FBC2
-E98891 E7E5
-E98894 E7E2
-E98895 E7E4
-E9889E E7E0
-E988A9 E86E
-E988AC E7E3
-E988B4 97E9
-E988B7 8CD8
-E988B9 FBCA
-E988BA FBC4
-E988BC FBC6
-E988BF E7ED
-E98980 FBC5
-E98984 9353
-E98985 E7E8
-E98988 E7EB
-E98989 E7E9
-E9898B E7EE
-E9898E FBC7
-E98990 E7EF
-E98991 FBC9
-E98997 E7E7
-E98999 FBC8
-E9899A E7F4
-E9899B 8994
-E9899E E7E6
-E989A2 94AB
-E989A4 E7EA
-E989A6 8FDE
-E989A7 FBCB
-E989B1 8D7A
-E989B7 FBCD
-E989B8 FBCE
-E989BE 9667
-E98A80 8BE2
-E98A83 8F65
-E98A85 93BA
-E98A88 FA5F
-E98A91 914C
-E98A93 E7F2
-E98A95 E7EC
-E98A96 E7F1
-E98A98 96C1
-E98A9A 92B6
-E98A9B E7F3
-E98A9C E7F0
-E98AA7 FBCC
-E98AAD 914B
-E98AB7 E7F7
-E98AB9 E7F6
-E98B8F E7F5
-E98B90 FBD2
-E98B92 964E
-E98B93 FBD6
-E98B95 FBD4
-E98B97 FBD0
-E98B99 FBD1
-E98BA0 FBD5
-E98BA4 8F9B
-E98BA7 FBCF
-E98BA9 E7F8
-E98BAA 95DD
-E98BAD 8973
-E98BB2 9565
-E98BB3 9292
-E98BB8 8B98
-E98BB9 FA65
-E98BBA E7FA
-E98BBB FBD9
-E98BBC 8D7C
-E98BBF FBDC
-E98C82 FBDE
-E98C86 8E4B
-E98C8F E7F9
-E98C90 908D
-E98C98 908E
-E98C99 E840
-E98C9A E842
-E98C9D FBDD
-E98C9E FBDB
-E98CA0 8FF9
-E98CA1 FBD8
-E98CA2 E841
-E98CA3 E843
-E98CA5 FBD7
-E98CA6 8BD1
-E98CA8 9564
-E98CAB 8EE0
-E98CAC 9842
-E98CAE E7FC
-E98CAF 8DF6
-E98CB2 985E
-E98CB5 E845
-E98CBA E844
-E98CBB E846
-E98D84 E7FB
-E98D88 FA5E
-E98D8B 93E7
-E98D8D 9374
-E98D94 92D5
-E98D96 E84B
-E98D97 FBE0
-E98D9B 9262
-E98D9C E847
-E98DA0 E848
-E98DAC 8C4C
-E98DAE E84A
-E98DB0 FBDF
-E98DB5 8CAE
-E98DBC E849
-E98DBE 8FDF
-E98E8C 8A99
-E98E94 E84F
-E98E96 8DBD
-E98E97 9199
-E98E9A 92C8
-E98EA4 FBE1
-E98EA7 8A5A
-E98EAC E84D
-E98EAD E84E
-E98EAE 92C1
-E98EB0 E84C
-E98EB9 E850
-E98F83 E856
-E98F86 FBE2
-E98F88 E859
-E98F90 E858
-E98F91 934C
-E98F96 E851
-E98F97 E852
-E98F98 E855
-E98F9D E857
-E98F9E FBE3
-E98FA1 8BBE
-E98FA4 E85A
-E98FA5 E854
-E98FA8 E853
-E98FB8 FBE4
-E99083 E85E
-E99087 E85F
-E99090 E860
-E99093 E85D
-E99094 E85C
-E99098 8FE0
-E99099 93A8
-E9909A E85B
-E990A1 E864
-E990AB E862
-E990B1 FBE5
-E990B5 E863
-E990B6 E861
-E990B8 91F6
-E990BA E865
-E99181 E866
-E99184 E868
-E99185 FBE6
-E99188 FBE7
-E99191 8AD3
-E99192 E867
-E99193 96F8
-E9919A E873
-E9919B E869
-E9919E E86C
-E991A0 E86A
-E991A2 E86B
-E991AA E86D
-E991B0 E86F
-E991B5 E870
-E991B7 E871
-E991BC E874
-E991BD E872
-E991BE E875
-E991BF E877
-E99281 E876
-E995B7 92B7
-E99680 96E5
-E99682 E878
-E99683 914D
-E99687 E879
-E99689 95C2
-E9968A E87A
-E9968B 8A4A
-E9968F 895B
-E99691 8AD5
-E99692 FBE8
-E99693 8AD4
-E99694 E87B
-E99696 E87C
-E99698 E87D
-E99699 E87E
-E996A0 E880
-E996A2 8AD6
-E996A3 8A74
-E996A4 8D7D
-E996A5 94B4
-E996A7 E882
-E996A8 E881
-E996AD E883
-E996B2 897B
-E996B9 E886
-E996BB E885
-E996BC E884
-E996BE E887
-E99783 E88A
-E99787 88C5
-E9978A E888
-E9978C E88C
-E9978D E88B
-E99794 E88E
-E99795 E88D
-E99796 E88F
-E99798 93AC
-E9979C E890
-E997A1 E891
-E997A2 E893
-E997A5 E892
-E9989C 958C
-E998A1 E894
-E998A8 E895
-E998AA 8DE3
-E998AE E896
-E998AF E897
-E998B2 9668
-E998BB 916A
-E998BF 88A2
-E99980 91C9
-E99982 E898
-E99984 958D
-E9998B E89B
-E9998C E899
-E9998D 8D7E
-E9998F E89A
-E99990 8CC0
-E9999B 95C3
-E9999C E89D
-E9999D E89F
-E9999E E89E
-E9999F E8A0
-E999A2 8940
-E999A3 9077
-E999A4 8F9C
-E999A5 8AD7
-E999A6 E8A1
-E999AA 9486
-E999AC E8A3
-E999B0 8941
-E999B2 E8A2
-E999B3 92C2
-E999B5 97CB
-E999B6 93A9
-E999B7 E89C
-E999B8 97A4
-E999BA 8CAF
-E999BD 977A
-E99A85 8BF7
-E99A86 97B2
-E99A88 8C47
-E99A8A 91E0
-E99A8B E440
-E99A8D E8A4
-E99A8E 8A4B
-E99A8F 908F
-E99A94 8A75
-E99A95 E8A6
-E99A97 E8A7
-E99A98 E8A5
-E99A99 8C84
-E99A9B 8DDB
-E99A9C 8FE1
-E99A9D FBEB
-E99AA0 8942
-E99AA3 97D7
-E99AA7 E8A9
-E99AA8 E7AC
-E99AAA E8A8
-E99AAF FBEC
-E99AB0 E8AC
-E99AB1 E8AA
-E99AB2 E8AB
-E99AB4 E8AD
-E99AB6 E8AE
-E99AB7 97EA
-E99AB8 E8AF
-E99AB9 E8B0
-E99ABB 90C7
-E99ABC 94B9
-E99B80 909D
-E99B81 8AE5
-E99B84 9759
-E99B85 89EB
-E99B86 8F57
-E99B87 8CD9
-E99B89 E8B3
-E99B8B E8B2
-E99B8C 8E93
-E99B8D E8B4
-E99B8E E8B1
-E99B91 8E47
-E99B95 E8B8
-E99B96 E5AB
-E99B99 99D4
-E99B9B 9097
-E99B9C E8B6
-E99BA2 97A3
-E99BA3 93EF
-E99BA8 894A
-E99BAA 90E1
-E99BAB 8EB4
-E99BB0 95B5
-E99BB2 895F
-E99BB6 97EB
-E99BB7 978B
-E99BB9 E8B9
-E99BBB 9364
-E99C80 8EF9
-E99C84 E8BA
-E99C86 E8BB
-E99C87 906B
-E99C88 E8BC
-E99C8A 97EC
-E99C8D E8B7
-E99C8E E8BE
-E99C8F E8C0
-E99C91 E8BF
-E99C93 E8BD
-E99C96 E8C1
-E99C99 E8C2
-E99C9C 919A
-E99C9E 89E0
-E99CA4 E8C3
-E99CA7 96B6
-E99CAA E8C4
-E99CB0 E8C5
-E99CB2 9849
-E99CB3 FBED
-E99CB8 9E50
-E99CB9 E8C6
-E99CBB FBEE
-E99CBD E8C7
-E99CBE E8C8
-E99D82 E8CC
-E99D83 FBEF
-E99D84 E8C9
-E99D86 E8CA
-E99D88 E8CB
-E99D89 E8CD
-E99D8D FBF0
-E99D8F FBF1
-E99D91 FBF2
-E99D92 90C2
-E99D95 FBF3
-E99D96 96F5
-E99D99 90C3
-E99D9C E8CE
-E99D9E 94F1
-E99DA0 E8CF
-E99DA1 EA72
-E99DA2 96CA
-E99DA4 E8D0
-E99DA6 E8D1
-E99DA8 E8D2
-E99DA9 8A76
-E99DAB E8D4
-E99DAD 9078
-E99DB1 E8D5
-E99DB4 8C43
-E99DB9 E8D6
-E99DBA E8DA
-E99DBC E8D8
-E99E81 E8D9
-E99E84 8A93
-E99E85 E8D7
-E99E86 E8DB
-E99E8B E8DC
-E99E8D 88C6
-E99E8F E8DD
-E99E90 E8DE
-E99E98 8FE2
-E99E9C E8DF
-E99EA0 8B66
-E99EA3 E8E2
-E99EA6 E8E1
-E99EA8 E8E0
-E99EAB E691
-E99EAD 95DA
-E99EB3 E8E3
-E99EB4 E8E4
-E99F83 E8E5
-E99F86 E8E6
-E99F88 E8E7
-E99F8B E8E8
-E99F93 8AD8
-E99F9C E8E9
-E99FAD E8EA
-E99FAE 9442
-E99FB2 E8EC
-E99FB3 89B9
-E99FB5 E8EF
-E99FB6 E8EE
-E99FBB 8943
-E99FBF 8BBF
-E9A081 95C5
-E9A082 92B8
-E9A083 8DA0
-E9A085 8D80
-E9A086 8F87
-E9A088 907B
-E9A08C E8F1
-E9A08F E8F0
-E9A090 9761
-E9A091 8AE6
-E9A092 94D0
-E9A093 93DA
-E9A097 909C
-E9A098 97CC
-E9A09A 8C7A
-E9A0A1 E8F4
-E9A0A4 E8F3
-E9A0AC 966A
-E9A0AD 93AA
-E9A0B4 896F
-E9A0B7 E8F5
-E9A0B8 E8F2
-E9A0BB 9570
-E9A0BC 978A
-E9A0BD E8F6
-E9A186 E8F7
-E9A18B E8F9
-E9A18C 91E8
-E9A18D 8A7A
-E9A18E 8A7B
-E9A18F E8F8
-E9A194 8AE7
-E9A195 8CB0
-E9A197 FBF4
-E9A198 8AE8
-E9A19B 935E
-E9A19E 97DE
-E9A1A5 FBF5
-E9A1A7 8CDA
-E9A1AB E8FA
-E9A1AF E8FB
-E9A1B0 E8FC
-E9A1B1 E940
-E9A1B3 E942
-E9A1B4 E941
-E9A2A8 9597
-E9A2AA E943
-E9A2AF E944
-E9A2B1 E945
-E9A2B6 E946
-E9A383 E948
-E9A384 E947
-E9A386 E949
-E9A39B 94F2
-E9A39C E3CA
-E9A39F 9048
-E9A3A2 8B51
-E9A3A9 E94A
-E9A3AB E94B
-E9A3AD 99AA
-E9A3AE 9F5A
-E9A3AF 94D1
-E9A3B2 88F9
-E9A3B4 88B9
-E9A3BC 8E94
-E9A3BD 964F
-E9A3BE 8FFC
-E9A483 E94C
-E9A485 96DD
-E9A489 E94D
-E9A48A 977B
-E9A48C 8961
-E9A490 8E60
-E9A492 E94E
-E9A493 89EC
-E9A494 E94F
-E9A498 E950
-E9A49D E952
-E9A49E E953
-E9A4A0 E955
-E9A4A1 E951
-E9A4A4 E954
-E9A4A7 FBF8
-E9A4A8 8AD9
-E9A4AC E956
-E9A4AE E957
-E9A4BD E958
-E9A4BE E959
-E9A582 E95A
-E9A585 E95C
-E9A589 E95B
-E9A58B E95E
-E9A58C E961
-E9A590 E95D
-E9A591 E95F
-E9A592 E960
-E9A595 E962
-E9A597 8BC0
-E9A696 8EF1
-E9A697 E963
-E9A698 E964
-E9A699 8D81
-E9A69E FBFA
-E9A6A5 E965
-E9A6A8 8A5D
-E9A6AC 946E
-E9A6AD E966
-E9A6AE E967
-E9A6B3 9279
-E9A6B4 93E9
-E9A6BC E968
-E9A781 949D
-E9A784 91CA
-E9A785 8977
-E9A786 8BEC
-E9A788 8BED
-E9A790 9293
-E9A791 E96D
-E9A792 8BEE
-E9A795 89ED
-E9A798 E96C
-E9A79B E96A
-E9A79D E96B
-E9A79F E969
-E9A7A2 E977
-E9A7AD E96E
-E9A7AE E96F
-E9A7B1 E970
-E9A7B2 E971
-E9A7B8 E973
-E9A7BB E972
-E9A7BF 8F78
-E9A881 E974
-E9A885 E976
-E9A88E 8B52
-E9A88F E975
-E9A892 919B
-E9A893 8CB1
-E9A899 E978
-E9A8A8 91CB
-E9A8AB E979
-E9A8B0 93AB
-E9A8B7 E97A
-E9A8BE E980
-E9A980 E97D
-E9A982 E97C
-E9A983 E97E
-E9A985 E97B
-E9A98D E982
-E9A98E FBFB
-E9A995 E981
-E9A997 E984
-E9A99A 8BC1
-E9A99B E983
-E9A99F E985
-E9A9A2 E986
-E9A9A4 E988
-E9A9A5 E987
-E9A9A9 E989
-E9A9AA E98B
-E9A9AB E98A
-E9AAA8 8D9C
-E9AAAD E98C
-E9AAB0 E98D
-E9AAB8 8A5B
-E9AABC E98E
-E9AB80 E98F
-E9AB84 9091
-E9AB8F E990
-E9AB91 E991
-E9AB93 E992
-E9AB94 E993
-E9AB98 8D82
-E9AB99 FBFC
-E9AB9C FC40
-E9AB9E E994
-E9AB9F E995
-E9ABA2 E996
-E9ABA3 E997
-E9ABA6 E998
-E9ABAA 94AF
-E9ABAB E99A
-E9ABAD 9545
-E9ABAE E99B
-E9ABAF E999
-E9ABB1 E99D
-E9ABB4 E99C
-E9ABB7 E99E
-E9ABBB E99F
-E9AC86 E9A0
-E9AC98 E9A1
-E9AC9A E9A2
-E9AC9F E9A3
-E9ACA2 E9A4
-E9ACA3 E9A5
-E9ACA5 E9A6
-E9ACA7 E9A7
-E9ACA8 E9A8
-E9ACA9 E9A9
-E9ACAA E9AA
-E9ACAE E9AB
-E9ACAF E9AC
-E9ACB1 9F54
-E9ACB2 E9AD
-E9ACBB E2F6
-E9ACBC 8B53
-E9AD81 8A40
-E9AD82 8DB0
-E9AD83 E9AF
-E9AD84 E9AE
-E9AD85 96A3
-E9AD8D E9B1
-E9AD8E E9B2
-E9AD8F E9B0
-E9AD91 E9B3
-E9AD94 9682
-E9AD98 E9B4
-E9AD9A 8B9B
-E9ADAF 9844
-E9ADB2 FC42
-E9ADB4 E9B5
-E9ADB5 FC41
-E9AE83 E9B7
-E9AE8E 88BC
-E9AE8F FC43
-E9AE91 E9B8
-E9AE92 95A9
-E9AE93 E9B6
-E9AE96 E9B9
-E9AE97 E9BA
-E9AE9F E9BB
-E9AEA0 E9BC
-E9AEA8 E9BD
-E9AEAA 968E
-E9AEAB 8E4C
-E9AEAD 8DF8
-E9AEAE 914E
-E9AEB1 FC44
-E9AEB4 E9BE
-E9AEB9 E9C1
-E9AEBB FC45
-E9AF80 E9BF
-E9AF86 E9C2
-E9AF89 8CEF
-E9AF8A E9C0
-E9AF8F E9C3
-E9AF91 E9C4
-E9AF92 E9C5
-E9AF94 E9C9
-E9AF96 8E49
-E9AF9B 91E2
-E9AFA1 E9CA
-E9AFA2 E9C7
-E9AFA3 E9C6
-E9AFA4 E9C8
-E9AFA8 8C7E
-E9AFB0 E9CE
-E9AFB1 E9CD
-E9AFB2 E9CC
-E9AFB5 88B1
-E9B080 FC46
-E9B084 E9D8
-E9B086 E9D4
-E9B088 E9D5
-E9B089 E9D1
-E9B08A E9D7
-E9B08C E9D3
-E9B08D 8A82
-E9B090 986B
-E9B092 E9D6
-E9B093 E9D2
-E9B094 E9D0
-E9B095 E9CF
-E9B09B E9DA
-E9B0A1 E9DD
-E9B0A4 E9DC
-E9B0A5 E9DB
-E9B0AD 9568
-E9B0AE E9D9
-E9B0AF 88F1
-E9B0B0 E9DE
-E9B0B2 E9E0
-E9B0B9 8A8F
-E9B0BA E9CB
-E9B0BB 8956
-E9B0BE E9E2
-E9B186 E9E1
-E9B187 E9DF
-E9B188 924C
-E9B192 9690
-E9B197 97D8
-E9B19A E9E3
-E9B1A0 E9E4
-E9B1A7 E9E5
-E9B1B6 E9E6
-E9B1B8 E9E7
-E9B3A5 92B9
-E9B3A7 E9E8
-E9B3A9 94B5
-E9B3AB E9ED
-E9B3AC E9E9
-E9B3B0 E9EA
-E9B3B3 9650
-E9B3B4 96C2
-E9B3B6 93CE
-E9B483 E9EE
-E9B486 E9EF
-E9B487 93BC
-E9B488 E9EC
-E9B489 E9EB
-E9B48E 89A8
-E9B492 E9F7
-E9B495 E9F6
-E9B49B 8995
-E9B49F E9F4
-E9B4A3 E9F3
-E9B4A6 E9F1
-E9B4A8 8A9B
-E9B4AA E9F0
-E9B4AB 8EB0
-E9B4AC 89A7
-E9B4BB 8D83
-E9B4BE E9FA
-E9B4BF E9F9
-E9B581 E9F8
-E9B584 E9F5
-E9B586 E9FB
-E9B588 E9FC
-E9B590 EA44
-E9B591 EA43
-E9B599 EA45
-E9B59C 894C
-E9B59D EA40
-E9B59E EA41
-E9B5A0 8D94
-E9B5A1 96B7
-E9B5A4 EA42
-E9B5AB FC48
-E9B5AC 9651
-E9B5AF EA4A
-E9B5B0 FC47
-E9B5B2 EA46
-E9B5BA EA4B
-E9B687 EA48
-E9B689 EA47
-E9B68F 8C7B
-E9B69A EA4C
-E9B6A4 EA4D
-E9B6A9 EA4E
-E9B6AB EA49
-E9B6AF E9F2
-E9B6B2 EA4F
-E9B6B4 92DF
-E9B6B8 EA53
-E9B6BA EA54
-E9B6BB EA52
-E9B781 EA51
-E9B782 EA57
-E9B784 EA50
-E9B786 EA55
-E9B78F EA56
-E9B793 EA59
-E9B799 EA58
-E9B7A6 EA5B
-E9B7AD EA5C
-E9B7AF EA5D
-E9B7B2 9868
-E9B7B8 EA5A
-E9B7B9 91E9
-E9B7BA 8DEB
-E9B7BD EA5E
-E9B899 FC4A
-E9B89A EA5F
-E9B89B EA60
-E9B89E EA61
-E9B9B5 EA62
-E9B9B8 8CB2
-E9B9B9 EA63
-E9B9BD EA64
-E9B9BF 8EAD
-E9BA81 EA65
-E9BA88 EA66
-E9BA8B EA67
-E9BA8C EA68
-E9BA91 EA6B
-E9BA92 EA69
-E9BA93 985B
-E9BA95 EA6A
-E9BA97 97ED
-E9BA9D EA6C
-E9BA9F 97D9
-E9BAA5 EA6D
-E9BAA6 949E
-E9BAA9 EA6E
-E9BAAA EA70
-E9BAAD EA71
-E9BAB8 EA6F
-E9BAB9 8D8D
-E9BABA 96CB
-E9BABB 9683
-E9BABC 9BF5
-E9BABE 9F80
-E9BABF 969B
-E9BB84 89A9
-E9BB8C EA73
-E9BB8D 8B6F
-E9BB8E EA74
-E9BB8F EA75
-E9BB90 EA76
-E9BB91 FC4B
-E9BB92 8D95
-E9BB94 EA77
-E9BB98 E0D2
-E9BB99 96D9
-E9BB9B 91E1
-E9BB9C EA78
-E9BB9D EA7A
-E9BB9E EA79
-E9BBA0 EA7B
-E9BBA5 EA7C
-E9BBA8 EA7D
-E9BBAF EA7E
-E9BBB4 EA80
-E9BBB6 EA81
-E9BBB7 EA82
-E9BBB9 EA83
-E9BBBB EA84
-E9BBBC EA85
-E9BBBD EA86
-E9BC87 EA87
-E9BC88 EA88
-E9BC8E 9343
-E9BC93 8CDB
-E9BC95 EA8A
-E9BCA0 916C
-E9BCA1 EA8B
-E9BCAC EA8C
-E9BCBB 9540
-E9BCBE EA8D
-E9BD8A EA8E
-E9BD8B E256
-E9BD8E E6D8
-E9BD8F E8EB
-E9BD92 EA8F
-E9BD94 EA90
-E9BD9F EA92
-E9BDA0 EA93
-E9BDA1 EA94
-E9BDA2 97EE
-E9BDA3 EA91
-E9BDA6 EA95
-E9BDA7 EA96
-E9BDAA EA98
-E9BDAC EA97
-E9BDB2 EA9A
-E9BDB6 EA9B
-E9BDB7 EA99
-E9BE8D 97B4
-E9BE95 EA9C
-E9BE9C EA9D
-E9BE9D E273
-E9BEA0 EA9E
-EE8080 F040
-EE8081 F041
-EE8082 F042
-EE8083 F043
-EE8084 F044
-EE8085 F045
-EE8086 F046
-EE8087 F047
-EE8088 F048
-EE8089 F049
-EE808A F04A
-EE808B F04B
-EE808C F04C
-EE808D F04D
-EE808E F04E
-EE808F F04F
-EE8090 F050
-EE8091 F051
-EE8092 F052
-EE8093 F053
-EE8094 F054
-EE8095 F055
-EE8096 F056
-EE8097 F057
-EE8098 F058
-EE8099 F059
-EE809A F05A
-EE809B F05B
-EE809C F05C
-EE809D F05D
-EE809E F05E
-EE809F F05F
-EE80A0 F060
-EE80A1 F061
-EE80A2 F062
-EE80A3 F063
-EE80A4 F064
-EE80A5 F065
-EE80A6 F066
-EE80A7 F067
-EE80A8 F068
-EE80A9 F069
-EE80AA F06A
-EE80AB F06B
-EE80AC F06C
-EE80AD F06D
-EE80AE F06E
-EE80AF F06F
-EE80B0 F070
-EE80B1 F071
-EE80B2 F072
-EE80B3 F073
-EE80B4 F074
-EE80B5 F075
-EE80B6 F076
-EE80B7 F077
-EE80B8 F078
-EE80B9 F079
-EE80BA F07A
-EE80BB F07B
-EE80BC F07C
-EE80BD F07D
-EE80BE F07E
-EE80BF F080
-EE8180 F081
-EE8181 F082
-EE8182 F083
-EE8183 F084
-EE8184 F085
-EE8185 F086
-EE8186 F087
-EE8187 F088
-EE8188 F089
-EE8189 F08A
-EE818A F08B
-EE818B F08C
-EE818C F08D
-EE818D F08E
-EE818E F08F
-EE818F F090
-EE8190 F091
-EE8191 F092
-EE8192 F093
-EE8193 F094
-EE8194 F095
-EE8195 F096
-EE8196 F097
-EE8197 F098
-EE8198 F099
-EE8199 F09A
-EE819A F09B
-EE819B F09C
-EE819C F09D
-EE819D F09E
-EE819E F09F
-EE819F F0A0
-EE81A0 F0A1
-EE81A1 F0A2
-EE81A2 F0A3
-EE81A3 F0A4
-EE81A4 F0A5
-EE81A5 F0A6
-EE81A6 F0A7
-EE81A7 F0A8
-EE81A8 F0A9
-EE81A9 F0AA
-EE81AA F0AB
-EE81AB F0AC
-EE81AC F0AD
-EE81AD F0AE
-EE81AE F0AF
-EE81AF F0B0
-EE81B0 F0B1
-EE81B1 F0B2
-EE81B2 F0B3
-EE81B3 F0B4
-EE81B4 F0B5
-EE81B5 F0B6
-EE81B6 F0B7
-EE81B7 F0B8
-EE81B8 F0B9
-EE81B9 F0BA
-EE81BA F0BB
-EE81BB F0BC
-EE81BC F0BD
-EE81BD F0BE
-EE81BE F0BF
-EE81BF F0C0
-EE8280 F0C1
-EE8281 F0C2
-EE8282 F0C3
-EE8283 F0C4
-EE8284 F0C5
-EE8285 F0C6
-EE8286 F0C7
-EE8287 F0C8
-EE8288 F0C9
-EE8289 F0CA
-EE828A F0CB
-EE828B F0CC
-EE828C F0CD
-EE828D F0CE
-EE828E F0CF
-EE828F F0D0
-EE8290 F0D1
-EE8291 F0D2
-EE8292 F0D3
-EE8293 F0D4
-EE8294 F0D5
-EE8295 F0D6
-EE8296 F0D7
-EE8297 F0D8
-EE8298 F0D9
-EE8299 F0DA
-EE829A F0DB
-EE829B F0DC
-EE829C F0DD
-EE829D F0DE
-EE829E F0DF
-EE829F F0E0
-EE82A0 F0E1
-EE82A1 F0E2
-EE82A2 F0E3
-EE82A3 F0E4
-EE82A4 F0E5
-EE82A5 F0E6
-EE82A6 F0E7
-EE82A7 F0E8
-EE82A8 F0E9
-EE82A9 F0EA
-EE82AA F0EB
-EE82AB F0EC
-EE82AC F0ED
-EE82AD F0EE
-EE82AE F0EF
-EE82AF F0F0
-EE82B0 F0F1
-EE82B1 F0F2
-EE82B2 F0F3
-EE82B3 F0F4
-EE82B4 F0F5
-EE82B5 F0F6
-EE82B6 F0F7
-EE82B7 F0F8
-EE82B8 F0F9
-EE82B9 F0FA
-EE82BA F0FB
-EE82BB F0FC
-EE82BC F140
-EE82BD F141
-EE82BE F142
-EE82BF F143
-EE8380 F144
-EE8381 F145
-EE8382 F146
-EE8383 F147
-EE8384 F148
-EE8385 F149
-EE8386 F14A
-EE8387 F14B
-EE8388 F14C
-EE8389 F14D
-EE838A F14E
-EE838B F14F
-EE838C F150
-EE838D F151
-EE838E F152
-EE838F F153
-EE8390 F154
-EE8391 F155
-EE8392 F156
-EE8393 F157
-EE8394 F158
-EE8395 F159
-EE8396 F15A
-EE8397 F15B
-EE8398 F15C
-EE8399 F15D
-EE839A F15E
-EE839B F15F
-EE839C F160
-EE839D F161
-EE839E F162
-EE839F F163
-EE83A0 F164
-EE83A1 F165
-EE83A2 F166
-EE83A3 F167
-EE83A4 F168
-EE83A5 F169
-EE83A6 F16A
-EE83A7 F16B
-EE83A8 F16C
-EE83A9 F16D
-EE83AA F16E
-EE83AB F16F
-EE83AC F170
-EE83AD F171
-EE83AE F172
-EE83AF F173
-EE83B0 F174
-EE83B1 F175
-EE83B2 F176
-EE83B3 F177
-EE83B4 F178
-EE83B5 F179
-EE83B6 F17A
-EE83B7 F17B
-EE83B8 F17C
-EE83B9 F17D
-EE83BA F17E
-EE83BB F180
-EE83BC F181
-EE83BD F182
-EE83BE F183
-EE83BF F184
-EE8480 F185
-EE8481 F186
-EE8482 F187
-EE8483 F188
-EE8484 F189
-EE8485 F18A
-EE8486 F18B
-EE8487 F18C
-EE8488 F18D
-EE8489 F18E
-EE848A F18F
-EE848B F190
-EE848C F191
-EE848D F192
-EE848E F193
-EE848F F194
-EE8490 F195
-EE8491 F196
-EE8492 F197
-EE8493 F198
-EE8494 F199
-EE8495 F19A
-EE8496 F19B
-EE8497 F19C
-EE8498 F19D
-EE8499 F19E
-EE849A F19F
-EE849B F1A0
-EE849C F1A1
-EE849D F1A2
-EE849E F1A3
-EE849F F1A4
-EE84A0 F1A5
-EE84A1 F1A6
-EE84A2 F1A7
-EE84A3 F1A8
-EE84A4 F1A9
-EE84A5 F1AA
-EE84A6 F1AB
-EE84A7 F1AC
-EE84A8 F1AD
-EE84A9 F1AE
-EE84AA F1AF
-EE84AB F1B0
-EE84AC F1B1
-EE84AD F1B2
-EE84AE F1B3
-EE84AF F1B4
-EE84B0 F1B5
-EE84B1 F1B6
-EE84B2 F1B7
-EE84B3 F1B8
-EE84B4 F1B9
-EE84B5 F1BA
-EE84B6 F1BB
-EE84B7 F1BC
-EE84B8 F1BD
-EE84B9 F1BE
-EE84BA F1BF
-EE84BB F1C0
-EE84BC F1C1
-EE84BD F1C2
-EE84BE F1C3
-EE84BF F1C4
-EE8580 F1C5
-EE8581 F1C6
-EE8582 F1C7
-EE8583 F1C8
-EE8584 F1C9
-EE8585 F1CA
-EE8586 F1CB
-EE8587 F1CC
-EE8588 F1CD
-EE8589 F1CE
-EE858A F1CF
-EE858B F1D0
-EE858C F1D1
-EE858D F1D2
-EE858E F1D3
-EE858F F1D4
-EE8590 F1D5
-EE8591 F1D6
-EE8592 F1D7
-EE8593 F1D8
-EE8594 F1D9
-EE8595 F1DA
-EE8596 F1DB
-EE8597 F1DC
-EE8598 F1DD
-EE8599 F1DE
-EE859A F1DF
-EE859B F1E0
-EE859C F1E1
-EE859D F1E2
-EE859E F1E3
-EE859F F1E4
-EE85A0 F1E5
-EE85A1 F1E6
-EE85A2 F1E7
-EE85A3 F1E8
-EE85A4 F1E9
-EE85A5 F1EA
-EE85A6 F1EB
-EE85A7 F1EC
-EE85A8 F1ED
-EE85A9 F1EE
-EE85AA F1EF
-EE85AB F1F0
-EE85AC F1F1
-EE85AD F1F2
-EE85AE F1F3
-EE85AF F1F4
-EE85B0 F1F5
-EE85B1 F1F6
-EE85B2 F1F7
-EE85B3 F1F8
-EE85B4 F1F9
-EE85B5 F1FA
-EE85B6 F1FB
-EE85B7 F1FC
-EE85B8 F240
-EE85B9 F241
-EE85BA F242
-EE85BB F243
-EE85BC F244
-EE85BD F245
-EE85BE F246
-EE85BF F247
-EE8680 F248
-EE8681 F249
-EE8682 F24A
-EE8683 F24B
-EE8684 F24C
-EE8685 F24D
-EE8686 F24E
-EE8687 F24F
-EE8688 F250
-EE8689 F251
-EE868A F252
-EE868B F253
-EE868C F254
-EE868D F255
-EE868E F256
-EE868F F257
-EE8690 F258
-EE8691 F259
-EE8692 F25A
-EE8693 F25B
-EE8694 F25C
-EE8695 F25D
-EE8696 F25E
-EE8697 F25F
-EE8698 F260
-EE8699 F261
-EE869A F262
-EE869B F263
-EE869C F264
-EE869D F265
-EE869E F266
-EE869F F267
-EE86A0 F268
-EE86A1 F269
-EE86A2 F26A
-EE86A3 F26B
-EE86A4 F26C
-EE86A5 F26D
-EE86A6 F26E
-EE86A7 F26F
-EE86A8 F270
-EE86A9 F271
-EE86AA F272
-EE86AB F273
-EE86AC F274
-EE86AD F275
-EE86AE F276
-EE86AF F277
-EE86B0 F278
-EE86B1 F279
-EE86B2 F27A
-EE86B3 F27B
-EE86B4 F27C
-EE86B5 F27D
-EE86B6 F27E
-EE86B7 F280
-EE86B8 F281
-EE86B9 F282
-EE86BA F283
-EE86BB F284
-EE86BC F285
-EE86BD F286
-EE86BE F287
-EE86BF F288
-EE8780 F289
-EE8781 F28A
-EE8782 F28B
-EE8783 F28C
-EE8784 F28D
-EE8785 F28E
-EE8786 F28F
-EE8787 F290
-EE8788 F291
-EE8789 F292
-EE878A F293
-EE878B F294
-EE878C F295
-EE878D F296
-EE878E F297
-EE878F F298
-EE8790 F299
-EE8791 F29A
-EE8792 F29B
-EE8793 F29C
-EE8794 F29D
-EE8795 F29E
-EE8796 F29F
-EE8797 F2A0
-EE8798 F2A1
-EE8799 F2A2
-EE879A F2A3
-EE879B F2A4
-EE879C F2A5
-EE879D F2A6
-EE879E F2A7
-EE879F F2A8
-EE87A0 F2A9
-EE87A1 F2AA
-EE87A2 F2AB
-EE87A3 F2AC
-EE87A4 F2AD
-EE87A5 F2AE
-EE87A6 F2AF
-EE87A7 F2B0
-EE87A8 F2B1
-EE87A9 F2B2
-EE87AA F2B3
-EE87AB F2B4
-EE87AC F2B5
-EE87AD F2B6
-EE87AE F2B7
-EE87AF F2B8
-EE87B0 F2B9
-EE87B1 F2BA
-EE87B2 F2BB
-EE87B3 F2BC
-EE87B4 F2BD
-EE87B5 F2BE
-EE87B6 F2BF
-EE87B7 F2C0
-EE87B8 F2C1
-EE87B9 F2C2
-EE87BA F2C3
-EE87BB F2C4
-EE87BC F2C5
-EE87BD F2C6
-EE87BE F2C7
-EE87BF F2C8
-EE8880 F2C9
-EE8881 F2CA
-EE8882 F2CB
-EE8883 F2CC
-EE8884 F2CD
-EE8885 F2CE
-EE8886 F2CF
-EE8887 F2D0
-EE8888 F2D1
-EE8889 F2D2
-EE888A F2D3
-EE888B F2D4
-EE888C F2D5
-EE888D F2D6
-EE888E F2D7
-EE888F F2D8
-EE8890 F2D9
-EE8891 F2DA
-EE8892 F2DB
-EE8893 F2DC
-EE8894 F2DD
-EE8895 F2DE
-EE8896 F2DF
-EE8897 F2E0
-EE8898 F2E1
-EE8899 F2E2
-EE889A F2E3
-EE889B F2E4
-EE889C F2E5
-EE889D F2E6
-EE889E F2E7
-EE889F F2E8
-EE88A0 F2E9
-EE88A1 F2EA
-EE88A2 F2EB
-EE88A3 F2EC
-EE88A4 F2ED
-EE88A5 F2EE
-EE88A6 F2EF
-EE88A7 F2F0
-EE88A8 F2F1
-EE88A9 F2F2
-EE88AA F2F3
-EE88AB F2F4
-EE88AC F2F5
-EE88AD F2F6
-EE88AE F2F7
-EE88AF F2F8
-EE88B0 F2F9
-EE88B1 F2FA
-EE88B2 F2FB
-EE88B3 F2FC
-EE88B4 F340
-EE88B5 F341
-EE88B6 F342
-EE88B7 F343
-EE88B8 F344
-EE88B9 F345
-EE88BA F346
-EE88BB F347
-EE88BC F348
-EE88BD F349
-EE88BE F34A
-EE88BF F34B
-EE8980 F34C
-EE8981 F34D
-EE8982 F34E
-EE8983 F34F
-EE8984 F350
-EE8985 F351
-EE8986 F352
-EE8987 F353
-EE8988 F354
-EE8989 F355
-EE898A F356
-EE898B F357
-EE898C F358
-EE898D F359
-EE898E F35A
-EE898F F35B
-EE8990 F35C
-EE8991 F35D
-EE8992 F35E
-EE8993 F35F
-EE8994 F360
-EE8995 F361
-EE8996 F362
-EE8997 F363
-EE8998 F364
-EE8999 F365
-EE899A F366
-EE899B F367
-EE899C F368
-EE899D F369
-EE899E F36A
-EE899F F36B
-EE89A0 F36C
-EE89A1 F36D
-EE89A2 F36E
-EE89A3 F36F
-EE89A4 F370
-EE89A5 F371
-EE89A6 F372
-EE89A7 F373
-EE89A8 F374
-EE89A9 F375
-EE89AA F376
-EE89AB F377
-EE89AC F378
-EE89AD F379
-EE89AE F37A
-EE89AF F37B
-EE89B0 F37C
-EE89B1 F37D
-EE89B2 F37E
-EE89B3 F380
-EE89B4 F381
-EE89B5 F382
-EE89B6 F383
-EE89B7 F384
-EE89B8 F385
-EE89B9 F386
-EE89BA F387
-EE89BB F388
-EE89BC F389
-EE89BD F38A
-EE89BE F38B
-EE89BF F38C
-EE8A80 F38D
-EE8A81 F38E
-EE8A82 F38F
-EE8A83 F390
-EE8A84 F391
-EE8A85 F392
-EE8A86 F393
-EE8A87 F394
-EE8A88 F395
-EE8A89 F396
-EE8A8A F397
-EE8A8B F398
-EE8A8C F399
-EE8A8D F39A
-EE8A8E F39B
-EE8A8F F39C
-EE8A90 F39D
-EE8A91 F39E
-EE8A92 F39F
-EE8A93 F3A0
-EE8A94 F3A1
-EE8A95 F3A2
-EE8A96 F3A3
-EE8A97 F3A4
-EE8A98 F3A5
-EE8A99 F3A6
-EE8A9A F3A7
-EE8A9B F3A8
-EE8A9C F3A9
-EE8A9D F3AA
-EE8A9E F3AB
-EE8A9F F3AC
-EE8AA0 F3AD
-EE8AA1 F3AE
-EE8AA2 F3AF
-EE8AA3 F3B0
-EE8AA4 F3B1
-EE8AA5 F3B2
-EE8AA6 F3B3
-EE8AA7 F3B4
-EE8AA8 F3B5
-EE8AA9 F3B6
-EE8AAA F3B7
-EE8AAB F3B8
-EE8AAC F3B9
-EE8AAD F3BA
-EE8AAE F3BB
-EE8AAF F3BC
-EE8AB0 F3BD
-EE8AB1 F3BE
-EE8AB2 F3BF
-EE8AB3 F3C0
-EE8AB4 F3C1
-EE8AB5 F3C2
-EE8AB6 F3C3
-EE8AB7 F3C4
-EE8AB8 F3C5
-EE8AB9 F3C6
-EE8ABA F3C7
-EE8ABB F3C8
-EE8ABC F3C9
-EE8ABD F3CA
-EE8ABE F3CB
-EE8ABF F3CC
-EE8B80 F3CD
-EE8B81 F3CE
-EE8B82 F3CF
-EE8B83 F3D0
-EE8B84 F3D1
-EE8B85 F3D2
-EE8B86 F3D3
-EE8B87 F3D4
-EE8B88 F3D5
-EE8B89 F3D6
-EE8B8A F3D7
-EE8B8B F3D8
-EE8B8C F3D9
-EE8B8D F3DA
-EE8B8E F3DB
-EE8B8F F3DC
-EE8B90 F3DD
-EE8B91 F3DE
-EE8B92 F3DF
-EE8B93 F3E0
-EE8B94 F3E1
-EE8B95 F3E2
-EE8B96 F3E3
-EE8B97 F3E4
-EE8B98 F3E5
-EE8B99 F3E6
-EE8B9A F3E7
-EE8B9B F3E8
-EE8B9C F3E9
-EE8B9D F3EA
-EE8B9E F3EB
-EE8B9F F3EC
-EE8BA0 F3ED
-EE8BA1 F3EE
-EE8BA2 F3EF
-EE8BA3 F3F0
-EE8BA4 F3F1
-EE8BA5 F3F2
-EE8BA6 F3F3
-EE8BA7 F3F4
-EE8BA8 F3F5
-EE8BA9 F3F6
-EE8BAA F3F7
-EE8BAB F3F8
-EE8BAC F3F9
-EE8BAD F3FA
-EE8BAE F3FB
-EE8BAF F3FC
-EE8BB0 F440
-EE8BB1 F441
-EE8BB2 F442
-EE8BB3 F443
-EE8BB4 F444
-EE8BB5 F445
-EE8BB6 F446
-EE8BB7 F447
-EE8BB8 F448
-EE8BB9 F449
-EE8BBA F44A
-EE8BBB F44B
-EE8BBC F44C
-EE8BBD F44D
-EE8BBE F44E
-EE8BBF F44F
-EE8C80 F450
-EE8C81 F451
-EE8C82 F452
-EE8C83 F453
-EE8C84 F454
-EE8C85 F455
-EE8C86 F456
-EE8C87 F457
-EE8C88 F458
-EE8C89 F459
-EE8C8A F45A
-EE8C8B F45B
-EE8C8C F45C
-EE8C8D F45D
-EE8C8E F45E
-EE8C8F F45F
-EE8C90 F460
-EE8C91 F461
-EE8C92 F462
-EE8C93 F463
-EE8C94 F464
-EE8C95 F465
-EE8C96 F466
-EE8C97 F467
-EE8C98 F468
-EE8C99 F469
-EE8C9A F46A
-EE8C9B F46B
-EE8C9C F46C
-EE8C9D F46D
-EE8C9E F46E
-EE8C9F F46F
-EE8CA0 F470
-EE8CA1 F471
-EE8CA2 F472
-EE8CA3 F473
-EE8CA4 F474
-EE8CA5 F475
-EE8CA6 F476
-EE8CA7 F477
-EE8CA8 F478
-EE8CA9 F479
-EE8CAA F47A
-EE8CAB F47B
-EE8CAC F47C
-EE8CAD F47D
-EE8CAE F47E
-EE8CAF F480
-EE8CB0 F481
-EE8CB1 F482
-EE8CB2 F483
-EE8CB3 F484
-EE8CB4 F485
-EE8CB5 F486
-EE8CB6 F487
-EE8CB7 F488
-EE8CB8 F489
-EE8CB9 F48A
-EE8CBA F48B
-EE8CBB F48C
-EE8CBC F48D
-EE8CBD F48E
-EE8CBE F48F
-EE8CBF F490
-EE8D80 F491
-EE8D81 F492
-EE8D82 F493
-EE8D83 F494
-EE8D84 F495
-EE8D85 F496
-EE8D86 F497
-EE8D87 F498
-EE8D88 F499
-EE8D89 F49A
-EE8D8A F49B
-EE8D8B F49C
-EE8D8C F49D
-EE8D8D F49E
-EE8D8E F49F
-EE8D8F F4A0
-EE8D90 F4A1
-EE8D91 F4A2
-EE8D92 F4A3
-EE8D93 F4A4
-EE8D94 F4A5
-EE8D95 F4A6
-EE8D96 F4A7
-EE8D97 F4A8
-EE8D98 F4A9
-EE8D99 F4AA
-EE8D9A F4AB
-EE8D9B F4AC
-EE8D9C F4AD
-EE8D9D F4AE
-EE8D9E F4AF
-EE8D9F F4B0
-EE8DA0 F4B1
-EE8DA1 F4B2
-EE8DA2 F4B3
-EE8DA3 F4B4
-EE8DA4 F4B5
-EE8DA5 F4B6
-EE8DA6 F4B7
-EE8DA7 F4B8
-EE8DA8 F4B9
-EE8DA9 F4BA
-EE8DAA F4BB
-EE8DAB F4BC
-EE8DAC F4BD
-EE8DAD F4BE
-EE8DAE F4BF
-EE8DAF F4C0
-EE8DB0 F4C1
-EE8DB1 F4C2
-EE8DB2 F4C3
-EE8DB3 F4C4
-EE8DB4 F4C5
-EE8DB5 F4C6
-EE8DB6 F4C7
-EE8DB7 F4C8
-EE8DB8 F4C9
-EE8DB9 F4CA
-EE8DBA F4CB
-EE8DBB F4CC
-EE8DBC F4CD
-EE8DBD F4CE
-EE8DBE F4CF
-EE8DBF F4D0
-EE8E80 F4D1
-EE8E81 F4D2
-EE8E82 F4D3
-EE8E83 F4D4
-EE8E84 F4D5
-EE8E85 F4D6
-EE8E86 F4D7
-EE8E87 F4D8
-EE8E88 F4D9
-EE8E89 F4DA
-EE8E8A F4DB
-EE8E8B F4DC
-EE8E8C F4DD
-EE8E8D F4DE
-EE8E8E F4DF
-EE8E8F F4E0
-EE8E90 F4E1
-EE8E91 F4E2
-EE8E92 F4E3
-EE8E93 F4E4
-EE8E94 F4E5
-EE8E95 F4E6
-EE8E96 F4E7
-EE8E97 F4E8
-EE8E98 F4E9
-EE8E99 F4EA
-EE8E9A F4EB
-EE8E9B F4EC
-EE8E9C F4ED
-EE8E9D F4EE
-EE8E9E F4EF
-EE8E9F F4F0
-EE8EA0 F4F1
-EE8EA1 F4F2
-EE8EA2 F4F3
-EE8EA3 F4F4
-EE8EA4 F4F5
-EE8EA5 F4F6
-EE8EA6 F4F7
-EE8EA7 F4F8
-EE8EA8 F4F9
-EE8EA9 F4FA
-EE8EAA F4FB
-EE8EAB F4FC
-EE8EAC F540
-EE8EAD F541
-EE8EAE F542
-EE8EAF F543
-EE8EB0 F544
-EE8EB1 F545
-EE8EB2 F546
-EE8EB3 F547
-EE8EB4 F548
-EE8EB5 F549
-EE8EB6 F54A
-EE8EB7 F54B
-EE8EB8 F54C
-EE8EB9 F54D
-EE8EBA F54E
-EE8EBB F54F
-EE8EBC F550
-EE8EBD F551
-EE8EBE F552
-EE8EBF F553
-EE8F80 F554
-EE8F81 F555
-EE8F82 F556
-EE8F83 F557
-EE8F84 F558
-EE8F85 F559
-EE8F86 F55A
-EE8F87 F55B
-EE8F88 F55C
-EE8F89 F55D
-EE8F8A F55E
-EE8F8B F55F
-EE8F8C F560
-EE8F8D F561
-EE8F8E F562
-EE8F8F F563
-EE8F90 F564
-EE8F91 F565
-EE8F92 F566
-EE8F93 F567
-EE8F94 F568
-EE8F95 F569
-EE8F96 F56A
-EE8F97 F56B
-EE8F98 F56C
-EE8F99 F56D
-EE8F9A F56E
-EE8F9B F56F
-EE8F9C F570
-EE8F9D F571
-EE8F9E F572
-EE8F9F F573
-EE8FA0 F574
-EE8FA1 F575
-EE8FA2 F576
-EE8FA3 F577
-EE8FA4 F578
-EE8FA5 F579
-EE8FA6 F57A
-EE8FA7 F57B
-EE8FA8 F57C
-EE8FA9 F57D
-EE8FAA F57E
-EE8FAB F580
-EE8FAC F581
-EE8FAD F582
-EE8FAE F583
-EE8FAF F584
-EE8FB0 F585
-EE8FB1 F586
-EE8FB2 F587
-EE8FB3 F588
-EE8FB4 F589
-EE8FB5 F58A
-EE8FB6 F58B
-EE8FB7 F58C
-EE8FB8 F58D
-EE8FB9 F58E
-EE8FBA F58F
-EE8FBB F590
-EE8FBC F591
-EE8FBD F592
-EE8FBE F593
-EE8FBF F594
-EE9080 F595
-EE9081 F596
-EE9082 F597
-EE9083 F598
-EE9084 F599
-EE9085 F59A
-EE9086 F59B
-EE9087 F59C
-EE9088 F59D
-EE9089 F59E
-EE908A F59F
-EE908B F5A0
-EE908C F5A1
-EE908D F5A2
-EE908E F5A3
-EE908F F5A4
-EE9090 F5A5
-EE9091 F5A6
-EE9092 F5A7
-EE9093 F5A8
-EE9094 F5A9
-EE9095 F5AA
-EE9096 F5AB
-EE9097 F5AC
-EE9098 F5AD
-EE9099 F5AE
-EE909A F5AF
-EE909B F5B0
-EE909C F5B1
-EE909D F5B2
-EE909E F5B3
-EE909F F5B4
-EE90A0 F5B5
-EE90A1 F5B6
-EE90A2 F5B7
-EE90A3 F5B8
-EE90A4 F5B9
-EE90A5 F5BA
-EE90A6 F5BB
-EE90A7 F5BC
-EE90A8 F5BD
-EE90A9 F5BE
-EE90AA F5BF
-EE90AB F5C0
-EE90AC F5C1
-EE90AD F5C2
-EE90AE F5C3
-EE90AF F5C4
-EE90B0 F5C5
-EE90B1 F5C6
-EE90B2 F5C7
-EE90B3 F5C8
-EE90B4 F5C9
-EE90B5 F5CA
-EE90B6 F5CB
-EE90B7 F5CC
-EE90B8 F5CD
-EE90B9 F5CE
-EE90BA F5CF
-EE90BB F5D0
-EE90BC F5D1
-EE90BD F5D2
-EE90BE F5D3
-EE90BF F5D4
-EE9180 F5D5
-EE9181 F5D6
-EE9182 F5D7
-EE9183 F5D8
-EE9184 F5D9
-EE9185 F5DA
-EE9186 F5DB
-EE9187 F5DC
-EE9188 F5DD
-EE9189 F5DE
-EE918A F5DF
-EE918B F5E0
-EE918C F5E1
-EE918D F5E2
-EE918E F5E3
-EE918F F5E4
-EE9190 F5E5
-EE9191 F5E6
-EE9192 F5E7
-EE9193 F5E8
-EE9194 F5E9
-EE9195 F5EA
-EE9196 F5EB
-EE9197 F5EC
-EE9198 F5ED
-EE9199 F5EE
-EE919A F5EF
-EE919B F5F0
-EE919C F5F1
-EE919D F5F2
-EE919E F5F3
-EE919F F5F4
-EE91A0 F5F5
-EE91A1 F5F6
-EE91A2 F5F7
-EE91A3 F5F8
-EE91A4 F5F9
-EE91A5 F5FA
-EE91A6 F5FB
-EE91A7 F5FC
-EE91A8 F640
-EE91A9 F641
-EE91AA F642
-EE91AB F643
-EE91AC F644
-EE91AD F645
-EE91AE F646
-EE91AF F647
-EE91B0 F648
-EE91B1 F649
-EE91B2 F64A
-EE91B3 F64B
-EE91B4 F64C
-EE91B5 F64D
-EE91B6 F64E
-EE91B7 F64F
-EE91B8 F650
-EE91B9 F651
-EE91BA F652
-EE91BB F653
-EE91BC F654
-EE91BD F655
-EE91BE F656
-EE91BF F657
-EE9280 F658
-EE9281 F659
-EE9282 F65A
-EE9283 F65B
-EE9284 F65C
-EE9285 F65D
-EE9286 F65E
-EE9287 F65F
-EE9288 F660
-EE9289 F661
-EE928A F662
-EE928B F663
-EE928C F664
-EE928D F665
-EE928E F666
-EE928F F667
-EE9290 F668
-EE9291 F669
-EE9292 F66A
-EE9293 F66B
-EE9294 F66C
-EE9295 F66D
-EE9296 F66E
-EE9297 F66F
-EE9298 F670
-EE9299 F671
-EE929A F672
-EE929B F673
-EE929C F674
-EE929D F675
-EE929E F676
-EE929F F677
-EE92A0 F678
-EE92A1 F679
-EE92A2 F67A
-EE92A3 F67B
-EE92A4 F67C
-EE92A5 F67D
-EE92A6 F67E
-EE92A7 F680
-EE92A8 F681
-EE92A9 F682
-EE92AA F683
-EE92AB F684
-EE92AC F685
-EE92AD F686
-EE92AE F687
-EE92AF F688
-EE92B0 F689
-EE92B1 F68A
-EE92B2 F68B
-EE92B3 F68C
-EE92B4 F68D
-EE92B5 F68E
-EE92B6 F68F
-EE92B7 F690
-EE92B8 F691
-EE92B9 F692
-EE92BA F693
-EE92BB F694
-EE92BC F695
-EE92BD F696
-EE92BE F697
-EE92BF F698
-EE9380 F699
-EE9381 F69A
-EE9382 F69B
-EE9383 F69C
-EE9384 F69D
-EE9385 F69E
-EE9386 F69F
-EE9387 F6A0
-EE9388 F6A1
-EE9389 F6A2
-EE938A F6A3
-EE938B F6A4
-EE938C F6A5
-EE938D F6A6
-EE938E F6A7
-EE938F F6A8
-EE9390 F6A9
-EE9391 F6AA
-EE9392 F6AB
-EE9393 F6AC
-EE9394 F6AD
-EE9395 F6AE
-EE9396 F6AF
-EE9397 F6B0
-EE9398 F6B1
-EE9399 F6B2
-EE939A F6B3
-EE939B F6B4
-EE939C F6B5
-EE939D F6B6
-EE939E F6B7
-EE939F F6B8
-EE93A0 F6B9
-EE93A1 F6BA
-EE93A2 F6BB
-EE93A3 F6BC
-EE93A4 F6BD
-EE93A5 F6BE
-EE93A6 F6BF
-EE93A7 F6C0
-EE93A8 F6C1
-EE93A9 F6C2
-EE93AA F6C3
-EE93AB F6C4
-EE93AC F6C5
-EE93AD F6C6
-EE93AE F6C7
-EE93AF F6C8
-EE93B0 F6C9
-EE93B1 F6CA
-EE93B2 F6CB
-EE93B3 F6CC
-EE93B4 F6CD
-EE93B5 F6CE
-EE93B6 F6CF
-EE93B7 F6D0
-EE93B8 F6D1
-EE93B9 F6D2
-EE93BA F6D3
-EE93BB F6D4
-EE93BC F6D5
-EE93BD F6D6
-EE93BE F6D7
-EE93BF F6D8
-EE9480 F6D9
-EE9481 F6DA
-EE9482 F6DB
-EE9483 F6DC
-EE9484 F6DD
-EE9485 F6DE
-EE9486 F6DF
-EE9487 F6E0
-EE9488 F6E1
-EE9489 F6E2
-EE948A F6E3
-EE948B F6E4
-EE948C F6E5
-EE948D F6E6
-EE948E F6E7
-EE948F F6E8
-EE9490 F6E9
-EE9491 F6EA
-EE9492 F6EB
-EE9493 F6EC
-EE9494 F6ED
-EE9495 F6EE
-EE9496 F6EF
-EE9497 F6F0
-EE9498 F6F1
-EE9499 F6F2
-EE949A F6F3
-EE949B F6F4
-EE949C F6F5
-EE949D F6F6
-EE949E F6F7
-EE949F F6F8
-EE94A0 F6F9
-EE94A1 F6FA
-EE94A2 F6FB
-EE94A3 F6FC
-EE94A4 F740
-EE94A5 F741
-EE94A6 F742
-EE94A7 F743
-EE94A8 F744
-EE94A9 F745
-EE94AA F746
-EE94AB F747
-EE94AC F748
-EE94AD F749
-EE94AE F74A
-EE94AF F74B
-EE94B0 F74C
-EE94B1 F74D
-EE94B2 F74E
-EE94B3 F74F
-EE94B4 F750
-EE94B5 F751
-EE94B6 F752
-EE94B7 F753
-EE94B8 F754
-EE94B9 F755
-EE94BA F756
-EE94BB F757
-EE94BC F758
-EE94BD F759
-EE94BE F75A
-EE94BF F75B
-EE9580 F75C
-EE9581 F75D
-EE9582 F75E
-EE9583 F75F
-EE9584 F760
-EE9585 F761
-EE9586 F762
-EE9587 F763
-EE9588 F764
-EE9589 F765
-EE958A F766
-EE958B F767
-EE958C F768
-EE958D F769
-EE958E F76A
-EE958F F76B
-EE9590 F76C
-EE9591 F76D
-EE9592 F76E
-EE9593 F76F
-EE9594 F770
-EE9595 F771
-EE9596 F772
-EE9597 F773
-EE9598 F774
-EE9599 F775
-EE959A F776
-EE959B F777
-EE959C F778
-EE959D F779
-EE959E F77A
-EE959F F77B
-EE95A0 F77C
-EE95A1 F77D
-EE95A2 F77E
-EE95A3 F780
-EE95A4 F781
-EE95A5 F782
-EE95A6 F783
-EE95A7 F784
-EE95A8 F785
-EE95A9 F786
-EE95AA F787
-EE95AB F788
-EE95AC F789
-EE95AD F78A
-EE95AE F78B
-EE95AF F78C
-EE95B0 F78D
-EE95B1 F78E
-EE95B2 F78F
-EE95B3 F790
-EE95B4 F791
-EE95B5 F792
-EE95B6 F793
-EE95B7 F794
-EE95B8 F795
-EE95B9 F796
-EE95BA F797
-EE95BB F798
-EE95BC F799
-EE95BD F79A
-EE95BE F79B
-EE95BF F79C
-EE9680 F79D
-EE9681 F79E
-EE9682 F79F
-EE9683 F7A0
-EE9684 F7A1
-EE9685 F7A2
-EE9686 F7A3
-EE9687 F7A4
-EE9688 F7A5
-EE9689 F7A6
-EE968A F7A7
-EE968B F7A8
-EE968C F7A9
-EE968D F7AA
-EE968E F7AB
-EE968F F7AC
-EE9690 F7AD
-EE9691 F7AE
-EE9692 F7AF
-EE9693 F7B0
-EE9694 F7B1
-EE9695 F7B2
-EE9696 F7B3
-EE9697 F7B4
-EE9698 F7B5
-EE9699 F7B6
-EE969A F7B7
-EE969B F7B8
-EE969C F7B9
-EE969D F7BA
-EE969E F7BB
-EE969F F7BC
-EE96A0 F7BD
-EE96A1 F7BE
-EE96A2 F7BF
-EE96A3 F7C0
-EE96A4 F7C1
-EE96A5 F7C2
-EE96A6 F7C3
-EE96A7 F7C4
-EE96A8 F7C5
-EE96A9 F7C6
-EE96AA F7C7
-EE96AB F7C8
-EE96AC F7C9
-EE96AD F7CA
-EE96AE F7CB
-EE96AF F7CC
-EE96B0 F7CD
-EE96B1 F7CE
-EE96B2 F7CF
-EE96B3 F7D0
-EE96B4 F7D1
-EE96B5 F7D2
-EE96B6 F7D3
-EE96B7 F7D4
-EE96B8 F7D5
-EE96B9 F7D6
-EE96BA F7D7
-EE96BB F7D8
-EE96BC F7D9
-EE96BD F7DA
-EE96BE F7DB
-EE96BF F7DC
-EE9780 F7DD
-EE9781 F7DE
-EE9782 F7DF
-EE9783 F7E0
-EE9784 F7E1
-EE9785 F7E2
-EE9786 F7E3
-EE9787 F7E4
-EE9788 F7E5
-EE9789 F7E6
-EE978A F7E7
-EE978B F7E8
-EE978C F7E9
-EE978D F7EA
-EE978E F7EB
-EE978F F7EC
-EE9790 F7ED
-EE9791 F7EE
-EE9792 F7EF
-EE9793 F7F0
-EE9794 F7F1
-EE9795 F7F2
-EE9796 F7F3
-EE9797 F7F4
-EE9798 F7F5
-EE9799 F7F6
-EE979A F7F7
-EE979B F7F8
-EE979C F7F9
-EE979D F7FA
-EE979E F7FB
-EE979F F7FC
-EE97A0 F840
-EE97A1 F841
-EE97A2 F842
-EE97A3 F843
-EE97A4 F844
-EE97A5 F845
-EE97A6 F846
-EE97A7 F847
-EE97A8 F848
-EE97A9 F849
-EE97AA F84A
-EE97AB F84B
-EE97AC F84C
-EE97AD F84D
-EE97AE F84E
-EE97AF F84F
-EE97B0 F850
-EE97B1 F851
-EE97B2 F852
-EE97B3 F853
-EE97B4 F854
-EE97B5 F855
-EE97B6 F856
-EE97B7 F857
-EE97B8 F858
-EE97B9 F859
-EE97BA F85A
-EE97BB F85B
-EE97BC F85C
-EE97BD F85D
-EE97BE F85E
-EE97BF F85F
-EE9880 F860
-EE9881 F861
-EE9882 F862
-EE9883 F863
-EE9884 F864
-EE9885 F865
-EE9886 F866
-EE9887 F867
-EE9888 F868
-EE9889 F869
-EE988A F86A
-EE988B F86B
-EE988C F86C
-EE988D F86D
-EE988E F86E
-EE988F F86F
-EE9890 F870
-EE9891 F871
-EE9892 F872
-EE9893 F873
-EE9894 F874
-EE9895 F875
-EE9896 F876
-EE9897 F877
-EE9898 F878
-EE9899 F879
-EE989A F87A
-EE989B F87B
-EE989C F87C
-EE989D F87D
-EE989E F87E
-EE989F F880
-EE98A0 F881
-EE98A1 F882
-EE98A2 F883
-EE98A3 F884
-EE98A4 F885
-EE98A5 F886
-EE98A6 F887
-EE98A7 F888
-EE98A8 F889
-EE98A9 F88A
-EE98AA F88B
-EE98AB F88C
-EE98AC F88D
-EE98AD F88E
-EE98AE F88F
-EE98AF F890
-EE98B0 F891
-EE98B1 F892
-EE98B2 F893
-EE98B3 F894
-EE98B4 F895
-EE98B5 F896
-EE98B6 F897
-EE98B7 F898
-EE98B8 F899
-EE98B9 F89A
-EE98BA F89B
-EE98BB F89C
-EE98BC F89D
-EE98BD F89E
-EE98BE F89F
-EE98BF F8A0
-EE9980 F8A1
-EE9981 F8A2
-EE9982 F8A3
-EE9983 F8A4
-EE9984 F8A5
-EE9985 F8A6
-EE9986 F8A7
-EE9987 F8A8
-EE9988 F8A9
-EE9989 F8AA
-EE998A F8AB
-EE998B F8AC
-EE998C F8AD
-EE998D F8AE
-EE998E F8AF
-EE998F F8B0
-EE9990 F8B1
-EE9991 F8B2
-EE9992 F8B3
-EE9993 F8B4
-EE9994 F8B5
-EE9995 F8B6
-EE9996 F8B7
-EE9997 F8B8
-EE9998 F8B9
-EE9999 F8BA
-EE999A F8BB
-EE999B F8BC
-EE999C F8BD
-EE999D F8BE
-EE999E F8BF
-EE999F F8C0
-EE99A0 F8C1
-EE99A1 F8C2
-EE99A2 F8C3
-EE99A3 F8C4
-EE99A4 F8C5
-EE99A5 F8C6
-EE99A6 F8C7
-EE99A7 F8C8
-EE99A8 F8C9
-EE99A9 F8CA
-EE99AA F8CB
-EE99AB F8CC
-EE99AC F8CD
-EE99AD F8CE
-EE99AE F8CF
-EE99AF F8D0
-EE99B0 F8D1
-EE99B1 F8D2
-EE99B2 F8D3
-EE99B3 F8D4
-EE99B4 F8D5
-EE99B5 F8D6
-EE99B6 F8D7
-EE99B7 F8D8
-EE99B8 F8D9
-EE99B9 F8DA
-EE99BA F8DB
-EE99BB F8DC
-EE99BC F8DD
-EE99BD F8DE
-EE99BE F8DF
-EE99BF F8E0
-EE9A80 F8E1
-EE9A81 F8E2
-EE9A82 F8E3
-EE9A83 F8E4
-EE9A84 F8E5
-EE9A85 F8E6
-EE9A86 F8E7
-EE9A87 F8E8
-EE9A88 F8E9
-EE9A89 F8EA
-EE9A8A F8EB
-EE9A8B F8EC
-EE9A8C F8ED
-EE9A8D F8EE
-EE9A8E F8EF
-EE9A8F F8F0
-EE9A90 F8F1
-EE9A91 F8F2
-EE9A92 F8F3
-EE9A93 F8F4
-EE9A94 F8F5
-EE9A95 F8F6
-EE9A96 F8F7
-EE9A97 F8F8
-EE9A98 F8F9
-EE9A99 F8FA
-EE9A9A F8FB
-EE9A9B F8FC
-EE9A9C F940
-EE9A9D F941
-EE9A9E F942
-EE9A9F F943
-EE9AA0 F944
-EE9AA1 F945
-EE9AA2 F946
-EE9AA3 F947
-EE9AA4 F948
-EE9AA5 F949
-EE9AA6 F94A
-EE9AA7 F94B
-EE9AA8 F94C
-EE9AA9 F94D
-EE9AAA F94E
-EE9AAB F94F
-EE9AAC F950
-EE9AAD F951
-EE9AAE F952
-EE9AAF F953
-EE9AB0 F954
-EE9AB1 F955
-EE9AB2 F956
-EE9AB3 F957
-EE9AB4 F958
-EE9AB5 F959
-EE9AB6 F95A
-EE9AB7 F95B
-EE9AB8 F95C
-EE9AB9 F95D
-EE9ABA F95E
-EE9ABB F95F
-EE9ABC F960
-EE9ABD F961
-EE9ABE F962
-EE9ABF F963
-EE9B80 F964
-EE9B81 F965
-EE9B82 F966
-EE9B83 F967
-EE9B84 F968
-EE9B85 F969
-EE9B86 F96A
-EE9B87 F96B
-EE9B88 F96C
-EE9B89 F96D
-EE9B8A F96E
-EE9B8B F96F
-EE9B8C F970
-EE9B8D F971
-EE9B8E F972
-EE9B8F F973
-EE9B90 F974
-EE9B91 F975
-EE9B92 F976
-EE9B93 F977
-EE9B94 F978
-EE9B95 F979
-EE9B96 F97A
-EE9B97 F97B
-EE9B98 F97C
-EE9B99 F97D
-EE9B9A F97E
-EE9B9B F980
-EE9B9C F981
-EE9B9D F982
-EE9B9E F983
-EE9B9F F984
-EE9BA0 F985
-EE9BA1 F986
-EE9BA2 F987
-EE9BA3 F988
-EE9BA4 F989
-EE9BA5 F98A
-EE9BA6 F98B
-EE9BA7 F98C
-EE9BA8 F98D
-EE9BA9 F98E
-EE9BAA F98F
-EE9BAB F990
-EE9BAC F991
-EE9BAD F992
-EE9BAE F993
-EE9BAF F994
-EE9BB0 F995
-EE9BB1 F996
-EE9BB2 F997
-EE9BB3 F998
-EE9BB4 F999
-EE9BB5 F99A
-EE9BB6 F99B
-EE9BB7 F99C
-EE9BB8 F99D
-EE9BB9 F99E
-EE9BBA F99F
-EE9BBB F9A0
-EE9BBC F9A1
-EE9BBD F9A2
-EE9BBE F9A3
-EE9BBF F9A4
-EE9C80 F9A5
-EE9C81 F9A6
-EE9C82 F9A7
-EE9C83 F9A8
-EE9C84 F9A9
-EE9C85 F9AA
-EE9C86 F9AB
-EE9C87 F9AC
-EE9C88 F9AD
-EE9C89 F9AE
-EE9C8A F9AF
-EE9C8B F9B0
-EE9C8C F9B1
-EE9C8D F9B2
-EE9C8E F9B3
-EE9C8F F9B4
-EE9C90 F9B5
-EE9C91 F9B6
-EE9C92 F9B7
-EE9C93 F9B8
-EE9C94 F9B9
-EE9C95 F9BA
-EE9C96 F9BB
-EE9C97 F9BC
-EE9C98 F9BD
-EE9C99 F9BE
-EE9C9A F9BF
-EE9C9B F9C0
-EE9C9C F9C1
-EE9C9D F9C2
-EE9C9E F9C3
-EE9C9F F9C4
-EE9CA0 F9C5
-EE9CA1 F9C6
-EE9CA2 F9C7
-EE9CA3 F9C8
-EE9CA4 F9C9
-EE9CA5 F9CA
-EE9CA6 F9CB
-EE9CA7 F9CC
-EE9CA8 F9CD
-EE9CA9 F9CE
-EE9CAA F9CF
-EE9CAB F9D0
-EE9CAC F9D1
-EE9CAD F9D2
-EE9CAE F9D3
-EE9CAF F9D4
-EE9CB0 F9D5
-EE9CB1 F9D6
-EE9CB2 F9D7
-EE9CB3 F9D8
-EE9CB4 F9D9
-EE9CB5 F9DA
-EE9CB6 F9DB
-EE9CB7 F9DC
-EE9CB8 F9DD
-EE9CB9 F9DE
-EE9CBA F9DF
-EE9CBB F9E0
-EE9CBC F9E1
-EE9CBD F9E2
-EE9CBE F9E3
-EE9CBF F9E4
-EE9D80 F9E5
-EE9D81 F9E6
-EE9D82 F9E7
-EE9D83 F9E8
-EE9D84 F9E9
-EE9D85 F9EA
-EE9D86 F9EB
-EE9D87 F9EC
-EE9D88 F9ED
-EE9D89 F9EE
-EE9D8A F9EF
-EE9D8B F9F0
-EE9D8C F9F1
-EE9D8D F9F2
-EE9D8E F9F3
-EE9D8F F9F4
-EE9D90 F9F5
-EE9D91 F9F6
-EE9D92 F9F7
-EE9D93 F9F8
-EE9D94 F9F9
-EE9D95 F9FA
-EE9D96 F9FB
-EE9D97 F9FC
-EFA4A9 FAE0
-EFA79C FBE9
-EFA88E FA90
-EFA88F FA9B
-EFA890 FA9C
-EFA891 FAB1
-EFA892 FAD8
-EFA893 FAE8
-EFA894 FAEA
-EFA895 FB58
-EFA896 FB5E
-EFA897 FB75
-EFA898 FB7D
-EFA899 FB7E
-EFA89A FB80
-EFA89B FB82
-EFA89C FB86
-EFA89D FB89
-EFA89E FB92
-EFA89F FB9D
-EFA8A0 FB9F
-EFA8A1 FBA0
-EFA8A2 FBA9
-EFA8A3 FBB1
-EFA8A4 FBB3
-EFA8A5 FBB4
-EFA8A6 FBB7
-EFA8A7 FBD3
-EFA8A8 FBDA
-EFA8A9 FBEA
-EFA8AA FBF6
-EFA8AB FBF7
-EFA8AC FBF9
-EFA8AD FC49
-EFBC81 8149
-EFBC82 FA57
-EFBC83 8194
-EFBC84 8190
-EFBC85 8193
-EFBC86 8195
-EFBC87 FA56
-EFBC88 8169
-EFBC89 816A
-EFBC8A 8196
-EFBC8B 817B
-EFBC8C 8143
-EFBC8D 817C
-EFBC8E 8144
-EFBC8F 815E
-EFBC90 824F
-EFBC91 8250
-EFBC92 8251
-EFBC93 8252
-EFBC94 8253
-EFBC95 8254
-EFBC96 8255
-EFBC97 8256
-EFBC98 8257
-EFBC99 8258
-EFBC9A 8146
-EFBC9B 8147
-EFBC9C 8183
-EFBC9D 8181
-EFBC9E 8184
-EFBC9F 8148
-EFBCA0 8197
-EFBCA1 8260
-EFBCA2 8261
-EFBCA3 8262
-EFBCA4 8263
-EFBCA5 8264
-EFBCA6 8265
-EFBCA7 8266
-EFBCA8 8267
-EFBCA9 8268
-EFBCAA 8269
-EFBCAB 826A
-EFBCAC 826B
-EFBCAD 826C
-EFBCAE 826D
-EFBCAF 826E
-EFBCB0 826F
-EFBCB1 8270
-EFBCB2 8271
-EFBCB3 8272
-EFBCB4 8273
-EFBCB5 8274
-EFBCB6 8275
-EFBCB7 8276
-EFBCB8 8277
-EFBCB9 8278
-EFBCBA 8279
-EFBCBB 816D
-EFBCBC 815F
-EFBCBD 816E
-EFBCBE 814F
-EFBCBF 8151
-EFBD80 814D
-EFBD81 8281
-EFBD82 8282
-EFBD83 8283
-EFBD84 8284
-EFBD85 8285
-EFBD86 8286
-EFBD87 8287
-EFBD88 8288
-EFBD89 8289
-EFBD8A 828A
-EFBD8B 828B
-EFBD8C 828C
-EFBD8D 828D
-EFBD8E 828E
-EFBD8F 828F
-EFBD90 8290
-EFBD91 8291
-EFBD92 8292
-EFBD93 8293
-EFBD94 8294
-EFBD95 8295
-EFBD96 8296
-EFBD97 8297
-EFBD98 8298
-EFBD99 8299
-EFBD9A 829A
-EFBD9B 816F
-EFBD9C 8162
-EFBD9D 8170
-EFBD9E 8160
-EFBDA1 A1
-EFBDA2 A2
-EFBDA3 A3
-EFBDA4 A4
-EFBDA5 A5
-EFBDA6 A6
-EFBDA7 A7
-EFBDA8 A8
-EFBDA9 A9
-EFBDAA AA
-EFBDAB AB
-EFBDAC AC
-EFBDAD AD
-EFBDAE AE
-EFBDAF AF
-EFBDB0 B0
-EFBDB1 B1
-EFBDB2 B2
-EFBDB3 B3
-EFBDB4 B4
-EFBDB5 B5
-EFBDB6 B6
-EFBDB7 B7
-EFBDB8 B8
-EFBDB9 B9
-EFBDBA BA
-EFBDBB BB
-EFBDBC BC
-EFBDBD BD
-EFBDBE BE
-EFBDBF BF
-EFBE80 C0
-EFBE81 C1
-EFBE82 C2
-EFBE83 C3
-EFBE84 C4
-EFBE85 C5
-EFBE86 C6
-EFBE87 C7
-EFBE88 C8
-EFBE89 C9
-EFBE8A CA
-EFBE8B CB
-EFBE8C CC
-EFBE8D CD
-EFBE8E CE
-EFBE8F CF
-EFBE90 D0
-EFBE91 D1
-EFBE92 D2
-EFBE93 D3
-EFBE94 D4
-EFBE95 D5
-EFBE96 D6
-EFBE97 D7
-EFBE98 D8
-EFBE99 D9
-EFBE9A DA
-EFBE9B DB
-EFBE9C DC
-EFBE9D DD
-EFBE9E DE
-EFBE9F DF
-EFBFA0 8191
-EFBFA1 8192
-EFBFA2 81CA
-EFBFA3 8150
-EFBFA4 FA55
-EFBFA5 818F
-DROP TABLE t1;
-#
-# Bug#MDEV-4489 Replication of big5, cp932, gbk, sjis strings makes wrong values on slave
-#
-SET NAMES cp932;
-CREATE TABLE t1 (a INT);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (0x31);
-INSERT INTO t1 VALUES (X'31');
-PREPARE stmt FROM 'INSERT INTO t1 (a) VALUES (?)';
-SET @a='1';
-SELECT charset(@a);
-charset(@a)
-cp932
-EXECUTE stmt USING @a;
-DROP PREPARE stmt;
-DROP TABLE t1;
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT)
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (0x31)
-master-bin.000001 # Query # # COMMIT
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (X'31')
-master-bin.000001 # Query # # COMMIT
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; INSERT INTO t1 (a) VALUES (X'31')
-master-bin.000001 # Query # # COMMIT
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set names cp932;
-select @@collation_connection;
-@@collation_connection
-cp932_japanese_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET cp932 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-41
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET cp932 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-4141414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-4141414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41414141412020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41414141412020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-41
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-414243
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-4142
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-414243
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-4142432020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-41
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-4142
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-414220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-41422020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-4142202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-41422020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-41
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-4142
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-414243
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-41424320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-41
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-4142
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-414243
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-41424320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-cp932_japanese_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-41
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-414243
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-4142
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-414243
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-4142432020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020434241
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-BEBDBCDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDFBCBDBE
-select collation(cast(0x8140 as char));
-collation(cast(0x8140 as char))
-cp932_japanese_ci
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-4141
-select hex(weight_string(cast(0x8140 as char)));
-hex(weight_string(cast(0x8140 as char)))
-8140
-select hex(weight_string(cast(0x8140 as char) as char(1)));
-hex(weight_string(cast(0x8140 as char) as char(1)))
-8140
-select hex(weight_string(cast(0x81408140 as char) as char(1)));
-hex(weight_string(cast(0x81408140 as char) as char(1)))
-8140
-select hex(weight_string(cast(0x8140 as char) as char(3)));
-hex(weight_string(cast(0x8140 as char) as char(3)))
-81402020
-select hex(weight_string(cast(0x81408140 as char) as char(3)));
-hex(weight_string(cast(0x81408140 as char) as char(3)))
-8140814020
-select hex(weight_string(cast(0x408140 as char) as char(3)));
-hex(weight_string(cast(0x408140 as char) as char(3)))
-40814020
-select hex(weight_string(cast(0x4081408140 as char) as char(3)));
-hex(weight_string(cast(0x4081408140 as char) as char(3)))
-4081408140
-select hex(weight_string(cast(0x40814081408140 as char) as char(3)));
-hex(weight_string(cast(0x40814081408140 as char) as char(3)))
-4081408140
-select hex(weight_string(cast(0x4040814081408140 as char) as char(3)));
-hex(weight_string(cast(0x4040814081408140 as char) as char(3)))
-40408140
-select hex(weight_string(cast(0x814081408140 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 2, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 2, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 2, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 2, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 2, 0xC0))
-8140814020
-select hex(weight_string(cast(0x814081408140 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 2, 0xC0))
-81408140202020202020202020202020202020202020202020
-select hex(weight_string(cast(0x814081408140 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 3, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 3, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 3, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 3, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 3, 0xC0))
-8140814081
-select hex(weight_string(cast(0x814081408140 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 3, 0xC0))
-81408140814020202020202020202020202020202020202020
-select hex(weight_string(cast(0x814081408140 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 4, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 4, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 4, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 4, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 4, 0xC0))
-8140814081
-select hex(weight_string(cast(0x814081408140 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 4, 0xC0))
-81408140814020202020202020202020202020202020202020
-set collation_connection=cp932_bin;
-select @@collation_connection;
-@@collation_connection
-cp932_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET cp932 COLLATE cp932_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-61
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET cp932 COLLATE cp932_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-6161616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-6161616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61616161612020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61616161612020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-61
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-616263
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-6162
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-616263
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-6162632020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-61
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-6162
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-616220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-61622020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-6162202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-61622020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-61
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-6162
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-616263
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-61626320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-61
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-6162
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-616263
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-61626320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-cp932_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-61
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-616263
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-6162
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-616263
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-6162632020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020636261
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-9E9D9CDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDF9C9D9E
-select collation(cast(0x8140 as char));
-collation(cast(0x8140 as char))
-cp932_bin
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-6141
-select hex(weight_string(cast(0x8140 as char)));
-hex(weight_string(cast(0x8140 as char)))
-8140
-select hex(weight_string(cast(0x8140 as char) as char(1)));
-hex(weight_string(cast(0x8140 as char) as char(1)))
-8140
-select hex(weight_string(cast(0x81408140 as char) as char(1)));
-hex(weight_string(cast(0x81408140 as char) as char(1)))
-8140
-select hex(weight_string(cast(0x8140 as char) as char(3)));
-hex(weight_string(cast(0x8140 as char) as char(3)))
-81402020
-select hex(weight_string(cast(0x81408140 as char) as char(3)));
-hex(weight_string(cast(0x81408140 as char) as char(3)))
-8140814020
-select hex(weight_string(cast(0x408140 as char) as char(3)));
-hex(weight_string(cast(0x408140 as char) as char(3)))
-40814020
-select hex(weight_string(cast(0x4081408140 as char) as char(3)));
-hex(weight_string(cast(0x4081408140 as char) as char(3)))
-4081408140
-select hex(weight_string(cast(0x40814081408140 as char) as char(3)));
-hex(weight_string(cast(0x40814081408140 as char) as char(3)))
-4081408140
-select hex(weight_string(cast(0x4040814081408140 as char) as char(3)));
-hex(weight_string(cast(0x4040814081408140 as char) as char(3)))
-40408140
-select hex(weight_string(cast(0x814081408140 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 2, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 2, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 2, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 2, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 2, 0xC0))
-8140814020
-select hex(weight_string(cast(0x814081408140 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 2, 0xC0))
-81408140202020202020202020202020202020202020202020
-select hex(weight_string(cast(0x814081408140 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 3, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 3, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 3, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 3, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 3, 0xC0))
-8140814081
-select hex(weight_string(cast(0x814081408140 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 3, 0xC0))
-81408140814020202020202020202020202020202020202020
-select hex(weight_string(cast(0x814081408140 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 4, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 4, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 4, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 4, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 4, 0xC0))
-8140814081
-select hex(weight_string(cast(0x814081408140 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 4, 0xC0))
-81408140814020202020202020202020202020202020202020
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.0 tests
-#
-SET NAMES cp932;
-# Start of ctype_E05C.inc
-SELECT HEX('à\'),HEX('à\t');
-HEX('à\') HEX('à\t')
-E05C E05C74
-SELECT HEX('\\à\'),HEX('\\à\t'),HEX('\\à\t\t');
-HEX('\\à\') HEX('\\à\t') HEX('\\à\t\t')
-5CE05C 5CE05C74 5CE05C7409
-SELECT HEX('''à\'),HEX('à\''');
-HEX('''à\') HEX('à\''')
-27E05C E05C27
-SELECT HEX('\\''à\'),HEX('à\''\\');
-HEX('\\''à\') HEX('à\''\\')
-5C27E05C E05C275C
-SELECT HEX(BINARY('à\')),HEX(BINARY('à\t'));
-HEX(BINARY('à\')) HEX(BINARY('à\t'))
-E05C E05C74
-SELECT HEX(BINARY('\\à\')),HEX(BINARY('\\à\t')),HEX(BINARY('\\à\t\t'));
-HEX(BINARY('\\à\')) HEX(BINARY('\\à\t')) HEX(BINARY('\\à\t\t'))
-5CE05C 5CE05C74 5CE05C7409
-SELECT HEX(BINARY('''à\')),HEX(BINARY('à\'''));
-HEX(BINARY('''à\')) HEX(BINARY('à\'''))
-27E05C E05C27
-SELECT HEX(BINARY('\\''à\')),HEX(BINARY('à\''\\'));
-HEX(BINARY('\\''à\')) HEX(BINARY('à\''\\'))
-5C27E05C E05C275C
-SELECT HEX(_BINARY'à\'),HEX(_BINARY'à\t');
-HEX(_BINARY'à\') HEX(_BINARY'à\t')
-E05C E05C74
-SELECT HEX(_BINARY'\\à\'),HEX(_BINARY'\\à\t'),HEX(_BINARY'\\à\t\t');
-HEX(_BINARY'\\à\') HEX(_BINARY'\\à\t') HEX(_BINARY'\\à\t\t')
-5CE05C 5CE05C74 5CE05C7409
-SELECT HEX(_BINARY'''à\'),HEX(_BINARY'à\''');
-HEX(_BINARY'''à\') HEX(_BINARY'à\''')
-27E05C E05C27
-SELECT HEX(_BINARY'\\''à\'),HEX(_BINARY'à\''\\');
-HEX(_BINARY'\\''à\') HEX(_BINARY'à\''\\')
-5C27E05C E05C275C
-CREATE TABLE t1 AS SELECT REPEAT(' ',10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET cp932 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('à\'),('à\t');
-INSERT INTO t1 VALUES ('\\à\'),('\\à\t'),('\\à\t\t');
-INSERT INTO t1 VALUES ('''à\'),('à\''');
-INSERT INTO t1 VALUES ('\\''à\'),('à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES ('à\'),('à\t');
-INSERT INTO t1 VALUES ('\\à\'),('\\à\t'),('\\à\t\t');
-INSERT INTO t1 VALUES ('''à\'),('à\''');
-INSERT INTO t1 VALUES ('\\''à\'),('à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET cp932 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (BINARY('à\')),(BINARY('à\t'));
-INSERT INTO t1 VALUES (BINARY('\\à\')),(BINARY('\\à\t')),(BINARY('\\à\t\t'));
-INSERT INTO t1 VALUES (BINARY('''à\')),(BINARY('à\'''));
-INSERT INTO t1 VALUES (BINARY('\\''à\')),(BINARY('à\''\\'));
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES (BINARY('à\')),(BINARY('à\t'));
-INSERT INTO t1 VALUES (BINARY('\\à\')),(BINARY('\\à\t')),(BINARY('\\à\t\t'));
-INSERT INTO t1 VALUES (BINARY('''à\')),(BINARY('à\'''));
-INSERT INTO t1 VALUES (BINARY('\\''à\')),(BINARY('à\''\\'));
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET cp932 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_BINARY'à\'),(_BINARY'à\t');
-INSERT INTO t1 VALUES (_BINARY'\\à\'),(_BINARY'\\à\t'),(_BINARY'\\à\t\t');
-INSERT INTO t1 VALUES (_BINARY'''à\'),(_BINARY'à\''');
-INSERT INTO t1 VALUES (_BINARY'\\''à\'),(_BINARY'à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES (_BINARY'à\'),(_BINARY'à\t');
-INSERT INTO t1 VALUES (_BINARY'\\à\'),(_BINARY'\\à\t'),(_BINARY'\\à\t\t');
-INSERT INTO t1 VALUES (_BINARY'''à\'),(_BINARY'à\''');
-INSERT INTO t1 VALUES (_BINARY'\\''à\'),(_BINARY'à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-SET character_set_client=binary, character_set_results=binary;
-SELECT @@character_set_client, @@character_set_connection, @@character_set_results;
-@@character_set_client @@character_set_connection @@character_set_results
-binary cp932 binary
-SELECT HEX('à\['), HEX('\à\[');
-HEX('à\[') HEX('\à\[')
-E05B E05B
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET cp932 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('à\['),('\à\[');
-SELECT HEX(a) FROM t1;
-HEX(a)
-E05B
-E05B
-DROP TABLE t1;
-SET character_set_client=@@character_set_connection, character_set_results=@@character_set_connection;
-SET character_set_connection=binary;
-SELECT @@character_set_client, @@character_set_connection, @@character_set_results;
-@@character_set_client @@character_set_connection @@character_set_results
-cp932 binary cp932
-SELECT HEX('à\['), HEX('\à\[');
-HEX('à\[') HEX('\à\[')
-E05C5B E05B
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('à\['),('\à\[');
-SELECT HEX(a) FROM t1;
-HEX(a)
-E05C5B
-E05B
-DROP TABLE t1;
-# Start of ctype_E05C.inc
-#
-# End of 10.0 tests
-#
diff --git a/mysql-test/r/ctype_create.result b/mysql-test/r/ctype_create.result
deleted file mode 100644
index 4128be82c23..00000000000
--- a/mysql-test/r/ctype_create.result
+++ /dev/null
@@ -1,110 +0,0 @@
-SET @@character_set_server=latin5;
-CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET cp1251;
-USE mysqltest1;
-CREATE DATABASE mysqltest2;
-SHOW CREATE DATABASE mysqltest1;
-Database Create Database
-mysqltest1 CREATE DATABASE `mysqltest1` /*!40100 DEFAULT CHARACTER SET cp1251 */
-SHOW CREATE DATABASE mysqltest2;
-Database Create Database
-mysqltest2 CREATE DATABASE `mysqltest2` /*!40100 DEFAULT CHARACTER SET latin5 */
-CREATE TABLE mysqltest2.t1 (a char(10));
-SHOW CREATE TABLE mysqltest2.t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin5
-DROP TABLE mysqltest2.t1;
-ALTER DATABASE mysqltest2 DEFAULT CHARACTER SET latin7;
-CREATE TABLE mysqltest2.t1 (a char(10));
-SHOW CREATE TABLE mysqltest2.t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin7
-DROP DATABASE mysqltest2;
-CREATE DATABASE mysqltest2 CHARACTER SET latin2;
-CREATE TABLE mysqltest2.t1 (a char(10));
-SHOW CREATE TABLE mysqltest2.t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin2
-DROP DATABASE mysqltest2;
-USE mysqltest1;
-CREATE TABLE t1 (a char(10));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=cp1251
-DROP TABLE t1;
-CREATE TABLE t1 (a char(10)) DEFAULT CHARACTER SET latin1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a char(10))
-DEFAULT CHARACTER SET latin1 COLLATE latin1_german1_ci;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) COLLATE latin1_german1_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci
-DROP TABLE t1;
-create table t1 (a char) character set latin1 character set latin2;
-ERROR HY000: Conflicting declarations: 'CHARACTER SET latin1' and 'CHARACTER SET latin2'
-create table t1 (a char) character set latin1 collate latin2_bin;
-ERROR 42000: COLLATION 'latin2_bin' is not valid for CHARACTER SET 'latin1'
-create database d1 default character set latin1 character set latin2;
-ERROR HY000: Conflicting declarations: 'CHARACTER SET latin1' and 'CHARACTER SET latin2'
-create database d1 default character set latin1 collate latin2_bin;
-ERROR 42000: COLLATION 'latin2_bin' is not valid for CHARACTER SET 'latin1'
-DROP DATABASE mysqltest1;
-CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET latin7;
-use mysqltest2;
-ALTER DATABASE DEFAULT CHARACTER SET latin2;
-show create database mysqltest2;
-Database Create Database
-mysqltest2 CREATE DATABASE `mysqltest2` /*!40100 DEFAULT CHARACTER SET latin2 */
-drop database mysqltest2;
-ALTER DATABASE DEFAULT CHARACTER SET latin2;
-ERROR 3D000: No database selected
-ALTER DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa DEFAULT CHARACTER SET latin2;
-ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
-ALTER DATABASE `` DEFAULT CHARACTER SET latin2;
-ERROR 42000: Incorrect database name ''
-USE test;
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-7387 Alter table xxx CHARACTER SET utf8, CONVERT TO CHARACTER SET latin1 should fail
-#
-CREATE TABLE t1 (a VARCHAR(10)) CHARACTER SET DEFAULT, CHARACTER SET utf8;
-ERROR HY000: Conflicting declarations: 'CHARACTER SET DEFAULT' and 'CHARACTER SET utf8'
-CREATE TABLE t1 (a VARCHAR(10)) CHARACTER SET utf8, CHARACTER SET DEFAULT;
-ERROR HY000: Conflicting declarations: 'CHARACTER SET utf8' and 'CHARACTER SET DEFAULT'
-CREATE TABLE t1 (a VARCHAR(10)) CHARACTER SET utf8, CHARACTER SET utf8;
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10)) CHARACTER SET DEFAULT, CHARACTER SET DEFAULT;
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1, b VARCHAR(10) CHARACTER SET utf8);
-ALTER TABLE t1 CONVERT TO CHARACTER SET utf8, CHARACTER SET latin1;
-ERROR HY000: Conflicting declarations: 'CHARACTER SET utf8' and 'CHARACTER SET latin1'
-ALTER TABLE t1 CONVERT TO CHARACTER SET utf8, CHARACTER SET DEFAULT;
-ERROR HY000: Conflicting declarations: 'CHARACTER SET utf8' and 'CHARACTER SET DEFAULT'
-ALTER TABLE t1 CONVERT TO CHARACTER SET latin1, CHARACTER SET utf8;
-ERROR HY000: Conflicting declarations: 'CHARACTER SET latin1' and 'CHARACTER SET utf8'
-ALTER TABLE t1 CONVERT TO CHARACTER SET latin1, CHARACTER SET DEFAULT;
-ERROR HY000: Conflicting declarations: 'CHARACTER SET latin1' and 'CHARACTER SET DEFAULT'
-ALTER TABLE t1 CONVERT TO CHARACTER SET DEFAULT, CHARACTER SET utf8;
-ERROR HY000: Conflicting declarations: 'CHARACTER SET latin5' and 'CHARACTER SET utf8'
-ALTER TABLE t1 CONVERT TO CHARACTER SET DEFAULT, CHARACTER SET latin1;
-ERROR HY000: Conflicting declarations: 'CHARACTER SET latin5' and 'CHARACTER SET latin1'
-DROP TABLE t1;
-#
-# End of 10.0 tests
-#
diff --git a/mysql-test/r/ctype_errors.result b/mysql-test/r/ctype_errors.result
deleted file mode 100644
index 6f9e14a8942..00000000000
--- a/mysql-test/r/ctype_errors.result
+++ /dev/null
@@ -1,51 +0,0 @@
-Start of 5.4 tests
-CREATE TABLE t1(f1 INT);
-connect con1,localhost,root,,test;
-connection con1;
-SET lc_messages=ru_RU;
-SHOW VARIABLES LIKE 'lc_messages';
-Variable_name Value
-lc_messages ru_RU
-CREATE TABLE t1(f1 INT);
-ERROR 42S01: \0422\0430\0431\043B\0438\0446\0430 't1' \0443\0436\0435 \0441\0443\0449\0435\0441\0442\0432\0443\0435\0442
-SET NAMES utf8;
-CREATE TABLE t1(f1 INT);
-ERROR 42S01: Таблица 't1' уже ÑущеÑтвует
-connection default;
-SHOW VARIABLES LIKE 'lc_messages';
-Variable_name Value
-lc_messages en_US
-CREATE TABLE t1(f1 INT);
-ERROR 42S01: Table 't1' already exists
-SHOW GLOBAL VARIABLES LIKE 'lc_messages';
-Variable_name Value
-lc_messages en_US
-SET GLOBAL lc_messages=ru_RU;
-SHOW GLOBAL VARIABLES LIKE 'lc_messages';
-Variable_name Value
-lc_messages ru_RU
-SET GLOBAL lc_messages=en_US;
-disconnect con1;
-DROP TABLE t1;
-drop table `ק`;
-ERROR 42S02: Unknown table 'test.ק'
-connect con1,localhost,root,,test;
-connection con1;
-SET lc_messages=cs_CZ;
-SET NAMES UTF8;
-USE nonexistant;
-ERROR 42000: Neznámá databáze 'nonexistant'
-disconnect con1;
-connection default;
-#
-# Bug#12736295: Buffer overflow for variable converted_err
-# with non-latin1 server error message
-#
-connect con1,localhost,root,,test;
-SET lc_messages=ru_RU;
-SET NAMES latin1;
-SELECT '01234567890123456789012345678901234\';
-ERROR 42000: \0423 \0432\0430\0441 \043E\0448\0438\0431\043A\0430 \0432 \0437\0430\043F\0440\043E\0441\0435. \0418\0437\0443\0447\0438\0442\0435 \0434\043E\043A\0443\043C\0435\043D\0442\0430\0446\0438\044E \043F\043E \0438\0441\043F\043E\043B\044C\0437\0443\0435\043C\043E\0439 \0432\0435\0440\0441\0438\0438 MariaDB \043D\0430 \043F\0440\0435\0434\043C\0435\0442 \043A\043E\0440\0440\0435\043A\0442\043D\043E\0433\043E \0441\0438\043D\0442\0430\043A\0441\0438\0441\0430 \043E\043A\043E\043B\043E ''0123456789012345678901234
-disconnect con1;
-connection default;
-End of 5.5 tests
diff --git a/mysql-test/r/ctype_eucjpms.result b/mysql-test/r/ctype_eucjpms.result
deleted file mode 100644
index bc7b4b9ef9d..00000000000
--- a/mysql-test/r/ctype_eucjpms.result
+++ /dev/null
@@ -1,34470 +0,0 @@
-drop table if exists t1;
-drop table if exists t2;
-drop table if exists t3;
-drop table if exists t4;
-set names eucjpms;
-set character_set_database = eucjpms;
-CREATE TABLE t1(c1 CHAR(1)) DEFAULT CHARACTER SET = eucjpms;
-INSERT INTO t1 VALUES
-(0x5C),(0x7E),(0xA1B1),(0xA1BD),(0xA1C0),(0xA1C1),(0xA1C2),(0xA1DD),(0xA1F1),(0xA1F2),(0xA1EF),(0xA2CC),(0x8FA2B7),(0x8FA2C3);
-INSERT INTO t1 VALUES
-(0xADA1),(0xADA2),(0xADA3),(0xADA4),(0xADA5),(0xADA6),(0xADA7),(0xADA8),
-(0xADA9),(0xADAA),(0xADAB),(0xADAC),(0xADAD),(0xADAE),(0xADAF),(0xADB0),
-(0xADB1),(0xADB2),(0xADB3),(0xADB4),(0xADB5),(0xADB6),(0xADB7),(0xADB8),
-(0xADB9),(0xADBA),(0xADBB),(0xADBC),(0xADBD),(0xADBE),(0xADC0),(0xADC1),
-(0xADC2),(0xADC3),(0xADC4),(0xADC5),(0xADC6),(0xADC7),(0xADC8),(0xADC9),
-(0xADCA),(0xADCB),(0xADCC),(0xADCD),(0xADCE),(0xADCF),(0xADD0),(0xADD1),
-(0xADD2),(0xADD3),(0xADD4),(0xADD5),(0xADD6),(0xADDF),(0xADE0),(0xADE1),
-(0xADE2),(0xADE3),(0xADE4),(0xADE5),(0xADE6),(0xADE7),(0xADE8),(0xADE9),
-(0xADEA),(0xADEB),(0xADEC),(0xADED),(0xADEE),(0xADEF),(0xADF0),(0xADF1),
-(0xADF2),(0xADF3),(0xADF4),(0xADF5),(0xADF6),(0xADF7),(0xADF8),(0xADF9),
-(0xADFA),(0xADFB),(0xADFC);
-INSERT INTO t1 VALUES
-(0x8FF3F3),(0x8FF3F4),(0x8FF3F5),(0x8FF3F6),(0x8FF3F7),(0x8FF3F8),(0x8FF3F9),(0x8FF3FA),
-(0x8FF3FB),(0x8FF3FC),(0x8FF3FD),(0x8FF3FE),(0x8FF4A1),(0x8FF4A2),(0x8FF4A3),(0x8FF4A4),
-(0x8FF4A5),(0x8FF4A6),(0x8FF4A7),(0x8FF4A8),(0xA2CC),(0x8FA2C3),(0x8FF4A9),(0x8FF4AA),
-(0x8FF4AB),(0x8FF4AC),(0x8FF4AD),(0xA2E8),(0x8FD4E3),(0x8FDCDF),(0x8FE4E9),(0x8FE3F8),
-(0x8FD9A1),(0x8FB1BB),(0x8FF4AE),(0x8FC2AD),(0x8FC3FC),(0x8FE4D0),(0x8FC2BF),(0x8FBCF4),
-(0x8FB0A9),(0x8FB0C8),(0x8FF4AF),(0x8FB0D2),(0x8FB0D4),(0x8FB0E3),(0x8FB0EE),(0x8FB1A7),
-(0x8FB1A3),(0x8FB1AC),(0x8FB1A9),(0x8FB1BE),(0x8FB1DF),(0x8FB1D8),(0x8FB1C8),(0x8FB1D7),
-(0x8FB1E3),(0x8FB1F4),(0x8FB1E1),(0x8FB2A3),(0x8FF4B0),(0x8FB2BB),(0x8FB2E6),(0x8FB2ED),
-(0x8FB2F5),(0x8FB2FC),(0x8FF4B1),(0x8FB3B5),(0x8FB3D8),(0x8FB3DB),(0x8FB3E5),(0x8FB3EE),
-(0x8FB3FB),(0x8FF4B2),(0x8FF4B3),(0x8FB4C0),(0x8FB4C7),(0x8FB4D0),(0x8FB4DE),(0x8FF4B4),
-(0x8FB5AA),(0x8FF4B5),(0x8FB5AF),(0x8FB5C4),(0x8FB5E8),(0x8FF4B6),(0x8FB7C2),(0x8FB7E4),
-(0x8FB7E8),(0x8FB7E7),(0x8FF4B7),(0x8FF4B8),(0x8FF4B9),(0x8FB8CE),(0x8FB8E1),(0x8FB8F5),
-(0x8FB8F7),(0x8FB8F8),(0x8FB8FC),(0x8FB9AF),(0x8FB9B7),(0x8FBABE),(0x8FBADB),(0x8FCDAA),
-(0x8FBAE1),(0x8FF4BA),(0x8FBAEB),(0x8FBBB3),(0x8FBBB8),(0x8FF4BB),(0x8FBBCA),(0x8FF4BC),
-(0x8FF4BD),(0x8FBBD0),(0x8FBBDE),(0x8FBBF4),(0x8FBBF5),(0x8FBBF9),(0x8FBCE4),(0x8FBCED),
-(0x8FBCFE),(0x8FF4BE),(0x8FBDC2),(0x8FBDE7),(0x8FF4BF),(0x8FBDF0),(0x8FBEB0),(0x8FBEAC),
-(0x8FF4C0),(0x8FBEB3),(0x8FBEBD),(0x8FBECD),(0x8FBEC9),(0x8FBEE4),(0x8FBFA8),(0x8FBFC9),
-(0x8FC0C4),(0x8FC0E4),(0x8FC0F4),(0x8FC1A6),(0x8FF4C1),(0x8FC1F5),(0x8FC1FC),(0x8FF4C2),
-(0x8FC1F8),(0x8FC2AB),(0x8FC2A1),(0x8FC2A5),(0x8FF4C3),(0x8FC2B8),(0x8FC2BA),(0x8FF4C4),
-(0x8FC2C4),(0x8FC2D2),(0x8FC2D7),(0x8FC2DB),(0x8FC2DE),(0x8FC2ED),(0x8FC2F0),(0x8FF4C5),
-(0x8FC3A1),(0x8FC3B5),(0x8FC3C9),(0x8FC3B9),(0x8FF4C6),(0x8FC3D8),(0x8FC3FE),(0x8FF4C7),
-(0x8FC4CC),(0x8FF4C8),(0x8FC4D9),(0x8FC4EA),(0x8FC4FD),(0x8FF4C9),(0x8FC5A7),(0x8FC5B5),
-(0x8FC5B6),(0x8FF4CA),(0x8FC5D5),(0x8FC6B8),(0x8FC6D7),(0x8FC6E0),(0x8FC6EA),(0x8FC6E3),
-(0x8FC7A1),(0x8FC7AB),(0x8FC7C7),(0x8FC7C3),(0x8FC7CB),(0x8FC7CF),(0x8FC7D9),(0x8FF4CB),
-(0x8FF4CC),(0x8FC7E6),(0x8FC7EE),(0x8FC7FC),(0x8FC7EB),(0x8FC7F0),(0x8FC8B1),(0x8FC8E5),
-(0x8FC8F8),(0x8FC9A6),(0x8FC9AB),(0x8FC9AD),(0x8FF4CD),(0x8FC9CA),(0x8FC9D3),(0x8FC9E9),
-(0x8FC9E3),(0x8FC9FC),(0x8FC9F4),(0x8FC9F5),(0x8FF4CE),(0x8FCAB3),(0x8FCABD),(0x8FCAEF),
-(0x8FCAF1),(0x8FCBAE),(0x8FF4CF),(0x8FCBCA),(0x8FCBE6),(0x8FCBEA),(0x8FCBF0),(0x8FCBF4),
-(0x8FCBEE),(0x8FCCA5),(0x8FCBF9),(0x8FCCAB),(0x8FCCAE),(0x8FCCAD),(0x8FCCB2),(0x8FCCC2),
-(0x8FCCD0),(0x8FCCD9),(0x8FF4D0),(0x8FCDBB),(0x8FF4D1),(0x8FCEBB),(0x8FF4D2),(0x8FCEBA),
-(0x8FCEC3),(0x8FF4D3),(0x8FCEF2),(0x8FB3DD),(0x8FCFD5),(0x8FCFE2),(0x8FCFE9),(0x8FCFED),
-(0x8FF4D4),(0x8FF4D5),(0x8FF4D6),(0x8FF4D7),(0x8FD0E5),(0x8FF4D8),(0x8FD0E9),(0x8FD1E8),
-(0x8FF4D9),(0x8FF4DA),(0x8FD1EC),(0x8FD2BB),(0x8FF4DB),(0x8FD3E1),(0x8FD3E8),(0x8FD4A7),
-(0x8FF4DC),(0x8FF4DD),(0x8FD4D4),(0x8FD4F2),(0x8FD5AE),(0x8FF4DE),(0x8FD7DE),(0x8FF4DF),
-(0x8FD8A2),(0x8FD8B7),(0x8FD8C1),(0x8FD8D1),(0x8FD8F4),(0x8FD9C6),(0x8FD9C8),(0x8FD9D1),
-(0x8FF4E0),(0x8FF4E1),(0x8FF4E2),(0x8FF4E3),(0x8FF4E4),(0x8FDCD3),(0x8FDDC8),(0x8FDDD4),
-(0x8FDDEA),(0x8FDDFA),(0x8FDEA4),(0x8FDEB0),(0x8FF4E5),(0x8FDEB5),(0x8FDECB),(0x8FF4E6),
-(0x8FDFB9),(0x8FF4E7),(0x8FDFC3),(0x8FF4E8),(0x8FF4E9),(0x8FE0D9),(0x8FF4EA),(0x8FF4EB),
-(0x8FE1E2),(0x8FF4EC),(0x8FF4ED),(0x8FF4EE),(0x8FE2C7),(0x8FE3A8),(0x8FE3A6),(0x8FE3A9),
-(0x8FE3AF),(0x8FE3B0),(0x8FE3AA),(0x8FE3AB),(0x8FE3BC),(0x8FE3C1),(0x8FE3BF),(0x8FE3D5),
-(0x8FE3D8),(0x8FE3D6),(0x8FE3DF),(0x8FE3E3),(0x8FE3E1),(0x8FE3D4),(0x8FE3E9),(0x8FE4A6),
-(0x8FE3F1),(0x8FE3F2),(0x8FE4CB),(0x8FE4C1),(0x8FE4C3),(0x8FE4BE),(0x8FF4EF),(0x8FE4C0),
-(0x8FE4C7),(0x8FE4BF),(0x8FE4E0),(0x8FE4DE),(0x8FE4D1),(0x8FF4F0),(0x8FE4DC),(0x8FE4D2),
-(0x8FE4DB),(0x8FE4D4),(0x8FE4FA),(0x8FE4EF),(0x8FE5B3),(0x8FE5BF),(0x8FE5C9),(0x8FE5D0),
-(0x8FE5E2),(0x8FE5EA),(0x8FE5EB),(0x8FF4F1),(0x8FF4F2),(0x8FF4F3),(0x8FE6E8),(0x8FE6EF),
-(0x8FE7AC),(0x8FF4F4),(0x8FE7AE),(0x8FF4F5),(0x8FE7B1),(0x8FF4F6),(0x8FE7B2),(0x8FE8B1),
-(0x8FE8B6),(0x8FF4F7),(0x8FF4F8),(0x8FE8DD),(0x8FF4F9),(0x8FF4FA),(0x8FE9D1),(0x8FF4FB),
-(0x8FE9ED),(0x8FEACD),(0x8FF4FC),(0x8FEADB),(0x8FEAE6),(0x8FEAEA),(0x8FEBA5),(0x8FEBFB),
-(0x8FEBFA),(0x8FF4FD),(0x8FECD6),(0x8FF4FE);
-INSERT INTO t1 VALUES
-(0xF5A1),(0xF5A2),(0xF5A3),(0xF5A4),(0xF5A5),(0xF5A6),(0xF5A7),(0xF5A8),
-(0xF5A9),(0xF5AA),(0xF5AB),(0xF5AC),(0xF5AD),(0xF5AE),(0xF5AF),(0xF5B0),
-(0xF5B1),(0xF5B2),(0xF5B3),(0xF5B4),(0xF5B5),(0xF5B6),(0xF5B7),(0xF5B8),
-(0xF5B9),(0xF5BA),(0xF5BB),(0xF5BC),(0xF5BD),(0xF5BE),(0xF5BF),(0xF5C0),
-(0xF5C1),(0xF5C2),(0xF5C3),(0xF5C4),(0xF5C5),(0xF5C6),(0xF5C7),(0xF5C8),
-(0xF5C9),(0xF5CA),(0xF5CB),(0xF5CC),(0xF5CD),(0xF5CE),(0xF5CF),(0xF5D0),
-(0xF5D1),(0xF5D2),(0xF5D3),(0xF5D4),(0xF5D5),(0xF5D6),(0xF5D7),(0xF5D8),
-(0xF5D9),(0xF5DA),(0xF5DB),(0xF5DC),(0xF5DD),(0xF5DE),(0xF5DF),(0xF5E0),
-(0xF5E1),(0xF5E2),(0xF5E3),(0xF5E4),(0xF5E5),(0xF5E6),(0xF5E7),(0xF5E8),
-(0xF5E9),(0xF5EA),(0xF5EB),(0xF5EC),(0xF5ED),(0xF5EE),(0xF5EF),(0xF5F0),
-(0xF5F1),(0xF5F2),(0xF5F3),(0xF5F4),(0xF5F5),(0xF5F6),(0xF5F7),(0xF5F8),
-(0xF5F9),(0xF5FA),(0xF5FB),(0xF5FC),(0xF5FD),(0xF5FE),
-(0xF6A1),(0xF6A2),(0xF6A3),(0xF6A4),(0xF6A5),(0xF6A6),(0xF6A7),(0xF6A8),
-(0xF6A9),(0xF6AA),(0xF6AB),(0xF6AC),(0xF6AD),(0xF6AE),(0xF6AF),(0xF6B0),
-(0xF6B1),(0xF6B2),(0xF6B3),(0xF6B4),(0xF6B5),(0xF6B6),(0xF6B7),(0xF6B8),
-(0xF6B9),(0xF6BA),(0xF6BB),(0xF6BC),(0xF6BD),(0xF6BE),(0xF6BF),(0xF6C0),
-(0xF6C1),(0xF6C2),(0xF6C3),(0xF6C4),(0xF6C5),(0xF6C6),(0xF6C7),(0xF6C8),
-(0xF6C9),(0xF6CA),(0xF6CB),(0xF6CC),(0xF6CD),(0xF6CE),(0xF6CF),(0xF6D0),
-(0xF6D1),(0xF6D2),(0xF6D3),(0xF6D4),(0xF6D5),(0xF6D6),(0xF6D7),(0xF6D8),
-(0xF6D9),(0xF6DA),(0xF6DB),(0xF6DC),(0xF6DD),(0xF6DE),(0xF6DF),(0xF6E0),
-(0xF6E1),(0xF6E2),(0xF6E3),(0xF6E4),(0xF6E5),(0xF6E6),(0xF6E7),(0xF6E8),
-(0xF6E9),(0xF6EA),(0xF6EB),(0xF6EC),(0xF6ED),(0xF6EE),(0xF6EF),(0xF6F0),
-(0xF6F1),(0xF6F2),(0xF6F3),(0xF6F4),(0xF6F5),(0xF6F6),(0xF6F7),(0xF6F8),
-(0xF6F9),(0xF6FA),(0xF6FB),(0xF6FC),(0xF6FD),(0xF6FE),
-(0xF7A1),(0xF7A2),(0xF7A3),(0xF7A4),(0xF7A5),(0xF7A6),(0xF7A7),(0xF7A8),
-(0xF7A9),(0xF7AA),(0xF7AB),(0xF7AC),(0xF7AD),(0xF7AE),(0xF7AF),(0xF7B0),
-(0xF7B1),(0xF7B2),(0xF7B3),(0xF7B4),(0xF7B5),(0xF7B6),(0xF7B7),(0xF7B8),
-(0xF7B9),(0xF7BA),(0xF7BB),(0xF7BC),(0xF7BD),(0xF7BE),(0xF7BF),(0xF7C0),
-(0xF7C1),(0xF7C2),(0xF7C3),(0xF7C4),(0xF7C5),(0xF7C6),(0xF7C7),(0xF7C8),
-(0xF7C9),(0xF7CA),(0xF7CB),(0xF7CC),(0xF7CD),(0xF7CE),(0xF7CF),(0xF7D0),
-(0xF7D1),(0xF7D2),(0xF7D3),(0xF7D4),(0xF7D5),(0xF7D6),(0xF7D7),(0xF7D8),
-(0xF7D9),(0xF7DA),(0xF7DB),(0xF7DC),(0xF7DD),(0xF7DE),(0xF7DF),(0xF7E0),
-(0xF7E1),(0xF7E2),(0xF7E3),(0xF7E4),(0xF7E5),(0xF7E6),(0xF7E7),(0xF7E8),
-(0xF7E9),(0xF7EA),(0xF7EB),(0xF7EC),(0xF7ED),(0xF7EE),(0xF7EF),(0xF7F0),
-(0xF7F1),(0xF7F2),(0xF7F3),(0xF7F4),(0xF7F5),(0xF7F6),(0xF7F7),(0xF7F8),
-(0xF7F9),(0xF7FA),(0xF7FB),(0xF7FC),(0xF7FD),(0xF7FE),
-(0xF8A1),(0xF8A2),(0xF8A3),(0xF8A4),(0xF8A5),(0xF8A6),(0xF8A7),(0xF8A8),
-(0xF8A9),(0xF8AA),(0xF8AB),(0xF8AC),(0xF8AD),(0xF8AE),(0xF8AF),(0xF8B0),
-(0xF8B1),(0xF8B2),(0xF8B3),(0xF8B4),(0xF8B5),(0xF8B6),(0xF8B7),(0xF8B8),
-(0xF8B9),(0xF8BA),(0xF8BB),(0xF8BC),(0xF8BD),(0xF8BE),(0xF8BF),(0xF8C0),
-(0xF8C1),(0xF8C2),(0xF8C3),(0xF8C4),(0xF8C5),(0xF8C6),(0xF8C7),(0xF8C8),
-(0xF8C9),(0xF8CA),(0xF8CB),(0xF8CC),(0xF8CD),(0xF8CE),(0xF8CF),(0xF8D0),
-(0xF8D1),(0xF8D2),(0xF8D3),(0xF8D4),(0xF8D5),(0xF8D6),(0xF8D7),(0xF8D8),
-(0xF8D9),(0xF8DA),(0xF8DB),(0xF8DC),(0xF8DD),(0xF8DE),(0xF8DF),(0xF8E0),
-(0xF8E1),(0xF8E2),(0xF8E3),(0xF8E4),(0xF8E5),(0xF8E6),(0xF8E7),(0xF8E8),
-(0xF8E9),(0xF8EA),(0xF8EB),(0xF8EC),(0xF8ED),(0xF8EE),(0xF8EF),(0xF8F0),
-(0xF8F1),(0xF8F2),(0xF8F3),(0xF8F4),(0xF8F5),(0xF8F6),(0xF8F7),(0xF8F8),
-(0xF8F9),(0xF8FA),(0xF8FB),(0xF8FC),(0xF8FD),(0xF8FE),
-(0xF9A1),(0xF9A2),(0xF9A3),(0xF9A4),(0xF9A5),(0xF9A6),(0xF9A7),(0xF9A8),
-(0xF9A9),(0xF9AA),(0xF9AB),(0xF9AC),(0xF9AD),(0xF9AE),(0xF9AF),(0xF9B0),
-(0xF9B1),(0xF9B2),(0xF9B3),(0xF9B4),(0xF9B5),(0xF9B6),(0xF9B7),(0xF9B8),
-(0xF9B9),(0xF9BA),(0xF9BB),(0xF9BC),(0xF9BD),(0xF9BE),(0xF9BF),(0xF9C0),
-(0xF9C1),(0xF9C2),(0xF9C3),(0xF9C4),(0xF9C5),(0xF9C6),(0xF9C7),(0xF9C8),
-(0xF9C9),(0xF9CA),(0xF9CB),(0xF9CC),(0xF9CD),(0xF9CE),(0xF9CF),(0xF9D0),
-(0xF9D1),(0xF9D2),(0xF9D3),(0xF9D4),(0xF9D5),(0xF9D6),(0xF9D7),(0xF9D8),
-(0xF9D9),(0xF9DA),(0xF9DB),(0xF9DC),(0xF9DD),(0xF9DE),(0xF9DF),(0xF9E0),
-(0xF9E1),(0xF9E2),(0xF9E3),(0xF9E4),(0xF9E5),(0xF9E6),(0xF9E7),(0xF9E8),
-(0xF9E9),(0xF9EA),(0xF9EB),(0xF9EC),(0xF9ED),(0xF9EE),(0xF9EF),(0xF9F0),
-(0xF9F1),(0xF9F2),(0xF9F3),(0xF9F4),(0xF9F5),(0xF9F6),(0xF9F7),(0xF9F8),
-(0xF9F9),(0xF9FA),(0xF9FB),(0xF9FC),(0xF9FD),(0xF9FE),
-(0xFAA1),(0xFAA2),(0xFAA3),(0xFAA4),(0xFAA5),(0xFAA6),(0xFAA7),(0xFAA8),
-(0xFAA9),(0xFAAA),(0xFAAB),(0xFAAC),(0xFAAD),(0xFAAE),(0xFAAF),(0xFAB0),
-(0xFAB1),(0xFAB2),(0xFAB3),(0xFAB4),(0xFAB5),(0xFAB6),(0xFAB7),(0xFAB8),
-(0xFAB9),(0xFABA),(0xFABB),(0xFABC),(0xFABD),(0xFABE),(0xFABF),(0xFAC0),
-(0xFAC1),(0xFAC2),(0xFAC3),(0xFAC4),(0xFAC5),(0xFAC6),(0xFAC7),(0xFAC8),
-(0xFAC9),(0xFACA),(0xFACB),(0xFACC),(0xFACD),(0xFACE),(0xFACF),(0xFAD0),
-(0xFAD1),(0xFAD2),(0xFAD3),(0xFAD4),(0xFAD5),(0xFAD6),(0xFAD7),(0xFAD8),
-(0xFAD9),(0xFADA),(0xFADB),(0xFADC),(0xFADD),(0xFADE),(0xFADF),(0xFAE0),
-(0xFAE1),(0xFAE2),(0xFAE3),(0xFAE4),(0xFAE5),(0xFAE6),(0xFAE7),(0xFAE8),
-(0xFAE9),(0xFAEA),(0xFAEB),(0xFAEC),(0xFAED),(0xFAEE),(0xFAEF),(0xFAF0),
-(0xFAF1),(0xFAF2),(0xFAF3),(0xFAF4),(0xFAF5),(0xFAF6),(0xFAF7),(0xFAF8),
-(0xFAF9),(0xFAFA),(0xFAFB),(0xFAFC),(0xFAFD),(0xFAFE),
-(0xFBA1),(0xFBA2),(0xFBA3),(0xFBA4),(0xFBA5),(0xFBA6),(0xFBA7),(0xFBA8),
-(0xFBA9),(0xFBAA),(0xFBAB),(0xFBAC),(0xFBAD),(0xFBAE),(0xFBAF),(0xFBB0),
-(0xFBB1),(0xFBB2),(0xFBB3),(0xFBB4),(0xFBB5),(0xFBB6),(0xFBB7),(0xFBB8),
-(0xFBB9),(0xFBBA),(0xFBBB),(0xFBBC),(0xFBBD),(0xFBBE),(0xFBBF),(0xFBC0),
-(0xFBC1),(0xFBC2),(0xFBC3),(0xFBC4),(0xFBC5),(0xFBC6),(0xFBC7),(0xFBC8),
-(0xFBC9),(0xFBCA),(0xFBCB),(0xFBCC),(0xFBCD),(0xFBCE),(0xFBCF),(0xFBD0),
-(0xFBD1),(0xFBD2),(0xFBD3),(0xFBD4),(0xFBD5),(0xFBD6),(0xFBD7),(0xFBD8),
-(0xFBD9),(0xFBDA),(0xFBDB),(0xFBDC),(0xFBDD),(0xFBDE),(0xFBDF),(0xFBE0),
-(0xFBE1),(0xFBE2),(0xFBE3),(0xFBE4),(0xFBE5),(0xFBE6),(0xFBE7),(0xFBE8),
-(0xFBE9),(0xFBEA),(0xFBEB),(0xFBEC),(0xFBED),(0xFBEE),(0xFBEF),(0xFBF0),
-(0xFBF1),(0xFBF2),(0xFBF3),(0xFBF4),(0xFBF5),(0xFBF6),(0xFBF7),(0xFBF8),
-(0xFBF9),(0xFBFA),(0xFBFB),(0xFBFC),(0xFBFD),(0xFBFE),
-(0xFCA1),(0xFCA2),(0xFCA3),(0xFCA4),(0xFCA5),(0xFCA6),(0xFCA7),(0xFCA8),
-(0xFCA9),(0xFCAA),(0xFCAB),(0xFCAC),(0xFCAD),(0xFCAE),(0xFCAF),(0xFCB0),
-(0xFCB1),(0xFCB2),(0xFCB3),(0xFCB4),(0xFCB5),(0xFCB6),(0xFCB7),(0xFCB8),
-(0xFCB9),(0xFCBA),(0xFCBB),(0xFCBC),(0xFCBD),(0xFCBE),(0xFCBF),(0xFCC0),
-(0xFCC1),(0xFCC2),(0xFCC3),(0xFCC4),(0xFCC5),(0xFCC6),(0xFCC7),(0xFCC8),
-(0xFCC9),(0xFCCA),(0xFCCB),(0xFCCC),(0xFCCD),(0xFCCE),(0xFCCF),(0xFCD0),
-(0xFCD1),(0xFCD2),(0xFCD3),(0xFCD4),(0xFCD5),(0xFCD6),(0xFCD7),(0xFCD8),
-(0xFCD9),(0xFCDA),(0xFCDB),(0xFCDC),(0xFCDD),(0xFCDE),(0xFCDF),(0xFCE0),
-(0xFCE1),(0xFCE2),(0xFCE3),(0xFCE4),(0xFCE5),(0xFCE6),(0xFCE7),(0xFCE8),
-(0xFCE9),(0xFCEA),(0xFCEB),(0xFCEC),(0xFCED),(0xFCEE),(0xFCEF),(0xFCF0),
-(0xFCF1),(0xFCF2),(0xFCF3),(0xFCF4),(0xFCF5),(0xFCF6),(0xFCF7),(0xFCF8),
-(0xFCF9),(0xFCFA),(0xFCFB),(0xFCFC),(0xFCFD),(0xFCFE),
-(0xFDA1),(0xFDA2),(0xFDA3),(0xFDA4),(0xFDA5),(0xFDA6),(0xFDA7),(0xFDA8),
-(0xFDA9),(0xFDAA),(0xFDAB),(0xFDAC),(0xFDAD),(0xFDAE),(0xFDAF),(0xFDB0),
-(0xFDB1),(0xFDB2),(0xFDB3),(0xFDB4),(0xFDB5),(0xFDB6),(0xFDB7),(0xFDB8),
-(0xFDB9),(0xFDBA),(0xFDBB),(0xFDBC),(0xFDBD),(0xFDBE),(0xFDBF),(0xFDC0),
-(0xFDC1),(0xFDC2),(0xFDC3),(0xFDC4),(0xFDC5),(0xFDC6),(0xFDC7),(0xFDC8),
-(0xFDC9),(0xFDCA),(0xFDCB),(0xFDCC),(0xFDCD),(0xFDCE),(0xFDCF),(0xFDD0),
-(0xFDD1),(0xFDD2),(0xFDD3),(0xFDD4),(0xFDD5),(0xFDD6),(0xFDD7),(0xFDD8),
-(0xFDD9),(0xFDDA),(0xFDDB),(0xFDDC),(0xFDDD),(0xFDDE),(0xFDDF),(0xFDE0),
-(0xFDE1),(0xFDE2),(0xFDE3),(0xFDE4),(0xFDE5),(0xFDE6),(0xFDE7),(0xFDE8),
-(0xFDE9),(0xFDEA),(0xFDEB),(0xFDEC),(0xFDED),(0xFDEE),(0xFDEF),(0xFDF0),
-(0xFDF1),(0xFDF2),(0xFDF3),(0xFDF4),(0xFDF5),(0xFDF6),(0xFDF7),(0xFDF8),
-(0xFDF9),(0xFDFA),(0xFDFB),(0xFDFC),(0xFDFD),(0xFDFE),
-(0xFEA1),(0xFEA2),(0xFEA3),(0xFEA4),(0xFEA5),(0xFEA6),(0xFEA7),(0xFEA8),
-(0xFEA9),(0xFEAA),(0xFEAB),(0xFEAC),(0xFEAD),(0xFEAE),(0xFEAF),(0xFEB0),
-(0xFEB1),(0xFEB2),(0xFEB3),(0xFEB4),(0xFEB5),(0xFEB6),(0xFEB7),(0xFEB8),
-(0xFEB9),(0xFEBA),(0xFEBB),(0xFEBC),(0xFEBD),(0xFEBE),(0xFEBF),(0xFEC0),
-(0xFEC1),(0xFEC2),(0xFEC3),(0xFEC4),(0xFEC5),(0xFEC6),(0xFEC7),(0xFEC8),
-(0xFEC9),(0xFECA),(0xFECB),(0xFECC),(0xFECD),(0xFECE),(0xFECF),(0xFED0),
-(0xFED1),(0xFED2),(0xFED3),(0xFED4),(0xFED5),(0xFED6),(0xFED7),(0xFED8),
-(0xFED9),(0xFEDA),(0xFEDB),(0xFEDC),(0xFEDD),(0xFEDE),(0xFEDF),(0xFEE0),
-(0xFEE1),(0xFEE2),(0xFEE3),(0xFEE4),(0xFEE5),(0xFEE6),(0xFEE7),(0xFEE8),
-(0xFEE9),(0xFEEA),(0xFEEB),(0xFEEC),(0xFEED),(0xFEEE),(0xFEEF),(0xFEF0),
-(0xFEF1),(0xFEF2),(0xFEF3),(0xFEF4),(0xFEF5),(0xFEF6),(0xFEF7),(0xFEF8),
-(0xFEF9),(0xFEFA),(0xFEFB),(0xFEFC),(0xFEFD),(0xFEFE),
-(0x8FF5A1),(0x8FF5A2),(0x8FF5A3),(0x8FF5A4),(0x8FF5A5),(0x8FF5A6),(0x8FF5A7),(0x8FF5A8),
-(0x8FF5A9),(0x8FF5AA),(0x8FF5AB),(0x8FF5AC),(0x8FF5AD),(0x8FF5AE),(0x8FF5AF),(0x8FF5B0),
-(0x8FF5B1),(0x8FF5B2),(0x8FF5B3),(0x8FF5B4),(0x8FF5B5),(0x8FF5B6),(0x8FF5B7),(0x8FF5B8),
-(0x8FF5B9),(0x8FF5BA),(0x8FF5BB),(0x8FF5BC),(0x8FF5BD),(0x8FF5BE),(0x8FF5BF),(0x8FF5C0),
-(0x8FF5C1),(0x8FF5C2),(0x8FF5C3),(0x8FF5C4),(0x8FF5C5),(0x8FF5C6),(0x8FF5C7),(0x8FF5C8),
-(0x8FF5C9),(0x8FF5CA),(0x8FF5CB),(0x8FF5CC),(0x8FF5CD),(0x8FF5CE),(0x8FF5CF),(0x8FF5D0),
-(0x8FF5D1),(0x8FF5D2),(0x8FF5D3),(0x8FF5D4),(0x8FF5D5),(0x8FF5D6),(0x8FF5D7),(0x8FF5D8),
-(0x8FF5D9),(0x8FF5DA),(0x8FF5DB),(0x8FF5DC),(0x8FF5DD),(0x8FF5DE),(0x8FF5DF),(0x8FF5E0),
-(0x8FF5E1),(0x8FF5E2),(0x8FF5E3),(0x8FF5E4),(0x8FF5E5),(0x8FF5E6),(0x8FF5E7),(0x8FF5E8),
-(0x8FF5E9),(0x8FF5EA),(0x8FF5EB),(0x8FF5EC),(0x8FF5ED),(0x8FF5EE),(0x8FF5EF),(0x8FF5F0),
-(0x8FF5F1),(0x8FF5F2),(0x8FF5F3),(0x8FF5F4),(0x8FF5F5),(0x8FF5F6),(0x8FF5F7),(0x8FF5F8),
-(0x8FF5F9),(0x8FF5FA),(0x8FF5FB),(0x8FF5FC),(0x8FF5FD),(0x8FF5FE),
-(0x8FF6A1),(0x8FF6A2),(0x8FF6A3),(0x8FF6A4),(0x8FF6A5),(0x8FF6A6),(0x8FF6A7),(0x8FF6A8),
-(0x8FF6A9),(0x8FF6AA),(0x8FF6AB),(0x8FF6AC),(0x8FF6AD),(0x8FF6AE),(0x8FF6AF),(0x8FF6B0),
-(0x8FF6B1),(0x8FF6B2),(0x8FF6B3),(0x8FF6B4),(0x8FF6B5),(0x8FF6B6),(0x8FF6B7),(0x8FF6B8),
-(0x8FF6B9),(0x8FF6BA),(0x8FF6BB),(0x8FF6BC),(0x8FF6BD),(0x8FF6BE),(0x8FF6BF),(0x8FF6C0),
-(0x8FF6C1),(0x8FF6C2),(0x8FF6C3),(0x8FF6C4),(0x8FF6C5),(0x8FF6C6),(0x8FF6C7),(0x8FF6C8),
-(0x8FF6C9),(0x8FF6CA),(0x8FF6CB),(0x8FF6CC),(0x8FF6CD),(0x8FF6CE),(0x8FF6CF),(0x8FF6D0),
-(0x8FF6D1),(0x8FF6D2),(0x8FF6D3),(0x8FF6D4),(0x8FF6D5),(0x8FF6D6),(0x8FF6D7),(0x8FF6D8),
-(0x8FF6D9),(0x8FF6DA),(0x8FF6DB),(0x8FF6DC),(0x8FF6DD),(0x8FF6DE),(0x8FF6DF),(0x8FF6E0),
-(0x8FF6E1),(0x8FF6E2),(0x8FF6E3),(0x8FF6E4),(0x8FF6E5),(0x8FF6E6),(0x8FF6E7),(0x8FF6E8),
-(0x8FF6E9),(0x8FF6EA),(0x8FF6EB),(0x8FF6EC),(0x8FF6ED),(0x8FF6EE),(0x8FF6EF),(0x8FF6F0),
-(0x8FF6F1),(0x8FF6F2),(0x8FF6F3),(0x8FF6F4),(0x8FF6F5),(0x8FF6F6),(0x8FF6F7),(0x8FF6F8),
-(0x8FF6F9),(0x8FF6FA),(0x8FF6FB),(0x8FF6FC),(0x8FF6FD),(0x8FF6FE),
-(0x8FF7A1),(0x8FF7A2),(0x8FF7A3),(0x8FF7A4),(0x8FF7A5),(0x8FF7A6),(0x8FF7A7),(0x8FF7A8),
-(0x8FF7A9),(0x8FF7AA),(0x8FF7AB),(0x8FF7AC),(0x8FF7AD),(0x8FF7AE),(0x8FF7AF),(0x8FF7B0),
-(0x8FF7B1),(0x8FF7B2),(0x8FF7B3),(0x8FF7B4),(0x8FF7B5),(0x8FF7B6),(0x8FF7B7),(0x8FF7B8),
-(0x8FF7B9),(0x8FF7BA),(0x8FF7BB),(0x8FF7BC),(0x8FF7BD),(0x8FF7BE),(0x8FF7BF),(0x8FF7C0),
-(0x8FF7C1),(0x8FF7C2),(0x8FF7C3),(0x8FF7C4),(0x8FF7C5),(0x8FF7C6),(0x8FF7C7),(0x8FF7C8),
-(0x8FF7C9),(0x8FF7CA),(0x8FF7CB),(0x8FF7CC),(0x8FF7CD),(0x8FF7CE),(0x8FF7CF),(0x8FF7D0),
-(0x8FF7D1),(0x8FF7D2),(0x8FF7D3),(0x8FF7D4),(0x8FF7D5),(0x8FF7D6),(0x8FF7D7),(0x8FF7D8),
-(0x8FF7D9),(0x8FF7DA),(0x8FF7DB),(0x8FF7DC),(0x8FF7DD),(0x8FF7DE),(0x8FF7DF),(0x8FF7E0),
-(0x8FF7E1),(0x8FF7E2),(0x8FF7E3),(0x8FF7E4),(0x8FF7E5),(0x8FF7E6),(0x8FF7E7),(0x8FF7E8),
-(0x8FF7E9),(0x8FF7EA),(0x8FF7EB),(0x8FF7EC),(0x8FF7ED),(0x8FF7EE),(0x8FF7EF),(0x8FF7F0),
-(0x8FF7F1),(0x8FF7F2),(0x8FF7F3),(0x8FF7F4),(0x8FF7F5),(0x8FF7F6),(0x8FF7F7),(0x8FF7F8),
-(0x8FF7F9),(0x8FF7FA),(0x8FF7FB),(0x8FF7FC),(0x8FF7FD),(0x8FF7FE),
-(0x8FF8A1),(0x8FF8A2),(0x8FF8A3),(0x8FF8A4),(0x8FF8A5),(0x8FF8A6),(0x8FF8A7),(0x8FF8A8),
-(0x8FF8A9),(0x8FF8AA),(0x8FF8AB),(0x8FF8AC),(0x8FF8AD),(0x8FF8AE),(0x8FF8AF),(0x8FF8B0),
-(0x8FF8B1),(0x8FF8B2),(0x8FF8B3),(0x8FF8B4),(0x8FF8B5),(0x8FF8B6),(0x8FF8B7),(0x8FF8B8),
-(0x8FF8B9),(0x8FF8BA),(0x8FF8BB),(0x8FF8BC),(0x8FF8BD),(0x8FF8BE),(0x8FF8BF),(0x8FF8C0),
-(0x8FF8C1),(0x8FF8C2),(0x8FF8C3),(0x8FF8C4),(0x8FF8C5),(0x8FF8C6),(0x8FF8C7),(0x8FF8C8),
-(0x8FF8C9),(0x8FF8CA),(0x8FF8CB),(0x8FF8CC),(0x8FF8CD),(0x8FF8CE),(0x8FF8CF),(0x8FF8D0),
-(0x8FF8D1),(0x8FF8D2),(0x8FF8D3),(0x8FF8D4),(0x8FF8D5),(0x8FF8D6),(0x8FF8D7),(0x8FF8D8),
-(0x8FF8D9),(0x8FF8DA),(0x8FF8DB),(0x8FF8DC),(0x8FF8DD),(0x8FF8DE),(0x8FF8DF),(0x8FF8E0),
-(0x8FF8E1),(0x8FF8E2),(0x8FF8E3),(0x8FF8E4),(0x8FF8E5),(0x8FF8E6),(0x8FF8E7),(0x8FF8E8),
-(0x8FF8E9),(0x8FF8EA),(0x8FF8EB),(0x8FF8EC),(0x8FF8ED),(0x8FF8EE),(0x8FF8EF),(0x8FF8F0),
-(0x8FF8F1),(0x8FF8F2),(0x8FF8F3),(0x8FF8F4),(0x8FF8F5),(0x8FF8F6),(0x8FF8F7),(0x8FF8F8),
-(0x8FF8F9),(0x8FF8FA),(0x8FF8FB),(0x8FF8FC),(0x8FF8FD),(0x8FF8FE),
-(0x8FF9A1),(0x8FF9A2),(0x8FF9A3),(0x8FF9A4),(0x8FF9A5),(0x8FF9A6),(0x8FF9A7),(0x8FF9A8),
-(0x8FF9A9),(0x8FF9AA),(0x8FF9AB),(0x8FF9AC),(0x8FF9AD),(0x8FF9AE),(0x8FF9AF),(0x8FF9B0),
-(0x8FF9B1),(0x8FF9B2),(0x8FF9B3),(0x8FF9B4),(0x8FF9B5),(0x8FF9B6),(0x8FF9B7),(0x8FF9B8),
-(0x8FF9B9),(0x8FF9BA),(0x8FF9BB),(0x8FF9BC),(0x8FF9BD),(0x8FF9BE),(0x8FF9BF),(0x8FF9C0),
-(0x8FF9C1),(0x8FF9C2),(0x8FF9C3),(0x8FF9C4),(0x8FF9C5),(0x8FF9C6),(0x8FF9C7),(0x8FF9C8),
-(0x8FF9C9),(0x8FF9CA),(0x8FF9CB),(0x8FF9CC),(0x8FF9CD),(0x8FF9CE),(0x8FF9CF),(0x8FF9D0),
-(0x8FF9D1),(0x8FF9D2),(0x8FF9D3),(0x8FF9D4),(0x8FF9D5),(0x8FF9D6),(0x8FF9D7),(0x8FF9D8),
-(0x8FF9D9),(0x8FF9DA),(0x8FF9DB),(0x8FF9DC),(0x8FF9DD),(0x8FF9DE),(0x8FF9DF),(0x8FF9E0),
-(0x8FF9E1),(0x8FF9E2),(0x8FF9E3),(0x8FF9E4),(0x8FF9E5),(0x8FF9E6),(0x8FF9E7),(0x8FF9E8),
-(0x8FF9E9),(0x8FF9EA),(0x8FF9EB),(0x8FF9EC),(0x8FF9ED),(0x8FF9EE),(0x8FF9EF),(0x8FF9F0),
-(0x8FF9F1),(0x8FF9F2),(0x8FF9F3),(0x8FF9F4),(0x8FF9F5),(0x8FF9F6),(0x8FF9F7),(0x8FF9F8),
-(0x8FF9F9),(0x8FF9FA),(0x8FF9FB),(0x8FF9FC),(0x8FF9FD),(0x8FF9FE),
-(0x8FFAA1),(0x8FFAA2),(0x8FFAA3),(0x8FFAA4),(0x8FFAA5),(0x8FFAA6),(0x8FFAA7),(0x8FFAA8),
-(0x8FFAA9),(0x8FFAAA),(0x8FFAAB),(0x8FFAAC),(0x8FFAAD),(0x8FFAAE),(0x8FFAAF),(0x8FFAB0),
-(0x8FFAB1),(0x8FFAB2),(0x8FFAB3),(0x8FFAB4),(0x8FFAB5),(0x8FFAB6),(0x8FFAB7),(0x8FFAB8),
-(0x8FFAB9),(0x8FFABA),(0x8FFABB),(0x8FFABC),(0x8FFABD),(0x8FFABE),(0x8FFABF),(0x8FFAC0),
-(0x8FFAC1),(0x8FFAC2),(0x8FFAC3),(0x8FFAC4),(0x8FFAC5),(0x8FFAC6),(0x8FFAC7),(0x8FFAC8),
-(0x8FFAC9),(0x8FFACA),(0x8FFACB),(0x8FFACC),(0x8FFACD),(0x8FFACE),(0x8FFACF),(0x8FFAD0),
-(0x8FFAD1),(0x8FFAD2),(0x8FFAD3),(0x8FFAD4),(0x8FFAD5),(0x8FFAD6),(0x8FFAD7),(0x8FFAD8),
-(0x8FFAD9),(0x8FFADA),(0x8FFADB),(0x8FFADC),(0x8FFADD),(0x8FFADE),(0x8FFADF),(0x8FFAE0),
-(0x8FFAE1),(0x8FFAE2),(0x8FFAE3),(0x8FFAE4),(0x8FFAE5),(0x8FFAE6),(0x8FFAE7),(0x8FFAE8),
-(0x8FFAE9),(0x8FFAEA),(0x8FFAEB),(0x8FFAEC),(0x8FFAED),(0x8FFAEE),(0x8FFAEF),(0x8FFAF0),
-(0x8FFAF1),(0x8FFAF2),(0x8FFAF3),(0x8FFAF4),(0x8FFAF5),(0x8FFAF6),(0x8FFAF7),(0x8FFAF8),
-(0x8FFAF9),(0x8FFAFA),(0x8FFAFB),(0x8FFAFC),(0x8FFAFD),(0x8FFAFE),
-(0x8FFBA1),(0x8FFBA2),(0x8FFBA3),(0x8FFBA4),(0x8FFBA5),(0x8FFBA6),(0x8FFBA7),(0x8FFBA8),
-(0x8FFBA9),(0x8FFBAA),(0x8FFBAB),(0x8FFBAC),(0x8FFBAD),(0x8FFBAE),(0x8FFBAF),(0x8FFBB0),
-(0x8FFBB1),(0x8FFBB2),(0x8FFBB3),(0x8FFBB4),(0x8FFBB5),(0x8FFBB6),(0x8FFBB7),(0x8FFBB8),
-(0x8FFBB9),(0x8FFBBA),(0x8FFBBB),(0x8FFBBC),(0x8FFBBD),(0x8FFBBE),(0x8FFBBF),(0x8FFBC0),
-(0x8FFBC1),(0x8FFBC2),(0x8FFBC3),(0x8FFBC4),(0x8FFBC5),(0x8FFBC6),(0x8FFBC7),(0x8FFBC8),
-(0x8FFBC9),(0x8FFBCA),(0x8FFBCB),(0x8FFBCC),(0x8FFBCD),(0x8FFBCE),(0x8FFBCF),(0x8FFBD0),
-(0x8FFBD1),(0x8FFBD2),(0x8FFBD3),(0x8FFBD4),(0x8FFBD5),(0x8FFBD6),(0x8FFBD7),(0x8FFBD8),
-(0x8FFBD9),(0x8FFBDA),(0x8FFBDB),(0x8FFBDC),(0x8FFBDD),(0x8FFBDE),(0x8FFBDF),(0x8FFBE0),
-(0x8FFBE1),(0x8FFBE2),(0x8FFBE3),(0x8FFBE4),(0x8FFBE5),(0x8FFBE6),(0x8FFBE7),(0x8FFBE8),
-(0x8FFBE9),(0x8FFBEA),(0x8FFBEB),(0x8FFBEC),(0x8FFBED),(0x8FFBEE),(0x8FFBEF),(0x8FFBF0),
-(0x8FFBF1),(0x8FFBF2),(0x8FFBF3),(0x8FFBF4),(0x8FFBF5),(0x8FFBF6),(0x8FFBF7),(0x8FFBF8),
-(0x8FFBF9),(0x8FFBFA),(0x8FFBFB),(0x8FFBFC),(0x8FFBFD),(0x8FFBFE),
-(0x8FFCA1),(0x8FFCA2),(0x8FFCA3),(0x8FFCA4),(0x8FFCA5),(0x8FFCA6),(0x8FFCA7),(0x8FFCA8),
-(0x8FFCA9),(0x8FFCAA),(0x8FFCAB),(0x8FFCAC),(0x8FFCAD),(0x8FFCAE),(0x8FFCAF),(0x8FFCB0),
-(0x8FFCB1),(0x8FFCB2),(0x8FFCB3),(0x8FFCB4),(0x8FFCB5),(0x8FFCB6),(0x8FFCB7),(0x8FFCB8),
-(0x8FFCB9),(0x8FFCBA),(0x8FFCBB),(0x8FFCBC),(0x8FFCBD),(0x8FFCBE),(0x8FFCBF),(0x8FFCC0),
-(0x8FFCC1),(0x8FFCC2),(0x8FFCC3),(0x8FFCC4),(0x8FFCC5),(0x8FFCC6),(0x8FFCC7),(0x8FFCC8),
-(0x8FFCC9),(0x8FFCCA),(0x8FFCCB),(0x8FFCCC),(0x8FFCCD),(0x8FFCCE),(0x8FFCCF),(0x8FFCD0),
-(0x8FFCD1),(0x8FFCD2),(0x8FFCD3),(0x8FFCD4),(0x8FFCD5),(0x8FFCD6),(0x8FFCD7),(0x8FFCD8),
-(0x8FFCD9),(0x8FFCDA),(0x8FFCDB),(0x8FFCDC),(0x8FFCDD),(0x8FFCDE),(0x8FFCDF),(0x8FFCE0),
-(0x8FFCE1),(0x8FFCE2),(0x8FFCE3),(0x8FFCE4),(0x8FFCE5),(0x8FFCE6),(0x8FFCE7),(0x8FFCE8),
-(0x8FFCE9),(0x8FFCEA),(0x8FFCEB),(0x8FFCEC),(0x8FFCED),(0x8FFCEE),(0x8FFCEF),(0x8FFCF0),
-(0x8FFCF1),(0x8FFCF2),(0x8FFCF3),(0x8FFCF4),(0x8FFCF5),(0x8FFCF6),(0x8FFCF7),(0x8FFCF8),
-(0x8FFCF9),(0x8FFCFA),(0x8FFCFB),(0x8FFCFC),(0x8FFCFD),(0x8FFCFE),
-(0x8FFDA1),(0x8FFDA2),(0x8FFDA3),(0x8FFDA4),(0x8FFDA5),(0x8FFDA6),(0x8FFDA7),(0x8FFDA8),
-(0x8FFDA9),(0x8FFDAA),(0x8FFDAB),(0x8FFDAC),(0x8FFDAD),(0x8FFDAE),(0x8FFDAF),(0x8FFDB0),
-(0x8FFDB1),(0x8FFDB2),(0x8FFDB3),(0x8FFDB4),(0x8FFDB5),(0x8FFDB6),(0x8FFDB7),(0x8FFDB8),
-(0x8FFDB9),(0x8FFDBA),(0x8FFDBB),(0x8FFDBC),(0x8FFDBD),(0x8FFDBE),(0x8FFDBF),(0x8FFDC0),
-(0x8FFDC1),(0x8FFDC2),(0x8FFDC3),(0x8FFDC4),(0x8FFDC5),(0x8FFDC6),(0x8FFDC7),(0x8FFDC8),
-(0x8FFDC9),(0x8FFDCA),(0x8FFDCB),(0x8FFDCC),(0x8FFDCD),(0x8FFDCE),(0x8FFDCF),(0x8FFDD0),
-(0x8FFDD1),(0x8FFDD2),(0x8FFDD3),(0x8FFDD4),(0x8FFDD5),(0x8FFDD6),(0x8FFDD7),(0x8FFDD8),
-(0x8FFDD9),(0x8FFDDA),(0x8FFDDB),(0x8FFDDC),(0x8FFDDD),(0x8FFDDE),(0x8FFDDF),(0x8FFDE0),
-(0x8FFDE1),(0x8FFDE2),(0x8FFDE3),(0x8FFDE4),(0x8FFDE5),(0x8FFDE6),(0x8FFDE7),(0x8FFDE8),
-(0x8FFDE9),(0x8FFDEA),(0x8FFDEB),(0x8FFDEC),(0x8FFDED),(0x8FFDEE),(0x8FFDEF),(0x8FFDF0),
-(0x8FFDF1),(0x8FFDF2),(0x8FFDF3),(0x8FFDF4),(0x8FFDF5),(0x8FFDF6),(0x8FFDF7),(0x8FFDF8),
-(0x8FFDF9),(0x8FFDFA),(0x8FFDFB),(0x8FFDFC),(0x8FFDFD),(0x8FFDFE),
-(0x8FFEA1),(0x8FFEA2),(0x8FFEA3),(0x8FFEA4),(0x8FFEA5),(0x8FFEA6),(0x8FFEA7),(0x8FFEA8),
-(0x8FFEA9),(0x8FFEAA),(0x8FFEAB),(0x8FFEAC),(0x8FFEAD),(0x8FFEAE),(0x8FFEAF),(0x8FFEB0),
-(0x8FFEB1),(0x8FFEB2),(0x8FFEB3),(0x8FFEB4),(0x8FFEB5),(0x8FFEB6),(0x8FFEB7),(0x8FFEB8),
-(0x8FFEB9),(0x8FFEBA),(0x8FFEBB),(0x8FFEBC),(0x8FFEBD),(0x8FFEBE),(0x8FFEBF),(0x8FFEC0),
-(0x8FFEC1),(0x8FFEC2),(0x8FFEC3),(0x8FFEC4),(0x8FFEC5),(0x8FFEC6),(0x8FFEC7),(0x8FFEC8),
-(0x8FFEC9),(0x8FFECA),(0x8FFECB),(0x8FFECC),(0x8FFECD),(0x8FFECE),(0x8FFECF),(0x8FFED0),
-(0x8FFED1),(0x8FFED2),(0x8FFED3),(0x8FFED4),(0x8FFED5),(0x8FFED6),(0x8FFED7),(0x8FFED8),
-(0x8FFED9),(0x8FFEDA),(0x8FFEDB),(0x8FFEDC),(0x8FFEDD),(0x8FFEDE),(0x8FFEDF),(0x8FFEE0),
-(0x8FFEE1),(0x8FFEE2),(0x8FFEE3),(0x8FFEE4),(0x8FFEE5),(0x8FFEE6),(0x8FFEE7),(0x8FFEE8),
-(0x8FFEE9),(0x8FFEEA),(0x8FFEEB),(0x8FFEEC),(0x8FFEED),(0x8FFEEE),(0x8FFEEF),(0x8FFEF0),
-(0x8FFEF1),(0x8FFEF2),(0x8FFEF3),(0x8FFEF4),(0x8FFEF5),(0x8FFEF6),(0x8FFEF7),(0x8FFEF8),
-(0x8FFEF9),(0x8FFEFA),(0x8FFEFB),(0x8FFEFC),(0x8FFEFD),(0x8FFEFE);
-SELECT HEX(c1) FROM t1;
-HEX(c1)
-5C
-7E
-A1B1
-A1BD
-A1C0
-A1C1
-A1C2
-A1DD
-A1F1
-A1F2
-A1EF
-A2CC
-8FA2B7
-8FA2C3
-ADA1
-ADA2
-ADA3
-ADA4
-ADA5
-ADA6
-ADA7
-ADA8
-ADA9
-ADAA
-ADAB
-ADAC
-ADAD
-ADAE
-ADAF
-ADB0
-ADB1
-ADB2
-ADB3
-ADB4
-ADB5
-ADB6
-ADB7
-ADB8
-ADB9
-ADBA
-ADBB
-ADBC
-ADBD
-ADBE
-ADC0
-ADC1
-ADC2
-ADC3
-ADC4
-ADC5
-ADC6
-ADC7
-ADC8
-ADC9
-ADCA
-ADCB
-ADCC
-ADCD
-ADCE
-ADCF
-ADD0
-ADD1
-ADD2
-ADD3
-ADD4
-ADD5
-ADD6
-ADDF
-ADE0
-ADE1
-ADE2
-ADE3
-ADE4
-ADE5
-ADE6
-ADE7
-ADE8
-ADE9
-ADEA
-ADEB
-ADEC
-ADED
-ADEE
-ADEF
-ADF0
-ADF1
-ADF2
-ADF3
-ADF4
-ADF5
-ADF6
-ADF7
-ADF8
-ADF9
-ADFA
-ADFB
-ADFC
-8FF3F3
-8FF3F4
-8FF3F5
-8FF3F6
-8FF3F7
-8FF3F8
-8FF3F9
-8FF3FA
-8FF3FB
-8FF3FC
-8FF3FD
-8FF3FE
-8FF4A1
-8FF4A2
-8FF4A3
-8FF4A4
-8FF4A5
-8FF4A6
-8FF4A7
-8FF4A8
-A2CC
-8FA2C3
-8FF4A9
-8FF4AA
-8FF4AB
-8FF4AC
-8FF4AD
-A2E8
-8FD4E3
-8FDCDF
-8FE4E9
-8FE3F8
-8FD9A1
-8FB1BB
-8FF4AE
-8FC2AD
-8FC3FC
-8FE4D0
-8FC2BF
-8FBCF4
-8FB0A9
-8FB0C8
-8FF4AF
-8FB0D2
-8FB0D4
-8FB0E3
-8FB0EE
-8FB1A7
-8FB1A3
-8FB1AC
-8FB1A9
-8FB1BE
-8FB1DF
-8FB1D8
-8FB1C8
-8FB1D7
-8FB1E3
-8FB1F4
-8FB1E1
-8FB2A3
-8FF4B0
-8FB2BB
-8FB2E6
-8FB2ED
-8FB2F5
-8FB2FC
-8FF4B1
-8FB3B5
-8FB3D8
-8FB3DB
-8FB3E5
-8FB3EE
-8FB3FB
-8FF4B2
-8FF4B3
-8FB4C0
-8FB4C7
-8FB4D0
-8FB4DE
-8FF4B4
-8FB5AA
-8FF4B5
-8FB5AF
-8FB5C4
-8FB5E8
-8FF4B6
-8FB7C2
-8FB7E4
-8FB7E8
-8FB7E7
-8FF4B7
-8FF4B8
-8FF4B9
-8FB8CE
-8FB8E1
-8FB8F5
-8FB8F7
-8FB8F8
-8FB8FC
-8FB9AF
-8FB9B7
-8FBABE
-8FBADB
-8FCDAA
-8FBAE1
-8FF4BA
-8FBAEB
-8FBBB3
-8FBBB8
-8FF4BB
-8FBBCA
-8FF4BC
-8FF4BD
-8FBBD0
-8FBBDE
-8FBBF4
-8FBBF5
-8FBBF9
-8FBCE4
-8FBCED
-8FBCFE
-8FF4BE
-8FBDC2
-8FBDE7
-8FF4BF
-8FBDF0
-8FBEB0
-8FBEAC
-8FF4C0
-8FBEB3
-8FBEBD
-8FBECD
-8FBEC9
-8FBEE4
-8FBFA8
-8FBFC9
-8FC0C4
-8FC0E4
-8FC0F4
-8FC1A6
-8FF4C1
-8FC1F5
-8FC1FC
-8FF4C2
-8FC1F8
-8FC2AB
-8FC2A1
-8FC2A5
-8FF4C3
-8FC2B8
-8FC2BA
-8FF4C4
-8FC2C4
-8FC2D2
-8FC2D7
-8FC2DB
-8FC2DE
-8FC2ED
-8FC2F0
-8FF4C5
-8FC3A1
-8FC3B5
-8FC3C9
-8FC3B9
-8FF4C6
-8FC3D8
-8FC3FE
-8FF4C7
-8FC4CC
-8FF4C8
-8FC4D9
-8FC4EA
-8FC4FD
-8FF4C9
-8FC5A7
-8FC5B5
-8FC5B6
-8FF4CA
-8FC5D5
-8FC6B8
-8FC6D7
-8FC6E0
-8FC6EA
-8FC6E3
-8FC7A1
-8FC7AB
-8FC7C7
-8FC7C3
-8FC7CB
-8FC7CF
-8FC7D9
-8FF4CB
-8FF4CC
-8FC7E6
-8FC7EE
-8FC7FC
-8FC7EB
-8FC7F0
-8FC8B1
-8FC8E5
-8FC8F8
-8FC9A6
-8FC9AB
-8FC9AD
-8FF4CD
-8FC9CA
-8FC9D3
-8FC9E9
-8FC9E3
-8FC9FC
-8FC9F4
-8FC9F5
-8FF4CE
-8FCAB3
-8FCABD
-8FCAEF
-8FCAF1
-8FCBAE
-8FF4CF
-8FCBCA
-8FCBE6
-8FCBEA
-8FCBF0
-8FCBF4
-8FCBEE
-8FCCA5
-8FCBF9
-8FCCAB
-8FCCAE
-8FCCAD
-8FCCB2
-8FCCC2
-8FCCD0
-8FCCD9
-8FF4D0
-8FCDBB
-8FF4D1
-8FCEBB
-8FF4D2
-8FCEBA
-8FCEC3
-8FF4D3
-8FCEF2
-8FB3DD
-8FCFD5
-8FCFE2
-8FCFE9
-8FCFED
-8FF4D4
-8FF4D5
-8FF4D6
-8FF4D7
-8FD0E5
-8FF4D8
-8FD0E9
-8FD1E8
-8FF4D9
-8FF4DA
-8FD1EC
-8FD2BB
-8FF4DB
-8FD3E1
-8FD3E8
-8FD4A7
-8FF4DC
-8FF4DD
-8FD4D4
-8FD4F2
-8FD5AE
-8FF4DE
-8FD7DE
-8FF4DF
-8FD8A2
-8FD8B7
-8FD8C1
-8FD8D1
-8FD8F4
-8FD9C6
-8FD9C8
-8FD9D1
-8FF4E0
-8FF4E1
-8FF4E2
-8FF4E3
-8FF4E4
-8FDCD3
-8FDDC8
-8FDDD4
-8FDDEA
-8FDDFA
-8FDEA4
-8FDEB0
-8FF4E5
-8FDEB5
-8FDECB
-8FF4E6
-8FDFB9
-8FF4E7
-8FDFC3
-8FF4E8
-8FF4E9
-8FE0D9
-8FF4EA
-8FF4EB
-8FE1E2
-8FF4EC
-8FF4ED
-8FF4EE
-8FE2C7
-8FE3A8
-8FE3A6
-8FE3A9
-8FE3AF
-8FE3B0
-8FE3AA
-8FE3AB
-8FE3BC
-8FE3C1
-8FE3BF
-8FE3D5
-8FE3D8
-8FE3D6
-8FE3DF
-8FE3E3
-8FE3E1
-8FE3D4
-8FE3E9
-8FE4A6
-8FE3F1
-8FE3F2
-8FE4CB
-8FE4C1
-8FE4C3
-8FE4BE
-8FF4EF
-8FE4C0
-8FE4C7
-8FE4BF
-8FE4E0
-8FE4DE
-8FE4D1
-8FF4F0
-8FE4DC
-8FE4D2
-8FE4DB
-8FE4D4
-8FE4FA
-8FE4EF
-8FE5B3
-8FE5BF
-8FE5C9
-8FE5D0
-8FE5E2
-8FE5EA
-8FE5EB
-8FF4F1
-8FF4F2
-8FF4F3
-8FE6E8
-8FE6EF
-8FE7AC
-8FF4F4
-8FE7AE
-8FF4F5
-8FE7B1
-8FF4F6
-8FE7B2
-8FE8B1
-8FE8B6
-8FF4F7
-8FF4F8
-8FE8DD
-8FF4F9
-8FF4FA
-8FE9D1
-8FF4FB
-8FE9ED
-8FEACD
-8FF4FC
-8FEADB
-8FEAE6
-8FEAEA
-8FEBA5
-8FEBFB
-8FEBFA
-8FF4FD
-8FECD6
-8FF4FE
-F5A1
-F5A2
-F5A3
-F5A4
-F5A5
-F5A6
-F5A7
-F5A8
-F5A9
-F5AA
-F5AB
-F5AC
-F5AD
-F5AE
-F5AF
-F5B0
-F5B1
-F5B2
-F5B3
-F5B4
-F5B5
-F5B6
-F5B7
-F5B8
-F5B9
-F5BA
-F5BB
-F5BC
-F5BD
-F5BE
-F5BF
-F5C0
-F5C1
-F5C2
-F5C3
-F5C4
-F5C5
-F5C6
-F5C7
-F5C8
-F5C9
-F5CA
-F5CB
-F5CC
-F5CD
-F5CE
-F5CF
-F5D0
-F5D1
-F5D2
-F5D3
-F5D4
-F5D5
-F5D6
-F5D7
-F5D8
-F5D9
-F5DA
-F5DB
-F5DC
-F5DD
-F5DE
-F5DF
-F5E0
-F5E1
-F5E2
-F5E3
-F5E4
-F5E5
-F5E6
-F5E7
-F5E8
-F5E9
-F5EA
-F5EB
-F5EC
-F5ED
-F5EE
-F5EF
-F5F0
-F5F1
-F5F2
-F5F3
-F5F4
-F5F5
-F5F6
-F5F7
-F5F8
-F5F9
-F5FA
-F5FB
-F5FC
-F5FD
-F5FE
-F6A1
-F6A2
-F6A3
-F6A4
-F6A5
-F6A6
-F6A7
-F6A8
-F6A9
-F6AA
-F6AB
-F6AC
-F6AD
-F6AE
-F6AF
-F6B0
-F6B1
-F6B2
-F6B3
-F6B4
-F6B5
-F6B6
-F6B7
-F6B8
-F6B9
-F6BA
-F6BB
-F6BC
-F6BD
-F6BE
-F6BF
-F6C0
-F6C1
-F6C2
-F6C3
-F6C4
-F6C5
-F6C6
-F6C7
-F6C8
-F6C9
-F6CA
-F6CB
-F6CC
-F6CD
-F6CE
-F6CF
-F6D0
-F6D1
-F6D2
-F6D3
-F6D4
-F6D5
-F6D6
-F6D7
-F6D8
-F6D9
-F6DA
-F6DB
-F6DC
-F6DD
-F6DE
-F6DF
-F6E0
-F6E1
-F6E2
-F6E3
-F6E4
-F6E5
-F6E6
-F6E7
-F6E8
-F6E9
-F6EA
-F6EB
-F6EC
-F6ED
-F6EE
-F6EF
-F6F0
-F6F1
-F6F2
-F6F3
-F6F4
-F6F5
-F6F6
-F6F7
-F6F8
-F6F9
-F6FA
-F6FB
-F6FC
-F6FD
-F6FE
-F7A1
-F7A2
-F7A3
-F7A4
-F7A5
-F7A6
-F7A7
-F7A8
-F7A9
-F7AA
-F7AB
-F7AC
-F7AD
-F7AE
-F7AF
-F7B0
-F7B1
-F7B2
-F7B3
-F7B4
-F7B5
-F7B6
-F7B7
-F7B8
-F7B9
-F7BA
-F7BB
-F7BC
-F7BD
-F7BE
-F7BF
-F7C0
-F7C1
-F7C2
-F7C3
-F7C4
-F7C5
-F7C6
-F7C7
-F7C8
-F7C9
-F7CA
-F7CB
-F7CC
-F7CD
-F7CE
-F7CF
-F7D0
-F7D1
-F7D2
-F7D3
-F7D4
-F7D5
-F7D6
-F7D7
-F7D8
-F7D9
-F7DA
-F7DB
-F7DC
-F7DD
-F7DE
-F7DF
-F7E0
-F7E1
-F7E2
-F7E3
-F7E4
-F7E5
-F7E6
-F7E7
-F7E8
-F7E9
-F7EA
-F7EB
-F7EC
-F7ED
-F7EE
-F7EF
-F7F0
-F7F1
-F7F2
-F7F3
-F7F4
-F7F5
-F7F6
-F7F7
-F7F8
-F7F9
-F7FA
-F7FB
-F7FC
-F7FD
-F7FE
-F8A1
-F8A2
-F8A3
-F8A4
-F8A5
-F8A6
-F8A7
-F8A8
-F8A9
-F8AA
-F8AB
-F8AC
-F8AD
-F8AE
-F8AF
-F8B0
-F8B1
-F8B2
-F8B3
-F8B4
-F8B5
-F8B6
-F8B7
-F8B8
-F8B9
-F8BA
-F8BB
-F8BC
-F8BD
-F8BE
-F8BF
-F8C0
-F8C1
-F8C2
-F8C3
-F8C4
-F8C5
-F8C6
-F8C7
-F8C8
-F8C9
-F8CA
-F8CB
-F8CC
-F8CD
-F8CE
-F8CF
-F8D0
-F8D1
-F8D2
-F8D3
-F8D4
-F8D5
-F8D6
-F8D7
-F8D8
-F8D9
-F8DA
-F8DB
-F8DC
-F8DD
-F8DE
-F8DF
-F8E0
-F8E1
-F8E2
-F8E3
-F8E4
-F8E5
-F8E6
-F8E7
-F8E8
-F8E9
-F8EA
-F8EB
-F8EC
-F8ED
-F8EE
-F8EF
-F8F0
-F8F1
-F8F2
-F8F3
-F8F4
-F8F5
-F8F6
-F8F7
-F8F8
-F8F9
-F8FA
-F8FB
-F8FC
-F8FD
-F8FE
-F9A1
-F9A2
-F9A3
-F9A4
-F9A5
-F9A6
-F9A7
-F9A8
-F9A9
-F9AA
-F9AB
-F9AC
-F9AD
-F9AE
-F9AF
-F9B0
-F9B1
-F9B2
-F9B3
-F9B4
-F9B5
-F9B6
-F9B7
-F9B8
-F9B9
-F9BA
-F9BB
-F9BC
-F9BD
-F9BE
-F9BF
-F9C0
-F9C1
-F9C2
-F9C3
-F9C4
-F9C5
-F9C6
-F9C7
-F9C8
-F9C9
-F9CA
-F9CB
-F9CC
-F9CD
-F9CE
-F9CF
-F9D0
-F9D1
-F9D2
-F9D3
-F9D4
-F9D5
-F9D6
-F9D7
-F9D8
-F9D9
-F9DA
-F9DB
-F9DC
-F9DD
-F9DE
-F9DF
-F9E0
-F9E1
-F9E2
-F9E3
-F9E4
-F9E5
-F9E6
-F9E7
-F9E8
-F9E9
-F9EA
-F9EB
-F9EC
-F9ED
-F9EE
-F9EF
-F9F0
-F9F1
-F9F2
-F9F3
-F9F4
-F9F5
-F9F6
-F9F7
-F9F8
-F9F9
-F9FA
-F9FB
-F9FC
-F9FD
-F9FE
-FAA1
-FAA2
-FAA3
-FAA4
-FAA5
-FAA6
-FAA7
-FAA8
-FAA9
-FAAA
-FAAB
-FAAC
-FAAD
-FAAE
-FAAF
-FAB0
-FAB1
-FAB2
-FAB3
-FAB4
-FAB5
-FAB6
-FAB7
-FAB8
-FAB9
-FABA
-FABB
-FABC
-FABD
-FABE
-FABF
-FAC0
-FAC1
-FAC2
-FAC3
-FAC4
-FAC5
-FAC6
-FAC7
-FAC8
-FAC9
-FACA
-FACB
-FACC
-FACD
-FACE
-FACF
-FAD0
-FAD1
-FAD2
-FAD3
-FAD4
-FAD5
-FAD6
-FAD7
-FAD8
-FAD9
-FADA
-FADB
-FADC
-FADD
-FADE
-FADF
-FAE0
-FAE1
-FAE2
-FAE3
-FAE4
-FAE5
-FAE6
-FAE7
-FAE8
-FAE9
-FAEA
-FAEB
-FAEC
-FAED
-FAEE
-FAEF
-FAF0
-FAF1
-FAF2
-FAF3
-FAF4
-FAF5
-FAF6
-FAF7
-FAF8
-FAF9
-FAFA
-FAFB
-FAFC
-FAFD
-FAFE
-FBA1
-FBA2
-FBA3
-FBA4
-FBA5
-FBA6
-FBA7
-FBA8
-FBA9
-FBAA
-FBAB
-FBAC
-FBAD
-FBAE
-FBAF
-FBB0
-FBB1
-FBB2
-FBB3
-FBB4
-FBB5
-FBB6
-FBB7
-FBB8
-FBB9
-FBBA
-FBBB
-FBBC
-FBBD
-FBBE
-FBBF
-FBC0
-FBC1
-FBC2
-FBC3
-FBC4
-FBC5
-FBC6
-FBC7
-FBC8
-FBC9
-FBCA
-FBCB
-FBCC
-FBCD
-FBCE
-FBCF
-FBD0
-FBD1
-FBD2
-FBD3
-FBD4
-FBD5
-FBD6
-FBD7
-FBD8
-FBD9
-FBDA
-FBDB
-FBDC
-FBDD
-FBDE
-FBDF
-FBE0
-FBE1
-FBE2
-FBE3
-FBE4
-FBE5
-FBE6
-FBE7
-FBE8
-FBE9
-FBEA
-FBEB
-FBEC
-FBED
-FBEE
-FBEF
-FBF0
-FBF1
-FBF2
-FBF3
-FBF4
-FBF5
-FBF6
-FBF7
-FBF8
-FBF9
-FBFA
-FBFB
-FBFC
-FBFD
-FBFE
-FCA1
-FCA2
-FCA3
-FCA4
-FCA5
-FCA6
-FCA7
-FCA8
-FCA9
-FCAA
-FCAB
-FCAC
-FCAD
-FCAE
-FCAF
-FCB0
-FCB1
-FCB2
-FCB3
-FCB4
-FCB5
-FCB6
-FCB7
-FCB8
-FCB9
-FCBA
-FCBB
-FCBC
-FCBD
-FCBE
-FCBF
-FCC0
-FCC1
-FCC2
-FCC3
-FCC4
-FCC5
-FCC6
-FCC7
-FCC8
-FCC9
-FCCA
-FCCB
-FCCC
-FCCD
-FCCE
-FCCF
-FCD0
-FCD1
-FCD2
-FCD3
-FCD4
-FCD5
-FCD6
-FCD7
-FCD8
-FCD9
-FCDA
-FCDB
-FCDC
-FCDD
-FCDE
-FCDF
-FCE0
-FCE1
-FCE2
-FCE3
-FCE4
-FCE5
-FCE6
-FCE7
-FCE8
-FCE9
-FCEA
-FCEB
-FCEC
-FCED
-FCEE
-FCEF
-FCF0
-FCF1
-FCF2
-FCF3
-FCF4
-FCF5
-FCF6
-FCF7
-FCF8
-FCF9
-FCFA
-FCFB
-FCFC
-FCFD
-FCFE
-FDA1
-FDA2
-FDA3
-FDA4
-FDA5
-FDA6
-FDA7
-FDA8
-FDA9
-FDAA
-FDAB
-FDAC
-FDAD
-FDAE
-FDAF
-FDB0
-FDB1
-FDB2
-FDB3
-FDB4
-FDB5
-FDB6
-FDB7
-FDB8
-FDB9
-FDBA
-FDBB
-FDBC
-FDBD
-FDBE
-FDBF
-FDC0
-FDC1
-FDC2
-FDC3
-FDC4
-FDC5
-FDC6
-FDC7
-FDC8
-FDC9
-FDCA
-FDCB
-FDCC
-FDCD
-FDCE
-FDCF
-FDD0
-FDD1
-FDD2
-FDD3
-FDD4
-FDD5
-FDD6
-FDD7
-FDD8
-FDD9
-FDDA
-FDDB
-FDDC
-FDDD
-FDDE
-FDDF
-FDE0
-FDE1
-FDE2
-FDE3
-FDE4
-FDE5
-FDE6
-FDE7
-FDE8
-FDE9
-FDEA
-FDEB
-FDEC
-FDED
-FDEE
-FDEF
-FDF0
-FDF1
-FDF2
-FDF3
-FDF4
-FDF5
-FDF6
-FDF7
-FDF8
-FDF9
-FDFA
-FDFB
-FDFC
-FDFD
-FDFE
-FEA1
-FEA2
-FEA3
-FEA4
-FEA5
-FEA6
-FEA7
-FEA8
-FEA9
-FEAA
-FEAB
-FEAC
-FEAD
-FEAE
-FEAF
-FEB0
-FEB1
-FEB2
-FEB3
-FEB4
-FEB5
-FEB6
-FEB7
-FEB8
-FEB9
-FEBA
-FEBB
-FEBC
-FEBD
-FEBE
-FEBF
-FEC0
-FEC1
-FEC2
-FEC3
-FEC4
-FEC5
-FEC6
-FEC7
-FEC8
-FEC9
-FECA
-FECB
-FECC
-FECD
-FECE
-FECF
-FED0
-FED1
-FED2
-FED3
-FED4
-FED5
-FED6
-FED7
-FED8
-FED9
-FEDA
-FEDB
-FEDC
-FEDD
-FEDE
-FEDF
-FEE0
-FEE1
-FEE2
-FEE3
-FEE4
-FEE5
-FEE6
-FEE7
-FEE8
-FEE9
-FEEA
-FEEB
-FEEC
-FEED
-FEEE
-FEEF
-FEF0
-FEF1
-FEF2
-FEF3
-FEF4
-FEF5
-FEF6
-FEF7
-FEF8
-FEF9
-FEFA
-FEFB
-FEFC
-FEFD
-FEFE
-8FF5A1
-8FF5A2
-8FF5A3
-8FF5A4
-8FF5A5
-8FF5A6
-8FF5A7
-8FF5A8
-8FF5A9
-8FF5AA
-8FF5AB
-8FF5AC
-8FF5AD
-8FF5AE
-8FF5AF
-8FF5B0
-8FF5B1
-8FF5B2
-8FF5B3
-8FF5B4
-8FF5B5
-8FF5B6
-8FF5B7
-8FF5B8
-8FF5B9
-8FF5BA
-8FF5BB
-8FF5BC
-8FF5BD
-8FF5BE
-8FF5BF
-8FF5C0
-8FF5C1
-8FF5C2
-8FF5C3
-8FF5C4
-8FF5C5
-8FF5C6
-8FF5C7
-8FF5C8
-8FF5C9
-8FF5CA
-8FF5CB
-8FF5CC
-8FF5CD
-8FF5CE
-8FF5CF
-8FF5D0
-8FF5D1
-8FF5D2
-8FF5D3
-8FF5D4
-8FF5D5
-8FF5D6
-8FF5D7
-8FF5D8
-8FF5D9
-8FF5DA
-8FF5DB
-8FF5DC
-8FF5DD
-8FF5DE
-8FF5DF
-8FF5E0
-8FF5E1
-8FF5E2
-8FF5E3
-8FF5E4
-8FF5E5
-8FF5E6
-8FF5E7
-8FF5E8
-8FF5E9
-8FF5EA
-8FF5EB
-8FF5EC
-8FF5ED
-8FF5EE
-8FF5EF
-8FF5F0
-8FF5F1
-8FF5F2
-8FF5F3
-8FF5F4
-8FF5F5
-8FF5F6
-8FF5F7
-8FF5F8
-8FF5F9
-8FF5FA
-8FF5FB
-8FF5FC
-8FF5FD
-8FF5FE
-8FF6A1
-8FF6A2
-8FF6A3
-8FF6A4
-8FF6A5
-8FF6A6
-8FF6A7
-8FF6A8
-8FF6A9
-8FF6AA
-8FF6AB
-8FF6AC
-8FF6AD
-8FF6AE
-8FF6AF
-8FF6B0
-8FF6B1
-8FF6B2
-8FF6B3
-8FF6B4
-8FF6B5
-8FF6B6
-8FF6B7
-8FF6B8
-8FF6B9
-8FF6BA
-8FF6BB
-8FF6BC
-8FF6BD
-8FF6BE
-8FF6BF
-8FF6C0
-8FF6C1
-8FF6C2
-8FF6C3
-8FF6C4
-8FF6C5
-8FF6C6
-8FF6C7
-8FF6C8
-8FF6C9
-8FF6CA
-8FF6CB
-8FF6CC
-8FF6CD
-8FF6CE
-8FF6CF
-8FF6D0
-8FF6D1
-8FF6D2
-8FF6D3
-8FF6D4
-8FF6D5
-8FF6D6
-8FF6D7
-8FF6D8
-8FF6D9
-8FF6DA
-8FF6DB
-8FF6DC
-8FF6DD
-8FF6DE
-8FF6DF
-8FF6E0
-8FF6E1
-8FF6E2
-8FF6E3
-8FF6E4
-8FF6E5
-8FF6E6
-8FF6E7
-8FF6E8
-8FF6E9
-8FF6EA
-8FF6EB
-8FF6EC
-8FF6ED
-8FF6EE
-8FF6EF
-8FF6F0
-8FF6F1
-8FF6F2
-8FF6F3
-8FF6F4
-8FF6F5
-8FF6F6
-8FF6F7
-8FF6F8
-8FF6F9
-8FF6FA
-8FF6FB
-8FF6FC
-8FF6FD
-8FF6FE
-8FF7A1
-8FF7A2
-8FF7A3
-8FF7A4
-8FF7A5
-8FF7A6
-8FF7A7
-8FF7A8
-8FF7A9
-8FF7AA
-8FF7AB
-8FF7AC
-8FF7AD
-8FF7AE
-8FF7AF
-8FF7B0
-8FF7B1
-8FF7B2
-8FF7B3
-8FF7B4
-8FF7B5
-8FF7B6
-8FF7B7
-8FF7B8
-8FF7B9
-8FF7BA
-8FF7BB
-8FF7BC
-8FF7BD
-8FF7BE
-8FF7BF
-8FF7C0
-8FF7C1
-8FF7C2
-8FF7C3
-8FF7C4
-8FF7C5
-8FF7C6
-8FF7C7
-8FF7C8
-8FF7C9
-8FF7CA
-8FF7CB
-8FF7CC
-8FF7CD
-8FF7CE
-8FF7CF
-8FF7D0
-8FF7D1
-8FF7D2
-8FF7D3
-8FF7D4
-8FF7D5
-8FF7D6
-8FF7D7
-8FF7D8
-8FF7D9
-8FF7DA
-8FF7DB
-8FF7DC
-8FF7DD
-8FF7DE
-8FF7DF
-8FF7E0
-8FF7E1
-8FF7E2
-8FF7E3
-8FF7E4
-8FF7E5
-8FF7E6
-8FF7E7
-8FF7E8
-8FF7E9
-8FF7EA
-8FF7EB
-8FF7EC
-8FF7ED
-8FF7EE
-8FF7EF
-8FF7F0
-8FF7F1
-8FF7F2
-8FF7F3
-8FF7F4
-8FF7F5
-8FF7F6
-8FF7F7
-8FF7F8
-8FF7F9
-8FF7FA
-8FF7FB
-8FF7FC
-8FF7FD
-8FF7FE
-8FF8A1
-8FF8A2
-8FF8A3
-8FF8A4
-8FF8A5
-8FF8A6
-8FF8A7
-8FF8A8
-8FF8A9
-8FF8AA
-8FF8AB
-8FF8AC
-8FF8AD
-8FF8AE
-8FF8AF
-8FF8B0
-8FF8B1
-8FF8B2
-8FF8B3
-8FF8B4
-8FF8B5
-8FF8B6
-8FF8B7
-8FF8B8
-8FF8B9
-8FF8BA
-8FF8BB
-8FF8BC
-8FF8BD
-8FF8BE
-8FF8BF
-8FF8C0
-8FF8C1
-8FF8C2
-8FF8C3
-8FF8C4
-8FF8C5
-8FF8C6
-8FF8C7
-8FF8C8
-8FF8C9
-8FF8CA
-8FF8CB
-8FF8CC
-8FF8CD
-8FF8CE
-8FF8CF
-8FF8D0
-8FF8D1
-8FF8D2
-8FF8D3
-8FF8D4
-8FF8D5
-8FF8D6
-8FF8D7
-8FF8D8
-8FF8D9
-8FF8DA
-8FF8DB
-8FF8DC
-8FF8DD
-8FF8DE
-8FF8DF
-8FF8E0
-8FF8E1
-8FF8E2
-8FF8E3
-8FF8E4
-8FF8E5
-8FF8E6
-8FF8E7
-8FF8E8
-8FF8E9
-8FF8EA
-8FF8EB
-8FF8EC
-8FF8ED
-8FF8EE
-8FF8EF
-8FF8F0
-8FF8F1
-8FF8F2
-8FF8F3
-8FF8F4
-8FF8F5
-8FF8F6
-8FF8F7
-8FF8F8
-8FF8F9
-8FF8FA
-8FF8FB
-8FF8FC
-8FF8FD
-8FF8FE
-8FF9A1
-8FF9A2
-8FF9A3
-8FF9A4
-8FF9A5
-8FF9A6
-8FF9A7
-8FF9A8
-8FF9A9
-8FF9AA
-8FF9AB
-8FF9AC
-8FF9AD
-8FF9AE
-8FF9AF
-8FF9B0
-8FF9B1
-8FF9B2
-8FF9B3
-8FF9B4
-8FF9B5
-8FF9B6
-8FF9B7
-8FF9B8
-8FF9B9
-8FF9BA
-8FF9BB
-8FF9BC
-8FF9BD
-8FF9BE
-8FF9BF
-8FF9C0
-8FF9C1
-8FF9C2
-8FF9C3
-8FF9C4
-8FF9C5
-8FF9C6
-8FF9C7
-8FF9C8
-8FF9C9
-8FF9CA
-8FF9CB
-8FF9CC
-8FF9CD
-8FF9CE
-8FF9CF
-8FF9D0
-8FF9D1
-8FF9D2
-8FF9D3
-8FF9D4
-8FF9D5
-8FF9D6
-8FF9D7
-8FF9D8
-8FF9D9
-8FF9DA
-8FF9DB
-8FF9DC
-8FF9DD
-8FF9DE
-8FF9DF
-8FF9E0
-8FF9E1
-8FF9E2
-8FF9E3
-8FF9E4
-8FF9E5
-8FF9E6
-8FF9E7
-8FF9E8
-8FF9E9
-8FF9EA
-8FF9EB
-8FF9EC
-8FF9ED
-8FF9EE
-8FF9EF
-8FF9F0
-8FF9F1
-8FF9F2
-8FF9F3
-8FF9F4
-8FF9F5
-8FF9F6
-8FF9F7
-8FF9F8
-8FF9F9
-8FF9FA
-8FF9FB
-8FF9FC
-8FF9FD
-8FF9FE
-8FFAA1
-8FFAA2
-8FFAA3
-8FFAA4
-8FFAA5
-8FFAA6
-8FFAA7
-8FFAA8
-8FFAA9
-8FFAAA
-8FFAAB
-8FFAAC
-8FFAAD
-8FFAAE
-8FFAAF
-8FFAB0
-8FFAB1
-8FFAB2
-8FFAB3
-8FFAB4
-8FFAB5
-8FFAB6
-8FFAB7
-8FFAB8
-8FFAB9
-8FFABA
-8FFABB
-8FFABC
-8FFABD
-8FFABE
-8FFABF
-8FFAC0
-8FFAC1
-8FFAC2
-8FFAC3
-8FFAC4
-8FFAC5
-8FFAC6
-8FFAC7
-8FFAC8
-8FFAC9
-8FFACA
-8FFACB
-8FFACC
-8FFACD
-8FFACE
-8FFACF
-8FFAD0
-8FFAD1
-8FFAD2
-8FFAD3
-8FFAD4
-8FFAD5
-8FFAD6
-8FFAD7
-8FFAD8
-8FFAD9
-8FFADA
-8FFADB
-8FFADC
-8FFADD
-8FFADE
-8FFADF
-8FFAE0
-8FFAE1
-8FFAE2
-8FFAE3
-8FFAE4
-8FFAE5
-8FFAE6
-8FFAE7
-8FFAE8
-8FFAE9
-8FFAEA
-8FFAEB
-8FFAEC
-8FFAED
-8FFAEE
-8FFAEF
-8FFAF0
-8FFAF1
-8FFAF2
-8FFAF3
-8FFAF4
-8FFAF5
-8FFAF6
-8FFAF7
-8FFAF8
-8FFAF9
-8FFAFA
-8FFAFB
-8FFAFC
-8FFAFD
-8FFAFE
-8FFBA1
-8FFBA2
-8FFBA3
-8FFBA4
-8FFBA5
-8FFBA6
-8FFBA7
-8FFBA8
-8FFBA9
-8FFBAA
-8FFBAB
-8FFBAC
-8FFBAD
-8FFBAE
-8FFBAF
-8FFBB0
-8FFBB1
-8FFBB2
-8FFBB3
-8FFBB4
-8FFBB5
-8FFBB6
-8FFBB7
-8FFBB8
-8FFBB9
-8FFBBA
-8FFBBB
-8FFBBC
-8FFBBD
-8FFBBE
-8FFBBF
-8FFBC0
-8FFBC1
-8FFBC2
-8FFBC3
-8FFBC4
-8FFBC5
-8FFBC6
-8FFBC7
-8FFBC8
-8FFBC9
-8FFBCA
-8FFBCB
-8FFBCC
-8FFBCD
-8FFBCE
-8FFBCF
-8FFBD0
-8FFBD1
-8FFBD2
-8FFBD3
-8FFBD4
-8FFBD5
-8FFBD6
-8FFBD7
-8FFBD8
-8FFBD9
-8FFBDA
-8FFBDB
-8FFBDC
-8FFBDD
-8FFBDE
-8FFBDF
-8FFBE0
-8FFBE1
-8FFBE2
-8FFBE3
-8FFBE4
-8FFBE5
-8FFBE6
-8FFBE7
-8FFBE8
-8FFBE9
-8FFBEA
-8FFBEB
-8FFBEC
-8FFBED
-8FFBEE
-8FFBEF
-8FFBF0
-8FFBF1
-8FFBF2
-8FFBF3
-8FFBF4
-8FFBF5
-8FFBF6
-8FFBF7
-8FFBF8
-8FFBF9
-8FFBFA
-8FFBFB
-8FFBFC
-8FFBFD
-8FFBFE
-8FFCA1
-8FFCA2
-8FFCA3
-8FFCA4
-8FFCA5
-8FFCA6
-8FFCA7
-8FFCA8
-8FFCA9
-8FFCAA
-8FFCAB
-8FFCAC
-8FFCAD
-8FFCAE
-8FFCAF
-8FFCB0
-8FFCB1
-8FFCB2
-8FFCB3
-8FFCB4
-8FFCB5
-8FFCB6
-8FFCB7
-8FFCB8
-8FFCB9
-8FFCBA
-8FFCBB
-8FFCBC
-8FFCBD
-8FFCBE
-8FFCBF
-8FFCC0
-8FFCC1
-8FFCC2
-8FFCC3
-8FFCC4
-8FFCC5
-8FFCC6
-8FFCC7
-8FFCC8
-8FFCC9
-8FFCCA
-8FFCCB
-8FFCCC
-8FFCCD
-8FFCCE
-8FFCCF
-8FFCD0
-8FFCD1
-8FFCD2
-8FFCD3
-8FFCD4
-8FFCD5
-8FFCD6
-8FFCD7
-8FFCD8
-8FFCD9
-8FFCDA
-8FFCDB
-8FFCDC
-8FFCDD
-8FFCDE
-8FFCDF
-8FFCE0
-8FFCE1
-8FFCE2
-8FFCE3
-8FFCE4
-8FFCE5
-8FFCE6
-8FFCE7
-8FFCE8
-8FFCE9
-8FFCEA
-8FFCEB
-8FFCEC
-8FFCED
-8FFCEE
-8FFCEF
-8FFCF0
-8FFCF1
-8FFCF2
-8FFCF3
-8FFCF4
-8FFCF5
-8FFCF6
-8FFCF7
-8FFCF8
-8FFCF9
-8FFCFA
-8FFCFB
-8FFCFC
-8FFCFD
-8FFCFE
-8FFDA1
-8FFDA2
-8FFDA3
-8FFDA4
-8FFDA5
-8FFDA6
-8FFDA7
-8FFDA8
-8FFDA9
-8FFDAA
-8FFDAB
-8FFDAC
-8FFDAD
-8FFDAE
-8FFDAF
-8FFDB0
-8FFDB1
-8FFDB2
-8FFDB3
-8FFDB4
-8FFDB5
-8FFDB6
-8FFDB7
-8FFDB8
-8FFDB9
-8FFDBA
-8FFDBB
-8FFDBC
-8FFDBD
-8FFDBE
-8FFDBF
-8FFDC0
-8FFDC1
-8FFDC2
-8FFDC3
-8FFDC4
-8FFDC5
-8FFDC6
-8FFDC7
-8FFDC8
-8FFDC9
-8FFDCA
-8FFDCB
-8FFDCC
-8FFDCD
-8FFDCE
-8FFDCF
-8FFDD0
-8FFDD1
-8FFDD2
-8FFDD3
-8FFDD4
-8FFDD5
-8FFDD6
-8FFDD7
-8FFDD8
-8FFDD9
-8FFDDA
-8FFDDB
-8FFDDC
-8FFDDD
-8FFDDE
-8FFDDF
-8FFDE0
-8FFDE1
-8FFDE2
-8FFDE3
-8FFDE4
-8FFDE5
-8FFDE6
-8FFDE7
-8FFDE8
-8FFDE9
-8FFDEA
-8FFDEB
-8FFDEC
-8FFDED
-8FFDEE
-8FFDEF
-8FFDF0
-8FFDF1
-8FFDF2
-8FFDF3
-8FFDF4
-8FFDF5
-8FFDF6
-8FFDF7
-8FFDF8
-8FFDF9
-8FFDFA
-8FFDFB
-8FFDFC
-8FFDFD
-8FFDFE
-8FFEA1
-8FFEA2
-8FFEA3
-8FFEA4
-8FFEA5
-8FFEA6
-8FFEA7
-8FFEA8
-8FFEA9
-8FFEAA
-8FFEAB
-8FFEAC
-8FFEAD
-8FFEAE
-8FFEAF
-8FFEB0
-8FFEB1
-8FFEB2
-8FFEB3
-8FFEB4
-8FFEB5
-8FFEB6
-8FFEB7
-8FFEB8
-8FFEB9
-8FFEBA
-8FFEBB
-8FFEBC
-8FFEBD
-8FFEBE
-8FFEBF
-8FFEC0
-8FFEC1
-8FFEC2
-8FFEC3
-8FFEC4
-8FFEC5
-8FFEC6
-8FFEC7
-8FFEC8
-8FFEC9
-8FFECA
-8FFECB
-8FFECC
-8FFECD
-8FFECE
-8FFECF
-8FFED0
-8FFED1
-8FFED2
-8FFED3
-8FFED4
-8FFED5
-8FFED6
-8FFED7
-8FFED8
-8FFED9
-8FFEDA
-8FFEDB
-8FFEDC
-8FFEDD
-8FFEDE
-8FFEDF
-8FFEE0
-8FFEE1
-8FFEE2
-8FFEE3
-8FFEE4
-8FFEE5
-8FFEE6
-8FFEE7
-8FFEE8
-8FFEE9
-8FFEEA
-8FFEEB
-8FFEEC
-8FFEED
-8FFEEE
-8FFEEF
-8FFEF0
-8FFEF1
-8FFEF2
-8FFEF3
-8FFEF4
-8FFEF5
-8FFEF6
-8FFEF7
-8FFEF8
-8FFEF9
-8FFEFA
-8FFEFB
-8FFEFC
-8FFEFD
-8FFEFE
-CREATE TABLE t2 SELECT CONVERT(c1 USING ucs2) AS c1 FROM t1;
-SELECT HEX(c1) FROM t2;
-HEX(c1)
-005C
-007E
-FFE3
-2015
-FF3C
-FF5E
-2225
-FF0D
-FFE0
-FFE1
-FFE5
-FFE2
-FF5E
-FFE4
-2460
-2461
-2462
-2463
-2464
-2465
-2466
-2467
-2468
-2469
-246A
-246B
-246C
-246D
-246E
-246F
-2470
-2471
-2472
-2473
-2160
-2161
-2162
-2163
-2164
-2165
-2166
-2167
-2168
-2169
-3349
-3314
-3322
-334D
-3318
-3327
-3303
-3336
-3351
-3357
-330D
-3326
-3323
-332B
-334A
-333B
-339C
-339D
-339E
-338E
-338F
-33C4
-33A1
-337B
-301D
-301F
-2116
-33CD
-2121
-32A4
-32A5
-32A6
-32A7
-32A8
-3231
-3232
-3239
-337E
-337D
-337C
-2252
-2261
-222B
-222E
-2211
-221A
-22A5
-2220
-221F
-22BF
-2235
-2229
-222A
-2170
-2171
-2172
-2173
-2174
-2175
-2176
-2177
-2178
-2179
-2160
-2161
-2162
-2163
-2164
-2165
-2166
-2167
-2168
-2169
-FFE2
-FFE4
-FF07
-FF02
-3231
-2116
-2121
-2235
-7E8A
-891C
-9348
-9288
-84DC
-4FC9
-70BB
-6631
-68C8
-92F9
-66FB
-5F45
-4E28
-4EE1
-4EFC
-4F00
-4F03
-4F39
-4F56
-4F92
-4F8A
-4F9A
-4F94
-4FCD
-5040
-5022
-4FFF
-501E
-5046
-5070
-5042
-5094
-50F4
-50D8
-514A
-5164
-519D
-51BE
-51EC
-5215
-529C
-52A6
-52C0
-52DB
-5300
-5307
-5324
-5372
-5393
-53B2
-53DD
-FA0E
-549C
-548A
-54A9
-54FF
-5586
-5759
-5765
-57AC
-57C8
-57C7
-FA0F
-FA10
-589E
-58B2
-590B
-5953
-595B
-595D
-5963
-59A4
-59BA
-5B56
-5BC0
-752F
-5BD8
-5BEC
-5C1E
-5CA6
-5CBA
-5CF5
-5D27
-5D53
-FA11
-5D42
-5D6D
-5DB8
-5DB9
-5DD0
-5F21
-5F34
-5F67
-5FB7
-5FDE
-605D
-6085
-608A
-60DE
-60D5
-6120
-60F2
-6111
-6137
-6130
-6198
-6213
-62A6
-63F5
-6460
-649D
-64CE
-654E
-6600
-6615
-663B
-6609
-662E
-661E
-6624
-6665
-6657
-6659
-FA12
-6673
-6699
-66A0
-66B2
-66BF
-66FA
-670E
-F929
-6766
-67BB
-6852
-67C0
-6801
-6844
-68CF
-FA13
-6968
-FA14
-6998
-69E2
-6A30
-6A6B
-6A46
-6A73
-6A7E
-6AE2
-6AE4
-6BD6
-6C3F
-6C5C
-6C86
-6C6F
-6CDA
-6D04
-6D87
-6D6F
-6D96
-6DAC
-6DCF
-6DF8
-6DF2
-6DFC
-6E39
-6E5C
-6E27
-6E3C
-6EBF
-6F88
-6FB5
-6FF5
-7005
-7007
-7028
-7085
-70AB
-710F
-7104
-715C
-7146
-7147
-FA15
-71C1
-71FE
-72B1
-72BE
-7324
-FA16
-7377
-73BD
-73C9
-73D6
-73E3
-73D2
-7407
-73F5
-7426
-742A
-7429
-742E
-7462
-7489
-749F
-7501
-756F
-7682
-769C
-769E
-769B
-76A6
-FA17
-7746
-52AF
-7821
-784E
-7864
-787A
-7930
-FA18
-FA19
-FA1A
-7994
-FA1B
-799B
-7AD1
-7AE7
-FA1C
-7AEB
-7B9E
-FA1D
-7D48
-7D5C
-7DB7
-7DA0
-7DD6
-7E52
-7F47
-7FA1
-FA1E
-8301
-8362
-837F
-83C7
-83F6
-8448
-84B4
-8553
-8559
-856B
-FA1F
-85B0
-FA20
-FA21
-8807
-88F5
-8A12
-8A37
-8A79
-8AA7
-8ABE
-8ADF
-FA22
-8AF6
-8B53
-8B7F
-8CF0
-8CF4
-8D12
-8D76
-FA23
-8ECF
-FA24
-FA25
-9067
-90DE
-FA26
-9115
-9127
-91DA
-91D7
-91DE
-91ED
-91EE
-91E4
-91E5
-9206
-9210
-920A
-923A
-9240
-923C
-924E
-9259
-9251
-9239
-9267
-92A7
-9277
-9278
-92E7
-92D7
-92D9
-92D0
-FA27
-92D5
-92E0
-92D3
-9325
-9321
-92FB
-FA28
-931E
-92FF
-931D
-9302
-9370
-9357
-93A4
-93C6
-93DE
-93F8
-9431
-9445
-9448
-9592
-F9DC
-FA29
-969D
-96AF
-9733
-973B
-9743
-974D
-974F
-9751
-9755
-9857
-9865
-FA2A
-FA2B
-9927
-FA2C
-999E
-9A4E
-9AD9
-9ADC
-9B75
-9B72
-9B8F
-9BB1
-9BBB
-9C00
-9D70
-9D6B
-FA2D
-9E19
-9ED1
-E000
-E001
-E002
-E003
-E004
-E005
-E006
-E007
-E008
-E009
-E00A
-E00B
-E00C
-E00D
-E00E
-E00F
-E010
-E011
-E012
-E013
-E014
-E015
-E016
-E017
-E018
-E019
-E01A
-E01B
-E01C
-E01D
-E01E
-E01F
-E020
-E021
-E022
-E023
-E024
-E025
-E026
-E027
-E028
-E029
-E02A
-E02B
-E02C
-E02D
-E02E
-E02F
-E030
-E031
-E032
-E033
-E034
-E035
-E036
-E037
-E038
-E039
-E03A
-E03B
-E03C
-E03D
-E03E
-E03F
-E040
-E041
-E042
-E043
-E044
-E045
-E046
-E047
-E048
-E049
-E04A
-E04B
-E04C
-E04D
-E04E
-E04F
-E050
-E051
-E052
-E053
-E054
-E055
-E056
-E057
-E058
-E059
-E05A
-E05B
-E05C
-E05D
-E05E
-E05F
-E060
-E061
-E062
-E063
-E064
-E065
-E066
-E067
-E068
-E069
-E06A
-E06B
-E06C
-E06D
-E06E
-E06F
-E070
-E071
-E072
-E073
-E074
-E075
-E076
-E077
-E078
-E079
-E07A
-E07B
-E07C
-E07D
-E07E
-E07F
-E080
-E081
-E082
-E083
-E084
-E085
-E086
-E087
-E088
-E089
-E08A
-E08B
-E08C
-E08D
-E08E
-E08F
-E090
-E091
-E092
-E093
-E094
-E095
-E096
-E097
-E098
-E099
-E09A
-E09B
-E09C
-E09D
-E09E
-E09F
-E0A0
-E0A1
-E0A2
-E0A3
-E0A4
-E0A5
-E0A6
-E0A7
-E0A8
-E0A9
-E0AA
-E0AB
-E0AC
-E0AD
-E0AE
-E0AF
-E0B0
-E0B1
-E0B2
-E0B3
-E0B4
-E0B5
-E0B6
-E0B7
-E0B8
-E0B9
-E0BA
-E0BB
-E0BC
-E0BD
-E0BE
-E0BF
-E0C0
-E0C1
-E0C2
-E0C3
-E0C4
-E0C5
-E0C6
-E0C7
-E0C8
-E0C9
-E0CA
-E0CB
-E0CC
-E0CD
-E0CE
-E0CF
-E0D0
-E0D1
-E0D2
-E0D3
-E0D4
-E0D5
-E0D6
-E0D7
-E0D8
-E0D9
-E0DA
-E0DB
-E0DC
-E0DD
-E0DE
-E0DF
-E0E0
-E0E1
-E0E2
-E0E3
-E0E4
-E0E5
-E0E6
-E0E7
-E0E8
-E0E9
-E0EA
-E0EB
-E0EC
-E0ED
-E0EE
-E0EF
-E0F0
-E0F1
-E0F2
-E0F3
-E0F4
-E0F5
-E0F6
-E0F7
-E0F8
-E0F9
-E0FA
-E0FB
-E0FC
-E0FD
-E0FE
-E0FF
-E100
-E101
-E102
-E103
-E104
-E105
-E106
-E107
-E108
-E109
-E10A
-E10B
-E10C
-E10D
-E10E
-E10F
-E110
-E111
-E112
-E113
-E114
-E115
-E116
-E117
-E118
-E119
-E11A
-E11B
-E11C
-E11D
-E11E
-E11F
-E120
-E121
-E122
-E123
-E124
-E125
-E126
-E127
-E128
-E129
-E12A
-E12B
-E12C
-E12D
-E12E
-E12F
-E130
-E131
-E132
-E133
-E134
-E135
-E136
-E137
-E138
-E139
-E13A
-E13B
-E13C
-E13D
-E13E
-E13F
-E140
-E141
-E142
-E143
-E144
-E145
-E146
-E147
-E148
-E149
-E14A
-E14B
-E14C
-E14D
-E14E
-E14F
-E150
-E151
-E152
-E153
-E154
-E155
-E156
-E157
-E158
-E159
-E15A
-E15B
-E15C
-E15D
-E15E
-E15F
-E160
-E161
-E162
-E163
-E164
-E165
-E166
-E167
-E168
-E169
-E16A
-E16B
-E16C
-E16D
-E16E
-E16F
-E170
-E171
-E172
-E173
-E174
-E175
-E176
-E177
-E178
-E179
-E17A
-E17B
-E17C
-E17D
-E17E
-E17F
-E180
-E181
-E182
-E183
-E184
-E185
-E186
-E187
-E188
-E189
-E18A
-E18B
-E18C
-E18D
-E18E
-E18F
-E190
-E191
-E192
-E193
-E194
-E195
-E196
-E197
-E198
-E199
-E19A
-E19B
-E19C
-E19D
-E19E
-E19F
-E1A0
-E1A1
-E1A2
-E1A3
-E1A4
-E1A5
-E1A6
-E1A7
-E1A8
-E1A9
-E1AA
-E1AB
-E1AC
-E1AD
-E1AE
-E1AF
-E1B0
-E1B1
-E1B2
-E1B3
-E1B4
-E1B5
-E1B6
-E1B7
-E1B8
-E1B9
-E1BA
-E1BB
-E1BC
-E1BD
-E1BE
-E1BF
-E1C0
-E1C1
-E1C2
-E1C3
-E1C4
-E1C5
-E1C6
-E1C7
-E1C8
-E1C9
-E1CA
-E1CB
-E1CC
-E1CD
-E1CE
-E1CF
-E1D0
-E1D1
-E1D2
-E1D3
-E1D4
-E1D5
-E1D6
-E1D7
-E1D8
-E1D9
-E1DA
-E1DB
-E1DC
-E1DD
-E1DE
-E1DF
-E1E0
-E1E1
-E1E2
-E1E3
-E1E4
-E1E5
-E1E6
-E1E7
-E1E8
-E1E9
-E1EA
-E1EB
-E1EC
-E1ED
-E1EE
-E1EF
-E1F0
-E1F1
-E1F2
-E1F3
-E1F4
-E1F5
-E1F6
-E1F7
-E1F8
-E1F9
-E1FA
-E1FB
-E1FC
-E1FD
-E1FE
-E1FF
-E200
-E201
-E202
-E203
-E204
-E205
-E206
-E207
-E208
-E209
-E20A
-E20B
-E20C
-E20D
-E20E
-E20F
-E210
-E211
-E212
-E213
-E214
-E215
-E216
-E217
-E218
-E219
-E21A
-E21B
-E21C
-E21D
-E21E
-E21F
-E220
-E221
-E222
-E223
-E224
-E225
-E226
-E227
-E228
-E229
-E22A
-E22B
-E22C
-E22D
-E22E
-E22F
-E230
-E231
-E232
-E233
-E234
-E235
-E236
-E237
-E238
-E239
-E23A
-E23B
-E23C
-E23D
-E23E
-E23F
-E240
-E241
-E242
-E243
-E244
-E245
-E246
-E247
-E248
-E249
-E24A
-E24B
-E24C
-E24D
-E24E
-E24F
-E250
-E251
-E252
-E253
-E254
-E255
-E256
-E257
-E258
-E259
-E25A
-E25B
-E25C
-E25D
-E25E
-E25F
-E260
-E261
-E262
-E263
-E264
-E265
-E266
-E267
-E268
-E269
-E26A
-E26B
-E26C
-E26D
-E26E
-E26F
-E270
-E271
-E272
-E273
-E274
-E275
-E276
-E277
-E278
-E279
-E27A
-E27B
-E27C
-E27D
-E27E
-E27F
-E280
-E281
-E282
-E283
-E284
-E285
-E286
-E287
-E288
-E289
-E28A
-E28B
-E28C
-E28D
-E28E
-E28F
-E290
-E291
-E292
-E293
-E294
-E295
-E296
-E297
-E298
-E299
-E29A
-E29B
-E29C
-E29D
-E29E
-E29F
-E2A0
-E2A1
-E2A2
-E2A3
-E2A4
-E2A5
-E2A6
-E2A7
-E2A8
-E2A9
-E2AA
-E2AB
-E2AC
-E2AD
-E2AE
-E2AF
-E2B0
-E2B1
-E2B2
-E2B3
-E2B4
-E2B5
-E2B6
-E2B7
-E2B8
-E2B9
-E2BA
-E2BB
-E2BC
-E2BD
-E2BE
-E2BF
-E2C0
-E2C1
-E2C2
-E2C3
-E2C4
-E2C5
-E2C6
-E2C7
-E2C8
-E2C9
-E2CA
-E2CB
-E2CC
-E2CD
-E2CE
-E2CF
-E2D0
-E2D1
-E2D2
-E2D3
-E2D4
-E2D5
-E2D6
-E2D7
-E2D8
-E2D9
-E2DA
-E2DB
-E2DC
-E2DD
-E2DE
-E2DF
-E2E0
-E2E1
-E2E2
-E2E3
-E2E4
-E2E5
-E2E6
-E2E7
-E2E8
-E2E9
-E2EA
-E2EB
-E2EC
-E2ED
-E2EE
-E2EF
-E2F0
-E2F1
-E2F2
-E2F3
-E2F4
-E2F5
-E2F6
-E2F7
-E2F8
-E2F9
-E2FA
-E2FB
-E2FC
-E2FD
-E2FE
-E2FF
-E300
-E301
-E302
-E303
-E304
-E305
-E306
-E307
-E308
-E309
-E30A
-E30B
-E30C
-E30D
-E30E
-E30F
-E310
-E311
-E312
-E313
-E314
-E315
-E316
-E317
-E318
-E319
-E31A
-E31B
-E31C
-E31D
-E31E
-E31F
-E320
-E321
-E322
-E323
-E324
-E325
-E326
-E327
-E328
-E329
-E32A
-E32B
-E32C
-E32D
-E32E
-E32F
-E330
-E331
-E332
-E333
-E334
-E335
-E336
-E337
-E338
-E339
-E33A
-E33B
-E33C
-E33D
-E33E
-E33F
-E340
-E341
-E342
-E343
-E344
-E345
-E346
-E347
-E348
-E349
-E34A
-E34B
-E34C
-E34D
-E34E
-E34F
-E350
-E351
-E352
-E353
-E354
-E355
-E356
-E357
-E358
-E359
-E35A
-E35B
-E35C
-E35D
-E35E
-E35F
-E360
-E361
-E362
-E363
-E364
-E365
-E366
-E367
-E368
-E369
-E36A
-E36B
-E36C
-E36D
-E36E
-E36F
-E370
-E371
-E372
-E373
-E374
-E375
-E376
-E377
-E378
-E379
-E37A
-E37B
-E37C
-E37D
-E37E
-E37F
-E380
-E381
-E382
-E383
-E384
-E385
-E386
-E387
-E388
-E389
-E38A
-E38B
-E38C
-E38D
-E38E
-E38F
-E390
-E391
-E392
-E393
-E394
-E395
-E396
-E397
-E398
-E399
-E39A
-E39B
-E39C
-E39D
-E39E
-E39F
-E3A0
-E3A1
-E3A2
-E3A3
-E3A4
-E3A5
-E3A6
-E3A7
-E3A8
-E3A9
-E3AA
-E3AB
-E3AC
-E3AD
-E3AE
-E3AF
-E3B0
-E3B1
-E3B2
-E3B3
-E3B4
-E3B5
-E3B6
-E3B7
-E3B8
-E3B9
-E3BA
-E3BB
-E3BC
-E3BD
-E3BE
-E3BF
-E3C0
-E3C1
-E3C2
-E3C3
-E3C4
-E3C5
-E3C6
-E3C7
-E3C8
-E3C9
-E3CA
-E3CB
-E3CC
-E3CD
-E3CE
-E3CF
-E3D0
-E3D1
-E3D2
-E3D3
-E3D4
-E3D5
-E3D6
-E3D7
-E3D8
-E3D9
-E3DA
-E3DB
-E3DC
-E3DD
-E3DE
-E3DF
-E3E0
-E3E1
-E3E2
-E3E3
-E3E4
-E3E5
-E3E6
-E3E7
-E3E8
-E3E9
-E3EA
-E3EB
-E3EC
-E3ED
-E3EE
-E3EF
-E3F0
-E3F1
-E3F2
-E3F3
-E3F4
-E3F5
-E3F6
-E3F7
-E3F8
-E3F9
-E3FA
-E3FB
-E3FC
-E3FD
-E3FE
-E3FF
-E400
-E401
-E402
-E403
-E404
-E405
-E406
-E407
-E408
-E409
-E40A
-E40B
-E40C
-E40D
-E40E
-E40F
-E410
-E411
-E412
-E413
-E414
-E415
-E416
-E417
-E418
-E419
-E41A
-E41B
-E41C
-E41D
-E41E
-E41F
-E420
-E421
-E422
-E423
-E424
-E425
-E426
-E427
-E428
-E429
-E42A
-E42B
-E42C
-E42D
-E42E
-E42F
-E430
-E431
-E432
-E433
-E434
-E435
-E436
-E437
-E438
-E439
-E43A
-E43B
-E43C
-E43D
-E43E
-E43F
-E440
-E441
-E442
-E443
-E444
-E445
-E446
-E447
-E448
-E449
-E44A
-E44B
-E44C
-E44D
-E44E
-E44F
-E450
-E451
-E452
-E453
-E454
-E455
-E456
-E457
-E458
-E459
-E45A
-E45B
-E45C
-E45D
-E45E
-E45F
-E460
-E461
-E462
-E463
-E464
-E465
-E466
-E467
-E468
-E469
-E46A
-E46B
-E46C
-E46D
-E46E
-E46F
-E470
-E471
-E472
-E473
-E474
-E475
-E476
-E477
-E478
-E479
-E47A
-E47B
-E47C
-E47D
-E47E
-E47F
-E480
-E481
-E482
-E483
-E484
-E485
-E486
-E487
-E488
-E489
-E48A
-E48B
-E48C
-E48D
-E48E
-E48F
-E490
-E491
-E492
-E493
-E494
-E495
-E496
-E497
-E498
-E499
-E49A
-E49B
-E49C
-E49D
-E49E
-E49F
-E4A0
-E4A1
-E4A2
-E4A3
-E4A4
-E4A5
-E4A6
-E4A7
-E4A8
-E4A9
-E4AA
-E4AB
-E4AC
-E4AD
-E4AE
-E4AF
-E4B0
-E4B1
-E4B2
-E4B3
-E4B4
-E4B5
-E4B6
-E4B7
-E4B8
-E4B9
-E4BA
-E4BB
-E4BC
-E4BD
-E4BE
-E4BF
-E4C0
-E4C1
-E4C2
-E4C3
-E4C4
-E4C5
-E4C6
-E4C7
-E4C8
-E4C9
-E4CA
-E4CB
-E4CC
-E4CD
-E4CE
-E4CF
-E4D0
-E4D1
-E4D2
-E4D3
-E4D4
-E4D5
-E4D6
-E4D7
-E4D8
-E4D9
-E4DA
-E4DB
-E4DC
-E4DD
-E4DE
-E4DF
-E4E0
-E4E1
-E4E2
-E4E3
-E4E4
-E4E5
-E4E6
-E4E7
-E4E8
-E4E9
-E4EA
-E4EB
-E4EC
-E4ED
-E4EE
-E4EF
-E4F0
-E4F1
-E4F2
-E4F3
-E4F4
-E4F5
-E4F6
-E4F7
-E4F8
-E4F9
-E4FA
-E4FB
-E4FC
-E4FD
-E4FE
-E4FF
-E500
-E501
-E502
-E503
-E504
-E505
-E506
-E507
-E508
-E509
-E50A
-E50B
-E50C
-E50D
-E50E
-E50F
-E510
-E511
-E512
-E513
-E514
-E515
-E516
-E517
-E518
-E519
-E51A
-E51B
-E51C
-E51D
-E51E
-E51F
-E520
-E521
-E522
-E523
-E524
-E525
-E526
-E527
-E528
-E529
-E52A
-E52B
-E52C
-E52D
-E52E
-E52F
-E530
-E531
-E532
-E533
-E534
-E535
-E536
-E537
-E538
-E539
-E53A
-E53B
-E53C
-E53D
-E53E
-E53F
-E540
-E541
-E542
-E543
-E544
-E545
-E546
-E547
-E548
-E549
-E54A
-E54B
-E54C
-E54D
-E54E
-E54F
-E550
-E551
-E552
-E553
-E554
-E555
-E556
-E557
-E558
-E559
-E55A
-E55B
-E55C
-E55D
-E55E
-E55F
-E560
-E561
-E562
-E563
-E564
-E565
-E566
-E567
-E568
-E569
-E56A
-E56B
-E56C
-E56D
-E56E
-E56F
-E570
-E571
-E572
-E573
-E574
-E575
-E576
-E577
-E578
-E579
-E57A
-E57B
-E57C
-E57D
-E57E
-E57F
-E580
-E581
-E582
-E583
-E584
-E585
-E586
-E587
-E588
-E589
-E58A
-E58B
-E58C
-E58D
-E58E
-E58F
-E590
-E591
-E592
-E593
-E594
-E595
-E596
-E597
-E598
-E599
-E59A
-E59B
-E59C
-E59D
-E59E
-E59F
-E5A0
-E5A1
-E5A2
-E5A3
-E5A4
-E5A5
-E5A6
-E5A7
-E5A8
-E5A9
-E5AA
-E5AB
-E5AC
-E5AD
-E5AE
-E5AF
-E5B0
-E5B1
-E5B2
-E5B3
-E5B4
-E5B5
-E5B6
-E5B7
-E5B8
-E5B9
-E5BA
-E5BB
-E5BC
-E5BD
-E5BE
-E5BF
-E5C0
-E5C1
-E5C2
-E5C3
-E5C4
-E5C5
-E5C6
-E5C7
-E5C8
-E5C9
-E5CA
-E5CB
-E5CC
-E5CD
-E5CE
-E5CF
-E5D0
-E5D1
-E5D2
-E5D3
-E5D4
-E5D5
-E5D6
-E5D7
-E5D8
-E5D9
-E5DA
-E5DB
-E5DC
-E5DD
-E5DE
-E5DF
-E5E0
-E5E1
-E5E2
-E5E3
-E5E4
-E5E5
-E5E6
-E5E7
-E5E8
-E5E9
-E5EA
-E5EB
-E5EC
-E5ED
-E5EE
-E5EF
-E5F0
-E5F1
-E5F2
-E5F3
-E5F4
-E5F5
-E5F6
-E5F7
-E5F8
-E5F9
-E5FA
-E5FB
-E5FC
-E5FD
-E5FE
-E5FF
-E600
-E601
-E602
-E603
-E604
-E605
-E606
-E607
-E608
-E609
-E60A
-E60B
-E60C
-E60D
-E60E
-E60F
-E610
-E611
-E612
-E613
-E614
-E615
-E616
-E617
-E618
-E619
-E61A
-E61B
-E61C
-E61D
-E61E
-E61F
-E620
-E621
-E622
-E623
-E624
-E625
-E626
-E627
-E628
-E629
-E62A
-E62B
-E62C
-E62D
-E62E
-E62F
-E630
-E631
-E632
-E633
-E634
-E635
-E636
-E637
-E638
-E639
-E63A
-E63B
-E63C
-E63D
-E63E
-E63F
-E640
-E641
-E642
-E643
-E644
-E645
-E646
-E647
-E648
-E649
-E64A
-E64B
-E64C
-E64D
-E64E
-E64F
-E650
-E651
-E652
-E653
-E654
-E655
-E656
-E657
-E658
-E659
-E65A
-E65B
-E65C
-E65D
-E65E
-E65F
-E660
-E661
-E662
-E663
-E664
-E665
-E666
-E667
-E668
-E669
-E66A
-E66B
-E66C
-E66D
-E66E
-E66F
-E670
-E671
-E672
-E673
-E674
-E675
-E676
-E677
-E678
-E679
-E67A
-E67B
-E67C
-E67D
-E67E
-E67F
-E680
-E681
-E682
-E683
-E684
-E685
-E686
-E687
-E688
-E689
-E68A
-E68B
-E68C
-E68D
-E68E
-E68F
-E690
-E691
-E692
-E693
-E694
-E695
-E696
-E697
-E698
-E699
-E69A
-E69B
-E69C
-E69D
-E69E
-E69F
-E6A0
-E6A1
-E6A2
-E6A3
-E6A4
-E6A5
-E6A6
-E6A7
-E6A8
-E6A9
-E6AA
-E6AB
-E6AC
-E6AD
-E6AE
-E6AF
-E6B0
-E6B1
-E6B2
-E6B3
-E6B4
-E6B5
-E6B6
-E6B7
-E6B8
-E6B9
-E6BA
-E6BB
-E6BC
-E6BD
-E6BE
-E6BF
-E6C0
-E6C1
-E6C2
-E6C3
-E6C4
-E6C5
-E6C6
-E6C7
-E6C8
-E6C9
-E6CA
-E6CB
-E6CC
-E6CD
-E6CE
-E6CF
-E6D0
-E6D1
-E6D2
-E6D3
-E6D4
-E6D5
-E6D6
-E6D7
-E6D8
-E6D9
-E6DA
-E6DB
-E6DC
-E6DD
-E6DE
-E6DF
-E6E0
-E6E1
-E6E2
-E6E3
-E6E4
-E6E5
-E6E6
-E6E7
-E6E8
-E6E9
-E6EA
-E6EB
-E6EC
-E6ED
-E6EE
-E6EF
-E6F0
-E6F1
-E6F2
-E6F3
-E6F4
-E6F5
-E6F6
-E6F7
-E6F8
-E6F9
-E6FA
-E6FB
-E6FC
-E6FD
-E6FE
-E6FF
-E700
-E701
-E702
-E703
-E704
-E705
-E706
-E707
-E708
-E709
-E70A
-E70B
-E70C
-E70D
-E70E
-E70F
-E710
-E711
-E712
-E713
-E714
-E715
-E716
-E717
-E718
-E719
-E71A
-E71B
-E71C
-E71D
-E71E
-E71F
-E720
-E721
-E722
-E723
-E724
-E725
-E726
-E727
-E728
-E729
-E72A
-E72B
-E72C
-E72D
-E72E
-E72F
-E730
-E731
-E732
-E733
-E734
-E735
-E736
-E737
-E738
-E739
-E73A
-E73B
-E73C
-E73D
-E73E
-E73F
-E740
-E741
-E742
-E743
-E744
-E745
-E746
-E747
-E748
-E749
-E74A
-E74B
-E74C
-E74D
-E74E
-E74F
-E750
-E751
-E752
-E753
-E754
-E755
-E756
-E757
-CREATE TABLE t3 SELECT CONVERT(c1 USING eucjpms) AS c1 FROM t2;
-SELECT HEX(c1) FROM t3;
-HEX(c1)
-5C
-7E
-A1B1
-A1BD
-A1C0
-A1C1
-A1C2
-A1DD
-A1F1
-A1F2
-A1EF
-A2CC
-A1C1
-8FA2C3
-ADA1
-ADA2
-ADA3
-ADA4
-ADA5
-ADA6
-ADA7
-ADA8
-ADA9
-ADAA
-ADAB
-ADAC
-ADAD
-ADAE
-ADAF
-ADB0
-ADB1
-ADB2
-ADB3
-ADB4
-ADB5
-ADB6
-ADB7
-ADB8
-ADB9
-ADBA
-ADBB
-ADBC
-ADBD
-ADBE
-ADC0
-ADC1
-ADC2
-ADC3
-ADC4
-ADC5
-ADC6
-ADC7
-ADC8
-ADC9
-ADCA
-ADCB
-ADCC
-ADCD
-ADCE
-ADCF
-ADD0
-ADD1
-ADD2
-ADD3
-ADD4
-ADD5
-ADD6
-ADDF
-ADE0
-ADE1
-ADE2
-ADE3
-ADE4
-ADE5
-ADE6
-ADE7
-ADE8
-ADE9
-ADEA
-ADEB
-ADEC
-ADED
-ADEE
-ADEF
-A2E2
-A2E1
-A2E9
-ADF3
-ADF4
-A2E5
-A2DD
-A2DC
-ADF8
-ADF9
-A2E8
-A2C1
-A2C0
-8FF3F3
-8FF3F4
-8FF3F5
-8FF3F6
-8FF3F7
-8FF3F8
-8FF3F9
-8FF3FA
-8FF3FB
-8FF3FC
-ADB5
-ADB6
-ADB7
-ADB8
-ADB9
-ADBA
-ADBB
-ADBC
-ADBD
-ADBE
-A2CC
-8FA2C3
-8FF4A9
-8FF4AA
-ADEA
-ADE2
-ADE4
-A2E8
-8FD4E3
-8FDCDF
-8FE4E9
-8FE3F8
-8FD9A1
-8FB1BB
-8FF4AE
-8FC2AD
-8FC3FC
-8FE4D0
-8FC2BF
-8FBCF4
-8FB0A9
-8FB0C8
-8FF4AF
-8FB0D2
-8FB0D4
-8FB0E3
-8FB0EE
-8FB1A7
-8FB1A3
-8FB1AC
-8FB1A9
-8FB1BE
-8FB1DF
-8FB1D8
-8FB1C8
-8FB1D7
-8FB1E3
-8FB1F4
-8FB1E1
-8FB2A3
-8FF4B0
-8FB2BB
-8FB2E6
-8FB2ED
-8FB2F5
-8FB2FC
-8FF4B1
-8FB3B5
-8FB3D8
-8FB3DB
-8FB3E5
-8FB3EE
-8FB3FB
-8FF4B2
-8FF4B3
-8FB4C0
-8FB4C7
-8FB4D0
-8FB4DE
-8FF4B4
-8FB5AA
-8FF4B5
-8FB5AF
-8FB5C4
-8FB5E8
-8FF4B6
-8FB7C2
-8FB7E4
-8FB7E8
-8FB7E7
-8FF4B7
-8FF4B8
-8FF4B9
-8FB8CE
-8FB8E1
-8FB8F5
-8FB8F7
-8FB8F8
-8FB8FC
-8FB9AF
-8FB9B7
-8FBABE
-8FBADB
-8FCDAA
-8FBAE1
-8FF4BA
-8FBAEB
-8FBBB3
-8FBBB8
-8FF4BB
-8FBBCA
-8FF4BC
-8FF4BD
-8FBBD0
-8FBBDE
-8FBBF4
-8FBBF5
-8FBBF9
-8FBCE4
-8FBCED
-8FBCFE
-8FF4BE
-8FBDC2
-8FBDE7
-8FF4BF
-8FBDF0
-8FBEB0
-8FBEAC
-8FF4C0
-8FBEB3
-8FBEBD
-8FBECD
-8FBEC9
-8FBEE4
-8FBFA8
-8FBFC9
-8FC0C4
-8FC0E4
-8FC0F4
-8FC1A6
-8FF4C1
-8FC1F5
-8FC1FC
-8FF4C2
-8FC1F8
-8FC2AB
-8FC2A1
-8FC2A5
-8FF4C3
-8FC2B8
-8FC2BA
-8FF4C4
-8FC2C4
-8FC2D2
-8FC2D7
-8FC2DB
-8FC2DE
-8FC2ED
-8FC2F0
-8FF4C5
-8FC3A1
-8FC3B5
-8FC3C9
-8FC3B9
-8FF4C6
-8FC3D8
-8FC3FE
-8FF4C7
-8FC4CC
-8FF4C8
-8FC4D9
-8FC4EA
-8FC4FD
-8FF4C9
-8FC5A7
-8FC5B5
-8FC5B6
-8FF4CA
-8FC5D5
-8FC6B8
-8FC6D7
-8FC6E0
-8FC6EA
-8FC6E3
-8FC7A1
-8FC7AB
-8FC7C7
-8FC7C3
-8FC7CB
-8FC7CF
-8FC7D9
-8FF4CB
-8FF4CC
-8FC7E6
-8FC7EE
-8FC7FC
-8FC7EB
-8FC7F0
-8FC8B1
-8FC8E5
-8FC8F8
-8FC9A6
-8FC9AB
-8FC9AD
-8FF4CD
-8FC9CA
-8FC9D3
-8FC9E9
-8FC9E3
-8FC9FC
-8FC9F4
-8FC9F5
-8FF4CE
-8FCAB3
-8FCABD
-8FCAEF
-8FCAF1
-8FCBAE
-8FF4CF
-8FCBCA
-8FCBE6
-8FCBEA
-8FCBF0
-8FCBF4
-8FCBEE
-8FCCA5
-8FCBF9
-8FCCAB
-8FCCAE
-8FCCAD
-8FCCB2
-8FCCC2
-8FCCD0
-8FCCD9
-8FF4D0
-8FCDBB
-8FF4D1
-8FCEBB
-8FF4D2
-8FCEBA
-8FCEC3
-8FF4D3
-8FCEF2
-8FB3DD
-8FCFD5
-8FCFE2
-8FCFE9
-8FCFED
-8FF4D4
-8FF4D5
-8FF4D6
-8FF4D7
-8FD0E5
-8FF4D8
-8FD0E9
-8FD1E8
-8FF4D9
-8FF4DA
-8FD1EC
-8FD2BB
-8FF4DB
-8FD3E1
-8FD3E8
-8FD4A7
-8FF4DC
-8FF4DD
-8FD4D4
-8FD4F2
-8FD5AE
-8FF4DE
-8FD7DE
-8FF4DF
-8FD8A2
-8FD8B7
-8FD8C1
-8FD8D1
-8FD8F4
-8FD9C6
-8FD9C8
-8FD9D1
-8FF4E0
-8FF4E1
-8FF4E2
-8FF4E3
-8FF4E4
-8FDCD3
-8FDDC8
-8FDDD4
-8FDDEA
-8FDDFA
-8FDEA4
-8FDEB0
-8FF4E5
-8FDEB5
-8FDECB
-8FF4E6
-8FDFB9
-8FF4E7
-8FDFC3
-8FF4E8
-8FF4E9
-8FE0D9
-8FF4EA
-8FF4EB
-8FE1E2
-8FF4EC
-8FF4ED
-8FF4EE
-8FE2C7
-8FE3A8
-8FE3A6
-8FE3A9
-8FE3AF
-8FE3B0
-8FE3AA
-8FE3AB
-8FE3BC
-8FE3C1
-8FE3BF
-8FE3D5
-8FE3D8
-8FE3D6
-8FE3DF
-8FE3E3
-8FE3E1
-8FE3D4
-8FE3E9
-8FE4A6
-8FE3F1
-8FE3F2
-8FE4CB
-8FE4C1
-8FE4C3
-8FE4BE
-8FF4EF
-8FE4C0
-8FE4C7
-8FE4BF
-8FE4E0
-8FE4DE
-8FE4D1
-8FF4F0
-8FE4DC
-8FE4D2
-8FE4DB
-8FE4D4
-8FE4FA
-8FE4EF
-8FE5B3
-8FE5BF
-8FE5C9
-8FE5D0
-8FE5E2
-8FE5EA
-8FE5EB
-8FF4F1
-8FF4F2
-8FF4F3
-8FE6E8
-8FE6EF
-8FE7AC
-8FF4F4
-8FE7AE
-8FF4F5
-8FE7B1
-8FF4F6
-8FE7B2
-8FE8B1
-8FE8B6
-8FF4F7
-8FF4F8
-8FE8DD
-8FF4F9
-8FF4FA
-8FE9D1
-8FF4FB
-8FE9ED
-8FEACD
-8FF4FC
-8FEADB
-8FEAE6
-8FEAEA
-8FEBA5
-8FEBFB
-8FEBFA
-8FF4FD
-8FECD6
-8FF4FE
-F5A1
-F5A2
-F5A3
-F5A4
-F5A5
-F5A6
-F5A7
-F5A8
-F5A9
-F5AA
-F5AB
-F5AC
-F5AD
-F5AE
-F5AF
-F5B0
-F5B1
-F5B2
-F5B3
-F5B4
-F5B5
-F5B6
-F5B7
-F5B8
-F5B9
-F5BA
-F5BB
-F5BC
-F5BD
-F5BE
-F5BF
-F5C0
-F5C1
-F5C2
-F5C3
-F5C4
-F5C5
-F5C6
-F5C7
-F5C8
-F5C9
-F5CA
-F5CB
-F5CC
-F5CD
-F5CE
-F5CF
-F5D0
-F5D1
-F5D2
-F5D3
-F5D4
-F5D5
-F5D6
-F5D7
-F5D8
-F5D9
-F5DA
-F5DB
-F5DC
-F5DD
-F5DE
-F5DF
-F5E0
-F5E1
-F5E2
-F5E3
-F5E4
-F5E5
-F5E6
-F5E7
-F5E8
-F5E9
-F5EA
-F5EB
-F5EC
-F5ED
-F5EE
-F5EF
-F5F0
-F5F1
-F5F2
-F5F3
-F5F4
-F5F5
-F5F6
-F5F7
-F5F8
-F5F9
-F5FA
-F5FB
-F5FC
-F5FD
-F5FE
-F6A1
-F6A2
-F6A3
-F6A4
-F6A5
-F6A6
-F6A7
-F6A8
-F6A9
-F6AA
-F6AB
-F6AC
-F6AD
-F6AE
-F6AF
-F6B0
-F6B1
-F6B2
-F6B3
-F6B4
-F6B5
-F6B6
-F6B7
-F6B8
-F6B9
-F6BA
-F6BB
-F6BC
-F6BD
-F6BE
-F6BF
-F6C0
-F6C1
-F6C2
-F6C3
-F6C4
-F6C5
-F6C6
-F6C7
-F6C8
-F6C9
-F6CA
-F6CB
-F6CC
-F6CD
-F6CE
-F6CF
-F6D0
-F6D1
-F6D2
-F6D3
-F6D4
-F6D5
-F6D6
-F6D7
-F6D8
-F6D9
-F6DA
-F6DB
-F6DC
-F6DD
-F6DE
-F6DF
-F6E0
-F6E1
-F6E2
-F6E3
-F6E4
-F6E5
-F6E6
-F6E7
-F6E8
-F6E9
-F6EA
-F6EB
-F6EC
-F6ED
-F6EE
-F6EF
-F6F0
-F6F1
-F6F2
-F6F3
-F6F4
-F6F5
-F6F6
-F6F7
-F6F8
-F6F9
-F6FA
-F6FB
-F6FC
-F6FD
-F6FE
-F7A1
-F7A2
-F7A3
-F7A4
-F7A5
-F7A6
-F7A7
-F7A8
-F7A9
-F7AA
-F7AB
-F7AC
-F7AD
-F7AE
-F7AF
-F7B0
-F7B1
-F7B2
-F7B3
-F7B4
-F7B5
-F7B6
-F7B7
-F7B8
-F7B9
-F7BA
-F7BB
-F7BC
-F7BD
-F7BE
-F7BF
-F7C0
-F7C1
-F7C2
-F7C3
-F7C4
-F7C5
-F7C6
-F7C7
-F7C8
-F7C9
-F7CA
-F7CB
-F7CC
-F7CD
-F7CE
-F7CF
-F7D0
-F7D1
-F7D2
-F7D3
-F7D4
-F7D5
-F7D6
-F7D7
-F7D8
-F7D9
-F7DA
-F7DB
-F7DC
-F7DD
-F7DE
-F7DF
-F7E0
-F7E1
-F7E2
-F7E3
-F7E4
-F7E5
-F7E6
-F7E7
-F7E8
-F7E9
-F7EA
-F7EB
-F7EC
-F7ED
-F7EE
-F7EF
-F7F0
-F7F1
-F7F2
-F7F3
-F7F4
-F7F5
-F7F6
-F7F7
-F7F8
-F7F9
-F7FA
-F7FB
-F7FC
-F7FD
-F7FE
-F8A1
-F8A2
-F8A3
-F8A4
-F8A5
-F8A6
-F8A7
-F8A8
-F8A9
-F8AA
-F8AB
-F8AC
-F8AD
-F8AE
-F8AF
-F8B0
-F8B1
-F8B2
-F8B3
-F8B4
-F8B5
-F8B6
-F8B7
-F8B8
-F8B9
-F8BA
-F8BB
-F8BC
-F8BD
-F8BE
-F8BF
-F8C0
-F8C1
-F8C2
-F8C3
-F8C4
-F8C5
-F8C6
-F8C7
-F8C8
-F8C9
-F8CA
-F8CB
-F8CC
-F8CD
-F8CE
-F8CF
-F8D0
-F8D1
-F8D2
-F8D3
-F8D4
-F8D5
-F8D6
-F8D7
-F8D8
-F8D9
-F8DA
-F8DB
-F8DC
-F8DD
-F8DE
-F8DF
-F8E0
-F8E1
-F8E2
-F8E3
-F8E4
-F8E5
-F8E6
-F8E7
-F8E8
-F8E9
-F8EA
-F8EB
-F8EC
-F8ED
-F8EE
-F8EF
-F8F0
-F8F1
-F8F2
-F8F3
-F8F4
-F8F5
-F8F6
-F8F7
-F8F8
-F8F9
-F8FA
-F8FB
-F8FC
-F8FD
-F8FE
-F9A1
-F9A2
-F9A3
-F9A4
-F9A5
-F9A6
-F9A7
-F9A8
-F9A9
-F9AA
-F9AB
-F9AC
-F9AD
-F9AE
-F9AF
-F9B0
-F9B1
-F9B2
-F9B3
-F9B4
-F9B5
-F9B6
-F9B7
-F9B8
-F9B9
-F9BA
-F9BB
-F9BC
-F9BD
-F9BE
-F9BF
-F9C0
-F9C1
-F9C2
-F9C3
-F9C4
-F9C5
-F9C6
-F9C7
-F9C8
-F9C9
-F9CA
-F9CB
-F9CC
-F9CD
-F9CE
-F9CF
-F9D0
-F9D1
-F9D2
-F9D3
-F9D4
-F9D5
-F9D6
-F9D7
-F9D8
-F9D9
-F9DA
-F9DB
-F9DC
-F9DD
-F9DE
-F9DF
-F9E0
-F9E1
-F9E2
-F9E3
-F9E4
-F9E5
-F9E6
-F9E7
-F9E8
-F9E9
-F9EA
-F9EB
-F9EC
-F9ED
-F9EE
-F9EF
-F9F0
-F9F1
-F9F2
-F9F3
-F9F4
-F9F5
-F9F6
-F9F7
-F9F8
-F9F9
-F9FA
-F9FB
-F9FC
-F9FD
-F9FE
-FAA1
-FAA2
-FAA3
-FAA4
-FAA5
-FAA6
-FAA7
-FAA8
-FAA9
-FAAA
-FAAB
-FAAC
-FAAD
-FAAE
-FAAF
-FAB0
-FAB1
-FAB2
-FAB3
-FAB4
-FAB5
-FAB6
-FAB7
-FAB8
-FAB9
-FABA
-FABB
-FABC
-FABD
-FABE
-FABF
-FAC0
-FAC1
-FAC2
-FAC3
-FAC4
-FAC5
-FAC6
-FAC7
-FAC8
-FAC9
-FACA
-FACB
-FACC
-FACD
-FACE
-FACF
-FAD0
-FAD1
-FAD2
-FAD3
-FAD4
-FAD5
-FAD6
-FAD7
-FAD8
-FAD9
-FADA
-FADB
-FADC
-FADD
-FADE
-FADF
-FAE0
-FAE1
-FAE2
-FAE3
-FAE4
-FAE5
-FAE6
-FAE7
-FAE8
-FAE9
-FAEA
-FAEB
-FAEC
-FAED
-FAEE
-FAEF
-FAF0
-FAF1
-FAF2
-FAF3
-FAF4
-FAF5
-FAF6
-FAF7
-FAF8
-FAF9
-FAFA
-FAFB
-FAFC
-FAFD
-FAFE
-FBA1
-FBA2
-FBA3
-FBA4
-FBA5
-FBA6
-FBA7
-FBA8
-FBA9
-FBAA
-FBAB
-FBAC
-FBAD
-FBAE
-FBAF
-FBB0
-FBB1
-FBB2
-FBB3
-FBB4
-FBB5
-FBB6
-FBB7
-FBB8
-FBB9
-FBBA
-FBBB
-FBBC
-FBBD
-FBBE
-FBBF
-FBC0
-FBC1
-FBC2
-FBC3
-FBC4
-FBC5
-FBC6
-FBC7
-FBC8
-FBC9
-FBCA
-FBCB
-FBCC
-FBCD
-FBCE
-FBCF
-FBD0
-FBD1
-FBD2
-FBD3
-FBD4
-FBD5
-FBD6
-FBD7
-FBD8
-FBD9
-FBDA
-FBDB
-FBDC
-FBDD
-FBDE
-FBDF
-FBE0
-FBE1
-FBE2
-FBE3
-FBE4
-FBE5
-FBE6
-FBE7
-FBE8
-FBE9
-FBEA
-FBEB
-FBEC
-FBED
-FBEE
-FBEF
-FBF0
-FBF1
-FBF2
-FBF3
-FBF4
-FBF5
-FBF6
-FBF7
-FBF8
-FBF9
-FBFA
-FBFB
-FBFC
-FBFD
-FBFE
-FCA1
-FCA2
-FCA3
-FCA4
-FCA5
-FCA6
-FCA7
-FCA8
-FCA9
-FCAA
-FCAB
-FCAC
-FCAD
-FCAE
-FCAF
-FCB0
-FCB1
-FCB2
-FCB3
-FCB4
-FCB5
-FCB6
-FCB7
-FCB8
-FCB9
-FCBA
-FCBB
-FCBC
-FCBD
-FCBE
-FCBF
-FCC0
-FCC1
-FCC2
-FCC3
-FCC4
-FCC5
-FCC6
-FCC7
-FCC8
-FCC9
-FCCA
-FCCB
-FCCC
-FCCD
-FCCE
-FCCF
-FCD0
-FCD1
-FCD2
-FCD3
-FCD4
-FCD5
-FCD6
-FCD7
-FCD8
-FCD9
-FCDA
-FCDB
-FCDC
-FCDD
-FCDE
-FCDF
-FCE0
-FCE1
-FCE2
-FCE3
-FCE4
-FCE5
-FCE6
-FCE7
-FCE8
-FCE9
-FCEA
-FCEB
-FCEC
-FCED
-FCEE
-FCEF
-FCF0
-FCF1
-FCF2
-FCF3
-FCF4
-FCF5
-FCF6
-FCF7
-FCF8
-FCF9
-FCFA
-FCFB
-FCFC
-FCFD
-FCFE
-FDA1
-FDA2
-FDA3
-FDA4
-FDA5
-FDA6
-FDA7
-FDA8
-FDA9
-FDAA
-FDAB
-FDAC
-FDAD
-FDAE
-FDAF
-FDB0
-FDB1
-FDB2
-FDB3
-FDB4
-FDB5
-FDB6
-FDB7
-FDB8
-FDB9
-FDBA
-FDBB
-FDBC
-FDBD
-FDBE
-FDBF
-FDC0
-FDC1
-FDC2
-FDC3
-FDC4
-FDC5
-FDC6
-FDC7
-FDC8
-FDC9
-FDCA
-FDCB
-FDCC
-FDCD
-FDCE
-FDCF
-FDD0
-FDD1
-FDD2
-FDD3
-FDD4
-FDD5
-FDD6
-FDD7
-FDD8
-FDD9
-FDDA
-FDDB
-FDDC
-FDDD
-FDDE
-FDDF
-FDE0
-FDE1
-FDE2
-FDE3
-FDE4
-FDE5
-FDE6
-FDE7
-FDE8
-FDE9
-FDEA
-FDEB
-FDEC
-FDED
-FDEE
-FDEF
-FDF0
-FDF1
-FDF2
-FDF3
-FDF4
-FDF5
-FDF6
-FDF7
-FDF8
-FDF9
-FDFA
-FDFB
-FDFC
-FDFD
-FDFE
-FEA1
-FEA2
-FEA3
-FEA4
-FEA5
-FEA6
-FEA7
-FEA8
-FEA9
-FEAA
-FEAB
-FEAC
-FEAD
-FEAE
-FEAF
-FEB0
-FEB1
-FEB2
-FEB3
-FEB4
-FEB5
-FEB6
-FEB7
-FEB8
-FEB9
-FEBA
-FEBB
-FEBC
-FEBD
-FEBE
-FEBF
-FEC0
-FEC1
-FEC2
-FEC3
-FEC4
-FEC5
-FEC6
-FEC7
-FEC8
-FEC9
-FECA
-FECB
-FECC
-FECD
-FECE
-FECF
-FED0
-FED1
-FED2
-FED3
-FED4
-FED5
-FED6
-FED7
-FED8
-FED9
-FEDA
-FEDB
-FEDC
-FEDD
-FEDE
-FEDF
-FEE0
-FEE1
-FEE2
-FEE3
-FEE4
-FEE5
-FEE6
-FEE7
-FEE8
-FEE9
-FEEA
-FEEB
-FEEC
-FEED
-FEEE
-FEEF
-FEF0
-FEF1
-FEF2
-FEF3
-FEF4
-FEF5
-FEF6
-FEF7
-FEF8
-FEF9
-FEFA
-FEFB
-FEFC
-FEFD
-FEFE
-8FF5A1
-8FF5A2
-8FF5A3
-8FF5A4
-8FF5A5
-8FF5A6
-8FF5A7
-8FF5A8
-8FF5A9
-8FF5AA
-8FF5AB
-8FF5AC
-8FF5AD
-8FF5AE
-8FF5AF
-8FF5B0
-8FF5B1
-8FF5B2
-8FF5B3
-8FF5B4
-8FF5B5
-8FF5B6
-8FF5B7
-8FF5B8
-8FF5B9
-8FF5BA
-8FF5BB
-8FF5BC
-8FF5BD
-8FF5BE
-8FF5BF
-8FF5C0
-8FF5C1
-8FF5C2
-8FF5C3
-8FF5C4
-8FF5C5
-8FF5C6
-8FF5C7
-8FF5C8
-8FF5C9
-8FF5CA
-8FF5CB
-8FF5CC
-8FF5CD
-8FF5CE
-8FF5CF
-8FF5D0
-8FF5D1
-8FF5D2
-8FF5D3
-8FF5D4
-8FF5D5
-8FF5D6
-8FF5D7
-8FF5D8
-8FF5D9
-8FF5DA
-8FF5DB
-8FF5DC
-8FF5DD
-8FF5DE
-8FF5DF
-8FF5E0
-8FF5E1
-8FF5E2
-8FF5E3
-8FF5E4
-8FF5E5
-8FF5E6
-8FF5E7
-8FF5E8
-8FF5E9
-8FF5EA
-8FF5EB
-8FF5EC
-8FF5ED
-8FF5EE
-8FF5EF
-8FF5F0
-8FF5F1
-8FF5F2
-8FF5F3
-8FF5F4
-8FF5F5
-8FF5F6
-8FF5F7
-8FF5F8
-8FF5F9
-8FF5FA
-8FF5FB
-8FF5FC
-8FF5FD
-8FF5FE
-8FF6A1
-8FF6A2
-8FF6A3
-8FF6A4
-8FF6A5
-8FF6A6
-8FF6A7
-8FF6A8
-8FF6A9
-8FF6AA
-8FF6AB
-8FF6AC
-8FF6AD
-8FF6AE
-8FF6AF
-8FF6B0
-8FF6B1
-8FF6B2
-8FF6B3
-8FF6B4
-8FF6B5
-8FF6B6
-8FF6B7
-8FF6B8
-8FF6B9
-8FF6BA
-8FF6BB
-8FF6BC
-8FF6BD
-8FF6BE
-8FF6BF
-8FF6C0
-8FF6C1
-8FF6C2
-8FF6C3
-8FF6C4
-8FF6C5
-8FF6C6
-8FF6C7
-8FF6C8
-8FF6C9
-8FF6CA
-8FF6CB
-8FF6CC
-8FF6CD
-8FF6CE
-8FF6CF
-8FF6D0
-8FF6D1
-8FF6D2
-8FF6D3
-8FF6D4
-8FF6D5
-8FF6D6
-8FF6D7
-8FF6D8
-8FF6D9
-8FF6DA
-8FF6DB
-8FF6DC
-8FF6DD
-8FF6DE
-8FF6DF
-8FF6E0
-8FF6E1
-8FF6E2
-8FF6E3
-8FF6E4
-8FF6E5
-8FF6E6
-8FF6E7
-8FF6E8
-8FF6E9
-8FF6EA
-8FF6EB
-8FF6EC
-8FF6ED
-8FF6EE
-8FF6EF
-8FF6F0
-8FF6F1
-8FF6F2
-8FF6F3
-8FF6F4
-8FF6F5
-8FF6F6
-8FF6F7
-8FF6F8
-8FF6F9
-8FF6FA
-8FF6FB
-8FF6FC
-8FF6FD
-8FF6FE
-8FF7A1
-8FF7A2
-8FF7A3
-8FF7A4
-8FF7A5
-8FF7A6
-8FF7A7
-8FF7A8
-8FF7A9
-8FF7AA
-8FF7AB
-8FF7AC
-8FF7AD
-8FF7AE
-8FF7AF
-8FF7B0
-8FF7B1
-8FF7B2
-8FF7B3
-8FF7B4
-8FF7B5
-8FF7B6
-8FF7B7
-8FF7B8
-8FF7B9
-8FF7BA
-8FF7BB
-8FF7BC
-8FF7BD
-8FF7BE
-8FF7BF
-8FF7C0
-8FF7C1
-8FF7C2
-8FF7C3
-8FF7C4
-8FF7C5
-8FF7C6
-8FF7C7
-8FF7C8
-8FF7C9
-8FF7CA
-8FF7CB
-8FF7CC
-8FF7CD
-8FF7CE
-8FF7CF
-8FF7D0
-8FF7D1
-8FF7D2
-8FF7D3
-8FF7D4
-8FF7D5
-8FF7D6
-8FF7D7
-8FF7D8
-8FF7D9
-8FF7DA
-8FF7DB
-8FF7DC
-8FF7DD
-8FF7DE
-8FF7DF
-8FF7E0
-8FF7E1
-8FF7E2
-8FF7E3
-8FF7E4
-8FF7E5
-8FF7E6
-8FF7E7
-8FF7E8
-8FF7E9
-8FF7EA
-8FF7EB
-8FF7EC
-8FF7ED
-8FF7EE
-8FF7EF
-8FF7F0
-8FF7F1
-8FF7F2
-8FF7F3
-8FF7F4
-8FF7F5
-8FF7F6
-8FF7F7
-8FF7F8
-8FF7F9
-8FF7FA
-8FF7FB
-8FF7FC
-8FF7FD
-8FF7FE
-8FF8A1
-8FF8A2
-8FF8A3
-8FF8A4
-8FF8A5
-8FF8A6
-8FF8A7
-8FF8A8
-8FF8A9
-8FF8AA
-8FF8AB
-8FF8AC
-8FF8AD
-8FF8AE
-8FF8AF
-8FF8B0
-8FF8B1
-8FF8B2
-8FF8B3
-8FF8B4
-8FF8B5
-8FF8B6
-8FF8B7
-8FF8B8
-8FF8B9
-8FF8BA
-8FF8BB
-8FF8BC
-8FF8BD
-8FF8BE
-8FF8BF
-8FF8C0
-8FF8C1
-8FF8C2
-8FF8C3
-8FF8C4
-8FF8C5
-8FF8C6
-8FF8C7
-8FF8C8
-8FF8C9
-8FF8CA
-8FF8CB
-8FF8CC
-8FF8CD
-8FF8CE
-8FF8CF
-8FF8D0
-8FF8D1
-8FF8D2
-8FF8D3
-8FF8D4
-8FF8D5
-8FF8D6
-8FF8D7
-8FF8D8
-8FF8D9
-8FF8DA
-8FF8DB
-8FF8DC
-8FF8DD
-8FF8DE
-8FF8DF
-8FF8E0
-8FF8E1
-8FF8E2
-8FF8E3
-8FF8E4
-8FF8E5
-8FF8E6
-8FF8E7
-8FF8E8
-8FF8E9
-8FF8EA
-8FF8EB
-8FF8EC
-8FF8ED
-8FF8EE
-8FF8EF
-8FF8F0
-8FF8F1
-8FF8F2
-8FF8F3
-8FF8F4
-8FF8F5
-8FF8F6
-8FF8F7
-8FF8F8
-8FF8F9
-8FF8FA
-8FF8FB
-8FF8FC
-8FF8FD
-8FF8FE
-8FF9A1
-8FF9A2
-8FF9A3
-8FF9A4
-8FF9A5
-8FF9A6
-8FF9A7
-8FF9A8
-8FF9A9
-8FF9AA
-8FF9AB
-8FF9AC
-8FF9AD
-8FF9AE
-8FF9AF
-8FF9B0
-8FF9B1
-8FF9B2
-8FF9B3
-8FF9B4
-8FF9B5
-8FF9B6
-8FF9B7
-8FF9B8
-8FF9B9
-8FF9BA
-8FF9BB
-8FF9BC
-8FF9BD
-8FF9BE
-8FF9BF
-8FF9C0
-8FF9C1
-8FF9C2
-8FF9C3
-8FF9C4
-8FF9C5
-8FF9C6
-8FF9C7
-8FF9C8
-8FF9C9
-8FF9CA
-8FF9CB
-8FF9CC
-8FF9CD
-8FF9CE
-8FF9CF
-8FF9D0
-8FF9D1
-8FF9D2
-8FF9D3
-8FF9D4
-8FF9D5
-8FF9D6
-8FF9D7
-8FF9D8
-8FF9D9
-8FF9DA
-8FF9DB
-8FF9DC
-8FF9DD
-8FF9DE
-8FF9DF
-8FF9E0
-8FF9E1
-8FF9E2
-8FF9E3
-8FF9E4
-8FF9E5
-8FF9E6
-8FF9E7
-8FF9E8
-8FF9E9
-8FF9EA
-8FF9EB
-8FF9EC
-8FF9ED
-8FF9EE
-8FF9EF
-8FF9F0
-8FF9F1
-8FF9F2
-8FF9F3
-8FF9F4
-8FF9F5
-8FF9F6
-8FF9F7
-8FF9F8
-8FF9F9
-8FF9FA
-8FF9FB
-8FF9FC
-8FF9FD
-8FF9FE
-8FFAA1
-8FFAA2
-8FFAA3
-8FFAA4
-8FFAA5
-8FFAA6
-8FFAA7
-8FFAA8
-8FFAA9
-8FFAAA
-8FFAAB
-8FFAAC
-8FFAAD
-8FFAAE
-8FFAAF
-8FFAB0
-8FFAB1
-8FFAB2
-8FFAB3
-8FFAB4
-8FFAB5
-8FFAB6
-8FFAB7
-8FFAB8
-8FFAB9
-8FFABA
-8FFABB
-8FFABC
-8FFABD
-8FFABE
-8FFABF
-8FFAC0
-8FFAC1
-8FFAC2
-8FFAC3
-8FFAC4
-8FFAC5
-8FFAC6
-8FFAC7
-8FFAC8
-8FFAC9
-8FFACA
-8FFACB
-8FFACC
-8FFACD
-8FFACE
-8FFACF
-8FFAD0
-8FFAD1
-8FFAD2
-8FFAD3
-8FFAD4
-8FFAD5
-8FFAD6
-8FFAD7
-8FFAD8
-8FFAD9
-8FFADA
-8FFADB
-8FFADC
-8FFADD
-8FFADE
-8FFADF
-8FFAE0
-8FFAE1
-8FFAE2
-8FFAE3
-8FFAE4
-8FFAE5
-8FFAE6
-8FFAE7
-8FFAE8
-8FFAE9
-8FFAEA
-8FFAEB
-8FFAEC
-8FFAED
-8FFAEE
-8FFAEF
-8FFAF0
-8FFAF1
-8FFAF2
-8FFAF3
-8FFAF4
-8FFAF5
-8FFAF6
-8FFAF7
-8FFAF8
-8FFAF9
-8FFAFA
-8FFAFB
-8FFAFC
-8FFAFD
-8FFAFE
-8FFBA1
-8FFBA2
-8FFBA3
-8FFBA4
-8FFBA5
-8FFBA6
-8FFBA7
-8FFBA8
-8FFBA9
-8FFBAA
-8FFBAB
-8FFBAC
-8FFBAD
-8FFBAE
-8FFBAF
-8FFBB0
-8FFBB1
-8FFBB2
-8FFBB3
-8FFBB4
-8FFBB5
-8FFBB6
-8FFBB7
-8FFBB8
-8FFBB9
-8FFBBA
-8FFBBB
-8FFBBC
-8FFBBD
-8FFBBE
-8FFBBF
-8FFBC0
-8FFBC1
-8FFBC2
-8FFBC3
-8FFBC4
-8FFBC5
-8FFBC6
-8FFBC7
-8FFBC8
-8FFBC9
-8FFBCA
-8FFBCB
-8FFBCC
-8FFBCD
-8FFBCE
-8FFBCF
-8FFBD0
-8FFBD1
-8FFBD2
-8FFBD3
-8FFBD4
-8FFBD5
-8FFBD6
-8FFBD7
-8FFBD8
-8FFBD9
-8FFBDA
-8FFBDB
-8FFBDC
-8FFBDD
-8FFBDE
-8FFBDF
-8FFBE0
-8FFBE1
-8FFBE2
-8FFBE3
-8FFBE4
-8FFBE5
-8FFBE6
-8FFBE7
-8FFBE8
-8FFBE9
-8FFBEA
-8FFBEB
-8FFBEC
-8FFBED
-8FFBEE
-8FFBEF
-8FFBF0
-8FFBF1
-8FFBF2
-8FFBF3
-8FFBF4
-8FFBF5
-8FFBF6
-8FFBF7
-8FFBF8
-8FFBF9
-8FFBFA
-8FFBFB
-8FFBFC
-8FFBFD
-8FFBFE
-8FFCA1
-8FFCA2
-8FFCA3
-8FFCA4
-8FFCA5
-8FFCA6
-8FFCA7
-8FFCA8
-8FFCA9
-8FFCAA
-8FFCAB
-8FFCAC
-8FFCAD
-8FFCAE
-8FFCAF
-8FFCB0
-8FFCB1
-8FFCB2
-8FFCB3
-8FFCB4
-8FFCB5
-8FFCB6
-8FFCB7
-8FFCB8
-8FFCB9
-8FFCBA
-8FFCBB
-8FFCBC
-8FFCBD
-8FFCBE
-8FFCBF
-8FFCC0
-8FFCC1
-8FFCC2
-8FFCC3
-8FFCC4
-8FFCC5
-8FFCC6
-8FFCC7
-8FFCC8
-8FFCC9
-8FFCCA
-8FFCCB
-8FFCCC
-8FFCCD
-8FFCCE
-8FFCCF
-8FFCD0
-8FFCD1
-8FFCD2
-8FFCD3
-8FFCD4
-8FFCD5
-8FFCD6
-8FFCD7
-8FFCD8
-8FFCD9
-8FFCDA
-8FFCDB
-8FFCDC
-8FFCDD
-8FFCDE
-8FFCDF
-8FFCE0
-8FFCE1
-8FFCE2
-8FFCE3
-8FFCE4
-8FFCE5
-8FFCE6
-8FFCE7
-8FFCE8
-8FFCE9
-8FFCEA
-8FFCEB
-8FFCEC
-8FFCED
-8FFCEE
-8FFCEF
-8FFCF0
-8FFCF1
-8FFCF2
-8FFCF3
-8FFCF4
-8FFCF5
-8FFCF6
-8FFCF7
-8FFCF8
-8FFCF9
-8FFCFA
-8FFCFB
-8FFCFC
-8FFCFD
-8FFCFE
-8FFDA1
-8FFDA2
-8FFDA3
-8FFDA4
-8FFDA5
-8FFDA6
-8FFDA7
-8FFDA8
-8FFDA9
-8FFDAA
-8FFDAB
-8FFDAC
-8FFDAD
-8FFDAE
-8FFDAF
-8FFDB0
-8FFDB1
-8FFDB2
-8FFDB3
-8FFDB4
-8FFDB5
-8FFDB6
-8FFDB7
-8FFDB8
-8FFDB9
-8FFDBA
-8FFDBB
-8FFDBC
-8FFDBD
-8FFDBE
-8FFDBF
-8FFDC0
-8FFDC1
-8FFDC2
-8FFDC3
-8FFDC4
-8FFDC5
-8FFDC6
-8FFDC7
-8FFDC8
-8FFDC9
-8FFDCA
-8FFDCB
-8FFDCC
-8FFDCD
-8FFDCE
-8FFDCF
-8FFDD0
-8FFDD1
-8FFDD2
-8FFDD3
-8FFDD4
-8FFDD5
-8FFDD6
-8FFDD7
-8FFDD8
-8FFDD9
-8FFDDA
-8FFDDB
-8FFDDC
-8FFDDD
-8FFDDE
-8FFDDF
-8FFDE0
-8FFDE1
-8FFDE2
-8FFDE3
-8FFDE4
-8FFDE5
-8FFDE6
-8FFDE7
-8FFDE8
-8FFDE9
-8FFDEA
-8FFDEB
-8FFDEC
-8FFDED
-8FFDEE
-8FFDEF
-8FFDF0
-8FFDF1
-8FFDF2
-8FFDF3
-8FFDF4
-8FFDF5
-8FFDF6
-8FFDF7
-8FFDF8
-8FFDF9
-8FFDFA
-8FFDFB
-8FFDFC
-8FFDFD
-8FFDFE
-8FFEA1
-8FFEA2
-8FFEA3
-8FFEA4
-8FFEA5
-8FFEA6
-8FFEA7
-8FFEA8
-8FFEA9
-8FFEAA
-8FFEAB
-8FFEAC
-8FFEAD
-8FFEAE
-8FFEAF
-8FFEB0
-8FFEB1
-8FFEB2
-8FFEB3
-8FFEB4
-8FFEB5
-8FFEB6
-8FFEB7
-8FFEB8
-8FFEB9
-8FFEBA
-8FFEBB
-8FFEBC
-8FFEBD
-8FFEBE
-8FFEBF
-8FFEC0
-8FFEC1
-8FFEC2
-8FFEC3
-8FFEC4
-8FFEC5
-8FFEC6
-8FFEC7
-8FFEC8
-8FFEC9
-8FFECA
-8FFECB
-8FFECC
-8FFECD
-8FFECE
-8FFECF
-8FFED0
-8FFED1
-8FFED2
-8FFED3
-8FFED4
-8FFED5
-8FFED6
-8FFED7
-8FFED8
-8FFED9
-8FFEDA
-8FFEDB
-8FFEDC
-8FFEDD
-8FFEDE
-8FFEDF
-8FFEE0
-8FFEE1
-8FFEE2
-8FFEE3
-8FFEE4
-8FFEE5
-8FFEE6
-8FFEE7
-8FFEE8
-8FFEE9
-8FFEEA
-8FFEEB
-8FFEEC
-8FFEED
-8FFEEE
-8FFEEF
-8FFEF0
-8FFEF1
-8FFEF2
-8FFEF3
-8FFEF4
-8FFEF5
-8FFEF6
-8FFEF7
-8FFEF8
-8FFEF9
-8FFEFA
-8FFEFB
-8FFEFC
-8FFEFD
-8FFEFE
-CREATE TABLE t4 SELECT CONVERT(c1 USING cp932) AS c1 FROM t1;
-SELECT HEX(c1) FROM t4;
-HEX(c1)
-5C
-7E
-8150
-815C
-815F
-8160
-8161
-817C
-8191
-8192
-818F
-81CA
-8160
-FA55
-8740
-8741
-8742
-8743
-8744
-8745
-8746
-8747
-8748
-8749
-874A
-874B
-874C
-874D
-874E
-874F
-8750
-8751
-8752
-8753
-8754
-8755
-8756
-8757
-8758
-8759
-875A
-875B
-875C
-875D
-875F
-8760
-8761
-8762
-8763
-8764
-8765
-8766
-8767
-8768
-8769
-876A
-876B
-876C
-876D
-876E
-876F
-8770
-8771
-8772
-8773
-8774
-8775
-877E
-8780
-8781
-8782
-8783
-8784
-8785
-8786
-8787
-8788
-8789
-878A
-878B
-878C
-878D
-878E
-878F
-81E0
-81DF
-81E7
-8793
-8794
-81E3
-81DB
-81DA
-8798
-8799
-81E6
-81BF
-81BE
-FA40
-FA41
-FA42
-FA43
-FA44
-FA45
-FA46
-FA47
-FA48
-FA49
-8754
-8755
-8756
-8757
-8758
-8759
-875A
-875B
-875C
-875D
-81CA
-FA55
-FA56
-FA57
-878A
-8782
-8784
-81E6
-FA5C
-FA5D
-FA5E
-FA5F
-FA60
-FA61
-FA62
-FA63
-FA64
-FA65
-FA66
-FA67
-FA68
-FA69
-FA6A
-FA6B
-FA6C
-FA6D
-FA6E
-FA6F
-FA70
-FA71
-FA72
-FA73
-FA74
-FA75
-FA76
-FA77
-FA78
-FA79
-FA7A
-FA7B
-FA7C
-FA7D
-FA7E
-FA80
-FA81
-FA82
-FA83
-FA84
-FA85
-FA86
-FA87
-FA88
-FA89
-FA8A
-FA8B
-FA8C
-FA8D
-FA8E
-FA8F
-FA90
-FA91
-FA92
-FA93
-FA94
-FA95
-FA96
-FA97
-FA98
-FA99
-FA9A
-FA9B
-FA9C
-FA9D
-FA9E
-FA9F
-FAA0
-FAA1
-FAA2
-FAA3
-FAA4
-FAA5
-FAA6
-FAA7
-FAA8
-FAA9
-FAAA
-FAAB
-FAAC
-FAAD
-FAAE
-FAAF
-FAB0
-FAB1
-FAB2
-FAB3
-FAB4
-FAB5
-FAB6
-FAB7
-FAB8
-FAB9
-FABA
-FABB
-FABC
-FABD
-FABE
-FABF
-FAC0
-FAC1
-FAC2
-FAC3
-FAC4
-FAC5
-FAC6
-FAC7
-FAC8
-FAC9
-FACA
-FACB
-FACC
-FACD
-FACE
-FACF
-FAD0
-FAD1
-FAD2
-FAD3
-FAD4
-FAD5
-FAD6
-FAD7
-FAD8
-FAD9
-FADA
-FADB
-FADC
-FADD
-FADE
-FADF
-FAE0
-FAE1
-FAE2
-FAE3
-FAE4
-FAE5
-FAE6
-FAE7
-FAE8
-FAE9
-FAEA
-FAEB
-FAEC
-FAED
-FAEE
-FAEF
-FAF0
-FAF1
-FAF2
-FAF3
-FAF4
-FAF5
-FAF6
-FAF7
-FAF8
-FAF9
-FAFA
-FAFB
-FAFC
-FB40
-FB41
-FB42
-FB43
-FB44
-FB45
-FB46
-FB47
-FB48
-FB49
-FB4A
-FB4B
-FB4C
-FB4D
-FB4E
-FB4F
-FB50
-FB51
-FB52
-FB53
-FB54
-FB55
-FB56
-FB57
-FB58
-FB59
-FB5A
-FB5B
-FB5C
-FB5D
-FB5E
-FB5F
-FB60
-FB61
-FB62
-FB63
-FB64
-FB65
-FB66
-FB67
-FB68
-FB69
-FB6A
-FB6B
-FB6C
-FB6D
-FB6E
-FB6F
-FB70
-FB71
-FB72
-FB73
-FB74
-FB75
-FB76
-FB77
-FB78
-FB79
-FB7A
-FB7B
-FB7C
-FB7D
-FB7E
-FB80
-FB81
-FB82
-FB83
-FB84
-FB85
-FB86
-FB87
-FB88
-FB89
-FB8A
-FB8B
-FB8C
-FB8D
-FB8E
-FB8F
-FB90
-FB91
-FB92
-FB93
-FB94
-FB95
-FB96
-FB97
-FB98
-FB99
-FB9A
-FB9B
-FB9C
-FB9D
-FB9E
-FB9F
-FBA0
-FBA1
-FBA2
-FBA3
-FBA4
-FBA5
-FBA6
-FBA7
-FBA8
-FBA9
-FBAA
-FBAB
-FBAC
-FBAD
-FBAE
-FBAF
-FBB0
-FBB1
-FBB2
-FBB3
-FBB4
-FBB5
-FBB6
-FBB7
-FBB8
-FBB9
-FBBA
-FBBB
-FBBC
-FBBD
-FBBE
-FBBF
-FBC0
-FBC1
-FBC2
-FBC3
-FBC4
-FBC5
-FBC6
-FBC7
-FBC8
-FBC9
-FBCA
-FBCB
-FBCC
-FBCD
-FBCE
-FBCF
-FBD0
-FBD1
-FBD2
-FBD3
-FBD4
-FBD5
-FBD6
-FBD7
-FBD8
-FBD9
-FBDA
-FBDB
-FBDC
-FBDD
-FBDE
-FBDF
-FBE0
-FBE1
-FBE2
-FBE3
-FBE4
-FBE5
-FBE6
-FBE7
-FBE8
-FBE9
-FBEA
-FBEB
-FBEC
-FBED
-FBEE
-FBEF
-FBF0
-FBF1
-FBF2
-FBF3
-FBF4
-FBF5
-FBF6
-FBF7
-FBF8
-FBF9
-FBFA
-FBFB
-FBFC
-FC40
-FC41
-FC42
-FC43
-FC44
-FC45
-FC46
-FC47
-FC48
-FC49
-FC4A
-FC4B
-F040
-F041
-F042
-F043
-F044
-F045
-F046
-F047
-F048
-F049
-F04A
-F04B
-F04C
-F04D
-F04E
-F04F
-F050
-F051
-F052
-F053
-F054
-F055
-F056
-F057
-F058
-F059
-F05A
-F05B
-F05C
-F05D
-F05E
-F05F
-F060
-F061
-F062
-F063
-F064
-F065
-F066
-F067
-F068
-F069
-F06A
-F06B
-F06C
-F06D
-F06E
-F06F
-F070
-F071
-F072
-F073
-F074
-F075
-F076
-F077
-F078
-F079
-F07A
-F07B
-F07C
-F07D
-F07E
-F080
-F081
-F082
-F083
-F084
-F085
-F086
-F087
-F088
-F089
-F08A
-F08B
-F08C
-F08D
-F08E
-F08F
-F090
-F091
-F092
-F093
-F094
-F095
-F096
-F097
-F098
-F099
-F09A
-F09B
-F09C
-F09D
-F09E
-F09F
-F0A0
-F0A1
-F0A2
-F0A3
-F0A4
-F0A5
-F0A6
-F0A7
-F0A8
-F0A9
-F0AA
-F0AB
-F0AC
-F0AD
-F0AE
-F0AF
-F0B0
-F0B1
-F0B2
-F0B3
-F0B4
-F0B5
-F0B6
-F0B7
-F0B8
-F0B9
-F0BA
-F0BB
-F0BC
-F0BD
-F0BE
-F0BF
-F0C0
-F0C1
-F0C2
-F0C3
-F0C4
-F0C5
-F0C6
-F0C7
-F0C8
-F0C9
-F0CA
-F0CB
-F0CC
-F0CD
-F0CE
-F0CF
-F0D0
-F0D1
-F0D2
-F0D3
-F0D4
-F0D5
-F0D6
-F0D7
-F0D8
-F0D9
-F0DA
-F0DB
-F0DC
-F0DD
-F0DE
-F0DF
-F0E0
-F0E1
-F0E2
-F0E3
-F0E4
-F0E5
-F0E6
-F0E7
-F0E8
-F0E9
-F0EA
-F0EB
-F0EC
-F0ED
-F0EE
-F0EF
-F0F0
-F0F1
-F0F2
-F0F3
-F0F4
-F0F5
-F0F6
-F0F7
-F0F8
-F0F9
-F0FA
-F0FB
-F0FC
-F140
-F141
-F142
-F143
-F144
-F145
-F146
-F147
-F148
-F149
-F14A
-F14B
-F14C
-F14D
-F14E
-F14F
-F150
-F151
-F152
-F153
-F154
-F155
-F156
-F157
-F158
-F159
-F15A
-F15B
-F15C
-F15D
-F15E
-F15F
-F160
-F161
-F162
-F163
-F164
-F165
-F166
-F167
-F168
-F169
-F16A
-F16B
-F16C
-F16D
-F16E
-F16F
-F170
-F171
-F172
-F173
-F174
-F175
-F176
-F177
-F178
-F179
-F17A
-F17B
-F17C
-F17D
-F17E
-F180
-F181
-F182
-F183
-F184
-F185
-F186
-F187
-F188
-F189
-F18A
-F18B
-F18C
-F18D
-F18E
-F18F
-F190
-F191
-F192
-F193
-F194
-F195
-F196
-F197
-F198
-F199
-F19A
-F19B
-F19C
-F19D
-F19E
-F19F
-F1A0
-F1A1
-F1A2
-F1A3
-F1A4
-F1A5
-F1A6
-F1A7
-F1A8
-F1A9
-F1AA
-F1AB
-F1AC
-F1AD
-F1AE
-F1AF
-F1B0
-F1B1
-F1B2
-F1B3
-F1B4
-F1B5
-F1B6
-F1B7
-F1B8
-F1B9
-F1BA
-F1BB
-F1BC
-F1BD
-F1BE
-F1BF
-F1C0
-F1C1
-F1C2
-F1C3
-F1C4
-F1C5
-F1C6
-F1C7
-F1C8
-F1C9
-F1CA
-F1CB
-F1CC
-F1CD
-F1CE
-F1CF
-F1D0
-F1D1
-F1D2
-F1D3
-F1D4
-F1D5
-F1D6
-F1D7
-F1D8
-F1D9
-F1DA
-F1DB
-F1DC
-F1DD
-F1DE
-F1DF
-F1E0
-F1E1
-F1E2
-F1E3
-F1E4
-F1E5
-F1E6
-F1E7
-F1E8
-F1E9
-F1EA
-F1EB
-F1EC
-F1ED
-F1EE
-F1EF
-F1F0
-F1F1
-F1F2
-F1F3
-F1F4
-F1F5
-F1F6
-F1F7
-F1F8
-F1F9
-F1FA
-F1FB
-F1FC
-F240
-F241
-F242
-F243
-F244
-F245
-F246
-F247
-F248
-F249
-F24A
-F24B
-F24C
-F24D
-F24E
-F24F
-F250
-F251
-F252
-F253
-F254
-F255
-F256
-F257
-F258
-F259
-F25A
-F25B
-F25C
-F25D
-F25E
-F25F
-F260
-F261
-F262
-F263
-F264
-F265
-F266
-F267
-F268
-F269
-F26A
-F26B
-F26C
-F26D
-F26E
-F26F
-F270
-F271
-F272
-F273
-F274
-F275
-F276
-F277
-F278
-F279
-F27A
-F27B
-F27C
-F27D
-F27E
-F280
-F281
-F282
-F283
-F284
-F285
-F286
-F287
-F288
-F289
-F28A
-F28B
-F28C
-F28D
-F28E
-F28F
-F290
-F291
-F292
-F293
-F294
-F295
-F296
-F297
-F298
-F299
-F29A
-F29B
-F29C
-F29D
-F29E
-F29F
-F2A0
-F2A1
-F2A2
-F2A3
-F2A4
-F2A5
-F2A6
-F2A7
-F2A8
-F2A9
-F2AA
-F2AB
-F2AC
-F2AD
-F2AE
-F2AF
-F2B0
-F2B1
-F2B2
-F2B3
-F2B4
-F2B5
-F2B6
-F2B7
-F2B8
-F2B9
-F2BA
-F2BB
-F2BC
-F2BD
-F2BE
-F2BF
-F2C0
-F2C1
-F2C2
-F2C3
-F2C4
-F2C5
-F2C6
-F2C7
-F2C8
-F2C9
-F2CA
-F2CB
-F2CC
-F2CD
-F2CE
-F2CF
-F2D0
-F2D1
-F2D2
-F2D3
-F2D4
-F2D5
-F2D6
-F2D7
-F2D8
-F2D9
-F2DA
-F2DB
-F2DC
-F2DD
-F2DE
-F2DF
-F2E0
-F2E1
-F2E2
-F2E3
-F2E4
-F2E5
-F2E6
-F2E7
-F2E8
-F2E9
-F2EA
-F2EB
-F2EC
-F2ED
-F2EE
-F2EF
-F2F0
-F2F1
-F2F2
-F2F3
-F2F4
-F2F5
-F2F6
-F2F7
-F2F8
-F2F9
-F2FA
-F2FB
-F2FC
-F340
-F341
-F342
-F343
-F344
-F345
-F346
-F347
-F348
-F349
-F34A
-F34B
-F34C
-F34D
-F34E
-F34F
-F350
-F351
-F352
-F353
-F354
-F355
-F356
-F357
-F358
-F359
-F35A
-F35B
-F35C
-F35D
-F35E
-F35F
-F360
-F361
-F362
-F363
-F364
-F365
-F366
-F367
-F368
-F369
-F36A
-F36B
-F36C
-F36D
-F36E
-F36F
-F370
-F371
-F372
-F373
-F374
-F375
-F376
-F377
-F378
-F379
-F37A
-F37B
-F37C
-F37D
-F37E
-F380
-F381
-F382
-F383
-F384
-F385
-F386
-F387
-F388
-F389
-F38A
-F38B
-F38C
-F38D
-F38E
-F38F
-F390
-F391
-F392
-F393
-F394
-F395
-F396
-F397
-F398
-F399
-F39A
-F39B
-F39C
-F39D
-F39E
-F39F
-F3A0
-F3A1
-F3A2
-F3A3
-F3A4
-F3A5
-F3A6
-F3A7
-F3A8
-F3A9
-F3AA
-F3AB
-F3AC
-F3AD
-F3AE
-F3AF
-F3B0
-F3B1
-F3B2
-F3B3
-F3B4
-F3B5
-F3B6
-F3B7
-F3B8
-F3B9
-F3BA
-F3BB
-F3BC
-F3BD
-F3BE
-F3BF
-F3C0
-F3C1
-F3C2
-F3C3
-F3C4
-F3C5
-F3C6
-F3C7
-F3C8
-F3C9
-F3CA
-F3CB
-F3CC
-F3CD
-F3CE
-F3CF
-F3D0
-F3D1
-F3D2
-F3D3
-F3D4
-F3D5
-F3D6
-F3D7
-F3D8
-F3D9
-F3DA
-F3DB
-F3DC
-F3DD
-F3DE
-F3DF
-F3E0
-F3E1
-F3E2
-F3E3
-F3E4
-F3E5
-F3E6
-F3E7
-F3E8
-F3E9
-F3EA
-F3EB
-F3EC
-F3ED
-F3EE
-F3EF
-F3F0
-F3F1
-F3F2
-F3F3
-F3F4
-F3F5
-F3F6
-F3F7
-F3F8
-F3F9
-F3FA
-F3FB
-F3FC
-F440
-F441
-F442
-F443
-F444
-F445
-F446
-F447
-F448
-F449
-F44A
-F44B
-F44C
-F44D
-F44E
-F44F
-F450
-F451
-F452
-F453
-F454
-F455
-F456
-F457
-F458
-F459
-F45A
-F45B
-F45C
-F45D
-F45E
-F45F
-F460
-F461
-F462
-F463
-F464
-F465
-F466
-F467
-F468
-F469
-F46A
-F46B
-F46C
-F46D
-F46E
-F46F
-F470
-F471
-F472
-F473
-F474
-F475
-F476
-F477
-F478
-F479
-F47A
-F47B
-F47C
-F47D
-F47E
-F480
-F481
-F482
-F483
-F484
-F485
-F486
-F487
-F488
-F489
-F48A
-F48B
-F48C
-F48D
-F48E
-F48F
-F490
-F491
-F492
-F493
-F494
-F495
-F496
-F497
-F498
-F499
-F49A
-F49B
-F49C
-F49D
-F49E
-F49F
-F4A0
-F4A1
-F4A2
-F4A3
-F4A4
-F4A5
-F4A6
-F4A7
-F4A8
-F4A9
-F4AA
-F4AB
-F4AC
-F4AD
-F4AE
-F4AF
-F4B0
-F4B1
-F4B2
-F4B3
-F4B4
-F4B5
-F4B6
-F4B7
-F4B8
-F4B9
-F4BA
-F4BB
-F4BC
-F4BD
-F4BE
-F4BF
-F4C0
-F4C1
-F4C2
-F4C3
-F4C4
-F4C5
-F4C6
-F4C7
-F4C8
-F4C9
-F4CA
-F4CB
-F4CC
-F4CD
-F4CE
-F4CF
-F4D0
-F4D1
-F4D2
-F4D3
-F4D4
-F4D5
-F4D6
-F4D7
-F4D8
-F4D9
-F4DA
-F4DB
-F4DC
-F4DD
-F4DE
-F4DF
-F4E0
-F4E1
-F4E2
-F4E3
-F4E4
-F4E5
-F4E6
-F4E7
-F4E8
-F4E9
-F4EA
-F4EB
-F4EC
-F4ED
-F4EE
-F4EF
-F4F0
-F4F1
-F4F2
-F4F3
-F4F4
-F4F5
-F4F6
-F4F7
-F4F8
-F4F9
-F4FA
-F4FB
-F4FC
-F540
-F541
-F542
-F543
-F544
-F545
-F546
-F547
-F548
-F549
-F54A
-F54B
-F54C
-F54D
-F54E
-F54F
-F550
-F551
-F552
-F553
-F554
-F555
-F556
-F557
-F558
-F559
-F55A
-F55B
-F55C
-F55D
-F55E
-F55F
-F560
-F561
-F562
-F563
-F564
-F565
-F566
-F567
-F568
-F569
-F56A
-F56B
-F56C
-F56D
-F56E
-F56F
-F570
-F571
-F572
-F573
-F574
-F575
-F576
-F577
-F578
-F579
-F57A
-F57B
-F57C
-F57D
-F57E
-F580
-F581
-F582
-F583
-F584
-F585
-F586
-F587
-F588
-F589
-F58A
-F58B
-F58C
-F58D
-F58E
-F58F
-F590
-F591
-F592
-F593
-F594
-F595
-F596
-F597
-F598
-F599
-F59A
-F59B
-F59C
-F59D
-F59E
-F59F
-F5A0
-F5A1
-F5A2
-F5A3
-F5A4
-F5A5
-F5A6
-F5A7
-F5A8
-F5A9
-F5AA
-F5AB
-F5AC
-F5AD
-F5AE
-F5AF
-F5B0
-F5B1
-F5B2
-F5B3
-F5B4
-F5B5
-F5B6
-F5B7
-F5B8
-F5B9
-F5BA
-F5BB
-F5BC
-F5BD
-F5BE
-F5BF
-F5C0
-F5C1
-F5C2
-F5C3
-F5C4
-F5C5
-F5C6
-F5C7
-F5C8
-F5C9
-F5CA
-F5CB
-F5CC
-F5CD
-F5CE
-F5CF
-F5D0
-F5D1
-F5D2
-F5D3
-F5D4
-F5D5
-F5D6
-F5D7
-F5D8
-F5D9
-F5DA
-F5DB
-F5DC
-F5DD
-F5DE
-F5DF
-F5E0
-F5E1
-F5E2
-F5E3
-F5E4
-F5E5
-F5E6
-F5E7
-F5E8
-F5E9
-F5EA
-F5EB
-F5EC
-F5ED
-F5EE
-F5EF
-F5F0
-F5F1
-F5F2
-F5F3
-F5F4
-F5F5
-F5F6
-F5F7
-F5F8
-F5F9
-F5FA
-F5FB
-F5FC
-F640
-F641
-F642
-F643
-F644
-F645
-F646
-F647
-F648
-F649
-F64A
-F64B
-F64C
-F64D
-F64E
-F64F
-F650
-F651
-F652
-F653
-F654
-F655
-F656
-F657
-F658
-F659
-F65A
-F65B
-F65C
-F65D
-F65E
-F65F
-F660
-F661
-F662
-F663
-F664
-F665
-F666
-F667
-F668
-F669
-F66A
-F66B
-F66C
-F66D
-F66E
-F66F
-F670
-F671
-F672
-F673
-F674
-F675
-F676
-F677
-F678
-F679
-F67A
-F67B
-F67C
-F67D
-F67E
-F680
-F681
-F682
-F683
-F684
-F685
-F686
-F687
-F688
-F689
-F68A
-F68B
-F68C
-F68D
-F68E
-F68F
-F690
-F691
-F692
-F693
-F694
-F695
-F696
-F697
-F698
-F699
-F69A
-F69B
-F69C
-F69D
-F69E
-F69F
-F6A0
-F6A1
-F6A2
-F6A3
-F6A4
-F6A5
-F6A6
-F6A7
-F6A8
-F6A9
-F6AA
-F6AB
-F6AC
-F6AD
-F6AE
-F6AF
-F6B0
-F6B1
-F6B2
-F6B3
-F6B4
-F6B5
-F6B6
-F6B7
-F6B8
-F6B9
-F6BA
-F6BB
-F6BC
-F6BD
-F6BE
-F6BF
-F6C0
-F6C1
-F6C2
-F6C3
-F6C4
-F6C5
-F6C6
-F6C7
-F6C8
-F6C9
-F6CA
-F6CB
-F6CC
-F6CD
-F6CE
-F6CF
-F6D0
-F6D1
-F6D2
-F6D3
-F6D4
-F6D5
-F6D6
-F6D7
-F6D8
-F6D9
-F6DA
-F6DB
-F6DC
-F6DD
-F6DE
-F6DF
-F6E0
-F6E1
-F6E2
-F6E3
-F6E4
-F6E5
-F6E6
-F6E7
-F6E8
-F6E9
-F6EA
-F6EB
-F6EC
-F6ED
-F6EE
-F6EF
-F6F0
-F6F1
-F6F2
-F6F3
-F6F4
-F6F5
-F6F6
-F6F7
-F6F8
-F6F9
-F6FA
-F6FB
-F6FC
-F740
-F741
-F742
-F743
-F744
-F745
-F746
-F747
-F748
-F749
-F74A
-F74B
-F74C
-F74D
-F74E
-F74F
-F750
-F751
-F752
-F753
-F754
-F755
-F756
-F757
-F758
-F759
-F75A
-F75B
-F75C
-F75D
-F75E
-F75F
-F760
-F761
-F762
-F763
-F764
-F765
-F766
-F767
-F768
-F769
-F76A
-F76B
-F76C
-F76D
-F76E
-F76F
-F770
-F771
-F772
-F773
-F774
-F775
-F776
-F777
-F778
-F779
-F77A
-F77B
-F77C
-F77D
-F77E
-F780
-F781
-F782
-F783
-F784
-F785
-F786
-F787
-F788
-F789
-F78A
-F78B
-F78C
-F78D
-F78E
-F78F
-F790
-F791
-F792
-F793
-F794
-F795
-F796
-F797
-F798
-F799
-F79A
-F79B
-F79C
-F79D
-F79E
-F79F
-F7A0
-F7A1
-F7A2
-F7A3
-F7A4
-F7A5
-F7A6
-F7A7
-F7A8
-F7A9
-F7AA
-F7AB
-F7AC
-F7AD
-F7AE
-F7AF
-F7B0
-F7B1
-F7B2
-F7B3
-F7B4
-F7B5
-F7B6
-F7B7
-F7B8
-F7B9
-F7BA
-F7BB
-F7BC
-F7BD
-F7BE
-F7BF
-F7C0
-F7C1
-F7C2
-F7C3
-F7C4
-F7C5
-F7C6
-F7C7
-F7C8
-F7C9
-F7CA
-F7CB
-F7CC
-F7CD
-F7CE
-F7CF
-F7D0
-F7D1
-F7D2
-F7D3
-F7D4
-F7D5
-F7D6
-F7D7
-F7D8
-F7D9
-F7DA
-F7DB
-F7DC
-F7DD
-F7DE
-F7DF
-F7E0
-F7E1
-F7E2
-F7E3
-F7E4
-F7E5
-F7E6
-F7E7
-F7E8
-F7E9
-F7EA
-F7EB
-F7EC
-F7ED
-F7EE
-F7EF
-F7F0
-F7F1
-F7F2
-F7F3
-F7F4
-F7F5
-F7F6
-F7F7
-F7F8
-F7F9
-F7FA
-F7FB
-F7FC
-F840
-F841
-F842
-F843
-F844
-F845
-F846
-F847
-F848
-F849
-F84A
-F84B
-F84C
-F84D
-F84E
-F84F
-F850
-F851
-F852
-F853
-F854
-F855
-F856
-F857
-F858
-F859
-F85A
-F85B
-F85C
-F85D
-F85E
-F85F
-F860
-F861
-F862
-F863
-F864
-F865
-F866
-F867
-F868
-F869
-F86A
-F86B
-F86C
-F86D
-F86E
-F86F
-F870
-F871
-F872
-F873
-F874
-F875
-F876
-F877
-F878
-F879
-F87A
-F87B
-F87C
-F87D
-F87E
-F880
-F881
-F882
-F883
-F884
-F885
-F886
-F887
-F888
-F889
-F88A
-F88B
-F88C
-F88D
-F88E
-F88F
-F890
-F891
-F892
-F893
-F894
-F895
-F896
-F897
-F898
-F899
-F89A
-F89B
-F89C
-F89D
-F89E
-F89F
-F8A0
-F8A1
-F8A2
-F8A3
-F8A4
-F8A5
-F8A6
-F8A7
-F8A8
-F8A9
-F8AA
-F8AB
-F8AC
-F8AD
-F8AE
-F8AF
-F8B0
-F8B1
-F8B2
-F8B3
-F8B4
-F8B5
-F8B6
-F8B7
-F8B8
-F8B9
-F8BA
-F8BB
-F8BC
-F8BD
-F8BE
-F8BF
-F8C0
-F8C1
-F8C2
-F8C3
-F8C4
-F8C5
-F8C6
-F8C7
-F8C8
-F8C9
-F8CA
-F8CB
-F8CC
-F8CD
-F8CE
-F8CF
-F8D0
-F8D1
-F8D2
-F8D3
-F8D4
-F8D5
-F8D6
-F8D7
-F8D8
-F8D9
-F8DA
-F8DB
-F8DC
-F8DD
-F8DE
-F8DF
-F8E0
-F8E1
-F8E2
-F8E3
-F8E4
-F8E5
-F8E6
-F8E7
-F8E8
-F8E9
-F8EA
-F8EB
-F8EC
-F8ED
-F8EE
-F8EF
-F8F0
-F8F1
-F8F2
-F8F3
-F8F4
-F8F5
-F8F6
-F8F7
-F8F8
-F8F9
-F8FA
-F8FB
-F8FC
-F940
-F941
-F942
-F943
-F944
-F945
-F946
-F947
-F948
-F949
-F94A
-F94B
-F94C
-F94D
-F94E
-F94F
-F950
-F951
-F952
-F953
-F954
-F955
-F956
-F957
-F958
-F959
-F95A
-F95B
-F95C
-F95D
-F95E
-F95F
-F960
-F961
-F962
-F963
-F964
-F965
-F966
-F967
-F968
-F969
-F96A
-F96B
-F96C
-F96D
-F96E
-F96F
-F970
-F971
-F972
-F973
-F974
-F975
-F976
-F977
-F978
-F979
-F97A
-F97B
-F97C
-F97D
-F97E
-F980
-F981
-F982
-F983
-F984
-F985
-F986
-F987
-F988
-F989
-F98A
-F98B
-F98C
-F98D
-F98E
-F98F
-F990
-F991
-F992
-F993
-F994
-F995
-F996
-F997
-F998
-F999
-F99A
-F99B
-F99C
-F99D
-F99E
-F99F
-F9A0
-F9A1
-F9A2
-F9A3
-F9A4
-F9A5
-F9A6
-F9A7
-F9A8
-F9A9
-F9AA
-F9AB
-F9AC
-F9AD
-F9AE
-F9AF
-F9B0
-F9B1
-F9B2
-F9B3
-F9B4
-F9B5
-F9B6
-F9B7
-F9B8
-F9B9
-F9BA
-F9BB
-F9BC
-F9BD
-F9BE
-F9BF
-F9C0
-F9C1
-F9C2
-F9C3
-F9C4
-F9C5
-F9C6
-F9C7
-F9C8
-F9C9
-F9CA
-F9CB
-F9CC
-F9CD
-F9CE
-F9CF
-F9D0
-F9D1
-F9D2
-F9D3
-F9D4
-F9D5
-F9D6
-F9D7
-F9D8
-F9D9
-F9DA
-F9DB
-F9DC
-F9DD
-F9DE
-F9DF
-F9E0
-F9E1
-F9E2
-F9E3
-F9E4
-F9E5
-F9E6
-F9E7
-F9E8
-F9E9
-F9EA
-F9EB
-F9EC
-F9ED
-F9EE
-F9EF
-F9F0
-F9F1
-F9F2
-F9F3
-F9F4
-F9F5
-F9F6
-F9F7
-F9F8
-F9F9
-F9FA
-F9FB
-F9FC
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t3;
-DROP TABLE t4;
-CREATE TABLE t1(c1 varchar(10)) default character set = eucjpms;
-insert into t1 values(_ucs2 0x00F7);
-insert into t1 values(_eucjpms 0xA1E0);
-insert into t1 values(_ujis 0xA1E0);
-insert into t1 values(_sjis 0x8180);
-insert into t1 values(_cp932 0x8180);
-SELECT HEX(c1) FROM t1;
-HEX(c1)
-A1E0
-A1E0
-A1E0
-A1E0
-A1E0
-DROP TABLE t1;
-SET collation_connection='eucjpms_japanese_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-eucjpms_japanese_ci 6109
-eucjpms_japanese_ci 61
-eucjpms_japanese_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-eucjpms_japanese_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-eucjpms_japanese_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F225
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-SET collation_connection='eucjpms_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-eucjpms_bin 6109
-eucjpms_bin 61
-eucjpms_bin 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-eucjpms_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-eucjpms_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F225
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-select hex(convert(_eucjpms 0xA5FE41 using ucs2));
-hex(convert(_eucjpms 0xA5FE41 using ucs2))
-003F0041
-Warnings:
-Warning 1977 Cannot convert 'eucjpms' character 0xA5FE to 'ucs2'
-select hex(convert(_eucjpms 0x8FABF841 using ucs2));
-hex(convert(_eucjpms 0x8FABF841 using ucs2))
-003F0041
-Warnings:
-Warning 1977 Cannot convert 'eucjpms' character 0x8FABF8 to 'ucs2'
-set global LC_TIME_NAMES=convert((convert((0x63) using eucjpms)) using utf8);
-ERROR HY000: Unknown locale: 'c'
-#
-# Start of 5.5 tests
-#
-#
-# Testing WL#4583 Case conversion in Asian character sets
-#
-SET NAMES utf8;
-SET collation_connection=eucjpms_japanese_ci;
-CREATE TABLE t1 (b VARCHAR(2));
-INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
-INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
-CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT 'XXXXXX' AS code, ' ' AS a LIMIT 0;
-INSERT IGNORE INTO t1 (code) SELECT concat('8E', head) FROM head
-WHERE (head BETWEEN 'A1' AND 'DF') ORDER BY head;
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-INSERT IGNORE INTO t1 (code) SELECT concat(head, tail)
-FROM head, tail
-WHERE (head BETWEEN '80' AND 'FF') AND (head NOT BETWEEN '8E' AND '8F')
-AND (tail BETWEEN '20' AND 'FF')
-ORDER BY head, tail;
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-INSERT IGNORE INTO t1 (code) SELECT concat('8F', head, tail)
-FROM head, tail
-WHERE (head BETWEEN '80' AND 'FF') AND (tail BETWEEN '20' AND 'FF')
-ORDER BY head, tail;
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-DROP TEMPORARY TABLE head, tail;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `code` varchar(6) CHARACTER SET eucjpms NOT NULL,
- `a` varchar(1) CHARACTER SET eucjpms NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
-Warnings:
-Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
-Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
-Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
-Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
-Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
-Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
-Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
-Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
-Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
-Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
-Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
-Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
-Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
-Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
-Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
-Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
-Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
-Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
-Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
-Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
-Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
-Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
-Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
-Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
-Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
-Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
-Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
-Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
-Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
-Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
-Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
-Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
-Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
-Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
-Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
-Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
-Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
-Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
-Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
-Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
-Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
-Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
-Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
-Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
-Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
-Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
-Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
-Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
-Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
-Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
-Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
-Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
-Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
-Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
-Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
-Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
-Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
-Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
-Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
-Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
-Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
-Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
-Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-56959
-SELECT COUNT(*) FROM t1 WHERE a<>'';
-COUNT(*)
-56959
-SELECT COUNT(*) FROM t1 WHERE a<>'' AND a<>'?';
-COUNT(*)
-17735
-SELECT COUNT(*) FROM t1 WHERE a<>'' AND OCTET_LENGTH(a)=2;
-COUNT(*)
-8899
-SELECT * FROM t1 WHERE CHAR_LENGTH(a)=2;
-code a
-SELECT COUNT(*) FROM t1 WHERE a<>'' AND OCTET_LENGTH(a)=3;
-COUNT(*)
-8836
-SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a) FROM t1 WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a)) ORDER BY code;
-code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
-8FA6E1 8FA6E1 8FA6F1 Ά Ά ά
-8FA6E2 8FA6E2 8FA6F2 Έ Έ έ
-8FA6E3 8FA6E3 8FA6F3 Ή Ή ή
-8FA6E4 8FA6E4 8FA6F4 Ί Ί ί
-8FA6E5 8FA6E5 8FA6F5 Ϊ Ϊ ϊ
-8FA6E7 8FA6E7 8FA6F7 Ό Ό ό
-8FA6E9 8FA6E9 8FA6F9 ÎŽ ÎŽ Ï
-8FA6EA 8FA6EA 8FA6FA Ϋ Ϋ ϋ
-8FA6EC 8FA6EC 8FA6FC Î Î ÏŽ
-8FA6F1 8FA6E1 8FA6F1 ά Ά ά
-8FA6F2 8FA6E2 8FA6F2 έ Έ έ
-8FA6F3 8FA6E3 8FA6F3 ή Ή ή
-8FA6F4 8FA6E4 8FA6F4 ί Ί ί
-8FA6F5 8FA6E5 8FA6F5 ϊ Ϊ ϊ
-8FA6F7 8FA6E7 8FA6F7 ό Ό ό
-8FA6F8 A6B2 8FA6F8 ς Σ ς
-8FA6F9 8FA6E9 8FA6F9 Ï ÎŽ Ï
-8FA6FA 8FA6EA 8FA6FA ϋ Ϋ ϋ
-8FA6FC 8FA6EC 8FA6FC ÏŽ Î ÏŽ
-8FA7C2 8FA7C2 8FA7F2 Ђ Ђ ђ
-8FA7C3 8FA7C3 8FA7F3 Ѓ Ѓ ѓ
-8FA7C4 8FA7C4 8FA7F4 Є Є є
-8FA7C5 8FA7C5 8FA7F5 Ð… Ð… Ñ•
-8FA7C6 8FA7C6 8FA7F6 І І і
-8FA7C7 8FA7C7 8FA7F7 Ї Ї ї
-8FA7C8 8FA7C8 8FA7F8 Ј Ј ј
-8FA7C9 8FA7C9 8FA7F9 Љ Љ љ
-8FA7CA 8FA7CA 8FA7FA Њ Њ њ
-8FA7CB 8FA7CB 8FA7FB Ћ Ћ ћ
-8FA7CC 8FA7CC 8FA7FC Ќ Ќ ќ
-8FA7CD 8FA7CD 8FA7FD ÐŽ ÐŽ Ñž
-8FA7CE 8FA7CE 8FA7FE Ð Ð ÑŸ
-8FA7F2 8FA7C2 8FA7F2 ђ Ђ ђ
-8FA7F3 8FA7C3 8FA7F3 ѓ Ѓ ѓ
-8FA7F4 8FA7C4 8FA7F4 є Є є
-8FA7F5 8FA7C5 8FA7F5 Ñ• Ð… Ñ•
-8FA7F6 8FA7C6 8FA7F6 і І і
-8FA7F7 8FA7C7 8FA7F7 ї Ї ї
-8FA7F8 8FA7C8 8FA7F8 ј Ј ј
-8FA7F9 8FA7C9 8FA7F9 љ Љ љ
-8FA7FA 8FA7CA 8FA7FA њ Њ њ
-8FA7FB 8FA7CB 8FA7FB ћ Ћ ћ
-8FA7FC 8FA7CC 8FA7FC ќ Ќ ќ
-8FA7FD 8FA7CD 8FA7FD Ñž ÐŽ Ñž
-8FA7FE 8FA7CE 8FA7FE ÑŸ Ð ÑŸ
-8FA9A1 8FA9A1 8FA9C1 Æ Æ æ
-8FA9A2 8FA9A2 8FA9C2 Ä Ä Ä‘
-8FA9A4 8FA9A4 8FA9C4 Ħ Ħ ħ
-8FA9A6 8FA9A6 8FA9C6 IJ IJ ij
-8FA9A8 8FA9A8 8FA9C8 Å Å Å‚
-8FA9A9 8FA9A9 8FA9C9 Ŀ Ŀ ŀ
-8FA9AB 8FA9AB 8FA9CB ÅŠ ÅŠ Å‹
-8FA9AC 8FA9AC 8FA9CC Ø Ø ø
-8FA9AD 8FA9AD 8FA9CD Å’ Å’ Å“
-8FA9AF 8FA9AF 8FA9CF Ŧ Ŧ ŧ
-8FA9B0 8FA9B0 8FA9D0 Þ Þ þ
-8FA9C1 8FA9A1 8FA9C1 æ Æ æ
-8FA9C2 8FA9A2 8FA9C2 Ä‘ Ä Ä‘
-8FA9C4 8FA9A4 8FA9C4 ħ Ħ ħ
-8FA9C5 49 8FA9C5 ı I ı
-8FA9C6 8FA9A6 8FA9C6 ij IJ ij
-8FA9C8 8FA9A8 8FA9C8 Å‚ Å Å‚
-8FA9C9 8FA9A9 8FA9C9 ŀ Ŀ ŀ
-8FA9CB 8FA9AB 8FA9CB Å‹ ÅŠ Å‹
-8FA9CC 8FA9AC 8FA9CC ø Ø ø
-8FA9CD 8FA9AD 8FA9CD Å“ Å’ Å“
-8FA9CF 8FA9AF 8FA9CF ŧ Ŧ ŧ
-8FA9D0 8FA9B0 8FA9D0 þ Þ þ
-8FAAA1 8FAAA1 8FABA1 à à á
-8FAAA2 8FAAA2 8FABA2 À À à
-8FAAA3 8FAAA3 8FABA3 Ä Ä ä
-8FAAA4 8FAAA4 8FABA4 Â Â â
-8FAAA5 8FAAA5 8FABA5 Ă Ă ă
-8FAAA6 8FAAA6 8FABA6 Ç Ç ÇŽ
-8FAAA7 8FAAA7 8FABA7 Ä€ Ä€ Ä
-8FAAA8 8FAAA8 8FABA8 Ä„ Ä„ Ä…
-8FAAA9 8FAAA9 8FABA9 Å Å å
-8FAAAA 8FAAAA 8FABAA Ã Ã ã
-8FAAAB 8FAAAB 8FABAB Ć Ć ć
-8FAAAC 8FAAAC 8FABAC Ĉ Ĉ ĉ
-8FAAAD 8FAAAD 8FABAD ÄŒ ÄŒ Ä
-8FAAAE 8FAAAE 8FABAE Ç Ç ç
-8FAAAF 8FAAAF 8FABAF ÄŠ ÄŠ Ä‹
-8FAAB0 8FAAB0 8FABB0 ÄŽ ÄŽ Ä
-8FAAB1 8FAAB1 8FABB1 É É é
-8FAAB2 8FAAB2 8FABB2 È È è
-8FAAB3 8FAAB3 8FABB3 Ë Ë ë
-8FAAB4 8FAAB4 8FABB4 Ê Ê ê
-8FAAB5 8FAAB5 8FABB5 Äš Äš Ä›
-8FAAB6 8FAAB6 8FABB6 Ä– Ä– Ä—
-8FAAB7 8FAAB7 8FABB7 Ä’ Ä’ Ä“
-8FAAB8 8FAAB8 8FABB8 Ę Ę ę
-8FAABA 8FAABA 8FABBA Äœ Äœ Ä
-8FAABB 8FAABB 8FABBB Äž Äž ÄŸ
-8FAABD 8FAABD 8FABBD Ä  Ä  Ä¡
-8FAABE 8FAABE 8FABBE Ĥ Ĥ ĥ
-8FAABF 8FAABF 8FABBF à à í
-8FAAC0 8FAAC0 8FABC0 Ì Ì ì
-8FAAC1 8FAAC1 8FABC1 à à ï
-8FAAC2 8FAAC2 8FABC2 Î Î î
-8FAAC3 8FAAC3 8FABC3 Ç Ç Ç
-8FAAC4 8FAAC4 69 Ä° Ä° i
-8FAAC5 8FAAC5 8FABC5 Ī Ī ī
-8FAAC6 8FAAC6 8FABC6 Į Į į
-8FAAC7 8FAAC7 8FABC7 Ĩ Ĩ ĩ
-8FAAC8 8FAAC8 8FABC8 Ĵ Ĵ ĵ
-8FAAC9 8FAAC9 8FABC9 Ķ Ķ ķ
-8FAACA 8FAACA 8FABCA Ĺ Ĺ ĺ
-8FAACB 8FAACB 8FABCB Ľ Ľ ľ
-8FAACC 8FAACC 8FABCC Ļ Ļ ļ
-8FAACD 8FAACD 8FABCD Ń Ń ń
-8FAACE 8FAACE 8FABCE Ň Ň ň
-8FAACF 8FAACF 8FABCF Ņ Ņ ņ
-8FAAD0 8FAAD0 8FABD0 Ñ Ñ ñ
-8FAAD1 8FAAD1 8FABD1 Ó Ó ó
-8FAAD2 8FAAD2 8FABD2 Ò Ò ò
-8FAAD3 8FAAD3 8FABD3 Ö Ö ö
-8FAAD4 8FAAD4 8FABD4 Ô Ô ô
-8FAAD5 8FAAD5 8FABD5 Ç‘ Ç‘ Ç’
-8FAAD6 8FAAD6 8FABD6 Å Å Å‘
-8FAAD7 8FAAD7 8FABD7 ÅŒ ÅŒ Å
-8FAAD8 8FAAD8 8FABD8 Õ Õ õ
-8FAAD9 8FAAD9 8FABD9 Å” Å” Å•
-8FAADA 8FAADA 8FABDA Ř Ř ř
-8FAADB 8FAADB 8FABDB Å– Å– Å—
-8FAADC 8FAADC 8FABDC Åš Åš Å›
-8FAADD 8FAADD 8FABDD Åœ Åœ Å
-8FAADE 8FAADE 8FABDE Å  Å  Å¡
-8FAADF 8FAADF 8FABDF Åž Åž ÅŸ
-8FAAE0 8FAAE0 8FABE0 Ť Ť ť
-8FAAE1 8FAAE1 8FABE1 Ţ Ţ ţ
-8FAAE2 8FAAE2 8FABE2 Ú Ú ú
-8FAAE3 8FAAE3 8FABE3 Ù Ù ù
-8FAAE4 8FAAE4 8FABE4 Ü Ü ü
-8FAAE5 8FAAE5 8FABE5 Û Û û
-8FAAE6 8FAAE6 8FABE6 Ŭ Ŭ ŭ
-8FAAE7 8FAAE7 8FABE7 Ç“ Ç“ Ç”
-8FAAE8 8FAAE8 8FABE8 Ű Ű ű
-8FAAE9 8FAAE9 8FABE9 Ū Ū ū
-8FAAEA 8FAAEA 8FABEA Ų Ų ų
-8FAAEB 8FAAEB 8FABEB Ů Ů ů
-8FAAEC 8FAAEC 8FABEC Ũ Ũ ũ
-8FAAED 8FAAED 8FABED Ǘ Ǘ ǘ
-8FAAEE 8FAAEE 8FABEE Ǜ Ǜ ǜ
-8FAAEF 8FAAEF 8FABEF Ç™ Ç™ Çš
-8FAAF0 8FAAF0 8FABF0 Ç• Ç• Ç–
-8FAAF1 8FAAF1 8FABF1 Ŵ Ŵ ŵ
-8FAAF2 8FAAF2 8FABF2 à à ý
-8FAAF3 8FAAF3 8FABF3 Ÿ Ÿ ÿ
-8FAAF4 8FAAF4 8FABF4 Ŷ Ŷ ŷ
-8FAAF5 8FAAF5 8FABF5 Ź Ź ź
-8FAAF6 8FAAF6 8FABF6 Ž Ž ž
-8FAAF7 8FAAF7 8FABF7 Ż Ż ż
-8FABA1 8FAAA1 8FABA1 á à á
-8FABA2 8FAAA2 8FABA2 à À à
-8FABA3 8FAAA3 8FABA3 ä Ä ä
-8FABA4 8FAAA4 8FABA4 â Â â
-8FABA5 8FAAA5 8FABA5 ă Ă ă
-8FABA6 8FAAA6 8FABA6 ÇŽ Ç ÇŽ
-8FABA7 8FAAA7 8FABA7 Ä Ä€ Ä
-8FABA8 8FAAA8 8FABA8 Ä… Ä„ Ä…
-8FABA9 8FAAA9 8FABA9 å Å å
-8FABAA 8FAAAA 8FABAA ã Ã ã
-8FABAB 8FAAAB 8FABAB ć Ć ć
-8FABAC 8FAAAC 8FABAC ĉ Ĉ ĉ
-8FABAD 8FAAAD 8FABAD Ä ÄŒ Ä
-8FABAE 8FAAAE 8FABAE ç Ç ç
-8FABAF 8FAAAF 8FABAF Ä‹ ÄŠ Ä‹
-8FABB0 8FAAB0 8FABB0 Ä ÄŽ Ä
-8FABB1 8FAAB1 8FABB1 é É é
-8FABB2 8FAAB2 8FABB2 è È è
-8FABB3 8FAAB3 8FABB3 ë Ë ë
-8FABB4 8FAAB4 8FABB4 ê Ê ê
-8FABB5 8FAAB5 8FABB5 Ä› Äš Ä›
-8FABB6 8FAAB6 8FABB6 Ä— Ä– Ä—
-8FABB7 8FAAB7 8FABB7 Ä“ Ä’ Ä“
-8FABB8 8FAAB8 8FABB8 ę Ę ę
-8FABBA 8FAABA 8FABBA Ä Äœ Ä
-8FABBB 8FAABB 8FABBB ÄŸ Äž ÄŸ
-8FABBD 8FAABD 8FABBD Ä¡ Ä  Ä¡
-8FABBE 8FAABE 8FABBE ĥ Ĥ ĥ
-8FABBF 8FAABF 8FABBF í à í
-8FABC0 8FAAC0 8FABC0 ì Ì ì
-8FABC1 8FAAC1 8FABC1 ï à ï
-8FABC2 8FAAC2 8FABC2 î Î î
-8FABC3 8FAAC3 8FABC3 Ç Ç Ç
-8FABC5 8FAAC5 8FABC5 ī Ī ī
-8FABC6 8FAAC6 8FABC6 į Į į
-8FABC7 8FAAC7 8FABC7 ĩ Ĩ ĩ
-8FABC8 8FAAC8 8FABC8 ĵ Ĵ ĵ
-8FABC9 8FAAC9 8FABC9 ķ Ķ ķ
-8FABCA 8FAACA 8FABCA ĺ Ĺ ĺ
-8FABCB 8FAACB 8FABCB ľ Ľ ľ
-8FABCC 8FAACC 8FABCC ļ Ļ ļ
-8FABCD 8FAACD 8FABCD ń Ń ń
-8FABCE 8FAACE 8FABCE ň Ň ň
-8FABCF 8FAACF 8FABCF ņ Ņ ņ
-8FABD0 8FAAD0 8FABD0 ñ Ñ ñ
-8FABD1 8FAAD1 8FABD1 ó Ó ó
-8FABD2 8FAAD2 8FABD2 ò Ò ò
-8FABD3 8FAAD3 8FABD3 ö Ö ö
-8FABD4 8FAAD4 8FABD4 ô Ô ô
-8FABD5 8FAAD5 8FABD5 Ç’ Ç‘ Ç’
-8FABD6 8FAAD6 8FABD6 Å‘ Å Å‘
-8FABD7 8FAAD7 8FABD7 Å ÅŒ Å
-8FABD8 8FAAD8 8FABD8 õ Õ õ
-8FABD9 8FAAD9 8FABD9 Å• Å” Å•
-8FABDA 8FAADA 8FABDA ř Ř ř
-8FABDB 8FAADB 8FABDB Å— Å– Å—
-8FABDC 8FAADC 8FABDC Å› Åš Å›
-8FABDD 8FAADD 8FABDD Å Åœ Å
-8FABDE 8FAADE 8FABDE Å¡ Å  Å¡
-8FABDF 8FAADF 8FABDF ÅŸ Åž ÅŸ
-8FABE0 8FAAE0 8FABE0 ť Ť ť
-8FABE1 8FAAE1 8FABE1 ţ Ţ ţ
-8FABE2 8FAAE2 8FABE2 ú Ú ú
-8FABE3 8FAAE3 8FABE3 ù Ù ù
-8FABE4 8FAAE4 8FABE4 ü Ü ü
-8FABE5 8FAAE5 8FABE5 û Û û
-8FABE6 8FAAE6 8FABE6 ŭ Ŭ ŭ
-8FABE7 8FAAE7 8FABE7 Ç” Ç“ Ç”
-8FABE8 8FAAE8 8FABE8 ű Ű ű
-8FABE9 8FAAE9 8FABE9 ū Ū ū
-8FABEA 8FAAEA 8FABEA ų Ų ų
-8FABEB 8FAAEB 8FABEB ů Ů ů
-8FABEC 8FAAEC 8FABEC ũ Ũ ũ
-8FABED 8FAAED 8FABED ǘ Ǘ ǘ
-8FABEE 8FAAEE 8FABEE ǜ Ǜ ǜ
-8FABEF 8FAAEF 8FABEF Çš Ç™ Çš
-8FABF0 8FAAF0 8FABF0 Ç– Ç• Ç–
-8FABF1 8FAAF1 8FABF1 ŵ Ŵ ŵ
-8FABF2 8FAAF2 8FABF2 ý à ý
-8FABF3 8FAAF3 8FABF3 ÿ Ÿ ÿ
-8FABF4 8FAAF4 8FABF4 ŷ Ŷ ŷ
-8FABF5 8FAAF5 8FABF5 ź Ź ź
-8FABF6 8FAAF6 8FABF6 ž Ž ž
-8FABF7 8FAAF7 8FABF7 ż Ż ż
-8FF3F3 8FF3FD 8FF3F3 â…° â…  â…°
-8FF3F4 8FF3FE 8FF3F4 â…± â…¡ â…±
-8FF3F5 8FF4A1 8FF3F5 â…² â…¢ â…²
-8FF3F6 8FF4A2 8FF3F6 â…³ â…£ â…³
-8FF3F7 8FF4A3 8FF3F7 â…´ â…¤ â…´
-8FF3F8 8FF4A4 8FF3F8 â…µ â…¥ â…µ
-8FF3F9 8FF4A5 8FF3F9 â…¶ â…¦ â…¶
-8FF3FA 8FF4A6 8FF3FA â…· â…§ â…·
-8FF3FB 8FF4A7 8FF3FB â…¸ â…¨ â…¸
-8FF3FC 8FF4A8 8FF3FC â…¹ â…© â…¹
-8FF3FD 8FF3FD 8FF3F3 â…  â…  â…°
-8FF3FE 8FF3FE 8FF3F4 â…¡ â…¡ â…±
-8FF4A1 8FF4A1 8FF3F5 â…¢ â…¢ â…²
-8FF4A2 8FF4A2 8FF3F6 â…£ â…£ â…³
-8FF4A3 8FF4A3 8FF3F7 â…¤ â…¤ â…´
-8FF4A4 8FF4A4 8FF3F8 â…¥ â…¥ â…µ
-8FF4A5 8FF4A5 8FF3F9 â…¦ â…¦ â…¶
-8FF4A6 8FF4A6 8FF3FA â…§ â…§ â…·
-8FF4A7 8FF4A7 8FF3FB â…¨ â…¨ â…¸
-8FF4A8 8FF4A8 8FF3FC â…© â…© â…¹
-A2F2 A2F2 8FABA9 Å Å å
-A3C1 A3C1 A3E1 A A ï½
-A3C2 A3C2 A3E2 B B b
-A3C3 A3C3 A3E3 C C c
-A3C4 A3C4 A3E4 D D d
-A3C5 A3C5 A3E5 ï¼¥ ï¼¥ ï½…
-A3C6 A3C6 A3E6 F F f
-A3C7 A3C7 A3E7 G G g
-A3C8 A3C8 A3E8 H H h
-A3C9 A3C9 A3E9 I I i
-A3CA A3CA A3EA J J j
-A3CB A3CB A3EB K K k
-A3CC A3CC A3EC L L l
-A3CD A3CD A3ED ï¼­ ï¼­ ï½
-A3CE A3CE A3EE N N n
-A3CF A3CF A3EF O O ï½
-A3D0 A3D0 A3F0 ï¼° ï¼° ï½
-A3D1 A3D1 A3F1 Q Q q
-A3D2 A3D2 A3F2 ï¼² ï¼² ï½’
-A3D3 A3D3 A3F3 S S s
-A3D4 A3D4 A3F4 ï¼´ ï¼´ ï½”
-A3D5 A3D5 A3F5 U U u
-A3D6 A3D6 A3F6 V V v
-A3D7 A3D7 A3F7 ï¼· ï¼· ï½—
-A3D8 A3D8 A3F8 X X x
-A3D9 A3D9 A3F9 ï¼¹ ï¼¹ ï½™
-A3DA A3DA A3FA Z Z z
-A3E1 A3C1 A3E1 ï½ ï¼¡ ï½
-A3E2 A3C2 A3E2 b B b
-A3E3 A3C3 A3E3 c C c
-A3E4 A3C4 A3E4 d D d
-A3E5 A3C5 A3E5 ï½… ï¼¥ ï½…
-A3E6 A3C6 A3E6 f F f
-A3E7 A3C7 A3E7 g G g
-A3E8 A3C8 A3E8 h H h
-A3E9 A3C9 A3E9 i I i
-A3EA A3CA A3EA j J j
-A3EB A3CB A3EB k K k
-A3EC A3CC A3EC l L l
-A3ED A3CD A3ED ï½ ï¼­ ï½
-A3EE A3CE A3EE n N n
-A3EF A3CF A3EF ï½ ï¼¯ ï½
-A3F0 A3D0 A3F0 ï½ ï¼° ï½
-A3F1 A3D1 A3F1 q Q q
-A3F2 A3D2 A3F2 ï½’ ï¼² ï½’
-A3F3 A3D3 A3F3 s S s
-A3F4 A3D4 A3F4 ï½” ï¼´ ï½”
-A3F5 A3D5 A3F5 u U u
-A3F6 A3D6 A3F6 v V v
-A3F7 A3D7 A3F7 ï½— ï¼· ï½—
-A3F8 A3D8 A3F8 x X x
-A3F9 A3D9 A3F9 ï½™ ï¼¹ ï½™
-A3FA A3DA A3FA z Z z
-A6A1 A6A1 A6C1 Α Α α
-A6A2 A6A2 A6C2 Β Β β
-A6A3 A6A3 A6C3 Γ Γ γ
-A6A4 A6A4 A6C4 Δ Δ δ
-A6A5 A6A5 A6C5 Ε Ε ε
-A6A6 A6A6 A6C6 Ζ Ζ ζ
-A6A7 A6A7 A6C7 Η Η η
-A6A8 A6A8 A6C8 Θ Θ θ
-A6A9 A6A9 A6C9 Ι Ι ι
-A6AA A6AA A6CA Κ Κ κ
-A6AB A6AB A6CB Λ Λ λ
-A6AC A6AC A6CC Μ Μ μ
-A6AD A6AD A6CD ΠΠν
-A6AE A6AE A6CE Ξ Ξ ξ
-A6AF A6AF A6CF Ο Ο ο
-A6B0 A6B0 A6D0 Π Π π
-A6B1 A6B1 A6D1 Ρ Ρ Ï
-A6B2 A6B2 A6D2 Σ Σ σ
-A6B3 A6B3 A6D3 Τ Τ τ
-A6B4 A6B4 A6D4 Υ Υ υ
-A6B5 A6B5 A6D5 Φ Φ φ
-A6B6 A6B6 A6D6 Χ Χ χ
-A6B7 A6B7 A6D7 Ψ Ψ ψ
-A6B8 A6B8 A6D8 Ω Ω ω
-A6C1 A6A1 A6C1 α Α α
-A6C2 A6A2 A6C2 β Β β
-A6C3 A6A3 A6C3 γ Γ γ
-A6C4 A6A4 A6C4 δ Δ δ
-A6C5 A6A5 A6C5 ε Ε ε
-A6C6 A6A6 A6C6 ζ Ζ ζ
-A6C7 A6A7 A6C7 η Η η
-A6C8 A6A8 A6C8 θ Θ θ
-A6C9 A6A9 A6C9 ι Ι ι
-A6CA A6AA A6CA κ Κ κ
-A6CB A6AB A6CB λ Λ λ
-A6CC A6AC A6CC μ Μ μ
-A6CD A6AD A6CD ν Πν
-A6CE A6AE A6CE ξ Ξ ξ
-A6CF A6AF A6CF ο Ο ο
-A6D0 A6B0 A6D0 π Π π
-A6D1 A6B1 A6D1 Ï Î¡ Ï
-A6D2 A6B2 A6D2 σ Σ σ
-A6D3 A6B3 A6D3 τ Τ τ
-A6D4 A6B4 A6D4 υ Υ υ
-A6D5 A6B5 A6D5 φ Φ φ
-A6D6 A6B6 A6D6 χ Χ χ
-A6D7 A6B7 A6D7 ψ Ψ ψ
-A6D8 A6B8 A6D8 ω Ω ω
-A7A1 A7A1 A7D1 РРа
-A7A2 A7A2 A7D2 Б Б б
-A7A3 A7A3 A7D3 В В в
-A7A4 A7A4 A7D4 Г Г г
-A7A5 A7A5 A7D5 Д Д д
-A7A6 A7A6 A7D6 Е Е е
-A7A7 A7A7 A7D7 Ð Ð Ñ‘
-A7A8 A7A8 A7D8 Ж Ж ж
-A7A9 A7A9 A7D9 З З з
-A7AA A7AA A7DA И И и
-A7AB A7AB A7DB Й Й й
-A7AC A7AC A7DC К К к
-A7AD A7AD A7DD Л Л л
-A7AE A7AE A7DE М М м
-A7AF A7AF A7DF РРн
-A7B0 A7B0 A7E0 О О о
-A7B1 A7B1 A7E1 П П п
-A7B2 A7B2 A7E2 Р Р р
-A7B3 A7B3 A7E3 С С Ñ
-A7B4 A7B4 A7E4 Т Т т
-A7B5 A7B5 A7E5 У У у
-A7B6 A7B6 A7E6 Ф Ф ф
-A7B7 A7B7 A7E7 Х Х х
-A7B8 A7B8 A7E8 Ц Ц ц
-A7B9 A7B9 A7E9 Ч Ч ч
-A7BA A7BA A7EA Ш Ш ш
-A7BB A7BB A7EB Щ Щ щ
-A7BC A7BC A7EC Ъ Ъ ъ
-A7BD A7BD A7ED Ы Ы ы
-A7BE A7BE A7EE Ь Ь ь
-A7BF A7BF A7EF Э Э Ñ
-A7C0 A7C0 A7F0 Ю Ю ю
-A7C1 A7C1 A7F1 Я Я Ñ
-A7D1 A7A1 A7D1 а Ра
-A7D2 A7A2 A7D2 б Б б
-A7D3 A7A3 A7D3 в В в
-A7D4 A7A4 A7D4 г Г г
-A7D5 A7A5 A7D5 д Д д
-A7D6 A7A6 A7D6 е Е е
-A7D7 A7A7 A7D7 Ñ‘ Ð Ñ‘
-A7D8 A7A8 A7D8 ж Ж ж
-A7D9 A7A9 A7D9 з З з
-A7DA A7AA A7DA и И и
-A7DB A7AB A7DB й Й й
-A7DC A7AC A7DC к К к
-A7DD A7AD A7DD л Л л
-A7DE A7AE A7DE м М м
-A7DF A7AF A7DF н Рн
-A7E0 A7B0 A7E0 о О о
-A7E1 A7B1 A7E1 п П п
-A7E2 A7B2 A7E2 р Р р
-A7E3 A7B3 A7E3 Ñ Ð¡ Ñ
-A7E4 A7B4 A7E4 т Т т
-A7E5 A7B5 A7E5 у У у
-A7E6 A7B6 A7E6 ф Ф ф
-A7E7 A7B7 A7E7 х Х х
-A7E8 A7B8 A7E8 ц Ц ц
-A7E9 A7B9 A7E9 ч Ч ч
-A7EA A7BA A7EA ш Ш ш
-A7EB A7BB A7EB щ Щ щ
-A7EC A7BC A7EC ъ Ъ ъ
-A7ED A7BD A7ED ы Ы ы
-A7EE A7BE A7EE ь Ь ь
-A7EF A7BF A7EF Ñ Ð­ Ñ
-A7F0 A7C0 A7F0 ю Ю ю
-A7F1 A7C1 A7F1 Ñ Ð¯ Ñ
-ADB5 ADB5 8FF3F3 â…  â…  â…°
-ADB6 ADB6 8FF3F4 â…¡ â…¡ â…±
-ADB7 ADB7 8FF3F5 â…¢ â…¢ â…²
-ADB8 ADB8 8FF3F6 â…£ â…£ â…³
-ADB9 ADB9 8FF3F7 â…¤ â…¤ â…´
-ADBA ADBA 8FF3F8 â…¥ â…¥ â…µ
-ADBB ADBB 8FF3F9 â…¦ â…¦ â…¶
-ADBC ADBC 8FF3FA â…§ â…§ â…·
-ADBD ADBD 8FF3FB â…¨ â…¨ â…¸
-ADBE ADBE 8FF3FC â…© â…© â…¹
-SELECT * FROM t1
-WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-8FAABC Ģ
-Warnings:
-Warning 1977 Cannot convert 'eucjpms' character 0xA2AF to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2AF to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B0 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B0 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B1 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B1 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D1 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D1 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2DA to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2DA to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2DB to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2DB to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2EB to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2EB to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2EC to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2EC to 'utf8'
-SELECT * FROM t1
-WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-8FA9C3 ð
-8FABB9 ǵ
-Warnings:
-Warning 1977 Cannot convert 'eucjpms' character 0xA2AF to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2AF to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B0 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B0 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B1 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B1 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D1 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D1 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2DA to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2DA to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2DB to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2DB to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2EB to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2EB to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2EC to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2EC to 'utf8'
-#
-# WL#3090 Japanese Character Set adjustments
-# Test sjis->Unicode conversion
-#
-SELECT HEX(a), HEX(CONVERT(a USING utf8)) as b FROM t1
-WHERE a<>'' HAVING b<>'3F' ORDER BY code;
-HEX(a) b
-8EA1 EFBDA1
-8EA2 EFBDA2
-8EA3 EFBDA3
-8EA4 EFBDA4
-8EA5 EFBDA5
-8EA6 EFBDA6
-8EA7 EFBDA7
-8EA8 EFBDA8
-8EA9 EFBDA9
-8EAA EFBDAA
-8EAB EFBDAB
-8EAC EFBDAC
-8EAD EFBDAD
-8EAE EFBDAE
-8EAF EFBDAF
-8EB0 EFBDB0
-8EB1 EFBDB1
-8EB2 EFBDB2
-8EB3 EFBDB3
-8EB4 EFBDB4
-8EB5 EFBDB5
-8EB6 EFBDB6
-8EB7 EFBDB7
-8EB8 EFBDB8
-8EB9 EFBDB9
-8EBA EFBDBA
-8EBB EFBDBB
-8EBC EFBDBC
-8EBD EFBDBD
-8EBE EFBDBE
-8EBF EFBDBF
-8EC0 EFBE80
-8EC1 EFBE81
-8EC2 EFBE82
-8EC3 EFBE83
-8EC4 EFBE84
-8EC5 EFBE85
-8EC6 EFBE86
-8EC7 EFBE87
-8EC8 EFBE88
-8EC9 EFBE89
-8ECA EFBE8A
-8ECB EFBE8B
-8ECC EFBE8C
-8ECD EFBE8D
-8ECE EFBE8E
-8ECF EFBE8F
-8ED0 EFBE90
-8ED1 EFBE91
-8ED2 EFBE92
-8ED3 EFBE93
-8ED4 EFBE94
-8ED5 EFBE95
-8ED6 EFBE96
-8ED7 EFBE97
-8ED8 EFBE98
-8ED9 EFBE99
-8EDA EFBE9A
-8EDB EFBE9B
-8EDC EFBE9C
-8EDD EFBE9D
-8EDE EFBE9E
-8EDF EFBE9F
-8FA2AF CB98
-8FA2B0 CB87
-8FA2B1 C2B8
-8FA2B2 CB99
-8FA2B3 CB9D
-8FA2B4 C2AF
-8FA2B5 CB9B
-8FA2B6 CB9A
-8FA2B7 EFBD9E
-8FA2B8 CE84
-8FA2B9 CE85
-8FA2C2 C2A1
-8FA2C3 EFBFA4
-8FA2C4 C2BF
-8FA2EB C2BA
-8FA2EC C2AA
-8FA2ED C2A9
-8FA2EE C2AE
-8FA2EF E284A2
-8FA2F0 C2A4
-8FA2F1 E28496
-8FA6E1 CE86
-8FA6E2 CE88
-8FA6E3 CE89
-8FA6E4 CE8A
-8FA6E5 CEAA
-8FA6E7 CE8C
-8FA6E9 CE8E
-8FA6EA CEAB
-8FA6EC CE8F
-8FA6F1 CEAC
-8FA6F2 CEAD
-8FA6F3 CEAE
-8FA6F4 CEAF
-8FA6F5 CF8A
-8FA6F6 CE90
-8FA6F7 CF8C
-8FA6F8 CF82
-8FA6F9 CF8D
-8FA6FA CF8B
-8FA6FB CEB0
-8FA6FC CF8E
-8FA7C2 D082
-8FA7C3 D083
-8FA7C4 D084
-8FA7C5 D085
-8FA7C6 D086
-8FA7C7 D087
-8FA7C8 D088
-8FA7C9 D089
-8FA7CA D08A
-8FA7CB D08B
-8FA7CC D08C
-8FA7CD D08E
-8FA7CE D08F
-8FA7F2 D192
-8FA7F3 D193
-8FA7F4 D194
-8FA7F5 D195
-8FA7F6 D196
-8FA7F7 D197
-8FA7F8 D198
-8FA7F9 D199
-8FA7FA D19A
-8FA7FB D19B
-8FA7FC D19C
-8FA7FD D19E
-8FA7FE D19F
-8FA9A1 C386
-8FA9A2 C490
-8FA9A4 C4A6
-8FA9A6 C4B2
-8FA9A8 C581
-8FA9A9 C4BF
-8FA9AB C58A
-8FA9AC C398
-8FA9AD C592
-8FA9AF C5A6
-8FA9B0 C39E
-8FA9C1 C3A6
-8FA9C2 C491
-8FA9C3 C3B0
-8FA9C4 C4A7
-8FA9C5 C4B1
-8FA9C6 C4B3
-8FA9C7 C4B8
-8FA9C8 C582
-8FA9C9 C580
-8FA9CA C589
-8FA9CB C58B
-8FA9CC C3B8
-8FA9CD C593
-8FA9CE C39F
-8FA9CF C5A7
-8FA9D0 C3BE
-8FAAA1 C381
-8FAAA2 C380
-8FAAA3 C384
-8FAAA4 C382
-8FAAA5 C482
-8FAAA6 C78D
-8FAAA7 C480
-8FAAA8 C484
-8FAAA9 C385
-8FAAAA C383
-8FAAAB C486
-8FAAAC C488
-8FAAAD C48C
-8FAAAE C387
-8FAAAF C48A
-8FAAB0 C48E
-8FAAB1 C389
-8FAAB2 C388
-8FAAB3 C38B
-8FAAB4 C38A
-8FAAB5 C49A
-8FAAB6 C496
-8FAAB7 C492
-8FAAB8 C498
-8FAABA C49C
-8FAABB C49E
-8FAABC C4A2
-8FAABD C4A0
-8FAABE C4A4
-8FAABF C38D
-8FAAC0 C38C
-8FAAC1 C38F
-8FAAC2 C38E
-8FAAC3 C78F
-8FAAC4 C4B0
-8FAAC5 C4AA
-8FAAC6 C4AE
-8FAAC7 C4A8
-8FAAC8 C4B4
-8FAAC9 C4B6
-8FAACA C4B9
-8FAACB C4BD
-8FAACC C4BB
-8FAACD C583
-8FAACE C587
-8FAACF C585
-8FAAD0 C391
-8FAAD1 C393
-8FAAD2 C392
-8FAAD3 C396
-8FAAD4 C394
-8FAAD5 C791
-8FAAD6 C590
-8FAAD7 C58C
-8FAAD8 C395
-8FAAD9 C594
-8FAADA C598
-8FAADB C596
-8FAADC C59A
-8FAADD C59C
-8FAADE C5A0
-8FAADF C59E
-8FAAE0 C5A4
-8FAAE1 C5A2
-8FAAE2 C39A
-8FAAE3 C399
-8FAAE4 C39C
-8FAAE5 C39B
-8FAAE6 C5AC
-8FAAE7 C793
-8FAAE8 C5B0
-8FAAE9 C5AA
-8FAAEA C5B2
-8FAAEB C5AE
-8FAAEC C5A8
-8FAAED C797
-8FAAEE C79B
-8FAAEF C799
-8FAAF0 C795
-8FAAF1 C5B4
-8FAAF2 C39D
-8FAAF3 C5B8
-8FAAF4 C5B6
-8FAAF5 C5B9
-8FAAF6 C5BD
-8FAAF7 C5BB
-8FABA1 C3A1
-8FABA2 C3A0
-8FABA3 C3A4
-8FABA4 C3A2
-8FABA5 C483
-8FABA6 C78E
-8FABA7 C481
-8FABA8 C485
-8FABA9 C3A5
-8FABAA C3A3
-8FABAB C487
-8FABAC C489
-8FABAD C48D
-8FABAE C3A7
-8FABAF C48B
-8FABB0 C48F
-8FABB1 C3A9
-8FABB2 C3A8
-8FABB3 C3AB
-8FABB4 C3AA
-8FABB5 C49B
-8FABB6 C497
-8FABB7 C493
-8FABB8 C499
-8FABB9 C7B5
-8FABBA C49D
-8FABBB C49F
-8FABBD C4A1
-8FABBE C4A5
-8FABBF C3AD
-8FABC0 C3AC
-8FABC1 C3AF
-8FABC2 C3AE
-8FABC3 C790
-8FABC5 C4AB
-8FABC6 C4AF
-8FABC7 C4A9
-8FABC8 C4B5
-8FABC9 C4B7
-8FABCA C4BA
-8FABCB C4BE
-8FABCC C4BC
-8FABCD C584
-8FABCE C588
-8FABCF C586
-8FABD0 C3B1
-8FABD1 C3B3
-8FABD2 C3B2
-8FABD3 C3B6
-8FABD4 C3B4
-8FABD5 C792
-8FABD6 C591
-8FABD7 C58D
-8FABD8 C3B5
-8FABD9 C595
-8FABDA C599
-8FABDB C597
-8FABDC C59B
-8FABDD C59D
-8FABDE C5A1
-8FABDF C59F
-8FABE0 C5A5
-8FABE1 C5A3
-8FABE2 C3BA
-8FABE3 C3B9
-8FABE4 C3BC
-8FABE5 C3BB
-8FABE6 C5AD
-8FABE7 C794
-8FABE8 C5B1
-8FABE9 C5AB
-8FABEA C5B3
-8FABEB C5AF
-8FABEC C5A9
-8FABED C798
-8FABEE C79C
-8FABEF C79A
-8FABF0 C796
-8FABF1 C5B5
-8FABF2 C3BD
-8FABF3 C3BF
-8FABF4 C5B7
-8FABF5 C5BA
-8FABF6 C5BE
-8FABF7 C5BC
-8FB0A1 E4B882
-8FB0A2 E4B884
-8FB0A3 E4B885
-8FB0A4 E4B88C
-8FB0A5 E4B892
-8FB0A6 E4B89F
-8FB0A7 E4B8A3
-8FB0A8 E4B8A4
-8FB0A9 E4B8A8
-8FB0AA E4B8AB
-8FB0AB E4B8AE
-8FB0AC E4B8AF
-8FB0AD E4B8B0
-8FB0AE E4B8B5
-8FB0AF E4B980
-8FB0B0 E4B981
-8FB0B1 E4B984
-8FB0B2 E4B987
-8FB0B3 E4B991
-8FB0B4 E4B99A
-8FB0B5 E4B99C
-8FB0B6 E4B9A3
-8FB0B7 E4B9A8
-8FB0B8 E4B9A9
-8FB0B9 E4B9B4
-8FB0BA E4B9B5
-8FB0BB E4B9B9
-8FB0BC E4B9BF
-8FB0BD E4BA8D
-8FB0BE E4BA96
-8FB0BF E4BA97
-8FB0C0 E4BA9D
-8FB0C1 E4BAAF
-8FB0C2 E4BAB9
-8FB0C3 E4BB83
-8FB0C4 E4BB90
-8FB0C5 E4BB9A
-8FB0C6 E4BB9B
-8FB0C7 E4BBA0
-8FB0C8 E4BBA1
-8FB0C9 E4BBA2
-8FB0CA E4BBA8
-8FB0CB E4BBAF
-8FB0CC E4BBB1
-8FB0CD E4BBB3
-8FB0CE E4BBB5
-8FB0CF E4BBBD
-8FB0D0 E4BBBE
-8FB0D1 E4BBBF
-8FB0D2 E4BC80
-8FB0D3 E4BC82
-8FB0D4 E4BC83
-8FB0D5 E4BC88
-8FB0D6 E4BC8B
-8FB0D7 E4BC8C
-8FB0D8 E4BC92
-8FB0D9 E4BC95
-8FB0DA E4BC96
-8FB0DB E4BC97
-8FB0DC E4BC99
-8FB0DD E4BCAE
-8FB0DE E4BCB1
-8FB0DF E4BDA0
-8FB0E0 E4BCB3
-8FB0E1 E4BCB5
-8FB0E2 E4BCB7
-8FB0E3 E4BCB9
-8FB0E4 E4BCBB
-8FB0E5 E4BCBE
-8FB0E6 E4BD80
-8FB0E7 E4BD82
-8FB0E8 E4BD88
-8FB0E9 E4BD89
-8FB0EA E4BD8B
-8FB0EB E4BD8C
-8FB0EC E4BD92
-8FB0ED E4BD94
-8FB0EE E4BD96
-8FB0EF E4BD98
-8FB0F0 E4BD9F
-8FB0F1 E4BDA3
-8FB0F2 E4BDAA
-8FB0F3 E4BDAC
-8FB0F4 E4BDAE
-8FB0F5 E4BDB1
-8FB0F6 E4BDB7
-8FB0F7 E4BDB8
-8FB0F8 E4BDB9
-8FB0F9 E4BDBA
-8FB0FA E4BDBD
-8FB0FB E4BDBE
-8FB0FC E4BE81
-8FB0FD E4BE82
-8FB0FE E4BE84
-8FB1A1 E4BE85
-8FB1A2 E4BE89
-8FB1A3 E4BE8A
-8FB1A4 E4BE8C
-8FB1A5 E4BE8E
-8FB1A6 E4BE90
-8FB1A7 E4BE92
-8FB1A8 E4BE93
-8FB1A9 E4BE94
-8FB1AA E4BE97
-8FB1AB E4BE99
-8FB1AC E4BE9A
-8FB1AD E4BE9E
-8FB1AE E4BE9F
-8FB1AF E4BEB2
-8FB1B0 E4BEB7
-8FB1B1 E4BEB9
-8FB1B2 E4BEBB
-8FB1B3 E4BEBC
-8FB1B4 E4BEBD
-8FB1B5 E4BEBE
-8FB1B6 E4BF80
-8FB1B7 E4BF81
-8FB1B8 E4BF85
-8FB1B9 E4BF86
-8FB1BA E4BF88
-8FB1BB E4BF89
-8FB1BC E4BF8B
-8FB1BD E4BF8C
-8FB1BE E4BF8D
-8FB1BF E4BF8F
-8FB1C0 E4BF92
-8FB1C1 E4BF9C
-8FB1C2 E4BFA0
-8FB1C3 E4BFA2
-8FB1C4 E4BFB0
-8FB1C5 E4BFB2
-8FB1C6 E4BFBC
-8FB1C7 E4BFBD
-8FB1C8 E4BFBF
-8FB1C9 E58080
-8FB1CA E58081
-8FB1CB E58084
-8FB1CC E58087
-8FB1CD E5808A
-8FB1CE E5808C
-8FB1CF E5808E
-8FB1D0 E58090
-8FB1D1 E58093
-8FB1D2 E58097
-8FB1D3 E58098
-8FB1D4 E5809B
-8FB1D5 E5809C
-8FB1D6 E5809D
-8FB1D7 E5809E
-8FB1D8 E580A2
-8FB1D9 E580A7
-8FB1DA E580AE
-8FB1DB E580B0
-8FB1DC E580B2
-8FB1DD E580B3
-8FB1DE E580B5
-8FB1DF E58180
-8FB1E0 E58181
-8FB1E1 E58182
-8FB1E2 E58185
-8FB1E3 E58186
-8FB1E4 E5818A
-8FB1E5 E5818C
-8FB1E6 E5818E
-8FB1E7 E58191
-8FB1E8 E58192
-8FB1E9 E58193
-8FB1EA E58197
-8FB1EB E58199
-8FB1EC E5819F
-8FB1ED E581A0
-8FB1EE E581A2
-8FB1EF E581A3
-8FB1F0 E581A6
-8FB1F1 E581A7
-8FB1F2 E581AA
-8FB1F3 E581AD
-8FB1F4 E581B0
-8FB1F5 E581B1
-8FB1F6 E580BB
-8FB1F7 E58281
-8FB1F8 E58283
-8FB1F9 E58284
-8FB1FA E58286
-8FB1FB E5828A
-8FB1FC E5828E
-8FB1FD E5828F
-8FB1FE E58290
-8FB2A1 E58292
-8FB2A2 E58293
-8FB2A3 E58294
-8FB2A4 E58296
-8FB2A5 E5829B
-8FB2A6 E5829C
-8FB2A7 E5829E
-8FB2A8 E5829F
-8FB2A9 E582A0
-8FB2AA E582A1
-8FB2AB E582A2
-8FB2AC E582AA
-8FB2AD E582AF
-8FB2AE E582B0
-8FB2AF E582B9
-8FB2B0 E582BA
-8FB2B1 E582BD
-8FB2B2 E58380
-8FB2B3 E58383
-8FB2B4 E58384
-8FB2B5 E58387
-8FB2B6 E5838C
-8FB2B7 E5838E
-8FB2B8 E58390
-8FB2B9 E58393
-8FB2BA E58394
-8FB2BB E58398
-8FB2BC E5839C
-8FB2BD E5839D
-8FB2BE E5839F
-8FB2BF E583A2
-8FB2C0 E583A4
-8FB2C1 E583A6
-8FB2C2 E583A8
-8FB2C3 E583A9
-8FB2C4 E583AF
-8FB2C5 E583B1
-8FB2C6 E583B6
-8FB2C7 E583BA
-8FB2C8 E583BE
-8FB2C9 E58483
-8FB2CA E58486
-8FB2CB E58487
-8FB2CC E58488
-8FB2CD E5848B
-8FB2CE E5848C
-8FB2CF E5848D
-8FB2D0 E5848E
-8FB2D1 E583B2
-8FB2D2 E58490
-8FB2D3 E58497
-8FB2D4 E58499
-8FB2D5 E5849B
-8FB2D6 E5849C
-8FB2D7 E5849D
-8FB2D8 E5849E
-8FB2D9 E584A3
-8FB2DA E584A7
-8FB2DB E584A8
-8FB2DC E584AC
-8FB2DD E584AD
-8FB2DE E584AF
-8FB2DF E584B1
-8FB2E0 E584B3
-8FB2E1 E584B4
-8FB2E2 E584B5
-8FB2E3 E584B8
-8FB2E4 E584B9
-8FB2E5 E58582
-8FB2E6 E5858A
-8FB2E7 E5858F
-8FB2E8 E58593
-8FB2E9 E58595
-8FB2EA E58597
-8FB2EB E58598
-8FB2EC E5859F
-8FB2ED E585A4
-8FB2EE E585A6
-8FB2EF E585BE
-8FB2F0 E58683
-8FB2F1 E58684
-8FB2F2 E5868B
-8FB2F3 E5868E
-8FB2F4 E58698
-8FB2F5 E5869D
-8FB2F6 E586A1
-8FB2F7 E586A3
-8FB2F8 E586AD
-8FB2F9 E586B8
-8FB2FA E586BA
-8FB2FB E586BC
-8FB2FC E586BE
-8FB2FD E586BF
-8FB2FE E58782
-8FB3A1 E58788
-8FB3A2 E5878F
-8FB3A3 E58791
-8FB3A4 E58792
-8FB3A5 E58793
-8FB3A6 E58795
-8FB3A7 E58798
-8FB3A8 E5879E
-8FB3A9 E587A2
-8FB3AA E587A5
-8FB3AB E587AE
-8FB3AC E587B2
-8FB3AD E587B3
-8FB3AE E587B4
-8FB3AF E587B7
-8FB3B0 E58881
-8FB3B1 E58882
-8FB3B2 E58885
-8FB3B3 E58892
-8FB3B4 E58893
-8FB3B5 E58895
-8FB3B6 E58896
-8FB3B7 E58898
-8FB3B8 E588A2
-8FB3B9 E588A8
-8FB3BA E588B1
-8FB3BB E588B2
-8FB3BC E588B5
-8FB3BD E588BC
-8FB3BE E58985
-8FB3BF E58989
-8FB3C0 E58995
-8FB3C1 E58997
-8FB3C2 E58998
-8FB3C3 E5899A
-8FB3C4 E5899C
-8FB3C5 E5899F
-8FB3C6 E589A0
-8FB3C7 E589A1
-8FB3C8 E589A6
-8FB3C9 E589AE
-8FB3CA E589B7
-8FB3CB E589B8
-8FB3CC E589B9
-8FB3CD E58A80
-8FB3CE E58A82
-8FB3CF E58A85
-8FB3D0 E58A8A
-8FB3D1 E58A8C
-8FB3D2 E58A93
-8FB3D3 E58A95
-8FB3D4 E58A96
-8FB3D5 E58A97
-8FB3D6 E58A98
-8FB3D7 E58A9A
-8FB3D8 E58A9C
-8FB3D9 E58AA4
-8FB3DA E58AA5
-8FB3DB E58AA6
-8FB3DC E58AA7
-8FB3DD E58AAF
-8FB3DE E58AB0
-8FB3DF E58AB6
-8FB3E0 E58AB7
-8FB3E1 E58AB8
-8FB3E2 E58ABA
-8FB3E3 E58ABB
-8FB3E4 E58ABD
-8FB3E5 E58B80
-8FB3E6 E58B84
-8FB3E7 E58B86
-8FB3E8 E58B88
-8FB3E9 E58B8C
-8FB3EA E58B8F
-8FB3EB E58B91
-8FB3EC E58B94
-8FB3ED E58B96
-8FB3EE E58B9B
-8FB3EF E58B9C
-8FB3F0 E58BA1
-8FB3F1 E58BA5
-8FB3F2 E58BA8
-8FB3F3 E58BA9
-8FB3F4 E58BAA
-8FB3F5 E58BAC
-8FB3F6 E58BB0
-8FB3F7 E58BB1
-8FB3F8 E58BB4
-8FB3F9 E58BB6
-8FB3FA E58BB7
-8FB3FB E58C80
-8FB3FC E58C83
-8FB3FD E58C8A
-8FB3FE E58C8B
-8FB4A1 E58C8C
-8FB4A2 E58C91
-8FB4A3 E58C93
-8FB4A4 E58C98
-8FB4A5 E58C9B
-8FB4A6 E58C9C
-8FB4A7 E58C9E
-8FB4A8 E58C9F
-8FB4A9 E58CA5
-8FB4AA E58CA7
-8FB4AB E58CA8
-8FB4AC E58CA9
-8FB4AD E58CAB
-8FB4AE E58CAC
-8FB4AF E58CAD
-8FB4B0 E58CB0
-8FB4B1 E58CB2
-8FB4B2 E58CB5
-8FB4B3 E58CBC
-8FB4B4 E58CBD
-8FB4B5 E58CBE
-8FB4B6 E58D82
-8FB4B7 E58D8C
-8FB4B8 E58D8B
-8FB4B9 E58D99
-8FB4BA E58D9B
-8FB4BB E58DA1
-8FB4BC E58DA3
-8FB4BD E58DA5
-8FB4BE E58DAC
-8FB4BF E58DAD
-8FB4C0 E58DB2
-8FB4C1 E58DB9
-8FB4C2 E58DBE
-8FB4C3 E58E83
-8FB4C4 E58E87
-8FB4C5 E58E88
-8FB4C6 E58E8E
-8FB4C7 E58E93
-8FB4C8 E58E94
-8FB4C9 E58E99
-8FB4CA E58E9D
-8FB4CB E58EA1
-8FB4CC E58EA4
-8FB4CD E58EAA
-8FB4CE E58EAB
-8FB4CF E58EAF
-8FB4D0 E58EB2
-8FB4D1 E58EB4
-8FB4D2 E58EB5
-8FB4D3 E58EB7
-8FB4D4 E58EB8
-8FB4D5 E58EBA
-8FB4D6 E58EBD
-8FB4D7 E58F80
-8FB4D8 E58F85
-8FB4D9 E58F8F
-8FB4DA E58F92
-8FB4DB E58F93
-8FB4DC E58F95
-8FB4DD E58F9A
-8FB4DE E58F9D
-8FB4DF E58F9E
-8FB4E0 E58FA0
-8FB4E1 E58FA6
-8FB4E2 E58FA7
-8FB4E3 E58FB5
-8FB4E4 E59082
-8FB4E5 E59093
-8FB4E6 E5909A
-8FB4E7 E590A1
-8FB4E8 E590A7
-8FB4E9 E590A8
-8FB4EA E590AA
-8FB4EB E590AF
-8FB4EC E590B1
-8FB4ED E590B4
-8FB4EE E590B5
-8FB4EF E59183
-8FB4F0 E59184
-8FB4F1 E59187
-8FB4F2 E5918D
-8FB4F3 E5918F
-8FB4F4 E5919E
-8FB4F5 E591A2
-8FB4F6 E591A4
-8FB4F7 E591A6
-8FB4F8 E591A7
-8FB4F9 E591A9
-8FB4FA E591AB
-8FB4FB E591AD
-8FB4FC E591AE
-8FB4FD E591B4
-8FB4FE E591BF
-8FB5A1 E59281
-8FB5A2 E59283
-8FB5A3 E59285
-8FB5A4 E59288
-8FB5A5 E59289
-8FB5A6 E5928D
-8FB5A7 E59291
-8FB5A8 E59295
-8FB5A9 E59296
-8FB5AA E5929C
-8FB5AB E5929F
-8FB5AC E592A1
-8FB5AD E592A6
-8FB5AE E592A7
-8FB5AF E592A9
-8FB5B0 E592AA
-8FB5B1 E592AD
-8FB5B2 E592AE
-8FB5B3 E592B1
-8FB5B4 E592B7
-8FB5B5 E592B9
-8FB5B6 E592BA
-8FB5B7 E592BB
-8FB5B8 E592BF
-8FB5B9 E59386
-8FB5BA E5938A
-8FB5BB E5938D
-8FB5BC E5938E
-8FB5BD E593A0
-8FB5BE E593AA
-8FB5BF E593AC
-8FB5C0 E593AF
-8FB5C1 E593B6
-8FB5C2 E593BC
-8FB5C3 E593BE
-8FB5C4 E593BF
-8FB5C5 E59480
-8FB5C6 E59481
-8FB5C7 E59485
-8FB5C8 E59488
-8FB5C9 E59489
-8FB5CA E5948C
-8FB5CB E5948D
-8FB5CC E5948E
-8FB5CD E59495
-8FB5CE E594AA
-8FB5CF E594AB
-8FB5D0 E594B2
-8FB5D1 E594B5
-8FB5D2 E594B6
-8FB5D3 E594BB
-8FB5D4 E594BC
-8FB5D5 E594BD
-8FB5D6 E59581
-8FB5D7 E59587
-8FB5D8 E59589
-8FB5D9 E5958A
-8FB5DA E5958D
-8FB5DB E59590
-8FB5DC E59591
-8FB5DD E59598
-8FB5DE E5959A
-8FB5DF E5959B
-8FB5E0 E5959E
-8FB5E1 E595A0
-8FB5E2 E595A1
-8FB5E3 E595A4
-8FB5E4 E595A6
-8FB5E5 E595BF
-8FB5E6 E59681
-8FB5E7 E59682
-8FB5E8 E59686
-8FB5E9 E59688
-8FB5EA E5968E
-8FB5EB E5968F
-8FB5EC E59691
-8FB5ED E59692
-8FB5EE E59693
-8FB5EF E59694
-8FB5F0 E59697
-8FB5F1 E596A3
-8FB5F2 E596A4
-8FB5F3 E596AD
-8FB5F4 E596B2
-8FB5F5 E596BF
-8FB5F6 E59781
-8FB5F7 E59783
-8FB5F8 E59786
-8FB5F9 E59789
-8FB5FA E5978B
-8FB5FB E5978C
-8FB5FC E5978E
-8FB5FD E59791
-8FB5FE E59792
-8FB6A1 E59793
-8FB6A2 E59797
-8FB6A3 E59798
-8FB6A4 E5979B
-8FB6A5 E5979E
-8FB6A6 E597A2
-8FB6A7 E597A9
-8FB6A8 E597B6
-8FB6A9 E597BF
-8FB6AA E59885
-8FB6AB E59888
-8FB6AC E5988A
-8FB6AD E5988D
-8FB6AE E5988E
-8FB6AF E5988F
-8FB6B0 E59890
-8FB6B1 E59891
-8FB6B2 E59892
-8FB6B3 E59899
-8FB6B4 E598AC
-8FB6B5 E598B0
-8FB6B6 E598B3
-8FB6B7 E598B5
-8FB6B8 E598B7
-8FB6B9 E598B9
-8FB6BA E598BB
-8FB6BB E598BC
-8FB6BC E598BD
-8FB6BD E598BF
-8FB6BE E59980
-8FB6BF E59981
-8FB6C0 E59983
-8FB6C1 E59984
-8FB6C2 E59986
-8FB6C3 E59989
-8FB6C4 E5998B
-8FB6C5 E5998D
-8FB6C6 E5998F
-8FB6C7 E59994
-8FB6C8 E5999E
-8FB6C9 E599A0
-8FB6CA E599A1
-8FB6CB E599A2
-8FB6CC E599A3
-8FB6CD E599A6
-8FB6CE E599A9
-8FB6CF E599AD
-8FB6D0 E599AF
-8FB6D1 E599B1
-8FB6D2 E599B2
-8FB6D3 E599B5
-8FB6D4 E59A84
-8FB6D5 E59A85
-8FB6D6 E59A88
-8FB6D7 E59A8B
-8FB6D8 E59A8C
-8FB6D9 E59A95
-8FB6DA E59A99
-8FB6DB E59A9A
-8FB6DC E59A9D
-8FB6DD E59A9E
-8FB6DE E59A9F
-8FB6DF E59AA6
-8FB6E0 E59AA7
-8FB6E1 E59AA8
-8FB6E2 E59AA9
-8FB6E3 E59AAB
-8FB6E4 E59AAC
-8FB6E5 E59AAD
-8FB6E6 E59AB1
-8FB6E7 E59AB3
-8FB6E8 E59AB7
-8FB6E9 E59ABE
-8FB6EA E59B85
-8FB6EB E59B89
-8FB6EC E59B8A
-8FB6ED E59B8B
-8FB6EE E59B8F
-8FB6EF E59B90
-8FB6F0 E59B8C
-8FB6F1 E59B8D
-8FB6F2 E59B99
-8FB6F3 E59B9C
-8FB6F4 E59B9D
-8FB6F5 E59B9F
-8FB6F6 E59BA1
-8FB6F7 E59BA4
-8FB6F8 E59BA5
-8FB6F9 E59BA6
-8FB6FA E59BA7
-8FB6FB E59BA8
-8FB6FC E59BB1
-8FB6FD E59BAB
-8FB6FE E59BAD
-8FB7A1 E59BB6
-8FB7A2 E59BB7
-8FB7A3 E59C81
-8FB7A4 E59C82
-8FB7A5 E59C87
-8FB7A6 E59C8A
-8FB7A7 E59C8C
-8FB7A8 E59C91
-8FB7A9 E59C95
-8FB7AA E59C9A
-8FB7AB E59C9B
-8FB7AC E59C9D
-8FB7AD E59CA0
-8FB7AE E59CA2
-8FB7AF E59CA3
-8FB7B0 E59CA4
-8FB7B1 E59CA5
-8FB7B2 E59CA9
-8FB7B3 E59CAA
-8FB7B4 E59CAC
-8FB7B5 E59CAE
-8FB7B6 E59CAF
-8FB7B7 E59CB3
-8FB7B8 E59CB4
-8FB7B9 E59CBD
-8FB7BA E59CBE
-8FB7BB E59CBF
-8FB7BC E59D85
-8FB7BD E59D86
-8FB7BE E59D8C
-8FB7BF E59D8D
-8FB7C0 E59D92
-8FB7C1 E59DA2
-8FB7C2 E59DA5
-8FB7C3 E59DA7
-8FB7C4 E59DA8
-8FB7C5 E59DAB
-8FB7C6 E59DAD
-8FB7C7 E59DAE
-8FB7C8 E59DAF
-8FB7C9 E59DB0
-8FB7CA E59DB1
-8FB7CB E59DB3
-8FB7CC E59DB4
-8FB7CD E59DB5
-8FB7CE E59DB7
-8FB7CF E59DB9
-8FB7D0 E59DBA
-8FB7D1 E59DBB
-8FB7D2 E59DBC
-8FB7D3 E59DBE
-8FB7D4 E59E81
-8FB7D5 E59E83
-8FB7D6 E59E8C
-8FB7D7 E59E94
-8FB7D8 E59E97
-8FB7D9 E59E99
-8FB7DA E59E9A
-8FB7DB E59E9C
-8FB7DC E59E9D
-8FB7DD E59E9E
-8FB7DE E59E9F
-8FB7DF E59EA1
-8FB7E0 E59E95
-8FB7E1 E59EA7
-8FB7E2 E59EA8
-8FB7E3 E59EA9
-8FB7E4 E59EAC
-8FB7E5 E59EB8
-8FB7E6 E59EBD
-8FB7E7 E59F87
-8FB7E8 E59F88
-8FB7E9 E59F8C
-8FB7EA E59F8F
-8FB7EB E59F95
-8FB7EC E59F9D
-8FB7ED E59F9E
-8FB7EE E59FA4
-8FB7EF E59FA6
-8FB7F0 E59FA7
-8FB7F1 E59FA9
-8FB7F2 E59FAD
-8FB7F3 E59FB0
-8FB7F4 E59FB5
-8FB7F5 E59FB6
-8FB7F6 E59FB8
-8FB7F7 E59FBD
-8FB7F8 E59FBE
-8FB7F9 E59FBF
-8FB7FA E5A083
-8FB7FB E5A084
-8FB7FC E5A088
-8FB7FD E5A089
-8FB7FE E59FA1
-8FB8A1 E5A08C
-8FB8A2 E5A08D
-8FB8A3 E5A09B
-8FB8A4 E5A09E
-8FB8A5 E5A09F
-8FB8A6 E5A0A0
-8FB8A7 E5A0A6
-8FB8A8 E5A0A7
-8FB8A9 E5A0AD
-8FB8AA E5A0B2
-8FB8AB E5A0B9
-8FB8AC E5A0BF
-8FB8AD E5A189
-8FB8AE E5A18C
-8FB8AF E5A18D
-8FB8B0 E5A18F
-8FB8B1 E5A190
-8FB8B2 E5A195
-8FB8B3 E5A19F
-8FB8B4 E5A1A1
-8FB8B5 E5A1A4
-8FB8B6 E5A1A7
-8FB8B7 E5A1A8
-8FB8B8 E5A1B8
-8FB8B9 E5A1BC
-8FB8BA E5A1BF
-8FB8BB E5A280
-8FB8BC E5A281
-8FB8BD E5A287
-8FB8BE E5A288
-8FB8BF E5A289
-8FB8C0 E5A28A
-8FB8C1 E5A28C
-8FB8C2 E5A28D
-8FB8C3 E5A28F
-8FB8C4 E5A290
-8FB8C5 E5A294
-8FB8C6 E5A296
-8FB8C7 E5A29D
-8FB8C8 E5A2A0
-8FB8C9 E5A2A1
-8FB8CA E5A2A2
-8FB8CB E5A2A6
-8FB8CC E5A2A9
-8FB8CD E5A2B1
-8FB8CE E5A2B2
-8FB8CF E5A384
-8FB8D0 E5A2BC
-8FB8D1 E5A382
-8FB8D2 E5A388
-8FB8D3 E5A38D
-8FB8D4 E5A38E
-8FB8D5 E5A390
-8FB8D6 E5A392
-8FB8D7 E5A394
-8FB8D8 E5A396
-8FB8D9 E5A39A
-8FB8DA E5A39D
-8FB8DB E5A3A1
-8FB8DC E5A3A2
-8FB8DD E5A3A9
-8FB8DE E5A3B3
-8FB8DF E5A485
-8FB8E0 E5A486
-8FB8E1 E5A48B
-8FB8E2 E5A48C
-8FB8E3 E5A492
-8FB8E4 E5A493
-8FB8E5 E5A494
-8FB8E6 E89981
-8FB8E7 E5A49D
-8FB8E8 E5A4A1
-8FB8E9 E5A4A3
-8FB8EA E5A4A4
-8FB8EB E5A4A8
-8FB8EC E5A4AF
-8FB8ED E5A4B0
-8FB8EE E5A4B3
-8FB8EF E5A4B5
-8FB8F0 E5A4B6
-8FB8F1 E5A4BF
-8FB8F2 E5A583
-8FB8F3 E5A586
-8FB8F4 E5A592
-8FB8F5 E5A593
-8FB8F6 E5A599
-8FB8F7 E5A59B
-8FB8F8 E5A59D
-8FB8F9 E5A59E
-8FB8FA E5A59F
-8FB8FB E5A5A1
-8FB8FC E5A5A3
-8FB8FD E5A5AB
-8FB8FE E5A5AD
-8FB9A1 E5A5AF
-8FB9A2 E5A5B2
-8FB9A3 E5A5B5
-8FB9A4 E5A5B6
-8FB9A5 E5A5B9
-8FB9A6 E5A5BB
-8FB9A7 E5A5BC
-8FB9A8 E5A68B
-8FB9A9 E5A68C
-8FB9AA E5A68E
-8FB9AB E5A692
-8FB9AC E5A695
-8FB9AD E5A697
-8FB9AE E5A69F
-8FB9AF E5A6A4
-8FB9B0 E5A6A7
-8FB9B1 E5A6AD
-8FB9B2 E5A6AE
-8FB9B3 E5A6AF
-8FB9B4 E5A6B0
-8FB9B5 E5A6B3
-8FB9B6 E5A6B7
-8FB9B7 E5A6BA
-8FB9B8 E5A6BC
-8FB9B9 E5A781
-8FB9BA E5A783
-8FB9BB E5A784
-8FB9BC E5A788
-8FB9BD E5A78A
-8FB9BE E5A78D
-8FB9BF E5A792
-8FB9C0 E5A79D
-8FB9C1 E5A79E
-8FB9C2 E5A79F
-8FB9C3 E5A7A3
-8FB9C4 E5A7A4
-8FB9C5 E5A7A7
-8FB9C6 E5A7AE
-8FB9C7 E5A7AF
-8FB9C8 E5A7B1
-8FB9C9 E5A7B2
-8FB9CA E5A7B4
-8FB9CB E5A7B7
-8FB9CC E5A880
-8FB9CD E5A884
-8FB9CE E5A88C
-8FB9CF E5A88D
-8FB9D0 E5A88E
-8FB9D1 E5A892
-8FB9D2 E5A893
-8FB9D3 E5A89E
-8FB9D4 E5A8A3
-8FB9D5 E5A8A4
-8FB9D6 E5A8A7
-8FB9D7 E5A8A8
-8FB9D8 E5A8AA
-8FB9D9 E5A8AD
-8FB9DA E5A8B0
-8FB9DB E5A984
-8FB9DC E5A985
-8FB9DD E5A987
-8FB9DE E5A988
-8FB9DF E5A98C
-8FB9E0 E5A990
-8FB9E1 E5A995
-8FB9E2 E5A99E
-8FB9E3 E5A9A3
-8FB9E4 E5A9A5
-8FB9E5 E5A9A7
-8FB9E6 E5A9AD
-8FB9E7 E5A9B7
-8FB9E8 E5A9BA
-8FB9E9 E5A9BB
-8FB9EA E5A9BE
-8FB9EB E5AA8B
-8FB9EC E5AA90
-8FB9ED E5AA93
-8FB9EE E5AA96
-8FB9EF E5AA99
-8FB9F0 E5AA9C
-8FB9F1 E5AA9E
-8FB9F2 E5AA9F
-8FB9F3 E5AAA0
-8FB9F4 E5AAA2
-8FB9F5 E5AAA7
-8FB9F6 E5AAAC
-8FB9F7 E5AAB1
-8FB9F8 E5AAB2
-8FB9F9 E5AAB3
-8FB9FA E5AAB5
-8FB9FB E5AAB8
-8FB9FC E5AABA
-8FB9FD E5AABB
-8FB9FE E5AABF
-8FBAA1 E5AB84
-8FBAA2 E5AB86
-8FBAA3 E5AB88
-8FBAA4 E5AB8F
-8FBAA5 E5AB9A
-8FBAA6 E5AB9C
-8FBAA7 E5ABA0
-8FBAA8 E5ABA5
-8FBAA9 E5ABAA
-8FBAAA E5ABAE
-8FBAAB E5ABB5
-8FBAAC E5ABB6
-8FBAAD E5ABBD
-8FBAAE E5AC80
-8FBAAF E5AC81
-8FBAB0 E5AC88
-8FBAB1 E5AC97
-8FBAB2 E5ACB4
-8FBAB3 E5AC99
-8FBAB4 E5AC9B
-8FBAB5 E5AC9D
-8FBAB6 E5ACA1
-8FBAB7 E5ACA5
-8FBAB8 E5ACAD
-8FBAB9 E5ACB8
-8FBABA E5AD81
-8FBABB E5AD8B
-8FBABC E5AD8C
-8FBABD E5AD92
-8FBABE E5AD96
-8FBABF E5AD9E
-8FBAC0 E5ADA8
-8FBAC1 E5ADAE
-8FBAC2 E5ADAF
-8FBAC3 E5ADBC
-8FBAC4 E5ADBD
-8FBAC5 E5ADBE
-8FBAC6 E5ADBF
-8FBAC7 E5AE81
-8FBAC8 E5AE84
-8FBAC9 E5AE86
-8FBACA E5AE8A
-8FBACB E5AE8E
-8FBACC E5AE90
-8FBACD E5AE91
-8FBACE E5AE93
-8FBACF E5AE94
-8FBAD0 E5AE96
-8FBAD1 E5AEA8
-8FBAD2 E5AEA9
-8FBAD3 E5AEAC
-8FBAD4 E5AEAD
-8FBAD5 E5AEAF
-8FBAD6 E5AEB1
-8FBAD7 E5AEB2
-8FBAD8 E5AEB7
-8FBAD9 E5AEBA
-8FBADA E5AEBC
-8FBADB E5AF80
-8FBADC E5AF81
-8FBADD E5AF8D
-8FBADE E5AF8F
-8FBADF E5AF96
-8FBAE0 E5AF97
-8FBAE1 E5AF98
-8FBAE2 E5AF99
-8FBAE3 E5AF9A
-8FBAE4 E5AFA0
-8FBAE5 E5AFAF
-8FBAE6 E5AFB1
-8FBAE7 E5AFB4
-8FBAE8 E5AFBD
-8FBAE9 E5B08C
-8FBAEA E5B097
-8FBAEB E5B09E
-8FBAEC E5B09F
-8FBAED E5B0A3
-8FBAEE E5B0A6
-8FBAEF E5B0A9
-8FBAF0 E5B0AB
-8FBAF1 E5B0AC
-8FBAF2 E5B0AE
-8FBAF3 E5B0B0
-8FBAF4 E5B0B2
-8FBAF5 E5B0B5
-8FBAF6 E5B0B6
-8FBAF7 E5B199
-8FBAF8 E5B19A
-8FBAF9 E5B19C
-8FBAFA E5B1A2
-8FBAFB E5B1A3
-8FBAFC E5B1A7
-8FBAFD E5B1A8
-8FBAFE E5B1A9
-8FBBA1 E5B1AD
-8FBBA2 E5B1B0
-8FBBA3 E5B1B4
-8FBBA4 E5B1B5
-8FBBA5 E5B1BA
-8FBBA6 E5B1BB
-8FBBA7 E5B1BC
-8FBBA8 E5B1BD
-8FBBA9 E5B287
-8FBBAA E5B288
-8FBBAB E5B28A
-8FBBAC E5B28F
-8FBBAD E5B292
-8FBBAE E5B29D
-8FBBAF E5B29F
-8FBBB0 E5B2A0
-8FBBB1 E5B2A2
-8FBBB2 E5B2A3
-8FBBB3 E5B2A6
-8FBBB4 E5B2AA
-8FBBB5 E5B2B2
-8FBBB6 E5B2B4
-8FBBB7 E5B2B5
-8FBBB8 E5B2BA
-8FBBB9 E5B389
-8FBBBA E5B38B
-8FBBBB E5B392
-8FBBBC E5B39D
-8FBBBD E5B397
-8FBBBE E5B3AE
-8FBBBF E5B3B1
-8FBBC0 E5B3B2
-8FBBC1 E5B3B4
-8FBBC2 E5B481
-8FBBC3 E5B486
-8FBBC4 E5B48D
-8FBBC5 E5B492
-8FBBC6 E5B4AB
-8FBBC7 E5B4A3
-8FBBC8 E5B4A4
-8FBBC9 E5B4A6
-8FBBCA E5B4A7
-8FBBCB E5B4B1
-8FBBCC E5B4B4
-8FBBCD E5B4B9
-8FBBCE E5B4BD
-8FBBCF E5B4BF
-8FBBD0 E5B582
-8FBBD1 E5B583
-8FBBD2 E5B586
-8FBBD3 E5B588
-8FBBD4 E5B595
-8FBBD5 E5B591
-8FBBD6 E5B599
-8FBBD7 E5B58A
-8FBBD8 E5B59F
-8FBBD9 E5B5A0
-8FBBDA E5B5A1
-8FBBDB E5B5A2
-8FBBDC E5B5A4
-8FBBDD E5B5AA
-8FBBDE E5B5AD
-8FBBDF E5B5B0
-8FBBE0 E5B5B9
-8FBBE1 E5B5BA
-8FBBE2 E5B5BE
-8FBBE3 E5B5BF
-8FBBE4 E5B681
-8FBBE5 E5B683
-8FBBE6 E5B688
-8FBBE7 E5B68A
-8FBBE8 E5B692
-8FBBE9 E5B693
-8FBBEA E5B694
-8FBBEB E5B695
-8FBBEC E5B699
-8FBBED E5B69B
-8FBBEE E5B69F
-8FBBEF E5B6A0
-8FBBF0 E5B6A7
-8FBBF1 E5B6AB
-8FBBF2 E5B6B0
-8FBBF3 E5B6B4
-8FBBF4 E5B6B8
-8FBBF5 E5B6B9
-8FBBF6 E5B783
-8FBBF7 E5B787
-8FBBF8 E5B78B
-8FBBF9 E5B790
-8FBBFA E5B78E
-8FBBFB E5B798
-8FBBFC E5B799
-8FBBFD E5B7A0
-8FBBFE E5B7A4
-8FBCA1 E5B7A9
-8FBCA2 E5B7B8
-8FBCA3 E5B7B9
-8FBCA4 E5B880
-8FBCA5 E5B887
-8FBCA6 E5B88D
-8FBCA7 E5B892
-8FBCA8 E5B894
-8FBCA9 E5B895
-8FBCAA E5B898
-8FBCAB E5B89F
-8FBCAC E5B8A0
-8FBCAD E5B8AE
-8FBCAE E5B8A8
-8FBCAF E5B8B2
-8FBCB0 E5B8B5
-8FBCB1 E5B8BE
-8FBCB2 E5B98B
-8FBCB3 E5B990
-8FBCB4 E5B989
-8FBCB5 E5B991
-8FBCB6 E5B996
-8FBCB7 E5B998
-8FBCB8 E5B99B
-8FBCB9 E5B99C
-8FBCBA E5B99E
-8FBCBB E5B9A8
-8FBCBC E5B9AA
-8FBCBD E5B9AB
-8FBCBE E5B9AC
-8FBCBF E5B9AD
-8FBCC0 E5B9AE
-8FBCC1 E5B9B0
-8FBCC2 E5BA80
-8FBCC3 E5BA8B
-8FBCC4 E5BA8E
-8FBCC5 E5BAA2
-8FBCC6 E5BAA4
-8FBCC7 E5BAA5
-8FBCC8 E5BAA8
-8FBCC9 E5BAAA
-8FBCCA E5BAAC
-8FBCCB E5BAB1
-8FBCCC E5BAB3
-8FBCCD E5BABD
-8FBCCE E5BABE
-8FBCCF E5BABF
-8FBCD0 E5BB86
-8FBCD1 E5BB8C
-8FBCD2 E5BB8B
-8FBCD3 E5BB8E
-8FBCD4 E5BB91
-8FBCD5 E5BB92
-8FBCD6 E5BB94
-8FBCD7 E5BB95
-8FBCD8 E5BB9C
-8FBCD9 E5BB9E
-8FBCDA E5BBA5
-8FBCDB E5BBAB
-8FBCDC E5BC82
-8FBCDD E5BC86
-8FBCDE E5BC87
-8FBCDF E5BC88
-8FBCE0 E5BC8E
-8FBCE1 E5BC99
-8FBCE2 E5BC9C
-8FBCE3 E5BC9D
-8FBCE4 E5BCA1
-8FBCE5 E5BCA2
-8FBCE6 E5BCA3
-8FBCE7 E5BCA4
-8FBCE8 E5BCA8
-8FBCE9 E5BCAB
-8FBCEA E5BCAC
-8FBCEB E5BCAE
-8FBCEC E5BCB0
-8FBCED E5BCB4
-8FBCEE E5BCB6
-8FBCEF E5BCBB
-8FBCF0 E5BCBD
-8FBCF1 E5BCBF
-8FBCF2 E5BD80
-8FBCF3 E5BD84
-8FBCF4 E5BD85
-8FBCF5 E5BD87
-8FBCF6 E5BD8D
-8FBCF7 E5BD90
-8FBCF8 E5BD94
-8FBCF9 E5BD98
-8FBCFA E5BD9B
-8FBCFB E5BDA0
-8FBCFC E5BDA3
-8FBCFD E5BDA4
-8FBCFE E5BDA7
-8FBDA1 E5BDAF
-8FBDA2 E5BDB2
-8FBDA3 E5BDB4
-8FBDA4 E5BDB5
-8FBDA5 E5BDB8
-8FBDA6 E5BDBA
-8FBDA7 E5BDBD
-8FBDA8 E5BDBE
-8FBDA9 E5BE89
-8FBDAA E5BE8D
-8FBDAB E5BE8F
-8FBDAC E5BE96
-8FBDAD E5BE9C
-8FBDAE E5BE9D
-8FBDAF E5BEA2
-8FBDB0 E5BEA7
-8FBDB1 E5BEAB
-8FBDB2 E5BEA4
-8FBDB3 E5BEAC
-8FBDB4 E5BEAF
-8FBDB5 E5BEB0
-8FBDB6 E5BEB1
-8FBDB7 E5BEB8
-8FBDB8 E5BF84
-8FBDB9 E5BF87
-8FBDBA E5BF88
-8FBDBB E5BF89
-8FBDBC E5BF8B
-8FBDBD E5BF90
-8FBDBE E5BF91
-8FBDBF E5BF92
-8FBDC0 E5BF93
-8FBDC1 E5BF94
-8FBDC2 E5BF9E
-8FBDC3 E5BFA1
-8FBDC4 E5BFA2
-8FBDC5 E5BFA8
-8FBDC6 E5BFA9
-8FBDC7 E5BFAA
-8FBDC8 E5BFAC
-8FBDC9 E5BFAD
-8FBDCA E5BFAE
-8FBDCB E5BFAF
-8FBDCC E5BFB2
-8FBDCD E5BFB3
-8FBDCE E5BFB6
-8FBDCF E5BFBA
-8FBDD0 E5BFBC
-8FBDD1 E68087
-8FBDD2 E6808A
-8FBDD3 E6808D
-8FBDD4 E68093
-8FBDD5 E68094
-8FBDD6 E68097
-8FBDD7 E68098
-8FBDD8 E6809A
-8FBDD9 E6809F
-8FBDDA E680A4
-8FBDDB E680AD
-8FBDDC E680B3
-8FBDDD E680B5
-8FBDDE E68180
-8FBDDF E68187
-8FBDE0 E68188
-8FBDE1 E68189
-8FBDE2 E6818C
-8FBDE3 E68191
-8FBDE4 E68194
-8FBDE5 E68196
-8FBDE6 E68197
-8FBDE7 E6819D
-8FBDE8 E681A1
-8FBDE9 E681A7
-8FBDEA E681B1
-8FBDEB E681BE
-8FBDEC E681BF
-8FBDED E68282
-8FBDEE E68286
-8FBDEF E68288
-8FBDF0 E6828A
-8FBDF1 E6828E
-8FBDF2 E68291
-8FBDF3 E68293
-8FBDF4 E68295
-8FBDF5 E68298
-8FBDF6 E6829D
-8FBDF7 E6829E
-8FBDF8 E682A2
-8FBDF9 E682A4
-8FBDFA E682A5
-8FBDFB E682A8
-8FBDFC E682B0
-8FBDFD E682B1
-8FBDFE E682B7
-8FBEA1 E682BB
-8FBEA2 E682BE
-8FBEA3 E68382
-8FBEA4 E68384
-8FBEA5 E68388
-8FBEA6 E68389
-8FBEA7 E6838A
-8FBEA8 E6838B
-8FBEA9 E6838E
-8FBEAA E6838F
-8FBEAB E68394
-8FBEAC E68395
-8FBEAD E68399
-8FBEAE E6839B
-8FBEAF E6839D
-8FBEB0 E6839E
-8FBEB1 E683A2
-8FBEB2 E683A5
-8FBEB3 E683B2
-8FBEB4 E683B5
-8FBEB5 E683B8
-8FBEB6 E683BC
-8FBEB7 E683BD
-8FBEB8 E68482
-8FBEB9 E68487
-8FBEBA E6848A
-8FBEBB E6848C
-8FBEBC E68490
-8FBEBD E68491
-8FBEBE E68492
-8FBEBF E68493
-8FBEC0 E68494
-8FBEC1 E68496
-8FBEC2 E68497
-8FBEC3 E68499
-8FBEC4 E6849C
-8FBEC5 E6849E
-8FBEC6 E684A2
-8FBEC7 E684AA
-8FBEC8 E684AB
-8FBEC9 E684B0
-8FBECA E684B1
-8FBECB E684B5
-8FBECC E684B6
-8FBECD E684B7
-8FBECE E684B9
-8FBECF E68581
-8FBED0 E68585
-8FBED1 E68586
-8FBED2 E68589
-8FBED3 E6859E
-8FBED4 E685A0
-8FBED5 E685AC
-8FBED6 E685B2
-8FBED7 E685B8
-8FBED8 E685BB
-8FBED9 E685BC
-8FBEDA E685BF
-8FBEDB E68680
-8FBEDC E68681
-8FBEDD E68683
-8FBEDE E68684
-8FBEDF E6868B
-8FBEE0 E6868D
-8FBEE1 E68692
-8FBEE2 E68693
-8FBEE3 E68697
-8FBEE4 E68698
-8FBEE5 E6869C
-8FBEE6 E6869D
-8FBEE7 E6869F
-8FBEE8 E686A0
-8FBEE9 E686A5
-8FBEEA E686A8
-8FBEEB E686AA
-8FBEEC E686AD
-8FBEED E686B8
-8FBEEE E686B9
-8FBEEF E686BC
-8FBEF0 E68780
-8FBEF1 E68781
-8FBEF2 E68782
-8FBEF3 E6878E
-8FBEF4 E6878F
-8FBEF5 E68795
-8FBEF6 E6879C
-8FBEF7 E6879D
-8FBEF8 E6879E
-8FBEF9 E6879F
-8FBEFA E687A1
-8FBEFB E687A2
-8FBEFC E687A7
-8FBEFD E687A9
-8FBEFE E687A5
-8FBFA1 E687AC
-8FBFA2 E687AD
-8FBFA3 E687AF
-8FBFA4 E68881
-8FBFA5 E68883
-8FBFA6 E68884
-8FBFA7 E68887
-8FBFA8 E68893
-8FBFA9 E68895
-8FBFAA E6889C
-8FBFAB E688A0
-8FBFAC E688A2
-8FBFAD E688A3
-8FBFAE E688A7
-8FBFAF E688A9
-8FBFB0 E688AB
-8FBFB1 E688B9
-8FBFB2 E688BD
-8FBFB3 E68982
-8FBFB4 E68983
-8FBFB5 E68984
-8FBFB6 E68986
-8FBFB7 E6898C
-8FBFB8 E68990
-8FBFB9 E68991
-8FBFBA E68992
-8FBFBB E68994
-8FBFBC E68996
-8FBFBD E6899A
-8FBFBE E6899C
-8FBFBF E689A4
-8FBFC0 E689AD
-8FBFC1 E689AF
-8FBFC2 E689B3
-8FBFC3 E689BA
-8FBFC4 E689BD
-8FBFC5 E68A8D
-8FBFC6 E68A8E
-8FBFC7 E68A8F
-8FBFC8 E68A90
-8FBFC9 E68AA6
-8FBFCA E68AA8
-8FBFCB E68AB3
-8FBFCC E68AB6
-8FBFCD E68AB7
-8FBFCE E68ABA
-8FBFCF E68ABE
-8FBFD0 E68ABF
-8FBFD1 E68B84
-8FBFD2 E68B8E
-8FBFD3 E68B95
-8FBFD4 E68B96
-8FBFD5 E68B9A
-8FBFD6 E68BAA
-8FBFD7 E68BB2
-8FBFD8 E68BB4
-8FBFD9 E68BBC
-8FBFDA E68BBD
-8FBFDB E68C83
-8FBFDC E68C84
-8FBFDD E68C8A
-8FBFDE E68C8B
-8FBFDF E68C8D
-8FBFE0 E68C90
-8FBFE1 E68C93
-8FBFE2 E68C96
-8FBFE3 E68C98
-8FBFE4 E68CA9
-8FBFE5 E68CAA
-8FBFE6 E68CAD
-8FBFE7 E68CB5
-8FBFE8 E68CB6
-8FBFE9 E68CB9
-8FBFEA E68CBC
-8FBFEB E68D81
-8FBFEC E68D82
-8FBFED E68D83
-8FBFEE E68D84
-8FBFEF E68D86
-8FBFF0 E68D8A
-8FBFF1 E68D8B
-8FBFF2 E68D8E
-8FBFF3 E68D92
-8FBFF4 E68D93
-8FBFF5 E68D94
-8FBFF6 E68D98
-8FBFF7 E68D9B
-8FBFF8 E68DA5
-8FBFF9 E68DA6
-8FBFFA E68DAC
-8FBFFB E68DAD
-8FBFFC E68DB1
-8FBFFD E68DB4
-8FBFFE E68DB5
-8FC0A1 E68DB8
-8FC0A2 E68DBC
-8FC0A3 E68DBD
-8FC0A4 E68DBF
-8FC0A5 E68E82
-8FC0A6 E68E84
-8FC0A7 E68E87
-8FC0A8 E68E8A
-8FC0A9 E68E90
-8FC0AA E68E94
-8FC0AB E68E95
-8FC0AC E68E99
-8FC0AD E68E9A
-8FC0AE E68E9E
-8FC0AF E68EA4
-8FC0B0 E68EA6
-8FC0B1 E68EAD
-8FC0B2 E68EAE
-8FC0B3 E68EAF
-8FC0B4 E68EBD
-8FC0B5 E68F81
-8FC0B6 E68F85
-8FC0B7 E68F88
-8FC0B8 E68F8E
-8FC0B9 E68F91
-8FC0BA E68F93
-8FC0BB E68F94
-8FC0BC E68F95
-8FC0BD E68F9C
-8FC0BE E68FA0
-8FC0BF E68FA5
-8FC0C0 E68FAA
-8FC0C1 E68FAC
-8FC0C2 E68FB2
-8FC0C3 E68FB3
-8FC0C4 E68FB5
-8FC0C5 E68FB8
-8FC0C6 E68FB9
-8FC0C7 E69089
-8FC0C8 E6908A
-8FC0C9 E69090
-8FC0CA E69092
-8FC0CB E69094
-8FC0CC E69098
-8FC0CD E6909E
-8FC0CE E690A0
-8FC0CF E690A2
-8FC0D0 E690A4
-8FC0D1 E690A5
-8FC0D2 E690A9
-8FC0D3 E690AA
-8FC0D4 E690AF
-8FC0D5 E690B0
-8FC0D6 E690B5
-8FC0D7 E690BD
-8FC0D8 E690BF
-8FC0D9 E6918B
-8FC0DA E6918F
-8FC0DB E69191
-8FC0DC E69192
-8FC0DD E69193
-8FC0DE E69194
-8FC0DF E6919A
-8FC0E0 E6919B
-8FC0E1 E6919C
-8FC0E2 E6919D
-8FC0E3 E6919F
-8FC0E4 E691A0
-8FC0E5 E691A1
-8FC0E6 E691A3
-8FC0E7 E691AD
-8FC0E8 E691B3
-8FC0E9 E691B4
-8FC0EA E691BB
-8FC0EB E691BD
-8FC0EC E69285
-8FC0ED E69287
-8FC0EE E6928F
-8FC0EF E69290
-8FC0F0 E69291
-8FC0F1 E69298
-8FC0F2 E69299
-8FC0F3 E6929B
-8FC0F4 E6929D
-8FC0F5 E6929F
-8FC0F6 E692A1
-8FC0F7 E692A3
-8FC0F8 E692A6
-8FC0F9 E692A8
-8FC0FA E692AC
-8FC0FB E692B3
-8FC0FC E692BD
-8FC0FD E692BE
-8FC0FE E692BF
-8FC1A1 E69384
-8FC1A2 E69389
-8FC1A3 E6938A
-8FC1A4 E6938B
-8FC1A5 E6938C
-8FC1A6 E6938E
-8FC1A7 E69390
-8FC1A8 E69391
-8FC1A9 E69395
-8FC1AA E69397
-8FC1AB E693A4
-8FC1AC E693A5
-8FC1AD E693A9
-8FC1AE E693AA
-8FC1AF E693AD
-8FC1B0 E693B0
-8FC1B1 E693B5
-8FC1B2 E693B7
-8FC1B3 E693BB
-8FC1B4 E693BF
-8FC1B5 E69481
-8FC1B6 E69484
-8FC1B7 E69488
-8FC1B8 E69489
-8FC1B9 E6948A
-8FC1BA E6948F
-8FC1BB E69493
-8FC1BC E69494
-8FC1BD E69496
-8FC1BE E69499
-8FC1BF E6949B
-8FC1C0 E6949E
-8FC1C1 E6949F
-8FC1C2 E694A2
-8FC1C3 E694A6
-8FC1C4 E694A9
-8FC1C5 E694AE
-8FC1C6 E694B1
-8FC1C7 E694BA
-8FC1C8 E694BC
-8FC1C9 E694BD
-8FC1CA E69583
-8FC1CB E69587
-8FC1CC E69589
-8FC1CD E69590
-8FC1CE E69592
-8FC1CF E69594
-8FC1D0 E6959F
-8FC1D1 E695A0
-8FC1D2 E695A7
-8FC1D3 E695AB
-8FC1D4 E695BA
-8FC1D5 E695BD
-8FC1D6 E69681
-8FC1D7 E69685
-8FC1D8 E6968A
-8FC1D9 E69692
-8FC1DA E69695
-8FC1DB E69698
-8FC1DC E6969D
-8FC1DD E696A0
-8FC1DE E696A3
-8FC1DF E696A6
-8FC1E0 E696AE
-8FC1E1 E696B2
-8FC1E2 E696B3
-8FC1E3 E696B4
-8FC1E4 E696BF
-8FC1E5 E69782
-8FC1E6 E69788
-8FC1E7 E69789
-8FC1E8 E6978E
-8FC1E9 E69790
-8FC1EA E69794
-8FC1EB E69796
-8FC1EC E69798
-8FC1ED E6979F
-8FC1EE E697B0
-8FC1EF E697B2
-8FC1F0 E697B4
-8FC1F1 E697B5
-8FC1F2 E697B9
-8FC1F3 E697BE
-8FC1F4 E697BF
-8FC1F5 E69880
-8FC1F6 E69884
-8FC1F7 E69888
-8FC1F8 E69889
-8FC1F9 E6988D
-8FC1FA E69891
-8FC1FB E69892
-8FC1FC E69895
-8FC1FD E69896
-8FC1FE E6989D
-8FC2A1 E6989E
-8FC2A2 E698A1
-8FC2A3 E698A2
-8FC2A4 E698A3
-8FC2A5 E698A4
-8FC2A6 E698A6
-8FC2A7 E698A9
-8FC2A8 E698AA
-8FC2A9 E698AB
-8FC2AA E698AC
-8FC2AB E698AE
-8FC2AC E698B0
-8FC2AD E698B1
-8FC2AE E698B3
-8FC2AF E698B9
-8FC2B0 E698B7
-8FC2B1 E69980
-8FC2B2 E69985
-8FC2B3 E69986
-8FC2B4 E6998A
-8FC2B5 E6998C
-8FC2B6 E69991
-8FC2B7 E6998E
-8FC2B8 E69997
-8FC2B9 E69998
-8FC2BA E69999
-8FC2BB E6999B
-8FC2BC E6999C
-8FC2BD E699A0
-8FC2BE E699A1
-8FC2BF E69BBB
-8FC2C0 E699AA
-8FC2C1 E699AB
-8FC2C2 E699AC
-8FC2C3 E699BE
-8FC2C4 E699B3
-8FC2C5 E699B5
-8FC2C6 E699BF
-8FC2C7 E699B7
-8FC2C8 E699B8
-8FC2C9 E699B9
-8FC2CA E699BB
-8FC2CB E69A80
-8FC2CC E699BC
-8FC2CD E69A8B
-8FC2CE E69A8C
-8FC2CF E69A8D
-8FC2D0 E69A90
-8FC2D1 E69A92
-8FC2D2 E69A99
-8FC2D3 E69A9A
-8FC2D4 E69A9B
-8FC2D5 E69A9C
-8FC2D6 E69A9F
-8FC2D7 E69AA0
-8FC2D8 E69AA4
-8FC2D9 E69AAD
-8FC2DA E69AB1
-8FC2DB E69AB2
-8FC2DC E69AB5
-8FC2DD E69ABB
-8FC2DE E69ABF
-8FC2DF E69B80
-8FC2E0 E69B82
-8FC2E1 E69B83
-8FC2E2 E69B88
-8FC2E3 E69B8C
-8FC2E4 E69B8E
-8FC2E5 E69B8F
-8FC2E6 E69B94
-8FC2E7 E69B9B
-8FC2E8 E69B9F
-8FC2E9 E69BA8
-8FC2EA E69BAB
-8FC2EB E69BAC
-8FC2EC E69BAE
-8FC2ED E69BBA
-8FC2EE E69C85
-8FC2EF E69C87
-8FC2F0 E69C8E
-8FC2F1 E69C93
-8FC2F2 E69C99
-8FC2F3 E69C9C
-8FC2F4 E69CA0
-8FC2F5 E69CA2
-8FC2F6 E69CB3
-8FC2F7 E69CBE
-8FC2F8 E69D85
-8FC2F9 E69D87
-8FC2FA E69D88
-8FC2FB E69D8C
-8FC2FC E69D94
-8FC2FD E69D95
-8FC2FE E69D9D
-8FC3A1 E69DA6
-8FC3A2 E69DAC
-8FC3A3 E69DAE
-8FC3A4 E69DB4
-8FC3A5 E69DB6
-8FC3A6 E69DBB
-8FC3A7 E69E81
-8FC3A8 E69E84
-8FC3A9 E69E8E
-8FC3AA E69E8F
-8FC3AB E69E91
-8FC3AC E69E93
-8FC3AD E69E96
-8FC3AE E69E98
-8FC3AF E69E99
-8FC3B0 E69E9B
-8FC3B1 E69EB0
-8FC3B2 E69EB1
-8FC3B3 E69EB2
-8FC3B4 E69EB5
-8FC3B5 E69EBB
-8FC3B6 E69EBC
-8FC3B7 E69EBD
-8FC3B8 E69FB9
-8FC3B9 E69F80
-8FC3BA E69F82
-8FC3BB E69F83
-8FC3BC E69F85
-8FC3BD E69F88
-8FC3BE E69F89
-8FC3BF E69F92
-8FC3C0 E69F97
-8FC3C1 E69F99
-8FC3C2 E69F9C
-8FC3C3 E69FA1
-8FC3C4 E69FA6
-8FC3C5 E69FB0
-8FC3C6 E69FB2
-8FC3C7 E69FB6
-8FC3C8 E69FB7
-8FC3C9 E6A192
-8FC3CA E6A094
-8FC3CB E6A099
-8FC3CC E6A09D
-8FC3CD E6A09F
-8FC3CE E6A0A8
-8FC3CF E6A0A7
-8FC3D0 E6A0AC
-8FC3D1 E6A0AD
-8FC3D2 E6A0AF
-8FC3D3 E6A0B0
-8FC3D4 E6A0B1
-8FC3D5 E6A0B3
-8FC3D6 E6A0BB
-8FC3D7 E6A0BF
-8FC3D8 E6A184
-8FC3D9 E6A185
-8FC3DA E6A18A
-8FC3DB E6A18C
-8FC3DC E6A195
-8FC3DD E6A197
-8FC3DE E6A198
-8FC3DF E6A19B
-8FC3E0 E6A1AB
-8FC3E1 E6A1AE
-8FC3E2 E6A1AF
-8FC3E3 E6A1B0
-8FC3E4 E6A1B1
-8FC3E5 E6A1B2
-8FC3E6 E6A1B5
-8FC3E7 E6A1B9
-8FC3E8 E6A1BA
-8FC3E9 E6A1BB
-8FC3EA E6A1BC
-8FC3EB E6A282
-8FC3EC E6A284
-8FC3ED E6A286
-8FC3EE E6A288
-8FC3EF E6A296
-8FC3F0 E6A298
-8FC3F1 E6A29A
-8FC3F2 E6A29C
-8FC3F3 E6A2A1
-8FC3F4 E6A2A3
-8FC3F5 E6A2A5
-8FC3F6 E6A2A9
-8FC3F7 E6A2AA
-8FC3F8 E6A2AE
-8FC3F9 E6A2B2
-8FC3FA E6A2BB
-8FC3FB E6A385
-8FC3FC E6A388
-8FC3FD E6A38C
-8FC3FE E6A38F
-8FC4A1 E6A390
-8FC4A2 E6A391
-8FC4A3 E6A393
-8FC4A4 E6A396
-8FC4A5 E6A399
-8FC4A6 E6A39C
-8FC4A7 E6A39D
-8FC4A8 E6A3A5
-8FC4A9 E6A3A8
-8FC4AA E6A3AA
-8FC4AB E6A3AB
-8FC4AC E6A3AC
-8FC4AD E6A3AD
-8FC4AE E6A3B0
-8FC4AF E6A3B1
-8FC4B0 E6A3B5
-8FC4B1 E6A3B6
-8FC4B2 E6A3BB
-8FC4B3 E6A3BC
-8FC4B4 E6A3BD
-8FC4B5 E6A486
-8FC4B6 E6A489
-8FC4B7 E6A48A
-8FC4B8 E6A490
-8FC4B9 E6A491
-8FC4BA E6A493
-8FC4BB E6A496
-8FC4BC E6A497
-8FC4BD E6A4B1
-8FC4BE E6A4B3
-8FC4BF E6A4B5
-8FC4C0 E6A4B8
-8FC4C1 E6A4BB
-8FC4C2 E6A582
-8FC4C3 E6A585
-8FC4C4 E6A589
-8FC4C5 E6A58E
-8FC4C6 E6A597
-8FC4C7 E6A59B
-8FC4C8 E6A5A3
-8FC4C9 E6A5A4
-8FC4CA E6A5A5
-8FC4CB E6A5A6
-8FC4CC E6A5A8
-8FC4CD E6A5A9
-8FC4CE E6A5AC
-8FC4CF E6A5B0
-8FC4D0 E6A5B1
-8FC4D1 E6A5B2
-8FC4D2 E6A5BA
-8FC4D3 E6A5BB
-8FC4D4 E6A5BF
-8FC4D5 E6A680
-8FC4D6 E6A68D
-8FC4D7 E6A692
-8FC4D8 E6A696
-8FC4D9 E6A698
-8FC4DA E6A6A1
-8FC4DB E6A6A5
-8FC4DC E6A6A6
-8FC4DD E6A6A8
-8FC4DE E6A6AB
-8FC4DF E6A6AD
-8FC4E0 E6A6AF
-8FC4E1 E6A6B7
-8FC4E2 E6A6B8
-8FC4E3 E6A6BA
-8FC4E4 E6A6BC
-8FC4E5 E6A785
-8FC4E6 E6A788
-8FC4E7 E6A791
-8FC4E8 E6A796
-8FC4E9 E6A797
-8FC4EA E6A7A2
-8FC4EB E6A7A5
-8FC4EC E6A7AE
-8FC4ED E6A7AF
-8FC4EE E6A7B1
-8FC4EF E6A7B3
-8FC4F0 E6A7B5
-8FC4F1 E6A7BE
-8FC4F2 E6A880
-8FC4F3 E6A881
-8FC4F4 E6A883
-8FC4F5 E6A88F
-8FC4F6 E6A891
-8FC4F7 E6A895
-8FC4F8 E6A89A
-8FC4F9 E6A89D
-8FC4FA E6A8A0
-8FC4FB E6A8A4
-8FC4FC E6A8A8
-8FC4FD E6A8B0
-8FC4FE E6A8B2
-8FC5A1 E6A8B4
-8FC5A2 E6A8B7
-8FC5A3 E6A8BB
-8FC5A4 E6A8BE
-8FC5A5 E6A8BF
-8FC5A6 E6A985
-8FC5A7 E6A986
-8FC5A8 E6A989
-8FC5A9 E6A98A
-8FC5AA E6A98E
-8FC5AB E6A990
-8FC5AC E6A991
-8FC5AD E6A992
-8FC5AE E6A995
-8FC5AF E6A996
-8FC5B0 E6A99B
-8FC5B1 E6A9A4
-8FC5B2 E6A9A7
-8FC5B3 E6A9AA
-8FC5B4 E6A9B1
-8FC5B5 E6A9B3
-8FC5B6 E6A9BE
-8FC5B7 E6AA81
-8FC5B8 E6AA83
-8FC5B9 E6AA86
-8FC5BA E6AA87
-8FC5BB E6AA89
-8FC5BC E6AA8B
-8FC5BD E6AA91
-8FC5BE E6AA9B
-8FC5BF E6AA9D
-8FC5C0 E6AA9E
-8FC5C1 E6AA9F
-8FC5C2 E6AAA5
-8FC5C3 E6AAAB
-8FC5C4 E6AAAF
-8FC5C5 E6AAB0
-8FC5C6 E6AAB1
-8FC5C7 E6AAB4
-8FC5C8 E6AABD
-8FC5C9 E6AABE
-8FC5CA E6AABF
-8FC5CB E6AB86
-8FC5CC E6AB89
-8FC5CD E6AB88
-8FC5CE E6AB8C
-8FC5CF E6AB90
-8FC5D0 E6AB94
-8FC5D1 E6AB95
-8FC5D2 E6AB96
-8FC5D3 E6AB9C
-8FC5D4 E6AB9D
-8FC5D5 E6ABA4
-8FC5D6 E6ABA7
-8FC5D7 E6ABAC
-8FC5D8 E6ABB0
-8FC5D9 E6ABB1
-8FC5DA E6ABB2
-8FC5DB E6ABBC
-8FC5DC E6ABBD
-8FC5DD E6AC82
-8FC5DE E6AC83
-8FC5DF E6AC86
-8FC5E0 E6AC87
-8FC5E1 E6AC89
-8FC5E2 E6AC8F
-8FC5E3 E6AC90
-8FC5E4 E6AC91
-8FC5E5 E6AC97
-8FC5E6 E6AC9B
-8FC5E7 E6AC9E
-8FC5E8 E6ACA4
-8FC5E9 E6ACA8
-8FC5EA E6ACAB
-8FC5EB E6ACAC
-8FC5EC E6ACAF
-8FC5ED E6ACB5
-8FC5EE E6ACB6
-8FC5EF E6ACBB
-8FC5F0 E6ACBF
-8FC5F1 E6AD86
-8FC5F2 E6AD8A
-8FC5F3 E6AD8D
-8FC5F4 E6AD92
-8FC5F5 E6AD96
-8FC5F6 E6AD98
-8FC5F7 E6AD9D
-8FC5F8 E6ADA0
-8FC5F9 E6ADA7
-8FC5FA E6ADAB
-8FC5FB E6ADAE
-8FC5FC E6ADB0
-8FC5FD E6ADB5
-8FC5FE E6ADBD
-8FC6A1 E6ADBE
-8FC6A2 E6AE82
-8FC6A3 E6AE85
-8FC6A4 E6AE97
-8FC6A5 E6AE9B
-8FC6A6 E6AE9F
-8FC6A7 E6AEA0
-8FC6A8 E6AEA2
-8FC6A9 E6AEA3
-8FC6AA E6AEA8
-8FC6AB E6AEA9
-8FC6AC E6AEAC
-8FC6AD E6AEAD
-8FC6AE E6AEAE
-8FC6AF E6AEB0
-8FC6B0 E6AEB8
-8FC6B1 E6AEB9
-8FC6B2 E6AEBD
-8FC6B3 E6AEBE
-8FC6B4 E6AF83
-8FC6B5 E6AF84
-8FC6B6 E6AF89
-8FC6B7 E6AF8C
-8FC6B8 E6AF96
-8FC6B9 E6AF9A
-8FC6BA E6AFA1
-8FC6BB E6AFA3
-8FC6BC E6AFA6
-8FC6BD E6AFA7
-8FC6BE E6AFAE
-8FC6BF E6AFB1
-8FC6C0 E6AFB7
-8FC6C1 E6AFB9
-8FC6C2 E6AFBF
-8FC6C3 E6B082
-8FC6C4 E6B084
-8FC6C5 E6B085
-8FC6C6 E6B089
-8FC6C7 E6B08D
-8FC6C8 E6B08E
-8FC6C9 E6B090
-8FC6CA E6B092
-8FC6CB E6B099
-8FC6CC E6B09F
-8FC6CD E6B0A6
-8FC6CE E6B0A7
-8FC6CF E6B0A8
-8FC6D0 E6B0AC
-8FC6D1 E6B0AE
-8FC6D2 E6B0B3
-8FC6D3 E6B0B5
-8FC6D4 E6B0B6
-8FC6D5 E6B0BA
-8FC6D6 E6B0BB
-8FC6D7 E6B0BF
-8FC6D8 E6B18A
-8FC6D9 E6B18B
-8FC6DA E6B18D
-8FC6DB E6B18F
-8FC6DC E6B192
-8FC6DD E6B194
-8FC6DE E6B199
-8FC6DF E6B19B
-8FC6E0 E6B19C
-8FC6E1 E6B1AB
-8FC6E2 E6B1AD
-8FC6E3 E6B1AF
-8FC6E4 E6B1B4
-8FC6E5 E6B1B6
-8FC6E6 E6B1B8
-8FC6E7 E6B1B9
-8FC6E8 E6B1BB
-8FC6E9 E6B285
-8FC6EA E6B286
-8FC6EB E6B287
-8FC6EC E6B289
-8FC6ED E6B294
-8FC6EE E6B295
-8FC6EF E6B297
-8FC6F0 E6B298
-8FC6F1 E6B29C
-8FC6F2 E6B29F
-8FC6F3 E6B2B0
-8FC6F4 E6B2B2
-8FC6F5 E6B2B4
-8FC6F6 E6B382
-8FC6F7 E6B386
-8FC6F8 E6B38D
-8FC6F9 E6B38F
-8FC6FA E6B390
-8FC6FB E6B391
-8FC6FC E6B392
-8FC6FD E6B394
-8FC6FE E6B396
-8FC7A1 E6B39A
-8FC7A2 E6B39C
-8FC7A3 E6B3A0
-8FC7A4 E6B3A7
-8FC7A5 E6B3A9
-8FC7A6 E6B3AB
-8FC7A7 E6B3AC
-8FC7A8 E6B3AE
-8FC7A9 E6B3B2
-8FC7AA E6B3B4
-8FC7AB E6B484
-8FC7AC E6B487
-8FC7AD E6B48A
-8FC7AE E6B48E
-8FC7AF E6B48F
-8FC7B0 E6B491
-8FC7B1 E6B493
-8FC7B2 E6B49A
-8FC7B3 E6B4A6
-8FC7B4 E6B4A7
-8FC7B5 E6B4A8
-8FC7B6 E6B1A7
-8FC7B7 E6B4AE
-8FC7B8 E6B4AF
-8FC7B9 E6B4B1
-8FC7BA E6B4B9
-8FC7BB E6B4BC
-8FC7BC E6B4BF
-8FC7BD E6B597
-8FC7BE E6B59E
-8FC7BF E6B59F
-8FC7C0 E6B5A1
-8FC7C1 E6B5A5
-8FC7C2 E6B5A7
-8FC7C3 E6B5AF
-8FC7C4 E6B5B0
-8FC7C5 E6B5BC
-8FC7C6 E6B682
-8FC7C7 E6B687
-8FC7C8 E6B691
-8FC7C9 E6B692
-8FC7CA E6B694
-8FC7CB E6B696
-8FC7CC E6B697
-8FC7CD E6B698
-8FC7CE E6B6AA
-8FC7CF E6B6AC
-8FC7D0 E6B6B4
-8FC7D1 E6B6B7
-8FC7D2 E6B6B9
-8FC7D3 E6B6BD
-8FC7D4 E6B6BF
-8FC7D5 E6B784
-8FC7D6 E6B788
-8FC7D7 E6B78A
-8FC7D8 E6B78E
-8FC7D9 E6B78F
-8FC7DA E6B796
-8FC7DB E6B79B
-8FC7DC E6B79D
-8FC7DD E6B79F
-8FC7DE E6B7A0
-8FC7DF E6B7A2
-8FC7E0 E6B7A5
-8FC7E1 E6B7A9
-8FC7E2 E6B7AF
-8FC7E3 E6B7B0
-8FC7E4 E6B7B4
-8FC7E5 E6B7B6
-8FC7E6 E6B7BC
-8FC7E7 E6B880
-8FC7E8 E6B884
-8FC7E9 E6B89E
-8FC7EA E6B8A2
-8FC7EB E6B8A7
-8FC7EC E6B8B2
-8FC7ED E6B8B6
-8FC7EE E6B8B9
-8FC7EF E6B8BB
-8FC7F0 E6B8BC
-8FC7F1 E6B984
-8FC7F2 E6B985
-8FC7F3 E6B988
-8FC7F4 E6B989
-8FC7F5 E6B98B
-8FC7F6 E6B98F
-8FC7F7 E6B991
-8FC7F8 E6B992
-8FC7F9 E6B993
-8FC7FA E6B994
-8FC7FB E6B997
-8FC7FC E6B99C
-8FC7FD E6B99D
-8FC7FE E6B99E
-8FC8A1 E6B9A2
-8FC8A2 E6B9A3
-8FC8A3 E6B9A8
-8FC8A4 E6B9B3
-8FC8A5 E6B9BB
-8FC8A6 E6B9BD
-8FC8A7 E6BA8D
-8FC8A8 E6BA93
-8FC8A9 E6BA99
-8FC8AA E6BAA0
-8FC8AB E6BAA7
-8FC8AC E6BAAD
-8FC8AD E6BAAE
-8FC8AE E6BAB1
-8FC8AF E6BAB3
-8FC8B0 E6BABB
-8FC8B1 E6BABF
-8FC8B2 E6BB80
-8FC8B3 E6BB81
-8FC8B4 E6BB83
-8FC8B5 E6BB87
-8FC8B6 E6BB88
-8FC8B7 E6BB8A
-8FC8B8 E6BB8D
-8FC8B9 E6BB8E
-8FC8BA E6BB8F
-8FC8BB E6BBAB
-8FC8BC E6BBAD
-8FC8BD E6BBAE
-8FC8BE E6BBB9
-8FC8BF E6BBBB
-8FC8C0 E6BBBD
-8FC8C1 E6BC84
-8FC8C2 E6BC88
-8FC8C3 E6BC8A
-8FC8C4 E6BC8C
-8FC8C5 E6BC8D
-8FC8C6 E6BC96
-8FC8C7 E6BC98
-8FC8C8 E6BC9A
-8FC8C9 E6BC9B
-8FC8CA E6BCA6
-8FC8CB E6BCA9
-8FC8CC E6BCAA
-8FC8CD E6BCAF
-8FC8CE E6BCB0
-8FC8CF E6BCB3
-8FC8D0 E6BCB6
-8FC8D1 E6BCBB
-8FC8D2 E6BCBC
-8FC8D3 E6BCAD
-8FC8D4 E6BD8F
-8FC8D5 E6BD91
-8FC8D6 E6BD92
-8FC8D7 E6BD93
-8FC8D8 E6BD97
-8FC8D9 E6BD99
-8FC8DA E6BD9A
-8FC8DB E6BD9D
-8FC8DC E6BD9E
-8FC8DD E6BDA1
-8FC8DE E6BDA2
-8FC8DF E6BDA8
-8FC8E0 E6BDAC
-8FC8E1 E6BDBD
-8FC8E2 E6BDBE
-8FC8E3 E6BE83
-8FC8E4 E6BE87
-8FC8E5 E6BE88
-8FC8E6 E6BE8B
-8FC8E7 E6BE8C
-8FC8E8 E6BE8D
-8FC8E9 E6BE90
-8FC8EA E6BE92
-8FC8EB E6BE93
-8FC8EC E6BE94
-8FC8ED E6BE96
-8FC8EE E6BE9A
-8FC8EF E6BE9F
-8FC8F0 E6BEA0
-8FC8F1 E6BEA5
-8FC8F2 E6BEA6
-8FC8F3 E6BEA7
-8FC8F4 E6BEA8
-8FC8F5 E6BEAE
-8FC8F6 E6BEAF
-8FC8F7 E6BEB0
-8FC8F8 E6BEB5
-8FC8F9 E6BEB6
-8FC8FA E6BEBC
-8FC8FB E6BF85
-8FC8FC E6BF87
-8FC8FD E6BF88
-8FC8FE E6BF8A
-8FC9A1 E6BF9A
-8FC9A2 E6BF9E
-8FC9A3 E6BFA8
-8FC9A4 E6BFA9
-8FC9A5 E6BFB0
-8FC9A6 E6BFB5
-8FC9A7 E6BFB9
-8FC9A8 E6BFBC
-8FC9A9 E6BFBD
-8FC9AA E78080
-8FC9AB E78085
-8FC9AC E78086
-8FC9AD E78087
-8FC9AE E7808D
-8FC9AF E78097
-8FC9B0 E780A0
-8FC9B1 E780A3
-8FC9B2 E780AF
-8FC9B3 E780B4
-8FC9B4 E780B7
-8FC9B5 E780B9
-8FC9B6 E780BC
-8FC9B7 E78183
-8FC9B8 E78184
-8FC9B9 E78188
-8FC9BA E78189
-8FC9BB E7818A
-8FC9BC E7818B
-8FC9BD E78194
-8FC9BE E78195
-8FC9BF E7819D
-8FC9C0 E7819E
-8FC9C1 E7818E
-8FC9C2 E781A4
-8FC9C3 E781A5
-8FC9C4 E781AC
-8FC9C5 E781AE
-8FC9C6 E781B5
-8FC9C7 E781B6
-8FC9C8 E781BE
-8FC9C9 E78281
-8FC9CA E78285
-8FC9CB E78286
-8FC9CC E78294
-8FC9CD E78295
-8FC9CE E78296
-8FC9CF E78297
-8FC9D0 E78298
-8FC9D1 E7829B
-8FC9D2 E782A4
-8FC9D3 E782AB
-8FC9D4 E782B0
-8FC9D5 E782B1
-8FC9D6 E782B4
-8FC9D7 E782B7
-8FC9D8 E7838A
-8FC9D9 E78391
-8FC9DA E78393
-8FC9DB E78394
-8FC9DC E78395
-8FC9DD E78396
-8FC9DE E78398
-8FC9DF E7839C
-8FC9E0 E783A4
-8FC9E1 E783BA
-8FC9E2 E78483
-8FC9E3 E78484
-8FC9E4 E78485
-8FC9E5 E78486
-8FC9E6 E78487
-8FC9E7 E7848B
-8FC9E8 E7848C
-8FC9E9 E7848F
-8FC9EA E7849E
-8FC9EB E784A0
-8FC9EC E784AB
-8FC9ED E784AD
-8FC9EE E784AF
-8FC9EF E784B0
-8FC9F0 E784B1
-8FC9F1 E784B8
-8FC9F2 E78581
-8FC9F3 E78585
-8FC9F4 E78586
-8FC9F5 E78587
-8FC9F6 E7858A
-8FC9F7 E7858B
-8FC9F8 E78590
-8FC9F9 E78592
-8FC9FA E78597
-8FC9FB E7859A
-8FC9FC E7859C
-8FC9FD E7859E
-8FC9FE E785A0
-8FCAA1 E785A8
-8FCAA2 E785B9
-8FCAA3 E78680
-8FCAA4 E78685
-8FCAA5 E78687
-8FCAA6 E7868C
-8FCAA7 E78692
-8FCAA8 E7869A
-8FCAA9 E7869B
-8FCAAA E786A0
-8FCAAB E786A2
-8FCAAC E786AF
-8FCAAD E786B0
-8FCAAE E786B2
-8FCAAF E786B3
-8FCAB0 E786BA
-8FCAB1 E786BF
-8FCAB2 E78780
-8FCAB3 E78781
-8FCAB4 E78784
-8FCAB5 E7878B
-8FCAB6 E7878C
-8FCAB7 E78793
-8FCAB8 E78796
-8FCAB9 E78799
-8FCABA E7879A
-8FCABB E7879C
-8FCABC E787B8
-8FCABD E787BE
-8FCABE E78880
-8FCABF E78887
-8FCAC0 E78888
-8FCAC1 E78889
-8FCAC2 E78893
-8FCAC3 E78897
-8FCAC4 E7889A
-8FCAC5 E7889D
-8FCAC6 E7889F
-8FCAC7 E788A4
-8FCAC8 E788AB
-8FCAC9 E788AF
-8FCACA E788B4
-8FCACB E788B8
-8FCACC E788B9
-8FCACD E78981
-8FCACE E78982
-8FCACF E78983
-8FCAD0 E78985
-8FCAD1 E7898E
-8FCAD2 E7898F
-8FCAD3 E78990
-8FCAD4 E78993
-8FCAD5 E78995
-8FCAD6 E78996
-8FCAD7 E7899A
-8FCAD8 E7899C
-8FCAD9 E7899E
-8FCADA E789A0
-8FCADB E789A3
-8FCADC E789A8
-8FCADD E789AB
-8FCADE E789AE
-8FCADF E789AF
-8FCAE0 E789B1
-8FCAE1 E789B7
-8FCAE2 E789B8
-8FCAE3 E789BB
-8FCAE4 E789BC
-8FCAE5 E789BF
-8FCAE6 E78A84
-8FCAE7 E78A89
-8FCAE8 E78A8D
-8FCAE9 E78A8E
-8FCAEA E78A93
-8FCAEB E78A9B
-8FCAEC E78AA8
-8FCAED E78AAD
-8FCAEE E78AAE
-8FCAEF E78AB1
-8FCAF0 E78AB4
-8FCAF1 E78ABE
-8FCAF2 E78B81
-8FCAF3 E78B87
-8FCAF4 E78B89
-8FCAF5 E78B8C
-8FCAF6 E78B95
-8FCAF7 E78B96
-8FCAF8 E78B98
-8FCAF9 E78B9F
-8FCAFA E78BA5
-8FCAFB E78BB3
-8FCAFC E78BB4
-8FCAFD E78BBA
-8FCAFE E78BBB
-8FCBA1 E78BBE
-8FCBA2 E78C82
-8FCBA3 E78C84
-8FCBA4 E78C85
-8FCBA5 E78C87
-8FCBA6 E78C8B
-8FCBA7 E78C8D
-8FCBA8 E78C92
-8FCBA9 E78C93
-8FCBAA E78C98
-8FCBAB E78C99
-8FCBAC E78C9E
-8FCBAD E78CA2
-8FCBAE E78CA4
-8FCBAF E78CA7
-8FCBB0 E78CA8
-8FCBB1 E78CAC
-8FCBB2 E78CB1
-8FCBB3 E78CB2
-8FCBB4 E78CB5
-8FCBB5 E78CBA
-8FCBB6 E78CBB
-8FCBB7 E78CBD
-8FCBB8 E78D83
-8FCBB9 E78D8D
-8FCBBA E78D90
-8FCBBB E78D92
-8FCBBC E78D96
-8FCBBD E78D98
-8FCBBE E78D9D
-8FCBBF E78D9E
-8FCBC0 E78D9F
-8FCBC1 E78DA0
-8FCBC2 E78DA6
-8FCBC3 E78DA7
-8FCBC4 E78DA9
-8FCBC5 E78DAB
-8FCBC6 E78DAC
-8FCBC7 E78DAE
-8FCBC8 E78DAF
-8FCBC9 E78DB1
-8FCBCA E78DB7
-8FCBCB E78DB9
-8FCBCC E78DBC
-8FCBCD E78E80
-8FCBCE E78E81
-8FCBCF E78E83
-8FCBD0 E78E85
-8FCBD1 E78E86
-8FCBD2 E78E8E
-8FCBD3 E78E90
-8FCBD4 E78E93
-8FCBD5 E78E95
-8FCBD6 E78E97
-8FCBD7 E78E98
-8FCBD8 E78E9C
-8FCBD9 E78E9E
-8FCBDA E78E9F
-8FCBDB E78EA0
-8FCBDC E78EA2
-8FCBDD E78EA5
-8FCBDE E78EA6
-8FCBDF E78EAA
-8FCBE0 E78EAB
-8FCBE1 E78EAD
-8FCBE2 E78EB5
-8FCBE3 E78EB7
-8FCBE4 E78EB9
-8FCBE5 E78EBC
-8FCBE6 E78EBD
-8FCBE7 E78EBF
-8FCBE8 E78F85
-8FCBE9 E78F86
-8FCBEA E78F89
-8FCBEB E78F8B
-8FCBEC E78F8C
-8FCBED E78F8F
-8FCBEE E78F92
-8FCBEF E78F93
-8FCBF0 E78F96
-8FCBF1 E78F99
-8FCBF2 E78F9D
-8FCBF3 E78FA1
-8FCBF4 E78FA3
-8FCBF5 E78FA6
-8FCBF6 E78FA7
-8FCBF7 E78FA9
-8FCBF8 E78FB4
-8FCBF9 E78FB5
-8FCBFA E78FB7
-8FCBFB E78FB9
-8FCBFC E78FBA
-8FCBFD E78FBB
-8FCBFE E78FBD
-8FCCA1 E78FBF
-8FCCA2 E79080
-8FCCA3 E79081
-8FCCA4 E79084
-8FCCA5 E79087
-8FCCA6 E7908A
-8FCCA7 E79091
-8FCCA8 E7909A
-8FCCA9 E7909B
-8FCCAA E790A4
-8FCCAB E790A6
-8FCCAC E790A8
-8FCCAD E790A9
-8FCCAE E790AA
-8FCCAF E790AB
-8FCCB0 E790AC
-8FCCB1 E790AD
-8FCCB2 E790AE
-8FCCB3 E790AF
-8FCCB4 E790B0
-8FCCB5 E790B1
-8FCCB6 E790B9
-8FCCB7 E79180
-8FCCB8 E79183
-8FCCB9 E79184
-8FCCBA E79186
-8FCCBB E79187
-8FCCBC E7918B
-8FCCBD E7918D
-8FCCBE E79191
-8FCCBF E79192
-8FCCC0 E79197
-8FCCC1 E7919D
-8FCCC2 E791A2
-8FCCC3 E791A6
-8FCCC4 E791A7
-8FCCC5 E791A8
-8FCCC6 E791AB
-8FCCC7 E791AD
-8FCCC8 E791AE
-8FCCC9 E791B1
-8FCCCA E791B2
-8FCCCB E79280
-8FCCCC E79281
-8FCCCD E79285
-8FCCCE E79286
-8FCCCF E79287
-8FCCD0 E79289
-8FCCD1 E7928F
-8FCCD2 E79290
-8FCCD3 E79291
-8FCCD4 E79292
-8FCCD5 E79298
-8FCCD6 E79299
-8FCCD7 E7929A
-8FCCD8 E7929C
-8FCCD9 E7929F
-8FCCDA E792A0
-8FCCDB E792A1
-8FCCDC E792A3
-8FCCDD E792A6
-8FCCDE E792A8
-8FCCDF E792A9
-8FCCE0 E792AA
-8FCCE1 E792AB
-8FCCE2 E792AE
-8FCCE3 E792AF
-8FCCE4 E792B1
-8FCCE5 E792B2
-8FCCE6 E792B5
-8FCCE7 E792B9
-8FCCE8 E792BB
-8FCCE9 E792BF
-8FCCEA E79388
-8FCCEB E79389
-8FCCEC E7938C
-8FCCED E79390
-8FCCEE E79393
-8FCCEF E79398
-8FCCF0 E7939A
-8FCCF1 E7939B
-8FCCF2 E7939E
-8FCCF3 E7939F
-8FCCF4 E793A4
-8FCCF5 E793A8
-8FCCF6 E793AA
-8FCCF7 E793AB
-8FCCF8 E793AF
-8FCCF9 E793B4
-8FCCFA E793BA
-8FCCFB E793BB
-8FCCFC E793BC
-8FCCFD E793BF
-8FCCFE E79486
-8FCDA1 E79492
-8FCDA2 E79496
-8FCDA3 E79497
-8FCDA4 E794A0
-8FCDA5 E794A1
-8FCDA6 E794A4
-8FCDA7 E794A7
-8FCDA8 E794A9
-8FCDA9 E794AA
-8FCDAA E794AF
-8FCDAB E794B6
-8FCDAC E794B9
-8FCDAD E794BD
-8FCDAE E794BE
-8FCDAF E794BF
-8FCDB0 E79580
-8FCDB1 E79583
-8FCDB2 E79587
-8FCDB3 E79588
-8FCDB4 E7958E
-8FCDB5 E79590
-8FCDB6 E79592
-8FCDB7 E79597
-8FCDB8 E7959E
-8FCDB9 E7959F
-8FCDBA E795A1
-8FCDBB E795AF
-8FCDBC E795B1
-8FCDBD E795B9
-8FCDBE E795BA
-8FCDBF E795BB
-8FCDC0 E795BC
-8FCDC1 E795BD
-8FCDC2 E795BE
-8FCDC3 E79681
-8FCDC4 E79685
-8FCDC5 E79690
-8FCDC6 E79692
-8FCDC7 E79693
-8FCDC8 E79695
-8FCDC9 E79699
-8FCDCA E7969C
-8FCDCB E796A2
-8FCDCC E796A4
-8FCDCD E796B4
-8FCDCE E796BA
-8FCDCF E796BF
-8FCDD0 E79780
-8FCDD1 E79781
-8FCDD2 E79784
-8FCDD3 E79786
-8FCDD4 E7978C
-8FCDD5 E7978E
-8FCDD6 E7978F
-8FCDD7 E79797
-8FCDD8 E7979C
-8FCDD9 E7979F
-8FCDDA E797A0
-8FCDDB E797A1
-8FCDDC E797A4
-8FCDDD E797A7
-8FCDDE E797AC
-8FCDDF E797AE
-8FCDE0 E797AF
-8FCDE1 E797B1
-8FCDE2 E797B9
-8FCDE3 E79880
-8FCDE4 E79882
-8FCDE5 E79883
-8FCDE6 E79884
-8FCDE7 E79887
-8FCDE8 E79888
-8FCDE9 E7988A
-8FCDEA E7988C
-8FCDEB E7988F
-8FCDEC E79892
-8FCDED E79893
-8FCDEE E79895
-8FCDEF E79896
-8FCDF0 E79899
-8FCDF1 E7989B
-8FCDF2 E7989C
-8FCDF3 E7989D
-8FCDF4 E7989E
-8FCDF5 E798A3
-8FCDF6 E798A5
-8FCDF7 E798A6
-8FCDF8 E798A9
-8FCDF9 E798AD
-8FCDFA E798B2
-8FCDFB E798B3
-8FCDFC E798B5
-8FCDFD E798B8
-8FCDFE E798B9
-8FCEA1 E798BA
-8FCEA2 E798BC
-8FCEA3 E7998A
-8FCEA4 E79980
-8FCEA5 E79981
-8FCEA6 E79983
-8FCEA7 E79984
-8FCEA8 E79985
-8FCEA9 E79989
-8FCEAA E7998B
-8FCEAB E79995
-8FCEAC E79999
-8FCEAD E7999F
-8FCEAE E799A4
-8FCEAF E799A5
-8FCEB0 E799AD
-8FCEB1 E799AE
-8FCEB2 E799AF
-8FCEB3 E799B1
-8FCEB4 E799B4
-8FCEB5 E79A81
-8FCEB6 E79A85
-8FCEB7 E79A8C
-8FCEB8 E79A8D
-8FCEB9 E79A95
-8FCEBA E79A9B
-8FCEBB E79A9C
-8FCEBC E79A9D
-8FCEBD E79A9F
-8FCEBE E79AA0
-8FCEBF E79AA2
-8FCEC0 E79AA3
-8FCEC1 E79AA4
-8FCEC2 E79AA5
-8FCEC3 E79AA6
-8FCEC4 E79AA7
-8FCEC5 E79AA8
-8FCEC6 E79AAA
-8FCEC7 E79AAD
-8FCEC8 E79ABD
-8FCEC9 E79B81
-8FCECA E79B85
-8FCECB E79B89
-8FCECC E79B8B
-8FCECD E79B8C
-8FCECE E79B8E
-8FCECF E79B94
-8FCED0 E79B99
-8FCED1 E79BA0
-8FCED2 E79BA6
-8FCED3 E79BA8
-8FCED4 E79BAC
-8FCED5 E79BB0
-8FCED6 E79BB1
-8FCED7 E79BB6
-8FCED8 E79BB9
-8FCED9 E79BBC
-8FCEDA E79C80
-8FCEDB E79C86
-8FCEDC E79C8A
-8FCEDD E79C8E
-8FCEDE E79C92
-8FCEDF E79C94
-8FCEE0 E79C95
-8FCEE1 E79C97
-8FCEE2 E79C99
-8FCEE3 E79C9A
-8FCEE4 E79C9C
-8FCEE5 E79CA2
-8FCEE6 E79CA8
-8FCEE7 E79CAD
-8FCEE8 E79CAE
-8FCEE9 E79CAF
-8FCEEA E79CB4
-8FCEEB E79CB5
-8FCEEC E79CB6
-8FCEED E79CB9
-8FCEEE E79CBD
-8FCEEF E79CBE
-8FCEF0 E79D82
-8FCEF1 E79D85
-8FCEF2 E79D86
-8FCEF3 E79D8A
-8FCEF4 E79D8D
-8FCEF5 E79D8E
-8FCEF6 E79D8F
-8FCEF7 E79D92
-8FCEF8 E79D96
-8FCEF9 E79D97
-8FCEFA E79D9C
-8FCEFB E79D9E
-8FCEFC E79D9F
-8FCEFD E79DA0
-8FCEFE E79DA2
-8FCFA1 E79DA4
-8FCFA2 E79DA7
-8FCFA3 E79DAA
-8FCFA4 E79DAC
-8FCFA5 E79DB0
-8FCFA6 E79DB2
-8FCFA7 E79DB3
-8FCFA8 E79DB4
-8FCFA9 E79DBA
-8FCFAA E79DBD
-8FCFAB E79E80
-8FCFAC E79E84
-8FCFAD E79E8C
-8FCFAE E79E8D
-8FCFAF E79E94
-8FCFB0 E79E95
-8FCFB1 E79E96
-8FCFB2 E79E9A
-8FCFB3 E79E9F
-8FCFB4 E79EA2
-8FCFB5 E79EA7
-8FCFB6 E79EAA
-8FCFB7 E79EAE
-8FCFB8 E79EAF
-8FCFB9 E79EB1
-8FCFBA E79EB5
-8FCFBB E79EBE
-8FCFBC E79F83
-8FCFBD E79F89
-8FCFBE E79F91
-8FCFBF E79F92
-8FCFC0 E79F95
-8FCFC1 E79F99
-8FCFC2 E79F9E
-8FCFC3 E79F9F
-8FCFC4 E79FA0
-8FCFC5 E79FA4
-8FCFC6 E79FA6
-8FCFC7 E79FAA
-8FCFC8 E79FAC
-8FCFC9 E79FB0
-8FCFCA E79FB1
-8FCFCB E79FB4
-8FCFCC E79FB8
-8FCFCD E79FBB
-8FCFCE E7A085
-8FCFCF E7A086
-8FCFD0 E7A089
-8FCFD1 E7A08D
-8FCFD2 E7A08E
-8FCFD3 E7A091
-8FCFD4 E7A09D
-8FCFD5 E7A0A1
-8FCFD6 E7A0A2
-8FCFD7 E7A0A3
-8FCFD8 E7A0AD
-8FCFD9 E7A0AE
-8FCFDA E7A0B0
-8FCFDB E7A0B5
-8FCFDC E7A0B7
-8FCFDD E7A183
-8FCFDE E7A184
-8FCFDF E7A187
-8FCFE0 E7A188
-8FCFE1 E7A18C
-8FCFE2 E7A18E
-8FCFE3 E7A192
-8FCFE4 E7A19C
-8FCFE5 E7A19E
-8FCFE6 E7A1A0
-8FCFE7 E7A1A1
-8FCFE8 E7A1A3
-8FCFE9 E7A1A4
-8FCFEA E7A1A8
-8FCFEB E7A1AA
-8FCFEC E7A1AE
-8FCFED E7A1BA
-8FCFEE E7A1BE
-8FCFEF E7A28A
-8FCFF0 E7A28F
-8FCFF1 E7A294
-8FCFF2 E7A298
-8FCFF3 E7A2A1
-8FCFF4 E7A29D
-8FCFF5 E7A29E
-8FCFF6 E7A29F
-8FCFF7 E7A2A4
-8FCFF8 E7A2A8
-8FCFF9 E7A2AC
-8FCFFA E7A2AD
-8FCFFB E7A2B0
-8FCFFC E7A2B1
-8FCFFD E7A2B2
-8FCFFE E7A2B3
-8FD0A1 E7A2BB
-8FD0A2 E7A2BD
-8FD0A3 E7A2BF
-8FD0A4 E7A387
-8FD0A5 E7A388
-8FD0A6 E7A389
-8FD0A7 E7A38C
-8FD0A8 E7A38E
-8FD0A9 E7A392
-8FD0AA E7A393
-8FD0AB E7A395
-8FD0AC E7A396
-8FD0AD E7A3A4
-8FD0AE E7A39B
-8FD0AF E7A39F
-8FD0B0 E7A3A0
-8FD0B1 E7A3A1
-8FD0B2 E7A3A6
-8FD0B3 E7A3AA
-8FD0B4 E7A3B2
-8FD0B5 E7A3B3
-8FD0B6 E7A480
-8FD0B7 E7A3B6
-8FD0B8 E7A3B7
-8FD0B9 E7A3BA
-8FD0BA E7A3BB
-8FD0BB E7A3BF
-8FD0BC E7A486
-8FD0BD E7A48C
-8FD0BE E7A490
-8FD0BF E7A49A
-8FD0C0 E7A49C
-8FD0C1 E7A49E
-8FD0C2 E7A49F
-8FD0C3 E7A4A0
-8FD0C4 E7A4A5
-8FD0C5 E7A4A7
-8FD0C6 E7A4A9
-8FD0C7 E7A4AD
-8FD0C8 E7A4B1
-8FD0C9 E7A4B4
-8FD0CA E7A4B5
-8FD0CB E7A4BB
-8FD0CC E7A4BD
-8FD0CD E7A4BF
-8FD0CE E7A584
-8FD0CF E7A585
-8FD0D0 E7A586
-8FD0D1 E7A58A
-8FD0D2 E7A58B
-8FD0D3 E7A58F
-8FD0D4 E7A591
-8FD0D5 E7A594
-8FD0D6 E7A598
-8FD0D7 E7A59B
-8FD0D8 E7A59C
-8FD0D9 E7A5A7
-8FD0DA E7A5A9
-8FD0DB E7A5AB
-8FD0DC E7A5B2
-8FD0DD E7A5B9
-8FD0DE E7A5BB
-8FD0DF E7A5BC
-8FD0E0 E7A5BE
-8FD0E1 E7A68B
-8FD0E2 E7A68C
-8FD0E3 E7A691
-8FD0E4 E7A693
-8FD0E5 E7A694
-8FD0E6 E7A695
-8FD0E7 E7A696
-8FD0E8 E7A698
-8FD0E9 E7A69B
-8FD0EA E7A69C
-8FD0EB E7A6A1
-8FD0EC E7A6A8
-8FD0ED E7A6A9
-8FD0EE E7A6AB
-8FD0EF E7A6AF
-8FD0F0 E7A6B1
-8FD0F1 E7A6B4
-8FD0F2 E7A6B8
-8FD0F3 E7A6BB
-8FD0F4 E7A782
-8FD0F5 E7A784
-8FD0F6 E7A787
-8FD0F7 E7A788
-8FD0F8 E7A78A
-8FD0F9 E7A78F
-8FD0FA E7A794
-8FD0FB E7A796
-8FD0FC E7A79A
-8FD0FD E7A79D
-8FD0FE E7A79E
-8FD1A1 E7A7A0
-8FD1A2 E7A7A2
-8FD1A3 E7A7A5
-8FD1A4 E7A7AA
-8FD1A5 E7A7AB
-8FD1A6 E7A7AD
-8FD1A7 E7A7B1
-8FD1A8 E7A7B8
-8FD1A9 E7A7BC
-8FD1AA E7A882
-8FD1AB E7A883
-8FD1AC E7A887
-8FD1AD E7A889
-8FD1AE E7A88A
-8FD1AF E7A88C
-8FD1B0 E7A891
-8FD1B1 E7A895
-8FD1B2 E7A89B
-8FD1B3 E7A89E
-8FD1B4 E7A8A1
-8FD1B5 E7A8A7
-8FD1B6 E7A8AB
-8FD1B7 E7A8AD
-8FD1B8 E7A8AF
-8FD1B9 E7A8B0
-8FD1BA E7A8B4
-8FD1BB E7A8B5
-8FD1BC E7A8B8
-8FD1BD E7A8B9
-8FD1BE E7A8BA
-8FD1BF E7A984
-8FD1C0 E7A985
-8FD1C1 E7A987
-8FD1C2 E7A988
-8FD1C3 E7A98C
-8FD1C4 E7A995
-8FD1C5 E7A996
-8FD1C6 E7A999
-8FD1C7 E7A99C
-8FD1C8 E7A99D
-8FD1C9 E7A99F
-8FD1CA E7A9A0
-8FD1CB E7A9A5
-8FD1CC E7A9A7
-8FD1CD E7A9AA
-8FD1CE E7A9AD
-8FD1CF E7A9B5
-8FD1D0 E7A9B8
-8FD1D1 E7A9BE
-8FD1D2 E7AA80
-8FD1D3 E7AA82
-8FD1D4 E7AA85
-8FD1D5 E7AA86
-8FD1D6 E7AA8A
-8FD1D7 E7AA8B
-8FD1D8 E7AA90
-8FD1D9 E7AA91
-8FD1DA E7AA94
-8FD1DB E7AA9E
-8FD1DC E7AAA0
-8FD1DD E7AAA3
-8FD1DE E7AAAC
-8FD1DF E7AAB3
-8FD1E0 E7AAB5
-8FD1E1 E7AAB9
-8FD1E2 E7AABB
-8FD1E3 E7AABC
-8FD1E4 E7AB86
-8FD1E5 E7AB89
-8FD1E6 E7AB8C
-8FD1E7 E7AB8E
-8FD1E8 E7AB91
-8FD1E9 E7AB9B
-8FD1EA E7ABA8
-8FD1EB E7ABA9
-8FD1EC E7ABAB
-8FD1ED E7ABAC
-8FD1EE E7ABB1
-8FD1EF E7ABB4
-8FD1F0 E7ABBB
-8FD1F1 E7ABBD
-8FD1F2 E7ABBE
-8FD1F3 E7AC87
-8FD1F4 E7AC94
-8FD1F5 E7AC9F
-8FD1F6 E7ACA3
-8FD1F7 E7ACA7
-8FD1F8 E7ACA9
-8FD1F9 E7ACAA
-8FD1FA E7ACAB
-8FD1FB E7ACAD
-8FD1FC E7ACAE
-8FD1FD E7ACAF
-8FD1FE E7ACB0
-8FD2A1 E7ACB1
-8FD2A2 E7ACB4
-8FD2A3 E7ACBD
-8FD2A4 E7ACBF
-8FD2A5 E7AD80
-8FD2A6 E7AD81
-8FD2A7 E7AD87
-8FD2A8 E7AD8E
-8FD2A9 E7AD95
-8FD2AA E7ADA0
-8FD2AB E7ADA4
-8FD2AC E7ADA6
-8FD2AD E7ADA9
-8FD2AE E7ADAA
-8FD2AF E7ADAD
-8FD2B0 E7ADAF
-8FD2B1 E7ADB2
-8FD2B2 E7ADB3
-8FD2B3 E7ADB7
-8FD2B4 E7AE84
-8FD2B5 E7AE89
-8FD2B6 E7AE8E
-8FD2B7 E7AE90
-8FD2B8 E7AE91
-8FD2B9 E7AE96
-8FD2BA E7AE9B
-8FD2BB E7AE9E
-8FD2BC E7AEA0
-8FD2BD E7AEA5
-8FD2BE E7AEAC
-8FD2BF E7AEAF
-8FD2C0 E7AEB0
-8FD2C1 E7AEB2
-8FD2C2 E7AEB5
-8FD2C3 E7AEB6
-8FD2C4 E7AEBA
-8FD2C5 E7AEBB
-8FD2C6 E7AEBC
-8FD2C7 E7AEBD
-8FD2C8 E7AF82
-8FD2C9 E7AF85
-8FD2CA E7AF88
-8FD2CB E7AF8A
-8FD2CC E7AF94
-8FD2CD E7AF96
-8FD2CE E7AF97
-8FD2CF E7AF99
-8FD2D0 E7AF9A
-8FD2D1 E7AF9B
-8FD2D2 E7AFA8
-8FD2D3 E7AFAA
-8FD2D4 E7AFB2
-8FD2D5 E7AFB4
-8FD2D6 E7AFB5
-8FD2D7 E7AFB8
-8FD2D8 E7AFB9
-8FD2D9 E7AFBA
-8FD2DA E7AFBC
-8FD2DB E7AFBE
-8FD2DC E7B081
-8FD2DD E7B082
-8FD2DE E7B083
-8FD2DF E7B084
-8FD2E0 E7B086
-8FD2E1 E7B089
-8FD2E2 E7B08B
-8FD2E3 E7B08C
-8FD2E4 E7B08E
-8FD2E5 E7B08F
-8FD2E6 E7B099
-8FD2E7 E7B09B
-8FD2E8 E7B0A0
-8FD2E9 E7B0A5
-8FD2EA E7B0A6
-8FD2EB E7B0A8
-8FD2EC E7B0AC
-8FD2ED E7B0B1
-8FD2EE E7B0B3
-8FD2EF E7B0B4
-8FD2F0 E7B0B6
-8FD2F1 E7B0B9
-8FD2F2 E7B0BA
-8FD2F3 E7B186
-8FD2F4 E7B18A
-8FD2F5 E7B195
-8FD2F6 E7B191
-8FD2F7 E7B192
-8FD2F8 E7B193
-8FD2F9 E7B199
-8FD2FA E7B19A
-8FD2FB E7B19B
-8FD2FC E7B19C
-8FD2FD E7B19D
-8FD2FE E7B19E
-8FD3A1 E7B1A1
-8FD3A2 E7B1A3
-8FD3A3 E7B1A7
-8FD3A4 E7B1A9
-8FD3A5 E7B1AD
-8FD3A6 E7B1AE
-8FD3A7 E7B1B0
-8FD3A8 E7B1B2
-8FD3A9 E7B1B9
-8FD3AA E7B1BC
-8FD3AB E7B1BD
-8FD3AC E7B286
-8FD3AD E7B287
-8FD3AE E7B28F
-8FD3AF E7B294
-8FD3B0 E7B29E
-8FD3B1 E7B2A0
-8FD3B2 E7B2A6
-8FD3B3 E7B2B0
-8FD3B4 E7B2B6
-8FD3B5 E7B2B7
-8FD3B6 E7B2BA
-8FD3B7 E7B2BB
-8FD3B8 E7B2BC
-8FD3B9 E7B2BF
-8FD3BA E7B384
-8FD3BB E7B387
-8FD3BC E7B388
-8FD3BD E7B389
-8FD3BE E7B38D
-8FD3BF E7B38F
-8FD3C0 E7B393
-8FD3C1 E7B394
-8FD3C2 E7B395
-8FD3C3 E7B397
-8FD3C4 E7B399
-8FD3C5 E7B39A
-8FD3C6 E7B39D
-8FD3C7 E7B3A6
-8FD3C8 E7B3A9
-8FD3C9 E7B3AB
-8FD3CA E7B3B5
-8FD3CB E7B483
-8FD3CC E7B487
-8FD3CD E7B488
-8FD3CE E7B489
-8FD3CF E7B48F
-8FD3D0 E7B491
-8FD3D1 E7B492
-8FD3D2 E7B493
-8FD3D3 E7B496
-8FD3D4 E7B49D
-8FD3D5 E7B49E
-8FD3D6 E7B4A3
-8FD3D7 E7B4A6
-8FD3D8 E7B4AA
-8FD3D9 E7B4AD
-8FD3DA E7B4B1
-8FD3DB E7B4BC
-8FD3DC E7B4BD
-8FD3DD E7B4BE
-8FD3DE E7B580
-8FD3DF E7B581
-8FD3E0 E7B587
-8FD3E1 E7B588
-8FD3E2 E7B58D
-8FD3E3 E7B591
-8FD3E4 E7B593
-8FD3E5 E7B597
-8FD3E6 E7B599
-8FD3E7 E7B59A
-8FD3E8 E7B59C
-8FD3E9 E7B59D
-8FD3EA E7B5A5
-8FD3EB E7B5A7
-8FD3EC E7B5AA
-8FD3ED E7B5B0
-8FD3EE E7B5B8
-8FD3EF E7B5BA
-8FD3F0 E7B5BB
-8FD3F1 E7B5BF
-8FD3F2 E7B681
-8FD3F3 E7B682
-8FD3F4 E7B683
-8FD3F5 E7B685
-8FD3F6 E7B686
-8FD3F7 E7B688
-8FD3F8 E7B68B
-8FD3F9 E7B68C
-8FD3FA E7B68D
-8FD3FB E7B691
-8FD3FC E7B696
-8FD3FD E7B697
-8FD3FE E7B69D
-8FD4A1 E7B69E
-8FD4A2 E7B6A6
-8FD4A3 E7B6A7
-8FD4A4 E7B6AA
-8FD4A5 E7B6B3
-8FD4A6 E7B6B6
-8FD4A7 E7B6B7
-8FD4A8 E7B6B9
-8FD4A9 E7B782
-8FD4AA E7B783
-8FD4AB E7B784
-8FD4AC E7B785
-8FD4AD E7B786
-8FD4AE E7B78C
-8FD4AF E7B78D
-8FD4B0 E7B78E
-8FD4B1 E7B797
-8FD4B2 E7B799
-8FD4B3 E7B880
-8FD4B4 E7B7A2
-8FD4B5 E7B7A5
-8FD4B6 E7B7A6
-8FD4B7 E7B7AA
-8FD4B8 E7B7AB
-8FD4B9 E7B7AD
-8FD4BA E7B7B1
-8FD4BB E7B7B5
-8FD4BC E7B7B6
-8FD4BD E7B7B9
-8FD4BE E7B7BA
-8FD4BF E7B888
-8FD4C0 E7B890
-8FD4C1 E7B891
-8FD4C2 E7B895
-8FD4C3 E7B897
-8FD4C4 E7B89C
-8FD4C5 E7B89D
-8FD4C6 E7B8A0
-8FD4C7 E7B8A7
-8FD4C8 E7B8A8
-8FD4C9 E7B8AC
-8FD4CA E7B8AD
-8FD4CB E7B8AF
-8FD4CC E7B8B3
-8FD4CD E7B8B6
-8FD4CE E7B8BF
-8FD4CF E7B984
-8FD4D0 E7B985
-8FD4D1 E7B987
-8FD4D2 E7B98E
-8FD4D3 E7B990
-8FD4D4 E7B992
-8FD4D5 E7B998
-8FD4D6 E7B99F
-8FD4D7 E7B9A1
-8FD4D8 E7B9A2
-8FD4D9 E7B9A5
-8FD4DA E7B9AB
-8FD4DB E7B9AE
-8FD4DC E7B9AF
-8FD4DD E7B9B3
-8FD4DE E7B9B8
-8FD4DF E7B9BE
-8FD4E0 E7BA81
-8FD4E1 E7BA86
-8FD4E2 E7BA87
-8FD4E3 E7BA8A
-8FD4E4 E7BA8D
-8FD4E5 E7BA91
-8FD4E6 E7BA95
-8FD4E7 E7BA98
-8FD4E8 E7BA9A
-8FD4E9 E7BA9D
-8FD4EA E7BA9E
-8FD4EB E7BCBC
-8FD4EC E7BCBB
-8FD4ED E7BCBD
-8FD4EE E7BCBE
-8FD4EF E7BCBF
-8FD4F0 E7BD83
-8FD4F1 E7BD84
-8FD4F2 E7BD87
-8FD4F3 E7BD8F
-8FD4F4 E7BD92
-8FD4F5 E7BD93
-8FD4F6 E7BD9B
-8FD4F7 E7BD9C
-8FD4F8 E7BD9D
-8FD4F9 E7BDA1
-8FD4FA E7BDA3
-8FD4FB E7BDA4
-8FD4FC E7BDA5
-8FD4FD E7BDA6
-8FD4FE E7BDAD
-8FD5A1 E7BDB1
-8FD5A2 E7BDBD
-8FD5A3 E7BDBE
-8FD5A4 E7BDBF
-8FD5A5 E7BE80
-8FD5A6 E7BE8B
-8FD5A7 E7BE8D
-8FD5A8 E7BE8F
-8FD5A9 E7BE90
-8FD5AA E7BE91
-8FD5AB E7BE96
-8FD5AC E7BE97
-8FD5AD E7BE9C
-8FD5AE E7BEA1
-8FD5AF E7BEA2
-8FD5B0 E7BEA6
-8FD5B1 E7BEAA
-8FD5B2 E7BEAD
-8FD5B3 E7BEB4
-8FD5B4 E7BEBC
-8FD5B5 E7BEBF
-8FD5B6 E7BF80
-8FD5B7 E7BF83
-8FD5B8 E7BF88
-8FD5B9 E7BF8E
-8FD5BA E7BF8F
-8FD5BB E7BF9B
-8FD5BC E7BF9F
-8FD5BD E7BFA3
-8FD5BE E7BFA5
-8FD5BF E7BFA8
-8FD5C0 E7BFAC
-8FD5C1 E7BFAE
-8FD5C2 E7BFAF
-8FD5C3 E7BFB2
-8FD5C4 E7BFBA
-8FD5C5 E7BFBD
-8FD5C6 E7BFBE
-8FD5C7 E7BFBF
-8FD5C8 E88087
-8FD5C9 E88088
-8FD5CA E8808A
-8FD5CB E8808D
-8FD5CC E8808E
-8FD5CD E8808F
-8FD5CE E88091
-8FD5CF E88093
-8FD5D0 E88094
-8FD5D1 E88096
-8FD5D2 E8809D
-8FD5D3 E8809E
-8FD5D4 E8809F
-8FD5D5 E880A0
-8FD5D6 E880A4
-8FD5D7 E880A6
-8FD5D8 E880AC
-8FD5D9 E880AE
-8FD5DA E880B0
-8FD5DB E880B4
-8FD5DC E880B5
-8FD5DD E880B7
-8FD5DE E880B9
-8FD5DF E880BA
-8FD5E0 E880BC
-8FD5E1 E880BE
-8FD5E2 E88180
-8FD5E3 E88184
-8FD5E4 E881A0
-8FD5E5 E881A4
-8FD5E6 E881A6
-8FD5E7 E881AD
-8FD5E8 E881B1
-8FD5E9 E881B5
-8FD5EA E88281
-8FD5EB E88288
-8FD5EC E8828E
-8FD5ED E8829C
-8FD5EE E8829E
-8FD5EF E882A6
-8FD5F0 E882A7
-8FD5F1 E882AB
-8FD5F2 E882B8
-8FD5F3 E882B9
-8FD5F4 E88388
-8FD5F5 E8838D
-8FD5F6 E8838F
-8FD5F7 E88392
-8FD5F8 E88394
-8FD5F9 E88395
-8FD5FA E88397
-8FD5FB E88398
-8FD5FC E883A0
-8FD5FD E883AD
-8FD5FE E883AE
-8FD6A1 E883B0
-8FD6A2 E883B2
-8FD6A3 E883B3
-8FD6A4 E883B6
-8FD6A5 E883B9
-8FD6A6 E883BA
-8FD6A7 E883BE
-8FD6A8 E88483
-8FD6A9 E8848B
-8FD6AA E88496
-8FD6AB E88497
-8FD6AC E88498
-8FD6AD E8849C
-8FD6AE E8849E
-8FD6AF E884A0
-8FD6B0 E884A4
-8FD6B1 E884A7
-8FD6B2 E884AC
-8FD6B3 E884B0
-8FD6B4 E884B5
-8FD6B5 E884BA
-8FD6B6 E884BC
-8FD6B7 E88585
-8FD6B8 E88587
-8FD6B9 E8858A
-8FD6BA E8858C
-8FD6BB E88592
-8FD6BC E88597
-8FD6BD E885A0
-8FD6BE E885A1
-8FD6BF E885A7
-8FD6C0 E885A8
-8FD6C1 E885A9
-8FD6C2 E885AD
-8FD6C3 E885AF
-8FD6C4 E885B7
-8FD6C5 E88681
-8FD6C6 E88690
-8FD6C7 E88684
-8FD6C8 E88685
-8FD6C9 E88686
-8FD6CA E8868B
-8FD6CB E8868E
-8FD6CC E88696
-8FD6CD E88698
-8FD6CE E8869B
-8FD6CF E8869E
-8FD6D0 E886A2
-8FD6D1 E886AE
-8FD6D2 E886B2
-8FD6D3 E886B4
-8FD6D4 E886BB
-8FD6D5 E8878B
-8FD6D6 E88783
-8FD6D7 E88785
-8FD6D8 E8878A
-8FD6D9 E8878E
-8FD6DA E8878F
-8FD6DB E88795
-8FD6DC E88797
-8FD6DD E8879B
-8FD6DE E8879D
-8FD6DF E8879E
-8FD6E0 E887A1
-8FD6E1 E887A4
-8FD6E2 E887AB
-8FD6E3 E887AC
-8FD6E4 E887B0
-8FD6E5 E887B1
-8FD6E6 E887B2
-8FD6E7 E887B5
-8FD6E8 E887B6
-8FD6E9 E887B8
-8FD6EA E887B9
-8FD6EB E887BD
-8FD6EC E887BF
-8FD6ED E88880
-8FD6EE E88883
-8FD6EF E8888F
-8FD6F0 E88893
-8FD6F1 E88894
-8FD6F2 E88899
-8FD6F3 E8889A
-8FD6F4 E8889D
-8FD6F5 E888A1
-8FD6F6 E888A2
-8FD6F7 E888A8
-8FD6F8 E888B2
-8FD6F9 E888B4
-8FD6FA E888BA
-8FD6FB E88983
-8FD6FC E88984
-8FD6FD E88985
-8FD6FE E88986
-8FD7A1 E8898B
-8FD7A2 E8898E
-8FD7A3 E8898F
-8FD7A4 E88991
-8FD7A5 E88996
-8FD7A6 E8899C
-8FD7A7 E889A0
-8FD7A8 E889A3
-8FD7A9 E889A7
-8FD7AA E889AD
-8FD7AB E889B4
-8FD7AC E889BB
-8FD7AD E889BD
-8FD7AE E889BF
-8FD7AF E88A80
-8FD7B0 E88A81
-8FD7B1 E88A83
-8FD7B2 E88A84
-8FD7B3 E88A87
-8FD7B4 E88A89
-8FD7B5 E88A8A
-8FD7B6 E88A8E
-8FD7B7 E88A91
-8FD7B8 E88A94
-8FD7B9 E88A96
-8FD7BA E88A98
-8FD7BB E88A9A
-8FD7BC E88A9B
-8FD7BD E88AA0
-8FD7BE E88AA1
-8FD7BF E88AA3
-8FD7C0 E88AA4
-8FD7C1 E88AA7
-8FD7C2 E88AA8
-8FD7C3 E88AA9
-8FD7C4 E88AAA
-8FD7C5 E88AAE
-8FD7C6 E88AB0
-8FD7C7 E88AB2
-8FD7C8 E88AB4
-8FD7C9 E88AB7
-8FD7CA E88ABA
-8FD7CB E88ABC
-8FD7CC E88ABE
-8FD7CD E88ABF
-8FD7CE E88B86
-8FD7CF E88B90
-8FD7D0 E88B95
-8FD7D1 E88B9A
-8FD7D2 E88BA0
-8FD7D3 E88BA2
-8FD7D4 E88BA4
-8FD7D5 E88BA8
-8FD7D6 E88BAA
-8FD7D7 E88BAD
-8FD7D8 E88BAF
-8FD7D9 E88BB6
-8FD7DA E88BB7
-8FD7DB E88BBD
-8FD7DC E88BBE
-8FD7DD E88C80
-8FD7DE E88C81
-8FD7DF E88C87
-8FD7E0 E88C88
-8FD7E1 E88C8A
-8FD7E2 E88C8B
-8FD7E3 E88D94
-8FD7E4 E88C9B
-8FD7E5 E88C9D
-8FD7E6 E88C9E
-8FD7E7 E88C9F
-8FD7E8 E88CA1
-8FD7E9 E88CA2
-8FD7EA E88CAC
-8FD7EB E88CAD
-8FD7EC E88CAE
-8FD7ED E88CB0
-8FD7EE E88CB3
-8FD7EF E88CB7
-8FD7F0 E88CBA
-8FD7F1 E88CBC
-8FD7F2 E88CBD
-8FD7F3 E88D82
-8FD7F4 E88D83
-8FD7F5 E88D84
-8FD7F6 E88D87
-8FD7F7 E88D8D
-8FD7F8 E88D8E
-8FD7F9 E88D91
-8FD7FA E88D95
-8FD7FB E88D96
-8FD7FC E88D97
-8FD7FD E88DB0
-8FD7FE E88DB8
-8FD8A1 E88DBD
-8FD8A2 E88DBF
-8FD8A3 E88E80
-8FD8A4 E88E82
-8FD8A5 E88E84
-8FD8A6 E88E86
-8FD8A7 E88E8D
-8FD8A8 E88E92
-8FD8A9 E88E94
-8FD8AA E88E95
-8FD8AB E88E98
-8FD8AC E88E99
-8FD8AD E88E9B
-8FD8AE E88E9C
-8FD8AF E88E9D
-8FD8B0 E88EA6
-8FD8B1 E88EA7
-8FD8B2 E88EA9
-8FD8B3 E88EAC
-8FD8B4 E88EBE
-8FD8B5 E88EBF
-8FD8B6 E88F80
-8FD8B7 E88F87
-8FD8B8 E88F89
-8FD8B9 E88F8F
-8FD8BA E88F90
-8FD8BB E88F91
-8FD8BC E88F94
-8FD8BD E88F9D
-8FD8BE E88D93
-8FD8BF E88FA8
-8FD8C0 E88FAA
-8FD8C1 E88FB6
-8FD8C2 E88FB8
-8FD8C3 E88FB9
-8FD8C4 E88FBC
-8FD8C5 E89081
-8FD8C6 E89086
-8FD8C7 E8908A
-8FD8C8 E8908F
-8FD8C9 E89091
-8FD8CA E89095
-8FD8CB E89099
-8FD8CC E88EAD
-8FD8CD E890AF
-8FD8CE E890B9
-8FD8CF E89185
-8FD8D0 E89187
-8FD8D1 E89188
-8FD8D2 E8918A
-8FD8D3 E8918D
-8FD8D4 E8918F
-8FD8D5 E89191
-8FD8D6 E89192
-8FD8D7 E89196
-8FD8D8 E89198
-8FD8D9 E89199
-8FD8DA E8919A
-8FD8DB E8919C
-8FD8DC E891A0
-8FD8DD E891A4
-8FD8DE E891A5
-8FD8DF E891A7
-8FD8E0 E891AA
-8FD8E1 E891B0
-8FD8E2 E891B3
-8FD8E3 E891B4
-8FD8E4 E891B6
-8FD8E5 E891B8
-8FD8E6 E891BC
-8FD8E7 E891BD
-8FD8E8 E89281
-8FD8E9 E89285
-8FD8EA E89292
-8FD8EB E89293
-8FD8EC E89295
-8FD8ED E8929E
-8FD8EE E892A6
-8FD8EF E892A8
-8FD8F0 E892A9
-8FD8F1 E892AA
-8FD8F2 E892AF
-8FD8F3 E892B1
-8FD8F4 E892B4
-8FD8F5 E892BA
-8FD8F6 E892BD
-8FD8F7 E892BE
-8FD8F8 E89380
-8FD8F9 E89382
-8FD8FA E89387
-8FD8FB E89388
-8FD8FC E8938C
-8FD8FD E8938F
-8FD8FE E89393
-8FD9A1 E8939C
-8FD9A2 E893A7
-8FD9A3 E893AA
-8FD9A4 E893AF
-8FD9A5 E893B0
-8FD9A6 E893B1
-8FD9A7 E893B2
-8FD9A8 E893B7
-8FD9A9 E894B2
-8FD9AA E893BA
-8FD9AB E893BB
-8FD9AC E893BD
-8FD9AD E89482
-8FD9AE E89483
-8FD9AF E89487
-8FD9B0 E8948C
-8FD9B1 E8948E
-8FD9B2 E89490
-8FD9B3 E8949C
-8FD9B4 E8949E
-8FD9B5 E894A2
-8FD9B6 E894A3
-8FD9B7 E894A4
-8FD9B8 E894A5
-8FD9B9 E894A7
-8FD9BA E894AA
-8FD9BB E894AB
-8FD9BC E894AF
-8FD9BD E894B3
-8FD9BE E894B4
-8FD9BF E894B6
-8FD9C0 E894BF
-8FD9C1 E89586
-8FD9C2 E8958F
-8FD9C3 E89590
-8FD9C4 E89591
-8FD9C5 E89592
-8FD9C6 E89593
-8FD9C7 E89596
-8FD9C8 E89599
-8FD9C9 E8959C
-8FD9CA E8959D
-8FD9CB E8959E
-8FD9CC E8959F
-8FD9CD E895A0
-8FD9CE E895A1
-8FD9CF E895A2
-8FD9D0 E895A4
-8FD9D1 E895AB
-8FD9D2 E895AF
-8FD9D3 E895B9
-8FD9D4 E895BA
-8FD9D5 E895BB
-8FD9D6 E895BD
-8FD9D7 E895BF
-8FD9D8 E89681
-8FD9D9 E89685
-8FD9DA E89686
-8FD9DB E89689
-8FD9DC E8968B
-8FD9DD E8968C
-8FD9DE E8968F
-8FD9DF E89693
-8FD9E0 E89698
-8FD9E1 E8969D
-8FD9E2 E8969F
-8FD9E3 E896A0
-8FD9E4 E896A2
-8FD9E5 E896A5
-8FD9E6 E896A7
-8FD9E7 E896B4
-8FD9E8 E896B6
-8FD9E9 E896B7
-8FD9EA E896B8
-8FD9EB E896BC
-8FD9EC E896BD
-8FD9ED E896BE
-8FD9EE E896BF
-8FD9EF E89782
-8FD9F0 E89787
-8FD9F1 E8978A
-8FD9F2 E8978B
-8FD9F3 E8978E
-8FD9F4 E896AD
-8FD9F5 E89798
-8FD9F6 E8979A
-8FD9F7 E8979F
-8FD9F8 E897A0
-8FD9F9 E897A6
-8FD9FA E897A8
-8FD9FB E897AD
-8FD9FC E897B3
-8FD9FD E897B6
-8FD9FE E897BC
-8FDAA1 E897BF
-8FDAA2 E89880
-8FDAA3 E89884
-8FDAA4 E89885
-8FDAA5 E8988D
-8FDAA6 E8988E
-8FDAA7 E89890
-8FDAA8 E89891
-8FDAA9 E89892
-8FDAAA E89898
-8FDAAB E89899
-8FDAAC E8989B
-8FDAAD E8989E
-8FDAAE E898A1
-8FDAAF E898A7
-8FDAB0 E898A9
-8FDAB1 E898B6
-8FDAB2 E898B8
-8FDAB3 E898BA
-8FDAB4 E898BC
-8FDAB5 E898BD
-8FDAB6 E89980
-8FDAB7 E89982
-8FDAB8 E89986
-8FDAB9 E89992
-8FDABA E89993
-8FDABB E89996
-8FDABC E89997
-8FDABD E89998
-8FDABE E89999
-8FDABF E8999D
-8FDAC0 E899A0
-8FDAC1 E899A1
-8FDAC2 E899A2
-8FDAC3 E899A3
-8FDAC4 E899A4
-8FDAC5 E899A9
-8FDAC6 E899AC
-8FDAC7 E899AF
-8FDAC8 E899B5
-8FDAC9 E899B6
-8FDACA E899B7
-8FDACB E899BA
-8FDACC E89A8D
-8FDACD E89A91
-8FDACE E89A96
-8FDACF E89A98
-8FDAD0 E89A9A
-8FDAD1 E89A9C
-8FDAD2 E89AA1
-8FDAD3 E89AA6
-8FDAD4 E89AA7
-8FDAD5 E89AA8
-8FDAD6 E89AAD
-8FDAD7 E89AB1
-8FDAD8 E89AB3
-8FDAD9 E89AB4
-8FDADA E89AB5
-8FDADB E89AB7
-8FDADC E89AB8
-8FDADD E89AB9
-8FDADE E89ABF
-8FDADF E89B80
-8FDAE0 E89B81
-8FDAE1 E89B83
-8FDAE2 E89B85
-8FDAE3 E89B91
-8FDAE4 E89B92
-8FDAE5 E89B95
-8FDAE6 E89B97
-8FDAE7 E89B9A
-8FDAE8 E89B9C
-8FDAE9 E89BA0
-8FDAEA E89BA3
-8FDAEB E89BA5
-8FDAEC E89BA7
-8FDAED E89A88
-8FDAEE E89BBA
-8FDAEF E89BBC
-8FDAF0 E89BBD
-8FDAF1 E89C84
-8FDAF2 E89C85
-8FDAF3 E89C87
-8FDAF4 E89C8B
-8FDAF5 E89C8E
-8FDAF6 E89C8F
-8FDAF7 E89C90
-8FDAF8 E89C93
-8FDAF9 E89C94
-8FDAFA E89C99
-8FDAFB E89C9E
-8FDAFC E89C9F
-8FDAFD E89CA1
-8FDAFE E89CA3
-8FDBA1 E89CA8
-8FDBA2 E89CAE
-8FDBA3 E89CAF
-8FDBA4 E89CB1
-8FDBA5 E89CB2
-8FDBA6 E89CB9
-8FDBA7 E89CBA
-8FDBA8 E89CBC
-8FDBA9 E89CBD
-8FDBAA E89CBE
-8FDBAB E89D80
-8FDBAC E89D83
-8FDBAD E89D85
-8FDBAE E89D8D
-8FDBAF E89D98
-8FDBB0 E89D9D
-8FDBB1 E89DA1
-8FDBB2 E89DA4
-8FDBB3 E89DA5
-8FDBB4 E89DAF
-8FDBB5 E89DB1
-8FDBB6 E89DB2
-8FDBB7 E89DBB
-8FDBB8 E89E83
-8FDBB9 E89E84
-8FDBBA E89E85
-8FDBBB E89E86
-8FDBBC E89E87
-8FDBBD E89E88
-8FDBBE E89E89
-8FDBBF E89E8B
-8FDBC0 E89E8C
-8FDBC1 E89E90
-8FDBC2 E89E93
-8FDBC3 E89E95
-8FDBC4 E89E97
-8FDBC5 E89E98
-8FDBC6 E89E99
-8FDBC7 E89E9E
-8FDBC8 E89EA0
-8FDBC9 E89EA3
-8FDBCA E89EA7
-8FDBCB E89EAC
-8FDBCC E89EAD
-8FDBCD E89EAE
-8FDBCE E89EB1
-8FDBCF E89EB5
-8FDBD0 E89EBE
-8FDBD1 E89EBF
-8FDBD2 E89F81
-8FDBD3 E89F88
-8FDBD4 E89F89
-8FDBD5 E89F8A
-8FDBD6 E89F8E
-8FDBD7 E89F95
-8FDBD8 E89F96
-8FDBD9 E89F99
-8FDBDA E89F9A
-8FDBDB E89F9C
-8FDBDC E89F9F
-8FDBDD E89FA2
-8FDBDE E89FA3
-8FDBDF E89FA4
-8FDBE0 E89FAA
-8FDBE1 E89FAB
-8FDBE2 E89FAD
-8FDBE3 E89FB1
-8FDBE4 E89FB3
-8FDBE5 E89FB8
-8FDBE6 E89FBA
-8FDBE7 E89FBF
-8FDBE8 E8A081
-8FDBE9 E8A083
-8FDBEA E8A086
-8FDBEB E8A089
-8FDBEC E8A08A
-8FDBED E8A08B
-8FDBEE E8A090
-8FDBEF E8A099
-8FDBF0 E8A092
-8FDBF1 E8A093
-8FDBF2 E8A094
-8FDBF3 E8A098
-8FDBF4 E8A09A
-8FDBF5 E8A09B
-8FDBF6 E8A09C
-8FDBF7 E8A09E
-8FDBF8 E8A09F
-8FDBF9 E8A0A8
-8FDBFA E8A0AD
-8FDBFB E8A0AE
-8FDBFC E8A0B0
-8FDBFD E8A0B2
-8FDBFE E8A0B5
-8FDCA1 E8A0BA
-8FDCA2 E8A0BC
-8FDCA3 E8A181
-8FDCA4 E8A183
-8FDCA5 E8A185
-8FDCA6 E8A188
-8FDCA7 E8A189
-8FDCA8 E8A18A
-8FDCA9 E8A18B
-8FDCAA E8A18E
-8FDCAB E8A191
-8FDCAC E8A195
-8FDCAD E8A196
-8FDCAE E8A198
-8FDCAF E8A19A
-8FDCB0 E8A19C
-8FDCB1 E8A19F
-8FDCB2 E8A1A0
-8FDCB3 E8A1A4
-8FDCB4 E8A1A9
-8FDCB5 E8A1B1
-8FDCB6 E8A1B9
-8FDCB7 E8A1BB
-8FDCB8 E8A280
-8FDCB9 E8A298
-8FDCBA E8A29A
-8FDCBB E8A29B
-8FDCBC E8A29C
-8FDCBD E8A29F
-8FDCBE E8A2A0
-8FDCBF E8A2A8
-8FDCC0 E8A2AA
-8FDCC1 E8A2BA
-8FDCC2 E8A2BD
-8FDCC3 E8A2BE
-8FDCC4 E8A380
-8FDCC5 E8A38A
-8FDCC6 E8A38B
-8FDCC7 E8A38C
-8FDCC8 E8A38D
-8FDCC9 E8A38E
-8FDCCA E8A391
-8FDCCB E8A392
-8FDCCC E8A393
-8FDCCD E8A39B
-8FDCCE E8A39E
-8FDCCF E8A3A7
-8FDCD0 E8A3AF
-8FDCD1 E8A3B0
-8FDCD2 E8A3B1
-8FDCD3 E8A3B5
-8FDCD4 E8A3B7
-8FDCD5 E8A481
-8FDCD6 E8A486
-8FDCD7 E8A48D
-8FDCD8 E8A48E
-8FDCD9 E8A48F
-8FDCDA E8A495
-8FDCDB E8A496
-8FDCDC E8A498
-8FDCDD E8A499
-8FDCDE E8A49A
-8FDCDF E8A49C
-8FDCE0 E8A4A0
-8FDCE1 E8A4A6
-8FDCE2 E8A4A7
-8FDCE3 E8A4A8
-8FDCE4 E8A4B0
-8FDCE5 E8A4B1
-8FDCE6 E8A4B2
-8FDCE7 E8A4B5
-8FDCE8 E8A4B9
-8FDCE9 E8A4BA
-8FDCEA E8A4BE
-8FDCEB E8A580
-8FDCEC E8A582
-8FDCED E8A585
-8FDCEE E8A586
-8FDCEF E8A589
-8FDCF0 E8A58F
-8FDCF1 E8A592
-8FDCF2 E8A597
-8FDCF3 E8A59A
-8FDCF4 E8A59B
-8FDCF5 E8A59C
-8FDCF6 E8A5A1
-8FDCF7 E8A5A2
-8FDCF8 E8A5A3
-8FDCF9 E8A5AB
-8FDCFA E8A5AE
-8FDCFB E8A5B0
-8FDCFC E8A5B3
-8FDCFD E8A5B5
-8FDCFE E8A5BA
-8FDDA1 E8A5BB
-8FDDA2 E8A5BC
-8FDDA3 E8A5BD
-8FDDA4 E8A689
-8FDDA5 E8A68D
-8FDDA6 E8A690
-8FDDA7 E8A694
-8FDDA8 E8A695
-8FDDA9 E8A69B
-8FDDAA E8A69C
-8FDDAB E8A69F
-8FDDAC E8A6A0
-8FDDAD E8A6A5
-8FDDAE E8A6B0
-8FDDAF E8A6B4
-8FDDB0 E8A6B5
-8FDDB1 E8A6B6
-8FDDB2 E8A6B7
-8FDDB3 E8A6BC
-8FDDB4 E8A794
-8FDDB5 E8A795
-8FDDB6 E8A796
-8FDDB7 E8A797
-8FDDB8 E8A798
-8FDDB9 E8A7A5
-8FDDBA E8A7A9
-8FDDBB E8A7AB
-8FDDBC E8A7AD
-8FDDBD E8A7B1
-8FDDBE E8A7B3
-8FDDBF E8A7B6
-8FDDC0 E8A7B9
-8FDDC1 E8A7BD
-8FDDC2 E8A7BF
-8FDDC3 E8A884
-8FDDC4 E8A885
-8FDDC5 E8A887
-8FDDC6 E8A88F
-8FDDC7 E8A891
-8FDDC8 E8A892
-8FDDC9 E8A894
-8FDDCA E8A895
-8FDDCB E8A89E
-8FDDCC E8A8A0
-8FDDCD E8A8A2
-8FDDCE E8A8A4
-8FDDCF E8A8A6
-8FDDD0 E8A8AB
-8FDDD1 E8A8AC
-8FDDD2 E8A8AF
-8FDDD3 E8A8B5
-8FDDD4 E8A8B7
-8FDDD5 E8A8BD
-8FDDD6 E8A8BE
-8FDDD7 E8A980
-8FDDD8 E8A983
-8FDDD9 E8A985
-8FDDDA E8A987
-8FDDDB E8A989
-8FDDDC E8A98D
-8FDDDD E8A98E
-8FDDDE E8A993
-8FDDDF E8A996
-8FDDE0 E8A997
-8FDDE1 E8A998
-8FDDE2 E8A99C
-8FDDE3 E8A99D
-8FDDE4 E8A9A1
-8FDDE5 E8A9A5
-8FDDE6 E8A9A7
-8FDDE7 E8A9B5
-8FDDE8 E8A9B6
-8FDDE9 E8A9B7
-8FDDEA E8A9B9
-8FDDEB E8A9BA
-8FDDEC E8A9BB
-8FDDED E8A9BE
-8FDDEE E8A9BF
-8FDDEF E8AA80
-8FDDF0 E8AA83
-8FDDF1 E8AA86
-8FDDF2 E8AA8B
-8FDDF3 E8AA8F
-8FDDF4 E8AA90
-8FDDF5 E8AA92
-8FDDF6 E8AA96
-8FDDF7 E8AA97
-8FDDF8 E8AA99
-8FDDF9 E8AA9F
-8FDDFA E8AAA7
-8FDDFB E8AAA9
-8FDDFC E8AAAE
-8FDDFD E8AAAF
-8FDDFE E8AAB3
-8FDEA1 E8AAB6
-8FDEA2 E8AAB7
-8FDEA3 E8AABB
-8FDEA4 E8AABE
-8FDEA5 E8AB83
-8FDEA6 E8AB86
-8FDEA7 E8AB88
-8FDEA8 E8AB89
-8FDEA9 E8AB8A
-8FDEAA E8AB91
-8FDEAB E8AB93
-8FDEAC E8AB94
-8FDEAD E8AB95
-8FDEAE E8AB97
-8FDEAF E8AB9D
-8FDEB0 E8AB9F
-8FDEB1 E8ABAC
-8FDEB2 E8ABB0
-8FDEB3 E8ABB4
-8FDEB4 E8ABB5
-8FDEB5 E8ABB6
-8FDEB6 E8ABBC
-8FDEB7 E8ABBF
-8FDEB8 E8AC85
-8FDEB9 E8AC86
-8FDEBA E8AC8B
-8FDEBB E8AC91
-8FDEBC E8AC9C
-8FDEBD E8AC9E
-8FDEBE E8AC9F
-8FDEBF E8AC8A
-8FDEC0 E8ACAD
-8FDEC1 E8ACB0
-8FDEC2 E8ACB7
-8FDEC3 E8ACBC
-8FDEC4 E8AD82
-8FDEC5 E8AD83
-8FDEC6 E8AD84
-8FDEC7 E8AD85
-8FDEC8 E8AD86
-8FDEC9 E8AD88
-8FDECA E8AD92
-8FDECB E8AD93
-8FDECC E8AD94
-8FDECD E8AD99
-8FDECE E8AD8D
-8FDECF E8AD9E
-8FDED0 E8ADA3
-8FDED1 E8ADAD
-8FDED2 E8ADB6
-8FDED3 E8ADB8
-8FDED4 E8ADB9
-8FDED5 E8ADBC
-8FDED6 E8ADBE
-8FDED7 E8AE81
-8FDED8 E8AE84
-8FDED9 E8AE85
-8FDEDA E8AE8B
-8FDEDB E8AE8D
-8FDEDC E8AE8F
-8FDEDD E8AE94
-8FDEDE E8AE95
-8FDEDF E8AE9C
-8FDEE0 E8AE9E
-8FDEE1 E8AE9F
-8FDEE2 E8B0B8
-8FDEE3 E8B0B9
-8FDEE4 E8B0BD
-8FDEE5 E8B0BE
-8FDEE6 E8B185
-8FDEE7 E8B187
-8FDEE8 E8B189
-8FDEE9 E8B18B
-8FDEEA E8B18F
-8FDEEB E8B191
-8FDEEC E8B193
-8FDEED E8B194
-8FDEEE E8B197
-8FDEEF E8B198
-8FDEF0 E8B19B
-8FDEF1 E8B19D
-8FDEF2 E8B199
-8FDEF3 E8B1A3
-8FDEF4 E8B1A4
-8FDEF5 E8B1A6
-8FDEF6 E8B1A8
-8FDEF7 E8B1A9
-8FDEF8 E8B1AD
-8FDEF9 E8B1B3
-8FDEFA E8B1B5
-8FDEFB E8B1B6
-8FDEFC E8B1BB
-8FDEFD E8B1BE
-8FDEFE E8B286
-8FDFA1 E8B287
-8FDFA2 E8B28B
-8FDFA3 E8B290
-8FDFA4 E8B292
-8FDFA5 E8B293
-8FDFA6 E8B299
-8FDFA7 E8B29B
-8FDFA8 E8B29C
-8FDFA9 E8B2A4
-8FDFAA E8B2B9
-8FDFAB E8B2BA
-8FDFAC E8B385
-8FDFAD E8B386
-8FDFAE E8B389
-8FDFAF E8B38B
-8FDFB0 E8B38F
-8FDFB1 E8B396
-8FDFB2 E8B395
-8FDFB3 E8B399
-8FDFB4 E8B39D
-8FDFB5 E8B3A1
-8FDFB6 E8B3A8
-8FDFB7 E8B3AC
-8FDFB8 E8B3AF
-8FDFB9 E8B3B0
-8FDFBA E8B3B2
-8FDFBB E8B3B5
-8FDFBC E8B3B7
-8FDFBD E8B3B8
-8FDFBE E8B3BE
-8FDFBF E8B3BF
-8FDFC0 E8B481
-8FDFC1 E8B483
-8FDFC2 E8B489
-8FDFC3 E8B492
-8FDFC4 E8B497
-8FDFC5 E8B49B
-8FDFC6 E8B5A5
-8FDFC7 E8B5A9
-8FDFC8 E8B5AC
-8FDFC9 E8B5AE
-8FDFCA E8B5BF
-8FDFCB E8B682
-8FDFCC E8B684
-8FDFCD E8B688
-8FDFCE E8B68D
-8FDFCF E8B690
-8FDFD0 E8B691
-8FDFD1 E8B695
-8FDFD2 E8B69E
-8FDFD3 E8B69F
-8FDFD4 E8B6A0
-8FDFD5 E8B6A6
-8FDFD6 E8B6AB
-8FDFD7 E8B6AC
-8FDFD8 E8B6AF
-8FDFD9 E8B6B2
-8FDFDA E8B6B5
-8FDFDB E8B6B7
-8FDFDC E8B6B9
-8FDFDD E8B6BB
-8FDFDE E8B780
-8FDFDF E8B785
-8FDFE0 E8B786
-8FDFE1 E8B787
-8FDFE2 E8B788
-8FDFE3 E8B78A
-8FDFE4 E8B78E
-8FDFE5 E8B791
-8FDFE6 E8B794
-8FDFE7 E8B795
-8FDFE8 E8B797
-8FDFE9 E8B799
-8FDFEA E8B7A4
-8FDFEB E8B7A5
-8FDFEC E8B7A7
-8FDFED E8B7AC
-8FDFEE E8B7B0
-8FDFEF E8B6BC
-8FDFF0 E8B7B1
-8FDFF1 E8B7B2
-8FDFF2 E8B7B4
-8FDFF3 E8B7BD
-8FDFF4 E8B881
-8FDFF5 E8B884
-8FDFF6 E8B885
-8FDFF7 E8B886
-8FDFF8 E8B88B
-8FDFF9 E8B891
-8FDFFA E8B894
-8FDFFB E8B896
-8FDFFC E8B8A0
-8FDFFD E8B8A1
-8FDFFE E8B8A2
-8FE0A1 E8B8A3
-8FE0A2 E8B8A6
-8FE0A3 E8B8A7
-8FE0A4 E8B8B1
-8FE0A5 E8B8B3
-8FE0A6 E8B8B6
-8FE0A7 E8B8B7
-8FE0A8 E8B8B8
-8FE0A9 E8B8B9
-8FE0AA E8B8BD
-8FE0AB E8B980
-8FE0AC E8B981
-8FE0AD E8B98B
-8FE0AE E8B98D
-8FE0AF E8B98E
-8FE0B0 E8B98F
-8FE0B1 E8B994
-8FE0B2 E8B99B
-8FE0B3 E8B99C
-8FE0B4 E8B99D
-8FE0B5 E8B99E
-8FE0B6 E8B9A1
-8FE0B7 E8B9A2
-8FE0B8 E8B9A9
-8FE0B9 E8B9AC
-8FE0BA E8B9AD
-8FE0BB E8B9AF
-8FE0BC E8B9B0
-8FE0BD E8B9B1
-8FE0BE E8B9B9
-8FE0BF E8B9BA
-8FE0C0 E8B9BB
-8FE0C1 E8BA82
-8FE0C2 E8BA83
-8FE0C3 E8BA89
-8FE0C4 E8BA90
-8FE0C5 E8BA92
-8FE0C6 E8BA95
-8FE0C7 E8BA9A
-8FE0C8 E8BA9B
-8FE0C9 E8BA9D
-8FE0CA E8BA9E
-8FE0CB E8BAA2
-8FE0CC E8BAA7
-8FE0CD E8BAA9
-8FE0CE E8BAAD
-8FE0CF E8BAAE
-8FE0D0 E8BAB3
-8FE0D1 E8BAB5
-8FE0D2 E8BABA
-8FE0D3 E8BABB
-8FE0D4 E8BB80
-8FE0D5 E8BB81
-8FE0D6 E8BB83
-8FE0D7 E8BB84
-8FE0D8 E8BB87
-8FE0D9 E8BB8F
-8FE0DA E8BB91
-8FE0DB E8BB94
-8FE0DC E8BB9C
-8FE0DD E8BBA8
-8FE0DE E8BBAE
-8FE0DF E8BBB0
-8FE0E0 E8BBB1
-8FE0E1 E8BBB7
-8FE0E2 E8BBB9
-8FE0E3 E8BBBA
-8FE0E4 E8BBAD
-8FE0E5 E8BC80
-8FE0E6 E8BC82
-8FE0E7 E8BC87
-8FE0E8 E8BC88
-8FE0E9 E8BC8F
-8FE0EA E8BC90
-8FE0EB E8BC96
-8FE0EC E8BC97
-8FE0ED E8BC98
-8FE0EE E8BC9E
-8FE0EF E8BCA0
-8FE0F0 E8BCA1
-8FE0F1 E8BCA3
-8FE0F2 E8BCA5
-8FE0F3 E8BCA7
-8FE0F4 E8BCA8
-8FE0F5 E8BCAC
-8FE0F6 E8BCAD
-8FE0F7 E8BCAE
-8FE0F8 E8BCB4
-8FE0F9 E8BCB5
-8FE0FA E8BCB6
-8FE0FB E8BCB7
-8FE0FC E8BCBA
-8FE0FD E8BD80
-8FE0FE E8BD81
-8FE1A1 E8BD83
-8FE1A2 E8BD87
-8FE1A3 E8BD8F
-8FE1A4 E8BD91
-8FE1A5 E8BD92
-8FE1A6 E8BD93
-8FE1A7 E8BD94
-8FE1A8 E8BD95
-8FE1A9 E8BD98
-8FE1AA E8BD9D
-8FE1AB E8BD9E
-8FE1AC E8BDA5
-8FE1AD E8BE9D
-8FE1AE E8BEA0
-8FE1AF E8BEA1
-8FE1B0 E8BEA4
-8FE1B1 E8BEA5
-8FE1B2 E8BEA6
-8FE1B3 E8BEB5
-8FE1B4 E8BEB6
-8FE1B5 E8BEB8
-8FE1B6 E8BEBE
-8FE1B7 E8BF80
-8FE1B8 E8BF81
-8FE1B9 E8BF86
-8FE1BA E8BF8A
-8FE1BB E8BF8B
-8FE1BC E8BF8D
-8FE1BD E8BF90
-8FE1BE E8BF92
-8FE1BF E8BF93
-8FE1C0 E8BF95
-8FE1C1 E8BFA0
-8FE1C2 E8BFA3
-8FE1C3 E8BFA4
-8FE1C4 E8BFA8
-8FE1C5 E8BFAE
-8FE1C6 E8BFB1
-8FE1C7 E8BFB5
-8FE1C8 E8BFB6
-8FE1C9 E8BFBB
-8FE1CA E8BFBE
-8FE1CB E98082
-8FE1CC E98084
-8FE1CD E98088
-8FE1CE E9808C
-8FE1CF E98098
-8FE1D0 E9809B
-8FE1D1 E980A8
-8FE1D2 E980A9
-8FE1D3 E980AF
-8FE1D4 E980AA
-8FE1D5 E980AC
-8FE1D6 E980AD
-8FE1D7 E980B3
-8FE1D8 E980B4
-8FE1D9 E980B7
-8FE1DA E980BF
-8FE1DB E98183
-8FE1DC E98184
-8FE1DD E9818C
-8FE1DE E9819B
-8FE1DF E9819D
-8FE1E0 E981A2
-8FE1E1 E981A6
-8FE1E2 E981A7
-8FE1E3 E981AC
-8FE1E4 E981B0
-8FE1E5 E981B4
-8FE1E6 E981B9
-8FE1E7 E98285
-8FE1E8 E98288
-8FE1E9 E9828B
-8FE1EA E9828C
-8FE1EB E9828E
-8FE1EC E98290
-8FE1ED E98295
-8FE1EE E98297
-8FE1EF E98298
-8FE1F0 E98299
-8FE1F1 E9829B
-8FE1F2 E982A0
-8FE1F3 E982A1
-8FE1F4 E982A2
-8FE1F5 E982A5
-8FE1F6 E982B0
-8FE1F7 E982B2
-8FE1F8 E982B3
-8FE1F9 E982B4
-8FE1FA E982B6
-8FE1FB E982BD
-8FE1FC E9838C
-8FE1FD E982BE
-8FE1FE E98383
-8FE2A1 E98384
-8FE2A2 E98385
-8FE2A3 E98387
-8FE2A4 E98388
-8FE2A5 E98395
-8FE2A6 E98397
-8FE2A7 E98398
-8FE2A8 E98399
-8FE2A9 E9839C
-8FE2AA E9839D
-8FE2AB E9839F
-8FE2AC E983A5
-8FE2AD E98392
-8FE2AE E983B6
-8FE2AF E983AB
-8FE2B0 E983AF
-8FE2B1 E983B0
-8FE2B2 E983B4
-8FE2B3 E983BE
-8FE2B4 E983BF
-8FE2B5 E98480
-8FE2B6 E98484
-8FE2B7 E98485
-8FE2B8 E98486
-8FE2B9 E98488
-8FE2BA E9848D
-8FE2BB E98490
-8FE2BC E98494
-8FE2BD E98496
-8FE2BE E98497
-8FE2BF E98498
-8FE2C0 E9849A
-8FE2C1 E9849C
-8FE2C2 E9849E
-8FE2C3 E984A0
-8FE2C4 E984A5
-8FE2C5 E984A2
-8FE2C6 E984A3
-8FE2C7 E984A7
-8FE2C8 E984A9
-8FE2C9 E984AE
-8FE2CA E984AF
-8FE2CB E984B1
-8FE2CC E984B4
-8FE2CD E984B6
-8FE2CE E984B7
-8FE2CF E984B9
-8FE2D0 E984BA
-8FE2D1 E984BC
-8FE2D2 E984BD
-8FE2D3 E98583
-8FE2D4 E98587
-8FE2D5 E98588
-8FE2D6 E9858F
-8FE2D7 E98593
-8FE2D8 E98597
-8FE2D9 E98599
-8FE2DA E9859A
-8FE2DB E9859B
-8FE2DC E985A1
-8FE2DD E985A4
-8FE2DE E985A7
-8FE2DF E985AD
-8FE2E0 E985B4
-8FE2E1 E985B9
-8FE2E2 E985BA
-8FE2E3 E985BB
-8FE2E4 E98681
-8FE2E5 E98683
-8FE2E6 E98685
-8FE2E7 E98686
-8FE2E8 E9868A
-8FE2E9 E9868E
-8FE2EA E98691
-8FE2EB E98693
-8FE2EC E98694
-8FE2ED E98695
-8FE2EE E98698
-8FE2EF E9869E
-8FE2F0 E986A1
-8FE2F1 E986A6
-8FE2F2 E986A8
-8FE2F3 E986AC
-8FE2F4 E986AD
-8FE2F5 E986AE
-8FE2F6 E986B0
-8FE2F7 E986B1
-8FE2F8 E986B2
-8FE2F9 E986B3
-8FE2FA E986B6
-8FE2FB E986BB
-8FE2FC E986BC
-8FE2FD E986BD
-8FE2FE E986BF
-8FE3A1 E98782
-8FE3A2 E98783
-8FE3A3 E98785
-8FE3A4 E98793
-8FE3A5 E98794
-8FE3A6 E98797
-8FE3A7 E98799
-8FE3A8 E9879A
-8FE3A9 E9879E
-8FE3AA E987A4
-8FE3AB E987A5
-8FE3AC E987A9
-8FE3AD E987AA
-8FE3AE E987AC
-8FE3AF E987AD
-8FE3B0 E987AE
-8FE3B1 E987AF
-8FE3B2 E987B0
-8FE3B3 E987B1
-8FE3B4 E987B7
-8FE3B5 E987B9
-8FE3B6 E987BB
-8FE3B7 E987BD
-8FE3B8 E98880
-8FE3B9 E98881
-8FE3BA E98884
-8FE3BB E98885
-8FE3BC E98886
-8FE3BD E98887
-8FE3BE E98889
-8FE3BF E9888A
-8FE3C0 E9888C
-8FE3C1 E98890
-8FE3C2 E98892
-8FE3C3 E98893
-8FE3C4 E98896
-8FE3C5 E98898
-8FE3C6 E9889C
-8FE3C7 E9889D
-8FE3C8 E988A3
-8FE3C9 E988A4
-8FE3CA E988A5
-8FE3CB E988A6
-8FE3CC E988A8
-8FE3CD E988AE
-8FE3CE E988AF
-8FE3CF E988B0
-8FE3D0 E988B3
-8FE3D1 E988B5
-8FE3D2 E988B6
-8FE3D3 E988B8
-8FE3D4 E988B9
-8FE3D5 E988BA
-8FE3D6 E988BC
-8FE3D7 E988BE
-8FE3D8 E98980
-8FE3D9 E98982
-8FE3DA E98983
-8FE3DB E98986
-8FE3DC E98987
-8FE3DD E9898A
-8FE3DE E9898D
-8FE3DF E9898E
-8FE3E0 E9898F
-8FE3E1 E98991
-8FE3E2 E98998
-8FE3E3 E98999
-8FE3E4 E9899C
-8FE3E5 E9899D
-8FE3E6 E989A0
-8FE3E7 E989A1
-8FE3E8 E989A5
-8FE3E9 E989A7
-8FE3EA E989A8
-8FE3EB E989A9
-8FE3EC E989AE
-8FE3ED E989AF
-8FE3EE E989B0
-8FE3EF E989B5
-8FE3F0 E989B6
-8FE3F1 E989B7
-8FE3F2 E989B8
-8FE3F3 E989B9
-8FE3F4 E989BB
-8FE3F5 E989BC
-8FE3F6 E989BD
-8FE3F7 E989BF
-8FE3F8 E98A88
-8FE3F9 E98A89
-8FE3FA E98A8A
-8FE3FB E98A8D
-8FE3FC E98A8E
-8FE3FD E98A92
-8FE3FE E98A97
-8FE4A1 E98A99
-8FE4A2 E98A9F
-8FE4A3 E98AA0
-8FE4A4 E98AA4
-8FE4A5 E98AA5
-8FE4A6 E98AA7
-8FE4A7 E98AA8
-8FE4A8 E98AAB
-8FE4A9 E98AAF
-8FE4AA E98AB2
-8FE4AB E98AB6
-8FE4AC E98AB8
-8FE4AD E98ABA
-8FE4AE E98ABB
-8FE4AF E98ABC
-8FE4B0 E98ABD
-8FE4B1 E98ABF
-8FE4B2 E98B80
-8FE4B3 E98B81
-8FE4B4 E98B82
-8FE4B5 E98B83
-8FE4B6 E98B85
-8FE4B7 E98B86
-8FE4B8 E98B87
-8FE4B9 E98B88
-8FE4BA E98B8B
-8FE4BB E98B8C
-8FE4BC E98B8D
-8FE4BD E98B8E
-8FE4BE E98B90
-8FE4BF E98B93
-8FE4C0 E98B95
-8FE4C1 E98B97
-8FE4C2 E98B98
-8FE4C3 E98B99
-8FE4C4 E98B9C
-8FE4C5 E98B9D
-8FE4C6 E98B9F
-8FE4C7 E98BA0
-8FE4C8 E98BA1
-8FE4C9 E98BA3
-8FE4CA E98BA5
-8FE4CB E98BA7
-8FE4CC E98BA8
-8FE4CD E98BAC
-8FE4CE E98BAE
-8FE4CF E98BB0
-8FE4D0 E98BB9
-8FE4D1 E98BBB
-8FE4D2 E98BBF
-8FE4D3 E98C80
-8FE4D4 E98C82
-8FE4D5 E98C88
-8FE4D6 E98C8D
-8FE4D7 E98C91
-8FE4D8 E98C94
-8FE4D9 E98C95
-8FE4DA E98C9C
-8FE4DB E98C9D
-8FE4DC E98C9E
-8FE4DD E98C9F
-8FE4DE E98CA1
-8FE4DF E98CA4
-8FE4E0 E98CA5
-8FE4E1 E98CA7
-8FE4E2 E98CA9
-8FE4E3 E98CAA
-8FE4E4 E98CB3
-8FE4E5 E98CB4
-8FE4E6 E98CB6
-8FE4E7 E98CB7
-8FE4E8 E98D87
-8FE4E9 E98D88
-8FE4EA E98D89
-8FE4EB E98D90
-8FE4EC E98D91
-8FE4ED E98D92
-8FE4EE E98D95
-8FE4EF E98D97
-8FE4F0 E98D98
-8FE4F1 E98D9A
-8FE4F2 E98D9E
-8FE4F3 E98DA4
-8FE4F4 E98DA5
-8FE4F5 E98DA7
-8FE4F6 E98DA9
-8FE4F7 E98DAA
-8FE4F8 E98DAD
-8FE4F9 E98DAF
-8FE4FA E98DB0
-8FE4FB E98DB1
-8FE4FC E98DB3
-8FE4FD E98DB4
-8FE4FE E98DB6
-8FE5A1 E98DBA
-8FE5A2 E98DBD
-8FE5A3 E98DBF
-8FE5A4 E98E80
-8FE5A5 E98E81
-8FE5A6 E98E82
-8FE5A7 E98E88
-8FE5A8 E98E8A
-8FE5A9 E98E8B
-8FE5AA E98E8D
-8FE5AB E98E8F
-8FE5AC E98E92
-8FE5AD E98E95
-8FE5AE E98E98
-8FE5AF E98E9B
-8FE5B0 E98E9E
-8FE5B1 E98EA1
-8FE5B2 E98EA3
-8FE5B3 E98EA4
-8FE5B4 E98EA6
-8FE5B5 E98EA8
-8FE5B6 E98EAB
-8FE5B7 E98EB4
-8FE5B8 E98EB5
-8FE5B9 E98EB6
-8FE5BA E98EBA
-8FE5BB E98EA9
-8FE5BC E98F81
-8FE5BD E98F84
-8FE5BE E98F85
-8FE5BF E98F86
-8FE5C0 E98F87
-8FE5C1 E98F89
-8FE5C2 E98F8A
-8FE5C3 E98F8B
-8FE5C4 E98F8C
-8FE5C5 E98F8D
-8FE5C6 E98F93
-8FE5C7 E98F99
-8FE5C8 E98F9C
-8FE5C9 E98F9E
-8FE5CA E98F9F
-8FE5CB E98FA2
-8FE5CC E98FA6
-8FE5CD E98FA7
-8FE5CE E98FB9
-8FE5CF E98FB7
-8FE5D0 E98FB8
-8FE5D1 E98FBA
-8FE5D2 E98FBB
-8FE5D3 E98FBD
-8FE5D4 E99081
-8FE5D5 E99082
-8FE5D6 E99084
-8FE5D7 E99088
-8FE5D8 E99089
-8FE5D9 E9908D
-8FE5DA E9908E
-8FE5DB E9908F
-8FE5DC E99095
-8FE5DD E99096
-8FE5DE E99097
-8FE5DF E9909F
-8FE5E0 E990AE
-8FE5E1 E990AF
-8FE5E2 E990B1
-8FE5E3 E990B2
-8FE5E4 E990B3
-8FE5E5 E990B4
-8FE5E6 E990BB
-8FE5E7 E990BF
-8FE5E8 E990BD
-8FE5E9 E99183
-8FE5EA E99185
-8FE5EB E99188
-8FE5EC E9918A
-8FE5ED E9918C
-8FE5EE E99195
-8FE5EF E99199
-8FE5F0 E9919C
-8FE5F1 E9919F
-8FE5F2 E991A1
-8FE5F3 E991A3
-8FE5F4 E991A8
-8FE5F5 E991AB
-8FE5F6 E991AD
-8FE5F7 E991AE
-8FE5F8 E991AF
-8FE5F9 E991B1
-8FE5FA E991B2
-8FE5FB E99284
-8FE5FC E99283
-8FE5FD E995B8
-8FE5FE E995B9
-8FE6A1 E995BE
-8FE6A2 E99684
-8FE6A3 E99688
-8FE6A4 E9968C
-8FE6A5 E9968D
-8FE6A6 E9968E
-8FE6A7 E9969D
-8FE6A8 E9969E
-8FE6A9 E9969F
-8FE6AA E996A1
-8FE6AB E996A6
-8FE6AC E996A9
-8FE6AD E996AB
-8FE6AE E996AC
-8FE6AF E996B4
-8FE6B0 E996B6
-8FE6B1 E996BA
-8FE6B2 E996BD
-8FE6B3 E996BF
-8FE6B4 E99786
-8FE6B5 E99788
-8FE6B6 E99789
-8FE6B7 E9978B
-8FE6B8 E99790
-8FE6B9 E99791
-8FE6BA E99792
-8FE6BB E99793
-8FE6BC E99799
-8FE6BD E9979A
-8FE6BE E9979D
-8FE6BF E9979E
-8FE6C0 E9979F
-8FE6C1 E997A0
-8FE6C2 E997A4
-8FE6C3 E997A6
-8FE6C4 E9989D
-8FE6C5 E9989E
-8FE6C6 E998A2
-8FE6C7 E998A4
-8FE6C8 E998A5
-8FE6C9 E998A6
-8FE6CA E998AC
-8FE6CB E998B1
-8FE6CC E998B3
-8FE6CD E998B7
-8FE6CE E998B8
-8FE6CF E998B9
-8FE6D0 E998BA
-8FE6D1 E998BC
-8FE6D2 E998BD
-8FE6D3 E99981
-8FE6D4 E99992
-8FE6D5 E99994
-8FE6D6 E99996
-8FE6D7 E99997
-8FE6D8 E99998
-8FE6D9 E999A1
-8FE6DA E999AE
-8FE6DB E999B4
-8FE6DC E999BB
-8FE6DD E999BC
-8FE6DE E999BE
-8FE6DF E999BF
-8FE6E0 E99A81
-8FE6E1 E99A82
-8FE6E2 E99A83
-8FE6E3 E99A84
-8FE6E4 E99A89
-8FE6E5 E99A91
-8FE6E6 E99A96
-8FE6E7 E99A9A
-8FE6E8 E99A9D
-8FE6E9 E99A9F
-8FE6EA E99AA4
-8FE6EB E99AA5
-8FE6EC E99AA6
-8FE6ED E99AA9
-8FE6EE E99AAE
-8FE6EF E99AAF
-8FE6F0 E99AB3
-8FE6F1 E99ABA
-8FE6F2 E99B8A
-8FE6F3 E99B92
-8FE6F4 E5B6B2
-8FE6F5 E99B98
-8FE6F6 E99B9A
-8FE6F7 E99B9D
-8FE6F8 E99B9E
-8FE6F9 E99B9F
-8FE6FA E99BA9
-8FE6FB E99BAF
-8FE6FC E99BB1
-8FE6FD E99BBA
-8FE6FE E99C82
-8FE7A1 E99C83
-8FE7A2 E99C85
-8FE7A3 E99C89
-8FE7A4 E99C9A
-8FE7A5 E99C9B
-8FE7A6 E99C9D
-8FE7A7 E99CA1
-8FE7A8 E99CA2
-8FE7A9 E99CA3
-8FE7AA E99CA8
-8FE7AB E99CB1
-8FE7AC E99CB3
-8FE7AD E99D81
-8FE7AE E99D83
-8FE7AF E99D8A
-8FE7B0 E99D8E
-8FE7B1 E99D8F
-8FE7B2 E99D95
-8FE7B3 E99D97
-8FE7B4 E99D98
-8FE7B5 E99D9A
-8FE7B6 E99D9B
-8FE7B7 E99DA3
-8FE7B8 E99DA7
-8FE7B9 E99DAA
-8FE7BA E99DAE
-8FE7BB E99DB3
-8FE7BC E99DB6
-8FE7BD E99DB7
-8FE7BE E99DB8
-8FE7BF E99DBB
-8FE7C0 E99DBD
-8FE7C1 E99DBF
-8FE7C2 E99E80
-8FE7C3 E99E89
-8FE7C4 E99E95
-8FE7C5 E99E96
-8FE7C6 E99E97
-8FE7C7 E99E99
-8FE7C8 E99E9A
-8FE7C9 E99E9E
-8FE7CA E99E9F
-8FE7CB E99EA2
-8FE7CC E99EAC
-8FE7CD E99EAE
-8FE7CE E99EB1
-8FE7CF E99EB2
-8FE7D0 E99EB5
-8FE7D1 E99EB6
-8FE7D2 E99EB8
-8FE7D3 E99EB9
-8FE7D4 E99EBA
-8FE7D5 E99EBC
-8FE7D6 E99EBE
-8FE7D7 E99EBF
-8FE7D8 E99F81
-8FE7D9 E99F84
-8FE7DA E99F85
-8FE7DB E99F87
-8FE7DC E99F89
-8FE7DD E99F8A
-8FE7DE E99F8C
-8FE7DF E99F8D
-8FE7E0 E99F8E
-8FE7E1 E99F90
-8FE7E2 E99F91
-8FE7E3 E99F94
-8FE7E4 E99F97
-8FE7E5 E99F98
-8FE7E6 E99F99
-8FE7E7 E99F9D
-8FE7E8 E99F9E
-8FE7E9 E99FA0
-8FE7EA E99F9B
-8FE7EB E99FA1
-8FE7EC E99FA4
-8FE7ED E99FAF
-8FE7EE E99FB1
-8FE7EF E99FB4
-8FE7F0 E99FB7
-8FE7F1 E99FB8
-8FE7F2 E99FBA
-8FE7F3 E9A087
-8FE7F4 E9A08A
-8FE7F5 E9A099
-8FE7F6 E9A08D
-8FE7F7 E9A08E
-8FE7F8 E9A094
-8FE7F9 E9A096
-8FE7FA E9A09C
-8FE7FB E9A09E
-8FE7FC E9A0A0
-8FE7FD E9A0A3
-8FE7FE E9A0A6
-8FE8A1 E9A0AB
-8FE8A2 E9A0AE
-8FE8A3 E9A0AF
-8FE8A4 E9A0B0
-8FE8A5 E9A0B2
-8FE8A6 E9A0B3
-8FE8A7 E9A0B5
-8FE8A8 E9A0A5
-8FE8A9 E9A0BE
-8FE8AA E9A184
-8FE8AB E9A187
-8FE8AC E9A18A
-8FE8AD E9A191
-8FE8AE E9A192
-8FE8AF E9A193
-8FE8B0 E9A196
-8FE8B1 E9A197
-8FE8B2 E9A199
-8FE8B3 E9A19A
-8FE8B4 E9A1A2
-8FE8B5 E9A1A3
-8FE8B6 E9A1A5
-8FE8B7 E9A1A6
-8FE8B8 E9A1AA
-8FE8B9 E9A1AC
-8FE8BA E9A2AB
-8FE8BB E9A2AD
-8FE8BC E9A2AE
-8FE8BD E9A2B0
-8FE8BE E9A2B4
-8FE8BF E9A2B7
-8FE8C0 E9A2B8
-8FE8C1 E9A2BA
-8FE8C2 E9A2BB
-8FE8C3 E9A2BF
-8FE8C4 E9A382
-8FE8C5 E9A385
-8FE8C6 E9A388
-8FE8C7 E9A38C
-8FE8C8 E9A3A1
-8FE8C9 E9A3A3
-8FE8CA E9A3A5
-8FE8CB E9A3A6
-8FE8CC E9A3A7
-8FE8CD E9A3AA
-8FE8CE E9A3B3
-8FE8CF E9A3B6
-8FE8D0 E9A482
-8FE8D1 E9A487
-8FE8D2 E9A488
-8FE8D3 E9A491
-8FE8D4 E9A495
-8FE8D5 E9A496
-8FE8D6 E9A497
-8FE8D7 E9A49A
-8FE8D8 E9A49B
-8FE8D9 E9A49C
-8FE8DA E9A49F
-8FE8DB E9A4A2
-8FE8DC E9A4A6
-8FE8DD E9A4A7
-8FE8DE E9A4AB
-8FE8DF E9A4B1
-8FE8E0 E9A4B2
-8FE8E1 E9A4B3
-8FE8E2 E9A4B4
-8FE8E3 E9A4B5
-8FE8E4 E9A4B9
-8FE8E5 E9A4BA
-8FE8E6 E9A4BB
-8FE8E7 E9A4BC
-8FE8E8 E9A580
-8FE8E9 E9A581
-8FE8EA E9A586
-8FE8EB E9A587
-8FE8EC E9A588
-8FE8ED E9A58D
-8FE8EE E9A58E
-8FE8EF E9A594
-8FE8F0 E9A598
-8FE8F1 E9A599
-8FE8F2 E9A59B
-8FE8F3 E9A59C
-8FE8F4 E9A59E
-8FE8F5 E9A59F
-8FE8F6 E9A5A0
-8FE8F7 E9A69B
-8FE8F8 E9A69D
-8FE8F9 E9A69F
-8FE8FA E9A6A6
-8FE8FB E9A6B0
-8FE8FC E9A6B1
-8FE8FD E9A6B2
-8FE8FE E9A6B5
-8FE9A1 E9A6B9
-8FE9A2 E9A6BA
-8FE9A3 E9A6BD
-8FE9A4 E9A6BF
-8FE9A5 E9A783
-8FE9A6 E9A789
-8FE9A7 E9A793
-8FE9A8 E9A794
-8FE9A9 E9A799
-8FE9AA E9A79A
-8FE9AB E9A79C
-8FE9AC E9A79E
-8FE9AD E9A7A7
-8FE9AE E9A7AA
-8FE9AF E9A7AB
-8FE9B0 E9A7AC
-8FE9B1 E9A7B0
-8FE9B2 E9A7B4
-8FE9B3 E9A7B5
-8FE9B4 E9A7B9
-8FE9B5 E9A7BD
-8FE9B6 E9A7BE
-8FE9B7 E9A882
-8FE9B8 E9A883
-8FE9B9 E9A884
-8FE9BA E9A88B
-8FE9BB E9A88C
-8FE9BC E9A890
-8FE9BD E9A891
-8FE9BE E9A896
-8FE9BF E9A89E
-8FE9C0 E9A8A0
-8FE9C1 E9A8A2
-8FE9C2 E9A8A3
-8FE9C3 E9A8A4
-8FE9C4 E9A8A7
-8FE9C5 E9A8AD
-8FE9C6 E9A8AE
-8FE9C7 E9A8B3
-8FE9C8 E9A8B5
-8FE9C9 E9A8B6
-8FE9CA E9A8B8
-8FE9CB E9A987
-8FE9CC E9A981
-8FE9CD E9A984
-8FE9CE E9A98A
-8FE9CF E9A98B
-8FE9D0 E9A98C
-8FE9D1 E9A98E
-8FE9D2 E9A991
-8FE9D3 E9A994
-8FE9D4 E9A996
-8FE9D5 E9A99D
-8FE9D6 E9AAAA
-8FE9D7 E9AAAC
-8FE9D8 E9AAAE
-8FE9D9 E9AAAF
-8FE9DA E9AAB2
-8FE9DB E9AAB4
-8FE9DC E9AAB5
-8FE9DD E9AAB6
-8FE9DE E9AAB9
-8FE9DF E9AABB
-8FE9E0 E9AABE
-8FE9E1 E9AABF
-8FE9E2 E9AB81
-8FE9E3 E9AB83
-8FE9E4 E9AB86
-8FE9E5 E9AB88
-8FE9E6 E9AB8E
-8FE9E7 E9AB90
-8FE9E8 E9AB92
-8FE9E9 E9AB95
-8FE9EA E9AB96
-8FE9EB E9AB97
-8FE9EC E9AB9B
-8FE9ED E9AB9C
-8FE9EE E9ABA0
-8FE9EF E9ABA4
-8FE9F0 E9ABA5
-8FE9F1 E9ABA7
-8FE9F2 E9ABA9
-8FE9F3 E9ABAC
-8FE9F4 E9ABB2
-8FE9F5 E9ABB3
-8FE9F6 E9ABB5
-8FE9F7 E9ABB9
-8FE9F8 E9ABBA
-8FE9F9 E9ABBD
-8FE9FA E9ABBF
-8FE9FB E9AC80
-8FE9FC E9AC81
-8FE9FD E9AC82
-8FE9FE E9AC83
-8FEAA1 E9AC84
-8FEAA2 E9AC85
-8FEAA3 E9AC88
-8FEAA4 E9AC89
-8FEAA5 E9AC8B
-8FEAA6 E9AC8C
-8FEAA7 E9AC8D
-8FEAA8 E9AC8E
-8FEAA9 E9AC90
-8FEAAA E9AC92
-8FEAAB E9AC96
-8FEAAC E9AC99
-8FEAAD E9AC9B
-8FEAAE E9AC9C
-8FEAAF E9ACA0
-8FEAB0 E9ACA6
-8FEAB1 E9ACAB
-8FEAB2 E9ACAD
-8FEAB3 E9ACB3
-8FEAB4 E9ACB4
-8FEAB5 E9ACB5
-8FEAB6 E9ACB7
-8FEAB7 E9ACB9
-8FEAB8 E9ACBA
-8FEAB9 E9ACBD
-8FEABA E9AD88
-8FEABB E9AD8B
-8FEABC E9AD8C
-8FEABD E9AD95
-8FEABE E9AD96
-8FEABF E9AD97
-8FEAC0 E9AD9B
-8FEAC1 E9AD9E
-8FEAC2 E9ADA1
-8FEAC3 E9ADA3
-8FEAC4 E9ADA5
-8FEAC5 E9ADA6
-8FEAC6 E9ADA8
-8FEAC7 E9ADAA
-8FEAC8 E9ADAB
-8FEAC9 E9ADAC
-8FEACA E9ADAD
-8FEACB E9ADAE
-8FEACC E9ADB3
-8FEACD E9ADB5
-8FEACE E9ADB7
-8FEACF E9ADB8
-8FEAD0 E9ADB9
-8FEAD1 E9ADBF
-8FEAD2 E9AE80
-8FEAD3 E9AE84
-8FEAD4 E9AE85
-8FEAD5 E9AE86
-8FEAD6 E9AE87
-8FEAD7 E9AE89
-8FEAD8 E9AE8A
-8FEAD9 E9AE8B
-8FEADA E9AE8D
-8FEADB E9AE8F
-8FEADC E9AE90
-8FEADD E9AE94
-8FEADE E9AE9A
-8FEADF E9AE9D
-8FEAE0 E9AE9E
-8FEAE1 E9AEA6
-8FEAE2 E9AEA7
-8FEAE3 E9AEA9
-8FEAE4 E9AEAC
-8FEAE5 E9AEB0
-8FEAE6 E9AEB1
-8FEAE7 E9AEB2
-8FEAE8 E9AEB7
-8FEAE9 E9AEB8
-8FEAEA E9AEBB
-8FEAEB E9AEBC
-8FEAEC E9AEBE
-8FEAED E9AEBF
-8FEAEE E9AF81
-8FEAEF E9AF87
-8FEAF0 E9AF88
-8FEAF1 E9AF8E
-8FEAF2 E9AF90
-8FEAF3 E9AF97
-8FEAF4 E9AF98
-8FEAF5 E9AF9D
-8FEAF6 E9AF9F
-8FEAF7 E9AFA5
-8FEAF8 E9AFA7
-8FEAF9 E9AFAA
-8FEAFA E9AFAB
-8FEAFB E9AFAF
-8FEAFC E9AFB3
-8FEAFD E9AFB7
-8FEAFE E9AFB8
-8FEBA1 E9AFB9
-8FEBA2 E9AFBA
-8FEBA3 E9AFBD
-8FEBA4 E9AFBF
-8FEBA5 E9B080
-8FEBA6 E9B082
-8FEBA7 E9B08B
-8FEBA8 E9B08F
-8FEBA9 E9B091
-8FEBAA E9B096
-8FEBAB E9B098
-8FEBAC E9B099
-8FEBAD E9B09A
-8FEBAE E9B09C
-8FEBAF E9B09E
-8FEBB0 E9B0A2
-8FEBB1 E9B0A3
-8FEBB2 E9B0A6
-8FEBB3 E9B0A7
-8FEBB4 E9B0A8
-8FEBB5 E9B0A9
-8FEBB6 E9B0AA
-8FEBB7 E9B0B1
-8FEBB8 E9B0B5
-8FEBB9 E9B0B6
-8FEBBA E9B0B7
-8FEBBB E9B0BD
-8FEBBC E9B181
-8FEBBD E9B183
-8FEBBE E9B184
-8FEBBF E9B185
-8FEBC0 E9B189
-8FEBC1 E9B18A
-8FEBC2 E9B18E
-8FEBC3 E9B18F
-8FEBC4 E9B190
-8FEBC5 E9B193
-8FEBC6 E9B194
-8FEBC7 E9B196
-8FEBC8 E9B198
-8FEBC9 E9B19B
-8FEBCA E9B19D
-8FEBCB E9B19E
-8FEBCC E9B19F
-8FEBCD E9B1A3
-8FEBCE E9B1A9
-8FEBCF E9B1AA
-8FEBD0 E9B19C
-8FEBD1 E9B1AB
-8FEBD2 E9B1A8
-8FEBD3 E9B1AE
-8FEBD4 E9B1B0
-8FEBD5 E9B1B2
-8FEBD6 E9B1B5
-8FEBD7 E9B1B7
-8FEBD8 E9B1BB
-8FEBD9 E9B3A6
-8FEBDA E9B3B2
-8FEBDB E9B3B7
-8FEBDC E9B3B9
-8FEBDD E9B48B
-8FEBDE E9B482
-8FEBDF E9B491
-8FEBE0 E9B497
-8FEBE1 E9B498
-8FEBE2 E9B49C
-8FEBE3 E9B49D
-8FEBE4 E9B49E
-8FEBE5 E9B4AF
-8FEBE6 E9B4B0
-8FEBE7 E9B4B2
-8FEBE8 E9B4B3
-8FEBE9 E9B4B4
-8FEBEA E9B4BA
-8FEBEB E9B4BC
-8FEBEC E9B585
-8FEBED E9B4BD
-8FEBEE E9B582
-8FEBEF E9B583
-8FEBF0 E9B587
-8FEBF1 E9B58A
-8FEBF2 E9B593
-8FEBF3 E9B594
-8FEBF4 E9B59F
-8FEBF5 E9B5A3
-8FEBF6 E9B5A2
-8FEBF7 E9B5A5
-8FEBF8 E9B5A9
-8FEBF9 E9B5AA
-8FEBFA E9B5AB
-8FEBFB E9B5B0
-8FEBFC E9B5B6
-8FEBFD E9B5B7
-8FEBFE E9B5BB
-8FECA1 E9B5BC
-8FECA2 E9B5BE
-8FECA3 E9B683
-8FECA4 E9B684
-8FECA5 E9B686
-8FECA6 E9B68A
-8FECA7 E9B68D
-8FECA8 E9B68E
-8FECA9 E9B692
-8FECAA E9B693
-8FECAB E9B695
-8FECAC E9B696
-8FECAD E9B697
-8FECAE E9B698
-8FECAF E9B6A1
-8FECB0 E9B6AA
-8FECB1 E9B6AC
-8FECB2 E9B6AE
-8FECB3 E9B6B1
-8FECB4 E9B6B5
-8FECB5 E9B6B9
-8FECB6 E9B6BC
-8FECB7 E9B6BF
-8FECB8 E9B783
-8FECB9 E9B787
-8FECBA E9B789
-8FECBB E9B78A
-8FECBC E9B794
-8FECBD E9B795
-8FECBE E9B796
-8FECBF E9B797
-8FECC0 E9B79A
-8FECC1 E9B79E
-8FECC2 E9B79F
-8FECC3 E9B7A0
-8FECC4 E9B7A5
-8FECC5 E9B7A7
-8FECC6 E9B7A9
-8FECC7 E9B7AB
-8FECC8 E9B7AE
-8FECC9 E9B7B0
-8FECCA E9B7B3
-8FECCB E9B7B4
-8FECCC E9B7BE
-8FECCD E9B88A
-8FECCE E9B882
-8FECCF E9B887
-8FECD0 E9B88E
-8FECD1 E9B890
-8FECD2 E9B891
-8FECD3 E9B892
-8FECD4 E9B895
-8FECD5 E9B896
-8FECD6 E9B899
-8FECD7 E9B89C
-8FECD8 E9B89D
-8FECD9 E9B9BA
-8FECDA E9B9BB
-8FECDB E9B9BC
-8FECDC E9BA80
-8FECDD E9BA82
-8FECDE E9BA83
-8FECDF E9BA84
-8FECE0 E9BA85
-8FECE1 E9BA87
-8FECE2 E9BA8E
-8FECE3 E9BA8F
-8FECE4 E9BA96
-8FECE5 E9BA98
-8FECE6 E9BA9B
-8FECE7 E9BA9E
-8FECE8 E9BAA4
-8FECE9 E9BAA8
-8FECEA E9BAAC
-8FECEB E9BAAE
-8FECEC E9BAAF
-8FECED E9BAB0
-8FECEE E9BAB3
-8FECEF E9BAB4
-8FECF0 E9BAB5
-8FECF1 E9BB86
-8FECF2 E9BB88
-8FECF3 E9BB8B
-8FECF4 E9BB95
-8FECF5 E9BB9F
-8FECF6 E9BBA4
-8FECF7 E9BBA7
-8FECF8 E9BBAC
-8FECF9 E9BBAD
-8FECFA E9BBAE
-8FECFB E9BBB0
-8FECFC E9BBB1
-8FECFD E9BBB2
-8FECFE E9BBB5
-8FEDA1 E9BBB8
-8FEDA2 E9BBBF
-8FEDA3 E9BC82
-8FEDA4 E9BC83
-8FEDA5 E9BC89
-8FEDA6 E9BC8F
-8FEDA7 E9BC90
-8FEDA8 E9BC91
-8FEDA9 E9BC92
-8FEDAA E9BC94
-8FEDAB E9BC96
-8FEDAC E9BC97
-8FEDAD E9BC99
-8FEDAE E9BC9A
-8FEDAF E9BC9B
-8FEDB0 E9BC9F
-8FEDB1 E9BCA2
-8FEDB2 E9BCA6
-8FEDB3 E9BCAA
-8FEDB4 E9BCAB
-8FEDB5 E9BCAF
-8FEDB6 E9BCB1
-8FEDB7 E9BCB2
-8FEDB8 E9BCB4
-8FEDB9 E9BCB7
-8FEDBA E9BCB9
-8FEDBB E9BCBA
-8FEDBC E9BCBC
-8FEDBD E9BCBD
-8FEDBE E9BCBF
-8FEDBF E9BD81
-8FEDC0 E9BD83
-8FEDC1 E9BD84
-8FEDC2 E9BD85
-8FEDC3 E9BD86
-8FEDC4 E9BD87
-8FEDC5 E9BD93
-8FEDC6 E9BD95
-8FEDC7 E9BD96
-8FEDC8 E9BD97
-8FEDC9 E9BD98
-8FEDCA E9BD9A
-8FEDCB E9BD9D
-8FEDCC E9BD9E
-8FEDCD E9BDA8
-8FEDCE E9BDA9
-8FEDCF E9BDAD
-8FEDD0 E9BDAE
-8FEDD1 E9BDAF
-8FEDD2 E9BDB0
-8FEDD3 E9BDB1
-8FEDD4 E9BDB3
-8FEDD5 E9BDB5
-8FEDD6 E9BDBA
-8FEDD7 E9BDBD
-8FEDD8 E9BE8F
-8FEDD9 E9BE90
-8FEDDA E9BE91
-8FEDDB E9BE92
-8FEDDC E9BE94
-8FEDDD E9BE96
-8FEDDE E9BE97
-8FEDDF E9BE9E
-8FEDE0 E9BEA1
-8FEDE1 E9BEA2
-8FEDE2 E9BEA3
-8FEDE3 E9BEA5
-8FF3F3 E285B0
-8FF3F4 E285B1
-8FF3F5 E285B2
-8FF3F6 E285B3
-8FF3F7 E285B4
-8FF3F8 E285B5
-8FF3F9 E285B6
-8FF3FA E285B7
-8FF3FB E285B8
-8FF3FC E285B9
-8FF3FD E285A0
-8FF3FE E285A1
-8FF4A1 E285A2
-8FF4A2 E285A3
-8FF4A3 E285A4
-8FF4A4 E285A5
-8FF4A5 E285A6
-8FF4A6 E285A7
-8FF4A7 E285A8
-8FF4A8 E285A9
-8FF4A9 EFBC87
-8FF4AA EFBC82
-8FF4AB E388B1
-8FF4AC E28496
-8FF4AD E284A1
-8FF4AE E782BB
-8FF4AF E4BBBC
-8FF4B0 E583B4
-8FF4B1 E587AC
-8FF4B2 E58C87
-8FF4B3 E58CA4
-8FF4B4 EFA88E
-8FF4B5 E5928A
-8FF4B6 E59D99
-8FF4B7 EFA88F
-8FF4B8 EFA890
-8FF4B9 E5A29E
-8FF4BA E5AFAC
-8FF4BB E5B3B5
-8FF4BC E5B593
-8FF4BD EFA891
-8FF4BE E5BEB7
-8FF4BF E68285
-8FF4C0 E684A0
-8FF4C1 E6958E
-8FF4C2 E698BB
-8FF4C3 E699A5
-8FF4C4 EFA892
-8FF4C5 EFA4A9
-8FF4C6 E6A081
-8FF4C7 EFA893
-8FF4C8 EFA894
-8FF4C9 E6A9AB
-8FF4CA E6ABA2
-8FF4CB E6B7B8
-8FF4CC E6B7B2
-8FF4CD E780A8
-8FF4CE EFA895
-8FF4CF EFA896
-8FF4D0 E79481
-8FF4D1 E79A82
-8FF4D2 E79A9E
-8FF4D3 EFA897
-8FF4D4 E7A4B0
-8FF4D5 EFA898
-8FF4D6 EFA899
-8FF4D7 EFA89A
-8FF4D8 EFA89B
-8FF4D9 E7ABA7
-8FF4DA EFA89C
-8FF4DB EFA89D
-8FF4DC E7B6A0
-8FF4DD E7B796
-8FF4DE EFA89E
-8FF4DF E88DA2
-8FF4E0 EFA89F
-8FF4E1 E896B0
-8FF4E2 EFA8A0
-8FF4E3 EFA8A1
-8FF4E4 E8A087
-8FF4E5 EFA8A2
-8FF4E6 E8ADBF
-8FF4E7 E8B3B4
-8FF4E8 E8B5B6
-8FF4E9 EFA8A3
-8FF4EA EFA8A4
-8FF4EB EFA8A5
-8FF4EC E9839E
-8FF4ED EFA8A6
-8FF4EE E98495
-8FF4EF EFA8A7
-8FF4F0 EFA8A8
-8FF4F1 E99692
-8FF4F2 EFA79C
-8FF4F3 EFA8A9
-8FF4F4 E99CBB
-8FF4F5 E99D8D
-8FF4F6 E99D91
-8FF4F7 EFA8AA
-8FF4F8 EFA8AB
-8FF4F9 EFA8AC
-8FF4FA E9A69E
-8FF4FB E9AB99
-8FF4FC E9ADB2
-8FF4FD EFA8AD
-8FF4FE E9BB91
-8FF5A1 EE8EAC
-8FF5A2 EE8EAD
-8FF5A3 EE8EAE
-8FF5A4 EE8EAF
-8FF5A5 EE8EB0
-8FF5A6 EE8EB1
-8FF5A7 EE8EB2
-8FF5A8 EE8EB3
-8FF5A9 EE8EB4
-8FF5AA EE8EB5
-8FF5AB EE8EB6
-8FF5AC EE8EB7
-8FF5AD EE8EB8
-8FF5AE EE8EB9
-8FF5AF EE8EBA
-8FF5B0 EE8EBB
-8FF5B1 EE8EBC
-8FF5B2 EE8EBD
-8FF5B3 EE8EBE
-8FF5B4 EE8EBF
-8FF5B5 EE8F80
-8FF5B6 EE8F81
-8FF5B7 EE8F82
-8FF5B8 EE8F83
-8FF5B9 EE8F84
-8FF5BA EE8F85
-8FF5BB EE8F86
-8FF5BC EE8F87
-8FF5BD EE8F88
-8FF5BE EE8F89
-8FF5BF EE8F8A
-8FF5C0 EE8F8B
-8FF5C1 EE8F8C
-8FF5C2 EE8F8D
-8FF5C3 EE8F8E
-8FF5C4 EE8F8F
-8FF5C5 EE8F90
-8FF5C6 EE8F91
-8FF5C7 EE8F92
-8FF5C8 EE8F93
-8FF5C9 EE8F94
-8FF5CA EE8F95
-8FF5CB EE8F96
-8FF5CC EE8F97
-8FF5CD EE8F98
-8FF5CE EE8F99
-8FF5CF EE8F9A
-8FF5D0 EE8F9B
-8FF5D1 EE8F9C
-8FF5D2 EE8F9D
-8FF5D3 EE8F9E
-8FF5D4 EE8F9F
-8FF5D5 EE8FA0
-8FF5D6 EE8FA1
-8FF5D7 EE8FA2
-8FF5D8 EE8FA3
-8FF5D9 EE8FA4
-8FF5DA EE8FA5
-8FF5DB EE8FA6
-8FF5DC EE8FA7
-8FF5DD EE8FA8
-8FF5DE EE8FA9
-8FF5DF EE8FAA
-8FF5E0 EE8FAB
-8FF5E1 EE8FAC
-8FF5E2 EE8FAD
-8FF5E3 EE8FAE
-8FF5E4 EE8FAF
-8FF5E5 EE8FB0
-8FF5E6 EE8FB1
-8FF5E7 EE8FB2
-8FF5E8 EE8FB3
-8FF5E9 EE8FB4
-8FF5EA EE8FB5
-8FF5EB EE8FB6
-8FF5EC EE8FB7
-8FF5ED EE8FB8
-8FF5EE EE8FB9
-8FF5EF EE8FBA
-8FF5F0 EE8FBB
-8FF5F1 EE8FBC
-8FF5F2 EE8FBD
-8FF5F3 EE8FBE
-8FF5F4 EE8FBF
-8FF5F5 EE9080
-8FF5F6 EE9081
-8FF5F7 EE9082
-8FF5F8 EE9083
-8FF5F9 EE9084
-8FF5FA EE9085
-8FF5FB EE9086
-8FF5FC EE9087
-8FF5FD EE9088
-8FF5FE EE9089
-8FF6A1 EE908A
-8FF6A2 EE908B
-8FF6A3 EE908C
-8FF6A4 EE908D
-8FF6A5 EE908E
-8FF6A6 EE908F
-8FF6A7 EE9090
-8FF6A8 EE9091
-8FF6A9 EE9092
-8FF6AA EE9093
-8FF6AB EE9094
-8FF6AC EE9095
-8FF6AD EE9096
-8FF6AE EE9097
-8FF6AF EE9098
-8FF6B0 EE9099
-8FF6B1 EE909A
-8FF6B2 EE909B
-8FF6B3 EE909C
-8FF6B4 EE909D
-8FF6B5 EE909E
-8FF6B6 EE909F
-8FF6B7 EE90A0
-8FF6B8 EE90A1
-8FF6B9 EE90A2
-8FF6BA EE90A3
-8FF6BB EE90A4
-8FF6BC EE90A5
-8FF6BD EE90A6
-8FF6BE EE90A7
-8FF6BF EE90A8
-8FF6C0 EE90A9
-8FF6C1 EE90AA
-8FF6C2 EE90AB
-8FF6C3 EE90AC
-8FF6C4 EE90AD
-8FF6C5 EE90AE
-8FF6C6 EE90AF
-8FF6C7 EE90B0
-8FF6C8 EE90B1
-8FF6C9 EE90B2
-8FF6CA EE90B3
-8FF6CB EE90B4
-8FF6CC EE90B5
-8FF6CD EE90B6
-8FF6CE EE90B7
-8FF6CF EE90B8
-8FF6D0 EE90B9
-8FF6D1 EE90BA
-8FF6D2 EE90BB
-8FF6D3 EE90BC
-8FF6D4 EE90BD
-8FF6D5 EE90BE
-8FF6D6 EE90BF
-8FF6D7 EE9180
-8FF6D8 EE9181
-8FF6D9 EE9182
-8FF6DA EE9183
-8FF6DB EE9184
-8FF6DC EE9185
-8FF6DD EE9186
-8FF6DE EE9187
-8FF6DF EE9188
-8FF6E0 EE9189
-8FF6E1 EE918A
-8FF6E2 EE918B
-8FF6E3 EE918C
-8FF6E4 EE918D
-8FF6E5 EE918E
-8FF6E6 EE918F
-8FF6E7 EE9190
-8FF6E8 EE9191
-8FF6E9 EE9192
-8FF6EA EE9193
-8FF6EB EE9194
-8FF6EC EE9195
-8FF6ED EE9196
-8FF6EE EE9197
-8FF6EF EE9198
-8FF6F0 EE9199
-8FF6F1 EE919A
-8FF6F2 EE919B
-8FF6F3 EE919C
-8FF6F4 EE919D
-8FF6F5 EE919E
-8FF6F6 EE919F
-8FF6F7 EE91A0
-8FF6F8 EE91A1
-8FF6F9 EE91A2
-8FF6FA EE91A3
-8FF6FB EE91A4
-8FF6FC EE91A5
-8FF6FD EE91A6
-8FF6FE EE91A7
-8FF7A1 EE91A8
-8FF7A2 EE91A9
-8FF7A3 EE91AA
-8FF7A4 EE91AB
-8FF7A5 EE91AC
-8FF7A6 EE91AD
-8FF7A7 EE91AE
-8FF7A8 EE91AF
-8FF7A9 EE91B0
-8FF7AA EE91B1
-8FF7AB EE91B2
-8FF7AC EE91B3
-8FF7AD EE91B4
-8FF7AE EE91B5
-8FF7AF EE91B6
-8FF7B0 EE91B7
-8FF7B1 EE91B8
-8FF7B2 EE91B9
-8FF7B3 EE91BA
-8FF7B4 EE91BB
-8FF7B5 EE91BC
-8FF7B6 EE91BD
-8FF7B7 EE91BE
-8FF7B8 EE91BF
-8FF7B9 EE9280
-8FF7BA EE9281
-8FF7BB EE9282
-8FF7BC EE9283
-8FF7BD EE9284
-8FF7BE EE9285
-8FF7BF EE9286
-8FF7C0 EE9287
-8FF7C1 EE9288
-8FF7C2 EE9289
-8FF7C3 EE928A
-8FF7C4 EE928B
-8FF7C5 EE928C
-8FF7C6 EE928D
-8FF7C7 EE928E
-8FF7C8 EE928F
-8FF7C9 EE9290
-8FF7CA EE9291
-8FF7CB EE9292
-8FF7CC EE9293
-8FF7CD EE9294
-8FF7CE EE9295
-8FF7CF EE9296
-8FF7D0 EE9297
-8FF7D1 EE9298
-8FF7D2 EE9299
-8FF7D3 EE929A
-8FF7D4 EE929B
-8FF7D5 EE929C
-8FF7D6 EE929D
-8FF7D7 EE929E
-8FF7D8 EE929F
-8FF7D9 EE92A0
-8FF7DA EE92A1
-8FF7DB EE92A2
-8FF7DC EE92A3
-8FF7DD EE92A4
-8FF7DE EE92A5
-8FF7DF EE92A6
-8FF7E0 EE92A7
-8FF7E1 EE92A8
-8FF7E2 EE92A9
-8FF7E3 EE92AA
-8FF7E4 EE92AB
-8FF7E5 EE92AC
-8FF7E6 EE92AD
-8FF7E7 EE92AE
-8FF7E8 EE92AF
-8FF7E9 EE92B0
-8FF7EA EE92B1
-8FF7EB EE92B2
-8FF7EC EE92B3
-8FF7ED EE92B4
-8FF7EE EE92B5
-8FF7EF EE92B6
-8FF7F0 EE92B7
-8FF7F1 EE92B8
-8FF7F2 EE92B9
-8FF7F3 EE92BA
-8FF7F4 EE92BB
-8FF7F5 EE92BC
-8FF7F6 EE92BD
-8FF7F7 EE92BE
-8FF7F8 EE92BF
-8FF7F9 EE9380
-8FF7FA EE9381
-8FF7FB EE9382
-8FF7FC EE9383
-8FF7FD EE9384
-8FF7FE EE9385
-8FF8A1 EE9386
-8FF8A2 EE9387
-8FF8A3 EE9388
-8FF8A4 EE9389
-8FF8A5 EE938A
-8FF8A6 EE938B
-8FF8A7 EE938C
-8FF8A8 EE938D
-8FF8A9 EE938E
-8FF8AA EE938F
-8FF8AB EE9390
-8FF8AC EE9391
-8FF8AD EE9392
-8FF8AE EE9393
-8FF8AF EE9394
-8FF8B0 EE9395
-8FF8B1 EE9396
-8FF8B2 EE9397
-8FF8B3 EE9398
-8FF8B4 EE9399
-8FF8B5 EE939A
-8FF8B6 EE939B
-8FF8B7 EE939C
-8FF8B8 EE939D
-8FF8B9 EE939E
-8FF8BA EE939F
-8FF8BB EE93A0
-8FF8BC EE93A1
-8FF8BD EE93A2
-8FF8BE EE93A3
-8FF8BF EE93A4
-8FF8C0 EE93A5
-8FF8C1 EE93A6
-8FF8C2 EE93A7
-8FF8C3 EE93A8
-8FF8C4 EE93A9
-8FF8C5 EE93AA
-8FF8C6 EE93AB
-8FF8C7 EE93AC
-8FF8C8 EE93AD
-8FF8C9 EE93AE
-8FF8CA EE93AF
-8FF8CB EE93B0
-8FF8CC EE93B1
-8FF8CD EE93B2
-8FF8CE EE93B3
-8FF8CF EE93B4
-8FF8D0 EE93B5
-8FF8D1 EE93B6
-8FF8D2 EE93B7
-8FF8D3 EE93B8
-8FF8D4 EE93B9
-8FF8D5 EE93BA
-8FF8D6 EE93BB
-8FF8D7 EE93BC
-8FF8D8 EE93BD
-8FF8D9 EE93BE
-8FF8DA EE93BF
-8FF8DB EE9480
-8FF8DC EE9481
-8FF8DD EE9482
-8FF8DE EE9483
-8FF8DF EE9484
-8FF8E0 EE9485
-8FF8E1 EE9486
-8FF8E2 EE9487
-8FF8E3 EE9488
-8FF8E4 EE9489
-8FF8E5 EE948A
-8FF8E6 EE948B
-8FF8E7 EE948C
-8FF8E8 EE948D
-8FF8E9 EE948E
-8FF8EA EE948F
-8FF8EB EE9490
-8FF8EC EE9491
-8FF8ED EE9492
-8FF8EE EE9493
-8FF8EF EE9494
-8FF8F0 EE9495
-8FF8F1 EE9496
-8FF8F2 EE9497
-8FF8F3 EE9498
-8FF8F4 EE9499
-8FF8F5 EE949A
-8FF8F6 EE949B
-8FF8F7 EE949C
-8FF8F8 EE949D
-8FF8F9 EE949E
-8FF8FA EE949F
-8FF8FB EE94A0
-8FF8FC EE94A1
-8FF8FD EE94A2
-8FF8FE EE94A3
-8FF9A1 EE94A4
-8FF9A2 EE94A5
-8FF9A3 EE94A6
-8FF9A4 EE94A7
-8FF9A5 EE94A8
-8FF9A6 EE94A9
-8FF9A7 EE94AA
-8FF9A8 EE94AB
-8FF9A9 EE94AC
-8FF9AA EE94AD
-8FF9AB EE94AE
-8FF9AC EE94AF
-8FF9AD EE94B0
-8FF9AE EE94B1
-8FF9AF EE94B2
-8FF9B0 EE94B3
-8FF9B1 EE94B4
-8FF9B2 EE94B5
-8FF9B3 EE94B6
-8FF9B4 EE94B7
-8FF9B5 EE94B8
-8FF9B6 EE94B9
-8FF9B7 EE94BA
-8FF9B8 EE94BB
-8FF9B9 EE94BC
-8FF9BA EE94BD
-8FF9BB EE94BE
-8FF9BC EE94BF
-8FF9BD EE9580
-8FF9BE EE9581
-8FF9BF EE9582
-8FF9C0 EE9583
-8FF9C1 EE9584
-8FF9C2 EE9585
-8FF9C3 EE9586
-8FF9C4 EE9587
-8FF9C5 EE9588
-8FF9C6 EE9589
-8FF9C7 EE958A
-8FF9C8 EE958B
-8FF9C9 EE958C
-8FF9CA EE958D
-8FF9CB EE958E
-8FF9CC EE958F
-8FF9CD EE9590
-8FF9CE EE9591
-8FF9CF EE9592
-8FF9D0 EE9593
-8FF9D1 EE9594
-8FF9D2 EE9595
-8FF9D3 EE9596
-8FF9D4 EE9597
-8FF9D5 EE9598
-8FF9D6 EE9599
-8FF9D7 EE959A
-8FF9D8 EE959B
-8FF9D9 EE959C
-8FF9DA EE959D
-8FF9DB EE959E
-8FF9DC EE959F
-8FF9DD EE95A0
-8FF9DE EE95A1
-8FF9DF EE95A2
-8FF9E0 EE95A3
-8FF9E1 EE95A4
-8FF9E2 EE95A5
-8FF9E3 EE95A6
-8FF9E4 EE95A7
-8FF9E5 EE95A8
-8FF9E6 EE95A9
-8FF9E7 EE95AA
-8FF9E8 EE95AB
-8FF9E9 EE95AC
-8FF9EA EE95AD
-8FF9EB EE95AE
-8FF9EC EE95AF
-8FF9ED EE95B0
-8FF9EE EE95B1
-8FF9EF EE95B2
-8FF9F0 EE95B3
-8FF9F1 EE95B4
-8FF9F2 EE95B5
-8FF9F3 EE95B6
-8FF9F4 EE95B7
-8FF9F5 EE95B8
-8FF9F6 EE95B9
-8FF9F7 EE95BA
-8FF9F8 EE95BB
-8FF9F9 EE95BC
-8FF9FA EE95BD
-8FF9FB EE95BE
-8FF9FC EE95BF
-8FF9FD EE9680
-8FF9FE EE9681
-8FFAA1 EE9682
-8FFAA2 EE9683
-8FFAA3 EE9684
-8FFAA4 EE9685
-8FFAA5 EE9686
-8FFAA6 EE9687
-8FFAA7 EE9688
-8FFAA8 EE9689
-8FFAA9 EE968A
-8FFAAA EE968B
-8FFAAB EE968C
-8FFAAC EE968D
-8FFAAD EE968E
-8FFAAE EE968F
-8FFAAF EE9690
-8FFAB0 EE9691
-8FFAB1 EE9692
-8FFAB2 EE9693
-8FFAB3 EE9694
-8FFAB4 EE9695
-8FFAB5 EE9696
-8FFAB6 EE9697
-8FFAB7 EE9698
-8FFAB8 EE9699
-8FFAB9 EE969A
-8FFABA EE969B
-8FFABB EE969C
-8FFABC EE969D
-8FFABD EE969E
-8FFABE EE969F
-8FFABF EE96A0
-8FFAC0 EE96A1
-8FFAC1 EE96A2
-8FFAC2 EE96A3
-8FFAC3 EE96A4
-8FFAC4 EE96A5
-8FFAC5 EE96A6
-8FFAC6 EE96A7
-8FFAC7 EE96A8
-8FFAC8 EE96A9
-8FFAC9 EE96AA
-8FFACA EE96AB
-8FFACB EE96AC
-8FFACC EE96AD
-8FFACD EE96AE
-8FFACE EE96AF
-8FFACF EE96B0
-8FFAD0 EE96B1
-8FFAD1 EE96B2
-8FFAD2 EE96B3
-8FFAD3 EE96B4
-8FFAD4 EE96B5
-8FFAD5 EE96B6
-8FFAD6 EE96B7
-8FFAD7 EE96B8
-8FFAD8 EE96B9
-8FFAD9 EE96BA
-8FFADA EE96BB
-8FFADB EE96BC
-8FFADC EE96BD
-8FFADD EE96BE
-8FFADE EE96BF
-8FFADF EE9780
-8FFAE0 EE9781
-8FFAE1 EE9782
-8FFAE2 EE9783
-8FFAE3 EE9784
-8FFAE4 EE9785
-8FFAE5 EE9786
-8FFAE6 EE9787
-8FFAE7 EE9788
-8FFAE8 EE9789
-8FFAE9 EE978A
-8FFAEA EE978B
-8FFAEB EE978C
-8FFAEC EE978D
-8FFAED EE978E
-8FFAEE EE978F
-8FFAEF EE9790
-8FFAF0 EE9791
-8FFAF1 EE9792
-8FFAF2 EE9793
-8FFAF3 EE9794
-8FFAF4 EE9795
-8FFAF5 EE9796
-8FFAF6 EE9797
-8FFAF7 EE9798
-8FFAF8 EE9799
-8FFAF9 EE979A
-8FFAFA EE979B
-8FFAFB EE979C
-8FFAFC EE979D
-8FFAFD EE979E
-8FFAFE EE979F
-8FFBA1 EE97A0
-8FFBA2 EE97A1
-8FFBA3 EE97A2
-8FFBA4 EE97A3
-8FFBA5 EE97A4
-8FFBA6 EE97A5
-8FFBA7 EE97A6
-8FFBA8 EE97A7
-8FFBA9 EE97A8
-8FFBAA EE97A9
-8FFBAB EE97AA
-8FFBAC EE97AB
-8FFBAD EE97AC
-8FFBAE EE97AD
-8FFBAF EE97AE
-8FFBB0 EE97AF
-8FFBB1 EE97B0
-8FFBB2 EE97B1
-8FFBB3 EE97B2
-8FFBB4 EE97B3
-8FFBB5 EE97B4
-8FFBB6 EE97B5
-8FFBB7 EE97B6
-8FFBB8 EE97B7
-8FFBB9 EE97B8
-8FFBBA EE97B9
-8FFBBB EE97BA
-8FFBBC EE97BB
-8FFBBD EE97BC
-8FFBBE EE97BD
-8FFBBF EE97BE
-8FFBC0 EE97BF
-8FFBC1 EE9880
-8FFBC2 EE9881
-8FFBC3 EE9882
-8FFBC4 EE9883
-8FFBC5 EE9884
-8FFBC6 EE9885
-8FFBC7 EE9886
-8FFBC8 EE9887
-8FFBC9 EE9888
-8FFBCA EE9889
-8FFBCB EE988A
-8FFBCC EE988B
-8FFBCD EE988C
-8FFBCE EE988D
-8FFBCF EE988E
-8FFBD0 EE988F
-8FFBD1 EE9890
-8FFBD2 EE9891
-8FFBD3 EE9892
-8FFBD4 EE9893
-8FFBD5 EE9894
-8FFBD6 EE9895
-8FFBD7 EE9896
-8FFBD8 EE9897
-8FFBD9 EE9898
-8FFBDA EE9899
-8FFBDB EE989A
-8FFBDC EE989B
-8FFBDD EE989C
-8FFBDE EE989D
-8FFBDF EE989E
-8FFBE0 EE989F
-8FFBE1 EE98A0
-8FFBE2 EE98A1
-8FFBE3 EE98A2
-8FFBE4 EE98A3
-8FFBE5 EE98A4
-8FFBE6 EE98A5
-8FFBE7 EE98A6
-8FFBE8 EE98A7
-8FFBE9 EE98A8
-8FFBEA EE98A9
-8FFBEB EE98AA
-8FFBEC EE98AB
-8FFBED EE98AC
-8FFBEE EE98AD
-8FFBEF EE98AE
-8FFBF0 EE98AF
-8FFBF1 EE98B0
-8FFBF2 EE98B1
-8FFBF3 EE98B2
-8FFBF4 EE98B3
-8FFBF5 EE98B4
-8FFBF6 EE98B5
-8FFBF7 EE98B6
-8FFBF8 EE98B7
-8FFBF9 EE98B8
-8FFBFA EE98B9
-8FFBFB EE98BA
-8FFBFC EE98BB
-8FFBFD EE98BC
-8FFBFE EE98BD
-8FFCA1 EE98BE
-8FFCA2 EE98BF
-8FFCA3 EE9980
-8FFCA4 EE9981
-8FFCA5 EE9982
-8FFCA6 EE9983
-8FFCA7 EE9984
-8FFCA8 EE9985
-8FFCA9 EE9986
-8FFCAA EE9987
-8FFCAB EE9988
-8FFCAC EE9989
-8FFCAD EE998A
-8FFCAE EE998B
-8FFCAF EE998C
-8FFCB0 EE998D
-8FFCB1 EE998E
-8FFCB2 EE998F
-8FFCB3 EE9990
-8FFCB4 EE9991
-8FFCB5 EE9992
-8FFCB6 EE9993
-8FFCB7 EE9994
-8FFCB8 EE9995
-8FFCB9 EE9996
-8FFCBA EE9997
-8FFCBB EE9998
-8FFCBC EE9999
-8FFCBD EE999A
-8FFCBE EE999B
-8FFCBF EE999C
-8FFCC0 EE999D
-8FFCC1 EE999E
-8FFCC2 EE999F
-8FFCC3 EE99A0
-8FFCC4 EE99A1
-8FFCC5 EE99A2
-8FFCC6 EE99A3
-8FFCC7 EE99A4
-8FFCC8 EE99A5
-8FFCC9 EE99A6
-8FFCCA EE99A7
-8FFCCB EE99A8
-8FFCCC EE99A9
-8FFCCD EE99AA
-8FFCCE EE99AB
-8FFCCF EE99AC
-8FFCD0 EE99AD
-8FFCD1 EE99AE
-8FFCD2 EE99AF
-8FFCD3 EE99B0
-8FFCD4 EE99B1
-8FFCD5 EE99B2
-8FFCD6 EE99B3
-8FFCD7 EE99B4
-8FFCD8 EE99B5
-8FFCD9 EE99B6
-8FFCDA EE99B7
-8FFCDB EE99B8
-8FFCDC EE99B9
-8FFCDD EE99BA
-8FFCDE EE99BB
-8FFCDF EE99BC
-8FFCE0 EE99BD
-8FFCE1 EE99BE
-8FFCE2 EE99BF
-8FFCE3 EE9A80
-8FFCE4 EE9A81
-8FFCE5 EE9A82
-8FFCE6 EE9A83
-8FFCE7 EE9A84
-8FFCE8 EE9A85
-8FFCE9 EE9A86
-8FFCEA EE9A87
-8FFCEB EE9A88
-8FFCEC EE9A89
-8FFCED EE9A8A
-8FFCEE EE9A8B
-8FFCEF EE9A8C
-8FFCF0 EE9A8D
-8FFCF1 EE9A8E
-8FFCF2 EE9A8F
-8FFCF3 EE9A90
-8FFCF4 EE9A91
-8FFCF5 EE9A92
-8FFCF6 EE9A93
-8FFCF7 EE9A94
-8FFCF8 EE9A95
-8FFCF9 EE9A96
-8FFCFA EE9A97
-8FFCFB EE9A98
-8FFCFC EE9A99
-8FFCFD EE9A9A
-8FFCFE EE9A9B
-8FFDA1 EE9A9C
-8FFDA2 EE9A9D
-8FFDA3 EE9A9E
-8FFDA4 EE9A9F
-8FFDA5 EE9AA0
-8FFDA6 EE9AA1
-8FFDA7 EE9AA2
-8FFDA8 EE9AA3
-8FFDA9 EE9AA4
-8FFDAA EE9AA5
-8FFDAB EE9AA6
-8FFDAC EE9AA7
-8FFDAD EE9AA8
-8FFDAE EE9AA9
-8FFDAF EE9AAA
-8FFDB0 EE9AAB
-8FFDB1 EE9AAC
-8FFDB2 EE9AAD
-8FFDB3 EE9AAE
-8FFDB4 EE9AAF
-8FFDB5 EE9AB0
-8FFDB6 EE9AB1
-8FFDB7 EE9AB2
-8FFDB8 EE9AB3
-8FFDB9 EE9AB4
-8FFDBA EE9AB5
-8FFDBB EE9AB6
-8FFDBC EE9AB7
-8FFDBD EE9AB8
-8FFDBE EE9AB9
-8FFDBF EE9ABA
-8FFDC0 EE9ABB
-8FFDC1 EE9ABC
-8FFDC2 EE9ABD
-8FFDC3 EE9ABE
-8FFDC4 EE9ABF
-8FFDC5 EE9B80
-8FFDC6 EE9B81
-8FFDC7 EE9B82
-8FFDC8 EE9B83
-8FFDC9 EE9B84
-8FFDCA EE9B85
-8FFDCB EE9B86
-8FFDCC EE9B87
-8FFDCD EE9B88
-8FFDCE EE9B89
-8FFDCF EE9B8A
-8FFDD0 EE9B8B
-8FFDD1 EE9B8C
-8FFDD2 EE9B8D
-8FFDD3 EE9B8E
-8FFDD4 EE9B8F
-8FFDD5 EE9B90
-8FFDD6 EE9B91
-8FFDD7 EE9B92
-8FFDD8 EE9B93
-8FFDD9 EE9B94
-8FFDDA EE9B95
-8FFDDB EE9B96
-8FFDDC EE9B97
-8FFDDD EE9B98
-8FFDDE EE9B99
-8FFDDF EE9B9A
-8FFDE0 EE9B9B
-8FFDE1 EE9B9C
-8FFDE2 EE9B9D
-8FFDE3 EE9B9E
-8FFDE4 EE9B9F
-8FFDE5 EE9BA0
-8FFDE6 EE9BA1
-8FFDE7 EE9BA2
-8FFDE8 EE9BA3
-8FFDE9 EE9BA4
-8FFDEA EE9BA5
-8FFDEB EE9BA6
-8FFDEC EE9BA7
-8FFDED EE9BA8
-8FFDEE EE9BA9
-8FFDEF EE9BAA
-8FFDF0 EE9BAB
-8FFDF1 EE9BAC
-8FFDF2 EE9BAD
-8FFDF3 EE9BAE
-8FFDF4 EE9BAF
-8FFDF5 EE9BB0
-8FFDF6 EE9BB1
-8FFDF7 EE9BB2
-8FFDF8 EE9BB3
-8FFDF9 EE9BB4
-8FFDFA EE9BB5
-8FFDFB EE9BB6
-8FFDFC EE9BB7
-8FFDFD EE9BB8
-8FFDFE EE9BB9
-8FFEA1 EE9BBA
-8FFEA2 EE9BBB
-8FFEA3 EE9BBC
-8FFEA4 EE9BBD
-8FFEA5 EE9BBE
-8FFEA6 EE9BBF
-8FFEA7 EE9C80
-8FFEA8 EE9C81
-8FFEA9 EE9C82
-8FFEAA EE9C83
-8FFEAB EE9C84
-8FFEAC EE9C85
-8FFEAD EE9C86
-8FFEAE EE9C87
-8FFEAF EE9C88
-8FFEB0 EE9C89
-8FFEB1 EE9C8A
-8FFEB2 EE9C8B
-8FFEB3 EE9C8C
-8FFEB4 EE9C8D
-8FFEB5 EE9C8E
-8FFEB6 EE9C8F
-8FFEB7 EE9C90
-8FFEB8 EE9C91
-8FFEB9 EE9C92
-8FFEBA EE9C93
-8FFEBB EE9C94
-8FFEBC EE9C95
-8FFEBD EE9C96
-8FFEBE EE9C97
-8FFEBF EE9C98
-8FFEC0 EE9C99
-8FFEC1 EE9C9A
-8FFEC2 EE9C9B
-8FFEC3 EE9C9C
-8FFEC4 EE9C9D
-8FFEC5 EE9C9E
-8FFEC6 EE9C9F
-8FFEC7 EE9CA0
-8FFEC8 EE9CA1
-8FFEC9 EE9CA2
-8FFECA EE9CA3
-8FFECB EE9CA4
-8FFECC EE9CA5
-8FFECD EE9CA6
-8FFECE EE9CA7
-8FFECF EE9CA8
-8FFED0 EE9CA9
-8FFED1 EE9CAA
-8FFED2 EE9CAB
-8FFED3 EE9CAC
-8FFED4 EE9CAD
-8FFED5 EE9CAE
-8FFED6 EE9CAF
-8FFED7 EE9CB0
-8FFED8 EE9CB1
-8FFED9 EE9CB2
-8FFEDA EE9CB3
-8FFEDB EE9CB4
-8FFEDC EE9CB5
-8FFEDD EE9CB6
-8FFEDE EE9CB7
-8FFEDF EE9CB8
-8FFEE0 EE9CB9
-8FFEE1 EE9CBA
-8FFEE2 EE9CBB
-8FFEE3 EE9CBC
-8FFEE4 EE9CBD
-8FFEE5 EE9CBE
-8FFEE6 EE9CBF
-8FFEE7 EE9D80
-8FFEE8 EE9D81
-8FFEE9 EE9D82
-8FFEEA EE9D83
-8FFEEB EE9D84
-8FFEEC EE9D85
-8FFEED EE9D86
-8FFEEE EE9D87
-8FFEEF EE9D88
-8FFEF0 EE9D89
-8FFEF1 EE9D8A
-8FFEF2 EE9D8B
-8FFEF3 EE9D8C
-8FFEF4 EE9D8D
-8FFEF5 EE9D8E
-8FFEF6 EE9D8F
-8FFEF7 EE9D90
-8FFEF8 EE9D91
-8FFEF9 EE9D92
-8FFEFA EE9D93
-8FFEFB EE9D94
-8FFEFC EE9D95
-8FFEFD EE9D96
-8FFEFE EE9D97
-A1A1 E38080
-A1A2 E38081
-A1A3 E38082
-A1A4 EFBC8C
-A1A5 EFBC8E
-A1A6 E383BB
-A1A7 EFBC9A
-A1A8 EFBC9B
-A1A9 EFBC9F
-A1AA EFBC81
-A1AB E3829B
-A1AC E3829C
-A1AD C2B4
-A1AE EFBD80
-A1AF C2A8
-A1B0 EFBCBE
-A1B1 EFBFA3
-A1B2 EFBCBF
-A1B3 E383BD
-A1B4 E383BE
-A1B5 E3829D
-A1B6 E3829E
-A1B7 E38083
-A1B8 E4BB9D
-A1B9 E38085
-A1BA E38086
-A1BB E38087
-A1BC E383BC
-A1BD E28095
-A1BE E28090
-A1BF EFBC8F
-A1C0 EFBCBC
-A1C1 EFBD9E
-A1C2 E288A5
-A1C3 EFBD9C
-A1C4 E280A6
-A1C5 E280A5
-A1C6 E28098
-A1C7 E28099
-A1C8 E2809C
-A1C9 E2809D
-A1CA EFBC88
-A1CB EFBC89
-A1CC E38094
-A1CD E38095
-A1CE EFBCBB
-A1CF EFBCBD
-A1D0 EFBD9B
-A1D1 EFBD9D
-A1D2 E38088
-A1D3 E38089
-A1D4 E3808A
-A1D5 E3808B
-A1D6 E3808C
-A1D7 E3808D
-A1D8 E3808E
-A1D9 E3808F
-A1DA E38090
-A1DB E38091
-A1DC EFBC8B
-A1DD EFBC8D
-A1DE C2B1
-A1DF C397
-A1E0 C3B7
-A1E1 EFBC9D
-A1E2 E289A0
-A1E3 EFBC9C
-A1E4 EFBC9E
-A1E5 E289A6
-A1E6 E289A7
-A1E7 E2889E
-A1E8 E288B4
-A1E9 E29982
-A1EA E29980
-A1EB C2B0
-A1EC E280B2
-A1ED E280B3
-A1EE E28483
-A1EF EFBFA5
-A1F0 EFBC84
-A1F1 EFBFA0
-A1F2 EFBFA1
-A1F3 EFBC85
-A1F4 EFBC83
-A1F5 EFBC86
-A1F6 EFBC8A
-A1F7 EFBCA0
-A1F8 C2A7
-A1F9 E29886
-A1FA E29885
-A1FB E2978B
-A1FC E2978F
-A1FD E2978E
-A1FE E29787
-A2A1 E29786
-A2A2 E296A1
-A2A3 E296A0
-A2A4 E296B3
-A2A5 E296B2
-A2A6 E296BD
-A2A7 E296BC
-A2A8 E280BB
-A2A9 E38092
-A2AA E28692
-A2AB E28690
-A2AC E28691
-A2AD E28693
-A2AE E38093
-A2BA E28888
-A2BB E2888B
-A2BC E28A86
-A2BD E28A87
-A2BE E28A82
-A2BF E28A83
-A2C0 E288AA
-A2C1 E288A9
-A2CA E288A7
-A2CB E288A8
-A2CC EFBFA2
-A2CD E28792
-A2CE E28794
-A2CF E28880
-A2D0 E28883
-A2DC E288A0
-A2DD E28AA5
-A2DE E28C92
-A2DF E28882
-A2E0 E28887
-A2E1 E289A1
-A2E2 E28992
-A2E3 E289AA
-A2E4 E289AB
-A2E5 E2889A
-A2E6 E288BD
-A2E7 E2889D
-A2E8 E288B5
-A2E9 E288AB
-A2EA E288AC
-A2F2 E284AB
-A2F3 E280B0
-A2F4 E299AF
-A2F5 E299AD
-A2F6 E299AA
-A2F7 E280A0
-A2F8 E280A1
-A2F9 C2B6
-A2FE E297AF
-A3B0 EFBC90
-A3B1 EFBC91
-A3B2 EFBC92
-A3B3 EFBC93
-A3B4 EFBC94
-A3B5 EFBC95
-A3B6 EFBC96
-A3B7 EFBC97
-A3B8 EFBC98
-A3B9 EFBC99
-A3C1 EFBCA1
-A3C2 EFBCA2
-A3C3 EFBCA3
-A3C4 EFBCA4
-A3C5 EFBCA5
-A3C6 EFBCA6
-A3C7 EFBCA7
-A3C8 EFBCA8
-A3C9 EFBCA9
-A3CA EFBCAA
-A3CB EFBCAB
-A3CC EFBCAC
-A3CD EFBCAD
-A3CE EFBCAE
-A3CF EFBCAF
-A3D0 EFBCB0
-A3D1 EFBCB1
-A3D2 EFBCB2
-A3D3 EFBCB3
-A3D4 EFBCB4
-A3D5 EFBCB5
-A3D6 EFBCB6
-A3D7 EFBCB7
-A3D8 EFBCB8
-A3D9 EFBCB9
-A3DA EFBCBA
-A3E1 EFBD81
-A3E2 EFBD82
-A3E3 EFBD83
-A3E4 EFBD84
-A3E5 EFBD85
-A3E6 EFBD86
-A3E7 EFBD87
-A3E8 EFBD88
-A3E9 EFBD89
-A3EA EFBD8A
-A3EB EFBD8B
-A3EC EFBD8C
-A3ED EFBD8D
-A3EE EFBD8E
-A3EF EFBD8F
-A3F0 EFBD90
-A3F1 EFBD91
-A3F2 EFBD92
-A3F3 EFBD93
-A3F4 EFBD94
-A3F5 EFBD95
-A3F6 EFBD96
-A3F7 EFBD97
-A3F8 EFBD98
-A3F9 EFBD99
-A3FA EFBD9A
-A4A1 E38181
-A4A2 E38182
-A4A3 E38183
-A4A4 E38184
-A4A5 E38185
-A4A6 E38186
-A4A7 E38187
-A4A8 E38188
-A4A9 E38189
-A4AA E3818A
-A4AB E3818B
-A4AC E3818C
-A4AD E3818D
-A4AE E3818E
-A4AF E3818F
-A4B0 E38190
-A4B1 E38191
-A4B2 E38192
-A4B3 E38193
-A4B4 E38194
-A4B5 E38195
-A4B6 E38196
-A4B7 E38197
-A4B8 E38198
-A4B9 E38199
-A4BA E3819A
-A4BB E3819B
-A4BC E3819C
-A4BD E3819D
-A4BE E3819E
-A4BF E3819F
-A4C0 E381A0
-A4C1 E381A1
-A4C2 E381A2
-A4C3 E381A3
-A4C4 E381A4
-A4C5 E381A5
-A4C6 E381A6
-A4C7 E381A7
-A4C8 E381A8
-A4C9 E381A9
-A4CA E381AA
-A4CB E381AB
-A4CC E381AC
-A4CD E381AD
-A4CE E381AE
-A4CF E381AF
-A4D0 E381B0
-A4D1 E381B1
-A4D2 E381B2
-A4D3 E381B3
-A4D4 E381B4
-A4D5 E381B5
-A4D6 E381B6
-A4D7 E381B7
-A4D8 E381B8
-A4D9 E381B9
-A4DA E381BA
-A4DB E381BB
-A4DC E381BC
-A4DD E381BD
-A4DE E381BE
-A4DF E381BF
-A4E0 E38280
-A4E1 E38281
-A4E2 E38282
-A4E3 E38283
-A4E4 E38284
-A4E5 E38285
-A4E6 E38286
-A4E7 E38287
-A4E8 E38288
-A4E9 E38289
-A4EA E3828A
-A4EB E3828B
-A4EC E3828C
-A4ED E3828D
-A4EE E3828E
-A4EF E3828F
-A4F0 E38290
-A4F1 E38291
-A4F2 E38292
-A4F3 E38293
-A5A1 E382A1
-A5A2 E382A2
-A5A3 E382A3
-A5A4 E382A4
-A5A5 E382A5
-A5A6 E382A6
-A5A7 E382A7
-A5A8 E382A8
-A5A9 E382A9
-A5AA E382AA
-A5AB E382AB
-A5AC E382AC
-A5AD E382AD
-A5AE E382AE
-A5AF E382AF
-A5B0 E382B0
-A5B1 E382B1
-A5B2 E382B2
-A5B3 E382B3
-A5B4 E382B4
-A5B5 E382B5
-A5B6 E382B6
-A5B7 E382B7
-A5B8 E382B8
-A5B9 E382B9
-A5BA E382BA
-A5BB E382BB
-A5BC E382BC
-A5BD E382BD
-A5BE E382BE
-A5BF E382BF
-A5C0 E38380
-A5C1 E38381
-A5C2 E38382
-A5C3 E38383
-A5C4 E38384
-A5C5 E38385
-A5C6 E38386
-A5C7 E38387
-A5C8 E38388
-A5C9 E38389
-A5CA E3838A
-A5CB E3838B
-A5CC E3838C
-A5CD E3838D
-A5CE E3838E
-A5CF E3838F
-A5D0 E38390
-A5D1 E38391
-A5D2 E38392
-A5D3 E38393
-A5D4 E38394
-A5D5 E38395
-A5D6 E38396
-A5D7 E38397
-A5D8 E38398
-A5D9 E38399
-A5DA E3839A
-A5DB E3839B
-A5DC E3839C
-A5DD E3839D
-A5DE E3839E
-A5DF E3839F
-A5E0 E383A0
-A5E1 E383A1
-A5E2 E383A2
-A5E3 E383A3
-A5E4 E383A4
-A5E5 E383A5
-A5E6 E383A6
-A5E7 E383A7
-A5E8 E383A8
-A5E9 E383A9
-A5EA E383AA
-A5EB E383AB
-A5EC E383AC
-A5ED E383AD
-A5EE E383AE
-A5EF E383AF
-A5F0 E383B0
-A5F1 E383B1
-A5F2 E383B2
-A5F3 E383B3
-A5F4 E383B4
-A5F5 E383B5
-A5F6 E383B6
-A6A1 CE91
-A6A2 CE92
-A6A3 CE93
-A6A4 CE94
-A6A5 CE95
-A6A6 CE96
-A6A7 CE97
-A6A8 CE98
-A6A9 CE99
-A6AA CE9A
-A6AB CE9B
-A6AC CE9C
-A6AD CE9D
-A6AE CE9E
-A6AF CE9F
-A6B0 CEA0
-A6B1 CEA1
-A6B2 CEA3
-A6B3 CEA4
-A6B4 CEA5
-A6B5 CEA6
-A6B6 CEA7
-A6B7 CEA8
-A6B8 CEA9
-A6C1 CEB1
-A6C2 CEB2
-A6C3 CEB3
-A6C4 CEB4
-A6C5 CEB5
-A6C6 CEB6
-A6C7 CEB7
-A6C8 CEB8
-A6C9 CEB9
-A6CA CEBA
-A6CB CEBB
-A6CC CEBC
-A6CD CEBD
-A6CE CEBE
-A6CF CEBF
-A6D0 CF80
-A6D1 CF81
-A6D2 CF83
-A6D3 CF84
-A6D4 CF85
-A6D5 CF86
-A6D6 CF87
-A6D7 CF88
-A6D8 CF89
-A7A1 D090
-A7A2 D091
-A7A3 D092
-A7A4 D093
-A7A5 D094
-A7A6 D095
-A7A7 D081
-A7A8 D096
-A7A9 D097
-A7AA D098
-A7AB D099
-A7AC D09A
-A7AD D09B
-A7AE D09C
-A7AF D09D
-A7B0 D09E
-A7B1 D09F
-A7B2 D0A0
-A7B3 D0A1
-A7B4 D0A2
-A7B5 D0A3
-A7B6 D0A4
-A7B7 D0A5
-A7B8 D0A6
-A7B9 D0A7
-A7BA D0A8
-A7BB D0A9
-A7BC D0AA
-A7BD D0AB
-A7BE D0AC
-A7BF D0AD
-A7C0 D0AE
-A7C1 D0AF
-A7D1 D0B0
-A7D2 D0B1
-A7D3 D0B2
-A7D4 D0B3
-A7D5 D0B4
-A7D6 D0B5
-A7D7 D191
-A7D8 D0B6
-A7D9 D0B7
-A7DA D0B8
-A7DB D0B9
-A7DC D0BA
-A7DD D0BB
-A7DE D0BC
-A7DF D0BD
-A7E0 D0BE
-A7E1 D0BF
-A7E2 D180
-A7E3 D181
-A7E4 D182
-A7E5 D183
-A7E6 D184
-A7E7 D185
-A7E8 D186
-A7E9 D187
-A7EA D188
-A7EB D189
-A7EC D18A
-A7ED D18B
-A7EE D18C
-A7EF D18D
-A7F0 D18E
-A7F1 D18F
-A8A1 E29480
-A8A2 E29482
-A8A3 E2948C
-A8A4 E29490
-A8A5 E29498
-A8A6 E29494
-A8A7 E2949C
-A8A8 E294AC
-A8A9 E294A4
-A8AA E294B4
-A8AB E294BC
-A8AC E29481
-A8AD E29483
-A8AE E2948F
-A8AF E29493
-A8B0 E2949B
-A8B1 E29497
-A8B2 E294A3
-A8B3 E294B3
-A8B4 E294AB
-A8B5 E294BB
-A8B6 E2958B
-A8B7 E294A0
-A8B8 E294AF
-A8B9 E294A8
-A8BA E294B7
-A8BB E294BF
-A8BC E2949D
-A8BD E294B0
-A8BE E294A5
-A8BF E294B8
-A8C0 E29582
-ADA1 E291A0
-ADA2 E291A1
-ADA3 E291A2
-ADA4 E291A3
-ADA5 E291A4
-ADA6 E291A5
-ADA7 E291A6
-ADA8 E291A7
-ADA9 E291A8
-ADAA E291A9
-ADAB E291AA
-ADAC E291AB
-ADAD E291AC
-ADAE E291AD
-ADAF E291AE
-ADB0 E291AF
-ADB1 E291B0
-ADB2 E291B1
-ADB3 E291B2
-ADB4 E291B3
-ADB5 E285A0
-ADB6 E285A1
-ADB7 E285A2
-ADB8 E285A3
-ADB9 E285A4
-ADBA E285A5
-ADBB E285A6
-ADBC E285A7
-ADBD E285A8
-ADBE E285A9
-ADC0 E38D89
-ADC1 E38C94
-ADC2 E38CA2
-ADC3 E38D8D
-ADC4 E38C98
-ADC5 E38CA7
-ADC6 E38C83
-ADC7 E38CB6
-ADC8 E38D91
-ADC9 E38D97
-ADCA E38C8D
-ADCB E38CA6
-ADCC E38CA3
-ADCD E38CAB
-ADCE E38D8A
-ADCF E38CBB
-ADD0 E38E9C
-ADD1 E38E9D
-ADD2 E38E9E
-ADD3 E38E8E
-ADD4 E38E8F
-ADD5 E38F84
-ADD6 E38EA1
-ADDF E38DBB
-ADE0 E3809D
-ADE1 E3809F
-ADE2 E28496
-ADE3 E38F8D
-ADE4 E284A1
-ADE5 E38AA4
-ADE6 E38AA5
-ADE7 E38AA6
-ADE8 E38AA7
-ADE9 E38AA8
-ADEA E388B1
-ADEB E388B2
-ADEC E388B9
-ADED E38DBE
-ADEE E38DBD
-ADEF E38DBC
-ADF0 E28992
-ADF1 E289A1
-ADF2 E288AB
-ADF3 E288AE
-ADF4 E28891
-ADF5 E2889A
-ADF6 E28AA5
-ADF7 E288A0
-ADF8 E2889F
-ADF9 E28ABF
-ADFA E288B5
-ADFB E288A9
-ADFC E288AA
-B0A1 E4BA9C
-B0A2 E59496
-B0A3 E5A883
-B0A4 E998BF
-B0A5 E59380
-B0A6 E6849B
-B0A7 E68CA8
-B0A8 E5A7B6
-B0A9 E980A2
-B0AA E891B5
-B0AB E88C9C
-B0AC E7A990
-B0AD E682AA
-B0AE E68FA1
-B0AF E6B8A5
-B0B0 E697AD
-B0B1 E891A6
-B0B2 E88AA6
-B0B3 E9AFB5
-B0B4 E6A293
-B0B5 E59CA7
-B0B6 E696A1
-B0B7 E689B1
-B0B8 E5AE9B
-B0B9 E5A790
-B0BA E899BB
-B0BB E9A3B4
-B0BC E7B5A2
-B0BD E7B6BE
-B0BE E9AE8E
-B0BF E68896
-B0C0 E7B29F
-B0C1 E8A2B7
-B0C2 E5AE89
-B0C3 E5BAB5
-B0C4 E68C89
-B0C5 E69A97
-B0C6 E6A188
-B0C7 E99787
-B0C8 E99E8D
-B0C9 E69D8F
-B0CA E4BBA5
-B0CB E4BC8A
-B0CC E4BD8D
-B0CD E4BE9D
-B0CE E58189
-B0CF E59BB2
-B0D0 E5A4B7
-B0D1 E5A794
-B0D2 E5A881
-B0D3 E5B089
-B0D4 E6839F
-B0D5 E6848F
-B0D6 E685B0
-B0D7 E69893
-B0D8 E6A485
-B0D9 E782BA
-B0DA E7958F
-B0DB E795B0
-B0DC E7A7BB
-B0DD E7B6AD
-B0DE E7B7AF
-B0DF E88383
-B0E0 E8908E
-B0E1 E8A1A3
-B0E2 E8AC82
-B0E3 E98195
-B0E4 E981BA
-B0E5 E58CBB
-B0E6 E4BA95
-B0E7 E4BAA5
-B0E8 E59F9F
-B0E9 E882B2
-B0EA E98381
-B0EB E7A3AF
-B0EC E4B880
-B0ED E5A3B1
-B0EE E6BAA2
-B0EF E980B8
-B0F0 E7A8B2
-B0F1 E88CA8
-B0F2 E88A8B
-B0F3 E9B0AF
-B0F4 E58581
-B0F5 E58DB0
-B0F6 E592BD
-B0F7 E593A1
-B0F8 E59BA0
-B0F9 E5A7BB
-B0FA E5BC95
-B0FB E9A3B2
-B0FC E6B7AB
-B0FD E883A4
-B0FE E894AD
-B1A1 E999A2
-B1A2 E999B0
-B1A3 E99AA0
-B1A4 E99FBB
-B1A5 E5908B
-B1A6 E58FB3
-B1A7 E5AE87
-B1A8 E7838F
-B1A9 E7BEBD
-B1AA E8BF82
-B1AB E99BA8
-B1AC E58DAF
-B1AD E9B59C
-B1AE E7AABA
-B1AF E4B891
-B1B0 E7A293
-B1B1 E887BC
-B1B2 E6B8A6
-B1B3 E59898
-B1B4 E59484
-B1B5 E6AC9D
-B1B6 E8949A
-B1B7 E9B0BB
-B1B8 E5A7A5
-B1B9 E58EA9
-B1BA E6B5A6
-B1BB E7939C
-B1BC E9968F
-B1BD E59982
-B1BE E4BA91
-B1BF E9818B
-B1C0 E99BB2
-B1C1 E88D8F
-B1C2 E9A48C
-B1C3 E58FA1
-B1C4 E596B6
-B1C5 E5ACB0
-B1C6 E5BDB1
-B1C7 E698A0
-B1C8 E69BB3
-B1C9 E6A084
-B1CA E6B0B8
-B1CB E6B3B3
-B1CC E6B4A9
-B1CD E7919B
-B1CE E79B88
-B1CF E7A98E
-B1D0 E9A0B4
-B1D1 E88BB1
-B1D2 E8A19B
-B1D3 E8A9A0
-B1D4 E98BAD
-B1D5 E6B6B2
-B1D6 E796AB
-B1D7 E79B8A
-B1D8 E9A785
-B1D9 E682A6
-B1DA E8AC81
-B1DB E8B68A
-B1DC E996B2
-B1DD E6A68E
-B1DE E58EAD
-B1DF E58686
-B1E0 E59C92
-B1E1 E5A0B0
-B1E2 E5A584
-B1E3 E5AEB4
-B1E4 E5BBB6
-B1E5 E680A8
-B1E6 E68EA9
-B1E7 E68FB4
-B1E8 E6B2BF
-B1E9 E6BC94
-B1EA E7828E
-B1EB E78494
-B1EC E78599
-B1ED E78795
-B1EE E78CBF
-B1EF E7B881
-B1F0 E889B6
-B1F1 E88B91
-B1F2 E89697
-B1F3 E981A0
-B1F4 E9899B
-B1F5 E9B49B
-B1F6 E5A1A9
-B1F7 E696BC
-B1F8 E6B19A
-B1F9 E794A5
-B1FA E587B9
-B1FB E5A4AE
-B1FC E5A5A5
-B1FD E5BE80
-B1FE E5BF9C
-B2A1 E68ABC
-B2A2 E697BA
-B2A3 E6A8AA
-B2A4 E6ACA7
-B2A5 E6AEB4
-B2A6 E78E8B
-B2A7 E7BF81
-B2A8 E8A596
-B2A9 E9B4AC
-B2AA E9B48E
-B2AB E9BB84
-B2AC E5B2A1
-B2AD E6B296
-B2AE E88DBB
-B2AF E58484
-B2B0 E5B18B
-B2B1 E686B6
-B2B2 E88786
-B2B3 E6A1B6
-B2B4 E789A1
-B2B5 E4B999
-B2B6 E4BFBA
-B2B7 E58DB8
-B2B8 E681A9
-B2B9 E6B8A9
-B2BA E7A98F
-B2BB E99FB3
-B2BC E4B88B
-B2BD E58C96
-B2BE E4BBAE
-B2BF E4BD95
-B2C0 E4BCBD
-B2C1 E4BEA1
-B2C2 E4BDB3
-B2C3 E58AA0
-B2C4 E58FAF
-B2C5 E59889
-B2C6 E5A48F
-B2C7 E5AB81
-B2C8 E5AEB6
-B2C9 E5AFA1
-B2CA E7A791
-B2CB E69A87
-B2CC E69E9C
-B2CD E69EB6
-B2CE E6AD8C
-B2CF E6B2B3
-B2D0 E781AB
-B2D1 E78F82
-B2D2 E7A68D
-B2D3 E7A6BE
-B2D4 E7A8BC
-B2D5 E7AE87
-B2D6 E88AB1
-B2D7 E88B9B
-B2D8 E88C84
-B2D9 E88DB7
-B2DA E88FAF
-B2DB E88F93
-B2DC E89DA6
-B2DD E8AAB2
-B2DE E598A9
-B2DF E8B2A8
-B2E0 E8BFA6
-B2E1 E9818E
-B2E2 E99C9E
-B2E3 E89A8A
-B2E4 E4BF84
-B2E5 E5B3A8
-B2E6 E68891
-B2E7 E78999
-B2E8 E794BB
-B2E9 E887A5
-B2EA E88ABD
-B2EB E89BBE
-B2EC E8B380
-B2ED E99B85
-B2EE E9A493
-B2EF E9A795
-B2F0 E4BB8B
-B2F1 E4BC9A
-B2F2 E8A7A3
-B2F3 E59B9E
-B2F4 E5A18A
-B2F5 E5A38A
-B2F6 E5BBBB
-B2F7 E5BFAB
-B2F8 E680AA
-B2F9 E68294
-B2FA E681A2
-B2FB E68790
-B2FC E68892
-B2FD E68B90
-B2FE E694B9
-B3A1 E9AD81
-B3A2 E699A6
-B3A3 E6A2B0
-B3A4 E6B5B7
-B3A5 E781B0
-B3A6 E7958C
-B3A7 E79A86
-B3A8 E7B5B5
-B3A9 E88AA5
-B3AA E89FB9
-B3AB E9968B
-B3AC E99A8E
-B3AD E8B29D
-B3AE E587B1
-B3AF E58ABE
-B3B0 E5A496
-B3B1 E592B3
-B3B2 E5AEB3
-B3B3 E5B496
-B3B4 E685A8
-B3B5 E6A682
-B3B6 E6B6AF
-B3B7 E7A28D
-B3B8 E8938B
-B3B9 E8A197
-B3BA E8A9B2
-B3BB E98EA7
-B3BC E9AAB8
-B3BD E6B5AC
-B3BE E9A6A8
-B3BF E89B99
-B3C0 E59EA3
-B3C1 E69FBF
-B3C2 E89B8E
-B3C3 E9888E
-B3C4 E58A83
-B3C5 E59A87
-B3C6 E59084
-B3C7 E5BB93
-B3C8 E68BA1
-B3C9 E692B9
-B3CA E6A0BC
-B3CB E6A0B8
-B3CC E6AEBB
-B3CD E78DB2
-B3CE E7A2BA
-B3CF E7A9AB
-B3D0 E8A69A
-B3D1 E8A792
-B3D2 E8B5AB
-B3D3 E8BC83
-B3D4 E983AD
-B3D5 E996A3
-B3D6 E99A94
-B3D7 E99DA9
-B3D8 E5ADA6
-B3D9 E5B2B3
-B3DA E6A5BD
-B3DB E9A18D
-B3DC E9A18E
-B3DD E68E9B
-B3DE E7ACA0
-B3DF E6A8AB
-B3E0 E6A9BF
-B3E1 E6A2B6
-B3E2 E9B08D
-B3E3 E6BD9F
-B3E4 E589B2
-B3E5 E5969D
-B3E6 E681B0
-B3E7 E68BAC
-B3E8 E6B4BB
-B3E9 E6B887
-B3EA E6BB91
-B3EB E8919B
-B3EC E8A490
-B3ED E8BD84
-B3EE E4B894
-B3EF E9B0B9
-B3F0 E58FB6
-B3F1 E6A49B
-B3F2 E6A8BA
-B3F3 E99E84
-B3F4 E6A0AA
-B3F5 E5859C
-B3F6 E7AB83
-B3F7 E892B2
-B3F8 E9879C
-B3F9 E98E8C
-B3FA E5999B
-B3FB E9B4A8
-B3FC E6A0A2
-B3FD E88C85
-B3FE E890B1
-B4A1 E7B2A5
-B4A2 E58888
-B4A3 E88B85
-B4A4 E793A6
-B4A5 E4B9BE
-B4A6 E4BE83
-B4A7 E586A0
-B4A8 E5AF92
-B4A9 E5888A
-B4AA E58B98
-B4AB E58BA7
-B4AC E5B7BB
-B4AD E5969A
-B4AE E5A0AA
-B4AF E5A7A6
-B4B0 E5AE8C
-B4B1 E5AE98
-B4B2 E5AF9B
-B4B3 E5B9B2
-B4B4 E5B9B9
-B4B5 E682A3
-B4B6 E6849F
-B4B7 E685A3
-B4B8 E686BE
-B4B9 E68F9B
-B4BA E695A2
-B4BB E69F91
-B4BC E6A193
-B4BD E6A3BA
-B4BE E6ACBE
-B4BF E6AD93
-B4C0 E6B197
-B4C1 E6BCA2
-B4C2 E6BE97
-B4C3 E6BD85
-B4C4 E792B0
-B4C5 E79498
-B4C6 E79BA3
-B4C7 E79C8B
-B4C8 E7ABBF
-B4C9 E7AEA1
-B4CA E7B0A1
-B4CB E7B7A9
-B4CC E7BCB6
-B4CD E7BFB0
-B4CE E8829D
-B4CF E889A6
-B4D0 E88E9E
-B4D1 E8A6B3
-B4D2 E8AB8C
-B4D3 E8B2AB
-B4D4 E98284
-B4D5 E99191
-B4D6 E99693
-B4D7 E99691
-B4D8 E996A2
-B4D9 E999A5
-B4DA E99F93
-B4DB E9A4A8
-B4DC E88898
-B4DD E4B8B8
-B4DE E590AB
-B4DF E5B2B8
-B4E0 E5B78C
-B4E1 E78EA9
-B4E2 E7998C
-B4E3 E79CBC
-B4E4 E5B2A9
-B4E5 E7BFAB
-B4E6 E8B48B
-B4E7 E99B81
-B4E8 E9A091
-B4E9 E9A194
-B4EA E9A198
-B4EB E4BC81
-B4EC E4BC8E
-B4ED E58DB1
-B4EE E5969C
-B4EF E599A8
-B4F0 E59FBA
-B4F1 E5A587
-B4F2 E5AC89
-B4F3 E5AF84
-B4F4 E5B290
-B4F5 E5B88C
-B4F6 E5B9BE
-B4F7 E5BF8C
-B4F8 E68FAE
-B4F9 E69CBA
-B4FA E69797
-B4FB E697A2
-B4FC E69C9F
-B4FD E6A38B
-B4FE E6A384
-B5A1 E6A99F
-B5A2 E5B8B0
-B5A3 E6AF85
-B5A4 E6B097
-B5A5 E6B1BD
-B5A6 E795BF
-B5A7 E7A588
-B5A8 E5ADA3
-B5A9 E7A880
-B5AA E7B480
-B5AB E5BEBD
-B5AC E8A68F
-B5AD E8A898
-B5AE E8B2B4
-B5AF E8B5B7
-B5B0 E8BB8C
-B5B1 E8BC9D
-B5B2 E9A3A2
-B5B3 E9A88E
-B5B4 E9ACBC
-B5B5 E4BA80
-B5B6 E581BD
-B5B7 E58480
-B5B8 E5A693
-B5B9 E5AE9C
-B5BA E688AF
-B5BB E68A80
-B5BC E693AC
-B5BD E6ACBA
-B5BE E78AA0
-B5BF E79691
-B5C0 E7A587
-B5C1 E7BEA9
-B5C2 E89FBB
-B5C3 E8AABC
-B5C4 E8ADB0
-B5C5 E68EAC
-B5C6 E88F8A
-B5C7 E99EA0
-B5C8 E59089
-B5C9 E59083
-B5CA E596AB
-B5CB E6A194
-B5CC E6A998
-B5CD E8A9B0
-B5CE E7A0A7
-B5CF E69DB5
-B5D0 E9BB8D
-B5D1 E58DB4
-B5D2 E5AEA2
-B5D3 E8849A
-B5D4 E89990
-B5D5 E98086
-B5D6 E4B898
-B5D7 E4B985
-B5D8 E4BB87
-B5D9 E4BC91
-B5DA E58F8A
-B5DB E590B8
-B5DC E5AEAE
-B5DD E5BC93
-B5DE E680A5
-B5DF E69591
-B5E0 E69CBD
-B5E1 E6B182
-B5E2 E6B1B2
-B5E3 E6B3A3
-B5E4 E781B8
-B5E5 E79083
-B5E6 E7A9B6
-B5E7 E7AAAE
-B5E8 E7AC88
-B5E9 E7B49A
-B5EA E7B3BE
-B5EB E7B5A6
-B5EC E697A7
-B5ED E7899B
-B5EE E58EBB
-B5EF E5B185
-B5F0 E5B7A8
-B5F1 E68B92
-B5F2 E68BA0
-B5F3 E68C99
-B5F4 E6B8A0
-B5F5 E8999A
-B5F6 E8A8B1
-B5F7 E8B79D
-B5F8 E98BB8
-B5F9 E6BC81
-B5FA E7A6A6
-B5FB E9AD9A
-B5FC E4BAA8
-B5FD E4BAAB
-B5FE E4BAAC
-B6A1 E4BE9B
-B6A2 E4BEA0
-B6A3 E58391
-B6A4 E58587
-B6A5 E7ABB6
-B6A6 E585B1
-B6A7 E587B6
-B6A8 E58D94
-B6A9 E58CA1
-B6AA E58DBF
-B6AB E58FAB
-B6AC E596AC
-B6AD E5A283
-B6AE E5B3A1
-B6AF E5BCB7
-B6B0 E5BD8A
-B6B1 E680AF
-B6B2 E68190
-B6B3 E681AD
-B6B4 E68C9F
-B6B5 E69599
-B6B6 E6A98B
-B6B7 E6B381
-B6B8 E78B82
-B6B9 E78BAD
-B6BA E79FAF
-B6BB E883B8
-B6BC E88485
-B6BD E88888
-B6BE E8958E
-B6BF E983B7
-B6C0 E98FA1
-B6C1 E99FBF
-B6C2 E9A597
-B6C3 E9A99A
-B6C4 E4BBB0
-B6C5 E5879D
-B6C6 E5B0AD
-B6C7 E69A81
-B6C8 E6A5AD
-B6C9 E5B180
-B6CA E69BB2
-B6CB E6A5B5
-B6CC E78E89
-B6CD E6A190
-B6CE E7B281
-B6CF E58385
-B6D0 E58BA4
-B6D1 E59D87
-B6D2 E5B7BE
-B6D3 E98CA6
-B6D4 E696A4
-B6D5 E6ACA3
-B6D6 E6ACBD
-B6D7 E790B4
-B6D8 E7A681
-B6D9 E7A6BD
-B6DA E7AD8B
-B6DB E7B78A
-B6DC E88AB9
-B6DD E88F8C
-B6DE E8A1BF
-B6DF E8A59F
-B6E0 E8ACB9
-B6E1 E8BF91
-B6E2 E98791
-B6E3 E5909F
-B6E4 E98A80
-B6E5 E4B99D
-B6E6 E580B6
-B6E7 E58FA5
-B6E8 E58CBA
-B6E9 E78B97
-B6EA E78E96
-B6EB E79FA9
-B6EC E88BA6
-B6ED E8BAAF
-B6EE E9A786
-B6EF E9A788
-B6F0 E9A792
-B6F1 E585B7
-B6F2 E6849A
-B6F3 E8999E
-B6F4 E596B0
-B6F5 E7A9BA
-B6F6 E581B6
-B6F7 E5AF93
-B6F8 E98187
-B6F9 E99A85
-B6FA E4B8B2
-B6FB E6AB9B
-B6FC E987A7
-B6FD E5B191
-B6FE E5B188
-B7A1 E68E98
-B7A2 E7AA9F
-B7A3 E6B293
-B7A4 E99DB4
-B7A5 E8BDA1
-B7A6 E7AAAA
-B7A7 E7868A
-B7A8 E99A88
-B7A9 E7B282
-B7AA E6A097
-B7AB E7B9B0
-B7AC E6A191
-B7AD E98DAC
-B7AE E58BB2
-B7AF E5909B
-B7B0 E896AB
-B7B1 E8A893
-B7B2 E7BEA4
-B7B3 E8BB8D
-B7B4 E983A1
-B7B5 E58DA6
-B7B6 E8A288
-B7B7 E7A581
-B7B8 E4BF82
-B7B9 E582BE
-B7BA E58891
-B7BB E58584
-B7BC E59593
-B7BD E59CAD
-B7BE E78FAA
-B7BF E59E8B
-B7C0 E5A591
-B7C1 E5BDA2
-B7C2 E5BE84
-B7C3 E681B5
-B7C4 E685B6
-B7C5 E685A7
-B7C6 E686A9
-B7C7 E68EB2
-B7C8 E690BA
-B7C9 E695AC
-B7CA E699AF
-B7CB E6A182
-B7CC E6B893
-B7CD E795A6
-B7CE E7A8BD
-B7CF E7B3BB
-B7D0 E7B58C
-B7D1 E7B699
-B7D2 E7B98B
-B7D3 E7BDAB
-B7D4 E88C8E
-B7D5 E88D8A
-B7D6 E89B8D
-B7D7 E8A888
-B7D8 E8A9A3
-B7D9 E8ADA6
-B7DA E8BBBD
-B7DB E9A09A
-B7DC E9B68F
-B7DD E88AB8
-B7DE E8BF8E
-B7DF E9AFA8
-B7E0 E58A87
-B7E1 E6889F
-B7E2 E69283
-B7E3 E6BF80
-B7E4 E99A99
-B7E5 E6A181
-B7E6 E58291
-B7E7 E6ACA0
-B7E8 E6B1BA
-B7E9 E6BD94
-B7EA E7A9B4
-B7EB E7B590
-B7EC E8A180
-B7ED E8A8A3
-B7EE E69C88
-B7EF E4BBB6
-B7F0 E580B9
-B7F1 E580A6
-B7F2 E581A5
-B7F3 E585BC
-B7F4 E588B8
-B7F5 E589A3
-B7F6 E596A7
-B7F7 E59C8F
-B7F8 E5A085
-B7F9 E5AB8C
-B7FA E5BBBA
-B7FB E686B2
-B7FC E687B8
-B7FD E68BB3
-B7FE E68DB2
-B8A1 E6A49C
-B8A2 E6A8A9
-B8A3 E789BD
-B8A4 E78AAC
-B8A5 E78CAE
-B8A6 E7A094
-B8A7 E7A1AF
-B8A8 E7B5B9
-B8A9 E79C8C
-B8AA E882A9
-B8AB E8A68B
-B8AC E8AC99
-B8AD E8B3A2
-B8AE E8BB92
-B8AF E981A3
-B8B0 E98DB5
-B8B1 E999BA
-B8B2 E9A195
-B8B3 E9A893
-B8B4 E9B9B8
-B8B5 E58583
-B8B6 E58E9F
-B8B7 E58EB3
-B8B8 E5B9BB
-B8B9 E5BCA6
-B8BA E6B89B
-B8BB E6BA90
-B8BC E78E84
-B8BD E78FBE
-B8BE E7B583
-B8BF E888B7
-B8C0 E8A880
-B8C1 E8ABBA
-B8C2 E99990
-B8C3 E4B98E
-B8C4 E5808B
-B8C5 E58FA4
-B8C6 E591BC
-B8C7 E59BBA
-B8C8 E5A791
-B8C9 E5ADA4
-B8CA E5B7B1
-B8CB E5BAAB
-B8CC E5BCA7
-B8CD E688B8
-B8CE E69585
-B8CF E69EAF
-B8D0 E6B996
-B8D1 E78B90
-B8D2 E7B38A
-B8D3 E8A2B4
-B8D4 E882A1
-B8D5 E883A1
-B8D6 E88FB0
-B8D7 E8998E
-B8D8 E8AA87
-B8D9 E8B7A8
-B8DA E988B7
-B8DB E99B87
-B8DC E9A1A7
-B8DD E9BC93
-B8DE E4BA94
-B8DF E4BA92
-B8E0 E4BC8D
-B8E1 E58D88
-B8E2 E59189
-B8E3 E590BE
-B8E4 E5A8AF
-B8E5 E5BE8C
-B8E6 E5BEA1
-B8E7 E6829F
-B8E8 E6A2A7
-B8E9 E6AA8E
-B8EA E7919A
-B8EB E7A281
-B8EC E8AA9E
-B8ED E8AAA4
-B8EE E8ADB7
-B8EF E98690
-B8F0 E4B99E
-B8F1 E9AF89
-B8F2 E4BAA4
-B8F3 E4BDBC
-B8F4 E4BEAF
-B8F5 E58099
-B8F6 E58096
-B8F7 E58589
-B8F8 E585AC
-B8F9 E58A9F
-B8FA E58AB9
-B8FB E58BBE
-B8FC E58E9A
-B8FD E58FA3
-B8FE E59091
-B9A1 E5908E
-B9A2 E59689
-B9A3 E59D91
-B9A4 E59EA2
-B9A5 E5A5BD
-B9A6 E5AD94
-B9A7 E5AD9D
-B9A8 E5AE8F
-B9A9 E5B7A5
-B9AA E5B7A7
-B9AB E5B7B7
-B9AC E5B9B8
-B9AD E5BA83
-B9AE E5BA9A
-B9AF E5BAB7
-B9B0 E5BC98
-B9B1 E68192
-B9B2 E6858C
-B9B3 E68A97
-B9B4 E68B98
-B9B5 E68EA7
-B9B6 E694BB
-B9B7 E69882
-B9B8 E69983
-B9B9 E69BB4
-B9BA E69DAD
-B9BB E6A0A1
-B9BC E6A297
-B9BD E6A78B
-B9BE E6B19F
-B9BF E6B4AA
-B9C0 E6B5A9
-B9C1 E6B8AF
-B9C2 E6BA9D
-B9C3 E794B2
-B9C4 E79A87
-B9C5 E7A1AC
-B9C6 E7A8BF
-B9C7 E7B3A0
-B9C8 E7B485
-B9C9 E7B498
-B9CA E7B59E
-B9CB E7B6B1
-B9CC E88095
-B9CD E88083
-B9CE E882AF
-B9CF E882B1
-B9D0 E88594
-B9D1 E8868F
-B9D2 E888AA
-B9D3 E88D92
-B9D4 E8A18C
-B9D5 E8A1A1
-B9D6 E8AC9B
-B9D7 E8B2A2
-B9D8 E8B3BC
-B9D9 E9838A
-B9DA E985B5
-B9DB E989B1
-B9DC E7A0BF
-B9DD E98BBC
-B9DE E996A4
-B9DF E9998D
-B9E0 E9A085
-B9E1 E9A699
-B9E2 E9AB98
-B9E3 E9B4BB
-B9E4 E5899B
-B9E5 E58AAB
-B9E6 E58FB7
-B9E7 E59088
-B9E8 E5A395
-B9E9 E68BB7
-B9EA E6BFA0
-B9EB E8B1AA
-B9EC E8BD9F
-B9ED E9BAB9
-B9EE E5858B
-B9EF E588BB
-B9F0 E5918A
-B9F1 E59BBD
-B9F2 E7A980
-B9F3 E985B7
-B9F4 E9B5A0
-B9F5 E9BB92
-B9F6 E78D84
-B9F7 E6BC89
-B9F8 E885B0
-B9F9 E79491
-B9FA E5BFBD
-B9FB E6839A
-B9FC E9AAA8
-B9FD E78B9B
-B9FE E8BEBC
-BAA1 E6ADA4
-BAA2 E9A083
-BAA3 E4BB8A
-BAA4 E59BB0
-BAA5 E59DA4
-BAA6 E5A2BE
-BAA7 E5A99A
-BAA8 E681A8
-BAA9 E68787
-BAAA E6988F
-BAAB E69886
-BAAC E6A0B9
-BAAD E6A2B1
-BAAE E6B7B7
-BAAF E79795
-BAB0 E7B4BA
-BAB1 E889AE
-BAB2 E9AD82
-BAB3 E4BA9B
-BAB4 E4BD90
-BAB5 E58F89
-BAB6 E59486
-BAB7 E5B5AF
-BAB8 E5B7A6
-BAB9 E5B7AE
-BABA E69FBB
-BABB E6B299
-BABC E791B3
-BABD E7A082
-BABE E8A990
-BABF E98E96
-BAC0 E8A39F
-BAC1 E59D90
-BAC2 E5BAA7
-BAC3 E68CAB
-BAC4 E582B5
-BAC5 E582AC
-BAC6 E5868D
-BAC7 E69C80
-BAC8 E59389
-BAC9 E5A19E
-BACA E5A6BB
-BACB E5AEB0
-BACC E5BDA9
-BACD E6898D
-BACE E68EA1
-BACF E6A0BD
-BAD0 E6ADB3
-BAD1 E6B888
-BAD2 E781BD
-BAD3 E98787
-BAD4 E78A80
-BAD5 E7A095
-BAD6 E7A0A6
-BAD7 E7A5AD
-BAD8 E6968E
-BAD9 E7B4B0
-BADA E88F9C
-BADB E8A381
-BADC E8BC89
-BADD E99A9B
-BADE E589A4
-BADF E59CA8
-BAE0 E69D90
-BAE1 E7BDAA
-BAE2 E8B2A1
-BAE3 E586B4
-BAE4 E59D82
-BAE5 E998AA
-BAE6 E5A0BA
-BAE7 E6A68A
-BAE8 E882B4
-BAE9 E592B2
-BAEA E5B48E
-BAEB E59FBC
-BAEC E7A295
-BAED E9B7BA
-BAEE E4BD9C
-BAEF E5898A
-BAF0 E5928B
-BAF1 E690BE
-BAF2 E698A8
-BAF3 E69C94
-BAF4 E69FB5
-BAF5 E7AA84
-BAF6 E7AD96
-BAF7 E7B4A2
-BAF8 E98CAF
-BAF9 E6A19C
-BAFA E9AEAD
-BAFB E7ACB9
-BAFC E58C99
-BAFD E5868A
-BAFE E588B7
-BBA1 E5AF9F
-BBA2 E68BB6
-BBA3 E692AE
-BBA4 E693A6
-BBA5 E69CAD
-BBA6 E6AEBA
-BBA7 E896A9
-BBA8 E99B91
-BBA9 E79A90
-BBAA E9AF96
-BBAB E68D8C
-BBAC E98C86
-BBAD E9AEAB
-BBAE E79ABF
-BBAF E69992
-BBB0 E4B889
-BBB1 E58298
-BBB2 E58F82
-BBB3 E5B1B1
-BBB4 E683A8
-BBB5 E69292
-BBB6 E695A3
-BBB7 E6A19F
-BBB8 E787A6
-BBB9 E78F8A
-BBBA E794A3
-BBBB E7AE97
-BBBC E7BA82
-BBBD E89A95
-BBBE E8AE83
-BBBF E8B39B
-BBC0 E985B8
-BBC1 E9A490
-BBC2 E696AC
-BBC3 E69AAB
-BBC4 E6AE8B
-BBC5 E4BB95
-BBC6 E4BB94
-BBC7 E4BCBA
-BBC8 E4BDBF
-BBC9 E588BA
-BBCA E58FB8
-BBCB E58FB2
-BBCC E597A3
-BBCD E59B9B
-BBCE E5A3AB
-BBCF E5A78B
-BBD0 E5A789
-BBD1 E5A7BF
-BBD2 E5AD90
-BBD3 E5B18D
-BBD4 E5B882
-BBD5 E5B8AB
-BBD6 E5BF97
-BBD7 E6809D
-BBD8 E68C87
-BBD9 E694AF
-BBDA E5AD9C
-BBDB E696AF
-BBDC E696BD
-BBDD E697A8
-BBDE E69E9D
-BBDF E6ADA2
-BBE0 E6ADBB
-BBE1 E6B08F
-BBE2 E78D85
-BBE3 E7A589
-BBE4 E7A781
-BBE5 E7B3B8
-BBE6 E7B499
-BBE7 E7B4AB
-BBE8 E882A2
-BBE9 E88482
-BBEA E887B3
-BBEB E8A696
-BBEC E8A99E
-BBED E8A9A9
-BBEE E8A9A6
-BBEF E8AA8C
-BBF0 E8ABAE
-BBF1 E8B387
-BBF2 E8B39C
-BBF3 E99B8C
-BBF4 E9A3BC
-BBF5 E6ADAF
-BBF6 E4BA8B
-BBF7 E4BCBC
-BBF8 E4BE8D
-BBF9 E58590
-BBFA E5AD97
-BBFB E5AFBA
-BBFC E68588
-BBFD E68C81
-BBFE E69982
-BCA1 E6ACA1
-BCA2 E6BB8B
-BCA3 E6B2BB
-BCA4 E788BE
-BCA5 E792BD
-BCA6 E79794
-BCA7 E7A381
-BCA8 E7A4BA
-BCA9 E8808C
-BCAA E880B3
-BCAB E887AA
-BCAC E89294
-BCAD E8BE9E
-BCAE E6B190
-BCAF E9B9BF
-BCB0 E5BC8F
-BCB1 E8AD98
-BCB2 E9B4AB
-BCB3 E7ABBA
-BCB4 E8BBB8
-BCB5 E5AE8D
-BCB6 E99BAB
-BCB7 E4B883
-BCB8 E58FB1
-BCB9 E59FB7
-BCBA E5A4B1
-BCBB E5AB89
-BCBC E5AEA4
-BCBD E68289
-BCBE E6B9BF
-BCBF E6BC86
-BCC0 E796BE
-BCC1 E8B3AA
-BCC2 E5AE9F
-BCC3 E89480
-BCC4 E7AFA0
-BCC5 E581B2
-BCC6 E69FB4
-BCC7 E88A9D
-BCC8 E5B1A1
-BCC9 E8958A
-BCCA E7B89E
-BCCB E8888E
-BCCC E58699
-BCCD E5B084
-BCCE E68DA8
-BCCF E8B5A6
-BCD0 E6969C
-BCD1 E785AE
-BCD2 E7A4BE
-BCD3 E7B497
-BCD4 E88085
-BCD5 E8AC9D
-BCD6 E8BB8A
-BCD7 E981AE
-BCD8 E89B87
-BCD9 E982AA
-BCDA E5809F
-BCDB E58BBA
-BCDC E5B0BA
-BCDD E69D93
-BCDE E781BC
-BCDF E788B5
-BCE0 E9858C
-BCE1 E98788
-BCE2 E98CAB
-BCE3 E88BA5
-BCE4 E5AF82
-BCE5 E5BCB1
-BCE6 E683B9
-BCE7 E4B8BB
-BCE8 E58F96
-BCE9 E5AE88
-BCEA E6898B
-BCEB E69CB1
-BCEC E6AE8A
-BCED E78BA9
-BCEE E78FA0
-BCEF E7A8AE
-BCF0 E885AB
-BCF1 E8B6A3
-BCF2 E98592
-BCF3 E9A696
-BCF4 E58492
-BCF5 E58F97
-BCF6 E591AA
-BCF7 E5AFBF
-BCF8 E68E88
-BCF9 E6A8B9
-BCFA E7B6AC
-BCFB E99C80
-BCFC E59B9A
-BCFD E58F8E
-BCFE E591A8
-BDA1 E5AE97
-BDA2 E5B0B1
-BDA3 E5B79E
-BDA4 E4BFAE
-BDA5 E68481
-BDA6 E68BBE
-BDA7 E6B4B2
-BDA8 E7A780
-BDA9 E7A78B
-BDAA E7B582
-BDAB E7B98D
-BDAC E7BF92
-BDAD E887AD
-BDAE E8889F
-BDAF E89290
-BDB0 E8A186
-BDB1 E8A5B2
-BDB2 E8AE90
-BDB3 E8B9B4
-BDB4 E8BCAF
-BDB5 E980B1
-BDB6 E9858B
-BDB7 E985AC
-BDB8 E99B86
-BDB9 E9869C
-BDBA E4BB80
-BDBB E4BD8F
-BDBC E58585
-BDBD E58D81
-BDBE E5BE93
-BDBF E6888E
-BDC0 E69F94
-BDC1 E6B181
-BDC2 E6B88B
-BDC3 E78DA3
-BDC4 E7B8A6
-BDC5 E9878D
-BDC6 E98A83
-BDC7 E58F94
-BDC8 E5A499
-BDC9 E5AEBF
-BDCA E6B791
-BDCB E7A59D
-BDCC E7B8AE
-BDCD E7B29B
-BDCE E5A1BE
-BDCF E7869F
-BDD0 E587BA
-BDD1 E8A193
-BDD2 E8BFB0
-BDD3 E4BF8A
-BDD4 E5B3BB
-BDD5 E698A5
-BDD6 E79EAC
-BDD7 E7ABA3
-BDD8 E8889C
-BDD9 E9A7BF
-BDDA E58786
-BDDB E5BEAA
-BDDC E697AC
-BDDD E6A5AF
-BDDE E6AE89
-BDDF E6B7B3
-BDE0 E6BA96
-BDE1 E6BDA4
-BDE2 E79BBE
-BDE3 E7B494
-BDE4 E5B7A1
-BDE5 E981B5
-BDE6 E98687
-BDE7 E9A086
-BDE8 E587A6
-BDE9 E5889D
-BDEA E68980
-BDEB E69A91
-BDEC E69B99
-BDED E6B89A
-BDEE E5BAB6
-BDEF E7B792
-BDF0 E7BDB2
-BDF1 E69BB8
-BDF2 E896AF
-BDF3 E897B7
-BDF4 E8ABB8
-BDF5 E58AA9
-BDF6 E58F99
-BDF7 E5A5B3
-BDF8 E5BA8F
-BDF9 E5BE90
-BDFA E68195
-BDFB E98BA4
-BDFC E999A4
-BDFD E582B7
-BDFE E5849F
-BEA1 E58B9D
-BEA2 E58CA0
-BEA3 E58D87
-BEA4 E58FAC
-BEA5 E593A8
-BEA6 E59586
-BEA7 E594B1
-BEA8 E59897
-BEA9 E5A5A8
-BEAA E5A6BE
-BEAB E5A8BC
-BEAC E5AEB5
-BEAD E5B086
-BEAE E5B08F
-BEAF E5B091
-BEB0 E5B09A
-BEB1 E5BA84
-BEB2 E5BA8A
-BEB3 E5BBA0
-BEB4 E5BDB0
-BEB5 E689BF
-BEB6 E68A84
-BEB7 E68B9B
-BEB8 E68E8C
-BEB9 E68DB7
-BEBA E69887
-BEBB E6988C
-BEBC E698AD
-BEBD E699B6
-BEBE E69DBE
-BEBF E6A2A2
-BEC0 E6A89F
-BEC1 E6A8B5
-BEC2 E6B2BC
-BEC3 E6B688
-BEC4 E6B889
-BEC5 E6B998
-BEC6 E784BC
-BEC7 E784A6
-BEC8 E785A7
-BEC9 E79787
-BECA E79C81
-BECB E7A19D
-BECC E7A481
-BECD E7A5A5
-BECE E7A7B0
-BECF E7ABA0
-BED0 E7AC91
-BED1 E7B2A7
-BED2 E7B4B9
-BED3 E88296
-BED4 E88F96
-BED5 E8928B
-BED6 E89589
-BED7 E8A19D
-BED8 E8A3B3
-BED9 E8A89F
-BEDA E8A8BC
-BEDB E8A994
-BEDC E8A9B3
-BEDD E8B1A1
-BEDE E8B39E
-BEDF E986A4
-BEE0 E989A6
-BEE1 E98DBE
-BEE2 E99098
-BEE3 E99A9C
-BEE4 E99E98
-BEE5 E4B88A
-BEE6 E4B888
-BEE7 E4B89E
-BEE8 E4B997
-BEE9 E58697
-BEEA E589B0
-BEEB E59F8E
-BEEC E5A0B4
-BEED E5A38C
-BEEE E5ACA2
-BEEF E5B8B8
-BEF0 E68385
-BEF1 E693BE
-BEF2 E69DA1
-BEF3 E69D96
-BEF4 E6B584
-BEF5 E78AB6
-BEF6 E795B3
-BEF7 E7A9A3
-BEF8 E892B8
-BEF9 E8ADB2
-BEFA E986B8
-BEFB E98CA0
-BEFC E598B1
-BEFD E59FB4
-BEFE E9A3BE
-BFA1 E68BAD
-BFA2 E6A48D
-BFA3 E6AE96
-BFA4 E787AD
-BFA5 E7B994
-BFA6 E881B7
-BFA7 E889B2
-BFA8 E8A7A6
-BFA9 E9A39F
-BFAA E89D95
-BFAB E8BEB1
-BFAC E5B0BB
-BFAD E4BCB8
-BFAE E4BFA1
-BFAF E4BEB5
-BFB0 E59487
-BFB1 E5A8A0
-BFB2 E5AF9D
-BFB3 E5AFA9
-BFB4 E5BF83
-BFB5 E6858E
-BFB6 E68CAF
-BFB7 E696B0
-BFB8 E6998B
-BFB9 E6A3AE
-BFBA E6A69B
-BFBB E6B5B8
-BFBC E6B7B1
-BFBD E794B3
-BFBE E796B9
-BFBF E79C9F
-BFC0 E7A59E
-BFC1 E7A7A6
-BFC2 E7B4B3
-BFC3 E887A3
-BFC4 E88AAF
-BFC5 E896AA
-BFC6 E8A6AA
-BFC7 E8A8BA
-BFC8 E8BAAB
-BFC9 E8BE9B
-BFCA E980B2
-BFCB E9879D
-BFCC E99C87
-BFCD E4BABA
-BFCE E4BB81
-BFCF E58883
-BFD0 E5A1B5
-BFD1 E5A3AC
-BFD2 E5B08B
-BFD3 E7949A
-BFD4 E5B0BD
-BFD5 E8858E
-BFD6 E8A88A
-BFD7 E8BF85
-BFD8 E999A3
-BFD9 E99DAD
-BFDA E7ACA5
-BFDB E8AB8F
-BFDC E9A088
-BFDD E985A2
-BFDE E59BB3
-BFDF E58EA8
-BFE0 E98097
-BFE1 E590B9
-BFE2 E59E82
-BFE3 E5B8A5
-BFE4 E68EA8
-BFE5 E6B0B4
-BFE6 E7828A
-BFE7 E79DA1
-BFE8 E7B28B
-BFE9 E7BFA0
-BFEA E8A1B0
-BFEB E98182
-BFEC E98594
-BFED E98C90
-BFEE E98C98
-BFEF E99A8F
-BFF0 E7919E
-BFF1 E9AB84
-BFF2 E5B487
-BFF3 E5B5A9
-BFF4 E695B0
-BFF5 E69EA2
-BFF6 E8B6A8
-BFF7 E99B9B
-BFF8 E68DAE
-BFF9 E69D89
-BFFA E6A499
-BFFB E88F85
-BFFC E9A097
-BFFD E99B80
-BFFE E8A3BE
-C0A1 E6BE84
-C0A2 E691BA
-C0A3 E5AFB8
-C0A4 E4B896
-C0A5 E780AC
-C0A6 E7959D
-C0A7 E698AF
-C0A8 E58784
-C0A9 E588B6
-C0AA E58BA2
-C0AB E5A793
-C0AC E5BE81
-C0AD E680A7
-C0AE E68890
-C0AF E694BF
-C0B0 E695B4
-C0B1 E6989F
-C0B2 E699B4
-C0B3 E6A3B2
-C0B4 E6A096
-C0B5 E6ADA3
-C0B6 E6B885
-C0B7 E789B2
-C0B8 E7949F
-C0B9 E79B9B
-C0BA E7B2BE
-C0BB E88196
-C0BC E5A3B0
-C0BD E8A3BD
-C0BE E8A5BF
-C0BF E8AAA0
-C0C0 E8AA93
-C0C1 E8AB8B
-C0C2 E9809D
-C0C3 E98692
-C0C4 E99D92
-C0C5 E99D99
-C0C6 E69689
-C0C7 E7A88E
-C0C8 E88486
-C0C9 E99ABB
-C0CA E5B8AD
-C0CB E6839C
-C0CC E6889A
-C0CD E696A5
-C0CE E69894
-C0CF E69E90
-C0D0 E79FB3
-C0D1 E7A98D
-C0D2 E7B18D
-C0D3 E7B8BE
-C0D4 E8848A
-C0D5 E8B2AC
-C0D6 E8B5A4
-C0D7 E8B7A1
-C0D8 E8B99F
-C0D9 E7A2A9
-C0DA E58887
-C0DB E68B99
-C0DC E68EA5
-C0DD E69182
-C0DE E68A98
-C0DF E8A8AD
-C0E0 E7AA83
-C0E1 E7AF80
-C0E2 E8AAAC
-C0E3 E99BAA
-C0E4 E7B5B6
-C0E5 E8888C
-C0E6 E89D89
-C0E7 E4BB99
-C0E8 E58588
-C0E9 E58D83
-C0EA E58DA0
-C0EB E5AEA3
-C0EC E5B082
-C0ED E5B096
-C0EE E5B79D
-C0EF E688A6
-C0F0 E68987
-C0F1 E692B0
-C0F2 E6A093
-C0F3 E6A0B4
-C0F4 E6B389
-C0F5 E6B585
-C0F6 E6B497
-C0F7 E69F93
-C0F8 E6BD9C
-C0F9 E7858E
-C0FA E785BD
-C0FB E6978B
-C0FC E7A9BF
-C0FD E7AEAD
-C0FE E7B79A
-C1A1 E7B98A
-C1A2 E7BEA8
-C1A3 E885BA
-C1A4 E8889B
-C1A5 E888B9
-C1A6 E896A6
-C1A7 E8A9AE
-C1A8 E8B38E
-C1A9 E8B7B5
-C1AA E981B8
-C1AB E981B7
-C1AC E98AAD
-C1AD E98A91
-C1AE E99683
-C1AF E9AEAE
-C1B0 E5898D
-C1B1 E59684
-C1B2 E6BCB8
-C1B3 E784B6
-C1B4 E585A8
-C1B5 E7A685
-C1B6 E7B995
-C1B7 E886B3
-C1B8 E7B38E
-C1B9 E5998C
-C1BA E5A191
-C1BB E5B2A8
-C1BC E68EAA
-C1BD E69BBE
-C1BE E69BBD
-C1BF E6A59A
-C1C0 E78B99
-C1C1 E7968F
-C1C2 E7968E
-C1C3 E7A48E
-C1C4 E7A596
-C1C5 E7A79F
-C1C6 E7B297
-C1C7 E7B4A0
-C1C8 E7B584
-C1C9 E89887
-C1CA E8A8B4
-C1CB E998BB
-C1CC E981A1
-C1CD E9BCA0
-C1CE E583A7
-C1CF E589B5
-C1D0 E58F8C
-C1D1 E58FA2
-C1D2 E58089
-C1D3 E596AA
-C1D4 E5A3AE
-C1D5 E5A58F
-C1D6 E788BD
-C1D7 E5AE8B
-C1D8 E5B1A4
-C1D9 E58C9D
-C1DA E683A3
-C1DB E683B3
-C1DC E68D9C
-C1DD E68E83
-C1DE E68CBF
-C1DF E68EBB
-C1E0 E6938D
-C1E1 E697A9
-C1E2 E69BB9
-C1E3 E5B7A3
-C1E4 E6A78D
-C1E5 E6A7BD
-C1E6 E6BC95
-C1E7 E787A5
-C1E8 E4BA89
-C1E9 E797A9
-C1EA E79BB8
-C1EB E7AA93
-C1EC E7B39F
-C1ED E7B78F
-C1EE E7B69C
-C1EF E881A1
-C1F0 E88D89
-C1F1 E88D98
-C1F2 E891AC
-C1F3 E892BC
-C1F4 E897BB
-C1F5 E8A385
-C1F6 E8B5B0
-C1F7 E98081
-C1F8 E981AD
-C1F9 E98E97
-C1FA E99C9C
-C1FB E9A892
-C1FC E5838F
-C1FD E5A297
-C1FE E6868E
-C2A1 E88793
-C2A2 E894B5
-C2A3 E8B488
-C2A4 E980A0
-C2A5 E4BF83
-C2A6 E581B4
-C2A7 E58987
-C2A8 E58DB3
-C2A9 E681AF
-C2AA E68D89
-C2AB E69D9F
-C2AC E6B8AC
-C2AD E8B6B3
-C2AE E9809F
-C2AF E4BF97
-C2B0 E5B19E
-C2B1 E8B38A
-C2B2 E6978F
-C2B3 E7B69A
-C2B4 E58D92
-C2B5 E8A296
-C2B6 E585B6
-C2B7 E68F83
-C2B8 E5AD98
-C2B9 E5ADAB
-C2BA E5B08A
-C2BB E6908D
-C2BC E69D91
-C2BD E9819C
-C2BE E4BB96
-C2BF E5A49A
-C2C0 E5A4AA
-C2C1 E6B1B0
-C2C2 E8A991
-C2C3 E594BE
-C2C4 E5A095
-C2C5 E5A6A5
-C2C6 E683B0
-C2C7 E68993
-C2C8 E69F81
-C2C9 E888B5
-C2CA E6A595
-C2CB E99980
-C2CC E9A784
-C2CD E9A8A8
-C2CE E4BD93
-C2CF E5A086
-C2D0 E5AFBE
-C2D1 E88090
-C2D2 E5B2B1
-C2D3 E5B8AF
-C2D4 E5BE85
-C2D5 E680A0
-C2D6 E6858B
-C2D7 E688B4
-C2D8 E69BBF
-C2D9 E6B3B0
-C2DA E6BB9E
-C2DB E8838E
-C2DC E885BF
-C2DD E88B94
-C2DE E8A28B
-C2DF E8B2B8
-C2E0 E98080
-C2E1 E980AE
-C2E2 E99A8A
-C2E3 E9BB9B
-C2E4 E9AF9B
-C2E5 E4BBA3
-C2E6 E58FB0
-C2E7 E5A4A7
-C2E8 E7ACAC
-C2E9 E9868D
-C2EA E9A18C
-C2EB E9B7B9
-C2EC E6BB9D
-C2ED E780A7
-C2EE E58D93
-C2EF E59584
-C2F0 E5AE85
-C2F1 E68998
-C2F2 E68A9E
-C2F3 E68B93
-C2F4 E6B2A2
-C2F5 E6BFAF
-C2F6 E790A2
-C2F7 E8A897
-C2F8 E990B8
-C2F9 E6BF81
-C2FA E8ABBE
-C2FB E88CB8
-C2FC E587A7
-C2FD E89BB8
-C2FE E58FAA
-C3A1 E58FA9
-C3A2 E4BD86
-C3A3 E98194
-C3A4 E8BEB0
-C3A5 E5A5AA
-C3A6 E884B1
-C3A7 E5B7BD
-C3A8 E7ABAA
-C3A9 E8BEBF
-C3AA E6A39A
-C3AB E8B0B7
-C3AC E78BB8
-C3AD E9B188
-C3AE E6A8BD
-C3AF E8AAB0
-C3B0 E4B8B9
-C3B1 E58D98
-C3B2 E59886
-C3B3 E59DA6
-C3B4 E68B85
-C3B5 E68EA2
-C3B6 E697A6
-C3B7 E6AD8E
-C3B8 E6B7A1
-C3B9 E6B99B
-C3BA E782AD
-C3BB E79FAD
-C3BC E7ABAF
-C3BD E7AEAA
-C3BE E7B6BB
-C3BF E880BD
-C3C0 E88386
-C3C1 E89B8B
-C3C2 E8AA95
-C3C3 E98D9B
-C3C4 E59BA3
-C3C5 E5A387
-C3C6 E5BCBE
-C3C7 E696AD
-C3C8 E69A96
-C3C9 E6AA80
-C3CA E6AEB5
-C3CB E794B7
-C3CC E8AB87
-C3CD E580A4
-C3CE E79FA5
-C3CF E59CB0
-C3D0 E5BC9B
-C3D1 E681A5
-C3D2 E699BA
-C3D3 E6B1A0
-C3D4 E797B4
-C3D5 E7A89A
-C3D6 E7BDAE
-C3D7 E887B4
-C3D8 E89C98
-C3D9 E98185
-C3DA E9A6B3
-C3DB E7AF89
-C3DC E7959C
-C3DD E7ABB9
-C3DE E7AD91
-C3DF E89384
-C3E0 E98090
-C3E1 E7A7A9
-C3E2 E7AA92
-C3E3 E88CB6
-C3E4 E5ABA1
-C3E5 E79D80
-C3E6 E4B8AD
-C3E7 E4BBB2
-C3E8 E5AE99
-C3E9 E5BFA0
-C3EA E68ABD
-C3EB E698BC
-C3EC E69FB1
-C3ED E6B3A8
-C3EE E899AB
-C3EF E8A1B7
-C3F0 E8A8BB
-C3F1 E9858E
-C3F2 E98BB3
-C3F3 E9A790
-C3F4 E6A897
-C3F5 E780A6
-C3F6 E78CAA
-C3F7 E88BA7
-C3F8 E89197
-C3F9 E8B2AF
-C3FA E4B881
-C3FB E58586
-C3FC E5878B
-C3FD E5968B
-C3FE E5AFB5
-C4A1 E5B896
-C4A2 E5B8B3
-C4A3 E5BA81
-C4A4 E5BC94
-C4A5 E5BCB5
-C4A6 E5BDAB
-C4A7 E5BEB4
-C4A8 E687B2
-C4A9 E68C91
-C4AA E69AA2
-C4AB E69C9D
-C4AC E6BDAE
-C4AD E78992
-C4AE E794BA
-C4AF E79CBA
-C4B0 E881B4
-C4B1 E884B9
-C4B2 E885B8
-C4B3 E89DB6
-C4B4 E8AABF
-C4B5 E8AB9C
-C4B6 E8B685
-C4B7 E8B7B3
-C4B8 E98A9A
-C4B9 E995B7
-C4BA E9A082
-C4BB E9B3A5
-C4BC E58B85
-C4BD E68D97
-C4BE E79BB4
-C4BF E69C95
-C4C0 E6B288
-C4C1 E78F8D
-C4C2 E8B383
-C4C3 E98EAE
-C4C4 E999B3
-C4C5 E6B4A5
-C4C6 E5A29C
-C4C7 E6A48E
-C4C8 E6A78C
-C4C9 E8BFBD
-C4CA E98E9A
-C4CB E7979B
-C4CC E9809A
-C4CD E5A19A
-C4CE E6A082
-C4CF E68EB4
-C4D0 E6A7BB
-C4D1 E4BD83
-C4D2 E6BCAC
-C4D3 E69F98
-C4D4 E8BEBB
-C4D5 E894A6
-C4D6 E7B6B4
-C4D7 E98D94
-C4D8 E6A4BF
-C4D9 E6BDB0
-C4DA E59DAA
-C4DB E5A3B7
-C4DC E5ACAC
-C4DD E7B4AC
-C4DE E788AA
-C4DF E5908A
-C4E0 E987A3
-C4E1 E9B6B4
-C4E2 E4BAAD
-C4E3 E4BD8E
-C4E4 E5819C
-C4E5 E581B5
-C4E6 E58983
-C4E7 E8B29E
-C4E8 E59188
-C4E9 E5A0A4
-C4EA E5AE9A
-C4EB E5B89D
-C4EC E5BA95
-C4ED E5BAAD
-C4EE E5BBB7
-C4EF E5BC9F
-C4F0 E6828C
-C4F1 E68AB5
-C4F2 E68CBA
-C4F3 E68F90
-C4F4 E6A2AF
-C4F5 E6B180
-C4F6 E7A287
-C4F7 E7A68E
-C4F8 E7A88B
-C4F9 E7B7A0
-C4FA E88987
-C4FB E8A882
-C4FC E8ABA6
-C4FD E8B984
-C4FE E98093
-C5A1 E982B8
-C5A2 E984AD
-C5A3 E98798
-C5A4 E9BC8E
-C5A5 E6B3A5
-C5A6 E69198
-C5A7 E693A2
-C5A8 E695B5
-C5A9 E6BBB4
-C5AA E79A84
-C5AB E7AC9B
-C5AC E981A9
-C5AD E98F91
-C5AE E6BABA
-C5AF E593B2
-C5B0 E5BEB9
-C5B1 E692A4
-C5B2 E8BD8D
-C5B3 E8BFAD
-C5B4 E98984
-C5B5 E585B8
-C5B6 E5A1AB
-C5B7 E5A4A9
-C5B8 E5B195
-C5B9 E5BA97
-C5BA E6B7BB
-C5BB E7BA8F
-C5BC E7949C
-C5BD E8B2BC
-C5BE E8BBA2
-C5BF E9A19B
-C5C0 E782B9
-C5C1 E4BC9D
-C5C2 E6AEBF
-C5C3 E6BEB1
-C5C4 E794B0
-C5C5 E99BBB
-C5C6 E5858E
-C5C7 E59090
-C5C8 E5A0B5
-C5C9 E5A197
-C5CA E5A6AC
-C5CB E5B1A0
-C5CC E5BE92
-C5CD E69697
-C5CE E69D9C
-C5CF E6B8A1
-C5D0 E799BB
-C5D1 E88F9F
-C5D2 E8B3AD
-C5D3 E98094
-C5D4 E983BD
-C5D5 E98D8D
-C5D6 E7A0A5
-C5D7 E7A0BA
-C5D8 E58AAA
-C5D9 E5BAA6
-C5DA E59C9F
-C5DB E5A5B4
-C5DC E68092
-C5DD E58092
-C5DE E5859A
-C5DF E586AC
-C5E0 E5878D
-C5E1 E58880
-C5E2 E59490
-C5E3 E5A194
-C5E4 E5A198
-C5E5 E5A597
-C5E6 E5AE95
-C5E7 E5B3B6
-C5E8 E5B68B
-C5E9 E682BC
-C5EA E68A95
-C5EB E690AD
-C5EC E69DB1
-C5ED E6A183
-C5EE E6A2BC
-C5EF E6A39F
-C5F0 E79B97
-C5F1 E6B798
-C5F2 E6B9AF
-C5F3 E6B69B
-C5F4 E781AF
-C5F5 E78788
-C5F6 E5BD93
-C5F7 E79798
-C5F8 E7A5B7
-C5F9 E7AD89
-C5FA E7AD94
-C5FB E7AD92
-C5FC E7B396
-C5FD E7B5B1
-C5FE E588B0
-C6A1 E891A3
-C6A2 E895A9
-C6A3 E897A4
-C6A4 E8A88E
-C6A5 E8AC84
-C6A6 E8B186
-C6A7 E8B88F
-C6A8 E98083
-C6A9 E9808F
-C6AA E99099
-C6AB E999B6
-C6AC E9A0AD
-C6AD E9A8B0
-C6AE E99798
-C6AF E5838D
-C6B0 E58B95
-C6B1 E5908C
-C6B2 E5A082
-C6B3 E5B08E
-C6B4 E686A7
-C6B5 E6929E
-C6B6 E6B49E
-C6B7 E79EB3
-C6B8 E7ABA5
-C6B9 E883B4
-C6BA E89084
-C6BB E98193
-C6BC E98A85
-C6BD E5B3A0
-C6BE E9B487
-C6BF E58CBF
-C6C0 E5BE97
-C6C1 E5BEB3
-C6C2 E6B69C
-C6C3 E789B9
-C6C4 E79DA3
-C6C5 E7A6BF
-C6C6 E7AFA4
-C6C7 E6AF92
-C6C8 E78BAC
-C6C9 E8AAAD
-C6CA E6A083
-C6CB E6A9A1
-C6CC E587B8
-C6CD E7AA81
-C6CE E6A4B4
-C6CF E5B18A
-C6D0 E9B3B6
-C6D1 E88BAB
-C6D2 E5AF85
-C6D3 E98589
-C6D4 E7809E
-C6D5 E599B8
-C6D6 E5B1AF
-C6D7 E68387
-C6D8 E695A6
-C6D9 E6B28C
-C6DA E8B19A
-C6DB E98181
-C6DC E9A093
-C6DD E59191
-C6DE E69B87
-C6DF E9888D
-C6E0 E5A588
-C6E1 E982A3
-C6E2 E58685
-C6E3 E4B98D
-C6E4 E587AA
-C6E5 E89699
-C6E6 E8AC8E
-C6E7 E78198
-C6E8 E68DBA
-C6E9 E98D8B
-C6EA E6A5A2
-C6EB E9A6B4
-C6EC E7B884
-C6ED E795B7
-C6EE E58D97
-C6EF E6A5A0
-C6F0 E8BB9F
-C6F1 E99BA3
-C6F2 E6B19D
-C6F3 E4BA8C
-C6F4 E5B0BC
-C6F5 E5BC90
-C6F6 E8BFA9
-C6F7 E58C82
-C6F8 E8B391
-C6F9 E88289
-C6FA E899B9
-C6FB E5BBBF
-C6FC E697A5
-C6FD E4B9B3
-C6FE E585A5
-C7A1 E5A682
-C7A2 E5B0BF
-C7A3 E99FAE
-C7A4 E4BBBB
-C7A5 E5A68A
-C7A6 E5BF8D
-C7A7 E8AA8D
-C7A8 E6BFA1
-C7A9 E7A6B0
-C7AA E7A5A2
-C7AB E5AFA7
-C7AC E891B1
-C7AD E78CAB
-C7AE E786B1
-C7AF E5B9B4
-C7B0 E5BFB5
-C7B1 E68DBB
-C7B2 E6929A
-C7B3 E78783
-C7B4 E7B298
-C7B5 E4B983
-C7B6 E5BBBC
-C7B7 E4B98B
-C7B8 E59F9C
-C7B9 E59AA2
-C7BA E682A9
-C7BB E6BF83
-C7BC E7B48D
-C7BD E883BD
-C7BE E884B3
-C7BF E886BF
-C7C0 E8BEB2
-C7C1 E8A697
-C7C2 E89AA4
-C7C3 E5B7B4
-C7C4 E68A8A
-C7C5 E692AD
-C7C6 E8A687
-C7C7 E69DB7
-C7C8 E6B3A2
-C7C9 E6B4BE
-C7CA E790B6
-C7CB E7A0B4
-C7CC E5A986
-C7CD E7BDB5
-C7CE E88AAD
-C7CF E9A6AC
-C7D0 E4BFB3
-C7D1 E5BB83
-C7D2 E68B9D
-C7D3 E68E92
-C7D4 E69597
-C7D5 E69DAF
-C7D6 E79B83
-C7D7 E7898C
-C7D8 E8838C
-C7D9 E882BA
-C7DA E8BCA9
-C7DB E9858D
-C7DC E5808D
-C7DD E59FB9
-C7DE E5AA92
-C7DF E6A285
-C7E0 E6A5B3
-C7E1 E785A4
-C7E2 E78BBD
-C7E3 E8B2B7
-C7E4 E5A3B2
-C7E5 E8B3A0
-C7E6 E999AA
-C7E7 E98099
-C7E8 E89DBF
-C7E9 E7A7A4
-C7EA E79FA7
-C7EB E890A9
-C7EC E4BCAF
-C7ED E589A5
-C7EE E58D9A
-C7EF E68B8D
-C7F0 E69F8F
-C7F1 E6B38A
-C7F2 E799BD
-C7F3 E7AE94
-C7F4 E7B295
-C7F5 E888B6
-C7F6 E89684
-C7F7 E8BFAB
-C7F8 E69B9D
-C7F9 E6BCA0
-C7FA E78886
-C7FB E7B89B
-C7FC E88EAB
-C7FD E9A781
-C7FE E9BAA6
-C8A1 E587BD
-C8A2 E7AEB1
-C8A3 E7A1B2
-C8A4 E7AEB8
-C8A5 E88287
-C8A6 E7AD88
-C8A7 E6ABA8
-C8A8 E5B9A1
-C8A9 E8828C
-C8AA E79591
-C8AB E795A0
-C8AC E585AB
-C8AD E989A2
-C8AE E6BA8C
-C8AF E799BA
-C8B0 E98697
-C8B1 E9ABAA
-C8B2 E4BC90
-C8B3 E7BDB0
-C8B4 E68A9C
-C8B5 E7AD8F
-C8B6 E996A5
-C8B7 E9B3A9
-C8B8 E599BA
-C8B9 E5A199
-C8BA E89BA4
-C8BB E99ABC
-C8BC E4BCB4
-C8BD E588A4
-C8BE E58D8A
-C8BF E58F8D
-C8C0 E58F9B
-C8C1 E5B886
-C8C2 E690AC
-C8C3 E69691
-C8C4 E69DBF
-C8C5 E6B0BE
-C8C6 E6B18E
-C8C7 E78988
-C8C8 E78AAF
-C8C9 E78FAD
-C8CA E79594
-C8CB E7B981
-C8CC E888AC
-C8CD E897A9
-C8CE E8B2A9
-C8CF E7AF84
-C8D0 E98786
-C8D1 E785A9
-C8D2 E9A092
-C8D3 E9A3AF
-C8D4 E68CBD
-C8D5 E699A9
-C8D6 E795AA
-C8D7 E79BA4
-C8D8 E7A390
-C8D9 E89583
-C8DA E89BAE
-C8DB E58CAA
-C8DC E58D91
-C8DD E590A6
-C8DE E5A683
-C8DF E5BA87
-C8E0 E5BDBC
-C8E1 E682B2
-C8E2 E68989
-C8E3 E689B9
-C8E4 E68AAB
-C8E5 E69690
-C8E6 E6AF94
-C8E7 E6B38C
-C8E8 E796B2
-C8E9 E79AAE
-C8EA E7A291
-C8EB E7A798
-C8EC E7B78B
-C8ED E7BDB7
-C8EE E882A5
-C8EF E8A2AB
-C8F0 E8AAB9
-C8F1 E8B2BB
-C8F2 E981BF
-C8F3 E99D9E
-C8F4 E9A39B
-C8F5 E6A88B
-C8F6 E7B0B8
-C8F7 E58299
-C8F8 E5B0BE
-C8F9 E5BEAE
-C8FA E69E87
-C8FB E6AF98
-C8FC E790B5
-C8FD E79C89
-C8FE E7BE8E
-C9A1 E9BCBB
-C9A2 E69F8A
-C9A3 E7A897
-C9A4 E58CB9
-C9A5 E7968B
-C9A6 E9ABAD
-C9A7 E5BDA6
-C9A8 E8869D
-C9A9 E88FB1
-C9AA E88298
-C9AB E5BCBC
-C9AC E5BF85
-C9AD E795A2
-C9AE E7AD86
-C9AF E980BC
-C9B0 E6A1A7
-C9B1 E5A7AB
-C9B2 E5AA9B
-C9B3 E7B490
-C9B4 E799BE
-C9B5 E8ACAC
-C9B6 E4BFB5
-C9B7 E5BDAA
-C9B8 E6A899
-C9B9 E6B0B7
-C9BA E6BC82
-C9BB E793A2
-C9BC E7A5A8
-C9BD E8A1A8
-C9BE E8A995
-C9BF E8B1B9
-C9C0 E5BB9F
-C9C1 E68F8F
-C9C2 E79785
-C9C3 E7A792
-C9C4 E88B97
-C9C5 E98CA8
-C9C6 E98BB2
-C9C7 E8929C
-C9C8 E89BAD
-C9C9 E9B0AD
-C9CA E59381
-C9CB E5BDAC
-C9CC E6968C
-C9CD E6B59C
-C9CE E78095
-C9CF E8B2A7
-C9D0 E8B393
-C9D1 E9A0BB
-C9D2 E6958F
-C9D3 E793B6
-C9D4 E4B88D
-C9D5 E4BB98
-C9D6 E59FA0
-C9D7 E5A4AB
-C9D8 E5A9A6
-C9D9 E5AF8C
-C9DA E586A8
-C9DB E5B883
-C9DC E5BA9C
-C9DD E68096
-C9DE E689B6
-C9DF E695B7
-C9E0 E696A7
-C9E1 E699AE
-C9E2 E6B5AE
-C9E3 E788B6
-C9E4 E7ACA6
-C9E5 E88590
-C9E6 E8869A
-C9E7 E88A99
-C9E8 E8AD9C
-C9E9 E8B2A0
-C9EA E8B3A6
-C9EB E8B5B4
-C9EC E9989C
-C9ED E99984
-C9EE E4BEAE
-C9EF E692AB
-C9F0 E6ADA6
-C9F1 E8889E
-C9F2 E891A1
-C9F3 E895AA
-C9F4 E983A8
-C9F5 E5B081
-C9F6 E6A593
-C9F7 E9A2A8
-C9F8 E891BA
-C9F9 E89597
-C9FA E4BC8F
-C9FB E589AF
-C9FC E5BEA9
-C9FD E5B985
-C9FE E69C8D
-CAA1 E7A68F
-CAA2 E885B9
-CAA3 E8A487
-CAA4 E8A686
-CAA5 E6B7B5
-CAA6 E5BC97
-CAA7 E68995
-CAA8 E6B2B8
-CAA9 E4BB8F
-CAAA E789A9
-CAAB E9AE92
-CAAC E58886
-CAAD E590BB
-CAAE E599B4
-CAAF E5A2B3
-CAB0 E686A4
-CAB1 E689AE
-CAB2 E7849A
-CAB3 E5A5AE
-CAB4 E7B289
-CAB5 E7B39E
-CAB6 E7B49B
-CAB7 E99BB0
-CAB8 E69687
-CAB9 E8819E
-CABA E4B899
-CABB E4BDB5
-CABC E585B5
-CABD E5A180
-CABE E5B9A3
-CABF E5B9B3
-CAC0 E5BC8A
-CAC1 E69F84
-CAC2 E4B8A6
-CAC3 E894BD
-CAC4 E99689
-CAC5 E9999B
-CAC6 E7B1B3
-CAC7 E9A081
-CAC8 E583BB
-CAC9 E5A381
-CACA E79996
-CACB E7A2A7
-CACC E588A5
-CACD E79EA5
-CACE E89491
-CACF E7AE86
-CAD0 E5818F
-CAD1 E5A489
-CAD2 E78987
-CAD3 E7AF87
-CAD4 E7B7A8
-CAD5 E8BEBA
-CAD6 E8BF94
-CAD7 E9818D
-CAD8 E4BEBF
-CAD9 E58B89
-CADA E5A8A9
-CADB E5BC81
-CADC E99EAD
-CADD E4BF9D
-CADE E88897
-CADF E98BAA
-CAE0 E59C83
-CAE1 E68D95
-CAE2 E6ADA9
-CAE3 E794AB
-CAE4 E8A39C
-CAE5 E8BC94
-CAE6 E7A982
-CAE7 E58B9F
-CAE8 E5A293
-CAE9 E68595
-CAEA E6888A
-CAEB E69AAE
-CAEC E6AF8D
-CAED E7B0BF
-CAEE E88FA9
-CAEF E580A3
-CAF0 E4BFB8
-CAF1 E58C85
-CAF2 E59186
-CAF3 E5A0B1
-CAF4 E5A589
-CAF5 E5AE9D
-CAF6 E5B3B0
-CAF7 E5B3AF
-CAF8 E5B4A9
-CAF9 E5BA96
-CAFA E68AB1
-CAFB E68DA7
-CAFC E694BE
-CAFD E696B9
-CAFE E69C8B
-CBA1 E6B395
-CBA2 E6B3A1
-CBA3 E783B9
-CBA4 E7A0B2
-CBA5 E7B8AB
-CBA6 E8839E
-CBA7 E88AB3
-CBA8 E8908C
-CBA9 E893AC
-CBAA E89C82
-CBAB E8A492
-CBAC E8A8AA
-CBAD E8B18A
-CBAE E982A6
-CBAF E98B92
-CBB0 E9A3BD
-CBB1 E9B3B3
-CBB2 E9B5AC
-CBB3 E4B98F
-CBB4 E4BAA1
-CBB5 E5828D
-CBB6 E58996
-CBB7 E59D8A
-CBB8 E5A6A8
-CBB9 E5B8BD
-CBBA E5BF98
-CBBB E5BF99
-CBBC E688BF
-CBBD E69AB4
-CBBE E69C9B
-CBBF E69F90
-CBC0 E6A392
-CBC1 E58692
-CBC2 E7B4A1
-CBC3 E882AA
-CBC4 E886A8
-CBC5 E8AC80
-CBC6 E8B28C
-CBC7 E8B2BF
-CBC8 E989BE
-CBC9 E998B2
-CBCA E590A0
-CBCB E9A0AC
-CBCC E58C97
-CBCD E58395
-CBCE E58D9C
-CBCF E5A2A8
-CBD0 E692B2
-CBD1 E69CB4
-CBD2 E789A7
-CBD3 E79DA6
-CBD4 E7A986
-CBD5 E987A6
-CBD6 E58B83
-CBD7 E6B2A1
-CBD8 E6AE86
-CBD9 E5A080
-CBDA E5B98C
-CBDB E5A594
-CBDC E69CAC
-CBDD E7BFBB
-CBDE E587A1
-CBDF E79B86
-CBE0 E691A9
-CBE1 E7A3A8
-CBE2 E9AD94
-CBE3 E9BABB
-CBE4 E59F8B
-CBE5 E5A6B9
-CBE6 E698A7
-CBE7 E69E9A
-CBE8 E6AF8E
-CBE9 E593A9
-CBEA E6A799
-CBEB E5B995
-CBEC E8869C
-CBED E69E95
-CBEE E9AEAA
-CBEF E69FBE
-CBF0 E9B192
-CBF1 E6A19D
-CBF2 E4BAA6
-CBF3 E4BFA3
-CBF4 E58F88
-CBF5 E68AB9
-CBF6 E69CAB
-CBF7 E6B2AB
-CBF8 E8BF84
-CBF9 E4BEAD
-CBFA E7B9AD
-CBFB E9BABF
-CBFC E4B887
-CBFD E685A2
-CBFE E6BA80
-CCA1 E6BCAB
-CCA2 E89493
-CCA3 E591B3
-CCA4 E69CAA
-CCA5 E9AD85
-CCA6 E5B7B3
-CCA7 E7AE95
-CCA8 E5B2AC
-CCA9 E5AF86
-CCAA E89C9C
-CCAB E6B98A
-CCAC E89391
-CCAD E7A894
-CCAE E88488
-CCAF E5A699
-CCB0 E7B28D
-CCB1 E6B091
-CCB2 E79CA0
-CCB3 E58B99
-CCB4 E5A4A2
-CCB5 E784A1
-CCB6 E7899F
-CCB7 E79F9B
-CCB8 E99CA7
-CCB9 E9B5A1
-CCBA E6A48B
-CCBB E5A9BF
-CCBC E5A898
-CCBD E586A5
-CCBE E5908D
-CCBF E591BD
-CCC0 E6988E
-CCC1 E79B9F
-CCC2 E8BFB7
-CCC3 E98A98
-CCC4 E9B3B4
-CCC5 E5A7AA
-CCC6 E7899D
-CCC7 E6BB85
-CCC8 E5858D
-CCC9 E6A389
-CCCA E7B6BF
-CCCB E7B7AC
-CCCC E99DA2
-CCCD E9BABA
-CCCE E691B8
-CCCF E6A8A1
-CCD0 E88C82
-CCD1 E5A684
-CCD2 E5AD9F
-CCD3 E6AF9B
-CCD4 E78C9B
-CCD5 E79BB2
-CCD6 E7B6B2
-CCD7 E88097
-CCD8 E89299
-CCD9 E584B2
-CCDA E69CA8
-CCDB E9BB99
-CCDC E79BAE
-CCDD E69DA2
-CCDE E58BBF
-CCDF E9A485
-CCE0 E5B0A4
-CCE1 E688BB
-CCE2 E7B1BE
-CCE3 E8B2B0
-CCE4 E5958F
-CCE5 E682B6
-CCE6 E7B48B
-CCE7 E99680
-CCE8 E58C81
-CCE9 E4B99F
-CCEA E586B6
-CCEB E5A49C
-CCEC E788BA
-CCED E880B6
-CCEE E9878E
-CCEF E5BCA5
-CCF0 E79FA2
-CCF1 E58E84
-CCF2 E5BDB9
-CCF3 E7B484
-CCF4 E896AC
-CCF5 E8A8B3
-CCF6 E8BA8D
-CCF7 E99D96
-CCF8 E69FB3
-CCF9 E896AE
-CCFA E99193
-CCFB E68489
-CCFC E68488
-CCFD E6B2B9
-CCFE E79992
-CDA1 E8ABAD
-CDA2 E8BCB8
-CDA3 E594AF
-CDA4 E4BD91
-CDA5 E584AA
-CDA6 E58B87
-CDA7 E58F8B
-CDA8 E5AEA5
-CDA9 E5B9BD
-CDAA E682A0
-CDAB E68682
-CDAC E68F96
-CDAD E69C89
-CDAE E69F9A
-CDAF E6B9A7
-CDB0 E6B68C
-CDB1 E78CB6
-CDB2 E78CB7
-CDB3 E794B1
-CDB4 E7A590
-CDB5 E8A395
-CDB6 E8AA98
-CDB7 E9818A
-CDB8 E98291
-CDB9 E983B5
-CDBA E99B84
-CDBB E89E8D
-CDBC E5A495
-CDBD E4BA88
-CDBE E4BD99
-CDBF E4B88E
-CDC0 E8AA89
-CDC1 E8BCBF
-CDC2 E9A090
-CDC3 E582AD
-CDC4 E5B9BC
-CDC5 E5A696
-CDC6 E5AEB9
-CDC7 E5BAB8
-CDC8 E68F9A
-CDC9 E68FBA
-CDCA E69381
-CDCB E69B9C
-CDCC E6A58A
-CDCD E6A798
-CDCE E6B48B
-CDCF E6BAB6
-CDD0 E78694
-CDD1 E794A8
-CDD2 E7AAAF
-CDD3 E7BE8A
-CDD4 E88080
-CDD5 E89189
-CDD6 E89389
-CDD7 E8A681
-CDD8 E8ACA1
-CDD9 E8B88A
-CDDA E981A5
-CDDB E999BD
-CDDC E9A48A
-CDDD E685BE
-CDDE E68A91
-CDDF E6ACB2
-CDE0 E6B283
-CDE1 E6B5B4
-CDE2 E7BF8C
-CDE3 E7BFBC
-CDE4 E6B780
-CDE5 E7BE85
-CDE6 E89EBA
-CDE7 E8A3B8
-CDE8 E69DA5
-CDE9 E88EB1
-CDEA E9A0BC
-CDEB E99BB7
-CDEC E6B49B
-CDED E7B5A1
-CDEE E890BD
-CDEF E985AA
-CDF0 E4B9B1
-CDF1 E58DB5
-CDF2 E5B590
-CDF3 E6AC84
-CDF4 E6BFAB
-CDF5 E8978D
-CDF6 E898AD
-CDF7 E8A6A7
-CDF8 E588A9
-CDF9 E5908F
-CDFA E5B1A5
-CDFB E69D8E
-CDFC E6A2A8
-CDFD E79086
-CDFE E79283
-CEA1 E797A2
-CEA2 E8A38F
-CEA3 E8A3A1
-CEA4 E9878C
-CEA5 E99BA2
-CEA6 E999B8
-CEA7 E5BE8B
-CEA8 E78E87
-CEA9 E7AB8B
-CEAA E8918E
-CEAB E68EA0
-CEAC E795A5
-CEAD E58A89
-CEAE E6B581
-CEAF E6BA9C
-CEB0 E79089
-CEB1 E79599
-CEB2 E7A1AB
-CEB3 E7B292
-CEB4 E99A86
-CEB5 E7AB9C
-CEB6 E9BE8D
-CEB7 E4BEB6
-CEB8 E685AE
-CEB9 E69785
-CEBA E8999C
-CEBB E4BA86
-CEBC E4BAAE
-CEBD E5839A
-CEBE E4B8A1
-CEBF E5878C
-CEC0 E5AFAE
-CEC1 E69699
-CEC2 E6A281
-CEC3 E6B6BC
-CEC4 E78C9F
-CEC5 E79982
-CEC6 E79EAD
-CEC7 E7A89C
-CEC8 E7B3A7
-CEC9 E889AF
-CECA E8AB92
-CECB E981BC
-CECC E9878F
-CECD E999B5
-CECE E9A098
-CECF E58A9B
-CED0 E7B791
-CED1 E580AB
-CED2 E58E98
-CED3 E69E97
-CED4 E6B78B
-CED5 E78790
-CED6 E790B3
-CED7 E887A8
-CED8 E8BCAA
-CED9 E99AA3
-CEDA E9B197
-CEDB E9BA9F
-CEDC E791A0
-CEDD E5A181
-CEDE E6B699
-CEDF E7B4AF
-CEE0 E9A19E
-CEE1 E4BBA4
-CEE2 E4BCB6
-CEE3 E4BE8B
-CEE4 E586B7
-CEE5 E58AB1
-CEE6 E5B6BA
-CEE7 E6809C
-CEE8 E78EB2
-CEE9 E7A4BC
-CEEA E88B93
-CEEB E988B4
-CEEC E99AB7
-CEED E99BB6
-CEEE E99C8A
-CEEF E9BA97
-CEF0 E9BDA2
-CEF1 E69AA6
-CEF2 E6ADB4
-CEF3 E58897
-CEF4 E58AA3
-CEF5 E78388
-CEF6 E8A382
-CEF7 E5BB89
-CEF8 E6818B
-CEF9 E68690
-CEFA E6BCA3
-CEFB E78589
-CEFC E7B0BE
-CEFD E7B7B4
-CEFE E881AF
-CFA1 E893AE
-CFA2 E980A3
-CFA3 E98CAC
-CFA4 E59182
-CFA5 E9ADAF
-CFA6 E6AB93
-CFA7 E78289
-CFA8 E8B382
-CFA9 E8B7AF
-CFAA E99CB2
-CFAB E58AB4
-CFAC E5A981
-CFAD E5BB8A
-CFAE E5BC84
-CFAF E69C97
-CFB0 E6A5BC
-CFB1 E6A694
-CFB2 E6B5AA
-CFB3 E6BC8F
-CFB4 E789A2
-CFB5 E78BBC
-CFB6 E7AFAD
-CFB7 E88081
-CFB8 E881BE
-CFB9 E89D8B
-CFBA E9838E
-CFBB E585AD
-CFBC E9BA93
-CFBD E7A684
-CFBE E8828B
-CFBF E98CB2
-CFC0 E8AB96
-CFC1 E580AD
-CFC2 E5928C
-CFC3 E8A9B1
-CFC4 E6ADAA
-CFC5 E8B384
-CFC6 E88487
-CFC7 E68391
-CFC8 E69EA0
-CFC9 E9B7B2
-CFCA E4BA99
-CFCB E4BA98
-CFCC E9B090
-CFCD E8A9AB
-CFCE E89781
-CFCF E895A8
-CFD0 E6A480
-CFD1 E6B9BE
-CFD2 E7A297
-CFD3 E88595
-D0A1 E5BC8C
-D0A2 E4B890
-D0A3 E4B895
-D0A4 E4B8AA
-D0A5 E4B8B1
-D0A6 E4B8B6
-D0A7 E4B8BC
-D0A8 E4B8BF
-D0A9 E4B982
-D0AA E4B996
-D0AB E4B998
-D0AC E4BA82
-D0AD E4BA85
-D0AE E8B1AB
-D0AF E4BA8A
-D0B0 E88892
-D0B1 E5BC8D
-D0B2 E4BA8E
-D0B3 E4BA9E
-D0B4 E4BA9F
-D0B5 E4BAA0
-D0B6 E4BAA2
-D0B7 E4BAB0
-D0B8 E4BAB3
-D0B9 E4BAB6
-D0BA E4BB8E
-D0BB E4BB8D
-D0BC E4BB84
-D0BD E4BB86
-D0BE E4BB82
-D0BF E4BB97
-D0C0 E4BB9E
-D0C1 E4BBAD
-D0C2 E4BB9F
-D0C3 E4BBB7
-D0C4 E4BC89
-D0C5 E4BD9A
-D0C6 E4BCB0
-D0C7 E4BD9B
-D0C8 E4BD9D
-D0C9 E4BD97
-D0CA E4BD87
-D0CB E4BDB6
-D0CC E4BE88
-D0CD E4BE8F
-D0CE E4BE98
-D0CF E4BDBB
-D0D0 E4BDA9
-D0D1 E4BDB0
-D0D2 E4BE91
-D0D3 E4BDAF
-D0D4 E4BE86
-D0D5 E4BE96
-D0D6 E58498
-D0D7 E4BF94
-D0D8 E4BF9F
-D0D9 E4BF8E
-D0DA E4BF98
-D0DB E4BF9B
-D0DC E4BF91
-D0DD E4BF9A
-D0DE E4BF90
-D0DF E4BFA4
-D0E0 E4BFA5
-D0E1 E5809A
-D0E2 E580A8
-D0E3 E58094
-D0E4 E580AA
-D0E5 E580A5
-D0E6 E58085
-D0E7 E4BC9C
-D0E8 E4BFB6
-D0E9 E580A1
-D0EA E580A9
-D0EB E580AC
-D0EC E4BFBE
-D0ED E4BFAF
-D0EE E58091
-D0EF E58086
-D0F0 E58183
-D0F1 E58187
-D0F2 E69C83
-D0F3 E58195
-D0F4 E58190
-D0F5 E58188
-D0F6 E5819A
-D0F7 E58196
-D0F8 E581AC
-D0F9 E581B8
-D0FA E58280
-D0FB E5829A
-D0FC E58285
-D0FD E582B4
-D0FE E582B2
-D1A1 E58389
-D1A2 E5838A
-D1A3 E582B3
-D1A4 E58382
-D1A5 E58396
-D1A6 E5839E
-D1A7 E583A5
-D1A8 E583AD
-D1A9 E583A3
-D1AA E583AE
-D1AB E583B9
-D1AC E583B5
-D1AD E58489
-D1AE E58481
-D1AF E58482
-D1B0 E58496
-D1B1 E58495
-D1B2 E58494
-D1B3 E5849A
-D1B4 E584A1
-D1B5 E584BA
-D1B6 E584B7
-D1B7 E584BC
-D1B8 E584BB
-D1B9 E584BF
-D1BA E58580
-D1BB E58592
-D1BC E5858C
-D1BD E58594
-D1BE E585A2
-D1BF E7ABB8
-D1C0 E585A9
-D1C1 E585AA
-D1C2 E585AE
-D1C3 E58680
-D1C4 E58682
-D1C5 E59B98
-D1C6 E5868C
-D1C7 E58689
-D1C8 E5868F
-D1C9 E58691
-D1CA E58693
-D1CB E58695
-D1CC E58696
-D1CD E586A4
-D1CE E586A6
-D1CF E586A2
-D1D0 E586A9
-D1D1 E586AA
-D1D2 E586AB
-D1D3 E586B3
-D1D4 E586B1
-D1D5 E586B2
-D1D6 E586B0
-D1D7 E586B5
-D1D8 E586BD
-D1D9 E58785
-D1DA E58789
-D1DB E5879B
-D1DC E587A0
-D1DD E89995
-D1DE E587A9
-D1DF E587AD
-D1E0 E587B0
-D1E1 E587B5
-D1E2 E587BE
-D1E3 E58884
-D1E4 E5888B
-D1E5 E58894
-D1E6 E5888E
-D1E7 E588A7
-D1E8 E588AA
-D1E9 E588AE
-D1EA E588B3
-D1EB E588B9
-D1EC E5898F
-D1ED E58984
-D1EE E5898B
-D1EF E5898C
-D1F0 E5899E
-D1F1 E58994
-D1F2 E589AA
-D1F3 E589B4
-D1F4 E589A9
-D1F5 E589B3
-D1F6 E589BF
-D1F7 E589BD
-D1F8 E58A8D
-D1F9 E58A94
-D1FA E58A92
-D1FB E589B1
-D1FC E58A88
-D1FD E58A91
-D1FE E8BEA8
-D2A1 E8BEA7
-D2A2 E58AAC
-D2A3 E58AAD
-D2A4 E58ABC
-D2A5 E58AB5
-D2A6 E58B81
-D2A7 E58B8D
-D2A8 E58B97
-D2A9 E58B9E
-D2AA E58BA3
-D2AB E58BA6
-D2AC E9A3AD
-D2AD E58BA0
-D2AE E58BB3
-D2AF E58BB5
-D2B0 E58BB8
-D2B1 E58BB9
-D2B2 E58C86
-D2B3 E58C88
-D2B4 E794B8
-D2B5 E58C8D
-D2B6 E58C90
-D2B7 E58C8F
-D2B8 E58C95
-D2B9 E58C9A
-D2BA E58CA3
-D2BB E58CAF
-D2BC E58CB1
-D2BD E58CB3
-D2BE E58CB8
-D2BF E58D80
-D2C0 E58D86
-D2C1 E58D85
-D2C2 E4B897
-D2C3 E58D89
-D2C4 E58D8D
-D2C5 E58796
-D2C6 E58D9E
-D2C7 E58DA9
-D2C8 E58DAE
-D2C9 E5A498
-D2CA E58DBB
-D2CB E58DB7
-D2CC E58E82
-D2CD E58E96
-D2CE E58EA0
-D2CF E58EA6
-D2D0 E58EA5
-D2D1 E58EAE
-D2D2 E58EB0
-D2D3 E58EB6
-D2D4 E58F83
-D2D5 E7B092
-D2D6 E99B99
-D2D7 E58F9F
-D2D8 E69BBC
-D2D9 E787AE
-D2DA E58FAE
-D2DB E58FA8
-D2DC E58FAD
-D2DD E58FBA
-D2DE E59081
-D2DF E590BD
-D2E0 E59180
-D2E1 E590AC
-D2E2 E590AD
-D2E3 E590BC
-D2E4 E590AE
-D2E5 E590B6
-D2E6 E590A9
-D2E7 E5909D
-D2E8 E5918E
-D2E9 E5928F
-D2EA E591B5
-D2EB E5928E
-D2EC E5919F
-D2ED E591B1
-D2EE E591B7
-D2EF E591B0
-D2F0 E59292
-D2F1 E591BB
-D2F2 E59280
-D2F3 E591B6
-D2F4 E59284
-D2F5 E59290
-D2F6 E59286
-D2F7 E59387
-D2F8 E592A2
-D2F9 E592B8
-D2FA E592A5
-D2FB E592AC
-D2FC E59384
-D2FD E59388
-D2FE E592A8
-D3A1 E592AB
-D3A2 E59382
-D3A3 E592A4
-D3A4 E592BE
-D3A5 E592BC
-D3A6 E59398
-D3A7 E593A5
-D3A8 E593A6
-D3A9 E5948F
-D3AA E59494
-D3AB E593BD
-D3AC E593AE
-D3AD E593AD
-D3AE E593BA
-D3AF E593A2
-D3B0 E594B9
-D3B1 E59580
-D3B2 E595A3
-D3B3 E5958C
-D3B4 E594AE
-D3B5 E5959C
-D3B6 E59585
-D3B7 E59596
-D3B8 E59597
-D3B9 E594B8
-D3BA E594B3
-D3BB E5959D
-D3BC E59699
-D3BD E59680
-D3BE E592AF
-D3BF E5968A
-D3C0 E5969F
-D3C1 E595BB
-D3C2 E595BE
-D3C3 E59698
-D3C4 E5969E
-D3C5 E596AE
-D3C6 E595BC
-D3C7 E59683
-D3C8 E596A9
-D3C9 E59687
-D3CA E596A8
-D3CB E5979A
-D3CC E59785
-D3CD E5979F
-D3CE E59784
-D3CF E5979C
-D3D0 E597A4
-D3D1 E59794
-D3D2 E59894
-D3D3 E597B7
-D3D4 E59896
-D3D5 E597BE
-D3D6 E597BD
-D3D7 E5989B
-D3D8 E597B9
-D3D9 E5998E
-D3DA E59990
-D3DB E7879F
-D3DC E598B4
-D3DD E598B6
-D3DE E598B2
-D3DF E598B8
-D3E0 E599AB
-D3E1 E599A4
-D3E2 E598AF
-D3E3 E599AC
-D3E4 E599AA
-D3E5 E59A86
-D3E6 E59A80
-D3E7 E59A8A
-D3E8 E59AA0
-D3E9 E59A94
-D3EA E59A8F
-D3EB E59AA5
-D3EC E59AAE
-D3ED E59AB6
-D3EE E59AB4
-D3EF E59B82
-D3F0 E59ABC
-D3F1 E59B81
-D3F2 E59B83
-D3F3 E59B80
-D3F4 E59B88
-D3F5 E59B8E
-D3F6 E59B91
-D3F7 E59B93
-D3F8 E59B97
-D3F9 E59BAE
-D3FA E59BB9
-D3FB E59C80
-D3FC E59BBF
-D3FD E59C84
-D3FE E59C89
-D4A1 E59C88
-D4A2 E59C8B
-D4A3 E59C8D
-D4A4 E59C93
-D4A5 E59C98
-D4A6 E59C96
-D4A7 E59787
-D4A8 E59C9C
-D4A9 E59CA6
-D4AA E59CB7
-D4AB E59CB8
-D4AC E59D8E
-D4AD E59CBB
-D4AE E59D80
-D4AF E59D8F
-D4B0 E59DA9
-D4B1 E59F80
-D4B2 E59E88
-D4B3 E59DA1
-D4B4 E59DBF
-D4B5 E59E89
-D4B6 E59E93
-D4B7 E59EA0
-D4B8 E59EB3
-D4B9 E59EA4
-D4BA E59EAA
-D4BB E59EB0
-D4BC E59F83
-D4BD E59F86
-D4BE E59F94
-D4BF E59F92
-D4C0 E59F93
-D4C1 E5A08A
-D4C2 E59F96
-D4C3 E59FA3
-D4C4 E5A08B
-D4C5 E5A099
-D4C6 E5A09D
-D4C7 E5A1B2
-D4C8 E5A0A1
-D4C9 E5A1A2
-D4CA E5A18B
-D4CB E5A1B0
-D4CC E6AF80
-D4CD E5A192
-D4CE E5A0BD
-D4CF E5A1B9
-D4D0 E5A285
-D4D1 E5A2B9
-D4D2 E5A29F
-D4D3 E5A2AB
-D4D4 E5A2BA
-D4D5 E5A39E
-D4D6 E5A2BB
-D4D7 E5A2B8
-D4D8 E5A2AE
-D4D9 E5A385
-D4DA E5A393
-D4DB E5A391
-D4DC E5A397
-D4DD E5A399
-D4DE E5A398
-D4DF E5A3A5
-D4E0 E5A39C
-D4E1 E5A3A4
-D4E2 E5A39F
-D4E3 E5A3AF
-D4E4 E5A3BA
-D4E5 E5A3B9
-D4E6 E5A3BB
-D4E7 E5A3BC
-D4E8 E5A3BD
-D4E9 E5A482
-D4EA E5A48A
-D4EB E5A490
-D4EC E5A49B
-D4ED E6A2A6
-D4EE E5A4A5
-D4EF E5A4AC
-D4F0 E5A4AD
-D4F1 E5A4B2
-D4F2 E5A4B8
-D4F3 E5A4BE
-D4F4 E7AB92
-D4F5 E5A595
-D4F6 E5A590
-D4F7 E5A58E
-D4F8 E5A59A
-D4F9 E5A598
-D4FA E5A5A2
-D4FB E5A5A0
-D4FC E5A5A7
-D4FD E5A5AC
-D4FE E5A5A9
-D5A1 E5A5B8
-D5A2 E5A681
-D5A3 E5A69D
-D5A4 E4BD9E
-D5A5 E4BEAB
-D5A6 E5A6A3
-D5A7 E5A6B2
-D5A8 E5A786
-D5A9 E5A7A8
-D5AA E5A79C
-D5AB E5A68D
-D5AC E5A799
-D5AD E5A79A
-D5AE E5A8A5
-D5AF E5A89F
-D5B0 E5A891
-D5B1 E5A89C
-D5B2 E5A889
-D5B3 E5A89A
-D5B4 E5A980
-D5B5 E5A9AC
-D5B6 E5A989
-D5B7 E5A8B5
-D5B8 E5A8B6
-D5B9 E5A9A2
-D5BA E5A9AA
-D5BB E5AA9A
-D5BC E5AABC
-D5BD E5AABE
-D5BE E5AB8B
-D5BF E5AB82
-D5C0 E5AABD
-D5C1 E5ABA3
-D5C2 E5AB97
-D5C3 E5ABA6
-D5C4 E5ABA9
-D5C5 E5AB96
-D5C6 E5ABBA
-D5C7 E5ABBB
-D5C8 E5AC8C
-D5C9 E5AC8B
-D5CA E5AC96
-D5CB E5ACB2
-D5CC E5AB90
-D5CD E5ACAA
-D5CE E5ACB6
-D5CF E5ACBE
-D5D0 E5AD83
-D5D1 E5AD85
-D5D2 E5AD80
-D5D3 E5AD91
-D5D4 E5AD95
-D5D5 E5AD9A
-D5D6 E5AD9B
-D5D7 E5ADA5
-D5D8 E5ADA9
-D5D9 E5ADB0
-D5DA E5ADB3
-D5DB E5ADB5
-D5DC E5ADB8
-D5DD E69688
-D5DE E5ADBA
-D5DF E5AE80
-D5E0 E5AE83
-D5E1 E5AEA6
-D5E2 E5AEB8
-D5E3 E5AF83
-D5E4 E5AF87
-D5E5 E5AF89
-D5E6 E5AF94
-D5E7 E5AF90
-D5E8 E5AFA4
-D5E9 E5AFA6
-D5EA E5AFA2
-D5EB E5AF9E
-D5EC E5AFA5
-D5ED E5AFAB
-D5EE E5AFB0
-D5EF E5AFB6
-D5F0 E5AFB3
-D5F1 E5B085
-D5F2 E5B087
-D5F3 E5B088
-D5F4 E5B08D
-D5F5 E5B093
-D5F6 E5B0A0
-D5F7 E5B0A2
-D5F8 E5B0A8
-D5F9 E5B0B8
-D5FA E5B0B9
-D5FB E5B181
-D5FC E5B186
-D5FD E5B18E
-D5FE E5B193
-D6A1 E5B190
-D6A2 E5B18F
-D6A3 E5ADB1
-D6A4 E5B1AC
-D6A5 E5B1AE
-D6A6 E4B9A2
-D6A7 E5B1B6
-D6A8 E5B1B9
-D6A9 E5B28C
-D6AA E5B291
-D6AB E5B294
-D6AC E5A69B
-D6AD E5B2AB
-D6AE E5B2BB
-D6AF E5B2B6
-D6B0 E5B2BC
-D6B1 E5B2B7
-D6B2 E5B385
-D6B3 E5B2BE
-D6B4 E5B387
-D6B5 E5B399
-D6B6 E5B3A9
-D6B7 E5B3BD
-D6B8 E5B3BA
-D6B9 E5B3AD
-D6BA E5B68C
-D6BB E5B3AA
-D6BC E5B48B
-D6BD E5B495
-D6BE E5B497
-D6BF E5B59C
-D6C0 E5B49F
-D6C1 E5B49B
-D6C2 E5B491
-D6C3 E5B494
-D6C4 E5B4A2
-D6C5 E5B49A
-D6C6 E5B499
-D6C7 E5B498
-D6C8 E5B58C
-D6C9 E5B592
-D6CA E5B58E
-D6CB E5B58B
-D6CC E5B5AC
-D6CD E5B5B3
-D6CE E5B5B6
-D6CF E5B687
-D6D0 E5B684
-D6D1 E5B682
-D6D2 E5B6A2
-D6D3 E5B69D
-D6D4 E5B6AC
-D6D5 E5B6AE
-D6D6 E5B6BD
-D6D7 E5B690
-D6D8 E5B6B7
-D6D9 E5B6BC
-D6DA E5B789
-D6DB E5B78D
-D6DC E5B793
-D6DD E5B792
-D6DE E5B796
-D6DF E5B79B
-D6E0 E5B7AB
-D6E1 E5B7B2
-D6E2 E5B7B5
-D6E3 E5B88B
-D6E4 E5B89A
-D6E5 E5B899
-D6E6 E5B891
-D6E7 E5B89B
-D6E8 E5B8B6
-D6E9 E5B8B7
-D6EA E5B984
-D6EB E5B983
-D6EC E5B980
-D6ED E5B98E
-D6EE E5B997
-D6EF E5B994
-D6F0 E5B99F
-D6F1 E5B9A2
-D6F2 E5B9A4
-D6F3 E5B987
-D6F4 E5B9B5
-D6F5 E5B9B6
-D6F6 E5B9BA
-D6F7 E9BABC
-D6F8 E5B9BF
-D6F9 E5BAA0
-D6FA E5BB81
-D6FB E5BB82
-D6FC E5BB88
-D6FD E5BB90
-D6FE E5BB8F
-D7A1 E5BB96
-D7A2 E5BBA3
-D7A3 E5BB9D
-D7A4 E5BB9A
-D7A5 E5BB9B
-D7A6 E5BBA2
-D7A7 E5BBA1
-D7A8 E5BBA8
-D7A9 E5BBA9
-D7AA E5BBAC
-D7AB E5BBB1
-D7AC E5BBB3
-D7AD E5BBB0
-D7AE E5BBB4
-D7AF E5BBB8
-D7B0 E5BBBE
-D7B1 E5BC83
-D7B2 E5BC89
-D7B3 E5BD9D
-D7B4 E5BD9C
-D7B5 E5BC8B
-D7B6 E5BC91
-D7B7 E5BC96
-D7B8 E5BCA9
-D7B9 E5BCAD
-D7BA E5BCB8
-D7BB E5BD81
-D7BC E5BD88
-D7BD E5BD8C
-D7BE E5BD8E
-D7BF E5BCAF
-D7C0 E5BD91
-D7C1 E5BD96
-D7C2 E5BD97
-D7C3 E5BD99
-D7C4 E5BDA1
-D7C5 E5BDAD
-D7C6 E5BDB3
-D7C7 E5BDB7
-D7C8 E5BE83
-D7C9 E5BE82
-D7CA E5BDBF
-D7CB E5BE8A
-D7CC E5BE88
-D7CD E5BE91
-D7CE E5BE87
-D7CF E5BE9E
-D7D0 E5BE99
-D7D1 E5BE98
-D7D2 E5BEA0
-D7D3 E5BEA8
-D7D4 E5BEAD
-D7D5 E5BEBC
-D7D6 E5BF96
-D7D7 E5BFBB
-D7D8 E5BFA4
-D7D9 E5BFB8
-D7DA E5BFB1
-D7DB E5BF9D
-D7DC E682B3
-D7DD E5BFBF
-D7DE E680A1
-D7DF E681A0
-D7E0 E68099
-D7E1 E68090
-D7E2 E680A9
-D7E3 E6808E
-D7E4 E680B1
-D7E5 E6809B
-D7E6 E68095
-D7E7 E680AB
-D7E8 E680A6
-D7E9 E6808F
-D7EA E680BA
-D7EB E6819A
-D7EC E68181
-D7ED E681AA
-D7EE E681B7
-D7EF E6819F
-D7F0 E6818A
-D7F1 E68186
-D7F2 E6818D
-D7F3 E681A3
-D7F4 E68183
-D7F5 E681A4
-D7F6 E68182
-D7F7 E681AC
-D7F8 E681AB
-D7F9 E68199
-D7FA E68281
-D7FB E6828D
-D7FC E683A7
-D7FD E68283
-D7FE E6829A
-D8A1 E68284
-D8A2 E6829B
-D8A3 E68296
-D8A4 E68297
-D8A5 E68292
-D8A6 E682A7
-D8A7 E6828B
-D8A8 E683A1
-D8A9 E682B8
-D8AA E683A0
-D8AB E68393
-D8AC E682B4
-D8AD E5BFB0
-D8AE E682BD
-D8AF E68386
-D8B0 E682B5
-D8B1 E68398
-D8B2 E6858D
-D8B3 E68495
-D8B4 E68486
-D8B5 E683B6
-D8B6 E683B7
-D8B7 E68480
-D8B8 E683B4
-D8B9 E683BA
-D8BA E68483
-D8BB E684A1
-D8BC E683BB
-D8BD E683B1
-D8BE E6848D
-D8BF E6848E
-D8C0 E68587
-D8C1 E684BE
-D8C2 E684A8
-D8C3 E684A7
-D8C4 E6858A
-D8C5 E684BF
-D8C6 E684BC
-D8C7 E684AC
-D8C8 E684B4
-D8C9 E684BD
-D8CA E68582
-D8CB E68584
-D8CC E685B3
-D8CD E685B7
-D8CE E68598
-D8CF E68599
-D8D0 E6859A
-D8D1 E685AB
-D8D2 E685B4
-D8D3 E685AF
-D8D4 E685A5
-D8D5 E685B1
-D8D6 E6859F
-D8D7 E6859D
-D8D8 E68593
-D8D9 E685B5
-D8DA E68699
-D8DB E68696
-D8DC E68687
-D8DD E686AC
-D8DE E68694
-D8DF E6869A
-D8E0 E6868A
-D8E1 E68691
-D8E2 E686AB
-D8E3 E686AE
-D8E4 E6878C
-D8E5 E6878A
-D8E6 E68789
-D8E7 E687B7
-D8E8 E68788
-D8E9 E68783
-D8EA E68786
-D8EB E686BA
-D8EC E6878B
-D8ED E7BDB9
-D8EE E6878D
-D8EF E687A6
-D8F0 E687A3
-D8F1 E687B6
-D8F2 E687BA
-D8F3 E687B4
-D8F4 E687BF
-D8F5 E687BD
-D8F6 E687BC
-D8F7 E687BE
-D8F8 E68880
-D8F9 E68888
-D8FA E68889
-D8FB E6888D
-D8FC E6888C
-D8FD E68894
-D8FE E6889B
-D9A1 E6889E
-D9A2 E688A1
-D9A3 E688AA
-D9A4 E688AE
-D9A5 E688B0
-D9A6 E688B2
-D9A7 E688B3
-D9A8 E68981
-D9A9 E6898E
-D9AA E6899E
-D9AB E689A3
-D9AC E6899B
-D9AD E689A0
-D9AE E689A8
-D9AF E689BC
-D9B0 E68A82
-D9B1 E68A89
-D9B2 E689BE
-D9B3 E68A92
-D9B4 E68A93
-D9B5 E68A96
-D9B6 E68B94
-D9B7 E68A83
-D9B8 E68A94
-D9B9 E68B97
-D9BA E68B91
-D9BB E68ABB
-D9BC E68B8F
-D9BD E68BBF
-D9BE E68B86
-D9BF E69394
-D9C0 E68B88
-D9C1 E68B9C
-D9C2 E68B8C
-D9C3 E68B8A
-D9C4 E68B82
-D9C5 E68B87
-D9C6 E68A9B
-D9C7 E68B89
-D9C8 E68C8C
-D9C9 E68BAE
-D9CA E68BB1
-D9CB E68CA7
-D9CC E68C82
-D9CD E68C88
-D9CE E68BAF
-D9CF E68BB5
-D9D0 E68D90
-D9D1 E68CBE
-D9D2 E68D8D
-D9D3 E6909C
-D9D4 E68D8F
-D9D5 E68E96
-D9D6 E68E8E
-D9D7 E68E80
-D9D8 E68EAB
-D9D9 E68DB6
-D9DA E68EA3
-D9DB E68E8F
-D9DC E68E89
-D9DD E68E9F
-D9DE E68EB5
-D9DF E68DAB
-D9E0 E68DA9
-D9E1 E68EBE
-D9E2 E68FA9
-D9E3 E68F80
-D9E4 E68F86
-D9E5 E68FA3
-D9E6 E68F89
-D9E7 E68F92
-D9E8 E68FB6
-D9E9 E68F84
-D9EA E69096
-D9EB E690B4
-D9EC E69086
-D9ED E69093
-D9EE E690A6
-D9EF E690B6
-D9F0 E6949D
-D9F1 E69097
-D9F2 E690A8
-D9F3 E6908F
-D9F4 E691A7
-D9F5 E691AF
-D9F6 E691B6
-D9F7 E6918E
-D9F8 E694AA
-D9F9 E69295
-D9FA E69293
-D9FB E692A5
-D9FC E692A9
-D9FD E69288
-D9FE E692BC
-DAA1 E6939A
-DAA2 E69392
-DAA3 E69385
-DAA4 E69387
-DAA5 E692BB
-DAA6 E69398
-DAA7 E69382
-DAA8 E693B1
-DAA9 E693A7
-DAAA E88889
-DAAB E693A0
-DAAC E693A1
-DAAD E68AAC
-DAAE E693A3
-DAAF E693AF
-DAB0 E694AC
-DAB1 E693B6
-DAB2 E693B4
-DAB3 E693B2
-DAB4 E693BA
-DAB5 E69480
-DAB6 E693BD
-DAB7 E69498
-DAB8 E6949C
-DAB9 E69485
-DABA E694A4
-DABB E694A3
-DABC E694AB
-DABD E694B4
-DABE E694B5
-DABF E694B7
-DAC0 E694B6
-DAC1 E694B8
-DAC2 E7958B
-DAC3 E69588
-DAC4 E69596
-DAC5 E69595
-DAC6 E6958D
-DAC7 E69598
-DAC8 E6959E
-DAC9 E6959D
-DACA E695B2
-DACB E695B8
-DACC E69682
-DACD E69683
-DACE E8AE8A
-DACF E6969B
-DAD0 E6969F
-DAD1 E696AB
-DAD2 E696B7
-DAD3 E69783
-DAD4 E69786
-DAD5 E69781
-DAD6 E69784
-DAD7 E6978C
-DAD8 E69792
-DAD9 E6979B
-DADA E69799
-DADB E697A0
-DADC E697A1
-DADD E697B1
-DADE E69DB2
-DADF E6988A
-DAE0 E69883
-DAE1 E697BB
-DAE2 E69DB3
-DAE3 E698B5
-DAE4 E698B6
-DAE5 E698B4
-DAE6 E6989C
-DAE7 E6998F
-DAE8 E69984
-DAE9 E69989
-DAEA E69981
-DAEB E6999E
-DAEC E6999D
-DAED E699A4
-DAEE E699A7
-DAEF E699A8
-DAF0 E6999F
-DAF1 E699A2
-DAF2 E699B0
-DAF3 E69A83
-DAF4 E69A88
-DAF5 E69A8E
-DAF6 E69A89
-DAF7 E69A84
-DAF8 E69A98
-DAF9 E69A9D
-DAFA E69B81
-DAFB E69AB9
-DAFC E69B89
-DAFD E69ABE
-DAFE E69ABC
-DBA1 E69B84
-DBA2 E69AB8
-DBA3 E69B96
-DBA4 E69B9A
-DBA5 E69BA0
-DBA6 E698BF
-DBA7 E69BA6
-DBA8 E69BA9
-DBA9 E69BB0
-DBAA E69BB5
-DBAB E69BB7
-DBAC E69C8F
-DBAD E69C96
-DBAE E69C9E
-DBAF E69CA6
-DBB0 E69CA7
-DBB1 E99CB8
-DBB2 E69CAE
-DBB3 E69CBF
-DBB4 E69CB6
-DBB5 E69D81
-DBB6 E69CB8
-DBB7 E69CB7
-DBB8 E69D86
-DBB9 E69D9E
-DBBA E69DA0
-DBBB E69D99
-DBBC E69DA3
-DBBD E69DA4
-DBBE E69E89
-DBBF E69DB0
-DBC0 E69EA9
-DBC1 E69DBC
-DBC2 E69DAA
-DBC3 E69E8C
-DBC4 E69E8B
-DBC5 E69EA6
-DBC6 E69EA1
-DBC7 E69E85
-DBC8 E69EB7
-DBC9 E69FAF
-DBCA E69EB4
-DBCB E69FAC
-DBCC E69EB3
-DBCD E69FA9
-DBCE E69EB8
-DBCF E69FA4
-DBD0 E69F9E
-DBD1 E69F9D
-DBD2 E69FA2
-DBD3 E69FAE
-DBD4 E69EB9
-DBD5 E69F8E
-DBD6 E69F86
-DBD7 E69FA7
-DBD8 E6AA9C
-DBD9 E6A09E
-DBDA E6A186
-DBDB E6A0A9
-DBDC E6A180
-DBDD E6A18D
-DBDE E6A0B2
-DBDF E6A18E
-DBE0 E6A2B3
-DBE1 E6A0AB
-DBE2 E6A199
-DBE3 E6A1A3
-DBE4 E6A1B7
-DBE5 E6A1BF
-DBE6 E6A29F
-DBE7 E6A28F
-DBE8 E6A2AD
-DBE9 E6A294
-DBEA E6A29D
-DBEB E6A29B
-DBEC E6A283
-DBED E6AAAE
-DBEE E6A2B9
-DBEF E6A1B4
-DBF0 E6A2B5
-DBF1 E6A2A0
-DBF2 E6A2BA
-DBF3 E6A48F
-DBF4 E6A28D
-DBF5 E6A1BE
-DBF6 E6A481
-DBF7 E6A38A
-DBF8 E6A488
-DBF9 E6A398
-DBFA E6A4A2
-DBFB E6A4A6
-DBFC E6A3A1
-DBFD E6A48C
-DBFE E6A38D
-DCA1 E6A394
-DCA2 E6A3A7
-DCA3 E6A395
-DCA4 E6A4B6
-DCA5 E6A492
-DCA6 E6A484
-DCA7 E6A397
-DCA8 E6A3A3
-DCA9 E6A4A5
-DCAA E6A3B9
-DCAB E6A3A0
-DCAC E6A3AF
-DCAD E6A4A8
-DCAE E6A4AA
-DCAF E6A49A
-DCB0 E6A4A3
-DCB1 E6A4A1
-DCB2 E6A386
-DCB3 E6A5B9
-DCB4 E6A5B7
-DCB5 E6A59C
-DCB6 E6A5B8
-DCB7 E6A5AB
-DCB8 E6A594
-DCB9 E6A5BE
-DCBA E6A5AE
-DCBB E6A4B9
-DCBC E6A5B4
-DCBD E6A4BD
-DCBE E6A599
-DCBF E6A4B0
-DCC0 E6A5A1
-DCC1 E6A59E
-DCC2 E6A59D
-DCC3 E6A681
-DCC4 E6A5AA
-DCC5 E6A6B2
-DCC6 E6A6AE
-DCC7 E6A790
-DCC8 E6A6BF
-DCC9 E6A781
-DCCA E6A793
-DCCB E6A6BE
-DCCC E6A78E
-DCCD E5AFA8
-DCCE E6A78A
-DCCF E6A79D
-DCD0 E6A6BB
-DCD1 E6A783
-DCD2 E6A6A7
-DCD3 E6A8AE
-DCD4 E6A691
-DCD5 E6A6A0
-DCD6 E6A69C
-DCD7 E6A695
-DCD8 E6A6B4
-DCD9 E6A79E
-DCDA E6A7A8
-DCDB E6A882
-DCDC E6A89B
-DCDD E6A7BF
-DCDE E6AC8A
-DCDF E6A7B9
-DCE0 E6A7B2
-DCE1 E6A7A7
-DCE2 E6A885
-DCE3 E6A6B1
-DCE4 E6A89E
-DCE5 E6A7AD
-DCE6 E6A894
-DCE7 E6A7AB
-DCE8 E6A88A
-DCE9 E6A892
-DCEA E6AB81
-DCEB E6A8A3
-DCEC E6A893
-DCED E6A984
-DCEE E6A88C
-DCEF E6A9B2
-DCF0 E6A8B6
-DCF1 E6A9B8
-DCF2 E6A987
-DCF3 E6A9A2
-DCF4 E6A999
-DCF5 E6A9A6
-DCF6 E6A988
-DCF7 E6A8B8
-DCF8 E6A8A2
-DCF9 E6AA90
-DCFA E6AA8D
-DCFB E6AAA0
-DCFC E6AA84
-DCFD E6AAA2
-DCFE E6AAA3
-DDA1 E6AA97
-DDA2 E89897
-DDA3 E6AABB
-DDA4 E6AB83
-DDA5 E6AB82
-DDA6 E6AAB8
-DDA7 E6AAB3
-DDA8 E6AAAC
-DDA9 E6AB9E
-DDAA E6AB91
-DDAB E6AB9F
-DDAC E6AAAA
-DDAD E6AB9A
-DDAE E6ABAA
-DDAF E6ABBB
-DDB0 E6AC85
-DDB1 E89896
-DDB2 E6ABBA
-DDB3 E6AC92
-DDB4 E6AC96
-DDB5 E9ACB1
-DDB6 E6AC9F
-DDB7 E6ACB8
-DDB8 E6ACB7
-DDB9 E79B9C
-DDBA E6ACB9
-DDBB E9A3AE
-DDBC E6AD87
-DDBD E6AD83
-DDBE E6AD89
-DDBF E6AD90
-DDC0 E6AD99
-DDC1 E6AD94
-DDC2 E6AD9B
-DDC3 E6AD9F
-DDC4 E6ADA1
-DDC5 E6ADB8
-DDC6 E6ADB9
-DDC7 E6ADBF
-DDC8 E6AE80
-DDC9 E6AE84
-DDCA E6AE83
-DDCB E6AE8D
-DDCC E6AE98
-DDCD E6AE95
-DDCE E6AE9E
-DDCF E6AEA4
-DDD0 E6AEAA
-DDD1 E6AEAB
-DDD2 E6AEAF
-DDD3 E6AEB2
-DDD4 E6AEB1
-DDD5 E6AEB3
-DDD6 E6AEB7
-DDD7 E6AEBC
-DDD8 E6AF86
-DDD9 E6AF8B
-DDDA E6AF93
-DDDB E6AF9F
-DDDC E6AFAC
-DDDD E6AFAB
-DDDE E6AFB3
-DDDF E6AFAF
-DDE0 E9BABE
-DDE1 E6B088
-DDE2 E6B093
-DDE3 E6B094
-DDE4 E6B09B
-DDE5 E6B0A4
-DDE6 E6B0A3
-DDE7 E6B19E
-DDE8 E6B195
-DDE9 E6B1A2
-DDEA E6B1AA
-DDEB E6B282
-DDEC E6B28D
-DDED E6B29A
-DDEE E6B281
-DDEF E6B29B
-DDF0 E6B1BE
-DDF1 E6B1A8
-DDF2 E6B1B3
-DDF3 E6B292
-DDF4 E6B290
-DDF5 E6B384
-DDF6 E6B3B1
-DDF7 E6B393
-DDF8 E6B2BD
-DDF9 E6B397
-DDFA E6B385
-DDFB E6B39D
-DDFC E6B2AE
-DDFD E6B2B1
-DDFE E6B2BE
-DEA1 E6B2BA
-DEA2 E6B39B
-DEA3 E6B3AF
-DEA4 E6B399
-DEA5 E6B3AA
-DEA6 E6B49F
-DEA7 E8A18D
-DEA8 E6B4B6
-DEA9 E6B4AB
-DEAA E6B4BD
-DEAB E6B4B8
-DEAC E6B499
-DEAD E6B4B5
-DEAE E6B4B3
-DEAF E6B492
-DEB0 E6B48C
-DEB1 E6B5A3
-DEB2 E6B693
-DEB3 E6B5A4
-DEB4 E6B59A
-DEB5 E6B5B9
-DEB6 E6B599
-DEB7 E6B68E
-DEB8 E6B695
-DEB9 E6BFA4
-DEBA E6B685
-DEBB E6B7B9
-DEBC E6B895
-DEBD E6B88A
-DEBE E6B6B5
-DEBF E6B787
-DEC0 E6B7A6
-DEC1 E6B6B8
-DEC2 E6B786
-DEC3 E6B7AC
-DEC4 E6B79E
-DEC5 E6B78C
-DEC6 E6B7A8
-DEC7 E6B792
-DEC8 E6B785
-DEC9 E6B7BA
-DECA E6B799
-DECB E6B7A4
-DECC E6B795
-DECD E6B7AA
-DECE E6B7AE
-DECF E6B8AD
-DED0 E6B9AE
-DED1 E6B8AE
-DED2 E6B899
-DED3 E6B9B2
-DED4 E6B99F
-DED5 E6B8BE
-DED6 E6B8A3
-DED7 E6B9AB
-DED8 E6B8AB
-DED9 E6B9B6
-DEDA E6B98D
-DEDB E6B89F
-DEDC E6B983
-DEDD E6B8BA
-DEDE E6B98E
-DEDF E6B8A4
-DEE0 E6BBBF
-DEE1 E6B89D
-DEE2 E6B8B8
-DEE3 E6BA82
-DEE4 E6BAAA
-DEE5 E6BA98
-DEE6 E6BB89
-DEE7 E6BAB7
-DEE8 E6BB93
-DEE9 E6BABD
-DEEA E6BAAF
-DEEB E6BB84
-DEEC E6BAB2
-DEED E6BB94
-DEEE E6BB95
-DEEF E6BA8F
-DEF0 E6BAA5
-DEF1 E6BB82
-DEF2 E6BA9F
-DEF3 E6BD81
-DEF4 E6BC91
-DEF5 E7818C
-DEF6 E6BBAC
-DEF7 E6BBB8
-DEF8 E6BBBE
-DEF9 E6BCBF
-DEFA E6BBB2
-DEFB E6BCB1
-DEFC E6BBAF
-DEFD E6BCB2
-DEFE E6BB8C
-DFA1 E6BCBE
-DFA2 E6BC93
-DFA3 E6BBB7
-DFA4 E6BE86
-DFA5 E6BDBA
-DFA6 E6BDB8
-DFA7 E6BE81
-DFA8 E6BE80
-DFA9 E6BDAF
-DFAA E6BD9B
-DFAB E6BFB3
-DFAC E6BDAD
-DFAD E6BE82
-DFAE E6BDBC
-DFAF E6BD98
-DFB0 E6BE8E
-DFB1 E6BE91
-DFB2 E6BF82
-DFB3 E6BDA6
-DFB4 E6BEB3
-DFB5 E6BEA3
-DFB6 E6BEA1
-DFB7 E6BEA4
-DFB8 E6BEB9
-DFB9 E6BF86
-DFBA E6BEAA
-DFBB E6BF9F
-DFBC E6BF95
-DFBD E6BFAC
-DFBE E6BF94
-DFBF E6BF98
-DFC0 E6BFB1
-DFC1 E6BFAE
-DFC2 E6BF9B
-DFC3 E78089
-DFC4 E7808B
-DFC5 E6BFBA
-DFC6 E78091
-DFC7 E78081
-DFC8 E7808F
-DFC9 E6BFBE
-DFCA E7809B
-DFCB E7809A
-DFCC E6BDB4
-DFCD E7809D
-DFCE E78098
-DFCF E7809F
-DFD0 E780B0
-DFD1 E780BE
-DFD2 E780B2
-DFD3 E78191
-DFD4 E781A3
-DFD5 E78299
-DFD6 E78292
-DFD7 E782AF
-DFD8 E783B1
-DFD9 E782AC
-DFDA E782B8
-DFDB E782B3
-DFDC E782AE
-DFDD E7839F
-DFDE E7838B
-DFDF E7839D
-DFE0 E78399
-DFE1 E78489
-DFE2 E783BD
-DFE3 E7849C
-DFE4 E78499
-DFE5 E785A5
-DFE6 E78595
-DFE7 E78688
-DFE8 E785A6
-DFE9 E785A2
-DFEA E7858C
-DFEB E78596
-DFEC E785AC
-DFED E7868F
-DFEE E787BB
-DFEF E78684
-DFF0 E78695
-DFF1 E786A8
-DFF2 E786AC
-DFF3 E78797
-DFF4 E786B9
-DFF5 E786BE
-DFF6 E78792
-DFF7 E78789
-DFF8 E78794
-DFF9 E7878E
-DFFA E787A0
-DFFB E787AC
-DFFC E787A7
-DFFD E787B5
-DFFE E787BC
-E0A1 E787B9
-E0A2 E787BF
-E0A3 E7888D
-E0A4 E78890
-E0A5 E7889B
-E0A6 E788A8
-E0A7 E788AD
-E0A8 E788AC
-E0A9 E788B0
-E0AA E788B2
-E0AB E788BB
-E0AC E788BC
-E0AD E788BF
-E0AE E78980
-E0AF E78986
-E0B0 E7898B
-E0B1 E78998
-E0B2 E789B4
-E0B3 E789BE
-E0B4 E78A82
-E0B5 E78A81
-E0B6 E78A87
-E0B7 E78A92
-E0B8 E78A96
-E0B9 E78AA2
-E0BA E78AA7
-E0BB E78AB9
-E0BC E78AB2
-E0BD E78B83
-E0BE E78B86
-E0BF E78B84
-E0C0 E78B8E
-E0C1 E78B92
-E0C2 E78BA2
-E0C3 E78BA0
-E0C4 E78BA1
-E0C5 E78BB9
-E0C6 E78BB7
-E0C7 E5808F
-E0C8 E78C97
-E0C9 E78C8A
-E0CA E78C9C
-E0CB E78C96
-E0CC E78C9D
-E0CD E78CB4
-E0CE E78CAF
-E0CF E78CA9
-E0D0 E78CA5
-E0D1 E78CBE
-E0D2 E78D8E
-E0D3 E78D8F
-E0D4 E9BB98
-E0D5 E78D97
-E0D6 E78DAA
-E0D7 E78DA8
-E0D8 E78DB0
-E0D9 E78DB8
-E0DA E78DB5
-E0DB E78DBB
-E0DC E78DBA
-E0DD E78F88
-E0DE E78EB3
-E0DF E78F8E
-E0E0 E78EBB
-E0E1 E78F80
-E0E2 E78FA5
-E0E3 E78FAE
-E0E4 E78F9E
-E0E5 E792A2
-E0E6 E79085
-E0E7 E791AF
-E0E8 E790A5
-E0E9 E78FB8
-E0EA E790B2
-E0EB E790BA
-E0EC E79195
-E0ED E790BF
-E0EE E7919F
-E0EF E79199
-E0F0 E79181
-E0F1 E7919C
-E0F2 E791A9
-E0F3 E791B0
-E0F4 E791A3
-E0F5 E791AA
-E0F6 E791B6
-E0F7 E791BE
-E0F8 E7928B
-E0F9 E7929E
-E0FA E792A7
-E0FB E7938A
-E0FC E7938F
-E0FD E79394
-E0FE E78FB1
-E1A1 E793A0
-E1A2 E793A3
-E1A3 E793A7
-E1A4 E793A9
-E1A5 E793AE
-E1A6 E793B2
-E1A7 E793B0
-E1A8 E793B1
-E1A9 E793B8
-E1AA E793B7
-E1AB E79484
-E1AC E79483
-E1AD E79485
-E1AE E7948C
-E1AF E7948E
-E1B0 E7948D
-E1B1 E79495
-E1B2 E79493
-E1B3 E7949E
-E1B4 E794A6
-E1B5 E794AC
-E1B6 E794BC
-E1B7 E79584
-E1B8 E7958D
-E1B9 E7958A
-E1BA E79589
-E1BB E7959B
-E1BC E79586
-E1BD E7959A
-E1BE E795A9
-E1BF E795A4
-E1C0 E795A7
-E1C1 E795AB
-E1C2 E795AD
-E1C3 E795B8
-E1C4 E795B6
-E1C5 E79686
-E1C6 E79687
-E1C7 E795B4
-E1C8 E7968A
-E1C9 E79689
-E1CA E79682
-E1CB E79694
-E1CC E7969A
-E1CD E7969D
-E1CE E796A5
-E1CF E796A3
-E1D0 E79782
-E1D1 E796B3
-E1D2 E79783
-E1D3 E796B5
-E1D4 E796BD
-E1D5 E796B8
-E1D6 E796BC
-E1D7 E796B1
-E1D8 E7978D
-E1D9 E7978A
-E1DA E79792
-E1DB E79799
-E1DC E797A3
-E1DD E7979E
-E1DE E797BE
-E1DF E797BF
-E1E0 E797BC
-E1E1 E79881
-E1E2 E797B0
-E1E3 E797BA
-E1E4 E797B2
-E1E5 E797B3
-E1E6 E7988B
-E1E7 E7988D
-E1E8 E79889
-E1E9 E7989F
-E1EA E798A7
-E1EB E798A0
-E1EC E798A1
-E1ED E798A2
-E1EE E798A4
-E1EF E798B4
-E1F0 E798B0
-E1F1 E798BB
-E1F2 E79987
-E1F3 E79988
-E1F4 E79986
-E1F5 E7999C
-E1F6 E79998
-E1F7 E799A1
-E1F8 E799A2
-E1F9 E799A8
-E1FA E799A9
-E1FB E799AA
-E1FC E799A7
-E1FD E799AC
-E1FE E799B0
-E2A1 E799B2
-E2A2 E799B6
-E2A3 E799B8
-E2A4 E799BC
-E2A5 E79A80
-E2A6 E79A83
-E2A7 E79A88
-E2A8 E79A8B
-E2A9 E79A8E
-E2AA E79A96
-E2AB E79A93
-E2AC E79A99
-E2AD E79A9A
-E2AE E79AB0
-E2AF E79AB4
-E2B0 E79AB8
-E2B1 E79AB9
-E2B2 E79ABA
-E2B3 E79B82
-E2B4 E79B8D
-E2B5 E79B96
-E2B6 E79B92
-E2B7 E79B9E
-E2B8 E79BA1
-E2B9 E79BA5
-E2BA E79BA7
-E2BB E79BAA
-E2BC E898AF
-E2BD E79BBB
-E2BE E79C88
-E2BF E79C87
-E2C0 E79C84
-E2C1 E79CA9
-E2C2 E79CA4
-E2C3 E79C9E
-E2C4 E79CA5
-E2C5 E79CA6
-E2C6 E79C9B
-E2C7 E79CB7
-E2C8 E79CB8
-E2C9 E79D87
-E2CA E79D9A
-E2CB E79DA8
-E2CC E79DAB
-E2CD E79D9B
-E2CE E79DA5
-E2CF E79DBF
-E2D0 E79DBE
-E2D1 E79DB9
-E2D2 E79E8E
-E2D3 E79E8B
-E2D4 E79E91
-E2D5 E79EA0
-E2D6 E79E9E
-E2D7 E79EB0
-E2D8 E79EB6
-E2D9 E79EB9
-E2DA E79EBF
-E2DB E79EBC
-E2DC E79EBD
-E2DD E79EBB
-E2DE E79F87
-E2DF E79F8D
-E2E0 E79F97
-E2E1 E79F9A
-E2E2 E79F9C
-E2E3 E79FA3
-E2E4 E79FAE
-E2E5 E79FBC
-E2E6 E7A08C
-E2E7 E7A092
-E2E8 E7A4A6
-E2E9 E7A0A0
-E2EA E7A4AA
-E2EB E7A185
-E2EC E7A28E
-E2ED E7A1B4
-E2EE E7A286
-E2EF E7A1BC
-E2F0 E7A29A
-E2F1 E7A28C
-E2F2 E7A2A3
-E2F3 E7A2B5
-E2F4 E7A2AA
-E2F5 E7A2AF
-E2F6 E7A391
-E2F7 E7A386
-E2F8 E7A38B
-E2F9 E7A394
-E2FA E7A2BE
-E2FB E7A2BC
-E2FC E7A385
-E2FD E7A38A
-E2FE E7A3AC
-E3A1 E7A3A7
-E3A2 E7A39A
-E3A3 E7A3BD
-E3A4 E7A3B4
-E3A5 E7A487
-E3A6 E7A492
-E3A7 E7A491
-E3A8 E7A499
-E3A9 E7A4AC
-E3AA E7A4AB
-E3AB E7A580
-E3AC E7A5A0
-E3AD E7A597
-E3AE E7A59F
-E3AF E7A59A
-E3B0 E7A595
-E3B1 E7A593
-E3B2 E7A5BA
-E3B3 E7A5BF
-E3B4 E7A68A
-E3B5 E7A69D
-E3B6 E7A6A7
-E3B7 E9BD8B
-E3B8 E7A6AA
-E3B9 E7A6AE
-E3BA E7A6B3
-E3BB E7A6B9
-E3BC E7A6BA
-E3BD E7A789
-E3BE E7A795
-E3BF E7A7A7
-E3C0 E7A7AC
-E3C1 E7A7A1
-E3C2 E7A7A3
-E3C3 E7A888
-E3C4 E7A88D
-E3C5 E7A898
-E3C6 E7A899
-E3C7 E7A8A0
-E3C8 E7A89F
-E3C9 E7A680
-E3CA E7A8B1
-E3CB E7A8BB
-E3CC E7A8BE
-E3CD E7A8B7
-E3CE E7A983
-E3CF E7A997
-E3D0 E7A989
-E3D1 E7A9A1
-E3D2 E7A9A2
-E3D3 E7A9A9
-E3D4 E9BE9D
-E3D5 E7A9B0
-E3D6 E7A9B9
-E3D7 E7A9BD
-E3D8 E7AA88
-E3D9 E7AA97
-E3DA E7AA95
-E3DB E7AA98
-E3DC E7AA96
-E3DD E7AAA9
-E3DE E7AB88
-E3DF E7AAB0
-E3E0 E7AAB6
-E3E1 E7AB85
-E3E2 E7AB84
-E3E3 E7AABF
-E3E4 E98283
-E3E5 E7AB87
-E3E6 E7AB8A
-E3E7 E7AB8D
-E3E8 E7AB8F
-E3E9 E7AB95
-E3EA E7AB93
-E3EB E7AB99
-E3EC E7AB9A
-E3ED E7AB9D
-E3EE E7ABA1
-E3EF E7ABA2
-E3F0 E7ABA6
-E3F1 E7ABAD
-E3F2 E7ABB0
-E3F3 E7AC82
-E3F4 E7AC8F
-E3F5 E7AC8A
-E3F6 E7AC86
-E3F7 E7ACB3
-E3F8 E7AC98
-E3F9 E7AC99
-E3FA E7AC9E
-E3FB E7ACB5
-E3FC E7ACA8
-E3FD E7ACB6
-E3FE E7AD90
-E4A1 E7ADBA
-E4A2 E7AC84
-E4A3 E7AD8D
-E4A4 E7AC8B
-E4A5 E7AD8C
-E4A6 E7AD85
-E4A7 E7ADB5
-E4A8 E7ADA5
-E4A9 E7ADB4
-E4AA E7ADA7
-E4AB E7ADB0
-E4AC E7ADB1
-E4AD E7ADAC
-E4AE E7ADAE
-E4AF E7AE9D
-E4B0 E7AE98
-E4B1 E7AE9F
-E4B2 E7AE8D
-E4B3 E7AE9C
-E4B4 E7AE9A
-E4B5 E7AE8B
-E4B6 E7AE92
-E4B7 E7AE8F
-E4B8 E7AD9D
-E4B9 E7AE99
-E4BA E7AF8B
-E4BB E7AF81
-E4BC E7AF8C
-E4BD E7AF8F
-E4BE E7AEB4
-E4BF E7AF86
-E4C0 E7AF9D
-E4C1 E7AFA9
-E4C2 E7B091
-E4C3 E7B094
-E4C4 E7AFA6
-E4C5 E7AFA5
-E4C6 E7B1A0
-E4C7 E7B080
-E4C8 E7B087
-E4C9 E7B093
-E4CA E7AFB3
-E4CB E7AFB7
-E4CC E7B097
-E4CD E7B08D
-E4CE E7AFB6
-E4CF E7B0A3
-E4D0 E7B0A7
-E4D1 E7B0AA
-E4D2 E7B09F
-E4D3 E7B0B7
-E4D4 E7B0AB
-E4D5 E7B0BD
-E4D6 E7B18C
-E4D7 E7B183
-E4D8 E7B194
-E4D9 E7B18F
-E4DA E7B180
-E4DB E7B190
-E4DC E7B198
-E4DD E7B19F
-E4DE E7B1A4
-E4DF E7B196
-E4E0 E7B1A5
-E4E1 E7B1AC
-E4E2 E7B1B5
-E4E3 E7B283
-E4E4 E7B290
-E4E5 E7B2A4
-E4E6 E7B2AD
-E4E7 E7B2A2
-E4E8 E7B2AB
-E4E9 E7B2A1
-E4EA E7B2A8
-E4EB E7B2B3
-E4EC E7B2B2
-E4ED E7B2B1
-E4EE E7B2AE
-E4EF E7B2B9
-E4F0 E7B2BD
-E4F1 E7B380
-E4F2 E7B385
-E4F3 E7B382
-E4F4 E7B398
-E4F5 E7B392
-E4F6 E7B39C
-E4F7 E7B3A2
-E4F8 E9ACBB
-E4F9 E7B3AF
-E4FA E7B3B2
-E4FB E7B3B4
-E4FC E7B3B6
-E4FD E7B3BA
-E4FE E7B486
-E5A1 E7B482
-E5A2 E7B49C
-E5A3 E7B495
-E5A4 E7B48A
-E5A5 E7B585
-E5A6 E7B58B
-E5A7 E7B4AE
-E5A8 E7B4B2
-E5A9 E7B4BF
-E5AA E7B4B5
-E5AB E7B586
-E5AC E7B5B3
-E5AD E7B596
-E5AE E7B58E
-E5AF E7B5B2
-E5B0 E7B5A8
-E5B1 E7B5AE
-E5B2 E7B58F
-E5B3 E7B5A3
-E5B4 E7B693
-E5B5 E7B689
-E5B6 E7B59B
-E5B7 E7B68F
-E5B8 E7B5BD
-E5B9 E7B69B
-E5BA E7B6BA
-E5BB E7B6AE
-E5BC E7B6A3
-E5BD E7B6B5
-E5BE E7B787
-E5BF E7B6BD
-E5C0 E7B6AB
-E5C1 E7B8BD
-E5C2 E7B6A2
-E5C3 E7B6AF
-E5C4 E7B79C
-E5C5 E7B6B8
-E5C6 E7B69F
-E5C7 E7B6B0
-E5C8 E7B798
-E5C9 E7B79D
-E5CA E7B7A4
-E5CB E7B79E
-E5CC E7B7BB
-E5CD E7B7B2
-E5CE E7B7A1
-E5CF E7B885
-E5D0 E7B88A
-E5D1 E7B8A3
-E5D2 E7B8A1
-E5D3 E7B892
-E5D4 E7B8B1
-E5D5 E7B89F
-E5D6 E7B889
-E5D7 E7B88B
-E5D8 E7B8A2
-E5D9 E7B986
-E5DA E7B9A6
-E5DB E7B8BB
-E5DC E7B8B5
-E5DD E7B8B9
-E5DE E7B983
-E5DF E7B8B7
-E5E0 E7B8B2
-E5E1 E7B8BA
-E5E2 E7B9A7
-E5E3 E7B99D
-E5E4 E7B996
-E5E5 E7B99E
-E5E6 E7B999
-E5E7 E7B99A
-E5E8 E7B9B9
-E5E9 E7B9AA
-E5EA E7B9A9
-E5EB E7B9BC
-E5EC E7B9BB
-E5ED E7BA83
-E5EE E7B795
-E5EF E7B9BD
-E5F0 E8BEAE
-E5F1 E7B9BF
-E5F2 E7BA88
-E5F3 E7BA89
-E5F4 E7BA8C
-E5F5 E7BA92
-E5F6 E7BA90
-E5F7 E7BA93
-E5F8 E7BA94
-E5F9 E7BA96
-E5FA E7BA8E
-E5FB E7BA9B
-E5FC E7BA9C
-E5FD E7BCB8
-E5FE E7BCBA
-E6A1 E7BD85
-E6A2 E7BD8C
-E6A3 E7BD8D
-E6A4 E7BD8E
-E6A5 E7BD90
-E6A6 E7BD91
-E6A7 E7BD95
-E6A8 E7BD94
-E6A9 E7BD98
-E6AA E7BD9F
-E6AB E7BDA0
-E6AC E7BDA8
-E6AD E7BDA9
-E6AE E7BDA7
-E6AF E7BDB8
-E6B0 E7BE82
-E6B1 E7BE86
-E6B2 E7BE83
-E6B3 E7BE88
-E6B4 E7BE87
-E6B5 E7BE8C
-E6B6 E7BE94
-E6B7 E7BE9E
-E6B8 E7BE9D
-E6B9 E7BE9A
-E6BA E7BEA3
-E6BB E7BEAF
-E6BC E7BEB2
-E6BD E7BEB9
-E6BE E7BEAE
-E6BF E7BEB6
-E6C0 E7BEB8
-E6C1 E8ADB1
-E6C2 E7BF85
-E6C3 E7BF86
-E6C4 E7BF8A
-E6C5 E7BF95
-E6C6 E7BF94
-E6C7 E7BFA1
-E6C8 E7BFA6
-E6C9 E7BFA9
-E6CA E7BFB3
-E6CB E7BFB9
-E6CC E9A39C
-E6CD E88086
-E6CE E88084
-E6CF E8808B
-E6D0 E88092
-E6D1 E88098
-E6D2 E88099
-E6D3 E8809C
-E6D4 E880A1
-E6D5 E880A8
-E6D6 E880BF
-E6D7 E880BB
-E6D8 E8818A
-E6D9 E88186
-E6DA E88192
-E6DB E88198
-E6DC E8819A
-E6DD E8819F
-E6DE E881A2
-E6DF E881A8
-E6E0 E881B3
-E6E1 E881B2
-E6E2 E881B0
-E6E3 E881B6
-E6E4 E881B9
-E6E5 E881BD
-E6E6 E881BF
-E6E7 E88284
-E6E8 E88286
-E6E9 E88285
-E6EA E8829B
-E6EB E88293
-E6EC E8829A
-E6ED E882AD
-E6EE E58690
-E6EF E882AC
-E6F0 E8839B
-E6F1 E883A5
-E6F2 E88399
-E6F3 E8839D
-E6F4 E88384
-E6F5 E8839A
-E6F6 E88396
-E6F7 E88489
-E6F8 E883AF
-E6F9 E883B1
-E6FA E8849B
-E6FB E884A9
-E6FC E884A3
-E6FD E884AF
-E6FE E8858B
-E7A1 E99A8B
-E7A2 E88586
-E7A3 E884BE
-E7A4 E88593
-E7A5 E88591
-E7A6 E883BC
-E7A7 E885B1
-E7A8 E885AE
-E7A9 E885A5
-E7AA E885A6
-E7AB E885B4
-E7AC E88683
-E7AD E88688
-E7AE E8868A
-E7AF E88680
-E7B0 E88682
-E7B1 E886A0
-E7B2 E88695
-E7B3 E886A4
-E7B4 E886A3
-E7B5 E8859F
-E7B6 E88693
-E7B7 E886A9
-E7B8 E886B0
-E7B9 E886B5
-E7BA E886BE
-E7BB E886B8
-E7BC E886BD
-E7BD E88780
-E7BE E88782
-E7BF E886BA
-E7C0 E88789
-E7C1 E8878D
-E7C2 E88791
-E7C3 E88799
-E7C4 E88798
-E7C5 E88788
-E7C6 E8879A
-E7C7 E8879F
-E7C8 E887A0
-E7C9 E887A7
-E7CA E887BA
-E7CB E887BB
-E7CC E887BE
-E7CD E88881
-E7CE E88882
-E7CF E88885
-E7D0 E88887
-E7D1 E8888A
-E7D2 E8888D
-E7D3 E88890
-E7D4 E88896
-E7D5 E888A9
-E7D6 E888AB
-E7D7 E888B8
-E7D8 E888B3
-E7D9 E88980
-E7DA E88999
-E7DB E88998
-E7DC E8899D
-E7DD E8899A
-E7DE E8899F
-E7DF E889A4
-E7E0 E889A2
-E7E1 E889A8
-E7E2 E889AA
-E7E3 E889AB
-E7E4 E888AE
-E7E5 E889B1
-E7E6 E889B7
-E7E7 E889B8
-E7E8 E889BE
-E7E9 E88A8D
-E7EA E88A92
-E7EB E88AAB
-E7EC E88A9F
-E7ED E88ABB
-E7EE E88AAC
-E7EF E88BA1
-E7F0 E88BA3
-E7F1 E88B9F
-E7F2 E88B92
-E7F3 E88BB4
-E7F4 E88BB3
-E7F5 E88BBA
-E7F6 E88E93
-E7F7 E88C83
-E7F8 E88BBB
-E7F9 E88BB9
-E7FA E88B9E
-E7FB E88C86
-E7FC E88B9C
-E7FD E88C89
-E7FE E88B99
-E8A1 E88CB5
-E8A2 E88CB4
-E8A3 E88C96
-E8A4 E88CB2
-E8A5 E88CB1
-E8A6 E88D80
-E8A7 E88CB9
-E8A8 E88D90
-E8A9 E88D85
-E8AA E88CAF
-E8AB E88CAB
-E8AC E88C97
-E8AD E88C98
-E8AE E88E85
-E8AF E88E9A
-E8B0 E88EAA
-E8B1 E88E9F
-E8B2 E88EA2
-E8B3 E88E96
-E8B4 E88CA3
-E8B5 E88E8E
-E8B6 E88E87
-E8B7 E88E8A
-E8B8 E88DBC
-E8B9 E88EB5
-E8BA E88DB3
-E8BB E88DB5
-E8BC E88EA0
-E8BD E88E89
-E8BE E88EA8
-E8BF E88FB4
-E8C0 E89093
-E8C1 E88FAB
-E8C2 E88F8E
-E8C3 E88FBD
-E8C4 E89083
-E8C5 E88F98
-E8C6 E8908B
-E8C7 E88F81
-E8C8 E88FB7
-E8C9 E89087
-E8CA E88FA0
-E8CB E88FB2
-E8CC E8908D
-E8CD E890A2
-E8CE E890A0
-E8CF E88EBD
-E8D0 E890B8
-E8D1 E89486
-E8D2 E88FBB
-E8D3 E891AD
-E8D4 E890AA
-E8D5 E890BC
-E8D6 E8959A
-E8D7 E89284
-E8D8 E891B7
-E8D9 E891AB
-E8DA E892AD
-E8DB E891AE
-E8DC E89282
-E8DD E891A9
-E8DE E89186
-E8DF E890AC
-E8E0 E891AF
-E8E1 E891B9
-E8E2 E890B5
-E8E3 E8938A
-E8E4 E891A2
-E8E5 E892B9
-E8E6 E892BF
-E8E7 E8929F
-E8E8 E89399
-E8E9 E8938D
-E8EA E892BB
-E8EB E8939A
-E8EC E89390
-E8ED E89381
-E8EE E89386
-E8EF E89396
-E8F0 E892A1
-E8F1 E894A1
-E8F2 E893BF
-E8F3 E893B4
-E8F4 E89497
-E8F5 E89498
-E8F6 E894AC
-E8F7 E8949F
-E8F8 E89495
-E8F9 E89494
-E8FA E893BC
-E8FB E89580
-E8FC E895A3
-E8FD E89598
-E8FE E89588
-E9A1 E89581
-E9A2 E89882
-E9A3 E8958B
-E9A4 E89595
-E9A5 E89680
-E9A6 E896A4
-E9A7 E89688
-E9A8 E89691
-E9A9 E8968A
-E9AA E896A8
-E9AB E895AD
-E9AC E89694
-E9AD E8969B
-E9AE E897AA
-E9AF E89687
-E9B0 E8969C
-E9B1 E895B7
-E9B2 E895BE
-E9B3 E89690
-E9B4 E89789
-E9B5 E896BA
-E9B6 E8978F
-E9B7 E896B9
-E9B8 E89790
-E9B9 E89795
-E9BA E8979D
-E9BB E897A5
-E9BC E8979C
-E9BD E897B9
-E9BE E8988A
-E9BF E89893
-E9C0 E8988B
-E9C1 E897BE
-E9C2 E897BA
-E9C3 E89886
-E9C4 E898A2
-E9C5 E8989A
-E9C6 E898B0
-E9C7 E898BF
-E9C8 E8998D
-E9C9 E4B995
-E9CA E89994
-E9CB E8999F
-E9CC E899A7
-E9CD E899B1
-E9CE E89A93
-E9CF E89AA3
-E9D0 E89AA9
-E9D1 E89AAA
-E9D2 E89A8B
-E9D3 E89A8C
-E9D4 E89AB6
-E9D5 E89AAF
-E9D6 E89B84
-E9D7 E89B86
-E9D8 E89AB0
-E9D9 E89B89
-E9DA E8A0A3
-E9DB E89AAB
-E9DC E89B94
-E9DD E89B9E
-E9DE E89BA9
-E9DF E89BAC
-E9E0 E89B9F
-E9E1 E89B9B
-E9E2 E89BAF
-E9E3 E89C92
-E9E4 E89C86
-E9E5 E89C88
-E9E6 E89C80
-E9E7 E89C83
-E9E8 E89BBB
-E9E9 E89C91
-E9EA E89C89
-E9EB E89C8D
-E9EC E89BB9
-E9ED E89C8A
-E9EE E89CB4
-E9EF E89CBF
-E9F0 E89CB7
-E9F1 E89CBB
-E9F2 E89CA5
-E9F3 E89CA9
-E9F4 E89C9A
-E9F5 E89DA0
-E9F6 E89D9F
-E9F7 E89DB8
-E9F8 E89D8C
-E9F9 E89D8E
-E9FA E89DB4
-E9FB E89D97
-E9FC E89DA8
-E9FD E89DAE
-E9FE E89D99
-EAA1 E89D93
-EAA2 E89DA3
-EAA3 E89DAA
-EAA4 E8A085
-EAA5 E89EA2
-EAA6 E89E9F
-EAA7 E89E82
-EAA8 E89EAF
-EAA9 E89F8B
-EAAA E89EBD
-EAAB E89F80
-EAAC E89F90
-EAAD E99B96
-EAAE E89EAB
-EAAF E89F84
-EAB0 E89EB3
-EAB1 E89F87
-EAB2 E89F86
-EAB3 E89EBB
-EAB4 E89FAF
-EAB5 E89FB2
-EAB6 E89FA0
-EAB7 E8A08F
-EAB8 E8A08D
-EAB9 E89FBE
-EABA E89FB6
-EABB E89FB7
-EABC E8A08E
-EABD E89F92
-EABE E8A091
-EABF E8A096
-EAC0 E8A095
-EAC1 E8A0A2
-EAC2 E8A0A1
-EAC3 E8A0B1
-EAC4 E8A0B6
-EAC5 E8A0B9
-EAC6 E8A0A7
-EAC7 E8A0BB
-EAC8 E8A184
-EAC9 E8A182
-EACA E8A192
-EACB E8A199
-EACC E8A19E
-EACD E8A1A2
-EACE E8A1AB
-EACF E8A281
-EAD0 E8A1BE
-EAD1 E8A29E
-EAD2 E8A1B5
-EAD3 E8A1BD
-EAD4 E8A2B5
-EAD5 E8A1B2
-EAD6 E8A282
-EAD7 E8A297
-EAD8 E8A292
-EAD9 E8A2AE
-EADA E8A299
-EADB E8A2A2
-EADC E8A28D
-EADD E8A2A4
-EADE E8A2B0
-EADF E8A2BF
-EAE0 E8A2B1
-EAE1 E8A383
-EAE2 E8A384
-EAE3 E8A394
-EAE4 E8A398
-EAE5 E8A399
-EAE6 E8A39D
-EAE7 E8A3B9
-EAE8 E8A482
-EAE9 E8A3BC
-EAEA E8A3B4
-EAEB E8A3A8
-EAEC E8A3B2
-EAED E8A484
-EAEE E8A48C
-EAEF E8A48A
-EAF0 E8A493
-EAF1 E8A583
-EAF2 E8A49E
-EAF3 E8A4A5
-EAF4 E8A4AA
-EAF5 E8A4AB
-EAF6 E8A581
-EAF7 E8A584
-EAF8 E8A4BB
-EAF9 E8A4B6
-EAFA E8A4B8
-EAFB E8A58C
-EAFC E8A49D
-EAFD E8A5A0
-EAFE E8A59E
-EBA1 E8A5A6
-EBA2 E8A5A4
-EBA3 E8A5AD
-EBA4 E8A5AA
-EBA5 E8A5AF
-EBA6 E8A5B4
-EBA7 E8A5B7
-EBA8 E8A5BE
-EBA9 E8A683
-EBAA E8A688
-EBAB E8A68A
-EBAC E8A693
-EBAD E8A698
-EBAE E8A6A1
-EBAF E8A6A9
-EBB0 E8A6A6
-EBB1 E8A6AC
-EBB2 E8A6AF
-EBB3 E8A6B2
-EBB4 E8A6BA
-EBB5 E8A6BD
-EBB6 E8A6BF
-EBB7 E8A780
-EBB8 E8A79A
-EBB9 E8A79C
-EBBA E8A79D
-EBBB E8A7A7
-EBBC E8A7B4
-EBBD E8A7B8
-EBBE E8A883
-EBBF E8A896
-EBC0 E8A890
-EBC1 E8A88C
-EBC2 E8A89B
-EBC3 E8A89D
-EBC4 E8A8A5
-EBC5 E8A8B6
-EBC6 E8A981
-EBC7 E8A99B
-EBC8 E8A992
-EBC9 E8A986
-EBCA E8A988
-EBCB E8A9BC
-EBCC E8A9AD
-EBCD E8A9AC
-EBCE E8A9A2
-EBCF E8AA85
-EBD0 E8AA82
-EBD1 E8AA84
-EBD2 E8AAA8
-EBD3 E8AAA1
-EBD4 E8AA91
-EBD5 E8AAA5
-EBD6 E8AAA6
-EBD7 E8AA9A
-EBD8 E8AAA3
-EBD9 E8AB84
-EBDA E8AB8D
-EBDB E8AB82
-EBDC E8AB9A
-EBDD E8ABAB
-EBDE E8ABB3
-EBDF E8ABA7
-EBE0 E8ABA4
-EBE1 E8ABB1
-EBE2 E8AC94
-EBE3 E8ABA0
-EBE4 E8ABA2
-EBE5 E8ABB7
-EBE6 E8AB9E
-EBE7 E8AB9B
-EBE8 E8AC8C
-EBE9 E8AC87
-EBEA E8AC9A
-EBEB E8ABA1
-EBEC E8AC96
-EBED E8AC90
-EBEE E8AC97
-EBEF E8ACA0
-EBF0 E8ACB3
-EBF1 E99EAB
-EBF2 E8ACA6
-EBF3 E8ACAB
-EBF4 E8ACBE
-EBF5 E8ACA8
-EBF6 E8AD81
-EBF7 E8AD8C
-EBF8 E8AD8F
-EBF9 E8AD8E
-EBFA E8AD89
-EBFB E8AD96
-EBFC E8AD9B
-EBFD E8AD9A
-EBFE E8ADAB
-ECA1 E8AD9F
-ECA2 E8ADAC
-ECA3 E8ADAF
-ECA4 E8ADB4
-ECA5 E8ADBD
-ECA6 E8AE80
-ECA7 E8AE8C
-ECA8 E8AE8E
-ECA9 E8AE92
-ECAA E8AE93
-ECAB E8AE96
-ECAC E8AE99
-ECAD E8AE9A
-ECAE E8B0BA
-ECAF E8B181
-ECB0 E8B0BF
-ECB1 E8B188
-ECB2 E8B18C
-ECB3 E8B18E
-ECB4 E8B190
-ECB5 E8B195
-ECB6 E8B1A2
-ECB7 E8B1AC
-ECB8 E8B1B8
-ECB9 E8B1BA
-ECBA E8B282
-ECBB E8B289
-ECBC E8B285
-ECBD E8B28A
-ECBE E8B28D
-ECBF E8B28E
-ECC0 E8B294
-ECC1 E8B1BC
-ECC2 E8B298
-ECC3 E6889D
-ECC4 E8B2AD
-ECC5 E8B2AA
-ECC6 E8B2BD
-ECC7 E8B2B2
-ECC8 E8B2B3
-ECC9 E8B2AE
-ECCA E8B2B6
-ECCB E8B388
-ECCC E8B381
-ECCD E8B3A4
-ECCE E8B3A3
-ECCF E8B39A
-ECD0 E8B3BD
-ECD1 E8B3BA
-ECD2 E8B3BB
-ECD3 E8B484
-ECD4 E8B485
-ECD5 E8B48A
-ECD6 E8B487
-ECD7 E8B48F
-ECD8 E8B48D
-ECD9 E8B490
-ECDA E9BD8E
-ECDB E8B493
-ECDC E8B38D
-ECDD E8B494
-ECDE E8B496
-ECDF E8B5A7
-ECE0 E8B5AD
-ECE1 E8B5B1
-ECE2 E8B5B3
-ECE3 E8B681
-ECE4 E8B699
-ECE5 E8B782
-ECE6 E8B6BE
-ECE7 E8B6BA
-ECE8 E8B78F
-ECE9 E8B79A
-ECEA E8B796
-ECEB E8B78C
-ECEC E8B79B
-ECED E8B78B
-ECEE E8B7AA
-ECEF E8B7AB
-ECF0 E8B79F
-ECF1 E8B7A3
-ECF2 E8B7BC
-ECF3 E8B888
-ECF4 E8B889
-ECF5 E8B7BF
-ECF6 E8B89D
-ECF7 E8B89E
-ECF8 E8B890
-ECF9 E8B89F
-ECFA E8B982
-ECFB E8B8B5
-ECFC E8B8B0
-ECFD E8B8B4
-ECFE E8B98A
-EDA1 E8B987
-EDA2 E8B989
-EDA3 E8B98C
-EDA4 E8B990
-EDA5 E8B988
-EDA6 E8B999
-EDA7 E8B9A4
-EDA8 E8B9A0
-EDA9 E8B8AA
-EDAA E8B9A3
-EDAB E8B995
-EDAC E8B9B6
-EDAD E8B9B2
-EDAE E8B9BC
-EDAF E8BA81
-EDB0 E8BA87
-EDB1 E8BA85
-EDB2 E8BA84
-EDB3 E8BA8B
-EDB4 E8BA8A
-EDB5 E8BA93
-EDB6 E8BA91
-EDB7 E8BA94
-EDB8 E8BA99
-EDB9 E8BAAA
-EDBA E8BAA1
-EDBB E8BAAC
-EDBC E8BAB0
-EDBD E8BB86
-EDBE E8BAB1
-EDBF E8BABE
-EDC0 E8BB85
-EDC1 E8BB88
-EDC2 E8BB8B
-EDC3 E8BB9B
-EDC4 E8BBA3
-EDC5 E8BBBC
-EDC6 E8BBBB
-EDC7 E8BBAB
-EDC8 E8BBBE
-EDC9 E8BC8A
-EDCA E8BC85
-EDCB E8BC95
-EDCC E8BC92
-EDCD E8BC99
-EDCE E8BC93
-EDCF E8BC9C
-EDD0 E8BC9F
-EDD1 E8BC9B
-EDD2 E8BC8C
-EDD3 E8BCA6
-EDD4 E8BCB3
-EDD5 E8BCBB
-EDD6 E8BCB9
-EDD7 E8BD85
-EDD8 E8BD82
-EDD9 E8BCBE
-EDDA E8BD8C
-EDDB E8BD89
-EDDC E8BD86
-EDDD E8BD8E
-EDDE E8BD97
-EDDF E8BD9C
-EDE0 E8BDA2
-EDE1 E8BDA3
-EDE2 E8BDA4
-EDE3 E8BE9C
-EDE4 E8BE9F
-EDE5 E8BEA3
-EDE6 E8BEAD
-EDE7 E8BEAF
-EDE8 E8BEB7
-EDE9 E8BF9A
-EDEA E8BFA5
-EDEB E8BFA2
-EDEC E8BFAA
-EDED E8BFAF
-EDEE E98287
-EDEF E8BFB4
-EDF0 E98085
-EDF1 E8BFB9
-EDF2 E8BFBA
-EDF3 E98091
-EDF4 E98095
-EDF5 E980A1
-EDF6 E9808D
-EDF7 E9809E
-EDF8 E98096
-EDF9 E9808B
-EDFA E980A7
-EDFB E980B6
-EDFC E980B5
-EDFD E980B9
-EDFE E8BFB8
-EEA1 E9818F
-EEA2 E98190
-EEA3 E98191
-EEA4 E98192
-EEA5 E9808E
-EEA6 E98189
-EEA7 E980BE
-EEA8 E98196
-EEA9 E98198
-EEAA E9819E
-EEAB E981A8
-EEAC E981AF
-EEAD E981B6
-EEAE E99AA8
-EEAF E981B2
-EEB0 E98282
-EEB1 E981BD
-EEB2 E98281
-EEB3 E98280
-EEB4 E9828A
-EEB5 E98289
-EEB6 E9828F
-EEB7 E982A8
-EEB8 E982AF
-EEB9 E982B1
-EEBA E982B5
-EEBB E983A2
-EEBC E983A4
-EEBD E68988
-EEBE E9839B
-EEBF E98482
-EEC0 E98492
-EEC1 E98499
-EEC2 E984B2
-EEC3 E984B0
-EEC4 E9858A
-EEC5 E98596
-EEC6 E98598
-EEC7 E985A3
-EEC8 E985A5
-EEC9 E985A9
-EECA E985B3
-EECB E985B2
-EECC E9868B
-EECD E98689
-EECE E98682
-EECF E986A2
-EED0 E986AB
-EED1 E986AF
-EED2 E986AA
-EED3 E986B5
-EED4 E986B4
-EED5 E986BA
-EED6 E98780
-EED7 E98781
-EED8 E98789
-EED9 E9878B
-EEDA E98790
-EEDB E98796
-EEDC E9879F
-EEDD E987A1
-EEDE E9879B
-EEDF E987BC
-EEE0 E987B5
-EEE1 E987B6
-EEE2 E9889E
-EEE3 E987BF
-EEE4 E98894
-EEE5 E988AC
-EEE6 E98895
-EEE7 E98891
-EEE8 E9899E
-EEE9 E98997
-EEEA E98985
-EEEB E98989
-EEEC E989A4
-EEED E98988
-EEEE E98A95
-EEEF E988BF
-EEF0 E9898B
-EEF1 E98990
-EEF2 E98A9C
-EEF3 E98A96
-EEF4 E98A93
-EEF5 E98A9B
-EEF6 E9899A
-EEF7 E98B8F
-EEF8 E98AB9
-EEF9 E98AB7
-EEFA E98BA9
-EEFB E98C8F
-EEFC E98BBA
-EEFD E98D84
-EEFE E98CAE
-EFA1 E98C99
-EFA2 E98CA2
-EFA3 E98C9A
-EFA4 E98CA3
-EFA5 E98CBA
-EFA6 E98CB5
-EFA7 E98CBB
-EFA8 E98D9C
-EFA9 E98DA0
-EFAA E98DBC
-EFAB E98DAE
-EFAC E98D96
-EFAD E98EB0
-EFAE E98EAC
-EFAF E98EAD
-EFB0 E98E94
-EFB1 E98EB9
-EFB2 E98F96
-EFB3 E98F97
-EFB4 E98FA8
-EFB5 E98FA5
-EFB6 E98F98
-EFB7 E98F83
-EFB8 E98F9D
-EFB9 E98F90
-EFBA E98F88
-EFBB E98FA4
-EFBC E9909A
-EFBD E99094
-EFBE E99093
-EFBF E99083
-EFC0 E99087
-EFC1 E99090
-EFC2 E990B6
-EFC3 E990AB
-EFC4 E990B5
-EFC5 E990A1
-EFC6 E990BA
-EFC7 E99181
-EFC8 E99192
-EFC9 E99184
-EFCA E9919B
-EFCB E991A0
-EFCC E991A2
-EFCD E9919E
-EFCE E991AA
-EFCF E988A9
-EFD0 E991B0
-EFD1 E991B5
-EFD2 E991B7
-EFD3 E991BD
-EFD4 E9919A
-EFD5 E991BC
-EFD6 E991BE
-EFD7 E99281
-EFD8 E991BF
-EFD9 E99682
-EFDA E99687
-EFDB E9968A
-EFDC E99694
-EFDD E99696
-EFDE E99698
-EFDF E99699
-EFE0 E996A0
-EFE1 E996A8
-EFE2 E996A7
-EFE3 E996AD
-EFE4 E996BC
-EFE5 E996BB
-EFE6 E996B9
-EFE7 E996BE
-EFE8 E9978A
-EFE9 E6BFB6
-EFEA E99783
-EFEB E9978D
-EFEC E9978C
-EFED E99795
-EFEE E99794
-EFEF E99796
-EFF0 E9979C
-EFF1 E997A1
-EFF2 E997A5
-EFF3 E997A2
-EFF4 E998A1
-EFF5 E998A8
-EFF6 E998AE
-EFF7 E998AF
-EFF8 E99982
-EFF9 E9998C
-EFFA E9998F
-EFFB E9998B
-EFFC E999B7
-EFFD E9999C
-EFFE E9999E
-F0A1 E9999D
-F0A2 E9999F
-F0A3 E999A6
-F0A4 E999B2
-F0A5 E999AC
-F0A6 E99A8D
-F0A7 E99A98
-F0A8 E99A95
-F0A9 E99A97
-F0AA E99AAA
-F0AB E99AA7
-F0AC E99AB1
-F0AD E99AB2
-F0AE E99AB0
-F0AF E99AB4
-F0B0 E99AB6
-F0B1 E99AB8
-F0B2 E99AB9
-F0B3 E99B8E
-F0B4 E99B8B
-F0B5 E99B89
-F0B6 E99B8D
-F0B7 E8A58D
-F0B8 E99B9C
-F0B9 E99C8D
-F0BA E99B95
-F0BB E99BB9
-F0BC E99C84
-F0BD E99C86
-F0BE E99C88
-F0BF E99C93
-F0C0 E99C8E
-F0C1 E99C91
-F0C2 E99C8F
-F0C3 E99C96
-F0C4 E99C99
-F0C5 E99CA4
-F0C6 E99CAA
-F0C7 E99CB0
-F0C8 E99CB9
-F0C9 E99CBD
-F0CA E99CBE
-F0CB E99D84
-F0CC E99D86
-F0CD E99D88
-F0CE E99D82
-F0CF E99D89
-F0D0 E99D9C
-F0D1 E99DA0
-F0D2 E99DA4
-F0D3 E99DA6
-F0D4 E99DA8
-F0D5 E58B92
-F0D6 E99DAB
-F0D7 E99DB1
-F0D8 E99DB9
-F0D9 E99E85
-F0DA E99DBC
-F0DB E99E81
-F0DC E99DBA
-F0DD E99E86
-F0DE E99E8B
-F0DF E99E8F
-F0E0 E99E90
-F0E1 E99E9C
-F0E2 E99EA8
-F0E3 E99EA6
-F0E4 E99EA3
-F0E5 E99EB3
-F0E6 E99EB4
-F0E7 E99F83
-F0E8 E99F86
-F0E9 E99F88
-F0EA E99F8B
-F0EB E99F9C
-F0EC E99FAD
-F0ED E9BD8F
-F0EE E99FB2
-F0EF E7AB9F
-F0F0 E99FB6
-F0F1 E99FB5
-F0F2 E9A08F
-F0F3 E9A08C
-F0F4 E9A0B8
-F0F5 E9A0A4
-F0F6 E9A0A1
-F0F7 E9A0B7
-F0F8 E9A0BD
-F0F9 E9A186
-F0FA E9A18F
-F0FB E9A18B
-F0FC E9A1AB
-F0FD E9A1AF
-F0FE E9A1B0
-F1A1 E9A1B1
-F1A2 E9A1B4
-F1A3 E9A1B3
-F1A4 E9A2AA
-F1A5 E9A2AF
-F1A6 E9A2B1
-F1A7 E9A2B6
-F1A8 E9A384
-F1A9 E9A383
-F1AA E9A386
-F1AB E9A3A9
-F1AC E9A3AB
-F1AD E9A483
-F1AE E9A489
-F1AF E9A492
-F1B0 E9A494
-F1B1 E9A498
-F1B2 E9A4A1
-F1B3 E9A49D
-F1B4 E9A49E
-F1B5 E9A4A4
-F1B6 E9A4A0
-F1B7 E9A4AC
-F1B8 E9A4AE
-F1B9 E9A4BD
-F1BA E9A4BE
-F1BB E9A582
-F1BC E9A589
-F1BD E9A585
-F1BE E9A590
-F1BF E9A58B
-F1C0 E9A591
-F1C1 E9A592
-F1C2 E9A58C
-F1C3 E9A595
-F1C4 E9A697
-F1C5 E9A698
-F1C6 E9A6A5
-F1C7 E9A6AD
-F1C8 E9A6AE
-F1C9 E9A6BC
-F1CA E9A79F
-F1CB E9A79B
-F1CC E9A79D
-F1CD E9A798
-F1CE E9A791
-F1CF E9A7AD
-F1D0 E9A7AE
-F1D1 E9A7B1
-F1D2 E9A7B2
-F1D3 E9A7BB
-F1D4 E9A7B8
-F1D5 E9A881
-F1D6 E9A88F
-F1D7 E9A885
-F1D8 E9A7A2
-F1D9 E9A899
-F1DA E9A8AB
-F1DB E9A8B7
-F1DC E9A985
-F1DD E9A982
-F1DE E9A980
-F1DF E9A983
-F1E0 E9A8BE
-F1E1 E9A995
-F1E2 E9A98D
-F1E3 E9A99B
-F1E4 E9A997
-F1E5 E9A99F
-F1E6 E9A9A2
-F1E7 E9A9A5
-F1E8 E9A9A4
-F1E9 E9A9A9
-F1EA E9A9AB
-F1EB E9A9AA
-F1EC E9AAAD
-F1ED E9AAB0
-F1EE E9AABC
-F1EF E9AB80
-F1F0 E9AB8F
-F1F1 E9AB91
-F1F2 E9AB93
-F1F3 E9AB94
-F1F4 E9AB9E
-F1F5 E9AB9F
-F1F6 E9ABA2
-F1F7 E9ABA3
-F1F8 E9ABA6
-F1F9 E9ABAF
-F1FA E9ABAB
-F1FB E9ABAE
-F1FC E9ABB4
-F1FD E9ABB1
-F1FE E9ABB7
-F2A1 E9ABBB
-F2A2 E9AC86
-F2A3 E9AC98
-F2A4 E9AC9A
-F2A5 E9AC9F
-F2A6 E9ACA2
-F2A7 E9ACA3
-F2A8 E9ACA5
-F2A9 E9ACA7
-F2AA E9ACA8
-F2AB E9ACA9
-F2AC E9ACAA
-F2AD E9ACAE
-F2AE E9ACAF
-F2AF E9ACB2
-F2B0 E9AD84
-F2B1 E9AD83
-F2B2 E9AD8F
-F2B3 E9AD8D
-F2B4 E9AD8E
-F2B5 E9AD91
-F2B6 E9AD98
-F2B7 E9ADB4
-F2B8 E9AE93
-F2B9 E9AE83
-F2BA E9AE91
-F2BB E9AE96
-F2BC E9AE97
-F2BD E9AE9F
-F2BE E9AEA0
-F2BF E9AEA8
-F2C0 E9AEB4
-F2C1 E9AF80
-F2C2 E9AF8A
-F2C3 E9AEB9
-F2C4 E9AF86
-F2C5 E9AF8F
-F2C6 E9AF91
-F2C7 E9AF92
-F2C8 E9AFA3
-F2C9 E9AFA2
-F2CA E9AFA4
-F2CB E9AF94
-F2CC E9AFA1
-F2CD E9B0BA
-F2CE E9AFB2
-F2CF E9AFB1
-F2D0 E9AFB0
-F2D1 E9B095
-F2D2 E9B094
-F2D3 E9B089
-F2D4 E9B093
-F2D5 E9B08C
-F2D6 E9B086
-F2D7 E9B088
-F2D8 E9B092
-F2D9 E9B08A
-F2DA E9B084
-F2DB E9B0AE
-F2DC E9B09B
-F2DD E9B0A5
-F2DE E9B0A4
-F2DF E9B0A1
-F2E0 E9B0B0
-F2E1 E9B187
-F2E2 E9B0B2
-F2E3 E9B186
-F2E4 E9B0BE
-F2E5 E9B19A
-F2E6 E9B1A0
-F2E7 E9B1A7
-F2E8 E9B1B6
-F2E9 E9B1B8
-F2EA E9B3A7
-F2EB E9B3AC
-F2EC E9B3B0
-F2ED E9B489
-F2EE E9B488
-F2EF E9B3AB
-F2F0 E9B483
-F2F1 E9B486
-F2F2 E9B4AA
-F2F3 E9B4A6
-F2F4 E9B6AF
-F2F5 E9B4A3
-F2F6 E9B49F
-F2F7 E9B584
-F2F8 E9B495
-F2F9 E9B492
-F2FA E9B581
-F2FB E9B4BF
-F2FC E9B4BE
-F2FD E9B586
-F2FE E9B588
-F3A1 E9B59D
-F3A2 E9B59E
-F3A3 E9B5A4
-F3A4 E9B591
-F3A5 E9B590
-F3A6 E9B599
-F3A7 E9B5B2
-F3A8 E9B689
-F3A9 E9B687
-F3AA E9B6AB
-F3AB E9B5AF
-F3AC E9B5BA
-F3AD E9B69A
-F3AE E9B6A4
-F3AF E9B6A9
-F3B0 E9B6B2
-F3B1 E9B784
-F3B2 E9B781
-F3B3 E9B6BB
-F3B4 E9B6B8
-F3B5 E9B6BA
-F3B6 E9B786
-F3B7 E9B78F
-F3B8 E9B782
-F3B9 E9B799
-F3BA E9B793
-F3BB E9B7B8
-F3BC E9B7A6
-F3BD E9B7AD
-F3BE E9B7AF
-F3BF E9B7BD
-F3C0 E9B89A
-F3C1 E9B89B
-F3C2 E9B89E
-F3C3 E9B9B5
-F3C4 E9B9B9
-F3C5 E9B9BD
-F3C6 E9BA81
-F3C7 E9BA88
-F3C8 E9BA8B
-F3C9 E9BA8C
-F3CA E9BA92
-F3CB E9BA95
-F3CC E9BA91
-F3CD E9BA9D
-F3CE E9BAA5
-F3CF E9BAA9
-F3D0 E9BAB8
-F3D1 E9BAAA
-F3D2 E9BAAD
-F3D3 E99DA1
-F3D4 E9BB8C
-F3D5 E9BB8E
-F3D6 E9BB8F
-F3D7 E9BB90
-F3D8 E9BB94
-F3D9 E9BB9C
-F3DA E9BB9E
-F3DB E9BB9D
-F3DC E9BBA0
-F3DD E9BBA5
-F3DE E9BBA8
-F3DF E9BBAF
-F3E0 E9BBB4
-F3E1 E9BBB6
-F3E2 E9BBB7
-F3E3 E9BBB9
-F3E4 E9BBBB
-F3E5 E9BBBC
-F3E6 E9BBBD
-F3E7 E9BC87
-F3E8 E9BC88
-F3E9 E79AB7
-F3EA E9BC95
-F3EB E9BCA1
-F3EC E9BCAC
-F3ED E9BCBE
-F3EE E9BD8A
-F3EF E9BD92
-F3F0 E9BD94
-F3F1 E9BDA3
-F3F2 E9BD9F
-F3F3 E9BDA0
-F3F4 E9BDA1
-F3F5 E9BDA6
-F3F6 E9BDA7
-F3F7 E9BDAC
-F3F8 E9BDAA
-F3F9 E9BDB7
-F3FA E9BDB2
-F3FB E9BDB6
-F3FC E9BE95
-F3FD E9BE9C
-F3FE E9BEA0
-F4A1 E5A0AF
-F4A2 E6A787
-F4A3 E98199
-F4A4 E791A4
-F4A5 E5879C
-F4A6 E78699
-F5A1 EE8080
-F5A2 EE8081
-F5A3 EE8082
-F5A4 EE8083
-F5A5 EE8084
-F5A6 EE8085
-F5A7 EE8086
-F5A8 EE8087
-F5A9 EE8088
-F5AA EE8089
-F5AB EE808A
-F5AC EE808B
-F5AD EE808C
-F5AE EE808D
-F5AF EE808E
-F5B0 EE808F
-F5B1 EE8090
-F5B2 EE8091
-F5B3 EE8092
-F5B4 EE8093
-F5B5 EE8094
-F5B6 EE8095
-F5B7 EE8096
-F5B8 EE8097
-F5B9 EE8098
-F5BA EE8099
-F5BB EE809A
-F5BC EE809B
-F5BD EE809C
-F5BE EE809D
-F5BF EE809E
-F5C0 EE809F
-F5C1 EE80A0
-F5C2 EE80A1
-F5C3 EE80A2
-F5C4 EE80A3
-F5C5 EE80A4
-F5C6 EE80A5
-F5C7 EE80A6
-F5C8 EE80A7
-F5C9 EE80A8
-F5CA EE80A9
-F5CB EE80AA
-F5CC EE80AB
-F5CD EE80AC
-F5CE EE80AD
-F5CF EE80AE
-F5D0 EE80AF
-F5D1 EE80B0
-F5D2 EE80B1
-F5D3 EE80B2
-F5D4 EE80B3
-F5D5 EE80B4
-F5D6 EE80B5
-F5D7 EE80B6
-F5D8 EE80B7
-F5D9 EE80B8
-F5DA EE80B9
-F5DB EE80BA
-F5DC EE80BB
-F5DD EE80BC
-F5DE EE80BD
-F5DF EE80BE
-F5E0 EE80BF
-F5E1 EE8180
-F5E2 EE8181
-F5E3 EE8182
-F5E4 EE8183
-F5E5 EE8184
-F5E6 EE8185
-F5E7 EE8186
-F5E8 EE8187
-F5E9 EE8188
-F5EA EE8189
-F5EB EE818A
-F5EC EE818B
-F5ED EE818C
-F5EE EE818D
-F5EF EE818E
-F5F0 EE818F
-F5F1 EE8190
-F5F2 EE8191
-F5F3 EE8192
-F5F4 EE8193
-F5F5 EE8194
-F5F6 EE8195
-F5F7 EE8196
-F5F8 EE8197
-F5F9 EE8198
-F5FA EE8199
-F5FB EE819A
-F5FC EE819B
-F5FD EE819C
-F5FE EE819D
-F6A1 EE819E
-F6A2 EE819F
-F6A3 EE81A0
-F6A4 EE81A1
-F6A5 EE81A2
-F6A6 EE81A3
-F6A7 EE81A4
-F6A8 EE81A5
-F6A9 EE81A6
-F6AA EE81A7
-F6AB EE81A8
-F6AC EE81A9
-F6AD EE81AA
-F6AE EE81AB
-F6AF EE81AC
-F6B0 EE81AD
-F6B1 EE81AE
-F6B2 EE81AF
-F6B3 EE81B0
-F6B4 EE81B1
-F6B5 EE81B2
-F6B6 EE81B3
-F6B7 EE81B4
-F6B8 EE81B5
-F6B9 EE81B6
-F6BA EE81B7
-F6BB EE81B8
-F6BC EE81B9
-F6BD EE81BA
-F6BE EE81BB
-F6BF EE81BC
-F6C0 EE81BD
-F6C1 EE81BE
-F6C2 EE81BF
-F6C3 EE8280
-F6C4 EE8281
-F6C5 EE8282
-F6C6 EE8283
-F6C7 EE8284
-F6C8 EE8285
-F6C9 EE8286
-F6CA EE8287
-F6CB EE8288
-F6CC EE8289
-F6CD EE828A
-F6CE EE828B
-F6CF EE828C
-F6D0 EE828D
-F6D1 EE828E
-F6D2 EE828F
-F6D3 EE8290
-F6D4 EE8291
-F6D5 EE8292
-F6D6 EE8293
-F6D7 EE8294
-F6D8 EE8295
-F6D9 EE8296
-F6DA EE8297
-F6DB EE8298
-F6DC EE8299
-F6DD EE829A
-F6DE EE829B
-F6DF EE829C
-F6E0 EE829D
-F6E1 EE829E
-F6E2 EE829F
-F6E3 EE82A0
-F6E4 EE82A1
-F6E5 EE82A2
-F6E6 EE82A3
-F6E7 EE82A4
-F6E8 EE82A5
-F6E9 EE82A6
-F6EA EE82A7
-F6EB EE82A8
-F6EC EE82A9
-F6ED EE82AA
-F6EE EE82AB
-F6EF EE82AC
-F6F0 EE82AD
-F6F1 EE82AE
-F6F2 EE82AF
-F6F3 EE82B0
-F6F4 EE82B1
-F6F5 EE82B2
-F6F6 EE82B3
-F6F7 EE82B4
-F6F8 EE82B5
-F6F9 EE82B6
-F6FA EE82B7
-F6FB EE82B8
-F6FC EE82B9
-F6FD EE82BA
-F6FE EE82BB
-F7A1 EE82BC
-F7A2 EE82BD
-F7A3 EE82BE
-F7A4 EE82BF
-F7A5 EE8380
-F7A6 EE8381
-F7A7 EE8382
-F7A8 EE8383
-F7A9 EE8384
-F7AA EE8385
-F7AB EE8386
-F7AC EE8387
-F7AD EE8388
-F7AE EE8389
-F7AF EE838A
-F7B0 EE838B
-F7B1 EE838C
-F7B2 EE838D
-F7B3 EE838E
-F7B4 EE838F
-F7B5 EE8390
-F7B6 EE8391
-F7B7 EE8392
-F7B8 EE8393
-F7B9 EE8394
-F7BA EE8395
-F7BB EE8396
-F7BC EE8397
-F7BD EE8398
-F7BE EE8399
-F7BF EE839A
-F7C0 EE839B
-F7C1 EE839C
-F7C2 EE839D
-F7C3 EE839E
-F7C4 EE839F
-F7C5 EE83A0
-F7C6 EE83A1
-F7C7 EE83A2
-F7C8 EE83A3
-F7C9 EE83A4
-F7CA EE83A5
-F7CB EE83A6
-F7CC EE83A7
-F7CD EE83A8
-F7CE EE83A9
-F7CF EE83AA
-F7D0 EE83AB
-F7D1 EE83AC
-F7D2 EE83AD
-F7D3 EE83AE
-F7D4 EE83AF
-F7D5 EE83B0
-F7D6 EE83B1
-F7D7 EE83B2
-F7D8 EE83B3
-F7D9 EE83B4
-F7DA EE83B5
-F7DB EE83B6
-F7DC EE83B7
-F7DD EE83B8
-F7DE EE83B9
-F7DF EE83BA
-F7E0 EE83BB
-F7E1 EE83BC
-F7E2 EE83BD
-F7E3 EE83BE
-F7E4 EE83BF
-F7E5 EE8480
-F7E6 EE8481
-F7E7 EE8482
-F7E8 EE8483
-F7E9 EE8484
-F7EA EE8485
-F7EB EE8486
-F7EC EE8487
-F7ED EE8488
-F7EE EE8489
-F7EF EE848A
-F7F0 EE848B
-F7F1 EE848C
-F7F2 EE848D
-F7F3 EE848E
-F7F4 EE848F
-F7F5 EE8490
-F7F6 EE8491
-F7F7 EE8492
-F7F8 EE8493
-F7F9 EE8494
-F7FA EE8495
-F7FB EE8496
-F7FC EE8497
-F7FD EE8498
-F7FE EE8499
-F8A1 EE849A
-F8A2 EE849B
-F8A3 EE849C
-F8A4 EE849D
-F8A5 EE849E
-F8A6 EE849F
-F8A7 EE84A0
-F8A8 EE84A1
-F8A9 EE84A2
-F8AA EE84A3
-F8AB EE84A4
-F8AC EE84A5
-F8AD EE84A6
-F8AE EE84A7
-F8AF EE84A8
-F8B0 EE84A9
-F8B1 EE84AA
-F8B2 EE84AB
-F8B3 EE84AC
-F8B4 EE84AD
-F8B5 EE84AE
-F8B6 EE84AF
-F8B7 EE84B0
-F8B8 EE84B1
-F8B9 EE84B2
-F8BA EE84B3
-F8BB EE84B4
-F8BC EE84B5
-F8BD EE84B6
-F8BE EE84B7
-F8BF EE84B8
-F8C0 EE84B9
-F8C1 EE84BA
-F8C2 EE84BB
-F8C3 EE84BC
-F8C4 EE84BD
-F8C5 EE84BE
-F8C6 EE84BF
-F8C7 EE8580
-F8C8 EE8581
-F8C9 EE8582
-F8CA EE8583
-F8CB EE8584
-F8CC EE8585
-F8CD EE8586
-F8CE EE8587
-F8CF EE8588
-F8D0 EE8589
-F8D1 EE858A
-F8D2 EE858B
-F8D3 EE858C
-F8D4 EE858D
-F8D5 EE858E
-F8D6 EE858F
-F8D7 EE8590
-F8D8 EE8591
-F8D9 EE8592
-F8DA EE8593
-F8DB EE8594
-F8DC EE8595
-F8DD EE8596
-F8DE EE8597
-F8DF EE8598
-F8E0 EE8599
-F8E1 EE859A
-F8E2 EE859B
-F8E3 EE859C
-F8E4 EE859D
-F8E5 EE859E
-F8E6 EE859F
-F8E7 EE85A0
-F8E8 EE85A1
-F8E9 EE85A2
-F8EA EE85A3
-F8EB EE85A4
-F8EC EE85A5
-F8ED EE85A6
-F8EE EE85A7
-F8EF EE85A8
-F8F0 EE85A9
-F8F1 EE85AA
-F8F2 EE85AB
-F8F3 EE85AC
-F8F4 EE85AD
-F8F5 EE85AE
-F8F6 EE85AF
-F8F7 EE85B0
-F8F8 EE85B1
-F8F9 EE85B2
-F8FA EE85B3
-F8FB EE85B4
-F8FC EE85B5
-F8FD EE85B6
-F8FE EE85B7
-F9A1 EE85B8
-F9A2 EE85B9
-F9A3 EE85BA
-F9A4 EE85BB
-F9A5 EE85BC
-F9A6 EE85BD
-F9A7 EE85BE
-F9A8 EE85BF
-F9A9 EE8680
-F9AA EE8681
-F9AB EE8682
-F9AC EE8683
-F9AD EE8684
-F9AE EE8685
-F9AF EE8686
-F9B0 EE8687
-F9B1 EE8688
-F9B2 EE8689
-F9B3 EE868A
-F9B4 EE868B
-F9B5 EE868C
-F9B6 EE868D
-F9B7 EE868E
-F9B8 EE868F
-F9B9 EE8690
-F9BA EE8691
-F9BB EE8692
-F9BC EE8693
-F9BD EE8694
-F9BE EE8695
-F9BF EE8696
-F9C0 EE8697
-F9C1 EE8698
-F9C2 EE8699
-F9C3 EE869A
-F9C4 EE869B
-F9C5 EE869C
-F9C6 EE869D
-F9C7 EE869E
-F9C8 EE869F
-F9C9 EE86A0
-F9CA EE86A1
-F9CB EE86A2
-F9CC EE86A3
-F9CD EE86A4
-F9CE EE86A5
-F9CF EE86A6
-F9D0 EE86A7
-F9D1 EE86A8
-F9D2 EE86A9
-F9D3 EE86AA
-F9D4 EE86AB
-F9D5 EE86AC
-F9D6 EE86AD
-F9D7 EE86AE
-F9D8 EE86AF
-F9D9 EE86B0
-F9DA EE86B1
-F9DB EE86B2
-F9DC EE86B3
-F9DD EE86B4
-F9DE EE86B5
-F9DF EE86B6
-F9E0 EE86B7
-F9E1 EE86B8
-F9E2 EE86B9
-F9E3 EE86BA
-F9E4 EE86BB
-F9E5 EE86BC
-F9E6 EE86BD
-F9E7 EE86BE
-F9E8 EE86BF
-F9E9 EE8780
-F9EA EE8781
-F9EB EE8782
-F9EC EE8783
-F9ED EE8784
-F9EE EE8785
-F9EF EE8786
-F9F0 EE8787
-F9F1 EE8788
-F9F2 EE8789
-F9F3 EE878A
-F9F4 EE878B
-F9F5 EE878C
-F9F6 EE878D
-F9F7 EE878E
-F9F8 EE878F
-F9F9 EE8790
-F9FA EE8791
-F9FB EE8792
-F9FC EE8793
-F9FD EE8794
-F9FE EE8795
-FAA1 EE8796
-FAA2 EE8797
-FAA3 EE8798
-FAA4 EE8799
-FAA5 EE879A
-FAA6 EE879B
-FAA7 EE879C
-FAA8 EE879D
-FAA9 EE879E
-FAAA EE879F
-FAAB EE87A0
-FAAC EE87A1
-FAAD EE87A2
-FAAE EE87A3
-FAAF EE87A4
-FAB0 EE87A5
-FAB1 EE87A6
-FAB2 EE87A7
-FAB3 EE87A8
-FAB4 EE87A9
-FAB5 EE87AA
-FAB6 EE87AB
-FAB7 EE87AC
-FAB8 EE87AD
-FAB9 EE87AE
-FABA EE87AF
-FABB EE87B0
-FABC EE87B1
-FABD EE87B2
-FABE EE87B3
-FABF EE87B4
-FAC0 EE87B5
-FAC1 EE87B6
-FAC2 EE87B7
-FAC3 EE87B8
-FAC4 EE87B9
-FAC5 EE87BA
-FAC6 EE87BB
-FAC7 EE87BC
-FAC8 EE87BD
-FAC9 EE87BE
-FACA EE87BF
-FACB EE8880
-FACC EE8881
-FACD EE8882
-FACE EE8883
-FACF EE8884
-FAD0 EE8885
-FAD1 EE8886
-FAD2 EE8887
-FAD3 EE8888
-FAD4 EE8889
-FAD5 EE888A
-FAD6 EE888B
-FAD7 EE888C
-FAD8 EE888D
-FAD9 EE888E
-FADA EE888F
-FADB EE8890
-FADC EE8891
-FADD EE8892
-FADE EE8893
-FADF EE8894
-FAE0 EE8895
-FAE1 EE8896
-FAE2 EE8897
-FAE3 EE8898
-FAE4 EE8899
-FAE5 EE889A
-FAE6 EE889B
-FAE7 EE889C
-FAE8 EE889D
-FAE9 EE889E
-FAEA EE889F
-FAEB EE88A0
-FAEC EE88A1
-FAED EE88A2
-FAEE EE88A3
-FAEF EE88A4
-FAF0 EE88A5
-FAF1 EE88A6
-FAF2 EE88A7
-FAF3 EE88A8
-FAF4 EE88A9
-FAF5 EE88AA
-FAF6 EE88AB
-FAF7 EE88AC
-FAF8 EE88AD
-FAF9 EE88AE
-FAFA EE88AF
-FAFB EE88B0
-FAFC EE88B1
-FAFD EE88B2
-FAFE EE88B3
-FBA1 EE88B4
-FBA2 EE88B5
-FBA3 EE88B6
-FBA4 EE88B7
-FBA5 EE88B8
-FBA6 EE88B9
-FBA7 EE88BA
-FBA8 EE88BB
-FBA9 EE88BC
-FBAA EE88BD
-FBAB EE88BE
-FBAC EE88BF
-FBAD EE8980
-FBAE EE8981
-FBAF EE8982
-FBB0 EE8983
-FBB1 EE8984
-FBB2 EE8985
-FBB3 EE8986
-FBB4 EE8987
-FBB5 EE8988
-FBB6 EE8989
-FBB7 EE898A
-FBB8 EE898B
-FBB9 EE898C
-FBBA EE898D
-FBBB EE898E
-FBBC EE898F
-FBBD EE8990
-FBBE EE8991
-FBBF EE8992
-FBC0 EE8993
-FBC1 EE8994
-FBC2 EE8995
-FBC3 EE8996
-FBC4 EE8997
-FBC5 EE8998
-FBC6 EE8999
-FBC7 EE899A
-FBC8 EE899B
-FBC9 EE899C
-FBCA EE899D
-FBCB EE899E
-FBCC EE899F
-FBCD EE89A0
-FBCE EE89A1
-FBCF EE89A2
-FBD0 EE89A3
-FBD1 EE89A4
-FBD2 EE89A5
-FBD3 EE89A6
-FBD4 EE89A7
-FBD5 EE89A8
-FBD6 EE89A9
-FBD7 EE89AA
-FBD8 EE89AB
-FBD9 EE89AC
-FBDA EE89AD
-FBDB EE89AE
-FBDC EE89AF
-FBDD EE89B0
-FBDE EE89B1
-FBDF EE89B2
-FBE0 EE89B3
-FBE1 EE89B4
-FBE2 EE89B5
-FBE3 EE89B6
-FBE4 EE89B7
-FBE5 EE89B8
-FBE6 EE89B9
-FBE7 EE89BA
-FBE8 EE89BB
-FBE9 EE89BC
-FBEA EE89BD
-FBEB EE89BE
-FBEC EE89BF
-FBED EE8A80
-FBEE EE8A81
-FBEF EE8A82
-FBF0 EE8A83
-FBF1 EE8A84
-FBF2 EE8A85
-FBF3 EE8A86
-FBF4 EE8A87
-FBF5 EE8A88
-FBF6 EE8A89
-FBF7 EE8A8A
-FBF8 EE8A8B
-FBF9 EE8A8C
-FBFA EE8A8D
-FBFB EE8A8E
-FBFC EE8A8F
-FBFD EE8A90
-FBFE EE8A91
-FCA1 EE8A92
-FCA2 EE8A93
-FCA3 EE8A94
-FCA4 EE8A95
-FCA5 EE8A96
-FCA6 EE8A97
-FCA7 EE8A98
-FCA8 EE8A99
-FCA9 EE8A9A
-FCAA EE8A9B
-FCAB EE8A9C
-FCAC EE8A9D
-FCAD EE8A9E
-FCAE EE8A9F
-FCAF EE8AA0
-FCB0 EE8AA1
-FCB1 EE8AA2
-FCB2 EE8AA3
-FCB3 EE8AA4
-FCB4 EE8AA5
-FCB5 EE8AA6
-FCB6 EE8AA7
-FCB7 EE8AA8
-FCB8 EE8AA9
-FCB9 EE8AAA
-FCBA EE8AAB
-FCBB EE8AAC
-FCBC EE8AAD
-FCBD EE8AAE
-FCBE EE8AAF
-FCBF EE8AB0
-FCC0 EE8AB1
-FCC1 EE8AB2
-FCC2 EE8AB3
-FCC3 EE8AB4
-FCC4 EE8AB5
-FCC5 EE8AB6
-FCC6 EE8AB7
-FCC7 EE8AB8
-FCC8 EE8AB9
-FCC9 EE8ABA
-FCCA EE8ABB
-FCCB EE8ABC
-FCCC EE8ABD
-FCCD EE8ABE
-FCCE EE8ABF
-FCCF EE8B80
-FCD0 EE8B81
-FCD1 EE8B82
-FCD2 EE8B83
-FCD3 EE8B84
-FCD4 EE8B85
-FCD5 EE8B86
-FCD6 EE8B87
-FCD7 EE8B88
-FCD8 EE8B89
-FCD9 EE8B8A
-FCDA EE8B8B
-FCDB EE8B8C
-FCDC EE8B8D
-FCDD EE8B8E
-FCDE EE8B8F
-FCDF EE8B90
-FCE0 EE8B91
-FCE1 EE8B92
-FCE2 EE8B93
-FCE3 EE8B94
-FCE4 EE8B95
-FCE5 EE8B96
-FCE6 EE8B97
-FCE7 EE8B98
-FCE8 EE8B99
-FCE9 EE8B9A
-FCEA EE8B9B
-FCEB EE8B9C
-FCEC EE8B9D
-FCED EE8B9E
-FCEE EE8B9F
-FCEF EE8BA0
-FCF0 EE8BA1
-FCF1 EE8BA2
-FCF2 EE8BA3
-FCF3 EE8BA4
-FCF4 EE8BA5
-FCF5 EE8BA6
-FCF6 EE8BA7
-FCF7 EE8BA8
-FCF8 EE8BA9
-FCF9 EE8BAA
-FCFA EE8BAB
-FCFB EE8BAC
-FCFC EE8BAD
-FCFD EE8BAE
-FCFE EE8BAF
-FDA1 EE8BB0
-FDA2 EE8BB1
-FDA3 EE8BB2
-FDA4 EE8BB3
-FDA5 EE8BB4
-FDA6 EE8BB5
-FDA7 EE8BB6
-FDA8 EE8BB7
-FDA9 EE8BB8
-FDAA EE8BB9
-FDAB EE8BBA
-FDAC EE8BBB
-FDAD EE8BBC
-FDAE EE8BBD
-FDAF EE8BBE
-FDB0 EE8BBF
-FDB1 EE8C80
-FDB2 EE8C81
-FDB3 EE8C82
-FDB4 EE8C83
-FDB5 EE8C84
-FDB6 EE8C85
-FDB7 EE8C86
-FDB8 EE8C87
-FDB9 EE8C88
-FDBA EE8C89
-FDBB EE8C8A
-FDBC EE8C8B
-FDBD EE8C8C
-FDBE EE8C8D
-FDBF EE8C8E
-FDC0 EE8C8F
-FDC1 EE8C90
-FDC2 EE8C91
-FDC3 EE8C92
-FDC4 EE8C93
-FDC5 EE8C94
-FDC6 EE8C95
-FDC7 EE8C96
-FDC8 EE8C97
-FDC9 EE8C98
-FDCA EE8C99
-FDCB EE8C9A
-FDCC EE8C9B
-FDCD EE8C9C
-FDCE EE8C9D
-FDCF EE8C9E
-FDD0 EE8C9F
-FDD1 EE8CA0
-FDD2 EE8CA1
-FDD3 EE8CA2
-FDD4 EE8CA3
-FDD5 EE8CA4
-FDD6 EE8CA5
-FDD7 EE8CA6
-FDD8 EE8CA7
-FDD9 EE8CA8
-FDDA EE8CA9
-FDDB EE8CAA
-FDDC EE8CAB
-FDDD EE8CAC
-FDDE EE8CAD
-FDDF EE8CAE
-FDE0 EE8CAF
-FDE1 EE8CB0
-FDE2 EE8CB1
-FDE3 EE8CB2
-FDE4 EE8CB3
-FDE5 EE8CB4
-FDE6 EE8CB5
-FDE7 EE8CB6
-FDE8 EE8CB7
-FDE9 EE8CB8
-FDEA EE8CB9
-FDEB EE8CBA
-FDEC EE8CBB
-FDED EE8CBC
-FDEE EE8CBD
-FDEF EE8CBE
-FDF0 EE8CBF
-FDF1 EE8D80
-FDF2 EE8D81
-FDF3 EE8D82
-FDF4 EE8D83
-FDF5 EE8D84
-FDF6 EE8D85
-FDF7 EE8D86
-FDF8 EE8D87
-FDF9 EE8D88
-FDFA EE8D89
-FDFB EE8D8A
-FDFC EE8D8B
-FDFD EE8D8C
-FDFE EE8D8D
-FEA1 EE8D8E
-FEA2 EE8D8F
-FEA3 EE8D90
-FEA4 EE8D91
-FEA5 EE8D92
-FEA6 EE8D93
-FEA7 EE8D94
-FEA8 EE8D95
-FEA9 EE8D96
-FEAA EE8D97
-FEAB EE8D98
-FEAC EE8D99
-FEAD EE8D9A
-FEAE EE8D9B
-FEAF EE8D9C
-FEB0 EE8D9D
-FEB1 EE8D9E
-FEB2 EE8D9F
-FEB3 EE8DA0
-FEB4 EE8DA1
-FEB5 EE8DA2
-FEB6 EE8DA3
-FEB7 EE8DA4
-FEB8 EE8DA5
-FEB9 EE8DA6
-FEBA EE8DA7
-FEBB EE8DA8
-FEBC EE8DA9
-FEBD EE8DAA
-FEBE EE8DAB
-FEBF EE8DAC
-FEC0 EE8DAD
-FEC1 EE8DAE
-FEC2 EE8DAF
-FEC3 EE8DB0
-FEC4 EE8DB1
-FEC5 EE8DB2
-FEC6 EE8DB3
-FEC7 EE8DB4
-FEC8 EE8DB5
-FEC9 EE8DB6
-FECA EE8DB7
-FECB EE8DB8
-FECC EE8DB9
-FECD EE8DBA
-FECE EE8DBB
-FECF EE8DBC
-FED0 EE8DBD
-FED1 EE8DBE
-FED2 EE8DBF
-FED3 EE8E80
-FED4 EE8E81
-FED5 EE8E82
-FED6 EE8E83
-FED7 EE8E84
-FED8 EE8E85
-FED9 EE8E86
-FEDA EE8E87
-FEDB EE8E88
-FEDC EE8E89
-FEDD EE8E8A
-FEDE EE8E8B
-FEDF EE8E8C
-FEE0 EE8E8D
-FEE1 EE8E8E
-FEE2 EE8E8F
-FEE3 EE8E90
-FEE4 EE8E91
-FEE5 EE8E92
-FEE6 EE8E93
-FEE7 EE8E94
-FEE8 EE8E95
-FEE9 EE8E96
-FEEA EE8E97
-FEEB EE8E98
-FEEC EE8E99
-FEED EE8E9A
-FEEE EE8E9B
-FEEF EE8E9C
-FEF0 EE8E9D
-FEF1 EE8E9E
-FEF2 EE8E9F
-FEF3 EE8EA0
-FEF4 EE8EA1
-FEF5 EE8EA2
-FEF6 EE8EA3
-FEF7 EE8EA4
-FEF8 EE8EA5
-FEF9 EE8EA6
-FEFA EE8EA7
-FEFB EE8EA8
-FEFC EE8EA9
-FEFD EE8EAA
-FEFE EE8EAB
-Warnings:
-Warning 1977 Cannot convert 'eucjpms' character 0xA2AF to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B0 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B1 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2B9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2C9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D1 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2D9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2DA to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2DB to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2EB to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2EC to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2ED to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2EE to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2EF to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2F0 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2F1 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2FA to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2FB to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2FC to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA2FD to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3A1 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3A2 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3A3 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3A4 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3A5 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3A6 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3A7 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3A8 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3A9 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3AA to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3AB to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3AC to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3AD to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3AE to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3AF to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3BA to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3BB to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3BC to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3BD to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3BE to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3BF to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3C0 to 'utf8'
-Warning 1977 Cannot convert 'eucjpms' character 0xA3DB to 'utf8'
-DROP TABLE t1;
-#
-# WL#3090 Japanese Character Set adjustments
-# Test Unicode->sjis conversion
-#
-CREATE TABLE t1 (a CHAR(1)) CHARACTER SET utf8;
-INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
-INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
-CREATE TEMPORARY TABLE head AS SELECT concat(b1.a, b2.a) AS head FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE tail AS SELECT concat(b1.a, b2.a) AS tail FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE middle AS SELECT concat(b1.a, b2.a) AS middle FROM t1 b1, t1 b2;
-DROP TABLE t1;
-CREATE TABLE t1 (a varchar(1)) CHARACTER SET utf8;
-INSERT INTO t1 SELECT UNHEX(head)
-FROM head WHERE (head BETWEEN '00' AND '7F') ORDER BY head;
-INSERT INTO t1
-SELECT UNHEX(CONCAT(head,tail))
-FROM head, tail
-WHERE (head BETWEEN 'C2' AND 'DF') AND (tail BETWEEN '80' AND 'BF')
-ORDER BY head, tail;
-INSERT INTO t1
-SELECT UNHEX(CONCAT(head, middle, tail))
-FROM head, middle, tail
-WHERE (head BETWEEN 'E0' AND 'EF')
-AND (middle BETWEEN '80' AND 'BF')
-AND (tail BETWEEN '80' AND 'BF')
-AND NOT (head='E0' AND middle BETWEEN '80' AND '9F')
-ORDER BY head, middle, tail;
-SELECT count(*) FROM t1;
-count(*)
-65536
-SELECT HEX(a), HEX(CONVERT(a using sjis)) as b FROM t1 HAVING b<>'3F' ORDER BY BINARY a;
-HEX(a) b
-00 00
-01 01
-02 02
-03 03
-04 04
-05 05
-06 06
-07 07
-08 08
-09 09
-0A 0A
-0B 0B
-0C 0C
-0D 0D
-0E 0E
-0F 0F
-10 10
-11 11
-12 12
-13 13
-14 14
-15 15
-16 16
-17 17
-18 18
-19 19
-1A 1A
-1B 1B
-1C 1C
-1D 1D
-1E 1E
-1F 1F
-20 20
-21 21
-22 22
-23 23
-24 24
-25 25
-26 26
-27 27
-28 28
-29 29
-2A 2A
-2B 2B
-2C 2C
-2D 2D
-2E 2E
-2F 2F
-30 30
-31 31
-32 32
-33 33
-34 34
-35 35
-36 36
-37 37
-38 38
-39 39
-3A 3A
-3B 3B
-3C 3C
-3D 3D
-3E 3E
-40 40
-41 41
-42 42
-43 43
-44 44
-45 45
-46 46
-47 47
-48 48
-49 49
-4A 4A
-4B 4B
-4C 4C
-4D 4D
-4E 4E
-4F 4F
-50 50
-51 51
-52 52
-53 53
-54 54
-55 55
-56 56
-57 57
-58 58
-59 59
-5A 5A
-5B 5B
-5C 815F
-5D 5D
-5E 5E
-5F 5F
-60 60
-61 61
-62 62
-63 63
-64 64
-65 65
-66 66
-67 67
-68 68
-69 69
-6A 6A
-6B 6B
-6C 6C
-6D 6D
-6E 6E
-6F 6F
-70 70
-71 71
-72 72
-73 73
-74 74
-75 75
-76 76
-77 77
-78 78
-79 79
-7A 7A
-7B 7B
-7C 7C
-7D 7D
-7E 7E
-7F 7F
-C2A2 8191
-C2A3 8192
-C2A7 8198
-C2A8 814E
-C2AC 81CA
-C2B0 818B
-C2B1 817D
-C2B4 814C
-C2B6 81F7
-C397 817E
-C3B7 8180
-CE91 839F
-CE92 83A0
-CE93 83A1
-CE94 83A2
-CE95 83A3
-CE96 83A4
-CE97 83A5
-CE98 83A6
-CE99 83A7
-CE9A 83A8
-CE9B 83A9
-CE9C 83AA
-CE9D 83AB
-CE9E 83AC
-CE9F 83AD
-CEA0 83AE
-CEA1 83AF
-CEA3 83B0
-CEA4 83B1
-CEA5 83B2
-CEA6 83B3
-CEA7 83B4
-CEA8 83B5
-CEA9 83B6
-CEB1 83BF
-CEB2 83C0
-CEB3 83C1
-CEB4 83C2
-CEB5 83C3
-CEB6 83C4
-CEB7 83C5
-CEB8 83C6
-CEB9 83C7
-CEBA 83C8
-CEBB 83C9
-CEBC 83CA
-CEBD 83CB
-CEBE 83CC
-CEBF 83CD
-CF80 83CE
-CF81 83CF
-CF83 83D0
-CF84 83D1
-CF85 83D2
-CF86 83D3
-CF87 83D4
-CF88 83D5
-CF89 83D6
-D081 8446
-D090 8440
-D091 8441
-D092 8442
-D093 8443
-D094 8444
-D095 8445
-D096 8447
-D097 8448
-D098 8449
-D099 844A
-D09A 844B
-D09B 844C
-D09C 844D
-D09D 844E
-D09E 844F
-D09F 8450
-D0A0 8451
-D0A1 8452
-D0A2 8453
-D0A3 8454
-D0A4 8455
-D0A5 8456
-D0A6 8457
-D0A7 8458
-D0A8 8459
-D0A9 845A
-D0AA 845B
-D0AB 845C
-D0AC 845D
-D0AD 845E
-D0AE 845F
-D0AF 8460
-D0B0 8470
-D0B1 8471
-D0B2 8472
-D0B3 8473
-D0B4 8474
-D0B5 8475
-D0B6 8477
-D0B7 8478
-D0B8 8479
-D0B9 847A
-D0BA 847B
-D0BB 847C
-D0BC 847D
-D0BD 847E
-D0BE 8480
-D0BF 8481
-D180 8482
-D181 8483
-D182 8484
-D183 8485
-D184 8486
-D185 8487
-D186 8488
-D187 8489
-D188 848A
-D189 848B
-D18A 848C
-D18B 848D
-D18C 848E
-D18D 848F
-D18E 8490
-D18F 8491
-D191 8476
-E28090 815D
-E28095 815C
-E28096 8161
-E28098 8165
-E28099 8166
-E2809C 8167
-E2809D 8168
-E280A0 81F5
-E280A1 81F6
-E280A5 8164
-E280A6 8163
-E280B0 81F1
-E280B2 818C
-E280B3 818D
-E280BB 81A6
-E28483 818E
-E284AB 81F0
-E28690 81A9
-E28691 81AA
-E28692 81A8
-E28693 81AB
-E28792 81CB
-E28794 81CC
-E28880 81CD
-E28882 81DD
-E28883 81CE
-E28887 81DE
-E28888 81B8
-E2888B 81B9
-E28892 817C
-E2889A 81E3
-E2889D 81E5
-E2889E 8187
-E288A0 81DA
-E288A7 81C8
-E288A8 81C9
-E288A9 81BF
-E288AA 81BE
-E288AB 81E7
-E288AC 81E8
-E288B4 8188
-E288B5 81E6
-E288BD 81E4
-E28992 81E0
-E289A0 8182
-E289A1 81DF
-E289A6 8185
-E289A7 8186
-E289AA 81E1
-E289AB 81E2
-E28A82 81BC
-E28A83 81BD
-E28A86 81BA
-E28A87 81BB
-E28AA5 81DB
-E28C92 81DC
-E29480 849F
-E29481 84AA
-E29482 84A0
-E29483 84AB
-E2948C 84A1
-E2948F 84AC
-E29490 84A2
-E29493 84AD
-E29494 84A4
-E29497 84AF
-E29498 84A3
-E2949B 84AE
-E2949C 84A5
-E2949D 84BA
-E294A0 84B5
-E294A3 84B0
-E294A4 84A7
-E294A5 84BC
-E294A8 84B7
-E294AB 84B2
-E294AC 84A6
-E294AF 84B6
-E294B0 84BB
-E294B3 84B1
-E294B4 84A8
-E294B7 84B8
-E294B8 84BD
-E294BB 84B3
-E294BC 84A9
-E294BF 84B9
-E29582 84BE
-E2958B 84B4
-E296A0 81A1
-E296A1 81A0
-E296B2 81A3
-E296B3 81A2
-E296BC 81A5
-E296BD 81A4
-E29786 819F
-E29787 819E
-E2978B 819B
-E2978E 819D
-E2978F 819C
-E297AF 81FC
-E29885 819A
-E29886 8199
-E29980 818A
-E29982 8189
-E299AA 81F4
-E299AD 81F3
-E299AF 81F2
-E38080 8140
-E38081 8141
-E38082 8142
-E38083 8156
-E38085 8158
-E38086 8159
-E38087 815A
-E38088 8171
-E38089 8172
-E3808A 8173
-E3808B 8174
-E3808C 8175
-E3808D 8176
-E3808E 8177
-E3808F 8178
-E38090 8179
-E38091 817A
-E38092 81A7
-E38093 81AC
-E38094 816B
-E38095 816C
-E3809C 8160
-E38181 829F
-E38182 82A0
-E38183 82A1
-E38184 82A2
-E38185 82A3
-E38186 82A4
-E38187 82A5
-E38188 82A6
-E38189 82A7
-E3818A 82A8
-E3818B 82A9
-E3818C 82AA
-E3818D 82AB
-E3818E 82AC
-E3818F 82AD
-E38190 82AE
-E38191 82AF
-E38192 82B0
-E38193 82B1
-E38194 82B2
-E38195 82B3
-E38196 82B4
-E38197 82B5
-E38198 82B6
-E38199 82B7
-E3819A 82B8
-E3819B 82B9
-E3819C 82BA
-E3819D 82BB
-E3819E 82BC
-E3819F 82BD
-E381A0 82BE
-E381A1 82BF
-E381A2 82C0
-E381A3 82C1
-E381A4 82C2
-E381A5 82C3
-E381A6 82C4
-E381A7 82C5
-E381A8 82C6
-E381A9 82C7
-E381AA 82C8
-E381AB 82C9
-E381AC 82CA
-E381AD 82CB
-E381AE 82CC
-E381AF 82CD
-E381B0 82CE
-E381B1 82CF
-E381B2 82D0
-E381B3 82D1
-E381B4 82D2
-E381B5 82D3
-E381B6 82D4
-E381B7 82D5
-E381B8 82D6
-E381B9 82D7
-E381BA 82D8
-E381BB 82D9
-E381BC 82DA
-E381BD 82DB
-E381BE 82DC
-E381BF 82DD
-E38280 82DE
-E38281 82DF
-E38282 82E0
-E38283 82E1
-E38284 82E2
-E38285 82E3
-E38286 82E4
-E38287 82E5
-E38288 82E6
-E38289 82E7
-E3828A 82E8
-E3828B 82E9
-E3828C 82EA
-E3828D 82EB
-E3828E 82EC
-E3828F 82ED
-E38290 82EE
-E38291 82EF
-E38292 82F0
-E38293 82F1
-E3829B 814A
-E3829C 814B
-E3829D 8154
-E3829E 8155
-E382A1 8340
-E382A2 8341
-E382A3 8342
-E382A4 8343
-E382A5 8344
-E382A6 8345
-E382A7 8346
-E382A8 8347
-E382A9 8348
-E382AA 8349
-E382AB 834A
-E382AC 834B
-E382AD 834C
-E382AE 834D
-E382AF 834E
-E382B0 834F
-E382B1 8350
-E382B2 8351
-E382B3 8352
-E382B4 8353
-E382B5 8354
-E382B6 8355
-E382B7 8356
-E382B8 8357
-E382B9 8358
-E382BA 8359
-E382BB 835A
-E382BC 835B
-E382BD 835C
-E382BE 835D
-E382BF 835E
-E38380 835F
-E38381 8360
-E38382 8361
-E38383 8362
-E38384 8363
-E38385 8364
-E38386 8365
-E38387 8366
-E38388 8367
-E38389 8368
-E3838A 8369
-E3838B 836A
-E3838C 836B
-E3838D 836C
-E3838E 836D
-E3838F 836E
-E38390 836F
-E38391 8370
-E38392 8371
-E38393 8372
-E38394 8373
-E38395 8374
-E38396 8375
-E38397 8376
-E38398 8377
-E38399 8378
-E3839A 8379
-E3839B 837A
-E3839C 837B
-E3839D 837C
-E3839E 837D
-E3839F 837E
-E383A0 8380
-E383A1 8381
-E383A2 8382
-E383A3 8383
-E383A4 8384
-E383A5 8385
-E383A6 8386
-E383A7 8387
-E383A8 8388
-E383A9 8389
-E383AA 838A
-E383AB 838B
-E383AC 838C
-E383AD 838D
-E383AE 838E
-E383AF 838F
-E383B0 8390
-E383B1 8391
-E383B2 8392
-E383B3 8393
-E383B4 8394
-E383B5 8395
-E383B6 8396
-E383BB 8145
-E383BC 815B
-E383BD 8152
-E383BE 8153
-E4B880 88EA
-E4B881 929A
-E4B883 8EB5
-E4B887 969C
-E4B888 8FE4
-E4B889 8E4F
-E4B88A 8FE3
-E4B88B 89BA
-E4B88D 9573
-E4B88E 975E
-E4B890 98A0
-E4B891 894E
-E4B894 8A8E
-E4B895 98A1
-E4B896 90A2
-E4B897 99C0
-E4B898 8B75
-E4B899 95B8
-E4B89E 8FE5
-E4B8A1 97BC
-E4B8A6 95C0
-E4B8AA 98A2
-E4B8AD 9286
-E4B8B1 98A3
-E4B8B2 8BF8
-E4B8B6 98A4
-E4B8B8 8ADB
-E4B8B9 924F
-E4B8BB 8EE5
-E4B8BC 98A5
-E4B8BF 98A6
-E4B982 98A7
-E4B983 9454
-E4B985 8B76
-E4B98B 9456
-E4B98D 93E1
-E4B98E 8CC1
-E4B98F 9652
-E4B995 E568
-E4B996 98A8
-E4B997 8FE6
-E4B998 98A9
-E4B999 89B3
-E4B99D 8BE3
-E4B99E 8CEE
-E4B99F 96E7
-E4B9A2 9BA4
-E4B9B1 9790
-E4B9B3 93FB
-E4B9BE 8AA3
-E4BA80 8B54
-E4BA82 98AA
-E4BA85 98AB
-E4BA86 97B9
-E4BA88 975C
-E4BA89 9188
-E4BA8A 98AD
-E4BA8B 8E96
-E4BA8C 93F1
-E4BA8E 98B0
-E4BA91 895D
-E4BA92 8CDD
-E4BA94 8CDC
-E4BA95 88E4
-E4BA98 986A
-E4BA99 9869
-E4BA9B 8DB1
-E4BA9C 889F
-E4BA9E 98B1
-E4BA9F 98B2
-E4BAA0 98B3
-E4BAA1 9653
-E4BAA2 98B4
-E4BAA4 8CF0
-E4BAA5 88E5
-E4BAA6 9692
-E4BAA8 8B9C
-E4BAAB 8B9D
-E4BAAC 8B9E
-E4BAAD 92E0
-E4BAAE 97BA
-E4BAB0 98B5
-E4BAB3 98B6
-E4BAB6 98B7
-E4BABA 906C
-E4BB80 8F59
-E4BB81 906D
-E4BB82 98BC
-E4BB84 98BA
-E4BB86 98BB
-E4BB87 8B77
-E4BB8A 8DA1
-E4BB8B 89EE
-E4BB8D 98B9
-E4BB8E 98B8
-E4BB8F 95A7
-E4BB94 8E65
-E4BB95 8E64
-E4BB96 91BC
-E4BB97 98BD
-E4BB98 9574
-E4BB99 90E5
-E4BB9D 8157
-E4BB9E 98BE
-E4BB9F 98C0
-E4BBA3 91E3
-E4BBA4 97DF
-E4BBA5 88C8
-E4BBAD 98BF
-E4BBAE 89BC
-E4BBB0 8BC2
-E4BBB2 9287
-E4BBB6 8C8F
-E4BBB7 98C1
-E4BBBB 9443
-E4BC81 8AE9
-E4BC89 98C2
-E4BC8A 88C9
-E4BC8D 8CDE
-E4BC8E 8AEA
-E4BC8F 959A
-E4BC90 94B0
-E4BC91 8B78
-E4BC9A 89EF
-E4BC9C 98E5
-E4BC9D 9360
-E4BCAF 948C
-E4BCB0 98C4
-E4BCB4 94BA
-E4BCB6 97E0
-E4BCB8 904C
-E4BCBA 8E66
-E4BCBC 8E97
-E4BCBD 89BE
-E4BD83 92CF
-E4BD86 9241
-E4BD87 98C8
-E4BD8D 88CA
-E4BD8E 92E1
-E4BD8F 8F5A
-E4BD90 8DB2
-E4BD91 9743
-E4BD93 91CC
-E4BD95 89BD
-E4BD97 98C7
-E4BD99 975D
-E4BD9A 98C3
-E4BD9B 98C5
-E4BD9C 8DEC
-E4BD9D 98C6
-E4BD9E 9B43
-E4BDA9 98CE
-E4BDAF 98D1
-E4BDB0 98CF
-E4BDB3 89C0
-E4BDB5 95B9
-E4BDB6 98C9
-E4BDBB 98CD
-E4BDBC 8CF1
-E4BDBF 8E67
-E4BE83 8AA4
-E4BE86 98D2
-E4BE88 98CA
-E4BE8B 97E1
-E4BE8D 8E98
-E4BE8F 98CB
-E4BE91 98D0
-E4BE96 98D3
-E4BE98 98CC
-E4BE9B 8B9F
-E4BE9D 88CB
-E4BEA0 8BA0
-E4BEA1 89BF
-E4BEAB 9B44
-E4BEAD 9699
-E4BEAE 958E
-E4BEAF 8CF2
-E4BEB5 904E
-E4BEB6 97B5
-E4BEBF 95D6
-E4BF82 8C57
-E4BF83 91A3
-E4BF84 89E2
-E4BF8A 8F72
-E4BF8E 98D7
-E4BF90 98DC
-E4BF91 98DA
-E4BF94 98D5
-E4BF97 91AD
-E4BF98 98D8
-E4BF9A 98DB
-E4BF9B 98D9
-E4BF9D 95DB
-E4BF9F 98D6
-E4BFA1 904D
-E4BFA3 9693
-E4BFA4 98DD
-E4BFA5 98DE
-E4BFAE 8F43
-E4BFAF 98EB
-E4BFB3 946F
-E4BFB5 9555
-E4BFB6 98E6
-E4BFB8 95EE
-E4BFBA 89B4
-E4BFBE 98EA
-E58085 98E4
-E58086 98ED
-E58089 9171
-E5808B 8CC2
-E5808D 947B
-E5808F E0C5
-E58091 98EC
-E58092 937C
-E58094 98E1
-E58096 8CF4
-E58099 8CF3
-E5809A 98DF
-E5809F 8ED8
-E580A1 98E7
-E580A3 95ED
-E580A4 926C
-E580A5 98E3
-E580A6 8C91
-E580A8 98E0
-E580A9 98E8
-E580AA 98E2
-E580AB 97CF
-E580AC 98E9
-E580AD 9860
-E580B6 8BE4
-E580B9 8C90
-E58183 98EE
-E58187 98EF
-E58188 98F3
-E58189 88CC
-E5818F 95CE
-E58190 98F2
-E58195 98F1
-E58196 98F5
-E5819A 98F4
-E5819C 92E2
-E581A5 8C92
-E581AC 98F6
-E581B2 8EC3
-E581B4 91A4
-E581B5 92E3
-E581B6 8BF4
-E581B8 98F7
-E581BD 8B55
-E58280 98F8
-E58285 98FA
-E5828D 9654
-E58291 8C86
-E58298 8E50
-E58299 94F5
-E5829A 98F9
-E582AC 8DC3
-E582AD 9762
-E582B2 98FC
-E582B3 9942
-E582B4 98FB
-E582B5 8DC2
-E582B7 8F9D
-E582BE 8C58
-E58382 9943
-E58385 8BCD
-E58389 9940
-E5838A 9941
-E5838D 93AD
-E5838F 919C
-E58391 8BA1
-E58395 966C
-E58396 9944
-E5839A 97BB
-E5839E 9945
-E583A3 9948
-E583A5 9946
-E583A7 916D
-E583AD 9947
-E583AE 9949
-E583B5 994B
-E583B9 994A
-E583BB 95C6
-E58480 8B56
-E58481 994D
-E58482 994E
-E58484 89AD
-E58489 994C
-E58492 8EF2
-E58494 9951
-E58495 9950
-E58496 994F
-E58498 98D4
-E5849A 9952
-E5849F 8F9E
-E584A1 9953
-E584AA 9744
-E584B2 96D7
-E584B7 9955
-E584BA 9954
-E584BB 9957
-E584BC 9956
-E584BF 9958
-E58580 9959
-E58581 88F2
-E58583 8CB3
-E58584 8C5A
-E58585 8F5B
-E58586 929B
-E58587 8BA2
-E58588 90E6
-E58589 8CF5
-E5858B 8D8E
-E5858C 995B
-E5858D 96C6
-E5858E 9365
-E58590 8E99
-E58592 995A
-E58594 995C
-E5859A 937D
-E5859C 8A95
-E585A2 995D
-E585A5 93FC
-E585A8 9153
-E585A9 995F
-E585AA 9960
-E585AB 94AA
-E585AC 8CF6
-E585AD 985A
-E585AE 9961
-E585B1 8BA4
-E585B5 95BA
-E585B6 91B4
-E585B7 8BEF
-E585B8 9354
-E585BC 8C93
-E58680 9962
-E58682 9963
-E58685 93E0
-E58686 897E
-E58689 9966
-E5868A 8DFB
-E5868C 9965
-E5868D 8DC4
-E5868F 9967
-E58690 E3EC
-E58691 9968
-E58692 9660
-E58693 9969
-E58695 996A
-E58696 996B
-E58697 8FE7
-E58699 8ECA
-E586A0 8AA5
-E586A2 996E
-E586A4 996C
-E586A5 96BB
-E586A6 996D
-E586A8 9579
-E586A9 996F
-E586AA 9970
-E586AB 9971
-E586AC 937E
-E586B0 9975
-E586B1 9973
-E586B2 9974
-E586B3 9972
-E586B4 8DE1
-E586B5 9976
-E586B6 96E8
-E586B7 97E2
-E586BD 9977
-E58784 90A6
-E58785 9978
-E58786 8F79
-E58789 9979
-E5878B 929C
-E5878C 97BD
-E5878D 9380
-E58796 99C3
-E5879B 997A
-E5879C EAA3
-E5879D 8BC3
-E587A0 997B
-E587A1 967D
-E587A6 8F88
-E587A7 91FA
-E587A9 997D
-E587AA 93E2
-E587AD 997E
-E587B0 9980
-E587B1 8A4D
-E587B5 9981
-E587B6 8BA5
-E587B8 93CA
-E587B9 899A
-E587BA 8F6F
-E587BD 949F
-E587BE 9982
-E58880 9381
-E58883 906E
-E58884 9983
-E58886 95AA
-E58887 90D8
-E58888 8AA0
-E5888A 8AA7
-E5888B 9984
-E5888E 9986
-E58891 8C59
-E58894 9985
-E58897 97F1
-E5889D 8F89
-E588A4 94BB
-E588A5 95CA
-E588A7 9987
-E588A9 9798
-E588AA 9988
-E588AE 9989
-E588B0 939E
-E588B3 998A
-E588B6 90A7
-E588B7 8DFC
-E588B8 8C94
-E588B9 998B
-E588BA 8E68
-E588BB 8D8F
-E58983 92E4
-E58984 998D
-E58987 91A5
-E5898A 8DED
-E5898B 998E
-E5898C 998F
-E5898D 914F
-E5898F 998C
-E58994 9991
-E58996 9655
-E5899B 8D84
-E5899E 9990
-E589A3 8C95
-E589A4 8DDC
-E589A5 948D
-E589A9 9994
-E589AA 9992
-E589AF 959B
-E589B0 8FE8
-E589B1 999B
-E589B2 8A84
-E589B3 9995
-E589B4 9993
-E589B5 916E
-E589BD 9997
-E589BF 9996
-E58A83 8A63
-E58A87 8C80
-E58A88 999C
-E58A89 97AB
-E58A8D 9998
-E58A91 999D
-E58A92 999A
-E58A94 9999
-E58A9B 97CD
-E58A9F 8CF7
-E58AA0 89C1
-E58AA3 97F2
-E58AA9 8F95
-E58AAA 9377
-E58AAB 8D85
-E58AAC 99A0
-E58AAD 99A1
-E58AB1 97E3
-E58AB4 984A
-E58AB5 99A3
-E58AB9 8CF8
-E58ABC 99A2
-E58ABE 8A4E
-E58B81 99A4
-E58B83 9675
-E58B85 92BA
-E58B87 9745
-E58B89 95D7
-E58B8D 99A5
-E58B92 E8D3
-E58B95 93AE
-E58B97 99A6
-E58B98 8AA8
-E58B99 96B1
-E58B9D 8F9F
-E58B9E 99A7
-E58B9F 95E5
-E58BA0 99AB
-E58BA2 90A8
-E58BA3 99A8
-E58BA4 8BCE
-E58BA6 99A9
-E58BA7 8AA9
-E58BB2 8C4D
-E58BB3 99AC
-E58BB5 99AD
-E58BB8 99AE
-E58BB9 99AF
-E58BBA 8ED9
-E58BBE 8CF9
-E58BBF 96DC
-E58C81 96E6
-E58C82 93F5
-E58C85 95EF
-E58C86 99B0
-E58C88 99B1
-E58C8D 99B3
-E58C8F 99B5
-E58C90 99B4
-E58C95 99B6
-E58C96 89BB
-E58C97 966B
-E58C99 8DFA
-E58C9A 99B7
-E58C9D 9178
-E58CA0 8FA0
-E58CA1 8BA7
-E58CA3 99B8
-E58CAA 94D9
-E58CAF 99B9
-E58CB1 99BA
-E58CB3 99BB
-E58CB8 99BC
-E58CB9 9543
-E58CBA 8BE6
-E58CBB 88E3
-E58CBF 93BD
-E58D80 99BD
-E58D81 8F5C
-E58D83 90E7
-E58D85 99BF
-E58D86 99BE
-E58D87 8FA1
-E58D88 8CDF
-E58D89 99C1
-E58D8A 94BC
-E58D8D 99C2
-E58D91 94DA
-E58D92 91B2
-E58D93 91EC
-E58D94 8BA6
-E58D97 93EC
-E58D98 9250
-E58D9A 948E
-E58D9C 966D
-E58D9E 99C4
-E58DA0 90E8
-E58DA6 8C54
-E58DA9 99C5
-E58DAE 99C6
-E58DAF 894B
-E58DB0 88F3
-E58DB1 8AEB
-E58DB3 91A6
-E58DB4 8B70
-E58DB5 9791
-E58DB7 99C9
-E58DB8 89B5
-E58DBB 99C8
-E58DBF 8BA8
-E58E82 99CA
-E58E84 96EF
-E58E96 99CB
-E58E98 97D0
-E58E9A 8CFA
-E58E9F 8CB4
-E58EA0 99CC
-E58EA5 99CE
-E58EA6 99CD
-E58EA8 907E
-E58EA9 8958
-E58EAD 897D
-E58EAE 99CF
-E58EB0 99D0
-E58EB3 8CB5
-E58EB6 99D1
-E58EBB 8B8E
-E58F82 8E51
-E58F83 99D2
-E58F88 9694
-E58F89 8DB3
-E58F8A 8B79
-E58F8B 9746
-E58F8C 916F
-E58F8D 94BD
-E58F8E 8EFB
-E58F94 8F66
-E58F96 8EE6
-E58F97 8EF3
-E58F99 8F96
-E58F9B 94BE
-E58F9F 99D5
-E58FA1 8962
-E58FA2 9170
-E58FA3 8CFB
-E58FA4 8CC3
-E58FA5 8BE5
-E58FA8 99D9
-E58FA9 9240
-E58FAA 91FC
-E58FAB 8BA9
-E58FAC 8FA2
-E58FAD 99DA
-E58FAE 99D8
-E58FAF 89C2
-E58FB0 91E4
-E58FB1 8EB6
-E58FB2 8E6A
-E58FB3 8945
-E58FB6 8A90
-E58FB7 8D86
-E58FB8 8E69
-E58FBA 99DB
-E59081 99DC
-E59083 8B68
-E59084 8A65
-E59088 8D87
-E59089 8B67
-E5908A 92DD
-E5908B 8944
-E5908C 93AF
-E5908D 96BC
-E5908E 8D40
-E5908F 9799
-E59090 9366
-E59091 8CFC
-E5909B 8C4E
-E5909D 99E5
-E5909F 8BE1
-E590A0 9669
-E590A6 94DB
-E590A9 99E4
-E590AB 8ADC
-E590AC 99DF
-E590AD 99E0
-E590AE 99E2
-E590B6 99E3
-E590B8 8B7A
-E590B9 9081
-E590BB 95AB
-E590BC 99E1
-E590BD 99DD
-E590BE 8CE1
-E59180 99DE
-E59182 9843
-E59186 95F0
-E59188 92E6
-E59189 8CE0
-E5918A 8D90
-E5918E 99E6
-E59191 93DB
-E5919F 99EA
-E591A8 8EFC
-E591AA 8EF4
-E591B0 99ED
-E591B1 99EB
-E591B3 96A1
-E591B5 99E8
-E591B6 99F1
-E591B7 99EC
-E591BB 99EF
-E591BC 8CC4
-E591BD 96BD
-E59280 99F0
-E59284 99F2
-E59286 99F4
-E5928B 8DEE
-E5928C 9861
-E5928E 99E9
-E5928F 99E7
-E59290 99F3
-E59292 99EE
-E592A2 99F6
-E592A4 9A42
-E592A5 99F8
-E592A8 99FC
-E592AB 9A40
-E592AC 99F9
-E592AF 9A5D
-E592B2 8DE7
-E592B3 8A50
-E592B8 99F7
-E592BC 9A44
-E592BD 88F4
-E592BE 9A43
-E59380 88A3
-E59381 9569
-E59382 9A41
-E59384 99FA
-E59387 99F5
-E59388 99FB
-E59389 8DC6
-E59398 9A45
-E593A1 88F5
-E593A2 9A4E
-E593A5 9A46
-E593A6 9A47
-E593A8 8FA3
-E593A9 9689
-E593AD 9A4C
-E593AE 9A4B
-E593B2 934E
-E593BA 9A4D
-E593BD 9A4A
-E59484 8953
-E59486 8DB4
-E59487 904F
-E5948F 9A48
-E59490 9382
-E59494 9A49
-E59496 88A0
-E594AE 9A53
-E594AF 9742
-E594B1 8FA5
-E594B3 9A59
-E594B8 9A58
-E594B9 9A4F
-E594BE 91C1
-E59580 9A50
-E59584 91ED
-E59585 9A55
-E59586 8FA4
-E5958C 9A52
-E5958F 96E2
-E59593 8C5B
-E59596 9A56
-E59597 9A57
-E5959C 9A54
-E5959D 9A5A
-E595A3 9A51
-E595BB 9A60
-E595BC 9A65
-E595BE 9A61
-E59680 9A5C
-E59683 9A66
-E59684 9150
-E59687 9A68
-E59689 8D41
-E5968A 9A5E
-E5968B 929D
-E59698 9A62
-E59699 9A5B
-E5969A 8AAB
-E5969C 8AEC
-E5969D 8A85
-E5969E 9A63
-E5969F 9A5F
-E596A7 8C96
-E596A8 9A69
-E596A9 9A67
-E596AA 9172
-E596AB 8B69
-E596AC 8BAA
-E596AE 9A64
-E596B0 8BF2
-E596B6 8963
-E59784 9A6D
-E59785 9A6B
-E59787 9AA5
-E59794 9A70
-E5979A 9A6A
-E5979C 9A6E
-E5979F 9A6C
-E597A3 8E6B
-E597A4 9A6F
-E597B7 9A72
-E597B9 9A77
-E597BD 9A75
-E597BE 9A74
-E59886 9251
-E59889 89C3
-E59894 9A71
-E59896 9A73
-E59897 8FA6
-E59898 8952
-E5989B 9A76
-E598A9 89DC
-E598AF 9A82
-E598B1 8FFA
-E598B2 9A7D
-E598B4 9A7B
-E598B6 9A7C
-E598B8 9A7E
-E59982 895C
-E5998C 9158
-E5998E 9A78
-E59990 9A79
-E5999B 8A9A
-E599A4 9A81
-E599A8 8AED
-E599AA 9A84
-E599AB 9A80
-E599AC 9A83
-E599B4 95AC
-E599B8 93D3
-E599BA 94B6
-E59A80 9A86
-E59A86 9A85
-E59A87 8A64
-E59A8A 9A87
-E59A8F 9A8A
-E59A94 9A89
-E59AA0 9A88
-E59AA2 9458
-E59AA5 9A8B
-E59AAE 9A8C
-E59AB4 9A8E
-E59AB6 9A8D
-E59ABC 9A90
-E59B80 9A93
-E59B81 9A91
-E59B82 9A8F
-E59B83 9A92
-E59B88 9A94
-E59B8E 9A95
-E59B91 9A96
-E59B93 9A97
-E59B97 9A98
-E59B98 9964
-E59B9A 8EFA
-E59B9B 8E6C
-E59B9E 89F1
-E59BA0 88F6
-E59BA3 9263
-E59BAE 9A99
-E59BB0 8DA2
-E59BB2 88CD
-E59BB3 907D
-E59BB9 9A9A
-E59BBA 8CC5
-E59BBD 8D91
-E59BBF 9A9C
-E59C80 9A9B
-E59C83 95DE
-E59C84 9A9D
-E59C88 9A9F
-E59C89 9A9E
-E59C8B 9AA0
-E59C8D 9AA1
-E59C8F 8C97
-E59C92 8980
-E59C93 9AA2
-E59C96 9AA4
-E59C98 9AA3
-E59C9C 9AA6
-E59C9F 9379
-E59CA6 9AA7
-E59CA7 88B3
-E59CA8 8DDD
-E59CAD 8C5C
-E59CB0 926E
-E59CB7 9AA8
-E59CB8 9AA9
-E59CBB 9AAB
-E59D80 9AAC
-E59D82 8DE2
-E59D87 8BCF
-E59D8A 9656
-E59D8E 9AAA
-E59D8F 9AAD
-E59D90 8DBF
-E59D91 8D42
-E59DA1 9AB1
-E59DA4 8DA3
-E59DA6 9252
-E59DA9 9AAE
-E59DAA 92D8
-E59DBF 9AB2
-E59E82 9082
-E59E88 9AB0
-E59E89 9AB3
-E59E8B 8C5E
-E59E93 9AB4
-E59EA0 9AB5
-E59EA2 8D43
-E59EA3 8A5F
-E59EA4 9AB7
-E59EAA 9AB8
-E59EB0 9AB9
-E59EB3 9AB6
-E59F80 9AAF
-E59F83 9ABA
-E59F86 9ABB
-E59F8B 9684
-E59F8E 8FE9
-E59F92 9ABD
-E59F93 9ABE
-E59F94 9ABC
-E59F96 9AC0
-E59F9C 9457
-E59F9F 88E6
-E59FA0 9575
-E59FA3 9AC1
-E59FB4 8FFB
-E59FB7 8EB7
-E59FB9 947C
-E59FBA 8AEE
-E59FBC 8DE9
-E5A080 9678
-E5A082 93B0
-E5A085 8C98
-E5A086 91CD
-E5A08A 9ABF
-E5A08B 9AC2
-E5A095 91C2
-E5A099 9AC3
-E5A09D 9AC4
-E5A0A1 9AC6
-E5A0A4 92E7
-E5A0AA 8AAC
-E5A0AF EA9F
-E5A0B0 8981
-E5A0B1 95F1
-E5A0B4 8FEA
-E5A0B5 9367
-E5A0BA 8DE4
-E5A0BD 9ACC
-E5A180 95BB
-E5A181 97DB
-E5A18A 89F2
-E5A18B 9AC8
-E5A191 9159
-E5A192 9ACB
-E5A194 9383
-E5A197 9368
-E5A198 9384
-E5A199 94B7
-E5A19A 92CB
-E5A19E 8DC7
-E5A1A2 9AC7
-E5A1A9 8996
-E5A1AB 9355
-E5A1B0 9AC9
-E5A1B2 9AC5
-E5A1B5 906F
-E5A1B9 9ACD
-E5A1BE 8F6D
-E5A283 8BAB
-E5A285 9ACE
-E5A293 95E6
-E5A297 919D
-E5A29C 92C4
-E5A29F 9AD0
-E5A2A8 966E
-E5A2AB 9AD1
-E5A2AE 9AD6
-E5A2B3 95AD
-E5A2B8 9AD5
-E5A2B9 9ACF
-E5A2BA 9AD2
-E5A2BB 9AD4
-E5A2BE 8DA4
-E5A381 95C7
-E5A385 9AD7
-E5A387 9264
-E5A38A 89F3
-E5A38C 8FEB
-E5A391 9AD9
-E5A393 9AD8
-E5A395 8D88
-E5A397 9ADA
-E5A398 9ADC
-E5A399 9ADB
-E5A39C 9ADE
-E5A39E 9AD3
-E5A39F 9AE0
-E5A3A4 9ADF
-E5A3A5 9ADD
-E5A3AB 8E6D
-E5A3AC 9070
-E5A3AE 9173
-E5A3AF 9AE1
-E5A3B0 90BA
-E5A3B1 88EB
-E5A3B2 9484
-E5A3B7 92D9
-E5A3B9 9AE3
-E5A3BA 9AE2
-E5A3BB 9AE4
-E5A3BC 9AE5
-E5A3BD 9AE6
-E5A482 9AE7
-E5A489 95CF
-E5A48A 9AE8
-E5A48F 89C4
-E5A490 9AE9
-E5A495 975B
-E5A496 8A4F
-E5A498 99C7
-E5A499 8F67
-E5A49A 91BD
-E5A49B 9AEA
-E5A49C 96E9
-E5A4A2 96B2
-E5A4A5 9AEC
-E5A4A7 91E5
-E5A4A9 9356
-E5A4AA 91BE
-E5A4AB 9576
-E5A4AC 9AED
-E5A4AD 9AEE
-E5A4AE 899B
-E5A4B1 8EB8
-E5A4B2 9AEF
-E5A4B7 88CE
-E5A4B8 9AF0
-E5A4BE 9AF1
-E5A584 8982
-E5A587 8AEF
-E5A588 93DE
-E5A589 95F2
-E5A58E 9AF5
-E5A58F 9174
-E5A590 9AF4
-E5A591 8C5F
-E5A594 967A
-E5A595 9AF3
-E5A597 9385
-E5A598 9AF7
-E5A59A 9AF6
-E5A5A0 9AF9
-E5A5A2 9AF8
-E5A5A5 899C
-E5A5A7 9AFA
-E5A5A8 8FA7
-E5A5A9 9AFC
-E5A5AA 9244
-E5A5AC 9AFB
-E5A5AE 95B1
-E5A5B3 8F97
-E5A5B4 937A
-E5A5B8 9B40
-E5A5BD 8D44
-E5A681 9B41
-E5A682 9440
-E5A683 94DC
-E5A684 96CF
-E5A68A 9444
-E5A68D 9B4A
-E5A693 8B57
-E5A696 9764
-E5A699 96AD
-E5A69B 9BAA
-E5A69D 9B42
-E5A6A3 9B45
-E5A6A5 91C3
-E5A6A8 9657
-E5A6AC 9369
-E5A6B2 9B46
-E5A6B9 9685
-E5A6BB 8DC8
-E5A6BE 8FA8
-E5A786 9B47
-E5A789 8E6F
-E5A78B 8E6E
-E5A790 88B7
-E5A791 8CC6
-E5A793 90A9
-E5A794 88CF
-E5A799 9B4B
-E5A79A 9B4C
-E5A79C 9B49
-E5A7A5 8957
-E5A7A6 8AAD
-E5A7A8 9B48
-E5A7AA 96C3
-E5A7AB 9550
-E5A7B6 88A6
-E5A7BB 88F7
-E5A7BF 8E70
-E5A881 88D0
-E5A883 88A1
-E5A889 9B51
-E5A891 9B4F
-E5A898 96BA
-E5A89A 9B52
-E5A89C 9B50
-E5A89F 9B4E
-E5A8A0 9050
-E5A8A5 9B4D
-E5A8A9 95D8
-E5A8AF 8CE2
-E5A8B5 9B56
-E5A8B6 9B57
-E5A8BC 8FA9
-E5A980 9B53
-E5A981 984B
-E5A986 946B
-E5A989 9B55
-E5A99A 8DA5
-E5A9A2 9B58
-E5A9A6 9577
-E5A9AA 9B59
-E5A9AC 9B54
-E5A9BF 96B9
-E5AA92 947D
-E5AA9A 9B5A
-E5AA9B 9551
-E5AABC 9B5B
-E5AABD 9B5F
-E5AABE 9B5C
-E5AB81 89C5
-E5AB82 9B5E
-E5AB89 8EB9
-E5AB8B 9B5D
-E5AB8C 8C99
-E5AB90 9B6B
-E5AB96 9B64
-E5AB97 9B61
-E5ABA1 9284
-E5ABA3 9B60
-E5ABA6 9B62
-E5ABA9 9B63
-E5ABBA 9B65
-E5ABBB 9B66
-E5AC89 8AF0
-E5AC8B 9B68
-E5AC8C 9B67
-E5AC96 9B69
-E5ACA2 8FEC
-E5ACAA 9B6C
-E5ACAC 92DA
-E5ACB0 8964
-E5ACB2 9B6A
-E5ACB6 9B6D
-E5ACBE 9B6E
-E5AD80 9B71
-E5AD83 9B6F
-E5AD85 9B70
-E5AD90 8E71
-E5AD91 9B72
-E5AD94 8D45
-E5AD95 9B73
-E5AD97 8E9A
-E5AD98 91B6
-E5AD9A 9B74
-E5AD9B 9B75
-E5AD9C 8E79
-E5AD9D 8D46
-E5AD9F 96D0
-E5ADA3 8B47
-E5ADA4 8CC7
-E5ADA5 9B76
-E5ADA6 8A77
-E5ADA9 9B77
-E5ADAB 91B7
-E5ADB0 9B78
-E5ADB1 9BA1
-E5ADB3 9B79
-E5ADB5 9B7A
-E5ADB8 9B7B
-E5ADBA 9B7D
-E5AE80 9B7E
-E5AE83 9B80
-E5AE85 91EE
-E5AE87 8946
-E5AE88 8EE7
-E5AE89 88C0
-E5AE8B 9176
-E5AE8C 8AAE
-E5AE8D 8EB3
-E5AE8F 8D47
-E5AE95 9386
-E5AE97 8F40
-E5AE98 8AAF
-E5AE99 9288
-E5AE9A 92E8
-E5AE9B 88B6
-E5AE9C 8B58
-E5AE9D 95F3
-E5AE9F 8EC0
-E5AEA2 8B71
-E5AEA3 90E9
-E5AEA4 8EBA
-E5AEA5 9747
-E5AEA6 9B81
-E5AEAE 8B7B
-E5AEB0 8DC9
-E5AEB3 8A51
-E5AEB4 8983
-E5AEB5 8FAA
-E5AEB6 89C6
-E5AEB8 9B82
-E5AEB9 9765
-E5AEBF 8F68
-E5AF82 8EE2
-E5AF83 9B83
-E5AF84 8AF1
-E5AF85 93D0
-E5AF86 96A7
-E5AF87 9B84
-E5AF89 9B85
-E5AF8C 9578
-E5AF90 9B87
-E5AF92 8AA6
-E5AF93 8BF5
-E5AF94 9B86
-E5AF9B 8AB0
-E5AF9D 9051
-E5AF9E 9B8B
-E5AF9F 8E40
-E5AFA1 89C7
-E5AFA2 9B8A
-E5AFA4 9B88
-E5AFA5 9B8C
-E5AFA6 9B89
-E5AFA7 944A
-E5AFA8 9ECB
-E5AFA9 9052
-E5AFAB 9B8D
-E5AFAE 97BE
-E5AFB0 9B8E
-E5AFB3 9B90
-E5AFB5 929E
-E5AFB6 9B8F
-E5AFB8 90A1
-E5AFBA 8E9B
-E5AFBE 91CE
-E5AFBF 8EF5
-E5B081 9595
-E5B082 90EA
-E5B084 8ECB
-E5B085 9B91
-E5B086 8FAB
-E5B087 9B92
-E5B088 9B93
-E5B089 88D1
-E5B08A 91B8
-E5B08B 9071
-E5B08D 9B94
-E5B08E 93B1
-E5B08F 8FAC
-E5B091 8FAD
-E5B093 9B95
-E5B096 90EB
-E5B09A 8FAE
-E5B0A0 9B96
-E5B0A2 9B97
-E5B0A4 96DE
-E5B0A8 9B98
-E5B0AD 8BC4
-E5B0B1 8F41
-E5B0B8 9B99
-E5B0B9 9B9A
-E5B0BA 8EDA
-E5B0BB 904B
-E5B0BC 93F2
-E5B0BD 9073
-E5B0BE 94F6
-E5B0BF 9441
-E5B180 8BC7
-E5B181 9B9B
-E5B185 8B8F
-E5B186 9B9C
-E5B188 8BFC
-E5B18A 93CD
-E5B18B 89AE
-E5B18D 8E72
-E5B18E 9B9D
-E5B18F 9BA0
-E5B190 9B9F
-E5B191 8BFB
-E5B193 9B9E
-E5B195 9357
-E5B19E 91AE
-E5B1A0 936A
-E5B1A1 8EC6
-E5B1A4 9177
-E5B1A5 979A
-E5B1AC 9BA2
-E5B1AE 9BA3
-E5B1AF 93D4
-E5B1B1 8E52
-E5B1B6 9BA5
-E5B1B9 9BA6
-E5B28C 9BA7
-E5B290 8AF2
-E5B291 9BA8
-E5B294 9BA9
-E5B2A1 89AA
-E5B2A8 915A
-E5B2A9 8AE2
-E5B2AB 9BAB
-E5B2AC 96A6
-E5B2B1 91D0
-E5B2B3 8A78
-E5B2B6 9BAD
-E5B2B7 9BAF
-E5B2B8 8ADD
-E5B2BB 9BAC
-E5B2BC 9BAE
-E5B2BE 9BB1
-E5B385 9BB0
-E5B387 9BB2
-E5B399 9BB3
-E5B3A0 93BB
-E5B3A1 8BAC
-E5B3A8 89E3
-E5B3A9 9BB4
-E5B3AA 9BB9
-E5B3AD 9BB7
-E5B3AF 95F5
-E5B3B0 95F4
-E5B3B6 9387
-E5B3BA 9BB6
-E5B3BB 8F73
-E5B3BD 9BB5
-E5B487 9092
-E5B48B 9BBA
-E5B48E 8DE8
-E5B491 9BC0
-E5B494 9BC1
-E5B495 9BBB
-E5B496 8A52
-E5B497 9BBC
-E5B498 9BC5
-E5B499 9BC4
-E5B49A 9BC3
-E5B49B 9BBF
-E5B49F 9BBE
-E5B4A2 9BC2
-E5B4A9 95F6
-E5B58B 9BC9
-E5B58C 9BC6
-E5B58E 9BC8
-E5B590 9792
-E5B592 9BC7
-E5B59C 9BBD
-E5B5A9 9093
-E5B5AC 9BCA
-E5B5AF 8DB5
-E5B5B3 9BCB
-E5B5B6 9BCC
-E5B682 9BCF
-E5B684 9BCE
-E5B687 9BCD
-E5B68B 9388
-E5B68C 9BB8
-E5B690 9BD5
-E5B69D 9BD1
-E5B6A2 9BD0
-E5B6AC 9BD2
-E5B6AE 9BD3
-E5B6B7 9BD6
-E5B6BA 97E4
-E5B6BC 9BD7
-E5B6BD 9BD4
-E5B789 9BD8
-E5B78C 8ADE
-E5B78D 9BD9
-E5B792 9BDB
-E5B793 9BDA
-E5B796 9BDC
-E5B79B 9BDD
-E5B79D 90EC
-E5B79E 8F42
-E5B7A1 8F84
-E5B7A3 9183
-E5B7A5 8D48
-E5B7A6 8DB6
-E5B7A7 8D49
-E5B7A8 8B90
-E5B7AB 9BDE
-E5B7AE 8DB7
-E5B7B1 8CC8
-E5B7B2 9BDF
-E5B7B3 96A4
-E5B7B4 9462
-E5B7B5 9BE0
-E5B7B7 8D4A
-E5B7BB 8AAA
-E5B7BD 9246
-E5B7BE 8BD0
-E5B882 8E73
-E5B883 957A
-E5B886 94BF
-E5B88B 9BE1
-E5B88C 8AF3
-E5B891 9BE4
-E5B896 929F
-E5B899 9BE3
-E5B89A 9BE2
-E5B89B 9BE5
-E5B89D 92E9
-E5B8A5 9083
-E5B8AB 8E74
-E5B8AD 90C8
-E5B8AF 91D1
-E5B8B0 8B41
-E5B8B3 92A0
-E5B8B6 9BE6
-E5B8B7 9BE7
-E5B8B8 8FED
-E5B8BD 9658
-E5B980 9BEA
-E5B983 9BE9
-E5B984 9BE8
-E5B985 959D
-E5B987 9BF1
-E5B98C 9679
-E5B98E 9BEB
-E5B994 9BED
-E5B995 968B
-E5B997 9BEC
-E5B99F 9BEE
-E5B9A1 94A6
-E5B9A2 9BEF
-E5B9A3 95BC
-E5B9A4 9BF0
-E5B9B2 8AB1
-E5B9B3 95BD
-E5B9B4 944E
-E5B9B5 9BF2
-E5B9B6 9BF3
-E5B9B8 8D4B
-E5B9B9 8AB2
-E5B9BA 9BF4
-E5B9BB 8CB6
-E5B9BC 9763
-E5B9BD 9748
-E5B9BE 8AF4
-E5B9BF 9BF6
-E5BA81 92A1
-E5BA83 8D4C
-E5BA84 8FAF
-E5BA87 94DD
-E5BA8A 8FB0
-E5BA8F 8F98
-E5BA95 92EA
-E5BA96 95F7
-E5BA97 9358
-E5BA9A 8D4D
-E5BA9C 957B
-E5BAA0 9BF7
-E5BAA6 9378
-E5BAA7 8DC0
-E5BAAB 8CC9
-E5BAAD 92EB
-E5BAB5 88C1
-E5BAB6 8F8E
-E5BAB7 8D4E
-E5BAB8 9766
-E5BB81 9BF8
-E5BB82 9BF9
-E5BB83 9470
-E5BB88 9BFA
-E5BB89 97F5
-E5BB8A 984C
-E5BB8F 9BFC
-E5BB90 9BFB
-E5BB93 8A66
-E5BB96 9C40
-E5BB9A 9C43
-E5BB9B 9C44
-E5BB9D 9C42
-E5BB9F 955F
-E5BBA0 8FB1
-E5BBA1 9C46
-E5BBA2 9C45
-E5BBA3 9C41
-E5BBA8 9C47
-E5BBA9 9C48
-E5BBAC 9C49
-E5BBB0 9C4C
-E5BBB1 9C4A
-E5BBB3 9C4B
-E5BBB4 9C4D
-E5BBB6 8984
-E5BBB7 92EC
-E5BBB8 9C4E
-E5BBBA 8C9A
-E5BBBB 89F4
-E5BBBC 9455
-E5BBBE 9C4F
-E5BBBF 93F9
-E5BC81 95D9
-E5BC83 9C50
-E5BC84 984D
-E5BC89 9C51
-E5BC8A 95BE
-E5BC8B 9C54
-E5BC8C 989F
-E5BC8D 98AF
-E5BC8F 8EAE
-E5BC90 93F3
-E5BC91 9C55
-E5BC93 8B7C
-E5BC94 92A2
-E5BC95 88F8
-E5BC96 9C56
-E5BC97 95A4
-E5BC98 8D4F
-E5BC9B 926F
-E5BC9F 92ED
-E5BCA5 96ED
-E5BCA6 8CB7
-E5BCA7 8CCA
-E5BCA9 9C57
-E5BCAD 9C58
-E5BCAF 9C5E
-E5BCB1 8EE3
-E5BCB5 92A3
-E5BCB7 8BAD
-E5BCB8 9C59
-E5BCBC 954A
-E5BCBE 9265
-E5BD81 9C5A
-E5BD88 9C5B
-E5BD8A 8BAE
-E5BD8C 9C5C
-E5BD8E 9C5D
-E5BD91 9C5F
-E5BD93 9396
-E5BD96 9C60
-E5BD97 9C61
-E5BD99 9C62
-E5BD9C 9C53
-E5BD9D 9C52
-E5BDA1 9C63
-E5BDA2 8C60
-E5BDA6 9546
-E5BDA9 8DCA
-E5BDAA 9556
-E5BDAB 92A4
-E5BDAC 956A
-E5BDAD 9C64
-E5BDB0 8FB2
-E5BDB1 8965
-E5BDB3 9C65
-E5BDB7 9C66
-E5BDB9 96F0
-E5BDBC 94DE
-E5BDBF 9C69
-E5BE80 899D
-E5BE81 90AA
-E5BE82 9C68
-E5BE83 9C67
-E5BE84 8C61
-E5BE85 91D2
-E5BE87 9C6D
-E5BE88 9C6B
-E5BE8A 9C6A
-E5BE8B 97A5
-E5BE8C 8CE3
-E5BE90 8F99
-E5BE91 9C6C
-E5BE92 936B
-E5BE93 8F5D
-E5BE97 93BE
-E5BE98 9C70
-E5BE99 9C6F
-E5BE9E 9C6E
-E5BEA0 9C71
-E5BEA1 8CE4
-E5BEA8 9C72
-E5BEA9 959C
-E5BEAA 8F7A
-E5BEAD 9C73
-E5BEAE 94F7
-E5BEB3 93BF
-E5BEB4 92A5
-E5BEB9 934F
-E5BEBC 9C74
-E5BEBD 8B4A
-E5BF83 9053
-E5BF85 954B
-E5BF8C 8AF5
-E5BF8D 9445
-E5BF96 9C75
-E5BF97 8E75
-E5BF98 9659
-E5BF99 965A
-E5BF9C 899E
-E5BF9D 9C7A
-E5BFA0 9289
-E5BFA4 9C77
-E5BFAB 89F5
-E5BFB0 9CAB
-E5BFB1 9C79
-E5BFB5 944F
-E5BFB8 9C78
-E5BFBB 9C76
-E5BFBD 8D9A
-E5BFBF 9C7C
-E6808E 9C83
-E6808F 9C89
-E68090 9C81
-E68092 937B
-E68095 9C86
-E68096 957C
-E68099 9C80
-E6809B 9C85
-E6809C 97E5
-E6809D 8E76
-E680A0 91D3
-E680A1 9C7D
-E680A5 8B7D
-E680A6 9C88
-E680A7 90AB
-E680A8 8985
-E680A9 9C82
-E680AA 89F6
-E680AB 9C87
-E680AF 8BAF
-E680B1 9C84
-E680BA 9C8A
-E68181 9C8C
-E68182 9C96
-E68183 9C94
-E68186 9C91
-E6818A 9C90
-E6818B 97F6
-E6818D 9C92
-E68190 8BB0
-E68192 8D50
-E68195 8F9A
-E68199 9C99
-E6819A 9C8B
-E6819F 9C8F
-E681A0 9C7E
-E681A2 89F8
-E681A3 9C93
-E681A4 9C95
-E681A5 9270
-E681A8 8DA6
-E681A9 89B6
-E681AA 9C8D
-E681AB 9C98
-E681AC 9C97
-E681AD 8BB1
-E681AF 91A7
-E681B0 8A86
-E681B5 8C62
-E681B7 9C8E
-E68281 9C9A
-E68283 9C9D
-E68284 9C9F
-E68289 8EBB
-E6828B 9CA5
-E6828C 92EE
-E6828D 9C9B
-E68292 9CA3
-E68294 89F7
-E68296 9CA1
-E68297 9CA2
-E6829A 9C9E
-E6829B 9CA0
-E6829F 8CE5
-E682A0 9749
-E682A3 8AB3
-E682A6 8978
-E682A7 9CA4
-E682A9 9459
-E682AA 88AB
-E682B2 94DF
-E682B3 9C7B
-E682B4 9CAA
-E682B5 9CAE
-E682B6 96E3
-E682B8 9CA7
-E682BC 9389
-E682BD 9CAC
-E68385 8FEE
-E68386 9CAD
-E68387 93D5
-E68391 9866
-E68393 9CA9
-E68398 9CAF
-E6839A 8D9B
-E6839C 90C9
-E6839F 88D2
-E683A0 9CA8
-E683A1 9CA6
-E683A3 9179
-E683A7 9C9C
-E683A8 8E53
-E683B0 91C4
-E683B1 9CBB
-E683B3 917A
-E683B4 9CB6
-E683B6 9CB3
-E683B7 9CB4
-E683B9 8EE4
-E683BA 9CB7
-E683BB 9CBA
-E68480 9CB5
-E68481 8F44
-E68483 9CB8
-E68486 9CB2
-E68488 96FA
-E68489 96F9
-E6848D 9CBC
-E6848E 9CBD
-E6848F 88D3
-E68495 9CB1
-E6849A 8BF0
-E6849B 88A4
-E6849F 8AB4
-E684A1 9CB9
-E684A7 9CC1
-E684A8 9CC0
-E684AC 9CC5
-E684B4 9CC6
-E684BC 9CC4
-E684BD 9CC7
-E684BE 9CBF
-E684BF 9CC3
-E68582 9CC8
-E68584 9CC9
-E68587 9CBE
-E68588 8E9C
-E6858A 9CC2
-E6858B 91D4
-E6858C 8D51
-E6858D 9CB0
-E6858E 9054
-E68593 9CD6
-E68595 95E7
-E68598 9CCC
-E68599 9CCD
-E6859A 9CCE
-E6859D 9CD5
-E6859F 9CD4
-E685A2 969D
-E685A3 8AB5
-E685A5 9CD2
-E685A7 8C64
-E685A8 8A53
-E685AB 9CCF
-E685AE 97B6
-E685AF 9CD1
-E685B0 88D4
-E685B1 9CD3
-E685B3 9CCA
-E685B4 9CD0
-E685B5 9CD7
-E685B6 8C63
-E685B7 9CCB
-E685BE 977C
-E68682 974A
-E68687 9CDA
-E6868A 9CDE
-E6868E 919E
-E68690 97F7
-E68691 9CDF
-E68694 9CDC
-E68696 9CD9
-E68699 9CD8
-E6869A 9CDD
-E686A4 95AE
-E686A7 93B2
-E686A9 8C65
-E686AB 9CE0
-E686AC 9CDB
-E686AE 9CE1
-E686B2 8C9B
-E686B6 89AF
-E686BA 9CE9
-E686BE 8AB6
-E68783 9CE7
-E68786 9CE8
-E68787 8DA7
-E68788 9CE6
-E68789 9CE4
-E6878A 9CE3
-E6878B 9CEA
-E6878C 9CE2
-E6878D 9CEC
-E68790 89F9
-E687A3 9CEE
-E687A6 9CED
-E687B2 92A6
-E687B4 9CF1
-E687B6 9CEF
-E687B7 9CE5
-E687B8 8C9C
-E687BA 9CF0
-E687BC 9CF4
-E687BD 9CF3
-E687BE 9CF5
-E687BF 9CF2
-E68880 9CF6
-E68888 9CF7
-E68889 9CF8
-E6888A 95E8
-E6888C 9CFA
-E6888D 9CF9
-E6888E 8F5E
-E68890 90AC
-E68891 89E4
-E68892 89FA
-E68894 9CFB
-E68896 88BD
-E6889A 90CA
-E6889B 9CFC
-E6889D E6C1
-E6889E 9D40
-E6889F 8C81
-E688A1 9D41
-E688A6 90ED
-E688AA 9D42
-E688AE 9D43
-E688AF 8B59
-E688B0 9D44
-E688B2 9D45
-E688B3 9D46
-E688B4 91D5
-E688B8 8CCB
-E688BB 96DF
-E688BF 965B
-E68980 8F8A
-E68981 9D47
-E68987 90EE
-E68988 E7BB
-E68989 94E0
-E6898B 8EE8
-E6898D 8DCB
-E6898E 9D48
-E68993 91C5
-E68995 95A5
-E68998 91EF
-E6899B 9D4B
-E6899E 9D49
-E689A0 9D4C
-E689A3 9D4A
-E689A8 9D4D
-E689AE 95AF
-E689B1 88B5
-E689B6 957D
-E689B9 94E1
-E689BC 9D4E
-E689BE 9D51
-E689BF 8FB3
-E68A80 8B5A
-E68A82 9D4F
-E68A83 9D56
-E68A84 8FB4
-E68A89 9D50
-E68A8A 9463
-E68A91 977D
-E68A92 9D52
-E68A93 9D53
-E68A94 9D57
-E68A95 938A
-E68A96 9D54
-E68A97 8D52
-E68A98 90DC
-E68A9B 9D65
-E68A9C 94B2
-E68A9E 91F0
-E68AAB 94E2
-E68AAC 9DAB
-E68AB1 95F8
-E68AB5 92EF
-E68AB9 9695
-E68ABB 9D5A
-E68ABC 899F
-E68ABD 928A
-E68B82 9D63
-E68B85 9253
-E68B86 9D5D
-E68B87 9D64
-E68B88 9D5F
-E68B89 9D66
-E68B8A 9D62
-E68B8C 9D61
-E68B8D 948F
-E68B8F 9D5B
-E68B90 89FB
-E68B91 9D59
-E68B92 8B91
-E68B93 91F1
-E68B94 9D55
-E68B97 9D58
-E68B98 8D53
-E68B99 90D9
-E68B9B 8FB5
-E68B9C 9D60
-E68B9D 9471
-E68BA0 8B92
-E68BA1 8A67
-E68BAC 8A87
-E68BAD 9040
-E68BAE 9D68
-E68BAF 9D6D
-E68BB1 9D69
-E68BB3 8C9D
-E68BB5 9D6E
-E68BB6 8E41
-E68BB7 8D89
-E68BBE 8F45
-E68BBF 9D5C
-E68C81 8E9D
-E68C82 9D6B
-E68C87 8E77
-E68C88 9D6C
-E68C89 88C2
-E68C8C 9D67
-E68C91 92A7
-E68C99 8B93
-E68C9F 8BB2
-E68CA7 9D6A
-E68CA8 88A5
-E68CAB 8DC1
-E68CAF 9055
-E68CBA 92F0
-E68CBD 94D2
-E68CBE 9D70
-E68CBF 917D
-E68D89 91A8
-E68D8C 8E4A
-E68D8D 9D71
-E68D8F 9D73
-E68D90 9D6F
-E68D95 95DF
-E68D97 92BB
-E68D9C 917B
-E68DA7 95F9
-E68DA8 8ECC
-E68DA9 9D80
-E68DAB 9D7E
-E68DAE 9098
-E68DB2 8C9E
-E68DB6 9D78
-E68DB7 8FB7
-E68DBA 93E6
-E68DBB 9450
-E68E80 9D76
-E68E83 917C
-E68E88 8EF6
-E68E89 9D7B
-E68E8C 8FB6
-E68E8E 9D75
-E68E8F 9D7A
-E68E92 9472
-E68E96 9D74
-E68E98 8C40
-E68E9B 8A7C
-E68E9F 9D7C
-E68EA0 97A9
-E68EA1 8DCC
-E68EA2 9254
-E68EA3 9D79
-E68EA5 90DA
-E68EA7 8D54
-E68EA8 9084
-E68EA9 8986
-E68EAA 915B
-E68EAB 9D77
-E68EAC 8B64
-E68EB2 8C66
-E68EB4 92CD
-E68EB5 9D7D
-E68EBB 917E
-E68EBE 9D81
-E68F80 9D83
-E68F83 91B5
-E68F84 9D89
-E68F86 9D84
-E68F89 9D86
-E68F8F 9560
-E68F90 92F1
-E68F92 9D87
-E68F96 974B
-E68F9A 9767
-E68F9B 8AB7
-E68FA1 88AC
-E68FA3 9D85
-E68FA9 9D82
-E68FAE 8AF6
-E68FB4 8987
-E68FB6 9D88
-E68FBA 9768
-E69086 9D8C
-E6908D 91B9
-E6908F 9D93
-E69093 9D8D
-E69096 9D8A
-E69097 9D91
-E6909C 9D72
-E690A6 9D8E
-E690A8 9D92
-E690AC 94C0
-E690AD 938B
-E690B4 9D8B
-E690B6 9D8F
-E690BA 8C67
-E690BE 8DEF
-E69182 90DB
-E6918E 9D97
-E69198 9345
-E691A7 9D94
-E691A9 9680
-E691AF 9D95
-E691B6 9D96
-E691B8 96CC
-E691BA 90A0
-E69283 8C82
-E69288 9D9D
-E69292 8E54
-E69293 9D9A
-E69295 9D99
-E6929A 9451
-E6929E 93B3
-E692A4 9350
-E692A5 9D9B
-E692A9 9D9C
-E692AB 958F
-E692AD 9464
-E692AE 8E42
-E692B0 90EF
-E692B2 966F
-E692B9 8A68
-E692BB 9DA3
-E692BC 9D9E
-E69381 9769
-E69382 9DA5
-E69385 9DA1
-E69387 9DA2
-E6938D 9180
-E69392 9DA0
-E69394 9D5E
-E69398 9DA4
-E6939A 9D9F
-E693A0 9DA9
-E693A1 9DAA
-E693A2 9346
-E693A3 9DAC
-E693A6 8E43
-E693A7 9DA7
-E693AC 8B5B
-E693AF 9DAD
-E693B1 9DA6
-E693B2 9DB1
-E693B4 9DB0
-E693B6 9DAF
-E693BA 9DB2
-E693BD 9DB4
-E693BE 8FEF
-E69480 9DB3
-E69485 9DB7
-E69498 9DB5
-E6949C 9DB6
-E6949D 9D90
-E694A3 9DB9
-E694A4 9DB8
-E694AA 9D98
-E694AB 9DBA
-E694AC 9DAE
-E694AF 8E78
-E694B4 9DBB
-E694B5 9DBC
-E694B6 9DBE
-E694B7 9DBD
-E694B8 9DBF
-E694B9 89FC
-E694BB 8D55
-E694BE 95FA
-E694BF 90AD
-E69585 8CCC
-E69588 9DC1
-E6958D 9DC4
-E6958F 9571
-E69591 8B7E
-E69595 9DC3
-E69596 9DC2
-E69597 9473
-E69598 9DC5
-E69599 8BB3
-E6959D 9DC7
-E6959E 9DC6
-E695A2 8AB8
-E695A3 8E55
-E695A6 93D6
-E695AC 8C68
-E695B0 9094
-E695B2 9DC8
-E695B4 90AE
-E695B5 9347
-E695B7 957E
-E695B8 9DC9
-E69682 9DCA
-E69683 9DCB
-E69687 95B6
-E69688 9B7C
-E69689 90C4
-E6968C 956B
-E6968E 8DD6
-E69690 94E3
-E69691 94C1
-E69697 936C
-E69699 97BF
-E6969B 9DCD
-E6969C 8ECE
-E6969F 9DCE
-E696A1 88B4
-E696A4 8BD2
-E696A5 90CB
-E696A7 9580
-E696AB 9DCF
-E696AC 8E61
-E696AD 9266
-E696AF 8E7A
-E696B0 9056
-E696B7 9DD0
-E696B9 95FB
-E696BC 8997
-E696BD 8E7B
-E69781 9DD3
-E69783 9DD1
-E69784 9DD4
-E69785 97B7
-E69786 9DD2
-E6978B 90F9
-E6978C 9DD5
-E6978F 91B0
-E69792 9DD6
-E69797 8AF8
-E69799 9DD8
-E6979B 9DD7
-E697A0 9DD9
-E697A1 9DDA
-E697A2 8AF9
-E697A5 93FA
-E697A6 9255
-E697A7 8B8C
-E697A8 8E7C
-E697A9 9181
-E697AC 8F7B
-E697AD 88AE
-E697B1 9DDB
-E697BA 89A0
-E697BB 9DDF
-E69882 8D56
-E69883 9DDE
-E69886 8DA9
-E69887 8FB8
-E6988A 9DDD
-E6988C 8FB9
-E6988E 96BE
-E6988F 8DA8
-E69893 88D5
-E69894 90CC
-E6989C 9DE4
-E6989F 90AF
-E698A0 8966
-E698A5 8F74
-E698A7 9686
-E698A8 8DF0
-E698AD 8FBA
-E698AF 90A5
-E698B4 9DE3
-E698B5 9DE1
-E698B6 9DE2
-E698BC 928B
-E698BF 9E45
-E69981 9DE8
-E69982 8E9E
-E69983 8D57
-E69984 9DE6
-E69989 9DE7
-E6998B 9057
-E6998F 9DE5
-E69992 8E4E
-E6999D 9DEA
-E6999E 9DE9
-E6999F 9DEE
-E699A2 9DEF
-E699A4 9DEB
-E699A6 8A41
-E699A7 9DEC
-E699A8 9DED
-E699A9 94D3
-E699AE 9581
-E699AF 8C69
-E699B0 9DF0
-E699B4 90B0
-E699B6 8FBB
-E699BA 9271
-E69A81 8BC5
-E69A83 9DF1
-E69A84 9DF5
-E69A87 89C9
-E69A88 9DF2
-E69A89 9DF4
-E69A8E 9DF3
-E69A91 8F8B
-E69A96 9267
-E69A97 88C3
-E69A98 9DF6
-E69A9D 9DF7
-E69AA2 92A8
-E69AA6 97EF
-E69AAB 8E62
-E69AAE 95E9
-E69AB4 965C
-E69AB8 9E41
-E69AB9 9DF9
-E69ABC 9DFC
-E69ABE 9DFB
-E69B81 9DF8
-E69B84 9E40
-E69B87 93DC
-E69B89 9DFA
-E69B96 9E42
-E69B99 8F8C
-E69B9A 9E43
-E69B9C 976A
-E69B9D 9498
-E69BA0 9E44
-E69BA6 9E46
-E69BA9 9E47
-E69BB0 9E48
-E69BB2 8BC8
-E69BB3 8967
-E69BB4 8D58
-E69BB5 9E49
-E69BB7 9E4A
-E69BB8 8F91
-E69BB9 9182
-E69BBC 99D6
-E69BBD 915D
-E69BBE 915C
-E69BBF 91D6
-E69C80 8DC5
-E69C83 98F0
-E69C88 8C8E
-E69C89 974C
-E69C8B 95FC
-E69C8D 959E
-E69C8F 9E4B
-E69C94 8DF1
-E69C95 92BD
-E69C96 9E4C
-E69C97 984E
-E69C9B 965D
-E69C9D 92A9
-E69C9E 9E4D
-E69C9F 8AFA
-E69CA6 9E4E
-E69CA7 9E4F
-E69CA8 96D8
-E69CAA 96A2
-E69CAB 9696
-E69CAC 967B
-E69CAD 8E44
-E69CAE 9E51
-E69CB1 8EE9
-E69CB4 9670
-E69CB6 9E53
-E69CB7 9E56
-E69CB8 9E55
-E69CBA 8AF7
-E69CBD 8B80
-E69CBF 9E52
-E69D81 9E54
-E69D86 9E57
-E69D89 9099
-E69D8E 979B
-E69D8F 88C7
-E69D90 8DDE
-E69D91 91BA
-E69D93 8EDB
-E69D96 8FF1
-E69D99 9E5A
-E69D9C 936D
-E69D9E 9E58
-E69D9F 91A9
-E69DA0 9E59
-E69DA1 8FF0
-E69DA2 96DB
-E69DA3 9E5B
-E69DA4 9E5C
-E69DA5 9788
-E69DAA 9E61
-E69DAD 8D59
-E69DAF 9474
-E69DB0 9E5E
-E69DB1 938C
-E69DB2 9DDC
-E69DB3 9DE0
-E69DB5 8B6E
-E69DB7 9466
-E69DBC 9E60
-E69DBE 8FBC
-E69DBF 94C2
-E69E85 9E66
-E69E87 94F8
-E69E89 9E5D
-E69E8B 9E63
-E69E8C 9E62
-E69E90 90CD
-E69E95 968D
-E69E97 97D1
-E69E9A 9687
-E69E9C 89CA
-E69E9D 8E7D
-E69EA0 9867
-E69EA1 9E65
-E69EA2 9095
-E69EA6 9E64
-E69EA9 9E5F
-E69EAF 8CCD
-E69EB3 9E6B
-E69EB4 9E69
-E69EB6 89CB
-E69EB7 9E67
-E69EB8 9E6D
-E69EB9 9E73
-E69F81 91C6
-E69F84 95BF
-E69F86 9E75
-E69F8A 9541
-E69F8E 9E74
-E69F8F 9490
-E69F90 965E
-E69F91 8AB9
-E69F93 90F5
-E69F94 8F5F
-E69F98 92D1
-E69F9A 974D
-E69F9D 9E70
-E69F9E 9E6F
-E69FA2 9E71
-E69FA4 9E6E
-E69FA7 9E76
-E69FA9 9E6C
-E69FAC 9E6A
-E69FAE 9E72
-E69FAF 9E68
-E69FB1 928C
-E69FB3 96F6
-E69FB4 8EC4
-E69FB5 8DF2
-E69FBB 8DB8
-E69FBE 968F
-E69FBF 8A60
-E6A082 92CC
-E6A083 93C8
-E6A084 8968
-E6A093 90F0
-E6A096 90B2
-E6A097 8C49
-E6A09E 9E78
-E6A0A1 8D5A
-E6A0A2 8A9C
-E6A0A9 9E7A
-E6A0AA 8A94
-E6A0AB 9E81
-E6A0B2 9E7D
-E6A0B4 90F1
-E6A0B8 8A6A
-E6A0B9 8DAA
-E6A0BC 8A69
-E6A0BD 8DCD
-E6A180 9E7B
-E6A181 8C85
-E6A182 8C6A
-E6A183 938D
-E6A186 9E79
-E6A188 88C4
-E6A18D 9E7C
-E6A18E 9E7E
-E6A190 8BCB
-E6A191 8C4B
-E6A193 8ABA
-E6A194 8B6A
-E6A199 9E82
-E6A19C 8DF7
-E6A19D 9691
-E6A19F 8E56
-E6A1A3 9E83
-E6A1A7 954F
-E6A1B4 9E8F
-E6A1B6 89B1
-E6A1B7 9E84
-E6A1BE 9E95
-E6A1BF 9E85
-E6A281 97C0
-E6A283 9E8C
-E6A285 947E
-E6A28D 9E94
-E6A28F 9E87
-E6A293 88B2
-E6A294 9E89
-E6A297 8D5B
-E6A29B 9E8B
-E6A29D 9E8A
-E6A29F 9E86
-E6A2A0 9E91
-E6A2A2 8FBD
-E6A2A6 9AEB
-E6A2A7 8CE6
-E6A2A8 979C
-E6A2AD 9E88
-E6A2AF 92F2
-E6A2B0 8A42
-E6A2B1 8DAB
-E6A2B3 9E80
-E6A2B5 9E90
-E6A2B6 8A81
-E6A2B9 9E8E
-E6A2BA 9E92
-E6A2BC 938E
-E6A384 8AFC
-E6A386 9EB0
-E6A389 96C7
-E6A38A 9E97
-E6A38B 8AFB
-E6A38D 9E9E
-E6A392 965F
-E6A394 9E9F
-E6A395 9EA1
-E6A397 9EA5
-E6A398 9E99
-E6A39A 9249
-E6A39F 938F
-E6A3A0 9EA9
-E6A3A1 9E9C
-E6A3A3 9EA6
-E6A3A7 9EA0
-E6A3AE 9058
-E6A3AF 9EAA
-E6A3B2 90B1
-E6A3B9 9EA8
-E6A3BA 8ABB
-E6A480 986F
-E6A481 9E96
-E6A484 9EA4
-E6A485 88D6
-E6A488 9E98
-E6A48B 96B8
-E6A48C 9E9D
-E6A48D 9041
-E6A48E 92C5
-E6A48F 9E93
-E6A492 9EA3
-E6A499 909A
-E6A49A 9EAD
-E6A49B 8A91
-E6A49C 8C9F
-E6A4A1 9EAF
-E6A4A2 9E9A
-E6A4A3 9EAE
-E6A4A5 9EA7
-E6A4A6 9E9B
-E6A4A8 9EAB
-E6A4AA 9EAC
-E6A4B0 9EBD
-E6A4B4 93CC
-E6A4B6 9EA2
-E6A4B9 9EB9
-E6A4BD 9EBB
-E6A4BF 92D6
-E6A58A 976B
-E6A593 9596
-E6A594 9EB6
-E6A595 91C8
-E6A599 9EBC
-E6A59A 915E
-E6A59C 9EB3
-E6A59D 9EC0
-E6A59E 9EBF
-E6A5A0 93ED
-E6A5A1 9EBE
-E6A5A2 93E8
-E6A5AA 9EC2
-E6A5AB 9EB5
-E6A5AD 8BC6
-E6A5AE 9EB8
-E6A5AF 8F7C
-E6A5B3 9480
-E6A5B4 9EBA
-E6A5B5 8BC9
-E6A5B7 9EB2
-E6A5B8 9EB4
-E6A5B9 9EB1
-E6A5BC 984F
-E6A5BD 8A79
-E6A5BE 9EB7
-E6A681 9EC1
-E6A682 8A54
-E6A68A 8DE5
-E6A68E 897C
-E6A691 9ED2
-E6A694 9850
-E6A695 9ED5
-E6A69B 9059
-E6A69C 9ED4
-E6A6A0 9ED3
-E6A6A7 9ED0
-E6A6AE 9EC4
-E6A6B1 9EE1
-E6A6B2 9EC3
-E6A6B4 9ED6
-E6A6BB 9ECE
-E6A6BE 9EC9
-E6A6BF 9EC6
-E6A781 9EC7
-E6A783 9ECF
-E6A787 EAA0
-E6A78A 9ECC
-E6A78B 8D5C
-E6A78C 92C6
-E6A78D 9184
-E6A78E 9ECA
-E6A790 9EC5
-E6A793 9EC8
-E6A798 976C
-E6A799 968A
-E6A79D 9ECD
-E6A79E 9ED7
-E6A7A7 9EDF
-E6A7A8 9ED8
-E6A7AB 9EE5
-E6A7AD 9EE3
-E6A7B2 9EDE
-E6A7B9 9EDD
-E6A7BB 92CE
-E6A7BD 9185
-E6A7BF 9EDB
-E6A882 9ED9
-E6A885 9EE0
-E6A88A 9EE6
-E6A88B 94F3
-E6A88C 9EEC
-E6A892 9EE7
-E6A893 9EEA
-E6A894 9EE4
-E6A897 9294
-E6A899 9557
-E6A89B 9EDA
-E6A89E 9EE2
-E6A89F 8FBE
-E6A8A1 96CD
-E6A8A2 9EF6
-E6A8A3 9EE9
-E6A8A9 8CA0
-E6A8AA 89A1
-E6A8AB 8A7E
-E6A8AE 9ED1
-E6A8B5 8FBF
-E6A8B6 9EEE
-E6A8B8 9EF5
-E6A8B9 8EF7
-E6A8BA 8A92
-E6A8BD 924D
-E6A984 9EEB
-E6A987 9EF0
-E6A988 9EF4
-E6A98B 8BB4
-E6A998 8B6B
-E6A999 9EF2
-E6A99F 8B40
-E6A9A1 93C9
-E6A9A2 9EF1
-E6A9A6 9EF3
-E6A9B2 9EED
-E6A9B8 9EEF
-E6A9BF 8A80
-E6AA80 9268
-E6AA84 9EFA
-E6AA8D 9EF8
-E6AA8E 8CE7
-E6AA90 9EF7
-E6AA97 9F40
-E6AA9C 9E77
-E6AAA0 9EF9
-E6AAA2 9EFB
-E6AAA3 9EFC
-E6AAAA 9F4B
-E6AAAC 9F47
-E6AAAE 9E8D
-E6AAB3 9F46
-E6AAB8 9F45
-E6AABB 9F42
-E6AB81 9EE8
-E6AB82 9F44
-E6AB83 9F43
-E6AB91 9F49
-E6AB93 9845
-E6AB9A 9F4C
-E6AB9B 8BF9
-E6AB9E 9F48
-E6AB9F 9F4A
-E6ABA8 94A5
-E6ABAA 9F4D
-E6ABBA 9F51
-E6ABBB 9F4E
-E6AC84 9793
-E6AC85 9F4F
-E6AC8A 9EDC
-E6AC92 9F52
-E6AC96 9F53
-E6AC9D 8954
-E6AC9F 9F55
-E6ACA0 8C87
-E6ACA1 8E9F
-E6ACA3 8BD3
-E6ACA7 89A2
-E6ACB2 977E
-E6ACB7 9F57
-E6ACB8 9F56
-E6ACB9 9F59
-E6ACBA 8B5C
-E6ACBD 8BD4
-E6ACBE 8ABC
-E6AD83 9F5C
-E6AD87 9F5B
-E6AD89 9F5D
-E6AD8C 89CC
-E6AD8E 9256
-E6AD90 9F5E
-E6AD93 8ABD
-E6AD94 9F60
-E6AD99 9F5F
-E6AD9B 9F61
-E6AD9F 9F62
-E6ADA1 9F63
-E6ADA2 8E7E
-E6ADA3 90B3
-E6ADA4 8D9F
-E6ADA6 9590
-E6ADA9 95E0
-E6ADAA 9863
-E6ADAF 8E95
-E6ADB3 8DCE
-E6ADB4 97F0
-E6ADB8 9F64
-E6ADB9 9F65
-E6ADBB 8E80
-E6ADBF 9F66
-E6AE80 9F67
-E6AE83 9F69
-E6AE84 9F68
-E6AE86 9677
-E6AE89 8F7D
-E6AE8A 8EEA
-E6AE8B 8E63
-E6AE8D 9F6A
-E6AE95 9F6C
-E6AE96 9042
-E6AE98 9F6B
-E6AE9E 9F6D
-E6AEA4 9F6E
-E6AEAA 9F6F
-E6AEAB 9F70
-E6AEAF 9F71
-E6AEB1 9F73
-E6AEB2 9F72
-E6AEB3 9F74
-E6AEB4 89A3
-E6AEB5 9269
-E6AEB7 9F75
-E6AEBA 8E45
-E6AEBB 8A6B
-E6AEBC 9F76
-E6AEBF 9361
-E6AF80 9ACA
-E6AF85 8B42
-E6AF86 9F77
-E6AF8B 9F78
-E6AF8D 95EA
-E6AF8E 9688
-E6AF92 93C5
-E6AF93 9F79
-E6AF94 94E4
-E6AF98 94F9
-E6AF9B 96D1
-E6AF9F 9F7A
-E6AFAB 9F7C
-E6AFAC 9F7B
-E6AFAF 9F7E
-E6AFB3 9F7D
-E6B088 9F81
-E6B08F 8E81
-E6B091 96AF
-E6B093 9F82
-E6B094 9F83
-E6B097 8B43
-E6B09B 9F84
-E6B0A3 9F86
-E6B0A4 9F85
-E6B0B4 9085
-E6B0B7 9558
-E6B0B8 8969
-E6B0BE 94C3
-E6B180 92F3
-E6B181 8F60
-E6B182 8B81
-E6B18E 94C4
-E6B190 8EAC
-E6B195 9F88
-E6B197 8ABE
-E6B19A 8998
-E6B19D 93F0
-E6B19E 9F87
-E6B19F 8D5D
-E6B1A0 9272
-E6B1A2 9F89
-E6B1A8 9F91
-E6B1AA 9F8A
-E6B1B0 91BF
-E6B1B2 8B82
-E6B1B3 9F92
-E6B1BA 8C88
-E6B1BD 8B44
-E6B1BE 9F90
-E6B281 9F8E
-E6B282 9F8B
-E6B283 9780
-E6B288 92BE
-E6B28C 93D7
-E6B28D 9F8C
-E6B290 9F94
-E6B292 9F93
-E6B293 8C42
-E6B296 89AB
-E6B299 8DB9
-E6B29A 9F8D
-E6B29B 9F8F
-E6B2A1 9676
-E6B2A2 91F2
-E6B2AB 9697
-E6B2AE 9F9C
-E6B2B1 9F9D
-E6B2B3 89CD
-E6B2B8 95A6
-E6B2B9 96FB
-E6B2BA 9F9F
-E6B2BB 8EA1
-E6B2BC 8FC0
-E6B2BD 9F98
-E6B2BE 9F9E
-E6B2BF 8988
-E6B381 8BB5
-E6B384 9F95
-E6B385 9F9A
-E6B389 90F2
-E6B38A 9491
-E6B38C 94E5
-E6B393 9F97
-E6B395 9640
-E6B397 9F99
-E6B399 9FA2
-E6B39B 9FA0
-E6B39D 9F9B
-E6B3A1 9641
-E6B3A2 9467
-E6B3A3 8B83
-E6B3A5 9344
-E6B3A8 928D
-E6B3AA 9FA3
-E6B3AF 9FA1
-E6B3B0 91D7
-E6B3B1 9F96
-E6B3B3 896A
-E6B48B 976D
-E6B48C 9FAE
-E6B492 9FAD
-E6B497 90F4
-E6B499 9FAA
-E6B49B 978C
-E6B49E 93B4
-E6B49F 9FA4
-E6B4A5 92C3
-E6B4A9 896B
-E6B4AA 8D5E
-E6B4AB 9FA7
-E6B4B2 8F46
-E6B4B3 9FAC
-E6B4B5 9FAB
-E6B4B6 9FA6
-E6B4B8 9FA9
-E6B4BB 8A88
-E6B4BD 9FA8
-E6B4BE 9468
-E6B581 97AC
-E6B584 8FF2
-E6B585 90F3
-E6B599 9FB4
-E6B59A 9FB2
-E6B59C 956C
-E6B5A3 9FAF
-E6B5A4 9FB1
-E6B5A6 8959
-E6B5A9 8D5F
-E6B5AA 9851
-E6B5AC 8A5C
-E6B5AE 9582
-E6B5B4 9781
-E6B5B7 8A43
-E6B5B8 905A
-E6B5B9 9FB3
-E6B685 9FB8
-E6B688 8FC1
-E6B68C 974F
-E6B68E 9FB5
-E6B693 9FB0
-E6B695 9FB6
-E6B699 97DC
-E6B69B 9393
-E6B69C 93C0
-E6B6AF 8A55
-E6B6B2 8974
-E6B6B5 9FBC
-E6B6B8 9FBF
-E6B6BC 97C1
-E6B780 9784
-E6B785 9FC6
-E6B786 9FC0
-E6B787 9FBD
-E6B78B 97D2
-E6B78C 9FC3
-E6B791 8F69
-E6B792 9FC5
-E6B795 9FCA
-E6B798 9391
-E6B799 9FC8
-E6B79E 9FC2
-E6B7A1 9257
-E6B7A4 9FC9
-E6B7A6 9FBE
-E6B7A8 9FC4
-E6B7AA 9FCB
-E6B7AB 88FA
-E6B7AC 9FC1
-E6B7AE 9FCC
-E6B7B1 905B
-E6B7B3 8F7E
-E6B7B5 95A3
-E6B7B7 8DAC
-E6B7B9 9FB9
-E6B7BA 9FC7
-E6B7BB 9359
-E6B885 90B4
-E6B887 8A89
-E6B888 8DCF
-E6B889 8FC2
-E6B88A 9FBB
-E6B88B 8F61
-E6B893 8C6B
-E6B895 9FBA
-E6B899 9FD0
-E6B89A 8F8D
-E6B89B 8CB8
-E6B89D 9FDF
-E6B89F 9FD9
-E6B8A0 8B94
-E6B8A1 936E
-E6B8A3 9FD4
-E6B8A4 9FDD
-E6B8A5 88AD
-E6B8A6 8951
-E6B8A9 89B7
-E6B8AB 9FD6
-E6B8AC 91AA
-E6B8AD 9FCD
-E6B8AE 9FCF
-E6B8AF 8D60
-E6B8B8 9FE0
-E6B8BA 9FDB
-E6B8BE 9FD3
-E6B983 9FDA
-E6B98A 96A9
-E6B98D 9FD8
-E6B98E 9FDC
-E6B996 8CCE
-E6B998 8FC3
-E6B99B 9258
-E6B99F 9FD2
-E6B9A7 974E
-E6B9AB 9FD5
-E6B9AE 9FCE
-E6B9AF 9392
-E6B9B2 9FD1
-E6B9B6 9FD7
-E6B9BE 9870
-E6B9BF 8EBC
-E6BA80 969E
-E6BA82 9FE1
-E6BA8C 94AC
-E6BA8F 9FED
-E6BA90 8CB9
-E6BA96 8F80
-E6BA98 9FE3
-E6BA9C 97AD
-E6BA9D 8D61
-E6BA9F 9FF0
-E6BAA2 88EC
-E6BAA5 9FEE
-E6BAAA 9FE2
-E6BAAF 9FE8
-E6BAB2 9FEA
-E6BAB6 976E
-E6BAB7 9FE5
-E6BABA 934D
-E6BABD 9FE7
-E6BB82 9FEF
-E6BB84 9FE9
-E6BB85 96C5
-E6BB89 9FE4
-E6BB8B 8EA0
-E6BB8C 9FFC
-E6BB91 8A8A
-E6BB93 9FE6
-E6BB94 9FEB
-E6BB95 9FEC
-E6BB9D 91EA
-E6BB9E 91D8
-E6BBAC 9FF4
-E6BBAF 9FFA
-E6BBB2 9FF8
-E6BBB4 9348
-E6BBB7 E042
-E6BBB8 9FF5
-E6BBBE 9FF6
-E6BBBF 9FDE
-E6BC81 8B99
-E6BC82 9559
-E6BC86 8EBD
-E6BC89 8D97
-E6BC8F 9852
-E6BC91 9FF2
-E6BC93 E041
-E6BC94 8989
-E6BC95 9186
-E6BCA0 9499
-E6BCA2 8ABF
-E6BCA3 97F8
-E6BCAB 969F
-E6BCAC 92D0
-E6BCB1 9FF9
-E6BCB2 9FFB
-E6BCB8 9151
-E6BCBE E040
-E6BCBF 9FF7
-E6BD81 9FF1
-E6BD85 8AC1
-E6BD94 8C89
-E6BD98 E04E
-E6BD9B E049
-E6BD9C 90F6
-E6BD9F 8A83
-E6BDA4 8F81
-E6BDA6 E052
-E6BDAD E04B
-E6BDAE 92AA
-E6BDAF E048
-E6BDB0 92D7
-E6BDB4 E06B
-E6BDB8 E045
-E6BDBA E044
-E6BDBC E04D
-E6BE80 E047
-E6BE81 E046
-E6BE82 E04C
-E6BE84 909F
-E6BE86 E043
-E6BE8E E04F
-E6BE91 E050
-E6BE97 8AC0
-E6BEA1 E055
-E6BEA3 E054
-E6BEA4 E056
-E6BEAA E059
-E6BEB1 9362
-E6BEB3 E053
-E6BEB9 E057
-E6BF80 8C83
-E6BF81 91F7
-E6BF82 E051
-E6BF83 945A
-E6BF86 E058
-E6BF94 E05D
-E6BF95 E05B
-E6BF98 E05E
-E6BF9B E061
-E6BF9F E05A
-E6BFA0 8D8A
-E6BFA1 9447
-E6BFA4 9FB7
-E6BFAB 9794
-E6BFAC E05C
-E6BFAE E060
-E6BFAF 91F3
-E6BFB1 E05F
-E6BFB3 E04A
-E6BFB6 E889
-E6BFBA E064
-E6BFBE E068
-E78081 E066
-E78089 E062
-E7808B E063
-E7808F E067
-E78091 E065
-E78095 956D
-E78098 E06D
-E7809A E06A
-E7809B E069
-E7809D E06C
-E7809E 93D2
-E7809F E06E
-E780A6 9295
-E780A7 91EB
-E780AC 90A3
-E780B0 E06F
-E780B2 E071
-E780BE E070
-E7818C 9FF3
-E78191 E072
-E78198 93E5
-E781A3 E073
-E781AB 89CE
-E781AF 9394
-E781B0 8A44
-E781B8 8B84
-E781BC 8EDC
-E781BD 8DD0
-E78289 9846
-E7828A 9086
-E7828E 898A
-E78292 E075
-E78299 E074
-E782AC E078
-E782AD 9259
-E782AE E07B
-E782AF E076
-E782B3 E07A
-E782B8 E079
-E782B9 935F
-E782BA 88D7
-E78388 97F3
-E7838B E07D
-E7838F 8947
-E78399 E080
-E7839D E07E
-E7839F E07C
-E783B1 E077
-E783B9 9642
-E783BD E082
-E78489 E081
-E78494 898B
-E78499 E084
-E7849A 95B0
-E7849C E083
-E784A1 96B3
-E784A6 8FC5
-E784B6 9152
-E784BC 8FC4
-E78589 97F9
-E7858C E08A
-E7858E 90F7
-E78595 E086
-E78596 E08B
-E78599 898C
-E785A2 E089
-E785A4 9481
-E785A5 E085
-E785A6 E088
-E785A7 8FC6
-E785A9 94CF
-E785AC E08C
-E785AE 8ECF
-E785BD 90F8
-E78684 E08F
-E78688 E087
-E7868A 8C46
-E7868F E08D
-E78694 976F
-E78695 E090
-E78699 EAA4
-E7869F 8F6E
-E786A8 E091
-E786AC E092
-E786B1 944D
-E786B9 E094
-E786BE E095
-E78783 9452
-E78788 9395
-E78789 E097
-E7878E E099
-E78790 97D3
-E78792 E096
-E78794 E098
-E78795 898D
-E78797 E093
-E7879F 9A7A
-E787A0 E09A
-E787A5 9187
-E787A6 8E57
-E787A7 E09C
-E787AC E09B
-E787AD 9043
-E787AE 99D7
-E787B5 E09D
-E787B9 E09F
-E787BB E08E
-E787BC E09E
-E787BF E0A0
-E78886 949A
-E7888D E0A1
-E78890 E0A2
-E7889B E0A3
-E788A8 E0A4
-E788AA 92DC
-E788AC E0A6
-E788AD E0A5
-E788B0 E0A7
-E788B2 E0A8
-E788B5 8EDD
-E788B6 9583
-E788BA 96EA
-E788BB E0A9
-E788BC E0AA
-E788BD 9175
-E788BE 8EA2
-E788BF E0AB
-E78980 E0AC
-E78986 E0AD
-E78987 95D0
-E78988 94C5
-E7898B E0AE
-E7898C 9476
-E78992 92AB
-E78998 E0AF
-E78999 89E5
-E7899B 8B8D
-E7899D 96C4
-E7899F 96B4
-E789A1 89B2
-E789A2 9853
-E789A7 9671
-E789A9 95A8
-E789B2 90B5
-E789B4 E0B0
-E789B9 93C1
-E789BD 8CA1
-E789BE E0B1
-E78A80 8DD2
-E78A81 E0B3
-E78A82 E0B2
-E78A87 E0B4
-E78A92 E0B5
-E78A96 E0B6
-E78AA0 8B5D
-E78AA2 E0B7
-E78AA7 E0B8
-E78AAC 8CA2
-E78AAF 94C6
-E78AB2 E0BA
-E78AB6 8FF3
-E78AB9 E0B9
-E78B82 8BB6
-E78B83 E0BB
-E78B84 E0BD
-E78B86 E0BC
-E78B8E E0BE
-E78B90 8CCF
-E78B92 E0BF
-E78B97 8BE7
-E78B99 915F
-E78B9B 8D9D
-E78BA0 E0C1
-E78BA1 E0C2
-E78BA2 E0C0
-E78BA9 8EEB
-E78BAC 93C6
-E78BAD 8BB7
-E78BB7 E0C4
-E78BB8 924B
-E78BB9 E0C3
-E78BBC 9854
-E78BBD 9482
-E78C8A E0C7
-E78C96 E0C9
-E78C97 E0C6
-E78C9B 96D2
-E78C9C E0C8
-E78C9D E0CA
-E78C9F 97C2
-E78CA5 E0CE
-E78CA9 E0CD
-E78CAA 9296
-E78CAB 944C
-E78CAE 8CA3
-E78CAF E0CC
-E78CB4 E0CB
-E78CB6 9750
-E78CB7 9751
-E78CBE E0CF
-E78CBF 898E
-E78D84 8D96
-E78D85 8E82
-E78D8E E0D0
-E78D8F E0D1
-E78D97 E0D3
-E78DA3 8F62
-E78DA8 E0D5
-E78DAA E0D4
-E78DB0 E0D6
-E78DB2 8A6C
-E78DB5 E0D8
-E78DB8 E0D7
-E78DBA E0DA
-E78DBB E0D9
-E78E84 8CBA
-E78E87 97A6
-E78E89 8BCA
-E78E8B 89A4
-E78E96 8BE8
-E78EA9 8ADF
-E78EB2 97E6
-E78EB3 E0DC
-E78EBB E0DE
-E78F80 E0DF
-E78F82 89CF
-E78F88 E0DB
-E78F8A 8E58
-E78F8D 92BF
-E78F8E E0DD
-E78F9E E0E2
-E78FA0 8EEC
-E78FA5 E0E0
-E78FAA 8C5D
-E78FAD 94C7
-E78FAE E0E1
-E78FB1 E0FC
-E78FB8 E0E7
-E78FBE 8CBB
-E79083 8B85
-E79085 E0E4
-E79086 979D
-E79089 97AE
-E790A2 91F4
-E790A5 E0E6
-E790B2 E0E8
-E790B3 97D4
-E790B4 8BD5
-E790B5 94FA
-E790B6 9469
-E790BA E0E9
-E790BF E0EB
-E79181 E0EE
-E79195 E0EA
-E79199 E0ED
-E7919A 8CE8
-E7919B 896C
-E7919C E0EF
-E7919E 9090
-E7919F E0EC
-E791A0 97DA
-E791A3 E0F2
-E791A4 EAA2
-E791A9 E0F0
-E791AA E0F3
-E791AF E0E5
-E791B0 E0F1
-E791B3 8DBA
-E791B6 E0F4
-E791BE E0F5
-E79283 979E
-E7928B E0F6
-E7929E E0F7
-E792A2 E0E3
-E792A7 E0F8
-E792B0 8AC2
-E792BD 8EA3
-E7938A E0F9
-E7938F E0FA
-E79394 E0FB
-E7939C 895A
-E793A0 E140
-E793A2 955A
-E793A3 E141
-E793A6 8AA2
-E793A7 E142
-E793A9 E143
-E793AE E144
-E793B0 E146
-E793B1 E147
-E793B2 E145
-E793B6 9572
-E793B7 E149
-E793B8 E148
-E79483 E14B
-E79484 E14A
-E79485 E14C
-E7948C E14D
-E7948D E14F
-E7948E E14E
-E79491 8D99
-E79493 E151
-E79495 E150
-E79498 8AC3
-E7949A 9072
-E7949C 935B
-E7949E E152
-E7949F 90B6
-E794A3 8E59
-E794A5 8999
-E794A6 E153
-E794A8 9770
-E794AB 95E1
-E794AC E154
-E794B0 9363
-E794B1 9752
-E794B2 8D62
-E794B3 905C
-E794B7 926A
-E794B8 99B2
-E794BA 92AC
-E794BB 89E6
-E794BC E155
-E79584 E156
-E79586 E15B
-E79589 E159
-E7958A E158
-E7958B 9DC0
-E7958C 8A45
-E7958D E157
-E7958F 88D8
-E79591 94A8
-E79594 94C8
-E79599 97AF
-E7959A E15C
-E7959B E15A
-E7959C 927B
-E7959D 90A4
-E795A0 94A9
-E795A2 954C
-E795A4 E15E
-E795A5 97AA
-E795A6 8C6C
-E795A7 E15F
-E795A9 E15D
-E795AA 94D4
-E795AB E160
-E795AD E161
-E795B0 88D9
-E795B3 8FF4
-E795B4 E166
-E795B6 E163
-E795B7 93EB
-E795B8 E162
-E795BF 8B45
-E79682 E169
-E79686 E164
-E79687 E165
-E79689 E168
-E7968A E167
-E7968B 9544
-E7968E 9161
-E7968F 9160
-E79691 8B5E
-E79694 E16A
-E7969A E16B
-E7969D E16C
-E796A3 E16E
-E796A5 E16D
-E796AB 8975
-E796B1 E176
-E796B2 94E6
-E796B3 E170
-E796B5 E172
-E796B8 E174
-E796B9 905D
-E796BC E175
-E796BD E173
-E796BE 8EBE
-E79782 E16F
-E79783 E171
-E79785 9561
-E79787 8FC7
-E7978A E178
-E7978D E177
-E79792 E179
-E79794 8EA4
-E79795 8DAD
-E79798 9397
-E79799 E17A
-E7979B 92C9
-E7979E E17C
-E797A2 979F
-E797A3 E17B
-E797A9 9189
-E797B0 E182
-E797B2 E184
-E797B3 E185
-E797B4 9273
-E797BA E183
-E797BC E180
-E797BE E17D
-E797BF E17E
-E79881 E181
-E79889 E188
-E7988B E186
-E7988D E187
-E7989F E189
-E798A0 E18B
-E798A1 E18C
-E798A2 E18D
-E798A4 E18E
-E798A7 E18A
-E798B0 E190
-E798B4 E18F
-E798BB E191
-E79982 97C3
-E79986 E194
-E79987 E192
-E79988 E193
-E7998C 8AE0
-E79992 96FC
-E79996 95C8
-E79998 E196
-E7999C E195
-E799A1 E197
-E799A2 E198
-E799A7 E19C
-E799A8 E199
-E799A9 E19A
-E799AA E19B
-E799AC E19D
-E799B0 E19E
-E799B2 E19F
-E799B6 E1A0
-E799B8 E1A1
-E799BA 94AD
-E799BB 936F
-E799BC E1A2
-E799BD 9492
-E799BE 9553
-E79A80 E1A3
-E79A83 E1A4
-E79A84 9349
-E79A86 8A46
-E79A87 8D63
-E79A88 E1A5
-E79A8B E1A6
-E79A8E E1A7
-E79A90 8E48
-E79A93 E1A9
-E79A96 E1A8
-E79A99 E1AA
-E79A9A E1AB
-E79AAE 94E7
-E79AB0 E1AC
-E79AB4 E1AD
-E79AB7 EA89
-E79AB8 E1AE
-E79AB9 E1AF
-E79ABA E1B0
-E79ABF 8E4D
-E79B82 E1B1
-E79B83 9475
-E79B86 967E
-E79B88 896D
-E79B8A 8976
-E79B8D E1B2
-E79B92 E1B4
-E79B96 E1B3
-E79B97 9390
-E79B9B 90B7
-E79B9C 9F58
-E79B9E E1B5
-E79B9F 96BF
-E79BA1 E1B6
-E79BA3 8AC4
-E79BA4 94D5
-E79BA5 E1B7
-E79BA7 E1B8
-E79BAA E1B9
-E79BAE 96DA
-E79BB2 96D3
-E79BB4 92BC
-E79BB8 918A
-E79BBB E1BB
-E79BBE 8F82
-E79C81 8FC8
-E79C84 E1BE
-E79C87 E1BD
-E79C88 E1BC
-E79C89 94FB
-E79C8B 8AC5
-E79C8C 8CA7
-E79C9B E1C4
-E79C9E E1C1
-E79C9F 905E
-E79CA0 96B0
-E79CA4 E1C0
-E79CA5 E1C2
-E79CA6 E1C3
-E79CA9 E1BF
-E79CB7 E1C5
-E79CB8 E1C6
-E79CBA 92AD
-E79CBC 8AE1
-E79D80 9285
-E79D87 E1C7
-E79D9A E1C8
-E79D9B E1CB
-E79DA1 9087
-E79DA3 93C2
-E79DA5 E1CC
-E79DA6 9672
-E79DA8 E1C9
-E79DAB E1CA
-E79DB9 E1CF
-E79DBE E1CE
-E79DBF E1CD
-E79E8B E1D1
-E79E8E E1D0
-E79E91 E1D2
-E79E9E E1D4
-E79EA0 E1D3
-E79EA5 95CB
-E79EAC 8F75
-E79EAD 97C4
-E79EB0 E1D5
-E79EB3 93B5
-E79EB6 E1D6
-E79EB9 E1D7
-E79EBB E1DB
-E79EBC E1D9
-E79EBD E1DA
-E79EBF E1D8
-E79F87 E1DC
-E79F8D E1DD
-E79F97 E1DE
-E79F9A E1DF
-E79F9B 96B5
-E79F9C E1E0
-E79FA2 96EE
-E79FA3 E1E1
-E79FA5 926D
-E79FA7 948A
-E79FA9 8BE9
-E79FAD 925A
-E79FAE E1E2
-E79FAF 8BB8
-E79FB3 90CE
-E79FBC E1E3
-E7A082 8DBB
-E7A08C E1E4
-E7A092 E1E5
-E7A094 8CA4
-E7A095 8DD3
-E7A0A0 E1E7
-E7A0A5 9375
-E7A0A6 8DD4
-E7A0A7 8B6D
-E7A0B2 9643
-E7A0B4 946A
-E7A0BA 9376
-E7A0BF 8D7B
-E7A185 E1E9
-E7A19D 8FC9
-E7A1AB 97B0
-E7A1AC 8D64
-E7A1AF 8CA5
-E7A1B2 94A1
-E7A1B4 E1EB
-E7A1BC E1ED
-E7A281 8CE9
-E7A286 E1EC
-E7A287 92F4
-E7A28C E1EF
-E7A28D 8A56
-E7A28E E1EA
-E7A291 94E8
-E7A293 894F
-E7A295 8DEA
-E7A297 9871
-E7A29A E1EE
-E7A2A3 E1F0
-E7A2A7 95C9
-E7A2A9 90D7
-E7A2AA E1F2
-E7A2AF E1F3
-E7A2B5 E1F1
-E7A2BA 8A6D
-E7A2BC E1F9
-E7A2BE E1F8
-E7A381 8EA5
-E7A385 E1FA
-E7A386 E1F5
-E7A38A E1FB
-E7A38B E1F6
-E7A390 94D6
-E7A391 E1F4
-E7A394 E1F7
-E7A39A E241
-E7A3A7 E240
-E7A3A8 9681
-E7A3AC E1FC
-E7A3AF 88E9
-E7A3B4 E243
-E7A3BD E242
-E7A481 8FCA
-E7A487 E244
-E7A48E 9162
-E7A491 E246
-E7A492 E245
-E7A499 E247
-E7A4A6 E1E6
-E7A4AA E1E8
-E7A4AB E249
-E7A4AC E248
-E7A4BA 8EA6
-E7A4BC 97E7
-E7A4BE 8ED0
-E7A580 E24A
-E7A581 8C56
-E7A587 8B5F
-E7A588 8B46
-E7A589 8E83
-E7A590 9753
-E7A593 E250
-E7A595 E24F
-E7A596 9163
-E7A597 E24C
-E7A59A E24E
-E7A59D 8F6A
-E7A59E 905F
-E7A59F E24D
-E7A5A0 E24B
-E7A5A2 9449
-E7A5A5 8FCB
-E7A5A8 955B
-E7A5AD 8DD5
-E7A5B7 9398
-E7A5BA E251
-E7A5BF E252
-E7A680 E268
-E7A681 8BD6
-E7A684 985C
-E7A685 9154
-E7A68A E253
-E7A68D 89D0
-E7A68E 92F5
-E7A68F 959F
-E7A69D E254
-E7A6A6 8B9A
-E7A6A7 E255
-E7A6AA E257
-E7A6AE E258
-E7A6B0 9448
-E7A6B3 E259
-E7A6B9 E25A
-E7A6BA E25B
-E7A6BD 8BD7
-E7A6BE 89D1
-E7A6BF 93C3
-E7A780 8F47
-E7A781 8E84
-E7A789 E25C
-E7A78B 8F48
-E7A791 89C8
-E7A792 9562
-E7A795 E25D
-E7A798 94E9
-E7A79F 9164
-E7A7A1 E260
-E7A7A3 E261
-E7A7A4 9489
-E7A7A6 9060
-E7A7A7 E25E
-E7A7A9 9281
-E7A7AC E25F
-E7A7B0 8FCC
-E7A7BB 88DA
-E7A880 8B48
-E7A888 E262
-E7A88B 92F6
-E7A88D E263
-E7A88E 90C5
-E7A894 96AB
-E7A897 9542
-E7A898 E264
-E7A899 E265
-E7A89A 9274
-E7A89C 97C5
-E7A89F E267
-E7A8A0 E266
-E7A8AE 8EED
-E7A8B1 E269
-E7A8B2 88EE
-E7A8B7 E26C
-E7A8BB E26A
-E7A8BC 89D2
-E7A8BD 8C6D
-E7A8BE E26B
-E7A8BF 8D65
-E7A980 8D92
-E7A982 95E4
-E7A983 E26D
-E7A986 9673
-E7A989 E26F
-E7A98D 90CF
-E7A98E 896E
-E7A98F 89B8
-E7A990 88AA
-E7A997 E26E
-E7A9A1 E270
-E7A9A2 E271
-E7A9A3 8FF5
-E7A9A9 E272
-E7A9AB 8A6E
-E7A9B0 E274
-E7A9B4 8C8A
-E7A9B6 8B86
-E7A9B9 E275
-E7A9BA 8BF3
-E7A9BD E276
-E7A9BF 90FA
-E7AA81 93CB
-E7AA83 90DE
-E7AA84 8DF3
-E7AA88 E277
-E7AA92 9282
-E7AA93 918B
-E7AA95 E279
-E7AA96 E27B
-E7AA97 E278
-E7AA98 E27A
-E7AA9F 8C41
-E7AAA9 E27C
-E7AAAA 8C45
-E7AAAE 8B87
-E7AAAF 9771
-E7AAB0 E27E
-E7AAB6 E280
-E7AABA 894D
-E7AABF E283
-E7AB83 8A96
-E7AB84 E282
-E7AB85 E281
-E7AB87 E285
-E7AB88 E27D
-E7AB8A E286
-E7AB8B 97A7
-E7AB8D E287
-E7AB8F E288
-E7AB92 9AF2
-E7AB93 E28A
-E7AB95 E289
-E7AB99 E28B
-E7AB9A E28C
-E7AB9C 97B3
-E7AB9D E28D
-E7AB9F E8ED
-E7ABA0 8FCD
-E7ABA1 E28E
-E7ABA2 E28F
-E7ABA3 8F76
-E7ABA5 93B6
-E7ABA6 E290
-E7ABAA 9247
-E7ABAD E291
-E7ABAF 925B
-E7ABB0 E292
-E7ABB6 8BA3
-E7ABB8 995E
-E7ABB9 927C
-E7ABBA 8EB1
-E7ABBF 8AC6
-E7AC82 E293
-E7AC84 E2A0
-E7AC86 E296
-E7AC88 8B88
-E7AC8A E295
-E7AC8B E2A2
-E7AC8F E294
-E7AC91 8FCE
-E7AC98 E298
-E7AC99 E299
-E7AC9B 934A
-E7AC9E E29A
-E7ACA0 8A7D
-E7ACA5 9079
-E7ACA6 9584
-E7ACA8 E29C
-E7ACAC 91E6
-E7ACB3 E297
-E7ACB5 E29B
-E7ACB6 E29D
-E7ACB9 8DF9
-E7AD85 E2A4
-E7AD86 954D
-E7AD88 94A4
-E7AD89 9399
-E7AD8B 8BD8
-E7AD8C E2A3
-E7AD8D E2A1
-E7AD8F 94B3
-E7AD90 E29E
-E7AD91 927D
-E7AD92 939B
-E7AD94 939A
-E7AD96 8DF4
-E7AD9D E2B6
-E7ADA5 E2A6
-E7ADA7 E2A8
-E7ADAC E2AB
-E7ADAE E2AC
-E7ADB0 E2A9
-E7ADB1 E2AA
-E7ADB4 E2A7
-E7ADB5 E2A5
-E7ADBA E29F
-E7AE86 95CD
-E7AE87 89D3
-E7AE8B E2B3
-E7AE8D E2B0
-E7AE8F E2B5
-E7AE92 E2B4
-E7AE94 9493
-E7AE95 96A5
-E7AE97 8E5A
-E7AE98 E2AE
-E7AE99 E2B7
-E7AE9A E2B2
-E7AE9C E2B1
-E7AE9D E2AD
-E7AE9F E2AF
-E7AEA1 8AC7
-E7AEAA 925C
-E7AEAD 90FB
-E7AEB1 94A0
-E7AEB4 E2BC
-E7AEB8 94A2
-E7AF80 90DF
-E7AF81 E2B9
-E7AF84 94CD
-E7AF86 E2BD
-E7AF87 95D1
-E7AF89 927A
-E7AF8B E2B8
-E7AF8C E2BA
-E7AF8F E2BB
-E7AF9D E2BE
-E7AFA0 8EC2
-E7AFA4 93C4
-E7AFA5 E2C3
-E7AFA6 E2C2
-E7AFA9 E2BF
-E7AFAD 9855
-E7AFB3 E2C8
-E7AFB6 E2CC
-E7AFB7 E2C9
-E7B080 E2C5
-E7B087 E2C6
-E7B08D E2CB
-E7B091 E2C0
-E7B092 99D3
-E7B093 E2C7
-E7B094 E2C1
-E7B097 E2CA
-E7B09F E2D0
-E7B0A1 8AC8
-E7B0A3 E2CD
-E7B0A7 E2CE
-E7B0AA E2CF
-E7B0AB E2D2
-E7B0B7 E2D1
-E7B0B8 94F4
-E7B0BD E2D3
-E7B0BE 97FA
-E7B0BF 95EB
-E7B180 E2D8
-E7B183 E2D5
-E7B18C E2D4
-E7B18D 90D0
-E7B18F E2D7
-E7B190 E2D9
-E7B194 E2D6
-E7B196 E2DD
-E7B198 E2DA
-E7B19F E2DB
-E7B1A0 E2C4
-E7B1A4 E2DC
-E7B1A5 E2DE
-E7B1AC E2DF
-E7B1B3 95C4
-E7B1B5 E2E0
-E7B1BE 96E0
-E7B281 8BCC
-E7B282 8C48
-E7B283 E2E1
-E7B289 95B2
-E7B28B 9088
-E7B28D 96AE
-E7B290 E2E2
-E7B292 97B1
-E7B295 9494
-E7B297 9165
-E7B298 9453
-E7B29B 8F6C
-E7B29F 88BE
-E7B2A1 E2E7
-E7B2A2 E2E5
-E7B2A4 E2E3
-E7B2A5 8A9F
-E7B2A7 8FCF
-E7B2A8 E2E8
-E7B2AB E2E6
-E7B2AD E2E4
-E7B2AE E2EC
-E7B2B1 E2EB
-E7B2B2 E2EA
-E7B2B3 E2E9
-E7B2B9 E2ED
-E7B2BD E2EE
-E7B2BE 90B8
-E7B380 E2EF
-E7B382 E2F1
-E7B385 E2F0
-E7B38A 8CD0
-E7B38E 9157
-E7B392 E2F3
-E7B396 939C
-E7B398 E2F2
-E7B39C E2F4
-E7B39E 95B3
-E7B39F 918C
-E7B3A0 8D66
-E7B3A2 E2F5
-E7B3A7 97C6
-E7B3AF E2F7
-E7B3B2 E2F8
-E7B3B4 E2F9
-E7B3B6 E2FA
-E7B3B8 8E85
-E7B3BA E2FB
-E7B3BB 8C6E
-E7B3BE 8B8A
-E7B480 8B49
-E7B482 E340
-E7B484 96F1
-E7B485 8D67
-E7B486 E2FC
-E7B48A E343
-E7B48B 96E4
-E7B48D 945B
-E7B490 9552
-E7B494 8F83
-E7B495 E342
-E7B497 8ED1
-E7B498 8D68
-E7B499 8E86
-E7B49A 8B89
-E7B49B 95B4
-E7B49C E341
-E7B4A0 9166
-E7B4A1 9661
-E7B4A2 8DF5
-E7B4AB 8E87
-E7B4AC 92DB
-E7B4AE E346
-E7B4AF 97DD
-E7B4B0 8DD7
-E7B4B2 E347
-E7B4B3 9061
-E7B4B5 E349
-E7B4B9 8FD0
-E7B4BA 8DAE
-E7B4BF E348
-E7B582 8F49
-E7B583 8CBC
-E7B584 9167
-E7B585 E344
-E7B586 E34A
-E7B58B E345
-E7B58C 8C6F
-E7B58E E34D
-E7B58F E351
-E7B590 8C8B
-E7B596 E34C
-E7B59B E355
-E7B59E 8D69
-E7B5A1 978D
-E7B5A2 88BA
-E7B5A3 E352
-E7B5A6 8B8B
-E7B5A8 E34F
-E7B5AE E350
-E7B5B1 939D
-E7B5B2 E34E
-E7B5B3 E34B
-E7B5B5 8A47
-E7B5B6 90E2
-E7B5B9 8CA6
-E7B5BD E357
-E7B689 E354
-E7B68F E356
-E7B693 E353
-E7B699 8C70
-E7B69A 91B1
-E7B69B E358
-E7B69C 918E
-E7B69F E365
-E7B6A2 E361
-E7B6A3 E35B
-E7B6AB E35F
-E7B6AC 8EF8
-E7B6AD 88DB
-E7B6AE E35A
-E7B6AF E362
-E7B6B0 E366
-E7B6B1 8D6A
-E7B6B2 96D4
-E7B6B4 92D4
-E7B6B5 E35C
-E7B6B8 E364
-E7B6BA E359
-E7B6BB 925D
-E7B6BD E35E
-E7B6BE 88BB
-E7B6BF 96C8
-E7B787 E35D
-E7B78A 8BD9
-E7B78B 94EA
-E7B78F 918D
-E7B791 97CE
-E7B792 8F8F
-E7B795 E38E
-E7B798 E367
-E7B79A 90FC
-E7B79C E363
-E7B79D E368
-E7B79E E36A
-E7B7A0 92F7
-E7B7A1 E36D
-E7B7A4 E369
-E7B7A8 95D2
-E7B7A9 8AC9
-E7B7AC 96C9
-E7B7AF 88DC
-E7B7B2 E36C
-E7B7B4 97FB
-E7B7BB E36B
-E7B881 898F
-E7B884 93EA
-E7B885 E36E
-E7B889 E375
-E7B88A E36F
-E7B88B E376
-E7B892 E372
-E7B89B 949B
-E7B89E 8EC8
-E7B89F E374
-E7B8A1 E371
-E7B8A2 E377
-E7B8A3 E370
-E7B8A6 8F63
-E7B8AB 9644
-E7B8AE 8F6B
-E7B8B1 E373
-E7B8B2 E380
-E7B8B5 E37B
-E7B8B7 E37E
-E7B8B9 E37C
-E7B8BA E381
-E7B8BB E37A
-E7B8BD E360
-E7B8BE 90D1
-E7B981 94C9
-E7B983 E37D
-E7B986 E378
-E7B98A 9140
-E7B98B 8C71
-E7B98D 8F4A
-E7B994 9044
-E7B995 9155
-E7B996 E384
-E7B999 E386
-E7B99A E387
-E7B99D E383
-E7B99E E385
-E7B9A6 E379
-E7B9A7 E382
-E7B9A9 E38A
-E7B9AA E389
-E7B9AD 969A
-E7B9B0 8C4A
-E7B9B9 E388
-E7B9BB E38C
-E7B9BC E38B
-E7B9BD E38F
-E7B9BF E391
-E7BA82 8E5B
-E7BA83 E38D
-E7BA88 E392
-E7BA89 E393
-E7BA8C E394
-E7BA8E E39A
-E7BA8F 935A
-E7BA90 E396
-E7BA92 E395
-E7BA93 E397
-E7BA94 E398
-E7BA96 E399
-E7BA9B E39B
-E7BA9C E39C
-E7BCB6 8ACA
-E7BCB8 E39D
-E7BCBA E39E
-E7BD85 E39F
-E7BD8C E3A0
-E7BD8D E3A1
-E7BD8E E3A2
-E7BD90 E3A3
-E7BD91 E3A4
-E7BD94 E3A6
-E7BD95 E3A5
-E7BD98 E3A7
-E7BD9F E3A8
-E7BDA0 E3A9
-E7BDA7 E3AC
-E7BDA8 E3AA
-E7BDA9 E3AB
-E7BDAA 8DDF
-E7BDAB 8C72
-E7BDAE 9275
-E7BDB0 94B1
-E7BDB2 8F90
-E7BDB5 946C
-E7BDB7 94EB
-E7BDB8 E3AD
-E7BDB9 9CEB
-E7BE82 E3AE
-E7BE83 E3B0
-E7BE85 9785
-E7BE86 E3AF
-E7BE87 E3B2
-E7BE88 E3B1
-E7BE8A 9772
-E7BE8C E3B3
-E7BE8E 94FC
-E7BE94 E3B4
-E7BE9A E3B7
-E7BE9D E3B6
-E7BE9E E3B5
-E7BEA3 E3B8
-E7BEA4 8C51
-E7BEA8 9141
-E7BEA9 8B60
-E7BEAE E3BC
-E7BEAF E3B9
-E7BEB2 E3BA
-E7BEB6 E3BD
-E7BEB8 E3BE
-E7BEB9 E3BB
-E7BEBD 8948
-E7BF81 89A5
-E7BF85 E3C0
-E7BF86 E3C1
-E7BF8A E3C2
-E7BF8C 9782
-E7BF92 8F4B
-E7BF94 E3C4
-E7BF95 E3C3
-E7BFA0 9089
-E7BFA1 E3C5
-E7BFA6 E3C6
-E7BFA9 E3C7
-E7BFAB 8AE3
-E7BFB0 8ACB
-E7BFB3 E3C8
-E7BFB9 E3C9
-E7BFBB 967C
-E7BFBC 9783
-E88080 9773
-E88081 9856
-E88083 8D6C
-E88084 E3CC
-E88085 8ED2
-E88086 E3CB
-E8808B E3CD
-E8808C 8EA7
-E88090 91CF
-E88092 E3CE
-E88095 8D6B
-E88097 96D5
-E88098 E3CF
-E88099 E3D0
-E8809C E3D1
-E880A1 E3D2
-E880A8 E3D3
-E880B3 8EA8
-E880B6 96EB
-E880BB E3D5
-E880BD 925E
-E880BF E3D4
-E88186 E3D7
-E8818A E3D6
-E88192 E3D8
-E88196 90B9
-E88198 E3D9
-E8819A E3DA
-E8819E 95B7
-E8819F E3DB
-E881A1 918F
-E881A2 E3DC
-E881A8 E3DD
-E881AF 97FC
-E881B0 E3E0
-E881B2 E3DF
-E881B3 E3DE
-E881B4 92AE
-E881B6 E3E1
-E881B7 9045
-E881B9 E3E2
-E881BD E3E3
-E881BE 9857
-E881BF E3E4
-E88284 E3E5
-E88285 E3E7
-E88286 E3E6
-E88287 94A3
-E88289 93F7
-E8828B 985D
-E8828C 94A7
-E88293 E3E9
-E88296 8FD1
-E88298 9549
-E8829A E3EA
-E8829B E3E8
-E8829D 8ACC
-E882A1 8CD2
-E882A2 8E88
-E882A5 94EC
-E882A9 8CA8
-E882AA 9662
-E882AC E3ED
-E882AD E3EB
-E882AF 8D6D
-E882B1 8D6E
-E882B2 88E7
-E882B4 8DE6
-E882BA 9478
-E88383 88DD
-E88384 E3F2
-E88386 925F
-E8838C 9477
-E8838E 91D9
-E88396 E3F4
-E88399 E3F0
-E8839A E3F3
-E8839B E3EE
-E8839D E3F1
-E8839E 9645
-E883A1 8CD3
-E883A4 88FB
-E883A5 E3EF
-E883AF E3F6
-E883B1 E3F7
-E883B4 93B7
-E883B8 8BB9
-E883BC E445
-E883BD 945C
-E88482 8E89
-E88485 8BBA
-E88486 90C6
-E88487 9865
-E88488 96AC
-E88489 E3F5
-E8848A 90D2
-E8849A 8B72
-E8849B E3F8
-E884A3 E3FA
-E884A9 E3F9
-E884AF E3FB
-E884B1 9245
-E884B3 945D
-E884B9 92AF
-E884BE E442
-E88586 E441
-E8858B E3FC
-E8858E 9074
-E88590 9585
-E88591 E444
-E88593 E443
-E88594 8D6F
-E88595 9872
-E8859F E454
-E885A5 E448
-E885A6 E449
-E885AB 8EEE
-E885AE E447
-E885B0 8D98
-E885B1 E446
-E885B4 E44A
-E885B8 92B0
-E885B9 95A0
-E885BA 9142
-E885BF 91DA
-E88680 E44E
-E88682 E44F
-E88683 E44B
-E88688 E44C
-E8868A E44D
-E8868F 8D70
-E88693 E455
-E88695 E451
-E8869A 9586
-E8869C 968C
-E8869D 9547
-E886A0 E450
-E886A3 E453
-E886A4 E452
-E886A8 9663
-E886A9 E456
-E886B0 E457
-E886B3 9156
-E886B5 E458
-E886B8 E45A
-E886BA E45E
-E886BD E45B
-E886BE E459
-E886BF 945E
-E88780 E45C
-E88782 E45D
-E88786 89B0
-E88788 E464
-E88789 E45F
-E8878D E460
-E88791 E461
-E88793 919F
-E88798 E463
-E88799 E462
-E8879A E465
-E8879F E466
-E887A0 E467
-E887A3 9062
-E887A5 89E7
-E887A7 E468
-E887A8 97D5
-E887AA 8EA9
-E887AD 8F4C
-E887B3 8E8A
-E887B4 9276
-E887BA E469
-E887BB E46A
-E887BC 8950
-E887BE E46B
-E88881 E46C
-E88882 E46D
-E88885 E46E
-E88887 E46F
-E88888 8BBB
-E88889 9DA8
-E8888A E470
-E8888C 90E3
-E8888D E471
-E8888E 8EC9
-E88890 E472
-E88892 98AE
-E88896 E473
-E88897 95DC
-E88898 8ADA
-E8889B 9143
-E8889C 8F77
-E8889E 9591
-E8889F 8F4D
-E888A9 E474
-E888AA 8D71
-E888AB E475
-E888AC 94CA
-E888AE E484
-E888B3 E477
-E888B5 91C7
-E888B6 9495
-E888B7 8CBD
-E888B8 E476
-E888B9 9144
-E88980 E478
-E88987 92F8
-E88998 E47A
-E88999 E479
-E8899A E47C
-E8899D E47B
-E8899F E47D
-E889A2 E480
-E889A4 E47E
-E889A6 8ACD
-E889A8 E481
-E889AA E482
-E889AB E483
-E889AE 8DAF
-E889AF 97C7
-E889B1 E485
-E889B2 9046
-E889B6 8990
-E889B7 E486
-E889B8 E487
-E889BE E488
-E88A8B 88F0
-E88A8D E489
-E88A92 E48A
-E88A99 9587
-E88A9D 8EC5
-E88A9F E48C
-E88AA5 8A48
-E88AA6 88B0
-E88AAB E48B
-E88AAC E48E
-E88AAD 946D
-E88AAF 9063
-E88AB1 89D4
-E88AB3 9646
-E88AB8 8C7C
-E88AB9 8BDA
-E88ABB E48D
-E88ABD 89E8
-E88B85 8AA1
-E88B91 8991
-E88B92 E492
-E88B93 97E8
-E88B94 91DB
-E88B97 9563
-E88B99 E49E
-E88B9B 89D5
-E88B9C E49C
-E88B9E E49A
-E88B9F E491
-E88BA1 E48F
-E88BA3 E490
-E88BA5 8EE1
-E88BA6 8BEA
-E88BA7 9297
-E88BAB 93CF
-E88BB1 8970
-E88BB3 E494
-E88BB4 E493
-E88BB9 E499
-E88BBA E495
-E88BBB E498
-E88C82 96CE
-E88C83 E497
-E88C84 89D6
-E88C85 8A9D
-E88C86 E49B
-E88C89 E49D
-E88C8E 8C73
-E88C96 E4A1
-E88C97 E4AA
-E88C98 E4AB
-E88C9C 88A9
-E88CA3 E4B2
-E88CA8 88EF
-E88CAB E4A9
-E88CAF E4A8
-E88CB1 E4A3
-E88CB2 E4A2
-E88CB4 E4A0
-E88CB5 E49F
-E88CB6 9283
-E88CB8 91F9
-E88CB9 E4A5
-E88D80 E4A4
-E88D85 E4A7
-E88D89 9190
-E88D8A 8C74
-E88D8F 8960
-E88D90 E4A6
-E88D92 8D72
-E88D98 9191
-E88DB3 E4B8
-E88DB5 E4B9
-E88DB7 89D7
-E88DBB 89AC
-E88DBC E4B6
-E88E85 E4AC
-E88E87 E4B4
-E88E89 E4BB
-E88E8A E4B5
-E88E8E E4B3
-E88E93 E496
-E88E96 E4B1
-E88E9A E4AD
-E88E9E 8ACE
-E88E9F E4AF
-E88EA0 E4BA
-E88EA2 E4B0
-E88EA8 E4BC
-E88EAA E4AE
-E88EAB 949C
-E88EB1 9789
-E88EB5 E4B7
-E88EBD E4CD
-E88F81 E4C5
-E88F85 909B
-E88F8A 8B65
-E88F8C 8BDB
-E88F8E E4C0
-E88F93 89D9
-E88F96 8FD2
-E88F98 E4C3
-E88F9C 8DD8
-E88F9F 9370
-E88FA0 E4C8
-E88FA9 95EC
-E88FAB E4BF
-E88FAF 89D8
-E88FB0 8CD4
-E88FB1 9548
-E88FB2 E4C9
-E88FB4 E4BD
-E88FB7 E4C6
-E88FBB E4D0
-E88FBD E4C1
-E89083 E4C2
-E89084 93B8
-E89087 E4C7
-E8908B E4C4
-E8908C 9647
-E8908D E4CA
-E8908E 88DE
-E89093 E4BE
-E890A0 E4CC
-E890A2 E4CB
-E890A9 948B
-E890AA E4D2
-E890AC E4DD
-E890B1 8A9E
-E890B5 E4E0
-E890B8 E4CE
-E890BC E4D3
-E890BD 978E
-E89186 E4DC
-E89189 9774
-E8918E 97A8
-E89197 9298
-E8919B 8A8B
-E891A1 9592
-E891A2 E4E2
-E891A3 939F
-E891A6 88AF
-E891A9 E4DB
-E891AB E4D7
-E891AC 9192
-E891AD E4D1
-E891AE E4D9
-E891AF E4DE
-E891B1 944B
-E891B5 88A8
-E891B7 E4D6
-E891B9 E4DF
-E891BA 9598
-E89282 E4DA
-E89284 E4D5
-E8928B 8FD3
-E89290 8F4E
-E89294 8EAA
-E89299 96D6
-E8929C 9566
-E8929F E4E5
-E892A1 E4EE
-E892AD E4D8
-E892B2 8A97
-E892B8 8FF6
-E892B9 E4E3
-E892BB E4E8
-E892BC 9193
-E892BF E4E4
-E89381 E4EB
-E89384 927E
-E89386 E4EC
-E89389 9775
-E8938A E4E1
-E8938B 8A57
-E8938D E4E7
-E89390 E4EA
-E89391 96AA
-E89396 E4ED
-E89399 E4E6
-E8939A E4E9
-E893AC 9648
-E893AE 9840
-E893B4 E4F1
-E893BC E4F8
-E893BF E4F0
-E89480 8EC1
-E89486 E4CF
-E89491 95CC
-E89493 96A0
-E89494 E4F7
-E89495 E4F6
-E89497 E4F2
-E89498 E4F3
-E8949A 8955
-E8949F E4F5
-E894A1 E4EF
-E894A6 92D3
-E894AC E4F4
-E894AD 88FC
-E894B5 91A0
-E894BD 95C1
-E89580 E4F9
-E89581 E540
-E89583 94D7
-E89588 E4FC
-E89589 8FD4
-E8958A 8EC7
-E8958B E542
-E8958E 8BBC
-E89595 E543
-E89597 9599
-E89598 E4FB
-E8959A E4D4
-E895A3 E4FA
-E895A8 986E
-E895A9 93A0
-E895AA 9593
-E895AD E54A
-E895B7 E550
-E895BE E551
-E89680 E544
-E89684 9496
-E89687 E54E
-E89688 E546
-E8968A E548
-E89690 E552
-E89691 E547
-E89694 E54B
-E89697 8992
-E89699 93E3
-E8969B E54C
-E8969C E54F
-E896A4 E545
-E896A6 9145
-E896A8 E549
-E896A9 8E46
-E896AA 9064
-E896AB 8C4F
-E896AC 96F2
-E896AE 96F7
-E896AF 8F92
-E896B9 E556
-E896BA E554
-E89781 986D
-E89789 E553
-E8978D 9795
-E8978F E555
-E89790 E557
-E89795 E558
-E8979C E55B
-E8979D E559
-E897A4 93A1
-E897A5 E55A
-E897A9 94CB
-E897AA E54D
-E897B7 8F93
-E897B9 E55C
-E897BA E561
-E897BB 9194
-E897BE E560
-E89882 E541
-E89886 E562
-E89887 9168
-E8988A E55D
-E8988B E55F
-E89893 E55E
-E89896 9F50
-E89897 9F41
-E8989A E564
-E898A2 E563
-E898AD 9796
-E898AF E1BA
-E898B0 E565
-E898BF E566
-E8998D E567
-E8998E 8CD5
-E89990 8B73
-E89994 E569
-E89995 997C
-E8999A 8B95
-E8999C 97B8
-E8999E 8BF1
-E8999F E56A
-E899A7 E56B
-E899AB 928E
-E899B1 E56C
-E899B9 93F8
-E899BB 88B8
-E89A8A 89E1
-E89A8B E571
-E89A8C E572
-E89A93 E56D
-E89A95 8E5C
-E89AA3 E56E
-E89AA4 9461
-E89AA9 E56F
-E89AAA E570
-E89AAB E57A
-E89AAF E574
-E89AB0 E577
-E89AB6 E573
-E89B84 E575
-E89B86 E576
-E89B87 8ED6
-E89B89 E578
-E89B8B 9260
-E89B8D 8C75
-E89B8E 8A61
-E89B94 E57B
-E89B99 8A5E
-E89B9B E581
-E89B9E E57C
-E89B9F E580
-E89BA4 94B8
-E89BA9 E57D
-E89BAC E57E
-E89BAD 9567
-E89BAE 94D8
-E89BAF E582
-E89BB8 91FB
-E89BB9 E58C
-E89BBB E588
-E89BBE 89E9
-E89C80 E586
-E89C82 9649
-E89C83 E587
-E89C86 E584
-E89C88 E585
-E89C89 E58A
-E89C8A E58D
-E89C8D E58B
-E89C91 E589
-E89C92 E583
-E89C98 9277
-E89C9A E594
-E89C9C 96A8
-E89CA5 E592
-E89CA9 E593
-E89CB4 E58E
-E89CB7 E590
-E89CBB E591
-E89CBF E58F
-E89D89 90E4
-E89D8B 9858
-E89D8C E598
-E89D8E E599
-E89D93 E59F
-E89D95 9049
-E89D97 E59B
-E89D99 E59E
-E89D9F E596
-E89DA0 E595
-E89DA3 E5A0
-E89DA6 89DA
-E89DA8 E59C
-E89DAA E5A1
-E89DAE E59D
-E89DB4 E59A
-E89DB6 92B1
-E89DB8 E597
-E89DBF 9488
-E89E82 E5A5
-E89E8D 975A
-E89E9F E5A4
-E89EA2 E5A3
-E89EAB E5AC
-E89EAF E5A6
-E89EB3 E5AE
-E89EBA 9786
-E89EBB E5B1
-E89EBD E5A8
-E89F80 E5A9
-E89F84 E5AD
-E89F86 E5B0
-E89F87 E5AF
-E89F8B E5A7
-E89F90 E5AA
-E89F92 E5BB
-E89FA0 E5B4
-E89FAF E5B2
-E89FB2 E5B3
-E89FB6 E5B8
-E89FB7 E5B9
-E89FB9 8A49
-E89FBB 8B61
-E89FBE E5B7
-E8A085 E5A2
-E8A08D E5B6
-E8A08E E5BA
-E8A08F E5B5
-E8A091 E5BC
-E8A095 E5BE
-E8A096 E5BD
-E8A0A1 E5C0
-E8A0A2 E5BF
-E8A0A3 E579
-E8A0A7 E5C4
-E8A0B1 E5C1
-E8A0B6 E5C2
-E8A0B9 E5C3
-E8A0BB E5C5
-E8A180 8C8C
-E8A182 E5C7
-E8A184 E5C6
-E8A186 8F4F
-E8A18C 8D73
-E8A18D 9FA5
-E8A192 E5C8
-E8A193 8F70
-E8A197 8A58
-E8A199 E5C9
-E8A19B 8971
-E8A19D 8FD5
-E8A19E E5CA
-E8A1A1 8D74
-E8A1A2 E5CB
-E8A1A3 88DF
-E8A1A8 955C
-E8A1AB E5CC
-E8A1B0 908A
-E8A1B2 E5D3
-E8A1B5 E5D0
-E8A1B7 928F
-E8A1BD E5D1
-E8A1BE E5CE
-E8A1BF 8BDC
-E8A281 E5CD
-E8A282 E5D4
-E8A288 8C55
-E8A28B 91DC
-E8A28D E5DA
-E8A292 E5D6
-E8A296 91B3
-E8A297 E5D5
-E8A299 E5D8
-E8A29E E5CF
-E8A2A2 E5D9
-E8A2A4 E5DB
-E8A2AB 94ED
-E8A2AE E5D7
-E8A2B0 E5DC
-E8A2B1 E5DE
-E8A2B4 8CD1
-E8A2B5 E5D2
-E8A2B7 88BF
-E8A2BF E5DD
-E8A381 8DD9
-E8A382 97F4
-E8A383 E5DF
-E8A384 E5E0
-E8A385 9195
-E8A38F 97A0
-E8A394 E5E1
-E8A395 9754
-E8A398 E5E2
-E8A399 E5E3
-E8A39C 95E2
-E8A39D E5E4
-E8A39F 8DBE
-E8A3A1 97A1
-E8A3A8 E5E9
-E8A3B2 E5EA
-E8A3B3 8FD6
-E8A3B4 E5E8
-E8A3B8 9787
-E8A3B9 E5E5
-E8A3BC E5E7
-E8A3BD 90BB
-E8A3BE 909E
-E8A482 E5E6
-E8A484 E5EB
-E8A487 95A1
-E8A48A E5ED
-E8A48C E5EC
-E8A490 8A8C
-E8A492 964A
-E8A493 E5EE
-E8A49D E5FA
-E8A49E E5F0
-E8A4A5 E5F1
-E8A4AA E5F2
-E8A4AB E5F3
-E8A4B6 E5F7
-E8A4B8 E5F8
-E8A4BB E5F6
-E8A581 E5F4
-E8A583 E5EF
-E8A584 E5F5
-E8A58C E5F9
-E8A58D E8B5
-E8A596 89A6
-E8A59E E5FC
-E8A59F 8BDD
-E8A5A0 E5FB
-E8A5A4 E641
-E8A5A6 E640
-E8A5AA E643
-E8A5AD E642
-E8A5AF E644
-E8A5B2 8F50
-E8A5B4 E645
-E8A5B7 E646
-E8A5BE E647
-E8A5BF 90BC
-E8A681 9776
-E8A683 E648
-E8A686 95A2
-E8A687 9465
-E8A688 E649
-E8A68A E64A
-E8A68B 8CA9
-E8A68F 8B4B
-E8A693 E64B
-E8A696 8E8B
-E8A697 9460
-E8A698 E64C
-E8A69A 8A6F
-E8A6A1 E64D
-E8A6A6 E64F
-E8A6A7 9797
-E8A6A9 E64E
-E8A6AA 9065
-E8A6AC E650
-E8A6AF E651
-E8A6B2 E652
-E8A6B3 8ACF
-E8A6BA E653
-E8A6BD E654
-E8A6BF E655
-E8A780 E656
-E8A792 8A70
-E8A79A E657
-E8A79C E658
-E8A79D E659
-E8A7A3 89F0
-E8A7A6 9047
-E8A7A7 E65A
-E8A7B4 E65B
-E8A7B8 E65C
-E8A880 8CBE
-E8A882 92F9
-E8A883 E65D
-E8A888 8C76
-E8A88A 9075
-E8A88C E660
-E8A88E 93A2
-E8A890 E65F
-E8A893 8C50
-E8A896 E65E
-E8A897 91F5
-E8A898 8B4C
-E8A89B E661
-E8A89D E662
-E8A89F 8FD7
-E8A8A3 8C8D
-E8A8A5 E663
-E8A8AA 964B
-E8A8AD 90DD
-E8A8B1 8B96
-E8A8B3 96F3
-E8A8B4 9169
-E8A8B6 E664
-E8A8BA 9066
-E8A8BB 9290
-E8A8BC 8FD8
-E8A981 E665
-E8A986 E668
-E8A988 E669
-E8A990 8DBC
-E8A991 91C0
-E8A992 E667
-E8A994 8FD9
-E8A995 955D
-E8A99B E666
-E8A99E 8E8C
-E8A9A0 8972
-E8A9A2 E66D
-E8A9A3 8C77
-E8A9A6 8E8E
-E8A9A9 8E8D
-E8A9AB 986C
-E8A9AC E66C
-E8A9AD E66B
-E8A9AE 9146
-E8A9B0 8B6C
-E8A9B1 9862
-E8A9B2 8A59
-E8A9B3 8FDA
-E8A9BC E66A
-E8AA82 E66F
-E8AA84 E670
-E8AA85 E66E
-E8AA87 8CD6
-E8AA89 975F
-E8AA8C 8E8F
-E8AA8D 9446
-E8AA91 E673
-E8AA93 90BE
-E8AA95 9261
-E8AA98 9755
-E8AA9A E676
-E8AA9E 8CEA
-E8AAA0 90BD
-E8AAA1 E672
-E8AAA3 E677
-E8AAA4 8CEB
-E8AAA5 E674
-E8AAA6 E675
-E8AAA8 E671
-E8AAAC 90E0
-E8AAAD 93C7
-E8AAB0 924E
-E8AAB2 89DB
-E8AAB9 94EE
-E8AABC 8B62
-E8AABF 92B2
-E8AB82 E67A
-E8AB84 E678
-E8AB87 926B
-E8AB8B 90BF
-E8AB8C 8AD0
-E8AB8D E679
-E8AB8F 907A
-E8AB92 97C8
-E8AB96 985F
-E8AB9A E67B
-E8AB9B E687
-E8AB9C 92B3
-E8AB9E E686
-E8ABA0 E683
-E8ABA1 E68B
-E8ABA2 E684
-E8ABA4 E680
-E8ABA6 92FA
-E8ABA7 E67E
-E8ABAB E67C
-E8ABAD 9740
-E8ABAE 8E90
-E8ABB1 E681
-E8ABB3 E67D
-E8ABB7 E685
-E8ABB8 8F94
-E8ABBA 8CBF
-E8ABBE 91F8
-E8AC80 9664
-E8AC81 8979
-E8AC82 88E0
-E8AC84 93A3
-E8AC87 E689
-E8AC8C E688
-E8AC8E 93E4
-E8AC90 E68D
-E8AC94 E682
-E8AC96 E68C
-E8AC97 E68E
-E8AC99 8CAA
-E8AC9A E68A
-E8AC9B 8D75
-E8AC9D 8ED3
-E8ACA0 E68F
-E8ACA1 9777
-E8ACA6 E692
-E8ACA8 E695
-E8ACAB E693
-E8ACAC 9554
-E8ACB3 E690
-E8ACB9 8BDE
-E8ACBE E694
-E8AD81 E696
-E8AD89 E69A
-E8AD8C E697
-E8AD8E E699
-E8AD8F E698
-E8AD96 E69B
-E8AD98 8EAF
-E8AD9A E69D
-E8AD9B E69C
-E8AD9C 9588
-E8AD9F E69F
-E8ADA6 8C78
-E8ADAB E69E
-E8ADAC E6A0
-E8ADAF E6A1
-E8ADB0 8B63
-E8ADB1 E3BF
-E8ADB2 8FF7
-E8ADB4 E6A2
-E8ADB7 8CEC
-E8ADBD E6A3
-E8AE80 E6A4
-E8AE83 8E5D
-E8AE8A 9DCC
-E8AE8C E6A5
-E8AE8E E6A6
-E8AE90 8F51
-E8AE92 E6A7
-E8AE93 E6A8
-E8AE96 E6A9
-E8AE99 E6AA
-E8AE9A E6AB
-E8B0B7 924A
-E8B0BA E6AC
-E8B0BF E6AE
-E8B181 E6AD
-E8B186 93A4
-E8B188 E6AF
-E8B18A 964C
-E8B18C E6B0
-E8B18E E6B1
-E8B190 E6B2
-E8B195 E6B3
-E8B19A 93D8
-E8B1A1 8FDB
-E8B1A2 E6B4
-E8B1AA 8D8B
-E8B1AB 98AC
-E8B1AC E6B5
-E8B1B8 E6B6
-E8B1B9 955E
-E8B1BA E6B7
-E8B1BC E6BF
-E8B282 E6B8
-E8B285 E6BA
-E8B289 E6B9
-E8B28A E6BB
-E8B28C 9665
-E8B28D E6BC
-E8B28E E6BD
-E8B294 E6BE
-E8B298 E6C0
-E8B29D 8A4C
-E8B29E 92E5
-E8B2A0 9589
-E8B2A1 8DE0
-E8B2A2 8D76
-E8B2A7 956E
-E8B2A8 89DD
-E8B2A9 94CC
-E8B2AA E6C3
-E8B2AB 8AD1
-E8B2AC 90D3
-E8B2AD E6C2
-E8B2AE E6C7
-E8B2AF 9299
-E8B2B0 96E1
-E8B2B2 E6C5
-E8B2B3 E6C6
-E8B2B4 8B4D
-E8B2B6 E6C8
-E8B2B7 9483
-E8B2B8 91DD
-E8B2BB 94EF
-E8B2BC 935C
-E8B2BD E6C4
-E8B2BF 9666
-E8B380 89EA
-E8B381 E6CA
-E8B382 9847
-E8B383 92C0
-E8B384 9864
-E8B387 8E91
-E8B388 E6C9
-E8B38A 91AF
-E8B38D E6DA
-E8B38E 9147
-E8B391 93F6
-E8B393 956F
-E8B39A E6CD
-E8B39B 8E5E
-E8B39C 8E92
-E8B39E 8FDC
-E8B3A0 9485
-E8B3A2 8CAB
-E8B3A3 E6CC
-E8B3A4 E6CB
-E8B3A6 958A
-E8B3AA 8EBF
-E8B3AD 9371
-E8B3BA E6CF
-E8B3BB E6D0
-E8B3BC 8D77
-E8B3BD E6CE
-E8B484 E6D1
-E8B485 E6D2
-E8B487 E6D4
-E8B488 91A1
-E8B48A E6D3
-E8B48B 8AE4
-E8B48D E6D6
-E8B48F E6D5
-E8B490 E6D7
-E8B493 E6D9
-E8B494 E6DB
-E8B496 E6DC
-E8B5A4 90D4
-E8B5A6 8ECD
-E8B5A7 E6DD
-E8B5AB 8A71
-E8B5AD E6DE
-E8B5B0 9196
-E8B5B1 E6DF
-E8B5B3 E6E0
-E8B5B4 958B
-E8B5B7 8B4E
-E8B681 E6E1
-E8B685 92B4
-E8B68A 897A
-E8B699 E6E2
-E8B6A3 8EEF
-E8B6A8 9096
-E8B6B3 91AB
-E8B6BA E6E5
-E8B6BE E6E4
-E8B782 E6E3
-E8B78B E6EB
-E8B78C E6E9
-E8B78F E6E6
-E8B796 E6E8
-E8B79A E6E7
-E8B79B E6EA
-E8B79D 8B97
-E8B79F E6EE
-E8B7A1 90D5
-E8B7A3 E6EF
-E8B7A8 8CD7
-E8B7AA E6EC
-E8B7AB E6ED
-E8B7AF 9848
-E8B7B3 92B5
-E8B7B5 9148
-E8B7BC E6F0
-E8B7BF E6F3
-E8B888 E6F1
-E8B889 E6F2
-E8B88A 9778
-E8B88F 93A5
-E8B890 E6F6
-E8B89D E6F4
-E8B89E E6F5
-E8B89F E6F7
-E8B8AA E748
-E8B8B0 E6FA
-E8B8B4 E6FB
-E8B8B5 E6F9
-E8B982 E6F8
-E8B984 92FB
-E8B987 E740
-E8B988 E744
-E8B989 E741
-E8B98A E6FC
-E8B98C E742
-E8B990 E743
-E8B995 E74A
-E8B999 E745
-E8B99F 90D6
-E8B9A0 E747
-E8B9A3 E749
-E8B9A4 E746
-E8B9B2 E74C
-E8B9B4 8F52
-E8B9B6 E74B
-E8B9BC E74D
-E8BA81 E74E
-E8BA84 E751
-E8BA85 E750
-E8BA87 E74F
-E8BA8A E753
-E8BA8B E752
-E8BA8D 96F4
-E8BA91 E755
-E8BA93 E754
-E8BA94 E756
-E8BA99 E757
-E8BAA1 E759
-E8BAAA E758
-E8BAAB 9067
-E8BAAC E75A
-E8BAAF 8BEB
-E8BAB0 E75B
-E8BAB1 E75D
-E8BABE E75E
-E8BB85 E75F
-E8BB86 E75C
-E8BB88 E760
-E8BB8A 8ED4
-E8BB8B E761
-E8BB8C 8B4F
-E8BB8D 8C52
-E8BB92 8CAC
-E8BB9B E762
-E8BB9F 93EE
-E8BBA2 935D
-E8BBA3 E763
-E8BBAB E766
-E8BBB8 8EB2
-E8BBBB E765
-E8BBBC E764
-E8BBBD 8C79
-E8BBBE E767
-E8BC83 8A72
-E8BC85 E769
-E8BC89 8DDA
-E8BC8A E768
-E8BC8C E771
-E8BC92 E76B
-E8BC93 E76D
-E8BC94 95E3
-E8BC95 E76A
-E8BC99 E76C
-E8BC9B E770
-E8BC9C E76E
-E8BC9D 8B50
-E8BC9F E76F
-E8BCA6 E772
-E8BCA9 9479
-E8BCAA 97D6
-E8BCAF 8F53
-E8BCB3 E773
-E8BCB8 9741
-E8BCB9 E775
-E8BCBB E774
-E8BCBE E778
-E8BCBF 9760
-E8BD82 E777
-E8BD84 8A8D
-E8BD85 E776
-E8BD86 E77B
-E8BD89 E77A
-E8BD8C E779
-E8BD8D 9351
-E8BD8E E77C
-E8BD97 E77D
-E8BD9C E77E
-E8BD9F 8D8C
-E8BDA1 8C44
-E8BDA2 E780
-E8BDA3 E781
-E8BDA4 E782
-E8BE9B 9068
-E8BE9C E783
-E8BE9E 8EAB
-E8BE9F E784
-E8BEA3 E785
-E8BEA7 999F
-E8BEA8 999E
-E8BEAD E786
-E8BEAE E390
-E8BEAF E787
-E8BEB0 9243
-E8BEB1 904A
-E8BEB2 945F
-E8BEB7 E788
-E8BEBA 95D3
-E8BEBB 92D2
-E8BEBC 8D9E
-E8BEBF 9248
-E8BF82 8949
-E8BF84 9698
-E8BF85 9076
-E8BF8E 8C7D
-E8BF91 8BDF
-E8BF94 95D4
-E8BF9A E789
-E8BFA2 E78B
-E8BFA5 E78A
-E8BFA6 89DE
-E8BFA9 93F4
-E8BFAA E78C
-E8BFAB 9497
-E8BFAD 9352
-E8BFAF E78D
-E8BFB0 8F71
-E8BFB4 E78F
-E8BFB7 96C0
-E8BFB8 E79E
-E8BFB9 E791
-E8BFBA E792
-E8BFBD 92C7
-E98080 91DE
-E98081 9197
-E98083 93A6
-E98085 E790
-E98086 8B74
-E9808B E799
-E9808D E796
-E9808E E7A3
-E9808F 93A7
-E98090 9280
-E98091 E793
-E98093 92FC
-E98094 9372
-E98095 E794
-E98096 E798
-E98097 9080
-E98099 9487
-E9809A 92CA
-E9809D 90C0
-E9809E E797
-E9809F 91AC
-E980A0 91A2
-E980A1 E795
-E980A2 88A7
-E980A3 9841
-E980A7 E79A
-E980AE 91DF
-E980B1 8F54
-E980B2 9069
-E980B5 E79C
-E980B6 E79B
-E980B8 88ED
-E980B9 E79D
-E980BC 954E
-E980BE E7A5
-E98181 93D9
-E98182 908B
-E98185 9278
-E98187 8BF6
-E98189 E7A4
-E9818A 9756
-E9818B 895E
-E9818D 95D5
-E9818E 89DF
-E9818F E79F
-E98190 E7A0
-E98191 E7A1
-E98192 E7A2
-E98193 93B9
-E98194 9242
-E98195 88E1
-E98196 E7A6
-E98198 E7A7
-E98199 EAA1
-E9819C 91BB
-E9819E E7A8
-E981A0 8993
-E981A1 916B
-E981A3 8CAD
-E981A5 9779
-E981A8 E7A9
-E981A9 934B
-E981AD 9198
-E981AE 8ED5
-E981AF E7AA
-E981B2 E7AD
-E981B5 8F85
-E981B6 E7AB
-E981B7 914A
-E981B8 9149
-E981BA 88E2
-E981BC 97C9
-E981BD E7AF
-E981BF 94F0
-E98280 E7B1
-E98281 E7B0
-E98282 E7AE
-E98283 E284
-E98284 8AD2
-E98287 E78E
-E98289 E7B3
-E9828A E7B2
-E9828F E7B4
-E98291 9757
-E982A3 93DF
-E982A6 964D
-E982A8 E7B5
-E982AA 8ED7
-E982AF E7B6
-E982B1 E7B7
-E982B5 E7B8
-E982B8 9340
-E98381 88E8
-E9838A 8D78
-E9838E 9859
-E9839B E7BC
-E983A1 8C53
-E983A2 E7B9
-E983A4 E7BA
-E983A8 9594
-E983AD 8A73
-E983B5 9758
-E983B7 8BBD
-E983BD 9373
-E98482 E7BD
-E98492 E7BE
-E98499 E7BF
-E984AD 9341
-E984B0 E7C1
-E984B2 E7C0
-E98589 93D1
-E9858A E7C2
-E9858B 8F55
-E9858C 8EDE
-E9858D 947A
-E9858E 9291
-E98592 8EF0
-E98594 908C
-E98596 E7C3
-E98598 E7C4
-E985A2 907C
-E985A3 E7C5
-E985A5 E7C6
-E985A9 E7C7
-E985AA 978F
-E985AC 8F56
-E985B2 E7C9
-E985B3 E7C8
-E985B5 8D79
-E985B7 8D93
-E985B8 8E5F
-E98682 E7CC
-E98687 8F86
-E98689 E7CB
-E9868B E7CA
-E9868D 91E7
-E98690 8CED
-E98692 90C1
-E98697 94AE
-E9869C 8F58
-E986A2 E7CD
-E986A4 8FDD
-E986AA E7D0
-E986AB E7CE
-E986AF E7CF
-E986B4 E7D2
-E986B5 E7D1
-E986B8 8FF8
-E986BA E7D3
-E98780 E7D4
-E98781 E7D5
-E98786 94CE
-E98787 8DD1
-E98788 8EDF
-E98789 E7D6
-E9878B E7D7
-E9878C 97A2
-E9878D 8F64
-E9878E 96EC
-E9878F 97CA
-E98790 E7D8
-E98791 8BE0
-E98796 E7D9
-E98798 9342
-E9879B E7DC
-E9879C 8A98
-E9879D 906A
-E9879F E7DA
-E987A1 E7DB
-E987A3 92DE
-E987A6 9674
-E987A7 8BFA
-E987B5 E7DE
-E987B6 E7DF
-E987BC E7DD
-E987BF E7E1
-E9888D 93DD
-E9888E 8A62
-E98891 E7E5
-E98894 E7E2
-E98895 E7E4
-E9889E E7E0
-E988A9 E86E
-E988AC E7E3
-E988B4 97E9
-E988B7 8CD8
-E988BF E7ED
-E98984 9353
-E98985 E7E8
-E98988 E7EB
-E98989 E7E9
-E9898B E7EE
-E98990 E7EF
-E98997 E7E7
-E9899A E7F4
-E9899B 8994
-E9899E E7E6
-E989A2 94AB
-E989A4 E7EA
-E989A6 8FDE
-E989B1 8D7A
-E989BE 9667
-E98A80 8BE2
-E98A83 8F65
-E98A85 93BA
-E98A91 914C
-E98A93 E7F2
-E98A95 E7EC
-E98A96 E7F1
-E98A98 96C1
-E98A9A 92B6
-E98A9B E7F3
-E98A9C E7F0
-E98AAD 914B
-E98AB7 E7F7
-E98AB9 E7F6
-E98B8F E7F5
-E98B92 964E
-E98BA4 8F9B
-E98BA9 E7F8
-E98BAA 95DD
-E98BAD 8973
-E98BB2 9565
-E98BB3 9292
-E98BB8 8B98
-E98BBA E7FA
-E98BBC 8D7C
-E98C86 8E4B
-E98C8F E7F9
-E98C90 908D
-E98C98 908E
-E98C99 E840
-E98C9A E842
-E98CA0 8FF9
-E98CA2 E841
-E98CA3 E843
-E98CA6 8BD1
-E98CA8 9564
-E98CAB 8EE0
-E98CAC 9842
-E98CAE E7FC
-E98CAF 8DF6
-E98CB2 985E
-E98CB5 E845
-E98CBA E844
-E98CBB E846
-E98D84 E7FB
-E98D8B 93E7
-E98D8D 9374
-E98D94 92D5
-E98D96 E84B
-E98D9B 9262
-E98D9C E847
-E98DA0 E848
-E98DAC 8C4C
-E98DAE E84A
-E98DB5 8CAE
-E98DBC E849
-E98DBE 8FDF
-E98E8C 8A99
-E98E94 E84F
-E98E96 8DBD
-E98E97 9199
-E98E9A 92C8
-E98EA7 8A5A
-E98EAC E84D
-E98EAD E84E
-E98EAE 92C1
-E98EB0 E84C
-E98EB9 E850
-E98F83 E856
-E98F88 E859
-E98F90 E858
-E98F91 934C
-E98F96 E851
-E98F97 E852
-E98F98 E855
-E98F9D E857
-E98FA1 8BBE
-E98FA4 E85A
-E98FA5 E854
-E98FA8 E853
-E99083 E85E
-E99087 E85F
-E99090 E860
-E99093 E85D
-E99094 E85C
-E99098 8FE0
-E99099 93A8
-E9909A E85B
-E990A1 E864
-E990AB E862
-E990B5 E863
-E990B6 E861
-E990B8 91F6
-E990BA E865
-E99181 E866
-E99184 E868
-E99191 8AD3
-E99192 E867
-E99193 96F8
-E9919A E873
-E9919B E869
-E9919E E86C
-E991A0 E86A
-E991A2 E86B
-E991AA E86D
-E991B0 E86F
-E991B5 E870
-E991B7 E871
-E991BC E874
-E991BD E872
-E991BE E875
-E991BF E877
-E99281 E876
-E995B7 92B7
-E99680 96E5
-E99682 E878
-E99683 914D
-E99687 E879
-E99689 95C2
-E9968A E87A
-E9968B 8A4A
-E9968F 895B
-E99691 8AD5
-E99693 8AD4
-E99694 E87B
-E99696 E87C
-E99698 E87D
-E99699 E87E
-E996A0 E880
-E996A2 8AD6
-E996A3 8A74
-E996A4 8D7D
-E996A5 94B4
-E996A7 E882
-E996A8 E881
-E996AD E883
-E996B2 897B
-E996B9 E886
-E996BB E885
-E996BC E884
-E996BE E887
-E99783 E88A
-E99787 88C5
-E9978A E888
-E9978C E88C
-E9978D E88B
-E99794 E88E
-E99795 E88D
-E99796 E88F
-E99798 93AC
-E9979C E890
-E997A1 E891
-E997A2 E893
-E997A5 E892
-E9989C 958C
-E998A1 E894
-E998A8 E895
-E998AA 8DE3
-E998AE E896
-E998AF E897
-E998B2 9668
-E998BB 916A
-E998BF 88A2
-E99980 91C9
-E99982 E898
-E99984 958D
-E9998B E89B
-E9998C E899
-E9998D 8D7E
-E9998F E89A
-E99990 8CC0
-E9999B 95C3
-E9999C E89D
-E9999D E89F
-E9999E E89E
-E9999F E8A0
-E999A2 8940
-E999A3 9077
-E999A4 8F9C
-E999A5 8AD7
-E999A6 E8A1
-E999AA 9486
-E999AC E8A3
-E999B0 8941
-E999B2 E8A2
-E999B3 92C2
-E999B5 97CB
-E999B6 93A9
-E999B7 E89C
-E999B8 97A4
-E999BA 8CAF
-E999BD 977A
-E99A85 8BF7
-E99A86 97B2
-E99A88 8C47
-E99A8A 91E0
-E99A8B E440
-E99A8D E8A4
-E99A8E 8A4B
-E99A8F 908F
-E99A94 8A75
-E99A95 E8A6
-E99A97 E8A7
-E99A98 E8A5
-E99A99 8C84
-E99A9B 8DDB
-E99A9C 8FE1
-E99AA0 8942
-E99AA3 97D7
-E99AA7 E8A9
-E99AA8 E7AC
-E99AAA E8A8
-E99AB0 E8AC
-E99AB1 E8AA
-E99AB2 E8AB
-E99AB4 E8AD
-E99AB6 E8AE
-E99AB7 97EA
-E99AB8 E8AF
-E99AB9 E8B0
-E99ABB 90C7
-E99ABC 94B9
-E99B80 909D
-E99B81 8AE5
-E99B84 9759
-E99B85 89EB
-E99B86 8F57
-E99B87 8CD9
-E99B89 E8B3
-E99B8B E8B2
-E99B8C 8E93
-E99B8D E8B4
-E99B8E E8B1
-E99B91 8E47
-E99B95 E8B8
-E99B96 E5AB
-E99B99 99D4
-E99B9B 9097
-E99B9C E8B6
-E99BA2 97A3
-E99BA3 93EF
-E99BA8 894A
-E99BAA 90E1
-E99BAB 8EB4
-E99BB0 95B5
-E99BB2 895F
-E99BB6 97EB
-E99BB7 978B
-E99BB9 E8B9
-E99BBB 9364
-E99C80 8EF9
-E99C84 E8BA
-E99C86 E8BB
-E99C87 906B
-E99C88 E8BC
-E99C8A 97EC
-E99C8D E8B7
-E99C8E E8BE
-E99C8F E8C0
-E99C91 E8BF
-E99C93 E8BD
-E99C96 E8C1
-E99C99 E8C2
-E99C9C 919A
-E99C9E 89E0
-E99CA4 E8C3
-E99CA7 96B6
-E99CAA E8C4
-E99CB0 E8C5
-E99CB2 9849
-E99CB8 9E50
-E99CB9 E8C6
-E99CBD E8C7
-E99CBE E8C8
-E99D82 E8CC
-E99D84 E8C9
-E99D86 E8CA
-E99D88 E8CB
-E99D89 E8CD
-E99D92 90C2
-E99D96 96F5
-E99D99 90C3
-E99D9C E8CE
-E99D9E 94F1
-E99DA0 E8CF
-E99DA1 EA72
-E99DA2 96CA
-E99DA4 E8D0
-E99DA6 E8D1
-E99DA8 E8D2
-E99DA9 8A76
-E99DAB E8D4
-E99DAD 9078
-E99DB1 E8D5
-E99DB4 8C43
-E99DB9 E8D6
-E99DBA E8DA
-E99DBC E8D8
-E99E81 E8D9
-E99E84 8A93
-E99E85 E8D7
-E99E86 E8DB
-E99E8B E8DC
-E99E8D 88C6
-E99E8F E8DD
-E99E90 E8DE
-E99E98 8FE2
-E99E9C E8DF
-E99EA0 8B66
-E99EA3 E8E2
-E99EA6 E8E1
-E99EA8 E8E0
-E99EAB E691
-E99EAD 95DA
-E99EB3 E8E3
-E99EB4 E8E4
-E99F83 E8E5
-E99F86 E8E6
-E99F88 E8E7
-E99F8B E8E8
-E99F93 8AD8
-E99F9C E8E9
-E99FAD E8EA
-E99FAE 9442
-E99FB2 E8EC
-E99FB3 89B9
-E99FB5 E8EF
-E99FB6 E8EE
-E99FBB 8943
-E99FBF 8BBF
-E9A081 95C5
-E9A082 92B8
-E9A083 8DA0
-E9A085 8D80
-E9A086 8F87
-E9A088 907B
-E9A08C E8F1
-E9A08F E8F0
-E9A090 9761
-E9A091 8AE6
-E9A092 94D0
-E9A093 93DA
-E9A097 909C
-E9A098 97CC
-E9A09A 8C7A
-E9A0A1 E8F4
-E9A0A4 E8F3
-E9A0AC 966A
-E9A0AD 93AA
-E9A0B4 896F
-E9A0B7 E8F5
-E9A0B8 E8F2
-E9A0BB 9570
-E9A0BC 978A
-E9A0BD E8F6
-E9A186 E8F7
-E9A18B E8F9
-E9A18C 91E8
-E9A18D 8A7A
-E9A18E 8A7B
-E9A18F E8F8
-E9A194 8AE7
-E9A195 8CB0
-E9A198 8AE8
-E9A19B 935E
-E9A19E 97DE
-E9A1A7 8CDA
-E9A1AB E8FA
-E9A1AF E8FB
-E9A1B0 E8FC
-E9A1B1 E940
-E9A1B3 E942
-E9A1B4 E941
-E9A2A8 9597
-E9A2AA E943
-E9A2AF E944
-E9A2B1 E945
-E9A2B6 E946
-E9A383 E948
-E9A384 E947
-E9A386 E949
-E9A39B 94F2
-E9A39C E3CA
-E9A39F 9048
-E9A3A2 8B51
-E9A3A9 E94A
-E9A3AB E94B
-E9A3AD 99AA
-E9A3AE 9F5A
-E9A3AF 94D1
-E9A3B2 88F9
-E9A3B4 88B9
-E9A3BC 8E94
-E9A3BD 964F
-E9A3BE 8FFC
-E9A483 E94C
-E9A485 96DD
-E9A489 E94D
-E9A48A 977B
-E9A48C 8961
-E9A490 8E60
-E9A492 E94E
-E9A493 89EC
-E9A494 E94F
-E9A498 E950
-E9A49D E952
-E9A49E E953
-E9A4A0 E955
-E9A4A1 E951
-E9A4A4 E954
-E9A4A8 8AD9
-E9A4AC E956
-E9A4AE E957
-E9A4BD E958
-E9A4BE E959
-E9A582 E95A
-E9A585 E95C
-E9A589 E95B
-E9A58B E95E
-E9A58C E961
-E9A590 E95D
-E9A591 E95F
-E9A592 E960
-E9A595 E962
-E9A597 8BC0
-E9A696 8EF1
-E9A697 E963
-E9A698 E964
-E9A699 8D81
-E9A6A5 E965
-E9A6A8 8A5D
-E9A6AC 946E
-E9A6AD E966
-E9A6AE E967
-E9A6B3 9279
-E9A6B4 93E9
-E9A6BC E968
-E9A781 949D
-E9A784 91CA
-E9A785 8977
-E9A786 8BEC
-E9A788 8BED
-E9A790 9293
-E9A791 E96D
-E9A792 8BEE
-E9A795 89ED
-E9A798 E96C
-E9A79B E96A
-E9A79D E96B
-E9A79F E969
-E9A7A2 E977
-E9A7AD E96E
-E9A7AE E96F
-E9A7B1 E970
-E9A7B2 E971
-E9A7B8 E973
-E9A7BB E972
-E9A7BF 8F78
-E9A881 E974
-E9A885 E976
-E9A88E 8B52
-E9A88F E975
-E9A892 919B
-E9A893 8CB1
-E9A899 E978
-E9A8A8 91CB
-E9A8AB E979
-E9A8B0 93AB
-E9A8B7 E97A
-E9A8BE E980
-E9A980 E97D
-E9A982 E97C
-E9A983 E97E
-E9A985 E97B
-E9A98D E982
-E9A995 E981
-E9A997 E984
-E9A99A 8BC1
-E9A99B E983
-E9A99F E985
-E9A9A2 E986
-E9A9A4 E988
-E9A9A5 E987
-E9A9A9 E989
-E9A9AA E98B
-E9A9AB E98A
-E9AAA8 8D9C
-E9AAAD E98C
-E9AAB0 E98D
-E9AAB8 8A5B
-E9AABC E98E
-E9AB80 E98F
-E9AB84 9091
-E9AB8F E990
-E9AB91 E991
-E9AB93 E992
-E9AB94 E993
-E9AB98 8D82
-E9AB9E E994
-E9AB9F E995
-E9ABA2 E996
-E9ABA3 E997
-E9ABA6 E998
-E9ABAA 94AF
-E9ABAB E99A
-E9ABAD 9545
-E9ABAE E99B
-E9ABAF E999
-E9ABB1 E99D
-E9ABB4 E99C
-E9ABB7 E99E
-E9ABBB E99F
-E9AC86 E9A0
-E9AC98 E9A1
-E9AC9A E9A2
-E9AC9F E9A3
-E9ACA2 E9A4
-E9ACA3 E9A5
-E9ACA5 E9A6
-E9ACA7 E9A7
-E9ACA8 E9A8
-E9ACA9 E9A9
-E9ACAA E9AA
-E9ACAE E9AB
-E9ACAF E9AC
-E9ACB1 9F54
-E9ACB2 E9AD
-E9ACBB E2F6
-E9ACBC 8B53
-E9AD81 8A40
-E9AD82 8DB0
-E9AD83 E9AF
-E9AD84 E9AE
-E9AD85 96A3
-E9AD8D E9B1
-E9AD8E E9B2
-E9AD8F E9B0
-E9AD91 E9B3
-E9AD94 9682
-E9AD98 E9B4
-E9AD9A 8B9B
-E9ADAF 9844
-E9ADB4 E9B5
-E9AE83 E9B7
-E9AE8E 88BC
-E9AE91 E9B8
-E9AE92 95A9
-E9AE93 E9B6
-E9AE96 E9B9
-E9AE97 E9BA
-E9AE9F E9BB
-E9AEA0 E9BC
-E9AEA8 E9BD
-E9AEAA 968E
-E9AEAB 8E4C
-E9AEAD 8DF8
-E9AEAE 914E
-E9AEB4 E9BE
-E9AEB9 E9C1
-E9AF80 E9BF
-E9AF86 E9C2
-E9AF89 8CEF
-E9AF8A E9C0
-E9AF8F E9C3
-E9AF91 E9C4
-E9AF92 E9C5
-E9AF94 E9C9
-E9AF96 8E49
-E9AF9B 91E2
-E9AFA1 E9CA
-E9AFA2 E9C7
-E9AFA3 E9C6
-E9AFA4 E9C8
-E9AFA8 8C7E
-E9AFB0 E9CE
-E9AFB1 E9CD
-E9AFB2 E9CC
-E9AFB5 88B1
-E9B084 E9D8
-E9B086 E9D4
-E9B088 E9D5
-E9B089 E9D1
-E9B08A E9D7
-E9B08C E9D3
-E9B08D 8A82
-E9B090 986B
-E9B092 E9D6
-E9B093 E9D2
-E9B094 E9D0
-E9B095 E9CF
-E9B09B E9DA
-E9B0A1 E9DD
-E9B0A4 E9DC
-E9B0A5 E9DB
-E9B0AD 9568
-E9B0AE E9D9
-E9B0AF 88F1
-E9B0B0 E9DE
-E9B0B2 E9E0
-E9B0B9 8A8F
-E9B0BA E9CB
-E9B0BB 8956
-E9B0BE E9E2
-E9B186 E9E1
-E9B187 E9DF
-E9B188 924C
-E9B192 9690
-E9B197 97D8
-E9B19A E9E3
-E9B1A0 E9E4
-E9B1A7 E9E5
-E9B1B6 E9E6
-E9B1B8 E9E7
-E9B3A5 92B9
-E9B3A7 E9E8
-E9B3A9 94B5
-E9B3AB E9ED
-E9B3AC E9E9
-E9B3B0 E9EA
-E9B3B3 9650
-E9B3B4 96C2
-E9B3B6 93CE
-E9B483 E9EE
-E9B486 E9EF
-E9B487 93BC
-E9B488 E9EC
-E9B489 E9EB
-E9B48E 89A8
-E9B492 E9F7
-E9B495 E9F6
-E9B49B 8995
-E9B49F E9F4
-E9B4A3 E9F3
-E9B4A6 E9F1
-E9B4A8 8A9B
-E9B4AA E9F0
-E9B4AB 8EB0
-E9B4AC 89A7
-E9B4BB 8D83
-E9B4BE E9FA
-E9B4BF E9F9
-E9B581 E9F8
-E9B584 E9F5
-E9B586 E9FB
-E9B588 E9FC
-E9B590 EA44
-E9B591 EA43
-E9B599 EA45
-E9B59C 894C
-E9B59D EA40
-E9B59E EA41
-E9B5A0 8D94
-E9B5A1 96B7
-E9B5A4 EA42
-E9B5AC 9651
-E9B5AF EA4A
-E9B5B2 EA46
-E9B5BA EA4B
-E9B687 EA48
-E9B689 EA47
-E9B68F 8C7B
-E9B69A EA4C
-E9B6A4 EA4D
-E9B6A9 EA4E
-E9B6AB EA49
-E9B6AF E9F2
-E9B6B2 EA4F
-E9B6B4 92DF
-E9B6B8 EA53
-E9B6BA EA54
-E9B6BB EA52
-E9B781 EA51
-E9B782 EA57
-E9B784 EA50
-E9B786 EA55
-E9B78F EA56
-E9B793 EA59
-E9B799 EA58
-E9B7A6 EA5B
-E9B7AD EA5C
-E9B7AF EA5D
-E9B7B2 9868
-E9B7B8 EA5A
-E9B7B9 91E9
-E9B7BA 8DEB
-E9B7BD EA5E
-E9B89A EA5F
-E9B89B EA60
-E9B89E EA61
-E9B9B5 EA62
-E9B9B8 8CB2
-E9B9B9 EA63
-E9B9BD EA64
-E9B9BF 8EAD
-E9BA81 EA65
-E9BA88 EA66
-E9BA8B EA67
-E9BA8C EA68
-E9BA91 EA6B
-E9BA92 EA69
-E9BA93 985B
-E9BA95 EA6A
-E9BA97 97ED
-E9BA9D EA6C
-E9BA9F 97D9
-E9BAA5 EA6D
-E9BAA6 949E
-E9BAA9 EA6E
-E9BAAA EA70
-E9BAAD EA71
-E9BAB8 EA6F
-E9BAB9 8D8D
-E9BABA 96CB
-E9BABB 9683
-E9BABC 9BF5
-E9BABE 9F80
-E9BABF 969B
-E9BB84 89A9
-E9BB8C EA73
-E9BB8D 8B6F
-E9BB8E EA74
-E9BB8F EA75
-E9BB90 EA76
-E9BB92 8D95
-E9BB94 EA77
-E9BB98 E0D2
-E9BB99 96D9
-E9BB9B 91E1
-E9BB9C EA78
-E9BB9D EA7A
-E9BB9E EA79
-E9BBA0 EA7B
-E9BBA5 EA7C
-E9BBA8 EA7D
-E9BBAF EA7E
-E9BBB4 EA80
-E9BBB6 EA81
-E9BBB7 EA82
-E9BBB9 EA83
-E9BBBB EA84
-E9BBBC EA85
-E9BBBD EA86
-E9BC87 EA87
-E9BC88 EA88
-E9BC8E 9343
-E9BC93 8CDB
-E9BC95 EA8A
-E9BCA0 916C
-E9BCA1 EA8B
-E9BCAC EA8C
-E9BCBB 9540
-E9BCBE EA8D
-E9BD8A EA8E
-E9BD8B E256
-E9BD8E E6D8
-E9BD8F E8EB
-E9BD92 EA8F
-E9BD94 EA90
-E9BD9F EA92
-E9BDA0 EA93
-E9BDA1 EA94
-E9BDA2 97EE
-E9BDA3 EA91
-E9BDA6 EA95
-E9BDA7 EA96
-E9BDAA EA98
-E9BDAC EA97
-E9BDB2 EA9A
-E9BDB6 EA9B
-E9BDB7 EA99
-E9BE8D 97B4
-E9BE95 EA9C
-E9BE9C EA9D
-E9BE9D E273
-E9BEA0 EA9E
-EFBC81 8149
-EFBC83 8194
-EFBC84 8190
-EFBC85 8193
-EFBC86 8195
-EFBC88 8169
-EFBC89 816A
-EFBC8A 8196
-EFBC8B 817B
-EFBC8C 8143
-EFBC8E 8144
-EFBC8F 815E
-EFBC90 824F
-EFBC91 8250
-EFBC92 8251
-EFBC93 8252
-EFBC94 8253
-EFBC95 8254
-EFBC96 8255
-EFBC97 8256
-EFBC98 8257
-EFBC99 8258
-EFBC9A 8146
-EFBC9B 8147
-EFBC9C 8183
-EFBC9D 8181
-EFBC9E 8184
-EFBC9F 8148
-EFBCA0 8197
-EFBCA1 8260
-EFBCA2 8261
-EFBCA3 8262
-EFBCA4 8263
-EFBCA5 8264
-EFBCA6 8265
-EFBCA7 8266
-EFBCA8 8267
-EFBCA9 8268
-EFBCAA 8269
-EFBCAB 826A
-EFBCAC 826B
-EFBCAD 826C
-EFBCAE 826D
-EFBCAF 826E
-EFBCB0 826F
-EFBCB1 8270
-EFBCB2 8271
-EFBCB3 8272
-EFBCB4 8273
-EFBCB5 8274
-EFBCB6 8275
-EFBCB7 8276
-EFBCB8 8277
-EFBCB9 8278
-EFBCBA 8279
-EFBCBB 816D
-EFBCBD 816E
-EFBCBE 814F
-EFBCBF 8151
-EFBD80 814D
-EFBD81 8281
-EFBD82 8282
-EFBD83 8283
-EFBD84 8284
-EFBD85 8285
-EFBD86 8286
-EFBD87 8287
-EFBD88 8288
-EFBD89 8289
-EFBD8A 828A
-EFBD8B 828B
-EFBD8C 828C
-EFBD8D 828D
-EFBD8E 828E
-EFBD8F 828F
-EFBD90 8290
-EFBD91 8291
-EFBD92 8292
-EFBD93 8293
-EFBD94 8294
-EFBD95 8295
-EFBD96 8296
-EFBD97 8297
-EFBD98 8298
-EFBD99 8299
-EFBD9A 829A
-EFBD9B 816F
-EFBD9C 8162
-EFBD9D 8170
-EFBDA1 A1
-EFBDA2 A2
-EFBDA3 A3
-EFBDA4 A4
-EFBDA5 A5
-EFBDA6 A6
-EFBDA7 A7
-EFBDA8 A8
-EFBDA9 A9
-EFBDAA AA
-EFBDAB AB
-EFBDAC AC
-EFBDAD AD
-EFBDAE AE
-EFBDAF AF
-EFBDB0 B0
-EFBDB1 B1
-EFBDB2 B2
-EFBDB3 B3
-EFBDB4 B4
-EFBDB5 B5
-EFBDB6 B6
-EFBDB7 B7
-EFBDB8 B8
-EFBDB9 B9
-EFBDBA BA
-EFBDBB BB
-EFBDBC BC
-EFBDBD BD
-EFBDBE BE
-EFBDBF BF
-EFBE80 C0
-EFBE81 C1
-EFBE82 C2
-EFBE83 C3
-EFBE84 C4
-EFBE85 C5
-EFBE86 C6
-EFBE87 C7
-EFBE88 C8
-EFBE89 C9
-EFBE8A CA
-EFBE8B CB
-EFBE8C CC
-EFBE8D CD
-EFBE8E CE
-EFBE8F CF
-EFBE90 D0
-EFBE91 D1
-EFBE92 D2
-EFBE93 D3
-EFBE94 D4
-EFBE95 D5
-EFBE96 D6
-EFBE97 D7
-EFBE98 D8
-EFBE99 D9
-EFBE9A DA
-EFBE9B DB
-EFBE9C DC
-EFBE9D DD
-EFBE9E DE
-EFBE9F DF
-EFBFA3 8150
-EFBFA5 818F
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set names eucjpms;
-select @@collation_connection;
-@@collation_connection
-eucjpms_japanese_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET eucjpms NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-41
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET eucjpms DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(15) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-4141414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-4141414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41414141412020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41414141412020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-41
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-414243
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-4142
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-414243
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-4142432020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-41
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-4142
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-414220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-41422020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-4142202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-41422020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-41
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-4142
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-414243
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-41424320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-41
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-4142
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-414243
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-41424320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-eucjpms_japanese_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-41
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-414243
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-4142
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-414243
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-4142432020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020434241
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-BEBDBCDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDFBCBDBE
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-eucjpms_japanese_ci
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-4141
-select hex(weight_string(cast(0xA1A1 as char)));
-hex(weight_string(cast(0xA1A1 as char)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1 as char) as char(3)))
-A1A12020
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)))
-A1A1A1A120
-select hex(weight_string(cast(0x40A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1 as char) as char(3)))
-40A1A120
-select hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)))
-4040A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0))
-A1A1A1A120
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0))
-A1A1A1A1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-eucjpms_japanese_ci
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-4141
-select hex(weight_string(cast(0x8EA1 as char)));
-hex(weight_string(cast(0x8EA1 as char)))
-8EA1
-select hex(weight_string(cast(0x8EA1 as char) as char(1)));
-hex(weight_string(cast(0x8EA1 as char) as char(1)))
-8EA1
-select hex(weight_string(cast(0x8EA18EA1 as char) as char(1)));
-hex(weight_string(cast(0x8EA18EA1 as char) as char(1)))
-8EA1
-select hex(weight_string(cast(0x8EA1 as char) as char(3)));
-hex(weight_string(cast(0x8EA1 as char) as char(3)))
-8EA12020
-select hex(weight_string(cast(0x8EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x8EA18EA1 as char) as char(3)))
-8EA18EA120
-select hex(weight_string(cast(0x408EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA1 as char) as char(3)))
-408EA120
-select hex(weight_string(cast(0x408EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA18EA1 as char) as char(3)))
-408EA18EA1
-select hex(weight_string(cast(0x408EA18EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA18EA18EA1 as char) as char(3)))
-408EA18EA1
-select hex(weight_string(cast(0x40408EA18EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x40408EA18EA18EA1 as char) as char(3)))
-40408EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 2, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 2, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 2, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 2, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 2, 0xC0))
-8EA18EA120
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 2, 0xC0))
-8EA18EA1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 3, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 3, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 3, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 3, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 3, 0xC0))
-8EA18EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 3, 0xC0))
-8EA18EA18EA120202020202020202020202020202020202020
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 4, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 4, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 4, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 4, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 4, 0xC0))
-8EA18EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 4, 0xC0))
-8EA18EA18EA120202020202020202020202020202020202020
-select collation(cast(0x8FA2C3 as char));
-collation(cast(0x8FA2C3 as char))
-eucjpms_japanese_ci
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-4141
-select hex(weight_string(cast(0x8FA2C3 as char)));
-hex(weight_string(cast(0x8FA2C3 as char)))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C3 as char) as char(1)));
-hex(weight_string(cast(0x8FA2C3 as char) as char(1)))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(1)));
-hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(1)))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x8FA2C3 as char) as char(3)))
-8FA2C32020
-select hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(3)))
-8FA2C38FA2C320
-select hex(weight_string(cast(0x408FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x408FA2C3 as char) as char(3)))
-408FA2C320
-select hex(weight_string(cast(0x408FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x408FA2C38FA2C3 as char) as char(3)))
-408FA2C38FA2C3
-select hex(weight_string(cast(0x408FA2C38FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x408FA2C38FA2C38FA2C3 as char) as char(3)))
-408FA2C38FA2C3
-select hex(weight_string(cast(0x40408FA2C38FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x40408FA2C38FA2C38FA2C3 as char) as char(3)))
-40408FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 2, 0xC0))
-8F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 2, 0xC0))
-8FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 2, 0xC0))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 2, 0xC0))
-8FA2C38F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 2, 0xC0))
-8FA2C38FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 2, 0xC0))
-8FA2C38FA2C320202020202020202020202020202020202020
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 3, 0xC0))
-8F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 3, 0xC0))
-8FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 3, 0xC0))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 3, 0xC0))
-8FA2C38F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 3, 0xC0))
-8FA2C38FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 3, 0xC0))
-8FA2C38FA2C38FA2C320202020202020202020202020202020
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 4, 0xC0))
-8F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 4, 0xC0))
-8FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 4, 0xC0))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 4, 0xC0))
-8FA2C38F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 4, 0xC0))
-8FA2C38FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 4, 0xC0))
-8FA2C38FA2C38FA2C320202020202020202020202020202020
-set collation_connection=eucjpms_bin;
-select @@collation_connection;
-@@collation_connection
-eucjpms_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET eucjpms COLLATE eucjpms_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-61
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET eucjpms COLLATE eucjpms_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(15) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-6161616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-6161616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61616161612020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61616161612020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-61
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-616263
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-6162
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-616263
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-6162632020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-61
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-6162
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-616220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-61622020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-6162202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-61622020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-61
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-6162
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-616263
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-61626320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-61
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-6162
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-616263
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-61626320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-eucjpms_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-61
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-616263
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-6162
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-616263
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-6162632020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020636261
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-9E9D9CDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDF9C9D9E
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-eucjpms_bin
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-6141
-select hex(weight_string(cast(0xA1A1 as char)));
-hex(weight_string(cast(0xA1A1 as char)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1 as char) as char(3)))
-A1A12020
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)))
-A1A1A1A120
-select hex(weight_string(cast(0x40A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1 as char) as char(3)))
-40A1A120
-select hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)))
-4040A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0))
-A1A1A1A120
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0))
-A1A1A1A1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-eucjpms_bin
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-6141
-select hex(weight_string(cast(0x8EA1 as char)));
-hex(weight_string(cast(0x8EA1 as char)))
-8EA1
-select hex(weight_string(cast(0x8EA1 as char) as char(1)));
-hex(weight_string(cast(0x8EA1 as char) as char(1)))
-8EA1
-select hex(weight_string(cast(0x8EA18EA1 as char) as char(1)));
-hex(weight_string(cast(0x8EA18EA1 as char) as char(1)))
-8EA1
-select hex(weight_string(cast(0x8EA1 as char) as char(3)));
-hex(weight_string(cast(0x8EA1 as char) as char(3)))
-8EA12020
-select hex(weight_string(cast(0x8EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x8EA18EA1 as char) as char(3)))
-8EA18EA120
-select hex(weight_string(cast(0x408EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA1 as char) as char(3)))
-408EA120
-select hex(weight_string(cast(0x408EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA18EA1 as char) as char(3)))
-408EA18EA1
-select hex(weight_string(cast(0x408EA18EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA18EA18EA1 as char) as char(3)))
-408EA18EA1
-select hex(weight_string(cast(0x40408EA18EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x40408EA18EA18EA1 as char) as char(3)))
-40408EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 2, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 2, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 2, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 2, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 2, 0xC0))
-8EA18EA120
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 2, 0xC0))
-8EA18EA1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 3, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 3, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 3, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 3, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 3, 0xC0))
-8EA18EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 3, 0xC0))
-8EA18EA18EA120202020202020202020202020202020202020
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 4, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 4, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 4, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 4, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 4, 0xC0))
-8EA18EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 4, 0xC0))
-8EA18EA18EA120202020202020202020202020202020202020
-select collation(cast(0x8FA2C3 as char));
-collation(cast(0x8FA2C3 as char))
-eucjpms_bin
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-6141
-select hex(weight_string(cast(0x8FA2C3 as char)));
-hex(weight_string(cast(0x8FA2C3 as char)))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C3 as char) as char(1)));
-hex(weight_string(cast(0x8FA2C3 as char) as char(1)))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(1)));
-hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(1)))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x8FA2C3 as char) as char(3)))
-8FA2C32020
-select hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(3)))
-8FA2C38FA2C320
-select hex(weight_string(cast(0x408FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x408FA2C3 as char) as char(3)))
-408FA2C320
-select hex(weight_string(cast(0x408FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x408FA2C38FA2C3 as char) as char(3)))
-408FA2C38FA2C3
-select hex(weight_string(cast(0x408FA2C38FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x408FA2C38FA2C38FA2C3 as char) as char(3)))
-408FA2C38FA2C3
-select hex(weight_string(cast(0x40408FA2C38FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x40408FA2C38FA2C38FA2C3 as char) as char(3)))
-40408FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 2, 0xC0))
-8F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 2, 0xC0))
-8FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 2, 0xC0))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 2, 0xC0))
-8FA2C38F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 2, 0xC0))
-8FA2C38FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 2, 0xC0))
-8FA2C38FA2C320202020202020202020202020202020202020
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 3, 0xC0))
-8F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 3, 0xC0))
-8FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 3, 0xC0))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 3, 0xC0))
-8FA2C38F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 3, 0xC0))
-8FA2C38FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 3, 0xC0))
-8FA2C38FA2C38FA2C320202020202020202020202020202020
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 4, 0xC0))
-8F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 4, 0xC0))
-8FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 4, 0xC0))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 4, 0xC0))
-8FA2C38F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 4, 0xC0))
-8FA2C38FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 4, 0xC0))
-8FA2C38FA2C38FA2C320202020202020202020202020202020
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-6776 ujis and eucjmps erroneously accept 0x8EA0 as a valid byte sequence
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET eucjpms);
-INSERT IGNORE INTO t1 VALUES (0x8EA0);
-SELECT HEX(a), CHAR_LENGTH(a) FROM t1;
-HEX(a) CHAR_LENGTH(a)
-3F3F 2
-DROP TABLE t1;
-SELECT _eucjpms 0x8EA0;
-ERROR HY000: Invalid eucjpms character string: '8EA0'
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8215 Asian MB3 charsets: compare broken bytes as "greater than any non-broken character"
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET eucjpms, KEY(a));
-INSERT INTO t1 VALUES ('a'),(0x7F);
-INSERT INTO t1 VALUES (0x8EA1),(0x8EDF);
-INSERT INTO t1 VALUES (0x8FA1A1),(0x8FFEFE);
-INSERT INTO t1 VALUES (0xA1A1),(0xDEDE),(0xDFDF),(0xE0E0),(0xFEFE);
-SELECT HEX(a) FROM t1 ORDER BY a;
-HEX(a)
-61
-7F
-8EA1
-8EDF
-8FA1A1
-8FFEFE
-A1A1
-DEDE
-DFDF
-E0E0
-FEFE
-ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET eucjpms COLLATE eucjpms_bin;
-SELECT HEX(a) FROM t1 ORDER BY a;
-HEX(a)
-61
-7F
-8EA1
-8EDF
-8FA1A1
-8FFEFE
-A1A1
-DEDE
-DFDF
-E0E0
-FEFE
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9842 LOAD DATA INFILE does not work well with a TEXT column when using sjis
-#
-CREATE TABLE t1 (a TEXT CHARACTER SET eucjpms);
-LOAD DATA INFILE '../../std_data/loaddata/mdev9823.ujis.txt' IGNORE INTO TABLE t1 CHARACTER SET eucjpms IGNORE 4 LINES;
-SELECT HEX(a) FROM t1;
-HEX(a)
-3F
-78787831
-3F3F
-78787832
-8FA1A1
-78787833
-3F3F
-DROP TABLE t1;
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=eucjpms;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'eucjpms_japanese_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE eucjpms_japanese_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=eucjpms COLLATE=eucjpms_japanese_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'eucjpms_japanese_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'eucjpms_japanese_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'eucjpms_japanese_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'eucjpms_japanese_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'eucjpms_japanese_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'eucjpms_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'eucjpms_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'eucjpms_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'eucjpms_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'eucjpms_japanese_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'eucjpms_japanese_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'eucjpms_japanese_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'eucjpms_japanese_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'eucjpms_japanese_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_japanese_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'eucjpms_japanese_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_japanese_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'eucjpms_japanese_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE eucjpms_japanese_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=eucjpms COLLATE=eucjpms_japanese_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'eucjpms_japanese_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'eucjpms_japanese_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'eucjpms_japanese_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'eucjpms_japanese_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'eucjpms_japanese_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'eucjpms_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'eucjpms_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'eucjpms_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'eucjpms_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'eucjpms_japanese_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'eucjpms_japanese_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'eucjpms_japanese_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'eucjpms_japanese_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'eucjpms_japanese_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_japanese_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'eucjpms_japanese_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_japanese_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'eucjpms_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE eucjpms_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=eucjpms COLLATE=eucjpms_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'eucjpms_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'eucjpms_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'eucjpms_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'eucjpms_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'eucjpms_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'eucjpms_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'eucjpms_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'eucjpms_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'eucjpms_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'eucjpms_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'eucjpms_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'eucjpms_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'eucjpms_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'eucjpms_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'eucjpms_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'eucjpms_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE eucjpms_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=eucjpms COLLATE=eucjpms_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'eucjpms_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'eucjpms_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'eucjpms_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'eucjpms_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'eucjpms_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'eucjpms_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'eucjpms_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'eucjpms_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'eucjpms_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'eucjpms_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'eucjpms_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'eucjpms_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'eucjpms_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'eucjpms_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'eucjpms_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'eucjpms_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_euckr.result b/mysql-test/r/ctype_euckr.result
deleted file mode 100644
index 3fb6f98b2eb..00000000000
--- a/mysql-test/r/ctype_euckr.result
+++ /dev/null
@@ -1,25970 +0,0 @@
-drop table if exists t1;
-SET @test_character_set= 'euckr';
-SET @test_collation= 'euckr_korean_ci';
-SET @safe_character_set_server= @@character_set_server;
-SET @safe_collation_server= @@collation_server;
-SET @safe_character_set_client= @@character_set_client;
-SET @safe_character_set_results= @@character_set_results;
-SET character_set_server= @test_character_set;
-SET collation_server= @test_collation;
-CREATE DATABASE d1;
-USE d1;
-CREATE TABLE t1 (c CHAR(10), KEY(c));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c char(10) euckr_korean_ci YES MUL NULL
-INSERT INTO t1 VALUES ('aaa'),('aaaa'),('aaaaa');
-SELECT c as want3results FROM t1 WHERE c LIKE 'aaa%';
-want3results
-aaa
-aaaa
-aaaaa
-DROP TABLE t1;
-CREATE TABLE t1 (c1 varchar(15), KEY c1 (c1(2)));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c1 varchar(15) euckr_korean_ci YES MUL NULL
-INSERT INTO t1 VALUES ('location'),('loberge'),('lotre'),('boabab');
-SELECT c1 as want3results from t1 where c1 like 'l%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want3results from t1 where c1 like 'lo%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want1result from t1 where c1 like 'loc%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'loca%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locat%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locati%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locatio%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'location%';
-want1result
-location
-DROP TABLE t1;
-create table t1 (a set('a') not null);
-insert ignore into t1 values (),();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-select cast(a as char(1)) from t1;
-cast(a as char(1))
-
-
-select a sounds like a from t1;
-a sounds like a
-1
-1
-select 1 from t1 order by cast(a as char(1));
-1
-1
-1
-drop table t1;
-#
-# MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found
-#
-SET character_set_client=latin1;
-SET character_set_connection= @test_character_set;
-SET collation_connection= @test_collation;
-SELECT COLLATION('.'), SUBSTRING_INDEX('.wwwmysqlcom', '.', -2) AS c1;
-COLLATION('.') c1
-euckr_korean_ci .wwwmysqlcom
-set names utf8;
-create table t1 (
-name varchar(10),
-level smallint unsigned);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `name` varchar(10) DEFAULT NULL,
- `level` smallint(5) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=euckr
-insert into t1 values ('string',1);
-select concat(name,space(level)), concat(name, repeat(' ',level)) from t1;
-concat(name,space(level)) concat(name, repeat(' ',level))
-string string
-drop table t1;
-DROP DATABASE d1;
-USE test;
-SET character_set_server= @safe_character_set_server;
-SET collation_server= @safe_collation_server;
-SET character_set_client= @safe_character_set_client;
-SET character_set_results= @safe_character_set_results;
-SET NAMES euckr;
-SET collation_connection='euckr_korean_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-euckr_korean_ci 6109
-euckr_korean_ci 61
-euckr_korean_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-euckr_korean_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-euckr_korean_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-create table t1 engine=innodb select repeat('a',50) as c1;
-alter table t1 add index(c1(5));
-insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
-select collation(c1) from t1 limit 1;
-collation(c1)
-euckr_korean_ci
-select c1 from t1 where c1 like 'abcdef%' order by c1;
-c1
-abcdefg
-select c1 from t1 where c1 like 'abcde1%' order by c1;
-c1
-abcde100
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde11%' order by c1;
-c1
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde111%' order by c1;
-c1
-abcde111
-drop table t1;
-select @@collation_connection;
-@@collation_connection
-euckr_korean_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F225
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-SET collation_connection='euckr_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-euckr_bin 6109
-euckr_bin 61
-euckr_bin 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-euckr_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-euckr_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-create table t1 engine=innodb select repeat('a',50) as c1;
-alter table t1 add index(c1(5));
-insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
-select collation(c1) from t1 limit 1;
-collation(c1)
-euckr_bin
-select c1 from t1 where c1 like 'abcdef%' order by c1;
-c1
-abcdefg
-select c1 from t1 where c1 like 'abcde1%' order by c1;
-c1
-abcde100
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde11%' order by c1;
-c1
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde111%' order by c1;
-c1
-abcde111
-drop table t1;
-select @@collation_connection;
-@@collation_connection
-euckr_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F225
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-SET NAMES euckr;
-CREATE TABLE t1 (a text) character set euckr;
-INSERT INTO t1 VALUES (0xA2E6),(0xFEF7);
-SELECT hex(a) FROM t1 ORDER BY a;
-hex(a)
-A2E6
-FEF7
-DROP TABLE t1;
-create table t1 (s1 varchar(5) character set euckr);
-insert into t1 values (0xA141);
-insert into t1 values (0xA15A);
-insert into t1 values (0xA161);
-insert into t1 values (0xA17A);
-insert into t1 values (0xA181);
-insert into t1 values (0xA1FE);
-insert ignore into t1 values (0xA140);
-Warnings:
-Warning 1366 Incorrect string value: '\xA1@' for column 's1' at row 1
-insert ignore into t1 values (0xA15B);
-Warnings:
-Warning 1366 Incorrect string value: '\xA1[' for column 's1' at row 1
-insert ignore into t1 values (0xA160);
-Warnings:
-Warning 1366 Incorrect string value: '\xA1`' for column 's1' at row 1
-insert ignore into t1 values (0xA17B);
-Warnings:
-Warning 1366 Incorrect string value: '\xA1{' for column 's1' at row 1
-insert ignore into t1 values (0xA180);
-Warnings:
-Warning 1366 Incorrect string value: '\xA1\x80' for column 's1' at row 1
-insert ignore into t1 values (0xA1FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xA1\xFF' for column 's1' at row 1
-select hex(s1), hex(convert(s1 using utf8)) from t1 order by binary s1;
-hex(s1) hex(convert(s1 using utf8))
-3F3F 3F3F
-3F3F 3F3F
-3F40 3F40
-3F5B 3F5B
-3F60 3F60
-3F7B 3F7B
-A141 ECA2A5
-A15A ECA381
-A161 ECA382
-A17A ECA3A5
-A181 ECA3A6
-A1FE EFBFA2
-drop table t1;
-End of 5.0 tests
-Start of 5.4 tests
-#
-# WL#3997 New euckr characters
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a varchar(10) character set euckr);
-INSERT INTO t1 VALUES (0xA2E6), (0xA2E7);
-SELECT hex(a), hex(@utf8:=convert(a using utf8)), hex(convert(@utf8 using euckr)) FROM t1;
-hex(a) hex(@utf8:=convert(a using utf8)) hex(convert(@utf8 using euckr))
-A2E6 E282AC A2E6
-A2E7 C2AE A2E7
-DROP TABLE t1;
-#
-# WL#3332 Korean Enhancements
-# euckr valid codes are now [81..FE][41..5A,61..7A,81..FE]
-#
-CREATE TABLE t1 (a binary(1), key(a));
-CREATE TABLE t2 (s VARCHAR(4), a VARCHAR(1) CHARACTER SET euckr);
-INSERT INTO t2
-SELECT hex(concat(t11.a, t12.a)), concat(t11.a, t12.a)
-FROM t1 t11, t1 t12
-WHERE t11.a >= 0x81 AND t11.a <= 0xFE
-AND t12.a >= 0x41 AND t12.a <= 0xFE
-ORDER BY t11.a, t12.a;
-SELECT s as bad_code FROM t2 WHERE a='?' ORDER BY s;
-bad_code
-815B
-815C
-815D
-815E
-815F
-8160
-817B
-817C
-817D
-817E
-817F
-8180
-825B
-825C
-825D
-825E
-825F
-8260
-827B
-827C
-827D
-827E
-827F
-8280
-835B
-835C
-835D
-835E
-835F
-8360
-837B
-837C
-837D
-837E
-837F
-8380
-845B
-845C
-845D
-845E
-845F
-8460
-847B
-847C
-847D
-847E
-847F
-8480
-855B
-855C
-855D
-855E
-855F
-8560
-857B
-857C
-857D
-857E
-857F
-8580
-865B
-865C
-865D
-865E
-865F
-8660
-867B
-867C
-867D
-867E
-867F
-8680
-875B
-875C
-875D
-875E
-875F
-8760
-877B
-877C
-877D
-877E
-877F
-8780
-885B
-885C
-885D
-885E
-885F
-8860
-887B
-887C
-887D
-887E
-887F
-8880
-895B
-895C
-895D
-895E
-895F
-8960
-897B
-897C
-897D
-897E
-897F
-8980
-8A5B
-8A5C
-8A5D
-8A5E
-8A5F
-8A60
-8A7B
-8A7C
-8A7D
-8A7E
-8A7F
-8A80
-8B5B
-8B5C
-8B5D
-8B5E
-8B5F
-8B60
-8B7B
-8B7C
-8B7D
-8B7E
-8B7F
-8B80
-8C5B
-8C5C
-8C5D
-8C5E
-8C5F
-8C60
-8C7B
-8C7C
-8C7D
-8C7E
-8C7F
-8C80
-8D5B
-8D5C
-8D5D
-8D5E
-8D5F
-8D60
-8D7B
-8D7C
-8D7D
-8D7E
-8D7F
-8D80
-8E5B
-8E5C
-8E5D
-8E5E
-8E5F
-8E60
-8E7B
-8E7C
-8E7D
-8E7E
-8E7F
-8E80
-8F5B
-8F5C
-8F5D
-8F5E
-8F5F
-8F60
-8F7B
-8F7C
-8F7D
-8F7E
-8F7F
-8F80
-905B
-905C
-905D
-905E
-905F
-9060
-907B
-907C
-907D
-907E
-907F
-9080
-915B
-915C
-915D
-915E
-915F
-9160
-917B
-917C
-917D
-917E
-917F
-9180
-925B
-925C
-925D
-925E
-925F
-9260
-927B
-927C
-927D
-927E
-927F
-9280
-935B
-935C
-935D
-935E
-935F
-9360
-937B
-937C
-937D
-937E
-937F
-9380
-945B
-945C
-945D
-945E
-945F
-9460
-947B
-947C
-947D
-947E
-947F
-9480
-955B
-955C
-955D
-955E
-955F
-9560
-957B
-957C
-957D
-957E
-957F
-9580
-965B
-965C
-965D
-965E
-965F
-9660
-967B
-967C
-967D
-967E
-967F
-9680
-975B
-975C
-975D
-975E
-975F
-9760
-977B
-977C
-977D
-977E
-977F
-9780
-985B
-985C
-985D
-985E
-985F
-9860
-987B
-987C
-987D
-987E
-987F
-9880
-995B
-995C
-995D
-995E
-995F
-9960
-997B
-997C
-997D
-997E
-997F
-9980
-9A5B
-9A5C
-9A5D
-9A5E
-9A5F
-9A60
-9A7B
-9A7C
-9A7D
-9A7E
-9A7F
-9A80
-9B5B
-9B5C
-9B5D
-9B5E
-9B5F
-9B60
-9B7B
-9B7C
-9B7D
-9B7E
-9B7F
-9B80
-9C5B
-9C5C
-9C5D
-9C5E
-9C5F
-9C60
-9C7B
-9C7C
-9C7D
-9C7E
-9C7F
-9C80
-9D5B
-9D5C
-9D5D
-9D5E
-9D5F
-9D60
-9D7B
-9D7C
-9D7D
-9D7E
-9D7F
-9D80
-9E5B
-9E5C
-9E5D
-9E5E
-9E5F
-9E60
-9E7B
-9E7C
-9E7D
-9E7E
-9E7F
-9E80
-9F5B
-9F5C
-9F5D
-9F5E
-9F5F
-9F60
-9F7B
-9F7C
-9F7D
-9F7E
-9F7F
-9F80
-A05B
-A05C
-A05D
-A05E
-A05F
-A060
-A07B
-A07C
-A07D
-A07E
-A07F
-A080
-A15B
-A15C
-A15D
-A15E
-A15F
-A160
-A17B
-A17C
-A17D
-A17E
-A17F
-A180
-A25B
-A25C
-A25D
-A25E
-A25F
-A260
-A27B
-A27C
-A27D
-A27E
-A27F
-A280
-A35B
-A35C
-A35D
-A35E
-A35F
-A360
-A37B
-A37C
-A37D
-A37E
-A37F
-A380
-A45B
-A45C
-A45D
-A45E
-A45F
-A460
-A47B
-A47C
-A47D
-A47E
-A47F
-A480
-A55B
-A55C
-A55D
-A55E
-A55F
-A560
-A57B
-A57C
-A57D
-A57E
-A57F
-A580
-A65B
-A65C
-A65D
-A65E
-A65F
-A660
-A67B
-A67C
-A67D
-A67E
-A67F
-A680
-A75B
-A75C
-A75D
-A75E
-A75F
-A760
-A77B
-A77C
-A77D
-A77E
-A77F
-A780
-A85B
-A85C
-A85D
-A85E
-A85F
-A860
-A87B
-A87C
-A87D
-A87E
-A87F
-A880
-A95B
-A95C
-A95D
-A95E
-A95F
-A960
-A97B
-A97C
-A97D
-A97E
-A97F
-A980
-AA5B
-AA5C
-AA5D
-AA5E
-AA5F
-AA60
-AA7B
-AA7C
-AA7D
-AA7E
-AA7F
-AA80
-AB5B
-AB5C
-AB5D
-AB5E
-AB5F
-AB60
-AB7B
-AB7C
-AB7D
-AB7E
-AB7F
-AB80
-AC5B
-AC5C
-AC5D
-AC5E
-AC5F
-AC60
-AC7B
-AC7C
-AC7D
-AC7E
-AC7F
-AC80
-AD5B
-AD5C
-AD5D
-AD5E
-AD5F
-AD60
-AD7B
-AD7C
-AD7D
-AD7E
-AD7F
-AD80
-AE5B
-AE5C
-AE5D
-AE5E
-AE5F
-AE60
-AE7B
-AE7C
-AE7D
-AE7E
-AE7F
-AE80
-AF5B
-AF5C
-AF5D
-AF5E
-AF5F
-AF60
-AF7B
-AF7C
-AF7D
-AF7E
-AF7F
-AF80
-B05B
-B05C
-B05D
-B05E
-B05F
-B060
-B07B
-B07C
-B07D
-B07E
-B07F
-B080
-B15B
-B15C
-B15D
-B15E
-B15F
-B160
-B17B
-B17C
-B17D
-B17E
-B17F
-B180
-B25B
-B25C
-B25D
-B25E
-B25F
-B260
-B27B
-B27C
-B27D
-B27E
-B27F
-B280
-B35B
-B35C
-B35D
-B35E
-B35F
-B360
-B37B
-B37C
-B37D
-B37E
-B37F
-B380
-B45B
-B45C
-B45D
-B45E
-B45F
-B460
-B47B
-B47C
-B47D
-B47E
-B47F
-B480
-B55B
-B55C
-B55D
-B55E
-B55F
-B560
-B57B
-B57C
-B57D
-B57E
-B57F
-B580
-B65B
-B65C
-B65D
-B65E
-B65F
-B660
-B67B
-B67C
-B67D
-B67E
-B67F
-B680
-B75B
-B75C
-B75D
-B75E
-B75F
-B760
-B77B
-B77C
-B77D
-B77E
-B77F
-B780
-B85B
-B85C
-B85D
-B85E
-B85F
-B860
-B87B
-B87C
-B87D
-B87E
-B87F
-B880
-B95B
-B95C
-B95D
-B95E
-B95F
-B960
-B97B
-B97C
-B97D
-B97E
-B97F
-B980
-BA5B
-BA5C
-BA5D
-BA5E
-BA5F
-BA60
-BA7B
-BA7C
-BA7D
-BA7E
-BA7F
-BA80
-BB5B
-BB5C
-BB5D
-BB5E
-BB5F
-BB60
-BB7B
-BB7C
-BB7D
-BB7E
-BB7F
-BB80
-BC5B
-BC5C
-BC5D
-BC5E
-BC5F
-BC60
-BC7B
-BC7C
-BC7D
-BC7E
-BC7F
-BC80
-BD5B
-BD5C
-BD5D
-BD5E
-BD5F
-BD60
-BD7B
-BD7C
-BD7D
-BD7E
-BD7F
-BD80
-BE5B
-BE5C
-BE5D
-BE5E
-BE5F
-BE60
-BE7B
-BE7C
-BE7D
-BE7E
-BE7F
-BE80
-BF5B
-BF5C
-BF5D
-BF5E
-BF5F
-BF60
-BF7B
-BF7C
-BF7D
-BF7E
-BF7F
-BF80
-C05B
-C05C
-C05D
-C05E
-C05F
-C060
-C07B
-C07C
-C07D
-C07E
-C07F
-C080
-C15B
-C15C
-C15D
-C15E
-C15F
-C160
-C17B
-C17C
-C17D
-C17E
-C17F
-C180
-C25B
-C25C
-C25D
-C25E
-C25F
-C260
-C27B
-C27C
-C27D
-C27E
-C27F
-C280
-C35B
-C35C
-C35D
-C35E
-C35F
-C360
-C37B
-C37C
-C37D
-C37E
-C37F
-C380
-C45B
-C45C
-C45D
-C45E
-C45F
-C460
-C47B
-C47C
-C47D
-C47E
-C47F
-C480
-C55B
-C55C
-C55D
-C55E
-C55F
-C560
-C57B
-C57C
-C57D
-C57E
-C57F
-C580
-C65B
-C65C
-C65D
-C65E
-C65F
-C660
-C67B
-C67C
-C67D
-C67E
-C67F
-C680
-C75B
-C75C
-C75D
-C75E
-C75F
-C760
-C77B
-C77C
-C77D
-C77E
-C77F
-C780
-C85B
-C85C
-C85D
-C85E
-C85F
-C860
-C87B
-C87C
-C87D
-C87E
-C87F
-C880
-C95B
-C95C
-C95D
-C95E
-C95F
-C960
-C97B
-C97C
-C97D
-C97E
-C97F
-C980
-CA5B
-CA5C
-CA5D
-CA5E
-CA5F
-CA60
-CA7B
-CA7C
-CA7D
-CA7E
-CA7F
-CA80
-CB5B
-CB5C
-CB5D
-CB5E
-CB5F
-CB60
-CB7B
-CB7C
-CB7D
-CB7E
-CB7F
-CB80
-CC5B
-CC5C
-CC5D
-CC5E
-CC5F
-CC60
-CC7B
-CC7C
-CC7D
-CC7E
-CC7F
-CC80
-CD5B
-CD5C
-CD5D
-CD5E
-CD5F
-CD60
-CD7B
-CD7C
-CD7D
-CD7E
-CD7F
-CD80
-CE5B
-CE5C
-CE5D
-CE5E
-CE5F
-CE60
-CE7B
-CE7C
-CE7D
-CE7E
-CE7F
-CE80
-CF5B
-CF5C
-CF5D
-CF5E
-CF5F
-CF60
-CF7B
-CF7C
-CF7D
-CF7E
-CF7F
-CF80
-D05B
-D05C
-D05D
-D05E
-D05F
-D060
-D07B
-D07C
-D07D
-D07E
-D07F
-D080
-D15B
-D15C
-D15D
-D15E
-D15F
-D160
-D17B
-D17C
-D17D
-D17E
-D17F
-D180
-D25B
-D25C
-D25D
-D25E
-D25F
-D260
-D27B
-D27C
-D27D
-D27E
-D27F
-D280
-D35B
-D35C
-D35D
-D35E
-D35F
-D360
-D37B
-D37C
-D37D
-D37E
-D37F
-D380
-D45B
-D45C
-D45D
-D45E
-D45F
-D460
-D47B
-D47C
-D47D
-D47E
-D47F
-D480
-D55B
-D55C
-D55D
-D55E
-D55F
-D560
-D57B
-D57C
-D57D
-D57E
-D57F
-D580
-D65B
-D65C
-D65D
-D65E
-D65F
-D660
-D67B
-D67C
-D67D
-D67E
-D67F
-D680
-D75B
-D75C
-D75D
-D75E
-D75F
-D760
-D77B
-D77C
-D77D
-D77E
-D77F
-D780
-D85B
-D85C
-D85D
-D85E
-D85F
-D860
-D87B
-D87C
-D87D
-D87E
-D87F
-D880
-D95B
-D95C
-D95D
-D95E
-D95F
-D960
-D97B
-D97C
-D97D
-D97E
-D97F
-D980
-DA5B
-DA5C
-DA5D
-DA5E
-DA5F
-DA60
-DA7B
-DA7C
-DA7D
-DA7E
-DA7F
-DA80
-DB5B
-DB5C
-DB5D
-DB5E
-DB5F
-DB60
-DB7B
-DB7C
-DB7D
-DB7E
-DB7F
-DB80
-DC5B
-DC5C
-DC5D
-DC5E
-DC5F
-DC60
-DC7B
-DC7C
-DC7D
-DC7E
-DC7F
-DC80
-DD5B
-DD5C
-DD5D
-DD5E
-DD5F
-DD60
-DD7B
-DD7C
-DD7D
-DD7E
-DD7F
-DD80
-DE5B
-DE5C
-DE5D
-DE5E
-DE5F
-DE60
-DE7B
-DE7C
-DE7D
-DE7E
-DE7F
-DE80
-DF5B
-DF5C
-DF5D
-DF5E
-DF5F
-DF60
-DF7B
-DF7C
-DF7D
-DF7E
-DF7F
-DF80
-E05B
-E05C
-E05D
-E05E
-E05F
-E060
-E07B
-E07C
-E07D
-E07E
-E07F
-E080
-E15B
-E15C
-E15D
-E15E
-E15F
-E160
-E17B
-E17C
-E17D
-E17E
-E17F
-E180
-E25B
-E25C
-E25D
-E25E
-E25F
-E260
-E27B
-E27C
-E27D
-E27E
-E27F
-E280
-E35B
-E35C
-E35D
-E35E
-E35F
-E360
-E37B
-E37C
-E37D
-E37E
-E37F
-E380
-E45B
-E45C
-E45D
-E45E
-E45F
-E460
-E47B
-E47C
-E47D
-E47E
-E47F
-E480
-E55B
-E55C
-E55D
-E55E
-E55F
-E560
-E57B
-E57C
-E57D
-E57E
-E57F
-E580
-E65B
-E65C
-E65D
-E65E
-E65F
-E660
-E67B
-E67C
-E67D
-E67E
-E67F
-E680
-E75B
-E75C
-E75D
-E75E
-E75F
-E760
-E77B
-E77C
-E77D
-E77E
-E77F
-E780
-E85B
-E85C
-E85D
-E85E
-E85F
-E860
-E87B
-E87C
-E87D
-E87E
-E87F
-E880
-E95B
-E95C
-E95D
-E95E
-E95F
-E960
-E97B
-E97C
-E97D
-E97E
-E97F
-E980
-EA5B
-EA5C
-EA5D
-EA5E
-EA5F
-EA60
-EA7B
-EA7C
-EA7D
-EA7E
-EA7F
-EA80
-EB5B
-EB5C
-EB5D
-EB5E
-EB5F
-EB60
-EB7B
-EB7C
-EB7D
-EB7E
-EB7F
-EB80
-EC5B
-EC5C
-EC5D
-EC5E
-EC5F
-EC60
-EC7B
-EC7C
-EC7D
-EC7E
-EC7F
-EC80
-ED5B
-ED5C
-ED5D
-ED5E
-ED5F
-ED60
-ED7B
-ED7C
-ED7D
-ED7E
-ED7F
-ED80
-EE5B
-EE5C
-EE5D
-EE5E
-EE5F
-EE60
-EE7B
-EE7C
-EE7D
-EE7E
-EE7F
-EE80
-EF5B
-EF5C
-EF5D
-EF5E
-EF5F
-EF60
-EF7B
-EF7C
-EF7D
-EF7E
-EF7F
-EF80
-F05B
-F05C
-F05D
-F05E
-F05F
-F060
-F07B
-F07C
-F07D
-F07E
-F07F
-F080
-F15B
-F15C
-F15D
-F15E
-F15F
-F160
-F17B
-F17C
-F17D
-F17E
-F17F
-F180
-F25B
-F25C
-F25D
-F25E
-F25F
-F260
-F27B
-F27C
-F27D
-F27E
-F27F
-F280
-F35B
-F35C
-F35D
-F35E
-F35F
-F360
-F37B
-F37C
-F37D
-F37E
-F37F
-F380
-F45B
-F45C
-F45D
-F45E
-F45F
-F460
-F47B
-F47C
-F47D
-F47E
-F47F
-F480
-F55B
-F55C
-F55D
-F55E
-F55F
-F560
-F57B
-F57C
-F57D
-F57E
-F57F
-F580
-F65B
-F65C
-F65D
-F65E
-F65F
-F660
-F67B
-F67C
-F67D
-F67E
-F67F
-F680
-F75B
-F75C
-F75D
-F75E
-F75F
-F760
-F77B
-F77C
-F77D
-F77E
-F77F
-F780
-F85B
-F85C
-F85D
-F85E
-F85F
-F860
-F87B
-F87C
-F87D
-F87E
-F87F
-F880
-F95B
-F95C
-F95D
-F95E
-F95F
-F960
-F97B
-F97C
-F97D
-F97E
-F97F
-F980
-FA5B
-FA5C
-FA5D
-FA5E
-FA5F
-FA60
-FA7B
-FA7C
-FA7D
-FA7E
-FA7F
-FA80
-FB5B
-FB5C
-FB5D
-FB5E
-FB5F
-FB60
-FB7B
-FB7C
-FB7D
-FB7E
-FB7F
-FB80
-FC5B
-FC5C
-FC5D
-FC5E
-FC5F
-FC60
-FC7B
-FC7C
-FC7D
-FC7E
-FC7F
-FC80
-FD5B
-FD5C
-FD5D
-FD5E
-FD5F
-FD60
-FD7B
-FD7C
-FD7D
-FD7E
-FD7F
-FD80
-FE5B
-FE5C
-FE5D
-FE5E
-FE5F
-FE60
-FE7B
-FE7C
-FE7D
-FE7E
-FE7F
-FE80
-DELETE FROM t2 WHERE a='?';
-ALTER TABLE t2 ADD u VARCHAR(1) CHARACTER SET utf8, ADD a2 VARCHAR(1) CHARACTER SET euckr;
-UPDATE IGNORE t2 SET u=a, a2=u;
-SELECT s as unassigned_code FROM t2 WHERE u='?';
-unassigned_code
-A2E8
-A2E9
-A2EA
-A2EB
-A2EC
-A2ED
-A2EE
-A2EF
-A2F0
-A2F1
-A2F2
-A2F3
-A2F4
-A2F5
-A2F6
-A2F7
-A2F8
-A2F9
-A2FA
-A2FB
-A2FC
-A2FD
-A2FE
-A5AB
-A5AC
-A5AD
-A5AE
-A5AF
-A5BA
-A5BB
-A5BC
-A5BD
-A5BE
-A5BF
-A5C0
-A5D9
-A5DA
-A5DB
-A5DC
-A5DD
-A5DE
-A5DF
-A5E0
-A5F9
-A5FA
-A5FB
-A5FC
-A5FD
-A5FE
-A6E5
-A6E6
-A6E7
-A6E8
-A6E9
-A6EA
-A6EB
-A6EC
-A6ED
-A6EE
-A6EF
-A6F0
-A6F1
-A6F2
-A6F3
-A6F4
-A6F5
-A6F6
-A6F7
-A6F8
-A6F9
-A6FA
-A6FB
-A6FC
-A6FD
-A6FE
-A7F0
-A7F1
-A7F2
-A7F3
-A7F4
-A7F5
-A7F6
-A7F7
-A7F8
-A7F9
-A7FA
-A7FB
-A7FC
-A7FD
-A7FE
-A8A5
-A8A7
-A8B0
-AAF4
-AAF5
-AAF6
-AAF7
-AAF8
-AAF9
-AAFA
-AAFB
-AAFC
-AAFD
-AAFE
-ABF7
-ABF8
-ABF9
-ABFA
-ABFB
-ABFC
-ABFD
-ABFE
-ACC2
-ACC3
-ACC4
-ACC5
-ACC6
-ACC7
-ACC8
-ACC9
-ACCA
-ACCB
-ACCC
-ACCD
-ACCE
-ACCF
-ACD0
-ACF2
-ACF3
-ACF4
-ACF5
-ACF6
-ACF7
-ACF8
-ACF9
-ACFA
-ACFB
-ACFC
-ACFD
-ACFE
-ADA1
-ADA2
-ADA3
-ADA4
-ADA5
-ADA6
-ADA7
-ADA8
-ADA9
-ADAA
-ADAB
-ADAC
-ADAD
-ADAE
-ADAF
-ADB0
-ADB1
-ADB2
-ADB3
-ADB4
-ADB5
-ADB6
-ADB7
-ADB8
-ADB9
-ADBA
-ADBB
-ADBC
-ADBD
-ADBE
-ADBF
-ADC0
-ADC1
-ADC2
-ADC3
-ADC4
-ADC5
-ADC6
-ADC7
-ADC8
-ADC9
-ADCA
-ADCB
-ADCC
-ADCD
-ADCE
-ADCF
-ADD0
-ADD1
-ADD2
-ADD3
-ADD4
-ADD5
-ADD6
-ADD7
-ADD8
-ADD9
-ADDA
-ADDB
-ADDC
-ADDD
-ADDE
-ADDF
-ADE0
-ADE1
-ADE2
-ADE3
-ADE4
-ADE5
-ADE6
-ADE7
-ADE8
-ADE9
-ADEA
-ADEB
-ADEC
-ADED
-ADEE
-ADEF
-ADF0
-ADF1
-ADF2
-ADF3
-ADF4
-ADF5
-ADF6
-ADF7
-ADF8
-ADF9
-ADFA
-ADFB
-ADFC
-ADFD
-ADFE
-AEA1
-AEA2
-AEA3
-AEA4
-AEA5
-AEA6
-AEA7
-AEA8
-AEA9
-AEAA
-AEAB
-AEAC
-AEAD
-AEAE
-AEAF
-AEB0
-AEB1
-AEB2
-AEB3
-AEB4
-AEB5
-AEB6
-AEB7
-AEB8
-AEB9
-AEBA
-AEBB
-AEBC
-AEBD
-AEBE
-AEBF
-AEC0
-AEC1
-AEC2
-AEC3
-AEC4
-AEC5
-AEC6
-AEC7
-AEC8
-AEC9
-AECA
-AECB
-AECC
-AECD
-AECE
-AECF
-AED0
-AED1
-AED2
-AED3
-AED4
-AED5
-AED6
-AED7
-AED8
-AED9
-AEDA
-AEDB
-AEDC
-AEDD
-AEDE
-AEDF
-AEE0
-AEE1
-AEE2
-AEE3
-AEE4
-AEE5
-AEE6
-AEE7
-AEE8
-AEE9
-AEEA
-AEEB
-AEEC
-AEED
-AEEE
-AEEF
-AEF0
-AEF1
-AEF2
-AEF3
-AEF4
-AEF5
-AEF6
-AEF7
-AEF8
-AEF9
-AEFA
-AEFB
-AEFC
-AEFD
-AEFE
-AFA1
-AFA2
-AFA3
-AFA4
-AFA5
-AFA6
-AFA7
-AFA8
-AFA9
-AFAA
-AFAB
-AFAC
-AFAD
-AFAE
-AFAF
-AFB0
-AFB1
-AFB2
-AFB3
-AFB4
-AFB5
-AFB6
-AFB7
-AFB8
-AFB9
-AFBA
-AFBB
-AFBC
-AFBD
-AFBE
-AFBF
-AFC0
-AFC1
-AFC2
-AFC3
-AFC4
-AFC5
-AFC6
-AFC7
-AFC8
-AFC9
-AFCA
-AFCB
-AFCC
-AFCD
-AFCE
-AFCF
-AFD0
-AFD1
-AFD2
-AFD3
-AFD4
-AFD5
-AFD6
-AFD7
-AFD8
-AFD9
-AFDA
-AFDB
-AFDC
-AFDD
-AFDE
-AFDF
-AFE0
-AFE1
-AFE2
-AFE3
-AFE4
-AFE5
-AFE6
-AFE7
-AFE8
-AFE9
-AFEA
-AFEB
-AFEC
-AFED
-AFEE
-AFEF
-AFF0
-AFF1
-AFF2
-AFF3
-AFF4
-AFF5
-AFF6
-AFF7
-AFF8
-AFF9
-AFFA
-AFFB
-AFFC
-AFFD
-AFFE
-C653
-C654
-C655
-C656
-C657
-C658
-C659
-C65A
-C661
-C662
-C663
-C664
-C665
-C666
-C667
-C668
-C669
-C66A
-C66B
-C66C
-C66D
-C66E
-C66F
-C670
-C671
-C672
-C673
-C674
-C675
-C676
-C677
-C678
-C679
-C67A
-C681
-C682
-C683
-C684
-C685
-C686
-C687
-C688
-C689
-C68A
-C68B
-C68C
-C68D
-C68E
-C68F
-C690
-C691
-C692
-C693
-C694
-C695
-C696
-C697
-C698
-C699
-C69A
-C69B
-C69C
-C69D
-C69E
-C69F
-C6A0
-C741
-C742
-C743
-C744
-C745
-C746
-C747
-C748
-C749
-C74A
-C74B
-C74C
-C74D
-C74E
-C74F
-C750
-C751
-C752
-C753
-C754
-C755
-C756
-C757
-C758
-C759
-C75A
-C761
-C762
-C763
-C764
-C765
-C766
-C767
-C768
-C769
-C76A
-C76B
-C76C
-C76D
-C76E
-C76F
-C770
-C771
-C772
-C773
-C774
-C775
-C776
-C777
-C778
-C779
-C77A
-C781
-C782
-C783
-C784
-C785
-C786
-C787
-C788
-C789
-C78A
-C78B
-C78C
-C78D
-C78E
-C78F
-C790
-C791
-C792
-C793
-C794
-C795
-C796
-C797
-C798
-C799
-C79A
-C79B
-C79C
-C79D
-C79E
-C79F
-C7A0
-C841
-C842
-C843
-C844
-C845
-C846
-C847
-C848
-C849
-C84A
-C84B
-C84C
-C84D
-C84E
-C84F
-C850
-C851
-C852
-C853
-C854
-C855
-C856
-C857
-C858
-C859
-C85A
-C861
-C862
-C863
-C864
-C865
-C866
-C867
-C868
-C869
-C86A
-C86B
-C86C
-C86D
-C86E
-C86F
-C870
-C871
-C872
-C873
-C874
-C875
-C876
-C877
-C878
-C879
-C87A
-C881
-C882
-C883
-C884
-C885
-C886
-C887
-C888
-C889
-C88A
-C88B
-C88C
-C88D
-C88E
-C88F
-C890
-C891
-C892
-C893
-C894
-C895
-C896
-C897
-C898
-C899
-C89A
-C89B
-C89C
-C89D
-C89E
-C89F
-C8A0
-C941
-C942
-C943
-C944
-C945
-C946
-C947
-C948
-C949
-C94A
-C94B
-C94C
-C94D
-C94E
-C94F
-C950
-C951
-C952
-C953
-C954
-C955
-C956
-C957
-C958
-C959
-C95A
-C961
-C962
-C963
-C964
-C965
-C966
-C967
-C968
-C969
-C96A
-C96B
-C96C
-C96D
-C96E
-C96F
-C970
-C971
-C972
-C973
-C974
-C975
-C976
-C977
-C978
-C979
-C97A
-C981
-C982
-C983
-C984
-C985
-C986
-C987
-C988
-C989
-C98A
-C98B
-C98C
-C98D
-C98E
-C98F
-C990
-C991
-C992
-C993
-C994
-C995
-C996
-C997
-C998
-C999
-C99A
-C99B
-C99C
-C99D
-C99E
-C99F
-C9A0
-C9A1
-C9A2
-C9A3
-C9A4
-C9A5
-C9A6
-C9A7
-C9A8
-C9A9
-C9AA
-C9AB
-C9AC
-C9AD
-C9AE
-C9AF
-C9B0
-C9B1
-C9B2
-C9B3
-C9B4
-C9B5
-C9B6
-C9B7
-C9B8
-C9B9
-C9BA
-C9BB
-C9BC
-C9BD
-C9BE
-C9BF
-C9C0
-C9C1
-C9C2
-C9C3
-C9C4
-C9C5
-C9C6
-C9C7
-C9C8
-C9C9
-C9CA
-C9CB
-C9CC
-C9CD
-C9CE
-C9CF
-C9D0
-C9D1
-C9D2
-C9D3
-C9D4
-C9D5
-C9D6
-C9D7
-C9D8
-C9D9
-C9DA
-C9DB
-C9DC
-C9DD
-C9DE
-C9DF
-C9E0
-C9E1
-C9E2
-C9E3
-C9E4
-C9E5
-C9E6
-C9E7
-C9E8
-C9E9
-C9EA
-C9EB
-C9EC
-C9ED
-C9EE
-C9EF
-C9F0
-C9F1
-C9F2
-C9F3
-C9F4
-C9F5
-C9F6
-C9F7
-C9F8
-C9F9
-C9FA
-C9FB
-C9FC
-C9FD
-C9FE
-CA41
-CA42
-CA43
-CA44
-CA45
-CA46
-CA47
-CA48
-CA49
-CA4A
-CA4B
-CA4C
-CA4D
-CA4E
-CA4F
-CA50
-CA51
-CA52
-CA53
-CA54
-CA55
-CA56
-CA57
-CA58
-CA59
-CA5A
-CA61
-CA62
-CA63
-CA64
-CA65
-CA66
-CA67
-CA68
-CA69
-CA6A
-CA6B
-CA6C
-CA6D
-CA6E
-CA6F
-CA70
-CA71
-CA72
-CA73
-CA74
-CA75
-CA76
-CA77
-CA78
-CA79
-CA7A
-CA81
-CA82
-CA83
-CA84
-CA85
-CA86
-CA87
-CA88
-CA89
-CA8A
-CA8B
-CA8C
-CA8D
-CA8E
-CA8F
-CA90
-CA91
-CA92
-CA93
-CA94
-CA95
-CA96
-CA97
-CA98
-CA99
-CA9A
-CA9B
-CA9C
-CA9D
-CA9E
-CA9F
-CAA0
-CB41
-CB42
-CB43
-CB44
-CB45
-CB46
-CB47
-CB48
-CB49
-CB4A
-CB4B
-CB4C
-CB4D
-CB4E
-CB4F
-CB50
-CB51
-CB52
-CB53
-CB54
-CB55
-CB56
-CB57
-CB58
-CB59
-CB5A
-CB61
-CB62
-CB63
-CB64
-CB65
-CB66
-CB67
-CB68
-CB69
-CB6A
-CB6B
-CB6C
-CB6D
-CB6E
-CB6F
-CB70
-CB71
-CB72
-CB73
-CB74
-CB75
-CB76
-CB77
-CB78
-CB79
-CB7A
-CB81
-CB82
-CB83
-CB84
-CB85
-CB86
-CB87
-CB88
-CB89
-CB8A
-CB8B
-CB8C
-CB8D
-CB8E
-CB8F
-CB90
-CB91
-CB92
-CB93
-CB94
-CB95
-CB96
-CB97
-CB98
-CB99
-CB9A
-CB9B
-CB9C
-CB9D
-CB9E
-CB9F
-CBA0
-CC41
-CC42
-CC43
-CC44
-CC45
-CC46
-CC47
-CC48
-CC49
-CC4A
-CC4B
-CC4C
-CC4D
-CC4E
-CC4F
-CC50
-CC51
-CC52
-CC53
-CC54
-CC55
-CC56
-CC57
-CC58
-CC59
-CC5A
-CC61
-CC62
-CC63
-CC64
-CC65
-CC66
-CC67
-CC68
-CC69
-CC6A
-CC6B
-CC6C
-CC6D
-CC6E
-CC6F
-CC70
-CC71
-CC72
-CC73
-CC74
-CC75
-CC76
-CC77
-CC78
-CC79
-CC7A
-CC81
-CC82
-CC83
-CC84
-CC85
-CC86
-CC87
-CC88
-CC89
-CC8A
-CC8B
-CC8C
-CC8D
-CC8E
-CC8F
-CC90
-CC91
-CC92
-CC93
-CC94
-CC95
-CC96
-CC97
-CC98
-CC99
-CC9A
-CC9B
-CC9C
-CC9D
-CC9E
-CC9F
-CCA0
-CD41
-CD42
-CD43
-CD44
-CD45
-CD46
-CD47
-CD48
-CD49
-CD4A
-CD4B
-CD4C
-CD4D
-CD4E
-CD4F
-CD50
-CD51
-CD52
-CD53
-CD54
-CD55
-CD56
-CD57
-CD58
-CD59
-CD5A
-CD61
-CD62
-CD63
-CD64
-CD65
-CD66
-CD67
-CD68
-CD69
-CD6A
-CD6B
-CD6C
-CD6D
-CD6E
-CD6F
-CD70
-CD71
-CD72
-CD73
-CD74
-CD75
-CD76
-CD77
-CD78
-CD79
-CD7A
-CD81
-CD82
-CD83
-CD84
-CD85
-CD86
-CD87
-CD88
-CD89
-CD8A
-CD8B
-CD8C
-CD8D
-CD8E
-CD8F
-CD90
-CD91
-CD92
-CD93
-CD94
-CD95
-CD96
-CD97
-CD98
-CD99
-CD9A
-CD9B
-CD9C
-CD9D
-CD9E
-CD9F
-CDA0
-CE41
-CE42
-CE43
-CE44
-CE45
-CE46
-CE47
-CE48
-CE49
-CE4A
-CE4B
-CE4C
-CE4D
-CE4E
-CE4F
-CE50
-CE51
-CE52
-CE53
-CE54
-CE55
-CE56
-CE57
-CE58
-CE59
-CE5A
-CE61
-CE62
-CE63
-CE64
-CE65
-CE66
-CE67
-CE68
-CE69
-CE6A
-CE6B
-CE6C
-CE6D
-CE6E
-CE6F
-CE70
-CE71
-CE72
-CE73
-CE74
-CE75
-CE76
-CE77
-CE78
-CE79
-CE7A
-CE81
-CE82
-CE83
-CE84
-CE85
-CE86
-CE87
-CE88
-CE89
-CE8A
-CE8B
-CE8C
-CE8D
-CE8E
-CE8F
-CE90
-CE91
-CE92
-CE93
-CE94
-CE95
-CE96
-CE97
-CE98
-CE99
-CE9A
-CE9B
-CE9C
-CE9D
-CE9E
-CE9F
-CEA0
-CF41
-CF42
-CF43
-CF44
-CF45
-CF46
-CF47
-CF48
-CF49
-CF4A
-CF4B
-CF4C
-CF4D
-CF4E
-CF4F
-CF50
-CF51
-CF52
-CF53
-CF54
-CF55
-CF56
-CF57
-CF58
-CF59
-CF5A
-CF61
-CF62
-CF63
-CF64
-CF65
-CF66
-CF67
-CF68
-CF69
-CF6A
-CF6B
-CF6C
-CF6D
-CF6E
-CF6F
-CF70
-CF71
-CF72
-CF73
-CF74
-CF75
-CF76
-CF77
-CF78
-CF79
-CF7A
-CF81
-CF82
-CF83
-CF84
-CF85
-CF86
-CF87
-CF88
-CF89
-CF8A
-CF8B
-CF8C
-CF8D
-CF8E
-CF8F
-CF90
-CF91
-CF92
-CF93
-CF94
-CF95
-CF96
-CF97
-CF98
-CF99
-CF9A
-CF9B
-CF9C
-CF9D
-CF9E
-CF9F
-CFA0
-D041
-D042
-D043
-D044
-D045
-D046
-D047
-D048
-D049
-D04A
-D04B
-D04C
-D04D
-D04E
-D04F
-D050
-D051
-D052
-D053
-D054
-D055
-D056
-D057
-D058
-D059
-D05A
-D061
-D062
-D063
-D064
-D065
-D066
-D067
-D068
-D069
-D06A
-D06B
-D06C
-D06D
-D06E
-D06F
-D070
-D071
-D072
-D073
-D074
-D075
-D076
-D077
-D078
-D079
-D07A
-D081
-D082
-D083
-D084
-D085
-D086
-D087
-D088
-D089
-D08A
-D08B
-D08C
-D08D
-D08E
-D08F
-D090
-D091
-D092
-D093
-D094
-D095
-D096
-D097
-D098
-D099
-D09A
-D09B
-D09C
-D09D
-D09E
-D09F
-D0A0
-D141
-D142
-D143
-D144
-D145
-D146
-D147
-D148
-D149
-D14A
-D14B
-D14C
-D14D
-D14E
-D14F
-D150
-D151
-D152
-D153
-D154
-D155
-D156
-D157
-D158
-D159
-D15A
-D161
-D162
-D163
-D164
-D165
-D166
-D167
-D168
-D169
-D16A
-D16B
-D16C
-D16D
-D16E
-D16F
-D170
-D171
-D172
-D173
-D174
-D175
-D176
-D177
-D178
-D179
-D17A
-D181
-D182
-D183
-D184
-D185
-D186
-D187
-D188
-D189
-D18A
-D18B
-D18C
-D18D
-D18E
-D18F
-D190
-D191
-D192
-D193
-D194
-D195
-D196
-D197
-D198
-D199
-D19A
-D19B
-D19C
-D19D
-D19E
-D19F
-D1A0
-D241
-D242
-D243
-D244
-D245
-D246
-D247
-D248
-D249
-D24A
-D24B
-D24C
-D24D
-D24E
-D24F
-D250
-D251
-D252
-D253
-D254
-D255
-D256
-D257
-D258
-D259
-D25A
-D261
-D262
-D263
-D264
-D265
-D266
-D267
-D268
-D269
-D26A
-D26B
-D26C
-D26D
-D26E
-D26F
-D270
-D271
-D272
-D273
-D274
-D275
-D276
-D277
-D278
-D279
-D27A
-D281
-D282
-D283
-D284
-D285
-D286
-D287
-D288
-D289
-D28A
-D28B
-D28C
-D28D
-D28E
-D28F
-D290
-D291
-D292
-D293
-D294
-D295
-D296
-D297
-D298
-D299
-D29A
-D29B
-D29C
-D29D
-D29E
-D29F
-D2A0
-D341
-D342
-D343
-D344
-D345
-D346
-D347
-D348
-D349
-D34A
-D34B
-D34C
-D34D
-D34E
-D34F
-D350
-D351
-D352
-D353
-D354
-D355
-D356
-D357
-D358
-D359
-D35A
-D361
-D362
-D363
-D364
-D365
-D366
-D367
-D368
-D369
-D36A
-D36B
-D36C
-D36D
-D36E
-D36F
-D370
-D371
-D372
-D373
-D374
-D375
-D376
-D377
-D378
-D379
-D37A
-D381
-D382
-D383
-D384
-D385
-D386
-D387
-D388
-D389
-D38A
-D38B
-D38C
-D38D
-D38E
-D38F
-D390
-D391
-D392
-D393
-D394
-D395
-D396
-D397
-D398
-D399
-D39A
-D39B
-D39C
-D39D
-D39E
-D39F
-D3A0
-D441
-D442
-D443
-D444
-D445
-D446
-D447
-D448
-D449
-D44A
-D44B
-D44C
-D44D
-D44E
-D44F
-D450
-D451
-D452
-D453
-D454
-D455
-D456
-D457
-D458
-D459
-D45A
-D461
-D462
-D463
-D464
-D465
-D466
-D467
-D468
-D469
-D46A
-D46B
-D46C
-D46D
-D46E
-D46F
-D470
-D471
-D472
-D473
-D474
-D475
-D476
-D477
-D478
-D479
-D47A
-D481
-D482
-D483
-D484
-D485
-D486
-D487
-D488
-D489
-D48A
-D48B
-D48C
-D48D
-D48E
-D48F
-D490
-D491
-D492
-D493
-D494
-D495
-D496
-D497
-D498
-D499
-D49A
-D49B
-D49C
-D49D
-D49E
-D49F
-D4A0
-D541
-D542
-D543
-D544
-D545
-D546
-D547
-D548
-D549
-D54A
-D54B
-D54C
-D54D
-D54E
-D54F
-D550
-D551
-D552
-D553
-D554
-D555
-D556
-D557
-D558
-D559
-D55A
-D561
-D562
-D563
-D564
-D565
-D566
-D567
-D568
-D569
-D56A
-D56B
-D56C
-D56D
-D56E
-D56F
-D570
-D571
-D572
-D573
-D574
-D575
-D576
-D577
-D578
-D579
-D57A
-D581
-D582
-D583
-D584
-D585
-D586
-D587
-D588
-D589
-D58A
-D58B
-D58C
-D58D
-D58E
-D58F
-D590
-D591
-D592
-D593
-D594
-D595
-D596
-D597
-D598
-D599
-D59A
-D59B
-D59C
-D59D
-D59E
-D59F
-D5A0
-D641
-D642
-D643
-D644
-D645
-D646
-D647
-D648
-D649
-D64A
-D64B
-D64C
-D64D
-D64E
-D64F
-D650
-D651
-D652
-D653
-D654
-D655
-D656
-D657
-D658
-D659
-D65A
-D661
-D662
-D663
-D664
-D665
-D666
-D667
-D668
-D669
-D66A
-D66B
-D66C
-D66D
-D66E
-D66F
-D670
-D671
-D672
-D673
-D674
-D675
-D676
-D677
-D678
-D679
-D67A
-D681
-D682
-D683
-D684
-D685
-D686
-D687
-D688
-D689
-D68A
-D68B
-D68C
-D68D
-D68E
-D68F
-D690
-D691
-D692
-D693
-D694
-D695
-D696
-D697
-D698
-D699
-D69A
-D69B
-D69C
-D69D
-D69E
-D69F
-D6A0
-D741
-D742
-D743
-D744
-D745
-D746
-D747
-D748
-D749
-D74A
-D74B
-D74C
-D74D
-D74E
-D74F
-D750
-D751
-D752
-D753
-D754
-D755
-D756
-D757
-D758
-D759
-D75A
-D761
-D762
-D763
-D764
-D765
-D766
-D767
-D768
-D769
-D76A
-D76B
-D76C
-D76D
-D76E
-D76F
-D770
-D771
-D772
-D773
-D774
-D775
-D776
-D777
-D778
-D779
-D77A
-D781
-D782
-D783
-D784
-D785
-D786
-D787
-D788
-D789
-D78A
-D78B
-D78C
-D78D
-D78E
-D78F
-D790
-D791
-D792
-D793
-D794
-D795
-D796
-D797
-D798
-D799
-D79A
-D79B
-D79C
-D79D
-D79E
-D79F
-D7A0
-D841
-D842
-D843
-D844
-D845
-D846
-D847
-D848
-D849
-D84A
-D84B
-D84C
-D84D
-D84E
-D84F
-D850
-D851
-D852
-D853
-D854
-D855
-D856
-D857
-D858
-D859
-D85A
-D861
-D862
-D863
-D864
-D865
-D866
-D867
-D868
-D869
-D86A
-D86B
-D86C
-D86D
-D86E
-D86F
-D870
-D871
-D872
-D873
-D874
-D875
-D876
-D877
-D878
-D879
-D87A
-D881
-D882
-D883
-D884
-D885
-D886
-D887
-D888
-D889
-D88A
-D88B
-D88C
-D88D
-D88E
-D88F
-D890
-D891
-D892
-D893
-D894
-D895
-D896
-D897
-D898
-D899
-D89A
-D89B
-D89C
-D89D
-D89E
-D89F
-D8A0
-D941
-D942
-D943
-D944
-D945
-D946
-D947
-D948
-D949
-D94A
-D94B
-D94C
-D94D
-D94E
-D94F
-D950
-D951
-D952
-D953
-D954
-D955
-D956
-D957
-D958
-D959
-D95A
-D961
-D962
-D963
-D964
-D965
-D966
-D967
-D968
-D969
-D96A
-D96B
-D96C
-D96D
-D96E
-D96F
-D970
-D971
-D972
-D973
-D974
-D975
-D976
-D977
-D978
-D979
-D97A
-D981
-D982
-D983
-D984
-D985
-D986
-D987
-D988
-D989
-D98A
-D98B
-D98C
-D98D
-D98E
-D98F
-D990
-D991
-D992
-D993
-D994
-D995
-D996
-D997
-D998
-D999
-D99A
-D99B
-D99C
-D99D
-D99E
-D99F
-D9A0
-DA41
-DA42
-DA43
-DA44
-DA45
-DA46
-DA47
-DA48
-DA49
-DA4A
-DA4B
-DA4C
-DA4D
-DA4E
-DA4F
-DA50
-DA51
-DA52
-DA53
-DA54
-DA55
-DA56
-DA57
-DA58
-DA59
-DA5A
-DA61
-DA62
-DA63
-DA64
-DA65
-DA66
-DA67
-DA68
-DA69
-DA6A
-DA6B
-DA6C
-DA6D
-DA6E
-DA6F
-DA70
-DA71
-DA72
-DA73
-DA74
-DA75
-DA76
-DA77
-DA78
-DA79
-DA7A
-DA81
-DA82
-DA83
-DA84
-DA85
-DA86
-DA87
-DA88
-DA89
-DA8A
-DA8B
-DA8C
-DA8D
-DA8E
-DA8F
-DA90
-DA91
-DA92
-DA93
-DA94
-DA95
-DA96
-DA97
-DA98
-DA99
-DA9A
-DA9B
-DA9C
-DA9D
-DA9E
-DA9F
-DAA0
-DB41
-DB42
-DB43
-DB44
-DB45
-DB46
-DB47
-DB48
-DB49
-DB4A
-DB4B
-DB4C
-DB4D
-DB4E
-DB4F
-DB50
-DB51
-DB52
-DB53
-DB54
-DB55
-DB56
-DB57
-DB58
-DB59
-DB5A
-DB61
-DB62
-DB63
-DB64
-DB65
-DB66
-DB67
-DB68
-DB69
-DB6A
-DB6B
-DB6C
-DB6D
-DB6E
-DB6F
-DB70
-DB71
-DB72
-DB73
-DB74
-DB75
-DB76
-DB77
-DB78
-DB79
-DB7A
-DB81
-DB82
-DB83
-DB84
-DB85
-DB86
-DB87
-DB88
-DB89
-DB8A
-DB8B
-DB8C
-DB8D
-DB8E
-DB8F
-DB90
-DB91
-DB92
-DB93
-DB94
-DB95
-DB96
-DB97
-DB98
-DB99
-DB9A
-DB9B
-DB9C
-DB9D
-DB9E
-DB9F
-DBA0
-DC41
-DC42
-DC43
-DC44
-DC45
-DC46
-DC47
-DC48
-DC49
-DC4A
-DC4B
-DC4C
-DC4D
-DC4E
-DC4F
-DC50
-DC51
-DC52
-DC53
-DC54
-DC55
-DC56
-DC57
-DC58
-DC59
-DC5A
-DC61
-DC62
-DC63
-DC64
-DC65
-DC66
-DC67
-DC68
-DC69
-DC6A
-DC6B
-DC6C
-DC6D
-DC6E
-DC6F
-DC70
-DC71
-DC72
-DC73
-DC74
-DC75
-DC76
-DC77
-DC78
-DC79
-DC7A
-DC81
-DC82
-DC83
-DC84
-DC85
-DC86
-DC87
-DC88
-DC89
-DC8A
-DC8B
-DC8C
-DC8D
-DC8E
-DC8F
-DC90
-DC91
-DC92
-DC93
-DC94
-DC95
-DC96
-DC97
-DC98
-DC99
-DC9A
-DC9B
-DC9C
-DC9D
-DC9E
-DC9F
-DCA0
-DD41
-DD42
-DD43
-DD44
-DD45
-DD46
-DD47
-DD48
-DD49
-DD4A
-DD4B
-DD4C
-DD4D
-DD4E
-DD4F
-DD50
-DD51
-DD52
-DD53
-DD54
-DD55
-DD56
-DD57
-DD58
-DD59
-DD5A
-DD61
-DD62
-DD63
-DD64
-DD65
-DD66
-DD67
-DD68
-DD69
-DD6A
-DD6B
-DD6C
-DD6D
-DD6E
-DD6F
-DD70
-DD71
-DD72
-DD73
-DD74
-DD75
-DD76
-DD77
-DD78
-DD79
-DD7A
-DD81
-DD82
-DD83
-DD84
-DD85
-DD86
-DD87
-DD88
-DD89
-DD8A
-DD8B
-DD8C
-DD8D
-DD8E
-DD8F
-DD90
-DD91
-DD92
-DD93
-DD94
-DD95
-DD96
-DD97
-DD98
-DD99
-DD9A
-DD9B
-DD9C
-DD9D
-DD9E
-DD9F
-DDA0
-DE41
-DE42
-DE43
-DE44
-DE45
-DE46
-DE47
-DE48
-DE49
-DE4A
-DE4B
-DE4C
-DE4D
-DE4E
-DE4F
-DE50
-DE51
-DE52
-DE53
-DE54
-DE55
-DE56
-DE57
-DE58
-DE59
-DE5A
-DE61
-DE62
-DE63
-DE64
-DE65
-DE66
-DE67
-DE68
-DE69
-DE6A
-DE6B
-DE6C
-DE6D
-DE6E
-DE6F
-DE70
-DE71
-DE72
-DE73
-DE74
-DE75
-DE76
-DE77
-DE78
-DE79
-DE7A
-DE81
-DE82
-DE83
-DE84
-DE85
-DE86
-DE87
-DE88
-DE89
-DE8A
-DE8B
-DE8C
-DE8D
-DE8E
-DE8F
-DE90
-DE91
-DE92
-DE93
-DE94
-DE95
-DE96
-DE97
-DE98
-DE99
-DE9A
-DE9B
-DE9C
-DE9D
-DE9E
-DE9F
-DEA0
-DF41
-DF42
-DF43
-DF44
-DF45
-DF46
-DF47
-DF48
-DF49
-DF4A
-DF4B
-DF4C
-DF4D
-DF4E
-DF4F
-DF50
-DF51
-DF52
-DF53
-DF54
-DF55
-DF56
-DF57
-DF58
-DF59
-DF5A
-DF61
-DF62
-DF63
-DF64
-DF65
-DF66
-DF67
-DF68
-DF69
-DF6A
-DF6B
-DF6C
-DF6D
-DF6E
-DF6F
-DF70
-DF71
-DF72
-DF73
-DF74
-DF75
-DF76
-DF77
-DF78
-DF79
-DF7A
-DF81
-DF82
-DF83
-DF84
-DF85
-DF86
-DF87
-DF88
-DF89
-DF8A
-DF8B
-DF8C
-DF8D
-DF8E
-DF8F
-DF90
-DF91
-DF92
-DF93
-DF94
-DF95
-DF96
-DF97
-DF98
-DF99
-DF9A
-DF9B
-DF9C
-DF9D
-DF9E
-DF9F
-DFA0
-E041
-E042
-E043
-E044
-E045
-E046
-E047
-E048
-E049
-E04A
-E04B
-E04C
-E04D
-E04E
-E04F
-E050
-E051
-E052
-E053
-E054
-E055
-E056
-E057
-E058
-E059
-E05A
-E061
-E062
-E063
-E064
-E065
-E066
-E067
-E068
-E069
-E06A
-E06B
-E06C
-E06D
-E06E
-E06F
-E070
-E071
-E072
-E073
-E074
-E075
-E076
-E077
-E078
-E079
-E07A
-E081
-E082
-E083
-E084
-E085
-E086
-E087
-E088
-E089
-E08A
-E08B
-E08C
-E08D
-E08E
-E08F
-E090
-E091
-E092
-E093
-E094
-E095
-E096
-E097
-E098
-E099
-E09A
-E09B
-E09C
-E09D
-E09E
-E09F
-E0A0
-E141
-E142
-E143
-E144
-E145
-E146
-E147
-E148
-E149
-E14A
-E14B
-E14C
-E14D
-E14E
-E14F
-E150
-E151
-E152
-E153
-E154
-E155
-E156
-E157
-E158
-E159
-E15A
-E161
-E162
-E163
-E164
-E165
-E166
-E167
-E168
-E169
-E16A
-E16B
-E16C
-E16D
-E16E
-E16F
-E170
-E171
-E172
-E173
-E174
-E175
-E176
-E177
-E178
-E179
-E17A
-E181
-E182
-E183
-E184
-E185
-E186
-E187
-E188
-E189
-E18A
-E18B
-E18C
-E18D
-E18E
-E18F
-E190
-E191
-E192
-E193
-E194
-E195
-E196
-E197
-E198
-E199
-E19A
-E19B
-E19C
-E19D
-E19E
-E19F
-E1A0
-E241
-E242
-E243
-E244
-E245
-E246
-E247
-E248
-E249
-E24A
-E24B
-E24C
-E24D
-E24E
-E24F
-E250
-E251
-E252
-E253
-E254
-E255
-E256
-E257
-E258
-E259
-E25A
-E261
-E262
-E263
-E264
-E265
-E266
-E267
-E268
-E269
-E26A
-E26B
-E26C
-E26D
-E26E
-E26F
-E270
-E271
-E272
-E273
-E274
-E275
-E276
-E277
-E278
-E279
-E27A
-E281
-E282
-E283
-E284
-E285
-E286
-E287
-E288
-E289
-E28A
-E28B
-E28C
-E28D
-E28E
-E28F
-E290
-E291
-E292
-E293
-E294
-E295
-E296
-E297
-E298
-E299
-E29A
-E29B
-E29C
-E29D
-E29E
-E29F
-E2A0
-E341
-E342
-E343
-E344
-E345
-E346
-E347
-E348
-E349
-E34A
-E34B
-E34C
-E34D
-E34E
-E34F
-E350
-E351
-E352
-E353
-E354
-E355
-E356
-E357
-E358
-E359
-E35A
-E361
-E362
-E363
-E364
-E365
-E366
-E367
-E368
-E369
-E36A
-E36B
-E36C
-E36D
-E36E
-E36F
-E370
-E371
-E372
-E373
-E374
-E375
-E376
-E377
-E378
-E379
-E37A
-E381
-E382
-E383
-E384
-E385
-E386
-E387
-E388
-E389
-E38A
-E38B
-E38C
-E38D
-E38E
-E38F
-E390
-E391
-E392
-E393
-E394
-E395
-E396
-E397
-E398
-E399
-E39A
-E39B
-E39C
-E39D
-E39E
-E39F
-E3A0
-E441
-E442
-E443
-E444
-E445
-E446
-E447
-E448
-E449
-E44A
-E44B
-E44C
-E44D
-E44E
-E44F
-E450
-E451
-E452
-E453
-E454
-E455
-E456
-E457
-E458
-E459
-E45A
-E461
-E462
-E463
-E464
-E465
-E466
-E467
-E468
-E469
-E46A
-E46B
-E46C
-E46D
-E46E
-E46F
-E470
-E471
-E472
-E473
-E474
-E475
-E476
-E477
-E478
-E479
-E47A
-E481
-E482
-E483
-E484
-E485
-E486
-E487
-E488
-E489
-E48A
-E48B
-E48C
-E48D
-E48E
-E48F
-E490
-E491
-E492
-E493
-E494
-E495
-E496
-E497
-E498
-E499
-E49A
-E49B
-E49C
-E49D
-E49E
-E49F
-E4A0
-E541
-E542
-E543
-E544
-E545
-E546
-E547
-E548
-E549
-E54A
-E54B
-E54C
-E54D
-E54E
-E54F
-E550
-E551
-E552
-E553
-E554
-E555
-E556
-E557
-E558
-E559
-E55A
-E561
-E562
-E563
-E564
-E565
-E566
-E567
-E568
-E569
-E56A
-E56B
-E56C
-E56D
-E56E
-E56F
-E570
-E571
-E572
-E573
-E574
-E575
-E576
-E577
-E578
-E579
-E57A
-E581
-E582
-E583
-E584
-E585
-E586
-E587
-E588
-E589
-E58A
-E58B
-E58C
-E58D
-E58E
-E58F
-E590
-E591
-E592
-E593
-E594
-E595
-E596
-E597
-E598
-E599
-E59A
-E59B
-E59C
-E59D
-E59E
-E59F
-E5A0
-E641
-E642
-E643
-E644
-E645
-E646
-E647
-E648
-E649
-E64A
-E64B
-E64C
-E64D
-E64E
-E64F
-E650
-E651
-E652
-E653
-E654
-E655
-E656
-E657
-E658
-E659
-E65A
-E661
-E662
-E663
-E664
-E665
-E666
-E667
-E668
-E669
-E66A
-E66B
-E66C
-E66D
-E66E
-E66F
-E670
-E671
-E672
-E673
-E674
-E675
-E676
-E677
-E678
-E679
-E67A
-E681
-E682
-E683
-E684
-E685
-E686
-E687
-E688
-E689
-E68A
-E68B
-E68C
-E68D
-E68E
-E68F
-E690
-E691
-E692
-E693
-E694
-E695
-E696
-E697
-E698
-E699
-E69A
-E69B
-E69C
-E69D
-E69E
-E69F
-E6A0
-E741
-E742
-E743
-E744
-E745
-E746
-E747
-E748
-E749
-E74A
-E74B
-E74C
-E74D
-E74E
-E74F
-E750
-E751
-E752
-E753
-E754
-E755
-E756
-E757
-E758
-E759
-E75A
-E761
-E762
-E763
-E764
-E765
-E766
-E767
-E768
-E769
-E76A
-E76B
-E76C
-E76D
-E76E
-E76F
-E770
-E771
-E772
-E773
-E774
-E775
-E776
-E777
-E778
-E779
-E77A
-E781
-E782
-E783
-E784
-E785
-E786
-E787
-E788
-E789
-E78A
-E78B
-E78C
-E78D
-E78E
-E78F
-E790
-E791
-E792
-E793
-E794
-E795
-E796
-E797
-E798
-E799
-E79A
-E79B
-E79C
-E79D
-E79E
-E79F
-E7A0
-E841
-E842
-E843
-E844
-E845
-E846
-E847
-E848
-E849
-E84A
-E84B
-E84C
-E84D
-E84E
-E84F
-E850
-E851
-E852
-E853
-E854
-E855
-E856
-E857
-E858
-E859
-E85A
-E861
-E862
-E863
-E864
-E865
-E866
-E867
-E868
-E869
-E86A
-E86B
-E86C
-E86D
-E86E
-E86F
-E870
-E871
-E872
-E873
-E874
-E875
-E876
-E877
-E878
-E879
-E87A
-E881
-E882
-E883
-E884
-E885
-E886
-E887
-E888
-E889
-E88A
-E88B
-E88C
-E88D
-E88E
-E88F
-E890
-E891
-E892
-E893
-E894
-E895
-E896
-E897
-E898
-E899
-E89A
-E89B
-E89C
-E89D
-E89E
-E89F
-E8A0
-E941
-E942
-E943
-E944
-E945
-E946
-E947
-E948
-E949
-E94A
-E94B
-E94C
-E94D
-E94E
-E94F
-E950
-E951
-E952
-E953
-E954
-E955
-E956
-E957
-E958
-E959
-E95A
-E961
-E962
-E963
-E964
-E965
-E966
-E967
-E968
-E969
-E96A
-E96B
-E96C
-E96D
-E96E
-E96F
-E970
-E971
-E972
-E973
-E974
-E975
-E976
-E977
-E978
-E979
-E97A
-E981
-E982
-E983
-E984
-E985
-E986
-E987
-E988
-E989
-E98A
-E98B
-E98C
-E98D
-E98E
-E98F
-E990
-E991
-E992
-E993
-E994
-E995
-E996
-E997
-E998
-E999
-E99A
-E99B
-E99C
-E99D
-E99E
-E99F
-E9A0
-EA41
-EA42
-EA43
-EA44
-EA45
-EA46
-EA47
-EA48
-EA49
-EA4A
-EA4B
-EA4C
-EA4D
-EA4E
-EA4F
-EA50
-EA51
-EA52
-EA53
-EA54
-EA55
-EA56
-EA57
-EA58
-EA59
-EA5A
-EA61
-EA62
-EA63
-EA64
-EA65
-EA66
-EA67
-EA68
-EA69
-EA6A
-EA6B
-EA6C
-EA6D
-EA6E
-EA6F
-EA70
-EA71
-EA72
-EA73
-EA74
-EA75
-EA76
-EA77
-EA78
-EA79
-EA7A
-EA81
-EA82
-EA83
-EA84
-EA85
-EA86
-EA87
-EA88
-EA89
-EA8A
-EA8B
-EA8C
-EA8D
-EA8E
-EA8F
-EA90
-EA91
-EA92
-EA93
-EA94
-EA95
-EA96
-EA97
-EA98
-EA99
-EA9A
-EA9B
-EA9C
-EA9D
-EA9E
-EA9F
-EAA0
-EB41
-EB42
-EB43
-EB44
-EB45
-EB46
-EB47
-EB48
-EB49
-EB4A
-EB4B
-EB4C
-EB4D
-EB4E
-EB4F
-EB50
-EB51
-EB52
-EB53
-EB54
-EB55
-EB56
-EB57
-EB58
-EB59
-EB5A
-EB61
-EB62
-EB63
-EB64
-EB65
-EB66
-EB67
-EB68
-EB69
-EB6A
-EB6B
-EB6C
-EB6D
-EB6E
-EB6F
-EB70
-EB71
-EB72
-EB73
-EB74
-EB75
-EB76
-EB77
-EB78
-EB79
-EB7A
-EB81
-EB82
-EB83
-EB84
-EB85
-EB86
-EB87
-EB88
-EB89
-EB8A
-EB8B
-EB8C
-EB8D
-EB8E
-EB8F
-EB90
-EB91
-EB92
-EB93
-EB94
-EB95
-EB96
-EB97
-EB98
-EB99
-EB9A
-EB9B
-EB9C
-EB9D
-EB9E
-EB9F
-EBA0
-EC41
-EC42
-EC43
-EC44
-EC45
-EC46
-EC47
-EC48
-EC49
-EC4A
-EC4B
-EC4C
-EC4D
-EC4E
-EC4F
-EC50
-EC51
-EC52
-EC53
-EC54
-EC55
-EC56
-EC57
-EC58
-EC59
-EC5A
-EC61
-EC62
-EC63
-EC64
-EC65
-EC66
-EC67
-EC68
-EC69
-EC6A
-EC6B
-EC6C
-EC6D
-EC6E
-EC6F
-EC70
-EC71
-EC72
-EC73
-EC74
-EC75
-EC76
-EC77
-EC78
-EC79
-EC7A
-EC81
-EC82
-EC83
-EC84
-EC85
-EC86
-EC87
-EC88
-EC89
-EC8A
-EC8B
-EC8C
-EC8D
-EC8E
-EC8F
-EC90
-EC91
-EC92
-EC93
-EC94
-EC95
-EC96
-EC97
-EC98
-EC99
-EC9A
-EC9B
-EC9C
-EC9D
-EC9E
-EC9F
-ECA0
-ED41
-ED42
-ED43
-ED44
-ED45
-ED46
-ED47
-ED48
-ED49
-ED4A
-ED4B
-ED4C
-ED4D
-ED4E
-ED4F
-ED50
-ED51
-ED52
-ED53
-ED54
-ED55
-ED56
-ED57
-ED58
-ED59
-ED5A
-ED61
-ED62
-ED63
-ED64
-ED65
-ED66
-ED67
-ED68
-ED69
-ED6A
-ED6B
-ED6C
-ED6D
-ED6E
-ED6F
-ED70
-ED71
-ED72
-ED73
-ED74
-ED75
-ED76
-ED77
-ED78
-ED79
-ED7A
-ED81
-ED82
-ED83
-ED84
-ED85
-ED86
-ED87
-ED88
-ED89
-ED8A
-ED8B
-ED8C
-ED8D
-ED8E
-ED8F
-ED90
-ED91
-ED92
-ED93
-ED94
-ED95
-ED96
-ED97
-ED98
-ED99
-ED9A
-ED9B
-ED9C
-ED9D
-ED9E
-ED9F
-EDA0
-EE41
-EE42
-EE43
-EE44
-EE45
-EE46
-EE47
-EE48
-EE49
-EE4A
-EE4B
-EE4C
-EE4D
-EE4E
-EE4F
-EE50
-EE51
-EE52
-EE53
-EE54
-EE55
-EE56
-EE57
-EE58
-EE59
-EE5A
-EE61
-EE62
-EE63
-EE64
-EE65
-EE66
-EE67
-EE68
-EE69
-EE6A
-EE6B
-EE6C
-EE6D
-EE6E
-EE6F
-EE70
-EE71
-EE72
-EE73
-EE74
-EE75
-EE76
-EE77
-EE78
-EE79
-EE7A
-EE81
-EE82
-EE83
-EE84
-EE85
-EE86
-EE87
-EE88
-EE89
-EE8A
-EE8B
-EE8C
-EE8D
-EE8E
-EE8F
-EE90
-EE91
-EE92
-EE93
-EE94
-EE95
-EE96
-EE97
-EE98
-EE99
-EE9A
-EE9B
-EE9C
-EE9D
-EE9E
-EE9F
-EEA0
-EF41
-EF42
-EF43
-EF44
-EF45
-EF46
-EF47
-EF48
-EF49
-EF4A
-EF4B
-EF4C
-EF4D
-EF4E
-EF4F
-EF50
-EF51
-EF52
-EF53
-EF54
-EF55
-EF56
-EF57
-EF58
-EF59
-EF5A
-EF61
-EF62
-EF63
-EF64
-EF65
-EF66
-EF67
-EF68
-EF69
-EF6A
-EF6B
-EF6C
-EF6D
-EF6E
-EF6F
-EF70
-EF71
-EF72
-EF73
-EF74
-EF75
-EF76
-EF77
-EF78
-EF79
-EF7A
-EF81
-EF82
-EF83
-EF84
-EF85
-EF86
-EF87
-EF88
-EF89
-EF8A
-EF8B
-EF8C
-EF8D
-EF8E
-EF8F
-EF90
-EF91
-EF92
-EF93
-EF94
-EF95
-EF96
-EF97
-EF98
-EF99
-EF9A
-EF9B
-EF9C
-EF9D
-EF9E
-EF9F
-EFA0
-F041
-F042
-F043
-F044
-F045
-F046
-F047
-F048
-F049
-F04A
-F04B
-F04C
-F04D
-F04E
-F04F
-F050
-F051
-F052
-F053
-F054
-F055
-F056
-F057
-F058
-F059
-F05A
-F061
-F062
-F063
-F064
-F065
-F066
-F067
-F068
-F069
-F06A
-F06B
-F06C
-F06D
-F06E
-F06F
-F070
-F071
-F072
-F073
-F074
-F075
-F076
-F077
-F078
-F079
-F07A
-F081
-F082
-F083
-F084
-F085
-F086
-F087
-F088
-F089
-F08A
-F08B
-F08C
-F08D
-F08E
-F08F
-F090
-F091
-F092
-F093
-F094
-F095
-F096
-F097
-F098
-F099
-F09A
-F09B
-F09C
-F09D
-F09E
-F09F
-F0A0
-F141
-F142
-F143
-F144
-F145
-F146
-F147
-F148
-F149
-F14A
-F14B
-F14C
-F14D
-F14E
-F14F
-F150
-F151
-F152
-F153
-F154
-F155
-F156
-F157
-F158
-F159
-F15A
-F161
-F162
-F163
-F164
-F165
-F166
-F167
-F168
-F169
-F16A
-F16B
-F16C
-F16D
-F16E
-F16F
-F170
-F171
-F172
-F173
-F174
-F175
-F176
-F177
-F178
-F179
-F17A
-F181
-F182
-F183
-F184
-F185
-F186
-F187
-F188
-F189
-F18A
-F18B
-F18C
-F18D
-F18E
-F18F
-F190
-F191
-F192
-F193
-F194
-F195
-F196
-F197
-F198
-F199
-F19A
-F19B
-F19C
-F19D
-F19E
-F19F
-F1A0
-F241
-F242
-F243
-F244
-F245
-F246
-F247
-F248
-F249
-F24A
-F24B
-F24C
-F24D
-F24E
-F24F
-F250
-F251
-F252
-F253
-F254
-F255
-F256
-F257
-F258
-F259
-F25A
-F261
-F262
-F263
-F264
-F265
-F266
-F267
-F268
-F269
-F26A
-F26B
-F26C
-F26D
-F26E
-F26F
-F270
-F271
-F272
-F273
-F274
-F275
-F276
-F277
-F278
-F279
-F27A
-F281
-F282
-F283
-F284
-F285
-F286
-F287
-F288
-F289
-F28A
-F28B
-F28C
-F28D
-F28E
-F28F
-F290
-F291
-F292
-F293
-F294
-F295
-F296
-F297
-F298
-F299
-F29A
-F29B
-F29C
-F29D
-F29E
-F29F
-F2A0
-F341
-F342
-F343
-F344
-F345
-F346
-F347
-F348
-F349
-F34A
-F34B
-F34C
-F34D
-F34E
-F34F
-F350
-F351
-F352
-F353
-F354
-F355
-F356
-F357
-F358
-F359
-F35A
-F361
-F362
-F363
-F364
-F365
-F366
-F367
-F368
-F369
-F36A
-F36B
-F36C
-F36D
-F36E
-F36F
-F370
-F371
-F372
-F373
-F374
-F375
-F376
-F377
-F378
-F379
-F37A
-F381
-F382
-F383
-F384
-F385
-F386
-F387
-F388
-F389
-F38A
-F38B
-F38C
-F38D
-F38E
-F38F
-F390
-F391
-F392
-F393
-F394
-F395
-F396
-F397
-F398
-F399
-F39A
-F39B
-F39C
-F39D
-F39E
-F39F
-F3A0
-F441
-F442
-F443
-F444
-F445
-F446
-F447
-F448
-F449
-F44A
-F44B
-F44C
-F44D
-F44E
-F44F
-F450
-F451
-F452
-F453
-F454
-F455
-F456
-F457
-F458
-F459
-F45A
-F461
-F462
-F463
-F464
-F465
-F466
-F467
-F468
-F469
-F46A
-F46B
-F46C
-F46D
-F46E
-F46F
-F470
-F471
-F472
-F473
-F474
-F475
-F476
-F477
-F478
-F479
-F47A
-F481
-F482
-F483
-F484
-F485
-F486
-F487
-F488
-F489
-F48A
-F48B
-F48C
-F48D
-F48E
-F48F
-F490
-F491
-F492
-F493
-F494
-F495
-F496
-F497
-F498
-F499
-F49A
-F49B
-F49C
-F49D
-F49E
-F49F
-F4A0
-F541
-F542
-F543
-F544
-F545
-F546
-F547
-F548
-F549
-F54A
-F54B
-F54C
-F54D
-F54E
-F54F
-F550
-F551
-F552
-F553
-F554
-F555
-F556
-F557
-F558
-F559
-F55A
-F561
-F562
-F563
-F564
-F565
-F566
-F567
-F568
-F569
-F56A
-F56B
-F56C
-F56D
-F56E
-F56F
-F570
-F571
-F572
-F573
-F574
-F575
-F576
-F577
-F578
-F579
-F57A
-F581
-F582
-F583
-F584
-F585
-F586
-F587
-F588
-F589
-F58A
-F58B
-F58C
-F58D
-F58E
-F58F
-F590
-F591
-F592
-F593
-F594
-F595
-F596
-F597
-F598
-F599
-F59A
-F59B
-F59C
-F59D
-F59E
-F59F
-F5A0
-F641
-F642
-F643
-F644
-F645
-F646
-F647
-F648
-F649
-F64A
-F64B
-F64C
-F64D
-F64E
-F64F
-F650
-F651
-F652
-F653
-F654
-F655
-F656
-F657
-F658
-F659
-F65A
-F661
-F662
-F663
-F664
-F665
-F666
-F667
-F668
-F669
-F66A
-F66B
-F66C
-F66D
-F66E
-F66F
-F670
-F671
-F672
-F673
-F674
-F675
-F676
-F677
-F678
-F679
-F67A
-F681
-F682
-F683
-F684
-F685
-F686
-F687
-F688
-F689
-F68A
-F68B
-F68C
-F68D
-F68E
-F68F
-F690
-F691
-F692
-F693
-F694
-F695
-F696
-F697
-F698
-F699
-F69A
-F69B
-F69C
-F69D
-F69E
-F69F
-F6A0
-F741
-F742
-F743
-F744
-F745
-F746
-F747
-F748
-F749
-F74A
-F74B
-F74C
-F74D
-F74E
-F74F
-F750
-F751
-F752
-F753
-F754
-F755
-F756
-F757
-F758
-F759
-F75A
-F761
-F762
-F763
-F764
-F765
-F766
-F767
-F768
-F769
-F76A
-F76B
-F76C
-F76D
-F76E
-F76F
-F770
-F771
-F772
-F773
-F774
-F775
-F776
-F777
-F778
-F779
-F77A
-F781
-F782
-F783
-F784
-F785
-F786
-F787
-F788
-F789
-F78A
-F78B
-F78C
-F78D
-F78E
-F78F
-F790
-F791
-F792
-F793
-F794
-F795
-F796
-F797
-F798
-F799
-F79A
-F79B
-F79C
-F79D
-F79E
-F79F
-F7A0
-F841
-F842
-F843
-F844
-F845
-F846
-F847
-F848
-F849
-F84A
-F84B
-F84C
-F84D
-F84E
-F84F
-F850
-F851
-F852
-F853
-F854
-F855
-F856
-F857
-F858
-F859
-F85A
-F861
-F862
-F863
-F864
-F865
-F866
-F867
-F868
-F869
-F86A
-F86B
-F86C
-F86D
-F86E
-F86F
-F870
-F871
-F872
-F873
-F874
-F875
-F876
-F877
-F878
-F879
-F87A
-F881
-F882
-F883
-F884
-F885
-F886
-F887
-F888
-F889
-F88A
-F88B
-F88C
-F88D
-F88E
-F88F
-F890
-F891
-F892
-F893
-F894
-F895
-F896
-F897
-F898
-F899
-F89A
-F89B
-F89C
-F89D
-F89E
-F89F
-F8A0
-F941
-F942
-F943
-F944
-F945
-F946
-F947
-F948
-F949
-F94A
-F94B
-F94C
-F94D
-F94E
-F94F
-F950
-F951
-F952
-F953
-F954
-F955
-F956
-F957
-F958
-F959
-F95A
-F961
-F962
-F963
-F964
-F965
-F966
-F967
-F968
-F969
-F96A
-F96B
-F96C
-F96D
-F96E
-F96F
-F970
-F971
-F972
-F973
-F974
-F975
-F976
-F977
-F978
-F979
-F97A
-F981
-F982
-F983
-F984
-F985
-F986
-F987
-F988
-F989
-F98A
-F98B
-F98C
-F98D
-F98E
-F98F
-F990
-F991
-F992
-F993
-F994
-F995
-F996
-F997
-F998
-F999
-F99A
-F99B
-F99C
-F99D
-F99E
-F99F
-F9A0
-FA41
-FA42
-FA43
-FA44
-FA45
-FA46
-FA47
-FA48
-FA49
-FA4A
-FA4B
-FA4C
-FA4D
-FA4E
-FA4F
-FA50
-FA51
-FA52
-FA53
-FA54
-FA55
-FA56
-FA57
-FA58
-FA59
-FA5A
-FA61
-FA62
-FA63
-FA64
-FA65
-FA66
-FA67
-FA68
-FA69
-FA6A
-FA6B
-FA6C
-FA6D
-FA6E
-FA6F
-FA70
-FA71
-FA72
-FA73
-FA74
-FA75
-FA76
-FA77
-FA78
-FA79
-FA7A
-FA81
-FA82
-FA83
-FA84
-FA85
-FA86
-FA87
-FA88
-FA89
-FA8A
-FA8B
-FA8C
-FA8D
-FA8E
-FA8F
-FA90
-FA91
-FA92
-FA93
-FA94
-FA95
-FA96
-FA97
-FA98
-FA99
-FA9A
-FA9B
-FA9C
-FA9D
-FA9E
-FA9F
-FAA0
-FB41
-FB42
-FB43
-FB44
-FB45
-FB46
-FB47
-FB48
-FB49
-FB4A
-FB4B
-FB4C
-FB4D
-FB4E
-FB4F
-FB50
-FB51
-FB52
-FB53
-FB54
-FB55
-FB56
-FB57
-FB58
-FB59
-FB5A
-FB61
-FB62
-FB63
-FB64
-FB65
-FB66
-FB67
-FB68
-FB69
-FB6A
-FB6B
-FB6C
-FB6D
-FB6E
-FB6F
-FB70
-FB71
-FB72
-FB73
-FB74
-FB75
-FB76
-FB77
-FB78
-FB79
-FB7A
-FB81
-FB82
-FB83
-FB84
-FB85
-FB86
-FB87
-FB88
-FB89
-FB8A
-FB8B
-FB8C
-FB8D
-FB8E
-FB8F
-FB90
-FB91
-FB92
-FB93
-FB94
-FB95
-FB96
-FB97
-FB98
-FB99
-FB9A
-FB9B
-FB9C
-FB9D
-FB9E
-FB9F
-FBA0
-FC41
-FC42
-FC43
-FC44
-FC45
-FC46
-FC47
-FC48
-FC49
-FC4A
-FC4B
-FC4C
-FC4D
-FC4E
-FC4F
-FC50
-FC51
-FC52
-FC53
-FC54
-FC55
-FC56
-FC57
-FC58
-FC59
-FC5A
-FC61
-FC62
-FC63
-FC64
-FC65
-FC66
-FC67
-FC68
-FC69
-FC6A
-FC6B
-FC6C
-FC6D
-FC6E
-FC6F
-FC70
-FC71
-FC72
-FC73
-FC74
-FC75
-FC76
-FC77
-FC78
-FC79
-FC7A
-FC81
-FC82
-FC83
-FC84
-FC85
-FC86
-FC87
-FC88
-FC89
-FC8A
-FC8B
-FC8C
-FC8D
-FC8E
-FC8F
-FC90
-FC91
-FC92
-FC93
-FC94
-FC95
-FC96
-FC97
-FC98
-FC99
-FC9A
-FC9B
-FC9C
-FC9D
-FC9E
-FC9F
-FCA0
-FD41
-FD42
-FD43
-FD44
-FD45
-FD46
-FD47
-FD48
-FD49
-FD4A
-FD4B
-FD4C
-FD4D
-FD4E
-FD4F
-FD50
-FD51
-FD52
-FD53
-FD54
-FD55
-FD56
-FD57
-FD58
-FD59
-FD5A
-FD61
-FD62
-FD63
-FD64
-FD65
-FD66
-FD67
-FD68
-FD69
-FD6A
-FD6B
-FD6C
-FD6D
-FD6E
-FD6F
-FD70
-FD71
-FD72
-FD73
-FD74
-FD75
-FD76
-FD77
-FD78
-FD79
-FD7A
-FD81
-FD82
-FD83
-FD84
-FD85
-FD86
-FD87
-FD88
-FD89
-FD8A
-FD8B
-FD8C
-FD8D
-FD8E
-FD8F
-FD90
-FD91
-FD92
-FD93
-FD94
-FD95
-FD96
-FD97
-FD98
-FD99
-FD9A
-FD9B
-FD9C
-FD9D
-FD9E
-FD9F
-FDA0
-FE41
-FE42
-FE43
-FE44
-FE45
-FE46
-FE47
-FE48
-FE49
-FE4A
-FE4B
-FE4C
-FE4D
-FE4E
-FE4F
-FE50
-FE51
-FE52
-FE53
-FE54
-FE55
-FE56
-FE57
-FE58
-FE59
-FE5A
-FE61
-FE62
-FE63
-FE64
-FE65
-FE66
-FE67
-FE68
-FE69
-FE6A
-FE6B
-FE6C
-FE6D
-FE6E
-FE6F
-FE70
-FE71
-FE72
-FE73
-FE74
-FE75
-FE76
-FE77
-FE78
-FE79
-FE7A
-FE81
-FE82
-FE83
-FE84
-FE85
-FE86
-FE87
-FE88
-FE89
-FE8A
-FE8B
-FE8C
-FE8D
-FE8E
-FE8F
-FE90
-FE91
-FE92
-FE93
-FE94
-FE95
-FE96
-FE97
-FE98
-FE99
-FE9A
-FE9B
-FE9C
-FE9D
-FE9E
-FE9F
-FEA0
-FEA1
-FEA2
-FEA3
-FEA4
-FEA5
-FEA6
-FEA7
-FEA8
-FEA9
-FEAA
-FEAB
-FEAC
-FEAD
-FEAE
-FEAF
-FEB0
-FEB1
-FEB2
-FEB3
-FEB4
-FEB5
-FEB6
-FEB7
-FEB8
-FEB9
-FEBA
-FEBB
-FEBC
-FEBD
-FEBE
-FEBF
-FEC0
-FEC1
-FEC2
-FEC3
-FEC4
-FEC5
-FEC6
-FEC7
-FEC8
-FEC9
-FECA
-FECB
-FECC
-FECD
-FECE
-FECF
-FED0
-FED1
-FED2
-FED3
-FED4
-FED5
-FED6
-FED7
-FED8
-FED9
-FEDA
-FEDB
-FEDC
-FEDD
-FEDE
-FEDF
-FEE0
-FEE1
-FEE2
-FEE3
-FEE4
-FEE5
-FEE6
-FEE7
-FEE8
-FEE9
-FEEA
-FEEB
-FEEC
-FEED
-FEEE
-FEEF
-FEF0
-FEF1
-FEF2
-FEF3
-FEF4
-FEF5
-FEF6
-FEF7
-FEF8
-FEF9
-FEFA
-FEFB
-FEFC
-FEFD
-FEFE
-DELETE FROM t2 WHERE u='?';
-SELECT count(*) as roundtrip_problem_chars FROM t2 WHERE hex(a) <> hex(a2);
-roundtrip_problem_chars
-0
-SELECT s, hex(a), hex(u), hex(a2) FROM t2 ORDER BY s;
-s hex(a) hex(u) hex(a2)
-8141 8141 EAB082 8141
-8142 8142 EAB083 8142
-8143 8143 EAB085 8143
-8144 8144 EAB086 8144
-8145 8145 EAB08B 8145
-8146 8146 EAB08C 8146
-8147 8147 EAB08D 8147
-8148 8148 EAB08E 8148
-8149 8149 EAB08F 8149
-814A 814A EAB098 814A
-814B 814B EAB09E 814B
-814C 814C EAB09F 814C
-814D 814D EAB0A1 814D
-814E 814E EAB0A2 814E
-814F 814F EAB0A3 814F
-8150 8150 EAB0A5 8150
-8151 8151 EAB0A6 8151
-8152 8152 EAB0A7 8152
-8153 8153 EAB0A8 8153
-8154 8154 EAB0A9 8154
-8155 8155 EAB0AA 8155
-8156 8156 EAB0AB 8156
-8157 8157 EAB0AE 8157
-8158 8158 EAB0B2 8158
-8159 8159 EAB0B3 8159
-815A 815A EAB0B4 815A
-8161 8161 EAB0B5 8161
-8162 8162 EAB0B6 8162
-8163 8163 EAB0B7 8163
-8164 8164 EAB0BA 8164
-8165 8165 EAB0BB 8165
-8166 8166 EAB0BD 8166
-8167 8167 EAB0BE 8167
-8168 8168 EAB0BF 8168
-8169 8169 EAB181 8169
-816A 816A EAB182 816A
-816B 816B EAB183 816B
-816C 816C EAB184 816C
-816D 816D EAB185 816D
-816E 816E EAB186 816E
-816F 816F EAB187 816F
-8170 8170 EAB188 8170
-8171 8171 EAB189 8171
-8172 8172 EAB18A 8172
-8173 8173 EAB18C 8173
-8174 8174 EAB18E 8174
-8175 8175 EAB18F 8175
-8176 8176 EAB190 8176
-8177 8177 EAB191 8177
-8178 8178 EAB192 8178
-8179 8179 EAB193 8179
-817A 817A EAB195 817A
-8181 8181 EAB196 8181
-8182 8182 EAB197 8182
-8183 8183 EAB199 8183
-8184 8184 EAB19A 8184
-8185 8185 EAB19B 8185
-8186 8186 EAB19D 8186
-8187 8187 EAB19E 8187
-8188 8188 EAB19F 8188
-8189 8189 EAB1A0 8189
-818A 818A EAB1A1 818A
-818B 818B EAB1A2 818B
-818C 818C EAB1A3 818C
-818D 818D EAB1A4 818D
-818E 818E EAB1A5 818E
-818F 818F EAB1A6 818F
-8190 8190 EAB1A7 8190
-8191 8191 EAB1A8 8191
-8192 8192 EAB1A9 8192
-8193 8193 EAB1AA 8193
-8194 8194 EAB1AB 8194
-8195 8195 EAB1AC 8195
-8196 8196 EAB1AD 8196
-8197 8197 EAB1AE 8197
-8198 8198 EAB1AF 8198
-8199 8199 EAB1B2 8199
-819A 819A EAB1B3 819A
-819B 819B EAB1B5 819B
-819C 819C EAB1B6 819C
-819D 819D EAB1B9 819D
-819E 819E EAB1BB 819E
-819F 819F EAB1BC 819F
-81A0 81A0 EAB1BD 81A0
-81A1 81A1 EAB1BE 81A1
-81A2 81A2 EAB1BF 81A2
-81A3 81A3 EAB282 81A3
-81A4 81A4 EAB287 81A4
-81A5 81A5 EAB288 81A5
-81A6 81A6 EAB28D 81A6
-81A7 81A7 EAB28E 81A7
-81A8 81A8 EAB28F 81A8
-81A9 81A9 EAB291 81A9
-81AA 81AA EAB292 81AA
-81AB 81AB EAB293 81AB
-81AC 81AC EAB295 81AC
-81AD 81AD EAB296 81AD
-81AE 81AE EAB297 81AE
-81AF 81AF EAB298 81AF
-81B0 81B0 EAB299 81B0
-81B1 81B1 EAB29A 81B1
-81B2 81B2 EAB29B 81B2
-81B3 81B3 EAB29E 81B3
-81B4 81B4 EAB2A2 81B4
-81B5 81B5 EAB2A3 81B5
-81B6 81B6 EAB2A4 81B6
-81B7 81B7 EAB2A5 81B7
-81B8 81B8 EAB2A6 81B8
-81B9 81B9 EAB2A7 81B9
-81BA 81BA EAB2AB 81BA
-81BB 81BB EAB2AD 81BB
-81BC 81BC EAB2AE 81BC
-81BD 81BD EAB2B1 81BD
-81BE 81BE EAB2B2 81BE
-81BF 81BF EAB2B3 81BF
-81C0 81C0 EAB2B4 81C0
-81C1 81C1 EAB2B5 81C1
-81C2 81C2 EAB2B6 81C2
-81C3 81C3 EAB2B7 81C3
-81C4 81C4 EAB2BA 81C4
-81C5 81C5 EAB2BE 81C5
-81C6 81C6 EAB2BF 81C6
-81C7 81C7 EAB380 81C7
-81C8 81C8 EAB382 81C8
-81C9 81C9 EAB383 81C9
-81CA 81CA EAB385 81CA
-81CB 81CB EAB386 81CB
-81CC 81CC EAB387 81CC
-81CD 81CD EAB389 81CD
-81CE 81CE EAB38A 81CE
-81CF 81CF EAB38B 81CF
-81D0 81D0 EAB38D 81D0
-81D1 81D1 EAB38E 81D1
-81D2 81D2 EAB38F 81D2
-81D3 81D3 EAB390 81D3
-81D4 81D4 EAB391 81D4
-81D5 81D5 EAB392 81D5
-81D6 81D6 EAB393 81D6
-81D7 81D7 EAB394 81D7
-81D8 81D8 EAB396 81D8
-81D9 81D9 EAB398 81D9
-81DA 81DA EAB399 81DA
-81DB 81DB EAB39A 81DB
-81DC 81DC EAB39B 81DC
-81DD 81DD EAB39C 81DD
-81DE 81DE EAB39D 81DE
-81DF 81DF EAB39E 81DF
-81E0 81E0 EAB39F 81E0
-81E1 81E1 EAB3A2 81E1
-81E2 81E2 EAB3A3 81E2
-81E3 81E3 EAB3A5 81E3
-81E4 81E4 EAB3A6 81E4
-81E5 81E5 EAB3A9 81E5
-81E6 81E6 EAB3AB 81E6
-81E7 81E7 EAB3AD 81E7
-81E8 81E8 EAB3AE 81E8
-81E9 81E9 EAB3B2 81E9
-81EA 81EA EAB3B4 81EA
-81EB 81EB EAB3B7 81EB
-81EC 81EC EAB3B8 81EC
-81ED 81ED EAB3B9 81ED
-81EE 81EE EAB3BA 81EE
-81EF 81EF EAB3BB 81EF
-81F0 81F0 EAB3BE 81F0
-81F1 81F1 EAB3BF 81F1
-81F2 81F2 EAB481 81F2
-81F3 81F3 EAB482 81F3
-81F4 81F4 EAB483 81F4
-81F5 81F5 EAB485 81F5
-81F6 81F6 EAB487 81F6
-81F7 81F7 EAB488 81F7
-81F8 81F8 EAB489 81F8
-81F9 81F9 EAB48A 81F9
-81FA 81FA EAB48B 81FA
-81FB 81FB EAB48E 81FB
-81FC 81FC EAB490 81FC
-81FD 81FD EAB492 81FD
-81FE 81FE EAB493 81FE
-8241 8241 EAB494 8241
-8242 8242 EAB495 8242
-8243 8243 EAB496 8243
-8244 8244 EAB497 8244
-8245 8245 EAB499 8245
-8246 8246 EAB49A 8246
-8247 8247 EAB49B 8247
-8248 8248 EAB49D 8248
-8249 8249 EAB49E 8249
-824A 824A EAB49F 824A
-824B 824B EAB4A1 824B
-824C 824C EAB4A2 824C
-824D 824D EAB4A3 824D
-824E 824E EAB4A4 824E
-824F 824F EAB4A5 824F
-8250 8250 EAB4A6 8250
-8251 8251 EAB4A7 8251
-8252 8252 EAB4A8 8252
-8253 8253 EAB4AA 8253
-8254 8254 EAB4AB 8254
-8255 8255 EAB4AE 8255
-8256 8256 EAB4AF 8256
-8257 8257 EAB4B0 8257
-8258 8258 EAB4B1 8258
-8259 8259 EAB4B2 8259
-825A 825A EAB4B3 825A
-8261 8261 EAB4B6 8261
-8262 8262 EAB4B7 8262
-8263 8263 EAB4B9 8263
-8264 8264 EAB4BA 8264
-8265 8265 EAB4BB 8265
-8266 8266 EAB4BD 8266
-8267 8267 EAB4BE 8267
-8268 8268 EAB4BF 8268
-8269 8269 EAB580 8269
-826A 826A EAB581 826A
-826B 826B EAB582 826B
-826C 826C EAB583 826C
-826D 826D EAB586 826D
-826E 826E EAB588 826E
-826F 826F EAB58A 826F
-8270 8270 EAB58B 8270
-8271 8271 EAB58C 8271
-8272 8272 EAB58D 8272
-8273 8273 EAB58E 8273
-8274 8274 EAB58F 8274
-8275 8275 EAB591 8275
-8276 8276 EAB592 8276
-8277 8277 EAB593 8277
-8278 8278 EAB595 8278
-8279 8279 EAB596 8279
-827A 827A EAB597 827A
-8281 8281 EAB599 8281
-8282 8282 EAB59A 8282
-8283 8283 EAB59B 8283
-8284 8284 EAB59C 8284
-8285 8285 EAB59D 8285
-8286 8286 EAB59E 8286
-8287 8287 EAB59F 8287
-8288 8288 EAB5A0 8288
-8289 8289 EAB5A2 8289
-828A 828A EAB5A4 828A
-828B 828B EAB5A5 828B
-828C 828C EAB5A6 828C
-828D 828D EAB5A7 828D
-828E 828E EAB5A8 828E
-828F 828F EAB5A9 828F
-8290 8290 EAB5AA 8290
-8291 8291 EAB5AB 8291
-8292 8292 EAB5AE 8292
-8293 8293 EAB5AF 8293
-8294 8294 EAB5B1 8294
-8295 8295 EAB5B2 8295
-8296 8296 EAB5B7 8296
-8297 8297 EAB5B8 8297
-8298 8298 EAB5B9 8298
-8299 8299 EAB5BA 8299
-829A 829A EAB5BE 829A
-829B 829B EAB680 829B
-829C 829C EAB683 829C
-829D 829D EAB684 829D
-829E 829E EAB685 829E
-829F 829F EAB686 829F
-82A0 82A0 EAB687 82A0
-82A1 82A1 EAB68A 82A1
-82A2 82A2 EAB68B 82A2
-82A3 82A3 EAB68D 82A3
-82A4 82A4 EAB68E 82A4
-82A5 82A5 EAB68F 82A5
-82A6 82A6 EAB691 82A6
-82A7 82A7 EAB692 82A7
-82A8 82A8 EAB693 82A8
-82A9 82A9 EAB694 82A9
-82AA 82AA EAB695 82AA
-82AB 82AB EAB696 82AB
-82AC 82AC EAB697 82AC
-82AD 82AD EAB698 82AD
-82AE 82AE EAB699 82AE
-82AF 82AF EAB69A 82AF
-82B0 82B0 EAB69B 82B0
-82B1 82B1 EAB69E 82B1
-82B2 82B2 EAB69F 82B2
-82B3 82B3 EAB6A0 82B3
-82B4 82B4 EAB6A1 82B4
-82B5 82B5 EAB6A2 82B5
-82B6 82B6 EAB6A3 82B6
-82B7 82B7 EAB6A5 82B7
-82B8 82B8 EAB6A6 82B8
-82B9 82B9 EAB6A7 82B9
-82BA 82BA EAB6A8 82BA
-82BB 82BB EAB6A9 82BB
-82BC 82BC EAB6AA 82BC
-82BD 82BD EAB6AB 82BD
-82BE 82BE EAB6AC 82BE
-82BF 82BF EAB6AD 82BF
-82C0 82C0 EAB6AE 82C0
-82C1 82C1 EAB6AF 82C1
-82C2 82C2 EAB6B0 82C2
-82C3 82C3 EAB6B1 82C3
-82C4 82C4 EAB6B2 82C4
-82C5 82C5 EAB6B3 82C5
-82C6 82C6 EAB6B4 82C6
-82C7 82C7 EAB6B5 82C7
-82C8 82C8 EAB6B6 82C8
-82C9 82C9 EAB6B8 82C9
-82CA 82CA EAB6B9 82CA
-82CB 82CB EAB6BA 82CB
-82CC 82CC EAB6BB 82CC
-82CD 82CD EAB6BC 82CD
-82CE 82CE EAB6BD 82CE
-82CF 82CF EAB6BE 82CF
-82D0 82D0 EAB6BF 82D0
-82D1 82D1 EAB782 82D1
-82D2 82D2 EAB783 82D2
-82D3 82D3 EAB785 82D3
-82D4 82D4 EAB786 82D4
-82D5 82D5 EAB787 82D5
-82D6 82D6 EAB789 82D6
-82D7 82D7 EAB78A 82D7
-82D8 82D8 EAB78B 82D8
-82D9 82D9 EAB78C 82D9
-82DA 82DA EAB78D 82DA
-82DB 82DB EAB78E 82DB
-82DC 82DC EAB78F 82DC
-82DD 82DD EAB792 82DD
-82DE 82DE EAB794 82DE
-82DF 82DF EAB795 82DF
-82E0 82E0 EAB796 82E0
-82E1 82E1 EAB797 82E1
-82E2 82E2 EAB798 82E2
-82E3 82E3 EAB799 82E3
-82E4 82E4 EAB79A 82E4
-82E5 82E5 EAB79B 82E5
-82E6 82E6 EAB79D 82E6
-82E7 82E7 EAB79E 82E7
-82E8 82E8 EAB79F 82E8
-82E9 82E9 EAB7A1 82E9
-82EA 82EA EAB7A2 82EA
-82EB 82EB EAB7A3 82EB
-82EC 82EC EAB7A5 82EC
-82ED 82ED EAB7A6 82ED
-82EE 82EE EAB7A7 82EE
-82EF 82EF EAB7A8 82EF
-82F0 82F0 EAB7A9 82F0
-82F1 82F1 EAB7AA 82F1
-82F2 82F2 EAB7AB 82F2
-82F3 82F3 EAB7AC 82F3
-82F4 82F4 EAB7AD 82F4
-82F5 82F5 EAB7AE 82F5
-82F6 82F6 EAB7AF 82F6
-82F7 82F7 EAB7B0 82F7
-82F8 82F8 EAB7B1 82F8
-82F9 82F9 EAB7B2 82F9
-82FA 82FA EAB7B3 82FA
-82FB 82FB EAB7B4 82FB
-82FC 82FC EAB7B5 82FC
-82FD 82FD EAB7B6 82FD
-82FE 82FE EAB7B7 82FE
-8341 8341 EAB7BA 8341
-8342 8342 EAB7BB 8342
-8343 8343 EAB7BD 8343
-8344 8344 EAB7BE 8344
-8345 8345 EAB882 8345
-8346 8346 EAB883 8346
-8347 8347 EAB884 8347
-8348 8348 EAB885 8348
-8349 8349 EAB886 8349
-834A 834A EAB887 834A
-834B 834B EAB88A 834B
-834C 834C EAB88C 834C
-834D 834D EAB88E 834D
-834E 834E EAB88F 834E
-834F 834F EAB890 834F
-8350 8350 EAB891 8350
-8351 8351 EAB892 8351
-8352 8352 EAB893 8352
-8353 8353 EAB895 8353
-8354 8354 EAB896 8354
-8355 8355 EAB897 8355
-8356 8356 EAB898 8356
-8357 8357 EAB899 8357
-8358 8358 EAB89A 8358
-8359 8359 EAB89B 8359
-835A 835A EAB89C 835A
-8361 8361 EAB89D 8361
-8362 8362 EAB89E 8362
-8363 8363 EAB89F 8363
-8364 8364 EAB8A0 8364
-8365 8365 EAB8A1 8365
-8366 8366 EAB8A2 8366
-8367 8367 EAB8A3 8367
-8368 8368 EAB8A4 8368
-8369 8369 EAB8A5 8369
-836A 836A EAB8A6 836A
-836B 836B EAB8A7 836B
-836C 836C EAB8A8 836C
-836D 836D EAB8A9 836D
-836E 836E EAB8AA 836E
-836F 836F EAB8AB 836F
-8370 8370 EAB8AC 8370
-8371 8371 EAB8AD 8371
-8372 8372 EAB8AE 8372
-8373 8373 EAB8AF 8373
-8374 8374 EAB8B2 8374
-8375 8375 EAB8B3 8375
-8376 8376 EAB8B5 8376
-8377 8377 EAB8B6 8377
-8378 8378 EAB8B9 8378
-8379 8379 EAB8BB 8379
-837A 837A EAB8BC 837A
-8381 8381 EAB8BD 8381
-8382 8382 EAB8BE 8382
-8383 8383 EAB8BF 8383
-8384 8384 EAB982 8384
-8385 8385 EAB984 8385
-8386 8386 EAB987 8386
-8387 8387 EAB988 8387
-8388 8388 EAB989 8388
-8389 8389 EAB98B 8389
-838A 838A EAB98F 838A
-838B 838B EAB991 838B
-838C 838C EAB992 838C
-838D 838D EAB993 838D
-838E 838E EAB995 838E
-838F 838F EAB997 838F
-8390 8390 EAB998 8390
-8391 8391 EAB999 8391
-8392 8392 EAB99A 8392
-8393 8393 EAB99B 8393
-8394 8394 EAB99E 8394
-8395 8395 EAB9A2 8395
-8396 8396 EAB9A3 8396
-8397 8397 EAB9A4 8397
-8398 8398 EAB9A6 8398
-8399 8399 EAB9A7 8399
-839A 839A EAB9AA 839A
-839B 839B EAB9AB 839B
-839C 839C EAB9AD 839C
-839D 839D EAB9AE 839D
-839E 839E EAB9AF 839E
-839F 839F EAB9B1 839F
-83A0 83A0 EAB9B2 83A0
-83A1 83A1 EAB9B3 83A1
-83A2 83A2 EAB9B4 83A2
-83A3 83A3 EAB9B5 83A3
-83A4 83A4 EAB9B6 83A4
-83A5 83A5 EAB9B7 83A5
-83A6 83A6 EAB9BA 83A6
-83A7 83A7 EAB9BE 83A7
-83A8 83A8 EAB9BF 83A8
-83A9 83A9 EABA80 83A9
-83AA 83AA EABA81 83AA
-83AB 83AB EABA82 83AB
-83AC 83AC EABA83 83AC
-83AD 83AD EABA86 83AD
-83AE 83AE EABA87 83AE
-83AF 83AF EABA88 83AF
-83B0 83B0 EABA89 83B0
-83B1 83B1 EABA8A 83B1
-83B2 83B2 EABA8B 83B2
-83B3 83B3 EABA8D 83B3
-83B4 83B4 EABA8E 83B4
-83B5 83B5 EABA8F 83B5
-83B6 83B6 EABA90 83B6
-83B7 83B7 EABA91 83B7
-83B8 83B8 EABA92 83B8
-83B9 83B9 EABA93 83B9
-83BA 83BA EABA94 83BA
-83BB 83BB EABA95 83BB
-83BC 83BC EABA96 83BC
-83BD 83BD EABA97 83BD
-83BE 83BE EABA98 83BE
-83BF 83BF EABA99 83BF
-83C0 83C0 EABA9A 83C0
-83C1 83C1 EABA9B 83C1
-83C2 83C2 EABA9C 83C2
-83C3 83C3 EABA9D 83C3
-83C4 83C4 EABA9E 83C4
-83C5 83C5 EABA9F 83C5
-83C6 83C6 EABAA0 83C6
-83C7 83C7 EABAA1 83C7
-83C8 83C8 EABAA2 83C8
-83C9 83C9 EABAA3 83C9
-83CA 83CA EABAA4 83CA
-83CB 83CB EABAA5 83CB
-83CC 83CC EABAA6 83CC
-83CD 83CD EABAA7 83CD
-83CE 83CE EABAA8 83CE
-83CF 83CF EABAA9 83CF
-83D0 83D0 EABAAA 83D0
-83D1 83D1 EABAAB 83D1
-83D2 83D2 EABAAC 83D2
-83D3 83D3 EABAAD 83D3
-83D4 83D4 EABAAE 83D4
-83D5 83D5 EABAAF 83D5
-83D6 83D6 EABAB0 83D6
-83D7 83D7 EABAB1 83D7
-83D8 83D8 EABAB2 83D8
-83D9 83D9 EABAB3 83D9
-83DA 83DA EABAB4 83DA
-83DB 83DB EABAB5 83DB
-83DC 83DC EABAB6 83DC
-83DD 83DD EABAB7 83DD
-83DE 83DE EABAB8 83DE
-83DF 83DF EABAB9 83DF
-83E0 83E0 EABABA 83E0
-83E1 83E1 EABABB 83E1
-83E2 83E2 EABABF 83E2
-83E3 83E3 EABB81 83E3
-83E4 83E4 EABB82 83E4
-83E5 83E5 EABB83 83E5
-83E6 83E6 EABB85 83E6
-83E7 83E7 EABB86 83E7
-83E8 83E8 EABB87 83E8
-83E9 83E9 EABB88 83E9
-83EA 83EA EABB89 83EA
-83EB 83EB EABB8A 83EB
-83EC 83EC EABB8B 83EC
-83ED 83ED EABB8E 83ED
-83EE 83EE EABB92 83EE
-83EF 83EF EABB93 83EF
-83F0 83F0 EABB94 83F0
-83F1 83F1 EABB95 83F1
-83F2 83F2 EABB96 83F2
-83F3 83F3 EABB97 83F3
-83F4 83F4 EABB9A 83F4
-83F5 83F5 EABB9B 83F5
-83F6 83F6 EABB9D 83F6
-83F7 83F7 EABB9E 83F7
-83F8 83F8 EABB9F 83F8
-83F9 83F9 EABBA0 83F9
-83FA 83FA EABBA1 83FA
-83FB 83FB EABBA2 83FB
-83FC 83FC EABBA3 83FC
-83FD 83FD EABBA4 83FD
-83FE 83FE EABBA5 83FE
-8441 8441 EABBA6 8441
-8442 8442 EABBA7 8442
-8443 8443 EABBA9 8443
-8444 8444 EABBAA 8444
-8445 8445 EABBAC 8445
-8446 8446 EABBAE 8446
-8447 8447 EABBAF 8447
-8448 8448 EABBB0 8448
-8449 8449 EABBB1 8449
-844A 844A EABBB2 844A
-844B 844B EABBB3 844B
-844C 844C EABBB5 844C
-844D 844D EABBB6 844D
-844E 844E EABBB7 844E
-844F 844F EABBB9 844F
-8450 8450 EABBBA 8450
-8451 8451 EABBBB 8451
-8452 8452 EABBBD 8452
-8453 8453 EABBBE 8453
-8454 8454 EABBBF 8454
-8455 8455 EABC80 8455
-8456 8456 EABC81 8456
-8457 8457 EABC82 8457
-8458 8458 EABC83 8458
-8459 8459 EABC84 8459
-845A 845A EABC85 845A
-8461 8461 EABC86 8461
-8462 8462 EABC89 8462
-8463 8463 EABC8A 8463
-8464 8464 EABC8B 8464
-8465 8465 EABC8C 8465
-8466 8466 EABC8E 8466
-8467 8467 EABC8F 8467
-8468 8468 EABC91 8468
-8469 8469 EABC92 8469
-846A 846A EABC93 846A
-846B 846B EABC94 846B
-846C 846C EABC95 846C
-846D 846D EABC96 846D
-846E 846E EABC97 846E
-846F 846F EABC98 846F
-8470 8470 EABC99 8470
-8471 8471 EABC9A 8471
-8472 8472 EABC9B 8472
-8473 8473 EABC9C 8473
-8474 8474 EABC9D 8474
-8475 8475 EABC9E 8475
-8476 8476 EABC9F 8476
-8477 8477 EABCA0 8477
-8478 8478 EABCA1 8478
-8479 8479 EABCA2 8479
-847A 847A EABCA3 847A
-8481 8481 EABCA4 8481
-8482 8482 EABCA5 8482
-8483 8483 EABCA6 8483
-8484 8484 EABCA7 8484
-8485 8485 EABCA8 8485
-8486 8486 EABCA9 8486
-8487 8487 EABCAA 8487
-8488 8488 EABCAB 8488
-8489 8489 EABCAE 8489
-848A 848A EABCAF 848A
-848B 848B EABCB1 848B
-848C 848C EABCB3 848C
-848D 848D EABCB5 848D
-848E 848E EABCB6 848E
-848F 848F EABCB7 848F
-8490 8490 EABCB8 8490
-8491 8491 EABCB9 8491
-8492 8492 EABCBA 8492
-8493 8493 EABCBB 8493
-8494 8494 EABCBE 8494
-8495 8495 EABD80 8495
-8496 8496 EABD84 8496
-8497 8497 EABD85 8497
-8498 8498 EABD86 8498
-8499 8499 EABD87 8499
-849A 849A EABD8A 849A
-849B 849B EABD8B 849B
-849C 849C EABD8C 849C
-849D 849D EABD8D 849D
-849E 849E EABD8E 849E
-849F 849F EABD8F 849F
-84A0 84A0 EABD91 84A0
-84A1 84A1 EABD92 84A1
-84A2 84A2 EABD93 84A2
-84A3 84A3 EABD94 84A3
-84A4 84A4 EABD95 84A4
-84A5 84A5 EABD96 84A5
-84A6 84A6 EABD97 84A6
-84A7 84A7 EABD98 84A7
-84A8 84A8 EABD99 84A8
-84A9 84A9 EABD9A 84A9
-84AA 84AA EABD9B 84AA
-84AB 84AB EABD9E 84AB
-84AC 84AC EABD9F 84AC
-84AD 84AD EABDA0 84AD
-84AE 84AE EABDA1 84AE
-84AF 84AF EABDA2 84AF
-84B0 84B0 EABDA3 84B0
-84B1 84B1 EABDA6 84B1
-84B2 84B2 EABDA7 84B2
-84B3 84B3 EABDA8 84B3
-84B4 84B4 EABDA9 84B4
-84B5 84B5 EABDAA 84B5
-84B6 84B6 EABDAB 84B6
-84B7 84B7 EABDAC 84B7
-84B8 84B8 EABDAD 84B8
-84B9 84B9 EABDAE 84B9
-84BA 84BA EABDAF 84BA
-84BB 84BB EABDB0 84BB
-84BC 84BC EABDB1 84BC
-84BD 84BD EABDB2 84BD
-84BE 84BE EABDB3 84BE
-84BF 84BF EABDB4 84BF
-84C0 84C0 EABDB5 84C0
-84C1 84C1 EABDB6 84C1
-84C2 84C2 EABDB7 84C2
-84C3 84C3 EABDB8 84C3
-84C4 84C4 EABDBA 84C4
-84C5 84C5 EABDBB 84C5
-84C6 84C6 EABDBC 84C6
-84C7 84C7 EABDBD 84C7
-84C8 84C8 EABDBE 84C8
-84C9 84C9 EABDBF 84C9
-84CA 84CA EABE81 84CA
-84CB 84CB EABE82 84CB
-84CC 84CC EABE83 84CC
-84CD 84CD EABE85 84CD
-84CE 84CE EABE86 84CE
-84CF 84CF EABE87 84CF
-84D0 84D0 EABE89 84D0
-84D1 84D1 EABE8A 84D1
-84D2 84D2 EABE8B 84D2
-84D3 84D3 EABE8C 84D3
-84D4 84D4 EABE8D 84D4
-84D5 84D5 EABE8E 84D5
-84D6 84D6 EABE8F 84D6
-84D7 84D7 EABE92 84D7
-84D8 84D8 EABE93 84D8
-84D9 84D9 EABE94 84D9
-84DA 84DA EABE96 84DA
-84DB 84DB EABE97 84DB
-84DC 84DC EABE98 84DC
-84DD 84DD EABE99 84DD
-84DE 84DE EABE9A 84DE
-84DF 84DF EABE9B 84DF
-84E0 84E0 EABE9D 84E0
-84E1 84E1 EABE9E 84E1
-84E2 84E2 EABE9F 84E2
-84E3 84E3 EABEA0 84E3
-84E4 84E4 EABEA1 84E4
-84E5 84E5 EABEA2 84E5
-84E6 84E6 EABEA3 84E6
-84E7 84E7 EABEA4 84E7
-84E8 84E8 EABEA5 84E8
-84E9 84E9 EABEA6 84E9
-84EA 84EA EABEA7 84EA
-84EB 84EB EABEA8 84EB
-84EC 84EC EABEA9 84EC
-84ED 84ED EABEAA 84ED
-84EE 84EE EABEAB 84EE
-84EF 84EF EABEAC 84EF
-84F0 84F0 EABEAD 84F0
-84F1 84F1 EABEAE 84F1
-84F2 84F2 EABEAF 84F2
-84F3 84F3 EABEB0 84F3
-84F4 84F4 EABEB1 84F4
-84F5 84F5 EABEB2 84F5
-84F6 84F6 EABEB3 84F6
-84F7 84F7 EABEB4 84F7
-84F8 84F8 EABEB5 84F8
-84F9 84F9 EABEB6 84F9
-84FA 84FA EABEB7 84FA
-84FB 84FB EABEBA 84FB
-84FC 84FC EABEBB 84FC
-84FD 84FD EABEBD 84FD
-84FE 84FE EABEBE 84FE
-8541 8541 EABEBF 8541
-8542 8542 EABF81 8542
-8543 8543 EABF82 8543
-8544 8544 EABF83 8544
-8545 8545 EABF84 8545
-8546 8546 EABF85 8546
-8547 8547 EABF86 8547
-8548 8548 EABF8A 8548
-8549 8549 EABF8C 8549
-854A 854A EABF8F 854A
-854B 854B EABF90 854B
-854C 854C EABF91 854C
-854D 854D EABF92 854D
-854E 854E EABF93 854E
-854F 854F EABF95 854F
-8550 8550 EABF96 8550
-8551 8551 EABF97 8551
-8552 8552 EABF98 8552
-8553 8553 EABF99 8553
-8554 8554 EABF9A 8554
-8555 8555 EABF9B 8555
-8556 8556 EABF9D 8556
-8557 8557 EABF9E 8557
-8558 8558 EABF9F 8558
-8559 8559 EABFA0 8559
-855A 855A EABFA1 855A
-8561 8561 EABFA2 8561
-8562 8562 EABFA3 8562
-8563 8563 EABFA4 8563
-8564 8564 EABFA5 8564
-8565 8565 EABFA6 8565
-8566 8566 EABFA7 8566
-8567 8567 EABFAA 8567
-8568 8568 EABFAB 8568
-8569 8569 EABFAC 8569
-856A 856A EABFAD 856A
-856B 856B EABFAE 856B
-856C 856C EABFAF 856C
-856D 856D EABFB2 856D
-856E 856E EABFB3 856E
-856F 856F EABFB5 856F
-8570 8570 EABFB6 8570
-8571 8571 EABFB7 8571
-8572 8572 EABFB9 8572
-8573 8573 EABFBA 8573
-8574 8574 EABFBB 8574
-8575 8575 EABFBC 8575
-8576 8576 EABFBD 8576
-8577 8577 EABFBE 8577
-8578 8578 EABFBF 8578
-8579 8579 EB8082 8579
-857A 857A EB8083 857A
-8581 8581 EB8085 8581
-8582 8582 EB8086 8582
-8583 8583 EB8087 8583
-8584 8584 EB8088 8584
-8585 8585 EB8089 8585
-8586 8586 EB808A 8586
-8587 8587 EB808B 8587
-8588 8588 EB808D 8588
-8589 8589 EB808E 8589
-858A 858A EB808F 858A
-858B 858B EB8091 858B
-858C 858C EB8092 858C
-858D 858D EB8093 858D
-858E 858E EB8095 858E
-858F 858F EB8096 858F
-8590 8590 EB8097 8590
-8591 8591 EB8098 8591
-8592 8592 EB8099 8592
-8593 8593 EB809A 8593
-8594 8594 EB809B 8594
-8595 8595 EB809E 8595
-8596 8596 EB809F 8596
-8597 8597 EB80A0 8597
-8598 8598 EB80A1 8598
-8599 8599 EB80A2 8599
-859A 859A EB80A3 859A
-859B 859B EB80A4 859B
-859C 859C EB80A5 859C
-859D 859D EB80A6 859D
-859E 859E EB80A7 859E
-859F 859F EB80A9 859F
-85A0 85A0 EB80AA 85A0
-85A1 85A1 EB80AB 85A1
-85A2 85A2 EB80AC 85A2
-85A3 85A3 EB80AD 85A3
-85A4 85A4 EB80AE 85A4
-85A5 85A5 EB80AF 85A5
-85A6 85A6 EB80B0 85A6
-85A7 85A7 EB80B1 85A7
-85A8 85A8 EB80B2 85A8
-85A9 85A9 EB80B3 85A9
-85AA 85AA EB80B4 85AA
-85AB 85AB EB80B5 85AB
-85AC 85AC EB80B6 85AC
-85AD 85AD EB80B7 85AD
-85AE 85AE EB80B8 85AE
-85AF 85AF EB80B9 85AF
-85B0 85B0 EB80BA 85B0
-85B1 85B1 EB80BB 85B1
-85B2 85B2 EB80BC 85B2
-85B3 85B3 EB80BD 85B3
-85B4 85B4 EB80BE 85B4
-85B5 85B5 EB80BF 85B5
-85B6 85B6 EB8180 85B6
-85B7 85B7 EB8181 85B7
-85B8 85B8 EB8182 85B8
-85B9 85B9 EB8183 85B9
-85BA 85BA EB8186 85BA
-85BB 85BB EB8187 85BB
-85BC 85BC EB8189 85BC
-85BD 85BD EB818B 85BD
-85BE 85BE EB818D 85BE
-85BF 85BF EB818F 85BF
-85C0 85C0 EB8190 85C0
-85C1 85C1 EB8191 85C1
-85C2 85C2 EB8192 85C2
-85C3 85C3 EB8196 85C3
-85C4 85C4 EB8198 85C4
-85C5 85C5 EB819A 85C5
-85C6 85C6 EB819B 85C6
-85C7 85C7 EB819C 85C7
-85C8 85C8 EB819E 85C8
-85C9 85C9 EB819F 85C9
-85CA 85CA EB81A0 85CA
-85CB 85CB EB81A1 85CB
-85CC 85CC EB81A2 85CC
-85CD 85CD EB81A3 85CD
-85CE 85CE EB81A4 85CE
-85CF 85CF EB81A5 85CF
-85D0 85D0 EB81A6 85D0
-85D1 85D1 EB81A7 85D1
-85D2 85D2 EB81A8 85D2
-85D3 85D3 EB81A9 85D3
-85D4 85D4 EB81AA 85D4
-85D5 85D5 EB81AB 85D5
-85D6 85D6 EB81AC 85D6
-85D7 85D7 EB81AD 85D7
-85D8 85D8 EB81AE 85D8
-85D9 85D9 EB81AF 85D9
-85DA 85DA EB81B0 85DA
-85DB 85DB EB81B1 85DB
-85DC 85DC EB81B2 85DC
-85DD 85DD EB81B3 85DD
-85DE 85DE EB81B4 85DE
-85DF 85DF EB81B5 85DF
-85E0 85E0 EB81B6 85E0
-85E1 85E1 EB81B7 85E1
-85E2 85E2 EB81B8 85E2
-85E3 85E3 EB81B9 85E3
-85E4 85E4 EB81BA 85E4
-85E5 85E5 EB81BB 85E5
-85E6 85E6 EB81BE 85E6
-85E7 85E7 EB81BF 85E7
-85E8 85E8 EB8281 85E8
-85E9 85E9 EB8282 85E9
-85EA 85EA EB8283 85EA
-85EB 85EB EB8285 85EB
-85EC 85EC EB8286 85EC
-85ED 85ED EB8287 85ED
-85EE 85EE EB8288 85EE
-85EF 85EF EB8289 85EF
-85F0 85F0 EB828A 85F0
-85F1 85F1 EB828B 85F1
-85F2 85F2 EB828E 85F2
-85F3 85F3 EB8290 85F3
-85F4 85F4 EB8292 85F4
-85F5 85F5 EB8293 85F5
-85F6 85F6 EB8294 85F6
-85F7 85F7 EB8295 85F7
-85F8 85F8 EB8296 85F8
-85F9 85F9 EB8297 85F9
-85FA 85FA EB829B 85FA
-85FB 85FB EB829D 85FB
-85FC 85FC EB829E 85FC
-85FD 85FD EB82A3 85FD
-85FE 85FE EB82A4 85FE
-8641 8641 EB82A5 8641
-8642 8642 EB82A6 8642
-8643 8643 EB82A7 8643
-8644 8644 EB82AA 8644
-8645 8645 EB82B0 8645
-8646 8646 EB82B2 8646
-8647 8647 EB82B6 8647
-8648 8648 EB82B7 8648
-8649 8649 EB82B9 8649
-864A 864A EB82BA 864A
-864B 864B EB82BB 864B
-864C 864C EB82BD 864C
-864D 864D EB82BE 864D
-864E 864E EB82BF 864E
-864F 864F EB8380 864F
-8650 8650 EB8381 8650
-8651 8651 EB8382 8651
-8652 8652 EB8383 8652
-8653 8653 EB8386 8653
-8654 8654 EB838A 8654
-8655 8655 EB838B 8655
-8656 8656 EB838C 8656
-8657 8657 EB838D 8657
-8658 8658 EB838E 8658
-8659 8659 EB838F 8659
-865A 865A EB8392 865A
-8661 8661 EB8393 8661
-8662 8662 EB8395 8662
-8663 8663 EB8396 8663
-8664 8664 EB8397 8664
-8665 8665 EB8399 8665
-8666 8666 EB839A 8666
-8667 8667 EB839B 8667
-8668 8668 EB839C 8668
-8669 8669 EB839D 8669
-866A 866A EB839E 866A
-866B 866B EB839F 866B
-866C 866C EB83A1 866C
-866D 866D EB83A2 866D
-866E 866E EB83A3 866E
-866F 866F EB83A4 866F
-8670 8670 EB83A6 8670
-8671 8671 EB83A7 8671
-8672 8672 EB83A8 8672
-8673 8673 EB83A9 8673
-8674 8674 EB83AA 8674
-8675 8675 EB83AB 8675
-8676 8676 EB83AC 8676
-8677 8677 EB83AD 8677
-8678 8678 EB83AE 8678
-8679 8679 EB83AF 8679
-867A 867A EB83B0 867A
-8681 8681 EB83B1 8681
-8682 8682 EB83B2 8682
-8683 8683 EB83B3 8683
-8684 8684 EB83B4 8684
-8685 8685 EB83B5 8685
-8686 8686 EB83B6 8686
-8687 8687 EB83B7 8687
-8688 8688 EB83B8 8688
-8689 8689 EB83B9 8689
-868A 868A EB83BA 868A
-868B 868B EB83BB 868B
-868C 868C EB83BC 868C
-868D 868D EB83BD 868D
-868E 868E EB83BE 868E
-868F 868F EB83BF 868F
-8690 8690 EB8480 8690
-8691 8691 EB8481 8691
-8692 8692 EB8482 8692
-8693 8693 EB8483 8693
-8694 8694 EB8484 8694
-8695 8695 EB8485 8695
-8696 8696 EB8486 8696
-8697 8697 EB8487 8697
-8698 8698 EB848A 8698
-8699 8699 EB848D 8699
-869A 869A EB848E 869A
-869B 869B EB848F 869B
-869C 869C EB8491 869C
-869D 869D EB8494 869D
-869E 869E EB8495 869E
-869F 869F EB8496 869F
-86A0 86A0 EB8497 86A0
-86A1 86A1 EB849A 86A1
-86A2 86A2 EB849E 86A2
-86A3 86A3 EB849F 86A3
-86A4 86A4 EB84A0 86A4
-86A5 86A5 EB84A1 86A5
-86A6 86A6 EB84A2 86A6
-86A7 86A7 EB84A6 86A7
-86A8 86A8 EB84A7 86A8
-86A9 86A9 EB84A9 86A9
-86AA 86AA EB84AA 86AA
-86AB 86AB EB84AB 86AB
-86AC 86AC EB84AD 86AC
-86AD 86AD EB84AE 86AD
-86AE 86AE EB84AF 86AE
-86AF 86AF EB84B0 86AF
-86B0 86B0 EB84B1 86B0
-86B1 86B1 EB84B2 86B1
-86B2 86B2 EB84B3 86B2
-86B3 86B3 EB84B6 86B3
-86B4 86B4 EB84BA 86B4
-86B5 86B5 EB84BB 86B5
-86B6 86B6 EB84BC 86B6
-86B7 86B7 EB84BD 86B7
-86B8 86B8 EB84BE 86B8
-86B9 86B9 EB84BF 86B9
-86BA 86BA EB8582 86BA
-86BB 86BB EB8583 86BB
-86BC 86BC EB8585 86BC
-86BD 86BD EB8586 86BD
-86BE 86BE EB8587 86BE
-86BF 86BF EB8589 86BF
-86C0 86C0 EB858A 86C0
-86C1 86C1 EB858B 86C1
-86C2 86C2 EB858C 86C2
-86C3 86C3 EB858D 86C3
-86C4 86C4 EB858E 86C4
-86C5 86C5 EB858F 86C5
-86C6 86C6 EB8592 86C6
-86C7 86C7 EB8593 86C7
-86C8 86C8 EB8596 86C8
-86C9 86C9 EB8597 86C9
-86CA 86CA EB8599 86CA
-86CB 86CB EB859A 86CB
-86CC 86CC EB859B 86CC
-86CD 86CD EB859D 86CD
-86CE 86CE EB859E 86CE
-86CF 86CF EB859F 86CF
-86D0 86D0 EB85A1 86D0
-86D1 86D1 EB85A2 86D1
-86D2 86D2 EB85A3 86D2
-86D3 86D3 EB85A4 86D3
-86D4 86D4 EB85A5 86D4
-86D5 86D5 EB85A6 86D5
-86D6 86D6 EB85A7 86D6
-86D7 86D7 EB85A8 86D7
-86D8 86D8 EB85A9 86D8
-86D9 86D9 EB85AA 86D9
-86DA 86DA EB85AB 86DA
-86DB 86DB EB85AC 86DB
-86DC 86DC EB85AD 86DC
-86DD 86DD EB85AE 86DD
-86DE 86DE EB85AF 86DE
-86DF 86DF EB85B0 86DF
-86E0 86E0 EB85B1 86E0
-86E1 86E1 EB85B2 86E1
-86E2 86E2 EB85B3 86E2
-86E3 86E3 EB85B4 86E3
-86E4 86E4 EB85B5 86E4
-86E5 86E5 EB85B6 86E5
-86E6 86E6 EB85B7 86E6
-86E7 86E7 EB85BA 86E7
-86E8 86E8 EB85BB 86E8
-86E9 86E9 EB85BD 86E9
-86EA 86EA EB85BE 86EA
-86EB 86EB EB85BF 86EB
-86EC 86EC EB8681 86EC
-86ED 86ED EB8683 86ED
-86EE 86EE EB8684 86EE
-86EF 86EF EB8685 86EF
-86F0 86F0 EB8686 86F0
-86F1 86F1 EB8687 86F1
-86F2 86F2 EB868A 86F2
-86F3 86F3 EB868C 86F3
-86F4 86F4 EB868E 86F4
-86F5 86F5 EB868F 86F5
-86F6 86F6 EB8690 86F6
-86F7 86F7 EB8691 86F7
-86F8 86F8 EB8695 86F8
-86F9 86F9 EB8696 86F9
-86FA 86FA EB8697 86FA
-86FB 86FB EB8699 86FB
-86FC 86FC EB869A 86FC
-86FD 86FD EB869B 86FD
-86FE 86FE EB869D 86FE
-8741 8741 EB869E 8741
-8742 8742 EB869F 8742
-8743 8743 EB86A0 8743
-8744 8744 EB86A1 8744
-8745 8745 EB86A2 8745
-8746 8746 EB86A3 8746
-8747 8747 EB86A4 8747
-8748 8748 EB86A5 8748
-8749 8749 EB86A6 8749
-874A 874A EB86A7 874A
-874B 874B EB86A9 874B
-874C 874C EB86AA 874C
-874D 874D EB86AB 874D
-874E 874E EB86AC 874E
-874F 874F EB86AD 874F
-8750 8750 EB86AE 8750
-8751 8751 EB86AF 8751
-8752 8752 EB86B0 8752
-8753 8753 EB86B1 8753
-8754 8754 EB86B2 8754
-8755 8755 EB86B3 8755
-8756 8756 EB86B4 8756
-8757 8757 EB86B5 8757
-8758 8758 EB86B6 8758
-8759 8759 EB86B7 8759
-875A 875A EB86B8 875A
-8761 8761 EB86B9 8761
-8762 8762 EB86BA 8762
-8763 8763 EB86BB 8763
-8764 8764 EB86BC 8764
-8765 8765 EB86BD 8765
-8766 8766 EB86BE 8766
-8767 8767 EB86BF 8767
-8768 8768 EB8780 8768
-8769 8769 EB8781 8769
-876A 876A EB8782 876A
-876B 876B EB8783 876B
-876C 876C EB8784 876C
-876D 876D EB8785 876D
-876E 876E EB8786 876E
-876F 876F EB8787 876F
-8770 8770 EB8788 8770
-8771 8771 EB8789 8771
-8772 8772 EB878A 8772
-8773 8773 EB878B 8773
-8774 8774 EB878D 8774
-8775 8775 EB878E 8775
-8776 8776 EB878F 8776
-8777 8777 EB8791 8777
-8778 8778 EB8792 8778
-8779 8779 EB8793 8779
-877A 877A EB8795 877A
-8781 8781 EB8796 8781
-8782 8782 EB8797 8782
-8783 8783 EB8798 8783
-8784 8784 EB8799 8784
-8785 8785 EB879A 8785
-8786 8786 EB879B 8786
-8787 8787 EB879E 8787
-8788 8788 EB87A0 8788
-8789 8789 EB87A1 8789
-878A 878A EB87A2 878A
-878B 878B EB87A3 878B
-878C 878C EB87A4 878C
-878D 878D EB87A5 878D
-878E 878E EB87A6 878E
-878F 878F EB87A7 878F
-8790 8790 EB87AA 8790
-8791 8791 EB87AB 8791
-8792 8792 EB87AD 8792
-8793 8793 EB87AE 8793
-8794 8794 EB87AF 8794
-8795 8795 EB87B1 8795
-8796 8796 EB87B2 8796
-8797 8797 EB87B3 8797
-8798 8798 EB87B4 8798
-8799 8799 EB87B5 8799
-879A 879A EB87B6 879A
-879B 879B EB87B7 879B
-879C 879C EB87B8 879C
-879D 879D EB87BA 879D
-879E 879E EB87BC 879E
-879F 879F EB87BE 879F
-87A0 87A0 EB87BF 87A0
-87A1 87A1 EB8880 87A1
-87A2 87A2 EB8881 87A2
-87A3 87A3 EB8882 87A3
-87A4 87A4 EB8883 87A4
-87A5 87A5 EB8886 87A5
-87A6 87A6 EB8887 87A6
-87A7 87A7 EB8889 87A7
-87A8 87A8 EB888A 87A8
-87A9 87A9 EB888D 87A9
-87AA 87AA EB888E 87AA
-87AB 87AB EB888F 87AB
-87AC 87AC EB8890 87AC
-87AD 87AD EB8891 87AD
-87AE 87AE EB8892 87AE
-87AF 87AF EB8893 87AF
-87B0 87B0 EB8896 87B0
-87B1 87B1 EB8898 87B1
-87B2 87B2 EB889A 87B2
-87B3 87B3 EB889B 87B3
-87B4 87B4 EB889C 87B4
-87B5 87B5 EB889D 87B5
-87B6 87B6 EB889E 87B6
-87B7 87B7 EB889F 87B7
-87B8 87B8 EB88A1 87B8
-87B9 87B9 EB88A2 87B9
-87BA 87BA EB88A3 87BA
-87BB 87BB EB88A4 87BB
-87BC 87BC EB88A5 87BC
-87BD 87BD EB88A6 87BD
-87BE 87BE EB88A7 87BE
-87BF 87BF EB88A8 87BF
-87C0 87C0 EB88A9 87C0
-87C1 87C1 EB88AA 87C1
-87C2 87C2 EB88AB 87C2
-87C3 87C3 EB88AC 87C3
-87C4 87C4 EB88AD 87C4
-87C5 87C5 EB88AE 87C5
-87C6 87C6 EB88AF 87C6
-87C7 87C7 EB88B0 87C7
-87C8 87C8 EB88B1 87C8
-87C9 87C9 EB88B2 87C9
-87CA 87CA EB88B3 87CA
-87CB 87CB EB88B5 87CB
-87CC 87CC EB88B6 87CC
-87CD 87CD EB88B7 87CD
-87CE 87CE EB88B8 87CE
-87CF 87CF EB88B9 87CF
-87D0 87D0 EB88BA 87D0
-87D1 87D1 EB88BB 87D1
-87D2 87D2 EB88BD 87D2
-87D3 87D3 EB88BE 87D3
-87D4 87D4 EB88BF 87D4
-87D5 87D5 EB8980 87D5
-87D6 87D6 EB8981 87D6
-87D7 87D7 EB8982 87D7
-87D8 87D8 EB8983 87D8
-87D9 87D9 EB8984 87D9
-87DA 87DA EB8985 87DA
-87DB 87DB EB8986 87DB
-87DC 87DC EB8987 87DC
-87DD 87DD EB8988 87DD
-87DE 87DE EB8989 87DE
-87DF 87DF EB898A 87DF
-87E0 87E0 EB898B 87E0
-87E1 87E1 EB898C 87E1
-87E2 87E2 EB898D 87E2
-87E3 87E3 EB898E 87E3
-87E4 87E4 EB898F 87E4
-87E5 87E5 EB8990 87E5
-87E6 87E6 EB8991 87E6
-87E7 87E7 EB8992 87E7
-87E8 87E8 EB8993 87E8
-87E9 87E9 EB8994 87E9
-87EA 87EA EB8995 87EA
-87EB 87EB EB8996 87EB
-87EC 87EC EB8997 87EC
-87ED 87ED EB8999 87ED
-87EE 87EE EB899A 87EE
-87EF 87EF EB899B 87EF
-87F0 87F0 EB899D 87F0
-87F1 87F1 EB899E 87F1
-87F2 87F2 EB899F 87F2
-87F3 87F3 EB89A1 87F3
-87F4 87F4 EB89A2 87F4
-87F5 87F5 EB89A3 87F5
-87F6 87F6 EB89A4 87F6
-87F7 87F7 EB89A5 87F7
-87F8 87F8 EB89A6 87F8
-87F9 87F9 EB89A7 87F9
-87FA 87FA EB89AA 87FA
-87FB 87FB EB89AB 87FB
-87FC 87FC EB89AC 87FC
-87FD 87FD EB89AD 87FD
-87FE 87FE EB89AE 87FE
-8841 8841 EB89AF 8841
-8842 8842 EB89B0 8842
-8843 8843 EB89B1 8843
-8844 8844 EB89B2 8844
-8845 8845 EB89B3 8845
-8846 8846 EB89B6 8846
-8847 8847 EB89B7 8847
-8848 8848 EB89B8 8848
-8849 8849 EB89B9 8849
-884A 884A EB89BA 884A
-884B 884B EB89BB 884B
-884C 884C EB89BD 884C
-884D 884D EB89BE 884D
-884E 884E EB89BF 884E
-884F 884F EB8A80 884F
-8850 8850 EB8A81 8850
-8851 8851 EB8A82 8851
-8852 8852 EB8A83 8852
-8853 8853 EB8A86 8853
-8854 8854 EB8A87 8854
-8855 8855 EB8A88 8855
-8856 8856 EB8A8A 8856
-8857 8857 EB8A8B 8857
-8858 8858 EB8A8C 8858
-8859 8859 EB8A8D 8859
-885A 885A EB8A8E 885A
-8861 8861 EB8A8F 8861
-8862 8862 EB8A92 8862
-8863 8863 EB8A93 8863
-8864 8864 EB8A95 8864
-8865 8865 EB8A96 8865
-8866 8866 EB8A97 8866
-8867 8867 EB8A9B 8867
-8868 8868 EB8A9C 8868
-8869 8869 EB8A9D 8869
-886A 886A EB8A9E 886A
-886B 886B EB8A9F 886B
-886C 886C EB8AA2 886C
-886D 886D EB8AA4 886D
-886E 886E EB8AA7 886E
-886F 886F EB8AA8 886F
-8870 8870 EB8AA9 8870
-8871 8871 EB8AAB 8871
-8872 8872 EB8AAD 8872
-8873 8873 EB8AAE 8873
-8874 8874 EB8AAF 8874
-8875 8875 EB8AB1 8875
-8876 8876 EB8AB2 8876
-8877 8877 EB8AB3 8877
-8878 8878 EB8AB5 8878
-8879 8879 EB8AB6 8879
-887A 887A EB8AB7 887A
-8881 8881 EB8AB8 8881
-8882 8882 EB8AB9 8882
-8883 8883 EB8ABA 8883
-8884 8884 EB8ABB 8884
-8885 8885 EB8ABC 8885
-8886 8886 EB8ABD 8886
-8887 8887 EB8ABE 8887
-8888 8888 EB8ABF 8888
-8889 8889 EB8B80 8889
-888A 888A EB8B81 888A
-888B 888B EB8B82 888B
-888C 888C EB8B83 888C
-888D 888D EB8B84 888D
-888E 888E EB8B85 888E
-888F 888F EB8B86 888F
-8890 8890 EB8B87 8890
-8891 8891 EB8B8A 8891
-8892 8892 EB8B8B 8892
-8893 8893 EB8B8D 8893
-8894 8894 EB8B8E 8894
-8895 8895 EB8B8F 8895
-8896 8896 EB8B91 8896
-8897 8897 EB8B93 8897
-8898 8898 EB8B94 8898
-8899 8899 EB8B95 8899
-889A 889A EB8B96 889A
-889B 889B EB8B97 889B
-889C 889C EB8B9A 889C
-889D 889D EB8B9C 889D
-889E 889E EB8B9E 889E
-889F 889F EB8B9F 889F
-88A0 88A0 EB8BA0 88A0
-88A1 88A1 EB8BA1 88A1
-88A2 88A2 EB8BA3 88A2
-88A3 88A3 EB8BA7 88A3
-88A4 88A4 EB8BA9 88A4
-88A5 88A5 EB8BAA 88A5
-88A6 88A6 EB8BB0 88A6
-88A7 88A7 EB8BB1 88A7
-88A8 88A8 EB8BB2 88A8
-88A9 88A9 EB8BB6 88A9
-88AA 88AA EB8BBC 88AA
-88AB 88AB EB8BBD 88AB
-88AC 88AC EB8BBE 88AC
-88AD 88AD EB8C82 88AD
-88AE 88AE EB8C83 88AE
-88AF 88AF EB8C85 88AF
-88B0 88B0 EB8C86 88B0
-88B1 88B1 EB8C87 88B1
-88B2 88B2 EB8C89 88B2
-88B3 88B3 EB8C8A 88B3
-88B4 88B4 EB8C8B 88B4
-88B5 88B5 EB8C8C 88B5
-88B6 88B6 EB8C8D 88B6
-88B7 88B7 EB8C8E 88B7
-88B8 88B8 EB8C8F 88B8
-88B9 88B9 EB8C92 88B9
-88BA 88BA EB8C96 88BA
-88BB 88BB EB8C97 88BB
-88BC 88BC EB8C98 88BC
-88BD 88BD EB8C99 88BD
-88BE 88BE EB8C9A 88BE
-88BF 88BF EB8C9B 88BF
-88C0 88C0 EB8C9D 88C0
-88C1 88C1 EB8C9E 88C1
-88C2 88C2 EB8C9F 88C2
-88C3 88C3 EB8CA0 88C3
-88C4 88C4 EB8CA1 88C4
-88C5 88C5 EB8CA2 88C5
-88C6 88C6 EB8CA3 88C6
-88C7 88C7 EB8CA4 88C7
-88C8 88C8 EB8CA5 88C8
-88C9 88C9 EB8CA6 88C9
-88CA 88CA EB8CA7 88CA
-88CB 88CB EB8CA8 88CB
-88CC 88CC EB8CA9 88CC
-88CD 88CD EB8CAA 88CD
-88CE 88CE EB8CAB 88CE
-88CF 88CF EB8CAC 88CF
-88D0 88D0 EB8CAD 88D0
-88D1 88D1 EB8CAE 88D1
-88D2 88D2 EB8CAF 88D2
-88D3 88D3 EB8CB0 88D3
-88D4 88D4 EB8CB1 88D4
-88D5 88D5 EB8CB2 88D5
-88D6 88D6 EB8CB3 88D6
-88D7 88D7 EB8CB4 88D7
-88D8 88D8 EB8CB5 88D8
-88D9 88D9 EB8CB6 88D9
-88DA 88DA EB8CB7 88DA
-88DB 88DB EB8CB8 88DB
-88DC 88DC EB8CB9 88DC
-88DD 88DD EB8CBA 88DD
-88DE 88DE EB8CBB 88DE
-88DF 88DF EB8CBC 88DF
-88E0 88E0 EB8CBD 88E0
-88E1 88E1 EB8CBE 88E1
-88E2 88E2 EB8CBF 88E2
-88E3 88E3 EB8D80 88E3
-88E4 88E4 EB8D81 88E4
-88E5 88E5 EB8D82 88E5
-88E6 88E6 EB8D83 88E6
-88E7 88E7 EB8D84 88E7
-88E8 88E8 EB8D85 88E8
-88E9 88E9 EB8D86 88E9
-88EA 88EA EB8D87 88EA
-88EB 88EB EB8D88 88EB
-88EC 88EC EB8D89 88EC
-88ED 88ED EB8D8A 88ED
-88EE 88EE EB8D8B 88EE
-88EF 88EF EB8D8C 88EF
-88F0 88F0 EB8D8D 88F0
-88F1 88F1 EB8D8E 88F1
-88F2 88F2 EB8D8F 88F2
-88F3 88F3 EB8D90 88F3
-88F4 88F4 EB8D91 88F4
-88F5 88F5 EB8D92 88F5
-88F6 88F6 EB8D93 88F6
-88F7 88F7 EB8D97 88F7
-88F8 88F8 EB8D99 88F8
-88F9 88F9 EB8D9A 88F9
-88FA 88FA EB8D9D 88FA
-88FB 88FB EB8DA0 88FB
-88FC 88FC EB8DA1 88FC
-88FD 88FD EB8DA2 88FD
-88FE 88FE EB8DA3 88FE
-8941 8941 EB8DA6 8941
-8942 8942 EB8DA8 8942
-8943 8943 EB8DAA 8943
-8944 8944 EB8DAC 8944
-8945 8945 EB8DAD 8945
-8946 8946 EB8DAF 8946
-8947 8947 EB8DB2 8947
-8948 8948 EB8DB3 8948
-8949 8949 EB8DB5 8949
-894A 894A EB8DB6 894A
-894B 894B EB8DB7 894B
-894C 894C EB8DB9 894C
-894D 894D EB8DBA 894D
-894E 894E EB8DBB 894E
-894F 894F EB8DBC 894F
-8950 8950 EB8DBD 8950
-8951 8951 EB8DBE 8951
-8952 8952 EB8DBF 8952
-8953 8953 EB8E82 8953
-8954 8954 EB8E86 8954
-8955 8955 EB8E87 8955
-8956 8956 EB8E88 8956
-8957 8957 EB8E89 8957
-8958 8958 EB8E8A 8958
-8959 8959 EB8E8B 8959
-895A 895A EB8E8D 895A
-8961 8961 EB8E8E 8961
-8962 8962 EB8E8F 8962
-8963 8963 EB8E91 8963
-8964 8964 EB8E92 8964
-8965 8965 EB8E93 8965
-8966 8966 EB8E95 8966
-8967 8967 EB8E96 8967
-8968 8968 EB8E97 8968
-8969 8969 EB8E98 8969
-896A 896A EB8E99 896A
-896B 896B EB8E9A 896B
-896C 896C EB8E9B 896C
-896D 896D EB8E9C 896D
-896E 896E EB8E9D 896E
-896F 896F EB8E9E 896F
-8970 8970 EB8E9F 8970
-8971 8971 EB8EA2 8971
-8972 8972 EB8EA3 8972
-8973 8973 EB8EA4 8973
-8974 8974 EB8EA5 8974
-8975 8975 EB8EA6 8975
-8976 8976 EB8EA7 8976
-8977 8977 EB8EA9 8977
-8978 8978 EB8EAA 8978
-8979 8979 EB8EAB 8979
-897A 897A EB8EAD 897A
-8981 8981 EB8EAE 8981
-8982 8982 EB8EAF 8982
-8983 8983 EB8EB0 8983
-8984 8984 EB8EB1 8984
-8985 8985 EB8EB2 8985
-8986 8986 EB8EB3 8986
-8987 8987 EB8EB4 8987
-8988 8988 EB8EB5 8988
-8989 8989 EB8EB6 8989
-898A 898A EB8EB7 898A
-898B 898B EB8EB8 898B
-898C 898C EB8EB9 898C
-898D 898D EB8EBA 898D
-898E 898E EB8EBB 898E
-898F 898F EB8EBC 898F
-8990 8990 EB8EBD 8990
-8991 8991 EB8EBE 8991
-8992 8992 EB8EBF 8992
-8993 8993 EB8F80 8993
-8994 8994 EB8F81 8994
-8995 8995 EB8F82 8995
-8996 8996 EB8F83 8996
-8997 8997 EB8F86 8997
-8998 8998 EB8F87 8998
-8999 8999 EB8F89 8999
-899A 899A EB8F8A 899A
-899B 899B EB8F8D 899B
-899C 899C EB8F8F 899C
-899D 899D EB8F91 899D
-899E 899E EB8F92 899E
-899F 899F EB8F93 899F
-89A0 89A0 EB8F96 89A0
-89A1 89A1 EB8F98 89A1
-89A2 89A2 EB8F9A 89A2
-89A3 89A3 EB8F9C 89A3
-89A4 89A4 EB8F9E 89A4
-89A5 89A5 EB8F9F 89A5
-89A6 89A6 EB8FA1 89A6
-89A7 89A7 EB8FA2 89A7
-89A8 89A8 EB8FA3 89A8
-89A9 89A9 EB8FA5 89A9
-89AA 89AA EB8FA6 89AA
-89AB 89AB EB8FA7 89AB
-89AC 89AC EB8FA9 89AC
-89AD 89AD EB8FAA 89AD
-89AE 89AE EB8FAB 89AE
-89AF 89AF EB8FAC 89AF
-89B0 89B0 EB8FAD 89B0
-89B1 89B1 EB8FAE 89B1
-89B2 89B2 EB8FAF 89B2
-89B3 89B3 EB8FB0 89B3
-89B4 89B4 EB8FB1 89B4
-89B5 89B5 EB8FB2 89B5
-89B6 89B6 EB8FB3 89B6
-89B7 89B7 EB8FB4 89B7
-89B8 89B8 EB8FB5 89B8
-89B9 89B9 EB8FB6 89B9
-89BA 89BA EB8FB7 89BA
-89BB 89BB EB8FB8 89BB
-89BC 89BC EB8FB9 89BC
-89BD 89BD EB8FBA 89BD
-89BE 89BE EB8FBB 89BE
-89BF 89BF EB8FBD 89BF
-89C0 89C0 EB8FBE 89C0
-89C1 89C1 EB8FBF 89C1
-89C2 89C2 EB9080 89C2
-89C3 89C3 EB9081 89C3
-89C4 89C4 EB9082 89C4
-89C5 89C5 EB9083 89C5
-89C6 89C6 EB9084 89C6
-89C7 89C7 EB9085 89C7
-89C8 89C8 EB9086 89C8
-89C9 89C9 EB9087 89C9
-89CA 89CA EB9088 89CA
-89CB 89CB EB9089 89CB
-89CC 89CC EB908A 89CC
-89CD 89CD EB908B 89CD
-89CE 89CE EB908C 89CE
-89CF 89CF EB908D 89CF
-89D0 89D0 EB908E 89D0
-89D1 89D1 EB908F 89D1
-89D2 89D2 EB9091 89D2
-89D3 89D3 EB9092 89D3
-89D4 89D4 EB9093 89D4
-89D5 89D5 EB9094 89D5
-89D6 89D6 EB9095 89D6
-89D7 89D7 EB9096 89D7
-89D8 89D8 EB9097 89D8
-89D9 89D9 EB9099 89D9
-89DA 89DA EB909A 89DA
-89DB 89DB EB909B 89DB
-89DC 89DC EB909D 89DC
-89DD 89DD EB909E 89DD
-89DE 89DE EB909F 89DE
-89DF 89DF EB90A1 89DF
-89E0 89E0 EB90A2 89E0
-89E1 89E1 EB90A3 89E1
-89E2 89E2 EB90A4 89E2
-89E3 89E3 EB90A5 89E3
-89E4 89E4 EB90A6 89E4
-89E5 89E5 EB90A7 89E5
-89E6 89E6 EB90AA 89E6
-89E7 89E7 EB90AC 89E7
-89E8 89E8 EB90AD 89E8
-89E9 89E9 EB90AE 89E9
-89EA 89EA EB90AF 89EA
-89EB 89EB EB90B0 89EB
-89EC 89EC EB90B1 89EC
-89ED 89ED EB90B2 89ED
-89EE 89EE EB90B3 89EE
-89EF 89EF EB90B5 89EF
-89F0 89F0 EB90B6 89F0
-89F1 89F1 EB90B7 89F1
-89F2 89F2 EB90B8 89F2
-89F3 89F3 EB90B9 89F3
-89F4 89F4 EB90BA 89F4
-89F5 89F5 EB90BB 89F5
-89F6 89F6 EB90BC 89F6
-89F7 89F7 EB90BD 89F7
-89F8 89F8 EB90BE 89F8
-89F9 89F9 EB90BF 89F9
-89FA 89FA EB9180 89FA
-89FB 89FB EB9181 89FB
-89FC 89FC EB9182 89FC
-89FD 89FD EB9183 89FD
-89FE 89FE EB9184 89FE
-8A41 8A41 EB9185 8A41
-8A42 8A42 EB9186 8A42
-8A43 8A43 EB9187 8A43
-8A44 8A44 EB9188 8A44
-8A45 8A45 EB9189 8A45
-8A46 8A46 EB918A 8A46
-8A47 8A47 EB918B 8A47
-8A48 8A48 EB918C 8A48
-8A49 8A49 EB918D 8A49
-8A4A 8A4A EB918E 8A4A
-8A4B 8A4B EB918F 8A4B
-8A4C 8A4C EB9192 8A4C
-8A4D 8A4D EB9193 8A4D
-8A4E 8A4E EB9195 8A4E
-8A4F 8A4F EB9196 8A4F
-8A50 8A50 EB9197 8A50
-8A51 8A51 EB9199 8A51
-8A52 8A52 EB919A 8A52
-8A53 8A53 EB919B 8A53
-8A54 8A54 EB919C 8A54
-8A55 8A55 EB919D 8A55
-8A56 8A56 EB919E 8A56
-8A57 8A57 EB919F 8A57
-8A58 8A58 EB91A2 8A58
-8A59 8A59 EB91A4 8A59
-8A5A 8A5A EB91A6 8A5A
-8A61 8A61 EB91A7 8A61
-8A62 8A62 EB91A8 8A62
-8A63 8A63 EB91A9 8A63
-8A64 8A64 EB91AA 8A64
-8A65 8A65 EB91AB 8A65
-8A66 8A66 EB91AD 8A66
-8A67 8A67 EB91AE 8A67
-8A68 8A68 EB91AF 8A68
-8A69 8A69 EB91B0 8A69
-8A6A 8A6A EB91B1 8A6A
-8A6B 8A6B EB91B2 8A6B
-8A6C 8A6C EB91B3 8A6C
-8A6D 8A6D EB91B4 8A6D
-8A6E 8A6E EB91B5 8A6E
-8A6F 8A6F EB91B6 8A6F
-8A70 8A70 EB91B7 8A70
-8A71 8A71 EB91B8 8A71
-8A72 8A72 EB91B9 8A72
-8A73 8A73 EB91BA 8A73
-8A74 8A74 EB91BB 8A74
-8A75 8A75 EB91BC 8A75
-8A76 8A76 EB91BD 8A76
-8A77 8A77 EB91BE 8A77
-8A78 8A78 EB91BF 8A78
-8A79 8A79 EB9281 8A79
-8A7A 8A7A EB9282 8A7A
-8A81 8A81 EB9283 8A81
-8A82 8A82 EB9284 8A82
-8A83 8A83 EB9285 8A83
-8A84 8A84 EB9286 8A84
-8A85 8A85 EB9287 8A85
-8A86 8A86 EB9289 8A86
-8A87 8A87 EB928A 8A87
-8A88 8A88 EB928B 8A88
-8A89 8A89 EB928C 8A89
-8A8A 8A8A EB928D 8A8A
-8A8B 8A8B EB928E 8A8B
-8A8C 8A8C EB928F 8A8C
-8A8D 8A8D EB9290 8A8D
-8A8E 8A8E EB9291 8A8E
-8A8F 8A8F EB9292 8A8F
-8A90 8A90 EB9293 8A90
-8A91 8A91 EB9294 8A91
-8A92 8A92 EB9295 8A92
-8A93 8A93 EB9296 8A93
-8A94 8A94 EB9297 8A94
-8A95 8A95 EB9298 8A95
-8A96 8A96 EB9299 8A96
-8A97 8A97 EB929A 8A97
-8A98 8A98 EB929B 8A98
-8A99 8A99 EB929C 8A99
-8A9A 8A9A EB929E 8A9A
-8A9B 8A9B EB929F 8A9B
-8A9C 8A9C EB92A0 8A9C
-8A9D 8A9D EB92A1 8A9D
-8A9E 8A9E EB92A2 8A9E
-8A9F 8A9F EB92A3 8A9F
-8AA0 8AA0 EB92A5 8AA0
-8AA1 8AA1 EB92A6 8AA1
-8AA2 8AA2 EB92A7 8AA2
-8AA3 8AA3 EB92A9 8AA3
-8AA4 8AA4 EB92AA 8AA4
-8AA5 8AA5 EB92AB 8AA5
-8AA6 8AA6 EB92AD 8AA6
-8AA7 8AA7 EB92AE 8AA7
-8AA8 8AA8 EB92AF 8AA8
-8AA9 8AA9 EB92B0 8AA9
-8AAA 8AAA EB92B1 8AAA
-8AAB 8AAB EB92B2 8AAB
-8AAC 8AAC EB92B3 8AAC
-8AAD 8AAD EB92B4 8AAD
-8AAE 8AAE EB92B6 8AAE
-8AAF 8AAF EB92B8 8AAF
-8AB0 8AB0 EB92BA 8AB0
-8AB1 8AB1 EB92BB 8AB1
-8AB2 8AB2 EB92BC 8AB2
-8AB3 8AB3 EB92BD 8AB3
-8AB4 8AB4 EB92BE 8AB4
-8AB5 8AB5 EB92BF 8AB5
-8AB6 8AB6 EB9381 8AB6
-8AB7 8AB7 EB9382 8AB7
-8AB8 8AB8 EB9383 8AB8
-8AB9 8AB9 EB9385 8AB9
-8ABA 8ABA EB9386 8ABA
-8ABB 8ABB EB9387 8ABB
-8ABC 8ABC EB9389 8ABC
-8ABD 8ABD EB938A 8ABD
-8ABE 8ABE EB938B 8ABE
-8ABF 8ABF EB938C 8ABF
-8AC0 8AC0 EB938D 8AC0
-8AC1 8AC1 EB938E 8AC1
-8AC2 8AC2 EB938F 8AC2
-8AC3 8AC3 EB9391 8AC3
-8AC4 8AC4 EB9392 8AC4
-8AC5 8AC5 EB9393 8AC5
-8AC6 8AC6 EB9394 8AC6
-8AC7 8AC7 EB9396 8AC7
-8AC8 8AC8 EB9397 8AC8
-8AC9 8AC9 EB9398 8AC9
-8ACA 8ACA EB9399 8ACA
-8ACB 8ACB EB939A 8ACB
-8ACC 8ACC EB939B 8ACC
-8ACD 8ACD EB939E 8ACD
-8ACE 8ACE EB939F 8ACE
-8ACF 8ACF EB93A1 8ACF
-8AD0 8AD0 EB93A2 8AD0
-8AD1 8AD1 EB93A5 8AD1
-8AD2 8AD2 EB93A7 8AD2
-8AD3 8AD3 EB93A8 8AD3
-8AD4 8AD4 EB93A9 8AD4
-8AD5 8AD5 EB93AA 8AD5
-8AD6 8AD6 EB93AB 8AD6
-8AD7 8AD7 EB93AE 8AD7
-8AD8 8AD8 EB93B0 8AD8
-8AD9 8AD9 EB93B2 8AD9
-8ADA 8ADA EB93B3 8ADA
-8ADB 8ADB EB93B4 8ADB
-8ADC 8ADC EB93B5 8ADC
-8ADD 8ADD EB93B6 8ADD
-8ADE 8ADE EB93B7 8ADE
-8ADF 8ADF EB93B9 8ADF
-8AE0 8AE0 EB93BA 8AE0
-8AE1 8AE1 EB93BB 8AE1
-8AE2 8AE2 EB93BC 8AE2
-8AE3 8AE3 EB93BD 8AE3
-8AE4 8AE4 EB93BE 8AE4
-8AE5 8AE5 EB93BF 8AE5
-8AE6 8AE6 EB9480 8AE6
-8AE7 8AE7 EB9481 8AE7
-8AE8 8AE8 EB9482 8AE8
-8AE9 8AE9 EB9483 8AE9
-8AEA 8AEA EB9484 8AEA
-8AEB 8AEB EB9485 8AEB
-8AEC 8AEC EB9486 8AEC
-8AED 8AED EB9487 8AED
-8AEE 8AEE EB9488 8AEE
-8AEF 8AEF EB9489 8AEF
-8AF0 8AF0 EB948A 8AF0
-8AF1 8AF1 EB948B 8AF1
-8AF2 8AF2 EB948C 8AF2
-8AF3 8AF3 EB948D 8AF3
-8AF4 8AF4 EB948E 8AF4
-8AF5 8AF5 EB948F 8AF5
-8AF6 8AF6 EB9490 8AF6
-8AF7 8AF7 EB9491 8AF7
-8AF8 8AF8 EB9492 8AF8
-8AF9 8AF9 EB9493 8AF9
-8AFA 8AFA EB9496 8AFA
-8AFB 8AFB EB9497 8AFB
-8AFC 8AFC EB9499 8AFC
-8AFD 8AFD EB949A 8AFD
-8AFE 8AFE EB949D 8AFE
-8B41 8B41 EB949E 8B41
-8B42 8B42 EB949F 8B42
-8B43 8B43 EB94A0 8B43
-8B44 8B44 EB94A1 8B44
-8B45 8B45 EB94A2 8B45
-8B46 8B46 EB94A3 8B46
-8B47 8B47 EB94A6 8B47
-8B48 8B48 EB94AB 8B48
-8B49 8B49 EB94AC 8B49
-8B4A 8B4A EB94AD 8B4A
-8B4B 8B4B EB94AE 8B4B
-8B4C 8B4C EB94AF 8B4C
-8B4D 8B4D EB94B2 8B4D
-8B4E 8B4E EB94B3 8B4E
-8B4F 8B4F EB94B5 8B4F
-8B50 8B50 EB94B6 8B50
-8B51 8B51 EB94B7 8B51
-8B52 8B52 EB94B9 8B52
-8B53 8B53 EB94BA 8B53
-8B54 8B54 EB94BB 8B54
-8B55 8B55 EB94BC 8B55
-8B56 8B56 EB94BD 8B56
-8B57 8B57 EB94BE 8B57
-8B58 8B58 EB94BF 8B58
-8B59 8B59 EB9582 8B59
-8B5A 8B5A EB9586 8B5A
-8B61 8B61 EB9587 8B61
-8B62 8B62 EB9588 8B62
-8B63 8B63 EB9589 8B63
-8B64 8B64 EB958A 8B64
-8B65 8B65 EB958E 8B65
-8B66 8B66 EB958F 8B66
-8B67 8B67 EB9591 8B67
-8B68 8B68 EB9592 8B68
-8B69 8B69 EB9593 8B69
-8B6A 8B6A EB9595 8B6A
-8B6B 8B6B EB9596 8B6B
-8B6C 8B6C EB9597 8B6C
-8B6D 8B6D EB9598 8B6D
-8B6E 8B6E EB9599 8B6E
-8B6F 8B6F EB959A 8B6F
-8B70 8B70 EB959B 8B70
-8B71 8B71 EB959E 8B71
-8B72 8B72 EB95A2 8B72
-8B73 8B73 EB95A3 8B73
-8B74 8B74 EB95A4 8B74
-8B75 8B75 EB95A5 8B75
-8B76 8B76 EB95A6 8B76
-8B77 8B77 EB95A7 8B77
-8B78 8B78 EB95A8 8B78
-8B79 8B79 EB95A9 8B79
-8B7A 8B7A EB95AA 8B7A
-8B81 8B81 EB95AB 8B81
-8B82 8B82 EB95AC 8B82
-8B83 8B83 EB95AD 8B83
-8B84 8B84 EB95AE 8B84
-8B85 8B85 EB95AF 8B85
-8B86 8B86 EB95B0 8B86
-8B87 8B87 EB95B1 8B87
-8B88 8B88 EB95B2 8B88
-8B89 8B89 EB95B3 8B89
-8B8A 8B8A EB95B4 8B8A
-8B8B 8B8B EB95B5 8B8B
-8B8C 8B8C EB95B6 8B8C
-8B8D 8B8D EB95B7 8B8D
-8B8E 8B8E EB95B8 8B8E
-8B8F 8B8F EB95B9 8B8F
-8B90 8B90 EB95BA 8B90
-8B91 8B91 EB95BB 8B91
-8B92 8B92 EB95BC 8B92
-8B93 8B93 EB95BD 8B93
-8B94 8B94 EB95BE 8B94
-8B95 8B95 EB95BF 8B95
-8B96 8B96 EB9680 8B96
-8B97 8B97 EB9681 8B97
-8B98 8B98 EB9682 8B98
-8B99 8B99 EB9683 8B99
-8B9A 8B9A EB9684 8B9A
-8B9B 8B9B EB9685 8B9B
-8B9C 8B9C EB9686 8B9C
-8B9D 8B9D EB9687 8B9D
-8B9E 8B9E EB9688 8B9E
-8B9F 8B9F EB9689 8B9F
-8BA0 8BA0 EB968A 8BA0
-8BA1 8BA1 EB968B 8BA1
-8BA2 8BA2 EB968C 8BA2
-8BA3 8BA3 EB968D 8BA3
-8BA4 8BA4 EB968E 8BA4
-8BA5 8BA5 EB968F 8BA5
-8BA6 8BA6 EB9690 8BA6
-8BA7 8BA7 EB9691 8BA7
-8BA8 8BA8 EB9692 8BA8
-8BA9 8BA9 EB9693 8BA9
-8BAA 8BAA EB9694 8BAA
-8BAB 8BAB EB9695 8BAB
-8BAC 8BAC EB9696 8BAC
-8BAD 8BAD EB9697 8BAD
-8BAE 8BAE EB9698 8BAE
-8BAF 8BAF EB9699 8BAF
-8BB0 8BB0 EB969A 8BB0
-8BB1 8BB1 EB969B 8BB1
-8BB2 8BB2 EB969C 8BB2
-8BB3 8BB3 EB969D 8BB3
-8BB4 8BB4 EB969E 8BB4
-8BB5 8BB5 EB969F 8BB5
-8BB6 8BB6 EB96A2 8BB6
-8BB7 8BB7 EB96A3 8BB7
-8BB8 8BB8 EB96A5 8BB8
-8BB9 8BB9 EB96A6 8BB9
-8BBA 8BBA EB96A7 8BBA
-8BBB 8BBB EB96A9 8BBB
-8BBC 8BBC EB96AC 8BBC
-8BBD 8BBD EB96AD 8BBD
-8BBE 8BBE EB96AE 8BBE
-8BBF 8BBF EB96AF 8BBF
-8BC0 8BC0 EB96B2 8BC0
-8BC1 8BC1 EB96B6 8BC1
-8BC2 8BC2 EB96B7 8BC2
-8BC3 8BC3 EB96B8 8BC3
-8BC4 8BC4 EB96B9 8BC4
-8BC5 8BC5 EB96BA 8BC5
-8BC6 8BC6 EB96BE 8BC6
-8BC7 8BC7 EB96BF 8BC7
-8BC8 8BC8 EB9781 8BC8
-8BC9 8BC9 EB9782 8BC9
-8BCA 8BCA EB9783 8BCA
-8BCB 8BCB EB9785 8BCB
-8BCC 8BCC EB9786 8BCC
-8BCD 8BCD EB9787 8BCD
-8BCE 8BCE EB9788 8BCE
-8BCF 8BCF EB9789 8BCF
-8BD0 8BD0 EB978A 8BD0
-8BD1 8BD1 EB978B 8BD1
-8BD2 8BD2 EB978E 8BD2
-8BD3 8BD3 EB9792 8BD3
-8BD4 8BD4 EB9793 8BD4
-8BD5 8BD5 EB9794 8BD5
-8BD6 8BD6 EB9795 8BD6
-8BD7 8BD7 EB9796 8BD7
-8BD8 8BD8 EB9797 8BD8
-8BD9 8BD9 EB9799 8BD9
-8BDA 8BDA EB979A 8BDA
-8BDB 8BDB EB979B 8BDB
-8BDC 8BDC EB979C 8BDC
-8BDD 8BDD EB979D 8BDD
-8BDE 8BDE EB979E 8BDE
-8BDF 8BDF EB979F 8BDF
-8BE0 8BE0 EB97A0 8BE0
-8BE1 8BE1 EB97A1 8BE1
-8BE2 8BE2 EB97A2 8BE2
-8BE3 8BE3 EB97A3 8BE3
-8BE4 8BE4 EB97A4 8BE4
-8BE5 8BE5 EB97A5 8BE5
-8BE6 8BE6 EB97A6 8BE6
-8BE7 8BE7 EB97A7 8BE7
-8BE8 8BE8 EB97A8 8BE8
-8BE9 8BE9 EB97A9 8BE9
-8BEA 8BEA EB97AA 8BEA
-8BEB 8BEB EB97AB 8BEB
-8BEC 8BEC EB97AD 8BEC
-8BED 8BED EB97AE 8BED
-8BEE 8BEE EB97AF 8BEE
-8BEF 8BEF EB97B0 8BEF
-8BF0 8BF0 EB97B1 8BF0
-8BF1 8BF1 EB97B2 8BF1
-8BF2 8BF2 EB97B3 8BF2
-8BF3 8BF3 EB97B4 8BF3
-8BF4 8BF4 EB97B5 8BF4
-8BF5 8BF5 EB97B6 8BF5
-8BF6 8BF6 EB97B7 8BF6
-8BF7 8BF7 EB97B8 8BF7
-8BF8 8BF8 EB97B9 8BF8
-8BF9 8BF9 EB97BA 8BF9
-8BFA 8BFA EB97BB 8BFA
-8BFB 8BFB EB97BC 8BFB
-8BFC 8BFC EB97BD 8BFC
-8BFD 8BFD EB97BE 8BFD
-8BFE 8BFE EB97BF 8BFE
-8C41 8C41 EB9880 8C41
-8C42 8C42 EB9881 8C42
-8C43 8C43 EB9882 8C43
-8C44 8C44 EB9883 8C44
-8C45 8C45 EB9884 8C45
-8C46 8C46 EB9885 8C46
-8C47 8C47 EB9886 8C47
-8C48 8C48 EB9887 8C48
-8C49 8C49 EB9888 8C49
-8C4A 8C4A EB9889 8C4A
-8C4B 8C4B EB988A 8C4B
-8C4C 8C4C EB988B 8C4C
-8C4D 8C4D EB988C 8C4D
-8C4E 8C4E EB988D 8C4E
-8C4F 8C4F EB988E 8C4F
-8C50 8C50 EB988F 8C50
-8C51 8C51 EB9892 8C51
-8C52 8C52 EB9893 8C52
-8C53 8C53 EB9895 8C53
-8C54 8C54 EB9896 8C54
-8C55 8C55 EB9897 8C55
-8C56 8C56 EB9899 8C56
-8C57 8C57 EB989A 8C57
-8C58 8C58 EB989B 8C58
-8C59 8C59 EB989C 8C59
-8C5A 8C5A EB989D 8C5A
-8C61 8C61 EB989E 8C61
-8C62 8C62 EB989F 8C62
-8C63 8C63 EB98A0 8C63
-8C64 8C64 EB98A1 8C64
-8C65 8C65 EB98A2 8C65
-8C66 8C66 EB98A3 8C66
-8C67 8C67 EB98A4 8C67
-8C68 8C68 EB98A6 8C68
-8C69 8C69 EB98A7 8C69
-8C6A 8C6A EB98A8 8C6A
-8C6B 8C6B EB98A9 8C6B
-8C6C 8C6C EB98AA 8C6C
-8C6D 8C6D EB98AB 8C6D
-8C6E 8C6E EB98AD 8C6E
-8C6F 8C6F EB98AE 8C6F
-8C70 8C70 EB98AF 8C70
-8C71 8C71 EB98B0 8C71
-8C72 8C72 EB98B1 8C72
-8C73 8C73 EB98B2 8C73
-8C74 8C74 EB98B3 8C74
-8C75 8C75 EB98B5 8C75
-8C76 8C76 EB98B6 8C76
-8C77 8C77 EB98B7 8C77
-8C78 8C78 EB98B8 8C78
-8C79 8C79 EB98B9 8C79
-8C7A 8C7A EB98BA 8C7A
-8C81 8C81 EB98BB 8C81
-8C82 8C82 EB98BC 8C82
-8C83 8C83 EB98BD 8C83
-8C84 8C84 EB98BE 8C84
-8C85 8C85 EB98BF 8C85
-8C86 8C86 EB9980 8C86
-8C87 8C87 EB9981 8C87
-8C88 8C88 EB9982 8C88
-8C89 8C89 EB9983 8C89
-8C8A 8C8A EB9984 8C8A
-8C8B 8C8B EB9985 8C8B
-8C8C 8C8C EB9986 8C8C
-8C8D 8C8D EB9987 8C8D
-8C8E 8C8E EB9989 8C8E
-8C8F 8C8F EB998A 8C8F
-8C90 8C90 EB998B 8C90
-8C91 8C91 EB998C 8C91
-8C92 8C92 EB998D 8C92
-8C93 8C93 EB998E 8C93
-8C94 8C94 EB998F 8C94
-8C95 8C95 EB9990 8C95
-8C96 8C96 EB9991 8C96
-8C97 8C97 EB9992 8C97
-8C98 8C98 EB9993 8C98
-8C99 8C99 EB9994 8C99
-8C9A 8C9A EB9995 8C9A
-8C9B 8C9B EB9996 8C9B
-8C9C 8C9C EB9997 8C9C
-8C9D 8C9D EB9998 8C9D
-8C9E 8C9E EB9999 8C9E
-8C9F 8C9F EB999A 8C9F
-8CA0 8CA0 EB999B 8CA0
-8CA1 8CA1 EB999C 8CA1
-8CA2 8CA2 EB999D 8CA2
-8CA3 8CA3 EB999E 8CA3
-8CA4 8CA4 EB999F 8CA4
-8CA5 8CA5 EB99A0 8CA5
-8CA6 8CA6 EB99A1 8CA6
-8CA7 8CA7 EB99A2 8CA7
-8CA8 8CA8 EB99A3 8CA8
-8CA9 8CA9 EB99A5 8CA9
-8CAA 8CAA EB99A6 8CAA
-8CAB 8CAB EB99A7 8CAB
-8CAC 8CAC EB99A9 8CAC
-8CAD 8CAD EB99AA 8CAD
-8CAE 8CAE EB99AB 8CAE
-8CAF 8CAF EB99AC 8CAF
-8CB0 8CB0 EB99AD 8CB0
-8CB1 8CB1 EB99AE 8CB1
-8CB2 8CB2 EB99AF 8CB2
-8CB3 8CB3 EB99B0 8CB3
-8CB4 8CB4 EB99B1 8CB4
-8CB5 8CB5 EB99B2 8CB5
-8CB6 8CB6 EB99B3 8CB6
-8CB7 8CB7 EB99B4 8CB7
-8CB8 8CB8 EB99B5 8CB8
-8CB9 8CB9 EB99B6 8CB9
-8CBA 8CBA EB99B7 8CBA
-8CBB 8CBB EB99B8 8CBB
-8CBC 8CBC EB99B9 8CBC
-8CBD 8CBD EB99BA 8CBD
-8CBE 8CBE EB99BB 8CBE
-8CBF 8CBF EB99BC 8CBF
-8CC0 8CC0 EB99BD 8CC0
-8CC1 8CC1 EB99BE 8CC1
-8CC2 8CC2 EB99BF 8CC2
-8CC3 8CC3 EB9A80 8CC3
-8CC4 8CC4 EB9A81 8CC4
-8CC5 8CC5 EB9A82 8CC5
-8CC6 8CC6 EB9A83 8CC6
-8CC7 8CC7 EB9A84 8CC7
-8CC8 8CC8 EB9A85 8CC8
-8CC9 8CC9 EB9A86 8CC9
-8CCA 8CCA EB9A87 8CCA
-8CCB 8CCB EB9A88 8CCB
-8CCC 8CCC EB9A89 8CCC
-8CCD 8CCD EB9A8A 8CCD
-8CCE 8CCE EB9A8B 8CCE
-8CCF 8CCF EB9A8C 8CCF
-8CD0 8CD0 EB9A8D 8CD0
-8CD1 8CD1 EB9A8E 8CD1
-8CD2 8CD2 EB9A8F 8CD2
-8CD3 8CD3 EB9A90 8CD3
-8CD4 8CD4 EB9A91 8CD4
-8CD5 8CD5 EB9A92 8CD5
-8CD6 8CD6 EB9A93 8CD6
-8CD7 8CD7 EB9A94 8CD7
-8CD8 8CD8 EB9A95 8CD8
-8CD9 8CD9 EB9A96 8CD9
-8CDA 8CDA EB9A97 8CDA
-8CDB 8CDB EB9A98 8CDB
-8CDC 8CDC EB9A99 8CDC
-8CDD 8CDD EB9A9A 8CDD
-8CDE 8CDE EB9A9B 8CDE
-8CDF 8CDF EB9A9E 8CDF
-8CE0 8CE0 EB9A9F 8CE0
-8CE1 8CE1 EB9AA1 8CE1
-8CE2 8CE2 EB9AA2 8CE2
-8CE3 8CE3 EB9AA3 8CE3
-8CE4 8CE4 EB9AA5 8CE4
-8CE5 8CE5 EB9AA6 8CE5
-8CE6 8CE6 EB9AA7 8CE6
-8CE7 8CE7 EB9AA8 8CE7
-8CE8 8CE8 EB9AA9 8CE8
-8CE9 8CE9 EB9AAA 8CE9
-8CEA 8CEA EB9AAD 8CEA
-8CEB 8CEB EB9AAE 8CEB
-8CEC 8CEC EB9AAF 8CEC
-8CED 8CED EB9AB0 8CED
-8CEE 8CEE EB9AB2 8CEE
-8CEF 8CEF EB9AB3 8CEF
-8CF0 8CF0 EB9AB4 8CF0
-8CF1 8CF1 EB9AB5 8CF1
-8CF2 8CF2 EB9AB6 8CF2
-8CF3 8CF3 EB9AB7 8CF3
-8CF4 8CF4 EB9AB8 8CF4
-8CF5 8CF5 EB9AB9 8CF5
-8CF6 8CF6 EB9ABA 8CF6
-8CF7 8CF7 EB9ABB 8CF7
-8CF8 8CF8 EB9ABC 8CF8
-8CF9 8CF9 EB9ABD 8CF9
-8CFA 8CFA EB9ABE 8CFA
-8CFB 8CFB EB9ABF 8CFB
-8CFC 8CFC EB9B80 8CFC
-8CFD 8CFD EB9B81 8CFD
-8CFE 8CFE EB9B82 8CFE
-8D41 8D41 EB9B83 8D41
-8D42 8D42 EB9B84 8D42
-8D43 8D43 EB9B85 8D43
-8D44 8D44 EB9B86 8D44
-8D45 8D45 EB9B87 8D45
-8D46 8D46 EB9B88 8D46
-8D47 8D47 EB9B89 8D47
-8D48 8D48 EB9B8A 8D48
-8D49 8D49 EB9B8B 8D49
-8D4A 8D4A EB9B8C 8D4A
-8D4B 8D4B EB9B8D 8D4B
-8D4C 8D4C EB9B8E 8D4C
-8D4D 8D4D EB9B8F 8D4D
-8D4E 8D4E EB9B90 8D4E
-8D4F 8D4F EB9B91 8D4F
-8D50 8D50 EB9B92 8D50
-8D51 8D51 EB9B93 8D51
-8D52 8D52 EB9B95 8D52
-8D53 8D53 EB9B96 8D53
-8D54 8D54 EB9B97 8D54
-8D55 8D55 EB9B98 8D55
-8D56 8D56 EB9B99 8D56
-8D57 8D57 EB9B9A 8D57
-8D58 8D58 EB9B9B 8D58
-8D59 8D59 EB9B9C 8D59
-8D5A 8D5A EB9B9D 8D5A
-8D61 8D61 EB9B9E 8D61
-8D62 8D62 EB9B9F 8D62
-8D63 8D63 EB9BA0 8D63
-8D64 8D64 EB9BA1 8D64
-8D65 8D65 EB9BA2 8D65
-8D66 8D66 EB9BA3 8D66
-8D67 8D67 EB9BA4 8D67
-8D68 8D68 EB9BA5 8D68
-8D69 8D69 EB9BA6 8D69
-8D6A 8D6A EB9BA7 8D6A
-8D6B 8D6B EB9BA8 8D6B
-8D6C 8D6C EB9BA9 8D6C
-8D6D 8D6D EB9BAA 8D6D
-8D6E 8D6E EB9BAB 8D6E
-8D6F 8D6F EB9BAC 8D6F
-8D70 8D70 EB9BAD 8D70
-8D71 8D71 EB9BAE 8D71
-8D72 8D72 EB9BAF 8D72
-8D73 8D73 EB9BB1 8D73
-8D74 8D74 EB9BB2 8D74
-8D75 8D75 EB9BB3 8D75
-8D76 8D76 EB9BB5 8D76
-8D77 8D77 EB9BB6 8D77
-8D78 8D78 EB9BB7 8D78
-8D79 8D79 EB9BB9 8D79
-8D7A 8D7A EB9BBA 8D7A
-8D81 8D81 EB9BBB 8D81
-8D82 8D82 EB9BBC 8D82
-8D83 8D83 EB9BBD 8D83
-8D84 8D84 EB9BBE 8D84
-8D85 8D85 EB9BBF 8D85
-8D86 8D86 EB9C82 8D86
-8D87 8D87 EB9C83 8D87
-8D88 8D88 EB9C84 8D88
-8D89 8D89 EB9C86 8D89
-8D8A 8D8A EB9C87 8D8A
-8D8B 8D8B EB9C88 8D8B
-8D8C 8D8C EB9C89 8D8C
-8D8D 8D8D EB9C8A 8D8D
-8D8E 8D8E EB9C8B 8D8E
-8D8F 8D8F EB9C8C 8D8F
-8D90 8D90 EB9C8D 8D90
-8D91 8D91 EB9C8E 8D91
-8D92 8D92 EB9C8F 8D92
-8D93 8D93 EB9C90 8D93
-8D94 8D94 EB9C91 8D94
-8D95 8D95 EB9C92 8D95
-8D96 8D96 EB9C93 8D96
-8D97 8D97 EB9C94 8D97
-8D98 8D98 EB9C95 8D98
-8D99 8D99 EB9C96 8D99
-8D9A 8D9A EB9C97 8D9A
-8D9B 8D9B EB9C98 8D9B
-8D9C 8D9C EB9C99 8D9C
-8D9D 8D9D EB9C9A 8D9D
-8D9E 8D9E EB9C9B 8D9E
-8D9F 8D9F EB9C9C 8D9F
-8DA0 8DA0 EB9C9D 8DA0
-8DA1 8DA1 EB9C9E 8DA1
-8DA2 8DA2 EB9C9F 8DA2
-8DA3 8DA3 EB9CA0 8DA3
-8DA4 8DA4 EB9CA1 8DA4
-8DA5 8DA5 EB9CA2 8DA5
-8DA6 8DA6 EB9CA3 8DA6
-8DA7 8DA7 EB9CA4 8DA7
-8DA8 8DA8 EB9CA5 8DA8
-8DA9 8DA9 EB9CA6 8DA9
-8DAA 8DAA EB9CA7 8DAA
-8DAB 8DAB EB9CAA 8DAB
-8DAC 8DAC EB9CAB 8DAC
-8DAD 8DAD EB9CAD 8DAD
-8DAE 8DAE EB9CAE 8DAE
-8DAF 8DAF EB9CB1 8DAF
-8DB0 8DB0 EB9CB2 8DB0
-8DB1 8DB1 EB9CB3 8DB1
-8DB2 8DB2 EB9CB4 8DB2
-8DB3 8DB3 EB9CB5 8DB3
-8DB4 8DB4 EB9CB6 8DB4
-8DB5 8DB5 EB9CB7 8DB5
-8DB6 8DB6 EB9CBA 8DB6
-8DB7 8DB7 EB9CBC 8DB7
-8DB8 8DB8 EB9CBD 8DB8
-8DB9 8DB9 EB9CBE 8DB9
-8DBA 8DBA EB9CBF 8DBA
-8DBB 8DBB EB9D80 8DBB
-8DBC 8DBC EB9D81 8DBC
-8DBD 8DBD EB9D82 8DBD
-8DBE 8DBE EB9D83 8DBE
-8DBF 8DBF EB9D85 8DBF
-8DC0 8DC0 EB9D86 8DC0
-8DC1 8DC1 EB9D87 8DC1
-8DC2 8DC2 EB9D89 8DC2
-8DC3 8DC3 EB9D8A 8DC3
-8DC4 8DC4 EB9D8B 8DC4
-8DC5 8DC5 EB9D8D 8DC5
-8DC6 8DC6 EB9D8E 8DC6
-8DC7 8DC7 EB9D8F 8DC7
-8DC8 8DC8 EB9D90 8DC8
-8DC9 8DC9 EB9D91 8DC9
-8DCA 8DCA EB9D92 8DCA
-8DCB 8DCB EB9D93 8DCB
-8DCC 8DCC EB9D96 8DCC
-8DCD 8DCD EB9D97 8DCD
-8DCE 8DCE EB9D98 8DCE
-8DCF 8DCF EB9D99 8DCF
-8DD0 8DD0 EB9D9A 8DD0
-8DD1 8DD1 EB9D9B 8DD1
-8DD2 8DD2 EB9D9C 8DD2
-8DD3 8DD3 EB9D9D 8DD3
-8DD4 8DD4 EB9D9E 8DD4
-8DD5 8DD5 EB9D9F 8DD5
-8DD6 8DD6 EB9DA1 8DD6
-8DD7 8DD7 EB9DA2 8DD7
-8DD8 8DD8 EB9DA3 8DD8
-8DD9 8DD9 EB9DA5 8DD9
-8DDA 8DDA EB9DA6 8DDA
-8DDB 8DDB EB9DA7 8DDB
-8DDC 8DDC EB9DA9 8DDC
-8DDD 8DDD EB9DAA 8DDD
-8DDE 8DDE EB9DAB 8DDE
-8DDF 8DDF EB9DAC 8DDF
-8DE0 8DE0 EB9DAD 8DE0
-8DE1 8DE1 EB9DAE 8DE1
-8DE2 8DE2 EB9DAF 8DE2
-8DE3 8DE3 EB9DB2 8DE3
-8DE4 8DE4 EB9DB4 8DE4
-8DE5 8DE5 EB9DB6 8DE5
-8DE6 8DE6 EB9DB7 8DE6
-8DE7 8DE7 EB9DB8 8DE7
-8DE8 8DE8 EB9DB9 8DE8
-8DE9 8DE9 EB9DBA 8DE9
-8DEA 8DEA EB9DBB 8DEA
-8DEB 8DEB EB9DBE 8DEB
-8DEC 8DEC EB9DBF 8DEC
-8DED 8DED EB9E81 8DED
-8DEE 8DEE EB9E82 8DEE
-8DEF 8DEF EB9E83 8DEF
-8DF0 8DF0 EB9E85 8DF0
-8DF1 8DF1 EB9E86 8DF1
-8DF2 8DF2 EB9E87 8DF2
-8DF3 8DF3 EB9E88 8DF3
-8DF4 8DF4 EB9E89 8DF4
-8DF5 8DF5 EB9E8A 8DF5
-8DF6 8DF6 EB9E8B 8DF6
-8DF7 8DF7 EB9E8E 8DF7
-8DF8 8DF8 EB9E93 8DF8
-8DF9 8DF9 EB9E94 8DF9
-8DFA 8DFA EB9E95 8DFA
-8DFB 8DFB EB9E9A 8DFB
-8DFC 8DFC EB9E9B 8DFC
-8DFD 8DFD EB9E9D 8DFD
-8DFE 8DFE EB9E9E 8DFE
-8E41 8E41 EB9E9F 8E41
-8E42 8E42 EB9EA1 8E42
-8E43 8E43 EB9EA2 8E43
-8E44 8E44 EB9EA3 8E44
-8E45 8E45 EB9EA4 8E45
-8E46 8E46 EB9EA5 8E46
-8E47 8E47 EB9EA6 8E47
-8E48 8E48 EB9EA7 8E48
-8E49 8E49 EB9EAA 8E49
-8E4A 8E4A EB9EAE 8E4A
-8E4B 8E4B EB9EAF 8E4B
-8E4C 8E4C EB9EB0 8E4C
-8E4D 8E4D EB9EB1 8E4D
-8E4E 8E4E EB9EB2 8E4E
-8E4F 8E4F EB9EB3 8E4F
-8E50 8E50 EB9EB6 8E50
-8E51 8E51 EB9EB7 8E51
-8E52 8E52 EB9EB9 8E52
-8E53 8E53 EB9EBA 8E53
-8E54 8E54 EB9EBB 8E54
-8E55 8E55 EB9EBC 8E55
-8E56 8E56 EB9EBD 8E56
-8E57 8E57 EB9EBE 8E57
-8E58 8E58 EB9EBF 8E58
-8E59 8E59 EB9F80 8E59
-8E5A 8E5A EB9F81 8E5A
-8E61 8E61 EB9F82 8E61
-8E62 8E62 EB9F83 8E62
-8E63 8E63 EB9F84 8E63
-8E64 8E64 EB9F85 8E64
-8E65 8E65 EB9F86 8E65
-8E66 8E66 EB9F88 8E66
-8E67 8E67 EB9F8A 8E67
-8E68 8E68 EB9F8B 8E68
-8E69 8E69 EB9F8C 8E69
-8E6A 8E6A EB9F8D 8E6A
-8E6B 8E6B EB9F8E 8E6B
-8E6C 8E6C EB9F8F 8E6C
-8E6D 8E6D EB9F90 8E6D
-8E6E 8E6E EB9F91 8E6E
-8E6F 8E6F EB9F92 8E6F
-8E70 8E70 EB9F93 8E70
-8E71 8E71 EB9F94 8E71
-8E72 8E72 EB9F95 8E72
-8E73 8E73 EB9F96 8E73
-8E74 8E74 EB9F97 8E74
-8E75 8E75 EB9F98 8E75
-8E76 8E76 EB9F99 8E76
-8E77 8E77 EB9F9A 8E77
-8E78 8E78 EB9F9B 8E78
-8E79 8E79 EB9F9C 8E79
-8E7A 8E7A EB9F9D 8E7A
-8E81 8E81 EB9F9E 8E81
-8E82 8E82 EB9F9F 8E82
-8E83 8E83 EB9FA0 8E83
-8E84 8E84 EB9FA1 8E84
-8E85 8E85 EB9FA2 8E85
-8E86 8E86 EB9FA3 8E86
-8E87 8E87 EB9FA4 8E87
-8E88 8E88 EB9FA5 8E88
-8E89 8E89 EB9FA6 8E89
-8E8A 8E8A EB9FA7 8E8A
-8E8B 8E8B EB9FA8 8E8B
-8E8C 8E8C EB9FA9 8E8C
-8E8D 8E8D EB9FAA 8E8D
-8E8E 8E8E EB9FAB 8E8E
-8E8F 8E8F EB9FAE 8E8F
-8E90 8E90 EB9FAF 8E90
-8E91 8E91 EB9FB1 8E91
-8E92 8E92 EB9FB2 8E92
-8E93 8E93 EB9FB3 8E93
-8E94 8E94 EB9FB5 8E94
-8E95 8E95 EB9FB6 8E95
-8E96 8E96 EB9FB7 8E96
-8E97 8E97 EB9FB8 8E97
-8E98 8E98 EB9FB9 8E98
-8E99 8E99 EB9FBA 8E99
-8E9A 8E9A EB9FBB 8E9A
-8E9B 8E9B EB9FBE 8E9B
-8E9C 8E9C EBA082 8E9C
-8E9D 8E9D EBA083 8E9D
-8E9E 8E9E EBA084 8E9E
-8E9F 8E9F EBA085 8E9F
-8EA0 8EA0 EBA086 8EA0
-8EA1 8EA1 EBA08A 8EA1
-8EA2 8EA2 EBA08B 8EA2
-8EA3 8EA3 EBA08D 8EA3
-8EA4 8EA4 EBA08E 8EA4
-8EA5 8EA5 EBA08F 8EA5
-8EA6 8EA6 EBA091 8EA6
-8EA7 8EA7 EBA092 8EA7
-8EA8 8EA8 EBA093 8EA8
-8EA9 8EA9 EBA094 8EA9
-8EAA 8EAA EBA095 8EAA
-8EAB 8EAB EBA096 8EAB
-8EAC 8EAC EBA097 8EAC
-8EAD 8EAD EBA09A 8EAD
-8EAE 8EAE EBA09C 8EAE
-8EAF 8EAF EBA09E 8EAF
-8EB0 8EB0 EBA09F 8EB0
-8EB1 8EB1 EBA0A0 8EB1
-8EB2 8EB2 EBA0A1 8EB2
-8EB3 8EB3 EBA0A2 8EB3
-8EB4 8EB4 EBA0A3 8EB4
-8EB5 8EB5 EBA0A6 8EB5
-8EB6 8EB6 EBA0A7 8EB6
-8EB7 8EB7 EBA0A9 8EB7
-8EB8 8EB8 EBA0AA 8EB8
-8EB9 8EB9 EBA0AB 8EB9
-8EBA 8EBA EBA0AD 8EBA
-8EBB 8EBB EBA0AE 8EBB
-8EBC 8EBC EBA0AF 8EBC
-8EBD 8EBD EBA0B0 8EBD
-8EBE 8EBE EBA0B1 8EBE
-8EBF 8EBF EBA0B2 8EBF
-8EC0 8EC0 EBA0B3 8EC0
-8EC1 8EC1 EBA0B6 8EC1
-8EC2 8EC2 EBA0BA 8EC2
-8EC3 8EC3 EBA0BB 8EC3
-8EC4 8EC4 EBA0BC 8EC4
-8EC5 8EC5 EBA0BD 8EC5
-8EC6 8EC6 EBA0BE 8EC6
-8EC7 8EC7 EBA0BF 8EC7
-8EC8 8EC8 EBA181 8EC8
-8EC9 8EC9 EBA182 8EC9
-8ECA 8ECA EBA183 8ECA
-8ECB 8ECB EBA185 8ECB
-8ECC 8ECC EBA186 8ECC
-8ECD 8ECD EBA187 8ECD
-8ECE 8ECE EBA188 8ECE
-8ECF 8ECF EBA189 8ECF
-8ED0 8ED0 EBA18A 8ED0
-8ED1 8ED1 EBA18B 8ED1
-8ED2 8ED2 EBA18C 8ED2
-8ED3 8ED3 EBA18D 8ED3
-8ED4 8ED4 EBA18E 8ED4
-8ED5 8ED5 EBA18F 8ED5
-8ED6 8ED6 EBA190 8ED6
-8ED7 8ED7 EBA192 8ED7
-8ED8 8ED8 EBA194 8ED8
-8ED9 8ED9 EBA195 8ED9
-8EDA 8EDA EBA196 8EDA
-8EDB 8EDB EBA197 8EDB
-8EDC 8EDC EBA198 8EDC
-8EDD 8EDD EBA199 8EDD
-8EDE 8EDE EBA19A 8EDE
-8EDF 8EDF EBA19B 8EDF
-8EE0 8EE0 EBA19E 8EE0
-8EE1 8EE1 EBA19F 8EE1
-8EE2 8EE2 EBA1A1 8EE2
-8EE3 8EE3 EBA1A2 8EE3
-8EE4 8EE4 EBA1A3 8EE4
-8EE5 8EE5 EBA1A5 8EE5
-8EE6 8EE6 EBA1A6 8EE6
-8EE7 8EE7 EBA1A7 8EE7
-8EE8 8EE8 EBA1A8 8EE8
-8EE9 8EE9 EBA1A9 8EE9
-8EEA 8EEA EBA1AA 8EEA
-8EEB 8EEB EBA1AB 8EEB
-8EEC 8EEC EBA1AE 8EEC
-8EED 8EED EBA1B0 8EED
-8EEE 8EEE EBA1B2 8EEE
-8EEF 8EEF EBA1B3 8EEF
-8EF0 8EF0 EBA1B4 8EF0
-8EF1 8EF1 EBA1B5 8EF1
-8EF2 8EF2 EBA1B6 8EF2
-8EF3 8EF3 EBA1B7 8EF3
-8EF4 8EF4 EBA1B9 8EF4
-8EF5 8EF5 EBA1BA 8EF5
-8EF6 8EF6 EBA1BB 8EF6
-8EF7 8EF7 EBA1BD 8EF7
-8EF8 8EF8 EBA1BE 8EF8
-8EF9 8EF9 EBA1BF 8EF9
-8EFA 8EFA EBA280 8EFA
-8EFB 8EFB EBA281 8EFB
-8EFC 8EFC EBA282 8EFC
-8EFD 8EFD EBA283 8EFD
-8EFE 8EFE EBA284 8EFE
-8F41 8F41 EBA285 8F41
-8F42 8F42 EBA286 8F42
-8F43 8F43 EBA287 8F43
-8F44 8F44 EBA288 8F44
-8F45 8F45 EBA289 8F45
-8F46 8F46 EBA28A 8F46
-8F47 8F47 EBA28B 8F47
-8F48 8F48 EBA28C 8F48
-8F49 8F49 EBA28E 8F49
-8F4A 8F4A EBA28F 8F4A
-8F4B 8F4B EBA290 8F4B
-8F4C 8F4C EBA291 8F4C
-8F4D 8F4D EBA292 8F4D
-8F4E 8F4E EBA293 8F4E
-8F4F 8F4F EBA294 8F4F
-8F50 8F50 EBA295 8F50
-8F51 8F51 EBA296 8F51
-8F52 8F52 EBA297 8F52
-8F53 8F53 EBA298 8F53
-8F54 8F54 EBA299 8F54
-8F55 8F55 EBA29A 8F55
-8F56 8F56 EBA29B 8F56
-8F57 8F57 EBA29C 8F57
-8F58 8F58 EBA29D 8F58
-8F59 8F59 EBA29E 8F59
-8F5A 8F5A EBA29F 8F5A
-8F61 8F61 EBA2A0 8F61
-8F62 8F62 EBA2A1 8F62
-8F63 8F63 EBA2A2 8F63
-8F64 8F64 EBA2A3 8F64
-8F65 8F65 EBA2A4 8F65
-8F66 8F66 EBA2A5 8F66
-8F67 8F67 EBA2A6 8F67
-8F68 8F68 EBA2A7 8F68
-8F69 8F69 EBA2A9 8F69
-8F6A 8F6A EBA2AA 8F6A
-8F6B 8F6B EBA2AB 8F6B
-8F6C 8F6C EBA2AC 8F6C
-8F6D 8F6D EBA2AD 8F6D
-8F6E 8F6E EBA2AE 8F6E
-8F6F 8F6F EBA2AF 8F6F
-8F70 8F70 EBA2B1 8F70
-8F71 8F71 EBA2B2 8F71
-8F72 8F72 EBA2B3 8F72
-8F73 8F73 EBA2B5 8F73
-8F74 8F74 EBA2B6 8F74
-8F75 8F75 EBA2B7 8F75
-8F76 8F76 EBA2B9 8F76
-8F77 8F77 EBA2BA 8F77
-8F78 8F78 EBA2BB 8F78
-8F79 8F79 EBA2BC 8F79
-8F7A 8F7A EBA2BD 8F7A
-8F81 8F81 EBA2BE 8F81
-8F82 8F82 EBA2BF 8F82
-8F83 8F83 EBA382 8F83
-8F84 8F84 EBA384 8F84
-8F85 8F85 EBA386 8F85
-8F86 8F86 EBA387 8F86
-8F87 8F87 EBA388 8F87
-8F88 8F88 EBA389 8F88
-8F89 8F89 EBA38A 8F89
-8F8A 8F8A EBA38B 8F8A
-8F8B 8F8B EBA38D 8F8B
-8F8C 8F8C EBA38E 8F8C
-8F8D 8F8D EBA38F 8F8D
-8F8E 8F8E EBA391 8F8E
-8F8F 8F8F EBA392 8F8F
-8F90 8F90 EBA393 8F90
-8F91 8F91 EBA395 8F91
-8F92 8F92 EBA396 8F92
-8F93 8F93 EBA397 8F93
-8F94 8F94 EBA398 8F94
-8F95 8F95 EBA399 8F95
-8F96 8F96 EBA39A 8F96
-8F97 8F97 EBA39B 8F97
-8F98 8F98 EBA39C 8F98
-8F99 8F99 EBA39E 8F99
-8F9A 8F9A EBA3A0 8F9A
-8F9B 8F9B EBA3A2 8F9B
-8F9C 8F9C EBA3A3 8F9C
-8F9D 8F9D EBA3A4 8F9D
-8F9E 8F9E EBA3A5 8F9E
-8F9F 8F9F EBA3A6 8F9F
-8FA0 8FA0 EBA3A7 8FA0
-8FA1 8FA1 EBA3AA 8FA1
-8FA2 8FA2 EBA3AB 8FA2
-8FA3 8FA3 EBA3AD 8FA3
-8FA4 8FA4 EBA3AE 8FA4
-8FA5 8FA5 EBA3AF 8FA5
-8FA6 8FA6 EBA3B1 8FA6
-8FA7 8FA7 EBA3B2 8FA7
-8FA8 8FA8 EBA3B3 8FA8
-8FA9 8FA9 EBA3B4 8FA9
-8FAA 8FAA EBA3B5 8FAA
-8FAB 8FAB EBA3B6 8FAB
-8FAC 8FAC EBA3B7 8FAC
-8FAD 8FAD EBA3BA 8FAD
-8FAE 8FAE EBA3BC 8FAE
-8FAF 8FAF EBA3BE 8FAF
-8FB0 8FB0 EBA3BF 8FB0
-8FB1 8FB1 EBA480 8FB1
-8FB2 8FB2 EBA481 8FB2
-8FB3 8FB3 EBA482 8FB3
-8FB4 8FB4 EBA483 8FB4
-8FB5 8FB5 EBA485 8FB5
-8FB6 8FB6 EBA486 8FB6
-8FB7 8FB7 EBA487 8FB7
-8FB8 8FB8 EBA488 8FB8
-8FB9 8FB9 EBA489 8FB9
-8FBA 8FBA EBA48A 8FBA
-8FBB 8FBB EBA48B 8FBB
-8FBC 8FBC EBA48C 8FBC
-8FBD 8FBD EBA48D 8FBD
-8FBE 8FBE EBA48E 8FBE
-8FBF 8FBF EBA48F 8FBF
-8FC0 8FC0 EBA490 8FC0
-8FC1 8FC1 EBA491 8FC1
-8FC2 8FC2 EBA492 8FC2
-8FC3 8FC3 EBA493 8FC3
-8FC4 8FC4 EBA494 8FC4
-8FC5 8FC5 EBA495 8FC5
-8FC6 8FC6 EBA496 8FC6
-8FC7 8FC7 EBA497 8FC7
-8FC8 8FC8 EBA499 8FC8
-8FC9 8FC9 EBA49A 8FC9
-8FCA 8FCA EBA49B 8FCA
-8FCB 8FCB EBA49C 8FCB
-8FCC 8FCC EBA49D 8FCC
-8FCD 8FCD EBA49E 8FCD
-8FCE 8FCE EBA49F 8FCE
-8FCF 8FCF EBA4A1 8FCF
-8FD0 8FD0 EBA4A2 8FD0
-8FD1 8FD1 EBA4A3 8FD1
-8FD2 8FD2 EBA4A4 8FD2
-8FD3 8FD3 EBA4A5 8FD3
-8FD4 8FD4 EBA4A6 8FD4
-8FD5 8FD5 EBA4A7 8FD5
-8FD6 8FD6 EBA4A8 8FD6
-8FD7 8FD7 EBA4A9 8FD7
-8FD8 8FD8 EBA4AA 8FD8
-8FD9 8FD9 EBA4AB 8FD9
-8FDA 8FDA EBA4AC 8FDA
-8FDB 8FDB EBA4AD 8FDB
-8FDC 8FDC EBA4AE 8FDC
-8FDD 8FDD EBA4AF 8FDD
-8FDE 8FDE EBA4B0 8FDE
-8FDF 8FDF EBA4B1 8FDF
-8FE0 8FE0 EBA4B2 8FE0
-8FE1 8FE1 EBA4B3 8FE1
-8FE2 8FE2 EBA4B4 8FE2
-8FE3 8FE3 EBA4B5 8FE3
-8FE4 8FE4 EBA4B6 8FE4
-8FE5 8FE5 EBA4B7 8FE5
-8FE6 8FE6 EBA4B8 8FE6
-8FE7 8FE7 EBA4B9 8FE7
-8FE8 8FE8 EBA4BA 8FE8
-8FE9 8FE9 EBA4BB 8FE9
-8FEA 8FEA EBA4BE 8FEA
-8FEB 8FEB EBA4BF 8FEB
-8FEC 8FEC EBA581 8FEC
-8FED 8FED EBA582 8FED
-8FEE 8FEE EBA583 8FEE
-8FEF 8FEF EBA585 8FEF
-8FF0 8FF0 EBA586 8FF0
-8FF1 8FF1 EBA587 8FF1
-8FF2 8FF2 EBA588 8FF2
-8FF3 8FF3 EBA589 8FF3
-8FF4 8FF4 EBA58A 8FF4
-8FF5 8FF5 EBA58B 8FF5
-8FF6 8FF6 EBA58D 8FF6
-8FF7 8FF7 EBA58E 8FF7
-8FF8 8FF8 EBA590 8FF8
-8FF9 8FF9 EBA592 8FF9
-8FFA 8FFA EBA593 8FFA
-8FFB 8FFB EBA594 8FFB
-8FFC 8FFC EBA595 8FFC
-8FFD 8FFD EBA596 8FFD
-8FFE 8FFE EBA597 8FFE
-9041 9041 EBA59A 9041
-9042 9042 EBA59B 9042
-9043 9043 EBA59D 9043
-9044 9044 EBA59E 9044
-9045 9045 EBA59F 9045
-9046 9046 EBA5A1 9046
-9047 9047 EBA5A2 9047
-9048 9048 EBA5A3 9048
-9049 9049 EBA5A4 9049
-904A 904A EBA5A5 904A
-904B 904B EBA5A6 904B
-904C 904C EBA5A7 904C
-904D 904D EBA5AA 904D
-904E 904E EBA5AC 904E
-904F 904F EBA5AE 904F
-9050 9050 EBA5AF 9050
-9051 9051 EBA5B0 9051
-9052 9052 EBA5B1 9052
-9053 9053 EBA5B2 9053
-9054 9054 EBA5B3 9054
-9055 9055 EBA5B6 9055
-9056 9056 EBA5B7 9056
-9057 9057 EBA5B9 9057
-9058 9058 EBA5BA 9058
-9059 9059 EBA5BB 9059
-905A 905A EBA5BD 905A
-9061 9061 EBA5BE 9061
-9062 9062 EBA5BF 9062
-9063 9063 EBA680 9063
-9064 9064 EBA681 9064
-9065 9065 EBA682 9065
-9066 9066 EBA683 9066
-9067 9067 EBA686 9067
-9068 9068 EBA688 9068
-9069 9069 EBA68B 9069
-906A 906A EBA68C 906A
-906B 906B EBA68F 906B
-906C 906C EBA690 906C
-906D 906D EBA691 906D
-906E 906E EBA692 906E
-906F 906F EBA693 906F
-9070 9070 EBA694 9070
-9071 9071 EBA695 9071
-9072 9072 EBA696 9072
-9073 9073 EBA697 9073
-9074 9074 EBA698 9074
-9075 9075 EBA699 9075
-9076 9076 EBA69A 9076
-9077 9077 EBA69B 9077
-9078 9078 EBA69C 9078
-9079 9079 EBA69D 9079
-907A 907A EBA69E 907A
-9081 9081 EBA69F 9081
-9082 9082 EBA6A0 9082
-9083 9083 EBA6A1 9083
-9084 9084 EBA6A2 9084
-9085 9085 EBA6A3 9085
-9086 9086 EBA6A4 9086
-9087 9087 EBA6A5 9087
-9088 9088 EBA6A6 9088
-9089 9089 EBA6A7 9089
-908A 908A EBA6A8 908A
-908B 908B EBA6A9 908B
-908C 908C EBA6AA 908C
-908D 908D EBA6AB 908D
-908E 908E EBA6AE 908E
-908F 908F EBA6AF 908F
-9090 9090 EBA6B1 9090
-9091 9091 EBA6B2 9091
-9092 9092 EBA6B3 9092
-9093 9093 EBA6B5 9093
-9094 9094 EBA6B6 9094
-9095 9095 EBA6B7 9095
-9096 9096 EBA6B8 9096
-9097 9097 EBA6B9 9097
-9098 9098 EBA6BA 9098
-9099 9099 EBA6BB 9099
-909A 909A EBA6BE 909A
-909B 909B EBA780 909B
-909C 909C EBA782 909C
-909D 909D EBA783 909D
-909E 909E EBA784 909E
-909F 909F EBA785 909F
-90A0 90A0 EBA786 90A0
-90A1 90A1 EBA787 90A1
-90A2 90A2 EBA78A 90A2
-90A3 90A3 EBA78B 90A3
-90A4 90A4 EBA78D 90A4
-90A5 90A5 EBA793 90A5
-90A6 90A6 EBA794 90A6
-90A7 90A7 EBA795 90A7
-90A8 90A8 EBA796 90A8
-90A9 90A9 EBA797 90A9
-90AA 90AA EBA79A 90AA
-90AB 90AB EBA79C 90AB
-90AC 90AC EBA79F 90AC
-90AD 90AD EBA7A0 90AD
-90AE 90AE EBA7A2 90AE
-90AF 90AF EBA7A6 90AF
-90B0 90B0 EBA7A7 90B0
-90B1 90B1 EBA7A9 90B1
-90B2 90B2 EBA7AA 90B2
-90B3 90B3 EBA7AB 90B3
-90B4 90B4 EBA7AD 90B4
-90B5 90B5 EBA7AE 90B5
-90B6 90B6 EBA7AF 90B6
-90B7 90B7 EBA7B0 90B7
-90B8 90B8 EBA7B1 90B8
-90B9 90B9 EBA7B2 90B9
-90BA 90BA EBA7B3 90BA
-90BB 90BB EBA7B6 90BB
-90BC 90BC EBA7BB 90BC
-90BD 90BD EBA7BC 90BD
-90BE 90BE EBA7BD 90BE
-90BF 90BF EBA7BE 90BF
-90C0 90C0 EBA7BF 90C0
-90C1 90C1 EBA882 90C1
-90C2 90C2 EBA883 90C2
-90C3 90C3 EBA884 90C3
-90C4 90C4 EBA885 90C4
-90C5 90C5 EBA886 90C5
-90C6 90C6 EBA887 90C6
-90C7 90C7 EBA889 90C7
-90C8 90C8 EBA88A 90C8
-90C9 90C9 EBA88B 90C9
-90CA 90CA EBA88C 90CA
-90CB 90CB EBA88D 90CB
-90CC 90CC EBA88E 90CC
-90CD 90CD EBA88F 90CD
-90CE 90CE EBA890 90CE
-90CF 90CF EBA891 90CF
-90D0 90D0 EBA892 90D0
-90D1 90D1 EBA893 90D1
-90D2 90D2 EBA894 90D2
-90D3 90D3 EBA896 90D3
-90D4 90D4 EBA897 90D4
-90D5 90D5 EBA898 90D5
-90D6 90D6 EBA899 90D6
-90D7 90D7 EBA89A 90D7
-90D8 90D8 EBA89B 90D8
-90D9 90D9 EBA89C 90D9
-90DA 90DA EBA89D 90DA
-90DB 90DB EBA89E 90DB
-90DC 90DC EBA89F 90DC
-90DD 90DD EBA8A0 90DD
-90DE 90DE EBA8A1 90DE
-90DF 90DF EBA8A2 90DF
-90E0 90E0 EBA8A3 90E0
-90E1 90E1 EBA8A4 90E1
-90E2 90E2 EBA8A5 90E2
-90E3 90E3 EBA8A6 90E3
-90E4 90E4 EBA8A7 90E4
-90E5 90E5 EBA8A8 90E5
-90E6 90E6 EBA8A9 90E6
-90E7 90E7 EBA8AA 90E7
-90E8 90E8 EBA8AB 90E8
-90E9 90E9 EBA8AC 90E9
-90EA 90EA EBA8AD 90EA
-90EB 90EB EBA8AE 90EB
-90EC 90EC EBA8AF 90EC
-90ED 90ED EBA8B0 90ED
-90EE 90EE EBA8B1 90EE
-90EF 90EF EBA8B2 90EF
-90F0 90F0 EBA8B3 90F0
-90F1 90F1 EBA8B4 90F1
-90F2 90F2 EBA8B5 90F2
-90F3 90F3 EBA8B6 90F3
-90F4 90F4 EBA8B7 90F4
-90F5 90F5 EBA8BA 90F5
-90F6 90F6 EBA8BB 90F6
-90F7 90F7 EBA8BD 90F7
-90F8 90F8 EBA8BE 90F8
-90F9 90F9 EBA8BF 90F9
-90FA 90FA EBA981 90FA
-90FB 90FB EBA983 90FB
-90FC 90FC EBA984 90FC
-90FD 90FD EBA985 90FD
-90FE 90FE EBA986 90FE
-9141 9141 EBA987 9141
-9142 9142 EBA98A 9142
-9143 9143 EBA98C 9143
-9144 9144 EBA98F 9144
-9145 9145 EBA990 9145
-9146 9146 EBA991 9146
-9147 9147 EBA992 9147
-9148 9148 EBA996 9148
-9149 9149 EBA997 9149
-914A 914A EBA999 914A
-914B 914B EBA99A 914B
-914C 914C EBA99B 914C
-914D 914D EBA99D 914D
-914E 914E EBA99E 914E
-914F 914F EBA99F 914F
-9150 9150 EBA9A0 9150
-9151 9151 EBA9A1 9151
-9152 9152 EBA9A2 9152
-9153 9153 EBA9A3 9153
-9154 9154 EBA9A6 9154
-9155 9155 EBA9AA 9155
-9156 9156 EBA9AB 9156
-9157 9157 EBA9AC 9157
-9158 9158 EBA9AD 9158
-9159 9159 EBA9AE 9159
-915A 915A EBA9AF 915A
-9161 9161 EBA9B2 9161
-9162 9162 EBA9B3 9162
-9163 9163 EBA9B5 9163
-9164 9164 EBA9B6 9164
-9165 9165 EBA9B7 9165
-9166 9166 EBA9B9 9166
-9167 9167 EBA9BA 9167
-9168 9168 EBA9BB 9168
-9169 9169 EBA9BC 9169
-916A 916A EBA9BD 916A
-916B 916B EBA9BE 916B
-916C 916C EBA9BF 916C
-916D 916D EBAA80 916D
-916E 916E EBAA81 916E
-916F 916F EBAA82 916F
-9170 9170 EBAA86 9170
-9171 9171 EBAA88 9171
-9172 9172 EBAA89 9172
-9173 9173 EBAA8A 9173
-9174 9174 EBAA8B 9174
-9175 9175 EBAA8D 9175
-9176 9176 EBAA8E 9176
-9177 9177 EBAA8F 9177
-9178 9178 EBAA90 9178
-9179 9179 EBAA91 9179
-917A 917A EBAA92 917A
-9181 9181 EBAA93 9181
-9182 9182 EBAA94 9182
-9183 9183 EBAA95 9183
-9184 9184 EBAA96 9184
-9185 9185 EBAA97 9185
-9186 9186 EBAA98 9186
-9187 9187 EBAA99 9187
-9188 9188 EBAA9A 9188
-9189 9189 EBAA9B 9189
-918A 918A EBAA9C 918A
-918B 918B EBAA9D 918B
-918C 918C EBAA9E 918C
-918D 918D EBAA9F 918D
-918E 918E EBAAA0 918E
-918F 918F EBAAA1 918F
-9190 9190 EBAAA2 9190
-9191 9191 EBAAA3 9191
-9192 9192 EBAAA4 9192
-9193 9193 EBAAA5 9193
-9194 9194 EBAAA6 9194
-9195 9195 EBAAA7 9195
-9196 9196 EBAAAA 9196
-9197 9197 EBAAAD 9197
-9198 9198 EBAAAE 9198
-9199 9199 EBAAAF 9199
-919A 919A EBAAB1 919A
-919B 919B EBAAB3 919B
-919C 919C EBAAB4 919C
-919D 919D EBAAB5 919D
-919E 919E EBAAB6 919E
-919F 919F EBAAB7 919F
-91A0 91A0 EBAABA 91A0
-91A1 91A1 EBAABC 91A1
-91A2 91A2 EBAABE 91A2
-91A3 91A3 EBAABF 91A3
-91A4 91A4 EBAB80 91A4
-91A5 91A5 EBAB81 91A5
-91A6 91A6 EBAB82 91A6
-91A7 91A7 EBAB83 91A7
-91A8 91A8 EBAB85 91A8
-91A9 91A9 EBAB86 91A9
-91AA 91AA EBAB87 91AA
-91AB 91AB EBAB89 91AB
-91AC 91AC EBAB8A 91AC
-91AD 91AD EBAB8B 91AD
-91AE 91AE EBAB8C 91AE
-91AF 91AF EBAB8D 91AF
-91B0 91B0 EBAB8E 91B0
-91B1 91B1 EBAB8F 91B1
-91B2 91B2 EBAB90 91B2
-91B3 91B3 EBAB91 91B3
-91B4 91B4 EBAB92 91B4
-91B5 91B5 EBAB93 91B5
-91B6 91B6 EBAB94 91B6
-91B7 91B7 EBAB95 91B7
-91B8 91B8 EBAB96 91B8
-91B9 91B9 EBAB97 91B9
-91BA 91BA EBAB9A 91BA
-91BB 91BB EBAB9B 91BB
-91BC 91BC EBAB9C 91BC
-91BD 91BD EBAB9D 91BD
-91BE 91BE EBAB9E 91BE
-91BF 91BF EBAB9F 91BF
-91C0 91C0 EBABA0 91C0
-91C1 91C1 EBABA1 91C1
-91C2 91C2 EBABA2 91C2
-91C3 91C3 EBABA3 91C3
-91C4 91C4 EBABA4 91C4
-91C5 91C5 EBABA5 91C5
-91C6 91C6 EBABA6 91C6
-91C7 91C7 EBABA7 91C7
-91C8 91C8 EBABA8 91C8
-91C9 91C9 EBABA9 91C9
-91CA 91CA EBABAA 91CA
-91CB 91CB EBABAB 91CB
-91CC 91CC EBABAC 91CC
-91CD 91CD EBABAD 91CD
-91CE 91CE EBABAE 91CE
-91CF 91CF EBABAF 91CF
-91D0 91D0 EBABB0 91D0
-91D1 91D1 EBABB1 91D1
-91D2 91D2 EBABB2 91D2
-91D3 91D3 EBABB3 91D3
-91D4 91D4 EBABB4 91D4
-91D5 91D5 EBABB5 91D5
-91D6 91D6 EBABB6 91D6
-91D7 91D7 EBABB7 91D7
-91D8 91D8 EBABB8 91D8
-91D9 91D9 EBABB9 91D9
-91DA 91DA EBABBA 91DA
-91DB 91DB EBABBB 91DB
-91DC 91DC EBABBD 91DC
-91DD 91DD EBABBE 91DD
-91DE 91DE EBABBF 91DE
-91DF 91DF EBAC81 91DF
-91E0 91E0 EBAC82 91E0
-91E1 91E1 EBAC83 91E1
-91E2 91E2 EBAC85 91E2
-91E3 91E3 EBAC86 91E3
-91E4 91E4 EBAC87 91E4
-91E5 91E5 EBAC88 91E5
-91E6 91E6 EBAC89 91E6
-91E7 91E7 EBAC8A 91E7
-91E8 91E8 EBAC8B 91E8
-91E9 91E9 EBAC8C 91E9
-91EA 91EA EBAC8E 91EA
-91EB 91EB EBAC90 91EB
-91EC 91EC EBAC92 91EC
-91ED 91ED EBAC93 91ED
-91EE 91EE EBAC94 91EE
-91EF 91EF EBAC95 91EF
-91F0 91F0 EBAC96 91F0
-91F1 91F1 EBAC97 91F1
-91F2 91F2 EBAC99 91F2
-91F3 91F3 EBAC9A 91F3
-91F4 91F4 EBAC9B 91F4
-91F5 91F5 EBAC9D 91F5
-91F6 91F6 EBAC9E 91F6
-91F7 91F7 EBAC9F 91F7
-91F8 91F8 EBACA1 91F8
-91F9 91F9 EBACA2 91F9
-91FA 91FA EBACA3 91FA
-91FB 91FB EBACA4 91FB
-91FC 91FC EBACA5 91FC
-91FD 91FD EBACA6 91FD
-91FE 91FE EBACA7 91FE
-9241 9241 EBACA8 9241
-9242 9242 EBACAA 9242
-9243 9243 EBACAC 9243
-9244 9244 EBACAD 9244
-9245 9245 EBACAE 9245
-9246 9246 EBACAF 9246
-9247 9247 EBACB0 9247
-9248 9248 EBACB1 9248
-9249 9249 EBACB2 9249
-924A 924A EBACB3 924A
-924B 924B EBACB7 924B
-924C 924C EBACB9 924C
-924D 924D EBACBA 924D
-924E 924E EBACBF 924E
-924F 924F EBAD80 924F
-9250 9250 EBAD81 9250
-9251 9251 EBAD82 9251
-9252 9252 EBAD83 9252
-9253 9253 EBAD86 9253
-9254 9254 EBAD88 9254
-9255 9255 EBAD8A 9255
-9256 9256 EBAD8B 9256
-9257 9257 EBAD8C 9257
-9258 9258 EBAD8E 9258
-9259 9259 EBAD91 9259
-925A 925A EBAD92 925A
-9261 9261 EBAD93 9261
-9262 9262 EBAD95 9262
-9263 9263 EBAD96 9263
-9264 9264 EBAD97 9264
-9265 9265 EBAD99 9265
-9266 9266 EBAD9A 9266
-9267 9267 EBAD9B 9267
-9268 9268 EBAD9C 9268
-9269 9269 EBAD9D 9269
-926A 926A EBAD9E 926A
-926B 926B EBAD9F 926B
-926C 926C EBADA0 926C
-926D 926D EBADA2 926D
-926E 926E EBADA4 926E
-926F 926F EBADA5 926F
-9270 9270 EBADA6 9270
-9271 9271 EBADA7 9271
-9272 9272 EBADA8 9272
-9273 9273 EBADA9 9273
-9274 9274 EBADAA 9274
-9275 9275 EBADAB 9275
-9276 9276 EBADAD 9276
-9277 9277 EBADAE 9277
-9278 9278 EBADAF 9278
-9279 9279 EBADB0 9279
-927A 927A EBADB1 927A
-9281 9281 EBADB2 9281
-9282 9282 EBADB3 9282
-9283 9283 EBADB4 9283
-9284 9284 EBADB5 9284
-9285 9285 EBADB6 9285
-9286 9286 EBADB7 9286
-9287 9287 EBADB8 9287
-9288 9288 EBADB9 9288
-9289 9289 EBADBA 9289
-928A 928A EBADBB 928A
-928B 928B EBADBC 928B
-928C 928C EBADBD 928C
-928D 928D EBADBE 928D
-928E 928E EBADBF 928E
-928F 928F EBAE80 928F
-9290 9290 EBAE81 9290
-9291 9291 EBAE82 9291
-9292 9292 EBAE83 9292
-9293 9293 EBAE84 9293
-9294 9294 EBAE85 9294
-9295 9295 EBAE86 9295
-9296 9296 EBAE87 9296
-9297 9297 EBAE89 9297
-9298 9298 EBAE8A 9298
-9299 9299 EBAE8B 9299
-929A 929A EBAE8D 929A
-929B 929B EBAE8E 929B
-929C 929C EBAE8F 929C
-929D 929D EBAE91 929D
-929E 929E EBAE92 929E
-929F 929F EBAE93 929F
-92A0 92A0 EBAE94 92A0
-92A1 92A1 EBAE95 92A1
-92A2 92A2 EBAE96 92A2
-92A3 92A3 EBAE97 92A3
-92A4 92A4 EBAE98 92A4
-92A5 92A5 EBAE99 92A5
-92A6 92A6 EBAE9A 92A6
-92A7 92A7 EBAE9B 92A7
-92A8 92A8 EBAE9C 92A8
-92A9 92A9 EBAE9D 92A9
-92AA 92AA EBAE9E 92AA
-92AB 92AB EBAE9F 92AB
-92AC 92AC EBAEA0 92AC
-92AD 92AD EBAEA1 92AD
-92AE 92AE EBAEA2 92AE
-92AF 92AF EBAEA3 92AF
-92B0 92B0 EBAEA5 92B0
-92B1 92B1 EBAEA6 92B1
-92B2 92B2 EBAEA7 92B2
-92B3 92B3 EBAEA9 92B3
-92B4 92B4 EBAEAA 92B4
-92B5 92B5 EBAEAB 92B5
-92B6 92B6 EBAEAD 92B6
-92B7 92B7 EBAEAE 92B7
-92B8 92B8 EBAEAF 92B8
-92B9 92B9 EBAEB0 92B9
-92BA 92BA EBAEB1 92BA
-92BB 92BB EBAEB2 92BB
-92BC 92BC EBAEB3 92BC
-92BD 92BD EBAEB5 92BD
-92BE 92BE EBAEB6 92BE
-92BF 92BF EBAEB8 92BF
-92C0 92C0 EBAEB9 92C0
-92C1 92C1 EBAEBA 92C1
-92C2 92C2 EBAEBB 92C2
-92C3 92C3 EBAEBC 92C3
-92C4 92C4 EBAEBD 92C4
-92C5 92C5 EBAEBE 92C5
-92C6 92C6 EBAEBF 92C6
-92C7 92C7 EBAF81 92C7
-92C8 92C8 EBAF82 92C8
-92C9 92C9 EBAF83 92C9
-92CA 92CA EBAF85 92CA
-92CB 92CB EBAF86 92CB
-92CC 92CC EBAF87 92CC
-92CD 92CD EBAF89 92CD
-92CE 92CE EBAF8A 92CE
-92CF 92CF EBAF8B 92CF
-92D0 92D0 EBAF8C 92D0
-92D1 92D1 EBAF8D 92D1
-92D2 92D2 EBAF8E 92D2
-92D3 92D3 EBAF8F 92D3
-92D4 92D4 EBAF91 92D4
-92D5 92D5 EBAF92 92D5
-92D6 92D6 EBAF94 92D6
-92D7 92D7 EBAF95 92D7
-92D8 92D8 EBAF96 92D8
-92D9 92D9 EBAF97 92D9
-92DA 92DA EBAF98 92DA
-92DB 92DB EBAF99 92DB
-92DC 92DC EBAF9A 92DC
-92DD 92DD EBAF9B 92DD
-92DE 92DE EBAF9C 92DE
-92DF 92DF EBAF9D 92DF
-92E0 92E0 EBAF9E 92E0
-92E1 92E1 EBAF9F 92E1
-92E2 92E2 EBAFA0 92E2
-92E3 92E3 EBAFA1 92E3
-92E4 92E4 EBAFA2 92E4
-92E5 92E5 EBAFA3 92E5
-92E6 92E6 EBAFA4 92E6
-92E7 92E7 EBAFA5 92E7
-92E8 92E8 EBAFA6 92E8
-92E9 92E9 EBAFA7 92E9
-92EA 92EA EBAFA8 92EA
-92EB 92EB EBAFA9 92EB
-92EC 92EC EBAFAA 92EC
-92ED 92ED EBAFAB 92ED
-92EE 92EE EBAFAC 92EE
-92EF 92EF EBAFAD 92EF
-92F0 92F0 EBAFAE 92F0
-92F1 92F1 EBAFAF 92F1
-92F2 92F2 EBAFB0 92F2
-92F3 92F3 EBAFB1 92F3
-92F4 92F4 EBAFB2 92F4
-92F5 92F5 EBAFB3 92F5
-92F6 92F6 EBAFB4 92F6
-92F7 92F7 EBAFB5 92F7
-92F8 92F8 EBAFB6 92F8
-92F9 92F9 EBAFB7 92F9
-92FA 92FA EBAFBA 92FA
-92FB 92FB EBAFBB 92FB
-92FC 92FC EBAFBD 92FC
-92FD 92FD EBAFBE 92FD
-92FE 92FE EBB081 92FE
-9341 9341 EBB083 9341
-9342 9342 EBB084 9342
-9343 9343 EBB085 9343
-9344 9344 EBB086 9344
-9345 9345 EBB087 9345
-9346 9346 EBB08A 9346
-9347 9347 EBB08E 9347
-9348 9348 EBB090 9348
-9349 9349 EBB092 9349
-934A 934A EBB093 934A
-934B 934B EBB099 934B
-934C 934C EBB09A 934C
-934D 934D EBB0A0 934D
-934E 934E EBB0A1 934E
-934F 934F EBB0A2 934F
-9350 9350 EBB0A3 9350
-9351 9351 EBB0A6 9351
-9352 9352 EBB0A8 9352
-9353 9353 EBB0AA 9353
-9354 9354 EBB0AB 9354
-9355 9355 EBB0AC 9355
-9356 9356 EBB0AE 9356
-9357 9357 EBB0AF 9357
-9358 9358 EBB0B2 9358
-9359 9359 EBB0B3 9359
-935A 935A EBB0B5 935A
-9361 9361 EBB0B6 9361
-9362 9362 EBB0B7 9362
-9363 9363 EBB0B9 9363
-9364 9364 EBB0BA 9364
-9365 9365 EBB0BB 9365
-9366 9366 EBB0BC 9366
-9367 9367 EBB0BD 9367
-9368 9368 EBB0BE 9368
-9369 9369 EBB0BF 9369
-936A 936A EBB182 936A
-936B 936B EBB186 936B
-936C 936C EBB187 936C
-936D 936D EBB188 936D
-936E 936E EBB18A 936E
-936F 936F EBB18B 936F
-9370 9370 EBB18E 9370
-9371 9371 EBB18F 9371
-9372 9372 EBB191 9372
-9373 9373 EBB192 9373
-9374 9374 EBB193 9374
-9375 9375 EBB194 9375
-9376 9376 EBB195 9376
-9377 9377 EBB196 9377
-9378 9378 EBB197 9378
-9379 9379 EBB198 9379
-937A 937A EBB199 937A
-9381 9381 EBB19A 9381
-9382 9382 EBB19B 9382
-9383 9383 EBB19C 9383
-9384 9384 EBB19E 9384
-9385 9385 EBB19F 9385
-9386 9386 EBB1A0 9386
-9387 9387 EBB1A1 9387
-9388 9388 EBB1A2 9388
-9389 9389 EBB1A3 9389
-938A 938A EBB1A4 938A
-938B 938B EBB1A5 938B
-938C 938C EBB1A6 938C
-938D 938D EBB1A7 938D
-938E 938E EBB1A8 938E
-938F 938F EBB1A9 938F
-9390 9390 EBB1AA 9390
-9391 9391 EBB1AB 9391
-9392 9392 EBB1AC 9392
-9393 9393 EBB1AD 9393
-9394 9394 EBB1AE 9394
-9395 9395 EBB1AF 9395
-9396 9396 EBB1B0 9396
-9397 9397 EBB1B1 9397
-9398 9398 EBB1B2 9398
-9399 9399 EBB1B3 9399
-939A 939A EBB1B4 939A
-939B 939B EBB1B5 939B
-939C 939C EBB1B6 939C
-939D 939D EBB1B7 939D
-939E 939E EBB1B8 939E
-939F 939F EBB1B9 939F
-93A0 93A0 EBB1BA 93A0
-93A1 93A1 EBB1BB 93A1
-93A2 93A2 EBB1BC 93A2
-93A3 93A3 EBB1BD 93A3
-93A4 93A4 EBB1BE 93A4
-93A5 93A5 EBB1BF 93A5
-93A6 93A6 EBB280 93A6
-93A7 93A7 EBB281 93A7
-93A8 93A8 EBB282 93A8
-93A9 93A9 EBB283 93A9
-93AA 93AA EBB286 93AA
-93AB 93AB EBB287 93AB
-93AC 93AC EBB289 93AC
-93AD 93AD EBB28A 93AD
-93AE 93AE EBB28D 93AE
-93AF 93AF EBB28F 93AF
-93B0 93B0 EBB290 93B0
-93B1 93B1 EBB291 93B1
-93B2 93B2 EBB292 93B2
-93B3 93B3 EBB293 93B3
-93B4 93B4 EBB296 93B4
-93B5 93B5 EBB298 93B5
-93B6 93B6 EBB29B 93B6
-93B7 93B7 EBB29C 93B7
-93B8 93B8 EBB29D 93B8
-93B9 93B9 EBB29E 93B9
-93BA 93BA EBB29F 93BA
-93BB 93BB EBB2A2 93BB
-93BC 93BC EBB2A3 93BC
-93BD 93BD EBB2A5 93BD
-93BE 93BE EBB2A6 93BE
-93BF 93BF EBB2A9 93BF
-93C0 93C0 EBB2AA 93C0
-93C1 93C1 EBB2AB 93C1
-93C2 93C2 EBB2AC 93C2
-93C3 93C3 EBB2AD 93C3
-93C4 93C4 EBB2AE 93C4
-93C5 93C5 EBB2AF 93C5
-93C6 93C6 EBB2B2 93C6
-93C7 93C7 EBB2B6 93C7
-93C8 93C8 EBB2B7 93C8
-93C9 93C9 EBB2B8 93C9
-93CA 93CA EBB2B9 93CA
-93CB 93CB EBB2BA 93CB
-93CC 93CC EBB2BB 93CC
-93CD 93CD EBB2BE 93CD
-93CE 93CE EBB2BF 93CE
-93CF 93CF EBB381 93CF
-93D0 93D0 EBB382 93D0
-93D1 93D1 EBB383 93D1
-93D2 93D2 EBB385 93D2
-93D3 93D3 EBB386 93D3
-93D4 93D4 EBB387 93D4
-93D5 93D5 EBB388 93D5
-93D6 93D6 EBB389 93D6
-93D7 93D7 EBB38A 93D7
-93D8 93D8 EBB38B 93D8
-93D9 93D9 EBB38C 93D9
-93DA 93DA EBB38E 93DA
-93DB 93DB EBB392 93DB
-93DC 93DC EBB393 93DC
-93DD 93DD EBB394 93DD
-93DE 93DE EBB396 93DE
-93DF 93DF EBB397 93DF
-93E0 93E0 EBB399 93E0
-93E1 93E1 EBB39A 93E1
-93E2 93E2 EBB39B 93E2
-93E3 93E3 EBB39D 93E3
-93E4 93E4 EBB39E 93E4
-93E5 93E5 EBB39F 93E5
-93E6 93E6 EBB3A0 93E6
-93E7 93E7 EBB3A1 93E7
-93E8 93E8 EBB3A2 93E8
-93E9 93E9 EBB3A3 93E9
-93EA 93EA EBB3A4 93EA
-93EB 93EB EBB3A5 93EB
-93EC 93EC EBB3A6 93EC
-93ED 93ED EBB3A7 93ED
-93EE 93EE EBB3A8 93EE
-93EF 93EF EBB3A9 93EF
-93F0 93F0 EBB3AA 93F0
-93F1 93F1 EBB3AB 93F1
-93F2 93F2 EBB3AC 93F2
-93F3 93F3 EBB3AD 93F3
-93F4 93F4 EBB3AE 93F4
-93F5 93F5 EBB3AF 93F5
-93F6 93F6 EBB3B0 93F6
-93F7 93F7 EBB3B1 93F7
-93F8 93F8 EBB3B2 93F8
-93F9 93F9 EBB3B3 93F9
-93FA 93FA EBB3B7 93FA
-93FB 93FB EBB3B9 93FB
-93FC 93FC EBB3BA 93FC
-93FD 93FD EBB3BB 93FD
-93FE 93FE EBB3BD 93FE
-9441 9441 EBB3BE 9441
-9442 9442 EBB3BF 9442
-9443 9443 EBB480 9443
-9444 9444 EBB481 9444
-9445 9445 EBB482 9445
-9446 9446 EBB483 9446
-9447 9447 EBB486 9447
-9448 9448 EBB488 9448
-9449 9449 EBB48A 9449
-944A 944A EBB48B 944A
-944B 944B EBB48C 944B
-944C 944C EBB48D 944C
-944D 944D EBB48E 944D
-944E 944E EBB48F 944E
-944F 944F EBB491 944F
-9450 9450 EBB492 9450
-9451 9451 EBB493 9451
-9452 9452 EBB495 9452
-9453 9453 EBB496 9453
-9454 9454 EBB497 9454
-9455 9455 EBB498 9455
-9456 9456 EBB499 9456
-9457 9457 EBB49A 9457
-9458 9458 EBB49B 9458
-9459 9459 EBB49C 9459
-945A 945A EBB49D 945A
-9461 9461 EBB49E 9461
-9462 9462 EBB49F 9462
-9463 9463 EBB4A0 9463
-9464 9464 EBB4A1 9464
-9465 9465 EBB4A2 9465
-9466 9466 EBB4A3 9466
-9467 9467 EBB4A5 9467
-9468 9468 EBB4A6 9468
-9469 9469 EBB4A7 9469
-946A 946A EBB4A8 946A
-946B 946B EBB4A9 946B
-946C 946C EBB4AA 946C
-946D 946D EBB4AB 946D
-946E 946E EBB4AD 946E
-946F 946F EBB4AE 946F
-9470 9470 EBB4AF 9470
-9471 9471 EBB4B0 9471
-9472 9472 EBB4B1 9472
-9473 9473 EBB4B2 9473
-9474 9474 EBB4B3 9474
-9475 9475 EBB4B4 9475
-9476 9476 EBB4B5 9476
-9477 9477 EBB4B6 9477
-9478 9478 EBB4B7 9478
-9479 9479 EBB4B8 9479
-947A 947A EBB4B9 947A
-9481 9481 EBB4BA 9481
-9482 9482 EBB4BB 9482
-9483 9483 EBB4BC 9483
-9484 9484 EBB4BD 9484
-9485 9485 EBB4BE 9485
-9486 9486 EBB4BF 9486
-9487 9487 EBB581 9487
-9488 9488 EBB582 9488
-9489 9489 EBB583 9489
-948A 948A EBB584 948A
-948B 948B EBB585 948B
-948C 948C EBB586 948C
-948D 948D EBB587 948D
-948E 948E EBB58A 948E
-948F 948F EBB58B 948F
-9490 9490 EBB58D 9490
-9491 9491 EBB58E 9491
-9492 9492 EBB58F 9492
-9493 9493 EBB591 9493
-9494 9494 EBB592 9494
-9495 9495 EBB593 9495
-9496 9496 EBB594 9496
-9497 9497 EBB595 9497
-9498 9498 EBB596 9498
-9499 9499 EBB597 9499
-949A 949A EBB59A 949A
-949B 949B EBB59B 949B
-949C 949C EBB59C 949C
-949D 949D EBB59D 949D
-949E 949E EBB59E 949E
-949F 949F EBB59F 949F
-94A0 94A0 EBB5A0 94A0
-94A1 94A1 EBB5A1 94A1
-94A2 94A2 EBB5A2 94A2
-94A3 94A3 EBB5A3 94A3
-94A4 94A4 EBB5A5 94A4
-94A5 94A5 EBB5A6 94A5
-94A6 94A6 EBB5A7 94A6
-94A7 94A7 EBB5A9 94A7
-94A8 94A8 EBB5AA 94A8
-94A9 94A9 EBB5AB 94A9
-94AA 94AA EBB5AC 94AA
-94AB 94AB EBB5AD 94AB
-94AC 94AC EBB5AE 94AC
-94AD 94AD EBB5AF 94AD
-94AE 94AE EBB5B0 94AE
-94AF 94AF EBB5B1 94AF
-94B0 94B0 EBB5B2 94B0
-94B1 94B1 EBB5B3 94B1
-94B2 94B2 EBB5B4 94B2
-94B3 94B3 EBB5B5 94B3
-94B4 94B4 EBB5B6 94B4
-94B5 94B5 EBB5B7 94B5
-94B6 94B6 EBB5B8 94B6
-94B7 94B7 EBB5B9 94B7
-94B8 94B8 EBB5BA 94B8
-94B9 94B9 EBB5BB 94B9
-94BA 94BA EBB5BC 94BA
-94BB 94BB EBB5BD 94BB
-94BC 94BC EBB5BE 94BC
-94BD 94BD EBB5BF 94BD
-94BE 94BE EBB682 94BE
-94BF 94BF EBB683 94BF
-94C0 94C0 EBB685 94C0
-94C1 94C1 EBB686 94C1
-94C2 94C2 EBB68B 94C2
-94C3 94C3 EBB68C 94C3
-94C4 94C4 EBB68D 94C4
-94C5 94C5 EBB68E 94C5
-94C6 94C6 EBB68F 94C6
-94C7 94C7 EBB692 94C7
-94C8 94C8 EBB694 94C8
-94C9 94C9 EBB696 94C9
-94CA 94CA EBB697 94CA
-94CB 94CB EBB698 94CB
-94CC 94CC EBB69B 94CC
-94CD 94CD EBB69D 94CD
-94CE 94CE EBB69E 94CE
-94CF 94CF EBB69F 94CF
-94D0 94D0 EBB6A0 94D0
-94D1 94D1 EBB6A1 94D1
-94D2 94D2 EBB6A2 94D2
-94D3 94D3 EBB6A3 94D3
-94D4 94D4 EBB6A5 94D4
-94D5 94D5 EBB6A6 94D5
-94D6 94D6 EBB6A7 94D6
-94D7 94D7 EBB6A8 94D7
-94D8 94D8 EBB6A9 94D8
-94D9 94D9 EBB6AA 94D9
-94DA 94DA EBB6AB 94DA
-94DB 94DB EBB6AC 94DB
-94DC 94DC EBB6AD 94DC
-94DD 94DD EBB6AE 94DD
-94DE 94DE EBB6AF 94DE
-94DF 94DF EBB6B1 94DF
-94E0 94E0 EBB6B2 94E0
-94E1 94E1 EBB6B3 94E1
-94E2 94E2 EBB6B4 94E2
-94E3 94E3 EBB6B5 94E3
-94E4 94E4 EBB6B6 94E4
-94E5 94E5 EBB6B7 94E5
-94E6 94E6 EBB6B9 94E6
-94E7 94E7 EBB6BA 94E7
-94E8 94E8 EBB6BB 94E8
-94E9 94E9 EBB6BC 94E9
-94EA 94EA EBB6BD 94EA
-94EB 94EB EBB6BE 94EB
-94EC 94EC EBB6BF 94EC
-94ED 94ED EBB780 94ED
-94EE 94EE EBB781 94EE
-94EF 94EF EBB782 94EF
-94F0 94F0 EBB783 94F0
-94F1 94F1 EBB784 94F1
-94F2 94F2 EBB785 94F2
-94F3 94F3 EBB786 94F3
-94F4 94F4 EBB787 94F4
-94F5 94F5 EBB788 94F5
-94F6 94F6 EBB789 94F6
-94F7 94F7 EBB78A 94F7
-94F8 94F8 EBB78B 94F8
-94F9 94F9 EBB78C 94F9
-94FA 94FA EBB78D 94FA
-94FB 94FB EBB78E 94FB
-94FC 94FC EBB78F 94FC
-94FD 94FD EBB790 94FD
-94FE 94FE EBB791 94FE
-9541 9541 EBB792 9541
-9542 9542 EBB793 9542
-9543 9543 EBB796 9543
-9544 9544 EBB797 9544
-9545 9545 EBB799 9545
-9546 9546 EBB79A 9546
-9547 9547 EBB79B 9547
-9548 9548 EBB79D 9548
-9549 9549 EBB79E 9549
-954A 954A EBB79F 954A
-954B 954B EBB7A0 954B
-954C 954C EBB7A1 954C
-954D 954D EBB7A2 954D
-954E 954E EBB7A3 954E
-954F 954F EBB7A4 954F
-9550 9550 EBB7A5 9550
-9551 9551 EBB7A6 9551
-9552 9552 EBB7A7 9552
-9553 9553 EBB7A8 9553
-9554 9554 EBB7AA 9554
-9555 9555 EBB7AB 9555
-9556 9556 EBB7AC 9556
-9557 9557 EBB7AD 9557
-9558 9558 EBB7AE 9558
-9559 9559 EBB7AF 9559
-955A 955A EBB7B1 955A
-9561 9561 EBB7B2 9561
-9562 9562 EBB7B3 9562
-9563 9563 EBB7B5 9563
-9564 9564 EBB7B6 9564
-9565 9565 EBB7B7 9565
-9566 9566 EBB7B9 9566
-9567 9567 EBB7BA 9567
-9568 9568 EBB7BB 9568
-9569 9569 EBB7BC 9569
-956A 956A EBB7BD 956A
-956B 956B EBB7BE 956B
-956C 956C EBB7BF 956C
-956D 956D EBB881 956D
-956E 956E EBB882 956E
-956F 956F EBB884 956F
-9570 9570 EBB886 9570
-9571 9571 EBB887 9571
-9572 9572 EBB888 9572
-9573 9573 EBB889 9573
-9574 9574 EBB88A 9574
-9575 9575 EBB88B 9575
-9576 9576 EBB88E 9576
-9577 9577 EBB88F 9577
-9578 9578 EBB891 9578
-9579 9579 EBB892 9579
-957A 957A EBB893 957A
-9581 9581 EBB895 9581
-9582 9582 EBB896 9582
-9583 9583 EBB897 9583
-9584 9584 EBB898 9584
-9585 9585 EBB899 9585
-9586 9586 EBB89A 9586
-9587 9587 EBB89B 9587
-9588 9588 EBB89E 9588
-9589 9589 EBB8A0 9589
-958A 958A EBB8A1 958A
-958B 958B EBB8A2 958B
-958C 958C EBB8A3 958C
-958D 958D EBB8A4 958D
-958E 958E EBB8A5 958E
-958F 958F EBB8A6 958F
-9590 9590 EBB8A7 9590
-9591 9591 EBB8A8 9591
-9592 9592 EBB8A9 9592
-9593 9593 EBB8AA 9593
-9594 9594 EBB8AB 9594
-9595 9595 EBB8AC 9595
-9596 9596 EBB8AD 9596
-9597 9597 EBB8AE 9597
-9598 9598 EBB8AF 9598
-9599 9599 EBB8B0 9599
-959A 959A EBB8B1 959A
-959B 959B EBB8B2 959B
-959C 959C EBB8B3 959C
-959D 959D EBB8B4 959D
-959E 959E EBB8B5 959E
-959F 959F EBB8B6 959F
-95A0 95A0 EBB8B7 95A0
-95A1 95A1 EBB8B8 95A1
-95A2 95A2 EBB8B9 95A2
-95A3 95A3 EBB8BA 95A3
-95A4 95A4 EBB8BB 95A4
-95A5 95A5 EBB8BC 95A5
-95A6 95A6 EBB8BD 95A6
-95A7 95A7 EBB8BE 95A7
-95A8 95A8 EBB8BF 95A8
-95A9 95A9 EBB980 95A9
-95AA 95AA EBB981 95AA
-95AB 95AB EBB982 95AB
-95AC 95AC EBB983 95AC
-95AD 95AD EBB986 95AD
-95AE 95AE EBB987 95AE
-95AF 95AF EBB989 95AF
-95B0 95B0 EBB98A 95B0
-95B1 95B1 EBB98B 95B1
-95B2 95B2 EBB98D 95B2
-95B3 95B3 EBB98F 95B3
-95B4 95B4 EBB990 95B4
-95B5 95B5 EBB991 95B5
-95B6 95B6 EBB992 95B6
-95B7 95B7 EBB993 95B7
-95B8 95B8 EBB996 95B8
-95B9 95B9 EBB998 95B9
-95BA 95BA EBB99C 95BA
-95BB 95BB EBB99D 95BB
-95BC 95BC EBB99E 95BC
-95BD 95BD EBB99F 95BD
-95BE 95BE EBB9A2 95BE
-95BF 95BF EBB9A3 95BF
-95C0 95C0 EBB9A5 95C0
-95C1 95C1 EBB9A6 95C1
-95C2 95C2 EBB9A7 95C2
-95C3 95C3 EBB9A9 95C3
-95C4 95C4 EBB9AB 95C4
-95C5 95C5 EBB9AC 95C5
-95C6 95C6 EBB9AD 95C6
-95C7 95C7 EBB9AE 95C7
-95C8 95C8 EBB9AF 95C8
-95C9 95C9 EBB9B2 95C9
-95CA 95CA EBB9B6 95CA
-95CB 95CB EBB9B7 95CB
-95CC 95CC EBB9B8 95CC
-95CD 95CD EBB9B9 95CD
-95CE 95CE EBB9BA 95CE
-95CF 95CF EBB9BE 95CF
-95D0 95D0 EBB9BF 95D0
-95D1 95D1 EBBA81 95D1
-95D2 95D2 EBBA82 95D2
-95D3 95D3 EBBA83 95D3
-95D4 95D4 EBBA85 95D4
-95D5 95D5 EBBA86 95D5
-95D6 95D6 EBBA87 95D6
-95D7 95D7 EBBA88 95D7
-95D8 95D8 EBBA89 95D8
-95D9 95D9 EBBA8A 95D9
-95DA 95DA EBBA8B 95DA
-95DB 95DB EBBA8E 95DB
-95DC 95DC EBBA92 95DC
-95DD 95DD EBBA93 95DD
-95DE 95DE EBBA94 95DE
-95DF 95DF EBBA95 95DF
-95E0 95E0 EBBA96 95E0
-95E1 95E1 EBBA97 95E1
-95E2 95E2 EBBA9A 95E2
-95E3 95E3 EBBA9B 95E3
-95E4 95E4 EBBA9C 95E4
-95E5 95E5 EBBA9D 95E5
-95E6 95E6 EBBA9E 95E6
-95E7 95E7 EBBA9F 95E7
-95E8 95E8 EBBAA0 95E8
-95E9 95E9 EBBAA1 95E9
-95EA 95EA EBBAA2 95EA
-95EB 95EB EBBAA3 95EB
-95EC 95EC EBBAA4 95EC
-95ED 95ED EBBAA5 95ED
-95EE 95EE EBBAA6 95EE
-95EF 95EF EBBAA7 95EF
-95F0 95F0 EBBAA9 95F0
-95F1 95F1 EBBAAA 95F1
-95F2 95F2 EBBAAB 95F2
-95F3 95F3 EBBAAC 95F3
-95F4 95F4 EBBAAD 95F4
-95F5 95F5 EBBAAE 95F5
-95F6 95F6 EBBAAF 95F6
-95F7 95F7 EBBAB0 95F7
-95F8 95F8 EBBAB1 95F8
-95F9 95F9 EBBAB2 95F9
-95FA 95FA EBBAB3 95FA
-95FB 95FB EBBAB4 95FB
-95FC 95FC EBBAB5 95FC
-95FD 95FD EBBAB6 95FD
-95FE 95FE EBBAB7 95FE
-9641 9641 EBBAB8 9641
-9642 9642 EBBAB9 9642
-9643 9643 EBBABA 9643
-9644 9644 EBBABB 9644
-9645 9645 EBBABC 9645
-9646 9646 EBBABD 9646
-9647 9647 EBBABE 9647
-9648 9648 EBBABF 9648
-9649 9649 EBBB80 9649
-964A 964A EBBB81 964A
-964B 964B EBBB82 964B
-964C 964C EBBB83 964C
-964D 964D EBBB84 964D
-964E 964E EBBB85 964E
-964F 964F EBBB86 964F
-9650 9650 EBBB87 9650
-9651 9651 EBBB88 9651
-9652 9652 EBBB89 9652
-9653 9653 EBBB8A 9653
-9654 9654 EBBB8B 9654
-9655 9655 EBBB8C 9655
-9656 9656 EBBB8D 9656
-9657 9657 EBBB8E 9657
-9658 9658 EBBB8F 9658
-9659 9659 EBBB92 9659
-965A 965A EBBB93 965A
-9661 9661 EBBB95 9661
-9662 9662 EBBB96 9662
-9663 9663 EBBB99 9663
-9664 9664 EBBB9A 9664
-9665 9665 EBBB9B 9665
-9666 9666 EBBB9C 9666
-9667 9667 EBBB9D 9667
-9668 9668 EBBB9E 9668
-9669 9669 EBBB9F 9669
-966A 966A EBBBA1 966A
-966B 966B EBBBA2 966B
-966C 966C EBBBA6 966C
-966D 966D EBBBA7 966D
-966E 966E EBBBA8 966E
-966F 966F EBBBA9 966F
-9670 9670 EBBBAA 9670
-9671 9671 EBBBAB 9671
-9672 9672 EBBBAD 9672
-9673 9673 EBBBAE 9673
-9674 9674 EBBBAF 9674
-9675 9675 EBBBB0 9675
-9676 9676 EBBBB1 9676
-9677 9677 EBBBB2 9677
-9678 9678 EBBBB3 9678
-9679 9679 EBBBB4 9679
-967A 967A EBBBB5 967A
-9681 9681 EBBBB6 9681
-9682 9682 EBBBB7 9682
-9683 9683 EBBBB8 9683
-9684 9684 EBBBB9 9684
-9685 9685 EBBBBA 9685
-9686 9686 EBBBBB 9686
-9687 9687 EBBBBC 9687
-9688 9688 EBBBBD 9688
-9689 9689 EBBBBE 9689
-968A 968A EBBBBF 968A
-968B 968B EBBC80 968B
-968C 968C EBBC82 968C
-968D 968D EBBC83 968D
-968E 968E EBBC84 968E
-968F 968F EBBC85 968F
-9690 9690 EBBC86 9690
-9691 9691 EBBC87 9691
-9692 9692 EBBC8A 9692
-9693 9693 EBBC8B 9693
-9694 9694 EBBC8C 9694
-9695 9695 EBBC8D 9695
-9696 9696 EBBC8E 9696
-9697 9697 EBBC8F 9697
-9698 9698 EBBC90 9698
-9699 9699 EBBC91 9699
-969A 969A EBBC92 969A
-969B 969B EBBC93 969B
-969C 969C EBBC94 969C
-969D 969D EBBC95 969D
-969E 969E EBBC96 969E
-969F 969F EBBC97 969F
-96A0 96A0 EBBC9A 96A0
-96A1 96A1 EBBC9E 96A1
-96A2 96A2 EBBC9F 96A2
-96A3 96A3 EBBCA0 96A3
-96A4 96A4 EBBCA1 96A4
-96A5 96A5 EBBCA2 96A5
-96A6 96A6 EBBCA3 96A6
-96A7 96A7 EBBCA4 96A7
-96A8 96A8 EBBCA5 96A8
-96A9 96A9 EBBCA6 96A9
-96AA 96AA EBBCA7 96AA
-96AB 96AB EBBCA8 96AB
-96AC 96AC EBBCA9 96AC
-96AD 96AD EBBCAA 96AD
-96AE 96AE EBBCAB 96AE
-96AF 96AF EBBCAC 96AF
-96B0 96B0 EBBCAD 96B0
-96B1 96B1 EBBCAE 96B1
-96B2 96B2 EBBCAF 96B2
-96B3 96B3 EBBCB0 96B3
-96B4 96B4 EBBCB1 96B4
-96B5 96B5 EBBCB2 96B5
-96B6 96B6 EBBCB3 96B6
-96B7 96B7 EBBCB4 96B7
-96B8 96B8 EBBCB5 96B8
-96B9 96B9 EBBCB6 96B9
-96BA 96BA EBBCB7 96BA
-96BB 96BB EBBCB8 96BB
-96BC 96BC EBBCB9 96BC
-96BD 96BD EBBCBA 96BD
-96BE 96BE EBBCBB 96BE
-96BF 96BF EBBCBC 96BF
-96C0 96C0 EBBCBD 96C0
-96C1 96C1 EBBCBE 96C1
-96C2 96C2 EBBCBF 96C2
-96C3 96C3 EBBD82 96C3
-96C4 96C4 EBBD83 96C4
-96C5 96C5 EBBD85 96C5
-96C6 96C6 EBBD86 96C6
-96C7 96C7 EBBD87 96C7
-96C8 96C8 EBBD89 96C8
-96C9 96C9 EBBD8A 96C9
-96CA 96CA EBBD8B 96CA
-96CB 96CB EBBD8C 96CB
-96CC 96CC EBBD8D 96CC
-96CD 96CD EBBD8E 96CD
-96CE 96CE EBBD8F 96CE
-96CF 96CF EBBD92 96CF
-96D0 96D0 EBBD93 96D0
-96D1 96D1 EBBD94 96D1
-96D2 96D2 EBBD96 96D2
-96D3 96D3 EBBD97 96D3
-96D4 96D4 EBBD98 96D4
-96D5 96D5 EBBD99 96D5
-96D6 96D6 EBBD9A 96D6
-96D7 96D7 EBBD9B 96D7
-96D8 96D8 EBBD9C 96D8
-96D9 96D9 EBBD9D 96D9
-96DA 96DA EBBD9E 96DA
-96DB 96DB EBBD9F 96DB
-96DC 96DC EBBDA0 96DC
-96DD 96DD EBBDA1 96DD
-96DE 96DE EBBDA2 96DE
-96DF 96DF EBBDA3 96DF
-96E0 96E0 EBBDA4 96E0
-96E1 96E1 EBBDA5 96E1
-96E2 96E2 EBBDA6 96E2
-96E3 96E3 EBBDA7 96E3
-96E4 96E4 EBBDA8 96E4
-96E5 96E5 EBBDA9 96E5
-96E6 96E6 EBBDAA 96E6
-96E7 96E7 EBBDAB 96E7
-96E8 96E8 EBBDAC 96E8
-96E9 96E9 EBBDAD 96E9
-96EA 96EA EBBDAE 96EA
-96EB 96EB EBBDAF 96EB
-96EC 96EC EBBDB0 96EC
-96ED 96ED EBBDB1 96ED
-96EE 96EE EBBDB2 96EE
-96EF 96EF EBBDB3 96EF
-96F0 96F0 EBBDB4 96F0
-96F1 96F1 EBBDB5 96F1
-96F2 96F2 EBBDB6 96F2
-96F3 96F3 EBBDB7 96F3
-96F4 96F4 EBBDB8 96F4
-96F5 96F5 EBBDB9 96F5
-96F6 96F6 EBBDBA 96F6
-96F7 96F7 EBBDBB 96F7
-96F8 96F8 EBBDBC 96F8
-96F9 96F9 EBBDBD 96F9
-96FA 96FA EBBDBE 96FA
-96FB 96FB EBBDBF 96FB
-96FC 96FC EBBE80 96FC
-96FD 96FD EBBE81 96FD
-96FE 96FE EBBE82 96FE
-9741 9741 EBBE83 9741
-9742 9742 EBBE84 9742
-9743 9743 EBBE85 9743
-9744 9744 EBBE86 9744
-9745 9745 EBBE87 9745
-9746 9746 EBBE88 9746
-9747 9747 EBBE89 9747
-9748 9748 EBBE8A 9748
-9749 9749 EBBE8B 9749
-974A 974A EBBE8C 974A
-974B 974B EBBE8D 974B
-974C 974C EBBE8E 974C
-974D 974D EBBE8F 974D
-974E 974E EBBE90 974E
-974F 974F EBBE91 974F
-9750 9750 EBBE92 9750
-9751 9751 EBBE93 9751
-9752 9752 EBBE95 9752
-9753 9753 EBBE96 9753
-9754 9754 EBBE97 9754
-9755 9755 EBBE98 9755
-9756 9756 EBBE99 9756
-9757 9757 EBBE9A 9757
-9758 9758 EBBE9B 9758
-9759 9759 EBBE9C 9759
-975A 975A EBBE9D 975A
-9761 9761 EBBE9E 9761
-9762 9762 EBBE9F 9762
-9763 9763 EBBEA0 9763
-9764 9764 EBBEA1 9764
-9765 9765 EBBEA2 9765
-9766 9766 EBBEA3 9766
-9767 9767 EBBEA4 9767
-9768 9768 EBBEA5 9768
-9769 9769 EBBEA6 9769
-976A 976A EBBEA7 976A
-976B 976B EBBEA8 976B
-976C 976C EBBEA9 976C
-976D 976D EBBEAA 976D
-976E 976E EBBEAB 976E
-976F 976F EBBEAC 976F
-9770 9770 EBBEAD 9770
-9771 9771 EBBEAE 9771
-9772 9772 EBBEAF 9772
-9773 9773 EBBEB1 9773
-9774 9774 EBBEB2 9774
-9775 9775 EBBEB3 9775
-9776 9776 EBBEB4 9776
-9777 9777 EBBEB5 9777
-9778 9778 EBBEB6 9778
-9779 9779 EBBEB7 9779
-977A 977A EBBEB8 977A
-9781 9781 EBBEB9 9781
-9782 9782 EBBEBA 9782
-9783 9783 EBBEBB 9783
-9784 9784 EBBEBC 9784
-9785 9785 EBBEBD 9785
-9786 9786 EBBEBE 9786
-9787 9787 EBBEBF 9787
-9788 9788 EBBF80 9788
-9789 9789 EBBF81 9789
-978A 978A EBBF82 978A
-978B 978B EBBF83 978B
-978C 978C EBBF84 978C
-978D 978D EBBF86 978D
-978E 978E EBBF87 978E
-978F 978F EBBF88 978F
-9790 9790 EBBF89 9790
-9791 9791 EBBF8A 9791
-9792 9792 EBBF8B 9792
-9793 9793 EBBF8E 9793
-9794 9794 EBBF8F 9794
-9795 9795 EBBF91 9795
-9796 9796 EBBF92 9796
-9797 9797 EBBF93 9797
-9798 9798 EBBF95 9798
-9799 9799 EBBF96 9799
-979A 979A EBBF97 979A
-979B 979B EBBF98 979B
-979C 979C EBBF99 979C
-979D 979D EBBF9A 979D
-979E 979E EBBF9B 979E
-979F 979F EBBF9D 979F
-97A0 97A0 EBBF9E 97A0
-97A1 97A1 EBBFA0 97A1
-97A2 97A2 EBBFA2 97A2
-97A3 97A3 EBBFA3 97A3
-97A4 97A4 EBBFA4 97A4
-97A5 97A5 EBBFA5 97A5
-97A6 97A6 EBBFA6 97A6
-97A7 97A7 EBBFA7 97A7
-97A8 97A8 EBBFA8 97A8
-97A9 97A9 EBBFA9 97A9
-97AA 97AA EBBFAA 97AA
-97AB 97AB EBBFAB 97AB
-97AC 97AC EBBFAC 97AC
-97AD 97AD EBBFAD 97AD
-97AE 97AE EBBFAE 97AE
-97AF 97AF EBBFAF 97AF
-97B0 97B0 EBBFB0 97B0
-97B1 97B1 EBBFB1 97B1
-97B2 97B2 EBBFB2 97B2
-97B3 97B3 EBBFB3 97B3
-97B4 97B4 EBBFB4 97B4
-97B5 97B5 EBBFB5 97B5
-97B6 97B6 EBBFB6 97B6
-97B7 97B7 EBBFB7 97B7
-97B8 97B8 EBBFB8 97B8
-97B9 97B9 EBBFB9 97B9
-97BA 97BA EBBFBA 97BA
-97BB 97BB EBBFBB 97BB
-97BC 97BC EBBFBC 97BC
-97BD 97BD EBBFBD 97BD
-97BE 97BE EBBFBE 97BE
-97BF 97BF EBBFBF 97BF
-97C0 97C0 EC8080 97C0
-97C1 97C1 EC8081 97C1
-97C2 97C2 EC8082 97C2
-97C3 97C3 EC8083 97C3
-97C4 97C4 EC8084 97C4
-97C5 97C5 EC8085 97C5
-97C6 97C6 EC8086 97C6
-97C7 97C7 EC8087 97C7
-97C8 97C8 EC8088 97C8
-97C9 97C9 EC8089 97C9
-97CA 97CA EC808A 97CA
-97CB 97CB EC808B 97CB
-97CC 97CC EC808C 97CC
-97CD 97CD EC808D 97CD
-97CE 97CE EC808E 97CE
-97CF 97CF EC808F 97CF
-97D0 97D0 EC8090 97D0
-97D1 97D1 EC8091 97D1
-97D2 97D2 EC8092 97D2
-97D3 97D3 EC8093 97D3
-97D4 97D4 EC8094 97D4
-97D5 97D5 EC8095 97D5
-97D6 97D6 EC8096 97D6
-97D7 97D7 EC8097 97D7
-97D8 97D8 EC8098 97D8
-97D9 97D9 EC8099 97D9
-97DA 97DA EC809A 97DA
-97DB 97DB EC809B 97DB
-97DC 97DC EC809C 97DC
-97DD 97DD EC809D 97DD
-97DE 97DE EC809E 97DE
-97DF 97DF EC809F 97DF
-97E0 97E0 EC80A0 97E0
-97E1 97E1 EC80A1 97E1
-97E2 97E2 EC80A2 97E2
-97E3 97E3 EC80A3 97E3
-97E4 97E4 EC80A4 97E4
-97E5 97E5 EC80A5 97E5
-97E6 97E6 EC80A6 97E6
-97E7 97E7 EC80A7 97E7
-97E8 97E8 EC80A8 97E8
-97E9 97E9 EC80A9 97E9
-97EA 97EA EC80AA 97EA
-97EB 97EB EC80AB 97EB
-97EC 97EC EC80AC 97EC
-97ED 97ED EC80AD 97ED
-97EE 97EE EC80AE 97EE
-97EF 97EF EC80AF 97EF
-97F0 97F0 EC80B0 97F0
-97F1 97F1 EC80B1 97F1
-97F2 97F2 EC80B2 97F2
-97F3 97F3 EC80B3 97F3
-97F4 97F4 EC80B4 97F4
-97F5 97F5 EC80B5 97F5
-97F6 97F6 EC80B6 97F6
-97F7 97F7 EC80B7 97F7
-97F8 97F8 EC80B8 97F8
-97F9 97F9 EC80B9 97F9
-97FA 97FA EC80BA 97FA
-97FB 97FB EC80BB 97FB
-97FC 97FC EC80BD 97FC
-97FD 97FD EC80BE 97FD
-97FE 97FE EC80BF 97FE
-9841 9841 EC8180 9841
-9842 9842 EC8181 9842
-9843 9843 EC8182 9843
-9844 9844 EC8183 9844
-9845 9845 EC8184 9845
-9846 9846 EC8185 9846
-9847 9847 EC8186 9847
-9848 9848 EC8187 9848
-9849 9849 EC8188 9849
-984A 984A EC8189 984A
-984B 984B EC818A 984B
-984C 984C EC818B 984C
-984D 984D EC818C 984D
-984E 984E EC818D 984E
-984F 984F EC818E 984F
-9850 9850 EC818F 9850
-9851 9851 EC8190 9851
-9852 9852 EC8192 9852
-9853 9853 EC8193 9853
-9854 9854 EC8194 9854
-9855 9855 EC8195 9855
-9856 9856 EC8196 9856
-9857 9857 EC8197 9857
-9858 9858 EC8199 9858
-9859 9859 EC819A 9859
-985A 985A EC819B 985A
-9861 9861 EC819D 9861
-9862 9862 EC819E 9862
-9863 9863 EC819F 9863
-9864 9864 EC81A1 9864
-9865 9865 EC81A2 9865
-9866 9866 EC81A3 9866
-9867 9867 EC81A4 9867
-9868 9868 EC81A5 9868
-9869 9869 EC81A6 9869
-986A 986A EC81A7 986A
-986B 986B EC81AA 986B
-986C 986C EC81AB 986C
-986D 986D EC81AC 986D
-986E 986E EC81AD 986E
-986F 986F EC81AE 986F
-9870 9870 EC81AF 9870
-9871 9871 EC81B0 9871
-9872 9872 EC81B1 9872
-9873 9873 EC81B2 9873
-9874 9874 EC81B3 9874
-9875 9875 EC81B4 9875
-9876 9876 EC81B5 9876
-9877 9877 EC81B6 9877
-9878 9878 EC81B7 9878
-9879 9879 EC81B8 9879
-987A 987A EC81B9 987A
-9881 9881 EC81BA 9881
-9882 9882 EC81BB 9882
-9883 9883 EC81BC 9883
-9884 9884 EC81BD 9884
-9885 9885 EC81BE 9885
-9886 9886 EC81BF 9886
-9887 9887 EC8280 9887
-9888 9888 EC8281 9888
-9889 9889 EC8282 9889
-988A 988A EC8283 988A
-988B 988B EC8284 988B
-988C 988C EC8285 988C
-988D 988D EC8286 988D
-988E 988E EC8287 988E
-988F 988F EC8288 988F
-9890 9890 EC8289 9890
-9891 9891 EC828A 9891
-9892 9892 EC828B 9892
-9893 9893 EC828C 9893
-9894 9894 EC828D 9894
-9895 9895 EC828E 9895
-9896 9896 EC828F 9896
-9897 9897 EC8292 9897
-9898 9898 EC8293 9898
-9899 9899 EC8295 9899
-989A 989A EC8296 989A
-989B 989B EC8297 989B
-989C 989C EC8299 989C
-989D 989D EC829A 989D
-989E 989E EC829B 989E
-989F 989F EC829C 989F
-98A0 98A0 EC829D 98A0
-98A1 98A1 EC829E 98A1
-98A2 98A2 EC829F 98A2
-98A3 98A3 EC82A2 98A3
-98A4 98A4 EC82A4 98A4
-98A5 98A5 EC82A6 98A5
-98A6 98A6 EC82A7 98A6
-98A7 98A7 EC82A8 98A7
-98A8 98A8 EC82A9 98A8
-98A9 98A9 EC82AA 98A9
-98AA 98AA EC82AB 98AA
-98AB 98AB EC82AE 98AB
-98AC 98AC EC82B1 98AC
-98AD 98AD EC82B2 98AD
-98AE 98AE EC82B7 98AE
-98AF 98AF EC82B8 98AF
-98B0 98B0 EC82B9 98B0
-98B1 98B1 EC82BA 98B1
-98B2 98B2 EC82BB 98B2
-98B3 98B3 EC82BE 98B3
-98B4 98B4 EC8382 98B4
-98B5 98B5 EC8383 98B5
-98B6 98B6 EC8384 98B6
-98B7 98B7 EC8386 98B7
-98B8 98B8 EC8387 98B8
-98B9 98B9 EC838A 98B9
-98BA 98BA EC838B 98BA
-98BB 98BB EC838D 98BB
-98BC 98BC EC838E 98BC
-98BD 98BD EC838F 98BD
-98BE 98BE EC8391 98BE
-98BF 98BF EC8392 98BF
-98C0 98C0 EC8393 98C0
-98C1 98C1 EC8394 98C1
-98C2 98C2 EC8395 98C2
-98C3 98C3 EC8396 98C3
-98C4 98C4 EC8397 98C4
-98C5 98C5 EC839A 98C5
-98C6 98C6 EC839E 98C6
-98C7 98C7 EC839F 98C7
-98C8 98C8 EC83A0 98C8
-98C9 98C9 EC83A1 98C9
-98CA 98CA EC83A2 98CA
-98CB 98CB EC83A3 98CB
-98CC 98CC EC83A6 98CC
-98CD 98CD EC83A7 98CD
-98CE 98CE EC83A9 98CE
-98CF 98CF EC83AA 98CF
-98D0 98D0 EC83AB 98D0
-98D1 98D1 EC83AD 98D1
-98D2 98D2 EC83AE 98D2
-98D3 98D3 EC83AF 98D3
-98D4 98D4 EC83B0 98D4
-98D5 98D5 EC83B1 98D5
-98D6 98D6 EC83B2 98D6
-98D7 98D7 EC83B3 98D7
-98D8 98D8 EC83B6 98D8
-98D9 98D9 EC83B8 98D9
-98DA 98DA EC83BA 98DA
-98DB 98DB EC83BB 98DB
-98DC 98DC EC83BC 98DC
-98DD 98DD EC83BD 98DD
-98DE 98DE EC83BE 98DE
-98DF 98DF EC83BF 98DF
-98E0 98E0 EC8481 98E0
-98E1 98E1 EC8482 98E1
-98E2 98E2 EC8483 98E2
-98E3 98E3 EC8485 98E3
-98E4 98E4 EC8486 98E4
-98E5 98E5 EC8487 98E5
-98E6 98E6 EC8489 98E6
-98E7 98E7 EC848A 98E7
-98E8 98E8 EC848B 98E8
-98E9 98E9 EC848C 98E9
-98EA 98EA EC848D 98EA
-98EB 98EB EC848E 98EB
-98EC 98EC EC848F 98EC
-98ED 98ED EC8491 98ED
-98EE 98EE EC8492 98EE
-98EF 98EF EC8493 98EF
-98F0 98F0 EC8494 98F0
-98F1 98F1 EC8496 98F1
-98F2 98F2 EC8497 98F2
-98F3 98F3 EC8498 98F3
-98F4 98F4 EC8499 98F4
-98F5 98F5 EC849A 98F5
-98F6 98F6 EC849B 98F6
-98F7 98F7 EC84A1 98F7
-98F8 98F8 EC84A2 98F8
-98F9 98F9 EC84A5 98F9
-98FA 98FA EC84A8 98FA
-98FB 98FB EC84A9 98FB
-98FC 98FC EC84AA 98FC
-98FD 98FD EC84AB 98FD
-98FE 98FE EC84AE 98FE
-9941 9941 EC84B2 9941
-9942 9942 EC84B3 9942
-9943 9943 EC84B4 9943
-9944 9944 EC84B5 9944
-9945 9945 EC84B7 9945
-9946 9946 EC84BA 9946
-9947 9947 EC84BB 9947
-9948 9948 EC84BD 9948
-9949 9949 EC84BE 9949
-994A 994A EC84BF 994A
-994B 994B EC8581 994B
-994C 994C EC8582 994C
-994D 994D EC8583 994D
-994E 994E EC8584 994E
-994F 994F EC8585 994F
-9950 9950 EC8586 9950
-9951 9951 EC8587 9951
-9952 9952 EC858A 9952
-9953 9953 EC858E 9953
-9954 9954 EC858F 9954
-9955 9955 EC8590 9955
-9956 9956 EC8591 9956
-9957 9957 EC8592 9957
-9958 9958 EC8593 9958
-9959 9959 EC8596 9959
-995A 995A EC8597 995A
-9961 9961 EC8599 9961
-9962 9962 EC859A 9962
-9963 9963 EC859B 9963
-9964 9964 EC859D 9964
-9965 9965 EC859E 9965
-9966 9966 EC859F 9966
-9967 9967 EC85A0 9967
-9968 9968 EC85A1 9968
-9969 9969 EC85A2 9969
-996A 996A EC85A3 996A
-996B 996B EC85A6 996B
-996C 996C EC85AA 996C
-996D 996D EC85AB 996D
-996E 996E EC85AC 996E
-996F 996F EC85AD 996F
-9970 9970 EC85AE 9970
-9971 9971 EC85AF 9971
-9972 9972 EC85B1 9972
-9973 9973 EC85B2 9973
-9974 9974 EC85B3 9974
-9975 9975 EC85B5 9975
-9976 9976 EC85B6 9976
-9977 9977 EC85B7 9977
-9978 9978 EC85B9 9978
-9979 9979 EC85BA 9979
-997A 997A EC85BB 997A
-9981 9981 EC85BC 9981
-9982 9982 EC85BD 9982
-9983 9983 EC85BE 9983
-9984 9984 EC85BF 9984
-9985 9985 EC8680 9985
-9986 9986 EC8681 9986
-9987 9987 EC8682 9987
-9988 9988 EC8683 9988
-9989 9989 EC8684 9989
-998A 998A EC8686 998A
-998B 998B EC8687 998B
-998C 998C EC8688 998C
-998D 998D EC8689 998D
-998E 998E EC868A 998E
-998F 998F EC868B 998F
-9990 9990 EC868F 9990
-9991 9991 EC8691 9991
-9992 9992 EC8692 9992
-9993 9993 EC8693 9993
-9994 9994 EC8695 9994
-9995 9995 EC8697 9995
-9996 9996 EC8698 9996
-9997 9997 EC8699 9997
-9998 9998 EC869A 9998
-9999 9999 EC869B 9999
-999A 999A EC869E 999A
-999B 999B EC86A0 999B
-999C 999C EC86A2 999C
-999D 999D EC86A3 999D
-999E 999E EC86A4 999E
-999F 999F EC86A6 999F
-99A0 99A0 EC86A7 99A0
-99A1 99A1 EC86AA 99A1
-99A2 99A2 EC86AB 99A2
-99A3 99A3 EC86AD 99A3
-99A4 99A4 EC86AE 99A4
-99A5 99A5 EC86AF 99A5
-99A6 99A6 EC86B1 99A6
-99A7 99A7 EC86B2 99A7
-99A8 99A8 EC86B3 99A8
-99A9 99A9 EC86B4 99A9
-99AA 99AA EC86B5 99AA
-99AB 99AB EC86B6 99AB
-99AC 99AC EC86B7 99AC
-99AD 99AD EC86B8 99AD
-99AE 99AE EC86B9 99AE
-99AF 99AF EC86BA 99AF
-99B0 99B0 EC86BB 99B0
-99B1 99B1 EC86BC 99B1
-99B2 99B2 EC86BE 99B2
-99B3 99B3 EC86BF 99B3
-99B4 99B4 EC8780 99B4
-99B5 99B5 EC8781 99B5
-99B6 99B6 EC8782 99B6
-99B7 99B7 EC8783 99B7
-99B8 99B8 EC8785 99B8
-99B9 99B9 EC8786 99B9
-99BA 99BA EC8787 99BA
-99BB 99BB EC8789 99BB
-99BC 99BC EC878A 99BC
-99BD 99BD EC878B 99BD
-99BE 99BE EC878D 99BE
-99BF 99BF EC878E 99BF
-99C0 99C0 EC878F 99C0
-99C1 99C1 EC8790 99C1
-99C2 99C2 EC8791 99C2
-99C3 99C3 EC8792 99C3
-99C4 99C4 EC8793 99C4
-99C5 99C5 EC8795 99C5
-99C6 99C6 EC8796 99C6
-99C7 99C7 EC8799 99C7
-99C8 99C8 EC879A 99C8
-99C9 99C9 EC879B 99C9
-99CA 99CA EC879C 99CA
-99CB 99CB EC879D 99CB
-99CC 99CC EC879E 99CC
-99CD 99CD EC879F 99CD
-99CE 99CE EC87A1 99CE
-99CF 99CF EC87A2 99CF
-99D0 99D0 EC87A3 99D0
-99D1 99D1 EC87A5 99D1
-99D2 99D2 EC87A6 99D2
-99D3 99D3 EC87A7 99D3
-99D4 99D4 EC87A9 99D4
-99D5 99D5 EC87AA 99D5
-99D6 99D6 EC87AB 99D6
-99D7 99D7 EC87AC 99D7
-99D8 99D8 EC87AD 99D8
-99D9 99D9 EC87AE 99D9
-99DA 99DA EC87AF 99DA
-99DB 99DB EC87B2 99DB
-99DC 99DC EC87B4 99DC
-99DD 99DD EC87B5 99DD
-99DE 99DE EC87B6 99DE
-99DF 99DF EC87B7 99DF
-99E0 99E0 EC87B8 99E0
-99E1 99E1 EC87B9 99E1
-99E2 99E2 EC87BA 99E2
-99E3 99E3 EC87BB 99E3
-99E4 99E4 EC87BE 99E4
-99E5 99E5 EC87BF 99E5
-99E6 99E6 EC8881 99E6
-99E7 99E7 EC8882 99E7
-99E8 99E8 EC8883 99E8
-99E9 99E9 EC8885 99E9
-99EA 99EA EC8886 99EA
-99EB 99EB EC8887 99EB
-99EC 99EC EC8888 99EC
-99ED 99ED EC8889 99ED
-99EE 99EE EC888A 99EE
-99EF 99EF EC888B 99EF
-99F0 99F0 EC888E 99F0
-99F1 99F1 EC8890 99F1
-99F2 99F2 EC8892 99F2
-99F3 99F3 EC8893 99F3
-99F4 99F4 EC8894 99F4
-99F5 99F5 EC8895 99F5
-99F6 99F6 EC8896 99F6
-99F7 99F7 EC8897 99F7
-99F8 99F8 EC889A 99F8
-99F9 99F9 EC889B 99F9
-99FA 99FA EC889D 99FA
-99FB 99FB EC889E 99FB
-99FC 99FC EC88A1 99FC
-99FD 99FD EC88A2 99FD
-99FE 99FE EC88A3 99FE
-9A41 9A41 EC88A4 9A41
-9A42 9A42 EC88A5 9A42
-9A43 9A43 EC88A6 9A43
-9A44 9A44 EC88A7 9A44
-9A45 9A45 EC88AA 9A45
-9A46 9A46 EC88AC 9A46
-9A47 9A47 EC88AE 9A47
-9A48 9A48 EC88B0 9A48
-9A49 9A49 EC88B3 9A49
-9A4A 9A4A EC88B5 9A4A
-9A4B 9A4B EC88B6 9A4B
-9A4C 9A4C EC88B7 9A4C
-9A4D 9A4D EC88B8 9A4D
-9A4E 9A4E EC88B9 9A4E
-9A4F 9A4F EC88BA 9A4F
-9A50 9A50 EC88BB 9A50
-9A51 9A51 EC88BC 9A51
-9A52 9A52 EC88BD 9A52
-9A53 9A53 EC88BE 9A53
-9A54 9A54 EC88BF 9A54
-9A55 9A55 EC8980 9A55
-9A56 9A56 EC8981 9A56
-9A57 9A57 EC8982 9A57
-9A58 9A58 EC8983 9A58
-9A59 9A59 EC8984 9A59
-9A5A 9A5A EC8985 9A5A
-9A61 9A61 EC8986 9A61
-9A62 9A62 EC8987 9A62
-9A63 9A63 EC8989 9A63
-9A64 9A64 EC898A 9A64
-9A65 9A65 EC898B 9A65
-9A66 9A66 EC898C 9A66
-9A67 9A67 EC898D 9A67
-9A68 9A68 EC898E 9A68
-9A69 9A69 EC898F 9A69
-9A6A 9A6A EC8992 9A6A
-9A6B 9A6B EC8993 9A6B
-9A6C 9A6C EC8995 9A6C
-9A6D 9A6D EC8996 9A6D
-9A6E 9A6E EC8997 9A6E
-9A6F 9A6F EC8999 9A6F
-9A70 9A70 EC899A 9A70
-9A71 9A71 EC899B 9A71
-9A72 9A72 EC899C 9A72
-9A73 9A73 EC899D 9A73
-9A74 9A74 EC899E 9A74
-9A75 9A75 EC899F 9A75
-9A76 9A76 EC89A1 9A76
-9A77 9A77 EC89A2 9A77
-9A78 9A78 EC89A3 9A78
-9A79 9A79 EC89A4 9A79
-9A7A 9A7A EC89A6 9A7A
-9A81 9A81 EC89A7 9A81
-9A82 9A82 EC89A8 9A82
-9A83 9A83 EC89A9 9A83
-9A84 9A84 EC89AA 9A84
-9A85 9A85 EC89AB 9A85
-9A86 9A86 EC89AE 9A86
-9A87 9A87 EC89AF 9A87
-9A88 9A88 EC89B1 9A88
-9A89 9A89 EC89B2 9A89
-9A8A 9A8A EC89B3 9A8A
-9A8B 9A8B EC89B5 9A8B
-9A8C 9A8C EC89B6 9A8C
-9A8D 9A8D EC89B7 9A8D
-9A8E 9A8E EC89B8 9A8E
-9A8F 9A8F EC89B9 9A8F
-9A90 9A90 EC89BA 9A90
-9A91 9A91 EC89BB 9A91
-9A92 9A92 EC89BE 9A92
-9A93 9A93 EC8A80 9A93
-9A94 9A94 EC8A82 9A94
-9A95 9A95 EC8A83 9A95
-9A96 9A96 EC8A84 9A96
-9A97 9A97 EC8A85 9A97
-9A98 9A98 EC8A86 9A98
-9A99 9A99 EC8A87 9A99
-9A9A 9A9A EC8A8A 9A9A
-9A9B 9A9B EC8A8B 9A9B
-9A9C 9A9C EC8A8C 9A9C
-9A9D 9A9D EC8A8D 9A9D
-9A9E 9A9E EC8A8E 9A9E
-9A9F 9A9F EC8A8F 9A9F
-9AA0 9AA0 EC8A91 9AA0
-9AA1 9AA1 EC8A92 9AA1
-9AA2 9AA2 EC8A93 9AA2
-9AA3 9AA3 EC8A94 9AA3
-9AA4 9AA4 EC8A95 9AA4
-9AA5 9AA5 EC8A96 9AA5
-9AA6 9AA6 EC8A97 9AA6
-9AA7 9AA7 EC8A99 9AA7
-9AA8 9AA8 EC8A9A 9AA8
-9AA9 9AA9 EC8A9C 9AA9
-9AAA 9AAA EC8A9E 9AAA
-9AAB 9AAB EC8A9F 9AAB
-9AAC 9AAC EC8AA0 9AAC
-9AAD 9AAD EC8AA1 9AAD
-9AAE 9AAE EC8AA2 9AAE
-9AAF 9AAF EC8AA3 9AAF
-9AB0 9AB0 EC8AA6 9AB0
-9AB1 9AB1 EC8AA7 9AB1
-9AB2 9AB2 EC8AA9 9AB2
-9AB3 9AB3 EC8AAA 9AB3
-9AB4 9AB4 EC8AAB 9AB4
-9AB5 9AB5 EC8AAE 9AB5
-9AB6 9AB6 EC8AAF 9AB6
-9AB7 9AB7 EC8AB0 9AB7
-9AB8 9AB8 EC8AB1 9AB8
-9AB9 9AB9 EC8AB2 9AB9
-9ABA 9ABA EC8AB3 9ABA
-9ABB 9ABB EC8AB6 9ABB
-9ABC 9ABC EC8AB8 9ABC
-9ABD 9ABD EC8ABA 9ABD
-9ABE 9ABE EC8ABB 9ABE
-9ABF 9ABF EC8ABC 9ABF
-9AC0 9AC0 EC8ABD 9AC0
-9AC1 9AC1 EC8ABE 9AC1
-9AC2 9AC2 EC8ABF 9AC2
-9AC3 9AC3 EC8B80 9AC3
-9AC4 9AC4 EC8B81 9AC4
-9AC5 9AC5 EC8B82 9AC5
-9AC6 9AC6 EC8B83 9AC6
-9AC7 9AC7 EC8B84 9AC7
-9AC8 9AC8 EC8B85 9AC8
-9AC9 9AC9 EC8B86 9AC9
-9ACA 9ACA EC8B87 9ACA
-9ACB 9ACB EC8B88 9ACB
-9ACC 9ACC EC8B89 9ACC
-9ACD 9ACD EC8B8A 9ACD
-9ACE 9ACE EC8B8B 9ACE
-9ACF 9ACF EC8B8C 9ACF
-9AD0 9AD0 EC8B8D 9AD0
-9AD1 9AD1 EC8B8E 9AD1
-9AD2 9AD2 EC8B8F 9AD2
-9AD3 9AD3 EC8B90 9AD3
-9AD4 9AD4 EC8B91 9AD4
-9AD5 9AD5 EC8B92 9AD5
-9AD6 9AD6 EC8B93 9AD6
-9AD7 9AD7 EC8B94 9AD7
-9AD8 9AD8 EC8B95 9AD8
-9AD9 9AD9 EC8B96 9AD9
-9ADA 9ADA EC8B97 9ADA
-9ADB 9ADB EC8B98 9ADB
-9ADC 9ADC EC8B99 9ADC
-9ADD 9ADD EC8B9A 9ADD
-9ADE 9ADE EC8B9B 9ADE
-9ADF 9ADF EC8B9E 9ADF
-9AE0 9AE0 EC8B9F 9AE0
-9AE1 9AE1 EC8BA1 9AE1
-9AE2 9AE2 EC8BA2 9AE2
-9AE3 9AE3 EC8BA5 9AE3
-9AE4 9AE4 EC8BA6 9AE4
-9AE5 9AE5 EC8BA7 9AE5
-9AE6 9AE6 EC8BA8 9AE6
-9AE7 9AE7 EC8BA9 9AE7
-9AE8 9AE8 EC8BAA 9AE8
-9AE9 9AE9 EC8BAE 9AE9
-9AEA 9AEA EC8BB0 9AEA
-9AEB 9AEB EC8BB2 9AEB
-9AEC 9AEC EC8BB3 9AEC
-9AED 9AED EC8BB4 9AED
-9AEE 9AEE EC8BB5 9AEE
-9AEF 9AEF EC8BB7 9AEF
-9AF0 9AF0 EC8BBA 9AF0
-9AF1 9AF1 EC8BBD 9AF1
-9AF2 9AF2 EC8BBE 9AF2
-9AF3 9AF3 EC8BBF 9AF3
-9AF4 9AF4 EC8C81 9AF4
-9AF5 9AF5 EC8C82 9AF5
-9AF6 9AF6 EC8C83 9AF6
-9AF7 9AF7 EC8C84 9AF7
-9AF8 9AF8 EC8C85 9AF8
-9AF9 9AF9 EC8C86 9AF9
-9AFA 9AFA EC8C87 9AFA
-9AFB 9AFB EC8C8A 9AFB
-9AFC 9AFC EC8C8B 9AFC
-9AFD 9AFD EC8C8E 9AFD
-9AFE 9AFE EC8C8F 9AFE
-9B41 9B41 EC8C90 9B41
-9B42 9B42 EC8C91 9B42
-9B43 9B43 EC8C92 9B43
-9B44 9B44 EC8C96 9B44
-9B45 9B45 EC8C97 9B45
-9B46 9B46 EC8C99 9B46
-9B47 9B47 EC8C9A 9B47
-9B48 9B48 EC8C9B 9B48
-9B49 9B49 EC8C9D 9B49
-9B4A 9B4A EC8C9E 9B4A
-9B4B 9B4B EC8C9F 9B4B
-9B4C 9B4C EC8CA0 9B4C
-9B4D 9B4D EC8CA1 9B4D
-9B4E 9B4E EC8CA2 9B4E
-9B4F 9B4F EC8CA3 9B4F
-9B50 9B50 EC8CA6 9B50
-9B51 9B51 EC8CA7 9B51
-9B52 9B52 EC8CAA 9B52
-9B53 9B53 EC8CAB 9B53
-9B54 9B54 EC8CAC 9B54
-9B55 9B55 EC8CAD 9B55
-9B56 9B56 EC8CAE 9B56
-9B57 9B57 EC8CAF 9B57
-9B58 9B58 EC8CB0 9B58
-9B59 9B59 EC8CB1 9B59
-9B5A 9B5A EC8CB2 9B5A
-9B61 9B61 EC8CB3 9B61
-9B62 9B62 EC8CB4 9B62
-9B63 9B63 EC8CB5 9B63
-9B64 9B64 EC8CB6 9B64
-9B65 9B65 EC8CB7 9B65
-9B66 9B66 EC8CB8 9B66
-9B67 9B67 EC8CB9 9B67
-9B68 9B68 EC8CBA 9B68
-9B69 9B69 EC8CBB 9B69
-9B6A 9B6A EC8CBC 9B6A
-9B6B 9B6B EC8CBD 9B6B
-9B6C 9B6C EC8CBE 9B6C
-9B6D 9B6D EC8CBF 9B6D
-9B6E 9B6E EC8D80 9B6E
-9B6F 9B6F EC8D81 9B6F
-9B70 9B70 EC8D82 9B70
-9B71 9B71 EC8D83 9B71
-9B72 9B72 EC8D84 9B72
-9B73 9B73 EC8D86 9B73
-9B74 9B74 EC8D87 9B74
-9B75 9B75 EC8D88 9B75
-9B76 9B76 EC8D89 9B76
-9B77 9B77 EC8D8A 9B77
-9B78 9B78 EC8D8B 9B78
-9B79 9B79 EC8D8C 9B79
-9B7A 9B7A EC8D8D 9B7A
-9B81 9B81 EC8D8E 9B81
-9B82 9B82 EC8D8F 9B82
-9B83 9B83 EC8D90 9B83
-9B84 9B84 EC8D91 9B84
-9B85 9B85 EC8D92 9B85
-9B86 9B86 EC8D93 9B86
-9B87 9B87 EC8D94 9B87
-9B88 9B88 EC8D95 9B88
-9B89 9B89 EC8D96 9B89
-9B8A 9B8A EC8D97 9B8A
-9B8B 9B8B EC8D98 9B8B
-9B8C 9B8C EC8D99 9B8C
-9B8D 9B8D EC8D9A 9B8D
-9B8E 9B8E EC8D9B 9B8E
-9B8F 9B8F EC8D9C 9B8F
-9B90 9B90 EC8D9D 9B90
-9B91 9B91 EC8D9E 9B91
-9B92 9B92 EC8D9F 9B92
-9B93 9B93 EC8DA0 9B93
-9B94 9B94 EC8DA1 9B94
-9B95 9B95 EC8DA2 9B95
-9B96 9B96 EC8DA3 9B96
-9B97 9B97 EC8DA4 9B97
-9B98 9B98 EC8DA5 9B98
-9B99 9B99 EC8DA6 9B99
-9B9A 9B9A EC8DA7 9B9A
-9B9B 9B9B EC8DAA 9B9B
-9B9C 9B9C EC8DAB 9B9C
-9B9D 9B9D EC8DAD 9B9D
-9B9E 9B9E EC8DAE 9B9E
-9B9F 9B9F EC8DAF 9B9F
-9BA0 9BA0 EC8DB1 9BA0
-9BA1 9BA1 EC8DB3 9BA1
-9BA2 9BA2 EC8DB4 9BA2
-9BA3 9BA3 EC8DB5 9BA3
-9BA4 9BA4 EC8DB6 9BA4
-9BA5 9BA5 EC8DB7 9BA5
-9BA6 9BA6 EC8DBA 9BA6
-9BA7 9BA7 EC8DBB 9BA7
-9BA8 9BA8 EC8DBE 9BA8
-9BA9 9BA9 EC8DBF 9BA9
-9BAA 9BAA EC8E80 9BAA
-9BAB 9BAB EC8E81 9BAB
-9BAC 9BAC EC8E82 9BAC
-9BAD 9BAD EC8E83 9BAD
-9BAE 9BAE EC8E85 9BAE
-9BAF 9BAF EC8E86 9BAF
-9BB0 9BB0 EC8E87 9BB0
-9BB1 9BB1 EC8E89 9BB1
-9BB2 9BB2 EC8E8A 9BB2
-9BB3 9BB3 EC8E8B 9BB3
-9BB4 9BB4 EC8E8D 9BB4
-9BB5 9BB5 EC8E8E 9BB5
-9BB6 9BB6 EC8E8F 9BB6
-9BB7 9BB7 EC8E90 9BB7
-9BB8 9BB8 EC8E91 9BB8
-9BB9 9BB9 EC8E92 9BB9
-9BBA 9BBA EC8E93 9BBA
-9BBB 9BBB EC8E94 9BBB
-9BBC 9BBC EC8E95 9BBC
-9BBD 9BBD EC8E96 9BBD
-9BBE 9BBE EC8E97 9BBE
-9BBF 9BBF EC8E98 9BBF
-9BC0 9BC0 EC8E99 9BC0
-9BC1 9BC1 EC8E9A 9BC1
-9BC2 9BC2 EC8E9B 9BC2
-9BC3 9BC3 EC8E9C 9BC3
-9BC4 9BC4 EC8E9D 9BC4
-9BC5 9BC5 EC8E9E 9BC5
-9BC6 9BC6 EC8E9F 9BC6
-9BC7 9BC7 EC8EA0 9BC7
-9BC8 9BC8 EC8EA1 9BC8
-9BC9 9BC9 EC8EA2 9BC9
-9BCA 9BCA EC8EA3 9BCA
-9BCB 9BCB EC8EA4 9BCB
-9BCC 9BCC EC8EA5 9BCC
-9BCD 9BCD EC8EA6 9BCD
-9BCE 9BCE EC8EA7 9BCE
-9BCF 9BCF EC8EA8 9BCF
-9BD0 9BD0 EC8EA9 9BD0
-9BD1 9BD1 EC8EAA 9BD1
-9BD2 9BD2 EC8EAB 9BD2
-9BD3 9BD3 EC8EAC 9BD3
-9BD4 9BD4 EC8EAD 9BD4
-9BD5 9BD5 EC8EAE 9BD5
-9BD6 9BD6 EC8EAF 9BD6
-9BD7 9BD7 EC8EB0 9BD7
-9BD8 9BD8 EC8EB1 9BD8
-9BD9 9BD9 EC8EB2 9BD9
-9BDA 9BDA EC8EB3 9BDA
-9BDB 9BDB EC8EB4 9BDB
-9BDC 9BDC EC8EB5 9BDC
-9BDD 9BDD EC8EB6 9BDD
-9BDE 9BDE EC8EB7 9BDE
-9BDF 9BDF EC8EB8 9BDF
-9BE0 9BE0 EC8EB9 9BE0
-9BE1 9BE1 EC8EBA 9BE1
-9BE2 9BE2 EC8EBB 9BE2
-9BE3 9BE3 EC8EBC 9BE3
-9BE4 9BE4 EC8EBD 9BE4
-9BE5 9BE5 EC8EBE 9BE5
-9BE6 9BE6 EC8EBF 9BE6
-9BE7 9BE7 EC8F81 9BE7
-9BE8 9BE8 EC8F82 9BE8
-9BE9 9BE9 EC8F83 9BE9
-9BEA 9BEA EC8F84 9BEA
-9BEB 9BEB EC8F85 9BEB
-9BEC 9BEC EC8F86 9BEC
-9BED 9BED EC8F87 9BED
-9BEE 9BEE EC8F88 9BEE
-9BEF 9BEF EC8F89 9BEF
-9BF0 9BF0 EC8F8A 9BF0
-9BF1 9BF1 EC8F8B 9BF1
-9BF2 9BF2 EC8F8C 9BF2
-9BF3 9BF3 EC8F8D 9BF3
-9BF4 9BF4 EC8F8E 9BF4
-9BF5 9BF5 EC8F8F 9BF5
-9BF6 9BF6 EC8F90 9BF6
-9BF7 9BF7 EC8F91 9BF7
-9BF8 9BF8 EC8F92 9BF8
-9BF9 9BF9 EC8F93 9BF9
-9BFA 9BFA EC8F94 9BFA
-9BFB 9BFB EC8F95 9BFB
-9BFC 9BFC EC8F96 9BFC
-9BFD 9BFD EC8F97 9BFD
-9BFE 9BFE EC8F9A 9BFE
-9C41 9C41 EC8F9B 9C41
-9C42 9C42 EC8F9D 9C42
-9C43 9C43 EC8F9E 9C43
-9C44 9C44 EC8FA1 9C44
-9C45 9C45 EC8FA3 9C45
-9C46 9C46 EC8FA4 9C46
-9C47 9C47 EC8FA5 9C47
-9C48 9C48 EC8FA6 9C48
-9C49 9C49 EC8FA7 9C49
-9C4A 9C4A EC8FAA 9C4A
-9C4B 9C4B EC8FAB 9C4B
-9C4C 9C4C EC8FAC 9C4C
-9C4D 9C4D EC8FAE 9C4D
-9C4E 9C4E EC8FAF 9C4E
-9C4F 9C4F EC8FB0 9C4F
-9C50 9C50 EC8FB1 9C50
-9C51 9C51 EC8FB2 9C51
-9C52 9C52 EC8FB3 9C52
-9C53 9C53 EC8FB6 9C53
-9C54 9C54 EC8FB7 9C54
-9C55 9C55 EC8FB9 9C55
-9C56 9C56 EC8FBA 9C56
-9C57 9C57 EC8FBB 9C57
-9C58 9C58 EC8FBC 9C58
-9C59 9C59 EC8FBD 9C59
-9C5A 9C5A EC8FBE 9C5A
-9C61 9C61 EC8FBF 9C61
-9C62 9C62 EC9080 9C62
-9C63 9C63 EC9081 9C63
-9C64 9C64 EC9082 9C64
-9C65 9C65 EC9083 9C65
-9C66 9C66 EC9084 9C66
-9C67 9C67 EC9085 9C67
-9C68 9C68 EC9086 9C68
-9C69 9C69 EC9087 9C69
-9C6A 9C6A EC9089 9C6A
-9C6B 9C6B EC908A 9C6B
-9C6C 9C6C EC908B 9C6C
-9C6D 9C6D EC908C 9C6D
-9C6E 9C6E EC908D 9C6E
-9C6F 9C6F EC908E 9C6F
-9C70 9C70 EC908F 9C70
-9C71 9C71 EC9091 9C71
-9C72 9C72 EC9092 9C72
-9C73 9C73 EC9093 9C73
-9C74 9C74 EC9094 9C74
-9C75 9C75 EC9095 9C75
-9C76 9C76 EC9096 9C76
-9C77 9C77 EC9097 9C77
-9C78 9C78 EC9098 9C78
-9C79 9C79 EC9099 9C79
-9C7A 9C7A EC909A 9C7A
-9C81 9C81 EC909B 9C81
-9C82 9C82 EC909C 9C82
-9C83 9C83 EC909D 9C83
-9C84 9C84 EC909E 9C84
-9C85 9C85 EC909F 9C85
-9C86 9C86 EC90A0 9C86
-9C87 9C87 EC90A1 9C87
-9C88 9C88 EC90A2 9C88
-9C89 9C89 EC90A3 9C89
-9C8A 9C8A EC90A5 9C8A
-9C8B 9C8B EC90A6 9C8B
-9C8C 9C8C EC90A7 9C8C
-9C8D 9C8D EC90A8 9C8D
-9C8E 9C8E EC90A9 9C8E
-9C8F 9C8F EC90AA 9C8F
-9C90 9C90 EC90AB 9C90
-9C91 9C91 EC90AD 9C91
-9C92 9C92 EC90AE 9C92
-9C93 9C93 EC90AF 9C93
-9C94 9C94 EC90B1 9C94
-9C95 9C95 EC90B2 9C95
-9C96 9C96 EC90B3 9C96
-9C97 9C97 EC90B5 9C97
-9C98 9C98 EC90B6 9C98
-9C99 9C99 EC90B7 9C99
-9C9A 9C9A EC90B8 9C9A
-9C9B 9C9B EC90B9 9C9B
-9C9C 9C9C EC90BA 9C9C
-9C9D 9C9D EC90BB 9C9D
-9C9E 9C9E EC90BE 9C9E
-9C9F 9C9F EC90BF 9C9F
-9CA0 9CA0 EC9180 9CA0
-9CA1 9CA1 EC9181 9CA1
-9CA2 9CA2 EC9182 9CA2
-9CA3 9CA3 EC9183 9CA3
-9CA4 9CA4 EC9184 9CA4
-9CA5 9CA5 EC9185 9CA5
-9CA6 9CA6 EC9186 9CA6
-9CA7 9CA7 EC9187 9CA7
-9CA8 9CA8 EC9189 9CA8
-9CA9 9CA9 EC918A 9CA9
-9CAA 9CAA EC918B 9CAA
-9CAB 9CAB EC918C 9CAB
-9CAC 9CAC EC918D 9CAC
-9CAD 9CAD EC918E 9CAD
-9CAE 9CAE EC918F 9CAE
-9CAF 9CAF EC9190 9CAF
-9CB0 9CB0 EC9191 9CB0
-9CB1 9CB1 EC9192 9CB1
-9CB2 9CB2 EC9193 9CB2
-9CB3 9CB3 EC9194 9CB3
-9CB4 9CB4 EC9195 9CB4
-9CB5 9CB5 EC9196 9CB5
-9CB6 9CB6 EC9197 9CB6
-9CB7 9CB7 EC9198 9CB7
-9CB8 9CB8 EC9199 9CB8
-9CB9 9CB9 EC919A 9CB9
-9CBA 9CBA EC919B 9CBA
-9CBB 9CBB EC919C 9CBB
-9CBC 9CBC EC919D 9CBC
-9CBD 9CBD EC919E 9CBD
-9CBE 9CBE EC919F 9CBE
-9CBF 9CBF EC91A0 9CBF
-9CC0 9CC0 EC91A1 9CC0
-9CC1 9CC1 EC91A2 9CC1
-9CC2 9CC2 EC91A3 9CC2
-9CC3 9CC3 EC91A6 9CC3
-9CC4 9CC4 EC91A7 9CC4
-9CC5 9CC5 EC91A9 9CC5
-9CC6 9CC6 EC91AA 9CC6
-9CC7 9CC7 EC91AB 9CC7
-9CC8 9CC8 EC91AD 9CC8
-9CC9 9CC9 EC91AE 9CC9
-9CCA 9CCA EC91AF 9CCA
-9CCB 9CCB EC91B0 9CCB
-9CCC 9CCC EC91B1 9CCC
-9CCD 9CCD EC91B2 9CCD
-9CCE 9CCE EC91B3 9CCE
-9CCF 9CCF EC91B6 9CCF
-9CD0 9CD0 EC91B7 9CD0
-9CD1 9CD1 EC91B8 9CD1
-9CD2 9CD2 EC91BA 9CD2
-9CD3 9CD3 EC91BB 9CD3
-9CD4 9CD4 EC91BC 9CD4
-9CD5 9CD5 EC91BD 9CD5
-9CD6 9CD6 EC91BE 9CD6
-9CD7 9CD7 EC91BF 9CD7
-9CD8 9CD8 EC9281 9CD8
-9CD9 9CD9 EC9282 9CD9
-9CDA 9CDA EC9283 9CDA
-9CDB 9CDB EC9284 9CDB
-9CDC 9CDC EC9285 9CDC
-9CDD 9CDD EC9286 9CDD
-9CDE 9CDE EC9287 9CDE
-9CDF 9CDF EC9288 9CDF
-9CE0 9CE0 EC9289 9CE0
-9CE1 9CE1 EC928A 9CE1
-9CE2 9CE2 EC928B 9CE2
-9CE3 9CE3 EC928C 9CE3
-9CE4 9CE4 EC928D 9CE4
-9CE5 9CE5 EC928E 9CE5
-9CE6 9CE6 EC928F 9CE6
-9CE7 9CE7 EC9290 9CE7
-9CE8 9CE8 EC9291 9CE8
-9CE9 9CE9 EC9292 9CE9
-9CEA 9CEA EC9293 9CEA
-9CEB 9CEB EC9295 9CEB
-9CEC 9CEC EC9296 9CEC
-9CED 9CED EC9297 9CED
-9CEE 9CEE EC9298 9CEE
-9CEF 9CEF EC9299 9CEF
-9CF0 9CF0 EC929A 9CF0
-9CF1 9CF1 EC929B 9CF1
-9CF2 9CF2 EC929D 9CF2
-9CF3 9CF3 EC929E 9CF3
-9CF4 9CF4 EC929F 9CF4
-9CF5 9CF5 EC92A0 9CF5
-9CF6 9CF6 EC92A1 9CF6
-9CF7 9CF7 EC92A2 9CF7
-9CF8 9CF8 EC92A3 9CF8
-9CF9 9CF9 EC92A4 9CF9
-9CFA 9CFA EC92A5 9CFA
-9CFB 9CFB EC92A6 9CFB
-9CFC 9CFC EC92A7 9CFC
-9CFD 9CFD EC92A8 9CFD
-9CFE 9CFE EC92A9 9CFE
-9D41 9D41 EC92AA 9D41
-9D42 9D42 EC92AB 9D42
-9D43 9D43 EC92AC 9D43
-9D44 9D44 EC92AD 9D44
-9D45 9D45 EC92AE 9D45
-9D46 9D46 EC92AF 9D46
-9D47 9D47 EC92B0 9D47
-9D48 9D48 EC92B1 9D48
-9D49 9D49 EC92B2 9D49
-9D4A 9D4A EC92B3 9D4A
-9D4B 9D4B EC92B4 9D4B
-9D4C 9D4C EC92B5 9D4C
-9D4D 9D4D EC92B6 9D4D
-9D4E 9D4E EC92B7 9D4E
-9D4F 9D4F EC92B9 9D4F
-9D50 9D50 EC92BA 9D50
-9D51 9D51 EC92BB 9D51
-9D52 9D52 EC92BD 9D52
-9D53 9D53 EC92BE 9D53
-9D54 9D54 EC92BF 9D54
-9D55 9D55 EC9380 9D55
-9D56 9D56 EC9381 9D56
-9D57 9D57 EC9382 9D57
-9D58 9D58 EC9383 9D58
-9D59 9D59 EC9384 9D59
-9D5A 9D5A EC9385 9D5A
-9D61 9D61 EC9386 9D61
-9D62 9D62 EC9387 9D62
-9D63 9D63 EC9388 9D63
-9D64 9D64 EC9389 9D64
-9D65 9D65 EC938A 9D65
-9D66 9D66 EC938B 9D66
-9D67 9D67 EC938C 9D67
-9D68 9D68 EC938D 9D68
-9D69 9D69 EC938E 9D69
-9D6A 9D6A EC938F 9D6A
-9D6B 9D6B EC9390 9D6B
-9D6C 9D6C EC9391 9D6C
-9D6D 9D6D EC9392 9D6D
-9D6E 9D6E EC9393 9D6E
-9D6F 9D6F EC9394 9D6F
-9D70 9D70 EC9395 9D70
-9D71 9D71 EC9396 9D71
-9D72 9D72 EC9397 9D72
-9D73 9D73 EC9398 9D73
-9D74 9D74 EC9399 9D74
-9D75 9D75 EC939A 9D75
-9D76 9D76 EC939B 9D76
-9D77 9D77 EC939C 9D77
-9D78 9D78 EC939D 9D78
-9D79 9D79 EC939E 9D79
-9D7A 9D7A EC939F 9D7A
-9D81 9D81 EC93A0 9D81
-9D82 9D82 EC93A1 9D82
-9D83 9D83 EC93A2 9D83
-9D84 9D84 EC93A3 9D84
-9D85 9D85 EC93A4 9D85
-9D86 9D86 EC93A5 9D86
-9D87 9D87 EC93A6 9D87
-9D88 9D88 EC93A7 9D88
-9D89 9D89 EC93A8 9D89
-9D8A 9D8A EC93AA 9D8A
-9D8B 9D8B EC93AB 9D8B
-9D8C 9D8C EC93AC 9D8C
-9D8D 9D8D EC93AD 9D8D
-9D8E 9D8E EC93AE 9D8E
-9D8F 9D8F EC93AF 9D8F
-9D90 9D90 EC93B2 9D90
-9D91 9D91 EC93B3 9D91
-9D92 9D92 EC93B5 9D92
-9D93 9D93 EC93B6 9D93
-9D94 9D94 EC93B7 9D94
-9D95 9D95 EC93B9 9D95
-9D96 9D96 EC93BB 9D96
-9D97 9D97 EC93BC 9D97
-9D98 9D98 EC93BD 9D98
-9D99 9D99 EC93BE 9D99
-9D9A 9D9A EC9482 9D9A
-9D9B 9D9B EC9483 9D9B
-9D9C 9D9C EC9484 9D9C
-9D9D 9D9D EC9485 9D9D
-9D9E 9D9E EC9486 9D9E
-9D9F 9D9F EC9487 9D9F
-9DA0 9DA0 EC9488 9DA0
-9DA1 9DA1 EC9489 9DA1
-9DA2 9DA2 EC948A 9DA2
-9DA3 9DA3 EC948B 9DA3
-9DA4 9DA4 EC948D 9DA4
-9DA5 9DA5 EC948E 9DA5
-9DA6 9DA6 EC948F 9DA6
-9DA7 9DA7 EC9491 9DA7
-9DA8 9DA8 EC9492 9DA8
-9DA9 9DA9 EC9493 9DA9
-9DAA 9DAA EC9495 9DAA
-9DAB 9DAB EC9496 9DAB
-9DAC 9DAC EC9497 9DAC
-9DAD 9DAD EC9498 9DAD
-9DAE 9DAE EC9499 9DAE
-9DAF 9DAF EC949A 9DAF
-9DB0 9DB0 EC949B 9DB0
-9DB1 9DB1 EC949D 9DB1
-9DB2 9DB2 EC949E 9DB2
-9DB3 9DB3 EC949F 9DB3
-9DB4 9DB4 EC94A0 9DB4
-9DB5 9DB5 EC94A1 9DB5
-9DB6 9DB6 EC94A2 9DB6
-9DB7 9DB7 EC94A3 9DB7
-9DB8 9DB8 EC94A4 9DB8
-9DB9 9DB9 EC94A5 9DB9
-9DBA 9DBA EC94A6 9DBA
-9DBB 9DBB EC94A7 9DBB
-9DBC 9DBC EC94AA 9DBC
-9DBD 9DBD EC94AB 9DBD
-9DBE 9DBE EC94AD 9DBE
-9DBF 9DBF EC94AE 9DBF
-9DC0 9DC0 EC94AF 9DC0
-9DC1 9DC1 EC94B1 9DC1
-9DC2 9DC2 EC94B2 9DC2
-9DC3 9DC3 EC94B3 9DC3
-9DC4 9DC4 EC94B4 9DC4
-9DC5 9DC5 EC94B5 9DC5
-9DC6 9DC6 EC94B6 9DC6
-9DC7 9DC7 EC94B7 9DC7
-9DC8 9DC8 EC94BA 9DC8
-9DC9 9DC9 EC94BC 9DC9
-9DCA 9DCA EC94BE 9DCA
-9DCB 9DCB EC94BF 9DCB
-9DCC 9DCC EC9580 9DCC
-9DCD 9DCD EC9581 9DCD
-9DCE 9DCE EC9582 9DCE
-9DCF 9DCF EC9583 9DCF
-9DD0 9DD0 EC9586 9DD0
-9DD1 9DD1 EC9587 9DD1
-9DD2 9DD2 EC958B 9DD2
-9DD3 9DD3 EC958F 9DD3
-9DD4 9DD4 EC9590 9DD4
-9DD5 9DD5 EC9591 9DD5
-9DD6 9DD6 EC9592 9DD6
-9DD7 9DD7 EC9596 9DD7
-9DD8 9DD8 EC959A 9DD8
-9DD9 9DD9 EC959B 9DD9
-9DDA 9DDA EC959C 9DDA
-9DDB 9DDB EC959F 9DDB
-9DDC 9DDC EC95A2 9DDC
-9DDD 9DDD EC95A3 9DDD
-9DDE 9DDE EC95A5 9DDE
-9DDF 9DDF EC95A6 9DDF
-9DE0 9DE0 EC95A7 9DE0
-9DE1 9DE1 EC95A9 9DE1
-9DE2 9DE2 EC95AA 9DE2
-9DE3 9DE3 EC95AB 9DE3
-9DE4 9DE4 EC95AC 9DE4
-9DE5 9DE5 EC95AD 9DE5
-9DE6 9DE6 EC95AE 9DE6
-9DE7 9DE7 EC95AF 9DE7
-9DE8 9DE8 EC95B2 9DE8
-9DE9 9DE9 EC95B6 9DE9
-9DEA 9DEA EC95B7 9DEA
-9DEB 9DEB EC95B8 9DEB
-9DEC 9DEC EC95B9 9DEC
-9DED 9DED EC95BA 9DED
-9DEE 9DEE EC95BB 9DEE
-9DEF 9DEF EC95BE 9DEF
-9DF0 9DF0 EC95BF 9DF0
-9DF1 9DF1 EC9681 9DF1
-9DF2 9DF2 EC9682 9DF2
-9DF3 9DF3 EC9683 9DF3
-9DF4 9DF4 EC9685 9DF4
-9DF5 9DF5 EC9686 9DF5
-9DF6 9DF6 EC9688 9DF6
-9DF7 9DF7 EC9689 9DF7
-9DF8 9DF8 EC968A 9DF8
-9DF9 9DF9 EC968B 9DF9
-9DFA 9DFA EC968E 9DFA
-9DFB 9DFB EC9690 9DFB
-9DFC 9DFC EC9692 9DFC
-9DFD 9DFD EC9693 9DFD
-9DFE 9DFE EC9694 9DFE
-9E41 9E41 EC9696 9E41
-9E42 9E42 EC9699 9E42
-9E43 9E43 EC969A 9E43
-9E44 9E44 EC969B 9E44
-9E45 9E45 EC969D 9E45
-9E46 9E46 EC969E 9E46
-9E47 9E47 EC969F 9E47
-9E48 9E48 EC96A1 9E48
-9E49 9E49 EC96A2 9E49
-9E4A 9E4A EC96A3 9E4A
-9E4B 9E4B EC96A4 9E4B
-9E4C 9E4C EC96A5 9E4C
-9E4D 9E4D EC96A6 9E4D
-9E4E 9E4E EC96A7 9E4E
-9E4F 9E4F EC96A8 9E4F
-9E50 9E50 EC96AA 9E50
-9E51 9E51 EC96AB 9E51
-9E52 9E52 EC96AC 9E52
-9E53 9E53 EC96AD 9E53
-9E54 9E54 EC96AE 9E54
-9E55 9E55 EC96AF 9E55
-9E56 9E56 EC96B0 9E56
-9E57 9E57 EC96B1 9E57
-9E58 9E58 EC96B2 9E58
-9E59 9E59 EC96B3 9E59
-9E5A 9E5A EC96B6 9E5A
-9E61 9E61 EC96B7 9E61
-9E62 9E62 EC96BA 9E62
-9E63 9E63 EC96BF 9E63
-9E64 9E64 EC9780 9E64
-9E65 9E65 EC9781 9E65
-9E66 9E66 EC9782 9E66
-9E67 9E67 EC9783 9E67
-9E68 9E68 EC978B 9E68
-9E69 9E69 EC978D 9E69
-9E6A 9E6A EC978F 9E6A
-9E6B 9E6B EC9792 9E6B
-9E6C 9E6C EC9793 9E6C
-9E6D 9E6D EC9795 9E6D
-9E6E 9E6E EC9796 9E6E
-9E6F 9E6F EC9797 9E6F
-9E70 9E70 EC9799 9E70
-9E71 9E71 EC979A 9E71
-9E72 9E72 EC979B 9E72
-9E73 9E73 EC979C 9E73
-9E74 9E74 EC979D 9E74
-9E75 9E75 EC979E 9E75
-9E76 9E76 EC979F 9E76
-9E77 9E77 EC97A2 9E77
-9E78 9E78 EC97A4 9E78
-9E79 9E79 EC97A6 9E79
-9E7A 9E7A EC97A7 9E7A
-9E81 9E81 EC97A8 9E81
-9E82 9E82 EC97A9 9E82
-9E83 9E83 EC97AA 9E83
-9E84 9E84 EC97AB 9E84
-9E85 9E85 EC97AF 9E85
-9E86 9E86 EC97B1 9E86
-9E87 9E87 EC97B2 9E87
-9E88 9E88 EC97B3 9E88
-9E89 9E89 EC97B5 9E89
-9E8A 9E8A EC97B8 9E8A
-9E8B 9E8B EC97B9 9E8B
-9E8C 9E8C EC97BA 9E8C
-9E8D 9E8D EC97BB 9E8D
-9E8E 9E8E EC9882 9E8E
-9E8F 9E8F EC9883 9E8F
-9E90 9E90 EC9884 9E90
-9E91 9E91 EC9889 9E91
-9E92 9E92 EC988A 9E92
-9E93 9E93 EC988B 9E93
-9E94 9E94 EC988D 9E94
-9E95 9E95 EC988E 9E95
-9E96 9E96 EC988F 9E96
-9E97 9E97 EC9891 9E97
-9E98 9E98 EC9892 9E98
-9E99 9E99 EC9893 9E99
-9E9A 9E9A EC9894 9E9A
-9E9B 9E9B EC9895 9E9B
-9E9C 9E9C EC9896 9E9C
-9E9D 9E9D EC9897 9E9D
-9E9E 9E9E EC989A 9E9E
-9E9F 9E9F EC989D 9E9F
-9EA0 9EA0 EC989E 9EA0
-9EA1 9EA1 EC989F 9EA1
-9EA2 9EA2 EC98A0 9EA2
-9EA3 9EA3 EC98A1 9EA3
-9EA4 9EA4 EC98A2 9EA4
-9EA5 9EA5 EC98A3 9EA5
-9EA6 9EA6 EC98A6 9EA6
-9EA7 9EA7 EC98A7 9EA7
-9EA8 9EA8 EC98A9 9EA8
-9EA9 9EA9 EC98AA 9EA9
-9EAA 9EAA EC98AB 9EAA
-9EAB 9EAB EC98AF 9EAB
-9EAC 9EAC EC98B1 9EAC
-9EAD 9EAD EC98B2 9EAD
-9EAE 9EAE EC98B6 9EAE
-9EAF 9EAF EC98B8 9EAF
-9EB0 9EB0 EC98BA 9EB0
-9EB1 9EB1 EC98BC 9EB1
-9EB2 9EB2 EC98BD 9EB2
-9EB3 9EB3 EC98BE 9EB3
-9EB4 9EB4 EC98BF 9EB4
-9EB5 9EB5 EC9982 9EB5
-9EB6 9EB6 EC9983 9EB6
-9EB7 9EB7 EC9985 9EB7
-9EB8 9EB8 EC9986 9EB8
-9EB9 9EB9 EC9987 9EB9
-9EBA 9EBA EC9989 9EBA
-9EBB 9EBB EC998A 9EBB
-9EBC 9EBC EC998B 9EBC
-9EBD 9EBD EC998C 9EBD
-9EBE 9EBE EC998D 9EBE
-9EBF 9EBF EC998E 9EBF
-9EC0 9EC0 EC998F 9EC0
-9EC1 9EC1 EC9992 9EC1
-9EC2 9EC2 EC9996 9EC2
-9EC3 9EC3 EC9997 9EC3
-9EC4 9EC4 EC9998 9EC4
-9EC5 9EC5 EC9999 9EC5
-9EC6 9EC6 EC999A 9EC6
-9EC7 9EC7 EC999B 9EC7
-9EC8 9EC8 EC999E 9EC8
-9EC9 9EC9 EC999F 9EC9
-9ECA 9ECA EC99A1 9ECA
-9ECB 9ECB EC99A2 9ECB
-9ECC 9ECC EC99A3 9ECC
-9ECD 9ECD EC99A4 9ECD
-9ECE 9ECE EC99A5 9ECE
-9ECF 9ECF EC99A6 9ECF
-9ED0 9ED0 EC99A7 9ED0
-9ED1 9ED1 EC99A8 9ED1
-9ED2 9ED2 EC99A9 9ED2
-9ED3 9ED3 EC99AA 9ED3
-9ED4 9ED4 EC99AB 9ED4
-9ED5 9ED5 EC99AD 9ED5
-9ED6 9ED6 EC99AE 9ED6
-9ED7 9ED7 EC99B0 9ED7
-9ED8 9ED8 EC99B2 9ED8
-9ED9 9ED9 EC99B3 9ED9
-9EDA 9EDA EC99B4 9EDA
-9EDB 9EDB EC99B5 9EDB
-9EDC 9EDC EC99B6 9EDC
-9EDD 9EDD EC99B7 9EDD
-9EDE 9EDE EC99BA 9EDE
-9EDF 9EDF EC99BB 9EDF
-9EE0 9EE0 EC99BD 9EE0
-9EE1 9EE1 EC99BE 9EE1
-9EE2 9EE2 EC99BF 9EE2
-9EE3 9EE3 EC9A81 9EE3
-9EE4 9EE4 EC9A82 9EE4
-9EE5 9EE5 EC9A83 9EE5
-9EE6 9EE6 EC9A84 9EE6
-9EE7 9EE7 EC9A85 9EE7
-9EE8 9EE8 EC9A86 9EE8
-9EE9 9EE9 EC9A87 9EE9
-9EEA 9EEA EC9A8A 9EEA
-9EEB 9EEB EC9A8C 9EEB
-9EEC 9EEC EC9A8E 9EEC
-9EED 9EED EC9A8F 9EED
-9EEE 9EEE EC9A90 9EEE
-9EEF 9EEF EC9A91 9EEF
-9EF0 9EF0 EC9A92 9EF0
-9EF1 9EF1 EC9A93 9EF1
-9EF2 9EF2 EC9A96 9EF2
-9EF3 9EF3 EC9A97 9EF3
-9EF4 9EF4 EC9A99 9EF4
-9EF5 9EF5 EC9A9A 9EF5
-9EF6 9EF6 EC9A9B 9EF6
-9EF7 9EF7 EC9A9D 9EF7
-9EF8 9EF8 EC9A9E 9EF8
-9EF9 9EF9 EC9A9F 9EF9
-9EFA 9EFA EC9AA0 9EFA
-9EFB 9EFB EC9AA1 9EFB
-9EFC 9EFC EC9AA2 9EFC
-9EFD 9EFD EC9AA3 9EFD
-9EFE 9EFE EC9AA6 9EFE
-9F41 9F41 EC9AA8 9F41
-9F42 9F42 EC9AAA 9F42
-9F43 9F43 EC9AAB 9F43
-9F44 9F44 EC9AAC 9F44
-9F45 9F45 EC9AAD 9F45
-9F46 9F46 EC9AAE 9F46
-9F47 9F47 EC9AAF 9F47
-9F48 9F48 EC9AB2 9F48
-9F49 9F49 EC9AB3 9F49
-9F4A 9F4A EC9AB5 9F4A
-9F4B 9F4B EC9AB6 9F4B
-9F4C 9F4C EC9AB7 9F4C
-9F4D 9F4D EC9ABB 9F4D
-9F4E 9F4E EC9ABC 9F4E
-9F4F 9F4F EC9ABD 9F4F
-9F50 9F50 EC9ABE 9F50
-9F51 9F51 EC9ABF 9F51
-9F52 9F52 EC9B82 9F52
-9F53 9F53 EC9B84 9F53
-9F54 9F54 EC9B86 9F54
-9F55 9F55 EC9B87 9F55
-9F56 9F56 EC9B88 9F56
-9F57 9F57 EC9B89 9F57
-9F58 9F58 EC9B8A 9F58
-9F59 9F59 EC9B8B 9F59
-9F5A 9F5A EC9B8E 9F5A
-9F61 9F61 EC9B8F 9F61
-9F62 9F62 EC9B91 9F62
-9F63 9F63 EC9B92 9F63
-9F64 9F64 EC9B93 9F64
-9F65 9F65 EC9B95 9F65
-9F66 9F66 EC9B96 9F66
-9F67 9F67 EC9B97 9F67
-9F68 9F68 EC9B98 9F68
-9F69 9F69 EC9B99 9F69
-9F6A 9F6A EC9B9A 9F6A
-9F6B 9F6B EC9B9B 9F6B
-9F6C 9F6C EC9B9E 9F6C
-9F6D 9F6D EC9B9F 9F6D
-9F6E 9F6E EC9BA2 9F6E
-9F6F 9F6F EC9BA3 9F6F
-9F70 9F70 EC9BA4 9F70
-9F71 9F71 EC9BA5 9F71
-9F72 9F72 EC9BA6 9F72
-9F73 9F73 EC9BA7 9F73
-9F74 9F74 EC9BAA 9F74
-9F75 9F75 EC9BAB 9F75
-9F76 9F76 EC9BAD 9F76
-9F77 9F77 EC9BAE 9F77
-9F78 9F78 EC9BAF 9F78
-9F79 9F79 EC9BB1 9F79
-9F7A 9F7A EC9BB2 9F7A
-9F81 9F81 EC9BB3 9F81
-9F82 9F82 EC9BB4 9F82
-9F83 9F83 EC9BB5 9F83
-9F84 9F84 EC9BB6 9F84
-9F85 9F85 EC9BB7 9F85
-9F86 9F86 EC9BBA 9F86
-9F87 9F87 EC9BBB 9F87
-9F88 9F88 EC9BBC 9F88
-9F89 9F89 EC9BBE 9F89
-9F8A 9F8A EC9BBF 9F8A
-9F8B 9F8B EC9C80 9F8B
-9F8C 9F8C EC9C81 9F8C
-9F8D 9F8D EC9C82 9F8D
-9F8E 9F8E EC9C83 9F8E
-9F8F 9F8F EC9C86 9F8F
-9F90 9F90 EC9C87 9F90
-9F91 9F91 EC9C89 9F91
-9F92 9F92 EC9C8A 9F92
-9F93 9F93 EC9C8B 9F93
-9F94 9F94 EC9C8D 9F94
-9F95 9F95 EC9C8E 9F95
-9F96 9F96 EC9C8F 9F96
-9F97 9F97 EC9C90 9F97
-9F98 9F98 EC9C91 9F98
-9F99 9F99 EC9C92 9F99
-9F9A 9F9A EC9C93 9F9A
-9F9B 9F9B EC9C96 9F9B
-9F9C 9F9C EC9C98 9F9C
-9F9D 9F9D EC9C9A 9F9D
-9F9E 9F9E EC9C9B 9F9E
-9F9F 9F9F EC9C9C 9F9F
-9FA0 9FA0 EC9C9D 9FA0
-9FA1 9FA1 EC9C9E 9FA1
-9FA2 9FA2 EC9C9F 9FA2
-9FA3 9FA3 EC9CA2 9FA3
-9FA4 9FA4 EC9CA3 9FA4
-9FA5 9FA5 EC9CA5 9FA5
-9FA6 9FA6 EC9CA6 9FA6
-9FA7 9FA7 EC9CA7 9FA7
-9FA8 9FA8 EC9CA9 9FA8
-9FA9 9FA9 EC9CAA 9FA9
-9FAA 9FAA EC9CAB 9FAA
-9FAB 9FAB EC9CAC 9FAB
-9FAC 9FAC EC9CAD 9FAC
-9FAD 9FAD EC9CAE 9FAD
-9FAE 9FAE EC9CAF 9FAE
-9FAF 9FAF EC9CB2 9FAF
-9FB0 9FB0 EC9CB4 9FB0
-9FB1 9FB1 EC9CB6 9FB1
-9FB2 9FB2 EC9CB8 9FB2
-9FB3 9FB3 EC9CB9 9FB3
-9FB4 9FB4 EC9CBA 9FB4
-9FB5 9FB5 EC9CBB 9FB5
-9FB6 9FB6 EC9CBE 9FB6
-9FB7 9FB7 EC9CBF 9FB7
-9FB8 9FB8 EC9D81 9FB8
-9FB9 9FB9 EC9D82 9FB9
-9FBA 9FBA EC9D83 9FBA
-9FBB 9FBB EC9D85 9FBB
-9FBC 9FBC EC9D86 9FBC
-9FBD 9FBD EC9D87 9FBD
-9FBE 9FBE EC9D88 9FBE
-9FBF 9FBF EC9D89 9FBF
-9FC0 9FC0 EC9D8B 9FC0
-9FC1 9FC1 EC9D8E 9FC1
-9FC2 9FC2 EC9D90 9FC2
-9FC3 9FC3 EC9D99 9FC3
-9FC4 9FC4 EC9D9A 9FC4
-9FC5 9FC5 EC9D9B 9FC5
-9FC6 9FC6 EC9D9D 9FC6
-9FC7 9FC7 EC9D9E 9FC7
-9FC8 9FC8 EC9D9F 9FC8
-9FC9 9FC9 EC9DA1 9FC9
-9FCA 9FCA EC9DA2 9FCA
-9FCB 9FCB EC9DA3 9FCB
-9FCC 9FCC EC9DA4 9FCC
-9FCD 9FCD EC9DA5 9FCD
-9FCE 9FCE EC9DA6 9FCE
-9FCF 9FCF EC9DA7 9FCF
-9FD0 9FD0 EC9DA9 9FD0
-9FD1 9FD1 EC9DAA 9FD1
-9FD2 9FD2 EC9DAC 9FD2
-9FD3 9FD3 EC9DAD 9FD3
-9FD4 9FD4 EC9DAE 9FD4
-9FD5 9FD5 EC9DAF 9FD5
-9FD6 9FD6 EC9DB0 9FD6
-9FD7 9FD7 EC9DB1 9FD7
-9FD8 9FD8 EC9DB2 9FD8
-9FD9 9FD9 EC9DB3 9FD9
-9FDA 9FDA EC9DB6 9FDA
-9FDB 9FDB EC9DB7 9FDB
-9FDC 9FDC EC9DB9 9FDC
-9FDD 9FDD EC9DBA 9FDD
-9FDE 9FDE EC9DBB 9FDE
-9FDF 9FDF EC9DBF 9FDF
-9FE0 9FE0 EC9E80 9FE0
-9FE1 9FE1 EC9E81 9FE1
-9FE2 9FE2 EC9E82 9FE2
-9FE3 9FE3 EC9E86 9FE3
-9FE4 9FE4 EC9E8B 9FE4
-9FE5 9FE5 EC9E8C 9FE5
-9FE6 9FE6 EC9E8D 9FE6
-9FE7 9FE7 EC9E8F 9FE7
-9FE8 9FE8 EC9E92 9FE8
-9FE9 9FE9 EC9E93 9FE9
-9FEA 9FEA EC9E95 9FEA
-9FEB 9FEB EC9E99 9FEB
-9FEC 9FEC EC9E9B 9FEC
-9FED 9FED EC9E9C 9FED
-9FEE 9FEE EC9E9D 9FEE
-9FEF 9FEF EC9E9E 9FEF
-9FF0 9FF0 EC9E9F 9FF0
-9FF1 9FF1 EC9EA2 9FF1
-9FF2 9FF2 EC9EA7 9FF2
-9FF3 9FF3 EC9EA8 9FF3
-9FF4 9FF4 EC9EA9 9FF4
-9FF5 9FF5 EC9EAA 9FF5
-9FF6 9FF6 EC9EAB 9FF6
-9FF7 9FF7 EC9EAE 9FF7
-9FF8 9FF8 EC9EAF 9FF8
-9FF9 9FF9 EC9EB1 9FF9
-9FFA 9FFA EC9EB2 9FFA
-9FFB 9FFB EC9EB3 9FFB
-9FFC 9FFC EC9EB5 9FFC
-9FFD 9FFD EC9EB6 9FFD
-9FFE 9FFE EC9EB7 9FFE
-A041 A041 EC9EB8 A041
-A042 A042 EC9EB9 A042
-A043 A043 EC9EBA A043
-A044 A044 EC9EBB A044
-A045 A045 EC9EBE A045
-A046 A046 EC9F82 A046
-A047 A047 EC9F83 A047
-A048 A048 EC9F84 A048
-A049 A049 EC9F85 A049
-A04A A04A EC9F86 A04A
-A04B A04B EC9F87 A04B
-A04C A04C EC9F8A A04C
-A04D A04D EC9F8B A04D
-A04E A04E EC9F8D A04E
-A04F A04F EC9F8F A04F
-A050 A050 EC9F91 A050
-A051 A051 EC9F92 A051
-A052 A052 EC9F93 A052
-A053 A053 EC9F94 A053
-A054 A054 EC9F95 A054
-A055 A055 EC9F96 A055
-A056 A056 EC9F97 A056
-A057 A057 EC9F99 A057
-A058 A058 EC9F9A A058
-A059 A059 EC9F9B A059
-A05A A05A EC9F9C A05A
-A061 A061 EC9F9E A061
-A062 A062 EC9F9F A062
-A063 A063 EC9FA0 A063
-A064 A064 EC9FA1 A064
-A065 A065 EC9FA2 A065
-A066 A066 EC9FA3 A066
-A067 A067 EC9FA5 A067
-A068 A068 EC9FA6 A068
-A069 A069 EC9FA7 A069
-A06A A06A EC9FA9 A06A
-A06B A06B EC9FAA A06B
-A06C A06C EC9FAB A06C
-A06D A06D EC9FAD A06D
-A06E A06E EC9FAE A06E
-A06F A06F EC9FAF A06F
-A070 A070 EC9FB0 A070
-A071 A071 EC9FB1 A071
-A072 A072 EC9FB2 A072
-A073 A073 EC9FB3 A073
-A074 A074 EC9FB4 A074
-A075 A075 EC9FB5 A075
-A076 A076 EC9FB6 A076
-A077 A077 EC9FB7 A077
-A078 A078 EC9FB8 A078
-A079 A079 EC9FB9 A079
-A07A A07A EC9FBA A07A
-A081 A081 EC9FBB A081
-A082 A082 EC9FBC A082
-A083 A083 EC9FBD A083
-A084 A084 EC9FBE A084
-A085 A085 EC9FBF A085
-A086 A086 ECA082 A086
-A087 A087 ECA083 A087
-A088 A088 ECA085 A088
-A089 A089 ECA086 A089
-A08A A08A ECA087 A08A
-A08B A08B ECA089 A08B
-A08C A08C ECA08B A08C
-A08D A08D ECA08C A08D
-A08E A08E ECA08D A08E
-A08F A08F ECA08E A08F
-A090 A090 ECA08F A090
-A091 A091 ECA092 A091
-A092 A092 ECA094 A092
-A093 A093 ECA097 A093
-A094 A094 ECA098 A094
-A095 A095 ECA099 A095
-A096 A096 ECA09A A096
-A097 A097 ECA09B A097
-A098 A098 ECA09E A098
-A099 A099 ECA09F A099
-A09A A09A ECA0A1 A09A
-A09B A09B ECA0A2 A09B
-A09C A09C ECA0A3 A09C
-A09D A09D ECA0A5 A09D
-A09E A09E ECA0A6 A09E
-A09F A09F ECA0A7 A09F
-A0A0 A0A0 ECA0A8 A0A0
-A0A1 A0A1 ECA0A9 A0A1
-A0A2 A0A2 ECA0AA A0A2
-A0A3 A0A3 ECA0AB A0A3
-A0A4 A0A4 ECA0AE A0A4
-A0A5 A0A5 ECA0B0 A0A5
-A0A6 A0A6 ECA0B2 A0A6
-A0A7 A0A7 ECA0B3 A0A7
-A0A8 A0A8 ECA0B4 A0A8
-A0A9 A0A9 ECA0B5 A0A9
-A0AA A0AA ECA0B6 A0AA
-A0AB A0AB ECA0B7 A0AB
-A0AC A0AC ECA0B9 A0AC
-A0AD A0AD ECA0BA A0AD
-A0AE A0AE ECA0BB A0AE
-A0AF A0AF ECA0BD A0AF
-A0B0 A0B0 ECA0BE A0B0
-A0B1 A0B1 ECA0BF A0B1
-A0B2 A0B2 ECA181 A0B2
-A0B3 A0B3 ECA182 A0B3
-A0B4 A0B4 ECA183 A0B4
-A0B5 A0B5 ECA184 A0B5
-A0B6 A0B6 ECA185 A0B6
-A0B7 A0B7 ECA186 A0B7
-A0B8 A0B8 ECA187 A0B8
-A0B9 A0B9 ECA18A A0B9
-A0BA A0BA ECA18B A0BA
-A0BB A0BB ECA18E A0BB
-A0BC A0BC ECA18F A0BC
-A0BD A0BD ECA190 A0BD
-A0BE A0BE ECA191 A0BE
-A0BF A0BF ECA192 A0BF
-A0C0 A0C0 ECA193 A0C0
-A0C1 A0C1 ECA195 A0C1
-A0C2 A0C2 ECA196 A0C2
-A0C3 A0C3 ECA197 A0C3
-A0C4 A0C4 ECA198 A0C4
-A0C5 A0C5 ECA199 A0C5
-A0C6 A0C6 ECA19A A0C6
-A0C7 A0C7 ECA19B A0C7
-A0C8 A0C8 ECA19C A0C8
-A0C9 A0C9 ECA19D A0C9
-A0CA A0CA ECA19E A0CA
-A0CB A0CB ECA19F A0CB
-A0CC A0CC ECA1A0 A0CC
-A0CD A0CD ECA1A1 A0CD
-A0CE A0CE ECA1A2 A0CE
-A0CF A0CF ECA1A3 A0CF
-A0D0 A0D0 ECA1A4 A0D0
-A0D1 A0D1 ECA1A5 A0D1
-A0D2 A0D2 ECA1A6 A0D2
-A0D3 A0D3 ECA1A7 A0D3
-A0D4 A0D4 ECA1A8 A0D4
-A0D5 A0D5 ECA1A9 A0D5
-A0D6 A0D6 ECA1AA A0D6
-A0D7 A0D7 ECA1AB A0D7
-A0D8 A0D8 ECA1AC A0D8
-A0D9 A0D9 ECA1AD A0D9
-A0DA A0DA ECA1AE A0DA
-A0DB A0DB ECA1AF A0DB
-A0DC A0DC ECA1B2 A0DC
-A0DD A0DD ECA1B3 A0DD
-A0DE A0DE ECA1B5 A0DE
-A0DF A0DF ECA1B6 A0DF
-A0E0 A0E0 ECA1B7 A0E0
-A0E1 A0E1 ECA1B9 A0E1
-A0E2 A0E2 ECA1BB A0E2
-A0E3 A0E3 ECA1BC A0E3
-A0E4 A0E4 ECA1BD A0E4
-A0E5 A0E5 ECA1BE A0E5
-A0E6 A0E6 ECA1BF A0E6
-A0E7 A0E7 ECA282 A0E7
-A0E8 A0E8 ECA284 A0E8
-A0E9 A0E9 ECA288 A0E9
-A0EA A0EA ECA289 A0EA
-A0EB A0EB ECA28A A0EB
-A0EC A0EC ECA28E A0EC
-A0ED A0ED ECA28F A0ED
-A0EE A0EE ECA290 A0EE
-A0EF A0EF ECA291 A0EF
-A0F0 A0F0 ECA292 A0F0
-A0F1 A0F1 ECA293 A0F1
-A0F2 A0F2 ECA295 A0F2
-A0F3 A0F3 ECA296 A0F3
-A0F4 A0F4 ECA297 A0F4
-A0F5 A0F5 ECA298 A0F5
-A0F6 A0F6 ECA299 A0F6
-A0F7 A0F7 ECA29A A0F7
-A0F8 A0F8 ECA29B A0F8
-A0F9 A0F9 ECA29C A0F9
-A0FA A0FA ECA29E A0FA
-A0FB A0FB ECA2A0 A0FB
-A0FC A0FC ECA2A2 A0FC
-A0FD A0FD ECA2A3 A0FD
-A0FE A0FE ECA2A4 A0FE
-A141 A141 ECA2A5 A141
-A142 A142 ECA2A6 A142
-A143 A143 ECA2A7 A143
-A144 A144 ECA2A9 A144
-A145 A145 ECA2AA A145
-A146 A146 ECA2AB A146
-A147 A147 ECA2AC A147
-A148 A148 ECA2AD A148
-A149 A149 ECA2AE A149
-A14A A14A ECA2AF A14A
-A14B A14B ECA2B0 A14B
-A14C A14C ECA2B1 A14C
-A14D A14D ECA2B2 A14D
-A14E A14E ECA2B3 A14E
-A14F A14F ECA2B4 A14F
-A150 A150 ECA2B5 A150
-A151 A151 ECA2B6 A151
-A152 A152 ECA2B7 A152
-A153 A153 ECA2B8 A153
-A154 A154 ECA2B9 A154
-A155 A155 ECA2BA A155
-A156 A156 ECA2BB A156
-A157 A157 ECA2BE A157
-A158 A158 ECA2BF A158
-A159 A159 ECA380 A159
-A15A A15A ECA381 A15A
-A161 A161 ECA382 A161
-A162 A162 ECA383 A162
-A163 A163 ECA385 A163
-A164 A164 ECA386 A164
-A165 A165 ECA387 A165
-A166 A166 ECA389 A166
-A167 A167 ECA38A A167
-A168 A168 ECA38B A168
-A169 A169 ECA38D A169
-A16A A16A ECA38E A16A
-A16B A16B ECA38F A16B
-A16C A16C ECA390 A16C
-A16D A16D ECA391 A16D
-A16E A16E ECA392 A16E
-A16F A16F ECA393 A16F
-A170 A170 ECA396 A170
-A171 A171 ECA398 A171
-A172 A172 ECA39A A172
-A173 A173 ECA39B A173
-A174 A174 ECA39C A174
-A175 A175 ECA39D A175
-A176 A176 ECA39E A176
-A177 A177 ECA39F A177
-A178 A178 ECA3A2 A178
-A179 A179 ECA3A3 A179
-A17A A17A ECA3A5 A17A
-A181 A181 ECA3A6 A181
-A182 A182 ECA3A7 A182
-A183 A183 ECA3A8 A183
-A184 A184 ECA3A9 A184
-A185 A185 ECA3AA A185
-A186 A186 ECA3AB A186
-A187 A187 ECA3AC A187
-A188 A188 ECA3AD A188
-A189 A189 ECA3AE A189
-A18A A18A ECA3AF A18A
-A18B A18B ECA3B0 A18B
-A18C A18C ECA3B1 A18C
-A18D A18D ECA3B2 A18D
-A18E A18E ECA3B3 A18E
-A18F A18F ECA3B4 A18F
-A190 A190 ECA3B6 A190
-A191 A191 ECA3B7 A191
-A192 A192 ECA3B8 A192
-A193 A193 ECA3B9 A193
-A194 A194 ECA3BA A194
-A195 A195 ECA3BB A195
-A196 A196 ECA3BE A196
-A197 A197 ECA3BF A197
-A198 A198 ECA481 A198
-A199 A199 ECA482 A199
-A19A A19A ECA483 A19A
-A19B A19B ECA487 A19B
-A19C A19C ECA488 A19C
-A19D A19D ECA489 A19D
-A19E A19E ECA48A A19E
-A19F A19F ECA48B A19F
-A1A0 A1A0 ECA48E A1A0
-A1A1 A1A1 E38080 A1A1
-A1A2 A1A2 E38081 A1A2
-A1A3 A1A3 E38082 A1A3
-A1A4 A1A4 C2B7 A1A4
-A1A5 A1A5 E280A5 A1A5
-A1A6 A1A6 E280A6 A1A6
-A1A7 A1A7 C2A8 A1A7
-A1A8 A1A8 E38083 A1A8
-A1A9 A1A9 C2AD A1A9
-A1AA A1AA E28095 A1AA
-A1AB A1AB E288A5 A1AB
-A1AC A1AC EFBCBC A1AC
-A1AD A1AD E288BC A1AD
-A1AE A1AE E28098 A1AE
-A1AF A1AF E28099 A1AF
-A1B0 A1B0 E2809C A1B0
-A1B1 A1B1 E2809D A1B1
-A1B2 A1B2 E38094 A1B2
-A1B3 A1B3 E38095 A1B3
-A1B4 A1B4 E38088 A1B4
-A1B5 A1B5 E38089 A1B5
-A1B6 A1B6 E3808A A1B6
-A1B7 A1B7 E3808B A1B7
-A1B8 A1B8 E3808C A1B8
-A1B9 A1B9 E3808D A1B9
-A1BA A1BA E3808E A1BA
-A1BB A1BB E3808F A1BB
-A1BC A1BC E38090 A1BC
-A1BD A1BD E38091 A1BD
-A1BE A1BE C2B1 A1BE
-A1BF A1BF C397 A1BF
-A1C0 A1C0 C3B7 A1C0
-A1C1 A1C1 E289A0 A1C1
-A1C2 A1C2 E289A4 A1C2
-A1C3 A1C3 E289A5 A1C3
-A1C4 A1C4 E2889E A1C4
-A1C5 A1C5 E288B4 A1C5
-A1C6 A1C6 C2B0 A1C6
-A1C7 A1C7 E280B2 A1C7
-A1C8 A1C8 E280B3 A1C8
-A1C9 A1C9 E28483 A1C9
-A1CA A1CA E284AB A1CA
-A1CB A1CB EFBFA0 A1CB
-A1CC A1CC EFBFA1 A1CC
-A1CD A1CD EFBFA5 A1CD
-A1CE A1CE E29982 A1CE
-A1CF A1CF E29980 A1CF
-A1D0 A1D0 E288A0 A1D0
-A1D1 A1D1 E28AA5 A1D1
-A1D2 A1D2 E28C92 A1D2
-A1D3 A1D3 E28882 A1D3
-A1D4 A1D4 E28887 A1D4
-A1D5 A1D5 E289A1 A1D5
-A1D6 A1D6 E28992 A1D6
-A1D7 A1D7 C2A7 A1D7
-A1D8 A1D8 E280BB A1D8
-A1D9 A1D9 E29886 A1D9
-A1DA A1DA E29885 A1DA
-A1DB A1DB E2978B A1DB
-A1DC A1DC E2978F A1DC
-A1DD A1DD E2978E A1DD
-A1DE A1DE E29787 A1DE
-A1DF A1DF E29786 A1DF
-A1E0 A1E0 E296A1 A1E0
-A1E1 A1E1 E296A0 A1E1
-A1E2 A1E2 E296B3 A1E2
-A1E3 A1E3 E296B2 A1E3
-A1E4 A1E4 E296BD A1E4
-A1E5 A1E5 E296BC A1E5
-A1E6 A1E6 E28692 A1E6
-A1E7 A1E7 E28690 A1E7
-A1E8 A1E8 E28691 A1E8
-A1E9 A1E9 E28693 A1E9
-A1EA A1EA E28694 A1EA
-A1EB A1EB E38093 A1EB
-A1EC A1EC E289AA A1EC
-A1ED A1ED E289AB A1ED
-A1EE A1EE E2889A A1EE
-A1EF A1EF E288BD A1EF
-A1F0 A1F0 E2889D A1F0
-A1F1 A1F1 E288B5 A1F1
-A1F2 A1F2 E288AB A1F2
-A1F3 A1F3 E288AC A1F3
-A1F4 A1F4 E28888 A1F4
-A1F5 A1F5 E2888B A1F5
-A1F6 A1F6 E28A86 A1F6
-A1F7 A1F7 E28A87 A1F7
-A1F8 A1F8 E28A82 A1F8
-A1F9 A1F9 E28A83 A1F9
-A1FA A1FA E288AA A1FA
-A1FB A1FB E288A9 A1FB
-A1FC A1FC E288A7 A1FC
-A1FD A1FD E288A8 A1FD
-A1FE A1FE EFBFA2 A1FE
-A241 A241 ECA490 A241
-A242 A242 ECA492 A242
-A243 A243 ECA493 A243
-A244 A244 ECA494 A244
-A245 A245 ECA495 A245
-A246 A246 ECA496 A246
-A247 A247 ECA497 A247
-A248 A248 ECA499 A248
-A249 A249 ECA49A A249
-A24A A24A ECA49B A24A
-A24B A24B ECA49C A24B
-A24C A24C ECA49D A24C
-A24D A24D ECA49E A24D
-A24E A24E ECA49F A24E
-A24F A24F ECA4A0 A24F
-A250 A250 ECA4A1 A250
-A251 A251 ECA4A2 A251
-A252 A252 ECA4A3 A252
-A253 A253 ECA4A4 A253
-A254 A254 ECA4A5 A254
-A255 A255 ECA4A6 A255
-A256 A256 ECA4A7 A256
-A257 A257 ECA4A8 A257
-A258 A258 ECA4A9 A258
-A259 A259 ECA4AA A259
-A25A A25A ECA4AB A25A
-A261 A261 ECA4AD A261
-A262 A262 ECA4AE A262
-A263 A263 ECA4AF A263
-A264 A264 ECA4B0 A264
-A265 A265 ECA4B1 A265
-A266 A266 ECA4B2 A266
-A267 A267 ECA4B3 A267
-A268 A268 ECA4B5 A268
-A269 A269 ECA4B6 A269
-A26A A26A ECA4B7 A26A
-A26B A26B ECA4B8 A26B
-A26C A26C ECA4B9 A26C
-A26D A26D ECA4BA A26D
-A26E A26E ECA4BB A26E
-A26F A26F ECA4BC A26F
-A270 A270 ECA4BD A270
-A271 A271 ECA4BE A271
-A272 A272 ECA4BF A272
-A273 A273 ECA580 A273
-A274 A274 ECA581 A274
-A275 A275 ECA582 A275
-A276 A276 ECA583 A276
-A277 A277 ECA584 A277
-A278 A278 ECA585 A278
-A279 A279 ECA586 A279
-A27A A27A ECA587 A27A
-A281 A281 ECA588 A281
-A282 A282 ECA589 A282
-A283 A283 ECA58A A283
-A284 A284 ECA58B A284
-A285 A285 ECA58C A285
-A286 A286 ECA58D A286
-A287 A287 ECA58E A287
-A288 A288 ECA58F A288
-A289 A289 ECA592 A289
-A28A A28A ECA593 A28A
-A28B A28B ECA595 A28B
-A28C A28C ECA596 A28C
-A28D A28D ECA597 A28D
-A28E A28E ECA599 A28E
-A28F A28F ECA59A A28F
-A290 A290 ECA59B A290
-A291 A291 ECA59C A291
-A292 A292 ECA59D A292
-A293 A293 ECA59E A293
-A294 A294 ECA59F A294
-A295 A295 ECA5A2 A295
-A296 A296 ECA5A4 A296
-A297 A297 ECA5A5 A297
-A298 A298 ECA5A6 A298
-A299 A299 ECA5A7 A299
-A29A A29A ECA5A8 A29A
-A29B A29B ECA5A9 A29B
-A29C A29C ECA5AA A29C
-A29D A29D ECA5AB A29D
-A29E A29E ECA5AD A29E
-A29F A29F ECA5AE A29F
-A2A0 A2A0 ECA5AF A2A0
-A2A1 A2A1 E28792 A2A1
-A2A2 A2A2 E28794 A2A2
-A2A3 A2A3 E28880 A2A3
-A2A4 A2A4 E28883 A2A4
-A2A5 A2A5 C2B4 A2A5
-A2A6 A2A6 EFBD9E A2A6
-A2A7 A2A7 CB87 A2A7
-A2A8 A2A8 CB98 A2A8
-A2A9 A2A9 CB9D A2A9
-A2AA A2AA CB9A A2AA
-A2AB A2AB CB99 A2AB
-A2AC A2AC C2B8 A2AC
-A2AD A2AD CB9B A2AD
-A2AE A2AE C2A1 A2AE
-A2AF A2AF C2BF A2AF
-A2B0 A2B0 CB90 A2B0
-A2B1 A2B1 E288AE A2B1
-A2B2 A2B2 E28891 A2B2
-A2B3 A2B3 E2888F A2B3
-A2B4 A2B4 C2A4 A2B4
-A2B5 A2B5 E28489 A2B5
-A2B6 A2B6 E280B0 A2B6
-A2B7 A2B7 E29781 A2B7
-A2B8 A2B8 E29780 A2B8
-A2B9 A2B9 E296B7 A2B9
-A2BA A2BA E296B6 A2BA
-A2BB A2BB E299A4 A2BB
-A2BC A2BC E299A0 A2BC
-A2BD A2BD E299A1 A2BD
-A2BE A2BE E299A5 A2BE
-A2BF A2BF E299A7 A2BF
-A2C0 A2C0 E299A3 A2C0
-A2C1 A2C1 E28A99 A2C1
-A2C2 A2C2 E29788 A2C2
-A2C3 A2C3 E296A3 A2C3
-A2C4 A2C4 E29790 A2C4
-A2C5 A2C5 E29791 A2C5
-A2C6 A2C6 E29692 A2C6
-A2C7 A2C7 E296A4 A2C7
-A2C8 A2C8 E296A5 A2C8
-A2C9 A2C9 E296A8 A2C9
-A2CA A2CA E296A7 A2CA
-A2CB A2CB E296A6 A2CB
-A2CC A2CC E296A9 A2CC
-A2CD A2CD E299A8 A2CD
-A2CE A2CE E2988F A2CE
-A2CF A2CF E2988E A2CF
-A2D0 A2D0 E2989C A2D0
-A2D1 A2D1 E2989E A2D1
-A2D2 A2D2 C2B6 A2D2
-A2D3 A2D3 E280A0 A2D3
-A2D4 A2D4 E280A1 A2D4
-A2D5 A2D5 E28695 A2D5
-A2D6 A2D6 E28697 A2D6
-A2D7 A2D7 E28699 A2D7
-A2D8 A2D8 E28696 A2D8
-A2D9 A2D9 E28698 A2D9
-A2DA A2DA E299AD A2DA
-A2DB A2DB E299A9 A2DB
-A2DC A2DC E299AA A2DC
-A2DD A2DD E299AC A2DD
-A2DE A2DE E389BF A2DE
-A2DF A2DF E3889C A2DF
-A2E0 A2E0 E28496 A2E0
-A2E1 A2E1 E38F87 A2E1
-A2E2 A2E2 E284A2 A2E2
-A2E3 A2E3 E38F82 A2E3
-A2E4 A2E4 E38F98 A2E4
-A2E5 A2E5 E284A1 A2E5
-A2E6 A2E6 E282AC A2E6
-A2E7 A2E7 C2AE A2E7
-A341 A341 ECA5B1 A341
-A342 A342 ECA5B2 A342
-A343 A343 ECA5B3 A343
-A344 A344 ECA5B5 A344
-A345 A345 ECA5B6 A345
-A346 A346 ECA5B7 A346
-A347 A347 ECA5B8 A347
-A348 A348 ECA5B9 A348
-A349 A349 ECA5BA A349
-A34A A34A ECA5BB A34A
-A34B A34B ECA5BD A34B
-A34C A34C ECA5BE A34C
-A34D A34D ECA5BF A34D
-A34E A34E ECA680 A34E
-A34F A34F ECA681 A34F
-A350 A350 ECA682 A350
-A351 A351 ECA683 A351
-A352 A352 ECA684 A352
-A353 A353 ECA685 A353
-A354 A354 ECA686 A354
-A355 A355 ECA687 A355
-A356 A356 ECA68A A356
-A357 A357 ECA68B A357
-A358 A358 ECA68D A358
-A359 A359 ECA68E A359
-A35A A35A ECA68F A35A
-A361 A361 ECA691 A361
-A362 A362 ECA692 A362
-A363 A363 ECA693 A363
-A364 A364 ECA694 A364
-A365 A365 ECA695 A365
-A366 A366 ECA696 A366
-A367 A367 ECA697 A367
-A368 A368 ECA69A A368
-A369 A369 ECA69C A369
-A36A A36A ECA69E A36A
-A36B A36B ECA69F A36B
-A36C A36C ECA6A0 A36C
-A36D A36D ECA6A1 A36D
-A36E A36E ECA6A2 A36E
-A36F A36F ECA6A3 A36F
-A370 A370 ECA6A4 A370
-A371 A371 ECA6A5 A371
-A372 A372 ECA6A6 A372
-A373 A373 ECA6A7 A373
-A374 A374 ECA6A8 A374
-A375 A375 ECA6A9 A375
-A376 A376 ECA6AA A376
-A377 A377 ECA6AB A377
-A378 A378 ECA6AC A378
-A379 A379 ECA6AD A379
-A37A A37A ECA6AE A37A
-A381 A381 ECA6AF A381
-A382 A382 ECA6B0 A382
-A383 A383 ECA6B1 A383
-A384 A384 ECA6B2 A384
-A385 A385 ECA6B3 A385
-A386 A386 ECA6B4 A386
-A387 A387 ECA6B5 A387
-A388 A388 ECA6B6 A388
-A389 A389 ECA6B7 A389
-A38A A38A ECA6B8 A38A
-A38B A38B ECA6B9 A38B
-A38C A38C ECA6BA A38C
-A38D A38D ECA6BB A38D
-A38E A38E ECA6BC A38E
-A38F A38F ECA6BD A38F
-A390 A390 ECA6BE A390
-A391 A391 ECA6BF A391
-A392 A392 ECA782 A392
-A393 A393 ECA783 A393
-A394 A394 ECA785 A394
-A395 A395 ECA786 A395
-A396 A396 ECA789 A396
-A397 A397 ECA78B A397
-A398 A398 ECA78C A398
-A399 A399 ECA78D A399
-A39A A39A ECA78E A39A
-A39B A39B ECA78F A39B
-A39C A39C ECA792 A39C
-A39D A39D ECA794 A39D
-A39E A39E ECA797 A39E
-A39F A39F ECA798 A39F
-A3A0 A3A0 ECA79B A3A0
-A3A1 A3A1 EFBC81 A3A1
-A3A2 A3A2 EFBC82 A3A2
-A3A3 A3A3 EFBC83 A3A3
-A3A4 A3A4 EFBC84 A3A4
-A3A5 A3A5 EFBC85 A3A5
-A3A6 A3A6 EFBC86 A3A6
-A3A7 A3A7 EFBC87 A3A7
-A3A8 A3A8 EFBC88 A3A8
-A3A9 A3A9 EFBC89 A3A9
-A3AA A3AA EFBC8A A3AA
-A3AB A3AB EFBC8B A3AB
-A3AC A3AC EFBC8C A3AC
-A3AD A3AD EFBC8D A3AD
-A3AE A3AE EFBC8E A3AE
-A3AF A3AF EFBC8F A3AF
-A3B0 A3B0 EFBC90 A3B0
-A3B1 A3B1 EFBC91 A3B1
-A3B2 A3B2 EFBC92 A3B2
-A3B3 A3B3 EFBC93 A3B3
-A3B4 A3B4 EFBC94 A3B4
-A3B5 A3B5 EFBC95 A3B5
-A3B6 A3B6 EFBC96 A3B6
-A3B7 A3B7 EFBC97 A3B7
-A3B8 A3B8 EFBC98 A3B8
-A3B9 A3B9 EFBC99 A3B9
-A3BA A3BA EFBC9A A3BA
-A3BB A3BB EFBC9B A3BB
-A3BC A3BC EFBC9C A3BC
-A3BD A3BD EFBC9D A3BD
-A3BE A3BE EFBC9E A3BE
-A3BF A3BF EFBC9F A3BF
-A3C0 A3C0 EFBCA0 A3C0
-A3C1 A3C1 EFBCA1 A3C1
-A3C2 A3C2 EFBCA2 A3C2
-A3C3 A3C3 EFBCA3 A3C3
-A3C4 A3C4 EFBCA4 A3C4
-A3C5 A3C5 EFBCA5 A3C5
-A3C6 A3C6 EFBCA6 A3C6
-A3C7 A3C7 EFBCA7 A3C7
-A3C8 A3C8 EFBCA8 A3C8
-A3C9 A3C9 EFBCA9 A3C9
-A3CA A3CA EFBCAA A3CA
-A3CB A3CB EFBCAB A3CB
-A3CC A3CC EFBCAC A3CC
-A3CD A3CD EFBCAD A3CD
-A3CE A3CE EFBCAE A3CE
-A3CF A3CF EFBCAF A3CF
-A3D0 A3D0 EFBCB0 A3D0
-A3D1 A3D1 EFBCB1 A3D1
-A3D2 A3D2 EFBCB2 A3D2
-A3D3 A3D3 EFBCB3 A3D3
-A3D4 A3D4 EFBCB4 A3D4
-A3D5 A3D5 EFBCB5 A3D5
-A3D6 A3D6 EFBCB6 A3D6
-A3D7 A3D7 EFBCB7 A3D7
-A3D8 A3D8 EFBCB8 A3D8
-A3D9 A3D9 EFBCB9 A3D9
-A3DA A3DA EFBCBA A3DA
-A3DB A3DB EFBCBB A3DB
-A3DC A3DC EFBFA6 A3DC
-A3DD A3DD EFBCBD A3DD
-A3DE A3DE EFBCBE A3DE
-A3DF A3DF EFBCBF A3DF
-A3E0 A3E0 EFBD80 A3E0
-A3E1 A3E1 EFBD81 A3E1
-A3E2 A3E2 EFBD82 A3E2
-A3E3 A3E3 EFBD83 A3E3
-A3E4 A3E4 EFBD84 A3E4
-A3E5 A3E5 EFBD85 A3E5
-A3E6 A3E6 EFBD86 A3E6
-A3E7 A3E7 EFBD87 A3E7
-A3E8 A3E8 EFBD88 A3E8
-A3E9 A3E9 EFBD89 A3E9
-A3EA A3EA EFBD8A A3EA
-A3EB A3EB EFBD8B A3EB
-A3EC A3EC EFBD8C A3EC
-A3ED A3ED EFBD8D A3ED
-A3EE A3EE EFBD8E A3EE
-A3EF A3EF EFBD8F A3EF
-A3F0 A3F0 EFBD90 A3F0
-A3F1 A3F1 EFBD91 A3F1
-A3F2 A3F2 EFBD92 A3F2
-A3F3 A3F3 EFBD93 A3F3
-A3F4 A3F4 EFBD94 A3F4
-A3F5 A3F5 EFBD95 A3F5
-A3F6 A3F6 EFBD96 A3F6
-A3F7 A3F7 EFBD97 A3F7
-A3F8 A3F8 EFBD98 A3F8
-A3F9 A3F9 EFBD99 A3F9
-A3FA A3FA EFBD9A A3FA
-A3FB A3FB EFBD9B A3FB
-A3FC A3FC EFBD9C A3FC
-A3FD A3FD EFBD9D A3FD
-A3FE A3FE EFBFA3 A3FE
-A441 A441 ECA79E A441
-A442 A442 ECA79F A442
-A443 A443 ECA7A1 A443
-A444 A444 ECA7A3 A444
-A445 A445 ECA7A5 A445
-A446 A446 ECA7A6 A446
-A447 A447 ECA7A8 A447
-A448 A448 ECA7A9 A448
-A449 A449 ECA7AA A449
-A44A A44A ECA7AB A44A
-A44B A44B ECA7AE A44B
-A44C A44C ECA7B2 A44C
-A44D A44D ECA7B3 A44D
-A44E A44E ECA7B4 A44E
-A44F A44F ECA7B5 A44F
-A450 A450 ECA7B6 A450
-A451 A451 ECA7B7 A451
-A452 A452 ECA7BA A452
-A453 A453 ECA7BB A453
-A454 A454 ECA7BD A454
-A455 A455 ECA7BE A455
-A456 A456 ECA7BF A456
-A457 A457 ECA881 A457
-A458 A458 ECA882 A458
-A459 A459 ECA883 A459
-A45A A45A ECA884 A45A
-A461 A461 ECA885 A461
-A462 A462 ECA886 A462
-A463 A463 ECA887 A463
-A464 A464 ECA88A A464
-A465 A465 ECA88E A465
-A466 A466 ECA88F A466
-A467 A467 ECA890 A467
-A468 A468 ECA891 A468
-A469 A469 ECA892 A469
-A46A A46A ECA893 A46A
-A46B A46B ECA895 A46B
-A46C A46C ECA896 A46C
-A46D A46D ECA897 A46D
-A46E A46E ECA899 A46E
-A46F A46F ECA89A A46F
-A470 A470 ECA89B A470
-A471 A471 ECA89C A471
-A472 A472 ECA89D A472
-A473 A473 ECA89E A473
-A474 A474 ECA89F A474
-A475 A475 ECA8A0 A475
-A476 A476 ECA8A1 A476
-A477 A477 ECA8A2 A477
-A478 A478 ECA8A3 A478
-A479 A479 ECA8A4 A479
-A47A A47A ECA8A5 A47A
-A481 A481 ECA8A6 A481
-A482 A482 ECA8A7 A482
-A483 A483 ECA8A8 A483
-A484 A484 ECA8AA A484
-A485 A485 ECA8AB A485
-A486 A486 ECA8AC A486
-A487 A487 ECA8AD A487
-A488 A488 ECA8AE A488
-A489 A489 ECA8AF A489
-A48A A48A ECA8B0 A48A
-A48B A48B ECA8B1 A48B
-A48C A48C ECA8B2 A48C
-A48D A48D ECA8B3 A48D
-A48E A48E ECA8B4 A48E
-A48F A48F ECA8B5 A48F
-A490 A490 ECA8B6 A490
-A491 A491 ECA8B7 A491
-A492 A492 ECA8B8 A492
-A493 A493 ECA8B9 A493
-A494 A494 ECA8BA A494
-A495 A495 ECA8BB A495
-A496 A496 ECA8BC A496
-A497 A497 ECA8BD A497
-A498 A498 ECA8BE A498
-A499 A499 ECA8BF A499
-A49A A49A ECA980 A49A
-A49B A49B ECA981 A49B
-A49C A49C ECA982 A49C
-A49D A49D ECA983 A49D
-A49E A49E ECA984 A49E
-A49F A49F ECA985 A49F
-A4A0 A4A0 ECA986 A4A0
-A4A1 A4A1 E384B1 A4A1
-A4A2 A4A2 E384B2 A4A2
-A4A3 A4A3 E384B3 A4A3
-A4A4 A4A4 E384B4 A4A4
-A4A5 A4A5 E384B5 A4A5
-A4A6 A4A6 E384B6 A4A6
-A4A7 A4A7 E384B7 A4A7
-A4A8 A4A8 E384B8 A4A8
-A4A9 A4A9 E384B9 A4A9
-A4AA A4AA E384BA A4AA
-A4AB A4AB E384BB A4AB
-A4AC A4AC E384BC A4AC
-A4AD A4AD E384BD A4AD
-A4AE A4AE E384BE A4AE
-A4AF A4AF E384BF A4AF
-A4B0 A4B0 E38580 A4B0
-A4B1 A4B1 E38581 A4B1
-A4B2 A4B2 E38582 A4B2
-A4B3 A4B3 E38583 A4B3
-A4B4 A4B4 E38584 A4B4
-A4B5 A4B5 E38585 A4B5
-A4B6 A4B6 E38586 A4B6
-A4B7 A4B7 E38587 A4B7
-A4B8 A4B8 E38588 A4B8
-A4B9 A4B9 E38589 A4B9
-A4BA A4BA E3858A A4BA
-A4BB A4BB E3858B A4BB
-A4BC A4BC E3858C A4BC
-A4BD A4BD E3858D A4BD
-A4BE A4BE E3858E A4BE
-A4BF A4BF E3858F A4BF
-A4C0 A4C0 E38590 A4C0
-A4C1 A4C1 E38591 A4C1
-A4C2 A4C2 E38592 A4C2
-A4C3 A4C3 E38593 A4C3
-A4C4 A4C4 E38594 A4C4
-A4C5 A4C5 E38595 A4C5
-A4C6 A4C6 E38596 A4C6
-A4C7 A4C7 E38597 A4C7
-A4C8 A4C8 E38598 A4C8
-A4C9 A4C9 E38599 A4C9
-A4CA A4CA E3859A A4CA
-A4CB A4CB E3859B A4CB
-A4CC A4CC E3859C A4CC
-A4CD A4CD E3859D A4CD
-A4CE A4CE E3859E A4CE
-A4CF A4CF E3859F A4CF
-A4D0 A4D0 E385A0 A4D0
-A4D1 A4D1 E385A1 A4D1
-A4D2 A4D2 E385A2 A4D2
-A4D3 A4D3 E385A3 A4D3
-A4D4 A4D4 E385A4 A4D4
-A4D5 A4D5 E385A5 A4D5
-A4D6 A4D6 E385A6 A4D6
-A4D7 A4D7 E385A7 A4D7
-A4D8 A4D8 E385A8 A4D8
-A4D9 A4D9 E385A9 A4D9
-A4DA A4DA E385AA A4DA
-A4DB A4DB E385AB A4DB
-A4DC A4DC E385AC A4DC
-A4DD A4DD E385AD A4DD
-A4DE A4DE E385AE A4DE
-A4DF A4DF E385AF A4DF
-A4E0 A4E0 E385B0 A4E0
-A4E1 A4E1 E385B1 A4E1
-A4E2 A4E2 E385B2 A4E2
-A4E3 A4E3 E385B3 A4E3
-A4E4 A4E4 E385B4 A4E4
-A4E5 A4E5 E385B5 A4E5
-A4E6 A4E6 E385B6 A4E6
-A4E7 A4E7 E385B7 A4E7
-A4E8 A4E8 E385B8 A4E8
-A4E9 A4E9 E385B9 A4E9
-A4EA A4EA E385BA A4EA
-A4EB A4EB E385BB A4EB
-A4EC A4EC E385BC A4EC
-A4ED A4ED E385BD A4ED
-A4EE A4EE E385BE A4EE
-A4EF A4EF E385BF A4EF
-A4F0 A4F0 E38680 A4F0
-A4F1 A4F1 E38681 A4F1
-A4F2 A4F2 E38682 A4F2
-A4F3 A4F3 E38683 A4F3
-A4F4 A4F4 E38684 A4F4
-A4F5 A4F5 E38685 A4F5
-A4F6 A4F6 E38686 A4F6
-A4F7 A4F7 E38687 A4F7
-A4F8 A4F8 E38688 A4F8
-A4F9 A4F9 E38689 A4F9
-A4FA A4FA E3868A A4FA
-A4FB A4FB E3868B A4FB
-A4FC A4FC E3868C A4FC
-A4FD A4FD E3868D A4FD
-A4FE A4FE E3868E A4FE
-A541 A541 ECA987 A541
-A542 A542 ECA988 A542
-A543 A543 ECA989 A543
-A544 A544 ECA98A A544
-A545 A545 ECA98B A545
-A546 A546 ECA98E A546
-A547 A547 ECA98F A547
-A548 A548 ECA991 A548
-A549 A549 ECA992 A549
-A54A A54A ECA993 A54A
-A54B A54B ECA995 A54B
-A54C A54C ECA996 A54C
-A54D A54D ECA997 A54D
-A54E A54E ECA998 A54E
-A54F A54F ECA999 A54F
-A550 A550 ECA99A A550
-A551 A551 ECA99B A551
-A552 A552 ECA99E A552
-A553 A553 ECA9A2 A553
-A554 A554 ECA9A3 A554
-A555 A555 ECA9A4 A555
-A556 A556 ECA9A5 A556
-A557 A557 ECA9A6 A557
-A558 A558 ECA9A7 A558
-A559 A559 ECA9A9 A559
-A55A A55A ECA9AA A55A
-A561 A561 ECA9AB A561
-A562 A562 ECA9AC A562
-A563 A563 ECA9AD A563
-A564 A564 ECA9AE A564
-A565 A565 ECA9AF A565
-A566 A566 ECA9B0 A566
-A567 A567 ECA9B1 A567
-A568 A568 ECA9B2 A568
-A569 A569 ECA9B3 A569
-A56A A56A ECA9B4 A56A
-A56B A56B ECA9B5 A56B
-A56C A56C ECA9B6 A56C
-A56D A56D ECA9B7 A56D
-A56E A56E ECA9B8 A56E
-A56F A56F ECA9B9 A56F
-A570 A570 ECA9BA A570
-A571 A571 ECA9BB A571
-A572 A572 ECA9BC A572
-A573 A573 ECA9BE A573
-A574 A574 ECA9BF A574
-A575 A575 ECAA80 A575
-A576 A576 ECAA81 A576
-A577 A577 ECAA82 A577
-A578 A578 ECAA83 A578
-A579 A579 ECAA85 A579
-A57A A57A ECAA86 A57A
-A581 A581 ECAA87 A581
-A582 A582 ECAA88 A582
-A583 A583 ECAA89 A583
-A584 A584 ECAA8A A584
-A585 A585 ECAA8B A585
-A586 A586 ECAA8C A586
-A587 A587 ECAA8D A587
-A588 A588 ECAA8E A588
-A589 A589 ECAA8F A589
-A58A A58A ECAA90 A58A
-A58B A58B ECAA91 A58B
-A58C A58C ECAA92 A58C
-A58D A58D ECAA93 A58D
-A58E A58E ECAA94 A58E
-A58F A58F ECAA95 A58F
-A590 A590 ECAA96 A590
-A591 A591 ECAA97 A591
-A592 A592 ECAA99 A592
-A593 A593 ECAA9A A593
-A594 A594 ECAA9B A594
-A595 A595 ECAA9C A595
-A596 A596 ECAA9D A596
-A597 A597 ECAA9E A597
-A598 A598 ECAA9F A598
-A599 A599 ECAAA0 A599
-A59A A59A ECAAA1 A59A
-A59B A59B ECAAA2 A59B
-A59C A59C ECAAA3 A59C
-A59D A59D ECAAA4 A59D
-A59E A59E ECAAA5 A59E
-A59F A59F ECAAA6 A59F
-A5A0 A5A0 ECAAA7 A5A0
-A5A1 A5A1 E285B0 A5A1
-A5A2 A5A2 E285B1 A5A2
-A5A3 A5A3 E285B2 A5A3
-A5A4 A5A4 E285B3 A5A4
-A5A5 A5A5 E285B4 A5A5
-A5A6 A5A6 E285B5 A5A6
-A5A7 A5A7 E285B6 A5A7
-A5A8 A5A8 E285B7 A5A8
-A5A9 A5A9 E285B8 A5A9
-A5AA A5AA E285B9 A5AA
-A5B0 A5B0 E285A0 A5B0
-A5B1 A5B1 E285A1 A5B1
-A5B2 A5B2 E285A2 A5B2
-A5B3 A5B3 E285A3 A5B3
-A5B4 A5B4 E285A4 A5B4
-A5B5 A5B5 E285A5 A5B5
-A5B6 A5B6 E285A6 A5B6
-A5B7 A5B7 E285A7 A5B7
-A5B8 A5B8 E285A8 A5B8
-A5B9 A5B9 E285A9 A5B9
-A5C1 A5C1 CE91 A5C1
-A5C2 A5C2 CE92 A5C2
-A5C3 A5C3 CE93 A5C3
-A5C4 A5C4 CE94 A5C4
-A5C5 A5C5 CE95 A5C5
-A5C6 A5C6 CE96 A5C6
-A5C7 A5C7 CE97 A5C7
-A5C8 A5C8 CE98 A5C8
-A5C9 A5C9 CE99 A5C9
-A5CA A5CA CE9A A5CA
-A5CB A5CB CE9B A5CB
-A5CC A5CC CE9C A5CC
-A5CD A5CD CE9D A5CD
-A5CE A5CE CE9E A5CE
-A5CF A5CF CE9F A5CF
-A5D0 A5D0 CEA0 A5D0
-A5D1 A5D1 CEA1 A5D1
-A5D2 A5D2 CEA3 A5D2
-A5D3 A5D3 CEA4 A5D3
-A5D4 A5D4 CEA5 A5D4
-A5D5 A5D5 CEA6 A5D5
-A5D6 A5D6 CEA7 A5D6
-A5D7 A5D7 CEA8 A5D7
-A5D8 A5D8 CEA9 A5D8
-A5E1 A5E1 CEB1 A5E1
-A5E2 A5E2 CEB2 A5E2
-A5E3 A5E3 CEB3 A5E3
-A5E4 A5E4 CEB4 A5E4
-A5E5 A5E5 CEB5 A5E5
-A5E6 A5E6 CEB6 A5E6
-A5E7 A5E7 CEB7 A5E7
-A5E8 A5E8 CEB8 A5E8
-A5E9 A5E9 CEB9 A5E9
-A5EA A5EA CEBA A5EA
-A5EB A5EB CEBB A5EB
-A5EC A5EC CEBC A5EC
-A5ED A5ED CEBD A5ED
-A5EE A5EE CEBE A5EE
-A5EF A5EF CEBF A5EF
-A5F0 A5F0 CF80 A5F0
-A5F1 A5F1 CF81 A5F1
-A5F2 A5F2 CF83 A5F2
-A5F3 A5F3 CF84 A5F3
-A5F4 A5F4 CF85 A5F4
-A5F5 A5F5 CF86 A5F5
-A5F6 A5F6 CF87 A5F6
-A5F7 A5F7 CF88 A5F7
-A5F8 A5F8 CF89 A5F8
-A641 A641 ECAAA8 A641
-A642 A642 ECAAA9 A642
-A643 A643 ECAAAA A643
-A644 A644 ECAAAB A644
-A645 A645 ECAAAC A645
-A646 A646 ECAAAD A646
-A647 A647 ECAAAE A647
-A648 A648 ECAAAF A648
-A649 A649 ECAAB0 A649
-A64A A64A ECAAB1 A64A
-A64B A64B ECAAB2 A64B
-A64C A64C ECAAB3 A64C
-A64D A64D ECAAB4 A64D
-A64E A64E ECAAB5 A64E
-A64F A64F ECAAB6 A64F
-A650 A650 ECAAB7 A650
-A651 A651 ECAAB8 A651
-A652 A652 ECAAB9 A652
-A653 A653 ECAABA A653
-A654 A654 ECAABB A654
-A655 A655 ECAABE A655
-A656 A656 ECAABF A656
-A657 A657 ECAB81 A657
-A658 A658 ECAB82 A658
-A659 A659 ECAB83 A659
-A65A A65A ECAB85 A65A
-A661 A661 ECAB86 A661
-A662 A662 ECAB87 A662
-A663 A663 ECAB88 A663
-A664 A664 ECAB89 A664
-A665 A665 ECAB8A A665
-A666 A666 ECAB8B A666
-A667 A667 ECAB8E A667
-A668 A668 ECAB90 A668
-A669 A669 ECAB92 A669
-A66A A66A ECAB94 A66A
-A66B A66B ECAB95 A66B
-A66C A66C ECAB96 A66C
-A66D A66D ECAB97 A66D
-A66E A66E ECAB9A A66E
-A66F A66F ECAB9B A66F
-A670 A670 ECAB9C A670
-A671 A671 ECAB9D A671
-A672 A672 ECAB9E A672
-A673 A673 ECAB9F A673
-A674 A674 ECABA1 A674
-A675 A675 ECABA2 A675
-A676 A676 ECABA3 A676
-A677 A677 ECABA4 A677
-A678 A678 ECABA5 A678
-A679 A679 ECABA6 A679
-A67A A67A ECABA7 A67A
-A681 A681 ECABA8 A681
-A682 A682 ECABA9 A682
-A683 A683 ECABAA A683
-A684 A684 ECABAB A684
-A685 A685 ECABAD A685
-A686 A686 ECABAE A686
-A687 A687 ECABAF A687
-A688 A688 ECABB0 A688
-A689 A689 ECABB1 A689
-A68A A68A ECABB2 A68A
-A68B A68B ECABB3 A68B
-A68C A68C ECABB5 A68C
-A68D A68D ECABB6 A68D
-A68E A68E ECABB7 A68E
-A68F A68F ECABB8 A68F
-A690 A690 ECABB9 A690
-A691 A691 ECABBA A691
-A692 A692 ECABBB A692
-A693 A693 ECABBC A693
-A694 A694 ECABBD A694
-A695 A695 ECABBE A695
-A696 A696 ECABBF A696
-A697 A697 ECAC80 A697
-A698 A698 ECAC81 A698
-A699 A699 ECAC82 A699
-A69A A69A ECAC83 A69A
-A69B A69B ECAC84 A69B
-A69C A69C ECAC85 A69C
-A69D A69D ECAC86 A69D
-A69E A69E ECAC87 A69E
-A69F A69F ECAC89 A69F
-A6A0 A6A0 ECAC8A A6A0
-A6A1 A6A1 E29480 A6A1
-A6A2 A6A2 E29482 A6A2
-A6A3 A6A3 E2948C A6A3
-A6A4 A6A4 E29490 A6A4
-A6A5 A6A5 E29498 A6A5
-A6A6 A6A6 E29494 A6A6
-A6A7 A6A7 E2949C A6A7
-A6A8 A6A8 E294AC A6A8
-A6A9 A6A9 E294A4 A6A9
-A6AA A6AA E294B4 A6AA
-A6AB A6AB E294BC A6AB
-A6AC A6AC E29481 A6AC
-A6AD A6AD E29483 A6AD
-A6AE A6AE E2948F A6AE
-A6AF A6AF E29493 A6AF
-A6B0 A6B0 E2949B A6B0
-A6B1 A6B1 E29497 A6B1
-A6B2 A6B2 E294A3 A6B2
-A6B3 A6B3 E294B3 A6B3
-A6B4 A6B4 E294AB A6B4
-A6B5 A6B5 E294BB A6B5
-A6B6 A6B6 E2958B A6B6
-A6B7 A6B7 E294A0 A6B7
-A6B8 A6B8 E294AF A6B8
-A6B9 A6B9 E294A8 A6B9
-A6BA A6BA E294B7 A6BA
-A6BB A6BB E294BF A6BB
-A6BC A6BC E2949D A6BC
-A6BD A6BD E294B0 A6BD
-A6BE A6BE E294A5 A6BE
-A6BF A6BF E294B8 A6BF
-A6C0 A6C0 E29582 A6C0
-A6C1 A6C1 E29492 A6C1
-A6C2 A6C2 E29491 A6C2
-A6C3 A6C3 E2949A A6C3
-A6C4 A6C4 E29499 A6C4
-A6C5 A6C5 E29496 A6C5
-A6C6 A6C6 E29495 A6C6
-A6C7 A6C7 E2948E A6C7
-A6C8 A6C8 E2948D A6C8
-A6C9 A6C9 E2949E A6C9
-A6CA A6CA E2949F A6CA
-A6CB A6CB E294A1 A6CB
-A6CC A6CC E294A2 A6CC
-A6CD A6CD E294A6 A6CD
-A6CE A6CE E294A7 A6CE
-A6CF A6CF E294A9 A6CF
-A6D0 A6D0 E294AA A6D0
-A6D1 A6D1 E294AD A6D1
-A6D2 A6D2 E294AE A6D2
-A6D3 A6D3 E294B1 A6D3
-A6D4 A6D4 E294B2 A6D4
-A6D5 A6D5 E294B5 A6D5
-A6D6 A6D6 E294B6 A6D6
-A6D7 A6D7 E294B9 A6D7
-A6D8 A6D8 E294BA A6D8
-A6D9 A6D9 E294BD A6D9
-A6DA A6DA E294BE A6DA
-A6DB A6DB E29580 A6DB
-A6DC A6DC E29581 A6DC
-A6DD A6DD E29583 A6DD
-A6DE A6DE E29584 A6DE
-A6DF A6DF E29585 A6DF
-A6E0 A6E0 E29586 A6E0
-A6E1 A6E1 E29587 A6E1
-A6E2 A6E2 E29588 A6E2
-A6E3 A6E3 E29589 A6E3
-A6E4 A6E4 E2958A A6E4
-A741 A741 ECAC8B A741
-A742 A742 ECAC8C A742
-A743 A743 ECAC8D A743
-A744 A744 ECAC8E A744
-A745 A745 ECAC8F A745
-A746 A746 ECAC91 A746
-A747 A747 ECAC92 A747
-A748 A748 ECAC93 A748
-A749 A749 ECAC95 A749
-A74A A74A ECAC96 A74A
-A74B A74B ECAC97 A74B
-A74C A74C ECAC99 A74C
-A74D A74D ECAC9A A74D
-A74E A74E ECAC9B A74E
-A74F A74F ECAC9C A74F
-A750 A750 ECAC9D A750
-A751 A751 ECAC9E A751
-A752 A752 ECAC9F A752
-A753 A753 ECACA2 A753
-A754 A754 ECACA3 A754
-A755 A755 ECACA4 A755
-A756 A756 ECACA5 A756
-A757 A757 ECACA6 A757
-A758 A758 ECACA7 A758
-A759 A759 ECACA8 A759
-A75A A75A ECACA9 A75A
-A761 A761 ECACAA A761
-A762 A762 ECACAB A762
-A763 A763 ECACAC A763
-A764 A764 ECACAD A764
-A765 A765 ECACAE A765
-A766 A766 ECACAF A766
-A767 A767 ECACB0 A767
-A768 A768 ECACB1 A768
-A769 A769 ECACB2 A769
-A76A A76A ECACB3 A76A
-A76B A76B ECACB4 A76B
-A76C A76C ECACB5 A76C
-A76D A76D ECACB6 A76D
-A76E A76E ECACB7 A76E
-A76F A76F ECACB8 A76F
-A770 A770 ECACB9 A770
-A771 A771 ECACBA A771
-A772 A772 ECACBB A772
-A773 A773 ECACBC A773
-A774 A774 ECACBD A774
-A775 A775 ECACBE A775
-A776 A776 ECACBF A776
-A777 A777 ECAD80 A777
-A778 A778 ECAD82 A778
-A779 A779 ECAD83 A779
-A77A A77A ECAD84 A77A
-A781 A781 ECAD85 A781
-A782 A782 ECAD86 A782
-A783 A783 ECAD87 A783
-A784 A784 ECAD8A A784
-A785 A785 ECAD8B A785
-A786 A786 ECAD8D A786
-A787 A787 ECAD8E A787
-A788 A788 ECAD8F A788
-A789 A789 ECAD91 A789
-A78A A78A ECAD92 A78A
-A78B A78B ECAD93 A78B
-A78C A78C ECAD94 A78C
-A78D A78D ECAD95 A78D
-A78E A78E ECAD96 A78E
-A78F A78F ECAD97 A78F
-A790 A790 ECAD9A A790
-A791 A791 ECAD9B A791
-A792 A792 ECAD9C A792
-A793 A793 ECAD9E A793
-A794 A794 ECAD9F A794
-A795 A795 ECADA0 A795
-A796 A796 ECADA1 A796
-A797 A797 ECADA2 A797
-A798 A798 ECADA3 A798
-A799 A799 ECADA5 A799
-A79A A79A ECADA6 A79A
-A79B A79B ECADA7 A79B
-A79C A79C ECADA8 A79C
-A79D A79D ECADA9 A79D
-A79E A79E ECADAA A79E
-A79F A79F ECADAB A79F
-A7A0 A7A0 ECADAC A7A0
-A7A1 A7A1 E38E95 A7A1
-A7A2 A7A2 E38E96 A7A2
-A7A3 A7A3 E38E97 A7A3
-A7A4 A7A4 E28493 A7A4
-A7A5 A7A5 E38E98 A7A5
-A7A6 A7A6 E38F84 A7A6
-A7A7 A7A7 E38EA3 A7A7
-A7A8 A7A8 E38EA4 A7A8
-A7A9 A7A9 E38EA5 A7A9
-A7AA A7AA E38EA6 A7AA
-A7AB A7AB E38E99 A7AB
-A7AC A7AC E38E9A A7AC
-A7AD A7AD E38E9B A7AD
-A7AE A7AE E38E9C A7AE
-A7AF A7AF E38E9D A7AF
-A7B0 A7B0 E38E9E A7B0
-A7B1 A7B1 E38E9F A7B1
-A7B2 A7B2 E38EA0 A7B2
-A7B3 A7B3 E38EA1 A7B3
-A7B4 A7B4 E38EA2 A7B4
-A7B5 A7B5 E38F8A A7B5
-A7B6 A7B6 E38E8D A7B6
-A7B7 A7B7 E38E8E A7B7
-A7B8 A7B8 E38E8F A7B8
-A7B9 A7B9 E38F8F A7B9
-A7BA A7BA E38E88 A7BA
-A7BB A7BB E38E89 A7BB
-A7BC A7BC E38F88 A7BC
-A7BD A7BD E38EA7 A7BD
-A7BE A7BE E38EA8 A7BE
-A7BF A7BF E38EB0 A7BF
-A7C0 A7C0 E38EB1 A7C0
-A7C1 A7C1 E38EB2 A7C1
-A7C2 A7C2 E38EB3 A7C2
-A7C3 A7C3 E38EB4 A7C3
-A7C4 A7C4 E38EB5 A7C4
-A7C5 A7C5 E38EB6 A7C5
-A7C6 A7C6 E38EB7 A7C6
-A7C7 A7C7 E38EB8 A7C7
-A7C8 A7C8 E38EB9 A7C8
-A7C9 A7C9 E38E80 A7C9
-A7CA A7CA E38E81 A7CA
-A7CB A7CB E38E82 A7CB
-A7CC A7CC E38E83 A7CC
-A7CD A7CD E38E84 A7CD
-A7CE A7CE E38EBA A7CE
-A7CF A7CF E38EBB A7CF
-A7D0 A7D0 E38EBC A7D0
-A7D1 A7D1 E38EBD A7D1
-A7D2 A7D2 E38EBE A7D2
-A7D3 A7D3 E38EBF A7D3
-A7D4 A7D4 E38E90 A7D4
-A7D5 A7D5 E38E91 A7D5
-A7D6 A7D6 E38E92 A7D6
-A7D7 A7D7 E38E93 A7D7
-A7D8 A7D8 E38E94 A7D8
-A7D9 A7D9 E284A6 A7D9
-A7DA A7DA E38F80 A7DA
-A7DB A7DB E38F81 A7DB
-A7DC A7DC E38E8A A7DC
-A7DD A7DD E38E8B A7DD
-A7DE A7DE E38E8C A7DE
-A7DF A7DF E38F96 A7DF
-A7E0 A7E0 E38F85 A7E0
-A7E1 A7E1 E38EAD A7E1
-A7E2 A7E2 E38EAE A7E2
-A7E3 A7E3 E38EAF A7E3
-A7E4 A7E4 E38F9B A7E4
-A7E5 A7E5 E38EA9 A7E5
-A7E6 A7E6 E38EAA A7E6
-A7E7 A7E7 E38EAB A7E7
-A7E8 A7E8 E38EAC A7E8
-A7E9 A7E9 E38F9D A7E9
-A7EA A7EA E38F90 A7EA
-A7EB A7EB E38F93 A7EB
-A7EC A7EC E38F83 A7EC
-A7ED A7ED E38F89 A7ED
-A7EE A7EE E38F9C A7EE
-A7EF A7EF E38F86 A7EF
-A841 A841 ECADAD A841
-A842 A842 ECADAE A842
-A843 A843 ECADAF A843
-A844 A844 ECADB0 A844
-A845 A845 ECADB1 A845
-A846 A846 ECADB2 A846
-A847 A847 ECADB3 A847
-A848 A848 ECADB4 A848
-A849 A849 ECADB5 A849
-A84A A84A ECADB6 A84A
-A84B A84B ECADB7 A84B
-A84C A84C ECADBA A84C
-A84D A84D ECADBB A84D
-A84E A84E ECADBC A84E
-A84F A84F ECADBD A84F
-A850 A850 ECADBE A850
-A851 A851 ECADBF A851
-A852 A852 ECAE80 A852
-A853 A853 ECAE81 A853
-A854 A854 ECAE82 A854
-A855 A855 ECAE83 A855
-A856 A856 ECAE84 A856
-A857 A857 ECAE85 A857
-A858 A858 ECAE86 A858
-A859 A859 ECAE87 A859
-A85A A85A ECAE88 A85A
-A861 A861 ECAE89 A861
-A862 A862 ECAE8A A862
-A863 A863 ECAE8B A863
-A864 A864 ECAE8C A864
-A865 A865 ECAE8D A865
-A866 A866 ECAE8E A866
-A867 A867 ECAE8F A867
-A868 A868 ECAE90 A868
-A869 A869 ECAE91 A869
-A86A A86A ECAE92 A86A
-A86B A86B ECAE93 A86B
-A86C A86C ECAE94 A86C
-A86D A86D ECAE95 A86D
-A86E A86E ECAE96 A86E
-A86F A86F ECAE97 A86F
-A870 A870 ECAE98 A870
-A871 A871 ECAE99 A871
-A872 A872 ECAE9A A872
-A873 A873 ECAE9B A873
-A874 A874 ECAE9D A874
-A875 A875 ECAE9E A875
-A876 A876 ECAE9F A876
-A877 A877 ECAEA0 A877
-A878 A878 ECAEA1 A878
-A879 A879 ECAEA2 A879
-A87A A87A ECAEA3 A87A
-A881 A881 ECAEA4 A881
-A882 A882 ECAEA5 A882
-A883 A883 ECAEA6 A883
-A884 A884 ECAEA7 A884
-A885 A885 ECAEA8 A885
-A886 A886 ECAEA9 A886
-A887 A887 ECAEAA A887
-A888 A888 ECAEAB A888
-A889 A889 ECAEAC A889
-A88A A88A ECAEAD A88A
-A88B A88B ECAEAE A88B
-A88C A88C ECAEAF A88C
-A88D A88D ECAEB0 A88D
-A88E A88E ECAEB1 A88E
-A88F A88F ECAEB2 A88F
-A890 A890 ECAEB3 A890
-A891 A891 ECAEB4 A891
-A892 A892 ECAEB5 A892
-A893 A893 ECAEB6 A893
-A894 A894 ECAEB7 A894
-A895 A895 ECAEB9 A895
-A896 A896 ECAEBA A896
-A897 A897 ECAEBB A897
-A898 A898 ECAEBC A898
-A899 A899 ECAEBD A899
-A89A A89A ECAEBE A89A
-A89B A89B ECAEBF A89B
-A89C A89C ECAF80 A89C
-A89D A89D ECAF81 A89D
-A89E A89E ECAF82 A89E
-A89F A89F ECAF83 A89F
-A8A0 A8A0 ECAF84 A8A0
-A8A1 A8A1 C386 A8A1
-A8A2 A8A2 C390 A8A2
-A8A3 A8A3 C2AA A8A3
-A8A4 A8A4 C4A6 A8A4
-A8A6 A8A6 C4B2 A8A6
-A8A8 A8A8 C4BF A8A8
-A8A9 A8A9 C581 A8A9
-A8AA A8AA C398 A8AA
-A8AB A8AB C592 A8AB
-A8AC A8AC C2BA A8AC
-A8AD A8AD C39E A8AD
-A8AE A8AE C5A6 A8AE
-A8AF A8AF C58A A8AF
-A8B1 A8B1 E389A0 A8B1
-A8B2 A8B2 E389A1 A8B2
-A8B3 A8B3 E389A2 A8B3
-A8B4 A8B4 E389A3 A8B4
-A8B5 A8B5 E389A4 A8B5
-A8B6 A8B6 E389A5 A8B6
-A8B7 A8B7 E389A6 A8B7
-A8B8 A8B8 E389A7 A8B8
-A8B9 A8B9 E389A8 A8B9
-A8BA A8BA E389A9 A8BA
-A8BB A8BB E389AA A8BB
-A8BC A8BC E389AB A8BC
-A8BD A8BD E389AC A8BD
-A8BE A8BE E389AD A8BE
-A8BF A8BF E389AE A8BF
-A8C0 A8C0 E389AF A8C0
-A8C1 A8C1 E389B0 A8C1
-A8C2 A8C2 E389B1 A8C2
-A8C3 A8C3 E389B2 A8C3
-A8C4 A8C4 E389B3 A8C4
-A8C5 A8C5 E389B4 A8C5
-A8C6 A8C6 E389B5 A8C6
-A8C7 A8C7 E389B6 A8C7
-A8C8 A8C8 E389B7 A8C8
-A8C9 A8C9 E389B8 A8C9
-A8CA A8CA E389B9 A8CA
-A8CB A8CB E389BA A8CB
-A8CC A8CC E389BB A8CC
-A8CD A8CD E29390 A8CD
-A8CE A8CE E29391 A8CE
-A8CF A8CF E29392 A8CF
-A8D0 A8D0 E29393 A8D0
-A8D1 A8D1 E29394 A8D1
-A8D2 A8D2 E29395 A8D2
-A8D3 A8D3 E29396 A8D3
-A8D4 A8D4 E29397 A8D4
-A8D5 A8D5 E29398 A8D5
-A8D6 A8D6 E29399 A8D6
-A8D7 A8D7 E2939A A8D7
-A8D8 A8D8 E2939B A8D8
-A8D9 A8D9 E2939C A8D9
-A8DA A8DA E2939D A8DA
-A8DB A8DB E2939E A8DB
-A8DC A8DC E2939F A8DC
-A8DD A8DD E293A0 A8DD
-A8DE A8DE E293A1 A8DE
-A8DF A8DF E293A2 A8DF
-A8E0 A8E0 E293A3 A8E0
-A8E1 A8E1 E293A4 A8E1
-A8E2 A8E2 E293A5 A8E2
-A8E3 A8E3 E293A6 A8E3
-A8E4 A8E4 E293A7 A8E4
-A8E5 A8E5 E293A8 A8E5
-A8E6 A8E6 E293A9 A8E6
-A8E7 A8E7 E291A0 A8E7
-A8E8 A8E8 E291A1 A8E8
-A8E9 A8E9 E291A2 A8E9
-A8EA A8EA E291A3 A8EA
-A8EB A8EB E291A4 A8EB
-A8EC A8EC E291A5 A8EC
-A8ED A8ED E291A6 A8ED
-A8EE A8EE E291A7 A8EE
-A8EF A8EF E291A8 A8EF
-A8F0 A8F0 E291A9 A8F0
-A8F1 A8F1 E291AA A8F1
-A8F2 A8F2 E291AB A8F2
-A8F3 A8F3 E291AC A8F3
-A8F4 A8F4 E291AD A8F4
-A8F5 A8F5 E291AE A8F5
-A8F6 A8F6 C2BD A8F6
-A8F7 A8F7 E28593 A8F7
-A8F8 A8F8 E28594 A8F8
-A8F9 A8F9 C2BC A8F9
-A8FA A8FA C2BE A8FA
-A8FB A8FB E2859B A8FB
-A8FC A8FC E2859C A8FC
-A8FD A8FD E2859D A8FD
-A8FE A8FE E2859E A8FE
-A941 A941 ECAF85 A941
-A942 A942 ECAF86 A942
-A943 A943 ECAF87 A943
-A944 A944 ECAF88 A944
-A945 A945 ECAF89 A945
-A946 A946 ECAF8A A946
-A947 A947 ECAF8B A947
-A948 A948 ECAF8C A948
-A949 A949 ECAF8D A949
-A94A A94A ECAF8E A94A
-A94B A94B ECAF8F A94B
-A94C A94C ECAF90 A94C
-A94D A94D ECAF91 A94D
-A94E A94E ECAF92 A94E
-A94F A94F ECAF93 A94F
-A950 A950 ECAF95 A950
-A951 A951 ECAF96 A951
-A952 A952 ECAF97 A952
-A953 A953 ECAF98 A953
-A954 A954 ECAF99 A954
-A955 A955 ECAF9A A955
-A956 A956 ECAF9B A956
-A957 A957 ECAF9C A957
-A958 A958 ECAF9D A958
-A959 A959 ECAF9E A959
-A95A A95A ECAF9F A95A
-A961 A961 ECAFA0 A961
-A962 A962 ECAFA1 A962
-A963 A963 ECAFA2 A963
-A964 A964 ECAFA3 A964
-A965 A965 ECAFA5 A965
-A966 A966 ECAFA6 A966
-A967 A967 ECAFA8 A967
-A968 A968 ECAFAA A968
-A969 A969 ECAFAB A969
-A96A A96A ECAFAC A96A
-A96B A96B ECAFAD A96B
-A96C A96C ECAFAE A96C
-A96D A96D ECAFAF A96D
-A96E A96E ECAFB0 A96E
-A96F A96F ECAFB1 A96F
-A970 A970 ECAFB2 A970
-A971 A971 ECAFB3 A971
-A972 A972 ECAFB4 A972
-A973 A973 ECAFB5 A973
-A974 A974 ECAFB6 A974
-A975 A975 ECAFB7 A975
-A976 A976 ECAFB8 A976
-A977 A977 ECAFB9 A977
-A978 A978 ECAFBA A978
-A979 A979 ECAFBB A979
-A97A A97A ECAFBC A97A
-A981 A981 ECAFBD A981
-A982 A982 ECAFBE A982
-A983 A983 ECAFBF A983
-A984 A984 ECB080 A984
-A985 A985 ECB081 A985
-A986 A986 ECB082 A986
-A987 A987 ECB083 A987
-A988 A988 ECB084 A988
-A989 A989 ECB085 A989
-A98A A98A ECB086 A98A
-A98B A98B ECB087 A98B
-A98C A98C ECB088 A98C
-A98D A98D ECB089 A98D
-A98E A98E ECB08A A98E
-A98F A98F ECB08B A98F
-A990 A990 ECB08E A990
-A991 A991 ECB08F A991
-A992 A992 ECB091 A992
-A993 A993 ECB092 A993
-A994 A994 ECB093 A994
-A995 A995 ECB095 A995
-A996 A996 ECB096 A996
-A997 A997 ECB097 A997
-A998 A998 ECB098 A998
-A999 A999 ECB099 A999
-A99A A99A ECB09A A99A
-A99B A99B ECB09B A99B
-A99C A99C ECB09E A99C
-A99D A99D ECB09F A99D
-A99E A99E ECB0A0 A99E
-A99F A99F ECB0A3 A99F
-A9A0 A9A0 ECB0A4 A9A0
-A9A1 A9A1 C3A6 A9A1
-A9A2 A9A2 C491 A9A2
-A9A3 A9A3 C3B0 A9A3
-A9A4 A9A4 C4A7 A9A4
-A9A5 A9A5 C4B1 A9A5
-A9A6 A9A6 C4B3 A9A6
-A9A7 A9A7 C4B8 A9A7
-A9A8 A9A8 C580 A9A8
-A9A9 A9A9 C582 A9A9
-A9AA A9AA C3B8 A9AA
-A9AB A9AB C593 A9AB
-A9AC A9AC C39F A9AC
-A9AD A9AD C3BE A9AD
-A9AE A9AE C5A7 A9AE
-A9AF A9AF C58B A9AF
-A9B0 A9B0 C589 A9B0
-A9B1 A9B1 E38880 A9B1
-A9B2 A9B2 E38881 A9B2
-A9B3 A9B3 E38882 A9B3
-A9B4 A9B4 E38883 A9B4
-A9B5 A9B5 E38884 A9B5
-A9B6 A9B6 E38885 A9B6
-A9B7 A9B7 E38886 A9B7
-A9B8 A9B8 E38887 A9B8
-A9B9 A9B9 E38888 A9B9
-A9BA A9BA E38889 A9BA
-A9BB A9BB E3888A A9BB
-A9BC A9BC E3888B A9BC
-A9BD A9BD E3888C A9BD
-A9BE A9BE E3888D A9BE
-A9BF A9BF E3888E A9BF
-A9C0 A9C0 E3888F A9C0
-A9C1 A9C1 E38890 A9C1
-A9C2 A9C2 E38891 A9C2
-A9C3 A9C3 E38892 A9C3
-A9C4 A9C4 E38893 A9C4
-A9C5 A9C5 E38894 A9C5
-A9C6 A9C6 E38895 A9C6
-A9C7 A9C7 E38896 A9C7
-A9C8 A9C8 E38897 A9C8
-A9C9 A9C9 E38898 A9C9
-A9CA A9CA E38899 A9CA
-A9CB A9CB E3889A A9CB
-A9CC A9CC E3889B A9CC
-A9CD A9CD E2929C A9CD
-A9CE A9CE E2929D A9CE
-A9CF A9CF E2929E A9CF
-A9D0 A9D0 E2929F A9D0
-A9D1 A9D1 E292A0 A9D1
-A9D2 A9D2 E292A1 A9D2
-A9D3 A9D3 E292A2 A9D3
-A9D4 A9D4 E292A3 A9D4
-A9D5 A9D5 E292A4 A9D5
-A9D6 A9D6 E292A5 A9D6
-A9D7 A9D7 E292A6 A9D7
-A9D8 A9D8 E292A7 A9D8
-A9D9 A9D9 E292A8 A9D9
-A9DA A9DA E292A9 A9DA
-A9DB A9DB E292AA A9DB
-A9DC A9DC E292AB A9DC
-A9DD A9DD E292AC A9DD
-A9DE A9DE E292AD A9DE
-A9DF A9DF E292AE A9DF
-A9E0 A9E0 E292AF A9E0
-A9E1 A9E1 E292B0 A9E1
-A9E2 A9E2 E292B1 A9E2
-A9E3 A9E3 E292B2 A9E3
-A9E4 A9E4 E292B3 A9E4
-A9E5 A9E5 E292B4 A9E5
-A9E6 A9E6 E292B5 A9E6
-A9E7 A9E7 E291B4 A9E7
-A9E8 A9E8 E291B5 A9E8
-A9E9 A9E9 E291B6 A9E9
-A9EA A9EA E291B7 A9EA
-A9EB A9EB E291B8 A9EB
-A9EC A9EC E291B9 A9EC
-A9ED A9ED E291BA A9ED
-A9EE A9EE E291BB A9EE
-A9EF A9EF E291BC A9EF
-A9F0 A9F0 E291BD A9F0
-A9F1 A9F1 E291BE A9F1
-A9F2 A9F2 E291BF A9F2
-A9F3 A9F3 E29280 A9F3
-A9F4 A9F4 E29281 A9F4
-A9F5 A9F5 E29282 A9F5
-A9F6 A9F6 C2B9 A9F6
-A9F7 A9F7 C2B2 A9F7
-A9F8 A9F8 C2B3 A9F8
-A9F9 A9F9 E281B4 A9F9
-A9FA A9FA E281BF A9FA
-A9FB A9FB E28281 A9FB
-A9FC A9FC E28282 A9FC
-A9FD A9FD E28283 A9FD
-A9FE A9FE E28284 A9FE
-AA41 AA41 ECB0A5 AA41
-AA42 AA42 ECB0A6 AA42
-AA43 AA43 ECB0AA AA43
-AA44 AA44 ECB0AB AA44
-AA45 AA45 ECB0AD AA45
-AA46 AA46 ECB0AF AA46
-AA47 AA47 ECB0B1 AA47
-AA48 AA48 ECB0B2 AA48
-AA49 AA49 ECB0B3 AA49
-AA4A AA4A ECB0B4 AA4A
-AA4B AA4B ECB0B5 AA4B
-AA4C AA4C ECB0B6 AA4C
-AA4D AA4D ECB0B7 AA4D
-AA4E AA4E ECB0BA AA4E
-AA4F AA4F ECB0BF AA4F
-AA50 AA50 ECB180 AA50
-AA51 AA51 ECB181 AA51
-AA52 AA52 ECB182 AA52
-AA53 AA53 ECB183 AA53
-AA54 AA54 ECB186 AA54
-AA55 AA55 ECB187 AA55
-AA56 AA56 ECB189 AA56
-AA57 AA57 ECB18A AA57
-AA58 AA58 ECB18B AA58
-AA59 AA59 ECB18D AA59
-AA5A AA5A ECB18E AA5A
-AA61 AA61 ECB18F AA61
-AA62 AA62 ECB190 AA62
-AA63 AA63 ECB191 AA63
-AA64 AA64 ECB192 AA64
-AA65 AA65 ECB193 AA65
-AA66 AA66 ECB196 AA66
-AA67 AA67 ECB19A AA67
-AA68 AA68 ECB19B AA68
-AA69 AA69 ECB19C AA69
-AA6A AA6A ECB19D AA6A
-AA6B AA6B ECB19E AA6B
-AA6C AA6C ECB19F AA6C
-AA6D AA6D ECB1A1 AA6D
-AA6E AA6E ECB1A2 AA6E
-AA6F AA6F ECB1A3 AA6F
-AA70 AA70 ECB1A5 AA70
-AA71 AA71 ECB1A7 AA71
-AA72 AA72 ECB1A9 AA72
-AA73 AA73 ECB1AA AA73
-AA74 AA74 ECB1AB AA74
-AA75 AA75 ECB1AC AA75
-AA76 AA76 ECB1AD AA76
-AA77 AA77 ECB1AE AA77
-AA78 AA78 ECB1AF AA78
-AA79 AA79 ECB1B1 AA79
-AA7A AA7A ECB1B2 AA7A
-AA81 AA81 ECB1B3 AA81
-AA82 AA82 ECB1B4 AA82
-AA83 AA83 ECB1B6 AA83
-AA84 AA84 ECB1B7 AA84
-AA85 AA85 ECB1B8 AA85
-AA86 AA86 ECB1B9 AA86
-AA87 AA87 ECB1BA AA87
-AA88 AA88 ECB1BB AA88
-AA89 AA89 ECB1BC AA89
-AA8A AA8A ECB1BD AA8A
-AA8B AA8B ECB1BE AA8B
-AA8C AA8C ECB1BF AA8C
-AA8D AA8D ECB280 AA8D
-AA8E AA8E ECB281 AA8E
-AA8F AA8F ECB282 AA8F
-AA90 AA90 ECB283 AA90
-AA91 AA91 ECB284 AA91
-AA92 AA92 ECB285 AA92
-AA93 AA93 ECB286 AA93
-AA94 AA94 ECB287 AA94
-AA95 AA95 ECB288 AA95
-AA96 AA96 ECB289 AA96
-AA97 AA97 ECB28A AA97
-AA98 AA98 ECB28B AA98
-AA99 AA99 ECB28C AA99
-AA9A AA9A ECB28D AA9A
-AA9B AA9B ECB28E AA9B
-AA9C AA9C ECB28F AA9C
-AA9D AA9D ECB290 AA9D
-AA9E AA9E ECB291 AA9E
-AA9F AA9F ECB292 AA9F
-AAA0 AAA0 ECB293 AAA0
-AAA1 AAA1 E38181 AAA1
-AAA2 AAA2 E38182 AAA2
-AAA3 AAA3 E38183 AAA3
-AAA4 AAA4 E38184 AAA4
-AAA5 AAA5 E38185 AAA5
-AAA6 AAA6 E38186 AAA6
-AAA7 AAA7 E38187 AAA7
-AAA8 AAA8 E38188 AAA8
-AAA9 AAA9 E38189 AAA9
-AAAA AAAA E3818A AAAA
-AAAB AAAB E3818B AAAB
-AAAC AAAC E3818C AAAC
-AAAD AAAD E3818D AAAD
-AAAE AAAE E3818E AAAE
-AAAF AAAF E3818F AAAF
-AAB0 AAB0 E38190 AAB0
-AAB1 AAB1 E38191 AAB1
-AAB2 AAB2 E38192 AAB2
-AAB3 AAB3 E38193 AAB3
-AAB4 AAB4 E38194 AAB4
-AAB5 AAB5 E38195 AAB5
-AAB6 AAB6 E38196 AAB6
-AAB7 AAB7 E38197 AAB7
-AAB8 AAB8 E38198 AAB8
-AAB9 AAB9 E38199 AAB9
-AABA AABA E3819A AABA
-AABB AABB E3819B AABB
-AABC AABC E3819C AABC
-AABD AABD E3819D AABD
-AABE AABE E3819E AABE
-AABF AABF E3819F AABF
-AAC0 AAC0 E381A0 AAC0
-AAC1 AAC1 E381A1 AAC1
-AAC2 AAC2 E381A2 AAC2
-AAC3 AAC3 E381A3 AAC3
-AAC4 AAC4 E381A4 AAC4
-AAC5 AAC5 E381A5 AAC5
-AAC6 AAC6 E381A6 AAC6
-AAC7 AAC7 E381A7 AAC7
-AAC8 AAC8 E381A8 AAC8
-AAC9 AAC9 E381A9 AAC9
-AACA AACA E381AA AACA
-AACB AACB E381AB AACB
-AACC AACC E381AC AACC
-AACD AACD E381AD AACD
-AACE AACE E381AE AACE
-AACF AACF E381AF AACF
-AAD0 AAD0 E381B0 AAD0
-AAD1 AAD1 E381B1 AAD1
-AAD2 AAD2 E381B2 AAD2
-AAD3 AAD3 E381B3 AAD3
-AAD4 AAD4 E381B4 AAD4
-AAD5 AAD5 E381B5 AAD5
-AAD6 AAD6 E381B6 AAD6
-AAD7 AAD7 E381B7 AAD7
-AAD8 AAD8 E381B8 AAD8
-AAD9 AAD9 E381B9 AAD9
-AADA AADA E381BA AADA
-AADB AADB E381BB AADB
-AADC AADC E381BC AADC
-AADD AADD E381BD AADD
-AADE AADE E381BE AADE
-AADF AADF E381BF AADF
-AAE0 AAE0 E38280 AAE0
-AAE1 AAE1 E38281 AAE1
-AAE2 AAE2 E38282 AAE2
-AAE3 AAE3 E38283 AAE3
-AAE4 AAE4 E38284 AAE4
-AAE5 AAE5 E38285 AAE5
-AAE6 AAE6 E38286 AAE6
-AAE7 AAE7 E38287 AAE7
-AAE8 AAE8 E38288 AAE8
-AAE9 AAE9 E38289 AAE9
-AAEA AAEA E3828A AAEA
-AAEB AAEB E3828B AAEB
-AAEC AAEC E3828C AAEC
-AAED AAED E3828D AAED
-AAEE AAEE E3828E AAEE
-AAEF AAEF E3828F AAEF
-AAF0 AAF0 E38290 AAF0
-AAF1 AAF1 E38291 AAF1
-AAF2 AAF2 E38292 AAF2
-AAF3 AAF3 E38293 AAF3
-AB41 AB41 ECB294 AB41
-AB42 AB42 ECB295 AB42
-AB43 AB43 ECB296 AB43
-AB44 AB44 ECB297 AB44
-AB45 AB45 ECB29A AB45
-AB46 AB46 ECB29B AB46
-AB47 AB47 ECB29D AB47
-AB48 AB48 ECB29E AB48
-AB49 AB49 ECB29F AB49
-AB4A AB4A ECB2A1 AB4A
-AB4B AB4B ECB2A2 AB4B
-AB4C AB4C ECB2A3 AB4C
-AB4D AB4D ECB2A4 AB4D
-AB4E AB4E ECB2A5 AB4E
-AB4F AB4F ECB2A6 AB4F
-AB50 AB50 ECB2A7 AB50
-AB51 AB51 ECB2AA AB51
-AB52 AB52 ECB2AE AB52
-AB53 AB53 ECB2AF AB53
-AB54 AB54 ECB2B0 AB54
-AB55 AB55 ECB2B1 AB55
-AB56 AB56 ECB2B2 AB56
-AB57 AB57 ECB2B3 AB57
-AB58 AB58 ECB2B6 AB58
-AB59 AB59 ECB2B7 AB59
-AB5A AB5A ECB2B9 AB5A
-AB61 AB61 ECB2BA AB61
-AB62 AB62 ECB2BB AB62
-AB63 AB63 ECB2BD AB63
-AB64 AB64 ECB2BE AB64
-AB65 AB65 ECB2BF AB65
-AB66 AB66 ECB380 AB66
-AB67 AB67 ECB381 AB67
-AB68 AB68 ECB382 AB68
-AB69 AB69 ECB383 AB69
-AB6A AB6A ECB386 AB6A
-AB6B AB6B ECB388 AB6B
-AB6C AB6C ECB38A AB6C
-AB6D AB6D ECB38B AB6D
-AB6E AB6E ECB38C AB6E
-AB6F AB6F ECB38D AB6F
-AB70 AB70 ECB38E AB70
-AB71 AB71 ECB38F AB71
-AB72 AB72 ECB391 AB72
-AB73 AB73 ECB392 AB73
-AB74 AB74 ECB393 AB74
-AB75 AB75 ECB395 AB75
-AB76 AB76 ECB396 AB76
-AB77 AB77 ECB397 AB77
-AB78 AB78 ECB398 AB78
-AB79 AB79 ECB399 AB79
-AB7A AB7A ECB39A AB7A
-AB81 AB81 ECB39B AB81
-AB82 AB82 ECB39C AB82
-AB83 AB83 ECB39D AB83
-AB84 AB84 ECB39E AB84
-AB85 AB85 ECB39F AB85
-AB86 AB86 ECB3A0 AB86
-AB87 AB87 ECB3A1 AB87
-AB88 AB88 ECB3A2 AB88
-AB89 AB89 ECB3A3 AB89
-AB8A AB8A ECB3A5 AB8A
-AB8B AB8B ECB3A6 AB8B
-AB8C AB8C ECB3A7 AB8C
-AB8D AB8D ECB3A8 AB8D
-AB8E AB8E ECB3A9 AB8E
-AB8F AB8F ECB3AA AB8F
-AB90 AB90 ECB3AB AB90
-AB91 AB91 ECB3AD AB91
-AB92 AB92 ECB3AE AB92
-AB93 AB93 ECB3AF AB93
-AB94 AB94 ECB3B1 AB94
-AB95 AB95 ECB3B2 AB95
-AB96 AB96 ECB3B3 AB96
-AB97 AB97 ECB3B4 AB97
-AB98 AB98 ECB3B5 AB98
-AB99 AB99 ECB3B6 AB99
-AB9A AB9A ECB3B7 AB9A
-AB9B AB9B ECB3B8 AB9B
-AB9C AB9C ECB3B9 AB9C
-AB9D AB9D ECB3BA AB9D
-AB9E AB9E ECB3BB AB9E
-AB9F AB9F ECB3BC AB9F
-ABA0 ABA0 ECB3BD ABA0
-ABA1 ABA1 E382A1 ABA1
-ABA2 ABA2 E382A2 ABA2
-ABA3 ABA3 E382A3 ABA3
-ABA4 ABA4 E382A4 ABA4
-ABA5 ABA5 E382A5 ABA5
-ABA6 ABA6 E382A6 ABA6
-ABA7 ABA7 E382A7 ABA7
-ABA8 ABA8 E382A8 ABA8
-ABA9 ABA9 E382A9 ABA9
-ABAA ABAA E382AA ABAA
-ABAB ABAB E382AB ABAB
-ABAC ABAC E382AC ABAC
-ABAD ABAD E382AD ABAD
-ABAE ABAE E382AE ABAE
-ABAF ABAF E382AF ABAF
-ABB0 ABB0 E382B0 ABB0
-ABB1 ABB1 E382B1 ABB1
-ABB2 ABB2 E382B2 ABB2
-ABB3 ABB3 E382B3 ABB3
-ABB4 ABB4 E382B4 ABB4
-ABB5 ABB5 E382B5 ABB5
-ABB6 ABB6 E382B6 ABB6
-ABB7 ABB7 E382B7 ABB7
-ABB8 ABB8 E382B8 ABB8
-ABB9 ABB9 E382B9 ABB9
-ABBA ABBA E382BA ABBA
-ABBB ABBB E382BB ABBB
-ABBC ABBC E382BC ABBC
-ABBD ABBD E382BD ABBD
-ABBE ABBE E382BE ABBE
-ABBF ABBF E382BF ABBF
-ABC0 ABC0 E38380 ABC0
-ABC1 ABC1 E38381 ABC1
-ABC2 ABC2 E38382 ABC2
-ABC3 ABC3 E38383 ABC3
-ABC4 ABC4 E38384 ABC4
-ABC5 ABC5 E38385 ABC5
-ABC6 ABC6 E38386 ABC6
-ABC7 ABC7 E38387 ABC7
-ABC8 ABC8 E38388 ABC8
-ABC9 ABC9 E38389 ABC9
-ABCA ABCA E3838A ABCA
-ABCB ABCB E3838B ABCB
-ABCC ABCC E3838C ABCC
-ABCD ABCD E3838D ABCD
-ABCE ABCE E3838E ABCE
-ABCF ABCF E3838F ABCF
-ABD0 ABD0 E38390 ABD0
-ABD1 ABD1 E38391 ABD1
-ABD2 ABD2 E38392 ABD2
-ABD3 ABD3 E38393 ABD3
-ABD4 ABD4 E38394 ABD4
-ABD5 ABD5 E38395 ABD5
-ABD6 ABD6 E38396 ABD6
-ABD7 ABD7 E38397 ABD7
-ABD8 ABD8 E38398 ABD8
-ABD9 ABD9 E38399 ABD9
-ABDA ABDA E3839A ABDA
-ABDB ABDB E3839B ABDB
-ABDC ABDC E3839C ABDC
-ABDD ABDD E3839D ABDD
-ABDE ABDE E3839E ABDE
-ABDF ABDF E3839F ABDF
-ABE0 ABE0 E383A0 ABE0
-ABE1 ABE1 E383A1 ABE1
-ABE2 ABE2 E383A2 ABE2
-ABE3 ABE3 E383A3 ABE3
-ABE4 ABE4 E383A4 ABE4
-ABE5 ABE5 E383A5 ABE5
-ABE6 ABE6 E383A6 ABE6
-ABE7 ABE7 E383A7 ABE7
-ABE8 ABE8 E383A8 ABE8
-ABE9 ABE9 E383A9 ABE9
-ABEA ABEA E383AA ABEA
-ABEB ABEB E383AB ABEB
-ABEC ABEC E383AC ABEC
-ABED ABED E383AD ABED
-ABEE ABEE E383AE ABEE
-ABEF ABEF E383AF ABEF
-ABF0 ABF0 E383B0 ABF0
-ABF1 ABF1 E383B1 ABF1
-ABF2 ABF2 E383B2 ABF2
-ABF3 ABF3 E383B3 ABF3
-ABF4 ABF4 E383B4 ABF4
-ABF5 ABF5 E383B5 ABF5
-ABF6 ABF6 E383B6 ABF6
-AC41 AC41 ECB3BE AC41
-AC42 AC42 ECB3BF AC42
-AC43 AC43 ECB480 AC43
-AC44 AC44 ECB482 AC44
-AC45 AC45 ECB483 AC45
-AC46 AC46 ECB484 AC46
-AC47 AC47 ECB485 AC47
-AC48 AC48 ECB486 AC48
-AC49 AC49 ECB487 AC49
-AC4A AC4A ECB48A AC4A
-AC4B AC4B ECB48B AC4B
-AC4C AC4C ECB48D AC4C
-AC4D AC4D ECB48E AC4D
-AC4E AC4E ECB48F AC4E
-AC4F AC4F ECB491 AC4F
-AC50 AC50 ECB492 AC50
-AC51 AC51 ECB493 AC51
-AC52 AC52 ECB494 AC52
-AC53 AC53 ECB495 AC53
-AC54 AC54 ECB496 AC54
-AC55 AC55 ECB497 AC55
-AC56 AC56 ECB49A AC56
-AC57 AC57 ECB49C AC57
-AC58 AC58 ECB49E AC58
-AC59 AC59 ECB49F AC59
-AC5A AC5A ECB4A0 AC5A
-AC61 AC61 ECB4A1 AC61
-AC62 AC62 ECB4A2 AC62
-AC63 AC63 ECB4A3 AC63
-AC64 AC64 ECB4A5 AC64
-AC65 AC65 ECB4A6 AC65
-AC66 AC66 ECB4A7 AC66
-AC67 AC67 ECB4A9 AC67
-AC68 AC68 ECB4AA AC68
-AC69 AC69 ECB4AB AC69
-AC6A AC6A ECB4AD AC6A
-AC6B AC6B ECB4AE AC6B
-AC6C AC6C ECB4AF AC6C
-AC6D AC6D ECB4B0 AC6D
-AC6E AC6E ECB4B1 AC6E
-AC6F AC6F ECB4B2 AC6F
-AC70 AC70 ECB4B3 AC70
-AC71 AC71 ECB4B4 AC71
-AC72 AC72 ECB4B5 AC72
-AC73 AC73 ECB4B6 AC73
-AC74 AC74 ECB4B7 AC74
-AC75 AC75 ECB4B8 AC75
-AC76 AC76 ECB4BA AC76
-AC77 AC77 ECB4BB AC77
-AC78 AC78 ECB4BC AC78
-AC79 AC79 ECB4BD AC79
-AC7A AC7A ECB4BE AC7A
-AC81 AC81 ECB4BF AC81
-AC82 AC82 ECB580 AC82
-AC83 AC83 ECB581 AC83
-AC84 AC84 ECB582 AC84
-AC85 AC85 ECB583 AC85
-AC86 AC86 ECB584 AC86
-AC87 AC87 ECB585 AC87
-AC88 AC88 ECB586 AC88
-AC89 AC89 ECB587 AC89
-AC8A AC8A ECB588 AC8A
-AC8B AC8B ECB589 AC8B
-AC8C AC8C ECB58A AC8C
-AC8D AC8D ECB58B AC8D
-AC8E AC8E ECB58C AC8E
-AC8F AC8F ECB58D AC8F
-AC90 AC90 ECB58E AC90
-AC91 AC91 ECB58F AC91
-AC92 AC92 ECB590 AC92
-AC93 AC93 ECB591 AC93
-AC94 AC94 ECB592 AC94
-AC95 AC95 ECB593 AC95
-AC96 AC96 ECB594 AC96
-AC97 AC97 ECB595 AC97
-AC98 AC98 ECB596 AC98
-AC99 AC99 ECB597 AC99
-AC9A AC9A ECB598 AC9A
-AC9B AC9B ECB599 AC9B
-AC9C AC9C ECB59A AC9C
-AC9D AC9D ECB59B AC9D
-AC9E AC9E ECB59D AC9E
-AC9F AC9F ECB59E AC9F
-ACA0 ACA0 ECB59F ACA0
-ACA1 ACA1 D090 ACA1
-ACA2 ACA2 D091 ACA2
-ACA3 ACA3 D092 ACA3
-ACA4 ACA4 D093 ACA4
-ACA5 ACA5 D094 ACA5
-ACA6 ACA6 D095 ACA6
-ACA7 ACA7 D081 ACA7
-ACA8 ACA8 D096 ACA8
-ACA9 ACA9 D097 ACA9
-ACAA ACAA D098 ACAA
-ACAB ACAB D099 ACAB
-ACAC ACAC D09A ACAC
-ACAD ACAD D09B ACAD
-ACAE ACAE D09C ACAE
-ACAF ACAF D09D ACAF
-ACB0 ACB0 D09E ACB0
-ACB1 ACB1 D09F ACB1
-ACB2 ACB2 D0A0 ACB2
-ACB3 ACB3 D0A1 ACB3
-ACB4 ACB4 D0A2 ACB4
-ACB5 ACB5 D0A3 ACB5
-ACB6 ACB6 D0A4 ACB6
-ACB7 ACB7 D0A5 ACB7
-ACB8 ACB8 D0A6 ACB8
-ACB9 ACB9 D0A7 ACB9
-ACBA ACBA D0A8 ACBA
-ACBB ACBB D0A9 ACBB
-ACBC ACBC D0AA ACBC
-ACBD ACBD D0AB ACBD
-ACBE ACBE D0AC ACBE
-ACBF ACBF D0AD ACBF
-ACC0 ACC0 D0AE ACC0
-ACC1 ACC1 D0AF ACC1
-ACD1 ACD1 D0B0 ACD1
-ACD2 ACD2 D0B1 ACD2
-ACD3 ACD3 D0B2 ACD3
-ACD4 ACD4 D0B3 ACD4
-ACD5 ACD5 D0B4 ACD5
-ACD6 ACD6 D0B5 ACD6
-ACD7 ACD7 D191 ACD7
-ACD8 ACD8 D0B6 ACD8
-ACD9 ACD9 D0B7 ACD9
-ACDA ACDA D0B8 ACDA
-ACDB ACDB D0B9 ACDB
-ACDC ACDC D0BA ACDC
-ACDD ACDD D0BB ACDD
-ACDE ACDE D0BC ACDE
-ACDF ACDF D0BD ACDF
-ACE0 ACE0 D0BE ACE0
-ACE1 ACE1 D0BF ACE1
-ACE2 ACE2 D180 ACE2
-ACE3 ACE3 D181 ACE3
-ACE4 ACE4 D182 ACE4
-ACE5 ACE5 D183 ACE5
-ACE6 ACE6 D184 ACE6
-ACE7 ACE7 D185 ACE7
-ACE8 ACE8 D186 ACE8
-ACE9 ACE9 D187 ACE9
-ACEA ACEA D188 ACEA
-ACEB ACEB D189 ACEB
-ACEC ACEC D18A ACEC
-ACED ACED D18B ACED
-ACEE ACEE D18C ACEE
-ACEF ACEF D18D ACEF
-ACF0 ACF0 D18E ACF0
-ACF1 ACF1 D18F ACF1
-AD41 AD41 ECB5A1 AD41
-AD42 AD42 ECB5A2 AD42
-AD43 AD43 ECB5A3 AD43
-AD44 AD44 ECB5A5 AD44
-AD45 AD45 ECB5A6 AD45
-AD46 AD46 ECB5A7 AD46
-AD47 AD47 ECB5A8 AD47
-AD48 AD48 ECB5A9 AD48
-AD49 AD49 ECB5AA AD49
-AD4A AD4A ECB5AB AD4A
-AD4B AD4B ECB5AE AD4B
-AD4C AD4C ECB5B0 AD4C
-AD4D AD4D ECB5B2 AD4D
-AD4E AD4E ECB5B3 AD4E
-AD4F AD4F ECB5B4 AD4F
-AD50 AD50 ECB5B5 AD50
-AD51 AD51 ECB5B6 AD51
-AD52 AD52 ECB5B7 AD52
-AD53 AD53 ECB5B9 AD53
-AD54 AD54 ECB5BA AD54
-AD55 AD55 ECB5BB AD55
-AD56 AD56 ECB5BC AD56
-AD57 AD57 ECB5BD AD57
-AD58 AD58 ECB5BE AD58
-AD59 AD59 ECB5BF AD59
-AD5A AD5A ECB680 AD5A
-AD61 AD61 ECB681 AD61
-AD62 AD62 ECB682 AD62
-AD63 AD63 ECB683 AD63
-AD64 AD64 ECB684 AD64
-AD65 AD65 ECB685 AD65
-AD66 AD66 ECB686 AD66
-AD67 AD67 ECB687 AD67
-AD68 AD68 ECB689 AD68
-AD69 AD69 ECB68A AD69
-AD6A AD6A ECB68B AD6A
-AD6B AD6B ECB68C AD6B
-AD6C AD6C ECB68D AD6C
-AD6D AD6D ECB68E AD6D
-AD6E AD6E ECB68F AD6E
-AD6F AD6F ECB690 AD6F
-AD70 AD70 ECB691 AD70
-AD71 AD71 ECB692 AD71
-AD72 AD72 ECB693 AD72
-AD73 AD73 ECB696 AD73
-AD74 AD74 ECB697 AD74
-AD75 AD75 ECB699 AD75
-AD76 AD76 ECB69A AD76
-AD77 AD77 ECB69B AD77
-AD78 AD78 ECB69D AD78
-AD79 AD79 ECB69E AD79
-AD7A AD7A ECB69F AD7A
-AD81 AD81 ECB6A0 AD81
-AD82 AD82 ECB6A1 AD82
-AD83 AD83 ECB6A2 AD83
-AD84 AD84 ECB6A3 AD84
-AD85 AD85 ECB6A6 AD85
-AD86 AD86 ECB6A8 AD86
-AD87 AD87 ECB6AA AD87
-AD88 AD88 ECB6AB AD88
-AD89 AD89 ECB6AC AD89
-AD8A AD8A ECB6AD AD8A
-AD8B AD8B ECB6AE AD8B
-AD8C AD8C ECB6AF AD8C
-AD8D AD8D ECB6B1 AD8D
-AD8E AD8E ECB6B2 AD8E
-AD8F AD8F ECB6B3 AD8F
-AD90 AD90 ECB6B4 AD90
-AD91 AD91 ECB6B5 AD91
-AD92 AD92 ECB6B6 AD92
-AD93 AD93 ECB6B7 AD93
-AD94 AD94 ECB6B8 AD94
-AD95 AD95 ECB6B9 AD95
-AD96 AD96 ECB6BA AD96
-AD97 AD97 ECB6BB AD97
-AD98 AD98 ECB6BC AD98
-AD99 AD99 ECB6BD AD99
-AD9A AD9A ECB6BE AD9A
-AD9B AD9B ECB6BF AD9B
-AD9C AD9C ECB780 AD9C
-AD9D AD9D ECB781 AD9D
-AD9E AD9E ECB782 AD9E
-AD9F AD9F ECB783 AD9F
-ADA0 ADA0 ECB785 ADA0
-AE41 AE41 ECB786 AE41
-AE42 AE42 ECB787 AE42
-AE43 AE43 ECB788 AE43
-AE44 AE44 ECB789 AE44
-AE45 AE45 ECB78A AE45
-AE46 AE46 ECB78B AE46
-AE47 AE47 ECB78D AE47
-AE48 AE48 ECB78E AE48
-AE49 AE49 ECB78F AE49
-AE4A AE4A ECB791 AE4A
-AE4B AE4B ECB792 AE4B
-AE4C AE4C ECB793 AE4C
-AE4D AE4D ECB794 AE4D
-AE4E AE4E ECB795 AE4E
-AE4F AE4F ECB796 AE4F
-AE50 AE50 ECB797 AE50
-AE51 AE51 ECB798 AE51
-AE52 AE52 ECB799 AE52
-AE53 AE53 ECB79A AE53
-AE54 AE54 ECB79B AE54
-AE55 AE55 ECB79C AE55
-AE56 AE56 ECB79D AE56
-AE57 AE57 ECB79E AE57
-AE58 AE58 ECB79F AE58
-AE59 AE59 ECB7A0 AE59
-AE5A AE5A ECB7A1 AE5A
-AE61 AE61 ECB7A2 AE61
-AE62 AE62 ECB7A3 AE62
-AE63 AE63 ECB7A4 AE63
-AE64 AE64 ECB7A5 AE64
-AE65 AE65 ECB7A6 AE65
-AE66 AE66 ECB7A7 AE66
-AE67 AE67 ECB7A9 AE67
-AE68 AE68 ECB7AA AE68
-AE69 AE69 ECB7AB AE69
-AE6A AE6A ECB7AD AE6A
-AE6B AE6B ECB7AE AE6B
-AE6C AE6C ECB7AF AE6C
-AE6D AE6D ECB7B1 AE6D
-AE6E AE6E ECB7B2 AE6E
-AE6F AE6F ECB7B3 AE6F
-AE70 AE70 ECB7B4 AE70
-AE71 AE71 ECB7B5 AE71
-AE72 AE72 ECB7B6 AE72
-AE73 AE73 ECB7B7 AE73
-AE74 AE74 ECB7BA AE74
-AE75 AE75 ECB7BC AE75
-AE76 AE76 ECB7BE AE76
-AE77 AE77 ECB7BF AE77
-AE78 AE78 ECB880 AE78
-AE79 AE79 ECB881 AE79
-AE7A AE7A ECB882 AE7A
-AE81 AE81 ECB883 AE81
-AE82 AE82 ECB885 AE82
-AE83 AE83 ECB886 AE83
-AE84 AE84 ECB887 AE84
-AE85 AE85 ECB889 AE85
-AE86 AE86 ECB88A AE86
-AE87 AE87 ECB88B AE87
-AE88 AE88 ECB88D AE88
-AE89 AE89 ECB88E AE89
-AE8A AE8A ECB88F AE8A
-AE8B AE8B ECB890 AE8B
-AE8C AE8C ECB891 AE8C
-AE8D AE8D ECB892 AE8D
-AE8E AE8E ECB893 AE8E
-AE8F AE8F ECB895 AE8F
-AE90 AE90 ECB896 AE90
-AE91 AE91 ECB897 AE91
-AE92 AE92 ECB898 AE92
-AE93 AE93 ECB89A AE93
-AE94 AE94 ECB89B AE94
-AE95 AE95 ECB89C AE95
-AE96 AE96 ECB89D AE96
-AE97 AE97 ECB89E AE97
-AE98 AE98 ECB89F AE98
-AE99 AE99 ECB8A2 AE99
-AE9A AE9A ECB8A3 AE9A
-AE9B AE9B ECB8A5 AE9B
-AE9C AE9C ECB8A6 AE9C
-AE9D AE9D ECB8A7 AE9D
-AE9E AE9E ECB8A9 AE9E
-AE9F AE9F ECB8AA AE9F
-AEA0 AEA0 ECB8AB AEA0
-AF41 AF41 ECB8AC AF41
-AF42 AF42 ECB8AD AF42
-AF43 AF43 ECB8AE AF43
-AF44 AF44 ECB8AF AF44
-AF45 AF45 ECB8B2 AF45
-AF46 AF46 ECB8B4 AF46
-AF47 AF47 ECB8B6 AF47
-AF48 AF48 ECB8B7 AF48
-AF49 AF49 ECB8B8 AF49
-AF4A AF4A ECB8B9 AF4A
-AF4B AF4B ECB8BA AF4B
-AF4C AF4C ECB8BB AF4C
-AF4D AF4D ECB8BC AF4D
-AF4E AF4E ECB8BD AF4E
-AF4F AF4F ECB8BE AF4F
-AF50 AF50 ECB8BF AF50
-AF51 AF51 ECB980 AF51
-AF52 AF52 ECB981 AF52
-AF53 AF53 ECB982 AF53
-AF54 AF54 ECB983 AF54
-AF55 AF55 ECB984 AF55
-AF56 AF56 ECB985 AF56
-AF57 AF57 ECB986 AF57
-AF58 AF58 ECB987 AF58
-AF59 AF59 ECB988 AF59
-AF5A AF5A ECB989 AF5A
-AF61 AF61 ECB98A AF61
-AF62 AF62 ECB98B AF62
-AF63 AF63 ECB98C AF63
-AF64 AF64 ECB98D AF64
-AF65 AF65 ECB98E AF65
-AF66 AF66 ECB98F AF66
-AF67 AF67 ECB990 AF67
-AF68 AF68 ECB991 AF68
-AF69 AF69 ECB992 AF69
-AF6A AF6A ECB993 AF6A
-AF6B AF6B ECB994 AF6B
-AF6C AF6C ECB995 AF6C
-AF6D AF6D ECB996 AF6D
-AF6E AF6E ECB997 AF6E
-AF6F AF6F ECB99A AF6F
-AF70 AF70 ECB99B AF70
-AF71 AF71 ECB99D AF71
-AF72 AF72 ECB99E AF72
-AF73 AF73 ECB9A2 AF73
-AF74 AF74 ECB9A3 AF74
-AF75 AF75 ECB9A4 AF75
-AF76 AF76 ECB9A5 AF76
-AF77 AF77 ECB9A6 AF77
-AF78 AF78 ECB9A7 AF78
-AF79 AF79 ECB9AA AF79
-AF7A AF7A ECB9AC AF7A
-AF81 AF81 ECB9AE AF81
-AF82 AF82 ECB9AF AF82
-AF83 AF83 ECB9B0 AF83
-AF84 AF84 ECB9B1 AF84
-AF85 AF85 ECB9B2 AF85
-AF86 AF86 ECB9B3 AF86
-AF87 AF87 ECB9B6 AF87
-AF88 AF88 ECB9B7 AF88
-AF89 AF89 ECB9B9 AF89
-AF8A AF8A ECB9BA AF8A
-AF8B AF8B ECB9BB AF8B
-AF8C AF8C ECB9BD AF8C
-AF8D AF8D ECB9BE AF8D
-AF8E AF8E ECB9BF AF8E
-AF8F AF8F ECBA80 AF8F
-AF90 AF90 ECBA81 AF90
-AF91 AF91 ECBA82 AF91
-AF92 AF92 ECBA83 AF92
-AF93 AF93 ECBA86 AF93
-AF94 AF94 ECBA88 AF94
-AF95 AF95 ECBA8A AF95
-AF96 AF96 ECBA8B AF96
-AF97 AF97 ECBA8C AF97
-AF98 AF98 ECBA8D AF98
-AF99 AF99 ECBA8E AF99
-AF9A AF9A ECBA8F AF9A
-AF9B AF9B ECBA92 AF9B
-AF9C AF9C ECBA93 AF9C
-AF9D AF9D ECBA95 AF9D
-AF9E AF9E ECBA96 AF9E
-AF9F AF9F ECBA97 AF9F
-AFA0 AFA0 ECBA99 AFA0
-B041 B041 ECBA9A B041
-B042 B042 ECBA9B B042
-B043 B043 ECBA9C B043
-B044 B044 ECBA9D B044
-B045 B045 ECBA9E B045
-B046 B046 ECBA9F B046
-B047 B047 ECBAA2 B047
-B048 B048 ECBAA6 B048
-B049 B049 ECBAA7 B049
-B04A B04A ECBAA8 B04A
-B04B B04B ECBAA9 B04B
-B04C B04C ECBAAA B04C
-B04D B04D ECBAAB B04D
-B04E B04E ECBAAE B04E
-B04F B04F ECBAAF B04F
-B050 B050 ECBAB0 B050
-B051 B051 ECBAB1 B051
-B052 B052 ECBAB2 B052
-B053 B053 ECBAB3 B053
-B054 B054 ECBAB4 B054
-B055 B055 ECBAB5 B055
-B056 B056 ECBAB6 B056
-B057 B057 ECBAB7 B057
-B058 B058 ECBAB8 B058
-B059 B059 ECBAB9 B059
-B05A B05A ECBABA B05A
-B061 B061 ECBABB B061
-B062 B062 ECBABC B062
-B063 B063 ECBABD B063
-B064 B064 ECBABE B064
-B065 B065 ECBABF B065
-B066 B066 ECBB80 B066
-B067 B067 ECBB82 B067
-B068 B068 ECBB83 B068
-B069 B069 ECBB84 B069
-B06A B06A ECBB85 B06A
-B06B B06B ECBB86 B06B
-B06C B06C ECBB87 B06C
-B06D B06D ECBB88 B06D
-B06E B06E ECBB89 B06E
-B06F B06F ECBB8A B06F
-B070 B070 ECBB8B B070
-B071 B071 ECBB8C B071
-B072 B072 ECBB8D B072
-B073 B073 ECBB8E B073
-B074 B074 ECBB8F B074
-B075 B075 ECBB90 B075
-B076 B076 ECBB91 B076
-B077 B077 ECBB92 B077
-B078 B078 ECBB93 B078
-B079 B079 ECBB94 B079
-B07A B07A ECBB95 B07A
-B081 B081 ECBB96 B081
-B082 B082 ECBB97 B082
-B083 B083 ECBB98 B083
-B084 B084 ECBB99 B084
-B085 B085 ECBB9A B085
-B086 B086 ECBB9B B086
-B087 B087 ECBB9C B087
-B088 B088 ECBB9D B088
-B089 B089 ECBB9E B089
-B08A B08A ECBB9F B08A
-B08B B08B ECBBA0 B08B
-B08C B08C ECBBA1 B08C
-B08D B08D ECBBA2 B08D
-B08E B08E ECBBA3 B08E
-B08F B08F ECBBA6 B08F
-B090 B090 ECBBA7 B090
-B091 B091 ECBBA9 B091
-B092 B092 ECBBAA B092
-B093 B093 ECBBAD B093
-B094 B094 ECBBAE B094
-B095 B095 ECBBAF B095
-B096 B096 ECBBB0 B096
-B097 B097 ECBBB1 B097
-B098 B098 ECBBB2 B098
-B099 B099 ECBBB3 B099
-B09A B09A ECBBB6 B09A
-B09B B09B ECBBBA B09B
-B09C B09C ECBBBB B09C
-B09D B09D ECBBBC B09D
-B09E B09E ECBBBD B09E
-B09F B09F ECBBBE B09F
-B0A0 B0A0 ECBBBF B0A0
-B0A1 B0A1 EAB080 B0A1
-B0A2 B0A2 EAB081 B0A2
-B0A3 B0A3 EAB084 B0A3
-B0A4 B0A4 EAB087 B0A4
-B0A5 B0A5 EAB088 B0A5
-B0A6 B0A6 EAB089 B0A6
-B0A7 B0A7 EAB08A B0A7
-B0A8 B0A8 EAB090 B0A8
-B0A9 B0A9 EAB091 B0A9
-B0AA B0AA EAB092 B0AA
-B0AB B0AB EAB093 B0AB
-B0AC B0AC EAB094 B0AC
-B0AD B0AD EAB095 B0AD
-B0AE B0AE EAB096 B0AE
-B0AF B0AF EAB097 B0AF
-B0B0 B0B0 EAB099 B0B0
-B0B1 B0B1 EAB09A B0B1
-B0B2 B0B2 EAB09B B0B2
-B0B3 B0B3 EAB09C B0B3
-B0B4 B0B4 EAB09D B0B4
-B0B5 B0B5 EAB0A0 B0B5
-B0B6 B0B6 EAB0A4 B0B6
-B0B7 B0B7 EAB0AC B0B7
-B0B8 B0B8 EAB0AD B0B8
-B0B9 B0B9 EAB0AF B0B9
-B0BA B0BA EAB0B0 B0BA
-B0BB B0BB EAB0B1 B0BB
-B0BC B0BC EAB0B8 B0BC
-B0BD B0BD EAB0B9 B0BD
-B0BE B0BE EAB0BC B0BE
-B0BF B0BF EAB180 B0BF
-B0C0 B0C0 EAB18B B0C0
-B0C1 B0C1 EAB18D B0C1
-B0C2 B0C2 EAB194 B0C2
-B0C3 B0C3 EAB198 B0C3
-B0C4 B0C4 EAB19C B0C4
-B0C5 B0C5 EAB1B0 B0C5
-B0C6 B0C6 EAB1B1 B0C6
-B0C7 B0C7 EAB1B4 B0C7
-B0C8 B0C8 EAB1B7 B0C8
-B0C9 B0C9 EAB1B8 B0C9
-B0CA B0CA EAB1BA B0CA
-B0CB B0CB EAB280 B0CB
-B0CC B0CC EAB281 B0CC
-B0CD B0CD EAB283 B0CD
-B0CE B0CE EAB284 B0CE
-B0CF B0CF EAB285 B0CF
-B0D0 B0D0 EAB286 B0D0
-B0D1 B0D1 EAB289 B0D1
-B0D2 B0D2 EAB28A B0D2
-B0D3 B0D3 EAB28B B0D3
-B0D4 B0D4 EAB28C B0D4
-B0D5 B0D5 EAB290 B0D5
-B0D6 B0D6 EAB294 B0D6
-B0D7 B0D7 EAB29C B0D7
-B0D8 B0D8 EAB29D B0D8
-B0D9 B0D9 EAB29F B0D9
-B0DA B0DA EAB2A0 B0DA
-B0DB B0DB EAB2A1 B0DB
-B0DC B0DC EAB2A8 B0DC
-B0DD B0DD EAB2A9 B0DD
-B0DE B0DE EAB2AA B0DE
-B0DF B0DF EAB2AC B0DF
-B0E0 B0E0 EAB2AF B0E0
-B0E1 B0E1 EAB2B0 B0E1
-B0E2 B0E2 EAB2B8 B0E2
-B0E3 B0E3 EAB2B9 B0E3
-B0E4 B0E4 EAB2BB B0E4
-B0E5 B0E5 EAB2BC B0E5
-B0E6 B0E6 EAB2BD B0E6
-B0E7 B0E7 EAB381 B0E7
-B0E8 B0E8 EAB384 B0E8
-B0E9 B0E9 EAB388 B0E9
-B0EA B0EA EAB38C B0EA
-B0EB B0EB EAB395 B0EB
-B0EC B0EC EAB397 B0EC
-B0ED B0ED EAB3A0 B0ED
-B0EE B0EE EAB3A1 B0EE
-B0EF B0EF EAB3A4 B0EF
-B0F0 B0F0 EAB3A7 B0F0
-B0F1 B0F1 EAB3A8 B0F1
-B0F2 B0F2 EAB3AA B0F2
-B0F3 B0F3 EAB3AC B0F3
-B0F4 B0F4 EAB3AF B0F4
-B0F5 B0F5 EAB3B0 B0F5
-B0F6 B0F6 EAB3B1 B0F6
-B0F7 B0F7 EAB3B3 B0F7
-B0F8 B0F8 EAB3B5 B0F8
-B0F9 B0F9 EAB3B6 B0F9
-B0FA B0FA EAB3BC B0FA
-B0FB B0FB EAB3BD B0FB
-B0FC B0FC EAB480 B0FC
-B0FD B0FD EAB484 B0FD
-B0FE B0FE EAB486 B0FE
-B141 B141 ECBC82 B141
-B142 B142 ECBC83 B142
-B143 B143 ECBC85 B143
-B144 B144 ECBC86 B144
-B145 B145 ECBC87 B145
-B146 B146 ECBC89 B146
-B147 B147 ECBC8A B147
-B148 B148 ECBC8B B148
-B149 B149 ECBC8C B149
-B14A B14A ECBC8D B14A
-B14B B14B ECBC8E B14B
-B14C B14C ECBC8F B14C
-B14D B14D ECBC92 B14D
-B14E B14E ECBC94 B14E
-B14F B14F ECBC96 B14F
-B150 B150 ECBC97 B150
-B151 B151 ECBC98 B151
-B152 B152 ECBC99 B152
-B153 B153 ECBC9A B153
-B154 B154 ECBC9B B154
-B155 B155 ECBC9D B155
-B156 B156 ECBC9E B156
-B157 B157 ECBC9F B157
-B158 B158 ECBCA1 B158
-B159 B159 ECBCA2 B159
-B15A B15A ECBCA3 B15A
-B161 B161 ECBCA5 B161
-B162 B162 ECBCA6 B162
-B163 B163 ECBCA7 B163
-B164 B164 ECBCA8 B164
-B165 B165 ECBCA9 B165
-B166 B166 ECBCAA B166
-B167 B167 ECBCAB B167
-B168 B168 ECBCAE B168
-B169 B169 ECBCB2 B169
-B16A B16A ECBCB3 B16A
-B16B B16B ECBCB4 B16B
-B16C B16C ECBCB5 B16C
-B16D B16D ECBCB6 B16D
-B16E B16E ECBCB7 B16E
-B16F B16F ECBCB9 B16F
-B170 B170 ECBCBA B170
-B171 B171 ECBCBB B171
-B172 B172 ECBCBC B172
-B173 B173 ECBCBD B173
-B174 B174 ECBCBE B174
-B175 B175 ECBCBF B175
-B176 B176 ECBD80 B176
-B177 B177 ECBD81 B177
-B178 B178 ECBD82 B178
-B179 B179 ECBD83 B179
-B17A B17A ECBD84 B17A
-B181 B181 ECBD85 B181
-B182 B182 ECBD86 B182
-B183 B183 ECBD87 B183
-B184 B184 ECBD88 B184
-B185 B185 ECBD89 B185
-B186 B186 ECBD8A B186
-B187 B187 ECBD8B B187
-B188 B188 ECBD8C B188
-B189 B189 ECBD8D B189
-B18A B18A ECBD8E B18A
-B18B B18B ECBD8F B18B
-B18C B18C ECBD90 B18C
-B18D B18D ECBD91 B18D
-B18E B18E ECBD92 B18E
-B18F B18F ECBD93 B18F
-B190 B190 ECBD96 B190
-B191 B191 ECBD97 B191
-B192 B192 ECBD99 B192
-B193 B193 ECBD9A B193
-B194 B194 ECBD9B B194
-B195 B195 ECBD9D B195
-B196 B196 ECBD9E B196
-B197 B197 ECBD9F B197
-B198 B198 ECBDA0 B198
-B199 B199 ECBDA1 B199
-B19A B19A ECBDA2 B19A
-B19B B19B ECBDA3 B19B
-B19C B19C ECBDA6 B19C
-B19D B19D ECBDA8 B19D
-B19E B19E ECBDAA B19E
-B19F B19F ECBDAB B19F
-B1A0 B1A0 ECBDAC B1A0
-B1A1 B1A1 EAB48C B1A1
-B1A2 B1A2 EAB48D B1A2
-B1A3 B1A3 EAB48F B1A3
-B1A4 B1A4 EAB491 B1A4
-B1A5 B1A5 EAB498 B1A5
-B1A6 B1A6 EAB49C B1A6
-B1A7 B1A7 EAB4A0 B1A7
-B1A8 B1A8 EAB4A9 B1A8
-B1A9 B1A9 EAB4AC B1A9
-B1AA B1AA EAB4AD B1AA
-B1AB B1AB EAB4B4 B1AB
-B1AC B1AC EAB4B5 B1AC
-B1AD B1AD EAB4B8 B1AD
-B1AE B1AE EAB4BC B1AE
-B1AF B1AF EAB584 B1AF
-B1B0 B1B0 EAB585 B1B0
-B1B1 B1B1 EAB587 B1B1
-B1B2 B1B2 EAB589 B1B2
-B1B3 B1B3 EAB590 B1B3
-B1B4 B1B4 EAB594 B1B4
-B1B5 B1B5 EAB598 B1B5
-B1B6 B1B6 EAB5A1 B1B6
-B1B7 B1B7 EAB5A3 B1B7
-B1B8 B1B8 EAB5AC B1B8
-B1B9 B1B9 EAB5AD B1B9
-B1BA B1BA EAB5B0 B1BA
-B1BB B1BB EAB5B3 B1BB
-B1BC B1BC EAB5B4 B1BC
-B1BD B1BD EAB5B5 B1BD
-B1BE B1BE EAB5B6 B1BE
-B1BF B1BF EAB5BB B1BF
-B1C0 B1C0 EAB5BC B1C0
-B1C1 B1C1 EAB5BD B1C1
-B1C2 B1C2 EAB5BF B1C2
-B1C3 B1C3 EAB681 B1C3
-B1C4 B1C4 EAB682 B1C4
-B1C5 B1C5 EAB688 B1C5
-B1C6 B1C6 EAB689 B1C6
-B1C7 B1C7 EAB68C B1C7
-B1C8 B1C8 EAB690 B1C8
-B1C9 B1C9 EAB69C B1C9
-B1CA B1CA EAB69D B1CA
-B1CB B1CB EAB6A4 B1CB
-B1CC B1CC EAB6B7 B1CC
-B1CD B1CD EAB780 B1CD
-B1CE B1CE EAB781 B1CE
-B1CF B1CF EAB784 B1CF
-B1D0 B1D0 EAB788 B1D0
-B1D1 B1D1 EAB790 B1D1
-B1D2 B1D2 EAB791 B1D2
-B1D3 B1D3 EAB793 B1D3
-B1D4 B1D4 EAB79C B1D4
-B1D5 B1D5 EAB7A0 B1D5
-B1D6 B1D6 EAB7A4 B1D6
-B1D7 B1D7 EAB7B8 B1D7
-B1D8 B1D8 EAB7B9 B1D8
-B1D9 B1D9 EAB7BC B1D9
-B1DA B1DA EAB7BF B1DA
-B1DB B1DB EAB880 B1DB
-B1DC B1DC EAB881 B1DC
-B1DD B1DD EAB888 B1DD
-B1DE B1DE EAB889 B1DE
-B1DF B1DF EAB88B B1DF
-B1E0 B1E0 EAB88D B1E0
-B1E1 B1E1 EAB894 B1E1
-B1E2 B1E2 EAB8B0 B1E2
-B1E3 B1E3 EAB8B1 B1E3
-B1E4 B1E4 EAB8B4 B1E4
-B1E5 B1E5 EAB8B7 B1E5
-B1E6 B1E6 EAB8B8 B1E6
-B1E7 B1E7 EAB8BA B1E7
-B1E8 B1E8 EAB980 B1E8
-B1E9 B1E9 EAB981 B1E9
-B1EA B1EA EAB983 B1EA
-B1EB B1EB EAB985 B1EB
-B1EC B1EC EAB986 B1EC
-B1ED B1ED EAB98A B1ED
-B1EE B1EE EAB98C B1EE
-B1EF B1EF EAB98D B1EF
-B1F0 B1F0 EAB98E B1F0
-B1F1 B1F1 EAB990 B1F1
-B1F2 B1F2 EAB994 B1F2
-B1F3 B1F3 EAB996 B1F3
-B1F4 B1F4 EAB99C B1F4
-B1F5 B1F5 EAB99D B1F5
-B1F6 B1F6 EAB99F B1F6
-B1F7 B1F7 EAB9A0 B1F7
-B1F8 B1F8 EAB9A1 B1F8
-B1F9 B1F9 EAB9A5 B1F9
-B1FA B1FA EAB9A8 B1FA
-B1FB B1FB EAB9A9 B1FB
-B1FC B1FC EAB9AC B1FC
-B1FD B1FD EAB9B0 B1FD
-B1FE B1FE EAB9B8 B1FE
-B241 B241 ECBDAD B241
-B242 B242 ECBDAE B242
-B243 B243 ECBDAF B243
-B244 B244 ECBDB2 B244
-B245 B245 ECBDB3 B245
-B246 B246 ECBDB5 B246
-B247 B247 ECBDB6 B247
-B248 B248 ECBDB7 B248
-B249 B249 ECBDB9 B249
-B24A B24A ECBDBA B24A
-B24B B24B ECBDBB B24B
-B24C B24C ECBDBC B24C
-B24D B24D ECBDBD B24D
-B24E B24E ECBDBE B24E
-B24F B24F ECBDBF B24F
-B250 B250 ECBE81 B250
-B251 B251 ECBE82 B251
-B252 B252 ECBE83 B252
-B253 B253 ECBE84 B253
-B254 B254 ECBE86 B254
-B255 B255 ECBE87 B255
-B256 B256 ECBE88 B256
-B257 B257 ECBE89 B257
-B258 B258 ECBE8A B258
-B259 B259 ECBE8B B259
-B25A B25A ECBE8D B25A
-B261 B261 ECBE8E B261
-B262 B262 ECBE8F B262
-B263 B263 ECBE90 B263
-B264 B264 ECBE91 B264
-B265 B265 ECBE92 B265
-B266 B266 ECBE93 B266
-B267 B267 ECBE94 B267
-B268 B268 ECBE95 B268
-B269 B269 ECBE96 B269
-B26A B26A ECBE97 B26A
-B26B B26B ECBE98 B26B
-B26C B26C ECBE99 B26C
-B26D B26D ECBE9A B26D
-B26E B26E ECBE9B B26E
-B26F B26F ECBE9C B26F
-B270 B270 ECBE9D B270
-B271 B271 ECBE9E B271
-B272 B272 ECBE9F B272
-B273 B273 ECBEA0 B273
-B274 B274 ECBEA2 B274
-B275 B275 ECBEA3 B275
-B276 B276 ECBEA4 B276
-B277 B277 ECBEA5 B277
-B278 B278 ECBEA6 B278
-B279 B279 ECBEA7 B279
-B27A B27A ECBEA9 B27A
-B281 B281 ECBEAA B281
-B282 B282 ECBEAB B282
-B283 B283 ECBEAC B283
-B284 B284 ECBEAD B284
-B285 B285 ECBEAE B285
-B286 B286 ECBEAF B286
-B287 B287 ECBEB1 B287
-B288 B288 ECBEB2 B288
-B289 B289 ECBEB3 B289
-B28A B28A ECBEB4 B28A
-B28B B28B ECBEB5 B28B
-B28C B28C ECBEB6 B28C
-B28D B28D ECBEB7 B28D
-B28E B28E ECBEB8 B28E
-B28F B28F ECBEB9 B28F
-B290 B290 ECBEBA B290
-B291 B291 ECBEBB B291
-B292 B292 ECBEBC B292
-B293 B293 ECBEBD B293
-B294 B294 ECBEBE B294
-B295 B295 ECBEBF B295
-B296 B296 ECBF80 B296
-B297 B297 ECBF81 B297
-B298 B298 ECBF82 B298
-B299 B299 ECBF83 B299
-B29A B29A ECBF85 B29A
-B29B B29B ECBF86 B29B
-B29C B29C ECBF87 B29C
-B29D B29D ECBF88 B29D
-B29E B29E ECBF89 B29E
-B29F B29F ECBF8A B29F
-B2A0 B2A0 ECBF8B B2A0
-B2A1 B2A1 EAB9B9 B2A1
-B2A2 B2A2 EAB9BB B2A2
-B2A3 B2A3 EAB9BC B2A3
-B2A4 B2A4 EAB9BD B2A4
-B2A5 B2A5 EABA84 B2A5
-B2A6 B2A6 EABA85 B2A6
-B2A7 B2A7 EABA8C B2A7
-B2A8 B2A8 EABABC B2A8
-B2A9 B2A9 EABABD B2A9
-B2AA B2AA EABABE B2AA
-B2AB B2AB EABB80 B2AB
-B2AC B2AC EABB84 B2AC
-B2AD B2AD EABB8C B2AD
-B2AE B2AE EABB8D B2AE
-B2AF B2AF EABB8F B2AF
-B2B0 B2B0 EABB90 B2B0
-B2B1 B2B1 EABB91 B2B1
-B2B2 B2B2 EABB98 B2B2
-B2B3 B2B3 EABB99 B2B3
-B2B4 B2B4 EABB9C B2B4
-B2B5 B2B5 EABBA8 B2B5
-B2B6 B2B6 EABBAB B2B6
-B2B7 B2B7 EABBAD B2B7
-B2B8 B2B8 EABBB4 B2B8
-B2B9 B2B9 EABBB8 B2B9
-B2BA B2BA EABBBC B2BA
-B2BB B2BB EABC87 B2BB
-B2BC B2BC EABC88 B2BC
-B2BD B2BD EABC8D B2BD
-B2BE B2BE EABC90 B2BE
-B2BF B2BF EABCAC B2BF
-B2C0 B2C0 EABCAD B2C0
-B2C1 B2C1 EABCB0 B2C1
-B2C2 B2C2 EABCB2 B2C2
-B2C3 B2C3 EABCB4 B2C3
-B2C4 B2C4 EABCBC B2C4
-B2C5 B2C5 EABCBD B2C5
-B2C6 B2C6 EABCBF B2C6
-B2C7 B2C7 EABD81 B2C7
-B2C8 B2C8 EABD82 B2C8
-B2C9 B2C9 EABD83 B2C9
-B2CA B2CA EABD88 B2CA
-B2CB B2CB EABD89 B2CB
-B2CC B2CC EABD90 B2CC
-B2CD B2CD EABD9C B2CD
-B2CE B2CE EABD9D B2CE
-B2CF B2CF EABDA4 B2CF
-B2D0 B2D0 EABDA5 B2D0
-B2D1 B2D1 EABDB9 B2D1
-B2D2 B2D2 EABE80 B2D2
-B2D3 B2D3 EABE84 B2D3
-B2D4 B2D4 EABE88 B2D4
-B2D5 B2D5 EABE90 B2D5
-B2D6 B2D6 EABE91 B2D6
-B2D7 B2D7 EABE95 B2D7
-B2D8 B2D8 EABE9C B2D8
-B2D9 B2D9 EABEB8 B2D9
-B2DA B2DA EABEB9 B2DA
-B2DB B2DB EABEBC B2DB
-B2DC B2DC EABF80 B2DC
-B2DD B2DD EABF87 B2DD
-B2DE B2DE EABF88 B2DE
-B2DF B2DF EABF89 B2DF
-B2E0 B2E0 EABF8B B2E0
-B2E1 B2E1 EABF8D B2E1
-B2E2 B2E2 EABF8E B2E2
-B2E3 B2E3 EABF94 B2E3
-B2E4 B2E4 EABF9C B2E4
-B2E5 B2E5 EABFA8 B2E5
-B2E6 B2E6 EABFA9 B2E6
-B2E7 B2E7 EABFB0 B2E7
-B2E8 B2E8 EABFB1 B2E8
-B2E9 B2E9 EABFB4 B2E9
-B2EA B2EA EABFB8 B2EA
-B2EB B2EB EB8080 B2EB
-B2EC B2EC EB8081 B2EC
-B2ED B2ED EB8084 B2ED
-B2EE B2EE EB808C B2EE
-B2EF B2EF EB8090 B2EF
-B2F0 B2F0 EB8094 B2F0
-B2F1 B2F1 EB809C B2F1
-B2F2 B2F2 EB809D B2F2
-B2F3 B2F3 EB80A8 B2F3
-B2F4 B2F4 EB8184 B2F4
-B2F5 B2F5 EB8185 B2F5
-B2F6 B2F6 EB8188 B2F6
-B2F7 B2F7 EB818A B2F7
-B2F8 B2F8 EB818C B2F8
-B2F9 B2F9 EB818E B2F9
-B2FA B2FA EB8193 B2FA
-B2FB B2FB EB8194 B2FB
-B2FC B2FC EB8195 B2FC
-B2FD B2FD EB8197 B2FD
-B2FE B2FE EB8199 B2FE
-B341 B341 ECBF8C B341
-B342 B342 ECBF8D B342
-B343 B343 ECBF8E B343
-B344 B344 ECBF8F B344
-B345 B345 ECBF90 B345
-B346 B346 ECBF91 B346
-B347 B347 ECBF92 B347
-B348 B348 ECBF93 B348
-B349 B349 ECBF94 B349
-B34A B34A ECBF95 B34A
-B34B B34B ECBF96 B34B
-B34C B34C ECBF97 B34C
-B34D B34D ECBF98 B34D
-B34E B34E ECBF99 B34E
-B34F B34F ECBF9A B34F
-B350 B350 ECBF9B B350
-B351 B351 ECBF9C B351
-B352 B352 ECBF9D B352
-B353 B353 ECBF9E B353
-B354 B354 ECBF9F B354
-B355 B355 ECBFA2 B355
-B356 B356 ECBFA3 B356
-B357 B357 ECBFA5 B357
-B358 B358 ECBFA6 B358
-B359 B359 ECBFA7 B359
-B35A B35A ECBFA9 B35A
-B361 B361 ECBFAA B361
-B362 B362 ECBFAB B362
-B363 B363 ECBFAC B363
-B364 B364 ECBFAD B364
-B365 B365 ECBFAE B365
-B366 B366 ECBFAF B366
-B367 B367 ECBFB2 B367
-B368 B368 ECBFB4 B368
-B369 B369 ECBFB6 B369
-B36A B36A ECBFB7 B36A
-B36B B36B ECBFB8 B36B
-B36C B36C ECBFB9 B36C
-B36D B36D ECBFBA B36D
-B36E B36E ECBFBB B36E
-B36F B36F ECBFBD B36F
-B370 B370 ECBFBE B370
-B371 B371 ECBFBF B371
-B372 B372 ED8081 B372
-B373 B373 ED8082 B373
-B374 B374 ED8083 B374
-B375 B375 ED8085 B375
-B376 B376 ED8086 B376
-B377 B377 ED8087 B377
-B378 B378 ED8088 B378
-B379 B379 ED8089 B379
-B37A B37A ED808A B37A
-B381 B381 ED808B B381
-B382 B382 ED808C B382
-B383 B383 ED808D B383
-B384 B384 ED808E B384
-B385 B385 ED808F B385
-B386 B386 ED8090 B386
-B387 B387 ED8092 B387
-B388 B388 ED8093 B388
-B389 B389 ED8094 B389
-B38A B38A ED8095 B38A
-B38B B38B ED8096 B38B
-B38C B38C ED8097 B38C
-B38D B38D ED8099 B38D
-B38E B38E ED809A B38E
-B38F B38F ED809B B38F
-B390 B390 ED809C B390
-B391 B391 ED809D B391
-B392 B392 ED809E B392
-B393 B393 ED809F B393
-B394 B394 ED80A0 B394
-B395 B395 ED80A1 B395
-B396 B396 ED80A2 B396
-B397 B397 ED80A3 B397
-B398 B398 ED80A4 B398
-B399 B399 ED80A5 B399
-B39A B39A ED80A6 B39A
-B39B B39B ED80A7 B39B
-B39C B39C ED80A8 B39C
-B39D B39D ED80A9 B39D
-B39E B39E ED80AA B39E
-B39F B39F ED80AB B39F
-B3A0 B3A0 ED80AC B3A0
-B3A1 B3A1 EB819D B3A1
-B3A2 B3A2 EB81BC B3A2
-B3A3 B3A3 EB81BD B3A3
-B3A4 B3A4 EB8280 B3A4
-B3A5 B3A5 EB8284 B3A5
-B3A6 B3A6 EB828C B3A6
-B3A7 B3A7 EB828D B3A7
-B3A8 B3A8 EB828F B3A8
-B3A9 B3A9 EB8291 B3A9
-B3AA B3AA EB8298 B3AA
-B3AB B3AB EB8299 B3AB
-B3AC B3AC EB829A B3AC
-B3AD B3AD EB829C B3AD
-B3AE B3AE EB829F B3AE
-B3AF B3AF EB82A0 B3AF
-B3B0 B3B0 EB82A1 B3B0
-B3B1 B3B1 EB82A2 B3B1
-B3B2 B3B2 EB82A8 B3B2
-B3B3 B3B3 EB82A9 B3B3
-B3B4 B3B4 EB82AB B3B4
-B3B5 B3B5 EB82AC B3B5
-B3B6 B3B6 EB82AD B3B6
-B3B7 B3B7 EB82AE B3B7
-B3B8 B3B8 EB82AF B3B8
-B3B9 B3B9 EB82B1 B3B9
-B3BA B3BA EB82B3 B3BA
-B3BB B3BB EB82B4 B3BB
-B3BC B3BC EB82B5 B3BC
-B3BD B3BD EB82B8 B3BD
-B3BE B3BE EB82BC B3BE
-B3BF B3BF EB8384 B3BF
-B3C0 B3C0 EB8385 B3C0
-B3C1 B3C1 EB8387 B3C1
-B3C2 B3C2 EB8388 B3C2
-B3C3 B3C3 EB8389 B3C3
-B3C4 B3C4 EB8390 B3C4
-B3C5 B3C5 EB8391 B3C5
-B3C6 B3C6 EB8394 B3C6
-B3C7 B3C7 EB8398 B3C7
-B3C8 B3C8 EB83A0 B3C8
-B3C9 B3C9 EB83A5 B3C9
-B3CA B3CA EB8488 B3CA
-B3CB B3CB EB8489 B3CB
-B3CC B3CC EB848B B3CC
-B3CD B3CD EB848C B3CD
-B3CE B3CE EB8490 B3CE
-B3CF B3CF EB8492 B3CF
-B3D0 B3D0 EB8493 B3D0
-B3D1 B3D1 EB8498 B3D1
-B3D2 B3D2 EB8499 B3D2
-B3D3 B3D3 EB849B B3D3
-B3D4 B3D4 EB849C B3D4
-B3D5 B3D5 EB849D B3D5
-B3D6 B3D6 EB84A3 B3D6
-B3D7 B3D7 EB84A4 B3D7
-B3D8 B3D8 EB84A5 B3D8
-B3D9 B3D9 EB84A8 B3D9
-B3DA B3DA EB84AC B3DA
-B3DB B3DB EB84B4 B3DB
-B3DC B3DC EB84B5 B3DC
-B3DD B3DD EB84B7 B3DD
-B3DE B3DE EB84B8 B3DE
-B3DF B3DF EB84B9 B3DF
-B3E0 B3E0 EB8580 B3E0
-B3E1 B3E1 EB8581 B3E1
-B3E2 B3E2 EB8584 B3E2
-B3E3 B3E3 EB8588 B3E3
-B3E4 B3E4 EB8590 B3E4
-B3E5 B3E5 EB8591 B3E5
-B3E6 B3E6 EB8594 B3E6
-B3E7 B3E7 EB8595 B3E7
-B3E8 B3E8 EB8598 B3E8
-B3E9 B3E9 EB859C B3E9
-B3EA B3EA EB85A0 B3EA
-B3EB B3EB EB85B8 B3EB
-B3EC B3EC EB85B9 B3EC
-B3ED B3ED EB85BC B3ED
-B3EE B3EE EB8680 B3EE
-B3EF B3EF EB8682 B3EF
-B3F0 B3F0 EB8688 B3F0
-B3F1 B3F1 EB8689 B3F1
-B3F2 B3F2 EB868B B3F2
-B3F3 B3F3 EB868D B3F3
-B3F4 B3F4 EB8692 B3F4
-B3F5 B3F5 EB8693 B3F5
-B3F6 B3F6 EB8694 B3F6
-B3F7 B3F7 EB8698 B3F7
-B3F8 B3F8 EB869C B3F8
-B3F9 B3F9 EB86A8 B3F9
-B3FA B3FA EB878C B3FA
-B3FB B3FB EB8790 B3FB
-B3FC B3FC EB8794 B3FC
-B3FD B3FD EB879C B3FD
-B3FE B3FE EB879D B3FE
-B441 B441 ED80AE B441
-B442 B442 ED80AF B442
-B443 B443 ED80B0 B443
-B444 B444 ED80B1 B444
-B445 B445 ED80B2 B445
-B446 B446 ED80B3 B446
-B447 B447 ED80B6 B447
-B448 B448 ED80B7 B448
-B449 B449 ED80B9 B449
-B44A B44A ED80BA B44A
-B44B B44B ED80BB B44B
-B44C B44C ED80BD B44C
-B44D B44D ED80BE B44D
-B44E B44E ED80BF B44E
-B44F B44F ED8180 B44F
-B450 B450 ED8181 B450
-B451 B451 ED8182 B451
-B452 B452 ED8183 B452
-B453 B453 ED8186 B453
-B454 B454 ED8188 B454
-B455 B455 ED818A B455
-B456 B456 ED818B B456
-B457 B457 ED818C B457
-B458 B458 ED818D B458
-B459 B459 ED818E B459
-B45A B45A ED818F B45A
-B461 B461 ED8191 B461
-B462 B462 ED8192 B462
-B463 B463 ED8193 B463
-B464 B464 ED8195 B464
-B465 B465 ED8196 B465
-B466 B466 ED8197 B466
-B467 B467 ED8199 B467
-B468 B468 ED819A B468
-B469 B469 ED819B B469
-B46A B46A ED819C B46A
-B46B B46B ED819D B46B
-B46C B46C ED819E B46C
-B46D B46D ED819F B46D
-B46E B46E ED81A1 B46E
-B46F B46F ED81A2 B46F
-B470 B470 ED81A3 B470
-B471 B471 ED81A4 B471
-B472 B472 ED81A5 B472
-B473 B473 ED81A6 B473
-B474 B474 ED81A7 B474
-B475 B475 ED81A8 B475
-B476 B476 ED81A9 B476
-B477 B477 ED81AA B477
-B478 B478 ED81AB B478
-B479 B479 ED81AE B479
-B47A B47A ED81AF B47A
-B481 B481 ED81B1 B481
-B482 B482 ED81B2 B482
-B483 B483 ED81B3 B483
-B484 B484 ED81B5 B484
-B485 B485 ED81B6 B485
-B486 B486 ED81B7 B486
-B487 B487 ED81B8 B487
-B488 B488 ED81B9 B488
-B489 B489 ED81BA B489
-B48A B48A ED81BB B48A
-B48B B48B ED81BE B48B
-B48C B48C ED81BF B48C
-B48D B48D ED8280 B48D
-B48E B48E ED8282 B48E
-B48F B48F ED8283 B48F
-B490 B490 ED8284 B490
-B491 B491 ED8285 B491
-B492 B492 ED8286 B492
-B493 B493 ED8287 B493
-B494 B494 ED8288 B494
-B495 B495 ED8289 B495
-B496 B496 ED828A B496
-B497 B497 ED828B B497
-B498 B498 ED828C B498
-B499 B499 ED828D B499
-B49A B49A ED828E B49A
-B49B B49B ED828F B49B
-B49C B49C ED8290 B49C
-B49D B49D ED8291 B49D
-B49E B49E ED8292 B49E
-B49F B49F ED8293 B49F
-B4A0 B4A0 ED8294 B4A0
-B4A1 B4A1 EB879F B4A1
-B4A2 B4A2 EB87A8 B4A2
-B4A3 B4A3 EB87A9 B4A3
-B4A4 B4A4 EB87AC B4A4
-B4A5 B4A5 EB87B0 B4A5
-B4A6 B4A6 EB87B9 B4A6
-B4A7 B4A7 EB87BB B4A7
-B4A8 B4A8 EB87BD B4A8
-B4A9 B4A9 EB8884 B4A9
-B4AA B4AA EB8885 B4AA
-B4AB B4AB EB8888 B4AB
-B4AC B4AC EB888B B4AC
-B4AD B4AD EB888C B4AD
-B4AE B4AE EB8894 B4AE
-B4AF B4AF EB8895 B4AF
-B4B0 B4B0 EB8897 B4B0
-B4B1 B4B1 EB8899 B4B1
-B4B2 B4B2 EB88A0 B4B2
-B4B3 B4B3 EB88B4 B4B3
-B4B4 B4B4 EB88BC B4B4
-B4B5 B4B5 EB8998 B4B5
-B4B6 B4B6 EB899C B4B6
-B4B7 B4B7 EB89A0 B4B7
-B4B8 B4B8 EB89A8 B4B8
-B4B9 B4B9 EB89A9 B4B9
-B4BA B4BA EB89B4 B4BA
-B4BB B4BB EB89B5 B4BB
-B4BC B4BC EB89BC B4BC
-B4BD B4BD EB8A84 B4BD
-B4BE B4BE EB8A85 B4BE
-B4BF B4BF EB8A89 B4BF
-B4C0 B4C0 EB8A90 B4C0
-B4C1 B4C1 EB8A91 B4C1
-B4C2 B4C2 EB8A94 B4C2
-B4C3 B4C3 EB8A98 B4C3
-B4C4 B4C4 EB8A99 B4C4
-B4C5 B4C5 EB8A9A B4C5
-B4C6 B4C6 EB8AA0 B4C6
-B4C7 B4C7 EB8AA1 B4C7
-B4C8 B4C8 EB8AA3 B4C8
-B4C9 B4C9 EB8AA5 B4C9
-B4CA B4CA EB8AA6 B4CA
-B4CB B4CB EB8AAA B4CB
-B4CC B4CC EB8AAC B4CC
-B4CD B4CD EB8AB0 B4CD
-B4CE B4CE EB8AB4 B4CE
-B4CF B4CF EB8B88 B4CF
-B4D0 B4D0 EB8B89 B4D0
-B4D1 B4D1 EB8B8C B4D1
-B4D2 B4D2 EB8B90 B4D2
-B4D3 B4D3 EB8B92 B4D3
-B4D4 B4D4 EB8B98 B4D4
-B4D5 B4D5 EB8B99 B4D5
-B4D6 B4D6 EB8B9B B4D6
-B4D7 B4D7 EB8B9D B4D7
-B4D8 B4D8 EB8BA2 B4D8
-B4D9 B4D9 EB8BA4 B4D9
-B4DA B4DA EB8BA5 B4DA
-B4DB B4DB EB8BA6 B4DB
-B4DC B4DC EB8BA8 B4DC
-B4DD B4DD EB8BAB B4DD
-B4DE B4DE EB8BAC B4DE
-B4DF B4DF EB8BAD B4DF
-B4E0 B4E0 EB8BAE B4E0
-B4E1 B4E1 EB8BAF B4E1
-B4E2 B4E2 EB8BB3 B4E2
-B4E3 B4E3 EB8BB4 B4E3
-B4E4 B4E4 EB8BB5 B4E4
-B4E5 B4E5 EB8BB7 B4E5
-B4E6 B4E6 EB8BB8 B4E6
-B4E7 B4E7 EB8BB9 B4E7
-B4E8 B4E8 EB8BBA B4E8
-B4E9 B4E9 EB8BBB B4E9
-B4EA B4EA EB8BBF B4EA
-B4EB B4EB EB8C80 B4EB
-B4EC B4EC EB8C81 B4EC
-B4ED B4ED EB8C84 B4ED
-B4EE B4EE EB8C88 B4EE
-B4EF B4EF EB8C90 B4EF
-B4F0 B4F0 EB8C91 B4F0
-B4F1 B4F1 EB8C93 B4F1
-B4F2 B4F2 EB8C94 B4F2
-B4F3 B4F3 EB8C95 B4F3
-B4F4 B4F4 EB8C9C B4F4
-B4F5 B4F5 EB8D94 B4F5
-B4F6 B4F6 EB8D95 B4F6
-B4F7 B4F7 EB8D96 B4F7
-B4F8 B4F8 EB8D98 B4F8
-B4F9 B4F9 EB8D9B B4F9
-B4FA B4FA EB8D9C B4FA
-B4FB B4FB EB8D9E B4FB
-B4FC B4FC EB8D9F B4FC
-B4FD B4FD EB8DA4 B4FD
-B4FE B4FE EB8DA5 B4FE
-B541 B541 ED8295 B541
-B542 B542 ED8296 B542
-B543 B543 ED8297 B543
-B544 B544 ED8298 B544
-B545 B545 ED8299 B545
-B546 B546 ED829A B546
-B547 B547 ED829B B547
-B548 B548 ED829C B548
-B549 B549 ED829D B549
-B54A B54A ED829E B54A
-B54B B54B ED829F B54B
-B54C B54C ED82A0 B54C
-B54D B54D ED82A1 B54D
-B54E B54E ED82A2 B54E
-B54F B54F ED82A3 B54F
-B550 B550 ED82A6 B550
-B551 B551 ED82A7 B551
-B552 B552 ED82A9 B552
-B553 B553 ED82AA B553
-B554 B554 ED82AB B554
-B555 B555 ED82AD B555
-B556 B556 ED82AE B556
-B557 B557 ED82AF B557
-B558 B558 ED82B0 B558
-B559 B559 ED82B1 B559
-B55A B55A ED82B2 B55A
-B561 B561 ED82B3 B561
-B562 B562 ED82B6 B562
-B563 B563 ED82B8 B563
-B564 B564 ED82BA B564
-B565 B565 ED82BB B565
-B566 B566 ED82BC B566
-B567 B567 ED82BD B567
-B568 B568 ED82BE B568
-B569 B569 ED82BF B569
-B56A B56A ED8382 B56A
-B56B B56B ED8383 B56B
-B56C B56C ED8385 B56C
-B56D B56D ED8386 B56D
-B56E B56E ED8387 B56E
-B56F B56F ED838A B56F
-B570 B570 ED838B B570
-B571 B571 ED838C B571
-B572 B572 ED838D B572
-B573 B573 ED838E B573
-B574 B574 ED838F B574
-B575 B575 ED8392 B575
-B576 B576 ED8396 B576
-B577 B577 ED8397 B577
-B578 B578 ED8398 B578
-B579 B579 ED8399 B579
-B57A B57A ED839A B57A
-B581 B581 ED839B B581
-B582 B582 ED839E B582
-B583 B583 ED839F B583
-B584 B584 ED83A1 B584
-B585 B585 ED83A2 B585
-B586 B586 ED83A3 B586
-B587 B587 ED83A5 B587
-B588 B588 ED83A6 B588
-B589 B589 ED83A7 B589
-B58A B58A ED83A8 B58A
-B58B B58B ED83A9 B58B
-B58C B58C ED83AA B58C
-B58D B58D ED83AB B58D
-B58E B58E ED83AE B58E
-B58F B58F ED83B2 B58F
-B590 B590 ED83B3 B590
-B591 B591 ED83B4 B591
-B592 B592 ED83B5 B592
-B593 B593 ED83B6 B593
-B594 B594 ED83B7 B594
-B595 B595 ED83B9 B595
-B596 B596 ED83BA B596
-B597 B597 ED83BB B597
-B598 B598 ED83BC B598
-B599 B599 ED83BD B599
-B59A B59A ED83BE B59A
-B59B B59B ED83BF B59B
-B59C B59C ED8480 B59C
-B59D B59D ED8481 B59D
-B59E B59E ED8482 B59E
-B59F B59F ED8483 B59F
-B5A0 B5A0 ED8484 B5A0
-B5A1 B5A1 EB8DA7 B5A1
-B5A2 B5A2 EB8DA9 B5A2
-B5A3 B5A3 EB8DAB B5A3
-B5A4 B5A4 EB8DAE B5A4
-B5A5 B5A5 EB8DB0 B5A5
-B5A6 B5A6 EB8DB1 B5A6
-B5A7 B5A7 EB8DB4 B5A7
-B5A8 B5A8 EB8DB8 B5A8
-B5A9 B5A9 EB8E80 B5A9
-B5AA B5AA EB8E81 B5AA
-B5AB B5AB EB8E83 B5AB
-B5AC B5AC EB8E84 B5AC
-B5AD B5AD EB8E85 B5AD
-B5AE B5AE EB8E8C B5AE
-B5AF B5AF EB8E90 B5AF
-B5B0 B5B0 EB8E94 B5B0
-B5B1 B5B1 EB8EA0 B5B1
-B5B2 B5B2 EB8EA1 B5B2
-B5B3 B5B3 EB8EA8 B5B3
-B5B4 B5B4 EB8EAC B5B4
-B5B5 B5B5 EB8F84 B5B5
-B5B6 B5B6 EB8F85 B5B6
-B5B7 B5B7 EB8F88 B5B7
-B5B8 B5B8 EB8F8B B5B8
-B5B9 B5B9 EB8F8C B5B9
-B5BA B5BA EB8F8E B5BA
-B5BB B5BB EB8F90 B5BB
-B5BC B5BC EB8F94 B5BC
-B5BD B5BD EB8F95 B5BD
-B5BE B5BE EB8F97 B5BE
-B5BF B5BF EB8F99 B5BF
-B5C0 B5C0 EB8F9B B5C0
-B5C1 B5C1 EB8F9D B5C1
-B5C2 B5C2 EB8FA0 B5C2
-B5C3 B5C3 EB8FA4 B5C3
-B5C4 B5C4 EB8FA8 B5C4
-B5C5 B5C5 EB8FBC B5C5
-B5C6 B5C6 EB9090 B5C6
-B5C7 B5C7 EB9098 B5C7
-B5C8 B5C8 EB909C B5C8
-B5C9 B5C9 EB90A0 B5C9
-B5CA B5CA EB90A8 B5CA
-B5CB B5CB EB90A9 B5CB
-B5CC B5CC EB90AB B5CC
-B5CD B5CD EB90B4 B5CD
-B5CE B5CE EB9190 B5CE
-B5CF B5CF EB9191 B5CF
-B5D0 B5D0 EB9194 B5D0
-B5D1 B5D1 EB9198 B5D1
-B5D2 B5D2 EB91A0 B5D2
-B5D3 B5D3 EB91A1 B5D3
-B5D4 B5D4 EB91A3 B5D4
-B5D5 B5D5 EB91A5 B5D5
-B5D6 B5D6 EB91AC B5D6
-B5D7 B5D7 EB9280 B5D7
-B5D8 B5D8 EB9288 B5D8
-B5D9 B5D9 EB929D B5D9
-B5DA B5DA EB92A4 B5DA
-B5DB B5DB EB92A8 B5DB
-B5DC B5DC EB92AC B5DC
-B5DD B5DD EB92B5 B5DD
-B5DE B5DE EB92B7 B5DE
-B5DF B5DF EB92B9 B5DF
-B5E0 B5E0 EB9380 B5E0
-B5E1 B5E1 EB9384 B5E1
-B5E2 B5E2 EB9388 B5E2
-B5E3 B5E3 EB9390 B5E3
-B5E4 B5E4 EB9395 B5E4
-B5E5 B5E5 EB939C B5E5
-B5E6 B5E6 EB939D B5E6
-B5E7 B5E7 EB93A0 B5E7
-B5E8 B5E8 EB93A3 B5E8
-B5E9 B5E9 EB93A4 B5E9
-B5EA B5EA EB93A6 B5EA
-B5EB B5EB EB93AC B5EB
-B5EC B5EC EB93AD B5EC
-B5ED B5ED EB93AF B5ED
-B5EE B5EE EB93B1 B5EE
-B5EF B5EF EB93B8 B5EF
-B5F0 B5F0 EB9494 B5F0
-B5F1 B5F1 EB9495 B5F1
-B5F2 B5F2 EB9498 B5F2
-B5F3 B5F3 EB949B B5F3
-B5F4 B5F4 EB949C B5F4
-B5F5 B5F5 EB94A4 B5F5
-B5F6 B5F6 EB94A5 B5F6
-B5F7 B5F7 EB94A7 B5F7
-B5F8 B5F8 EB94A8 B5F8
-B5F9 B5F9 EB94A9 B5F9
-B5FA B5FA EB94AA B5FA
-B5FB B5FB EB94B0 B5FB
-B5FC B5FC EB94B1 B5FC
-B5FD B5FD EB94B4 B5FD
-B5FE B5FE EB94B8 B5FE
-B641 B641 ED8485 B641
-B642 B642 ED8486 B642
-B643 B643 ED8487 B643
-B644 B644 ED8488 B644
-B645 B645 ED8489 B645
-B646 B646 ED848A B646
-B647 B647 ED848B B647
-B648 B648 ED848C B648
-B649 B649 ED848E B649
-B64A B64A ED848F B64A
-B64B B64B ED8490 B64B
-B64C B64C ED8491 B64C
-B64D B64D ED8492 B64D
-B64E B64E ED8493 B64E
-B64F B64F ED8494 B64F
-B650 B650 ED8495 B650
-B651 B651 ED8496 B651
-B652 B652 ED8497 B652
-B653 B653 ED8498 B653
-B654 B654 ED8499 B654
-B655 B655 ED849A B655
-B656 B656 ED849B B656
-B657 B657 ED849C B657
-B658 B658 ED849D B658
-B659 B659 ED849E B659
-B65A B65A ED849F B65A
-B661 B661 ED84A0 B661
-B662 B662 ED84A1 B662
-B663 B663 ED84A2 B663
-B664 B664 ED84A3 B664
-B665 B665 ED84A4 B665
-B666 B666 ED84A5 B666
-B667 B667 ED84A6 B667
-B668 B668 ED84A7 B668
-B669 B669 ED84A8 B669
-B66A B66A ED84A9 B66A
-B66B B66B ED84AA B66B
-B66C B66C ED84AB B66C
-B66D B66D ED84AC B66D
-B66E B66E ED84AD B66E
-B66F B66F ED84AE B66F
-B670 B670 ED84AF B670
-B671 B671 ED84B2 B671
-B672 B672 ED84B3 B672
-B673 B673 ED84B5 B673
-B674 B674 ED84B6 B674
-B675 B675 ED84B7 B675
-B676 B676 ED84B9 B676
-B677 B677 ED84BB B677
-B678 B678 ED84BC B678
-B679 B679 ED84BD B679
-B67A B67A ED84BE B67A
-B681 B681 ED84BF B681
-B682 B682 ED8582 B682
-B683 B683 ED8586 B683
-B684 B684 ED8587 B684
-B685 B685 ED8588 B685
-B686 B686 ED8589 B686
-B687 B687 ED858A B687
-B688 B688 ED858B B688
-B689 B689 ED858E B689
-B68A B68A ED858F B68A
-B68B B68B ED8591 B68B
-B68C B68C ED8592 B68C
-B68D B68D ED8593 B68D
-B68E B68E ED8595 B68E
-B68F B68F ED8596 B68F
-B690 B690 ED8597 B690
-B691 B691 ED8598 B691
-B692 B692 ED8599 B692
-B693 B693 ED859A B693
-B694 B694 ED859B B694
-B695 B695 ED859E B695
-B696 B696 ED85A0 B696
-B697 B697 ED85A2 B697
-B698 B698 ED85A3 B698
-B699 B699 ED85A4 B699
-B69A B69A ED85A5 B69A
-B69B B69B ED85A6 B69B
-B69C B69C ED85A7 B69C
-B69D B69D ED85A9 B69D
-B69E B69E ED85AA B69E
-B69F B69F ED85AB B69F
-B6A0 B6A0 ED85AD B6A0
-B6A1 B6A1 EB9580 B6A1
-B6A2 B6A2 EB9581 B6A2
-B6A3 B6A3 EB9583 B6A3
-B6A4 B6A4 EB9584 B6A4
-B6A5 B6A5 EB9585 B6A5
-B6A6 B6A6 EB958B B6A6
-B6A7 B6A7 EB958C B6A7
-B6A8 B6A8 EB958D B6A8
-B6A9 B6A9 EB9590 B6A9
-B6AA B6AA EB9594 B6AA
-B6AB B6AB EB959C B6AB
-B6AC B6AC EB959D B6AC
-B6AD B6AD EB959F B6AD
-B6AE B6AE EB95A0 B6AE
-B6AF B6AF EB95A1 B6AF
-B6B0 B6B0 EB96A0 B6B0
-B6B1 B6B1 EB96A1 B6B1
-B6B2 B6B2 EB96A4 B6B2
-B6B3 B6B3 EB96A8 B6B3
-B6B4 B6B4 EB96AA B6B4
-B6B5 B6B5 EB96AB B6B5
-B6B6 B6B6 EB96B0 B6B6
-B6B7 B6B7 EB96B1 B6B7
-B6B8 B6B8 EB96B3 B6B8
-B6B9 B6B9 EB96B4 B6B9
-B6BA B6BA EB96B5 B6BA
-B6BB B6BB EB96BB B6BB
-B6BC B6BC EB96BC B6BC
-B6BD B6BD EB96BD B6BD
-B6BE B6BE EB9780 B6BE
-B6BF B6BF EB9784 B6BF
-B6C0 B6C0 EB978C B6C0
-B6C1 B6C1 EB978D B6C1
-B6C2 B6C2 EB978F B6C2
-B6C3 B6C3 EB9790 B6C3
-B6C4 B6C4 EB9791 B6C4
-B6C5 B6C5 EB9798 B6C5
-B6C6 B6C6 EB97AC B6C6
-B6C7 B6C7 EB9890 B6C7
-B6C8 B6C8 EB9891 B6C8
-B6C9 B6C9 EB9894 B6C9
-B6CA B6CA EB9898 B6CA
-B6CB B6CB EB98A5 B6CB
-B6CC B6CC EB98AC B6CC
-B6CD B6CD EB98B4 B6CD
-B6CE B6CE EB9988 B6CE
-B6CF B6CF EB99A4 B6CF
-B6D0 B6D0 EB99A8 B6D0
-B6D1 B6D1 EB9A9C B6D1
-B6D2 B6D2 EB9A9D B6D2
-B6D3 B6D3 EB9AA0 B6D3
-B6D4 B6D4 EB9AA4 B6D4
-B6D5 B6D5 EB9AAB B6D5
-B6D6 B6D6 EB9AAC B6D6
-B6D7 B6D7 EB9AB1 B6D7
-B6D8 B6D8 EB9B94 B6D8
-B6D9 B6D9 EB9BB0 B6D9
-B6DA B6DA EB9BB4 B6DA
-B6DB B6DB EB9BB8 B6DB
-B6DC B6DC EB9C80 B6DC
-B6DD B6DD EB9C81 B6DD
-B6DE B6DE EB9C85 B6DE
-B6DF B6DF EB9CA8 B6DF
-B6E0 B6E0 EB9CA9 B6E0
-B6E1 B6E1 EB9CAC B6E1
-B6E2 B6E2 EB9CAF B6E2
-B6E3 B6E3 EB9CB0 B6E3
-B6E4 B6E4 EB9CB8 B6E4
-B6E5 B6E5 EB9CB9 B6E5
-B6E6 B6E6 EB9CBB B6E6
-B6E7 B6E7 EB9D84 B6E7
-B6E8 B6E8 EB9D88 B6E8
-B6E9 B6E9 EB9D8C B6E9
-B6EA B6EA EB9D94 B6EA
-B6EB B6EB EB9D95 B6EB
-B6EC B6EC EB9DA0 B6EC
-B6ED B6ED EB9DA4 B6ED
-B6EE B6EE EB9DA8 B6EE
-B6EF B6EF EB9DB0 B6EF
-B6F0 B6F0 EB9DB1 B6F0
-B6F1 B6F1 EB9DB3 B6F1
-B6F2 B6F2 EB9DB5 B6F2
-B6F3 B6F3 EB9DBC B6F3
-B6F4 B6F4 EB9DBD B6F4
-B6F5 B6F5 EB9E80 B6F5
-B6F6 B6F6 EB9E84 B6F6
-B6F7 B6F7 EB9E8C B6F7
-B6F8 B6F8 EB9E8D B6F8
-B6F9 B6F9 EB9E8F B6F9
-B6FA B6FA EB9E90 B6FA
-B6FB B6FB EB9E91 B6FB
-B6FC B6FC EB9E92 B6FC
-B6FD B6FD EB9E96 B6FD
-B6FE B6FE EB9E97 B6FE
-B741 B741 ED85AE B741
-B742 B742 ED85AF B742
-B743 B743 ED85B0 B743
-B744 B744 ED85B1 B744
-B745 B745 ED85B2 B745
-B746 B746 ED85B3 B746
-B747 B747 ED85B4 B747
-B748 B748 ED85B5 B748
-B749 B749 ED85B6 B749
-B74A B74A ED85B7 B74A
-B74B B74B ED85B8 B74B
-B74C B74C ED85B9 B74C
-B74D B74D ED85BA B74D
-B74E B74E ED85BB B74E
-B74F B74F ED85BD B74F
-B750 B750 ED85BE B750
-B751 B751 ED85BF B751
-B752 B752 ED8680 B752
-B753 B753 ED8681 B753
-B754 B754 ED8682 B754
-B755 B755 ED8683 B755
-B756 B756 ED8685 B756
-B757 B757 ED8686 B757
-B758 B758 ED8687 B758
-B759 B759 ED8689 B759
-B75A B75A ED868A B75A
-B761 B761 ED868B B761
-B762 B762 ED868C B762
-B763 B763 ED868D B763
-B764 B764 ED868E B764
-B765 B765 ED868F B765
-B766 B766 ED8690 B766
-B767 B767 ED8691 B767
-B768 B768 ED8692 B768
-B769 B769 ED8693 B769
-B76A B76A ED8694 B76A
-B76B B76B ED8695 B76B
-B76C B76C ED8696 B76C
-B76D B76D ED8697 B76D
-B76E B76E ED8698 B76E
-B76F B76F ED8699 B76F
-B770 B770 ED869A B770
-B771 B771 ED869B B771
-B772 B772 ED869C B772
-B773 B773 ED869D B773
-B774 B774 ED869E B774
-B775 B775 ED869F B775
-B776 B776 ED86A2 B776
-B777 B777 ED86A3 B777
-B778 B778 ED86A5 B778
-B779 B779 ED86A6 B779
-B77A B77A ED86A7 B77A
-B781 B781 ED86A9 B781
-B782 B782 ED86AA B782
-B783 B783 ED86AB B783
-B784 B784 ED86AC B784
-B785 B785 ED86AD B785
-B786 B786 ED86AE B786
-B787 B787 ED86AF B787
-B788 B788 ED86B2 B788
-B789 B789 ED86B4 B789
-B78A B78A ED86B6 B78A
-B78B B78B ED86B7 B78B
-B78C B78C ED86B8 B78C
-B78D B78D ED86B9 B78D
-B78E B78E ED86BB B78E
-B78F B78F ED86BD B78F
-B790 B790 ED86BE B790
-B791 B791 ED86BF B791
-B792 B792 ED8781 B792
-B793 B793 ED8782 B793
-B794 B794 ED8783 B794
-B795 B795 ED8784 B795
-B796 B796 ED8785 B796
-B797 B797 ED8786 B797
-B798 B798 ED8787 B798
-B799 B799 ED8788 B799
-B79A B79A ED8789 B79A
-B79B B79B ED878A B79B
-B79C B79C ED878B B79C
-B79D B79D ED878C B79D
-B79E B79E ED878D B79E
-B79F B79F ED878E B79F
-B7A0 B7A0 ED878F B7A0
-B7A1 B7A1 EB9E98 B7A1
-B7A2 B7A2 EB9E99 B7A2
-B7A3 B7A3 EB9E9C B7A3
-B7A4 B7A4 EB9EA0 B7A4
-B7A5 B7A5 EB9EA8 B7A5
-B7A6 B7A6 EB9EA9 B7A6
-B7A7 B7A7 EB9EAB B7A7
-B7A8 B7A8 EB9EAC B7A8
-B7A9 B7A9 EB9EAD B7A9
-B7AA B7AA EB9EB4 B7AA
-B7AB B7AB EB9EB5 B7AB
-B7AC B7AC EB9EB8 B7AC
-B7AD B7AD EB9F87 B7AD
-B7AE B7AE EB9F89 B7AE
-B7AF B7AF EB9FAC B7AF
-B7B0 B7B0 EB9FAD B7B0
-B7B1 B7B1 EB9FB0 B7B1
-B7B2 B7B2 EB9FB4 B7B2
-B7B3 B7B3 EB9FBC B7B3
-B7B4 B7B4 EB9FBD B7B4
-B7B5 B7B5 EB9FBF B7B5
-B7B6 B7B6 EBA080 B7B6
-B7B7 B7B7 EBA081 B7B7
-B7B8 B7B8 EBA087 B7B8
-B7B9 B7B9 EBA088 B7B9
-B7BA B7BA EBA089 B7BA
-B7BB B7BB EBA08C B7BB
-B7BC B7BC EBA090 B7BC
-B7BD B7BD EBA098 B7BD
-B7BE B7BE EBA099 B7BE
-B7BF B7BF EBA09B B7BF
-B7C0 B7C0 EBA09D B7C0
-B7C1 B7C1 EBA0A4 B7C1
-B7C2 B7C2 EBA0A5 B7C2
-B7C3 B7C3 EBA0A8 B7C3
-B7C4 B7C4 EBA0AC B7C4
-B7C5 B7C5 EBA0B4 B7C5
-B7C6 B7C6 EBA0B5 B7C6
-B7C7 B7C7 EBA0B7 B7C7
-B7C8 B7C8 EBA0B8 B7C8
-B7C9 B7C9 EBA0B9 B7C9
-B7CA B7CA EBA180 B7CA
-B7CB B7CB EBA184 B7CB
-B7CC B7CC EBA191 B7CC
-B7CD B7CD EBA193 B7CD
-B7CE B7CE EBA19C B7CE
-B7CF B7CF EBA19D B7CF
-B7D0 B7D0 EBA1A0 B7D0
-B7D1 B7D1 EBA1A4 B7D1
-B7D2 B7D2 EBA1AC B7D2
-B7D3 B7D3 EBA1AD B7D3
-B7D4 B7D4 EBA1AF B7D4
-B7D5 B7D5 EBA1B1 B7D5
-B7D6 B7D6 EBA1B8 B7D6
-B7D7 B7D7 EBA1BC B7D7
-B7D8 B7D8 EBA28D B7D8
-B7D9 B7D9 EBA2A8 B7D9
-B7DA B7DA EBA2B0 B7DA
-B7DB B7DB EBA2B4 B7DB
-B7DC B7DC EBA2B8 B7DC
-B7DD B7DD EBA380 B7DD
-B7DE B7DE EBA381 B7DE
-B7DF B7DF EBA383 B7DF
-B7E0 B7E0 EBA385 B7E0
-B7E1 B7E1 EBA38C B7E1
-B7E2 B7E2 EBA390 B7E2
-B7E3 B7E3 EBA394 B7E3
-B7E4 B7E4 EBA39D B7E4
-B7E5 B7E5 EBA39F B7E5
-B7E6 B7E6 EBA3A1 B7E6
-B7E7 B7E7 EBA3A8 B7E7
-B7E8 B7E8 EBA3A9 B7E8
-B7E9 B7E9 EBA3AC B7E9
-B7EA B7EA EBA3B0 B7EA
-B7EB B7EB EBA3B8 B7EB
-B7EC B7EC EBA3B9 B7EC
-B7ED B7ED EBA3BB B7ED
-B7EE B7EE EBA3BD B7EE
-B7EF B7EF EBA484 B7EF
-B7F0 B7F0 EBA498 B7F0
-B7F1 B7F1 EBA4A0 B7F1
-B7F2 B7F2 EBA4BC B7F2
-B7F3 B7F3 EBA4BD B7F3
-B7F4 B7F4 EBA580 B7F4
-B7F5 B7F5 EBA584 B7F5
-B7F6 B7F6 EBA58C B7F6
-B7F7 B7F7 EBA58F B7F7
-B7F8 B7F8 EBA591 B7F8
-B7F9 B7F9 EBA598 B7F9
-B7FA B7FA EBA599 B7FA
-B7FB B7FB EBA59C B7FB
-B7FC B7FC EBA5A0 B7FC
-B7FD B7FD EBA5A8 B7FD
-B7FE B7FE EBA5A9 B7FE
-B841 B841 ED8790 B841
-B842 B842 ED8791 B842
-B843 B843 ED8792 B843
-B844 B844 ED8793 B844
-B845 B845 ED8794 B845
-B846 B846 ED8795 B846
-B847 B847 ED8796 B847
-B848 B848 ED8797 B848
-B849 B849 ED8799 B849
-B84A B84A ED879A B84A
-B84B B84B ED879B B84B
-B84C B84C ED879C B84C
-B84D B84D ED879D B84D
-B84E B84E ED879E B84E
-B84F B84F ED879F B84F
-B850 B850 ED87A0 B850
-B851 B851 ED87A1 B851
-B852 B852 ED87A2 B852
-B853 B853 ED87A3 B853
-B854 B854 ED87A4 B854
-B855 B855 ED87A5 B855
-B856 B856 ED87A6 B856
-B857 B857 ED87A7 B857
-B858 B858 ED87A8 B858
-B859 B859 ED87A9 B859
-B85A B85A ED87AA B85A
-B861 B861 ED87AB B861
-B862 B862 ED87AC B862
-B863 B863 ED87AD B863
-B864 B864 ED87AE B864
-B865 B865 ED87AF B865
-B866 B866 ED87B0 B866
-B867 B867 ED87B1 B867
-B868 B868 ED87B2 B868
-B869 B869 ED87B3 B869
-B86A B86A ED87B5 B86A
-B86B B86B ED87B6 B86B
-B86C B86C ED87B7 B86C
-B86D B86D ED87B9 B86D
-B86E B86E ED87BA B86E
-B86F B86F ED87BB B86F
-B870 B870 ED87BC B870
-B871 B871 ED87BD B871
-B872 B872 ED87BE B872
-B873 B873 ED87BF B873
-B874 B874 ED8880 B874
-B875 B875 ED8881 B875
-B876 B876 ED8882 B876
-B877 B877 ED8883 B877
-B878 B878 ED8884 B878
-B879 B879 ED8885 B879
-B87A B87A ED8886 B87A
-B881 B881 ED8888 B881
-B882 B882 ED888A B882
-B883 B883 ED888B B883
-B884 B884 ED888C B884
-B885 B885 ED888D B885
-B886 B886 ED888E B886
-B887 B887 ED888F B887
-B888 B888 ED8891 B888
-B889 B889 ED8892 B889
-B88A B88A ED8893 B88A
-B88B B88B ED8894 B88B
-B88C B88C ED8895 B88C
-B88D B88D ED8896 B88D
-B88E B88E ED8897 B88E
-B88F B88F ED8898 B88F
-B890 B890 ED8899 B890
-B891 B891 ED889A B891
-B892 B892 ED889B B892
-B893 B893 ED889C B893
-B894 B894 ED889D B894
-B895 B895 ED889E B895
-B896 B896 ED889F B896
-B897 B897 ED88A0 B897
-B898 B898 ED88A1 B898
-B899 B899 ED88A2 B899
-B89A B89A ED88A3 B89A
-B89B B89B ED88A4 B89B
-B89C B89C ED88A5 B89C
-B89D B89D ED88A6 B89D
-B89E B89E ED88A7 B89E
-B89F B89F ED88A8 B89F
-B8A0 B8A0 ED88A9 B8A0
-B8A1 B8A1 EBA5AB B8A1
-B8A2 B8A2 EBA5AD B8A2
-B8A3 B8A3 EBA5B4 B8A3
-B8A4 B8A4 EBA5B5 B8A4
-B8A5 B8A5 EBA5B8 B8A5
-B8A6 B8A6 EBA5BC B8A6
-B8A7 B8A7 EBA684 B8A7
-B8A8 B8A8 EBA685 B8A8
-B8A9 B8A9 EBA687 B8A9
-B8AA B8AA EBA689 B8AA
-B8AB B8AB EBA68A B8AB
-B8AC B8AC EBA68D B8AC
-B8AD B8AD EBA68E B8AD
-B8AE B8AE EBA6AC B8AE
-B8AF B8AF EBA6AD B8AF
-B8B0 B8B0 EBA6B0 B8B0
-B8B1 B8B1 EBA6B4 B8B1
-B8B2 B8B2 EBA6BC B8B2
-B8B3 B8B3 EBA6BD B8B3
-B8B4 B8B4 EBA6BF B8B4
-B8B5 B8B5 EBA781 B8B5
-B8B6 B8B6 EBA788 B8B6
-B8B7 B8B7 EBA789 B8B7
-B8B8 B8B8 EBA78C B8B8
-B8B9 B8B9 EBA78E B8B9
-B8BA B8BA EBA78F B8BA
-B8BB B8BB EBA790 B8BB
-B8BC B8BC EBA791 B8BC
-B8BD B8BD EBA792 B8BD
-B8BE B8BE EBA798 B8BE
-B8BF B8BF EBA799 B8BF
-B8C0 B8C0 EBA79B B8C0
-B8C1 B8C1 EBA79D B8C1
-B8C2 B8C2 EBA79E B8C2
-B8C3 B8C3 EBA7A1 B8C3
-B8C4 B8C4 EBA7A3 B8C4
-B8C5 B8C5 EBA7A4 B8C5
-B8C6 B8C6 EBA7A5 B8C6
-B8C7 B8C7 EBA7A8 B8C7
-B8C8 B8C8 EBA7AC B8C8
-B8C9 B8C9 EBA7B4 B8C9
-B8CA B8CA EBA7B5 B8CA
-B8CB B8CB EBA7B7 B8CB
-B8CC B8CC EBA7B8 B8CC
-B8CD B8CD EBA7B9 B8CD
-B8CE B8CE EBA7BA B8CE
-B8CF B8CF EBA880 B8CF
-B8D0 B8D0 EBA881 B8D0
-B8D1 B8D1 EBA888 B8D1
-B8D2 B8D2 EBA895 B8D2
-B8D3 B8D3 EBA8B8 B8D3
-B8D4 B8D4 EBA8B9 B8D4
-B8D5 B8D5 EBA8BC B8D5
-B8D6 B8D6 EBA980 B8D6
-B8D7 B8D7 EBA982 B8D7
-B8D8 B8D8 EBA988 B8D8
-B8D9 B8D9 EBA989 B8D9
-B8DA B8DA EBA98B B8DA
-B8DB B8DB EBA98D B8DB
-B8DC B8DC EBA98E B8DC
-B8DD B8DD EBA993 B8DD
-B8DE B8DE EBA994 B8DE
-B8DF B8DF EBA995 B8DF
-B8E0 B8E0 EBA998 B8E0
-B8E1 B8E1 EBA99C B8E1
-B8E2 B8E2 EBA9A4 B8E2
-B8E3 B8E3 EBA9A5 B8E3
-B8E4 B8E4 EBA9A7 B8E4
-B8E5 B8E5 EBA9A8 B8E5
-B8E6 B8E6 EBA9A9 B8E6
-B8E7 B8E7 EBA9B0 B8E7
-B8E8 B8E8 EBA9B1 B8E8
-B8E9 B8E9 EBA9B4 B8E9
-B8EA B8EA EBA9B8 B8EA
-B8EB B8EB EBAA83 B8EB
-B8EC B8EC EBAA84 B8EC
-B8ED B8ED EBAA85 B8ED
-B8EE B8EE EBAA87 B8EE
-B8EF B8EF EBAA8C B8EF
-B8F0 B8F0 EBAAA8 B8F0
-B8F1 B8F1 EBAAA9 B8F1
-B8F2 B8F2 EBAAAB B8F2
-B8F3 B8F3 EBAAAC B8F3
-B8F4 B8F4 EBAAB0 B8F4
-B8F5 B8F5 EBAAB2 B8F5
-B8F6 B8F6 EBAAB8 B8F6
-B8F7 B8F7 EBAAB9 B8F7
-B8F8 B8F8 EBAABB B8F8
-B8F9 B8F9 EBAABD B8F9
-B8FA B8FA EBAB84 B8FA
-B8FB B8FB EBAB88 B8FB
-B8FC B8FC EBAB98 B8FC
-B8FD B8FD EBAB99 B8FD
-B8FE B8FE EBABBC B8FE
-B941 B941 ED88AA B941
-B942 B942 ED88AB B942
-B943 B943 ED88AE B943
-B944 B944 ED88AF B944
-B945 B945 ED88B1 B945
-B946 B946 ED88B2 B946
-B947 B947 ED88B3 B947
-B948 B948 ED88B5 B948
-B949 B949 ED88B6 B949
-B94A B94A ED88B7 B94A
-B94B B94B ED88B8 B94B
-B94C B94C ED88B9 B94C
-B94D B94D ED88BA B94D
-B94E B94E ED88BB B94E
-B94F B94F ED88BE B94F
-B950 B950 ED8980 B950
-B951 B951 ED8982 B951
-B952 B952 ED8983 B952
-B953 B953 ED8984 B953
-B954 B954 ED8985 B954
-B955 B955 ED8986 B955
-B956 B956 ED8987 B956
-B957 B957 ED8989 B957
-B958 B958 ED898A B958
-B959 B959 ED898B B959
-B95A B95A ED898C B95A
-B961 B961 ED898D B961
-B962 B962 ED898E B962
-B963 B963 ED898F B963
-B964 B964 ED8990 B964
-B965 B965 ED8991 B965
-B966 B966 ED8992 B966
-B967 B967 ED8993 B967
-B968 B968 ED8994 B968
-B969 B969 ED8995 B969
-B96A B96A ED8996 B96A
-B96B B96B ED8997 B96B
-B96C B96C ED8998 B96C
-B96D B96D ED8999 B96D
-B96E B96E ED899A B96E
-B96F B96F ED899B B96F
-B970 B970 ED899D B970
-B971 B971 ED899E B971
-B972 B972 ED899F B972
-B973 B973 ED89A0 B973
-B974 B974 ED89A1 B974
-B975 B975 ED89A2 B975
-B976 B976 ED89A3 B976
-B977 B977 ED89A5 B977
-B978 B978 ED89A6 B978
-B979 B979 ED89A7 B979
-B97A B97A ED89A8 B97A
-B981 B981 ED89A9 B981
-B982 B982 ED89AA B982
-B983 B983 ED89AB B983
-B984 B984 ED89AC B984
-B985 B985 ED89AD B985
-B986 B986 ED89AE B986
-B987 B987 ED89AF B987
-B988 B988 ED89B0 B988
-B989 B989 ED89B1 B989
-B98A B98A ED89B2 B98A
-B98B B98B ED89B3 B98B
-B98C B98C ED89B4 B98C
-B98D B98D ED89B5 B98D
-B98E B98E ED89B6 B98E
-B98F B98F ED89B7 B98F
-B990 B990 ED89B8 B990
-B991 B991 ED89B9 B991
-B992 B992 ED89BA B992
-B993 B993 ED89BB B993
-B994 B994 ED89BC B994
-B995 B995 ED89BD B995
-B996 B996 ED89BE B996
-B997 B997 ED89BF B997
-B998 B998 ED8A82 B998
-B999 B999 ED8A83 B999
-B99A B99A ED8A85 B99A
-B99B B99B ED8A86 B99B
-B99C B99C ED8A87 B99C
-B99D B99D ED8A89 B99D
-B99E B99E ED8A8A B99E
-B99F B99F ED8A8B B99F
-B9A0 B9A0 ED8A8C B9A0
-B9A1 B9A1 EBAC80 B9A1
-B9A2 B9A2 EBAC84 B9A2
-B9A3 B9A3 EBAC8D B9A3
-B9A4 B9A4 EBAC8F B9A4
-B9A5 B9A5 EBAC91 B9A5
-B9A6 B9A6 EBAC98 B9A6
-B9A7 B9A7 EBAC9C B9A7
-B9A8 B9A8 EBACA0 B9A8
-B9A9 B9A9 EBACA9 B9A9
-B9AA B9AA EBACAB B9AA
-B9AB B9AB EBACB4 B9AB
-B9AC B9AC EBACB5 B9AC
-B9AD B9AD EBACB6 B9AD
-B9AE B9AE EBACB8 B9AE
-B9AF B9AF EBACBB B9AF
-B9B0 B9B0 EBACBC B9B0
-B9B1 B9B1 EBACBD B9B1
-B9B2 B9B2 EBACBE B9B2
-B9B3 B9B3 EBAD84 B9B3
-B9B4 B9B4 EBAD85 B9B4
-B9B5 B9B5 EBAD87 B9B5
-B9B6 B9B6 EBAD89 B9B6
-B9B7 B9B7 EBAD8D B9B7
-B9B8 B9B8 EBAD8F B9B8
-B9B9 B9B9 EBAD90 B9B9
-B9BA B9BA EBAD94 B9BA
-B9BB B9BB EBAD98 B9BB
-B9BC B9BC EBADA1 B9BC
-B9BD B9BD EBADA3 B9BD
-B9BE B9BE EBADAC B9BE
-B9BF B9BF EBAE88 B9BF
-B9C0 B9C0 EBAE8C B9C0
-B9C1 B9C1 EBAE90 B9C1
-B9C2 B9C2 EBAEA4 B9C2
-B9C3 B9C3 EBAEA8 B9C3
-B9C4 B9C4 EBAEAC B9C4
-B9C5 B9C5 EBAEB4 B9C5
-B9C6 B9C6 EBAEB7 B9C6
-B9C7 B9C7 EBAF80 B9C7
-B9C8 B9C8 EBAF84 B9C8
-B9C9 B9C9 EBAF88 B9C9
-B9CA B9CA EBAF90 B9CA
-B9CB B9CB EBAF93 B9CB
-B9CC B9CC EBAFB8 B9CC
-B9CD B9CD EBAFB9 B9CD
-B9CE B9CE EBAFBC B9CE
-B9CF B9CF EBAFBF B9CF
-B9D0 B9D0 EBB080 B9D0
-B9D1 B9D1 EBB082 B9D1
-B9D2 B9D2 EBB088 B9D2
-B9D3 B9D3 EBB089 B9D3
-B9D4 B9D4 EBB08B B9D4
-B9D5 B9D5 EBB08C B9D5
-B9D6 B9D6 EBB08D B9D6
-B9D7 B9D7 EBB08F B9D7
-B9D8 B9D8 EBB091 B9D8
-B9D9 B9D9 EBB094 B9D9
-B9DA B9DA EBB095 B9DA
-B9DB B9DB EBB096 B9DB
-B9DC B9DC EBB097 B9DC
-B9DD B9DD EBB098 B9DD
-B9DE B9DE EBB09B B9DE
-B9DF B9DF EBB09C B9DF
-B9E0 B9E0 EBB09D B9E0
-B9E1 B9E1 EBB09E B9E1
-B9E2 B9E2 EBB09F B9E2
-B9E3 B9E3 EBB0A4 B9E3
-B9E4 B9E4 EBB0A5 B9E4
-B9E5 B9E5 EBB0A7 B9E5
-B9E6 B9E6 EBB0A9 B9E6
-B9E7 B9E7 EBB0AD B9E7
-B9E8 B9E8 EBB0B0 B9E8
-B9E9 B9E9 EBB0B1 B9E9
-B9EA B9EA EBB0B4 B9EA
-B9EB B9EB EBB0B8 B9EB
-B9EC B9EC EBB180 B9EC
-B9ED B9ED EBB181 B9ED
-B9EE B9EE EBB183 B9EE
-B9EF B9EF EBB184 B9EF
-B9F0 B9F0 EBB185 B9F0
-B9F1 B9F1 EBB189 B9F1
-B9F2 B9F2 EBB18C B9F2
-B9F3 B9F3 EBB18D B9F3
-B9F4 B9F4 EBB190 B9F4
-B9F5 B9F5 EBB19D B9F5
-B9F6 B9F6 EBB284 B9F6
-B9F7 B9F7 EBB285 B9F7
-B9F8 B9F8 EBB288 B9F8
-B9F9 B9F9 EBB28B B9F9
-B9FA B9FA EBB28C B9FA
-B9FB B9FB EBB28E B9FB
-B9FC B9FC EBB294 B9FC
-B9FD B9FD EBB295 B9FD
-B9FE B9FE EBB297 B9FE
-BA41 BA41 ED8A8D BA41
-BA42 BA42 ED8A8E BA42
-BA43 BA43 ED8A8F BA43
-BA44 BA44 ED8A92 BA44
-BA45 BA45 ED8A93 BA45
-BA46 BA46 ED8A94 BA46
-BA47 BA47 ED8A96 BA47
-BA48 BA48 ED8A97 BA48
-BA49 BA49 ED8A98 BA49
-BA4A BA4A ED8A99 BA4A
-BA4B BA4B ED8A9A BA4B
-BA4C BA4C ED8A9B BA4C
-BA4D BA4D ED8A9D BA4D
-BA4E BA4E ED8A9E BA4E
-BA4F BA4F ED8A9F BA4F
-BA50 BA50 ED8AA1 BA50
-BA51 BA51 ED8AA2 BA51
-BA52 BA52 ED8AA3 BA52
-BA53 BA53 ED8AA5 BA53
-BA54 BA54 ED8AA6 BA54
-BA55 BA55 ED8AA7 BA55
-BA56 BA56 ED8AA8 BA56
-BA57 BA57 ED8AA9 BA57
-BA58 BA58 ED8AAA BA58
-BA59 BA59 ED8AAB BA59
-BA5A BA5A ED8AAD BA5A
-BA61 BA61 ED8AAE BA61
-BA62 BA62 ED8AAF BA62
-BA63 BA63 ED8AB0 BA63
-BA64 BA64 ED8AB2 BA64
-BA65 BA65 ED8AB3 BA65
-BA66 BA66 ED8AB4 BA66
-BA67 BA67 ED8AB5 BA67
-BA68 BA68 ED8AB6 BA68
-BA69 BA69 ED8AB7 BA69
-BA6A BA6A ED8ABA BA6A
-BA6B BA6B ED8ABB BA6B
-BA6C BA6C ED8ABD BA6C
-BA6D BA6D ED8ABE BA6D
-BA6E BA6E ED8B81 BA6E
-BA6F BA6F ED8B83 BA6F
-BA70 BA70 ED8B84 BA70
-BA71 BA71 ED8B85 BA71
-BA72 BA72 ED8B86 BA72
-BA73 BA73 ED8B87 BA73
-BA74 BA74 ED8B8A BA74
-BA75 BA75 ED8B8C BA75
-BA76 BA76 ED8B8D BA76
-BA77 BA77 ED8B8E BA77
-BA78 BA78 ED8B8F BA78
-BA79 BA79 ED8B90 BA79
-BA7A BA7A ED8B91 BA7A
-BA81 BA81 ED8B92 BA81
-BA82 BA82 ED8B93 BA82
-BA83 BA83 ED8B95 BA83
-BA84 BA84 ED8B96 BA84
-BA85 BA85 ED8B97 BA85
-BA86 BA86 ED8B99 BA86
-BA87 BA87 ED8B9A BA87
-BA88 BA88 ED8B9B BA88
-BA89 BA89 ED8B9D BA89
-BA8A BA8A ED8B9E BA8A
-BA8B BA8B ED8B9F BA8B
-BA8C BA8C ED8BA0 BA8C
-BA8D BA8D ED8BA1 BA8D
-BA8E BA8E ED8BA2 BA8E
-BA8F BA8F ED8BA3 BA8F
-BA90 BA90 ED8BA6 BA90
-BA91 BA91 ED8BA7 BA91
-BA92 BA92 ED8BA8 BA92
-BA93 BA93 ED8BA9 BA93
-BA94 BA94 ED8BAA BA94
-BA95 BA95 ED8BAB BA95
-BA96 BA96 ED8BAC BA96
-BA97 BA97 ED8BAD BA97
-BA98 BA98 ED8BAE BA98
-BA99 BA99 ED8BAF BA99
-BA9A BA9A ED8BB2 BA9A
-BA9B BA9B ED8BB3 BA9B
-BA9C BA9C ED8BB5 BA9C
-BA9D BA9D ED8BB6 BA9D
-BA9E BA9E ED8BB7 BA9E
-BA9F BA9F ED8BB9 BA9F
-BAA0 BAA0 ED8BBA BAA0
-BAA1 BAA1 EBB299 BAA1
-BAA2 BAA2 EBB29A BAA2
-BAA3 BAA3 EBB2A0 BAA3
-BAA4 BAA4 EBB2A1 BAA4
-BAA5 BAA5 EBB2A4 BAA5
-BAA6 BAA6 EBB2A7 BAA6
-BAA7 BAA7 EBB2A8 BAA7
-BAA8 BAA8 EBB2B0 BAA8
-BAA9 BAA9 EBB2B1 BAA9
-BAAA BAAA EBB2B3 BAAA
-BAAB BAAB EBB2B4 BAAB
-BAAC BAAC EBB2B5 BAAC
-BAAD BAAD EBB2BC BAAD
-BAAE BAAE EBB2BD BAAE
-BAAF BAAF EBB380 BAAF
-BAB0 BAB0 EBB384 BAB0
-BAB1 BAB1 EBB38D BAB1
-BAB2 BAB2 EBB38F BAB2
-BAB3 BAB3 EBB390 BAB3
-BAB4 BAB4 EBB391 BAB4
-BAB5 BAB5 EBB395 BAB5
-BAB6 BAB6 EBB398 BAB6
-BAB7 BAB7 EBB39C BAB7
-BAB8 BAB8 EBB3B4 BAB8
-BAB9 BAB9 EBB3B5 BAB9
-BABA BABA EBB3B6 BABA
-BABB BABB EBB3B8 BABB
-BABC BABC EBB3BC BABC
-BABD BABD EBB484 BABD
-BABE BABE EBB485 BABE
-BABF BABF EBB487 BABF
-BAC0 BAC0 EBB489 BAC0
-BAC1 BAC1 EBB490 BAC1
-BAC2 BAC2 EBB494 BAC2
-BAC3 BAC3 EBB4A4 BAC3
-BAC4 BAC4 EBB4AC BAC4
-BAC5 BAC5 EBB580 BAC5
-BAC6 BAC6 EBB588 BAC6
-BAC7 BAC7 EBB589 BAC7
-BAC8 BAC8 EBB58C BAC8
-BAC9 BAC9 EBB590 BAC9
-BACA BACA EBB598 BACA
-BACB BACB EBB599 BACB
-BACC BACC EBB5A4 BACC
-BACD BACD EBB5A8 BACD
-BACE BACE EBB680 BACE
-BACF BACF EBB681 BACF
-BAD0 BAD0 EBB684 BAD0
-BAD1 BAD1 EBB687 BAD1
-BAD2 BAD2 EBB688 BAD2
-BAD3 BAD3 EBB689 BAD3
-BAD4 BAD4 EBB68A BAD4
-BAD5 BAD5 EBB690 BAD5
-BAD6 BAD6 EBB691 BAD6
-BAD7 BAD7 EBB693 BAD7
-BAD8 BAD8 EBB695 BAD8
-BAD9 BAD9 EBB699 BAD9
-BADA BADA EBB69A BADA
-BADB BADB EBB69C BADB
-BADC BADC EBB6A4 BADC
-BADD BADD EBB6B0 BADD
-BADE BADE EBB6B8 BADE
-BADF BADF EBB794 BADF
-BAE0 BAE0 EBB795 BAE0
-BAE1 BAE1 EBB798 BAE1
-BAE2 BAE2 EBB79C BAE2
-BAE3 BAE3 EBB7A9 BAE3
-BAE4 BAE4 EBB7B0 BAE4
-BAE5 BAE5 EBB7B4 BAE5
-BAE6 BAE6 EBB7B8 BAE6
-BAE7 BAE7 EBB880 BAE7
-BAE8 BAE8 EBB883 BAE8
-BAE9 BAE9 EBB885 BAE9
-BAEA BAEA EBB88C BAEA
-BAEB BAEB EBB88D BAEB
-BAEC BAEC EBB890 BAEC
-BAED BAED EBB894 BAED
-BAEE BAEE EBB89C BAEE
-BAEF BAEF EBB89D BAEF
-BAF0 BAF0 EBB89F BAF0
-BAF1 BAF1 EBB984 BAF1
-BAF2 BAF2 EBB985 BAF2
-BAF3 BAF3 EBB988 BAF3
-BAF4 BAF4 EBB98C BAF4
-BAF5 BAF5 EBB98E BAF5
-BAF6 BAF6 EBB994 BAF6
-BAF7 BAF7 EBB995 BAF7
-BAF8 BAF8 EBB997 BAF8
-BAF9 BAF9 EBB999 BAF9
-BAFA BAFA EBB99A BAFA
-BAFB BAFB EBB99B BAFB
-BAFC BAFC EBB9A0 BAFC
-BAFD BAFD EBB9A1 BAFD
-BAFE BAFE EBB9A4 BAFE
-BB41 BB41 ED8BBB BB41
-BB42 BB42 ED8BBC BB42
-BB43 BB43 ED8BBD BB43
-BB44 BB44 ED8BBE BB44
-BB45 BB45 ED8BBF BB45
-BB46 BB46 ED8C82 BB46
-BB47 BB47 ED8C84 BB47
-BB48 BB48 ED8C86 BB48
-BB49 BB49 ED8C87 BB49
-BB4A BB4A ED8C88 BB4A
-BB4B BB4B ED8C89 BB4B
-BB4C BB4C ED8C8A BB4C
-BB4D BB4D ED8C8B BB4D
-BB4E BB4E ED8C8F BB4E
-BB4F BB4F ED8C91 BB4F
-BB50 BB50 ED8C92 BB50
-BB51 BB51 ED8C93 BB51
-BB52 BB52 ED8C95 BB52
-BB53 BB53 ED8C97 BB53
-BB54 BB54 ED8C98 BB54
-BB55 BB55 ED8C99 BB55
-BB56 BB56 ED8C9A BB56
-BB57 BB57 ED8C9B BB57
-BB58 BB58 ED8C9E BB58
-BB59 BB59 ED8CA2 BB59
-BB5A BB5A ED8CA3 BB5A
-BB61 BB61 ED8CA4 BB61
-BB62 BB62 ED8CA6 BB62
-BB63 BB63 ED8CA7 BB63
-BB64 BB64 ED8CAA BB64
-BB65 BB65 ED8CAB BB65
-BB66 BB66 ED8CAD BB66
-BB67 BB67 ED8CAE BB67
-BB68 BB68 ED8CAF BB68
-BB69 BB69 ED8CB1 BB69
-BB6A BB6A ED8CB2 BB6A
-BB6B BB6B ED8CB3 BB6B
-BB6C BB6C ED8CB4 BB6C
-BB6D BB6D ED8CB5 BB6D
-BB6E BB6E ED8CB6 BB6E
-BB6F BB6F ED8CB7 BB6F
-BB70 BB70 ED8CBA BB70
-BB71 BB71 ED8CBE BB71
-BB72 BB72 ED8CBF BB72
-BB73 BB73 ED8D80 BB73
-BB74 BB74 ED8D81 BB74
-BB75 BB75 ED8D82 BB75
-BB76 BB76 ED8D83 BB76
-BB77 BB77 ED8D86 BB77
-BB78 BB78 ED8D87 BB78
-BB79 BB79 ED8D88 BB79
-BB7A BB7A ED8D89 BB7A
-BB81 BB81 ED8D8A BB81
-BB82 BB82 ED8D8B BB82
-BB83 BB83 ED8D8C BB83
-BB84 BB84 ED8D8D BB84
-BB85 BB85 ED8D8E BB85
-BB86 BB86 ED8D8F BB86
-BB87 BB87 ED8D90 BB87
-BB88 BB88 ED8D91 BB88
-BB89 BB89 ED8D92 BB89
-BB8A BB8A ED8D93 BB8A
-BB8B BB8B ED8D94 BB8B
-BB8C BB8C ED8D95 BB8C
-BB8D BB8D ED8D96 BB8D
-BB8E BB8E ED8D97 BB8E
-BB8F BB8F ED8D98 BB8F
-BB90 BB90 ED8D99 BB90
-BB91 BB91 ED8D9A BB91
-BB92 BB92 ED8D9B BB92
-BB93 BB93 ED8D9C BB93
-BB94 BB94 ED8D9D BB94
-BB95 BB95 ED8D9E BB95
-BB96 BB96 ED8D9F BB96
-BB97 BB97 ED8DA0 BB97
-BB98 BB98 ED8DA1 BB98
-BB99 BB99 ED8DA2 BB99
-BB9A BB9A ED8DA3 BB9A
-BB9B BB9B ED8DA4 BB9B
-BB9C BB9C ED8DA5 BB9C
-BB9D BB9D ED8DA6 BB9D
-BB9E BB9E ED8DA7 BB9E
-BB9F BB9F ED8DA8 BB9F
-BBA0 BBA0 ED8DA9 BBA0
-BBA1 BBA1 EBB9A8 BBA1
-BBA2 BBA2 EBB9AA BBA2
-BBA3 BBA3 EBB9B0 BBA3
-BBA4 BBA4 EBB9B1 BBA4
-BBA5 BBA5 EBB9B3 BBA5
-BBA6 BBA6 EBB9B4 BBA6
-BBA7 BBA7 EBB9B5 BBA7
-BBA8 BBA8 EBB9BB BBA8
-BBA9 BBA9 EBB9BC BBA9
-BBAA BBAA EBB9BD BBAA
-BBAB BBAB EBBA80 BBAB
-BBAC BBAC EBBA84 BBAC
-BBAD BBAD EBBA8C BBAD
-BBAE BBAE EBBA8D BBAE
-BBAF BBAF EBBA8F BBAF
-BBB0 BBB0 EBBA90 BBB0
-BBB1 BBB1 EBBA91 BBB1
-BBB2 BBB2 EBBA98 BBB2
-BBB3 BBB3 EBBA99 BBB3
-BBB4 BBB4 EBBAA8 BBB4
-BBB5 BBB5 EBBB90 BBB5
-BBB6 BBB6 EBBB91 BBB6
-BBB7 BBB7 EBBB94 BBB7
-BBB8 BBB8 EBBB97 BBB8
-BBB9 BBB9 EBBB98 BBB9
-BBBA BBBA EBBBA0 BBBA
-BBBB BBBB EBBBA3 BBBB
-BBBC BBBC EBBBA4 BBBC
-BBBD BBBD EBBBA5 BBBD
-BBBE BBBE EBBBAC BBBE
-BBBF BBBF EBBC81 BBBF
-BBC0 BBC0 EBBC88 BBC0
-BBC1 BBC1 EBBC89 BBC1
-BBC2 BBC2 EBBC98 BBC2
-BBC3 BBC3 EBBC99 BBC3
-BBC4 BBC4 EBBC9B BBC4
-BBC5 BBC5 EBBC9C BBC5
-BBC6 BBC6 EBBC9D BBC6
-BBC7 BBC7 EBBD80 BBC7
-BBC8 BBC8 EBBD81 BBC8
-BBC9 BBC9 EBBD84 BBC9
-BBCA BBCA EBBD88 BBCA
-BBCB BBCB EBBD90 BBCB
-BBCC BBCC EBBD91 BBCC
-BBCD BBCD EBBD95 BBCD
-BBCE BBCE EBBE94 BBCE
-BBCF BBCF EBBEB0 BBCF
-BBD0 BBD0 EBBF85 BBD0
-BBD1 BBD1 EBBF8C BBD1
-BBD2 BBD2 EBBF8D BBD2
-BBD3 BBD3 EBBF90 BBD3
-BBD4 BBD4 EBBF94 BBD4
-BBD5 BBD5 EBBF9C BBD5
-BBD6 BBD6 EBBF9F BBD6
-BBD7 BBD7 EBBFA1 BBD7
-BBD8 BBD8 EC80BC BBD8
-BBD9 BBD9 EC8191 BBD9
-BBDA BBDA EC8198 BBDA
-BBDB BBDB EC819C BBDB
-BBDC BBDC EC81A0 BBDC
-BBDD BBDD EC81A8 BBDD
-BBDE BBDE EC81A9 BBDE
-BBDF BBDF EC8290 BBDF
-BBE0 BBE0 EC8291 BBE0
-BBE1 BBE1 EC8294 BBE1
-BBE2 BBE2 EC8298 BBE2
-BBE3 BBE3 EC82A0 BBE3
-BBE4 BBE4 EC82A1 BBE4
-BBE5 BBE5 EC82A3 BBE5
-BBE6 BBE6 EC82A5 BBE6
-BBE7 BBE7 EC82AC BBE7
-BBE8 BBE8 EC82AD BBE8
-BBE9 BBE9 EC82AF BBE9
-BBEA BBEA EC82B0 BBEA
-BBEB BBEB EC82B3 BBEB
-BBEC BBEC EC82B4 BBEC
-BBED BBED EC82B5 BBED
-BBEE BBEE EC82B6 BBEE
-BBEF BBEF EC82BC BBEF
-BBF0 BBF0 EC82BD BBF0
-BBF1 BBF1 EC82BF BBF1
-BBF2 BBF2 EC8380 BBF2
-BBF3 BBF3 EC8381 BBF3
-BBF4 BBF4 EC8385 BBF4
-BBF5 BBF5 EC8388 BBF5
-BBF6 BBF6 EC8389 BBF6
-BBF7 BBF7 EC838C BBF7
-BBF8 BBF8 EC8390 BBF8
-BBF9 BBF9 EC8398 BBF9
-BBFA BBFA EC8399 BBFA
-BBFB BBFB EC839B BBFB
-BBFC BBFC EC839C BBFC
-BBFD BBFD EC839D BBFD
-BBFE BBFE EC83A4 BBFE
-BC41 BC41 ED8DAA BC41
-BC42 BC42 ED8DAB BC42
-BC43 BC43 ED8DAC BC43
-BC44 BC44 ED8DAD BC44
-BC45 BC45 ED8DAE BC45
-BC46 BC46 ED8DAF BC46
-BC47 BC47 ED8DB0 BC47
-BC48 BC48 ED8DB1 BC48
-BC49 BC49 ED8DB2 BC49
-BC4A BC4A ED8DB3 BC4A
-BC4B BC4B ED8DB4 BC4B
-BC4C BC4C ED8DB5 BC4C
-BC4D BC4D ED8DB6 BC4D
-BC4E BC4E ED8DB7 BC4E
-BC4F BC4F ED8DB8 BC4F
-BC50 BC50 ED8DB9 BC50
-BC51 BC51 ED8DBA BC51
-BC52 BC52 ED8DBB BC52
-BC53 BC53 ED8DBE BC53
-BC54 BC54 ED8DBF BC54
-BC55 BC55 ED8E81 BC55
-BC56 BC56 ED8E82 BC56
-BC57 BC57 ED8E83 BC57
-BC58 BC58 ED8E85 BC58
-BC59 BC59 ED8E86 BC59
-BC5A BC5A ED8E87 BC5A
-BC61 BC61 ED8E88 BC61
-BC62 BC62 ED8E89 BC62
-BC63 BC63 ED8E8A BC63
-BC64 BC64 ED8E8B BC64
-BC65 BC65 ED8E8E BC65
-BC66 BC66 ED8E92 BC66
-BC67 BC67 ED8E93 BC67
-BC68 BC68 ED8E94 BC68
-BC69 BC69 ED8E95 BC69
-BC6A BC6A ED8E96 BC6A
-BC6B BC6B ED8E97 BC6B
-BC6C BC6C ED8E9A BC6C
-BC6D BC6D ED8E9B BC6D
-BC6E BC6E ED8E9D BC6E
-BC6F BC6F ED8E9E BC6F
-BC70 BC70 ED8E9F BC70
-BC71 BC71 ED8EA1 BC71
-BC72 BC72 ED8EA2 BC72
-BC73 BC73 ED8EA3 BC73
-BC74 BC74 ED8EA4 BC74
-BC75 BC75 ED8EA5 BC75
-BC76 BC76 ED8EA6 BC76
-BC77 BC77 ED8EA7 BC77
-BC78 BC78 ED8EAA BC78
-BC79 BC79 ED8EAC BC79
-BC7A BC7A ED8EAE BC7A
-BC81 BC81 ED8EAF BC81
-BC82 BC82 ED8EB0 BC82
-BC83 BC83 ED8EB1 BC83
-BC84 BC84 ED8EB2 BC84
-BC85 BC85 ED8EB3 BC85
-BC86 BC86 ED8EB5 BC86
-BC87 BC87 ED8EB6 BC87
-BC88 BC88 ED8EB7 BC88
-BC89 BC89 ED8EB9 BC89
-BC8A BC8A ED8EBA BC8A
-BC8B BC8B ED8EBB BC8B
-BC8C BC8C ED8EBD BC8C
-BC8D BC8D ED8EBE BC8D
-BC8E BC8E ED8EBF BC8E
-BC8F BC8F ED8F80 BC8F
-BC90 BC90 ED8F81 BC90
-BC91 BC91 ED8F82 BC91
-BC92 BC92 ED8F83 BC92
-BC93 BC93 ED8F86 BC93
-BC94 BC94 ED8F87 BC94
-BC95 BC95 ED8F8A BC95
-BC96 BC96 ED8F8B BC96
-BC97 BC97 ED8F8C BC97
-BC98 BC98 ED8F8D BC98
-BC99 BC99 ED8F8E BC99
-BC9A BC9A ED8F8F BC9A
-BC9B BC9B ED8F91 BC9B
-BC9C BC9C ED8F92 BC9C
-BC9D BC9D ED8F93 BC9D
-BC9E BC9E ED8F94 BC9E
-BC9F BC9F ED8F95 BC9F
-BCA0 BCA0 ED8F96 BCA0
-BCA1 BCA1 EC83A5 BCA1
-BCA2 BCA2 EC83A8 BCA2
-BCA3 BCA3 EC83AC BCA3
-BCA4 BCA4 EC83B4 BCA4
-BCA5 BCA5 EC83B5 BCA5
-BCA6 BCA6 EC83B7 BCA6
-BCA7 BCA7 EC83B9 BCA7
-BCA8 BCA8 EC8480 BCA8
-BCA9 BCA9 EC8484 BCA9
-BCAA BCAA EC8488 BCAA
-BCAB BCAB EC8490 BCAB
-BCAC BCAC EC8495 BCAC
-BCAD BCAD EC849C BCAD
-BCAE BCAE EC849D BCAE
-BCAF BCAF EC849E BCAF
-BCB0 BCB0 EC849F BCB0
-BCB1 BCB1 EC84A0 BCB1
-BCB2 BCB2 EC84A3 BCB2
-BCB3 BCB3 EC84A4 BCB3
-BCB4 BCB4 EC84A6 BCB4
-BCB5 BCB5 EC84A7 BCB5
-BCB6 BCB6 EC84AC BCB6
-BCB7 BCB7 EC84AD BCB7
-BCB8 BCB8 EC84AF BCB8
-BCB9 BCB9 EC84B0 BCB9
-BCBA BCBA EC84B1 BCBA
-BCBB BCBB EC84B6 BCBB
-BCBC BCBC EC84B8 BCBC
-BCBD BCBD EC84B9 BCBD
-BCBE BCBE EC84BC BCBE
-BCBF BCBF EC8580 BCBF
-BCC0 BCC0 EC8588 BCC0
-BCC1 BCC1 EC8589 BCC1
-BCC2 BCC2 EC858B BCC2
-BCC3 BCC3 EC858C BCC3
-BCC4 BCC4 EC858D BCC4
-BCC5 BCC5 EC8594 BCC5
-BCC6 BCC6 EC8595 BCC6
-BCC7 BCC7 EC8598 BCC7
-BCC8 BCC8 EC859C BCC8
-BCC9 BCC9 EC85A4 BCC9
-BCCA BCCA EC85A5 BCCA
-BCCB BCCB EC85A7 BCCB
-BCCC BCCC EC85A8 BCCC
-BCCD BCCD EC85A9 BCCD
-BCCE BCCE EC85B0 BCCE
-BCCF BCCF EC85B4 BCCF
-BCD0 BCD0 EC85B8 BCD0
-BCD1 BCD1 EC8685 BCD1
-BCD2 BCD2 EC868C BCD2
-BCD3 BCD3 EC868D BCD3
-BCD4 BCD4 EC868E BCD4
-BCD5 BCD5 EC8690 BCD5
-BCD6 BCD6 EC8694 BCD6
-BCD7 BCD7 EC8696 BCD7
-BCD8 BCD8 EC869C BCD8
-BCD9 BCD9 EC869D BCD9
-BCDA BCDA EC869F BCDA
-BCDB BCDB EC86A1 BCDB
-BCDC BCDC EC86A5 BCDC
-BCDD BCDD EC86A8 BCDD
-BCDE BCDE EC86A9 BCDE
-BCDF BCDF EC86AC BCDF
-BCE0 BCE0 EC86B0 BCE0
-BCE1 BCE1 EC86BD BCE1
-BCE2 BCE2 EC8784 BCE2
-BCE3 BCE3 EC8788 BCE3
-BCE4 BCE4 EC878C BCE4
-BCE5 BCE5 EC8794 BCE5
-BCE6 BCE6 EC8797 BCE6
-BCE7 BCE7 EC8798 BCE7
-BCE8 BCE8 EC87A0 BCE8
-BCE9 BCE9 EC87A4 BCE9
-BCEA BCEA EC87A8 BCEA
-BCEB BCEB EC87B0 BCEB
-BCEC BCEC EC87B1 BCEC
-BCED BCED EC87B3 BCED
-BCEE BCEE EC87BC BCEE
-BCEF BCEF EC87BD BCEF
-BCF0 BCF0 EC8880 BCF0
-BCF1 BCF1 EC8884 BCF1
-BCF2 BCF2 EC888C BCF2
-BCF3 BCF3 EC888D BCF3
-BCF4 BCF4 EC888F BCF4
-BCF5 BCF5 EC8891 BCF5
-BCF6 BCF6 EC8898 BCF6
-BCF7 BCF7 EC8899 BCF7
-BCF8 BCF8 EC889C BCF8
-BCF9 BCF9 EC889F BCF9
-BCFA BCFA EC88A0 BCFA
-BCFB BCFB EC88A8 BCFB
-BCFC BCFC EC88A9 BCFC
-BCFD BCFD EC88AB BCFD
-BCFE BCFE EC88AD BCFE
-BD41 BD41 ED8F97 BD41
-BD42 BD42 ED8F99 BD42
-BD43 BD43 ED8F9A BD43
-BD44 BD44 ED8F9B BD44
-BD45 BD45 ED8F9C BD45
-BD46 BD46 ED8F9D BD46
-BD47 BD47 ED8F9E BD47
-BD48 BD48 ED8F9F BD48
-BD49 BD49 ED8FA0 BD49
-BD4A BD4A ED8FA2 BD4A
-BD4B BD4B ED8FA4 BD4B
-BD4C BD4C ED8FA5 BD4C
-BD4D BD4D ED8FA6 BD4D
-BD4E BD4E ED8FA7 BD4E
-BD4F BD4F ED8FA8 BD4F
-BD50 BD50 ED8FA9 BD50
-BD51 BD51 ED8FAA BD51
-BD52 BD52 ED8FAB BD52
-BD53 BD53 ED8FAE BD53
-BD54 BD54 ED8FAF BD54
-BD55 BD55 ED8FB1 BD55
-BD56 BD56 ED8FB2 BD56
-BD57 BD57 ED8FB3 BD57
-BD58 BD58 ED8FB5 BD58
-BD59 BD59 ED8FB6 BD59
-BD5A BD5A ED8FB7 BD5A
-BD61 BD61 ED8FB8 BD61
-BD62 BD62 ED8FB9 BD62
-BD63 BD63 ED8FBA BD63
-BD64 BD64 ED8FBB BD64
-BD65 BD65 ED8FBE BD65
-BD66 BD66 ED9080 BD66
-BD67 BD67 ED9082 BD67
-BD68 BD68 ED9083 BD68
-BD69 BD69 ED9084 BD69
-BD6A BD6A ED9085 BD6A
-BD6B BD6B ED9086 BD6B
-BD6C BD6C ED9087 BD6C
-BD6D BD6D ED9089 BD6D
-BD6E BD6E ED908A BD6E
-BD6F BD6F ED908B BD6F
-BD70 BD70 ED908C BD70
-BD71 BD71 ED908D BD71
-BD72 BD72 ED908E BD72
-BD73 BD73 ED908F BD73
-BD74 BD74 ED9090 BD74
-BD75 BD75 ED9091 BD75
-BD76 BD76 ED9092 BD76
-BD77 BD77 ED9093 BD77
-BD78 BD78 ED9094 BD78
-BD79 BD79 ED9095 BD79
-BD7A BD7A ED9096 BD7A
-BD81 BD81 ED9097 BD81
-BD82 BD82 ED9098 BD82
-BD83 BD83 ED9099 BD83
-BD84 BD84 ED909A BD84
-BD85 BD85 ED909B BD85
-BD86 BD86 ED909C BD86
-BD87 BD87 ED909E BD87
-BD88 BD88 ED909F BD88
-BD89 BD89 ED90A0 BD89
-BD8A BD8A ED90A1 BD8A
-BD8B BD8B ED90A2 BD8B
-BD8C BD8C ED90A3 BD8C
-BD8D BD8D ED90A4 BD8D
-BD8E BD8E ED90A5 BD8E
-BD8F BD8F ED90A6 BD8F
-BD90 BD90 ED90A7 BD90
-BD91 BD91 ED90A8 BD91
-BD92 BD92 ED90A9 BD92
-BD93 BD93 ED90AA BD93
-BD94 BD94 ED90AB BD94
-BD95 BD95 ED90AC BD95
-BD96 BD96 ED90AD BD96
-BD97 BD97 ED90AE BD97
-BD98 BD98 ED90AF BD98
-BD99 BD99 ED90B0 BD99
-BD9A BD9A ED90B1 BD9A
-BD9B BD9B ED90B2 BD9B
-BD9C BD9C ED90B3 BD9C
-BD9D BD9D ED90B4 BD9D
-BD9E BD9E ED90B5 BD9E
-BD9F BD9F ED90B6 BD9F
-BDA0 BDA0 ED90B7 BDA0
-BDA1 BDA1 EC88AF BDA1
-BDA2 BDA2 EC88B1 BDA2
-BDA3 BDA3 EC88B2 BDA3
-BDA4 BDA4 EC88B4 BDA4
-BDA5 BDA5 EC8988 BDA5
-BDA6 BDA6 EC8990 BDA6
-BDA7 BDA7 EC8991 BDA7
-BDA8 BDA8 EC8994 BDA8
-BDA9 BDA9 EC8998 BDA9
-BDAA BDAA EC89A0 BDAA
-BDAB BDAB EC89A5 BDAB
-BDAC BDAC EC89AC BDAC
-BDAD BDAD EC89AD BDAD
-BDAE BDAE EC89B0 BDAE
-BDAF BDAF EC89B4 BDAF
-BDB0 BDB0 EC89BC BDB0
-BDB1 BDB1 EC89BD BDB1
-BDB2 BDB2 EC89BF BDB2
-BDB3 BDB3 EC8A81 BDB3
-BDB4 BDB4 EC8A88 BDB4
-BDB5 BDB5 EC8A89 BDB5
-BDB6 BDB6 EC8A90 BDB6
-BDB7 BDB7 EC8A98 BDB7
-BDB8 BDB8 EC8A9B BDB8
-BDB9 BDB9 EC8A9D BDB9
-BDBA BDBA EC8AA4 BDBA
-BDBB BDBB EC8AA5 BDBB
-BDBC BDBC EC8AA8 BDBC
-BDBD BDBD EC8AAC BDBD
-BDBE BDBE EC8AAD BDBE
-BDBF BDBF EC8AB4 BDBF
-BDC0 BDC0 EC8AB5 BDC0
-BDC1 BDC1 EC8AB7 BDC1
-BDC2 BDC2 EC8AB9 BDC2
-BDC3 BDC3 EC8B9C BDC3
-BDC4 BDC4 EC8B9D BDC4
-BDC5 BDC5 EC8BA0 BDC5
-BDC6 BDC6 EC8BA3 BDC6
-BDC7 BDC7 EC8BA4 BDC7
-BDC8 BDC8 EC8BAB BDC8
-BDC9 BDC9 EC8BAC BDC9
-BDCA BDCA EC8BAD BDCA
-BDCB BDCB EC8BAF BDCB
-BDCC BDCC EC8BB1 BDCC
-BDCD BDCD EC8BB6 BDCD
-BDCE BDCE EC8BB8 BDCE
-BDCF BDCF EC8BB9 BDCF
-BDD0 BDD0 EC8BBB BDD0
-BDD1 BDD1 EC8BBC BDD1
-BDD2 BDD2 EC8C80 BDD2
-BDD3 BDD3 EC8C88 BDD3
-BDD4 BDD4 EC8C89 BDD4
-BDD5 BDD5 EC8C8C BDD5
-BDD6 BDD6 EC8C8D BDD6
-BDD7 BDD7 EC8C93 BDD7
-BDD8 BDD8 EC8C94 BDD8
-BDD9 BDD9 EC8C95 BDD9
-BDDA BDDA EC8C98 BDDA
-BDDB BDDB EC8C9C BDDB
-BDDC BDDC EC8CA4 BDDC
-BDDD BDDD EC8CA5 BDDD
-BDDE BDDE EC8CA8 BDDE
-BDDF BDDF EC8CA9 BDDF
-BDE0 BDE0 EC8D85 BDE0
-BDE1 BDE1 EC8DA8 BDE1
-BDE2 BDE2 EC8DA9 BDE2
-BDE3 BDE3 EC8DAC BDE3
-BDE4 BDE4 EC8DB0 BDE4
-BDE5 BDE5 EC8DB2 BDE5
-BDE6 BDE6 EC8DB8 BDE6
-BDE7 BDE7 EC8DB9 BDE7
-BDE8 BDE8 EC8DBC BDE8
-BDE9 BDE9 EC8DBD BDE9
-BDEA BDEA EC8E84 BDEA
-BDEB BDEB EC8E88 BDEB
-BDEC BDEC EC8E8C BDEC
-BDED BDED EC8F80 BDED
-BDEE BDEE EC8F98 BDEE
-BDEF BDEF EC8F99 BDEF
-BDF0 BDF0 EC8F9C BDF0
-BDF1 BDF1 EC8F9F BDF1
-BDF2 BDF2 EC8FA0 BDF2
-BDF3 BDF3 EC8FA2 BDF3
-BDF4 BDF4 EC8FA8 BDF4
-BDF5 BDF5 EC8FA9 BDF5
-BDF6 BDF6 EC8FAD BDF6
-BDF7 BDF7 EC8FB4 BDF7
-BDF8 BDF8 EC8FB5 BDF8
-BDF9 BDF9 EC8FB8 BDF9
-BDFA BDFA EC9088 BDFA
-BDFB BDFB EC9090 BDFB
-BDFC BDFC EC90A4 BDFC
-BDFD BDFD EC90AC BDFD
-BDFE BDFE EC90B0 BDFE
-BE41 BE41 ED90B8 BE41
-BE42 BE42 ED90B9 BE42
-BE43 BE43 ED90BA BE43
-BE44 BE44 ED90BB BE44
-BE45 BE45 ED90BC BE45
-BE46 BE46 ED90BD BE46
-BE47 BE47 ED90BE BE47
-BE48 BE48 ED90BF BE48
-BE49 BE49 ED9181 BE49
-BE4A BE4A ED9182 BE4A
-BE4B BE4B ED9183 BE4B
-BE4C BE4C ED9185 BE4C
-BE4D BE4D ED9186 BE4D
-BE4E BE4E ED9187 BE4E
-BE4F BE4F ED9188 BE4F
-BE50 BE50 ED9189 BE50
-BE51 BE51 ED918A BE51
-BE52 BE52 ED918B BE52
-BE53 BE53 ED918C BE53
-BE54 BE54 ED918D BE54
-BE55 BE55 ED918E BE55
-BE56 BE56 ED918F BE56
-BE57 BE57 ED9190 BE57
-BE58 BE58 ED9191 BE58
-BE59 BE59 ED9192 BE59
-BE5A BE5A ED9193 BE5A
-BE61 BE61 ED9194 BE61
-BE62 BE62 ED9195 BE62
-BE63 BE63 ED9196 BE63
-BE64 BE64 ED9197 BE64
-BE65 BE65 ED9198 BE65
-BE66 BE66 ED9199 BE66
-BE67 BE67 ED919A BE67
-BE68 BE68 ED919B BE68
-BE69 BE69 ED919D BE69
-BE6A BE6A ED919E BE6A
-BE6B BE6B ED919F BE6B
-BE6C BE6C ED91A1 BE6C
-BE6D BE6D ED91A2 BE6D
-BE6E BE6E ED91A3 BE6E
-BE6F BE6F ED91A5 BE6F
-BE70 BE70 ED91A6 BE70
-BE71 BE71 ED91A7 BE71
-BE72 BE72 ED91A8 BE72
-BE73 BE73 ED91A9 BE73
-BE74 BE74 ED91AA BE74
-BE75 BE75 ED91AB BE75
-BE76 BE76 ED91AC BE76
-BE77 BE77 ED91AE BE77
-BE78 BE78 ED91B0 BE78
-BE79 BE79 ED91B1 BE79
-BE7A BE7A ED91B2 BE7A
-BE81 BE81 ED91B3 BE81
-BE82 BE82 ED91B4 BE82
-BE83 BE83 ED91B5 BE83
-BE84 BE84 ED91B6 BE84
-BE85 BE85 ED91B7 BE85
-BE86 BE86 ED91BA BE86
-BE87 BE87 ED91BB BE87
-BE88 BE88 ED91BD BE88
-BE89 BE89 ED91BE BE89
-BE8A BE8A ED9281 BE8A
-BE8B BE8B ED9283 BE8B
-BE8C BE8C ED9284 BE8C
-BE8D BE8D ED9285 BE8D
-BE8E BE8E ED9286 BE8E
-BE8F BE8F ED9287 BE8F
-BE90 BE90 ED928A BE90
-BE91 BE91 ED928C BE91
-BE92 BE92 ED928E BE92
-BE93 BE93 ED928F BE93
-BE94 BE94 ED9290 BE94
-BE95 BE95 ED9291 BE95
-BE96 BE96 ED9292 BE96
-BE97 BE97 ED9293 BE97
-BE98 BE98 ED9295 BE98
-BE99 BE99 ED9296 BE99
-BE9A BE9A ED9297 BE9A
-BE9B BE9B ED9298 BE9B
-BE9C BE9C ED9299 BE9C
-BE9D BE9D ED929A BE9D
-BE9E BE9E ED929B BE9E
-BE9F BE9F ED929C BE9F
-BEA0 BEA0 ED929D BEA0
-BEA1 BEA1 EC90B4 BEA1
-BEA2 BEA2 EC90BC BEA2
-BEA3 BEA3 EC90BD BEA3
-BEA4 BEA4 EC9188 BEA4
-BEA5 BEA5 EC91A4 BEA5
-BEA6 BEA6 EC91A5 BEA6
-BEA7 BEA7 EC91A8 BEA7
-BEA8 BEA8 EC91AC BEA8
-BEA9 BEA9 EC91B4 BEA9
-BEAA BEAA EC91B5 BEAA
-BEAB BEAB EC91B9 BEAB
-BEAC BEAC EC9280 BEAC
-BEAD BEAD EC9294 BEAD
-BEAE BEAE EC929C BEAE
-BEAF BEAF EC92B8 BEAF
-BEB0 BEB0 EC92BC BEB0
-BEB1 BEB1 EC93A9 BEB1
-BEB2 BEB2 EC93B0 BEB2
-BEB3 BEB3 EC93B1 BEB3
-BEB4 BEB4 EC93B4 BEB4
-BEB5 BEB5 EC93B8 BEB5
-BEB6 BEB6 EC93BA BEB6
-BEB7 BEB7 EC93BF BEB7
-BEB8 BEB8 EC9480 BEB8
-BEB9 BEB9 EC9481 BEB9
-BEBA BEBA EC948C BEBA
-BEBB BEBB EC9490 BEBB
-BEBC BEBC EC9494 BEBC
-BEBD BEBD EC949C BEBD
-BEBE BEBE EC94A8 BEBE
-BEBF BEBF EC94A9 BEBF
-BEC0 BEC0 EC94AC BEC0
-BEC1 BEC1 EC94B0 BEC1
-BEC2 BEC2 EC94B8 BEC2
-BEC3 BEC3 EC94B9 BEC3
-BEC4 BEC4 EC94BB BEC4
-BEC5 BEC5 EC94BD BEC5
-BEC6 BEC6 EC9584 BEC6
-BEC7 BEC7 EC9585 BEC7
-BEC8 BEC8 EC9588 BEC8
-BEC9 BEC9 EC9589 BEC9
-BECA BECA EC958A BECA
-BECB BECB EC958C BECB
-BECC BECC EC958D BECC
-BECD BECD EC958E BECD
-BECE BECE EC9593 BECE
-BECF BECF EC9594 BECF
-BED0 BED0 EC9595 BED0
-BED1 BED1 EC9597 BED1
-BED2 BED2 EC9598 BED2
-BED3 BED3 EC9599 BED3
-BED4 BED4 EC959D BED4
-BED5 BED5 EC959E BED5
-BED6 BED6 EC95A0 BED6
-BED7 BED7 EC95A1 BED7
-BED8 BED8 EC95A4 BED8
-BED9 BED9 EC95A8 BED9
-BEDA BEDA EC95B0 BEDA
-BEDB BEDB EC95B1 BEDB
-BEDC BEDC EC95B3 BEDC
-BEDD BEDD EC95B4 BEDD
-BEDE BEDE EC95B5 BEDE
-BEDF BEDF EC95BC BEDF
-BEE0 BEE0 EC95BD BEE0
-BEE1 BEE1 EC9680 BEE1
-BEE2 BEE2 EC9684 BEE2
-BEE3 BEE3 EC9687 BEE3
-BEE4 BEE4 EC968C BEE4
-BEE5 BEE5 EC968D BEE5
-BEE6 BEE6 EC968F BEE6
-BEE7 BEE7 EC9691 BEE7
-BEE8 BEE8 EC9695 BEE8
-BEE9 BEE9 EC9697 BEE9
-BEEA BEEA EC9698 BEEA
-BEEB BEEB EC969C BEEB
-BEEC BEEC EC96A0 BEEC
-BEED BEED EC96A9 BEED
-BEEE BEEE EC96B4 BEEE
-BEEF BEEF EC96B5 BEEF
-BEF0 BEF0 EC96B8 BEF0
-BEF1 BEF1 EC96B9 BEF1
-BEF2 BEF2 EC96BB BEF2
-BEF3 BEF3 EC96BC BEF3
-BEF4 BEF4 EC96BD BEF4
-BEF5 BEF5 EC96BE BEF5
-BEF6 BEF6 EC9784 BEF6
-BEF7 BEF7 EC9785 BEF7
-BEF8 BEF8 EC9786 BEF8
-BEF9 BEF9 EC9787 BEF9
-BEFA BEFA EC9788 BEFA
-BEFB BEFB EC9789 BEFB
-BEFC BEFC EC978A BEFC
-BEFD BEFD EC978C BEFD
-BEFE BEFE EC978E BEFE
-BF41 BF41 ED929E BF41
-BF42 BF42 ED929F BF42
-BF43 BF43 ED92A0 BF43
-BF44 BF44 ED92A1 BF44
-BF45 BF45 ED92A2 BF45
-BF46 BF46 ED92A3 BF46
-BF47 BF47 ED92A4 BF47
-BF48 BF48 ED92A5 BF48
-BF49 BF49 ED92A6 BF49
-BF4A BF4A ED92A7 BF4A
-BF4B BF4B ED92A8 BF4B
-BF4C BF4C ED92AA BF4C
-BF4D BF4D ED92AB BF4D
-BF4E BF4E ED92AC BF4E
-BF4F BF4F ED92AD BF4F
-BF50 BF50 ED92AE BF50
-BF51 BF51 ED92AF BF51
-BF52 BF52 ED92B0 BF52
-BF53 BF53 ED92B1 BF53
-BF54 BF54 ED92B2 BF54
-BF55 BF55 ED92B3 BF55
-BF56 BF56 ED92B4 BF56
-BF57 BF57 ED92B5 BF57
-BF58 BF58 ED92B6 BF58
-BF59 BF59 ED92B7 BF59
-BF5A BF5A ED92B8 BF5A
-BF61 BF61 ED92B9 BF61
-BF62 BF62 ED92BA BF62
-BF63 BF63 ED92BB BF63
-BF64 BF64 ED92BC BF64
-BF65 BF65 ED92BD BF65
-BF66 BF66 ED92BE BF66
-BF67 BF67 ED92BF BF67
-BF68 BF68 ED9380 BF68
-BF69 BF69 ED9381 BF69
-BF6A BF6A ED9382 BF6A
-BF6B BF6B ED9383 BF6B
-BF6C BF6C ED9384 BF6C
-BF6D BF6D ED9385 BF6D
-BF6E BF6E ED9386 BF6E
-BF6F BF6F ED9387 BF6F
-BF70 BF70 ED9388 BF70
-BF71 BF71 ED9389 BF71
-BF72 BF72 ED938A BF72
-BF73 BF73 ED938B BF73
-BF74 BF74 ED938D BF74
-BF75 BF75 ED938E BF75
-BF76 BF76 ED938F BF76
-BF77 BF77 ED9391 BF77
-BF78 BF78 ED9392 BF78
-BF79 BF79 ED9393 BF79
-BF7A BF7A ED9395 BF7A
-BF81 BF81 ED9396 BF81
-BF82 BF82 ED9397 BF82
-BF83 BF83 ED9398 BF83
-BF84 BF84 ED9399 BF84
-BF85 BF85 ED939A BF85
-BF86 BF86 ED939B BF86
-BF87 BF87 ED939D BF87
-BF88 BF88 ED939E BF88
-BF89 BF89 ED93A0 BF89
-BF8A BF8A ED93A1 BF8A
-BF8B BF8B ED93A2 BF8B
-BF8C BF8C ED93A3 BF8C
-BF8D BF8D ED93A4 BF8D
-BF8E BF8E ED93A5 BF8E
-BF8F BF8F ED93A6 BF8F
-BF90 BF90 ED93A7 BF90
-BF91 BF91 ED93A9 BF91
-BF92 BF92 ED93AA BF92
-BF93 BF93 ED93AB BF93
-BF94 BF94 ED93AD BF94
-BF95 BF95 ED93AE BF95
-BF96 BF96 ED93AF BF96
-BF97 BF97 ED93B1 BF97
-BF98 BF98 ED93B2 BF98
-BF99 BF99 ED93B3 BF99
-BF9A BF9A ED93B4 BF9A
-BF9B BF9B ED93B5 BF9B
-BF9C BF9C ED93B6 BF9C
-BF9D BF9D ED93B7 BF9D
-BF9E BF9E ED93B9 BF9E
-BF9F BF9F ED93BA BF9F
-BFA0 BFA0 ED93BC BFA0
-BFA1 BFA1 EC9790 BFA1
-BFA2 BFA2 EC9791 BFA2
-BFA3 BFA3 EC9794 BFA3
-BFA4 BFA4 EC9798 BFA4
-BFA5 BFA5 EC97A0 BFA5
-BFA6 BFA6 EC97A1 BFA6
-BFA7 BFA7 EC97A3 BFA7
-BFA8 BFA8 EC97A5 BFA8
-BFA9 BFA9 EC97AC BFA9
-BFAA BFAA EC97AD BFAA
-BFAB BFAB EC97AE BFAB
-BFAC BFAC EC97B0 BFAC
-BFAD BFAD EC97B4 BFAD
-BFAE BFAE EC97B6 BFAE
-BFAF BFAF EC97B7 BFAF
-BFB0 BFB0 EC97BC BFB0
-BFB1 BFB1 EC97BD BFB1
-BFB2 BFB2 EC97BE BFB2
-BFB3 BFB3 EC97BF BFB3
-BFB4 BFB4 EC9880 BFB4
-BFB5 BFB5 EC9881 BFB5
-BFB6 BFB6 EC9885 BFB6
-BFB7 BFB7 EC9886 BFB7
-BFB8 BFB8 EC9887 BFB8
-BFB9 BFB9 EC9888 BFB9
-BFBA BFBA EC988C BFBA
-BFBB BFBB EC9890 BFBB
-BFBC BFBC EC9898 BFBC
-BFBD BFBD EC9899 BFBD
-BFBE BFBE EC989B BFBE
-BFBF BFBF EC989C BFBF
-BFC0 BFC0 EC98A4 BFC0
-BFC1 BFC1 EC98A5 BFC1
-BFC2 BFC2 EC98A8 BFC2
-BFC3 BFC3 EC98AC BFC3
-BFC4 BFC4 EC98AD BFC4
-BFC5 BFC5 EC98AE BFC5
-BFC6 BFC6 EC98B0 BFC6
-BFC7 BFC7 EC98B3 BFC7
-BFC8 BFC8 EC98B4 BFC8
-BFC9 BFC9 EC98B5 BFC9
-BFCA BFCA EC98B7 BFCA
-BFCB BFCB EC98B9 BFCB
-BFCC BFCC EC98BB BFCC
-BFCD BFCD EC9980 BFCD
-BFCE BFCE EC9981 BFCE
-BFCF BFCF EC9984 BFCF
-BFD0 BFD0 EC9988 BFD0
-BFD1 BFD1 EC9990 BFD1
-BFD2 BFD2 EC9991 BFD2
-BFD3 BFD3 EC9993 BFD3
-BFD4 BFD4 EC9994 BFD4
-BFD5 BFD5 EC9995 BFD5
-BFD6 BFD6 EC999C BFD6
-BFD7 BFD7 EC999D BFD7
-BFD8 BFD8 EC99A0 BFD8
-BFD9 BFD9 EC99AC BFD9
-BFDA BFDA EC99AF BFDA
-BFDB BFDB EC99B1 BFDB
-BFDC BFDC EC99B8 BFDC
-BFDD BFDD EC99B9 BFDD
-BFDE BFDE EC99BC BFDE
-BFDF BFDF EC9A80 BFDF
-BFE0 BFE0 EC9A88 BFE0
-BFE1 BFE1 EC9A89 BFE1
-BFE2 BFE2 EC9A8B BFE2
-BFE3 BFE3 EC9A8D BFE3
-BFE4 BFE4 EC9A94 BFE4
-BFE5 BFE5 EC9A95 BFE5
-BFE6 BFE6 EC9A98 BFE6
-BFE7 BFE7 EC9A9C BFE7
-BFE8 BFE8 EC9AA4 BFE8
-BFE9 BFE9 EC9AA5 BFE9
-BFEA BFEA EC9AA7 BFEA
-BFEB BFEB EC9AA9 BFEB
-BFEC BFEC EC9AB0 BFEC
-BFED BFED EC9AB1 BFED
-BFEE BFEE EC9AB4 BFEE
-BFEF BFEF EC9AB8 BFEF
-BFF0 BFF0 EC9AB9 BFF0
-BFF1 BFF1 EC9ABA BFF1
-BFF2 BFF2 EC9B80 BFF2
-BFF3 BFF3 EC9B81 BFF3
-BFF4 BFF4 EC9B83 BFF4
-BFF5 BFF5 EC9B85 BFF5
-BFF6 BFF6 EC9B8C BFF6
-BFF7 BFF7 EC9B8D BFF7
-BFF8 BFF8 EC9B90 BFF8
-BFF9 BFF9 EC9B94 BFF9
-BFFA BFFA EC9B9C BFFA
-BFFB BFFB EC9B9D BFFB
-BFFC BFFC EC9BA0 BFFC
-BFFD BFFD EC9BA1 BFFD
-BFFE BFFE EC9BA8 BFFE
-C041 C041 ED93BE C041
-C042 C042 ED93BF C042
-C043 C043 ED9480 C043
-C044 C044 ED9481 C044
-C045 C045 ED9482 C045
-C046 C046 ED9483 C046
-C047 C047 ED9485 C047
-C048 C048 ED9486 C048
-C049 C049 ED9487 C049
-C04A C04A ED9489 C04A
-C04B C04B ED948A C04B
-C04C C04C ED948B C04C
-C04D C04D ED948D C04D
-C04E C04E ED948E C04E
-C04F C04F ED948F C04F
-C050 C050 ED9490 C050
-C051 C051 ED9491 C051
-C052 C052 ED9492 C052
-C053 C053 ED9493 C053
-C054 C054 ED9496 C054
-C055 C055 ED9498 C055
-C056 C056 ED9499 C056
-C057 C057 ED949A C057
-C058 C058 ED949B C058
-C059 C059 ED949C C059
-C05A C05A ED949D C05A
-C061 C061 ED949E C061
-C062 C062 ED949F C062
-C063 C063 ED94A0 C063
-C064 C064 ED94A1 C064
-C065 C065 ED94A2 C065
-C066 C066 ED94A3 C066
-C067 C067 ED94A4 C067
-C068 C068 ED94A5 C068
-C069 C069 ED94A6 C069
-C06A C06A ED94A7 C06A
-C06B C06B ED94A8 C06B
-C06C C06C ED94A9 C06C
-C06D C06D ED94AA C06D
-C06E C06E ED94AB C06E
-C06F C06F ED94AC C06F
-C070 C070 ED94AD C070
-C071 C071 ED94AE C071
-C072 C072 ED94AF C072
-C073 C073 ED94B0 C073
-C074 C074 ED94B1 C074
-C075 C075 ED94B2 C075
-C076 C076 ED94B3 C076
-C077 C077 ED94B4 C077
-C078 C078 ED94B5 C078
-C079 C079 ED94B6 C079
-C07A C07A ED94B7 C07A
-C081 C081 ED94B8 C081
-C082 C082 ED94B9 C082
-C083 C083 ED94BA C083
-C084 C084 ED94BB C084
-C085 C085 ED94BE C085
-C086 C086 ED94BF C086
-C087 C087 ED9581 C087
-C088 C088 ED9582 C088
-C089 C089 ED9583 C089
-C08A C08A ED9585 C08A
-C08B C08B ED9586 C08B
-C08C C08C ED9587 C08C
-C08D C08D ED9588 C08D
-C08E C08E ED9589 C08E
-C08F C08F ED958A C08F
-C090 C090 ED958B C090
-C091 C091 ED958E C091
-C092 C092 ED9590 C092
-C093 C093 ED9592 C093
-C094 C094 ED9593 C094
-C095 C095 ED9594 C095
-C096 C096 ED9595 C096
-C097 C097 ED9596 C097
-C098 C098 ED9597 C098
-C099 C099 ED959A C099
-C09A C09A ED959B C09A
-C09B C09B ED959D C09B
-C09C C09C ED959E C09C
-C09D C09D ED959F C09D
-C09E C09E ED95A1 C09E
-C09F C09F ED95A2 C09F
-C0A0 C0A0 ED95A3 C0A0
-C0A1 C0A1 EC9BA9 C0A1
-C0A2 C0A2 EC9BAC C0A2
-C0A3 C0A3 EC9BB0 C0A3
-C0A4 C0A4 EC9BB8 C0A4
-C0A5 C0A5 EC9BB9 C0A5
-C0A6 C0A6 EC9BBD C0A6
-C0A7 C0A7 EC9C84 C0A7
-C0A8 C0A8 EC9C85 C0A8
-C0A9 C0A9 EC9C88 C0A9
-C0AA C0AA EC9C8C C0AA
-C0AB C0AB EC9C94 C0AB
-C0AC C0AC EC9C95 C0AC
-C0AD C0AD EC9C97 C0AD
-C0AE C0AE EC9C99 C0AE
-C0AF C0AF EC9CA0 C0AF
-C0B0 C0B0 EC9CA1 C0B0
-C0B1 C0B1 EC9CA4 C0B1
-C0B2 C0B2 EC9CA8 C0B2
-C0B3 C0B3 EC9CB0 C0B3
-C0B4 C0B4 EC9CB1 C0B4
-C0B5 C0B5 EC9CB3 C0B5
-C0B6 C0B6 EC9CB5 C0B6
-C0B7 C0B7 EC9CB7 C0B7
-C0B8 C0B8 EC9CBC C0B8
-C0B9 C0B9 EC9CBD C0B9
-C0BA C0BA EC9D80 C0BA
-C0BB C0BB EC9D84 C0BB
-C0BC C0BC EC9D8A C0BC
-C0BD C0BD EC9D8C C0BD
-C0BE C0BE EC9D8D C0BE
-C0BF C0BF EC9D8F C0BF
-C0C0 C0C0 EC9D91 C0C0
-C0C1 C0C1 EC9D92 C0C1
-C0C2 C0C2 EC9D93 C0C2
-C0C3 C0C3 EC9D94 C0C3
-C0C4 C0C4 EC9D95 C0C4
-C0C5 C0C5 EC9D96 C0C5
-C0C6 C0C6 EC9D97 C0C6
-C0C7 C0C7 EC9D98 C0C7
-C0C8 C0C8 EC9D9C C0C8
-C0C9 C0C9 EC9DA0 C0C9
-C0CA C0CA EC9DA8 C0CA
-C0CB C0CB EC9DAB C0CB
-C0CC C0CC EC9DB4 C0CC
-C0CD C0CD EC9DB5 C0CD
-C0CE C0CE EC9DB8 C0CE
-C0CF C0CF EC9DBC C0CF
-C0D0 C0D0 EC9DBD C0D0
-C0D1 C0D1 EC9DBE C0D1
-C0D2 C0D2 EC9E83 C0D2
-C0D3 C0D3 EC9E84 C0D3
-C0D4 C0D4 EC9E85 C0D4
-C0D5 C0D5 EC9E87 C0D5
-C0D6 C0D6 EC9E88 C0D6
-C0D7 C0D7 EC9E89 C0D7
-C0D8 C0D8 EC9E8A C0D8
-C0D9 C0D9 EC9E8E C0D9
-C0DA C0DA EC9E90 C0DA
-C0DB C0DB EC9E91 C0DB
-C0DC C0DC EC9E94 C0DC
-C0DD C0DD EC9E96 C0DD
-C0DE C0DE EC9E97 C0DE
-C0DF C0DF EC9E98 C0DF
-C0E0 C0E0 EC9E9A C0E0
-C0E1 C0E1 EC9EA0 C0E1
-C0E2 C0E2 EC9EA1 C0E2
-C0E3 C0E3 EC9EA3 C0E3
-C0E4 C0E4 EC9EA4 C0E4
-C0E5 C0E5 EC9EA5 C0E5
-C0E6 C0E6 EC9EA6 C0E6
-C0E7 C0E7 EC9EAC C0E7
-C0E8 C0E8 EC9EAD C0E8
-C0E9 C0E9 EC9EB0 C0E9
-C0EA C0EA EC9EB4 C0EA
-C0EB C0EB EC9EBC C0EB
-C0EC C0EC EC9EBD C0EC
-C0ED C0ED EC9EBF C0ED
-C0EE C0EE EC9F80 C0EE
-C0EF C0EF EC9F81 C0EF
-C0F0 C0F0 EC9F88 C0F0
-C0F1 C0F1 EC9F89 C0F1
-C0F2 C0F2 EC9F8C C0F2
-C0F3 C0F3 EC9F8E C0F3
-C0F4 C0F4 EC9F90 C0F4
-C0F5 C0F5 EC9F98 C0F5
-C0F6 C0F6 EC9F9D C0F6
-C0F7 C0F7 EC9FA4 C0F7
-C0F8 C0F8 EC9FA8 C0F8
-C0F9 C0F9 EC9FAC C0F9
-C0FA C0FA ECA080 C0FA
-C0FB C0FB ECA081 C0FB
-C0FC C0FC ECA084 C0FC
-C0FD C0FD ECA088 C0FD
-C0FE C0FE ECA08A C0FE
-C141 C141 ED95A4 C141
-C142 C142 ED95A6 C142
-C143 C143 ED95A7 C143
-C144 C144 ED95AA C144
-C145 C145 ED95AC C145
-C146 C146 ED95AE C146
-C147 C147 ED95AF C147
-C148 C148 ED95B0 C148
-C149 C149 ED95B1 C149
-C14A C14A ED95B2 C14A
-C14B C14B ED95B3 C14B
-C14C C14C ED95B6 C14C
-C14D C14D ED95B7 C14D
-C14E C14E ED95B9 C14E
-C14F C14F ED95BA C14F
-C150 C150 ED95BB C150
-C151 C151 ED95BD C151
-C152 C152 ED95BE C152
-C153 C153 ED95BF C153
-C154 C154 ED9680 C154
-C155 C155 ED9681 C155
-C156 C156 ED9682 C156
-C157 C157 ED9683 C157
-C158 C158 ED9686 C158
-C159 C159 ED968A C159
-C15A C15A ED968B C15A
-C161 C161 ED968C C161
-C162 C162 ED968D C162
-C163 C163 ED968E C163
-C164 C164 ED968F C164
-C165 C165 ED9691 C165
-C166 C166 ED9692 C166
-C167 C167 ED9693 C167
-C168 C168 ED9694 C168
-C169 C169 ED9695 C169
-C16A C16A ED9696 C16A
-C16B C16B ED9697 C16B
-C16C C16C ED9698 C16C
-C16D C16D ED9699 C16D
-C16E C16E ED969A C16E
-C16F C16F ED969B C16F
-C170 C170 ED969C C170
-C171 C171 ED969D C171
-C172 C172 ED969E C172
-C173 C173 ED969F C173
-C174 C174 ED96A0 C174
-C175 C175 ED96A1 C175
-C176 C176 ED96A2 C176
-C177 C177 ED96A3 C177
-C178 C178 ED96A4 C178
-C179 C179 ED96A6 C179
-C17A C17A ED96A7 C17A
-C181 C181 ED96A8 C181
-C182 C182 ED96A9 C182
-C183 C183 ED96AA C183
-C184 C184 ED96AB C184
-C185 C185 ED96AC C185
-C186 C186 ED96AD C186
-C187 C187 ED96AE C187
-C188 C188 ED96AF C188
-C189 C189 ED96B0 C189
-C18A C18A ED96B1 C18A
-C18B C18B ED96B2 C18B
-C18C C18C ED96B3 C18C
-C18D C18D ED96B4 C18D
-C18E C18E ED96B5 C18E
-C18F C18F ED96B6 C18F
-C190 C190 ED96B7 C190
-C191 C191 ED96B8 C191
-C192 C192 ED96B9 C192
-C193 C193 ED96BA C193
-C194 C194 ED96BB C194
-C195 C195 ED96BC C195
-C196 C196 ED96BD C196
-C197 C197 ED96BE C197
-C198 C198 ED96BF C198
-C199 C199 ED9780 C199
-C19A C19A ED9781 C19A
-C19B C19B ED9782 C19B
-C19C C19C ED9783 C19C
-C19D C19D ED9784 C19D
-C19E C19E ED9785 C19E
-C19F C19F ED9786 C19F
-C1A0 C1A0 ED9787 C1A0
-C1A1 C1A1 ECA090 C1A1
-C1A2 C1A2 ECA091 C1A2
-C1A3 C1A3 ECA093 C1A3
-C1A4 C1A4 ECA095 C1A4
-C1A5 C1A5 ECA096 C1A5
-C1A6 C1A6 ECA09C C1A6
-C1A7 C1A7 ECA09D C1A7
-C1A8 C1A8 ECA0A0 C1A8
-C1A9 C1A9 ECA0A4 C1A9
-C1AA C1AA ECA0AC C1AA
-C1AB C1AB ECA0AD C1AB
-C1AC C1AC ECA0AF C1AC
-C1AD C1AD ECA0B1 C1AD
-C1AE C1AE ECA0B8 C1AE
-C1AF C1AF ECA0BC C1AF
-C1B0 C1B0 ECA180 C1B0
-C1B1 C1B1 ECA188 C1B1
-C1B2 C1B2 ECA189 C1B2
-C1B3 C1B3 ECA18C C1B3
-C1B4 C1B4 ECA18D C1B4
-C1B5 C1B5 ECA194 C1B5
-C1B6 C1B6 ECA1B0 C1B6
-C1B7 C1B7 ECA1B1 C1B7
-C1B8 C1B8 ECA1B4 C1B8
-C1B9 C1B9 ECA1B8 C1B9
-C1BA C1BA ECA1BA C1BA
-C1BB C1BB ECA280 C1BB
-C1BC C1BC ECA281 C1BC
-C1BD C1BD ECA283 C1BD
-C1BE C1BE ECA285 C1BE
-C1BF C1BF ECA286 C1BF
-C1C0 C1C0 ECA287 C1C0
-C1C1 C1C1 ECA28B C1C1
-C1C2 C1C2 ECA28C C1C2
-C1C3 C1C3 ECA28D C1C3
-C1C4 C1C4 ECA294 C1C4
-C1C5 C1C5 ECA29D C1C5
-C1C6 C1C6 ECA29F C1C6
-C1C7 C1C7 ECA2A1 C1C7
-C1C8 C1C8 ECA2A8 C1C8
-C1C9 C1C9 ECA2BC C1C9
-C1CA C1CA ECA2BD C1CA
-C1CB C1CB ECA384 C1CB
-C1CC C1CC ECA388 C1CC
-C1CD C1CD ECA38C C1CD
-C1CE C1CE ECA394 C1CE
-C1CF C1CF ECA395 C1CF
-C1D0 C1D0 ECA397 C1D0
-C1D1 C1D1 ECA399 C1D1
-C1D2 C1D2 ECA3A0 C1D2
-C1D3 C1D3 ECA3A1 C1D3
-C1D4 C1D4 ECA3A4 C1D4
-C1D5 C1D5 ECA3B5 C1D5
-C1D6 C1D6 ECA3BC C1D6
-C1D7 C1D7 ECA3BD C1D7
-C1D8 C1D8 ECA480 C1D8
-C1D9 C1D9 ECA484 C1D9
-C1DA C1DA ECA485 C1DA
-C1DB C1DB ECA486 C1DB
-C1DC C1DC ECA48C C1DC
-C1DD C1DD ECA48D C1DD
-C1DE C1DE ECA48F C1DE
-C1DF C1DF ECA491 C1DF
-C1E0 C1E0 ECA498 C1E0
-C1E1 C1E1 ECA4AC C1E1
-C1E2 C1E2 ECA4B4 C1E2
-C1E3 C1E3 ECA590 C1E3
-C1E4 C1E4 ECA591 C1E4
-C1E5 C1E5 ECA594 C1E5
-C1E6 C1E6 ECA598 C1E6
-C1E7 C1E7 ECA5A0 C1E7
-C1E8 C1E8 ECA5A1 C1E8
-C1E9 C1E9 ECA5A3 C1E9
-C1EA C1EA ECA5AC C1EA
-C1EB C1EB ECA5B0 C1EB
-C1EC C1EC ECA5B4 C1EC
-C1ED C1ED ECA5BC C1ED
-C1EE C1EE ECA688 C1EE
-C1EF C1EF ECA689 C1EF
-C1F0 C1F0 ECA68C C1F0
-C1F1 C1F1 ECA690 C1F1
-C1F2 C1F2 ECA698 C1F2
-C1F3 C1F3 ECA699 C1F3
-C1F4 C1F4 ECA69B C1F4
-C1F5 C1F5 ECA69D C1F5
-C1F6 C1F6 ECA780 C1F6
-C1F7 C1F7 ECA781 C1F7
-C1F8 C1F8 ECA784 C1F8
-C1F9 C1F9 ECA787 C1F9
-C1FA C1FA ECA788 C1FA
-C1FB C1FB ECA78A C1FB
-C1FC C1FC ECA790 C1FC
-C1FD C1FD ECA791 C1FD
-C1FE C1FE ECA793 C1FE
-C241 C241 ED978A C241
-C242 C242 ED978B C242
-C243 C243 ED978D C243
-C244 C244 ED978E C244
-C245 C245 ED978F C245
-C246 C246 ED9791 C246
-C247 C247 ED9793 C247
-C248 C248 ED9794 C248
-C249 C249 ED9795 C249
-C24A C24A ED9796 C24A
-C24B C24B ED9797 C24B
-C24C C24C ED979A C24C
-C24D C24D ED979C C24D
-C24E C24E ED979E C24E
-C24F C24F ED979F C24F
-C250 C250 ED97A0 C250
-C251 C251 ED97A1 C251
-C252 C252 ED97A2 C252
-C253 C253 ED97A3 C253
-C254 C254 ED97A6 C254
-C255 C255 ED97A7 C255
-C256 C256 ED97A9 C256
-C257 C257 ED97AA C257
-C258 C258 ED97AB C258
-C259 C259 ED97AD C259
-C25A C25A ED97AE C25A
-C261 C261 ED97AF C261
-C262 C262 ED97B0 C262
-C263 C263 ED97B1 C263
-C264 C264 ED97B2 C264
-C265 C265 ED97B3 C265
-C266 C266 ED97B6 C266
-C267 C267 ED97B8 C267
-C268 C268 ED97BA C268
-C269 C269 ED97BB C269
-C26A C26A ED97BC C26A
-C26B C26B ED97BD C26B
-C26C C26C ED97BE C26C
-C26D C26D ED97BF C26D
-C26E C26E ED9882 C26E
-C26F C26F ED9883 C26F
-C270 C270 ED9885 C270
-C271 C271 ED9886 C271
-C272 C272 ED9887 C272
-C273 C273 ED9889 C273
-C274 C274 ED988A C274
-C275 C275 ED988B C275
-C276 C276 ED988C C276
-C277 C277 ED988D C277
-C278 C278 ED988E C278
-C279 C279 ED988F C279
-C27A C27A ED9892 C27A
-C281 C281 ED9896 C281
-C282 C282 ED9897 C282
-C283 C283 ED9898 C283
-C284 C284 ED9899 C284
-C285 C285 ED989A C285
-C286 C286 ED989B C286
-C287 C287 ED989D C287
-C288 C288 ED989E C288
-C289 C289 ED989F C289
-C28A C28A ED98A1 C28A
-C28B C28B ED98A2 C28B
-C28C C28C ED98A3 C28C
-C28D C28D ED98A5 C28D
-C28E C28E ED98A6 C28E
-C28F C28F ED98A7 C28F
-C290 C290 ED98A8 C290
-C291 C291 ED98A9 C291
-C292 C292 ED98AA C292
-C293 C293 ED98AB C293
-C294 C294 ED98AC C294
-C295 C295 ED98AE C295
-C296 C296 ED98AF C296
-C297 C297 ED98B0 C297
-C298 C298 ED98B1 C298
-C299 C299 ED98B2 C299
-C29A C29A ED98B3 C29A
-C29B C29B ED98B4 C29B
-C29C C29C ED98B5 C29C
-C29D C29D ED98B6 C29D
-C29E C29E ED98B7 C29E
-C29F C29F ED98BA C29F
-C2A0 C2A0 ED98BB C2A0
-C2A1 C2A1 ECA795 C2A1
-C2A2 C2A2 ECA796 C2A2
-C2A3 C2A3 ECA799 C2A3
-C2A4 C2A4 ECA79A C2A4
-C2A5 C2A5 ECA79C C2A5
-C2A6 C2A6 ECA79D C2A6
-C2A7 C2A7 ECA7A0 C2A7
-C2A8 C2A8 ECA7A2 C2A8
-C2A9 C2A9 ECA7A4 C2A9
-C2AA C2AA ECA7A7 C2AA
-C2AB C2AB ECA7AC C2AB
-C2AC C2AC ECA7AD C2AC
-C2AD C2AD ECA7AF C2AD
-C2AE C2AE ECA7B0 C2AE
-C2AF C2AF ECA7B1 C2AF
-C2B0 C2B0 ECA7B8 C2B0
-C2B1 C2B1 ECA7B9 C2B1
-C2B2 C2B2 ECA7BC C2B2
-C2B3 C2B3 ECA880 C2B3
-C2B4 C2B4 ECA888 C2B4
-C2B5 C2B5 ECA889 C2B5
-C2B6 C2B6 ECA88B C2B6
-C2B7 C2B7 ECA88C C2B7
-C2B8 C2B8 ECA88D C2B8
-C2B9 C2B9 ECA894 C2B9
-C2BA C2BA ECA898 C2BA
-C2BB C2BB ECA8A9 C2BB
-C2BC C2BC ECA98C C2BC
-C2BD C2BD ECA98D C2BD
-C2BE C2BE ECA990 C2BE
-C2BF C2BF ECA994 C2BF
-C2C0 C2C0 ECA99C C2C0
-C2C1 C2C1 ECA99D C2C1
-C2C2 C2C2 ECA99F C2C2
-C2C3 C2C3 ECA9A0 C2C3
-C2C4 C2C4 ECA9A1 C2C4
-C2C5 C2C5 ECA9A8 C2C5
-C2C6 C2C6 ECA9BD C2C6
-C2C7 C2C7 ECAA84 C2C7
-C2C8 C2C8 ECAA98 C2C8
-C2C9 C2C9 ECAABC C2C9
-C2CA C2CA ECAABD C2CA
-C2CB C2CB ECAB80 C2CB
-C2CC C2CC ECAB84 C2CC
-C2CD C2CD ECAB8C C2CD
-C2CE C2CE ECAB8D C2CE
-C2CF C2CF ECAB8F C2CF
-C2D0 C2D0 ECAB91 C2D0
-C2D1 C2D1 ECAB93 C2D1
-C2D2 C2D2 ECAB98 C2D2
-C2D3 C2D3 ECAB99 C2D3
-C2D4 C2D4 ECABA0 C2D4
-C2D5 C2D5 ECABAC C2D5
-C2D6 C2D6 ECABB4 C2D6
-C2D7 C2D7 ECAC88 C2D7
-C2D8 C2D8 ECAC90 C2D8
-C2D9 C2D9 ECAC94 C2D9
-C2DA C2DA ECAC98 C2DA
-C2DB C2DB ECACA0 C2DB
-C2DC C2DC ECACA1 C2DC
-C2DD C2DD ECAD81 C2DD
-C2DE C2DE ECAD88 C2DE
-C2DF C2DF ECAD89 C2DF
-C2E0 C2E0 ECAD8C C2E0
-C2E1 C2E1 ECAD90 C2E1
-C2E2 C2E2 ECAD98 C2E2
-C2E3 C2E3 ECAD99 C2E3
-C2E4 C2E4 ECAD9D C2E4
-C2E5 C2E5 ECADA4 C2E5
-C2E6 C2E6 ECADB8 C2E6
-C2E7 C2E7 ECADB9 C2E7
-C2E8 C2E8 ECAE9C C2E8
-C2E9 C2E9 ECAEB8 C2E9
-C2EA C2EA ECAF94 C2EA
-C2EB C2EB ECAFA4 C2EB
-C2EC C2EC ECAFA7 C2EC
-C2ED C2ED ECAFA9 C2ED
-C2EE C2EE ECB08C C2EE
-C2EF C2EF ECB08D C2EF
-C2F0 C2F0 ECB090 C2F0
-C2F1 C2F1 ECB094 C2F1
-C2F2 C2F2 ECB09C C2F2
-C2F3 C2F3 ECB09D C2F3
-C2F4 C2F4 ECB0A1 C2F4
-C2F5 C2F5 ECB0A2 C2F5
-C2F6 C2F6 ECB0A7 C2F6
-C2F7 C2F7 ECB0A8 C2F7
-C2F8 C2F8 ECB0A9 C2F8
-C2F9 C2F9 ECB0AC C2F9
-C2FA C2FA ECB0AE C2FA
-C2FB C2FB ECB0B0 C2FB
-C2FC C2FC ECB0B8 C2FC
-C2FD C2FD ECB0B9 C2FD
-C2FE C2FE ECB0BB C2FE
-C341 C341 ED98BD C341
-C342 C342 ED98BE C342
-C343 C343 ED98BF C343
-C344 C344 ED9981 C344
-C345 C345 ED9982 C345
-C346 C346 ED9983 C346
-C347 C347 ED9984 C347
-C348 C348 ED9986 C348
-C349 C349 ED9987 C349
-C34A C34A ED998A C34A
-C34B C34B ED998C C34B
-C34C C34C ED998E C34C
-C34D C34D ED998F C34D
-C34E C34E ED9990 C34E
-C34F C34F ED9992 C34F
-C350 C350 ED9993 C350
-C351 C351 ED9996 C351
-C352 C352 ED9997 C352
-C353 C353 ED9999 C353
-C354 C354 ED999A C354
-C355 C355 ED999B C355
-C356 C356 ED999D C356
-C357 C357 ED999E C357
-C358 C358 ED999F C358
-C359 C359 ED99A0 C359
-C35A C35A ED99A1 C35A
-C361 C361 ED99A2 C361
-C362 C362 ED99A3 C362
-C363 C363 ED99A4 C363
-C364 C364 ED99A5 C364
-C365 C365 ED99A6 C365
-C366 C366 ED99A8 C366
-C367 C367 ED99AA C367
-C368 C368 ED99AB C368
-C369 C369 ED99AC C369
-C36A C36A ED99AD C36A
-C36B C36B ED99AE C36B
-C36C C36C ED99AF C36C
-C36D C36D ED99B2 C36D
-C36E C36E ED99B3 C36E
-C36F C36F ED99B5 C36F
-C370 C370 ED99B6 C370
-C371 C371 ED99B7 C371
-C372 C372 ED99B8 C372
-C373 C373 ED99B9 C373
-C374 C374 ED99BA C374
-C375 C375 ED99BB C375
-C376 C376 ED99BC C376
-C377 C377 ED99BD C377
-C378 C378 ED99BE C378
-C379 C379 ED99BF C379
-C37A C37A ED9A80 C37A
-C381 C381 ED9A81 C381
-C382 C382 ED9A82 C382
-C383 C383 ED9A84 C383
-C384 C384 ED9A86 C384
-C385 C385 ED9A87 C385
-C386 C386 ED9A88 C386
-C387 C387 ED9A89 C387
-C388 C388 ED9A8A C388
-C389 C389 ED9A8B C389
-C38A C38A ED9A8E C38A
-C38B C38B ED9A8F C38B
-C38C C38C ED9A91 C38C
-C38D C38D ED9A92 C38D
-C38E C38E ED9A93 C38E
-C38F C38F ED9A95 C38F
-C390 C390 ED9A96 C390
-C391 C391 ED9A97 C391
-C392 C392 ED9A98 C392
-C393 C393 ED9A99 C393
-C394 C394 ED9A9A C394
-C395 C395 ED9A9B C395
-C396 C396 ED9A9C C396
-C397 C397 ED9A9E C397
-C398 C398 ED9AA0 C398
-C399 C399 ED9AA2 C399
-C39A C39A ED9AA3 C39A
-C39B C39B ED9AA4 C39B
-C39C C39C ED9AA5 C39C
-C39D C39D ED9AA6 C39D
-C39E C39E ED9AA7 C39E
-C39F C39F ED9AA9 C39F
-C3A0 C3A0 ED9AAA C3A0
-C3A1 C3A1 ECB0BC C3A1
-C3A2 C3A2 ECB0BD C3A2
-C3A3 C3A3 ECB0BE C3A3
-C3A4 C3A4 ECB184 C3A4
-C3A5 C3A5 ECB185 C3A5
-C3A6 C3A6 ECB188 C3A6
-C3A7 C3A7 ECB18C C3A7
-C3A8 C3A8 ECB194 C3A8
-C3A9 C3A9 ECB195 C3A9
-C3AA C3AA ECB197 C3AA
-C3AB C3AB ECB198 C3AB
-C3AC C3AC ECB199 C3AC
-C3AD C3AD ECB1A0 C3AD
-C3AE C3AE ECB1A4 C3AE
-C3AF C3AF ECB1A6 C3AF
-C3B0 C3B0 ECB1A8 C3B0
-C3B1 C3B1 ECB1B0 C3B1
-C3B2 C3B2 ECB1B5 C3B2
-C3B3 C3B3 ECB298 C3B3
-C3B4 C3B4 ECB299 C3B4
-C3B5 C3B5 ECB29C C3B5
-C3B6 C3B6 ECB2A0 C3B6
-C3B7 C3B7 ECB2A8 C3B7
-C3B8 C3B8 ECB2A9 C3B8
-C3B9 C3B9 ECB2AB C3B9
-C3BA C3BA ECB2AC C3BA
-C3BB C3BB ECB2AD C3BB
-C3BC C3BC ECB2B4 C3BC
-C3BD C3BD ECB2B5 C3BD
-C3BE C3BE ECB2B8 C3BE
-C3BF C3BF ECB2BC C3BF
-C3C0 C3C0 ECB384 C3C0
-C3C1 C3C1 ECB385 C3C1
-C3C2 C3C2 ECB387 C3C2
-C3C3 C3C3 ECB389 C3C3
-C3C4 C3C4 ECB390 C3C4
-C3C5 C3C5 ECB394 C3C5
-C3C6 C3C6 ECB3A4 C3C6
-C3C7 C3C7 ECB3AC C3C7
-C3C8 C3C8 ECB3B0 C3C8
-C3C9 C3C9 ECB481 C3C9
-C3CA C3CA ECB488 C3CA
-C3CB C3CB ECB489 C3CB
-C3CC C3CC ECB48C C3CC
-C3CD C3CD ECB490 C3CD
-C3CE C3CE ECB498 C3CE
-C3CF C3CF ECB499 C3CF
-C3D0 C3D0 ECB49B C3D0
-C3D1 C3D1 ECB49D C3D1
-C3D2 C3D2 ECB4A4 C3D2
-C3D3 C3D3 ECB4A8 C3D3
-C3D4 C3D4 ECB4AC C3D4
-C3D5 C3D5 ECB4B9 C3D5
-C3D6 C3D6 ECB59C C3D6
-C3D7 C3D7 ECB5A0 C3D7
-C3D8 C3D8 ECB5A4 C3D8
-C3D9 C3D9 ECB5AC C3D9
-C3DA C3DA ECB5AD C3DA
-C3DB C3DB ECB5AF C3DB
-C3DC C3DC ECB5B1 C3DC
-C3DD C3DD ECB5B8 C3DD
-C3DE C3DE ECB688 C3DE
-C3DF C3DF ECB694 C3DF
-C3E0 C3E0 ECB695 C3E0
-C3E1 C3E1 ECB698 C3E1
-C3E2 C3E2 ECB69C C3E2
-C3E3 C3E3 ECB6A4 C3E3
-C3E4 C3E4 ECB6A5 C3E4
-C3E5 C3E5 ECB6A7 C3E5
-C3E6 C3E6 ECB6A9 C3E6
-C3E7 C3E7 ECB6B0 C3E7
-C3E8 C3E8 ECB784 C3E8
-C3E9 C3E9 ECB78C C3E9
-C3EA C3EA ECB790 C3EA
-C3EB C3EB ECB7A8 C3EB
-C3EC C3EC ECB7AC C3EC
-C3ED C3ED ECB7B0 C3ED
-C3EE C3EE ECB7B8 C3EE
-C3EF C3EF ECB7B9 C3EF
-C3F0 C3F0 ECB7BB C3F0
-C3F1 C3F1 ECB7BD C3F1
-C3F2 C3F2 ECB884 C3F2
-C3F3 C3F3 ECB888 C3F3
-C3F4 C3F4 ECB88C C3F4
-C3F5 C3F5 ECB894 C3F5
-C3F6 C3F6 ECB899 C3F6
-C3F7 C3F7 ECB8A0 C3F7
-C3F8 C3F8 ECB8A1 C3F8
-C3F9 C3F9 ECB8A4 C3F9
-C3FA C3FA ECB8A8 C3FA
-C3FB C3FB ECB8B0 C3FB
-C3FC C3FC ECB8B1 C3FC
-C3FD C3FD ECB8B3 C3FD
-C3FE C3FE ECB8B5 C3FE
-C441 C441 ED9AAB C441
-C442 C442 ED9AAD C442
-C443 C443 ED9AAE C443
-C444 C444 ED9AAF C444
-C445 C445 ED9AB1 C445
-C446 C446 ED9AB2 C446
-C447 C447 ED9AB3 C447
-C448 C448 ED9AB4 C448
-C449 C449 ED9AB5 C449
-C44A C44A ED9AB6 C44A
-C44B C44B ED9AB7 C44B
-C44C C44C ED9AB8 C44C
-C44D C44D ED9ABA C44D
-C44E C44E ED9ABC C44E
-C44F C44F ED9ABD C44F
-C450 C450 ED9ABE C450
-C451 C451 ED9ABF C451
-C452 C452 ED9B80 C452
-C453 C453 ED9B81 C453
-C454 C454 ED9B82 C454
-C455 C455 ED9B83 C455
-C456 C456 ED9B86 C456
-C457 C457 ED9B87 C457
-C458 C458 ED9B89 C458
-C459 C459 ED9B8A C459
-C45A C45A ED9B8B C45A
-C461 C461 ED9B8D C461
-C462 C462 ED9B8E C462
-C463 C463 ED9B8F C463
-C464 C464 ED9B90 C464
-C465 C465 ED9B92 C465
-C466 C466 ED9B93 C466
-C467 C467 ED9B95 C467
-C468 C468 ED9B96 C468
-C469 C469 ED9B98 C469
-C46A C46A ED9B9A C46A
-C46B C46B ED9B9B C46B
-C46C C46C ED9B9C C46C
-C46D C46D ED9B9D C46D
-C46E C46E ED9B9E C46E
-C46F C46F ED9B9F C46F
-C470 C470 ED9BA1 C470
-C471 C471 ED9BA2 C471
-C472 C472 ED9BA3 C472
-C473 C473 ED9BA5 C473
-C474 C474 ED9BA6 C474
-C475 C475 ED9BA7 C475
-C476 C476 ED9BA9 C476
-C477 C477 ED9BAA C477
-C478 C478 ED9BAB C478
-C479 C479 ED9BAC C479
-C47A C47A ED9BAD C47A
-C481 C481 ED9BAE C481
-C482 C482 ED9BAF C482
-C483 C483 ED9BB1 C483
-C484 C484 ED9BB2 C484
-C485 C485 ED9BB3 C485
-C486 C486 ED9BB4 C486
-C487 C487 ED9BB6 C487
-C488 C488 ED9BB7 C488
-C489 C489 ED9BB8 C489
-C48A C48A ED9BB9 C48A
-C48B C48B ED9BBA C48B
-C48C C48C ED9BBB C48C
-C48D C48D ED9BBE C48D
-C48E C48E ED9BBF C48E
-C48F C48F ED9C81 C48F
-C490 C490 ED9C82 C490
-C491 C491 ED9C83 C491
-C492 C492 ED9C85 C492
-C493 C493 ED9C86 C493
-C494 C494 ED9C87 C494
-C495 C495 ED9C88 C495
-C496 C496 ED9C89 C496
-C497 C497 ED9C8A C497
-C498 C498 ED9C8B C498
-C499 C499 ED9C8C C499
-C49A C49A ED9C8D C49A
-C49B C49B ED9C8E C49B
-C49C C49C ED9C8F C49C
-C49D C49D ED9C90 C49D
-C49E C49E ED9C92 C49E
-C49F C49F ED9C93 C49F
-C4A0 C4A0 ED9C94 C4A0
-C4A1 C4A1 ECB998 C4A1
-C4A2 C4A2 ECB999 C4A2
-C4A3 C4A3 ECB99C C4A3
-C4A4 C4A4 ECB99F C4A4
-C4A5 C4A5 ECB9A0 C4A5
-C4A6 C4A6 ECB9A1 C4A6
-C4A7 C4A7 ECB9A8 C4A7
-C4A8 C4A8 ECB9A9 C4A8
-C4A9 C4A9 ECB9AB C4A9
-C4AA C4AA ECB9AD C4AA
-C4AB C4AB ECB9B4 C4AB
-C4AC C4AC ECB9B5 C4AC
-C4AD C4AD ECB9B8 C4AD
-C4AE C4AE ECB9BC C4AE
-C4AF C4AF ECBA84 C4AF
-C4B0 C4B0 ECBA85 C4B0
-C4B1 C4B1 ECBA87 C4B1
-C4B2 C4B2 ECBA89 C4B2
-C4B3 C4B3 ECBA90 C4B3
-C4B4 C4B4 ECBA91 C4B4
-C4B5 C4B5 ECBA94 C4B5
-C4B6 C4B6 ECBA98 C4B6
-C4B7 C4B7 ECBAA0 C4B7
-C4B8 C4B8 ECBAA1 C4B8
-C4B9 C4B9 ECBAA3 C4B9
-C4BA C4BA ECBAA4 C4BA
-C4BB C4BB ECBAA5 C4BB
-C4BC C4BC ECBAAC C4BC
-C4BD C4BD ECBAAD C4BD
-C4BE C4BE ECBB81 C4BE
-C4BF C4BF ECBBA4 C4BF
-C4C0 C4C0 ECBBA5 C4C0
-C4C1 C4C1 ECBBA8 C4C1
-C4C2 C4C2 ECBBAB C4C2
-C4C3 C4C3 ECBBAC C4C3
-C4C4 C4C4 ECBBB4 C4C4
-C4C5 C4C5 ECBBB5 C4C5
-C4C6 C4C6 ECBBB7 C4C6
-C4C7 C4C7 ECBBB8 C4C7
-C4C8 C4C8 ECBBB9 C4C8
-C4C9 C4C9 ECBC80 C4C9
-C4CA C4CA ECBC81 C4CA
-C4CB C4CB ECBC84 C4CB
-C4CC C4CC ECBC88 C4CC
-C4CD C4CD ECBC90 C4CD
-C4CE C4CE ECBC91 C4CE
-C4CF C4CF ECBC93 C4CF
-C4D0 C4D0 ECBC95 C4D0
-C4D1 C4D1 ECBC9C C4D1
-C4D2 C4D2 ECBCA0 C4D2
-C4D3 C4D3 ECBCA4 C4D3
-C4D4 C4D4 ECBCAC C4D4
-C4D5 C4D5 ECBCAD C4D5
-C4D6 C4D6 ECBCAF C4D6
-C4D7 C4D7 ECBCB0 C4D7
-C4D8 C4D8 ECBCB1 C4D8
-C4D9 C4D9 ECBCB8 C4D9
-C4DA C4DA ECBD94 C4DA
-C4DB C4DB ECBD95 C4DB
-C4DC C4DC ECBD98 C4DC
-C4DD C4DD ECBD9C C4DD
-C4DE C4DE ECBDA4 C4DE
-C4DF C4DF ECBDA5 C4DF
-C4E0 C4E0 ECBDA7 C4E0
-C4E1 C4E1 ECBDA9 C4E1
-C4E2 C4E2 ECBDB0 C4E2
-C4E3 C4E3 ECBDB1 C4E3
-C4E4 C4E4 ECBDB4 C4E4
-C4E5 C4E5 ECBDB8 C4E5
-C4E6 C4E6 ECBE80 C4E6
-C4E7 C4E7 ECBE85 C4E7
-C4E8 C4E8 ECBE8C C4E8
-C4E9 C4E9 ECBEA1 C4E9
-C4EA C4EA ECBEA8 C4EA
-C4EB C4EB ECBEB0 C4EB
-C4EC C4EC ECBF84 C4EC
-C4ED C4ED ECBFA0 C4ED
-C4EE C4EE ECBFA1 C4EE
-C4EF C4EF ECBFA4 C4EF
-C4F0 C4F0 ECBFA8 C4F0
-C4F1 C4F1 ECBFB0 C4F1
-C4F2 C4F2 ECBFB1 C4F2
-C4F3 C4F3 ECBFB3 C4F3
-C4F4 C4F4 ECBFB5 C4F4
-C4F5 C4F5 ECBFBC C4F5
-C4F6 C4F6 ED8080 C4F6
-C4F7 C4F7 ED8084 C4F7
-C4F8 C4F8 ED8091 C4F8
-C4F9 C4F9 ED8098 C4F9
-C4FA C4FA ED80AD C4FA
-C4FB C4FB ED80B4 C4FB
-C4FC C4FC ED80B5 C4FC
-C4FD C4FD ED80B8 C4FD
-C4FE C4FE ED80BC C4FE
-C541 C541 ED9C95 C541
-C542 C542 ED9C96 C542
-C543 C543 ED9C97 C543
-C544 C544 ED9C9A C544
-C545 C545 ED9C9B C545
-C546 C546 ED9C9D C546
-C547 C547 ED9C9E C547
-C548 C548 ED9C9F C548
-C549 C549 ED9CA1 C549
-C54A C54A ED9CA2 C54A
-C54B C54B ED9CA3 C54B
-C54C C54C ED9CA4 C54C
-C54D C54D ED9CA5 C54D
-C54E C54E ED9CA6 C54E
-C54F C54F ED9CA7 C54F
-C550 C550 ED9CAA C550
-C551 C551 ED9CAC C551
-C552 C552 ED9CAE C552
-C553 C553 ED9CAF C553
-C554 C554 ED9CB0 C554
-C555 C555 ED9CB1 C555
-C556 C556 ED9CB2 C556
-C557 C557 ED9CB3 C557
-C558 C558 ED9CB6 C558
-C559 C559 ED9CB7 C559
-C55A C55A ED9CB9 C55A
-C561 C561 ED9CBA C561
-C562 C562 ED9CBB C562
-C563 C563 ED9CBD C563
-C564 C564 ED9CBE C564
-C565 C565 ED9CBF C565
-C566 C566 ED9D80 C566
-C567 C567 ED9D81 C567
-C568 C568 ED9D82 C568
-C569 C569 ED9D83 C569
-C56A C56A ED9D85 C56A
-C56B C56B ED9D86 C56B
-C56C C56C ED9D88 C56C
-C56D C56D ED9D8A C56D
-C56E C56E ED9D8B C56E
-C56F C56F ED9D8C C56F
-C570 C570 ED9D8D C570
-C571 C571 ED9D8E C571
-C572 C572 ED9D8F C572
-C573 C573 ED9D92 C573
-C574 C574 ED9D93 C574
-C575 C575 ED9D95 C575
-C576 C576 ED9D9A C576
-C577 C577 ED9D9B C577
-C578 C578 ED9D9C C578
-C579 C579 ED9D9D C579
-C57A C57A ED9D9E C57A
-C581 C581 ED9D9F C581
-C582 C582 ED9DA2 C582
-C583 C583 ED9DA4 C583
-C584 C584 ED9DA6 C584
-C585 C585 ED9DA7 C585
-C586 C586 ED9DA8 C586
-C587 C587 ED9DAA C587
-C588 C588 ED9DAB C588
-C589 C589 ED9DAD C589
-C58A C58A ED9DAE C58A
-C58B C58B ED9DAF C58B
-C58C C58C ED9DB1 C58C
-C58D C58D ED9DB2 C58D
-C58E C58E ED9DB3 C58E
-C58F C58F ED9DB5 C58F
-C590 C590 ED9DB6 C590
-C591 C591 ED9DB7 C591
-C592 C592 ED9DB8 C592
-C593 C593 ED9DB9 C593
-C594 C594 ED9DBA C594
-C595 C595 ED9DBB C595
-C596 C596 ED9DBE C596
-C597 C597 ED9DBF C597
-C598 C598 ED9E80 C598
-C599 C599 ED9E82 C599
-C59A C59A ED9E83 C59A
-C59B C59B ED9E84 C59B
-C59C C59C ED9E85 C59C
-C59D C59D ED9E86 C59D
-C59E C59E ED9E87 C59E
-C59F C59F ED9E8A C59F
-C5A0 C5A0 ED9E8B C5A0
-C5A1 C5A1 ED8184 C5A1
-C5A2 C5A2 ED8185 C5A2
-C5A3 C5A3 ED8187 C5A3
-C5A4 C5A4 ED8189 C5A4
-C5A5 C5A5 ED8190 C5A5
-C5A6 C5A6 ED8194 C5A6
-C5A7 C5A7 ED8198 C5A7
-C5A8 C5A8 ED81A0 C5A8
-C5A9 C5A9 ED81AC C5A9
-C5AA C5AA ED81AD C5AA
-C5AB C5AB ED81B0 C5AB
-C5AC C5AC ED81B4 C5AC
-C5AD C5AD ED81BC C5AD
-C5AE C5AE ED81BD C5AE
-C5AF C5AF ED8281 C5AF
-C5B0 C5B0 ED82A4 C5B0
-C5B1 C5B1 ED82A5 C5B1
-C5B2 C5B2 ED82A8 C5B2
-C5B3 C5B3 ED82AC C5B3
-C5B4 C5B4 ED82B4 C5B4
-C5B5 C5B5 ED82B5 C5B5
-C5B6 C5B6 ED82B7 C5B6
-C5B7 C5B7 ED82B9 C5B7
-C5B8 C5B8 ED8380 C5B8
-C5B9 C5B9 ED8381 C5B9
-C5BA C5BA ED8384 C5BA
-C5BB C5BB ED8388 C5BB
-C5BC C5BC ED8389 C5BC
-C5BD C5BD ED8390 C5BD
-C5BE C5BE ED8391 C5BE
-C5BF C5BF ED8393 C5BF
-C5C0 C5C0 ED8394 C5C0
-C5C1 C5C1 ED8395 C5C1
-C5C2 C5C2 ED839C C5C2
-C5C3 C5C3 ED839D C5C3
-C5C4 C5C4 ED83A0 C5C4
-C5C5 C5C5 ED83A4 C5C5
-C5C6 C5C6 ED83AC C5C6
-C5C7 C5C7 ED83AD C5C7
-C5C8 C5C8 ED83AF C5C8
-C5C9 C5C9 ED83B0 C5C9
-C5CA C5CA ED83B1 C5CA
-C5CB C5CB ED83B8 C5CB
-C5CC C5CC ED848D C5CC
-C5CD C5CD ED84B0 C5CD
-C5CE C5CE ED84B1 C5CE
-C5CF C5CF ED84B4 C5CF
-C5D0 C5D0 ED84B8 C5D0
-C5D1 C5D1 ED84BA C5D1
-C5D2 C5D2 ED8580 C5D2
-C5D3 C5D3 ED8581 C5D3
-C5D4 C5D4 ED8583 C5D4
-C5D5 C5D5 ED8584 C5D5
-C5D6 C5D6 ED8585 C5D6
-C5D7 C5D7 ED858C C5D7
-C5D8 C5D8 ED858D C5D8
-C5D9 C5D9 ED8590 C5D9
-C5DA C5DA ED8594 C5DA
-C5DB C5DB ED859C C5DB
-C5DC C5DC ED859D C5DC
-C5DD C5DD ED859F C5DD
-C5DE C5DE ED85A1 C5DE
-C5DF C5DF ED85A8 C5DF
-C5E0 C5E0 ED85AC C5E0
-C5E1 C5E1 ED85BC C5E1
-C5E2 C5E2 ED8684 C5E2
-C5E3 C5E3 ED8688 C5E3
-C5E4 C5E4 ED86A0 C5E4
-C5E5 C5E5 ED86A1 C5E5
-C5E6 C5E6 ED86A4 C5E6
-C5E7 C5E7 ED86A8 C5E7
-C5E8 C5E8 ED86B0 C5E8
-C5E9 C5E9 ED86B1 C5E9
-C5EA C5EA ED86B3 C5EA
-C5EB C5EB ED86B5 C5EB
-C5EC C5EC ED86BA C5EC
-C5ED C5ED ED86BC C5ED
-C5EE C5EE ED8780 C5EE
-C5EF C5EF ED8798 C5EF
-C5F0 C5F0 ED87B4 C5F0
-C5F1 C5F1 ED87B8 C5F1
-C5F2 C5F2 ED8887 C5F2
-C5F3 C5F3 ED8889 C5F3
-C5F4 C5F4 ED8890 C5F4
-C5F5 C5F5 ED88AC C5F5
-C5F6 C5F6 ED88AD C5F6
-C5F7 C5F7 ED88B0 C5F7
-C5F8 C5F8 ED88B4 C5F8
-C5F9 C5F9 ED88BC C5F9
-C5FA C5FA ED88BD C5FA
-C5FB C5FB ED88BF C5FB
-C5FC C5FC ED8981 C5FC
-C5FD C5FD ED8988 C5FD
-C5FE C5FE ED899C C5FE
-C641 C641 ED9E8D C641
-C642 C642 ED9E8E C642
-C643 C643 ED9E8F C643
-C644 C644 ED9E91 C644
-C645 C645 ED9E92 C645
-C646 C646 ED9E93 C646
-C647 C647 ED9E94 C647
-C648 C648 ED9E95 C648
-C649 C649 ED9E96 C649
-C64A C64A ED9E97 C64A
-C64B C64B ED9E9A C64B
-C64C C64C ED9E9C C64C
-C64D C64D ED9E9E C64D
-C64E C64E ED9E9F C64E
-C64F C64F ED9EA0 C64F
-C650 C650 ED9EA1 C650
-C651 C651 ED9EA2 C651
-C652 C652 ED9EA3 C652
-C6A1 C6A1 ED89A4 C6A1
-C6A2 C6A2 ED8A80 C6A2
-C6A3 C6A3 ED8A81 C6A3
-C6A4 C6A4 ED8A84 C6A4
-C6A5 C6A5 ED8A88 C6A5
-C6A6 C6A6 ED8A90 C6A6
-C6A7 C6A7 ED8A91 C6A7
-C6A8 C6A8 ED8A95 C6A8
-C6A9 C6A9 ED8A9C C6A9
-C6AA C6AA ED8AA0 C6AA
-C6AB C6AB ED8AA4 C6AB
-C6AC C6AC ED8AAC C6AC
-C6AD C6AD ED8AB1 C6AD
-C6AE C6AE ED8AB8 C6AE
-C6AF C6AF ED8AB9 C6AF
-C6B0 C6B0 ED8ABC C6B0
-C6B1 C6B1 ED8ABF C6B1
-C6B2 C6B2 ED8B80 C6B2
-C6B3 C6B3 ED8B82 C6B3
-C6B4 C6B4 ED8B88 C6B4
-C6B5 C6B5 ED8B89 C6B5
-C6B6 C6B6 ED8B8B C6B6
-C6B7 C6B7 ED8B94 C6B7
-C6B8 C6B8 ED8B98 C6B8
-C6B9 C6B9 ED8B9C C6B9
-C6BA C6BA ED8BA4 C6BA
-C6BB C6BB ED8BA5 C6BB
-C6BC C6BC ED8BB0 C6BC
-C6BD C6BD ED8BB1 C6BD
-C6BE C6BE ED8BB4 C6BE
-C6BF C6BF ED8BB8 C6BF
-C6C0 C6C0 ED8C80 C6C0
-C6C1 C6C1 ED8C81 C6C1
-C6C2 C6C2 ED8C83 C6C2
-C6C3 C6C3 ED8C85 C6C3
-C6C4 C6C4 ED8C8C C6C4
-C6C5 C6C5 ED8C8D C6C5
-C6C6 C6C6 ED8C8E C6C6
-C6C7 C6C7 ED8C90 C6C7
-C6C8 C6C8 ED8C94 C6C8
-C6C9 C6C9 ED8C96 C6C9
-C6CA C6CA ED8C9C C6CA
-C6CB C6CB ED8C9D C6CB
-C6CC C6CC ED8C9F C6CC
-C6CD C6CD ED8CA0 C6CD
-C6CE C6CE ED8CA1 C6CE
-C6CF C6CF ED8CA5 C6CF
-C6D0 C6D0 ED8CA8 C6D0
-C6D1 C6D1 ED8CA9 C6D1
-C6D2 C6D2 ED8CAC C6D2
-C6D3 C6D3 ED8CB0 C6D3
-C6D4 C6D4 ED8CB8 C6D4
-C6D5 C6D5 ED8CB9 C6D5
-C6D6 C6D6 ED8CBB C6D6
-C6D7 C6D7 ED8CBC C6D7
-C6D8 C6D8 ED8CBD C6D8
-C6D9 C6D9 ED8D84 C6D9
-C6DA C6DA ED8D85 C6DA
-C6DB C6DB ED8DBC C6DB
-C6DC C6DC ED8DBD C6DC
-C6DD C6DD ED8E80 C6DD
-C6DE C6DE ED8E84 C6DE
-C6DF C6DF ED8E8C C6DF
-C6E0 C6E0 ED8E8D C6E0
-C6E1 C6E1 ED8E8F C6E1
-C6E2 C6E2 ED8E90 C6E2
-C6E3 C6E3 ED8E91 C6E3
-C6E4 C6E4 ED8E98 C6E4
-C6E5 C6E5 ED8E99 C6E5
-C6E6 C6E6 ED8E9C C6E6
-C6E7 C6E7 ED8EA0 C6E7
-C6E8 C6E8 ED8EA8 C6E8
-C6E9 C6E9 ED8EA9 C6E9
-C6EA C6EA ED8EAB C6EA
-C6EB C6EB ED8EAD C6EB
-C6EC C6EC ED8EB4 C6EC
-C6ED C6ED ED8EB8 C6ED
-C6EE C6EE ED8EBC C6EE
-C6EF C6EF ED8F84 C6EF
-C6F0 C6F0 ED8F85 C6F0
-C6F1 C6F1 ED8F88 C6F1
-C6F2 C6F2 ED8F89 C6F2
-C6F3 C6F3 ED8F90 C6F3
-C6F4 C6F4 ED8F98 C6F4
-C6F5 C6F5 ED8FA1 C6F5
-C6F6 C6F6 ED8FA3 C6F6
-C6F7 C6F7 ED8FAC C6F7
-C6F8 C6F8 ED8FAD C6F8
-C6F9 C6F9 ED8FB0 C6F9
-C6FA C6FA ED8FB4 C6FA
-C6FB C6FB ED8FBC C6FB
-C6FC C6FC ED8FBD C6FC
-C6FD C6FD ED8FBF C6FD
-C6FE C6FE ED9081 C6FE
-C7A1 C7A1 ED9088 C7A1
-C7A2 C7A2 ED909D C7A2
-C7A3 C7A3 ED9180 C7A3
-C7A4 C7A4 ED9184 C7A4
-C7A5 C7A5 ED919C C7A5
-C7A6 C7A6 ED91A0 C7A6
-C7A7 C7A7 ED91A4 C7A7
-C7A8 C7A8 ED91AD C7A8
-C7A9 C7A9 ED91AF C7A9
-C7AA C7AA ED91B8 C7AA
-C7AB C7AB ED91B9 C7AB
-C7AC C7AC ED91BC C7AC
-C7AD C7AD ED91BF C7AD
-C7AE C7AE ED9280 C7AE
-C7AF C7AF ED9282 C7AF
-C7B0 C7B0 ED9288 C7B0
-C7B1 C7B1 ED9289 C7B1
-C7B2 C7B2 ED928B C7B2
-C7B3 C7B3 ED928D C7B3
-C7B4 C7B4 ED9294 C7B4
-C7B5 C7B5 ED92A9 C7B5
-C7B6 C7B6 ED938C C7B6
-C7B7 C7B7 ED9390 C7B7
-C7B8 C7B8 ED9394 C7B8
-C7B9 C7B9 ED939C C7B9
-C7BA C7BA ED939F C7BA
-C7BB C7BB ED93A8 C7BB
-C7BC C7BC ED93AC C7BC
-C7BD C7BD ED93B0 C7BD
-C7BE C7BE ED93B8 C7BE
-C7BF C7BF ED93BB C7BF
-C7C0 C7C0 ED93BD C7C0
-C7C1 C7C1 ED9484 C7C1
-C7C2 C7C2 ED9488 C7C2
-C7C3 C7C3 ED948C C7C3
-C7C4 C7C4 ED9494 C7C4
-C7C5 C7C5 ED9495 C7C5
-C7C6 C7C6 ED9497 C7C6
-C7C7 C7C7 ED94BC C7C7
-C7C8 C7C8 ED94BD C7C8
-C7C9 C7C9 ED9580 C7C9
-C7CA C7CA ED9584 C7CA
-C7CB C7CB ED958C C7CB
-C7CC C7CC ED958D C7CC
-C7CD C7CD ED958F C7CD
-C7CE C7CE ED9591 C7CE
-C7CF C7CF ED9598 C7CF
-C7D0 C7D0 ED9599 C7D0
-C7D1 C7D1 ED959C C7D1
-C7D2 C7D2 ED95A0 C7D2
-C7D3 C7D3 ED95A5 C7D3
-C7D4 C7D4 ED95A8 C7D4
-C7D5 C7D5 ED95A9 C7D5
-C7D6 C7D6 ED95AB C7D6
-C7D7 C7D7 ED95AD C7D7
-C7D8 C7D8 ED95B4 C7D8
-C7D9 C7D9 ED95B5 C7D9
-C7DA C7DA ED95B8 C7DA
-C7DB C7DB ED95BC C7DB
-C7DC C7DC ED9684 C7DC
-C7DD C7DD ED9685 C7DD
-C7DE C7DE ED9687 C7DE
-C7DF C7DF ED9688 C7DF
-C7E0 C7E0 ED9689 C7E0
-C7E1 C7E1 ED9690 C7E1
-C7E2 C7E2 ED96A5 C7E2
-C7E3 C7E3 ED9788 C7E3
-C7E4 C7E4 ED9789 C7E4
-C7E5 C7E5 ED978C C7E5
-C7E6 C7E6 ED9790 C7E6
-C7E7 C7E7 ED9792 C7E7
-C7E8 C7E8 ED9798 C7E8
-C7E9 C7E9 ED9799 C7E9
-C7EA C7EA ED979B C7EA
-C7EB C7EB ED979D C7EB
-C7EC C7EC ED97A4 C7EC
-C7ED C7ED ED97A5 C7ED
-C7EE C7EE ED97A8 C7EE
-C7EF C7EF ED97AC C7EF
-C7F0 C7F0 ED97B4 C7F0
-C7F1 C7F1 ED97B5 C7F1
-C7F2 C7F2 ED97B7 C7F2
-C7F3 C7F3 ED97B9 C7F3
-C7F4 C7F4 ED9880 C7F4
-C7F5 C7F5 ED9881 C7F5
-C7F6 C7F6 ED9884 C7F6
-C7F7 C7F7 ED9888 C7F7
-C7F8 C7F8 ED9890 C7F8
-C7F9 C7F9 ED9891 C7F9
-C7FA C7FA ED9893 C7FA
-C7FB C7FB ED9894 C7FB
-C7FC C7FC ED9895 C7FC
-C7FD C7FD ED989C C7FD
-C7FE C7FE ED98A0 C7FE
-C8A1 C8A1 ED98A4 C8A1
-C8A2 C8A2 ED98AD C8A2
-C8A3 C8A3 ED98B8 C8A3
-C8A4 C8A4 ED98B9 C8A4
-C8A5 C8A5 ED98BC C8A5
-C8A6 C8A6 ED9980 C8A6
-C8A7 C8A7 ED9985 C8A7
-C8A8 C8A8 ED9988 C8A8
-C8A9 C8A9 ED9989 C8A9
-C8AA C8AA ED998B C8AA
-C8AB C8AB ED998D C8AB
-C8AC C8AC ED9991 C8AC
-C8AD C8AD ED9994 C8AD
-C8AE C8AE ED9995 C8AE
-C8AF C8AF ED9998 C8AF
-C8B0 C8B0 ED999C C8B0
-C8B1 C8B1 ED99A7 C8B1
-C8B2 C8B2 ED99A9 C8B2
-C8B3 C8B3 ED99B0 C8B3
-C8B4 C8B4 ED99B1 C8B4
-C8B5 C8B5 ED99B4 C8B5
-C8B6 C8B6 ED9A83 C8B6
-C8B7 C8B7 ED9A85 C8B7
-C8B8 C8B8 ED9A8C C8B8
-C8B9 C8B9 ED9A8D C8B9
-C8BA C8BA ED9A90 C8BA
-C8BB C8BB ED9A94 C8BB
-C8BC C8BC ED9A9D C8BC
-C8BD C8BD ED9A9F C8BD
-C8BE C8BE ED9AA1 C8BE
-C8BF C8BF ED9AA8 C8BF
-C8C0 C8C0 ED9AAC C8C0
-C8C1 C8C1 ED9AB0 C8C1
-C8C2 C8C2 ED9AB9 C8C2
-C8C3 C8C3 ED9ABB C8C3
-C8C4 C8C4 ED9B84 C8C4
-C8C5 C8C5 ED9B85 C8C5
-C8C6 C8C6 ED9B88 C8C6
-C8C7 C8C7 ED9B8C C8C7
-C8C8 C8C8 ED9B91 C8C8
-C8C9 C8C9 ED9B94 C8C9
-C8CA C8CA ED9B97 C8CA
-C8CB C8CB ED9B99 C8CB
-C8CC C8CC ED9BA0 C8CC
-C8CD C8CD ED9BA4 C8CD
-C8CE C8CE ED9BA8 C8CE
-C8CF C8CF ED9BB0 C8CF
-C8D0 C8D0 ED9BB5 C8D0
-C8D1 C8D1 ED9BBC C8D1
-C8D2 C8D2 ED9BBD C8D2
-C8D3 C8D3 ED9C80 C8D3
-C8D4 C8D4 ED9C84 C8D4
-C8D5 C8D5 ED9C91 C8D5
-C8D6 C8D6 ED9C98 C8D6
-C8D7 C8D7 ED9C99 C8D7
-C8D8 C8D8 ED9C9C C8D8
-C8D9 C8D9 ED9CA0 C8D9
-C8DA C8DA ED9CA8 C8DA
-C8DB C8DB ED9CA9 C8DB
-C8DC C8DC ED9CAB C8DC
-C8DD C8DD ED9CAD C8DD
-C8DE C8DE ED9CB4 C8DE
-C8DF C8DF ED9CB5 C8DF
-C8E0 C8E0 ED9CB8 C8E0
-C8E1 C8E1 ED9CBC C8E1
-C8E2 C8E2 ED9D84 C8E2
-C8E3 C8E3 ED9D87 C8E3
-C8E4 C8E4 ED9D89 C8E4
-C8E5 C8E5 ED9D90 C8E5
-C8E6 C8E6 ED9D91 C8E6
-C8E7 C8E7 ED9D94 C8E7
-C8E8 C8E8 ED9D96 C8E8
-C8E9 C8E9 ED9D97 C8E9
-C8EA C8EA ED9D98 C8EA
-C8EB C8EB ED9D99 C8EB
-C8EC C8EC ED9DA0 C8EC
-C8ED C8ED ED9DA1 C8ED
-C8EE C8EE ED9DA3 C8EE
-C8EF C8EF ED9DA5 C8EF
-C8F0 C8F0 ED9DA9 C8F0
-C8F1 C8F1 ED9DAC C8F1
-C8F2 C8F2 ED9DB0 C8F2
-C8F3 C8F3 ED9DB4 C8F3
-C8F4 C8F4 ED9DBC C8F4
-C8F5 C8F5 ED9DBD C8F5
-C8F6 C8F6 ED9E81 C8F6
-C8F7 C8F7 ED9E88 C8F7
-C8F8 C8F8 ED9E89 C8F8
-C8F9 C8F9 ED9E8C C8F9
-C8FA C8FA ED9E90 C8FA
-C8FB C8FB ED9E98 C8FB
-C8FC C8FC ED9E99 C8FC
-C8FD C8FD ED9E9B C8FD
-C8FE C8FE ED9E9D C8FE
-CAA1 CAA1 E4BCBD CAA1
-CAA2 CAA2 E4BDB3 CAA2
-CAA3 CAA3 E58187 CAA3
-CAA4 CAA4 E583B9 CAA4
-CAA5 CAA5 E58AA0 CAA5
-CAA6 CAA6 E58FAF CAA6
-CAA7 CAA7 E591B5 CAA7
-CAA8 CAA8 E593A5 CAA8
-CAA9 CAA9 E59889 CAA9
-CAAA CAAA E5AB81 CAAA
-CAAB CAAB E5AEB6 CAAB
-CAAC CAAC E69A87 CAAC
-CAAD CAAD E69EB6 CAAD
-CAAE CAAE E69EB7 CAAE
-CAAF CAAF E69FAF CAAF
-CAB0 CAB0 E6AD8C CAB0
-CAB1 CAB1 E78F82 CAB1
-CAB2 CAB2 E79782 CAB2
-CAB3 CAB3 E7A8BC CAB3
-CAB4 CAB4 E88B9B CAB4
-CAB5 CAB5 E88C84 CAB5
-CAB6 CAB6 E8A197 CAB6
-CAB7 CAB7 E8A288 CAB7
-CAB8 CAB8 E8A8B6 CAB8
-CAB9 CAB9 E8B388 CAB9
-CABA CABA E8B78F CABA
-CABB CABB E8BBBB CABB
-CABC CABC E8BFA6 CABC
-CABD CABD E9A795 CABD
-CABE CABE E588BB CABE
-CABF CABF E58DB4 CABF
-CAC0 CAC0 E59084 CAC0
-CAC1 CAC1 E681AA CAC1
-CAC2 CAC2 E685A4 CAC2
-CAC3 CAC3 E6AEBC CAC3
-CAC4 CAC4 E78F8F CAC4
-CAC5 CAC5 E8849A CAC5
-CAC6 CAC6 E8A6BA CAC6
-CAC7 CAC7 E8A792 CAC7
-CAC8 CAC8 E996A3 CAC8
-CAC9 CAC9 E4BE83 CAC9
-CACA CACA E5888A CACA
-CACB CACB E5A2BE CACB
-CACC CACC E5A5B8 CACC
-CACD CACD E5A7A6 CACD
-CACE CACE E5B9B2 CACE
-CACF CACF E5B9B9 CACF
-CAD0 CAD0 E68787 CAD0
-CAD1 CAD1 E68F80 CAD1
-CAD2 CAD2 E69D86 CAD2
-CAD3 CAD3 E69FAC CAD3
-CAD4 CAD4 E6A1BF CAD4
-CAD5 CAD5 E6BE97 CAD5
-CAD6 CAD6 E7998E CAD6
-CAD7 CAD7 E79C8B CAD7
-CAD8 CAD8 E7A3B5 CAD8
-CAD9 CAD9 E7A888 CAD9
-CADA CADA E7ABBF CADA
-CADB CADB E7B0A1 CADB
-CADC CADC E8829D CADC
-CADD CADD E889AE CADD
-CADE CADE E889B1 CADE
-CADF CADF E8ABAB CADF
-CAE0 CAE0 E99693 CAE0
-CAE1 CAE1 E4B9AB CAE1
-CAE2 CAE2 E5969D CAE2
-CAE3 CAE3 E69BB7 CAE3
-CAE4 CAE4 E6B8B4 CAE4
-CAE5 CAE5 E7A2A3 CAE5
-CAE6 CAE6 E7ABAD CAE6
-CAE7 CAE7 E8919B CAE7
-CAE8 CAE8 E8A490 CAE8
-CAE9 CAE9 E89D8E CAE9
-CAEA CAEA E99EA8 CAEA
-CAEB CAEB E58B98 CAEB
-CAEC CAEC E59D8E CAEC
-CAED CAED E5A0AA CAED
-CAEE CAEE E5B58C CAEE
-CAEF CAEF E6849F CAEF
-CAF0 CAF0 E686BE CAF0
-CAF1 CAF1 E688A1 CAF1
-CAF2 CAF2 E695A2 CAF2
-CAF3 CAF3 E69F91 CAF3
-CAF4 CAF4 E6A984 CAF4
-CAF5 CAF5 E6B89B CAF5
-CAF6 CAF6 E79498 CAF6
-CAF7 CAF7 E796B3 CAF7
-CAF8 CAF8 E79BA3 CAF8
-CAF9 CAF9 E79EB0 CAF9
-CAFA CAFA E7B4BA CAFA
-CAFB CAFB E982AF CAFB
-CAFC CAFC E99191 CAFC
-CAFD CAFD E99192 CAFD
-CAFE CAFE E9BE95 CAFE
-CBA1 CBA1 E58CA3 CBA1
-CBA2 CBA2 E5B2AC CBA2
-CBA3 CBA3 E794B2 CBA3
-CBA4 CBA4 E8839B CBA4
-CBA5 CBA5 E98980 CBA5
-CBA6 CBA6 E99698 CBA6
-CBA7 CBA7 E5899B CBA7
-CBA8 CBA8 E5A088 CBA8
-CBA9 CBA9 E5A79C CBA9
-CBAA CBAA E5B2A1 CBAA
-CBAB CBAB E5B497 CBAB
-CBAC CBAC E5BAB7 CBAC
-CBAD CBAD E5BCBA CBAD
-CBAE CBAE E5BD8A CBAE
-CBAF CBAF E685B7 CBAF
-CBB0 CBB0 E6B19F CBB0
-CBB1 CBB1 E795BA CBB1
-CBB2 CBB2 E79686 CBB2
-CBB3 CBB3 E7B3A0 CBB3
-CBB4 CBB4 E7B5B3 CBB4
-CBB5 CBB5 E7B6B1 CBB5
-CBB6 CBB6 E7BE8C CBB6
-CBB7 CBB7 E88594 CBB7
-CBB8 CBB8 E888A1 CBB8
-CBB9 CBB9 E89691 CBB9
-CBBA CBBA E8A581 CBBA
-CBBB CBBB E8AC9B CBBB
-CBBC CBBC E98BBC CBBC
-CBBD CBBD E9998D CBBD
-CBBE CBBE E9B187 CBBE
-CBBF CBBF E4BB8B CBBF
-CBC0 CBC0 E4BBB7 CBC0
-CBC1 CBC1 E5808B CBC1
-CBC2 CBC2 E587B1 CBC2
-CBC3 CBC3 E5A18F CBC3
-CBC4 CBC4 E684B7 CBC4
-CBC5 CBC5 E684BE CBC5
-CBC6 CBC6 E685A8 CBC6
-CBC7 CBC7 E694B9 CBC7
-CBC8 CBC8 E6A7AA CBC8
-CBC9 CBC9 E6BC91 CBC9
-CBCA CBCA E796A5 CBCA
-CBCB CBCB E79A86 CBCB
-CBCC CBCC E79B96 CBCC
-CBCD CBCD E7AE87 CBCD
-CBCE CBCE E88AA5 CBCE
-CBCF CBCF E8938B CBCF
-CBD0 CBD0 EFA480 CBD0
-CBD1 CBD1 E98EA7 CBD1
-CBD2 CBD2 E9968B CBD2
-CBD3 CBD3 E59680 CBD3
-CBD4 CBD4 E5AEA2 CBD4
-CBD5 CBD5 E59D91 CBD5
-CBD6 CBD6 EFA481 CBD6
-CBD7 CBD7 E7B2B3 CBD7
-CBD8 CBD8 E7BEB9 CBD8
-CBD9 CBD9 E986B5 CBD9
-CBDA CBDA E580A8 CBDA
-CBDB CBDB E58EBB CBDB
-CBDC CBDC E5B185 CBDC
-CBDD CBDD E5B7A8 CBDD
-CBDE CBDE E68B92 CBDE
-CBDF CBDF E68DAE CBDF
-CBE0 CBE0 E6939A CBE0
-CBE1 CBE1 E693A7 CBE1
-CBE2 CBE2 E6B8A0 CBE2
-CBE3 CBE3 E782AC CBE3
-CBE4 CBE4 E7A59B CBE4
-CBE5 CBE5 E8B79D CBE5
-CBE6 CBE6 E8B89E CBE6
-CBE7 CBE7 EFA482 CBE7
-CBE8 CBE8 E981BD CBE8
-CBE9 CBE9 E98985 CBE9
-CBEA CBEA E98BB8 CBEA
-CBEB CBEB E4B9BE CBEB
-CBEC CBEC E4BBB6 CBEC
-CBED CBED E581A5 CBED
-CBEE CBEE E5B7BE CBEE
-CBEF CBEF E5BBBA CBEF
-CBF0 CBF0 E68486 CBF0
-CBF1 CBF1 E6A597 CBF1
-CBF2 CBF2 E885B1 CBF2
-CBF3 CBF3 E89994 CBF3
-CBF4 CBF4 E8B987 CBF4
-CBF5 CBF5 E98DB5 CBF5
-CBF6 CBF6 E9A8AB CBF6
-CBF7 CBF7 E4B99E CBF7
-CBF8 CBF8 E58291 CBF8
-CBF9 CBF9 E69DB0 CBF9
-CBFA CBFA E6A180 CBFA
-CBFB CBFB E58489 CBFB
-CBFC CBFC E58A8D CBFC
-CBFD CBFD E58A92 CBFD
-CBFE CBFE E6AAA2 CBFE
-CCA1 CCA1 E79EBC CCA1
-CCA2 CCA2 E98890 CCA2
-CCA3 CCA3 E9BB94 CCA3
-CCA4 CCA4 E58AAB CCA4
-CCA5 CCA5 E680AF CCA5
-CCA6 CCA6 E8BFB2 CCA6
-CCA7 CCA7 E58188 CCA7
-CCA8 CCA8 E686A9 CCA8
-CCA9 CCA9 E68FAD CCA9
-CCAA CCAA E6938A CCAA
-CCAB CCAB E6A0BC CCAB
-CCAC CCAC E6AA84 CCAC
-CCAD CCAD E6BF80 CCAD
-CCAE CCAE E88688 CCAE
-CCAF CCAF E8A6A1 CCAF
-CCB0 CCB0 E99A94 CCB0
-CCB1 CCB1 E5A085 CCB1
-CCB2 CCB2 E789BD CCB2
-CCB3 CCB3 E78AAC CCB3
-CCB4 CCB4 E79484 CCB4
-CCB5 CCB5 E7B5B9 CCB5
-CCB6 CCB6 E7B9AD CCB6
-CCB7 CCB7 E882A9 CCB7
-CCB8 CCB8 E8A68B CCB8
-CCB9 CCB9 E8ADB4 CCB9
-CCBA CCBA E981A3 CCBA
-CCBB CCBB E9B591 CCBB
-CCBC CCBC E68A89 CCBC
-CCBD CCBD E6B1BA CCBD
-CCBE CCBE E6BD94 CCBE
-CCBF CCBF E7B590 CCBF
-CCC0 CCC0 E7BCBA CCC0
-CCC1 CCC1 E8A8A3 CCC1
-CCC2 CCC2 E585BC CCC2
-CCC3 CCC3 E6858A CCC3
-CCC4 CCC4 E7AE9D CCC4
-CCC5 CCC5 E8AC99 CCC5
-CCC6 CCC6 E98997 CCC6
-CCC7 CCC7 E98E8C CCC7
-CCC8 CCC8 E4BAAC CCC8
-CCC9 CCC9 E4BF93 CCC9
-CCCA CCCA E5809E CCCA
-CCCB CCCB E582BE CCCB
-CCCC CCCC E58486 CCCC
-CCCD CCCD E58B81 CCCD
-CCCE CCCE E58B8D CCCE
-CCCF CCCF E58DBF CCCF
-CCD0 CCD0 E59DB0 CCD0
-CCD1 CCD1 E5A283 CCD1
-CCD2 CCD2 E5BA9A CCD2
-CCD3 CCD3 E5BE91 CCD3
-CCD4 CCD4 E685B6 CCD4
-CCD5 CCD5 E686AC CCD5
-CCD6 CCD6 E6938E CCD6
-CCD7 CCD7 E695AC CCD7
-CCD8 CCD8 E699AF CCD8
-CCD9 CCD9 E69ABB CCD9
-CCDA CCDA E69BB4 CCDA
-CCDB CCDB E6A297 CCDB
-CCDC CCDC E6B687 CCDC
-CCDD CCDD E78285 CCDD
-CCDE CCDE E783B1 CCDE
-CCDF CCDF E7929F CCDF
-CCE0 CCE0 E792A5 CCE0
-CCE1 CCE1 E7938A CCE1
-CCE2 CCE2 E79799 CCE2
-CCE3 CCE3 E7A1AC CCE3
-CCE4 CCE4 E7A3AC CCE4
-CCE5 CCE5 E7AB9F CCE5
-CCE6 CCE6 E7ABB6 CCE6
-CCE7 CCE7 E7B585 CCE7
-CCE8 CCE8 E7B693 CCE8
-CCE9 CCE9 E88095 CCE9
-CCEA CCEA E880BF CCEA
-CCEB CCEB E8849B CCEB
-CCEC CCEC E88E96 CCEC
-CCED CCED E8ADA6 CCED
-CCEE CCEE E8BC95 CCEE
-CCEF CCEF E98095 CCEF
-CCF0 CCF0 E98FA1 CCF0
-CCF1 CCF1 E9A083 CCF1
-CCF2 CCF2 E9A0B8 CCF2
-CCF3 CCF3 E9A99A CCF3
-CCF4 CCF4 E9AFA8 CCF4
-CCF5 CCF5 E4BF82 CCF5
-CCF6 CCF6 E59593 CCF6
-CCF7 CCF7 E5A0BA CCF7
-CCF8 CCF8 E5A591 CCF8
-CCF9 CCF9 E5ADA3 CCF9
-CCFA CCFA E5B186 CCFA
-CCFB CCFB E682B8 CCFB
-CCFC CCFC E68892 CCFC
-CCFD CCFD E6A182 CCFD
-CCFE CCFE E6A2B0 CCFE
-CDA1 CDA1 E6A3A8 CDA1
-CDA2 CDA2 E6BAAA CDA2
-CDA3 CDA3 E7958C CDA3
-CDA4 CDA4 E799B8 CDA4
-CDA5 CDA5 E7A38E CDA5
-CDA6 CDA6 E7A8BD CDA6
-CDA7 CDA7 E7B3BB CDA7
-CDA8 CDA8 E7B9AB CDA8
-CDA9 CDA9 E7B9BC CDA9
-CDAA CDAA E8A888 CDAA
-CDAB CDAB E8AAA1 CDAB
-CDAC CDAC E8B0BF CDAC
-CDAD CDAD E99A8E CDAD
-CDAE CDAE E9B784 CDAE
-CDAF CDAF E58FA4 CDAF
-CDB0 CDB0 E58FA9 CDB0
-CDB1 CDB1 E5918A CDB1
-CDB2 CDB2 E591B1 CDB2
-CDB3 CDB3 E59BBA CDB3
-CDB4 CDB4 E5A791 CDB4
-CDB5 CDB5 E5ADA4 CDB5
-CDB6 CDB6 E5B0BB CDB6
-CDB7 CDB7 E5BAAB CDB7
-CDB8 CDB8 E68BB7 CDB8
-CDB9 CDB9 E694B7 CDB9
-CDBA CDBA E69585 CDBA
-CDBB CDBB E695B2 CDBB
-CDBC CDBC E69AA0 CDBC
-CDBD CDBD E69EAF CDBD
-CDBE CDBE E6A781 CDBE
-CDBF CDBF E6B2BD CDBF
-CDC0 CDC0 E797BC CDC0
-CDC1 CDC1 E79A90 CDC1
-CDC2 CDC2 E79DBE CDC2
-CDC3 CDC3 E7A8BF CDC3
-CDC4 CDC4 E7BE94 CDC4
-CDC5 CDC5 E88083 CDC5
-CDC6 CDC6 E882A1 CDC6
-CDC7 CDC7 E8868F CDC7
-CDC8 CDC8 E88BA6 CDC8
-CDC9 CDC9 E88BBD CDC9
-CDCA CDCA E88FB0 CDCA
-CDCB CDCB E89781 CDCB
-CDCC CDCC E8A0B1 CDCC
-CDCD CDCD E8A2B4 CDCD
-CDCE CDCE E8AAA5 CDCE
-CDCF CDCF EFA483 CDCF
-CDD0 CDD0 E8BE9C CDD0
-CDD1 CDD1 E98CAE CDD1
-CDD2 CDD2 E99B87 CDD2
-CDD3 CDD3 E9A1A7 CDD3
-CDD4 CDD4 E9AB98 CDD4
-CDD5 CDD5 E9BC93 CDD5
-CDD6 CDD6 E593AD CDD6
-CDD7 CDD7 E6969B CDD7
-CDD8 CDD8 E69BB2 CDD8
-CDD9 CDD9 E6A28F CDD9
-CDDA CDDA E7A980 CDDA
-CDDB CDDB E8B0B7 CDDB
-CDDC CDDC E9B5A0 CDDC
-CDDD CDDD E59BB0 CDDD
-CDDE CDDE E59DA4 CDDE
-CDDF CDDF E5B491 CDDF
-CDE0 CDE0 E69886 CDE0
-CDE1 CDE1 E6A2B1 CDE1
-CDE2 CDE2 E6A38D CDE2
-CDE3 CDE3 E6BBBE CDE3
-CDE4 CDE4 E790A8 CDE4
-CDE5 CDE5 E8A29E CDE5
-CDE6 CDE6 E9AFA4 CDE6
-CDE7 CDE7 E6B1A8 CDE7
-CDE8 CDE8 EFA484 CDE8
-CDE9 CDE9 E9AAA8 CDE9
-CDEA CDEA E4BE9B CDEA
-CDEB CDEB E585AC CDEB
-CDEC CDEC E585B1 CDEC
-CDED CDED E58A9F CDED
-CDEE CDEE E5AD94 CDEE
-CDEF CDEF E5B7A5 CDEF
-CDF0 CDF0 E68190 CDF0
-CDF1 CDF1 E681AD CDF1
-CDF2 CDF2 E68BB1 CDF2
-CDF3 CDF3 E68EA7 CDF3
-CDF4 CDF4 E694BB CDF4
-CDF5 CDF5 E78F99 CDF5
-CDF6 CDF6 E7A9BA CDF6
-CDF7 CDF7 E89AA3 CDF7
-CDF8 CDF8 E8B2A2 CDF8
-CDF9 CDF9 E99E8F CDF9
-CDFA CDFA E4B8B2 CDFA
-CDFB CDFB E5AFA1 CDFB
-CDFC CDFC E68888 CDFC
-CDFD CDFD E69E9C CDFD
-CDFE CDFE E7939C CDFE
-CEA1 CEA1 E7A791 CEA1
-CEA2 CEA2 E88F93 CEA2
-CEA3 CEA3 E8AA87 CEA3
-CEA4 CEA4 E8AAB2 CEA4
-CEA5 CEA5 E8B7A8 CEA5
-CEA6 CEA6 E9818E CEA6
-CEA7 CEA7 E98D8B CEA7
-CEA8 CEA8 E9A186 CEA8
-CEA9 CEA9 E5BB93 CEA9
-CEAA CEAA E6A7A8 CEAA
-CEAB CEAB E897BF CEAB
-CEAC CEAC E983AD CEAC
-CEAD CEAD EFA485 CEAD
-CEAE CEAE E586A0 CEAE
-CEAF CEAF E5AE98 CEAF
-CEB0 CEB0 E5AFAC CEB0
-CEB1 CEB1 E685A3 CEB1
-CEB2 CEB2 E6A3BA CEB2
-CEB3 CEB3 E6ACBE CEB3
-CEB4 CEB4 E7818C CEB4
-CEB5 CEB5 E790AF CEB5
-CEB6 CEB6 E79398 CEB6
-CEB7 CEB7 E7AEA1 CEB7
-CEB8 CEB8 E7BD90 CEB8
-CEB9 CEB9 E88F85 CEB9
-CEBA CEBA E8A780 CEBA
-CEBB CEBB E8B2AB CEBB
-CEBC CEBC E9979C CEBC
-CEBD CEBD E9A4A8 CEBD
-CEBE CEBE E588AE CEBE
-CEBF CEBF E6819D CEBF
-CEC0 CEC0 E68BAC CEC0
-CEC1 CEC1 E98082 CEC1
-CEC2 CEC2 E4BE8A CEC2
-CEC3 CEC3 E58589 CEC3
-CEC4 CEC4 E58CA1 CEC4
-CEC5 CEC5 E5A399 CEC5
-CEC6 CEC6 E5BBA3 CEC6
-CEC7 CEC7 E69BA0 CEC7
-CEC8 CEC8 E6B4B8 CEC8
-CEC9 CEC9 E7829A CEC9
-CECA CECA E78B82 CECA
-CECB CECB E78F96 CECB
-CECC CECC E7AD90 CECC
-CECD CECD E883B1 CECD
-CECE CECE E9919B CECE
-CECF CECF E58DA6 CECF
-CED0 CED0 E68E9B CED0
-CED1 CED1 E7BDAB CED1
-CED2 CED2 E4B996 CED2
-CED3 CED3 E58280 CED3
-CED4 CED4 E5A18A CED4
-CED5 CED5 E5A39E CED5
-CED6 CED6 E680AA CED6
-CED7 CED7 E684A7 CED7
-CED8 CED8 E68B90 CED8
-CED9 CED9 E6A790 CED9
-CEDA CEDA E9AD81 CEDA
-CEDB CEDB E5AE8F CEDB
-CEDC CEDC E7B498 CEDC
-CEDD CEDD E882B1 CEDD
-CEDE CEDE E8BD9F CEDE
-CEDF CEDF E4BAA4 CEDF
-CEE0 CEE0 E58391 CEE0
-CEE1 CEE1 E592AC CEE1
-CEE2 CEE2 E596AC CEE2
-CEE3 CEE3 E5AC8C CEE3
-CEE4 CEE4 E5B6A0 CEE4
-CEE5 CEE5 E5B7A7 CEE5
-CEE6 CEE6 E694AA CEE6
-CEE7 CEE7 E6958E CEE7
-CEE8 CEE8 E6A0A1 CEE8
-CEE9 CEE9 E6A98B CEE9
-CEEA CEEA E78BA1 CEEA
-CEEB CEEB E79A8E CEEB
-CEEC CEEC E79FAF CEEC
-CEED CEED E7B59E CEED
-CEEE CEEE E7BFB9 CEEE
-CEEF CEEF E886A0 CEEF
-CEF0 CEF0 E8958E CEF0
-CEF1 CEF1 E89B9F CEF1
-CEF2 CEF2 E8BC83 CEF2
-CEF3 CEF3 E8BD8E CEF3
-CEF4 CEF4 E9838A CEF4
-CEF5 CEF5 E9A483 CEF5
-CEF6 CEF6 E9A995 CEF6
-CEF7 CEF7 E9AEAB CEF7
-CEF8 CEF8 E4B898 CEF8
-CEF9 CEF9 E4B985 CEF9
-CEFA CEFA E4B99D CEFA
-CEFB CEFB E4BB87 CEFB
-CEFC CEFC E4BFB1 CEFC
-CEFD CEFD E585B7 CEFD
-CEFE CEFE E58BBE CEFE
-CFA1 CFA1 E58D80 CFA1
-CFA2 CFA2 E58FA3 CFA2
-CFA3 CFA3 E58FA5 CFA3
-CFA4 CFA4 E5928E CFA4
-CFA5 CFA5 E59894 CFA5
-CFA6 CFA6 E59DB5 CFA6
-CFA7 CFA7 E59EA2 CFA7
-CFA8 CFA8 E5AF87 CFA8
-CFA9 CFA9 E5B687 CFA9
-CFAA CFAA E5BB90 CFAA
-CFAB CFAB E687BC CFAB
-CFAC CFAC E68B98 CFAC
-CFAD CFAD E69591 CFAD
-CFAE CFAE E69EB8 CFAE
-CFAF CFAF E69FA9 CFAF
-CFB0 CFB0 E6A78B CFB0
-CFB1 CFB1 E6AD90 CFB1
-CFB2 CFB2 E6AF86 CFB2
-CFB3 CFB3 E6AFAC CFB3
-CFB4 CFB4 E6B182 CFB4
-CFB5 CFB5 E6BA9D CFB5
-CFB6 CFB6 E781B8 CFB6
-CFB7 CFB7 E78B97 CFB7
-CFB8 CFB8 E78E96 CFB8
-CFB9 CFB9 E79083 CFB9
-CFBA CFBA E79EBF CFBA
-CFBB CFBB E79FA9 CFBB
-CFBC CFBC E7A9B6 CFBC
-CFBD CFBD E7B5BF CFBD
-CFBE CFBE E88089 CFBE
-CFBF CFBF E887BC CFBF
-CFC0 CFC0 E88885 CFC0
-CFC1 CFC1 E8888A CFC1
-CFC2 CFC2 E88B9F CFC2
-CFC3 CFC3 E8A1A2 CFC3
-CFC4 CFC4 E8ACB3 CFC4
-CFC5 CFC5 E8B3BC CFC5
-CFC6 CFC6 E8BB80 CFC6
-CFC7 CFC7 E98091 CFC7
-CFC8 CFC8 E982B1 CFC8
-CFC9 CFC9 E989A4 CFC9
-CFCA CFCA E98AB6 CFCA
-CFCB CFCB E9A792 CFCB
-CFCC CFCC E9A985 CFCC
-CFCD CFCD E9B3A9 CFCD
-CFCE CFCE E9B797 CFCE
-CFCF CFCF E9BE9C CFCF
-CFD0 CFD0 E59C8B CFD0
-CFD1 CFD1 E5B180 CFD1
-CFD2 CFD2 E88F8A CFD2
-CFD3 CFD3 E99EA0 CFD3
-CFD4 CFD4 E99EAB CFD4
-CFD5 CFD5 E9BAB4 CFD5
-CFD6 CFD6 E5909B CFD6
-CFD7 CFD7 E7AA98 CFD7
-CFD8 CFD8 E7BEA4 CFD8
-CFD9 CFD9 E8A399 CFD9
-CFDA CFDA E8BB8D CFDA
-CFDB CFDB E983A1 CFDB
-CFDC CFDC E5A080 CFDC
-CFDD CFDD E5B188 CFDD
-CFDE CFDE E68E98 CFDE
-CFDF CFDF E7AA9F CFDF
-CFE0 CFE0 E5AEAE CFE0
-CFE1 CFE1 E5BC93 CFE1
-CFE2 CFE2 E7A9B9 CFE2
-CFE3 CFE3 E7AAAE CFE3
-CFE4 CFE4 E88A8E CFE4
-CFE5 CFE5 E8BAAC CFE5
-CFE6 CFE6 E580A6 CFE6
-CFE7 CFE7 E588B8 CFE7
-CFE8 CFE8 E58BB8 CFE8
-CFE9 CFE9 E58DB7 CFE9
-CFEA CFEA E59C88 CFEA
-CFEB CFEB E68BB3 CFEB
-CFEC CFEC E68DB2 CFEC
-CFED CFED E6AC8A CFED
-CFEE CFEE E6B783 CFEE
-CFEF CFEF E79CB7 CFEF
-CFF0 CFF0 E58EA5 CFF0
-CFF1 CFF1 E78D97 CFF1
-CFF2 CFF2 E895A8 CFF2
-CFF3 CFF3 E8B9B6 CFF3
-CFF4 CFF4 E99795 CFF4
-CFF5 CFF5 E69CBA CFF5
-CFF6 CFF6 E6AB83 CFF6
-CFF7 CFF7 E6BDB0 CFF7
-CFF8 CFF8 E8A9AD CFF8
-CFF9 CFF9 E8BB8C CFF9
-CFFA CFFA E9A58B CFFA
-CFFB CFFB EFA486 CFFB
-CFFC CFFC E699B7 CFFC
-CFFD CFFD E6ADB8 CFFD
-CFFE CFFE E8B2B4 CFFE
-D0A1 D0A1 E9ACBC D0A1
-D0A2 D0A2 EFA487 D0A2
-D0A3 D0A3 E58FAB D0A3
-D0A4 D0A4 E59CAD D0A4
-D0A5 D0A5 E5A58E D0A5
-D0A6 D0A6 E68F86 D0A6
-D0A7 D0A7 E6A7BB D0A7
-D0A8 D0A8 E78FAA D0A8
-D0A9 D0A9 E7A185 D0A9
-D0AA D0AA E7AABA D0AA
-D0AB D0AB E7AB85 D0AB
-D0AC D0AC E7B3BE D0AC
-D0AD D0AD E891B5 D0AD
-D0AE D0AE E8A68F D0AE
-D0AF D0AF E8B5B3 D0AF
-D0B0 D0B0 E980B5 D0B0
-D0B1 D0B1 E996A8 D0B1
-D0B2 D0B2 E58BBB D0B2
-D0B3 D0B3 E59D87 D0B3
-D0B4 D0B4 E79587 D0B4
-D0B5 D0B5 E7ADA0 D0B5
-D0B6 D0B6 E88F8C D0B6
-D0B7 D0B7 E9889E D0B7
-D0B8 D0B8 EFA488 D0B8
-D0B9 D0B9 E6A998 D0B9
-D0BA D0BA E5858B D0BA
-D0BB D0BB E5898B D0BB
-D0BC D0BC E58A87 D0BC
-D0BD D0BD E6889F D0BD
-D0BE D0BE E6A398 D0BE
-D0BF D0BF E6A5B5 D0BF
-D0C0 D0C0 E99A99 D0C0
-D0C1 D0C1 E58385 D0C1
-D0C2 D0C2 E58AA4 D0C2
-D0C3 D0C3 E58BA4 D0C3
-D0C4 D0C4 E68783 D0C4
-D0C5 D0C5 E696A4 D0C5
-D0C6 D0C6 E6A0B9 D0C6
-D0C7 D0C7 E6A7BF D0C7
-D0C8 D0C8 E791BE D0C8
-D0C9 D0C9 E7AD8B D0C9
-D0CA D0CA E88AB9 D0CA
-D0CB D0CB E88FAB D0CB
-D0CC D0CC E8A6B2 D0CC
-D0CD D0CD E8ACB9 D0CD
-D0CE D0CE E8BF91 D0CE
-D0CF D0CF E9A589 D0CF
-D0D0 D0D0 EFA489 D0D0
-D0D1 D0D1 E4BB8A D0D1
-D0D2 D0D2 E5A697 D0D2
-D0D3 D0D3 E69392 D0D3
-D0D4 D0D4 E69891 D0D4
-D0D5 D0D5 E6AA8E D0D5
-D0D6 D0D6 E790B4 D0D6
-D0D7 D0D7 E7A681 D0D7
-D0D8 D0D8 E7A6BD D0D8
-D0D9 D0D9 E88AA9 D0D9
-D0DA D0DA E8A1BE D0DA
-D0DB D0DB E8A1BF D0DB
-D0DC D0DC E8A59F D0DC
-D0DD D0DD EFA48A D0DD
-D0DE D0DE E98CA6 D0DE
-D0DF D0DF E4BC8B D0DF
-D0E0 D0E0 E58F8A D0E0
-D0E1 D0E1 E680A5 D0E1
-D0E2 D0E2 E689B1 D0E2
-D0E3 D0E3 E6B1B2 D0E3
-D0E4 D0E4 E7B49A D0E4
-D0E5 D0E5 E7B5A6 D0E5
-D0E6 D0E6 E4BA98 D0E6
-D0E7 D0E7 E585A2 D0E7
-D0E8 D0E8 E79F9C D0E8
-D0E9 D0E9 E882AF D0E9
-D0EA D0EA E4BC81 D0EA
-D0EB D0EB E4BC8E D0EB
-D0EC D0EC E585B6 D0EC
-D0ED D0ED E58680 D0ED
-D0EE D0EE E5979C D0EE
-D0EF D0EF E599A8 D0EF
-D0F0 D0F0 E59CBB D0F0
-D0F1 D0F1 E59FBA D0F1
-D0F2 D0F2 E59FBC D0F2
-D0F3 D0F3 E5A494 D0F3
-D0F4 D0F4 E5A587 D0F4
-D0F5 D0F5 E5A693 D0F5
-D0F6 D0F6 E5AF84 D0F6
-D0F7 D0F7 E5B290 D0F7
-D0F8 D0F8 E5B48E D0F8
-D0F9 D0F9 E5B7B1 D0F9
-D0FA D0FA E5B9BE D0FA
-D0FB D0FB E5BF8C D0FB
-D0FC D0FC E68A80 D0FC
-D0FD D0FD E69797 D0FD
-D0FE D0FE E697A3 D0FE
-D1A1 D1A1 E69C9E D1A1
-D1A2 D1A2 E69C9F D1A2
-D1A3 D1A3 E69D9E D1A3
-D1A4 D1A4 E6A38B D1A4
-D1A5 D1A5 E6A384 D1A5
-D1A6 D1A6 E6A99F D1A6
-D1A7 D1A7 E6ACBA D1A7
-D1A8 D1A8 E6B0A3 D1A8
-D1A9 D1A9 E6B1BD D1A9
-D1AA D1AA E6B282 D1AA
-D1AB D1AB E6B787 D1AB
-D1AC D1AC E78E98 D1AC
-D1AD D1AD E790A6 D1AD
-D1AE D1AE E790AA D1AE
-D1AF D1AF E79282 D1AF
-D1B0 D1B0 E792A3 D1B0
-D1B1 D1B1 E795B8 D1B1
-D1B2 D1B2 E795BF D1B2
-D1B3 D1B3 E7A281 D1B3
-D1B4 D1B4 E7A3AF D1B4
-D1B5 D1B5 E7A581 D1B5
-D1B6 D1B6 E7A587 D1B6
-D1B7 D1B7 E7A588 D1B7
-D1B8 D1B8 E7A5BA D1B8
-D1B9 D1B9 E7AE95 D1B9
-D1BA D1BA E7B480 D1BA
-D1BB D1BB E7B6BA D1BB
-D1BC D1BC E7BE88 D1BC
-D1BD D1BD E88086 D1BD
-D1BE D1BE E880AD D1BE
-D1BF D1BF E8828C D1BF
-D1C0 D1C0 E8A898 D1C0
-D1C1 D1C1 E8AD8F D1C1
-D1C2 D1C2 E8B188 D1C2
-D1C3 D1C3 E8B5B7 D1C3
-D1C4 D1C4 E98CA1 D1C4
-D1C5 D1C5 E98CA4 D1C5
-D1C6 D1C6 E9A3A2 D1C6
-D1C7 D1C7 E9A591 D1C7
-D1C8 D1C8 E9A88E D1C8
-D1C9 D1C9 E9A88F D1C9
-D1CA D1CA E9A9A5 D1CA
-D1CB D1CB E9BA92 D1CB
-D1CC D1CC E7B78A D1CC
-D1CD D1CD E4BDB6 D1CD
-D1CE D1CE E59089 D1CE
-D1CF D1CF E68BAE D1CF
-D1D0 D1D0 E6A194 D1D0
-D1D1 D1D1 E98791 D1D1
-D1D2 D1D2 E596AB D1D2
-D1D3 D1D3 E584BA D1D3
-D1D4 D1D4 EFA48B D1D4
-D1D5 D1D5 EFA48C D1D5
-D1D6 D1D6 E5A89C D1D6
-D1D7 D1D7 E687A6 D1D7
-D1D8 D1D8 EFA48D D1D8
-D1D9 D1D9 E68B8F D1D9
-D1DA D1DA E68BBF D1DA
-D1DB D1DB EFA48E D1DB
-D1DC D1DC EFA48F D1DC
-D1DD D1DD EFA490 D1DD
-D1DE D1DE EFA491 D1DE
-D1DF D1DF EFA492 D1DF
-D1E0 D1E0 EFA493 D1E0
-D1E1 D1E1 E982A3 D1E1
-D1E2 D1E2 EFA494 D1E2
-D1E3 D1E3 EFA495 D1E3
-D1E4 D1E4 EFA496 D1E4
-D1E5 D1E5 EFA497 D1E5
-D1E6 D1E6 EFA498 D1E6
-D1E7 D1E7 E8ABBE D1E7
-D1E8 D1E8 EFA499 D1E8
-D1E9 D1E9 EFA49A D1E9
-D1EA D1EA EFA49B D1EA
-D1EB D1EB EFA49C D1EB
-D1EC D1EC E69A96 D1EC
-D1ED D1ED EFA49D D1ED
-D1EE D1EE E78596 D1EE
-D1EF D1EF EFA49E D1EF
-D1F0 D1F0 EFA49F D1F0
-D1F1 D1F1 E99BA3 D1F1
-D1F2 D1F2 EFA4A0 D1F2
-D1F3 D1F3 E68D8F D1F3
-D1F4 D1F4 E68DBA D1F4
-D1F5 D1F5 E58D97 D1F5
-D1F6 D1F6 EFA4A1 D1F6
-D1F7 D1F7 E69E8F D1F7
-D1F8 D1F8 E6A5A0 D1F8
-D1F9 D1F9 E6B9B3 D1F9
-D1FA D1FA EFA4A2 D1FA
-D1FB D1FB E794B7 D1FB
-D1FC D1FC EFA4A3 D1FC
-D1FD D1FD EFA4A4 D1FD
-D1FE D1FE EFA4A5 D1FE
-D2A1 D2A1 E7B48D D2A1
-D2A2 D2A2 EFA4A6 D2A2
-D2A3 D2A3 EFA4A7 D2A3
-D2A4 D2A4 E8A1B2 D2A4
-D2A5 D2A5 E59B8A D2A5
-D2A6 D2A6 E5A898 D2A6
-D2A7 D2A7 EFA4A8 D2A7
-D2A8 D2A8 EFA4A9 D2A8
-D2A9 D2A9 EFA4AA D2A9
-D2AA D2AA EFA4AB D2AA
-D2AB D2AB EFA4AC D2AB
-D2AC D2AC E4B983 D2AC
-D2AD D2AD EFA4AD D2AD
-D2AE D2AE E585A7 D2AE
-D2AF D2AF E5A588 D2AF
-D2B0 D2B0 E69FB0 D2B0
-D2B1 D2B1 E88090 D2B1
-D2B2 D2B2 EFA4AE D2B2
-D2B3 D2B3 E5A5B3 D2B3
-D2B4 D2B4 E5B9B4 D2B4
-D2B5 D2B5 E6929A D2B5
-D2B6 D2B6 E7A78A D2B6
-D2B7 D2B7 E5BFB5 D2B7
-D2B8 D2B8 E681AC D2B8
-D2B9 D2B9 E68B88 D2B9
-D2BA D2BA E68DBB D2BA
-D2BB D2BB E5AFA7 D2BB
-D2BC D2BC E5AF97 D2BC
-D2BD D2BD E58AAA D2BD
-D2BE D2BE EFA4AF D2BE
-D2BF D2BF E5A5B4 D2BF
-D2C0 D2C0 E5BCA9 D2C0
-D2C1 D2C1 E68092 D2C1
-D2C2 D2C2 EFA4B0 D2C2
-D2C3 D2C3 EFA4B1 D2C3
-D2C4 D2C4 EFA4B2 D2C4
-D2C5 D2C5 E79199 D2C5
-D2C6 D2C6 EFA4B3 D2C6
-D2C7 D2C7 EFA4B4 D2C7
-D2C8 D2C8 EFA4B5 D2C8
-D2C9 D2C9 EFA4B6 D2C9
-D2CA D2CA EFA4B7 D2CA
-D2CB D2CB EFA4B8 D2CB
-D2CC D2CC E9A791 D2CC
-D2CD D2CD EFA4B9 D2CD
-D2CE D2CE EFA4BA D2CE
-D2CF D2CF EFA4BB D2CF
-D2D0 D2D0 EFA4BC D2D0
-D2D1 D2D1 EFA4BD D2D1
-D2D2 D2D2 EFA4BE D2D2
-D2D3 D2D3 EFA4BF D2D3
-D2D4 D2D4 EFA580 D2D4
-D2D5 D2D5 EFA581 D2D5
-D2D6 D2D6 EFA582 D2D6
-D2D7 D2D7 EFA583 D2D7
-D2D8 D2D8 E6BF83 D2D8
-D2D9 D2D9 EFA584 D2D9
-D2DA D2DA EFA585 D2DA
-D2DB D2DB E886BF D2DB
-D2DC D2DC E8BEB2 D2DC
-D2DD D2DD E683B1 D2DD
-D2DE D2DE EFA586 D2DE
-D2DF D2DF EFA587 D2DF
-D2E0 D2E0 E885A6 D2E0
-D2E1 D2E1 EFA588 D2E1
-D2E2 D2E2 EFA589 D2E2
-D2E3 D2E3 E5B0BF D2E3
-D2E4 D2E4 EFA58A D2E4
-D2E5 D2E5 EFA58B D2E5
-D2E6 D2E6 EFA58C D2E6
-D2E7 D2E7 EFA58D D2E7
-D2E8 D2E8 EFA58E D2E8
-D2E9 D2E9 EFA58F D2E9
-D2EA D2EA EFA590 D2EA
-D2EB D2EB EFA591 D2EB
-D2EC D2EC E5ABA9 D2EC
-D2ED D2ED E8A8A5 D2ED
-D2EE D2EE E69DBB D2EE
-D2EF D2EF E7B490 D2EF
-D2F0 D2F0 EFA592 D2F0
-D2F1 D2F1 EFA593 D2F1
-D2F2 D2F2 EFA594 D2F2
-D2F3 D2F3 EFA595 D2F3
-D2F4 D2F4 EFA596 D2F4
-D2F5 D2F5 EFA597 D2F5
-D2F6 D2F6 E883BD D2F6
-D2F7 D2F7 EFA598 D2F7
-D2F8 D2F8 EFA599 D2F8
-D2F9 D2F9 E5B0BC D2F9
-D2FA D2FA E6B3A5 D2FA
-D2FB D2FB E58CBF D2FB
-D2FC D2FC E6BABA D2FC
-D2FD D2FD E5A49A D2FD
-D2FE D2FE E88CB6 D2FE
-D3A1 D3A1 E4B8B9 D3A1
-D3A2 D3A2 E4BAB6 D3A2
-D3A3 D3A3 E4BD86 D3A3
-D3A4 D3A4 E596AE D3A4
-D3A5 D3A5 E59C98 D3A5
-D3A6 D3A6 E5A387 D3A6
-D3A7 D3A7 E5BD96 D3A7
-D3A8 D3A8 E696B7 D3A8
-D3A9 D3A9 E697A6 D3A9
-D3AA D3AA E6AA80 D3AA
-D3AB D3AB E6AEB5 D3AB
-D3AC D3AC E6B98D D3AC
-D3AD D3AD E79FAD D3AD
-D3AE D3AE E7ABAF D3AE
-D3AF D3AF E7B09E D3AF
-D3B0 D3B0 E7B79E D3B0
-D3B1 D3B1 E89B8B D3B1
-D3B2 D3B2 E8A292 D3B2
-D3B3 D3B3 E984B2 D3B3
-D3B4 D3B4 E98D9B D3B4
-D3B5 D3B5 E692BB D3B5
-D3B6 D3B6 E6BEBE D3B6
-D3B7 D3B7 E78DBA D3B7
-D3B8 D3B8 E796B8 D3B8
-D3B9 D3B9 E98194 D3B9
-D3BA D3BA E59596 D3BA
-D3BB D3BB E59D8D D3BB
-D3BC D3BC E686BA D3BC
-D3BD D3BD E69394 D3BD
-D3BE D3BE E69B87 D3BE
-D3BF D3BF E6B7A1 D3BF
-D3C0 D3C0 E6B99B D3C0
-D3C1 D3C1 E6BDAD D3C1
-D3C2 D3C2 E6BEB9 D3C2
-D3C3 D3C3 E797B0 D3C3
-D3C4 D3C4 E88183 D3C4
-D3C5 D3C5 E886BD D3C5
-D3C6 D3C6 E89581 D3C6
-D3C7 D3C7 E8A683 D3C7
-D3C8 D3C8 E8AB87 D3C8
-D3C9 D3C9 E8AD9A D3C9
-D3CA D3CA E98C9F D3CA
-D3CB D3CB E6B293 D3CB
-D3CC D3CC E79593 D3CC
-D3CD D3CD E7AD94 D3CD
-D3CE D3CE E8B88F D3CE
-D3CF D3CF E9819D D3CF
-D3D0 D3D0 E59490 D3D0
-D3D1 D3D1 E5A082 D3D1
-D3D2 D3D2 E5A198 D3D2
-D3D3 D3D3 E5B9A2 D3D3
-D3D4 D3D4 E68887 D3D4
-D3D5 D3D5 E6929E D3D5
-D3D6 D3D6 E6A3A0 D3D6
-D3D7 D3D7 E795B6 D3D7
-D3D8 D3D8 E7B396 D3D8
-D3D9 D3D9 E89EB3 D3D9
-D3DA D3DA E9BBA8 D3DA
-D3DB D3DB E4BBA3 D3DB
-D3DC D3DC E59E88 D3DC
-D3DD D3DD E59DAE D3DD
-D3DE D3DE E5A4A7 D3DE
-D3DF D3DF E5B08D D3DF
-D3E0 D3E0 E5B2B1 D3E0
-D3E1 D3E1 E5B8B6 D3E1
-D3E2 D3E2 E5BE85 D3E2
-D3E3 D3E3 E688B4 D3E3
-D3E4 D3E4 E693A1 D3E4
-D3E5 D3E5 E78EB3 D3E5
-D3E6 D3E6 E887BA D3E6
-D3E7 D3E7 E8A28B D3E7
-D3E8 D3E8 E8B2B8 D3E8
-D3E9 D3E9 E99A8A D3E9
-D3EA D3EA E9BB9B D3EA
-D3EB D3EB E5AE85 D3EB
-D3EC D3EC E5BEB7 D3EC
-D3ED D3ED E682B3 D3ED
-D3EE D3EE E58092 D3EE
-D3EF D3EF E58880 D3EF
-D3F0 D3F0 E588B0 D3F0
-D3F1 D3F1 E59C96 D3F1
-D3F2 D3F2 E5A0B5 D3F2
-D3F3 D3F3 E5A197 D3F3
-D3F4 D3F4 E5B08E D3F4
-D3F5 D3F5 E5B1A0 D3F5
-D3F6 D3F6 E5B3B6 D3F6
-D3F7 D3F7 E5B68B D3F7
-D3F8 D3F8 E5BAA6 D3F8
-D3F9 D3F9 E5BE92 D3F9
-D3FA D3FA E682BC D3FA
-D3FB D3FB E68C91 D3FB
-D3FC D3FC E68E89 D3FC
-D3FD D3FD E69097 D3FD
-D3FE D3FE E6A183 D3FE
-D4A1 D4A1 E6A3B9 D4A1
-D4A2 D4A2 E6AB82 D4A2
-D4A3 D4A3 E6B798 D4A3
-D4A4 D4A4 E6B8A1 D4A4
-D4A5 D4A5 E6BB94 D4A5
-D4A6 D4A6 E6BFA4 D4A6
-D4A7 D4A7 E787BE D4A7
-D4A8 D4A8 E79B9C D4A8
-D4A9 D4A9 E79DB9 D4A9
-D4AA D4AA E7A6B1 D4AA
-D4AB D4AB E7A8BB D4AB
-D4AC D4AC E89084 D4AC
-D4AD D4AD E8A6A9 D4AD
-D4AE D4AE E8B3AD D4AE
-D4AF D4AF E8B7B3 D4AF
-D4B0 D4B0 E8B988 D4B0
-D4B1 D4B1 E98083 D4B1
-D4B2 D4B2 E98094 D4B2
-D4B3 D4B3 E98193 D4B3
-D4B4 D4B4 E983BD D4B4
-D4B5 D4B5 E98D8D D4B5
-D4B6 D4B6 E999B6 D4B6
-D4B7 D4B7 E99F9C D4B7
-D4B8 D4B8 E6AF92 D4B8
-D4B9 D4B9 E78086 D4B9
-D4BA D4BA E78998 D4BA
-D4BB D4BB E78AA2 D4BB
-D4BC D4BC E78DA8 D4BC
-D4BD D4BD E79DA3 D4BD
-D4BE D4BE E7A6BF D4BE
-D4BF D4BF E7AFA4 D4BF
-D4C0 D4C0 E7BA9B D4C0
-D4C1 D4C1 E8AE80 D4C1
-D4C2 D4C2 E5A2A9 D4C2
-D4C3 D4C3 E68387 D4C3
-D4C4 D4C4 E695A6 D4C4
-D4C5 D4C5 E697BD D4C5
-D4C6 D4C6 E69ABE D4C6
-D4C7 D4C7 E6B28C D4C7
-D4C8 D4C8 E7849E D4C8
-D4C9 D4C9 E78789 D4C9
-D4CA D4CA E8B19A D4CA
-D4CB D4CB E9A093 D4CB
-D4CC D4CC E4B9AD D4CC
-D4CD D4CD E7AA81 D4CD
-D4CE D4CE E4BB9D D4CE
-D4CF D4CF E586AC D4CF
-D4D0 D4D0 E5878D D4D0
-D4D1 D4D1 E58B95 D4D1
-D4D2 D4D2 E5908C D4D2
-D4D3 D4D3 E686A7 D4D3
-D4D4 D4D4 E69DB1 D4D4
-D4D5 D4D5 E6A190 D4D5
-D4D6 D4D6 E6A39F D4D6
-D4D7 D4D7 E6B49E D4D7
-D4D8 D4D8 E6BDBC D4D8
-D4D9 D4D9 E796BC D4D9
-D4DA D4DA E79EB3 D4DA
-D4DB D4DB E7ABA5 D4DB
-D4DC D4DC E883B4 D4DC
-D4DD D4DD E891A3 D4DD
-D4DE D4DE E98A85 D4DE
-D4DF D4DF E5859C D4DF
-D4E0 D4E0 E69697 D4E0
-D4E1 D4E1 E69D9C D4E1
-D4E2 D4E2 E69E93 D4E2
-D4E3 D4E3 E79798 D4E3
-D4E4 D4E4 E7AB87 D4E4
-D4E5 D4E5 E88DB3 D4E5
-D4E6 D4E6 EFA59A D4E6
-D4E7 D4E7 E8B186 D4E7
-D4E8 D4E8 E98097 D4E8
-D4E9 D4E9 E9A0AD D4E9
-D4EA D4EA E5B1AF D4EA
-D4EB D4EB E88780 D4EB
-D4EC D4EC E88A9A D4EC
-D4ED D4ED E98181 D4ED
-D4EE D4EE E981AF D4EE
-D4EF D4EF E9888D D4EF
-D4F0 D4F0 E5BE97 D4F0
-D4F1 D4F1 E5B69D D4F1
-D4F2 D4F2 E6A999 D4F2
-D4F3 D4F3 E78788 D4F3
-D4F4 D4F4 E799BB D4F4
-D4F5 D4F5 E7AD89 D4F5
-D4F6 D4F6 E897A4 D4F6
-D4F7 D4F7 E8AC84 D4F7
-D4F8 D4F8 E984A7 D4F8
-D4F9 D4F9 E9A8B0 D4F9
-D4FA D4FA E59687 D4FA
-D4FB D4FB E687B6 D4FB
-D4FC D4FC EFA59B D4FC
-D4FD D4FD E799A9 D4FD
-D4FE D4FE E7BE85 D4FE
-D5A1 D5A1 E898BF D5A1
-D5A2 D5A2 E89EBA D5A2
-D5A3 D5A3 E8A3B8 D5A3
-D5A4 D5A4 E9828F D5A4
-D5A5 D5A5 EFA59C D5A5
-D5A6 D5A6 E6B49B D5A6
-D5A7 D5A7 E78399 D5A7
-D5A8 D5A8 E78F9E D5A8
-D5A9 D5A9 E7B5A1 D5A9
-D5AA D5AA E890BD D5AA
-D5AB D5AB EFA59D D5AB
-D5AC D5AC E985AA D5AC
-D5AD D5AD E9A7B1 D5AD
-D5AE D5AE EFA59E D5AE
-D5AF D5AF E4BA82 D5AF
-D5B0 D5B0 E58DB5 D5B0
-D5B1 D5B1 E6AC84 D5B1
-D5B2 D5B2 E6AC92 D5B2
-D5B3 D5B3 E780BE D5B3
-D5B4 D5B4 E7889B D5B4
-D5B5 D5B5 E898AD D5B5
-D5B6 D5B6 E9B89E D5B6
-D5B7 D5B7 E5898C D5B7
-D5B8 D5B8 E8BEA3 D5B8
-D5B9 D5B9 E5B590 D5B9
-D5BA D5BA E693A5 D5BA
-D5BB D5BB E694AC D5BB
-D5BC D5BC E6AC96 D5BC
-D5BD D5BD E6BFAB D5BD
-D5BE D5BE E7B183 D5BE
-D5BF D5BF E7BA9C D5BF
-D5C0 D5C0 E8978D D5C0
-D5C1 D5C1 E8A5A4 D5C1
-D5C2 D5C2 E8A6BD D5C2
-D5C3 D5C3 E68B89 D5C3
-D5C4 D5C4 E88798 D5C4
-D5C5 D5C5 E8A09F D5C5
-D5C6 D5C6 E5BB8A D5C6
-D5C7 D5C7 E69C97 D5C7
-D5C8 D5C8 E6B5AA D5C8
-D5C9 D5C9 E78BBC D5C9
-D5CA D5CA E79085 D5CA
-D5CB D5CB E791AF D5CB
-D5CC D5CC E89E82 D5CC
-D5CD D5CD E9839E D5CD
-D5CE D5CE E4BE86 D5CE
-D5CF D5CF E5B48D D5CF
-D5D0 D5D0 E5BEA0 D5D0
-D5D1 D5D1 E8908A D5D1
-D5D2 D5D2 E586B7 D5D2
-D5D3 D5D3 E68EA0 D5D3
-D5D4 D5D4 E795A5 D5D4
-D5D5 D5D5 E4BAAE D5D5
-D5D6 D5D6 E58086 D5D6
-D5D7 D5D7 E585A9 D5D7
-D5D8 D5D8 E58789 D5D8
-D5D9 D5D9 E6A281 D5D9
-D5DA D5DA E6A891 D5DA
-D5DB D5DB E7B2AE D5DB
-D5DC D5DC E7B2B1 D5DC
-D5DD D5DD E7B3A7 D5DD
-D5DE D5DE E889AF D5DE
-D5DF D5DF E8AB92 D5DF
-D5E0 D5E0 E8BC9B D5E0
-D5E1 D5E1 E9878F D5E1
-D5E2 D5E2 E4BEB6 D5E2
-D5E3 D5E3 E584B7 D5E3
-D5E4 D5E4 E58BB5 D5E4
-D5E5 D5E5 E59182 D5E5
-D5E6 D5E6 E5BBAC D5E6
-D5E7 D5E7 E685AE D5E7
-D5E8 D5E8 E688BE D5E8
-D5E9 D5E9 E69785 D5E9
-D5EA D5EA E6AB9A D5EA
-D5EB D5EB E6BFBE D5EB
-D5EC D5EC E7A4AA D5EC
-D5ED D5ED E8979C D5ED
-D5EE D5EE E8A0A3 D5EE
-D5EF D5EF E996AD D5EF
-D5F0 D5F0 E9A9A2 D5F0
-D5F1 D5F1 E9A9AA D5F1
-D5F2 D5F2 E9BA97 D5F2
-D5F3 D5F3 E9BB8E D5F3
-D5F4 D5F4 E58A9B D5F4
-D5F5 D5F5 E69B86 D5F5
-D5F6 D5F6 E6ADB7 D5F6
-D5F7 D5F7 E7809D D5F7
-D5F8 D5F8 E7A4AB D5F8
-D5F9 D5F9 E8BDA2 D5F9
-D5FA D5FA E99D82 D5FA
-D5FB D5FB E68690 D5FB
-D5FC D5FC E68880 D5FC
-D5FD D5FD E694A3 D5FD
-D5FE D5FE E6BCA3 D5FE
-D6A1 D6A1 E78589 D6A1
-D6A2 D6A2 E79289 D6A2
-D6A3 D6A3 E7B7B4 D6A3
-D6A4 D6A4 E881AF D6A4
-D6A5 D6A5 E893AE D6A5
-D6A6 D6A6 E8BCA6 D6A6
-D6A7 D6A7 E980A3 D6A7
-D6A8 D6A8 E98D8A D6A8
-D6A9 D6A9 E586BD D6A9
-D6AA D6AA E58897 D6AA
-D6AB D6AB E58AA3 D6AB
-D6AC D6AC E6B48C D6AC
-D6AD D6AD E78388 D6AD
-D6AE D6AE E8A382 D6AE
-D6AF D6AF E5BB89 D6AF
-D6B0 D6B0 E69682 D6B0
-D6B1 D6B1 E6AEAE D6B1
-D6B2 D6B2 E6BF82 D6B2
-D6B3 D6B3 E7B0BE D6B3
-D6B4 D6B4 E78DB5 D6B4
-D6B5 D6B5 E4BBA4 D6B5
-D6B6 D6B6 E4BCB6 D6B6
-D6B7 D6B7 E59BB9 D6B7
-D6B8 D6B8 EFA59F D6B8
-D6B9 D6B9 E5B2BA D6B9
-D6BA D6BA E5B6BA D6BA
-D6BB D6BB E6809C D6BB
-D6BC D6BC E78EB2 D6BC
-D6BD D6BD E7ACAD D6BD
-D6BE D6BE E7BE9A D6BE
-D6BF D6BF E7BF8E D6BF
-D6C0 D6C0 E88186 D6C0
-D6C1 D6C1 E9809E D6C1
-D6C2 D6C2 E988B4 D6C2
-D6C3 D6C3 E99BB6 D6C3
-D6C4 D6C4 E99D88 D6C4
-D6C5 D6C5 E9A098 D6C5
-D6C6 D6C6 E9BDA1 D6C6
-D6C7 D6C7 E4BE8B D6C7
-D6C8 D6C8 E6BEA7 D6C8
-D6C9 D6C9 E7A6AE D6C9
-D6CA D6CA E986B4 D6CA
-D6CB D6CB E99AB7 D6CB
-D6CC D6CC E58B9E D6CC
-D6CD D6CD EFA5A0 D6CD
-D6CE D6CE E69288 D6CE
-D6CF D6CF E69384 D6CF
-D6D0 D6D0 E6AB93 D6D0
-D6D1 D6D1 E6BD9E D6D1
-D6D2 D6D2 E78098 D6D2
-D6D3 D6D3 E78890 D6D3
-D6D4 D6D4 E79BA7 D6D4
-D6D5 D6D5 E88081 D6D5
-D6D6 D6D6 E89886 D6D6
-D6D7 D6D7 E8999C D6D7
-D6D8 D6D8 E8B7AF D6D8
-D6D9 D6D9 E8BC85 D6D9
-D6DA D6DA E99CB2 D6DA
-D6DB D6DB E9ADAF D6DB
-D6DC D6DC E9B7BA D6DC
-D6DD D6DD E9B9B5 D6DD
-D6DE D6DE E7A28C D6DE
-D6DF D6DF E7A5BF D6DF
-D6E0 D6E0 E7B6A0 D6E0
-D6E1 D6E1 E88F89 D6E1
-D6E2 D6E2 E98C84 D6E2
-D6E3 D6E3 E9B9BF D6E3
-D6E4 D6E4 E9BA93 D6E4
-D6E5 D6E5 E8AB96 D6E5
-D6E6 D6E6 E5A39F D6E6
-D6E7 D6E7 E5BC84 D6E7
-D6E8 D6E8 E69CA7 D6E8
-D6E9 D6E9 E780A7 D6E9
-D6EA D6EA E7938F D6EA
-D6EB D6EB E7B1A0 D6EB
-D6EC D6EC E881BE D6EC
-D6ED D6ED E584A1 D6ED
-D6EE D6EE E780A8 D6EE
-D6EF D6EF E789A2 D6EF
-D6F0 D6F0 E7A38A D6F0
-D6F1 D6F1 E8B382 D6F1
-D6F2 D6F2 E8B39A D6F2
-D6F3 D6F3 E8B3B4 D6F3
-D6F4 D6F4 E99BB7 D6F4
-D6F5 D6F5 E4BA86 D6F5
-D6F6 D6F6 E5839A D6F6
-D6F7 D6F7 E5AFAE D6F7
-D6F8 D6F8 E5BB96 D6F8
-D6F9 D6F9 E69699 D6F9
-D6FA D6FA E7878E D6FA
-D6FB D6FB E79982 D6FB
-D6FC D6FC E79EAD D6FC
-D6FD D6FD E8818A D6FD
-D6FE D6FE E893BC D6FE
-D7A1 D7A1 E981BC D7A1
-D7A2 D7A2 E9ACA7 D7A2
-D7A3 D7A3 E9BE8D D7A3
-D7A4 D7A4 E5A398 D7A4
-D7A5 D7A5 E5A981 D7A5
-D7A6 D7A6 E5B1A2 D7A6
-D7A7 D7A7 E6A893 D7A7
-D7A8 D7A8 E6B79A D7A8
-D7A9 D7A9 E6BC8F D7A9
-D7AA D7AA E798BB D7AA
-D7AB D7AB E7B4AF D7AB
-D7AC D7AC E7B8B7 D7AC
-D7AD D7AD E8949E D7AD
-D7AE D7AE E8A4B8 D7AE
-D7AF D7AF E98FA4 D7AF
-D7B0 D7B0 E9998B D7B0
-D7B1 D7B1 E58A89 D7B1
-D7B2 D7B2 E69792 D7B2
-D7B3 D7B3 E69FB3 D7B3
-D7B4 D7B4 E6A6B4 D7B4
-D7B5 D7B5 E6B581 D7B5
-D7B6 D7B6 E6BA9C D7B6
-D7B7 D7B7 E7808F D7B7
-D7B8 D7B8 E79089 D7B8
-D7B9 D7B9 E791A0 D7B9
-D7BA D7BA E79599 D7BA
-D7BB D7BB E798A4 D7BB
-D7BC D7BC E7A1AB D7BC
-D7BD D7BD E8ACAC D7BD
-D7BE D7BE E9A19E D7BE
-D7BF D7BF E585AD D7BF
-D7C0 D7C0 E688AE D7C0
-D7C1 D7C1 E999B8 D7C1
-D7C2 D7C2 E4BE96 D7C2
-D7C3 D7C3 E580AB D7C3
-D7C4 D7C4 E5B499 D7C4
-D7C5 D7C5 E6B7AA D7C5
-D7C6 D7C6 E7B6B8 D7C6
-D7C7 D7C7 E8BCAA D7C7
-D7C8 D7C8 E5BE8B D7C8
-D7C9 D7C9 E68584 D7C9
-D7CA D7CA E6A097 D7CA
-D7CB D7CB EFA5A1 D7CB
-D7CC D7CC E99A86 D7CC
-D7CD D7CD E58B92 D7CD
-D7CE D7CE E8828B D7CE
-D7CF D7CF E5879C D7CF
-D7D0 D7D0 E5878C D7D0
-D7D1 D7D1 E6A59E D7D1
-D7D2 D7D2 E7A89C D7D2
-D7D3 D7D3 E7B6BE D7D3
-D7D4 D7D4 E88FB1 D7D4
-D7D5 D7D5 E999B5 D7D5
-D7D6 D7D6 E4BF9A D7D6
-D7D7 D7D7 E588A9 D7D7
-D7D8 D7D8 E58E98 D7D8
-D7D9 D7D9 E5908F D7D9
-D7DA D7DA E5948E D7DA
-D7DB D7DB E5B1A5 D7DB
-D7DC D7DC E682A7 D7DC
-D7DD D7DD E69D8E D7DD
-D7DE D7DE E6A2A8 D7DE
-D7DF D7DF E6B5AC D7DF
-D7E0 D7E0 E78A81 D7E0
-D7E1 D7E1 E78BB8 D7E1
-D7E2 D7E2 E79086 D7E2
-D7E3 D7E3 E79283 D7E3
-D7E4 D7E4 EFA5A2 D7E4
-D7E5 D7E5 E797A2 D7E5
-D7E6 D7E6 E7B1AC D7E6
-D7E7 D7E7 E7BDB9 D7E7
-D7E8 D7E8 E7BEB8 D7E8
-D7E9 D7E9 E88E89 D7E9
-D7EA D7EA E8A38F D7EA
-D7EB D7EB E8A3A1 D7EB
-D7EC D7EC E9878C D7EC
-D7ED D7ED E98790 D7ED
-D7EE D7EE E99BA2 D7EE
-D7EF D7EF E9AF89 D7EF
-D7F0 D7F0 E5909D D7F0
-D7F1 D7F1 E6BDBE D7F1
-D7F2 D7F2 E78790 D7F2
-D7F3 D7F3 E79298 D7F3
-D7F4 D7F4 E897BA D7F4
-D7F5 D7F5 E8BAAA D7F5
-D7F6 D7F6 E99AA3 D7F6
-D7F7 D7F7 E9B197 D7F7
-D7F8 D7F8 E9BA9F D7F8
-D7F9 D7F9 E69E97 D7F9
-D7FA D7FA E6B78B D7FA
-D7FB D7FB E790B3 D7FB
-D7FC D7FC E887A8 D7FC
-D7FD D7FD E99C96 D7FD
-D7FE D7FE E7A0AC D7FE
-D8A1 D8A1 E7AB8B D8A1
-D8A2 D8A2 E7ACA0 D8A2
-D8A3 D8A3 E7B292 D8A3
-D8A4 D8A4 E691A9 D8A4
-D8A5 D8A5 E791AA D8A5
-D8A6 D8A6 E797B2 D8A6
-D8A7 D8A7 E7A2BC D8A7
-D8A8 D8A8 E7A3A8 D8A8
-D8A9 D8A9 E9A6AC D8A9
-D8AA D8AA E9AD94 D8AA
-D8AB D8AB E9BABB D8AB
-D8AC D8AC E5AF9E D8AC
-D8AD D8AD E5B995 D8AD
-D8AE D8AE E6BCA0 D8AE
-D8AF D8AF E8869C D8AF
-D8B0 D8B0 E88EAB D8B0
-D8B1 D8B1 E98288 D8B1
-D8B2 D8B2 E4B887 D8B2
-D8B3 D8B3 E58D8D D8B3
-D8B4 D8B4 E5A8A9 D8B4
-D8B5 D8B5 E5B792 D8B5
-D8B6 D8B6 E5BD8E D8B6
-D8B7 D8B7 E685A2 D8B7
-D8B8 D8B8 E68CBD D8B8
-D8B9 D8B9 E699A9 D8B9
-D8BA D8BA E69BBC D8BA
-D8BB D8BB E6BBBF D8BB
-D8BC D8BC E6BCAB D8BC
-D8BD D8BD E781A3 D8BD
-D8BE D8BE E79E9E D8BE
-D8BF D8BF E890AC D8BF
-D8C0 D8C0 E89493 D8C0
-D8C1 D8C1 E8A0BB D8C1
-D8C2 D8C2 E8BC93 D8C2
-D8C3 D8C3 E9A585 D8C3
-D8C4 D8C4 E9B0BB D8C4
-D8C5 D8C5 E5949C D8C5
-D8C6 D8C6 E68AB9 D8C6
-D8C7 D8C7 E69CAB D8C7
-D8C8 D8C8 E6B2AB D8C8
-D8C9 D8C9 E88C89 D8C9
-D8CA D8CA E8A5AA D8CA
-D8CB D8CB E99DBA D8CB
-D8CC D8CC E4BAA1 D8CC
-D8CD D8CD E5A684 D8CD
-D8CE D8CE E5BF98 D8CE
-D8CF D8CF E5BF99 D8CF
-D8D0 D8D0 E69C9B D8D0
-D8D1 D8D1 E7B6B2 D8D1
-D8D2 D8D2 E7BD94 D8D2
-D8D3 D8D3 E88A92 D8D3
-D8D4 D8D4 E88CAB D8D4
-D8D5 D8D5 E88EBD D8D5
-D8D6 D8D6 E8BC9E D8D6
-D8D7 D8D7 E98299 D8D7
-D8D8 D8D8 E59F8B D8D8
-D8D9 D8D9 E5A6B9 D8D9
-D8DA D8DA E5AA92 D8DA
-D8DB D8DB E5AF90 D8DB
-D8DC D8DC E698A7 D8DC
-D8DD D8DD E69E9A D8DD
-D8DE D8DE E6A285 D8DE
-D8DF D8DF E6AF8F D8DF
-D8E0 D8E0 E785A4 D8E0
-D8E1 D8E1 E7BDB5 D8E1
-D8E2 D8E2 E8B2B7 D8E2
-D8E3 D8E3 E8B3A3 D8E3
-D8E4 D8E4 E98281 D8E4
-D8E5 D8E5 E9AD85 D8E5
-D8E6 D8E6 E88488 D8E6
-D8E7 D8E7 E8B28A D8E7
-D8E8 D8E8 E9998C D8E8
-D8E9 D8E9 E9A980 D8E9
-D8EA D8EA E9BAA5 D8EA
-D8EB D8EB E5AD9F D8EB
-D8EC D8EC E6B093 D8EC
-D8ED D8ED E78C9B D8ED
-D8EE D8EE E79BB2 D8EE
-D8EF D8EF E79B9F D8EF
-D8F0 D8F0 E8908C D8F0
-D8F1 D8F1 E586AA D8F1
-D8F2 D8F2 E8A693 D8F2
-D8F3 D8F3 E5858D D8F3
-D8F4 D8F4 E58695 D8F4
-D8F5 D8F5 E58B89 D8F5
-D8F6 D8F6 E6A389 D8F6
-D8F7 D8F7 E6B294 D8F7
-D8F8 D8F8 E79C84 D8F8
-D8F9 D8F9 E79CA0 D8F9
-D8FA D8FA E7B6BF D8FA
-D8FB D8FB E7B7AC D8FB
-D8FC D8FC E99DA2 D8FC
-D8FD D8FD E9BAB5 D8FD
-D8FE D8FE E6BB85 D8FE
-D9A1 D9A1 E89491 D9A1
-D9A2 D9A2 E586A5 D9A2
-D9A3 D9A3 E5908D D9A3
-D9A4 D9A4 E591BD D9A4
-D9A5 D9A5 E6988E D9A5
-D9A6 D9A6 E69A9D D9A6
-D9A7 D9A7 E6A4A7 D9A7
-D9A8 D9A8 E6BA9F D9A8
-D9A9 D9A9 E79ABF D9A9
-D9AA D9AA E79E91 D9AA
-D9AB D9AB E88C97 D9AB
-D9AC D9AC E89382 D9AC
-D9AD D9AD E89E9F D9AD
-D9AE D9AE E985A9 D9AE
-D9AF D9AF E98A98 D9AF
-D9B0 D9B0 E9B3B4 D9B0
-D9B1 D9B1 E8A282 D9B1
-D9B2 D9B2 E4BEAE D9B2
-D9B3 D9B3 E58692 D9B3
-D9B4 D9B4 E58B9F D9B4
-D9B5 D9B5 E5A786 D9B5
-D9B6 D9B6 E5B8BD D9B6
-D9B7 D9B7 E68595 D9B7
-D9B8 D9B8 E691B8 D9B8
-D9B9 D9B9 E691B9 D9B9
-D9BA D9BA E69AAE D9BA
-D9BB D9BB E69F90 D9BB
-D9BC D9BC E6A8A1 D9BC
-D9BD D9BD E6AF8D D9BD
-D9BE D9BE E6AF9B D9BE
-D9BF D9BF E7899F D9BF
-D9C0 D9C0 E789A1 D9C0
-D9C1 D9C1 E79181 D9C1
-D9C2 D9C2 E79CB8 D9C2
-D9C3 D9C3 E79F9B D9C3
-D9C4 D9C4 E88097 D9C4
-D9C5 D9C5 E88ABC D9C5
-D9C6 D9C6 E88C85 D9C6
-D9C7 D9C7 E8AC80 D9C7
-D9C8 D9C8 E8ACA8 D9C8
-D9C9 D9C9 E8B28C D9C9
-D9CA D9CA E69CA8 D9CA
-D9CB D9CB E6B290 D9CB
-D9CC D9CC E789A7 D9CC
-D9CD D9CD E79BAE D9CD
-D9CE D9CE E79DA6 D9CE
-D9CF D9CF E7A986 D9CF
-D9D0 D9D0 E9B6A9 D9D0
-D9D1 D9D1 E6ADBF D9D1
-D9D2 D9D2 E6B292 D9D2
-D9D3 D9D3 E5A4A2 D9D3
-D9D4 D9D4 E69CA6 D9D4
-D9D5 D9D5 E89299 D9D5
-D9D6 D9D6 E58DAF D9D6
-D9D7 D9D7 E5A293 D9D7
-D9D8 D9D8 E5A699 D9D8
-D9D9 D9D9 E5BB9F D9D9
-D9DA D9DA E68F8F D9DA
-D9DB D9DB E698B4 D9DB
-D9DC D9DC E69DB3 D9DC
-D9DD D9DD E6B8BA D9DD
-D9DE D9DE E78CAB D9DE
-D9DF D9DF E7AB97 D9DF
-D9E0 D9E0 E88B97 D9E0
-D9E1 D9E1 E98CA8 D9E1
-D9E2 D9E2 E58B99 D9E2
-D9E3 D9E3 E5B7AB D9E3
-D9E4 D9E4 E686AE D9E4
-D9E5 D9E5 E6878B D9E5
-D9E6 D9E6 E6888A D9E6
-D9E7 D9E7 E68B87 D9E7
-D9E8 D9E8 E692AB D9E8
-D9E9 D9E9 E697A0 D9E9
-D9EA D9EA E6A599 D9EA
-D9EB D9EB E6ADA6 D9EB
-D9EC D9EC E6AF8B D9EC
-D9ED D9ED E784A1 D9ED
-D9EE D9EE E78FB7 D9EE
-D9EF D9EF E7959D D9EF
-D9F0 D9F0 E7B986 D9F0
-D9F1 D9F1 E8889E D9F1
-D9F2 D9F2 E88C82 D9F2
-D9F3 D9F3 E895AA D9F3
-D9F4 D9F4 E8AAA3 D9F4
-D9F5 D9F5 E8B2BF D9F5
-D9F6 D9F6 E99CA7 D9F6
-D9F7 D9F7 E9B5A1 D9F7
-D9F8 D9F8 E5A2A8 D9F8
-D9F9 D9F9 E9BB98 D9F9
-D9FA D9FA E58091 D9FA
-D9FB D9FB E5888E D9FB
-D9FC D9FC E590BB D9FC
-D9FD D9FD E5958F D9FD
-D9FE D9FE E69687 D9FE
-DAA1 DAA1 E6B1B6 DAA1
-DAA2 DAA2 E7B48A DAA2
-DAA3 DAA3 E7B48B DAA3
-DAA4 DAA4 E8819E DAA4
-DAA5 DAA5 E89A8A DAA5
-DAA6 DAA6 E99680 DAA6
-DAA7 DAA7 E99BAF DAA7
-DAA8 DAA8 E58BBF DAA8
-DAA9 DAA9 E6B295 DAA9
-DAAA DAAA E789A9 DAAA
-DAAB DAAB E591B3 DAAB
-DAAC DAAC E5AA9A DAAC
-DAAD DAAD E5B0BE DAAD
-DAAE DAAE E5B58B DAAE
-DAAF DAAF E5BD8C DAAF
-DAB0 DAB0 E5BEAE DAB0
-DAB1 DAB1 E69CAA DAB1
-DAB2 DAB2 E6A2B6 DAB2
-DAB3 DAB3 E6A5A3 DAB3
-DAB4 DAB4 E6B8BC DAB4
-DAB5 DAB5 E6B984 DAB5
-DAB6 DAB6 E79C89 DAB6
-DAB7 DAB7 E7B1B3 DAB7
-DAB8 DAB8 E7BE8E DAB8
-DAB9 DAB9 E89687 DAB9
-DABA DABA E8AC8E DABA
-DABB DABB E8BFB7 DABB
-DABC DABC E99DA1 DABC
-DABD DABD E9BBB4 DABD
-DABE DABE E5B2B7 DABE
-DABF DABF E682B6 DABF
-DAC0 DAC0 E6848D DAC0
-DAC1 DAC1 E686AB DAC1
-DAC2 DAC2 E6958F DAC2
-DAC3 DAC3 E697BB DAC3
-DAC4 DAC4 E697BC DAC4
-DAC5 DAC5 E6B091 DAC5
-DAC6 DAC6 E6B3AF DAC6
-DAC7 DAC7 E78E9F DAC7
-DAC8 DAC8 E78F89 DAC8
-DAC9 DAC9 E7B7A1 DAC9
-DACA DACA E99694 DACA
-DACB DACB E5AF86 DACB
-DACC DACC E89C9C DACC
-DACD DACD E8AC90 DACD
-DACE DACE E5899D DACE
-DACF DACF E58D9A DACF
-DAD0 DAD0 E68B8D DAD0
-DAD1 DAD1 E6908F DAD1
-DAD2 DAD2 E692B2 DAD2
-DAD3 DAD3 E69CB4 DAD3
-DAD4 DAD4 E6A8B8 DAD4
-DAD5 DAD5 E6B38A DAD5
-DAD6 DAD6 E78F80 DAD6
-DAD7 DAD7 E7929E DAD7
-DAD8 DAD8 E7AE94 DAD8
-DAD9 DAD9 E7B295 DAD9
-DADA DADA E7B89B DADA
-DADB DADB E8868A DADB
-DADC DADC E888B6 DADC
-DADD DADD E89684 DADD
-DADE DADE E8BFAB DADE
-DADF DADF E99BB9 DADF
-DAE0 DAE0 E9A781 DAE0
-DAE1 DAE1 E4BCB4 DAE1
-DAE2 DAE2 E58D8A DAE2
-DAE3 DAE3 E58F8D DAE3
-DAE4 DAE4 E58F9B DAE4
-DAE5 DAE5 E68B8C DAE5
-DAE6 DAE6 E690AC DAE6
-DAE7 DAE7 E69480 DAE7
-DAE8 DAE8 E69691 DAE8
-DAE9 DAE9 E6A783 DAE9
-DAEA DAEA E6B3AE DAEA
-DAEB DAEB E6BD98 DAEB
-DAEC DAEC E78FAD DAEC
-DAED DAED E79594 DAED
-DAEE DAEE E798A2 DAEE
-DAEF DAEF E79BA4 DAEF
-DAF0 DAF0 E79BBC DAF0
-DAF1 DAF1 E7A390 DAF1
-DAF2 DAF2 E7A3BB DAF2
-DAF3 DAF3 E7A4AC DAF3
-DAF4 DAF4 E7B586 DAF4
-DAF5 DAF5 E888AC DAF5
-DAF6 DAF6 E89FA0 DAF6
-DAF7 DAF7 E8BF94 DAF7
-DAF8 DAF8 E9A092 DAF8
-DAF9 DAF9 E9A3AF DAF9
-DAFA DAFA E58B83 DAFA
-DAFB DAFB E68B94 DAFB
-DAFC DAFC E692A5 DAFC
-DAFD DAFD E6B8A4 DAFD
-DAFE DAFE E6BD91 DAFE
-DBA1 DBA1 E799BC DBA1
-DBA2 DBA2 E8B78B DBA2
-DBA3 DBA3 E986B1 DBA3
-DBA4 DBA4 E989A2 DBA4
-DBA5 DBA5 E9ABAE DBA5
-DBA6 DBA6 E9AD83 DBA6
-DBA7 DBA7 E580A3 DBA7
-DBA8 DBA8 E5828D DBA8
-DBA9 DBA9 E59D8A DBA9
-DBAA DBAA E5A6A8 DBAA
-DBAB DBAB E5B0A8 DBAB
-DBAC DBAC E5B987 DBAC
-DBAD DBAD E5BDB7 DBAD
-DBAE DBAE E688BF DBAE
-DBAF DBAF E694BE DBAF
-DBB0 DBB0 E696B9 DBB0
-DBB1 DBB1 E69781 DBB1
-DBB2 DBB2 E69889 DBB2
-DBB3 DBB3 E69E8B DBB3
-DBB4 DBB4 E6A69C DBB4
-DBB5 DBB5 E6BB82 DBB5
-DBB6 DBB6 E7A385 DBB6
-DBB7 DBB7 E7B4A1 DBB7
-DBB8 DBB8 E882AA DBB8
-DBB9 DBB9 E88680 DBB9
-DBBA DBBA E888AB DBBA
-DBBB DBBB E88AB3 DBBB
-DBBC DBBC E892A1 DBBC
-DBBD DBBD E89A8C DBBD
-DBBE DBBE E8A8AA DBBE
-DBBF DBBF E8AC97 DBBF
-DBC0 DBC0 E982A6 DBC0
-DBC1 DBC1 E998B2 DBC1
-DBC2 DBC2 E9BE90 DBC2
-DBC3 DBC3 E5808D DBC3
-DBC4 DBC4 E4BFB3 DBC4
-DBC5 DBC5 EFA5A3 DBC5
-DBC6 DBC6 E59FB9 DBC6
-DBC7 DBC7 E5BE98 DBC7
-DBC8 DBC8 E68B9C DBC8
-DBC9 DBC9 E68E92 DBC9
-DBCA DBCA E69DAF DBCA
-DBCB DBCB E6B983 DBCB
-DBCC DBCC E78499 DBCC
-DBCD DBCD E79B83 DBCD
-DBCE DBCE E8838C DBCE
-DBCF DBCF E8839A DBCF
-DBD0 DBD0 E8A3B4 DBD0
-DBD1 DBD1 E8A3B5 DBD1
-DBD2 DBD2 E8A499 DBD2
-DBD3 DBD3 E8B3A0 DBD3
-DBD4 DBD4 E8BCA9 DBD4
-DBD5 DBD5 E9858D DBD5
-DBD6 DBD6 E999AA DBD6
-DBD7 DBD7 E4BCAF DBD7
-DBD8 DBD8 E4BDB0 DBD8
-DBD9 DBD9 E5B89B DBD9
-DBDA DBDA E69F8F DBDA
-DBDB DBDB E6A0A2 DBDB
-DBDC DBDC E799BD DBDC
-DBDD DBDD E799BE DBDD
-DBDE DBDE E9AD84 DBDE
-DBDF DBDF E5B9A1 DBDF
-DBE0 DBE0 E6A88A DBE0
-DBE1 DBE1 E785A9 DBE1
-DBE2 DBE2 E78794 DBE2
-DBE3 DBE3 E795AA DBE3
-DBE4 DBE4 EFA5A4 DBE4
-DBE5 DBE5 E7B981 DBE5
-DBE6 DBE6 E89583 DBE6
-DBE7 DBE7 E897A9 DBE7
-DBE8 DBE8 E9A39C DBE8
-DBE9 DBE9 E4BC90 DBE9
-DBEA DBEA E7AD8F DBEA
-DBEB DBEB E7BDB0 DBEB
-DBEC DBEC E996A5 DBEC
-DBED DBED E587A1 DBED
-DBEE DBEE E5B886 DBEE
-DBEF DBEF E6A2B5 DBEF
-DBF0 DBF0 E6B0BE DBF0
-DBF1 DBF1 E6B18E DBF1
-DBF2 DBF2 E6B39B DBF2
-DBF3 DBF3 E78AAF DBF3
-DBF4 DBF4 E7AF84 DBF4
-DBF5 DBF5 E88C83 DBF5
-DBF6 DBF6 E6B395 DBF6
-DBF7 DBF7 E790BA DBF7
-DBF8 DBF8 E583BB DBF8
-DBF9 DBF9 E58A88 DBF9
-DBFA DBFA E5A381 DBFA
-DBFB DBFB E69398 DBFB
-DBFC DBFC E6AA97 DBFC
-DBFD DBFD E792A7 DBFD
-DBFE DBFE E79996 DBFE
-DCA1 DCA1 E7A2A7 DCA1
-DCA2 DCA2 E89897 DCA2
-DCA3 DCA3 E997A2 DCA3
-DCA4 DCA4 E99CB9 DCA4
-DCA5 DCA5 EFA5A5 DCA5
-DCA6 DCA6 E58D9E DCA6
-DCA7 DCA7 E5BC81 DCA7
-DCA8 DCA8 E8AE8A DCA8
-DCA9 DCA9 E8BEA8 DCA9
-DCAA DCAA E8BEAF DCAA
-DCAB DCAB E9828A DCAB
-DCAC DCAC E588A5 DCAC
-DCAD DCAD E79EA5 DCAD
-DCAE DCAE E9B189 DCAE
-DCAF DCAF E9BC88 DCAF
-DCB0 DCB0 E4B899 DCB0
-DCB1 DCB1 E58082 DCB1
-DCB2 DCB2 E585B5 DCB2
-DCB3 DCB3 E5B19B DCB3
-DCB4 DCB4 E5B9B7 DCB4
-DCB5 DCB5 E6989E DCB5
-DCB6 DCB6 E698BA DCB6
-DCB7 DCB7 E69F84 DCB7
-DCB8 DCB8 E6A385 DCB8
-DCB9 DCB9 E782B3 DCB9
-DCBA DCBA E79481 DCBA
-DCBB DCBB E79785 DCBB
-DCBC DCBC E7A789 DCBC
-DCBD DCBD E7AB9D DCBD
-DCBE DCBE E8BCA7 DCBE
-DCBF DCBF E9A4A0 DCBF
-DCC0 DCC0 E9A888 DCC0
-DCC1 DCC1 E4BF9D DCC1
-DCC2 DCC2 E5A0A1 DCC2
-DCC3 DCC3 E5A0B1 DCC3
-DCC4 DCC4 E5AFB6 DCC4
-DCC5 DCC5 E699AE DCC5
-DCC6 DCC6 E6ADA5 DCC6
-DCC7 DCC7 E6B491 DCC7
-DCC8 DCC8 E6B9BA DCC8
-DCC9 DCC9 E6BDBD DCC9
-DCCA DCCA E78FA4 DCCA
-DCCB DCCB E794AB DCCB
-DCCC DCCC E88FA9 DCCC
-DCCD DCCD E8A39C DCCD
-DCCE DCCE E8A493 DCCE
-DCCF DCCF E8AD9C DCCF
-DCD0 DCD0 E8BC94 DCD0
-DCD1 DCD1 E4BC8F DCD1
-DCD2 DCD2 E58395 DCD2
-DCD3 DCD3 E58C90 DCD3
-DCD4 DCD4 E58D9C DCD4
-DCD5 DCD5 E5AE93 DCD5
-DCD6 DCD6 E5BEA9 DCD6
-DCD7 DCD7 E69C8D DCD7
-DCD8 DCD8 E7A68F DCD8
-DCD9 DCD9 E885B9 DCD9
-DCDA DCDA E88CAF DCDA
-DCDB DCDB E89494 DCDB
-DCDC DCDC E8A487 DCDC
-DCDD DCDD E8A686 DCDD
-DCDE DCDE E8BCB9 DCDE
-DCDF DCDF E8BCBB DCDF
-DCE0 DCE0 E9A6A5 DCE0
-DCE1 DCE1 E9B092 DCE1
-DCE2 DCE2 E69CAC DCE2
-DCE3 DCE3 E4B9B6 DCE3
-DCE4 DCE4 E4BFB8 DCE4
-DCE5 DCE5 E5A589 DCE5
-DCE6 DCE6 E5B081 DCE6
-DCE7 DCE7 E5B3AF DCE7
-DCE8 DCE8 E5B3B0 DCE8
-DCE9 DCE9 E68DA7 DCE9
-DCEA DCEA E6A392 DCEA
-DCEB DCEB E783BD DCEB
-DCEC DCEC E786A2 DCEC
-DCED DCED E790AB DCED
-DCEE DCEE E7B8AB DCEE
-DCEF DCEF E893AC DCEF
-DCF0 DCF0 E89C82 DCF0
-DCF1 DCF1 E980A2 DCF1
-DCF2 DCF2 E98B92 DCF2
-DCF3 DCF3 E9B3B3 DCF3
-DCF4 DCF4 E4B88D DCF4
-DCF5 DCF5 E4BB98 DCF5
-DCF6 DCF6 E4BFAF DCF6
-DCF7 DCF7 E58285 DCF7
-DCF8 DCF8 E58996 DCF8
-DCF9 DCF9 E589AF DCF9
-DCFA DCFA E590A6 DCFA
-DCFB DCFB E59290 DCFB
-DCFC DCFC E59FA0 DCFC
-DCFD DCFD E5A4AB DCFD
-DCFE DCFE E5A9A6 DCFE
-DDA1 DDA1 E5AD9A DDA1
-DDA2 DDA2 E5ADB5 DDA2
-DDA3 DDA3 E5AF8C DDA3
-DDA4 DDA4 E5BA9C DDA4
-DDA5 DDA5 EFA5A6 DDA5
-DDA6 DDA6 E689B6 DDA6
-DDA7 DDA7 E695B7 DDA7
-DDA8 DDA8 E696A7 DDA8
-DDA9 DDA9 E6B5AE DDA9
-DDAA DDAA E6BAA5 DDAA
-DDAB DDAB E788B6 DDAB
-DDAC DDAC E7ACA6 DDAC
-DDAD DDAD E7B0BF DDAD
-DDAE DDAE E7BCB6 DDAE
-DDAF DDAF E88590 DDAF
-DDB0 DDB0 E88591 DDB0
-DDB1 DDB1 E8869A DDB1
-DDB2 DDB2 E88980 DDB2
-DDB3 DDB3 E88A99 DDB3
-DDB4 DDB4 E88EA9 DDB4
-DDB5 DDB5 E8A883 DDB5
-DDB6 DDB6 E8B2A0 DDB6
-DDB7 DDB7 E8B3A6 DDB7
-DDB8 DDB8 E8B3BB DDB8
-DDB9 DDB9 E8B5B4 DDB9
-DDBA DDBA E8B6BA DDBA
-DDBB DDBB E983A8 DDBB
-DDBC DDBC E9879C DDBC
-DDBD DDBD E9989C DDBD
-DDBE DDBE E99984 DDBE
-DDBF DDBF E9A799 DDBF
-DDC0 DDC0 E9B3A7 DDC0
-DDC1 DDC1 E58C97 DDC1
-DDC2 DDC2 E58886 DDC2
-DDC3 DDC3 E590A9 DDC3
-DDC4 DDC4 E599B4 DDC4
-DDC5 DDC5 E5A2B3 DDC5
-DDC6 DDC6 E5A594 DDC6
-DDC7 DDC7 E5A5AE DDC7
-DDC8 DDC8 E5BFBF DDC8
-DDC9 DDC9 E686A4 DDC9
-DDCA DDCA E689AE DDCA
-DDCB DDCB E69890 DDCB
-DDCC DDCC E6B1BE DDCC
-DDCD DDCD E7849A DDCD
-DDCE DDCE E79B86 DDCE
-DDCF DDCF E7B289 DDCF
-DDD0 DDD0 E7B39E DDD0
-DDD1 DDD1 E7B49B DDD1
-DDD2 DDD2 E88AAC DDD2
-DDD3 DDD3 E8B381 DDD3
-DDD4 DDD4 E99BB0 DDD4
-DDD5 DDD5 EFA5A7 DDD5
-DDD6 DDD6 E4BD9B DDD6
-DDD7 DDD7 E5BC97 DDD7
-DDD8 DDD8 E5BDBF DDD8
-DDD9 DDD9 E68B82 DDD9
-DDDA DDDA E5B4A9 DDDA
-DDDB DDDB E69C8B DDDB
-DDDC DDDC E6A39A DDDC
-DDDD DDDD E7A1BC DDDD
-DDDE DDDE E7B983 DDDE
-DDDF DDDF E9B5AC DDDF
-DDE0 DDE0 E4B895 DDE0
-DDE1 DDE1 E58299 DDE1
-DDE2 DDE2 E58C95 DDE2
-DDE3 DDE3 E58CAA DDE3
-DDE4 DDE4 E58D91 DDE4
-DDE5 DDE5 E5A683 DDE5
-DDE6 DDE6 E5A9A2 DDE6
-DDE7 DDE7 E5BA87 DDE7
-DDE8 DDE8 E682B2 DDE8
-DDE9 DDE9 E6868A DDE9
-DDEA DDEA E68989 DDEA
-DDEB DDEB E689B9 DDEB
-DDEC DDEC E69690 DDEC
-DDED DDED E69E87 DDED
-DDEE DDEE E6A6A7 DDEE
-DDEF DDEF E6AF94 DDEF
-DDF0 DDF0 E6AF96 DDF0
-DDF1 DDF1 E6AF97 DDF1
-DDF2 DDF2 E6AF98 DDF2
-DDF3 DDF3 E6B2B8 DDF3
-DDF4 DDF4 EFA5A8 DDF4
-DDF5 DDF5 E790B5 DDF5
-DDF6 DDF6 E797BA DDF6
-DDF7 DDF7 E7A092 DDF7
-DDF8 DDF8 E7A291 DDF8
-DDF9 DDF9 E7A795 DDF9
-DDFA DDFA E7A798 DDFA
-DDFB DDFB E7B283 DDFB
-DDFC DDFC E7B78B DDFC
-DDFD DDFD E7BFA1 DDFD
-DDFE DDFE E882A5 DDFE
-DEA1 DEA1 E884BE DEA1
-DEA2 DEA2 E88782 DEA2
-DEA3 DEA3 E88FB2 DEA3
-DEA4 DEA4 E89C9A DEA4
-DEA5 DEA5 E8A3A8 DEA5
-DEA6 DEA6 E8AAB9 DEA6
-DEA7 DEA7 E8ADAC DEA7
-DEA8 DEA8 E8B2BB DEA8
-DEA9 DEA9 E98499 DEA9
-DEAA DEAA E99D9E DEAA
-DEAB DEAB E9A39B DEAB
-DEAC DEAC E9BCBB DEAC
-DEAD DEAD E59AAC DEAD
-DEAE DEAE E5ACAA DEAE
-DEAF DEAF E5BDAC DEAF
-DEB0 DEB0 E6968C DEB0
-DEB1 DEB1 E6AAB3 DEB1
-DEB2 DEB2 E6AEAF DEB2
-DEB3 DEB3 E6B59C DEB3
-DEB4 DEB4 E6BFB1 DEB4
-DEB5 DEB5 E78095 DEB5
-DEB6 DEB6 E7899D DEB6
-DEB7 DEB7 E78EAD DEB7
-DEB8 DEB8 E8B2A7 DEB8
-DEB9 DEB9 E8B393 DEB9
-DEBA DEBA E9A0BB DEBA
-DEBB DEBB E68691 DEBB
-DEBC DEBC E6B0B7 DEBC
-DEBD DEBD E88198 DEBD
-DEBE DEBE E9A881 DEBE
-DEBF DEBF E4B98D DEBF
-DEC0 DEC0 E4BA8B DEC0
-DEC1 DEC1 E4BA9B DEC1
-DEC2 DEC2 E4BB95 DEC2
-DEC3 DEC3 E4BCBA DEC3
-DEC4 DEC4 E4BCBC DEC4
-DEC5 DEC5 E4BDBF DEC5
-DEC6 DEC6 E4BF9F DEC6
-DEC7 DEC7 E583BF DEC7
-DEC8 DEC8 E58FB2 DEC8
-DEC9 DEC9 E58FB8 DEC9
-DECA DECA E59486 DECA
-DECB DECB E597A3 DECB
-DECC DECC E59B9B DECC
-DECD DECD E5A3AB DECD
-DECE DECE E5A5A2 DECE
-DECF DECF E5A891 DECF
-DED0 DED0 E5AFAB DED0
-DED1 DED1 E5AFBA DED1
-DED2 DED2 E5B084 DED2
-DED3 DED3 E5B7B3 DED3
-DED4 DED4 E5B8AB DED4
-DED5 DED5 E5BE99 DED5
-DED6 DED6 E6809D DED6
-DED7 DED7 E68DA8 DED7
-DED8 DED8 E6969C DED8
-DED9 DED9 E696AF DED9
-DEDA DEDA E69FB6 DEDA
-DEDB DEDB E69FBB DEDB
-DEDC DEDC E6A2AD DEDC
-DEDD DEDD E6ADBB DEDD
-DEDE DEDE E6B299 DEDE
-DEDF DEDF E6B397 DEDF
-DEE0 DEE0 E6B8A3 DEE0
-DEE1 DEE1 E78089 DEE1
-DEE2 DEE2 E78D85 DEE2
-DEE3 DEE3 E7A082 DEE3
-DEE4 DEE4 E7A4BE DEE4
-DEE5 DEE5 E7A580 DEE5
-DEE6 DEE6 E7A5A0 DEE6
-DEE7 DEE7 E7A781 DEE7
-DEE8 DEE8 E7AFA9 DEE8
-DEE9 DEE9 E7B497 DEE9
-DEEA DEEA E7B5B2 DEEA
-DEEB DEEB E88286 DEEB
-DEEC DEEC E8888D DEEC
-DEED DEED E88E8E DEED
-DEEE DEEE E89391 DEEE
-DEEF DEEF E89B87 DEEF
-DEF0 DEF0 E8A39F DEF0
-DEF1 DEF1 E8A990 DEF1
-DEF2 DEF2 E8A99E DEF2
-DEF3 DEF3 E8AC9D DEF3
-DEF4 DEF4 E8B39C DEF4
-DEF5 DEF5 E8B5A6 DEF5
-DEF6 DEF6 E8BEAD DEF6
-DEF7 DEF7 E982AA DEF7
-DEF8 DEF8 E9A3BC DEF8
-DEF9 DEF9 E9A79F DEF9
-DEFA DEFA E9BA9D DEFA
-DEFB DEFB E5898A DEFB
-DEFC DEFC EFA5A9 DEFC
-DEFD DEFD E69C94 DEFD
-DEFE DEFE EFA5AA DEFE
-DFA1 DFA1 E58298 DFA1
-DFA2 DFA2 E588AA DFA2
-DFA3 DFA3 E5B1B1 DFA3
-DFA4 DFA4 E695A3 DFA4
-DFA5 DFA5 E6B195 DFA5
-DFA6 DFA6 E78F8A DFA6
-DFA7 DFA7 E794A3 DFA7
-DFA8 DFA8 E7969D DFA8
-DFA9 DFA9 E7AE97 DFA9
-DFAA DFAA E8929C DFAA
-DFAB DFAB E985B8 DFAB
-DFAC DFAC E99CB0 DFAC
-DFAD DFAD E4B9B7 DFAD
-DFAE DFAE E69292 DFAE
-DFAF DFAF E6AEBA DFAF
-DFB0 DFB0 E7859E DFB0
-DFB1 DFB1 E896A9 DFB1
-DFB2 DFB2 E4B889 DFB2
-DFB3 DFB3 EFA5AB DFB3
-DFB4 DFB4 E69D89 DFB4
-DFB5 DFB5 E6A3AE DFB5
-DFB6 DFB6 E6B897 DFB6
-DFB7 DFB7 E88A9F DFB7
-DFB8 DFB8 E89498 DFB8
-DFB9 DFB9 E8A1AB DFB9
-DFBA DFBA E68FB7 DFBA
-DFBB DFBB E6BE81 DFBB
-DFBC DFBC E98892 DFBC
-DFBD DFBD E9A2AF DFBD
-DFBE DFBE E4B88A DFBE
-DFBF DFBF E582B7 DFBF
-DFC0 DFC0 E5838F DFC0
-DFC1 DFC1 E5849F DFC1
-DFC2 DFC2 E59586 DFC2
-DFC3 DFC3 E596AA DFC3
-DFC4 DFC4 E59897 DFC4
-DFC5 DFC5 E5AD80 DFC5
-DFC6 DFC6 E5B099 DFC6
-DFC7 DFC7 E5B3A0 DFC7
-DFC8 DFC8 E5B8B8 DFC8
-DFC9 DFC9 E5BA8A DFC9
-DFCA DFCA E5BAA0 DFCA
-DFCB DFCB E5BB82 DFCB
-DFCC DFCC E683B3 DFCC
-DFCD DFCD E6A191 DFCD
-DFCE DFCE E6A9A1 DFCE
-DFCF DFCF E6B998 DFCF
-DFD0 DFD0 E788BD DFD0
-DFD1 DFD1 E78980 DFD1
-DFD2 DFD2 E78B80 DFD2
-DFD3 DFD3 E79BB8 DFD3
-DFD4 DFD4 E7A5A5 DFD4
-DFD5 DFD5 E7AEB1 DFD5
-DFD6 DFD6 E7BF94 DFD6
-DFD7 DFD7 E8A3B3 DFD7
-DFD8 DFD8 E8A7B4 DFD8
-DFD9 DFD9 E8A9B3 DFD9
-DFDA DFDA E8B1A1 DFDA
-DFDB DFDB E8B39E DFDB
-DFDC DFDC E99C9C DFDC
-DFDD DFDD E5A19E DFDD
-DFDE DFDE E792BD DFDE
-DFDF DFDF E8B3BD DFDF
-DFE0 DFE0 E59787 DFE0
-DFE1 DFE1 EFA5AC DFE1
-DFE2 DFE2 E7A9A1 DFE2
-DFE3 DFE3 E7B4A2 DFE3
-DFE4 DFE4 E889B2 DFE4
-DFE5 DFE5 E789B2 DFE5
-DFE6 DFE6 E7949F DFE6
-DFE7 DFE7 E794A5 DFE7
-DFE8 DFE8 EFA5AD DFE8
-DFE9 DFE9 E7AC99 DFE9
-DFEA DFEA E5A285 DFEA
-DFEB DFEB E5A3BB DFEB
-DFEC DFEC E5B6BC DFEC
-DFED DFED E5BA8F DFED
-DFEE DFEE E5BAB6 DFEE
-DFEF DFEF E5BE90 DFEF
-DFF0 DFF0 E68195 DFF0
-DFF1 DFF1 E68A92 DFF1
-DFF2 DFF2 E68DBF DFF2
-DFF3 DFF3 E6958D DFF3
-DFF4 DFF4 E69A91 DFF4
-DFF5 DFF5 E69B99 DFF5
-DFF6 DFF6 E69BB8 DFF6
-DFF7 DFF7 E6A096 DFF7
-DFF8 DFF8 E6A3B2 DFF8
-DFF9 DFF9 E78A80 DFF9
-DFFA DFFA E7919E DFFA
-DFFB DFFB E7ADAE DFFB
-DFFC DFFC E7B5AE DFFC
-DFFD DFFD E7B796 DFFD
-DFFE DFFE E7BDB2 DFFE
-E0A1 E0A1 E883A5 E0A1
-E0A2 E0A2 E88892 E0A2
-E0A3 E0A3 E896AF E0A3
-E0A4 E0A4 E8A5BF E0A4
-E0A5 E0A5 E8AA93 E0A5
-E0A6 E0A6 E9809D E0A6
-E0A7 E0A7 E98BA4 E0A7
-E0A8 E0A8 E9BB8D E0A8
-E0A9 E0A9 E9BCA0 E0A9
-E0AA E0AA E5A495 E0AA
-E0AB E0AB E5A5AD E0AB
-E0AC E0AC E5B8AD E0AC
-E0AD E0AD E6839C E0AD
-E0AE E0AE E69894 E0AE
-E0AF E0AF E699B3 E0AF
-E0B0 E0B0 E69E90 E0B0
-E0B1 E0B1 E6B190 E0B1
-E0B2 E0B2 E6B785 E0B2
-E0B3 E0B3 E6BD9F E0B3
-E0B4 E0B4 E79FB3 E0B4
-E0B5 E0B5 E7A2A9 E0B5
-E0B6 E0B6 E89386 E0B6
-E0B7 E0B7 E9878B E0B7
-E0B8 E0B8 E98CAB E0B8
-E0B9 E0B9 E4BB99 E0B9
-E0BA E0BA E5838A E0BA
-E0BB E0BB E58588 E0BB
-E0BC E0BC E59684 E0BC
-E0BD E0BD E5AC8B E0BD
-E0BE E0BE E5AEA3 E0BE
-E0BF E0BF E68987 E0BF
-E0C0 E0C0 E695BE E0C0
-E0C1 E0C1 E6978B E0C1
-E0C2 E0C2 E6B8B2 E0C2
-E0C3 E0C3 E785BD E0C3
-E0C4 E0C4 E79081 E0C4
-E0C5 E0C5 E79184 E0C5
-E0C6 E0C6 E79287 E0C6
-E0C7 E0C7 E792BF E0C7
-E0C8 E0C8 E799AC E0C8
-E0C9 E0C9 E7A6AA E0C9
-E0CA E0CA E7B79A E0CA
-E0CB E0CB E7B995 E0CB
-E0CC E0CC E7BEA8 E0CC
-E0CD E0CD E885BA E0CD
-E0CE E0CE E886B3 E0CE
-E0CF E0CF E888B9 E0CF
-E0D0 E0D0 E8989A E0D0
-E0D1 E0D1 E89FAC E0D1
-E0D2 E0D2 E8A9B5 E0D2
-E0D3 E0D3 E8B7A3 E0D3
-E0D4 E0D4 E981B8 E0D4
-E0D5 E0D5 E98A91 E0D5
-E0D6 E0D6 E990A5 E0D6
-E0D7 E0D7 E9A58D E0D7
-E0D8 E0D8 E9AEAE E0D8
-E0D9 E0D9 E58DA8 E0D9
-E0DA E0DA E5B191 E0DA
-E0DB E0DB E6A594 E0DB
-E0DC E0DC E6B384 E0DC
-E0DD E0DD E6B4A9 E0DD
-E0DE E0DE E6B8AB E0DE
-E0DF E0DF E8888C E0DF
-E0E0 E0E0 E8969B E0E0
-E0E1 E0E1 E8A4BB E0E1
-E0E2 E0E2 E8A8AD E0E2
-E0E3 E0E3 E8AAAA E0E3
-E0E4 E0E4 E99BAA E0E4
-E0E5 E0E5 E9BDA7 E0E5
-E0E6 E0E6 E589A1 E0E6
-E0E7 E0E7 E69AB9 E0E7
-E0E8 E0E8 E6AEB2 E0E8
-E0E9 E0E9 E7BA96 E0E9
-E0EA E0EA E89FBE E0EA
-E0EB E0EB E8B48D E0EB
-E0EC E0EC E99683 E0EC
-E0ED E0ED E9999D E0ED
-E0EE E0EE E6949D E0EE
-E0EF E0EF E6B689 E0EF
-E0F0 E0F0 E787AE E0F0
-E0F1 E0F1 EFA5AE E0F1
-E0F2 E0F2 E59F8E E0F2
-E0F3 E0F3 E5A793 E0F3
-E0F4 E0F4 E5AEAC E0F4
-E0F5 E0F5 E680A7 E0F5
-E0F6 E0F6 E683BA E0F6
-E0F7 E0F7 E68890 E0F7
-E0F8 E0F8 E6989F E0F8
-E0F9 E0F9 E6999F E0F9
-E0FA E0FA E78CA9 E0FA
-E0FB E0FB E78FB9 E0FB
-E0FC E0FC E79B9B E0FC
-E0FD E0FD E79C81 E0FD
-E0FE E0FE E7ADAC E0FE
-E1A1 E1A1 E88196 E1A1
-E1A2 E1A2 E881B2 E1A2
-E1A3 E1A3 E885A5 E1A3
-E1A4 E1A4 E8AAA0 E1A4
-E1A5 E1A5 E98692 E1A5
-E1A6 E1A6 E4B896 E1A6
-E1A7 E1A7 E58BA2 E1A7
-E1A8 E1A8 E6ADB2 E1A8
-E1A9 E1A9 E6B497 E1A9
-E1AA E1AA E7A885 E1AA
-E1AB E1AB E7ACB9 E1AB
-E1AC E1AC E7B4B0 E1AC
-E1AD E1AD EFA5AF E1AD
-E1AE E1AE E8B2B0 E1AE
-E1AF E1AF E58FAC E1AF
-E1B0 E1B0 E598AF E1B0
-E1B1 E1B1 E5A191 E1B1
-E1B2 E1B2 E5AEB5 E1B2
-E1B3 E1B3 E5B08F E1B3
-E1B4 E1B4 E5B091 E1B4
-E1B5 E1B5 E5B7A2 E1B5
-E1B6 E1B6 E68980 E1B6
-E1B7 E1B7 E68E83 E1B7
-E1B8 E1B8 E69094 E1B8
-E1B9 E1B9 E698AD E1B9
-E1BA E1BA E6A2B3 E1BA
-E1BB E1BB E6B2BC E1BB
-E1BC E1BC E6B688 E1BC
-E1BD E1BD E6BAAF E1BD
-E1BE E1BE E7809F E1BE
-E1BF E1BF E782A4 E1BF
-E1C0 E1C0 E78792 E1C0
-E1C1 E1C1 E794A6 E1C1
-E1C2 E1C2 E7968F E1C2
-E1C3 E1C3 E7968E E1C3
-E1C4 E1C4 E79899 E1C4
-E1C5 E1C5 E7AC91 E1C5
-E1C6 E1C6 E7AFA0 E1C6
-E1C7 E1C7 E7B0AB E1C7
-E1C8 E1C8 E7B4A0 E1C8
-E1C9 E1C9 E7B4B9 E1C9
-E1CA E1CA E894AC E1CA
-E1CB E1CB E895AD E1CB
-E1CC E1CC E89887 E1CC
-E1CD E1CD E8A8B4 E1CD
-E1CE E1CE E9808D E1CE
-E1CF E1CF E981A1 E1CF
-E1D0 E1D0 E982B5 E1D0
-E1D1 E1D1 E98AB7 E1D1
-E1D2 E1D2 E99FB6 E1D2
-E1D3 E1D3 E9A8B7 E1D3
-E1D4 E1D4 E4BF97 E1D4
-E1D5 E1D5 E5B1AC E1D5
-E1D6 E1D6 E69D9F E1D6
-E1D7 E1D7 E6B691 E1D7
-E1D8 E1D8 E7B29F E1D8
-E1D9 E1D9 E7BA8C E1D9
-E1DA E1DA E8AC96 E1DA
-E1DB E1DB E8B496 E1DB
-E1DC E1DC E9809F E1DC
-E1DD E1DD E5ADAB E1DD
-E1DE E1DE E5B7BD E1DE
-E1DF E1DF E6908D E1DF
-E1E0 E1E0 E89380 E1E0
-E1E1 E1E1 E9819C E1E1
-E1E2 E1E2 E9A3A1 E1E2
-E1E3 E1E3 E78E87 E1E3
-E1E4 E1E4 E5AE8B E1E4
-E1E5 E1E5 E6829A E1E5
-E1E6 E1E6 E69DBE E1E6
-E1E7 E1E7 E6B79E E1E7
-E1E8 E1E8 E8A89F E1E8
-E1E9 E1E9 E8AAA6 E1E9
-E1EA E1EA E98081 E1EA
-E1EB E1EB E9A08C E1EB
-E1EC E1EC E588B7 E1EC
-E1ED E1ED EFA5B0 E1ED
-E1EE E1EE E78191 E1EE
-E1EF E1EF E7A28E E1EF
-E1F0 E1F0 E98E96 E1F0
-E1F1 E1F1 E8A1B0 E1F1
-E1F2 E1F2 E98797 E1F2
-E1F3 E1F3 E4BFAE E1F3
-E1F4 E1F4 E58F97 E1F4
-E1F5 E1F5 E597BD E1F5
-E1F6 E1F6 E59B9A E1F6
-E1F7 E1F7 E59E82 E1F7
-E1F8 E1F8 E5A3BD E1F8
-E1F9 E1F9 E5AB82 E1F9
-E1FA E1FA E5AE88 E1FA
-E1FB E1FB E5B2AB E1FB
-E1FC E1FC E5B380 E1FC
-E1FD E1FD E5B8A5 E1FD
-E1FE E1FE E68481 E1FE
-E2A1 E2A1 E6888D E2A1
-E2A2 E2A2 E6898B E2A2
-E2A3 E2A3 E68E88 E2A3
-E2A4 E2A4 E6909C E2A4
-E2A5 E2A5 E694B6 E2A5
-E2A6 E2A6 E695B8 E2A6
-E2A7 E2A7 E6A8B9 E2A7
-E2A8 E2A8 E6AE8A E2A8
-E2A9 E2A9 E6B0B4 E2A9
-E2AA E2AA E6B499 E2AA
-E2AB E2AB E6BCB1 E2AB
-E2AC E2AC E787A7 E2AC
-E2AD E2AD E78BA9 E2AD
-E2AE E2AE E78DB8 E2AE
-E2AF E2AF E79087 E2AF
-E2B0 E2B0 E792B2 E2B0
-E2B1 E2B1 E798A6 E2B1
-E2B2 E2B2 E79DA1 E2B2
-E2B3 E2B3 E7A780 E2B3
-E2B4 E2B4 E7A997 E2B4
-E2B5 E2B5 E7ABAA E2B5
-E2B6 E2B6 E7B2B9 E2B6
-E2B7 E2B7 E7B68F E2B7
-E2B8 E2B8 E7B6AC E2B8
-E2B9 E2B9 E7B9A1 E2B9
-E2BA E2BA E7BE9E E2BA
-E2BB E2BB E884A9 E2BB
-E2BC E2BC E88CB1 E2BC
-E2BD E2BD E89290 E2BD
-E2BE E2BE E8939A E2BE
-E2BF E2BF E897AA E2BF
-E2C0 E2C0 E8A296 E2C0
-E2C1 E2C1 E8AAB0 E2C1
-E2C2 E2C2 E8AE90 E2C2
-E2C3 E2C3 E8BCB8 E2C3
-E2C4 E2C4 E98182 E2C4
-E2C5 E2C5 E98283 E2C5
-E2C6 E2C6 E985AC E2C6
-E2C7 E2C7 E98A96 E2C7
-E2C8 E2C8 E98AB9 E2C8
-E2C9 E2C9 E99A8B E2C9
-E2CA E2CA E99AA7 E2CA
-E2CB E2CB E99AA8 E2CB
-E2CC E2CC E99B96 E2CC
-E2CD E2CD E99C80 E2CD
-E2CE E2CE E9A088 E2CE
-E2CF E2CF E9A696 E2CF
-E2D0 E2D0 E9AB93 E2D0
-E2D1 E2D1 E9AC9A E2D1
-E2D2 E2D2 E58F94 E2D2
-E2D3 E2D3 E5A1BE E2D3
-E2D4 E2D4 E5A499 E2D4
-E2D5 E2D5 E5ADB0 E2D5
-E2D6 E2D6 E5AEBF E2D6
-E2D7 E2D7 E6B791 E2D7
-E2D8 E2D8 E6BD9A E2D8
-E2D9 E2D9 E7869F E2D9
-E2DA E2DA E790A1 E2DA
-E2DB E2DB E792B9 E2DB
-E2DC E2DC E88285 E2DC
-E2DD E2DD E88FBD E2DD
-E2DE E2DE E5B7A1 E2DE
-E2DF E2DF E5BE87 E2DF
-E2E0 E2E0 E5BEAA E2E0
-E2E1 E2E1 E68182 E2E1
-E2E2 E2E2 E697AC E2E2
-E2E3 E2E3 E6A092 E2E3
-E2E4 E2E4 E6A5AF E2E4
-E2E5 E2E5 E6A993 E2E5
-E2E6 E2E6 E6AE89 E2E6
-E2E7 E2E7 E6B4B5 E2E7
-E2E8 E2E8 E6B7B3 E2E8
-E2E9 E2E9 E78FA3 E2E9
-E2EA E2EA E79BBE E2EA
-E2EB E2EB E79EAC E2EB
-E2EC E2EC E7AD8D E2EC
-E2ED E2ED E7B494 E2ED
-E2EE E2EE E884A3 E2EE
-E2EF E2EF E8889C E2EF
-E2F0 E2F0 E88D80 E2F0
-E2F1 E2F1 E893B4 E2F1
-E2F2 E2F2 E895A3 E2F2
-E2F3 E2F3 E8A9A2 E2F3
-E2F4 E2F4 E8AB84 E2F4
-E2F5 E2F5 E98687 E2F5
-E2F6 E2F6 E98C9E E2F6
-E2F7 E2F7 E9A086 E2F7
-E2F8 E2F8 E9A6B4 E2F8
-E2F9 E2F9 E6888C E2F9
-E2FA E2FA E8A193 E2FA
-E2FB E2FB E8BFB0 E2FB
-E2FC E2FC E989A5 E2FC
-E2FD E2FD E5B487 E2FD
-E2FE E2FE E5B4A7 E2FE
-E3A1 E3A1 E5B5A9 E3A1
-E3A2 E3A2 E7919F E3A2
-E3A3 E3A3 E8869D E3A3
-E3A4 E3A4 E89DA8 E3A4
-E3A5 E3A5 E6BF95 E3A5
-E3A6 E3A6 E68BBE E3A6
-E3A7 E3A7 E7BF92 E3A7
-E3A8 E3A8 E8A4B6 E3A8
-E3A9 E3A9 E8A5B2 E3A9
-E3AA E3AA E4B89E E3AA
-E3AB E3AB E4B998 E3AB
-E3AC E3AC E583A7 E3AC
-E3AD E3AD E58B9D E3AD
-E3AE E3AE E58D87 E3AE
-E3AF E3AF E689BF E3AF
-E3B0 E3B0 E69887 E3B0
-E3B1 E3B1 E7B9A9 E3B1
-E3B2 E3B2 E8A085 E3B2
-E3B3 E3B3 E9999E E3B3
-E3B4 E3B4 E4BE8D E3B4
-E3B5 E3B5 E58C99 E3B5
-E3B6 E3B6 E598B6 E3B6
-E3B7 E3B7 E5A78B E3B7
-E3B8 E3B8 E5AAA4 E3B8
-E3B9 E3B9 E5B0B8 E3B9
-E3BA E3BA E5B18E E3BA
-E3BB E3BB E5B18D E3BB
-E3BC E3BC E5B882 E3BC
-E3BD E3BD E5BC91 E3BD
-E3BE E3BE E68183 E3BE
-E3BF E3BF E696BD E3BF
-E3C0 E3C0 E698AF E3C0
-E3C1 E3C1 E69982 E3C1
-E3C2 E3C2 E69EBE E3C2
-E3C3 E3C3 E69FB4 E3C3
-E3C4 E3C4 E78C9C E3C4
-E3C5 E3C5 E79FA2 E3C5
-E3C6 E3C6 E7A4BA E3C6
-E3C7 E3C7 E7BF85 E3C7
-E3C8 E3C8 E89294 E3C8
-E3C9 E3C9 E8938D E3C9
-E3CA E3CA E8A696 E3CA
-E3CB E3CB E8A9A6 E3CB
-E3CC E3CC E8A9A9 E3CC
-E3CD E3CD E8ABA1 E3CD
-E3CE E3CE E8B195 E3CE
-E3CF E3CF E8B1BA E3CF
-E3D0 E3D0 E59FB4 E3D0
-E3D1 E3D1 E5AF94 E3D1
-E3D2 E3D2 E5BC8F E3D2
-E3D3 E3D3 E681AF E3D3
-E3D4 E3D4 E68BAD E3D4
-E3D5 E3D5 E6A48D E3D5
-E3D6 E3D6 E6AE96 E3D6
-E3D7 E3D7 E6B99C E3D7
-E3D8 E3D8 E78684 E3D8
-E3D9 E3D9 E7AF92 E3D9
-E3DA E3DA E89D95 E3DA
-E3DB E3DB E8AD98 E3DB
-E3DC E3DC E8BBBE E3DC
-E3DD E3DD E9A39F E3DD
-E3DE E3DE E9A3BE E3DE
-E3DF E3DF E4BCB8 E3DF
-E3E0 E3E0 E4BE81 E3E0
-E3E1 E3E1 E4BFA1 E3E1
-E3E2 E3E2 E591BB E3E2
-E3E3 E3E3 E5A8A0 E3E3
-E3E4 E3E4 E5AEB8 E3E4
-E3E5 E3E5 E684BC E3E5
-E3E6 E3E6 E696B0 E3E6
-E3E7 E3E7 E699A8 E3E7
-E3E8 E3E8 E787BC E3E8
-E3E9 E3E9 E794B3 E3E9
-E3EA E3EA E7A59E E3EA
-E3EB E3EB E7B4B3 E3EB
-E3EC E3EC E8858E E3EC
-E3ED E3ED E887A3 E3ED
-E3EE E3EE E88E98 E3EE
-E3EF E3EF E896AA E3EF
-E3F0 E3F0 E8978E E3F0
-E3F1 E3F1 E89C83 E3F1
-E3F2 E3F2 E8A88A E3F2
-E3F3 E3F3 E8BAAB E3F3
-E3F4 E3F4 E8BE9B E3F4
-E3F5 E3F5 EFA5B1 E3F5
-E3F6 E3F6 E8BF85 E3F6
-E3F7 E3F7 E5A4B1 E3F7
-E3F8 E3F8 E5AEA4 E3F8
-E3F9 E3F9 E5AFA6 E3F9
-E3FA E3FA E68289 E3FA
-E3FB E3FB E5AFA9 E3FB
-E3FC E3FC E5B08B E3FC
-E3FD E3FD E5BF83 E3FD
-E3FE E3FE E6B281 E3FE
-E4A1 E4A1 EFA5B2 E4A1
-E4A2 E4A2 E6B7B1 E4A2
-E4A3 E4A3 E7808B E4A3
-E4A4 E4A4 E7949A E4A4
-E4A5 E4A5 E88AAF E4A5
-E4A6 E4A6 E8ABB6 E4A6
-E4A7 E4A7 E4BB80 E4A7
-E4A8 E4A8 E58D81 E4A8
-E4A9 E4A9 EFA5B3 E4A9
-E4AA E4AA E99B99 E4AA
-E4AB E4AB E6B08F E4AB
-E4AC E4AC E4BA9E E4AC
-E4AD E4AD E4BF84 E4AD
-E4AE E4AE E58592 E4AE
-E4AF E4AF E5959E E4AF
-E4B0 E4B0 E5A8A5 E4B0
-E4B1 E4B1 E5B3A8 E4B1
-E4B2 E4B2 E68891 E4B2
-E4B3 E4B3 E78999 E4B3
-E4B4 E4B4 E88ABD E4B4
-E4B5 E4B5 E88EAA E4B5
-E4B6 E4B6 E89BBE E4B6
-E4B7 E4B7 E8A199 E4B7
-E4B8 E4B8 E8A89D E4B8
-E4B9 E4B9 E998BF E4B9
-E4BA E4BA E99B85 E4BA
-E4BB E4BB E9A493 E4BB
-E4BC E4BC E9B489 E4BC
-E4BD E4BD E9B59D E4BD
-E4BE E4BE E5A08A E4BE
-E4BF E4BF E5B2B3 E4BF
-E4C0 E4C0 E5B6BD E4C0
-E4C1 E4C1 E5B984 E4C1
-E4C2 E4C2 E683A1 E4C2
-E4C3 E4C3 E68495 E4C3
-E4C4 E4C4 E68FA1 E4C4
-E4C5 E4C5 E6A882 E4C5
-E4C6 E4C6 E6B8A5 E4C6
-E4C7 E4C7 E98482 E4C7
-E4C8 E4C8 E98D94 E4C8
-E4C9 E4C9 E9A18E E4C9
-E4CA E4CA E9B090 E4CA
-E4CB E4CB E9BDB7 E4CB
-E4CC E4CC E5AE89 E4CC
-E4CD E4CD E5B2B8 E4CD
-E4CE E4CE E68C89 E4CE
-E4CF E4CF E6998F E4CF
-E4D0 E4D0 E6A188 E4D0
-E4D1 E4D1 E79CBC E4D1
-E4D2 E4D2 E99B81 E4D2
-E4D3 E4D3 E99E8D E4D3
-E4D4 E4D4 E9A194 E4D4
-E4D5 E4D5 E9AE9F E4D5
-E4D6 E4D6 E696A1 E4D6
-E4D7 E4D7 E8AC81 E4D7
-E4D8 E4D8 E8BB8B E4D8
-E4D9 E4D9 E996BC E4D9
-E4DA E4DA E594B5 E4DA
-E4DB E4DB E5B2A9 E4DB
-E4DC E4DC E5B796 E4DC
-E4DD E4DD E5BAB5 E4DD
-E4DE E4DE E69A97 E4DE
-E4DF E4DF E7998C E4DF
-E4E0 E4E0 E88FB4 E4E0
-E4E1 E4E1 E99787 E4E1
-E4E2 E4E2 E5A393 E4E2
-E4E3 E4E3 E68ABC E4E3
-E4E4 E4E4 E78B8E E4E4
-E4E5 E4E5 E9B4A8 E4E5
-E4E6 E4E6 E4BBB0 E4E6
-E4E7 E4E7 E5A4AE E4E7
-E4E8 E4E8 E6808F E4E8
-E4E9 E4E9 E698BB E4E9
-E4EA E4EA E6AE83 E4EA
-E4EB E4EB E7A7A7 E4EB
-E4EC E4EC E9B4A6 E4EC
-E4ED E4ED E58E93 E4ED
-E4EE E4EE E59380 E4EE
-E4EF E4EF E59F83 E4EF
-E4F0 E4F0 E5B496 E4F0
-E4F1 E4F1 E6849B E4F1
-E4F2 E4F2 E69B96 E4F2
-E4F3 E4F3 E6B6AF E4F3
-E4F4 E4F4 E7A28D E4F4
-E4F5 E4F5 E889BE E4F5
-E4F6 E4F6 E99A98 E4F6
-E4F7 E4F7 E99D84 E4F7
-E4F8 E4F8 E58E84 E4F8
-E4F9 E4F9 E689BC E4F9
-E4FA E4FA E68E96 E4FA
-E4FB E4FB E6B6B2 E4FB
-E4FC E4FC E7B88A E4FC
-E4FD E4FD E8858B E4FD
-E4FE E4FE E9A18D E4FE
-E5A1 E5A1 E6ABBB E5A1
-E5A2 E5A2 E7BD8C E5A2
-E5A3 E5A3 E9B6AF E5A3
-E5A4 E5A4 E9B89A E5A4
-E5A5 E5A5 E4B99F E5A5
-E5A6 E5A6 E580BB E5A6
-E5A7 E5A7 E586B6 E5A7
-E5A8 E5A8 E5A49C E5A8
-E5A9 E5A9 E683B9 E5A9
-E5AA E5AA E68FB6 E5AA
-E5AB E5AB E6A4B0 E5AB
-E5AC E5AC E788BA E5AC
-E5AD E5AD E880B6 E5AD
-E5AE E5AE EFA5B4 E5AE
-E5AF E5AF E9878E E5AF
-E5B0 E5B0 E5BCB1 E5B0
-E5B1 E5B1 EFA5B5 E5B1
-E5B2 E5B2 EFA5B6 E5B2
-E5B3 E5B3 E7B484 E5B3
-E5B4 E5B4 E88BA5 E5B4
-E5B5 E5B5 E891AF E5B5
-E5B6 E5B6 E892BB E5B6
-E5B7 E5B7 E897A5 E5B7
-E5B8 E5B8 E8BA8D E5B8
-E5B9 E5B9 EFA5B7 E5B9
-E5BA E5BA E4BDAF E5BA
-E5BB E5BB EFA5B8 E5BB
-E5BC E5BC EFA5B9 E5BC
-E5BD E5BD E5A3A4 E5BD
-E5BE E5BE E5AD83 E5BE
-E5BF E5BF E68199 E5BF
-E5C0 E5C0 E68F9A E5C0
-E5C1 E5C1 E69498 E5C1
-E5C2 E5C2 E695AD E5C2
-E5C3 E5C3 E69A98 E5C3
-E5C4 E5C4 EFA5BA E5C4
-E5C5 E5C5 E6A58A E5C5
-E5C6 E5C6 E6A8A3 E5C6
-E5C7 E5C7 E6B48B E5C7
-E5C8 E5C8 E78081 E5C8
-E5C9 E5C9 E785AC E5C9
-E5CA E5CA E79792 E5CA
-E5CB E5CB E7988D E5CB
-E5CC E5CC E7A6B3 E5CC
-E5CD E5CD E7A9B0 E5CD
-E5CE E5CE EFA5BB E5CE
-E5CF E5CF E7BE8A E5CF
-E5D0 E5D0 EFA5BC E5D0
-E5D1 E5D1 E8A584 E5D1
-E5D2 E5D2 EFA5BD E5D2
-E5D3 E5D3 E8AE93 E5D3
-E5D4 E5D4 E98780 E5D4
-E5D5 E5D5 E999BD E5D5
-E5D6 E5D6 EFA5BE E5D6
-E5D7 E5D7 E9A48A E5D7
-E5D8 E5D8 E59C84 E5D8
-E5D9 E5D9 E5BEA1 E5D9
-E5DA E5DA E696BC E5DA
-E5DB E5DB E6BC81 E5DB
-E5DC E5DC E79880 E5DC
-E5DD E5DD E7A6A6 E5DD
-E5DE E5DE E8AA9E E5DE
-E5DF E5DF E9A6AD E5DF
-E5E0 E5E0 E9AD9A E5E0
-E5E1 E5E1 E9BDAC E5E1
-E5E2 E5E2 E58484 E5E2
-E5E3 E5E3 E686B6 E5E3
-E5E4 E5E4 E68A91 E5E4
-E5E5 E5E5 E6AA8D E5E5
-E5E6 E5E6 E88786 E5E6
-E5E7 E5E7 E58183 E5E7
-E5E8 E5E8 E5A0B0 E5E8
-E5E9 E5E9 E5BDA6 E5E9
-E5EA E5EA E78489 E5EA
-E5EB E5EB E8A880 E5EB
-E5EC E5EC E8ABBA E5EC
-E5ED E5ED E5ADBC E5ED
-E5EE E5EE E89896 E5EE
-E5EF E5EF E4BFBA E5EF
-E5F0 E5F0 E584BC E5F0
-E5F1 E5F1 E59AB4 E5F1
-E5F2 E5F2 E5A584 E5F2
-E5F3 E5F3 E68EA9 E5F3
-E5F4 E5F4 E6B7B9 E5F4
-E5F5 E5F5 E5B6AA E5F5
-E5F6 E5F6 E6A5AD E5F6
-E5F7 E5F7 E58686 E5F7
-E5F8 E5F8 E4BA88 E5F8
-E5F9 E5F9 E4BD99 E5F9
-E5FA E5FA EFA5BF E5FA
-E5FB E5FB EFA680 E5FB
-E5FC E5FC EFA681 E5FC
-E5FD E5FD E5A682 E5FD
-E5FE E5FE EFA682 E5FE
-E6A1 E6A1 EFA683 E6A1
-E6A2 E6A2 E6AD9F E6A2
-E6A3 E6A3 E6B19D E6A3
-E6A4 E6A4 EFA684 E6A4
-E6A5 E6A5 E792B5 E6A5
-E6A6 E6A6 E7A496 E6A6
-E6A7 E6A7 EFA685 E6A7
-E6A8 E6A8 E88887 E6A8
-E6A9 E6A9 E88985 E6A9
-E6AA E6AA E88CB9 E6AA
-E6AB E6AB E8BCBF E6AB
-E6AC E6AC E8BD9D E6AC
-E6AD E6AD EFA686 E6AD
-E6AE E6AE E9A498 E6AE
-E6AF E6AF EFA687 E6AF
-E6B0 E6B0 EFA688 E6B0
-E6B1 E6B1 EFA689 E6B1
-E6B2 E6B2 E4BAA6 E6B2
-E6B3 E6B3 EFA68A E6B3
-E6B4 E6B4 E59F9F E6B4
-E6B5 E6B5 E5BDB9 E6B5
-E6B6 E6B6 E69893 E6B6
-E6B7 E6B7 EFA68B E6B7
-E6B8 E6B8 EFA68C E6B8
-E6B9 E6B9 E796AB E6B9
-E6BA E6BA E7B9B9 E6BA
-E6BB E6BB E8ADAF E6BB
-E6BC E6BC EFA68D E6BC
-E6BD E6BD E98086 E6BD
-E6BE E6BE E9A99B E6BE
-E6BF E6BF E59AA5 E6BF
-E6C0 E6C0 E5A0A7 E6C0
-E6C1 E6C1 E5A7B8 E6C1
-E6C2 E6C2 E5A89F E6C2
-E6C3 E6C3 E5AEB4 E6C3
-E6C4 E6C4 EFA68E E6C4
-E6C5 E6C5 E5BBB6 E6C5
-E6C6 E6C6 EFA68F E6C6
-E6C7 E6C7 EFA690 E6C7
-E6C8 E6C8 E68D90 E6C8
-E6C9 E6C9 E68CBB E6C9
-E6CA E6CA EFA691 E6CA
-E6CB E6CB E6A4BD E6CB
-E6CC E6CC E6B287 E6CC
-E6CD E6CD E6B2BF E6CD
-E6CE E6CE E6B68E E6CE
-E6CF E6CF E6B693 E6CF
-E6D0 E6D0 E6B7B5 E6D0
-E6D1 E6D1 E6BC94 E6D1
-E6D2 E6D2 EFA692 E6D2
-E6D3 E6D3 E7839F E6D3
-E6D4 E6D4 E784B6 E6D4
-E6D5 E6D5 E78599 E6D5
-E6D6 E6D6 EFA693 E6D6
-E6D7 E6D7 E78783 E6D7
-E6D8 E6D8 E78795 E6D8
-E6D9 E6D9 EFA694 E6D9
-E6DA E6DA E7A18F E6DA
-E6DB E6DB E7A1AF E6DB
-E6DC E6DC EFA695 E6DC
-E6DD E6DD E7ADB5 E6DD
-E6DE E6DE E7B7A3 E6DE
-E6DF E6DF EFA696 E6DF
-E6E0 E6E0 E7B8AF E6E0
-E6E1 E6E1 EFA697 E6E1
-E6E2 E6E2 E8A18D E6E2
-E6E3 E6E3 E8BB9F E6E3
-E6E4 E6E4 EFA698 E6E4
-E6E5 E6E5 EFA699 E6E5
-E6E6 E6E6 EFA69A E6E6
-E6E7 E6E7 E9899B E6E7
-E6E8 E6E8 EFA69B E6E8
-E6E9 E6E9 E9B3B6 E6E9
-E6EA E6EA EFA69C E6EA
-E6EB E6EB EFA69D E6EB
-E6EC E6EC EFA69E E6EC
-E6ED E6ED E68285 E6ED
-E6EE E6EE E6B685 E6EE
-E6EF E6EF EFA69F E6EF
-E6F0 E6F0 E786B1 E6F0
-E6F1 E6F1 EFA6A0 E6F1
-E6F2 E6F2 EFA6A1 E6F2
-E6F3 E6F3 E996B1 E6F3
-E6F4 E6F4 E58EAD E6F4
-E6F5 E6F5 EFA6A2 E6F5
-E6F6 E6F6 EFA6A3 E6F6
-E6F7 E6F7 EFA6A4 E6F7
-E6F8 E6F8 E69F93 E6F8
-E6F9 E6F9 EFA6A5 E6F9
-E6FA E6FA E7828E E6FA
-E6FB E6FB E784B0 E6FB
-E6FC E6FC E790B0 E6FC
-E6FD E6FD E889B6 E6FD
-E6FE E6FE E88B92 E6FE
-E7A1 E7A1 EFA6A6 E7A1
-E7A2 E7A2 E996BB E7A2
-E7A3 E7A3 E9ABA5 E7A3
-E7A4 E7A4 E9B9BD E7A4
-E7A5 E7A5 E69B84 E7A5
-E7A6 E7A6 EFA6A7 E7A6
-E7A7 E7A7 E78781 E7A7
-E7A8 E7A8 E89189 E7A8
-E7A9 E7A9 EFA6A8 E7A9
-E7AA E7AA EFA6A9 E7AA
-E7AB E7AB E5A18B E7AB
-E7AC E7AC EFA6AA E7AC
-E7AD E7AD EFA6AB E7AD
-E7AE E7AE E5B6B8 E7AE
-E7AF E7AF E5BDB1 E7AF
-E7B0 E7B0 EFA6AC E7B0
-E7B1 E7B1 E698A0 E7B1
-E7B2 E7B2 E69A8E E7B2
-E7B3 E7B3 E6A5B9 E7B3
-E7B4 E7B4 E6A6AE E7B4
-E7B5 E7B5 E6B0B8 E7B5
-E7B6 E7B6 E6B3B3 E7B6
-E7B7 E7B7 E6B8B6 E7B7
-E7B8 E7B8 E6BD81 E7B8
-E7B9 E7B9 E6BF9A E7B9
-E7BA E7BA E7809B E7BA
-E7BB E7BB E780AF E7BB
-E7BC E7BC E78590 E7BC
-E7BD E7BD E7879F E7BD
-E7BE E7BE E78DB0 E7BE
-E7BF E7BF EFA6AD E7BF
-E7C0 E7C0 E7919B E7C0
-E7C1 E7C1 EFA6AE E7C1
-E7C2 E7C2 E79394 E7C2
-E7C3 E7C3 E79B88 E7C3
-E7C4 E7C4 E7A98E E7C4
-E7C5 E7C5 E7BA93 E7C5
-E7C6 E7C6 EFA6AF E7C6
-E7C7 E7C7 EFA6B0 E7C7
-E7C8 E7C8 E88BB1 E7C8
-E7C9 E7C9 E8A9A0 E7C9
-E7CA E7CA E8BF8E E7CA
-E7CB E7CB EFA6B1 E7CB
-E7CC E7CC E98D88 E7CC
-E7CD E7CD EFA6B2 E7CD
-E7CE E7CE E99C99 E7CE
-E7CF E7CF EFA6B3 E7CF
-E7D0 E7D0 EFA6B4 E7D0
-E7D1 E7D1 E4B982 E7D1
-E7D2 E7D2 E580AA E7D2
-E7D3 E7D3 EFA6B5 E7D3
-E7D4 E7D4 E58888 E7D4
-E7D5 E7D5 E58FA1 E7D5
-E7D6 E7D6 E69BB3 E7D6
-E7D7 E7D7 E6B1AD E7D7
-E7D8 E7D8 E6BF8A E7D8
-E7D9 E7D9 E78C8A E7D9
-E7DA E7DA E79DBF E7DA
-E7DB E7DB E7A9A2 E7DB
-E7DC E7DC E88AAE E7DC
-E7DD E7DD E8979D E7DD
-E7DE E7DE E89882 E7DE
-E7DF E7DF EFA6B6 E7DF
-E7E0 E7E0 E8A394 E7E0
-E7E1 E7E1 E8A9A3 E7E1
-E7E2 E7E2 E8ADBD E7E2
-E7E3 E7E3 E8B1AB E7E3
-E7E4 E7E4 EFA6B7 E7E4
-E7E5 E7E5 E98AB3 E7E5
-E7E6 E7E6 EFA6B8 E7E6
-E7E7 E7E7 E99C93 E7E7
-E7E8 E7E8 E9A090 E7E8
-E7E9 E7E9 E4BA94 E7E9
-E7EA E7EA E4BC8D E7EA
-E7EB E7EB E4BF89 E7EB
-E7EC E7EC E582B2 E7EC
-E7ED E7ED E58D88 E7ED
-E7EE E7EE E590BE E7EE
-E7EF E7EF E590B3 E7EF
-E7F0 E7F0 E5979A E7F0
-E7F1 E7F1 E5A1A2 E7F1
-E7F2 E7F2 E5A2BA E7F2
-E7F3 E7F3 E5A5A7 E7F3
-E7F4 E7F4 E5A89B E7F4
-E7F5 E7F5 E5AFA4 E7F5
-E7F6 E7F6 E6829F E7F6
-E7F7 E7F7 EFA6B9 E7F7
-E7F8 E7F8 E6878A E7F8
-E7F9 E7F9 E69596 E7F9
-E7FA E7FA E697BF E7FA
-E7FB E7FB E699A4 E7FB
-E7FC E7FC E6A2A7 E7FC
-E7FD E7FD E6B19A E7FD
-E7FE E7FE E6BEB3 E7FE
-E8A1 E8A1 E7838F E8A1
-E8A2 E8A2 E786AC E8A2
-E8A3 E8A3 E78D92 E8A3
-E8A4 E8A4 E7ADBD E8A4
-E8A5 E8A5 E89C88 E8A5
-E8A6 E8A6 E8AAA4 E8A6
-E8A7 E8A7 E9B0B2 E8A7
-E8A8 E8A8 E9BC87 E8A8
-E8A9 E8A9 E5B18B E8A9
-E8AA E8AA E6B283 E8AA
-E8AB E8AB E78D84 E8AB
-E8AC E8AC E78E89 E8AC
-E8AD E8AD E988BA E8AD
-E8AE E8AE E6BAAB E8AE
-E8AF E8AF E791A5 E8AF
-E8B0 E8B0 E7989F E8B0
-E8B1 E8B1 E7A9A9 E8B1
-E8B2 E8B2 E7B895 E8B2
-E8B3 E8B3 E8988A E8B3
-E8B4 E8B4 E58580 E8B4
-E8B5 E8B5 E5A385 E8B5
-E8B6 E8B6 E69381 E8B6
-E8B7 E8B7 E793AE E8B7
-E8B8 E8B8 E79495 E8B8
-E8B9 E8B9 E799B0 E8B9
-E8BA E8BA E7BF81 E8BA
-E8BB E8BB E98295 E8BB
-E8BC E8BC E99B8D E8BC
-E8BD E8BD E9A594 E8BD
-E8BE E8BE E6B8A6 E8BE
-E8BF E8BF E793A6 E8BF
-E8C0 E8C0 E7AAA9 E8C0
-E8C1 E8C1 E7AAAA E8C1
-E8C2 E8C2 E887A5 E8C2
-E8C3 E8C3 E89B99 E8C3
-E8C4 E8C4 E89DB8 E8C4
-E8C5 E8C5 E8A89B E8C5
-E8C6 E8C6 E5A989 E8C6
-E8C7 E8C7 E5AE8C E8C7
-E8C8 E8C8 E5AE9B E8C8
-E8C9 E8C9 E6A2A1 E8C9
-E8CA E8CA E6A480 E8CA
-E8CB E8CB E6B5A3 E8CB
-E8CC E8CC E78EA9 E8CC
-E8CD E8CD E79093 E8CD
-E8CE E8CE E790AC E8CE
-E8CF E8CF E7A297 E8CF
-E8D0 E8D0 E7B7A9 E8D0
-E8D1 E8D1 E7BFAB E8D1
-E8D2 E8D2 E88498 E8D2
-E8D3 E8D3 E88595 E8D3
-E8D4 E8D4 E88E9E E8D4
-E8D5 E8D5 E8B18C E8D5
-E8D6 E8D6 E998AE E8D6
-E8D7 E8D7 E9A091 E8D7
-E8D8 E8D8 E69BB0 E8D8
-E8D9 E8D9 E5BE80 E8D9
-E8DA E8DA E697BA E8DA
-E8DB E8DB E69E89 E8DB
-E8DC E8DC E6B1AA E8DC
-E8DD E8DD E78E8B E8DD
-E8DE E8DE E580AD E8DE
-E8DF E8DF E5A883 E8DF
-E8E0 E8E0 E6ADAA E8E0
-E8E1 E8E1 E79FAE E8E1
-E8E2 E8E2 E5A496 E8E2
-E8E3 E8E3 E5B5AC E8E3
-E8E4 E8E4 E5B78D E8E4
-E8E5 E8E5 E78CA5 E8E5
-E8E6 E8E6 E7958F E8E6
-E8E7 E8E7 EFA6BA E8E7
-E8E8 E8E8 EFA6BB E8E8
-E8E9 E8E9 E583A5 E8E9
-E8EA E8EA E587B9 E8EA
-E8EB E8EB E5A0AF E8EB
-E8EC E8EC E5A4AD E8EC
-E8ED E8ED E5A696 E8ED
-E8EE E8EE E5A79A E8EE
-E8EF E8EF E5AFA5 E8EF
-E8F0 E8F0 EFA6BC E8F0
-E8F1 E8F1 EFA6BD E8F1
-E8F2 E8F2 E5B6A2 E8F2
-E8F3 E8F3 E68B97 E8F3
-E8F4 E8F4 E69096 E8F4
-E8F5 E8F5 E69293 E8F5
-E8F6 E8F6 E693BE E8F6
-E8F7 E8F7 EFA6BE E8F7
-E8F8 E8F8 E69B9C E8F8
-E8F9 E8F9 EFA6BF E8F9
-E8FA E8FA E6A988 E8FA
-E8FB E8FB EFA780 E8FB
-E8FC E8FC E787BF E8FC
-E8FD E8FD E791A4 E8FD
-E8FE E8FE EFA781 E8FE
-E9A1 E9A1 E7AA88 E9A1
-E9A2 E9A2 E7AAAF E9A2
-E9A3 E9A3 E7B987 E9A3
-E9A4 E9A4 E7B99E E9A4
-E9A5 E9A5 E88080 E9A5
-E9A6 E9A6 E885B0 E9A6
-E9A7 E9A7 EFA782 E9A7
-E9A8 E9A8 E89FAF E9A8
-E9A9 E9A9 E8A681 E9A9
-E9AA E9AA E8ACA0 E9AA
-E9AB E9AB E98199 E9AB
-E9AC E9AC EFA783 E9AC
-E9AD E9AD E98280 E9AD
-E9AE E9AE E9A592 E9AE
-E9AF E9AF E685BE E9AF
-E9B0 E9B0 E6ACB2 E9B0
-E9B1 E9B1 E6B5B4 E9B1
-E9B2 E9B2 E7B89F E9B2
-E9B3 E9B3 E8A4A5 E9B3
-E9B4 E9B4 E8BEB1 E9B4
-E9B5 E9B5 E4BF91 E9B5
-E9B6 E9B6 E582AD E9B6
-E9B7 E9B7 E58697 E9B7
-E9B8 E9B8 E58B87 E9B8
-E9B9 E9B9 E59F87 E9B9
-E9BA E9BA E5A289 E9BA
-E9BB E9BB E5AEB9 E9BB
-E9BC E9BC E5BAB8 E9BC
-E9BD E9BD E68582 E9BD
-E9BE E9BE E6A695 E9BE
-E9BF E9BF E6B68C E9BF
-E9C0 E9C0 E6B9A7 E9C0
-E9C1 E9C1 E6BAB6 E9C1
-E9C2 E9C2 E78694 E9C2
-E9C3 E9C3 E791A2 E9C3
-E9C4 E9C4 E794A8 E9C4
-E9C5 E9C5 E794AC E9C5
-E9C6 E9C6 E881B3 E9C6
-E9C7 E9C7 E88CB8 E9C7
-E9C8 E9C8 E89389 E9C8
-E9C9 E9C9 E8B88A E9C9
-E9CA E9CA E98E94 E9CA
-E9CB E9CB E98F9E E9CB
-E9CC E9CC EFA784 E9CC
-E9CD E9CD E4BA8E E9CD
-E9CE E9CE E4BD91 E9CE
-E9CF E9CF E581B6 E9CF
-E9D0 E9D0 E584AA E9D0
-E9D1 E9D1 E58F88 E9D1
-E9D2 E9D2 E58F8B E9D2
-E9D3 E9D3 E58FB3 E9D3
-E9D4 E9D4 E5AE87 E9D4
-E9D5 E9D5 E5AF93 E9D5
-E9D6 E9D6 E5B0A4 E9D6
-E9D7 E9D7 E6849A E9D7
-E9D8 E9D8 E68682 E9D8
-E9D9 E9D9 E697B4 E9D9
-E9DA E9DA E7899B E9DA
-E9DB E9DB E78E97 E9DB
-E9DC E9DC E79180 E9DC
-E9DD E9DD E79B82 E9DD
-E9DE E9DE E7A590 E9DE
-E9DF E9DF E7A691 E9DF
-E9E0 E9E0 E7A6B9 E9E0
-E9E1 E9E1 E7B486 E9E1
-E9E2 E9E2 E7BEBD E9E2
-E9E3 E9E3 E88A8B E9E3
-E9E4 E9E4 E89795 E9E4
-E9E5 E9E5 E8999E E9E5
-E9E6 E9E6 E8BF82 E9E6
-E9E7 E9E7 E98187 E9E7
-E9E8 E9E8 E983B5 E9E8
-E9E9 E9E9 E987AA E9E9
-E9EA E9EA E99A85 E9EA
-E9EB E9EB E99BA8 E9EB
-E9EC E9EC E99BA9 E9EC
-E9ED E9ED E58B96 E9ED
-E9EE E9EE E5BDA7 E9EE
-E9EF E9EF E697AD E9EF
-E9F0 E9F0 E698B1 E9F0
-E9F1 E9F1 E6A0AF E9F1
-E9F2 E9F2 E7859C E9F2
-E9F3 E9F3 E7A8B6 E9F3
-E9F4 E9F4 E98381 E9F4
-E9F5 E9F5 E9A08A E9F5
-E9F6 E9F6 E4BA91 E9F6
-E9F7 E9F7 EFA785 E9F7
-E9F8 E9F8 E6A992 E9F8
-E9F9 E9F9 E6AE9E E9F9
-E9FA E9FA E6BE90 E9FA
-E9FB E9FB E78689 E9FB
-E9FC E9FC E88098 E9FC
-E9FD E9FD E88AB8 E9FD
-E9FE E9FE E89593 E9FE
-EAA1 EAA1 E9818B EAA1
-EAA2 EAA2 E99A95 EAA2
-EAA3 EAA3 E99BB2 EAA3
-EAA4 EAA4 E99FBB EAA4
-EAA5 EAA5 E8949A EAA5
-EAA6 EAA6 E9ACB1 EAA6
-EAA7 EAA7 E4BA90 EAA7
-EAA8 EAA8 E7868A EAA8
-EAA9 EAA9 E99B84 EAA9
-EAAA EAAA E58583 EAAA
-EAAB EAAB E58E9F EAAB
-EAAC EAAC E593A1 EAAC
-EAAD EAAD E59C93 EAAD
-EAAE EAAE E59C92 EAAE
-EAAF EAAF E59EA3 EAAF
-EAB0 EAB0 E5AA9B EAB0
-EAB1 EAB1 E5AB84 EAB1
-EAB2 EAB2 E5AF83 EAB2
-EAB3 EAB3 E680A8 EAB3
-EAB4 EAB4 E684BF EAB4
-EAB5 EAB5 E68FB4 EAB5
-EAB6 EAB6 E6B285 EAB6
-EAB7 EAB7 E6B4B9 EAB7
-EAB8 EAB8 E6B9B2 EAB8
-EAB9 EAB9 E6BA90 EAB9
-EABA EABA E788B0 EABA
-EABB EABB E78CBF EABB
-EABC EABC E79197 EABC
-EABD EABD E88B91 EABD
-EABE EABE E8A281 EABE
-EABF EABF E8BD85 EABF
-EAC0 EAC0 E981A0 EAC0
-EAC1 EAC1 EFA786 EAC1
-EAC2 EAC2 E999A2 EAC2
-EAC3 EAC3 E9A198 EAC3
-EAC4 EAC4 E9B49B EAC4
-EAC5 EAC5 E69C88 EAC5
-EAC6 EAC6 E8B68A EAC6
-EAC7 EAC7 E9899E EAC7
-EAC8 EAC8 E4BD8D EAC8
-EAC9 EAC9 E58189 EAC9
-EACA EACA E5839E EACA
-EACB EACB E58DB1 EACB
-EACC EACC E59C8D EACC
-EACD EACD E5A794 EACD
-EACE EACE E5A881 EACE
-EACF EACF E5B089 EACF
-EAD0 EAD0 E685B0 EAD0
-EAD1 EAD1 E69A90 EAD1
-EAD2 EAD2 E6B8AD EAD2
-EAD3 EAD3 E788B2 EAD3
-EAD4 EAD4 E7918B EAD4
-EAD5 EAD5 E7B7AF EAD5
-EAD6 EAD6 E88383 EAD6
-EAD7 EAD7 E8908E EAD7
-EAD8 EAD8 E891A6 EAD8
-EAD9 EAD9 E894BF EAD9
-EADA EADA E89D9F EADA
-EADB EADB E8A19B EADB
-EADC EADC E8A498 EADC
-EADD EADD E8AC82 EADD
-EADE EADE E98195 EADE
-EADF EADF E99F8B EADF
-EAE0 EAE0 E9AD8F EAE0
-EAE1 EAE1 E4B9B3 EAE1
-EAE2 EAE2 E4BE91 EAE2
-EAE3 EAE3 E58492 EAE3
-EAE4 EAE4 E585AA EAE4
-EAE5 EAE5 EFA787 EAE5
-EAE6 EAE6 E594AF EAE6
-EAE7 EAE7 E596A9 EAE7
-EAE8 EAE8 E5ADBA EAE8
-EAE9 EAE9 E5AEA5 EAE9
-EAEA EAEA E5B9BC EAEA
-EAEB EAEB E5B9BD EAEB
-EAEC EAEC E5BABE EAEC
-EAED EAED E682A0 EAED
-EAEE EAEE E6839F EAEE
-EAEF EAEF E68488 EAEF
-EAF0 EAF0 E68489 EAF0
-EAF1 EAF1 E68F84 EAF1
-EAF2 EAF2 E694B8 EAF2
-EAF3 EAF3 E69C89 EAF3
-EAF4 EAF4 EFA788 EAF4
-EAF5 EAF5 E69F94 EAF5
-EAF6 EAF6 E69F9A EAF6
-EAF7 EAF7 EFA789 EAF7
-EAF8 EAF8 E6A5A1 EAF8
-EAF9 EAF9 E6A5A2 EAF9
-EAFA EAFA E6B2B9 EAFA
-EAFB EAFB E6B4A7 EAFB
-EAFC EAFC EFA78A EAFC
-EAFD EAFD E6B8B8 EAFD
-EAFE EAFE EFA78B EAFE
-EBA1 EBA1 E6BFA1 EBA1
-EBA2 EBA2 E78CB6 EBA2
-EBA3 EBA3 E78CB7 EBA3
-EBA4 EBA4 EFA78C EBA4
-EBA5 EBA5 E7919C EBA5
-EBA6 EBA6 E794B1 EBA6
-EBA7 EBA7 EFA78D EBA7
-EBA8 EBA8 E79992 EBA8
-EBA9 EBA9 EFA78E EBA9
-EBAA EBAA EFA78F EBAA
-EBAB EBAB E7B6AD EBAB
-EBAC EBAC E887BE EBAC
-EBAD EBAD E890B8 EBAD
-EBAE EBAE E8A395 EBAE
-EBAF EBAF E8AA98 EBAF
-EBB0 EBB0 E8AB9B EBB0
-EBB1 EBB1 E8ABAD EBB1
-EBB2 EBB2 E8B8B0 EBB2
-EBB3 EBB3 E8B982 EBB3
-EBB4 EBB4 E9818A EBB4
-EBB5 EBB5 E980BE EBB5
-EBB6 EBB6 E981BA EBB6
-EBB7 EBB7 E98589 EBB7
-EBB8 EBB8 E98789 EBB8
-EBB9 EBB9 E98DAE EBB9
-EBBA EBBA EFA790 EBBA
-EBBB EBBB EFA791 EBBB
-EBBC EBBC E5A089 EBBC
-EBBD EBBD EFA792 EBBD
-EBBE EBBE E6AF93 EBBE
-EBBF EBBF E88289 EBBF
-EBC0 EBC0 E882B2 EBC0
-EBC1 EBC1 EFA793 EBC1
-EBC2 EBC2 EFA794 EBC2
-EBC3 EBC3 E58581 EBC3
-EBC4 EBC4 E5A5AB EBC4
-EBC5 EBC5 E5B0B9 EBC5
-EBC6 EBC6 EFA795 EBC6
-EBC7 EBC7 EFA796 EBC7
-EBC8 EBC8 E6BDA4 EBC8
-EBC9 EBC9 E78EA7 EBC9
-EBCA EBCA E883A4 EBCA
-EBCB EBCB E8B487 EBCB
-EBCC EBCC EFA797 EBCC
-EBCD EBCD E98897 EBCD
-EBCE EBCE E9968F EBCE
-EBCF EBCF EFA798 EBCF
-EBD0 EBD0 EFA799 EBD0
-EBD1 EBD1 EFA79A EBD1
-EBD2 EBD2 EFA79B EBD2
-EBD3 EBD3 E881BF EBD3
-EBD4 EBD4 E6888E EBD4
-EBD5 EBD5 E7809C EBD5
-EBD6 EBD6 E7B5A8 EBD6
-EBD7 EBD7 E89E8D EBD7
-EBD8 EBD8 EFA79C EBD8
-EBD9 EBD9 E59EA0 EBD9
-EBDA EBDA E681A9 EBDA
-EBDB EBDB E68587 EBDB
-EBDC EBDC E6AEB7 EBDC
-EBDD EBDD E8AABE EBDD
-EBDE EBDE E98A80 EBDE
-EBDF EBDF E99AB1 EBDF
-EBE0 EBE0 E4B999 EBE0
-EBE1 EBE1 E5909F EBE1
-EBE2 EBE2 E6B7AB EBE2
-EBE3 EBE3 E894AD EBE3
-EBE4 EBE4 E999B0 EBE4
-EBE5 EBE5 E99FB3 EBE5
-EBE6 EBE6 E9A3AE EBE6
-EBE7 EBE7 E68F96 EBE7
-EBE8 EBE8 E6B3A3 EBE8
-EBE9 EBE9 E98291 EBE9
-EBEA EBEA E5879D EBEA
-EBEB EBEB E68789 EBEB
-EBEC EBEC E886BA EBEC
-EBED EBED E9B7B9 EBED
-EBEE EBEE E4BE9D EBEE
-EBEF EBEF E5809A EBEF
-EBF0 EBF0 E58480 EBF0
-EBF1 EBF1 E5AE9C EBF1
-EBF2 EBF2 E6848F EBF2
-EBF3 EBF3 E687BF EBF3
-EBF4 EBF4 E693AC EBF4
-EBF5 EBF5 E6A485 EBF5
-EBF6 EBF6 E6AF85 EBF6
-EBF7 EBF7 E79691 EBF7
-EBF8 EBF8 E79FA3 EBF8
-EBF9 EBF9 E7BEA9 EBF9
-EBFA EBFA E889A4 EBFA
-EBFB EBFB E8968F EBFB
-EBFC EBFC E89FBB EBFC
-EBFD EBFD E8A1A3 EBFD
-EBFE EBFE E8AABC EBFE
-ECA1 ECA1 E8ADB0 ECA1
-ECA2 ECA2 E986AB ECA2
-ECA3 ECA3 E4BA8C ECA3
-ECA4 ECA4 E4BBA5 ECA4
-ECA5 ECA5 E4BC8A ECA5
-ECA6 ECA6 EFA79D ECA6
-ECA7 ECA7 EFA79E ECA7
-ECA8 ECA8 E5A4B7 ECA8
-ECA9 ECA9 E5A7A8 ECA9
-ECAA ECAA EFA79F ECAA
-ECAB ECAB E5B7B2 ECAB
-ECAC ECAC E5BC9B ECAC
-ECAD ECAD E5BD9B ECAD
-ECAE ECAE E680A1 ECAE
-ECAF ECAF EFA7A0 ECAF
-ECB0 ECB0 EFA7A1 ECB0
-ECB1 ECB1 EFA7A2 ECB1
-ECB2 ECB2 EFA7A3 ECB2
-ECB3 ECB3 E788BE ECB3
-ECB4 ECB4 E78FA5 ECB4
-ECB5 ECB5 EFA7A4 ECB5
-ECB6 ECB6 E795B0 ECB6
-ECB7 ECB7 E7978D ECB7
-ECB8 ECB8 EFA7A5 ECB8
-ECB9 ECB9 E7A7BB ECB9
-ECBA ECBA EFA7A6 ECBA
-ECBB ECBB E8808C ECBB
-ECBC ECBC E880B3 ECBC
-ECBD ECBD E88284 ECBD
-ECBE ECBE E88BA1 ECBE
-ECBF ECBF E88D91 ECBF
-ECC0 ECC0 EFA7A7 ECC0
-ECC1 ECC1 EFA7A8 ECC1
-ECC2 ECC2 E8B2BD ECC2
-ECC3 ECC3 E8B2B3 ECC3
-ECC4 ECC4 E98287 ECC4
-ECC5 ECC5 EFA7A9 ECC5
-ECC6 ECC6 EFA7AA ECC6
-ECC7 ECC7 E9A3B4 ECC7
-ECC8 ECC8 E9A48C ECC8
-ECC9 ECC9 EFA7AB ECC9
-ECCA ECCA EFA7AC ECCA
-ECCB ECCB E780B7 ECCB
-ECCC ECCC E79B8A ECCC
-ECCD ECCD E7BF8A ECCD
-ECCE ECCE E7BF8C ECCE
-ECCF ECCF E7BFBC ECCF
-ECD0 ECD0 E8AC9A ECD0
-ECD1 ECD1 E4BABA ECD1
-ECD2 ECD2 E4BB81 ECD2
-ECD3 ECD3 E58883 ECD3
-ECD4 ECD4 E58DB0 ECD4
-ECD5 ECD5 EFA7AD ECD5
-ECD6 ECD6 E592BD ECD6
-ECD7 ECD7 E59BA0 ECD7
-ECD8 ECD8 E5A7BB ECD8
-ECD9 ECD9 E5AF85 ECD9
-ECDA ECDA E5BC95 ECDA
-ECDB ECDB E5BF8D ECDB
-ECDC ECDC E6B9AE ECDC
-ECDD ECDD EFA7AE ECDD
-ECDE ECDE EFA7AF ECDE
-ECDF ECDF E7B5AA ECDF
-ECE0 ECE0 E88CB5 ECE0
-ECE1 ECE1 EFA7B0 ECE1
-ECE2 ECE2 E89A93 ECE2
-ECE3 ECE3 E8AA8D ECE3
-ECE4 ECE4 EFA7B1 ECE4
-ECE5 ECE5 E99DAD ECE5
-ECE6 ECE6 E99DB7 ECE6
-ECE7 ECE7 EFA7B2 ECE7
-ECE8 ECE8 EFA7B3 ECE8
-ECE9 ECE9 E4B880 ECE9
-ECEA ECEA E4BD9A ECEA
-ECEB ECEB E4BDBE ECEB
-ECEC ECEC E5A3B9 ECEC
-ECED ECED E697A5 ECED
-ECEE ECEE E6BAA2 ECEE
-ECEF ECEF E980B8 ECEF
-ECF0 ECF0 E98EB0 ECF0
-ECF1 ECF1 E9A6B9 ECF1
-ECF2 ECF2 E4BBBB ECF2
-ECF3 ECF3 E5A3AC ECF3
-ECF4 ECF4 E5A68A ECF4
-ECF5 ECF5 E5A799 ECF5
-ECF6 ECF6 E68181 ECF6
-ECF7 ECF7 EFA7B4 ECF7
-ECF8 ECF8 EFA7B5 ECF8
-ECF9 ECF9 E7A894 ECF9
-ECFA ECFA EFA7B6 ECFA
-ECFB ECFB E88D8F ECFB
-ECFC ECFC E8B383 ECFC
-ECFD ECFD E585A5 ECFD
-ECFE ECFE E58D84 ECFE
-EDA1 EDA1 EFA7B7 EDA1
-EDA2 EDA2 EFA7B8 EDA2
-EDA3 EDA3 EFA7B9 EDA3
-EDA4 EDA4 E4BB8D EDA4
-EDA5 EDA5 E589A9 EDA5
-EDA6 EDA6 E5AD95 EDA6
-EDA7 EDA7 E88ABF EDA7
-EDA8 EDA8 E4BB94 EDA8
-EDA9 EDA9 E588BA EDA9
-EDAA EDAA E592A8 EDAA
-EDAB EDAB E5A789 EDAB
-EDAC EDAC E5A7BF EDAC
-EDAD EDAD E5AD90 EDAD
-EDAE EDAE E5AD97 EDAE
-EDAF EDAF E5AD9C EDAF
-EDB0 EDB0 E681A3 EDB0
-EDB1 EDB1 E68588 EDB1
-EDB2 EDB2 E6BB8B EDB2
-EDB3 EDB3 E78299 EDB3
-EDB4 EDB4 E785AE EDB4
-EDB5 EDB5 E78E86 EDB5
-EDB6 EDB6 E793B7 EDB6
-EDB7 EDB7 E796B5 EDB7
-EDB8 EDB8 E7A381 EDB8
-EDB9 EDB9 E7B4AB EDB9
-EDBA EDBA E88085 EDBA
-EDBB EDBB E887AA EDBB
-EDBC EDBC E88CA8 EDBC
-EDBD EDBD E89497 EDBD
-EDBE EDBE E89789 EDBE
-EDBF EDBF E8ABAE EDBF
-EDC0 EDC0 E8B387 EDC0
-EDC1 EDC1 E99B8C EDC1
-EDC2 EDC2 E4BD9C EDC2
-EDC3 EDC3 E58BBA EDC3
-EDC4 EDC4 E59ABC EDC4
-EDC5 EDC5 E696AB EDC5
-EDC6 EDC6 E698A8 EDC6
-EDC7 EDC7 E781BC EDC7
-EDC8 EDC8 E782B8 EDC8
-EDC9 EDC9 E788B5 EDC9
-EDCA EDCA E7B6BD EDCA
-EDCB EDCB E88A8D EDCB
-EDCC EDCC E9858C EDCC
-EDCD EDCD E99B80 EDCD
-EDCE EDCE E9B5B2 EDCE
-EDCF EDCF E5ADB1 EDCF
-EDD0 EDD0 E6A3A7 EDD0
-EDD1 EDD1 E6AE98 EDD1
-EDD2 EDD2 E6BDBA EDD2
-EDD3 EDD3 E79B9E EDD3
-EDD4 EDD4 E5B291 EDD4
-EDD5 EDD5 E69AAB EDD5
-EDD6 EDD6 E6BD9B EDD6
-EDD7 EDD7 E7AEB4 EDD7
-EDD8 EDD8 E7B0AA EDD8
-EDD9 EDD9 E8A0B6 EDD9
-EDDA EDDA E99B9C EDDA
-EDDB EDDB E4B888 EDDB
-EDDC EDDC E4BB97 EDDC
-EDDD EDDD E58CA0 EDDD
-EDDE EDDE E5A0B4 EDDE
-EDDF EDDF E5A2BB EDDF
-EDE0 EDE0 E5A3AF EDE0
-EDE1 EDE1 E5A5AC EDE1
-EDE2 EDE2 E5B087 EDE2
-EDE3 EDE3 E5B8B3 EDE3
-EDE4 EDE4 E5BA84 EDE4
-EDE5 EDE5 E5BCB5 EDE5
-EDE6 EDE6 E68E8C EDE6
-EDE7 EDE7 E69AB2 EDE7
-EDE8 EDE8 E69D96 EDE8
-EDE9 EDE9 E6A89F EDE9
-EDEA EDEA E6AAA3 EDEA
-EDEB EDEB E6AC8C EDEB
-EDEC EDEC E6BCBF EDEC
-EDED EDED E78986 EDED
-EDEE EDEE EFA7BA EDEE
-EDEF EDEF E78D90 EDEF
-EDF0 EDF0 E7928B EDF0
-EDF1 EDF1 E7ABA0 EDF1
-EDF2 EDF2 E7B2A7 EDF2
-EDF3 EDF3 E885B8 EDF3
-EDF4 EDF4 E8879F EDF4
-EDF5 EDF5 E887A7 EDF5
-EDF6 EDF6 E88E8A EDF6
-EDF7 EDF7 E891AC EDF7
-EDF8 EDF8 E894A3 EDF8
-EDF9 EDF9 E89694 EDF9
-EDFA EDFA E8978F EDFA
-EDFB EDFB E8A39D EDFB
-EDFC EDFC E8B493 EDFC
-EDFD EDFD E986AC EDFD
-EDFE EDFE E995B7 EDFE
-EEA1 EEA1 E99A9C EEA1
-EEA2 EEA2 E5868D EEA2
-EEA3 EEA3 E59389 EEA3
-EEA4 EEA4 E59CA8 EEA4
-EEA5 EEA5 E5AEB0 EEA5
-EEA6 EEA6 E6898D EEA6
-EEA7 EEA7 E69D90 EEA7
-EEA8 EEA8 E6A0BD EEA8
-EEA9 EEA9 E6A293 EEA9
-EEAA EEAA E6B8BD EEAA
-EEAB EEAB E6BB93 EEAB
-EEAC EEAC E781BD EEAC
-EEAD EEAD E7B8A1 EEAD
-EEAE EEAE E8A381 EEAE
-EEAF EEAF E8B2A1 EEAF
-EEB0 EEB0 E8BC89 EEB0
-EEB1 EEB1 E9BD8B EEB1
-EEB2 EEB2 E9BD8E EEB2
-EEB3 EEB3 E788AD EEB3
-EEB4 EEB4 E7AE8F EEB4
-EEB5 EEB5 E8AB8D EEB5
-EEB6 EEB6 E98C9A EEB6
-EEB7 EEB7 E4BD87 EEB7
-EEB8 EEB8 E4BD8E EEB8
-EEB9 EEB9 E584B2 EEB9
-EEBA EEBA E59280 EEBA
-EEBB EEBB E5A790 EEBB
-EEBC EEBC E5BA95 EEBC
-EEBD EEBD E68AB5 EEBD
-EEBE EEBE E69DB5 EEBE
-EEBF EEBF E6A5AE EEBF
-EEC0 EEC0 E6A897 EEC0
-EEC1 EEC1 E6B2AE EEC1
-EEC2 EEC2 E6B89A EEC2
-EEC3 EEC3 E78B99 EEC3
-EEC4 EEC4 E78CAA EEC4
-EEC5 EEC5 E796BD EEC5
-EEC6 EEC6 E7AEB8 EEC6
-EEC7 EEC7 E7B4B5 EEC7
-EEC8 EEC8 E88BA7 EEC8
-EEC9 EEC9 E88FB9 EEC9
-EECA EECA E89197 EECA
-EECB EECB E897B7 EECB
-EECC EECC E8A99B EECC
-EECD EECD E8B2AF EECD
-EECE EECE E8BA87 EECE
-EECF EECF E98099 EECF
-EED0 EED0 E982B8 EED0
-EED1 EED1 E99B8E EED1
-EED2 EED2 E9BD9F EED2
-EED3 EED3 E58BA3 EED3
-EED4 EED4 E5908A EED4
-EED5 EED5 E5ABA1 EED5
-EED6 EED6 E5AF82 EED6
-EED7 EED7 E69198 EED7
-EED8 EED8 E695B5 EED8
-EED9 EED9 E6BBB4 EED9
-EEDA EEDA E78B84 EEDA
-EEDB EEDB EFA7BB EEDB
-EEDC EEDC E79A84 EEDC
-EEDD EEDD E7A98D EEDD
-EEDE EEDE E7AC9B EEDE
-EEDF EEDF E7B18D EEDF
-EEE0 EEE0 E7B8BE EEE0
-EEE1 EEE1 E7BF9F EEE1
-EEE2 EEE2 E88DBB EEE2
-EEE3 EEE3 E8ACAB EEE3
-EEE4 EEE4 E8B38A EEE4
-EEE5 EEE5 E8B5A4 EEE5
-EEE6 EEE6 E8B7A1 EEE6
-EEE7 EEE7 E8B99F EEE7
-EEE8 EEE8 E8BFAA EEE8
-EEE9 EEE9 E8BFB9 EEE9
-EEEA EEEA E981A9 EEEA
-EEEB EEEB E98F91 EEEB
-EEEC EEEC E4BD83 EEEC
-EEED EEED E4BDBA EEED
-EEEE EEEE E582B3 EEEE
-EEEF EEEF E585A8 EEEF
-EEF0 EEF0 E585B8 EEF0
-EEF1 EEF1 E5898D EEF1
-EEF2 EEF2 E589AA EEF2
-EEF3 EEF3 E5A1A1 EEF3
-EEF4 EEF4 E5A1BC EEF4
-EEF5 EEF5 E5A5A0 EEF5
-EEF6 EEF6 E5B088 EEF6
-EEF7 EEF7 E5B195 EEF7
-EEF8 EEF8 E5BB9B EEF8
-EEF9 EEF9 E6829B EEF9
-EEFA EEFA E688B0 EEFA
-EEFB EEFB E6A093 EEFB
-EEFC EEFC E6AEBF EEFC
-EEFD EEFD E6B088 EEFD
-EEFE EEFE E6BEB1 EEFE
-EFA1 EFA1 E7858E EFA1
-EFA2 EFA2 E790A0 EFA2
-EFA3 EFA3 E794B0 EFA3
-EFA4 EFA4 E794B8 EFA4
-EFA5 EFA5 E79591 EFA5
-EFA6 EFA6 E799B2 EFA6
-EFA7 EFA7 E7AD8C EFA7
-EFA8 EFA8 E7AE8B EFA8
-EFA9 EFA9 E7AEAD EFA9
-EFAA EFAA E7AF86 EFAA
-EFAB EFAB E7BA8F EFAB
-EFAC EFAC E8A9AE EFAC
-EFAD EFAD E8BCBE EFAD
-EFAE EFAE E8BD89 EFAE
-EFAF EFAF E988BF EFAF
-EFB0 EFB0 E98A93 EFB0
-EFB1 EFB1 E98CA2 EFB1
-EFB2 EFB2 E990AB EFB2
-EFB3 EFB3 E99BBB EFB3
-EFB4 EFB4 E9A19A EFB4
-EFB5 EFB5 E9A1AB EFB5
-EFB6 EFB6 E9A49E EFB6
-EFB7 EFB7 E58887 EFB7
-EFB8 EFB8 E688AA EFB8
-EFB9 EFB9 E68A98 EFB9
-EFBA EFBA E6B599 EFBA
-EFBB EFBB E799A4 EFBB
-EFBC EFBC E7AB8A EFBC
-EFBD EFBD E7AF80 EFBD
-EFBE EFBE E7B5B6 EFBE
-EFBF EFBF E58DA0 EFBF
-EFC0 EFC0 E5B2BE EFC0
-EFC1 EFC1 E5BA97 EFC1
-EFC2 EFC2 E6BCB8 EFC2
-EFC3 EFC3 E782B9 EFC3
-EFC4 EFC4 E7B298 EFC4
-EFC5 EFC5 E99C91 EFC5
-EFC6 EFC6 E9AE8E EFC6
-EFC7 EFC7 E9BB9E EFC7
-EFC8 EFC8 E68EA5 EFC8
-EFC9 EFC9 E691BA EFC9
-EFCA EFCA E89DB6 EFCA
-EFCB EFCB E4B881 EFCB
-EFCC EFCC E4BA95 EFCC
-EFCD EFCD E4BAAD EFCD
-EFCE EFCE E5819C EFCE
-EFCF EFCF E581B5 EFCF
-EFD0 EFD0 E59188 EFD0
-EFD1 EFD1 E5A783 EFD1
-EFD2 EFD2 E5AE9A EFD2
-EFD3 EFD3 E5B980 EFD3
-EFD4 EFD4 E5BAAD EFD4
-EFD5 EFD5 E5BBB7 EFD5
-EFD6 EFD6 E5BE81 EFD6
-EFD7 EFD7 E68385 EFD7
-EFD8 EFD8 E68CBA EFD8
-EFD9 EFD9 E694BF EFD9
-EFDA EFDA E695B4 EFDA
-EFDB EFDB E6978C EFDB
-EFDC EFDC E699B6 EFDC
-EFDD EFDD E699B8 EFDD
-EFDE EFDE E69FBE EFDE
-EFDF EFDF E6A5A8 EFDF
-EFE0 EFE0 E6AA89 EFE0
-EFE1 EFE1 E6ADA3 EFE1
-EFE2 EFE2 E6B180 EFE2
-EFE3 EFE3 E6B780 EFE3
-EFE4 EFE4 E6B7A8 EFE4
-EFE5 EFE5 E6B89F EFE5
-EFE6 EFE6 E6B99E EFE6
-EFE7 EFE7 E7809E EFE7
-EFE8 EFE8 E782A1 EFE8
-EFE9 EFE9 E78E8E EFE9
-EFEA EFEA E78FBD EFEA
-EFEB EFEB E794BA EFEB
-EFEC EFEC E79D9B EFEC
-EFED EFED E7A287 EFED
-EFEE EFEE E7A68E EFEE
-EFEF EFEF E7A88B EFEF
-EFF0 EFF0 E7A9BD EFF0
-EFF1 EFF1 E7B2BE EFF1
-EFF2 EFF2 E7B68E EFF2
-EFF3 EFF3 E88987 EFF3
-EFF4 EFF4 E8A882 EFF4
-EFF5 EFF5 E8ABAA EFF5
-EFF6 EFF6 E8B29E EFF6
-EFF7 EFF7 E984AD EFF7
-EFF8 EFF8 E9858A EFF8
-EFF9 EFF9 E98798 EFF9
-EFFA EFFA E989A6 EFFA
-EFFB EFFB E98B8C EFFB
-EFFC EFFC E98CA0 EFFC
-EFFD EFFD E99C86 EFFD
-EFFE EFFE E99D96 EFFE
-F0A1 F0A1 E99D9C F0A1
-F0A2 F0A2 E9A082 F0A2
-F0A3 F0A3 E9BC8E F0A3
-F0A4 F0A4 E588B6 F0A4
-F0A5 F0A5 E58A91 F0A5
-F0A6 F0A6 E595BC F0A6
-F0A7 F0A7 E5A0A4 F0A7
-F0A8 F0A8 E5B89D F0A8
-F0A9 F0A9 E5BC9F F0A9
-F0AA F0AA E6828C F0AA
-F0AB F0AB E68F90 F0AB
-F0AC F0AC E6A2AF F0AC
-F0AD F0AD E6BF9F F0AD
-F0AE F0AE E7A5AD F0AE
-F0AF F0AF E7ACAC F0AF
-F0B0 F0B0 E8878D F0B0
-F0B1 F0B1 E896BA F0B1
-F0B2 F0B2 E8A3BD F0B2
-F0B3 F0B3 E8ABB8 F0B3
-F0B4 F0B4 E8B984 F0B4
-F0B5 F0B5 E9868D F0B5
-F0B6 F0B6 E999A4 F0B6
-F0B7 F0B7 E99A9B F0B7
-F0B8 F0B8 E99CBD F0B8
-F0B9 F0B9 E9A18C F0B9
-F0BA F0BA E9BD8A F0BA
-F0BB F0BB E4BF8E F0BB
-F0BC F0BC E58586 F0BC
-F0BD F0BD E5878B F0BD
-F0BE F0BE E58AA9 F0BE
-F0BF F0BF E598B2 F0BF
-F0C0 F0C0 E5BC94 F0C0
-F0C1 F0C1 E5BDAB F0C1
-F0C2 F0C2 E68EAA F0C2
-F0C3 F0C3 E6938D F0C3
-F0C4 F0C4 E697A9 F0C4
-F0C5 F0C5 E69981 F0C5
-F0C6 F0C6 E69BBA F0C6
-F0C7 F0C7 E69BB9 F0C7
-F0C8 F0C8 E69C9D F0C8
-F0C9 F0C9 E6A29D F0C9
-F0CA F0CA E6A397 F0CA
-F0CB F0CB E6A7BD F0CB
-F0CC F0CC E6BC95 F0CC
-F0CD F0CD E6BDAE F0CD
-F0CE F0CE E785A7 F0CE
-F0CF F0CF E787A5 F0CF
-F0D0 F0D0 E788AA F0D0
-F0D1 F0D1 E792AA F0D1
-F0D2 F0D2 E79CBA F0D2
-F0D3 F0D3 E7A596 F0D3
-F0D4 F0D4 E7A59A F0D4
-F0D5 F0D5 E7A79F F0D5
-F0D6 F0D6 E7A8A0 F0D6
-F0D7 F0D7 E7AA95 F0D7
-F0D8 F0D8 E7B297 F0D8
-F0D9 F0D9 E7B39F F0D9
-F0DA F0DA E7B584 F0DA
-F0DB F0DB E7B9B0 F0DB
-F0DC F0DC E88287 F0DC
-F0DD F0DD E897BB F0DD
-F0DE F0DE E89AA4 F0DE
-F0DF F0DF E8A994 F0DF
-F0E0 F0E0 E8AABF F0E0
-F0E1 F0E1 E8B699 F0E1
-F0E2 F0E2 E8BA81 F0E2
-F0E3 F0E3 E980A0 F0E3
-F0E4 F0E4 E981AD F0E4
-F0E5 F0E5 E987A3 F0E5
-F0E6 F0E6 E998BB F0E6
-F0E7 F0E7 E99B95 F0E7
-F0E8 F0E8 E9B3A5 F0E8
-F0E9 F0E9 E6978F F0E9
-F0EA F0EA E7B087 F0EA
-F0EB F0EB E8B6B3 F0EB
-F0EC F0EC E98F83 F0EC
-F0ED F0ED E5AD98 F0ED
-F0EE F0EE E5B08A F0EE
-F0EF F0EF E58D92 F0EF
-F0F0 F0F0 E68B99 F0F0
-F0F1 F0F1 E78C9D F0F1
-F0F2 F0F2 E580A7 F0F2
-F0F3 F0F3 E5AE97 F0F3
-F0F4 F0F4 E5BE9E F0F4
-F0F5 F0F5 E682B0 F0F5
-F0F6 F0F6 E685AB F0F6
-F0F7 F0F7 E6A395 F0F7
-F0F8 F0F8 E6B799 F0F8
-F0F9 F0F9 E790AE F0F9
-F0FA F0FA E7A8AE F0FA
-F0FB F0FB E7B582 F0FB
-F0FC F0FC E7B69C F0FC
-F0FD F0FD E7B8B1 F0FD
-F0FE F0FE E885AB F0FE
-F1A1 F1A1 E8B8AA F1A1
-F1A2 F1A2 E8B8B5 F1A2
-F1A3 F1A3 E98DBE F1A3
-F1A4 F1A4 E99098 F1A4
-F1A5 F1A5 E4BD90 F1A5
-F1A6 F1A6 E59D90 F1A6
-F1A7 F1A7 E5B7A6 F1A7
-F1A8 F1A8 E5BAA7 F1A8
-F1A9 F1A9 E68CAB F1A9
-F1AA F1AA E7BDAA F1AA
-F1AB F1AB E4B8BB F1AB
-F1AC F1AC E4BD8F F1AC
-F1AD F1AD E4BE8F F1AD
-F1AE F1AE E5819A F1AE
-F1AF F1AF E5A79D F1AF
-F1B0 F1B0 E88384 F1B0
-F1B1 F1B1 E591AA F1B1
-F1B2 F1B2 E591A8 F1B2
-F1B3 F1B3 E597BE F1B3
-F1B4 F1B4 E5A58F F1B4
-F1B5 F1B5 E5AE99 F1B5
-F1B6 F1B6 E5B79E F1B6
-F1B7 F1B7 E5BB9A F1B7
-F1B8 F1B8 E6999D F1B8
-F1B9 F1B9 E69CB1 F1B9
-F1BA F1BA E69FB1 F1BA
-F1BB F1BB E6A0AA F1BB
-F1BC F1BC E6B3A8 F1BC
-F1BD F1BD E6B4B2 F1BD
-F1BE F1BE E6B98A F1BE
-F1BF F1BF E6BE8D F1BF
-F1C0 F1C0 E782B7 F1C0
-F1C1 F1C1 E78FA0 F1C1
-F1C2 F1C2 E79687 F1C2
-F1C3 F1C3 E7B18C F1C3
-F1C4 F1C4 E7B482 F1C4
-F1C5 F1C5 E7B4AC F1C5
-F1C6 F1C6 E7B6A2 F1C6
-F1C7 F1C7 E8889F F1C7
-F1C8 F1C8 E89B9B F1C8
-F1C9 F1C9 E8A8BB F1C9
-F1CA F1CA E8AA85 F1CA
-F1CB F1CB E8B5B0 F1CB
-F1CC F1CC E8BA8A F1CC
-F1CD F1CD E8BCB3 F1CD
-F1CE F1CE E980B1 F1CE
-F1CF F1CF E9858E F1CF
-F1D0 F1D0 E98592 F1D0
-F1D1 F1D1 E99184 F1D1
-F1D2 F1D2 E9A790 F1D2
-F1D3 F1D3 E7ABB9 F1D3
-F1D4 F1D4 E7B2A5 F1D4
-F1D5 F1D5 E4BF8A F1D5
-F1D6 F1D6 E58481 F1D6
-F1D7 F1D7 E58786 F1D7
-F1D8 F1D8 E59F88 F1D8
-F1D9 F1D9 E5AFAF F1D9
-F1DA F1DA E5B3BB F1DA
-F1DB F1DB E69999 F1DB
-F1DC F1DC E6A8BD F1DC
-F1DD F1DD E6B59A F1DD
-F1DE F1DE E6BA96 F1DE
-F1DF F1DF E6BFAC F1DF
-F1E0 F1E0 E7848C F1E0
-F1E1 F1E1 E795AF F1E1
-F1E2 F1E2 E7ABA3 F1E2
-F1E3 F1E3 E8A0A2 F1E3
-F1E4 F1E4 E980A1 F1E4
-F1E5 F1E5 E981B5 F1E5
-F1E6 F1E6 E99B8B F1E6
-F1E7 F1E7 E9A7BF F1E7
-F1E8 F1E8 E88C81 F1E8
-F1E9 F1E9 E4B8AD F1E9
-F1EA F1EA E4BBB2 F1EA
-F1EB F1EB E8A186 F1EB
-F1EC F1EC E9878D F1EC
-F1ED F1ED E58DBD F1ED
-F1EE F1EE E6AB9B F1EE
-F1EF F1EF E6A5AB F1EF
-F1F0 F1F0 E6B181 F1F0
-F1F1 F1F1 E891BA F1F1
-F1F2 F1F2 E5A29E F1F2
-F1F3 F1F3 E6868E F1F3
-F1F4 F1F4 E69BBE F1F4
-F1F5 F1F5 E68BAF F1F5
-F1F6 F1F6 E7839D F1F6
-F1F7 F1F7 E79491 F1F7
-F1F8 F1F8 E79787 F1F8
-F1F9 F1F9 E7B992 F1F9
-F1FA F1FA E892B8 F1FA
-F1FB F1FB E8AD89 F1FB
-F1FC F1FC E8B488 F1FC
-F1FD F1FD E4B98B F1FD
-F1FE F1FE E58FAA F1FE
-F2A1 F2A1 E592AB F2A1
-F2A2 F2A2 E59CB0 F2A2
-F2A3 F2A3 E59D80 F2A3
-F2A4 F2A4 E5BF97 F2A4
-F2A5 F2A5 E68C81 F2A5
-F2A6 F2A6 E68C87 F2A6
-F2A7 F2A7 E691AF F2A7
-F2A8 F2A8 E694AF F2A8
-F2A9 F2A9 E697A8 F2A9
-F2AA F2AA E699BA F2AA
-F2AB F2AB E69E9D F2AB
-F2AC F2AC E69EB3 F2AC
-F2AD F2AD E6ADA2 F2AD
-F2AE F2AE E6B1A0 F2AE
-F2AF F2AF E6B29A F2AF
-F2B0 F2B0 E6BCAC F2B0
-F2B1 F2B1 E79FA5 F2B1
-F2B2 F2B2 E7A0A5 F2B2
-F2B3 F2B3 E7A589 F2B3
-F2B4 F2B4 E7A597 F2B4
-F2B5 F2B5 E7B499 F2B5
-F2B6 F2B6 E882A2 F2B6
-F2B7 F2B7 E88482 F2B7
-F2B8 F2B8 E887B3 F2B8
-F2B9 F2B9 E88A9D F2B9
-F2BA F2BA E88AB7 F2BA
-F2BB F2BB E89C98 F2BB
-F2BC F2BC E8AA8C F2BC
-F2BD F2BD EFA7BC F2BD
-F2BE F2BE E8B484 F2BE
-F2BF F2BF E8B6BE F2BF
-F2C0 F2C0 E981B2 F2C0
-F2C1 F2C1 E79BB4 F2C1
-F2C2 F2C2 E7A899 F2C2
-F2C3 F2C3 E7A8B7 F2C3
-F2C4 F2C4 E7B994 F2C4
-F2C5 F2C5 E881B7 F2C5
-F2C6 F2C6 E59487 F2C6
-F2C7 F2C7 E59794 F2C7
-F2C8 F2C8 E5A1B5 F2C8
-F2C9 F2C9 E68CAF F2C9
-F2CA F2CA E690A2 F2CA
-F2CB F2CB E69989 F2CB
-F2CC F2CC E6998B F2CC
-F2CD F2CD E6A1AD F2CD
-F2CE F2CE E6A69B F2CE
-F2CF F2CF E6AE84 F2CF
-F2D0 F2D0 E6B4A5 F2D0
-F2D1 F2D1 E6BAB1 F2D1
-F2D2 F2D2 E78F8D F2D2
-F2D3 F2D3 E791A8 F2D3
-F2D4 F2D4 E792A1 F2D4
-F2D5 F2D5 E7959B F2D5
-F2D6 F2D6 E796B9 F2D6
-F2D7 F2D7 E79BA1 F2D7
-F2D8 F2D8 E79C9E F2D8
-F2D9 F2D9 E79E8B F2D9
-F2DA F2DA E7A7A6 F2DA
-F2DB F2DB E7B889 F2DB
-F2DC F2DC E7B89D F2DC
-F2DD F2DD E887BB F2DD
-F2DE F2DE E894AF F2DE
-F2DF F2DF E8A297 F2DF
-F2E0 F2E0 E8A8BA F2E0
-F2E1 F2E1 E8B391 F2E1
-F2E2 F2E2 E8BBAB F2E2
-F2E3 F2E3 E8BEB0 F2E3
-F2E4 F2E4 E980B2 F2E4
-F2E5 F2E5 E98EAD F2E5
-F2E6 F2E6 E999A3 F2E6
-F2E7 F2E7 E999B3 F2E7
-F2E8 F2E8 E99C87 F2E8
-F2E9 F2E9 E4BE84 F2E9
-F2EA F2EA E58FB1 F2EA
-F2EB F2EB E5A7AA F2EB
-F2EC F2EC E5AB89 F2EC
-F2ED F2ED E5B899 F2ED
-F2EE F2EE E6A18E F2EE
-F2EF F2EF E79386 F2EF
-F2F0 F2F0 E796BE F2F0
-F2F1 F2F1 E7A7A9 F2F1
-F2F2 F2F2 E7AA92 F2F2
-F2F3 F2F3 E886A3 F2F3
-F2F4 F2F4 E89BAD F2F4
-F2F5 F2F5 E8B3AA F2F5
-F2F6 F2F6 E8B78C F2F6
-F2F7 F2F7 E8BFAD F2F7
-F2F8 F2F8 E6969F F2F8
-F2F9 F2F9 E69C95 F2F9
-F2FA F2FA EFA7BD F2FA
-F2FB F2FB E59FB7 F2FB
-F2FC F2FC E6BD97 F2FC
-F2FD F2FD E7B79D F2FD
-F2FE F2FE E8BCAF F2FE
-F3A1 F3A1 E98FB6 F3A1
-F3A2 F3A2 E99B86 F3A2
-F3A3 F3A3 E5BEB5 F3A3
-F3A4 F3A4 E687B2 F3A4
-F3A5 F3A5 E6BE84 F3A5
-F3A6 F3A6 E4B894 F3A6
-F3A7 F3A7 E4BE98 F3A7
-F3A8 F3A8 E5809F F3A8
-F3A9 F3A9 E58F89 F3A9
-F3AA F3AA E5979F F3AA
-F3AB F3AB E5B5AF F3AB
-F3AC F3AC E5B7AE F3AC
-F3AD F3AD E6ACA1 F3AD
-F3AE F3AE E6ADA4 F3AE
-F3AF F3AF E7A38B F3AF
-F3B0 F3B0 E7AE9A F3B0
-F3B1 F3B1 EFA7BE F3B1
-F3B2 F3B2 E8B989 F3B2
-F3B3 F3B3 E8BB8A F3B3
-F3B4 F3B4 E981AE F3B4
-F3B5 F3B5 E68D89 F3B5
-F3B6 F3B6 E690BE F3B6
-F3B7 F3B7 E79D80 F3B7
-F3B8 F3B8 E7AA84 F3B8
-F3B9 F3B9 E98CAF F3B9
-F3BA F3BA E991BF F3BA
-F3BB F3BB E9BDAA F3BB
-F3BC F3BC E692B0 F3BC
-F3BD F3BD E6BEAF F3BD
-F3BE F3BE E787A6 F3BE
-F3BF F3BF E792A8 F3BF
-F3C0 F3C0 E7939A F3C0
-F3C1 F3C1 E7AB84 F3C1
-F3C2 F3C2 E7B092 F3C2
-F3C3 F3C3 E7BA82 F3C3
-F3C4 F3C4 E7B2B2 F3C4
-F3C5 F3C5 E7BA98 F3C5
-F3C6 F3C6 E8AE9A F3C6
-F3C7 F3C7 E8B48A F3C7
-F3C8 F3C8 E991BD F3C8
-F3C9 F3C9 E9A490 F3C9
-F3CA F3CA E9A58C F3CA
-F3CB F3CB E588B9 F3CB
-F3CC F3CC E5AF9F F3CC
-F3CD F3CD E693A6 F3CD
-F3CE F3CE E69CAD F3CE
-F3CF F3CF E7B4AE F3CF
-F3D0 F3D0 E583AD F3D0
-F3D1 F3D1 E58F83 F3D1
-F3D2 F3D2 E5A1B9 F3D2
-F3D3 F3D3 E68598 F3D3
-F3D4 F3D4 E68599 F3D4
-F3D5 F3D5 E687BA F3D5
-F3D6 F3D6 E696AC F3D6
-F3D7 F3D7 E7AB99 F3D7
-F3D8 F3D8 E8AE92 F3D8
-F3D9 F3D9 E8AE96 F3D9
-F3DA F3DA E58089 F3DA
-F3DB F3DB E580A1 F3DB
-F3DC F3DC E589B5 F3DC
-F3DD F3DD E594B1 F3DD
-F3DE F3DE E5A8BC F3DE
-F3DF F3DF E5BBA0 F3DF
-F3E0 F3E0 E5BDB0 F3E0
-F3E1 F3E1 E684B4 F3E1
-F3E2 F3E2 E6959E F3E2
-F3E3 F3E3 E6988C F3E3
-F3E4 F3E4 E698B6 F3E4
-F3E5 F3E5 E69AA2 F3E5
-F3E6 F3E6 E6A78D F3E6
-F3E7 F3E7 E6BB84 F3E7
-F3E8 F3E8 E6BCB2 F3E8
-F3E9 F3E9 E78C96 F3E9
-F3EA F3EA E798A1 F3EA
-F3EB F3EB E7AA93 F3EB
-F3EC F3EC E884B9 F3EC
-F3ED F3ED E88999 F3ED
-F3EE F3EE E88F96 F3EE
-F3EF F3EF E892BC F3EF
-F3F0 F3F0 E582B5 F3F0
-F3F1 F3F1 E59FB0 F3F1
-F3F2 F3F2 E5AF80 F3F2
-F3F3 F3F3 E5AFA8 F3F3
-F3F4 F3F4 E5BDA9 F3F4
-F3F5 F3F5 E68EA1 F3F5
-F3F6 F3F6 E7A0A6 F3F6
-F3F7 F3F7 E7B6B5 F3F7
-F3F8 F3F8 E88F9C F3F8
-F3F9 F3F9 E894A1 F3F9
-F3FA F3FA E98787 F3FA
-F3FB F3FB E987B5 F3FB
-F3FC F3FC E5868A F3FC
-F3FD F3FD E69FB5 F3FD
-F3FE F3FE E7AD96 F3FE
-F4A1 F4A1 E8B2AC F4A1
-F4A2 F4A2 E58784 F4A2
-F4A3 F4A3 E5A6BB F4A3
-F4A4 F4A4 E682BD F4A4
-F4A5 F4A5 E89995 F4A5
-F4A6 F4A6 E5809C F4A6
-F4A7 F4A7 EFA7BF F4A7
-F4A8 F4A8 E58994 F4A8
-F4A9 F4A9 E5B0BA F4A9
-F4AA F4AA E685BD F4AA
-F4AB F4AB E6889A F4AB
-F4AC F4AC E68B93 F4AC
-F4AD F4AD E693B2 F4AD
-F4AE F4AE E696A5 F4AE
-F4AF F4AF E6BB8C F4AF
-F4B0 F4B0 E798A0 F4B0
-F4B1 F4B1 E8848A F4B1
-F4B2 F4B2 E8B9A0 F4B2
-F4B3 F4B3 E9999F F4B3
-F4B4 F4B4 E99ABB F4B4
-F4B5 F4B5 E4BB9F F4B5
-F4B6 F4B6 E58D83 F4B6
-F4B7 F4B7 E59698 F4B7
-F4B8 F4B8 E5A4A9 F4B8
-F4B9 F4B9 E5B79D F4B9
-F4BA F4BA E69385 F4BA
-F4BB F4BB E6B389 F4BB
-F4BC F4BC E6B7BA F4BC
-F4BD F4BD E78E94 F4BD
-F4BE F4BE E7A9BF F4BE
-F4BF F4BF E8889B F4BF
-F4C0 F4C0 E896A6 F4C0
-F4C1 F4C1 E8B3A4 F4C1
-F4C2 F4C2 E8B890 F4C2
-F4C3 F4C3 E981B7 F4C3
-F4C4 F4C4 E987A7 F4C4
-F4C5 F4C5 E997A1 F4C5
-F4C6 F4C6 E998A1 F4C6
-F4C7 F4C7 E99F86 F4C7
-F4C8 F4C8 E587B8 F4C8
-F4C9 F4C9 E593B2 F4C9
-F4CA F4CA E59686 F4CA
-F4CB F4CB E5BEB9 F4CB
-F4CC F4CC E692A4 F4CC
-F4CD F4CD E6BE88 F4CD
-F4CE F4CE E7B6B4 F4CE
-F4CF F4CF E8BC9F F4CF
-F4D0 F4D0 E8BD8D F4D0
-F4D1 F4D1 E990B5 F4D1
-F4D2 F4D2 E58389 F4D2
-F4D3 F4D3 E5B096 F4D3
-F4D4 F4D4 E6B2BE F4D4
-F4D5 F4D5 E6B7BB F4D5
-F4D6 F4D6 E7949B F4D6
-F4D7 F4D7 E79EBB F4D7
-F4D8 F4D8 E7B0BD F4D8
-F4D9 F4D9 E7B1A4 F4D9
-F4DA F4DA E8A9B9 F4DA
-F4DB F4DB E8AB82 F4DB
-F4DC F4DC E5A09E F4DC
-F4DD F4DD E5A6BE F4DD
-F4DE F4DE E5B896 F4DE
-F4DF F4DF E68DB7 F4DF
-F4E0 F4E0 E78992 F4E0
-F4E1 F4E1 E7968A F4E1
-F4E2 F4E2 E79DAB F4E2
-F4E3 F4E3 E8AB9C F4E3
-F4E4 F4E4 E8B2BC F4E4
-F4E5 F4E5 E8BC92 F4E5
-F4E6 F4E6 E5BBB3 F4E6
-F4E7 F4E7 E699B4 F4E7
-F4E8 F4E8 E6B7B8 F4E8
-F4E9 F4E9 E881BD F4E9
-F4EA F4EA E88F81 F4EA
-F4EB F4EB E8AB8B F4EB
-F4EC F4EC E99D91 F4EC
-F4ED F4ED E9AF96 F4ED
-F4EE F4EE EFA880 F4EE
-F4EF F4EF E58983 F4EF
-F4F0 F4F0 E69BBF F4F0
-F4F1 F4F1 E6B695 F4F1
-F4F2 F4F2 E6BBAF F4F2
-F4F3 F4F3 E7B7A0 F4F3
-F4F4 F4F4 E8ABA6 F4F4
-F4F5 F4F5 E980AE F4F5
-F4F6 F4F6 E9819E F4F6
-F4F7 F4F7 E9AB94 F4F7
-F4F8 F4F8 E5889D F4F8
-F4F9 F4F9 E589BF F4F9
-F4FA F4FA E593A8 F4FA
-F4FB F4FB E68694 F4FB
-F4FC F4FC E68A84 F4FC
-F4FD F4FD E68B9B F4FD
-F4FE F4FE E6A2A2 F4FE
-F5A1 F5A1 E6A492 F5A1
-F5A2 F5A2 E6A59A F5A2
-F5A3 F5A3 E6A8B5 F5A3
-F5A4 F5A4 E78292 F5A4
-F5A5 F5A5 E784A6 F5A5
-F5A6 F5A6 E7A19D F5A6
-F5A7 F5A7 E7A481 F5A7
-F5A8 F5A8 E7A48E F5A8
-F5A9 F5A9 E7A792 F5A9
-F5AA F5AA E7A88D F5AA
-F5AB F5AB E88296 F5AB
-F5AC F5AC E889B8 F5AC
-F5AD F5AD E88B95 F5AD
-F5AE F5AE E88D89 F5AE
-F5AF F5AF E89589 F5AF
-F5B0 F5B0 E8B282 F5B0
-F5B1 F5B1 E8B685 F5B1
-F5B2 F5B2 E985A2 F5B2
-F5B3 F5B3 E9868B F5B3
-F5B4 F5B4 E986AE F5B4
-F5B5 F5B5 E4BF83 F5B5
-F5B6 F5B6 E59B91 F5B6
-F5B7 F5B7 E787AD F5B7
-F5B8 F5B8 E79F97 F5B8
-F5B9 F5B9 E89C80 F5B9
-F5BA F5BA E8A7B8 F5BA
-F5BB F5BB E5AFB8 F5BB
-F5BC F5BC E5BF96 F5BC
-F5BD F5BD E69D91 F5BD
-F5BE F5BE E982A8 F5BE
-F5BF F5BF E58FA2 F5BF
-F5C0 F5C0 E5A19A F5C0
-F5C1 F5C1 E5AFB5 F5C1
-F5C2 F5C2 E682A4 F5C2
-F5C3 F5C3 E68681 F5C3
-F5C4 F5C4 E691A0 F5C4
-F5C5 F5C5 E7B8BD F5C5
-F5C6 F5C6 E881B0 F5C6
-F5C7 F5C7 E894A5 F5C7
-F5C8 F5C8 E98A83 F5C8
-F5C9 F5C9 E692AE F5C9
-F5CA F5CA E582AC F5CA
-F5CB F5CB E5B494 F5CB
-F5CC F5CC E69C80 F5CC
-F5CD F5CD E5A29C F5CD
-F5CE F5CE E68ABD F5CE
-F5CF F5CF E68EA8 F5CF
-F5D0 F5D0 E6A48E F5D0
-F5D1 F5D1 E6A5B8 F5D1
-F5D2 F5D2 E6A89E F5D2
-F5D3 F5D3 E6B9AB F5D3
-F5D4 F5D4 E79ABA F5D4
-F5D5 F5D5 E7A78B F5D5
-F5D6 F5D6 E88ABB F5D6
-F5D7 F5D7 E890A9 F5D7
-F5D8 F5D8 E8AB8F F5D8
-F5D9 F5D9 E8B6A8 F5D9
-F5DA F5DA E8BFBD F5DA
-F5DB F5DB E98492 F5DB
-F5DC F5DC E9858B F5DC
-F5DD F5DD E9869C F5DD
-F5DE F5DE E98C90 F5DE
-F5DF F5DF E98C98 F5DF
-F5E0 F5E0 E98E9A F5E0
-F5E1 F5E1 E99B9B F5E1
-F5E2 F5E2 E9A8B6 F5E2
-F5E3 F5E3 E9B08D F5E3
-F5E4 F5E4 E4B891 F5E4
-F5E5 F5E5 E7959C F5E5
-F5E6 F5E6 E7A59D F5E6
-F5E7 F5E7 E7ABBA F5E7
-F5E8 F5E8 E7AD91 F5E8
-F5E9 F5E9 E7AF89 F5E9
-F5EA F5EA E7B8AE F5EA
-F5EB F5EB E89384 F5EB
-F5EC F5EC E8B999 F5EC
-F5ED F5ED E8B9B4 F5ED
-F5EE F5EE E8BBB8 F5EE
-F5EF F5EF E98090 F5EF
-F5F0 F5F0 E698A5 F5F0
-F5F1 F5F1 E6A4BF F5F1
-F5F2 F5F2 E79183 F5F2
-F5F3 F5F3 E587BA F5F3
-F5F4 F5F4 E69CAE F5F4
-F5F5 F5F5 E9BB9C F5F5
-F5F6 F5F6 E58585 F5F6
-F5F7 F5F7 E5BFA0 F5F7
-F5F8 F5F8 E6B296 F5F8
-F5F9 F5F9 E89FB2 F5F9
-F5FA F5FA E8A19D F5FA
-F5FB F5FB E8A1B7 F5FB
-F5FC F5FC E682B4 F5FC
-F5FD F5FD E886B5 F5FD
-F5FE F5FE E89083 F5FE
-F6A1 F6A1 E8B485 F6A1
-F6A2 F6A2 E58F96 F6A2
-F6A3 F6A3 E590B9 F6A3
-F6A4 F6A4 E598B4 F6A4
-F6A5 F6A5 E5A8B6 F6A5
-F6A6 F6A6 E5B0B1 F6A6
-F6A7 F6A7 E7828A F6A7
-F6A8 F6A8 E7BFA0 F6A8
-F6A9 F6A9 E8819A F6A9
-F6AA F6AA E88486 F6AA
-F6AB F6AB E887AD F6AB
-F6AC F6AC E8B6A3 F6AC
-F6AD F6AD E98689 F6AD
-F6AE F6AE E9A99F F6AE
-F6AF F6AF E9B7B2 F6AF
-F6B0 F6B0 E581B4 F6B0
-F6B1 F6B1 E4BB84 F6B1
-F6B2 F6B2 E58EA0 F6B2
-F6B3 F6B3 E683BB F6B3
-F6B4 F6B4 E6B8AC F6B4
-F6B5 F6B5 E5B1A4 F6B5
-F6B6 F6B6 E4BE88 F6B6
-F6B7 F6B7 E580A4 F6B7
-F6B8 F6B8 E597A4 F6B8
-F6B9 F6B9 E5B399 F6B9
-F6BA F6BA E5B99F F6BA
-F6BB F6BB E681A5 F6BB
-F6BC F6BC E6A294 F6BC
-F6BD F6BD E6B2BB F6BD
-F6BE F6BE E6B784 F6BE
-F6BF F6BF E786BE F6BF
-F6C0 F6C0 E79794 F6C0
-F6C1 F6C1 E797B4 F6C1
-F6C2 F6C2 E799A1 F6C2
-F6C3 F6C3 E7A89A F6C3
-F6C4 F6C4 E7A989 F6C4
-F6C5 F6C5 E7B787 F6C5
-F6C6 F6C6 E7B7BB F6C6
-F6C7 F6C7 E7BDAE F6C7
-F6C8 F6C8 E887B4 F6C8
-F6C9 F6C9 E89AA9 F6C9
-F6CA F6CA E8BC9C F6CA
-F6CB F6CB E99B89 F6CB
-F6CC F6CC E9A6B3 F6CC
-F6CD F6CD E9BD92 F6CD
-F6CE F6CE E58987 F6CE
-F6CF F6CF E58B85 F6CF
-F6D0 F6D0 E9A3AD F6D0
-F6D1 F6D1 E8A6AA F6D1
-F6D2 F6D2 E4B883 F6D2
-F6D3 F6D3 E69F92 F6D3
-F6D4 F6D4 E6BC86 F6D4
-F6D5 F6D5 E4BEB5 F6D5
-F6D6 F6D6 E5AFA2 F6D6
-F6D7 F6D7 E69E95 F6D7
-F6D8 F6D8 E6B288 F6D8
-F6D9 F6D9 E6B5B8 F6D9
-F6DA F6DA E7909B F6DA
-F6DB F6DB E7A0A7 F6DB
-F6DC F6DC E9879D F6DC
-F6DD F6DD E98DBC F6DD
-F6DE F6DE E89F84 F6DE
-F6DF F6DF E7A7A4 F6DF
-F6E0 F6E0 E7A8B1 F6E0
-F6E1 F6E1 E5BFAB F6E1
-F6E2 F6E2 E4BB96 F6E2
-F6E3 F6E3 E592A4 F6E3
-F6E4 F6E4 E594BE F6E4
-F6E5 F6E5 E5A2AE F6E5
-F6E6 F6E6 E5A6A5 F6E6
-F6E7 F6E7 E683B0 F6E7
-F6E8 F6E8 E68993 F6E8
-F6E9 F6E9 E68B96 F6E9
-F6EA F6EA E69CB6 F6EA
-F6EB F6EB E6A595 F6EB
-F6EC F6EC E888B5 F6EC
-F6ED F6ED E99980 F6ED
-F6EE F6EE E9A6B1 F6EE
-F6EF F6EF E9A79D F6EF
-F6F0 F6F0 E580AC F6F0
-F6F1 F6F1 E58D93 F6F1
-F6F2 F6F2 E59584 F6F2
-F6F3 F6F3 E59DBC F6F3
-F6F4 F6F4 EFA881 F6F4
-F6F5 F6F5 E68998 F6F5
-F6F6 F6F6 EFA882 F6F6
-F6F7 F6F7 E693A2 F6F7
-F6F8 F6F8 E699AB F6F8
-F6F9 F6F9 E69F9D F6F9
-F6FA F6FA E6BF81 F6FA
-F6FB F6FB E6BFAF F6FB
-F6FC F6FC E790A2 F6FC
-F6FD F6FD E790B8 F6FD
-F6FE F6FE E8A897 F6FE
-F7A1 F7A1 E990B8 F7A1
-F7A2 F7A2 E59191 F7A2
-F7A3 F7A3 E59886 F7A3
-F7A4 F7A4 E59DA6 F7A4
-F7A5 F7A5 E5BD88 F7A5
-F7A6 F7A6 E6869A F7A6
-F7A7 F7A7 E6AD8E F7A7
-F7A8 F7A8 E78198 F7A8
-F7A9 F7A9 E782AD F7A9
-F7AA F7AA E7B6BB F7AA
-F7AB F7AB E8AA95 F7AB
-F7AC F7AC E5A5AA F7AC
-F7AD F7AD E884AB F7AD
-F7AE F7AE E68EA2 F7AE
-F7AF F7AF E79C88 F7AF
-F7B0 F7B0 E880BD F7B0
-F7B1 F7B1 E8B2AA F7B1
-F7B2 F7B2 E5A194 F7B2
-F7B3 F7B3 E690AD F7B3
-F7B4 F7B4 E6A6BB F7B4
-F7B5 F7B5 E5AE95 F7B5
-F7B6 F7B6 E5B891 F7B6
-F7B7 F7B7 E6B9AF F7B7
-F7B8 F7B8 EFA883 F7B8
-F7B9 F7B9 E895A9 F7B9
-F7BA F7BA E5858C F7BA
-F7BB F7BB E58FB0 F7BB
-F7BC F7BC E5A4AA F7BC
-F7BD F7BD E680A0 F7BD
-F7BE F7BE E6858B F7BE
-F7BF F7BF E6AE86 F7BF
-F7C0 F7C0 E6B1B0 F7C0
-F7C1 F7C1 E6B3B0 F7C1
-F7C2 F7C2 E7AC9E F7C2
-F7C3 F7C3 E8838E F7C3
-F7C4 F7C4 E88B94 F7C4
-F7C5 F7C5 E8B786 F7C5
-F7C6 F7C6 E982B0 F7C6
-F7C7 F7C7 E9A2B1 F7C7
-F7C8 F7C8 EFA884 F7C8
-F7C9 F7C9 E69387 F7C9
-F7CA F7CA E6BEA4 F7CA
-F7CB F7CB E69291 F7CB
-F7CC F7CC E69484 F7CC
-F7CD F7CD E5858E F7CD
-F7CE F7CE E59090 F7CE
-F7CF F7CF E59C9F F7CF
-F7D0 F7D0 E8A88E F7D0
-F7D1 F7D1 E6859F F7D1
-F7D2 F7D2 E6A1B6 F7D2
-F7D3 F7D3 EFA885 F7D3
-F7D4 F7D4 E7979B F7D4
-F7D5 F7D5 E7AD92 F7D5
-F7D6 F7D6 E7B5B1 F7D6
-F7D7 F7D7 E9809A F7D7
-F7D8 F7D8 E5A086 F7D8
-F7D9 F7D9 E6A78C F7D9
-F7DA F7DA E885BF F7DA
-F7DB F7DB E8A4AA F7DB
-F7DC F7DC E98080 F7DC
-F7DD F7DD E9A0B9 F7DD
-F7DE F7DE E581B8 F7DE
-F7DF F7DF E5A597 F7DF
-F7E0 F7E0 E5A6AC F7E0
-F7E1 F7E1 E68A95 F7E1
-F7E2 F7E2 E9808F F7E2
-F7E3 F7E3 E9ACAA F7E3
-F7E4 F7E4 E6859D F7E4
-F7E5 F7E5 E789B9 F7E5
-F7E6 F7E6 E99796 F7E6
-F7E7 F7E7 E59DA1 F7E7
-F7E8 F7E8 E5A986 F7E8
-F7E9 F7E9 E5B7B4 F7E9
-F7EA F7EA E68A8A F7EA
-F7EB F7EB E692AD F7EB
-F7EC F7EC E693BA F7EC
-F7ED F7ED E69DB7 F7ED
-F7EE F7EE E6B3A2 F7EE
-F7EF F7EF E6B4BE F7EF
-F7F0 F7F0 E788AC F7F0
-F7F1 F7F1 E790B6 F7F1
-F7F2 F7F2 E7A0B4 F7F2
-F7F3 F7F3 E7BDB7 F7F3
-F7F4 F7F4 E88AAD F7F4
-F7F5 F7F5 E8B79B F7F5
-F7F6 F7F6 E9A097 F7F6
-F7F7 F7F7 E588A4 F7F7
-F7F8 F7F8 E59D82 F7F8
-F7F9 F7F9 E69DBF F7F9
-F7FA F7FA E78988 F7FA
-F7FB F7FB E793A3 F7FB
-F7FC F7FC E8B2A9 F7FC
-F7FD F7FD E8BEA6 F7FD
-F7FE F7FE E98891 F7FE
-F8A1 F8A1 E998AA F8A1
-F8A2 F8A2 E585AB F8A2
-F8A3 F8A3 E58FAD F8A3
-F8A4 F8A4 E68D8C F8A4
-F8A5 F8A5 E4BDA9 F8A5
-F8A6 F8A6 E59484 F8A6
-F8A7 F8A7 E68296 F8A7
-F8A8 F8A8 E69597 F8A8
-F8A9 F8A9 E6B29B F8A9
-F8AA F8AA E6B5BF F8AA
-F8AB F8AB E7898C F8AB
-F8AC F8AC E78BBD F8AC
-F8AD F8AD E7A897 F8AD
-F8AE F8AE E8A687 F8AE
-F8AF F8AF E8B29D F8AF
-F8B0 F8B0 E5BDAD F8B0
-F8B1 F8B1 E6BE8E F8B1
-F8B2 F8B2 E783B9 F8B2
-F8B3 F8B3 E886A8 F8B3
-F8B4 F8B4 E6848E F8B4
-F8B5 F8B5 E4BEBF F8B5
-F8B6 F8B6 E5818F F8B6
-F8B7 F8B7 E68981 F8B7
-F8B8 F8B8 E78987 F8B8
-F8B9 F8B9 E7AF87 F8B9
-F8BA F8BA E7B7A8 F8BA
-F8BB F8BB E7BFA9 F8BB
-F8BC F8BC E9818D F8BC
-F8BD F8BD E99EAD F8BD
-F8BE F8BE E9A899 F8BE
-F8BF F8BF E8B2B6 F8BF
-F8C0 F8C0 E59DAA F8C0
-F8C1 F8C1 E5B9B3 F8C1
-F8C2 F8C2 E69EB0 F8C2
-F8C3 F8C3 E8908D F8C3
-F8C4 F8C4 E8A995 F8C4
-F8C5 F8C5 E590A0 F8C5
-F8C6 F8C6 E5AC96 F8C6
-F8C7 F8C7 E5B9A3 F8C7
-F8C8 F8C8 E5BBA2 F8C8
-F8C9 F8C9 E5BC8A F8C9
-F8CA F8CA E69683 F8CA
-F8CB F8CB E882BA F8CB
-F8CC F8CC E894BD F8CC
-F8CD F8CD E99689 F8CD
-F8CE F8CE E9999B F8CE
-F8CF F8CF E4BD88 F8CF
-F8D0 F8D0 E58C85 F8D0
-F8D1 F8D1 E58C8D F8D1
-F8D2 F8D2 E58C8F F8D2
-F8D3 F8D3 E59286 F8D3
-F8D4 F8D4 E593BA F8D4
-F8D5 F8D5 E59C83 F8D5
-F8D6 F8D6 E5B883 F8D6
-F8D7 F8D7 E68096 F8D7
-F8D8 F8D8 E68A9B F8D8
-F8D9 F8D9 E68AB1 F8D9
-F8DA F8DA E68D95 F8DA
-F8DB F8DB EFA886 F8DB
-F8DC F8DC E6B3A1 F8DC
-F8DD F8DD E6B5A6 F8DD
-F8DE F8DE E796B1 F8DE
-F8DF F8DF E7A0B2 F8DF
-F8E0 F8E0 E8839E F8E0
-F8E1 F8E1 E884AF F8E1
-F8E2 F8E2 E88B9E F8E2
-F8E3 F8E3 E891A1 F8E3
-F8E4 F8E4 E892B2 F8E4
-F8E5 F8E5 E8A28D F8E5
-F8E6 F8E6 E8A492 F8E6
-F8E7 F8E7 E9808B F8E7
-F8E8 F8E8 E98BAA F8E8
-F8E9 F8E9 E9A3BD F8E9
-F8EA F8EA E9AE91 F8EA
-F8EB F8EB E5B985 F8EB
-F8EC F8EC E69AB4 F8EC
-F8ED F8ED E69B9D F8ED
-F8EE F8EE E78091 F8EE
-F8EF F8EF E78886 F8EF
-F8F0 F8F0 EFA887 F8F0
-F8F1 F8F1 E4BFB5 F8F1
-F8F2 F8F2 E589BD F8F2
-F8F3 F8F3 E5BDAA F8F3
-F8F4 F8F4 E68593 F8F4
-F8F5 F8F5 E69D93 F8F5
-F8F6 F8F6 E6A899 F8F6
-F8F7 F8F7 E6BC82 F8F7
-F8F8 F8F8 E793A2 F8F8
-F8F9 F8F9 E7A5A8 F8F9
-F8FA F8FA E8A1A8 F8FA
-F8FB F8FB E8B1B9 F8FB
-F8FC F8FC E9A387 F8FC
-F8FD F8FD E9A384 F8FD
-F8FE F8FE E9A983 F8FE
-F9A1 F9A1 E59381 F9A1
-F9A2 F9A2 E7A89F F9A2
-F9A3 F9A3 E6A593 F9A3
-F9A4 F9A4 E8ABB7 F9A4
-F9A5 F9A5 E8B18A F9A5
-F9A6 F9A6 E9A2A8 F9A6
-F9A7 F9A7 E9A6AE F9A7
-F9A8 F9A8 E5BDBC F9A8
-F9A9 F9A9 E68AAB F9A9
-F9AA F9AA E796B2 F9AA
-F9AB F9AB E79AAE F9AB
-F9AC F9AC E8A2AB F9AC
-F9AD F9AD E981BF F9AD
-F9AE F9AE E99982 F9AE
-F9AF F9AF E58CB9 F9AF
-F9B0 F9B0 E5BCBC F9B0
-F9B1 F9B1 E5BF85 F9B1
-F9B2 F9B2 E6B38C F9B2
-F9B3 F9B3 E78F8C F9B3
-F9B4 F9B4 E795A2 F9B4
-F9B5 F9B5 E7968B F9B5
-F9B6 F9B6 E7AD86 F9B6
-F9B7 F9B7 E88BBE F9B7
-F9B8 F9B8 E9A69D F9B8
-F9B9 F9B9 E4B98F F9B9
-F9BA F9BA E980BC F9BA
-F9BB F9BB E4B88B F9BB
-F9BC F9BC E4BD95 F9BC
-F9BD F9BD E58EA6 F9BD
-F9BE F9BE E5A48F F9BE
-F9BF F9BF E5BB88 F9BF
-F9C0 F9C0 E698B0 F9C0
-F9C1 F9C1 E6B2B3 F9C1
-F9C2 F9C2 E79195 F9C2
-F9C3 F9C3 E88DB7 F9C3
-F9C4 F9C4 E89DA6 F9C4
-F9C5 F9C5 E8B380 F9C5
-F9C6 F9C6 E98190 F9C6
-F9C7 F9C7 E99C9E F9C7
-F9C8 F9C8 E9B095 F9C8
-F9C9 F9C9 E5A391 F9C9
-F9CA F9CA E5ADB8 F9CA
-F9CB F9CB E89990 F9CB
-F9CC F9CC E8AC94 F9CC
-F9CD F9CD E9B6B4 F9CD
-F9CE F9CE E5AF92 F9CE
-F9CF F9CF E681A8 F9CF
-F9D0 F9D0 E6828D F9D0
-F9D1 F9D1 E697B1 F9D1
-F9D2 F9D2 E6B197 F9D2
-F9D3 F9D3 E6BCA2 F9D3
-F9D4 F9D4 E6BEA3 F9D4
-F9D5 F9D5 E7809A F9D5
-F9D6 F9D6 E7BD95 F9D6
-F9D7 F9D7 E7BFB0 F9D7
-F9D8 F9D8 E99691 F9D8
-F9D9 F9D9 E99692 F9D9
-F9DA F9DA E99990 F9DA
-F9DB F9DB E99F93 F9DB
-F9DC F9DC E589B2 F9DC
-F9DD F9DD E8BD84 F9DD
-F9DE F9DE E587BD F9DE
-F9DF F9DF E590AB F9DF
-F9E0 F9E0 E592B8 F9E0
-F9E1 F9E1 E595A3 F9E1
-F9E2 F9E2 E5968A F9E2
-F9E3 F9E3 E6AABB F9E3
-F9E4 F9E4 E6B6B5 F9E4
-F9E5 F9E5 E7B798 F9E5
-F9E6 F9E6 E889A6 F9E6
-F9E7 F9E7 E98A9C F9E7
-F9E8 F9E8 E999B7 F9E8
-F9E9 F9E9 E9B9B9 F9E9
-F9EA F9EA E59088 F9EA
-F9EB F9EB E59388 F9EB
-F9EC F9EC E79B92 F9EC
-F9ED F9ED E89BA4 F9ED
-F9EE F9EE E996A4 F9EE
-F9EF F9EF E99794 F9EF
-F9F0 F9F0 E9999C F9F0
-F9F1 F9F1 E4BAA2 F9F1
-F9F2 F9F2 E4BC89 F9F2
-F9F3 F9F3 E5A7AE F9F3
-F9F4 F9F4 E5ABA6 F9F4
-F9F5 F9F5 E5B7B7 F9F5
-F9F6 F9F6 E68192 F9F6
-F9F7 F9F7 E68A97 F9F7
-F9F8 F9F8 E69DAD F9F8
-F9F9 F9F9 E6A181 F9F9
-F9FA F9FA E6B286 F9FA
-F9FB F9FB E6B8AF F9FB
-F9FC F9FC E7BCB8 F9FC
-F9FD F9FD E8829B F9FD
-F9FE F9FE E888AA F9FE
-FAA1 FAA1 EFA888 FAA1
-FAA2 FAA2 EFA889 FAA2
-FAA3 FAA3 E9A085 FAA3
-FAA4 FAA4 E4BAA5 FAA4
-FAA5 FAA5 E58195 FAA5
-FAA6 FAA6 E592B3 FAA6
-FAA7 FAA7 E59E93 FAA7
-FAA8 FAA8 E5A59A FAA8
-FAA9 FAA9 E5ADA9 FAA9
-FAAA FAAA E5AEB3 FAAA
-FAAB FAAB E68788 FAAB
-FAAC FAAC E6A5B7 FAAC
-FAAD FAAD E6B5B7 FAAD
-FAAE FAAE E780A3 FAAE
-FAAF FAAF E89FB9 FAAF
-FAB0 FAB0 E8A7A3 FAB0
-FAB1 FAB1 E8A9B2 FAB1
-FAB2 FAB2 E8ABA7 FAB2
-FAB3 FAB3 E98282 FAB3
-FAB4 FAB4 E9A7AD FAB4
-FAB5 FAB5 E9AAB8 FAB5
-FAB6 FAB6 E58ABE FAB6
-FAB7 FAB7 E6A0B8 FAB7
-FAB8 FAB8 E58096 FAB8
-FAB9 FAB9 E5B9B8 FAB9
-FABA FABA E69D8F FABA
-FABB FABB E88D87 FABB
-FABC FABC E8A18C FABC
-FABD FABD E4BAAB FABD
-FABE FABE E59091 FABE
-FABF FABF E59AAE FABF
-FAC0 FAC0 E78FA6 FAC0
-FAC1 FAC1 E98495 FAC1
-FAC2 FAC2 E99FBF FAC2
-FAC3 FAC3 E9A489 FAC3
-FAC4 FAC4 E9A597 FAC4
-FAC5 FAC5 E9A699 FAC5
-FAC6 FAC6 E59993 FAC6
-FAC7 FAC7 E5A29F FAC7
-FAC8 FAC8 E8999B FAC8
-FAC9 FAC9 E8A8B1 FAC9
-FACA FACA E686B2 FACA
-FACB FACB E6ABB6 FACB
-FACC FACC E78DBB FACC
-FACD FACD E8BB92 FACD
-FACE FACE E6AD87 FACE
-FACF FACF E99AAA FACF
-FAD0 FAD0 E9A997 FAD0
-FAD1 FAD1 E5A595 FAD1
-FAD2 FAD2 E78880 FAD2
-FAD3 FAD3 E8B5AB FAD3
-FAD4 FAD4 E99DA9 FAD4
-FAD5 FAD5 E4BF94 FAD5
-FAD6 FAD6 E5B3B4 FAD6
-FAD7 FAD7 E5BCA6 FAD7
-FAD8 FAD8 E687B8 FAD8
-FAD9 FAD9 E6999B FAD9
-FADA FADA E6B3AB FADA
-FADB FADB E782AB FADB
-FADC FADC E78E84 FADC
-FADD FADD E78EB9 FADD
-FADE FADE E78FBE FADE
-FADF FADF E79CA9 FADF
-FAE0 FAE0 E79D8D FAE0
-FAE1 FAE1 E7B583 FAE1
-FAE2 FAE2 E7B5A2 FAE2
-FAE3 FAE3 E7B8A3 FAE3
-FAE4 FAE4 E888B7 FAE4
-FAE5 FAE5 E8A192 FAE5
-FAE6 FAE6 EFA88A FAE6
-FAE7 FAE7 E8B3A2 FAE7
-FAE8 FAE8 E98989 FAE8
-FAE9 FAE9 E9A1AF FAE9
-FAEA FAEA E5AD91 FAEA
-FAEB FAEB E7A9B4 FAEB
-FAEC FAEC E8A180 FAEC
-FAED FAED E9A081 FAED
-FAEE FAEE E5AB8C FAEE
-FAEF FAEF E4BFA0 FAEF
-FAF0 FAF0 E58D94 FAF0
-FAF1 FAF1 E5A4BE FAF1
-FAF2 FAF2 E5B3BD FAF2
-FAF3 FAF3 E68CBE FAF3
-FAF4 FAF4 E6B5B9 FAF4
-FAF5 FAF5 E78BB9 FAF5
-FAF6 FAF6 E88485 FAF6
-FAF7 FAF7 E88487 FAF7
-FAF8 FAF8 E88EA2 FAF8
-FAF9 FAF9 E98B8F FAF9
-FAFA FAFA E9A0B0 FAFA
-FAFB FAFB E4BAA8 FAFB
-FAFC FAFC E58584 FAFC
-FAFD FAFD E58891 FAFD
-FAFE FAFE E59E8B FAFE
-FBA1 FBA1 E5BDA2 FBA1
-FBA2 FBA2 E6B382 FBA2
-FBA3 FBA3 E6BB8E FBA3
-FBA4 FBA4 E78085 FBA4
-FBA5 FBA5 E78190 FBA5
-FBA6 FBA6 E782AF FBA6
-FBA7 FBA7 E78692 FBA7
-FBA8 FBA8 E78FA9 FBA8
-FBA9 FBA9 E791A9 FBA9
-FBAA FBAA E88D8A FBAA
-FBAB FBAB E89EA2 FBAB
-FBAC FBAC E8A1A1 FBAC
-FBAD FBAD E98088 FBAD
-FBAE FBAE E982A2 FBAE
-FBAF FBAF E98EA3 FBAF
-FBB0 FBB0 E9A6A8 FBB0
-FBB1 FBB1 E585AE FBB1
-FBB2 FBB2 E5BD97 FBB2
-FBB3 FBB3 E683A0 FBB3
-FBB4 FBB4 E685A7 FBB4
-FBB5 FBB5 E69AB3 FBB5
-FBB6 FBB6 E89599 FBB6
-FBB7 FBB7 E8B98A FBB7
-FBB8 FBB8 E986AF FBB8
-FBB9 FBB9 E99E8B FBB9
-FBBA FBBA E4B98E FBBA
-FBBB FBBB E4BA92 FBBB
-FBBC FBBC E591BC FBBC
-FBBD FBBD E5A395 FBBD
-FBBE FBBE E5A3BA FBBE
-FBBF FBBF E5A5BD FBBF
-FBC0 FBC0 E5B2B5 FBC0
-FBC1 FBC1 E5BCA7 FBC1
-FBC2 FBC2 E688B6 FBC2
-FBC3 FBC3 E68988 FBC3
-FBC4 FBC4 E6988A FBC4
-FBC5 FBC5 E699A7 FBC5
-FBC6 FBC6 E6AFAB FBC6
-FBC7 FBC7 E6B5A9 FBC7
-FBC8 FBC8 E6B78F FBC8
-FBC9 FBC9 E6B996 FBC9
-FBCA FBCA E6BBB8 FBCA
-FBCB FBCB E6BE94 FBCB
-FBCC FBCC E6BFA0 FBCC
-FBCD FBCD E6BFA9 FBCD
-FBCE FBCE E7819D FBCE
-FBCF FBCF E78B90 FBCF
-FBD0 FBD0 E790A5 FBD0
-FBD1 FBD1 E7919A FBD1
-FBD2 FBD2 E793A0 FBD2
-FBD3 FBD3 E79A93 FBD3
-FBD4 FBD4 E7A59C FBD4
-FBD5 FBD5 E7B38A FBD5
-FBD6 FBD6 E7B89E FBD6
-FBD7 FBD7 E883A1 FBD7
-FBD8 FBD8 E88AA6 FBD8
-FBD9 FBD9 E891AB FBD9
-FBDA FBDA E892BF FBDA
-FBDB FBDB E8998E FBDB
-FBDC FBDC E8999F FBDC
-FBDD FBDD E89DB4 FBDD
-FBDE FBDE E8ADB7 FBDE
-FBDF FBDF E8B1AA FBDF
-FBE0 FBE0 E98EAC FBE0
-FBE1 FBE1 E9A080 FBE1
-FBE2 FBE2 E9A1A5 FBE2
-FBE3 FBE3 E68391 FBE3
-FBE4 FBE4 E68896 FBE4
-FBE5 FBE5 E985B7 FBE5
-FBE6 FBE6 E5A99A FBE6
-FBE7 FBE7 E6988F FBE7
-FBE8 FBE8 E6B7B7 FBE8
-FBE9 FBE9 E6B8BE FBE9
-FBEA FBEA E790BF FBEA
-FBEB FBEB E9AD82 FBEB
-FBEC FBEC E5BFBD FBEC
-FBED FBED E6839A FBED
-FBEE FBEE E7AC8F FBEE
-FBEF FBEF E59384 FBEF
-FBF0 FBF0 E5BC98 FBF0
-FBF1 FBF1 E6B19E FBF1
-FBF2 FBF2 E6B393 FBF2
-FBF3 FBF3 E6B4AA FBF3
-FBF4 FBF4 E78398 FBF4
-FBF5 FBF5 E7B485 FBF5
-FBF6 FBF6 E899B9 FBF6
-FBF7 FBF7 E8A88C FBF7
-FBF8 FBF8 E9B4BB FBF8
-FBF9 FBF9 E58C96 FBF9
-FBFA FBFA E5928C FBFA
-FBFB FBFB E5AC85 FBFB
-FBFC FBFC E6A8BA FBFC
-FBFD FBFD E781AB FBFD
-FBFE FBFE E795B5 FBFE
-FCA1 FCA1 E7A68D FCA1
-FCA2 FCA2 E7A6BE FCA2
-FCA3 FCA3 E88AB1 FCA3
-FCA4 FCA4 E88FAF FCA4
-FCA5 FCA5 E8A9B1 FCA5
-FCA6 FCA6 E8AD81 FCA6
-FCA7 FCA7 E8B2A8 FCA7
-FCA8 FCA8 E99DB4 FCA8
-FCA9 FCA9 EFA88B FCA9
-FCAA FCAA E693B4 FCAA
-FCAB FCAB E694AB FCAB
-FCAC FCAC E7A2BA FCAC
-FCAD FCAD E7A2BB FCAD
-FCAE FCAE E7A9AB FCAE
-FCAF FCAF E4B8B8 FCAF
-FCB0 FCB0 E5969A FCB0
-FCB1 FCB1 E5A590 FCB1
-FCB2 FCB2 E5AEA6 FCB2
-FCB3 FCB3 E5B9BB FCB3
-FCB4 FCB4 E682A3 FCB4
-FCB5 FCB5 E68F9B FCB5
-FCB6 FCB6 E6ADA1 FCB6
-FCB7 FCB7 E699A5 FCB7
-FCB8 FCB8 E6A193 FCB8
-FCB9 FCB9 E6B899 FCB9
-FCBA FCBA E785A5 FCBA
-FCBB FCBB E792B0 FCBB
-FCBC FCBC E7B488 FCBC
-FCBD FCBD E98284 FCBD
-FCBE FCBE E9A9A9 FCBE
-FCBF FCBF E9B0A5 FCBF
-FCC0 FCC0 E6B4BB FCC0
-FCC1 FCC1 E6BB91 FCC1
-FCC2 FCC2 E78CBE FCC2
-FCC3 FCC3 E8B181 FCC3
-FCC4 FCC4 E9978A FCC4
-FCC5 FCC5 E587B0 FCC5
-FCC6 FCC6 E5B98C FCC6
-FCC7 FCC7 E5BEA8 FCC7
-FCC8 FCC8 E6818D FCC8
-FCC9 FCC9 E683B6 FCC9
-FCCA FCCA E684B0 FCCA
-FCCB FCCB E6858C FCCB
-FCCC FCCC E69983 FCCC
-FCCD FCCD E69984 FCCD
-FCCE FCCE E6A6A5 FCCE
-FCCF FCCF E6B381 FCCF
-FCD0 FCD0 E6B99F FCD0
-FCD1 FCD1 E6BB89 FCD1
-FCD2 FCD2 E6BDA2 FCD2
-FCD3 FCD3 E7858C FCD3
-FCD4 FCD4 E7929C FCD4
-FCD5 FCD5 E79A87 FCD5
-FCD6 FCD6 E7AF81 FCD6
-FCD7 FCD7 E7B0A7 FCD7
-FCD8 FCD8 E88D92 FCD8
-FCD9 FCD9 E89D97 FCD9
-FCDA FCDA E98191 FCDA
-FCDB FCDB E99A8D FCDB
-FCDC FCDC E9BB83 FCDC
-FCDD FCDD E58CAF FCDD
-FCDE FCDE E59B9E FCDE
-FCDF FCDF E5BBBB FCDF
-FCE0 FCE0 E5BE8A FCE0
-FCE1 FCE1 E681A2 FCE1
-FCE2 FCE2 E68294 FCE2
-FCE3 FCE3 E687B7 FCE3
-FCE4 FCE4 E699A6 FCE4
-FCE5 FCE5 E69C83 FCE5
-FCE6 FCE6 E6AA9C FCE6
-FCE7 FCE7 E6B7AE FCE7
-FCE8 FCE8 E6BEAE FCE8
-FCE9 FCE9 E781B0 FCE9
-FCEA FCEA E78DAA FCEA
-FCEB FCEB E7B9AA FCEB
-FCEC FCEC E886BE FCEC
-FCED FCED E88CB4 FCED
-FCEE FCEE E89B94 FCEE
-FCEF FCEF E8AAA8 FCEF
-FCF0 FCF0 E8B384 FCF0
-FCF1 FCF1 E58A83 FCF1
-FCF2 FCF2 E78DB2 FCF2
-FCF3 FCF3 E5AE96 FCF3
-FCF4 FCF4 E6A9AB FCF4
-FCF5 FCF5 E99084 FCF5
-FCF6 FCF6 E593AE FCF6
-FCF7 FCF7 E59A86 FCF7
-FCF8 FCF8 E5AD9D FCF8
-FCF9 FCF9 E69588 FCF9
-FCFA FCFA E69685 FCFA
-FCFB FCFB E69B89 FCFB
-FCFC FCFC E6A29F FCFC
-FCFD FCFD E6B68D FCFD
-FCFE FCFE E6B786 FCFE
-FDA1 FDA1 E788BB FDA1
-FDA2 FDA2 E882B4 FDA2
-FDA3 FDA3 E985B5 FDA3
-FDA4 FDA4 E9A98D FDA4
-FDA5 FDA5 E4BEAF FDA5
-FDA6 FDA6 E58099 FDA6
-FDA7 FDA7 E58E9A FDA7
-FDA8 FDA8 E5908E FDA8
-FDA9 FDA9 E590BC FDA9
-FDAA FDAA E59689 FDAA
-FDAB FDAB E59785 FDAB
-FDAC FDAC E5B8BF FDAC
-FDAD FDAD E5BE8C FDAD
-FDAE FDAE E69CBD FDAE
-FDAF FDAF E785A6 FDAF
-FDB0 FDB0 E78F9D FDB0
-FDB1 FDB1 E98085 FDB1
-FDB2 FDB2 E58B9B FDB2
-FDB3 FDB3 E58BB3 FDB3
-FDB4 FDB4 E5A1A4 FDB4
-FDB5 FDB5 E5A38E FDB5
-FDB6 FDB6 E78484 FDB6
-FDB7 FDB7 E7868F FDB7
-FDB8 FDB8 E787BB FDB8
-FDB9 FDB9 E896B0 FDB9
-FDBA FDBA E8A893 FDBA
-FDBB FDBB E69A88 FDBB
-FDBC FDBC E896A8 FDBC
-FDBD FDBD E596A7 FDBD
-FDBE FDBE E69A84 FDBE
-FDBF FDBF E7858A FDBF
-FDC0 FDC0 E890B1 FDC0
-FDC1 FDC1 E58D89 FDC1
-FDC2 FDC2 E59699 FDC2
-FDC3 FDC3 E6AF81 FDC3
-FDC4 FDC4 E5BD99 FDC4
-FDC5 FDC5 E5BEBD FDC5
-FDC6 FDC6 E68FAE FDC6
-FDC7 FDC7 E69A89 FDC7
-FDC8 FDC8 E78587 FDC8
-FDC9 FDC9 E8ABB1 FDC9
-FDCA FDCA E8BC9D FDCA
-FDCB FDCB E9BABE FDCB
-FDCC FDCC E4BC91 FDCC
-FDCD FDCD E690BA FDCD
-FDCE FDCE E7838B FDCE
-FDCF FDCF E795A6 FDCF
-FDD0 FDD0 E899A7 FDD0
-FDD1 FDD1 E681A4 FDD1
-FDD2 FDD2 E8AD8E FDD2
-FDD3 FDD3 E9B7B8 FDD3
-FDD4 FDD4 E58587 FDD4
-FDD5 FDD5 E587B6 FDD5
-FDD6 FDD6 E58C88 FDD6
-FDD7 FDD7 E6B4B6 FDD7
-FDD8 FDD8 E883B8 FDD8
-FDD9 FDD9 E9BB91 FDD9
-FDDA FDDA E69895 FDDA
-FDDB FDDB E6ACA3 FDDB
-FDDC FDDC E78298 FDDC
-FDDD FDDD E79795 FDDD
-FDDE FDDE E59083 FDDE
-FDDF FDDF E5B1B9 FDDF
-FDE0 FDE0 E7B487 FDE0
-FDE1 FDE1 E8A896 FDE1
-FDE2 FDE2 E6ACA0 FDE2
-FDE3 FDE3 E6ACBD FDE3
-FDE4 FDE4 E6AD86 FDE4
-FDE5 FDE5 E590B8 FDE5
-FDE6 FDE6 E681B0 FDE6
-FDE7 FDE7 E6B4BD FDE7
-FDE8 FDE8 E7BF95 FDE8
-FDE9 FDE9 E88888 FDE9
-FDEA FDEA E58396 FDEA
-FDEB FDEB E5879E FDEB
-FDEC FDEC E5969C FDEC
-FDED FDED E599AB FDED
-FDEE FDEE E59B8D FDEE
-FDEF FDEF E5A7AC FDEF
-FDF0 FDF0 E5AC89 FDF0
-FDF1 FDF1 E5B88C FDF1
-FDF2 FDF2 E68699 FDF2
-FDF3 FDF3 E68698 FDF3
-FDF4 FDF4 E688B1 FDF4
-FDF5 FDF5 E6999E FDF5
-FDF6 FDF6 E69BA6 FDF6
-FDF7 FDF7 E78699 FDF7
-FDF8 FDF8 E786B9 FDF8
-FDF9 FDF9 E786BA FDF9
-FDFA FDFA E78AA7 FDFA
-FDFB FDFB E7A6A7 FDFB
-FDFC FDFC E7A880 FDFC
-FDFD FDFD E7BEB2 FDFD
-FDFE FDFE E8A9B0 FDFE
-DROP TABLE t1, t2;
-End of 5.4 tests
-#
-# Start of 5.5 tests
-#
-#
-# Testing WL#4583 Case conversion in Asian character sets
-#
-SET NAMES utf8;
-SET collation_connection=euckr_korean_ci;
-CREATE TABLE t1 (b VARCHAR(2));
-INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
-INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
-CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
-DROP TABLE t1;
-CREATE TABLE t1 AS
-SELECT concat(head, tail) AS code, ' ' AS a
-FROM head, tail
-WHERE (head BETWEEN '80' AND 'FF') AND (tail BETWEEN '20' AND 'FF')
-ORDER BY head, tail;
-DROP TEMPORARY TABLE head, tail;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `code` varchar(8) DEFAULT NULL,
- `a` varchar(1) CHARACTER SET euckr NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
-Warnings:
-Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
-Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
-Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
-Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
-Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
-Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
-Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
-Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
-Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
-Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
-Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
-Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
-Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
-Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
-Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
-Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
-Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
-Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
-Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
-Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
-Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
-Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
-Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
-Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
-Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
-Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
-Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
-Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
-Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
-Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
-Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
-Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
-Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
-Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
-Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
-Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
-Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
-Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
-Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
-Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
-Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
-Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
-Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
-Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
-Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
-Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
-Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
-Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
-Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
-Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
-Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
-Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
-Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
-Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
-Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
-Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
-Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
-Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
-Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
-Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
-Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
-Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
-Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
-SELECT COUNT(*) FROM t1 WHERE a<>'?';
-COUNT(*)
-22428
-SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a) FROM t1 WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a));
-code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
-A3C1 A3C1 A3E1 A A ï½
-A3C2 A3C2 A3E2 B B b
-A3C3 A3C3 A3E3 C C c
-A3C4 A3C4 A3E4 D D d
-A3C5 A3C5 A3E5 ï¼¥ ï¼¥ ï½…
-A3C6 A3C6 A3E6 F F f
-A3C7 A3C7 A3E7 G G g
-A3C8 A3C8 A3E8 H H h
-A3C9 A3C9 A3E9 I I i
-A3CA A3CA A3EA J J j
-A3CB A3CB A3EB K K k
-A3CC A3CC A3EC L L l
-A3CD A3CD A3ED ï¼­ ï¼­ ï½
-A3CE A3CE A3EE N N n
-A3CF A3CF A3EF O O ï½
-A3D0 A3D0 A3F0 ï¼° ï¼° ï½
-A3D1 A3D1 A3F1 Q Q q
-A3D2 A3D2 A3F2 ï¼² ï¼² ï½’
-A3D3 A3D3 A3F3 S S s
-A3D4 A3D4 A3F4 ï¼´ ï¼´ ï½”
-A3D5 A3D5 A3F5 U U u
-A3D6 A3D6 A3F6 V V v
-A3D7 A3D7 A3F7 ï¼· ï¼· ï½—
-A3D8 A3D8 A3F8 X X x
-A3D9 A3D9 A3F9 ï¼¹ ï¼¹ ï½™
-A3DA A3DA A3FA Z Z z
-A3E1 A3C1 A3E1 ï½ ï¼¡ ï½
-A3E2 A3C2 A3E2 b B b
-A3E3 A3C3 A3E3 c C c
-A3E4 A3C4 A3E4 d D d
-A3E5 A3C5 A3E5 ï½… ï¼¥ ï½…
-A3E6 A3C6 A3E6 f F f
-A3E7 A3C7 A3E7 g G g
-A3E8 A3C8 A3E8 h H h
-A3E9 A3C9 A3E9 i I i
-A3EA A3CA A3EA j J j
-A3EB A3CB A3EB k K k
-A3EC A3CC A3EC l L l
-A3ED A3CD A3ED ï½ ï¼­ ï½
-A3EE A3CE A3EE n N n
-A3EF A3CF A3EF ï½ ï¼¯ ï½
-A3F0 A3D0 A3F0 ï½ ï¼° ï½
-A3F1 A3D1 A3F1 q Q q
-A3F2 A3D2 A3F2 ï½’ ï¼² ï½’
-A3F3 A3D3 A3F3 s S s
-A3F4 A3D4 A3F4 ï½” ï¼´ ï½”
-A3F5 A3D5 A3F5 u U u
-A3F6 A3D6 A3F6 v V v
-A3F7 A3D7 A3F7 ï½— ï¼· ï½—
-A3F8 A3D8 A3F8 x X x
-A3F9 A3D9 A3F9 ï½™ ï¼¹ ï½™
-A3FA A3DA A3FA z Z z
-A5A1 A5B0 A5A1 â…° â…  â…°
-A5A2 A5B1 A5A2 â…± â…¡ â…±
-A5A3 A5B2 A5A3 â…² â…¢ â…²
-A5A4 A5B3 A5A4 â…³ â…£ â…³
-A5A5 A5B4 A5A5 â…´ â…¤ â…´
-A5A6 A5B5 A5A6 â…µ â…¥ â…µ
-A5A7 A5B6 A5A7 â…¶ â…¦ â…¶
-A5A8 A5B7 A5A8 â…· â…§ â…·
-A5A9 A5B8 A5A9 â…¸ â…¨ â…¸
-A5AA A5B9 A5AA â…¹ â…© â…¹
-A5B0 A5B0 A5A1 â…  â…  â…°
-A5B1 A5B1 A5A2 â…¡ â…¡ â…±
-A5B2 A5B2 A5A3 â…¢ â…¢ â…²
-A5B3 A5B3 A5A4 â…£ â…£ â…³
-A5B4 A5B4 A5A5 â…¤ â…¤ â…´
-A5B5 A5B5 A5A6 â…¥ â…¥ â…µ
-A5B6 A5B6 A5A7 â…¦ â…¦ â…¶
-A5B7 A5B7 A5A8 â…§ â…§ â…·
-A5B8 A5B8 A5A9 â…¨ â…¨ â…¸
-A5B9 A5B9 A5AA â…© â…© â…¹
-A5C1 A5C1 A5E1 Α Α α
-A5C2 A5C2 A5E2 Β Β β
-A5C3 A5C3 A5E3 Γ Γ γ
-A5C4 A5C4 A5E4 Δ Δ δ
-A5C5 A5C5 A5E5 Ε Ε ε
-A5C6 A5C6 A5E6 Ζ Ζ ζ
-A5C7 A5C7 A5E7 Η Η η
-A5C8 A5C8 A5E8 Θ Θ θ
-A5C9 A5C9 A5E9 Ι Ι ι
-A5CA A5CA A5EA Κ Κ κ
-A5CB A5CB A5EB Λ Λ λ
-A5CC A5CC A5EC Μ Μ μ
-A5CD A5CD A5ED ΠΠν
-A5CE A5CE A5EE Ξ Ξ ξ
-A5CF A5CF A5EF Ο Ο ο
-A5D0 A5D0 A5F0 Π Π π
-A5D1 A5D1 A5F1 Ρ Ρ Ï
-A5D2 A5D2 A5F2 Σ Σ σ
-A5D3 A5D3 A5F3 Τ Τ τ
-A5D4 A5D4 A5F4 Υ Υ υ
-A5D5 A5D5 A5F5 Φ Φ φ
-A5D6 A5D6 A5F6 Χ Χ χ
-A5D7 A5D7 A5F7 Ψ Ψ ψ
-A5D8 A5D8 A5F8 Ω Ω ω
-A5E1 A5C1 A5E1 α Α α
-A5E2 A5C2 A5E2 β Β β
-A5E3 A5C3 A5E3 γ Γ γ
-A5E4 A5C4 A5E4 δ Δ δ
-A5E5 A5C5 A5E5 ε Ε ε
-A5E6 A5C6 A5E6 ζ Ζ ζ
-A5E7 A5C7 A5E7 η Η η
-A5E8 A5C8 A5E8 θ Θ θ
-A5E9 A5C9 A5E9 ι Ι ι
-A5EA A5CA A5EA κ Κ κ
-A5EB A5CB A5EB λ Λ λ
-A5EC A5CC A5EC μ Μ μ
-A5ED A5CD A5ED ν Πν
-A5EE A5CE A5EE ξ Ξ ξ
-A5EF A5CF A5EF ο Ο ο
-A5F0 A5D0 A5F0 π Π π
-A5F1 A5D1 A5F1 Ï Î¡ Ï
-A5F2 A5D2 A5F2 σ Σ σ
-A5F3 A5D3 A5F3 τ Τ τ
-A5F4 A5D4 A5F4 υ Υ υ
-A5F5 A5D5 A5F5 φ Φ φ
-A5F6 A5D6 A5F6 χ Χ χ
-A5F7 A5D7 A5F7 ψ Ψ ψ
-A5F8 A5D8 A5F8 ω Ω ω
-A7D9 A7D9 A5F8 Ω Ω ω
-A8A1 A8A1 A9A1 Æ Æ æ
-A8A2 A8A2 A9A3 à à ð
-A8A4 A8A4 A9A4 Ħ Ħ ħ
-A8A6 A8A6 A9A6 IJ IJ ij
-A8A8 A8A8 A9A8 Ŀ Ŀ ŀ
-A8A9 A8A9 A9A9 Å Å Å‚
-A8AA A8AA A9AA Ø Ø ø
-A8AB A8AB A9AB Å’ Å’ Å“
-A8AD A8AD A9AD Þ Þ þ
-A8AE A8AE A9AE Ŧ Ŧ ŧ
-A8AF A8AF A9AF ÅŠ ÅŠ Å‹
-A9A1 A8A1 A9A1 æ Æ æ
-A9A3 A8A2 A9A3 ð à ð
-A9A4 A8A4 A9A4 ħ Ħ ħ
-A9A5 49 A9A5 ı I ı
-A9A6 A8A6 A9A6 ij IJ ij
-A9A8 A8A8 A9A8 ŀ Ŀ ŀ
-A9A9 A8A9 A9A9 Å‚ Å Å‚
-A9AA A8AA A9AA ø Ø ø
-A9AB A8AB A9AB Å“ Å’ Å“
-A9AD A8AD A9AD þ Þ þ
-A9AE A8AE A9AE ŧ Ŧ ŧ
-A9AF A8AF A9AF Å‹ ÅŠ Å‹
-ACA1 ACA1 ACD1 РРа
-ACA2 ACA2 ACD2 Б Б б
-ACA3 ACA3 ACD3 В В в
-ACA4 ACA4 ACD4 Г Г г
-ACA5 ACA5 ACD5 Д Д д
-ACA6 ACA6 ACD6 Е Е е
-ACA7 ACA7 ACD7 Ð Ð Ñ‘
-ACA8 ACA8 ACD8 Ж Ж ж
-ACA9 ACA9 ACD9 З З з
-ACAA ACAA ACDA И И и
-ACAB ACAB ACDB Й Й й
-ACAC ACAC ACDC К К к
-ACAD ACAD ACDD Л Л л
-ACAE ACAE ACDE М М м
-ACAF ACAF ACDF РРн
-ACB0 ACB0 ACE0 О О о
-ACB1 ACB1 ACE1 П П п
-ACB2 ACB2 ACE2 Р Р р
-ACB3 ACB3 ACE3 С С Ñ
-ACB4 ACB4 ACE4 Т Т т
-ACB5 ACB5 ACE5 У У у
-ACB6 ACB6 ACE6 Ф Ф ф
-ACB7 ACB7 ACE7 Х Х х
-ACB8 ACB8 ACE8 Ц Ц ц
-ACB9 ACB9 ACE9 Ч Ч ч
-ACBA ACBA ACEA Ш Ш ш
-ACBB ACBB ACEB Щ Щ щ
-ACBC ACBC ACEC Ъ Ъ ъ
-ACBD ACBD ACED Ы Ы ы
-ACBE ACBE ACEE Ь Ь ь
-ACBF ACBF ACEF Э Э Ñ
-ACC0 ACC0 ACF0 Ю Ю ю
-ACC1 ACC1 ACF1 Я Я Ñ
-ACD1 ACA1 ACD1 а Ра
-ACD2 ACA2 ACD2 б Б б
-ACD3 ACA3 ACD3 в В в
-ACD4 ACA4 ACD4 г Г г
-ACD5 ACA5 ACD5 д Д д
-ACD6 ACA6 ACD6 е Е е
-ACD7 ACA7 ACD7 Ñ‘ Ð Ñ‘
-ACD8 ACA8 ACD8 ж Ж ж
-ACD9 ACA9 ACD9 з З з
-ACDA ACAA ACDA и И и
-ACDB ACAB ACDB й Й й
-ACDC ACAC ACDC к К к
-ACDD ACAD ACDD л Л л
-ACDE ACAE ACDE м М м
-ACDF ACAF ACDF н Рн
-ACE0 ACB0 ACE0 о О о
-ACE1 ACB1 ACE1 п П п
-ACE2 ACB2 ACE2 р Р р
-ACE3 ACB3 ACE3 Ñ Ð¡ Ñ
-ACE4 ACB4 ACE4 т Т т
-ACE5 ACB5 ACE5 у У у
-ACE6 ACB6 ACE6 ф Ф ф
-ACE7 ACB7 ACE7 х Х х
-ACE8 ACB8 ACE8 ц Ц ц
-ACE9 ACB9 ACE9 ч Ч ч
-ACEA ACBA ACEA ш Ш ш
-ACEB ACBB ACEB щ Щ щ
-ACEC ACBC ACEC ъ Ъ ъ
-ACED ACBD ACED ы Ы ы
-ACEE ACBE ACEE ь Ь ь
-ACEF ACBF ACEF Ñ Ð­ Ñ
-ACF0 ACC0 ACF0 ю Ю ю
-ACF1 ACC1 ACF1 Ñ Ð¯ Ñ
-SELECT * FROM t1
-WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-A1CA â„«
-Warnings:
-Warning 1977 Cannot convert 'euckr' character 0xA2E8 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2E8 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2E9 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2E9 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EA to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EA to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2ED to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2ED to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EE to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EE to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EF to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EF to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F0 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F0 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F1 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F1 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F2 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F2 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F3 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F3 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F4 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F4 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F5 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F5 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F6 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F6 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F7 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F7 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F8 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F8 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F9 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F9 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FA to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FA to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FD to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FD to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FE to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FE to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AD to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AD to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AE to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AE to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AF to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AF to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BA to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BA to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BD to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BD to 'utf8'
-SELECT * FROM t1
-WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-A8CD â“
-A8CE â“‘
-A8CF â“’
-A8D0 â““
-A8D1 â“”
-A8D2 â“•
-A8D3 â“–
-A8D4 â“—
-A8D5 ⓘ
-A8D6 â“™
-A8D7 â“š
-A8D8 â“›
-A8D9 ⓜ
-A8DA â“
-A8DB â“ž
-A8DC â“Ÿ
-A8DD â“ 
-A8DE â“¡
-A8DF â“¢
-A8E0 â“£
-A8E1 ⓤ
-A8E2 â“¥
-A8E3 ⓦ
-A8E4 ⓧ
-A8E5 ⓨ
-A8E6 â“©
-A9A2 Ä‘
-Warnings:
-Warning 1977 Cannot convert 'euckr' character 0xA2E8 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2E8 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2E9 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2E9 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EA to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EA to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2ED to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2ED to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EE to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EE to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EF to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2EF to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F0 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F0 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F1 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F1 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F2 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F2 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F3 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F3 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F4 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F4 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F5 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F5 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F6 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F6 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F7 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F7 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F8 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F8 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F9 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2F9 to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FA to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FA to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FD to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FD to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FE to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA2FE to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AD to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AD to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AE to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AE to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AF to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5AF to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BA to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BA to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BB to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BC to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BD to 'utf8'
-Warning 1977 Cannot convert 'euckr' character 0xA5BD to 'utf8'
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set names euckr;
-select @@collation_connection;
-@@collation_connection
-euckr_korean_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET euckr NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-41
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET euckr DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-4141414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-4141414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41414141412020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41414141412020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-41
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-414243
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-4142
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-414243
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-4142432020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-41
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-4142
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-414220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-41422020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-4142202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-41422020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-41
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-4142
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-414243
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-41424320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-41
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-4142
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-414243
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-41424320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-euckr_korean_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-41
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-414243
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-4142
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-414243
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-4142432020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020434241
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-BEBDBCDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDFBCBDBE
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-euckr_korean_ci
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-4141
-select hex(weight_string(cast(0xA1A1 as char)));
-hex(weight_string(cast(0xA1A1 as char)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1 as char) as char(3)))
-A1A12020
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)))
-A1A1A1A120
-select hex(weight_string(cast(0x40A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1 as char) as char(3)))
-40A1A120
-select hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)))
-4040A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0))
-A1A1A1A120
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0))
-A1A1A1A1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-set collation_connection=euckr_bin;
-select @@collation_connection;
-@@collation_connection
-euckr_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET euckr COLLATE euckr_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-61
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET euckr COLLATE euckr_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-6161616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-6161616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61616161612020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61616161612020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-61
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-616263
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-6162
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-616263
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-6162632020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-61
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-6162
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-616220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-61622020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-6162202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-61622020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-61
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-6162
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-616263
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-61626320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-61
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-6162
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-616263
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-61626320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-euckr_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-61
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-616263
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-6162
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-616263
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-6162632020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020636261
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-9E9D9CDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDF9C9D9E
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-euckr_bin
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-6141
-select hex(weight_string(cast(0xA1A1 as char)));
-hex(weight_string(cast(0xA1A1 as char)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1 as char) as char(3)))
-A1A12020
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)))
-A1A1A1A120
-select hex(weight_string(cast(0x40A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1 as char) as char(3)))
-40A1A120
-select hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)))
-4040A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0))
-A1A1A1A120
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0))
-A1A1A1A1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=euckr;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'euckr_korean_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE euckr_korean_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=euckr COLLATE=euckr_korean_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'euckr_korean_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'euckr_korean_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'euckr_korean_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'euckr_korean_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'euckr_korean_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'euckr_korean_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'euckr_korean_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'euckr_korean_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'euckr_korean_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'euckr_korean_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'euckr_korean_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'euckr_korean_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'euckr_korean_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'euckr_korean_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_korean_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_korean_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'euckr_korean_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_korean_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_korean_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'euckr_korean_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE euckr_korean_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=euckr COLLATE=euckr_korean_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'euckr_korean_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'euckr_korean_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'euckr_korean_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'euckr_korean_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'euckr_korean_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'euckr_korean_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'euckr_korean_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'euckr_korean_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'euckr_korean_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'euckr_korean_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'euckr_korean_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'euckr_korean_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'euckr_korean_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'euckr_korean_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_korean_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_korean_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'euckr_korean_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_korean_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_korean_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'euckr_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE euckr_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=euckr COLLATE=euckr_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'euckr_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'euckr_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'euckr_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'euckr_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'euckr_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'euckr_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'euckr_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'euckr_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'euckr_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'euckr_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'euckr_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'euckr_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'euckr_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'euckr_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'euckr_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'euckr_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE euckr_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=euckr COLLATE=euckr_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'euckr_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'euckr_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'euckr_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'euckr_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'euckr_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'euckr_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'euckr_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'euckr_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'euckr_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'euckr_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'euckr_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'euckr_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'euckr_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'euckr_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'euckr_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'euckr_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_filename.result b/mysql-test/r/ctype_filename.result
deleted file mode 100644
index c6d7d1e39b9..00000000000
--- a/mysql-test/r/ctype_filename.result
+++ /dev/null
@@ -1,23 +0,0 @@
-drop table if exists con, aux, nul, lpt1, com1, `clock$`;
-create table con (a int);
-drop table con;
-create table aux (a int);
-drop table aux;
-create table nul (a int);
-drop table nul;
-create table lpt1 (a int);
-drop table lpt1;
-create table com1 (a int);
-drop table com1;
-create table `clock$` (a int);
-drop table `clock$`;
-select convert(convert(',' using filename) using binary);
-convert(convert(',' using filename) using binary)
-@002c
-#
-# MDEV-7677 my_charset_handler_filename has a wrong "ismbchar" member
-#
-SET NAMES utf8;
-SELECT @a:=CONVERT('aÑ' USING filename) AS `@a`, BINARY @a, REVERSE(@a), HEX(@a), HEX(REVERSE(@a));
-@a BINARY @a REVERSE(@a) HEX(@a) HEX(REVERSE(@a))
-aÑ a@r1 Ña 61407231 40723161
diff --git a/mysql-test/r/ctype_filesystem.result b/mysql-test/r/ctype_filesystem.result
deleted file mode 100644
index b461cf2a1a4..00000000000
--- a/mysql-test/r/ctype_filesystem.result
+++ /dev/null
@@ -1,11 +0,0 @@
-SET CHARACTER SET utf8;
-SHOW VARIABLES like 'character_sets_dir';
-Variable_name Value
-character_sets_dir MYSQL_TEST_DIR/ß/
-SHOW VARIABLES like 'character_set_filesystem';
-Variable_name Value
-character_set_filesystem latin1
-SHOW VARIABLES like 'character_set_client';
-Variable_name Value
-character_set_client utf8
-SET CHARACTER SET default;
diff --git a/mysql-test/r/ctype_gb2312.result b/mysql-test/r/ctype_gb2312.result
deleted file mode 100644
index c3c2eee9b1c..00000000000
--- a/mysql-test/r/ctype_gb2312.result
+++ /dev/null
@@ -1,5069 +0,0 @@
-drop table if exists t1;
-SET @test_character_set= 'gb2312';
-SET @test_collation= 'gb2312_chinese_ci';
-SET @safe_character_set_server= @@character_set_server;
-SET @safe_collation_server= @@collation_server;
-SET @safe_character_set_client= @@character_set_client;
-SET @safe_character_set_results= @@character_set_results;
-SET character_set_server= @test_character_set;
-SET collation_server= @test_collation;
-CREATE DATABASE d1;
-USE d1;
-CREATE TABLE t1 (c CHAR(10), KEY(c));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c char(10) gb2312_chinese_ci YES MUL NULL
-INSERT INTO t1 VALUES ('aaa'),('aaaa'),('aaaaa');
-SELECT c as want3results FROM t1 WHERE c LIKE 'aaa%';
-want3results
-aaa
-aaaa
-aaaaa
-DROP TABLE t1;
-CREATE TABLE t1 (c1 varchar(15), KEY c1 (c1(2)));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c1 varchar(15) gb2312_chinese_ci YES MUL NULL
-INSERT INTO t1 VALUES ('location'),('loberge'),('lotre'),('boabab');
-SELECT c1 as want3results from t1 where c1 like 'l%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want3results from t1 where c1 like 'lo%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want1result from t1 where c1 like 'loc%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'loca%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locat%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locati%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locatio%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'location%';
-want1result
-location
-DROP TABLE t1;
-create table t1 (a set('a') not null);
-insert ignore into t1 values (),();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-select cast(a as char(1)) from t1;
-cast(a as char(1))
-
-
-select a sounds like a from t1;
-a sounds like a
-1
-1
-select 1 from t1 order by cast(a as char(1));
-1
-1
-1
-drop table t1;
-#
-# MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found
-#
-SET character_set_client=latin1;
-SET character_set_connection= @test_character_set;
-SET collation_connection= @test_collation;
-SELECT COLLATION('.'), SUBSTRING_INDEX('.wwwmysqlcom', '.', -2) AS c1;
-COLLATION('.') c1
-gb2312_chinese_ci .wwwmysqlcom
-set names utf8;
-create table t1 (
-name varchar(10),
-level smallint unsigned);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `name` varchar(10) DEFAULT NULL,
- `level` smallint(5) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=gb2312
-insert into t1 values ('string',1);
-select concat(name,space(level)), concat(name, repeat(' ',level)) from t1;
-concat(name,space(level)) concat(name, repeat(' ',level))
-string string
-drop table t1;
-DROP DATABASE d1;
-USE test;
-SET character_set_server= @safe_character_set_server;
-SET collation_server= @safe_collation_server;
-SET character_set_client= @safe_character_set_client;
-SET character_set_results= @safe_character_set_results;
-SET NAMES gb2312;
-SET collation_connection='gb2312_chinese_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-gb2312_chinese_ci 6109
-gb2312_chinese_ci 61
-gb2312_chinese_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-gb2312_chinese_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-gb2312_chinese_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-create table t1 engine=innodb select repeat('a',50) as c1;
-alter table t1 add index(c1(5));
-insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
-select collation(c1) from t1 limit 1;
-collation(c1)
-gb2312_chinese_ci
-select c1 from t1 where c1 like 'abcdef%' order by c1;
-c1
-abcdefg
-select c1 from t1 where c1 like 'abcde1%' order by c1;
-c1
-abcde100
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde11%' order by c1;
-c1
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde111%' order by c1;
-c1
-abcde111
-drop table t1;
-select @@collation_connection;
-@@collation_connection
-gb2312_chinese_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F225
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-drop table if exists t1;
-create table t1 select repeat('a',10) as c1;
-delete from t1;
-insert into t1 values (0x20),(0x21),(0x22),(0x23),(0x24),(0x25),(0x26),(0x27),(0x28),(0x29),(0x2A),(0x2B),(0x2C),(0x2D),(0x2E),(0x2F);
-insert into t1 values (0x30),(0x31),(0x32),(0x33),(0x34),(0x35),(0x36),(0x37),(0x38),(0x39),(0x3A),(0x3B),(0x3C),(0x3D),(0x3E),(0x3F);
-insert into t1 values (0x40),(0x41),(0x42),(0x43),(0x44),(0x45),(0x46),(0x47),(0x48),(0x49),(0x4A),(0x4B),(0x4C),(0x4D),(0x4E),(0x4F);
-insert into t1 values (0x50),(0x51),(0x52),(0x53),(0x54),(0x55),(0x56),(0x57),(0x58),(0x59),(0x5A),(0x5B),(0x5C),(0x5D),(0x5E),(0x5F);
-insert into t1 values (0x60),(0x61),(0x62),(0x63),(0x64),(0x65),(0x66),(0x67),(0x68),(0x69),(0x6A),(0x6B),(0x6C),(0x6D),(0x6E),(0x6F);
-insert into t1 values (0x70),(0x71),(0x72),(0x73),(0x74),(0x75),(0x76),(0x77),(0x78),(0x79),(0x7A),(0x7B),(0x7C),(0x7D),(0x7E),(0x7F);
-SELECT GROUP_CONCAT(c1 ORDER BY binary c1 SEPARATOR ''), GROUP_CONCAT(hex(c1) ORDER BY BINARY c1) FROM t1 GROUP BY c1;
-GROUP_CONCAT(c1 ORDER BY binary c1 SEPARATOR '') GROUP_CONCAT(hex(c1) ORDER BY BINARY c1)
- 20
-! 21
-" 22
-# 23
-$ 24
-% 25
-& 26
-' 27
-( 28
-) 29
-* 2A
-+ 2B
-, 2C
-- 2D
-. 2E
-/ 2F
-0 30
-1 31
-2 32
-3 33
-4 34
-5 35
-6 36
-7 37
-8 38
-9 39
-: 3A
-; 3B
-< 3C
-= 3D
-> 3E
-? 3F
-@ 40
-Aa 41,61
-Bb 42,62
-Cc 43,63
-Dd 44,64
-Ee 45,65
-Ff 46,66
-Gg 47,67
-Hh 48,68
-Ii 49,69
-Jj 4A,6A
-Kk 4B,6B
-Ll 4C,6C
-Mm 4D,6D
-Nn 4E,6E
-Oo 4F,6F
-Pp 50,70
-Qq 51,71
-Rr 52,72
-Ss 53,73
-Tt 54,74
-Uu 55,75
-Vv 56,76
-Ww 57,77
-Xx 58,78
-Yy~ 59,79,7E
-Zz 5A,7A
-] 5D
-[ 5B
-\ 5C
-^ 5E
-_ 5F
-` 60
-{ 7B
-| 7C
-} 7D
- 7F
-drop table t1;
-SET collation_connection='gb2312_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-gb2312_bin 6109
-gb2312_bin 61
-gb2312_bin 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-gb2312_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-gb2312_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-create table t1 engine=innodb select repeat('a',50) as c1;
-alter table t1 add index(c1(5));
-insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
-select collation(c1) from t1 limit 1;
-collation(c1)
-gb2312_bin
-select c1 from t1 where c1 like 'abcdef%' order by c1;
-c1
-abcdefg
-select c1 from t1 where c1 like 'abcde1%' order by c1;
-c1
-abcde100
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde11%' order by c1;
-c1
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde111%' order by c1;
-c1
-abcde111
-drop table t1;
-select @@collation_connection;
-@@collation_connection
-gb2312_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F225
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-SET NAMES gb2312;
-CREATE TABLE t1 (a text) character set gb2312;
-INSERT INTO t1 VALUES (0xA2A1),(0xD7FE);
-SELECT hex(a) FROM t1 ORDER BY a;
-hex(a)
-A2A1
-D7FE
-DROP TABLE t1;
-#
-# Start of 5.5 tests
-#
-#
-# Testing WL#4583 Case conversion in Asian character sets
-#
-SET NAMES utf8;
-SET collation_connection=gb2312_chinese_ci;
-CREATE TABLE t1 (b VARCHAR(2));
-INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
-INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
-CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
-DROP TABLE t1;
-CREATE TABLE t1 AS
-SELECT concat(head, tail) AS code, ' ' AS a
-FROM head, tail
-WHERE (head BETWEEN '80' AND 'FF') AND (tail BETWEEN '20' AND 'FF')
-ORDER BY head, tail;
-DROP TEMPORARY TABLE head, tail;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `code` varchar(8) DEFAULT NULL,
- `a` varchar(1) CHARACTER SET gb2312 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
-Warnings:
-Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
-Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
-Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
-Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
-Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
-Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
-Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
-Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
-Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
-Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
-Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
-Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
-Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
-Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
-Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
-Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
-Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
-Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
-Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
-Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
-Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
-Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
-Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
-Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
-Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
-Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
-Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
-Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
-Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
-Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
-Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
-Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
-Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
-Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
-Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
-Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
-Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
-Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
-Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
-Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
-Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
-Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
-Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
-Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
-Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
-Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
-Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
-Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
-Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
-Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
-Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
-Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
-Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
-Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
-Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
-Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
-Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
-Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
-Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
-Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
-Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
-Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
-Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
-SELECT COUNT(*) FROM t1 WHERE a<>'?';
-COUNT(*)
-8178
-SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a) FROM t1 WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a));
-code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
-A3C1 A3C1 A3E1 A A ï½
-A3C2 A3C2 A3E2 B B b
-A3C3 A3C3 A3E3 C C c
-A3C4 A3C4 A3E4 D D d
-A3C5 A3C5 A3E5 ï¼¥ ï¼¥ ï½…
-A3C6 A3C6 A3E6 F F f
-A3C7 A3C7 A3E7 G G g
-A3C8 A3C8 A3E8 H H h
-A3C9 A3C9 A3E9 I I i
-A3CA A3CA A3EA J J j
-A3CB A3CB A3EB K K k
-A3CC A3CC A3EC L L l
-A3CD A3CD A3ED ï¼­ ï¼­ ï½
-A3CE A3CE A3EE N N n
-A3CF A3CF A3EF O O ï½
-A3D0 A3D0 A3F0 ï¼° ï¼° ï½
-A3D1 A3D1 A3F1 Q Q q
-A3D2 A3D2 A3F2 ï¼² ï¼² ï½’
-A3D3 A3D3 A3F3 S S s
-A3D4 A3D4 A3F4 ï¼´ ï¼´ ï½”
-A3D5 A3D5 A3F5 U U u
-A3D6 A3D6 A3F6 V V v
-A3D7 A3D7 A3F7 ï¼· ï¼· ï½—
-A3D8 A3D8 A3F8 X X x
-A3D9 A3D9 A3F9 ï¼¹ ï¼¹ ï½™
-A3DA A3DA A3FA Z Z z
-A3E1 A3C1 A3E1 ï½ ï¼¡ ï½
-A3E2 A3C2 A3E2 b B b
-A3E3 A3C3 A3E3 c C c
-A3E4 A3C4 A3E4 d D d
-A3E5 A3C5 A3E5 ï½… ï¼¥ ï½…
-A3E6 A3C6 A3E6 f F f
-A3E7 A3C7 A3E7 g G g
-A3E8 A3C8 A3E8 h H h
-A3E9 A3C9 A3E9 i I i
-A3EA A3CA A3EA j J j
-A3EB A3CB A3EB k K k
-A3EC A3CC A3EC l L l
-A3ED A3CD A3ED ï½ ï¼­ ï½
-A3EE A3CE A3EE n N n
-A3EF A3CF A3EF ï½ ï¼¯ ï½
-A3F0 A3D0 A3F0 ï½ ï¼° ï½
-A3F1 A3D1 A3F1 q Q q
-A3F2 A3D2 A3F2 ï½’ ï¼² ï½’
-A3F3 A3D3 A3F3 s S s
-A3F4 A3D4 A3F4 ï½” ï¼´ ï½”
-A3F5 A3D5 A3F5 u U u
-A3F6 A3D6 A3F6 v V v
-A3F7 A3D7 A3F7 ï½— ï¼· ï½—
-A3F8 A3D8 A3F8 x X x
-A3F9 A3D9 A3F9 ï½™ ï¼¹ ï½™
-A3FA A3DA A3FA z Z z
-A6A1 A6A1 A6C1 Α Α α
-A6A2 A6A2 A6C2 Β Β β
-A6A3 A6A3 A6C3 Γ Γ γ
-A6A4 A6A4 A6C4 Δ Δ δ
-A6A5 A6A5 A6C5 Ε Ε ε
-A6A6 A6A6 A6C6 Ζ Ζ ζ
-A6A7 A6A7 A6C7 Η Η η
-A6A8 A6A8 A6C8 Θ Θ θ
-A6A9 A6A9 A6C9 Ι Ι ι
-A6AA A6AA A6CA Κ Κ κ
-A6AB A6AB A6CB Λ Λ λ
-A6AC A6AC A6CC Μ Μ μ
-A6AD A6AD A6CD ΠΠν
-A6AE A6AE A6CE Ξ Ξ ξ
-A6AF A6AF A6CF Ο Ο ο
-A6B0 A6B0 A6D0 Π Π π
-A6B1 A6B1 A6D1 Ρ Ρ Ï
-A6B2 A6B2 A6D2 Σ Σ σ
-A6B3 A6B3 A6D3 Τ Τ τ
-A6B4 A6B4 A6D4 Υ Υ υ
-A6B5 A6B5 A6D5 Φ Φ φ
-A6B6 A6B6 A6D6 Χ Χ χ
-A6B7 A6B7 A6D7 Ψ Ψ ψ
-A6B8 A6B8 A6D8 Ω Ω ω
-A6C1 A6A1 A6C1 α Α α
-A6C2 A6A2 A6C2 β Β β
-A6C3 A6A3 A6C3 γ Γ γ
-A6C4 A6A4 A6C4 δ Δ δ
-A6C5 A6A5 A6C5 ε Ε ε
-A6C6 A6A6 A6C6 ζ Ζ ζ
-A6C7 A6A7 A6C7 η Η η
-A6C8 A6A8 A6C8 θ Θ θ
-A6C9 A6A9 A6C9 ι Ι ι
-A6CA A6AA A6CA κ Κ κ
-A6CB A6AB A6CB λ Λ λ
-A6CC A6AC A6CC μ Μ μ
-A6CD A6AD A6CD ν Πν
-A6CE A6AE A6CE ξ Ξ ξ
-A6CF A6AF A6CF ο Ο ο
-A6D0 A6B0 A6D0 π Π π
-A6D1 A6B1 A6D1 Ï Î¡ Ï
-A6D2 A6B2 A6D2 σ Σ σ
-A6D3 A6B3 A6D3 τ Τ τ
-A6D4 A6B4 A6D4 υ Υ υ
-A6D5 A6B5 A6D5 φ Φ φ
-A6D6 A6B6 A6D6 χ Χ χ
-A6D7 A6B7 A6D7 ψ Ψ ψ
-A6D8 A6B8 A6D8 ω Ω ω
-A7A1 A7A1 A7D1 РРа
-A7A2 A7A2 A7D2 Б Б б
-A7A3 A7A3 A7D3 В В в
-A7A4 A7A4 A7D4 Г Г г
-A7A5 A7A5 A7D5 Д Д д
-A7A6 A7A6 A7D6 Е Е е
-A7A7 A7A7 A7D7 Ð Ð Ñ‘
-A7A8 A7A8 A7D8 Ж Ж ж
-A7A9 A7A9 A7D9 З З з
-A7AA A7AA A7DA И И и
-A7AB A7AB A7DB Й Й й
-A7AC A7AC A7DC К К к
-A7AD A7AD A7DD Л Л л
-A7AE A7AE A7DE М М м
-A7AF A7AF A7DF РРн
-A7B0 A7B0 A7E0 О О о
-A7B1 A7B1 A7E1 П П п
-A7B2 A7B2 A7E2 Р Р р
-A7B3 A7B3 A7E3 С С Ñ
-A7B4 A7B4 A7E4 Т Т т
-A7B5 A7B5 A7E5 У У у
-A7B6 A7B6 A7E6 Ф Ф ф
-A7B7 A7B7 A7E7 Х Х х
-A7B8 A7B8 A7E8 Ц Ц ц
-A7B9 A7B9 A7E9 Ч Ч ч
-A7BA A7BA A7EA Ш Ш ш
-A7BB A7BB A7EB Щ Щ щ
-A7BC A7BC A7EC Ъ Ъ ъ
-A7BD A7BD A7ED Ы Ы ы
-A7BE A7BE A7EE Ь Ь ь
-A7BF A7BF A7EF Э Э Ñ
-A7C0 A7C0 A7F0 Ю Ю ю
-A7C1 A7C1 A7F1 Я Я Ñ
-A7D1 A7A1 A7D1 а Ра
-A7D2 A7A2 A7D2 б Б б
-A7D3 A7A3 A7D3 в В в
-A7D4 A7A4 A7D4 г Г г
-A7D5 A7A5 A7D5 д Д д
-A7D6 A7A6 A7D6 е Е е
-A7D7 A7A7 A7D7 Ñ‘ Ð Ñ‘
-A7D8 A7A8 A7D8 ж Ж ж
-A7D9 A7A9 A7D9 з З з
-A7DA A7AA A7DA и И и
-A7DB A7AB A7DB й Й й
-A7DC A7AC A7DC к К к
-A7DD A7AD A7DD л Л л
-A7DE A7AE A7DE м М м
-A7DF A7AF A7DF н Рн
-A7E0 A7B0 A7E0 о О о
-A7E1 A7B1 A7E1 п П п
-A7E2 A7B2 A7E2 р Р р
-A7E3 A7B3 A7E3 Ñ Ð¡ Ñ
-A7E4 A7B4 A7E4 т Т т
-A7E5 A7B5 A7E5 у У у
-A7E6 A7B6 A7E6 ф Ф ф
-A7E7 A7B7 A7E7 х Х х
-A7E8 A7B8 A7E8 ц Ц ц
-A7E9 A7B9 A7E9 ч Ч ч
-A7EA A7BA A7EA ш Ш ш
-A7EB A7BB A7EB щ Щ щ
-A7EC A7BC A7EC ъ Ъ ъ
-A7ED A7BD A7ED ы Ы ы
-A7EE A7BE A7EE ь Ь ь
-A7EF A7BF A7EF Ñ Ð­ Ñ
-A7F0 A7C0 A7F0 ю Ю ю
-A7F1 A7C1 A7F1 Ñ Ð¯ Ñ
-SELECT * FROM t1
-WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-A2F1 â… 
-A2F2 â…¡
-A2F3 â…¢
-A2F4 â…£
-A2F5 â…¤
-A2F6 â…¥
-A2F7 â…¦
-A2F8 â…§
-A2F9 â…¨
-A2FA â…©
-A2FB â…ª
-A2FC â…«
-Warnings:
-Warning 1977 Cannot convert 'gb2312' character 0xA2A1 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A1 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A2 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A2 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A3 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A3 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A4 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A4 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A5 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A5 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A6 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A6 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A7 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A7 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A8 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A8 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A9 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A9 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AA to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AA to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AB to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AB to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AC to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AC to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AD to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AD to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AE to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AE to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AF to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AF to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2B0 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2B0 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2E3 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2E3 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2E4 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2E4 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2EF to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2EF to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2F0 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2F0 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2FD to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2FD to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2FE to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2FE to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F4 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F4 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F5 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F5 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F6 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F6 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F7 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F7 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F8 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F8 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F9 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F9 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FA to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FA to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FB to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FB to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FC to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FC to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FD to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FD to 'utf8'
-SELECT * FROM t1
-WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-A8A1 Ä
-A8A2 á
-A8A3 ÇŽ
-A8A4 à
-A8A5 Ä“
-A8A6 é
-A8A7 Ä›
-A8A8 è
-A8A9 Ä«
-A8AA í
-A8AB Ç
-A8AC ì
-A8AD Å
-A8AE ó
-A8AF Ç’
-A8B0 ò
-A8B1 Å«
-A8B2 ú
-A8B3 Ç”
-A8B4 ù
-A8B5 Ç–
-A8B6 ǘ
-A8B7 Çš
-A8B8 ǜ
-A8B9 ü
-A8BA ê
-Warnings:
-Warning 1977 Cannot convert 'gb2312' character 0xA2A1 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A1 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A2 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A2 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A3 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A3 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A4 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A4 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A5 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A5 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A6 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A6 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A7 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A7 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A8 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A8 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A9 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2A9 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AA to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AA to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AB to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AB to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AC to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AC to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AD to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AD to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AE to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AE to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AF to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2AF to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2B0 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2B0 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2E3 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2E3 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2E4 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2E4 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2EF to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2EF to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2F0 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2F0 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2FD to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2FD to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2FE to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA2FE to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F4 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F4 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F5 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F5 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F6 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F6 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F7 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F7 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F8 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F8 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F9 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4F9 to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FA to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FA to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FB to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FB to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FC to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FC to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FD to 'utf8'
-Warning 1977 Cannot convert 'gb2312' character 0xA4FD to 'utf8'
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set names gb2312;
-select @@collation_connection;
-@@collation_connection
-gb2312_chinese_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET gb2312 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-41
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET gb2312 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-4141414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-4141414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41414141412020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41414141412020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-41
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-414243
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-4142
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-414243
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-4142432020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-41
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-4142
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-414220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-41422020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-4142202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-41422020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-41
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-4142
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-414243
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-41424320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-41
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-4142
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-414243
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-41424320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-gb2312_chinese_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-41
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-414243
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-4142
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-414243
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-4142432020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020434241
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-BEBDBCDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDFBCBDBE
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-gb2312_chinese_ci
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-4141
-select hex(weight_string(cast(0xA1A1 as char)));
-hex(weight_string(cast(0xA1A1 as char)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1 as char) as char(3)))
-A1A12020
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)))
-A1A1A1A120
-select hex(weight_string(cast(0x40A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1 as char) as char(3)))
-40A1A120
-select hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)))
-4040A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0))
-A1A1A1A120
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0))
-A1A1A1A1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-set collation_connection=gb2312_bin;
-select @@collation_connection;
-@@collation_connection
-gb2312_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET gb2312 COLLATE gb2312_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-61
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET gb2312 COLLATE gb2312_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-6161616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-6161616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61616161612020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61616161612020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-61
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-616263
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-6162
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-616263
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-6162632020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-61
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-6162
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-616220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-61622020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-6162202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-61622020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-61
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-6162
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-616263
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-61626320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-61
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-6162
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-616263
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-61626320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-gb2312_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-61
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-616263
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-6162
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-616263
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-6162632020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020636261
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-9E9D9CDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDF9C9D9E
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-gb2312_bin
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-6141
-select hex(weight_string(cast(0xA1A1 as char)));
-hex(weight_string(cast(0xA1A1 as char)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1 as char) as char(3)))
-A1A12020
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)))
-A1A1A1A120
-select hex(weight_string(cast(0x40A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1 as char) as char(3)))
-40A1A120
-select hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)))
-4040A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0))
-A1A1A1A120
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0))
-A1A1A1A1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.0 tests
-#
-# Start of ctype_unescape.inc
-SET sql_mode = '';
-SET @query=_binary'SELECT CHARSET(\'test\'),@@character_set_client,@@character_set_connection';
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-CHARSET('test') @@character_set_client @@character_set_connection
-gb2312 gb2312 gb2312
-DEALLOCATE PREPARE stmt;
-CREATE TABLE allbytes (a VARBINARY(10));
-# Using selected bytes combinations
-CREATE TABLE halfs (a INT);
-INSERT INTO halfs VALUES (0x00),(0x01),(0x02),(0x03),(0x04),(0x05),(0x06),(0x07);
-INSERT INTO halfs VALUES (0x08),(0x09),(0x0A),(0x0B),(0x0C),(0x0D),(0x0E),(0x0F);
-CREATE TEMPORARY TABLE bytes (a BINARY(1), KEY(a)) ENGINE=MyISAM;
-INSERT INTO bytes SELECT CHAR((t1.a << 4) | t2.a USING BINARY) FROM halfs t1, halfs t2;
-DROP TABLE halfs;
-CREATE TABLE selected_bytes (a VARBINARY(10));
-INSERT INTO selected_bytes (a) VALUES ('\0'),('\b'),('\t'),('\r'),('\n'),('\Z');
-INSERT INTO selected_bytes (a) VALUES ('0'),('b'),('t'),('r'),('n'),('Z');
-INSERT INTO selected_bytes (a) VALUES ('\\'),('_'),('%'),(0x22),(0x27);
-INSERT INTO selected_bytes (a) VALUES ('a');
-INSERT INTO selected_bytes (a) VALUES
-(0x3F), # 7bit
-(0x40), # 7bit mbtail
-(0x7E), # 7bit mbtail nonascii-8bit
-(0x7F), # 7bit nonascii-8bit
-(0x80), # mbtail bad-mb
-(0x81), # mbhead mbtail
-(0x9F), # mbhead mbtail bad-mb
-(0xA0), # mbhead mbtail bad-mb
-(0xA1), # mbhead mbtail nonascii-8bit
-(0xE0), # mbhead mbtai
-(0xEF), # mbhead mbtail
-(0xF9), # mbhead mbtail
-(0xFA), # mbhead mbtail bad-mb
-(0xFC), # mbhead mbtail bad-mb
-(0xFD), # mbhead mbtail bad-mb
-(0xFE), # mbhead mbtial bad-mb
-(0xFF);
-INSERT INTO allbytes (a) SELECT a FROM bytes;
-INSERT INTO allbytes (a) SELECT CONCAT(t1.a,t2.a) FROM selected_bytes t1,selected_bytes t2;
-INSERT INTO allbytes (a) SELECT CONCAT(0x5C,t1.a,t2.a) FROM selected_bytes t1,selected_bytes t2;
-INSERT INTO allbytes (a) SELECT CONCAT(0x5C,t1.a,0x5C,t2.a) FROM selected_bytes t1,selected_bytes t2;
-DROP TABLE selected_bytes;
-DELETE FROM allbytes WHERE
-OCTET_LENGTH(a)>1 AND
-LOCATE(0x5C,a)=0 AND
-a NOT LIKE '%\'%' AND
- a NOT LIKE '%"%';
-CREATE PROCEDURE p1(val VARBINARY(10))
-BEGIN
-DECLARE EXIT HANDLER FOR SQLSTATE '42000' INSERT INTO t1 (a,b) VALUES(val,NULL);
-SET @query=CONCAT(_binary"INSERT INTO t1 (a,b) VALUES (0x",HEX(val),",'",val,"')");
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-END//
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE val VARBINARY(10);
-DECLARE done INT DEFAULT FALSE;
-DECLARE stmt CURSOR FOR SELECT a FROM allbytes;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN stmt;
-read_loop1: LOOP
-FETCH stmt INTO val;
-IF done THEN
-LEAVE read_loop1;
-END IF;
-CALL p1(val);
-END LOOP;
-CLOSE stmt;
-END//
-CREATE FUNCTION iswellformed(a VARBINARY(256)) RETURNS INT RETURN a=BINARY CONVERT(a USING gb2312);//
-CREATE FUNCTION unescape(a VARBINARY(256)) RETURNS VARBINARY(256)
-BEGIN
-# We need to do it in a way to avoid producing new escape sequences
-# First, enclose all known escsape sequences to '{{xx}}'
- # - Backslash not followed by a LIKE pattern characters _ and %
-# - Double escapes
-# This uses PCRE Branch Reset Groups: (?|(alt1)|(alt2)|(alt3)).
-# So '\\1' in the last argument always means the match, no matter
-# which alternative it came from.
-SET a=REGEXP_REPLACE(a,'(?|(\\\\[^_%])|(\\x{27}\\x{27}))','{{\\1}}');
-# Now unescape all enclosed standard escape sequences
-SET a=REPLACE(a,'{{\\0}}', '\0');
-SET a=REPLACE(a,'{{\\b}}', '\b');
-SET a=REPLACE(a,'{{\\t}}', '\t');
-SET a=REPLACE(a,'{{\\r}}', '\r');
-SET a=REPLACE(a,'{{\\n}}', '\n');
-SET a=REPLACE(a,'{{\\Z}}', '\Z');
-SET a=REPLACE(a,'{{\\\'}}', '\'');
-# Unescape double quotes
-SET a=REPLACE(a,'{{\'\'}}', '\'');
- # Unescape the rest: all other \x sequences mean just 'x'
- SET a=REGEXP_REPLACE(a, '{{\\\\(.|\\R)}}', '\\1');
- RETURN a;
-END//
-CREATE FUNCTION unescape_type(a VARBINARY(256),b VARBINARY(256)) RETURNS VARBINARY(256)
-BEGIN
-RETURN CASE
-WHEN b IS NULL THEN '[SyntErr]'
- WHEN a=b THEN CASE
-WHEN OCTET_LENGTH(a)=1 THEN '[Preserve]'
- WHEN a RLIKE '\\\\[_%]' THEN '[Preserve][LIKE]'
- WHEN a RLIKE '^[[:ascii:]]+$' THEN '[Preserve][ASCII]'
- ELSE '[Preserv][MB]' END
-WHEN REPLACE(a,0x5C,'')=b THEN '[Trivial]'
- WHEN UNESCAPE(a)=b THEN '[Regular]'
- ELSE '[Special]' END;
-END//
-CREATE FUNCTION wellformedness(a VARBINARY(256), b VARBINARY(256))
-RETURNS VARBINARY(256)
-BEGIN
-RETURN CASE
-WHEN b IS NULL THEN ''
- WHEN NOT iswellformed(a) AND iswellformed(b) THEN '[FIXED]'
- WHEN iswellformed(a) AND NOT iswellformed(b) THEN '[BROKE]'
- WHEN NOT iswellformed(a) AND NOT iswellformed(b) THEN '[ILSEQ]'
- ELSE ''
- END;
-END//
-CREATE FUNCTION mysql_real_escape_string_generated(a VARBINARY(256))
-RETURNS VARBINARY(256)
-BEGIN
-DECLARE a1 BINARY(1) DEFAULT SUBSTR(a,1,1);
-DECLARE a2 BINARY(1) DEFAULT SUBSTR(a,2,1);
-DECLARE a3 BINARY(1) DEFAULT SUBSTR(a,3,1);
-DECLARE a4 BINARY(1) DEFAULT SUBSTR(a,4,1);
-DECLARE a2a4 BINARY(2) DEFAULT CONCAT(a2,a4);
-RETURN CASE
-WHEN (a1=0x5C) AND
-(a3=0x5C) AND
-(a2>0x7F) AND
-(a4 NOT IN ('_','%','0','t','r','n','Z')) AND
-iswellformed(a2a4) THEN '[USER]'
- ELSE ''
- END;
-END//
-CREATE TABLE t1 (a VARBINARY(10),b VARBINARY(10));
-CALL p2();
-SELECT HEX(a),HEX(b),
-CONCAT(unescape_type(a,b),
-wellformedness(a,b),
-mysql_real_escape_string_generated(a),
-IF(UNESCAPE(a)<>b,CONCAT('[BAD',HEX(UNESCAPE(a)),']'),'')) AS comment
-FROM t1 ORDER BY LENGTH(a),a;
-HEX(a) HEX(b) comment
-00 00 [Preserve]
-01 01 [Preserve]
-02 02 [Preserve]
-03 03 [Preserve]
-04 04 [Preserve]
-05 05 [Preserve]
-06 06 [Preserve]
-07 07 [Preserve]
-08 08 [Preserve]
-09 09 [Preserve]
-0A 0A [Preserve]
-0B 0B [Preserve]
-0C 0C [Preserve]
-0D 0D [Preserve]
-0E 0E [Preserve]
-0F 0F [Preserve]
-10 10 [Preserve]
-11 11 [Preserve]
-12 12 [Preserve]
-13 13 [Preserve]
-14 14 [Preserve]
-15 15 [Preserve]
-16 16 [Preserve]
-17 17 [Preserve]
-18 18 [Preserve]
-19 19 [Preserve]
-1A 1A [Preserve]
-1B 1B [Preserve]
-1C 1C [Preserve]
-1D 1D [Preserve]
-1E 1E [Preserve]
-1F 1F [Preserve]
-20 20 [Preserve]
-21 21 [Preserve]
-22 22 [Preserve]
-23 23 [Preserve]
-24 24 [Preserve]
-25 25 [Preserve]
-26 26 [Preserve]
-27 NULL [SyntErr]
-28 28 [Preserve]
-29 29 [Preserve]
-2A 2A [Preserve]
-2B 2B [Preserve]
-2C 2C [Preserve]
-2D 2D [Preserve]
-2E 2E [Preserve]
-2F 2F [Preserve]
-30 30 [Preserve]
-31 31 [Preserve]
-32 32 [Preserve]
-33 33 [Preserve]
-34 34 [Preserve]
-35 35 [Preserve]
-36 36 [Preserve]
-37 37 [Preserve]
-38 38 [Preserve]
-39 39 [Preserve]
-3A 3A [Preserve]
-3B 3B [Preserve]
-3C 3C [Preserve]
-3D 3D [Preserve]
-3E 3E [Preserve]
-3F 3F [Preserve]
-40 40 [Preserve]
-41 41 [Preserve]
-42 42 [Preserve]
-43 43 [Preserve]
-44 44 [Preserve]
-45 45 [Preserve]
-46 46 [Preserve]
-47 47 [Preserve]
-48 48 [Preserve]
-49 49 [Preserve]
-4A 4A [Preserve]
-4B 4B [Preserve]
-4C 4C [Preserve]
-4D 4D [Preserve]
-4E 4E [Preserve]
-4F 4F [Preserve]
-50 50 [Preserve]
-51 51 [Preserve]
-52 52 [Preserve]
-53 53 [Preserve]
-54 54 [Preserve]
-55 55 [Preserve]
-56 56 [Preserve]
-57 57 [Preserve]
-58 58 [Preserve]
-59 59 [Preserve]
-5A 5A [Preserve]
-5B 5B [Preserve]
-5C NULL [SyntErr]
-5D 5D [Preserve]
-5E 5E [Preserve]
-5F 5F [Preserve]
-60 60 [Preserve]
-61 61 [Preserve]
-62 62 [Preserve]
-63 63 [Preserve]
-64 64 [Preserve]
-65 65 [Preserve]
-66 66 [Preserve]
-67 67 [Preserve]
-68 68 [Preserve]
-69 69 [Preserve]
-6A 6A [Preserve]
-6B 6B [Preserve]
-6C 6C [Preserve]
-6D 6D [Preserve]
-6E 6E [Preserve]
-6F 6F [Preserve]
-70 70 [Preserve]
-71 71 [Preserve]
-72 72 [Preserve]
-73 73 [Preserve]
-74 74 [Preserve]
-75 75 [Preserve]
-76 76 [Preserve]
-77 77 [Preserve]
-78 78 [Preserve]
-79 79 [Preserve]
-7A 7A [Preserve]
-7B 7B [Preserve]
-7C 7C [Preserve]
-7D 7D [Preserve]
-7E 7E [Preserve]
-7F 7F [Preserve]
-80 80 [Preserve][ILSEQ]
-81 81 [Preserve][ILSEQ]
-82 82 [Preserve][ILSEQ]
-83 83 [Preserve][ILSEQ]
-84 84 [Preserve][ILSEQ]
-85 85 [Preserve][ILSEQ]
-86 86 [Preserve][ILSEQ]
-87 87 [Preserve][ILSEQ]
-88 88 [Preserve][ILSEQ]
-89 89 [Preserve][ILSEQ]
-8A 8A [Preserve][ILSEQ]
-8B 8B [Preserve][ILSEQ]
-8C 8C [Preserve][ILSEQ]
-8D 8D [Preserve][ILSEQ]
-8E 8E [Preserve][ILSEQ]
-8F 8F [Preserve][ILSEQ]
-90 90 [Preserve][ILSEQ]
-91 91 [Preserve][ILSEQ]
-92 92 [Preserve][ILSEQ]
-93 93 [Preserve][ILSEQ]
-94 94 [Preserve][ILSEQ]
-95 95 [Preserve][ILSEQ]
-96 96 [Preserve][ILSEQ]
-97 97 [Preserve][ILSEQ]
-98 98 [Preserve][ILSEQ]
-99 99 [Preserve][ILSEQ]
-9A 9A [Preserve][ILSEQ]
-9B 9B [Preserve][ILSEQ]
-9C 9C [Preserve][ILSEQ]
-9D 9D [Preserve][ILSEQ]
-9E 9E [Preserve][ILSEQ]
-9F 9F [Preserve][ILSEQ]
-A0 A0 [Preserve][ILSEQ]
-A1 A1 [Preserve][ILSEQ]
-A2 A2 [Preserve][ILSEQ]
-A3 A3 [Preserve][ILSEQ]
-A4 A4 [Preserve][ILSEQ]
-A5 A5 [Preserve][ILSEQ]
-A6 A6 [Preserve][ILSEQ]
-A7 A7 [Preserve][ILSEQ]
-A8 A8 [Preserve][ILSEQ]
-A9 A9 [Preserve][ILSEQ]
-AA AA [Preserve][ILSEQ]
-AB AB [Preserve][ILSEQ]
-AC AC [Preserve][ILSEQ]
-AD AD [Preserve][ILSEQ]
-AE AE [Preserve][ILSEQ]
-AF AF [Preserve][ILSEQ]
-B0 B0 [Preserve][ILSEQ]
-B1 B1 [Preserve][ILSEQ]
-B2 B2 [Preserve][ILSEQ]
-B3 B3 [Preserve][ILSEQ]
-B4 B4 [Preserve][ILSEQ]
-B5 B5 [Preserve][ILSEQ]
-B6 B6 [Preserve][ILSEQ]
-B7 B7 [Preserve][ILSEQ]
-B8 B8 [Preserve][ILSEQ]
-B9 B9 [Preserve][ILSEQ]
-BA BA [Preserve][ILSEQ]
-BB BB [Preserve][ILSEQ]
-BC BC [Preserve][ILSEQ]
-BD BD [Preserve][ILSEQ]
-BE BE [Preserve][ILSEQ]
-BF BF [Preserve][ILSEQ]
-C0 C0 [Preserve][ILSEQ]
-C1 C1 [Preserve][ILSEQ]
-C2 C2 [Preserve][ILSEQ]
-C3 C3 [Preserve][ILSEQ]
-C4 C4 [Preserve][ILSEQ]
-C5 C5 [Preserve][ILSEQ]
-C6 C6 [Preserve][ILSEQ]
-C7 C7 [Preserve][ILSEQ]
-C8 C8 [Preserve][ILSEQ]
-C9 C9 [Preserve][ILSEQ]
-CA CA [Preserve][ILSEQ]
-CB CB [Preserve][ILSEQ]
-CC CC [Preserve][ILSEQ]
-CD CD [Preserve][ILSEQ]
-CE CE [Preserve][ILSEQ]
-CF CF [Preserve][ILSEQ]
-D0 D0 [Preserve][ILSEQ]
-D1 D1 [Preserve][ILSEQ]
-D2 D2 [Preserve][ILSEQ]
-D3 D3 [Preserve][ILSEQ]
-D4 D4 [Preserve][ILSEQ]
-D5 D5 [Preserve][ILSEQ]
-D6 D6 [Preserve][ILSEQ]
-D7 D7 [Preserve][ILSEQ]
-D8 D8 [Preserve][ILSEQ]
-D9 D9 [Preserve][ILSEQ]
-DA DA [Preserve][ILSEQ]
-DB DB [Preserve][ILSEQ]
-DC DC [Preserve][ILSEQ]
-DD DD [Preserve][ILSEQ]
-DE DE [Preserve][ILSEQ]
-DF DF [Preserve][ILSEQ]
-E0 E0 [Preserve][ILSEQ]
-E1 E1 [Preserve][ILSEQ]
-E2 E2 [Preserve][ILSEQ]
-E3 E3 [Preserve][ILSEQ]
-E4 E4 [Preserve][ILSEQ]
-E5 E5 [Preserve][ILSEQ]
-E6 E6 [Preserve][ILSEQ]
-E7 E7 [Preserve][ILSEQ]
-E8 E8 [Preserve][ILSEQ]
-E9 E9 [Preserve][ILSEQ]
-EA EA [Preserve][ILSEQ]
-EB EB [Preserve][ILSEQ]
-EC EC [Preserve][ILSEQ]
-ED ED [Preserve][ILSEQ]
-EE EE [Preserve][ILSEQ]
-EF EF [Preserve][ILSEQ]
-F0 F0 [Preserve][ILSEQ]
-F1 F1 [Preserve][ILSEQ]
-F2 F2 [Preserve][ILSEQ]
-F3 F3 [Preserve][ILSEQ]
-F4 F4 [Preserve][ILSEQ]
-F5 F5 [Preserve][ILSEQ]
-F6 F6 [Preserve][ILSEQ]
-F7 F7 [Preserve][ILSEQ]
-F8 F8 [Preserve][ILSEQ]
-F9 F9 [Preserve][ILSEQ]
-FA FA [Preserve][ILSEQ]
-FB FB [Preserve][ILSEQ]
-FC FC [Preserve][ILSEQ]
-FD FD [Preserve][ILSEQ]
-FE FE [Preserve][ILSEQ]
-FF FF [Preserve][ILSEQ]
-0022 0022 [Preserve][ASCII]
-0027 NULL [SyntErr]
-005C NULL [SyntErr]
-0822 0822 [Preserve][ASCII]
-0827 NULL [SyntErr]
-085C NULL [SyntErr]
-0922 0922 [Preserve][ASCII]
-0927 NULL [SyntErr]
-095C NULL [SyntErr]
-0A22 0A22 [Preserve][ASCII]
-0A27 NULL [SyntErr]
-0A5C NULL [SyntErr]
-0D22 0D22 [Preserve][ASCII]
-0D27 NULL [SyntErr]
-0D5C NULL [SyntErr]
-1A22 1A22 [Preserve][ASCII]
-1A27 NULL [SyntErr]
-1A5C NULL [SyntErr]
-2200 2200 [Preserve][ASCII]
-2208 2208 [Preserve][ASCII]
-2209 2209 [Preserve][ASCII]
-220A 220A [Preserve][ASCII]
-220D 220D [Preserve][ASCII]
-221A 221A [Preserve][ASCII]
-2222 2222 [Preserve][ASCII]
-2225 2225 [Preserve][ASCII]
-2227 NULL [SyntErr]
-2230 2230 [Preserve][ASCII]
-223F 223F [Preserve][ASCII]
-2240 2240 [Preserve][ASCII]
-225A 225A [Preserve][ASCII]
-225C NULL [SyntErr]
-225F 225F [Preserve][ASCII]
-2261 2261 [Preserve][ASCII]
-2262 2262 [Preserve][ASCII]
-226E 226E [Preserve][ASCII]
-2272 2272 [Preserve][ASCII]
-2274 2274 [Preserve][ASCII]
-227E 227E [Preserve][ASCII]
-227F 227F [Preserve][ASCII]
-2280 2280 [Preserv][MB][ILSEQ]
-2281 2281 [Preserv][MB][ILSEQ]
-229F 229F [Preserv][MB][ILSEQ]
-22A0 22A0 [Preserv][MB][ILSEQ]
-22A1 22A1 [Preserv][MB][ILSEQ]
-22E0 22E0 [Preserv][MB][ILSEQ]
-22EF 22EF [Preserv][MB][ILSEQ]
-22F9 22F9 [Preserv][MB][ILSEQ]
-22FA 22FA [Preserv][MB][ILSEQ]
-22FC 22FC [Preserv][MB][ILSEQ]
-22FD 22FD [Preserv][MB][ILSEQ]
-22FE 22FE [Preserv][MB][ILSEQ]
-22FF 22FF [Preserv][MB][ILSEQ]
-2522 2522 [Preserve][ASCII]
-2527 NULL [SyntErr]
-255C NULL [SyntErr]
-2700 NULL [SyntErr]
-2708 NULL [SyntErr]
-2709 NULL [SyntErr]
-270A NULL [SyntErr]
-270D NULL [SyntErr]
-271A NULL [SyntErr]
-2722 NULL [SyntErr]
-2725 NULL [SyntErr]
-2727 27 [Regular]
-2730 NULL [SyntErr]
-273F NULL [SyntErr]
-2740 NULL [SyntErr]
-275A NULL [SyntErr]
-275C NULL [SyntErr]
-275F NULL [SyntErr]
-2761 NULL [SyntErr]
-2762 NULL [SyntErr]
-276E NULL [SyntErr]
-2772 NULL [SyntErr]
-2774 NULL [SyntErr]
-277E NULL [SyntErr]
-277F NULL [SyntErr]
-2780 NULL [SyntErr]
-2781 NULL [SyntErr]
-279F NULL [SyntErr]
-27A0 NULL [SyntErr]
-27A1 NULL [SyntErr]
-27E0 NULL [SyntErr]
-27EF NULL [SyntErr]
-27F9 NULL [SyntErr]
-27FA NULL [SyntErr]
-27FC NULL [SyntErr]
-27FD NULL [SyntErr]
-27FE NULL [SyntErr]
-27FF NULL [SyntErr]
-3022 3022 [Preserve][ASCII]
-3027 NULL [SyntErr]
-305C NULL [SyntErr]
-3F22 3F22 [Preserve][ASCII]
-3F27 NULL [SyntErr]
-3F5C NULL [SyntErr]
-4022 4022 [Preserve][ASCII]
-4027 NULL [SyntErr]
-405C NULL [SyntErr]
-5A22 5A22 [Preserve][ASCII]
-5A27 NULL [SyntErr]
-5A5C NULL [SyntErr]
-5C00 00 [Trivial]
-5C08 08 [Trivial]
-5C09 09 [Trivial]
-5C0A 0A [Trivial]
-5C0D 0D [Trivial]
-5C1A 1A [Trivial]
-5C22 22 [Trivial]
-5C25 5C25 [Preserve][LIKE]
-5C27 27 [Trivial]
-5C30 00 [Regular]
-5C3F 3F [Trivial]
-5C40 40 [Trivial]
-5C5A 1A [Regular]
-5C5C 5C [Regular]
-5C5F 5C5F [Preserve][LIKE]
-5C61 61 [Trivial]
-5C62 08 [Regular]
-5C6E 0A [Regular]
-5C72 0D [Regular]
-5C74 09 [Regular]
-5C7E 7E [Trivial]
-5C7F 7F [Trivial]
-5C80 80 [Trivial][ILSEQ]
-5C81 81 [Trivial][ILSEQ]
-5C9F 9F [Trivial][ILSEQ]
-5CA0 A0 [Trivial][ILSEQ]
-5CA1 A1 [Trivial][ILSEQ]
-5CE0 E0 [Trivial][ILSEQ]
-5CEF EF [Trivial][ILSEQ]
-5CF9 F9 [Trivial][ILSEQ]
-5CFA FA [Trivial][ILSEQ]
-5CFC FC [Trivial][ILSEQ]
-5CFD FD [Trivial][ILSEQ]
-5CFE FE [Trivial][ILSEQ]
-5CFF FF [Trivial][ILSEQ]
-5F22 5F22 [Preserve][ASCII]
-5F27 NULL [SyntErr]
-5F5C NULL [SyntErr]
-6122 6122 [Preserve][ASCII]
-6127 NULL [SyntErr]
-615C NULL [SyntErr]
-6222 6222 [Preserve][ASCII]
-6227 NULL [SyntErr]
-625C NULL [SyntErr]
-6E22 6E22 [Preserve][ASCII]
-6E27 NULL [SyntErr]
-6E5C NULL [SyntErr]
-7222 7222 [Preserve][ASCII]
-7227 NULL [SyntErr]
-725C NULL [SyntErr]
-7422 7422 [Preserve][ASCII]
-7427 NULL [SyntErr]
-745C NULL [SyntErr]
-7E22 7E22 [Preserve][ASCII]
-7E27 NULL [SyntErr]
-7E5C NULL [SyntErr]
-7F22 7F22 [Preserve][ASCII]
-7F27 NULL [SyntErr]
-7F5C NULL [SyntErr]
-8022 8022 [Preserv][MB][ILSEQ]
-8027 NULL [SyntErr]
-805C NULL [SyntErr]
-8122 8122 [Preserv][MB][ILSEQ]
-8127 NULL [SyntErr]
-815C NULL [SyntErr]
-9F22 9F22 [Preserv][MB][ILSEQ]
-9F27 NULL [SyntErr]
-9F5C NULL [SyntErr]
-A022 A022 [Preserv][MB][ILSEQ]
-A027 NULL [SyntErr]
-A05C NULL [SyntErr]
-A122 A122 [Preserv][MB][ILSEQ]
-A127 NULL [SyntErr]
-A15C NULL [SyntErr]
-E022 E022 [Preserv][MB][ILSEQ]
-E027 NULL [SyntErr]
-E05C NULL [SyntErr]
-EF22 EF22 [Preserv][MB][ILSEQ]
-EF27 NULL [SyntErr]
-EF5C NULL [SyntErr]
-F922 F922 [Preserv][MB][ILSEQ]
-F927 NULL [SyntErr]
-F95C NULL [SyntErr]
-FA22 FA22 [Preserv][MB][ILSEQ]
-FA27 NULL [SyntErr]
-FA5C NULL [SyntErr]
-FC22 FC22 [Preserv][MB][ILSEQ]
-FC27 NULL [SyntErr]
-FC5C NULL [SyntErr]
-FD22 FD22 [Preserv][MB][ILSEQ]
-FD27 NULL [SyntErr]
-FD5C NULL [SyntErr]
-FE22 FE22 [Preserv][MB][ILSEQ]
-FE27 NULL [SyntErr]
-FE5C NULL [SyntErr]
-FF22 FF22 [Preserv][MB][ILSEQ]
-FF27 NULL [SyntErr]
-FF5C NULL [SyntErr]
-5C0000 0000 [Trivial]
-5C0008 0008 [Trivial]
-5C0009 0009 [Trivial]
-5C000A 000A [Trivial]
-5C000D 000D [Trivial]
-5C001A 001A [Trivial]
-5C0022 0022 [Trivial]
-5C0025 0025 [Trivial]
-5C0027 NULL [SyntErr]
-5C0030 0030 [Trivial]
-5C003F 003F [Trivial]
-5C0040 0040 [Trivial]
-5C005A 005A [Trivial]
-5C005C NULL [SyntErr]
-5C005F 005F [Trivial]
-5C0061 0061 [Trivial]
-5C0062 0062 [Trivial]
-5C006E 006E [Trivial]
-5C0072 0072 [Trivial]
-5C0074 0074 [Trivial]
-5C007E 007E [Trivial]
-5C007F 007F [Trivial]
-5C0080 0080 [Trivial][ILSEQ]
-5C0081 0081 [Trivial][ILSEQ]
-5C009F 009F [Trivial][ILSEQ]
-5C00A0 00A0 [Trivial][ILSEQ]
-5C00A1 00A1 [Trivial][ILSEQ]
-5C00E0 00E0 [Trivial][ILSEQ]
-5C00EF 00EF [Trivial][ILSEQ]
-5C00F9 00F9 [Trivial][ILSEQ]
-5C00FA 00FA [Trivial][ILSEQ]
-5C00FC 00FC [Trivial][ILSEQ]
-5C00FD 00FD [Trivial][ILSEQ]
-5C00FE 00FE [Trivial][ILSEQ]
-5C00FF 00FF [Trivial][ILSEQ]
-5C0800 0800 [Trivial]
-5C0808 0808 [Trivial]
-5C0809 0809 [Trivial]
-5C080A 080A [Trivial]
-5C080D 080D [Trivial]
-5C081A 081A [Trivial]
-5C0822 0822 [Trivial]
-5C0825 0825 [Trivial]
-5C0827 NULL [SyntErr]
-5C0830 0830 [Trivial]
-5C083F 083F [Trivial]
-5C0840 0840 [Trivial]
-5C085A 085A [Trivial]
-5C085C NULL [SyntErr]
-5C085F 085F [Trivial]
-5C0861 0861 [Trivial]
-5C0862 0862 [Trivial]
-5C086E 086E [Trivial]
-5C0872 0872 [Trivial]
-5C0874 0874 [Trivial]
-5C087E 087E [Trivial]
-5C087F 087F [Trivial]
-5C0880 0880 [Trivial][ILSEQ]
-5C0881 0881 [Trivial][ILSEQ]
-5C089F 089F [Trivial][ILSEQ]
-5C08A0 08A0 [Trivial][ILSEQ]
-5C08A1 08A1 [Trivial][ILSEQ]
-5C08E0 08E0 [Trivial][ILSEQ]
-5C08EF 08EF [Trivial][ILSEQ]
-5C08F9 08F9 [Trivial][ILSEQ]
-5C08FA 08FA [Trivial][ILSEQ]
-5C08FC 08FC [Trivial][ILSEQ]
-5C08FD 08FD [Trivial][ILSEQ]
-5C08FE 08FE [Trivial][ILSEQ]
-5C08FF 08FF [Trivial][ILSEQ]
-5C0900 0900 [Trivial]
-5C0908 0908 [Trivial]
-5C0909 0909 [Trivial]
-5C090A 090A [Trivial]
-5C090D 090D [Trivial]
-5C091A 091A [Trivial]
-5C0922 0922 [Trivial]
-5C0925 0925 [Trivial]
-5C0927 NULL [SyntErr]
-5C0930 0930 [Trivial]
-5C093F 093F [Trivial]
-5C0940 0940 [Trivial]
-5C095A 095A [Trivial]
-5C095C NULL [SyntErr]
-5C095F 095F [Trivial]
-5C0961 0961 [Trivial]
-5C0962 0962 [Trivial]
-5C096E 096E [Trivial]
-5C0972 0972 [Trivial]
-5C0974 0974 [Trivial]
-5C097E 097E [Trivial]
-5C097F 097F [Trivial]
-5C0980 0980 [Trivial][ILSEQ]
-5C0981 0981 [Trivial][ILSEQ]
-5C099F 099F [Trivial][ILSEQ]
-5C09A0 09A0 [Trivial][ILSEQ]
-5C09A1 09A1 [Trivial][ILSEQ]
-5C09E0 09E0 [Trivial][ILSEQ]
-5C09EF 09EF [Trivial][ILSEQ]
-5C09F9 09F9 [Trivial][ILSEQ]
-5C09FA 09FA [Trivial][ILSEQ]
-5C09FC 09FC [Trivial][ILSEQ]
-5C09FD 09FD [Trivial][ILSEQ]
-5C09FE 09FE [Trivial][ILSEQ]
-5C09FF 09FF [Trivial][ILSEQ]
-5C0A00 0A00 [Trivial]
-5C0A08 0A08 [Trivial]
-5C0A09 0A09 [Trivial]
-5C0A0A 0A0A [Trivial]
-5C0A0D 0A0D [Trivial]
-5C0A1A 0A1A [Trivial]
-5C0A22 0A22 [Trivial]
-5C0A25 0A25 [Trivial]
-5C0A27 NULL [SyntErr]
-5C0A30 0A30 [Trivial]
-5C0A3F 0A3F [Trivial]
-5C0A40 0A40 [Trivial]
-5C0A5A 0A5A [Trivial]
-5C0A5C NULL [SyntErr]
-5C0A5F 0A5F [Trivial]
-5C0A61 0A61 [Trivial]
-5C0A62 0A62 [Trivial]
-5C0A6E 0A6E [Trivial]
-5C0A72 0A72 [Trivial]
-5C0A74 0A74 [Trivial]
-5C0A7E 0A7E [Trivial]
-5C0A7F 0A7F [Trivial]
-5C0A80 0A80 [Trivial][ILSEQ]
-5C0A81 0A81 [Trivial][ILSEQ]
-5C0A9F 0A9F [Trivial][ILSEQ]
-5C0AA0 0AA0 [Trivial][ILSEQ]
-5C0AA1 0AA1 [Trivial][ILSEQ]
-5C0AE0 0AE0 [Trivial][ILSEQ]
-5C0AEF 0AEF [Trivial][ILSEQ]
-5C0AF9 0AF9 [Trivial][ILSEQ]
-5C0AFA 0AFA [Trivial][ILSEQ]
-5C0AFC 0AFC [Trivial][ILSEQ]
-5C0AFD 0AFD [Trivial][ILSEQ]
-5C0AFE 0AFE [Trivial][ILSEQ]
-5C0AFF 0AFF [Trivial][ILSEQ]
-5C0D00 0D00 [Trivial]
-5C0D08 0D08 [Trivial]
-5C0D09 0D09 [Trivial]
-5C0D0A 0D0A [Trivial]
-5C0D0D 0D0D [Trivial]
-5C0D1A 0D1A [Trivial]
-5C0D22 0D22 [Trivial]
-5C0D25 0D25 [Trivial]
-5C0D27 NULL [SyntErr]
-5C0D30 0D30 [Trivial]
-5C0D3F 0D3F [Trivial]
-5C0D40 0D40 [Trivial]
-5C0D5A 0D5A [Trivial]
-5C0D5C NULL [SyntErr]
-5C0D5F 0D5F [Trivial]
-5C0D61 0D61 [Trivial]
-5C0D62 0D62 [Trivial]
-5C0D6E 0D6E [Trivial]
-5C0D72 0D72 [Trivial]
-5C0D74 0D74 [Trivial]
-5C0D7E 0D7E [Trivial]
-5C0D7F 0D7F [Trivial]
-5C0D80 0D80 [Trivial][ILSEQ]
-5C0D81 0D81 [Trivial][ILSEQ]
-5C0D9F 0D9F [Trivial][ILSEQ]
-5C0DA0 0DA0 [Trivial][ILSEQ]
-5C0DA1 0DA1 [Trivial][ILSEQ]
-5C0DE0 0DE0 [Trivial][ILSEQ]
-5C0DEF 0DEF [Trivial][ILSEQ]
-5C0DF9 0DF9 [Trivial][ILSEQ]
-5C0DFA 0DFA [Trivial][ILSEQ]
-5C0DFC 0DFC [Trivial][ILSEQ]
-5C0DFD 0DFD [Trivial][ILSEQ]
-5C0DFE 0DFE [Trivial][ILSEQ]
-5C0DFF 0DFF [Trivial][ILSEQ]
-5C1A00 1A00 [Trivial]
-5C1A08 1A08 [Trivial]
-5C1A09 1A09 [Trivial]
-5C1A0A 1A0A [Trivial]
-5C1A0D 1A0D [Trivial]
-5C1A1A 1A1A [Trivial]
-5C1A22 1A22 [Trivial]
-5C1A25 1A25 [Trivial]
-5C1A27 NULL [SyntErr]
-5C1A30 1A30 [Trivial]
-5C1A3F 1A3F [Trivial]
-5C1A40 1A40 [Trivial]
-5C1A5A 1A5A [Trivial]
-5C1A5C NULL [SyntErr]
-5C1A5F 1A5F [Trivial]
-5C1A61 1A61 [Trivial]
-5C1A62 1A62 [Trivial]
-5C1A6E 1A6E [Trivial]
-5C1A72 1A72 [Trivial]
-5C1A74 1A74 [Trivial]
-5C1A7E 1A7E [Trivial]
-5C1A7F 1A7F [Trivial]
-5C1A80 1A80 [Trivial][ILSEQ]
-5C1A81 1A81 [Trivial][ILSEQ]
-5C1A9F 1A9F [Trivial][ILSEQ]
-5C1AA0 1AA0 [Trivial][ILSEQ]
-5C1AA1 1AA1 [Trivial][ILSEQ]
-5C1AE0 1AE0 [Trivial][ILSEQ]
-5C1AEF 1AEF [Trivial][ILSEQ]
-5C1AF9 1AF9 [Trivial][ILSEQ]
-5C1AFA 1AFA [Trivial][ILSEQ]
-5C1AFC 1AFC [Trivial][ILSEQ]
-5C1AFD 1AFD [Trivial][ILSEQ]
-5C1AFE 1AFE [Trivial][ILSEQ]
-5C1AFF 1AFF [Trivial][ILSEQ]
-5C2200 2200 [Trivial]
-5C2208 2208 [Trivial]
-5C2209 2209 [Trivial]
-5C220A 220A [Trivial]
-5C220D 220D [Trivial]
-5C221A 221A [Trivial]
-5C2222 2222 [Trivial]
-5C2225 2225 [Trivial]
-5C2227 NULL [SyntErr]
-5C2230 2230 [Trivial]
-5C223F 223F [Trivial]
-5C2240 2240 [Trivial]
-5C225A 225A [Trivial]
-5C225C NULL [SyntErr]
-5C225F 225F [Trivial]
-5C2261 2261 [Trivial]
-5C2262 2262 [Trivial]
-5C226E 226E [Trivial]
-5C2272 2272 [Trivial]
-5C2274 2274 [Trivial]
-5C227E 227E [Trivial]
-5C227F 227F [Trivial]
-5C2280 2280 [Trivial][ILSEQ]
-5C2281 2281 [Trivial][ILSEQ]
-5C229F 229F [Trivial][ILSEQ]
-5C22A0 22A0 [Trivial][ILSEQ]
-5C22A1 22A1 [Trivial][ILSEQ]
-5C22E0 22E0 [Trivial][ILSEQ]
-5C22EF 22EF [Trivial][ILSEQ]
-5C22F9 22F9 [Trivial][ILSEQ]
-5C22FA 22FA [Trivial][ILSEQ]
-5C22FC 22FC [Trivial][ILSEQ]
-5C22FD 22FD [Trivial][ILSEQ]
-5C22FE 22FE [Trivial][ILSEQ]
-5C22FF 22FF [Trivial][ILSEQ]
-5C2500 5C2500 [Preserve][LIKE]
-5C2508 5C2508 [Preserve][LIKE]
-5C2509 5C2509 [Preserve][LIKE]
-5C250A 5C250A [Preserve][LIKE]
-5C250D 5C250D [Preserve][LIKE]
-5C251A 5C251A [Preserve][LIKE]
-5C2522 5C2522 [Preserve][LIKE]
-5C2525 5C2525 [Preserve][LIKE]
-5C2527 NULL [SyntErr]
-5C2530 5C2530 [Preserve][LIKE]
-5C253F 5C253F [Preserve][LIKE]
-5C2540 5C2540 [Preserve][LIKE]
-5C255A 5C255A [Preserve][LIKE]
-5C255C NULL [SyntErr]
-5C255F 5C255F [Preserve][LIKE]
-5C2561 5C2561 [Preserve][LIKE]
-5C2562 5C2562 [Preserve][LIKE]
-5C256E 5C256E [Preserve][LIKE]
-5C2572 5C2572 [Preserve][LIKE]
-5C2574 5C2574 [Preserve][LIKE]
-5C257E 5C257E [Preserve][LIKE]
-5C257F 5C257F [Preserve][LIKE]
-5C2580 5C2580 [Preserve][LIKE][ILSEQ]
-5C2581 5C2581 [Preserve][LIKE][ILSEQ]
-5C259F 5C259F [Preserve][LIKE][ILSEQ]
-5C25A0 5C25A0 [Preserve][LIKE][ILSEQ]
-5C25A1 5C25A1 [Preserve][LIKE][ILSEQ]
-5C25E0 5C25E0 [Preserve][LIKE][ILSEQ]
-5C25EF 5C25EF [Preserve][LIKE][ILSEQ]
-5C25F9 5C25F9 [Preserve][LIKE][ILSEQ]
-5C25FA 5C25FA [Preserve][LIKE][ILSEQ]
-5C25FC 5C25FC [Preserve][LIKE][ILSEQ]
-5C25FD 5C25FD [Preserve][LIKE][ILSEQ]
-5C25FE 5C25FE [Preserve][LIKE][ILSEQ]
-5C25FF 5C25FF [Preserve][LIKE][ILSEQ]
-5C2700 2700 [Trivial]
-5C2708 2708 [Trivial]
-5C2709 2709 [Trivial]
-5C270A 270A [Trivial]
-5C270D 270D [Trivial]
-5C271A 271A [Trivial]
-5C2722 2722 [Trivial]
-5C2725 2725 [Trivial]
-5C2727 NULL [SyntErr]
-5C2730 2730 [Trivial]
-5C273F 273F [Trivial]
-5C2740 2740 [Trivial]
-5C275A 275A [Trivial]
-5C275C NULL [SyntErr]
-5C275F 275F [Trivial]
-5C2761 2761 [Trivial]
-5C2762 2762 [Trivial]
-5C276E 276E [Trivial]
-5C2772 2772 [Trivial]
-5C2774 2774 [Trivial]
-5C277E 277E [Trivial]
-5C277F 277F [Trivial]
-5C2780 2780 [Trivial][ILSEQ]
-5C2781 2781 [Trivial][ILSEQ]
-5C279F 279F [Trivial][ILSEQ]
-5C27A0 27A0 [Trivial][ILSEQ]
-5C27A1 27A1 [Trivial][ILSEQ]
-5C27E0 27E0 [Trivial][ILSEQ]
-5C27EF 27EF [Trivial][ILSEQ]
-5C27F9 27F9 [Trivial][ILSEQ]
-5C27FA 27FA [Trivial][ILSEQ]
-5C27FC 27FC [Trivial][ILSEQ]
-5C27FD 27FD [Trivial][ILSEQ]
-5C27FE 27FE [Trivial][ILSEQ]
-5C27FF 27FF [Trivial][ILSEQ]
-5C3000 0000 [Regular]
-5C3008 0008 [Regular]
-5C3009 0009 [Regular]
-5C300A 000A [Regular]
-5C300D 000D [Regular]
-5C301A 001A [Regular]
-5C3022 0022 [Regular]
-5C3025 0025 [Regular]
-5C3027 NULL [SyntErr]
-5C3030 0030 [Regular]
-5C303F 003F [Regular]
-5C3040 0040 [Regular]
-5C305A 005A [Regular]
-5C305C NULL [SyntErr]
-5C305F 005F [Regular]
-5C3061 0061 [Regular]
-5C3062 0062 [Regular]
-5C306E 006E [Regular]
-5C3072 0072 [Regular]
-5C3074 0074 [Regular]
-5C307E 007E [Regular]
-5C307F 007F [Regular]
-5C3080 0080 [Regular][ILSEQ]
-5C3081 0081 [Regular][ILSEQ]
-5C309F 009F [Regular][ILSEQ]
-5C30A0 00A0 [Regular][ILSEQ]
-5C30A1 00A1 [Regular][ILSEQ]
-5C30E0 00E0 [Regular][ILSEQ]
-5C30EF 00EF [Regular][ILSEQ]
-5C30F9 00F9 [Regular][ILSEQ]
-5C30FA 00FA [Regular][ILSEQ]
-5C30FC 00FC [Regular][ILSEQ]
-5C30FD 00FD [Regular][ILSEQ]
-5C30FE 00FE [Regular][ILSEQ]
-5C30FF 00FF [Regular][ILSEQ]
-5C3F00 3F00 [Trivial]
-5C3F08 3F08 [Trivial]
-5C3F09 3F09 [Trivial]
-5C3F0A 3F0A [Trivial]
-5C3F0D 3F0D [Trivial]
-5C3F1A 3F1A [Trivial]
-5C3F22 3F22 [Trivial]
-5C3F25 3F25 [Trivial]
-5C3F27 NULL [SyntErr]
-5C3F30 3F30 [Trivial]
-5C3F3F 3F3F [Trivial]
-5C3F40 3F40 [Trivial]
-5C3F5A 3F5A [Trivial]
-5C3F5C NULL [SyntErr]
-5C3F5F 3F5F [Trivial]
-5C3F61 3F61 [Trivial]
-5C3F62 3F62 [Trivial]
-5C3F6E 3F6E [Trivial]
-5C3F72 3F72 [Trivial]
-5C3F74 3F74 [Trivial]
-5C3F7E 3F7E [Trivial]
-5C3F7F 3F7F [Trivial]
-5C3F80 3F80 [Trivial][ILSEQ]
-5C3F81 3F81 [Trivial][ILSEQ]
-5C3F9F 3F9F [Trivial][ILSEQ]
-5C3FA0 3FA0 [Trivial][ILSEQ]
-5C3FA1 3FA1 [Trivial][ILSEQ]
-5C3FE0 3FE0 [Trivial][ILSEQ]
-5C3FEF 3FEF [Trivial][ILSEQ]
-5C3FF9 3FF9 [Trivial][ILSEQ]
-5C3FFA 3FFA [Trivial][ILSEQ]
-5C3FFC 3FFC [Trivial][ILSEQ]
-5C3FFD 3FFD [Trivial][ILSEQ]
-5C3FFE 3FFE [Trivial][ILSEQ]
-5C3FFF 3FFF [Trivial][ILSEQ]
-5C4000 4000 [Trivial]
-5C4008 4008 [Trivial]
-5C4009 4009 [Trivial]
-5C400A 400A [Trivial]
-5C400D 400D [Trivial]
-5C401A 401A [Trivial]
-5C4022 4022 [Trivial]
-5C4025 4025 [Trivial]
-5C4027 NULL [SyntErr]
-5C4030 4030 [Trivial]
-5C403F 403F [Trivial]
-5C4040 4040 [Trivial]
-5C405A 405A [Trivial]
-5C405C NULL [SyntErr]
-5C405F 405F [Trivial]
-5C4061 4061 [Trivial]
-5C4062 4062 [Trivial]
-5C406E 406E [Trivial]
-5C4072 4072 [Trivial]
-5C4074 4074 [Trivial]
-5C407E 407E [Trivial]
-5C407F 407F [Trivial]
-5C4080 4080 [Trivial][ILSEQ]
-5C4081 4081 [Trivial][ILSEQ]
-5C409F 409F [Trivial][ILSEQ]
-5C40A0 40A0 [Trivial][ILSEQ]
-5C40A1 40A1 [Trivial][ILSEQ]
-5C40E0 40E0 [Trivial][ILSEQ]
-5C40EF 40EF [Trivial][ILSEQ]
-5C40F9 40F9 [Trivial][ILSEQ]
-5C40FA 40FA [Trivial][ILSEQ]
-5C40FC 40FC [Trivial][ILSEQ]
-5C40FD 40FD [Trivial][ILSEQ]
-5C40FE 40FE [Trivial][ILSEQ]
-5C40FF 40FF [Trivial][ILSEQ]
-5C5A00 1A00 [Regular]
-5C5A08 1A08 [Regular]
-5C5A09 1A09 [Regular]
-5C5A0A 1A0A [Regular]
-5C5A0D 1A0D [Regular]
-5C5A1A 1A1A [Regular]
-5C5A22 1A22 [Regular]
-5C5A25 1A25 [Regular]
-5C5A27 NULL [SyntErr]
-5C5A30 1A30 [Regular]
-5C5A3F 1A3F [Regular]
-5C5A40 1A40 [Regular]
-5C5A5A 1A5A [Regular]
-5C5A5C NULL [SyntErr]
-5C5A5F 1A5F [Regular]
-5C5A61 1A61 [Regular]
-5C5A62 1A62 [Regular]
-5C5A6E 1A6E [Regular]
-5C5A72 1A72 [Regular]
-5C5A74 1A74 [Regular]
-5C5A7E 1A7E [Regular]
-5C5A7F 1A7F [Regular]
-5C5A80 1A80 [Regular][ILSEQ]
-5C5A81 1A81 [Regular][ILSEQ]
-5C5A9F 1A9F [Regular][ILSEQ]
-5C5AA0 1AA0 [Regular][ILSEQ]
-5C5AA1 1AA1 [Regular][ILSEQ]
-5C5AE0 1AE0 [Regular][ILSEQ]
-5C5AEF 1AEF [Regular][ILSEQ]
-5C5AF9 1AF9 [Regular][ILSEQ]
-5C5AFA 1AFA [Regular][ILSEQ]
-5C5AFC 1AFC [Regular][ILSEQ]
-5C5AFD 1AFD [Regular][ILSEQ]
-5C5AFE 1AFE [Regular][ILSEQ]
-5C5AFF 1AFF [Regular][ILSEQ]
-5C5C00 5C00 [Regular]
-5C5C08 5C08 [Regular]
-5C5C09 5C09 [Regular]
-5C5C0A 5C0A [Regular]
-5C5C0D 5C0D [Regular]
-5C5C1A 5C1A [Regular]
-5C5C22 5C22 [Regular]
-5C5C25 5C25 [Regular]
-5C5C27 NULL [SyntErr]
-5C5C30 5C30 [Regular]
-5C5C3F 5C3F [Regular]
-5C5C40 5C40 [Regular]
-5C5C5A 5C5A [Regular]
-5C5C5C NULL [SyntErr]
-5C5C5F 5C5F [Regular]
-5C5C61 5C61 [Regular]
-5C5C62 5C62 [Regular]
-5C5C6E 5C6E [Regular]
-5C5C72 5C72 [Regular]
-5C5C74 5C74 [Regular]
-5C5C7E 5C7E [Regular]
-5C5C7F 5C7F [Regular]
-5C5C80 5C80 [Regular][ILSEQ]
-5C5C81 5C81 [Regular][ILSEQ]
-5C5C9F 5C9F [Regular][ILSEQ]
-5C5CA0 5CA0 [Regular][ILSEQ]
-5C5CA1 5CA1 [Regular][ILSEQ]
-5C5CE0 5CE0 [Regular][ILSEQ]
-5C5CEF 5CEF [Regular][ILSEQ]
-5C5CF9 5CF9 [Regular][ILSEQ]
-5C5CFA 5CFA [Regular][ILSEQ]
-5C5CFC 5CFC [Regular][ILSEQ]
-5C5CFD 5CFD [Regular][ILSEQ]
-5C5CFE 5CFE [Regular][ILSEQ]
-5C5CFF 5CFF [Regular][ILSEQ]
-5C5F00 5C5F00 [Preserve][LIKE]
-5C5F08 5C5F08 [Preserve][LIKE]
-5C5F09 5C5F09 [Preserve][LIKE]
-5C5F0A 5C5F0A [Preserve][LIKE]
-5C5F0D 5C5F0D [Preserve][LIKE]
-5C5F1A 5C5F1A [Preserve][LIKE]
-5C5F22 5C5F22 [Preserve][LIKE]
-5C5F25 5C5F25 [Preserve][LIKE]
-5C5F27 NULL [SyntErr]
-5C5F30 5C5F30 [Preserve][LIKE]
-5C5F3F 5C5F3F [Preserve][LIKE]
-5C5F40 5C5F40 [Preserve][LIKE]
-5C5F5A 5C5F5A [Preserve][LIKE]
-5C5F5C NULL [SyntErr]
-5C5F5F 5C5F5F [Preserve][LIKE]
-5C5F61 5C5F61 [Preserve][LIKE]
-5C5F62 5C5F62 [Preserve][LIKE]
-5C5F6E 5C5F6E [Preserve][LIKE]
-5C5F72 5C5F72 [Preserve][LIKE]
-5C5F74 5C5F74 [Preserve][LIKE]
-5C5F7E 5C5F7E [Preserve][LIKE]
-5C5F7F 5C5F7F [Preserve][LIKE]
-5C5F80 5C5F80 [Preserve][LIKE][ILSEQ]
-5C5F81 5C5F81 [Preserve][LIKE][ILSEQ]
-5C5F9F 5C5F9F [Preserve][LIKE][ILSEQ]
-5C5FA0 5C5FA0 [Preserve][LIKE][ILSEQ]
-5C5FA1 5C5FA1 [Preserve][LIKE][ILSEQ]
-5C5FE0 5C5FE0 [Preserve][LIKE][ILSEQ]
-5C5FEF 5C5FEF [Preserve][LIKE][ILSEQ]
-5C5FF9 5C5FF9 [Preserve][LIKE][ILSEQ]
-5C5FFA 5C5FFA [Preserve][LIKE][ILSEQ]
-5C5FFC 5C5FFC [Preserve][LIKE][ILSEQ]
-5C5FFD 5C5FFD [Preserve][LIKE][ILSEQ]
-5C5FFE 5C5FFE [Preserve][LIKE][ILSEQ]
-5C5FFF 5C5FFF [Preserve][LIKE][ILSEQ]
-5C6100 6100 [Trivial]
-5C6108 6108 [Trivial]
-5C6109 6109 [Trivial]
-5C610A 610A [Trivial]
-5C610D 610D [Trivial]
-5C611A 611A [Trivial]
-5C6122 6122 [Trivial]
-5C6125 6125 [Trivial]
-5C6127 NULL [SyntErr]
-5C6130 6130 [Trivial]
-5C613F 613F [Trivial]
-5C6140 6140 [Trivial]
-5C615A 615A [Trivial]
-5C615C NULL [SyntErr]
-5C615F 615F [Trivial]
-5C6161 6161 [Trivial]
-5C6162 6162 [Trivial]
-5C616E 616E [Trivial]
-5C6172 6172 [Trivial]
-5C6174 6174 [Trivial]
-5C617E 617E [Trivial]
-5C617F 617F [Trivial]
-5C6180 6180 [Trivial][ILSEQ]
-5C6181 6181 [Trivial][ILSEQ]
-5C619F 619F [Trivial][ILSEQ]
-5C61A0 61A0 [Trivial][ILSEQ]
-5C61A1 61A1 [Trivial][ILSEQ]
-5C61E0 61E0 [Trivial][ILSEQ]
-5C61EF 61EF [Trivial][ILSEQ]
-5C61F9 61F9 [Trivial][ILSEQ]
-5C61FA 61FA [Trivial][ILSEQ]
-5C61FC 61FC [Trivial][ILSEQ]
-5C61FD 61FD [Trivial][ILSEQ]
-5C61FE 61FE [Trivial][ILSEQ]
-5C61FF 61FF [Trivial][ILSEQ]
-5C6200 0800 [Regular]
-5C6208 0808 [Regular]
-5C6209 0809 [Regular]
-5C620A 080A [Regular]
-5C620D 080D [Regular]
-5C621A 081A [Regular]
-5C6222 0822 [Regular]
-5C6225 0825 [Regular]
-5C6227 NULL [SyntErr]
-5C6230 0830 [Regular]
-5C623F 083F [Regular]
-5C6240 0840 [Regular]
-5C625A 085A [Regular]
-5C625C NULL [SyntErr]
-5C625F 085F [Regular]
-5C6261 0861 [Regular]
-5C6262 0862 [Regular]
-5C626E 086E [Regular]
-5C6272 0872 [Regular]
-5C6274 0874 [Regular]
-5C627E 087E [Regular]
-5C627F 087F [Regular]
-5C6280 0880 [Regular][ILSEQ]
-5C6281 0881 [Regular][ILSEQ]
-5C629F 089F [Regular][ILSEQ]
-5C62A0 08A0 [Regular][ILSEQ]
-5C62A1 08A1 [Regular][ILSEQ]
-5C62E0 08E0 [Regular][ILSEQ]
-5C62EF 08EF [Regular][ILSEQ]
-5C62F9 08F9 [Regular][ILSEQ]
-5C62FA 08FA [Regular][ILSEQ]
-5C62FC 08FC [Regular][ILSEQ]
-5C62FD 08FD [Regular][ILSEQ]
-5C62FE 08FE [Regular][ILSEQ]
-5C62FF 08FF [Regular][ILSEQ]
-5C6E00 0A00 [Regular]
-5C6E08 0A08 [Regular]
-5C6E09 0A09 [Regular]
-5C6E0A 0A0A [Regular]
-5C6E0D 0A0D [Regular]
-5C6E1A 0A1A [Regular]
-5C6E22 0A22 [Regular]
-5C6E25 0A25 [Regular]
-5C6E27 NULL [SyntErr]
-5C6E30 0A30 [Regular]
-5C6E3F 0A3F [Regular]
-5C6E40 0A40 [Regular]
-5C6E5A 0A5A [Regular]
-5C6E5C NULL [SyntErr]
-5C6E5F 0A5F [Regular]
-5C6E61 0A61 [Regular]
-5C6E62 0A62 [Regular]
-5C6E6E 0A6E [Regular]
-5C6E72 0A72 [Regular]
-5C6E74 0A74 [Regular]
-5C6E7E 0A7E [Regular]
-5C6E7F 0A7F [Regular]
-5C6E80 0A80 [Regular][ILSEQ]
-5C6E81 0A81 [Regular][ILSEQ]
-5C6E9F 0A9F [Regular][ILSEQ]
-5C6EA0 0AA0 [Regular][ILSEQ]
-5C6EA1 0AA1 [Regular][ILSEQ]
-5C6EE0 0AE0 [Regular][ILSEQ]
-5C6EEF 0AEF [Regular][ILSEQ]
-5C6EF9 0AF9 [Regular][ILSEQ]
-5C6EFA 0AFA [Regular][ILSEQ]
-5C6EFC 0AFC [Regular][ILSEQ]
-5C6EFD 0AFD [Regular][ILSEQ]
-5C6EFE 0AFE [Regular][ILSEQ]
-5C6EFF 0AFF [Regular][ILSEQ]
-5C7200 0D00 [Regular]
-5C7208 0D08 [Regular]
-5C7209 0D09 [Regular]
-5C720A 0D0A [Regular]
-5C720D 0D0D [Regular]
-5C721A 0D1A [Regular]
-5C7222 0D22 [Regular]
-5C7225 0D25 [Regular]
-5C7227 NULL [SyntErr]
-5C7230 0D30 [Regular]
-5C723F 0D3F [Regular]
-5C7240 0D40 [Regular]
-5C725A 0D5A [Regular]
-5C725C NULL [SyntErr]
-5C725F 0D5F [Regular]
-5C7261 0D61 [Regular]
-5C7262 0D62 [Regular]
-5C726E 0D6E [Regular]
-5C7272 0D72 [Regular]
-5C7274 0D74 [Regular]
-5C727E 0D7E [Regular]
-5C727F 0D7F [Regular]
-5C7280 0D80 [Regular][ILSEQ]
-5C7281 0D81 [Regular][ILSEQ]
-5C729F 0D9F [Regular][ILSEQ]
-5C72A0 0DA0 [Regular][ILSEQ]
-5C72A1 0DA1 [Regular][ILSEQ]
-5C72E0 0DE0 [Regular][ILSEQ]
-5C72EF 0DEF [Regular][ILSEQ]
-5C72F9 0DF9 [Regular][ILSEQ]
-5C72FA 0DFA [Regular][ILSEQ]
-5C72FC 0DFC [Regular][ILSEQ]
-5C72FD 0DFD [Regular][ILSEQ]
-5C72FE 0DFE [Regular][ILSEQ]
-5C72FF 0DFF [Regular][ILSEQ]
-5C7400 0900 [Regular]
-5C7408 0908 [Regular]
-5C7409 0909 [Regular]
-5C740A 090A [Regular]
-5C740D 090D [Regular]
-5C741A 091A [Regular]
-5C7422 0922 [Regular]
-5C7425 0925 [Regular]
-5C7427 NULL [SyntErr]
-5C7430 0930 [Regular]
-5C743F 093F [Regular]
-5C7440 0940 [Regular]
-5C745A 095A [Regular]
-5C745C NULL [SyntErr]
-5C745F 095F [Regular]
-5C7461 0961 [Regular]
-5C7462 0962 [Regular]
-5C746E 096E [Regular]
-5C7472 0972 [Regular]
-5C7474 0974 [Regular]
-5C747E 097E [Regular]
-5C747F 097F [Regular]
-5C7480 0980 [Regular][ILSEQ]
-5C7481 0981 [Regular][ILSEQ]
-5C749F 099F [Regular][ILSEQ]
-5C74A0 09A0 [Regular][ILSEQ]
-5C74A1 09A1 [Regular][ILSEQ]
-5C74E0 09E0 [Regular][ILSEQ]
-5C74EF 09EF [Regular][ILSEQ]
-5C74F9 09F9 [Regular][ILSEQ]
-5C74FA 09FA [Regular][ILSEQ]
-5C74FC 09FC [Regular][ILSEQ]
-5C74FD 09FD [Regular][ILSEQ]
-5C74FE 09FE [Regular][ILSEQ]
-5C74FF 09FF [Regular][ILSEQ]
-5C7E00 7E00 [Trivial]
-5C7E08 7E08 [Trivial]
-5C7E09 7E09 [Trivial]
-5C7E0A 7E0A [Trivial]
-5C7E0D 7E0D [Trivial]
-5C7E1A 7E1A [Trivial]
-5C7E22 7E22 [Trivial]
-5C7E25 7E25 [Trivial]
-5C7E27 NULL [SyntErr]
-5C7E30 7E30 [Trivial]
-5C7E3F 7E3F [Trivial]
-5C7E40 7E40 [Trivial]
-5C7E5A 7E5A [Trivial]
-5C7E5C NULL [SyntErr]
-5C7E5F 7E5F [Trivial]
-5C7E61 7E61 [Trivial]
-5C7E62 7E62 [Trivial]
-5C7E6E 7E6E [Trivial]
-5C7E72 7E72 [Trivial]
-5C7E74 7E74 [Trivial]
-5C7E7E 7E7E [Trivial]
-5C7E7F 7E7F [Trivial]
-5C7E80 7E80 [Trivial][ILSEQ]
-5C7E81 7E81 [Trivial][ILSEQ]
-5C7E9F 7E9F [Trivial][ILSEQ]
-5C7EA0 7EA0 [Trivial][ILSEQ]
-5C7EA1 7EA1 [Trivial][ILSEQ]
-5C7EE0 7EE0 [Trivial][ILSEQ]
-5C7EEF 7EEF [Trivial][ILSEQ]
-5C7EF9 7EF9 [Trivial][ILSEQ]
-5C7EFA 7EFA [Trivial][ILSEQ]
-5C7EFC 7EFC [Trivial][ILSEQ]
-5C7EFD 7EFD [Trivial][ILSEQ]
-5C7EFE 7EFE [Trivial][ILSEQ]
-5C7EFF 7EFF [Trivial][ILSEQ]
-5C7F00 7F00 [Trivial]
-5C7F08 7F08 [Trivial]
-5C7F09 7F09 [Trivial]
-5C7F0A 7F0A [Trivial]
-5C7F0D 7F0D [Trivial]
-5C7F1A 7F1A [Trivial]
-5C7F22 7F22 [Trivial]
-5C7F25 7F25 [Trivial]
-5C7F27 NULL [SyntErr]
-5C7F30 7F30 [Trivial]
-5C7F3F 7F3F [Trivial]
-5C7F40 7F40 [Trivial]
-5C7F5A 7F5A [Trivial]
-5C7F5C NULL [SyntErr]
-5C7F5F 7F5F [Trivial]
-5C7F61 7F61 [Trivial]
-5C7F62 7F62 [Trivial]
-5C7F6E 7F6E [Trivial]
-5C7F72 7F72 [Trivial]
-5C7F74 7F74 [Trivial]
-5C7F7E 7F7E [Trivial]
-5C7F7F 7F7F [Trivial]
-5C7F80 7F80 [Trivial][ILSEQ]
-5C7F81 7F81 [Trivial][ILSEQ]
-5C7F9F 7F9F [Trivial][ILSEQ]
-5C7FA0 7FA0 [Trivial][ILSEQ]
-5C7FA1 7FA1 [Trivial][ILSEQ]
-5C7FE0 7FE0 [Trivial][ILSEQ]
-5C7FEF 7FEF [Trivial][ILSEQ]
-5C7FF9 7FF9 [Trivial][ILSEQ]
-5C7FFA 7FFA [Trivial][ILSEQ]
-5C7FFC 7FFC [Trivial][ILSEQ]
-5C7FFD 7FFD [Trivial][ILSEQ]
-5C7FFE 7FFE [Trivial][ILSEQ]
-5C7FFF 7FFF [Trivial][ILSEQ]
-5C8000 8000 [Trivial][ILSEQ]
-5C8008 8008 [Trivial][ILSEQ]
-5C8009 8009 [Trivial][ILSEQ]
-5C800A 800A [Trivial][ILSEQ]
-5C800D 800D [Trivial][ILSEQ]
-5C801A 801A [Trivial][ILSEQ]
-5C8022 8022 [Trivial][ILSEQ]
-5C8025 8025 [Trivial][ILSEQ]
-5C8027 NULL [SyntErr]
-5C8030 8030 [Trivial][ILSEQ]
-5C803F 803F [Trivial][ILSEQ]
-5C8040 8040 [Trivial][ILSEQ]
-5C805A 805A [Trivial][ILSEQ]
-5C805C NULL [SyntErr]
-5C805F 805F [Trivial][ILSEQ]
-5C8061 8061 [Trivial][ILSEQ]
-5C8062 8062 [Trivial][ILSEQ]
-5C806E 806E [Trivial][ILSEQ]
-5C8072 8072 [Trivial][ILSEQ]
-5C8074 8074 [Trivial][ILSEQ]
-5C807E 807E [Trivial][ILSEQ]
-5C807F 807F [Trivial][ILSEQ]
-5C8080 8080 [Trivial][ILSEQ]
-5C8081 8081 [Trivial][ILSEQ]
-5C809F 809F [Trivial][ILSEQ]
-5C80A0 80A0 [Trivial][ILSEQ]
-5C80A1 80A1 [Trivial][ILSEQ]
-5C80E0 80E0 [Trivial][ILSEQ]
-5C80EF 80EF [Trivial][ILSEQ]
-5C80F9 80F9 [Trivial][ILSEQ]
-5C80FA 80FA [Trivial][ILSEQ]
-5C80FC 80FC [Trivial][ILSEQ]
-5C80FD 80FD [Trivial][ILSEQ]
-5C80FE 80FE [Trivial][ILSEQ]
-5C80FF 80FF [Trivial][ILSEQ]
-5C8100 8100 [Trivial][ILSEQ]
-5C8108 8108 [Trivial][ILSEQ]
-5C8109 8109 [Trivial][ILSEQ]
-5C810A 810A [Trivial][ILSEQ]
-5C810D 810D [Trivial][ILSEQ]
-5C811A 811A [Trivial][ILSEQ]
-5C8122 8122 [Trivial][ILSEQ]
-5C8125 8125 [Trivial][ILSEQ]
-5C8127 NULL [SyntErr]
-5C8130 8130 [Trivial][ILSEQ]
-5C813F 813F [Trivial][ILSEQ]
-5C8140 8140 [Trivial][ILSEQ]
-5C815A 815A [Trivial][ILSEQ]
-5C815C NULL [SyntErr]
-5C815F 815F [Trivial][ILSEQ]
-5C8161 8161 [Trivial][ILSEQ]
-5C8162 8162 [Trivial][ILSEQ]
-5C816E 816E [Trivial][ILSEQ]
-5C8172 8172 [Trivial][ILSEQ]
-5C8174 8174 [Trivial][ILSEQ]
-5C817E 817E [Trivial][ILSEQ]
-5C817F 817F [Trivial][ILSEQ]
-5C8180 8180 [Trivial][ILSEQ]
-5C8181 8181 [Trivial][ILSEQ]
-5C819F 819F [Trivial][ILSEQ]
-5C81A0 81A0 [Trivial][ILSEQ]
-5C81A1 81A1 [Trivial][ILSEQ]
-5C81E0 81E0 [Trivial][ILSEQ]
-5C81EF 81EF [Trivial][ILSEQ]
-5C81F9 81F9 [Trivial][ILSEQ]
-5C81FA 81FA [Trivial][ILSEQ]
-5C81FC 81FC [Trivial][ILSEQ]
-5C81FD 81FD [Trivial][ILSEQ]
-5C81FE 81FE [Trivial][ILSEQ]
-5C81FF 81FF [Trivial][ILSEQ]
-5C9F00 9F00 [Trivial][ILSEQ]
-5C9F08 9F08 [Trivial][ILSEQ]
-5C9F09 9F09 [Trivial][ILSEQ]
-5C9F0A 9F0A [Trivial][ILSEQ]
-5C9F0D 9F0D [Trivial][ILSEQ]
-5C9F1A 9F1A [Trivial][ILSEQ]
-5C9F22 9F22 [Trivial][ILSEQ]
-5C9F25 9F25 [Trivial][ILSEQ]
-5C9F27 NULL [SyntErr]
-5C9F30 9F30 [Trivial][ILSEQ]
-5C9F3F 9F3F [Trivial][ILSEQ]
-5C9F40 9F40 [Trivial][ILSEQ]
-5C9F5A 9F5A [Trivial][ILSEQ]
-5C9F5C NULL [SyntErr]
-5C9F5F 9F5F [Trivial][ILSEQ]
-5C9F61 9F61 [Trivial][ILSEQ]
-5C9F62 9F62 [Trivial][ILSEQ]
-5C9F6E 9F6E [Trivial][ILSEQ]
-5C9F72 9F72 [Trivial][ILSEQ]
-5C9F74 9F74 [Trivial][ILSEQ]
-5C9F7E 9F7E [Trivial][ILSEQ]
-5C9F7F 9F7F [Trivial][ILSEQ]
-5C9F80 9F80 [Trivial][ILSEQ]
-5C9F81 9F81 [Trivial][ILSEQ]
-5C9F9F 9F9F [Trivial][ILSEQ]
-5C9FA0 9FA0 [Trivial][ILSEQ]
-5C9FA1 9FA1 [Trivial][ILSEQ]
-5C9FE0 9FE0 [Trivial][ILSEQ]
-5C9FEF 9FEF [Trivial][ILSEQ]
-5C9FF9 9FF9 [Trivial][ILSEQ]
-5C9FFA 9FFA [Trivial][ILSEQ]
-5C9FFC 9FFC [Trivial][ILSEQ]
-5C9FFD 9FFD [Trivial][ILSEQ]
-5C9FFE 9FFE [Trivial][ILSEQ]
-5C9FFF 9FFF [Trivial][ILSEQ]
-5CA000 A000 [Trivial][ILSEQ]
-5CA008 A008 [Trivial][ILSEQ]
-5CA009 A009 [Trivial][ILSEQ]
-5CA00A A00A [Trivial][ILSEQ]
-5CA00D A00D [Trivial][ILSEQ]
-5CA01A A01A [Trivial][ILSEQ]
-5CA022 A022 [Trivial][ILSEQ]
-5CA025 A025 [Trivial][ILSEQ]
-5CA027 NULL [SyntErr]
-5CA030 A030 [Trivial][ILSEQ]
-5CA03F A03F [Trivial][ILSEQ]
-5CA040 A040 [Trivial][ILSEQ]
-5CA05A A05A [Trivial][ILSEQ]
-5CA05C NULL [SyntErr]
-5CA05F A05F [Trivial][ILSEQ]
-5CA061 A061 [Trivial][ILSEQ]
-5CA062 A062 [Trivial][ILSEQ]
-5CA06E A06E [Trivial][ILSEQ]
-5CA072 A072 [Trivial][ILSEQ]
-5CA074 A074 [Trivial][ILSEQ]
-5CA07E A07E [Trivial][ILSEQ]
-5CA07F A07F [Trivial][ILSEQ]
-5CA080 A080 [Trivial][ILSEQ]
-5CA081 A081 [Trivial][ILSEQ]
-5CA09F A09F [Trivial][ILSEQ]
-5CA0A0 A0A0 [Trivial][ILSEQ]
-5CA0A1 A0A1 [Trivial][ILSEQ]
-5CA0E0 A0E0 [Trivial][ILSEQ]
-5CA0EF A0EF [Trivial][ILSEQ]
-5CA0F9 A0F9 [Trivial][ILSEQ]
-5CA0FA A0FA [Trivial][ILSEQ]
-5CA0FC A0FC [Trivial][ILSEQ]
-5CA0FD A0FD [Trivial][ILSEQ]
-5CA0FE A0FE [Trivial][ILSEQ]
-5CA0FF A0FF [Trivial][ILSEQ]
-5CA100 A100 [Trivial][ILSEQ]
-5CA108 A108 [Trivial][ILSEQ]
-5CA109 A109 [Trivial][ILSEQ]
-5CA10A A10A [Trivial][ILSEQ]
-5CA10D A10D [Trivial][ILSEQ]
-5CA11A A11A [Trivial][ILSEQ]
-5CA122 A122 [Trivial][ILSEQ]
-5CA125 A125 [Trivial][ILSEQ]
-5CA127 NULL [SyntErr]
-5CA130 A130 [Trivial][ILSEQ]
-5CA13F A13F [Trivial][ILSEQ]
-5CA140 A140 [Trivial][ILSEQ]
-5CA15A A15A [Trivial][ILSEQ]
-5CA15C NULL [SyntErr]
-5CA15F A15F [Trivial][ILSEQ]
-5CA161 A161 [Trivial][ILSEQ]
-5CA162 A162 [Trivial][ILSEQ]
-5CA16E A16E [Trivial][ILSEQ]
-5CA172 A172 [Trivial][ILSEQ]
-5CA174 A174 [Trivial][ILSEQ]
-5CA17E A17E [Trivial][ILSEQ]
-5CA17F A17F [Trivial][ILSEQ]
-5CA180 A180 [Trivial][ILSEQ]
-5CA181 A181 [Trivial][ILSEQ]
-5CA19F A19F [Trivial][ILSEQ]
-5CA1A0 A1A0 [Trivial][ILSEQ]
-5CA1A1 A1A1 [Trivial]
-5CA1E0 A1E0 [Trivial]
-5CA1EF A1EF [Trivial]
-5CA1F9 A1F9 [Trivial]
-5CA1FA A1FA [Trivial]
-5CA1FC A1FC [Trivial]
-5CA1FD A1FD [Trivial]
-5CA1FE A1FE [Trivial]
-5CA1FF A1FF [Trivial][ILSEQ]
-5CE000 E000 [Trivial][ILSEQ]
-5CE008 E008 [Trivial][ILSEQ]
-5CE009 E009 [Trivial][ILSEQ]
-5CE00A E00A [Trivial][ILSEQ]
-5CE00D E00D [Trivial][ILSEQ]
-5CE01A E01A [Trivial][ILSEQ]
-5CE022 E022 [Trivial][ILSEQ]
-5CE025 E025 [Trivial][ILSEQ]
-5CE027 NULL [SyntErr]
-5CE030 E030 [Trivial][ILSEQ]
-5CE03F E03F [Trivial][ILSEQ]
-5CE040 E040 [Trivial][ILSEQ]
-5CE05A E05A [Trivial][ILSEQ]
-5CE05C NULL [SyntErr]
-5CE05F E05F [Trivial][ILSEQ]
-5CE061 E061 [Trivial][ILSEQ]
-5CE062 E062 [Trivial][ILSEQ]
-5CE06E E06E [Trivial][ILSEQ]
-5CE072 E072 [Trivial][ILSEQ]
-5CE074 E074 [Trivial][ILSEQ]
-5CE07E E07E [Trivial][ILSEQ]
-5CE07F E07F [Trivial][ILSEQ]
-5CE080 E080 [Trivial][ILSEQ]
-5CE081 E081 [Trivial][ILSEQ]
-5CE09F E09F [Trivial][ILSEQ]
-5CE0A0 E0A0 [Trivial][ILSEQ]
-5CE0A1 E0A1 [Trivial]
-5CE0E0 E0E0 [Trivial]
-5CE0EF E0EF [Trivial]
-5CE0F9 E0F9 [Trivial]
-5CE0FA E0FA [Trivial]
-5CE0FC E0FC [Trivial]
-5CE0FD E0FD [Trivial]
-5CE0FE E0FE [Trivial]
-5CE0FF E0FF [Trivial][ILSEQ]
-5CEF00 EF00 [Trivial][ILSEQ]
-5CEF08 EF08 [Trivial][ILSEQ]
-5CEF09 EF09 [Trivial][ILSEQ]
-5CEF0A EF0A [Trivial][ILSEQ]
-5CEF0D EF0D [Trivial][ILSEQ]
-5CEF1A EF1A [Trivial][ILSEQ]
-5CEF22 EF22 [Trivial][ILSEQ]
-5CEF25 EF25 [Trivial][ILSEQ]
-5CEF27 NULL [SyntErr]
-5CEF30 EF30 [Trivial][ILSEQ]
-5CEF3F EF3F [Trivial][ILSEQ]
-5CEF40 EF40 [Trivial][ILSEQ]
-5CEF5A EF5A [Trivial][ILSEQ]
-5CEF5C NULL [SyntErr]
-5CEF5F EF5F [Trivial][ILSEQ]
-5CEF61 EF61 [Trivial][ILSEQ]
-5CEF62 EF62 [Trivial][ILSEQ]
-5CEF6E EF6E [Trivial][ILSEQ]
-5CEF72 EF72 [Trivial][ILSEQ]
-5CEF74 EF74 [Trivial][ILSEQ]
-5CEF7E EF7E [Trivial][ILSEQ]
-5CEF7F EF7F [Trivial][ILSEQ]
-5CEF80 EF80 [Trivial][ILSEQ]
-5CEF81 EF81 [Trivial][ILSEQ]
-5CEF9F EF9F [Trivial][ILSEQ]
-5CEFA0 EFA0 [Trivial][ILSEQ]
-5CEFA1 EFA1 [Trivial]
-5CEFE0 EFE0 [Trivial]
-5CEFEF EFEF [Trivial]
-5CEFF9 EFF9 [Trivial]
-5CEFFA EFFA [Trivial]
-5CEFFC EFFC [Trivial]
-5CEFFD EFFD [Trivial]
-5CEFFE EFFE [Trivial]
-5CEFFF EFFF [Trivial][ILSEQ]
-5CF900 F900 [Trivial][ILSEQ]
-5CF908 F908 [Trivial][ILSEQ]
-5CF909 F909 [Trivial][ILSEQ]
-5CF90A F90A [Trivial][ILSEQ]
-5CF90D F90D [Trivial][ILSEQ]
-5CF91A F91A [Trivial][ILSEQ]
-5CF922 F922 [Trivial][ILSEQ]
-5CF925 F925 [Trivial][ILSEQ]
-5CF927 NULL [SyntErr]
-5CF930 F930 [Trivial][ILSEQ]
-5CF93F F93F [Trivial][ILSEQ]
-5CF940 F940 [Trivial][ILSEQ]
-5CF95A F95A [Trivial][ILSEQ]
-5CF95C NULL [SyntErr]
-5CF95F F95F [Trivial][ILSEQ]
-5CF961 F961 [Trivial][ILSEQ]
-5CF962 F962 [Trivial][ILSEQ]
-5CF96E F96E [Trivial][ILSEQ]
-5CF972 F972 [Trivial][ILSEQ]
-5CF974 F974 [Trivial][ILSEQ]
-5CF97E F97E [Trivial][ILSEQ]
-5CF97F F97F [Trivial][ILSEQ]
-5CF980 F980 [Trivial][ILSEQ]
-5CF981 F981 [Trivial][ILSEQ]
-5CF99F F99F [Trivial][ILSEQ]
-5CF9A0 F9A0 [Trivial][ILSEQ]
-5CF9A1 F9A1 [Trivial][ILSEQ]
-5CF9E0 F9E0 [Trivial][ILSEQ]
-5CF9EF F9EF [Trivial][ILSEQ]
-5CF9F9 F9F9 [Trivial][ILSEQ]
-5CF9FA F9FA [Trivial][ILSEQ]
-5CF9FC F9FC [Trivial][ILSEQ]
-5CF9FD F9FD [Trivial][ILSEQ]
-5CF9FE F9FE [Trivial][ILSEQ]
-5CF9FF F9FF [Trivial][ILSEQ]
-5CFA00 FA00 [Trivial][ILSEQ]
-5CFA08 FA08 [Trivial][ILSEQ]
-5CFA09 FA09 [Trivial][ILSEQ]
-5CFA0A FA0A [Trivial][ILSEQ]
-5CFA0D FA0D [Trivial][ILSEQ]
-5CFA1A FA1A [Trivial][ILSEQ]
-5CFA22 FA22 [Trivial][ILSEQ]
-5CFA25 FA25 [Trivial][ILSEQ]
-5CFA27 NULL [SyntErr]
-5CFA30 FA30 [Trivial][ILSEQ]
-5CFA3F FA3F [Trivial][ILSEQ]
-5CFA40 FA40 [Trivial][ILSEQ]
-5CFA5A FA5A [Trivial][ILSEQ]
-5CFA5C NULL [SyntErr]
-5CFA5F FA5F [Trivial][ILSEQ]
-5CFA61 FA61 [Trivial][ILSEQ]
-5CFA62 FA62 [Trivial][ILSEQ]
-5CFA6E FA6E [Trivial][ILSEQ]
-5CFA72 FA72 [Trivial][ILSEQ]
-5CFA74 FA74 [Trivial][ILSEQ]
-5CFA7E FA7E [Trivial][ILSEQ]
-5CFA7F FA7F [Trivial][ILSEQ]
-5CFA80 FA80 [Trivial][ILSEQ]
-5CFA81 FA81 [Trivial][ILSEQ]
-5CFA9F FA9F [Trivial][ILSEQ]
-5CFAA0 FAA0 [Trivial][ILSEQ]
-5CFAA1 FAA1 [Trivial][ILSEQ]
-5CFAE0 FAE0 [Trivial][ILSEQ]
-5CFAEF FAEF [Trivial][ILSEQ]
-5CFAF9 FAF9 [Trivial][ILSEQ]
-5CFAFA FAFA [Trivial][ILSEQ]
-5CFAFC FAFC [Trivial][ILSEQ]
-5CFAFD FAFD [Trivial][ILSEQ]
-5CFAFE FAFE [Trivial][ILSEQ]
-5CFAFF FAFF [Trivial][ILSEQ]
-5CFC00 FC00 [Trivial][ILSEQ]
-5CFC08 FC08 [Trivial][ILSEQ]
-5CFC09 FC09 [Trivial][ILSEQ]
-5CFC0A FC0A [Trivial][ILSEQ]
-5CFC0D FC0D [Trivial][ILSEQ]
-5CFC1A FC1A [Trivial][ILSEQ]
-5CFC22 FC22 [Trivial][ILSEQ]
-5CFC25 FC25 [Trivial][ILSEQ]
-5CFC27 NULL [SyntErr]
-5CFC30 FC30 [Trivial][ILSEQ]
-5CFC3F FC3F [Trivial][ILSEQ]
-5CFC40 FC40 [Trivial][ILSEQ]
-5CFC5A FC5A [Trivial][ILSEQ]
-5CFC5C NULL [SyntErr]
-5CFC5F FC5F [Trivial][ILSEQ]
-5CFC61 FC61 [Trivial][ILSEQ]
-5CFC62 FC62 [Trivial][ILSEQ]
-5CFC6E FC6E [Trivial][ILSEQ]
-5CFC72 FC72 [Trivial][ILSEQ]
-5CFC74 FC74 [Trivial][ILSEQ]
-5CFC7E FC7E [Trivial][ILSEQ]
-5CFC7F FC7F [Trivial][ILSEQ]
-5CFC80 FC80 [Trivial][ILSEQ]
-5CFC81 FC81 [Trivial][ILSEQ]
-5CFC9F FC9F [Trivial][ILSEQ]
-5CFCA0 FCA0 [Trivial][ILSEQ]
-5CFCA1 FCA1 [Trivial][ILSEQ]
-5CFCE0 FCE0 [Trivial][ILSEQ]
-5CFCEF FCEF [Trivial][ILSEQ]
-5CFCF9 FCF9 [Trivial][ILSEQ]
-5CFCFA FCFA [Trivial][ILSEQ]
-5CFCFC FCFC [Trivial][ILSEQ]
-5CFCFD FCFD [Trivial][ILSEQ]
-5CFCFE FCFE [Trivial][ILSEQ]
-5CFCFF FCFF [Trivial][ILSEQ]
-5CFD00 FD00 [Trivial][ILSEQ]
-5CFD08 FD08 [Trivial][ILSEQ]
-5CFD09 FD09 [Trivial][ILSEQ]
-5CFD0A FD0A [Trivial][ILSEQ]
-5CFD0D FD0D [Trivial][ILSEQ]
-5CFD1A FD1A [Trivial][ILSEQ]
-5CFD22 FD22 [Trivial][ILSEQ]
-5CFD25 FD25 [Trivial][ILSEQ]
-5CFD27 NULL [SyntErr]
-5CFD30 FD30 [Trivial][ILSEQ]
-5CFD3F FD3F [Trivial][ILSEQ]
-5CFD40 FD40 [Trivial][ILSEQ]
-5CFD5A FD5A [Trivial][ILSEQ]
-5CFD5C NULL [SyntErr]
-5CFD5F FD5F [Trivial][ILSEQ]
-5CFD61 FD61 [Trivial][ILSEQ]
-5CFD62 FD62 [Trivial][ILSEQ]
-5CFD6E FD6E [Trivial][ILSEQ]
-5CFD72 FD72 [Trivial][ILSEQ]
-5CFD74 FD74 [Trivial][ILSEQ]
-5CFD7E FD7E [Trivial][ILSEQ]
-5CFD7F FD7F [Trivial][ILSEQ]
-5CFD80 FD80 [Trivial][ILSEQ]
-5CFD81 FD81 [Trivial][ILSEQ]
-5CFD9F FD9F [Trivial][ILSEQ]
-5CFDA0 FDA0 [Trivial][ILSEQ]
-5CFDA1 FDA1 [Trivial][ILSEQ]
-5CFDE0 FDE0 [Trivial][ILSEQ]
-5CFDEF FDEF [Trivial][ILSEQ]
-5CFDF9 FDF9 [Trivial][ILSEQ]
-5CFDFA FDFA [Trivial][ILSEQ]
-5CFDFC FDFC [Trivial][ILSEQ]
-5CFDFD FDFD [Trivial][ILSEQ]
-5CFDFE FDFE [Trivial][ILSEQ]
-5CFDFF FDFF [Trivial][ILSEQ]
-5CFE00 FE00 [Trivial][ILSEQ]
-5CFE08 FE08 [Trivial][ILSEQ]
-5CFE09 FE09 [Trivial][ILSEQ]
-5CFE0A FE0A [Trivial][ILSEQ]
-5CFE0D FE0D [Trivial][ILSEQ]
-5CFE1A FE1A [Trivial][ILSEQ]
-5CFE22 FE22 [Trivial][ILSEQ]
-5CFE25 FE25 [Trivial][ILSEQ]
-5CFE27 NULL [SyntErr]
-5CFE30 FE30 [Trivial][ILSEQ]
-5CFE3F FE3F [Trivial][ILSEQ]
-5CFE40 FE40 [Trivial][ILSEQ]
-5CFE5A FE5A [Trivial][ILSEQ]
-5CFE5C NULL [SyntErr]
-5CFE5F FE5F [Trivial][ILSEQ]
-5CFE61 FE61 [Trivial][ILSEQ]
-5CFE62 FE62 [Trivial][ILSEQ]
-5CFE6E FE6E [Trivial][ILSEQ]
-5CFE72 FE72 [Trivial][ILSEQ]
-5CFE74 FE74 [Trivial][ILSEQ]
-5CFE7E FE7E [Trivial][ILSEQ]
-5CFE7F FE7F [Trivial][ILSEQ]
-5CFE80 FE80 [Trivial][ILSEQ]
-5CFE81 FE81 [Trivial][ILSEQ]
-5CFE9F FE9F [Trivial][ILSEQ]
-5CFEA0 FEA0 [Trivial][ILSEQ]
-5CFEA1 FEA1 [Trivial][ILSEQ]
-5CFEE0 FEE0 [Trivial][ILSEQ]
-5CFEEF FEEF [Trivial][ILSEQ]
-5CFEF9 FEF9 [Trivial][ILSEQ]
-5CFEFA FEFA [Trivial][ILSEQ]
-5CFEFC FEFC [Trivial][ILSEQ]
-5CFEFD FEFD [Trivial][ILSEQ]
-5CFEFE FEFE [Trivial][ILSEQ]
-5CFEFF FEFF [Trivial][ILSEQ]
-5CFF00 FF00 [Trivial][ILSEQ]
-5CFF08 FF08 [Trivial][ILSEQ]
-5CFF09 FF09 [Trivial][ILSEQ]
-5CFF0A FF0A [Trivial][ILSEQ]
-5CFF0D FF0D [Trivial][ILSEQ]
-5CFF1A FF1A [Trivial][ILSEQ]
-5CFF22 FF22 [Trivial][ILSEQ]
-5CFF25 FF25 [Trivial][ILSEQ]
-5CFF27 NULL [SyntErr]
-5CFF30 FF30 [Trivial][ILSEQ]
-5CFF3F FF3F [Trivial][ILSEQ]
-5CFF40 FF40 [Trivial][ILSEQ]
-5CFF5A FF5A [Trivial][ILSEQ]
-5CFF5C NULL [SyntErr]
-5CFF5F FF5F [Trivial][ILSEQ]
-5CFF61 FF61 [Trivial][ILSEQ]
-5CFF62 FF62 [Trivial][ILSEQ]
-5CFF6E FF6E [Trivial][ILSEQ]
-5CFF72 FF72 [Trivial][ILSEQ]
-5CFF74 FF74 [Trivial][ILSEQ]
-5CFF7E FF7E [Trivial][ILSEQ]
-5CFF7F FF7F [Trivial][ILSEQ]
-5CFF80 FF80 [Trivial][ILSEQ]
-5CFF81 FF81 [Trivial][ILSEQ]
-5CFF9F FF9F [Trivial][ILSEQ]
-5CFFA0 FFA0 [Trivial][ILSEQ]
-5CFFA1 FFA1 [Trivial][ILSEQ]
-5CFFE0 FFE0 [Trivial][ILSEQ]
-5CFFEF FFEF [Trivial][ILSEQ]
-5CFFF9 FFF9 [Trivial][ILSEQ]
-5CFFFA FFFA [Trivial][ILSEQ]
-5CFFFC FFFC [Trivial][ILSEQ]
-5CFFFD FFFD [Trivial][ILSEQ]
-5CFFFE FFFE [Trivial][ILSEQ]
-5CFFFF FFFF [Trivial][ILSEQ]
-5C005C00 0000 [Trivial]
-5C005C08 0008 [Trivial]
-5C005C09 0009 [Trivial]
-5C005C0A 000A [Trivial]
-5C005C0D 000D [Trivial]
-5C005C1A 001A [Trivial]
-5C005C22 0022 [Trivial]
-5C005C25 005C25 [Regular]
-5C005C27 0027 [Trivial]
-5C005C30 0000 [Regular]
-5C005C3F 003F [Trivial]
-5C005C40 0040 [Trivial]
-5C005C5A 001A [Regular]
-5C005C5C 005C [Regular]
-5C005C5F 005C5F [Regular]
-5C005C61 0061 [Trivial]
-5C005C62 0008 [Regular]
-5C005C6E 000A [Regular]
-5C005C72 000D [Regular]
-5C005C74 0009 [Regular]
-5C005C7E 007E [Trivial]
-5C005C7F 007F [Trivial]
-5C005C80 0080 [Trivial][ILSEQ]
-5C005C81 0081 [Trivial][ILSEQ]
-5C005C9F 009F [Trivial][ILSEQ]
-5C005CA0 00A0 [Trivial][ILSEQ]
-5C005CA1 00A1 [Trivial][ILSEQ]
-5C005CE0 00E0 [Trivial][ILSEQ]
-5C005CEF 00EF [Trivial][ILSEQ]
-5C005CF9 00F9 [Trivial][ILSEQ]
-5C005CFA 00FA [Trivial][ILSEQ]
-5C005CFC 00FC [Trivial][ILSEQ]
-5C005CFD 00FD [Trivial][ILSEQ]
-5C005CFE 00FE [Trivial][ILSEQ]
-5C005CFF 00FF [Trivial][ILSEQ]
-5C085C00 0800 [Trivial]
-5C085C08 0808 [Trivial]
-5C085C09 0809 [Trivial]
-5C085C0A 080A [Trivial]
-5C085C0D 080D [Trivial]
-5C085C1A 081A [Trivial]
-5C085C22 0822 [Trivial]
-5C085C25 085C25 [Regular]
-5C085C27 0827 [Trivial]
-5C085C30 0800 [Regular]
-5C085C3F 083F [Trivial]
-5C085C40 0840 [Trivial]
-5C085C5A 081A [Regular]
-5C085C5C 085C [Regular]
-5C085C5F 085C5F [Regular]
-5C085C61 0861 [Trivial]
-5C085C62 0808 [Regular]
-5C085C6E 080A [Regular]
-5C085C72 080D [Regular]
-5C085C74 0809 [Regular]
-5C085C7E 087E [Trivial]
-5C085C7F 087F [Trivial]
-5C085C80 0880 [Trivial][ILSEQ]
-5C085C81 0881 [Trivial][ILSEQ]
-5C085C9F 089F [Trivial][ILSEQ]
-5C085CA0 08A0 [Trivial][ILSEQ]
-5C085CA1 08A1 [Trivial][ILSEQ]
-5C085CE0 08E0 [Trivial][ILSEQ]
-5C085CEF 08EF [Trivial][ILSEQ]
-5C085CF9 08F9 [Trivial][ILSEQ]
-5C085CFA 08FA [Trivial][ILSEQ]
-5C085CFC 08FC [Trivial][ILSEQ]
-5C085CFD 08FD [Trivial][ILSEQ]
-5C085CFE 08FE [Trivial][ILSEQ]
-5C085CFF 08FF [Trivial][ILSEQ]
-5C095C00 0900 [Trivial]
-5C095C08 0908 [Trivial]
-5C095C09 0909 [Trivial]
-5C095C0A 090A [Trivial]
-5C095C0D 090D [Trivial]
-5C095C1A 091A [Trivial]
-5C095C22 0922 [Trivial]
-5C095C25 095C25 [Regular]
-5C095C27 0927 [Trivial]
-5C095C30 0900 [Regular]
-5C095C3F 093F [Trivial]
-5C095C40 0940 [Trivial]
-5C095C5A 091A [Regular]
-5C095C5C 095C [Regular]
-5C095C5F 095C5F [Regular]
-5C095C61 0961 [Trivial]
-5C095C62 0908 [Regular]
-5C095C6E 090A [Regular]
-5C095C72 090D [Regular]
-5C095C74 0909 [Regular]
-5C095C7E 097E [Trivial]
-5C095C7F 097F [Trivial]
-5C095C80 0980 [Trivial][ILSEQ]
-5C095C81 0981 [Trivial][ILSEQ]
-5C095C9F 099F [Trivial][ILSEQ]
-5C095CA0 09A0 [Trivial][ILSEQ]
-5C095CA1 09A1 [Trivial][ILSEQ]
-5C095CE0 09E0 [Trivial][ILSEQ]
-5C095CEF 09EF [Trivial][ILSEQ]
-5C095CF9 09F9 [Trivial][ILSEQ]
-5C095CFA 09FA [Trivial][ILSEQ]
-5C095CFC 09FC [Trivial][ILSEQ]
-5C095CFD 09FD [Trivial][ILSEQ]
-5C095CFE 09FE [Trivial][ILSEQ]
-5C095CFF 09FF [Trivial][ILSEQ]
-5C0A5C00 0A00 [Trivial]
-5C0A5C08 0A08 [Trivial]
-5C0A5C09 0A09 [Trivial]
-5C0A5C0A 0A0A [Trivial]
-5C0A5C0D 0A0D [Trivial]
-5C0A5C1A 0A1A [Trivial]
-5C0A5C22 0A22 [Trivial]
-5C0A5C25 0A5C25 [Regular]
-5C0A5C27 0A27 [Trivial]
-5C0A5C30 0A00 [Regular]
-5C0A5C3F 0A3F [Trivial]
-5C0A5C40 0A40 [Trivial]
-5C0A5C5A 0A1A [Regular]
-5C0A5C5C 0A5C [Regular]
-5C0A5C5F 0A5C5F [Regular]
-5C0A5C61 0A61 [Trivial]
-5C0A5C62 0A08 [Regular]
-5C0A5C6E 0A0A [Regular]
-5C0A5C72 0A0D [Regular]
-5C0A5C74 0A09 [Regular]
-5C0A5C7E 0A7E [Trivial]
-5C0A5C7F 0A7F [Trivial]
-5C0A5C80 0A80 [Trivial][ILSEQ]
-5C0A5C81 0A81 [Trivial][ILSEQ]
-5C0A5C9F 0A9F [Trivial][ILSEQ]
-5C0A5CA0 0AA0 [Trivial][ILSEQ]
-5C0A5CA1 0AA1 [Trivial][ILSEQ]
-5C0A5CE0 0AE0 [Trivial][ILSEQ]
-5C0A5CEF 0AEF [Trivial][ILSEQ]
-5C0A5CF9 0AF9 [Trivial][ILSEQ]
-5C0A5CFA 0AFA [Trivial][ILSEQ]
-5C0A5CFC 0AFC [Trivial][ILSEQ]
-5C0A5CFD 0AFD [Trivial][ILSEQ]
-5C0A5CFE 0AFE [Trivial][ILSEQ]
-5C0A5CFF 0AFF [Trivial][ILSEQ]
-5C0D5C00 0D00 [Trivial]
-5C0D5C08 0D08 [Trivial]
-5C0D5C09 0D09 [Trivial]
-5C0D5C0A 0D0A [Trivial]
-5C0D5C0D 0D0D [Trivial]
-5C0D5C1A 0D1A [Trivial]
-5C0D5C22 0D22 [Trivial]
-5C0D5C25 0D5C25 [Regular]
-5C0D5C27 0D27 [Trivial]
-5C0D5C30 0D00 [Regular]
-5C0D5C3F 0D3F [Trivial]
-5C0D5C40 0D40 [Trivial]
-5C0D5C5A 0D1A [Regular]
-5C0D5C5C 0D5C [Regular]
-5C0D5C5F 0D5C5F [Regular]
-5C0D5C61 0D61 [Trivial]
-5C0D5C62 0D08 [Regular]
-5C0D5C6E 0D0A [Regular]
-5C0D5C72 0D0D [Regular]
-5C0D5C74 0D09 [Regular]
-5C0D5C7E 0D7E [Trivial]
-5C0D5C7F 0D7F [Trivial]
-5C0D5C80 0D80 [Trivial][ILSEQ]
-5C0D5C81 0D81 [Trivial][ILSEQ]
-5C0D5C9F 0D9F [Trivial][ILSEQ]
-5C0D5CA0 0DA0 [Trivial][ILSEQ]
-5C0D5CA1 0DA1 [Trivial][ILSEQ]
-5C0D5CE0 0DE0 [Trivial][ILSEQ]
-5C0D5CEF 0DEF [Trivial][ILSEQ]
-5C0D5CF9 0DF9 [Trivial][ILSEQ]
-5C0D5CFA 0DFA [Trivial][ILSEQ]
-5C0D5CFC 0DFC [Trivial][ILSEQ]
-5C0D5CFD 0DFD [Trivial][ILSEQ]
-5C0D5CFE 0DFE [Trivial][ILSEQ]
-5C0D5CFF 0DFF [Trivial][ILSEQ]
-5C1A5C00 1A00 [Trivial]
-5C1A5C08 1A08 [Trivial]
-5C1A5C09 1A09 [Trivial]
-5C1A5C0A 1A0A [Trivial]
-5C1A5C0D 1A0D [Trivial]
-5C1A5C1A 1A1A [Trivial]
-5C1A5C22 1A22 [Trivial]
-5C1A5C25 1A5C25 [Regular]
-5C1A5C27 1A27 [Trivial]
-5C1A5C30 1A00 [Regular]
-5C1A5C3F 1A3F [Trivial]
-5C1A5C40 1A40 [Trivial]
-5C1A5C5A 1A1A [Regular]
-5C1A5C5C 1A5C [Regular]
-5C1A5C5F 1A5C5F [Regular]
-5C1A5C61 1A61 [Trivial]
-5C1A5C62 1A08 [Regular]
-5C1A5C6E 1A0A [Regular]
-5C1A5C72 1A0D [Regular]
-5C1A5C74 1A09 [Regular]
-5C1A5C7E 1A7E [Trivial]
-5C1A5C7F 1A7F [Trivial]
-5C1A5C80 1A80 [Trivial][ILSEQ]
-5C1A5C81 1A81 [Trivial][ILSEQ]
-5C1A5C9F 1A9F [Trivial][ILSEQ]
-5C1A5CA0 1AA0 [Trivial][ILSEQ]
-5C1A5CA1 1AA1 [Trivial][ILSEQ]
-5C1A5CE0 1AE0 [Trivial][ILSEQ]
-5C1A5CEF 1AEF [Trivial][ILSEQ]
-5C1A5CF9 1AF9 [Trivial][ILSEQ]
-5C1A5CFA 1AFA [Trivial][ILSEQ]
-5C1A5CFC 1AFC [Trivial][ILSEQ]
-5C1A5CFD 1AFD [Trivial][ILSEQ]
-5C1A5CFE 1AFE [Trivial][ILSEQ]
-5C1A5CFF 1AFF [Trivial][ILSEQ]
-5C225C00 2200 [Trivial]
-5C225C08 2208 [Trivial]
-5C225C09 2209 [Trivial]
-5C225C0A 220A [Trivial]
-5C225C0D 220D [Trivial]
-5C225C1A 221A [Trivial]
-5C225C22 2222 [Trivial]
-5C225C25 225C25 [Regular]
-5C225C27 2227 [Trivial]
-5C225C30 2200 [Regular]
-5C225C3F 223F [Trivial]
-5C225C40 2240 [Trivial]
-5C225C5A 221A [Regular]
-5C225C5C 225C [Regular]
-5C225C5F 225C5F [Regular]
-5C225C61 2261 [Trivial]
-5C225C62 2208 [Regular]
-5C225C6E 220A [Regular]
-5C225C72 220D [Regular]
-5C225C74 2209 [Regular]
-5C225C7E 227E [Trivial]
-5C225C7F 227F [Trivial]
-5C225C80 2280 [Trivial][ILSEQ]
-5C225C81 2281 [Trivial][ILSEQ]
-5C225C9F 229F [Trivial][ILSEQ]
-5C225CA0 22A0 [Trivial][ILSEQ]
-5C225CA1 22A1 [Trivial][ILSEQ]
-5C225CE0 22E0 [Trivial][ILSEQ]
-5C225CEF 22EF [Trivial][ILSEQ]
-5C225CF9 22F9 [Trivial][ILSEQ]
-5C225CFA 22FA [Trivial][ILSEQ]
-5C225CFC 22FC [Trivial][ILSEQ]
-5C225CFD 22FD [Trivial][ILSEQ]
-5C225CFE 22FE [Trivial][ILSEQ]
-5C225CFF 22FF [Trivial][ILSEQ]
-5C255C00 5C2500 [Regular]
-5C255C08 5C2508 [Regular]
-5C255C09 5C2509 [Regular]
-5C255C0A 5C250A [Regular]
-5C255C0D 5C250D [Regular]
-5C255C1A 5C251A [Regular]
-5C255C22 5C2522 [Regular]
-5C255C25 5C255C25 [Preserve][LIKE]
-5C255C27 5C2527 [Regular]
-5C255C30 5C2500 [Regular]
-5C255C3F 5C253F [Regular]
-5C255C40 5C2540 [Regular]
-5C255C5A 5C251A [Regular]
-5C255C5C 5C255C [Regular]
-5C255C5F 5C255C5F [Preserve][LIKE]
-5C255C61 5C2561 [Regular]
-5C255C62 5C2508 [Regular]
-5C255C6E 5C250A [Regular]
-5C255C72 5C250D [Regular]
-5C255C74 5C2509 [Regular]
-5C255C7E 5C257E [Regular]
-5C255C7F 5C257F [Regular]
-5C255C80 5C2580 [Regular][ILSEQ]
-5C255C81 5C2581 [Regular][ILSEQ]
-5C255C9F 5C259F [Regular][ILSEQ]
-5C255CA0 5C25A0 [Regular][ILSEQ]
-5C255CA1 5C25A1 [Regular][ILSEQ]
-5C255CE0 5C25E0 [Regular][ILSEQ]
-5C255CEF 5C25EF [Regular][ILSEQ]
-5C255CF9 5C25F9 [Regular][ILSEQ]
-5C255CFA 5C25FA [Regular][ILSEQ]
-5C255CFC 5C25FC [Regular][ILSEQ]
-5C255CFD 5C25FD [Regular][ILSEQ]
-5C255CFE 5C25FE [Regular][ILSEQ]
-5C255CFF 5C25FF [Regular][ILSEQ]
-5C275C00 2700 [Trivial]
-5C275C08 2708 [Trivial]
-5C275C09 2709 [Trivial]
-5C275C0A 270A [Trivial]
-5C275C0D 270D [Trivial]
-5C275C1A 271A [Trivial]
-5C275C22 2722 [Trivial]
-5C275C25 275C25 [Regular]
-5C275C27 2727 [Trivial]
-5C275C30 2700 [Regular]
-5C275C3F 273F [Trivial]
-5C275C40 2740 [Trivial]
-5C275C5A 271A [Regular]
-5C275C5C 275C [Regular]
-5C275C5F 275C5F [Regular]
-5C275C61 2761 [Trivial]
-5C275C62 2708 [Regular]
-5C275C6E 270A [Regular]
-5C275C72 270D [Regular]
-5C275C74 2709 [Regular]
-5C275C7E 277E [Trivial]
-5C275C7F 277F [Trivial]
-5C275C80 2780 [Trivial][ILSEQ]
-5C275C81 2781 [Trivial][ILSEQ]
-5C275C9F 279F [Trivial][ILSEQ]
-5C275CA0 27A0 [Trivial][ILSEQ]
-5C275CA1 27A1 [Trivial][ILSEQ]
-5C275CE0 27E0 [Trivial][ILSEQ]
-5C275CEF 27EF [Trivial][ILSEQ]
-5C275CF9 27F9 [Trivial][ILSEQ]
-5C275CFA 27FA [Trivial][ILSEQ]
-5C275CFC 27FC [Trivial][ILSEQ]
-5C275CFD 27FD [Trivial][ILSEQ]
-5C275CFE 27FE [Trivial][ILSEQ]
-5C275CFF 27FF [Trivial][ILSEQ]
-5C305C00 0000 [Regular]
-5C305C08 0008 [Regular]
-5C305C09 0009 [Regular]
-5C305C0A 000A [Regular]
-5C305C0D 000D [Regular]
-5C305C1A 001A [Regular]
-5C305C22 0022 [Regular]
-5C305C25 005C25 [Regular]
-5C305C27 0027 [Regular]
-5C305C30 0000 [Regular]
-5C305C3F 003F [Regular]
-5C305C40 0040 [Regular]
-5C305C5A 001A [Regular]
-5C305C5C 005C [Regular]
-5C305C5F 005C5F [Regular]
-5C305C61 0061 [Regular]
-5C305C62 0008 [Regular]
-5C305C6E 000A [Regular]
-5C305C72 000D [Regular]
-5C305C74 0009 [Regular]
-5C305C7E 007E [Regular]
-5C305C7F 007F [Regular]
-5C305C80 0080 [Regular][ILSEQ]
-5C305C81 0081 [Regular][ILSEQ]
-5C305C9F 009F [Regular][ILSEQ]
-5C305CA0 00A0 [Regular][ILSEQ]
-5C305CA1 00A1 [Regular][ILSEQ]
-5C305CE0 00E0 [Regular][ILSEQ]
-5C305CEF 00EF [Regular][ILSEQ]
-5C305CF9 00F9 [Regular][ILSEQ]
-5C305CFA 00FA [Regular][ILSEQ]
-5C305CFC 00FC [Regular][ILSEQ]
-5C305CFD 00FD [Regular][ILSEQ]
-5C305CFE 00FE [Regular][ILSEQ]
-5C305CFF 00FF [Regular][ILSEQ]
-5C3F5C00 3F00 [Trivial]
-5C3F5C08 3F08 [Trivial]
-5C3F5C09 3F09 [Trivial]
-5C3F5C0A 3F0A [Trivial]
-5C3F5C0D 3F0D [Trivial]
-5C3F5C1A 3F1A [Trivial]
-5C3F5C22 3F22 [Trivial]
-5C3F5C25 3F5C25 [Regular]
-5C3F5C27 3F27 [Trivial]
-5C3F5C30 3F00 [Regular]
-5C3F5C3F 3F3F [Trivial]
-5C3F5C40 3F40 [Trivial]
-5C3F5C5A 3F1A [Regular]
-5C3F5C5C 3F5C [Regular]
-5C3F5C5F 3F5C5F [Regular]
-5C3F5C61 3F61 [Trivial]
-5C3F5C62 3F08 [Regular]
-5C3F5C6E 3F0A [Regular]
-5C3F5C72 3F0D [Regular]
-5C3F5C74 3F09 [Regular]
-5C3F5C7E 3F7E [Trivial]
-5C3F5C7F 3F7F [Trivial]
-5C3F5C80 3F80 [Trivial][ILSEQ]
-5C3F5C81 3F81 [Trivial][ILSEQ]
-5C3F5C9F 3F9F [Trivial][ILSEQ]
-5C3F5CA0 3FA0 [Trivial][ILSEQ]
-5C3F5CA1 3FA1 [Trivial][ILSEQ]
-5C3F5CE0 3FE0 [Trivial][ILSEQ]
-5C3F5CEF 3FEF [Trivial][ILSEQ]
-5C3F5CF9 3FF9 [Trivial][ILSEQ]
-5C3F5CFA 3FFA [Trivial][ILSEQ]
-5C3F5CFC 3FFC [Trivial][ILSEQ]
-5C3F5CFD 3FFD [Trivial][ILSEQ]
-5C3F5CFE 3FFE [Trivial][ILSEQ]
-5C3F5CFF 3FFF [Trivial][ILSEQ]
-5C405C00 4000 [Trivial]
-5C405C08 4008 [Trivial]
-5C405C09 4009 [Trivial]
-5C405C0A 400A [Trivial]
-5C405C0D 400D [Trivial]
-5C405C1A 401A [Trivial]
-5C405C22 4022 [Trivial]
-5C405C25 405C25 [Regular]
-5C405C27 4027 [Trivial]
-5C405C30 4000 [Regular]
-5C405C3F 403F [Trivial]
-5C405C40 4040 [Trivial]
-5C405C5A 401A [Regular]
-5C405C5C 405C [Regular]
-5C405C5F 405C5F [Regular]
-5C405C61 4061 [Trivial]
-5C405C62 4008 [Regular]
-5C405C6E 400A [Regular]
-5C405C72 400D [Regular]
-5C405C74 4009 [Regular]
-5C405C7E 407E [Trivial]
-5C405C7F 407F [Trivial]
-5C405C80 4080 [Trivial][ILSEQ]
-5C405C81 4081 [Trivial][ILSEQ]
-5C405C9F 409F [Trivial][ILSEQ]
-5C405CA0 40A0 [Trivial][ILSEQ]
-5C405CA1 40A1 [Trivial][ILSEQ]
-5C405CE0 40E0 [Trivial][ILSEQ]
-5C405CEF 40EF [Trivial][ILSEQ]
-5C405CF9 40F9 [Trivial][ILSEQ]
-5C405CFA 40FA [Trivial][ILSEQ]
-5C405CFC 40FC [Trivial][ILSEQ]
-5C405CFD 40FD [Trivial][ILSEQ]
-5C405CFE 40FE [Trivial][ILSEQ]
-5C405CFF 40FF [Trivial][ILSEQ]
-5C5A5C00 1A00 [Regular]
-5C5A5C08 1A08 [Regular]
-5C5A5C09 1A09 [Regular]
-5C5A5C0A 1A0A [Regular]
-5C5A5C0D 1A0D [Regular]
-5C5A5C1A 1A1A [Regular]
-5C5A5C22 1A22 [Regular]
-5C5A5C25 1A5C25 [Regular]
-5C5A5C27 1A27 [Regular]
-5C5A5C30 1A00 [Regular]
-5C5A5C3F 1A3F [Regular]
-5C5A5C40 1A40 [Regular]
-5C5A5C5A 1A1A [Regular]
-5C5A5C5C 1A5C [Regular]
-5C5A5C5F 1A5C5F [Regular]
-5C5A5C61 1A61 [Regular]
-5C5A5C62 1A08 [Regular]
-5C5A5C6E 1A0A [Regular]
-5C5A5C72 1A0D [Regular]
-5C5A5C74 1A09 [Regular]
-5C5A5C7E 1A7E [Regular]
-5C5A5C7F 1A7F [Regular]
-5C5A5C80 1A80 [Regular][ILSEQ]
-5C5A5C81 1A81 [Regular][ILSEQ]
-5C5A5C9F 1A9F [Regular][ILSEQ]
-5C5A5CA0 1AA0 [Regular][ILSEQ]
-5C5A5CA1 1AA1 [Regular][ILSEQ]
-5C5A5CE0 1AE0 [Regular][ILSEQ]
-5C5A5CEF 1AEF [Regular][ILSEQ]
-5C5A5CF9 1AF9 [Regular][ILSEQ]
-5C5A5CFA 1AFA [Regular][ILSEQ]
-5C5A5CFC 1AFC [Regular][ILSEQ]
-5C5A5CFD 1AFD [Regular][ILSEQ]
-5C5A5CFE 1AFE [Regular][ILSEQ]
-5C5A5CFF 1AFF [Regular][ILSEQ]
-5C5C5C00 5C00 [Regular]
-5C5C5C08 5C08 [Regular]
-5C5C5C09 5C09 [Regular]
-5C5C5C0A 5C0A [Regular]
-5C5C5C0D 5C0D [Regular]
-5C5C5C1A 5C1A [Regular]
-5C5C5C22 5C22 [Regular]
-5C5C5C25 5C5C25 [Regular]
-5C5C5C27 5C27 [Regular]
-5C5C5C30 5C00 [Regular]
-5C5C5C3F 5C3F [Regular]
-5C5C5C40 5C40 [Regular]
-5C5C5C5A 5C1A [Regular]
-5C5C5C5C 5C5C [Regular]
-5C5C5C5F 5C5C5F [Regular]
-5C5C5C61 5C61 [Regular]
-5C5C5C62 5C08 [Regular]
-5C5C5C6E 5C0A [Regular]
-5C5C5C72 5C0D [Regular]
-5C5C5C74 5C09 [Regular]
-5C5C5C7E 5C7E [Regular]
-5C5C5C7F 5C7F [Regular]
-5C5C5C80 5C80 [Regular][ILSEQ]
-5C5C5C81 5C81 [Regular][ILSEQ]
-5C5C5C9F 5C9F [Regular][ILSEQ]
-5C5C5CA0 5CA0 [Regular][ILSEQ]
-5C5C5CA1 5CA1 [Regular][ILSEQ]
-5C5C5CE0 5CE0 [Regular][ILSEQ]
-5C5C5CEF 5CEF [Regular][ILSEQ]
-5C5C5CF9 5CF9 [Regular][ILSEQ]
-5C5C5CFA 5CFA [Regular][ILSEQ]
-5C5C5CFC 5CFC [Regular][ILSEQ]
-5C5C5CFD 5CFD [Regular][ILSEQ]
-5C5C5CFE 5CFE [Regular][ILSEQ]
-5C5C5CFF 5CFF [Regular][ILSEQ]
-5C5F5C00 5C5F00 [Regular]
-5C5F5C08 5C5F08 [Regular]
-5C5F5C09 5C5F09 [Regular]
-5C5F5C0A 5C5F0A [Regular]
-5C5F5C0D 5C5F0D [Regular]
-5C5F5C1A 5C5F1A [Regular]
-5C5F5C22 5C5F22 [Regular]
-5C5F5C25 5C5F5C25 [Preserve][LIKE]
-5C5F5C27 5C5F27 [Regular]
-5C5F5C30 5C5F00 [Regular]
-5C5F5C3F 5C5F3F [Regular]
-5C5F5C40 5C5F40 [Regular]
-5C5F5C5A 5C5F1A [Regular]
-5C5F5C5C 5C5F5C [Regular]
-5C5F5C5F 5C5F5C5F [Preserve][LIKE]
-5C5F5C61 5C5F61 [Regular]
-5C5F5C62 5C5F08 [Regular]
-5C5F5C6E 5C5F0A [Regular]
-5C5F5C72 5C5F0D [Regular]
-5C5F5C74 5C5F09 [Regular]
-5C5F5C7E 5C5F7E [Regular]
-5C5F5C7F 5C5F7F [Regular]
-5C5F5C80 5C5F80 [Regular][ILSEQ]
-5C5F5C81 5C5F81 [Regular][ILSEQ]
-5C5F5C9F 5C5F9F [Regular][ILSEQ]
-5C5F5CA0 5C5FA0 [Regular][ILSEQ]
-5C5F5CA1 5C5FA1 [Regular][ILSEQ]
-5C5F5CE0 5C5FE0 [Regular][ILSEQ]
-5C5F5CEF 5C5FEF [Regular][ILSEQ]
-5C5F5CF9 5C5FF9 [Regular][ILSEQ]
-5C5F5CFA 5C5FFA [Regular][ILSEQ]
-5C5F5CFC 5C5FFC [Regular][ILSEQ]
-5C5F5CFD 5C5FFD [Regular][ILSEQ]
-5C5F5CFE 5C5FFE [Regular][ILSEQ]
-5C5F5CFF 5C5FFF [Regular][ILSEQ]
-5C615C00 6100 [Trivial]
-5C615C08 6108 [Trivial]
-5C615C09 6109 [Trivial]
-5C615C0A 610A [Trivial]
-5C615C0D 610D [Trivial]
-5C615C1A 611A [Trivial]
-5C615C22 6122 [Trivial]
-5C615C25 615C25 [Regular]
-5C615C27 6127 [Trivial]
-5C615C30 6100 [Regular]
-5C615C3F 613F [Trivial]
-5C615C40 6140 [Trivial]
-5C615C5A 611A [Regular]
-5C615C5C 615C [Regular]
-5C615C5F 615C5F [Regular]
-5C615C61 6161 [Trivial]
-5C615C62 6108 [Regular]
-5C615C6E 610A [Regular]
-5C615C72 610D [Regular]
-5C615C74 6109 [Regular]
-5C615C7E 617E [Trivial]
-5C615C7F 617F [Trivial]
-5C615C80 6180 [Trivial][ILSEQ]
-5C615C81 6181 [Trivial][ILSEQ]
-5C615C9F 619F [Trivial][ILSEQ]
-5C615CA0 61A0 [Trivial][ILSEQ]
-5C615CA1 61A1 [Trivial][ILSEQ]
-5C615CE0 61E0 [Trivial][ILSEQ]
-5C615CEF 61EF [Trivial][ILSEQ]
-5C615CF9 61F9 [Trivial][ILSEQ]
-5C615CFA 61FA [Trivial][ILSEQ]
-5C615CFC 61FC [Trivial][ILSEQ]
-5C615CFD 61FD [Trivial][ILSEQ]
-5C615CFE 61FE [Trivial][ILSEQ]
-5C615CFF 61FF [Trivial][ILSEQ]
-5C625C00 0800 [Regular]
-5C625C08 0808 [Regular]
-5C625C09 0809 [Regular]
-5C625C0A 080A [Regular]
-5C625C0D 080D [Regular]
-5C625C1A 081A [Regular]
-5C625C22 0822 [Regular]
-5C625C25 085C25 [Regular]
-5C625C27 0827 [Regular]
-5C625C30 0800 [Regular]
-5C625C3F 083F [Regular]
-5C625C40 0840 [Regular]
-5C625C5A 081A [Regular]
-5C625C5C 085C [Regular]
-5C625C5F 085C5F [Regular]
-5C625C61 0861 [Regular]
-5C625C62 0808 [Regular]
-5C625C6E 080A [Regular]
-5C625C72 080D [Regular]
-5C625C74 0809 [Regular]
-5C625C7E 087E [Regular]
-5C625C7F 087F [Regular]
-5C625C80 0880 [Regular][ILSEQ]
-5C625C81 0881 [Regular][ILSEQ]
-5C625C9F 089F [Regular][ILSEQ]
-5C625CA0 08A0 [Regular][ILSEQ]
-5C625CA1 08A1 [Regular][ILSEQ]
-5C625CE0 08E0 [Regular][ILSEQ]
-5C625CEF 08EF [Regular][ILSEQ]
-5C625CF9 08F9 [Regular][ILSEQ]
-5C625CFA 08FA [Regular][ILSEQ]
-5C625CFC 08FC [Regular][ILSEQ]
-5C625CFD 08FD [Regular][ILSEQ]
-5C625CFE 08FE [Regular][ILSEQ]
-5C625CFF 08FF [Regular][ILSEQ]
-5C6E5C00 0A00 [Regular]
-5C6E5C08 0A08 [Regular]
-5C6E5C09 0A09 [Regular]
-5C6E5C0A 0A0A [Regular]
-5C6E5C0D 0A0D [Regular]
-5C6E5C1A 0A1A [Regular]
-5C6E5C22 0A22 [Regular]
-5C6E5C25 0A5C25 [Regular]
-5C6E5C27 0A27 [Regular]
-5C6E5C30 0A00 [Regular]
-5C6E5C3F 0A3F [Regular]
-5C6E5C40 0A40 [Regular]
-5C6E5C5A 0A1A [Regular]
-5C6E5C5C 0A5C [Regular]
-5C6E5C5F 0A5C5F [Regular]
-5C6E5C61 0A61 [Regular]
-5C6E5C62 0A08 [Regular]
-5C6E5C6E 0A0A [Regular]
-5C6E5C72 0A0D [Regular]
-5C6E5C74 0A09 [Regular]
-5C6E5C7E 0A7E [Regular]
-5C6E5C7F 0A7F [Regular]
-5C6E5C80 0A80 [Regular][ILSEQ]
-5C6E5C81 0A81 [Regular][ILSEQ]
-5C6E5C9F 0A9F [Regular][ILSEQ]
-5C6E5CA0 0AA0 [Regular][ILSEQ]
-5C6E5CA1 0AA1 [Regular][ILSEQ]
-5C6E5CE0 0AE0 [Regular][ILSEQ]
-5C6E5CEF 0AEF [Regular][ILSEQ]
-5C6E5CF9 0AF9 [Regular][ILSEQ]
-5C6E5CFA 0AFA [Regular][ILSEQ]
-5C6E5CFC 0AFC [Regular][ILSEQ]
-5C6E5CFD 0AFD [Regular][ILSEQ]
-5C6E5CFE 0AFE [Regular][ILSEQ]
-5C6E5CFF 0AFF [Regular][ILSEQ]
-5C725C00 0D00 [Regular]
-5C725C08 0D08 [Regular]
-5C725C09 0D09 [Regular]
-5C725C0A 0D0A [Regular]
-5C725C0D 0D0D [Regular]
-5C725C1A 0D1A [Regular]
-5C725C22 0D22 [Regular]
-5C725C25 0D5C25 [Regular]
-5C725C27 0D27 [Regular]
-5C725C30 0D00 [Regular]
-5C725C3F 0D3F [Regular]
-5C725C40 0D40 [Regular]
-5C725C5A 0D1A [Regular]
-5C725C5C 0D5C [Regular]
-5C725C5F 0D5C5F [Regular]
-5C725C61 0D61 [Regular]
-5C725C62 0D08 [Regular]
-5C725C6E 0D0A [Regular]
-5C725C72 0D0D [Regular]
-5C725C74 0D09 [Regular]
-5C725C7E 0D7E [Regular]
-5C725C7F 0D7F [Regular]
-5C725C80 0D80 [Regular][ILSEQ]
-5C725C81 0D81 [Regular][ILSEQ]
-5C725C9F 0D9F [Regular][ILSEQ]
-5C725CA0 0DA0 [Regular][ILSEQ]
-5C725CA1 0DA1 [Regular][ILSEQ]
-5C725CE0 0DE0 [Regular][ILSEQ]
-5C725CEF 0DEF [Regular][ILSEQ]
-5C725CF9 0DF9 [Regular][ILSEQ]
-5C725CFA 0DFA [Regular][ILSEQ]
-5C725CFC 0DFC [Regular][ILSEQ]
-5C725CFD 0DFD [Regular][ILSEQ]
-5C725CFE 0DFE [Regular][ILSEQ]
-5C725CFF 0DFF [Regular][ILSEQ]
-5C745C00 0900 [Regular]
-5C745C08 0908 [Regular]
-5C745C09 0909 [Regular]
-5C745C0A 090A [Regular]
-5C745C0D 090D [Regular]
-5C745C1A 091A [Regular]
-5C745C22 0922 [Regular]
-5C745C25 095C25 [Regular]
-5C745C27 0927 [Regular]
-5C745C30 0900 [Regular]
-5C745C3F 093F [Regular]
-5C745C40 0940 [Regular]
-5C745C5A 091A [Regular]
-5C745C5C 095C [Regular]
-5C745C5F 095C5F [Regular]
-5C745C61 0961 [Regular]
-5C745C62 0908 [Regular]
-5C745C6E 090A [Regular]
-5C745C72 090D [Regular]
-5C745C74 0909 [Regular]
-5C745C7E 097E [Regular]
-5C745C7F 097F [Regular]
-5C745C80 0980 [Regular][ILSEQ]
-5C745C81 0981 [Regular][ILSEQ]
-5C745C9F 099F [Regular][ILSEQ]
-5C745CA0 09A0 [Regular][ILSEQ]
-5C745CA1 09A1 [Regular][ILSEQ]
-5C745CE0 09E0 [Regular][ILSEQ]
-5C745CEF 09EF [Regular][ILSEQ]
-5C745CF9 09F9 [Regular][ILSEQ]
-5C745CFA 09FA [Regular][ILSEQ]
-5C745CFC 09FC [Regular][ILSEQ]
-5C745CFD 09FD [Regular][ILSEQ]
-5C745CFE 09FE [Regular][ILSEQ]
-5C745CFF 09FF [Regular][ILSEQ]
-5C7E5C00 7E00 [Trivial]
-5C7E5C08 7E08 [Trivial]
-5C7E5C09 7E09 [Trivial]
-5C7E5C0A 7E0A [Trivial]
-5C7E5C0D 7E0D [Trivial]
-5C7E5C1A 7E1A [Trivial]
-5C7E5C22 7E22 [Trivial]
-5C7E5C25 7E5C25 [Regular]
-5C7E5C27 7E27 [Trivial]
-5C7E5C30 7E00 [Regular]
-5C7E5C3F 7E3F [Trivial]
-5C7E5C40 7E40 [Trivial]
-5C7E5C5A 7E1A [Regular]
-5C7E5C5C 7E5C [Regular]
-5C7E5C5F 7E5C5F [Regular]
-5C7E5C61 7E61 [Trivial]
-5C7E5C62 7E08 [Regular]
-5C7E5C6E 7E0A [Regular]
-5C7E5C72 7E0D [Regular]
-5C7E5C74 7E09 [Regular]
-5C7E5C7E 7E7E [Trivial]
-5C7E5C7F 7E7F [Trivial]
-5C7E5C80 7E80 [Trivial][ILSEQ]
-5C7E5C81 7E81 [Trivial][ILSEQ]
-5C7E5C9F 7E9F [Trivial][ILSEQ]
-5C7E5CA0 7EA0 [Trivial][ILSEQ]
-5C7E5CA1 7EA1 [Trivial][ILSEQ]
-5C7E5CE0 7EE0 [Trivial][ILSEQ]
-5C7E5CEF 7EEF [Trivial][ILSEQ]
-5C7E5CF9 7EF9 [Trivial][ILSEQ]
-5C7E5CFA 7EFA [Trivial][ILSEQ]
-5C7E5CFC 7EFC [Trivial][ILSEQ]
-5C7E5CFD 7EFD [Trivial][ILSEQ]
-5C7E5CFE 7EFE [Trivial][ILSEQ]
-5C7E5CFF 7EFF [Trivial][ILSEQ]
-5C7F5C00 7F00 [Trivial]
-5C7F5C08 7F08 [Trivial]
-5C7F5C09 7F09 [Trivial]
-5C7F5C0A 7F0A [Trivial]
-5C7F5C0D 7F0D [Trivial]
-5C7F5C1A 7F1A [Trivial]
-5C7F5C22 7F22 [Trivial]
-5C7F5C25 7F5C25 [Regular]
-5C7F5C27 7F27 [Trivial]
-5C7F5C30 7F00 [Regular]
-5C7F5C3F 7F3F [Trivial]
-5C7F5C40 7F40 [Trivial]
-5C7F5C5A 7F1A [Regular]
-5C7F5C5C 7F5C [Regular]
-5C7F5C5F 7F5C5F [Regular]
-5C7F5C61 7F61 [Trivial]
-5C7F5C62 7F08 [Regular]
-5C7F5C6E 7F0A [Regular]
-5C7F5C72 7F0D [Regular]
-5C7F5C74 7F09 [Regular]
-5C7F5C7E 7F7E [Trivial]
-5C7F5C7F 7F7F [Trivial]
-5C7F5C80 7F80 [Trivial][ILSEQ]
-5C7F5C81 7F81 [Trivial][ILSEQ]
-5C7F5C9F 7F9F [Trivial][ILSEQ]
-5C7F5CA0 7FA0 [Trivial][ILSEQ]
-5C7F5CA1 7FA1 [Trivial][ILSEQ]
-5C7F5CE0 7FE0 [Trivial][ILSEQ]
-5C7F5CEF 7FEF [Trivial][ILSEQ]
-5C7F5CF9 7FF9 [Trivial][ILSEQ]
-5C7F5CFA 7FFA [Trivial][ILSEQ]
-5C7F5CFC 7FFC [Trivial][ILSEQ]
-5C7F5CFD 7FFD [Trivial][ILSEQ]
-5C7F5CFE 7FFE [Trivial][ILSEQ]
-5C7F5CFF 7FFF [Trivial][ILSEQ]
-5C805C00 8000 [Trivial][ILSEQ]
-5C805C08 8008 [Trivial][ILSEQ]
-5C805C09 8009 [Trivial][ILSEQ]
-5C805C0A 800A [Trivial][ILSEQ]
-5C805C0D 800D [Trivial][ILSEQ]
-5C805C1A 801A [Trivial][ILSEQ]
-5C805C22 8022 [Trivial][ILSEQ]
-5C805C25 805C25 [Regular][ILSEQ]
-5C805C27 8027 [Trivial][ILSEQ]
-5C805C30 8000 [Regular][ILSEQ]
-5C805C3F 803F [Trivial][ILSEQ]
-5C805C40 8040 [Trivial][ILSEQ]
-5C805C5A 801A [Regular][ILSEQ]
-5C805C5C 805C [Regular][ILSEQ]
-5C805C5F 805C5F [Regular][ILSEQ]
-5C805C61 8061 [Trivial][ILSEQ]
-5C805C62 8008 [Regular][ILSEQ]
-5C805C6E 800A [Regular][ILSEQ]
-5C805C72 800D [Regular][ILSEQ]
-5C805C74 8009 [Regular][ILSEQ]
-5C805C7E 807E [Trivial][ILSEQ]
-5C805C7F 807F [Trivial][ILSEQ]
-5C805C80 8080 [Trivial][ILSEQ]
-5C805C81 8081 [Trivial][ILSEQ]
-5C805C9F 809F [Trivial][ILSEQ]
-5C805CA0 80A0 [Trivial][ILSEQ]
-5C805CA1 80A1 [Trivial][ILSEQ]
-5C805CE0 80E0 [Trivial][ILSEQ]
-5C805CEF 80EF [Trivial][ILSEQ]
-5C805CF9 80F9 [Trivial][ILSEQ]
-5C805CFA 80FA [Trivial][ILSEQ]
-5C805CFC 80FC [Trivial][ILSEQ]
-5C805CFD 80FD [Trivial][ILSEQ]
-5C805CFE 80FE [Trivial][ILSEQ]
-5C805CFF 80FF [Trivial][ILSEQ]
-5C815C00 8100 [Trivial][ILSEQ]
-5C815C08 8108 [Trivial][ILSEQ]
-5C815C09 8109 [Trivial][ILSEQ]
-5C815C0A 810A [Trivial][ILSEQ]
-5C815C0D 810D [Trivial][ILSEQ]
-5C815C1A 811A [Trivial][ILSEQ]
-5C815C22 8122 [Trivial][ILSEQ]
-5C815C25 815C25 [Regular][ILSEQ]
-5C815C27 8127 [Trivial][ILSEQ]
-5C815C30 8100 [Regular][ILSEQ]
-5C815C3F 813F [Trivial][ILSEQ]
-5C815C40 8140 [Trivial][ILSEQ]
-5C815C5A 811A [Regular][ILSEQ]
-5C815C5C 815C [Regular][ILSEQ]
-5C815C5F 815C5F [Regular][ILSEQ]
-5C815C61 8161 [Trivial][ILSEQ]
-5C815C62 8108 [Regular][ILSEQ]
-5C815C6E 810A [Regular][ILSEQ]
-5C815C72 810D [Regular][ILSEQ]
-5C815C74 8109 [Regular][ILSEQ]
-5C815C7E 817E [Trivial][ILSEQ]
-5C815C7F 817F [Trivial][ILSEQ]
-5C815C80 8180 [Trivial][ILSEQ]
-5C815C81 8181 [Trivial][ILSEQ]
-5C815C9F 819F [Trivial][ILSEQ]
-5C815CA0 81A0 [Trivial][ILSEQ]
-5C815CA1 81A1 [Trivial][ILSEQ]
-5C815CE0 81E0 [Trivial][ILSEQ]
-5C815CEF 81EF [Trivial][ILSEQ]
-5C815CF9 81F9 [Trivial][ILSEQ]
-5C815CFA 81FA [Trivial][ILSEQ]
-5C815CFC 81FC [Trivial][ILSEQ]
-5C815CFD 81FD [Trivial][ILSEQ]
-5C815CFE 81FE [Trivial][ILSEQ]
-5C815CFF 81FF [Trivial][ILSEQ]
-5C9F5C00 9F00 [Trivial][ILSEQ]
-5C9F5C08 9F08 [Trivial][ILSEQ]
-5C9F5C09 9F09 [Trivial][ILSEQ]
-5C9F5C0A 9F0A [Trivial][ILSEQ]
-5C9F5C0D 9F0D [Trivial][ILSEQ]
-5C9F5C1A 9F1A [Trivial][ILSEQ]
-5C9F5C22 9F22 [Trivial][ILSEQ]
-5C9F5C25 9F5C25 [Regular][ILSEQ]
-5C9F5C27 9F27 [Trivial][ILSEQ]
-5C9F5C30 9F00 [Regular][ILSEQ]
-5C9F5C3F 9F3F [Trivial][ILSEQ]
-5C9F5C40 9F40 [Trivial][ILSEQ]
-5C9F5C5A 9F1A [Regular][ILSEQ]
-5C9F5C5C 9F5C [Regular][ILSEQ]
-5C9F5C5F 9F5C5F [Regular][ILSEQ]
-5C9F5C61 9F61 [Trivial][ILSEQ]
-5C9F5C62 9F08 [Regular][ILSEQ]
-5C9F5C6E 9F0A [Regular][ILSEQ]
-5C9F5C72 9F0D [Regular][ILSEQ]
-5C9F5C74 9F09 [Regular][ILSEQ]
-5C9F5C7E 9F7E [Trivial][ILSEQ]
-5C9F5C7F 9F7F [Trivial][ILSEQ]
-5C9F5C80 9F80 [Trivial][ILSEQ]
-5C9F5C81 9F81 [Trivial][ILSEQ]
-5C9F5C9F 9F9F [Trivial][ILSEQ]
-5C9F5CA0 9FA0 [Trivial][ILSEQ]
-5C9F5CA1 9FA1 [Trivial][ILSEQ]
-5C9F5CE0 9FE0 [Trivial][ILSEQ]
-5C9F5CEF 9FEF [Trivial][ILSEQ]
-5C9F5CF9 9FF9 [Trivial][ILSEQ]
-5C9F5CFA 9FFA [Trivial][ILSEQ]
-5C9F5CFC 9FFC [Trivial][ILSEQ]
-5C9F5CFD 9FFD [Trivial][ILSEQ]
-5C9F5CFE 9FFE [Trivial][ILSEQ]
-5C9F5CFF 9FFF [Trivial][ILSEQ]
-5CA05C00 A000 [Trivial][ILSEQ]
-5CA05C08 A008 [Trivial][ILSEQ]
-5CA05C09 A009 [Trivial][ILSEQ]
-5CA05C0A A00A [Trivial][ILSEQ]
-5CA05C0D A00D [Trivial][ILSEQ]
-5CA05C1A A01A [Trivial][ILSEQ]
-5CA05C22 A022 [Trivial][ILSEQ]
-5CA05C25 A05C25 [Regular][ILSEQ]
-5CA05C27 A027 [Trivial][ILSEQ]
-5CA05C30 A000 [Regular][ILSEQ]
-5CA05C3F A03F [Trivial][ILSEQ]
-5CA05C40 A040 [Trivial][ILSEQ]
-5CA05C5A A01A [Regular][ILSEQ]
-5CA05C5C A05C [Regular][ILSEQ]
-5CA05C5F A05C5F [Regular][ILSEQ]
-5CA05C61 A061 [Trivial][ILSEQ]
-5CA05C62 A008 [Regular][ILSEQ]
-5CA05C6E A00A [Regular][ILSEQ]
-5CA05C72 A00D [Regular][ILSEQ]
-5CA05C74 A009 [Regular][ILSEQ]
-5CA05C7E A07E [Trivial][ILSEQ]
-5CA05C7F A07F [Trivial][ILSEQ]
-5CA05C80 A080 [Trivial][ILSEQ]
-5CA05C81 A081 [Trivial][ILSEQ]
-5CA05C9F A09F [Trivial][ILSEQ]
-5CA05CA0 A0A0 [Trivial][ILSEQ]
-5CA05CA1 A0A1 [Trivial][ILSEQ]
-5CA05CE0 A0E0 [Trivial][ILSEQ]
-5CA05CEF A0EF [Trivial][ILSEQ]
-5CA05CF9 A0F9 [Trivial][ILSEQ]
-5CA05CFA A0FA [Trivial][ILSEQ]
-5CA05CFC A0FC [Trivial][ILSEQ]
-5CA05CFD A0FD [Trivial][ILSEQ]
-5CA05CFE A0FE [Trivial][ILSEQ]
-5CA05CFF A0FF [Trivial][ILSEQ]
-5CA15C00 A100 [Trivial][ILSEQ]
-5CA15C08 A108 [Trivial][ILSEQ]
-5CA15C09 A109 [Trivial][ILSEQ]
-5CA15C0A A10A [Trivial][ILSEQ]
-5CA15C0D A10D [Trivial][ILSEQ]
-5CA15C1A A11A [Trivial][ILSEQ]
-5CA15C22 A122 [Trivial][ILSEQ]
-5CA15C25 A15C25 [Regular][ILSEQ]
-5CA15C27 A127 [Trivial][ILSEQ]
-5CA15C30 A100 [Regular][ILSEQ]
-5CA15C3F A13F [Trivial][ILSEQ]
-5CA15C40 A140 [Trivial][ILSEQ]
-5CA15C5A A11A [Regular][ILSEQ]
-5CA15C5C A15C [Regular][ILSEQ]
-5CA15C5F A15C5F [Regular][ILSEQ]
-5CA15C61 A161 [Trivial][ILSEQ]
-5CA15C62 A108 [Regular][ILSEQ]
-5CA15C6E A10A [Regular][ILSEQ]
-5CA15C72 A10D [Regular][ILSEQ]
-5CA15C74 A109 [Regular][ILSEQ]
-5CA15C7E A17E [Trivial][ILSEQ]
-5CA15C7F A17F [Trivial][ILSEQ]
-5CA15C80 A180 [Trivial][ILSEQ]
-5CA15C81 A181 [Trivial][ILSEQ]
-5CA15C9F A19F [Trivial][ILSEQ]
-5CA15CA0 A1A0 [Trivial][ILSEQ]
-5CA15CA1 A1A1 [Trivial][FIXED][USER]
-5CA15CE0 A1E0 [Trivial][FIXED][USER]
-5CA15CEF A1EF [Trivial][FIXED][USER]
-5CA15CF9 A1F9 [Trivial][FIXED][USER]
-5CA15CFA A1FA [Trivial][FIXED][USER]
-5CA15CFC A1FC [Trivial][FIXED][USER]
-5CA15CFD A1FD [Trivial][FIXED][USER]
-5CA15CFE A1FE [Trivial][FIXED][USER]
-5CA15CFF A1FF [Trivial][ILSEQ]
-5CE05C00 E000 [Trivial][ILSEQ]
-5CE05C08 E008 [Trivial][ILSEQ]
-5CE05C09 E009 [Trivial][ILSEQ]
-5CE05C0A E00A [Trivial][ILSEQ]
-5CE05C0D E00D [Trivial][ILSEQ]
-5CE05C1A E01A [Trivial][ILSEQ]
-5CE05C22 E022 [Trivial][ILSEQ]
-5CE05C25 E05C25 [Regular][ILSEQ]
-5CE05C27 E027 [Trivial][ILSEQ]
-5CE05C30 E000 [Regular][ILSEQ]
-5CE05C3F E03F [Trivial][ILSEQ]
-5CE05C40 E040 [Trivial][ILSEQ]
-5CE05C5A E01A [Regular][ILSEQ]
-5CE05C5C E05C [Regular][ILSEQ]
-5CE05C5F E05C5F [Regular][ILSEQ]
-5CE05C61 E061 [Trivial][ILSEQ]
-5CE05C62 E008 [Regular][ILSEQ]
-5CE05C6E E00A [Regular][ILSEQ]
-5CE05C72 E00D [Regular][ILSEQ]
-5CE05C74 E009 [Regular][ILSEQ]
-5CE05C7E E07E [Trivial][ILSEQ]
-5CE05C7F E07F [Trivial][ILSEQ]
-5CE05C80 E080 [Trivial][ILSEQ]
-5CE05C81 E081 [Trivial][ILSEQ]
-5CE05C9F E09F [Trivial][ILSEQ]
-5CE05CA0 E0A0 [Trivial][ILSEQ]
-5CE05CA1 E0A1 [Trivial][FIXED][USER]
-5CE05CE0 E0E0 [Trivial][FIXED][USER]
-5CE05CEF E0EF [Trivial][FIXED][USER]
-5CE05CF9 E0F9 [Trivial][FIXED][USER]
-5CE05CFA E0FA [Trivial][FIXED][USER]
-5CE05CFC E0FC [Trivial][FIXED][USER]
-5CE05CFD E0FD [Trivial][FIXED][USER]
-5CE05CFE E0FE [Trivial][FIXED][USER]
-5CE05CFF E0FF [Trivial][ILSEQ]
-5CEF5C00 EF00 [Trivial][ILSEQ]
-5CEF5C08 EF08 [Trivial][ILSEQ]
-5CEF5C09 EF09 [Trivial][ILSEQ]
-5CEF5C0A EF0A [Trivial][ILSEQ]
-5CEF5C0D EF0D [Trivial][ILSEQ]
-5CEF5C1A EF1A [Trivial][ILSEQ]
-5CEF5C22 EF22 [Trivial][ILSEQ]
-5CEF5C25 EF5C25 [Regular][ILSEQ]
-5CEF5C27 EF27 [Trivial][ILSEQ]
-5CEF5C30 EF00 [Regular][ILSEQ]
-5CEF5C3F EF3F [Trivial][ILSEQ]
-5CEF5C40 EF40 [Trivial][ILSEQ]
-5CEF5C5A EF1A [Regular][ILSEQ]
-5CEF5C5C EF5C [Regular][ILSEQ]
-5CEF5C5F EF5C5F [Regular][ILSEQ]
-5CEF5C61 EF61 [Trivial][ILSEQ]
-5CEF5C62 EF08 [Regular][ILSEQ]
-5CEF5C6E EF0A [Regular][ILSEQ]
-5CEF5C72 EF0D [Regular][ILSEQ]
-5CEF5C74 EF09 [Regular][ILSEQ]
-5CEF5C7E EF7E [Trivial][ILSEQ]
-5CEF5C7F EF7F [Trivial][ILSEQ]
-5CEF5C80 EF80 [Trivial][ILSEQ]
-5CEF5C81 EF81 [Trivial][ILSEQ]
-5CEF5C9F EF9F [Trivial][ILSEQ]
-5CEF5CA0 EFA0 [Trivial][ILSEQ]
-5CEF5CA1 EFA1 [Trivial][FIXED][USER]
-5CEF5CE0 EFE0 [Trivial][FIXED][USER]
-5CEF5CEF EFEF [Trivial][FIXED][USER]
-5CEF5CF9 EFF9 [Trivial][FIXED][USER]
-5CEF5CFA EFFA [Trivial][FIXED][USER]
-5CEF5CFC EFFC [Trivial][FIXED][USER]
-5CEF5CFD EFFD [Trivial][FIXED][USER]
-5CEF5CFE EFFE [Trivial][FIXED][USER]
-5CEF5CFF EFFF [Trivial][ILSEQ]
-5CF95C00 F900 [Trivial][ILSEQ]
-5CF95C08 F908 [Trivial][ILSEQ]
-5CF95C09 F909 [Trivial][ILSEQ]
-5CF95C0A F90A [Trivial][ILSEQ]
-5CF95C0D F90D [Trivial][ILSEQ]
-5CF95C1A F91A [Trivial][ILSEQ]
-5CF95C22 F922 [Trivial][ILSEQ]
-5CF95C25 F95C25 [Regular][ILSEQ]
-5CF95C27 F927 [Trivial][ILSEQ]
-5CF95C30 F900 [Regular][ILSEQ]
-5CF95C3F F93F [Trivial][ILSEQ]
-5CF95C40 F940 [Trivial][ILSEQ]
-5CF95C5A F91A [Regular][ILSEQ]
-5CF95C5C F95C [Regular][ILSEQ]
-5CF95C5F F95C5F [Regular][ILSEQ]
-5CF95C61 F961 [Trivial][ILSEQ]
-5CF95C62 F908 [Regular][ILSEQ]
-5CF95C6E F90A [Regular][ILSEQ]
-5CF95C72 F90D [Regular][ILSEQ]
-5CF95C74 F909 [Regular][ILSEQ]
-5CF95C7E F97E [Trivial][ILSEQ]
-5CF95C7F F97F [Trivial][ILSEQ]
-5CF95C80 F980 [Trivial][ILSEQ]
-5CF95C81 F981 [Trivial][ILSEQ]
-5CF95C9F F99F [Trivial][ILSEQ]
-5CF95CA0 F9A0 [Trivial][ILSEQ]
-5CF95CA1 F9A1 [Trivial][ILSEQ]
-5CF95CE0 F9E0 [Trivial][ILSEQ]
-5CF95CEF F9EF [Trivial][ILSEQ]
-5CF95CF9 F9F9 [Trivial][ILSEQ]
-5CF95CFA F9FA [Trivial][ILSEQ]
-5CF95CFC F9FC [Trivial][ILSEQ]
-5CF95CFD F9FD [Trivial][ILSEQ]
-5CF95CFE F9FE [Trivial][ILSEQ]
-5CF95CFF F9FF [Trivial][ILSEQ]
-5CFA5C00 FA00 [Trivial][ILSEQ]
-5CFA5C08 FA08 [Trivial][ILSEQ]
-5CFA5C09 FA09 [Trivial][ILSEQ]
-5CFA5C0A FA0A [Trivial][ILSEQ]
-5CFA5C0D FA0D [Trivial][ILSEQ]
-5CFA5C1A FA1A [Trivial][ILSEQ]
-5CFA5C22 FA22 [Trivial][ILSEQ]
-5CFA5C25 FA5C25 [Regular][ILSEQ]
-5CFA5C27 FA27 [Trivial][ILSEQ]
-5CFA5C30 FA00 [Regular][ILSEQ]
-5CFA5C3F FA3F [Trivial][ILSEQ]
-5CFA5C40 FA40 [Trivial][ILSEQ]
-5CFA5C5A FA1A [Regular][ILSEQ]
-5CFA5C5C FA5C [Regular][ILSEQ]
-5CFA5C5F FA5C5F [Regular][ILSEQ]
-5CFA5C61 FA61 [Trivial][ILSEQ]
-5CFA5C62 FA08 [Regular][ILSEQ]
-5CFA5C6E FA0A [Regular][ILSEQ]
-5CFA5C72 FA0D [Regular][ILSEQ]
-5CFA5C74 FA09 [Regular][ILSEQ]
-5CFA5C7E FA7E [Trivial][ILSEQ]
-5CFA5C7F FA7F [Trivial][ILSEQ]
-5CFA5C80 FA80 [Trivial][ILSEQ]
-5CFA5C81 FA81 [Trivial][ILSEQ]
-5CFA5C9F FA9F [Trivial][ILSEQ]
-5CFA5CA0 FAA0 [Trivial][ILSEQ]
-5CFA5CA1 FAA1 [Trivial][ILSEQ]
-5CFA5CE0 FAE0 [Trivial][ILSEQ]
-5CFA5CEF FAEF [Trivial][ILSEQ]
-5CFA5CF9 FAF9 [Trivial][ILSEQ]
-5CFA5CFA FAFA [Trivial][ILSEQ]
-5CFA5CFC FAFC [Trivial][ILSEQ]
-5CFA5CFD FAFD [Trivial][ILSEQ]
-5CFA5CFE FAFE [Trivial][ILSEQ]
-5CFA5CFF FAFF [Trivial][ILSEQ]
-5CFC5C00 FC00 [Trivial][ILSEQ]
-5CFC5C08 FC08 [Trivial][ILSEQ]
-5CFC5C09 FC09 [Trivial][ILSEQ]
-5CFC5C0A FC0A [Trivial][ILSEQ]
-5CFC5C0D FC0D [Trivial][ILSEQ]
-5CFC5C1A FC1A [Trivial][ILSEQ]
-5CFC5C22 FC22 [Trivial][ILSEQ]
-5CFC5C25 FC5C25 [Regular][ILSEQ]
-5CFC5C27 FC27 [Trivial][ILSEQ]
-5CFC5C30 FC00 [Regular][ILSEQ]
-5CFC5C3F FC3F [Trivial][ILSEQ]
-5CFC5C40 FC40 [Trivial][ILSEQ]
-5CFC5C5A FC1A [Regular][ILSEQ]
-5CFC5C5C FC5C [Regular][ILSEQ]
-5CFC5C5F FC5C5F [Regular][ILSEQ]
-5CFC5C61 FC61 [Trivial][ILSEQ]
-5CFC5C62 FC08 [Regular][ILSEQ]
-5CFC5C6E FC0A [Regular][ILSEQ]
-5CFC5C72 FC0D [Regular][ILSEQ]
-5CFC5C74 FC09 [Regular][ILSEQ]
-5CFC5C7E FC7E [Trivial][ILSEQ]
-5CFC5C7F FC7F [Trivial][ILSEQ]
-5CFC5C80 FC80 [Trivial][ILSEQ]
-5CFC5C81 FC81 [Trivial][ILSEQ]
-5CFC5C9F FC9F [Trivial][ILSEQ]
-5CFC5CA0 FCA0 [Trivial][ILSEQ]
-5CFC5CA1 FCA1 [Trivial][ILSEQ]
-5CFC5CE0 FCE0 [Trivial][ILSEQ]
-5CFC5CEF FCEF [Trivial][ILSEQ]
-5CFC5CF9 FCF9 [Trivial][ILSEQ]
-5CFC5CFA FCFA [Trivial][ILSEQ]
-5CFC5CFC FCFC [Trivial][ILSEQ]
-5CFC5CFD FCFD [Trivial][ILSEQ]
-5CFC5CFE FCFE [Trivial][ILSEQ]
-5CFC5CFF FCFF [Trivial][ILSEQ]
-5CFD5C00 FD00 [Trivial][ILSEQ]
-5CFD5C08 FD08 [Trivial][ILSEQ]
-5CFD5C09 FD09 [Trivial][ILSEQ]
-5CFD5C0A FD0A [Trivial][ILSEQ]
-5CFD5C0D FD0D [Trivial][ILSEQ]
-5CFD5C1A FD1A [Trivial][ILSEQ]
-5CFD5C22 FD22 [Trivial][ILSEQ]
-5CFD5C25 FD5C25 [Regular][ILSEQ]
-5CFD5C27 FD27 [Trivial][ILSEQ]
-5CFD5C30 FD00 [Regular][ILSEQ]
-5CFD5C3F FD3F [Trivial][ILSEQ]
-5CFD5C40 FD40 [Trivial][ILSEQ]
-5CFD5C5A FD1A [Regular][ILSEQ]
-5CFD5C5C FD5C [Regular][ILSEQ]
-5CFD5C5F FD5C5F [Regular][ILSEQ]
-5CFD5C61 FD61 [Trivial][ILSEQ]
-5CFD5C62 FD08 [Regular][ILSEQ]
-5CFD5C6E FD0A [Regular][ILSEQ]
-5CFD5C72 FD0D [Regular][ILSEQ]
-5CFD5C74 FD09 [Regular][ILSEQ]
-5CFD5C7E FD7E [Trivial][ILSEQ]
-5CFD5C7F FD7F [Trivial][ILSEQ]
-5CFD5C80 FD80 [Trivial][ILSEQ]
-5CFD5C81 FD81 [Trivial][ILSEQ]
-5CFD5C9F FD9F [Trivial][ILSEQ]
-5CFD5CA0 FDA0 [Trivial][ILSEQ]
-5CFD5CA1 FDA1 [Trivial][ILSEQ]
-5CFD5CE0 FDE0 [Trivial][ILSEQ]
-5CFD5CEF FDEF [Trivial][ILSEQ]
-5CFD5CF9 FDF9 [Trivial][ILSEQ]
-5CFD5CFA FDFA [Trivial][ILSEQ]
-5CFD5CFC FDFC [Trivial][ILSEQ]
-5CFD5CFD FDFD [Trivial][ILSEQ]
-5CFD5CFE FDFE [Trivial][ILSEQ]
-5CFD5CFF FDFF [Trivial][ILSEQ]
-5CFE5C00 FE00 [Trivial][ILSEQ]
-5CFE5C08 FE08 [Trivial][ILSEQ]
-5CFE5C09 FE09 [Trivial][ILSEQ]
-5CFE5C0A FE0A [Trivial][ILSEQ]
-5CFE5C0D FE0D [Trivial][ILSEQ]
-5CFE5C1A FE1A [Trivial][ILSEQ]
-5CFE5C22 FE22 [Trivial][ILSEQ]
-5CFE5C25 FE5C25 [Regular][ILSEQ]
-5CFE5C27 FE27 [Trivial][ILSEQ]
-5CFE5C30 FE00 [Regular][ILSEQ]
-5CFE5C3F FE3F [Trivial][ILSEQ]
-5CFE5C40 FE40 [Trivial][ILSEQ]
-5CFE5C5A FE1A [Regular][ILSEQ]
-5CFE5C5C FE5C [Regular][ILSEQ]
-5CFE5C5F FE5C5F [Regular][ILSEQ]
-5CFE5C61 FE61 [Trivial][ILSEQ]
-5CFE5C62 FE08 [Regular][ILSEQ]
-5CFE5C6E FE0A [Regular][ILSEQ]
-5CFE5C72 FE0D [Regular][ILSEQ]
-5CFE5C74 FE09 [Regular][ILSEQ]
-5CFE5C7E FE7E [Trivial][ILSEQ]
-5CFE5C7F FE7F [Trivial][ILSEQ]
-5CFE5C80 FE80 [Trivial][ILSEQ]
-5CFE5C81 FE81 [Trivial][ILSEQ]
-5CFE5C9F FE9F [Trivial][ILSEQ]
-5CFE5CA0 FEA0 [Trivial][ILSEQ]
-5CFE5CA1 FEA1 [Trivial][ILSEQ]
-5CFE5CE0 FEE0 [Trivial][ILSEQ]
-5CFE5CEF FEEF [Trivial][ILSEQ]
-5CFE5CF9 FEF9 [Trivial][ILSEQ]
-5CFE5CFA FEFA [Trivial][ILSEQ]
-5CFE5CFC FEFC [Trivial][ILSEQ]
-5CFE5CFD FEFD [Trivial][ILSEQ]
-5CFE5CFE FEFE [Trivial][ILSEQ]
-5CFE5CFF FEFF [Trivial][ILSEQ]
-5CFF5C00 FF00 [Trivial][ILSEQ]
-5CFF5C08 FF08 [Trivial][ILSEQ]
-5CFF5C09 FF09 [Trivial][ILSEQ]
-5CFF5C0A FF0A [Trivial][ILSEQ]
-5CFF5C0D FF0D [Trivial][ILSEQ]
-5CFF5C1A FF1A [Trivial][ILSEQ]
-5CFF5C22 FF22 [Trivial][ILSEQ]
-5CFF5C25 FF5C25 [Regular][ILSEQ]
-5CFF5C27 FF27 [Trivial][ILSEQ]
-5CFF5C30 FF00 [Regular][ILSEQ]
-5CFF5C3F FF3F [Trivial][ILSEQ]
-5CFF5C40 FF40 [Trivial][ILSEQ]
-5CFF5C5A FF1A [Regular][ILSEQ]
-5CFF5C5C FF5C [Regular][ILSEQ]
-5CFF5C5F FF5C5F [Regular][ILSEQ]
-5CFF5C61 FF61 [Trivial][ILSEQ]
-5CFF5C62 FF08 [Regular][ILSEQ]
-5CFF5C6E FF0A [Regular][ILSEQ]
-5CFF5C72 FF0D [Regular][ILSEQ]
-5CFF5C74 FF09 [Regular][ILSEQ]
-5CFF5C7E FF7E [Trivial][ILSEQ]
-5CFF5C7F FF7F [Trivial][ILSEQ]
-5CFF5C80 FF80 [Trivial][ILSEQ]
-5CFF5C81 FF81 [Trivial][ILSEQ]
-5CFF5C9F FF9F [Trivial][ILSEQ]
-5CFF5CA0 FFA0 [Trivial][ILSEQ]
-5CFF5CA1 FFA1 [Trivial][ILSEQ]
-5CFF5CE0 FFE0 [Trivial][ILSEQ]
-5CFF5CEF FFEF [Trivial][ILSEQ]
-5CFF5CF9 FFF9 [Trivial][ILSEQ]
-5CFF5CFA FFFA [Trivial][ILSEQ]
-5CFF5CFC FFFC [Trivial][ILSEQ]
-5CFF5CFD FFFD [Trivial][ILSEQ]
-5CFF5CFE FFFE [Trivial][ILSEQ]
-5CFF5CFF FFFF [Trivial][ILSEQ]
-DROP TABLE t1;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP FUNCTION unescape;
-DROP FUNCTION unescape_type;
-DROP FUNCTION wellformedness;
-DROP FUNCTION mysql_real_escape_string_generated;
-DROP FUNCTION iswellformed;
-DROP TABLE allbytes;
-SET sql_mode = DEFAULT;
-# End of ctype_backslash.inc
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=gb2312;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'gb2312_chinese_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE gb2312_chinese_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=gb2312 COLLATE=gb2312_chinese_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'gb2312_chinese_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gb2312_chinese_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'gb2312_chinese_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'gb2312_chinese_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'gb2312_chinese_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'gb2312_chinese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'gb2312_chinese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'gb2312_chinese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'gb2312_chinese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'gb2312_chinese_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'gb2312_chinese_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'gb2312_chinese_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'gb2312_chinese_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gb2312_chinese_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_chinese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_chinese_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'gb2312_chinese_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_chinese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_chinese_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'gb2312_chinese_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE gb2312_chinese_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=gb2312 COLLATE=gb2312_chinese_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'gb2312_chinese_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gb2312_chinese_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'gb2312_chinese_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'gb2312_chinese_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'gb2312_chinese_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'gb2312_chinese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'gb2312_chinese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'gb2312_chinese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'gb2312_chinese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'gb2312_chinese_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'gb2312_chinese_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'gb2312_chinese_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'gb2312_chinese_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gb2312_chinese_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_chinese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_chinese_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'gb2312_chinese_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_chinese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_chinese_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'gb2312_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE gb2312_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=gb2312 COLLATE=gb2312_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'gb2312_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gb2312_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'gb2312_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'gb2312_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'gb2312_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'gb2312_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'gb2312_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'gb2312_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'gb2312_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'gb2312_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'gb2312_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'gb2312_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'gb2312_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gb2312_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'gb2312_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'gb2312_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE gb2312_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=gb2312 COLLATE=gb2312_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'gb2312_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gb2312_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'gb2312_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'gb2312_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'gb2312_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'gb2312_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'gb2312_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'gb2312_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'gb2312_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'gb2312_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'gb2312_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'gb2312_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'gb2312_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gb2312_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'gb2312_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gb2312_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_gbk.result b/mysql-test/r/ctype_gbk.result
deleted file mode 100644
index 5244d6eb333..00000000000
--- a/mysql-test/r/ctype_gbk.result
+++ /dev/null
@@ -1,6505 +0,0 @@
-drop table if exists t1;
-SET @test_character_set= 'gbk';
-SET @test_collation= 'gbk_chinese_ci';
-SET @safe_character_set_server= @@character_set_server;
-SET @safe_collation_server= @@collation_server;
-SET @safe_character_set_client= @@character_set_client;
-SET @safe_character_set_results= @@character_set_results;
-SET character_set_server= @test_character_set;
-SET collation_server= @test_collation;
-CREATE DATABASE d1;
-USE d1;
-CREATE TABLE t1 (c CHAR(10), KEY(c));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c char(10) gbk_chinese_ci YES MUL NULL
-INSERT INTO t1 VALUES ('aaa'),('aaaa'),('aaaaa');
-SELECT c as want3results FROM t1 WHERE c LIKE 'aaa%';
-want3results
-aaa
-aaaa
-aaaaa
-DROP TABLE t1;
-CREATE TABLE t1 (c1 varchar(15), KEY c1 (c1(2)));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c1 varchar(15) gbk_chinese_ci YES MUL NULL
-INSERT INTO t1 VALUES ('location'),('loberge'),('lotre'),('boabab');
-SELECT c1 as want3results from t1 where c1 like 'l%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want3results from t1 where c1 like 'lo%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want1result from t1 where c1 like 'loc%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'loca%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locat%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locati%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locatio%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'location%';
-want1result
-location
-DROP TABLE t1;
-create table t1 (a set('a') not null);
-insert ignore into t1 values (),();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-select cast(a as char(1)) from t1;
-cast(a as char(1))
-
-
-select a sounds like a from t1;
-a sounds like a
-1
-1
-select 1 from t1 order by cast(a as char(1));
-1
-1
-1
-drop table t1;
-#
-# MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found
-#
-SET character_set_client=latin1;
-SET character_set_connection= @test_character_set;
-SET collation_connection= @test_collation;
-SELECT COLLATION('.'), SUBSTRING_INDEX('.wwwmysqlcom', '.', -2) AS c1;
-COLLATION('.') c1
-gbk_chinese_ci .wwwmysqlcom
-set names utf8;
-create table t1 (
-name varchar(10),
-level smallint unsigned);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `name` varchar(10) DEFAULT NULL,
- `level` smallint(5) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=gbk
-insert into t1 values ('string',1);
-select concat(name,space(level)), concat(name, repeat(' ',level)) from t1;
-concat(name,space(level)) concat(name, repeat(' ',level))
-string string
-drop table t1;
-DROP DATABASE d1;
-USE test;
-SET character_set_server= @safe_character_set_server;
-SET collation_server= @safe_collation_server;
-SET character_set_client= @safe_character_set_client;
-SET character_set_results= @safe_character_set_results;
-SET NAMES gbk;
-SET collation_connection='gbk_chinese_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-gbk_chinese_ci 6109
-gbk_chinese_ci 61
-gbk_chinese_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-gbk_chinese_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-gbk_chinese_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-create table t1 engine=innodb select repeat('a',50) as c1;
-alter table t1 add index(c1(5));
-insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
-select collation(c1) from t1 limit 1;
-collation(c1)
-gbk_chinese_ci
-select c1 from t1 where c1 like 'abcdef%' order by c1;
-c1
-abcdefg
-select c1 from t1 where c1 like 'abcde1%' order by c1;
-c1
-abcde100
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde11%' order by c1;
-c1
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde111%' order by c1;
-c1
-abcde111
-drop table t1;
-select @@collation_connection;
-@@collation_connection
-gbk_chinese_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F225
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-drop table if exists t1;
-create table t1 select repeat('a',10) as c1;
-delete from t1;
-insert into t1 values (0x20),(0x21),(0x22),(0x23),(0x24),(0x25),(0x26),(0x27),(0x28),(0x29),(0x2A),(0x2B),(0x2C),(0x2D),(0x2E),(0x2F);
-insert into t1 values (0x30),(0x31),(0x32),(0x33),(0x34),(0x35),(0x36),(0x37),(0x38),(0x39),(0x3A),(0x3B),(0x3C),(0x3D),(0x3E),(0x3F);
-insert into t1 values (0x40),(0x41),(0x42),(0x43),(0x44),(0x45),(0x46),(0x47),(0x48),(0x49),(0x4A),(0x4B),(0x4C),(0x4D),(0x4E),(0x4F);
-insert into t1 values (0x50),(0x51),(0x52),(0x53),(0x54),(0x55),(0x56),(0x57),(0x58),(0x59),(0x5A),(0x5B),(0x5C),(0x5D),(0x5E),(0x5F);
-insert into t1 values (0x60),(0x61),(0x62),(0x63),(0x64),(0x65),(0x66),(0x67),(0x68),(0x69),(0x6A),(0x6B),(0x6C),(0x6D),(0x6E),(0x6F);
-insert into t1 values (0x70),(0x71),(0x72),(0x73),(0x74),(0x75),(0x76),(0x77),(0x78),(0x79),(0x7A),(0x7B),(0x7C),(0x7D),(0x7E),(0x7F);
-SELECT GROUP_CONCAT(c1 ORDER BY binary c1 SEPARATOR ''), GROUP_CONCAT(hex(c1) ORDER BY BINARY c1) FROM t1 GROUP BY c1;
-GROUP_CONCAT(c1 ORDER BY binary c1 SEPARATOR '') GROUP_CONCAT(hex(c1) ORDER BY BINARY c1)
- 20
-! 21
-" 22
-# 23
-$ 24
-% 25
-& 26
-' 27
-( 28
-) 29
-* 2A
-+ 2B
-, 2C
-- 2D
-. 2E
-/ 2F
-0 30
-1 31
-2 32
-3 33
-4 34
-5 35
-6 36
-7 37
-8 38
-9 39
-: 3A
-; 3B
-< 3C
-= 3D
-> 3E
-? 3F
-@ 40
-Aa 41,61
-Bb 42,62
-Cc 43,63
-Dd 44,64
-Ee 45,65
-Ff 46,66
-Gg 47,67
-Hh 48,68
-Ii 49,69
-Jj 4A,6A
-Kk 4B,6B
-Ll 4C,6C
-Mm 4D,6D
-Nn 4E,6E
-Oo 4F,6F
-Pp 50,70
-Qq 51,71
-Rr 52,72
-Ss 53,73
-Tt 54,74
-Uu 55,75
-Vv 56,76
-Ww 57,77
-Xx 58,78
-Yy~ 59,79,7E
-Zz 5A,7A
-] 5D
-[ 5B
-\ 5C
-^ 5E
-_ 5F
-` 60
-{ 7B
-| 7C
-} 7D
- 7F
-drop table t1;
-SET collation_connection='gbk_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-gbk_bin 6109
-gbk_bin 61
-gbk_bin 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-gbk_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-gbk_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-create table t1 engine=innodb select repeat('a',50) as c1;
-alter table t1 add index(c1(5));
-insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
-select collation(c1) from t1 limit 1;
-collation(c1)
-gbk_bin
-select c1 from t1 where c1 like 'abcdef%' order by c1;
-c1
-abcdefg
-select c1 from t1 where c1 like 'abcde1%' order by c1;
-c1
-abcde100
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde11%' order by c1;
-c1
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde111%' order by c1;
-c1
-abcde111
-drop table t1;
-select @@collation_connection;
-@@collation_connection
-gbk_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F225
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-SET NAMES gbk;
-CREATE TABLE t1 (a text) character set gbk;
-INSERT INTO t1 VALUES (0xA3A0),(0xA1A1);
-SELECT hex(a) FROM t1 ORDER BY a;
-hex(a)
-A1A1
-A3A0
-DROP TABLE t1;
-select hex(convert(_gbk 0xA14041 using ucs2));
-hex(convert(_gbk 0xA14041 using ucs2))
-003F0041
-Warnings:
-Warning 1977 Cannot convert 'gbk' character 0xA140 to 'ucs2'
-create table t1 (c1 text not null, c2 text not null) character set gbk;
-alter table t1 change c1 c1 mediumtext character set gbk not null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` mediumtext NOT NULL,
- `c2` text NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=gbk
-drop table t1;
-CREATE TABLE t1(a MEDIUMTEXT CHARACTER SET gbk,
-b MEDIUMTEXT CHARACTER SET big5);
-INSERT INTO t1 VALUES
-(REPEAT(0x1125,200000), REPEAT(0x1125,200000)), ('', ''), ('', '');
-SELECT a FROM t1 GROUP BY 1 LIMIT 1 INTO @nullll;
-SELECT b FROM t1 GROUP BY 1 LIMIT 1 INTO @nullll;
-DROP TABLES t1;
-End of 5.0 tests
-#
-# Start of 5.5 tests
-#
-#
-# Testing WL#4583 Case conversion in Asian character sets
-#
-SET NAMES utf8;
-SET collation_connection=gbk_chinese_ci;
-CREATE TABLE t1 (b VARCHAR(2));
-INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
-INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
-CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
-DROP TABLE t1;
-CREATE TABLE t1 AS
-SELECT concat(head, tail) AS code, ' ' AS a
-FROM head, tail
-WHERE (head BETWEEN '80' AND 'FF') AND (tail BETWEEN '20' AND 'FF')
-ORDER BY head, tail;
-DROP TEMPORARY TABLE head, tail;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `code` varchar(8) DEFAULT NULL,
- `a` varchar(1) CHARACTER SET gbk NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
-Warnings:
-Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
-Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
-Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
-Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
-Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
-Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
-Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
-Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
-Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
-Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
-Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
-Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
-Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
-Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
-Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
-Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
-Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
-Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
-Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
-Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
-Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
-Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
-Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
-Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
-Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
-Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
-Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
-Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
-Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
-Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
-Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
-Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
-Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
-Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
-Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
-Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
-Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
-Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
-Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
-Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
-Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
-Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
-Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
-Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
-Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
-Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
-Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
-Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
-Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
-Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
-Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
-Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
-Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
-Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
-Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
-Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
-Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
-Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
-Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
-Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
-Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
-Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
-Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
-SELECT COUNT(*) FROM t1 WHERE a<>'?';
-COUNT(*)
-23940
-SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a) FROM t1 WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a));
-code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
-A2A1 A2F1 A2A1 â…° â…  â…°
-A2A2 A2F2 A2A2 â…± â…¡ â…±
-A2A3 A2F3 A2A3 â…² â…¢ â…²
-A2A4 A2F4 A2A4 â…³ â…£ â…³
-A2A5 A2F5 A2A5 â…´ â…¤ â…´
-A2A6 A2F6 A2A6 â…µ â…¥ â…µ
-A2A7 A2F7 A2A7 â…¶ â…¦ â…¶
-A2A8 A2F8 A2A8 â…· â…§ â…·
-A2A9 A2F9 A2A9 â…¸ â…¨ â…¸
-A2AA A2FA A2AA â…¹ â…© â…¹
-A2F1 A2F1 A2A1 â…  â…  â…°
-A2F2 A2F2 A2A2 â…¡ â…¡ â…±
-A2F3 A2F3 A2A3 â…¢ â…¢ â…²
-A2F4 A2F4 A2A4 â…£ â…£ â…³
-A2F5 A2F5 A2A5 â…¤ â…¤ â…´
-A2F6 A2F6 A2A6 â…¥ â…¥ â…µ
-A2F7 A2F7 A2A7 â…¦ â…¦ â…¶
-A2F8 A2F8 A2A8 â…§ â…§ â…·
-A2F9 A2F9 A2A9 â…¨ â…¨ â…¸
-A2FA A2FA A2AA â…© â…© â…¹
-A3C1 A3C1 A3E1 A A ï½
-A3C2 A3C2 A3E2 B B b
-A3C3 A3C3 A3E3 C C c
-A3C4 A3C4 A3E4 D D d
-A3C5 A3C5 A3E5 ï¼¥ ï¼¥ ï½…
-A3C6 A3C6 A3E6 F F f
-A3C7 A3C7 A3E7 G G g
-A3C8 A3C8 A3E8 H H h
-A3C9 A3C9 A3E9 I I i
-A3CA A3CA A3EA J J j
-A3CB A3CB A3EB K K k
-A3CC A3CC A3EC L L l
-A3CD A3CD A3ED ï¼­ ï¼­ ï½
-A3CE A3CE A3EE N N n
-A3CF A3CF A3EF O O ï½
-A3D0 A3D0 A3F0 ï¼° ï¼° ï½
-A3D1 A3D1 A3F1 Q Q q
-A3D2 A3D2 A3F2 ï¼² ï¼² ï½’
-A3D3 A3D3 A3F3 S S s
-A3D4 A3D4 A3F4 ï¼´ ï¼´ ï½”
-A3D5 A3D5 A3F5 U U u
-A3D6 A3D6 A3F6 V V v
-A3D7 A3D7 A3F7 ï¼· ï¼· ï½—
-A3D8 A3D8 A3F8 X X x
-A3D9 A3D9 A3F9 ï¼¹ ï¼¹ ï½™
-A3DA A3DA A3FA Z Z z
-A3E1 A3C1 A3E1 ï½ ï¼¡ ï½
-A3E2 A3C2 A3E2 b B b
-A3E3 A3C3 A3E3 c C c
-A3E4 A3C4 A3E4 d D d
-A3E5 A3C5 A3E5 ï½… ï¼¥ ï½…
-A3E6 A3C6 A3E6 f F f
-A3E7 A3C7 A3E7 g G g
-A3E8 A3C8 A3E8 h H h
-A3E9 A3C9 A3E9 i I i
-A3EA A3CA A3EA j J j
-A3EB A3CB A3EB k K k
-A3EC A3CC A3EC l L l
-A3ED A3CD A3ED ï½ ï¼­ ï½
-A3EE A3CE A3EE n N n
-A3EF A3CF A3EF ï½ ï¼¯ ï½
-A3F0 A3D0 A3F0 ï½ ï¼° ï½
-A3F1 A3D1 A3F1 q Q q
-A3F2 A3D2 A3F2 ï½’ ï¼² ï½’
-A3F3 A3D3 A3F3 s S s
-A3F4 A3D4 A3F4 ï½” ï¼´ ï½”
-A3F5 A3D5 A3F5 u U u
-A3F6 A3D6 A3F6 v V v
-A3F7 A3D7 A3F7 ï½— ï¼· ï½—
-A3F8 A3D8 A3F8 x X x
-A3F9 A3D9 A3F9 ï½™ ï¼¹ ï½™
-A3FA A3DA A3FA z Z z
-A6A1 A6A1 A6C1 Α Α α
-A6A2 A6A2 A6C2 Β Β β
-A6A3 A6A3 A6C3 Γ Γ γ
-A6A4 A6A4 A6C4 Δ Δ δ
-A6A5 A6A5 A6C5 Ε Ε ε
-A6A6 A6A6 A6C6 Ζ Ζ ζ
-A6A7 A6A7 A6C7 Η Η η
-A6A8 A6A8 A6C8 Θ Θ θ
-A6A9 A6A9 A6C9 Ι Ι ι
-A6AA A6AA A6CA Κ Κ κ
-A6AB A6AB A6CB Λ Λ λ
-A6AC A6AC A6CC Μ Μ μ
-A6AD A6AD A6CD ΠΠν
-A6AE A6AE A6CE Ξ Ξ ξ
-A6AF A6AF A6CF Ο Ο ο
-A6B0 A6B0 A6D0 Π Π π
-A6B1 A6B1 A6D1 Ρ Ρ Ï
-A6B2 A6B2 A6D2 Σ Σ σ
-A6B3 A6B3 A6D3 Τ Τ τ
-A6B4 A6B4 A6D4 Υ Υ υ
-A6B5 A6B5 A6D5 Φ Φ φ
-A6B6 A6B6 A6D6 Χ Χ χ
-A6B7 A6B7 A6D7 Ψ Ψ ψ
-A6B8 A6B8 A6D8 Ω Ω ω
-A6C1 A6A1 A6C1 α Α α
-A6C2 A6A2 A6C2 β Β β
-A6C3 A6A3 A6C3 γ Γ γ
-A6C4 A6A4 A6C4 δ Δ δ
-A6C5 A6A5 A6C5 ε Ε ε
-A6C6 A6A6 A6C6 ζ Ζ ζ
-A6C7 A6A7 A6C7 η Η η
-A6C8 A6A8 A6C8 θ Θ θ
-A6C9 A6A9 A6C9 ι Ι ι
-A6CA A6AA A6CA κ Κ κ
-A6CB A6AB A6CB λ Λ λ
-A6CC A6AC A6CC μ Μ μ
-A6CD A6AD A6CD ν Πν
-A6CE A6AE A6CE ξ Ξ ξ
-A6CF A6AF A6CF ο Ο ο
-A6D0 A6B0 A6D0 π Π π
-A6D1 A6B1 A6D1 Ï Î¡ Ï
-A6D2 A6B2 A6D2 σ Σ σ
-A6D3 A6B3 A6D3 τ Τ τ
-A6D4 A6B4 A6D4 υ Υ υ
-A6D5 A6B5 A6D5 φ Φ φ
-A6D6 A6B6 A6D6 χ Χ χ
-A6D7 A6B7 A6D7 ψ Ψ ψ
-A6D8 A6B8 A6D8 ω Ω ω
-A7A1 A7A1 A7D1 РРа
-A7A2 A7A2 A7D2 Б Б б
-A7A3 A7A3 A7D3 В В в
-A7A4 A7A4 A7D4 Г Г г
-A7A5 A7A5 A7D5 Д Д д
-A7A6 A7A6 A7D6 Е Е е
-A7A7 A7A7 A7D7 Ð Ð Ñ‘
-A7A8 A7A8 A7D8 Ж Ж ж
-A7A9 A7A9 A7D9 З З з
-A7AA A7AA A7DA И И и
-A7AB A7AB A7DB Й Й й
-A7AC A7AC A7DC К К к
-A7AD A7AD A7DD Л Л л
-A7AE A7AE A7DE М М м
-A7AF A7AF A7DF РРн
-A7B0 A7B0 A7E0 О О о
-A7B1 A7B1 A7E1 П П п
-A7B2 A7B2 A7E2 Р Р р
-A7B3 A7B3 A7E3 С С Ñ
-A7B4 A7B4 A7E4 Т Т т
-A7B5 A7B5 A7E5 У У у
-A7B6 A7B6 A7E6 Ф Ф ф
-A7B7 A7B7 A7E7 Х Х х
-A7B8 A7B8 A7E8 Ц Ц ц
-A7B9 A7B9 A7E9 Ч Ч ч
-A7BA A7BA A7EA Ш Ш ш
-A7BB A7BB A7EB Щ Щ щ
-A7BC A7BC A7EC Ъ Ъ ъ
-A7BD A7BD A7ED Ы Ы ы
-A7BE A7BE A7EE Ь Ь ь
-A7BF A7BF A7EF Э Э Ñ
-A7C0 A7C0 A7F0 Ю Ю ю
-A7C1 A7C1 A7F1 Я Я Ñ
-A7D1 A7A1 A7D1 а Ра
-A7D2 A7A2 A7D2 б Б б
-A7D3 A7A3 A7D3 в В в
-A7D4 A7A4 A7D4 г Г г
-A7D5 A7A5 A7D5 д Д д
-A7D6 A7A6 A7D6 е Е е
-A7D7 A7A7 A7D7 Ñ‘ Ð Ñ‘
-A7D8 A7A8 A7D8 ж Ж ж
-A7D9 A7A9 A7D9 з З з
-A7DA A7AA A7DA и И и
-A7DB A7AB A7DB й Й й
-A7DC A7AC A7DC к К к
-A7DD A7AD A7DD л Л л
-A7DE A7AE A7DE м М м
-A7DF A7AF A7DF н Рн
-A7E0 A7B0 A7E0 о О о
-A7E1 A7B1 A7E1 п П п
-A7E2 A7B2 A7E2 р Р р
-A7E3 A7B3 A7E3 Ñ Ð¡ Ñ
-A7E4 A7B4 A7E4 т Т т
-A7E5 A7B5 A7E5 у У у
-A7E6 A7B6 A7E6 ф Ф ф
-A7E7 A7B7 A7E7 х Х х
-A7E8 A7B8 A7E8 ц Ц ц
-A7E9 A7B9 A7E9 ч Ч ч
-A7EA A7BA A7EA ш Ш ш
-A7EB A7BB A7EB щ Щ щ
-A7EC A7BC A7EC ъ Ъ ъ
-A7ED A7BD A7ED ы Ы ы
-A7EE A7BE A7EE ь Ь ь
-A7EF A7BF A7EF Ñ Ð­ Ñ
-A7F0 A7C0 A7F0 ю Ю ю
-A7F1 A7C1 A7F1 Ñ Ð¯ Ñ
-SELECT * FROM t1
-WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-A2FB â…ª
-A2FC â…«
-Warnings:
-Warning 1977 Cannot convert 'gbk' character 0xA140 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA140 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA141 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA141 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA142 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA142 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA143 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA143 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA144 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA144 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA145 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA145 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA146 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA146 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA147 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA147 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA148 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA148 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA149 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA149 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14A to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14A to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14B to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14B to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14C to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14C to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14D to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14D to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14E to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14E to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14F to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14F to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA150 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA150 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA151 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA151 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA152 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA152 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA153 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA153 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA154 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA154 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA155 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA155 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA156 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA156 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA157 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA157 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA158 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA158 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA159 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA159 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15A to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15A to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15B to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15B to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15C to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15C to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15D to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15D to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15E to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15E to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15F to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15F to 'utf8'
-SELECT * FROM t1
-WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-A8A1 Ä
-A8A2 á
-A8A3 ÇŽ
-A8A4 à
-A8A5 Ä“
-A8A6 é
-A8A7 Ä›
-A8A8 è
-A8A9 Ä«
-A8AA í
-A8AB Ç
-A8AC ì
-A8AD Å
-A8AE ó
-A8AF Ç’
-A8B0 ò
-A8B1 Å«
-A8B2 ú
-A8B3 Ç”
-A8B4 ù
-A8B5 Ç–
-A8B6 ǘ
-A8B7 Çš
-A8B8 ǜ
-A8B9 ü
-A8BA ê
-A8BD Å„
-A8BE ň
-Warnings:
-Warning 1977 Cannot convert 'gbk' character 0xA140 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA140 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA141 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA141 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA142 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA142 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA143 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA143 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA144 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA144 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA145 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA145 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA146 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA146 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA147 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA147 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA148 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA148 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA149 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA149 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14A to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14A to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14B to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14B to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14C to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14C to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14D to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14D to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14E to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14E to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14F to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA14F to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA150 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA150 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA151 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA151 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA152 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA152 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA153 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA153 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA154 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA154 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA155 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA155 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA156 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA156 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA157 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA157 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA158 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA158 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA159 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA159 to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15A to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15A to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15B to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15B to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15C to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15C to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15D to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15D to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15E to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15E to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15F to 'utf8'
-Warning 1977 Cannot convert 'gbk' character 0xA15F to 'utf8'
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set names gbk;
-select @@collation_connection;
-@@collation_connection
-gbk_chinese_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET gbk NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-41
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET gbk DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-4141414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-4141414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41414141412020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41414141412020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-41
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-414243
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-4142
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-414243
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-4142432020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-41
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-4142
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-414220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-41422020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-4142202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-41422020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-41
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-4142
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-414243
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-41424320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-41
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-4142
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-414243
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-41424320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-gbk_chinese_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-41
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-414243
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-4142
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-414243
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-4142432020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020434241
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-BEBDBCDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDFBCBDBE
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-gbk_chinese_ci
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-4141
-select hex(weight_string(cast(0xA1A1 as char)));
-hex(weight_string(cast(0xA1A1 as char)))
-810B
-select hex(weight_string(cast(0xA1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1 as char) as char(1)))
-810B
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)))
-810B
-select hex(weight_string(cast(0xA1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1 as char) as char(3)))
-810B2020
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)))
-810B810B20
-select hex(weight_string(cast(0x40A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1 as char) as char(3)))
-40810B20
-select hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)))
-40810B810B
-select hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)))
-40810B810B
-select hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)))
-4040810B
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0))
-81
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0))
-810B
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0))
-810B81
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0))
-810B810B
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0))
-810B810B20
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0))
-810B810B202020202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0))
-81
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0))
-810B
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0))
-810B81
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0))
-810B810B
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0))
-810B810B81
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0))
-810B810B810B20202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0))
-81
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0))
-810B
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0))
-810B81
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0))
-810B810B
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0))
-810B810B81
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0))
-810B810B810B20202020202020202020202020202020202020
-select collation(cast(0x8140 as char));
-collation(cast(0x8140 as char))
-gbk_chinese_ci
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-4141
-select hex(weight_string(cast(0x8140 as char)));
-hex(weight_string(cast(0x8140 as char)))
-A2CD
-select hex(weight_string(cast(0x8140 as char) as char(1)));
-hex(weight_string(cast(0x8140 as char) as char(1)))
-A2CD
-select hex(weight_string(cast(0x81408140 as char) as char(1)));
-hex(weight_string(cast(0x81408140 as char) as char(1)))
-A2CD
-select hex(weight_string(cast(0x8140 as char) as char(3)));
-hex(weight_string(cast(0x8140 as char) as char(3)))
-A2CD2020
-select hex(weight_string(cast(0x81408140 as char) as char(3)));
-hex(weight_string(cast(0x81408140 as char) as char(3)))
-A2CDA2CD20
-select hex(weight_string(cast(0x408140 as char) as char(3)));
-hex(weight_string(cast(0x408140 as char) as char(3)))
-40A2CD20
-select hex(weight_string(cast(0x4081408140 as char) as char(3)));
-hex(weight_string(cast(0x4081408140 as char) as char(3)))
-40A2CDA2CD
-select hex(weight_string(cast(0x40814081408140 as char) as char(3)));
-hex(weight_string(cast(0x40814081408140 as char) as char(3)))
-40A2CDA2CD
-select hex(weight_string(cast(0x4040814081408140 as char) as char(3)));
-hex(weight_string(cast(0x4040814081408140 as char) as char(3)))
-4040A2CD
-select hex(weight_string(cast(0x814081408140 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 2, 0xC0))
-A2
-select hex(weight_string(cast(0x814081408140 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 2, 0xC0))
-A2CD
-select hex(weight_string(cast(0x814081408140 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 2, 0xC0))
-A2CDA2
-select hex(weight_string(cast(0x814081408140 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 2, 0xC0))
-A2CDA2CD
-select hex(weight_string(cast(0x814081408140 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 2, 0xC0))
-A2CDA2CD20
-select hex(weight_string(cast(0x814081408140 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 2, 0xC0))
-A2CDA2CD202020202020202020202020202020202020202020
-select hex(weight_string(cast(0x814081408140 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 3, 0xC0))
-A2
-select hex(weight_string(cast(0x814081408140 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 3, 0xC0))
-A2CD
-select hex(weight_string(cast(0x814081408140 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 3, 0xC0))
-A2CDA2
-select hex(weight_string(cast(0x814081408140 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 3, 0xC0))
-A2CDA2CD
-select hex(weight_string(cast(0x814081408140 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 3, 0xC0))
-A2CDA2CDA2
-select hex(weight_string(cast(0x814081408140 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 3, 0xC0))
-A2CDA2CDA2CD20202020202020202020202020202020202020
-select hex(weight_string(cast(0x814081408140 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 4, 0xC0))
-A2
-select hex(weight_string(cast(0x814081408140 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 4, 0xC0))
-A2CD
-select hex(weight_string(cast(0x814081408140 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 4, 0xC0))
-A2CDA2
-select hex(weight_string(cast(0x814081408140 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 4, 0xC0))
-A2CDA2CD
-select hex(weight_string(cast(0x814081408140 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 4, 0xC0))
-A2CDA2CDA2
-select hex(weight_string(cast(0x814081408140 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 4, 0xC0))
-A2CDA2CDA2CD20202020202020202020202020202020202020
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-gbk_chinese_ci
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-4141
-select hex(weight_string(cast(0x8EA1 as char)));
-hex(weight_string(cast(0x8EA1 as char)))
-8E08
-select hex(weight_string(cast(0x8EA1 as char) as char(1)));
-hex(weight_string(cast(0x8EA1 as char) as char(1)))
-8E08
-select hex(weight_string(cast(0x8EA18EA1 as char) as char(1)));
-hex(weight_string(cast(0x8EA18EA1 as char) as char(1)))
-8E08
-select hex(weight_string(cast(0x8EA1 as char) as char(3)));
-hex(weight_string(cast(0x8EA1 as char) as char(3)))
-8E082020
-select hex(weight_string(cast(0x8EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x8EA18EA1 as char) as char(3)))
-8E088E0820
-select hex(weight_string(cast(0x408EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA1 as char) as char(3)))
-408E0820
-select hex(weight_string(cast(0x408EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA18EA1 as char) as char(3)))
-408E088E08
-select hex(weight_string(cast(0x408EA18EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA18EA18EA1 as char) as char(3)))
-408E088E08
-select hex(weight_string(cast(0x40408EA18EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x40408EA18EA18EA1 as char) as char(3)))
-40408E08
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 2, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 2, 0xC0))
-8E08
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 2, 0xC0))
-8E088E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 2, 0xC0))
-8E088E08
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 2, 0xC0))
-8E088E0820
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 2, 0xC0))
-8E088E08202020202020202020202020202020202020202020
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 3, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 3, 0xC0))
-8E08
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 3, 0xC0))
-8E088E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 3, 0xC0))
-8E088E08
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 3, 0xC0))
-8E088E088E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 3, 0xC0))
-8E088E088E0820202020202020202020202020202020202020
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 4, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 4, 0xC0))
-8E08
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 4, 0xC0))
-8E088E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 4, 0xC0))
-8E088E08
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 4, 0xC0))
-8E088E088E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 4, 0xC0))
-8E088E088E0820202020202020202020202020202020202020
-set collation_connection=gbk_bin;
-select @@collation_connection;
-@@collation_connection
-gbk_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET gbk COLLATE gbk_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-61
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET gbk COLLATE gbk_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-6161616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-6161616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61616161612020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61616161612020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-61
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-616263
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-6162
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-616263
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-6162632020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-61
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-6162
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-616220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-61622020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-6162202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-61622020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-61
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-6162
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-616263
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-61626320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-61
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-6162
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-616263
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-61626320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-gbk_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-61
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-616263
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-6162
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-616263
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-6162632020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020636261
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-9E9D9CDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDF9C9D9E
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-gbk_bin
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-6141
-select hex(weight_string(cast(0xA1A1 as char)));
-hex(weight_string(cast(0xA1A1 as char)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1 as char) as char(3)))
-A1A12020
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)))
-A1A1A1A120
-select hex(weight_string(cast(0x40A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1 as char) as char(3)))
-40A1A120
-select hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)))
-4040A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0))
-A1A1A1A120
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0))
-A1A1A1A1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select collation(cast(0x8140 as char));
-collation(cast(0x8140 as char))
-gbk_bin
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-6141
-select hex(weight_string(cast(0x8140 as char)));
-hex(weight_string(cast(0x8140 as char)))
-8140
-select hex(weight_string(cast(0x8140 as char) as char(1)));
-hex(weight_string(cast(0x8140 as char) as char(1)))
-8140
-select hex(weight_string(cast(0x81408140 as char) as char(1)));
-hex(weight_string(cast(0x81408140 as char) as char(1)))
-8140
-select hex(weight_string(cast(0x8140 as char) as char(3)));
-hex(weight_string(cast(0x8140 as char) as char(3)))
-81402020
-select hex(weight_string(cast(0x81408140 as char) as char(3)));
-hex(weight_string(cast(0x81408140 as char) as char(3)))
-8140814020
-select hex(weight_string(cast(0x408140 as char) as char(3)));
-hex(weight_string(cast(0x408140 as char) as char(3)))
-40814020
-select hex(weight_string(cast(0x4081408140 as char) as char(3)));
-hex(weight_string(cast(0x4081408140 as char) as char(3)))
-4081408140
-select hex(weight_string(cast(0x40814081408140 as char) as char(3)));
-hex(weight_string(cast(0x40814081408140 as char) as char(3)))
-4081408140
-select hex(weight_string(cast(0x4040814081408140 as char) as char(3)));
-hex(weight_string(cast(0x4040814081408140 as char) as char(3)))
-40408140
-select hex(weight_string(cast(0x814081408140 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 2, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 2, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 2, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 2, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 2, 0xC0))
-8140814020
-select hex(weight_string(cast(0x814081408140 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 2, 0xC0))
-81408140202020202020202020202020202020202020202020
-select hex(weight_string(cast(0x814081408140 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 3, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 3, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 3, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 3, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 3, 0xC0))
-8140814081
-select hex(weight_string(cast(0x814081408140 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 3, 0xC0))
-81408140814020202020202020202020202020202020202020
-select hex(weight_string(cast(0x814081408140 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 4, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 4, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 4, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 4, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 4, 0xC0))
-8140814081
-select hex(weight_string(cast(0x814081408140 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 4, 0xC0))
-81408140814020202020202020202020202020202020202020
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-gbk_bin
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-6141
-select hex(weight_string(cast(0x8EA1 as char)));
-hex(weight_string(cast(0x8EA1 as char)))
-8EA1
-select hex(weight_string(cast(0x8EA1 as char) as char(1)));
-hex(weight_string(cast(0x8EA1 as char) as char(1)))
-8EA1
-select hex(weight_string(cast(0x8EA18EA1 as char) as char(1)));
-hex(weight_string(cast(0x8EA18EA1 as char) as char(1)))
-8EA1
-select hex(weight_string(cast(0x8EA1 as char) as char(3)));
-hex(weight_string(cast(0x8EA1 as char) as char(3)))
-8EA12020
-select hex(weight_string(cast(0x8EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x8EA18EA1 as char) as char(3)))
-8EA18EA120
-select hex(weight_string(cast(0x408EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA1 as char) as char(3)))
-408EA120
-select hex(weight_string(cast(0x408EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA18EA1 as char) as char(3)))
-408EA18EA1
-select hex(weight_string(cast(0x408EA18EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA18EA18EA1 as char) as char(3)))
-408EA18EA1
-select hex(weight_string(cast(0x40408EA18EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x40408EA18EA18EA1 as char) as char(3)))
-40408EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 2, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 2, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 2, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 2, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 2, 0xC0))
-8EA18EA120
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 2, 0xC0))
-8EA18EA1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 3, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 3, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 3, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 3, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 3, 0xC0))
-8EA18EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 3, 0xC0))
-8EA18EA18EA120202020202020202020202020202020202020
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 4, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 4, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 4, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 4, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 4, 0xC0))
-8EA18EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 4, 0xC0))
-8EA18EA18EA120202020202020202020202020202020202020
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.0 tests
-#
-# Start of ctype_unescape.inc
-SET sql_mode = '';
-SET @query=_binary'SELECT CHARSET(\'test\'),@@character_set_client,@@character_set_connection';
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-CHARSET('test') @@character_set_client @@character_set_connection
-gbk gbk gbk
-DEALLOCATE PREPARE stmt;
-CREATE TABLE allbytes (a VARBINARY(10));
-# Using selected bytes combinations
-CREATE TABLE halfs (a INT);
-INSERT INTO halfs VALUES (0x00),(0x01),(0x02),(0x03),(0x04),(0x05),(0x06),(0x07);
-INSERT INTO halfs VALUES (0x08),(0x09),(0x0A),(0x0B),(0x0C),(0x0D),(0x0E),(0x0F);
-CREATE TEMPORARY TABLE bytes (a BINARY(1), KEY(a)) ENGINE=MyISAM;
-INSERT INTO bytes SELECT CHAR((t1.a << 4) | t2.a USING BINARY) FROM halfs t1, halfs t2;
-DROP TABLE halfs;
-CREATE TABLE selected_bytes (a VARBINARY(10));
-INSERT INTO selected_bytes (a) VALUES ('\0'),('\b'),('\t'),('\r'),('\n'),('\Z');
-INSERT INTO selected_bytes (a) VALUES ('0'),('b'),('t'),('r'),('n'),('Z');
-INSERT INTO selected_bytes (a) VALUES ('\\'),('_'),('%'),(0x22),(0x27);
-INSERT INTO selected_bytes (a) VALUES ('a');
-INSERT INTO selected_bytes (a) VALUES
-(0x3F), # 7bit
-(0x40), # 7bit mbtail
-(0x7E), # 7bit mbtail nonascii-8bit
-(0x7F), # 7bit nonascii-8bit
-(0x80), # mbtail bad-mb
-(0x81), # mbhead mbtail
-(0x9F), # mbhead mbtail bad-mb
-(0xA0), # mbhead mbtail bad-mb
-(0xA1), # mbhead mbtail nonascii-8bit
-(0xE0), # mbhead mbtai
-(0xEF), # mbhead mbtail
-(0xF9), # mbhead mbtail
-(0xFA), # mbhead mbtail bad-mb
-(0xFC), # mbhead mbtail bad-mb
-(0xFD), # mbhead mbtail bad-mb
-(0xFE), # mbhead mbtial bad-mb
-(0xFF);
-INSERT INTO allbytes (a) SELECT a FROM bytes;
-INSERT INTO allbytes (a) SELECT CONCAT(t1.a,t2.a) FROM selected_bytes t1,selected_bytes t2;
-INSERT INTO allbytes (a) SELECT CONCAT(0x5C,t1.a,t2.a) FROM selected_bytes t1,selected_bytes t2;
-INSERT INTO allbytes (a) SELECT CONCAT(0x5C,t1.a,0x5C,t2.a) FROM selected_bytes t1,selected_bytes t2;
-DROP TABLE selected_bytes;
-DELETE FROM allbytes WHERE
-OCTET_LENGTH(a)>1 AND
-LOCATE(0x5C,a)=0 AND
-a NOT LIKE '%\'%' AND
- a NOT LIKE '%"%';
-CREATE PROCEDURE p1(val VARBINARY(10))
-BEGIN
-DECLARE EXIT HANDLER FOR SQLSTATE '42000' INSERT INTO t1 (a,b) VALUES(val,NULL);
-SET @query=CONCAT(_binary"INSERT INTO t1 (a,b) VALUES (0x",HEX(val),",'",val,"')");
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-END//
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE val VARBINARY(10);
-DECLARE done INT DEFAULT FALSE;
-DECLARE stmt CURSOR FOR SELECT a FROM allbytes;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN stmt;
-read_loop1: LOOP
-FETCH stmt INTO val;
-IF done THEN
-LEAVE read_loop1;
-END IF;
-CALL p1(val);
-END LOOP;
-CLOSE stmt;
-END//
-CREATE FUNCTION iswellformed(a VARBINARY(256)) RETURNS INT RETURN a=BINARY CONVERT(a USING gbk);//
-CREATE FUNCTION unescape(a VARBINARY(256)) RETURNS VARBINARY(256)
-BEGIN
-# We need to do it in a way to avoid producing new escape sequences
-# First, enclose all known escsape sequences to '{{xx}}'
- # - Backslash not followed by a LIKE pattern characters _ and %
-# - Double escapes
-# This uses PCRE Branch Reset Groups: (?|(alt1)|(alt2)|(alt3)).
-# So '\\1' in the last argument always means the match, no matter
-# which alternative it came from.
-SET a=REGEXP_REPLACE(a,'(?|(\\\\[^_%])|(\\x{27}\\x{27}))','{{\\1}}');
-# Now unescape all enclosed standard escape sequences
-SET a=REPLACE(a,'{{\\0}}', '\0');
-SET a=REPLACE(a,'{{\\b}}', '\b');
-SET a=REPLACE(a,'{{\\t}}', '\t');
-SET a=REPLACE(a,'{{\\r}}', '\r');
-SET a=REPLACE(a,'{{\\n}}', '\n');
-SET a=REPLACE(a,'{{\\Z}}', '\Z');
-SET a=REPLACE(a,'{{\\\'}}', '\'');
-# Unescape double quotes
-SET a=REPLACE(a,'{{\'\'}}', '\'');
- # Unescape the rest: all other \x sequences mean just 'x'
- SET a=REGEXP_REPLACE(a, '{{\\\\(.|\\R)}}', '\\1');
- RETURN a;
-END//
-CREATE FUNCTION unescape_type(a VARBINARY(256),b VARBINARY(256)) RETURNS VARBINARY(256)
-BEGIN
-RETURN CASE
-WHEN b IS NULL THEN '[SyntErr]'
- WHEN a=b THEN CASE
-WHEN OCTET_LENGTH(a)=1 THEN '[Preserve]'
- WHEN a RLIKE '\\\\[_%]' THEN '[Preserve][LIKE]'
- WHEN a RLIKE '^[[:ascii:]]+$' THEN '[Preserve][ASCII]'
- ELSE '[Preserv][MB]' END
-WHEN REPLACE(a,0x5C,'')=b THEN '[Trivial]'
- WHEN UNESCAPE(a)=b THEN '[Regular]'
- ELSE '[Special]' END;
-END//
-CREATE FUNCTION wellformedness(a VARBINARY(256), b VARBINARY(256))
-RETURNS VARBINARY(256)
-BEGIN
-RETURN CASE
-WHEN b IS NULL THEN ''
- WHEN NOT iswellformed(a) AND iswellformed(b) THEN '[FIXED]'
- WHEN iswellformed(a) AND NOT iswellformed(b) THEN '[BROKE]'
- WHEN NOT iswellformed(a) AND NOT iswellformed(b) THEN '[ILSEQ]'
- ELSE ''
- END;
-END//
-CREATE FUNCTION mysql_real_escape_string_generated(a VARBINARY(256))
-RETURNS VARBINARY(256)
-BEGIN
-DECLARE a1 BINARY(1) DEFAULT SUBSTR(a,1,1);
-DECLARE a2 BINARY(1) DEFAULT SUBSTR(a,2,1);
-DECLARE a3 BINARY(1) DEFAULT SUBSTR(a,3,1);
-DECLARE a4 BINARY(1) DEFAULT SUBSTR(a,4,1);
-DECLARE a2a4 BINARY(2) DEFAULT CONCAT(a2,a4);
-RETURN CASE
-WHEN (a1=0x5C) AND
-(a3=0x5C) AND
-(a2>0x7F) AND
-(a4 NOT IN ('_','%','0','t','r','n','Z')) AND
-iswellformed(a2a4) THEN '[USER]'
- ELSE ''
- END;
-END//
-CREATE TABLE t1 (a VARBINARY(10),b VARBINARY(10));
-CALL p2();
-SELECT HEX(a),HEX(b),
-CONCAT(unescape_type(a,b),
-wellformedness(a,b),
-mysql_real_escape_string_generated(a),
-IF(UNESCAPE(a)<>b,CONCAT('[BAD',HEX(UNESCAPE(a)),']'),'')) AS comment
-FROM t1 ORDER BY LENGTH(a),a;
-HEX(a) HEX(b) comment
-00 00 [Preserve]
-01 01 [Preserve]
-02 02 [Preserve]
-03 03 [Preserve]
-04 04 [Preserve]
-05 05 [Preserve]
-06 06 [Preserve]
-07 07 [Preserve]
-08 08 [Preserve]
-09 09 [Preserve]
-0A 0A [Preserve]
-0B 0B [Preserve]
-0C 0C [Preserve]
-0D 0D [Preserve]
-0E 0E [Preserve]
-0F 0F [Preserve]
-10 10 [Preserve]
-11 11 [Preserve]
-12 12 [Preserve]
-13 13 [Preserve]
-14 14 [Preserve]
-15 15 [Preserve]
-16 16 [Preserve]
-17 17 [Preserve]
-18 18 [Preserve]
-19 19 [Preserve]
-1A 1A [Preserve]
-1B 1B [Preserve]
-1C 1C [Preserve]
-1D 1D [Preserve]
-1E 1E [Preserve]
-1F 1F [Preserve]
-20 20 [Preserve]
-21 21 [Preserve]
-22 22 [Preserve]
-23 23 [Preserve]
-24 24 [Preserve]
-25 25 [Preserve]
-26 26 [Preserve]
-27 NULL [SyntErr]
-28 28 [Preserve]
-29 29 [Preserve]
-2A 2A [Preserve]
-2B 2B [Preserve]
-2C 2C [Preserve]
-2D 2D [Preserve]
-2E 2E [Preserve]
-2F 2F [Preserve]
-30 30 [Preserve]
-31 31 [Preserve]
-32 32 [Preserve]
-33 33 [Preserve]
-34 34 [Preserve]
-35 35 [Preserve]
-36 36 [Preserve]
-37 37 [Preserve]
-38 38 [Preserve]
-39 39 [Preserve]
-3A 3A [Preserve]
-3B 3B [Preserve]
-3C 3C [Preserve]
-3D 3D [Preserve]
-3E 3E [Preserve]
-3F 3F [Preserve]
-40 40 [Preserve]
-41 41 [Preserve]
-42 42 [Preserve]
-43 43 [Preserve]
-44 44 [Preserve]
-45 45 [Preserve]
-46 46 [Preserve]
-47 47 [Preserve]
-48 48 [Preserve]
-49 49 [Preserve]
-4A 4A [Preserve]
-4B 4B [Preserve]
-4C 4C [Preserve]
-4D 4D [Preserve]
-4E 4E [Preserve]
-4F 4F [Preserve]
-50 50 [Preserve]
-51 51 [Preserve]
-52 52 [Preserve]
-53 53 [Preserve]
-54 54 [Preserve]
-55 55 [Preserve]
-56 56 [Preserve]
-57 57 [Preserve]
-58 58 [Preserve]
-59 59 [Preserve]
-5A 5A [Preserve]
-5B 5B [Preserve]
-5C NULL [SyntErr]
-5D 5D [Preserve]
-5E 5E [Preserve]
-5F 5F [Preserve]
-60 60 [Preserve]
-61 61 [Preserve]
-62 62 [Preserve]
-63 63 [Preserve]
-64 64 [Preserve]
-65 65 [Preserve]
-66 66 [Preserve]
-67 67 [Preserve]
-68 68 [Preserve]
-69 69 [Preserve]
-6A 6A [Preserve]
-6B 6B [Preserve]
-6C 6C [Preserve]
-6D 6D [Preserve]
-6E 6E [Preserve]
-6F 6F [Preserve]
-70 70 [Preserve]
-71 71 [Preserve]
-72 72 [Preserve]
-73 73 [Preserve]
-74 74 [Preserve]
-75 75 [Preserve]
-76 76 [Preserve]
-77 77 [Preserve]
-78 78 [Preserve]
-79 79 [Preserve]
-7A 7A [Preserve]
-7B 7B [Preserve]
-7C 7C [Preserve]
-7D 7D [Preserve]
-7E 7E [Preserve]
-7F 7F [Preserve]
-80 80 [Preserve][ILSEQ]
-81 81 [Preserve][ILSEQ]
-82 82 [Preserve][ILSEQ]
-83 83 [Preserve][ILSEQ]
-84 84 [Preserve][ILSEQ]
-85 85 [Preserve][ILSEQ]
-86 86 [Preserve][ILSEQ]
-87 87 [Preserve][ILSEQ]
-88 88 [Preserve][ILSEQ]
-89 89 [Preserve][ILSEQ]
-8A 8A [Preserve][ILSEQ]
-8B 8B [Preserve][ILSEQ]
-8C 8C [Preserve][ILSEQ]
-8D 8D [Preserve][ILSEQ]
-8E 8E [Preserve][ILSEQ]
-8F 8F [Preserve][ILSEQ]
-90 90 [Preserve][ILSEQ]
-91 91 [Preserve][ILSEQ]
-92 92 [Preserve][ILSEQ]
-93 93 [Preserve][ILSEQ]
-94 94 [Preserve][ILSEQ]
-95 95 [Preserve][ILSEQ]
-96 96 [Preserve][ILSEQ]
-97 97 [Preserve][ILSEQ]
-98 98 [Preserve][ILSEQ]
-99 99 [Preserve][ILSEQ]
-9A 9A [Preserve][ILSEQ]
-9B 9B [Preserve][ILSEQ]
-9C 9C [Preserve][ILSEQ]
-9D 9D [Preserve][ILSEQ]
-9E 9E [Preserve][ILSEQ]
-9F 9F [Preserve][ILSEQ]
-A0 A0 [Preserve][ILSEQ]
-A1 A1 [Preserve][ILSEQ]
-A2 A2 [Preserve][ILSEQ]
-A3 A3 [Preserve][ILSEQ]
-A4 A4 [Preserve][ILSEQ]
-A5 A5 [Preserve][ILSEQ]
-A6 A6 [Preserve][ILSEQ]
-A7 A7 [Preserve][ILSEQ]
-A8 A8 [Preserve][ILSEQ]
-A9 A9 [Preserve][ILSEQ]
-AA AA [Preserve][ILSEQ]
-AB AB [Preserve][ILSEQ]
-AC AC [Preserve][ILSEQ]
-AD AD [Preserve][ILSEQ]
-AE AE [Preserve][ILSEQ]
-AF AF [Preserve][ILSEQ]
-B0 B0 [Preserve][ILSEQ]
-B1 B1 [Preserve][ILSEQ]
-B2 B2 [Preserve][ILSEQ]
-B3 B3 [Preserve][ILSEQ]
-B4 B4 [Preserve][ILSEQ]
-B5 B5 [Preserve][ILSEQ]
-B6 B6 [Preserve][ILSEQ]
-B7 B7 [Preserve][ILSEQ]
-B8 B8 [Preserve][ILSEQ]
-B9 B9 [Preserve][ILSEQ]
-BA BA [Preserve][ILSEQ]
-BB BB [Preserve][ILSEQ]
-BC BC [Preserve][ILSEQ]
-BD BD [Preserve][ILSEQ]
-BE BE [Preserve][ILSEQ]
-BF BF [Preserve][ILSEQ]
-C0 C0 [Preserve][ILSEQ]
-C1 C1 [Preserve][ILSEQ]
-C2 C2 [Preserve][ILSEQ]
-C3 C3 [Preserve][ILSEQ]
-C4 C4 [Preserve][ILSEQ]
-C5 C5 [Preserve][ILSEQ]
-C6 C6 [Preserve][ILSEQ]
-C7 C7 [Preserve][ILSEQ]
-C8 C8 [Preserve][ILSEQ]
-C9 C9 [Preserve][ILSEQ]
-CA CA [Preserve][ILSEQ]
-CB CB [Preserve][ILSEQ]
-CC CC [Preserve][ILSEQ]
-CD CD [Preserve][ILSEQ]
-CE CE [Preserve][ILSEQ]
-CF CF [Preserve][ILSEQ]
-D0 D0 [Preserve][ILSEQ]
-D1 D1 [Preserve][ILSEQ]
-D2 D2 [Preserve][ILSEQ]
-D3 D3 [Preserve][ILSEQ]
-D4 D4 [Preserve][ILSEQ]
-D5 D5 [Preserve][ILSEQ]
-D6 D6 [Preserve][ILSEQ]
-D7 D7 [Preserve][ILSEQ]
-D8 D8 [Preserve][ILSEQ]
-D9 D9 [Preserve][ILSEQ]
-DA DA [Preserve][ILSEQ]
-DB DB [Preserve][ILSEQ]
-DC DC [Preserve][ILSEQ]
-DD DD [Preserve][ILSEQ]
-DE DE [Preserve][ILSEQ]
-DF DF [Preserve][ILSEQ]
-E0 E0 [Preserve][ILSEQ]
-E1 E1 [Preserve][ILSEQ]
-E2 E2 [Preserve][ILSEQ]
-E3 E3 [Preserve][ILSEQ]
-E4 E4 [Preserve][ILSEQ]
-E5 E5 [Preserve][ILSEQ]
-E6 E6 [Preserve][ILSEQ]
-E7 E7 [Preserve][ILSEQ]
-E8 E8 [Preserve][ILSEQ]
-E9 E9 [Preserve][ILSEQ]
-EA EA [Preserve][ILSEQ]
-EB EB [Preserve][ILSEQ]
-EC EC [Preserve][ILSEQ]
-ED ED [Preserve][ILSEQ]
-EE EE [Preserve][ILSEQ]
-EF EF [Preserve][ILSEQ]
-F0 F0 [Preserve][ILSEQ]
-F1 F1 [Preserve][ILSEQ]
-F2 F2 [Preserve][ILSEQ]
-F3 F3 [Preserve][ILSEQ]
-F4 F4 [Preserve][ILSEQ]
-F5 F5 [Preserve][ILSEQ]
-F6 F6 [Preserve][ILSEQ]
-F7 F7 [Preserve][ILSEQ]
-F8 F8 [Preserve][ILSEQ]
-F9 F9 [Preserve][ILSEQ]
-FA FA [Preserve][ILSEQ]
-FB FB [Preserve][ILSEQ]
-FC FC [Preserve][ILSEQ]
-FD FD [Preserve][ILSEQ]
-FE FE [Preserve][ILSEQ]
-FF FF [Preserve][ILSEQ]
-0022 0022 [Preserve][ASCII]
-0027 NULL [SyntErr]
-005C NULL [SyntErr]
-0822 0822 [Preserve][ASCII]
-0827 NULL [SyntErr]
-085C NULL [SyntErr]
-0922 0922 [Preserve][ASCII]
-0927 NULL [SyntErr]
-095C NULL [SyntErr]
-0A22 0A22 [Preserve][ASCII]
-0A27 NULL [SyntErr]
-0A5C NULL [SyntErr]
-0D22 0D22 [Preserve][ASCII]
-0D27 NULL [SyntErr]
-0D5C NULL [SyntErr]
-1A22 1A22 [Preserve][ASCII]
-1A27 NULL [SyntErr]
-1A5C NULL [SyntErr]
-2200 2200 [Preserve][ASCII]
-2208 2208 [Preserve][ASCII]
-2209 2209 [Preserve][ASCII]
-220A 220A [Preserve][ASCII]
-220D 220D [Preserve][ASCII]
-221A 221A [Preserve][ASCII]
-2222 2222 [Preserve][ASCII]
-2225 2225 [Preserve][ASCII]
-2227 NULL [SyntErr]
-2230 2230 [Preserve][ASCII]
-223F 223F [Preserve][ASCII]
-2240 2240 [Preserve][ASCII]
-225A 225A [Preserve][ASCII]
-225C NULL [SyntErr]
-225F 225F [Preserve][ASCII]
-2261 2261 [Preserve][ASCII]
-2262 2262 [Preserve][ASCII]
-226E 226E [Preserve][ASCII]
-2272 2272 [Preserve][ASCII]
-2274 2274 [Preserve][ASCII]
-227E 227E [Preserve][ASCII]
-227F 227F [Preserve][ASCII]
-2280 2280 [Preserv][MB][ILSEQ]
-2281 2281 [Preserv][MB][ILSEQ]
-229F 229F [Preserv][MB][ILSEQ]
-22A0 22A0 [Preserv][MB][ILSEQ]
-22A1 22A1 [Preserv][MB][ILSEQ]
-22E0 22E0 [Preserv][MB][ILSEQ]
-22EF 22EF [Preserv][MB][ILSEQ]
-22F9 22F9 [Preserv][MB][ILSEQ]
-22FA 22FA [Preserv][MB][ILSEQ]
-22FC 22FC [Preserv][MB][ILSEQ]
-22FD 22FD [Preserv][MB][ILSEQ]
-22FE 22FE [Preserv][MB][ILSEQ]
-22FF 22FF [Preserv][MB][ILSEQ]
-2522 2522 [Preserve][ASCII]
-2527 NULL [SyntErr]
-255C NULL [SyntErr]
-2700 NULL [SyntErr]
-2708 NULL [SyntErr]
-2709 NULL [SyntErr]
-270A NULL [SyntErr]
-270D NULL [SyntErr]
-271A NULL [SyntErr]
-2722 NULL [SyntErr]
-2725 NULL [SyntErr]
-2727 27 [Regular]
-2730 NULL [SyntErr]
-273F NULL [SyntErr]
-2740 NULL [SyntErr]
-275A NULL [SyntErr]
-275C NULL [SyntErr]
-275F NULL [SyntErr]
-2761 NULL [SyntErr]
-2762 NULL [SyntErr]
-276E NULL [SyntErr]
-2772 NULL [SyntErr]
-2774 NULL [SyntErr]
-277E NULL [SyntErr]
-277F NULL [SyntErr]
-2780 NULL [SyntErr]
-2781 NULL [SyntErr]
-279F NULL [SyntErr]
-27A0 NULL [SyntErr]
-27A1 NULL [SyntErr]
-27E0 NULL [SyntErr]
-27EF NULL [SyntErr]
-27F9 NULL [SyntErr]
-27FA NULL [SyntErr]
-27FC NULL [SyntErr]
-27FD NULL [SyntErr]
-27FE NULL [SyntErr]
-27FF NULL [SyntErr]
-3022 3022 [Preserve][ASCII]
-3027 NULL [SyntErr]
-305C NULL [SyntErr]
-3F22 3F22 [Preserve][ASCII]
-3F27 NULL [SyntErr]
-3F5C NULL [SyntErr]
-4022 4022 [Preserve][ASCII]
-4027 NULL [SyntErr]
-405C NULL [SyntErr]
-5A22 5A22 [Preserve][ASCII]
-5A27 NULL [SyntErr]
-5A5C NULL [SyntErr]
-5C00 00 [Trivial]
-5C08 08 [Trivial]
-5C09 09 [Trivial]
-5C0A 0A [Trivial]
-5C0D 0D [Trivial]
-5C1A 1A [Trivial]
-5C22 22 [Trivial]
-5C25 5C25 [Preserve][LIKE]
-5C27 27 [Trivial]
-5C30 00 [Regular]
-5C3F 3F [Trivial]
-5C40 40 [Trivial]
-5C5A 1A [Regular]
-5C5C 5C [Regular]
-5C5F 5C5F [Preserve][LIKE]
-5C61 61 [Trivial]
-5C62 08 [Regular]
-5C6E 0A [Regular]
-5C72 0D [Regular]
-5C74 09 [Regular]
-5C7E 7E [Trivial]
-5C7F 7F [Trivial]
-5C80 80 [Trivial][ILSEQ]
-5C81 81 [Trivial][ILSEQ]
-5C9F 9F [Trivial][ILSEQ]
-5CA0 A0 [Trivial][ILSEQ]
-5CA1 A1 [Trivial][ILSEQ]
-5CE0 E0 [Trivial][ILSEQ]
-5CEF EF [Trivial][ILSEQ]
-5CF9 F9 [Trivial][ILSEQ]
-5CFA FA [Trivial][ILSEQ]
-5CFC FC [Trivial][ILSEQ]
-5CFD FD [Trivial][ILSEQ]
-5CFE FE [Trivial][ILSEQ]
-5CFF FF [Trivial][ILSEQ]
-5F22 5F22 [Preserve][ASCII]
-5F27 NULL [SyntErr]
-5F5C NULL [SyntErr]
-6122 6122 [Preserve][ASCII]
-6127 NULL [SyntErr]
-615C NULL [SyntErr]
-6222 6222 [Preserve][ASCII]
-6227 NULL [SyntErr]
-625C NULL [SyntErr]
-6E22 6E22 [Preserve][ASCII]
-6E27 NULL [SyntErr]
-6E5C NULL [SyntErr]
-7222 7222 [Preserve][ASCII]
-7227 NULL [SyntErr]
-725C NULL [SyntErr]
-7422 7422 [Preserve][ASCII]
-7427 NULL [SyntErr]
-745C NULL [SyntErr]
-7E22 7E22 [Preserve][ASCII]
-7E27 NULL [SyntErr]
-7E5C NULL [SyntErr]
-7F22 7F22 [Preserve][ASCII]
-7F27 NULL [SyntErr]
-7F5C NULL [SyntErr]
-8022 8022 [Preserv][MB][ILSEQ]
-8027 NULL [SyntErr]
-805C NULL [SyntErr]
-8122 8122 [Preserv][MB][ILSEQ]
-8127 NULL [SyntErr]
-815C 815C [Preserv][MB]
-9F22 9F22 [Preserv][MB][ILSEQ]
-9F27 NULL [SyntErr]
-9F5C 9F5C [Preserv][MB]
-A022 A022 [Preserv][MB][ILSEQ]
-A027 NULL [SyntErr]
-A05C A05C [Preserv][MB]
-A122 A122 [Preserv][MB][ILSEQ]
-A127 NULL [SyntErr]
-A15C A15C [Preserv][MB]
-E022 E022 [Preserv][MB][ILSEQ]
-E027 NULL [SyntErr]
-E05C E05C [Preserv][MB]
-EF22 EF22 [Preserv][MB][ILSEQ]
-EF27 NULL [SyntErr]
-EF5C EF5C [Preserv][MB]
-F922 F922 [Preserv][MB][ILSEQ]
-F927 NULL [SyntErr]
-F95C F95C [Preserv][MB]
-FA22 FA22 [Preserv][MB][ILSEQ]
-FA27 NULL [SyntErr]
-FA5C FA5C [Preserv][MB]
-FC22 FC22 [Preserv][MB][ILSEQ]
-FC27 NULL [SyntErr]
-FC5C FC5C [Preserv][MB]
-FD22 FD22 [Preserv][MB][ILSEQ]
-FD27 NULL [SyntErr]
-FD5C FD5C [Preserv][MB]
-FE22 FE22 [Preserv][MB][ILSEQ]
-FE27 NULL [SyntErr]
-FE5C FE5C [Preserv][MB]
-FF22 FF22 [Preserv][MB][ILSEQ]
-FF27 NULL [SyntErr]
-FF5C NULL [SyntErr]
-5C0000 0000 [Trivial]
-5C0008 0008 [Trivial]
-5C0009 0009 [Trivial]
-5C000A 000A [Trivial]
-5C000D 000D [Trivial]
-5C001A 001A [Trivial]
-5C0022 0022 [Trivial]
-5C0025 0025 [Trivial]
-5C0027 NULL [SyntErr]
-5C0030 0030 [Trivial]
-5C003F 003F [Trivial]
-5C0040 0040 [Trivial]
-5C005A 005A [Trivial]
-5C005C NULL [SyntErr]
-5C005F 005F [Trivial]
-5C0061 0061 [Trivial]
-5C0062 0062 [Trivial]
-5C006E 006E [Trivial]
-5C0072 0072 [Trivial]
-5C0074 0074 [Trivial]
-5C007E 007E [Trivial]
-5C007F 007F [Trivial]
-5C0080 0080 [Trivial][ILSEQ]
-5C0081 0081 [Trivial][ILSEQ]
-5C009F 009F [Trivial][ILSEQ]
-5C00A0 00A0 [Trivial][ILSEQ]
-5C00A1 00A1 [Trivial][ILSEQ]
-5C00E0 00E0 [Trivial][ILSEQ]
-5C00EF 00EF [Trivial][ILSEQ]
-5C00F9 00F9 [Trivial][ILSEQ]
-5C00FA 00FA [Trivial][ILSEQ]
-5C00FC 00FC [Trivial][ILSEQ]
-5C00FD 00FD [Trivial][ILSEQ]
-5C00FE 00FE [Trivial][ILSEQ]
-5C00FF 00FF [Trivial][ILSEQ]
-5C0800 0800 [Trivial]
-5C0808 0808 [Trivial]
-5C0809 0809 [Trivial]
-5C080A 080A [Trivial]
-5C080D 080D [Trivial]
-5C081A 081A [Trivial]
-5C0822 0822 [Trivial]
-5C0825 0825 [Trivial]
-5C0827 NULL [SyntErr]
-5C0830 0830 [Trivial]
-5C083F 083F [Trivial]
-5C0840 0840 [Trivial]
-5C085A 085A [Trivial]
-5C085C NULL [SyntErr]
-5C085F 085F [Trivial]
-5C0861 0861 [Trivial]
-5C0862 0862 [Trivial]
-5C086E 086E [Trivial]
-5C0872 0872 [Trivial]
-5C0874 0874 [Trivial]
-5C087E 087E [Trivial]
-5C087F 087F [Trivial]
-5C0880 0880 [Trivial][ILSEQ]
-5C0881 0881 [Trivial][ILSEQ]
-5C089F 089F [Trivial][ILSEQ]
-5C08A0 08A0 [Trivial][ILSEQ]
-5C08A1 08A1 [Trivial][ILSEQ]
-5C08E0 08E0 [Trivial][ILSEQ]
-5C08EF 08EF [Trivial][ILSEQ]
-5C08F9 08F9 [Trivial][ILSEQ]
-5C08FA 08FA [Trivial][ILSEQ]
-5C08FC 08FC [Trivial][ILSEQ]
-5C08FD 08FD [Trivial][ILSEQ]
-5C08FE 08FE [Trivial][ILSEQ]
-5C08FF 08FF [Trivial][ILSEQ]
-5C0900 0900 [Trivial]
-5C0908 0908 [Trivial]
-5C0909 0909 [Trivial]
-5C090A 090A [Trivial]
-5C090D 090D [Trivial]
-5C091A 091A [Trivial]
-5C0922 0922 [Trivial]
-5C0925 0925 [Trivial]
-5C0927 NULL [SyntErr]
-5C0930 0930 [Trivial]
-5C093F 093F [Trivial]
-5C0940 0940 [Trivial]
-5C095A 095A [Trivial]
-5C095C NULL [SyntErr]
-5C095F 095F [Trivial]
-5C0961 0961 [Trivial]
-5C0962 0962 [Trivial]
-5C096E 096E [Trivial]
-5C0972 0972 [Trivial]
-5C0974 0974 [Trivial]
-5C097E 097E [Trivial]
-5C097F 097F [Trivial]
-5C0980 0980 [Trivial][ILSEQ]
-5C0981 0981 [Trivial][ILSEQ]
-5C099F 099F [Trivial][ILSEQ]
-5C09A0 09A0 [Trivial][ILSEQ]
-5C09A1 09A1 [Trivial][ILSEQ]
-5C09E0 09E0 [Trivial][ILSEQ]
-5C09EF 09EF [Trivial][ILSEQ]
-5C09F9 09F9 [Trivial][ILSEQ]
-5C09FA 09FA [Trivial][ILSEQ]
-5C09FC 09FC [Trivial][ILSEQ]
-5C09FD 09FD [Trivial][ILSEQ]
-5C09FE 09FE [Trivial][ILSEQ]
-5C09FF 09FF [Trivial][ILSEQ]
-5C0A00 0A00 [Trivial]
-5C0A08 0A08 [Trivial]
-5C0A09 0A09 [Trivial]
-5C0A0A 0A0A [Trivial]
-5C0A0D 0A0D [Trivial]
-5C0A1A 0A1A [Trivial]
-5C0A22 0A22 [Trivial]
-5C0A25 0A25 [Trivial]
-5C0A27 NULL [SyntErr]
-5C0A30 0A30 [Trivial]
-5C0A3F 0A3F [Trivial]
-5C0A40 0A40 [Trivial]
-5C0A5A 0A5A [Trivial]
-5C0A5C NULL [SyntErr]
-5C0A5F 0A5F [Trivial]
-5C0A61 0A61 [Trivial]
-5C0A62 0A62 [Trivial]
-5C0A6E 0A6E [Trivial]
-5C0A72 0A72 [Trivial]
-5C0A74 0A74 [Trivial]
-5C0A7E 0A7E [Trivial]
-5C0A7F 0A7F [Trivial]
-5C0A80 0A80 [Trivial][ILSEQ]
-5C0A81 0A81 [Trivial][ILSEQ]
-5C0A9F 0A9F [Trivial][ILSEQ]
-5C0AA0 0AA0 [Trivial][ILSEQ]
-5C0AA1 0AA1 [Trivial][ILSEQ]
-5C0AE0 0AE0 [Trivial][ILSEQ]
-5C0AEF 0AEF [Trivial][ILSEQ]
-5C0AF9 0AF9 [Trivial][ILSEQ]
-5C0AFA 0AFA [Trivial][ILSEQ]
-5C0AFC 0AFC [Trivial][ILSEQ]
-5C0AFD 0AFD [Trivial][ILSEQ]
-5C0AFE 0AFE [Trivial][ILSEQ]
-5C0AFF 0AFF [Trivial][ILSEQ]
-5C0D00 0D00 [Trivial]
-5C0D08 0D08 [Trivial]
-5C0D09 0D09 [Trivial]
-5C0D0A 0D0A [Trivial]
-5C0D0D 0D0D [Trivial]
-5C0D1A 0D1A [Trivial]
-5C0D22 0D22 [Trivial]
-5C0D25 0D25 [Trivial]
-5C0D27 NULL [SyntErr]
-5C0D30 0D30 [Trivial]
-5C0D3F 0D3F [Trivial]
-5C0D40 0D40 [Trivial]
-5C0D5A 0D5A [Trivial]
-5C0D5C NULL [SyntErr]
-5C0D5F 0D5F [Trivial]
-5C0D61 0D61 [Trivial]
-5C0D62 0D62 [Trivial]
-5C0D6E 0D6E [Trivial]
-5C0D72 0D72 [Trivial]
-5C0D74 0D74 [Trivial]
-5C0D7E 0D7E [Trivial]
-5C0D7F 0D7F [Trivial]
-5C0D80 0D80 [Trivial][ILSEQ]
-5C0D81 0D81 [Trivial][ILSEQ]
-5C0D9F 0D9F [Trivial][ILSEQ]
-5C0DA0 0DA0 [Trivial][ILSEQ]
-5C0DA1 0DA1 [Trivial][ILSEQ]
-5C0DE0 0DE0 [Trivial][ILSEQ]
-5C0DEF 0DEF [Trivial][ILSEQ]
-5C0DF9 0DF9 [Trivial][ILSEQ]
-5C0DFA 0DFA [Trivial][ILSEQ]
-5C0DFC 0DFC [Trivial][ILSEQ]
-5C0DFD 0DFD [Trivial][ILSEQ]
-5C0DFE 0DFE [Trivial][ILSEQ]
-5C0DFF 0DFF [Trivial][ILSEQ]
-5C1A00 1A00 [Trivial]
-5C1A08 1A08 [Trivial]
-5C1A09 1A09 [Trivial]
-5C1A0A 1A0A [Trivial]
-5C1A0D 1A0D [Trivial]
-5C1A1A 1A1A [Trivial]
-5C1A22 1A22 [Trivial]
-5C1A25 1A25 [Trivial]
-5C1A27 NULL [SyntErr]
-5C1A30 1A30 [Trivial]
-5C1A3F 1A3F [Trivial]
-5C1A40 1A40 [Trivial]
-5C1A5A 1A5A [Trivial]
-5C1A5C NULL [SyntErr]
-5C1A5F 1A5F [Trivial]
-5C1A61 1A61 [Trivial]
-5C1A62 1A62 [Trivial]
-5C1A6E 1A6E [Trivial]
-5C1A72 1A72 [Trivial]
-5C1A74 1A74 [Trivial]
-5C1A7E 1A7E [Trivial]
-5C1A7F 1A7F [Trivial]
-5C1A80 1A80 [Trivial][ILSEQ]
-5C1A81 1A81 [Trivial][ILSEQ]
-5C1A9F 1A9F [Trivial][ILSEQ]
-5C1AA0 1AA0 [Trivial][ILSEQ]
-5C1AA1 1AA1 [Trivial][ILSEQ]
-5C1AE0 1AE0 [Trivial][ILSEQ]
-5C1AEF 1AEF [Trivial][ILSEQ]
-5C1AF9 1AF9 [Trivial][ILSEQ]
-5C1AFA 1AFA [Trivial][ILSEQ]
-5C1AFC 1AFC [Trivial][ILSEQ]
-5C1AFD 1AFD [Trivial][ILSEQ]
-5C1AFE 1AFE [Trivial][ILSEQ]
-5C1AFF 1AFF [Trivial][ILSEQ]
-5C2200 2200 [Trivial]
-5C2208 2208 [Trivial]
-5C2209 2209 [Trivial]
-5C220A 220A [Trivial]
-5C220D 220D [Trivial]
-5C221A 221A [Trivial]
-5C2222 2222 [Trivial]
-5C2225 2225 [Trivial]
-5C2227 NULL [SyntErr]
-5C2230 2230 [Trivial]
-5C223F 223F [Trivial]
-5C2240 2240 [Trivial]
-5C225A 225A [Trivial]
-5C225C NULL [SyntErr]
-5C225F 225F [Trivial]
-5C2261 2261 [Trivial]
-5C2262 2262 [Trivial]
-5C226E 226E [Trivial]
-5C2272 2272 [Trivial]
-5C2274 2274 [Trivial]
-5C227E 227E [Trivial]
-5C227F 227F [Trivial]
-5C2280 2280 [Trivial][ILSEQ]
-5C2281 2281 [Trivial][ILSEQ]
-5C229F 229F [Trivial][ILSEQ]
-5C22A0 22A0 [Trivial][ILSEQ]
-5C22A1 22A1 [Trivial][ILSEQ]
-5C22E0 22E0 [Trivial][ILSEQ]
-5C22EF 22EF [Trivial][ILSEQ]
-5C22F9 22F9 [Trivial][ILSEQ]
-5C22FA 22FA [Trivial][ILSEQ]
-5C22FC 22FC [Trivial][ILSEQ]
-5C22FD 22FD [Trivial][ILSEQ]
-5C22FE 22FE [Trivial][ILSEQ]
-5C22FF 22FF [Trivial][ILSEQ]
-5C2500 5C2500 [Preserve][LIKE]
-5C2508 5C2508 [Preserve][LIKE]
-5C2509 5C2509 [Preserve][LIKE]
-5C250A 5C250A [Preserve][LIKE]
-5C250D 5C250D [Preserve][LIKE]
-5C251A 5C251A [Preserve][LIKE]
-5C2522 5C2522 [Preserve][LIKE]
-5C2525 5C2525 [Preserve][LIKE]
-5C2527 NULL [SyntErr]
-5C2530 5C2530 [Preserve][LIKE]
-5C253F 5C253F [Preserve][LIKE]
-5C2540 5C2540 [Preserve][LIKE]
-5C255A 5C255A [Preserve][LIKE]
-5C255C NULL [SyntErr]
-5C255F 5C255F [Preserve][LIKE]
-5C2561 5C2561 [Preserve][LIKE]
-5C2562 5C2562 [Preserve][LIKE]
-5C256E 5C256E [Preserve][LIKE]
-5C2572 5C2572 [Preserve][LIKE]
-5C2574 5C2574 [Preserve][LIKE]
-5C257E 5C257E [Preserve][LIKE]
-5C257F 5C257F [Preserve][LIKE]
-5C2580 5C2580 [Preserve][LIKE][ILSEQ]
-5C2581 5C2581 [Preserve][LIKE][ILSEQ]
-5C259F 5C259F [Preserve][LIKE][ILSEQ]
-5C25A0 5C25A0 [Preserve][LIKE][ILSEQ]
-5C25A1 5C25A1 [Preserve][LIKE][ILSEQ]
-5C25E0 5C25E0 [Preserve][LIKE][ILSEQ]
-5C25EF 5C25EF [Preserve][LIKE][ILSEQ]
-5C25F9 5C25F9 [Preserve][LIKE][ILSEQ]
-5C25FA 5C25FA [Preserve][LIKE][ILSEQ]
-5C25FC 5C25FC [Preserve][LIKE][ILSEQ]
-5C25FD 5C25FD [Preserve][LIKE][ILSEQ]
-5C25FE 5C25FE [Preserve][LIKE][ILSEQ]
-5C25FF 5C25FF [Preserve][LIKE][ILSEQ]
-5C2700 2700 [Trivial]
-5C2708 2708 [Trivial]
-5C2709 2709 [Trivial]
-5C270A 270A [Trivial]
-5C270D 270D [Trivial]
-5C271A 271A [Trivial]
-5C2722 2722 [Trivial]
-5C2725 2725 [Trivial]
-5C2727 NULL [SyntErr]
-5C2730 2730 [Trivial]
-5C273F 273F [Trivial]
-5C2740 2740 [Trivial]
-5C275A 275A [Trivial]
-5C275C NULL [SyntErr]
-5C275F 275F [Trivial]
-5C2761 2761 [Trivial]
-5C2762 2762 [Trivial]
-5C276E 276E [Trivial]
-5C2772 2772 [Trivial]
-5C2774 2774 [Trivial]
-5C277E 277E [Trivial]
-5C277F 277F [Trivial]
-5C2780 2780 [Trivial][ILSEQ]
-5C2781 2781 [Trivial][ILSEQ]
-5C279F 279F [Trivial][ILSEQ]
-5C27A0 27A0 [Trivial][ILSEQ]
-5C27A1 27A1 [Trivial][ILSEQ]
-5C27E0 27E0 [Trivial][ILSEQ]
-5C27EF 27EF [Trivial][ILSEQ]
-5C27F9 27F9 [Trivial][ILSEQ]
-5C27FA 27FA [Trivial][ILSEQ]
-5C27FC 27FC [Trivial][ILSEQ]
-5C27FD 27FD [Trivial][ILSEQ]
-5C27FE 27FE [Trivial][ILSEQ]
-5C27FF 27FF [Trivial][ILSEQ]
-5C3000 0000 [Regular]
-5C3008 0008 [Regular]
-5C3009 0009 [Regular]
-5C300A 000A [Regular]
-5C300D 000D [Regular]
-5C301A 001A [Regular]
-5C3022 0022 [Regular]
-5C3025 0025 [Regular]
-5C3027 NULL [SyntErr]
-5C3030 0030 [Regular]
-5C303F 003F [Regular]
-5C3040 0040 [Regular]
-5C305A 005A [Regular]
-5C305C NULL [SyntErr]
-5C305F 005F [Regular]
-5C3061 0061 [Regular]
-5C3062 0062 [Regular]
-5C306E 006E [Regular]
-5C3072 0072 [Regular]
-5C3074 0074 [Regular]
-5C307E 007E [Regular]
-5C307F 007F [Regular]
-5C3080 0080 [Regular][ILSEQ]
-5C3081 0081 [Regular][ILSEQ]
-5C309F 009F [Regular][ILSEQ]
-5C30A0 00A0 [Regular][ILSEQ]
-5C30A1 00A1 [Regular][ILSEQ]
-5C30E0 00E0 [Regular][ILSEQ]
-5C30EF 00EF [Regular][ILSEQ]
-5C30F9 00F9 [Regular][ILSEQ]
-5C30FA 00FA [Regular][ILSEQ]
-5C30FC 00FC [Regular][ILSEQ]
-5C30FD 00FD [Regular][ILSEQ]
-5C30FE 00FE [Regular][ILSEQ]
-5C30FF 00FF [Regular][ILSEQ]
-5C3F00 3F00 [Trivial]
-5C3F08 3F08 [Trivial]
-5C3F09 3F09 [Trivial]
-5C3F0A 3F0A [Trivial]
-5C3F0D 3F0D [Trivial]
-5C3F1A 3F1A [Trivial]
-5C3F22 3F22 [Trivial]
-5C3F25 3F25 [Trivial]
-5C3F27 NULL [SyntErr]
-5C3F30 3F30 [Trivial]
-5C3F3F 3F3F [Trivial]
-5C3F40 3F40 [Trivial]
-5C3F5A 3F5A [Trivial]
-5C3F5C NULL [SyntErr]
-5C3F5F 3F5F [Trivial]
-5C3F61 3F61 [Trivial]
-5C3F62 3F62 [Trivial]
-5C3F6E 3F6E [Trivial]
-5C3F72 3F72 [Trivial]
-5C3F74 3F74 [Trivial]
-5C3F7E 3F7E [Trivial]
-5C3F7F 3F7F [Trivial]
-5C3F80 3F80 [Trivial][ILSEQ]
-5C3F81 3F81 [Trivial][ILSEQ]
-5C3F9F 3F9F [Trivial][ILSEQ]
-5C3FA0 3FA0 [Trivial][ILSEQ]
-5C3FA1 3FA1 [Trivial][ILSEQ]
-5C3FE0 3FE0 [Trivial][ILSEQ]
-5C3FEF 3FEF [Trivial][ILSEQ]
-5C3FF9 3FF9 [Trivial][ILSEQ]
-5C3FFA 3FFA [Trivial][ILSEQ]
-5C3FFC 3FFC [Trivial][ILSEQ]
-5C3FFD 3FFD [Trivial][ILSEQ]
-5C3FFE 3FFE [Trivial][ILSEQ]
-5C3FFF 3FFF [Trivial][ILSEQ]
-5C4000 4000 [Trivial]
-5C4008 4008 [Trivial]
-5C4009 4009 [Trivial]
-5C400A 400A [Trivial]
-5C400D 400D [Trivial]
-5C401A 401A [Trivial]
-5C4022 4022 [Trivial]
-5C4025 4025 [Trivial]
-5C4027 NULL [SyntErr]
-5C4030 4030 [Trivial]
-5C403F 403F [Trivial]
-5C4040 4040 [Trivial]
-5C405A 405A [Trivial]
-5C405C NULL [SyntErr]
-5C405F 405F [Trivial]
-5C4061 4061 [Trivial]
-5C4062 4062 [Trivial]
-5C406E 406E [Trivial]
-5C4072 4072 [Trivial]
-5C4074 4074 [Trivial]
-5C407E 407E [Trivial]
-5C407F 407F [Trivial]
-5C4080 4080 [Trivial][ILSEQ]
-5C4081 4081 [Trivial][ILSEQ]
-5C409F 409F [Trivial][ILSEQ]
-5C40A0 40A0 [Trivial][ILSEQ]
-5C40A1 40A1 [Trivial][ILSEQ]
-5C40E0 40E0 [Trivial][ILSEQ]
-5C40EF 40EF [Trivial][ILSEQ]
-5C40F9 40F9 [Trivial][ILSEQ]
-5C40FA 40FA [Trivial][ILSEQ]
-5C40FC 40FC [Trivial][ILSEQ]
-5C40FD 40FD [Trivial][ILSEQ]
-5C40FE 40FE [Trivial][ILSEQ]
-5C40FF 40FF [Trivial][ILSEQ]
-5C5A00 1A00 [Regular]
-5C5A08 1A08 [Regular]
-5C5A09 1A09 [Regular]
-5C5A0A 1A0A [Regular]
-5C5A0D 1A0D [Regular]
-5C5A1A 1A1A [Regular]
-5C5A22 1A22 [Regular]
-5C5A25 1A25 [Regular]
-5C5A27 NULL [SyntErr]
-5C5A30 1A30 [Regular]
-5C5A3F 1A3F [Regular]
-5C5A40 1A40 [Regular]
-5C5A5A 1A5A [Regular]
-5C5A5C NULL [SyntErr]
-5C5A5F 1A5F [Regular]
-5C5A61 1A61 [Regular]
-5C5A62 1A62 [Regular]
-5C5A6E 1A6E [Regular]
-5C5A72 1A72 [Regular]
-5C5A74 1A74 [Regular]
-5C5A7E 1A7E [Regular]
-5C5A7F 1A7F [Regular]
-5C5A80 1A80 [Regular][ILSEQ]
-5C5A81 1A81 [Regular][ILSEQ]
-5C5A9F 1A9F [Regular][ILSEQ]
-5C5AA0 1AA0 [Regular][ILSEQ]
-5C5AA1 1AA1 [Regular][ILSEQ]
-5C5AE0 1AE0 [Regular][ILSEQ]
-5C5AEF 1AEF [Regular][ILSEQ]
-5C5AF9 1AF9 [Regular][ILSEQ]
-5C5AFA 1AFA [Regular][ILSEQ]
-5C5AFC 1AFC [Regular][ILSEQ]
-5C5AFD 1AFD [Regular][ILSEQ]
-5C5AFE 1AFE [Regular][ILSEQ]
-5C5AFF 1AFF [Regular][ILSEQ]
-5C5C00 5C00 [Regular]
-5C5C08 5C08 [Regular]
-5C5C09 5C09 [Regular]
-5C5C0A 5C0A [Regular]
-5C5C0D 5C0D [Regular]
-5C5C1A 5C1A [Regular]
-5C5C22 5C22 [Regular]
-5C5C25 5C25 [Regular]
-5C5C27 NULL [SyntErr]
-5C5C30 5C30 [Regular]
-5C5C3F 5C3F [Regular]
-5C5C40 5C40 [Regular]
-5C5C5A 5C5A [Regular]
-5C5C5C NULL [SyntErr]
-5C5C5F 5C5F [Regular]
-5C5C61 5C61 [Regular]
-5C5C62 5C62 [Regular]
-5C5C6E 5C6E [Regular]
-5C5C72 5C72 [Regular]
-5C5C74 5C74 [Regular]
-5C5C7E 5C7E [Regular]
-5C5C7F 5C7F [Regular]
-5C5C80 5C80 [Regular][ILSEQ]
-5C5C81 5C81 [Regular][ILSEQ]
-5C5C9F 5C9F [Regular][ILSEQ]
-5C5CA0 5CA0 [Regular][ILSEQ]
-5C5CA1 5CA1 [Regular][ILSEQ]
-5C5CE0 5CE0 [Regular][ILSEQ]
-5C5CEF 5CEF [Regular][ILSEQ]
-5C5CF9 5CF9 [Regular][ILSEQ]
-5C5CFA 5CFA [Regular][ILSEQ]
-5C5CFC 5CFC [Regular][ILSEQ]
-5C5CFD 5CFD [Regular][ILSEQ]
-5C5CFE 5CFE [Regular][ILSEQ]
-5C5CFF 5CFF [Regular][ILSEQ]
-5C5F00 5C5F00 [Preserve][LIKE]
-5C5F08 5C5F08 [Preserve][LIKE]
-5C5F09 5C5F09 [Preserve][LIKE]
-5C5F0A 5C5F0A [Preserve][LIKE]
-5C5F0D 5C5F0D [Preserve][LIKE]
-5C5F1A 5C5F1A [Preserve][LIKE]
-5C5F22 5C5F22 [Preserve][LIKE]
-5C5F25 5C5F25 [Preserve][LIKE]
-5C5F27 NULL [SyntErr]
-5C5F30 5C5F30 [Preserve][LIKE]
-5C5F3F 5C5F3F [Preserve][LIKE]
-5C5F40 5C5F40 [Preserve][LIKE]
-5C5F5A 5C5F5A [Preserve][LIKE]
-5C5F5C NULL [SyntErr]
-5C5F5F 5C5F5F [Preserve][LIKE]
-5C5F61 5C5F61 [Preserve][LIKE]
-5C5F62 5C5F62 [Preserve][LIKE]
-5C5F6E 5C5F6E [Preserve][LIKE]
-5C5F72 5C5F72 [Preserve][LIKE]
-5C5F74 5C5F74 [Preserve][LIKE]
-5C5F7E 5C5F7E [Preserve][LIKE]
-5C5F7F 5C5F7F [Preserve][LIKE]
-5C5F80 5C5F80 [Preserve][LIKE][ILSEQ]
-5C5F81 5C5F81 [Preserve][LIKE][ILSEQ]
-5C5F9F 5C5F9F [Preserve][LIKE][ILSEQ]
-5C5FA0 5C5FA0 [Preserve][LIKE][ILSEQ]
-5C5FA1 5C5FA1 [Preserve][LIKE][ILSEQ]
-5C5FE0 5C5FE0 [Preserve][LIKE][ILSEQ]
-5C5FEF 5C5FEF [Preserve][LIKE][ILSEQ]
-5C5FF9 5C5FF9 [Preserve][LIKE][ILSEQ]
-5C5FFA 5C5FFA [Preserve][LIKE][ILSEQ]
-5C5FFC 5C5FFC [Preserve][LIKE][ILSEQ]
-5C5FFD 5C5FFD [Preserve][LIKE][ILSEQ]
-5C5FFE 5C5FFE [Preserve][LIKE][ILSEQ]
-5C5FFF 5C5FFF [Preserve][LIKE][ILSEQ]
-5C6100 6100 [Trivial]
-5C6108 6108 [Trivial]
-5C6109 6109 [Trivial]
-5C610A 610A [Trivial]
-5C610D 610D [Trivial]
-5C611A 611A [Trivial]
-5C6122 6122 [Trivial]
-5C6125 6125 [Trivial]
-5C6127 NULL [SyntErr]
-5C6130 6130 [Trivial]
-5C613F 613F [Trivial]
-5C6140 6140 [Trivial]
-5C615A 615A [Trivial]
-5C615C NULL [SyntErr]
-5C615F 615F [Trivial]
-5C6161 6161 [Trivial]
-5C6162 6162 [Trivial]
-5C616E 616E [Trivial]
-5C6172 6172 [Trivial]
-5C6174 6174 [Trivial]
-5C617E 617E [Trivial]
-5C617F 617F [Trivial]
-5C6180 6180 [Trivial][ILSEQ]
-5C6181 6181 [Trivial][ILSEQ]
-5C619F 619F [Trivial][ILSEQ]
-5C61A0 61A0 [Trivial][ILSEQ]
-5C61A1 61A1 [Trivial][ILSEQ]
-5C61E0 61E0 [Trivial][ILSEQ]
-5C61EF 61EF [Trivial][ILSEQ]
-5C61F9 61F9 [Trivial][ILSEQ]
-5C61FA 61FA [Trivial][ILSEQ]
-5C61FC 61FC [Trivial][ILSEQ]
-5C61FD 61FD [Trivial][ILSEQ]
-5C61FE 61FE [Trivial][ILSEQ]
-5C61FF 61FF [Trivial][ILSEQ]
-5C6200 0800 [Regular]
-5C6208 0808 [Regular]
-5C6209 0809 [Regular]
-5C620A 080A [Regular]
-5C620D 080D [Regular]
-5C621A 081A [Regular]
-5C6222 0822 [Regular]
-5C6225 0825 [Regular]
-5C6227 NULL [SyntErr]
-5C6230 0830 [Regular]
-5C623F 083F [Regular]
-5C6240 0840 [Regular]
-5C625A 085A [Regular]
-5C625C NULL [SyntErr]
-5C625F 085F [Regular]
-5C6261 0861 [Regular]
-5C6262 0862 [Regular]
-5C626E 086E [Regular]
-5C6272 0872 [Regular]
-5C6274 0874 [Regular]
-5C627E 087E [Regular]
-5C627F 087F [Regular]
-5C6280 0880 [Regular][ILSEQ]
-5C6281 0881 [Regular][ILSEQ]
-5C629F 089F [Regular][ILSEQ]
-5C62A0 08A0 [Regular][ILSEQ]
-5C62A1 08A1 [Regular][ILSEQ]
-5C62E0 08E0 [Regular][ILSEQ]
-5C62EF 08EF [Regular][ILSEQ]
-5C62F9 08F9 [Regular][ILSEQ]
-5C62FA 08FA [Regular][ILSEQ]
-5C62FC 08FC [Regular][ILSEQ]
-5C62FD 08FD [Regular][ILSEQ]
-5C62FE 08FE [Regular][ILSEQ]
-5C62FF 08FF [Regular][ILSEQ]
-5C6E00 0A00 [Regular]
-5C6E08 0A08 [Regular]
-5C6E09 0A09 [Regular]
-5C6E0A 0A0A [Regular]
-5C6E0D 0A0D [Regular]
-5C6E1A 0A1A [Regular]
-5C6E22 0A22 [Regular]
-5C6E25 0A25 [Regular]
-5C6E27 NULL [SyntErr]
-5C6E30 0A30 [Regular]
-5C6E3F 0A3F [Regular]
-5C6E40 0A40 [Regular]
-5C6E5A 0A5A [Regular]
-5C6E5C NULL [SyntErr]
-5C6E5F 0A5F [Regular]
-5C6E61 0A61 [Regular]
-5C6E62 0A62 [Regular]
-5C6E6E 0A6E [Regular]
-5C6E72 0A72 [Regular]
-5C6E74 0A74 [Regular]
-5C6E7E 0A7E [Regular]
-5C6E7F 0A7F [Regular]
-5C6E80 0A80 [Regular][ILSEQ]
-5C6E81 0A81 [Regular][ILSEQ]
-5C6E9F 0A9F [Regular][ILSEQ]
-5C6EA0 0AA0 [Regular][ILSEQ]
-5C6EA1 0AA1 [Regular][ILSEQ]
-5C6EE0 0AE0 [Regular][ILSEQ]
-5C6EEF 0AEF [Regular][ILSEQ]
-5C6EF9 0AF9 [Regular][ILSEQ]
-5C6EFA 0AFA [Regular][ILSEQ]
-5C6EFC 0AFC [Regular][ILSEQ]
-5C6EFD 0AFD [Regular][ILSEQ]
-5C6EFE 0AFE [Regular][ILSEQ]
-5C6EFF 0AFF [Regular][ILSEQ]
-5C7200 0D00 [Regular]
-5C7208 0D08 [Regular]
-5C7209 0D09 [Regular]
-5C720A 0D0A [Regular]
-5C720D 0D0D [Regular]
-5C721A 0D1A [Regular]
-5C7222 0D22 [Regular]
-5C7225 0D25 [Regular]
-5C7227 NULL [SyntErr]
-5C7230 0D30 [Regular]
-5C723F 0D3F [Regular]
-5C7240 0D40 [Regular]
-5C725A 0D5A [Regular]
-5C725C NULL [SyntErr]
-5C725F 0D5F [Regular]
-5C7261 0D61 [Regular]
-5C7262 0D62 [Regular]
-5C726E 0D6E [Regular]
-5C7272 0D72 [Regular]
-5C7274 0D74 [Regular]
-5C727E 0D7E [Regular]
-5C727F 0D7F [Regular]
-5C7280 0D80 [Regular][ILSEQ]
-5C7281 0D81 [Regular][ILSEQ]
-5C729F 0D9F [Regular][ILSEQ]
-5C72A0 0DA0 [Regular][ILSEQ]
-5C72A1 0DA1 [Regular][ILSEQ]
-5C72E0 0DE0 [Regular][ILSEQ]
-5C72EF 0DEF [Regular][ILSEQ]
-5C72F9 0DF9 [Regular][ILSEQ]
-5C72FA 0DFA [Regular][ILSEQ]
-5C72FC 0DFC [Regular][ILSEQ]
-5C72FD 0DFD [Regular][ILSEQ]
-5C72FE 0DFE [Regular][ILSEQ]
-5C72FF 0DFF [Regular][ILSEQ]
-5C7400 0900 [Regular]
-5C7408 0908 [Regular]
-5C7409 0909 [Regular]
-5C740A 090A [Regular]
-5C740D 090D [Regular]
-5C741A 091A [Regular]
-5C7422 0922 [Regular]
-5C7425 0925 [Regular]
-5C7427 NULL [SyntErr]
-5C7430 0930 [Regular]
-5C743F 093F [Regular]
-5C7440 0940 [Regular]
-5C745A 095A [Regular]
-5C745C NULL [SyntErr]
-5C745F 095F [Regular]
-5C7461 0961 [Regular]
-5C7462 0962 [Regular]
-5C746E 096E [Regular]
-5C7472 0972 [Regular]
-5C7474 0974 [Regular]
-5C747E 097E [Regular]
-5C747F 097F [Regular]
-5C7480 0980 [Regular][ILSEQ]
-5C7481 0981 [Regular][ILSEQ]
-5C749F 099F [Regular][ILSEQ]
-5C74A0 09A0 [Regular][ILSEQ]
-5C74A1 09A1 [Regular][ILSEQ]
-5C74E0 09E0 [Regular][ILSEQ]
-5C74EF 09EF [Regular][ILSEQ]
-5C74F9 09F9 [Regular][ILSEQ]
-5C74FA 09FA [Regular][ILSEQ]
-5C74FC 09FC [Regular][ILSEQ]
-5C74FD 09FD [Regular][ILSEQ]
-5C74FE 09FE [Regular][ILSEQ]
-5C74FF 09FF [Regular][ILSEQ]
-5C7E00 7E00 [Trivial]
-5C7E08 7E08 [Trivial]
-5C7E09 7E09 [Trivial]
-5C7E0A 7E0A [Trivial]
-5C7E0D 7E0D [Trivial]
-5C7E1A 7E1A [Trivial]
-5C7E22 7E22 [Trivial]
-5C7E25 7E25 [Trivial]
-5C7E27 NULL [SyntErr]
-5C7E30 7E30 [Trivial]
-5C7E3F 7E3F [Trivial]
-5C7E40 7E40 [Trivial]
-5C7E5A 7E5A [Trivial]
-5C7E5C NULL [SyntErr]
-5C7E5F 7E5F [Trivial]
-5C7E61 7E61 [Trivial]
-5C7E62 7E62 [Trivial]
-5C7E6E 7E6E [Trivial]
-5C7E72 7E72 [Trivial]
-5C7E74 7E74 [Trivial]
-5C7E7E 7E7E [Trivial]
-5C7E7F 7E7F [Trivial]
-5C7E80 7E80 [Trivial][ILSEQ]
-5C7E81 7E81 [Trivial][ILSEQ]
-5C7E9F 7E9F [Trivial][ILSEQ]
-5C7EA0 7EA0 [Trivial][ILSEQ]
-5C7EA1 7EA1 [Trivial][ILSEQ]
-5C7EE0 7EE0 [Trivial][ILSEQ]
-5C7EEF 7EEF [Trivial][ILSEQ]
-5C7EF9 7EF9 [Trivial][ILSEQ]
-5C7EFA 7EFA [Trivial][ILSEQ]
-5C7EFC 7EFC [Trivial][ILSEQ]
-5C7EFD 7EFD [Trivial][ILSEQ]
-5C7EFE 7EFE [Trivial][ILSEQ]
-5C7EFF 7EFF [Trivial][ILSEQ]
-5C7F00 7F00 [Trivial]
-5C7F08 7F08 [Trivial]
-5C7F09 7F09 [Trivial]
-5C7F0A 7F0A [Trivial]
-5C7F0D 7F0D [Trivial]
-5C7F1A 7F1A [Trivial]
-5C7F22 7F22 [Trivial]
-5C7F25 7F25 [Trivial]
-5C7F27 NULL [SyntErr]
-5C7F30 7F30 [Trivial]
-5C7F3F 7F3F [Trivial]
-5C7F40 7F40 [Trivial]
-5C7F5A 7F5A [Trivial]
-5C7F5C NULL [SyntErr]
-5C7F5F 7F5F [Trivial]
-5C7F61 7F61 [Trivial]
-5C7F62 7F62 [Trivial]
-5C7F6E 7F6E [Trivial]
-5C7F72 7F72 [Trivial]
-5C7F74 7F74 [Trivial]
-5C7F7E 7F7E [Trivial]
-5C7F7F 7F7F [Trivial]
-5C7F80 7F80 [Trivial][ILSEQ]
-5C7F81 7F81 [Trivial][ILSEQ]
-5C7F9F 7F9F [Trivial][ILSEQ]
-5C7FA0 7FA0 [Trivial][ILSEQ]
-5C7FA1 7FA1 [Trivial][ILSEQ]
-5C7FE0 7FE0 [Trivial][ILSEQ]
-5C7FEF 7FEF [Trivial][ILSEQ]
-5C7FF9 7FF9 [Trivial][ILSEQ]
-5C7FFA 7FFA [Trivial][ILSEQ]
-5C7FFC 7FFC [Trivial][ILSEQ]
-5C7FFD 7FFD [Trivial][ILSEQ]
-5C7FFE 7FFE [Trivial][ILSEQ]
-5C7FFF 7FFF [Trivial][ILSEQ]
-5C8000 8000 [Trivial][ILSEQ]
-5C8008 8008 [Trivial][ILSEQ]
-5C8009 8009 [Trivial][ILSEQ]
-5C800A 800A [Trivial][ILSEQ]
-5C800D 800D [Trivial][ILSEQ]
-5C801A 801A [Trivial][ILSEQ]
-5C8022 8022 [Trivial][ILSEQ]
-5C8025 8025 [Trivial][ILSEQ]
-5C8027 NULL [SyntErr]
-5C8030 8030 [Trivial][ILSEQ]
-5C803F 803F [Trivial][ILSEQ]
-5C8040 8040 [Trivial][ILSEQ]
-5C805A 805A [Trivial][ILSEQ]
-5C805C NULL [SyntErr]
-5C805F 805F [Trivial][ILSEQ]
-5C8061 8061 [Trivial][ILSEQ]
-5C8062 8062 [Trivial][ILSEQ]
-5C806E 806E [Trivial][ILSEQ]
-5C8072 8072 [Trivial][ILSEQ]
-5C8074 8074 [Trivial][ILSEQ]
-5C807E 807E [Trivial][ILSEQ]
-5C807F 807F [Trivial][ILSEQ]
-5C8080 8080 [Trivial][ILSEQ]
-5C8081 8081 [Trivial][ILSEQ]
-5C809F 809F [Trivial][ILSEQ]
-5C80A0 80A0 [Trivial][ILSEQ]
-5C80A1 80A1 [Trivial][ILSEQ]
-5C80E0 80E0 [Trivial][ILSEQ]
-5C80EF 80EF [Trivial][ILSEQ]
-5C80F9 80F9 [Trivial][ILSEQ]
-5C80FA 80FA [Trivial][ILSEQ]
-5C80FC 80FC [Trivial][ILSEQ]
-5C80FD 80FD [Trivial][ILSEQ]
-5C80FE 80FE [Trivial][ILSEQ]
-5C80FF 80FF [Trivial][ILSEQ]
-5C8100 8100 [Trivial][ILSEQ]
-5C8108 8108 [Trivial][ILSEQ]
-5C8109 8109 [Trivial][ILSEQ]
-5C810A 810A [Trivial][ILSEQ]
-5C810D 810D [Trivial][ILSEQ]
-5C811A 811A [Trivial][ILSEQ]
-5C8122 8122 [Trivial][ILSEQ]
-5C8125 8125 [Trivial][ILSEQ]
-5C8127 NULL [SyntErr]
-5C8130 8130 [Trivial][ILSEQ]
-5C813F 813F [Trivial][ILSEQ]
-5C8140 8140 [Trivial]
-5C815A 815A [Trivial]
-5C815C NULL [SyntErr]
-5C815F 815F [Trivial]
-5C8161 8161 [Trivial]
-5C8162 8162 [Trivial]
-5C816E 816E [Trivial]
-5C8172 8172 [Trivial]
-5C8174 8174 [Trivial]
-5C817E 817E [Trivial]
-5C817F 817F [Trivial][ILSEQ]
-5C8180 8180 [Trivial]
-5C8181 8181 [Trivial]
-5C819F 819F [Trivial]
-5C81A0 81A0 [Trivial]
-5C81A1 81A1 [Trivial]
-5C81E0 81E0 [Trivial]
-5C81EF 81EF [Trivial]
-5C81F9 81F9 [Trivial]
-5C81FA 81FA [Trivial]
-5C81FC 81FC [Trivial]
-5C81FD 81FD [Trivial]
-5C81FE 81FE [Trivial]
-5C81FF 81FF [Trivial][ILSEQ]
-5C9F00 9F00 [Trivial][ILSEQ]
-5C9F08 9F08 [Trivial][ILSEQ]
-5C9F09 9F09 [Trivial][ILSEQ]
-5C9F0A 9F0A [Trivial][ILSEQ]
-5C9F0D 9F0D [Trivial][ILSEQ]
-5C9F1A 9F1A [Trivial][ILSEQ]
-5C9F22 9F22 [Trivial][ILSEQ]
-5C9F25 9F25 [Trivial][ILSEQ]
-5C9F27 NULL [SyntErr]
-5C9F30 9F30 [Trivial][ILSEQ]
-5C9F3F 9F3F [Trivial][ILSEQ]
-5C9F40 9F40 [Trivial]
-5C9F5A 9F5A [Trivial]
-5C9F5C NULL [SyntErr]
-5C9F5F 9F5F [Trivial]
-5C9F61 9F61 [Trivial]
-5C9F62 9F62 [Trivial]
-5C9F6E 9F6E [Trivial]
-5C9F72 9F72 [Trivial]
-5C9F74 9F74 [Trivial]
-5C9F7E 9F7E [Trivial]
-5C9F7F 9F7F [Trivial][ILSEQ]
-5C9F80 9F80 [Trivial]
-5C9F81 9F81 [Trivial]
-5C9F9F 9F9F [Trivial]
-5C9FA0 9FA0 [Trivial]
-5C9FA1 9FA1 [Trivial]
-5C9FE0 9FE0 [Trivial]
-5C9FEF 9FEF [Trivial]
-5C9FF9 9FF9 [Trivial]
-5C9FFA 9FFA [Trivial]
-5C9FFC 9FFC [Trivial]
-5C9FFD 9FFD [Trivial]
-5C9FFE 9FFE [Trivial]
-5C9FFF 9FFF [Trivial][ILSEQ]
-5CA000 A000 [Trivial][ILSEQ]
-5CA008 A008 [Trivial][ILSEQ]
-5CA009 A009 [Trivial][ILSEQ]
-5CA00A A00A [Trivial][ILSEQ]
-5CA00D A00D [Trivial][ILSEQ]
-5CA01A A01A [Trivial][ILSEQ]
-5CA022 A022 [Trivial][ILSEQ]
-5CA025 A025 [Trivial][ILSEQ]
-5CA027 NULL [SyntErr]
-5CA030 A030 [Trivial][ILSEQ]
-5CA03F A03F [Trivial][ILSEQ]
-5CA040 A040 [Trivial]
-5CA05A A05A [Trivial]
-5CA05C NULL [SyntErr]
-5CA05F A05F [Trivial]
-5CA061 A061 [Trivial]
-5CA062 A062 [Trivial]
-5CA06E A06E [Trivial]
-5CA072 A072 [Trivial]
-5CA074 A074 [Trivial]
-5CA07E A07E [Trivial]
-5CA07F A07F [Trivial][ILSEQ]
-5CA080 A080 [Trivial]
-5CA081 A081 [Trivial]
-5CA09F A09F [Trivial]
-5CA0A0 A0A0 [Trivial]
-5CA0A1 A0A1 [Trivial]
-5CA0E0 A0E0 [Trivial]
-5CA0EF A0EF [Trivial]
-5CA0F9 A0F9 [Trivial]
-5CA0FA A0FA [Trivial]
-5CA0FC A0FC [Trivial]
-5CA0FD A0FD [Trivial]
-5CA0FE A0FE [Trivial]
-5CA0FF A0FF [Trivial][ILSEQ]
-5CA100 A100 [Trivial][ILSEQ]
-5CA108 A108 [Trivial][ILSEQ]
-5CA109 A109 [Trivial][ILSEQ]
-5CA10A A10A [Trivial][ILSEQ]
-5CA10D A10D [Trivial][ILSEQ]
-5CA11A A11A [Trivial][ILSEQ]
-5CA122 A122 [Trivial][ILSEQ]
-5CA125 A125 [Trivial][ILSEQ]
-5CA127 NULL [SyntErr]
-5CA130 A130 [Trivial][ILSEQ]
-5CA13F A13F [Trivial][ILSEQ]
-5CA140 A140 [Trivial]
-5CA15A A15A [Trivial]
-5CA15C NULL [SyntErr]
-5CA15F A15F [Trivial]
-5CA161 A161 [Trivial]
-5CA162 A162 [Trivial]
-5CA16E A16E [Trivial]
-5CA172 A172 [Trivial]
-5CA174 A174 [Trivial]
-5CA17E A17E [Trivial]
-5CA17F A17F [Trivial][ILSEQ]
-5CA180 A180 [Trivial]
-5CA181 A181 [Trivial]
-5CA19F A19F [Trivial]
-5CA1A0 A1A0 [Trivial]
-5CA1A1 A1A1 [Trivial]
-5CA1E0 A1E0 [Trivial]
-5CA1EF A1EF [Trivial]
-5CA1F9 A1F9 [Trivial]
-5CA1FA A1FA [Trivial]
-5CA1FC A1FC [Trivial]
-5CA1FD A1FD [Trivial]
-5CA1FE A1FE [Trivial]
-5CA1FF A1FF [Trivial][ILSEQ]
-5CE000 E000 [Trivial][ILSEQ]
-5CE008 E008 [Trivial][ILSEQ]
-5CE009 E009 [Trivial][ILSEQ]
-5CE00A E00A [Trivial][ILSEQ]
-5CE00D E00D [Trivial][ILSEQ]
-5CE01A E01A [Trivial][ILSEQ]
-5CE022 E022 [Trivial][ILSEQ]
-5CE025 E025 [Trivial][ILSEQ]
-5CE027 NULL [SyntErr]
-5CE030 E030 [Trivial][ILSEQ]
-5CE03F E03F [Trivial][ILSEQ]
-5CE040 E040 [Trivial]
-5CE05A E05A [Trivial]
-5CE05C NULL [SyntErr]
-5CE05F E05F [Trivial]
-5CE061 E061 [Trivial]
-5CE062 E062 [Trivial]
-5CE06E E06E [Trivial]
-5CE072 E072 [Trivial]
-5CE074 E074 [Trivial]
-5CE07E E07E [Trivial]
-5CE07F E07F [Trivial][ILSEQ]
-5CE080 E080 [Trivial]
-5CE081 E081 [Trivial]
-5CE09F E09F [Trivial]
-5CE0A0 E0A0 [Trivial]
-5CE0A1 E0A1 [Trivial]
-5CE0E0 E0E0 [Trivial]
-5CE0EF E0EF [Trivial]
-5CE0F9 E0F9 [Trivial]
-5CE0FA E0FA [Trivial]
-5CE0FC E0FC [Trivial]
-5CE0FD E0FD [Trivial]
-5CE0FE E0FE [Trivial]
-5CE0FF E0FF [Trivial][ILSEQ]
-5CEF00 EF00 [Trivial][ILSEQ]
-5CEF08 EF08 [Trivial][ILSEQ]
-5CEF09 EF09 [Trivial][ILSEQ]
-5CEF0A EF0A [Trivial][ILSEQ]
-5CEF0D EF0D [Trivial][ILSEQ]
-5CEF1A EF1A [Trivial][ILSEQ]
-5CEF22 EF22 [Trivial][ILSEQ]
-5CEF25 EF25 [Trivial][ILSEQ]
-5CEF27 NULL [SyntErr]
-5CEF30 EF30 [Trivial][ILSEQ]
-5CEF3F EF3F [Trivial][ILSEQ]
-5CEF40 EF40 [Trivial]
-5CEF5A EF5A [Trivial]
-5CEF5C NULL [SyntErr]
-5CEF5F EF5F [Trivial]
-5CEF61 EF61 [Trivial]
-5CEF62 EF62 [Trivial]
-5CEF6E EF6E [Trivial]
-5CEF72 EF72 [Trivial]
-5CEF74 EF74 [Trivial]
-5CEF7E EF7E [Trivial]
-5CEF7F EF7F [Trivial][ILSEQ]
-5CEF80 EF80 [Trivial]
-5CEF81 EF81 [Trivial]
-5CEF9F EF9F [Trivial]
-5CEFA0 EFA0 [Trivial]
-5CEFA1 EFA1 [Trivial]
-5CEFE0 EFE0 [Trivial]
-5CEFEF EFEF [Trivial]
-5CEFF9 EFF9 [Trivial]
-5CEFFA EFFA [Trivial]
-5CEFFC EFFC [Trivial]
-5CEFFD EFFD [Trivial]
-5CEFFE EFFE [Trivial]
-5CEFFF EFFF [Trivial][ILSEQ]
-5CF900 F900 [Trivial][ILSEQ]
-5CF908 F908 [Trivial][ILSEQ]
-5CF909 F909 [Trivial][ILSEQ]
-5CF90A F90A [Trivial][ILSEQ]
-5CF90D F90D [Trivial][ILSEQ]
-5CF91A F91A [Trivial][ILSEQ]
-5CF922 F922 [Trivial][ILSEQ]
-5CF925 F925 [Trivial][ILSEQ]
-5CF927 NULL [SyntErr]
-5CF930 F930 [Trivial][ILSEQ]
-5CF93F F93F [Trivial][ILSEQ]
-5CF940 F940 [Trivial]
-5CF95A F95A [Trivial]
-5CF95C NULL [SyntErr]
-5CF95F F95F [Trivial]
-5CF961 F961 [Trivial]
-5CF962 F962 [Trivial]
-5CF96E F96E [Trivial]
-5CF972 F972 [Trivial]
-5CF974 F974 [Trivial]
-5CF97E F97E [Trivial]
-5CF97F F97F [Trivial][ILSEQ]
-5CF980 F980 [Trivial]
-5CF981 F981 [Trivial]
-5CF99F F99F [Trivial]
-5CF9A0 F9A0 [Trivial]
-5CF9A1 F9A1 [Trivial]
-5CF9E0 F9E0 [Trivial]
-5CF9EF F9EF [Trivial]
-5CF9F9 F9F9 [Trivial]
-5CF9FA F9FA [Trivial]
-5CF9FC F9FC [Trivial]
-5CF9FD F9FD [Trivial]
-5CF9FE F9FE [Trivial]
-5CF9FF F9FF [Trivial][ILSEQ]
-5CFA00 FA00 [Trivial][ILSEQ]
-5CFA08 FA08 [Trivial][ILSEQ]
-5CFA09 FA09 [Trivial][ILSEQ]
-5CFA0A FA0A [Trivial][ILSEQ]
-5CFA0D FA0D [Trivial][ILSEQ]
-5CFA1A FA1A [Trivial][ILSEQ]
-5CFA22 FA22 [Trivial][ILSEQ]
-5CFA25 FA25 [Trivial][ILSEQ]
-5CFA27 NULL [SyntErr]
-5CFA30 FA30 [Trivial][ILSEQ]
-5CFA3F FA3F [Trivial][ILSEQ]
-5CFA40 FA40 [Trivial]
-5CFA5A FA5A [Trivial]
-5CFA5C NULL [SyntErr]
-5CFA5F FA5F [Trivial]
-5CFA61 FA61 [Trivial]
-5CFA62 FA62 [Trivial]
-5CFA6E FA6E [Trivial]
-5CFA72 FA72 [Trivial]
-5CFA74 FA74 [Trivial]
-5CFA7E FA7E [Trivial]
-5CFA7F FA7F [Trivial][ILSEQ]
-5CFA80 FA80 [Trivial]
-5CFA81 FA81 [Trivial]
-5CFA9F FA9F [Trivial]
-5CFAA0 FAA0 [Trivial]
-5CFAA1 FAA1 [Trivial]
-5CFAE0 FAE0 [Trivial]
-5CFAEF FAEF [Trivial]
-5CFAF9 FAF9 [Trivial]
-5CFAFA FAFA [Trivial]
-5CFAFC FAFC [Trivial]
-5CFAFD FAFD [Trivial]
-5CFAFE FAFE [Trivial]
-5CFAFF FAFF [Trivial][ILSEQ]
-5CFC00 FC00 [Trivial][ILSEQ]
-5CFC08 FC08 [Trivial][ILSEQ]
-5CFC09 FC09 [Trivial][ILSEQ]
-5CFC0A FC0A [Trivial][ILSEQ]
-5CFC0D FC0D [Trivial][ILSEQ]
-5CFC1A FC1A [Trivial][ILSEQ]
-5CFC22 FC22 [Trivial][ILSEQ]
-5CFC25 FC25 [Trivial][ILSEQ]
-5CFC27 NULL [SyntErr]
-5CFC30 FC30 [Trivial][ILSEQ]
-5CFC3F FC3F [Trivial][ILSEQ]
-5CFC40 FC40 [Trivial]
-5CFC5A FC5A [Trivial]
-5CFC5C NULL [SyntErr]
-5CFC5F FC5F [Trivial]
-5CFC61 FC61 [Trivial]
-5CFC62 FC62 [Trivial]
-5CFC6E FC6E [Trivial]
-5CFC72 FC72 [Trivial]
-5CFC74 FC74 [Trivial]
-5CFC7E FC7E [Trivial]
-5CFC7F FC7F [Trivial][ILSEQ]
-5CFC80 FC80 [Trivial]
-5CFC81 FC81 [Trivial]
-5CFC9F FC9F [Trivial]
-5CFCA0 FCA0 [Trivial]
-5CFCA1 FCA1 [Trivial]
-5CFCE0 FCE0 [Trivial]
-5CFCEF FCEF [Trivial]
-5CFCF9 FCF9 [Trivial]
-5CFCFA FCFA [Trivial]
-5CFCFC FCFC [Trivial]
-5CFCFD FCFD [Trivial]
-5CFCFE FCFE [Trivial]
-5CFCFF FCFF [Trivial][ILSEQ]
-5CFD00 FD00 [Trivial][ILSEQ]
-5CFD08 FD08 [Trivial][ILSEQ]
-5CFD09 FD09 [Trivial][ILSEQ]
-5CFD0A FD0A [Trivial][ILSEQ]
-5CFD0D FD0D [Trivial][ILSEQ]
-5CFD1A FD1A [Trivial][ILSEQ]
-5CFD22 FD22 [Trivial][ILSEQ]
-5CFD25 FD25 [Trivial][ILSEQ]
-5CFD27 NULL [SyntErr]
-5CFD30 FD30 [Trivial][ILSEQ]
-5CFD3F FD3F [Trivial][ILSEQ]
-5CFD40 FD40 [Trivial]
-5CFD5A FD5A [Trivial]
-5CFD5C NULL [SyntErr]
-5CFD5F FD5F [Trivial]
-5CFD61 FD61 [Trivial]
-5CFD62 FD62 [Trivial]
-5CFD6E FD6E [Trivial]
-5CFD72 FD72 [Trivial]
-5CFD74 FD74 [Trivial]
-5CFD7E FD7E [Trivial]
-5CFD7F FD7F [Trivial][ILSEQ]
-5CFD80 FD80 [Trivial]
-5CFD81 FD81 [Trivial]
-5CFD9F FD9F [Trivial]
-5CFDA0 FDA0 [Trivial]
-5CFDA1 FDA1 [Trivial]
-5CFDE0 FDE0 [Trivial]
-5CFDEF FDEF [Trivial]
-5CFDF9 FDF9 [Trivial]
-5CFDFA FDFA [Trivial]
-5CFDFC FDFC [Trivial]
-5CFDFD FDFD [Trivial]
-5CFDFE FDFE [Trivial]
-5CFDFF FDFF [Trivial][ILSEQ]
-5CFE00 FE00 [Trivial][ILSEQ]
-5CFE08 FE08 [Trivial][ILSEQ]
-5CFE09 FE09 [Trivial][ILSEQ]
-5CFE0A FE0A [Trivial][ILSEQ]
-5CFE0D FE0D [Trivial][ILSEQ]
-5CFE1A FE1A [Trivial][ILSEQ]
-5CFE22 FE22 [Trivial][ILSEQ]
-5CFE25 FE25 [Trivial][ILSEQ]
-5CFE27 NULL [SyntErr]
-5CFE30 FE30 [Trivial][ILSEQ]
-5CFE3F FE3F [Trivial][ILSEQ]
-5CFE40 FE40 [Trivial]
-5CFE5A FE5A [Trivial]
-5CFE5C NULL [SyntErr]
-5CFE5F FE5F [Trivial]
-5CFE61 FE61 [Trivial]
-5CFE62 FE62 [Trivial]
-5CFE6E FE6E [Trivial]
-5CFE72 FE72 [Trivial]
-5CFE74 FE74 [Trivial]
-5CFE7E FE7E [Trivial]
-5CFE7F FE7F [Trivial][ILSEQ]
-5CFE80 FE80 [Trivial]
-5CFE81 FE81 [Trivial]
-5CFE9F FE9F [Trivial]
-5CFEA0 FEA0 [Trivial]
-5CFEA1 FEA1 [Trivial]
-5CFEE0 FEE0 [Trivial]
-5CFEEF FEEF [Trivial]
-5CFEF9 FEF9 [Trivial]
-5CFEFA FEFA [Trivial]
-5CFEFC FEFC [Trivial]
-5CFEFD FEFD [Trivial]
-5CFEFE FEFE [Trivial]
-5CFEFF FEFF [Trivial][ILSEQ]
-5CFF00 FF00 [Trivial][ILSEQ]
-5CFF08 FF08 [Trivial][ILSEQ]
-5CFF09 FF09 [Trivial][ILSEQ]
-5CFF0A FF0A [Trivial][ILSEQ]
-5CFF0D FF0D [Trivial][ILSEQ]
-5CFF1A FF1A [Trivial][ILSEQ]
-5CFF22 FF22 [Trivial][ILSEQ]
-5CFF25 FF25 [Trivial][ILSEQ]
-5CFF27 NULL [SyntErr]
-5CFF30 FF30 [Trivial][ILSEQ]
-5CFF3F FF3F [Trivial][ILSEQ]
-5CFF40 FF40 [Trivial][ILSEQ]
-5CFF5A FF5A [Trivial][ILSEQ]
-5CFF5C NULL [SyntErr]
-5CFF5F FF5F [Trivial][ILSEQ]
-5CFF61 FF61 [Trivial][ILSEQ]
-5CFF62 FF62 [Trivial][ILSEQ]
-5CFF6E FF6E [Trivial][ILSEQ]
-5CFF72 FF72 [Trivial][ILSEQ]
-5CFF74 FF74 [Trivial][ILSEQ]
-5CFF7E FF7E [Trivial][ILSEQ]
-5CFF7F FF7F [Trivial][ILSEQ]
-5CFF80 FF80 [Trivial][ILSEQ]
-5CFF81 FF81 [Trivial][ILSEQ]
-5CFF9F FF9F [Trivial][ILSEQ]
-5CFFA0 FFA0 [Trivial][ILSEQ]
-5CFFA1 FFA1 [Trivial][ILSEQ]
-5CFFE0 FFE0 [Trivial][ILSEQ]
-5CFFEF FFEF [Trivial][ILSEQ]
-5CFFF9 FFF9 [Trivial][ILSEQ]
-5CFFFA FFFA [Trivial][ILSEQ]
-5CFFFC FFFC [Trivial][ILSEQ]
-5CFFFD FFFD [Trivial][ILSEQ]
-5CFFFE FFFE [Trivial][ILSEQ]
-5CFFFF FFFF [Trivial][ILSEQ]
-5C005C00 0000 [Trivial]
-5C005C08 0008 [Trivial]
-5C005C09 0009 [Trivial]
-5C005C0A 000A [Trivial]
-5C005C0D 000D [Trivial]
-5C005C1A 001A [Trivial]
-5C005C22 0022 [Trivial]
-5C005C25 005C25 [Regular]
-5C005C27 0027 [Trivial]
-5C005C30 0000 [Regular]
-5C005C3F 003F [Trivial]
-5C005C40 0040 [Trivial]
-5C005C5A 001A [Regular]
-5C005C5C 005C [Regular]
-5C005C5F 005C5F [Regular]
-5C005C61 0061 [Trivial]
-5C005C62 0008 [Regular]
-5C005C6E 000A [Regular]
-5C005C72 000D [Regular]
-5C005C74 0009 [Regular]
-5C005C7E 007E [Trivial]
-5C005C7F 007F [Trivial]
-5C005C80 0080 [Trivial][ILSEQ]
-5C005C81 0081 [Trivial][ILSEQ]
-5C005C9F 009F [Trivial][ILSEQ]
-5C005CA0 00A0 [Trivial][ILSEQ]
-5C005CA1 00A1 [Trivial][ILSEQ]
-5C005CE0 00E0 [Trivial][ILSEQ]
-5C005CEF 00EF [Trivial][ILSEQ]
-5C005CF9 00F9 [Trivial][ILSEQ]
-5C005CFA 00FA [Trivial][ILSEQ]
-5C005CFC 00FC [Trivial][ILSEQ]
-5C005CFD 00FD [Trivial][ILSEQ]
-5C005CFE 00FE [Trivial][ILSEQ]
-5C005CFF 00FF [Trivial][ILSEQ]
-5C085C00 0800 [Trivial]
-5C085C08 0808 [Trivial]
-5C085C09 0809 [Trivial]
-5C085C0A 080A [Trivial]
-5C085C0D 080D [Trivial]
-5C085C1A 081A [Trivial]
-5C085C22 0822 [Trivial]
-5C085C25 085C25 [Regular]
-5C085C27 0827 [Trivial]
-5C085C30 0800 [Regular]
-5C085C3F 083F [Trivial]
-5C085C40 0840 [Trivial]
-5C085C5A 081A [Regular]
-5C085C5C 085C [Regular]
-5C085C5F 085C5F [Regular]
-5C085C61 0861 [Trivial]
-5C085C62 0808 [Regular]
-5C085C6E 080A [Regular]
-5C085C72 080D [Regular]
-5C085C74 0809 [Regular]
-5C085C7E 087E [Trivial]
-5C085C7F 087F [Trivial]
-5C085C80 0880 [Trivial][ILSEQ]
-5C085C81 0881 [Trivial][ILSEQ]
-5C085C9F 089F [Trivial][ILSEQ]
-5C085CA0 08A0 [Trivial][ILSEQ]
-5C085CA1 08A1 [Trivial][ILSEQ]
-5C085CE0 08E0 [Trivial][ILSEQ]
-5C085CEF 08EF [Trivial][ILSEQ]
-5C085CF9 08F9 [Trivial][ILSEQ]
-5C085CFA 08FA [Trivial][ILSEQ]
-5C085CFC 08FC [Trivial][ILSEQ]
-5C085CFD 08FD [Trivial][ILSEQ]
-5C085CFE 08FE [Trivial][ILSEQ]
-5C085CFF 08FF [Trivial][ILSEQ]
-5C095C00 0900 [Trivial]
-5C095C08 0908 [Trivial]
-5C095C09 0909 [Trivial]
-5C095C0A 090A [Trivial]
-5C095C0D 090D [Trivial]
-5C095C1A 091A [Trivial]
-5C095C22 0922 [Trivial]
-5C095C25 095C25 [Regular]
-5C095C27 0927 [Trivial]
-5C095C30 0900 [Regular]
-5C095C3F 093F [Trivial]
-5C095C40 0940 [Trivial]
-5C095C5A 091A [Regular]
-5C095C5C 095C [Regular]
-5C095C5F 095C5F [Regular]
-5C095C61 0961 [Trivial]
-5C095C62 0908 [Regular]
-5C095C6E 090A [Regular]
-5C095C72 090D [Regular]
-5C095C74 0909 [Regular]
-5C095C7E 097E [Trivial]
-5C095C7F 097F [Trivial]
-5C095C80 0980 [Trivial][ILSEQ]
-5C095C81 0981 [Trivial][ILSEQ]
-5C095C9F 099F [Trivial][ILSEQ]
-5C095CA0 09A0 [Trivial][ILSEQ]
-5C095CA1 09A1 [Trivial][ILSEQ]
-5C095CE0 09E0 [Trivial][ILSEQ]
-5C095CEF 09EF [Trivial][ILSEQ]
-5C095CF9 09F9 [Trivial][ILSEQ]
-5C095CFA 09FA [Trivial][ILSEQ]
-5C095CFC 09FC [Trivial][ILSEQ]
-5C095CFD 09FD [Trivial][ILSEQ]
-5C095CFE 09FE [Trivial][ILSEQ]
-5C095CFF 09FF [Trivial][ILSEQ]
-5C0A5C00 0A00 [Trivial]
-5C0A5C08 0A08 [Trivial]
-5C0A5C09 0A09 [Trivial]
-5C0A5C0A 0A0A [Trivial]
-5C0A5C0D 0A0D [Trivial]
-5C0A5C1A 0A1A [Trivial]
-5C0A5C22 0A22 [Trivial]
-5C0A5C25 0A5C25 [Regular]
-5C0A5C27 0A27 [Trivial]
-5C0A5C30 0A00 [Regular]
-5C0A5C3F 0A3F [Trivial]
-5C0A5C40 0A40 [Trivial]
-5C0A5C5A 0A1A [Regular]
-5C0A5C5C 0A5C [Regular]
-5C0A5C5F 0A5C5F [Regular]
-5C0A5C61 0A61 [Trivial]
-5C0A5C62 0A08 [Regular]
-5C0A5C6E 0A0A [Regular]
-5C0A5C72 0A0D [Regular]
-5C0A5C74 0A09 [Regular]
-5C0A5C7E 0A7E [Trivial]
-5C0A5C7F 0A7F [Trivial]
-5C0A5C80 0A80 [Trivial][ILSEQ]
-5C0A5C81 0A81 [Trivial][ILSEQ]
-5C0A5C9F 0A9F [Trivial][ILSEQ]
-5C0A5CA0 0AA0 [Trivial][ILSEQ]
-5C0A5CA1 0AA1 [Trivial][ILSEQ]
-5C0A5CE0 0AE0 [Trivial][ILSEQ]
-5C0A5CEF 0AEF [Trivial][ILSEQ]
-5C0A5CF9 0AF9 [Trivial][ILSEQ]
-5C0A5CFA 0AFA [Trivial][ILSEQ]
-5C0A5CFC 0AFC [Trivial][ILSEQ]
-5C0A5CFD 0AFD [Trivial][ILSEQ]
-5C0A5CFE 0AFE [Trivial][ILSEQ]
-5C0A5CFF 0AFF [Trivial][ILSEQ]
-5C0D5C00 0D00 [Trivial]
-5C0D5C08 0D08 [Trivial]
-5C0D5C09 0D09 [Trivial]
-5C0D5C0A 0D0A [Trivial]
-5C0D5C0D 0D0D [Trivial]
-5C0D5C1A 0D1A [Trivial]
-5C0D5C22 0D22 [Trivial]
-5C0D5C25 0D5C25 [Regular]
-5C0D5C27 0D27 [Trivial]
-5C0D5C30 0D00 [Regular]
-5C0D5C3F 0D3F [Trivial]
-5C0D5C40 0D40 [Trivial]
-5C0D5C5A 0D1A [Regular]
-5C0D5C5C 0D5C [Regular]
-5C0D5C5F 0D5C5F [Regular]
-5C0D5C61 0D61 [Trivial]
-5C0D5C62 0D08 [Regular]
-5C0D5C6E 0D0A [Regular]
-5C0D5C72 0D0D [Regular]
-5C0D5C74 0D09 [Regular]
-5C0D5C7E 0D7E [Trivial]
-5C0D5C7F 0D7F [Trivial]
-5C0D5C80 0D80 [Trivial][ILSEQ]
-5C0D5C81 0D81 [Trivial][ILSEQ]
-5C0D5C9F 0D9F [Trivial][ILSEQ]
-5C0D5CA0 0DA0 [Trivial][ILSEQ]
-5C0D5CA1 0DA1 [Trivial][ILSEQ]
-5C0D5CE0 0DE0 [Trivial][ILSEQ]
-5C0D5CEF 0DEF [Trivial][ILSEQ]
-5C0D5CF9 0DF9 [Trivial][ILSEQ]
-5C0D5CFA 0DFA [Trivial][ILSEQ]
-5C0D5CFC 0DFC [Trivial][ILSEQ]
-5C0D5CFD 0DFD [Trivial][ILSEQ]
-5C0D5CFE 0DFE [Trivial][ILSEQ]
-5C0D5CFF 0DFF [Trivial][ILSEQ]
-5C1A5C00 1A00 [Trivial]
-5C1A5C08 1A08 [Trivial]
-5C1A5C09 1A09 [Trivial]
-5C1A5C0A 1A0A [Trivial]
-5C1A5C0D 1A0D [Trivial]
-5C1A5C1A 1A1A [Trivial]
-5C1A5C22 1A22 [Trivial]
-5C1A5C25 1A5C25 [Regular]
-5C1A5C27 1A27 [Trivial]
-5C1A5C30 1A00 [Regular]
-5C1A5C3F 1A3F [Trivial]
-5C1A5C40 1A40 [Trivial]
-5C1A5C5A 1A1A [Regular]
-5C1A5C5C 1A5C [Regular]
-5C1A5C5F 1A5C5F [Regular]
-5C1A5C61 1A61 [Trivial]
-5C1A5C62 1A08 [Regular]
-5C1A5C6E 1A0A [Regular]
-5C1A5C72 1A0D [Regular]
-5C1A5C74 1A09 [Regular]
-5C1A5C7E 1A7E [Trivial]
-5C1A5C7F 1A7F [Trivial]
-5C1A5C80 1A80 [Trivial][ILSEQ]
-5C1A5C81 1A81 [Trivial][ILSEQ]
-5C1A5C9F 1A9F [Trivial][ILSEQ]
-5C1A5CA0 1AA0 [Trivial][ILSEQ]
-5C1A5CA1 1AA1 [Trivial][ILSEQ]
-5C1A5CE0 1AE0 [Trivial][ILSEQ]
-5C1A5CEF 1AEF [Trivial][ILSEQ]
-5C1A5CF9 1AF9 [Trivial][ILSEQ]
-5C1A5CFA 1AFA [Trivial][ILSEQ]
-5C1A5CFC 1AFC [Trivial][ILSEQ]
-5C1A5CFD 1AFD [Trivial][ILSEQ]
-5C1A5CFE 1AFE [Trivial][ILSEQ]
-5C1A5CFF 1AFF [Trivial][ILSEQ]
-5C225C00 2200 [Trivial]
-5C225C08 2208 [Trivial]
-5C225C09 2209 [Trivial]
-5C225C0A 220A [Trivial]
-5C225C0D 220D [Trivial]
-5C225C1A 221A [Trivial]
-5C225C22 2222 [Trivial]
-5C225C25 225C25 [Regular]
-5C225C27 2227 [Trivial]
-5C225C30 2200 [Regular]
-5C225C3F 223F [Trivial]
-5C225C40 2240 [Trivial]
-5C225C5A 221A [Regular]
-5C225C5C 225C [Regular]
-5C225C5F 225C5F [Regular]
-5C225C61 2261 [Trivial]
-5C225C62 2208 [Regular]
-5C225C6E 220A [Regular]
-5C225C72 220D [Regular]
-5C225C74 2209 [Regular]
-5C225C7E 227E [Trivial]
-5C225C7F 227F [Trivial]
-5C225C80 2280 [Trivial][ILSEQ]
-5C225C81 2281 [Trivial][ILSEQ]
-5C225C9F 229F [Trivial][ILSEQ]
-5C225CA0 22A0 [Trivial][ILSEQ]
-5C225CA1 22A1 [Trivial][ILSEQ]
-5C225CE0 22E0 [Trivial][ILSEQ]
-5C225CEF 22EF [Trivial][ILSEQ]
-5C225CF9 22F9 [Trivial][ILSEQ]
-5C225CFA 22FA [Trivial][ILSEQ]
-5C225CFC 22FC [Trivial][ILSEQ]
-5C225CFD 22FD [Trivial][ILSEQ]
-5C225CFE 22FE [Trivial][ILSEQ]
-5C225CFF 22FF [Trivial][ILSEQ]
-5C255C00 5C2500 [Regular]
-5C255C08 5C2508 [Regular]
-5C255C09 5C2509 [Regular]
-5C255C0A 5C250A [Regular]
-5C255C0D 5C250D [Regular]
-5C255C1A 5C251A [Regular]
-5C255C22 5C2522 [Regular]
-5C255C25 5C255C25 [Preserve][LIKE]
-5C255C27 5C2527 [Regular]
-5C255C30 5C2500 [Regular]
-5C255C3F 5C253F [Regular]
-5C255C40 5C2540 [Regular]
-5C255C5A 5C251A [Regular]
-5C255C5C 5C255C [Regular]
-5C255C5F 5C255C5F [Preserve][LIKE]
-5C255C61 5C2561 [Regular]
-5C255C62 5C2508 [Regular]
-5C255C6E 5C250A [Regular]
-5C255C72 5C250D [Regular]
-5C255C74 5C2509 [Regular]
-5C255C7E 5C257E [Regular]
-5C255C7F 5C257F [Regular]
-5C255C80 5C2580 [Regular][ILSEQ]
-5C255C81 5C2581 [Regular][ILSEQ]
-5C255C9F 5C259F [Regular][ILSEQ]
-5C255CA0 5C25A0 [Regular][ILSEQ]
-5C255CA1 5C25A1 [Regular][ILSEQ]
-5C255CE0 5C25E0 [Regular][ILSEQ]
-5C255CEF 5C25EF [Regular][ILSEQ]
-5C255CF9 5C25F9 [Regular][ILSEQ]
-5C255CFA 5C25FA [Regular][ILSEQ]
-5C255CFC 5C25FC [Regular][ILSEQ]
-5C255CFD 5C25FD [Regular][ILSEQ]
-5C255CFE 5C25FE [Regular][ILSEQ]
-5C255CFF 5C25FF [Regular][ILSEQ]
-5C275C00 2700 [Trivial]
-5C275C08 2708 [Trivial]
-5C275C09 2709 [Trivial]
-5C275C0A 270A [Trivial]
-5C275C0D 270D [Trivial]
-5C275C1A 271A [Trivial]
-5C275C22 2722 [Trivial]
-5C275C25 275C25 [Regular]
-5C275C27 2727 [Trivial]
-5C275C30 2700 [Regular]
-5C275C3F 273F [Trivial]
-5C275C40 2740 [Trivial]
-5C275C5A 271A [Regular]
-5C275C5C 275C [Regular]
-5C275C5F 275C5F [Regular]
-5C275C61 2761 [Trivial]
-5C275C62 2708 [Regular]
-5C275C6E 270A [Regular]
-5C275C72 270D [Regular]
-5C275C74 2709 [Regular]
-5C275C7E 277E [Trivial]
-5C275C7F 277F [Trivial]
-5C275C80 2780 [Trivial][ILSEQ]
-5C275C81 2781 [Trivial][ILSEQ]
-5C275C9F 279F [Trivial][ILSEQ]
-5C275CA0 27A0 [Trivial][ILSEQ]
-5C275CA1 27A1 [Trivial][ILSEQ]
-5C275CE0 27E0 [Trivial][ILSEQ]
-5C275CEF 27EF [Trivial][ILSEQ]
-5C275CF9 27F9 [Trivial][ILSEQ]
-5C275CFA 27FA [Trivial][ILSEQ]
-5C275CFC 27FC [Trivial][ILSEQ]
-5C275CFD 27FD [Trivial][ILSEQ]
-5C275CFE 27FE [Trivial][ILSEQ]
-5C275CFF 27FF [Trivial][ILSEQ]
-5C305C00 0000 [Regular]
-5C305C08 0008 [Regular]
-5C305C09 0009 [Regular]
-5C305C0A 000A [Regular]
-5C305C0D 000D [Regular]
-5C305C1A 001A [Regular]
-5C305C22 0022 [Regular]
-5C305C25 005C25 [Regular]
-5C305C27 0027 [Regular]
-5C305C30 0000 [Regular]
-5C305C3F 003F [Regular]
-5C305C40 0040 [Regular]
-5C305C5A 001A [Regular]
-5C305C5C 005C [Regular]
-5C305C5F 005C5F [Regular]
-5C305C61 0061 [Regular]
-5C305C62 0008 [Regular]
-5C305C6E 000A [Regular]
-5C305C72 000D [Regular]
-5C305C74 0009 [Regular]
-5C305C7E 007E [Regular]
-5C305C7F 007F [Regular]
-5C305C80 0080 [Regular][ILSEQ]
-5C305C81 0081 [Regular][ILSEQ]
-5C305C9F 009F [Regular][ILSEQ]
-5C305CA0 00A0 [Regular][ILSEQ]
-5C305CA1 00A1 [Regular][ILSEQ]
-5C305CE0 00E0 [Regular][ILSEQ]
-5C305CEF 00EF [Regular][ILSEQ]
-5C305CF9 00F9 [Regular][ILSEQ]
-5C305CFA 00FA [Regular][ILSEQ]
-5C305CFC 00FC [Regular][ILSEQ]
-5C305CFD 00FD [Regular][ILSEQ]
-5C305CFE 00FE [Regular][ILSEQ]
-5C305CFF 00FF [Regular][ILSEQ]
-5C3F5C00 3F00 [Trivial]
-5C3F5C08 3F08 [Trivial]
-5C3F5C09 3F09 [Trivial]
-5C3F5C0A 3F0A [Trivial]
-5C3F5C0D 3F0D [Trivial]
-5C3F5C1A 3F1A [Trivial]
-5C3F5C22 3F22 [Trivial]
-5C3F5C25 3F5C25 [Regular]
-5C3F5C27 3F27 [Trivial]
-5C3F5C30 3F00 [Regular]
-5C3F5C3F 3F3F [Trivial]
-5C3F5C40 3F40 [Trivial]
-5C3F5C5A 3F1A [Regular]
-5C3F5C5C 3F5C [Regular]
-5C3F5C5F 3F5C5F [Regular]
-5C3F5C61 3F61 [Trivial]
-5C3F5C62 3F08 [Regular]
-5C3F5C6E 3F0A [Regular]
-5C3F5C72 3F0D [Regular]
-5C3F5C74 3F09 [Regular]
-5C3F5C7E 3F7E [Trivial]
-5C3F5C7F 3F7F [Trivial]
-5C3F5C80 3F80 [Trivial][ILSEQ]
-5C3F5C81 3F81 [Trivial][ILSEQ]
-5C3F5C9F 3F9F [Trivial][ILSEQ]
-5C3F5CA0 3FA0 [Trivial][ILSEQ]
-5C3F5CA1 3FA1 [Trivial][ILSEQ]
-5C3F5CE0 3FE0 [Trivial][ILSEQ]
-5C3F5CEF 3FEF [Trivial][ILSEQ]
-5C3F5CF9 3FF9 [Trivial][ILSEQ]
-5C3F5CFA 3FFA [Trivial][ILSEQ]
-5C3F5CFC 3FFC [Trivial][ILSEQ]
-5C3F5CFD 3FFD [Trivial][ILSEQ]
-5C3F5CFE 3FFE [Trivial][ILSEQ]
-5C3F5CFF 3FFF [Trivial][ILSEQ]
-5C405C00 4000 [Trivial]
-5C405C08 4008 [Trivial]
-5C405C09 4009 [Trivial]
-5C405C0A 400A [Trivial]
-5C405C0D 400D [Trivial]
-5C405C1A 401A [Trivial]
-5C405C22 4022 [Trivial]
-5C405C25 405C25 [Regular]
-5C405C27 4027 [Trivial]
-5C405C30 4000 [Regular]
-5C405C3F 403F [Trivial]
-5C405C40 4040 [Trivial]
-5C405C5A 401A [Regular]
-5C405C5C 405C [Regular]
-5C405C5F 405C5F [Regular]
-5C405C61 4061 [Trivial]
-5C405C62 4008 [Regular]
-5C405C6E 400A [Regular]
-5C405C72 400D [Regular]
-5C405C74 4009 [Regular]
-5C405C7E 407E [Trivial]
-5C405C7F 407F [Trivial]
-5C405C80 4080 [Trivial][ILSEQ]
-5C405C81 4081 [Trivial][ILSEQ]
-5C405C9F 409F [Trivial][ILSEQ]
-5C405CA0 40A0 [Trivial][ILSEQ]
-5C405CA1 40A1 [Trivial][ILSEQ]
-5C405CE0 40E0 [Trivial][ILSEQ]
-5C405CEF 40EF [Trivial][ILSEQ]
-5C405CF9 40F9 [Trivial][ILSEQ]
-5C405CFA 40FA [Trivial][ILSEQ]
-5C405CFC 40FC [Trivial][ILSEQ]
-5C405CFD 40FD [Trivial][ILSEQ]
-5C405CFE 40FE [Trivial][ILSEQ]
-5C405CFF 40FF [Trivial][ILSEQ]
-5C5A5C00 1A00 [Regular]
-5C5A5C08 1A08 [Regular]
-5C5A5C09 1A09 [Regular]
-5C5A5C0A 1A0A [Regular]
-5C5A5C0D 1A0D [Regular]
-5C5A5C1A 1A1A [Regular]
-5C5A5C22 1A22 [Regular]
-5C5A5C25 1A5C25 [Regular]
-5C5A5C27 1A27 [Regular]
-5C5A5C30 1A00 [Regular]
-5C5A5C3F 1A3F [Regular]
-5C5A5C40 1A40 [Regular]
-5C5A5C5A 1A1A [Regular]
-5C5A5C5C 1A5C [Regular]
-5C5A5C5F 1A5C5F [Regular]
-5C5A5C61 1A61 [Regular]
-5C5A5C62 1A08 [Regular]
-5C5A5C6E 1A0A [Regular]
-5C5A5C72 1A0D [Regular]
-5C5A5C74 1A09 [Regular]
-5C5A5C7E 1A7E [Regular]
-5C5A5C7F 1A7F [Regular]
-5C5A5C80 1A80 [Regular][ILSEQ]
-5C5A5C81 1A81 [Regular][ILSEQ]
-5C5A5C9F 1A9F [Regular][ILSEQ]
-5C5A5CA0 1AA0 [Regular][ILSEQ]
-5C5A5CA1 1AA1 [Regular][ILSEQ]
-5C5A5CE0 1AE0 [Regular][ILSEQ]
-5C5A5CEF 1AEF [Regular][ILSEQ]
-5C5A5CF9 1AF9 [Regular][ILSEQ]
-5C5A5CFA 1AFA [Regular][ILSEQ]
-5C5A5CFC 1AFC [Regular][ILSEQ]
-5C5A5CFD 1AFD [Regular][ILSEQ]
-5C5A5CFE 1AFE [Regular][ILSEQ]
-5C5A5CFF 1AFF [Regular][ILSEQ]
-5C5C5C00 5C00 [Regular]
-5C5C5C08 5C08 [Regular]
-5C5C5C09 5C09 [Regular]
-5C5C5C0A 5C0A [Regular]
-5C5C5C0D 5C0D [Regular]
-5C5C5C1A 5C1A [Regular]
-5C5C5C22 5C22 [Regular]
-5C5C5C25 5C5C25 [Regular]
-5C5C5C27 5C27 [Regular]
-5C5C5C30 5C00 [Regular]
-5C5C5C3F 5C3F [Regular]
-5C5C5C40 5C40 [Regular]
-5C5C5C5A 5C1A [Regular]
-5C5C5C5C 5C5C [Regular]
-5C5C5C5F 5C5C5F [Regular]
-5C5C5C61 5C61 [Regular]
-5C5C5C62 5C08 [Regular]
-5C5C5C6E 5C0A [Regular]
-5C5C5C72 5C0D [Regular]
-5C5C5C74 5C09 [Regular]
-5C5C5C7E 5C7E [Regular]
-5C5C5C7F 5C7F [Regular]
-5C5C5C80 5C80 [Regular][ILSEQ]
-5C5C5C81 5C81 [Regular][ILSEQ]
-5C5C5C9F 5C9F [Regular][ILSEQ]
-5C5C5CA0 5CA0 [Regular][ILSEQ]
-5C5C5CA1 5CA1 [Regular][ILSEQ]
-5C5C5CE0 5CE0 [Regular][ILSEQ]
-5C5C5CEF 5CEF [Regular][ILSEQ]
-5C5C5CF9 5CF9 [Regular][ILSEQ]
-5C5C5CFA 5CFA [Regular][ILSEQ]
-5C5C5CFC 5CFC [Regular][ILSEQ]
-5C5C5CFD 5CFD [Regular][ILSEQ]
-5C5C5CFE 5CFE [Regular][ILSEQ]
-5C5C5CFF 5CFF [Regular][ILSEQ]
-5C5F5C00 5C5F00 [Regular]
-5C5F5C08 5C5F08 [Regular]
-5C5F5C09 5C5F09 [Regular]
-5C5F5C0A 5C5F0A [Regular]
-5C5F5C0D 5C5F0D [Regular]
-5C5F5C1A 5C5F1A [Regular]
-5C5F5C22 5C5F22 [Regular]
-5C5F5C25 5C5F5C25 [Preserve][LIKE]
-5C5F5C27 5C5F27 [Regular]
-5C5F5C30 5C5F00 [Regular]
-5C5F5C3F 5C5F3F [Regular]
-5C5F5C40 5C5F40 [Regular]
-5C5F5C5A 5C5F1A [Regular]
-5C5F5C5C 5C5F5C [Regular]
-5C5F5C5F 5C5F5C5F [Preserve][LIKE]
-5C5F5C61 5C5F61 [Regular]
-5C5F5C62 5C5F08 [Regular]
-5C5F5C6E 5C5F0A [Regular]
-5C5F5C72 5C5F0D [Regular]
-5C5F5C74 5C5F09 [Regular]
-5C5F5C7E 5C5F7E [Regular]
-5C5F5C7F 5C5F7F [Regular]
-5C5F5C80 5C5F80 [Regular][ILSEQ]
-5C5F5C81 5C5F81 [Regular][ILSEQ]
-5C5F5C9F 5C5F9F [Regular][ILSEQ]
-5C5F5CA0 5C5FA0 [Regular][ILSEQ]
-5C5F5CA1 5C5FA1 [Regular][ILSEQ]
-5C5F5CE0 5C5FE0 [Regular][ILSEQ]
-5C5F5CEF 5C5FEF [Regular][ILSEQ]
-5C5F5CF9 5C5FF9 [Regular][ILSEQ]
-5C5F5CFA 5C5FFA [Regular][ILSEQ]
-5C5F5CFC 5C5FFC [Regular][ILSEQ]
-5C5F5CFD 5C5FFD [Regular][ILSEQ]
-5C5F5CFE 5C5FFE [Regular][ILSEQ]
-5C5F5CFF 5C5FFF [Regular][ILSEQ]
-5C615C00 6100 [Trivial]
-5C615C08 6108 [Trivial]
-5C615C09 6109 [Trivial]
-5C615C0A 610A [Trivial]
-5C615C0D 610D [Trivial]
-5C615C1A 611A [Trivial]
-5C615C22 6122 [Trivial]
-5C615C25 615C25 [Regular]
-5C615C27 6127 [Trivial]
-5C615C30 6100 [Regular]
-5C615C3F 613F [Trivial]
-5C615C40 6140 [Trivial]
-5C615C5A 611A [Regular]
-5C615C5C 615C [Regular]
-5C615C5F 615C5F [Regular]
-5C615C61 6161 [Trivial]
-5C615C62 6108 [Regular]
-5C615C6E 610A [Regular]
-5C615C72 610D [Regular]
-5C615C74 6109 [Regular]
-5C615C7E 617E [Trivial]
-5C615C7F 617F [Trivial]
-5C615C80 6180 [Trivial][ILSEQ]
-5C615C81 6181 [Trivial][ILSEQ]
-5C615C9F 619F [Trivial][ILSEQ]
-5C615CA0 61A0 [Trivial][ILSEQ]
-5C615CA1 61A1 [Trivial][ILSEQ]
-5C615CE0 61E0 [Trivial][ILSEQ]
-5C615CEF 61EF [Trivial][ILSEQ]
-5C615CF9 61F9 [Trivial][ILSEQ]
-5C615CFA 61FA [Trivial][ILSEQ]
-5C615CFC 61FC [Trivial][ILSEQ]
-5C615CFD 61FD [Trivial][ILSEQ]
-5C615CFE 61FE [Trivial][ILSEQ]
-5C615CFF 61FF [Trivial][ILSEQ]
-5C625C00 0800 [Regular]
-5C625C08 0808 [Regular]
-5C625C09 0809 [Regular]
-5C625C0A 080A [Regular]
-5C625C0D 080D [Regular]
-5C625C1A 081A [Regular]
-5C625C22 0822 [Regular]
-5C625C25 085C25 [Regular]
-5C625C27 0827 [Regular]
-5C625C30 0800 [Regular]
-5C625C3F 083F [Regular]
-5C625C40 0840 [Regular]
-5C625C5A 081A [Regular]
-5C625C5C 085C [Regular]
-5C625C5F 085C5F [Regular]
-5C625C61 0861 [Regular]
-5C625C62 0808 [Regular]
-5C625C6E 080A [Regular]
-5C625C72 080D [Regular]
-5C625C74 0809 [Regular]
-5C625C7E 087E [Regular]
-5C625C7F 087F [Regular]
-5C625C80 0880 [Regular][ILSEQ]
-5C625C81 0881 [Regular][ILSEQ]
-5C625C9F 089F [Regular][ILSEQ]
-5C625CA0 08A0 [Regular][ILSEQ]
-5C625CA1 08A1 [Regular][ILSEQ]
-5C625CE0 08E0 [Regular][ILSEQ]
-5C625CEF 08EF [Regular][ILSEQ]
-5C625CF9 08F9 [Regular][ILSEQ]
-5C625CFA 08FA [Regular][ILSEQ]
-5C625CFC 08FC [Regular][ILSEQ]
-5C625CFD 08FD [Regular][ILSEQ]
-5C625CFE 08FE [Regular][ILSEQ]
-5C625CFF 08FF [Regular][ILSEQ]
-5C6E5C00 0A00 [Regular]
-5C6E5C08 0A08 [Regular]
-5C6E5C09 0A09 [Regular]
-5C6E5C0A 0A0A [Regular]
-5C6E5C0D 0A0D [Regular]
-5C6E5C1A 0A1A [Regular]
-5C6E5C22 0A22 [Regular]
-5C6E5C25 0A5C25 [Regular]
-5C6E5C27 0A27 [Regular]
-5C6E5C30 0A00 [Regular]
-5C6E5C3F 0A3F [Regular]
-5C6E5C40 0A40 [Regular]
-5C6E5C5A 0A1A [Regular]
-5C6E5C5C 0A5C [Regular]
-5C6E5C5F 0A5C5F [Regular]
-5C6E5C61 0A61 [Regular]
-5C6E5C62 0A08 [Regular]
-5C6E5C6E 0A0A [Regular]
-5C6E5C72 0A0D [Regular]
-5C6E5C74 0A09 [Regular]
-5C6E5C7E 0A7E [Regular]
-5C6E5C7F 0A7F [Regular]
-5C6E5C80 0A80 [Regular][ILSEQ]
-5C6E5C81 0A81 [Regular][ILSEQ]
-5C6E5C9F 0A9F [Regular][ILSEQ]
-5C6E5CA0 0AA0 [Regular][ILSEQ]
-5C6E5CA1 0AA1 [Regular][ILSEQ]
-5C6E5CE0 0AE0 [Regular][ILSEQ]
-5C6E5CEF 0AEF [Regular][ILSEQ]
-5C6E5CF9 0AF9 [Regular][ILSEQ]
-5C6E5CFA 0AFA [Regular][ILSEQ]
-5C6E5CFC 0AFC [Regular][ILSEQ]
-5C6E5CFD 0AFD [Regular][ILSEQ]
-5C6E5CFE 0AFE [Regular][ILSEQ]
-5C6E5CFF 0AFF [Regular][ILSEQ]
-5C725C00 0D00 [Regular]
-5C725C08 0D08 [Regular]
-5C725C09 0D09 [Regular]
-5C725C0A 0D0A [Regular]
-5C725C0D 0D0D [Regular]
-5C725C1A 0D1A [Regular]
-5C725C22 0D22 [Regular]
-5C725C25 0D5C25 [Regular]
-5C725C27 0D27 [Regular]
-5C725C30 0D00 [Regular]
-5C725C3F 0D3F [Regular]
-5C725C40 0D40 [Regular]
-5C725C5A 0D1A [Regular]
-5C725C5C 0D5C [Regular]
-5C725C5F 0D5C5F [Regular]
-5C725C61 0D61 [Regular]
-5C725C62 0D08 [Regular]
-5C725C6E 0D0A [Regular]
-5C725C72 0D0D [Regular]
-5C725C74 0D09 [Regular]
-5C725C7E 0D7E [Regular]
-5C725C7F 0D7F [Regular]
-5C725C80 0D80 [Regular][ILSEQ]
-5C725C81 0D81 [Regular][ILSEQ]
-5C725C9F 0D9F [Regular][ILSEQ]
-5C725CA0 0DA0 [Regular][ILSEQ]
-5C725CA1 0DA1 [Regular][ILSEQ]
-5C725CE0 0DE0 [Regular][ILSEQ]
-5C725CEF 0DEF [Regular][ILSEQ]
-5C725CF9 0DF9 [Regular][ILSEQ]
-5C725CFA 0DFA [Regular][ILSEQ]
-5C725CFC 0DFC [Regular][ILSEQ]
-5C725CFD 0DFD [Regular][ILSEQ]
-5C725CFE 0DFE [Regular][ILSEQ]
-5C725CFF 0DFF [Regular][ILSEQ]
-5C745C00 0900 [Regular]
-5C745C08 0908 [Regular]
-5C745C09 0909 [Regular]
-5C745C0A 090A [Regular]
-5C745C0D 090D [Regular]
-5C745C1A 091A [Regular]
-5C745C22 0922 [Regular]
-5C745C25 095C25 [Regular]
-5C745C27 0927 [Regular]
-5C745C30 0900 [Regular]
-5C745C3F 093F [Regular]
-5C745C40 0940 [Regular]
-5C745C5A 091A [Regular]
-5C745C5C 095C [Regular]
-5C745C5F 095C5F [Regular]
-5C745C61 0961 [Regular]
-5C745C62 0908 [Regular]
-5C745C6E 090A [Regular]
-5C745C72 090D [Regular]
-5C745C74 0909 [Regular]
-5C745C7E 097E [Regular]
-5C745C7F 097F [Regular]
-5C745C80 0980 [Regular][ILSEQ]
-5C745C81 0981 [Regular][ILSEQ]
-5C745C9F 099F [Regular][ILSEQ]
-5C745CA0 09A0 [Regular][ILSEQ]
-5C745CA1 09A1 [Regular][ILSEQ]
-5C745CE0 09E0 [Regular][ILSEQ]
-5C745CEF 09EF [Regular][ILSEQ]
-5C745CF9 09F9 [Regular][ILSEQ]
-5C745CFA 09FA [Regular][ILSEQ]
-5C745CFC 09FC [Regular][ILSEQ]
-5C745CFD 09FD [Regular][ILSEQ]
-5C745CFE 09FE [Regular][ILSEQ]
-5C745CFF 09FF [Regular][ILSEQ]
-5C7E5C00 7E00 [Trivial]
-5C7E5C08 7E08 [Trivial]
-5C7E5C09 7E09 [Trivial]
-5C7E5C0A 7E0A [Trivial]
-5C7E5C0D 7E0D [Trivial]
-5C7E5C1A 7E1A [Trivial]
-5C7E5C22 7E22 [Trivial]
-5C7E5C25 7E5C25 [Regular]
-5C7E5C27 7E27 [Trivial]
-5C7E5C30 7E00 [Regular]
-5C7E5C3F 7E3F [Trivial]
-5C7E5C40 7E40 [Trivial]
-5C7E5C5A 7E1A [Regular]
-5C7E5C5C 7E5C [Regular]
-5C7E5C5F 7E5C5F [Regular]
-5C7E5C61 7E61 [Trivial]
-5C7E5C62 7E08 [Regular]
-5C7E5C6E 7E0A [Regular]
-5C7E5C72 7E0D [Regular]
-5C7E5C74 7E09 [Regular]
-5C7E5C7E 7E7E [Trivial]
-5C7E5C7F 7E7F [Trivial]
-5C7E5C80 7E80 [Trivial][ILSEQ]
-5C7E5C81 7E81 [Trivial][ILSEQ]
-5C7E5C9F 7E9F [Trivial][ILSEQ]
-5C7E5CA0 7EA0 [Trivial][ILSEQ]
-5C7E5CA1 7EA1 [Trivial][ILSEQ]
-5C7E5CE0 7EE0 [Trivial][ILSEQ]
-5C7E5CEF 7EEF [Trivial][ILSEQ]
-5C7E5CF9 7EF9 [Trivial][ILSEQ]
-5C7E5CFA 7EFA [Trivial][ILSEQ]
-5C7E5CFC 7EFC [Trivial][ILSEQ]
-5C7E5CFD 7EFD [Trivial][ILSEQ]
-5C7E5CFE 7EFE [Trivial][ILSEQ]
-5C7E5CFF 7EFF [Trivial][ILSEQ]
-5C7F5C00 7F00 [Trivial]
-5C7F5C08 7F08 [Trivial]
-5C7F5C09 7F09 [Trivial]
-5C7F5C0A 7F0A [Trivial]
-5C7F5C0D 7F0D [Trivial]
-5C7F5C1A 7F1A [Trivial]
-5C7F5C22 7F22 [Trivial]
-5C7F5C25 7F5C25 [Regular]
-5C7F5C27 7F27 [Trivial]
-5C7F5C30 7F00 [Regular]
-5C7F5C3F 7F3F [Trivial]
-5C7F5C40 7F40 [Trivial]
-5C7F5C5A 7F1A [Regular]
-5C7F5C5C 7F5C [Regular]
-5C7F5C5F 7F5C5F [Regular]
-5C7F5C61 7F61 [Trivial]
-5C7F5C62 7F08 [Regular]
-5C7F5C6E 7F0A [Regular]
-5C7F5C72 7F0D [Regular]
-5C7F5C74 7F09 [Regular]
-5C7F5C7E 7F7E [Trivial]
-5C7F5C7F 7F7F [Trivial]
-5C7F5C80 7F80 [Trivial][ILSEQ]
-5C7F5C81 7F81 [Trivial][ILSEQ]
-5C7F5C9F 7F9F [Trivial][ILSEQ]
-5C7F5CA0 7FA0 [Trivial][ILSEQ]
-5C7F5CA1 7FA1 [Trivial][ILSEQ]
-5C7F5CE0 7FE0 [Trivial][ILSEQ]
-5C7F5CEF 7FEF [Trivial][ILSEQ]
-5C7F5CF9 7FF9 [Trivial][ILSEQ]
-5C7F5CFA 7FFA [Trivial][ILSEQ]
-5C7F5CFC 7FFC [Trivial][ILSEQ]
-5C7F5CFD 7FFD [Trivial][ILSEQ]
-5C7F5CFE 7FFE [Trivial][ILSEQ]
-5C7F5CFF 7FFF [Trivial][ILSEQ]
-5C805C00 8000 [Trivial][ILSEQ]
-5C805C08 8008 [Trivial][ILSEQ]
-5C805C09 8009 [Trivial][ILSEQ]
-5C805C0A 800A [Trivial][ILSEQ]
-5C805C0D 800D [Trivial][ILSEQ]
-5C805C1A 801A [Trivial][ILSEQ]
-5C805C22 8022 [Trivial][ILSEQ]
-5C805C25 805C25 [Regular][ILSEQ]
-5C805C27 8027 [Trivial][ILSEQ]
-5C805C30 8000 [Regular][ILSEQ]
-5C805C3F 803F [Trivial][ILSEQ]
-5C805C40 8040 [Trivial][ILSEQ]
-5C805C5A 801A [Regular][ILSEQ]
-5C805C5C 805C [Regular][ILSEQ]
-5C805C5F 805C5F [Regular][ILSEQ]
-5C805C61 8061 [Trivial][ILSEQ]
-5C805C62 8008 [Regular][ILSEQ]
-5C805C6E 800A [Regular][ILSEQ]
-5C805C72 800D [Regular][ILSEQ]
-5C805C74 8009 [Regular][ILSEQ]
-5C805C7E 807E [Trivial][ILSEQ]
-5C805C7F 807F [Trivial][ILSEQ]
-5C805C80 8080 [Trivial][ILSEQ]
-5C805C81 8081 [Trivial][ILSEQ]
-5C805C9F 809F [Trivial][ILSEQ]
-5C805CA0 80A0 [Trivial][ILSEQ]
-5C805CA1 80A1 [Trivial][ILSEQ]
-5C805CE0 80E0 [Trivial][ILSEQ]
-5C805CEF 80EF [Trivial][ILSEQ]
-5C805CF9 80F9 [Trivial][ILSEQ]
-5C805CFA 80FA [Trivial][ILSEQ]
-5C805CFC 80FC [Trivial][ILSEQ]
-5C805CFD 80FD [Trivial][ILSEQ]
-5C805CFE 80FE [Trivial][ILSEQ]
-5C805CFF 80FF [Trivial][ILSEQ]
-5C815C00 8100 [Trivial][BROKE]
-5C815C08 8108 [Trivial][BROKE]
-5C815C09 8109 [Trivial][BROKE]
-5C815C0A 810A [Trivial][BROKE]
-5C815C0D 810D [Trivial][BROKE]
-5C815C1A 811A [Trivial][BROKE]
-5C815C22 8122 [Trivial][BROKE]
-5C815C25 815C25 [Regular]
-5C815C27 8127 [Trivial][BROKE]
-5C815C30 8100 [Regular][BROKE]
-5C815C3F 813F [Trivial][BROKE]
-5C815C40 8140 [Trivial][USER]
-5C815C5A 811A [Regular][BROKE]
-5C815C5C 815C [Regular][USER]
-5C815C5F 815C5F [Regular]
-5C815C61 8161 [Trivial][USER]
-5C815C62 8108 [Regular][BROKE][USER]
-5C815C6E 810A [Regular][BROKE]
-5C815C72 810D [Regular][BROKE]
-5C815C74 8109 [Regular][BROKE]
-5C815C7E 817E [Trivial][USER]
-5C815C7F 817F [Trivial][BROKE]
-5C815C80 8180 [Trivial][FIXED][USER]
-5C815C81 8181 [Trivial][FIXED][USER]
-5C815C9F 819F [Trivial][FIXED][USER]
-5C815CA0 81A0 [Trivial][FIXED][USER]
-5C815CA1 81A1 [Trivial][FIXED][USER]
-5C815CE0 81E0 [Trivial][FIXED][USER]
-5C815CEF 81EF [Trivial][FIXED][USER]
-5C815CF9 81F9 [Trivial][FIXED][USER]
-5C815CFA 81FA [Trivial][FIXED][USER]
-5C815CFC 81FC [Trivial][FIXED][USER]
-5C815CFD 81FD [Trivial][FIXED][USER]
-5C815CFE 81FE [Trivial][FIXED][USER]
-5C815CFF 81FF [Trivial][ILSEQ]
-5C9F5C00 9F00 [Trivial][BROKE]
-5C9F5C08 9F08 [Trivial][BROKE]
-5C9F5C09 9F09 [Trivial][BROKE]
-5C9F5C0A 9F0A [Trivial][BROKE]
-5C9F5C0D 9F0D [Trivial][BROKE]
-5C9F5C1A 9F1A [Trivial][BROKE]
-5C9F5C22 9F22 [Trivial][BROKE]
-5C9F5C25 9F5C25 [Regular]
-5C9F5C27 9F27 [Trivial][BROKE]
-5C9F5C30 9F00 [Regular][BROKE]
-5C9F5C3F 9F3F [Trivial][BROKE]
-5C9F5C40 9F40 [Trivial][USER]
-5C9F5C5A 9F1A [Regular][BROKE]
-5C9F5C5C 9F5C [Regular][USER]
-5C9F5C5F 9F5C5F [Regular]
-5C9F5C61 9F61 [Trivial][USER]
-5C9F5C62 9F08 [Regular][BROKE][USER]
-5C9F5C6E 9F0A [Regular][BROKE]
-5C9F5C72 9F0D [Regular][BROKE]
-5C9F5C74 9F09 [Regular][BROKE]
-5C9F5C7E 9F7E [Trivial][USER]
-5C9F5C7F 9F7F [Trivial][BROKE]
-5C9F5C80 9F80 [Trivial][FIXED][USER]
-5C9F5C81 9F81 [Trivial][FIXED][USER]
-5C9F5C9F 9F9F [Trivial][FIXED][USER]
-5C9F5CA0 9FA0 [Trivial][FIXED][USER]
-5C9F5CA1 9FA1 [Trivial][FIXED][USER]
-5C9F5CE0 9FE0 [Trivial][FIXED][USER]
-5C9F5CEF 9FEF [Trivial][FIXED][USER]
-5C9F5CF9 9FF9 [Trivial][FIXED][USER]
-5C9F5CFA 9FFA [Trivial][FIXED][USER]
-5C9F5CFC 9FFC [Trivial][FIXED][USER]
-5C9F5CFD 9FFD [Trivial][FIXED][USER]
-5C9F5CFE 9FFE [Trivial][FIXED][USER]
-5C9F5CFF 9FFF [Trivial][ILSEQ]
-5CA05C00 A000 [Trivial][BROKE]
-5CA05C08 A008 [Trivial][BROKE]
-5CA05C09 A009 [Trivial][BROKE]
-5CA05C0A A00A [Trivial][BROKE]
-5CA05C0D A00D [Trivial][BROKE]
-5CA05C1A A01A [Trivial][BROKE]
-5CA05C22 A022 [Trivial][BROKE]
-5CA05C25 A05C25 [Regular]
-5CA05C27 A027 [Trivial][BROKE]
-5CA05C30 A000 [Regular][BROKE]
-5CA05C3F A03F [Trivial][BROKE]
-5CA05C40 A040 [Trivial][USER]
-5CA05C5A A01A [Regular][BROKE]
-5CA05C5C A05C [Regular][USER]
-5CA05C5F A05C5F [Regular]
-5CA05C61 A061 [Trivial][USER]
-5CA05C62 A008 [Regular][BROKE][USER]
-5CA05C6E A00A [Regular][BROKE]
-5CA05C72 A00D [Regular][BROKE]
-5CA05C74 A009 [Regular][BROKE]
-5CA05C7E A07E [Trivial][USER]
-5CA05C7F A07F [Trivial][BROKE]
-5CA05C80 A080 [Trivial][FIXED][USER]
-5CA05C81 A081 [Trivial][FIXED][USER]
-5CA05C9F A09F [Trivial][FIXED][USER]
-5CA05CA0 A0A0 [Trivial][FIXED][USER]
-5CA05CA1 A0A1 [Trivial][FIXED][USER]
-5CA05CE0 A0E0 [Trivial][FIXED][USER]
-5CA05CEF A0EF [Trivial][FIXED][USER]
-5CA05CF9 A0F9 [Trivial][FIXED][USER]
-5CA05CFA A0FA [Trivial][FIXED][USER]
-5CA05CFC A0FC [Trivial][FIXED][USER]
-5CA05CFD A0FD [Trivial][FIXED][USER]
-5CA05CFE A0FE [Trivial][FIXED][USER]
-5CA05CFF A0FF [Trivial][ILSEQ]
-5CA15C00 A100 [Trivial][BROKE]
-5CA15C08 A108 [Trivial][BROKE]
-5CA15C09 A109 [Trivial][BROKE]
-5CA15C0A A10A [Trivial][BROKE]
-5CA15C0D A10D [Trivial][BROKE]
-5CA15C1A A11A [Trivial][BROKE]
-5CA15C22 A122 [Trivial][BROKE]
-5CA15C25 A15C25 [Regular]
-5CA15C27 A127 [Trivial][BROKE]
-5CA15C30 A100 [Regular][BROKE]
-5CA15C3F A13F [Trivial][BROKE]
-5CA15C40 A140 [Trivial][USER]
-5CA15C5A A11A [Regular][BROKE]
-5CA15C5C A15C [Regular][USER]
-5CA15C5F A15C5F [Regular]
-5CA15C61 A161 [Trivial][USER]
-5CA15C62 A108 [Regular][BROKE][USER]
-5CA15C6E A10A [Regular][BROKE]
-5CA15C72 A10D [Regular][BROKE]
-5CA15C74 A109 [Regular][BROKE]
-5CA15C7E A17E [Trivial][USER]
-5CA15C7F A17F [Trivial][BROKE]
-5CA15C80 A180 [Trivial][FIXED][USER]
-5CA15C81 A181 [Trivial][FIXED][USER]
-5CA15C9F A19F [Trivial][FIXED][USER]
-5CA15CA0 A1A0 [Trivial][FIXED][USER]
-5CA15CA1 A1A1 [Trivial][FIXED][USER]
-5CA15CE0 A1E0 [Trivial][FIXED][USER]
-5CA15CEF A1EF [Trivial][FIXED][USER]
-5CA15CF9 A1F9 [Trivial][FIXED][USER]
-5CA15CFA A1FA [Trivial][FIXED][USER]
-5CA15CFC A1FC [Trivial][FIXED][USER]
-5CA15CFD A1FD [Trivial][FIXED][USER]
-5CA15CFE A1FE [Trivial][FIXED][USER]
-5CA15CFF A1FF [Trivial][ILSEQ]
-5CE05C00 E000 [Trivial][BROKE]
-5CE05C08 E008 [Trivial][BROKE]
-5CE05C09 E009 [Trivial][BROKE]
-5CE05C0A E00A [Trivial][BROKE]
-5CE05C0D E00D [Trivial][BROKE]
-5CE05C1A E01A [Trivial][BROKE]
-5CE05C22 E022 [Trivial][BROKE]
-5CE05C25 E05C25 [Regular]
-5CE05C27 E027 [Trivial][BROKE]
-5CE05C30 E000 [Regular][BROKE]
-5CE05C3F E03F [Trivial][BROKE]
-5CE05C40 E040 [Trivial][USER]
-5CE05C5A E01A [Regular][BROKE]
-5CE05C5C E05C [Regular][USER]
-5CE05C5F E05C5F [Regular]
-5CE05C61 E061 [Trivial][USER]
-5CE05C62 E008 [Regular][BROKE][USER]
-5CE05C6E E00A [Regular][BROKE]
-5CE05C72 E00D [Regular][BROKE]
-5CE05C74 E009 [Regular][BROKE]
-5CE05C7E E07E [Trivial][USER]
-5CE05C7F E07F [Trivial][BROKE]
-5CE05C80 E080 [Trivial][FIXED][USER]
-5CE05C81 E081 [Trivial][FIXED][USER]
-5CE05C9F E09F [Trivial][FIXED][USER]
-5CE05CA0 E0A0 [Trivial][FIXED][USER]
-5CE05CA1 E0A1 [Trivial][FIXED][USER]
-5CE05CE0 E0E0 [Trivial][FIXED][USER]
-5CE05CEF E0EF [Trivial][FIXED][USER]
-5CE05CF9 E0F9 [Trivial][FIXED][USER]
-5CE05CFA E0FA [Trivial][FIXED][USER]
-5CE05CFC E0FC [Trivial][FIXED][USER]
-5CE05CFD E0FD [Trivial][FIXED][USER]
-5CE05CFE E0FE [Trivial][FIXED][USER]
-5CE05CFF E0FF [Trivial][ILSEQ]
-5CEF5C00 EF00 [Trivial][BROKE]
-5CEF5C08 EF08 [Trivial][BROKE]
-5CEF5C09 EF09 [Trivial][BROKE]
-5CEF5C0A EF0A [Trivial][BROKE]
-5CEF5C0D EF0D [Trivial][BROKE]
-5CEF5C1A EF1A [Trivial][BROKE]
-5CEF5C22 EF22 [Trivial][BROKE]
-5CEF5C25 EF5C25 [Regular]
-5CEF5C27 EF27 [Trivial][BROKE]
-5CEF5C30 EF00 [Regular][BROKE]
-5CEF5C3F EF3F [Trivial][BROKE]
-5CEF5C40 EF40 [Trivial][USER]
-5CEF5C5A EF1A [Regular][BROKE]
-5CEF5C5C EF5C [Regular][USER]
-5CEF5C5F EF5C5F [Regular]
-5CEF5C61 EF61 [Trivial][USER]
-5CEF5C62 EF08 [Regular][BROKE][USER]
-5CEF5C6E EF0A [Regular][BROKE]
-5CEF5C72 EF0D [Regular][BROKE]
-5CEF5C74 EF09 [Regular][BROKE]
-5CEF5C7E EF7E [Trivial][USER]
-5CEF5C7F EF7F [Trivial][BROKE]
-5CEF5C80 EF80 [Trivial][FIXED][USER]
-5CEF5C81 EF81 [Trivial][FIXED][USER]
-5CEF5C9F EF9F [Trivial][FIXED][USER]
-5CEF5CA0 EFA0 [Trivial][FIXED][USER]
-5CEF5CA1 EFA1 [Trivial][FIXED][USER]
-5CEF5CE0 EFE0 [Trivial][FIXED][USER]
-5CEF5CEF EFEF [Trivial][FIXED][USER]
-5CEF5CF9 EFF9 [Trivial][FIXED][USER]
-5CEF5CFA EFFA [Trivial][FIXED][USER]
-5CEF5CFC EFFC [Trivial][FIXED][USER]
-5CEF5CFD EFFD [Trivial][FIXED][USER]
-5CEF5CFE EFFE [Trivial][FIXED][USER]
-5CEF5CFF EFFF [Trivial][ILSEQ]
-5CF95C00 F900 [Trivial][BROKE]
-5CF95C08 F908 [Trivial][BROKE]
-5CF95C09 F909 [Trivial][BROKE]
-5CF95C0A F90A [Trivial][BROKE]
-5CF95C0D F90D [Trivial][BROKE]
-5CF95C1A F91A [Trivial][BROKE]
-5CF95C22 F922 [Trivial][BROKE]
-5CF95C25 F95C25 [Regular]
-5CF95C27 F927 [Trivial][BROKE]
-5CF95C30 F900 [Regular][BROKE]
-5CF95C3F F93F [Trivial][BROKE]
-5CF95C40 F940 [Trivial][USER]
-5CF95C5A F91A [Regular][BROKE]
-5CF95C5C F95C [Regular][USER]
-5CF95C5F F95C5F [Regular]
-5CF95C61 F961 [Trivial][USER]
-5CF95C62 F908 [Regular][BROKE][USER]
-5CF95C6E F90A [Regular][BROKE]
-5CF95C72 F90D [Regular][BROKE]
-5CF95C74 F909 [Regular][BROKE]
-5CF95C7E F97E [Trivial][USER]
-5CF95C7F F97F [Trivial][BROKE]
-5CF95C80 F980 [Trivial][FIXED][USER]
-5CF95C81 F981 [Trivial][FIXED][USER]
-5CF95C9F F99F [Trivial][FIXED][USER]
-5CF95CA0 F9A0 [Trivial][FIXED][USER]
-5CF95CA1 F9A1 [Trivial][FIXED][USER]
-5CF95CE0 F9E0 [Trivial][FIXED][USER]
-5CF95CEF F9EF [Trivial][FIXED][USER]
-5CF95CF9 F9F9 [Trivial][FIXED][USER]
-5CF95CFA F9FA [Trivial][FIXED][USER]
-5CF95CFC F9FC [Trivial][FIXED][USER]
-5CF95CFD F9FD [Trivial][FIXED][USER]
-5CF95CFE F9FE [Trivial][FIXED][USER]
-5CF95CFF F9FF [Trivial][ILSEQ]
-5CFA5C00 FA00 [Trivial][BROKE]
-5CFA5C08 FA08 [Trivial][BROKE]
-5CFA5C09 FA09 [Trivial][BROKE]
-5CFA5C0A FA0A [Trivial][BROKE]
-5CFA5C0D FA0D [Trivial][BROKE]
-5CFA5C1A FA1A [Trivial][BROKE]
-5CFA5C22 FA22 [Trivial][BROKE]
-5CFA5C25 FA5C25 [Regular]
-5CFA5C27 FA27 [Trivial][BROKE]
-5CFA5C30 FA00 [Regular][BROKE]
-5CFA5C3F FA3F [Trivial][BROKE]
-5CFA5C40 FA40 [Trivial][USER]
-5CFA5C5A FA1A [Regular][BROKE]
-5CFA5C5C FA5C [Regular][USER]
-5CFA5C5F FA5C5F [Regular]
-5CFA5C61 FA61 [Trivial][USER]
-5CFA5C62 FA08 [Regular][BROKE][USER]
-5CFA5C6E FA0A [Regular][BROKE]
-5CFA5C72 FA0D [Regular][BROKE]
-5CFA5C74 FA09 [Regular][BROKE]
-5CFA5C7E FA7E [Trivial][USER]
-5CFA5C7F FA7F [Trivial][BROKE]
-5CFA5C80 FA80 [Trivial][FIXED][USER]
-5CFA5C81 FA81 [Trivial][FIXED][USER]
-5CFA5C9F FA9F [Trivial][FIXED][USER]
-5CFA5CA0 FAA0 [Trivial][FIXED][USER]
-5CFA5CA1 FAA1 [Trivial][FIXED][USER]
-5CFA5CE0 FAE0 [Trivial][FIXED][USER]
-5CFA5CEF FAEF [Trivial][FIXED][USER]
-5CFA5CF9 FAF9 [Trivial][FIXED][USER]
-5CFA5CFA FAFA [Trivial][FIXED][USER]
-5CFA5CFC FAFC [Trivial][FIXED][USER]
-5CFA5CFD FAFD [Trivial][FIXED][USER]
-5CFA5CFE FAFE [Trivial][FIXED][USER]
-5CFA5CFF FAFF [Trivial][ILSEQ]
-5CFC5C00 FC00 [Trivial][BROKE]
-5CFC5C08 FC08 [Trivial][BROKE]
-5CFC5C09 FC09 [Trivial][BROKE]
-5CFC5C0A FC0A [Trivial][BROKE]
-5CFC5C0D FC0D [Trivial][BROKE]
-5CFC5C1A FC1A [Trivial][BROKE]
-5CFC5C22 FC22 [Trivial][BROKE]
-5CFC5C25 FC5C25 [Regular]
-5CFC5C27 FC27 [Trivial][BROKE]
-5CFC5C30 FC00 [Regular][BROKE]
-5CFC5C3F FC3F [Trivial][BROKE]
-5CFC5C40 FC40 [Trivial][USER]
-5CFC5C5A FC1A [Regular][BROKE]
-5CFC5C5C FC5C [Regular][USER]
-5CFC5C5F FC5C5F [Regular]
-5CFC5C61 FC61 [Trivial][USER]
-5CFC5C62 FC08 [Regular][BROKE][USER]
-5CFC5C6E FC0A [Regular][BROKE]
-5CFC5C72 FC0D [Regular][BROKE]
-5CFC5C74 FC09 [Regular][BROKE]
-5CFC5C7E FC7E [Trivial][USER]
-5CFC5C7F FC7F [Trivial][BROKE]
-5CFC5C80 FC80 [Trivial][FIXED][USER]
-5CFC5C81 FC81 [Trivial][FIXED][USER]
-5CFC5C9F FC9F [Trivial][FIXED][USER]
-5CFC5CA0 FCA0 [Trivial][FIXED][USER]
-5CFC5CA1 FCA1 [Trivial][FIXED][USER]
-5CFC5CE0 FCE0 [Trivial][FIXED][USER]
-5CFC5CEF FCEF [Trivial][FIXED][USER]
-5CFC5CF9 FCF9 [Trivial][FIXED][USER]
-5CFC5CFA FCFA [Trivial][FIXED][USER]
-5CFC5CFC FCFC [Trivial][FIXED][USER]
-5CFC5CFD FCFD [Trivial][FIXED][USER]
-5CFC5CFE FCFE [Trivial][FIXED][USER]
-5CFC5CFF FCFF [Trivial][ILSEQ]
-5CFD5C00 FD00 [Trivial][BROKE]
-5CFD5C08 FD08 [Trivial][BROKE]
-5CFD5C09 FD09 [Trivial][BROKE]
-5CFD5C0A FD0A [Trivial][BROKE]
-5CFD5C0D FD0D [Trivial][BROKE]
-5CFD5C1A FD1A [Trivial][BROKE]
-5CFD5C22 FD22 [Trivial][BROKE]
-5CFD5C25 FD5C25 [Regular]
-5CFD5C27 FD27 [Trivial][BROKE]
-5CFD5C30 FD00 [Regular][BROKE]
-5CFD5C3F FD3F [Trivial][BROKE]
-5CFD5C40 FD40 [Trivial][USER]
-5CFD5C5A FD1A [Regular][BROKE]
-5CFD5C5C FD5C [Regular][USER]
-5CFD5C5F FD5C5F [Regular]
-5CFD5C61 FD61 [Trivial][USER]
-5CFD5C62 FD08 [Regular][BROKE][USER]
-5CFD5C6E FD0A [Regular][BROKE]
-5CFD5C72 FD0D [Regular][BROKE]
-5CFD5C74 FD09 [Regular][BROKE]
-5CFD5C7E FD7E [Trivial][USER]
-5CFD5C7F FD7F [Trivial][BROKE]
-5CFD5C80 FD80 [Trivial][FIXED][USER]
-5CFD5C81 FD81 [Trivial][FIXED][USER]
-5CFD5C9F FD9F [Trivial][FIXED][USER]
-5CFD5CA0 FDA0 [Trivial][FIXED][USER]
-5CFD5CA1 FDA1 [Trivial][FIXED][USER]
-5CFD5CE0 FDE0 [Trivial][FIXED][USER]
-5CFD5CEF FDEF [Trivial][FIXED][USER]
-5CFD5CF9 FDF9 [Trivial][FIXED][USER]
-5CFD5CFA FDFA [Trivial][FIXED][USER]
-5CFD5CFC FDFC [Trivial][FIXED][USER]
-5CFD5CFD FDFD [Trivial][FIXED][USER]
-5CFD5CFE FDFE [Trivial][FIXED][USER]
-5CFD5CFF FDFF [Trivial][ILSEQ]
-5CFE5C00 FE00 [Trivial][BROKE]
-5CFE5C08 FE08 [Trivial][BROKE]
-5CFE5C09 FE09 [Trivial][BROKE]
-5CFE5C0A FE0A [Trivial][BROKE]
-5CFE5C0D FE0D [Trivial][BROKE]
-5CFE5C1A FE1A [Trivial][BROKE]
-5CFE5C22 FE22 [Trivial][BROKE]
-5CFE5C25 FE5C25 [Regular]
-5CFE5C27 FE27 [Trivial][BROKE]
-5CFE5C30 FE00 [Regular][BROKE]
-5CFE5C3F FE3F [Trivial][BROKE]
-5CFE5C40 FE40 [Trivial][USER]
-5CFE5C5A FE1A [Regular][BROKE]
-5CFE5C5C FE5C [Regular][USER]
-5CFE5C5F FE5C5F [Regular]
-5CFE5C61 FE61 [Trivial][USER]
-5CFE5C62 FE08 [Regular][BROKE][USER]
-5CFE5C6E FE0A [Regular][BROKE]
-5CFE5C72 FE0D [Regular][BROKE]
-5CFE5C74 FE09 [Regular][BROKE]
-5CFE5C7E FE7E [Trivial][USER]
-5CFE5C7F FE7F [Trivial][BROKE]
-5CFE5C80 FE80 [Trivial][FIXED][USER]
-5CFE5C81 FE81 [Trivial][FIXED][USER]
-5CFE5C9F FE9F [Trivial][FIXED][USER]
-5CFE5CA0 FEA0 [Trivial][FIXED][USER]
-5CFE5CA1 FEA1 [Trivial][FIXED][USER]
-5CFE5CE0 FEE0 [Trivial][FIXED][USER]
-5CFE5CEF FEEF [Trivial][FIXED][USER]
-5CFE5CF9 FEF9 [Trivial][FIXED][USER]
-5CFE5CFA FEFA [Trivial][FIXED][USER]
-5CFE5CFC FEFC [Trivial][FIXED][USER]
-5CFE5CFD FEFD [Trivial][FIXED][USER]
-5CFE5CFE FEFE [Trivial][FIXED][USER]
-5CFE5CFF FEFF [Trivial][ILSEQ]
-5CFF5C00 FF00 [Trivial][ILSEQ]
-5CFF5C08 FF08 [Trivial][ILSEQ]
-5CFF5C09 FF09 [Trivial][ILSEQ]
-5CFF5C0A FF0A [Trivial][ILSEQ]
-5CFF5C0D FF0D [Trivial][ILSEQ]
-5CFF5C1A FF1A [Trivial][ILSEQ]
-5CFF5C22 FF22 [Trivial][ILSEQ]
-5CFF5C25 FF5C25 [Regular][ILSEQ]
-5CFF5C27 FF27 [Trivial][ILSEQ]
-5CFF5C30 FF00 [Regular][ILSEQ]
-5CFF5C3F FF3F [Trivial][ILSEQ]
-5CFF5C40 FF40 [Trivial][ILSEQ]
-5CFF5C5A FF1A [Regular][ILSEQ]
-5CFF5C5C FF5C [Regular][ILSEQ]
-5CFF5C5F FF5C5F [Regular][ILSEQ]
-5CFF5C61 FF61 [Trivial][ILSEQ]
-5CFF5C62 FF08 [Regular][ILSEQ]
-5CFF5C6E FF0A [Regular][ILSEQ]
-5CFF5C72 FF0D [Regular][ILSEQ]
-5CFF5C74 FF09 [Regular][ILSEQ]
-5CFF5C7E FF7E [Trivial][ILSEQ]
-5CFF5C7F FF7F [Trivial][ILSEQ]
-5CFF5C80 FF80 [Trivial][ILSEQ]
-5CFF5C81 FF81 [Trivial][ILSEQ]
-5CFF5C9F FF9F [Trivial][ILSEQ]
-5CFF5CA0 FFA0 [Trivial][ILSEQ]
-5CFF5CA1 FFA1 [Trivial][ILSEQ]
-5CFF5CE0 FFE0 [Trivial][ILSEQ]
-5CFF5CEF FFEF [Trivial][ILSEQ]
-5CFF5CF9 FFF9 [Trivial][ILSEQ]
-5CFF5CFA FFFA [Trivial][ILSEQ]
-5CFF5CFC FFFC [Trivial][ILSEQ]
-5CFF5CFD FFFD [Trivial][ILSEQ]
-5CFF5CFE FFFE [Trivial][ILSEQ]
-5CFF5CFF FFFF [Trivial][ILSEQ]
-DROP TABLE t1;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP FUNCTION unescape;
-DROP FUNCTION unescape_type;
-DROP FUNCTION wellformedness;
-DROP FUNCTION mysql_real_escape_string_generated;
-DROP FUNCTION iswellformed;
-DROP TABLE allbytes;
-SET sql_mode = DEFAULT;
-# End of ctype_backslash.inc
-SET NAMES gbk;
-# Start of ctype_E05C.inc
-SELECT HEX('à\'),HEX('à\t');
-HEX('à\') HEX('à\t')
-E05C E05C74
-SELECT HEX('\\à\'),HEX('\\à\t'),HEX('\\à\t\t');
-HEX('\\à\') HEX('\\à\t') HEX('\\à\t\t')
-5CE05C 5CE05C74 5CE05C7409
-SELECT HEX('''à\'),HEX('à\''');
-HEX('''à\') HEX('à\''')
-27E05C E05C27
-SELECT HEX('\\''à\'),HEX('à\''\\');
-HEX('\\''à\') HEX('à\''\\')
-5C27E05C E05C275C
-SELECT HEX(BINARY('à\')),HEX(BINARY('à\t'));
-HEX(BINARY('à\')) HEX(BINARY('à\t'))
-E05C E05C74
-SELECT HEX(BINARY('\\à\')),HEX(BINARY('\\à\t')),HEX(BINARY('\\à\t\t'));
-HEX(BINARY('\\à\')) HEX(BINARY('\\à\t')) HEX(BINARY('\\à\t\t'))
-5CE05C 5CE05C74 5CE05C7409
-SELECT HEX(BINARY('''à\')),HEX(BINARY('à\'''));
-HEX(BINARY('''à\')) HEX(BINARY('à\'''))
-27E05C E05C27
-SELECT HEX(BINARY('\\''à\')),HEX(BINARY('à\''\\'));
-HEX(BINARY('\\''à\')) HEX(BINARY('à\''\\'))
-5C27E05C E05C275C
-SELECT HEX(_BINARY'à\'),HEX(_BINARY'à\t');
-HEX(_BINARY'à\') HEX(_BINARY'à\t')
-E05C E05C74
-SELECT HEX(_BINARY'\\à\'),HEX(_BINARY'\\à\t'),HEX(_BINARY'\\à\t\t');
-HEX(_BINARY'\\à\') HEX(_BINARY'\\à\t') HEX(_BINARY'\\à\t\t')
-5CE05C 5CE05C74 5CE05C7409
-SELECT HEX(_BINARY'''à\'),HEX(_BINARY'à\''');
-HEX(_BINARY'''à\') HEX(_BINARY'à\''')
-27E05C E05C27
-SELECT HEX(_BINARY'\\''à\'),HEX(_BINARY'à\''\\');
-HEX(_BINARY'\\''à\') HEX(_BINARY'à\''\\')
-5C27E05C E05C275C
-CREATE TABLE t1 AS SELECT REPEAT(' ',10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET gbk DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('à\'),('à\t');
-INSERT INTO t1 VALUES ('\\à\'),('\\à\t'),('\\à\t\t');
-INSERT INTO t1 VALUES ('''à\'),('à\''');
-INSERT INTO t1 VALUES ('\\''à\'),('à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES ('à\'),('à\t');
-INSERT INTO t1 VALUES ('\\à\'),('\\à\t'),('\\à\t\t');
-INSERT INTO t1 VALUES ('''à\'),('à\''');
-INSERT INTO t1 VALUES ('\\''à\'),('à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET gbk DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (BINARY('à\')),(BINARY('à\t'));
-INSERT INTO t1 VALUES (BINARY('\\à\')),(BINARY('\\à\t')),(BINARY('\\à\t\t'));
-INSERT INTO t1 VALUES (BINARY('''à\')),(BINARY('à\'''));
-INSERT INTO t1 VALUES (BINARY('\\''à\')),(BINARY('à\''\\'));
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES (BINARY('à\')),(BINARY('à\t'));
-INSERT INTO t1 VALUES (BINARY('\\à\')),(BINARY('\\à\t')),(BINARY('\\à\t\t'));
-INSERT INTO t1 VALUES (BINARY('''à\')),(BINARY('à\'''));
-INSERT INTO t1 VALUES (BINARY('\\''à\')),(BINARY('à\''\\'));
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET gbk DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_BINARY'à\'),(_BINARY'à\t');
-INSERT INTO t1 VALUES (_BINARY'\\à\'),(_BINARY'\\à\t'),(_BINARY'\\à\t\t');
-INSERT INTO t1 VALUES (_BINARY'''à\'),(_BINARY'à\''');
-INSERT INTO t1 VALUES (_BINARY'\\''à\'),(_BINARY'à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES (_BINARY'à\'),(_BINARY'à\t');
-INSERT INTO t1 VALUES (_BINARY'\\à\'),(_BINARY'\\à\t'),(_BINARY'\\à\t\t');
-INSERT INTO t1 VALUES (_BINARY'''à\'),(_BINARY'à\''');
-INSERT INTO t1 VALUES (_BINARY'\\''à\'),(_BINARY'à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-SET character_set_client=binary, character_set_results=binary;
-SELECT @@character_set_client, @@character_set_connection, @@character_set_results;
-@@character_set_client @@character_set_connection @@character_set_results
-binary gbk binary
-SELECT HEX('à\['), HEX('\à\[');
-HEX('à\[') HEX('\à\[')
-E05B E05B
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET gbk DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('à\['),('\à\[');
-SELECT HEX(a) FROM t1;
-HEX(a)
-E05B
-E05B
-DROP TABLE t1;
-SET character_set_client=@@character_set_connection, character_set_results=@@character_set_connection;
-SET character_set_connection=binary;
-SELECT @@character_set_client, @@character_set_connection, @@character_set_results;
-@@character_set_client @@character_set_connection @@character_set_results
-gbk binary gbk
-SELECT HEX('à\['), HEX('\à\[');
-HEX('à\[') HEX('\à\[')
-E05C5B E05B
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('à\['),('\à\[');
-SELECT HEX(a) FROM t1;
-HEX(a)
-E05C5B
-E05B
-DROP TABLE t1;
-# Start of ctype_E05C.inc
-#
-# MDEV-9886 Illegal mix of collations with a view comparing a field to a binary constant
-#
-SET NAMES latin1;
-CREATE TABLE t1 (a TEXT CHARACTER SET gbk);
-INSERT INTO t1 VALUES (0xEE5D);
-SELECT a<>0xEE5D AS a FROM t1;
-a
-0
-CREATE VIEW v1 AS SELECT a<>0xEE5D AS a FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` <> 0xee5d AS `a` from `t1` latin1 latin1_swedish_ci
-SELECT * FROM v1;
-a
-0
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-6566 Different INSERT behaviour on bad bytes with and without character set conversion
-#
-CREATE TABLE t1 (
-id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-b VARBINARY(16),
-type SET('ascii','bad','head','tail','mb2','unassigned')
-);
-INSERT INTO t1 (b, type) VALUES (0x40, 'ascii,tail');
-INSERT INTO t1 (b, type) VALUES (0x80, 'tail');
-INSERT INTO t1 (b, type) VALUES (0x81, 'head,tail');
-INSERT INTO t1 (b, type) VALUES (0xFF, 'bad');
-INSERT INTO t1 (b, type) VALUES (0xA140, 'mb2,unassigned');
-INSERT INTO t1 (b, type) VALUES (0xA1A3, 'mb2');
-INSERT INTO t1 (b, type) VALUES (0xFE40, 'mb2');
-CREATE TABLE t2 AS SELECT
-CONCAT(t1.b,t2.b) AS b,
-t1.type AS type1,
-t2.type AS type2,
-CONCAT('[',t1.type,'][',t2.type,']') AS comment
-FROM t1, t1 t2;
-CREATE TABLE t3
-(
-b VARBINARY(16),
-c VARCHAR(16) CHARACTER SET gbk,
-comment VARCHAR(128)
-);
-#
-# A combination of two valid characters, should give no warnings
-#
-INSERT INTO t3 (b,c,comment) SELECT b,b,comment FROM t2
-WHERE
-(FIND_IN_SET('ascii',type1) OR FIND_IN_SET('mb2',type1)) AND
-(FIND_IN_SET('ascii',type2) OR FIND_IN_SET('mb2',type2))
-ORDER BY b;
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-16
-SELECT HEX(c),comment FROM t3 WHERE b=c ORDER BY b;
-HEX(c) comment
-4040 [ascii,tail][ascii,tail]
-40A140 [ascii,tail][mb2,unassigned]
-40A1A3 [ascii,tail][mb2]
-40FE40 [ascii,tail][mb2]
-A14040 [mb2,unassigned][ascii,tail]
-A140A140 [mb2,unassigned][mb2,unassigned]
-A140A1A3 [mb2,unassigned][mb2]
-A140FE40 [mb2,unassigned][mb2]
-A1A340 [mb2][ascii,tail]
-A1A3A140 [mb2][mb2,unassigned]
-A1A3A1A3 [mb2][mb2]
-A1A3FE40 [mb2][mb2]
-FE4040 [mb2][ascii,tail]
-FE40A140 [mb2][mb2,unassigned]
-FE40A1A3 [mb2][mb2]
-FE40FE40 [mb2][mb2]
-SELECT HEX(c),HEX(b),comment FROM t3 WHERE b<>c ORDER BY b;
-HEX(c) HEX(b) comment
-DELETE FROM t2 WHERE b IN (SELECT b FROM t3);
-DELETE FROM t3;
-#
-# Sequences that start with a tail or a bad byte,
-# or end with a bad byte, all should be fixed.
-#
-INSERT IGNORE INTO t3 (b,c,comment) SELECT b,b,comment FROM t2
-WHERE type1='tail' OR type1='bad' OR type2='bad'
-ORDER BY b;
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 1
-Warning 1366 Incorrect string value: '\x80@' for column 'c' at row 2
-Warning 1366 Incorrect string value: '\x80\x80' for column 'c' at row 3
-Warning 1366 Incorrect string value: '\x80\x81' for column 'c' at row 4
-Warning 1366 Incorrect string value: '\x80\xA1@' for column 'c' at row 5
-Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column 'c' at row 6
-Warning 1366 Incorrect string value: '\x80\xFE@' for column 'c' at row 7
-Warning 1366 Incorrect string value: '\x80\xFF' for column 'c' at row 8
-Warning 1366 Incorrect string value: '\x81\xFF' for column 'c' at row 9
-Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 10
-Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 11
-Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 12
-Warning 1366 Incorrect string value: '\xFF@' for column 'c' at row 13
-Warning 1366 Incorrect string value: '\xFF\x80' for column 'c' at row 14
-Warning 1366 Incorrect string value: '\xFF\x81' for column 'c' at row 15
-Warning 1366 Incorrect string value: '\xFF\xA1@' for column 'c' at row 16
-Warning 1366 Incorrect string value: '\xFF\xA1\xA3' for column 'c' at row 17
-Warning 1366 Incorrect string value: '\xFF\xFE@' for column 'c' at row 18
-Warning 1366 Incorrect string value: '\xFF\xFF' for column 'c' at row 19
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-19
-SELECT HEX(c),comment FROM t3 WHERE b=c ORDER BY b;
-HEX(c) comment
-SELECT HEX(c),HEX(b),comment FROM t3 WHERE b<>c ORDER BY b;
-HEX(c) HEX(b) comment
-403F 40FF [ascii,tail][bad]
-3F40 8040 [tail][ascii,tail]
-3F3F 8080 [tail][tail]
-3F3F 8081 [tail][head,tail]
-3FA140 80A140 [tail][mb2,unassigned]
-3FA1A3 80A1A3 [tail][mb2]
-3FFE40 80FE40 [tail][mb2]
-3F3F 80FF [tail][bad]
-3F3F 81FF [head,tail][bad]
-A1403F A140FF [mb2,unassigned][bad]
-A1A33F A1A3FF [mb2][bad]
-FE403F FE40FF [mb2][bad]
-3F40 FF40 [bad][ascii,tail]
-3F3F FF80 [bad][tail]
-3F3F FF81 [bad][head,tail]
-3FA140 FFA140 [bad][mb2,unassigned]
-3FA1A3 FFA1A3 [bad][mb2]
-3FFE40 FFFE40 [bad][mb2]
-3F3F FFFF [bad][bad]
-DELETE FROM t2 WHERE b IN (SELECT b FROM t3);
-DELETE FROM t3;
-#
-# Sequences that start with an ASCII or an MB2 character,
-# followed by a non-ASCII tail, all should be fixed.
-#
-INSERT IGNORE INTO t3 (b,c,comment) SELECT b,b,comment FROM t2
-WHERE (FIND_IN_SET('mb2',type1) OR FIND_IN_SET('ascii',type1))
-AND (FIND_IN_SET('tail',type2) AND NOT FIND_IN_SET('ascii',type2))
-ORDER BY b;
-Warnings:
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 1
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 2
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 3
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 4
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 5
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 6
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 7
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 8
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-8
-SELECT HEX(c),comment FROM t3 WHERE b=c ORDER BY b;
-HEX(c) comment
-SELECT HEX(c),HEX(b),comment FROM t3 WHERE b<>c ORDER BY b;
-HEX(c) HEX(b) comment
-403F 4080 [ascii,tail][tail]
-403F 4081 [ascii,tail][head,tail]
-A1403F A14080 [mb2,unassigned][tail]
-A1403F A14081 [mb2,unassigned][head,tail]
-A1A33F A1A380 [mb2][tail]
-A1A33F A1A381 [mb2][head,tail]
-FE403F FE4080 [mb2][tail]
-FE403F FE4081 [mb2][head,tail]
-DELETE FROM t2 WHERE b IN (SELECT b FROM t3);
-DELETE FROM t3;
-#
-# Other sequences
-#
-INSERT INTO t3 (b,c,comment) SELECT b,b,comment FROM t2 ORDER BY b;
-Warnings:
-Warning 1366 Incorrect string value: '\xA3' for column 'c' at row 5
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-6
-SELECT HEX(c),comment FROM t3 WHERE b=c ORDER BY b;
-HEX(c) comment
-8140 [head,tail][ascii,tail]
-8180 [head,tail][tail]
-8181 [head,tail][head,tail]
-81A140 [head,tail][mb2,unassigned]
-81FE40 [head,tail][mb2]
-SELECT HEX(c),HEX(b),comment FROM t3 WHERE b<>c ORDER BY b;
-HEX(c) HEX(b) comment
-81A13F 81A1A3 [head,tail][mb2]
-DELETE FROM t3;
-DROP TABLE t3;
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-CONCAT(t1.b,t2.b,t3.b) AS b,
-t1.type AS type1,
-t2.type AS type2,
-t3.type AS type3,
-CONCAT('[',t1.type,'][',t2.type,'][',t3.type,']') AS comment
-FROM t1, t1 t2,t1 t3;
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-343
-CREATE TABLE t3
-(
-b VARBINARY(16),
-c VARCHAR(16) CHARACTER SET gbk,
-comment VARCHAR(128)
-);
-#
-# A combination of three valid characters, should give no warnings
-#
-INSERT INTO t3 (b,c,comment) SELECT b,b,comment FROM t2
-WHERE
-(FIND_IN_SET('ascii',type1) OR FIND_IN_SET('mb2',type1)) AND
-(FIND_IN_SET('ascii',type2) OR FIND_IN_SET('mb2',type2)) AND
-(FIND_IN_SET('ascii',type3) OR FIND_IN_SET('mb2',type3))
-ORDER BY b;
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-64
-SELECT HEX(c),comment FROM t3 WHERE b=c ORDER BY b;
-HEX(c) comment
-404040 [ascii,tail][ascii,tail][ascii,tail]
-4040A140 [ascii,tail][ascii,tail][mb2,unassigned]
-4040A1A3 [ascii,tail][ascii,tail][mb2]
-4040FE40 [ascii,tail][ascii,tail][mb2]
-40A14040 [ascii,tail][mb2,unassigned][ascii,tail]
-40A140A140 [ascii,tail][mb2,unassigned][mb2,unassigned]
-40A140A1A3 [ascii,tail][mb2,unassigned][mb2]
-40A140FE40 [ascii,tail][mb2,unassigned][mb2]
-40A1A340 [ascii,tail][mb2][ascii,tail]
-40A1A3A140 [ascii,tail][mb2][mb2,unassigned]
-40A1A3A1A3 [ascii,tail][mb2][mb2]
-40A1A3FE40 [ascii,tail][mb2][mb2]
-40FE4040 [ascii,tail][mb2][ascii,tail]
-40FE40A140 [ascii,tail][mb2][mb2,unassigned]
-40FE40A1A3 [ascii,tail][mb2][mb2]
-40FE40FE40 [ascii,tail][mb2][mb2]
-A1404040 [mb2,unassigned][ascii,tail][ascii,tail]
-A14040A140 [mb2,unassigned][ascii,tail][mb2,unassigned]
-A14040A1A3 [mb2,unassigned][ascii,tail][mb2]
-A14040FE40 [mb2,unassigned][ascii,tail][mb2]
-A140A14040 [mb2,unassigned][mb2,unassigned][ascii,tail]
-A140A140A140 [mb2,unassigned][mb2,unassigned][mb2,unassigned]
-A140A140A1A3 [mb2,unassigned][mb2,unassigned][mb2]
-A140A140FE40 [mb2,unassigned][mb2,unassigned][mb2]
-A140A1A340 [mb2,unassigned][mb2][ascii,tail]
-A140A1A3A140 [mb2,unassigned][mb2][mb2,unassigned]
-A140A1A3A1A3 [mb2,unassigned][mb2][mb2]
-A140A1A3FE40 [mb2,unassigned][mb2][mb2]
-A140FE4040 [mb2,unassigned][mb2][ascii,tail]
-A140FE40A140 [mb2,unassigned][mb2][mb2,unassigned]
-A140FE40A1A3 [mb2,unassigned][mb2][mb2]
-A140FE40FE40 [mb2,unassigned][mb2][mb2]
-A1A34040 [mb2][ascii,tail][ascii,tail]
-A1A340A140 [mb2][ascii,tail][mb2,unassigned]
-A1A340A1A3 [mb2][ascii,tail][mb2]
-A1A340FE40 [mb2][ascii,tail][mb2]
-A1A3A14040 [mb2][mb2,unassigned][ascii,tail]
-A1A3A140A140 [mb2][mb2,unassigned][mb2,unassigned]
-A1A3A140A1A3 [mb2][mb2,unassigned][mb2]
-A1A3A140FE40 [mb2][mb2,unassigned][mb2]
-A1A3A1A340 [mb2][mb2][ascii,tail]
-A1A3A1A3A140 [mb2][mb2][mb2,unassigned]
-A1A3A1A3A1A3 [mb2][mb2][mb2]
-A1A3A1A3FE40 [mb2][mb2][mb2]
-A1A3FE4040 [mb2][mb2][ascii,tail]
-A1A3FE40A140 [mb2][mb2][mb2,unassigned]
-A1A3FE40A1A3 [mb2][mb2][mb2]
-A1A3FE40FE40 [mb2][mb2][mb2]
-FE404040 [mb2][ascii,tail][ascii,tail]
-FE4040A140 [mb2][ascii,tail][mb2,unassigned]
-FE4040A1A3 [mb2][ascii,tail][mb2]
-FE4040FE40 [mb2][ascii,tail][mb2]
-FE40A14040 [mb2][mb2,unassigned][ascii,tail]
-FE40A140A140 [mb2][mb2,unassigned][mb2,unassigned]
-FE40A140A1A3 [mb2][mb2,unassigned][mb2]
-FE40A140FE40 [mb2][mb2,unassigned][mb2]
-FE40A1A340 [mb2][mb2][ascii,tail]
-FE40A1A3A140 [mb2][mb2][mb2,unassigned]
-FE40A1A3A1A3 [mb2][mb2][mb2]
-FE40A1A3FE40 [mb2][mb2][mb2]
-FE40FE4040 [mb2][mb2][ascii,tail]
-FE40FE40A140 [mb2][mb2][mb2,unassigned]
-FE40FE40A1A3 [mb2][mb2][mb2]
-FE40FE40FE40 [mb2][mb2][mb2]
-SELECT HEX(c),HEX(b),comment FROM t3 WHERE b<>c ORDER BY b;
-HEX(c) HEX(b) comment
-DELETE FROM t2 WHERE b IN (SELECT b FROM t3);
-DELETE FROM t3;
-#
-# Sequences that start with a tail or a bad byte,
-# or have a bad byte, all should be fixed.
-#
-INSERT IGNORE INTO t3 (b,c,comment) SELECT b,b,comment FROM t2
-WHERE type1='tail' OR type1='bad' OR type2='bad' OR type3='bad'
-ORDER BY b;
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 1
-Warning 1366 Incorrect string value: '\x80\xFF' for column 'c' at row 2
-Warning 1366 Incorrect string value: '\x81\xFF' for column 'c' at row 3
-Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 4
-Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 5
-Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 6
-Warning 1366 Incorrect string value: '\xFF@' for column 'c' at row 7
-Warning 1366 Incorrect string value: '\xFF\x80' for column 'c' at row 8
-Warning 1366 Incorrect string value: '\xFF\x81' for column 'c' at row 9
-Warning 1366 Incorrect string value: '\xFF\xA1@' for column 'c' at row 10
-Warning 1366 Incorrect string value: '\xFF\xA1\xA3' for column 'c' at row 11
-Warning 1366 Incorrect string value: '\xFF\xFE@' for column 'c' at row 12
-Warning 1366 Incorrect string value: '\xFF\xFF' for column 'c' at row 13
-Warning 1366 Incorrect string value: '\x80@@' for column 'c' at row 14
-Warning 1366 Incorrect string value: '\x80@\x80' for column 'c' at row 15
-Warning 1366 Incorrect string value: '\x80@\x81' for column 'c' at row 16
-Warning 1366 Incorrect string value: '\x80@\xA1@' for column 'c' at row 17
-Warning 1366 Incorrect string value: '\x80@\xA1\xA3' for column 'c' at row 18
-Warning 1366 Incorrect string value: '\x80@\xFE@' for column 'c' at row 19
-Warning 1366 Incorrect string value: '\x80@\xFF' for column 'c' at row 20
-Warning 1366 Incorrect string value: '\x80\x80@' for column 'c' at row 21
-Warning 1366 Incorrect string value: '\x80\x80\x80' for column 'c' at row 22
-Warning 1366 Incorrect string value: '\x80\x80\x81' for column 'c' at row 23
-Warning 1366 Incorrect string value: '\x80\x80\xA1@' for column 'c' at row 24
-Warning 1366 Incorrect string value: '\x80\x80\xA1\xA3' for column 'c' at row 25
-Warning 1366 Incorrect string value: '\x80\x80\xFE@' for column 'c' at row 26
-Warning 1366 Incorrect string value: '\x80\x80\xFF' for column 'c' at row 27
-Warning 1366 Incorrect string value: '\x80\x81@' for column 'c' at row 28
-Warning 1366 Incorrect string value: '\x80\x81\x80' for column 'c' at row 29
-Warning 1366 Incorrect string value: '\x80\x81\x81' for column 'c' at row 30
-Warning 1366 Incorrect string value: '\x80\x81\xA1@' for column 'c' at row 31
-Warning 1366 Incorrect string value: '\x80\x81\xA1\xA3' for column 'c' at row 32
-Warning 1366 Incorrect string value: '\x80\x81\xFE@' for column 'c' at row 33
-Warning 1366 Incorrect string value: '\x80\x81\xFF' for column 'c' at row 34
-Warning 1366 Incorrect string value: '\x80\xA1@@' for column 'c' at row 35
-Warning 1366 Incorrect string value: '\x80\xA1@\x80' for column 'c' at row 36
-Warning 1366 Incorrect string value: '\x80\xA1@\x81' for column 'c' at row 37
-Warning 1366 Incorrect string value: '\x80\xA1@\xA1@' for column 'c' at row 38
-Warning 1366 Incorrect string value: '\x80\xA1@\xA1\xA3' for column 'c' at row 39
-Warning 1366 Incorrect string value: '\x80\xA1@\xFE@' for column 'c' at row 40
-Warning 1366 Incorrect string value: '\x80\xA1@\xFF' for column 'c' at row 41
-Warning 1366 Incorrect string value: '\x80\xA1\xA3@' for column 'c' at row 42
-Warning 1366 Incorrect string value: '\x80\xA1\xA3\x80' for column 'c' at row 43
-Warning 1366 Incorrect string value: '\x80\xA1\xA3\x81' for column 'c' at row 44
-Warning 1366 Incorrect string value: '\x80\xA1\xA3\xA1@' for column 'c' at row 45
-Warning 1366 Incorrect string value: '\x80\xA1\xA3\xA1\xA3' for column 'c' at row 46
-Warning 1366 Incorrect string value: '\x80\xA1\xA3\xFE@' for column 'c' at row 47
-Warning 1366 Incorrect string value: '\x80\xA1\xA3\xFF' for column 'c' at row 48
-Warning 1366 Incorrect string value: '\x80\xFE@@' for column 'c' at row 49
-Warning 1366 Incorrect string value: '\x80\xFE@\x80' for column 'c' at row 50
-Warning 1366 Incorrect string value: '\x80\xFE@\x81' for column 'c' at row 51
-Warning 1366 Incorrect string value: '\x80\xFE@\xA1@' for column 'c' at row 52
-Warning 1366 Incorrect string value: '\x80\xFE@\xA1\xA3' for column 'c' at row 53
-Warning 1366 Incorrect string value: '\x80\xFE@\xFE@' for column 'c' at row 54
-Warning 1366 Incorrect string value: '\x80\xFE@\xFF' for column 'c' at row 55
-Warning 1366 Incorrect string value: '\x80\xFF@' for column 'c' at row 56
-Warning 1366 Incorrect string value: '\x80\xFF\x80' for column 'c' at row 57
-Warning 1366 Incorrect string value: '\x80\xFF\x81' for column 'c' at row 58
-Warning 1366 Incorrect string value: '\x80\xFF\xA1@' for column 'c' at row 59
-Warning 1366 Incorrect string value: '\x80\xFF\xA1\xA3' for column 'c' at row 60
-Warning 1366 Incorrect string value: '\x80\xFF\xFE@' for column 'c' at row 61
-Warning 1366 Incorrect string value: '\x80\xFF\xFF' for column 'c' at row 62
-Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 63
-Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 64
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-163
-SELECT HEX(c),comment FROM t3 WHERE b=c ORDER BY b;
-HEX(c) comment
-SELECT HEX(c),HEX(b),comment FROM t3 WHERE b<>c ORDER BY b;
-HEX(c) HEX(b) comment
-40403F 4040FF [ascii,tail][ascii,tail][bad]
-403F3F 4080FF [ascii,tail][tail][bad]
-403F3F 4081FF [ascii,tail][head,tail][bad]
-40A1403F 40A140FF [ascii,tail][mb2,unassigned][bad]
-40A1A33F 40A1A3FF [ascii,tail][mb2][bad]
-40FE403F 40FE40FF [ascii,tail][mb2][bad]
-403F40 40FF40 [ascii,tail][bad][ascii,tail]
-403F3F 40FF80 [ascii,tail][bad][tail]
-403F3F 40FF81 [ascii,tail][bad][head,tail]
-403FA140 40FFA140 [ascii,tail][bad][mb2,unassigned]
-403FA1A3 40FFA1A3 [ascii,tail][bad][mb2]
-403FFE40 40FFFE40 [ascii,tail][bad][mb2]
-403F3F 40FFFF [ascii,tail][bad][bad]
-3F4040 804040 [tail][ascii,tail][ascii,tail]
-3F403F 804080 [tail][ascii,tail][tail]
-3F403F 804081 [tail][ascii,tail][head,tail]
-3F40A140 8040A140 [tail][ascii,tail][mb2,unassigned]
-3F40A1A3 8040A1A3 [tail][ascii,tail][mb2]
-3F40FE40 8040FE40 [tail][ascii,tail][mb2]
-3F403F 8040FF [tail][ascii,tail][bad]
-3F3F40 808040 [tail][tail][ascii,tail]
-3F3F3F 808080 [tail][tail][tail]
-3F3F3F 808081 [tail][tail][head,tail]
-3F3FA140 8080A140 [tail][tail][mb2,unassigned]
-3F3FA1A3 8080A1A3 [tail][tail][mb2]
-3F3FFE40 8080FE40 [tail][tail][mb2]
-3F3F3F 8080FF [tail][tail][bad]
-3F8140 808140 [tail][head,tail][ascii,tail]
-3F8180 808180 [tail][head,tail][tail]
-3F8181 808181 [tail][head,tail][head,tail]
-3F81A140 8081A140 [tail][head,tail][mb2,unassigned]
-3F81A13F 8081A1A3 [tail][head,tail][mb2]
-3F81FE40 8081FE40 [tail][head,tail][mb2]
-3F3F3F 8081FF [tail][head,tail][bad]
-3FA14040 80A14040 [tail][mb2,unassigned][ascii,tail]
-3FA1403F 80A14080 [tail][mb2,unassigned][tail]
-3FA1403F 80A14081 [tail][mb2,unassigned][head,tail]
-3FA140A140 80A140A140 [tail][mb2,unassigned][mb2,unassigned]
-3FA140A1A3 80A140A1A3 [tail][mb2,unassigned][mb2]
-3FA140FE40 80A140FE40 [tail][mb2,unassigned][mb2]
-3FA1403F 80A140FF [tail][mb2,unassigned][bad]
-3FA1A340 80A1A340 [tail][mb2][ascii,tail]
-3FA1A33F 80A1A380 [tail][mb2][tail]
-3FA1A33F 80A1A381 [tail][mb2][head,tail]
-3FA1A3A140 80A1A3A140 [tail][mb2][mb2,unassigned]
-3FA1A3A1A3 80A1A3A1A3 [tail][mb2][mb2]
-3FA1A3FE40 80A1A3FE40 [tail][mb2][mb2]
-3FA1A33F 80A1A3FF [tail][mb2][bad]
-3FFE4040 80FE4040 [tail][mb2][ascii,tail]
-3FFE403F 80FE4080 [tail][mb2][tail]
-3FFE403F 80FE4081 [tail][mb2][head,tail]
-3FFE40A140 80FE40A140 [tail][mb2][mb2,unassigned]
-3FFE40A1A3 80FE40A1A3 [tail][mb2][mb2]
-3FFE40FE40 80FE40FE40 [tail][mb2][mb2]
-3FFE403F 80FE40FF [tail][mb2][bad]
-3F3F40 80FF40 [tail][bad][ascii,tail]
-3F3F3F 80FF80 [tail][bad][tail]
-3F3F3F 80FF81 [tail][bad][head,tail]
-3F3FA140 80FFA140 [tail][bad][mb2,unassigned]
-3F3FA1A3 80FFA1A3 [tail][bad][mb2]
-3F3FFE40 80FFFE40 [tail][bad][mb2]
-3F3F3F 80FFFF [tail][bad][bad]
-81403F 8140FF [head,tail][ascii,tail][bad]
-81803F 8180FF [head,tail][tail][bad]
-81813F 8181FF [head,tail][head,tail][bad]
-81A1403F 81A140FF [head,tail][mb2,unassigned][bad]
-81A13F3F 81A1A3FF [head,tail][mb2][bad]
-81FE403F 81FE40FF [head,tail][mb2][bad]
-3F3F40 81FF40 [head,tail][bad][ascii,tail]
-3F3F3F 81FF80 [head,tail][bad][tail]
-3F3F3F 81FF81 [head,tail][bad][head,tail]
-3F3FA140 81FFA140 [head,tail][bad][mb2,unassigned]
-3F3FA1A3 81FFA1A3 [head,tail][bad][mb2]
-3F3FFE40 81FFFE40 [head,tail][bad][mb2]
-3F3F3F 81FFFF [head,tail][bad][bad]
-A140403F A14040FF [mb2,unassigned][ascii,tail][bad]
-A1403F3F A14080FF [mb2,unassigned][tail][bad]
-A1403F3F A14081FF [mb2,unassigned][head,tail][bad]
-A140A1403F A140A140FF [mb2,unassigned][mb2,unassigned][bad]
-A140A1A33F A140A1A3FF [mb2,unassigned][mb2][bad]
-A140FE403F A140FE40FF [mb2,unassigned][mb2][bad]
-A1403F40 A140FF40 [mb2,unassigned][bad][ascii,tail]
-A1403F3F A140FF80 [mb2,unassigned][bad][tail]
-A1403F3F A140FF81 [mb2,unassigned][bad][head,tail]
-A1403FA140 A140FFA140 [mb2,unassigned][bad][mb2,unassigned]
-A1403FA1A3 A140FFA1A3 [mb2,unassigned][bad][mb2]
-A1403FFE40 A140FFFE40 [mb2,unassigned][bad][mb2]
-A1403F3F A140FFFF [mb2,unassigned][bad][bad]
-A1A3403F A1A340FF [mb2][ascii,tail][bad]
-A1A33F3F A1A380FF [mb2][tail][bad]
-A1A33F3F A1A381FF [mb2][head,tail][bad]
-A1A3A1403F A1A3A140FF [mb2][mb2,unassigned][bad]
-A1A3A1A33F A1A3A1A3FF [mb2][mb2][bad]
-A1A3FE403F A1A3FE40FF [mb2][mb2][bad]
-A1A33F40 A1A3FF40 [mb2][bad][ascii,tail]
-A1A33F3F A1A3FF80 [mb2][bad][tail]
-A1A33F3F A1A3FF81 [mb2][bad][head,tail]
-A1A33FA140 A1A3FFA140 [mb2][bad][mb2,unassigned]
-A1A33FA1A3 A1A3FFA1A3 [mb2][bad][mb2]
-A1A33FFE40 A1A3FFFE40 [mb2][bad][mb2]
-A1A33F3F A1A3FFFF [mb2][bad][bad]
-FE40403F FE4040FF [mb2][ascii,tail][bad]
-FE403F3F FE4080FF [mb2][tail][bad]
-FE403F3F FE4081FF [mb2][head,tail][bad]
-FE40A1403F FE40A140FF [mb2][mb2,unassigned][bad]
-FE40A1A33F FE40A1A3FF [mb2][mb2][bad]
-FE40FE403F FE40FE40FF [mb2][mb2][bad]
-FE403F40 FE40FF40 [mb2][bad][ascii,tail]
-FE403F3F FE40FF80 [mb2][bad][tail]
-FE403F3F FE40FF81 [mb2][bad][head,tail]
-FE403FA140 FE40FFA140 [mb2][bad][mb2,unassigned]
-FE403FA1A3 FE40FFA1A3 [mb2][bad][mb2]
-FE403FFE40 FE40FFFE40 [mb2][bad][mb2]
-FE403F3F FE40FFFF [mb2][bad][bad]
-3F4040 FF4040 [bad][ascii,tail][ascii,tail]
-3F403F FF4080 [bad][ascii,tail][tail]
-3F403F FF4081 [bad][ascii,tail][head,tail]
-3F40A140 FF40A140 [bad][ascii,tail][mb2,unassigned]
-3F40A1A3 FF40A1A3 [bad][ascii,tail][mb2]
-3F40FE40 FF40FE40 [bad][ascii,tail][mb2]
-3F403F FF40FF [bad][ascii,tail][bad]
-3F3F40 FF8040 [bad][tail][ascii,tail]
-3F3F3F FF8080 [bad][tail][tail]
-3F3F3F FF8081 [bad][tail][head,tail]
-3F3FA140 FF80A140 [bad][tail][mb2,unassigned]
-3F3FA1A3 FF80A1A3 [bad][tail][mb2]
-3F3FFE40 FF80FE40 [bad][tail][mb2]
-3F3F3F FF80FF [bad][tail][bad]
-3F8140 FF8140 [bad][head,tail][ascii,tail]
-3F8180 FF8180 [bad][head,tail][tail]
-3F8181 FF8181 [bad][head,tail][head,tail]
-3F81A140 FF81A140 [bad][head,tail][mb2,unassigned]
-3F81A13F FF81A1A3 [bad][head,tail][mb2]
-3F81FE40 FF81FE40 [bad][head,tail][mb2]
-3F3F3F FF81FF [bad][head,tail][bad]
-3FA14040 FFA14040 [bad][mb2,unassigned][ascii,tail]
-3FA1403F FFA14080 [bad][mb2,unassigned][tail]
-3FA1403F FFA14081 [bad][mb2,unassigned][head,tail]
-3FA140A140 FFA140A140 [bad][mb2,unassigned][mb2,unassigned]
-3FA140A1A3 FFA140A1A3 [bad][mb2,unassigned][mb2]
-3FA140FE40 FFA140FE40 [bad][mb2,unassigned][mb2]
-3FA1403F FFA140FF [bad][mb2,unassigned][bad]
-3FA1A340 FFA1A340 [bad][mb2][ascii,tail]
-3FA1A33F FFA1A380 [bad][mb2][tail]
-3FA1A33F FFA1A381 [bad][mb2][head,tail]
-3FA1A3A140 FFA1A3A140 [bad][mb2][mb2,unassigned]
-3FA1A3A1A3 FFA1A3A1A3 [bad][mb2][mb2]
-3FA1A3FE40 FFA1A3FE40 [bad][mb2][mb2]
-3FA1A33F FFA1A3FF [bad][mb2][bad]
-3FFE4040 FFFE4040 [bad][mb2][ascii,tail]
-3FFE403F FFFE4080 [bad][mb2][tail]
-3FFE403F FFFE4081 [bad][mb2][head,tail]
-3FFE40A140 FFFE40A140 [bad][mb2][mb2,unassigned]
-3FFE40A1A3 FFFE40A1A3 [bad][mb2][mb2]
-3FFE40FE40 FFFE40FE40 [bad][mb2][mb2]
-3FFE403F FFFE40FF [bad][mb2][bad]
-3F3F40 FFFF40 [bad][bad][ascii,tail]
-3F3F3F FFFF80 [bad][bad][tail]
-3F3F3F FFFF81 [bad][bad][head,tail]
-3F3FA140 FFFFA140 [bad][bad][mb2,unassigned]
-3F3FA1A3 FFFFA1A3 [bad][bad][mb2]
-3F3FFE40 FFFFFE40 [bad][bad][mb2]
-3F3F3F FFFFFF [bad][bad][bad]
-DELETE FROM t2 WHERE b IN (SELECT b FROM t3);
-DELETE FROM t3;
-#
-# Sequences that start with an ASCII or an MB2 character,
-# followed by a pure non-ASCII tail, all should be fixed.
-#
-INSERT IGNORE INTO t3 (b,c,comment) SELECT b,b,comment FROM t2
-WHERE (FIND_IN_SET('mb2',type1) OR FIND_IN_SET('ascii',type1))
-AND type2='tail'
-ORDER BY b;
-Warnings:
-Warning 1366 Incorrect string value: '\x80@' for column 'c' at row 1
-Warning 1366 Incorrect string value: '\x80\x80' for column 'c' at row 2
-Warning 1366 Incorrect string value: '\x80\x81' for column 'c' at row 3
-Warning 1366 Incorrect string value: '\x80\xA1@' for column 'c' at row 4
-Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column 'c' at row 5
-Warning 1366 Incorrect string value: '\x80\xFE@' for column 'c' at row 6
-Warning 1366 Incorrect string value: '\x80@' for column 'c' at row 7
-Warning 1366 Incorrect string value: '\x80\x80' for column 'c' at row 8
-Warning 1366 Incorrect string value: '\x80\x81' for column 'c' at row 9
-Warning 1366 Incorrect string value: '\x80\xA1@' for column 'c' at row 10
-Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column 'c' at row 11
-Warning 1366 Incorrect string value: '\x80\xFE@' for column 'c' at row 12
-Warning 1366 Incorrect string value: '\x80@' for column 'c' at row 13
-Warning 1366 Incorrect string value: '\x80\x80' for column 'c' at row 14
-Warning 1366 Incorrect string value: '\x80\x81' for column 'c' at row 15
-Warning 1366 Incorrect string value: '\x80\xA1@' for column 'c' at row 16
-Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column 'c' at row 17
-Warning 1366 Incorrect string value: '\x80\xFE@' for column 'c' at row 18
-Warning 1366 Incorrect string value: '\x80@' for column 'c' at row 19
-Warning 1366 Incorrect string value: '\x80\x80' for column 'c' at row 20
-Warning 1366 Incorrect string value: '\x80\x81' for column 'c' at row 21
-Warning 1366 Incorrect string value: '\x80\xA1@' for column 'c' at row 22
-Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column 'c' at row 23
-Warning 1366 Incorrect string value: '\x80\xFE@' for column 'c' at row 24
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-24
-SELECT HEX(c),comment FROM t3 WHERE b=c ORDER BY b;
-HEX(c) comment
-SELECT HEX(c),HEX(b),comment FROM t3 WHERE b<>c ORDER BY b;
-HEX(c) HEX(b) comment
-403F40 408040 [ascii,tail][tail][ascii,tail]
-403F3F 408080 [ascii,tail][tail][tail]
-403F3F 408081 [ascii,tail][tail][head,tail]
-403FA140 4080A140 [ascii,tail][tail][mb2,unassigned]
-403FA1A3 4080A1A3 [ascii,tail][tail][mb2]
-403FFE40 4080FE40 [ascii,tail][tail][mb2]
-A1403F40 A1408040 [mb2,unassigned][tail][ascii,tail]
-A1403F3F A1408080 [mb2,unassigned][tail][tail]
-A1403F3F A1408081 [mb2,unassigned][tail][head,tail]
-A1403FA140 A14080A140 [mb2,unassigned][tail][mb2,unassigned]
-A1403FA1A3 A14080A1A3 [mb2,unassigned][tail][mb2]
-A1403FFE40 A14080FE40 [mb2,unassigned][tail][mb2]
-A1A33F40 A1A38040 [mb2][tail][ascii,tail]
-A1A33F3F A1A38080 [mb2][tail][tail]
-A1A33F3F A1A38081 [mb2][tail][head,tail]
-A1A33FA140 A1A380A140 [mb2][tail][mb2,unassigned]
-A1A33FA1A3 A1A380A1A3 [mb2][tail][mb2]
-A1A33FFE40 A1A380FE40 [mb2][tail][mb2]
-FE403F40 FE408040 [mb2][tail][ascii,tail]
-FE403F3F FE408080 [mb2][tail][tail]
-FE403F3F FE408081 [mb2][tail][head,tail]
-FE403FA140 FE4080A140 [mb2][tail][mb2,unassigned]
-FE403FA1A3 FE4080A1A3 [mb2][tail][mb2]
-FE403FFE40 FE4080FE40 [mb2][tail][mb2]
-DELETE FROM t2 WHERE b IN (SELECT b FROM t3);
-DELETE FROM t3;
-#
-# Sequences that consist of two ASCII or MB2 characters,
-# followed by a pure non-ASCII tail, all should be fixed.
-#
-INSERT IGNORE INTO t3 (b,c,comment) SELECT b,b,comment FROM t2
-WHERE (FIND_IN_SET('mb2',type1) OR FIND_IN_SET('ascii',type1)) AND
-(FIND_IN_SET('mb2',type2) OR FIND_IN_SET('ascii',type2)) AND
-type3='tail'
-ORDER BY b;
-Warnings:
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 1
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 2
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 3
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 4
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 5
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 6
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 7
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 8
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 9
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 10
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 11
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 12
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 13
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 14
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 15
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 16
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-16
-SELECT HEX(c),comment FROM t3 WHERE b=c ORDER BY b;
-HEX(c) comment
-SELECT HEX(c),HEX(b),comment FROM t3 WHERE b<>c ORDER BY b;
-HEX(c) HEX(b) comment
-40403F 404080 [ascii,tail][ascii,tail][tail]
-40A1403F 40A14080 [ascii,tail][mb2,unassigned][tail]
-40A1A33F 40A1A380 [ascii,tail][mb2][tail]
-40FE403F 40FE4080 [ascii,tail][mb2][tail]
-A140403F A1404080 [mb2,unassigned][ascii,tail][tail]
-A140A1403F A140A14080 [mb2,unassigned][mb2,unassigned][tail]
-A140A1A33F A140A1A380 [mb2,unassigned][mb2][tail]
-A140FE403F A140FE4080 [mb2,unassigned][mb2][tail]
-A1A3403F A1A34080 [mb2][ascii,tail][tail]
-A1A3A1403F A1A3A14080 [mb2][mb2,unassigned][tail]
-A1A3A1A33F A1A3A1A380 [mb2][mb2][tail]
-A1A3FE403F A1A3FE4080 [mb2][mb2][tail]
-FE40403F FE404080 [mb2][ascii,tail][tail]
-FE40A1403F FE40A14080 [mb2][mb2,unassigned][tail]
-FE40A1A33F FE40A1A380 [mb2][mb2][tail]
-FE40FE403F FE40FE4080 [mb2][mb2][tail]
-DELETE FROM t2 WHERE b IN (SELECT b FROM t3);
-DELETE FROM t3;
-#
-# Sequences that consist of two MB2 characters,
-# followed by a non-ASCII head or tail, all should be fixed.
-#
-INSERT IGNORE INTO t3 (b,c,comment) SELECT b,b,comment FROM t2
-WHERE FIND_IN_SET('mb2',type1) AND FIND_IN_SET('mb2',type2)
-AND NOT FIND_IN_SET('ascii',type3)
-AND NOT FIND_IN_SET('mb2',type3)
-ORDER BY b;
-Warnings:
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 1
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 2
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 3
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 4
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 5
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 6
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 7
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 8
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 9
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-9
-SELECT HEX(c),comment FROM t3 WHERE b=c ORDER BY b;
-HEX(c) comment
-SELECT HEX(c),HEX(b),comment FROM t3 WHERE b<>c ORDER BY b;
-HEX(c) HEX(b) comment
-A140A1403F A140A14081 [mb2,unassigned][mb2,unassigned][head,tail]
-A140A1A33F A140A1A381 [mb2,unassigned][mb2][head,tail]
-A140FE403F A140FE4081 [mb2,unassigned][mb2][head,tail]
-A1A3A1403F A1A3A14081 [mb2][mb2,unassigned][head,tail]
-A1A3A1A33F A1A3A1A381 [mb2][mb2][head,tail]
-A1A3FE403F A1A3FE4081 [mb2][mb2][head,tail]
-FE40A1403F FE40A14081 [mb2][mb2,unassigned][head,tail]
-FE40A1A33F FE40A1A381 [mb2][mb2][head,tail]
-FE40FE403F FE40FE4081 [mb2][mb2][head,tail]
-DELETE FROM t2 WHERE b IN (SELECT b FROM t3);
-DELETE FROM t3;
-#
-# Sequences that consist of head + tail + MB2 should go without warnings
-#
-INSERT INTO t3 (b,c,comment) SELECT b,b,comment FROM t2
-WHERE FIND_IN_SET('head',type1)
-AND FIND_IN_SET('tail',type2)
-AND FIND_IN_SET('mb2',type3)
-ORDER BY b;
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-9
-SELECT HEX(c),comment FROM t3 WHERE b=c ORDER BY b;
-HEX(c) comment
-8140A140 [head,tail][ascii,tail][mb2,unassigned]
-8140A1A3 [head,tail][ascii,tail][mb2]
-8140FE40 [head,tail][ascii,tail][mb2]
-8180A140 [head,tail][tail][mb2,unassigned]
-8180A1A3 [head,tail][tail][mb2]
-8180FE40 [head,tail][tail][mb2]
-8181A140 [head,tail][head,tail][mb2,unassigned]
-8181A1A3 [head,tail][head,tail][mb2]
-8181FE40 [head,tail][head,tail][mb2]
-SELECT HEX(c),HEX(b),comment FROM t3 WHERE b<>c ORDER BY b;
-HEX(c) HEX(b) comment
-DELETE FROM t2 WHERE b IN (SELECT b FROM t3);
-DELETE FROM t3;
-#
-# Sequences that consist of (ascii or mb2) + head + tail should go without warnings
-#
-INSERT INTO t3 (b,c,comment) SELECT b,b,comment FROM t2
-WHERE (FIND_IN_SET('ascii',type1) OR FIND_IN_SET('mb2',type1))
-AND FIND_IN_SET('head',type2)
-AND FIND_IN_SET('tail',type3)
-ORDER BY b;
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-12
-SELECT HEX(c),comment FROM t3 WHERE b=c ORDER BY b;
-HEX(c) comment
-408140 [ascii,tail][head,tail][ascii,tail]
-408180 [ascii,tail][head,tail][tail]
-408181 [ascii,tail][head,tail][head,tail]
-A1408140 [mb2,unassigned][head,tail][ascii,tail]
-A1408180 [mb2,unassigned][head,tail][tail]
-A1408181 [mb2,unassigned][head,tail][head,tail]
-A1A38140 [mb2][head,tail][ascii,tail]
-A1A38180 [mb2][head,tail][tail]
-A1A38181 [mb2][head,tail][head,tail]
-FE408140 [mb2][head,tail][ascii,tail]
-FE408180 [mb2][head,tail][tail]
-FE408181 [mb2][head,tail][head,tail]
-SELECT HEX(c),HEX(b),comment FROM t3 WHERE b<>c ORDER BY b;
-HEX(c) HEX(b) comment
-DELETE FROM t2 WHERE b IN (SELECT b FROM t3);
-DELETE FROM t3;
-INSERT IGNORE INTO t3 (b,c,comment) SELECT b,b,comment FROM t2 ORDER BY b;
-Warnings:
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 1
-Warning 1366 Incorrect string value: '\xA3' for column 'c' at row 3
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 5
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 6
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 7
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 9
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 10
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 12
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 13
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 15
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 16
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 18
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 19
-Warning 1366 Incorrect string value: '\xA3' for column 'c' at row 27
-Warning 1366 Incorrect string value: '\x80' for column 'c' at row 30
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 31
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 35
-Warning 1366 Incorrect string value: '\xA3' for column 'c' at row 37
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 39
-Warning 1366 Incorrect string value: '\xA3' for column 'c' at row 41
-Warning 1366 Incorrect string value: '\x81' for column 'c' at row 43
-Warning 1366 Incorrect string value: '\xA3' for column 'c' at row 45
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-46
-SELECT HEX(c),comment FROM t3 WHERE b=c ORDER BY b;
-HEX(c) comment
-4081A140 [ascii,tail][head,tail][mb2,unassigned]
-4081FE40 [ascii,tail][head,tail][mb2]
-814040 [head,tail][ascii,tail][ascii,tail]
-818040 [head,tail][tail][ascii,tail]
-818140 [head,tail][head,tail][ascii,tail]
-81A14040 [head,tail][mb2,unassigned][ascii,tail]
-81A140A140 [head,tail][mb2,unassigned][mb2,unassigned]
-81A140A1A3 [head,tail][mb2,unassigned][mb2]
-81A140FE40 [head,tail][mb2,unassigned][mb2]
-81A1A340 [head,tail][mb2][ascii,tail]
-81A1A380 [head,tail][mb2][tail]
-81A1A381 [head,tail][mb2][head,tail]
-81A1A3A140 [head,tail][mb2][mb2,unassigned]
-81A1A3FE40 [head,tail][mb2][mb2]
-81FE4040 [head,tail][mb2][ascii,tail]
-81FE40A140 [head,tail][mb2][mb2,unassigned]
-81FE40A1A3 [head,tail][mb2][mb2]
-81FE40FE40 [head,tail][mb2][mb2]
-A14081A140 [mb2,unassigned][head,tail][mb2,unassigned]
-A14081FE40 [mb2,unassigned][head,tail][mb2]
-A1A381A140 [mb2][head,tail][mb2,unassigned]
-A1A381FE40 [mb2][head,tail][mb2]
-FE4081A140 [mb2][head,tail][mb2,unassigned]
-FE4081FE40 [mb2][head,tail][mb2]
-SELECT HEX(c),HEX(b),comment FROM t3 WHERE b<>c ORDER BY b;
-HEX(c) HEX(b) comment
-40403F 404081 [ascii,tail][ascii,tail][head,tail]
-4081A13F 4081A1A3 [ascii,tail][head,tail][mb2]
-40A1403F 40A14081 [ascii,tail][mb2,unassigned][head,tail]
-40A1A33F 40A1A381 [ascii,tail][mb2][head,tail]
-40FE403F 40FE4081 [ascii,tail][mb2][head,tail]
-81403F 814080 [head,tail][ascii,tail][tail]
-81403F 814081 [head,tail][ascii,tail][head,tail]
-81803F 818080 [head,tail][tail][tail]
-81803F 818081 [head,tail][tail][head,tail]
-81813F 818180 [head,tail][head,tail][tail]
-81813F 818181 [head,tail][head,tail][head,tail]
-81A1403F 81A14080 [head,tail][mb2,unassigned][tail]
-81A1403F 81A14081 [head,tail][mb2,unassigned][head,tail]
-81A1A3A13F 81A1A3A1A3 [head,tail][mb2][mb2]
-81FE403F 81FE4080 [head,tail][mb2][tail]
-81FE403F 81FE4081 [head,tail][mb2][head,tail]
-A140403F A1404081 [mb2,unassigned][ascii,tail][head,tail]
-A14081A13F A14081A1A3 [mb2,unassigned][head,tail][mb2]
-A1A3403F A1A34081 [mb2][ascii,tail][head,tail]
-A1A381A13F A1A381A1A3 [mb2][head,tail][mb2]
-FE40403F FE404081 [mb2][ascii,tail][head,tail]
-FE4081A13F FE4081A1A3 [mb2][head,tail][mb2]
-DROP TABLE t3;
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# END OF MDEV-6566 Different INSERT behaviour on bad bytes with and without character set conversion
-#
-#
-# MDEV-7661 Unexpected result for: CAST(0xHHHH AS CHAR CHARACTER SET xxx) for incorrect byte sequences
-#
-set sql_mode='';
-SELECT HEX(CAST(0xA341 AS CHAR CHARACTER SET gb2312));
-HEX(CAST(0xA341 AS CHAR CHARACTER SET gb2312))
-3F41
-Warnings:
-Warning 1300 Invalid gb2312 character string: '\xA3A'
-SELECT HEX(CONVERT(CAST(0xA341 AS CHAR CHARACTER SET gb2312) USING utf8));
-HEX(CONVERT(CAST(0xA341 AS CHAR CHARACTER SET gb2312) USING utf8))
-3F41
-Warnings:
-Warning 1300 Invalid gb2312 character string: '\xA3A'
-set sql_mode=default;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9811 LOAD DATA INFILE does not work well with gbk in some cases
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET gbk);
-LOAD DATA INFILE '../../std_data/loaddata/mdev8711.txt' INTO TABLE t1 CHARACTER SET gbk LINES TERMINATED BY '@';
-SELECT HEX(a) FROM t1;
-HEX(a)
-B04061B041
-B042
-DELETE FROM t1;
-LOAD DATA INFILE '../../std_data/loaddata/mdev8711.txt' INTO TABLE t1 CHARACTER SET gbk LINES TERMINATED BY '@' IGNORE 1 LINES;
-SELECT HEX(a) FROM t1;
-HEX(a)
-B042
-DROP TABLE t1;
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=gbk;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'gbk_chinese_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE gbk_chinese_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=gbk COLLATE=gbk_chinese_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'gbk_chinese_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gbk_chinese_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'gbk_chinese_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'gbk_chinese_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'gbk_chinese_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'gbk_chinese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'gbk_chinese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'gbk_chinese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'gbk_chinese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'gbk_chinese_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'gbk_chinese_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'gbk_chinese_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'gbk_chinese_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gbk_chinese_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_chinese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_chinese_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'gbk_chinese_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_chinese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_chinese_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'gbk_chinese_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE gbk_chinese_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=gbk COLLATE=gbk_chinese_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'gbk_chinese_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gbk_chinese_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'gbk_chinese_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'gbk_chinese_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'gbk_chinese_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'gbk_chinese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'gbk_chinese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'gbk_chinese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'gbk_chinese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'gbk_chinese_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'gbk_chinese_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'gbk_chinese_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'gbk_chinese_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gbk_chinese_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_chinese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_chinese_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'gbk_chinese_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_chinese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_chinese_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'gbk_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE gbk_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=gbk COLLATE=gbk_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'gbk_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gbk_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'gbk_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'gbk_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'gbk_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'gbk_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'gbk_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'gbk_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'gbk_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'gbk_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'gbk_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'gbk_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'gbk_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gbk_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'gbk_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'gbk_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE gbk_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=gbk COLLATE=gbk_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'gbk_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gbk_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'gbk_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'gbk_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'gbk_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'gbk_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'gbk_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'gbk_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'gbk_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'gbk_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'gbk_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'gbk_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'gbk_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'gbk_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'gbk_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'gbk_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_gbk_binlog.result b/mysql-test/r/ctype_gbk_binlog.result
deleted file mode 100644
index df927af9a6b..00000000000
--- a/mysql-test/r/ctype_gbk_binlog.result
+++ /dev/null
@@ -1,27 +0,0 @@
-RESET MASTER;
-SET NAMES gbk;
-CREATE TABLE t1 (
-f1 BLOB
-) ENGINE=MyISAM DEFAULT CHARSET=gbk;
-CREATE PROCEDURE p1(IN val BLOB)
-BEGIN
-SET @tval = val;
-SET @sql_cmd = CONCAT_WS(' ', 'insert into t1(f1) values(?)');
-PREPARE stmt FROM @sql_cmd;
-EXECUTE stmt USING @tval;
-DEALLOCATE PREPARE stmt;
-END|
-SET @`tcontent`:=_binary 0x50434B000900000000000000E9000000 COLLATE `binary`/*!*/;
-CALL p1(@`tcontent`);
-FLUSH LOGS;
-DROP PROCEDURE p1;
-RENAME TABLE t1 to t2;
-SELECT hex(f1) FROM t2;
-hex(f1)
-50434B000900000000000000E9000000
-SELECT hex(f1) FROM t1;
-hex(f1)
-50434B000900000000000000E9000000
-DROP PROCEDURE p1;
-DROP TABLE t1;
-DROP TABLE t2;
diff --git a/mysql-test/r/ctype_gbk_export_import.result b/mysql-test/r/ctype_gbk_export_import.result
deleted file mode 100644
index d7d5aa98f02..00000000000
--- a/mysql-test/r/ctype_gbk_export_import.result
+++ /dev/null
@@ -1,3903 +0,0 @@
-DROP DATABASE IF EXISTS gbk;
-CREATE DATABASE gbk DEFAULT CHARACTER SET gbk;
-USE gbk;
-CREATE TABLE t1 (
-id INT NOT NULL,
-a1 TEXT NOT NULL,
-a2 TEXT CHARACTER SET utf8 NOT NULL,
-b1 BLOB NOT NULL,
-eol TEXT NOT NULL);
-CREATE PROCEDURE populate()
-BEGIN
-TRUNCATE TABLE t1;
-INSERT INTO t1 SET id=1, a1=0xEE5C, a2=_gbk 0xEE5C, b1=0xEE5C, eol='$';
-INSERT INTO t1 SET id=2, a1=0xEE5C5C, a2=_gbk 0xEE5C5C, b1=0xEE5C5C, eol='$';
-END|
-CREATE FUNCTION cmt(id INT, field_name TEXT, field_value BLOB)
-RETURNS TEXT CHARACTER SET utf8
-BEGIN
-DECLARE comment TEXT CHARACTER SET utf8;
-DECLARE expected_value_01 BLOB;
-DECLARE expected_value_02 BLOB;
-SET comment= CASE field_name WHEN 'a1' THEN 'TEXT-GBK' WHEN 'a2' THEN 'TEXT-UTF8' WHEN 'b1' THEN 'BLOB' ELSE '' END;
-SET expected_value_01= CASE field_name WHEN 'a1' THEN 0xEE5C WHEN 'a2' THEN 0xE9A0AB WHEN 'b1' THEN 0xEE5C ELSE '' END;
-SET expected_value_02= CASE field_name WHEN 'a1' THEN 0xEE5C5C WHEN 'a2' THEN 0xE9A0AB5C WHEN 'b1' THEN 0xEE5C5C ELSE '' END;
-RETURN IF(CASE id
-WHEN 1 THEN expected_value_01
-WHEN 2 THEN expected_value_02
-ELSE ''
- END <> field_value,
-CONCAT('BAD-', comment), '');
-END|
-CREATE FUNCTION display_file(file BLOB) RETURNS TEXT CHARACTER SET utf8
-BEGIN
-SET file=REPLACE(file, 0x09, '----');
-SET file=REPLACE(file, 0x0A, '++++');
-RETURN REPLACE(REPLACE(HEX(file), '2D2D2D2D','-'), '2B2B2B2B','|');
-END|
-CREATE VIEW v1 AS
-SELECT
-id,
-CONCAT(RPAD(HEX(a1),50,' '), cmt(id, 'a1', a1)) AS a1,
-CONCAT(RPAD(HEX(a2),50,' '), cmt(id, 'a2', a2)) AS a2,
-CONCAT(RPAD(HEX(b1),50,' '), cmt(id, 'b1', b1)) AS b1,
-CONCAT(RPAD(HEX(eol),50,' '), IF(eol<>'$','BAD-EOL','')) AS eol,
-'---' AS `---`
-FROM t1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL,
- `a1` text NOT NULL,
- `a2` text CHARACTER SET utf8 NOT NULL,
- `b1` blob NOT NULL,
- `eol` text NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=gbk
-#
-# Dump using SELECT INTO OUTFILE
-#
-Start of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=auto }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto
-INFILE: --default-character-set=auto
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=gbk }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto
-INFILE: --default-character-set=gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto
-INFILE: --default-character-set=utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto }{--default-character-set=utf8 CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=auto }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET gbk
-INFILE: --default-character-set=auto
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET gbk
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET gbk
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET gbk
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F093F093F0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09EE5C09EE5C0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=gbk }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET gbk
-INFILE: --default-character-set=gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET gbk
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET gbk
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET gbk
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F093F093F0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09EE5C09EE5C0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET gbk
-INFILE: --default-character-set=utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET gbk
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET gbk
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET gbk
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F093F093F0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09EE5C09EE5C0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=auto }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET utf8
-INFILE: --default-character-set=auto
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET utf8
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET utf8
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET utf8
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=gbk }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET utf8
-INFILE: --default-character-set=gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET utf8
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET utf8
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET utf8
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET utf8
-INFILE: --default-character-set=utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET utf8
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET utf8
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET utf8
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=auto }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET binary
-INFILE: --default-character-set=auto
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET binary
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET binary
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET binary
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=gbk }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET binary
-INFILE: --default-character-set=gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET binary
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET binary
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET binary
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET binary
-INFILE: --default-character-set=utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET binary
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET binary
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=auto CHARACTER SET binary
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=auto CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=auto }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk
-INFILE: --default-character-set=auto
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=gbk }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk
-INFILE: --default-character-set=gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk
-INFILE: --default-character-set=utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk }{--default-character-set=utf8 CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=auto }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET gbk
-INFILE: --default-character-set=auto
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET gbk
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET gbk
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET gbk
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F093F093F0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09EE5C09EE5C0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=gbk }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET gbk
-INFILE: --default-character-set=gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET gbk
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET gbk
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET gbk
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F093F093F0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09EE5C09EE5C0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET gbk
-INFILE: --default-character-set=utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET gbk
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET gbk
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET gbk
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F093F093F0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09EE5C09EE5C0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=auto }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET utf8
-INFILE: --default-character-set=auto
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET utf8
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET utf8
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET utf8
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=gbk }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET utf8
-INFILE: --default-character-set=gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET utf8
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET utf8
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET utf8
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET utf8
-INFILE: --default-character-set=utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET utf8
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET utf8
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET utf8
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=auto }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET binary
-INFILE: --default-character-set=auto
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET binary
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET binary
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET binary
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=gbk }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET binary
-INFILE: --default-character-set=gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET binary
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET binary
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET binary
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET binary
-INFILE: --default-character-set=utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET binary
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET binary
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=gbk CHARACTER SET binary
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-EE5C-E9A0AB-5CEE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-5CEE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=auto }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8
-INFILE: --default-character-set=auto
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=gbk }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8
-INFILE: --default-character-set=gbk
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8
-INFILE: --default-character-set=utf8
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 }{--default-character-set=utf8 CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=auto }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET gbk
-INFILE: --default-character-set=auto
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET gbk
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET gbk
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET gbk
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F093F093F0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09EE5C09EE5C0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=gbk }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET gbk
-INFILE: --default-character-set=gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET gbk
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET gbk
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET gbk
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F093F093F0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09EE5C09EE5C0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET gbk
-INFILE: --default-character-set=utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET gbk
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET gbk
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET gbk
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F093F093F0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09EE5C09EE5C0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET gbk}{--default-character-set=utf8 CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=auto }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET utf8
-INFILE: --default-character-set=auto
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET utf8
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET utf8
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET utf8
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=gbk }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET utf8
-INFILE: --default-character-set=gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET utf8
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET utf8
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET utf8
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET utf8
-INFILE: --default-character-set=utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET utf8
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET utf8
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET utf8
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET utf8}{--default-character-set=utf8 CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=auto }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET binary
-INFILE: --default-character-set=auto
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET binary
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET binary
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET binary
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=gbk }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET binary
-INFILE: --default-character-set=gbk
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET binary
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET binary
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET binary
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET binary
-INFILE: --default-character-set=utf8
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET binary
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET binary
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-OUTFILE: --default-character-set=utf8 CHARACTER SET binary
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8 CHARACTER SET binary}{--default-character-set=utf8 CHARACTER SET binary}
-
-
-#
-# Dump using mysqldump -Tdir
-#
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=auto }
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=auto
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=binary }
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=binary
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=binary }
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=binary CHARACTER SET gbk}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=binary CHARACTER SET gbk
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=binary CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=binary CHARACTER SET utf8}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=binary CHARACTER SET utf8
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=binary CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=binary CHARACTER SET binary}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=binary CHARACTER SET binary
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=binary CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=gbk }
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=gbk
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=utf8
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9978B3F BAD-TEXT-UTF8
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C5C
-a2 E9978BE78E9509E9A0AB5C0924 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 E9A0AB
-b1 EE5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 EE5C5C0924 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=binary
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-EE5C-E9A0AB-EE5C5C-24|32-EE5C5C5C-E9A0AB5C5C-EE5C5C5C5C-24|
-id 1
-a1 3F09E9A03F BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09E9A0AB5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 24 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=binary}{--default-character-set=utf8 CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=auto }
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=auto
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F093F093F0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09EE5C09EE5C0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=binary }
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=binary
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=binary }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=binary CHARACTER SET gbk}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=binary CHARACTER SET gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=binary CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=binary CHARACTER SET utf8}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=binary CHARACTER SET utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=binary CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=binary CHARACTER SET binary}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=binary CHARACTER SET binary
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F093F093F0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09EE5C09EE5C0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=binary CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=gbk }
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F093F093F0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09EE5C09EE5C0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F5C BAD-TEXT-GBK
-a2 3F5C BAD-TEXT-UTF8
-b1 EE5C
-eol 24
---- ---
-id 2
-a1 3F5C5C BAD-TEXT-GBK
-a2 3F5C5C BAD-TEXT-UTF8
-b1 EE5C5C
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=gbk
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-EE5C-EE5C-EE5C-24|32-EE5C5C5C-EE5C5C5C-EE5C5C5C-24|
-id 1
-a1 3F093F093F0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-id 2
-a1 EE5C09EE5C09EE5C0924 BAD-TEXT-GBK
-a2 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=gbk}{--default-character-set=utf8 CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=auto }
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=auto
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=auto }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=auto CHARACTER SET gbk}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=auto CHARACTER SET gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=auto CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=auto CHARACTER SET utf8}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=auto CHARACTER SET utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=auto CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=auto CHARACTER SET binary}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=auto CHARACTER SET binary
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=auto CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=binary }
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=binary
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=binary }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=binary CHARACTER SET gbk}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=binary CHARACTER SET gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=binary CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=binary CHARACTER SET utf8}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=binary CHARACTER SET utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=binary CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=binary CHARACTER SET binary}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=binary CHARACTER SET binary
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=binary CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=gbk }
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=gbk }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=gbk CHARACTER SET gbk}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=gbk CHARACTER SET gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=gbk CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=gbk CHARACTER SET utf8}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=gbk CHARACTER SET utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=gbk CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=gbk CHARACTER SET binary}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=gbk CHARACTER SET binary
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=gbk CHARACTER SET binary}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=utf8 }
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=utf8 }
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=utf8 CHARACTER SET gbk}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=utf8 CHARACTER SET gbk
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9978B3F BAD-TEXT-UTF8
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C09E9A0AB5C093F5C5C BAD-TEXT-GBK
-a2 24 BAD-TEXT-UTF8
-b1 BAD-BLOB
-eol BAD-EOL
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=utf8 CHARACTER SET gbk}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=utf8 CHARACTER SET utf8}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=utf8 CHARACTER SET utf8
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 EE5C
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 EE5C5C
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=utf8 CHARACTER SET utf8}
-
-
-Start of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=utf8 CHARACTER SET binary}
-Locale: zh_CN.gbk
-mysqldump: --default-character-set=utf8
-INFILE: --default-character-set=utf8 CHARACTER SET binary
-file 31-E9A0AB-E9A0AB-3F5C5C-24|32-E9A0AB5C5C-E9A0AB5C5C-3F5C5C5C5C-24|
-id 1
-a1 E9A03F BAD-TEXT-GBK
-a2 E9A0AB
-b1 3F5C BAD-BLOB
-eol 24
---- ---
-id 2
-a1 E9A0AB5C BAD-TEXT-GBK
-a2 E9A0AB5C
-b1 3F5C5C BAD-BLOB
-eol 24
---- ---
-End of {zh_CN.gbk}{--default-character-set=utf8}{--default-character-set=utf8 CHARACTER SET binary}
-
-
-DROP DATABASE gbk;
-USE test;
diff --git a/mysql-test/r/ctype_hebrew.result b/mysql-test/r/ctype_hebrew.result
deleted file mode 100644
index d938b2e47f3..00000000000
--- a/mysql-test/r/ctype_hebrew.result
+++ /dev/null
@@ -1,11 +0,0 @@
-DROP TABLE IF EXISTS t1;
-SET NAMES hebrew;
-CREATE TABLE t1 (a char(1)) DEFAULT CHARSET=hebrew;
-INSERT INTO t1 VALUES (0xFD),(0xFE);
-ALTER TABLE t1 CONVERT TO CHARACTER SET utf8;
-SELECT HEX(a) FROM t1;
-HEX(a)
-E2808E
-E2808F
-DROP TABLE t1;
-End of 4.1 tests
diff --git a/mysql-test/r/ctype_latin1.result b/mysql-test/r/ctype_latin1.result
deleted file mode 100644
index d5906cb74dd..00000000000
--- a/mysql-test/r/ctype_latin1.result
+++ /dev/null
@@ -1,8847 +0,0 @@
-drop table if exists t1;
-SET NAMES latin1;
-CREATE TABLE t1 (a char(1) character set latin1);
-INSERT INTO t1 VALUES (0x00),(0x01),(0x02),(0x03),(0x04),(0x05),(0x06),(0x07);
-INSERT INTO t1 VALUES (0x08),(0x09),(0x0A),(0x0B),(0x0C),(0x0D),(0x0E),(0x0F);
-INSERT INTO t1 VALUES (0x10),(0x11),(0x12),(0x13),(0x14),(0x15),(0x16),(0x17);
-INSERT INTO t1 VALUES (0x18),(0x19),(0x1A),(0x1B),(0x1C),(0x1D),(0x1E),(0x1F);
-INSERT INTO t1 VALUES (0x20),(0x21),(0x22),(0x23),(0x24),(0x25),(0x26),(0x27);
-INSERT INTO t1 VALUES (0x28),(0x29),(0x2A),(0x2B),(0x2C),(0x2D),(0x2E),(0x2F);
-INSERT INTO t1 VALUES (0x30),(0x31),(0x32),(0x33),(0x34),(0x35),(0x36),(0x37);
-INSERT INTO t1 VALUES (0x38),(0x39),(0x3A),(0x3B),(0x3C),(0x3D),(0x3E),(0x3F);
-INSERT INTO t1 VALUES (0x40),(0x41),(0x42),(0x43),(0x44),(0x45),(0x46),(0x47);
-INSERT INTO t1 VALUES (0x48),(0x49),(0x4A),(0x4B),(0x4C),(0x4D),(0x4E),(0x4F);
-INSERT INTO t1 VALUES (0x50),(0x51),(0x52),(0x53),(0x54),(0x55),(0x56),(0x57);
-INSERT INTO t1 VALUES (0x58),(0x59),(0x5A),(0x5B),(0x5C),(0x5D),(0x5E),(0x5F);
-INSERT INTO t1 VALUES (0x60),(0x61),(0x62),(0x63),(0x64),(0x65),(0x66),(0x67);
-INSERT INTO t1 VALUES (0x68),(0x69),(0x6A),(0x6B),(0x6C),(0x6D),(0x6E),(0x6F);
-INSERT INTO t1 VALUES (0x70),(0x71),(0x72),(0x73),(0x74),(0x75),(0x76),(0x77);
-INSERT INTO t1 VALUES (0x78),(0x79),(0x7A),(0x7B),(0x7C),(0x7D),(0x7E),(0x7F);
-INSERT INTO t1 VALUES (0x80),(0x81),(0x82),(0x83),(0x84),(0x85),(0x86),(0x87);
-INSERT INTO t1 VALUES (0x88),(0x89),(0x8A),(0x8B),(0x8C),(0x8D),(0x8E),(0x8F);
-INSERT INTO t1 VALUES (0x90),(0x91),(0x92),(0x93),(0x94),(0x95),(0x96),(0x97);
-INSERT INTO t1 VALUES (0x98),(0x99),(0x9A),(0x9B),(0x9C),(0x9D),(0x9E),(0x9F);
-INSERT INTO t1 VALUES (0xA0),(0xA1),(0xA2),(0xA3),(0xA4),(0xA5),(0xA6),(0xA7);
-INSERT INTO t1 VALUES (0xA8),(0xA9),(0xAA),(0xAB),(0xAC),(0xAD),(0xAE),(0xAF);
-INSERT INTO t1 VALUES (0xB0),(0xB1),(0xB2),(0xB3),(0xB4),(0xB5),(0xB6),(0xB7);
-INSERT INTO t1 VALUES (0xB8),(0xB9),(0xBA),(0xBB),(0xBC),(0xBD),(0xBE),(0xBF);
-INSERT INTO t1 VALUES (0xC0),(0xC1),(0xC2),(0xC3),(0xC4),(0xC5),(0xC6),(0xC7);
-INSERT INTO t1 VALUES (0xC8),(0xC9),(0xCA),(0xCB),(0xCC),(0xCD),(0xCE),(0xCF);
-INSERT INTO t1 VALUES (0xD0),(0xD1),(0xD2),(0xD3),(0xD4),(0xD5),(0xD6),(0xD7);
-INSERT INTO t1 VALUES (0xD8),(0xD9),(0xDA),(0xDB),(0xDC),(0xDD),(0xDE),(0xDF);
-INSERT INTO t1 VALUES (0xE0),(0xE1),(0xE2),(0xE3),(0xE4),(0xE5),(0xE6),(0xE7);
-INSERT INTO t1 VALUES (0xE8),(0xE9),(0xEA),(0xEB),(0xEC),(0xED),(0xEE),(0xEF);
-INSERT INTO t1 VALUES (0xF0),(0xF1),(0xF2),(0xF3),(0xF4),(0xF5),(0xF6),(0xF7);
-INSERT INTO t1 VALUES (0xF8),(0xF9),(0xFA),(0xFB),(0xFC),(0xFD),(0xFE),(0xFF);
-SELECT
-hex(a),
-hex(@u:=convert(a using utf8)),
-hex(@l:=convert(@u using latin1)),
-a=@l FROM t1;
-hex(a) hex(@u:=convert(a using utf8)) hex(@l:=convert(@u using latin1)) a=@l
-00 00 00 1
-01 01 01 1
-02 02 02 1
-03 03 03 1
-04 04 04 1
-05 05 05 1
-06 06 06 1
-07 07 07 1
-08 08 08 1
-09 09 09 1
-0A 0A 0A 1
-0B 0B 0B 1
-0C 0C 0C 1
-0D 0D 0D 1
-0E 0E 0E 1
-0F 0F 0F 1
-10 10 10 1
-11 11 11 1
-12 12 12 1
-13 13 13 1
-14 14 14 1
-15 15 15 1
-16 16 16 1
-17 17 17 1
-18 18 18 1
-19 19 19 1
-1A 1A 1A 1
-1B 1B 1B 1
-1C 1C 1C 1
-1D 1D 1D 1
-1E 1E 1E 1
-1F 1F 1F 1
- 1
-21 21 21 1
-22 22 22 1
-23 23 23 1
-24 24 24 1
-25 25 25 1
-26 26 26 1
-27 27 27 1
-28 28 28 1
-29 29 29 1
-2A 2A 2A 1
-2B 2B 2B 1
-2C 2C 2C 1
-2D 2D 2D 1
-2E 2E 2E 1
-2F 2F 2F 1
-30 30 30 1
-31 31 31 1
-32 32 32 1
-33 33 33 1
-34 34 34 1
-35 35 35 1
-36 36 36 1
-37 37 37 1
-38 38 38 1
-39 39 39 1
-3A 3A 3A 1
-3B 3B 3B 1
-3C 3C 3C 1
-3D 3D 3D 1
-3E 3E 3E 1
-3F 3F 3F 1
-40 40 40 1
-41 41 41 1
-42 42 42 1
-43 43 43 1
-44 44 44 1
-45 45 45 1
-46 46 46 1
-47 47 47 1
-48 48 48 1
-49 49 49 1
-4A 4A 4A 1
-4B 4B 4B 1
-4C 4C 4C 1
-4D 4D 4D 1
-4E 4E 4E 1
-4F 4F 4F 1
-50 50 50 1
-51 51 51 1
-52 52 52 1
-53 53 53 1
-54 54 54 1
-55 55 55 1
-56 56 56 1
-57 57 57 1
-58 58 58 1
-59 59 59 1
-5A 5A 5A 1
-5B 5B 5B 1
-5C 5C 5C 1
-5D 5D 5D 1
-5E 5E 5E 1
-5F 5F 5F 1
-60 60 60 1
-61 61 61 1
-62 62 62 1
-63 63 63 1
-64 64 64 1
-65 65 65 1
-66 66 66 1
-67 67 67 1
-68 68 68 1
-69 69 69 1
-6A 6A 6A 1
-6B 6B 6B 1
-6C 6C 6C 1
-6D 6D 6D 1
-6E 6E 6E 1
-6F 6F 6F 1
-70 70 70 1
-71 71 71 1
-72 72 72 1
-73 73 73 1
-74 74 74 1
-75 75 75 1
-76 76 76 1
-77 77 77 1
-78 78 78 1
-79 79 79 1
-7A 7A 7A 1
-7B 7B 7B 1
-7C 7C 7C 1
-7D 7D 7D 1
-7E 7E 7E 1
-7F 7F 7F 1
-80 E282AC 80 1
-81 C281 81 1
-82 E2809A 82 1
-83 C692 83 1
-84 E2809E 84 1
-85 E280A6 85 1
-86 E280A0 86 1
-87 E280A1 87 1
-88 CB86 88 1
-89 E280B0 89 1
-8A C5A0 8A 1
-8B E280B9 8B 1
-8C C592 8C 1
-8D C28D 8D 1
-8E C5BD 8E 1
-8F C28F 8F 1
-90 C290 90 1
-91 E28098 91 1
-92 E28099 92 1
-93 E2809C 93 1
-94 E2809D 94 1
-95 E280A2 95 1
-96 E28093 96 1
-97 E28094 97 1
-98 CB9C 98 1
-99 E284A2 99 1
-9A C5A1 9A 1
-9B E280BA 9B 1
-9C C593 9C 1
-9D C29D 9D 1
-9E C5BE 9E 1
-9F C5B8 9F 1
-A0 C2A0 A0 1
-A1 C2A1 A1 1
-A2 C2A2 A2 1
-A3 C2A3 A3 1
-A4 C2A4 A4 1
-A5 C2A5 A5 1
-A6 C2A6 A6 1
-A7 C2A7 A7 1
-A8 C2A8 A8 1
-A9 C2A9 A9 1
-AA C2AA AA 1
-AB C2AB AB 1
-AC C2AC AC 1
-AD C2AD AD 1
-AE C2AE AE 1
-AF C2AF AF 1
-B0 C2B0 B0 1
-B1 C2B1 B1 1
-B2 C2B2 B2 1
-B3 C2B3 B3 1
-B4 C2B4 B4 1
-B5 C2B5 B5 1
-B6 C2B6 B6 1
-B7 C2B7 B7 1
-B8 C2B8 B8 1
-B9 C2B9 B9 1
-BA C2BA BA 1
-BB C2BB BB 1
-BC C2BC BC 1
-BD C2BD BD 1
-BE C2BE BE 1
-BF C2BF BF 1
-C0 C380 C0 1
-C1 C381 C1 1
-C2 C382 C2 1
-C3 C383 C3 1
-C4 C384 C4 1
-C5 C385 C5 1
-C6 C386 C6 1
-C7 C387 C7 1
-C8 C388 C8 1
-C9 C389 C9 1
-CA C38A CA 1
-CB C38B CB 1
-CC C38C CC 1
-CD C38D CD 1
-CE C38E CE 1
-CF C38F CF 1
-D0 C390 D0 1
-D1 C391 D1 1
-D2 C392 D2 1
-D3 C393 D3 1
-D4 C394 D4 1
-D5 C395 D5 1
-D6 C396 D6 1
-D7 C397 D7 1
-D8 C398 D8 1
-D9 C399 D9 1
-DA C39A DA 1
-DB C39B DB 1
-DC C39C DC 1
-DD C39D DD 1
-DE C39E DE 1
-DF C39F DF 1
-E0 C3A0 E0 1
-E1 C3A1 E1 1
-E2 C3A2 E2 1
-E3 C3A3 E3 1
-E4 C3A4 E4 1
-E5 C3A5 E5 1
-E6 C3A6 E6 1
-E7 C3A7 E7 1
-E8 C3A8 E8 1
-E9 C3A9 E9 1
-EA C3AA EA 1
-EB C3AB EB 1
-EC C3AC EC 1
-ED C3AD ED 1
-EE C3AE EE 1
-EF C3AF EF 1
-F0 C3B0 F0 1
-F1 C3B1 F1 1
-F2 C3B2 F2 1
-F3 C3B3 F3 1
-F4 C3B4 F4 1
-F5 C3B5 F5 1
-F6 C3B6 F6 1
-F7 C3B7 F7 1
-F8 C3B8 F8 1
-F9 C3B9 F9 1
-FA C3BA FA 1
-FB C3BB FB 1
-FC C3BC FC 1
-FD C3BD FD 1
-FE C3BE FE 1
-FF C3BF FF 1
-DROP TABLE t1;
-SELECT 1 as ƒ, 2 as Š, 3 as Œ, 4 as Ž, 5 as š, 6 as œ, 7 as ž, 8 as Ÿ;
-ƒ Š Œ Ž š œ ž Ÿ
-1 2 3 4 5 6 7 8
-select 'a' regexp 'A' collate latin1_general_ci;
-'a' regexp 'A' collate latin1_general_ci
-1
-select 'a' regexp 'A' collate latin1_general_cs;
-'a' regexp 'A' collate latin1_general_cs
-0
-select 'a' regexp 'A' collate latin1_bin;
-'a' regexp 'A' collate latin1_bin
-0
-SET @test_character_set= 'latin1';
-SET @test_collation= 'latin1_swedish_ci';
-SET @safe_character_set_server= @@character_set_server;
-SET @safe_collation_server= @@collation_server;
-SET @safe_character_set_client= @@character_set_client;
-SET @safe_character_set_results= @@character_set_results;
-SET character_set_server= @test_character_set;
-SET collation_server= @test_collation;
-CREATE DATABASE d1;
-USE d1;
-CREATE TABLE t1 (c CHAR(10), KEY(c));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c char(10) latin1_swedish_ci YES MUL NULL
-INSERT INTO t1 VALUES ('aaa'),('aaaa'),('aaaaa');
-SELECT c as want3results FROM t1 WHERE c LIKE 'aaa%';
-want3results
-aaa
-aaaa
-aaaaa
-DROP TABLE t1;
-CREATE TABLE t1 (c1 varchar(15), KEY c1 (c1(2)));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c1 varchar(15) latin1_swedish_ci YES MUL NULL
-INSERT INTO t1 VALUES ('location'),('loberge'),('lotre'),('boabab');
-SELECT c1 as want3results from t1 where c1 like 'l%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want3results from t1 where c1 like 'lo%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want1result from t1 where c1 like 'loc%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'loca%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locat%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locati%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locatio%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'location%';
-want1result
-location
-DROP TABLE t1;
-create table t1 (a set('a') not null);
-insert ignore into t1 values (),();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-select cast(a as char(1)) from t1;
-cast(a as char(1))
-
-
-select a sounds like a from t1;
-a sounds like a
-1
-1
-select 1 from t1 order by cast(a as char(1));
-1
-1
-1
-drop table t1;
-#
-# MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found
-#
-SET character_set_client=latin1;
-SET character_set_connection= @test_character_set;
-SET collation_connection= @test_collation;
-SELECT COLLATION('.'), SUBSTRING_INDEX('.wwwmysqlcom', '.', -2) AS c1;
-COLLATION('.') c1
-latin1_swedish_ci .wwwmysqlcom
-set names utf8;
-create table t1 (
-name varchar(10),
-level smallint unsigned);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `name` varchar(10) DEFAULT NULL,
- `level` smallint(5) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('string',1);
-select concat(name,space(level)), concat(name, repeat(' ',level)) from t1;
-concat(name,space(level)) concat(name, repeat(' ',level))
-string string
-drop table t1;
-DROP DATABASE d1;
-USE test;
-SET character_set_server= @safe_character_set_server;
-SET collation_server= @safe_collation_server;
-SET character_set_client= @safe_character_set_client;
-SET character_set_results= @safe_character_set_results;
-SET collation_connection='latin1_swedish_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-latin1_swedish_ci 6109
-latin1_swedish_ci 61
-latin1_swedish_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-latin1_swedish_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-latin1_swedish_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-latin1_swedish_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-#
-# MDEV-4842 STR_TO_DATE does not work with UCS2/UTF16/UTF32
-#
-SELECT @@character_set_connection, HEX(CAST(_utf8'÷' AS CHAR));
-@@character_set_connection HEX(CAST(_utf8'÷' AS CHAR))
-latin1 F7
-SELECT STR_TO_DATE(CAST(_utf8'2001÷01÷01' AS CHAR),CAST(_utf8'%Y÷%m÷%d' AS CHAR));
-STR_TO_DATE(CAST(_utf8'2001÷01÷01' AS CHAR),CAST(_utf8'%Y÷%m÷%d' AS CHAR))
-2001-01-01
-CREATE TABLE t1 AS SELECT REPEAT(' ', 64) AS subject, REPEAT(' ',64) AS pattern LIMIT 0;
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-subject varchar(64) YES NULL
-pattern varchar(64) YES NULL
-INSERT INTO t1 VALUES (_utf8'2001÷01÷01',_utf8'%Y÷%m÷%d');
-SELECT HEX(subject),HEX(pattern),STR_TO_DATE(subject, pattern) FROM t1;
-HEX(subject) HEX(pattern) STR_TO_DATE(subject, pattern)
-32303031F73031F73031 2559F7256DF72564 2001-01-01 00:00:00.000000
-DROP TABLE t1;
-SELECT strcmp('a','a '), strcmp('a ','a');
-strcmp('a','a ') strcmp('a ','a')
-0 0
-SELECT strcmp('a\0','a' ), strcmp('a','a\0');
-strcmp('a\0','a' ) strcmp('a','a\0')
--1 1
-SELECT strcmp('a\0','a '), strcmp('a ','a\0');
-strcmp('a\0','a ') strcmp('a ','a\0')
--1 1
-SELECT strcmp('a\t','a' ), strcmp('a', 'a\t');
-strcmp('a\t','a' ) strcmp('a', 'a\t')
--1 1
-SELECT strcmp('a\t','a '), strcmp('a ', 'a\t');
-strcmp('a\t','a ') strcmp('a ', 'a\t')
--1 1
-SET collation_connection='latin1_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-latin1_bin 6109
-latin1_bin 61
-latin1_bin 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-latin1_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-latin1_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-latin1_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-SELECT strcmp('a','a '), strcmp('a ','a');
-strcmp('a','a ') strcmp('a ','a')
-0 0
-SELECT strcmp('a\0','a' ), strcmp('a','a\0');
-strcmp('a\0','a' ) strcmp('a','a\0')
--1 1
-SELECT strcmp('a\0','a '), strcmp('a ','a\0');
-strcmp('a\0','a ') strcmp('a ','a\0')
--1 1
-SELECT strcmp('a\t','a' ), strcmp('a', 'a\t');
-strcmp('a\t','a' ) strcmp('a', 'a\t')
--1 1
-SELECT strcmp('a\t','a '), strcmp('a ', 'a\t');
-strcmp('a\t','a ') strcmp('a ', 'a\t')
--1 1
-CREATE TABLE „a (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '„a (a int)' at line 1
-SELECT '„a' as str;
-str
-„a
-set @str= _latin1 'ABC €°§ß²³µ~ äöüÄÖÜ áéíóú ÀÈÌÒÙ @ abc';
-SELECT convert(@str collate latin1_bin using utf8);
-convert(@str collate latin1_bin using utf8)
-ABC €°§ß²³µ~ äöüÄÖÜ áéíóú ÀÈÌÒÙ @ abc
-SELECT convert(@str collate latin1_general_ci using utf8);
-convert(@str collate latin1_general_ci using utf8)
-ABC €°§ß²³µ~ äöüÄÖÜ áéíóú ÀÈÌÒÙ @ abc
-SELECT convert(@str collate latin1_german1_ci using utf8);
-convert(@str collate latin1_german1_ci using utf8)
-ABC €°§ß²³µ~ äöüÄÖÜ áéíóú ÀÈÌÒÙ @ abc
-SELECT convert(@str collate latin1_danish_ci using utf8);
-convert(@str collate latin1_danish_ci using utf8)
-ABC €°§ß²³µ~ äöüÄÖÜ áéíóú ÀÈÌÒÙ @ abc
-SELECT convert(@str collate latin1_spanish_ci using utf8);
-convert(@str collate latin1_spanish_ci using utf8)
-ABC €°§ß²³µ~ äöüÄÖÜ áéíóú ÀÈÌÒÙ @ abc
-SELECT convert(@str collate latin1_german2_ci using utf8);
-convert(@str collate latin1_german2_ci using utf8)
-ABC €°§ß²³µ~ äöüÄÖÜ áéíóú ÀÈÌÒÙ @ abc
-SELECT convert(@str collate latin1_swedish_ci using utf8);
-convert(@str collate latin1_swedish_ci using utf8)
-ABC €°§ß²³µ~ äöüÄÖÜ áéíóú ÀÈÌÒÙ @ abc
-SET NAMES latin1;
-DROP TABLE IF EXISTS `abcÿdef`;
-CREATE TABLE `abcÿdef` (i int);
-INSERT INTO `abcÿdef` VALUES (1);
-INSERT INTO abcÿdef VALUES (2);
-SELECT * FROM `abcÿdef`;
-i
-1
-2
-SELECT * FROM abcÿdef;
-i
-1
-2
-DROP TABLE `abcÿdef`;
-select hex(cast(_ascii 0x7f as char(1) character set latin1));
-hex(cast(_ascii 0x7f as char(1) character set latin1))
-7F
-End of 5.0 tests
-#
-# Bug#58022 ... like ... escape export_set ( ... ) crashes when export_set returns warnings
-#
-SELECT '' LIKE '' ESCAPE EXPORT_SET(1, 1, 1, 1, '');
-'' LIKE '' ESCAPE EXPORT_SET(1, 1, 1, 1, '')
-1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: ''
-End of 5.1 tests
-#
-# Start of 5.5 tests
-#
-SET TIME_ZONE = _latin1 '+03:00';
-#
-# Start of WL#2649 Number-to-string conversions
-#
-select hex(concat(1));
-hex(concat(1))
-31
-create table t1 as select concat(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-31
-drop table t1;
-select hex(concat(18446744073709551615));
-hex(concat(18446744073709551615))
-3138343436373434303733373039353531363135
-create table t1 as select concat(18446744073709551615) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-3138343436373434303733373039353531363135
-drop table t1;
-select hex(concat(1.1));
-hex(concat(1.1))
-312E31
-create table t1 as select concat(1.1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-312E31
-drop table t1;
-select hex(concat('a', 1+2)), charset(concat(1+2));
-hex(concat('a', 1+2)) charset(concat(1+2))
-6133 latin1
-create table t1 as select concat(1+2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1-2));
-hex(concat(1-2))
-2D31
-create table t1 as select concat(1-2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1*2));
-hex(concat(1*2))
-32
-create table t1 as select concat(1*2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1/2));
-hex(concat(1/2))
-302E35303030
-create table t1 as select concat(1/2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(7) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1 div 2));
-hex(concat(1 div 2))
-30
-create table t1 as select concat(1 div 2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1 % 2));
-hex(concat(1 % 2))
-31
-create table t1 as select concat(1 % 2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(-1));
-hex(concat(-1))
-2D31
-create table t1 as select concat(-1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(-(1+2)));
-hex(concat(-(1+2)))
-2D33
-create table t1 as select concat(-(1+2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1|2));
-hex(concat(1|2))
-33
-create table t1 as select concat(1|2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1&2));
-hex(concat(1&2))
-30
-create table t1 as select concat(1&2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(bit_count(12)));
-hex(concat(bit_count(12)))
-32
-create table t1 as select concat(bit_count(12)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(2<<1));
-hex(concat(2<<1))
-34
-create table t1 as select concat(2<<1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(2>>1));
-hex(concat(2>>1))
-31
-create table t1 as select concat(2>>1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(~0));
-hex(concat(~0))
-3138343436373434303733373039353531363135
-create table t1 as select concat(~0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(3^2));
-hex(concat(3^2))
-31
-create table t1 as select concat(3^2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(abs(-2)));
-hex(concat(abs(-2)))
-32
-create table t1 as select concat(abs(-2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(exp(2)),1));
-hex(left(concat(exp(2)),1))
-37
-create table t1 as select concat(exp(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log(2)),1));
-hex(left(concat(log(2)),1))
-30
-create table t1 as select concat(log(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log2(2)),1));
-hex(left(concat(log2(2)),1))
-31
-create table t1 as select concat(log2(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log10(2)),1));
-hex(left(concat(log10(2)),1))
-30
-create table t1 as select concat(log10(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(sqrt(2)),1));
-hex(left(concat(sqrt(2)),1))
-31
-create table t1 as select concat(sqrt(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(pow(2,2)),1));
-hex(left(concat(pow(2,2)),1))
-34
-create table t1 as select concat(pow(2,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(acos(0.5)),1));
-hex(left(concat(acos(0.5)),1))
-31
-create table t1 as select concat(acos(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(asin(0.5)),1));
-hex(left(concat(asin(0.5)),1))
-30
-create table t1 as select concat(asin(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(atan(0.5)),1));
-hex(left(concat(atan(0.5)),1))
-30
-create table t1 as select concat(atan(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(cos(0.5)),1));
-hex(left(concat(cos(0.5)),1))
-30
-create table t1 as select concat(cos(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(sin(0.5)),1));
-hex(left(concat(sin(0.5)),1))
-30
-create table t1 as select concat(sin(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(tan(0.5)),1));
-hex(left(concat(tan(0.5)),1))
-30
-create table t1 as select concat(tan(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(degrees(0)));
-hex(concat(degrees(0)))
-30
-create table t1 as select concat(degrees(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(radians(0)));
-hex(concat(radians(0)))
-30
-create table t1 as select concat(radians(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ceiling(0.5)));
-hex(concat(ceiling(0.5)))
-31
-create table t1 as select concat(ceiling(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(floor(0.5)));
-hex(concat(floor(0.5)))
-30
-create table t1 as select concat(floor(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(round(0.5)));
-hex(concat(round(0.5)))
-31
-create table t1 as select concat(round(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sign(0.5)));
-hex(concat(sign(0.5)))
-31
-create table t1 as select concat(sign(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(rand()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(length('a')));
-hex(concat(length('a')))
-31
-create table t1 as select concat(length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(char_length('a')));
-hex(concat(char_length('a')))
-31
-create table t1 as select concat(char_length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(bit_length('a')));
-hex(concat(bit_length('a')))
-38
-create table t1 as select concat(bit_length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(coercibility('a')));
-hex(concat(coercibility('a')))
-34
-create table t1 as select concat(coercibility('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(locate('a','a')));
-hex(concat(locate('a','a')))
-31
-create table t1 as select concat(locate('a','a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(field('c','a','b','c')));
-hex(concat(field('c','a','b','c')))
-33
-create table t1 as select concat(field('c','a','b','c')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ascii(61)));
-hex(concat(ascii(61)))
-3534
-create table t1 as select concat(ascii(61)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ord(61)));
-hex(concat(ord(61)))
-3534
-create table t1 as select concat(ord(61)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(7) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(find_in_set('b','a,b,c,d')));
-hex(concat(find_in_set('b','a,b,c,d')))
-32
-create table t1 as select concat(find_in_set('b','a,b,c,d')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select md5('a'), hex(md5('a'));
-md5('a') hex(md5('a'))
-0cc175b9c0f1b6a831c399e269772661 3063633137356239633066316236613833316333393965323639373732363631
-create table t1 as select md5('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(32) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select old_password('a'), hex(old_password('a'));
-old_password('a') hex(old_password('a'))
-60671c896665c3fa 36303637316338393636363563336661
-create table t1 as select old_password('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(16) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select password('a'), hex(password('a'));
-password('a') hex(password('a'))
-*667F407DE7C6AD07358FA38DAED7828A72014B4E 2A36363746343037444537433641443037333538464133384441454437383238413732303134423445
-create table t1 as select password('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(41) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select sha('a'), hex(sha('a'));
-sha('a') hex(sha('a'))
-86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 38366637653433376661613561376663653135643164646362396561656165613337373636376238
-create table t1 as select sha('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(40) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select sha1('a'), hex(sha1('a'));
-sha1('a') hex(sha1('a'))
-86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 38366637653433376661613561376663653135643164646362396561656165613337373636376238
-create table t1 as select sha1('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(40) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('-1' as signed)));
-hex(concat(cast('-1' as signed)))
-2D31
-create table t1 as select concat(cast('-1' as signed)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('1' as unsigned)));
-hex(concat(cast('1' as unsigned)))
-31
-create table t1 as select concat(cast('1' as unsigned)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast(1/2 as decimal(5,5))));
-hex(concat(cast(1/2 as decimal(5,5))))
-302E3530303030
-create table t1 as select concat(cast(1/2 as decimal(5,5))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(7) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('2001-01-02 03:04:05' as date)));
-hex(concat(cast('2001-01-02 03:04:05' as date)))
-323030312D30312D3032
-create table t1 as select concat(cast('2001-01-02 03:04:05' as date)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2001-01-02
-drop table t1;
-select hex(concat(cast('2001-01-02 03:04:05' as time)));
-hex(concat(cast('2001-01-02 03:04:05' as time)))
-30333A30343A3035
-create table t1 as select concat(cast('2001-01-02 03:04:05' as time)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-03:04:05
-drop table t1;
-select hex(concat(cast('2001-01-02' as datetime)));
-hex(concat(cast('2001-01-02' as datetime)))
-323030312D30312D30322030303A30303A3030
-create table t1 as select concat(cast('2001-01-02' as datetime)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2001-01-02 00:00:00
-drop table t1;
-select hex(concat(least(1,2)));
-hex(concat(least(1,2)))
-31
-create table t1 as select concat(least(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(greatest(1,2)));
-hex(concat(greatest(1,2)))
-32
-create table t1 as select concat(greatest(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(case when 11 then 22 else 33 end));
-hex(concat(case when 11 then 22 else 33 end))
-3232
-create table t1 as select concat(case when 11 then 22 else 33 end) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(coalesce(1,2)));
-hex(concat(coalesce(1,2)))
-31
-create table t1 as select concat(coalesce(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat_ws(1,2,3));
-hex(concat_ws(1,2,3))
-323133
-create table t1 as select concat_ws(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(group_concat(1,2,3));
-hex(group_concat(1,2,3))
-313233
-create table t1 as select group_concat(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` mediumtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select 1 as c1 union select 'a';
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1 order by c1;
-hex(c1)
-31
-61
-drop table t1;
-create table t1 as select concat(last_insert_id()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(benchmark(0,0)));
-hex(concat(benchmark(0,0)))
-30
-create table t1 as select concat(benchmark(0,0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sleep(0)));
-hex(concat(sleep(0)))
-30
-create table t1 as select concat(sleep(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(is_free_lock('xxxx')));
-hex(concat(is_free_lock('xxxx')))
-31
-create table t1 as select concat(is_free_lock('xxxx')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(is_used_lock('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(release_lock('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(crc32('')));
-hex(concat(crc32('')))
-30
-create table t1 as select concat(crc32('')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(uncompressed_length('')));
-hex(concat(uncompressed_length('')))
-30
-create table t1 as select concat(uncompressed_length('')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(connection_id()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(inet_aton('127.1.1.1')));
-hex(concat(inet_aton('127.1.1.1')))
-32313330373732323235
-create table t1 as select concat(inet_aton('127.1.1.1')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(inet_ntoa(2130772225)));
-hex(concat(inet_ntoa(2130772225)))
-3132372E312E312E31
-create table t1 as select concat(inet_ntoa(2130772225)) as c1;
-select * from t1;
-c1
-127.1.1.1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(31) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select 1;
-1
-1
-select hex(concat(row_count()));
-hex(concat(row_count()))
-2D31
-create table t1 as select concat(row_count()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(found_rows()));
-hex(concat(found_rows()))
-30
-create table t1 as select concat(found_rows()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(uuid_short()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(uuid()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(36) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select coercibility(uuid()), coercibility(cast('a' as char character set latin1));
-coercibility(uuid()) coercibility(cast('a' as char character set latin1))
-4 2
-select charset(concat(uuid(), cast('a' as char character set latin1)));
-charset(concat(uuid(), cast('a' as char character set latin1)))
-latin1
-create table t1 as select concat(uuid(), cast('a' as char character set latin1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(37) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(master_pos_wait('non-existent',0,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=1));
-hex(concat(@a1:=1))
-31
-create table t1 as select concat(@a2:=2) as c1, @a3:=3 as c2;
-select hex(c1) from t1;
-hex(c1)
-32
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL,
- `c2` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=1;
-select hex(concat(@a2));
-hex(concat(@a2))
-31
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) DEFAULT NULL,
- `c2` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=sqrt(1)));
-hex(concat(@a1:=sqrt(1)))
-31
-create table t1 as select concat(@a2:=sqrt(1)) as c1, @a3:=sqrt(1) as c2;
-select hex(c1) from t1;
-hex(c1)
-31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL,
- `c2` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=sqrt(1);
-select hex(concat(@a2));
-hex(concat(@a2))
-31
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL,
- `c2` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=1.1));
-hex(concat(@a1:=1.1))
-312E31
-create table t1 as select concat(@a2:=1.1) as c1, @a3:=1.1 as c2;
-select hex(c1) from t1;
-hex(c1)
-312E31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) DEFAULT NULL,
- `c2` decimal(2,1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=1.1;
-select hex(concat(@a2));
-hex(concat(@a2))
-312E31
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-312E31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(83) DEFAULT NULL,
- `c2` decimal(65,38) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@@ft_max_word_len));
-hex(concat(@@ft_max_word_len))
-3834
-create table t1 as select concat(@@ft_max_word_len) as c1;
-select hex(c1) from t1;
-hex(c1)
-3834
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a'='a' IS TRUE));
-hex(concat('a'='a' IS TRUE))
-31
-create table t1 as select concat('a'='a' IS TRUE) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a'='a' IS NOT TRUE));
-hex(concat('a'='a' IS NOT TRUE))
-30
-create table t1 as select concat('a'='a' IS NOT TRUE) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NOT 'a'='a'));
-hex(concat(NOT 'a'='a'))
-30
-create table t1 as select concat(NOT 'a'='a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' IS NULL));
-hex(concat('a' IS NULL))
-30
-create table t1 as select concat('a' IS NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' IS NOT NULL));
-hex(concat('a' IS NOT NULL))
-31
-create table t1 as select concat('a' IS NOT NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' rlike 'a'));
-hex(concat('a' rlike 'a'))
-31
-create table t1 as select concat('a' IS NOT NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(strcmp('a','b')));
-hex(concat(strcmp('a','b')))
-2D31
-create table t1 as select concat(strcmp('a','b')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' like 'a'));
-hex(concat('a' like 'a'))
-31
-create table t1 as select concat('a' like 'b') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' between 'b' and 'c'));
-hex(concat('a' between 'b' and 'c'))
-30
-create table t1 as select concat('a' between 'b' and 'c') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' in ('a','b')));
-hex(concat('a' in ('a','b')))
-31
-create table t1 as select concat('a' in ('a','b')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(interval(23, 1, 15, 17, 30, 44, 200)));
-hex(concat(interval(23, 1, 15, 17, 30, 44, 200)))
-33
-create table t1 as select concat(interval(23, 1, 15, 17, 30, 44, 200)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a varchar(10), fulltext key(a));
-insert into t1 values ('a');
-select hex(concat(match (a) against ('a'))) from t1;
-hex(concat(match (a) against ('a')))
-30
-create table t2 as select concat(match (a) against ('a')) as a from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-select hex(ifnull(1,'a'));
-hex(ifnull(1,'a'))
-31
-create table t1 as select ifnull(1,'a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ifnull(1,1)));
-hex(concat(ifnull(1,1)))
-31
-create table t1 as select concat(ifnull(1,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ifnull(1.1,1.1)));
-hex(concat(ifnull(1.1,1.1)))
-312E31
-create table t1 as select concat(ifnull(1.1,1.1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(if(1,'b',1));
-hex(if(1,'b',1))
-62
-create table t1 as select if(1,'b',1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(if(1,1,'b'));
-hex(if(1,1,'b'))
-31
-create table t1 as select if(1,1,'b') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(if(1,1,1)));
-hex(concat(if(1,1,1)))
-31
-create table t1 as select concat(if(1,1,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(nullif(1,2)));
-hex(concat(nullif(1,2)))
-31
-create table t1 as select concat(nullif(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Dimension(GeomFromText('LINESTRING(0 0,10 10)'))));
-hex(concat(Dimension(GeomFromText('LINESTRING(0 0,10 10)'))))
-31
-create table t1 as select concat(Dimension(GeomFromText('LINSTRING(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))));
-hex(concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))))
-32
-create table t1 as select concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))));
-hex(concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))))
-32
-create table t1 as select concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))));
-hex(concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))))
-30
-create table t1 as select concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))));
-hex(concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))))
-31
-create table t1 as select concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsEmpty(GeomFromText('POINT(1 1)'))));
-hex(concat(IsEmpty(GeomFromText('POINT(1 1)'))))
-30
-create table t1 as select concat(IsEmpty(GeomFromText('Point(1 1)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsSimple(GeomFromText('POINT(1 1)'))));
-hex(concat(IsSimple(GeomFromText('POINT(1 1)'))))
-31
-create table t1 as select concat(IsSimple(GeomFromText('Point(1 1)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))));
-hex(concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))))
-30
-create table t1 as select concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))));
-hex(concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))))
-31
-create table t1 as select concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))) as c1;
-drop table t1;
-select hex(concat(x(GeomFromText('Point(1 2)'))));
-hex(concat(x(GeomFromText('Point(1 2)'))))
-31
-create table t1 as select concat(x(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(y(GeomFromText('Point(1 2)'))));
-hex(concat(y(GeomFromText('Point(1 2)'))))
-32
-create table t1 as select concat(x(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(GLength(GeomFromText('LineString(1 2,2 2)'))));
-hex(concat(GLength(GeomFromText('LineString(1 2,2 2)'))))
-31
-create table t1 as select concat(GLength(GeomFromText('LineString(1 2, 2 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))));
-hex(concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))))
-31
-create table t1 as select concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(GeometryType(GeomFromText('Point(1 2)'))));
-hex(concat(GeometryType(GeomFromText('Point(1 2)'))))
-504F494E54
-create table t1 as select concat(GeometryType(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(AsText(GeomFromText('Point(1 2)'))));
-hex(concat(AsText(GeomFromText('Point(1 2)'))))
-504F494E542831203229
-create table t1 as select concat(AsText(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(period_add(200902, 2)));
-hex(concat(period_add(200902, 2)))
-323030393034
-create table t1 as select concat(period_add(200902, 2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(period_diff(200902, 200802)));
-hex(concat(period_diff(200902, 200802)))
-3132
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1 as select concat(period_add(200902, 200802)) as c1;
-Warnings:
-Warning 1265 Data truncated for column 'c1' at row 1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(to_days(20090224)));
-hex(concat(to_days(20090224)))
-373333383237
-create table t1 as select concat(to_days(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofmonth(20090224)));
-hex(concat(dayofmonth(20090224)))
-3234
-create table t1 as select concat(dayofmonth(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofyear(20090224)));
-hex(concat(dayofyear(20090224)))
-3535
-create table t1 as select concat(dayofyear(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(hour('10:11:12')));
-hex(concat(hour('10:11:12')))
-3130
-create table t1 as select concat(hour('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(minute('10:11:12')));
-hex(concat(minute('10:11:12')))
-3131
-create table t1 as select concat(minute('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(second('10:11:12')));
-hex(concat(second('10:11:12')))
-3132
-create table t1 as select concat(second('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(quarter(20090224)));
-hex(concat(quarter(20090224)))
-31
-create table t1 as select concat(quarter(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(week(20090224)));
-hex(concat(week(20090224)))
-38
-create table t1 as select concat(week(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(yearweek(20090224)));
-hex(concat(yearweek(20090224)))
-323030393038
-create table t1 as select concat(yearweek(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(year(20090224)));
-hex(concat(year(20090224)))
-32303039
-create table t1 as select concat(year(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(weekday(20090224)));
-hex(concat(weekday(20090224)))
-31
-create table t1 as select concat(weekday(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofweek(20090224)));
-hex(concat(dayofweek(20090224)))
-33
-create table t1 as select concat(dayofweek(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(unix_timestamp(20090224)));
-hex(concat(unix_timestamp(20090224)))
-31323335343232383030
-create table t1 as select concat(unix_timestamp(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(17) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(time_to_sec('10:11:12')));
-hex(concat(time_to_sec('10:11:12')))
-3336363732
-create table t1 as select concat(time_to_sec('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(17) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(extract(year from 20090702)));
-hex(concat(extract(year from 20090702)))
-32303039
-create table t1 as select concat(extract(year from 20090702)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(microsecond('12:00:00.123456')));
-hex(concat(microsecond('12:00:00.123456')))
-313233343536
-create table t1 as select concat(microsecond('12:00:00.123456')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(month(20090224)));
-hex(concat(month(20090224)))
-32
-create table t1 as select concat(month(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(last_day('2003-02-05')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2003-02-28 323030332D30322D3238
-drop table t1;
-create table t1 as select concat(from_days(730669)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2000-07-03 323030302D30372D3033
-drop table t1;
-create table t1 as select concat(curdate()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(utc_date()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(curtime()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select repeat('a',20) as c1 limit 0;
-set timestamp=1216359724;
-insert into t1 values (current_date);
-insert into t1 values (current_time);
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2008-07-18 323030382D30372D3138
-08:42:04 30383A34323A3034
-drop table t1;
-create table t1 as select concat(utc_time()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sec_to_time(2378)));
-hex(concat(sec_to_time(2378)))
-30303A33393A3338
-create table t1 as select concat(sec_to_time(2378)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')));
-hex(concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')))
-32343A30303A3030
-create table t1 as select concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(maketime(10,11,12)));
-hex(concat(maketime(10,11,12)))
-31303A31313A3132
-create table t1 as select concat(maketime(10,11,12)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(get_format(DATE,'USA'));
-hex(get_format(DATE,'USA'))
-256D2E25642E2559
-create table t1 as select get_format(DATE,'USA') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(17) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(from_unixtime(1111885200)),4));
-hex(left(concat(from_unixtime(1111885200)),4))
-32303035
-create table t1 as select concat(from_unixtime(1111885200)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')));
-hex(concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')))
-323030332D31322D33312032303A30303A3030
-create table t1 as select concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(date_add('2004-01-01 12:00:00', interval 1 day)));
-hex(concat(date_add('2004-01-01 12:00:00', interval 1 day)))
-323030342D30312D30322031323A30303A3030
-create table t1 as select concat(date_add('2004-01-01 12:00:00', interval 1 day)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2004-01-02 12:00:00
-drop table t1;
-select hex(concat(makedate(2009,1)));
-hex(concat(makedate(2009,1)))
-323030392D30312D3031
-create table t1 as select concat(makedate(2009,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2009-01-01
-drop table t1;
-create table t1 as select concat(now()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(utc_timestamp()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(sysdate()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(addtime('00:00:00','11:22:33')));
-hex(concat(addtime('00:00:00','11:22:33')))
-31313A32323A3333
-create table t1 as select concat(addtime('00:00:00','11:22:33')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(26) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(subtime('23:59:59','11:22:33')));
-hex(concat(subtime('23:59:59','11:22:33')))
-31323A33373A3236
-create table t1 as select concat(subtime('23:59:59','11:22:33')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(26) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(elt(1,2,3));
-hex(elt(1,2,3))
-32
-create table t1 as select elt(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(export_set(1,2,3,4,2));
-hex(export_set(1,2,3,4,2))
-323433
-create table t1 as select export_set(1,2,3,4,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(127) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(insert(1133,3,0,22));
-hex(insert(1133,3,0,22))
-313132323333
-create table t1 as select insert(1133,3,0,22) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lcase(123));
-hex(lcase(123))
-313233
-create table t1 as select lcase(123) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(123,1));
-hex(left(123,1))
-31
-create table t1 as select left(123,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lower(123));
-hex(lower(123))
-313233
-create table t1 as select lower(123) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lpad(1,2,0));
-hex(lpad(1,2,0))
-3031
-create table t1 as select lpad(1,2,0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(ltrim(1));
-hex(ltrim(1))
-31
-create table t1 as select ltrim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(mid(1,1,1));
-hex(mid(1,1,1))
-31
-create table t1 as select mid(1,1,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(repeat(1,2));
-hex(repeat(1,2))
-3131
-create table t1 as select repeat(1,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(replace(1,1,2));
-hex(replace(1,1,2))
-32
-create table t1 as select replace(1,1,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(reverse(12));
-hex(reverse(12))
-3231
-create table t1 as select reverse(12) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(right(123,1));
-hex(right(123,1))
-33
-create table t1 as select right(123,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(rpad(1,2,0));
-hex(rpad(1,2,0))
-3130
-create table t1 as select rpad(1,2,0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(rtrim(1));
-hex(rtrim(1))
-31
-create table t1 as select rtrim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(soundex(1));
-hex(soundex(1))
-
-create table t1 as select soundex(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(substring(1,1,1));
-hex(substring(1,1,1))
-31
-create table t1 as select substring(1,1,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(trim(1));
-hex(trim(1))
-31
-create table t1 as select trim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(ucase(1));
-hex(ucase(1))
-31
-create table t1 as select ucase(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(upper(1));
-hex(upper(1))
-31
-create table t1 as select upper(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select repeat(' ', 64) as a limit 0;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(64) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ("1.1"), ("2.1");
-select a, hex(a) from t1;
-a hex(a)
-1.1 312E31
-2.1 322E31
-update t1 set a= a + 0.1;
-select a, hex(a) from t1;
-a hex(a)
-1.2000000000000002 312E32303030303030303030303030303032
-2.2 322E32
-drop table t1;
-create table t1 (a tinyint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a tinyint zerofill);
-insert into t1 values (1), (10), (100);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-303031 001
-303130 010
-313030 100
-drop table t1;
-create table t1 (a tinyint(4) zerofill);
-insert into t1 values (1), (10), (100);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-30303031 0001
-30303130 0010
-30313030 0100
-drop table t1;
-create table t1 (a decimal(10,2));
-insert into t1 values (123.45);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3132332E3435
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a smallint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a smallint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-3030303031 00001
-3030303130 00010
-3030313030 00100
-3031303030 01000
-3130303030 10000
-drop table t1;
-create table t1 (a mediumint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a mediumint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-3030303030303031 00000001
-3030303030303130 00000010
-3030303030313030 00000100
-3030303031303030 00001000
-3030303130303030 00010000
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a int zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-30303030303030303031 0000000001
-30303030303030303130 0000000010
-30303030303030313030 0000000100
-30303030303031303030 0000001000
-30303030303130303030 0000010000
-drop table t1;
-create table t1 (a bigint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a bigint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-3030303030303030303030303030303030303031 00000000000000000001
-3030303030303030303030303030303030303130 00000000000000000010
-3030303030303030303030303030303030313030 00000000000000000100
-3030303030303030303030303030303031303030 00000000000000001000
-3030303030303030303030303030303130303030 00000000000000010000
-drop table t1;
-create table t1 (a float);
-insert into t1 values (123.456);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3132332E343536
-select concat(a) from t1;
-concat(a)
-123.456
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a float zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-303030303030303030312E31 0000000001.1
-303030303030303031302E31 0000000010.1
-303030303030303130302E31 0000000100.1
-303030303030313030302E31 0000001000.1
-303030303031303030302E31 0000010000.1
-drop table t1;
-create table t1 (a double);
-insert into t1 values (123.456);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3132332E343536
-select concat(a) from t1;
-concat(a)
-123.456
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(22) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a double zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-30303030303030303030303030303030303030312E31 00000000000000000001.1
-30303030303030303030303030303030303031302E31 00000000000000000010.1
-30303030303030303030303030303030303130302E31 00000000000000000100.1
-30303030303030303030303030303030313030302E31 00000000000000001000.1
-30303030303030303030303030303031303030302E31 00000000000000010000.1
-drop table t1;
-create table t1 (a year(2));
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a year);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-32303031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a bit(64));
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-0000000000000001
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(64) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values (0);
-insert into t1 values (20010203040506);
-insert into t1 values (19800203040506);
-insert into t1 values ('2001-02-03 04:05:06');
-select hex(concat(a)) from t1;
-hex(concat(a))
-303030302D30302D30302030303A30303A3030
-323030312D30322D30332030343A30353A3036
-313938302D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-select concat(a) from t1;
-concat(a)
-0000-00-00 00:00:00
-2001-02-03 04:05:06
-1980-02-03 04:05:06
-2001-02-03 04:05:06
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a date);
-insert into t1 values ('2001-02-03');
-insert into t1 values (20010203);
-select hex(concat(a)) from t1;
-hex(concat(a))
-323030312D30322D3033
-323030312D30322D3033
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a time);
-insert into t1 values (1);
-insert into t1 values ('01:02:03');
-select hex(concat(a)) from t1;
-hex(concat(a))
-30303A30303A3031
-30313A30323A3033
-select concat(a) from t1;
-concat(a)
-00:00:01
-01:02:03
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a datetime);
-insert into t1 values ('2001-02-03 04:05:06');
-insert into t1 values (20010203040506);
-select hex(concat(a)) from t1;
-hex(concat(a))
-323030312D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a tinyint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(4) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a tinyint zerofill);
-insert into t1 values (1), (10), (100);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(3) YES NULL
-select hex(a) from v1;
-hex(a)
-303031
-303130
-313030
-drop table t1;
-drop view v1;
-create table t1 (a tinyint(30) zerofill);
-insert into t1 values (1), (10), (100);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(30) YES NULL
-select hex(a) from v1;
-hex(a)
-303030303030303030303030303030303030303030303030303030303031
-303030303030303030303030303030303030303030303030303030303130
-303030303030303030303030303030303030303030303030303030313030
-drop table t1;
-drop view v1;
-create table t1 (a decimal(10,2));
-insert into t1 values (123.45);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(12) YES NULL
-select hex(a) from v1;
-hex(a)
-3132332E3435
-drop table t1;
-drop view v1;
-create table t1 (a smallint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(6) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a smallint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(5) YES NULL
-select hex(a) from v1;
-hex(a)
-3030303031
-3030303130
-3030313030
-3031303030
-3130303030
-drop table t1;
-drop view v1;
-create table t1 (a mediumint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(9) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a mediumint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(8) YES NULL
-select hex(a) from v1;
-hex(a)
-3030303030303031
-3030303030303130
-3030303030313030
-3030303031303030
-3030303130303030
-drop table t1;
-drop view v1;
-create table t1 (a int);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(11) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a int zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(10) YES NULL
-select hex(a) from v1;
-hex(a)
-30303030303030303031
-30303030303030303130
-30303030303030313030
-30303030303031303030
-30303030303130303030
-drop table t1;
-drop view v1;
-create table t1 (a bigint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(20) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a bigint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(20) YES NULL
-select hex(a) from v1;
-hex(a)
-3030303030303030303030303030303030303031
-3030303030303030303030303030303030303130
-3030303030303030303030303030303030313030
-3030303030303030303030303030303031303030
-3030303030303030303030303030303130303030
-drop table t1;
-drop view v1;
-create table t1 (a float);
-insert into t1 values (123.456);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(12) YES NULL
-select hex(a) from v1;
-hex(a)
-3132332E343536
-drop table t1;
-drop view v1;
-create table t1 (a float zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(12) YES NULL
-select hex(a) from v1;
-hex(a)
-303030303030303030312E31
-303030303030303031302E31
-303030303030303130302E31
-303030303030313030302E31
-303030303031303030302E31
-drop table t1;
-drop view v1;
-create table t1 (a double);
-insert into t1 values (123.456);
-select concat(a) from t1;
-concat(a)
-123.456
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(22) YES NULL
-select hex(a) from v1;
-hex(a)
-3132332E343536
-drop table t1;
-drop view v1;
-create table t1 (a double zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(22) YES NULL
-select hex(a) from v1;
-hex(a)
-30303030303030303030303030303030303030312E31
-30303030303030303030303030303030303031302E31
-30303030303030303030303030303030303130302E31
-30303030303030303030303030303030313030302E31
-30303030303030303030303030303031303030302E31
-drop table t1;
-drop view v1;
-create table t1 (a year(2));
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(2) YES NULL
-select hex(a) from v1;
-hex(a)
-3031
-drop table t1;
-drop view v1;
-create table t1 (a year);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(4) YES NULL
-select hex(a) from v1;
-hex(a)
-32303031
-drop table t1;
-drop view v1;
-create table t1 (a bit(64));
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(64) YES NULL
-select hex(a) from v1;
-hex(a)
-0000000000000001
-drop table t1;
-drop view v1;
-create table t1 (a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values (0);
-insert into t1 values (20010203040506);
-insert into t1 values (19800203040506);
-insert into t1 values ('2001-02-03 04:05:06');
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(19) YES NULL
-select hex(a) from v1;
-hex(a)
-303030302D30302D30302030303A30303A3030
-323030312D30322D30332030343A30353A3036
-313938302D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-drop table t1;
-drop view v1;
-create table t1 (a date);
-insert into t1 values ('2001-02-03');
-insert into t1 values (20010203);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(10) YES NULL
-select hex(a) from v1;
-hex(a)
-323030312D30322D3033
-323030312D30322D3033
-drop table t1;
-drop view v1;
-create table t1 (a time);
-insert into t1 values (1);
-insert into t1 values ('01:02:03');
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(10) YES NULL
-select hex(a) from v1;
-hex(a)
-30303A30303A3031
-30313A30323A3033
-drop table t1;
-drop view v1;
-create table t1 (a datetime);
-insert into t1 values ('2001-02-03 04:05:06');
-insert into t1 values (20010203040506);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(19) YES NULL
-select hex(a) from v1;
-hex(a)
-323030312D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-drop table t1;
-drop view v1;
-create function f1 (par1 int) returns int
-begin
-return concat(par1);
-end|
-set @a= f1(1);
-select hex(@a);
-hex(@a)
-1
-select hex(concat(f1(1)));
-hex(concat(f1(1)))
-31
-create table t1 as select f1(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(1)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(11) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 decimal(18,2)) returns decimal(18,2)
-begin
-return concat(par1);
-end|
-set @a= f1(123.45);
-select hex(@a);
-hex(@a)
-7B
-select hex(concat(f1(123.45)));
-hex(concat(f1(123.45)))
-3132332E3435
-create table t1 as select f1(123.45) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` decimal(18,2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(123.45)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(123.45)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(20) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 float) returns float
-begin
-return concat(par1);
-end|
-set @a= f1(123.45);
-select hex(@a);
-hex(@a)
-7B
-select hex(concat(f1(123.45)));
-hex(concat(f1(123.45)))
-3132332E3435
-create table t1 as select f1(123.45) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` float DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(123.45)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(123.45)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(12) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 date) returns date
-begin
-return concat(par1);
-end|
-set @a= f1(cast('2001-01-02' as date));
-select hex(@a);
-hex(@a)
-323030312D30312D3032
-select hex(concat(f1(cast('2001-01-02' as date))));
-hex(concat(f1(cast('2001-01-02' as date))))
-323030312D30312D3032
-create table t1 as select f1(cast('2001-01-02' as date)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(cast('2001-01-02' as date))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(cast('2001-01-02' as date))) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(10) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-#
-# End of WL#2649 Number-to-string conversions
-#
-#
-# Bug#54668 User variable assignments get wrong type
-#
-SET @x=md5('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-latin1 latin1_swedish_ci
-SET @x=old_password('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-latin1 latin1_swedish_ci
-SET @x=password('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-latin1 latin1_swedish_ci
-SET @x=sha('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-latin1 latin1_swedish_ci
-SET @x=sha1('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-latin1 latin1_swedish_ci
-SET @x=astext(point(1,2));
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-latin1 latin1_swedish_ci
-SET @x=aswkt(point(1,2));
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-latin1 latin1_swedish_ci
-#
-# Bug#54916 GROUP_CONCAT + IFNULL truncates output
-#
-SELECT @@collation_connection;
-@@collation_connection
-latin1_swedish_ci
-CREATE TABLE t1 (a MEDIUMINT NULL) ENGINE=MYISAM;
-INSERT INTO t1 VALUES (1234567);
-SELECT GROUP_CONCAT(IFNULL(a,'')) FROM t1;
-GROUP_CONCAT(IFNULL(a,''))
-1234567
-SELECT GROUP_CONCAT(IF(a,a,'')) FROM t1;
-GROUP_CONCAT(IF(a,a,''))
-1234567
-SELECT GROUP_CONCAT(CASE WHEN a THEN a ELSE '' END) FROM t1;
-GROUP_CONCAT(CASE WHEN a THEN a ELSE '' END)
-1234567
-SELECT COALESCE(a,'') FROM t1 GROUP BY 1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def COALESCE(a,'') 253 9 7 Y 0 39 8
-COALESCE(a,'')
-1234567
-# All columns must be VARCHAR(9) with the same length:
-CREATE TABLE t2 AS
-SELECT
-CONCAT(a),
-IFNULL(a,''),
-IF(a,a,''),
-CASE WHEN a THEN a ELSE '' END,
-COALESCE(a,'')
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT(a)` varchar(9) DEFAULT NULL,
- `IFNULL(a,'')` varchar(9) NOT NULL,
- `IF(a,a,'')` varchar(9) DEFAULT NULL,
- `CASE WHEN a THEN a ELSE '' END` varchar(9) DEFAULT NULL,
- `COALESCE(a,'')` varchar(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT CONCAT_WS(1,2,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT_WS(1,2,3)` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT INSERT(1133,3,0,22) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `INSERT(1133,3,0,22)` varchar(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LCASE(a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LCASE(a)` varchar(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT UCASE(a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `UCASE(a)` varchar(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT REPEAT(1,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `REPEAT(1,2)` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LEFT(123,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEFT(123,2)` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT RIGHT(123,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `RIGHT(123,2)` varchar(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LTRIM(123) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LTRIM(123)` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT RTRIM(123) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `RTRIM(123)` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT ELT(1,111,222,333) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ELT(1,111,222,333)` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT REPLACE(111,2,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `REPLACE(111,2,3)` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT SUBSTRING_INDEX(111,111,1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `SUBSTRING_INDEX(111,111,1)` varchar(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT MAKE_SET(111,222,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `MAKE_SET(111,222,3)` varchar(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT SOUNDEX(1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `SOUNDEX(1)` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT EXPORT_SET(1,'Y','N','',8);
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `EXPORT_SET(1,'Y','N','',8)` varchar(64) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# End of Bug#54916
-#
-#
-# Bug#58190 BETWEEN no longer uses indexes for date or datetime fields
-#
-SELECT @@collation_connection;
-@@collation_connection
-latin1_swedish_ci
-CREATE TABLE t1 (
-id INT(11) DEFAULT NULL,
-date_column DATE DEFAULT NULL,
-KEY(date_column));
-INSERT INTO t1 VALUES (1,'2010-09-01'),(2,'2010-10-01');
-EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range date_column date_column 4 NULL 1 Using index condition
-ALTER TABLE t1 MODIFY date_column DATETIME DEFAULT NULL;
-EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range date_column date_column 6 NULL 1 Using index condition
-DROP TABLE t1;
-#
-# Bug #31384 DATE_ADD() and DATE_SUB() return binary data
-#
-SELECT @@collation_connection, @@character_set_results;
-@@collation_connection @@character_set_results
-latin1_swedish_ci latin1
-SELECT
-CHARSET(DATE_SUB('2007-08-03', INTERVAL 1 MINUTE)) AS field_str1,
-CHARSET(DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE)) AS field_str2,
-CHARSET(DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY)) AS field_date,
-CHARSET(DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE)) AS field_datetime;
-field_str1 field_str2 field_date field_datetime
-latin1 latin1 binary binary
-CREATE TABLE t1 AS
-SELECT
-DATE_SUB('2007-08-03', INTERVAL 1 MINUTE) AS field_str1,
-DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE) AS field1_str2,
-DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY) AS field_date,
-DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE) AS field_datetime;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `field_str1` varchar(19) DEFAULT NULL,
- `field1_str2` varchar(19) DEFAULT NULL,
- `field_date` date DEFAULT NULL,
- `field_datetime` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SELECT
-DATE_SUB('2007-08-03', INTERVAL 1 DAY) AS field_str1,
-DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE) AS field1_str2,
-DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY) AS field_date,
-DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE) AS field_datetime;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def field_str1 254 19 10 Y 0 0 8
-def field1_str2 254 19 19 Y 0 0 8
-def field_date 10 10 10 Y 128 0 63
-def field_datetime 12 19 19 Y 128 0 63
-field_str1 field1_str2 field_date field_datetime
-2007-08-02 2007-08-03 17:32:00 2007-08-02 2007-08-03 17:32:00
-SELECT
-HEX(DATE_SUB('2007-08-03', INTERVAL 1 MINUTE)) AS field_str1,
-HEX(DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE)) AS field1_str2,
-HEX(DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY)) AS field_date,
-HEX(DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE)) AS field_datetime;
-field_str1 field1_str2 field_date field_datetime
-323030372D30382D30322032333A35393A3030 323030372D30382D30332031373A33323A3030 323030372D30382D3032 323030372D30382D30332031373A33323A3030
-#
-# MDEV-4841 Wrong character set of ADDTIME() and DATE_ADD()
-#
-SELECT @@collation_connection, @@character_set_results;
-@@collation_connection @@character_set_results
-latin1_swedish_ci latin1
-SELECT
-CHARSET(ADDTIME(_latin1'10:01:01',_latin1'10:00:00')) AS addtime1,
-CHARSET(ADDTIME('10:01:01','10:00:00')) AS addtime2,
-CHARSET(DATE_ADD(_latin1'2001-01-01 10:01:01',interval 10 second)) AS date_add1,
-CHARSET(DATE_ADD('2001-01-01 10:01:01',interval 10 second)) AS date_add2;
-addtime1 addtime2 date_add1 date_add2
-latin1 latin1 latin1 latin1
-CREATE TABLE t1 AS
-SELECT
-ADDTIME(_latin1'10:01:01',_latin1'10:00:00') AS addtime1,
-ADDTIME('10:01:01','10:00:00') AS addtime2,
-DATE_ADD(_latin1'2001-01-01 10:01:01',interval 10 second) AS date_add1,
-DATE_ADD('2001-01-01 10:01:01',interval 10 second) AS date_add2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `addtime1` varchar(26) DEFAULT NULL,
- `addtime2` varchar(26) DEFAULT NULL,
- `date_add1` varchar(19) DEFAULT NULL,
- `date_add2` varchar(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-addtime1 addtime2 date_add1 date_add2
-20:01:01 20:01:01 2001-01-01 10:01:11 2001-01-01 10:01:11
-DROP TABLE t1;
-#
-# Bug#11926811 / Bug#60625 Illegal mix of collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-latin1_swedish_ci
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE v_LastPaymentDate DATETIME DEFAULT NULL;
-SELECT v_LastPaymentDate < NOW();
-EXPLAIN EXTENDED SELECT v_LastPaymentDate < NOW();
-SHOW WARNINGS;
-EXPLAIN EXTENDED SELECT CONCAT(v_LastPaymentDate, NOW());
-END//
-CALL p1;
-v_LastPaymentDate < NOW()
-NULL
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Level Code Message
-Note 1003 select v_LastPaymentDate@0 < current_timestamp() AS `v_LastPaymentDate < NOW()`
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select concat(v_LastPaymentDate@0,current_timestamp()) AS `CONCAT(v_LastPaymentDate, NOW())`
-DROP PROCEDURE p1;
-#
-# Bug#52159 returning time type from function and empty left join causes debug assertion
-#
-CREATE FUNCTION f1() RETURNS TIME RETURN 1;
-CREATE TABLE t1 (b INT);
-INSERT INTO t1 VALUES (0);
-SELECT f1() FROM t1 LEFT JOIN (SELECT 1 AS a FROM t1 LIMIT 0) AS d ON 1 GROUP BY a;
-f1()
-00:00:01
-DROP FUNCTION f1;
-DROP TABLE t1;
-#
-# MDEV-9662 Assertion `precision || !scale' failed in my_decimal_precision_to_length_no_truncation(uint, uint8, bool)
-#
-SELECT @@collation_connection;
-@@collation_connection
-latin1_swedish_ci
-SELECT CASE 1 WHEN 2 THEN ( - '3' ) END;
-CASE 1 WHEN 2 THEN ( - '3' ) END
-NULL
-#
-# MDEV-5702 Incorrect results are returned with NULLIF()
-#
-CREATE TABLE t1 (d DATE);
-INSERT INTO t1 VALUES ('1999-11-11'),('2014-02-04');
-SELECT DISTINCT d, CAST(d AS CHAR), NULLIF(d,"2000-01-01") AS bad, NULLIF(CAST(d AS CHAR),"2000-01-01") AS good FROM t1;
-d CAST(d AS CHAR) bad good
-1999-11-11 1999-11-11 1999-11-11 1999-11-11
-2014-02-04 2014-02-04 2014-02-04 2014-02-04
-CREATE TABLE t2 AS SELECT DISTINCT d, NULLIF(d,'2000-01-01') AS bad FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `d` date DEFAULT NULL,
- `bad` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1, t2;
-SET NAMES latin1;
-SET sql_mode='';
-CREATE TABLE t1(a char(215) CHARACTER SET utf8 NOT NULL DEFAULT '', KEY(a));
-INSERT INTO t1 VALUES ();
-SELECT maketime(`a`,`a`,`a`) FROM t1 GROUP BY 1;
-maketime(`a`,`a`,`a`)
-00:00:00.000000
-DROP TABLE t1;
-SET sql_mode=default;
-#
-# Bug#11764503 (Bug#57341) Query in EXPLAIN EXTENDED shows wrong characters
-#
-SET NAMES utf8;
-EXPLAIN EXTENDED SELECT 'abcdó', _latin1'abcdó', _utf8'abcdó';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 'abcdó' AS `abcdó`,_latin1'abcd\xC3\xB3' AS `abcdó`,_utf8'abcd\xC3\xB3' AS `abcdó`
-SET NAMES latin1;
-EXPLAIN EXTENDED SELECT 'abcdó', _latin1'abcdó', _utf8'abcdó';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 'abcdó' AS `abcdó`,_latin1'abcd\xC3\xB3' AS `abcdó`,_utf8'abcd\xC3\xB3' AS `abcdó`
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set @@collation_connection=latin1_swedish_ci;
-select @@collation_connection;
-@@collation_connection
-latin1_swedish_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-41
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-4141414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-4141414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41414141412020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41414141412020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-41
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-414243
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-4142
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-414243
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-4142432020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-41
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-4142
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-414220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-41422020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-4142202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-41422020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-41
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-4142
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-414243
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-41424320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-41
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-4142
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-414243
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-41424320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-latin1_swedish_ci
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-8080802020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-808020
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-80802020
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-8080202020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-80802020202020202020202020202020202020202020202020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-80808020
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-8080802020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-80808020202020202020202020202020202020202020202020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-80808020
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-8080802020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-80808020202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-latin1_swedish_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-41
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-414243
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-4142
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-414243
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-4142432020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020434241
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-BEBDBCDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDFBCBDBE
-set @@collation_connection=latin1_bin;
-select @@collation_connection;
-@@collation_connection
-latin1_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-61
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-6161616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-6161616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61616161612020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61616161612020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-61
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-616263
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-6162
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-616263
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-6162632020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-61
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-6162
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-616220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-61622020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-6162202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-61622020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-61
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-6162
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-616263
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-61626320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-61
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-6162
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-616263
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-61626320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-latin1_bin
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-8080802020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-808020
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-80802020
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-8080202020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-80802020202020202020202020202020202020202020202020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-80808020
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-8080802020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-80808020202020202020202020202020202020202020202020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-80808020
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-8080802020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-80808020202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-latin1_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-61
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-616263
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-6162
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-616263
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-6162632020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020636261
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-9E9D9CDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDF9C9D9E
-set @@collation_connection=latin1_general_cs;
-select @@collation_connection;
-@@collation_connection
-latin1_general_cs
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-42
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-42
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET latin1 COLLATE latin1_general_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-4242424242
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-4242424242
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-424242
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-424242
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-42424242422020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-42424242422020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-42
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-425254
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-4252
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-425254
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-4252542020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-42
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-4252
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-425220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-42522020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-4252202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-42522020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-42
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-4252
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-425254
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-42525420
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-4252542020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-42525420202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-42
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-4252
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-425254
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-42525420
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-4252542020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-42525420202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-latin1_general_cs
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-C0
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-C0C0C0
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-C0C0
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-C0C0C0
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-C0C0C02020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-C0
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-C0C0
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-C0C020
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-C0C02020
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-C0C0202020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-C0C02020202020202020202020202020202020202020202020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-C0
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-C0C0
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-C0C0C0
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-C0C0C020
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-C0C0C02020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-C0C0C020202020202020202020202020202020202020202020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-C0
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-C0C0
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-C0C0C0
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-C0C0C020
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-C0C0C02020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-C0C0C020202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-latin1_general_cs
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-42
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-425254
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-4252
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-425254
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-4252542020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020545242
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-BDADABDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDFABADBD
-set @@collation_connection=binary;
-select @@collation_connection;
-@@collation_connection
-binary
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varbinary(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-61
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varbinary(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-6161616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-6161616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61616161610000000000
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61616161610000000000
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-61
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-616263
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-6162
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-616263
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-6162630000
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-61
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-6162
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-616200
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-61620000
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-6162000000
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-61620000000000000000000000000000000000000000000000
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-61
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-6162
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-616263
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-61626300
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-6162630000
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-61626300000000000000000000000000000000000000000000
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-61
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-6162
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-616263
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-61626300
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-6162630000
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-61626300000000000000000000000000000000000000000000
-select @@collation_connection;
-@@collation_connection
-binary
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-8080800000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-808000
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-80800000
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-8080000000
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-80800000000000000000000000000000000000000000000000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-80808000
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-8080800000
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-80808000000000000000000000000000000000000000000000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-80808000
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-8080800000
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-80808000000000000000000000000000000000000000000000
-select @@collation_connection;
-@@collation_connection
-binary
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-61
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-616263
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-6162
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-616263
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-6162630000
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-0000636261
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-9E9D9CFFFF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-FFFF9C9D9E
-set names latin1;
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.0 tests
-#
-# Start of ctype_unescape.inc
-SET sql_mode = '';
-SET @query=_binary'SELECT CHARSET(\'test\'),@@character_set_client,@@character_set_connection';
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-CHARSET('test') @@character_set_client @@character_set_connection
-latin1 latin1 latin1
-DEALLOCATE PREPARE stmt;
-CREATE TABLE allbytes (a VARBINARY(10));
-# Using selected bytes combinations
-CREATE TABLE halfs (a INT);
-INSERT INTO halfs VALUES (0x00),(0x01),(0x02),(0x03),(0x04),(0x05),(0x06),(0x07);
-INSERT INTO halfs VALUES (0x08),(0x09),(0x0A),(0x0B),(0x0C),(0x0D),(0x0E),(0x0F);
-CREATE TEMPORARY TABLE bytes (a BINARY(1), KEY(a)) ENGINE=MyISAM;
-INSERT INTO bytes SELECT CHAR((t1.a << 4) | t2.a USING BINARY) FROM halfs t1, halfs t2;
-DROP TABLE halfs;
-CREATE TABLE selected_bytes (a VARBINARY(10));
-INSERT INTO selected_bytes (a) VALUES ('\0'),('\b'),('\t'),('\r'),('\n'),('\Z');
-INSERT INTO selected_bytes (a) VALUES ('0'),('b'),('t'),('r'),('n'),('Z');
-INSERT INTO selected_bytes (a) VALUES ('\\'),('_'),('%'),(0x22),(0x27);
-INSERT INTO selected_bytes (a) VALUES ('a');
-INSERT INTO selected_bytes (a) VALUES
-(0x3F), # 7bit
-(0x40), # 7bit mbtail
-(0x7E), # 7bit mbtail nonascii-8bit
-(0x7F), # 7bit nonascii-8bit
-(0x80), # mbtail bad-mb
-(0x81), # mbhead mbtail
-(0x9F), # mbhead mbtail bad-mb
-(0xA0), # mbhead mbtail bad-mb
-(0xA1), # mbhead mbtail nonascii-8bit
-(0xE0), # mbhead mbtai
-(0xEF), # mbhead mbtail
-(0xF9), # mbhead mbtail
-(0xFA), # mbhead mbtail bad-mb
-(0xFC), # mbhead mbtail bad-mb
-(0xFD), # mbhead mbtail bad-mb
-(0xFE), # mbhead mbtial bad-mb
-(0xFF);
-INSERT INTO allbytes (a) SELECT a FROM bytes;
-INSERT INTO allbytes (a) SELECT CONCAT(t1.a,t2.a) FROM selected_bytes t1,selected_bytes t2;
-INSERT INTO allbytes (a) SELECT CONCAT(0x5C,t1.a,t2.a) FROM selected_bytes t1,selected_bytes t2;
-INSERT INTO allbytes (a) SELECT CONCAT(0x5C,t1.a,0x5C,t2.a) FROM selected_bytes t1,selected_bytes t2;
-DROP TABLE selected_bytes;
-DELETE FROM allbytes WHERE
-OCTET_LENGTH(a)>1 AND
-LOCATE(0x5C,a)=0 AND
-a NOT LIKE '%\'%' AND
- a NOT LIKE '%"%';
-CREATE PROCEDURE p1(val VARBINARY(10))
-BEGIN
-DECLARE EXIT HANDLER FOR SQLSTATE '42000' INSERT INTO t1 (a,b) VALUES(val,NULL);
-SET @query=CONCAT(_binary"INSERT INTO t1 (a,b) VALUES (0x",HEX(val),",'",val,"')");
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-END//
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE val VARBINARY(10);
-DECLARE done INT DEFAULT FALSE;
-DECLARE stmt CURSOR FOR SELECT a FROM allbytes;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN stmt;
-read_loop1: LOOP
-FETCH stmt INTO val;
-IF done THEN
-LEAVE read_loop1;
-END IF;
-CALL p1(val);
-END LOOP;
-CLOSE stmt;
-END//
-CREATE FUNCTION iswellformed(a VARBINARY(256)) RETURNS INT RETURN a=BINARY CONVERT(a USING latin1);//
-CREATE FUNCTION unescape(a VARBINARY(256)) RETURNS VARBINARY(256)
-BEGIN
-# We need to do it in a way to avoid producing new escape sequences
-# First, enclose all known escsape sequences to '{{xx}}'
- # - Backslash not followed by a LIKE pattern characters _ and %
-# - Double escapes
-# This uses PCRE Branch Reset Groups: (?|(alt1)|(alt2)|(alt3)).
-# So '\\1' in the last argument always means the match, no matter
-# which alternative it came from.
-SET a=REGEXP_REPLACE(a,'(?|(\\\\[^_%])|(\\x{27}\\x{27}))','{{\\1}}');
-# Now unescape all enclosed standard escape sequences
-SET a=REPLACE(a,'{{\\0}}', '\0');
-SET a=REPLACE(a,'{{\\b}}', '\b');
-SET a=REPLACE(a,'{{\\t}}', '\t');
-SET a=REPLACE(a,'{{\\r}}', '\r');
-SET a=REPLACE(a,'{{\\n}}', '\n');
-SET a=REPLACE(a,'{{\\Z}}', '\Z');
-SET a=REPLACE(a,'{{\\\'}}', '\'');
-# Unescape double quotes
-SET a=REPLACE(a,'{{\'\'}}', '\'');
- # Unescape the rest: all other \x sequences mean just 'x'
- SET a=REGEXP_REPLACE(a, '{{\\\\(.|\\R)}}', '\\1');
- RETURN a;
-END//
-CREATE FUNCTION unescape_type(a VARBINARY(256),b VARBINARY(256)) RETURNS VARBINARY(256)
-BEGIN
-RETURN CASE
-WHEN b IS NULL THEN '[SyntErr]'
- WHEN a=b THEN CASE
-WHEN OCTET_LENGTH(a)=1 THEN '[Preserve]'
- WHEN a RLIKE '\\\\[_%]' THEN '[Preserve][LIKE]'
- WHEN a RLIKE '^[[:ascii:]]+$' THEN '[Preserve][ASCII]'
- ELSE '[Preserv][MB]' END
-WHEN REPLACE(a,0x5C,'')=b THEN '[Trivial]'
- WHEN UNESCAPE(a)=b THEN '[Regular]'
- ELSE '[Special]' END;
-END//
-CREATE FUNCTION wellformedness(a VARBINARY(256), b VARBINARY(256))
-RETURNS VARBINARY(256)
-BEGIN
-RETURN CASE
-WHEN b IS NULL THEN ''
- WHEN NOT iswellformed(a) AND iswellformed(b) THEN '[FIXED]'
- WHEN iswellformed(a) AND NOT iswellformed(b) THEN '[BROKE]'
- WHEN NOT iswellformed(a) AND NOT iswellformed(b) THEN '[ILSEQ]'
- ELSE ''
- END;
-END//
-CREATE FUNCTION mysql_real_escape_string_generated(a VARBINARY(256))
-RETURNS VARBINARY(256)
-BEGIN
-DECLARE a1 BINARY(1) DEFAULT SUBSTR(a,1,1);
-DECLARE a2 BINARY(1) DEFAULT SUBSTR(a,2,1);
-DECLARE a3 BINARY(1) DEFAULT SUBSTR(a,3,1);
-DECLARE a4 BINARY(1) DEFAULT SUBSTR(a,4,1);
-DECLARE a2a4 BINARY(2) DEFAULT CONCAT(a2,a4);
-RETURN CASE
-WHEN (a1=0x5C) AND
-(a3=0x5C) AND
-(a2>0x7F) AND
-(a4 NOT IN ('_','%','0','t','r','n','Z')) AND
-iswellformed(a2a4) THEN '[USER]'
- ELSE ''
- END;
-END//
-CREATE TABLE t1 (a VARBINARY(10),b VARBINARY(10));
-CALL p2();
-SELECT HEX(a),HEX(b),
-CONCAT(unescape_type(a,b),
-wellformedness(a,b),
-mysql_real_escape_string_generated(a),
-IF(UNESCAPE(a)<>b,CONCAT('[BAD',HEX(UNESCAPE(a)),']'),'')) AS comment
-FROM t1 ORDER BY LENGTH(a),a;
-HEX(a) HEX(b) comment
-00 00 [Preserve]
-01 01 [Preserve]
-02 02 [Preserve]
-03 03 [Preserve]
-04 04 [Preserve]
-05 05 [Preserve]
-06 06 [Preserve]
-07 07 [Preserve]
-08 08 [Preserve]
-09 09 [Preserve]
-0A 0A [Preserve]
-0B 0B [Preserve]
-0C 0C [Preserve]
-0D 0D [Preserve]
-0E 0E [Preserve]
-0F 0F [Preserve]
-10 10 [Preserve]
-11 11 [Preserve]
-12 12 [Preserve]
-13 13 [Preserve]
-14 14 [Preserve]
-15 15 [Preserve]
-16 16 [Preserve]
-17 17 [Preserve]
-18 18 [Preserve]
-19 19 [Preserve]
-1A 1A [Preserve]
-1B 1B [Preserve]
-1C 1C [Preserve]
-1D 1D [Preserve]
-1E 1E [Preserve]
-1F 1F [Preserve]
-20 20 [Preserve]
-21 21 [Preserve]
-22 22 [Preserve]
-23 23 [Preserve]
-24 24 [Preserve]
-25 25 [Preserve]
-26 26 [Preserve]
-27 NULL [SyntErr]
-28 28 [Preserve]
-29 29 [Preserve]
-2A 2A [Preserve]
-2B 2B [Preserve]
-2C 2C [Preserve]
-2D 2D [Preserve]
-2E 2E [Preserve]
-2F 2F [Preserve]
-30 30 [Preserve]
-31 31 [Preserve]
-32 32 [Preserve]
-33 33 [Preserve]
-34 34 [Preserve]
-35 35 [Preserve]
-36 36 [Preserve]
-37 37 [Preserve]
-38 38 [Preserve]
-39 39 [Preserve]
-3A 3A [Preserve]
-3B 3B [Preserve]
-3C 3C [Preserve]
-3D 3D [Preserve]
-3E 3E [Preserve]
-3F 3F [Preserve]
-40 40 [Preserve]
-41 41 [Preserve]
-42 42 [Preserve]
-43 43 [Preserve]
-44 44 [Preserve]
-45 45 [Preserve]
-46 46 [Preserve]
-47 47 [Preserve]
-48 48 [Preserve]
-49 49 [Preserve]
-4A 4A [Preserve]
-4B 4B [Preserve]
-4C 4C [Preserve]
-4D 4D [Preserve]
-4E 4E [Preserve]
-4F 4F [Preserve]
-50 50 [Preserve]
-51 51 [Preserve]
-52 52 [Preserve]
-53 53 [Preserve]
-54 54 [Preserve]
-55 55 [Preserve]
-56 56 [Preserve]
-57 57 [Preserve]
-58 58 [Preserve]
-59 59 [Preserve]
-5A 5A [Preserve]
-5B 5B [Preserve]
-5C NULL [SyntErr]
-5D 5D [Preserve]
-5E 5E [Preserve]
-5F 5F [Preserve]
-60 60 [Preserve]
-61 61 [Preserve]
-62 62 [Preserve]
-63 63 [Preserve]
-64 64 [Preserve]
-65 65 [Preserve]
-66 66 [Preserve]
-67 67 [Preserve]
-68 68 [Preserve]
-69 69 [Preserve]
-6A 6A [Preserve]
-6B 6B [Preserve]
-6C 6C [Preserve]
-6D 6D [Preserve]
-6E 6E [Preserve]
-6F 6F [Preserve]
-70 70 [Preserve]
-71 71 [Preserve]
-72 72 [Preserve]
-73 73 [Preserve]
-74 74 [Preserve]
-75 75 [Preserve]
-76 76 [Preserve]
-77 77 [Preserve]
-78 78 [Preserve]
-79 79 [Preserve]
-7A 7A [Preserve]
-7B 7B [Preserve]
-7C 7C [Preserve]
-7D 7D [Preserve]
-7E 7E [Preserve]
-7F 7F [Preserve]
-80 80 [Preserve]
-81 81 [Preserve]
-82 82 [Preserve]
-83 83 [Preserve]
-84 84 [Preserve]
-85 85 [Preserve]
-86 86 [Preserve]
-87 87 [Preserve]
-88 88 [Preserve]
-89 89 [Preserve]
-8A 8A [Preserve]
-8B 8B [Preserve]
-8C 8C [Preserve]
-8D 8D [Preserve]
-8E 8E [Preserve]
-8F 8F [Preserve]
-90 90 [Preserve]
-91 91 [Preserve]
-92 92 [Preserve]
-93 93 [Preserve]
-94 94 [Preserve]
-95 95 [Preserve]
-96 96 [Preserve]
-97 97 [Preserve]
-98 98 [Preserve]
-99 99 [Preserve]
-9A 9A [Preserve]
-9B 9B [Preserve]
-9C 9C [Preserve]
-9D 9D [Preserve]
-9E 9E [Preserve]
-9F 9F [Preserve]
-A0 A0 [Preserve]
-A1 A1 [Preserve]
-A2 A2 [Preserve]
-A3 A3 [Preserve]
-A4 A4 [Preserve]
-A5 A5 [Preserve]
-A6 A6 [Preserve]
-A7 A7 [Preserve]
-A8 A8 [Preserve]
-A9 A9 [Preserve]
-AA AA [Preserve]
-AB AB [Preserve]
-AC AC [Preserve]
-AD AD [Preserve]
-AE AE [Preserve]
-AF AF [Preserve]
-B0 B0 [Preserve]
-B1 B1 [Preserve]
-B2 B2 [Preserve]
-B3 B3 [Preserve]
-B4 B4 [Preserve]
-B5 B5 [Preserve]
-B6 B6 [Preserve]
-B7 B7 [Preserve]
-B8 B8 [Preserve]
-B9 B9 [Preserve]
-BA BA [Preserve]
-BB BB [Preserve]
-BC BC [Preserve]
-BD BD [Preserve]
-BE BE [Preserve]
-BF BF [Preserve]
-C0 C0 [Preserve]
-C1 C1 [Preserve]
-C2 C2 [Preserve]
-C3 C3 [Preserve]
-C4 C4 [Preserve]
-C5 C5 [Preserve]
-C6 C6 [Preserve]
-C7 C7 [Preserve]
-C8 C8 [Preserve]
-C9 C9 [Preserve]
-CA CA [Preserve]
-CB CB [Preserve]
-CC CC [Preserve]
-CD CD [Preserve]
-CE CE [Preserve]
-CF CF [Preserve]
-D0 D0 [Preserve]
-D1 D1 [Preserve]
-D2 D2 [Preserve]
-D3 D3 [Preserve]
-D4 D4 [Preserve]
-D5 D5 [Preserve]
-D6 D6 [Preserve]
-D7 D7 [Preserve]
-D8 D8 [Preserve]
-D9 D9 [Preserve]
-DA DA [Preserve]
-DB DB [Preserve]
-DC DC [Preserve]
-DD DD [Preserve]
-DE DE [Preserve]
-DF DF [Preserve]
-E0 E0 [Preserve]
-E1 E1 [Preserve]
-E2 E2 [Preserve]
-E3 E3 [Preserve]
-E4 E4 [Preserve]
-E5 E5 [Preserve]
-E6 E6 [Preserve]
-E7 E7 [Preserve]
-E8 E8 [Preserve]
-E9 E9 [Preserve]
-EA EA [Preserve]
-EB EB [Preserve]
-EC EC [Preserve]
-ED ED [Preserve]
-EE EE [Preserve]
-EF EF [Preserve]
-F0 F0 [Preserve]
-F1 F1 [Preserve]
-F2 F2 [Preserve]
-F3 F3 [Preserve]
-F4 F4 [Preserve]
-F5 F5 [Preserve]
-F6 F6 [Preserve]
-F7 F7 [Preserve]
-F8 F8 [Preserve]
-F9 F9 [Preserve]
-FA FA [Preserve]
-FB FB [Preserve]
-FC FC [Preserve]
-FD FD [Preserve]
-FE FE [Preserve]
-FF FF [Preserve]
-0022 0022 [Preserve][ASCII]
-0027 NULL [SyntErr]
-005C NULL [SyntErr]
-0822 0822 [Preserve][ASCII]
-0827 NULL [SyntErr]
-085C NULL [SyntErr]
-0922 0922 [Preserve][ASCII]
-0927 NULL [SyntErr]
-095C NULL [SyntErr]
-0A22 0A22 [Preserve][ASCII]
-0A27 NULL [SyntErr]
-0A5C NULL [SyntErr]
-0D22 0D22 [Preserve][ASCII]
-0D27 NULL [SyntErr]
-0D5C NULL [SyntErr]
-1A22 1A22 [Preserve][ASCII]
-1A27 NULL [SyntErr]
-1A5C NULL [SyntErr]
-2200 2200 [Preserve][ASCII]
-2208 2208 [Preserve][ASCII]
-2209 2209 [Preserve][ASCII]
-220A 220A [Preserve][ASCII]
-220D 220D [Preserve][ASCII]
-221A 221A [Preserve][ASCII]
-2222 2222 [Preserve][ASCII]
-2225 2225 [Preserve][ASCII]
-2227 NULL [SyntErr]
-2230 2230 [Preserve][ASCII]
-223F 223F [Preserve][ASCII]
-2240 2240 [Preserve][ASCII]
-225A 225A [Preserve][ASCII]
-225C NULL [SyntErr]
-225F 225F [Preserve][ASCII]
-2261 2261 [Preserve][ASCII]
-2262 2262 [Preserve][ASCII]
-226E 226E [Preserve][ASCII]
-2272 2272 [Preserve][ASCII]
-2274 2274 [Preserve][ASCII]
-227E 227E [Preserve][ASCII]
-227F 227F [Preserve][ASCII]
-2280 2280 [Preserv][MB]
-2281 2281 [Preserv][MB]
-229F 229F [Preserv][MB]
-22A0 22A0 [Preserv][MB]
-22A1 22A1 [Preserv][MB]
-22E0 22E0 [Preserv][MB]
-22EF 22EF [Preserv][MB]
-22F9 22F9 [Preserv][MB]
-22FA 22FA [Preserv][MB]
-22FC 22FC [Preserv][MB]
-22FD 22FD [Preserv][MB]
-22FE 22FE [Preserv][MB]
-22FF 22FF [Preserv][MB]
-2522 2522 [Preserve][ASCII]
-2527 NULL [SyntErr]
-255C NULL [SyntErr]
-2700 NULL [SyntErr]
-2708 NULL [SyntErr]
-2709 NULL [SyntErr]
-270A NULL [SyntErr]
-270D NULL [SyntErr]
-271A NULL [SyntErr]
-2722 NULL [SyntErr]
-2725 NULL [SyntErr]
-2727 27 [Regular]
-2730 NULL [SyntErr]
-273F NULL [SyntErr]
-2740 NULL [SyntErr]
-275A NULL [SyntErr]
-275C NULL [SyntErr]
-275F NULL [SyntErr]
-2761 NULL [SyntErr]
-2762 NULL [SyntErr]
-276E NULL [SyntErr]
-2772 NULL [SyntErr]
-2774 NULL [SyntErr]
-277E NULL [SyntErr]
-277F NULL [SyntErr]
-2780 NULL [SyntErr]
-2781 NULL [SyntErr]
-279F NULL [SyntErr]
-27A0 NULL [SyntErr]
-27A1 NULL [SyntErr]
-27E0 NULL [SyntErr]
-27EF NULL [SyntErr]
-27F9 NULL [SyntErr]
-27FA NULL [SyntErr]
-27FC NULL [SyntErr]
-27FD NULL [SyntErr]
-27FE NULL [SyntErr]
-27FF NULL [SyntErr]
-3022 3022 [Preserve][ASCII]
-3027 NULL [SyntErr]
-305C NULL [SyntErr]
-3F22 3F22 [Preserve][ASCII]
-3F27 NULL [SyntErr]
-3F5C NULL [SyntErr]
-4022 4022 [Preserve][ASCII]
-4027 NULL [SyntErr]
-405C NULL [SyntErr]
-5A22 5A22 [Preserve][ASCII]
-5A27 NULL [SyntErr]
-5A5C NULL [SyntErr]
-5C00 00 [Trivial]
-5C08 08 [Trivial]
-5C09 09 [Trivial]
-5C0A 0A [Trivial]
-5C0D 0D [Trivial]
-5C1A 1A [Trivial]
-5C22 22 [Trivial]
-5C25 5C25 [Preserve][LIKE]
-5C27 27 [Trivial]
-5C30 00 [Regular]
-5C3F 3F [Trivial]
-5C40 40 [Trivial]
-5C5A 1A [Regular]
-5C5C 5C [Regular]
-5C5F 5C5F [Preserve][LIKE]
-5C61 61 [Trivial]
-5C62 08 [Regular]
-5C6E 0A [Regular]
-5C72 0D [Regular]
-5C74 09 [Regular]
-5C7E 7E [Trivial]
-5C7F 7F [Trivial]
-5C80 80 [Trivial]
-5C81 81 [Trivial]
-5C9F 9F [Trivial]
-5CA0 A0 [Trivial]
-5CA1 A1 [Trivial]
-5CE0 E0 [Trivial]
-5CEF EF [Trivial]
-5CF9 F9 [Trivial]
-5CFA FA [Trivial]
-5CFC FC [Trivial]
-5CFD FD [Trivial]
-5CFE FE [Trivial]
-5CFF FF [Trivial]
-5F22 5F22 [Preserve][ASCII]
-5F27 NULL [SyntErr]
-5F5C NULL [SyntErr]
-6122 6122 [Preserve][ASCII]
-6127 NULL [SyntErr]
-615C NULL [SyntErr]
-6222 6222 [Preserve][ASCII]
-6227 NULL [SyntErr]
-625C NULL [SyntErr]
-6E22 6E22 [Preserve][ASCII]
-6E27 NULL [SyntErr]
-6E5C NULL [SyntErr]
-7222 7222 [Preserve][ASCII]
-7227 NULL [SyntErr]
-725C NULL [SyntErr]
-7422 7422 [Preserve][ASCII]
-7427 NULL [SyntErr]
-745C NULL [SyntErr]
-7E22 7E22 [Preserve][ASCII]
-7E27 NULL [SyntErr]
-7E5C NULL [SyntErr]
-7F22 7F22 [Preserve][ASCII]
-7F27 NULL [SyntErr]
-7F5C NULL [SyntErr]
-8022 8022 [Preserv][MB]
-8027 NULL [SyntErr]
-805C NULL [SyntErr]
-8122 8122 [Preserv][MB]
-8127 NULL [SyntErr]
-815C NULL [SyntErr]
-9F22 9F22 [Preserv][MB]
-9F27 NULL [SyntErr]
-9F5C NULL [SyntErr]
-A022 A022 [Preserv][MB]
-A027 NULL [SyntErr]
-A05C NULL [SyntErr]
-A122 A122 [Preserv][MB]
-A127 NULL [SyntErr]
-A15C NULL [SyntErr]
-E022 E022 [Preserv][MB]
-E027 NULL [SyntErr]
-E05C NULL [SyntErr]
-EF22 EF22 [Preserv][MB]
-EF27 NULL [SyntErr]
-EF5C NULL [SyntErr]
-F922 F922 [Preserv][MB]
-F927 NULL [SyntErr]
-F95C NULL [SyntErr]
-FA22 FA22 [Preserv][MB]
-FA27 NULL [SyntErr]
-FA5C NULL [SyntErr]
-FC22 FC22 [Preserv][MB]
-FC27 NULL [SyntErr]
-FC5C NULL [SyntErr]
-FD22 FD22 [Preserv][MB]
-FD27 NULL [SyntErr]
-FD5C NULL [SyntErr]
-FE22 FE22 [Preserv][MB]
-FE27 NULL [SyntErr]
-FE5C NULL [SyntErr]
-FF22 FF22 [Preserv][MB]
-FF27 NULL [SyntErr]
-FF5C NULL [SyntErr]
-5C0000 0000 [Trivial]
-5C0008 0008 [Trivial]
-5C0009 0009 [Trivial]
-5C000A 000A [Trivial]
-5C000D 000D [Trivial]
-5C001A 001A [Trivial]
-5C0022 0022 [Trivial]
-5C0025 0025 [Trivial]
-5C0027 NULL [SyntErr]
-5C0030 0030 [Trivial]
-5C003F 003F [Trivial]
-5C0040 0040 [Trivial]
-5C005A 005A [Trivial]
-5C005C NULL [SyntErr]
-5C005F 005F [Trivial]
-5C0061 0061 [Trivial]
-5C0062 0062 [Trivial]
-5C006E 006E [Trivial]
-5C0072 0072 [Trivial]
-5C0074 0074 [Trivial]
-5C007E 007E [Trivial]
-5C007F 007F [Trivial]
-5C0080 0080 [Trivial]
-5C0081 0081 [Trivial]
-5C009F 009F [Trivial]
-5C00A0 00A0 [Trivial]
-5C00A1 00A1 [Trivial]
-5C00E0 00E0 [Trivial]
-5C00EF 00EF [Trivial]
-5C00F9 00F9 [Trivial]
-5C00FA 00FA [Trivial]
-5C00FC 00FC [Trivial]
-5C00FD 00FD [Trivial]
-5C00FE 00FE [Trivial]
-5C00FF 00FF [Trivial]
-5C0800 0800 [Trivial]
-5C0808 0808 [Trivial]
-5C0809 0809 [Trivial]
-5C080A 080A [Trivial]
-5C080D 080D [Trivial]
-5C081A 081A [Trivial]
-5C0822 0822 [Trivial]
-5C0825 0825 [Trivial]
-5C0827 NULL [SyntErr]
-5C0830 0830 [Trivial]
-5C083F 083F [Trivial]
-5C0840 0840 [Trivial]
-5C085A 085A [Trivial]
-5C085C NULL [SyntErr]
-5C085F 085F [Trivial]
-5C0861 0861 [Trivial]
-5C0862 0862 [Trivial]
-5C086E 086E [Trivial]
-5C0872 0872 [Trivial]
-5C0874 0874 [Trivial]
-5C087E 087E [Trivial]
-5C087F 087F [Trivial]
-5C0880 0880 [Trivial]
-5C0881 0881 [Trivial]
-5C089F 089F [Trivial]
-5C08A0 08A0 [Trivial]
-5C08A1 08A1 [Trivial]
-5C08E0 08E0 [Trivial]
-5C08EF 08EF [Trivial]
-5C08F9 08F9 [Trivial]
-5C08FA 08FA [Trivial]
-5C08FC 08FC [Trivial]
-5C08FD 08FD [Trivial]
-5C08FE 08FE [Trivial]
-5C08FF 08FF [Trivial]
-5C0900 0900 [Trivial]
-5C0908 0908 [Trivial]
-5C0909 0909 [Trivial]
-5C090A 090A [Trivial]
-5C090D 090D [Trivial]
-5C091A 091A [Trivial]
-5C0922 0922 [Trivial]
-5C0925 0925 [Trivial]
-5C0927 NULL [SyntErr]
-5C0930 0930 [Trivial]
-5C093F 093F [Trivial]
-5C0940 0940 [Trivial]
-5C095A 095A [Trivial]
-5C095C NULL [SyntErr]
-5C095F 095F [Trivial]
-5C0961 0961 [Trivial]
-5C0962 0962 [Trivial]
-5C096E 096E [Trivial]
-5C0972 0972 [Trivial]
-5C0974 0974 [Trivial]
-5C097E 097E [Trivial]
-5C097F 097F [Trivial]
-5C0980 0980 [Trivial]
-5C0981 0981 [Trivial]
-5C099F 099F [Trivial]
-5C09A0 09A0 [Trivial]
-5C09A1 09A1 [Trivial]
-5C09E0 09E0 [Trivial]
-5C09EF 09EF [Trivial]
-5C09F9 09F9 [Trivial]
-5C09FA 09FA [Trivial]
-5C09FC 09FC [Trivial]
-5C09FD 09FD [Trivial]
-5C09FE 09FE [Trivial]
-5C09FF 09FF [Trivial]
-5C0A00 0A00 [Trivial]
-5C0A08 0A08 [Trivial]
-5C0A09 0A09 [Trivial]
-5C0A0A 0A0A [Trivial]
-5C0A0D 0A0D [Trivial]
-5C0A1A 0A1A [Trivial]
-5C0A22 0A22 [Trivial]
-5C0A25 0A25 [Trivial]
-5C0A27 NULL [SyntErr]
-5C0A30 0A30 [Trivial]
-5C0A3F 0A3F [Trivial]
-5C0A40 0A40 [Trivial]
-5C0A5A 0A5A [Trivial]
-5C0A5C NULL [SyntErr]
-5C0A5F 0A5F [Trivial]
-5C0A61 0A61 [Trivial]
-5C0A62 0A62 [Trivial]
-5C0A6E 0A6E [Trivial]
-5C0A72 0A72 [Trivial]
-5C0A74 0A74 [Trivial]
-5C0A7E 0A7E [Trivial]
-5C0A7F 0A7F [Trivial]
-5C0A80 0A80 [Trivial]
-5C0A81 0A81 [Trivial]
-5C0A9F 0A9F [Trivial]
-5C0AA0 0AA0 [Trivial]
-5C0AA1 0AA1 [Trivial]
-5C0AE0 0AE0 [Trivial]
-5C0AEF 0AEF [Trivial]
-5C0AF9 0AF9 [Trivial]
-5C0AFA 0AFA [Trivial]
-5C0AFC 0AFC [Trivial]
-5C0AFD 0AFD [Trivial]
-5C0AFE 0AFE [Trivial]
-5C0AFF 0AFF [Trivial]
-5C0D00 0D00 [Trivial]
-5C0D08 0D08 [Trivial]
-5C0D09 0D09 [Trivial]
-5C0D0A 0D0A [Trivial]
-5C0D0D 0D0D [Trivial]
-5C0D1A 0D1A [Trivial]
-5C0D22 0D22 [Trivial]
-5C0D25 0D25 [Trivial]
-5C0D27 NULL [SyntErr]
-5C0D30 0D30 [Trivial]
-5C0D3F 0D3F [Trivial]
-5C0D40 0D40 [Trivial]
-5C0D5A 0D5A [Trivial]
-5C0D5C NULL [SyntErr]
-5C0D5F 0D5F [Trivial]
-5C0D61 0D61 [Trivial]
-5C0D62 0D62 [Trivial]
-5C0D6E 0D6E [Trivial]
-5C0D72 0D72 [Trivial]
-5C0D74 0D74 [Trivial]
-5C0D7E 0D7E [Trivial]
-5C0D7F 0D7F [Trivial]
-5C0D80 0D80 [Trivial]
-5C0D81 0D81 [Trivial]
-5C0D9F 0D9F [Trivial]
-5C0DA0 0DA0 [Trivial]
-5C0DA1 0DA1 [Trivial]
-5C0DE0 0DE0 [Trivial]
-5C0DEF 0DEF [Trivial]
-5C0DF9 0DF9 [Trivial]
-5C0DFA 0DFA [Trivial]
-5C0DFC 0DFC [Trivial]
-5C0DFD 0DFD [Trivial]
-5C0DFE 0DFE [Trivial]
-5C0DFF 0DFF [Trivial]
-5C1A00 1A00 [Trivial]
-5C1A08 1A08 [Trivial]
-5C1A09 1A09 [Trivial]
-5C1A0A 1A0A [Trivial]
-5C1A0D 1A0D [Trivial]
-5C1A1A 1A1A [Trivial]
-5C1A22 1A22 [Trivial]
-5C1A25 1A25 [Trivial]
-5C1A27 NULL [SyntErr]
-5C1A30 1A30 [Trivial]
-5C1A3F 1A3F [Trivial]
-5C1A40 1A40 [Trivial]
-5C1A5A 1A5A [Trivial]
-5C1A5C NULL [SyntErr]
-5C1A5F 1A5F [Trivial]
-5C1A61 1A61 [Trivial]
-5C1A62 1A62 [Trivial]
-5C1A6E 1A6E [Trivial]
-5C1A72 1A72 [Trivial]
-5C1A74 1A74 [Trivial]
-5C1A7E 1A7E [Trivial]
-5C1A7F 1A7F [Trivial]
-5C1A80 1A80 [Trivial]
-5C1A81 1A81 [Trivial]
-5C1A9F 1A9F [Trivial]
-5C1AA0 1AA0 [Trivial]
-5C1AA1 1AA1 [Trivial]
-5C1AE0 1AE0 [Trivial]
-5C1AEF 1AEF [Trivial]
-5C1AF9 1AF9 [Trivial]
-5C1AFA 1AFA [Trivial]
-5C1AFC 1AFC [Trivial]
-5C1AFD 1AFD [Trivial]
-5C1AFE 1AFE [Trivial]
-5C1AFF 1AFF [Trivial]
-5C2200 2200 [Trivial]
-5C2208 2208 [Trivial]
-5C2209 2209 [Trivial]
-5C220A 220A [Trivial]
-5C220D 220D [Trivial]
-5C221A 221A [Trivial]
-5C2222 2222 [Trivial]
-5C2225 2225 [Trivial]
-5C2227 NULL [SyntErr]
-5C2230 2230 [Trivial]
-5C223F 223F [Trivial]
-5C2240 2240 [Trivial]
-5C225A 225A [Trivial]
-5C225C NULL [SyntErr]
-5C225F 225F [Trivial]
-5C2261 2261 [Trivial]
-5C2262 2262 [Trivial]
-5C226E 226E [Trivial]
-5C2272 2272 [Trivial]
-5C2274 2274 [Trivial]
-5C227E 227E [Trivial]
-5C227F 227F [Trivial]
-5C2280 2280 [Trivial]
-5C2281 2281 [Trivial]
-5C229F 229F [Trivial]
-5C22A0 22A0 [Trivial]
-5C22A1 22A1 [Trivial]
-5C22E0 22E0 [Trivial]
-5C22EF 22EF [Trivial]
-5C22F9 22F9 [Trivial]
-5C22FA 22FA [Trivial]
-5C22FC 22FC [Trivial]
-5C22FD 22FD [Trivial]
-5C22FE 22FE [Trivial]
-5C22FF 22FF [Trivial]
-5C2500 5C2500 [Preserve][LIKE]
-5C2508 5C2508 [Preserve][LIKE]
-5C2509 5C2509 [Preserve][LIKE]
-5C250A 5C250A [Preserve][LIKE]
-5C250D 5C250D [Preserve][LIKE]
-5C251A 5C251A [Preserve][LIKE]
-5C2522 5C2522 [Preserve][LIKE]
-5C2525 5C2525 [Preserve][LIKE]
-5C2527 NULL [SyntErr]
-5C2530 5C2530 [Preserve][LIKE]
-5C253F 5C253F [Preserve][LIKE]
-5C2540 5C2540 [Preserve][LIKE]
-5C255A 5C255A [Preserve][LIKE]
-5C255C NULL [SyntErr]
-5C255F 5C255F [Preserve][LIKE]
-5C2561 5C2561 [Preserve][LIKE]
-5C2562 5C2562 [Preserve][LIKE]
-5C256E 5C256E [Preserve][LIKE]
-5C2572 5C2572 [Preserve][LIKE]
-5C2574 5C2574 [Preserve][LIKE]
-5C257E 5C257E [Preserve][LIKE]
-5C257F 5C257F [Preserve][LIKE]
-5C2580 5C2580 [Preserve][LIKE]
-5C2581 5C2581 [Preserve][LIKE]
-5C259F 5C259F [Preserve][LIKE]
-5C25A0 5C25A0 [Preserve][LIKE]
-5C25A1 5C25A1 [Preserve][LIKE]
-5C25E0 5C25E0 [Preserve][LIKE]
-5C25EF 5C25EF [Preserve][LIKE]
-5C25F9 5C25F9 [Preserve][LIKE]
-5C25FA 5C25FA [Preserve][LIKE]
-5C25FC 5C25FC [Preserve][LIKE]
-5C25FD 5C25FD [Preserve][LIKE]
-5C25FE 5C25FE [Preserve][LIKE]
-5C25FF 5C25FF [Preserve][LIKE]
-5C2700 2700 [Trivial]
-5C2708 2708 [Trivial]
-5C2709 2709 [Trivial]
-5C270A 270A [Trivial]
-5C270D 270D [Trivial]
-5C271A 271A [Trivial]
-5C2722 2722 [Trivial]
-5C2725 2725 [Trivial]
-5C2727 NULL [SyntErr]
-5C2730 2730 [Trivial]
-5C273F 273F [Trivial]
-5C2740 2740 [Trivial]
-5C275A 275A [Trivial]
-5C275C NULL [SyntErr]
-5C275F 275F [Trivial]
-5C2761 2761 [Trivial]
-5C2762 2762 [Trivial]
-5C276E 276E [Trivial]
-5C2772 2772 [Trivial]
-5C2774 2774 [Trivial]
-5C277E 277E [Trivial]
-5C277F 277F [Trivial]
-5C2780 2780 [Trivial]
-5C2781 2781 [Trivial]
-5C279F 279F [Trivial]
-5C27A0 27A0 [Trivial]
-5C27A1 27A1 [Trivial]
-5C27E0 27E0 [Trivial]
-5C27EF 27EF [Trivial]
-5C27F9 27F9 [Trivial]
-5C27FA 27FA [Trivial]
-5C27FC 27FC [Trivial]
-5C27FD 27FD [Trivial]
-5C27FE 27FE [Trivial]
-5C27FF 27FF [Trivial]
-5C3000 0000 [Regular]
-5C3008 0008 [Regular]
-5C3009 0009 [Regular]
-5C300A 000A [Regular]
-5C300D 000D [Regular]
-5C301A 001A [Regular]
-5C3022 0022 [Regular]
-5C3025 0025 [Regular]
-5C3027 NULL [SyntErr]
-5C3030 0030 [Regular]
-5C303F 003F [Regular]
-5C3040 0040 [Regular]
-5C305A 005A [Regular]
-5C305C NULL [SyntErr]
-5C305F 005F [Regular]
-5C3061 0061 [Regular]
-5C3062 0062 [Regular]
-5C306E 006E [Regular]
-5C3072 0072 [Regular]
-5C3074 0074 [Regular]
-5C307E 007E [Regular]
-5C307F 007F [Regular]
-5C3080 0080 [Regular]
-5C3081 0081 [Regular]
-5C309F 009F [Regular]
-5C30A0 00A0 [Regular]
-5C30A1 00A1 [Regular]
-5C30E0 00E0 [Regular]
-5C30EF 00EF [Regular]
-5C30F9 00F9 [Regular]
-5C30FA 00FA [Regular]
-5C30FC 00FC [Regular]
-5C30FD 00FD [Regular]
-5C30FE 00FE [Regular]
-5C30FF 00FF [Regular]
-5C3F00 3F00 [Trivial]
-5C3F08 3F08 [Trivial]
-5C3F09 3F09 [Trivial]
-5C3F0A 3F0A [Trivial]
-5C3F0D 3F0D [Trivial]
-5C3F1A 3F1A [Trivial]
-5C3F22 3F22 [Trivial]
-5C3F25 3F25 [Trivial]
-5C3F27 NULL [SyntErr]
-5C3F30 3F30 [Trivial]
-5C3F3F 3F3F [Trivial]
-5C3F40 3F40 [Trivial]
-5C3F5A 3F5A [Trivial]
-5C3F5C NULL [SyntErr]
-5C3F5F 3F5F [Trivial]
-5C3F61 3F61 [Trivial]
-5C3F62 3F62 [Trivial]
-5C3F6E 3F6E [Trivial]
-5C3F72 3F72 [Trivial]
-5C3F74 3F74 [Trivial]
-5C3F7E 3F7E [Trivial]
-5C3F7F 3F7F [Trivial]
-5C3F80 3F80 [Trivial]
-5C3F81 3F81 [Trivial]
-5C3F9F 3F9F [Trivial]
-5C3FA0 3FA0 [Trivial]
-5C3FA1 3FA1 [Trivial]
-5C3FE0 3FE0 [Trivial]
-5C3FEF 3FEF [Trivial]
-5C3FF9 3FF9 [Trivial]
-5C3FFA 3FFA [Trivial]
-5C3FFC 3FFC [Trivial]
-5C3FFD 3FFD [Trivial]
-5C3FFE 3FFE [Trivial]
-5C3FFF 3FFF [Trivial]
-5C4000 4000 [Trivial]
-5C4008 4008 [Trivial]
-5C4009 4009 [Trivial]
-5C400A 400A [Trivial]
-5C400D 400D [Trivial]
-5C401A 401A [Trivial]
-5C4022 4022 [Trivial]
-5C4025 4025 [Trivial]
-5C4027 NULL [SyntErr]
-5C4030 4030 [Trivial]
-5C403F 403F [Trivial]
-5C4040 4040 [Trivial]
-5C405A 405A [Trivial]
-5C405C NULL [SyntErr]
-5C405F 405F [Trivial]
-5C4061 4061 [Trivial]
-5C4062 4062 [Trivial]
-5C406E 406E [Trivial]
-5C4072 4072 [Trivial]
-5C4074 4074 [Trivial]
-5C407E 407E [Trivial]
-5C407F 407F [Trivial]
-5C4080 4080 [Trivial]
-5C4081 4081 [Trivial]
-5C409F 409F [Trivial]
-5C40A0 40A0 [Trivial]
-5C40A1 40A1 [Trivial]
-5C40E0 40E0 [Trivial]
-5C40EF 40EF [Trivial]
-5C40F9 40F9 [Trivial]
-5C40FA 40FA [Trivial]
-5C40FC 40FC [Trivial]
-5C40FD 40FD [Trivial]
-5C40FE 40FE [Trivial]
-5C40FF 40FF [Trivial]
-5C5A00 1A00 [Regular]
-5C5A08 1A08 [Regular]
-5C5A09 1A09 [Regular]
-5C5A0A 1A0A [Regular]
-5C5A0D 1A0D [Regular]
-5C5A1A 1A1A [Regular]
-5C5A22 1A22 [Regular]
-5C5A25 1A25 [Regular]
-5C5A27 NULL [SyntErr]
-5C5A30 1A30 [Regular]
-5C5A3F 1A3F [Regular]
-5C5A40 1A40 [Regular]
-5C5A5A 1A5A [Regular]
-5C5A5C NULL [SyntErr]
-5C5A5F 1A5F [Regular]
-5C5A61 1A61 [Regular]
-5C5A62 1A62 [Regular]
-5C5A6E 1A6E [Regular]
-5C5A72 1A72 [Regular]
-5C5A74 1A74 [Regular]
-5C5A7E 1A7E [Regular]
-5C5A7F 1A7F [Regular]
-5C5A80 1A80 [Regular]
-5C5A81 1A81 [Regular]
-5C5A9F 1A9F [Regular]
-5C5AA0 1AA0 [Regular]
-5C5AA1 1AA1 [Regular]
-5C5AE0 1AE0 [Regular]
-5C5AEF 1AEF [Regular]
-5C5AF9 1AF9 [Regular]
-5C5AFA 1AFA [Regular]
-5C5AFC 1AFC [Regular]
-5C5AFD 1AFD [Regular]
-5C5AFE 1AFE [Regular]
-5C5AFF 1AFF [Regular]
-5C5C00 5C00 [Regular]
-5C5C08 5C08 [Regular]
-5C5C09 5C09 [Regular]
-5C5C0A 5C0A [Regular]
-5C5C0D 5C0D [Regular]
-5C5C1A 5C1A [Regular]
-5C5C22 5C22 [Regular]
-5C5C25 5C25 [Regular]
-5C5C27 NULL [SyntErr]
-5C5C30 5C30 [Regular]
-5C5C3F 5C3F [Regular]
-5C5C40 5C40 [Regular]
-5C5C5A 5C5A [Regular]
-5C5C5C NULL [SyntErr]
-5C5C5F 5C5F [Regular]
-5C5C61 5C61 [Regular]
-5C5C62 5C62 [Regular]
-5C5C6E 5C6E [Regular]
-5C5C72 5C72 [Regular]
-5C5C74 5C74 [Regular]
-5C5C7E 5C7E [Regular]
-5C5C7F 5C7F [Regular]
-5C5C80 5C80 [Regular]
-5C5C81 5C81 [Regular]
-5C5C9F 5C9F [Regular]
-5C5CA0 5CA0 [Regular]
-5C5CA1 5CA1 [Regular]
-5C5CE0 5CE0 [Regular]
-5C5CEF 5CEF [Regular]
-5C5CF9 5CF9 [Regular]
-5C5CFA 5CFA [Regular]
-5C5CFC 5CFC [Regular]
-5C5CFD 5CFD [Regular]
-5C5CFE 5CFE [Regular]
-5C5CFF 5CFF [Regular]
-5C5F00 5C5F00 [Preserve][LIKE]
-5C5F08 5C5F08 [Preserve][LIKE]
-5C5F09 5C5F09 [Preserve][LIKE]
-5C5F0A 5C5F0A [Preserve][LIKE]
-5C5F0D 5C5F0D [Preserve][LIKE]
-5C5F1A 5C5F1A [Preserve][LIKE]
-5C5F22 5C5F22 [Preserve][LIKE]
-5C5F25 5C5F25 [Preserve][LIKE]
-5C5F27 NULL [SyntErr]
-5C5F30 5C5F30 [Preserve][LIKE]
-5C5F3F 5C5F3F [Preserve][LIKE]
-5C5F40 5C5F40 [Preserve][LIKE]
-5C5F5A 5C5F5A [Preserve][LIKE]
-5C5F5C NULL [SyntErr]
-5C5F5F 5C5F5F [Preserve][LIKE]
-5C5F61 5C5F61 [Preserve][LIKE]
-5C5F62 5C5F62 [Preserve][LIKE]
-5C5F6E 5C5F6E [Preserve][LIKE]
-5C5F72 5C5F72 [Preserve][LIKE]
-5C5F74 5C5F74 [Preserve][LIKE]
-5C5F7E 5C5F7E [Preserve][LIKE]
-5C5F7F 5C5F7F [Preserve][LIKE]
-5C5F80 5C5F80 [Preserve][LIKE]
-5C5F81 5C5F81 [Preserve][LIKE]
-5C5F9F 5C5F9F [Preserve][LIKE]
-5C5FA0 5C5FA0 [Preserve][LIKE]
-5C5FA1 5C5FA1 [Preserve][LIKE]
-5C5FE0 5C5FE0 [Preserve][LIKE]
-5C5FEF 5C5FEF [Preserve][LIKE]
-5C5FF9 5C5FF9 [Preserve][LIKE]
-5C5FFA 5C5FFA [Preserve][LIKE]
-5C5FFC 5C5FFC [Preserve][LIKE]
-5C5FFD 5C5FFD [Preserve][LIKE]
-5C5FFE 5C5FFE [Preserve][LIKE]
-5C5FFF 5C5FFF [Preserve][LIKE]
-5C6100 6100 [Trivial]
-5C6108 6108 [Trivial]
-5C6109 6109 [Trivial]
-5C610A 610A [Trivial]
-5C610D 610D [Trivial]
-5C611A 611A [Trivial]
-5C6122 6122 [Trivial]
-5C6125 6125 [Trivial]
-5C6127 NULL [SyntErr]
-5C6130 6130 [Trivial]
-5C613F 613F [Trivial]
-5C6140 6140 [Trivial]
-5C615A 615A [Trivial]
-5C615C NULL [SyntErr]
-5C615F 615F [Trivial]
-5C6161 6161 [Trivial]
-5C6162 6162 [Trivial]
-5C616E 616E [Trivial]
-5C6172 6172 [Trivial]
-5C6174 6174 [Trivial]
-5C617E 617E [Trivial]
-5C617F 617F [Trivial]
-5C6180 6180 [Trivial]
-5C6181 6181 [Trivial]
-5C619F 619F [Trivial]
-5C61A0 61A0 [Trivial]
-5C61A1 61A1 [Trivial]
-5C61E0 61E0 [Trivial]
-5C61EF 61EF [Trivial]
-5C61F9 61F9 [Trivial]
-5C61FA 61FA [Trivial]
-5C61FC 61FC [Trivial]
-5C61FD 61FD [Trivial]
-5C61FE 61FE [Trivial]
-5C61FF 61FF [Trivial]
-5C6200 0800 [Regular]
-5C6208 0808 [Regular]
-5C6209 0809 [Regular]
-5C620A 080A [Regular]
-5C620D 080D [Regular]
-5C621A 081A [Regular]
-5C6222 0822 [Regular]
-5C6225 0825 [Regular]
-5C6227 NULL [SyntErr]
-5C6230 0830 [Regular]
-5C623F 083F [Regular]
-5C6240 0840 [Regular]
-5C625A 085A [Regular]
-5C625C NULL [SyntErr]
-5C625F 085F [Regular]
-5C6261 0861 [Regular]
-5C6262 0862 [Regular]
-5C626E 086E [Regular]
-5C6272 0872 [Regular]
-5C6274 0874 [Regular]
-5C627E 087E [Regular]
-5C627F 087F [Regular]
-5C6280 0880 [Regular]
-5C6281 0881 [Regular]
-5C629F 089F [Regular]
-5C62A0 08A0 [Regular]
-5C62A1 08A1 [Regular]
-5C62E0 08E0 [Regular]
-5C62EF 08EF [Regular]
-5C62F9 08F9 [Regular]
-5C62FA 08FA [Regular]
-5C62FC 08FC [Regular]
-5C62FD 08FD [Regular]
-5C62FE 08FE [Regular]
-5C62FF 08FF [Regular]
-5C6E00 0A00 [Regular]
-5C6E08 0A08 [Regular]
-5C6E09 0A09 [Regular]
-5C6E0A 0A0A [Regular]
-5C6E0D 0A0D [Regular]
-5C6E1A 0A1A [Regular]
-5C6E22 0A22 [Regular]
-5C6E25 0A25 [Regular]
-5C6E27 NULL [SyntErr]
-5C6E30 0A30 [Regular]
-5C6E3F 0A3F [Regular]
-5C6E40 0A40 [Regular]
-5C6E5A 0A5A [Regular]
-5C6E5C NULL [SyntErr]
-5C6E5F 0A5F [Regular]
-5C6E61 0A61 [Regular]
-5C6E62 0A62 [Regular]
-5C6E6E 0A6E [Regular]
-5C6E72 0A72 [Regular]
-5C6E74 0A74 [Regular]
-5C6E7E 0A7E [Regular]
-5C6E7F 0A7F [Regular]
-5C6E80 0A80 [Regular]
-5C6E81 0A81 [Regular]
-5C6E9F 0A9F [Regular]
-5C6EA0 0AA0 [Regular]
-5C6EA1 0AA1 [Regular]
-5C6EE0 0AE0 [Regular]
-5C6EEF 0AEF [Regular]
-5C6EF9 0AF9 [Regular]
-5C6EFA 0AFA [Regular]
-5C6EFC 0AFC [Regular]
-5C6EFD 0AFD [Regular]
-5C6EFE 0AFE [Regular]
-5C6EFF 0AFF [Regular]
-5C7200 0D00 [Regular]
-5C7208 0D08 [Regular]
-5C7209 0D09 [Regular]
-5C720A 0D0A [Regular]
-5C720D 0D0D [Regular]
-5C721A 0D1A [Regular]
-5C7222 0D22 [Regular]
-5C7225 0D25 [Regular]
-5C7227 NULL [SyntErr]
-5C7230 0D30 [Regular]
-5C723F 0D3F [Regular]
-5C7240 0D40 [Regular]
-5C725A 0D5A [Regular]
-5C725C NULL [SyntErr]
-5C725F 0D5F [Regular]
-5C7261 0D61 [Regular]
-5C7262 0D62 [Regular]
-5C726E 0D6E [Regular]
-5C7272 0D72 [Regular]
-5C7274 0D74 [Regular]
-5C727E 0D7E [Regular]
-5C727F 0D7F [Regular]
-5C7280 0D80 [Regular]
-5C7281 0D81 [Regular]
-5C729F 0D9F [Regular]
-5C72A0 0DA0 [Regular]
-5C72A1 0DA1 [Regular]
-5C72E0 0DE0 [Regular]
-5C72EF 0DEF [Regular]
-5C72F9 0DF9 [Regular]
-5C72FA 0DFA [Regular]
-5C72FC 0DFC [Regular]
-5C72FD 0DFD [Regular]
-5C72FE 0DFE [Regular]
-5C72FF 0DFF [Regular]
-5C7400 0900 [Regular]
-5C7408 0908 [Regular]
-5C7409 0909 [Regular]
-5C740A 090A [Regular]
-5C740D 090D [Regular]
-5C741A 091A [Regular]
-5C7422 0922 [Regular]
-5C7425 0925 [Regular]
-5C7427 NULL [SyntErr]
-5C7430 0930 [Regular]
-5C743F 093F [Regular]
-5C7440 0940 [Regular]
-5C745A 095A [Regular]
-5C745C NULL [SyntErr]
-5C745F 095F [Regular]
-5C7461 0961 [Regular]
-5C7462 0962 [Regular]
-5C746E 096E [Regular]
-5C7472 0972 [Regular]
-5C7474 0974 [Regular]
-5C747E 097E [Regular]
-5C747F 097F [Regular]
-5C7480 0980 [Regular]
-5C7481 0981 [Regular]
-5C749F 099F [Regular]
-5C74A0 09A0 [Regular]
-5C74A1 09A1 [Regular]
-5C74E0 09E0 [Regular]
-5C74EF 09EF [Regular]
-5C74F9 09F9 [Regular]
-5C74FA 09FA [Regular]
-5C74FC 09FC [Regular]
-5C74FD 09FD [Regular]
-5C74FE 09FE [Regular]
-5C74FF 09FF [Regular]
-5C7E00 7E00 [Trivial]
-5C7E08 7E08 [Trivial]
-5C7E09 7E09 [Trivial]
-5C7E0A 7E0A [Trivial]
-5C7E0D 7E0D [Trivial]
-5C7E1A 7E1A [Trivial]
-5C7E22 7E22 [Trivial]
-5C7E25 7E25 [Trivial]
-5C7E27 NULL [SyntErr]
-5C7E30 7E30 [Trivial]
-5C7E3F 7E3F [Trivial]
-5C7E40 7E40 [Trivial]
-5C7E5A 7E5A [Trivial]
-5C7E5C NULL [SyntErr]
-5C7E5F 7E5F [Trivial]
-5C7E61 7E61 [Trivial]
-5C7E62 7E62 [Trivial]
-5C7E6E 7E6E [Trivial]
-5C7E72 7E72 [Trivial]
-5C7E74 7E74 [Trivial]
-5C7E7E 7E7E [Trivial]
-5C7E7F 7E7F [Trivial]
-5C7E80 7E80 [Trivial]
-5C7E81 7E81 [Trivial]
-5C7E9F 7E9F [Trivial]
-5C7EA0 7EA0 [Trivial]
-5C7EA1 7EA1 [Trivial]
-5C7EE0 7EE0 [Trivial]
-5C7EEF 7EEF [Trivial]
-5C7EF9 7EF9 [Trivial]
-5C7EFA 7EFA [Trivial]
-5C7EFC 7EFC [Trivial]
-5C7EFD 7EFD [Trivial]
-5C7EFE 7EFE [Trivial]
-5C7EFF 7EFF [Trivial]
-5C7F00 7F00 [Trivial]
-5C7F08 7F08 [Trivial]
-5C7F09 7F09 [Trivial]
-5C7F0A 7F0A [Trivial]
-5C7F0D 7F0D [Trivial]
-5C7F1A 7F1A [Trivial]
-5C7F22 7F22 [Trivial]
-5C7F25 7F25 [Trivial]
-5C7F27 NULL [SyntErr]
-5C7F30 7F30 [Trivial]
-5C7F3F 7F3F [Trivial]
-5C7F40 7F40 [Trivial]
-5C7F5A 7F5A [Trivial]
-5C7F5C NULL [SyntErr]
-5C7F5F 7F5F [Trivial]
-5C7F61 7F61 [Trivial]
-5C7F62 7F62 [Trivial]
-5C7F6E 7F6E [Trivial]
-5C7F72 7F72 [Trivial]
-5C7F74 7F74 [Trivial]
-5C7F7E 7F7E [Trivial]
-5C7F7F 7F7F [Trivial]
-5C7F80 7F80 [Trivial]
-5C7F81 7F81 [Trivial]
-5C7F9F 7F9F [Trivial]
-5C7FA0 7FA0 [Trivial]
-5C7FA1 7FA1 [Trivial]
-5C7FE0 7FE0 [Trivial]
-5C7FEF 7FEF [Trivial]
-5C7FF9 7FF9 [Trivial]
-5C7FFA 7FFA [Trivial]
-5C7FFC 7FFC [Trivial]
-5C7FFD 7FFD [Trivial]
-5C7FFE 7FFE [Trivial]
-5C7FFF 7FFF [Trivial]
-5C8000 8000 [Trivial]
-5C8008 8008 [Trivial]
-5C8009 8009 [Trivial]
-5C800A 800A [Trivial]
-5C800D 800D [Trivial]
-5C801A 801A [Trivial]
-5C8022 8022 [Trivial]
-5C8025 8025 [Trivial]
-5C8027 NULL [SyntErr]
-5C8030 8030 [Trivial]
-5C803F 803F [Trivial]
-5C8040 8040 [Trivial]
-5C805A 805A [Trivial]
-5C805C NULL [SyntErr][USER]
-5C805F 805F [Trivial]
-5C8061 8061 [Trivial]
-5C8062 8062 [Trivial]
-5C806E 806E [Trivial]
-5C8072 8072 [Trivial]
-5C8074 8074 [Trivial]
-5C807E 807E [Trivial]
-5C807F 807F [Trivial]
-5C8080 8080 [Trivial]
-5C8081 8081 [Trivial]
-5C809F 809F [Trivial]
-5C80A0 80A0 [Trivial]
-5C80A1 80A1 [Trivial]
-5C80E0 80E0 [Trivial]
-5C80EF 80EF [Trivial]
-5C80F9 80F9 [Trivial]
-5C80FA 80FA [Trivial]
-5C80FC 80FC [Trivial]
-5C80FD 80FD [Trivial]
-5C80FE 80FE [Trivial]
-5C80FF 80FF [Trivial]
-5C8100 8100 [Trivial]
-5C8108 8108 [Trivial]
-5C8109 8109 [Trivial]
-5C810A 810A [Trivial]
-5C810D 810D [Trivial]
-5C811A 811A [Trivial]
-5C8122 8122 [Trivial]
-5C8125 8125 [Trivial]
-5C8127 NULL [SyntErr]
-5C8130 8130 [Trivial]
-5C813F 813F [Trivial]
-5C8140 8140 [Trivial]
-5C815A 815A [Trivial]
-5C815C NULL [SyntErr][USER]
-5C815F 815F [Trivial]
-5C8161 8161 [Trivial]
-5C8162 8162 [Trivial]
-5C816E 816E [Trivial]
-5C8172 8172 [Trivial]
-5C8174 8174 [Trivial]
-5C817E 817E [Trivial]
-5C817F 817F [Trivial]
-5C8180 8180 [Trivial]
-5C8181 8181 [Trivial]
-5C819F 819F [Trivial]
-5C81A0 81A0 [Trivial]
-5C81A1 81A1 [Trivial]
-5C81E0 81E0 [Trivial]
-5C81EF 81EF [Trivial]
-5C81F9 81F9 [Trivial]
-5C81FA 81FA [Trivial]
-5C81FC 81FC [Trivial]
-5C81FD 81FD [Trivial]
-5C81FE 81FE [Trivial]
-5C81FF 81FF [Trivial]
-5C9F00 9F00 [Trivial]
-5C9F08 9F08 [Trivial]
-5C9F09 9F09 [Trivial]
-5C9F0A 9F0A [Trivial]
-5C9F0D 9F0D [Trivial]
-5C9F1A 9F1A [Trivial]
-5C9F22 9F22 [Trivial]
-5C9F25 9F25 [Trivial]
-5C9F27 NULL [SyntErr]
-5C9F30 9F30 [Trivial]
-5C9F3F 9F3F [Trivial]
-5C9F40 9F40 [Trivial]
-5C9F5A 9F5A [Trivial]
-5C9F5C NULL [SyntErr][USER]
-5C9F5F 9F5F [Trivial]
-5C9F61 9F61 [Trivial]
-5C9F62 9F62 [Trivial]
-5C9F6E 9F6E [Trivial]
-5C9F72 9F72 [Trivial]
-5C9F74 9F74 [Trivial]
-5C9F7E 9F7E [Trivial]
-5C9F7F 9F7F [Trivial]
-5C9F80 9F80 [Trivial]
-5C9F81 9F81 [Trivial]
-5C9F9F 9F9F [Trivial]
-5C9FA0 9FA0 [Trivial]
-5C9FA1 9FA1 [Trivial]
-5C9FE0 9FE0 [Trivial]
-5C9FEF 9FEF [Trivial]
-5C9FF9 9FF9 [Trivial]
-5C9FFA 9FFA [Trivial]
-5C9FFC 9FFC [Trivial]
-5C9FFD 9FFD [Trivial]
-5C9FFE 9FFE [Trivial]
-5C9FFF 9FFF [Trivial]
-5CA000 A000 [Trivial]
-5CA008 A008 [Trivial]
-5CA009 A009 [Trivial]
-5CA00A A00A [Trivial]
-5CA00D A00D [Trivial]
-5CA01A A01A [Trivial]
-5CA022 A022 [Trivial]
-5CA025 A025 [Trivial]
-5CA027 NULL [SyntErr]
-5CA030 A030 [Trivial]
-5CA03F A03F [Trivial]
-5CA040 A040 [Trivial]
-5CA05A A05A [Trivial]
-5CA05C NULL [SyntErr][USER]
-5CA05F A05F [Trivial]
-5CA061 A061 [Trivial]
-5CA062 A062 [Trivial]
-5CA06E A06E [Trivial]
-5CA072 A072 [Trivial]
-5CA074 A074 [Trivial]
-5CA07E A07E [Trivial]
-5CA07F A07F [Trivial]
-5CA080 A080 [Trivial]
-5CA081 A081 [Trivial]
-5CA09F A09F [Trivial]
-5CA0A0 A0A0 [Trivial]
-5CA0A1 A0A1 [Trivial]
-5CA0E0 A0E0 [Trivial]
-5CA0EF A0EF [Trivial]
-5CA0F9 A0F9 [Trivial]
-5CA0FA A0FA [Trivial]
-5CA0FC A0FC [Trivial]
-5CA0FD A0FD [Trivial]
-5CA0FE A0FE [Trivial]
-5CA0FF A0FF [Trivial]
-5CA100 A100 [Trivial]
-5CA108 A108 [Trivial]
-5CA109 A109 [Trivial]
-5CA10A A10A [Trivial]
-5CA10D A10D [Trivial]
-5CA11A A11A [Trivial]
-5CA122 A122 [Trivial]
-5CA125 A125 [Trivial]
-5CA127 NULL [SyntErr]
-5CA130 A130 [Trivial]
-5CA13F A13F [Trivial]
-5CA140 A140 [Trivial]
-5CA15A A15A [Trivial]
-5CA15C NULL [SyntErr][USER]
-5CA15F A15F [Trivial]
-5CA161 A161 [Trivial]
-5CA162 A162 [Trivial]
-5CA16E A16E [Trivial]
-5CA172 A172 [Trivial]
-5CA174 A174 [Trivial]
-5CA17E A17E [Trivial]
-5CA17F A17F [Trivial]
-5CA180 A180 [Trivial]
-5CA181 A181 [Trivial]
-5CA19F A19F [Trivial]
-5CA1A0 A1A0 [Trivial]
-5CA1A1 A1A1 [Trivial]
-5CA1E0 A1E0 [Trivial]
-5CA1EF A1EF [Trivial]
-5CA1F9 A1F9 [Trivial]
-5CA1FA A1FA [Trivial]
-5CA1FC A1FC [Trivial]
-5CA1FD A1FD [Trivial]
-5CA1FE A1FE [Trivial]
-5CA1FF A1FF [Trivial]
-5CE000 E000 [Trivial]
-5CE008 E008 [Trivial]
-5CE009 E009 [Trivial]
-5CE00A E00A [Trivial]
-5CE00D E00D [Trivial]
-5CE01A E01A [Trivial]
-5CE022 E022 [Trivial]
-5CE025 E025 [Trivial]
-5CE027 NULL [SyntErr]
-5CE030 E030 [Trivial]
-5CE03F E03F [Trivial]
-5CE040 E040 [Trivial]
-5CE05A E05A [Trivial]
-5CE05C NULL [SyntErr][USER]
-5CE05F E05F [Trivial]
-5CE061 E061 [Trivial]
-5CE062 E062 [Trivial]
-5CE06E E06E [Trivial]
-5CE072 E072 [Trivial]
-5CE074 E074 [Trivial]
-5CE07E E07E [Trivial]
-5CE07F E07F [Trivial]
-5CE080 E080 [Trivial]
-5CE081 E081 [Trivial]
-5CE09F E09F [Trivial]
-5CE0A0 E0A0 [Trivial]
-5CE0A1 E0A1 [Trivial]
-5CE0E0 E0E0 [Trivial]
-5CE0EF E0EF [Trivial]
-5CE0F9 E0F9 [Trivial]
-5CE0FA E0FA [Trivial]
-5CE0FC E0FC [Trivial]
-5CE0FD E0FD [Trivial]
-5CE0FE E0FE [Trivial]
-5CE0FF E0FF [Trivial]
-5CEF00 EF00 [Trivial]
-5CEF08 EF08 [Trivial]
-5CEF09 EF09 [Trivial]
-5CEF0A EF0A [Trivial]
-5CEF0D EF0D [Trivial]
-5CEF1A EF1A [Trivial]
-5CEF22 EF22 [Trivial]
-5CEF25 EF25 [Trivial]
-5CEF27 NULL [SyntErr]
-5CEF30 EF30 [Trivial]
-5CEF3F EF3F [Trivial]
-5CEF40 EF40 [Trivial]
-5CEF5A EF5A [Trivial]
-5CEF5C NULL [SyntErr][USER]
-5CEF5F EF5F [Trivial]
-5CEF61 EF61 [Trivial]
-5CEF62 EF62 [Trivial]
-5CEF6E EF6E [Trivial]
-5CEF72 EF72 [Trivial]
-5CEF74 EF74 [Trivial]
-5CEF7E EF7E [Trivial]
-5CEF7F EF7F [Trivial]
-5CEF80 EF80 [Trivial]
-5CEF81 EF81 [Trivial]
-5CEF9F EF9F [Trivial]
-5CEFA0 EFA0 [Trivial]
-5CEFA1 EFA1 [Trivial]
-5CEFE0 EFE0 [Trivial]
-5CEFEF EFEF [Trivial]
-5CEFF9 EFF9 [Trivial]
-5CEFFA EFFA [Trivial]
-5CEFFC EFFC [Trivial]
-5CEFFD EFFD [Trivial]
-5CEFFE EFFE [Trivial]
-5CEFFF EFFF [Trivial]
-5CF900 F900 [Trivial]
-5CF908 F908 [Trivial]
-5CF909 F909 [Trivial]
-5CF90A F90A [Trivial]
-5CF90D F90D [Trivial]
-5CF91A F91A [Trivial]
-5CF922 F922 [Trivial]
-5CF925 F925 [Trivial]
-5CF927 NULL [SyntErr]
-5CF930 F930 [Trivial]
-5CF93F F93F [Trivial]
-5CF940 F940 [Trivial]
-5CF95A F95A [Trivial]
-5CF95C NULL [SyntErr][USER]
-5CF95F F95F [Trivial]
-5CF961 F961 [Trivial]
-5CF962 F962 [Trivial]
-5CF96E F96E [Trivial]
-5CF972 F972 [Trivial]
-5CF974 F974 [Trivial]
-5CF97E F97E [Trivial]
-5CF97F F97F [Trivial]
-5CF980 F980 [Trivial]
-5CF981 F981 [Trivial]
-5CF99F F99F [Trivial]
-5CF9A0 F9A0 [Trivial]
-5CF9A1 F9A1 [Trivial]
-5CF9E0 F9E0 [Trivial]
-5CF9EF F9EF [Trivial]
-5CF9F9 F9F9 [Trivial]
-5CF9FA F9FA [Trivial]
-5CF9FC F9FC [Trivial]
-5CF9FD F9FD [Trivial]
-5CF9FE F9FE [Trivial]
-5CF9FF F9FF [Trivial]
-5CFA00 FA00 [Trivial]
-5CFA08 FA08 [Trivial]
-5CFA09 FA09 [Trivial]
-5CFA0A FA0A [Trivial]
-5CFA0D FA0D [Trivial]
-5CFA1A FA1A [Trivial]
-5CFA22 FA22 [Trivial]
-5CFA25 FA25 [Trivial]
-5CFA27 NULL [SyntErr]
-5CFA30 FA30 [Trivial]
-5CFA3F FA3F [Trivial]
-5CFA40 FA40 [Trivial]
-5CFA5A FA5A [Trivial]
-5CFA5C NULL [SyntErr][USER]
-5CFA5F FA5F [Trivial]
-5CFA61 FA61 [Trivial]
-5CFA62 FA62 [Trivial]
-5CFA6E FA6E [Trivial]
-5CFA72 FA72 [Trivial]
-5CFA74 FA74 [Trivial]
-5CFA7E FA7E [Trivial]
-5CFA7F FA7F [Trivial]
-5CFA80 FA80 [Trivial]
-5CFA81 FA81 [Trivial]
-5CFA9F FA9F [Trivial]
-5CFAA0 FAA0 [Trivial]
-5CFAA1 FAA1 [Trivial]
-5CFAE0 FAE0 [Trivial]
-5CFAEF FAEF [Trivial]
-5CFAF9 FAF9 [Trivial]
-5CFAFA FAFA [Trivial]
-5CFAFC FAFC [Trivial]
-5CFAFD FAFD [Trivial]
-5CFAFE FAFE [Trivial]
-5CFAFF FAFF [Trivial]
-5CFC00 FC00 [Trivial]
-5CFC08 FC08 [Trivial]
-5CFC09 FC09 [Trivial]
-5CFC0A FC0A [Trivial]
-5CFC0D FC0D [Trivial]
-5CFC1A FC1A [Trivial]
-5CFC22 FC22 [Trivial]
-5CFC25 FC25 [Trivial]
-5CFC27 NULL [SyntErr]
-5CFC30 FC30 [Trivial]
-5CFC3F FC3F [Trivial]
-5CFC40 FC40 [Trivial]
-5CFC5A FC5A [Trivial]
-5CFC5C NULL [SyntErr][USER]
-5CFC5F FC5F [Trivial]
-5CFC61 FC61 [Trivial]
-5CFC62 FC62 [Trivial]
-5CFC6E FC6E [Trivial]
-5CFC72 FC72 [Trivial]
-5CFC74 FC74 [Trivial]
-5CFC7E FC7E [Trivial]
-5CFC7F FC7F [Trivial]
-5CFC80 FC80 [Trivial]
-5CFC81 FC81 [Trivial]
-5CFC9F FC9F [Trivial]
-5CFCA0 FCA0 [Trivial]
-5CFCA1 FCA1 [Trivial]
-5CFCE0 FCE0 [Trivial]
-5CFCEF FCEF [Trivial]
-5CFCF9 FCF9 [Trivial]
-5CFCFA FCFA [Trivial]
-5CFCFC FCFC [Trivial]
-5CFCFD FCFD [Trivial]
-5CFCFE FCFE [Trivial]
-5CFCFF FCFF [Trivial]
-5CFD00 FD00 [Trivial]
-5CFD08 FD08 [Trivial]
-5CFD09 FD09 [Trivial]
-5CFD0A FD0A [Trivial]
-5CFD0D FD0D [Trivial]
-5CFD1A FD1A [Trivial]
-5CFD22 FD22 [Trivial]
-5CFD25 FD25 [Trivial]
-5CFD27 NULL [SyntErr]
-5CFD30 FD30 [Trivial]
-5CFD3F FD3F [Trivial]
-5CFD40 FD40 [Trivial]
-5CFD5A FD5A [Trivial]
-5CFD5C NULL [SyntErr][USER]
-5CFD5F FD5F [Trivial]
-5CFD61 FD61 [Trivial]
-5CFD62 FD62 [Trivial]
-5CFD6E FD6E [Trivial]
-5CFD72 FD72 [Trivial]
-5CFD74 FD74 [Trivial]
-5CFD7E FD7E [Trivial]
-5CFD7F FD7F [Trivial]
-5CFD80 FD80 [Trivial]
-5CFD81 FD81 [Trivial]
-5CFD9F FD9F [Trivial]
-5CFDA0 FDA0 [Trivial]
-5CFDA1 FDA1 [Trivial]
-5CFDE0 FDE0 [Trivial]
-5CFDEF FDEF [Trivial]
-5CFDF9 FDF9 [Trivial]
-5CFDFA FDFA [Trivial]
-5CFDFC FDFC [Trivial]
-5CFDFD FDFD [Trivial]
-5CFDFE FDFE [Trivial]
-5CFDFF FDFF [Trivial]
-5CFE00 FE00 [Trivial]
-5CFE08 FE08 [Trivial]
-5CFE09 FE09 [Trivial]
-5CFE0A FE0A [Trivial]
-5CFE0D FE0D [Trivial]
-5CFE1A FE1A [Trivial]
-5CFE22 FE22 [Trivial]
-5CFE25 FE25 [Trivial]
-5CFE27 NULL [SyntErr]
-5CFE30 FE30 [Trivial]
-5CFE3F FE3F [Trivial]
-5CFE40 FE40 [Trivial]
-5CFE5A FE5A [Trivial]
-5CFE5C NULL [SyntErr][USER]
-5CFE5F FE5F [Trivial]
-5CFE61 FE61 [Trivial]
-5CFE62 FE62 [Trivial]
-5CFE6E FE6E [Trivial]
-5CFE72 FE72 [Trivial]
-5CFE74 FE74 [Trivial]
-5CFE7E FE7E [Trivial]
-5CFE7F FE7F [Trivial]
-5CFE80 FE80 [Trivial]
-5CFE81 FE81 [Trivial]
-5CFE9F FE9F [Trivial]
-5CFEA0 FEA0 [Trivial]
-5CFEA1 FEA1 [Trivial]
-5CFEE0 FEE0 [Trivial]
-5CFEEF FEEF [Trivial]
-5CFEF9 FEF9 [Trivial]
-5CFEFA FEFA [Trivial]
-5CFEFC FEFC [Trivial]
-5CFEFD FEFD [Trivial]
-5CFEFE FEFE [Trivial]
-5CFEFF FEFF [Trivial]
-5CFF00 FF00 [Trivial]
-5CFF08 FF08 [Trivial]
-5CFF09 FF09 [Trivial]
-5CFF0A FF0A [Trivial]
-5CFF0D FF0D [Trivial]
-5CFF1A FF1A [Trivial]
-5CFF22 FF22 [Trivial]
-5CFF25 FF25 [Trivial]
-5CFF27 NULL [SyntErr]
-5CFF30 FF30 [Trivial]
-5CFF3F FF3F [Trivial]
-5CFF40 FF40 [Trivial]
-5CFF5A FF5A [Trivial]
-5CFF5C NULL [SyntErr][USER]
-5CFF5F FF5F [Trivial]
-5CFF61 FF61 [Trivial]
-5CFF62 FF62 [Trivial]
-5CFF6E FF6E [Trivial]
-5CFF72 FF72 [Trivial]
-5CFF74 FF74 [Trivial]
-5CFF7E FF7E [Trivial]
-5CFF7F FF7F [Trivial]
-5CFF80 FF80 [Trivial]
-5CFF81 FF81 [Trivial]
-5CFF9F FF9F [Trivial]
-5CFFA0 FFA0 [Trivial]
-5CFFA1 FFA1 [Trivial]
-5CFFE0 FFE0 [Trivial]
-5CFFEF FFEF [Trivial]
-5CFFF9 FFF9 [Trivial]
-5CFFFA FFFA [Trivial]
-5CFFFC FFFC [Trivial]
-5CFFFD FFFD [Trivial]
-5CFFFE FFFE [Trivial]
-5CFFFF FFFF [Trivial]
-5C005C00 0000 [Trivial]
-5C005C08 0008 [Trivial]
-5C005C09 0009 [Trivial]
-5C005C0A 000A [Trivial]
-5C005C0D 000D [Trivial]
-5C005C1A 001A [Trivial]
-5C005C22 0022 [Trivial]
-5C005C25 005C25 [Regular]
-5C005C27 0027 [Trivial]
-5C005C30 0000 [Regular]
-5C005C3F 003F [Trivial]
-5C005C40 0040 [Trivial]
-5C005C5A 001A [Regular]
-5C005C5C 005C [Regular]
-5C005C5F 005C5F [Regular]
-5C005C61 0061 [Trivial]
-5C005C62 0008 [Regular]
-5C005C6E 000A [Regular]
-5C005C72 000D [Regular]
-5C005C74 0009 [Regular]
-5C005C7E 007E [Trivial]
-5C005C7F 007F [Trivial]
-5C005C80 0080 [Trivial]
-5C005C81 0081 [Trivial]
-5C005C9F 009F [Trivial]
-5C005CA0 00A0 [Trivial]
-5C005CA1 00A1 [Trivial]
-5C005CE0 00E0 [Trivial]
-5C005CEF 00EF [Trivial]
-5C005CF9 00F9 [Trivial]
-5C005CFA 00FA [Trivial]
-5C005CFC 00FC [Trivial]
-5C005CFD 00FD [Trivial]
-5C005CFE 00FE [Trivial]
-5C005CFF 00FF [Trivial]
-5C085C00 0800 [Trivial]
-5C085C08 0808 [Trivial]
-5C085C09 0809 [Trivial]
-5C085C0A 080A [Trivial]
-5C085C0D 080D [Trivial]
-5C085C1A 081A [Trivial]
-5C085C22 0822 [Trivial]
-5C085C25 085C25 [Regular]
-5C085C27 0827 [Trivial]
-5C085C30 0800 [Regular]
-5C085C3F 083F [Trivial]
-5C085C40 0840 [Trivial]
-5C085C5A 081A [Regular]
-5C085C5C 085C [Regular]
-5C085C5F 085C5F [Regular]
-5C085C61 0861 [Trivial]
-5C085C62 0808 [Regular]
-5C085C6E 080A [Regular]
-5C085C72 080D [Regular]
-5C085C74 0809 [Regular]
-5C085C7E 087E [Trivial]
-5C085C7F 087F [Trivial]
-5C085C80 0880 [Trivial]
-5C085C81 0881 [Trivial]
-5C085C9F 089F [Trivial]
-5C085CA0 08A0 [Trivial]
-5C085CA1 08A1 [Trivial]
-5C085CE0 08E0 [Trivial]
-5C085CEF 08EF [Trivial]
-5C085CF9 08F9 [Trivial]
-5C085CFA 08FA [Trivial]
-5C085CFC 08FC [Trivial]
-5C085CFD 08FD [Trivial]
-5C085CFE 08FE [Trivial]
-5C085CFF 08FF [Trivial]
-5C095C00 0900 [Trivial]
-5C095C08 0908 [Trivial]
-5C095C09 0909 [Trivial]
-5C095C0A 090A [Trivial]
-5C095C0D 090D [Trivial]
-5C095C1A 091A [Trivial]
-5C095C22 0922 [Trivial]
-5C095C25 095C25 [Regular]
-5C095C27 0927 [Trivial]
-5C095C30 0900 [Regular]
-5C095C3F 093F [Trivial]
-5C095C40 0940 [Trivial]
-5C095C5A 091A [Regular]
-5C095C5C 095C [Regular]
-5C095C5F 095C5F [Regular]
-5C095C61 0961 [Trivial]
-5C095C62 0908 [Regular]
-5C095C6E 090A [Regular]
-5C095C72 090D [Regular]
-5C095C74 0909 [Regular]
-5C095C7E 097E [Trivial]
-5C095C7F 097F [Trivial]
-5C095C80 0980 [Trivial]
-5C095C81 0981 [Trivial]
-5C095C9F 099F [Trivial]
-5C095CA0 09A0 [Trivial]
-5C095CA1 09A1 [Trivial]
-5C095CE0 09E0 [Trivial]
-5C095CEF 09EF [Trivial]
-5C095CF9 09F9 [Trivial]
-5C095CFA 09FA [Trivial]
-5C095CFC 09FC [Trivial]
-5C095CFD 09FD [Trivial]
-5C095CFE 09FE [Trivial]
-5C095CFF 09FF [Trivial]
-5C0A5C00 0A00 [Trivial]
-5C0A5C08 0A08 [Trivial]
-5C0A5C09 0A09 [Trivial]
-5C0A5C0A 0A0A [Trivial]
-5C0A5C0D 0A0D [Trivial]
-5C0A5C1A 0A1A [Trivial]
-5C0A5C22 0A22 [Trivial]
-5C0A5C25 0A5C25 [Regular]
-5C0A5C27 0A27 [Trivial]
-5C0A5C30 0A00 [Regular]
-5C0A5C3F 0A3F [Trivial]
-5C0A5C40 0A40 [Trivial]
-5C0A5C5A 0A1A [Regular]
-5C0A5C5C 0A5C [Regular]
-5C0A5C5F 0A5C5F [Regular]
-5C0A5C61 0A61 [Trivial]
-5C0A5C62 0A08 [Regular]
-5C0A5C6E 0A0A [Regular]
-5C0A5C72 0A0D [Regular]
-5C0A5C74 0A09 [Regular]
-5C0A5C7E 0A7E [Trivial]
-5C0A5C7F 0A7F [Trivial]
-5C0A5C80 0A80 [Trivial]
-5C0A5C81 0A81 [Trivial]
-5C0A5C9F 0A9F [Trivial]
-5C0A5CA0 0AA0 [Trivial]
-5C0A5CA1 0AA1 [Trivial]
-5C0A5CE0 0AE0 [Trivial]
-5C0A5CEF 0AEF [Trivial]
-5C0A5CF9 0AF9 [Trivial]
-5C0A5CFA 0AFA [Trivial]
-5C0A5CFC 0AFC [Trivial]
-5C0A5CFD 0AFD [Trivial]
-5C0A5CFE 0AFE [Trivial]
-5C0A5CFF 0AFF [Trivial]
-5C0D5C00 0D00 [Trivial]
-5C0D5C08 0D08 [Trivial]
-5C0D5C09 0D09 [Trivial]
-5C0D5C0A 0D0A [Trivial]
-5C0D5C0D 0D0D [Trivial]
-5C0D5C1A 0D1A [Trivial]
-5C0D5C22 0D22 [Trivial]
-5C0D5C25 0D5C25 [Regular]
-5C0D5C27 0D27 [Trivial]
-5C0D5C30 0D00 [Regular]
-5C0D5C3F 0D3F [Trivial]
-5C0D5C40 0D40 [Trivial]
-5C0D5C5A 0D1A [Regular]
-5C0D5C5C 0D5C [Regular]
-5C0D5C5F 0D5C5F [Regular]
-5C0D5C61 0D61 [Trivial]
-5C0D5C62 0D08 [Regular]
-5C0D5C6E 0D0A [Regular]
-5C0D5C72 0D0D [Regular]
-5C0D5C74 0D09 [Regular]
-5C0D5C7E 0D7E [Trivial]
-5C0D5C7F 0D7F [Trivial]
-5C0D5C80 0D80 [Trivial]
-5C0D5C81 0D81 [Trivial]
-5C0D5C9F 0D9F [Trivial]
-5C0D5CA0 0DA0 [Trivial]
-5C0D5CA1 0DA1 [Trivial]
-5C0D5CE0 0DE0 [Trivial]
-5C0D5CEF 0DEF [Trivial]
-5C0D5CF9 0DF9 [Trivial]
-5C0D5CFA 0DFA [Trivial]
-5C0D5CFC 0DFC [Trivial]
-5C0D5CFD 0DFD [Trivial]
-5C0D5CFE 0DFE [Trivial]
-5C0D5CFF 0DFF [Trivial]
-5C1A5C00 1A00 [Trivial]
-5C1A5C08 1A08 [Trivial]
-5C1A5C09 1A09 [Trivial]
-5C1A5C0A 1A0A [Trivial]
-5C1A5C0D 1A0D [Trivial]
-5C1A5C1A 1A1A [Trivial]
-5C1A5C22 1A22 [Trivial]
-5C1A5C25 1A5C25 [Regular]
-5C1A5C27 1A27 [Trivial]
-5C1A5C30 1A00 [Regular]
-5C1A5C3F 1A3F [Trivial]
-5C1A5C40 1A40 [Trivial]
-5C1A5C5A 1A1A [Regular]
-5C1A5C5C 1A5C [Regular]
-5C1A5C5F 1A5C5F [Regular]
-5C1A5C61 1A61 [Trivial]
-5C1A5C62 1A08 [Regular]
-5C1A5C6E 1A0A [Regular]
-5C1A5C72 1A0D [Regular]
-5C1A5C74 1A09 [Regular]
-5C1A5C7E 1A7E [Trivial]
-5C1A5C7F 1A7F [Trivial]
-5C1A5C80 1A80 [Trivial]
-5C1A5C81 1A81 [Trivial]
-5C1A5C9F 1A9F [Trivial]
-5C1A5CA0 1AA0 [Trivial]
-5C1A5CA1 1AA1 [Trivial]
-5C1A5CE0 1AE0 [Trivial]
-5C1A5CEF 1AEF [Trivial]
-5C1A5CF9 1AF9 [Trivial]
-5C1A5CFA 1AFA [Trivial]
-5C1A5CFC 1AFC [Trivial]
-5C1A5CFD 1AFD [Trivial]
-5C1A5CFE 1AFE [Trivial]
-5C1A5CFF 1AFF [Trivial]
-5C225C00 2200 [Trivial]
-5C225C08 2208 [Trivial]
-5C225C09 2209 [Trivial]
-5C225C0A 220A [Trivial]
-5C225C0D 220D [Trivial]
-5C225C1A 221A [Trivial]
-5C225C22 2222 [Trivial]
-5C225C25 225C25 [Regular]
-5C225C27 2227 [Trivial]
-5C225C30 2200 [Regular]
-5C225C3F 223F [Trivial]
-5C225C40 2240 [Trivial]
-5C225C5A 221A [Regular]
-5C225C5C 225C [Regular]
-5C225C5F 225C5F [Regular]
-5C225C61 2261 [Trivial]
-5C225C62 2208 [Regular]
-5C225C6E 220A [Regular]
-5C225C72 220D [Regular]
-5C225C74 2209 [Regular]
-5C225C7E 227E [Trivial]
-5C225C7F 227F [Trivial]
-5C225C80 2280 [Trivial]
-5C225C81 2281 [Trivial]
-5C225C9F 229F [Trivial]
-5C225CA0 22A0 [Trivial]
-5C225CA1 22A1 [Trivial]
-5C225CE0 22E0 [Trivial]
-5C225CEF 22EF [Trivial]
-5C225CF9 22F9 [Trivial]
-5C225CFA 22FA [Trivial]
-5C225CFC 22FC [Trivial]
-5C225CFD 22FD [Trivial]
-5C225CFE 22FE [Trivial]
-5C225CFF 22FF [Trivial]
-5C255C00 5C2500 [Regular]
-5C255C08 5C2508 [Regular]
-5C255C09 5C2509 [Regular]
-5C255C0A 5C250A [Regular]
-5C255C0D 5C250D [Regular]
-5C255C1A 5C251A [Regular]
-5C255C22 5C2522 [Regular]
-5C255C25 5C255C25 [Preserve][LIKE]
-5C255C27 5C2527 [Regular]
-5C255C30 5C2500 [Regular]
-5C255C3F 5C253F [Regular]
-5C255C40 5C2540 [Regular]
-5C255C5A 5C251A [Regular]
-5C255C5C 5C255C [Regular]
-5C255C5F 5C255C5F [Preserve][LIKE]
-5C255C61 5C2561 [Regular]
-5C255C62 5C2508 [Regular]
-5C255C6E 5C250A [Regular]
-5C255C72 5C250D [Regular]
-5C255C74 5C2509 [Regular]
-5C255C7E 5C257E [Regular]
-5C255C7F 5C257F [Regular]
-5C255C80 5C2580 [Regular]
-5C255C81 5C2581 [Regular]
-5C255C9F 5C259F [Regular]
-5C255CA0 5C25A0 [Regular]
-5C255CA1 5C25A1 [Regular]
-5C255CE0 5C25E0 [Regular]
-5C255CEF 5C25EF [Regular]
-5C255CF9 5C25F9 [Regular]
-5C255CFA 5C25FA [Regular]
-5C255CFC 5C25FC [Regular]
-5C255CFD 5C25FD [Regular]
-5C255CFE 5C25FE [Regular]
-5C255CFF 5C25FF [Regular]
-5C275C00 2700 [Trivial]
-5C275C08 2708 [Trivial]
-5C275C09 2709 [Trivial]
-5C275C0A 270A [Trivial]
-5C275C0D 270D [Trivial]
-5C275C1A 271A [Trivial]
-5C275C22 2722 [Trivial]
-5C275C25 275C25 [Regular]
-5C275C27 2727 [Trivial]
-5C275C30 2700 [Regular]
-5C275C3F 273F [Trivial]
-5C275C40 2740 [Trivial]
-5C275C5A 271A [Regular]
-5C275C5C 275C [Regular]
-5C275C5F 275C5F [Regular]
-5C275C61 2761 [Trivial]
-5C275C62 2708 [Regular]
-5C275C6E 270A [Regular]
-5C275C72 270D [Regular]
-5C275C74 2709 [Regular]
-5C275C7E 277E [Trivial]
-5C275C7F 277F [Trivial]
-5C275C80 2780 [Trivial]
-5C275C81 2781 [Trivial]
-5C275C9F 279F [Trivial]
-5C275CA0 27A0 [Trivial]
-5C275CA1 27A1 [Trivial]
-5C275CE0 27E0 [Trivial]
-5C275CEF 27EF [Trivial]
-5C275CF9 27F9 [Trivial]
-5C275CFA 27FA [Trivial]
-5C275CFC 27FC [Trivial]
-5C275CFD 27FD [Trivial]
-5C275CFE 27FE [Trivial]
-5C275CFF 27FF [Trivial]
-5C305C00 0000 [Regular]
-5C305C08 0008 [Regular]
-5C305C09 0009 [Regular]
-5C305C0A 000A [Regular]
-5C305C0D 000D [Regular]
-5C305C1A 001A [Regular]
-5C305C22 0022 [Regular]
-5C305C25 005C25 [Regular]
-5C305C27 0027 [Regular]
-5C305C30 0000 [Regular]
-5C305C3F 003F [Regular]
-5C305C40 0040 [Regular]
-5C305C5A 001A [Regular]
-5C305C5C 005C [Regular]
-5C305C5F 005C5F [Regular]
-5C305C61 0061 [Regular]
-5C305C62 0008 [Regular]
-5C305C6E 000A [Regular]
-5C305C72 000D [Regular]
-5C305C74 0009 [Regular]
-5C305C7E 007E [Regular]
-5C305C7F 007F [Regular]
-5C305C80 0080 [Regular]
-5C305C81 0081 [Regular]
-5C305C9F 009F [Regular]
-5C305CA0 00A0 [Regular]
-5C305CA1 00A1 [Regular]
-5C305CE0 00E0 [Regular]
-5C305CEF 00EF [Regular]
-5C305CF9 00F9 [Regular]
-5C305CFA 00FA [Regular]
-5C305CFC 00FC [Regular]
-5C305CFD 00FD [Regular]
-5C305CFE 00FE [Regular]
-5C305CFF 00FF [Regular]
-5C3F5C00 3F00 [Trivial]
-5C3F5C08 3F08 [Trivial]
-5C3F5C09 3F09 [Trivial]
-5C3F5C0A 3F0A [Trivial]
-5C3F5C0D 3F0D [Trivial]
-5C3F5C1A 3F1A [Trivial]
-5C3F5C22 3F22 [Trivial]
-5C3F5C25 3F5C25 [Regular]
-5C3F5C27 3F27 [Trivial]
-5C3F5C30 3F00 [Regular]
-5C3F5C3F 3F3F [Trivial]
-5C3F5C40 3F40 [Trivial]
-5C3F5C5A 3F1A [Regular]
-5C3F5C5C 3F5C [Regular]
-5C3F5C5F 3F5C5F [Regular]
-5C3F5C61 3F61 [Trivial]
-5C3F5C62 3F08 [Regular]
-5C3F5C6E 3F0A [Regular]
-5C3F5C72 3F0D [Regular]
-5C3F5C74 3F09 [Regular]
-5C3F5C7E 3F7E [Trivial]
-5C3F5C7F 3F7F [Trivial]
-5C3F5C80 3F80 [Trivial]
-5C3F5C81 3F81 [Trivial]
-5C3F5C9F 3F9F [Trivial]
-5C3F5CA0 3FA0 [Trivial]
-5C3F5CA1 3FA1 [Trivial]
-5C3F5CE0 3FE0 [Trivial]
-5C3F5CEF 3FEF [Trivial]
-5C3F5CF9 3FF9 [Trivial]
-5C3F5CFA 3FFA [Trivial]
-5C3F5CFC 3FFC [Trivial]
-5C3F5CFD 3FFD [Trivial]
-5C3F5CFE 3FFE [Trivial]
-5C3F5CFF 3FFF [Trivial]
-5C405C00 4000 [Trivial]
-5C405C08 4008 [Trivial]
-5C405C09 4009 [Trivial]
-5C405C0A 400A [Trivial]
-5C405C0D 400D [Trivial]
-5C405C1A 401A [Trivial]
-5C405C22 4022 [Trivial]
-5C405C25 405C25 [Regular]
-5C405C27 4027 [Trivial]
-5C405C30 4000 [Regular]
-5C405C3F 403F [Trivial]
-5C405C40 4040 [Trivial]
-5C405C5A 401A [Regular]
-5C405C5C 405C [Regular]
-5C405C5F 405C5F [Regular]
-5C405C61 4061 [Trivial]
-5C405C62 4008 [Regular]
-5C405C6E 400A [Regular]
-5C405C72 400D [Regular]
-5C405C74 4009 [Regular]
-5C405C7E 407E [Trivial]
-5C405C7F 407F [Trivial]
-5C405C80 4080 [Trivial]
-5C405C81 4081 [Trivial]
-5C405C9F 409F [Trivial]
-5C405CA0 40A0 [Trivial]
-5C405CA1 40A1 [Trivial]
-5C405CE0 40E0 [Trivial]
-5C405CEF 40EF [Trivial]
-5C405CF9 40F9 [Trivial]
-5C405CFA 40FA [Trivial]
-5C405CFC 40FC [Trivial]
-5C405CFD 40FD [Trivial]
-5C405CFE 40FE [Trivial]
-5C405CFF 40FF [Trivial]
-5C5A5C00 1A00 [Regular]
-5C5A5C08 1A08 [Regular]
-5C5A5C09 1A09 [Regular]
-5C5A5C0A 1A0A [Regular]
-5C5A5C0D 1A0D [Regular]
-5C5A5C1A 1A1A [Regular]
-5C5A5C22 1A22 [Regular]
-5C5A5C25 1A5C25 [Regular]
-5C5A5C27 1A27 [Regular]
-5C5A5C30 1A00 [Regular]
-5C5A5C3F 1A3F [Regular]
-5C5A5C40 1A40 [Regular]
-5C5A5C5A 1A1A [Regular]
-5C5A5C5C 1A5C [Regular]
-5C5A5C5F 1A5C5F [Regular]
-5C5A5C61 1A61 [Regular]
-5C5A5C62 1A08 [Regular]
-5C5A5C6E 1A0A [Regular]
-5C5A5C72 1A0D [Regular]
-5C5A5C74 1A09 [Regular]
-5C5A5C7E 1A7E [Regular]
-5C5A5C7F 1A7F [Regular]
-5C5A5C80 1A80 [Regular]
-5C5A5C81 1A81 [Regular]
-5C5A5C9F 1A9F [Regular]
-5C5A5CA0 1AA0 [Regular]
-5C5A5CA1 1AA1 [Regular]
-5C5A5CE0 1AE0 [Regular]
-5C5A5CEF 1AEF [Regular]
-5C5A5CF9 1AF9 [Regular]
-5C5A5CFA 1AFA [Regular]
-5C5A5CFC 1AFC [Regular]
-5C5A5CFD 1AFD [Regular]
-5C5A5CFE 1AFE [Regular]
-5C5A5CFF 1AFF [Regular]
-5C5C5C00 5C00 [Regular]
-5C5C5C08 5C08 [Regular]
-5C5C5C09 5C09 [Regular]
-5C5C5C0A 5C0A [Regular]
-5C5C5C0D 5C0D [Regular]
-5C5C5C1A 5C1A [Regular]
-5C5C5C22 5C22 [Regular]
-5C5C5C25 5C5C25 [Regular]
-5C5C5C27 5C27 [Regular]
-5C5C5C30 5C00 [Regular]
-5C5C5C3F 5C3F [Regular]
-5C5C5C40 5C40 [Regular]
-5C5C5C5A 5C1A [Regular]
-5C5C5C5C 5C5C [Regular]
-5C5C5C5F 5C5C5F [Regular]
-5C5C5C61 5C61 [Regular]
-5C5C5C62 5C08 [Regular]
-5C5C5C6E 5C0A [Regular]
-5C5C5C72 5C0D [Regular]
-5C5C5C74 5C09 [Regular]
-5C5C5C7E 5C7E [Regular]
-5C5C5C7F 5C7F [Regular]
-5C5C5C80 5C80 [Regular]
-5C5C5C81 5C81 [Regular]
-5C5C5C9F 5C9F [Regular]
-5C5C5CA0 5CA0 [Regular]
-5C5C5CA1 5CA1 [Regular]
-5C5C5CE0 5CE0 [Regular]
-5C5C5CEF 5CEF [Regular]
-5C5C5CF9 5CF9 [Regular]
-5C5C5CFA 5CFA [Regular]
-5C5C5CFC 5CFC [Regular]
-5C5C5CFD 5CFD [Regular]
-5C5C5CFE 5CFE [Regular]
-5C5C5CFF 5CFF [Regular]
-5C5F5C00 5C5F00 [Regular]
-5C5F5C08 5C5F08 [Regular]
-5C5F5C09 5C5F09 [Regular]
-5C5F5C0A 5C5F0A [Regular]
-5C5F5C0D 5C5F0D [Regular]
-5C5F5C1A 5C5F1A [Regular]
-5C5F5C22 5C5F22 [Regular]
-5C5F5C25 5C5F5C25 [Preserve][LIKE]
-5C5F5C27 5C5F27 [Regular]
-5C5F5C30 5C5F00 [Regular]
-5C5F5C3F 5C5F3F [Regular]
-5C5F5C40 5C5F40 [Regular]
-5C5F5C5A 5C5F1A [Regular]
-5C5F5C5C 5C5F5C [Regular]
-5C5F5C5F 5C5F5C5F [Preserve][LIKE]
-5C5F5C61 5C5F61 [Regular]
-5C5F5C62 5C5F08 [Regular]
-5C5F5C6E 5C5F0A [Regular]
-5C5F5C72 5C5F0D [Regular]
-5C5F5C74 5C5F09 [Regular]
-5C5F5C7E 5C5F7E [Regular]
-5C5F5C7F 5C5F7F [Regular]
-5C5F5C80 5C5F80 [Regular]
-5C5F5C81 5C5F81 [Regular]
-5C5F5C9F 5C5F9F [Regular]
-5C5F5CA0 5C5FA0 [Regular]
-5C5F5CA1 5C5FA1 [Regular]
-5C5F5CE0 5C5FE0 [Regular]
-5C5F5CEF 5C5FEF [Regular]
-5C5F5CF9 5C5FF9 [Regular]
-5C5F5CFA 5C5FFA [Regular]
-5C5F5CFC 5C5FFC [Regular]
-5C5F5CFD 5C5FFD [Regular]
-5C5F5CFE 5C5FFE [Regular]
-5C5F5CFF 5C5FFF [Regular]
-5C615C00 6100 [Trivial]
-5C615C08 6108 [Trivial]
-5C615C09 6109 [Trivial]
-5C615C0A 610A [Trivial]
-5C615C0D 610D [Trivial]
-5C615C1A 611A [Trivial]
-5C615C22 6122 [Trivial]
-5C615C25 615C25 [Regular]
-5C615C27 6127 [Trivial]
-5C615C30 6100 [Regular]
-5C615C3F 613F [Trivial]
-5C615C40 6140 [Trivial]
-5C615C5A 611A [Regular]
-5C615C5C 615C [Regular]
-5C615C5F 615C5F [Regular]
-5C615C61 6161 [Trivial]
-5C615C62 6108 [Regular]
-5C615C6E 610A [Regular]
-5C615C72 610D [Regular]
-5C615C74 6109 [Regular]
-5C615C7E 617E [Trivial]
-5C615C7F 617F [Trivial]
-5C615C80 6180 [Trivial]
-5C615C81 6181 [Trivial]
-5C615C9F 619F [Trivial]
-5C615CA0 61A0 [Trivial]
-5C615CA1 61A1 [Trivial]
-5C615CE0 61E0 [Trivial]
-5C615CEF 61EF [Trivial]
-5C615CF9 61F9 [Trivial]
-5C615CFA 61FA [Trivial]
-5C615CFC 61FC [Trivial]
-5C615CFD 61FD [Trivial]
-5C615CFE 61FE [Trivial]
-5C615CFF 61FF [Trivial]
-5C625C00 0800 [Regular]
-5C625C08 0808 [Regular]
-5C625C09 0809 [Regular]
-5C625C0A 080A [Regular]
-5C625C0D 080D [Regular]
-5C625C1A 081A [Regular]
-5C625C22 0822 [Regular]
-5C625C25 085C25 [Regular]
-5C625C27 0827 [Regular]
-5C625C30 0800 [Regular]
-5C625C3F 083F [Regular]
-5C625C40 0840 [Regular]
-5C625C5A 081A [Regular]
-5C625C5C 085C [Regular]
-5C625C5F 085C5F [Regular]
-5C625C61 0861 [Regular]
-5C625C62 0808 [Regular]
-5C625C6E 080A [Regular]
-5C625C72 080D [Regular]
-5C625C74 0809 [Regular]
-5C625C7E 087E [Regular]
-5C625C7F 087F [Regular]
-5C625C80 0880 [Regular]
-5C625C81 0881 [Regular]
-5C625C9F 089F [Regular]
-5C625CA0 08A0 [Regular]
-5C625CA1 08A1 [Regular]
-5C625CE0 08E0 [Regular]
-5C625CEF 08EF [Regular]
-5C625CF9 08F9 [Regular]
-5C625CFA 08FA [Regular]
-5C625CFC 08FC [Regular]
-5C625CFD 08FD [Regular]
-5C625CFE 08FE [Regular]
-5C625CFF 08FF [Regular]
-5C6E5C00 0A00 [Regular]
-5C6E5C08 0A08 [Regular]
-5C6E5C09 0A09 [Regular]
-5C6E5C0A 0A0A [Regular]
-5C6E5C0D 0A0D [Regular]
-5C6E5C1A 0A1A [Regular]
-5C6E5C22 0A22 [Regular]
-5C6E5C25 0A5C25 [Regular]
-5C6E5C27 0A27 [Regular]
-5C6E5C30 0A00 [Regular]
-5C6E5C3F 0A3F [Regular]
-5C6E5C40 0A40 [Regular]
-5C6E5C5A 0A1A [Regular]
-5C6E5C5C 0A5C [Regular]
-5C6E5C5F 0A5C5F [Regular]
-5C6E5C61 0A61 [Regular]
-5C6E5C62 0A08 [Regular]
-5C6E5C6E 0A0A [Regular]
-5C6E5C72 0A0D [Regular]
-5C6E5C74 0A09 [Regular]
-5C6E5C7E 0A7E [Regular]
-5C6E5C7F 0A7F [Regular]
-5C6E5C80 0A80 [Regular]
-5C6E5C81 0A81 [Regular]
-5C6E5C9F 0A9F [Regular]
-5C6E5CA0 0AA0 [Regular]
-5C6E5CA1 0AA1 [Regular]
-5C6E5CE0 0AE0 [Regular]
-5C6E5CEF 0AEF [Regular]
-5C6E5CF9 0AF9 [Regular]
-5C6E5CFA 0AFA [Regular]
-5C6E5CFC 0AFC [Regular]
-5C6E5CFD 0AFD [Regular]
-5C6E5CFE 0AFE [Regular]
-5C6E5CFF 0AFF [Regular]
-5C725C00 0D00 [Regular]
-5C725C08 0D08 [Regular]
-5C725C09 0D09 [Regular]
-5C725C0A 0D0A [Regular]
-5C725C0D 0D0D [Regular]
-5C725C1A 0D1A [Regular]
-5C725C22 0D22 [Regular]
-5C725C25 0D5C25 [Regular]
-5C725C27 0D27 [Regular]
-5C725C30 0D00 [Regular]
-5C725C3F 0D3F [Regular]
-5C725C40 0D40 [Regular]
-5C725C5A 0D1A [Regular]
-5C725C5C 0D5C [Regular]
-5C725C5F 0D5C5F [Regular]
-5C725C61 0D61 [Regular]
-5C725C62 0D08 [Regular]
-5C725C6E 0D0A [Regular]
-5C725C72 0D0D [Regular]
-5C725C74 0D09 [Regular]
-5C725C7E 0D7E [Regular]
-5C725C7F 0D7F [Regular]
-5C725C80 0D80 [Regular]
-5C725C81 0D81 [Regular]
-5C725C9F 0D9F [Regular]
-5C725CA0 0DA0 [Regular]
-5C725CA1 0DA1 [Regular]
-5C725CE0 0DE0 [Regular]
-5C725CEF 0DEF [Regular]
-5C725CF9 0DF9 [Regular]
-5C725CFA 0DFA [Regular]
-5C725CFC 0DFC [Regular]
-5C725CFD 0DFD [Regular]
-5C725CFE 0DFE [Regular]
-5C725CFF 0DFF [Regular]
-5C745C00 0900 [Regular]
-5C745C08 0908 [Regular]
-5C745C09 0909 [Regular]
-5C745C0A 090A [Regular]
-5C745C0D 090D [Regular]
-5C745C1A 091A [Regular]
-5C745C22 0922 [Regular]
-5C745C25 095C25 [Regular]
-5C745C27 0927 [Regular]
-5C745C30 0900 [Regular]
-5C745C3F 093F [Regular]
-5C745C40 0940 [Regular]
-5C745C5A 091A [Regular]
-5C745C5C 095C [Regular]
-5C745C5F 095C5F [Regular]
-5C745C61 0961 [Regular]
-5C745C62 0908 [Regular]
-5C745C6E 090A [Regular]
-5C745C72 090D [Regular]
-5C745C74 0909 [Regular]
-5C745C7E 097E [Regular]
-5C745C7F 097F [Regular]
-5C745C80 0980 [Regular]
-5C745C81 0981 [Regular]
-5C745C9F 099F [Regular]
-5C745CA0 09A0 [Regular]
-5C745CA1 09A1 [Regular]
-5C745CE0 09E0 [Regular]
-5C745CEF 09EF [Regular]
-5C745CF9 09F9 [Regular]
-5C745CFA 09FA [Regular]
-5C745CFC 09FC [Regular]
-5C745CFD 09FD [Regular]
-5C745CFE 09FE [Regular]
-5C745CFF 09FF [Regular]
-5C7E5C00 7E00 [Trivial]
-5C7E5C08 7E08 [Trivial]
-5C7E5C09 7E09 [Trivial]
-5C7E5C0A 7E0A [Trivial]
-5C7E5C0D 7E0D [Trivial]
-5C7E5C1A 7E1A [Trivial]
-5C7E5C22 7E22 [Trivial]
-5C7E5C25 7E5C25 [Regular]
-5C7E5C27 7E27 [Trivial]
-5C7E5C30 7E00 [Regular]
-5C7E5C3F 7E3F [Trivial]
-5C7E5C40 7E40 [Trivial]
-5C7E5C5A 7E1A [Regular]
-5C7E5C5C 7E5C [Regular]
-5C7E5C5F 7E5C5F [Regular]
-5C7E5C61 7E61 [Trivial]
-5C7E5C62 7E08 [Regular]
-5C7E5C6E 7E0A [Regular]
-5C7E5C72 7E0D [Regular]
-5C7E5C74 7E09 [Regular]
-5C7E5C7E 7E7E [Trivial]
-5C7E5C7F 7E7F [Trivial]
-5C7E5C80 7E80 [Trivial]
-5C7E5C81 7E81 [Trivial]
-5C7E5C9F 7E9F [Trivial]
-5C7E5CA0 7EA0 [Trivial]
-5C7E5CA1 7EA1 [Trivial]
-5C7E5CE0 7EE0 [Trivial]
-5C7E5CEF 7EEF [Trivial]
-5C7E5CF9 7EF9 [Trivial]
-5C7E5CFA 7EFA [Trivial]
-5C7E5CFC 7EFC [Trivial]
-5C7E5CFD 7EFD [Trivial]
-5C7E5CFE 7EFE [Trivial]
-5C7E5CFF 7EFF [Trivial]
-5C7F5C00 7F00 [Trivial]
-5C7F5C08 7F08 [Trivial]
-5C7F5C09 7F09 [Trivial]
-5C7F5C0A 7F0A [Trivial]
-5C7F5C0D 7F0D [Trivial]
-5C7F5C1A 7F1A [Trivial]
-5C7F5C22 7F22 [Trivial]
-5C7F5C25 7F5C25 [Regular]
-5C7F5C27 7F27 [Trivial]
-5C7F5C30 7F00 [Regular]
-5C7F5C3F 7F3F [Trivial]
-5C7F5C40 7F40 [Trivial]
-5C7F5C5A 7F1A [Regular]
-5C7F5C5C 7F5C [Regular]
-5C7F5C5F 7F5C5F [Regular]
-5C7F5C61 7F61 [Trivial]
-5C7F5C62 7F08 [Regular]
-5C7F5C6E 7F0A [Regular]
-5C7F5C72 7F0D [Regular]
-5C7F5C74 7F09 [Regular]
-5C7F5C7E 7F7E [Trivial]
-5C7F5C7F 7F7F [Trivial]
-5C7F5C80 7F80 [Trivial]
-5C7F5C81 7F81 [Trivial]
-5C7F5C9F 7F9F [Trivial]
-5C7F5CA0 7FA0 [Trivial]
-5C7F5CA1 7FA1 [Trivial]
-5C7F5CE0 7FE0 [Trivial]
-5C7F5CEF 7FEF [Trivial]
-5C7F5CF9 7FF9 [Trivial]
-5C7F5CFA 7FFA [Trivial]
-5C7F5CFC 7FFC [Trivial]
-5C7F5CFD 7FFD [Trivial]
-5C7F5CFE 7FFE [Trivial]
-5C7F5CFF 7FFF [Trivial]
-5C805C00 8000 [Trivial][USER]
-5C805C08 8008 [Trivial][USER]
-5C805C09 8009 [Trivial][USER]
-5C805C0A 800A [Trivial][USER]
-5C805C0D 800D [Trivial][USER]
-5C805C1A 801A [Trivial][USER]
-5C805C22 8022 [Trivial][USER]
-5C805C25 805C25 [Regular]
-5C805C27 8027 [Trivial][USER]
-5C805C30 8000 [Regular]
-5C805C3F 803F [Trivial][USER]
-5C805C40 8040 [Trivial][USER]
-5C805C5A 801A [Regular]
-5C805C5C 805C [Regular][USER]
-5C805C5F 805C5F [Regular]
-5C805C61 8061 [Trivial][USER]
-5C805C62 8008 [Regular][USER]
-5C805C6E 800A [Regular]
-5C805C72 800D [Regular]
-5C805C74 8009 [Regular]
-5C805C7E 807E [Trivial][USER]
-5C805C7F 807F [Trivial][USER]
-5C805C80 8080 [Trivial][USER]
-5C805C81 8081 [Trivial][USER]
-5C805C9F 809F [Trivial][USER]
-5C805CA0 80A0 [Trivial][USER]
-5C805CA1 80A1 [Trivial][USER]
-5C805CE0 80E0 [Trivial][USER]
-5C805CEF 80EF [Trivial][USER]
-5C805CF9 80F9 [Trivial][USER]
-5C805CFA 80FA [Trivial][USER]
-5C805CFC 80FC [Trivial][USER]
-5C805CFD 80FD [Trivial][USER]
-5C805CFE 80FE [Trivial][USER]
-5C805CFF 80FF [Trivial][USER]
-5C815C00 8100 [Trivial][USER]
-5C815C08 8108 [Trivial][USER]
-5C815C09 8109 [Trivial][USER]
-5C815C0A 810A [Trivial][USER]
-5C815C0D 810D [Trivial][USER]
-5C815C1A 811A [Trivial][USER]
-5C815C22 8122 [Trivial][USER]
-5C815C25 815C25 [Regular]
-5C815C27 8127 [Trivial][USER]
-5C815C30 8100 [Regular]
-5C815C3F 813F [Trivial][USER]
-5C815C40 8140 [Trivial][USER]
-5C815C5A 811A [Regular]
-5C815C5C 815C [Regular][USER]
-5C815C5F 815C5F [Regular]
-5C815C61 8161 [Trivial][USER]
-5C815C62 8108 [Regular][USER]
-5C815C6E 810A [Regular]
-5C815C72 810D [Regular]
-5C815C74 8109 [Regular]
-5C815C7E 817E [Trivial][USER]
-5C815C7F 817F [Trivial][USER]
-5C815C80 8180 [Trivial][USER]
-5C815C81 8181 [Trivial][USER]
-5C815C9F 819F [Trivial][USER]
-5C815CA0 81A0 [Trivial][USER]
-5C815CA1 81A1 [Trivial][USER]
-5C815CE0 81E0 [Trivial][USER]
-5C815CEF 81EF [Trivial][USER]
-5C815CF9 81F9 [Trivial][USER]
-5C815CFA 81FA [Trivial][USER]
-5C815CFC 81FC [Trivial][USER]
-5C815CFD 81FD [Trivial][USER]
-5C815CFE 81FE [Trivial][USER]
-5C815CFF 81FF [Trivial][USER]
-5C9F5C00 9F00 [Trivial][USER]
-5C9F5C08 9F08 [Trivial][USER]
-5C9F5C09 9F09 [Trivial][USER]
-5C9F5C0A 9F0A [Trivial][USER]
-5C9F5C0D 9F0D [Trivial][USER]
-5C9F5C1A 9F1A [Trivial][USER]
-5C9F5C22 9F22 [Trivial][USER]
-5C9F5C25 9F5C25 [Regular]
-5C9F5C27 9F27 [Trivial][USER]
-5C9F5C30 9F00 [Regular]
-5C9F5C3F 9F3F [Trivial][USER]
-5C9F5C40 9F40 [Trivial][USER]
-5C9F5C5A 9F1A [Regular]
-5C9F5C5C 9F5C [Regular][USER]
-5C9F5C5F 9F5C5F [Regular]
-5C9F5C61 9F61 [Trivial][USER]
-5C9F5C62 9F08 [Regular][USER]
-5C9F5C6E 9F0A [Regular]
-5C9F5C72 9F0D [Regular]
-5C9F5C74 9F09 [Regular]
-5C9F5C7E 9F7E [Trivial][USER]
-5C9F5C7F 9F7F [Trivial][USER]
-5C9F5C80 9F80 [Trivial][USER]
-5C9F5C81 9F81 [Trivial][USER]
-5C9F5C9F 9F9F [Trivial][USER]
-5C9F5CA0 9FA0 [Trivial][USER]
-5C9F5CA1 9FA1 [Trivial][USER]
-5C9F5CE0 9FE0 [Trivial][USER]
-5C9F5CEF 9FEF [Trivial][USER]
-5C9F5CF9 9FF9 [Trivial][USER]
-5C9F5CFA 9FFA [Trivial][USER]
-5C9F5CFC 9FFC [Trivial][USER]
-5C9F5CFD 9FFD [Trivial][USER]
-5C9F5CFE 9FFE [Trivial][USER]
-5C9F5CFF 9FFF [Trivial][USER]
-5CA05C00 A000 [Trivial][USER]
-5CA05C08 A008 [Trivial][USER]
-5CA05C09 A009 [Trivial][USER]
-5CA05C0A A00A [Trivial][USER]
-5CA05C0D A00D [Trivial][USER]
-5CA05C1A A01A [Trivial][USER]
-5CA05C22 A022 [Trivial][USER]
-5CA05C25 A05C25 [Regular]
-5CA05C27 A027 [Trivial][USER]
-5CA05C30 A000 [Regular]
-5CA05C3F A03F [Trivial][USER]
-5CA05C40 A040 [Trivial][USER]
-5CA05C5A A01A [Regular]
-5CA05C5C A05C [Regular][USER]
-5CA05C5F A05C5F [Regular]
-5CA05C61 A061 [Trivial][USER]
-5CA05C62 A008 [Regular][USER]
-5CA05C6E A00A [Regular]
-5CA05C72 A00D [Regular]
-5CA05C74 A009 [Regular]
-5CA05C7E A07E [Trivial][USER]
-5CA05C7F A07F [Trivial][USER]
-5CA05C80 A080 [Trivial][USER]
-5CA05C81 A081 [Trivial][USER]
-5CA05C9F A09F [Trivial][USER]
-5CA05CA0 A0A0 [Trivial][USER]
-5CA05CA1 A0A1 [Trivial][USER]
-5CA05CE0 A0E0 [Trivial][USER]
-5CA05CEF A0EF [Trivial][USER]
-5CA05CF9 A0F9 [Trivial][USER]
-5CA05CFA A0FA [Trivial][USER]
-5CA05CFC A0FC [Trivial][USER]
-5CA05CFD A0FD [Trivial][USER]
-5CA05CFE A0FE [Trivial][USER]
-5CA05CFF A0FF [Trivial][USER]
-5CA15C00 A100 [Trivial][USER]
-5CA15C08 A108 [Trivial][USER]
-5CA15C09 A109 [Trivial][USER]
-5CA15C0A A10A [Trivial][USER]
-5CA15C0D A10D [Trivial][USER]
-5CA15C1A A11A [Trivial][USER]
-5CA15C22 A122 [Trivial][USER]
-5CA15C25 A15C25 [Regular]
-5CA15C27 A127 [Trivial][USER]
-5CA15C30 A100 [Regular]
-5CA15C3F A13F [Trivial][USER]
-5CA15C40 A140 [Trivial][USER]
-5CA15C5A A11A [Regular]
-5CA15C5C A15C [Regular][USER]
-5CA15C5F A15C5F [Regular]
-5CA15C61 A161 [Trivial][USER]
-5CA15C62 A108 [Regular][USER]
-5CA15C6E A10A [Regular]
-5CA15C72 A10D [Regular]
-5CA15C74 A109 [Regular]
-5CA15C7E A17E [Trivial][USER]
-5CA15C7F A17F [Trivial][USER]
-5CA15C80 A180 [Trivial][USER]
-5CA15C81 A181 [Trivial][USER]
-5CA15C9F A19F [Trivial][USER]
-5CA15CA0 A1A0 [Trivial][USER]
-5CA15CA1 A1A1 [Trivial][USER]
-5CA15CE0 A1E0 [Trivial][USER]
-5CA15CEF A1EF [Trivial][USER]
-5CA15CF9 A1F9 [Trivial][USER]
-5CA15CFA A1FA [Trivial][USER]
-5CA15CFC A1FC [Trivial][USER]
-5CA15CFD A1FD [Trivial][USER]
-5CA15CFE A1FE [Trivial][USER]
-5CA15CFF A1FF [Trivial][USER]
-5CE05C00 E000 [Trivial][USER]
-5CE05C08 E008 [Trivial][USER]
-5CE05C09 E009 [Trivial][USER]
-5CE05C0A E00A [Trivial][USER]
-5CE05C0D E00D [Trivial][USER]
-5CE05C1A E01A [Trivial][USER]
-5CE05C22 E022 [Trivial][USER]
-5CE05C25 E05C25 [Regular]
-5CE05C27 E027 [Trivial][USER]
-5CE05C30 E000 [Regular]
-5CE05C3F E03F [Trivial][USER]
-5CE05C40 E040 [Trivial][USER]
-5CE05C5A E01A [Regular]
-5CE05C5C E05C [Regular][USER]
-5CE05C5F E05C5F [Regular]
-5CE05C61 E061 [Trivial][USER]
-5CE05C62 E008 [Regular][USER]
-5CE05C6E E00A [Regular]
-5CE05C72 E00D [Regular]
-5CE05C74 E009 [Regular]
-5CE05C7E E07E [Trivial][USER]
-5CE05C7F E07F [Trivial][USER]
-5CE05C80 E080 [Trivial][USER]
-5CE05C81 E081 [Trivial][USER]
-5CE05C9F E09F [Trivial][USER]
-5CE05CA0 E0A0 [Trivial][USER]
-5CE05CA1 E0A1 [Trivial][USER]
-5CE05CE0 E0E0 [Trivial][USER]
-5CE05CEF E0EF [Trivial][USER]
-5CE05CF9 E0F9 [Trivial][USER]
-5CE05CFA E0FA [Trivial][USER]
-5CE05CFC E0FC [Trivial][USER]
-5CE05CFD E0FD [Trivial][USER]
-5CE05CFE E0FE [Trivial][USER]
-5CE05CFF E0FF [Trivial][USER]
-5CEF5C00 EF00 [Trivial][USER]
-5CEF5C08 EF08 [Trivial][USER]
-5CEF5C09 EF09 [Trivial][USER]
-5CEF5C0A EF0A [Trivial][USER]
-5CEF5C0D EF0D [Trivial][USER]
-5CEF5C1A EF1A [Trivial][USER]
-5CEF5C22 EF22 [Trivial][USER]
-5CEF5C25 EF5C25 [Regular]
-5CEF5C27 EF27 [Trivial][USER]
-5CEF5C30 EF00 [Regular]
-5CEF5C3F EF3F [Trivial][USER]
-5CEF5C40 EF40 [Trivial][USER]
-5CEF5C5A EF1A [Regular]
-5CEF5C5C EF5C [Regular][USER]
-5CEF5C5F EF5C5F [Regular]
-5CEF5C61 EF61 [Trivial][USER]
-5CEF5C62 EF08 [Regular][USER]
-5CEF5C6E EF0A [Regular]
-5CEF5C72 EF0D [Regular]
-5CEF5C74 EF09 [Regular]
-5CEF5C7E EF7E [Trivial][USER]
-5CEF5C7F EF7F [Trivial][USER]
-5CEF5C80 EF80 [Trivial][USER]
-5CEF5C81 EF81 [Trivial][USER]
-5CEF5C9F EF9F [Trivial][USER]
-5CEF5CA0 EFA0 [Trivial][USER]
-5CEF5CA1 EFA1 [Trivial][USER]
-5CEF5CE0 EFE0 [Trivial][USER]
-5CEF5CEF EFEF [Trivial][USER]
-5CEF5CF9 EFF9 [Trivial][USER]
-5CEF5CFA EFFA [Trivial][USER]
-5CEF5CFC EFFC [Trivial][USER]
-5CEF5CFD EFFD [Trivial][USER]
-5CEF5CFE EFFE [Trivial][USER]
-5CEF5CFF EFFF [Trivial][USER]
-5CF95C00 F900 [Trivial][USER]
-5CF95C08 F908 [Trivial][USER]
-5CF95C09 F909 [Trivial][USER]
-5CF95C0A F90A [Trivial][USER]
-5CF95C0D F90D [Trivial][USER]
-5CF95C1A F91A [Trivial][USER]
-5CF95C22 F922 [Trivial][USER]
-5CF95C25 F95C25 [Regular]
-5CF95C27 F927 [Trivial][USER]
-5CF95C30 F900 [Regular]
-5CF95C3F F93F [Trivial][USER]
-5CF95C40 F940 [Trivial][USER]
-5CF95C5A F91A [Regular]
-5CF95C5C F95C [Regular][USER]
-5CF95C5F F95C5F [Regular]
-5CF95C61 F961 [Trivial][USER]
-5CF95C62 F908 [Regular][USER]
-5CF95C6E F90A [Regular]
-5CF95C72 F90D [Regular]
-5CF95C74 F909 [Regular]
-5CF95C7E F97E [Trivial][USER]
-5CF95C7F F97F [Trivial][USER]
-5CF95C80 F980 [Trivial][USER]
-5CF95C81 F981 [Trivial][USER]
-5CF95C9F F99F [Trivial][USER]
-5CF95CA0 F9A0 [Trivial][USER]
-5CF95CA1 F9A1 [Trivial][USER]
-5CF95CE0 F9E0 [Trivial][USER]
-5CF95CEF F9EF [Trivial][USER]
-5CF95CF9 F9F9 [Trivial][USER]
-5CF95CFA F9FA [Trivial][USER]
-5CF95CFC F9FC [Trivial][USER]
-5CF95CFD F9FD [Trivial][USER]
-5CF95CFE F9FE [Trivial][USER]
-5CF95CFF F9FF [Trivial][USER]
-5CFA5C00 FA00 [Trivial][USER]
-5CFA5C08 FA08 [Trivial][USER]
-5CFA5C09 FA09 [Trivial][USER]
-5CFA5C0A FA0A [Trivial][USER]
-5CFA5C0D FA0D [Trivial][USER]
-5CFA5C1A FA1A [Trivial][USER]
-5CFA5C22 FA22 [Trivial][USER]
-5CFA5C25 FA5C25 [Regular]
-5CFA5C27 FA27 [Trivial][USER]
-5CFA5C30 FA00 [Regular]
-5CFA5C3F FA3F [Trivial][USER]
-5CFA5C40 FA40 [Trivial][USER]
-5CFA5C5A FA1A [Regular]
-5CFA5C5C FA5C [Regular][USER]
-5CFA5C5F FA5C5F [Regular]
-5CFA5C61 FA61 [Trivial][USER]
-5CFA5C62 FA08 [Regular][USER]
-5CFA5C6E FA0A [Regular]
-5CFA5C72 FA0D [Regular]
-5CFA5C74 FA09 [Regular]
-5CFA5C7E FA7E [Trivial][USER]
-5CFA5C7F FA7F [Trivial][USER]
-5CFA5C80 FA80 [Trivial][USER]
-5CFA5C81 FA81 [Trivial][USER]
-5CFA5C9F FA9F [Trivial][USER]
-5CFA5CA0 FAA0 [Trivial][USER]
-5CFA5CA1 FAA1 [Trivial][USER]
-5CFA5CE0 FAE0 [Trivial][USER]
-5CFA5CEF FAEF [Trivial][USER]
-5CFA5CF9 FAF9 [Trivial][USER]
-5CFA5CFA FAFA [Trivial][USER]
-5CFA5CFC FAFC [Trivial][USER]
-5CFA5CFD FAFD [Trivial][USER]
-5CFA5CFE FAFE [Trivial][USER]
-5CFA5CFF FAFF [Trivial][USER]
-5CFC5C00 FC00 [Trivial][USER]
-5CFC5C08 FC08 [Trivial][USER]
-5CFC5C09 FC09 [Trivial][USER]
-5CFC5C0A FC0A [Trivial][USER]
-5CFC5C0D FC0D [Trivial][USER]
-5CFC5C1A FC1A [Trivial][USER]
-5CFC5C22 FC22 [Trivial][USER]
-5CFC5C25 FC5C25 [Regular]
-5CFC5C27 FC27 [Trivial][USER]
-5CFC5C30 FC00 [Regular]
-5CFC5C3F FC3F [Trivial][USER]
-5CFC5C40 FC40 [Trivial][USER]
-5CFC5C5A FC1A [Regular]
-5CFC5C5C FC5C [Regular][USER]
-5CFC5C5F FC5C5F [Regular]
-5CFC5C61 FC61 [Trivial][USER]
-5CFC5C62 FC08 [Regular][USER]
-5CFC5C6E FC0A [Regular]
-5CFC5C72 FC0D [Regular]
-5CFC5C74 FC09 [Regular]
-5CFC5C7E FC7E [Trivial][USER]
-5CFC5C7F FC7F [Trivial][USER]
-5CFC5C80 FC80 [Trivial][USER]
-5CFC5C81 FC81 [Trivial][USER]
-5CFC5C9F FC9F [Trivial][USER]
-5CFC5CA0 FCA0 [Trivial][USER]
-5CFC5CA1 FCA1 [Trivial][USER]
-5CFC5CE0 FCE0 [Trivial][USER]
-5CFC5CEF FCEF [Trivial][USER]
-5CFC5CF9 FCF9 [Trivial][USER]
-5CFC5CFA FCFA [Trivial][USER]
-5CFC5CFC FCFC [Trivial][USER]
-5CFC5CFD FCFD [Trivial][USER]
-5CFC5CFE FCFE [Trivial][USER]
-5CFC5CFF FCFF [Trivial][USER]
-5CFD5C00 FD00 [Trivial][USER]
-5CFD5C08 FD08 [Trivial][USER]
-5CFD5C09 FD09 [Trivial][USER]
-5CFD5C0A FD0A [Trivial][USER]
-5CFD5C0D FD0D [Trivial][USER]
-5CFD5C1A FD1A [Trivial][USER]
-5CFD5C22 FD22 [Trivial][USER]
-5CFD5C25 FD5C25 [Regular]
-5CFD5C27 FD27 [Trivial][USER]
-5CFD5C30 FD00 [Regular]
-5CFD5C3F FD3F [Trivial][USER]
-5CFD5C40 FD40 [Trivial][USER]
-5CFD5C5A FD1A [Regular]
-5CFD5C5C FD5C [Regular][USER]
-5CFD5C5F FD5C5F [Regular]
-5CFD5C61 FD61 [Trivial][USER]
-5CFD5C62 FD08 [Regular][USER]
-5CFD5C6E FD0A [Regular]
-5CFD5C72 FD0D [Regular]
-5CFD5C74 FD09 [Regular]
-5CFD5C7E FD7E [Trivial][USER]
-5CFD5C7F FD7F [Trivial][USER]
-5CFD5C80 FD80 [Trivial][USER]
-5CFD5C81 FD81 [Trivial][USER]
-5CFD5C9F FD9F [Trivial][USER]
-5CFD5CA0 FDA0 [Trivial][USER]
-5CFD5CA1 FDA1 [Trivial][USER]
-5CFD5CE0 FDE0 [Trivial][USER]
-5CFD5CEF FDEF [Trivial][USER]
-5CFD5CF9 FDF9 [Trivial][USER]
-5CFD5CFA FDFA [Trivial][USER]
-5CFD5CFC FDFC [Trivial][USER]
-5CFD5CFD FDFD [Trivial][USER]
-5CFD5CFE FDFE [Trivial][USER]
-5CFD5CFF FDFF [Trivial][USER]
-5CFE5C00 FE00 [Trivial][USER]
-5CFE5C08 FE08 [Trivial][USER]
-5CFE5C09 FE09 [Trivial][USER]
-5CFE5C0A FE0A [Trivial][USER]
-5CFE5C0D FE0D [Trivial][USER]
-5CFE5C1A FE1A [Trivial][USER]
-5CFE5C22 FE22 [Trivial][USER]
-5CFE5C25 FE5C25 [Regular]
-5CFE5C27 FE27 [Trivial][USER]
-5CFE5C30 FE00 [Regular]
-5CFE5C3F FE3F [Trivial][USER]
-5CFE5C40 FE40 [Trivial][USER]
-5CFE5C5A FE1A [Regular]
-5CFE5C5C FE5C [Regular][USER]
-5CFE5C5F FE5C5F [Regular]
-5CFE5C61 FE61 [Trivial][USER]
-5CFE5C62 FE08 [Regular][USER]
-5CFE5C6E FE0A [Regular]
-5CFE5C72 FE0D [Regular]
-5CFE5C74 FE09 [Regular]
-5CFE5C7E FE7E [Trivial][USER]
-5CFE5C7F FE7F [Trivial][USER]
-5CFE5C80 FE80 [Trivial][USER]
-5CFE5C81 FE81 [Trivial][USER]
-5CFE5C9F FE9F [Trivial][USER]
-5CFE5CA0 FEA0 [Trivial][USER]
-5CFE5CA1 FEA1 [Trivial][USER]
-5CFE5CE0 FEE0 [Trivial][USER]
-5CFE5CEF FEEF [Trivial][USER]
-5CFE5CF9 FEF9 [Trivial][USER]
-5CFE5CFA FEFA [Trivial][USER]
-5CFE5CFC FEFC [Trivial][USER]
-5CFE5CFD FEFD [Trivial][USER]
-5CFE5CFE FEFE [Trivial][USER]
-5CFE5CFF FEFF [Trivial][USER]
-5CFF5C00 FF00 [Trivial][USER]
-5CFF5C08 FF08 [Trivial][USER]
-5CFF5C09 FF09 [Trivial][USER]
-5CFF5C0A FF0A [Trivial][USER]
-5CFF5C0D FF0D [Trivial][USER]
-5CFF5C1A FF1A [Trivial][USER]
-5CFF5C22 FF22 [Trivial][USER]
-5CFF5C25 FF5C25 [Regular]
-5CFF5C27 FF27 [Trivial][USER]
-5CFF5C30 FF00 [Regular]
-5CFF5C3F FF3F [Trivial][USER]
-5CFF5C40 FF40 [Trivial][USER]
-5CFF5C5A FF1A [Regular]
-5CFF5C5C FF5C [Regular][USER]
-5CFF5C5F FF5C5F [Regular]
-5CFF5C61 FF61 [Trivial][USER]
-5CFF5C62 FF08 [Regular][USER]
-5CFF5C6E FF0A [Regular]
-5CFF5C72 FF0D [Regular]
-5CFF5C74 FF09 [Regular]
-5CFF5C7E FF7E [Trivial][USER]
-5CFF5C7F FF7F [Trivial][USER]
-5CFF5C80 FF80 [Trivial][USER]
-5CFF5C81 FF81 [Trivial][USER]
-5CFF5C9F FF9F [Trivial][USER]
-5CFF5CA0 FFA0 [Trivial][USER]
-5CFF5CA1 FFA1 [Trivial][USER]
-5CFF5CE0 FFE0 [Trivial][USER]
-5CFF5CEF FFEF [Trivial][USER]
-5CFF5CF9 FFF9 [Trivial][USER]
-5CFF5CFA FFFA [Trivial][USER]
-5CFF5CFC FFFC [Trivial][USER]
-5CFF5CFD FFFD [Trivial][USER]
-5CFF5CFE FFFE [Trivial][USER]
-5CFF5CFF FFFF [Trivial][USER]
-DROP TABLE t1;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP FUNCTION unescape;
-DROP FUNCTION unescape_type;
-DROP FUNCTION wellformedness;
-DROP FUNCTION mysql_real_escape_string_generated;
-DROP FUNCTION iswellformed;
-DROP TABLE allbytes;
-SET sql_mode = DEFAULT;
-# End of ctype_backslash.inc
-SET NAMES latin1;
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE CONCAT(c1)='a';
-c1
-a
-a
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'a ';
-c1
-a
-SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'a' and concat(`test`.`t1`.`c1`) like 'a '
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1);
-c1
-a
-a
-SELECT * FROM t1 WHERE 'a ' LIKE CONCAT(c1);
-c1
-a
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 'a' = concat(`test`.`t1`.`c1`) and 'a ' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '% '=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '% ' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '%'=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-#
-# MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a'
-#
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ';
-a LENGTH(a)
-a 1
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-a LENGTH(a)
-a 1
-EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a' and `test`.`t1`.`a` not like 'a '
-DROP TABLE t1;
-#
-# End of MDEV-8694
-#
-SET NAMES latin1 COLLATE latin1_bin;
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE CONCAT(c1)='a';
-c1
-a
-a
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'a ';
-c1
-a
-SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'a' and concat(`test`.`t1`.`c1`) like 'a '
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1);
-c1
-a
-a
-SELECT * FROM t1 WHERE 'a ' LIKE CONCAT(c1);
-c1
-a
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 'a' = concat(`test`.`t1`.`c1`) and 'a ' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '% '=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '% ' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '%'=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-#
-# MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a'
-#
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ';
-a LENGTH(a)
-a 1
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-a LENGTH(a)
-a 1
-EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a' and `test`.`t1`.`a` not like 'a '
-DROP TABLE t1;
-#
-# End of MDEV-8694
-#
-#
-# MDEV-6752 Trailing incomplete characters are not replaced to question marks on conversion
-#
-SET NAMES utf8, character_set_connection=latin1;
-SELECT 'Â';
-?
-?
-SELECT HEX('Â');
-HEX('Â')
-3F
-SELECT HEX(CAST('Â' AS CHAR CHARACTER SET utf8));
-HEX(CAST('Â' AS CHAR CHARACTER SET utf8))
-3F
-SELECT HEX(CAST('Â' AS CHAR CHARACTER SET latin1));
-HEX(CAST('Â' AS CHAR CHARACTER SET latin1))
-3F
-SELECT HEX(CONVERT('Â' USING utf8));
-HEX(CONVERT('Â' USING utf8))
-3F
-SELECT HEX(CONVERT('Â' USING latin1));
-HEX(CONVERT('Â' USING latin1))
-3F
-SELECT 'Âx';
-?x
-?x
-SELECT HEX('Âx');
-HEX('Âx')
-3F78
-SELECT HEX(CAST('Âx' AS CHAR CHARACTER SET utf8));
-HEX(CAST('Âx' AS CHAR CHARACTER SET utf8))
-3F78
-SELECT HEX(CAST('Âx' AS CHAR CHARACTER SET latin1));
-HEX(CAST('Âx' AS CHAR CHARACTER SET latin1))
-3F78
-SELECT HEX(CONVERT('Âx' USING utf8));
-HEX(CONVERT('Âx' USING utf8))
-3F78
-SELECT HEX(CONVERT('Âx' USING latin1));
-HEX(CONVERT('Âx' USING latin1))
-3F78
-SET NAMES utf8;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1);
-INSERT IGNORE INTO t1 VALUES ('Â'),('Â#');
-Warnings:
-Warning 1366 Incorrect string value: '\xC2' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\xC2#' for column 'a' at row 2
-SHOW WARNINGS;
-Level Code Message
-Warning 1366 Incorrect string value: '\xC2' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\xC2#' for column 'a' at row 2
-SELECT HEX(a),a FROM t1;
-HEX(a) a
-3F ?
-3F23 ?#
-DROP TABLE t1;
-#
-# MDEV-7629 Regression: Bit and hex string literals changed column names in 10.0.14
-#
-SELECT _latin1 0x7E, _latin1 X'7E', _latin1 B'01111110';
-_latin1 0x7E _latin1 X'7E' _latin1 B'01111110'
-~ ~ ~
-#
-# MDEV-9886 Illegal mix of collations with a view comparing a field to a binary constant
-#
-SET NAMES latin1;
-CREATE TABLE t1 (a TEXT CHARACTER SET latin1);
-INSERT INTO t1 VALUES (0xC0);
-SELECT a<>0xEE5D AS a FROM t1;
-a
-1
-CREATE VIEW v1 AS SELECT a<>0xC0 AS a FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` <> 0xc0 AS `a` from `t1` latin1 latin1_swedish_ci
-SELECT * FROM v1;
-a
-0
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8661 Wrong result for SELECT..WHERE a='a' AND a='a' COLLATE latin1_bin
-#
-SET NAMES latin1;
-CREATE TABLE t1 (a CHAR(10));
-INSERT INTO t1 VALUES ('a'),('A');
-SELECT * FROM t1 WHERE a='a' AND a='a' COLLATE latin1_bin;
-a
-a
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_swedish_ci);
-INSERT INTO t1 VALUES ('a'),('A');
-SELECT * FROM t1 WHERE a='a' COLLATE latin1_bin AND a='A' COLLATE latin1_swedish_ci;
-a
-a
-DROP TABLE t1;
-#
-# MDEV-8679 Equal field propagation is not used for VARCHAR when it safely could
-#
-CREATE TABLE t1 (a VARCHAR(10));
-INSERT INTO t1 VALUES ('10'),('11'),('12');
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='10' AND IF(a='10',1,0)=1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '10'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='10' AND CASE WHEN a='10' THEN 1 ELSE 0 END;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '10'
-DROP TABLE t1;
-#
-# MDEV-8680 Wrong result for SELECT..WHERE a IN ('a' COLLATE latin1_bin,'b') AND a='a'
-#
-SET NAMES latin1;
-CREATE TABLE t1 (a VARCHAR(10));
-INSERT INTO t1 VALUES ('a'),('A');
-SELECT * FROM t1 WHERE a IN ('a' COLLATE latin1_bin,'b');
-a
-a
-SELECT * FROM t1 WHERE a IN ('a' COLLATE latin1_bin,'b') AND a='a';
-a
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a IN ('a' COLLATE latin1_bin,'b') AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a' and `test`.`t1`.`a` in (<cache>('a' collate latin1_bin),'b')
-DROP TABLE t1;
-#
-# MDEV-8698 Wrong result for SELECT..WHERE a BETWEEN 'a' AND 'c' COLLATE latin1_bin;
-#
-SET NAMES latin1;
-CREATE TABLE t1 (a VARCHAR(10));
-INSERT INTO t1 VALUES ('a'),('A'),('b'),('B'),('c'),('C');
-SELECT * FROM t1 WHERE a BETWEEN 'a' AND 'c' COLLATE latin1_bin;
-a
-a
-b
-c
-SELECT * FROM t1 WHERE a BETWEEN 'a' AND 'c' COLLATE latin1_bin AND a='a';
-a
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a BETWEEN 'a' AND 'c' COLLATE latin1_bin AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a' and `test`.`t1`.`a` between 'a' and <cache>('c' collate latin1_bin)
-DROP TABLE t1;
-#
-# MDEV-8707 Wrong result for SELECT..WHERE varchar_column=DATE'2001-01-01' AND varchar_column='2001-01-01'
-#
-SET NAMES latin1;
-CREATE TABLE t1 (a VARCHAR(40));
-INSERT INTO t1 VALUES ('2001-01-01'),('2001-01-01x');
-SELECT * FROM t1 WHERE a=DATE'2001-01-01' AND a='2001-01-01';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a='2001-01-01' AND a=DATE'2001-01-01';
-a
-2001-01-01
-SELECT * FROM t1 WHERE (a,a)=('2001-01-01x',DATE'2001-01-01');
-a
-2001-01-01x
-Warnings:
-Warning 1292 Truncated incorrect date value: '2001-01-01x'
-SELECT * FROM t1 WHERE (a,a)=(DATE'2001-01-01','2001-01-01x');
-a
-2001-01-01x
-Warnings:
-Warning 1292 Truncated incorrect date value: '2001-01-01x'
-SELECT * FROM t1 WHERE (a,a)=('2001-01-01',DATE'2001-01-01');
-a
-2001-01-01
-SELECT * FROM t1 WHERE (a,a)=(DATE'2001-01-01','2001-01-01');
-a
-2001-01-01
-DROP TABLE t1;
-CREATE TABLE t1 (a ENUM('2001-01-01','2001-01-01x'));
-INSERT INTO t1 VALUES ('2001-01-01'),('2001-01-01x');
-SELECT * FROM t1 WHERE a=DATE'2001-01-01' AND a='2001-01-01';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a='2001-01-01' AND a=DATE'2001-01-01';
-a
-2001-01-01
-SELECT * FROM t1 WHERE (a,a)=('2001-01-01x',DATE'2001-01-01');
-a
-2001-01-01x
-Warnings:
-Warning 1292 Truncated incorrect date value: '2001-01-01x'
-SELECT * FROM t1 WHERE (a,a)=(DATE'2001-01-01','2001-01-01x');
-a
-2001-01-01x
-Warnings:
-Warning 1292 Truncated incorrect date value: '2001-01-01x'
-SELECT * FROM t1 WHERE (a,a)=('2001-01-01',DATE'2001-01-01');
-a
-2001-01-01
-SELECT * FROM t1 WHERE (a,a)=(DATE'2001-01-01','2001-01-01');
-a
-2001-01-01
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(40),b VARCHAR(40));
-INSERT INTO t1 VALUES ('2001-01-01','2001-01-01x');
-SELECT * FROM t1 WHERE a=b AND a=DATE'2001-01-01';
-a b
-DROP TABLE t1;
-CREATE TABLE t1 (a ENUM('2001-01-01','2001-01-01x'),b ENUM('2001-01-01','2001-01-01x'));
-INSERT INTO t1 VALUES ('2001-01-01','2001-01-01x');
-SELECT * FROM t1 WHERE a=b AND a=DATE'2001-01-01';
-a b
-DROP TABLE t1;
-#
-# MDEV-8695 Wrong result for SELECT..WHERE varchar_column='a' AND CRC32(varchar_column)=3904355907
-#
-CREATE TABLE t1 (a VARCHAR(10) COLLATE latin1_bin);
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a), CRC32(a) FROM t1 WHERE CRC32(a)=3904355907;
-a LENGTH(a) CRC32(a)
-a 1 3904355907
-SELECT a, LENGTH(a), CRC32(a) FROM t1 WHERE a='a' AND CRC32(a)=3904355907;
-a LENGTH(a) CRC32(a)
-a 1 3904355907
-# 'a' should not be propagated into CRC32(a)
-EXPLAIN EXTENDED SELECT a, LENGTH(a), CRC32(a) FROM t1 WHERE a='a' AND CRC32(a)=3904355907;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)`,crc32(`test`.`t1`.`a`) AS `CRC32(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a' and crc32(`test`.`t1`.`a`) = 3904355907
-SELECT a, HEX(a) FROM t1 WHERE HEX(a)='61';
-a HEX(a)
-a 61
-SELECT *,HEX(a) FROM t1 WHERE a='a' AND HEX(a)='61';
-a HEX(a)
-a 61
-# 'a' should not be propagated into HEX(a)
-EXPLAIN EXTENDED SELECT *,HEX(a) FROM t1 WHERE a='a' AND HEX(a)='61';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,hex(`test`.`t1`.`a`) AS `HEX(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a' and hex(`test`.`t1`.`a`) = '61'
-SELECT * FROM t1 WHERE a='a';
-a
-a
-a
-SELECT * FROM t1 WHERE LENGTH(a)=2;
-a
-a
-SELECT * FROM t1 WHERE a='a' AND LENGTH(a)=2;
-a
-a
-# 'a' should not be propagated into LENGTH(a)
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='a' AND LENGTH(a)=2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a' and octet_length(`test`.`t1`.`a`) = 2
-DROP TABLE t1;
-#
-# MDEV-8712 Wrong result for SELECT..WHERE latin1_bin_column=_latin1'a' AND latin1_bin_column='A'
-#
-SET NAMES latin1;
-CREATE TABLE t1 (a VARCHAR(20) COLLATE latin1_bin);
-INSERT INTO t1 VALUES ('a'),('b');
-SELECT * FROM t1 WHERE a='A';
-a
-SELECT * FROM t1 WHERE a='A' AND a=_latin1'a';
-a
-SELECT * FROM t1 WHERE a=_latin1'a' AND a='A';
-a
-SELECT * FROM t1 WHERE a=_latin1'A';
-a
-SELECT * FROM t1 WHERE a=_latin1'A' AND a=_latin1'a';
-a
-SELECT * FROM t1 WHERE a=_latin1'a' AND a=_latin1'A';
-a
-DROP TABLE t1;
-#
-# MDEV-8253 EXPLAIN SELECT prints unexpected characters
-#
-SET NAMES latin1;
-CREATE TABLE t1 (a DECIMAL(10,1),b DECIMAL(10,1),c VARCHAR(10),d VARCHAR(10));
-INSERT INTO t1 VALUES (1.5,1.5,'1','1'),(3.5,3.5,'3','3');
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(c,0)='3 ' AND COALESCE(d,0)=COALESCE(c,0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` where coalesce(`test`.`t1`.`c`,0) = '3 ' and coalesce(`test`.`t1`.`d`,0) = '3 '
-DROP TABLE t1;
-#
-# MDEV-15005 ASAN: stack-buffer-overflow in my_strnncollsp_simple
-#
-SET NAMES latin1;
-SELECT CONVERT(1, CHAR) IN ('100', 10, '101');
-CONVERT(1, CHAR) IN ('100', 10, '101')
-0
-SELECT CONVERT(1, CHAR) IN ('100', 10, '1');
-CONVERT(1, CHAR) IN ('100', 10, '1')
-1
-SELECT CONVERT(1, CHAR) IN ('100', '10', '1');
-CONVERT(1, CHAR) IN ('100', '10', '1')
-1
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=latin1;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin1_swedish_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin1_swedish_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin1_swedish_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin1_swedish_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin1_swedish_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin1_swedish_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin1_swedish_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin1_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin1_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin1_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin1_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin1_swedish_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin1_swedish_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin1_swedish_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin1_swedish_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin1_swedish_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_swedish_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin1_swedish_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_swedish_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin1_swedish_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin1_swedish_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin1_swedish_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin1_swedish_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin1_swedish_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin1_swedish_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin1_swedish_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin1_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin1_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin1_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin1_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin1_swedish_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin1_swedish_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin1_swedish_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin1_swedish_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin1_swedish_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_swedish_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin1_swedish_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_swedish_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin1_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin1_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin1_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin1_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin1_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin1_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin1_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin1_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin1_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin1_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin1_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin1_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin1_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin1_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin1_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin1_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin1_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin1_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin1_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin1 COLLATE=latin1_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin1_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin1_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin1_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin1_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin1_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin1_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin1_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin1_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin1_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin1_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin1_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin1_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin1_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin1_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin1_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin1_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET NAMES latin1;
-#
-# MDEV-14350 Index use with collation utf8mb4_unicode_nopad_ci on LIKE pattern with wrong results
-#
-CREATE OR REPLACE TABLE t1 AS SELECT SPACE(50) AS a, SPACE (50) AS b;
-ALTER TABLE t1 ADD KEY(a), ADD KEY(b);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(50) DEFAULT NULL,
- `b` varchar(50) DEFAULT NULL,
- KEY `a` (`a`),
- KEY `b` (`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('111', '111');
-INSERT INTO t1 VALUES ('222', '222');
-INSERT INTO t1 VALUES ('333', '333');
-INSERT INTO t1 VALUES ('444', '444');
-SELECT * FROM t1 WHERE a LIKE '111%';
-a b
-111 111
-SELECT * FROM t1 IGNORE INDEX (a) WHERE a LIKE '111%';
-a b
-111 111
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_latin1_de.result b/mysql-test/r/ctype_latin1_de.result
deleted file mode 100644
index 2d3803fba18..00000000000
--- a/mysql-test/r/ctype_latin1_de.result
+++ /dev/null
@@ -1,837 +0,0 @@
-set names latin1;
-set @@collation_connection=latin1_german2_ci;
-select @@collation_connection;
-@@collation_connection
-latin1_german2_ci
-drop table if exists t1;
-create table t1 (a char (20) not null, b int not null auto_increment, index (a,b));
-insert into t1 (a) values ('ä'),('ac'),('ae'),('ad'),('Äc'),('aeb');
-insert into t1 (a) values ('üc'),('uc'),('ue'),('ud'),('Ü'),('ueb'),('uf');
-insert into t1 (a) values ('ö'),('oc'),('Öa'),('oe'),('od'),('Öc'),('oeb');
-insert into t1 (a) values ('s'),('ss'),('ß'),('ßb'),('ssa'),('ssc'),('ßa');
-insert into t1 (a) values ('eä'),('uü'),('öo'),('ää'),('ääa'),('aeae');
-insert into t1 (a) values ('q'),('a'),('u'),('o'),('é'),('É'),('a');
-select a,b from t1 order by a,b;
-a b
-a 1
-a 2
-ac 1
-ad 1
-ä 1
-ae 2
-ää 1
-aeae 2
-ääa 1
-aeb 1
-Äc 1
-é 1
-É 2
-eä 1
-o 1
-oc 1
-od 1
-ö 1
-oe 2
-Öa 1
-oeb 1
-Öc 1
-öo 1
-q 1
-s 1
-ss 1
-ß 2
-ssa 1
-ßa 2
-ßb 1
-ssc 1
-u 1
-uc 1
-ud 1
-ue 1
-Ü 2
-ueb 1
-üc 1
-uf 1
-uü 1
-select a,b from t1 order by upper(a),b;
-a b
-a 1
-a 2
-ac 1
-ad 1
-ä 1
-ae 2
-ää 1
-aeae 2
-ääa 1
-aeb 1
-Äc 1
-é 1
-É 2
-eä 1
-o 1
-oc 1
-od 1
-ö 1
-oe 2
-Öa 1
-oeb 1
-Öc 1
-öo 1
-q 1
-s 1
-ss 1
-ß 2
-ssa 1
-ßa 2
-ßb 1
-ssc 1
-u 1
-uc 1
-ud 1
-ue 1
-Ü 2
-ueb 1
-üc 1
-uf 1
-uü 1
-select a from t1 order by a desc;
-a
-uü
-uf
-üc
-ueb
-ue
-ud
-uc
-u
-ssc
-ßb
-ßa
-ssa
-ss
-s
-q
-öo
-Öc
-oeb
-Öa
-oe
-od
-oc
-o
-eä
-Äc
-aeb
-ääa
-aeae
-ää
-ae
-ad
-ac
-a
-a
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-select * from t1 where a like "ö%";
-a b
-ö 1
-Öa 1
-Öc 1
-öo 1
-select * from t1 where a like binary "%É%";
-a b
-É 2
-select * from t1 where a like "%Á%";
-a b
-a 1
-a 2
-ac 1
-ad 1
-ae 2
-aeae 2
-ääa 1
-aeb 1
-Öa 1
-ssa 1
-ßa 2
-select * from t1 where a like "%U%";
-a b
-u 1
-uc 1
-ud 1
-ue 1
-ueb 1
-uf 1
-uü 1
-select * from t1 where a like "%ss%";
-a b
-ss 1
-ssa 1
-ssc 1
-drop table t1;
-select strcmp('ä','ae'),strcmp('ae','ä'),strcmp('aeq','äq'),strcmp('äq','aeq');
-strcmp('ä','ae') strcmp('ae','ä') strcmp('aeq','äq') strcmp('äq','aeq')
-0 0 0 0
-select strcmp('ss','ß'),strcmp('ß','ss'),strcmp('ßs','sss'),strcmp('ßq','ssq');
-strcmp('ss','ß') strcmp('ß','ss') strcmp('ßs','sss') strcmp('ßq','ssq')
-0 0 0 0
-select strcmp('ä','af'),strcmp('a','ä'),strcmp('ää','aeq'),strcmp('ää','aeaeq');
-strcmp('ä','af') strcmp('a','ä') strcmp('ää','aeq') strcmp('ää','aeaeq')
--1 -1 -1 -1
-select strcmp('ss','ßa'),strcmp('ß','ssa'),strcmp('sßa','sssb'),strcmp('s','ß');
-strcmp('ss','ßa') strcmp('ß','ssa') strcmp('sßa','sssb') strcmp('s','ß')
--1 -1 -1 -1
-select strcmp('ö','oö'),strcmp('Ü','uü'),strcmp('ö','oeb');
-strcmp('ö','oö') strcmp('Ü','uü') strcmp('ö','oeb')
--1 -1 -1
-select strcmp('af','ä'),strcmp('ä','a'),strcmp('aeq','ää'),strcmp('aeaeq','ää');
-strcmp('af','ä') strcmp('ä','a') strcmp('aeq','ää') strcmp('aeaeq','ää')
-1 1 1 1
-select strcmp('ßa','ss'),strcmp('ssa','ß'),strcmp('sssb','sßa'),strcmp('ß','s');
-strcmp('ßa','ss') strcmp('ssa','ß') strcmp('sssb','sßa') strcmp('ß','s')
-1 1 1 1
-select strcmp('u','öa'),strcmp('u','ö');
-strcmp('u','öa') strcmp('u','ö')
-1 1
-select strcmp('sä', 'ßa'), strcmp('aä', 'äx');
-strcmp('sä', 'ßa') strcmp('aä', 'äx')
--1 -1
-create table t1 (a varchar(10), key(a), fulltext (a));
-insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
-select * from t1 where a like "abc%";
-a
-abc
-abcd
-select * from t1 where a like "test%";
-a
-test
-select * from t1 where a like "te_t";
-a
-test
-select * from t1 where match a against ("te*" in boolean mode)+0;
-a
-test
-drop table t1;
-create table t1 (word varchar(255) not null, word2 varchar(255) not null default '', index(word));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `word` varchar(255) COLLATE latin1_german2_ci NOT NULL,
- `word2` varchar(255) COLLATE latin1_german2_ci NOT NULL DEFAULT '',
- KEY `word` (`word`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci
-insert into t1 (word) values ('ss'),(0xDF),(0xE4),('ae');
-update t1 set word2=word;
-select word, word=binary 0xdf as t from t1 having t > 0;
-word t
-ß 1
-select word, word=cast(0xdf AS CHAR) as t from t1 having t > 0;
-word t
-ss 1
-ß 1
-select * from t1 where word=binary 0xDF;
-word word2
-ß ß
-select * from t1 where word=CAST(0xDF as CHAR);
-word word2
-ss ss
-ß ß
-select * from t1 where word2=binary 0xDF;
-word word2
-ß ß
-select * from t1 where word2=CAST(0xDF as CHAR);
-word word2
-ss ss
-ß ß
-select * from t1 where word='ae';
-word word2
-ä ä
-ae ae
-select * from t1 where word= 0xe4 or word=CAST(0xe4 as CHAR);
-word word2
-ä ä
-ae ae
-select * from t1 where word between binary 0xDF and binary 0xDF;
-word word2
-ß ß
-select * from t1 where word between CAST(0xDF AS CHAR) and CAST(0xDF AS CHAR);
-word word2
-ss ss
-ß ß
-select * from t1 where word like 'ae';
-word word2
-ae ae
-select * from t1 where word like 'AE';
-word word2
-ae ae
-select * from t1 where word like binary 0xDF;
-word word2
-ß ß
-select * from t1 where word like CAST(0xDF as CHAR);
-word word2
-ß ß
-drop table t1;
-CREATE TABLE t1 (
-autor varchar(80) NOT NULL default '',
-PRIMARY KEY (autor)
-);
-INSERT INTO t1 VALUES ('Powell, B.'),('Powell, Bud.'),('Powell, L. H.'),('Power, H.'),
-('Poynter, M. A. L. Lane'),('Poynting, J. H. und J. J. Thomson.'),('Pozzi, S(amuel-Jean).'),
-('Pozzi, Samuel-Jean.'),('Pozzo, A.'),('Pozzoli, Serge.');
-SELECT * FROM t1 WHERE autor LIKE 'Poz%' ORDER BY autor;
-autor
-Pozzi, S(amuel-Jean).
-Pozzi, Samuel-Jean.
-Pozzo, A.
-Pozzoli, Serge.
-DROP TABLE t1;
-CREATE TABLE t1 (
-s1 CHAR(5) CHARACTER SET latin1 COLLATE latin1_german2_ci
-);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` char(5) COLLATE latin1_german2_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci
-INSERT INTO t1 VALUES ('Ü');
-INSERT INTO t1 VALUES ('ue');
-SELECT DISTINCT s1 FROM t1;
-s1
-SELECT s1,COUNT(*) FROM t1 GROUP BY s1;
-s1 COUNT(*)
-Ü 2
-SELECT COUNT(DISTINCT s1) FROM t1;
-COUNT(DISTINCT s1)
-1
-SELECT FIELD('ue',s1), FIELD('Ü',s1), s1='ue', s1='Ü' FROM t1;
-FIELD('ue',s1) FIELD('Ü',s1) s1='ue' s1='Ü'
-1 1 1 1
-1 1 1 1
-DROP TABLE t1;
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-latin1_german2_ci 6109
-latin1_german2_ci 61
-latin1_german2_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-latin1_german2_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-latin1_german2_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-"BEGIN ctype_german.inc"
-drop table if exists t1;
-create table t1 as select repeat(' ', 64) as s1;
-select collation(s1) from t1;
-collation(s1)
-latin1_german2_ci
-delete from t1;
-INSERT INTO t1 VALUES ('ud'),('uf');
-INSERT INTO t1 VALUES ('od'),('of');
-INSERT INTO t1 VALUES ('e');
-INSERT INTO t1 VALUES ('ad'),('af');
-insert into t1 values ('a'),('ae'),(_latin1 0xE4);
-insert into t1 values ('o'),('oe'),(_latin1 0xF6);
-insert into t1 values ('s'),('ss'),(_latin1 0xDF);
-insert into t1 values ('u'),('ue'),(_latin1 0xFC);
-INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
-INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
-select s1, hex(s1) from t1 order by s1, binary s1;
-s1 hex(s1)
-a 61
-ad 6164
-ae 6165
-ä E4
-af 6166
-e 65
-o 6F
-od 6F64
-oe 6F65
-ö F6
-of 6F66
-s 73
-ss 7373
-ß DF
-u 75
-ud 7564
-ue 7565
-ü FC
-uf 7566
-Æ C6
-æ E6
-Œ 8C
-œ 9C
-select group_concat(s1 order by binary s1) from t1 group by s1;
-group_concat(s1 order by binary s1)
-a
-ad
-ae,ä
-af
-e
-o
-od
-oe,ö
-of
-s
-ss,ß
-u
-ud
-ue,ü
-uf
-Æ,æ
-SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
-s1 hex(s1) hex(weight_string(s1))
-a 61 41
-ad 6164 4144
-ae 6165 4145
-ä E4 4145
-af 6166 4146
-e 65 45
-o 6F 4F
-od 6F64 4F44
-oe 6F65 4F45
-ö F6 4F45
-of 6F66 4F46
-s 73 53
-ss 7373 5353
-ß DF 5353
-u 75 55
-ud 7564 5544
-ue 7565 5545
-ü FC 5545
-uf 7566 5546
-Æ C6 5C
-æ E6 5C
-Œ 8C 8C
-œ 9C 9C
-SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
-s1 hex(s1)
-ae 6165
-ä E4
-drop table t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) COLLATE latin1_german2_ci DEFAULT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci
-INSERT INTO t1 VALUES ('s',0),(_latin1 0xDF,1);
-SELECT * FROM t1 ORDER BY a, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY a DESC, b;
-a b
-ß 1
-s 0
-SELECT * FROM t1 ORDER BY CONCAT(a), b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
-a b
-ß 1
-s 0
-DROP TABLE t1;
-"END ctype_german.inc"
-SET NAMES latin1;
-CREATE TABLE t1 (
-col1 varchar(255) NOT NULL default ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 collate latin1_german2_ci;
-INSERT INTO t1 VALUES ('ß'),('ss'),('ss');
-ALTER TABLE t1 ADD KEY ifword(col1);
-SELECT * FROM t1 WHERE col1='ß' ORDER BY col1, BINARY col1;
-col1
-ss
-ss
-DROP TABLE t1;
-create table t1 (s1 char(5) character set latin1 collate latin1_german2_ci);
-insert into t1 values (0xf6) /* this is o-umlaut */;
-select * from t1 where length(s1)=1 and s1='oe';
-s1
-drop table t1;
-End of 5.1 tests
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set @@collation_connection=latin1_german2_ci;
-select @@collation_connection;
-@@collation_connection
-latin1_german2_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) COLLATE latin1_german2_ci NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-41
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) COLLATE latin1_german2_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-4141414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-4141414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41414141412020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41414141412020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-41
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-414243
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-4142
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-414243
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-4142432020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-41
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-4142
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-414220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-41422020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-4142202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-41422020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-41
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-4142
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-414243
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-41424320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-41
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-4142
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-414243
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-41424320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-latin1_german2_ci
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-8080802020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-808020
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-80802020
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-8080202020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-80802020202020202020202020202020202020202020202020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-80808020
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-8080802020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-80808020202020202020202020202020202020202020202020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-80
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-8080
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-808080
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-80808020
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-8080802020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-80808020202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-latin1_german2_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-41
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-414243
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-4142
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-414243
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-4142432020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020434241
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-BEBDBCDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDFBCBDBE
-select hex(weight_string('Ä'));
-hex(weight_string('Ä'))
-4145
-select hex(weight_string('ä'));
-hex(weight_string('ä'))
-4145
-select hex(weight_string('Ö'));
-hex(weight_string('Ö'))
-4F45
-select hex(weight_string('ö'));
-hex(weight_string('ö'))
-4F45
-select hex(weight_string('Ü'));
-hex(weight_string('Ü'))
-5545
-select hex(weight_string('ü'));
-hex(weight_string('ü'))
-5545
-select hex(weight_string('S'));
-hex(weight_string('S'))
-53
-select hex(weight_string('s'));
-hex(weight_string('s'))
-53
-select hex(weight_string('ß'));
-hex(weight_string('ß'))
-5353
-select hex(weight_string('ä' as char(1)));
-hex(weight_string('ä' as char(1)))
-41
-select hex(weight_string('ö' as char(1)));
-hex(weight_string('ö' as char(1)))
-4F
-select hex(weight_string('ü' as char(1)));
-hex(weight_string('ü' as char(1)))
-55
-select hex(weight_string('ß' as char(1)));
-hex(weight_string('ß' as char(1)))
-53
-select hex(weight_string('xä' as char(2)));
-hex(weight_string('xä' as char(2)))
-5841
-select hex(weight_string('xö' as char(2)));
-hex(weight_string('xö' as char(2)))
-584F
-select hex(weight_string('xü' as char(2)));
-hex(weight_string('xü' as char(2)))
-5855
-select hex(weight_string('xß' as char(2)));
-hex(weight_string('xß' as char(2)))
-5853
-#
-# End of 5.6 tests
-#
diff --git a/mysql-test/r/ctype_latin2.result b/mysql-test/r/ctype_latin2.result
deleted file mode 100644
index d8fd22b5322..00000000000
--- a/mysql-test/r/ctype_latin2.result
+++ /dev/null
@@ -1,846 +0,0 @@
-drop table if exists t1;
-SET NAMES latin2;
-CREATE TABLE t1 (a char(1) character set latin2);
-INSERT INTO t1 VALUES (0x20),(0x21),(0x22),(0x23),(0x24),(0x25),(0x26),(0x27);
-INSERT INTO t1 VALUES (0x28),(0x29),(0x2A),(0x2B),(0x2C),(0x2D),(0x2E),(0x2F);
-INSERT INTO t1 VALUES (0x30),(0x31),(0x32),(0x33),(0x34),(0x35),(0x36),(0x37);
-INSERT INTO t1 VALUES (0x38),(0x39),(0x3A),(0x3B),(0x3C),(0x3D),(0x3E),(0x3F);
-INSERT INTO t1 VALUES (0x40),(0x41),(0x42),(0x43),(0x44),(0x45),(0x46),(0x47);
-INSERT INTO t1 VALUES (0x48),(0x49),(0x4A),(0x4B),(0x4C),(0x4D),(0x4E),(0x4F);
-INSERT INTO t1 VALUES (0x50),(0x51),(0x52),(0x53),(0x54),(0x55),(0x56),(0x57);
-INSERT INTO t1 VALUES (0x58),(0x59),(0x5A),(0x5B),(0x5C),(0x5D),(0x5E),(0x5F);
-INSERT INTO t1 VALUES (0x60),(0x61),(0x62),(0x63),(0x64),(0x65),(0x66),(0x67);
-INSERT INTO t1 VALUES (0x68),(0x69),(0x6A),(0x6B),(0x6C),(0x6D),(0x6E),(0x6F);
-INSERT INTO t1 VALUES (0x70),(0x71),(0x72),(0x73),(0x74),(0x75),(0x76),(0x77);
-INSERT INTO t1 VALUES (0x78),(0x79),(0x7A),(0x7B),(0x7C),(0x7D),(0x7E),(0x7F);
-INSERT INTO t1 VALUES (0x80),(0x81),(0x82),(0x83),(0x84),(0x85),(0x86),(0x87);
-INSERT INTO t1 VALUES (0x88),(0x89),(0x8A),(0x8B),(0x8C),(0x8D),(0x8E),(0x8F);
-INSERT INTO t1 VALUES (0x90),(0x91),(0x92),(0x93),(0x94),(0x95),(0x96),(0x97);
-INSERT INTO t1 VALUES (0x98),(0x99),(0x9A),(0x9B),(0x9C),(0x9D),(0x9E),(0x9F);
-INSERT INTO t1 VALUES (0xA0),(0xA1),(0xA2),(0xA3),(0xA4),(0xA5),(0xA6),(0xA7);
-INSERT INTO t1 VALUES (0xA8),(0xA9),(0xAA),(0xAB),(0xAC),(0xAD),(0xAE),(0xAF);
-INSERT INTO t1 VALUES (0xB0),(0xB1),(0xB2),(0xB3),(0xB4),(0xB5),(0xB6),(0xB7);
-INSERT INTO t1 VALUES (0xB8),(0xB9),(0xBA),(0xBB),(0xBC),(0xBD),(0xBE),(0xBF);
-INSERT INTO t1 VALUES (0xC0),(0xC1),(0xC2),(0xC3),(0xC4),(0xC5),(0xC6),(0xC7);
-INSERT INTO t1 VALUES (0xC8),(0xC9),(0xCA),(0xCB),(0xCC),(0xCD),(0xCE),(0xCF);
-INSERT INTO t1 VALUES (0xD0),(0xD1),(0xD2),(0xD3),(0xD4),(0xD5),(0xD6),(0xD7);
-INSERT INTO t1 VALUES (0xD8),(0xD9),(0xDA),(0xDB),(0xDC),(0xDD),(0xDE),(0xDF);
-INSERT INTO t1 VALUES (0xE0),(0xE1),(0xE2),(0xE3),(0xE4),(0xE5),(0xE6),(0xE7);
-INSERT INTO t1 VALUES (0xE8),(0xE9),(0xEA),(0xEB),(0xEC),(0xED),(0xEE),(0xEF);
-INSERT INTO t1 VALUES (0xF0),(0xF1),(0xF2),(0xF3),(0xF4),(0xF5),(0xF6),(0xF7);
-INSERT INTO t1 VALUES (0xF8),(0xF9),(0xFA),(0xFB),(0xFC),(0xFD),(0xFE),(0xFF);
-SELECT hex(a) ha, hex(lower(a)) hl, hex(upper(a)) hu,
-a, lower(a) l, upper(a) u from t1 order by ha;
-ha hl hu a l u
-
-21 21 21 ! ! !
-22 22 22 " " "
-23 23 23 # # #
-24 24 24 $ $ $
-25 25 25 % % %
-26 26 26 & & &
-27 27 27 ' ' '
-28 28 28 ( ( (
-29 29 29 ) ) )
-2A 2A 2A * * *
-2B 2B 2B + + +
-2C 2C 2C , , ,
-2D 2D 2D - - -
-2E 2E 2E . . .
-2F 2F 2F / / /
-30 30 30 0 0 0
-31 31 31 1 1 1
-32 32 32 2 2 2
-33 33 33 3 3 3
-34 34 34 4 4 4
-35 35 35 5 5 5
-36 36 36 6 6 6
-37 37 37 7 7 7
-38 38 38 8 8 8
-39 39 39 9 9 9
-3A 3A 3A : : :
-3B 3B 3B ; ; ;
-3C 3C 3C < < <
-3D 3D 3D = = =
-3E 3E 3E > > >
-3F 3F 3F ? ? ?
-40 40 40 @ @ @
-41 61 41 A a A
-42 62 42 B b B
-43 63 43 C c C
-44 64 44 D d D
-45 65 45 E e E
-46 66 46 F f F
-47 67 47 G g G
-48 68 48 H h H
-49 69 49 I i I
-4A 6A 4A J j J
-4B 6B 4B K k K
-4C 6C 4C L l L
-4D 6D 4D M m M
-4E 6E 4E N n N
-4F 6F 4F O o O
-50 70 50 P p P
-51 71 51 Q q Q
-52 72 52 R r R
-53 73 53 S s S
-54 74 54 T t T
-55 75 55 U u U
-56 76 56 V v V
-57 77 57 W w W
-58 78 58 X x X
-59 79 59 Y y Y
-5A 7A 5A Z z Z
-5B 5B 5B [ [ [
-5C 5C 5C \ \ \
-5D 5D 5D ] ] ]
-5E 5E 5E ^ ^ ^
-5F 5F 5F _ _ _
-60 60 60 ` ` `
-61 61 41 a a A
-62 62 42 b b B
-63 63 43 c c C
-64 64 44 d d D
-65 65 45 e e E
-66 66 46 f f F
-67 67 47 g g G
-68 68 48 h h H
-69 69 49 i i I
-6A 6A 4A j j J
-6B 6B 4B k k K
-6C 6C 4C l l L
-6D 6D 4D m m M
-6E 6E 4E n n N
-6F 6F 4F o o O
-70 70 50 p p P
-71 71 51 q q Q
-72 72 52 r r R
-73 73 53 s s S
-74 74 54 t t T
-75 75 55 u u U
-76 76 56 v v V
-77 77 57 w w W
-78 78 58 x x X
-79 79 59 y y Y
-7A 7A 5A z z Z
-7B 7B 7B { { {
-7C 7C 7C | | |
-7D 7D 7D } } }
-7E 7E 7E ~ ~ ~
-7F 7F 7F   
-80 80 80 € € €
-81 81 81
-82 82 82 ‚ ‚ ‚
-83 83 83 ƒ ƒ ƒ
-84 84 84 „ „ „
-85 85 85 … … …
-86 86 86 † † †
-87 87 87 ‡ ‡ ‡
-88 88 88 ˆ ˆ ˆ
-89 89 89 ‰ ‰ ‰
-8A 8A 8A Š Š Š
-8B 8B 8B ‹ ‹ ‹
-8C 8C 8C Œ Œ Œ
-8D 8D 8D
-8E 8E 8E Ž Ž Ž
-8F 8F 8F
-90 90 90
-91 91 91 ‘ ‘ ‘
-92 92 92 ’ ’ ’
-93 93 93 “ “ “
-94 94 94 ” ” ”
-95 95 95 • • •
-96 96 96 – – –
-97 97 97 — — —
-98 98 98 ˜ ˜ ˜
-99 99 99 ™ ™ ™
-9A 9A 9A š š š
-9B 9B 9B › › ›
-9C 9C 9C œ œ œ
-9D 9D 9D
-9E 9E 9E ž ž ž
-9F 9F 9F Ÿ Ÿ Ÿ
-A0 A0 A0      
-A1 B1 A1 ¡ ± ¡
-A2 A2 A2 ¢ ¢ ¢
-A3 B3 A3 £ ³ £
-A4 A4 A4 ¤ ¤ ¤
-A5 B5 A5 ¥ µ ¥
-A6 B6 A6 ¦ ¶ ¦
-A7 A7 A7 § § §
-A8 A8 A8 ¨ ¨ ¨
-A9 B9 A9 © ¹ ©
-AA BA AA ª º ª
-AB BB AB « » «
-AC BC AC ¬ ¼ ¬
-AD AD AD ­ ­ ­
-AE BE AE ® ¾ ®
-AF BF AF ¯ ¿ ¯
-B0 B0 B0 ° ° °
-B1 B1 A1 ± ± ¡
-B2 B2 B2 ² ² ²
-B3 B3 A3 ³ ³ £
-B4 B4 B4 ´ ´ ´
-B5 B5 A5 µ µ ¥
-B6 B6 A6 ¶ ¶ ¦
-B7 B7 B7 · · ·
-B8 B8 B8 ¸ ¸ ¸
-B9 B9 A9 ¹ ¹ ©
-BA BA AA º º ª
-BB BB AB » » «
-BC BC AC ¼ ¼ ¬
-BD BD BD ½ ½ ½
-BE BE AE ¾ ¾ ®
-BF BF AF ¿ ¿ ¯
-C0 E0 C0 À à À
-C1 E1 C1 Á á Á
-C2 E2 C2 Â â Â
-C3 E3 C3 Ã ã Ã
-C4 E4 C4 Ä ä Ä
-C5 E5 C5 Å å Å
-C6 E6 C6 Æ æ Æ
-C7 E7 C7 Ç ç Ç
-C8 E8 C8 È è È
-C9 E9 C9 É é É
-CA EA CA Ê ê Ê
-CB EB CB Ë ë Ë
-CC EC CC Ì ì Ì
-CD ED CD Í í Í
-CE EE CE Î î Î
-CF EF CF Ï ï Ï
-D0 F0 D0 Ð ð Ð
-D1 F1 D1 Ñ ñ Ñ
-D2 F2 D2 Ò ò Ò
-D3 F3 D3 Ó ó Ó
-D4 F4 D4 Ô ô Ô
-D5 F5 D5 Õ õ Õ
-D6 F6 D6 Ö ö Ö
-D7 D7 D7 × × ×
-D8 F8 D8 Ø ø Ø
-D9 F9 D9 Ù ù Ù
-DA FA DA Ú ú Ú
-DB FB DB Û û Û
-DC FC DC Ü ü Ü
-DD FD DD Ý ý Ý
-DE FE DE Þ þ Þ
-DF DF DF ß ß ß
-E0 E0 C0 à à À
-E1 E1 C1 á á Á
-E2 E2 C2 â â Â
-E3 E3 C3 ã ã Ã
-E4 E4 C4 ä ä Ä
-E5 E5 C5 å å Å
-E6 E6 C6 æ æ Æ
-E7 E7 C7 ç ç Ç
-E8 E8 C8 è è È
-E9 E9 C9 é é É
-EA EA CA ê ê Ê
-EB EB CB ë ë Ë
-EC EC CC ì ì Ì
-ED ED CD í í Í
-EE EE CE î î Î
-EF EF CF ï ï Ï
-F0 F0 D0 ð ð Ð
-F1 F1 D1 ñ ñ Ñ
-F2 F2 D2 ò ò Ò
-F3 F3 D3 ó ó Ó
-F4 F4 D4 ô ô Ô
-F5 F5 D5 õ õ Õ
-F6 F6 D6 ö ö Ö
-F7 F7 F7 ÷ ÷ ÷
-F8 F8 D8 ø ø Ø
-F9 F9 D9 ù ù Ù
-FA FA DA ú ú Ú
-FB FB DB û û Û
-FC FC DC ü ü Ü
-FD FD DD ý ý Ý
-FE FE DE þ þ Þ
-FF FF FF ÿ ÿ ÿ
-SELECT group_concat(a collate latin2_croatian_ci order by binary a) from t1 group by a collate latin2_croatian_ci;
-group_concat(a collate latin2_croatian_ci order by binary a)
-
-!
-"
-#
-$
-%
-&
-'
-(
-)
-*
-+
-,
--
-.
-/
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-:
-;
-<
-=
->
-?
-@
-A,a,¡,±,Á,Â,Ã,Ä,á,â,ã,ä
-B,b
-C,c,Ç,ç
-È,è
-Æ,æ
-D,d,Ï,ï
-Ð,ð
-E,e,É,Ê,Ë,Ì,é,ê,ë,ì
-F,f
-G,g
-H,h
-I,i,Í,Î,í,î
-J,j
-K,k
-L,l,£,¥,³,µ,Å,å
-M,m
-N,n,Ñ,Ò,ñ,ò
-O,o,Ó,Ô,Õ,Ö,ó,ô,õ,ö
-P,p
-Q,q
-R,r,À,Ø,à,ø
-S,s,¦,ª,¶,º,ß
-©,¹
-T,t,«,»,Þ,þ
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü
-V,v
-W,w
-X,x
-Y,y,Ý,ý
-Z,z,¬,¯,¼,¿
-®,¾
-[
-\
-]
-^
-_
-`
-{
-|
-}
-~
-
-€
-
-‚
-„
-…
-†
-‡
-‰
-‹
-
-
-
-‘
-’
-“
-”
-•
-–
-—
-™
-›
-
-ÿ
-drop table t1;
-End of 5.1 tests
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set names latin2;
-select @@collation_connection;
-@@collation_connection
-latin2_general_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET latin2 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-41
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET latin2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-4141414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-4141414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41414141412020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41414141412020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-41
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-414445
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-4144
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-414445
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-4144452020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-41
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-4144
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-414420
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-41442020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-4144202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-41442020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-41
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-4144
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-414445
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-41444520
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-4144452020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-41444520202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-41
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-4144
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-414445
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-41444520
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-4144452020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-41444520202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-latin2_general_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-41
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-414445
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-4144
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-414445
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-4144452020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020454441
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-BEBBBADFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDFBABBBE
-#
-# Bug#32390 Character sets: casting utf32 to/from date doesn't work
-#
-CREATE TABLE t1 AS SELECT repeat('a',20) AS s1 LIMIT 0;
-SET time_zone=_latin1'+03:00';
-SET timestamp=1216359724;
-INSERT INTO t1 VALUES (current_date);
-INSERT INTO t1 VALUES (current_time);
-INSERT INTO t1 VALUES (current_timestamp);
-SELECT s1, hex(s1) FROM t1;
-s1 hex(s1)
-2008-07-18 323030382D30372D3138
-08:42:04 30383A34323A3034
-2008-07-18 08:42:04 323030382D30372D31382030383A34323A3034
-DROP TABLE t1;
-SET timestamp=0;
-SET time_zone=default;
-#
-# MDEV-5298 Illegal mix of collations on timestamp
-#
-SELECT CHARSET('2013-11-15 00:41:28' - INTERVAL 7 DAY);
-CHARSET('2013-11-15 00:41:28' - INTERVAL 7 DAY)
-latin2
-SELECT COERCIBILITY('2013-11-15 00:41:28' - INTERVAL 7 DAY);
-COERCIBILITY('2013-11-15 00:41:28' - INTERVAL 7 DAY)
-4
-SELECT CHARSET(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY);
-CHARSET(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY)
-binary
-SELECT COERCIBILITY(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY);
-COERCIBILITY(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY)
-5
-SELECT CHARSET(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY));
-CHARSET(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY))
-latin2
-SELECT COERCIBILITY(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY))
-4
-SELECT CHARSET(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY));
-CHARSET(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY))
-latin2
-SELECT COERCIBILITY(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY))
-4
-SELECT CHARSET(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-CHARSET(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-latin2
-SELECT COERCIBILITY(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-4
-SELECT HEX(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-HEX(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-323030312D30312D30312030303A30303A3030
-SELECT CHARSET(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-CHARSET(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-latin2
-SELECT COERCIBILITY(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-4
-SELECT HEX(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-HEX(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-323030312D30312D30312030303A30303A3030
-CREATE TABLE t1 AS SELECT REPEAT('a', 64) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(64) CHARACTER SET latin2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('');
-SELECT CHARSET(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-CHARSET(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-latin2
-SELECT COERCIBILITY(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-COERCIBILITY(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-2
-SELECT HEX(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-HEX(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-323030312D30312D30312030303A30303A3030
-SELECT CHARSET(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-CHARSET(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-latin2
-SELECT COERCIBILITY(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-COERCIBILITY(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-2
-SELECT HEX(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-HEX(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-323030312D30312D30312030303A30303A3030
-DROP TABLE t1;
-CREATE TABLE t1 (t TIMESTAMP NOT NULL);
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00');
-SELECT * FROM t1 WHERE t < '2013-11-15 00:41:28' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = '2001-01-08 00:00:00' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t < CONCAT('2013-11-15 00:41:28',LEFT(RAND(),0)) - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = CONCAT('2001-01-08 00:00:00',LEFT(RAND(),0)) - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t < TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-DROP TABLE t1;
-set collation_connection=latin2_bin;
-select @@collation_connection;
-@@collation_connection
-latin2_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET latin2 COLLATE latin2_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-61
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET latin2 COLLATE latin2_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-6161616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-6161616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61616161612020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61616161612020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-61
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-616263
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-6162
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-616263
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-6162632020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-61
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-6162
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-616220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-61622020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-6162202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-61622020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-61
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-6162
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-616263
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-61626320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-61
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-6162
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-616263
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-61626320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-latin2_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-61
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-616263
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-6162
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-616263
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-6162632020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020636261
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-9E9D9CDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDF9C9D9E
-#
-# End of 5.6 tests
-#
diff --git a/mysql-test/r/ctype_latin2_ch.result b/mysql-test/r/ctype_latin2_ch.result
deleted file mode 100644
index a396bc77fb6..00000000000
--- a/mysql-test/r/ctype_latin2_ch.result
+++ /dev/null
@@ -1,1006 +0,0 @@
-drop table if exists t1;
-set names latin2;
-select 'A' = 'a' collate latin2_czech_cs;
-'A' = 'a' collate latin2_czech_cs
-0
-create table t1 (
-id int(5) not null,
-tt char(255) not null
-) character set latin2 collate latin2_czech_cs;
-insert into t1 values (1,'Aa');
-insert into t1 values (2,'Aas');
-alter table t1 add primary key aaa(tt);
-select * from t1 where tt like 'Aa%';
-id tt
-1 Aa
-2 Aas
-select * from t1 ignore index (primary) where tt like 'Aa%';
-id tt
-1 Aa
-2 Aas
-select * from t1 where tt like '%Aa%';
-id tt
-1 Aa
-2 Aas
-select * from t1 where tt like 'AA%';
-id tt
-select * from t1 ignore index (primary) where tt like 'AA%';
-id tt
-select * from t1 where tt like '%AA%';
-id tt
-drop table t1;
-set names latin2 collate latin2_czech_cs;
-SELECT strcmp('a','a '), strcmp('a ','a');
-strcmp('a','a ') strcmp('a ','a')
-0 0
-SELECT strcmp('a\0','a' ), strcmp('a','a\0');
-strcmp('a\0','a' ) strcmp('a','a\0')
-1 -1
-SELECT strcmp('a\0','a '), strcmp('a ','a\0');
-strcmp('a\0','a ') strcmp('a ','a\0')
-1 -1
-SELECT strcmp('a\t','a' ), strcmp('a', 'a\t');
-strcmp('a\t','a' ) strcmp('a', 'a\t')
-0 0
-SELECT strcmp('a\t','a '), strcmp('a ', 'a\t');
-strcmp('a\t','a ') strcmp('a ', 'a\t')
-0 0
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET latin2 COLLATE latin2_czech_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE CONCAT(c1)='a';
-c1
-a
-a
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'a ';
-c1
-a
-SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'a' and concat(`test`.`t1`.`c1`) like 'a '
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET latin2 COLLATE latin2_czech_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1);
-c1
-a
-a
-SELECT * FROM t1 WHERE 'a ' LIKE CONCAT(c1);
-c1
-a
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 'a' = concat(`test`.`t1`.`c1`) and 'a ' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET latin2 COLLATE latin2_czech_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '% '=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '% ' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET latin2 COLLATE latin2_czech_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '%'=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-#
-# MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a'
-#
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET latin2 COLLATE latin2_czech_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ';
-a LENGTH(a)
-a 1
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-a LENGTH(a)
-a 1
-EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a' and `test`.`t1`.`a` not like 'a '
-DROP TABLE t1;
-#
-# End of MDEV-8694
-#
-create table t1 (
-a varchar(2) character set latin2 collate latin2_czech_cs,
-primary key(a)
-);
-insert into t1 set a=0x5ff;
-insert into t1 set a=0xff;
-select hex(a) from t1;
-hex(a)
-05FF
-FF
-drop table t1;
-create table t1 (
-ch varchar(1),
-name varchar(64)
-) character set latin2 collate latin2_czech_cs;
-insert into t1 values (0x6F,'LATIN SMALL LETTER O');
-insert into t1 values (0xF3,'LATIN SMALL LETTER O WITH ACUTE');
-insert into t1 values (0xF4,'LATIN SMALL LETTER O WITH CIRCUMFLEX');
-insert into t1 values (0xF6,'LATIN SMALL LETTER O WITH DIAERESIS');
-insert into t1 values (0xF5,'LATIN SMALL LETTER O WITH DOUBLE ACUTE');
-insert into t1 values (0x4F,'LATIN CAPITAL LETTER O');
-insert into t1 values (0xD3,'LATIN CAPITAL LETTER O WITH ACUTE');
-insert into t1 values (0xD4,'LATIN CAPITAL LETTER O WITH CURCUMFLEX');
-insert into t1 values (0xD6,'LATIN CAPITAL LETTER O WITH DIAERESIS');
-insert into t1 values (0xD5,'LATIN CAPITAL LETTER O WITH DOUBLE ACUTE');
-insert into t1 values (0x75,'LATIN SMALL LETTER U');
-insert into t1 values (0xFA,'LATIN SMALL LETTER U WITH ACUTE');
-insert into t1 values (0xF9,'LATIN SMALL LETTER U WITH RING ABOVE');
-insert into t1 values (0xFC,'LATIN SMALL LETTER U WITH DIAERESIS');
-insert into t1 values (0xFB,'LATIN SMALL LETTER U WITH DOUBLE ACUTE');
-insert into t1 values (0x55,'LATIN CAPITAL LETTER U');
-insert into t1 values (0xDA,'LATIN CAPITAL LETTER U WITH ACUTE');
-insert into t1 values (0xD9,'LATIN CAPITAL LETTER U WITH RING ABOVE');
-insert into t1 values (0xDC,'LATIN CAPITAL LETTER U WITH DIAERESIS');
-insert into t1 values (0xDB,'LATIN CAPITAL LETTER U WITH DOUBLE ACUTE');
-select
-hex(weight_string(ch level 1)) l1,
-hex(weight_string(ch level 2)) l2,
-hex(weight_string(ch level 3)) l3,
-hex(weight_string(ch level 4)) l4,
-name from t1 order by binary l1, binary l2, binary l3, binary l4;
-l1 l2 l3 l4 name
-1401 2701 4C01 4C00 LATIN SMALL LETTER O
-1401 2701 4D01 4D00 LATIN CAPITAL LETTER O
-1401 2801 4E01 4E00 LATIN SMALL LETTER O WITH ACUTE
-1401 2801 4F01 4F00 LATIN CAPITAL LETTER O WITH ACUTE
-1401 2901 5001 5000 LATIN SMALL LETTER O WITH CIRCUMFLEX
-1401 2901 5101 5100 LATIN CAPITAL LETTER O WITH CURCUMFLEX
-1401 2A01 5201 5200 LATIN SMALL LETTER O WITH DIAERESIS
-1401 2A01 5301 5300 LATIN CAPITAL LETTER O WITH DIAERESIS
-1401 2B01 5401 5400 LATIN SMALL LETTER O WITH DOUBLE ACUTE
-1401 2B01 5501 5500 LATIN CAPITAL LETTER O WITH DOUBLE ACUTE
-1C01 3801 6E01 6E00 LATIN SMALL LETTER U
-1C01 3801 6F01 6F00 LATIN CAPITAL LETTER U
-1C01 3901 7001 7000 LATIN SMALL LETTER U WITH ACUTE
-1C01 3901 7101 7100 LATIN CAPITAL LETTER U WITH ACUTE
-1C01 3A01 7201 7200 LATIN SMALL LETTER U WITH RING ABOVE
-1C01 3A01 7301 7300 LATIN CAPITAL LETTER U WITH RING ABOVE
-1C01 3B01 7401 7400 LATIN SMALL LETTER U WITH DIAERESIS
-1C01 3B01 7501 7500 LATIN CAPITAL LETTER U WITH DIAERESIS
-1C01 3C01 7601 7600 LATIN SMALL LETTER U WITH DOUBLE ACUTE
-1C01 3C01 7701 7700 LATIN CAPITAL LETTER U WITH DOUBLE ACUTE
-drop table t1;
-set names utf8;
-create table t1 (
-ch varchar(1),
-name varchar(64)
-) character set latin2 collate latin2_czech_cs;
-insert into t1 values (0x4F,'LATIN CAPITAL LETTER O');
-insert into t1 values (0xD3,'LATIN CAPITAL LETTER O WITH ACUTE');
-insert into t1 values (0xD4,'LATIN CAPITAL LETTER O WITH CURCUMFLEX');
-insert into t1 values (0xD6,'LATIN CAPITAL LETTER O WITH DIAERESIS');
-insert into t1 values (0xD5,'LATIN CAPITAL LETTER O WITH DOUBLE ACUTE');
-insert into t1 values (0x75,'LATIN _SMALL_ LETTER U');
-insert into t1 values (0xFA,'LATIN _SMALL_ LETTER U WITH ACUTE');
-insert into t1 values (0xF9,'LATIN _SMALL_ LETTER U WITH RING ABOVE');
-insert into t1 values (0xFC,'LATIN _SMALL_ LETTER U WITH DIAERESIS');
-insert into t1 values (0xFB,'LATIN _SMALL_ LETTER U WITH DOUBLE ACUTE');
-select ch,
-hex(weight_string(ch level 1)) l1,
-hex(weight_string(ch level 2)) l2,
-hex(weight_string(ch level 3)) l3,
-hex(weight_string(ch level 4)) l4,
-name from t1 order by ch;
-ch l1 l2 l3 l4 name
-O 1401 2701 4D01 4D00 LATIN CAPITAL LETTER O
-Ó 1401 2801 4F01 4F00 LATIN CAPITAL LETTER O WITH ACUTE
-Ô 1401 2901 5101 5100 LATIN CAPITAL LETTER O WITH CURCUMFLEX
-Ö 1401 2A01 5301 5300 LATIN CAPITAL LETTER O WITH DIAERESIS
-Å 1401 2B01 5501 5500 LATIN CAPITAL LETTER O WITH DOUBLE ACUTE
-u 1C01 3801 6E01 6E00 LATIN _SMALL_ LETTER U
-ú 1C01 3901 7001 7000 LATIN _SMALL_ LETTER U WITH ACUTE
-ů 1C01 3A01 7201 7200 LATIN _SMALL_ LETTER U WITH RING ABOVE
-ü 1C01 3B01 7401 7400 LATIN _SMALL_ LETTER U WITH DIAERESIS
-ű 1C01 3C01 7601 7600 LATIN _SMALL_ LETTER U WITH DOUBLE ACUTE
-alter table t1 modify ch char(1), modify name char(64);
-select ch,
-hex(weight_string(ch level 1)) l1,
-hex(weight_string(ch level 2)) l2,
-hex(weight_string(ch level 3)) l3,
-hex(weight_string(ch level 4)) l4,
-name from t1 order by ch;
-ch l1 l2 l3 l4 name
-O 1401 2701 4D01 4D00 LATIN CAPITAL LETTER O
-Ó 1401 2801 4F01 4F00 LATIN CAPITAL LETTER O WITH ACUTE
-Ô 1401 2901 5101 5100 LATIN CAPITAL LETTER O WITH CURCUMFLEX
-Ö 1401 2A01 5301 5300 LATIN CAPITAL LETTER O WITH DIAERESIS
-Å 1401 2B01 5501 5500 LATIN CAPITAL LETTER O WITH DOUBLE ACUTE
-u 1C01 3801 6E01 6E00 LATIN _SMALL_ LETTER U
-ú 1C01 3901 7001 7000 LATIN _SMALL_ LETTER U WITH ACUTE
-ů 1C01 3A01 7201 7200 LATIN _SMALL_ LETTER U WITH RING ABOVE
-ü 1C01 3B01 7401 7400 LATIN _SMALL_ LETTER U WITH DIAERESIS
-ű 1C01 3C01 7601 7600 LATIN _SMALL_ LETTER U WITH DOUBLE ACUTE
-select ch,
-hex(weight_string(ch level 1)) l1,
-hex(weight_string(ch level 2)) l2,
-hex(weight_string(ch level 3)) l3,
-hex(weight_string(ch level 4)) l4,
-name from t1 order by concat(ch);
-ch l1 l2 l3 l4 name
-O 1401 2701 4D01 4D00 LATIN CAPITAL LETTER O
-Ó 1401 2801 4F01 4F00 LATIN CAPITAL LETTER O WITH ACUTE
-Ô 1401 2901 5101 5100 LATIN CAPITAL LETTER O WITH CURCUMFLEX
-Ö 1401 2A01 5301 5300 LATIN CAPITAL LETTER O WITH DIAERESIS
-Å 1401 2B01 5501 5500 LATIN CAPITAL LETTER O WITH DOUBLE ACUTE
-u 1C01 3801 6E01 6E00 LATIN _SMALL_ LETTER U
-ú 1C01 3901 7001 7000 LATIN _SMALL_ LETTER U WITH ACUTE
-ů 1C01 3A01 7201 7200 LATIN _SMALL_ LETTER U WITH RING ABOVE
-ü 1C01 3B01 7401 7400 LATIN _SMALL_ LETTER U WITH DIAERESIS
-ű 1C01 3C01 7601 7600 LATIN _SMALL_ LETTER U WITH DOUBLE ACUTE
-drop table t1;
-SET collation_connection=latin2_czech_cs;
-CREATE TABLE t1 ENGINE=MYISAM AS SELECT repeat('a', 5) AS s1 LIMIT 0;
-INSERT INTO t1 VALUES ('x'),('y'),('z'),('X'),('Y'),('Z');
-SELECT * FROM t1 GROUP BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-SELECT * FROM t1 ORDER BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-CREATE INDEX i1 ON t1 (s1);
-SELECT * FROM t1 GROUP BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-SELECT * FROM t1 ORDER BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-DROP TABLE t1;
-set sql_mode="";
-CREATE TABLE t1 ENGINE=INNODB AS SELECT repeat('a', 5) AS s1 LIMIT 0;
-INSERT INTO t1 VALUES ('x'),('y'),('z'),('X'),('Y'),('Z');
-SELECT * FROM t1 GROUP BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-SELECT * FROM t1 ORDER BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-CREATE INDEX i1 ON t1 (s1);
-SELECT * FROM t1 GROUP BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-SELECT * FROM t1 ORDER BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-DROP TABLE t1;
-SET sql_mode='';
-CREATE TABLE t1 ENGINE=FALCON AS SELECT repeat('a', 5) AS s1 LIMIT 0;
-SET sql_mode=DEFAULT;
-INSERT INTO t1 VALUES ('x'),('y'),('z'),('X'),('Y'),('Z');
-SELECT * FROM t1 GROUP BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-SELECT * FROM t1 ORDER BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-CREATE INDEX i1 ON t1 (s1);
-SELECT * FROM t1 GROUP BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-SELECT * FROM t1 ORDER BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-DROP TABLE t1;
-SET sql_mode='';
-CREATE TABLE t1 ENGINE=MARIA AS SELECT repeat('a', 5) AS s1 LIMIT 0;
-SET sql_mode=DEFAULT;
-INSERT INTO t1 VALUES ('x'),('y'),('z'),('X'),('Y'),('Z');
-SELECT * FROM t1 GROUP BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-SELECT * FROM t1 ORDER BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-CREATE INDEX i1 ON t1 (s1);
-SELECT * FROM t1 GROUP BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-SELECT * FROM t1 ORDER BY s1;
-s1
-x
-X
-y
-Y
-z
-Z
-DROP TABLE t1;
-SET NAMES latin2;
-CREATE TABLE t2(colours SET('red','blue','yellow'))CHARACTER SET latin2 COLLATE
-latin2_czech_cs;
-CREATE TABLE t1(continent ENUM('Asia', 'Europe','Africa','Antartica'))CHARACTER SET latin2
-COLLATE latin2_czech_cs;
-INSERT INTO t1 VALUES('Asia');
-INSERT INTO t2 VALUES('blue');
-SELECT * FROM t1;
-continent
-Asia
-SELECT * FROM t2;
-colours
-blue
-DROP TABLE t1, t2;
-CREATE TABLE `t1` (
-`ID` smallint(5) unsigned zerofill NOT NULL AUTO_INCREMENT,
-`Post` enum('','B','O','Z','U') COLLATE latin2_czech_cs DEFAULT NULL,
-PRIMARY KEY (`ID`)
-) ENGINE=MyISAM AUTO_INCREMENT=135 DEFAULT CHARSET=latin2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `ID` smallint(5) unsigned zerofill NOT NULL AUTO_INCREMENT,
- `Post` enum('','B','O','Z','U') CHARACTER SET latin2 COLLATE latin2_czech_cs DEFAULT NULL,
- PRIMARY KEY (`ID`)
-) ENGINE=MyISAM AUTO_INCREMENT=135 DEFAULT CHARSET=latin2
-INSERT INTO t1 (ID,Post) VALUES (00041,'');
-SELECT ID, Post, HEX(WEIGHT_STRING(Post)) FROM t1;
-ID Post HEX(WEIGHT_STRING(Post))
-00041 01010100
-DROP TABLE t1;
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set names latin2 collate latin2_czech_cs;
-SELECT strcmp('a','a '), strcmp('a ','a');
-strcmp('a','a ') strcmp('a ','a')
-0 0
-SELECT strcmp('a\0','a' ), strcmp('a','a\0');
-strcmp('a\0','a' ) strcmp('a','a\0')
-1 -1
-SELECT strcmp('a\0','a '), strcmp('a ','a\0');
-strcmp('a\0','a ') strcmp('a ','a\0')
-1 -1
-SELECT strcmp('a\t','a' ), strcmp('a', 'a\t');
-strcmp('a\t','a' ) strcmp('a', 'a\t')
-0 0
-SELECT strcmp('a\t','a '), strcmp('a ', 'a\t');
-strcmp('a\t','a ') strcmp('a ', 'a\t')
-0 0
-#
-# Note:
-# latin2_czech_cs does not support WEIGHT_STRING in full extent
-#
-select @@collation_connection;
-@@collation_connection
-latin2_czech_cs
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0301030103010300
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0301030103010300
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET latin2 COLLATE latin2_czech_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(24) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-030303030301030303030301030303030301030303030300
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-030303030301030303030301030303030301030303030300
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(24) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-030303030301030303030301030303030301030303030300
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-030303030301030303030301030303030301030303030300
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(24) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-030303030301030303030301030303030301030303030300
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-030303030301030303030301030303030301030303030300
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-0301030103010300
-select hex(weight_string('A'));
-hex(weight_string('A'))
-0301030104010400
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-0304050103090A01030F1101030F1100
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-0304050103090A01030F1101030F1100
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-0304050103090A01030F1101030F1100
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-0304050103090A01030F1101030F1100
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-03
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0304
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-030405
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-03040501
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0304050103
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-0304050103090A01030F1101030F1100202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-03
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0304
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-030405
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-03040501
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0304050103
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-0304050103090A01030F1101030F1100202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-03
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0304
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-030405
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-03040501
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0304050103
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-0304050103090A01030F1101030F1100202020202020202020
-select @@collation_connection;
-@@collation_connection
-latin2_czech_cs
-select collation(cast(_latin1 0xDF as char));
-collation(cast(_latin1 0xDF as char))
-latin2_czech_cs
-select hex(weight_string('s'));
-hex(weight_string('s'))
-1901310160016000
-select hex(weight_string(cast(_latin1 0xDF as char)));
-hex(weight_string(cast(_latin1 0xDF as char)))
-010101E200
-select hex(weight_string(cast(_latin1 0xDF as char) as char(1)));
-hex(weight_string(cast(_latin1 0xDF as char) as char(1)))
-010101E200
-select hex(weight_string('c'));
-hex(weight_string('c'))
-05010A0111011100
-select hex(weight_string('h'));
-hex(weight_string('h'))
-0B0118012D012D00
-select hex(weight_string('ch'));
-hex(weight_string('ch'))
-0C0119012F012F00
-select hex(weight_string('i'));
-hex(weight_string('i'))
-0D011A0132013200
-select hex(weight_string(cast(_latin1 0x6368DF as char)));
-hex(weight_string(cast(_latin1 0x6368DF as char)))
-0C0119012F012FE200
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(1)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(1)))
-0C0119012F012FE200
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(2)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(2)))
-0C0119012F012FE200
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(3)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(3)))
-0C0119012F012FE200
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(4)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(4)))
-0C0119012F012FE200
-select hex(weight_string(cast(_latin1 0xDF6368 as char)));
-hex(weight_string(cast(_latin1 0xDF6368 as char)))
-0C0119012F01E22F00
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(1)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(1)))
-0C0119012F01E22F00
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(2)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(2)))
-0C0119012F01E22F00
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(3)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(3)))
-0C0119012F01E22F00
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(4)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(4)))
-0C0119012F01E22F00
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 2, 0xC0))
-0C
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 2, 0xC0))
-0C01
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 2, 0xC0))
-0C0119
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 2, 0xC0))
-0C011901
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 2, 0xC0))
-0C0119012F012FE20020202020202020202020202020202020
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 3, 0xC0))
-0C
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 3, 0xC0))
-0C01
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 3, 0xC0))
-0C0119
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 3, 0xC0))
-0C011901
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 3, 0xC0))
-0C0119012F012FE20020202020202020202020202020202020
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 4, 0xC0))
-0C
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 4, 0xC0))
-0C01
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 4, 0xC0))
-0C0119
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 4, 0xC0))
-0C011901
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 4, 0xC0))
-0C0119012F012FE20020202020202020202020202020202020
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 2,0xC0))
-0C
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 2,0xC0))
-0C01
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 2,0xC0))
-0C0119
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 2,0xC0))
-0C011901
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 2,0xC0))
-0C0119012F01E22F0020202020202020202020202020202020
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 3,0xC0))
-0C
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 3,0xC0))
-0C01
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 3,0xC0))
-0C0119
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 3,0xC0))
-0C011901
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 3,0xC0))
-0C0119012F01E22F0020202020202020202020202020202020
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 4,0xC0))
-0C
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 4,0xC0))
-0C01
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 4,0xC0))
-0C0119
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 4,0xC0))
-0C011901
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 4,0xC0))
-0C0119012F01E22F0020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-latin2_czech_cs
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-0301
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-0301
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-03040501
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-03040501
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-03040501
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-03040501
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-03040501
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-03040501
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-03040501
-select @@collation_connection;
-@@collation_connection
-latin2_czech_cs
-select hex(weight_string('a' LEVEL 2));
-hex(weight_string('a' LEVEL 2))
-0301
-select hex(weight_string('A' LEVEL 2));
-hex(weight_string('A' LEVEL 2))
-0301
-select hex(weight_string('abc' LEVEL 2));
-hex(weight_string('abc' LEVEL 2))
-03090A01
-select hex(weight_string('abc' as char(2) LEVEL 2));
-hex(weight_string('abc' as char(2) LEVEL 2))
-03090A01
-select hex(weight_string('abc' as char(3) LEVEL 2));
-hex(weight_string('abc' as char(3) LEVEL 2))
-03090A01
-select hex(weight_string('abc' as char(5) LEVEL 2));
-hex(weight_string('abc' as char(5) LEVEL 2))
-03090A01
-select @@collation_connection;
-@@collation_connection
-latin2_czech_cs
-select hex(weight_string('a' LEVEL 3));
-hex(weight_string('a' LEVEL 3))
-0301
-select hex(weight_string('A' LEVEL 3));
-hex(weight_string('A' LEVEL 3))
-0401
-select hex(weight_string('abc' LEVEL 3));
-hex(weight_string('abc' LEVEL 3))
-030F1101
-select hex(weight_string('abc' as char(2) LEVEL 3));
-hex(weight_string('abc' as char(2) LEVEL 3))
-030F1101
-select hex(weight_string('abc' as char(3) LEVEL 3));
-hex(weight_string('abc' as char(3) LEVEL 3))
-030F1101
-select hex(weight_string('Abc' as char(5) LEVEL 3));
-hex(weight_string('Abc' as char(5) LEVEL 3))
-040F1101
-select hex(weight_string('Abc' as char(5) LEVEL 3 REVERSE));
-hex(weight_string('Abc' as char(5) LEVEL 3 REVERSE))
-040F1101
-select hex(weight_string('Abc' as char(5) LEVEL 3 DESC));
-hex(weight_string('Abc' as char(5) LEVEL 3 DESC))
-040F1101
-select hex(weight_string('Abc' as char(5) LEVEL 3 DESC REVERSE));
-hex(weight_string('Abc' as char(5) LEVEL 3 DESC REVERSE))
-040F1101
-select @@collation_connection;
-@@collation_connection
-latin2_czech_cs
-select hex(weight_string('a' LEVEL 4));
-hex(weight_string('a' LEVEL 4))
-0300
-select hex(weight_string('A' LEVEL 4));
-hex(weight_string('A' LEVEL 4))
-0400
-select hex(weight_string('abc' LEVEL 4));
-hex(weight_string('abc' LEVEL 4))
-030F1100
-select hex(weight_string('abc' as char(2) LEVEL 4));
-hex(weight_string('abc' as char(2) LEVEL 4))
-030F1100
-select hex(weight_string('abc' as char(3) LEVEL 4));
-hex(weight_string('abc' as char(3) LEVEL 4))
-030F1100
-select hex(weight_string('abc' as char(5) LEVEL 4));
-hex(weight_string('abc' as char(5) LEVEL 4))
-030F1100
-select hex(weight_string('abc' as char(5) LEVEL 4 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 4 REVERSE))
-030F1100
-select hex(weight_string('abc' as char(5) LEVEL 4 DESC));
-hex(weight_string('abc' as char(5) LEVEL 4 DESC))
-030F1100
-select hex(weight_string('abc' as char(5) LEVEL 4 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 4 DESC REVERSE))
-030F1100
-select @@collation_connection;
-@@collation_connection
-latin2_czech_cs
-select hex(weight_string('a' LEVEL 1,2));
-hex(weight_string('a' LEVEL 1,2))
-03010301
-select hex(weight_string('a' LEVEL 1-2));
-hex(weight_string('a' LEVEL 1-2))
-03010301
-select hex(weight_string('A' LEVEL 1,2));
-hex(weight_string('A' LEVEL 1,2))
-03010301
-select hex(weight_string('A' LEVEL 1-2));
-hex(weight_string('A' LEVEL 1-2))
-03010301
-select @@collation_connection;
-@@collation_connection
-latin2_czech_cs
-select hex(weight_string('a' LEVEL 1,3));
-hex(weight_string('a' LEVEL 1,3))
-03010301
-select hex(weight_string('a' LEVEL 1-3));
-hex(weight_string('a' LEVEL 1-3))
-030103010301
-select hex(weight_string('A' LEVEL 1,3));
-hex(weight_string('A' LEVEL 1,3))
-03010401
-select hex(weight_string('A' LEVEL 1-3));
-hex(weight_string('A' LEVEL 1-3))
-030103010401
-select hex(weight_string('a' LEVEL 1,4));
-hex(weight_string('a' LEVEL 1,4))
-03010300
-select hex(weight_string('a' LEVEL 1-4));
-hex(weight_string('a' LEVEL 1-4))
-0301030103010300
-select hex(weight_string('A' LEVEL 1,4));
-hex(weight_string('A' LEVEL 1,4))
-03010400
-select hex(weight_string('A' LEVEL 1-4));
-hex(weight_string('A' LEVEL 1-4))
-0301030104010400
-select hex(weight_string('a' LEVEL 2,3));
-hex(weight_string('a' LEVEL 2,3))
-03010301
-select hex(weight_string('a' LEVEL 2-3));
-hex(weight_string('a' LEVEL 2-3))
-03010301
-select hex(weight_string('A' LEVEL 2,3));
-hex(weight_string('A' LEVEL 2,3))
-03010401
-select hex(weight_string('A' LEVEL 2-3));
-hex(weight_string('A' LEVEL 2-3))
-03010401
-select hex(weight_string('a' LEVEL 2,4));
-hex(weight_string('a' LEVEL 2,4))
-03010300
-select hex(weight_string('a' LEVEL 2-4));
-hex(weight_string('a' LEVEL 2-4))
-030103010300
-select hex(weight_string('A' LEVEL 2,4));
-hex(weight_string('A' LEVEL 2,4))
-03010400
-select hex(weight_string('A' LEVEL 2-4));
-hex(weight_string('A' LEVEL 2-4))
-030104010400
-select hex(weight_string('a' LEVEL 3,4));
-hex(weight_string('a' LEVEL 3,4))
-03010300
-select hex(weight_string('a' LEVEL 3-4));
-hex(weight_string('a' LEVEL 3-4))
-03010300
-select hex(weight_string('A' LEVEL 3,4));
-hex(weight_string('A' LEVEL 3,4))
-04010400
-select hex(weight_string('A' LEVEL 3-4));
-hex(weight_string('A' LEVEL 3-4))
-04010400
-select hex(weight_string('a' LEVEL 1,2,3,4));
-hex(weight_string('a' LEVEL 1,2,3,4))
-0301030103010300
-select hex(weight_string('a' LEVEL 2,3,4));
-hex(weight_string('a' LEVEL 2,3,4))
-030103010300
-select hex(weight_string('a' LEVEL 1,3,4));
-hex(weight_string('a' LEVEL 1,3,4))
-030103010300
-select hex(weight_string('a' LEVEL 1,2,3));
-hex(weight_string('a' LEVEL 1,2,3))
-030103010301
-select hex(weight_string('a' LEVEL 0));
-hex(weight_string('a' LEVEL 0))
-0301
-select hex(weight_string('a' LEVEL 8));
-hex(weight_string('a' LEVEL 8))
-0300
-select hex(weight_string('a' LEVEL 1,8));
-hex(weight_string('a' LEVEL 1,8))
-03010300
-#
-# End of 5.6 tests
-#
diff --git a/mysql-test/r/ctype_ldml.result b/mysql-test/r/ctype_ldml.result
deleted file mode 100644
index 3ce50331ed0..00000000000
--- a/mysql-test/r/ctype_ldml.result
+++ /dev/null
@@ -1,3036 +0,0 @@
-drop table if exists t1;
-In the following tests we change the order of letter "b"
-making it equal to letter "a", and check that it works
-with all Unicode character sets
-set names utf8;
-show variables like 'character_sets_dir%';
-Variable_name Value
-character_sets_dir MYSQL_TEST_DIR/std_data/ldml/
-show collation like 'utf8_phone_ci';
-Collation Charset Id Default Compiled Sortlen
-utf8_phone_ci utf8 352 8
-CREATE TABLE t1 (
-name VARCHAR(64),
-phone VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_phone_ci
-);
-INSERT INTO t1 VALUES ('Svoj','+7 912 800 80 02');
-INSERT INTO t1 VALUES ('Hf','+7 (912) 800 80 04');
-INSERT INTO t1 VALUES ('Bar','+7-912-800-80-01');
-INSERT INTO t1 VALUES ('Ramil','(7912) 800 80 03');
-INSERT INTO t1 VALUES ('Sanja','+380 (912) 8008005');
-SELECT * FROM t1 ORDER BY phone;
-name phone
-Sanja +380 (912) 8008005
-Bar +7-912-800-80-01
-Svoj +7 912 800 80 02
-Ramil (7912) 800 80 03
-Hf +7 (912) 800 80 04
-SELECT * FROM t1 WHERE phone='+7(912)800-80-01';
-name phone
-Bar +7-912-800-80-01
-SELECT * FROM t1 WHERE phone='79128008001';
-name phone
-Bar +7-912-800-80-01
-SELECT * FROM t1 WHERE phone='7 9 1 2 8 0 0 8 0 0 1';
-name phone
-Bar +7-912-800-80-01
-DROP TABLE t1;
-show collation like 'utf8_test_ci';
-Collation Charset Id Default Compiled Sortlen
-utf8_test_ci utf8 353 8
-create table t1 (c1 char(1) character set utf8 collate utf8_test_ci);
-insert into t1 values ('a');
-select * from t1 where c1='b';
-c1
-a
-drop table t1;
-show collation like 'ucs2_test_ci';
-Collation Charset Id Default Compiled Sortlen
-ucs2_test_ci ucs2 358 8
-create table t1 (c1 char(1) character set ucs2 collate ucs2_test_ci);
-insert into t1 values ('a');
-select * from t1 where c1='b';
-c1
-a
-drop table t1;
-show collation like 'utf8mb4_test_ci';
-Collation Charset Id Default Compiled Sortlen
-utf8mb4_test_ci utf8mb4 326 8
-create table t1 (c1 char(1) character set utf8mb4 collate utf8mb4_test_ci);
-insert into t1 values ('a');
-select * from t1 where c1='b';
-c1
-a
-drop table t1;
-show collation like 'utf16_test_ci';
-Collation Charset Id Default Compiled Sortlen
-utf16_test_ci utf16 327 8
-create table t1 (c1 char(1) character set utf16 collate utf16_test_ci);
-insert into t1 values ('a');
-select * from t1 where c1='b';
-c1
-a
-drop table t1;
-show collation like 'utf32_test_ci';
-Collation Charset Id Default Compiled Sortlen
-utf32_test_ci utf32 391 8
-create table t1 (c1 char(1) character set utf32 collate utf32_test_ci);
-insert into t1 values ('a');
-select * from t1 where c1='b';
-c1
-a
-drop table t1;
-SELECT hex(weight_string(_utf8mb4'a' collate utf8mb4_test_ci));
-hex(weight_string(_utf8mb4'a' collate utf8mb4_test_ci))
-120F
-SELECT hex(weight_string(convert(_utf32 0x10002 using utf8mb4) collate utf8mb4_test_ci));
-hex(weight_string(convert(_utf32 0x10002 using utf8mb4) collate utf8mb4_test_ci))
-314A
-SELECT hex(@a:=convert(_utf32 0x10400 using utf8mb4) collate utf8mb4_test_ci), hex(lower(@a));
-hex(@a:=convert(_utf32 0x10400 using utf8mb4) collate utf8mb4_test_ci) hex(lower(@a))
-F0909080 F09090A8
-SELECT hex(@a:=convert(_utf32 0x10428 using utf8mb4) collate utf8mb4_test_ci), hex(upper(@a));
-hex(@a:=convert(_utf32 0x10428 using utf8mb4) collate utf8mb4_test_ci) hex(upper(@a))
-F09090A8 F0909080
-SELECT hex(@a:=convert(_utf32 0x2C00 using utf8mb4) collate utf8mb4_test_ci), hex(lower(@a));
-hex(@a:=convert(_utf32 0x2C00 using utf8mb4) collate utf8mb4_test_ci) hex(lower(@a))
-E2B080 E2B0B0
-SELECT hex(@a:=convert(_utf32 0x2C30 using utf8mb4) collate utf8mb4_test_ci), hex(upper(@a));
-hex(@a:=convert(_utf32 0x2C30 using utf8mb4) collate utf8mb4_test_ci) hex(upper(@a))
-E2B0B0 E2B080
-SELECT hex(weight_string(convert(_utf32 0x61 using utf8mb4) collate utf8mb4_test_ci));
-hex(weight_string(convert(_utf32 0x61 using utf8mb4) collate utf8mb4_test_ci))
-120F
-SELECT hex(weight_string(convert(_utf32 0x62 using utf8mb4) collate utf8mb4_test_ci));
-hex(weight_string(convert(_utf32 0x62 using utf8mb4) collate utf8mb4_test_ci))
-120F
-SELECT hex(weight_string(convert(_utf32 0x10062 using utf8mb4) collate utf8mb4_test_ci));
-hex(weight_string(convert(_utf32 0x10062 using utf8mb4) collate utf8mb4_test_ci))
-120F
-SELECT hex(weight_string(convert(_utf32 0x10400 using utf8mb4) collate utf8mb4_test_ci));
-hex(weight_string(convert(_utf32 0x10400 using utf8mb4) collate utf8mb4_test_ci))
-30D2
-SELECT hex(weight_string(convert(_utf32 0x100400 using utf8mb4) collate utf8mb4_test_ci));
-hex(weight_string(convert(_utf32 0x100400 using utf8mb4) collate utf8mb4_test_ci))
-30D2
-SELECT hex(weight_string(_utf8mb4 0x64 collate utf8mb4_test_ci));
-hex(weight_string(_utf8mb4 0x64 collate utf8mb4_test_ci))
-1250
-SELECT hex(weight_string(convert(_ucs2 0x0064017e using utf8mb4) collate utf8mb4_test_ci));
-hex(weight_string(convert(_ucs2 0x0064017e using utf8mb4) collate utf8mb4_test_ci))
-1251
-SELECT hex(weight_string(convert(_ucs2 0x0044017e using utf8mb4) collate utf8mb4_test_ci));
-hex(weight_string(convert(_ucs2 0x0044017e using utf8mb4) collate utf8mb4_test_ci))
-1251
-SELECT hex(weight_string(convert(_ucs2 0x0044017d using utf8mb4) collate utf8mb4_test_ci));
-hex(weight_string(convert(_ucs2 0x0044017d using utf8mb4) collate utf8mb4_test_ci))
-1251
-CREATE TABLE t1 (
-col1 varchar(100) character set utf8 collate utf8_test_ci
-);
-INSERT INTO t1 (col1) VALUES ('abcd'),('efgh'),('ijkl');
-ALTER TABLE t1 ADD FULLTEXT INDEX (col1);
-SELECT * FROM t1 where match (col1) against ('abcd');
-col1
-abcd
-SELECT * FROM t1 where match (col1) against ('abcd' IN BOOLEAN MODE);
-col1
-abcd
-ALTER TABLE t1 ADD (col2 varchar(100) character set latin1);
-UPDATE t1 SET col2=col1;
-SELECT * FROM t1 WHERE col1=col2 ORDER BY col1;
-col1 col2
-abcd abcd
-efgh efgh
-ijkl ijkl
-DROP TABLE t1;
-#
-# Bug#45645 Mysql server close all connection and restart using lower function
-#
-CREATE TABLE t1 (a VARCHAR(10)) CHARACTER SET utf8 COLLATE utf8_test_ci;
-INSERT INTO t1 (a) VALUES ('hello!');
-SELECT * FROM t1 WHERE LOWER(a)=LOWER('N');
-a
-DROP TABLE t1;
-#
-# Bug#51976 LDML collations issue (cyrillic example)
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8 COLLATE utf8_test_ci);
-INSERT INTO t1 (a) VALUES ('Hello');
-SELECT a, UPPER(a), LOWER(a) FROM t1;
-a UPPER(a) LOWER(a)
-Hello HELLO hello
-DROP TABLE t1;
-#
-# Bug#43827 Server closes connections and restarts
-#
-CREATE TABLE t1 (c1 VARCHAR(10) CHARACTER SET utf8 COLLATE utf8_test_ci);
-INSERT IGNORE INTO t1 SELECT REPEAT('a',11);
-Warnings:
-Warning 1265 Data truncated for column 'c1' at row 1
-DROP TABLE t1;
-Vietnamese experimental collation
-show collation like 'ucs2_vn_ci';
-Collation Charset Id Default Compiled Sortlen
-ucs2_vn_ci ucs2 359 8
-create table t1 (c1 char(1) character set ucs2 collate ucs2_vn_ci);
-insert into t1 values (0x0061),(0x0041),(0x00E0),(0x00C0),(0x1EA3),(0x1EA2),
-(0x00E3),(0x00C3),(0x00E1),(0x00C1),(0x1EA1),(0x1EA0);
-insert into t1 values (0x0103),(0x0102),(0x1EB1),(0x1EB0),(0x1EB3),(0x1EB2),
-(0x1EB5),(0x1EB4),(0x1EAF),(0x1EAE),(0x1EB7),(0x1EB6);
-insert into t1 values (0x00E2),(0x00C2),(0x1EA7),(0x1EA6),(0x1EA9),(0x1EA8),
-(0x1EAB),(0x1EAA),(0x1EA5),(0x1EA4),(0x1EAD),(0x1EAC);
-insert into t1 values ('b'),('B'),('c'),('C');
-insert into t1 values ('d'),('D'),(0x0111),(0x0110);
-insert into t1 values (0x0065),(0x0045),(0x00E8),(0x00C8),(0x1EBB),(0x1EBA),
-(0x1EBD),(0x1EBC),(0x00E9),(0x00C9),(0x1EB9),(0x1EB8);
-insert into t1 values (0x00EA),(0x00CA),(0x1EC1),(0x1EC0),(0x1EC3),(0x1EC2),
-(0x1EC5),(0x1EC4),(0x1EBF),(0x1EBE),(0x1EC7),(0x1EC6);
-insert into t1 values ('g'),('G'),('h'),('H');
-insert into t1 values (0x0069),(0x0049),(0x00EC),(0x00CC),(0x1EC9),(0x1EC8),
-(0x0129),(0x0128),(0x00ED),(0x00CD),(0x1ECB),(0x1ECA);
-insert into t1 values ('k'),('K'),('l'),('L'),('m'),('M');
-insert into t1 values (0x006F),(0x004F),(0x00F2),(0x00D2),(0x1ECF),(0x1ECE),
-(0x00F5),(0x00D5),(0x00F3),(0x00D3),(0x1ECD),(0x1ECC);
-insert into t1 values (0x00F4),(0x00D4),(0x1ED3),(0x1ED2),(0x1ED5),(0x1ED4),
-(0x1ED7),(0x1ED6),(0x1ED1),(0x1ED0),(0x1ED9),(0x1ED8);
-insert into t1 values (0x01A1),(0x01A0),(0x1EDD),(0x1EDC),(0x1EDF),(0x1EDE),
-(0x1EE1),(0x1EE0),(0x1EDB),(0x1EDA),(0x1EE3),(0x1EE2);
-insert into t1 values ('p'),('P'),('q'),('Q'),('r'),('R'),('s'),('S'),('t'),('T');
-insert into t1 values (0x0075),(0x0055),(0x00F9),(0x00D9),(0x1EE7),(0x1EE6),
-(0x0169),(0x0168),(0x00FA),(0x00DA),(0x1EE5),(0x1EE4);
-insert into t1 values (0x01B0),(0x01AF),(0x1EEB),(0x1EEA),(0x1EED),(0x1EEC),
-(0x1EEF),(0x1EEE),(0x1EE9),(0x1EE8),(0x1EF1),(0x1EF0);
-insert into t1 values ('v'),('V'),('x'),('X');
-insert into t1 values (0x0079),(0x0059),(0x1EF3),(0x1EF2),(0x1EF7),(0x1EF6),
-(0x1EF9),(0x1EF8),(0x00FD),(0x00DD),(0x1EF5),(0x1EF4);
-select hex(c1) as h, c1 from t1 order by c1, h;
-h c1
-0041 A
-0061 a
-00C0 À
-00C1 Ã
-00C3 Ã
-00E0 à
-00E1 á
-00E3 ã
-1EA0 Ạ
-1EA1 ạ
-1EA2 Ả
-1EA3 ả
-0102 Ä‚
-0103 ă
-1EAE Ắ
-1EAF ắ
-1EB0 Ằ
-1EB1 ằ
-1EB2 Ẳ
-1EB3 ẳ
-1EB4 Ẵ
-1EB5 ẵ
-1EB6 Ặ
-1EB7 ặ
-00C2 Â
-00E2 â
-1EA4 Ấ
-1EA5 ấ
-1EA6 Ầ
-1EA7 ầ
-1EA8 Ẩ
-1EA9 ẩ
-1EAA Ẫ
-1EAB ẫ
-1EAC Ậ
-1EAD ậ
-0042 B
-0062 b
-0043 C
-0063 c
-0044 D
-0064 d
-0110 Ä
-0111 Ä‘
-0045 E
-0065 e
-00C8 È
-00C9 É
-00E8 è
-00E9 é
-1EB8 Ẹ
-1EB9 ẹ
-1EBA Ẻ
-1EBB ẻ
-1EBC Ẽ
-1EBD ẽ
-00CA Ê
-00EA ê
-1EBE Ế
-1EBF ế
-1EC0 Ề
-1EC1 á»
-1EC2 Ể
-1EC3 ể
-1EC4 Ễ
-1EC5 á»…
-1EC6 Ệ
-1EC7 ệ
-0047 G
-0067 g
-0048 H
-0068 h
-0049 I
-0069 i
-00CC Ì
-00CD Ã
-00EC ì
-00ED í
-0128 Ĩ
-0129 Ä©
-1EC8 Ỉ
-1EC9 ỉ
-1ECA Ị
-1ECB ị
-004B K
-006B k
-004C L
-006C l
-004D M
-006D m
-004F O
-006F o
-00D2 Ã’
-00D3 Ó
-00D5 Õ
-00F2 ò
-00F3 ó
-00F5 õ
-1ECC Ọ
-1ECD á»
-1ECE Ỏ
-1ECF á»
-00D4 Ô
-00F4 ô
-1ED0 á»
-1ED1 ố
-1ED2 á»’
-1ED3 ồ
-1ED4 á»”
-1ED5 ổ
-1ED6 á»–
-1ED7 á»—
-1ED8 Ộ
-1ED9 á»™
-01A0 Æ 
-01A1 Æ¡
-1EDA Ớ
-1EDB á»›
-1EDC Ờ
-1EDD á»
-1EDE Ở
-1EDF ở
-1EE0 á» 
-1EE1 ỡ
-1EE2 Ợ
-1EE3 ợ
-0050 P
-0070 p
-0051 Q
-0071 q
-0052 R
-0072 r
-0053 S
-0073 s
-0054 T
-0074 t
-0055 U
-0075 u
-00D9 Ù
-00DA Ú
-00F9 ù
-00FA ú
-0168 Ũ
-0169 Å©
-1EE4 Ụ
-1EE5 ụ
-1EE6 Ủ
-1EE7 ủ
-01AF Ư
-01B0 Æ°
-1EE8 Ứ
-1EE9 ứ
-1EEA Ừ
-1EEB ừ
-1EEC Ử
-1EED á»­
-1EEE á»®
-1EEF ữ
-1EF0 á»°
-1EF1 á»±
-0056 V
-0076 v
-0058 X
-0078 x
-0059 Y
-0079 y
-00DD Ã
-00FD ý
-1EF2 Ỳ
-1EF3 ỳ
-1EF4 á»´
-1EF5 ỵ
-1EF6 Ỷ
-1EF7 á»·
-1EF8 Ỹ
-1EF9 ỹ
-select group_concat(hex(c1) order by hex(c1)) from t1 group by c1;
-group_concat(hex(c1) order by hex(c1))
-0041,0061,00C0,00C1,00C3,00E0,00E1,00E3,1EA0,1EA1,1EA2,1EA3
-0102,0103,1EAE,1EAF,1EB0,1EB1,1EB2,1EB3,1EB4,1EB5,1EB6,1EB7
-00C2,00E2,1EA4,1EA5,1EA6,1EA7,1EA8,1EA9,1EAA,1EAB,1EAC,1EAD
-0042,0062
-0043,0063
-0044,0064
-0110,0111
-0045,0065,00C8,00C9,00E8,00E9,1EB8,1EB9,1EBA,1EBB,1EBC,1EBD
-00CA,00EA,1EBE,1EBF,1EC0,1EC1,1EC2,1EC3,1EC4,1EC5,1EC6,1EC7
-0047,0067
-0048,0068
-0049,0069,00CC,00CD,00EC,00ED,0128,0129,1EC8,1EC9,1ECA,1ECB
-004B,006B
-004C,006C
-004D,006D
-004F,006F,00D2,00D3,00D5,00F2,00F3,00F5,1ECC,1ECD,1ECE,1ECF
-00D4,00F4,1ED0,1ED1,1ED2,1ED3,1ED4,1ED5,1ED6,1ED7,1ED8,1ED9
-01A0,01A1,1EDA,1EDB,1EDC,1EDD,1EDE,1EDF,1EE0,1EE1,1EE2,1EE3
-0050,0070
-0051,0071
-0052,0072
-0053,0073
-0054,0074
-0055,0075,00D9,00DA,00F9,00FA,0168,0169,1EE4,1EE5,1EE6,1EE7
-01AF,01B0,1EE8,1EE9,1EEA,1EEB,1EEC,1EED,1EEE,1EEF,1EF0,1EF1
-0056,0076
-0058,0078
-0059,0079,00DD,00FD,1EF2,1EF3,1EF4,1EF5,1EF6,1EF7,1EF8,1EF9
-select group_concat(c1 order by hex(c1) SEPARATOR '') from t1 group by c1;
-group_concat(c1 order by hex(c1) SEPARATOR '')
-AaÀÃÃàáãẠạẢả
-ĂăẮắẰằẲẳẴẵẶặ
-ÂâẤấẦầẨẩẪẫẬậ
-Bb
-Cc
-Dd
-ÄÄ‘
-EeÈÉèéẸẹẺẻẼẽ
-ÊêẾếỀá»á»‚ểỄễỆệ
-Gg
-Hh
-IiÃŒÃìíĨĩỈỉỊị
-Kk
-Ll
-Mm
-OoÒÓÕòóõỌá»á»Žá»
-Ôôá»á»‘ỒồỔổỖỗỘộ
-ƠơỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-Pp
-Qq
-Rr
-Ss
-Tt
-UuÙÚùúŨũỤụỦủ
-ƯưỨứỪừỬửỮữỰự
-Vv
-Xx
-YyÃýỲỳỴỵỶỷỸỹ
-drop table t1;
-Bug#46448 trailing spaces are not ignored when user collation maps space != 0x20
-set names latin1;
-show collation like 'latin1_test';
-Collation Charset Id Default Compiled Sortlen
-latin1_test latin1 99 Yes 1
-select "foo" = "foo " collate latin1_test;
-"foo" = "foo " collate latin1_test
-1
-The following tests check that two-byte collation IDs work
-select * from information_schema.collations where id>256 and is_compiled<>'Yes' order by id;
-COLLATION_NAME CHARACTER_SET_NAME ID IS_DEFAULT IS_COMPILED SORTLEN
-ascii2_general_nopad_ci ascii2 318 1
-ascii2_bin2 ascii2 319 1
-ascii2_general_ci ascii2 320 Yes 1
-ascii2_bin ascii2 321 1
-ascii2_general_inherited_ci ascii2 322 1
-ascii2_general_inherited2_ci ascii2 323 1
-ascii2_badly_inherited_ci ascii2 324 1
-ascii2_nopad_bin ascii2 325 1
-utf8mb4_test_ci utf8mb4 326 8
-utf16_test_ci utf16 327 8
-utf8mb4_test_400_ci utf8mb4 328 8
-utf8mb4_test_520_nopad_ci utf8mb4 329 8
-latin1_test2 latin1 332 1
-latin1_test2_cs latin1 333 1
-latin1_swedish_nopad2_ci latin1 334 1
-utf8_bengali_standard_ci utf8 336 8
-utf8_bengali_traditional_ci utf8 337 8
-utf8_implicit_weights_ci utf8 338 8
-utf8_phone_ci utf8 352 8
-utf8_test_ci utf8 353 8
-utf8_5624_1 utf8 354 8
-utf8_5624_2 utf8 355 8
-utf8_5624_3 utf8 356 8
-utf8_5624_4 utf8 357 8
-ucs2_test_ci ucs2 358 8
-ucs2_vn_ci ucs2 359 8
-ucs2_5624_1 ucs2 360 8
-utf8_5624_5 utf8 368 8
-utf8_5624_5_bad utf8 369 8
-utf8_czech_test_w2 utf8 370 4
-utf8_czech_test_nopad_w2 utf8 371 4
-utf8_czech_test_bad_w2 utf8 372 4
-utf32_test_ci utf32 391 8
-utf8_maxuserid_ci utf8 2047 8
-show collation like '%test%';
-Collation Charset Id Default Compiled Sortlen
-latin1_test latin1 99 Yes 1
-latin1_test2 latin1 332 1
-latin1_test2_cs latin1 333 1
-utf8_test_ci utf8 353 8
-utf8_czech_test_w2 utf8 370 4
-utf8_czech_test_nopad_w2 utf8 371 4
-utf8_czech_test_bad_w2 utf8 372 4
-ucs2_test_ci ucs2 358 8
-utf8mb4_test_ci utf8mb4 326 8
-utf8mb4_test_400_ci utf8mb4 328 8
-utf8mb4_test_520_nopad_ci utf8mb4 329 8
-utf16_test_ci utf16 327 8
-utf32_test_ci utf32 391 8
-show collation like 'ucs2_vn_ci';
-Collation Charset Id Default Compiled Sortlen
-ucs2_vn_ci ucs2 359 8
-create table t1 (c1 char(1) character set ucs2 collate ucs2_vn_ci);
-insert into t1 values (0x0061);
-set @@character_set_results=NULL;
-select * from t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 c1 c1 254 2 2 Y 0 0 359
-c1
-
-drop table t1;
-CREATE TABLE t1 (s1 char(10) character set utf8 collate utf8_maxuserid_ci);
-INSERT INTO t1 VALUES ('a'),('b');
-SELECT * FROM t1 WHERE s1='a' ORDER BY BINARY s1;
-s1
-a
-b
-DROP TABLE t1;
-SET NAMES utf8 COLLATE utf8_phone_ci;
-SHOW COLLATION LIKE 'utf8_phone_ci';
-Collation Charset Id Default Compiled Sortlen
-utf8_phone_ci utf8 352 8
-SET NAMES utf8;
-SELECT hex(weight_string(_utf8mb4'a' collate utf8mb4_test_400_ci));
-hex(weight_string(_utf8mb4'a' collate utf8mb4_test_400_ci))
-0E33
-SELECT hex(weight_string(convert(_utf32 0x10002 using utf8mb4) collate utf8mb4_test_400_ci));
-hex(weight_string(convert(_utf32 0x10002 using utf8mb4) collate utf8mb4_test_400_ci))
-FFFD
-SELECT hex(@a:=convert(_utf32 0x10400 using utf8mb4) collate utf8mb4_test_400_ci), hex(lower(@a));
-hex(@a:=convert(_utf32 0x10400 using utf8mb4) collate utf8mb4_test_400_ci) hex(lower(@a))
-F0909080 F0909080
-SELECT hex(@a:=convert(_utf32 0x10428 using utf8mb4) collate utf8mb4_test_400_ci), hex(upper(@a));
-hex(@a:=convert(_utf32 0x10428 using utf8mb4) collate utf8mb4_test_400_ci) hex(upper(@a))
-F09090A8 F09090A8
-SELECT hex(@a:=convert(_utf32 0x2C00 using utf8mb4) collate utf8mb4_test_400_ci), hex(lower(@a));
-hex(@a:=convert(_utf32 0x2C00 using utf8mb4) collate utf8mb4_test_400_ci) hex(lower(@a))
-E2B080 E2B080
-SELECT hex(@a:=convert(_utf32 0x2C30 using utf8mb4) collate utf8mb4_test_400_ci), hex(upper(@a));
-hex(@a:=convert(_utf32 0x2C30 using utf8mb4) collate utf8mb4_test_400_ci) hex(upper(@a))
-E2B0B0 E2B0B0
-#
-# WL#5624 Collation customization improvements
-#
-SET NAMES utf8 COLLATE utf8_5624_1;
-CREATE TABLE t1 AS SELECT REPEAT(' ', 16) AS a LIMIT 0;
-INSERT INTO t1 VALUES ('012345'),('001234'),('000123'),('000012'),('000001');
-INSERT INTO t1 VALUES ('12345'),('01234'),('00123'),('00012'),('00001');
-INSERT INTO t1 VALUES ('1234'),('0123'),('0012'),('0001');
-INSERT INTO t1 VALUES ('123'),('012'),('001');
-INSERT INTO t1 VALUES ('12'),('01');
-INSERT INTO t1 VALUES ('1'),('9');
-INSERT INTO t1 VALUES ('ГÐИ'),('ГИБДД');
-INSERT INTO t1 VALUES ('a'),('b'),('c'),('d'),('e');
-INSERT INTO t1 VALUES ('cz'),('ÄŠ'),('Ä‹');
-INSERT INTO t1 VALUES ('f'),('fz'),('g'),('Ä '),('Ä¡');
-INSERT INTO t1 VALUES ('h'),('hz'),('GĦ'),('Għ'),('gĦ'),('għ');
-INSERT INTO t1 VALUES ('i'),('iz'),('Ħ'),('ħ');
-INSERT INTO t1 VALUES ('y'),('yz'),('z'),('Ż'),('ż');
-INSERT INTO t1 VALUES ('Ä'),('Ä€'),('á'),('Ã'),('à'),('À');
-INSERT INTO t1 VALUES ('ē'),('é'),('ě'),('ê'),('Ē'),('É'),('Ě'),('Ê');
-INSERT INTO t1 VALUES ('a'),('~'),('!'),('@'),('#'),('$'),('%'),('^');
-INSERT INTO t1 VALUES ('('),(')'),('-'),('+'),('|'),('='),(':'),(';');
-INSERT INTO t1 VALUES ('"'),('\''),('?');
-INSERT INTO t1 VALUES ('ch'),('k'),('cs'),('ccs'),('cscs');
-INSERT INTO t1 VALUES ('aa-'),('ab-'),('ac-'),('ad-'),('ae-'),('af-'),('az-');
-INSERT INTO t1 VALUES ('lp-fni'),('lp-lni');
-INSERT INTO t1 VALUES ('lp-fpi'),('lp-lpi');
-INSERT INTO t1 VALUES ('lp-fsi'),('lp-lsi');
-INSERT INTO t1 VALUES ('lp-fti'),('lp-lti');
-INSERT INTO t1 VALUES ('lp-ft'),('lp-lt');
-INSERT INTO t1 VALUES ('lp-fv'),('lp-lv');
-INSERT INTO t1 VALUES ('lb-fni'),('lb-lni');
-INSERT INTO t1 VALUES ('lb-fv'),('lb-lv');
-INSERT INTO t1 VALUES (_ucs2 0x3106),(_ucs2 0x3110), (_ucs2 0x3111), (_ucs2 0x3112);
-INSERT INTO t1 VALUES (_ucs2 0x32A3), (_ucs2 0x3231);
-INSERT INTO t1 VALUES (_ucs2 0x84D9), (_ucs2 0x98F5), (_ucs2 0x7CF3), (_ucs2 0x5497);
-SELECT a, HEX(WEIGHT_STRING(a)) FROM t1 ORDER BY a, LENGTH(a), BINARY a;
-a HEX(WEIGHT_STRING(a))
-lp-ft 0001
-lp-lt 0001
-lp-fpi 0001
-lp-fsi 0001
-lp-fti 0001
-lp-lpi 0001
-lp-lsi 0001
-lp-lti 0001
-lb-fv 0200233E
-lb-fni 0200233E
-lp-fv 0202
-lp-fni 0202
-- 0221
-= 042D
-| 0430
-lb-lv 0DD9233E
-lp-lv 0DDB
-1 0E2A
-01 0E2A
-001 0E2A
-0001 0E2A
-00001 0E2A
-000001 0E2A
-12 0E2A0E2B
-012 0E2A0E2B
-0012 0E2A0E2B
-00012 0E2A0E2B
-000012 0E2A0E2B
-123 0E2A0E2B0E2C
-0123 0E2A0E2B0E2C
-00123 0E2A0E2B0E2C
-000123 0E2A0E2B0E2C
-1234 0E2A0E2B0E2C0E2D
-01234 0E2A0E2B0E2C0E2D
-001234 0E2A0E2B0E2C0E2D
-12345 0E2A0E2B0E2C0E2D0E2E
-012345 0E2A0E2B0E2C0E2D0E2E
-9 0E32
-~ 0E32233E
-! 0E32233F
-@ 0E322340
-# 0E322341
-$ 0E322342
-% 0E322343
-^ 0E322344
-( 0E322346
-) 0E322347
-+ 0E322348
-: 0E322349
-; 0E32234A
-" 0E32234B
-' 0E32234C
-? 0E32234D
-a 0E33
-a 0E33
-aa- 0E330E330221
-ab- 0E330E4A0E34
-ac- 0E330E600E60
-ad- 0E330E6D0E6D
-ae- 0E330E8B0E8B
-af- 0E330EB90EB9
-az- 0E33106A0221
-b 0E4A
-À 0E4A
-Ã 0E4A
-à 0E4A
-á 0E4A
-Ä€ 0E4A
-Ä 0E4A
-c 0E60
-k 0E600EE1
-ch 0E600EE1
-cs 0E600FEA
-ccs 0E600FEA0E600FEA
-cscs 0E600FEA0E600FEA
-cz 0E60106A
-ÄŠ 0E6C233E
-Ä‹ 0E6C233E
-d 0E6D
-É 0E6D
-Ê 0E6D
-é 0E6D
-ê 0E6D
-Ä’ 0E6D
-Ä“ 0E6D
-Äš 0E6D
-Ä› 0E6D
-e 0E8B
-f 0EB9
-fz 0EB9106A
-Ä  0EC0233E
-Ä¡ 0EC0233E
-g 0EC1
-GĦ 0EE0233E
-Għ 0EE0233E
-gĦ 0EE0233E
-għ 0EE0233E
-h 0EE1
-hz 0EE1106A
-Ħ 0EFA233E
-ħ 0EFA233E
-i 0EFB
-iz 0EFB106A
-y 105E
-yz 105E106A
-Å» 1069233E
-ż 1069233E
-z 106A
-ГÐИ 11341114117C
-ГИБДД 11341114117C
-lb-lni 233C233E
-lp-lni 233E
-ㄆ 233F
-ã„ 2349
-ã„‘ 234A
-ã„’ 234B
-㊣ 7147
-㈱ 72D5
-è“™ 753C
-飵 753D
-ç³³ 753E
-å’— 753F
-#
-# WL#5624, the same test with UCS2
-#
-ALTER TABLE t1 CONVERT TO CHARACTER SET ucs2 COLLATE ucs2_5624_1;
-SELECT a, HEX(WEIGHT_STRING(a)) FROM t1 ORDER BY a, LENGTH(a), BINARY(a);
-a HEX(WEIGHT_STRING(a))
-lp-ft 0001
-lp-lt 0001
-lp-fpi 0001
-lp-fsi 0001
-lp-fti 0001
-lp-lpi 0001
-lp-lsi 0001
-lp-lti 0001
-lb-fv 0200233E
-lb-fni 0200233E
-lp-fv 0202
-lp-fni 0202
-- 0221
-= 042D
-| 0430
-lb-lv 0DD9233E
-lp-lv 0DDB
-1 0E2A
-01 0E2A
-001 0E2A
-0001 0E2A
-00001 0E2A
-000001 0E2A
-12 0E2A0E2B
-012 0E2A0E2B
-0012 0E2A0E2B
-00012 0E2A0E2B
-000012 0E2A0E2B
-123 0E2A0E2B0E2C
-0123 0E2A0E2B0E2C
-00123 0E2A0E2B0E2C
-000123 0E2A0E2B0E2C
-1234 0E2A0E2B0E2C0E2D
-01234 0E2A0E2B0E2C0E2D
-001234 0E2A0E2B0E2C0E2D
-12345 0E2A0E2B0E2C0E2D0E2E
-012345 0E2A0E2B0E2C0E2D0E2E
-9 0E32
-~ 0E32233E
-! 0E32233F
-@ 0E322340
-# 0E322341
-$ 0E322342
-% 0E322343
-^ 0E322344
-( 0E322346
-) 0E322347
-+ 0E322348
-: 0E322349
-; 0E32234A
-" 0E32234B
-' 0E32234C
-? 0E32234D
-a 0E33
-a 0E33
-aa- 0E330E330221
-ab- 0E330E4A0E34
-ac- 0E330E600E60
-ad- 0E330E6D0E6D
-ae- 0E330E8B0E8B
-af- 0E330EB90EB9
-az- 0E33106A0221
-b 0E4A
-À 0E4A
-Ã 0E4A
-à 0E4A
-á 0E4A
-Ä€ 0E4A
-Ä 0E4A
-c 0E60
-k 0E600EE1
-ch 0E600EE1
-cs 0E600FEA
-ccs 0E600FEA0E600FEA
-cscs 0E600FEA0E600FEA
-cz 0E60106A
-ÄŠ 0E6C233E
-Ä‹ 0E6C233E
-d 0E6D
-É 0E6D
-Ê 0E6D
-é 0E6D
-ê 0E6D
-Ä’ 0E6D
-Ä“ 0E6D
-Äš 0E6D
-Ä› 0E6D
-e 0E8B
-f 0EB9
-fz 0EB9106A
-Ä  0EC0233E
-Ä¡ 0EC0233E
-g 0EC1
-GĦ 0EE0233E
-Għ 0EE0233E
-gĦ 0EE0233E
-għ 0EE0233E
-h 0EE1
-hz 0EE1106A
-Ħ 0EFA233E
-ħ 0EFA233E
-i 0EFB
-iz 0EFB106A
-y 105E
-yz 105E106A
-Å» 1069233E
-ż 1069233E
-z 106A
-ГÐИ 11341114117C
-ГИБДД 11341114117C
-lb-lni 233C233E
-lp-lni 233E
-ㄆ 233F
-ã„ 2349
-ã„‘ 234A
-ã„’ 234B
-㊣ 7147
-㈱ 72D5
-è“™ 753C
-飵 753D
-ç³³ 753E
-å’— 753F
-DROP TABLE t1;
-#
-# WL#5624, unsupported features
-#
-SET NAMES utf8 COLLATE utf8_5624_2;
-ERROR HY000: Unknown collation: 'utf8_5624_2'
-SHOW WARNINGS;
-Level Code Message
-Error 1273 Unknown collation: 'utf8_5624_2'
-Warning 1273 Syntax error at '[strength tertiary]'
-SELECT _utf8'test' COLLATE utf8_5624_2;
-ERROR HY000: Unknown collation: 'utf8_5624_2'
-SHOW WARNINGS;
-Level Code Message
-Error 1273 Unknown collation: 'utf8_5624_2'
-Warning 1273 Syntax error at '[strength tertiary]'
-#
-# WL#5624, reset before primary ignorable
-#
-SET NAMES utf8 COLLATE utf8_5624_3;
-ERROR HY000: Unknown collation: 'utf8_5624_3'
-SHOW WARNINGS;
-Level Code Message
-Error 1273 Unknown collation: 'utf8_5624_3'
-Warning 1273 Can't reset before a primary ignorable character U+A48C
-#
-# WL#5624, \u without hex digits is equal to {'\', 'u'}
-#
-SET NAMES utf8 COLLATE utf8_5624_4;
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-INSERT INTO t1 VALUES ('\\'),('u'),('x'),('X');
-SELECT a, HEX(WEIGHT_STRING(a)) FROM t1 ORDER BY a, LENGTH(a), BINARY(a);
-a HEX(WEIGHT_STRING(a))
-\ 02CE
-x 02CE101F
-u 101F
-X 105A
-DROP TABLE t1;
-#
-# WL#5624, testing Bengali collations
-#
-SET NAMES utf8, collation_connection=utf8_bengali_standard_ci;
-CREATE TABLE t1 AS SELECT REPEAT (' ', 10) AS a LIMIT 0;
-INSERT INTO t1 VALUES (_ucs2 0x09FA), (_ucs2 0x09F8), (_ucs2 0x09F9), (_ucs2 0x09F2);
-INSERT INTO t1 VALUES (_ucs2 0x09DC), (_ucs2 0x09A109BC);
-INSERT INTO t1 VALUES (_ucs2 0x09A2), (_ucs2 0x09DD), (_ucs2 0x09A209BC);
-INSERT INTO t1 VALUES (_ucs2 0x09A3);
-SELECT HEX(WEIGHT_STRING(a)), HEX(CONVERT(a USING ucs2)), HEX(a)
-FROM t1 ORDER BY a, BINARY a;
-HEX(WEIGHT_STRING(a)) HEX(CONVERT(a USING ucs2)) HEX(a)
-0350 09FA E0A7BA
-0351 09F8 E0A7B8
-0352 09F9 E0A7B9
-0353 09F2 E0A7B2
-0374 09A109BC E0A6A1E0A6BC
-0374 09DC E0A79C
-0375 09A2 E0A6A2
-0376 09A209BC E0A6A2E0A6BC
-0376 09DD E0A79D
-0377 09A3 E0A6A3
-DROP TABLE t1;
-SET NAMES utf8, collation_connection=utf8_bengali_traditional_ci;
-CREATE TABLE t1 AS SELECT REPEAT (' ', 10) AS a LIMIT 0;
-INSERT INTO t1 VALUES
-(_ucs2 0x0985),(_ucs2 0x0986),(_ucs2 0x0987),(_ucs2 0x0988),
-(_ucs2 0x0989),(_ucs2 0x098A),(_ucs2 0x098B),(_ucs2 0x09E0),
-(_ucs2 0x098C),(_ucs2 0x09E1),(_ucs2 0x098F),(_ucs2 0x0990),
-(_ucs2 0x0993);
-INSERT INTO t1 VALUES
-(_ucs2 0x0994),(_ucs2 0x0982),(_ucs2 0x0983),(_ucs2 0x0981),
-(_ucs2 0x099509CD), (_ucs2 0x099609CD), (_ucs2 0x099709CD), (_ucs2 0x099809CD),
-(_ucs2 0x099909CD), (_ucs2 0x099A09CD), (_ucs2 0x099B09CD), (_ucs2 0x099C09CD),
-(_ucs2 0x099D09CD), (_ucs2 0x099E09CD), (_ucs2 0x099F09CD), (_ucs2 0x09A009CD),
-(_ucs2 0x09A109CD), (_ucs2 0x09A209CD), (_ucs2 0x09A309CD),
-(_ucs2 0x09CE), (_ucs2 0x09A409CD200D), (_ucs2 0x09A409CD),
-(_ucs2 0x09A509CD),(_ucs2 0x09A609CD),
-(_ucs2 0x09A709CD), (_ucs2 0x09A809CD), (_ucs2 0x09AA09CD), (_ucs2 0x09AB09CD),
-(_ucs2 0x09AC09CD), (_ucs2 0x09AD09CD), (_ucs2 0x09AE09CD), (_ucs2 0x09AF09CD),
-(_ucs2 0x09B009CD), (_ucs2 0x09F009CD), (_ucs2 0x09B209CD), (_ucs2 0x09F109CD),
-(_ucs2 0x09B609CD), (_ucs2 0x09B709CD), (_ucs2 0x09B809CD), (_ucs2 0x09B909CD);
-INSERT INTO t1 VALUES
-(_ucs2 0x099509CD0985),(_ucs2 0x0995),
-(_ucs2 0x099509CD0986),(_ucs2 0x099509BE),
-(_ucs2 0x099509CD0987),(_ucs2 0x099509BF),
-(_ucs2 0x099509CD0988),(_ucs2 0x099509C0),
-(_ucs2 0x099509CD0989),(_ucs2 0x099509C1),
-(_ucs2 0x099509CD098A),(_ucs2 0x099509C2),
-(_ucs2 0x099509CD098B),(_ucs2 0x099509C3),
-(_ucs2 0x099509CD09E0),(_ucs2 0x099509C4),
-(_ucs2 0x099509CD098C),(_ucs2 0x099509E2),
-(_ucs2 0x099509CD09E1),(_ucs2 0x099509E3),
-(_ucs2 0x099509CD098F),(_ucs2 0x099509C7),
-(_ucs2 0x099509CD0990),(_ucs2 0x099509C8),
-(_ucs2 0x099509CD0993),(_ucs2 0x099509CB),
-(_ucs2 0x099509CD0994),(_ucs2 0x099509CC);
-SELECT HEX(WEIGHT_STRING(a)), HEX(CONVERT(a USING ucs2)), HEX(a)
-FROM t1 ORDER BY a, BINARY(a);
-HEX(WEIGHT_STRING(a)) HEX(CONVERT(a USING ucs2)) HEX(a)
-15A2 0985 E0A685
-15A3 0986 E0A686
-15A4 0987 E0A687
-15A5 0988 E0A688
-15A6 0989 E0A689
-15A7 098A E0A68A
-15A8 098B E0A68B
-15A9 09E0 E0A7A0
-15AA 098C E0A68C
-15AB 09E1 E0A7A1
-15AC 098F E0A68F
-15AD 0990 E0A690
-15AE 0993 E0A693
-15AF 0994 E0A694
-15B0 0982 E0A682
-15B1 0983 E0A683
-15B2 0981 E0A681
-15B3 099509CD E0A695E0A78D
-15B315A2 0995 E0A695
-15B315A2 099509CD0985 E0A695E0A78DE0A685
-15B315A3 099509BE E0A695E0A6BE
-15B315A3 099509CD0986 E0A695E0A78DE0A686
-15B315A4 099509BF E0A695E0A6BF
-15B315A4 099509CD0987 E0A695E0A78DE0A687
-15B315A5 099509C0 E0A695E0A780
-15B315A5 099509CD0988 E0A695E0A78DE0A688
-15B315A6 099509C1 E0A695E0A781
-15B315A6 099509CD0989 E0A695E0A78DE0A689
-15B315A7 099509C2 E0A695E0A782
-15B315A7 099509CD098A E0A695E0A78DE0A68A
-15B315A8 099509C3 E0A695E0A783
-15B315A8 099509CD098B E0A695E0A78DE0A68B
-15B315A9 099509C4 E0A695E0A784
-15B315A9 099509CD09E0 E0A695E0A78DE0A7A0
-15B315AA 099509CD098C E0A695E0A78DE0A68C
-15B315AA 099509E2 E0A695E0A7A2
-15B315AB 099509CD09E1 E0A695E0A78DE0A7A1
-15B315AB 099509E3 E0A695E0A7A3
-15B315AC 099509C7 E0A695E0A787
-15B315AC 099509CD098F E0A695E0A78DE0A68F
-15B315AD 099509C8 E0A695E0A788
-15B315AD 099509CD0990 E0A695E0A78DE0A690
-15B315AE 099509CB E0A695E0A78B
-15B315AE 099509CD0993 E0A695E0A78DE0A693
-15B315AF 099509CC E0A695E0A78C
-15B315AF 099509CD0994 E0A695E0A78DE0A694
-15B4 099609CD E0A696E0A78D
-15B5 099709CD E0A697E0A78D
-15B6 099809CD E0A698E0A78D
-15B7 099909CD E0A699E0A78D
-15B8 099A09CD E0A69AE0A78D
-15B9 099B09CD E0A69BE0A78D
-15BA 099C09CD E0A69CE0A78D
-15BB 099D09CD E0A69DE0A78D
-15BC 099E09CD E0A69EE0A78D
-15BD 099F09CD E0A69FE0A78D
-15BE 09A009CD E0A6A0E0A78D
-15BF 09A109CD E0A6A1E0A78D
-15C0 09A209CD E0A6A2E0A78D
-15C1 09A309CD E0A6A3E0A78D
-15C2 09A409CD E0A6A4E0A78D
-15C2 09A409CD200D E0A6A4E0A78DE2808D
-15C2 09CE E0A78E
-15C3 09A509CD E0A6A5E0A78D
-15C4 09A609CD E0A6A6E0A78D
-15C5 09A709CD E0A6A7E0A78D
-15C6 09A809CD E0A6A8E0A78D
-15C7 09AA09CD E0A6AAE0A78D
-15C8 09AB09CD E0A6ABE0A78D
-15C9 09AC09CD E0A6ACE0A78D
-15CA 09AD09CD E0A6ADE0A78D
-15CB 09AE09CD E0A6AEE0A78D
-15CC 09AF09CD E0A6AFE0A78D
-15CD 09B009CD E0A6B0E0A78D
-15CE 09F009CD E0A7B0E0A78D
-15CF 09B209CD E0A6B2E0A78D
-15D0 09F109CD E0A7B1E0A78D
-15D1 09B609CD E0A6B6E0A78D
-15D2 09B709CD E0A6B7E0A78D
-15D3 09B809CD E0A6B8E0A78D
-15D4 09B909CD E0A6B9E0A78D
-SELECT HEX(WEIGHT_STRING(a)) as wa,
-GROUP_CONCAT(HEX(CONVERT(a USING ucs2)) ORDER BY LENGTH(a), BINARY a)
-FROM t1 GROUP BY a ORDER BY a;
-wa GROUP_CONCAT(HEX(CONVERT(a USING ucs2)) ORDER BY LENGTH(a), BINARY a)
-15A2 0985
-15A3 0986
-15A4 0987
-15A5 0988
-15A6 0989
-15A7 098A
-15A8 098B
-15A9 09E0
-15AA 098C
-15AB 09E1
-15AC 098F
-15AD 0990
-15AE 0993
-15AF 0994
-15B0 0982
-15B1 0983
-15B2 0981
-15B3 099509CD
-15B315A2 0995,099509CD0985
-15B315A3 099509BE,099509CD0986
-15B315A4 099509BF,099509CD0987
-15B315A5 099509C0,099509CD0988
-15B315A6 099509C1,099509CD0989
-15B315A7 099509C2,099509CD098A
-15B315A8 099509C3,099509CD098B
-15B315A9 099509C4,099509CD09E0
-15B315AA 099509E2,099509CD098C
-15B315AB 099509E3,099509CD09E1
-15B315AC 099509C7,099509CD098F
-15B315AD 099509C8,099509CD0990
-15B315AE 099509CB,099509CD0993
-15B315AF 099509CC,099509CD0994
-15B4 099609CD
-15B5 099709CD
-15B6 099809CD
-15B7 099909CD
-15B8 099A09CD
-15B9 099B09CD
-15BA 099C09CD
-15BB 099D09CD
-15BC 099E09CD
-15BD 099F09CD
-15BE 09A009CD
-15BF 09A109CD
-15C0 09A209CD
-15C1 09A309CD
-15C2 09CE,09A409CD,09A409CD200D
-15C3 09A509CD
-15C4 09A609CD
-15C5 09A709CD
-15C6 09A809CD
-15C7 09AA09CD
-15C8 09AB09CD
-15C9 09AC09CD
-15CA 09AD09CD
-15CB 09AE09CD
-15CC 09AF09CD
-15CD 09B009CD
-15CE 09F009CD
-15CF 09B209CD
-15D0 09F109CD
-15D1 09B609CD
-15D2 09B709CD
-15D3 09B809CD
-15D4 09B909CD
-DROP TABLE t1;
-#
-# WL#5624, shift after, using expansion
-#
-SET NAMES utf8 COLLATE utf8_5624_5;
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-INSERT INTO t1 VALUES ('0'),('1'),('0z'),(_ucs2 0x0030FF9D);
-INSERT INTO t1 VALUES ('a'),('b'),('c'),('d'),('e'),('f'),('g'),('h'),('i');
-INSERT INTO t1 VALUES ('j'),('k'),('l'),('m'),('n'),('o'),('p'),('q'),('r');
-INSERT INTO t1 VALUES ('s'),('t'),('u'),('v'),('w'),('x'),('y'),('z');
-INSERT INTO t1 VALUES ('aa'),('aaa');
-INSERT INTO t1 VALUES ('A'),('B'),('C'),('D'),('E'),('F'),('G'),('H'),('I');
-INSERT INTO t1 VALUES ('J'),('K'),('L'),('M'),('N'),('O'),('P'),('Q'),('R');
-INSERT INTO t1 VALUES ('S'),('T'),('U'),('V'),('W'),('X'),('Y'),('Z');
-INSERT INTO t1 VALUES ('AA'),('AAA');
-INSERT INTO t1 VALUES ('001'),('002');
-SELECT a, HEX(WEIGHT_STRING(a)) FROM t1 ORDER BY a, LENGTH(a), BINARY(a);
-a HEX(WEIGHT_STRING(a))
-0 0E29
-001 0E29
-002 0E29
-0z 0E290E292357
-0ï¾ 0E291E81
-a 0E29233E
-b 0E29233F
-c 0E292340
-d 0E292341
-e 0E292342
-f 0E292343
-g 0E292344
-h 0E292345
-i 0E292346
-j 0E292347
-k 0E292348
-l 0E292349
-m 0E29234A
-n 0E29234B
-o 0E29234C
-p 0E29234D
-q 0E29234E
-r 0E29234F
-s 0E292350
-t 0E292351
-u 0E292352
-v 0E292353
-w 0E292354
-x 0E292355
-y 0E292356
-z 0E292357
-aa 0E292358
-aaa 0E292359
-A 0E29333E
-B 0E29333F
-C 0E293340
-D 0E293341
-E 0E293342
-F 0E293343
-G 0E293344
-H 0E293345
-I 0E293346
-J 0E293347
-K 0E293348
-L 0E293349
-M 0E29334A
-N 0E29334B
-O 0E29334C
-P 0E29334D
-Q 0E29334E
-R 0E29334F
-S 0E293350
-T 0E293351
-U 0E293352
-V 0E293353
-W 0E293354
-X 0E293355
-Y 0E293356
-Z 0E293357
-AA 0E293358
-AAA 0E293359
-1 0E2A
-DROP TABLE t1;
-SET NAMES utf8 COLLATE utf8_5624_5_bad;
-ERROR HY000: Unknown collation: 'utf8_5624_5_bad'
-SHOW WARNINGS;
-Level Code Message
-Error 1273 Unknown collation: 'utf8_5624_5_bad'
-Warning 1273 Expansion too long: 'a\u002Daaaaaa10'
-#
-# End of WL#5624
-#
-#
-# Bug#14197426 PARSE ERRORS IN LOADABLE UCA / LDML COLLATIONS ARE SILENTLY IGNORED
-#
-# Search for occurrences of [ERROR] Syntax error at '[strength tertiary]'
-Occurances : 2
-#
-# MDEV-8686 A user defined collation utf8_confusables doesn't work
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8 COLLATE utf8_implicit_weights_ci);
-INSERT INTO t1 VALUES ('a'),('b'),('c');
-INSERT INTO t1 VALUES (_ucs2 0x1500),(_ucs2 0x1501);
-INSERT INTO t1 VALUES (_ucs2 0x3400),(_ucs2 0x3560),(_ucs2 0x3561),(_ucs2 0x3600);
-INSERT INTO t1 VALUES (_ucs2 0x3700),(_ucs2 0x3701);
-SELECT HEX(CONVERT(a USING ucs2)) AS ch, HEX(WEIGHT_STRING(a)) AS w, HEX(WEIGHT_STRING(a COLLATE utf8_unicode_ci)) AS ducet FROM t1 ORDER BY a,ch;
-ch w ducet
-0061 0E33 0E33
-3561 0E33 FB80B561
-0063 0E60 0E60
-1500 0E60 1BAD
-0062 FB80B400 0E4A
-3400 FB80B400 FB80B400
-3560 FB80B560 FB80B560
-1501 FB80B600 1BAE
-3600 FB80B600 FB80B600
-3700 FB80B700 FB80B700
-3701 FB80B700 FB80B701
-DROP TABLE t1;
-#
-# Testing that the MY_CS_PUREASCII flag is set properly
-# Comparison between ascii2 and latin1 should not give "illegal collation error"
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET ascii2, b VARCHAR(10) CHARACTER SET latin1);
-INSERT INTO t1 VALUES ('a','a'),('b','b');
-SELECT * FROM t1 WHERE a=b;
-a b
-a a
-b b
-ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET ascii2 COLLATE ascii2_bin2;
-SELECT * FROM t1 WHERE a=b;
-a b
-a a
-b b
-ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET ascii2 COLLATE ascii2_bin;
-SELECT * FROM t1 WHERE a=b;
-a b
-a a
-b b
-ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET ascii2 COLLATE ascii2_general_inherited_ci;
-SELECT * FROM t1 WHERE a=b;
-a b
-a a
-b b
-ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET ascii2 COLLATE ascii2_general_inherited2_ci;
-SELECT * FROM t1 WHERE a=b;
-a b
-a a
-b b
-DROP TABLE t1;
-#
-# Testing that in case of two binary collations
-# "BINARY" in a column definition uses the collation with the least id
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET ascii2 BINARY);
-INSERT INTO t1 VALUES ('test');
-SELECT COLLATION(a) FROM t1;
-COLLATION(a)
-ascii2_bin2
-DROP TABLE t1;
-#
-# Testing mixing of two binary collations of the same character set
-#
-CREATE TABLE t1 (
-a VARCHAR(10) CHARACTER SET ascii2 COLLATE ascii2_bin,
-b VARCHAR(10) CHARACTER SET ascii2 COLLATE ascii2_bin2
-);
-INSERT INTO t1 VALUES ('a','a');
-SELECT * FROM t1 WHERE a=b;
-ERROR HY000: Illegal mix of collations (ascii2_bin,IMPLICIT) and (ascii2_bin2,IMPLICIT) for operation '='
-DROP TABLE t1;
-#
-# Testing bad collation inheritance
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET ascii2 COLLATE ascii2_badly_inherited_ci);
-ERROR HY000: Unknown collation: 'ascii2_badly_inherited_ci'
-#
-# Testing that the MY_CS_CSSORT flag is set properly
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_test);
-INSERT INTO t1 VALUES ('a'),('A');
-SELECT * FROM t1 WHERE a RLIKE 'a';
-a
-a
-A
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_test2_cs);
-INSERT INTO t1 VALUES ('a'),('A');
-SELECT * FROM t1 WHERE a RLIKE 'a';
-a
-a
-DROP TABLE t1;
-#
-# MDEV-9711 NO PAD collations
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET ascii2 COLLATE ascii2_general_nopad_ci);
-INSERT INTO t1 VALUES ('a'),('a '),('A'),('A ');
-SELECT a, a='a', a='a ', HEX(a), LOWER(a), UPPER(a), CONVERT(a USING utf8) FROM t1;
-a a='a' a='a ' HEX(a) LOWER(a) UPPER(a) CONVERT(a USING utf8)
-a 1 0 61 a A a
-a 0 1 6120 a A a
-A 1 0 41 a A A
-A 0 1 4120 a A A
-ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET ascii2 COLLATE ascii2_nopad_bin;
-SELECT a, a='a', a='a ', HEX(a), LOWER(a), UPPER(a), CONVERT(a USING utf8) FROM t1;
-a a='a' a='a ' HEX(a) LOWER(a) UPPER(a) CONVERT(a USING utf8)
-a 1 0 61 a A a
-a 0 1 6120 a A a
-A 0 0 41 a A A
-A 0 0 4120 a A A
-ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_swedish_nopad2_ci;
-SELECT a, a='a', a='a ', HEX(a), LOWER(a), UPPER(a), CONVERT(a USING utf8) FROM t1;
-a a='a' a='a ' HEX(a) LOWER(a) UPPER(a) CONVERT(a USING utf8)
-a 1 0 61 a A a
-a 0 1 6120 a A a
-A 1 0 41 a A A
-A 0 1 4120 a A A
-DROP TABLE t1;
-#
-# MDEV-10877 xxx_unicode_nopad_ci collations
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_test_520_nopad_ci);
-INSERT INTO t1 VALUES ('a'),('b'),('a '),('b ');
-SELECT
-HEX(a),
-WEIGHT_STRING(a)=WEIGHT_STRING(a COLLATE utf8mb4_unicode_ci) AS is_400,
-WEIGHT_STRING(a)=WEIGHT_STRING(a COLLATE utf8mb4_unicode_520_ci) AS is_520
-FROM t1
-ORDER BY a;
-HEX(a) is_400 is_520
-61 0 1
-6120 0 1
-62 0 1
-6220 0 1
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-4
-SELECT HEX(a), REPLACE(a,' ','<SP>') FROM t1 WHERE a='a';
-HEX(a) REPLACE(a,' ','<SP>')
-61 a
-SELECT HEX(a), REPLACE(a,' ','<SP>') FROM t1 ORDER BY a;
-HEX(a) REPLACE(a,' ','<SP>')
-61 a
-6120 a<SP>
-62 b
-6220 b<SP>
-SELECT HEX(a), REPLACE(a,' ','<SP>') FROM t1 ORDER BY a DESC;
-HEX(a) REPLACE(a,' ','<SP>')
-6220 b<SP>
-62 b
-6120 a<SP>
-61 a
-DROP TABLE t1;
-SET NAMES utf8 COLLATE utf8_czech_test_w2;
-CREATE TABLE t1 AS SELECT SPACE(10) AS c1 LIMIT 0;
-insert into t1 values ('A'),('a');
-insert into t1 values ('B'),('b');
-insert into t1 values ('C'),('c');
-insert into t1 values ('D'),('d');
-insert into t1 values ('E'),('e');
-insert into t1 values ('F'),('f');
-insert into t1 values ('G'),('g');
-insert into t1 values ('H'),('h');
-insert into t1 values ('I'),('i');
-insert into t1 values ('J'),('j');
-insert into t1 values ('K'),('k');
-insert into t1 values ('L'),('l');
-insert into t1 values ('M'),('m');
-insert into t1 values ('N'),('n');
-insert into t1 values ('O'),('o');
-insert into t1 values ('P'),('p');
-insert into t1 values ('Q'),('q');
-insert into t1 values ('R'),('r');
-insert into t1 values ('S'),('s');
-insert into t1 values ('T'),('t');
-insert into t1 values ('U'),('u');
-insert into t1 values ('V'),('v');
-insert into t1 values ('W'),('w');
-insert into t1 values ('X'),('x');
-insert into t1 values ('Y'),('y');
-insert into t1 values ('Z'),('z');
-insert into t1 values (_ucs2 0x00e0),(_ucs2 0x00c0);
-insert into t1 values (_ucs2 0x00e1),(_ucs2 0x00c1);
-insert into t1 values (_ucs2 0x00e2),(_ucs2 0x00c2);
-insert into t1 values (_ucs2 0x00e3),(_ucs2 0x00c3);
-insert into t1 values (_ucs2 0x00e4),(_ucs2 0x00c4);
-insert into t1 values (_ucs2 0x00e5),(_ucs2 0x00c5);
-insert into t1 values (_ucs2 0x00e6),(_ucs2 0x00c6);
-insert into t1 values (_ucs2 0x00e7),(_ucs2 0x00c7);
-insert into t1 values (_ucs2 0x00e8),(_ucs2 0x00c8);
-insert into t1 values (_ucs2 0x00e9),(_ucs2 0x00c9);
-insert into t1 values (_ucs2 0x00ea),(_ucs2 0x00ca);
-insert into t1 values (_ucs2 0x00eb),(_ucs2 0x00cb);
-insert into t1 values (_ucs2 0x00ec),(_ucs2 0x00cc);
-insert into t1 values (_ucs2 0x00ed),(_ucs2 0x00cd);
-insert into t1 values (_ucs2 0x00ee),(_ucs2 0x00ce);
-insert into t1 values (_ucs2 0x00ef),(_ucs2 0x00cf);
-insert into t1 values (_ucs2 0x00f0),(_ucs2 0x00d0);
-insert into t1 values (_ucs2 0x00f1),(_ucs2 0x00d1);
-insert into t1 values (_ucs2 0x00f2),(_ucs2 0x00d2);
-insert into t1 values (_ucs2 0x00f3),(_ucs2 0x00d3);
-insert into t1 values (_ucs2 0x00f4),(_ucs2 0x00d4);
-insert into t1 values (_ucs2 0x00f5),(_ucs2 0x00d5);
-insert into t1 values (_ucs2 0x00f6),(_ucs2 0x00d6);
-insert into t1 values (_ucs2 0x00f7),(_ucs2 0x00d7);
-insert into t1 values (_ucs2 0x00f8),(_ucs2 0x00d8);
-insert into t1 values (_ucs2 0x00f9),(_ucs2 0x00d9);
-insert into t1 values (_ucs2 0x00fa),(_ucs2 0x00da);
-insert into t1 values (_ucs2 0x00fb),(_ucs2 0x00db);
-insert into t1 values (_ucs2 0x00fc),(_ucs2 0x00dc);
-insert into t1 values (_ucs2 0x00fd),(_ucs2 0x00dd);
-insert into t1 values (_ucs2 0x00fe),(_ucs2 0x00de);
-insert into t1 values (_ucs2 0x00ff),(_ucs2 0x00df);
-insert into t1 values (_ucs2 0x0100),(_ucs2 0x0101),(_ucs2 0x0102),(_ucs2 0x0103);
-insert into t1 values (_ucs2 0x0104),(_ucs2 0x0105),(_ucs2 0x0106),(_ucs2 0x0107);
-insert into t1 values (_ucs2 0x0108),(_ucs2 0x0109),(_ucs2 0x010a),(_ucs2 0x010b);
-insert into t1 values (_ucs2 0x010c),(_ucs2 0x010d),(_ucs2 0x010e),(_ucs2 0x010f);
-insert into t1 values (_ucs2 0x0110),(_ucs2 0x0111),(_ucs2 0x0112),(_ucs2 0x0113);
-insert into t1 values (_ucs2 0x0114),(_ucs2 0x0115),(_ucs2 0x0116),(_ucs2 0x0117);
-insert into t1 values (_ucs2 0x0118),(_ucs2 0x0119),(_ucs2 0x011a),(_ucs2 0x011b);
-insert into t1 values (_ucs2 0x011c),(_ucs2 0x011d),(_ucs2 0x011e),(_ucs2 0x011f);
-insert into t1 values (_ucs2 0x0120),(_ucs2 0x0121),(_ucs2 0x0122),(_ucs2 0x0123);
-insert into t1 values (_ucs2 0x0124),(_ucs2 0x0125),(_ucs2 0x0126),(_ucs2 0x0127);
-insert into t1 values (_ucs2 0x0128),(_ucs2 0x0129),(_ucs2 0x012a),(_ucs2 0x012b);
-insert into t1 values (_ucs2 0x012c),(_ucs2 0x012d),(_ucs2 0x012e),(_ucs2 0x012f);
-insert into t1 values (_ucs2 0x0130),(_ucs2 0x0131),(_ucs2 0x0132),(_ucs2 0x0133);
-insert into t1 values (_ucs2 0x0134),(_ucs2 0x0135),(_ucs2 0x0136),(_ucs2 0x0137);
-insert into t1 values (_ucs2 0x0138),(_ucs2 0x0139),(_ucs2 0x013a),(_ucs2 0x013b);
-insert into t1 values (_ucs2 0x013c),(_ucs2 0x013d),(_ucs2 0x013e),(_ucs2 0x013f);
-insert into t1 values (_ucs2 0x0140),(_ucs2 0x0141),(_ucs2 0x0142),(_ucs2 0x0143);
-insert into t1 values (_ucs2 0x0144),(_ucs2 0x0145),(_ucs2 0x0146),(_ucs2 0x0147);
-insert into t1 values (_ucs2 0x0148),(_ucs2 0x0149),(_ucs2 0x014a),(_ucs2 0x014b);
-insert into t1 values (_ucs2 0x014c),(_ucs2 0x014d),(_ucs2 0x014e),(_ucs2 0x014f);
-insert into t1 values (_ucs2 0x0150),(_ucs2 0x0151),(_ucs2 0x0152),(_ucs2 0x0153);
-insert into t1 values (_ucs2 0x0154),(_ucs2 0x0155),(_ucs2 0x0156),(_ucs2 0x0157);
-insert into t1 values (_ucs2 0x0158),(_ucs2 0x0159),(_ucs2 0x015a),(_ucs2 0x015b);
-insert into t1 values (_ucs2 0x015c),(_ucs2 0x015d),(_ucs2 0x015e),(_ucs2 0x015f);
-insert into t1 values (_ucs2 0x0160),(_ucs2 0x0161),(_ucs2 0x0162),(_ucs2 0x0163);
-insert into t1 values (_ucs2 0x0164),(_ucs2 0x0165),(_ucs2 0x0166),(_ucs2 0x0167);
-insert into t1 values (_ucs2 0x0168),(_ucs2 0x0169),(_ucs2 0x016a),(_ucs2 0x016b);
-insert into t1 values (_ucs2 0x016c),(_ucs2 0x016d),(_ucs2 0x016e),(_ucs2 0x016f);
-insert into t1 values (_ucs2 0x0170),(_ucs2 0x0171),(_ucs2 0x0172),(_ucs2 0x0173);
-insert into t1 values (_ucs2 0x0174),(_ucs2 0x0175),(_ucs2 0x0176),(_ucs2 0x0177);
-insert into t1 values (_ucs2 0x0178),(_ucs2 0x0179),(_ucs2 0x017a),(_ucs2 0x017b);
-insert into t1 values (_ucs2 0x017c),(_ucs2 0x017d),(_ucs2 0x017e),(_ucs2 0x017f);
-insert into t1 values (_ucs2 0x0180),(_ucs2 0x0181),(_ucs2 0x0182),(_ucs2 0x0183);
-insert into t1 values (_ucs2 0x0184),(_ucs2 0x0185),(_ucs2 0x0186),(_ucs2 0x0187);
-insert into t1 values (_ucs2 0x0188),(_ucs2 0x0189),(_ucs2 0x018a),(_ucs2 0x018b);
-insert into t1 values (_ucs2 0x018c),(_ucs2 0x018d),(_ucs2 0x018e),(_ucs2 0x018f);
-insert into t1 values (_ucs2 0x0190),(_ucs2 0x0191),(_ucs2 0x0192),(_ucs2 0x0193);
-insert into t1 values (_ucs2 0x0194),(_ucs2 0x0195),(_ucs2 0x0196),(_ucs2 0x0197);
-insert into t1 values (_ucs2 0x0198),(_ucs2 0x0199),(_ucs2 0x019a),(_ucs2 0x019b);
-insert into t1 values (_ucs2 0x019c),(_ucs2 0x019d),(_ucs2 0x019e),(_ucs2 0x019f);
-insert into t1 values (_ucs2 0x01a0),(_ucs2 0x01a1),(_ucs2 0x01a2),(_ucs2 0x01a3);
-insert into t1 values (_ucs2 0x01a4),(_ucs2 0x01a5),(_ucs2 0x01a6),(_ucs2 0x01a7);
-insert into t1 values (_ucs2 0x01a8),(_ucs2 0x01a9),(_ucs2 0x01aa),(_ucs2 0x01ab);
-insert into t1 values (_ucs2 0x01ac),(_ucs2 0x01ad),(_ucs2 0x01ae),(_ucs2 0x01af);
-insert into t1 values (_ucs2 0x01b0),(_ucs2 0x01b1),(_ucs2 0x01b2),(_ucs2 0x01b3);
-insert into t1 values (_ucs2 0x01b4),(_ucs2 0x01b5),(_ucs2 0x01b6),(_ucs2 0x01b7);
-insert into t1 values (_ucs2 0x01b8),(_ucs2 0x01b9),(_ucs2 0x01ba),(_ucs2 0x01bb);
-insert into t1 values (_ucs2 0x01bc),(_ucs2 0x01bd),(_ucs2 0x01be),(_ucs2 0x01bf);
-insert into t1 values (_ucs2 0x01c0),(_ucs2 0x01c1),(_ucs2 0x01c2),(_ucs2 0x01c3);
-insert into t1 values (_ucs2 0x01c4),(_ucs2 0x01c5),(_ucs2 0x01c6),(_ucs2 0x01c7);
-insert into t1 values (_ucs2 0x01c8),(_ucs2 0x01c9),(_ucs2 0x01ca),(_ucs2 0x01cb);
-insert into t1 values (_ucs2 0x01cc),(_ucs2 0x01cd),(_ucs2 0x01ce),(_ucs2 0x01cf);
-insert into t1 values (_ucs2 0x01d0),(_ucs2 0x01d1),(_ucs2 0x01d2),(_ucs2 0x01d3);
-insert into t1 values (_ucs2 0x01d4),(_ucs2 0x01d5),(_ucs2 0x01d6),(_ucs2 0x01d7);
-insert into t1 values (_ucs2 0x01d8),(_ucs2 0x01d9),(_ucs2 0x01da),(_ucs2 0x01db);
-insert into t1 values (_ucs2 0x01dc),(_ucs2 0x01dd),(_ucs2 0x01de),(_ucs2 0x01df);
-insert into t1 values (_ucs2 0x01e0),(_ucs2 0x01e1),(_ucs2 0x01e2),(_ucs2 0x01e3);
-insert into t1 values (_ucs2 0x01e4),(_ucs2 0x01e5),(_ucs2 0x01e6),(_ucs2 0x01e7);
-insert into t1 values (_ucs2 0x01e8),(_ucs2 0x01e9),(_ucs2 0x01ea),(_ucs2 0x01eb);
-insert into t1 values (_ucs2 0x01ec),(_ucs2 0x01ed),(_ucs2 0x01ee),(_ucs2 0x01ef);
-insert into t1 values (_ucs2 0x01f0),(_ucs2 0x01f1),(_ucs2 0x01f2),(_ucs2 0x01f3);
-insert into t1 values (_ucs2 0x01f4),(_ucs2 0x01f5),(_ucs2 0x01f6),(_ucs2 0x01f7);
-insert into t1 values (_ucs2 0x01f8),(_ucs2 0x01f9),(_ucs2 0x01fa),(_ucs2 0x01fb);
-insert into t1 values (_ucs2 0x01fc),(_ucs2 0x01fd),(_ucs2 0x01fe),(_ucs2 0x01ff);
-INSERT INTO t1 VALUES (_ucs2 0x1EA0),(_ucs2 0x1EA1),(_ucs2 0x1EA2),(_ucs2 0x1EA3);
-INSERT INTO t1 VALUES (_ucs2 0x1EA4),(_ucs2 0x1EA5),(_ucs2 0x1EA6),(_ucs2 0x1EA7);
-INSERT INTO t1 VALUES (_ucs2 0x1EA8),(_ucs2 0x1EA9),(_ucs2 0x1EAA),(_ucs2 0x1EAB);
-INSERT INTO t1 VALUES (_ucs2 0x1EAC),(_ucs2 0x1EAD),(_ucs2 0x1EAE),(_ucs2 0x1EAF);
-INSERT INTO t1 VALUES (_ucs2 0x1EB0),(_ucs2 0x1EB1),(_ucs2 0x1EB2),(_ucs2 0x1EB3);
-INSERT INTO t1 VALUES (_ucs2 0x1EB4),(_ucs2 0x1EB5),(_ucs2 0x1EB6),(_ucs2 0x1EB7);
-INSERT INTO t1 VALUES (_ucs2 0x1EB8),(_ucs2 0x1EB9),(_ucs2 0x1EBA),(_ucs2 0x1EBB);
-INSERT INTO t1 VALUES (_ucs2 0x1EBC),(_ucs2 0x1EBD),(_ucs2 0x1EBE),(_ucs2 0x1EBF);
-INSERT INTO t1 VALUES (_ucs2 0x1EC0),(_ucs2 0x1EC1),(_ucs2 0x1EC2),(_ucs2 0x1EC3);
-INSERT INTO t1 VALUES (_ucs2 0x1EC4),(_ucs2 0x1EC5),(_ucs2 0x1EC6),(_ucs2 0x1EC7);
-INSERT INTO t1 VALUES (_ucs2 0x1EC8),(_ucs2 0x1EC9),(_ucs2 0x1ECA),(_ucs2 0x1ECB);
-INSERT INTO t1 VALUES (_ucs2 0x1ECC),(_ucs2 0x1ECD),(_ucs2 0x1ECE),(_ucs2 0x1ECF);
-INSERT INTO t1 VALUES (_ucs2 0x1ED0),(_ucs2 0x1ED1),(_ucs2 0x1ED2),(_ucs2 0x1ED3);
-INSERT INTO t1 VALUES (_ucs2 0x1ED4),(_ucs2 0x1ED5),(_ucs2 0x1ED6),(_ucs2 0x1ED7);
-INSERT INTO t1 VALUES (_ucs2 0x1ED8),(_ucs2 0x1ED9),(_ucs2 0x1EDA),(_ucs2 0x1EDB);
-INSERT INTO t1 VALUES (_ucs2 0x1EDC),(_ucs2 0x1EDD),(_ucs2 0x1EDE),(_ucs2 0x1EDF);
-INSERT INTO t1 VALUES (_ucs2 0x1EE0),(_ucs2 0x1EE1),(_ucs2 0x1EE2),(_ucs2 0x1EE3);
-INSERT INTO t1 VALUES (_ucs2 0x1EE4),(_ucs2 0x1EE5),(_ucs2 0x1EE6),(_ucs2 0x1EE7);
-INSERT INTO t1 VALUES (_ucs2 0x1EE8),(_ucs2 0x1EE9),(_ucs2 0x1EEA),(_ucs2 0x1EEB);
-INSERT INTO t1 VALUES (_ucs2 0x1EEC),(_ucs2 0x1EED),(_ucs2 0x1EEE),(_ucs2 0x1EEF);
-INSERT INTO t1 VALUES (_ucs2 0x1EF0),(_ucs2 0x1EF1);
-insert into t1 values ('AA'),('Aa'),('aa'),('aA');
-insert into t1 values ('AE'),('Ae'),('ae'),('aE');
-insert into t1 values ('CH'),('Ch'),('ch'),('cH');
-insert into t1 values ('DZ'),('Dz'),('dz'),('dZ');
-insert into t1 values ('DŽ'),('Dž'),('dž'),('dŽ');
-insert into t1 values ('IJ'),('Ij'),('ij'),('iJ');
-insert into t1 values ('LJ'),('Lj'),('lj'),('lJ');
-insert into t1 values ('LL'),('Ll'),('ll'),('lL');
-insert into t1 values ('NJ'),('Nj'),('nj'),('nJ');
-insert into t1 values ('OE'),('Oe'),('oe'),('oE');
-insert into t1 values ('SS'),('Ss'),('ss'),('sS');
-insert into t1 values ('RR'),('Rr'),('rr'),('rR');
-INSERT INTO t1 VALUES ('a ');
-SELECT c1, HEX(WEIGHT_STRING(c1 LEVEL 1)), HEX(WEIGHT_STRING(c1 LEVEL 2)) FROM t1 ORDER BY c1, BINARY c1;
-c1 HEX(WEIGHT_STRING(c1 LEVEL 1)) HEX(WEIGHT_STRING(c1 LEVEL 2))
-÷ 0552 0020
-× 0553 0020
-A 120F 0020
-a 120F 0020
-a 120F020A 00200020
-Ã 120F 00200032
-á 120F 00200032
-À 120F 00200035
-à 120F 00200035
-Ä‚ 120F 00200037
-ă 120F 00200037
-Ắ 120F 002000370032
-ắ 120F 002000370032
-Ằ 120F 002000370035
-ằ 120F 002000370035
-Ẵ 120F 00200037004E
-ẵ 120F 00200037004E
-Ẳ 120F 002000370064
-ẳ 120F 002000370064
-Â 120F 0020003C
-â 120F 0020003C
-Ấ 120F 0020003C0032
-ấ 120F 0020003C0032
-Ầ 120F 0020003C0035
-ầ 120F 0020003C0035
-Ẫ 120F 0020003C004E
-ẫ 120F 0020003C004E
-Ẩ 120F 0020003C0064
-ẩ 120F 0020003C0064
-Ç 120F 00200041
-ÇŽ 120F 00200041
-Ã… 120F 00200043
-Ã¥ 120F 00200043
-Ǻ 120F 002000430032
-Ç» 120F 002000430032
-Ä 120F 00200047
-ä 120F 00200047
-Çž 120F 00200047005B
-ÇŸ 120F 00200047005B
-Ã 120F 0020004E
-ã 120F 0020004E
-Ç  120F 00200052005B
-Ç¡ 120F 00200052005B
-Ä„ 120F 00200059
-Ä… 120F 00200059
-Ä€ 120F 0020005B
-Ä 120F 0020005B
-Ả 120F 00200064
-ả 120F 00200064
-Ạ 120F 00200070
-ạ 120F 00200070
-Ặ 120F 002000700037
-ặ 120F 002000700037
-Ậ 120F 00200070003C
-ậ 120F 00200070003C
-AA 120F120F 00200020
-Aa 120F120F 00200020
-aA 120F120F 00200020
-aa 120F120F 00200020
-AE 120F126B 00200020
-Ae 120F126B 00200020
-aE 120F126B 00200020
-ae 120F126B 00200020
-Æ 120F126B 002001590020
-æ 120F126B 002001590020
-Ǽ 120F126B 0020015900200032
-ǽ 120F126B 0020015900200032
-Ç¢ 120F126B 002001590020005B
-Ç£ 120F126B 002001590020005B
-B 1225 0020
-b 1225 0020
-Æ€ 122D 0020
-Æ 1235 0020
-Æ‚ 1239 0020
-ƃ 1239 0020
-C 123D 0020
-c 123D 0020
-Ć 123D 00200032
-ć 123D 00200032
-Ĉ 123D 0020003C
-ĉ 123D 0020003C
-ÄŠ 123D 00200052
-Ä‹ 123D 00200052
-Ç 123D 00200056
-ç 123D 00200056
-cH 123D12D3 00200020
-Č 123E 0020
-Ä 123E 0020
-Ƈ 1246 0020
-ƈ 1246 0020
-D 1250 0020
-d 1250 0020
-ÄŽ 1250 00200041
-Ä 1250 00200041
-Ä 1250 0020007D
-Ä‘ 1250 0020007D
-Ã 1250 00200159
-ð 1250 00200159
-DZ 125014AD 00200020
-Dz 125014AD 00200020
-dZ 125014AD 00200020
-dz 125014AD 00200020
-DZ 125014AD 00200020
-Dz 125014AD 00200020
-dz 125014AD 00200020
-Ç„ 125014AD 002000200041
-Ç… 125014AD 002000200041
-dž 125014AD 002000200041
-DŽ 125014AE 00200020
-Dž 125014AE 00200020
-dŽ 125014AE 00200020
-dž 125014AE 00200020
-Ɖ 1258 0020
-ÆŠ 125C 0020
-Æ‹ 1261 0020
-ƌ 1261 0020
-E 126B 0020
-e 126B 0020
-É 126B 00200032
-é 126B 00200032
-È 126B 00200035
-è 126B 00200035
-Ä” 126B 00200037
-Ä• 126B 00200037
-Ê 126B 0020003C
-ê 126B 0020003C
-Ế 126B 0020003C0032
-ế 126B 0020003C0032
-Ề 126B 0020003C0035
-á» 126B 0020003C0035
-Ễ 126B 0020003C004E
-á»… 126B 0020003C004E
-Ể 126B 0020003C0064
-ể 126B 0020003C0064
-Äš 126B 00200041
-Ä› 126B 00200041
-Ë 126B 00200047
-ë 126B 00200047
-Ẽ 126B 0020004E
-ẽ 126B 0020004E
-Ä– 126B 00200052
-Ä— 126B 00200052
-Ę 126B 00200059
-Ä™ 126B 00200059
-Ä’ 126B 0020005B
-Ä“ 126B 0020005B
-Ẻ 126B 00200064
-ẻ 126B 00200064
-Ẹ 126B 00200070
-ẹ 126B 00200070
-Ệ 126B 00200070003C
-ệ 126B 00200070003C
-ÆŽ 1276 0020
-Ç 1276 0020
-Æ 127B 0020
-Æ 1280 0020
-F 12A3 0020
-f 12A3 0020
-Æ‘ 12AA 0020
-Æ’ 12AA 0020
-G 12B0 0020
-g 12B0 0020
-Ç´ 12B0 00200032
-ǵ 12B0 00200032
-Äž 12B0 00200037
-ÄŸ 12B0 00200037
-Ĝ 12B0 0020003C
-Ä 12B0 0020003C
-Ǧ 12B0 00200041
-ǧ 12B0 00200041
-Ä  12B0 00200052
-Ä¡ 12B0 00200052
-Ä¢ 12B0 00200056
-Ä£ 12B0 00200056
-Ǥ 12BC 0020
-Ç¥ 12BC 0020
-Æ“ 12C1 0020
-Æ” 12CB 0020
-Æ¢ 12CF 0020
-Æ£ 12CF 0020
-H 12D3 0020
-h 12D3 0020
-Ĥ 12D3 0020003C
-Ä¥ 12D3 0020003C
-Ħ 12D3 0020007D
-ħ 12D3 0020007D
-CH 12D4 0020
-Ch 12D4 0020
-ch 12D4 0020
-Æ• 12DB 0020
-Ƕ 12DB 0020
-I 12EC 0020
-i 12EC 0020
-Ã 12EC 00200032
-í 12EC 00200032
-Ì 12EC 00200035
-ì 12EC 00200035
-Ĭ 12EC 00200037
-Ä­ 12EC 00200037
-ÃŽ 12EC 0020003C
-î 12EC 0020003C
-Ç 12EC 00200041
-Ç 12EC 00200041
-Ã 12EC 00200047
-ï 12EC 00200047
-Ĩ 12EC 0020004E
-Ä© 12EC 0020004E
-Ä° 12EC 00200052
-Ä® 12EC 00200059
-į 12EC 00200059
-Ī 12EC 0020005B
-Ä« 12EC 0020005B
-Ỉ 12EC 00200064
-ỉ 12EC 00200064
-Ị 12EC 00200070
-ị 12EC 00200070
-IJ 12EC1305 00200020
-Ij 12EC1305 00200020
-iJ 12EC1305 00200020
-ij 12EC1305 00200020
-IJ 12EC1305 00200020
-ij 12EC1305 00200020
-ı 12F0 0020
-Æ— 12FA 0020
-Æ– 1300 0020
-J 1305 0020
-j 1305 0020
-Ä´ 1305 0020003C
-ĵ 1305 0020003C
-Ç° 1305 00200041
-K 131E 0020
-k 131E 0020
-Ǩ 131E 00200041
-Ç© 131E 00200041
-Ķ 131E 00200056
-Ä· 131E 00200056
-Ƙ 1324 0020
-Æ™ 1324 0020
-L 1330 0020
-l 1330 0020
-Ĺ 1330 00200032
-ĺ 1330 00200032
-Ľ 1330 00200041
-ľ 1330 00200041
-Ä» 1330 00200056
-ļ 1330 00200056
-Å 1330 0020007D
-Å‚ 1330 0020007D
-Ä¿ 1330 00200159
-Å€ 1330 00200159
-LJ 13301305 00200020
-Lj 13301305 00200020
-lJ 13301305 00200020
-lj 13301305 00200020
-LJ 13301305 00200020
-Lj 13301305 00200020
-lj 13301305 00200020
-LL 13301330 00200020
-Ll 13301330 00200020
-lL 13301330 00200020
-ll 13301330 00200020
-Æš 133B 0020
-Æ› 1357 0020
-M 135F 0020
-m 135F 0020
-N 136D 0020
-n 136D 0020
-Ń 136D 00200032
-Å„ 136D 00200032
-Ǹ 136D 00200035
-ǹ 136D 00200035
-Ň 136D 00200041
-ň 136D 00200041
-Ñ 136D 0020004E
-ñ 136D 0020004E
-Å… 136D 00200056
-ņ 136D 00200056
-NJ 136D1305 00200020
-Nj 136D1305 00200020
-nJ 136D1305 00200020
-nj 136D1305 00200020
-ÇŠ 136D1305 00200020
-Ç‹ 136D1305 00200020
-nj 136D1305 00200020
-Æ 1378 0020
-Æž 137C 0020
-ÅŠ 138A 0020
-Å‹ 138A 0020
-O 138E 0020
-o 138E 0020
-Ó 138E 00200032
-ó 138E 00200032
-Ã’ 138E 00200035
-ò 138E 00200035
-ÅŽ 138E 00200037
-Å 138E 00200037
-Ô 138E 0020003C
-ô 138E 0020003C
-á» 138E 0020003C0032
-ố 138E 0020003C0032
-á»’ 138E 0020003C0035
-ồ 138E 0020003C0035
-á»– 138E 0020003C004E
-á»— 138E 0020003C004E
-á»” 138E 0020003C0064
-ổ 138E 0020003C0064
-Ç‘ 138E 00200041
-Ç’ 138E 00200041
-Ö 138E 00200047
-ö 138E 00200047
-Å 138E 0020004D
-Å‘ 138E 0020004D
-Õ 138E 0020004E
-õ 138E 0020004E
-Ø 138E 00200054
-ø 138E 00200054
-Ǿ 138E 002000540032
-Ç¿ 138E 002000540032
-Ǫ 138E 00200059
-Ç« 138E 00200059
-Ǭ 138E 00200059005B
-Ç­ 138E 00200059005B
-Ō 138E 0020005B
-Å 138E 0020005B
-Ỏ 138E 00200064
-á» 138E 00200064
-Æ  138E 00200068
-Æ¡ 138E 00200068
-Ớ 138E 002000680032
-á»› 138E 002000680032
-Ờ 138E 002000680035
-á» 138E 002000680035
-á»  138E 00200068004E
-ỡ 138E 00200068004E
-Ở 138E 002000680064
-ở 138E 002000680064
-Ợ 138E 002000680070
-ợ 138E 002000680070
-Ọ 138E 00200070
-á» 138E 00200070
-Ộ 138E 00200070003C
-á»™ 138E 00200070003C
-OE 138E126B 00200020
-Oe 138E126B 00200020
-oE 138E126B 00200020
-oe 138E126B 00200020
-Å’ 138E126B 002001590020
-Å“ 138E126B 002001590020
-Ɔ 139A 0020
-ÆŸ 13A5 0020
-P 13B3 0020
-p 13B3 0020
-Ƥ 13BC 0020
-Æ¥ 13BC 0020
-Q 13C8 0020
-q 13C8 0020
-ĸ 13D6 0020
-R 13DA 0020
-r 13DA 0020
-Å” 13DA 00200032
-Å• 13DA 00200032
-Å– 13DA 00200056
-Å— 13DA 00200056
-RR 13DA13DA 00200020
-Rr 13DA13DA 00200020
-rR 13DA13DA 00200020
-rr 13DA13DA 00200020
-Ř 13DB 0020
-Å™ 13DB 0020
-Ʀ 13DE 0020
-S 1410 0020
-s 1410 0020
-Åš 1410 00200032
-Å› 1410 00200032
-Ŝ 1410 0020003C
-Å 1410 0020003C
-Åž 1410 00200056
-ÅŸ 1410 00200056
-Å¿ 1410 0020015A
-SS 14101410 00200020
-Ss 14101410 00200020
-sS 14101410 00200020
-ss 14101410 00200020
-ß 14101410 002001590020
-Å  1411 0020
-Å¡ 1411 0020
-Æ© 1421 0020
-ƪ 1426 0020
-T 1433 0020
-t 1433 0020
-Ť 1433 00200041
-Å¥ 1433 00200041
-Å¢ 1433 00200056
-Å£ 1433 00200056
-ƾ 14331410 00200020
-Ŧ 1438 0020
-ŧ 1438 0020
-Æ« 143E 0020
-Ƭ 1442 0020
-Æ­ 1442 0020
-Æ® 1446 0020
-U 1453 0020
-u 1453 0020
-Ú 1453 00200032
-ú 1453 00200032
-Ù 1453 00200035
-ù 1453 00200035
-Ŭ 1453 00200037
-Å­ 1453 00200037
-Û 1453 0020003C
-û 1453 0020003C
-Ç“ 1453 00200041
-Ç” 1453 00200041
-Å® 1453 00200043
-ů 1453 00200043
-Ü 1453 00200047
-ü 1453 00200047
-Ç— 1453 002000470032
-ǘ 1453 002000470032
-Ç› 1453 002000470035
-ǜ 1453 002000470035
-Ç™ 1453 002000470041
-Çš 1453 002000470041
-Ç• 1453 00200047005B
-Ç– 1453 00200047005B
-Å° 1453 0020004D
-ű 1453 0020004D
-Ũ 1453 0020004E
-Å© 1453 0020004E
-Ų 1453 00200059
-ų 1453 00200059
-Ū 1453 0020005B
-Å« 1453 0020005B
-Ủ 1453 00200064
-ủ 1453 00200064
-Ư 1453 00200068
-Æ° 1453 00200068
-Ứ 1453 002000680032
-ứ 1453 002000680032
-Ừ 1453 002000680035
-ừ 1453 002000680035
-á»® 1453 00200068004E
-ữ 1453 00200068004E
-Ử 1453 002000680064
-á»­ 1453 002000680064
-á»° 1453 002000680070
-á»± 1453 002000680070
-Ụ 1453 00200070
-ụ 1453 00200070
-Ɯ 146D 0020
-Ʊ 1476 0020
-V 147B 0020
-v 147B 0020
-Ʋ 1482 0020
-W 148D 0020
-w 148D 0020
-Å´ 148D 0020003C
-ŵ 148D 0020003C
-X 1497 0020
-x 1497 0020
-Y 149C 0020
-y 149C 0020
-Ã 149C 00200032
-ý 149C 00200032
-Ŷ 149C 0020003C
-Å· 149C 0020003C
-ÿ 149C 00200047
-Ÿ 149C 00200047
-Ƴ 14A8 0020
-Æ´ 14A8 0020
-Z 14AD 0020
-z 14AD 0020
-Ź 14AD 00200032
-ź 14AD 00200032
-Å» 14AD 00200052
-ż 14AD 00200052
-Æ 14AD148D 00200020
-Ž 14AE 0020
-ž 14AE 0020
-Ƶ 14B2 0020
-ƶ 14B2 0020
-Æ· 14CA 0020
-Ç® 14CA 00200041
-ǯ 14CA 00200041
-Ƹ 14CF 0020
-ƹ 14CF 0020
-ƺ 14D4 0020
-Þ 14E0 0020
-þ 14E0 0020
-Æ¿ 14E6 0020
-Ç· 14E6 0020
-Æ» 14EF 0020
-Ƨ 14F6 0020
-ƨ 14F6 0020
-Ƽ 14FA 0020
-ƽ 14FA 0020
-Æ„ 14FE 0020
-Æ… 14FE 0020
-ʼn 150B136D 00200020
-Ç€ 1525 0020
-Ç 1529 0020
-Ç‚ 152D 0020
-ǃ 1531 0020
-SELECT c1, HEX(WEIGHT_STRING(c1 AS CHAR(3) LEVEL 1)), HEX(WEIGHT_STRING(c1 AS CHAR(3) LEVEL 2)) FROM t1 WHERE c1 BETWEEN 'a' AND 'aZ' ORDER BY c1, BINARY c1;
-c1 HEX(WEIGHT_STRING(c1 AS CHAR(3) LEVEL 1)) HEX(WEIGHT_STRING(c1 AS CHAR(3) LEVEL 2))
-A 120F020A020A 002000200020
-a 120F020A020A 002000200020
-a 120F020A020A 002000200020
-Ã 120F020A020A 002000320020
-á 120F020A020A 002000320020
-À 120F020A020A 002000350020
-à 120F020A020A 002000350020
-Ä‚ 120F020A020A 002000370020
-ă 120F020A020A 002000370020
-Ắ 120F020A020A 002000370032
-ắ 120F020A020A 002000370032
-Ằ 120F020A020A 002000370035
-ằ 120F020A020A 002000370035
-Ẵ 120F020A020A 00200037004E
-ẵ 120F020A020A 00200037004E
-Ẳ 120F020A020A 002000370064
-ẳ 120F020A020A 002000370064
-Â 120F020A020A 0020003C0020
-â 120F020A020A 0020003C0020
-Ấ 120F020A020A 0020003C0032
-ấ 120F020A020A 0020003C0032
-Ầ 120F020A020A 0020003C0035
-ầ 120F020A020A 0020003C0035
-Ẫ 120F020A020A 0020003C004E
-ẫ 120F020A020A 0020003C004E
-Ẩ 120F020A020A 0020003C0064
-ẩ 120F020A020A 0020003C0064
-Ç 120F020A020A 002000410020
-ÇŽ 120F020A020A 002000410020
-Ã… 120F020A020A 002000430020
-Ã¥ 120F020A020A 002000430020
-Ǻ 120F020A020A 002000430032
-Ç» 120F020A020A 002000430032
-Ä 120F020A020A 002000470020
-ä 120F020A020A 002000470020
-Çž 120F020A020A 00200047005B
-ÇŸ 120F020A020A 00200047005B
-Ã 120F020A020A 0020004E0020
-ã 120F020A020A 0020004E0020
-Ç  120F020A020A 00200052005B
-Ç¡ 120F020A020A 00200052005B
-Ä„ 120F020A020A 002000590020
-Ä… 120F020A020A 002000590020
-Ä€ 120F020A020A 0020005B0020
-Ä 120F020A020A 0020005B0020
-Ả 120F020A020A 002000640020
-ả 120F020A020A 002000640020
-Ạ 120F020A020A 002000700020
-ạ 120F020A020A 002000700020
-Ặ 120F020A020A 002000700037
-ặ 120F020A020A 002000700037
-Ậ 120F020A020A 00200070003C
-ậ 120F020A020A 00200070003C
-AA 120F120F020A 002000200020
-Aa 120F120F020A 002000200020
-aA 120F120F020A 002000200020
-aa 120F120F020A 002000200020
-AE 120F126B020A 002000200020
-Ae 120F126B020A 002000200020
-aE 120F126B020A 002000200020
-ae 120F126B020A 002000200020
-Æ 120F126B020A 002001590020
-æ 120F126B020A 002001590020
-Ǽ 120F126B020A 002001590020
-ǽ 120F126B020A 002001590020
-Ç¢ 120F126B020A 002001590020
-Ç£ 120F126B020A 002001590020
-DROP TABLE t1;
-SELECT 'a' = 'a ';
-'a' = 'a '
-1
-SELECT 'a' < 'á';
-'a' < 'á'
-1
-SELECT 'áa' < 'ab';
-'áa' < 'ab'
-1
-SELECT 'á' < 'ä';
-'á' < 'ä'
-1
-SELECT 'äa' < 'áb';
-'äa' < 'áb'
-1
-SELECT 'c' < 'Ä';
-'c' < 'Ä'
-1
-SELECT 'cb' < 'Äa';
-'cb' < 'Äa'
-1
-SELECT 'd' < 'Ä';
-'d' < 'Ä'
-1
-SELECT 'Äa' < 'db';
-'Äa' < 'db'
-1
-SELECT 'e' < 'é';
-'e' < 'é'
-1
-SELECT 'éa' < 'eb';
-'éa' < 'eb'
-1
-SELECT 'é' < 'ě';
-'é' < 'ě'
-1
-SELECT 'ěa' < 'éb';
-'ěa' < 'éb'
-1
-SELECT 'i' < 'í';
-'i' < 'í'
-1
-SELECT 'ía' < 'ib';
-'ía' < 'ib'
-1
-SELECT 'n' < 'ň';
-'n' < 'ň'
-1
-SELECT 'ňa' < 'nb';
-'ňa' < 'nb'
-1
-SELECT 'o' < 'ó';
-'o' < 'ó'
-1
-SELECT 'óa' < 'ob';
-'óa' < 'ob'
-1
-SELECT 'ó' < 'ö';
-'ó' < 'ö'
-1
-SELECT 'öa' < 'ób';
-'öa' < 'ób'
-1
-SELECT 'r' < 'Å™';
-'r' < 'Å™'
-1
-SELECT 'rb' < 'řa';
-'rb' < 'řa'
-1
-SELECT 's' < 'Å¡';
-'s' < 'Å¡'
-1
-SELECT 'sb' < 'Å¡a';
-'sb' < 'Å¡a'
-1
-SELECT 't' < 'Å¥';
-'t' < 'Å¥'
-1
-SELECT 'Å¥a' < 'tb';
-'Å¥a' < 'tb'
-1
-SELECT 'u' < 'ú';
-'u' < 'ú'
-1
-SELECT 'úa' < 'ub';
-'úa' < 'ub'
-1
-SELECT 'ú' < 'ů';
-'ú' < 'ů'
-1
-SELECT 'ůa' < 'úb';
-'ůa' < 'úb'
-1
-SELECT 'ů' < 'ü';
-'ů' < 'ü'
-1
-SELECT 'üa' < 'ůb';
-'üa' < 'ůb'
-1
-SELECT 'y' < 'ý';
-'y' < 'ý'
-1
-SELECT 'ýa' < 'yb';
-'ýa' < 'yb'
-1
-SELECT 'z' < 'ž';
-'z' < 'ž'
-1
-SELECT 'zb' < 'ža';
-'zb' < 'ža'
-1
-SELECT 'hž' < 'ch';
-'hž' < 'ch'
-1
-SELECT 'chž'< 'i';
-'chž'< 'i'
-1
-SET NAMES utf8 COLLATE utf8_czech_test_nopad_w2;
-CREATE TABLE t1 AS SELECT SPACE(10) AS c1 LIMIT 0;
-insert into t1 values ('A'),('a');
-insert into t1 values ('B'),('b');
-insert into t1 values ('C'),('c');
-insert into t1 values ('D'),('d');
-insert into t1 values ('E'),('e');
-insert into t1 values ('F'),('f');
-insert into t1 values ('G'),('g');
-insert into t1 values ('H'),('h');
-insert into t1 values ('I'),('i');
-insert into t1 values ('J'),('j');
-insert into t1 values ('K'),('k');
-insert into t1 values ('L'),('l');
-insert into t1 values ('M'),('m');
-insert into t1 values ('N'),('n');
-insert into t1 values ('O'),('o');
-insert into t1 values ('P'),('p');
-insert into t1 values ('Q'),('q');
-insert into t1 values ('R'),('r');
-insert into t1 values ('S'),('s');
-insert into t1 values ('T'),('t');
-insert into t1 values ('U'),('u');
-insert into t1 values ('V'),('v');
-insert into t1 values ('W'),('w');
-insert into t1 values ('X'),('x');
-insert into t1 values ('Y'),('y');
-insert into t1 values ('Z'),('z');
-insert into t1 values (_ucs2 0x00e0),(_ucs2 0x00c0);
-insert into t1 values (_ucs2 0x00e1),(_ucs2 0x00c1);
-insert into t1 values (_ucs2 0x00e2),(_ucs2 0x00c2);
-insert into t1 values (_ucs2 0x00e3),(_ucs2 0x00c3);
-insert into t1 values (_ucs2 0x00e4),(_ucs2 0x00c4);
-insert into t1 values (_ucs2 0x00e5),(_ucs2 0x00c5);
-insert into t1 values (_ucs2 0x00e6),(_ucs2 0x00c6);
-insert into t1 values (_ucs2 0x00e7),(_ucs2 0x00c7);
-insert into t1 values (_ucs2 0x00e8),(_ucs2 0x00c8);
-insert into t1 values (_ucs2 0x00e9),(_ucs2 0x00c9);
-insert into t1 values (_ucs2 0x00ea),(_ucs2 0x00ca);
-insert into t1 values (_ucs2 0x00eb),(_ucs2 0x00cb);
-insert into t1 values (_ucs2 0x00ec),(_ucs2 0x00cc);
-insert into t1 values (_ucs2 0x00ed),(_ucs2 0x00cd);
-insert into t1 values (_ucs2 0x00ee),(_ucs2 0x00ce);
-insert into t1 values (_ucs2 0x00ef),(_ucs2 0x00cf);
-insert into t1 values (_ucs2 0x00f0),(_ucs2 0x00d0);
-insert into t1 values (_ucs2 0x00f1),(_ucs2 0x00d1);
-insert into t1 values (_ucs2 0x00f2),(_ucs2 0x00d2);
-insert into t1 values (_ucs2 0x00f3),(_ucs2 0x00d3);
-insert into t1 values (_ucs2 0x00f4),(_ucs2 0x00d4);
-insert into t1 values (_ucs2 0x00f5),(_ucs2 0x00d5);
-insert into t1 values (_ucs2 0x00f6),(_ucs2 0x00d6);
-insert into t1 values (_ucs2 0x00f7),(_ucs2 0x00d7);
-insert into t1 values (_ucs2 0x00f8),(_ucs2 0x00d8);
-insert into t1 values (_ucs2 0x00f9),(_ucs2 0x00d9);
-insert into t1 values (_ucs2 0x00fa),(_ucs2 0x00da);
-insert into t1 values (_ucs2 0x00fb),(_ucs2 0x00db);
-insert into t1 values (_ucs2 0x00fc),(_ucs2 0x00dc);
-insert into t1 values (_ucs2 0x00fd),(_ucs2 0x00dd);
-insert into t1 values (_ucs2 0x00fe),(_ucs2 0x00de);
-insert into t1 values (_ucs2 0x00ff),(_ucs2 0x00df);
-insert into t1 values (_ucs2 0x0100),(_ucs2 0x0101),(_ucs2 0x0102),(_ucs2 0x0103);
-insert into t1 values (_ucs2 0x0104),(_ucs2 0x0105),(_ucs2 0x0106),(_ucs2 0x0107);
-insert into t1 values (_ucs2 0x0108),(_ucs2 0x0109),(_ucs2 0x010a),(_ucs2 0x010b);
-insert into t1 values (_ucs2 0x010c),(_ucs2 0x010d),(_ucs2 0x010e),(_ucs2 0x010f);
-insert into t1 values (_ucs2 0x0110),(_ucs2 0x0111),(_ucs2 0x0112),(_ucs2 0x0113);
-insert into t1 values (_ucs2 0x0114),(_ucs2 0x0115),(_ucs2 0x0116),(_ucs2 0x0117);
-insert into t1 values (_ucs2 0x0118),(_ucs2 0x0119),(_ucs2 0x011a),(_ucs2 0x011b);
-insert into t1 values (_ucs2 0x011c),(_ucs2 0x011d),(_ucs2 0x011e),(_ucs2 0x011f);
-insert into t1 values (_ucs2 0x0120),(_ucs2 0x0121),(_ucs2 0x0122),(_ucs2 0x0123);
-insert into t1 values (_ucs2 0x0124),(_ucs2 0x0125),(_ucs2 0x0126),(_ucs2 0x0127);
-insert into t1 values (_ucs2 0x0128),(_ucs2 0x0129),(_ucs2 0x012a),(_ucs2 0x012b);
-insert into t1 values (_ucs2 0x012c),(_ucs2 0x012d),(_ucs2 0x012e),(_ucs2 0x012f);
-insert into t1 values (_ucs2 0x0130),(_ucs2 0x0131),(_ucs2 0x0132),(_ucs2 0x0133);
-insert into t1 values (_ucs2 0x0134),(_ucs2 0x0135),(_ucs2 0x0136),(_ucs2 0x0137);
-insert into t1 values (_ucs2 0x0138),(_ucs2 0x0139),(_ucs2 0x013a),(_ucs2 0x013b);
-insert into t1 values (_ucs2 0x013c),(_ucs2 0x013d),(_ucs2 0x013e),(_ucs2 0x013f);
-insert into t1 values (_ucs2 0x0140),(_ucs2 0x0141),(_ucs2 0x0142),(_ucs2 0x0143);
-insert into t1 values (_ucs2 0x0144),(_ucs2 0x0145),(_ucs2 0x0146),(_ucs2 0x0147);
-insert into t1 values (_ucs2 0x0148),(_ucs2 0x0149),(_ucs2 0x014a),(_ucs2 0x014b);
-insert into t1 values (_ucs2 0x014c),(_ucs2 0x014d),(_ucs2 0x014e),(_ucs2 0x014f);
-insert into t1 values (_ucs2 0x0150),(_ucs2 0x0151),(_ucs2 0x0152),(_ucs2 0x0153);
-insert into t1 values (_ucs2 0x0154),(_ucs2 0x0155),(_ucs2 0x0156),(_ucs2 0x0157);
-insert into t1 values (_ucs2 0x0158),(_ucs2 0x0159),(_ucs2 0x015a),(_ucs2 0x015b);
-insert into t1 values (_ucs2 0x015c),(_ucs2 0x015d),(_ucs2 0x015e),(_ucs2 0x015f);
-insert into t1 values (_ucs2 0x0160),(_ucs2 0x0161),(_ucs2 0x0162),(_ucs2 0x0163);
-insert into t1 values (_ucs2 0x0164),(_ucs2 0x0165),(_ucs2 0x0166),(_ucs2 0x0167);
-insert into t1 values (_ucs2 0x0168),(_ucs2 0x0169),(_ucs2 0x016a),(_ucs2 0x016b);
-insert into t1 values (_ucs2 0x016c),(_ucs2 0x016d),(_ucs2 0x016e),(_ucs2 0x016f);
-insert into t1 values (_ucs2 0x0170),(_ucs2 0x0171),(_ucs2 0x0172),(_ucs2 0x0173);
-insert into t1 values (_ucs2 0x0174),(_ucs2 0x0175),(_ucs2 0x0176),(_ucs2 0x0177);
-insert into t1 values (_ucs2 0x0178),(_ucs2 0x0179),(_ucs2 0x017a),(_ucs2 0x017b);
-insert into t1 values (_ucs2 0x017c),(_ucs2 0x017d),(_ucs2 0x017e),(_ucs2 0x017f);
-insert into t1 values (_ucs2 0x0180),(_ucs2 0x0181),(_ucs2 0x0182),(_ucs2 0x0183);
-insert into t1 values (_ucs2 0x0184),(_ucs2 0x0185),(_ucs2 0x0186),(_ucs2 0x0187);
-insert into t1 values (_ucs2 0x0188),(_ucs2 0x0189),(_ucs2 0x018a),(_ucs2 0x018b);
-insert into t1 values (_ucs2 0x018c),(_ucs2 0x018d),(_ucs2 0x018e),(_ucs2 0x018f);
-insert into t1 values (_ucs2 0x0190),(_ucs2 0x0191),(_ucs2 0x0192),(_ucs2 0x0193);
-insert into t1 values (_ucs2 0x0194),(_ucs2 0x0195),(_ucs2 0x0196),(_ucs2 0x0197);
-insert into t1 values (_ucs2 0x0198),(_ucs2 0x0199),(_ucs2 0x019a),(_ucs2 0x019b);
-insert into t1 values (_ucs2 0x019c),(_ucs2 0x019d),(_ucs2 0x019e),(_ucs2 0x019f);
-insert into t1 values (_ucs2 0x01a0),(_ucs2 0x01a1),(_ucs2 0x01a2),(_ucs2 0x01a3);
-insert into t1 values (_ucs2 0x01a4),(_ucs2 0x01a5),(_ucs2 0x01a6),(_ucs2 0x01a7);
-insert into t1 values (_ucs2 0x01a8),(_ucs2 0x01a9),(_ucs2 0x01aa),(_ucs2 0x01ab);
-insert into t1 values (_ucs2 0x01ac),(_ucs2 0x01ad),(_ucs2 0x01ae),(_ucs2 0x01af);
-insert into t1 values (_ucs2 0x01b0),(_ucs2 0x01b1),(_ucs2 0x01b2),(_ucs2 0x01b3);
-insert into t1 values (_ucs2 0x01b4),(_ucs2 0x01b5),(_ucs2 0x01b6),(_ucs2 0x01b7);
-insert into t1 values (_ucs2 0x01b8),(_ucs2 0x01b9),(_ucs2 0x01ba),(_ucs2 0x01bb);
-insert into t1 values (_ucs2 0x01bc),(_ucs2 0x01bd),(_ucs2 0x01be),(_ucs2 0x01bf);
-insert into t1 values (_ucs2 0x01c0),(_ucs2 0x01c1),(_ucs2 0x01c2),(_ucs2 0x01c3);
-insert into t1 values (_ucs2 0x01c4),(_ucs2 0x01c5),(_ucs2 0x01c6),(_ucs2 0x01c7);
-insert into t1 values (_ucs2 0x01c8),(_ucs2 0x01c9),(_ucs2 0x01ca),(_ucs2 0x01cb);
-insert into t1 values (_ucs2 0x01cc),(_ucs2 0x01cd),(_ucs2 0x01ce),(_ucs2 0x01cf);
-insert into t1 values (_ucs2 0x01d0),(_ucs2 0x01d1),(_ucs2 0x01d2),(_ucs2 0x01d3);
-insert into t1 values (_ucs2 0x01d4),(_ucs2 0x01d5),(_ucs2 0x01d6),(_ucs2 0x01d7);
-insert into t1 values (_ucs2 0x01d8),(_ucs2 0x01d9),(_ucs2 0x01da),(_ucs2 0x01db);
-insert into t1 values (_ucs2 0x01dc),(_ucs2 0x01dd),(_ucs2 0x01de),(_ucs2 0x01df);
-insert into t1 values (_ucs2 0x01e0),(_ucs2 0x01e1),(_ucs2 0x01e2),(_ucs2 0x01e3);
-insert into t1 values (_ucs2 0x01e4),(_ucs2 0x01e5),(_ucs2 0x01e6),(_ucs2 0x01e7);
-insert into t1 values (_ucs2 0x01e8),(_ucs2 0x01e9),(_ucs2 0x01ea),(_ucs2 0x01eb);
-insert into t1 values (_ucs2 0x01ec),(_ucs2 0x01ed),(_ucs2 0x01ee),(_ucs2 0x01ef);
-insert into t1 values (_ucs2 0x01f0),(_ucs2 0x01f1),(_ucs2 0x01f2),(_ucs2 0x01f3);
-insert into t1 values (_ucs2 0x01f4),(_ucs2 0x01f5),(_ucs2 0x01f6),(_ucs2 0x01f7);
-insert into t1 values (_ucs2 0x01f8),(_ucs2 0x01f9),(_ucs2 0x01fa),(_ucs2 0x01fb);
-insert into t1 values (_ucs2 0x01fc),(_ucs2 0x01fd),(_ucs2 0x01fe),(_ucs2 0x01ff);
-INSERT INTO t1 VALUES (_ucs2 0x1EA0),(_ucs2 0x1EA1),(_ucs2 0x1EA2),(_ucs2 0x1EA3);
-INSERT INTO t1 VALUES (_ucs2 0x1EA4),(_ucs2 0x1EA5),(_ucs2 0x1EA6),(_ucs2 0x1EA7);
-INSERT INTO t1 VALUES (_ucs2 0x1EA8),(_ucs2 0x1EA9),(_ucs2 0x1EAA),(_ucs2 0x1EAB);
-INSERT INTO t1 VALUES (_ucs2 0x1EAC),(_ucs2 0x1EAD),(_ucs2 0x1EAE),(_ucs2 0x1EAF);
-INSERT INTO t1 VALUES (_ucs2 0x1EB0),(_ucs2 0x1EB1),(_ucs2 0x1EB2),(_ucs2 0x1EB3);
-INSERT INTO t1 VALUES (_ucs2 0x1EB4),(_ucs2 0x1EB5),(_ucs2 0x1EB6),(_ucs2 0x1EB7);
-INSERT INTO t1 VALUES (_ucs2 0x1EB8),(_ucs2 0x1EB9),(_ucs2 0x1EBA),(_ucs2 0x1EBB);
-INSERT INTO t1 VALUES (_ucs2 0x1EBC),(_ucs2 0x1EBD),(_ucs2 0x1EBE),(_ucs2 0x1EBF);
-INSERT INTO t1 VALUES (_ucs2 0x1EC0),(_ucs2 0x1EC1),(_ucs2 0x1EC2),(_ucs2 0x1EC3);
-INSERT INTO t1 VALUES (_ucs2 0x1EC4),(_ucs2 0x1EC5),(_ucs2 0x1EC6),(_ucs2 0x1EC7);
-INSERT INTO t1 VALUES (_ucs2 0x1EC8),(_ucs2 0x1EC9),(_ucs2 0x1ECA),(_ucs2 0x1ECB);
-INSERT INTO t1 VALUES (_ucs2 0x1ECC),(_ucs2 0x1ECD),(_ucs2 0x1ECE),(_ucs2 0x1ECF);
-INSERT INTO t1 VALUES (_ucs2 0x1ED0),(_ucs2 0x1ED1),(_ucs2 0x1ED2),(_ucs2 0x1ED3);
-INSERT INTO t1 VALUES (_ucs2 0x1ED4),(_ucs2 0x1ED5),(_ucs2 0x1ED6),(_ucs2 0x1ED7);
-INSERT INTO t1 VALUES (_ucs2 0x1ED8),(_ucs2 0x1ED9),(_ucs2 0x1EDA),(_ucs2 0x1EDB);
-INSERT INTO t1 VALUES (_ucs2 0x1EDC),(_ucs2 0x1EDD),(_ucs2 0x1EDE),(_ucs2 0x1EDF);
-INSERT INTO t1 VALUES (_ucs2 0x1EE0),(_ucs2 0x1EE1),(_ucs2 0x1EE2),(_ucs2 0x1EE3);
-INSERT INTO t1 VALUES (_ucs2 0x1EE4),(_ucs2 0x1EE5),(_ucs2 0x1EE6),(_ucs2 0x1EE7);
-INSERT INTO t1 VALUES (_ucs2 0x1EE8),(_ucs2 0x1EE9),(_ucs2 0x1EEA),(_ucs2 0x1EEB);
-INSERT INTO t1 VALUES (_ucs2 0x1EEC),(_ucs2 0x1EED),(_ucs2 0x1EEE),(_ucs2 0x1EEF);
-INSERT INTO t1 VALUES (_ucs2 0x1EF0),(_ucs2 0x1EF1);
-insert into t1 values ('AA'),('Aa'),('aa'),('aA');
-insert into t1 values ('AE'),('Ae'),('ae'),('aE');
-insert into t1 values ('CH'),('Ch'),('ch'),('cH');
-insert into t1 values ('DZ'),('Dz'),('dz'),('dZ');
-insert into t1 values ('DŽ'),('Dž'),('dž'),('dŽ');
-insert into t1 values ('IJ'),('Ij'),('ij'),('iJ');
-insert into t1 values ('LJ'),('Lj'),('lj'),('lJ');
-insert into t1 values ('LL'),('Ll'),('ll'),('lL');
-insert into t1 values ('NJ'),('Nj'),('nj'),('nJ');
-insert into t1 values ('OE'),('Oe'),('oe'),('oE');
-insert into t1 values ('SS'),('Ss'),('ss'),('sS');
-insert into t1 values ('RR'),('Rr'),('rr'),('rR');
-INSERT INTO t1 VALUES ('a ');
-SELECT c1, HEX(WEIGHT_STRING(c1 LEVEL 1)), HEX(WEIGHT_STRING(c1 LEVEL 2)) FROM t1 ORDER BY c1, BINARY c1;
-c1 HEX(WEIGHT_STRING(c1 LEVEL 1)) HEX(WEIGHT_STRING(c1 LEVEL 2))
-÷ 0552 0020
-× 0553 0020
-A 120F 0020
-a 120F 0020
-Ã 120F 00200032
-á 120F 00200032
-À 120F 00200035
-à 120F 00200035
-Ä‚ 120F 00200037
-ă 120F 00200037
-Ắ 120F 002000370032
-ắ 120F 002000370032
-Ằ 120F 002000370035
-ằ 120F 002000370035
-Ẵ 120F 00200037004E
-ẵ 120F 00200037004E
-Ẳ 120F 002000370064
-ẳ 120F 002000370064
-Â 120F 0020003C
-â 120F 0020003C
-Ấ 120F 0020003C0032
-ấ 120F 0020003C0032
-Ầ 120F 0020003C0035
-ầ 120F 0020003C0035
-Ẫ 120F 0020003C004E
-ẫ 120F 0020003C004E
-Ẩ 120F 0020003C0064
-ẩ 120F 0020003C0064
-Ç 120F 00200041
-ÇŽ 120F 00200041
-Ã… 120F 00200043
-Ã¥ 120F 00200043
-Ǻ 120F 002000430032
-Ç» 120F 002000430032
-Ä 120F 00200047
-ä 120F 00200047
-Çž 120F 00200047005B
-ÇŸ 120F 00200047005B
-Ã 120F 0020004E
-ã 120F 0020004E
-Ç  120F 00200052005B
-Ç¡ 120F 00200052005B
-Ä„ 120F 00200059
-Ä… 120F 00200059
-Ä€ 120F 0020005B
-Ä 120F 0020005B
-Ả 120F 00200064
-ả 120F 00200064
-Ạ 120F 00200070
-ạ 120F 00200070
-Ặ 120F 002000700037
-ặ 120F 002000700037
-Ậ 120F 00200070003C
-ậ 120F 00200070003C
-a 120F020A 00200020
-AA 120F120F 00200020
-Aa 120F120F 00200020
-aA 120F120F 00200020
-aa 120F120F 00200020
-AE 120F126B 00200020
-Ae 120F126B 00200020
-aE 120F126B 00200020
-ae 120F126B 00200020
-Æ 120F126B 002001590020
-æ 120F126B 002001590020
-Ǽ 120F126B 0020015900200032
-ǽ 120F126B 0020015900200032
-Ç¢ 120F126B 002001590020005B
-Ç£ 120F126B 002001590020005B
-B 1225 0020
-b 1225 0020
-Æ€ 122D 0020
-Æ 1235 0020
-Æ‚ 1239 0020
-ƃ 1239 0020
-C 123D 0020
-c 123D 0020
-Ć 123D 00200032
-ć 123D 00200032
-Ĉ 123D 0020003C
-ĉ 123D 0020003C
-ÄŠ 123D 00200052
-Ä‹ 123D 00200052
-Ç 123D 00200056
-ç 123D 00200056
-cH 123D12D3 00200020
-Č 123E 0020
-Ä 123E 0020
-Ƈ 1246 0020
-ƈ 1246 0020
-D 1250 0020
-d 1250 0020
-ÄŽ 1250 00200041
-Ä 1250 00200041
-Ä 1250 0020007D
-Ä‘ 1250 0020007D
-Ã 1250 00200159
-ð 1250 00200159
-DZ 125014AD 00200020
-Dz 125014AD 00200020
-dZ 125014AD 00200020
-dz 125014AD 00200020
-DZ 125014AD 00200020
-Dz 125014AD 00200020
-dz 125014AD 00200020
-Ç„ 125014AD 002000200041
-Ç… 125014AD 002000200041
-dž 125014AD 002000200041
-DŽ 125014AE 00200020
-Dž 125014AE 00200020
-dŽ 125014AE 00200020
-dž 125014AE 00200020
-Ɖ 1258 0020
-ÆŠ 125C 0020
-Æ‹ 1261 0020
-ƌ 1261 0020
-E 126B 0020
-e 126B 0020
-É 126B 00200032
-é 126B 00200032
-È 126B 00200035
-è 126B 00200035
-Ä” 126B 00200037
-Ä• 126B 00200037
-Ê 126B 0020003C
-ê 126B 0020003C
-Ế 126B 0020003C0032
-ế 126B 0020003C0032
-Ề 126B 0020003C0035
-á» 126B 0020003C0035
-Ễ 126B 0020003C004E
-á»… 126B 0020003C004E
-Ể 126B 0020003C0064
-ể 126B 0020003C0064
-Äš 126B 00200041
-Ä› 126B 00200041
-Ë 126B 00200047
-ë 126B 00200047
-Ẽ 126B 0020004E
-ẽ 126B 0020004E
-Ä– 126B 00200052
-Ä— 126B 00200052
-Ę 126B 00200059
-Ä™ 126B 00200059
-Ä’ 126B 0020005B
-Ä“ 126B 0020005B
-Ẻ 126B 00200064
-ẻ 126B 00200064
-Ẹ 126B 00200070
-ẹ 126B 00200070
-Ệ 126B 00200070003C
-ệ 126B 00200070003C
-ÆŽ 1276 0020
-Ç 1276 0020
-Æ 127B 0020
-Æ 1280 0020
-F 12A3 0020
-f 12A3 0020
-Æ‘ 12AA 0020
-Æ’ 12AA 0020
-G 12B0 0020
-g 12B0 0020
-Ç´ 12B0 00200032
-ǵ 12B0 00200032
-Äž 12B0 00200037
-ÄŸ 12B0 00200037
-Ĝ 12B0 0020003C
-Ä 12B0 0020003C
-Ǧ 12B0 00200041
-ǧ 12B0 00200041
-Ä  12B0 00200052
-Ä¡ 12B0 00200052
-Ä¢ 12B0 00200056
-Ä£ 12B0 00200056
-Ǥ 12BC 0020
-Ç¥ 12BC 0020
-Æ“ 12C1 0020
-Æ” 12CB 0020
-Æ¢ 12CF 0020
-Æ£ 12CF 0020
-H 12D3 0020
-h 12D3 0020
-Ĥ 12D3 0020003C
-Ä¥ 12D3 0020003C
-Ħ 12D3 0020007D
-ħ 12D3 0020007D
-CH 12D4 0020
-Ch 12D4 0020
-ch 12D4 0020
-Æ• 12DB 0020
-Ƕ 12DB 0020
-I 12EC 0020
-i 12EC 0020
-Ã 12EC 00200032
-í 12EC 00200032
-Ì 12EC 00200035
-ì 12EC 00200035
-Ĭ 12EC 00200037
-Ä­ 12EC 00200037
-ÃŽ 12EC 0020003C
-î 12EC 0020003C
-Ç 12EC 00200041
-Ç 12EC 00200041
-Ã 12EC 00200047
-ï 12EC 00200047
-Ĩ 12EC 0020004E
-Ä© 12EC 0020004E
-Ä° 12EC 00200052
-Ä® 12EC 00200059
-į 12EC 00200059
-Ī 12EC 0020005B
-Ä« 12EC 0020005B
-Ỉ 12EC 00200064
-ỉ 12EC 00200064
-Ị 12EC 00200070
-ị 12EC 00200070
-IJ 12EC1305 00200020
-Ij 12EC1305 00200020
-iJ 12EC1305 00200020
-ij 12EC1305 00200020
-IJ 12EC1305 00200020
-ij 12EC1305 00200020
-ı 12F0 0020
-Æ— 12FA 0020
-Æ– 1300 0020
-J 1305 0020
-j 1305 0020
-Ä´ 1305 0020003C
-ĵ 1305 0020003C
-Ç° 1305 00200041
-K 131E 0020
-k 131E 0020
-Ǩ 131E 00200041
-Ç© 131E 00200041
-Ķ 131E 00200056
-Ä· 131E 00200056
-Ƙ 1324 0020
-Æ™ 1324 0020
-L 1330 0020
-l 1330 0020
-Ĺ 1330 00200032
-ĺ 1330 00200032
-Ľ 1330 00200041
-ľ 1330 00200041
-Ä» 1330 00200056
-ļ 1330 00200056
-Å 1330 0020007D
-Å‚ 1330 0020007D
-Ä¿ 1330 00200159
-Å€ 1330 00200159
-LJ 13301305 00200020
-Lj 13301305 00200020
-lJ 13301305 00200020
-lj 13301305 00200020
-LJ 13301305 00200020
-Lj 13301305 00200020
-lj 13301305 00200020
-LL 13301330 00200020
-Ll 13301330 00200020
-lL 13301330 00200020
-ll 13301330 00200020
-Æš 133B 0020
-Æ› 1357 0020
-M 135F 0020
-m 135F 0020
-N 136D 0020
-n 136D 0020
-Ń 136D 00200032
-Å„ 136D 00200032
-Ǹ 136D 00200035
-ǹ 136D 00200035
-Ň 136D 00200041
-ň 136D 00200041
-Ñ 136D 0020004E
-ñ 136D 0020004E
-Å… 136D 00200056
-ņ 136D 00200056
-NJ 136D1305 00200020
-Nj 136D1305 00200020
-nJ 136D1305 00200020
-nj 136D1305 00200020
-ÇŠ 136D1305 00200020
-Ç‹ 136D1305 00200020
-nj 136D1305 00200020
-Æ 1378 0020
-Æž 137C 0020
-ÅŠ 138A 0020
-Å‹ 138A 0020
-O 138E 0020
-o 138E 0020
-Ó 138E 00200032
-ó 138E 00200032
-Ã’ 138E 00200035
-ò 138E 00200035
-ÅŽ 138E 00200037
-Å 138E 00200037
-Ô 138E 0020003C
-ô 138E 0020003C
-á» 138E 0020003C0032
-ố 138E 0020003C0032
-á»’ 138E 0020003C0035
-ồ 138E 0020003C0035
-á»– 138E 0020003C004E
-á»— 138E 0020003C004E
-á»” 138E 0020003C0064
-ổ 138E 0020003C0064
-Ç‘ 138E 00200041
-Ç’ 138E 00200041
-Ö 138E 00200047
-ö 138E 00200047
-Å 138E 0020004D
-Å‘ 138E 0020004D
-Õ 138E 0020004E
-õ 138E 0020004E
-Ø 138E 00200054
-ø 138E 00200054
-Ǿ 138E 002000540032
-Ç¿ 138E 002000540032
-Ǫ 138E 00200059
-Ç« 138E 00200059
-Ǭ 138E 00200059005B
-Ç­ 138E 00200059005B
-Ō 138E 0020005B
-Å 138E 0020005B
-Ỏ 138E 00200064
-á» 138E 00200064
-Æ  138E 00200068
-Æ¡ 138E 00200068
-Ớ 138E 002000680032
-á»› 138E 002000680032
-Ờ 138E 002000680035
-á» 138E 002000680035
-á»  138E 00200068004E
-ỡ 138E 00200068004E
-Ở 138E 002000680064
-ở 138E 002000680064
-Ợ 138E 002000680070
-ợ 138E 002000680070
-Ọ 138E 00200070
-á» 138E 00200070
-Ộ 138E 00200070003C
-á»™ 138E 00200070003C
-OE 138E126B 00200020
-Oe 138E126B 00200020
-oE 138E126B 00200020
-oe 138E126B 00200020
-Å’ 138E126B 002001590020
-Å“ 138E126B 002001590020
-Ɔ 139A 0020
-ÆŸ 13A5 0020
-P 13B3 0020
-p 13B3 0020
-Ƥ 13BC 0020
-Æ¥ 13BC 0020
-Q 13C8 0020
-q 13C8 0020
-ĸ 13D6 0020
-R 13DA 0020
-r 13DA 0020
-Å” 13DA 00200032
-Å• 13DA 00200032
-Å– 13DA 00200056
-Å— 13DA 00200056
-RR 13DA13DA 00200020
-Rr 13DA13DA 00200020
-rR 13DA13DA 00200020
-rr 13DA13DA 00200020
-Ř 13DB 0020
-Å™ 13DB 0020
-Ʀ 13DE 0020
-S 1410 0020
-s 1410 0020
-Åš 1410 00200032
-Å› 1410 00200032
-Ŝ 1410 0020003C
-Å 1410 0020003C
-Åž 1410 00200056
-ÅŸ 1410 00200056
-Å¿ 1410 0020015A
-SS 14101410 00200020
-Ss 14101410 00200020
-sS 14101410 00200020
-ss 14101410 00200020
-ß 14101410 002001590020
-Å  1411 0020
-Å¡ 1411 0020
-Æ© 1421 0020
-ƪ 1426 0020
-T 1433 0020
-t 1433 0020
-Ť 1433 00200041
-Å¥ 1433 00200041
-Å¢ 1433 00200056
-Å£ 1433 00200056
-ƾ 14331410 00200020
-Ŧ 1438 0020
-ŧ 1438 0020
-Æ« 143E 0020
-Ƭ 1442 0020
-Æ­ 1442 0020
-Æ® 1446 0020
-U 1453 0020
-u 1453 0020
-Ú 1453 00200032
-ú 1453 00200032
-Ù 1453 00200035
-ù 1453 00200035
-Ŭ 1453 00200037
-Å­ 1453 00200037
-Û 1453 0020003C
-û 1453 0020003C
-Ç“ 1453 00200041
-Ç” 1453 00200041
-Å® 1453 00200043
-ů 1453 00200043
-Ü 1453 00200047
-ü 1453 00200047
-Ç— 1453 002000470032
-ǘ 1453 002000470032
-Ç› 1453 002000470035
-ǜ 1453 002000470035
-Ç™ 1453 002000470041
-Çš 1453 002000470041
-Ç• 1453 00200047005B
-Ç– 1453 00200047005B
-Å° 1453 0020004D
-ű 1453 0020004D
-Ũ 1453 0020004E
-Å© 1453 0020004E
-Ų 1453 00200059
-ų 1453 00200059
-Ū 1453 0020005B
-Å« 1453 0020005B
-Ủ 1453 00200064
-ủ 1453 00200064
-Ư 1453 00200068
-Æ° 1453 00200068
-Ứ 1453 002000680032
-ứ 1453 002000680032
-Ừ 1453 002000680035
-ừ 1453 002000680035
-á»® 1453 00200068004E
-ữ 1453 00200068004E
-Ử 1453 002000680064
-á»­ 1453 002000680064
-á»° 1453 002000680070
-á»± 1453 002000680070
-Ụ 1453 00200070
-ụ 1453 00200070
-Ɯ 146D 0020
-Ʊ 1476 0020
-V 147B 0020
-v 147B 0020
-Ʋ 1482 0020
-W 148D 0020
-w 148D 0020
-Å´ 148D 0020003C
-ŵ 148D 0020003C
-X 1497 0020
-x 1497 0020
-Y 149C 0020
-y 149C 0020
-Ã 149C 00200032
-ý 149C 00200032
-Ŷ 149C 0020003C
-Å· 149C 0020003C
-ÿ 149C 00200047
-Ÿ 149C 00200047
-Ƴ 14A8 0020
-Æ´ 14A8 0020
-Z 14AD 0020
-z 14AD 0020
-Ź 14AD 00200032
-ź 14AD 00200032
-Å» 14AD 00200052
-ż 14AD 00200052
-Æ 14AD148D 00200020
-Ž 14AE 0020
-ž 14AE 0020
-Ƶ 14B2 0020
-ƶ 14B2 0020
-Æ· 14CA 0020
-Ç® 14CA 00200041
-ǯ 14CA 00200041
-Ƹ 14CF 0020
-ƹ 14CF 0020
-ƺ 14D4 0020
-Þ 14E0 0020
-þ 14E0 0020
-Æ¿ 14E6 0020
-Ç· 14E6 0020
-Æ» 14EF 0020
-Ƨ 14F6 0020
-ƨ 14F6 0020
-Ƽ 14FA 0020
-ƽ 14FA 0020
-Æ„ 14FE 0020
-Æ… 14FE 0020
-ʼn 150B136D 00200020
-Ç€ 1525 0020
-Ç 1529 0020
-Ç‚ 152D 0020
-ǃ 1531 0020
-SELECT c1, HEX(WEIGHT_STRING(c1 AS CHAR(3) LEVEL 1)), HEX(WEIGHT_STRING(c1 AS CHAR(3) LEVEL 2)) FROM t1 WHERE c1 BETWEEN 'a' AND 'aZ' ORDER BY c1, BINARY c1;
-c1 HEX(WEIGHT_STRING(c1 AS CHAR(3) LEVEL 1)) HEX(WEIGHT_STRING(c1 AS CHAR(3) LEVEL 2))
-A 120F02000200 002000200020
-a 120F02000200 002000200020
-Ã 120F02000200 002000320020
-á 120F02000200 002000320020
-À 120F02000200 002000350020
-à 120F02000200 002000350020
-Ä‚ 120F02000200 002000370020
-ă 120F02000200 002000370020
-Ắ 120F02000200 002000370032
-ắ 120F02000200 002000370032
-Ằ 120F02000200 002000370035
-ằ 120F02000200 002000370035
-Ẵ 120F02000200 00200037004E
-ẵ 120F02000200 00200037004E
-Ẳ 120F02000200 002000370064
-ẳ 120F02000200 002000370064
-Â 120F02000200 0020003C0020
-â 120F02000200 0020003C0020
-Ấ 120F02000200 0020003C0032
-ấ 120F02000200 0020003C0032
-Ầ 120F02000200 0020003C0035
-ầ 120F02000200 0020003C0035
-Ẫ 120F02000200 0020003C004E
-ẫ 120F02000200 0020003C004E
-Ẩ 120F02000200 0020003C0064
-ẩ 120F02000200 0020003C0064
-Ç 120F02000200 002000410020
-ÇŽ 120F02000200 002000410020
-Ã… 120F02000200 002000430020
-Ã¥ 120F02000200 002000430020
-Ǻ 120F02000200 002000430032
-Ç» 120F02000200 002000430032
-Ä 120F02000200 002000470020
-ä 120F02000200 002000470020
-Çž 120F02000200 00200047005B
-ÇŸ 120F02000200 00200047005B
-Ã 120F02000200 0020004E0020
-ã 120F02000200 0020004E0020
-Ç  120F02000200 00200052005B
-Ç¡ 120F02000200 00200052005B
-Ä„ 120F02000200 002000590020
-Ä… 120F02000200 002000590020
-Ä€ 120F02000200 0020005B0020
-Ä 120F02000200 0020005B0020
-Ả 120F02000200 002000640020
-ả 120F02000200 002000640020
-Ạ 120F02000200 002000700020
-ạ 120F02000200 002000700020
-Ặ 120F02000200 002000700037
-ặ 120F02000200 002000700037
-Ậ 120F02000200 00200070003C
-ậ 120F02000200 00200070003C
-a 120F020A0200 002000200020
-AA 120F120F0200 002000200020
-Aa 120F120F0200 002000200020
-aA 120F120F0200 002000200020
-aa 120F120F0200 002000200020
-AE 120F126B0200 002000200020
-Ae 120F126B0200 002000200020
-aE 120F126B0200 002000200020
-ae 120F126B0200 002000200020
-Æ 120F126B0200 002001590020
-æ 120F126B0200 002001590020
-Ǽ 120F126B0200 002001590020
-ǽ 120F126B0200 002001590020
-Ç¢ 120F126B0200 002001590020
-Ç£ 120F126B0200 002001590020
-DROP TABLE t1;
-SELECT 'a' = 'a ';
-'a' = 'a '
-0
-SELECT 'a' < 'á';
-'a' < 'á'
-1
-SELECT 'áa' < 'ab';
-'áa' < 'ab'
-1
-SELECT 'á' < 'ä';
-'á' < 'ä'
-1
-SELECT 'äa' < 'áb';
-'äa' < 'áb'
-1
-SELECT 'c' < 'Ä';
-'c' < 'Ä'
-1
-SELECT 'cb' < 'Äa';
-'cb' < 'Äa'
-1
-SELECT 'd' < 'Ä';
-'d' < 'Ä'
-1
-SELECT 'Äa' < 'db';
-'Äa' < 'db'
-1
-SELECT 'e' < 'é';
-'e' < 'é'
-1
-SELECT 'éa' < 'eb';
-'éa' < 'eb'
-1
-SELECT 'é' < 'ě';
-'é' < 'ě'
-1
-SELECT 'ěa' < 'éb';
-'ěa' < 'éb'
-1
-SELECT 'i' < 'í';
-'i' < 'í'
-1
-SELECT 'ía' < 'ib';
-'ía' < 'ib'
-1
-SELECT 'n' < 'ň';
-'n' < 'ň'
-1
-SELECT 'ňa' < 'nb';
-'ňa' < 'nb'
-1
-SELECT 'o' < 'ó';
-'o' < 'ó'
-1
-SELECT 'óa' < 'ob';
-'óa' < 'ob'
-1
-SELECT 'ó' < 'ö';
-'ó' < 'ö'
-1
-SELECT 'öa' < 'ób';
-'öa' < 'ób'
-1
-SELECT 'r' < 'Å™';
-'r' < 'Å™'
-1
-SELECT 'rb' < 'řa';
-'rb' < 'řa'
-1
-SELECT 's' < 'Å¡';
-'s' < 'Å¡'
-1
-SELECT 'sb' < 'Å¡a';
-'sb' < 'Å¡a'
-1
-SELECT 't' < 'Å¥';
-'t' < 'Å¥'
-1
-SELECT 'Å¥a' < 'tb';
-'Å¥a' < 'tb'
-1
-SELECT 'u' < 'ú';
-'u' < 'ú'
-1
-SELECT 'úa' < 'ub';
-'úa' < 'ub'
-1
-SELECT 'ú' < 'ů';
-'ú' < 'ů'
-1
-SELECT 'ůa' < 'úb';
-'ůa' < 'úb'
-1
-SELECT 'ů' < 'ü';
-'ů' < 'ü'
-1
-SELECT 'üa' < 'ůb';
-'üa' < 'ůb'
-1
-SELECT 'y' < 'ý';
-'y' < 'ý'
-1
-SELECT 'ýa' < 'yb';
-'ýa' < 'yb'
-1
-SELECT 'z' < 'ž';
-'z' < 'ž'
-1
-SELECT 'zb' < 'ža';
-'zb' < 'ža'
-1
-SELECT 'hž' < 'ch';
-'hž' < 'ch'
-1
-SELECT 'chž'< 'i';
-'chž'< 'i'
-1
-SELECT 'a' COLLATE utf8_czech_test_bad_w2;
-ERROR HY000: Unknown collation: 'utf8_czech_test_bad_w2'
diff --git a/mysql-test/r/ctype_like_range.result b/mysql-test/r/ctype_like_range.result
deleted file mode 100644
index d8e621fd056..00000000000
--- a/mysql-test/r/ctype_like_range.result
+++ /dev/null
@@ -1,4479 +0,0 @@
-SET NAMES utf8;
-DROP TABLE IF EXISTS t1;
-DROP VIEW IF EXISTS v1;
-CREATE TABLE t1 (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, a VARBINARY(32));
-INSERT INTO t1 (a) VALUES (''),('_'),('%'),('\_'),('\%'),('\\');
-INSERT INTO t1 (a) VALUES ('a'),('c');
-INSERT INTO t1 (a) VALUES ('a_'),('c_');
-INSERT INTO t1 (a) VALUES ('a%'),('c%');
-INSERT INTO t1 (a) VALUES ('aa'),('cc'),('ch');
-INSERT INTO t1 (a) VALUES ('aa_'),('cc_'),('ch_');
-INSERT INTO t1 (a) VALUES ('aa%'),('cc%'),('ch%');
-INSERT INTO t1 (a) VALUES ('aaa'),('ccc'),('cch');
-INSERT INTO t1 (a) VALUES ('aaa_'),('ccc_'),('cch_');
-INSERT INTO t1 (a) VALUES ('aaa%'),('ccc%'),('cch%');
-INSERT INTO t1 (a) VALUES ('aaaaaaaaaaaaaaaaaaaa');
-INSERT INTO t1 (a) VALUES ('caaaaaaaaaaaaaaaaaaa');
-CREATE VIEW v1 AS
-SELECT id, 'a' AS name, a AS val FROM t1
-UNION
-SELECT id, 'mn', HEX(LIKE_RANGE_MIN(a, 16)) AS min FROM t1
-UNION
-SELECT id, 'mx', HEX(LIKE_RANGE_MAX(a, 16)) AS max FROM t1
-UNION
-SELECT id, 'sp', REPEAT('-', 32) AS sep FROM t1
-ORDER BY id, name;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 00
-2 mx FF
-2 sp --------------------------------
-3 a %
-3 mn
-3 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-3 sp --------------------------------
-4 a \_
-4 mn 5F
-4 mx 5F
-4 sp --------------------------------
-5 a \%
-5 mn 25
-5 mx 25
-5 sp --------------------------------
-6 a \
-6 mn 5C
-6 mx 5C
-6 sp --------------------------------
-7 a a
-7 mn 61
-7 mx 61
-7 sp --------------------------------
-8 a c
-8 mn 63
-8 mx 63
-8 sp --------------------------------
-9 a a_
-9 mn 6100
-9 mx 61FF
-9 sp --------------------------------
-10 a c_
-10 mn 6300
-10 mx 63FF
-10 sp --------------------------------
-11 a a%
-11 mn 61
-11 mx 61FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-11 sp --------------------------------
-12 a c%
-12 mn 63
-12 mx 63FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-12 sp --------------------------------
-13 a aa
-13 mn 6161
-13 mx 6161
-13 sp --------------------------------
-14 a cc
-14 mn 6363
-14 mx 6363
-14 sp --------------------------------
-15 a ch
-15 mn 6368
-15 mx 6368
-15 sp --------------------------------
-16 a aa_
-16 mn 616100
-16 mx 6161FF
-16 sp --------------------------------
-17 a cc_
-17 mn 636300
-17 mx 6363FF
-17 sp --------------------------------
-18 a ch_
-18 mn 636800
-18 mx 6368FF
-18 sp --------------------------------
-19 a aa%
-19 mn 6161
-19 mx 6161FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 6363
-20 mx 6363FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 6368
-21 mx 6368FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 616161
-22 mx 616161
-22 sp --------------------------------
-23 a ccc
-23 mn 636363
-23 mx 636363
-23 sp --------------------------------
-24 a cch
-24 mn 636368
-24 mx 636368
-24 sp --------------------------------
-25 a aaa_
-25 mn 61616100
-25 mx 616161FF
-25 sp --------------------------------
-26 a ccc_
-26 mn 63636300
-26 mx 636363FF
-26 sp --------------------------------
-27 a cch_
-27 mn 63636800
-27 mx 636368FF
-27 sp --------------------------------
-28 a aaa%
-28 mn 616161
-28 mx 616161FFFFFFFFFFFFFFFFFFFFFFFFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 636363
-29 mx 636363FFFFFFFFFFFFFFFFFFFFFFFFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 636368
-30 mx 636368FFFFFFFFFFFFFFFFFFFFFFFFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 61616161616161616161616161616161
-31 mx 61616161616161616161616161616161
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 63616161616161616161616161616161
-32 mx 63616161616161616161616161616161
-32 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET latin1;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 00
-2 mx FF
-2 sp --------------------------------
-3 a %
-3 mn 00000000000000000000000000000000
-3 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-3 sp --------------------------------
-4 a \_
-4 mn 5F
-4 mx 5F
-4 sp --------------------------------
-5 a \%
-5 mn 25
-5 mx 25
-5 sp --------------------------------
-6 a \
-6 mn 5C
-6 mx 5C
-6 sp --------------------------------
-7 a a
-7 mn 61
-7 mx 61
-7 sp --------------------------------
-8 a c
-8 mn 63
-8 mx 63
-8 sp --------------------------------
-9 a a_
-9 mn 6100
-9 mx 61FF
-9 sp --------------------------------
-10 a c_
-10 mn 6300
-10 mx 63FF
-10 sp --------------------------------
-11 a a%
-11 mn 61000000000000000000000000000000
-11 mx 61FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-11 sp --------------------------------
-12 a c%
-12 mn 63000000000000000000000000000000
-12 mx 63FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-12 sp --------------------------------
-13 a aa
-13 mn 6161
-13 mx 6161
-13 sp --------------------------------
-14 a cc
-14 mn 6363
-14 mx 6363
-14 sp --------------------------------
-15 a ch
-15 mn 6368
-15 mx 6368
-15 sp --------------------------------
-16 a aa_
-16 mn 616100
-16 mx 6161FF
-16 sp --------------------------------
-17 a cc_
-17 mn 636300
-17 mx 6363FF
-17 sp --------------------------------
-18 a ch_
-18 mn 636800
-18 mx 6368FF
-18 sp --------------------------------
-19 a aa%
-19 mn 61610000000000000000000000000000
-19 mx 6161FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 63630000000000000000000000000000
-20 mx 6363FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 63680000000000000000000000000000
-21 mx 6368FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 616161
-22 mx 616161
-22 sp --------------------------------
-23 a ccc
-23 mn 636363
-23 mx 636363
-23 sp --------------------------------
-24 a cch
-24 mn 636368
-24 mx 636368
-24 sp --------------------------------
-25 a aaa_
-25 mn 61616100
-25 mx 616161FF
-25 sp --------------------------------
-26 a ccc_
-26 mn 63636300
-26 mx 636363FF
-26 sp --------------------------------
-27 a cch_
-27 mn 63636800
-27 mx 636368FF
-27 sp --------------------------------
-28 a aaa%
-28 mn 61616100000000000000000000000000
-28 mx 616161FFFFFFFFFFFFFFFFFFFFFFFFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 63636300000000000000000000000000
-29 mx 636363FFFFFFFFFFFFFFFFFFFFFFFFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 63636800000000000000000000000000
-30 mx 636368FFFFFFFFFFFFFFFFFFFFFFFFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 61616161616161616161616161616161
-31 mx 61616161616161616161616161616161
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 63616161616161616161616161616161
-32 mx 63616161616161616161616161616161
-32 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf8;
-INSERT INTO t1 (a) VALUES (_ucs2 0x0425),(_ucs2 0x045F);
-INSERT INTO t1 (a) VALUES (_ucs2 0x2525),(_ucs2 0x5F5F);
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 00000000000000000000000000000000
-2 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-2 sp --------------------------------
-3 a %
-3 mn 00000000000000000000000000000000
-3 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-3 sp --------------------------------
-4 a \_
-4 mn 5F
-4 mx 5F
-4 sp --------------------------------
-5 a \%
-5 mn 25
-5 mx 25
-5 sp --------------------------------
-6 a \
-6 mn 5C
-6 mx 5C
-6 sp --------------------------------
-7 a a
-7 mn 61
-7 mx 61
-7 sp --------------------------------
-8 a c
-8 mn 63
-8 mx 63
-8 sp --------------------------------
-9 a a_
-9 mn 61000000000000000000000000000000
-9 mx 61EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-9 sp --------------------------------
-10 a c_
-10 mn 63000000000000000000000000000000
-10 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-10 sp --------------------------------
-11 a a%
-11 mn 61000000000000000000000000000000
-11 mx 61EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-11 sp --------------------------------
-12 a c%
-12 mn 63000000000000000000000000000000
-12 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-12 sp --------------------------------
-13 a aa
-13 mn 6161
-13 mx 6161
-13 sp --------------------------------
-14 a cc
-14 mn 6363
-14 mx 6363
-14 sp --------------------------------
-15 a ch
-15 mn 6368
-15 mx 6368
-15 sp --------------------------------
-16 a aa_
-16 mn 61610000000000000000000000000000
-16 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-16 sp --------------------------------
-17 a cc_
-17 mn 63630000000000000000000000000000
-17 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-17 sp --------------------------------
-18 a ch_
-18 mn 63680000000000000000000000000000
-18 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-18 sp --------------------------------
-19 a aa%
-19 mn 61610000000000000000000000000000
-19 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-19 sp --------------------------------
-20 a cc%
-20 mn 63630000000000000000000000000000
-20 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-20 sp --------------------------------
-21 a ch%
-21 mn 63680000000000000000000000000000
-21 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-21 sp --------------------------------
-22 a aaa
-22 mn 616161
-22 mx 616161
-22 sp --------------------------------
-23 a ccc
-23 mn 636363
-23 mx 636363
-23 sp --------------------------------
-24 a cch
-24 mn 636368
-24 mx 636368
-24 sp --------------------------------
-25 a aaa_
-25 mn 61616100000000000000000000000000
-25 mx 616161EFBFBFEFBFBFEFBFBFEFBFBF20
-25 sp --------------------------------
-26 a ccc_
-26 mn 63636300000000000000000000000000
-26 mx 636363EFBFBFEFBFBFEFBFBFEFBFBF20
-26 sp --------------------------------
-27 a cch_
-27 mn 63636800000000000000000000000000
-27 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-27 sp --------------------------------
-28 a aaa%
-28 mn 61616100000000000000000000000000
-28 mx 616161EFBFBFEFBFBFEFBFBFEFBFBF20
-28 sp --------------------------------
-29 a ccc%
-29 mn 63636300000000000000000000000000
-29 mx 636363EFBFBFEFBFBFEFBFBFEFBFBF20
-29 sp --------------------------------
-30 a cch%
-30 mn 63636800000000000000000000000000
-30 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 6161616161
-31 mx 6161616161
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 6361616161
-32 mx 6361616161
-32 sp --------------------------------
-33 a Х
-33 mn D0A5
-33 mx D0A5
-33 sp --------------------------------
-34 a ÑŸ
-34 mn D19F
-34 mx D19F
-34 sp --------------------------------
-35 a ┥
-35 mn E294A5
-35 mx E294A5
-35 sp --------------------------------
-36 a 彟
-36 mn E5BD9F
-36 mx E5BD9F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf8 COLLATE utf8_unicode_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 09090909090909090909090909090909
-2 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-2 sp --------------------------------
-3 a %
-3 mn 09090909090909090909090909090909
-3 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-3 sp --------------------------------
-4 a \_
-4 mn 5F
-4 mx 5F
-4 sp --------------------------------
-5 a \%
-5 mn 25
-5 mx 25
-5 sp --------------------------------
-6 a \
-6 mn 5C
-6 mx 5C
-6 sp --------------------------------
-7 a a
-7 mn 61
-7 mx 61
-7 sp --------------------------------
-8 a c
-8 mn 63
-8 mx 63
-8 sp --------------------------------
-9 a a_
-9 mn 61090909090909090909090909090909
-9 mx 61EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-9 sp --------------------------------
-10 a c_
-10 mn 63090909090909090909090909090909
-10 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-10 sp --------------------------------
-11 a a%
-11 mn 61090909090909090909090909090909
-11 mx 61EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-11 sp --------------------------------
-12 a c%
-12 mn 63090909090909090909090909090909
-12 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-12 sp --------------------------------
-13 a aa
-13 mn 6161
-13 mx 6161
-13 sp --------------------------------
-14 a cc
-14 mn 6363
-14 mx 6363
-14 sp --------------------------------
-15 a ch
-15 mn 6368
-15 mx 6368
-15 sp --------------------------------
-16 a aa_
-16 mn 61610909090909090909090909090909
-16 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-16 sp --------------------------------
-17 a cc_
-17 mn 63630909090909090909090909090909
-17 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-17 sp --------------------------------
-18 a ch_
-18 mn 63680909090909090909090909090909
-18 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-18 sp --------------------------------
-19 a aa%
-19 mn 61610909090909090909090909090909
-19 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-19 sp --------------------------------
-20 a cc%
-20 mn 63630909090909090909090909090909
-20 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-20 sp --------------------------------
-21 a ch%
-21 mn 63680909090909090909090909090909
-21 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-21 sp --------------------------------
-22 a aaa
-22 mn 616161
-22 mx 616161
-22 sp --------------------------------
-23 a ccc
-23 mn 636363
-23 mx 636363
-23 sp --------------------------------
-24 a cch
-24 mn 636368
-24 mx 636368
-24 sp --------------------------------
-25 a aaa_
-25 mn 61616109090909090909090909090909
-25 mx 616161EFBFBFEFBFBFEFBFBFEFBFBF20
-25 sp --------------------------------
-26 a ccc_
-26 mn 63636309090909090909090909090909
-26 mx 636363EFBFBFEFBFBFEFBFBFEFBFBF20
-26 sp --------------------------------
-27 a cch_
-27 mn 63636809090909090909090909090909
-27 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-27 sp --------------------------------
-28 a aaa%
-28 mn 61616109090909090909090909090909
-28 mx 616161EFBFBFEFBFBFEFBFBFEFBFBF20
-28 sp --------------------------------
-29 a ccc%
-29 mn 63636309090909090909090909090909
-29 mx 636363EFBFBFEFBFBFEFBFBFEFBFBF20
-29 sp --------------------------------
-30 a cch%
-30 mn 63636809090909090909090909090909
-30 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 6161616161
-31 mx 6161616161
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 6361616161
-32 mx 6361616161
-32 sp --------------------------------
-33 a Х
-33 mn D0A5
-33 mx D0A5
-33 sp --------------------------------
-34 a ÑŸ
-34 mn D19F
-34 mx D19F
-34 sp --------------------------------
-35 a ┥
-35 mn E294A5
-35 mx E294A5
-35 sp --------------------------------
-36 a 彟
-36 mn E5BD9F
-36 mx E5BD9F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf8 COLLATE utf8_czech_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 09090909090909090909090909090909
-2 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-2 sp --------------------------------
-3 a %
-3 mn 09090909090909090909090909090909
-3 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-3 sp --------------------------------
-4 a \_
-4 mn 5F
-4 mx 5F
-4 sp --------------------------------
-5 a \%
-5 mn 25
-5 mx 25
-5 sp --------------------------------
-6 a \
-6 mn 5C
-6 mx 5C
-6 sp --------------------------------
-7 a a
-7 mn 61
-7 mx 61
-7 sp --------------------------------
-8 a c
-8 mn 63
-8 mx 63
-8 sp --------------------------------
-9 a a_
-9 mn 61090909090909090909090909090909
-9 mx 61EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-9 sp --------------------------------
-10 a c_
-10 mn 09090909090909090909090909090909
-10 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-10 sp --------------------------------
-11 a a%
-11 mn 61090909090909090909090909090909
-11 mx 61EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-11 sp --------------------------------
-12 a c%
-12 mn 09090909090909090909090909090909
-12 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-12 sp --------------------------------
-13 a aa
-13 mn 6161
-13 mx 6161
-13 sp --------------------------------
-14 a cc
-14 mn 6363
-14 mx 6363
-14 sp --------------------------------
-15 a ch
-15 mn 6368
-15 mx 6368
-15 sp --------------------------------
-16 a aa_
-16 mn 61610909090909090909090909090909
-16 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-16 sp --------------------------------
-17 a cc_
-17 mn 63090909090909090909090909090909
-17 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-17 sp --------------------------------
-18 a ch_
-18 mn 63680909090909090909090909090909
-18 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-18 sp --------------------------------
-19 a aa%
-19 mn 61610909090909090909090909090909
-19 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-19 sp --------------------------------
-20 a cc%
-20 mn 63090909090909090909090909090909
-20 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-20 sp --------------------------------
-21 a ch%
-21 mn 63680909090909090909090909090909
-21 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-21 sp --------------------------------
-22 a aaa
-22 mn 616161
-22 mx 616161
-22 sp --------------------------------
-23 a ccc
-23 mn 636363
-23 mx 636363
-23 sp --------------------------------
-24 a cch
-24 mn 636368
-24 mx 636368
-24 sp --------------------------------
-25 a aaa_
-25 mn 61616109090909090909090909090909
-25 mx 616161EFBFBFEFBFBFEFBFBFEFBFBF20
-25 sp --------------------------------
-26 a ccc_
-26 mn 63630909090909090909090909090909
-26 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-26 sp --------------------------------
-27 a cch_
-27 mn 63636809090909090909090909090909
-27 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-27 sp --------------------------------
-28 a aaa%
-28 mn 61616109090909090909090909090909
-28 mx 616161EFBFBFEFBFBFEFBFBFEFBFBF20
-28 sp --------------------------------
-29 a ccc%
-29 mn 63630909090909090909090909090909
-29 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-29 sp --------------------------------
-30 a cch%
-30 mn 63636809090909090909090909090909
-30 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 6161616161
-31 mx 6161616161
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 6361616161
-32 mx 6361616161
-32 sp --------------------------------
-33 a Х
-33 mn D0A5
-33 mx D0A5
-33 sp --------------------------------
-34 a ÑŸ
-34 mn D19F
-34 mx D19F
-34 sp --------------------------------
-35 a ┥
-35 mn E294A5
-35 mx E294A5
-35 sp --------------------------------
-36 a 彟
-36 mn E5BD9F
-36 mx E5BD9F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf8 COLLATE utf8_danish_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 09090909090909090909090909090909
-2 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-2 sp --------------------------------
-3 a %
-3 mn 09090909090909090909090909090909
-3 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-3 sp --------------------------------
-4 a \_
-4 mn 5F
-4 mx 5F
-4 sp --------------------------------
-5 a \%
-5 mn 25
-5 mx 25
-5 sp --------------------------------
-6 a \
-6 mn 5C
-6 mx 5C
-6 sp --------------------------------
-7 a a
-7 mn 61
-7 mx 61
-7 sp --------------------------------
-8 a c
-8 mn 63
-8 mx 63
-8 sp --------------------------------
-9 a a_
-9 mn 09090909090909090909090909090909
-9 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-9 sp --------------------------------
-10 a c_
-10 mn 63090909090909090909090909090909
-10 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-10 sp --------------------------------
-11 a a%
-11 mn 09090909090909090909090909090909
-11 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-11 sp --------------------------------
-12 a c%
-12 mn 63090909090909090909090909090909
-12 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-12 sp --------------------------------
-13 a aa
-13 mn 6161
-13 mx 6161
-13 sp --------------------------------
-14 a cc
-14 mn 6363
-14 mx 6363
-14 sp --------------------------------
-15 a ch
-15 mn 6368
-15 mx 6368
-15 sp --------------------------------
-16 a aa_
-16 mn 61610909090909090909090909090909
-16 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-16 sp --------------------------------
-17 a cc_
-17 mn 63630909090909090909090909090909
-17 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-17 sp --------------------------------
-18 a ch_
-18 mn 63680909090909090909090909090909
-18 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-18 sp --------------------------------
-19 a aa%
-19 mn 61610909090909090909090909090909
-19 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-19 sp --------------------------------
-20 a cc%
-20 mn 63630909090909090909090909090909
-20 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-20 sp --------------------------------
-21 a ch%
-21 mn 63680909090909090909090909090909
-21 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-21 sp --------------------------------
-22 a aaa
-22 mn 616161
-22 mx 616161
-22 sp --------------------------------
-23 a ccc
-23 mn 636363
-23 mx 636363
-23 sp --------------------------------
-24 a cch
-24 mn 636368
-24 mx 636368
-24 sp --------------------------------
-25 a aaa_
-25 mn 61610909090909090909090909090909
-25 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-25 sp --------------------------------
-26 a ccc_
-26 mn 63636309090909090909090909090909
-26 mx 636363EFBFBFEFBFBFEFBFBFEFBFBF20
-26 sp --------------------------------
-27 a cch_
-27 mn 63636809090909090909090909090909
-27 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-27 sp --------------------------------
-28 a aaa%
-28 mn 61610909090909090909090909090909
-28 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-28 sp --------------------------------
-29 a ccc%
-29 mn 63636309090909090909090909090909
-29 mx 636363EFBFBFEFBFBFEFBFBFEFBFBF20
-29 sp --------------------------------
-30 a cch%
-30 mn 63636809090909090909090909090909
-30 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 61616161090909090909090909090909
-31 mx 61616161EFBFBFEFBFBFEFBFBFEFBFBF
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 6361616161
-32 mx 6361616161
-32 sp --------------------------------
-33 a Х
-33 mn D0A5
-33 mx D0A5
-33 sp --------------------------------
-34 a ÑŸ
-34 mn D19F
-34 mx D19F
-34 sp --------------------------------
-35 a ┥
-35 mn E294A5
-35 mx E294A5
-35 sp --------------------------------
-36 a 彟
-36 mn E5BD9F
-36 mx E5BD9F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf8 COLLATE utf8_thai_520_w2;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 09
-2 mx EFBFBF
-2 sp --------------------------------
-3 a %
-3 mn 09090909090909090909090909090909
-3 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-3 sp --------------------------------
-4 a \_
-4 mn 5F
-4 mx 5F
-4 sp --------------------------------
-5 a \%
-5 mn 25
-5 mx 25
-5 sp --------------------------------
-6 a \
-6 mn 5C
-6 mx 5C
-6 sp --------------------------------
-7 a a
-7 mn 61
-7 mx 61
-7 sp --------------------------------
-8 a c
-8 mn 63
-8 mx 63
-8 sp --------------------------------
-9 a a_
-9 mn 6109
-9 mx 61EFBFBF
-9 sp --------------------------------
-10 a c_
-10 mn 6309
-10 mx 63EFBFBF
-10 sp --------------------------------
-11 a a%
-11 mn 61090909090909090909090909090909
-11 mx 61EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-11 sp --------------------------------
-12 a c%
-12 mn 63090909090909090909090909090909
-12 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-12 sp --------------------------------
-13 a aa
-13 mn 6161
-13 mx 6161
-13 sp --------------------------------
-14 a cc
-14 mn 6363
-14 mx 6363
-14 sp --------------------------------
-15 a ch
-15 mn 6368
-15 mx 6368
-15 sp --------------------------------
-16 a aa_
-16 mn 616109
-16 mx 6161EFBFBF
-16 sp --------------------------------
-17 a cc_
-17 mn 636309
-17 mx 6363EFBFBF
-17 sp --------------------------------
-18 a ch_
-18 mn 636809
-18 mx 6368EFBFBF
-18 sp --------------------------------
-19 a aa%
-19 mn 61610909090909090909090909090909
-19 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-19 sp --------------------------------
-20 a cc%
-20 mn 63630909090909090909090909090909
-20 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-20 sp --------------------------------
-21 a ch%
-21 mn 63680909090909090909090909090909
-21 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-21 sp --------------------------------
-22 a aaa
-22 mn 616161
-22 mx 616161
-22 sp --------------------------------
-23 a ccc
-23 mn 636363
-23 mx 636363
-23 sp --------------------------------
-24 a cch
-24 mn 636368
-24 mx 636368
-24 sp --------------------------------
-25 a aaa_
-25 mn 61616109
-25 mx 616161EFBFBF
-25 sp --------------------------------
-26 a ccc_
-26 mn 63636309
-26 mx 636363EFBFBF
-26 sp --------------------------------
-27 a cch_
-27 mn 63636809
-27 mx 636368EFBFBF
-27 sp --------------------------------
-28 a aaa%
-28 mn 61616109090909090909090909090909
-28 mx 616161EFBFBFEFBFBFEFBFBFEFBFBF20
-28 sp --------------------------------
-29 a ccc%
-29 mn 63636309090909090909090909090909
-29 mx 636363EFBFBFEFBFBFEFBFBFEFBFBF20
-29 sp --------------------------------
-30 a cch%
-30 mn 63636809090909090909090909090909
-30 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 6161616161
-31 mx 6161616161
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 6361616161
-32 mx 6361616161
-32 sp --------------------------------
-33 a Х
-33 mn D0A5
-33 mx D0A5
-33 sp --------------------------------
-34 a ÑŸ
-34 mn D19F
-34 mx D19F
-34 sp --------------------------------
-35 a ┥
-35 mn E294A5
-35 mx E294A5
-35 sp --------------------------------
-36 a 彟
-36 mn E5BD9F
-36 mx E5BD9F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf8mb4;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 00000000000000000000000000000000
-2 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-2 sp --------------------------------
-3 a %
-3 mn 00000000000000000000000000000000
-3 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-3 sp --------------------------------
-4 a \_
-4 mn 5F
-4 mx 5F
-4 sp --------------------------------
-5 a \%
-5 mn 25
-5 mx 25
-5 sp --------------------------------
-6 a \
-6 mn 5C
-6 mx 5C
-6 sp --------------------------------
-7 a a
-7 mn 61
-7 mx 61
-7 sp --------------------------------
-8 a c
-8 mn 63
-8 mx 63
-8 sp --------------------------------
-9 a a_
-9 mn 61000000000000000000000000000000
-9 mx 61EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-9 sp --------------------------------
-10 a c_
-10 mn 63000000000000000000000000000000
-10 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-10 sp --------------------------------
-11 a a%
-11 mn 61000000000000000000000000000000
-11 mx 61EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-11 sp --------------------------------
-12 a c%
-12 mn 63000000000000000000000000000000
-12 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-12 sp --------------------------------
-13 a aa
-13 mn 6161
-13 mx 6161
-13 sp --------------------------------
-14 a cc
-14 mn 6363
-14 mx 6363
-14 sp --------------------------------
-15 a ch
-15 mn 6368
-15 mx 6368
-15 sp --------------------------------
-16 a aa_
-16 mn 61610000000000000000000000000000
-16 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-16 sp --------------------------------
-17 a cc_
-17 mn 63630000000000000000000000000000
-17 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-17 sp --------------------------------
-18 a ch_
-18 mn 63680000000000000000000000000000
-18 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-18 sp --------------------------------
-19 a aa%
-19 mn 61610000000000000000000000000000
-19 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-19 sp --------------------------------
-20 a cc%
-20 mn 63630000000000000000000000000000
-20 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-20 sp --------------------------------
-21 a ch%
-21 mn 63680000000000000000000000000000
-21 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-21 sp --------------------------------
-22 a aaa
-22 mn 616161
-22 mx 616161
-22 sp --------------------------------
-23 a ccc
-23 mn 636363
-23 mx 636363
-23 sp --------------------------------
-24 a cch
-24 mn 636368
-24 mx 636368
-24 sp --------------------------------
-25 a aaa_
-25 mn 61616100000000000000000000000000
-25 mx 616161EFBFBFEFBFBFEFBFBFEFBFBF20
-25 sp --------------------------------
-26 a ccc_
-26 mn 63636300000000000000000000000000
-26 mx 636363EFBFBFEFBFBFEFBFBFEFBFBF20
-26 sp --------------------------------
-27 a cch_
-27 mn 63636800000000000000000000000000
-27 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-27 sp --------------------------------
-28 a aaa%
-28 mn 61616100000000000000000000000000
-28 mx 616161EFBFBFEFBFBFEFBFBFEFBFBF20
-28 sp --------------------------------
-29 a ccc%
-29 mn 63636300000000000000000000000000
-29 mx 636363EFBFBFEFBFBFEFBFBFEFBFBF20
-29 sp --------------------------------
-30 a cch%
-30 mn 63636800000000000000000000000000
-30 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 61616161
-31 mx 61616161
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 63616161
-32 mx 63616161
-32 sp --------------------------------
-33 a Х
-33 mn D0A5
-33 mx D0A5
-33 sp --------------------------------
-34 a ÑŸ
-34 mn D19F
-34 mx D19F
-34 sp --------------------------------
-35 a ┥
-35 mn E294A5
-35 mx E294A5
-35 sp --------------------------------
-36 a 彟
-36 mn E5BD9F
-36 mx E5BD9F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 09090909090909090909090909090909
-2 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-2 sp --------------------------------
-3 a %
-3 mn 09090909090909090909090909090909
-3 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-3 sp --------------------------------
-4 a \_
-4 mn 5F
-4 mx 5F
-4 sp --------------------------------
-5 a \%
-5 mn 25
-5 mx 25
-5 sp --------------------------------
-6 a \
-6 mn 5C
-6 mx 5C
-6 sp --------------------------------
-7 a a
-7 mn 61
-7 mx 61
-7 sp --------------------------------
-8 a c
-8 mn 63
-8 mx 63
-8 sp --------------------------------
-9 a a_
-9 mn 61090909090909090909090909090909
-9 mx 61EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-9 sp --------------------------------
-10 a c_
-10 mn 63090909090909090909090909090909
-10 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-10 sp --------------------------------
-11 a a%
-11 mn 61090909090909090909090909090909
-11 mx 61EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-11 sp --------------------------------
-12 a c%
-12 mn 63090909090909090909090909090909
-12 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-12 sp --------------------------------
-13 a aa
-13 mn 6161
-13 mx 6161
-13 sp --------------------------------
-14 a cc
-14 mn 6363
-14 mx 6363
-14 sp --------------------------------
-15 a ch
-15 mn 6368
-15 mx 6368
-15 sp --------------------------------
-16 a aa_
-16 mn 61610909090909090909090909090909
-16 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-16 sp --------------------------------
-17 a cc_
-17 mn 63630909090909090909090909090909
-17 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-17 sp --------------------------------
-18 a ch_
-18 mn 63680909090909090909090909090909
-18 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-18 sp --------------------------------
-19 a aa%
-19 mn 61610909090909090909090909090909
-19 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-19 sp --------------------------------
-20 a cc%
-20 mn 63630909090909090909090909090909
-20 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-20 sp --------------------------------
-21 a ch%
-21 mn 63680909090909090909090909090909
-21 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-21 sp --------------------------------
-22 a aaa
-22 mn 616161
-22 mx 616161
-22 sp --------------------------------
-23 a ccc
-23 mn 636363
-23 mx 636363
-23 sp --------------------------------
-24 a cch
-24 mn 636368
-24 mx 636368
-24 sp --------------------------------
-25 a aaa_
-25 mn 61616109090909090909090909090909
-25 mx 616161EFBFBFEFBFBFEFBFBFEFBFBF20
-25 sp --------------------------------
-26 a ccc_
-26 mn 63636309090909090909090909090909
-26 mx 636363EFBFBFEFBFBFEFBFBFEFBFBF20
-26 sp --------------------------------
-27 a cch_
-27 mn 63636809090909090909090909090909
-27 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-27 sp --------------------------------
-28 a aaa%
-28 mn 61616109090909090909090909090909
-28 mx 616161EFBFBFEFBFBFEFBFBFEFBFBF20
-28 sp --------------------------------
-29 a ccc%
-29 mn 63636309090909090909090909090909
-29 mx 636363EFBFBFEFBFBFEFBFBFEFBFBF20
-29 sp --------------------------------
-30 a cch%
-30 mn 63636809090909090909090909090909
-30 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 61616161
-31 mx 61616161
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 63616161
-32 mx 63616161
-32 sp --------------------------------
-33 a Х
-33 mn D0A5
-33 mx D0A5
-33 sp --------------------------------
-34 a ÑŸ
-34 mn D19F
-34 mx D19F
-34 sp --------------------------------
-35 a ┥
-35 mn E294A5
-35 mx E294A5
-35 sp --------------------------------
-36 a 彟
-36 mn E5BD9F
-36 mx E5BD9F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_czech_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 09090909090909090909090909090909
-2 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-2 sp --------------------------------
-3 a %
-3 mn 09090909090909090909090909090909
-3 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-3 sp --------------------------------
-4 a \_
-4 mn 5F
-4 mx 5F
-4 sp --------------------------------
-5 a \%
-5 mn 25
-5 mx 25
-5 sp --------------------------------
-6 a \
-6 mn 5C
-6 mx 5C
-6 sp --------------------------------
-7 a a
-7 mn 61
-7 mx 61
-7 sp --------------------------------
-8 a c
-8 mn 63
-8 mx 63
-8 sp --------------------------------
-9 a a_
-9 mn 61090909090909090909090909090909
-9 mx 61EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-9 sp --------------------------------
-10 a c_
-10 mn 09090909090909090909090909090909
-10 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-10 sp --------------------------------
-11 a a%
-11 mn 61090909090909090909090909090909
-11 mx 61EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-11 sp --------------------------------
-12 a c%
-12 mn 09090909090909090909090909090909
-12 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-12 sp --------------------------------
-13 a aa
-13 mn 6161
-13 mx 6161
-13 sp --------------------------------
-14 a cc
-14 mn 6363
-14 mx 6363
-14 sp --------------------------------
-15 a ch
-15 mn 6368
-15 mx 6368
-15 sp --------------------------------
-16 a aa_
-16 mn 61610909090909090909090909090909
-16 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-16 sp --------------------------------
-17 a cc_
-17 mn 63090909090909090909090909090909
-17 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-17 sp --------------------------------
-18 a ch_
-18 mn 63680909090909090909090909090909
-18 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-18 sp --------------------------------
-19 a aa%
-19 mn 61610909090909090909090909090909
-19 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-19 sp --------------------------------
-20 a cc%
-20 mn 63090909090909090909090909090909
-20 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-20 sp --------------------------------
-21 a ch%
-21 mn 63680909090909090909090909090909
-21 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-21 sp --------------------------------
-22 a aaa
-22 mn 616161
-22 mx 616161
-22 sp --------------------------------
-23 a ccc
-23 mn 636363
-23 mx 636363
-23 sp --------------------------------
-24 a cch
-24 mn 636368
-24 mx 636368
-24 sp --------------------------------
-25 a aaa_
-25 mn 61616109090909090909090909090909
-25 mx 616161EFBFBFEFBFBFEFBFBFEFBFBF20
-25 sp --------------------------------
-26 a ccc_
-26 mn 63630909090909090909090909090909
-26 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-26 sp --------------------------------
-27 a cch_
-27 mn 63636809090909090909090909090909
-27 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-27 sp --------------------------------
-28 a aaa%
-28 mn 61616109090909090909090909090909
-28 mx 616161EFBFBFEFBFBFEFBFBFEFBFBF20
-28 sp --------------------------------
-29 a ccc%
-29 mn 63630909090909090909090909090909
-29 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-29 sp --------------------------------
-30 a cch%
-30 mn 63636809090909090909090909090909
-30 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 61616161
-31 mx 61616161
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 63616161
-32 mx 63616161
-32 sp --------------------------------
-33 a Х
-33 mn D0A5
-33 mx D0A5
-33 sp --------------------------------
-34 a ÑŸ
-34 mn D19F
-34 mx D19F
-34 sp --------------------------------
-35 a ┥
-35 mn E294A5
-35 mx E294A5
-35 sp --------------------------------
-36 a 彟
-36 mn E5BD9F
-36 mx E5BD9F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_danish_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 09090909090909090909090909090909
-2 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-2 sp --------------------------------
-3 a %
-3 mn 09090909090909090909090909090909
-3 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-3 sp --------------------------------
-4 a \_
-4 mn 5F
-4 mx 5F
-4 sp --------------------------------
-5 a \%
-5 mn 25
-5 mx 25
-5 sp --------------------------------
-6 a \
-6 mn 5C
-6 mx 5C
-6 sp --------------------------------
-7 a a
-7 mn 61
-7 mx 61
-7 sp --------------------------------
-8 a c
-8 mn 63
-8 mx 63
-8 sp --------------------------------
-9 a a_
-9 mn 09090909090909090909090909090909
-9 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-9 sp --------------------------------
-10 a c_
-10 mn 63090909090909090909090909090909
-10 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-10 sp --------------------------------
-11 a a%
-11 mn 09090909090909090909090909090909
-11 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-11 sp --------------------------------
-12 a c%
-12 mn 63090909090909090909090909090909
-12 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-12 sp --------------------------------
-13 a aa
-13 mn 6161
-13 mx 6161
-13 sp --------------------------------
-14 a cc
-14 mn 6363
-14 mx 6363
-14 sp --------------------------------
-15 a ch
-15 mn 6368
-15 mx 6368
-15 sp --------------------------------
-16 a aa_
-16 mn 61610909090909090909090909090909
-16 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-16 sp --------------------------------
-17 a cc_
-17 mn 63630909090909090909090909090909
-17 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-17 sp --------------------------------
-18 a ch_
-18 mn 63680909090909090909090909090909
-18 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-18 sp --------------------------------
-19 a aa%
-19 mn 61610909090909090909090909090909
-19 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-19 sp --------------------------------
-20 a cc%
-20 mn 63630909090909090909090909090909
-20 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-20 sp --------------------------------
-21 a ch%
-21 mn 63680909090909090909090909090909
-21 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-21 sp --------------------------------
-22 a aaa
-22 mn 616161
-22 mx 616161
-22 sp --------------------------------
-23 a ccc
-23 mn 636363
-23 mx 636363
-23 sp --------------------------------
-24 a cch
-24 mn 636368
-24 mx 636368
-24 sp --------------------------------
-25 a aaa_
-25 mn 61610909090909090909090909090909
-25 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-25 sp --------------------------------
-26 a ccc_
-26 mn 63636309090909090909090909090909
-26 mx 636363EFBFBFEFBFBFEFBFBFEFBFBF20
-26 sp --------------------------------
-27 a cch_
-27 mn 63636809090909090909090909090909
-27 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-27 sp --------------------------------
-28 a aaa%
-28 mn 61610909090909090909090909090909
-28 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-28 sp --------------------------------
-29 a ccc%
-29 mn 63636309090909090909090909090909
-29 mx 636363EFBFBFEFBFBFEFBFBFEFBFBF20
-29 sp --------------------------------
-30 a cch%
-30 mn 63636809090909090909090909090909
-30 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 61616161
-31 mx 61616161
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 63616109090909090909090909090909
-32 mx 636161EFBFBFEFBFBFEFBFBFEFBFBF20
-32 sp --------------------------------
-33 a Х
-33 mn D0A5
-33 mx D0A5
-33 sp --------------------------------
-34 a ÑŸ
-34 mn D19F
-34 mx D19F
-34 sp --------------------------------
-35 a ┥
-35 mn E294A5
-35 mx E294A5
-35 sp --------------------------------
-36 a 彟
-36 mn E5BD9F
-36 mx E5BD9F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_thai_520_w2;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 09
-2 mx EFBFBF
-2 sp --------------------------------
-3 a %
-3 mn 09090909090909090909090909090909
-3 mx EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF20
-3 sp --------------------------------
-4 a \_
-4 mn 5F
-4 mx 5F
-4 sp --------------------------------
-5 a \%
-5 mn 25
-5 mx 25
-5 sp --------------------------------
-6 a \
-6 mn 5C
-6 mx 5C
-6 sp --------------------------------
-7 a a
-7 mn 61
-7 mx 61
-7 sp --------------------------------
-8 a c
-8 mn 63
-8 mx 63
-8 sp --------------------------------
-9 a a_
-9 mn 6109
-9 mx 61EFBFBF
-9 sp --------------------------------
-10 a c_
-10 mn 6309
-10 mx 63EFBFBF
-10 sp --------------------------------
-11 a a%
-11 mn 61090909090909090909090909090909
-11 mx 61EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-11 sp --------------------------------
-12 a c%
-12 mn 63090909090909090909090909090909
-12 mx 63EFBFBFEFBFBFEFBFBFEFBFBFEFBFBF
-12 sp --------------------------------
-13 a aa
-13 mn 6161
-13 mx 6161
-13 sp --------------------------------
-14 a cc
-14 mn 6363
-14 mx 6363
-14 sp --------------------------------
-15 a ch
-15 mn 6368
-15 mx 6368
-15 sp --------------------------------
-16 a aa_
-16 mn 616109
-16 mx 6161EFBFBF
-16 sp --------------------------------
-17 a cc_
-17 mn 636309
-17 mx 6363EFBFBF
-17 sp --------------------------------
-18 a ch_
-18 mn 636809
-18 mx 6368EFBFBF
-18 sp --------------------------------
-19 a aa%
-19 mn 61610909090909090909090909090909
-19 mx 6161EFBFBFEFBFBFEFBFBFEFBFBF2020
-19 sp --------------------------------
-20 a cc%
-20 mn 63630909090909090909090909090909
-20 mx 6363EFBFBFEFBFBFEFBFBFEFBFBF2020
-20 sp --------------------------------
-21 a ch%
-21 mn 63680909090909090909090909090909
-21 mx 6368EFBFBFEFBFBFEFBFBFEFBFBF2020
-21 sp --------------------------------
-22 a aaa
-22 mn 616161
-22 mx 616161
-22 sp --------------------------------
-23 a ccc
-23 mn 636363
-23 mx 636363
-23 sp --------------------------------
-24 a cch
-24 mn 636368
-24 mx 636368
-24 sp --------------------------------
-25 a aaa_
-25 mn 61616109
-25 mx 616161EFBFBF
-25 sp --------------------------------
-26 a ccc_
-26 mn 63636309
-26 mx 636363EFBFBF
-26 sp --------------------------------
-27 a cch_
-27 mn 63636809
-27 mx 636368EFBFBF
-27 sp --------------------------------
-28 a aaa%
-28 mn 61616109090909090909090909090909
-28 mx 616161EFBFBFEFBFBFEFBFBFEFBFBF20
-28 sp --------------------------------
-29 a ccc%
-29 mn 63636309090909090909090909090909
-29 mx 636363EFBFBFEFBFBFEFBFBFEFBFBF20
-29 sp --------------------------------
-30 a cch%
-30 mn 63636809090909090909090909090909
-30 mx 636368EFBFBFEFBFBFEFBFBFEFBFBF20
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 61616161
-31 mx 61616161
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 63616161
-32 mx 63616161
-32 sp --------------------------------
-33 a Х
-33 mn D0A5
-33 mx D0A5
-33 sp --------------------------------
-34 a ÑŸ
-34 mn D19F
-34 mx D19F
-34 sp --------------------------------
-35 a ┥
-35 mn E294A5
-35 mx E294A5
-35 sp --------------------------------
-36 a 彟
-36 mn E5BD9F
-36 mx E5BD9F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 09090909090909090909090909090909
-2 mx F48FBFBFF48FBFBFF48FBFBFF48FBFBF
-2 sp --------------------------------
-3 a %
-3 mn 09090909090909090909090909090909
-3 mx F48FBFBFF48FBFBFF48FBFBFF48FBFBF
-3 sp --------------------------------
-4 a \_
-4 mn 5F
-4 mx 5F
-4 sp --------------------------------
-5 a \%
-5 mn 25
-5 mx 25
-5 sp --------------------------------
-6 a \
-6 mn 5C
-6 mx 5C
-6 sp --------------------------------
-7 a a
-7 mn 61
-7 mx 61
-7 sp --------------------------------
-8 a c
-8 mn 63
-8 mx 63
-8 sp --------------------------------
-9 a a_
-9 mn 61090909090909090909090909090909
-9 mx 61F48FBFBFF48FBFBFF48FBFBF202020
-9 sp --------------------------------
-10 a c_
-10 mn 63090909090909090909090909090909
-10 mx 63F48FBFBFF48FBFBFF48FBFBF202020
-10 sp --------------------------------
-11 a a%
-11 mn 61090909090909090909090909090909
-11 mx 61F48FBFBFF48FBFBFF48FBFBF202020
-11 sp --------------------------------
-12 a c%
-12 mn 63090909090909090909090909090909
-12 mx 63F48FBFBFF48FBFBFF48FBFBF202020
-12 sp --------------------------------
-13 a aa
-13 mn 6161
-13 mx 6161
-13 sp --------------------------------
-14 a cc
-14 mn 6363
-14 mx 6363
-14 sp --------------------------------
-15 a ch
-15 mn 6368
-15 mx 6368
-15 sp --------------------------------
-16 a aa_
-16 mn 61610909090909090909090909090909
-16 mx 6161F48FBFBFF48FBFBFF48FBFBF2020
-16 sp --------------------------------
-17 a cc_
-17 mn 63630909090909090909090909090909
-17 mx 6363F48FBFBFF48FBFBFF48FBFBF2020
-17 sp --------------------------------
-18 a ch_
-18 mn 63680909090909090909090909090909
-18 mx 6368F48FBFBFF48FBFBFF48FBFBF2020
-18 sp --------------------------------
-19 a aa%
-19 mn 61610909090909090909090909090909
-19 mx 6161F48FBFBFF48FBFBFF48FBFBF2020
-19 sp --------------------------------
-20 a cc%
-20 mn 63630909090909090909090909090909
-20 mx 6363F48FBFBFF48FBFBFF48FBFBF2020
-20 sp --------------------------------
-21 a ch%
-21 mn 63680909090909090909090909090909
-21 mx 6368F48FBFBFF48FBFBFF48FBFBF2020
-21 sp --------------------------------
-22 a aaa
-22 mn 616161
-22 mx 616161
-22 sp --------------------------------
-23 a ccc
-23 mn 636363
-23 mx 636363
-23 sp --------------------------------
-24 a cch
-24 mn 636368
-24 mx 636368
-24 sp --------------------------------
-25 a aaa_
-25 mn 61616109090909090909090909090909
-25 mx 616161F48FBFBFF48FBFBFF48FBFBF20
-25 sp --------------------------------
-26 a ccc_
-26 mn 63636309090909090909090909090909
-26 mx 636363F48FBFBFF48FBFBFF48FBFBF20
-26 sp --------------------------------
-27 a cch_
-27 mn 63636809090909090909090909090909
-27 mx 636368F48FBFBFF48FBFBFF48FBFBF20
-27 sp --------------------------------
-28 a aaa%
-28 mn 61616109090909090909090909090909
-28 mx 616161F48FBFBFF48FBFBFF48FBFBF20
-28 sp --------------------------------
-29 a ccc%
-29 mn 63636309090909090909090909090909
-29 mx 636363F48FBFBFF48FBFBFF48FBFBF20
-29 sp --------------------------------
-30 a cch%
-30 mn 63636809090909090909090909090909
-30 mx 636368F48FBFBFF48FBFBFF48FBFBF20
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 61616161
-31 mx 61616161
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 63616161
-32 mx 63616161
-32 sp --------------------------------
-33 a Х
-33 mn D0A5
-33 mx D0A5
-33 sp --------------------------------
-34 a ÑŸ
-34 mn D19F
-34 mx D19F
-34 sp --------------------------------
-35 a ┥
-35 mn E294A5
-35 mx E294A5
-35 sp --------------------------------
-36 a 彟
-36 mn E5BD9F
-36 mx E5BD9F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET ucs2;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 0000
-2 mx FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00000000000000000000000000000000
-3 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-3 sp --------------------------------
-4 a \_
-4 mn 005F
-4 mx 005F
-4 sp --------------------------------
-5 a \%
-5 mn 0025
-5 mx 0025
-5 sp --------------------------------
-6 a \
-6 mn 005C
-6 mx 005C
-6 sp --------------------------------
-7 a a
-7 mn 0061
-7 mx 0061
-7 sp --------------------------------
-8 a c
-8 mn 0063
-8 mx 0063
-8 sp --------------------------------
-9 a a_
-9 mn 00610000
-9 mx 0061FFFF
-9 sp --------------------------------
-10 a c_
-10 mn 00630000
-10 mx 0063FFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00610000000000000000000000000000
-11 mx 0061FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00630000000000000000000000000000
-12 mx 0063FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-12 sp --------------------------------
-13 a aa
-13 mn 00610061
-13 mx 00610061
-13 sp --------------------------------
-14 a cc
-14 mn 00630063
-14 mx 00630063
-14 sp --------------------------------
-15 a ch
-15 mn 00630068
-15 mx 00630068
-15 sp --------------------------------
-16 a aa_
-16 mn 006100610000
-16 mx 00610061FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 006300630000
-17 mx 00630063FFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 006300680000
-18 mx 00630068FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00610061000000000000000000000000
-19 mx 00610061FFFFFFFFFFFFFFFFFFFFFFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00630063000000000000000000000000
-20 mx 00630063FFFFFFFFFFFFFFFFFFFFFFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00630068000000000000000000000000
-21 mx 00630068FFFFFFFFFFFFFFFFFFFFFFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 006100610061
-22 mx 006100610061
-22 sp --------------------------------
-23 a ccc
-23 mn 006300630063
-23 mx 006300630063
-23 sp --------------------------------
-24 a cch
-24 mn 006300630068
-24 mx 006300630068
-24 sp --------------------------------
-25 a aaa_
-25 mn 0061006100610000
-25 mx 006100610061FFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 0063006300630000
-26 mx 006300630063FFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 0063006300680000
-27 mx 006300630068FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00610061006100000000000000000000
-28 mx 006100610061FFFFFFFFFFFFFFFFFFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00630063006300000000000000000000
-29 mx 006300630063FFFFFFFFFFFFFFFFFFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00630063006800000000000000000000
-30 mx 006300630068FFFFFFFFFFFFFFFFFFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 00610061006100610061006100610061
-31 mx 00610061006100610061006100610061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 00630061006100610061006100610061
-32 mx 00630061006100610061006100610061
-32 sp --------------------------------
-33 a Х
-33 mn 0425
-33 mx 0425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 045F
-34 mx 045F
-34 sp --------------------------------
-35 a ┥
-35 mn 2525
-35 mx 2525
-35 sp --------------------------------
-36 a 彟
-36 mn 5F5F
-36 mx 5F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET ucs2 COLLATE ucs2_unicode_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 0009
-2 mx FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00090009000900090009000900090009
-3 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-3 sp --------------------------------
-4 a \_
-4 mn 005F
-4 mx 005F
-4 sp --------------------------------
-5 a \%
-5 mn 0025
-5 mx 0025
-5 sp --------------------------------
-6 a \
-6 mn 005C
-6 mx 005C
-6 sp --------------------------------
-7 a a
-7 mn 0061
-7 mx 0061
-7 sp --------------------------------
-8 a c
-8 mn 0063
-8 mx 0063
-8 sp --------------------------------
-9 a a_
-9 mn 00610009
-9 mx 0061FFFF
-9 sp --------------------------------
-10 a c_
-10 mn 00630009
-10 mx 0063FFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00610009000900090009000900090009
-11 mx 0061FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00630009000900090009000900090009
-12 mx 0063FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-12 sp --------------------------------
-13 a aa
-13 mn 00610061
-13 mx 00610061
-13 sp --------------------------------
-14 a cc
-14 mn 00630063
-14 mx 00630063
-14 sp --------------------------------
-15 a ch
-15 mn 00630068
-15 mx 00630068
-15 sp --------------------------------
-16 a aa_
-16 mn 006100610009
-16 mx 00610061FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 006300630009
-17 mx 00630063FFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 006300680009
-18 mx 00630068FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00610061000900090009000900090009
-19 mx 00610061FFFFFFFFFFFFFFFFFFFFFFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00630063000900090009000900090009
-20 mx 00630063FFFFFFFFFFFFFFFFFFFFFFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00630068000900090009000900090009
-21 mx 00630068FFFFFFFFFFFFFFFFFFFFFFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 006100610061
-22 mx 006100610061
-22 sp --------------------------------
-23 a ccc
-23 mn 006300630063
-23 mx 006300630063
-23 sp --------------------------------
-24 a cch
-24 mn 006300630068
-24 mx 006300630068
-24 sp --------------------------------
-25 a aaa_
-25 mn 0061006100610009
-25 mx 006100610061FFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 0063006300630009
-26 mx 006300630063FFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 0063006300680009
-27 mx 006300630068FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00610061006100090009000900090009
-28 mx 006100610061FFFFFFFFFFFFFFFFFFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00630063006300090009000900090009
-29 mx 006300630063FFFFFFFFFFFFFFFFFFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00630063006800090009000900090009
-30 mx 006300630068FFFFFFFFFFFFFFFFFFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 00610061006100610061006100610061
-31 mx 00610061006100610061006100610061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 00630061006100610061006100610061
-32 mx 00630061006100610061006100610061
-32 sp --------------------------------
-33 a Х
-33 mn 0425
-33 mx 0425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 045F
-34 mx 045F
-34 sp --------------------------------
-35 a ┥
-35 mn 2525
-35 mx 2525
-35 sp --------------------------------
-36 a 彟
-36 mn 5F5F
-36 mx 5F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET ucs2 COLLATE ucs2_czech_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 0009
-2 mx FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00090009000900090009000900090009
-3 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-3 sp --------------------------------
-4 a \_
-4 mn 005F
-4 mx 005F
-4 sp --------------------------------
-5 a \%
-5 mn 0025
-5 mx 0025
-5 sp --------------------------------
-6 a \
-6 mn 005C
-6 mx 005C
-6 sp --------------------------------
-7 a a
-7 mn 0061
-7 mx 0061
-7 sp --------------------------------
-8 a c
-8 mn 0063
-8 mx 0063
-8 sp --------------------------------
-9 a a_
-9 mn 00610009
-9 mx 0061FFFF
-9 sp --------------------------------
-10 a c_
-10 mn 00090009000900090009000900090009
-10 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00610009000900090009000900090009
-11 mx 0061FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00090009000900090009000900090009
-12 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-12 sp --------------------------------
-13 a aa
-13 mn 00610061
-13 mx 00610061
-13 sp --------------------------------
-14 a cc
-14 mn 00630063
-14 mx 00630063
-14 sp --------------------------------
-15 a ch
-15 mn 00630068
-15 mx 00630068
-15 sp --------------------------------
-16 a aa_
-16 mn 006100610009
-16 mx 00610061FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 00630009000900090009000900090009
-17 mx 0063FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 006300680009
-18 mx 00630068FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00610061000900090009000900090009
-19 mx 00610061FFFFFFFFFFFFFFFFFFFFFFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00630009000900090009000900090009
-20 mx 0063FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00630068000900090009000900090009
-21 mx 00630068FFFFFFFFFFFFFFFFFFFFFFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 006100610061
-22 mx 006100610061
-22 sp --------------------------------
-23 a ccc
-23 mn 006300630063
-23 mx 006300630063
-23 sp --------------------------------
-24 a cch
-24 mn 006300630068
-24 mx 006300630068
-24 sp --------------------------------
-25 a aaa_
-25 mn 0061006100610009
-25 mx 006100610061FFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 00630063000900090009000900090009
-26 mx 00630063FFFFFFFFFFFFFFFFFFFFFFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 0063006300680009
-27 mx 006300630068FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00610061006100090009000900090009
-28 mx 006100610061FFFFFFFFFFFFFFFFFFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00630063000900090009000900090009
-29 mx 00630063FFFFFFFFFFFFFFFFFFFFFFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00630063006800090009000900090009
-30 mx 006300630068FFFFFFFFFFFFFFFFFFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 00610061006100610061006100610061
-31 mx 00610061006100610061006100610061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 00630061006100610061006100610061
-32 mx 00630061006100610061006100610061
-32 sp --------------------------------
-33 a Х
-33 mn 0425
-33 mx 0425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 045F
-34 mx 045F
-34 sp --------------------------------
-35 a ┥
-35 mn 2525
-35 mx 2525
-35 sp --------------------------------
-36 a 彟
-36 mn 5F5F
-36 mx 5F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET ucs2 COLLATE ucs2_danish_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 0009
-2 mx FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00090009000900090009000900090009
-3 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-3 sp --------------------------------
-4 a \_
-4 mn 005F
-4 mx 005F
-4 sp --------------------------------
-5 a \%
-5 mn 0025
-5 mx 0025
-5 sp --------------------------------
-6 a \
-6 mn 005C
-6 mx 005C
-6 sp --------------------------------
-7 a a
-7 mn 0061
-7 mx 0061
-7 sp --------------------------------
-8 a c
-8 mn 0063
-8 mx 0063
-8 sp --------------------------------
-9 a a_
-9 mn 00090009000900090009000900090009
-9 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-9 sp --------------------------------
-10 a c_
-10 mn 00630009
-10 mx 0063FFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00090009000900090009000900090009
-11 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00630009000900090009000900090009
-12 mx 0063FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-12 sp --------------------------------
-13 a aa
-13 mn 00610061
-13 mx 00610061
-13 sp --------------------------------
-14 a cc
-14 mn 00630063
-14 mx 00630063
-14 sp --------------------------------
-15 a ch
-15 mn 00630068
-15 mx 00630068
-15 sp --------------------------------
-16 a aa_
-16 mn 006100610009
-16 mx 00610061FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 006300630009
-17 mx 00630063FFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 006300680009
-18 mx 00630068FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00610061000900090009000900090009
-19 mx 00610061FFFFFFFFFFFFFFFFFFFFFFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00630063000900090009000900090009
-20 mx 00630063FFFFFFFFFFFFFFFFFFFFFFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00630068000900090009000900090009
-21 mx 00630068FFFFFFFFFFFFFFFFFFFFFFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 006100610061
-22 mx 006100610061
-22 sp --------------------------------
-23 a ccc
-23 mn 006300630063
-23 mx 006300630063
-23 sp --------------------------------
-24 a cch
-24 mn 006300630068
-24 mx 006300630068
-24 sp --------------------------------
-25 a aaa_
-25 mn 00610061000900090009000900090009
-25 mx 00610061FFFFFFFFFFFFFFFFFFFFFFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 0063006300630009
-26 mx 006300630063FFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 0063006300680009
-27 mx 006300630068FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00610061000900090009000900090009
-28 mx 00610061FFFFFFFFFFFFFFFFFFFFFFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00630063006300090009000900090009
-29 mx 006300630063FFFFFFFFFFFFFFFFFFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00630063006800090009000900090009
-30 mx 006300630068FFFFFFFFFFFFFFFFFFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 00610061006100610061006100610061
-31 mx 00610061006100610061006100610061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 00630061006100610061006100610009
-32 mx 0063006100610061006100610061FFFF
-32 sp --------------------------------
-33 a Х
-33 mn 0425
-33 mx 0425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 045F
-34 mx 045F
-34 sp --------------------------------
-35 a ┥
-35 mn 2525
-35 mx 2525
-35 sp --------------------------------
-36 a 彟
-36 mn 5F5F
-36 mx 5F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET ucs2 COLLATE ucs2_thai_520_w2;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 0009
-2 mx FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00090009000900090009000900090009
-3 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-3 sp --------------------------------
-4 a \_
-4 mn 005F
-4 mx 005F
-4 sp --------------------------------
-5 a \%
-5 mn 0025
-5 mx 0025
-5 sp --------------------------------
-6 a \
-6 mn 005C
-6 mx 005C
-6 sp --------------------------------
-7 a a
-7 mn 0061
-7 mx 0061
-7 sp --------------------------------
-8 a c
-8 mn 0063
-8 mx 0063
-8 sp --------------------------------
-9 a a_
-9 mn 00610009
-9 mx 0061FFFF
-9 sp --------------------------------
-10 a c_
-10 mn 00630009
-10 mx 0063FFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00610009000900090009000900090009
-11 mx 0061FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00630009000900090009000900090009
-12 mx 0063FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-12 sp --------------------------------
-13 a aa
-13 mn 00610061
-13 mx 00610061
-13 sp --------------------------------
-14 a cc
-14 mn 00630063
-14 mx 00630063
-14 sp --------------------------------
-15 a ch
-15 mn 00630068
-15 mx 00630068
-15 sp --------------------------------
-16 a aa_
-16 mn 006100610009
-16 mx 00610061FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 006300630009
-17 mx 00630063FFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 006300680009
-18 mx 00630068FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00610061000900090009000900090009
-19 mx 00610061FFFFFFFFFFFFFFFFFFFFFFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00630063000900090009000900090009
-20 mx 00630063FFFFFFFFFFFFFFFFFFFFFFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00630068000900090009000900090009
-21 mx 00630068FFFFFFFFFFFFFFFFFFFFFFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 006100610061
-22 mx 006100610061
-22 sp --------------------------------
-23 a ccc
-23 mn 006300630063
-23 mx 006300630063
-23 sp --------------------------------
-24 a cch
-24 mn 006300630068
-24 mx 006300630068
-24 sp --------------------------------
-25 a aaa_
-25 mn 0061006100610009
-25 mx 006100610061FFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 0063006300630009
-26 mx 006300630063FFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 0063006300680009
-27 mx 006300630068FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00610061006100090009000900090009
-28 mx 006100610061FFFFFFFFFFFFFFFFFFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00630063006300090009000900090009
-29 mx 006300630063FFFFFFFFFFFFFFFFFFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00630063006800090009000900090009
-30 mx 006300630068FFFFFFFFFFFFFFFFFFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 00610061006100610061006100610061
-31 mx 00610061006100610061006100610061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 00630061006100610061006100610061
-32 mx 00630061006100610061006100610061
-32 sp --------------------------------
-33 a Х
-33 mn 0425
-33 mx 0425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 045F
-34 mx 045F
-34 sp --------------------------------
-35 a ┥
-35 mn 2525
-35 mx 2525
-35 sp --------------------------------
-36 a 彟
-36 mn 5F5F
-36 mx 5F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf16;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 0000
-2 mx FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00000000000000000000000000000000
-3 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-3 sp --------------------------------
-4 a \_
-4 mn 005F
-4 mx 005F
-4 sp --------------------------------
-5 a \%
-5 mn 0025
-5 mx 0025
-5 sp --------------------------------
-6 a \
-6 mn 005C
-6 mx 005C
-6 sp --------------------------------
-7 a a
-7 mn 0061
-7 mx 0061
-7 sp --------------------------------
-8 a c
-8 mn 0063
-8 mx 0063
-8 sp --------------------------------
-9 a a_
-9 mn 00610000
-9 mx 0061FFFF
-9 sp --------------------------------
-10 a c_
-10 mn 00630000
-10 mx 0063FFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00610000000000000000000000000000
-11 mx 0061FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00630000000000000000000000000000
-12 mx 0063FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-12 sp --------------------------------
-13 a aa
-13 mn 00610061
-13 mx 00610061
-13 sp --------------------------------
-14 a cc
-14 mn 00630063
-14 mx 00630063
-14 sp --------------------------------
-15 a ch
-15 mn 00630068
-15 mx 00630068
-15 sp --------------------------------
-16 a aa_
-16 mn 006100610000
-16 mx 00610061FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 006300630000
-17 mx 00630063FFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 006300680000
-18 mx 00630068FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00610061000000000000000000000000
-19 mx 00610061FFFFFFFFFFFFFFFFFFFFFFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00630063000000000000000000000000
-20 mx 00630063FFFFFFFFFFFFFFFFFFFFFFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00630068000000000000000000000000
-21 mx 00630068FFFFFFFFFFFFFFFFFFFFFFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 006100610061
-22 mx 006100610061
-22 sp --------------------------------
-23 a ccc
-23 mn 006300630063
-23 mx 006300630063
-23 sp --------------------------------
-24 a cch
-24 mn 006300630068
-24 mx 006300630068
-24 sp --------------------------------
-25 a aaa_
-25 mn 0061006100610000
-25 mx 006100610061FFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 0063006300630000
-26 mx 006300630063FFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 0063006300680000
-27 mx 006300630068FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00610061006100000000000000000000
-28 mx 006100610061FFFFFFFFFFFFFFFFFFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00630063006300000000000000000000
-29 mx 006300630063FFFFFFFFFFFFFFFFFFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00630063006800000000000000000000
-30 mx 006300630068FFFFFFFFFFFFFFFFFFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 0061006100610061
-31 mx 0061006100610061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 0063006100610061
-32 mx 0063006100610061
-32 sp --------------------------------
-33 a Х
-33 mn 0425
-33 mx 0425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 045F
-34 mx 045F
-34 sp --------------------------------
-35 a ┥
-35 mn 2525
-35 mx 2525
-35 sp --------------------------------
-36 a 彟
-36 mn 5F5F
-36 mx 5F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf16 COLLATE utf16_unicode_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 0009
-2 mx FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00090009000900090009000900090009
-3 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-3 sp --------------------------------
-4 a \_
-4 mn 005F
-4 mx 005F
-4 sp --------------------------------
-5 a \%
-5 mn 0025
-5 mx 0025
-5 sp --------------------------------
-6 a \
-6 mn 005C
-6 mx 005C
-6 sp --------------------------------
-7 a a
-7 mn 0061
-7 mx 0061
-7 sp --------------------------------
-8 a c
-8 mn 0063
-8 mx 0063
-8 sp --------------------------------
-9 a a_
-9 mn 00610009
-9 mx 0061FFFF
-9 sp --------------------------------
-10 a c_
-10 mn 00630009
-10 mx 0063FFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00610009000900090009000900090009
-11 mx 0061FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00630009000900090009000900090009
-12 mx 0063FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-12 sp --------------------------------
-13 a aa
-13 mn 00610061
-13 mx 00610061
-13 sp --------------------------------
-14 a cc
-14 mn 00630063
-14 mx 00630063
-14 sp --------------------------------
-15 a ch
-15 mn 00630068
-15 mx 00630068
-15 sp --------------------------------
-16 a aa_
-16 mn 006100610009
-16 mx 00610061FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 006300630009
-17 mx 00630063FFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 006300680009
-18 mx 00630068FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00610061000900090009000900090009
-19 mx 00610061FFFFFFFFFFFFFFFFFFFFFFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00630063000900090009000900090009
-20 mx 00630063FFFFFFFFFFFFFFFFFFFFFFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00630068000900090009000900090009
-21 mx 00630068FFFFFFFFFFFFFFFFFFFFFFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 006100610061
-22 mx 006100610061
-22 sp --------------------------------
-23 a ccc
-23 mn 006300630063
-23 mx 006300630063
-23 sp --------------------------------
-24 a cch
-24 mn 006300630068
-24 mx 006300630068
-24 sp --------------------------------
-25 a aaa_
-25 mn 0061006100610009
-25 mx 006100610061FFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 0063006300630009
-26 mx 006300630063FFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 0063006300680009
-27 mx 006300630068FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00610061006100090009000900090009
-28 mx 006100610061FFFFFFFFFFFFFFFFFFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00630063006300090009000900090009
-29 mx 006300630063FFFFFFFFFFFFFFFFFFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00630063006800090009000900090009
-30 mx 006300630068FFFFFFFFFFFFFFFFFFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 0061006100610061
-31 mx 0061006100610061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 0063006100610061
-32 mx 0063006100610061
-32 sp --------------------------------
-33 a Х
-33 mn 0425
-33 mx 0425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 045F
-34 mx 045F
-34 sp --------------------------------
-35 a ┥
-35 mn 2525
-35 mx 2525
-35 sp --------------------------------
-36 a 彟
-36 mn 5F5F
-36 mx 5F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf16 COLLATE utf16_czech_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 0009
-2 mx FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00090009000900090009000900090009
-3 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-3 sp --------------------------------
-4 a \_
-4 mn 005F
-4 mx 005F
-4 sp --------------------------------
-5 a \%
-5 mn 0025
-5 mx 0025
-5 sp --------------------------------
-6 a \
-6 mn 005C
-6 mx 005C
-6 sp --------------------------------
-7 a a
-7 mn 0061
-7 mx 0061
-7 sp --------------------------------
-8 a c
-8 mn 0063
-8 mx 0063
-8 sp --------------------------------
-9 a a_
-9 mn 00610009
-9 mx 0061FFFF
-9 sp --------------------------------
-10 a c_
-10 mn 00090009000900090009000900090009
-10 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00610009000900090009000900090009
-11 mx 0061FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00090009000900090009000900090009
-12 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-12 sp --------------------------------
-13 a aa
-13 mn 00610061
-13 mx 00610061
-13 sp --------------------------------
-14 a cc
-14 mn 00630063
-14 mx 00630063
-14 sp --------------------------------
-15 a ch
-15 mn 00630068
-15 mx 00630068
-15 sp --------------------------------
-16 a aa_
-16 mn 006100610009
-16 mx 00610061FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 00630009000900090009000900090009
-17 mx 0063FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 006300680009
-18 mx 00630068FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00610061000900090009000900090009
-19 mx 00610061FFFFFFFFFFFFFFFFFFFFFFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00630009000900090009000900090009
-20 mx 0063FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00630068000900090009000900090009
-21 mx 00630068FFFFFFFFFFFFFFFFFFFFFFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 006100610061
-22 mx 006100610061
-22 sp --------------------------------
-23 a ccc
-23 mn 006300630063
-23 mx 006300630063
-23 sp --------------------------------
-24 a cch
-24 mn 006300630068
-24 mx 006300630068
-24 sp --------------------------------
-25 a aaa_
-25 mn 0061006100610009
-25 mx 006100610061FFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 00630063000900090009000900090009
-26 mx 00630063FFFFFFFFFFFFFFFFFFFFFFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 0063006300680009
-27 mx 006300630068FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00610061006100090009000900090009
-28 mx 006100610061FFFFFFFFFFFFFFFFFFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00630063000900090009000900090009
-29 mx 00630063FFFFFFFFFFFFFFFFFFFFFFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00630063006800090009000900090009
-30 mx 006300630068FFFFFFFFFFFFFFFFFFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 0061006100610061
-31 mx 0061006100610061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 0063006100610061
-32 mx 0063006100610061
-32 sp --------------------------------
-33 a Х
-33 mn 0425
-33 mx 0425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 045F
-34 mx 045F
-34 sp --------------------------------
-35 a ┥
-35 mn 2525
-35 mx 2525
-35 sp --------------------------------
-36 a 彟
-36 mn 5F5F
-36 mx 5F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf16 COLLATE utf16_danish_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 0009
-2 mx FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00090009000900090009000900090009
-3 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-3 sp --------------------------------
-4 a \_
-4 mn 005F
-4 mx 005F
-4 sp --------------------------------
-5 a \%
-5 mn 0025
-5 mx 0025
-5 sp --------------------------------
-6 a \
-6 mn 005C
-6 mx 005C
-6 sp --------------------------------
-7 a a
-7 mn 0061
-7 mx 0061
-7 sp --------------------------------
-8 a c
-8 mn 0063
-8 mx 0063
-8 sp --------------------------------
-9 a a_
-9 mn 00090009000900090009000900090009
-9 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-9 sp --------------------------------
-10 a c_
-10 mn 00630009
-10 mx 0063FFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00090009000900090009000900090009
-11 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00630009000900090009000900090009
-12 mx 0063FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-12 sp --------------------------------
-13 a aa
-13 mn 00610061
-13 mx 00610061
-13 sp --------------------------------
-14 a cc
-14 mn 00630063
-14 mx 00630063
-14 sp --------------------------------
-15 a ch
-15 mn 00630068
-15 mx 00630068
-15 sp --------------------------------
-16 a aa_
-16 mn 006100610009
-16 mx 00610061FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 006300630009
-17 mx 00630063FFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 006300680009
-18 mx 00630068FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00610061000900090009000900090009
-19 mx 00610061FFFFFFFFFFFFFFFFFFFFFFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00630063000900090009000900090009
-20 mx 00630063FFFFFFFFFFFFFFFFFFFFFFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00630068000900090009000900090009
-21 mx 00630068FFFFFFFFFFFFFFFFFFFFFFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 006100610061
-22 mx 006100610061
-22 sp --------------------------------
-23 a ccc
-23 mn 006300630063
-23 mx 006300630063
-23 sp --------------------------------
-24 a cch
-24 mn 006300630068
-24 mx 006300630068
-24 sp --------------------------------
-25 a aaa_
-25 mn 00610061000900090009000900090009
-25 mx 00610061FFFFFFFFFFFFFFFFFFFFFFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 0063006300630009
-26 mx 006300630063FFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 0063006300680009
-27 mx 006300630068FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00610061000900090009000900090009
-28 mx 00610061FFFFFFFFFFFFFFFFFFFFFFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00630063006300090009000900090009
-29 mx 006300630063FFFFFFFFFFFFFFFFFFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00630063006800090009000900090009
-30 mx 006300630068FFFFFFFFFFFFFFFFFFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 0061006100610061
-31 mx 0061006100610061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 00630061006100090009000900090009
-32 mx 006300610061FFFFFFFFFFFFFFFFFFFF
-32 sp --------------------------------
-33 a Х
-33 mn 0425
-33 mx 0425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 045F
-34 mx 045F
-34 sp --------------------------------
-35 a ┥
-35 mn 2525
-35 mx 2525
-35 sp --------------------------------
-36 a 彟
-36 mn 5F5F
-36 mx 5F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf16 COLLATE utf16_thai_520_w2;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 0009
-2 mx FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00090009000900090009000900090009
-3 mx FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
-3 sp --------------------------------
-4 a \_
-4 mn 005F
-4 mx 005F
-4 sp --------------------------------
-5 a \%
-5 mn 0025
-5 mx 0025
-5 sp --------------------------------
-6 a \
-6 mn 005C
-6 mx 005C
-6 sp --------------------------------
-7 a a
-7 mn 0061
-7 mx 0061
-7 sp --------------------------------
-8 a c
-8 mn 0063
-8 mx 0063
-8 sp --------------------------------
-9 a a_
-9 mn 00610009
-9 mx 0061FFFF
-9 sp --------------------------------
-10 a c_
-10 mn 00630009
-10 mx 0063FFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00610009000900090009000900090009
-11 mx 0061FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00630009000900090009000900090009
-12 mx 0063FFFFFFFFFFFFFFFFFFFFFFFFFFFF
-12 sp --------------------------------
-13 a aa
-13 mn 00610061
-13 mx 00610061
-13 sp --------------------------------
-14 a cc
-14 mn 00630063
-14 mx 00630063
-14 sp --------------------------------
-15 a ch
-15 mn 00630068
-15 mx 00630068
-15 sp --------------------------------
-16 a aa_
-16 mn 006100610009
-16 mx 00610061FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 006300630009
-17 mx 00630063FFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 006300680009
-18 mx 00630068FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00610061000900090009000900090009
-19 mx 00610061FFFFFFFFFFFFFFFFFFFFFFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00630063000900090009000900090009
-20 mx 00630063FFFFFFFFFFFFFFFFFFFFFFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00630068000900090009000900090009
-21 mx 00630068FFFFFFFFFFFFFFFFFFFFFFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 006100610061
-22 mx 006100610061
-22 sp --------------------------------
-23 a ccc
-23 mn 006300630063
-23 mx 006300630063
-23 sp --------------------------------
-24 a cch
-24 mn 006300630068
-24 mx 006300630068
-24 sp --------------------------------
-25 a aaa_
-25 mn 0061006100610009
-25 mx 006100610061FFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 0063006300630009
-26 mx 006300630063FFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 0063006300680009
-27 mx 006300630068FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00610061006100090009000900090009
-28 mx 006100610061FFFFFFFFFFFFFFFFFFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00630063006300090009000900090009
-29 mx 006300630063FFFFFFFFFFFFFFFFFFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00630063006800090009000900090009
-30 mx 006300630068FFFFFFFFFFFFFFFFFFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 0061006100610061
-31 mx 0061006100610061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 0063006100610061
-32 mx 0063006100610061
-32 sp --------------------------------
-33 a Х
-33 mn 0425
-33 mx 0425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 045F
-34 mx 045F
-34 sp --------------------------------
-35 a ┥
-35 mn 2525
-35 mx 2525
-35 sp --------------------------------
-36 a 彟
-36 mn 5F5F
-36 mx 5F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf16 COLLATE utf16_unicode_520_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 0009
-2 mx DBFFDFFF
-2 sp --------------------------------
-3 a %
-3 mn 00090009000900090009000900090009
-3 mx DBFFDFFFDBFFDFFFDBFFDFFFDBFFDFFF
-3 sp --------------------------------
-4 a \_
-4 mn 005F
-4 mx 005F
-4 sp --------------------------------
-5 a \%
-5 mn 0025
-5 mx 0025
-5 sp --------------------------------
-6 a \
-6 mn 005C
-6 mx 005C
-6 sp --------------------------------
-7 a a
-7 mn 0061
-7 mx 0061
-7 sp --------------------------------
-8 a c
-8 mn 0063
-8 mx 0063
-8 sp --------------------------------
-9 a a_
-9 mn 00610009
-9 mx 0061DBFFDFFF
-9 sp --------------------------------
-10 a c_
-10 mn 00630009
-10 mx 0063DBFFDFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00610009000900090009000900090009
-11 mx 0061DBFFDFFFDBFFDFFFDBFFDFFF0000
-11 sp --------------------------------
-12 a c%
-12 mn 00630009000900090009000900090009
-12 mx 0063DBFFDFFFDBFFDFFFDBFFDFFF0000
-12 sp --------------------------------
-13 a aa
-13 mn 00610061
-13 mx 00610061
-13 sp --------------------------------
-14 a cc
-14 mn 00630063
-14 mx 00630063
-14 sp --------------------------------
-15 a ch
-15 mn 00630068
-15 mx 00630068
-15 sp --------------------------------
-16 a aa_
-16 mn 006100610009
-16 mx 00610061DBFFDFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 006300630009
-17 mx 00630063DBFFDFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 006300680009
-18 mx 00630068DBFFDFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00610061000900090009000900090009
-19 mx 00610061DBFFDFFFDBFFDFFFDBFFDFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00630063000900090009000900090009
-20 mx 00630063DBFFDFFFDBFFDFFFDBFFDFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00630068000900090009000900090009
-21 mx 00630068DBFFDFFFDBFFDFFFDBFFDFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 006100610061
-22 mx 006100610061
-22 sp --------------------------------
-23 a ccc
-23 mn 006300630063
-23 mx 006300630063
-23 sp --------------------------------
-24 a cch
-24 mn 006300630068
-24 mx 006300630068
-24 sp --------------------------------
-25 a aaa_
-25 mn 0061006100610009
-25 mx 006100610061DBFFDFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 0063006300630009
-26 mx 006300630063DBFFDFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 0063006300680009
-27 mx 006300630068DBFFDFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00610061006100090009000900090009
-28 mx 006100610061DBFFDFFFDBFFDFFF0000
-28 sp --------------------------------
-29 a ccc%
-29 mn 00630063006300090009000900090009
-29 mx 006300630063DBFFDFFFDBFFDFFF0000
-29 sp --------------------------------
-30 a cch%
-30 mn 00630063006800090009000900090009
-30 mx 006300630068DBFFDFFFDBFFDFFF0000
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 0061006100610061
-31 mx 0061006100610061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 0063006100610061
-32 mx 0063006100610061
-32 sp --------------------------------
-33 a Х
-33 mn 0425
-33 mx 0425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 045F
-34 mx 045F
-34 sp --------------------------------
-35 a ┥
-35 mn 2525
-35 mx 2525
-35 sp --------------------------------
-36 a 彟
-36 mn 5F5F
-36 mx 5F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf32;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 00000000
-2 mx 0000FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00000000000000000000000000000000
-3 mx 0000FFFF0000FFFF0000FFFF0000FFFF
-3 sp --------------------------------
-4 a \_
-4 mn 0000005F
-4 mx 0000005F
-4 sp --------------------------------
-5 a \%
-5 mn 00000025
-5 mx 00000025
-5 sp --------------------------------
-6 a \
-6 mn 0000005C
-6 mx 0000005C
-6 sp --------------------------------
-7 a a
-7 mn 00000061
-7 mx 00000061
-7 sp --------------------------------
-8 a c
-8 mn 00000063
-8 mx 00000063
-8 sp --------------------------------
-9 a a_
-9 mn 0000006100000000
-9 mx 000000610000FFFF
-9 sp --------------------------------
-10 a c_
-10 mn 0000006300000000
-10 mx 000000630000FFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00000061000000000000000000000000
-11 mx 000000610000FFFF0000FFFF0000FFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00000063000000000000000000000000
-12 mx 000000630000FFFF0000FFFF0000FFFF
-12 sp --------------------------------
-13 a aa
-13 mn 0000006100000061
-13 mx 0000006100000061
-13 sp --------------------------------
-14 a cc
-14 mn 0000006300000063
-14 mx 0000006300000063
-14 sp --------------------------------
-15 a ch
-15 mn 0000006300000068
-15 mx 0000006300000068
-15 sp --------------------------------
-16 a aa_
-16 mn 000000610000006100000000
-16 mx 00000061000000610000FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 000000630000006300000000
-17 mx 00000063000000630000FFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 000000630000006800000000
-18 mx 00000063000000680000FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00000061000000610000000000000000
-19 mx 00000061000000610000FFFF0000FFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00000063000000630000000000000000
-20 mx 00000063000000630000FFFF0000FFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00000063000000680000000000000000
-21 mx 00000063000000680000FFFF0000FFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 000000610000006100000061
-22 mx 000000610000006100000061
-22 sp --------------------------------
-23 a ccc
-23 mn 000000630000006300000063
-23 mx 000000630000006300000063
-23 sp --------------------------------
-24 a cch
-24 mn 000000630000006300000068
-24 mx 000000630000006300000068
-24 sp --------------------------------
-25 a aaa_
-25 mn 00000061000000610000006100000000
-25 mx 0000006100000061000000610000FFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 00000063000000630000006300000000
-26 mx 0000006300000063000000630000FFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 00000063000000630000006800000000
-27 mx 0000006300000063000000680000FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00000061000000610000006100000000
-28 mx 0000006100000061000000610000FFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00000063000000630000006300000000
-29 mx 0000006300000063000000630000FFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00000063000000630000006800000000
-30 mx 0000006300000063000000680000FFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 00000061000000610000006100000061
-31 mx 00000061000000610000006100000061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 00000063000000610000006100000061
-32 mx 00000063000000610000006100000061
-32 sp --------------------------------
-33 a Х
-33 mn 00000425
-33 mx 00000425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 0000045F
-34 mx 0000045F
-34 sp --------------------------------
-35 a ┥
-35 mn 00002525
-35 mx 00002525
-35 sp --------------------------------
-36 a 彟
-36 mn 00005F5F
-36 mx 00005F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf32 COLLATE utf32_unicode_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 00000009
-2 mx 0000FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00000009000000090000000900000009
-3 mx 0000FFFF0000FFFF0000FFFF0000FFFF
-3 sp --------------------------------
-4 a \_
-4 mn 0000005F
-4 mx 0000005F
-4 sp --------------------------------
-5 a \%
-5 mn 00000025
-5 mx 00000025
-5 sp --------------------------------
-6 a \
-6 mn 0000005C
-6 mx 0000005C
-6 sp --------------------------------
-7 a a
-7 mn 00000061
-7 mx 00000061
-7 sp --------------------------------
-8 a c
-8 mn 00000063
-8 mx 00000063
-8 sp --------------------------------
-9 a a_
-9 mn 0000006100000009
-9 mx 000000610000FFFF
-9 sp --------------------------------
-10 a c_
-10 mn 0000006300000009
-10 mx 000000630000FFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00000061000000090000000900000009
-11 mx 000000610000FFFF0000FFFF0000FFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00000063000000090000000900000009
-12 mx 000000630000FFFF0000FFFF0000FFFF
-12 sp --------------------------------
-13 a aa
-13 mn 0000006100000061
-13 mx 0000006100000061
-13 sp --------------------------------
-14 a cc
-14 mn 0000006300000063
-14 mx 0000006300000063
-14 sp --------------------------------
-15 a ch
-15 mn 0000006300000068
-15 mx 0000006300000068
-15 sp --------------------------------
-16 a aa_
-16 mn 000000610000006100000009
-16 mx 00000061000000610000FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 000000630000006300000009
-17 mx 00000063000000630000FFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 000000630000006800000009
-18 mx 00000063000000680000FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00000061000000610000000900000009
-19 mx 00000061000000610000FFFF0000FFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00000063000000630000000900000009
-20 mx 00000063000000630000FFFF0000FFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00000063000000680000000900000009
-21 mx 00000063000000680000FFFF0000FFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 000000610000006100000061
-22 mx 000000610000006100000061
-22 sp --------------------------------
-23 a ccc
-23 mn 000000630000006300000063
-23 mx 000000630000006300000063
-23 sp --------------------------------
-24 a cch
-24 mn 000000630000006300000068
-24 mx 000000630000006300000068
-24 sp --------------------------------
-25 a aaa_
-25 mn 00000061000000610000006100000009
-25 mx 0000006100000061000000610000FFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 00000063000000630000006300000009
-26 mx 0000006300000063000000630000FFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 00000063000000630000006800000009
-27 mx 0000006300000063000000680000FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00000061000000610000006100000009
-28 mx 0000006100000061000000610000FFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00000063000000630000006300000009
-29 mx 0000006300000063000000630000FFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00000063000000630000006800000009
-30 mx 0000006300000063000000680000FFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 00000061000000610000006100000061
-31 mx 00000061000000610000006100000061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 00000063000000610000006100000061
-32 mx 00000063000000610000006100000061
-32 sp --------------------------------
-33 a Х
-33 mn 00000425
-33 mx 00000425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 0000045F
-34 mx 0000045F
-34 sp --------------------------------
-35 a ┥
-35 mn 00002525
-35 mx 00002525
-35 sp --------------------------------
-36 a 彟
-36 mn 00005F5F
-36 mx 00005F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf32 COLLATE utf32_czech_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 00000009
-2 mx 0000FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00000009000000090000000900000009
-3 mx 0000FFFF0000FFFF0000FFFF0000FFFF
-3 sp --------------------------------
-4 a \_
-4 mn 0000005F
-4 mx 0000005F
-4 sp --------------------------------
-5 a \%
-5 mn 00000025
-5 mx 00000025
-5 sp --------------------------------
-6 a \
-6 mn 0000005C
-6 mx 0000005C
-6 sp --------------------------------
-7 a a
-7 mn 00000061
-7 mx 00000061
-7 sp --------------------------------
-8 a c
-8 mn 00000063
-8 mx 00000063
-8 sp --------------------------------
-9 a a_
-9 mn 0000006100000009
-9 mx 000000610000FFFF
-9 sp --------------------------------
-10 a c_
-10 mn 00000009000000090000000900000009
-10 mx 0000FFFF0000FFFF0000FFFF0000FFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00000061000000090000000900000009
-11 mx 000000610000FFFF0000FFFF0000FFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00000009000000090000000900000009
-12 mx 0000FFFF0000FFFF0000FFFF0000FFFF
-12 sp --------------------------------
-13 a aa
-13 mn 0000006100000061
-13 mx 0000006100000061
-13 sp --------------------------------
-14 a cc
-14 mn 0000006300000063
-14 mx 0000006300000063
-14 sp --------------------------------
-15 a ch
-15 mn 0000006300000068
-15 mx 0000006300000068
-15 sp --------------------------------
-16 a aa_
-16 mn 000000610000006100000009
-16 mx 00000061000000610000FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 00000063000000090000000900000009
-17 mx 000000630000FFFF0000FFFF0000FFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 000000630000006800000009
-18 mx 00000063000000680000FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00000061000000610000000900000009
-19 mx 00000061000000610000FFFF0000FFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00000063000000090000000900000009
-20 mx 000000630000FFFF0000FFFF0000FFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00000063000000680000000900000009
-21 mx 00000063000000680000FFFF0000FFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 000000610000006100000061
-22 mx 000000610000006100000061
-22 sp --------------------------------
-23 a ccc
-23 mn 000000630000006300000063
-23 mx 000000630000006300000063
-23 sp --------------------------------
-24 a cch
-24 mn 000000630000006300000068
-24 mx 000000630000006300000068
-24 sp --------------------------------
-25 a aaa_
-25 mn 00000061000000610000006100000009
-25 mx 0000006100000061000000610000FFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 00000063000000630000000900000009
-26 mx 00000063000000630000FFFF0000FFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 00000063000000630000006800000009
-27 mx 0000006300000063000000680000FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00000061000000610000006100000009
-28 mx 0000006100000061000000610000FFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00000063000000630000000900000009
-29 mx 00000063000000630000FFFF0000FFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00000063000000630000006800000009
-30 mx 0000006300000063000000680000FFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 00000061000000610000006100000061
-31 mx 00000061000000610000006100000061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 00000063000000610000006100000061
-32 mx 00000063000000610000006100000061
-32 sp --------------------------------
-33 a Х
-33 mn 00000425
-33 mx 00000425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 0000045F
-34 mx 0000045F
-34 sp --------------------------------
-35 a ┥
-35 mn 00002525
-35 mx 00002525
-35 sp --------------------------------
-36 a 彟
-36 mn 00005F5F
-36 mx 00005F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf32 COLLATE utf32_danish_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 00000009
-2 mx 0000FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00000009000000090000000900000009
-3 mx 0000FFFF0000FFFF0000FFFF0000FFFF
-3 sp --------------------------------
-4 a \_
-4 mn 0000005F
-4 mx 0000005F
-4 sp --------------------------------
-5 a \%
-5 mn 00000025
-5 mx 00000025
-5 sp --------------------------------
-6 a \
-6 mn 0000005C
-6 mx 0000005C
-6 sp --------------------------------
-7 a a
-7 mn 00000061
-7 mx 00000061
-7 sp --------------------------------
-8 a c
-8 mn 00000063
-8 mx 00000063
-8 sp --------------------------------
-9 a a_
-9 mn 00000009000000090000000900000009
-9 mx 0000FFFF0000FFFF0000FFFF0000FFFF
-9 sp --------------------------------
-10 a c_
-10 mn 0000006300000009
-10 mx 000000630000FFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00000009000000090000000900000009
-11 mx 0000FFFF0000FFFF0000FFFF0000FFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00000063000000090000000900000009
-12 mx 000000630000FFFF0000FFFF0000FFFF
-12 sp --------------------------------
-13 a aa
-13 mn 0000006100000061
-13 mx 0000006100000061
-13 sp --------------------------------
-14 a cc
-14 mn 0000006300000063
-14 mx 0000006300000063
-14 sp --------------------------------
-15 a ch
-15 mn 0000006300000068
-15 mx 0000006300000068
-15 sp --------------------------------
-16 a aa_
-16 mn 000000610000006100000009
-16 mx 00000061000000610000FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 000000630000006300000009
-17 mx 00000063000000630000FFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 000000630000006800000009
-18 mx 00000063000000680000FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00000061000000610000000900000009
-19 mx 00000061000000610000FFFF0000FFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00000063000000630000000900000009
-20 mx 00000063000000630000FFFF0000FFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00000063000000680000000900000009
-21 mx 00000063000000680000FFFF0000FFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 000000610000006100000061
-22 mx 000000610000006100000061
-22 sp --------------------------------
-23 a ccc
-23 mn 000000630000006300000063
-23 mx 000000630000006300000063
-23 sp --------------------------------
-24 a cch
-24 mn 000000630000006300000068
-24 mx 000000630000006300000068
-24 sp --------------------------------
-25 a aaa_
-25 mn 00000061000000610000000900000009
-25 mx 00000061000000610000FFFF0000FFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 00000063000000630000006300000009
-26 mx 0000006300000063000000630000FFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 00000063000000630000006800000009
-27 mx 0000006300000063000000680000FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00000061000000610000000900000009
-28 mx 00000061000000610000FFFF0000FFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00000063000000630000006300000009
-29 mx 0000006300000063000000630000FFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00000063000000630000006800000009
-30 mx 0000006300000063000000680000FFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 00000061000000610000006100000061
-31 mx 00000061000000610000006100000061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 00000063000000610000006100000009
-32 mx 0000006300000061000000610000FFFF
-32 sp --------------------------------
-33 a Х
-33 mn 00000425
-33 mx 00000425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 0000045F
-34 mx 0000045F
-34 sp --------------------------------
-35 a ┥
-35 mn 00002525
-35 mx 00002525
-35 sp --------------------------------
-36 a 彟
-36 mn 00005F5F
-36 mx 00005F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf32 COLLATE utf32_thai_520_w2;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 00000009
-2 mx 0000FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00000009000000090000000900000009
-3 mx 0000FFFF0000FFFF0000FFFF0000FFFF
-3 sp --------------------------------
-4 a \_
-4 mn 0000005F
-4 mx 0000005F
-4 sp --------------------------------
-5 a \%
-5 mn 00000025
-5 mx 00000025
-5 sp --------------------------------
-6 a \
-6 mn 0000005C
-6 mx 0000005C
-6 sp --------------------------------
-7 a a
-7 mn 00000061
-7 mx 00000061
-7 sp --------------------------------
-8 a c
-8 mn 00000063
-8 mx 00000063
-8 sp --------------------------------
-9 a a_
-9 mn 0000006100000009
-9 mx 000000610000FFFF
-9 sp --------------------------------
-10 a c_
-10 mn 0000006300000009
-10 mx 000000630000FFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00000061000000090000000900000009
-11 mx 000000610000FFFF0000FFFF0000FFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00000063000000090000000900000009
-12 mx 000000630000FFFF0000FFFF0000FFFF
-12 sp --------------------------------
-13 a aa
-13 mn 0000006100000061
-13 mx 0000006100000061
-13 sp --------------------------------
-14 a cc
-14 mn 0000006300000063
-14 mx 0000006300000063
-14 sp --------------------------------
-15 a ch
-15 mn 0000006300000068
-15 mx 0000006300000068
-15 sp --------------------------------
-16 a aa_
-16 mn 000000610000006100000009
-16 mx 00000061000000610000FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 000000630000006300000009
-17 mx 00000063000000630000FFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 000000630000006800000009
-18 mx 00000063000000680000FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00000061000000610000000900000009
-19 mx 00000061000000610000FFFF0000FFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00000063000000630000000900000009
-20 mx 00000063000000630000FFFF0000FFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00000063000000680000000900000009
-21 mx 00000063000000680000FFFF0000FFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 000000610000006100000061
-22 mx 000000610000006100000061
-22 sp --------------------------------
-23 a ccc
-23 mn 000000630000006300000063
-23 mx 000000630000006300000063
-23 sp --------------------------------
-24 a cch
-24 mn 000000630000006300000068
-24 mx 000000630000006300000068
-24 sp --------------------------------
-25 a aaa_
-25 mn 00000061000000610000006100000009
-25 mx 0000006100000061000000610000FFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 00000063000000630000006300000009
-26 mx 0000006300000063000000630000FFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 00000063000000630000006800000009
-27 mx 0000006300000063000000680000FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00000061000000610000006100000009
-28 mx 0000006100000061000000610000FFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00000063000000630000006300000009
-29 mx 0000006300000063000000630000FFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00000063000000630000006800000009
-30 mx 0000006300000063000000680000FFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 00000061000000610000006100000061
-31 mx 00000061000000610000006100000061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 00000063000000610000006100000061
-32 mx 00000063000000610000006100000061
-32 sp --------------------------------
-33 a Х
-33 mn 00000425
-33 mx 00000425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 0000045F
-34 mx 0000045F
-34 sp --------------------------------
-35 a ┥
-35 mn 00002525
-35 mx 00002525
-35 sp --------------------------------
-36 a 彟
-36 mn 00005F5F
-36 mx 00005F5F
-36 sp --------------------------------
-ALTER TABLE t1 MODIFY a VARCHAR(32) CHARACTER SET utf32 COLLATE utf32_unicode_520_ci;
-SELECT * FROM v1;
-id name val
-1 a
-1 mn
-1 mx
-1 sp --------------------------------
-2 a _
-2 mn 00000009
-2 mx 0010FFFF
-2 sp --------------------------------
-3 a %
-3 mn 00000009000000090000000900000009
-3 mx 0010FFFF0010FFFF0010FFFF0010FFFF
-3 sp --------------------------------
-4 a \_
-4 mn 0000005F
-4 mx 0000005F
-4 sp --------------------------------
-5 a \%
-5 mn 00000025
-5 mx 00000025
-5 sp --------------------------------
-6 a \
-6 mn 0000005C
-6 mx 0000005C
-6 sp --------------------------------
-7 a a
-7 mn 00000061
-7 mx 00000061
-7 sp --------------------------------
-8 a c
-8 mn 00000063
-8 mx 00000063
-8 sp --------------------------------
-9 a a_
-9 mn 0000006100000009
-9 mx 000000610010FFFF
-9 sp --------------------------------
-10 a c_
-10 mn 0000006300000009
-10 mx 000000630010FFFF
-10 sp --------------------------------
-11 a a%
-11 mn 00000061000000090000000900000009
-11 mx 000000610010FFFF0010FFFF0010FFFF
-11 sp --------------------------------
-12 a c%
-12 mn 00000063000000090000000900000009
-12 mx 000000630010FFFF0010FFFF0010FFFF
-12 sp --------------------------------
-13 a aa
-13 mn 0000006100000061
-13 mx 0000006100000061
-13 sp --------------------------------
-14 a cc
-14 mn 0000006300000063
-14 mx 0000006300000063
-14 sp --------------------------------
-15 a ch
-15 mn 0000006300000068
-15 mx 0000006300000068
-15 sp --------------------------------
-16 a aa_
-16 mn 000000610000006100000009
-16 mx 00000061000000610010FFFF
-16 sp --------------------------------
-17 a cc_
-17 mn 000000630000006300000009
-17 mx 00000063000000630010FFFF
-17 sp --------------------------------
-18 a ch_
-18 mn 000000630000006800000009
-18 mx 00000063000000680010FFFF
-18 sp --------------------------------
-19 a aa%
-19 mn 00000061000000610000000900000009
-19 mx 00000061000000610010FFFF0010FFFF
-19 sp --------------------------------
-20 a cc%
-20 mn 00000063000000630000000900000009
-20 mx 00000063000000630010FFFF0010FFFF
-20 sp --------------------------------
-21 a ch%
-21 mn 00000063000000680000000900000009
-21 mx 00000063000000680010FFFF0010FFFF
-21 sp --------------------------------
-22 a aaa
-22 mn 000000610000006100000061
-22 mx 000000610000006100000061
-22 sp --------------------------------
-23 a ccc
-23 mn 000000630000006300000063
-23 mx 000000630000006300000063
-23 sp --------------------------------
-24 a cch
-24 mn 000000630000006300000068
-24 mx 000000630000006300000068
-24 sp --------------------------------
-25 a aaa_
-25 mn 00000061000000610000006100000009
-25 mx 0000006100000061000000610010FFFF
-25 sp --------------------------------
-26 a ccc_
-26 mn 00000063000000630000006300000009
-26 mx 0000006300000063000000630010FFFF
-26 sp --------------------------------
-27 a cch_
-27 mn 00000063000000630000006800000009
-27 mx 0000006300000063000000680010FFFF
-27 sp --------------------------------
-28 a aaa%
-28 mn 00000061000000610000006100000009
-28 mx 0000006100000061000000610010FFFF
-28 sp --------------------------------
-29 a ccc%
-29 mn 00000063000000630000006300000009
-29 mx 0000006300000063000000630010FFFF
-29 sp --------------------------------
-30 a cch%
-30 mn 00000063000000630000006800000009
-30 mx 0000006300000063000000680010FFFF
-30 sp --------------------------------
-31 a aaaaaaaaaaaaaaaaaaaa
-31 mn 00000061000000610000006100000061
-31 mx 00000061000000610000006100000061
-31 sp --------------------------------
-32 a caaaaaaaaaaaaaaaaaaa
-32 mn 00000063000000610000006100000061
-32 mx 00000063000000610000006100000061
-32 sp --------------------------------
-33 a Х
-33 mn 00000425
-33 mx 00000425
-33 sp --------------------------------
-34 a ÑŸ
-34 mn 0000045F
-34 mx 0000045F
-34 sp --------------------------------
-35 a ┥
-35 mn 00002525
-35 mx 00002525
-35 sp --------------------------------
-36 a 彟
-36 mn 00005F5F
-36 mx 00005F5F
-36 sp --------------------------------
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10134 Add full support for DEFAULT
-#
-CREATE TABLE t1 (
-a VARCHAR(10),
-mn VARCHAR(10) DEFAULT LIKE_RANGE_MIN(a,10),
-mx VARCHAR(10) DEFAULT LIKE_RANGE_MAX(a,10)
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `mn` varchar(10) DEFAULT like_range_min(`a`,10),
- `mx` varchar(10) DEFAULT like_range_max(`a`,10)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('a'),('a_'),('a%');
-SELECT a, HEX(mn), HEX(mx) FROM t1;
-a HEX(mn) HEX(mx)
-a 61 61
-a_ 6100 61FF
-a% 61000000000000000000 61FFFFFFFFFFFFFFFFFF
-DROP TABLE t1;
-#
-# MDEV-14350 Index use with collation utf8mb4_unicode_nopad_ci on LIKE pattern with wrong results
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_swedish_nopad_ci);
-INSERT INTO t1 VALUES ('111%');
-SELECT a, HEX(LIKE_RANGE_MIN(a,200)) FROM t1;
-a HEX(LIKE_RANGE_MIN(a,200))
-111% 313131
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8 COLLATE utf8_general_nopad_ci);
-INSERT INTO t1 VALUES ('111%');
-SELECT a, HEX(LIKE_RANGE_MIN(a,200)) FROM t1;
-a HEX(LIKE_RANGE_MIN(a,200))
-111% 313131
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8 COLLATE utf8_unicode_nopad_ci);
-INSERT INTO t1 VALUES ('111%');
-SELECT a, HEX(LIKE_RANGE_MIN(a,200)) FROM t1;
-a HEX(LIKE_RANGE_MIN(a,200))
-111% 313131
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_nopad_ci);
-INSERT INTO t1 VALUES ('111%');
-SELECT a, HEX(LIKE_RANGE_MIN(a,200)) FROM t1;
-a HEX(LIKE_RANGE_MIN(a,200))
-111% 313131
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET ucs2 COLLATE ucs2_unicode_nopad_ci);
-INSERT INTO t1 VALUES ('111%');
-SELECT a, HEX(LIKE_RANGE_MIN(a,200)) FROM t1;
-a HEX(LIKE_RANGE_MIN(a,200))
-111% 003100310031
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf16 COLLATE utf16_unicode_nopad_ci);
-INSERT INTO t1 VALUES ('111%');
-SELECT a, HEX(LIKE_RANGE_MIN(a,200)) FROM t1;
-a HEX(LIKE_RANGE_MIN(a,200))
-111% 003100310031
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf32 COLLATE utf32_unicode_nopad_ci);
-INSERT INTO t1 VALUES ('111%');
-SELECT a, HEX(LIKE_RANGE_MIN(a,200)) FROM t1;
-a HEX(LIKE_RANGE_MIN(a,200))
-111% 000000310000003100000031
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_many.result b/mysql-test/r/ctype_many.result
deleted file mode 100644
index d73a478b0c0..00000000000
--- a/mysql-test/r/ctype_many.result
+++ /dev/null
@@ -1,1812 +0,0 @@
-DROP TABLE IF EXISTS t1;
-SET CHARACTER SET latin1;
-CREATE TABLE t1 (
-comment CHAR(32) ASCII NOT NULL,
-koi8_ru_f CHAR(32) CHARACTER SET koi8r NOT NULL default ''
-) CHARSET=latin5;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `comment` char(32) CHARACTER SET latin1 NOT NULL,
- `koi8_ru_f` char(32) CHARACTER SET koi8r NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin5
-ALTER TABLE t1 CHANGE comment comment CHAR(32) CHARACTER SET latin2 NOT NULL;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `comment` char(32) CHARACTER SET latin2 NOT NULL,
- `koi8_ru_f` char(32) CHARACTER SET koi8r NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin5
-ALTER TABLE t1 ADD latin5_f CHAR(32) NOT NULL;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `comment` char(32) CHARACTER SET latin2 NOT NULL,
- `koi8_ru_f` char(32) CHARACTER SET koi8r NOT NULL DEFAULT '',
- `latin5_f` char(32) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin5
-ALTER TABLE t1 DEFAULT CHARSET=latin2;
-ALTER TABLE t1 ADD latin2_f CHAR(32) NOT NULL;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `comment` char(32) NOT NULL,
- `koi8_ru_f` char(32) CHARACTER SET koi8r NOT NULL DEFAULT '',
- `latin5_f` char(32) CHARACTER SET latin5 NOT NULL,
- `latin2_f` char(32) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin2
-ALTER TABLE t1 DROP latin2_f, DROP latin5_f;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `comment` char(32) NOT NULL,
- `koi8_ru_f` char(32) CHARACTER SET koi8r NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin2
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('a','LAT SMALL A');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('b','LAT SMALL B');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('c','LAT SMALL C');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('d','LAT SMALL D');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('e','LAT SMALL E');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('f','LAT SMALL F');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('g','LAT SMALL G');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('h','LAT SMALL H');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('i','LAT SMALL I');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('j','LAT SMALL J');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('k','LAT SMALL K');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('l','LAT SMALL L');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('m','LAT SMALL M');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('n','LAT SMALL N');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('o','LAT SMALL O');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('p','LAT SMALL P');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('q','LAT SMALL Q');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('r','LAT SMALL R');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('s','LAT SMALL S');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('t','LAT SMALL T');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('u','LAT SMALL U');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('v','LAT SMALL V');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('w','LAT SMALL W');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('x','LAT SMALL X');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('y','LAT SMALL Y');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('z','LAT SMALL Z');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('A','LAT CAPIT A');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('B','LAT CAPIT B');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('C','LAT CAPIT C');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('D','LAT CAPIT D');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('E','LAT CAPIT E');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('F','LAT CAPIT F');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('G','LAT CAPIT G');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('H','LAT CAPIT H');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('I','LAT CAPIT I');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('J','LAT CAPIT J');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('K','LAT CAPIT K');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('L','LAT CAPIT L');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('M','LAT CAPIT M');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('N','LAT CAPIT N');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('O','LAT CAPIT O');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('P','LAT CAPIT P');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('Q','LAT CAPIT Q');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('R','LAT CAPIT R');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('S','LAT CAPIT S');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('T','LAT CAPIT T');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('U','LAT CAPIT U');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('V','LAT CAPIT V');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('W','LAT CAPIT W');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('X','LAT CAPIT X');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('Y','LAT CAPIT Y');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES ('Z','LAT CAPIT Z');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Á','CYR SMALL A');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Â','CYR SMALL BE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'×','CYR SMALL VE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ç','CYR SMALL GE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ä','CYR SMALL DE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Å','CYR SMALL IE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'£','CYR SMALL IO');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ö','CYR SMALL ZHE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ú','CYR SMALL ZE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'É','CYR SMALL I');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ë','CYR SMALL KA');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ì','CYR SMALL EL');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Í','CYR SMALL EM');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Î','CYR SMALL EN');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ï','CYR SMALL O');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ð','CYR SMALL PE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ò','CYR SMALL ER');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ó','CYR SMALL ES');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ô','CYR SMALL TE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Õ','CYR SMALL U');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Æ','CYR SMALL EF');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'È','CYR SMALL HA');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ã','CYR SMALL TSE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Þ','CYR SMALL CHE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Û','CYR SMALL SHA');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ý','CYR SMALL SCHA');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ß','CYR SMALL HARD SIGN');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ù','CYR SMALL YERU');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ø','CYR SMALL SOFT SIGN');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ü','CYR SMALL E');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'À','CYR SMALL YU');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'Ñ','CYR SMALL YA');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'á','CYR CAPIT A');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'â','CYR CAPIT BE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'÷','CYR CAPIT VE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ç','CYR CAPIT GE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ä','CYR CAPIT DE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'å','CYR CAPIT IE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'³','CYR CAPIT IO');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ö','CYR CAPIT ZHE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ú','CYR CAPIT ZE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'é','CYR CAPIT I');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ë','CYR CAPIT KA');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ì','CYR CAPIT EL');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'í','CYR CAPIT EM');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'î','CYR CAPIT EN');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ï','CYR CAPIT O');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ð','CYR CAPIT PE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ò','CYR CAPIT ER');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ó','CYR CAPIT ES');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ô','CYR CAPIT TE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'õ','CYR CAPIT U');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'æ','CYR CAPIT EF');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'è','CYR CAPIT HA');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ã','CYR CAPIT TSE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'þ','CYR CAPIT CHE');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'û','CYR CAPIT SHA');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ý','CYR CAPIT SCHA');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ÿ','CYR CAPIT HARD SIGN');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ù','CYR CAPIT YERU');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ø','CYR CAPIT SOFT SIGN');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ü','CYR CAPIT E');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'à','CYR CAPIT YU');
-INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ñ','CYR CAPIT YA');
-SET CHARACTER SET utf8;
-SELECT koi8_ru_f,MIN(comment),COUNT(*) FROM t1 GROUP BY 1;
-koi8_ru_f MIN(comment) COUNT(*)
-a LAT CAPIT A 2
-b LAT CAPIT B 2
-c LAT CAPIT C 2
-d LAT CAPIT D 2
-e LAT CAPIT E 2
-f LAT CAPIT F 2
-g LAT CAPIT G 2
-h LAT CAPIT H 2
-i LAT CAPIT I 2
-j LAT CAPIT J 2
-k LAT CAPIT K 2
-l LAT CAPIT L 2
-m LAT CAPIT M 2
-n LAT CAPIT N 2
-o LAT CAPIT O 2
-p LAT CAPIT P 2
-q LAT CAPIT Q 2
-r LAT CAPIT R 2
-s LAT CAPIT S 2
-t LAT CAPIT T 2
-u LAT CAPIT U 2
-v LAT CAPIT V 2
-w LAT CAPIT W 2
-x LAT CAPIT X 2
-y LAT CAPIT Y 2
-z LAT CAPIT Z 2
-а CYR CAPIT A 2
-б CYR CAPIT BE 2
-в CYR CAPIT VE 2
-г CYR CAPIT GE 2
-д CYR CAPIT DE 2
-е CYR CAPIT IE 2
-Ñ‘ CYR CAPIT IO 2
-ж CYR CAPIT ZHE 2
-з CYR CAPIT ZE 2
-и CYR CAPIT I 2
-к CYR CAPIT KA 2
-л CYR CAPIT EL 2
-м CYR CAPIT EM 2
-н CYR CAPIT EN 2
-о CYR CAPIT O 2
-п CYR CAPIT PE 2
-Ñ€ CYR CAPIT ER 2
-Ñ CYR CAPIT ES 2
-Ñ‚ CYR CAPIT TE 2
-у CYR CAPIT U 2
-Ñ„ CYR CAPIT EF 2
-Ñ… CYR CAPIT HA 2
-ц CYR CAPIT TSE 2
-ч CYR CAPIT CHE 2
-ш CYR CAPIT SHA 2
-щ CYR CAPIT SCHA 2
-ÑŠ CYR CAPIT HARD SIGN 2
-Ñ‹ CYR CAPIT YERU 2
-ь CYR CAPIT SOFT SIGN 2
-Ñ CYR CAPIT E 2
-ÑŽ CYR CAPIT YU 2
-Ñ CYR CAPIT YA 2
-ALTER TABLE t1 ADD utf8_f CHAR(32) CHARACTER SET utf8 NOT NULL default '';
-UPDATE t1 SET utf8_f=CONVERT(koi8_ru_f USING utf8);
-SET CHARACTER SET koi8r;
-SELECT * FROM t1;
-comment koi8_ru_f utf8_f
-LAT SMALL A a a
-LAT SMALL B b b
-LAT SMALL C c c
-LAT SMALL D d d
-LAT SMALL E e e
-LAT SMALL F f f
-LAT SMALL G g g
-LAT SMALL H h h
-LAT SMALL I i i
-LAT SMALL J j j
-LAT SMALL K k k
-LAT SMALL L l l
-LAT SMALL M m m
-LAT SMALL N n n
-LAT SMALL O o o
-LAT SMALL P p p
-LAT SMALL Q q q
-LAT SMALL R r r
-LAT SMALL S s s
-LAT SMALL T t t
-LAT SMALL U u u
-LAT SMALL V v v
-LAT SMALL W w w
-LAT SMALL X x x
-LAT SMALL Y y y
-LAT SMALL Z z z
-LAT CAPIT A A A
-LAT CAPIT B B B
-LAT CAPIT C C C
-LAT CAPIT D D D
-LAT CAPIT E E E
-LAT CAPIT F F F
-LAT CAPIT G G G
-LAT CAPIT H H H
-LAT CAPIT I I I
-LAT CAPIT J J J
-LAT CAPIT K K K
-LAT CAPIT L L L
-LAT CAPIT M M M
-LAT CAPIT N N N
-LAT CAPIT O O O
-LAT CAPIT P P P
-LAT CAPIT Q Q Q
-LAT CAPIT R R R
-LAT CAPIT S S S
-LAT CAPIT T T T
-LAT CAPIT U U U
-LAT CAPIT V V V
-LAT CAPIT W W W
-LAT CAPIT X X X
-LAT CAPIT Y Y Y
-LAT CAPIT Z Z Z
-CYR SMALL A Á Á
-CYR SMALL BE Â Â
-CYR SMALL VE × ×
-CYR SMALL GE Ç Ç
-CYR SMALL DE Ä Ä
-CYR SMALL IE Å Å
-CYR SMALL IO £ £
-CYR SMALL ZHE Ö Ö
-CYR SMALL ZE Ú Ú
-CYR SMALL I É É
-CYR SMALL KA Ë Ë
-CYR SMALL EL Ì Ì
-CYR SMALL EM Í Í
-CYR SMALL EN Î Î
-CYR SMALL O Ï Ï
-CYR SMALL PE Ð Ð
-CYR SMALL ER Ò Ò
-CYR SMALL ES Ó Ó
-CYR SMALL TE Ô Ô
-CYR SMALL U Õ Õ
-CYR SMALL EF Æ Æ
-CYR SMALL HA È È
-CYR SMALL TSE Ã Ã
-CYR SMALL CHE Þ Þ
-CYR SMALL SHA Û Û
-CYR SMALL SCHA Ý Ý
-CYR SMALL HARD SIGN ß ß
-CYR SMALL YERU Ù Ù
-CYR SMALL SOFT SIGN Ø Ø
-CYR SMALL E Ü Ü
-CYR SMALL YU À À
-CYR SMALL YA Ñ Ñ
-CYR CAPIT A á á
-CYR CAPIT BE â â
-CYR CAPIT VE ÷ ÷
-CYR CAPIT GE ç ç
-CYR CAPIT DE ä ä
-CYR CAPIT IE å å
-CYR CAPIT IO ³ ³
-CYR CAPIT ZHE ö ö
-CYR CAPIT ZE ú ú
-CYR CAPIT I é é
-CYR CAPIT KA ë ë
-CYR CAPIT EL ì ì
-CYR CAPIT EM í í
-CYR CAPIT EN î î
-CYR CAPIT O ï ï
-CYR CAPIT PE ð ð
-CYR CAPIT ER ò ò
-CYR CAPIT ES ó ó
-CYR CAPIT TE ô ô
-CYR CAPIT U õ õ
-CYR CAPIT EF æ æ
-CYR CAPIT HA è è
-CYR CAPIT TSE ã ã
-CYR CAPIT CHE þ þ
-CYR CAPIT SHA û û
-CYR CAPIT SCHA ý ý
-CYR CAPIT HARD SIGN ÿ ÿ
-CYR CAPIT YERU ù ù
-CYR CAPIT SOFT SIGN ø ø
-CYR CAPIT E ü ü
-CYR CAPIT YU à à
-CYR CAPIT YA ñ ñ
-ALTER TABLE t1 ADD bin_f CHAR(1) BYTE NOT NULL default '';
-UPDATE t1 SET bin_f=koi8_ru_f;
-SELECT COUNT(DISTINCT bin_f),COUNT(DISTINCT koi8_ru_f),COUNT(DISTINCT utf8_f) FROM t1;
-COUNT(DISTINCT bin_f) COUNT(DISTINCT koi8_ru_f) COUNT(DISTINCT utf8_f)
-116 58 57
-SELECT koi8_ru_f,MIN(comment) FROM t1 GROUP BY 1;
-koi8_ru_f MIN(comment)
-a LAT CAPIT A
-b LAT CAPIT B
-c LAT CAPIT C
-d LAT CAPIT D
-e LAT CAPIT E
-f LAT CAPIT F
-g LAT CAPIT G
-h LAT CAPIT H
-i LAT CAPIT I
-j LAT CAPIT J
-k LAT CAPIT K
-l LAT CAPIT L
-m LAT CAPIT M
-n LAT CAPIT N
-o LAT CAPIT O
-p LAT CAPIT P
-q LAT CAPIT Q
-r LAT CAPIT R
-s LAT CAPIT S
-t LAT CAPIT T
-u LAT CAPIT U
-v LAT CAPIT V
-w LAT CAPIT W
-x LAT CAPIT X
-y LAT CAPIT Y
-z LAT CAPIT Z
-Á CYR CAPIT A
-Â CYR CAPIT BE
-× CYR CAPIT VE
-Ç CYR CAPIT GE
-Ä CYR CAPIT DE
-Å CYR CAPIT IE
-£ CYR CAPIT IO
-Ö CYR CAPIT ZHE
-Ú CYR CAPIT ZE
-É CYR CAPIT I
-Ë CYR CAPIT KA
-Ì CYR CAPIT EL
-Í CYR CAPIT EM
-Î CYR CAPIT EN
-Ï CYR CAPIT O
-Ð CYR CAPIT PE
-Ò CYR CAPIT ER
-Ó CYR CAPIT ES
-Ô CYR CAPIT TE
-Õ CYR CAPIT U
-Æ CYR CAPIT EF
-È CYR CAPIT HA
-Ã CYR CAPIT TSE
-Þ CYR CAPIT CHE
-Û CYR CAPIT SHA
-Ý CYR CAPIT SCHA
-ß CYR CAPIT HARD SIGN
-Ù CYR CAPIT YERU
-Ø CYR CAPIT SOFT SIGN
-Ü CYR CAPIT E
-À CYR CAPIT YU
-Ñ CYR CAPIT YA
-SELECT utf8_f,MIN(comment) FROM t1 GROUP BY 1;
-utf8_f MIN(comment)
-a LAT CAPIT A
-b LAT CAPIT B
-c LAT CAPIT C
-d LAT CAPIT D
-e LAT CAPIT E
-f LAT CAPIT F
-g LAT CAPIT G
-h LAT CAPIT H
-i LAT CAPIT I
-j LAT CAPIT J
-k LAT CAPIT K
-l LAT CAPIT L
-m LAT CAPIT M
-n LAT CAPIT N
-o LAT CAPIT O
-p LAT CAPIT P
-q LAT CAPIT Q
-r LAT CAPIT R
-s LAT CAPIT S
-t LAT CAPIT T
-u LAT CAPIT U
-v LAT CAPIT V
-w LAT CAPIT W
-x LAT CAPIT X
-y LAT CAPIT Y
-z LAT CAPIT Z
-Á CYR CAPIT A
-Â CYR CAPIT BE
-× CYR CAPIT VE
-Ç CYR CAPIT GE
-Ä CYR CAPIT DE
-Å CYR CAPIT IE
-Ö CYR CAPIT ZHE
-Ú CYR CAPIT ZE
-É CYR CAPIT I
-Ë CYR CAPIT KA
-Ì CYR CAPIT EL
-Í CYR CAPIT EM
-Î CYR CAPIT EN
-Ï CYR CAPIT O
-Ð CYR CAPIT PE
-Ò CYR CAPIT ER
-Ó CYR CAPIT ES
-Ô CYR CAPIT TE
-Õ CYR CAPIT U
-Æ CYR CAPIT EF
-È CYR CAPIT HA
-Ã CYR CAPIT TSE
-Þ CYR CAPIT CHE
-Û CYR CAPIT SHA
-Ý CYR CAPIT SCHA
-ß CYR CAPIT HARD SIGN
-Ù CYR CAPIT YERU
-Ø CYR CAPIT SOFT SIGN
-Ü CYR CAPIT E
-À CYR CAPIT YU
-Ñ CYR CAPIT YA
-SELECT DISTINCT koi8_ru_f FROM t1;
-koi8_ru_f
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-n
-o
-p
-q
-r
-s
-t
-u
-v
-w
-x
-y
-z
-SELECT DISTINCT utf8_f FROM t1;
-utf8_f
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-n
-o
-p
-q
-r
-s
-t
-u
-v
-w
-x
-y
-z
-SELECT lower(koi8_ru_f) FROM t1 ORDER BY 1 DESC;
-lower(koi8_ru_f)
-z
-z
-y
-y
-x
-x
-w
-w
-v
-v
-u
-u
-t
-t
-s
-s
-r
-r
-q
-q
-p
-p
-o
-o
-n
-n
-m
-m
-l
-l
-k
-k
-j
-j
-i
-i
-h
-h
-g
-g
-f
-f
-e
-e
-d
-d
-c
-c
-b
-b
-a
-a
-SELECT lower(utf8_f) FROM t1 ORDER BY 1 DESC;
-lower(utf8_f)
-z
-z
-y
-y
-x
-x
-w
-w
-v
-v
-u
-u
-t
-t
-s
-s
-r
-r
-q
-q
-p
-p
-o
-o
-n
-n
-m
-m
-l
-l
-k
-k
-j
-j
-i
-i
-h
-h
-g
-g
-f
-f
-e
-e
-d
-d
-c
-c
-b
-b
-a
-a
-SELECT t11.comment,t12.comment
-FROM t1 t11,t1 t12 WHERE CONVERT(t11.koi8_ru_f USING utf8)=t12.utf8_f
-ORDER BY t11.koi8_ru_f,t11.comment,t12.comment;
-comment comment
-LAT CAPIT A LAT CAPIT A
-LAT CAPIT A LAT SMALL A
-LAT SMALL A LAT CAPIT A
-LAT SMALL A LAT SMALL A
-LAT CAPIT B LAT CAPIT B
-LAT CAPIT B LAT SMALL B
-LAT SMALL B LAT CAPIT B
-LAT SMALL B LAT SMALL B
-LAT CAPIT C LAT CAPIT C
-LAT CAPIT C LAT SMALL C
-LAT SMALL C LAT CAPIT C
-LAT SMALL C LAT SMALL C
-LAT CAPIT D LAT CAPIT D
-LAT CAPIT D LAT SMALL D
-LAT SMALL D LAT CAPIT D
-LAT SMALL D LAT SMALL D
-LAT CAPIT E LAT CAPIT E
-LAT CAPIT E LAT SMALL E
-LAT SMALL E LAT CAPIT E
-LAT SMALL E LAT SMALL E
-LAT CAPIT F LAT CAPIT F
-LAT CAPIT F LAT SMALL F
-LAT SMALL F LAT CAPIT F
-LAT SMALL F LAT SMALL F
-LAT CAPIT G LAT CAPIT G
-LAT CAPIT G LAT SMALL G
-LAT SMALL G LAT CAPIT G
-LAT SMALL G LAT SMALL G
-LAT CAPIT H LAT CAPIT H
-LAT CAPIT H LAT SMALL H
-LAT SMALL H LAT CAPIT H
-LAT SMALL H LAT SMALL H
-LAT CAPIT I LAT CAPIT I
-LAT CAPIT I LAT SMALL I
-LAT SMALL I LAT CAPIT I
-LAT SMALL I LAT SMALL I
-LAT CAPIT J LAT CAPIT J
-LAT CAPIT J LAT SMALL J
-LAT SMALL J LAT CAPIT J
-LAT SMALL J LAT SMALL J
-LAT CAPIT K LAT CAPIT K
-LAT CAPIT K LAT SMALL K
-LAT SMALL K LAT CAPIT K
-LAT SMALL K LAT SMALL K
-LAT CAPIT L LAT CAPIT L
-LAT CAPIT L LAT SMALL L
-LAT SMALL L LAT CAPIT L
-LAT SMALL L LAT SMALL L
-LAT CAPIT M LAT CAPIT M
-LAT CAPIT M LAT SMALL M
-LAT SMALL M LAT CAPIT M
-LAT SMALL M LAT SMALL M
-LAT CAPIT N LAT CAPIT N
-LAT CAPIT N LAT SMALL N
-LAT SMALL N LAT CAPIT N
-LAT SMALL N LAT SMALL N
-LAT CAPIT O LAT CAPIT O
-LAT CAPIT O LAT SMALL O
-LAT SMALL O LAT CAPIT O
-LAT SMALL O LAT SMALL O
-LAT CAPIT P LAT CAPIT P
-LAT CAPIT P LAT SMALL P
-LAT SMALL P LAT CAPIT P
-LAT SMALL P LAT SMALL P
-LAT CAPIT Q LAT CAPIT Q
-LAT CAPIT Q LAT SMALL Q
-LAT SMALL Q LAT CAPIT Q
-LAT SMALL Q LAT SMALL Q
-LAT CAPIT R LAT CAPIT R
-LAT CAPIT R LAT SMALL R
-LAT SMALL R LAT CAPIT R
-LAT SMALL R LAT SMALL R
-LAT CAPIT S LAT CAPIT S
-LAT CAPIT S LAT SMALL S
-LAT SMALL S LAT CAPIT S
-LAT SMALL S LAT SMALL S
-LAT CAPIT T LAT CAPIT T
-LAT CAPIT T LAT SMALL T
-LAT SMALL T LAT CAPIT T
-LAT SMALL T LAT SMALL T
-LAT CAPIT U LAT CAPIT U
-LAT CAPIT U LAT SMALL U
-LAT SMALL U LAT CAPIT U
-LAT SMALL U LAT SMALL U
-LAT CAPIT V LAT CAPIT V
-LAT CAPIT V LAT SMALL V
-LAT SMALL V LAT CAPIT V
-LAT SMALL V LAT SMALL V
-LAT CAPIT W LAT CAPIT W
-LAT CAPIT W LAT SMALL W
-LAT SMALL W LAT CAPIT W
-LAT SMALL W LAT SMALL W
-LAT CAPIT X LAT CAPIT X
-LAT CAPIT X LAT SMALL X
-LAT SMALL X LAT CAPIT X
-LAT SMALL X LAT SMALL X
-LAT CAPIT Y LAT CAPIT Y
-LAT CAPIT Y LAT SMALL Y
-LAT SMALL Y LAT CAPIT Y
-LAT SMALL Y LAT SMALL Y
-LAT CAPIT Z LAT CAPIT Z
-LAT CAPIT Z LAT SMALL Z
-LAT SMALL Z LAT CAPIT Z
-LAT SMALL Z LAT SMALL Z
-CYR CAPIT A CYR CAPIT A
-CYR CAPIT A CYR SMALL A
-CYR SMALL A CYR CAPIT A
-CYR SMALL A CYR SMALL A
-CYR CAPIT BE CYR CAPIT BE
-CYR CAPIT BE CYR SMALL BE
-CYR SMALL BE CYR CAPIT BE
-CYR SMALL BE CYR SMALL BE
-CYR CAPIT VE CYR CAPIT VE
-CYR CAPIT VE CYR SMALL VE
-CYR SMALL VE CYR CAPIT VE
-CYR SMALL VE CYR SMALL VE
-CYR CAPIT GE CYR CAPIT GE
-CYR CAPIT GE CYR SMALL GE
-CYR SMALL GE CYR CAPIT GE
-CYR SMALL GE CYR SMALL GE
-CYR CAPIT DE CYR CAPIT DE
-CYR CAPIT DE CYR SMALL DE
-CYR SMALL DE CYR CAPIT DE
-CYR SMALL DE CYR SMALL DE
-CYR CAPIT IE CYR CAPIT IE
-CYR CAPIT IE CYR CAPIT IO
-CYR CAPIT IE CYR SMALL IE
-CYR CAPIT IE CYR SMALL IO
-CYR SMALL IE CYR CAPIT IE
-CYR SMALL IE CYR CAPIT IO
-CYR SMALL IE CYR SMALL IE
-CYR SMALL IE CYR SMALL IO
-CYR CAPIT IO CYR CAPIT IE
-CYR CAPIT IO CYR CAPIT IO
-CYR CAPIT IO CYR SMALL IE
-CYR CAPIT IO CYR SMALL IO
-CYR SMALL IO CYR CAPIT IE
-CYR SMALL IO CYR CAPIT IO
-CYR SMALL IO CYR SMALL IE
-CYR SMALL IO CYR SMALL IO
-CYR CAPIT ZHE CYR CAPIT ZHE
-CYR CAPIT ZHE CYR SMALL ZHE
-CYR SMALL ZHE CYR CAPIT ZHE
-CYR SMALL ZHE CYR SMALL ZHE
-CYR CAPIT ZE CYR CAPIT ZE
-CYR CAPIT ZE CYR SMALL ZE
-CYR SMALL ZE CYR CAPIT ZE
-CYR SMALL ZE CYR SMALL ZE
-CYR CAPIT I CYR CAPIT I
-CYR CAPIT I CYR SMALL I
-CYR SMALL I CYR CAPIT I
-CYR SMALL I CYR SMALL I
-CYR CAPIT KA CYR CAPIT KA
-CYR CAPIT KA CYR SMALL KA
-CYR SMALL KA CYR CAPIT KA
-CYR SMALL KA CYR SMALL KA
-CYR CAPIT EL CYR CAPIT EL
-CYR CAPIT EL CYR SMALL EL
-CYR SMALL EL CYR CAPIT EL
-CYR SMALL EL CYR SMALL EL
-CYR CAPIT EM CYR CAPIT EM
-CYR CAPIT EM CYR SMALL EM
-CYR SMALL EM CYR CAPIT EM
-CYR SMALL EM CYR SMALL EM
-CYR CAPIT EN CYR CAPIT EN
-CYR CAPIT EN CYR SMALL EN
-CYR SMALL EN CYR CAPIT EN
-CYR SMALL EN CYR SMALL EN
-CYR CAPIT O CYR CAPIT O
-CYR CAPIT O CYR SMALL O
-CYR SMALL O CYR CAPIT O
-CYR SMALL O CYR SMALL O
-CYR CAPIT PE CYR CAPIT PE
-CYR CAPIT PE CYR SMALL PE
-CYR SMALL PE CYR CAPIT PE
-CYR SMALL PE CYR SMALL PE
-CYR CAPIT ER CYR CAPIT ER
-CYR CAPIT ER CYR SMALL ER
-CYR SMALL ER CYR CAPIT ER
-CYR SMALL ER CYR SMALL ER
-CYR CAPIT ES CYR CAPIT ES
-CYR CAPIT ES CYR SMALL ES
-CYR SMALL ES CYR CAPIT ES
-CYR SMALL ES CYR SMALL ES
-CYR CAPIT TE CYR CAPIT TE
-CYR CAPIT TE CYR SMALL TE
-CYR SMALL TE CYR CAPIT TE
-CYR SMALL TE CYR SMALL TE
-CYR CAPIT U CYR CAPIT U
-CYR CAPIT U CYR SMALL U
-CYR SMALL U CYR CAPIT U
-CYR SMALL U CYR SMALL U
-CYR CAPIT EF CYR CAPIT EF
-CYR CAPIT EF CYR SMALL EF
-CYR SMALL EF CYR CAPIT EF
-CYR SMALL EF CYR SMALL EF
-CYR CAPIT HA CYR CAPIT HA
-CYR CAPIT HA CYR SMALL HA
-CYR SMALL HA CYR CAPIT HA
-CYR SMALL HA CYR SMALL HA
-CYR CAPIT TSE CYR CAPIT TSE
-CYR CAPIT TSE CYR SMALL TSE
-CYR SMALL TSE CYR CAPIT TSE
-CYR SMALL TSE CYR SMALL TSE
-CYR CAPIT CHE CYR CAPIT CHE
-CYR CAPIT CHE CYR SMALL CHE
-CYR SMALL CHE CYR CAPIT CHE
-CYR SMALL CHE CYR SMALL CHE
-CYR CAPIT SHA CYR CAPIT SHA
-CYR CAPIT SHA CYR SMALL SHA
-CYR SMALL SHA CYR CAPIT SHA
-CYR SMALL SHA CYR SMALL SHA
-CYR CAPIT SCHA CYR CAPIT SCHA
-CYR CAPIT SCHA CYR SMALL SCHA
-CYR SMALL SCHA CYR CAPIT SCHA
-CYR SMALL SCHA CYR SMALL SCHA
-CYR CAPIT HARD SIGN CYR CAPIT HARD SIGN
-CYR CAPIT HARD SIGN CYR SMALL HARD SIGN
-CYR SMALL HARD SIGN CYR CAPIT HARD SIGN
-CYR SMALL HARD SIGN CYR SMALL HARD SIGN
-CYR CAPIT YERU CYR CAPIT YERU
-CYR CAPIT YERU CYR SMALL YERU
-CYR SMALL YERU CYR CAPIT YERU
-CYR SMALL YERU CYR SMALL YERU
-CYR CAPIT SOFT SIGN CYR CAPIT SOFT SIGN
-CYR CAPIT SOFT SIGN CYR SMALL SOFT SIGN
-CYR SMALL SOFT SIGN CYR CAPIT SOFT SIGN
-CYR SMALL SOFT SIGN CYR SMALL SOFT SIGN
-CYR CAPIT E CYR CAPIT E
-CYR CAPIT E CYR SMALL E
-CYR SMALL E CYR CAPIT E
-CYR SMALL E CYR SMALL E
-CYR CAPIT YU CYR CAPIT YU
-CYR CAPIT YU CYR SMALL YU
-CYR SMALL YU CYR CAPIT YU
-CYR SMALL YU CYR SMALL YU
-CYR CAPIT YA CYR CAPIT YA
-CYR CAPIT YA CYR SMALL YA
-CYR SMALL YA CYR CAPIT YA
-CYR SMALL YA CYR SMALL YA
-SELECT t11.comment,t12.comment
-FROM t1 t11,t1 t12
-WHERE t11.koi8_ru_f=CONVERT(t12.utf8_f USING koi8r)
-ORDER BY t12.utf8_f,t11.comment,t12.comment;
-comment comment
-LAT CAPIT A LAT CAPIT A
-LAT CAPIT A LAT SMALL A
-LAT SMALL A LAT CAPIT A
-LAT SMALL A LAT SMALL A
-LAT CAPIT B LAT CAPIT B
-LAT CAPIT B LAT SMALL B
-LAT SMALL B LAT CAPIT B
-LAT SMALL B LAT SMALL B
-LAT CAPIT C LAT CAPIT C
-LAT CAPIT C LAT SMALL C
-LAT SMALL C LAT CAPIT C
-LAT SMALL C LAT SMALL C
-LAT CAPIT D LAT CAPIT D
-LAT CAPIT D LAT SMALL D
-LAT SMALL D LAT CAPIT D
-LAT SMALL D LAT SMALL D
-LAT CAPIT E LAT CAPIT E
-LAT CAPIT E LAT SMALL E
-LAT SMALL E LAT CAPIT E
-LAT SMALL E LAT SMALL E
-LAT CAPIT F LAT CAPIT F
-LAT CAPIT F LAT SMALL F
-LAT SMALL F LAT CAPIT F
-LAT SMALL F LAT SMALL F
-LAT CAPIT G LAT CAPIT G
-LAT CAPIT G LAT SMALL G
-LAT SMALL G LAT CAPIT G
-LAT SMALL G LAT SMALL G
-LAT CAPIT H LAT CAPIT H
-LAT CAPIT H LAT SMALL H
-LAT SMALL H LAT CAPIT H
-LAT SMALL H LAT SMALL H
-LAT CAPIT I LAT CAPIT I
-LAT CAPIT I LAT SMALL I
-LAT SMALL I LAT CAPIT I
-LAT SMALL I LAT SMALL I
-LAT CAPIT J LAT CAPIT J
-LAT CAPIT J LAT SMALL J
-LAT SMALL J LAT CAPIT J
-LAT SMALL J LAT SMALL J
-LAT CAPIT K LAT CAPIT K
-LAT CAPIT K LAT SMALL K
-LAT SMALL K LAT CAPIT K
-LAT SMALL K LAT SMALL K
-LAT CAPIT L LAT CAPIT L
-LAT CAPIT L LAT SMALL L
-LAT SMALL L LAT CAPIT L
-LAT SMALL L LAT SMALL L
-LAT CAPIT M LAT CAPIT M
-LAT CAPIT M LAT SMALL M
-LAT SMALL M LAT CAPIT M
-LAT SMALL M LAT SMALL M
-LAT CAPIT N LAT CAPIT N
-LAT CAPIT N LAT SMALL N
-LAT SMALL N LAT CAPIT N
-LAT SMALL N LAT SMALL N
-LAT CAPIT O LAT CAPIT O
-LAT CAPIT O LAT SMALL O
-LAT SMALL O LAT CAPIT O
-LAT SMALL O LAT SMALL O
-LAT CAPIT P LAT CAPIT P
-LAT CAPIT P LAT SMALL P
-LAT SMALL P LAT CAPIT P
-LAT SMALL P LAT SMALL P
-LAT CAPIT Q LAT CAPIT Q
-LAT CAPIT Q LAT SMALL Q
-LAT SMALL Q LAT CAPIT Q
-LAT SMALL Q LAT SMALL Q
-LAT CAPIT R LAT CAPIT R
-LAT CAPIT R LAT SMALL R
-LAT SMALL R LAT CAPIT R
-LAT SMALL R LAT SMALL R
-LAT CAPIT S LAT CAPIT S
-LAT CAPIT S LAT SMALL S
-LAT SMALL S LAT CAPIT S
-LAT SMALL S LAT SMALL S
-LAT CAPIT T LAT CAPIT T
-LAT CAPIT T LAT SMALL T
-LAT SMALL T LAT CAPIT T
-LAT SMALL T LAT SMALL T
-LAT CAPIT U LAT CAPIT U
-LAT CAPIT U LAT SMALL U
-LAT SMALL U LAT CAPIT U
-LAT SMALL U LAT SMALL U
-LAT CAPIT V LAT CAPIT V
-LAT CAPIT V LAT SMALL V
-LAT SMALL V LAT CAPIT V
-LAT SMALL V LAT SMALL V
-LAT CAPIT W LAT CAPIT W
-LAT CAPIT W LAT SMALL W
-LAT SMALL W LAT CAPIT W
-LAT SMALL W LAT SMALL W
-LAT CAPIT X LAT CAPIT X
-LAT CAPIT X LAT SMALL X
-LAT SMALL X LAT CAPIT X
-LAT SMALL X LAT SMALL X
-LAT CAPIT Y LAT CAPIT Y
-LAT CAPIT Y LAT SMALL Y
-LAT SMALL Y LAT CAPIT Y
-LAT SMALL Y LAT SMALL Y
-LAT CAPIT Z LAT CAPIT Z
-LAT CAPIT Z LAT SMALL Z
-LAT SMALL Z LAT CAPIT Z
-LAT SMALL Z LAT SMALL Z
-CYR CAPIT A CYR CAPIT A
-CYR CAPIT A CYR SMALL A
-CYR SMALL A CYR CAPIT A
-CYR SMALL A CYR SMALL A
-CYR CAPIT BE CYR CAPIT BE
-CYR CAPIT BE CYR SMALL BE
-CYR SMALL BE CYR CAPIT BE
-CYR SMALL BE CYR SMALL BE
-CYR CAPIT VE CYR CAPIT VE
-CYR CAPIT VE CYR SMALL VE
-CYR SMALL VE CYR CAPIT VE
-CYR SMALL VE CYR SMALL VE
-CYR CAPIT GE CYR CAPIT GE
-CYR CAPIT GE CYR SMALL GE
-CYR SMALL GE CYR CAPIT GE
-CYR SMALL GE CYR SMALL GE
-CYR CAPIT DE CYR CAPIT DE
-CYR CAPIT DE CYR SMALL DE
-CYR SMALL DE CYR CAPIT DE
-CYR SMALL DE CYR SMALL DE
-CYR CAPIT IE CYR CAPIT IE
-CYR CAPIT IE CYR SMALL IE
-CYR CAPIT IO CYR CAPIT IO
-CYR CAPIT IO CYR SMALL IO
-CYR SMALL IE CYR CAPIT IE
-CYR SMALL IE CYR SMALL IE
-CYR SMALL IO CYR CAPIT IO
-CYR SMALL IO CYR SMALL IO
-CYR CAPIT ZHE CYR CAPIT ZHE
-CYR CAPIT ZHE CYR SMALL ZHE
-CYR SMALL ZHE CYR CAPIT ZHE
-CYR SMALL ZHE CYR SMALL ZHE
-CYR CAPIT ZE CYR CAPIT ZE
-CYR CAPIT ZE CYR SMALL ZE
-CYR SMALL ZE CYR CAPIT ZE
-CYR SMALL ZE CYR SMALL ZE
-CYR CAPIT I CYR CAPIT I
-CYR CAPIT I CYR SMALL I
-CYR SMALL I CYR CAPIT I
-CYR SMALL I CYR SMALL I
-CYR CAPIT KA CYR CAPIT KA
-CYR CAPIT KA CYR SMALL KA
-CYR SMALL KA CYR CAPIT KA
-CYR SMALL KA CYR SMALL KA
-CYR CAPIT EL CYR CAPIT EL
-CYR CAPIT EL CYR SMALL EL
-CYR SMALL EL CYR CAPIT EL
-CYR SMALL EL CYR SMALL EL
-CYR CAPIT EM CYR CAPIT EM
-CYR CAPIT EM CYR SMALL EM
-CYR SMALL EM CYR CAPIT EM
-CYR SMALL EM CYR SMALL EM
-CYR CAPIT EN CYR CAPIT EN
-CYR CAPIT EN CYR SMALL EN
-CYR SMALL EN CYR CAPIT EN
-CYR SMALL EN CYR SMALL EN
-CYR CAPIT O CYR CAPIT O
-CYR CAPIT O CYR SMALL O
-CYR SMALL O CYR CAPIT O
-CYR SMALL O CYR SMALL O
-CYR CAPIT PE CYR CAPIT PE
-CYR CAPIT PE CYR SMALL PE
-CYR SMALL PE CYR CAPIT PE
-CYR SMALL PE CYR SMALL PE
-CYR CAPIT ER CYR CAPIT ER
-CYR CAPIT ER CYR SMALL ER
-CYR SMALL ER CYR CAPIT ER
-CYR SMALL ER CYR SMALL ER
-CYR CAPIT ES CYR CAPIT ES
-CYR CAPIT ES CYR SMALL ES
-CYR SMALL ES CYR CAPIT ES
-CYR SMALL ES CYR SMALL ES
-CYR CAPIT TE CYR CAPIT TE
-CYR CAPIT TE CYR SMALL TE
-CYR SMALL TE CYR CAPIT TE
-CYR SMALL TE CYR SMALL TE
-CYR CAPIT U CYR CAPIT U
-CYR CAPIT U CYR SMALL U
-CYR SMALL U CYR CAPIT U
-CYR SMALL U CYR SMALL U
-CYR CAPIT EF CYR CAPIT EF
-CYR CAPIT EF CYR SMALL EF
-CYR SMALL EF CYR CAPIT EF
-CYR SMALL EF CYR SMALL EF
-CYR CAPIT HA CYR CAPIT HA
-CYR CAPIT HA CYR SMALL HA
-CYR SMALL HA CYR CAPIT HA
-CYR SMALL HA CYR SMALL HA
-CYR CAPIT TSE CYR CAPIT TSE
-CYR CAPIT TSE CYR SMALL TSE
-CYR SMALL TSE CYR CAPIT TSE
-CYR SMALL TSE CYR SMALL TSE
-CYR CAPIT CHE CYR CAPIT CHE
-CYR CAPIT CHE CYR SMALL CHE
-CYR SMALL CHE CYR CAPIT CHE
-CYR SMALL CHE CYR SMALL CHE
-CYR CAPIT SHA CYR CAPIT SHA
-CYR CAPIT SHA CYR SMALL SHA
-CYR SMALL SHA CYR CAPIT SHA
-CYR SMALL SHA CYR SMALL SHA
-CYR CAPIT SCHA CYR CAPIT SCHA
-CYR CAPIT SCHA CYR SMALL SCHA
-CYR SMALL SCHA CYR CAPIT SCHA
-CYR SMALL SCHA CYR SMALL SCHA
-CYR CAPIT HARD SIGN CYR CAPIT HARD SIGN
-CYR CAPIT HARD SIGN CYR SMALL HARD SIGN
-CYR SMALL HARD SIGN CYR CAPIT HARD SIGN
-CYR SMALL HARD SIGN CYR SMALL HARD SIGN
-CYR CAPIT YERU CYR CAPIT YERU
-CYR CAPIT YERU CYR SMALL YERU
-CYR SMALL YERU CYR CAPIT YERU
-CYR SMALL YERU CYR SMALL YERU
-CYR CAPIT SOFT SIGN CYR CAPIT SOFT SIGN
-CYR CAPIT SOFT SIGN CYR SMALL SOFT SIGN
-CYR SMALL SOFT SIGN CYR CAPIT SOFT SIGN
-CYR SMALL SOFT SIGN CYR SMALL SOFT SIGN
-CYR CAPIT E CYR CAPIT E
-CYR CAPIT E CYR SMALL E
-CYR SMALL E CYR CAPIT E
-CYR SMALL E CYR SMALL E
-CYR CAPIT YU CYR CAPIT YU
-CYR CAPIT YU CYR SMALL YU
-CYR SMALL YU CYR CAPIT YU
-CYR SMALL YU CYR SMALL YU
-CYR CAPIT YA CYR CAPIT YA
-CYR CAPIT YA CYR SMALL YA
-CYR SMALL YA CYR CAPIT YA
-CYR SMALL YA CYR SMALL YA
-SET CHARACTER SET utf8;
-ALTER TABLE t1 ADD ucs2_f CHAR(32) CHARACTER SET ucs2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 CHANGE ucs2_f ucs2_f CHAR(32) UNICODE NOT NULL;
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0391,'GREEK CAPIT ALPHA');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0392,'GREEK CAPIT BETA');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0393,'GREEK CAPIT GAMMA');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0394,'GREEK CAPIT DELTA');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0395,'GREEK CAPIT EPSILON');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x03B1,'GREEK SMALL ALPHA');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x03B2,'GREEK SMALL BETA');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x03B3,'GREEK SMALL GAMMA');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x03B4,'GREEK SMALL DELTA');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x03B5,'GREEK SMALL EPSILON');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0531,'ARMENIAN CAPIT AYB');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0532,'ARMENIAN CAPIT BEN');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0533,'ARMENIAN CAPIT GIM');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0534,'ARMENIAN CAPIT DA');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0535,'ARMENIAN CAPIT ECH');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0536,'ARMENIAN CAPIT ZA');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0561,'ARMENIAN SMALL YAB');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0562,'ARMENIAN SMALL BEN');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0563,'ARMENIAN SMALL GIM');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0564,'ARMENIAN SMALL DA');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0565,'ARMENIAN SMALL ECH');
-INSERT INTO t1 (ucs2_f,comment) VALUES (0x0566,'ARMENIAN SMALL ZA');
-ALTER TABLE t1 ADD armscii8_f CHAR(32) CHARACTER SET armscii8 NOT NULL;
-ALTER TABLE t1 ADD greek_f CHAR(32) CHARACTER SET greek NOT NULL;
-UPDATE t1 SET greek_f=CONVERT(ucs2_f USING greek) WHERE comment LIKE _latin2'GRE%';
-UPDATE t1 SET armscii8_f=CONVERT(ucs2_f USING armscii8) WHERE comment LIKE _latin2'ARM%';
-UPDATE t1 SET utf8_f=CONVERT(ucs2_f USING utf8) WHERE utf8_f=_utf8'';
-UPDATE t1 SET ucs2_f=CONVERT(utf8_f USING ucs2) WHERE ucs2_f=_ucs2'';
-SELECT comment, koi8_ru_f, utf8_f, hex(bin_f), ucs2_f, armscii8_f, greek_f FROM t1;
-comment koi8_ru_f utf8_f hex(bin_f) ucs2_f armscii8_f greek_f
-LAT SMALL A a a 61 a
-LAT SMALL B b b 62 b
-LAT SMALL C c c 63 c
-LAT SMALL D d d 64 d
-LAT SMALL E e e 65 e
-LAT SMALL F f f 66 f
-LAT SMALL G g g 67 g
-LAT SMALL H h h 68 h
-LAT SMALL I i i 69 i
-LAT SMALL J j j 6A j
-LAT SMALL K k k 6B k
-LAT SMALL L l l 6C l
-LAT SMALL M m m 6D m
-LAT SMALL N n n 6E n
-LAT SMALL O o o 6F o
-LAT SMALL P p p 70 p
-LAT SMALL Q q q 71 q
-LAT SMALL R r r 72 r
-LAT SMALL S s s 73 s
-LAT SMALL T t t 74 t
-LAT SMALL U u u 75 u
-LAT SMALL V v v 76 v
-LAT SMALL W w w 77 w
-LAT SMALL X x x 78 x
-LAT SMALL Y y y 79 y
-LAT SMALL Z z z 7A z
-LAT CAPIT A A A 41 A
-LAT CAPIT B B B 42 B
-LAT CAPIT C C C 43 C
-LAT CAPIT D D D 44 D
-LAT CAPIT E E E 45 E
-LAT CAPIT F F F 46 F
-LAT CAPIT G G G 47 G
-LAT CAPIT H H H 48 H
-LAT CAPIT I I I 49 I
-LAT CAPIT J J J 4A J
-LAT CAPIT K K K 4B K
-LAT CAPIT L L L 4C L
-LAT CAPIT M M M 4D M
-LAT CAPIT N N N 4E N
-LAT CAPIT O O O 4F O
-LAT CAPIT P P P 50 P
-LAT CAPIT Q Q Q 51 Q
-LAT CAPIT R R R 52 R
-LAT CAPIT S S S 53 S
-LAT CAPIT T T T 54 T
-LAT CAPIT U U U 55 U
-LAT CAPIT V V V 56 V
-LAT CAPIT W W W 57 W
-LAT CAPIT X X X 58 X
-LAT CAPIT Y Y Y 59 Y
-LAT CAPIT Z Z Z 5A Z
-CYR SMALL A а а C1 а
-CYR SMALL BE б б C2 б
-CYR SMALL VE в в D7 в
-CYR SMALL GE г г C7 г
-CYR SMALL DE д д C4 д
-CYR SMALL IE е е C5 е
-CYR SMALL IO Ñ‘ Ñ‘ A3 Ñ‘
-CYR SMALL ZHE ж ж D6 ж
-CYR SMALL ZE з з DA з
-CYR SMALL I и и C9 и
-CYR SMALL KA к к CB к
-CYR SMALL EL л л CC л
-CYR SMALL EM м м CD м
-CYR SMALL EN н н CE н
-CYR SMALL O о о CF о
-CYR SMALL PE п п D0 п
-CYR SMALL ER р р D2 р
-CYR SMALL ES Ñ Ñ D3 Ñ
-CYR SMALL TE Ñ‚ Ñ‚ D4 Ñ‚
-CYR SMALL U у у D5 у
-CYR SMALL EF Ñ„ Ñ„ C6 Ñ„
-CYR SMALL HA Ñ… Ñ… C8 Ñ…
-CYR SMALL TSE ц ц C3 ц
-CYR SMALL CHE ч ч DE ч
-CYR SMALL SHA ш ш DB ш
-CYR SMALL SCHA щ щ DD щ
-CYR SMALL HARD SIGN ÑŠ ÑŠ DF ÑŠ
-CYR SMALL YERU Ñ‹ Ñ‹ D9 Ñ‹
-CYR SMALL SOFT SIGN ь ь D8 ь
-CYR SMALL E Ñ Ñ DC Ñ
-CYR SMALL YU ÑŽ ÑŽ C0 ÑŽ
-CYR SMALL YA Ñ Ñ D1 Ñ
-CYR CAPIT A Ð Ð E1 Ð
-CYR CAPIT BE Б Б E2 Б
-CYR CAPIT VE Ð’ Ð’ F7 Ð’
-CYR CAPIT GE Г Г E7 Г
-CYR CAPIT DE Д Д E4 Д
-CYR CAPIT IE Е Е E5 Е
-CYR CAPIT IO Ð Ð B3 Ð
-CYR CAPIT ZHE Ж Ж F6 Ж
-CYR CAPIT ZE З З FA З
-CYR CAPIT I И И E9 И
-CYR CAPIT KA К К EB К
-CYR CAPIT EL Л Л EC Л
-CYR CAPIT EM М М ED М
-CYR CAPIT EN Ð Ð EE Ð
-CYR CAPIT O О О EF О
-CYR CAPIT PE П П F0 П
-CYR CAPIT ER Р Р F2 Р
-CYR CAPIT ES С С F3 С
-CYR CAPIT TE Т Т F4 Т
-CYR CAPIT U У У F5 У
-CYR CAPIT EF Ф Ф E6 Ф
-CYR CAPIT HA Х Х E8 Х
-CYR CAPIT TSE Ц Ц E3 Ц
-CYR CAPIT CHE Ч Ч FE Ч
-CYR CAPIT SHA Ш Ш FB Ш
-CYR CAPIT SCHA Щ Щ FD Щ
-CYR CAPIT HARD SIGN Ъ Ъ FF Ъ
-CYR CAPIT YERU Ы Ы F9 Ы
-CYR CAPIT SOFT SIGN Ь Ь F8 Ь
-CYR CAPIT E Э Э FC Э
-CYR CAPIT YU Ю Ю E0 Ю
-CYR CAPIT YA Я Я F1 Я
-GREEK CAPIT ALPHA Α 00 Α Α
-GREEK CAPIT BETA Î’ 00 Î’ Î’
-GREEK CAPIT GAMMA Γ 00 Γ Γ
-GREEK CAPIT DELTA Δ 00 Δ Δ
-GREEK CAPIT EPSILON Ε 00 Ε Ε
-GREEK SMALL ALPHA α 00 α α
-GREEK SMALL BETA β 00 β β
-GREEK SMALL GAMMA γ 00 γ γ
-GREEK SMALL DELTA δ 00 δ δ
-GREEK SMALL EPSILON ε 00 ε ε
-ARMENIAN CAPIT AYB Ô± 00 Ô± Ô±
-ARMENIAN CAPIT BEN Ô² 00 Ô² Ô²
-ARMENIAN CAPIT GIM Ô³ 00 Ô³ Ô³
-ARMENIAN CAPIT DA Ô´ 00 Ô´ Ô´
-ARMENIAN CAPIT ECH Ôµ 00 Ôµ Ôµ
-ARMENIAN CAPIT ZA Ô¶ 00 Ô¶ Ô¶
-ARMENIAN SMALL YAB Õ¡ 00 Õ¡ Õ¡
-ARMENIAN SMALL BEN Õ¢ 00 Õ¢ Õ¢
-ARMENIAN SMALL GIM Õ£ 00 Õ£ Õ£
-ARMENIAN SMALL DA Õ¤ 00 Õ¤ Õ¤
-ARMENIAN SMALL ECH Õ¥ 00 Õ¥ Õ¥
-ARMENIAN SMALL ZA Õ¦ 00 Õ¦ Õ¦
-SET CHARACTER SET 'binary';
-SELECT * FROM t1;
-comment koi8_ru_f utf8_f bin_f ucs2_f armscii8_f greek_f
-LAT SMALL A a a a
-LAT SMALL B b b b
-LAT SMALL C c c c
-LAT SMALL D d d d
-LAT SMALL E e e e
-LAT SMALL F f f f
-LAT SMALL G g g g
-LAT SMALL H h h h
-LAT SMALL I i i i
-LAT SMALL J j j j
-LAT SMALL K k k k
-LAT SMALL L l l l
-LAT SMALL M m m m
-LAT SMALL N n n n
-LAT SMALL O o o o
-LAT SMALL P p p p
-LAT SMALL Q q q q
-LAT SMALL R r r r
-LAT SMALL S s s s
-LAT SMALL T t t t
-LAT SMALL U u u u
-LAT SMALL V v v v
-LAT SMALL W w w w
-LAT SMALL X x x x
-LAT SMALL Y y y y
-LAT SMALL Z z z z
-LAT CAPIT A A A A
-LAT CAPIT B B B B
-LAT CAPIT C C C C
-LAT CAPIT D D D D
-LAT CAPIT E E E E
-LAT CAPIT F F F F
-LAT CAPIT G G G G
-LAT CAPIT H H H H
-LAT CAPIT I I I I
-LAT CAPIT J J J J
-LAT CAPIT K K K K
-LAT CAPIT L L L L
-LAT CAPIT M M M M
-LAT CAPIT N N N N
-LAT CAPIT O O O O
-LAT CAPIT P P P P
-LAT CAPIT Q Q Q Q
-LAT CAPIT R R R R
-LAT CAPIT S S S S
-LAT CAPIT T T T T
-LAT CAPIT U U U U
-LAT CAPIT V V V V
-LAT CAPIT W W W W
-LAT CAPIT X X X X
-LAT CAPIT Y Y Y Y
-LAT CAPIT Z Z Z Z
-CYR SMALL A Á а Á 0
-CYR SMALL BE  б  1
-CYR SMALL VE × Ð² × 2
-CYR SMALL GE Ç Ð³ Ç 3
-CYR SMALL DE Ä Ð´ Ä 4
-CYR SMALL IE Šе Š5
-CYR SMALL IO £ Ñ‘ £ Q
-CYR SMALL ZHE Ö Ð¶ Ö 6
-CYR SMALL ZE Ú Ð· Ú 7
-CYR SMALL I É Ð¸ É 8
-CYR SMALL KA Ë Ðº Ë :
-CYR SMALL EL Ì Ð» Ì ;
-CYR SMALL EM Í Ð¼ Í <
-CYR SMALL EN Πн Π=
-CYR SMALL O Ï Ð¾ Ï >
-CYR SMALL PE Рп Р?
-CYR SMALL ER Ò Ñ€ Ò @
-CYR SMALL ES Ó Ñ Ó A
-CYR SMALL TE Ô Ñ‚ Ô B
-CYR SMALL U Õ Ñƒ Õ C
-CYR SMALL EF Æ Ñ„ Æ D
-CYR SMALL HA È Ñ… È E
-CYR SMALL TSE à ц à F
-CYR SMALL CHE Þ Ñ‡ Þ G
-CYR SMALL SHA Û Ñˆ Û H
-CYR SMALL SCHA Ý Ñ‰ Ý I
-CYR SMALL HARD SIGN ß ÑŠ ß J
-CYR SMALL YERU Ù Ñ‹ Ù K
-CYR SMALL SOFT SIGN Ø ÑŒ Ø L
-CYR SMALL E Ü Ñ Ü M
-CYR SMALL YU À ÑŽ À N
-CYR SMALL YA Ñ Ñ Ñ O
-CYR CAPIT A á Ð á 
-CYR CAPIT BE â Б â 
-CYR CAPIT VE ÷ Ð’ ÷ 
-CYR CAPIT GE ç Г ç 
-CYR CAPIT DE ä Д ä 
-CYR CAPIT IE å Е å 
-CYR CAPIT IO ³ Ð ³ 
-CYR CAPIT ZHE ö Ж ö 
-CYR CAPIT ZE ú З ú 
-CYR CAPIT I é И é 
-CYR CAPIT KA ë К ë 
-CYR CAPIT EL ì Л ì 
-CYR CAPIT EM í Ðœ í 
-CYR CAPIT EN î Ð î 
-CYR CAPIT O ï О ï 
-CYR CAPIT PE ð П ð 
-CYR CAPIT ER ò Р ò 
-CYR CAPIT ES ó С ó !
-CYR CAPIT TE ô Т ô "
-CYR CAPIT U õ У õ #
-CYR CAPIT EF æ Ф æ $
-CYR CAPIT HA è Ð¥ è %
-CYR CAPIT TSE ã Ц ã &
-CYR CAPIT CHE þ Ч þ '
-CYR CAPIT SHA û Ш û (
-CYR CAPIT SCHA ý Щ ý )
-CYR CAPIT HARD SIGN ÿ Ъ ÿ *
-CYR CAPIT YERU ù Ы ù +
-CYR CAPIT SOFT SIGN ø Ь ø ,
-CYR CAPIT E ü Э ü -
-CYR CAPIT YU à Ю à .
-CYR CAPIT YA ñ Я ñ /
-GREEK CAPIT ALPHA Α
-GREEK CAPIT BETA Î’
-GREEK CAPIT GAMMA Γ
-GREEK CAPIT DELTA Δ
-GREEK CAPIT EPSILON Ε
-GREEK SMALL ALPHA α
-GREEK SMALL BETA β
-GREEK SMALL GAMMA γ
-GREEK SMALL DELTA δ
-GREEK SMALL EPSILON ε
-ARMENIAN CAPIT AYB Ô±
-ARMENIAN CAPIT BEN Ô²
-ARMENIAN CAPIT GIM Ô³
-ARMENIAN CAPIT DA Ô´
-ARMENIAN CAPIT ECH Ôµ
-ARMENIAN CAPIT ZA Ô¶
-ARMENIAN SMALL YAB Õ¡
-ARMENIAN SMALL BEN Õ¢
-ARMENIAN SMALL GIM Õ£
-ARMENIAN SMALL DA Õ¤
-ARMENIAN SMALL ECH Õ¥
-ARMENIAN SMALL ZA Õ¦
-SELECT min(comment),count(*) FROM t1 GROUP BY ucs2_f;
-min(comment) count(*)
-LAT CAPIT A 2
-LAT CAPIT B 2
-LAT CAPIT C 2
-LAT CAPIT D 2
-LAT CAPIT E 2
-LAT CAPIT F 2
-LAT CAPIT G 2
-LAT CAPIT H 2
-LAT CAPIT I 2
-LAT CAPIT J 2
-LAT CAPIT K 2
-LAT CAPIT L 2
-LAT CAPIT M 2
-LAT CAPIT N 2
-LAT CAPIT O 2
-LAT CAPIT P 2
-LAT CAPIT Q 2
-LAT CAPIT R 2
-LAT CAPIT S 2
-LAT CAPIT T 2
-LAT CAPIT U 2
-LAT CAPIT V 2
-LAT CAPIT W 2
-LAT CAPIT X 2
-LAT CAPIT Y 2
-LAT CAPIT Z 2
-GREEK CAPIT ALPHA 2
-GREEK CAPIT BETA 2
-GREEK CAPIT GAMMA 2
-GREEK CAPIT DELTA 2
-GREEK CAPIT EPSILON 2
-CYR CAPIT A 2
-CYR CAPIT BE 2
-CYR CAPIT VE 2
-CYR CAPIT GE 2
-CYR CAPIT DE 2
-CYR CAPIT IE 4
-CYR CAPIT ZHE 2
-CYR CAPIT ZE 2
-CYR CAPIT I 2
-CYR CAPIT KA 2
-CYR CAPIT EL 2
-CYR CAPIT EM 2
-CYR CAPIT EN 2
-CYR CAPIT O 2
-CYR CAPIT PE 2
-CYR CAPIT ER 2
-CYR CAPIT ES 2
-CYR CAPIT TE 2
-CYR CAPIT U 2
-CYR CAPIT EF 2
-CYR CAPIT HA 2
-CYR CAPIT TSE 2
-CYR CAPIT CHE 2
-CYR CAPIT SHA 2
-CYR CAPIT SCHA 2
-CYR CAPIT HARD SIGN 2
-CYR CAPIT YERU 2
-CYR CAPIT SOFT SIGN 2
-CYR CAPIT E 2
-CYR CAPIT YU 2
-CYR CAPIT YA 2
-ARMENIAN CAPIT AYB 2
-ARMENIAN CAPIT BEN 2
-ARMENIAN CAPIT GIM 2
-ARMENIAN CAPIT DA 2
-ARMENIAN CAPIT ECH 2
-ARMENIAN CAPIT ZA 2
-DROP TABLE t1;
-#
-# Start of 5.1 tests
-#
-#
-# Bug#58371 Assertion failed: !s.uses_buffer_owned_by(this) with format string function
-#
-SET NAMES latin1;
-DO CONVERT(CAST(SUBSTRING_INDEX(FORMAT(1,'1111'), FORMAT('','Zpq'),1)
-AS BINARY(0)) USING utf8);
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'Zpq'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-Warning 1292 Truncated incorrect BINARY(0) value: '1.'
-#
-# End of 5.1 tests
-#
-#
-# Start of 5.5 tests
-#
-#
-# WL#1213 Implement 4-byte UTF8, UTF16 and UTF32
-# Testing that only utf8mb4 is superset for utf8
-# No other Unicode character set pairs have superset/subset relations
-#
-CREATE TABLE t1 (
-utf8 CHAR CHARACTER SET utf8,
-utf8mb4 CHAR CHARACTER SET utf8mb4,
-ucs2 CHAR CHARACTER SET ucs2,
-utf16 CHAR CHARACTER SET utf16,
-utf32 CHAR CHARACTER SET utf32
-);
-INSERT INTO t1 VALUES ('','','','','');
-SELECT CHARSET(CONCAT(utf8, utf8mb4)) FROM t1;
-CHARSET(CONCAT(utf8, utf8mb4))
-utf8mb4
-SELECT CHARSET(CONCAT(utf8, ucs2)) FROM t1;
-ERROR HY000: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (ucs2_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(utf8, utf16)) FROM t1;
-ERROR HY000: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf16_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(utf8, utf32)) FROM t1;
-ERROR HY000: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf32_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(utf8mb4, utf8)) FROM t1;
-CHARSET(CONCAT(utf8mb4, utf8))
-utf8mb4
-SELECT CHARSET(CONCAT(utf8mb4, ucs2)) FROM t1;
-ERROR HY000: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (ucs2_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(utf8mb4, utf16)) FROM t1;
-ERROR HY000: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf16_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(utf8mb4, utf32)) FROM t1;
-ERROR HY000: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf32_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(ucs2, utf8)) FROM t1;
-ERROR HY000: Illegal mix of collations (ucs2_general_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(ucs2, utf8mb4)) FROM t1;
-ERROR HY000: Illegal mix of collations (ucs2_general_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(ucs2, utf16)) FROM t1;
-ERROR HY000: Illegal mix of collations (ucs2_general_ci,IMPLICIT) and (utf16_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(ucs2, utf32)) FROM t1;
-ERROR HY000: Illegal mix of collations (ucs2_general_ci,IMPLICIT) and (utf32_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(utf16, utf8)) FROM t1;
-ERROR HY000: Illegal mix of collations (utf16_general_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(utf16, ucs2)) FROM t1;
-ERROR HY000: Illegal mix of collations (utf16_general_ci,IMPLICIT) and (ucs2_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(utf16, utf8mb4)) FROM t1;
-ERROR HY000: Illegal mix of collations (utf16_general_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(utf16, utf32)) FROM t1;
-ERROR HY000: Illegal mix of collations (utf16_general_ci,IMPLICIT) and (utf32_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(utf32, utf8)) FROM t1;
-ERROR HY000: Illegal mix of collations (utf32_general_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(utf32, ucs2)) FROM t1;
-ERROR HY000: Illegal mix of collations (utf32_general_ci,IMPLICIT) and (ucs2_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(utf32, utf8mb4)) FROM t1;
-ERROR HY000: Illegal mix of collations (utf32_general_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation 'concat'
-SELECT CHARSET(CONCAT(utf32, utf16)) FROM t1;
-ERROR HY000: Illegal mix of collations (utf32_general_ci,IMPLICIT) and (utf16_general_ci,IMPLICIT) for operation 'concat'
-DROP TABLE t1;
-#
-# Bug#58321 No warning when characters outside BMP0 is converted to UCS2
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf32);
-CREATE TABLE t2 (a VARCHAR(10) CHARACTER SET ucs2);
-INSERT INTO t1 VALUES (0x10082), (0x12345);
-INSERT IGNORE INTO t2 SELECT * FROM t1;
-Warnings:
-Warning 1366 Incorrect string value: '\x00\x01\x00\x82' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\x00\x01\x23\x45' for column 'a' at row 2
-SELECT HEX(a) FROM t2;
-HEX(a)
-003F
-003F
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# End of 5.5 tests
-#
-#
-# Bug#11766143 59185: ASSERTION FAILED: (FIXED == 1), FILE
-# ITEM_STRFUNC.CC, LINE 2760
-#
-CREATE TABLE t1 (a CHAR(1) CHARSET UTF8);
-INSERT INTO t1 VALUES ('a'), ('b');
-CREATE TABLE t2 (a BINARY(1));
-SELECT * FROM t2 WHERE a=(SELECT a FROM t1) AND a=_LATIN1'x';
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8362 dash '-' is not recognized in charset armscii8 on select where query
-#
-CREATE TABLE t1 (a VARCHAR(64) CHARACTER SET armscii8);
-INSERT INTO t1 VALUES ('abc-def');
-SELECT * FROM t1 WHERE a='abc-def';
-a
-abc-def
-SELECT * FROM t1 WHERE a LIKE 'abc%';
-a
-abc-def
-DROP TABLE t1;
-SELECT HEX(CONVERT(_utf8 0x2728292C2D2E USING armscii8));
-HEX(CONVERT(_utf8 0x2728292C2D2E USING armscii8))
-2728292C2D2E
-#
-# End of 10.1 tests
-#
diff --git a/mysql-test/r/ctype_mb.result b/mysql-test/r/ctype_mb.result
deleted file mode 100644
index 015457cc1b3..00000000000
--- a/mysql-test/r/ctype_mb.result
+++ /dev/null
@@ -1,57 +0,0 @@
-drop table if exists t1;
-CREATE TABLE t1 SELECT _utf8'test' as c1, _utf8'теÑÑ‚' as c2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET utf8 NOT NULL,
- `c2` varchar(4) CHARACTER SET utf8 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DELETE FROM t1;
-ALTER TABLE t1 ADD c3 CHAR(4) CHARACTER SET utf8;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET utf8 NOT NULL,
- `c2` varchar(4) CHARACTER SET utf8 NOT NULL,
- `c3` char(4) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT IGNORE INTO t1 VALUES ('aaaabbbbccccdddd','aaaabbbbccccdddd','aaaabbbbccccdddd');
-Warnings:
-Warning 1265 Data truncated for column 'c1' at row 1
-Warning 1265 Data truncated for column 'c2' at row 1
-Warning 1265 Data truncated for column 'c3' at row 1
-SELECT * FROM t1;
-c1 c2 c3
-aaaa aaaa aaaa
-DROP TABLE t1;
-CREATE TABLE t1 (a CHAR(4) CHARACTER SET utf8, KEY key_a(a(3)));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(4) CHARACTER SET utf8 DEFAULT NULL,
- KEY `key_a` (`a`(3))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW KEYS FROM t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 key_a 1 a A NULL 3 NULL YES BTREE
-ALTER TABLE t1 CHANGE a a CHAR(4);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(4) DEFAULT NULL,
- KEY `key_a` (`a`(3))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW KEYS FROM t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 key_a 1 a A NULL 3 NULL YES BTREE
-ALTER TABLE t1 CHANGE a a CHAR(4) CHARACTER SET utf8;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(4) CHARACTER SET utf8 DEFAULT NULL,
- KEY `key_a` (`a`(3))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW KEYS FROM t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 key_a 1 a A NULL 3 NULL YES BTREE
-DROP TABLE t1;
diff --git a/mysql-test/r/ctype_nopad_8bit.result b/mysql-test/r/ctype_nopad_8bit.result
deleted file mode 100644
index b5dadc2f5da..00000000000
--- a/mysql-test/r/ctype_nopad_8bit.result
+++ /dev/null
@@ -1,12771 +0,0 @@
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=dec8;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'dec8_swedish_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE dec8_swedish_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=dec8 COLLATE=dec8_swedish_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'dec8_swedish_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'dec8_swedish_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'dec8_swedish_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'dec8_swedish_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'dec8_swedish_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'dec8_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'dec8_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'dec8_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'dec8_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'dec8_swedish_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'dec8_swedish_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'dec8_swedish_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'dec8_swedish_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'dec8_swedish_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_swedish_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'dec8_swedish_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_swedish_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'dec8_swedish_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE dec8_swedish_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=dec8 COLLATE=dec8_swedish_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'dec8_swedish_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'dec8_swedish_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'dec8_swedish_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'dec8_swedish_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'dec8_swedish_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'dec8_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'dec8_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'dec8_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'dec8_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'dec8_swedish_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'dec8_swedish_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'dec8_swedish_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'dec8_swedish_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'dec8_swedish_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_swedish_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'dec8_swedish_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_swedish_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'dec8_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE dec8_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=dec8 COLLATE=dec8_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'dec8_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'dec8_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'dec8_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'dec8_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'dec8_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'dec8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'dec8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'dec8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'dec8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'dec8_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'dec8_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'dec8_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'dec8_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'dec8_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'dec8_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'dec8_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE dec8_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=dec8 COLLATE=dec8_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'dec8_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'dec8_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'dec8_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'dec8_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'dec8_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'dec8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'dec8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'dec8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'dec8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'dec8_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'dec8_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'dec8_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'dec8_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'dec8_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'dec8_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'dec8_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=cp850;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp850_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp850_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp850 COLLATE=cp850_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp850_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp850_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp850_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp850_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp850_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp850_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp850_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp850_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp850_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp850_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp850_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp850_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp850_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp850_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp850_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp850_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp850_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp850 COLLATE=cp850_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp850_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp850_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp850_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp850_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp850_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp850_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp850_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp850_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp850_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp850_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp850_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp850_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp850_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp850_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp850_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp850_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp850_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp850 COLLATE=cp850_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp850_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp850_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp850_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp850_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp850_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp850_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp850_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp850_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp850_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp850_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp850_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp850_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp850_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp850_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp850_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp850_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp850_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp850 COLLATE=cp850_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp850_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp850_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp850_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp850_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp850_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp850_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp850_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp850_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp850_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp850_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp850_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp850_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp850_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp850_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp850_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp850_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=hp8;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'hp8_english_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE hp8_english_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=hp8 COLLATE=hp8_english_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'hp8_english_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hp8_english_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'hp8_english_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'hp8_english_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'hp8_english_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'hp8_english_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'hp8_english_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'hp8_english_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'hp8_english_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'hp8_english_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'hp8_english_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'hp8_english_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'hp8_english_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hp8_english_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_english_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_english_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'hp8_english_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_english_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_english_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'hp8_english_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE hp8_english_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=hp8 COLLATE=hp8_english_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'hp8_english_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hp8_english_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'hp8_english_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'hp8_english_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'hp8_english_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'hp8_english_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'hp8_english_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'hp8_english_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'hp8_english_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'hp8_english_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'hp8_english_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'hp8_english_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'hp8_english_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hp8_english_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_english_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_english_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'hp8_english_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_english_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_english_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'hp8_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE hp8_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=hp8 COLLATE=hp8_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'hp8_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hp8_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'hp8_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'hp8_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'hp8_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'hp8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'hp8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'hp8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'hp8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'hp8_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'hp8_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'hp8_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'hp8_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hp8_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'hp8_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'hp8_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE hp8_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=hp8 COLLATE=hp8_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'hp8_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hp8_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'hp8_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'hp8_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'hp8_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'hp8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'hp8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'hp8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'hp8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'hp8_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'hp8_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'hp8_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'hp8_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hp8_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'hp8_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hp8_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=koi8r;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'koi8r_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE koi8r_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=koi8r COLLATE=koi8r_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'koi8r_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8r_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'koi8r_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'koi8r_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'koi8r_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'koi8r_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'koi8r_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'koi8r_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'koi8r_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'koi8r_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'koi8r_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'koi8r_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'koi8r_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8r_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'koi8r_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'koi8r_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE koi8r_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=koi8r COLLATE=koi8r_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'koi8r_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8r_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'koi8r_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'koi8r_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'koi8r_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'koi8r_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'koi8r_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'koi8r_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'koi8r_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'koi8r_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'koi8r_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'koi8r_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'koi8r_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8r_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'koi8r_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'koi8r_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE koi8r_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=koi8r COLLATE=koi8r_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'koi8r_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8r_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'koi8r_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'koi8r_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'koi8r_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'koi8r_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'koi8r_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'koi8r_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'koi8r_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'koi8r_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'koi8r_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'koi8r_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'koi8r_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8r_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'koi8r_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'koi8r_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE koi8r_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=koi8r COLLATE=koi8r_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'koi8r_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8r_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'koi8r_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'koi8r_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'koi8r_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'koi8r_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'koi8r_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'koi8r_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'koi8r_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'koi8r_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'koi8r_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'koi8r_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'koi8r_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8r_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'koi8r_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8r_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=latin2;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin2_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin2_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin2 COLLATE=latin2_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin2_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin2_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin2_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin2_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin2_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin2_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin2_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin2_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin2_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin2_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin2_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin2_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin2_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin2_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin2_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin2_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin2_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin2 COLLATE=latin2_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin2_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin2_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin2_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin2_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin2_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin2_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin2_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin2_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin2_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin2_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin2_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin2_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin2_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin2_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin2_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin2_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin2_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin2 COLLATE=latin2_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin2_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin2_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin2_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin2_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin2_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin2_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin2_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin2_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin2_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin2_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin2_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin2_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin2_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin2_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin2_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin2_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin2_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin2 COLLATE=latin2_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin2_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin2_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin2_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin2_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin2_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin2_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin2_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin2_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin2_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin2_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin2_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin2_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin2_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin2_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin2_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin2_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=swe7;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'swe7_swedish_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE swe7_swedish_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=swe7 COLLATE=swe7_swedish_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'swe7_swedish_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_swedish_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'swe7_swedish_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'swe7_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'swe7_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_swedish_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'swe7_swedish_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'swe7_swedish_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE swe7_swedish_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=swe7 COLLATE=swe7_swedish_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'swe7_swedish_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_swedish_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'swe7_swedish_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'swe7_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'swe7_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_swedish_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'swe7_swedish_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'swe7_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE swe7_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=swe7 COLLATE=swe7_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'swe7_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'swe7_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'swe7_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'swe7_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'swe7_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'swe7_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'swe7_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'swe7_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'swe7_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'swe7_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'swe7_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'swe7_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'swe7_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'swe7_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE swe7_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=swe7 COLLATE=swe7_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'swe7_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'swe7_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'swe7_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'swe7_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'swe7_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'swe7_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'swe7_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'swe7_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'swe7_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'swe7_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'swe7_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'swe7_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'swe7_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=ascii;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ascii_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ascii_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=ascii COLLATE=ascii_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ascii_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ascii_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ascii_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ascii_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ascii_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ascii_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ascii_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ascii_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ascii_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ascii_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ascii_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'ascii_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ascii_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ascii_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ascii_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ascii_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ascii_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=ascii COLLATE=ascii_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ascii_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ascii_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ascii_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ascii_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ascii_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ascii_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ascii_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ascii_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ascii_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ascii_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ascii_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'ascii_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ascii_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ascii_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ascii_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ascii_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ascii_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=ascii COLLATE=ascii_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ascii_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ascii_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ascii_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ascii_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ascii_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ascii_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ascii_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ascii_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ascii_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ascii_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ascii_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'ascii_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ascii_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ascii_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ascii_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ascii_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ascii_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=ascii COLLATE=ascii_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ascii_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ascii_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ascii_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ascii_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ascii_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ascii_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ascii_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ascii_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ascii_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ascii_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ascii_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'ascii_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ascii_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ascii_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ascii_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ascii_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=hebrew;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'hebrew_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE hebrew_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=hebrew COLLATE=hebrew_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'hebrew_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hebrew_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'hebrew_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'hebrew_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'hebrew_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'hebrew_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'hebrew_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'hebrew_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'hebrew_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'hebrew_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'hebrew_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'hebrew_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'hebrew_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hebrew_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'hebrew_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'hebrew_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE hebrew_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=hebrew COLLATE=hebrew_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'hebrew_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hebrew_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'hebrew_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'hebrew_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'hebrew_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'hebrew_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'hebrew_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'hebrew_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'hebrew_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'hebrew_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'hebrew_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'hebrew_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'hebrew_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hebrew_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'hebrew_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'hebrew_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE hebrew_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=hebrew COLLATE=hebrew_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'hebrew_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hebrew_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'hebrew_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'hebrew_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'hebrew_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'hebrew_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'hebrew_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'hebrew_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'hebrew_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'hebrew_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'hebrew_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'hebrew_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'hebrew_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hebrew_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'hebrew_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'hebrew_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE hebrew_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=hebrew COLLATE=hebrew_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'hebrew_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hebrew_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'hebrew_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'hebrew_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'hebrew_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'hebrew_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'hebrew_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'hebrew_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'hebrew_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'hebrew_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'hebrew_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'hebrew_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'hebrew_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'hebrew_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'hebrew_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'hebrew_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=koi8u;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'koi8u_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE koi8u_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=koi8u COLLATE=koi8u_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'koi8u_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8u_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'koi8u_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'koi8u_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'koi8u_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'koi8u_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'koi8u_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'koi8u_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'koi8u_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'koi8u_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'koi8u_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'koi8u_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'koi8u_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8u_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'koi8u_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'koi8u_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE koi8u_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=koi8u COLLATE=koi8u_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'koi8u_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8u_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'koi8u_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'koi8u_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'koi8u_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'koi8u_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'koi8u_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'koi8u_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'koi8u_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'koi8u_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'koi8u_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'koi8u_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'koi8u_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8u_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'koi8u_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'koi8u_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE koi8u_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=koi8u COLLATE=koi8u_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'koi8u_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8u_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'koi8u_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'koi8u_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'koi8u_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'koi8u_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'koi8u_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'koi8u_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'koi8u_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'koi8u_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'koi8u_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'koi8u_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'koi8u_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8u_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'koi8u_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'koi8u_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE koi8u_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=koi8u COLLATE=koi8u_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'koi8u_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8u_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'koi8u_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'koi8u_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'koi8u_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'koi8u_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'koi8u_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'koi8u_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'koi8u_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'koi8u_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'koi8u_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'koi8u_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'koi8u_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'koi8u_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'koi8u_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'koi8u_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=greek;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'greek_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE greek_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=greek COLLATE=greek_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'greek_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'greek_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'greek_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'greek_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'greek_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'greek_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'greek_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'greek_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'greek_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'greek_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'greek_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'greek_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'greek_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'greek_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'greek_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'greek_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE greek_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=greek COLLATE=greek_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'greek_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'greek_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'greek_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'greek_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'greek_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'greek_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'greek_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'greek_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'greek_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'greek_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'greek_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'greek_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'greek_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'greek_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'greek_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'greek_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE greek_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=greek COLLATE=greek_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'greek_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'greek_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'greek_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'greek_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'greek_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'greek_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'greek_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'greek_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'greek_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'greek_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'greek_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'greek_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'greek_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'greek_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'greek_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'greek_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE greek_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=greek COLLATE=greek_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'greek_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'greek_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'greek_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'greek_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'greek_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'greek_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'greek_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'greek_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'greek_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'greek_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'greek_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'greek_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'greek_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'greek_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'greek_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'greek_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=cp1250;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1250_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1250_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp1250 COLLATE=cp1250_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1250_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1250_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1250_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1250_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1250_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1250_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1250_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1250_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1250_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1250_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1250_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1250_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1250_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1250_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1250_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1250_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1250_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp1250 COLLATE=cp1250_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1250_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1250_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1250_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1250_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1250_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1250_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1250_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1250_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1250_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1250_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1250_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1250_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1250_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1250_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1250_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1250_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1250_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp1250 COLLATE=cp1250_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1250_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1250_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1250_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1250_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1250_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1250_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1250_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1250_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1250_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1250_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1250_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1250_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1250_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1250_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1250_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1250_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1250_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp1250 COLLATE=cp1250_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1250_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1250_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1250_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1250_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1250_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1250_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1250_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1250_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1250_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1250_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1250_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1250_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1250_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1250_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1250_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1250_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=cp1257;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1257_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1257_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp1257 COLLATE=cp1257_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1257_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1257_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1257_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1257_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1257_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1257_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1257_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1257_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1257_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1257_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1257_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1257_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1257_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1257_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1257_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1257_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1257_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp1257 COLLATE=cp1257_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1257_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1257_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1257_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1257_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1257_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1257_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1257_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1257_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1257_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1257_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1257_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1257_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1257_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1257_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1257_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1257_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1257_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp1257 COLLATE=cp1257_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1257_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1257_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1257_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1257_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1257_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1257_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1257_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1257_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1257_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1257_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1257_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1257_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1257_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1257_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1257_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1257_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1257_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp1257 COLLATE=cp1257_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1257_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1257_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1257_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1257_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1257_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1257_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1257_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1257_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1257_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1257_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1257_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1257_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1257_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1257_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1257_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1257_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=latin5;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin5_turkish_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin5_turkish_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin5 COLLATE=latin5_turkish_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin5_turkish_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin5_turkish_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin5_turkish_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin5_turkish_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin5_turkish_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin5_turkish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin5_turkish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin5_turkish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin5_turkish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin5_turkish_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin5_turkish_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin5_turkish_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin5_turkish_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin5_turkish_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_turkish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_turkish_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin5_turkish_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_turkish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_turkish_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin5_turkish_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin5_turkish_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin5 COLLATE=latin5_turkish_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin5_turkish_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin5_turkish_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin5_turkish_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin5_turkish_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin5_turkish_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin5_turkish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin5_turkish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin5_turkish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin5_turkish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin5_turkish_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin5_turkish_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin5_turkish_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin5_turkish_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin5_turkish_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_turkish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_turkish_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin5_turkish_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_turkish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_turkish_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin5_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin5_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin5 COLLATE=latin5_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin5_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin5_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin5_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin5_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin5_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin5_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin5_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin5_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin5_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin5_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin5_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin5_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin5_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin5_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin5_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin5_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin5_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin5 COLLATE=latin5_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin5_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin5_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin5_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin5_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin5_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin5_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin5_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin5_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin5_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin5_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin5_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin5_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin5_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin5_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin5_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin5_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=armscii8;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'armscii8_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE armscii8_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=armscii8 COLLATE=armscii8_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'armscii8_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'armscii8_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'armscii8_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'armscii8_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'armscii8_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'armscii8_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'armscii8_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'armscii8_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'armscii8_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'armscii8_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'armscii8_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'armscii8_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'armscii8_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'armscii8_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'armscii8_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'armscii8_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE armscii8_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=armscii8 COLLATE=armscii8_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'armscii8_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'armscii8_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'armscii8_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'armscii8_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'armscii8_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'armscii8_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'armscii8_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'armscii8_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'armscii8_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'armscii8_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'armscii8_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'armscii8_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'armscii8_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'armscii8_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'armscii8_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'armscii8_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE armscii8_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=armscii8 COLLATE=armscii8_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'armscii8_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'armscii8_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'armscii8_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'armscii8_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'armscii8_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'armscii8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'armscii8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'armscii8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'armscii8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'armscii8_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'armscii8_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'armscii8_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'armscii8_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'armscii8_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'armscii8_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'armscii8_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE armscii8_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=armscii8 COLLATE=armscii8_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'armscii8_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'armscii8_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'armscii8_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'armscii8_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'armscii8_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'armscii8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'armscii8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'armscii8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'armscii8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'armscii8_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'armscii8_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'armscii8_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'armscii8_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'armscii8_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'armscii8_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'armscii8_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=cp866;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp866_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp866_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp866 COLLATE=cp866_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp866_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp866_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp866_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp866_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp866_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp866_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp866_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp866_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp866_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp866_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp866_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp866_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp866_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp866_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp866_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp866_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp866_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp866 COLLATE=cp866_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp866_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp866_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp866_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp866_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp866_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp866_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp866_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp866_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp866_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp866_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp866_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp866_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp866_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp866_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp866_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp866_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp866_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp866 COLLATE=cp866_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp866_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp866_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp866_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp866_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp866_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp866_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp866_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp866_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp866_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp866_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp866_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp866_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp866_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp866_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp866_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp866_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp866_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp866 COLLATE=cp866_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp866_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp866_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp866_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp866_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp866_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp866_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp866_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp866_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp866_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp866_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp866_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp866_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp866_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp866_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp866_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp866_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=keybcs2;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'keybcs2_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE keybcs2_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=keybcs2 COLLATE=keybcs2_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'keybcs2_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'keybcs2_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'keybcs2_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'keybcs2_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'keybcs2_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'keybcs2_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'keybcs2_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'keybcs2_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'keybcs2_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'keybcs2_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'keybcs2_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'keybcs2_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'keybcs2_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'keybcs2_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'keybcs2_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'keybcs2_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE keybcs2_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=keybcs2 COLLATE=keybcs2_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'keybcs2_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'keybcs2_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'keybcs2_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'keybcs2_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'keybcs2_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'keybcs2_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'keybcs2_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'keybcs2_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'keybcs2_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'keybcs2_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'keybcs2_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'keybcs2_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'keybcs2_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'keybcs2_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'keybcs2_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'keybcs2_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE keybcs2_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=keybcs2 COLLATE=keybcs2_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'keybcs2_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'keybcs2_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'keybcs2_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'keybcs2_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'keybcs2_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'keybcs2_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'keybcs2_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'keybcs2_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'keybcs2_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'keybcs2_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'keybcs2_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'keybcs2_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'keybcs2_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'keybcs2_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'keybcs2_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'keybcs2_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE keybcs2_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=keybcs2 COLLATE=keybcs2_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'keybcs2_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'keybcs2_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'keybcs2_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'keybcs2_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'keybcs2_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'keybcs2_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'keybcs2_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'keybcs2_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'keybcs2_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'keybcs2_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'keybcs2_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'keybcs2_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'keybcs2_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'keybcs2_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'keybcs2_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'keybcs2_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=macce;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'macce_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE macce_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=macce COLLATE=macce_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'macce_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macce_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'macce_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'macce_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'macce_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'macce_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'macce_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'macce_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'macce_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'macce_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'macce_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'macce_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'macce_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macce_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'macce_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'macce_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE macce_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=macce COLLATE=macce_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'macce_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macce_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'macce_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'macce_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'macce_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'macce_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'macce_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'macce_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'macce_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'macce_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'macce_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'macce_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'macce_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macce_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'macce_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'macce_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE macce_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=macce COLLATE=macce_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'macce_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macce_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'macce_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'macce_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'macce_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'macce_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'macce_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'macce_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'macce_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'macce_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'macce_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'macce_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'macce_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macce_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'macce_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'macce_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE macce_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=macce COLLATE=macce_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'macce_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macce_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'macce_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'macce_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'macce_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'macce_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'macce_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'macce_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'macce_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'macce_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'macce_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'macce_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'macce_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macce_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'macce_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macce_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=macroman;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'macroman_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE macroman_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=macroman COLLATE=macroman_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'macroman_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macroman_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'macroman_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'macroman_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'macroman_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'macroman_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'macroman_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'macroman_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'macroman_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'macroman_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'macroman_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'macroman_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'macroman_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macroman_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'macroman_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'macroman_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE macroman_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=macroman COLLATE=macroman_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'macroman_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macroman_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'macroman_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'macroman_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'macroman_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'macroman_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'macroman_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'macroman_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'macroman_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'macroman_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'macroman_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'macroman_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'macroman_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macroman_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'macroman_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'macroman_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE macroman_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=macroman COLLATE=macroman_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'macroman_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macroman_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'macroman_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'macroman_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'macroman_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'macroman_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'macroman_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'macroman_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'macroman_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'macroman_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'macroman_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'macroman_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'macroman_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macroman_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'macroman_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'macroman_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE macroman_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=macroman COLLATE=macroman_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'macroman_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macroman_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'macroman_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'macroman_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'macroman_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'macroman_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'macroman_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'macroman_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'macroman_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'macroman_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'macroman_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'macroman_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'macroman_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'macroman_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'macroman_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'macroman_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=cp852;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp852_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp852_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp852 COLLATE=cp852_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp852_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp852_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp852_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp852_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp852_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp852_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp852_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp852_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp852_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp852_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp852_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp852_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp852_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp852_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp852_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp852_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp852_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp852 COLLATE=cp852_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp852_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp852_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp852_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp852_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp852_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp852_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp852_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp852_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp852_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp852_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp852_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp852_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp852_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp852_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp852_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp852_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp852_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp852 COLLATE=cp852_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp852_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp852_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp852_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp852_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp852_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp852_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp852_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp852_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp852_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp852_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp852_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp852_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp852_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp852_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp852_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp852_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp852_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp852 COLLATE=cp852_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp852_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp852_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp852_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp852_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp852_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp852_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp852_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp852_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp852_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp852_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp852_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp852_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp852_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp852_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp852_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp852_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=latin7;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin7_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin7_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin7 COLLATE=latin7_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin7_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin7_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin7_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-86000000000000000000
-86303000000000000000
-30860000000000000000
-30863000000000000000
-86303030000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin7_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin7_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin7_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin7_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin7_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin7_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin7_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin7_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin7_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin7_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin7_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin7_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin7_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin7_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin7 COLLATE=latin7_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin7_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin7_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin7_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-86000000000000000000
-86303000000000000000
-30860000000000000000
-30863000000000000000
-86303030000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin7_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin7_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin7_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin7_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin7_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin7_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin7_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin7_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin7_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin7_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin7_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin7_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin7_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin7_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin7 COLLATE=latin7_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin7_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin7_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin7_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin7_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin7_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin7_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin7_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin7_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin7_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin7_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin7_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin7_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin7_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin7_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin7_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'latin7_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE latin7_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin7 COLLATE=latin7_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'latin7_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin7_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'latin7_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'latin7_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'latin7_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'latin7_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'latin7_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'latin7_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'latin7_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'latin7_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'latin7_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'latin7_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'latin7_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'latin7_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'latin7_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'latin7_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=cp1251;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1251_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1251_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1251_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1251_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1251_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1251_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1251_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1251_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1251_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1251_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1251_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1251_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1251_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1251_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1251_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1251_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1251_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1251_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1251_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp1251 COLLATE=cp1251_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1251_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1251_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1251_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1251_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1251_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1251_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1251_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1251_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1251_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1251_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1251_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1251_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1251_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1251_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1251_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1251_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1251_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1251_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1251_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1251_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1251_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1251_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1251_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1251_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1251_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1251_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1251_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1251_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1251_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1251_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1251_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1251_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1251_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1251_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp1251 COLLATE=cp1251_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1251_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1251_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1251_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1251_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1251_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1251_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1251_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1251_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1251_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1251_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1251_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1251_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1251_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1251_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1251_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1251_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=cp1256;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1256_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1256_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp1256 COLLATE=cp1256_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1256_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1256_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1256_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1256_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1256_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1256_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1256_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1256_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1256_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1256_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1256_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1256_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1256_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1256_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1256_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1256_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1256_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp1256 COLLATE=cp1256_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1256_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1256_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1256_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1256_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1256_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1256_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1256_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1256_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1256_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1256_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1256_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1256_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1256_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1256_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1256_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1256_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1256_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp1256 COLLATE=cp1256_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1256_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1256_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1256_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1256_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1256_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1256_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1256_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1256_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1256_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1256_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1256_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1256_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1256_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1256_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1256_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'cp1256_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE cp1256_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=cp1256 COLLATE=cp1256_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'cp1256_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1256_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'cp1256_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'cp1256_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'cp1256_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'cp1256_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'cp1256_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'cp1256_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'cp1256_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'cp1256_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'cp1256_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'cp1256_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'cp1256_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'cp1256_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'cp1256_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'cp1256_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET character_set_connection=geostd8;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'geostd8_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE geostd8_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=geostd8 COLLATE=geostd8_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'geostd8_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'geostd8_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'geostd8_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'geostd8_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'geostd8_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'geostd8_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'geostd8_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'geostd8_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'geostd8_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'geostd8_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'geostd8_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'geostd8_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'geostd8_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'geostd8_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'geostd8_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'geostd8_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE geostd8_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=geostd8 COLLATE=geostd8_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'geostd8_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'geostd8_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'geostd8_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'geostd8_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'geostd8_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'geostd8_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'geostd8_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'geostd8_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'geostd8_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'geostd8_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'geostd8_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'geostd8_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'geostd8_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'geostd8_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'geostd8_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'geostd8_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE geostd8_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=geostd8 COLLATE=geostd8_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'geostd8_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'geostd8_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'geostd8_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'geostd8_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'geostd8_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'geostd8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'geostd8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'geostd8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'geostd8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'geostd8_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'geostd8_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'geostd8_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'geostd8_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'geostd8_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'geostd8_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'geostd8_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE geostd8_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=geostd8 COLLATE=geostd8_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'geostd8_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'geostd8_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'geostd8_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'geostd8_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'geostd8_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'geostd8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'geostd8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'geostd8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'geostd8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'geostd8_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'geostd8_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'geostd8_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'geostd8_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'geostd8_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'geostd8_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'geostd8_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_partitions.result b/mysql-test/r/ctype_partitions.result
deleted file mode 100644
index a39ecc11529..00000000000
--- a/mysql-test/r/ctype_partitions.result
+++ /dev/null
@@ -1,51 +0,0 @@
-#
-# MDEV-6255 DUPLICATE KEY Errors on SELECT .. GROUP BY that uses temporary and filesort
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET cp1251 COLLATE cp1251_ukrainian_ci);
-INSERT INTO t1 VALUES (0x20),(0x60),(0x6060),(0x606060);
-SELECT HEX(a) FROM t1 WHERE a=0x60;
-HEX(a)
-20
-60
-6060
-606060
-ALTER TABLE t1 PARTITION BY KEY(a) PARTITIONS 3;
-SELECT HEX(a) FROM t1 WHERE a=0x60;
-HEX(a)
-20
-60
-6060
-606060
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET koi8u COLLATE koi8u_general_ci);
-INSERT INTO t1 VALUES (0x20),(0x60),(0x6060),(0x606060);
-SELECT HEX(a) FROM t1 WHERE a=0x60;
-HEX(a)
-20
-60
-6060
-606060
-ALTER TABLE t1 PARTITION BY KEY(a) PARTITIONS 3;
-SELECT HEX(a) FROM t1 WHERE a=0x60;
-HEX(a)
-20
-60
-6060
-606060
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET cp1250 COLLATE cp1250_general_ci);
-INSERT INTO t1 VALUES (0x20),(0xA0),(0xA0A0),(0xA0A0A0);
-SELECT HEX(a) FROM t1 WHERE a=0xA0;
-HEX(a)
-20
-A0
-A0A0
-A0A0A0
-ALTER TABLE t1 PARTITION BY KEY(a) PARTITIONS 3;
-SELECT HEX(a) FROM t1 WHERE a=0xA0;
-HEX(a)
-20
-A0
-A0A0
-A0A0A0
-DROP TABLE t1;
diff --git a/mysql-test/r/ctype_recoding.result b/mysql-test/r/ctype_recoding.result
deleted file mode 100644
index 806d9dc6997..00000000000
--- a/mysql-test/r/ctype_recoding.result
+++ /dev/null
@@ -1,316 +0,0 @@
-SET CHARACTER SET koi8r;
-DROP TABLE IF EXISTS ÔÁÂÌÉÃÁ, t1, t2;
-SET CHARACTER SET koi8r;
-CREATE TABLE t1 (a CHAR(10) CHARACTER SET cp1251) SELECT _koi8r'ÐÒÏÂÁ' AS a;
-CREATE TABLE t2 (a CHAR(10) CHARACTER SET utf8);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT a FROM t1;
-a
-ÐÒÏÂÁ
-SELECT HEX(a) FROM t1;
-HEX(a)
-EFF0EEE1E0
-INSERT t2 SELECT * FROM t1;
-SELECT HEX(a) FROM t2;
-HEX(a)
-D0BFD180D0BED0B1D0B0
-DROP TABLE t1, t2;
-CREATE TABLE t1 (description text character set cp1250 NOT NULL);
-INSERT INTO t1 (description) VALUES (_latin2'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasssssssssssaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddde');
-SELECT description FROM t1;
-description
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasssssssssssaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddde
-DROP TABLE t1;
-CREATE TABLE t1 (a TEXT CHARACTER SET cp1251) SELECT _koi8r'ÐÒÏÂÁ' AS a;
-CREATE TABLE t2 (a TEXT CHARACTER SET utf8);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text CHARACTER SET cp1251 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(a) FROM t1;
-HEX(a)
-EFF0EEE1E0
-INSERT t2 SELECT * FROM t1;
-SELECT HEX(a) FROM t2;
-HEX(a)
-D0BFD180D0BED0B1D0B0
-DROP TABLE t1, t2;
-CREATE TABLE `ÔÁÂÌÉÃÁ`
-(
-ÐÏÌÅ CHAR(32) CHARACTER SET koi8r NOT NULL COMMENT "ËÏÍÍÅÎÔÁÒÉÊ ÐÏÌÑ"
-) COMMENT "ËÏÍÍÅÎÔÁÒÉÊ ÔÁÂÌÉÃÙ";
-SHOW TABLES;
-Tables_in_test
-ÔÁÂÌÉÃÁ
-SHOW CREATE TABLE ÔÁÂÌÉÃÁ;
-Table Create Table
-ÔÁÂÌÉÃÁ CREATE TABLE `ÔÁÂÌÉÃÁ` (
- `ÐÏÌÅ` char(32) CHARACTER SET koi8r NOT NULL COMMENT 'ËÏÍÍÅÎÔÁÒÉÊ ÐÏÌÑ'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='ËÏÍÍÅÎÔÁÒÉÊ ÔÁÂÌÉÃÙ'
-SHOW FIELDS FROM ÔÁÂÌÉÃÁ;
-Field Type Null Key Default Extra
-ÐÏÌÅ char(32) NO NULL
-SET CHARACTER SET cp1251;
-SHOW TABLES;
-Tables_in_test
-òàáëèöà
-SHOW CREATE TABLE òàáëèöà;
-Table Create Table
-òàáëèöà CREATE TABLE `òàáëèöà` (
- `ïîëå` char(32) CHARACTER SET koi8r NOT NULL COMMENT 'êîììåíòàðèé ïîëÿ'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='êîììåíòàðèé òàáëèöû'
-SHOW FIELDS FROM òàáëèöà;
-Field Type Null Key Default Extra
-ïîëå char(32) NO NULL
-SET CHARACTER SET utf8;
-SHOW TABLES;
-Tables_in_test
-таблица
-SHOW CREATE TABLE таблица;
-Table Create Table
-таблица CREATE TABLE `таблица` (
- `поле` char(32) CHARACTER SET koi8r NOT NULL COMMENT 'комментарий полÑ'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='комментарий таблицы'
-SHOW FIELDS FROM таблица;
-Field Type Null Key Default Extra
-поле char(32) NO NULL
-SET CHARACTER SET koi8r;
-DROP TABLE ÔÁÂÌÉÃÁ;
-SET CHARACTER SET default;
-SET NAMES UTF8;
-CREATE TABLE t1 (t text) DEFAULT CHARSET UTF8;
-INSERT INTO t1 (t) VALUES ('x');
-SELECT 1 FROM t1 WHERE CONCAT(_latin1'x') = t;
-1
-1
-DROP TABLE t1;
-SET CHARACTER SET koi8r;
-CREATE DATABASE ÔÅÓÔ;
-USE ÔÅÓÔ;
-SHOW TABLES;
-Tables_in_ÔÅÓÔ
-SHOW TABLES IN ÔÅÓÔ;
-Tables_in_ÔÅÓÔ
-SET CHARACTER SET cp1251;
-SHOW TABLES;
-Tables_in_òåñò
-SHOW TABLES IN òåñò;
-Tables_in_òåñò
-SET CHARACTER SET koi8r;
-DROP DATABASE ÔÅÓÔ;
-SET NAMES koi8r;
-SELECT hex('ÔÅÓÔ');
-hex('ÔÅÓÔ')
-D4C5D3D4
-SET character_set_connection=cp1251;
-SELECT hex('ÔÅÓÔ');
-hex('ÔÅÓÔ')
-F2E5F1F2
-USE test;
-SET NAMES binary;
-CREATE TABLE `теÑÑ‚` (`теÑÑ‚` int);
-SHOW CREATE TABLE `теÑÑ‚`;
-Table Create Table
-теÑÑ‚ CREATE TABLE `теÑÑ‚` (
- `теÑÑ‚` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SET NAMES utf8;
-SHOW CREATE TABLE `теÑÑ‚`;
-Table Create Table
-теÑÑ‚ CREATE TABLE `теÑÑ‚` (
- `теÑÑ‚` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE `теÑÑ‚`;
-SET NAMES binary;
-SET character_set_connection=utf8;
-SELECT 'теÑÑ‚' as s;
-s
-теÑÑ‚
-SET NAMES utf8;
-SET character_set_connection=binary;
-SELECT 'теÑÑ‚' as s;
-s
-теÑÑ‚
-SET NAMES latin1;
-CREATE TABLE t1 (`ä` CHAR(128) DEFAULT 'ä', `ä1` ENUM('ä1','ä2') DEFAULT 'ä2');
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `ä` char(128) DEFAULT 'ä',
- `ä1` enum('ä1','ä2') DEFAULT 'ä2'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-ä char(128) YES ä
-ä1 enum('ä1','ä2') YES ä2
-SET NAMES binary;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `ä` char(128) DEFAULT 'ä',
- `ä1` enum('ä1','ä2') DEFAULT 'ä2'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-ä char(128) YES ä
-ä1 enum('ä1','ä2') YES ä2
-DROP TABLE t1;
-SET NAMES binary;
-CREATE TABLE `goodÐÌÏÈÏ` (a int);
-ERROR HY000: Invalid utf8 character string: 'good\xD0\xCC\xCF\xC8\xCF'
-SET NAMES utf8;
-CREATE TABLE `goodÐÌÏÈÏ` (a int);
-ERROR HY000: Invalid utf8 character string: 'good\xD0\xCC\xCF\xC8\xCF'
-set names latin1;
-create table t1 (a char(10) character set koi8r, b text character set koi8r);
-insert into t1 values ('test','test');
-insert ignore into t1 values ('ÊÃÕË','ÊÃÕË');
-Warnings:
-Warning 1366 Incorrect string value: '\xCA\xC3\xD5\xCB' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\xCA\xC3\xD5\xCB' for column 'b' at row 1
-drop table t1;
-set names koi8r;
-create table t1 (a char(10) character set cp1251);
-insert into t1 values (_koi8r'×ÁÓÑ');
-select * from t1 where a=_koi8r'×ÁÓÑ';
-a
-×ÁÓÑ
-select * from t1 where a=concat(_koi8r'×ÁÓÑ');
-a
-×ÁÓÑ
-select * from t1 where a=_latin1'×ÁÓÑ';
-ERROR HY000: Illegal mix of collations (cp1251_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '='
-drop table t1;
-set names latin1;
-set names ascii;
-create table t1 (a char(1) character set latin1);
-insert into t1 values ('a');
-select * from t1 where a='a';
-a
-a
-drop table t1;
-set names latin1;
-create table t1 (a char(10) character set utf8 collate utf8_bin);
-insert into t1 values (' xxx');
-select * from t1 where a=lpad('xxx',10,' ');
-a
- xxx
-drop table t1;
-set names koi8r;
-create table t1 (c1 char(10) character set cp1251);
-insert into t1 values ('ß');
-select c1 from t1 where c1 between 'ß' and 'ß';
-c1
-select ifnull(c1,'ß'), ifnull(null,c1) from t1;
-ifnull(c1,'ß') ifnull(null,c1)
-ß ß
-select if(1,c1,'ö'), if(0,c1,'ö') from t1;
-if(1,c1,'ö') if(0,c1,'ö')
-ß ö
-select coalesce('ö',c1), coalesce(null,c1) from t1;
-coalesce('ö',c1) coalesce(null,c1)
-ö ß
-select least(c1,'ö'), greatest(c1,'ö') from t1;
-least(c1,'ö') greatest(c1,'ö')
-ö ß
-select locate(c1,'ß'), locate('ß',c1) from t1;
-locate(c1,'ß') locate('ß',c1)
-1 1
-select field(c1,'ß'),field('ß',c1) from t1;
-field(c1,'ß') field('ß',c1)
-1 1
-select concat(c1,'ö'), concat('ö',c1) from t1;
-concat(c1,'ö') concat('ö',c1)
-ßö öß
-select concat_ws(c1,'ö','ß'), concat_ws('ö',c1,'ß') from t1;
-concat_ws(c1,'ö','ß') concat_ws('ö',c1,'ß')
-ößß ßöß
-select replace(c1,'ß','ö'), replace('ß',c1,'ö') from t1;
-replace(c1,'ß','ö') replace('ß',c1,'ö')
-ö ö
-select substring_index(c1,'öößß',2) from t1;
-substring_index(c1,'öößß',2)
-select elt(1,c1,'ö'),elt(1,'ö',c1) from t1;
-elt(1,c1,'ö') elt(1,'ö',c1)
-ß ö
-select make_set(3,c1,'ö'), make_set(3,'ö',c1) from t1;
-make_set(3,c1,'ö') make_set(3,'ö',c1)
-ß,ö ö,ß
-select insert(c1,1,2,'ö'),insert('ö',1,2,c1) from t1;
-insert(c1,1,2,'ö') insert('ö',1,2,c1)
-ö ß
-select trim(c1 from 'ß'),trim('ß' from c1) from t1;
-trim(c1 from 'ß') trim('ß' from c1)
-
-select lpad(c1,3,'ö'), lpad('ö',3,c1) from t1;
-lpad(c1,3,'ö') lpad('ö',3,c1)
-ööß ßßö
-select rpad(c1,3,'ö'), rpad('ö',3,c1) from t1;
-rpad(c1,3,'ö') rpad('ö',3,c1)
-ßöö ößß
-drop table t1;
-set names koi8r;
-create table t1(a char character set cp1251 default _koi8r 0xFF);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(1) CHARACTER SET cp1251 DEFAULT 'ÿ'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1(a char character set latin1 default _cp1251 0xFF);
-ERROR 42000: Invalid default value for 'a'
-End of 4.1 tests
-SET CHARACTER SET DEFAULT;
-#
-# LP BUG#944504 Item_func_conv_charset tries to execute subquery constant
-#
-SET optimizer_switch = 'in_to_exists=on';
-SET character_set_connection = utf8;
-CREATE TABLE t1 ( a VARCHAR(1) );
-INSERT INTO t1 VALUES ('m'),('n');
-CREATE VIEW v1 AS SELECT 'w' ;
-SELECT * FROM t1 WHERE a < ALL ( SELECT * FROM v1 );
-a
-m
-n
-drop view v1;
-drop table t1;
-SET character_set_connection = default;
-SET optimizer_switch= default;
-#End of 5.3 tests
-#
-# Start of 5.5 tests
-#
-#
-# MDEV-10181 Illegal mix of collation for a field and an ASCII string as a view field
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1);
-INSERT INTO t1 VALUES ('A'),('a'),('B'),('b');
-CREATE VIEW v1 AS SELECT 'a';
-SELECT * FROM v1,t1 where t1.a=v1.a;
-a a
-a A
-a a
-DROP VIEW v1;
-DROP TABLE t1;
-SET NAMES utf8;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1);
-INSERT INTO t1 VALUES ('a'),('b'),('c');
-CREATE VIEW v1 AS SELECT 'a' AS a UNION SELECT 'b';
-SELECT * FROM v1,t1 WHERE t1.a=v1.a;
-a a
-a a
-b b
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
diff --git a/mysql-test/r/ctype_sjis.result b/mysql-test/r/ctype_sjis.result
deleted file mode 100644
index c19a0008e11..00000000000
--- a/mysql-test/r/ctype_sjis.result
+++ /dev/null
@@ -1,19286 +0,0 @@
-drop table if exists t1;
-set names sjis;
-select 'a' like 'a';
-'a' like 'a'
-1
-select 'A' like 'a';
-'A' like 'a'
-1
-select 'A' like 'a' collate sjis_bin;
-'A' like 'a' collate sjis_bin
-0
-set @sjis1= _sjis 0xa1a2a3a4a5a6a7a8a9aaabacadaeaf;
-set @sjis2= _sjis 0xb0b1b2b3b4b5b6b7b8b9babbbcbdbebf;
-set @sjis3= _sjis 0xc0c1c2c3c4c5c6c7c8c9cacbcccdcecf;
-set @sjis4= _sjis 0xd0d1d2d3d4d5d6d7d8d9dadbdcdddedf;
-set @utf81= CONVERT(@sjis1 USING utf8);
-set @utf82= CONVERT(@sjis2 USING utf8);
-set @utf83= CONVERT(@sjis3 USING utf8);
-set @utf84= CONVERT(@sjis4 USING utf8);
-select hex(@utf81);
-hex(@utf81)
-EFBDA1EFBDA2EFBDA3EFBDA4EFBDA5EFBDA6EFBDA7EFBDA8EFBDA9EFBDAAEFBDABEFBDACEFBDADEFBDAEEFBDAF
-select hex(@utf82);
-hex(@utf82)
-EFBDB0EFBDB1EFBDB2EFBDB3EFBDB4EFBDB5EFBDB6EFBDB7EFBDB8EFBDB9EFBDBAEFBDBBEFBDBCEFBDBDEFBDBEEFBDBF
-select hex(@utf83);
-hex(@utf83)
-EFBE80EFBE81EFBE82EFBE83EFBE84EFBE85EFBE86EFBE87EFBE88EFBE89EFBE8AEFBE8BEFBE8CEFBE8DEFBE8EEFBE8F
-select hex(@utf84);
-hex(@utf84)
-EFBE90EFBE91EFBE92EFBE93EFBE94EFBE95EFBE96EFBE97EFBE98EFBE99EFBE9AEFBE9BEFBE9CEFBE9DEFBE9EEFBE9F
-select hex(CONVERT(@utf81 USING sjis));
-hex(CONVERT(@utf81 USING sjis))
-A1A2A3A4A5A6A7A8A9AAABACADAEAF
-select hex(CONVERT(@utf82 USING sjis));
-hex(CONVERT(@utf82 USING sjis))
-B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBF
-select hex(CONVERT(@utf83 USING sjis));
-hex(CONVERT(@utf83 USING sjis))
-C0C1C2C3C4C5C6C7C8C9CACBCCCDCECF
-select hex(CONVERT(@utf84 USING sjis));
-hex(CONVERT(@utf84 USING sjis))
-D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF
-create table t1 (a char(10) character set sjis);
-insert into t1 values (0x878A);
-select hex(a) from t1;
-hex(a)
-878A
-drop table t1;
-create table t1(c enum(0x9353,0x9373) character set sjis);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` enum('“S','“s') CHARACTER SET sjis DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values (0x9353);
-insert into t1 values (0x9373);
-select hex(c) from t1;
-hex(c)
-9353
-9373
-drop table t1;
-SET NAMES sjis;
-CREATE TABLE t1 (
-c char(16) default NULL
-) ENGINE=MyISAM DEFAULT CHARSET=sjis;
-insert into t1 values(0xb1),(0xb2),(0xb3);
-select hex(c) from t1;
-hex(c)
-B1
-B2
-B3
-drop table t1;
-SET collation_connection='sjis_japanese_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-sjis_japanese_ci 6109
-sjis_japanese_ci 61
-sjis_japanese_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-sjis_japanese_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-sjis_japanese_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-create table t1 engine=innodb select repeat('a',50) as c1;
-alter table t1 add index(c1(5));
-insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
-select collation(c1) from t1 limit 1;
-collation(c1)
-sjis_japanese_ci
-select c1 from t1 where c1 like 'abcdef%' order by c1;
-c1
-abcdefg
-select c1 from t1 where c1 like 'abcde1%' order by c1;
-c1
-abcde100
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde11%' order by c1;
-c1
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde111%' order by c1;
-c1
-abcde111
-drop table t1;
-select @@collation_connection;
-@@collation_connection
-sjis_japanese_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F225
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-#
-# MDEV-4842 STR_TO_DATE does not work with UCS2/UTF16/UTF32
-#
-SELECT @@character_set_connection, HEX(CAST(_utf8'÷' AS CHAR));
-@@character_set_connection HEX(CAST(_utf8'÷' AS CHAR))
-sjis 8180
-SELECT STR_TO_DATE(CAST(_utf8'2001÷01÷01' AS CHAR),CAST(_utf8'%Y÷%m÷%d' AS CHAR));
-STR_TO_DATE(CAST(_utf8'2001÷01÷01' AS CHAR),CAST(_utf8'%Y÷%m÷%d' AS CHAR))
-2001-01-01
-CREATE TABLE t1 AS SELECT REPEAT(' ', 64) AS subject, REPEAT(' ',64) AS pattern LIMIT 0;
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-subject varchar(64) YES NULL
-pattern varchar(64) YES NULL
-INSERT INTO t1 VALUES (_utf8'2001÷01÷01',_utf8'%Y÷%m÷%d');
-SELECT HEX(subject),HEX(pattern),STR_TO_DATE(subject, pattern) FROM t1;
-HEX(subject) HEX(pattern) STR_TO_DATE(subject, pattern)
-323030318180303181803031 25598180256D81802564 2001-01-01 00:00:00.000000
-DROP TABLE t1;
-SET collation_connection='sjis_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-sjis_bin 6109
-sjis_bin 61
-sjis_bin 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-sjis_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-sjis_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-create table t1 engine=innodb select repeat('a',50) as c1;
-alter table t1 add index(c1(5));
-insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
-select collation(c1) from t1 limit 1;
-collation(c1)
-sjis_bin
-select c1 from t1 where c1 like 'abcdef%' order by c1;
-c1
-abcdefg
-select c1 from t1 where c1 like 'abcde1%' order by c1;
-c1
-abcde100
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde11%' order by c1;
-c1
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde111%' order by c1;
-c1
-abcde111
-drop table t1;
-select @@collation_connection;
-@@collation_connection
-sjis_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F225
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-SET NAMES sjis;
-SELECT HEX('²“‘@Œ\') FROM DUAL;
-HEX('²“‘@Œ\')
-8DB2939181408C5C
-# Start of 5.1 tests
-Bug#44352 UPPER/LOWER function doesn't work correctly on cp932 and sjis environment.
-CREATE TABLE t1 (a varchar(16)) character set sjis;
-INSERT INTO t1 VALUES (0x8372835E),(0x8352835E);
-SELECT hex(a), hex(lower(a)), hex(upper(a)) FROM t1 ORDER BY binary(a);
-hex(a) hex(lower(a)) hex(upper(a))
-8352835E 8352835E 8352835E
-8372835E 8372835E 8372835E
-DROP TABLE t1;
-#
-# Bug#11766519 - Bug#59648: MY_STRTOLL10_MB2: ASSERTION `(*ENDPTR - S) % 2 == 0' FAILED.
-#
-SELECT QUOTE('ƒ\');
-QUOTE('ƒ\')
-'ƒ\'
-# End of 5.1 tests
-#
-# Start of 5.5 tests
-#
-#
-# Testing WL#4583 Case conversion in Asian character sets
-#
-SET NAMES utf8;
-SET collation_connection=sjis_japanese_ci;
-CREATE TABLE t1 (b VARCHAR(2));
-INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
-INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
-CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
-DROP TABLE t1;
-CREATE TABLE t1 AS
-SELECT concat(head, tail) AS code, ' ' AS a
-FROM head, tail
-WHERE (head BETWEEN '80' AND 'FF') AND (head NOT BETWEEN 'A1' AND 'DF')
-AND (tail BETWEEN '20' AND 'FF')
-ORDER BY head, tail;
-INSERT IGNORE t1 (code) SELECT head FROM head WHERE (head BETWEEN 'A1' AND 'DF');
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-DROP TEMPORARY TABLE head, tail;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `code` varchar(8) DEFAULT NULL,
- `a` varchar(1) CHARACTER SET sjis NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
-Warnings:
-Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
-Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
-Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
-Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
-Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
-Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
-Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
-Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
-Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
-Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
-Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
-Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
-Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
-Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
-Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
-Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
-Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
-Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
-Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
-Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
-Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
-Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
-Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
-Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
-Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
-Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
-Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
-Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
-Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
-Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
-Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
-Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
-Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
-Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
-Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
-Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
-Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
-Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
-Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
-Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
-Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
-Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
-Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
-Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
-Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
-Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
-Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
-Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
-Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
-Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
-Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
-Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
-Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
-Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
-Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
-Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
-Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
-Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
-Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
-Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
-Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
-Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
-Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-14623
-SELECT COUNT(*) FROM t1 WHERE a<>'?' AND OCTET_LENGTH(a)=1;
-COUNT(*)
-63
-SELECT COUNT(*) FROM t1 WHERE a<>'' AND OCTET_LENGTH(a)=2;
-COUNT(*)
-11280
-SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a)
-FROM t1
-WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a))
-ORDER BY code;
-code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
-8260 8260 8281 A A ï½
-8261 8261 8282 B B b
-8262 8262 8283 C C c
-8263 8263 8284 D D d
-8264 8264 8285 ï¼¥ ï¼¥ ï½…
-8265 8265 8286 F F f
-8266 8266 8287 G G g
-8267 8267 8288 H H h
-8268 8268 8289 I I i
-8269 8269 828A J J j
-826A 826A 828B K K k
-826B 826B 828C L L l
-826C 826C 828D ï¼­ ï¼­ ï½
-826D 826D 828E N N n
-826E 826E 828F O O ï½
-826F 826F 8290 ï¼° ï¼° ï½
-8270 8270 8291 Q Q q
-8271 8271 8292 ï¼² ï¼² ï½’
-8272 8272 8293 S S s
-8273 8273 8294 ï¼´ ï¼´ ï½”
-8274 8274 8295 U U u
-8275 8275 8296 V V v
-8276 8276 8297 ï¼· ï¼· ï½—
-8277 8277 8298 X X x
-8278 8278 8299 ï¼¹ ï¼¹ ï½™
-8279 8279 829A Z Z z
-8281 8260 8281 ï½ ï¼¡ ï½
-8282 8261 8282 b B b
-8283 8262 8283 c C c
-8284 8263 8284 d D d
-8285 8264 8285 ï½… ï¼¥ ï½…
-8286 8265 8286 f F f
-8287 8266 8287 g G g
-8288 8267 8288 h H h
-8289 8268 8289 i I i
-828A 8269 828A j J j
-828B 826A 828B k K k
-828C 826B 828C l L l
-828D 826C 828D ï½ ï¼­ ï½
-828E 826D 828E n N n
-828F 826E 828F ï½ ï¼¯ ï½
-8290 826F 8290 ï½ ï¼° ï½
-8291 8270 8291 q Q q
-8292 8271 8292 ï½’ ï¼² ï½’
-8293 8272 8293 s S s
-8294 8273 8294 ï½” ï¼´ ï½”
-8295 8274 8295 u U u
-8296 8275 8296 v V v
-8297 8276 8297 ï½— ï¼· ï½—
-8298 8277 8298 x X x
-8299 8278 8299 ï½™ ï¼¹ ï½™
-829A 8279 829A z Z z
-839F 839F 83BF Α Α α
-83A0 83A0 83C0 Β Β β
-83A1 83A1 83C1 Γ Γ γ
-83A2 83A2 83C2 Δ Δ δ
-83A3 83A3 83C3 Ε Ε ε
-83A4 83A4 83C4 Ζ Ζ ζ
-83A5 83A5 83C5 Η Η η
-83A6 83A6 83C6 Θ Θ θ
-83A7 83A7 83C7 Ι Ι ι
-83A8 83A8 83C8 Κ Κ κ
-83A9 83A9 83C9 Λ Λ λ
-83AA 83AA 83CA Μ Μ μ
-83AB 83AB 83CB ΠΠν
-83AC 83AC 83CC Ξ Ξ ξ
-83AD 83AD 83CD Ο Ο ο
-83AE 83AE 83CE Π Π π
-83AF 83AF 83CF Ρ Ρ Ï
-83B0 83B0 83D0 Σ Σ σ
-83B1 83B1 83D1 Τ Τ τ
-83B2 83B2 83D2 Υ Υ υ
-83B3 83B3 83D3 Φ Φ φ
-83B4 83B4 83D4 Χ Χ χ
-83B5 83B5 83D5 Ψ Ψ ψ
-83B6 83B6 83D6 Ω Ω ω
-83BF 839F 83BF α Α α
-83C0 83A0 83C0 β Β β
-83C1 83A1 83C1 γ Γ γ
-83C2 83A2 83C2 δ Δ δ
-83C3 83A3 83C3 ε Ε ε
-83C4 83A4 83C4 ζ Ζ ζ
-83C5 83A5 83C5 η Η η
-83C6 83A6 83C6 θ Θ θ
-83C7 83A7 83C7 ι Ι ι
-83C8 83A8 83C8 κ Κ κ
-83C9 83A9 83C9 λ Λ λ
-83CA 83AA 83CA μ Μ μ
-83CB 83AB 83CB ν Πν
-83CC 83AC 83CC ξ Ξ ξ
-83CD 83AD 83CD ο Ο ο
-83CE 83AE 83CE π Π π
-83CF 83AF 83CF Ï Î¡ Ï
-83D0 83B0 83D0 σ Σ σ
-83D1 83B1 83D1 τ Τ τ
-83D2 83B2 83D2 υ Υ υ
-83D3 83B3 83D3 φ Φ φ
-83D4 83B4 83D4 χ Χ χ
-83D5 83B5 83D5 ψ Ψ ψ
-83D6 83B6 83D6 ω Ω ω
-8440 8440 8470 РРа
-8441 8441 8471 Б Б б
-8442 8442 8472 В В в
-8443 8443 8473 Г Г г
-8444 8444 8474 Д Д д
-8445 8445 8475 Е Е е
-8446 8446 8476 Ð Ð Ñ‘
-8447 8447 8477 Ж Ж ж
-8448 8448 8478 З З з
-8449 8449 8479 И И и
-844A 844A 847A Й Й й
-844B 844B 847B К К к
-844C 844C 847C Л Л л
-844D 844D 847D М М м
-844E 844E 847E РРн
-844F 844F 8480 О О о
-8450 8450 8481 П П п
-8451 8451 8482 Р Р р
-8452 8452 8483 С С Ñ
-8453 8453 8484 Т Т т
-8454 8454 8485 У У у
-8455 8455 8486 Ф Ф ф
-8456 8456 8487 Х Х х
-8457 8457 8488 Ц Ц ц
-8458 8458 8489 Ч Ч ч
-8459 8459 848A Ш Ш ш
-845A 845A 848B Щ Щ щ
-845B 845B 848C Ъ Ъ ъ
-845C 845C 848D Ы Ы ы
-845D 845D 848E Ь Ь ь
-845E 845E 848F Э Э Ñ
-845F 845F 8490 Ю Ю ю
-8460 8460 8491 Я Я Ñ
-8470 8440 8470 а Ра
-8471 8441 8471 б Б б
-8472 8442 8472 в В в
-8473 8443 8473 г Г г
-8474 8444 8474 д Д д
-8475 8445 8475 е Е е
-8476 8446 8476 Ñ‘ Ð Ñ‘
-8477 8447 8477 ж Ж ж
-8478 8448 8478 з З з
-8479 8449 8479 и И и
-847A 844A 847A й Й й
-847B 844B 847B к К к
-847C 844C 847C л Л л
-847D 844D 847D м М м
-847E 844E 847E н Рн
-8480 844F 8480 о О о
-8481 8450 8481 п П п
-8482 8451 8482 р Р р
-8483 8452 8483 Ñ Ð¡ Ñ
-8484 8453 8484 т Т т
-8485 8454 8485 у У у
-8486 8455 8486 ф Ф ф
-8487 8456 8487 х Х х
-8488 8457 8488 ц Ц ц
-8489 8458 8489 ч Ч ч
-848A 8459 848A ш Ш ш
-848B 845A 848B щ Щ щ
-848C 845B 848C ъ Ъ ъ
-848D 845C 848D ы Ы ы
-848E 845D 848E ь Ь ь
-848F 845E 848F Ñ Ð­ Ñ
-8490 845F 8490 ю Ю ю
-8491 8460 8491 Ñ Ð¯ Ñ
-SELECT * FROM t1
-WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-81F0 â„«
-Warnings:
-Warning 1977 Cannot convert 'sjis' character 0x81AD to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81AD to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81AE to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81AE to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81AF to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81AF to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81CF to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81CF to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D8 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D8 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D9 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D9 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81E9 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81E9 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81EA to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81EA to 'utf8'
-SELECT * FROM t1
-WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-Warnings:
-Warning 1977 Cannot convert 'sjis' character 0x81AD to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81AD to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81AE to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81AE to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81AF to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81AF to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81CF to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81CF to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D8 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D8 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D9 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D9 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81E9 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81E9 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81EA to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81EA to 'utf8'
-#
-# WL#3090 Japanese Character Set adjustments
-# Test sjis->Unicode conversion
-#
-SELECT HEX(a), HEX(CONVERT(a USING utf8)) as b FROM t1
-WHERE a<>'' HAVING b<>'3F' ORDER BY code;
-HEX(a) b
-8140 E38080
-8141 E38081
-8142 E38082
-8143 EFBC8C
-8144 EFBC8E
-8145 E383BB
-8146 EFBC9A
-8147 EFBC9B
-8148 EFBC9F
-8149 EFBC81
-814A E3829B
-814B E3829C
-814C C2B4
-814D EFBD80
-814E C2A8
-814F EFBCBE
-8150 EFBFA3
-8151 EFBCBF
-8152 E383BD
-8153 E383BE
-8154 E3829D
-8155 E3829E
-8156 E38083
-8157 E4BB9D
-8158 E38085
-8159 E38086
-815A E38087
-815B E383BC
-815C E28095
-815D E28090
-815E EFBC8F
-815F 5C
-8160 E3809C
-8161 E28096
-8162 EFBD9C
-8163 E280A6
-8164 E280A5
-8165 E28098
-8166 E28099
-8167 E2809C
-8168 E2809D
-8169 EFBC88
-816A EFBC89
-816B E38094
-816C E38095
-816D EFBCBB
-816E EFBCBD
-816F EFBD9B
-8170 EFBD9D
-8171 E38088
-8172 E38089
-8173 E3808A
-8174 E3808B
-8175 E3808C
-8176 E3808D
-8177 E3808E
-8178 E3808F
-8179 E38090
-817A E38091
-817B EFBC8B
-817C E28892
-817D C2B1
-817E C397
-8180 C3B7
-8181 EFBC9D
-8182 E289A0
-8183 EFBC9C
-8184 EFBC9E
-8185 E289A6
-8186 E289A7
-8187 E2889E
-8188 E288B4
-8189 E29982
-818A E29980
-818B C2B0
-818C E280B2
-818D E280B3
-818E E28483
-818F EFBFA5
-8190 EFBC84
-8191 C2A2
-8192 C2A3
-8193 EFBC85
-8194 EFBC83
-8195 EFBC86
-8196 EFBC8A
-8197 EFBCA0
-8198 C2A7
-8199 E29886
-819A E29885
-819B E2978B
-819C E2978F
-819D E2978E
-819E E29787
-819F E29786
-81A0 E296A1
-81A1 E296A0
-81A2 E296B3
-81A3 E296B2
-81A4 E296BD
-81A5 E296BC
-81A6 E280BB
-81A7 E38092
-81A8 E28692
-81A9 E28690
-81AA E28691
-81AB E28693
-81AC E38093
-81B8 E28888
-81B9 E2888B
-81BA E28A86
-81BB E28A87
-81BC E28A82
-81BD E28A83
-81BE E288AA
-81BF E288A9
-81C8 E288A7
-81C9 E288A8
-81CA C2AC
-81CB E28792
-81CC E28794
-81CD E28880
-81CE E28883
-81DA E288A0
-81DB E28AA5
-81DC E28C92
-81DD E28882
-81DE E28887
-81DF E289A1
-81E0 E28992
-81E1 E289AA
-81E2 E289AB
-81E3 E2889A
-81E4 E288BD
-81E5 E2889D
-81E6 E288B5
-81E7 E288AB
-81E8 E288AC
-81F0 E284AB
-81F1 E280B0
-81F2 E299AF
-81F3 E299AD
-81F4 E299AA
-81F5 E280A0
-81F6 E280A1
-81F7 C2B6
-81FC E297AF
-824F EFBC90
-8250 EFBC91
-8251 EFBC92
-8252 EFBC93
-8253 EFBC94
-8254 EFBC95
-8255 EFBC96
-8256 EFBC97
-8257 EFBC98
-8258 EFBC99
-8260 EFBCA1
-8261 EFBCA2
-8262 EFBCA3
-8263 EFBCA4
-8264 EFBCA5
-8265 EFBCA6
-8266 EFBCA7
-8267 EFBCA8
-8268 EFBCA9
-8269 EFBCAA
-826A EFBCAB
-826B EFBCAC
-826C EFBCAD
-826D EFBCAE
-826E EFBCAF
-826F EFBCB0
-8270 EFBCB1
-8271 EFBCB2
-8272 EFBCB3
-8273 EFBCB4
-8274 EFBCB5
-8275 EFBCB6
-8276 EFBCB7
-8277 EFBCB8
-8278 EFBCB9
-8279 EFBCBA
-8281 EFBD81
-8282 EFBD82
-8283 EFBD83
-8284 EFBD84
-8285 EFBD85
-8286 EFBD86
-8287 EFBD87
-8288 EFBD88
-8289 EFBD89
-828A EFBD8A
-828B EFBD8B
-828C EFBD8C
-828D EFBD8D
-828E EFBD8E
-828F EFBD8F
-8290 EFBD90
-8291 EFBD91
-8292 EFBD92
-8293 EFBD93
-8294 EFBD94
-8295 EFBD95
-8296 EFBD96
-8297 EFBD97
-8298 EFBD98
-8299 EFBD99
-829A EFBD9A
-829F E38181
-82A0 E38182
-82A1 E38183
-82A2 E38184
-82A3 E38185
-82A4 E38186
-82A5 E38187
-82A6 E38188
-82A7 E38189
-82A8 E3818A
-82A9 E3818B
-82AA E3818C
-82AB E3818D
-82AC E3818E
-82AD E3818F
-82AE E38190
-82AF E38191
-82B0 E38192
-82B1 E38193
-82B2 E38194
-82B3 E38195
-82B4 E38196
-82B5 E38197
-82B6 E38198
-82B7 E38199
-82B8 E3819A
-82B9 E3819B
-82BA E3819C
-82BB E3819D
-82BC E3819E
-82BD E3819F
-82BE E381A0
-82BF E381A1
-82C0 E381A2
-82C1 E381A3
-82C2 E381A4
-82C3 E381A5
-82C4 E381A6
-82C5 E381A7
-82C6 E381A8
-82C7 E381A9
-82C8 E381AA
-82C9 E381AB
-82CA E381AC
-82CB E381AD
-82CC E381AE
-82CD E381AF
-82CE E381B0
-82CF E381B1
-82D0 E381B2
-82D1 E381B3
-82D2 E381B4
-82D3 E381B5
-82D4 E381B6
-82D5 E381B7
-82D6 E381B8
-82D7 E381B9
-82D8 E381BA
-82D9 E381BB
-82DA E381BC
-82DB E381BD
-82DC E381BE
-82DD E381BF
-82DE E38280
-82DF E38281
-82E0 E38282
-82E1 E38283
-82E2 E38284
-82E3 E38285
-82E4 E38286
-82E5 E38287
-82E6 E38288
-82E7 E38289
-82E8 E3828A
-82E9 E3828B
-82EA E3828C
-82EB E3828D
-82EC E3828E
-82ED E3828F
-82EE E38290
-82EF E38291
-82F0 E38292
-82F1 E38293
-8340 E382A1
-8341 E382A2
-8342 E382A3
-8343 E382A4
-8344 E382A5
-8345 E382A6
-8346 E382A7
-8347 E382A8
-8348 E382A9
-8349 E382AA
-834A E382AB
-834B E382AC
-834C E382AD
-834D E382AE
-834E E382AF
-834F E382B0
-8350 E382B1
-8351 E382B2
-8352 E382B3
-8353 E382B4
-8354 E382B5
-8355 E382B6
-8356 E382B7
-8357 E382B8
-8358 E382B9
-8359 E382BA
-835A E382BB
-835B E382BC
-835C E382BD
-835D E382BE
-835E E382BF
-835F E38380
-8360 E38381
-8361 E38382
-8362 E38383
-8363 E38384
-8364 E38385
-8365 E38386
-8366 E38387
-8367 E38388
-8368 E38389
-8369 E3838A
-836A E3838B
-836B E3838C
-836C E3838D
-836D E3838E
-836E E3838F
-836F E38390
-8370 E38391
-8371 E38392
-8372 E38393
-8373 E38394
-8374 E38395
-8375 E38396
-8376 E38397
-8377 E38398
-8378 E38399
-8379 E3839A
-837A E3839B
-837B E3839C
-837C E3839D
-837D E3839E
-837E E3839F
-8380 E383A0
-8381 E383A1
-8382 E383A2
-8383 E383A3
-8384 E383A4
-8385 E383A5
-8386 E383A6
-8387 E383A7
-8388 E383A8
-8389 E383A9
-838A E383AA
-838B E383AB
-838C E383AC
-838D E383AD
-838E E383AE
-838F E383AF
-8390 E383B0
-8391 E383B1
-8392 E383B2
-8393 E383B3
-8394 E383B4
-8395 E383B5
-8396 E383B6
-839F CE91
-83A0 CE92
-83A1 CE93
-83A2 CE94
-83A3 CE95
-83A4 CE96
-83A5 CE97
-83A6 CE98
-83A7 CE99
-83A8 CE9A
-83A9 CE9B
-83AA CE9C
-83AB CE9D
-83AC CE9E
-83AD CE9F
-83AE CEA0
-83AF CEA1
-83B0 CEA3
-83B1 CEA4
-83B2 CEA5
-83B3 CEA6
-83B4 CEA7
-83B5 CEA8
-83B6 CEA9
-83BF CEB1
-83C0 CEB2
-83C1 CEB3
-83C2 CEB4
-83C3 CEB5
-83C4 CEB6
-83C5 CEB7
-83C6 CEB8
-83C7 CEB9
-83C8 CEBA
-83C9 CEBB
-83CA CEBC
-83CB CEBD
-83CC CEBE
-83CD CEBF
-83CE CF80
-83CF CF81
-83D0 CF83
-83D1 CF84
-83D2 CF85
-83D3 CF86
-83D4 CF87
-83D5 CF88
-83D6 CF89
-8440 D090
-8441 D091
-8442 D092
-8443 D093
-8444 D094
-8445 D095
-8446 D081
-8447 D096
-8448 D097
-8449 D098
-844A D099
-844B D09A
-844C D09B
-844D D09C
-844E D09D
-844F D09E
-8450 D09F
-8451 D0A0
-8452 D0A1
-8453 D0A2
-8454 D0A3
-8455 D0A4
-8456 D0A5
-8457 D0A6
-8458 D0A7
-8459 D0A8
-845A D0A9
-845B D0AA
-845C D0AB
-845D D0AC
-845E D0AD
-845F D0AE
-8460 D0AF
-8470 D0B0
-8471 D0B1
-8472 D0B2
-8473 D0B3
-8474 D0B4
-8475 D0B5
-8476 D191
-8477 D0B6
-8478 D0B7
-8479 D0B8
-847A D0B9
-847B D0BA
-847C D0BB
-847D D0BC
-847E D0BD
-8480 D0BE
-8481 D0BF
-8482 D180
-8483 D181
-8484 D182
-8485 D183
-8486 D184
-8487 D185
-8488 D186
-8489 D187
-848A D188
-848B D189
-848C D18A
-848D D18B
-848E D18C
-848F D18D
-8490 D18E
-8491 D18F
-849F E29480
-84A0 E29482
-84A1 E2948C
-84A2 E29490
-84A3 E29498
-84A4 E29494
-84A5 E2949C
-84A6 E294AC
-84A7 E294A4
-84A8 E294B4
-84A9 E294BC
-84AA E29481
-84AB E29483
-84AC E2948F
-84AD E29493
-84AE E2949B
-84AF E29497
-84B0 E294A3
-84B1 E294B3
-84B2 E294AB
-84B3 E294BB
-84B4 E2958B
-84B5 E294A0
-84B6 E294AF
-84B7 E294A8
-84B8 E294B7
-84B9 E294BF
-84BA E2949D
-84BB E294B0
-84BC E294A5
-84BD E294B8
-84BE E29582
-889F E4BA9C
-88A0 E59496
-88A1 E5A883
-88A2 E998BF
-88A3 E59380
-88A4 E6849B
-88A5 E68CA8
-88A6 E5A7B6
-88A7 E980A2
-88A8 E891B5
-88A9 E88C9C
-88AA E7A990
-88AB E682AA
-88AC E68FA1
-88AD E6B8A5
-88AE E697AD
-88AF E891A6
-88B0 E88AA6
-88B1 E9AFB5
-88B2 E6A293
-88B3 E59CA7
-88B4 E696A1
-88B5 E689B1
-88B6 E5AE9B
-88B7 E5A790
-88B8 E899BB
-88B9 E9A3B4
-88BA E7B5A2
-88BB E7B6BE
-88BC E9AE8E
-88BD E68896
-88BE E7B29F
-88BF E8A2B7
-88C0 E5AE89
-88C1 E5BAB5
-88C2 E68C89
-88C3 E69A97
-88C4 E6A188
-88C5 E99787
-88C6 E99E8D
-88C7 E69D8F
-88C8 E4BBA5
-88C9 E4BC8A
-88CA E4BD8D
-88CB E4BE9D
-88CC E58189
-88CD E59BB2
-88CE E5A4B7
-88CF E5A794
-88D0 E5A881
-88D1 E5B089
-88D2 E6839F
-88D3 E6848F
-88D4 E685B0
-88D5 E69893
-88D6 E6A485
-88D7 E782BA
-88D8 E7958F
-88D9 E795B0
-88DA E7A7BB
-88DB E7B6AD
-88DC E7B7AF
-88DD E88383
-88DE E8908E
-88DF E8A1A3
-88E0 E8AC82
-88E1 E98195
-88E2 E981BA
-88E3 E58CBB
-88E4 E4BA95
-88E5 E4BAA5
-88E6 E59F9F
-88E7 E882B2
-88E8 E98381
-88E9 E7A3AF
-88EA E4B880
-88EB E5A3B1
-88EC E6BAA2
-88ED E980B8
-88EE E7A8B2
-88EF E88CA8
-88F0 E88A8B
-88F1 E9B0AF
-88F2 E58581
-88F3 E58DB0
-88F4 E592BD
-88F5 E593A1
-88F6 E59BA0
-88F7 E5A7BB
-88F8 E5BC95
-88F9 E9A3B2
-88FA E6B7AB
-88FB E883A4
-88FC E894AD
-8940 E999A2
-8941 E999B0
-8942 E99AA0
-8943 E99FBB
-8944 E5908B
-8945 E58FB3
-8946 E5AE87
-8947 E7838F
-8948 E7BEBD
-8949 E8BF82
-894A E99BA8
-894B E58DAF
-894C E9B59C
-894D E7AABA
-894E E4B891
-894F E7A293
-8950 E887BC
-8951 E6B8A6
-8952 E59898
-8953 E59484
-8954 E6AC9D
-8955 E8949A
-8956 E9B0BB
-8957 E5A7A5
-8958 E58EA9
-8959 E6B5A6
-895A E7939C
-895B E9968F
-895C E59982
-895D E4BA91
-895E E9818B
-895F E99BB2
-8960 E88D8F
-8961 E9A48C
-8962 E58FA1
-8963 E596B6
-8964 E5ACB0
-8965 E5BDB1
-8966 E698A0
-8967 E69BB3
-8968 E6A084
-8969 E6B0B8
-896A E6B3B3
-896B E6B4A9
-896C E7919B
-896D E79B88
-896E E7A98E
-896F E9A0B4
-8970 E88BB1
-8971 E8A19B
-8972 E8A9A0
-8973 E98BAD
-8974 E6B6B2
-8975 E796AB
-8976 E79B8A
-8977 E9A785
-8978 E682A6
-8979 E8AC81
-897A E8B68A
-897B E996B2
-897C E6A68E
-897D E58EAD
-897E E58686
-8980 E59C92
-8981 E5A0B0
-8982 E5A584
-8983 E5AEB4
-8984 E5BBB6
-8985 E680A8
-8986 E68EA9
-8987 E68FB4
-8988 E6B2BF
-8989 E6BC94
-898A E7828E
-898B E78494
-898C E78599
-898D E78795
-898E E78CBF
-898F E7B881
-8990 E889B6
-8991 E88B91
-8992 E89697
-8993 E981A0
-8994 E9899B
-8995 E9B49B
-8996 E5A1A9
-8997 E696BC
-8998 E6B19A
-8999 E794A5
-899A E587B9
-899B E5A4AE
-899C E5A5A5
-899D E5BE80
-899E E5BF9C
-899F E68ABC
-89A0 E697BA
-89A1 E6A8AA
-89A2 E6ACA7
-89A3 E6AEB4
-89A4 E78E8B
-89A5 E7BF81
-89A6 E8A596
-89A7 E9B4AC
-89A8 E9B48E
-89A9 E9BB84
-89AA E5B2A1
-89AB E6B296
-89AC E88DBB
-89AD E58484
-89AE E5B18B
-89AF E686B6
-89B0 E88786
-89B1 E6A1B6
-89B2 E789A1
-89B3 E4B999
-89B4 E4BFBA
-89B5 E58DB8
-89B6 E681A9
-89B7 E6B8A9
-89B8 E7A98F
-89B9 E99FB3
-89BA E4B88B
-89BB E58C96
-89BC E4BBAE
-89BD E4BD95
-89BE E4BCBD
-89BF E4BEA1
-89C0 E4BDB3
-89C1 E58AA0
-89C2 E58FAF
-89C3 E59889
-89C4 E5A48F
-89C5 E5AB81
-89C6 E5AEB6
-89C7 E5AFA1
-89C8 E7A791
-89C9 E69A87
-89CA E69E9C
-89CB E69EB6
-89CC E6AD8C
-89CD E6B2B3
-89CE E781AB
-89CF E78F82
-89D0 E7A68D
-89D1 E7A6BE
-89D2 E7A8BC
-89D3 E7AE87
-89D4 E88AB1
-89D5 E88B9B
-89D6 E88C84
-89D7 E88DB7
-89D8 E88FAF
-89D9 E88F93
-89DA E89DA6
-89DB E8AAB2
-89DC E598A9
-89DD E8B2A8
-89DE E8BFA6
-89DF E9818E
-89E0 E99C9E
-89E1 E89A8A
-89E2 E4BF84
-89E3 E5B3A8
-89E4 E68891
-89E5 E78999
-89E6 E794BB
-89E7 E887A5
-89E8 E88ABD
-89E9 E89BBE
-89EA E8B380
-89EB E99B85
-89EC E9A493
-89ED E9A795
-89EE E4BB8B
-89EF E4BC9A
-89F0 E8A7A3
-89F1 E59B9E
-89F2 E5A18A
-89F3 E5A38A
-89F4 E5BBBB
-89F5 E5BFAB
-89F6 E680AA
-89F7 E68294
-89F8 E681A2
-89F9 E68790
-89FA E68892
-89FB E68B90
-89FC E694B9
-8A40 E9AD81
-8A41 E699A6
-8A42 E6A2B0
-8A43 E6B5B7
-8A44 E781B0
-8A45 E7958C
-8A46 E79A86
-8A47 E7B5B5
-8A48 E88AA5
-8A49 E89FB9
-8A4A E9968B
-8A4B E99A8E
-8A4C E8B29D
-8A4D E587B1
-8A4E E58ABE
-8A4F E5A496
-8A50 E592B3
-8A51 E5AEB3
-8A52 E5B496
-8A53 E685A8
-8A54 E6A682
-8A55 E6B6AF
-8A56 E7A28D
-8A57 E8938B
-8A58 E8A197
-8A59 E8A9B2
-8A5A E98EA7
-8A5B E9AAB8
-8A5C E6B5AC
-8A5D E9A6A8
-8A5E E89B99
-8A5F E59EA3
-8A60 E69FBF
-8A61 E89B8E
-8A62 E9888E
-8A63 E58A83
-8A64 E59A87
-8A65 E59084
-8A66 E5BB93
-8A67 E68BA1
-8A68 E692B9
-8A69 E6A0BC
-8A6A E6A0B8
-8A6B E6AEBB
-8A6C E78DB2
-8A6D E7A2BA
-8A6E E7A9AB
-8A6F E8A69A
-8A70 E8A792
-8A71 E8B5AB
-8A72 E8BC83
-8A73 E983AD
-8A74 E996A3
-8A75 E99A94
-8A76 E99DA9
-8A77 E5ADA6
-8A78 E5B2B3
-8A79 E6A5BD
-8A7A E9A18D
-8A7B E9A18E
-8A7C E68E9B
-8A7D E7ACA0
-8A7E E6A8AB
-8A80 E6A9BF
-8A81 E6A2B6
-8A82 E9B08D
-8A83 E6BD9F
-8A84 E589B2
-8A85 E5969D
-8A86 E681B0
-8A87 E68BAC
-8A88 E6B4BB
-8A89 E6B887
-8A8A E6BB91
-8A8B E8919B
-8A8C E8A490
-8A8D E8BD84
-8A8E E4B894
-8A8F E9B0B9
-8A90 E58FB6
-8A91 E6A49B
-8A92 E6A8BA
-8A93 E99E84
-8A94 E6A0AA
-8A95 E5859C
-8A96 E7AB83
-8A97 E892B2
-8A98 E9879C
-8A99 E98E8C
-8A9A E5999B
-8A9B E9B4A8
-8A9C E6A0A2
-8A9D E88C85
-8A9E E890B1
-8A9F E7B2A5
-8AA0 E58888
-8AA1 E88B85
-8AA2 E793A6
-8AA3 E4B9BE
-8AA4 E4BE83
-8AA5 E586A0
-8AA6 E5AF92
-8AA7 E5888A
-8AA8 E58B98
-8AA9 E58BA7
-8AAA E5B7BB
-8AAB E5969A
-8AAC E5A0AA
-8AAD E5A7A6
-8AAE E5AE8C
-8AAF E5AE98
-8AB0 E5AF9B
-8AB1 E5B9B2
-8AB2 E5B9B9
-8AB3 E682A3
-8AB4 E6849F
-8AB5 E685A3
-8AB6 E686BE
-8AB7 E68F9B
-8AB8 E695A2
-8AB9 E69F91
-8ABA E6A193
-8ABB E6A3BA
-8ABC E6ACBE
-8ABD E6AD93
-8ABE E6B197
-8ABF E6BCA2
-8AC0 E6BE97
-8AC1 E6BD85
-8AC2 E792B0
-8AC3 E79498
-8AC4 E79BA3
-8AC5 E79C8B
-8AC6 E7ABBF
-8AC7 E7AEA1
-8AC8 E7B0A1
-8AC9 E7B7A9
-8ACA E7BCB6
-8ACB E7BFB0
-8ACC E8829D
-8ACD E889A6
-8ACE E88E9E
-8ACF E8A6B3
-8AD0 E8AB8C
-8AD1 E8B2AB
-8AD2 E98284
-8AD3 E99191
-8AD4 E99693
-8AD5 E99691
-8AD6 E996A2
-8AD7 E999A5
-8AD8 E99F93
-8AD9 E9A4A8
-8ADA E88898
-8ADB E4B8B8
-8ADC E590AB
-8ADD E5B2B8
-8ADE E5B78C
-8ADF E78EA9
-8AE0 E7998C
-8AE1 E79CBC
-8AE2 E5B2A9
-8AE3 E7BFAB
-8AE4 E8B48B
-8AE5 E99B81
-8AE6 E9A091
-8AE7 E9A194
-8AE8 E9A198
-8AE9 E4BC81
-8AEA E4BC8E
-8AEB E58DB1
-8AEC E5969C
-8AED E599A8
-8AEE E59FBA
-8AEF E5A587
-8AF0 E5AC89
-8AF1 E5AF84
-8AF2 E5B290
-8AF3 E5B88C
-8AF4 E5B9BE
-8AF5 E5BF8C
-8AF6 E68FAE
-8AF7 E69CBA
-8AF8 E69797
-8AF9 E697A2
-8AFA E69C9F
-8AFB E6A38B
-8AFC E6A384
-8B40 E6A99F
-8B41 E5B8B0
-8B42 E6AF85
-8B43 E6B097
-8B44 E6B1BD
-8B45 E795BF
-8B46 E7A588
-8B47 E5ADA3
-8B48 E7A880
-8B49 E7B480
-8B4A E5BEBD
-8B4B E8A68F
-8B4C E8A898
-8B4D E8B2B4
-8B4E E8B5B7
-8B4F E8BB8C
-8B50 E8BC9D
-8B51 E9A3A2
-8B52 E9A88E
-8B53 E9ACBC
-8B54 E4BA80
-8B55 E581BD
-8B56 E58480
-8B57 E5A693
-8B58 E5AE9C
-8B59 E688AF
-8B5A E68A80
-8B5B E693AC
-8B5C E6ACBA
-8B5D E78AA0
-8B5E E79691
-8B5F E7A587
-8B60 E7BEA9
-8B61 E89FBB
-8B62 E8AABC
-8B63 E8ADB0
-8B64 E68EAC
-8B65 E88F8A
-8B66 E99EA0
-8B67 E59089
-8B68 E59083
-8B69 E596AB
-8B6A E6A194
-8B6B E6A998
-8B6C E8A9B0
-8B6D E7A0A7
-8B6E E69DB5
-8B6F E9BB8D
-8B70 E58DB4
-8B71 E5AEA2
-8B72 E8849A
-8B73 E89990
-8B74 E98086
-8B75 E4B898
-8B76 E4B985
-8B77 E4BB87
-8B78 E4BC91
-8B79 E58F8A
-8B7A E590B8
-8B7B E5AEAE
-8B7C E5BC93
-8B7D E680A5
-8B7E E69591
-8B80 E69CBD
-8B81 E6B182
-8B82 E6B1B2
-8B83 E6B3A3
-8B84 E781B8
-8B85 E79083
-8B86 E7A9B6
-8B87 E7AAAE
-8B88 E7AC88
-8B89 E7B49A
-8B8A E7B3BE
-8B8B E7B5A6
-8B8C E697A7
-8B8D E7899B
-8B8E E58EBB
-8B8F E5B185
-8B90 E5B7A8
-8B91 E68B92
-8B92 E68BA0
-8B93 E68C99
-8B94 E6B8A0
-8B95 E8999A
-8B96 E8A8B1
-8B97 E8B79D
-8B98 E98BB8
-8B99 E6BC81
-8B9A E7A6A6
-8B9B E9AD9A
-8B9C E4BAA8
-8B9D E4BAAB
-8B9E E4BAAC
-8B9F E4BE9B
-8BA0 E4BEA0
-8BA1 E58391
-8BA2 E58587
-8BA3 E7ABB6
-8BA4 E585B1
-8BA5 E587B6
-8BA6 E58D94
-8BA7 E58CA1
-8BA8 E58DBF
-8BA9 E58FAB
-8BAA E596AC
-8BAB E5A283
-8BAC E5B3A1
-8BAD E5BCB7
-8BAE E5BD8A
-8BAF E680AF
-8BB0 E68190
-8BB1 E681AD
-8BB2 E68C9F
-8BB3 E69599
-8BB4 E6A98B
-8BB5 E6B381
-8BB6 E78B82
-8BB7 E78BAD
-8BB8 E79FAF
-8BB9 E883B8
-8BBA E88485
-8BBB E88888
-8BBC E8958E
-8BBD E983B7
-8BBE E98FA1
-8BBF E99FBF
-8BC0 E9A597
-8BC1 E9A99A
-8BC2 E4BBB0
-8BC3 E5879D
-8BC4 E5B0AD
-8BC5 E69A81
-8BC6 E6A5AD
-8BC7 E5B180
-8BC8 E69BB2
-8BC9 E6A5B5
-8BCA E78E89
-8BCB E6A190
-8BCC E7B281
-8BCD E58385
-8BCE E58BA4
-8BCF E59D87
-8BD0 E5B7BE
-8BD1 E98CA6
-8BD2 E696A4
-8BD3 E6ACA3
-8BD4 E6ACBD
-8BD5 E790B4
-8BD6 E7A681
-8BD7 E7A6BD
-8BD8 E7AD8B
-8BD9 E7B78A
-8BDA E88AB9
-8BDB E88F8C
-8BDC E8A1BF
-8BDD E8A59F
-8BDE E8ACB9
-8BDF E8BF91
-8BE0 E98791
-8BE1 E5909F
-8BE2 E98A80
-8BE3 E4B99D
-8BE4 E580B6
-8BE5 E58FA5
-8BE6 E58CBA
-8BE7 E78B97
-8BE8 E78E96
-8BE9 E79FA9
-8BEA E88BA6
-8BEB E8BAAF
-8BEC E9A786
-8BED E9A788
-8BEE E9A792
-8BEF E585B7
-8BF0 E6849A
-8BF1 E8999E
-8BF2 E596B0
-8BF3 E7A9BA
-8BF4 E581B6
-8BF5 E5AF93
-8BF6 E98187
-8BF7 E99A85
-8BF8 E4B8B2
-8BF9 E6AB9B
-8BFA E987A7
-8BFB E5B191
-8BFC E5B188
-8C40 E68E98
-8C41 E7AA9F
-8C42 E6B293
-8C43 E99DB4
-8C44 E8BDA1
-8C45 E7AAAA
-8C46 E7868A
-8C47 E99A88
-8C48 E7B282
-8C49 E6A097
-8C4A E7B9B0
-8C4B E6A191
-8C4C E98DAC
-8C4D E58BB2
-8C4E E5909B
-8C4F E896AB
-8C50 E8A893
-8C51 E7BEA4
-8C52 E8BB8D
-8C53 E983A1
-8C54 E58DA6
-8C55 E8A288
-8C56 E7A581
-8C57 E4BF82
-8C58 E582BE
-8C59 E58891
-8C5A E58584
-8C5B E59593
-8C5C E59CAD
-8C5D E78FAA
-8C5E E59E8B
-8C5F E5A591
-8C60 E5BDA2
-8C61 E5BE84
-8C62 E681B5
-8C63 E685B6
-8C64 E685A7
-8C65 E686A9
-8C66 E68EB2
-8C67 E690BA
-8C68 E695AC
-8C69 E699AF
-8C6A E6A182
-8C6B E6B893
-8C6C E795A6
-8C6D E7A8BD
-8C6E E7B3BB
-8C6F E7B58C
-8C70 E7B699
-8C71 E7B98B
-8C72 E7BDAB
-8C73 E88C8E
-8C74 E88D8A
-8C75 E89B8D
-8C76 E8A888
-8C77 E8A9A3
-8C78 E8ADA6
-8C79 E8BBBD
-8C7A E9A09A
-8C7B E9B68F
-8C7C E88AB8
-8C7D E8BF8E
-8C7E E9AFA8
-8C80 E58A87
-8C81 E6889F
-8C82 E69283
-8C83 E6BF80
-8C84 E99A99
-8C85 E6A181
-8C86 E58291
-8C87 E6ACA0
-8C88 E6B1BA
-8C89 E6BD94
-8C8A E7A9B4
-8C8B E7B590
-8C8C E8A180
-8C8D E8A8A3
-8C8E E69C88
-8C8F E4BBB6
-8C90 E580B9
-8C91 E580A6
-8C92 E581A5
-8C93 E585BC
-8C94 E588B8
-8C95 E589A3
-8C96 E596A7
-8C97 E59C8F
-8C98 E5A085
-8C99 E5AB8C
-8C9A E5BBBA
-8C9B E686B2
-8C9C E687B8
-8C9D E68BB3
-8C9E E68DB2
-8C9F E6A49C
-8CA0 E6A8A9
-8CA1 E789BD
-8CA2 E78AAC
-8CA3 E78CAE
-8CA4 E7A094
-8CA5 E7A1AF
-8CA6 E7B5B9
-8CA7 E79C8C
-8CA8 E882A9
-8CA9 E8A68B
-8CAA E8AC99
-8CAB E8B3A2
-8CAC E8BB92
-8CAD E981A3
-8CAE E98DB5
-8CAF E999BA
-8CB0 E9A195
-8CB1 E9A893
-8CB2 E9B9B8
-8CB3 E58583
-8CB4 E58E9F
-8CB5 E58EB3
-8CB6 E5B9BB
-8CB7 E5BCA6
-8CB8 E6B89B
-8CB9 E6BA90
-8CBA E78E84
-8CBB E78FBE
-8CBC E7B583
-8CBD E888B7
-8CBE E8A880
-8CBF E8ABBA
-8CC0 E99990
-8CC1 E4B98E
-8CC2 E5808B
-8CC3 E58FA4
-8CC4 E591BC
-8CC5 E59BBA
-8CC6 E5A791
-8CC7 E5ADA4
-8CC8 E5B7B1
-8CC9 E5BAAB
-8CCA E5BCA7
-8CCB E688B8
-8CCC E69585
-8CCD E69EAF
-8CCE E6B996
-8CCF E78B90
-8CD0 E7B38A
-8CD1 E8A2B4
-8CD2 E882A1
-8CD3 E883A1
-8CD4 E88FB0
-8CD5 E8998E
-8CD6 E8AA87
-8CD7 E8B7A8
-8CD8 E988B7
-8CD9 E99B87
-8CDA E9A1A7
-8CDB E9BC93
-8CDC E4BA94
-8CDD E4BA92
-8CDE E4BC8D
-8CDF E58D88
-8CE0 E59189
-8CE1 E590BE
-8CE2 E5A8AF
-8CE3 E5BE8C
-8CE4 E5BEA1
-8CE5 E6829F
-8CE6 E6A2A7
-8CE7 E6AA8E
-8CE8 E7919A
-8CE9 E7A281
-8CEA E8AA9E
-8CEB E8AAA4
-8CEC E8ADB7
-8CED E98690
-8CEE E4B99E
-8CEF E9AF89
-8CF0 E4BAA4
-8CF1 E4BDBC
-8CF2 E4BEAF
-8CF3 E58099
-8CF4 E58096
-8CF5 E58589
-8CF6 E585AC
-8CF7 E58A9F
-8CF8 E58AB9
-8CF9 E58BBE
-8CFA E58E9A
-8CFB E58FA3
-8CFC E59091
-8D40 E5908E
-8D41 E59689
-8D42 E59D91
-8D43 E59EA2
-8D44 E5A5BD
-8D45 E5AD94
-8D46 E5AD9D
-8D47 E5AE8F
-8D48 E5B7A5
-8D49 E5B7A7
-8D4A E5B7B7
-8D4B E5B9B8
-8D4C E5BA83
-8D4D E5BA9A
-8D4E E5BAB7
-8D4F E5BC98
-8D50 E68192
-8D51 E6858C
-8D52 E68A97
-8D53 E68B98
-8D54 E68EA7
-8D55 E694BB
-8D56 E69882
-8D57 E69983
-8D58 E69BB4
-8D59 E69DAD
-8D5A E6A0A1
-8D5B E6A297
-8D5C E6A78B
-8D5D E6B19F
-8D5E E6B4AA
-8D5F E6B5A9
-8D60 E6B8AF
-8D61 E6BA9D
-8D62 E794B2
-8D63 E79A87
-8D64 E7A1AC
-8D65 E7A8BF
-8D66 E7B3A0
-8D67 E7B485
-8D68 E7B498
-8D69 E7B59E
-8D6A E7B6B1
-8D6B E88095
-8D6C E88083
-8D6D E882AF
-8D6E E882B1
-8D6F E88594
-8D70 E8868F
-8D71 E888AA
-8D72 E88D92
-8D73 E8A18C
-8D74 E8A1A1
-8D75 E8AC9B
-8D76 E8B2A2
-8D77 E8B3BC
-8D78 E9838A
-8D79 E985B5
-8D7A E989B1
-8D7B E7A0BF
-8D7C E98BBC
-8D7D E996A4
-8D7E E9998D
-8D80 E9A085
-8D81 E9A699
-8D82 E9AB98
-8D83 E9B4BB
-8D84 E5899B
-8D85 E58AAB
-8D86 E58FB7
-8D87 E59088
-8D88 E5A395
-8D89 E68BB7
-8D8A E6BFA0
-8D8B E8B1AA
-8D8C E8BD9F
-8D8D E9BAB9
-8D8E E5858B
-8D8F E588BB
-8D90 E5918A
-8D91 E59BBD
-8D92 E7A980
-8D93 E985B7
-8D94 E9B5A0
-8D95 E9BB92
-8D96 E78D84
-8D97 E6BC89
-8D98 E885B0
-8D99 E79491
-8D9A E5BFBD
-8D9B E6839A
-8D9C E9AAA8
-8D9D E78B9B
-8D9E E8BEBC
-8D9F E6ADA4
-8DA0 E9A083
-8DA1 E4BB8A
-8DA2 E59BB0
-8DA3 E59DA4
-8DA4 E5A2BE
-8DA5 E5A99A
-8DA6 E681A8
-8DA7 E68787
-8DA8 E6988F
-8DA9 E69886
-8DAA E6A0B9
-8DAB E6A2B1
-8DAC E6B7B7
-8DAD E79795
-8DAE E7B4BA
-8DAF E889AE
-8DB0 E9AD82
-8DB1 E4BA9B
-8DB2 E4BD90
-8DB3 E58F89
-8DB4 E59486
-8DB5 E5B5AF
-8DB6 E5B7A6
-8DB7 E5B7AE
-8DB8 E69FBB
-8DB9 E6B299
-8DBA E791B3
-8DBB E7A082
-8DBC E8A990
-8DBD E98E96
-8DBE E8A39F
-8DBF E59D90
-8DC0 E5BAA7
-8DC1 E68CAB
-8DC2 E582B5
-8DC3 E582AC
-8DC4 E5868D
-8DC5 E69C80
-8DC6 E59389
-8DC7 E5A19E
-8DC8 E5A6BB
-8DC9 E5AEB0
-8DCA E5BDA9
-8DCB E6898D
-8DCC E68EA1
-8DCD E6A0BD
-8DCE E6ADB3
-8DCF E6B888
-8DD0 E781BD
-8DD1 E98787
-8DD2 E78A80
-8DD3 E7A095
-8DD4 E7A0A6
-8DD5 E7A5AD
-8DD6 E6968E
-8DD7 E7B4B0
-8DD8 E88F9C
-8DD9 E8A381
-8DDA E8BC89
-8DDB E99A9B
-8DDC E589A4
-8DDD E59CA8
-8DDE E69D90
-8DDF E7BDAA
-8DE0 E8B2A1
-8DE1 E586B4
-8DE2 E59D82
-8DE3 E998AA
-8DE4 E5A0BA
-8DE5 E6A68A
-8DE6 E882B4
-8DE7 E592B2
-8DE8 E5B48E
-8DE9 E59FBC
-8DEA E7A295
-8DEB E9B7BA
-8DEC E4BD9C
-8DED E5898A
-8DEE E5928B
-8DEF E690BE
-8DF0 E698A8
-8DF1 E69C94
-8DF2 E69FB5
-8DF3 E7AA84
-8DF4 E7AD96
-8DF5 E7B4A2
-8DF6 E98CAF
-8DF7 E6A19C
-8DF8 E9AEAD
-8DF9 E7ACB9
-8DFA E58C99
-8DFB E5868A
-8DFC E588B7
-8E40 E5AF9F
-8E41 E68BB6
-8E42 E692AE
-8E43 E693A6
-8E44 E69CAD
-8E45 E6AEBA
-8E46 E896A9
-8E47 E99B91
-8E48 E79A90
-8E49 E9AF96
-8E4A E68D8C
-8E4B E98C86
-8E4C E9AEAB
-8E4D E79ABF
-8E4E E69992
-8E4F E4B889
-8E50 E58298
-8E51 E58F82
-8E52 E5B1B1
-8E53 E683A8
-8E54 E69292
-8E55 E695A3
-8E56 E6A19F
-8E57 E787A6
-8E58 E78F8A
-8E59 E794A3
-8E5A E7AE97
-8E5B E7BA82
-8E5C E89A95
-8E5D E8AE83
-8E5E E8B39B
-8E5F E985B8
-8E60 E9A490
-8E61 E696AC
-8E62 E69AAB
-8E63 E6AE8B
-8E64 E4BB95
-8E65 E4BB94
-8E66 E4BCBA
-8E67 E4BDBF
-8E68 E588BA
-8E69 E58FB8
-8E6A E58FB2
-8E6B E597A3
-8E6C E59B9B
-8E6D E5A3AB
-8E6E E5A78B
-8E6F E5A789
-8E70 E5A7BF
-8E71 E5AD90
-8E72 E5B18D
-8E73 E5B882
-8E74 E5B8AB
-8E75 E5BF97
-8E76 E6809D
-8E77 E68C87
-8E78 E694AF
-8E79 E5AD9C
-8E7A E696AF
-8E7B E696BD
-8E7C E697A8
-8E7D E69E9D
-8E7E E6ADA2
-8E80 E6ADBB
-8E81 E6B08F
-8E82 E78D85
-8E83 E7A589
-8E84 E7A781
-8E85 E7B3B8
-8E86 E7B499
-8E87 E7B4AB
-8E88 E882A2
-8E89 E88482
-8E8A E887B3
-8E8B E8A696
-8E8C E8A99E
-8E8D E8A9A9
-8E8E E8A9A6
-8E8F E8AA8C
-8E90 E8ABAE
-8E91 E8B387
-8E92 E8B39C
-8E93 E99B8C
-8E94 E9A3BC
-8E95 E6ADAF
-8E96 E4BA8B
-8E97 E4BCBC
-8E98 E4BE8D
-8E99 E58590
-8E9A E5AD97
-8E9B E5AFBA
-8E9C E68588
-8E9D E68C81
-8E9E E69982
-8E9F E6ACA1
-8EA0 E6BB8B
-8EA1 E6B2BB
-8EA2 E788BE
-8EA3 E792BD
-8EA4 E79794
-8EA5 E7A381
-8EA6 E7A4BA
-8EA7 E8808C
-8EA8 E880B3
-8EA9 E887AA
-8EAA E89294
-8EAB E8BE9E
-8EAC E6B190
-8EAD E9B9BF
-8EAE E5BC8F
-8EAF E8AD98
-8EB0 E9B4AB
-8EB1 E7ABBA
-8EB2 E8BBB8
-8EB3 E5AE8D
-8EB4 E99BAB
-8EB5 E4B883
-8EB6 E58FB1
-8EB7 E59FB7
-8EB8 E5A4B1
-8EB9 E5AB89
-8EBA E5AEA4
-8EBB E68289
-8EBC E6B9BF
-8EBD E6BC86
-8EBE E796BE
-8EBF E8B3AA
-8EC0 E5AE9F
-8EC1 E89480
-8EC2 E7AFA0
-8EC3 E581B2
-8EC4 E69FB4
-8EC5 E88A9D
-8EC6 E5B1A1
-8EC7 E8958A
-8EC8 E7B89E
-8EC9 E8888E
-8ECA E58699
-8ECB E5B084
-8ECC E68DA8
-8ECD E8B5A6
-8ECE E6969C
-8ECF E785AE
-8ED0 E7A4BE
-8ED1 E7B497
-8ED2 E88085
-8ED3 E8AC9D
-8ED4 E8BB8A
-8ED5 E981AE
-8ED6 E89B87
-8ED7 E982AA
-8ED8 E5809F
-8ED9 E58BBA
-8EDA E5B0BA
-8EDB E69D93
-8EDC E781BC
-8EDD E788B5
-8EDE E9858C
-8EDF E98788
-8EE0 E98CAB
-8EE1 E88BA5
-8EE2 E5AF82
-8EE3 E5BCB1
-8EE4 E683B9
-8EE5 E4B8BB
-8EE6 E58F96
-8EE7 E5AE88
-8EE8 E6898B
-8EE9 E69CB1
-8EEA E6AE8A
-8EEB E78BA9
-8EEC E78FA0
-8EED E7A8AE
-8EEE E885AB
-8EEF E8B6A3
-8EF0 E98592
-8EF1 E9A696
-8EF2 E58492
-8EF3 E58F97
-8EF4 E591AA
-8EF5 E5AFBF
-8EF6 E68E88
-8EF7 E6A8B9
-8EF8 E7B6AC
-8EF9 E99C80
-8EFA E59B9A
-8EFB E58F8E
-8EFC E591A8
-8F40 E5AE97
-8F41 E5B0B1
-8F42 E5B79E
-8F43 E4BFAE
-8F44 E68481
-8F45 E68BBE
-8F46 E6B4B2
-8F47 E7A780
-8F48 E7A78B
-8F49 E7B582
-8F4A E7B98D
-8F4B E7BF92
-8F4C E887AD
-8F4D E8889F
-8F4E E89290
-8F4F E8A186
-8F50 E8A5B2
-8F51 E8AE90
-8F52 E8B9B4
-8F53 E8BCAF
-8F54 E980B1
-8F55 E9858B
-8F56 E985AC
-8F57 E99B86
-8F58 E9869C
-8F59 E4BB80
-8F5A E4BD8F
-8F5B E58585
-8F5C E58D81
-8F5D E5BE93
-8F5E E6888E
-8F5F E69F94
-8F60 E6B181
-8F61 E6B88B
-8F62 E78DA3
-8F63 E7B8A6
-8F64 E9878D
-8F65 E98A83
-8F66 E58F94
-8F67 E5A499
-8F68 E5AEBF
-8F69 E6B791
-8F6A E7A59D
-8F6B E7B8AE
-8F6C E7B29B
-8F6D E5A1BE
-8F6E E7869F
-8F6F E587BA
-8F70 E8A193
-8F71 E8BFB0
-8F72 E4BF8A
-8F73 E5B3BB
-8F74 E698A5
-8F75 E79EAC
-8F76 E7ABA3
-8F77 E8889C
-8F78 E9A7BF
-8F79 E58786
-8F7A E5BEAA
-8F7B E697AC
-8F7C E6A5AF
-8F7D E6AE89
-8F7E E6B7B3
-8F80 E6BA96
-8F81 E6BDA4
-8F82 E79BBE
-8F83 E7B494
-8F84 E5B7A1
-8F85 E981B5
-8F86 E98687
-8F87 E9A086
-8F88 E587A6
-8F89 E5889D
-8F8A E68980
-8F8B E69A91
-8F8C E69B99
-8F8D E6B89A
-8F8E E5BAB6
-8F8F E7B792
-8F90 E7BDB2
-8F91 E69BB8
-8F92 E896AF
-8F93 E897B7
-8F94 E8ABB8
-8F95 E58AA9
-8F96 E58F99
-8F97 E5A5B3
-8F98 E5BA8F
-8F99 E5BE90
-8F9A E68195
-8F9B E98BA4
-8F9C E999A4
-8F9D E582B7
-8F9E E5849F
-8F9F E58B9D
-8FA0 E58CA0
-8FA1 E58D87
-8FA2 E58FAC
-8FA3 E593A8
-8FA4 E59586
-8FA5 E594B1
-8FA6 E59897
-8FA7 E5A5A8
-8FA8 E5A6BE
-8FA9 E5A8BC
-8FAA E5AEB5
-8FAB E5B086
-8FAC E5B08F
-8FAD E5B091
-8FAE E5B09A
-8FAF E5BA84
-8FB0 E5BA8A
-8FB1 E5BBA0
-8FB2 E5BDB0
-8FB3 E689BF
-8FB4 E68A84
-8FB5 E68B9B
-8FB6 E68E8C
-8FB7 E68DB7
-8FB8 E69887
-8FB9 E6988C
-8FBA E698AD
-8FBB E699B6
-8FBC E69DBE
-8FBD E6A2A2
-8FBE E6A89F
-8FBF E6A8B5
-8FC0 E6B2BC
-8FC1 E6B688
-8FC2 E6B889
-8FC3 E6B998
-8FC4 E784BC
-8FC5 E784A6
-8FC6 E785A7
-8FC7 E79787
-8FC8 E79C81
-8FC9 E7A19D
-8FCA E7A481
-8FCB E7A5A5
-8FCC E7A7B0
-8FCD E7ABA0
-8FCE E7AC91
-8FCF E7B2A7
-8FD0 E7B4B9
-8FD1 E88296
-8FD2 E88F96
-8FD3 E8928B
-8FD4 E89589
-8FD5 E8A19D
-8FD6 E8A3B3
-8FD7 E8A89F
-8FD8 E8A8BC
-8FD9 E8A994
-8FDA E8A9B3
-8FDB E8B1A1
-8FDC E8B39E
-8FDD E986A4
-8FDE E989A6
-8FDF E98DBE
-8FE0 E99098
-8FE1 E99A9C
-8FE2 E99E98
-8FE3 E4B88A
-8FE4 E4B888
-8FE5 E4B89E
-8FE6 E4B997
-8FE7 E58697
-8FE8 E589B0
-8FE9 E59F8E
-8FEA E5A0B4
-8FEB E5A38C
-8FEC E5ACA2
-8FED E5B8B8
-8FEE E68385
-8FEF E693BE
-8FF0 E69DA1
-8FF1 E69D96
-8FF2 E6B584
-8FF3 E78AB6
-8FF4 E795B3
-8FF5 E7A9A3
-8FF6 E892B8
-8FF7 E8ADB2
-8FF8 E986B8
-8FF9 E98CA0
-8FFA E598B1
-8FFB E59FB4
-8FFC E9A3BE
-9040 E68BAD
-9041 E6A48D
-9042 E6AE96
-9043 E787AD
-9044 E7B994
-9045 E881B7
-9046 E889B2
-9047 E8A7A6
-9048 E9A39F
-9049 E89D95
-904A E8BEB1
-904B E5B0BB
-904C E4BCB8
-904D E4BFA1
-904E E4BEB5
-904F E59487
-9050 E5A8A0
-9051 E5AF9D
-9052 E5AFA9
-9053 E5BF83
-9054 E6858E
-9055 E68CAF
-9056 E696B0
-9057 E6998B
-9058 E6A3AE
-9059 E6A69B
-905A E6B5B8
-905B E6B7B1
-905C E794B3
-905D E796B9
-905E E79C9F
-905F E7A59E
-9060 E7A7A6
-9061 E7B4B3
-9062 E887A3
-9063 E88AAF
-9064 E896AA
-9065 E8A6AA
-9066 E8A8BA
-9067 E8BAAB
-9068 E8BE9B
-9069 E980B2
-906A E9879D
-906B E99C87
-906C E4BABA
-906D E4BB81
-906E E58883
-906F E5A1B5
-9070 E5A3AC
-9071 E5B08B
-9072 E7949A
-9073 E5B0BD
-9074 E8858E
-9075 E8A88A
-9076 E8BF85
-9077 E999A3
-9078 E99DAD
-9079 E7ACA5
-907A E8AB8F
-907B E9A088
-907C E985A2
-907D E59BB3
-907E E58EA8
-9080 E98097
-9081 E590B9
-9082 E59E82
-9083 E5B8A5
-9084 E68EA8
-9085 E6B0B4
-9086 E7828A
-9087 E79DA1
-9088 E7B28B
-9089 E7BFA0
-908A E8A1B0
-908B E98182
-908C E98594
-908D E98C90
-908E E98C98
-908F E99A8F
-9090 E7919E
-9091 E9AB84
-9092 E5B487
-9093 E5B5A9
-9094 E695B0
-9095 E69EA2
-9096 E8B6A8
-9097 E99B9B
-9098 E68DAE
-9099 E69D89
-909A E6A499
-909B E88F85
-909C E9A097
-909D E99B80
-909E E8A3BE
-909F E6BE84
-90A0 E691BA
-90A1 E5AFB8
-90A2 E4B896
-90A3 E780AC
-90A4 E7959D
-90A5 E698AF
-90A6 E58784
-90A7 E588B6
-90A8 E58BA2
-90A9 E5A793
-90AA E5BE81
-90AB E680A7
-90AC E68890
-90AD E694BF
-90AE E695B4
-90AF E6989F
-90B0 E699B4
-90B1 E6A3B2
-90B2 E6A096
-90B3 E6ADA3
-90B4 E6B885
-90B5 E789B2
-90B6 E7949F
-90B7 E79B9B
-90B8 E7B2BE
-90B9 E88196
-90BA E5A3B0
-90BB E8A3BD
-90BC E8A5BF
-90BD E8AAA0
-90BE E8AA93
-90BF E8AB8B
-90C0 E9809D
-90C1 E98692
-90C2 E99D92
-90C3 E99D99
-90C4 E69689
-90C5 E7A88E
-90C6 E88486
-90C7 E99ABB
-90C8 E5B8AD
-90C9 E6839C
-90CA E6889A
-90CB E696A5
-90CC E69894
-90CD E69E90
-90CE E79FB3
-90CF E7A98D
-90D0 E7B18D
-90D1 E7B8BE
-90D2 E8848A
-90D3 E8B2AC
-90D4 E8B5A4
-90D5 E8B7A1
-90D6 E8B99F
-90D7 E7A2A9
-90D8 E58887
-90D9 E68B99
-90DA E68EA5
-90DB E69182
-90DC E68A98
-90DD E8A8AD
-90DE E7AA83
-90DF E7AF80
-90E0 E8AAAC
-90E1 E99BAA
-90E2 E7B5B6
-90E3 E8888C
-90E4 E89D89
-90E5 E4BB99
-90E6 E58588
-90E7 E58D83
-90E8 E58DA0
-90E9 E5AEA3
-90EA E5B082
-90EB E5B096
-90EC E5B79D
-90ED E688A6
-90EE E68987
-90EF E692B0
-90F0 E6A093
-90F1 E6A0B4
-90F2 E6B389
-90F3 E6B585
-90F4 E6B497
-90F5 E69F93
-90F6 E6BD9C
-90F7 E7858E
-90F8 E785BD
-90F9 E6978B
-90FA E7A9BF
-90FB E7AEAD
-90FC E7B79A
-9140 E7B98A
-9141 E7BEA8
-9142 E885BA
-9143 E8889B
-9144 E888B9
-9145 E896A6
-9146 E8A9AE
-9147 E8B38E
-9148 E8B7B5
-9149 E981B8
-914A E981B7
-914B E98AAD
-914C E98A91
-914D E99683
-914E E9AEAE
-914F E5898D
-9150 E59684
-9151 E6BCB8
-9152 E784B6
-9153 E585A8
-9154 E7A685
-9155 E7B995
-9156 E886B3
-9157 E7B38E
-9158 E5998C
-9159 E5A191
-915A E5B2A8
-915B E68EAA
-915C E69BBE
-915D E69BBD
-915E E6A59A
-915F E78B99
-9160 E7968F
-9161 E7968E
-9162 E7A48E
-9163 E7A596
-9164 E7A79F
-9165 E7B297
-9166 E7B4A0
-9167 E7B584
-9168 E89887
-9169 E8A8B4
-916A E998BB
-916B E981A1
-916C E9BCA0
-916D E583A7
-916E E589B5
-916F E58F8C
-9170 E58FA2
-9171 E58089
-9172 E596AA
-9173 E5A3AE
-9174 E5A58F
-9175 E788BD
-9176 E5AE8B
-9177 E5B1A4
-9178 E58C9D
-9179 E683A3
-917A E683B3
-917B E68D9C
-917C E68E83
-917D E68CBF
-917E E68EBB
-9180 E6938D
-9181 E697A9
-9182 E69BB9
-9183 E5B7A3
-9184 E6A78D
-9185 E6A7BD
-9186 E6BC95
-9187 E787A5
-9188 E4BA89
-9189 E797A9
-918A E79BB8
-918B E7AA93
-918C E7B39F
-918D E7B78F
-918E E7B69C
-918F E881A1
-9190 E88D89
-9191 E88D98
-9192 E891AC
-9193 E892BC
-9194 E897BB
-9195 E8A385
-9196 E8B5B0
-9197 E98081
-9198 E981AD
-9199 E98E97
-919A E99C9C
-919B E9A892
-919C E5838F
-919D E5A297
-919E E6868E
-919F E88793
-91A0 E894B5
-91A1 E8B488
-91A2 E980A0
-91A3 E4BF83
-91A4 E581B4
-91A5 E58987
-91A6 E58DB3
-91A7 E681AF
-91A8 E68D89
-91A9 E69D9F
-91AA E6B8AC
-91AB E8B6B3
-91AC E9809F
-91AD E4BF97
-91AE E5B19E
-91AF E8B38A
-91B0 E6978F
-91B1 E7B69A
-91B2 E58D92
-91B3 E8A296
-91B4 E585B6
-91B5 E68F83
-91B6 E5AD98
-91B7 E5ADAB
-91B8 E5B08A
-91B9 E6908D
-91BA E69D91
-91BB E9819C
-91BC E4BB96
-91BD E5A49A
-91BE E5A4AA
-91BF E6B1B0
-91C0 E8A991
-91C1 E594BE
-91C2 E5A095
-91C3 E5A6A5
-91C4 E683B0
-91C5 E68993
-91C6 E69F81
-91C7 E888B5
-91C8 E6A595
-91C9 E99980
-91CA E9A784
-91CB E9A8A8
-91CC E4BD93
-91CD E5A086
-91CE E5AFBE
-91CF E88090
-91D0 E5B2B1
-91D1 E5B8AF
-91D2 E5BE85
-91D3 E680A0
-91D4 E6858B
-91D5 E688B4
-91D6 E69BBF
-91D7 E6B3B0
-91D8 E6BB9E
-91D9 E8838E
-91DA E885BF
-91DB E88B94
-91DC E8A28B
-91DD E8B2B8
-91DE E98080
-91DF E980AE
-91E0 E99A8A
-91E1 E9BB9B
-91E2 E9AF9B
-91E3 E4BBA3
-91E4 E58FB0
-91E5 E5A4A7
-91E6 E7ACAC
-91E7 E9868D
-91E8 E9A18C
-91E9 E9B7B9
-91EA E6BB9D
-91EB E780A7
-91EC E58D93
-91ED E59584
-91EE E5AE85
-91EF E68998
-91F0 E68A9E
-91F1 E68B93
-91F2 E6B2A2
-91F3 E6BFAF
-91F4 E790A2
-91F5 E8A897
-91F6 E990B8
-91F7 E6BF81
-91F8 E8ABBE
-91F9 E88CB8
-91FA E587A7
-91FB E89BB8
-91FC E58FAA
-9240 E58FA9
-9241 E4BD86
-9242 E98194
-9243 E8BEB0
-9244 E5A5AA
-9245 E884B1
-9246 E5B7BD
-9247 E7ABAA
-9248 E8BEBF
-9249 E6A39A
-924A E8B0B7
-924B E78BB8
-924C E9B188
-924D E6A8BD
-924E E8AAB0
-924F E4B8B9
-9250 E58D98
-9251 E59886
-9252 E59DA6
-9253 E68B85
-9254 E68EA2
-9255 E697A6
-9256 E6AD8E
-9257 E6B7A1
-9258 E6B99B
-9259 E782AD
-925A E79FAD
-925B E7ABAF
-925C E7AEAA
-925D E7B6BB
-925E E880BD
-925F E88386
-9260 E89B8B
-9261 E8AA95
-9262 E98D9B
-9263 E59BA3
-9264 E5A387
-9265 E5BCBE
-9266 E696AD
-9267 E69A96
-9268 E6AA80
-9269 E6AEB5
-926A E794B7
-926B E8AB87
-926C E580A4
-926D E79FA5
-926E E59CB0
-926F E5BC9B
-9270 E681A5
-9271 E699BA
-9272 E6B1A0
-9273 E797B4
-9274 E7A89A
-9275 E7BDAE
-9276 E887B4
-9277 E89C98
-9278 E98185
-9279 E9A6B3
-927A E7AF89
-927B E7959C
-927C E7ABB9
-927D E7AD91
-927E E89384
-9280 E98090
-9281 E7A7A9
-9282 E7AA92
-9283 E88CB6
-9284 E5ABA1
-9285 E79D80
-9286 E4B8AD
-9287 E4BBB2
-9288 E5AE99
-9289 E5BFA0
-928A E68ABD
-928B E698BC
-928C E69FB1
-928D E6B3A8
-928E E899AB
-928F E8A1B7
-9290 E8A8BB
-9291 E9858E
-9292 E98BB3
-9293 E9A790
-9294 E6A897
-9295 E780A6
-9296 E78CAA
-9297 E88BA7
-9298 E89197
-9299 E8B2AF
-929A E4B881
-929B E58586
-929C E5878B
-929D E5968B
-929E E5AFB5
-929F E5B896
-92A0 E5B8B3
-92A1 E5BA81
-92A2 E5BC94
-92A3 E5BCB5
-92A4 E5BDAB
-92A5 E5BEB4
-92A6 E687B2
-92A7 E68C91
-92A8 E69AA2
-92A9 E69C9D
-92AA E6BDAE
-92AB E78992
-92AC E794BA
-92AD E79CBA
-92AE E881B4
-92AF E884B9
-92B0 E885B8
-92B1 E89DB6
-92B2 E8AABF
-92B3 E8AB9C
-92B4 E8B685
-92B5 E8B7B3
-92B6 E98A9A
-92B7 E995B7
-92B8 E9A082
-92B9 E9B3A5
-92BA E58B85
-92BB E68D97
-92BC E79BB4
-92BD E69C95
-92BE E6B288
-92BF E78F8D
-92C0 E8B383
-92C1 E98EAE
-92C2 E999B3
-92C3 E6B4A5
-92C4 E5A29C
-92C5 E6A48E
-92C6 E6A78C
-92C7 E8BFBD
-92C8 E98E9A
-92C9 E7979B
-92CA E9809A
-92CB E5A19A
-92CC E6A082
-92CD E68EB4
-92CE E6A7BB
-92CF E4BD83
-92D0 E6BCAC
-92D1 E69F98
-92D2 E8BEBB
-92D3 E894A6
-92D4 E7B6B4
-92D5 E98D94
-92D6 E6A4BF
-92D7 E6BDB0
-92D8 E59DAA
-92D9 E5A3B7
-92DA E5ACAC
-92DB E7B4AC
-92DC E788AA
-92DD E5908A
-92DE E987A3
-92DF E9B6B4
-92E0 E4BAAD
-92E1 E4BD8E
-92E2 E5819C
-92E3 E581B5
-92E4 E58983
-92E5 E8B29E
-92E6 E59188
-92E7 E5A0A4
-92E8 E5AE9A
-92E9 E5B89D
-92EA E5BA95
-92EB E5BAAD
-92EC E5BBB7
-92ED E5BC9F
-92EE E6828C
-92EF E68AB5
-92F0 E68CBA
-92F1 E68F90
-92F2 E6A2AF
-92F3 E6B180
-92F4 E7A287
-92F5 E7A68E
-92F6 E7A88B
-92F7 E7B7A0
-92F8 E88987
-92F9 E8A882
-92FA E8ABA6
-92FB E8B984
-92FC E98093
-9340 E982B8
-9341 E984AD
-9342 E98798
-9343 E9BC8E
-9344 E6B3A5
-9345 E69198
-9346 E693A2
-9347 E695B5
-9348 E6BBB4
-9349 E79A84
-934A E7AC9B
-934B E981A9
-934C E98F91
-934D E6BABA
-934E E593B2
-934F E5BEB9
-9350 E692A4
-9351 E8BD8D
-9352 E8BFAD
-9353 E98984
-9354 E585B8
-9355 E5A1AB
-9356 E5A4A9
-9357 E5B195
-9358 E5BA97
-9359 E6B7BB
-935A E7BA8F
-935B E7949C
-935C E8B2BC
-935D E8BBA2
-935E E9A19B
-935F E782B9
-9360 E4BC9D
-9361 E6AEBF
-9362 E6BEB1
-9363 E794B0
-9364 E99BBB
-9365 E5858E
-9366 E59090
-9367 E5A0B5
-9368 E5A197
-9369 E5A6AC
-936A E5B1A0
-936B E5BE92
-936C E69697
-936D E69D9C
-936E E6B8A1
-936F E799BB
-9370 E88F9F
-9371 E8B3AD
-9372 E98094
-9373 E983BD
-9374 E98D8D
-9375 E7A0A5
-9376 E7A0BA
-9377 E58AAA
-9378 E5BAA6
-9379 E59C9F
-937A E5A5B4
-937B E68092
-937C E58092
-937D E5859A
-937E E586AC
-9380 E5878D
-9381 E58880
-9382 E59490
-9383 E5A194
-9384 E5A198
-9385 E5A597
-9386 E5AE95
-9387 E5B3B6
-9388 E5B68B
-9389 E682BC
-938A E68A95
-938B E690AD
-938C E69DB1
-938D E6A183
-938E E6A2BC
-938F E6A39F
-9390 E79B97
-9391 E6B798
-9392 E6B9AF
-9393 E6B69B
-9394 E781AF
-9395 E78788
-9396 E5BD93
-9397 E79798
-9398 E7A5B7
-9399 E7AD89
-939A E7AD94
-939B E7AD92
-939C E7B396
-939D E7B5B1
-939E E588B0
-939F E891A3
-93A0 E895A9
-93A1 E897A4
-93A2 E8A88E
-93A3 E8AC84
-93A4 E8B186
-93A5 E8B88F
-93A6 E98083
-93A7 E9808F
-93A8 E99099
-93A9 E999B6
-93AA E9A0AD
-93AB E9A8B0
-93AC E99798
-93AD E5838D
-93AE E58B95
-93AF E5908C
-93B0 E5A082
-93B1 E5B08E
-93B2 E686A7
-93B3 E6929E
-93B4 E6B49E
-93B5 E79EB3
-93B6 E7ABA5
-93B7 E883B4
-93B8 E89084
-93B9 E98193
-93BA E98A85
-93BB E5B3A0
-93BC E9B487
-93BD E58CBF
-93BE E5BE97
-93BF E5BEB3
-93C0 E6B69C
-93C1 E789B9
-93C2 E79DA3
-93C3 E7A6BF
-93C4 E7AFA4
-93C5 E6AF92
-93C6 E78BAC
-93C7 E8AAAD
-93C8 E6A083
-93C9 E6A9A1
-93CA E587B8
-93CB E7AA81
-93CC E6A4B4
-93CD E5B18A
-93CE E9B3B6
-93CF E88BAB
-93D0 E5AF85
-93D1 E98589
-93D2 E7809E
-93D3 E599B8
-93D4 E5B1AF
-93D5 E68387
-93D6 E695A6
-93D7 E6B28C
-93D8 E8B19A
-93D9 E98181
-93DA E9A093
-93DB E59191
-93DC E69B87
-93DD E9888D
-93DE E5A588
-93DF E982A3
-93E0 E58685
-93E1 E4B98D
-93E2 E587AA
-93E3 E89699
-93E4 E8AC8E
-93E5 E78198
-93E6 E68DBA
-93E7 E98D8B
-93E8 E6A5A2
-93E9 E9A6B4
-93EA E7B884
-93EB E795B7
-93EC E58D97
-93ED E6A5A0
-93EE E8BB9F
-93EF E99BA3
-93F0 E6B19D
-93F1 E4BA8C
-93F2 E5B0BC
-93F3 E5BC90
-93F4 E8BFA9
-93F5 E58C82
-93F6 E8B391
-93F7 E88289
-93F8 E899B9
-93F9 E5BBBF
-93FA E697A5
-93FB E4B9B3
-93FC E585A5
-9440 E5A682
-9441 E5B0BF
-9442 E99FAE
-9443 E4BBBB
-9444 E5A68A
-9445 E5BF8D
-9446 E8AA8D
-9447 E6BFA1
-9448 E7A6B0
-9449 E7A5A2
-944A E5AFA7
-944B E891B1
-944C E78CAB
-944D E786B1
-944E E5B9B4
-944F E5BFB5
-9450 E68DBB
-9451 E6929A
-9452 E78783
-9453 E7B298
-9454 E4B983
-9455 E5BBBC
-9456 E4B98B
-9457 E59F9C
-9458 E59AA2
-9459 E682A9
-945A E6BF83
-945B E7B48D
-945C E883BD
-945D E884B3
-945E E886BF
-945F E8BEB2
-9460 E8A697
-9461 E89AA4
-9462 E5B7B4
-9463 E68A8A
-9464 E692AD
-9465 E8A687
-9466 E69DB7
-9467 E6B3A2
-9468 E6B4BE
-9469 E790B6
-946A E7A0B4
-946B E5A986
-946C E7BDB5
-946D E88AAD
-946E E9A6AC
-946F E4BFB3
-9470 E5BB83
-9471 E68B9D
-9472 E68E92
-9473 E69597
-9474 E69DAF
-9475 E79B83
-9476 E7898C
-9477 E8838C
-9478 E882BA
-9479 E8BCA9
-947A E9858D
-947B E5808D
-947C E59FB9
-947D E5AA92
-947E E6A285
-9480 E6A5B3
-9481 E785A4
-9482 E78BBD
-9483 E8B2B7
-9484 E5A3B2
-9485 E8B3A0
-9486 E999AA
-9487 E98099
-9488 E89DBF
-9489 E7A7A4
-948A E79FA7
-948B E890A9
-948C E4BCAF
-948D E589A5
-948E E58D9A
-948F E68B8D
-9490 E69F8F
-9491 E6B38A
-9492 E799BD
-9493 E7AE94
-9494 E7B295
-9495 E888B6
-9496 E89684
-9497 E8BFAB
-9498 E69B9D
-9499 E6BCA0
-949A E78886
-949B E7B89B
-949C E88EAB
-949D E9A781
-949E E9BAA6
-949F E587BD
-94A0 E7AEB1
-94A1 E7A1B2
-94A2 E7AEB8
-94A3 E88287
-94A4 E7AD88
-94A5 E6ABA8
-94A6 E5B9A1
-94A7 E8828C
-94A8 E79591
-94A9 E795A0
-94AA E585AB
-94AB E989A2
-94AC E6BA8C
-94AD E799BA
-94AE E98697
-94AF E9ABAA
-94B0 E4BC90
-94B1 E7BDB0
-94B2 E68A9C
-94B3 E7AD8F
-94B4 E996A5
-94B5 E9B3A9
-94B6 E599BA
-94B7 E5A199
-94B8 E89BA4
-94B9 E99ABC
-94BA E4BCB4
-94BB E588A4
-94BC E58D8A
-94BD E58F8D
-94BE E58F9B
-94BF E5B886
-94C0 E690AC
-94C1 E69691
-94C2 E69DBF
-94C3 E6B0BE
-94C4 E6B18E
-94C5 E78988
-94C6 E78AAF
-94C7 E78FAD
-94C8 E79594
-94C9 E7B981
-94CA E888AC
-94CB E897A9
-94CC E8B2A9
-94CD E7AF84
-94CE E98786
-94CF E785A9
-94D0 E9A092
-94D1 E9A3AF
-94D2 E68CBD
-94D3 E699A9
-94D4 E795AA
-94D5 E79BA4
-94D6 E7A390
-94D7 E89583
-94D8 E89BAE
-94D9 E58CAA
-94DA E58D91
-94DB E590A6
-94DC E5A683
-94DD E5BA87
-94DE E5BDBC
-94DF E682B2
-94E0 E68989
-94E1 E689B9
-94E2 E68AAB
-94E3 E69690
-94E4 E6AF94
-94E5 E6B38C
-94E6 E796B2
-94E7 E79AAE
-94E8 E7A291
-94E9 E7A798
-94EA E7B78B
-94EB E7BDB7
-94EC E882A5
-94ED E8A2AB
-94EE E8AAB9
-94EF E8B2BB
-94F0 E981BF
-94F1 E99D9E
-94F2 E9A39B
-94F3 E6A88B
-94F4 E7B0B8
-94F5 E58299
-94F6 E5B0BE
-94F7 E5BEAE
-94F8 E69E87
-94F9 E6AF98
-94FA E790B5
-94FB E79C89
-94FC E7BE8E
-9540 E9BCBB
-9541 E69F8A
-9542 E7A897
-9543 E58CB9
-9544 E7968B
-9545 E9ABAD
-9546 E5BDA6
-9547 E8869D
-9548 E88FB1
-9549 E88298
-954A E5BCBC
-954B E5BF85
-954C E795A2
-954D E7AD86
-954E E980BC
-954F E6A1A7
-9550 E5A7AB
-9551 E5AA9B
-9552 E7B490
-9553 E799BE
-9554 E8ACAC
-9555 E4BFB5
-9556 E5BDAA
-9557 E6A899
-9558 E6B0B7
-9559 E6BC82
-955A E793A2
-955B E7A5A8
-955C E8A1A8
-955D E8A995
-955E E8B1B9
-955F E5BB9F
-9560 E68F8F
-9561 E79785
-9562 E7A792
-9563 E88B97
-9564 E98CA8
-9565 E98BB2
-9566 E8929C
-9567 E89BAD
-9568 E9B0AD
-9569 E59381
-956A E5BDAC
-956B E6968C
-956C E6B59C
-956D E78095
-956E E8B2A7
-956F E8B393
-9570 E9A0BB
-9571 E6958F
-9572 E793B6
-9573 E4B88D
-9574 E4BB98
-9575 E59FA0
-9576 E5A4AB
-9577 E5A9A6
-9578 E5AF8C
-9579 E586A8
-957A E5B883
-957B E5BA9C
-957C E68096
-957D E689B6
-957E E695B7
-9580 E696A7
-9581 E699AE
-9582 E6B5AE
-9583 E788B6
-9584 E7ACA6
-9585 E88590
-9586 E8869A
-9587 E88A99
-9588 E8AD9C
-9589 E8B2A0
-958A E8B3A6
-958B E8B5B4
-958C E9989C
-958D E99984
-958E E4BEAE
-958F E692AB
-9590 E6ADA6
-9591 E8889E
-9592 E891A1
-9593 E895AA
-9594 E983A8
-9595 E5B081
-9596 E6A593
-9597 E9A2A8
-9598 E891BA
-9599 E89597
-959A E4BC8F
-959B E589AF
-959C E5BEA9
-959D E5B985
-959E E69C8D
-959F E7A68F
-95A0 E885B9
-95A1 E8A487
-95A2 E8A686
-95A3 E6B7B5
-95A4 E5BC97
-95A5 E68995
-95A6 E6B2B8
-95A7 E4BB8F
-95A8 E789A9
-95A9 E9AE92
-95AA E58886
-95AB E590BB
-95AC E599B4
-95AD E5A2B3
-95AE E686A4
-95AF E689AE
-95B0 E7849A
-95B1 E5A5AE
-95B2 E7B289
-95B3 E7B39E
-95B4 E7B49B
-95B5 E99BB0
-95B6 E69687
-95B7 E8819E
-95B8 E4B899
-95B9 E4BDB5
-95BA E585B5
-95BB E5A180
-95BC E5B9A3
-95BD E5B9B3
-95BE E5BC8A
-95BF E69F84
-95C0 E4B8A6
-95C1 E894BD
-95C2 E99689
-95C3 E9999B
-95C4 E7B1B3
-95C5 E9A081
-95C6 E583BB
-95C7 E5A381
-95C8 E79996
-95C9 E7A2A7
-95CA E588A5
-95CB E79EA5
-95CC E89491
-95CD E7AE86
-95CE E5818F
-95CF E5A489
-95D0 E78987
-95D1 E7AF87
-95D2 E7B7A8
-95D3 E8BEBA
-95D4 E8BF94
-95D5 E9818D
-95D6 E4BEBF
-95D7 E58B89
-95D8 E5A8A9
-95D9 E5BC81
-95DA E99EAD
-95DB E4BF9D
-95DC E88897
-95DD E98BAA
-95DE E59C83
-95DF E68D95
-95E0 E6ADA9
-95E1 E794AB
-95E2 E8A39C
-95E3 E8BC94
-95E4 E7A982
-95E5 E58B9F
-95E6 E5A293
-95E7 E68595
-95E8 E6888A
-95E9 E69AAE
-95EA E6AF8D
-95EB E7B0BF
-95EC E88FA9
-95ED E580A3
-95EE E4BFB8
-95EF E58C85
-95F0 E59186
-95F1 E5A0B1
-95F2 E5A589
-95F3 E5AE9D
-95F4 E5B3B0
-95F5 E5B3AF
-95F6 E5B4A9
-95F7 E5BA96
-95F8 E68AB1
-95F9 E68DA7
-95FA E694BE
-95FB E696B9
-95FC E69C8B
-9640 E6B395
-9641 E6B3A1
-9642 E783B9
-9643 E7A0B2
-9644 E7B8AB
-9645 E8839E
-9646 E88AB3
-9647 E8908C
-9648 E893AC
-9649 E89C82
-964A E8A492
-964B E8A8AA
-964C E8B18A
-964D E982A6
-964E E98B92
-964F E9A3BD
-9650 E9B3B3
-9651 E9B5AC
-9652 E4B98F
-9653 E4BAA1
-9654 E5828D
-9655 E58996
-9656 E59D8A
-9657 E5A6A8
-9658 E5B8BD
-9659 E5BF98
-965A E5BF99
-965B E688BF
-965C E69AB4
-965D E69C9B
-965E E69F90
-965F E6A392
-9660 E58692
-9661 E7B4A1
-9662 E882AA
-9663 E886A8
-9664 E8AC80
-9665 E8B28C
-9666 E8B2BF
-9667 E989BE
-9668 E998B2
-9669 E590A0
-966A E9A0AC
-966B E58C97
-966C E58395
-966D E58D9C
-966E E5A2A8
-966F E692B2
-9670 E69CB4
-9671 E789A7
-9672 E79DA6
-9673 E7A986
-9674 E987A6
-9675 E58B83
-9676 E6B2A1
-9677 E6AE86
-9678 E5A080
-9679 E5B98C
-967A E5A594
-967B E69CAC
-967C E7BFBB
-967D E587A1
-967E E79B86
-9680 E691A9
-9681 E7A3A8
-9682 E9AD94
-9683 E9BABB
-9684 E59F8B
-9685 E5A6B9
-9686 E698A7
-9687 E69E9A
-9688 E6AF8E
-9689 E593A9
-968A E6A799
-968B E5B995
-968C E8869C
-968D E69E95
-968E E9AEAA
-968F E69FBE
-9690 E9B192
-9691 E6A19D
-9692 E4BAA6
-9693 E4BFA3
-9694 E58F88
-9695 E68AB9
-9696 E69CAB
-9697 E6B2AB
-9698 E8BF84
-9699 E4BEAD
-969A E7B9AD
-969B E9BABF
-969C E4B887
-969D E685A2
-969E E6BA80
-969F E6BCAB
-96A0 E89493
-96A1 E591B3
-96A2 E69CAA
-96A3 E9AD85
-96A4 E5B7B3
-96A5 E7AE95
-96A6 E5B2AC
-96A7 E5AF86
-96A8 E89C9C
-96A9 E6B98A
-96AA E89391
-96AB E7A894
-96AC E88488
-96AD E5A699
-96AE E7B28D
-96AF E6B091
-96B0 E79CA0
-96B1 E58B99
-96B2 E5A4A2
-96B3 E784A1
-96B4 E7899F
-96B5 E79F9B
-96B6 E99CA7
-96B7 E9B5A1
-96B8 E6A48B
-96B9 E5A9BF
-96BA E5A898
-96BB E586A5
-96BC E5908D
-96BD E591BD
-96BE E6988E
-96BF E79B9F
-96C0 E8BFB7
-96C1 E98A98
-96C2 E9B3B4
-96C3 E5A7AA
-96C4 E7899D
-96C5 E6BB85
-96C6 E5858D
-96C7 E6A389
-96C8 E7B6BF
-96C9 E7B7AC
-96CA E99DA2
-96CB E9BABA
-96CC E691B8
-96CD E6A8A1
-96CE E88C82
-96CF E5A684
-96D0 E5AD9F
-96D1 E6AF9B
-96D2 E78C9B
-96D3 E79BB2
-96D4 E7B6B2
-96D5 E88097
-96D6 E89299
-96D7 E584B2
-96D8 E69CA8
-96D9 E9BB99
-96DA E79BAE
-96DB E69DA2
-96DC E58BBF
-96DD E9A485
-96DE E5B0A4
-96DF E688BB
-96E0 E7B1BE
-96E1 E8B2B0
-96E2 E5958F
-96E3 E682B6
-96E4 E7B48B
-96E5 E99680
-96E6 E58C81
-96E7 E4B99F
-96E8 E586B6
-96E9 E5A49C
-96EA E788BA
-96EB E880B6
-96EC E9878E
-96ED E5BCA5
-96EE E79FA2
-96EF E58E84
-96F0 E5BDB9
-96F1 E7B484
-96F2 E896AC
-96F3 E8A8B3
-96F4 E8BA8D
-96F5 E99D96
-96F6 E69FB3
-96F7 E896AE
-96F8 E99193
-96F9 E68489
-96FA E68488
-96FB E6B2B9
-96FC E79992
-9740 E8ABAD
-9741 E8BCB8
-9742 E594AF
-9743 E4BD91
-9744 E584AA
-9745 E58B87
-9746 E58F8B
-9747 E5AEA5
-9748 E5B9BD
-9749 E682A0
-974A E68682
-974B E68F96
-974C E69C89
-974D E69F9A
-974E E6B9A7
-974F E6B68C
-9750 E78CB6
-9751 E78CB7
-9752 E794B1
-9753 E7A590
-9754 E8A395
-9755 E8AA98
-9756 E9818A
-9757 E98291
-9758 E983B5
-9759 E99B84
-975A E89E8D
-975B E5A495
-975C E4BA88
-975D E4BD99
-975E E4B88E
-975F E8AA89
-9760 E8BCBF
-9761 E9A090
-9762 E582AD
-9763 E5B9BC
-9764 E5A696
-9765 E5AEB9
-9766 E5BAB8
-9767 E68F9A
-9768 E68FBA
-9769 E69381
-976A E69B9C
-976B E6A58A
-976C E6A798
-976D E6B48B
-976E E6BAB6
-976F E78694
-9770 E794A8
-9771 E7AAAF
-9772 E7BE8A
-9773 E88080
-9774 E89189
-9775 E89389
-9776 E8A681
-9777 E8ACA1
-9778 E8B88A
-9779 E981A5
-977A E999BD
-977B E9A48A
-977C E685BE
-977D E68A91
-977E E6ACB2
-9780 E6B283
-9781 E6B5B4
-9782 E7BF8C
-9783 E7BFBC
-9784 E6B780
-9785 E7BE85
-9786 E89EBA
-9787 E8A3B8
-9788 E69DA5
-9789 E88EB1
-978A E9A0BC
-978B E99BB7
-978C E6B49B
-978D E7B5A1
-978E E890BD
-978F E985AA
-9790 E4B9B1
-9791 E58DB5
-9792 E5B590
-9793 E6AC84
-9794 E6BFAB
-9795 E8978D
-9796 E898AD
-9797 E8A6A7
-9798 E588A9
-9799 E5908F
-979A E5B1A5
-979B E69D8E
-979C E6A2A8
-979D E79086
-979E E79283
-979F E797A2
-97A0 E8A38F
-97A1 E8A3A1
-97A2 E9878C
-97A3 E99BA2
-97A4 E999B8
-97A5 E5BE8B
-97A6 E78E87
-97A7 E7AB8B
-97A8 E8918E
-97A9 E68EA0
-97AA E795A5
-97AB E58A89
-97AC E6B581
-97AD E6BA9C
-97AE E79089
-97AF E79599
-97B0 E7A1AB
-97B1 E7B292
-97B2 E99A86
-97B3 E7AB9C
-97B4 E9BE8D
-97B5 E4BEB6
-97B6 E685AE
-97B7 E69785
-97B8 E8999C
-97B9 E4BA86
-97BA E4BAAE
-97BB E5839A
-97BC E4B8A1
-97BD E5878C
-97BE E5AFAE
-97BF E69699
-97C0 E6A281
-97C1 E6B6BC
-97C2 E78C9F
-97C3 E79982
-97C4 E79EAD
-97C5 E7A89C
-97C6 E7B3A7
-97C7 E889AF
-97C8 E8AB92
-97C9 E981BC
-97CA E9878F
-97CB E999B5
-97CC E9A098
-97CD E58A9B
-97CE E7B791
-97CF E580AB
-97D0 E58E98
-97D1 E69E97
-97D2 E6B78B
-97D3 E78790
-97D4 E790B3
-97D5 E887A8
-97D6 E8BCAA
-97D7 E99AA3
-97D8 E9B197
-97D9 E9BA9F
-97DA E791A0
-97DB E5A181
-97DC E6B699
-97DD E7B4AF
-97DE E9A19E
-97DF E4BBA4
-97E0 E4BCB6
-97E1 E4BE8B
-97E2 E586B7
-97E3 E58AB1
-97E4 E5B6BA
-97E5 E6809C
-97E6 E78EB2
-97E7 E7A4BC
-97E8 E88B93
-97E9 E988B4
-97EA E99AB7
-97EB E99BB6
-97EC E99C8A
-97ED E9BA97
-97EE E9BDA2
-97EF E69AA6
-97F0 E6ADB4
-97F1 E58897
-97F2 E58AA3
-97F3 E78388
-97F4 E8A382
-97F5 E5BB89
-97F6 E6818B
-97F7 E68690
-97F8 E6BCA3
-97F9 E78589
-97FA E7B0BE
-97FB E7B7B4
-97FC E881AF
-9840 E893AE
-9841 E980A3
-9842 E98CAC
-9843 E59182
-9844 E9ADAF
-9845 E6AB93
-9846 E78289
-9847 E8B382
-9848 E8B7AF
-9849 E99CB2
-984A E58AB4
-984B E5A981
-984C E5BB8A
-984D E5BC84
-984E E69C97
-984F E6A5BC
-9850 E6A694
-9851 E6B5AA
-9852 E6BC8F
-9853 E789A2
-9854 E78BBC
-9855 E7AFAD
-9856 E88081
-9857 E881BE
-9858 E89D8B
-9859 E9838E
-985A E585AD
-985B E9BA93
-985C E7A684
-985D E8828B
-985E E98CB2
-985F E8AB96
-9860 E580AD
-9861 E5928C
-9862 E8A9B1
-9863 E6ADAA
-9864 E8B384
-9865 E88487
-9866 E68391
-9867 E69EA0
-9868 E9B7B2
-9869 E4BA99
-986A E4BA98
-986B E9B090
-986C E8A9AB
-986D E89781
-986E E895A8
-986F E6A480
-9870 E6B9BE
-9871 E7A297
-9872 E88595
-989F E5BC8C
-98A0 E4B890
-98A1 E4B895
-98A2 E4B8AA
-98A3 E4B8B1
-98A4 E4B8B6
-98A5 E4B8BC
-98A6 E4B8BF
-98A7 E4B982
-98A8 E4B996
-98A9 E4B998
-98AA E4BA82
-98AB E4BA85
-98AC E8B1AB
-98AD E4BA8A
-98AE E88892
-98AF E5BC8D
-98B0 E4BA8E
-98B1 E4BA9E
-98B2 E4BA9F
-98B3 E4BAA0
-98B4 E4BAA2
-98B5 E4BAB0
-98B6 E4BAB3
-98B7 E4BAB6
-98B8 E4BB8E
-98B9 E4BB8D
-98BA E4BB84
-98BB E4BB86
-98BC E4BB82
-98BD E4BB97
-98BE E4BB9E
-98BF E4BBAD
-98C0 E4BB9F
-98C1 E4BBB7
-98C2 E4BC89
-98C3 E4BD9A
-98C4 E4BCB0
-98C5 E4BD9B
-98C6 E4BD9D
-98C7 E4BD97
-98C8 E4BD87
-98C9 E4BDB6
-98CA E4BE88
-98CB E4BE8F
-98CC E4BE98
-98CD E4BDBB
-98CE E4BDA9
-98CF E4BDB0
-98D0 E4BE91
-98D1 E4BDAF
-98D2 E4BE86
-98D3 E4BE96
-98D4 E58498
-98D5 E4BF94
-98D6 E4BF9F
-98D7 E4BF8E
-98D8 E4BF98
-98D9 E4BF9B
-98DA E4BF91
-98DB E4BF9A
-98DC E4BF90
-98DD E4BFA4
-98DE E4BFA5
-98DF E5809A
-98E0 E580A8
-98E1 E58094
-98E2 E580AA
-98E3 E580A5
-98E4 E58085
-98E5 E4BC9C
-98E6 E4BFB6
-98E7 E580A1
-98E8 E580A9
-98E9 E580AC
-98EA E4BFBE
-98EB E4BFAF
-98EC E58091
-98ED E58086
-98EE E58183
-98EF E58187
-98F0 E69C83
-98F1 E58195
-98F2 E58190
-98F3 E58188
-98F4 E5819A
-98F5 E58196
-98F6 E581AC
-98F7 E581B8
-98F8 E58280
-98F9 E5829A
-98FA E58285
-98FB E582B4
-98FC E582B2
-9940 E58389
-9941 E5838A
-9942 E582B3
-9943 E58382
-9944 E58396
-9945 E5839E
-9946 E583A5
-9947 E583AD
-9948 E583A3
-9949 E583AE
-994A E583B9
-994B E583B5
-994C E58489
-994D E58481
-994E E58482
-994F E58496
-9950 E58495
-9951 E58494
-9952 E5849A
-9953 E584A1
-9954 E584BA
-9955 E584B7
-9956 E584BC
-9957 E584BB
-9958 E584BF
-9959 E58580
-995A E58592
-995B E5858C
-995C E58594
-995D E585A2
-995E E7ABB8
-995F E585A9
-9960 E585AA
-9961 E585AE
-9962 E58680
-9963 E58682
-9964 E59B98
-9965 E5868C
-9966 E58689
-9967 E5868F
-9968 E58691
-9969 E58693
-996A E58695
-996B E58696
-996C E586A4
-996D E586A6
-996E E586A2
-996F E586A9
-9970 E586AA
-9971 E586AB
-9972 E586B3
-9973 E586B1
-9974 E586B2
-9975 E586B0
-9976 E586B5
-9977 E586BD
-9978 E58785
-9979 E58789
-997A E5879B
-997B E587A0
-997C E89995
-997D E587A9
-997E E587AD
-9980 E587B0
-9981 E587B5
-9982 E587BE
-9983 E58884
-9984 E5888B
-9985 E58894
-9986 E5888E
-9987 E588A7
-9988 E588AA
-9989 E588AE
-998A E588B3
-998B E588B9
-998C E5898F
-998D E58984
-998E E5898B
-998F E5898C
-9990 E5899E
-9991 E58994
-9992 E589AA
-9993 E589B4
-9994 E589A9
-9995 E589B3
-9996 E589BF
-9997 E589BD
-9998 E58A8D
-9999 E58A94
-999A E58A92
-999B E589B1
-999C E58A88
-999D E58A91
-999E E8BEA8
-999F E8BEA7
-99A0 E58AAC
-99A1 E58AAD
-99A2 E58ABC
-99A3 E58AB5
-99A4 E58B81
-99A5 E58B8D
-99A6 E58B97
-99A7 E58B9E
-99A8 E58BA3
-99A9 E58BA6
-99AA E9A3AD
-99AB E58BA0
-99AC E58BB3
-99AD E58BB5
-99AE E58BB8
-99AF E58BB9
-99B0 E58C86
-99B1 E58C88
-99B2 E794B8
-99B3 E58C8D
-99B4 E58C90
-99B5 E58C8F
-99B6 E58C95
-99B7 E58C9A
-99B8 E58CA3
-99B9 E58CAF
-99BA E58CB1
-99BB E58CB3
-99BC E58CB8
-99BD E58D80
-99BE E58D86
-99BF E58D85
-99C0 E4B897
-99C1 E58D89
-99C2 E58D8D
-99C3 E58796
-99C4 E58D9E
-99C5 E58DA9
-99C6 E58DAE
-99C7 E5A498
-99C8 E58DBB
-99C9 E58DB7
-99CA E58E82
-99CB E58E96
-99CC E58EA0
-99CD E58EA6
-99CE E58EA5
-99CF E58EAE
-99D0 E58EB0
-99D1 E58EB6
-99D2 E58F83
-99D3 E7B092
-99D4 E99B99
-99D5 E58F9F
-99D6 E69BBC
-99D7 E787AE
-99D8 E58FAE
-99D9 E58FA8
-99DA E58FAD
-99DB E58FBA
-99DC E59081
-99DD E590BD
-99DE E59180
-99DF E590AC
-99E0 E590AD
-99E1 E590BC
-99E2 E590AE
-99E3 E590B6
-99E4 E590A9
-99E5 E5909D
-99E6 E5918E
-99E7 E5928F
-99E8 E591B5
-99E9 E5928E
-99EA E5919F
-99EB E591B1
-99EC E591B7
-99ED E591B0
-99EE E59292
-99EF E591BB
-99F0 E59280
-99F1 E591B6
-99F2 E59284
-99F3 E59290
-99F4 E59286
-99F5 E59387
-99F6 E592A2
-99F7 E592B8
-99F8 E592A5
-99F9 E592AC
-99FA E59384
-99FB E59388
-99FC E592A8
-9A40 E592AB
-9A41 E59382
-9A42 E592A4
-9A43 E592BE
-9A44 E592BC
-9A45 E59398
-9A46 E593A5
-9A47 E593A6
-9A48 E5948F
-9A49 E59494
-9A4A E593BD
-9A4B E593AE
-9A4C E593AD
-9A4D E593BA
-9A4E E593A2
-9A4F E594B9
-9A50 E59580
-9A51 E595A3
-9A52 E5958C
-9A53 E594AE
-9A54 E5959C
-9A55 E59585
-9A56 E59596
-9A57 E59597
-9A58 E594B8
-9A59 E594B3
-9A5A E5959D
-9A5B E59699
-9A5C E59680
-9A5D E592AF
-9A5E E5968A
-9A5F E5969F
-9A60 E595BB
-9A61 E595BE
-9A62 E59698
-9A63 E5969E
-9A64 E596AE
-9A65 E595BC
-9A66 E59683
-9A67 E596A9
-9A68 E59687
-9A69 E596A8
-9A6A E5979A
-9A6B E59785
-9A6C E5979F
-9A6D E59784
-9A6E E5979C
-9A6F E597A4
-9A70 E59794
-9A71 E59894
-9A72 E597B7
-9A73 E59896
-9A74 E597BE
-9A75 E597BD
-9A76 E5989B
-9A77 E597B9
-9A78 E5998E
-9A79 E59990
-9A7A E7879F
-9A7B E598B4
-9A7C E598B6
-9A7D E598B2
-9A7E E598B8
-9A80 E599AB
-9A81 E599A4
-9A82 E598AF
-9A83 E599AC
-9A84 E599AA
-9A85 E59A86
-9A86 E59A80
-9A87 E59A8A
-9A88 E59AA0
-9A89 E59A94
-9A8A E59A8F
-9A8B E59AA5
-9A8C E59AAE
-9A8D E59AB6
-9A8E E59AB4
-9A8F E59B82
-9A90 E59ABC
-9A91 E59B81
-9A92 E59B83
-9A93 E59B80
-9A94 E59B88
-9A95 E59B8E
-9A96 E59B91
-9A97 E59B93
-9A98 E59B97
-9A99 E59BAE
-9A9A E59BB9
-9A9B E59C80
-9A9C E59BBF
-9A9D E59C84
-9A9E E59C89
-9A9F E59C88
-9AA0 E59C8B
-9AA1 E59C8D
-9AA2 E59C93
-9AA3 E59C98
-9AA4 E59C96
-9AA5 E59787
-9AA6 E59C9C
-9AA7 E59CA6
-9AA8 E59CB7
-9AA9 E59CB8
-9AAA E59D8E
-9AAB E59CBB
-9AAC E59D80
-9AAD E59D8F
-9AAE E59DA9
-9AAF E59F80
-9AB0 E59E88
-9AB1 E59DA1
-9AB2 E59DBF
-9AB3 E59E89
-9AB4 E59E93
-9AB5 E59EA0
-9AB6 E59EB3
-9AB7 E59EA4
-9AB8 E59EAA
-9AB9 E59EB0
-9ABA E59F83
-9ABB E59F86
-9ABC E59F94
-9ABD E59F92
-9ABE E59F93
-9ABF E5A08A
-9AC0 E59F96
-9AC1 E59FA3
-9AC2 E5A08B
-9AC3 E5A099
-9AC4 E5A09D
-9AC5 E5A1B2
-9AC6 E5A0A1
-9AC7 E5A1A2
-9AC8 E5A18B
-9AC9 E5A1B0
-9ACA E6AF80
-9ACB E5A192
-9ACC E5A0BD
-9ACD E5A1B9
-9ACE E5A285
-9ACF E5A2B9
-9AD0 E5A29F
-9AD1 E5A2AB
-9AD2 E5A2BA
-9AD3 E5A39E
-9AD4 E5A2BB
-9AD5 E5A2B8
-9AD6 E5A2AE
-9AD7 E5A385
-9AD8 E5A393
-9AD9 E5A391
-9ADA E5A397
-9ADB E5A399
-9ADC E5A398
-9ADD E5A3A5
-9ADE E5A39C
-9ADF E5A3A4
-9AE0 E5A39F
-9AE1 E5A3AF
-9AE2 E5A3BA
-9AE3 E5A3B9
-9AE4 E5A3BB
-9AE5 E5A3BC
-9AE6 E5A3BD
-9AE7 E5A482
-9AE8 E5A48A
-9AE9 E5A490
-9AEA E5A49B
-9AEB E6A2A6
-9AEC E5A4A5
-9AED E5A4AC
-9AEE E5A4AD
-9AEF E5A4B2
-9AF0 E5A4B8
-9AF1 E5A4BE
-9AF2 E7AB92
-9AF3 E5A595
-9AF4 E5A590
-9AF5 E5A58E
-9AF6 E5A59A
-9AF7 E5A598
-9AF8 E5A5A2
-9AF9 E5A5A0
-9AFA E5A5A7
-9AFB E5A5AC
-9AFC E5A5A9
-9B40 E5A5B8
-9B41 E5A681
-9B42 E5A69D
-9B43 E4BD9E
-9B44 E4BEAB
-9B45 E5A6A3
-9B46 E5A6B2
-9B47 E5A786
-9B48 E5A7A8
-9B49 E5A79C
-9B4A E5A68D
-9B4B E5A799
-9B4C E5A79A
-9B4D E5A8A5
-9B4E E5A89F
-9B4F E5A891
-9B50 E5A89C
-9B51 E5A889
-9B52 E5A89A
-9B53 E5A980
-9B54 E5A9AC
-9B55 E5A989
-9B56 E5A8B5
-9B57 E5A8B6
-9B58 E5A9A2
-9B59 E5A9AA
-9B5A E5AA9A
-9B5B E5AABC
-9B5C E5AABE
-9B5D E5AB8B
-9B5E E5AB82
-9B5F E5AABD
-9B60 E5ABA3
-9B61 E5AB97
-9B62 E5ABA6
-9B63 E5ABA9
-9B64 E5AB96
-9B65 E5ABBA
-9B66 E5ABBB
-9B67 E5AC8C
-9B68 E5AC8B
-9B69 E5AC96
-9B6A E5ACB2
-9B6B E5AB90
-9B6C E5ACAA
-9B6D E5ACB6
-9B6E E5ACBE
-9B6F E5AD83
-9B70 E5AD85
-9B71 E5AD80
-9B72 E5AD91
-9B73 E5AD95
-9B74 E5AD9A
-9B75 E5AD9B
-9B76 E5ADA5
-9B77 E5ADA9
-9B78 E5ADB0
-9B79 E5ADB3
-9B7A E5ADB5
-9B7B E5ADB8
-9B7C E69688
-9B7D E5ADBA
-9B7E E5AE80
-9B80 E5AE83
-9B81 E5AEA6
-9B82 E5AEB8
-9B83 E5AF83
-9B84 E5AF87
-9B85 E5AF89
-9B86 E5AF94
-9B87 E5AF90
-9B88 E5AFA4
-9B89 E5AFA6
-9B8A E5AFA2
-9B8B E5AF9E
-9B8C E5AFA5
-9B8D E5AFAB
-9B8E E5AFB0
-9B8F E5AFB6
-9B90 E5AFB3
-9B91 E5B085
-9B92 E5B087
-9B93 E5B088
-9B94 E5B08D
-9B95 E5B093
-9B96 E5B0A0
-9B97 E5B0A2
-9B98 E5B0A8
-9B99 E5B0B8
-9B9A E5B0B9
-9B9B E5B181
-9B9C E5B186
-9B9D E5B18E
-9B9E E5B193
-9B9F E5B190
-9BA0 E5B18F
-9BA1 E5ADB1
-9BA2 E5B1AC
-9BA3 E5B1AE
-9BA4 E4B9A2
-9BA5 E5B1B6
-9BA6 E5B1B9
-9BA7 E5B28C
-9BA8 E5B291
-9BA9 E5B294
-9BAA E5A69B
-9BAB E5B2AB
-9BAC E5B2BB
-9BAD E5B2B6
-9BAE E5B2BC
-9BAF E5B2B7
-9BB0 E5B385
-9BB1 E5B2BE
-9BB2 E5B387
-9BB3 E5B399
-9BB4 E5B3A9
-9BB5 E5B3BD
-9BB6 E5B3BA
-9BB7 E5B3AD
-9BB8 E5B68C
-9BB9 E5B3AA
-9BBA E5B48B
-9BBB E5B495
-9BBC E5B497
-9BBD E5B59C
-9BBE E5B49F
-9BBF E5B49B
-9BC0 E5B491
-9BC1 E5B494
-9BC2 E5B4A2
-9BC3 E5B49A
-9BC4 E5B499
-9BC5 E5B498
-9BC6 E5B58C
-9BC7 E5B592
-9BC8 E5B58E
-9BC9 E5B58B
-9BCA E5B5AC
-9BCB E5B5B3
-9BCC E5B5B6
-9BCD E5B687
-9BCE E5B684
-9BCF E5B682
-9BD0 E5B6A2
-9BD1 E5B69D
-9BD2 E5B6AC
-9BD3 E5B6AE
-9BD4 E5B6BD
-9BD5 E5B690
-9BD6 E5B6B7
-9BD7 E5B6BC
-9BD8 E5B789
-9BD9 E5B78D
-9BDA E5B793
-9BDB E5B792
-9BDC E5B796
-9BDD E5B79B
-9BDE E5B7AB
-9BDF E5B7B2
-9BE0 E5B7B5
-9BE1 E5B88B
-9BE2 E5B89A
-9BE3 E5B899
-9BE4 E5B891
-9BE5 E5B89B
-9BE6 E5B8B6
-9BE7 E5B8B7
-9BE8 E5B984
-9BE9 E5B983
-9BEA E5B980
-9BEB E5B98E
-9BEC E5B997
-9BED E5B994
-9BEE E5B99F
-9BEF E5B9A2
-9BF0 E5B9A4
-9BF1 E5B987
-9BF2 E5B9B5
-9BF3 E5B9B6
-9BF4 E5B9BA
-9BF5 E9BABC
-9BF6 E5B9BF
-9BF7 E5BAA0
-9BF8 E5BB81
-9BF9 E5BB82
-9BFA E5BB88
-9BFB E5BB90
-9BFC E5BB8F
-9C40 E5BB96
-9C41 E5BBA3
-9C42 E5BB9D
-9C43 E5BB9A
-9C44 E5BB9B
-9C45 E5BBA2
-9C46 E5BBA1
-9C47 E5BBA8
-9C48 E5BBA9
-9C49 E5BBAC
-9C4A E5BBB1
-9C4B E5BBB3
-9C4C E5BBB0
-9C4D E5BBB4
-9C4E E5BBB8
-9C4F E5BBBE
-9C50 E5BC83
-9C51 E5BC89
-9C52 E5BD9D
-9C53 E5BD9C
-9C54 E5BC8B
-9C55 E5BC91
-9C56 E5BC96
-9C57 E5BCA9
-9C58 E5BCAD
-9C59 E5BCB8
-9C5A E5BD81
-9C5B E5BD88
-9C5C E5BD8C
-9C5D E5BD8E
-9C5E E5BCAF
-9C5F E5BD91
-9C60 E5BD96
-9C61 E5BD97
-9C62 E5BD99
-9C63 E5BDA1
-9C64 E5BDAD
-9C65 E5BDB3
-9C66 E5BDB7
-9C67 E5BE83
-9C68 E5BE82
-9C69 E5BDBF
-9C6A E5BE8A
-9C6B E5BE88
-9C6C E5BE91
-9C6D E5BE87
-9C6E E5BE9E
-9C6F E5BE99
-9C70 E5BE98
-9C71 E5BEA0
-9C72 E5BEA8
-9C73 E5BEAD
-9C74 E5BEBC
-9C75 E5BF96
-9C76 E5BFBB
-9C77 E5BFA4
-9C78 E5BFB8
-9C79 E5BFB1
-9C7A E5BF9D
-9C7B E682B3
-9C7C E5BFBF
-9C7D E680A1
-9C7E E681A0
-9C80 E68099
-9C81 E68090
-9C82 E680A9
-9C83 E6808E
-9C84 E680B1
-9C85 E6809B
-9C86 E68095
-9C87 E680AB
-9C88 E680A6
-9C89 E6808F
-9C8A E680BA
-9C8B E6819A
-9C8C E68181
-9C8D E681AA
-9C8E E681B7
-9C8F E6819F
-9C90 E6818A
-9C91 E68186
-9C92 E6818D
-9C93 E681A3
-9C94 E68183
-9C95 E681A4
-9C96 E68182
-9C97 E681AC
-9C98 E681AB
-9C99 E68199
-9C9A E68281
-9C9B E6828D
-9C9C E683A7
-9C9D E68283
-9C9E E6829A
-9C9F E68284
-9CA0 E6829B
-9CA1 E68296
-9CA2 E68297
-9CA3 E68292
-9CA4 E682A7
-9CA5 E6828B
-9CA6 E683A1
-9CA7 E682B8
-9CA8 E683A0
-9CA9 E68393
-9CAA E682B4
-9CAB E5BFB0
-9CAC E682BD
-9CAD E68386
-9CAE E682B5
-9CAF E68398
-9CB0 E6858D
-9CB1 E68495
-9CB2 E68486
-9CB3 E683B6
-9CB4 E683B7
-9CB5 E68480
-9CB6 E683B4
-9CB7 E683BA
-9CB8 E68483
-9CB9 E684A1
-9CBA E683BB
-9CBB E683B1
-9CBC E6848D
-9CBD E6848E
-9CBE E68587
-9CBF E684BE
-9CC0 E684A8
-9CC1 E684A7
-9CC2 E6858A
-9CC3 E684BF
-9CC4 E684BC
-9CC5 E684AC
-9CC6 E684B4
-9CC7 E684BD
-9CC8 E68582
-9CC9 E68584
-9CCA E685B3
-9CCB E685B7
-9CCC E68598
-9CCD E68599
-9CCE E6859A
-9CCF E685AB
-9CD0 E685B4
-9CD1 E685AF
-9CD2 E685A5
-9CD3 E685B1
-9CD4 E6859F
-9CD5 E6859D
-9CD6 E68593
-9CD7 E685B5
-9CD8 E68699
-9CD9 E68696
-9CDA E68687
-9CDB E686AC
-9CDC E68694
-9CDD E6869A
-9CDE E6868A
-9CDF E68691
-9CE0 E686AB
-9CE1 E686AE
-9CE2 E6878C
-9CE3 E6878A
-9CE4 E68789
-9CE5 E687B7
-9CE6 E68788
-9CE7 E68783
-9CE8 E68786
-9CE9 E686BA
-9CEA E6878B
-9CEB E7BDB9
-9CEC E6878D
-9CED E687A6
-9CEE E687A3
-9CEF E687B6
-9CF0 E687BA
-9CF1 E687B4
-9CF2 E687BF
-9CF3 E687BD
-9CF4 E687BC
-9CF5 E687BE
-9CF6 E68880
-9CF7 E68888
-9CF8 E68889
-9CF9 E6888D
-9CFA E6888C
-9CFB E68894
-9CFC E6889B
-9D40 E6889E
-9D41 E688A1
-9D42 E688AA
-9D43 E688AE
-9D44 E688B0
-9D45 E688B2
-9D46 E688B3
-9D47 E68981
-9D48 E6898E
-9D49 E6899E
-9D4A E689A3
-9D4B E6899B
-9D4C E689A0
-9D4D E689A8
-9D4E E689BC
-9D4F E68A82
-9D50 E68A89
-9D51 E689BE
-9D52 E68A92
-9D53 E68A93
-9D54 E68A96
-9D55 E68B94
-9D56 E68A83
-9D57 E68A94
-9D58 E68B97
-9D59 E68B91
-9D5A E68ABB
-9D5B E68B8F
-9D5C E68BBF
-9D5D E68B86
-9D5E E69394
-9D5F E68B88
-9D60 E68B9C
-9D61 E68B8C
-9D62 E68B8A
-9D63 E68B82
-9D64 E68B87
-9D65 E68A9B
-9D66 E68B89
-9D67 E68C8C
-9D68 E68BAE
-9D69 E68BB1
-9D6A E68CA7
-9D6B E68C82
-9D6C E68C88
-9D6D E68BAF
-9D6E E68BB5
-9D6F E68D90
-9D70 E68CBE
-9D71 E68D8D
-9D72 E6909C
-9D73 E68D8F
-9D74 E68E96
-9D75 E68E8E
-9D76 E68E80
-9D77 E68EAB
-9D78 E68DB6
-9D79 E68EA3
-9D7A E68E8F
-9D7B E68E89
-9D7C E68E9F
-9D7D E68EB5
-9D7E E68DAB
-9D80 E68DA9
-9D81 E68EBE
-9D82 E68FA9
-9D83 E68F80
-9D84 E68F86
-9D85 E68FA3
-9D86 E68F89
-9D87 E68F92
-9D88 E68FB6
-9D89 E68F84
-9D8A E69096
-9D8B E690B4
-9D8C E69086
-9D8D E69093
-9D8E E690A6
-9D8F E690B6
-9D90 E6949D
-9D91 E69097
-9D92 E690A8
-9D93 E6908F
-9D94 E691A7
-9D95 E691AF
-9D96 E691B6
-9D97 E6918E
-9D98 E694AA
-9D99 E69295
-9D9A E69293
-9D9B E692A5
-9D9C E692A9
-9D9D E69288
-9D9E E692BC
-9D9F E6939A
-9DA0 E69392
-9DA1 E69385
-9DA2 E69387
-9DA3 E692BB
-9DA4 E69398
-9DA5 E69382
-9DA6 E693B1
-9DA7 E693A7
-9DA8 E88889
-9DA9 E693A0
-9DAA E693A1
-9DAB E68AAC
-9DAC E693A3
-9DAD E693AF
-9DAE E694AC
-9DAF E693B6
-9DB0 E693B4
-9DB1 E693B2
-9DB2 E693BA
-9DB3 E69480
-9DB4 E693BD
-9DB5 E69498
-9DB6 E6949C
-9DB7 E69485
-9DB8 E694A4
-9DB9 E694A3
-9DBA E694AB
-9DBB E694B4
-9DBC E694B5
-9DBD E694B7
-9DBE E694B6
-9DBF E694B8
-9DC0 E7958B
-9DC1 E69588
-9DC2 E69596
-9DC3 E69595
-9DC4 E6958D
-9DC5 E69598
-9DC6 E6959E
-9DC7 E6959D
-9DC8 E695B2
-9DC9 E695B8
-9DCA E69682
-9DCB E69683
-9DCC E8AE8A
-9DCD E6969B
-9DCE E6969F
-9DCF E696AB
-9DD0 E696B7
-9DD1 E69783
-9DD2 E69786
-9DD3 E69781
-9DD4 E69784
-9DD5 E6978C
-9DD6 E69792
-9DD7 E6979B
-9DD8 E69799
-9DD9 E697A0
-9DDA E697A1
-9DDB E697B1
-9DDC E69DB2
-9DDD E6988A
-9DDE E69883
-9DDF E697BB
-9DE0 E69DB3
-9DE1 E698B5
-9DE2 E698B6
-9DE3 E698B4
-9DE4 E6989C
-9DE5 E6998F
-9DE6 E69984
-9DE7 E69989
-9DE8 E69981
-9DE9 E6999E
-9DEA E6999D
-9DEB E699A4
-9DEC E699A7
-9DED E699A8
-9DEE E6999F
-9DEF E699A2
-9DF0 E699B0
-9DF1 E69A83
-9DF2 E69A88
-9DF3 E69A8E
-9DF4 E69A89
-9DF5 E69A84
-9DF6 E69A98
-9DF7 E69A9D
-9DF8 E69B81
-9DF9 E69AB9
-9DFA E69B89
-9DFB E69ABE
-9DFC E69ABC
-9E40 E69B84
-9E41 E69AB8
-9E42 E69B96
-9E43 E69B9A
-9E44 E69BA0
-9E45 E698BF
-9E46 E69BA6
-9E47 E69BA9
-9E48 E69BB0
-9E49 E69BB5
-9E4A E69BB7
-9E4B E69C8F
-9E4C E69C96
-9E4D E69C9E
-9E4E E69CA6
-9E4F E69CA7
-9E50 E99CB8
-9E51 E69CAE
-9E52 E69CBF
-9E53 E69CB6
-9E54 E69D81
-9E55 E69CB8
-9E56 E69CB7
-9E57 E69D86
-9E58 E69D9E
-9E59 E69DA0
-9E5A E69D99
-9E5B E69DA3
-9E5C E69DA4
-9E5D E69E89
-9E5E E69DB0
-9E5F E69EA9
-9E60 E69DBC
-9E61 E69DAA
-9E62 E69E8C
-9E63 E69E8B
-9E64 E69EA6
-9E65 E69EA1
-9E66 E69E85
-9E67 E69EB7
-9E68 E69FAF
-9E69 E69EB4
-9E6A E69FAC
-9E6B E69EB3
-9E6C E69FA9
-9E6D E69EB8
-9E6E E69FA4
-9E6F E69F9E
-9E70 E69F9D
-9E71 E69FA2
-9E72 E69FAE
-9E73 E69EB9
-9E74 E69F8E
-9E75 E69F86
-9E76 E69FA7
-9E77 E6AA9C
-9E78 E6A09E
-9E79 E6A186
-9E7A E6A0A9
-9E7B E6A180
-9E7C E6A18D
-9E7D E6A0B2
-9E7E E6A18E
-9E80 E6A2B3
-9E81 E6A0AB
-9E82 E6A199
-9E83 E6A1A3
-9E84 E6A1B7
-9E85 E6A1BF
-9E86 E6A29F
-9E87 E6A28F
-9E88 E6A2AD
-9E89 E6A294
-9E8A E6A29D
-9E8B E6A29B
-9E8C E6A283
-9E8D E6AAAE
-9E8E E6A2B9
-9E8F E6A1B4
-9E90 E6A2B5
-9E91 E6A2A0
-9E92 E6A2BA
-9E93 E6A48F
-9E94 E6A28D
-9E95 E6A1BE
-9E96 E6A481
-9E97 E6A38A
-9E98 E6A488
-9E99 E6A398
-9E9A E6A4A2
-9E9B E6A4A6
-9E9C E6A3A1
-9E9D E6A48C
-9E9E E6A38D
-9E9F E6A394
-9EA0 E6A3A7
-9EA1 E6A395
-9EA2 E6A4B6
-9EA3 E6A492
-9EA4 E6A484
-9EA5 E6A397
-9EA6 E6A3A3
-9EA7 E6A4A5
-9EA8 E6A3B9
-9EA9 E6A3A0
-9EAA E6A3AF
-9EAB E6A4A8
-9EAC E6A4AA
-9EAD E6A49A
-9EAE E6A4A3
-9EAF E6A4A1
-9EB0 E6A386
-9EB1 E6A5B9
-9EB2 E6A5B7
-9EB3 E6A59C
-9EB4 E6A5B8
-9EB5 E6A5AB
-9EB6 E6A594
-9EB7 E6A5BE
-9EB8 E6A5AE
-9EB9 E6A4B9
-9EBA E6A5B4
-9EBB E6A4BD
-9EBC E6A599
-9EBD E6A4B0
-9EBE E6A5A1
-9EBF E6A59E
-9EC0 E6A59D
-9EC1 E6A681
-9EC2 E6A5AA
-9EC3 E6A6B2
-9EC4 E6A6AE
-9EC5 E6A790
-9EC6 E6A6BF
-9EC7 E6A781
-9EC8 E6A793
-9EC9 E6A6BE
-9ECA E6A78E
-9ECB E5AFA8
-9ECC E6A78A
-9ECD E6A79D
-9ECE E6A6BB
-9ECF E6A783
-9ED0 E6A6A7
-9ED1 E6A8AE
-9ED2 E6A691
-9ED3 E6A6A0
-9ED4 E6A69C
-9ED5 E6A695
-9ED6 E6A6B4
-9ED7 E6A79E
-9ED8 E6A7A8
-9ED9 E6A882
-9EDA E6A89B
-9EDB E6A7BF
-9EDC E6AC8A
-9EDD E6A7B9
-9EDE E6A7B2
-9EDF E6A7A7
-9EE0 E6A885
-9EE1 E6A6B1
-9EE2 E6A89E
-9EE3 E6A7AD
-9EE4 E6A894
-9EE5 E6A7AB
-9EE6 E6A88A
-9EE7 E6A892
-9EE8 E6AB81
-9EE9 E6A8A3
-9EEA E6A893
-9EEB E6A984
-9EEC E6A88C
-9EED E6A9B2
-9EEE E6A8B6
-9EEF E6A9B8
-9EF0 E6A987
-9EF1 E6A9A2
-9EF2 E6A999
-9EF3 E6A9A6
-9EF4 E6A988
-9EF5 E6A8B8
-9EF6 E6A8A2
-9EF7 E6AA90
-9EF8 E6AA8D
-9EF9 E6AAA0
-9EFA E6AA84
-9EFB E6AAA2
-9EFC E6AAA3
-9F40 E6AA97
-9F41 E89897
-9F42 E6AABB
-9F43 E6AB83
-9F44 E6AB82
-9F45 E6AAB8
-9F46 E6AAB3
-9F47 E6AAAC
-9F48 E6AB9E
-9F49 E6AB91
-9F4A E6AB9F
-9F4B E6AAAA
-9F4C E6AB9A
-9F4D E6ABAA
-9F4E E6ABBB
-9F4F E6AC85
-9F50 E89896
-9F51 E6ABBA
-9F52 E6AC92
-9F53 E6AC96
-9F54 E9ACB1
-9F55 E6AC9F
-9F56 E6ACB8
-9F57 E6ACB7
-9F58 E79B9C
-9F59 E6ACB9
-9F5A E9A3AE
-9F5B E6AD87
-9F5C E6AD83
-9F5D E6AD89
-9F5E E6AD90
-9F5F E6AD99
-9F60 E6AD94
-9F61 E6AD9B
-9F62 E6AD9F
-9F63 E6ADA1
-9F64 E6ADB8
-9F65 E6ADB9
-9F66 E6ADBF
-9F67 E6AE80
-9F68 E6AE84
-9F69 E6AE83
-9F6A E6AE8D
-9F6B E6AE98
-9F6C E6AE95
-9F6D E6AE9E
-9F6E E6AEA4
-9F6F E6AEAA
-9F70 E6AEAB
-9F71 E6AEAF
-9F72 E6AEB2
-9F73 E6AEB1
-9F74 E6AEB3
-9F75 E6AEB7
-9F76 E6AEBC
-9F77 E6AF86
-9F78 E6AF8B
-9F79 E6AF93
-9F7A E6AF9F
-9F7B E6AFAC
-9F7C E6AFAB
-9F7D E6AFB3
-9F7E E6AFAF
-9F80 E9BABE
-9F81 E6B088
-9F82 E6B093
-9F83 E6B094
-9F84 E6B09B
-9F85 E6B0A4
-9F86 E6B0A3
-9F87 E6B19E
-9F88 E6B195
-9F89 E6B1A2
-9F8A E6B1AA
-9F8B E6B282
-9F8C E6B28D
-9F8D E6B29A
-9F8E E6B281
-9F8F E6B29B
-9F90 E6B1BE
-9F91 E6B1A8
-9F92 E6B1B3
-9F93 E6B292
-9F94 E6B290
-9F95 E6B384
-9F96 E6B3B1
-9F97 E6B393
-9F98 E6B2BD
-9F99 E6B397
-9F9A E6B385
-9F9B E6B39D
-9F9C E6B2AE
-9F9D E6B2B1
-9F9E E6B2BE
-9F9F E6B2BA
-9FA0 E6B39B
-9FA1 E6B3AF
-9FA2 E6B399
-9FA3 E6B3AA
-9FA4 E6B49F
-9FA5 E8A18D
-9FA6 E6B4B6
-9FA7 E6B4AB
-9FA8 E6B4BD
-9FA9 E6B4B8
-9FAA E6B499
-9FAB E6B4B5
-9FAC E6B4B3
-9FAD E6B492
-9FAE E6B48C
-9FAF E6B5A3
-9FB0 E6B693
-9FB1 E6B5A4
-9FB2 E6B59A
-9FB3 E6B5B9
-9FB4 E6B599
-9FB5 E6B68E
-9FB6 E6B695
-9FB7 E6BFA4
-9FB8 E6B685
-9FB9 E6B7B9
-9FBA E6B895
-9FBB E6B88A
-9FBC E6B6B5
-9FBD E6B787
-9FBE E6B7A6
-9FBF E6B6B8
-9FC0 E6B786
-9FC1 E6B7AC
-9FC2 E6B79E
-9FC3 E6B78C
-9FC4 E6B7A8
-9FC5 E6B792
-9FC6 E6B785
-9FC7 E6B7BA
-9FC8 E6B799
-9FC9 E6B7A4
-9FCA E6B795
-9FCB E6B7AA
-9FCC E6B7AE
-9FCD E6B8AD
-9FCE E6B9AE
-9FCF E6B8AE
-9FD0 E6B899
-9FD1 E6B9B2
-9FD2 E6B99F
-9FD3 E6B8BE
-9FD4 E6B8A3
-9FD5 E6B9AB
-9FD6 E6B8AB
-9FD7 E6B9B6
-9FD8 E6B98D
-9FD9 E6B89F
-9FDA E6B983
-9FDB E6B8BA
-9FDC E6B98E
-9FDD E6B8A4
-9FDE E6BBBF
-9FDF E6B89D
-9FE0 E6B8B8
-9FE1 E6BA82
-9FE2 E6BAAA
-9FE3 E6BA98
-9FE4 E6BB89
-9FE5 E6BAB7
-9FE6 E6BB93
-9FE7 E6BABD
-9FE8 E6BAAF
-9FE9 E6BB84
-9FEA E6BAB2
-9FEB E6BB94
-9FEC E6BB95
-9FED E6BA8F
-9FEE E6BAA5
-9FEF E6BB82
-9FF0 E6BA9F
-9FF1 E6BD81
-9FF2 E6BC91
-9FF3 E7818C
-9FF4 E6BBAC
-9FF5 E6BBB8
-9FF6 E6BBBE
-9FF7 E6BCBF
-9FF8 E6BBB2
-9FF9 E6BCB1
-9FFA E6BBAF
-9FFB E6BCB2
-9FFC E6BB8C
-A1 EFBDA1
-A2 EFBDA2
-A3 EFBDA3
-A4 EFBDA4
-A5 EFBDA5
-A6 EFBDA6
-A7 EFBDA7
-A8 EFBDA8
-A9 EFBDA9
-AA EFBDAA
-AB EFBDAB
-AC EFBDAC
-AD EFBDAD
-AE EFBDAE
-AF EFBDAF
-B0 EFBDB0
-B1 EFBDB1
-B2 EFBDB2
-B3 EFBDB3
-B4 EFBDB4
-B5 EFBDB5
-B6 EFBDB6
-B7 EFBDB7
-B8 EFBDB8
-B9 EFBDB9
-BA EFBDBA
-BB EFBDBB
-BC EFBDBC
-BD EFBDBD
-BE EFBDBE
-BF EFBDBF
-C0 EFBE80
-C1 EFBE81
-C2 EFBE82
-C3 EFBE83
-C4 EFBE84
-C5 EFBE85
-C6 EFBE86
-C7 EFBE87
-C8 EFBE88
-C9 EFBE89
-CA EFBE8A
-CB EFBE8B
-CC EFBE8C
-CD EFBE8D
-CE EFBE8E
-CF EFBE8F
-D0 EFBE90
-D1 EFBE91
-D2 EFBE92
-D3 EFBE93
-D4 EFBE94
-D5 EFBE95
-D6 EFBE96
-D7 EFBE97
-D8 EFBE98
-D9 EFBE99
-DA EFBE9A
-DB EFBE9B
-DC EFBE9C
-DD EFBE9D
-DE EFBE9E
-DF EFBE9F
-E040 E6BCBE
-E041 E6BC93
-E042 E6BBB7
-E043 E6BE86
-E044 E6BDBA
-E045 E6BDB8
-E046 E6BE81
-E047 E6BE80
-E048 E6BDAF
-E049 E6BD9B
-E04A E6BFB3
-E04B E6BDAD
-E04C E6BE82
-E04D E6BDBC
-E04E E6BD98
-E04F E6BE8E
-E050 E6BE91
-E051 E6BF82
-E052 E6BDA6
-E053 E6BEB3
-E054 E6BEA3
-E055 E6BEA1
-E056 E6BEA4
-E057 E6BEB9
-E058 E6BF86
-E059 E6BEAA
-E05A E6BF9F
-E05B E6BF95
-E05C E6BFAC
-E05D E6BF94
-E05E E6BF98
-E05F E6BFB1
-E060 E6BFAE
-E061 E6BF9B
-E062 E78089
-E063 E7808B
-E064 E6BFBA
-E065 E78091
-E066 E78081
-E067 E7808F
-E068 E6BFBE
-E069 E7809B
-E06A E7809A
-E06B E6BDB4
-E06C E7809D
-E06D E78098
-E06E E7809F
-E06F E780B0
-E070 E780BE
-E071 E780B2
-E072 E78191
-E073 E781A3
-E074 E78299
-E075 E78292
-E076 E782AF
-E077 E783B1
-E078 E782AC
-E079 E782B8
-E07A E782B3
-E07B E782AE
-E07C E7839F
-E07D E7838B
-E07E E7839D
-E080 E78399
-E081 E78489
-E082 E783BD
-E083 E7849C
-E084 E78499
-E085 E785A5
-E086 E78595
-E087 E78688
-E088 E785A6
-E089 E785A2
-E08A E7858C
-E08B E78596
-E08C E785AC
-E08D E7868F
-E08E E787BB
-E08F E78684
-E090 E78695
-E091 E786A8
-E092 E786AC
-E093 E78797
-E094 E786B9
-E095 E786BE
-E096 E78792
-E097 E78789
-E098 E78794
-E099 E7878E
-E09A E787A0
-E09B E787AC
-E09C E787A7
-E09D E787B5
-E09E E787BC
-E09F E787B9
-E0A0 E787BF
-E0A1 E7888D
-E0A2 E78890
-E0A3 E7889B
-E0A4 E788A8
-E0A5 E788AD
-E0A6 E788AC
-E0A7 E788B0
-E0A8 E788B2
-E0A9 E788BB
-E0AA E788BC
-E0AB E788BF
-E0AC E78980
-E0AD E78986
-E0AE E7898B
-E0AF E78998
-E0B0 E789B4
-E0B1 E789BE
-E0B2 E78A82
-E0B3 E78A81
-E0B4 E78A87
-E0B5 E78A92
-E0B6 E78A96
-E0B7 E78AA2
-E0B8 E78AA7
-E0B9 E78AB9
-E0BA E78AB2
-E0BB E78B83
-E0BC E78B86
-E0BD E78B84
-E0BE E78B8E
-E0BF E78B92
-E0C0 E78BA2
-E0C1 E78BA0
-E0C2 E78BA1
-E0C3 E78BB9
-E0C4 E78BB7
-E0C5 E5808F
-E0C6 E78C97
-E0C7 E78C8A
-E0C8 E78C9C
-E0C9 E78C96
-E0CA E78C9D
-E0CB E78CB4
-E0CC E78CAF
-E0CD E78CA9
-E0CE E78CA5
-E0CF E78CBE
-E0D0 E78D8E
-E0D1 E78D8F
-E0D2 E9BB98
-E0D3 E78D97
-E0D4 E78DAA
-E0D5 E78DA8
-E0D6 E78DB0
-E0D7 E78DB8
-E0D8 E78DB5
-E0D9 E78DBB
-E0DA E78DBA
-E0DB E78F88
-E0DC E78EB3
-E0DD E78F8E
-E0DE E78EBB
-E0DF E78F80
-E0E0 E78FA5
-E0E1 E78FAE
-E0E2 E78F9E
-E0E3 E792A2
-E0E4 E79085
-E0E5 E791AF
-E0E6 E790A5
-E0E7 E78FB8
-E0E8 E790B2
-E0E9 E790BA
-E0EA E79195
-E0EB E790BF
-E0EC E7919F
-E0ED E79199
-E0EE E79181
-E0EF E7919C
-E0F0 E791A9
-E0F1 E791B0
-E0F2 E791A3
-E0F3 E791AA
-E0F4 E791B6
-E0F5 E791BE
-E0F6 E7928B
-E0F7 E7929E
-E0F8 E792A7
-E0F9 E7938A
-E0FA E7938F
-E0FB E79394
-E0FC E78FB1
-E140 E793A0
-E141 E793A3
-E142 E793A7
-E143 E793A9
-E144 E793AE
-E145 E793B2
-E146 E793B0
-E147 E793B1
-E148 E793B8
-E149 E793B7
-E14A E79484
-E14B E79483
-E14C E79485
-E14D E7948C
-E14E E7948E
-E14F E7948D
-E150 E79495
-E151 E79493
-E152 E7949E
-E153 E794A6
-E154 E794AC
-E155 E794BC
-E156 E79584
-E157 E7958D
-E158 E7958A
-E159 E79589
-E15A E7959B
-E15B E79586
-E15C E7959A
-E15D E795A9
-E15E E795A4
-E15F E795A7
-E160 E795AB
-E161 E795AD
-E162 E795B8
-E163 E795B6
-E164 E79686
-E165 E79687
-E166 E795B4
-E167 E7968A
-E168 E79689
-E169 E79682
-E16A E79694
-E16B E7969A
-E16C E7969D
-E16D E796A5
-E16E E796A3
-E16F E79782
-E170 E796B3
-E171 E79783
-E172 E796B5
-E173 E796BD
-E174 E796B8
-E175 E796BC
-E176 E796B1
-E177 E7978D
-E178 E7978A
-E179 E79792
-E17A E79799
-E17B E797A3
-E17C E7979E
-E17D E797BE
-E17E E797BF
-E180 E797BC
-E181 E79881
-E182 E797B0
-E183 E797BA
-E184 E797B2
-E185 E797B3
-E186 E7988B
-E187 E7988D
-E188 E79889
-E189 E7989F
-E18A E798A7
-E18B E798A0
-E18C E798A1
-E18D E798A2
-E18E E798A4
-E18F E798B4
-E190 E798B0
-E191 E798BB
-E192 E79987
-E193 E79988
-E194 E79986
-E195 E7999C
-E196 E79998
-E197 E799A1
-E198 E799A2
-E199 E799A8
-E19A E799A9
-E19B E799AA
-E19C E799A7
-E19D E799AC
-E19E E799B0
-E19F E799B2
-E1A0 E799B6
-E1A1 E799B8
-E1A2 E799BC
-E1A3 E79A80
-E1A4 E79A83
-E1A5 E79A88
-E1A6 E79A8B
-E1A7 E79A8E
-E1A8 E79A96
-E1A9 E79A93
-E1AA E79A99
-E1AB E79A9A
-E1AC E79AB0
-E1AD E79AB4
-E1AE E79AB8
-E1AF E79AB9
-E1B0 E79ABA
-E1B1 E79B82
-E1B2 E79B8D
-E1B3 E79B96
-E1B4 E79B92
-E1B5 E79B9E
-E1B6 E79BA1
-E1B7 E79BA5
-E1B8 E79BA7
-E1B9 E79BAA
-E1BA E898AF
-E1BB E79BBB
-E1BC E79C88
-E1BD E79C87
-E1BE E79C84
-E1BF E79CA9
-E1C0 E79CA4
-E1C1 E79C9E
-E1C2 E79CA5
-E1C3 E79CA6
-E1C4 E79C9B
-E1C5 E79CB7
-E1C6 E79CB8
-E1C7 E79D87
-E1C8 E79D9A
-E1C9 E79DA8
-E1CA E79DAB
-E1CB E79D9B
-E1CC E79DA5
-E1CD E79DBF
-E1CE E79DBE
-E1CF E79DB9
-E1D0 E79E8E
-E1D1 E79E8B
-E1D2 E79E91
-E1D3 E79EA0
-E1D4 E79E9E
-E1D5 E79EB0
-E1D6 E79EB6
-E1D7 E79EB9
-E1D8 E79EBF
-E1D9 E79EBC
-E1DA E79EBD
-E1DB E79EBB
-E1DC E79F87
-E1DD E79F8D
-E1DE E79F97
-E1DF E79F9A
-E1E0 E79F9C
-E1E1 E79FA3
-E1E2 E79FAE
-E1E3 E79FBC
-E1E4 E7A08C
-E1E5 E7A092
-E1E6 E7A4A6
-E1E7 E7A0A0
-E1E8 E7A4AA
-E1E9 E7A185
-E1EA E7A28E
-E1EB E7A1B4
-E1EC E7A286
-E1ED E7A1BC
-E1EE E7A29A
-E1EF E7A28C
-E1F0 E7A2A3
-E1F1 E7A2B5
-E1F2 E7A2AA
-E1F3 E7A2AF
-E1F4 E7A391
-E1F5 E7A386
-E1F6 E7A38B
-E1F7 E7A394
-E1F8 E7A2BE
-E1F9 E7A2BC
-E1FA E7A385
-E1FB E7A38A
-E1FC E7A3AC
-E240 E7A3A7
-E241 E7A39A
-E242 E7A3BD
-E243 E7A3B4
-E244 E7A487
-E245 E7A492
-E246 E7A491
-E247 E7A499
-E248 E7A4AC
-E249 E7A4AB
-E24A E7A580
-E24B E7A5A0
-E24C E7A597
-E24D E7A59F
-E24E E7A59A
-E24F E7A595
-E250 E7A593
-E251 E7A5BA
-E252 E7A5BF
-E253 E7A68A
-E254 E7A69D
-E255 E7A6A7
-E256 E9BD8B
-E257 E7A6AA
-E258 E7A6AE
-E259 E7A6B3
-E25A E7A6B9
-E25B E7A6BA
-E25C E7A789
-E25D E7A795
-E25E E7A7A7
-E25F E7A7AC
-E260 E7A7A1
-E261 E7A7A3
-E262 E7A888
-E263 E7A88D
-E264 E7A898
-E265 E7A899
-E266 E7A8A0
-E267 E7A89F
-E268 E7A680
-E269 E7A8B1
-E26A E7A8BB
-E26B E7A8BE
-E26C E7A8B7
-E26D E7A983
-E26E E7A997
-E26F E7A989
-E270 E7A9A1
-E271 E7A9A2
-E272 E7A9A9
-E273 E9BE9D
-E274 E7A9B0
-E275 E7A9B9
-E276 E7A9BD
-E277 E7AA88
-E278 E7AA97
-E279 E7AA95
-E27A E7AA98
-E27B E7AA96
-E27C E7AAA9
-E27D E7AB88
-E27E E7AAB0
-E280 E7AAB6
-E281 E7AB85
-E282 E7AB84
-E283 E7AABF
-E284 E98283
-E285 E7AB87
-E286 E7AB8A
-E287 E7AB8D
-E288 E7AB8F
-E289 E7AB95
-E28A E7AB93
-E28B E7AB99
-E28C E7AB9A
-E28D E7AB9D
-E28E E7ABA1
-E28F E7ABA2
-E290 E7ABA6
-E291 E7ABAD
-E292 E7ABB0
-E293 E7AC82
-E294 E7AC8F
-E295 E7AC8A
-E296 E7AC86
-E297 E7ACB3
-E298 E7AC98
-E299 E7AC99
-E29A E7AC9E
-E29B E7ACB5
-E29C E7ACA8
-E29D E7ACB6
-E29E E7AD90
-E29F E7ADBA
-E2A0 E7AC84
-E2A1 E7AD8D
-E2A2 E7AC8B
-E2A3 E7AD8C
-E2A4 E7AD85
-E2A5 E7ADB5
-E2A6 E7ADA5
-E2A7 E7ADB4
-E2A8 E7ADA7
-E2A9 E7ADB0
-E2AA E7ADB1
-E2AB E7ADAC
-E2AC E7ADAE
-E2AD E7AE9D
-E2AE E7AE98
-E2AF E7AE9F
-E2B0 E7AE8D
-E2B1 E7AE9C
-E2B2 E7AE9A
-E2B3 E7AE8B
-E2B4 E7AE92
-E2B5 E7AE8F
-E2B6 E7AD9D
-E2B7 E7AE99
-E2B8 E7AF8B
-E2B9 E7AF81
-E2BA E7AF8C
-E2BB E7AF8F
-E2BC E7AEB4
-E2BD E7AF86
-E2BE E7AF9D
-E2BF E7AFA9
-E2C0 E7B091
-E2C1 E7B094
-E2C2 E7AFA6
-E2C3 E7AFA5
-E2C4 E7B1A0
-E2C5 E7B080
-E2C6 E7B087
-E2C7 E7B093
-E2C8 E7AFB3
-E2C9 E7AFB7
-E2CA E7B097
-E2CB E7B08D
-E2CC E7AFB6
-E2CD E7B0A3
-E2CE E7B0A7
-E2CF E7B0AA
-E2D0 E7B09F
-E2D1 E7B0B7
-E2D2 E7B0AB
-E2D3 E7B0BD
-E2D4 E7B18C
-E2D5 E7B183
-E2D6 E7B194
-E2D7 E7B18F
-E2D8 E7B180
-E2D9 E7B190
-E2DA E7B198
-E2DB E7B19F
-E2DC E7B1A4
-E2DD E7B196
-E2DE E7B1A5
-E2DF E7B1AC
-E2E0 E7B1B5
-E2E1 E7B283
-E2E2 E7B290
-E2E3 E7B2A4
-E2E4 E7B2AD
-E2E5 E7B2A2
-E2E6 E7B2AB
-E2E7 E7B2A1
-E2E8 E7B2A8
-E2E9 E7B2B3
-E2EA E7B2B2
-E2EB E7B2B1
-E2EC E7B2AE
-E2ED E7B2B9
-E2EE E7B2BD
-E2EF E7B380
-E2F0 E7B385
-E2F1 E7B382
-E2F2 E7B398
-E2F3 E7B392
-E2F4 E7B39C
-E2F5 E7B3A2
-E2F6 E9ACBB
-E2F7 E7B3AF
-E2F8 E7B3B2
-E2F9 E7B3B4
-E2FA E7B3B6
-E2FB E7B3BA
-E2FC E7B486
-E340 E7B482
-E341 E7B49C
-E342 E7B495
-E343 E7B48A
-E344 E7B585
-E345 E7B58B
-E346 E7B4AE
-E347 E7B4B2
-E348 E7B4BF
-E349 E7B4B5
-E34A E7B586
-E34B E7B5B3
-E34C E7B596
-E34D E7B58E
-E34E E7B5B2
-E34F E7B5A8
-E350 E7B5AE
-E351 E7B58F
-E352 E7B5A3
-E353 E7B693
-E354 E7B689
-E355 E7B59B
-E356 E7B68F
-E357 E7B5BD
-E358 E7B69B
-E359 E7B6BA
-E35A E7B6AE
-E35B E7B6A3
-E35C E7B6B5
-E35D E7B787
-E35E E7B6BD
-E35F E7B6AB
-E360 E7B8BD
-E361 E7B6A2
-E362 E7B6AF
-E363 E7B79C
-E364 E7B6B8
-E365 E7B69F
-E366 E7B6B0
-E367 E7B798
-E368 E7B79D
-E369 E7B7A4
-E36A E7B79E
-E36B E7B7BB
-E36C E7B7B2
-E36D E7B7A1
-E36E E7B885
-E36F E7B88A
-E370 E7B8A3
-E371 E7B8A1
-E372 E7B892
-E373 E7B8B1
-E374 E7B89F
-E375 E7B889
-E376 E7B88B
-E377 E7B8A2
-E378 E7B986
-E379 E7B9A6
-E37A E7B8BB
-E37B E7B8B5
-E37C E7B8B9
-E37D E7B983
-E37E E7B8B7
-E380 E7B8B2
-E381 E7B8BA
-E382 E7B9A7
-E383 E7B99D
-E384 E7B996
-E385 E7B99E
-E386 E7B999
-E387 E7B99A
-E388 E7B9B9
-E389 E7B9AA
-E38A E7B9A9
-E38B E7B9BC
-E38C E7B9BB
-E38D E7BA83
-E38E E7B795
-E38F E7B9BD
-E390 E8BEAE
-E391 E7B9BF
-E392 E7BA88
-E393 E7BA89
-E394 E7BA8C
-E395 E7BA92
-E396 E7BA90
-E397 E7BA93
-E398 E7BA94
-E399 E7BA96
-E39A E7BA8E
-E39B E7BA9B
-E39C E7BA9C
-E39D E7BCB8
-E39E E7BCBA
-E39F E7BD85
-E3A0 E7BD8C
-E3A1 E7BD8D
-E3A2 E7BD8E
-E3A3 E7BD90
-E3A4 E7BD91
-E3A5 E7BD95
-E3A6 E7BD94
-E3A7 E7BD98
-E3A8 E7BD9F
-E3A9 E7BDA0
-E3AA E7BDA8
-E3AB E7BDA9
-E3AC E7BDA7
-E3AD E7BDB8
-E3AE E7BE82
-E3AF E7BE86
-E3B0 E7BE83
-E3B1 E7BE88
-E3B2 E7BE87
-E3B3 E7BE8C
-E3B4 E7BE94
-E3B5 E7BE9E
-E3B6 E7BE9D
-E3B7 E7BE9A
-E3B8 E7BEA3
-E3B9 E7BEAF
-E3BA E7BEB2
-E3BB E7BEB9
-E3BC E7BEAE
-E3BD E7BEB6
-E3BE E7BEB8
-E3BF E8ADB1
-E3C0 E7BF85
-E3C1 E7BF86
-E3C2 E7BF8A
-E3C3 E7BF95
-E3C4 E7BF94
-E3C5 E7BFA1
-E3C6 E7BFA6
-E3C7 E7BFA9
-E3C8 E7BFB3
-E3C9 E7BFB9
-E3CA E9A39C
-E3CB E88086
-E3CC E88084
-E3CD E8808B
-E3CE E88092
-E3CF E88098
-E3D0 E88099
-E3D1 E8809C
-E3D2 E880A1
-E3D3 E880A8
-E3D4 E880BF
-E3D5 E880BB
-E3D6 E8818A
-E3D7 E88186
-E3D8 E88192
-E3D9 E88198
-E3DA E8819A
-E3DB E8819F
-E3DC E881A2
-E3DD E881A8
-E3DE E881B3
-E3DF E881B2
-E3E0 E881B0
-E3E1 E881B6
-E3E2 E881B9
-E3E3 E881BD
-E3E4 E881BF
-E3E5 E88284
-E3E6 E88286
-E3E7 E88285
-E3E8 E8829B
-E3E9 E88293
-E3EA E8829A
-E3EB E882AD
-E3EC E58690
-E3ED E882AC
-E3EE E8839B
-E3EF E883A5
-E3F0 E88399
-E3F1 E8839D
-E3F2 E88384
-E3F3 E8839A
-E3F4 E88396
-E3F5 E88489
-E3F6 E883AF
-E3F7 E883B1
-E3F8 E8849B
-E3F9 E884A9
-E3FA E884A3
-E3FB E884AF
-E3FC E8858B
-E440 E99A8B
-E441 E88586
-E442 E884BE
-E443 E88593
-E444 E88591
-E445 E883BC
-E446 E885B1
-E447 E885AE
-E448 E885A5
-E449 E885A6
-E44A E885B4
-E44B E88683
-E44C E88688
-E44D E8868A
-E44E E88680
-E44F E88682
-E450 E886A0
-E451 E88695
-E452 E886A4
-E453 E886A3
-E454 E8859F
-E455 E88693
-E456 E886A9
-E457 E886B0
-E458 E886B5
-E459 E886BE
-E45A E886B8
-E45B E886BD
-E45C E88780
-E45D E88782
-E45E E886BA
-E45F E88789
-E460 E8878D
-E461 E88791
-E462 E88799
-E463 E88798
-E464 E88788
-E465 E8879A
-E466 E8879F
-E467 E887A0
-E468 E887A7
-E469 E887BA
-E46A E887BB
-E46B E887BE
-E46C E88881
-E46D E88882
-E46E E88885
-E46F E88887
-E470 E8888A
-E471 E8888D
-E472 E88890
-E473 E88896
-E474 E888A9
-E475 E888AB
-E476 E888B8
-E477 E888B3
-E478 E88980
-E479 E88999
-E47A E88998
-E47B E8899D
-E47C E8899A
-E47D E8899F
-E47E E889A4
-E480 E889A2
-E481 E889A8
-E482 E889AA
-E483 E889AB
-E484 E888AE
-E485 E889B1
-E486 E889B7
-E487 E889B8
-E488 E889BE
-E489 E88A8D
-E48A E88A92
-E48B E88AAB
-E48C E88A9F
-E48D E88ABB
-E48E E88AAC
-E48F E88BA1
-E490 E88BA3
-E491 E88B9F
-E492 E88B92
-E493 E88BB4
-E494 E88BB3
-E495 E88BBA
-E496 E88E93
-E497 E88C83
-E498 E88BBB
-E499 E88BB9
-E49A E88B9E
-E49B E88C86
-E49C E88B9C
-E49D E88C89
-E49E E88B99
-E49F E88CB5
-E4A0 E88CB4
-E4A1 E88C96
-E4A2 E88CB2
-E4A3 E88CB1
-E4A4 E88D80
-E4A5 E88CB9
-E4A6 E88D90
-E4A7 E88D85
-E4A8 E88CAF
-E4A9 E88CAB
-E4AA E88C97
-E4AB E88C98
-E4AC E88E85
-E4AD E88E9A
-E4AE E88EAA
-E4AF E88E9F
-E4B0 E88EA2
-E4B1 E88E96
-E4B2 E88CA3
-E4B3 E88E8E
-E4B4 E88E87
-E4B5 E88E8A
-E4B6 E88DBC
-E4B7 E88EB5
-E4B8 E88DB3
-E4B9 E88DB5
-E4BA E88EA0
-E4BB E88E89
-E4BC E88EA8
-E4BD E88FB4
-E4BE E89093
-E4BF E88FAB
-E4C0 E88F8E
-E4C1 E88FBD
-E4C2 E89083
-E4C3 E88F98
-E4C4 E8908B
-E4C5 E88F81
-E4C6 E88FB7
-E4C7 E89087
-E4C8 E88FA0
-E4C9 E88FB2
-E4CA E8908D
-E4CB E890A2
-E4CC E890A0
-E4CD E88EBD
-E4CE E890B8
-E4CF E89486
-E4D0 E88FBB
-E4D1 E891AD
-E4D2 E890AA
-E4D3 E890BC
-E4D4 E8959A
-E4D5 E89284
-E4D6 E891B7
-E4D7 E891AB
-E4D8 E892AD
-E4D9 E891AE
-E4DA E89282
-E4DB E891A9
-E4DC E89186
-E4DD E890AC
-E4DE E891AF
-E4DF E891B9
-E4E0 E890B5
-E4E1 E8938A
-E4E2 E891A2
-E4E3 E892B9
-E4E4 E892BF
-E4E5 E8929F
-E4E6 E89399
-E4E7 E8938D
-E4E8 E892BB
-E4E9 E8939A
-E4EA E89390
-E4EB E89381
-E4EC E89386
-E4ED E89396
-E4EE E892A1
-E4EF E894A1
-E4F0 E893BF
-E4F1 E893B4
-E4F2 E89497
-E4F3 E89498
-E4F4 E894AC
-E4F5 E8949F
-E4F6 E89495
-E4F7 E89494
-E4F8 E893BC
-E4F9 E89580
-E4FA E895A3
-E4FB E89598
-E4FC E89588
-E540 E89581
-E541 E89882
-E542 E8958B
-E543 E89595
-E544 E89680
-E545 E896A4
-E546 E89688
-E547 E89691
-E548 E8968A
-E549 E896A8
-E54A E895AD
-E54B E89694
-E54C E8969B
-E54D E897AA
-E54E E89687
-E54F E8969C
-E550 E895B7
-E551 E895BE
-E552 E89690
-E553 E89789
-E554 E896BA
-E555 E8978F
-E556 E896B9
-E557 E89790
-E558 E89795
-E559 E8979D
-E55A E897A5
-E55B E8979C
-E55C E897B9
-E55D E8988A
-E55E E89893
-E55F E8988B
-E560 E897BE
-E561 E897BA
-E562 E89886
-E563 E898A2
-E564 E8989A
-E565 E898B0
-E566 E898BF
-E567 E8998D
-E568 E4B995
-E569 E89994
-E56A E8999F
-E56B E899A7
-E56C E899B1
-E56D E89A93
-E56E E89AA3
-E56F E89AA9
-E570 E89AAA
-E571 E89A8B
-E572 E89A8C
-E573 E89AB6
-E574 E89AAF
-E575 E89B84
-E576 E89B86
-E577 E89AB0
-E578 E89B89
-E579 E8A0A3
-E57A E89AAB
-E57B E89B94
-E57C E89B9E
-E57D E89BA9
-E57E E89BAC
-E580 E89B9F
-E581 E89B9B
-E582 E89BAF
-E583 E89C92
-E584 E89C86
-E585 E89C88
-E586 E89C80
-E587 E89C83
-E588 E89BBB
-E589 E89C91
-E58A E89C89
-E58B E89C8D
-E58C E89BB9
-E58D E89C8A
-E58E E89CB4
-E58F E89CBF
-E590 E89CB7
-E591 E89CBB
-E592 E89CA5
-E593 E89CA9
-E594 E89C9A
-E595 E89DA0
-E596 E89D9F
-E597 E89DB8
-E598 E89D8C
-E599 E89D8E
-E59A E89DB4
-E59B E89D97
-E59C E89DA8
-E59D E89DAE
-E59E E89D99
-E59F E89D93
-E5A0 E89DA3
-E5A1 E89DAA
-E5A2 E8A085
-E5A3 E89EA2
-E5A4 E89E9F
-E5A5 E89E82
-E5A6 E89EAF
-E5A7 E89F8B
-E5A8 E89EBD
-E5A9 E89F80
-E5AA E89F90
-E5AB E99B96
-E5AC E89EAB
-E5AD E89F84
-E5AE E89EB3
-E5AF E89F87
-E5B0 E89F86
-E5B1 E89EBB
-E5B2 E89FAF
-E5B3 E89FB2
-E5B4 E89FA0
-E5B5 E8A08F
-E5B6 E8A08D
-E5B7 E89FBE
-E5B8 E89FB6
-E5B9 E89FB7
-E5BA E8A08E
-E5BB E89F92
-E5BC E8A091
-E5BD E8A096
-E5BE E8A095
-E5BF E8A0A2
-E5C0 E8A0A1
-E5C1 E8A0B1
-E5C2 E8A0B6
-E5C3 E8A0B9
-E5C4 E8A0A7
-E5C5 E8A0BB
-E5C6 E8A184
-E5C7 E8A182
-E5C8 E8A192
-E5C9 E8A199
-E5CA E8A19E
-E5CB E8A1A2
-E5CC E8A1AB
-E5CD E8A281
-E5CE E8A1BE
-E5CF E8A29E
-E5D0 E8A1B5
-E5D1 E8A1BD
-E5D2 E8A2B5
-E5D3 E8A1B2
-E5D4 E8A282
-E5D5 E8A297
-E5D6 E8A292
-E5D7 E8A2AE
-E5D8 E8A299
-E5D9 E8A2A2
-E5DA E8A28D
-E5DB E8A2A4
-E5DC E8A2B0
-E5DD E8A2BF
-E5DE E8A2B1
-E5DF E8A383
-E5E0 E8A384
-E5E1 E8A394
-E5E2 E8A398
-E5E3 E8A399
-E5E4 E8A39D
-E5E5 E8A3B9
-E5E6 E8A482
-E5E7 E8A3BC
-E5E8 E8A3B4
-E5E9 E8A3A8
-E5EA E8A3B2
-E5EB E8A484
-E5EC E8A48C
-E5ED E8A48A
-E5EE E8A493
-E5EF E8A583
-E5F0 E8A49E
-E5F1 E8A4A5
-E5F2 E8A4AA
-E5F3 E8A4AB
-E5F4 E8A581
-E5F5 E8A584
-E5F6 E8A4BB
-E5F7 E8A4B6
-E5F8 E8A4B8
-E5F9 E8A58C
-E5FA E8A49D
-E5FB E8A5A0
-E5FC E8A59E
-E640 E8A5A6
-E641 E8A5A4
-E642 E8A5AD
-E643 E8A5AA
-E644 E8A5AF
-E645 E8A5B4
-E646 E8A5B7
-E647 E8A5BE
-E648 E8A683
-E649 E8A688
-E64A E8A68A
-E64B E8A693
-E64C E8A698
-E64D E8A6A1
-E64E E8A6A9
-E64F E8A6A6
-E650 E8A6AC
-E651 E8A6AF
-E652 E8A6B2
-E653 E8A6BA
-E654 E8A6BD
-E655 E8A6BF
-E656 E8A780
-E657 E8A79A
-E658 E8A79C
-E659 E8A79D
-E65A E8A7A7
-E65B E8A7B4
-E65C E8A7B8
-E65D E8A883
-E65E E8A896
-E65F E8A890
-E660 E8A88C
-E661 E8A89B
-E662 E8A89D
-E663 E8A8A5
-E664 E8A8B6
-E665 E8A981
-E666 E8A99B
-E667 E8A992
-E668 E8A986
-E669 E8A988
-E66A E8A9BC
-E66B E8A9AD
-E66C E8A9AC
-E66D E8A9A2
-E66E E8AA85
-E66F E8AA82
-E670 E8AA84
-E671 E8AAA8
-E672 E8AAA1
-E673 E8AA91
-E674 E8AAA5
-E675 E8AAA6
-E676 E8AA9A
-E677 E8AAA3
-E678 E8AB84
-E679 E8AB8D
-E67A E8AB82
-E67B E8AB9A
-E67C E8ABAB
-E67D E8ABB3
-E67E E8ABA7
-E680 E8ABA4
-E681 E8ABB1
-E682 E8AC94
-E683 E8ABA0
-E684 E8ABA2
-E685 E8ABB7
-E686 E8AB9E
-E687 E8AB9B
-E688 E8AC8C
-E689 E8AC87
-E68A E8AC9A
-E68B E8ABA1
-E68C E8AC96
-E68D E8AC90
-E68E E8AC97
-E68F E8ACA0
-E690 E8ACB3
-E691 E99EAB
-E692 E8ACA6
-E693 E8ACAB
-E694 E8ACBE
-E695 E8ACA8
-E696 E8AD81
-E697 E8AD8C
-E698 E8AD8F
-E699 E8AD8E
-E69A E8AD89
-E69B E8AD96
-E69C E8AD9B
-E69D E8AD9A
-E69E E8ADAB
-E69F E8AD9F
-E6A0 E8ADAC
-E6A1 E8ADAF
-E6A2 E8ADB4
-E6A3 E8ADBD
-E6A4 E8AE80
-E6A5 E8AE8C
-E6A6 E8AE8E
-E6A7 E8AE92
-E6A8 E8AE93
-E6A9 E8AE96
-E6AA E8AE99
-E6AB E8AE9A
-E6AC E8B0BA
-E6AD E8B181
-E6AE E8B0BF
-E6AF E8B188
-E6B0 E8B18C
-E6B1 E8B18E
-E6B2 E8B190
-E6B3 E8B195
-E6B4 E8B1A2
-E6B5 E8B1AC
-E6B6 E8B1B8
-E6B7 E8B1BA
-E6B8 E8B282
-E6B9 E8B289
-E6BA E8B285
-E6BB E8B28A
-E6BC E8B28D
-E6BD E8B28E
-E6BE E8B294
-E6BF E8B1BC
-E6C0 E8B298
-E6C1 E6889D
-E6C2 E8B2AD
-E6C3 E8B2AA
-E6C4 E8B2BD
-E6C5 E8B2B2
-E6C6 E8B2B3
-E6C7 E8B2AE
-E6C8 E8B2B6
-E6C9 E8B388
-E6CA E8B381
-E6CB E8B3A4
-E6CC E8B3A3
-E6CD E8B39A
-E6CE E8B3BD
-E6CF E8B3BA
-E6D0 E8B3BB
-E6D1 E8B484
-E6D2 E8B485
-E6D3 E8B48A
-E6D4 E8B487
-E6D5 E8B48F
-E6D6 E8B48D
-E6D7 E8B490
-E6D8 E9BD8E
-E6D9 E8B493
-E6DA E8B38D
-E6DB E8B494
-E6DC E8B496
-E6DD E8B5A7
-E6DE E8B5AD
-E6DF E8B5B1
-E6E0 E8B5B3
-E6E1 E8B681
-E6E2 E8B699
-E6E3 E8B782
-E6E4 E8B6BE
-E6E5 E8B6BA
-E6E6 E8B78F
-E6E7 E8B79A
-E6E8 E8B796
-E6E9 E8B78C
-E6EA E8B79B
-E6EB E8B78B
-E6EC E8B7AA
-E6ED E8B7AB
-E6EE E8B79F
-E6EF E8B7A3
-E6F0 E8B7BC
-E6F1 E8B888
-E6F2 E8B889
-E6F3 E8B7BF
-E6F4 E8B89D
-E6F5 E8B89E
-E6F6 E8B890
-E6F7 E8B89F
-E6F8 E8B982
-E6F9 E8B8B5
-E6FA E8B8B0
-E6FB E8B8B4
-E6FC E8B98A
-E740 E8B987
-E741 E8B989
-E742 E8B98C
-E743 E8B990
-E744 E8B988
-E745 E8B999
-E746 E8B9A4
-E747 E8B9A0
-E748 E8B8AA
-E749 E8B9A3
-E74A E8B995
-E74B E8B9B6
-E74C E8B9B2
-E74D E8B9BC
-E74E E8BA81
-E74F E8BA87
-E750 E8BA85
-E751 E8BA84
-E752 E8BA8B
-E753 E8BA8A
-E754 E8BA93
-E755 E8BA91
-E756 E8BA94
-E757 E8BA99
-E758 E8BAAA
-E759 E8BAA1
-E75A E8BAAC
-E75B E8BAB0
-E75C E8BB86
-E75D E8BAB1
-E75E E8BABE
-E75F E8BB85
-E760 E8BB88
-E761 E8BB8B
-E762 E8BB9B
-E763 E8BBA3
-E764 E8BBBC
-E765 E8BBBB
-E766 E8BBAB
-E767 E8BBBE
-E768 E8BC8A
-E769 E8BC85
-E76A E8BC95
-E76B E8BC92
-E76C E8BC99
-E76D E8BC93
-E76E E8BC9C
-E76F E8BC9F
-E770 E8BC9B
-E771 E8BC8C
-E772 E8BCA6
-E773 E8BCB3
-E774 E8BCBB
-E775 E8BCB9
-E776 E8BD85
-E777 E8BD82
-E778 E8BCBE
-E779 E8BD8C
-E77A E8BD89
-E77B E8BD86
-E77C E8BD8E
-E77D E8BD97
-E77E E8BD9C
-E780 E8BDA2
-E781 E8BDA3
-E782 E8BDA4
-E783 E8BE9C
-E784 E8BE9F
-E785 E8BEA3
-E786 E8BEAD
-E787 E8BEAF
-E788 E8BEB7
-E789 E8BF9A
-E78A E8BFA5
-E78B E8BFA2
-E78C E8BFAA
-E78D E8BFAF
-E78E E98287
-E78F E8BFB4
-E790 E98085
-E791 E8BFB9
-E792 E8BFBA
-E793 E98091
-E794 E98095
-E795 E980A1
-E796 E9808D
-E797 E9809E
-E798 E98096
-E799 E9808B
-E79A E980A7
-E79B E980B6
-E79C E980B5
-E79D E980B9
-E79E E8BFB8
-E79F E9818F
-E7A0 E98190
-E7A1 E98191
-E7A2 E98192
-E7A3 E9808E
-E7A4 E98189
-E7A5 E980BE
-E7A6 E98196
-E7A7 E98198
-E7A8 E9819E
-E7A9 E981A8
-E7AA E981AF
-E7AB E981B6
-E7AC E99AA8
-E7AD E981B2
-E7AE E98282
-E7AF E981BD
-E7B0 E98281
-E7B1 E98280
-E7B2 E9828A
-E7B3 E98289
-E7B4 E9828F
-E7B5 E982A8
-E7B6 E982AF
-E7B7 E982B1
-E7B8 E982B5
-E7B9 E983A2
-E7BA E983A4
-E7BB E68988
-E7BC E9839B
-E7BD E98482
-E7BE E98492
-E7BF E98499
-E7C0 E984B2
-E7C1 E984B0
-E7C2 E9858A
-E7C3 E98596
-E7C4 E98598
-E7C5 E985A3
-E7C6 E985A5
-E7C7 E985A9
-E7C8 E985B3
-E7C9 E985B2
-E7CA E9868B
-E7CB E98689
-E7CC E98682
-E7CD E986A2
-E7CE E986AB
-E7CF E986AF
-E7D0 E986AA
-E7D1 E986B5
-E7D2 E986B4
-E7D3 E986BA
-E7D4 E98780
-E7D5 E98781
-E7D6 E98789
-E7D7 E9878B
-E7D8 E98790
-E7D9 E98796
-E7DA E9879F
-E7DB E987A1
-E7DC E9879B
-E7DD E987BC
-E7DE E987B5
-E7DF E987B6
-E7E0 E9889E
-E7E1 E987BF
-E7E2 E98894
-E7E3 E988AC
-E7E4 E98895
-E7E5 E98891
-E7E6 E9899E
-E7E7 E98997
-E7E8 E98985
-E7E9 E98989
-E7EA E989A4
-E7EB E98988
-E7EC E98A95
-E7ED E988BF
-E7EE E9898B
-E7EF E98990
-E7F0 E98A9C
-E7F1 E98A96
-E7F2 E98A93
-E7F3 E98A9B
-E7F4 E9899A
-E7F5 E98B8F
-E7F6 E98AB9
-E7F7 E98AB7
-E7F8 E98BA9
-E7F9 E98C8F
-E7FA E98BBA
-E7FB E98D84
-E7FC E98CAE
-E840 E98C99
-E841 E98CA2
-E842 E98C9A
-E843 E98CA3
-E844 E98CBA
-E845 E98CB5
-E846 E98CBB
-E847 E98D9C
-E848 E98DA0
-E849 E98DBC
-E84A E98DAE
-E84B E98D96
-E84C E98EB0
-E84D E98EAC
-E84E E98EAD
-E84F E98E94
-E850 E98EB9
-E851 E98F96
-E852 E98F97
-E853 E98FA8
-E854 E98FA5
-E855 E98F98
-E856 E98F83
-E857 E98F9D
-E858 E98F90
-E859 E98F88
-E85A E98FA4
-E85B E9909A
-E85C E99094
-E85D E99093
-E85E E99083
-E85F E99087
-E860 E99090
-E861 E990B6
-E862 E990AB
-E863 E990B5
-E864 E990A1
-E865 E990BA
-E866 E99181
-E867 E99192
-E868 E99184
-E869 E9919B
-E86A E991A0
-E86B E991A2
-E86C E9919E
-E86D E991AA
-E86E E988A9
-E86F E991B0
-E870 E991B5
-E871 E991B7
-E872 E991BD
-E873 E9919A
-E874 E991BC
-E875 E991BE
-E876 E99281
-E877 E991BF
-E878 E99682
-E879 E99687
-E87A E9968A
-E87B E99694
-E87C E99696
-E87D E99698
-E87E E99699
-E880 E996A0
-E881 E996A8
-E882 E996A7
-E883 E996AD
-E884 E996BC
-E885 E996BB
-E886 E996B9
-E887 E996BE
-E888 E9978A
-E889 E6BFB6
-E88A E99783
-E88B E9978D
-E88C E9978C
-E88D E99795
-E88E E99794
-E88F E99796
-E890 E9979C
-E891 E997A1
-E892 E997A5
-E893 E997A2
-E894 E998A1
-E895 E998A8
-E896 E998AE
-E897 E998AF
-E898 E99982
-E899 E9998C
-E89A E9998F
-E89B E9998B
-E89C E999B7
-E89D E9999C
-E89E E9999E
-E89F E9999D
-E8A0 E9999F
-E8A1 E999A6
-E8A2 E999B2
-E8A3 E999AC
-E8A4 E99A8D
-E8A5 E99A98
-E8A6 E99A95
-E8A7 E99A97
-E8A8 E99AAA
-E8A9 E99AA7
-E8AA E99AB1
-E8AB E99AB2
-E8AC E99AB0
-E8AD E99AB4
-E8AE E99AB6
-E8AF E99AB8
-E8B0 E99AB9
-E8B1 E99B8E
-E8B2 E99B8B
-E8B3 E99B89
-E8B4 E99B8D
-E8B5 E8A58D
-E8B6 E99B9C
-E8B7 E99C8D
-E8B8 E99B95
-E8B9 E99BB9
-E8BA E99C84
-E8BB E99C86
-E8BC E99C88
-E8BD E99C93
-E8BE E99C8E
-E8BF E99C91
-E8C0 E99C8F
-E8C1 E99C96
-E8C2 E99C99
-E8C3 E99CA4
-E8C4 E99CAA
-E8C5 E99CB0
-E8C6 E99CB9
-E8C7 E99CBD
-E8C8 E99CBE
-E8C9 E99D84
-E8CA E99D86
-E8CB E99D88
-E8CC E99D82
-E8CD E99D89
-E8CE E99D9C
-E8CF E99DA0
-E8D0 E99DA4
-E8D1 E99DA6
-E8D2 E99DA8
-E8D3 E58B92
-E8D4 E99DAB
-E8D5 E99DB1
-E8D6 E99DB9
-E8D7 E99E85
-E8D8 E99DBC
-E8D9 E99E81
-E8DA E99DBA
-E8DB E99E86
-E8DC E99E8B
-E8DD E99E8F
-E8DE E99E90
-E8DF E99E9C
-E8E0 E99EA8
-E8E1 E99EA6
-E8E2 E99EA3
-E8E3 E99EB3
-E8E4 E99EB4
-E8E5 E99F83
-E8E6 E99F86
-E8E7 E99F88
-E8E8 E99F8B
-E8E9 E99F9C
-E8EA E99FAD
-E8EB E9BD8F
-E8EC E99FB2
-E8ED E7AB9F
-E8EE E99FB6
-E8EF E99FB5
-E8F0 E9A08F
-E8F1 E9A08C
-E8F2 E9A0B8
-E8F3 E9A0A4
-E8F4 E9A0A1
-E8F5 E9A0B7
-E8F6 E9A0BD
-E8F7 E9A186
-E8F8 E9A18F
-E8F9 E9A18B
-E8FA E9A1AB
-E8FB E9A1AF
-E8FC E9A1B0
-E940 E9A1B1
-E941 E9A1B4
-E942 E9A1B3
-E943 E9A2AA
-E944 E9A2AF
-E945 E9A2B1
-E946 E9A2B6
-E947 E9A384
-E948 E9A383
-E949 E9A386
-E94A E9A3A9
-E94B E9A3AB
-E94C E9A483
-E94D E9A489
-E94E E9A492
-E94F E9A494
-E950 E9A498
-E951 E9A4A1
-E952 E9A49D
-E953 E9A49E
-E954 E9A4A4
-E955 E9A4A0
-E956 E9A4AC
-E957 E9A4AE
-E958 E9A4BD
-E959 E9A4BE
-E95A E9A582
-E95B E9A589
-E95C E9A585
-E95D E9A590
-E95E E9A58B
-E95F E9A591
-E960 E9A592
-E961 E9A58C
-E962 E9A595
-E963 E9A697
-E964 E9A698
-E965 E9A6A5
-E966 E9A6AD
-E967 E9A6AE
-E968 E9A6BC
-E969 E9A79F
-E96A E9A79B
-E96B E9A79D
-E96C E9A798
-E96D E9A791
-E96E E9A7AD
-E96F E9A7AE
-E970 E9A7B1
-E971 E9A7B2
-E972 E9A7BB
-E973 E9A7B8
-E974 E9A881
-E975 E9A88F
-E976 E9A885
-E977 E9A7A2
-E978 E9A899
-E979 E9A8AB
-E97A E9A8B7
-E97B E9A985
-E97C E9A982
-E97D E9A980
-E97E E9A983
-E980 E9A8BE
-E981 E9A995
-E982 E9A98D
-E983 E9A99B
-E984 E9A997
-E985 E9A99F
-E986 E9A9A2
-E987 E9A9A5
-E988 E9A9A4
-E989 E9A9A9
-E98A E9A9AB
-E98B E9A9AA
-E98C E9AAAD
-E98D E9AAB0
-E98E E9AABC
-E98F E9AB80
-E990 E9AB8F
-E991 E9AB91
-E992 E9AB93
-E993 E9AB94
-E994 E9AB9E
-E995 E9AB9F
-E996 E9ABA2
-E997 E9ABA3
-E998 E9ABA6
-E999 E9ABAF
-E99A E9ABAB
-E99B E9ABAE
-E99C E9ABB4
-E99D E9ABB1
-E99E E9ABB7
-E99F E9ABBB
-E9A0 E9AC86
-E9A1 E9AC98
-E9A2 E9AC9A
-E9A3 E9AC9F
-E9A4 E9ACA2
-E9A5 E9ACA3
-E9A6 E9ACA5
-E9A7 E9ACA7
-E9A8 E9ACA8
-E9A9 E9ACA9
-E9AA E9ACAA
-E9AB E9ACAE
-E9AC E9ACAF
-E9AD E9ACB2
-E9AE E9AD84
-E9AF E9AD83
-E9B0 E9AD8F
-E9B1 E9AD8D
-E9B2 E9AD8E
-E9B3 E9AD91
-E9B4 E9AD98
-E9B5 E9ADB4
-E9B6 E9AE93
-E9B7 E9AE83
-E9B8 E9AE91
-E9B9 E9AE96
-E9BA E9AE97
-E9BB E9AE9F
-E9BC E9AEA0
-E9BD E9AEA8
-E9BE E9AEB4
-E9BF E9AF80
-E9C0 E9AF8A
-E9C1 E9AEB9
-E9C2 E9AF86
-E9C3 E9AF8F
-E9C4 E9AF91
-E9C5 E9AF92
-E9C6 E9AFA3
-E9C7 E9AFA2
-E9C8 E9AFA4
-E9C9 E9AF94
-E9CA E9AFA1
-E9CB E9B0BA
-E9CC E9AFB2
-E9CD E9AFB1
-E9CE E9AFB0
-E9CF E9B095
-E9D0 E9B094
-E9D1 E9B089
-E9D2 E9B093
-E9D3 E9B08C
-E9D4 E9B086
-E9D5 E9B088
-E9D6 E9B092
-E9D7 E9B08A
-E9D8 E9B084
-E9D9 E9B0AE
-E9DA E9B09B
-E9DB E9B0A5
-E9DC E9B0A4
-E9DD E9B0A1
-E9DE E9B0B0
-E9DF E9B187
-E9E0 E9B0B2
-E9E1 E9B186
-E9E2 E9B0BE
-E9E3 E9B19A
-E9E4 E9B1A0
-E9E5 E9B1A7
-E9E6 E9B1B6
-E9E7 E9B1B8
-E9E8 E9B3A7
-E9E9 E9B3AC
-E9EA E9B3B0
-E9EB E9B489
-E9EC E9B488
-E9ED E9B3AB
-E9EE E9B483
-E9EF E9B486
-E9F0 E9B4AA
-E9F1 E9B4A6
-E9F2 E9B6AF
-E9F3 E9B4A3
-E9F4 E9B49F
-E9F5 E9B584
-E9F6 E9B495
-E9F7 E9B492
-E9F8 E9B581
-E9F9 E9B4BF
-E9FA E9B4BE
-E9FB E9B586
-E9FC E9B588
-EA40 E9B59D
-EA41 E9B59E
-EA42 E9B5A4
-EA43 E9B591
-EA44 E9B590
-EA45 E9B599
-EA46 E9B5B2
-EA47 E9B689
-EA48 E9B687
-EA49 E9B6AB
-EA4A E9B5AF
-EA4B E9B5BA
-EA4C E9B69A
-EA4D E9B6A4
-EA4E E9B6A9
-EA4F E9B6B2
-EA50 E9B784
-EA51 E9B781
-EA52 E9B6BB
-EA53 E9B6B8
-EA54 E9B6BA
-EA55 E9B786
-EA56 E9B78F
-EA57 E9B782
-EA58 E9B799
-EA59 E9B793
-EA5A E9B7B8
-EA5B E9B7A6
-EA5C E9B7AD
-EA5D E9B7AF
-EA5E E9B7BD
-EA5F E9B89A
-EA60 E9B89B
-EA61 E9B89E
-EA62 E9B9B5
-EA63 E9B9B9
-EA64 E9B9BD
-EA65 E9BA81
-EA66 E9BA88
-EA67 E9BA8B
-EA68 E9BA8C
-EA69 E9BA92
-EA6A E9BA95
-EA6B E9BA91
-EA6C E9BA9D
-EA6D E9BAA5
-EA6E E9BAA9
-EA6F E9BAB8
-EA70 E9BAAA
-EA71 E9BAAD
-EA72 E99DA1
-EA73 E9BB8C
-EA74 E9BB8E
-EA75 E9BB8F
-EA76 E9BB90
-EA77 E9BB94
-EA78 E9BB9C
-EA79 E9BB9E
-EA7A E9BB9D
-EA7B E9BBA0
-EA7C E9BBA5
-EA7D E9BBA8
-EA7E E9BBAF
-EA80 E9BBB4
-EA81 E9BBB6
-EA82 E9BBB7
-EA83 E9BBB9
-EA84 E9BBBB
-EA85 E9BBBC
-EA86 E9BBBD
-EA87 E9BC87
-EA88 E9BC88
-EA89 E79AB7
-EA8A E9BC95
-EA8B E9BCA1
-EA8C E9BCAC
-EA8D E9BCBE
-EA8E E9BD8A
-EA8F E9BD92
-EA90 E9BD94
-EA91 E9BDA3
-EA92 E9BD9F
-EA93 E9BDA0
-EA94 E9BDA1
-EA95 E9BDA6
-EA96 E9BDA7
-EA97 E9BDAC
-EA98 E9BDAA
-EA99 E9BDB7
-EA9A E9BDB2
-EA9B E9BDB6
-EA9C E9BE95
-EA9D E9BE9C
-EA9E E9BEA0
-EA9F E5A0AF
-EAA0 E6A787
-EAA1 E98199
-EAA2 E791A4
-EAA3 E5879C
-EAA4 E78699
-Warnings:
-Warning 1977 Cannot convert 'sjis' character 0x81AD to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81AE to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81AF to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81B7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81C7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81CF to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D0 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D1 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D2 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D3 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D4 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D5 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D6 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D7 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D8 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81D9 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81E9 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81EA to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81EB to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81EC to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81ED to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81EE to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81EF to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81F8 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81F9 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81FA to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x81FB to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x8240 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x8241 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x8242 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x8243 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x8244 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x8245 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x8246 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x8247 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x8248 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x8249 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x824A to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x824B to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x824C to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x824D to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x824E to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x8259 to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x825A to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x825B to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x825C to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x825D to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x825E to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x825F to 'utf8'
-Warning 1977 Cannot convert 'sjis' character 0x827A to 'utf8'
-DROP TABLE t1;
-#
-# WL#3090 Japanese Character Set adjustments
-# Test Unicode->sjis conversion
-#
-CREATE TABLE t1 (a CHAR(1)) CHARACTER SET utf8;
-INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
-INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
-CREATE TEMPORARY TABLE head AS SELECT concat(b1.a, b2.a) AS head FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE tail AS SELECT concat(b1.a, b2.a) AS tail FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE middle AS SELECT concat(b1.a, b2.a) AS middle FROM t1 b1, t1 b2;
-DROP TABLE t1;
-CREATE TABLE t1 (a varchar(1)) CHARACTER SET utf8;
-INSERT INTO t1 SELECT UNHEX(head)
-FROM head WHERE (head BETWEEN '00' AND '7F') ORDER BY head;
-INSERT INTO t1
-SELECT UNHEX(CONCAT(head,tail))
-FROM head, tail
-WHERE (head BETWEEN 'C2' AND 'DF') AND (tail BETWEEN '80' AND 'BF')
-ORDER BY head, tail;
-INSERT INTO t1
-SELECT UNHEX(CONCAT(head, middle, tail))
-FROM head, middle, tail
-WHERE (head BETWEEN 'E0' AND 'EF')
-AND (middle BETWEEN '80' AND 'BF')
-AND (tail BETWEEN '80' AND 'BF')
-AND NOT (head='E0' AND middle BETWEEN '80' AND '9F')
-ORDER BY head, middle, tail;
-SELECT count(*) FROM t1;
-count(*)
-65536
-SELECT HEX(a), HEX(CONVERT(a using sjis)) as b FROM t1 HAVING b<>'3F' ORDER BY BINARY a;
-HEX(a) b
-00 00
-01 01
-02 02
-03 03
-04 04
-05 05
-06 06
-07 07
-08 08
-09 09
-0A 0A
-0B 0B
-0C 0C
-0D 0D
-0E 0E
-0F 0F
-10 10
-11 11
-12 12
-13 13
-14 14
-15 15
-16 16
-17 17
-18 18
-19 19
-1A 1A
-1B 1B
-1C 1C
-1D 1D
-1E 1E
-1F 1F
-20 20
-21 21
-22 22
-23 23
-24 24
-25 25
-26 26
-27 27
-28 28
-29 29
-2A 2A
-2B 2B
-2C 2C
-2D 2D
-2E 2E
-2F 2F
-30 30
-31 31
-32 32
-33 33
-34 34
-35 35
-36 36
-37 37
-38 38
-39 39
-3A 3A
-3B 3B
-3C 3C
-3D 3D
-3E 3E
-40 40
-41 41
-42 42
-43 43
-44 44
-45 45
-46 46
-47 47
-48 48
-49 49
-4A 4A
-4B 4B
-4C 4C
-4D 4D
-4E 4E
-4F 4F
-50 50
-51 51
-52 52
-53 53
-54 54
-55 55
-56 56
-57 57
-58 58
-59 59
-5A 5A
-5B 5B
-5C 815F
-5D 5D
-5E 5E
-5F 5F
-60 60
-61 61
-62 62
-63 63
-64 64
-65 65
-66 66
-67 67
-68 68
-69 69
-6A 6A
-6B 6B
-6C 6C
-6D 6D
-6E 6E
-6F 6F
-70 70
-71 71
-72 72
-73 73
-74 74
-75 75
-76 76
-77 77
-78 78
-79 79
-7A 7A
-7B 7B
-7C 7C
-7D 7D
-7E 7E
-7F 7F
-C2A2 8191
-C2A3 8192
-C2A7 8198
-C2A8 814E
-C2AC 81CA
-C2B0 818B
-C2B1 817D
-C2B4 814C
-C2B6 81F7
-C397 817E
-C3B7 8180
-CE91 839F
-CE92 83A0
-CE93 83A1
-CE94 83A2
-CE95 83A3
-CE96 83A4
-CE97 83A5
-CE98 83A6
-CE99 83A7
-CE9A 83A8
-CE9B 83A9
-CE9C 83AA
-CE9D 83AB
-CE9E 83AC
-CE9F 83AD
-CEA0 83AE
-CEA1 83AF
-CEA3 83B0
-CEA4 83B1
-CEA5 83B2
-CEA6 83B3
-CEA7 83B4
-CEA8 83B5
-CEA9 83B6
-CEB1 83BF
-CEB2 83C0
-CEB3 83C1
-CEB4 83C2
-CEB5 83C3
-CEB6 83C4
-CEB7 83C5
-CEB8 83C6
-CEB9 83C7
-CEBA 83C8
-CEBB 83C9
-CEBC 83CA
-CEBD 83CB
-CEBE 83CC
-CEBF 83CD
-CF80 83CE
-CF81 83CF
-CF83 83D0
-CF84 83D1
-CF85 83D2
-CF86 83D3
-CF87 83D4
-CF88 83D5
-CF89 83D6
-D081 8446
-D090 8440
-D091 8441
-D092 8442
-D093 8443
-D094 8444
-D095 8445
-D096 8447
-D097 8448
-D098 8449
-D099 844A
-D09A 844B
-D09B 844C
-D09C 844D
-D09D 844E
-D09E 844F
-D09F 8450
-D0A0 8451
-D0A1 8452
-D0A2 8453
-D0A3 8454
-D0A4 8455
-D0A5 8456
-D0A6 8457
-D0A7 8458
-D0A8 8459
-D0A9 845A
-D0AA 845B
-D0AB 845C
-D0AC 845D
-D0AD 845E
-D0AE 845F
-D0AF 8460
-D0B0 8470
-D0B1 8471
-D0B2 8472
-D0B3 8473
-D0B4 8474
-D0B5 8475
-D0B6 8477
-D0B7 8478
-D0B8 8479
-D0B9 847A
-D0BA 847B
-D0BB 847C
-D0BC 847D
-D0BD 847E
-D0BE 8480
-D0BF 8481
-D180 8482
-D181 8483
-D182 8484
-D183 8485
-D184 8486
-D185 8487
-D186 8488
-D187 8489
-D188 848A
-D189 848B
-D18A 848C
-D18B 848D
-D18C 848E
-D18D 848F
-D18E 8490
-D18F 8491
-D191 8476
-E28090 815D
-E28095 815C
-E28096 8161
-E28098 8165
-E28099 8166
-E2809C 8167
-E2809D 8168
-E280A0 81F5
-E280A1 81F6
-E280A5 8164
-E280A6 8163
-E280B0 81F1
-E280B2 818C
-E280B3 818D
-E280BB 81A6
-E28483 818E
-E284AB 81F0
-E28690 81A9
-E28691 81AA
-E28692 81A8
-E28693 81AB
-E28792 81CB
-E28794 81CC
-E28880 81CD
-E28882 81DD
-E28883 81CE
-E28887 81DE
-E28888 81B8
-E2888B 81B9
-E28892 817C
-E2889A 81E3
-E2889D 81E5
-E2889E 8187
-E288A0 81DA
-E288A7 81C8
-E288A8 81C9
-E288A9 81BF
-E288AA 81BE
-E288AB 81E7
-E288AC 81E8
-E288B4 8188
-E288B5 81E6
-E288BD 81E4
-E28992 81E0
-E289A0 8182
-E289A1 81DF
-E289A6 8185
-E289A7 8186
-E289AA 81E1
-E289AB 81E2
-E28A82 81BC
-E28A83 81BD
-E28A86 81BA
-E28A87 81BB
-E28AA5 81DB
-E28C92 81DC
-E29480 849F
-E29481 84AA
-E29482 84A0
-E29483 84AB
-E2948C 84A1
-E2948F 84AC
-E29490 84A2
-E29493 84AD
-E29494 84A4
-E29497 84AF
-E29498 84A3
-E2949B 84AE
-E2949C 84A5
-E2949D 84BA
-E294A0 84B5
-E294A3 84B0
-E294A4 84A7
-E294A5 84BC
-E294A8 84B7
-E294AB 84B2
-E294AC 84A6
-E294AF 84B6
-E294B0 84BB
-E294B3 84B1
-E294B4 84A8
-E294B7 84B8
-E294B8 84BD
-E294BB 84B3
-E294BC 84A9
-E294BF 84B9
-E29582 84BE
-E2958B 84B4
-E296A0 81A1
-E296A1 81A0
-E296B2 81A3
-E296B3 81A2
-E296BC 81A5
-E296BD 81A4
-E29786 819F
-E29787 819E
-E2978B 819B
-E2978E 819D
-E2978F 819C
-E297AF 81FC
-E29885 819A
-E29886 8199
-E29980 818A
-E29982 8189
-E299AA 81F4
-E299AD 81F3
-E299AF 81F2
-E38080 8140
-E38081 8141
-E38082 8142
-E38083 8156
-E38085 8158
-E38086 8159
-E38087 815A
-E38088 8171
-E38089 8172
-E3808A 8173
-E3808B 8174
-E3808C 8175
-E3808D 8176
-E3808E 8177
-E3808F 8178
-E38090 8179
-E38091 817A
-E38092 81A7
-E38093 81AC
-E38094 816B
-E38095 816C
-E3809C 8160
-E38181 829F
-E38182 82A0
-E38183 82A1
-E38184 82A2
-E38185 82A3
-E38186 82A4
-E38187 82A5
-E38188 82A6
-E38189 82A7
-E3818A 82A8
-E3818B 82A9
-E3818C 82AA
-E3818D 82AB
-E3818E 82AC
-E3818F 82AD
-E38190 82AE
-E38191 82AF
-E38192 82B0
-E38193 82B1
-E38194 82B2
-E38195 82B3
-E38196 82B4
-E38197 82B5
-E38198 82B6
-E38199 82B7
-E3819A 82B8
-E3819B 82B9
-E3819C 82BA
-E3819D 82BB
-E3819E 82BC
-E3819F 82BD
-E381A0 82BE
-E381A1 82BF
-E381A2 82C0
-E381A3 82C1
-E381A4 82C2
-E381A5 82C3
-E381A6 82C4
-E381A7 82C5
-E381A8 82C6
-E381A9 82C7
-E381AA 82C8
-E381AB 82C9
-E381AC 82CA
-E381AD 82CB
-E381AE 82CC
-E381AF 82CD
-E381B0 82CE
-E381B1 82CF
-E381B2 82D0
-E381B3 82D1
-E381B4 82D2
-E381B5 82D3
-E381B6 82D4
-E381B7 82D5
-E381B8 82D6
-E381B9 82D7
-E381BA 82D8
-E381BB 82D9
-E381BC 82DA
-E381BD 82DB
-E381BE 82DC
-E381BF 82DD
-E38280 82DE
-E38281 82DF
-E38282 82E0
-E38283 82E1
-E38284 82E2
-E38285 82E3
-E38286 82E4
-E38287 82E5
-E38288 82E6
-E38289 82E7
-E3828A 82E8
-E3828B 82E9
-E3828C 82EA
-E3828D 82EB
-E3828E 82EC
-E3828F 82ED
-E38290 82EE
-E38291 82EF
-E38292 82F0
-E38293 82F1
-E3829B 814A
-E3829C 814B
-E3829D 8154
-E3829E 8155
-E382A1 8340
-E382A2 8341
-E382A3 8342
-E382A4 8343
-E382A5 8344
-E382A6 8345
-E382A7 8346
-E382A8 8347
-E382A9 8348
-E382AA 8349
-E382AB 834A
-E382AC 834B
-E382AD 834C
-E382AE 834D
-E382AF 834E
-E382B0 834F
-E382B1 8350
-E382B2 8351
-E382B3 8352
-E382B4 8353
-E382B5 8354
-E382B6 8355
-E382B7 8356
-E382B8 8357
-E382B9 8358
-E382BA 8359
-E382BB 835A
-E382BC 835B
-E382BD 835C
-E382BE 835D
-E382BF 835E
-E38380 835F
-E38381 8360
-E38382 8361
-E38383 8362
-E38384 8363
-E38385 8364
-E38386 8365
-E38387 8366
-E38388 8367
-E38389 8368
-E3838A 8369
-E3838B 836A
-E3838C 836B
-E3838D 836C
-E3838E 836D
-E3838F 836E
-E38390 836F
-E38391 8370
-E38392 8371
-E38393 8372
-E38394 8373
-E38395 8374
-E38396 8375
-E38397 8376
-E38398 8377
-E38399 8378
-E3839A 8379
-E3839B 837A
-E3839C 837B
-E3839D 837C
-E3839E 837D
-E3839F 837E
-E383A0 8380
-E383A1 8381
-E383A2 8382
-E383A3 8383
-E383A4 8384
-E383A5 8385
-E383A6 8386
-E383A7 8387
-E383A8 8388
-E383A9 8389
-E383AA 838A
-E383AB 838B
-E383AC 838C
-E383AD 838D
-E383AE 838E
-E383AF 838F
-E383B0 8390
-E383B1 8391
-E383B2 8392
-E383B3 8393
-E383B4 8394
-E383B5 8395
-E383B6 8396
-E383BB 8145
-E383BC 815B
-E383BD 8152
-E383BE 8153
-E4B880 88EA
-E4B881 929A
-E4B883 8EB5
-E4B887 969C
-E4B888 8FE4
-E4B889 8E4F
-E4B88A 8FE3
-E4B88B 89BA
-E4B88D 9573
-E4B88E 975E
-E4B890 98A0
-E4B891 894E
-E4B894 8A8E
-E4B895 98A1
-E4B896 90A2
-E4B897 99C0
-E4B898 8B75
-E4B899 95B8
-E4B89E 8FE5
-E4B8A1 97BC
-E4B8A6 95C0
-E4B8AA 98A2
-E4B8AD 9286
-E4B8B1 98A3
-E4B8B2 8BF8
-E4B8B6 98A4
-E4B8B8 8ADB
-E4B8B9 924F
-E4B8BB 8EE5
-E4B8BC 98A5
-E4B8BF 98A6
-E4B982 98A7
-E4B983 9454
-E4B985 8B76
-E4B98B 9456
-E4B98D 93E1
-E4B98E 8CC1
-E4B98F 9652
-E4B995 E568
-E4B996 98A8
-E4B997 8FE6
-E4B998 98A9
-E4B999 89B3
-E4B99D 8BE3
-E4B99E 8CEE
-E4B99F 96E7
-E4B9A2 9BA4
-E4B9B1 9790
-E4B9B3 93FB
-E4B9BE 8AA3
-E4BA80 8B54
-E4BA82 98AA
-E4BA85 98AB
-E4BA86 97B9
-E4BA88 975C
-E4BA89 9188
-E4BA8A 98AD
-E4BA8B 8E96
-E4BA8C 93F1
-E4BA8E 98B0
-E4BA91 895D
-E4BA92 8CDD
-E4BA94 8CDC
-E4BA95 88E4
-E4BA98 986A
-E4BA99 9869
-E4BA9B 8DB1
-E4BA9C 889F
-E4BA9E 98B1
-E4BA9F 98B2
-E4BAA0 98B3
-E4BAA1 9653
-E4BAA2 98B4
-E4BAA4 8CF0
-E4BAA5 88E5
-E4BAA6 9692
-E4BAA8 8B9C
-E4BAAB 8B9D
-E4BAAC 8B9E
-E4BAAD 92E0
-E4BAAE 97BA
-E4BAB0 98B5
-E4BAB3 98B6
-E4BAB6 98B7
-E4BABA 906C
-E4BB80 8F59
-E4BB81 906D
-E4BB82 98BC
-E4BB84 98BA
-E4BB86 98BB
-E4BB87 8B77
-E4BB8A 8DA1
-E4BB8B 89EE
-E4BB8D 98B9
-E4BB8E 98B8
-E4BB8F 95A7
-E4BB94 8E65
-E4BB95 8E64
-E4BB96 91BC
-E4BB97 98BD
-E4BB98 9574
-E4BB99 90E5
-E4BB9D 8157
-E4BB9E 98BE
-E4BB9F 98C0
-E4BBA3 91E3
-E4BBA4 97DF
-E4BBA5 88C8
-E4BBAD 98BF
-E4BBAE 89BC
-E4BBB0 8BC2
-E4BBB2 9287
-E4BBB6 8C8F
-E4BBB7 98C1
-E4BBBB 9443
-E4BC81 8AE9
-E4BC89 98C2
-E4BC8A 88C9
-E4BC8D 8CDE
-E4BC8E 8AEA
-E4BC8F 959A
-E4BC90 94B0
-E4BC91 8B78
-E4BC9A 89EF
-E4BC9C 98E5
-E4BC9D 9360
-E4BCAF 948C
-E4BCB0 98C4
-E4BCB4 94BA
-E4BCB6 97E0
-E4BCB8 904C
-E4BCBA 8E66
-E4BCBC 8E97
-E4BCBD 89BE
-E4BD83 92CF
-E4BD86 9241
-E4BD87 98C8
-E4BD8D 88CA
-E4BD8E 92E1
-E4BD8F 8F5A
-E4BD90 8DB2
-E4BD91 9743
-E4BD93 91CC
-E4BD95 89BD
-E4BD97 98C7
-E4BD99 975D
-E4BD9A 98C3
-E4BD9B 98C5
-E4BD9C 8DEC
-E4BD9D 98C6
-E4BD9E 9B43
-E4BDA9 98CE
-E4BDAF 98D1
-E4BDB0 98CF
-E4BDB3 89C0
-E4BDB5 95B9
-E4BDB6 98C9
-E4BDBB 98CD
-E4BDBC 8CF1
-E4BDBF 8E67
-E4BE83 8AA4
-E4BE86 98D2
-E4BE88 98CA
-E4BE8B 97E1
-E4BE8D 8E98
-E4BE8F 98CB
-E4BE91 98D0
-E4BE96 98D3
-E4BE98 98CC
-E4BE9B 8B9F
-E4BE9D 88CB
-E4BEA0 8BA0
-E4BEA1 89BF
-E4BEAB 9B44
-E4BEAD 9699
-E4BEAE 958E
-E4BEAF 8CF2
-E4BEB5 904E
-E4BEB6 97B5
-E4BEBF 95D6
-E4BF82 8C57
-E4BF83 91A3
-E4BF84 89E2
-E4BF8A 8F72
-E4BF8E 98D7
-E4BF90 98DC
-E4BF91 98DA
-E4BF94 98D5
-E4BF97 91AD
-E4BF98 98D8
-E4BF9A 98DB
-E4BF9B 98D9
-E4BF9D 95DB
-E4BF9F 98D6
-E4BFA1 904D
-E4BFA3 9693
-E4BFA4 98DD
-E4BFA5 98DE
-E4BFAE 8F43
-E4BFAF 98EB
-E4BFB3 946F
-E4BFB5 9555
-E4BFB6 98E6
-E4BFB8 95EE
-E4BFBA 89B4
-E4BFBE 98EA
-E58085 98E4
-E58086 98ED
-E58089 9171
-E5808B 8CC2
-E5808D 947B
-E5808F E0C5
-E58091 98EC
-E58092 937C
-E58094 98E1
-E58096 8CF4
-E58099 8CF3
-E5809A 98DF
-E5809F 8ED8
-E580A1 98E7
-E580A3 95ED
-E580A4 926C
-E580A5 98E3
-E580A6 8C91
-E580A8 98E0
-E580A9 98E8
-E580AA 98E2
-E580AB 97CF
-E580AC 98E9
-E580AD 9860
-E580B6 8BE4
-E580B9 8C90
-E58183 98EE
-E58187 98EF
-E58188 98F3
-E58189 88CC
-E5818F 95CE
-E58190 98F2
-E58195 98F1
-E58196 98F5
-E5819A 98F4
-E5819C 92E2
-E581A5 8C92
-E581AC 98F6
-E581B2 8EC3
-E581B4 91A4
-E581B5 92E3
-E581B6 8BF4
-E581B8 98F7
-E581BD 8B55
-E58280 98F8
-E58285 98FA
-E5828D 9654
-E58291 8C86
-E58298 8E50
-E58299 94F5
-E5829A 98F9
-E582AC 8DC3
-E582AD 9762
-E582B2 98FC
-E582B3 9942
-E582B4 98FB
-E582B5 8DC2
-E582B7 8F9D
-E582BE 8C58
-E58382 9943
-E58385 8BCD
-E58389 9940
-E5838A 9941
-E5838D 93AD
-E5838F 919C
-E58391 8BA1
-E58395 966C
-E58396 9944
-E5839A 97BB
-E5839E 9945
-E583A3 9948
-E583A5 9946
-E583A7 916D
-E583AD 9947
-E583AE 9949
-E583B5 994B
-E583B9 994A
-E583BB 95C6
-E58480 8B56
-E58481 994D
-E58482 994E
-E58484 89AD
-E58489 994C
-E58492 8EF2
-E58494 9951
-E58495 9950
-E58496 994F
-E58498 98D4
-E5849A 9952
-E5849F 8F9E
-E584A1 9953
-E584AA 9744
-E584B2 96D7
-E584B7 9955
-E584BA 9954
-E584BB 9957
-E584BC 9956
-E584BF 9958
-E58580 9959
-E58581 88F2
-E58583 8CB3
-E58584 8C5A
-E58585 8F5B
-E58586 929B
-E58587 8BA2
-E58588 90E6
-E58589 8CF5
-E5858B 8D8E
-E5858C 995B
-E5858D 96C6
-E5858E 9365
-E58590 8E99
-E58592 995A
-E58594 995C
-E5859A 937D
-E5859C 8A95
-E585A2 995D
-E585A5 93FC
-E585A8 9153
-E585A9 995F
-E585AA 9960
-E585AB 94AA
-E585AC 8CF6
-E585AD 985A
-E585AE 9961
-E585B1 8BA4
-E585B5 95BA
-E585B6 91B4
-E585B7 8BEF
-E585B8 9354
-E585BC 8C93
-E58680 9962
-E58682 9963
-E58685 93E0
-E58686 897E
-E58689 9966
-E5868A 8DFB
-E5868C 9965
-E5868D 8DC4
-E5868F 9967
-E58690 E3EC
-E58691 9968
-E58692 9660
-E58693 9969
-E58695 996A
-E58696 996B
-E58697 8FE7
-E58699 8ECA
-E586A0 8AA5
-E586A2 996E
-E586A4 996C
-E586A5 96BB
-E586A6 996D
-E586A8 9579
-E586A9 996F
-E586AA 9970
-E586AB 9971
-E586AC 937E
-E586B0 9975
-E586B1 9973
-E586B2 9974
-E586B3 9972
-E586B4 8DE1
-E586B5 9976
-E586B6 96E8
-E586B7 97E2
-E586BD 9977
-E58784 90A6
-E58785 9978
-E58786 8F79
-E58789 9979
-E5878B 929C
-E5878C 97BD
-E5878D 9380
-E58796 99C3
-E5879B 997A
-E5879C EAA3
-E5879D 8BC3
-E587A0 997B
-E587A1 967D
-E587A6 8F88
-E587A7 91FA
-E587A9 997D
-E587AA 93E2
-E587AD 997E
-E587B0 9980
-E587B1 8A4D
-E587B5 9981
-E587B6 8BA5
-E587B8 93CA
-E587B9 899A
-E587BA 8F6F
-E587BD 949F
-E587BE 9982
-E58880 9381
-E58883 906E
-E58884 9983
-E58886 95AA
-E58887 90D8
-E58888 8AA0
-E5888A 8AA7
-E5888B 9984
-E5888E 9986
-E58891 8C59
-E58894 9985
-E58897 97F1
-E5889D 8F89
-E588A4 94BB
-E588A5 95CA
-E588A7 9987
-E588A9 9798
-E588AA 9988
-E588AE 9989
-E588B0 939E
-E588B3 998A
-E588B6 90A7
-E588B7 8DFC
-E588B8 8C94
-E588B9 998B
-E588BA 8E68
-E588BB 8D8F
-E58983 92E4
-E58984 998D
-E58987 91A5
-E5898A 8DED
-E5898B 998E
-E5898C 998F
-E5898D 914F
-E5898F 998C
-E58994 9991
-E58996 9655
-E5899B 8D84
-E5899E 9990
-E589A3 8C95
-E589A4 8DDC
-E589A5 948D
-E589A9 9994
-E589AA 9992
-E589AF 959B
-E589B0 8FE8
-E589B1 999B
-E589B2 8A84
-E589B3 9995
-E589B4 9993
-E589B5 916E
-E589BD 9997
-E589BF 9996
-E58A83 8A63
-E58A87 8C80
-E58A88 999C
-E58A89 97AB
-E58A8D 9998
-E58A91 999D
-E58A92 999A
-E58A94 9999
-E58A9B 97CD
-E58A9F 8CF7
-E58AA0 89C1
-E58AA3 97F2
-E58AA9 8F95
-E58AAA 9377
-E58AAB 8D85
-E58AAC 99A0
-E58AAD 99A1
-E58AB1 97E3
-E58AB4 984A
-E58AB5 99A3
-E58AB9 8CF8
-E58ABC 99A2
-E58ABE 8A4E
-E58B81 99A4
-E58B83 9675
-E58B85 92BA
-E58B87 9745
-E58B89 95D7
-E58B8D 99A5
-E58B92 E8D3
-E58B95 93AE
-E58B97 99A6
-E58B98 8AA8
-E58B99 96B1
-E58B9D 8F9F
-E58B9E 99A7
-E58B9F 95E5
-E58BA0 99AB
-E58BA2 90A8
-E58BA3 99A8
-E58BA4 8BCE
-E58BA6 99A9
-E58BA7 8AA9
-E58BB2 8C4D
-E58BB3 99AC
-E58BB5 99AD
-E58BB8 99AE
-E58BB9 99AF
-E58BBA 8ED9
-E58BBE 8CF9
-E58BBF 96DC
-E58C81 96E6
-E58C82 93F5
-E58C85 95EF
-E58C86 99B0
-E58C88 99B1
-E58C8D 99B3
-E58C8F 99B5
-E58C90 99B4
-E58C95 99B6
-E58C96 89BB
-E58C97 966B
-E58C99 8DFA
-E58C9A 99B7
-E58C9D 9178
-E58CA0 8FA0
-E58CA1 8BA7
-E58CA3 99B8
-E58CAA 94D9
-E58CAF 99B9
-E58CB1 99BA
-E58CB3 99BB
-E58CB8 99BC
-E58CB9 9543
-E58CBA 8BE6
-E58CBB 88E3
-E58CBF 93BD
-E58D80 99BD
-E58D81 8F5C
-E58D83 90E7
-E58D85 99BF
-E58D86 99BE
-E58D87 8FA1
-E58D88 8CDF
-E58D89 99C1
-E58D8A 94BC
-E58D8D 99C2
-E58D91 94DA
-E58D92 91B2
-E58D93 91EC
-E58D94 8BA6
-E58D97 93EC
-E58D98 9250
-E58D9A 948E
-E58D9C 966D
-E58D9E 99C4
-E58DA0 90E8
-E58DA6 8C54
-E58DA9 99C5
-E58DAE 99C6
-E58DAF 894B
-E58DB0 88F3
-E58DB1 8AEB
-E58DB3 91A6
-E58DB4 8B70
-E58DB5 9791
-E58DB7 99C9
-E58DB8 89B5
-E58DBB 99C8
-E58DBF 8BA8
-E58E82 99CA
-E58E84 96EF
-E58E96 99CB
-E58E98 97D0
-E58E9A 8CFA
-E58E9F 8CB4
-E58EA0 99CC
-E58EA5 99CE
-E58EA6 99CD
-E58EA8 907E
-E58EA9 8958
-E58EAD 897D
-E58EAE 99CF
-E58EB0 99D0
-E58EB3 8CB5
-E58EB6 99D1
-E58EBB 8B8E
-E58F82 8E51
-E58F83 99D2
-E58F88 9694
-E58F89 8DB3
-E58F8A 8B79
-E58F8B 9746
-E58F8C 916F
-E58F8D 94BD
-E58F8E 8EFB
-E58F94 8F66
-E58F96 8EE6
-E58F97 8EF3
-E58F99 8F96
-E58F9B 94BE
-E58F9F 99D5
-E58FA1 8962
-E58FA2 9170
-E58FA3 8CFB
-E58FA4 8CC3
-E58FA5 8BE5
-E58FA8 99D9
-E58FA9 9240
-E58FAA 91FC
-E58FAB 8BA9
-E58FAC 8FA2
-E58FAD 99DA
-E58FAE 99D8
-E58FAF 89C2
-E58FB0 91E4
-E58FB1 8EB6
-E58FB2 8E6A
-E58FB3 8945
-E58FB6 8A90
-E58FB7 8D86
-E58FB8 8E69
-E58FBA 99DB
-E59081 99DC
-E59083 8B68
-E59084 8A65
-E59088 8D87
-E59089 8B67
-E5908A 92DD
-E5908B 8944
-E5908C 93AF
-E5908D 96BC
-E5908E 8D40
-E5908F 9799
-E59090 9366
-E59091 8CFC
-E5909B 8C4E
-E5909D 99E5
-E5909F 8BE1
-E590A0 9669
-E590A6 94DB
-E590A9 99E4
-E590AB 8ADC
-E590AC 99DF
-E590AD 99E0
-E590AE 99E2
-E590B6 99E3
-E590B8 8B7A
-E590B9 9081
-E590BB 95AB
-E590BC 99E1
-E590BD 99DD
-E590BE 8CE1
-E59180 99DE
-E59182 9843
-E59186 95F0
-E59188 92E6
-E59189 8CE0
-E5918A 8D90
-E5918E 99E6
-E59191 93DB
-E5919F 99EA
-E591A8 8EFC
-E591AA 8EF4
-E591B0 99ED
-E591B1 99EB
-E591B3 96A1
-E591B5 99E8
-E591B6 99F1
-E591B7 99EC
-E591BB 99EF
-E591BC 8CC4
-E591BD 96BD
-E59280 99F0
-E59284 99F2
-E59286 99F4
-E5928B 8DEE
-E5928C 9861
-E5928E 99E9
-E5928F 99E7
-E59290 99F3
-E59292 99EE
-E592A2 99F6
-E592A4 9A42
-E592A5 99F8
-E592A8 99FC
-E592AB 9A40
-E592AC 99F9
-E592AF 9A5D
-E592B2 8DE7
-E592B3 8A50
-E592B8 99F7
-E592BC 9A44
-E592BD 88F4
-E592BE 9A43
-E59380 88A3
-E59381 9569
-E59382 9A41
-E59384 99FA
-E59387 99F5
-E59388 99FB
-E59389 8DC6
-E59398 9A45
-E593A1 88F5
-E593A2 9A4E
-E593A5 9A46
-E593A6 9A47
-E593A8 8FA3
-E593A9 9689
-E593AD 9A4C
-E593AE 9A4B
-E593B2 934E
-E593BA 9A4D
-E593BD 9A4A
-E59484 8953
-E59486 8DB4
-E59487 904F
-E5948F 9A48
-E59490 9382
-E59494 9A49
-E59496 88A0
-E594AE 9A53
-E594AF 9742
-E594B1 8FA5
-E594B3 9A59
-E594B8 9A58
-E594B9 9A4F
-E594BE 91C1
-E59580 9A50
-E59584 91ED
-E59585 9A55
-E59586 8FA4
-E5958C 9A52
-E5958F 96E2
-E59593 8C5B
-E59596 9A56
-E59597 9A57
-E5959C 9A54
-E5959D 9A5A
-E595A3 9A51
-E595BB 9A60
-E595BC 9A65
-E595BE 9A61
-E59680 9A5C
-E59683 9A66
-E59684 9150
-E59687 9A68
-E59689 8D41
-E5968A 9A5E
-E5968B 929D
-E59698 9A62
-E59699 9A5B
-E5969A 8AAB
-E5969C 8AEC
-E5969D 8A85
-E5969E 9A63
-E5969F 9A5F
-E596A7 8C96
-E596A8 9A69
-E596A9 9A67
-E596AA 9172
-E596AB 8B69
-E596AC 8BAA
-E596AE 9A64
-E596B0 8BF2
-E596B6 8963
-E59784 9A6D
-E59785 9A6B
-E59787 9AA5
-E59794 9A70
-E5979A 9A6A
-E5979C 9A6E
-E5979F 9A6C
-E597A3 8E6B
-E597A4 9A6F
-E597B7 9A72
-E597B9 9A77
-E597BD 9A75
-E597BE 9A74
-E59886 9251
-E59889 89C3
-E59894 9A71
-E59896 9A73
-E59897 8FA6
-E59898 8952
-E5989B 9A76
-E598A9 89DC
-E598AF 9A82
-E598B1 8FFA
-E598B2 9A7D
-E598B4 9A7B
-E598B6 9A7C
-E598B8 9A7E
-E59982 895C
-E5998C 9158
-E5998E 9A78
-E59990 9A79
-E5999B 8A9A
-E599A4 9A81
-E599A8 8AED
-E599AA 9A84
-E599AB 9A80
-E599AC 9A83
-E599B4 95AC
-E599B8 93D3
-E599BA 94B6
-E59A80 9A86
-E59A86 9A85
-E59A87 8A64
-E59A8A 9A87
-E59A8F 9A8A
-E59A94 9A89
-E59AA0 9A88
-E59AA2 9458
-E59AA5 9A8B
-E59AAE 9A8C
-E59AB4 9A8E
-E59AB6 9A8D
-E59ABC 9A90
-E59B80 9A93
-E59B81 9A91
-E59B82 9A8F
-E59B83 9A92
-E59B88 9A94
-E59B8E 9A95
-E59B91 9A96
-E59B93 9A97
-E59B97 9A98
-E59B98 9964
-E59B9A 8EFA
-E59B9B 8E6C
-E59B9E 89F1
-E59BA0 88F6
-E59BA3 9263
-E59BAE 9A99
-E59BB0 8DA2
-E59BB2 88CD
-E59BB3 907D
-E59BB9 9A9A
-E59BBA 8CC5
-E59BBD 8D91
-E59BBF 9A9C
-E59C80 9A9B
-E59C83 95DE
-E59C84 9A9D
-E59C88 9A9F
-E59C89 9A9E
-E59C8B 9AA0
-E59C8D 9AA1
-E59C8F 8C97
-E59C92 8980
-E59C93 9AA2
-E59C96 9AA4
-E59C98 9AA3
-E59C9C 9AA6
-E59C9F 9379
-E59CA6 9AA7
-E59CA7 88B3
-E59CA8 8DDD
-E59CAD 8C5C
-E59CB0 926E
-E59CB7 9AA8
-E59CB8 9AA9
-E59CBB 9AAB
-E59D80 9AAC
-E59D82 8DE2
-E59D87 8BCF
-E59D8A 9656
-E59D8E 9AAA
-E59D8F 9AAD
-E59D90 8DBF
-E59D91 8D42
-E59DA1 9AB1
-E59DA4 8DA3
-E59DA6 9252
-E59DA9 9AAE
-E59DAA 92D8
-E59DBF 9AB2
-E59E82 9082
-E59E88 9AB0
-E59E89 9AB3
-E59E8B 8C5E
-E59E93 9AB4
-E59EA0 9AB5
-E59EA2 8D43
-E59EA3 8A5F
-E59EA4 9AB7
-E59EAA 9AB8
-E59EB0 9AB9
-E59EB3 9AB6
-E59F80 9AAF
-E59F83 9ABA
-E59F86 9ABB
-E59F8B 9684
-E59F8E 8FE9
-E59F92 9ABD
-E59F93 9ABE
-E59F94 9ABC
-E59F96 9AC0
-E59F9C 9457
-E59F9F 88E6
-E59FA0 9575
-E59FA3 9AC1
-E59FB4 8FFB
-E59FB7 8EB7
-E59FB9 947C
-E59FBA 8AEE
-E59FBC 8DE9
-E5A080 9678
-E5A082 93B0
-E5A085 8C98
-E5A086 91CD
-E5A08A 9ABF
-E5A08B 9AC2
-E5A095 91C2
-E5A099 9AC3
-E5A09D 9AC4
-E5A0A1 9AC6
-E5A0A4 92E7
-E5A0AA 8AAC
-E5A0AF EA9F
-E5A0B0 8981
-E5A0B1 95F1
-E5A0B4 8FEA
-E5A0B5 9367
-E5A0BA 8DE4
-E5A0BD 9ACC
-E5A180 95BB
-E5A181 97DB
-E5A18A 89F2
-E5A18B 9AC8
-E5A191 9159
-E5A192 9ACB
-E5A194 9383
-E5A197 9368
-E5A198 9384
-E5A199 94B7
-E5A19A 92CB
-E5A19E 8DC7
-E5A1A2 9AC7
-E5A1A9 8996
-E5A1AB 9355
-E5A1B0 9AC9
-E5A1B2 9AC5
-E5A1B5 906F
-E5A1B9 9ACD
-E5A1BE 8F6D
-E5A283 8BAB
-E5A285 9ACE
-E5A293 95E6
-E5A297 919D
-E5A29C 92C4
-E5A29F 9AD0
-E5A2A8 966E
-E5A2AB 9AD1
-E5A2AE 9AD6
-E5A2B3 95AD
-E5A2B8 9AD5
-E5A2B9 9ACF
-E5A2BA 9AD2
-E5A2BB 9AD4
-E5A2BE 8DA4
-E5A381 95C7
-E5A385 9AD7
-E5A387 9264
-E5A38A 89F3
-E5A38C 8FEB
-E5A391 9AD9
-E5A393 9AD8
-E5A395 8D88
-E5A397 9ADA
-E5A398 9ADC
-E5A399 9ADB
-E5A39C 9ADE
-E5A39E 9AD3
-E5A39F 9AE0
-E5A3A4 9ADF
-E5A3A5 9ADD
-E5A3AB 8E6D
-E5A3AC 9070
-E5A3AE 9173
-E5A3AF 9AE1
-E5A3B0 90BA
-E5A3B1 88EB
-E5A3B2 9484
-E5A3B7 92D9
-E5A3B9 9AE3
-E5A3BA 9AE2
-E5A3BB 9AE4
-E5A3BC 9AE5
-E5A3BD 9AE6
-E5A482 9AE7
-E5A489 95CF
-E5A48A 9AE8
-E5A48F 89C4
-E5A490 9AE9
-E5A495 975B
-E5A496 8A4F
-E5A498 99C7
-E5A499 8F67
-E5A49A 91BD
-E5A49B 9AEA
-E5A49C 96E9
-E5A4A2 96B2
-E5A4A5 9AEC
-E5A4A7 91E5
-E5A4A9 9356
-E5A4AA 91BE
-E5A4AB 9576
-E5A4AC 9AED
-E5A4AD 9AEE
-E5A4AE 899B
-E5A4B1 8EB8
-E5A4B2 9AEF
-E5A4B7 88CE
-E5A4B8 9AF0
-E5A4BE 9AF1
-E5A584 8982
-E5A587 8AEF
-E5A588 93DE
-E5A589 95F2
-E5A58E 9AF5
-E5A58F 9174
-E5A590 9AF4
-E5A591 8C5F
-E5A594 967A
-E5A595 9AF3
-E5A597 9385
-E5A598 9AF7
-E5A59A 9AF6
-E5A5A0 9AF9
-E5A5A2 9AF8
-E5A5A5 899C
-E5A5A7 9AFA
-E5A5A8 8FA7
-E5A5A9 9AFC
-E5A5AA 9244
-E5A5AC 9AFB
-E5A5AE 95B1
-E5A5B3 8F97
-E5A5B4 937A
-E5A5B8 9B40
-E5A5BD 8D44
-E5A681 9B41
-E5A682 9440
-E5A683 94DC
-E5A684 96CF
-E5A68A 9444
-E5A68D 9B4A
-E5A693 8B57
-E5A696 9764
-E5A699 96AD
-E5A69B 9BAA
-E5A69D 9B42
-E5A6A3 9B45
-E5A6A5 91C3
-E5A6A8 9657
-E5A6AC 9369
-E5A6B2 9B46
-E5A6B9 9685
-E5A6BB 8DC8
-E5A6BE 8FA8
-E5A786 9B47
-E5A789 8E6F
-E5A78B 8E6E
-E5A790 88B7
-E5A791 8CC6
-E5A793 90A9
-E5A794 88CF
-E5A799 9B4B
-E5A79A 9B4C
-E5A79C 9B49
-E5A7A5 8957
-E5A7A6 8AAD
-E5A7A8 9B48
-E5A7AA 96C3
-E5A7AB 9550
-E5A7B6 88A6
-E5A7BB 88F7
-E5A7BF 8E70
-E5A881 88D0
-E5A883 88A1
-E5A889 9B51
-E5A891 9B4F
-E5A898 96BA
-E5A89A 9B52
-E5A89C 9B50
-E5A89F 9B4E
-E5A8A0 9050
-E5A8A5 9B4D
-E5A8A9 95D8
-E5A8AF 8CE2
-E5A8B5 9B56
-E5A8B6 9B57
-E5A8BC 8FA9
-E5A980 9B53
-E5A981 984B
-E5A986 946B
-E5A989 9B55
-E5A99A 8DA5
-E5A9A2 9B58
-E5A9A6 9577
-E5A9AA 9B59
-E5A9AC 9B54
-E5A9BF 96B9
-E5AA92 947D
-E5AA9A 9B5A
-E5AA9B 9551
-E5AABC 9B5B
-E5AABD 9B5F
-E5AABE 9B5C
-E5AB81 89C5
-E5AB82 9B5E
-E5AB89 8EB9
-E5AB8B 9B5D
-E5AB8C 8C99
-E5AB90 9B6B
-E5AB96 9B64
-E5AB97 9B61
-E5ABA1 9284
-E5ABA3 9B60
-E5ABA6 9B62
-E5ABA9 9B63
-E5ABBA 9B65
-E5ABBB 9B66
-E5AC89 8AF0
-E5AC8B 9B68
-E5AC8C 9B67
-E5AC96 9B69
-E5ACA2 8FEC
-E5ACAA 9B6C
-E5ACAC 92DA
-E5ACB0 8964
-E5ACB2 9B6A
-E5ACB6 9B6D
-E5ACBE 9B6E
-E5AD80 9B71
-E5AD83 9B6F
-E5AD85 9B70
-E5AD90 8E71
-E5AD91 9B72
-E5AD94 8D45
-E5AD95 9B73
-E5AD97 8E9A
-E5AD98 91B6
-E5AD9A 9B74
-E5AD9B 9B75
-E5AD9C 8E79
-E5AD9D 8D46
-E5AD9F 96D0
-E5ADA3 8B47
-E5ADA4 8CC7
-E5ADA5 9B76
-E5ADA6 8A77
-E5ADA9 9B77
-E5ADAB 91B7
-E5ADB0 9B78
-E5ADB1 9BA1
-E5ADB3 9B79
-E5ADB5 9B7A
-E5ADB8 9B7B
-E5ADBA 9B7D
-E5AE80 9B7E
-E5AE83 9B80
-E5AE85 91EE
-E5AE87 8946
-E5AE88 8EE7
-E5AE89 88C0
-E5AE8B 9176
-E5AE8C 8AAE
-E5AE8D 8EB3
-E5AE8F 8D47
-E5AE95 9386
-E5AE97 8F40
-E5AE98 8AAF
-E5AE99 9288
-E5AE9A 92E8
-E5AE9B 88B6
-E5AE9C 8B58
-E5AE9D 95F3
-E5AE9F 8EC0
-E5AEA2 8B71
-E5AEA3 90E9
-E5AEA4 8EBA
-E5AEA5 9747
-E5AEA6 9B81
-E5AEAE 8B7B
-E5AEB0 8DC9
-E5AEB3 8A51
-E5AEB4 8983
-E5AEB5 8FAA
-E5AEB6 89C6
-E5AEB8 9B82
-E5AEB9 9765
-E5AEBF 8F68
-E5AF82 8EE2
-E5AF83 9B83
-E5AF84 8AF1
-E5AF85 93D0
-E5AF86 96A7
-E5AF87 9B84
-E5AF89 9B85
-E5AF8C 9578
-E5AF90 9B87
-E5AF92 8AA6
-E5AF93 8BF5
-E5AF94 9B86
-E5AF9B 8AB0
-E5AF9D 9051
-E5AF9E 9B8B
-E5AF9F 8E40
-E5AFA1 89C7
-E5AFA2 9B8A
-E5AFA4 9B88
-E5AFA5 9B8C
-E5AFA6 9B89
-E5AFA7 944A
-E5AFA8 9ECB
-E5AFA9 9052
-E5AFAB 9B8D
-E5AFAE 97BE
-E5AFB0 9B8E
-E5AFB3 9B90
-E5AFB5 929E
-E5AFB6 9B8F
-E5AFB8 90A1
-E5AFBA 8E9B
-E5AFBE 91CE
-E5AFBF 8EF5
-E5B081 9595
-E5B082 90EA
-E5B084 8ECB
-E5B085 9B91
-E5B086 8FAB
-E5B087 9B92
-E5B088 9B93
-E5B089 88D1
-E5B08A 91B8
-E5B08B 9071
-E5B08D 9B94
-E5B08E 93B1
-E5B08F 8FAC
-E5B091 8FAD
-E5B093 9B95
-E5B096 90EB
-E5B09A 8FAE
-E5B0A0 9B96
-E5B0A2 9B97
-E5B0A4 96DE
-E5B0A8 9B98
-E5B0AD 8BC4
-E5B0B1 8F41
-E5B0B8 9B99
-E5B0B9 9B9A
-E5B0BA 8EDA
-E5B0BB 904B
-E5B0BC 93F2
-E5B0BD 9073
-E5B0BE 94F6
-E5B0BF 9441
-E5B180 8BC7
-E5B181 9B9B
-E5B185 8B8F
-E5B186 9B9C
-E5B188 8BFC
-E5B18A 93CD
-E5B18B 89AE
-E5B18D 8E72
-E5B18E 9B9D
-E5B18F 9BA0
-E5B190 9B9F
-E5B191 8BFB
-E5B193 9B9E
-E5B195 9357
-E5B19E 91AE
-E5B1A0 936A
-E5B1A1 8EC6
-E5B1A4 9177
-E5B1A5 979A
-E5B1AC 9BA2
-E5B1AE 9BA3
-E5B1AF 93D4
-E5B1B1 8E52
-E5B1B6 9BA5
-E5B1B9 9BA6
-E5B28C 9BA7
-E5B290 8AF2
-E5B291 9BA8
-E5B294 9BA9
-E5B2A1 89AA
-E5B2A8 915A
-E5B2A9 8AE2
-E5B2AB 9BAB
-E5B2AC 96A6
-E5B2B1 91D0
-E5B2B3 8A78
-E5B2B6 9BAD
-E5B2B7 9BAF
-E5B2B8 8ADD
-E5B2BB 9BAC
-E5B2BC 9BAE
-E5B2BE 9BB1
-E5B385 9BB0
-E5B387 9BB2
-E5B399 9BB3
-E5B3A0 93BB
-E5B3A1 8BAC
-E5B3A8 89E3
-E5B3A9 9BB4
-E5B3AA 9BB9
-E5B3AD 9BB7
-E5B3AF 95F5
-E5B3B0 95F4
-E5B3B6 9387
-E5B3BA 9BB6
-E5B3BB 8F73
-E5B3BD 9BB5
-E5B487 9092
-E5B48B 9BBA
-E5B48E 8DE8
-E5B491 9BC0
-E5B494 9BC1
-E5B495 9BBB
-E5B496 8A52
-E5B497 9BBC
-E5B498 9BC5
-E5B499 9BC4
-E5B49A 9BC3
-E5B49B 9BBF
-E5B49F 9BBE
-E5B4A2 9BC2
-E5B4A9 95F6
-E5B58B 9BC9
-E5B58C 9BC6
-E5B58E 9BC8
-E5B590 9792
-E5B592 9BC7
-E5B59C 9BBD
-E5B5A9 9093
-E5B5AC 9BCA
-E5B5AF 8DB5
-E5B5B3 9BCB
-E5B5B6 9BCC
-E5B682 9BCF
-E5B684 9BCE
-E5B687 9BCD
-E5B68B 9388
-E5B68C 9BB8
-E5B690 9BD5
-E5B69D 9BD1
-E5B6A2 9BD0
-E5B6AC 9BD2
-E5B6AE 9BD3
-E5B6B7 9BD6
-E5B6BA 97E4
-E5B6BC 9BD7
-E5B6BD 9BD4
-E5B789 9BD8
-E5B78C 8ADE
-E5B78D 9BD9
-E5B792 9BDB
-E5B793 9BDA
-E5B796 9BDC
-E5B79B 9BDD
-E5B79D 90EC
-E5B79E 8F42
-E5B7A1 8F84
-E5B7A3 9183
-E5B7A5 8D48
-E5B7A6 8DB6
-E5B7A7 8D49
-E5B7A8 8B90
-E5B7AB 9BDE
-E5B7AE 8DB7
-E5B7B1 8CC8
-E5B7B2 9BDF
-E5B7B3 96A4
-E5B7B4 9462
-E5B7B5 9BE0
-E5B7B7 8D4A
-E5B7BB 8AAA
-E5B7BD 9246
-E5B7BE 8BD0
-E5B882 8E73
-E5B883 957A
-E5B886 94BF
-E5B88B 9BE1
-E5B88C 8AF3
-E5B891 9BE4
-E5B896 929F
-E5B899 9BE3
-E5B89A 9BE2
-E5B89B 9BE5
-E5B89D 92E9
-E5B8A5 9083
-E5B8AB 8E74
-E5B8AD 90C8
-E5B8AF 91D1
-E5B8B0 8B41
-E5B8B3 92A0
-E5B8B6 9BE6
-E5B8B7 9BE7
-E5B8B8 8FED
-E5B8BD 9658
-E5B980 9BEA
-E5B983 9BE9
-E5B984 9BE8
-E5B985 959D
-E5B987 9BF1
-E5B98C 9679
-E5B98E 9BEB
-E5B994 9BED
-E5B995 968B
-E5B997 9BEC
-E5B99F 9BEE
-E5B9A1 94A6
-E5B9A2 9BEF
-E5B9A3 95BC
-E5B9A4 9BF0
-E5B9B2 8AB1
-E5B9B3 95BD
-E5B9B4 944E
-E5B9B5 9BF2
-E5B9B6 9BF3
-E5B9B8 8D4B
-E5B9B9 8AB2
-E5B9BA 9BF4
-E5B9BB 8CB6
-E5B9BC 9763
-E5B9BD 9748
-E5B9BE 8AF4
-E5B9BF 9BF6
-E5BA81 92A1
-E5BA83 8D4C
-E5BA84 8FAF
-E5BA87 94DD
-E5BA8A 8FB0
-E5BA8F 8F98
-E5BA95 92EA
-E5BA96 95F7
-E5BA97 9358
-E5BA9A 8D4D
-E5BA9C 957B
-E5BAA0 9BF7
-E5BAA6 9378
-E5BAA7 8DC0
-E5BAAB 8CC9
-E5BAAD 92EB
-E5BAB5 88C1
-E5BAB6 8F8E
-E5BAB7 8D4E
-E5BAB8 9766
-E5BB81 9BF8
-E5BB82 9BF9
-E5BB83 9470
-E5BB88 9BFA
-E5BB89 97F5
-E5BB8A 984C
-E5BB8F 9BFC
-E5BB90 9BFB
-E5BB93 8A66
-E5BB96 9C40
-E5BB9A 9C43
-E5BB9B 9C44
-E5BB9D 9C42
-E5BB9F 955F
-E5BBA0 8FB1
-E5BBA1 9C46
-E5BBA2 9C45
-E5BBA3 9C41
-E5BBA8 9C47
-E5BBA9 9C48
-E5BBAC 9C49
-E5BBB0 9C4C
-E5BBB1 9C4A
-E5BBB3 9C4B
-E5BBB4 9C4D
-E5BBB6 8984
-E5BBB7 92EC
-E5BBB8 9C4E
-E5BBBA 8C9A
-E5BBBB 89F4
-E5BBBC 9455
-E5BBBE 9C4F
-E5BBBF 93F9
-E5BC81 95D9
-E5BC83 9C50
-E5BC84 984D
-E5BC89 9C51
-E5BC8A 95BE
-E5BC8B 9C54
-E5BC8C 989F
-E5BC8D 98AF
-E5BC8F 8EAE
-E5BC90 93F3
-E5BC91 9C55
-E5BC93 8B7C
-E5BC94 92A2
-E5BC95 88F8
-E5BC96 9C56
-E5BC97 95A4
-E5BC98 8D4F
-E5BC9B 926F
-E5BC9F 92ED
-E5BCA5 96ED
-E5BCA6 8CB7
-E5BCA7 8CCA
-E5BCA9 9C57
-E5BCAD 9C58
-E5BCAF 9C5E
-E5BCB1 8EE3
-E5BCB5 92A3
-E5BCB7 8BAD
-E5BCB8 9C59
-E5BCBC 954A
-E5BCBE 9265
-E5BD81 9C5A
-E5BD88 9C5B
-E5BD8A 8BAE
-E5BD8C 9C5C
-E5BD8E 9C5D
-E5BD91 9C5F
-E5BD93 9396
-E5BD96 9C60
-E5BD97 9C61
-E5BD99 9C62
-E5BD9C 9C53
-E5BD9D 9C52
-E5BDA1 9C63
-E5BDA2 8C60
-E5BDA6 9546
-E5BDA9 8DCA
-E5BDAA 9556
-E5BDAB 92A4
-E5BDAC 956A
-E5BDAD 9C64
-E5BDB0 8FB2
-E5BDB1 8965
-E5BDB3 9C65
-E5BDB7 9C66
-E5BDB9 96F0
-E5BDBC 94DE
-E5BDBF 9C69
-E5BE80 899D
-E5BE81 90AA
-E5BE82 9C68
-E5BE83 9C67
-E5BE84 8C61
-E5BE85 91D2
-E5BE87 9C6D
-E5BE88 9C6B
-E5BE8A 9C6A
-E5BE8B 97A5
-E5BE8C 8CE3
-E5BE90 8F99
-E5BE91 9C6C
-E5BE92 936B
-E5BE93 8F5D
-E5BE97 93BE
-E5BE98 9C70
-E5BE99 9C6F
-E5BE9E 9C6E
-E5BEA0 9C71
-E5BEA1 8CE4
-E5BEA8 9C72
-E5BEA9 959C
-E5BEAA 8F7A
-E5BEAD 9C73
-E5BEAE 94F7
-E5BEB3 93BF
-E5BEB4 92A5
-E5BEB9 934F
-E5BEBC 9C74
-E5BEBD 8B4A
-E5BF83 9053
-E5BF85 954B
-E5BF8C 8AF5
-E5BF8D 9445
-E5BF96 9C75
-E5BF97 8E75
-E5BF98 9659
-E5BF99 965A
-E5BF9C 899E
-E5BF9D 9C7A
-E5BFA0 9289
-E5BFA4 9C77
-E5BFAB 89F5
-E5BFB0 9CAB
-E5BFB1 9C79
-E5BFB5 944F
-E5BFB8 9C78
-E5BFBB 9C76
-E5BFBD 8D9A
-E5BFBF 9C7C
-E6808E 9C83
-E6808F 9C89
-E68090 9C81
-E68092 937B
-E68095 9C86
-E68096 957C
-E68099 9C80
-E6809B 9C85
-E6809C 97E5
-E6809D 8E76
-E680A0 91D3
-E680A1 9C7D
-E680A5 8B7D
-E680A6 9C88
-E680A7 90AB
-E680A8 8985
-E680A9 9C82
-E680AA 89F6
-E680AB 9C87
-E680AF 8BAF
-E680B1 9C84
-E680BA 9C8A
-E68181 9C8C
-E68182 9C96
-E68183 9C94
-E68186 9C91
-E6818A 9C90
-E6818B 97F6
-E6818D 9C92
-E68190 8BB0
-E68192 8D50
-E68195 8F9A
-E68199 9C99
-E6819A 9C8B
-E6819F 9C8F
-E681A0 9C7E
-E681A2 89F8
-E681A3 9C93
-E681A4 9C95
-E681A5 9270
-E681A8 8DA6
-E681A9 89B6
-E681AA 9C8D
-E681AB 9C98
-E681AC 9C97
-E681AD 8BB1
-E681AF 91A7
-E681B0 8A86
-E681B5 8C62
-E681B7 9C8E
-E68281 9C9A
-E68283 9C9D
-E68284 9C9F
-E68289 8EBB
-E6828B 9CA5
-E6828C 92EE
-E6828D 9C9B
-E68292 9CA3
-E68294 89F7
-E68296 9CA1
-E68297 9CA2
-E6829A 9C9E
-E6829B 9CA0
-E6829F 8CE5
-E682A0 9749
-E682A3 8AB3
-E682A6 8978
-E682A7 9CA4
-E682A9 9459
-E682AA 88AB
-E682B2 94DF
-E682B3 9C7B
-E682B4 9CAA
-E682B5 9CAE
-E682B6 96E3
-E682B8 9CA7
-E682BC 9389
-E682BD 9CAC
-E68385 8FEE
-E68386 9CAD
-E68387 93D5
-E68391 9866
-E68393 9CA9
-E68398 9CAF
-E6839A 8D9B
-E6839C 90C9
-E6839F 88D2
-E683A0 9CA8
-E683A1 9CA6
-E683A3 9179
-E683A7 9C9C
-E683A8 8E53
-E683B0 91C4
-E683B1 9CBB
-E683B3 917A
-E683B4 9CB6
-E683B6 9CB3
-E683B7 9CB4
-E683B9 8EE4
-E683BA 9CB7
-E683BB 9CBA
-E68480 9CB5
-E68481 8F44
-E68483 9CB8
-E68486 9CB2
-E68488 96FA
-E68489 96F9
-E6848D 9CBC
-E6848E 9CBD
-E6848F 88D3
-E68495 9CB1
-E6849A 8BF0
-E6849B 88A4
-E6849F 8AB4
-E684A1 9CB9
-E684A7 9CC1
-E684A8 9CC0
-E684AC 9CC5
-E684B4 9CC6
-E684BC 9CC4
-E684BD 9CC7
-E684BE 9CBF
-E684BF 9CC3
-E68582 9CC8
-E68584 9CC9
-E68587 9CBE
-E68588 8E9C
-E6858A 9CC2
-E6858B 91D4
-E6858C 8D51
-E6858D 9CB0
-E6858E 9054
-E68593 9CD6
-E68595 95E7
-E68598 9CCC
-E68599 9CCD
-E6859A 9CCE
-E6859D 9CD5
-E6859F 9CD4
-E685A2 969D
-E685A3 8AB5
-E685A5 9CD2
-E685A7 8C64
-E685A8 8A53
-E685AB 9CCF
-E685AE 97B6
-E685AF 9CD1
-E685B0 88D4
-E685B1 9CD3
-E685B3 9CCA
-E685B4 9CD0
-E685B5 9CD7
-E685B6 8C63
-E685B7 9CCB
-E685BE 977C
-E68682 974A
-E68687 9CDA
-E6868A 9CDE
-E6868E 919E
-E68690 97F7
-E68691 9CDF
-E68694 9CDC
-E68696 9CD9
-E68699 9CD8
-E6869A 9CDD
-E686A4 95AE
-E686A7 93B2
-E686A9 8C65
-E686AB 9CE0
-E686AC 9CDB
-E686AE 9CE1
-E686B2 8C9B
-E686B6 89AF
-E686BA 9CE9
-E686BE 8AB6
-E68783 9CE7
-E68786 9CE8
-E68787 8DA7
-E68788 9CE6
-E68789 9CE4
-E6878A 9CE3
-E6878B 9CEA
-E6878C 9CE2
-E6878D 9CEC
-E68790 89F9
-E687A3 9CEE
-E687A6 9CED
-E687B2 92A6
-E687B4 9CF1
-E687B6 9CEF
-E687B7 9CE5
-E687B8 8C9C
-E687BA 9CF0
-E687BC 9CF4
-E687BD 9CF3
-E687BE 9CF5
-E687BF 9CF2
-E68880 9CF6
-E68888 9CF7
-E68889 9CF8
-E6888A 95E8
-E6888C 9CFA
-E6888D 9CF9
-E6888E 8F5E
-E68890 90AC
-E68891 89E4
-E68892 89FA
-E68894 9CFB
-E68896 88BD
-E6889A 90CA
-E6889B 9CFC
-E6889D E6C1
-E6889E 9D40
-E6889F 8C81
-E688A1 9D41
-E688A6 90ED
-E688AA 9D42
-E688AE 9D43
-E688AF 8B59
-E688B0 9D44
-E688B2 9D45
-E688B3 9D46
-E688B4 91D5
-E688B8 8CCB
-E688BB 96DF
-E688BF 965B
-E68980 8F8A
-E68981 9D47
-E68987 90EE
-E68988 E7BB
-E68989 94E0
-E6898B 8EE8
-E6898D 8DCB
-E6898E 9D48
-E68993 91C5
-E68995 95A5
-E68998 91EF
-E6899B 9D4B
-E6899E 9D49
-E689A0 9D4C
-E689A3 9D4A
-E689A8 9D4D
-E689AE 95AF
-E689B1 88B5
-E689B6 957D
-E689B9 94E1
-E689BC 9D4E
-E689BE 9D51
-E689BF 8FB3
-E68A80 8B5A
-E68A82 9D4F
-E68A83 9D56
-E68A84 8FB4
-E68A89 9D50
-E68A8A 9463
-E68A91 977D
-E68A92 9D52
-E68A93 9D53
-E68A94 9D57
-E68A95 938A
-E68A96 9D54
-E68A97 8D52
-E68A98 90DC
-E68A9B 9D65
-E68A9C 94B2
-E68A9E 91F0
-E68AAB 94E2
-E68AAC 9DAB
-E68AB1 95F8
-E68AB5 92EF
-E68AB9 9695
-E68ABB 9D5A
-E68ABC 899F
-E68ABD 928A
-E68B82 9D63
-E68B85 9253
-E68B86 9D5D
-E68B87 9D64
-E68B88 9D5F
-E68B89 9D66
-E68B8A 9D62
-E68B8C 9D61
-E68B8D 948F
-E68B8F 9D5B
-E68B90 89FB
-E68B91 9D59
-E68B92 8B91
-E68B93 91F1
-E68B94 9D55
-E68B97 9D58
-E68B98 8D53
-E68B99 90D9
-E68B9B 8FB5
-E68B9C 9D60
-E68B9D 9471
-E68BA0 8B92
-E68BA1 8A67
-E68BAC 8A87
-E68BAD 9040
-E68BAE 9D68
-E68BAF 9D6D
-E68BB1 9D69
-E68BB3 8C9D
-E68BB5 9D6E
-E68BB6 8E41
-E68BB7 8D89
-E68BBE 8F45
-E68BBF 9D5C
-E68C81 8E9D
-E68C82 9D6B
-E68C87 8E77
-E68C88 9D6C
-E68C89 88C2
-E68C8C 9D67
-E68C91 92A7
-E68C99 8B93
-E68C9F 8BB2
-E68CA7 9D6A
-E68CA8 88A5
-E68CAB 8DC1
-E68CAF 9055
-E68CBA 92F0
-E68CBD 94D2
-E68CBE 9D70
-E68CBF 917D
-E68D89 91A8
-E68D8C 8E4A
-E68D8D 9D71
-E68D8F 9D73
-E68D90 9D6F
-E68D95 95DF
-E68D97 92BB
-E68D9C 917B
-E68DA7 95F9
-E68DA8 8ECC
-E68DA9 9D80
-E68DAB 9D7E
-E68DAE 9098
-E68DB2 8C9E
-E68DB6 9D78
-E68DB7 8FB7
-E68DBA 93E6
-E68DBB 9450
-E68E80 9D76
-E68E83 917C
-E68E88 8EF6
-E68E89 9D7B
-E68E8C 8FB6
-E68E8E 9D75
-E68E8F 9D7A
-E68E92 9472
-E68E96 9D74
-E68E98 8C40
-E68E9B 8A7C
-E68E9F 9D7C
-E68EA0 97A9
-E68EA1 8DCC
-E68EA2 9254
-E68EA3 9D79
-E68EA5 90DA
-E68EA7 8D54
-E68EA8 9084
-E68EA9 8986
-E68EAA 915B
-E68EAB 9D77
-E68EAC 8B64
-E68EB2 8C66
-E68EB4 92CD
-E68EB5 9D7D
-E68EBB 917E
-E68EBE 9D81
-E68F80 9D83
-E68F83 91B5
-E68F84 9D89
-E68F86 9D84
-E68F89 9D86
-E68F8F 9560
-E68F90 92F1
-E68F92 9D87
-E68F96 974B
-E68F9A 9767
-E68F9B 8AB7
-E68FA1 88AC
-E68FA3 9D85
-E68FA9 9D82
-E68FAE 8AF6
-E68FB4 8987
-E68FB6 9D88
-E68FBA 9768
-E69086 9D8C
-E6908D 91B9
-E6908F 9D93
-E69093 9D8D
-E69096 9D8A
-E69097 9D91
-E6909C 9D72
-E690A6 9D8E
-E690A8 9D92
-E690AC 94C0
-E690AD 938B
-E690B4 9D8B
-E690B6 9D8F
-E690BA 8C67
-E690BE 8DEF
-E69182 90DB
-E6918E 9D97
-E69198 9345
-E691A7 9D94
-E691A9 9680
-E691AF 9D95
-E691B6 9D96
-E691B8 96CC
-E691BA 90A0
-E69283 8C82
-E69288 9D9D
-E69292 8E54
-E69293 9D9A
-E69295 9D99
-E6929A 9451
-E6929E 93B3
-E692A4 9350
-E692A5 9D9B
-E692A9 9D9C
-E692AB 958F
-E692AD 9464
-E692AE 8E42
-E692B0 90EF
-E692B2 966F
-E692B9 8A68
-E692BB 9DA3
-E692BC 9D9E
-E69381 9769
-E69382 9DA5
-E69385 9DA1
-E69387 9DA2
-E6938D 9180
-E69392 9DA0
-E69394 9D5E
-E69398 9DA4
-E6939A 9D9F
-E693A0 9DA9
-E693A1 9DAA
-E693A2 9346
-E693A3 9DAC
-E693A6 8E43
-E693A7 9DA7
-E693AC 8B5B
-E693AF 9DAD
-E693B1 9DA6
-E693B2 9DB1
-E693B4 9DB0
-E693B6 9DAF
-E693BA 9DB2
-E693BD 9DB4
-E693BE 8FEF
-E69480 9DB3
-E69485 9DB7
-E69498 9DB5
-E6949C 9DB6
-E6949D 9D90
-E694A3 9DB9
-E694A4 9DB8
-E694AA 9D98
-E694AB 9DBA
-E694AC 9DAE
-E694AF 8E78
-E694B4 9DBB
-E694B5 9DBC
-E694B6 9DBE
-E694B7 9DBD
-E694B8 9DBF
-E694B9 89FC
-E694BB 8D55
-E694BE 95FA
-E694BF 90AD
-E69585 8CCC
-E69588 9DC1
-E6958D 9DC4
-E6958F 9571
-E69591 8B7E
-E69595 9DC3
-E69596 9DC2
-E69597 9473
-E69598 9DC5
-E69599 8BB3
-E6959D 9DC7
-E6959E 9DC6
-E695A2 8AB8
-E695A3 8E55
-E695A6 93D6
-E695AC 8C68
-E695B0 9094
-E695B2 9DC8
-E695B4 90AE
-E695B5 9347
-E695B7 957E
-E695B8 9DC9
-E69682 9DCA
-E69683 9DCB
-E69687 95B6
-E69688 9B7C
-E69689 90C4
-E6968C 956B
-E6968E 8DD6
-E69690 94E3
-E69691 94C1
-E69697 936C
-E69699 97BF
-E6969B 9DCD
-E6969C 8ECE
-E6969F 9DCE
-E696A1 88B4
-E696A4 8BD2
-E696A5 90CB
-E696A7 9580
-E696AB 9DCF
-E696AC 8E61
-E696AD 9266
-E696AF 8E7A
-E696B0 9056
-E696B7 9DD0
-E696B9 95FB
-E696BC 8997
-E696BD 8E7B
-E69781 9DD3
-E69783 9DD1
-E69784 9DD4
-E69785 97B7
-E69786 9DD2
-E6978B 90F9
-E6978C 9DD5
-E6978F 91B0
-E69792 9DD6
-E69797 8AF8
-E69799 9DD8
-E6979B 9DD7
-E697A0 9DD9
-E697A1 9DDA
-E697A2 8AF9
-E697A5 93FA
-E697A6 9255
-E697A7 8B8C
-E697A8 8E7C
-E697A9 9181
-E697AC 8F7B
-E697AD 88AE
-E697B1 9DDB
-E697BA 89A0
-E697BB 9DDF
-E69882 8D56
-E69883 9DDE
-E69886 8DA9
-E69887 8FB8
-E6988A 9DDD
-E6988C 8FB9
-E6988E 96BE
-E6988F 8DA8
-E69893 88D5
-E69894 90CC
-E6989C 9DE4
-E6989F 90AF
-E698A0 8966
-E698A5 8F74
-E698A7 9686
-E698A8 8DF0
-E698AD 8FBA
-E698AF 90A5
-E698B4 9DE3
-E698B5 9DE1
-E698B6 9DE2
-E698BC 928B
-E698BF 9E45
-E69981 9DE8
-E69982 8E9E
-E69983 8D57
-E69984 9DE6
-E69989 9DE7
-E6998B 9057
-E6998F 9DE5
-E69992 8E4E
-E6999D 9DEA
-E6999E 9DE9
-E6999F 9DEE
-E699A2 9DEF
-E699A4 9DEB
-E699A6 8A41
-E699A7 9DEC
-E699A8 9DED
-E699A9 94D3
-E699AE 9581
-E699AF 8C69
-E699B0 9DF0
-E699B4 90B0
-E699B6 8FBB
-E699BA 9271
-E69A81 8BC5
-E69A83 9DF1
-E69A84 9DF5
-E69A87 89C9
-E69A88 9DF2
-E69A89 9DF4
-E69A8E 9DF3
-E69A91 8F8B
-E69A96 9267
-E69A97 88C3
-E69A98 9DF6
-E69A9D 9DF7
-E69AA2 92A8
-E69AA6 97EF
-E69AAB 8E62
-E69AAE 95E9
-E69AB4 965C
-E69AB8 9E41
-E69AB9 9DF9
-E69ABC 9DFC
-E69ABE 9DFB
-E69B81 9DF8
-E69B84 9E40
-E69B87 93DC
-E69B89 9DFA
-E69B96 9E42
-E69B99 8F8C
-E69B9A 9E43
-E69B9C 976A
-E69B9D 9498
-E69BA0 9E44
-E69BA6 9E46
-E69BA9 9E47
-E69BB0 9E48
-E69BB2 8BC8
-E69BB3 8967
-E69BB4 8D58
-E69BB5 9E49
-E69BB7 9E4A
-E69BB8 8F91
-E69BB9 9182
-E69BBC 99D6
-E69BBD 915D
-E69BBE 915C
-E69BBF 91D6
-E69C80 8DC5
-E69C83 98F0
-E69C88 8C8E
-E69C89 974C
-E69C8B 95FC
-E69C8D 959E
-E69C8F 9E4B
-E69C94 8DF1
-E69C95 92BD
-E69C96 9E4C
-E69C97 984E
-E69C9B 965D
-E69C9D 92A9
-E69C9E 9E4D
-E69C9F 8AFA
-E69CA6 9E4E
-E69CA7 9E4F
-E69CA8 96D8
-E69CAA 96A2
-E69CAB 9696
-E69CAC 967B
-E69CAD 8E44
-E69CAE 9E51
-E69CB1 8EE9
-E69CB4 9670
-E69CB6 9E53
-E69CB7 9E56
-E69CB8 9E55
-E69CBA 8AF7
-E69CBD 8B80
-E69CBF 9E52
-E69D81 9E54
-E69D86 9E57
-E69D89 9099
-E69D8E 979B
-E69D8F 88C7
-E69D90 8DDE
-E69D91 91BA
-E69D93 8EDB
-E69D96 8FF1
-E69D99 9E5A
-E69D9C 936D
-E69D9E 9E58
-E69D9F 91A9
-E69DA0 9E59
-E69DA1 8FF0
-E69DA2 96DB
-E69DA3 9E5B
-E69DA4 9E5C
-E69DA5 9788
-E69DAA 9E61
-E69DAD 8D59
-E69DAF 9474
-E69DB0 9E5E
-E69DB1 938C
-E69DB2 9DDC
-E69DB3 9DE0
-E69DB5 8B6E
-E69DB7 9466
-E69DBC 9E60
-E69DBE 8FBC
-E69DBF 94C2
-E69E85 9E66
-E69E87 94F8
-E69E89 9E5D
-E69E8B 9E63
-E69E8C 9E62
-E69E90 90CD
-E69E95 968D
-E69E97 97D1
-E69E9A 9687
-E69E9C 89CA
-E69E9D 8E7D
-E69EA0 9867
-E69EA1 9E65
-E69EA2 9095
-E69EA6 9E64
-E69EA9 9E5F
-E69EAF 8CCD
-E69EB3 9E6B
-E69EB4 9E69
-E69EB6 89CB
-E69EB7 9E67
-E69EB8 9E6D
-E69EB9 9E73
-E69F81 91C6
-E69F84 95BF
-E69F86 9E75
-E69F8A 9541
-E69F8E 9E74
-E69F8F 9490
-E69F90 965E
-E69F91 8AB9
-E69F93 90F5
-E69F94 8F5F
-E69F98 92D1
-E69F9A 974D
-E69F9D 9E70
-E69F9E 9E6F
-E69FA2 9E71
-E69FA4 9E6E
-E69FA7 9E76
-E69FA9 9E6C
-E69FAC 9E6A
-E69FAE 9E72
-E69FAF 9E68
-E69FB1 928C
-E69FB3 96F6
-E69FB4 8EC4
-E69FB5 8DF2
-E69FBB 8DB8
-E69FBE 968F
-E69FBF 8A60
-E6A082 92CC
-E6A083 93C8
-E6A084 8968
-E6A093 90F0
-E6A096 90B2
-E6A097 8C49
-E6A09E 9E78
-E6A0A1 8D5A
-E6A0A2 8A9C
-E6A0A9 9E7A
-E6A0AA 8A94
-E6A0AB 9E81
-E6A0B2 9E7D
-E6A0B4 90F1
-E6A0B8 8A6A
-E6A0B9 8DAA
-E6A0BC 8A69
-E6A0BD 8DCD
-E6A180 9E7B
-E6A181 8C85
-E6A182 8C6A
-E6A183 938D
-E6A186 9E79
-E6A188 88C4
-E6A18D 9E7C
-E6A18E 9E7E
-E6A190 8BCB
-E6A191 8C4B
-E6A193 8ABA
-E6A194 8B6A
-E6A199 9E82
-E6A19C 8DF7
-E6A19D 9691
-E6A19F 8E56
-E6A1A3 9E83
-E6A1A7 954F
-E6A1B4 9E8F
-E6A1B6 89B1
-E6A1B7 9E84
-E6A1BE 9E95
-E6A1BF 9E85
-E6A281 97C0
-E6A283 9E8C
-E6A285 947E
-E6A28D 9E94
-E6A28F 9E87
-E6A293 88B2
-E6A294 9E89
-E6A297 8D5B
-E6A29B 9E8B
-E6A29D 9E8A
-E6A29F 9E86
-E6A2A0 9E91
-E6A2A2 8FBD
-E6A2A6 9AEB
-E6A2A7 8CE6
-E6A2A8 979C
-E6A2AD 9E88
-E6A2AF 92F2
-E6A2B0 8A42
-E6A2B1 8DAB
-E6A2B3 9E80
-E6A2B5 9E90
-E6A2B6 8A81
-E6A2B9 9E8E
-E6A2BA 9E92
-E6A2BC 938E
-E6A384 8AFC
-E6A386 9EB0
-E6A389 96C7
-E6A38A 9E97
-E6A38B 8AFB
-E6A38D 9E9E
-E6A392 965F
-E6A394 9E9F
-E6A395 9EA1
-E6A397 9EA5
-E6A398 9E99
-E6A39A 9249
-E6A39F 938F
-E6A3A0 9EA9
-E6A3A1 9E9C
-E6A3A3 9EA6
-E6A3A7 9EA0
-E6A3AE 9058
-E6A3AF 9EAA
-E6A3B2 90B1
-E6A3B9 9EA8
-E6A3BA 8ABB
-E6A480 986F
-E6A481 9E96
-E6A484 9EA4
-E6A485 88D6
-E6A488 9E98
-E6A48B 96B8
-E6A48C 9E9D
-E6A48D 9041
-E6A48E 92C5
-E6A48F 9E93
-E6A492 9EA3
-E6A499 909A
-E6A49A 9EAD
-E6A49B 8A91
-E6A49C 8C9F
-E6A4A1 9EAF
-E6A4A2 9E9A
-E6A4A3 9EAE
-E6A4A5 9EA7
-E6A4A6 9E9B
-E6A4A8 9EAB
-E6A4AA 9EAC
-E6A4B0 9EBD
-E6A4B4 93CC
-E6A4B6 9EA2
-E6A4B9 9EB9
-E6A4BD 9EBB
-E6A4BF 92D6
-E6A58A 976B
-E6A593 9596
-E6A594 9EB6
-E6A595 91C8
-E6A599 9EBC
-E6A59A 915E
-E6A59C 9EB3
-E6A59D 9EC0
-E6A59E 9EBF
-E6A5A0 93ED
-E6A5A1 9EBE
-E6A5A2 93E8
-E6A5AA 9EC2
-E6A5AB 9EB5
-E6A5AD 8BC6
-E6A5AE 9EB8
-E6A5AF 8F7C
-E6A5B3 9480
-E6A5B4 9EBA
-E6A5B5 8BC9
-E6A5B7 9EB2
-E6A5B8 9EB4
-E6A5B9 9EB1
-E6A5BC 984F
-E6A5BD 8A79
-E6A5BE 9EB7
-E6A681 9EC1
-E6A682 8A54
-E6A68A 8DE5
-E6A68E 897C
-E6A691 9ED2
-E6A694 9850
-E6A695 9ED5
-E6A69B 9059
-E6A69C 9ED4
-E6A6A0 9ED3
-E6A6A7 9ED0
-E6A6AE 9EC4
-E6A6B1 9EE1
-E6A6B2 9EC3
-E6A6B4 9ED6
-E6A6BB 9ECE
-E6A6BE 9EC9
-E6A6BF 9EC6
-E6A781 9EC7
-E6A783 9ECF
-E6A787 EAA0
-E6A78A 9ECC
-E6A78B 8D5C
-E6A78C 92C6
-E6A78D 9184
-E6A78E 9ECA
-E6A790 9EC5
-E6A793 9EC8
-E6A798 976C
-E6A799 968A
-E6A79D 9ECD
-E6A79E 9ED7
-E6A7A7 9EDF
-E6A7A8 9ED8
-E6A7AB 9EE5
-E6A7AD 9EE3
-E6A7B2 9EDE
-E6A7B9 9EDD
-E6A7BB 92CE
-E6A7BD 9185
-E6A7BF 9EDB
-E6A882 9ED9
-E6A885 9EE0
-E6A88A 9EE6
-E6A88B 94F3
-E6A88C 9EEC
-E6A892 9EE7
-E6A893 9EEA
-E6A894 9EE4
-E6A897 9294
-E6A899 9557
-E6A89B 9EDA
-E6A89E 9EE2
-E6A89F 8FBE
-E6A8A1 96CD
-E6A8A2 9EF6
-E6A8A3 9EE9
-E6A8A9 8CA0
-E6A8AA 89A1
-E6A8AB 8A7E
-E6A8AE 9ED1
-E6A8B5 8FBF
-E6A8B6 9EEE
-E6A8B8 9EF5
-E6A8B9 8EF7
-E6A8BA 8A92
-E6A8BD 924D
-E6A984 9EEB
-E6A987 9EF0
-E6A988 9EF4
-E6A98B 8BB4
-E6A998 8B6B
-E6A999 9EF2
-E6A99F 8B40
-E6A9A1 93C9
-E6A9A2 9EF1
-E6A9A6 9EF3
-E6A9B2 9EED
-E6A9B8 9EEF
-E6A9BF 8A80
-E6AA80 9268
-E6AA84 9EFA
-E6AA8D 9EF8
-E6AA8E 8CE7
-E6AA90 9EF7
-E6AA97 9F40
-E6AA9C 9E77
-E6AAA0 9EF9
-E6AAA2 9EFB
-E6AAA3 9EFC
-E6AAAA 9F4B
-E6AAAC 9F47
-E6AAAE 9E8D
-E6AAB3 9F46
-E6AAB8 9F45
-E6AABB 9F42
-E6AB81 9EE8
-E6AB82 9F44
-E6AB83 9F43
-E6AB91 9F49
-E6AB93 9845
-E6AB9A 9F4C
-E6AB9B 8BF9
-E6AB9E 9F48
-E6AB9F 9F4A
-E6ABA8 94A5
-E6ABAA 9F4D
-E6ABBA 9F51
-E6ABBB 9F4E
-E6AC84 9793
-E6AC85 9F4F
-E6AC8A 9EDC
-E6AC92 9F52
-E6AC96 9F53
-E6AC9D 8954
-E6AC9F 9F55
-E6ACA0 8C87
-E6ACA1 8E9F
-E6ACA3 8BD3
-E6ACA7 89A2
-E6ACB2 977E
-E6ACB7 9F57
-E6ACB8 9F56
-E6ACB9 9F59
-E6ACBA 8B5C
-E6ACBD 8BD4
-E6ACBE 8ABC
-E6AD83 9F5C
-E6AD87 9F5B
-E6AD89 9F5D
-E6AD8C 89CC
-E6AD8E 9256
-E6AD90 9F5E
-E6AD93 8ABD
-E6AD94 9F60
-E6AD99 9F5F
-E6AD9B 9F61
-E6AD9F 9F62
-E6ADA1 9F63
-E6ADA2 8E7E
-E6ADA3 90B3
-E6ADA4 8D9F
-E6ADA6 9590
-E6ADA9 95E0
-E6ADAA 9863
-E6ADAF 8E95
-E6ADB3 8DCE
-E6ADB4 97F0
-E6ADB8 9F64
-E6ADB9 9F65
-E6ADBB 8E80
-E6ADBF 9F66
-E6AE80 9F67
-E6AE83 9F69
-E6AE84 9F68
-E6AE86 9677
-E6AE89 8F7D
-E6AE8A 8EEA
-E6AE8B 8E63
-E6AE8D 9F6A
-E6AE95 9F6C
-E6AE96 9042
-E6AE98 9F6B
-E6AE9E 9F6D
-E6AEA4 9F6E
-E6AEAA 9F6F
-E6AEAB 9F70
-E6AEAF 9F71
-E6AEB1 9F73
-E6AEB2 9F72
-E6AEB3 9F74
-E6AEB4 89A3
-E6AEB5 9269
-E6AEB7 9F75
-E6AEBA 8E45
-E6AEBB 8A6B
-E6AEBC 9F76
-E6AEBF 9361
-E6AF80 9ACA
-E6AF85 8B42
-E6AF86 9F77
-E6AF8B 9F78
-E6AF8D 95EA
-E6AF8E 9688
-E6AF92 93C5
-E6AF93 9F79
-E6AF94 94E4
-E6AF98 94F9
-E6AF9B 96D1
-E6AF9F 9F7A
-E6AFAB 9F7C
-E6AFAC 9F7B
-E6AFAF 9F7E
-E6AFB3 9F7D
-E6B088 9F81
-E6B08F 8E81
-E6B091 96AF
-E6B093 9F82
-E6B094 9F83
-E6B097 8B43
-E6B09B 9F84
-E6B0A3 9F86
-E6B0A4 9F85
-E6B0B4 9085
-E6B0B7 9558
-E6B0B8 8969
-E6B0BE 94C3
-E6B180 92F3
-E6B181 8F60
-E6B182 8B81
-E6B18E 94C4
-E6B190 8EAC
-E6B195 9F88
-E6B197 8ABE
-E6B19A 8998
-E6B19D 93F0
-E6B19E 9F87
-E6B19F 8D5D
-E6B1A0 9272
-E6B1A2 9F89
-E6B1A8 9F91
-E6B1AA 9F8A
-E6B1B0 91BF
-E6B1B2 8B82
-E6B1B3 9F92
-E6B1BA 8C88
-E6B1BD 8B44
-E6B1BE 9F90
-E6B281 9F8E
-E6B282 9F8B
-E6B283 9780
-E6B288 92BE
-E6B28C 93D7
-E6B28D 9F8C
-E6B290 9F94
-E6B292 9F93
-E6B293 8C42
-E6B296 89AB
-E6B299 8DB9
-E6B29A 9F8D
-E6B29B 9F8F
-E6B2A1 9676
-E6B2A2 91F2
-E6B2AB 9697
-E6B2AE 9F9C
-E6B2B1 9F9D
-E6B2B3 89CD
-E6B2B8 95A6
-E6B2B9 96FB
-E6B2BA 9F9F
-E6B2BB 8EA1
-E6B2BC 8FC0
-E6B2BD 9F98
-E6B2BE 9F9E
-E6B2BF 8988
-E6B381 8BB5
-E6B384 9F95
-E6B385 9F9A
-E6B389 90F2
-E6B38A 9491
-E6B38C 94E5
-E6B393 9F97
-E6B395 9640
-E6B397 9F99
-E6B399 9FA2
-E6B39B 9FA0
-E6B39D 9F9B
-E6B3A1 9641
-E6B3A2 9467
-E6B3A3 8B83
-E6B3A5 9344
-E6B3A8 928D
-E6B3AA 9FA3
-E6B3AF 9FA1
-E6B3B0 91D7
-E6B3B1 9F96
-E6B3B3 896A
-E6B48B 976D
-E6B48C 9FAE
-E6B492 9FAD
-E6B497 90F4
-E6B499 9FAA
-E6B49B 978C
-E6B49E 93B4
-E6B49F 9FA4
-E6B4A5 92C3
-E6B4A9 896B
-E6B4AA 8D5E
-E6B4AB 9FA7
-E6B4B2 8F46
-E6B4B3 9FAC
-E6B4B5 9FAB
-E6B4B6 9FA6
-E6B4B8 9FA9
-E6B4BB 8A88
-E6B4BD 9FA8
-E6B4BE 9468
-E6B581 97AC
-E6B584 8FF2
-E6B585 90F3
-E6B599 9FB4
-E6B59A 9FB2
-E6B59C 956C
-E6B5A3 9FAF
-E6B5A4 9FB1
-E6B5A6 8959
-E6B5A9 8D5F
-E6B5AA 9851
-E6B5AC 8A5C
-E6B5AE 9582
-E6B5B4 9781
-E6B5B7 8A43
-E6B5B8 905A
-E6B5B9 9FB3
-E6B685 9FB8
-E6B688 8FC1
-E6B68C 974F
-E6B68E 9FB5
-E6B693 9FB0
-E6B695 9FB6
-E6B699 97DC
-E6B69B 9393
-E6B69C 93C0
-E6B6AF 8A55
-E6B6B2 8974
-E6B6B5 9FBC
-E6B6B8 9FBF
-E6B6BC 97C1
-E6B780 9784
-E6B785 9FC6
-E6B786 9FC0
-E6B787 9FBD
-E6B78B 97D2
-E6B78C 9FC3
-E6B791 8F69
-E6B792 9FC5
-E6B795 9FCA
-E6B798 9391
-E6B799 9FC8
-E6B79E 9FC2
-E6B7A1 9257
-E6B7A4 9FC9
-E6B7A6 9FBE
-E6B7A8 9FC4
-E6B7AA 9FCB
-E6B7AB 88FA
-E6B7AC 9FC1
-E6B7AE 9FCC
-E6B7B1 905B
-E6B7B3 8F7E
-E6B7B5 95A3
-E6B7B7 8DAC
-E6B7B9 9FB9
-E6B7BA 9FC7
-E6B7BB 9359
-E6B885 90B4
-E6B887 8A89
-E6B888 8DCF
-E6B889 8FC2
-E6B88A 9FBB
-E6B88B 8F61
-E6B893 8C6B
-E6B895 9FBA
-E6B899 9FD0
-E6B89A 8F8D
-E6B89B 8CB8
-E6B89D 9FDF
-E6B89F 9FD9
-E6B8A0 8B94
-E6B8A1 936E
-E6B8A3 9FD4
-E6B8A4 9FDD
-E6B8A5 88AD
-E6B8A6 8951
-E6B8A9 89B7
-E6B8AB 9FD6
-E6B8AC 91AA
-E6B8AD 9FCD
-E6B8AE 9FCF
-E6B8AF 8D60
-E6B8B8 9FE0
-E6B8BA 9FDB
-E6B8BE 9FD3
-E6B983 9FDA
-E6B98A 96A9
-E6B98D 9FD8
-E6B98E 9FDC
-E6B996 8CCE
-E6B998 8FC3
-E6B99B 9258
-E6B99F 9FD2
-E6B9A7 974E
-E6B9AB 9FD5
-E6B9AE 9FCE
-E6B9AF 9392
-E6B9B2 9FD1
-E6B9B6 9FD7
-E6B9BE 9870
-E6B9BF 8EBC
-E6BA80 969E
-E6BA82 9FE1
-E6BA8C 94AC
-E6BA8F 9FED
-E6BA90 8CB9
-E6BA96 8F80
-E6BA98 9FE3
-E6BA9C 97AD
-E6BA9D 8D61
-E6BA9F 9FF0
-E6BAA2 88EC
-E6BAA5 9FEE
-E6BAAA 9FE2
-E6BAAF 9FE8
-E6BAB2 9FEA
-E6BAB6 976E
-E6BAB7 9FE5
-E6BABA 934D
-E6BABD 9FE7
-E6BB82 9FEF
-E6BB84 9FE9
-E6BB85 96C5
-E6BB89 9FE4
-E6BB8B 8EA0
-E6BB8C 9FFC
-E6BB91 8A8A
-E6BB93 9FE6
-E6BB94 9FEB
-E6BB95 9FEC
-E6BB9D 91EA
-E6BB9E 91D8
-E6BBAC 9FF4
-E6BBAF 9FFA
-E6BBB2 9FF8
-E6BBB4 9348
-E6BBB7 E042
-E6BBB8 9FF5
-E6BBBE 9FF6
-E6BBBF 9FDE
-E6BC81 8B99
-E6BC82 9559
-E6BC86 8EBD
-E6BC89 8D97
-E6BC8F 9852
-E6BC91 9FF2
-E6BC93 E041
-E6BC94 8989
-E6BC95 9186
-E6BCA0 9499
-E6BCA2 8ABF
-E6BCA3 97F8
-E6BCAB 969F
-E6BCAC 92D0
-E6BCB1 9FF9
-E6BCB2 9FFB
-E6BCB8 9151
-E6BCBE E040
-E6BCBF 9FF7
-E6BD81 9FF1
-E6BD85 8AC1
-E6BD94 8C89
-E6BD98 E04E
-E6BD9B E049
-E6BD9C 90F6
-E6BD9F 8A83
-E6BDA4 8F81
-E6BDA6 E052
-E6BDAD E04B
-E6BDAE 92AA
-E6BDAF E048
-E6BDB0 92D7
-E6BDB4 E06B
-E6BDB8 E045
-E6BDBA E044
-E6BDBC E04D
-E6BE80 E047
-E6BE81 E046
-E6BE82 E04C
-E6BE84 909F
-E6BE86 E043
-E6BE8E E04F
-E6BE91 E050
-E6BE97 8AC0
-E6BEA1 E055
-E6BEA3 E054
-E6BEA4 E056
-E6BEAA E059
-E6BEB1 9362
-E6BEB3 E053
-E6BEB9 E057
-E6BF80 8C83
-E6BF81 91F7
-E6BF82 E051
-E6BF83 945A
-E6BF86 E058
-E6BF94 E05D
-E6BF95 E05B
-E6BF98 E05E
-E6BF9B E061
-E6BF9F E05A
-E6BFA0 8D8A
-E6BFA1 9447
-E6BFA4 9FB7
-E6BFAB 9794
-E6BFAC E05C
-E6BFAE E060
-E6BFAF 91F3
-E6BFB1 E05F
-E6BFB3 E04A
-E6BFB6 E889
-E6BFBA E064
-E6BFBE E068
-E78081 E066
-E78089 E062
-E7808B E063
-E7808F E067
-E78091 E065
-E78095 956D
-E78098 E06D
-E7809A E06A
-E7809B E069
-E7809D E06C
-E7809E 93D2
-E7809F E06E
-E780A6 9295
-E780A7 91EB
-E780AC 90A3
-E780B0 E06F
-E780B2 E071
-E780BE E070
-E7818C 9FF3
-E78191 E072
-E78198 93E5
-E781A3 E073
-E781AB 89CE
-E781AF 9394
-E781B0 8A44
-E781B8 8B84
-E781BC 8EDC
-E781BD 8DD0
-E78289 9846
-E7828A 9086
-E7828E 898A
-E78292 E075
-E78299 E074
-E782AC E078
-E782AD 9259
-E782AE E07B
-E782AF E076
-E782B3 E07A
-E782B8 E079
-E782B9 935F
-E782BA 88D7
-E78388 97F3
-E7838B E07D
-E7838F 8947
-E78399 E080
-E7839D E07E
-E7839F E07C
-E783B1 E077
-E783B9 9642
-E783BD E082
-E78489 E081
-E78494 898B
-E78499 E084
-E7849A 95B0
-E7849C E083
-E784A1 96B3
-E784A6 8FC5
-E784B6 9152
-E784BC 8FC4
-E78589 97F9
-E7858C E08A
-E7858E 90F7
-E78595 E086
-E78596 E08B
-E78599 898C
-E785A2 E089
-E785A4 9481
-E785A5 E085
-E785A6 E088
-E785A7 8FC6
-E785A9 94CF
-E785AC E08C
-E785AE 8ECF
-E785BD 90F8
-E78684 E08F
-E78688 E087
-E7868A 8C46
-E7868F E08D
-E78694 976F
-E78695 E090
-E78699 EAA4
-E7869F 8F6E
-E786A8 E091
-E786AC E092
-E786B1 944D
-E786B9 E094
-E786BE E095
-E78783 9452
-E78788 9395
-E78789 E097
-E7878E E099
-E78790 97D3
-E78792 E096
-E78794 E098
-E78795 898D
-E78797 E093
-E7879F 9A7A
-E787A0 E09A
-E787A5 9187
-E787A6 8E57
-E787A7 E09C
-E787AC E09B
-E787AD 9043
-E787AE 99D7
-E787B5 E09D
-E787B9 E09F
-E787BB E08E
-E787BC E09E
-E787BF E0A0
-E78886 949A
-E7888D E0A1
-E78890 E0A2
-E7889B E0A3
-E788A8 E0A4
-E788AA 92DC
-E788AC E0A6
-E788AD E0A5
-E788B0 E0A7
-E788B2 E0A8
-E788B5 8EDD
-E788B6 9583
-E788BA 96EA
-E788BB E0A9
-E788BC E0AA
-E788BD 9175
-E788BE 8EA2
-E788BF E0AB
-E78980 E0AC
-E78986 E0AD
-E78987 95D0
-E78988 94C5
-E7898B E0AE
-E7898C 9476
-E78992 92AB
-E78998 E0AF
-E78999 89E5
-E7899B 8B8D
-E7899D 96C4
-E7899F 96B4
-E789A1 89B2
-E789A2 9853
-E789A7 9671
-E789A9 95A8
-E789B2 90B5
-E789B4 E0B0
-E789B9 93C1
-E789BD 8CA1
-E789BE E0B1
-E78A80 8DD2
-E78A81 E0B3
-E78A82 E0B2
-E78A87 E0B4
-E78A92 E0B5
-E78A96 E0B6
-E78AA0 8B5D
-E78AA2 E0B7
-E78AA7 E0B8
-E78AAC 8CA2
-E78AAF 94C6
-E78AB2 E0BA
-E78AB6 8FF3
-E78AB9 E0B9
-E78B82 8BB6
-E78B83 E0BB
-E78B84 E0BD
-E78B86 E0BC
-E78B8E E0BE
-E78B90 8CCF
-E78B92 E0BF
-E78B97 8BE7
-E78B99 915F
-E78B9B 8D9D
-E78BA0 E0C1
-E78BA1 E0C2
-E78BA2 E0C0
-E78BA9 8EEB
-E78BAC 93C6
-E78BAD 8BB7
-E78BB7 E0C4
-E78BB8 924B
-E78BB9 E0C3
-E78BBC 9854
-E78BBD 9482
-E78C8A E0C7
-E78C96 E0C9
-E78C97 E0C6
-E78C9B 96D2
-E78C9C E0C8
-E78C9D E0CA
-E78C9F 97C2
-E78CA5 E0CE
-E78CA9 E0CD
-E78CAA 9296
-E78CAB 944C
-E78CAE 8CA3
-E78CAF E0CC
-E78CB4 E0CB
-E78CB6 9750
-E78CB7 9751
-E78CBE E0CF
-E78CBF 898E
-E78D84 8D96
-E78D85 8E82
-E78D8E E0D0
-E78D8F E0D1
-E78D97 E0D3
-E78DA3 8F62
-E78DA8 E0D5
-E78DAA E0D4
-E78DB0 E0D6
-E78DB2 8A6C
-E78DB5 E0D8
-E78DB8 E0D7
-E78DBA E0DA
-E78DBB E0D9
-E78E84 8CBA
-E78E87 97A6
-E78E89 8BCA
-E78E8B 89A4
-E78E96 8BE8
-E78EA9 8ADF
-E78EB2 97E6
-E78EB3 E0DC
-E78EBB E0DE
-E78F80 E0DF
-E78F82 89CF
-E78F88 E0DB
-E78F8A 8E58
-E78F8D 92BF
-E78F8E E0DD
-E78F9E E0E2
-E78FA0 8EEC
-E78FA5 E0E0
-E78FAA 8C5D
-E78FAD 94C7
-E78FAE E0E1
-E78FB1 E0FC
-E78FB8 E0E7
-E78FBE 8CBB
-E79083 8B85
-E79085 E0E4
-E79086 979D
-E79089 97AE
-E790A2 91F4
-E790A5 E0E6
-E790B2 E0E8
-E790B3 97D4
-E790B4 8BD5
-E790B5 94FA
-E790B6 9469
-E790BA E0E9
-E790BF E0EB
-E79181 E0EE
-E79195 E0EA
-E79199 E0ED
-E7919A 8CE8
-E7919B 896C
-E7919C E0EF
-E7919E 9090
-E7919F E0EC
-E791A0 97DA
-E791A3 E0F2
-E791A4 EAA2
-E791A9 E0F0
-E791AA E0F3
-E791AF E0E5
-E791B0 E0F1
-E791B3 8DBA
-E791B6 E0F4
-E791BE E0F5
-E79283 979E
-E7928B E0F6
-E7929E E0F7
-E792A2 E0E3
-E792A7 E0F8
-E792B0 8AC2
-E792BD 8EA3
-E7938A E0F9
-E7938F E0FA
-E79394 E0FB
-E7939C 895A
-E793A0 E140
-E793A2 955A
-E793A3 E141
-E793A6 8AA2
-E793A7 E142
-E793A9 E143
-E793AE E144
-E793B0 E146
-E793B1 E147
-E793B2 E145
-E793B6 9572
-E793B7 E149
-E793B8 E148
-E79483 E14B
-E79484 E14A
-E79485 E14C
-E7948C E14D
-E7948D E14F
-E7948E E14E
-E79491 8D99
-E79493 E151
-E79495 E150
-E79498 8AC3
-E7949A 9072
-E7949C 935B
-E7949E E152
-E7949F 90B6
-E794A3 8E59
-E794A5 8999
-E794A6 E153
-E794A8 9770
-E794AB 95E1
-E794AC E154
-E794B0 9363
-E794B1 9752
-E794B2 8D62
-E794B3 905C
-E794B7 926A
-E794B8 99B2
-E794BA 92AC
-E794BB 89E6
-E794BC E155
-E79584 E156
-E79586 E15B
-E79589 E159
-E7958A E158
-E7958B 9DC0
-E7958C 8A45
-E7958D E157
-E7958F 88D8
-E79591 94A8
-E79594 94C8
-E79599 97AF
-E7959A E15C
-E7959B E15A
-E7959C 927B
-E7959D 90A4
-E795A0 94A9
-E795A2 954C
-E795A4 E15E
-E795A5 97AA
-E795A6 8C6C
-E795A7 E15F
-E795A9 E15D
-E795AA 94D4
-E795AB E160
-E795AD E161
-E795B0 88D9
-E795B3 8FF4
-E795B4 E166
-E795B6 E163
-E795B7 93EB
-E795B8 E162
-E795BF 8B45
-E79682 E169
-E79686 E164
-E79687 E165
-E79689 E168
-E7968A E167
-E7968B 9544
-E7968E 9161
-E7968F 9160
-E79691 8B5E
-E79694 E16A
-E7969A E16B
-E7969D E16C
-E796A3 E16E
-E796A5 E16D
-E796AB 8975
-E796B1 E176
-E796B2 94E6
-E796B3 E170
-E796B5 E172
-E796B8 E174
-E796B9 905D
-E796BC E175
-E796BD E173
-E796BE 8EBE
-E79782 E16F
-E79783 E171
-E79785 9561
-E79787 8FC7
-E7978A E178
-E7978D E177
-E79792 E179
-E79794 8EA4
-E79795 8DAD
-E79798 9397
-E79799 E17A
-E7979B 92C9
-E7979E E17C
-E797A2 979F
-E797A3 E17B
-E797A9 9189
-E797B0 E182
-E797B2 E184
-E797B3 E185
-E797B4 9273
-E797BA E183
-E797BC E180
-E797BE E17D
-E797BF E17E
-E79881 E181
-E79889 E188
-E7988B E186
-E7988D E187
-E7989F E189
-E798A0 E18B
-E798A1 E18C
-E798A2 E18D
-E798A4 E18E
-E798A7 E18A
-E798B0 E190
-E798B4 E18F
-E798BB E191
-E79982 97C3
-E79986 E194
-E79987 E192
-E79988 E193
-E7998C 8AE0
-E79992 96FC
-E79996 95C8
-E79998 E196
-E7999C E195
-E799A1 E197
-E799A2 E198
-E799A7 E19C
-E799A8 E199
-E799A9 E19A
-E799AA E19B
-E799AC E19D
-E799B0 E19E
-E799B2 E19F
-E799B6 E1A0
-E799B8 E1A1
-E799BA 94AD
-E799BB 936F
-E799BC E1A2
-E799BD 9492
-E799BE 9553
-E79A80 E1A3
-E79A83 E1A4
-E79A84 9349
-E79A86 8A46
-E79A87 8D63
-E79A88 E1A5
-E79A8B E1A6
-E79A8E E1A7
-E79A90 8E48
-E79A93 E1A9
-E79A96 E1A8
-E79A99 E1AA
-E79A9A E1AB
-E79AAE 94E7
-E79AB0 E1AC
-E79AB4 E1AD
-E79AB7 EA89
-E79AB8 E1AE
-E79AB9 E1AF
-E79ABA E1B0
-E79ABF 8E4D
-E79B82 E1B1
-E79B83 9475
-E79B86 967E
-E79B88 896D
-E79B8A 8976
-E79B8D E1B2
-E79B92 E1B4
-E79B96 E1B3
-E79B97 9390
-E79B9B 90B7
-E79B9C 9F58
-E79B9E E1B5
-E79B9F 96BF
-E79BA1 E1B6
-E79BA3 8AC4
-E79BA4 94D5
-E79BA5 E1B7
-E79BA7 E1B8
-E79BAA E1B9
-E79BAE 96DA
-E79BB2 96D3
-E79BB4 92BC
-E79BB8 918A
-E79BBB E1BB
-E79BBE 8F82
-E79C81 8FC8
-E79C84 E1BE
-E79C87 E1BD
-E79C88 E1BC
-E79C89 94FB
-E79C8B 8AC5
-E79C8C 8CA7
-E79C9B E1C4
-E79C9E E1C1
-E79C9F 905E
-E79CA0 96B0
-E79CA4 E1C0
-E79CA5 E1C2
-E79CA6 E1C3
-E79CA9 E1BF
-E79CB7 E1C5
-E79CB8 E1C6
-E79CBA 92AD
-E79CBC 8AE1
-E79D80 9285
-E79D87 E1C7
-E79D9A E1C8
-E79D9B E1CB
-E79DA1 9087
-E79DA3 93C2
-E79DA5 E1CC
-E79DA6 9672
-E79DA8 E1C9
-E79DAB E1CA
-E79DB9 E1CF
-E79DBE E1CE
-E79DBF E1CD
-E79E8B E1D1
-E79E8E E1D0
-E79E91 E1D2
-E79E9E E1D4
-E79EA0 E1D3
-E79EA5 95CB
-E79EAC 8F75
-E79EAD 97C4
-E79EB0 E1D5
-E79EB3 93B5
-E79EB6 E1D6
-E79EB9 E1D7
-E79EBB E1DB
-E79EBC E1D9
-E79EBD E1DA
-E79EBF E1D8
-E79F87 E1DC
-E79F8D E1DD
-E79F97 E1DE
-E79F9A E1DF
-E79F9B 96B5
-E79F9C E1E0
-E79FA2 96EE
-E79FA3 E1E1
-E79FA5 926D
-E79FA7 948A
-E79FA9 8BE9
-E79FAD 925A
-E79FAE E1E2
-E79FAF 8BB8
-E79FB3 90CE
-E79FBC E1E3
-E7A082 8DBB
-E7A08C E1E4
-E7A092 E1E5
-E7A094 8CA4
-E7A095 8DD3
-E7A0A0 E1E7
-E7A0A5 9375
-E7A0A6 8DD4
-E7A0A7 8B6D
-E7A0B2 9643
-E7A0B4 946A
-E7A0BA 9376
-E7A0BF 8D7B
-E7A185 E1E9
-E7A19D 8FC9
-E7A1AB 97B0
-E7A1AC 8D64
-E7A1AF 8CA5
-E7A1B2 94A1
-E7A1B4 E1EB
-E7A1BC E1ED
-E7A281 8CE9
-E7A286 E1EC
-E7A287 92F4
-E7A28C E1EF
-E7A28D 8A56
-E7A28E E1EA
-E7A291 94E8
-E7A293 894F
-E7A295 8DEA
-E7A297 9871
-E7A29A E1EE
-E7A2A3 E1F0
-E7A2A7 95C9
-E7A2A9 90D7
-E7A2AA E1F2
-E7A2AF E1F3
-E7A2B5 E1F1
-E7A2BA 8A6D
-E7A2BC E1F9
-E7A2BE E1F8
-E7A381 8EA5
-E7A385 E1FA
-E7A386 E1F5
-E7A38A E1FB
-E7A38B E1F6
-E7A390 94D6
-E7A391 E1F4
-E7A394 E1F7
-E7A39A E241
-E7A3A7 E240
-E7A3A8 9681
-E7A3AC E1FC
-E7A3AF 88E9
-E7A3B4 E243
-E7A3BD E242
-E7A481 8FCA
-E7A487 E244
-E7A48E 9162
-E7A491 E246
-E7A492 E245
-E7A499 E247
-E7A4A6 E1E6
-E7A4AA E1E8
-E7A4AB E249
-E7A4AC E248
-E7A4BA 8EA6
-E7A4BC 97E7
-E7A4BE 8ED0
-E7A580 E24A
-E7A581 8C56
-E7A587 8B5F
-E7A588 8B46
-E7A589 8E83
-E7A590 9753
-E7A593 E250
-E7A595 E24F
-E7A596 9163
-E7A597 E24C
-E7A59A E24E
-E7A59D 8F6A
-E7A59E 905F
-E7A59F E24D
-E7A5A0 E24B
-E7A5A2 9449
-E7A5A5 8FCB
-E7A5A8 955B
-E7A5AD 8DD5
-E7A5B7 9398
-E7A5BA E251
-E7A5BF E252
-E7A680 E268
-E7A681 8BD6
-E7A684 985C
-E7A685 9154
-E7A68A E253
-E7A68D 89D0
-E7A68E 92F5
-E7A68F 959F
-E7A69D E254
-E7A6A6 8B9A
-E7A6A7 E255
-E7A6AA E257
-E7A6AE E258
-E7A6B0 9448
-E7A6B3 E259
-E7A6B9 E25A
-E7A6BA E25B
-E7A6BD 8BD7
-E7A6BE 89D1
-E7A6BF 93C3
-E7A780 8F47
-E7A781 8E84
-E7A789 E25C
-E7A78B 8F48
-E7A791 89C8
-E7A792 9562
-E7A795 E25D
-E7A798 94E9
-E7A79F 9164
-E7A7A1 E260
-E7A7A3 E261
-E7A7A4 9489
-E7A7A6 9060
-E7A7A7 E25E
-E7A7A9 9281
-E7A7AC E25F
-E7A7B0 8FCC
-E7A7BB 88DA
-E7A880 8B48
-E7A888 E262
-E7A88B 92F6
-E7A88D E263
-E7A88E 90C5
-E7A894 96AB
-E7A897 9542
-E7A898 E264
-E7A899 E265
-E7A89A 9274
-E7A89C 97C5
-E7A89F E267
-E7A8A0 E266
-E7A8AE 8EED
-E7A8B1 E269
-E7A8B2 88EE
-E7A8B7 E26C
-E7A8BB E26A
-E7A8BC 89D2
-E7A8BD 8C6D
-E7A8BE E26B
-E7A8BF 8D65
-E7A980 8D92
-E7A982 95E4
-E7A983 E26D
-E7A986 9673
-E7A989 E26F
-E7A98D 90CF
-E7A98E 896E
-E7A98F 89B8
-E7A990 88AA
-E7A997 E26E
-E7A9A1 E270
-E7A9A2 E271
-E7A9A3 8FF5
-E7A9A9 E272
-E7A9AB 8A6E
-E7A9B0 E274
-E7A9B4 8C8A
-E7A9B6 8B86
-E7A9B9 E275
-E7A9BA 8BF3
-E7A9BD E276
-E7A9BF 90FA
-E7AA81 93CB
-E7AA83 90DE
-E7AA84 8DF3
-E7AA88 E277
-E7AA92 9282
-E7AA93 918B
-E7AA95 E279
-E7AA96 E27B
-E7AA97 E278
-E7AA98 E27A
-E7AA9F 8C41
-E7AAA9 E27C
-E7AAAA 8C45
-E7AAAE 8B87
-E7AAAF 9771
-E7AAB0 E27E
-E7AAB6 E280
-E7AABA 894D
-E7AABF E283
-E7AB83 8A96
-E7AB84 E282
-E7AB85 E281
-E7AB87 E285
-E7AB88 E27D
-E7AB8A E286
-E7AB8B 97A7
-E7AB8D E287
-E7AB8F E288
-E7AB92 9AF2
-E7AB93 E28A
-E7AB95 E289
-E7AB99 E28B
-E7AB9A E28C
-E7AB9C 97B3
-E7AB9D E28D
-E7AB9F E8ED
-E7ABA0 8FCD
-E7ABA1 E28E
-E7ABA2 E28F
-E7ABA3 8F76
-E7ABA5 93B6
-E7ABA6 E290
-E7ABAA 9247
-E7ABAD E291
-E7ABAF 925B
-E7ABB0 E292
-E7ABB6 8BA3
-E7ABB8 995E
-E7ABB9 927C
-E7ABBA 8EB1
-E7ABBF 8AC6
-E7AC82 E293
-E7AC84 E2A0
-E7AC86 E296
-E7AC88 8B88
-E7AC8A E295
-E7AC8B E2A2
-E7AC8F E294
-E7AC91 8FCE
-E7AC98 E298
-E7AC99 E299
-E7AC9B 934A
-E7AC9E E29A
-E7ACA0 8A7D
-E7ACA5 9079
-E7ACA6 9584
-E7ACA8 E29C
-E7ACAC 91E6
-E7ACB3 E297
-E7ACB5 E29B
-E7ACB6 E29D
-E7ACB9 8DF9
-E7AD85 E2A4
-E7AD86 954D
-E7AD88 94A4
-E7AD89 9399
-E7AD8B 8BD8
-E7AD8C E2A3
-E7AD8D E2A1
-E7AD8F 94B3
-E7AD90 E29E
-E7AD91 927D
-E7AD92 939B
-E7AD94 939A
-E7AD96 8DF4
-E7AD9D E2B6
-E7ADA5 E2A6
-E7ADA7 E2A8
-E7ADAC E2AB
-E7ADAE E2AC
-E7ADB0 E2A9
-E7ADB1 E2AA
-E7ADB4 E2A7
-E7ADB5 E2A5
-E7ADBA E29F
-E7AE86 95CD
-E7AE87 89D3
-E7AE8B E2B3
-E7AE8D E2B0
-E7AE8F E2B5
-E7AE92 E2B4
-E7AE94 9493
-E7AE95 96A5
-E7AE97 8E5A
-E7AE98 E2AE
-E7AE99 E2B7
-E7AE9A E2B2
-E7AE9C E2B1
-E7AE9D E2AD
-E7AE9F E2AF
-E7AEA1 8AC7
-E7AEAA 925C
-E7AEAD 90FB
-E7AEB1 94A0
-E7AEB4 E2BC
-E7AEB8 94A2
-E7AF80 90DF
-E7AF81 E2B9
-E7AF84 94CD
-E7AF86 E2BD
-E7AF87 95D1
-E7AF89 927A
-E7AF8B E2B8
-E7AF8C E2BA
-E7AF8F E2BB
-E7AF9D E2BE
-E7AFA0 8EC2
-E7AFA4 93C4
-E7AFA5 E2C3
-E7AFA6 E2C2
-E7AFA9 E2BF
-E7AFAD 9855
-E7AFB3 E2C8
-E7AFB6 E2CC
-E7AFB7 E2C9
-E7B080 E2C5
-E7B087 E2C6
-E7B08D E2CB
-E7B091 E2C0
-E7B092 99D3
-E7B093 E2C7
-E7B094 E2C1
-E7B097 E2CA
-E7B09F E2D0
-E7B0A1 8AC8
-E7B0A3 E2CD
-E7B0A7 E2CE
-E7B0AA E2CF
-E7B0AB E2D2
-E7B0B7 E2D1
-E7B0B8 94F4
-E7B0BD E2D3
-E7B0BE 97FA
-E7B0BF 95EB
-E7B180 E2D8
-E7B183 E2D5
-E7B18C E2D4
-E7B18D 90D0
-E7B18F E2D7
-E7B190 E2D9
-E7B194 E2D6
-E7B196 E2DD
-E7B198 E2DA
-E7B19F E2DB
-E7B1A0 E2C4
-E7B1A4 E2DC
-E7B1A5 E2DE
-E7B1AC E2DF
-E7B1B3 95C4
-E7B1B5 E2E0
-E7B1BE 96E0
-E7B281 8BCC
-E7B282 8C48
-E7B283 E2E1
-E7B289 95B2
-E7B28B 9088
-E7B28D 96AE
-E7B290 E2E2
-E7B292 97B1
-E7B295 9494
-E7B297 9165
-E7B298 9453
-E7B29B 8F6C
-E7B29F 88BE
-E7B2A1 E2E7
-E7B2A2 E2E5
-E7B2A4 E2E3
-E7B2A5 8A9F
-E7B2A7 8FCF
-E7B2A8 E2E8
-E7B2AB E2E6
-E7B2AD E2E4
-E7B2AE E2EC
-E7B2B1 E2EB
-E7B2B2 E2EA
-E7B2B3 E2E9
-E7B2B9 E2ED
-E7B2BD E2EE
-E7B2BE 90B8
-E7B380 E2EF
-E7B382 E2F1
-E7B385 E2F0
-E7B38A 8CD0
-E7B38E 9157
-E7B392 E2F3
-E7B396 939C
-E7B398 E2F2
-E7B39C E2F4
-E7B39E 95B3
-E7B39F 918C
-E7B3A0 8D66
-E7B3A2 E2F5
-E7B3A7 97C6
-E7B3AF E2F7
-E7B3B2 E2F8
-E7B3B4 E2F9
-E7B3B6 E2FA
-E7B3B8 8E85
-E7B3BA E2FB
-E7B3BB 8C6E
-E7B3BE 8B8A
-E7B480 8B49
-E7B482 E340
-E7B484 96F1
-E7B485 8D67
-E7B486 E2FC
-E7B48A E343
-E7B48B 96E4
-E7B48D 945B
-E7B490 9552
-E7B494 8F83
-E7B495 E342
-E7B497 8ED1
-E7B498 8D68
-E7B499 8E86
-E7B49A 8B89
-E7B49B 95B4
-E7B49C E341
-E7B4A0 9166
-E7B4A1 9661
-E7B4A2 8DF5
-E7B4AB 8E87
-E7B4AC 92DB
-E7B4AE E346
-E7B4AF 97DD
-E7B4B0 8DD7
-E7B4B2 E347
-E7B4B3 9061
-E7B4B5 E349
-E7B4B9 8FD0
-E7B4BA 8DAE
-E7B4BF E348
-E7B582 8F49
-E7B583 8CBC
-E7B584 9167
-E7B585 E344
-E7B586 E34A
-E7B58B E345
-E7B58C 8C6F
-E7B58E E34D
-E7B58F E351
-E7B590 8C8B
-E7B596 E34C
-E7B59B E355
-E7B59E 8D69
-E7B5A1 978D
-E7B5A2 88BA
-E7B5A3 E352
-E7B5A6 8B8B
-E7B5A8 E34F
-E7B5AE E350
-E7B5B1 939D
-E7B5B2 E34E
-E7B5B3 E34B
-E7B5B5 8A47
-E7B5B6 90E2
-E7B5B9 8CA6
-E7B5BD E357
-E7B689 E354
-E7B68F E356
-E7B693 E353
-E7B699 8C70
-E7B69A 91B1
-E7B69B E358
-E7B69C 918E
-E7B69F E365
-E7B6A2 E361
-E7B6A3 E35B
-E7B6AB E35F
-E7B6AC 8EF8
-E7B6AD 88DB
-E7B6AE E35A
-E7B6AF E362
-E7B6B0 E366
-E7B6B1 8D6A
-E7B6B2 96D4
-E7B6B4 92D4
-E7B6B5 E35C
-E7B6B8 E364
-E7B6BA E359
-E7B6BB 925D
-E7B6BD E35E
-E7B6BE 88BB
-E7B6BF 96C8
-E7B787 E35D
-E7B78A 8BD9
-E7B78B 94EA
-E7B78F 918D
-E7B791 97CE
-E7B792 8F8F
-E7B795 E38E
-E7B798 E367
-E7B79A 90FC
-E7B79C E363
-E7B79D E368
-E7B79E E36A
-E7B7A0 92F7
-E7B7A1 E36D
-E7B7A4 E369
-E7B7A8 95D2
-E7B7A9 8AC9
-E7B7AC 96C9
-E7B7AF 88DC
-E7B7B2 E36C
-E7B7B4 97FB
-E7B7BB E36B
-E7B881 898F
-E7B884 93EA
-E7B885 E36E
-E7B889 E375
-E7B88A E36F
-E7B88B E376
-E7B892 E372
-E7B89B 949B
-E7B89E 8EC8
-E7B89F E374
-E7B8A1 E371
-E7B8A2 E377
-E7B8A3 E370
-E7B8A6 8F63
-E7B8AB 9644
-E7B8AE 8F6B
-E7B8B1 E373
-E7B8B2 E380
-E7B8B5 E37B
-E7B8B7 E37E
-E7B8B9 E37C
-E7B8BA E381
-E7B8BB E37A
-E7B8BD E360
-E7B8BE 90D1
-E7B981 94C9
-E7B983 E37D
-E7B986 E378
-E7B98A 9140
-E7B98B 8C71
-E7B98D 8F4A
-E7B994 9044
-E7B995 9155
-E7B996 E384
-E7B999 E386
-E7B99A E387
-E7B99D E383
-E7B99E E385
-E7B9A6 E379
-E7B9A7 E382
-E7B9A9 E38A
-E7B9AA E389
-E7B9AD 969A
-E7B9B0 8C4A
-E7B9B9 E388
-E7B9BB E38C
-E7B9BC E38B
-E7B9BD E38F
-E7B9BF E391
-E7BA82 8E5B
-E7BA83 E38D
-E7BA88 E392
-E7BA89 E393
-E7BA8C E394
-E7BA8E E39A
-E7BA8F 935A
-E7BA90 E396
-E7BA92 E395
-E7BA93 E397
-E7BA94 E398
-E7BA96 E399
-E7BA9B E39B
-E7BA9C E39C
-E7BCB6 8ACA
-E7BCB8 E39D
-E7BCBA E39E
-E7BD85 E39F
-E7BD8C E3A0
-E7BD8D E3A1
-E7BD8E E3A2
-E7BD90 E3A3
-E7BD91 E3A4
-E7BD94 E3A6
-E7BD95 E3A5
-E7BD98 E3A7
-E7BD9F E3A8
-E7BDA0 E3A9
-E7BDA7 E3AC
-E7BDA8 E3AA
-E7BDA9 E3AB
-E7BDAA 8DDF
-E7BDAB 8C72
-E7BDAE 9275
-E7BDB0 94B1
-E7BDB2 8F90
-E7BDB5 946C
-E7BDB7 94EB
-E7BDB8 E3AD
-E7BDB9 9CEB
-E7BE82 E3AE
-E7BE83 E3B0
-E7BE85 9785
-E7BE86 E3AF
-E7BE87 E3B2
-E7BE88 E3B1
-E7BE8A 9772
-E7BE8C E3B3
-E7BE8E 94FC
-E7BE94 E3B4
-E7BE9A E3B7
-E7BE9D E3B6
-E7BE9E E3B5
-E7BEA3 E3B8
-E7BEA4 8C51
-E7BEA8 9141
-E7BEA9 8B60
-E7BEAE E3BC
-E7BEAF E3B9
-E7BEB2 E3BA
-E7BEB6 E3BD
-E7BEB8 E3BE
-E7BEB9 E3BB
-E7BEBD 8948
-E7BF81 89A5
-E7BF85 E3C0
-E7BF86 E3C1
-E7BF8A E3C2
-E7BF8C 9782
-E7BF92 8F4B
-E7BF94 E3C4
-E7BF95 E3C3
-E7BFA0 9089
-E7BFA1 E3C5
-E7BFA6 E3C6
-E7BFA9 E3C7
-E7BFAB 8AE3
-E7BFB0 8ACB
-E7BFB3 E3C8
-E7BFB9 E3C9
-E7BFBB 967C
-E7BFBC 9783
-E88080 9773
-E88081 9856
-E88083 8D6C
-E88084 E3CC
-E88085 8ED2
-E88086 E3CB
-E8808B E3CD
-E8808C 8EA7
-E88090 91CF
-E88092 E3CE
-E88095 8D6B
-E88097 96D5
-E88098 E3CF
-E88099 E3D0
-E8809C E3D1
-E880A1 E3D2
-E880A8 E3D3
-E880B3 8EA8
-E880B6 96EB
-E880BB E3D5
-E880BD 925E
-E880BF E3D4
-E88186 E3D7
-E8818A E3D6
-E88192 E3D8
-E88196 90B9
-E88198 E3D9
-E8819A E3DA
-E8819E 95B7
-E8819F E3DB
-E881A1 918F
-E881A2 E3DC
-E881A8 E3DD
-E881AF 97FC
-E881B0 E3E0
-E881B2 E3DF
-E881B3 E3DE
-E881B4 92AE
-E881B6 E3E1
-E881B7 9045
-E881B9 E3E2
-E881BD E3E3
-E881BE 9857
-E881BF E3E4
-E88284 E3E5
-E88285 E3E7
-E88286 E3E6
-E88287 94A3
-E88289 93F7
-E8828B 985D
-E8828C 94A7
-E88293 E3E9
-E88296 8FD1
-E88298 9549
-E8829A E3EA
-E8829B E3E8
-E8829D 8ACC
-E882A1 8CD2
-E882A2 8E88
-E882A5 94EC
-E882A9 8CA8
-E882AA 9662
-E882AC E3ED
-E882AD E3EB
-E882AF 8D6D
-E882B1 8D6E
-E882B2 88E7
-E882B4 8DE6
-E882BA 9478
-E88383 88DD
-E88384 E3F2
-E88386 925F
-E8838C 9477
-E8838E 91D9
-E88396 E3F4
-E88399 E3F0
-E8839A E3F3
-E8839B E3EE
-E8839D E3F1
-E8839E 9645
-E883A1 8CD3
-E883A4 88FB
-E883A5 E3EF
-E883AF E3F6
-E883B1 E3F7
-E883B4 93B7
-E883B8 8BB9
-E883BC E445
-E883BD 945C
-E88482 8E89
-E88485 8BBA
-E88486 90C6
-E88487 9865
-E88488 96AC
-E88489 E3F5
-E8848A 90D2
-E8849A 8B72
-E8849B E3F8
-E884A3 E3FA
-E884A9 E3F9
-E884AF E3FB
-E884B1 9245
-E884B3 945D
-E884B9 92AF
-E884BE E442
-E88586 E441
-E8858B E3FC
-E8858E 9074
-E88590 9585
-E88591 E444
-E88593 E443
-E88594 8D6F
-E88595 9872
-E8859F E454
-E885A5 E448
-E885A6 E449
-E885AB 8EEE
-E885AE E447
-E885B0 8D98
-E885B1 E446
-E885B4 E44A
-E885B8 92B0
-E885B9 95A0
-E885BA 9142
-E885BF 91DA
-E88680 E44E
-E88682 E44F
-E88683 E44B
-E88688 E44C
-E8868A E44D
-E8868F 8D70
-E88693 E455
-E88695 E451
-E8869A 9586
-E8869C 968C
-E8869D 9547
-E886A0 E450
-E886A3 E453
-E886A4 E452
-E886A8 9663
-E886A9 E456
-E886B0 E457
-E886B3 9156
-E886B5 E458
-E886B8 E45A
-E886BA E45E
-E886BD E45B
-E886BE E459
-E886BF 945E
-E88780 E45C
-E88782 E45D
-E88786 89B0
-E88788 E464
-E88789 E45F
-E8878D E460
-E88791 E461
-E88793 919F
-E88798 E463
-E88799 E462
-E8879A E465
-E8879F E466
-E887A0 E467
-E887A3 9062
-E887A5 89E7
-E887A7 E468
-E887A8 97D5
-E887AA 8EA9
-E887AD 8F4C
-E887B3 8E8A
-E887B4 9276
-E887BA E469
-E887BB E46A
-E887BC 8950
-E887BE E46B
-E88881 E46C
-E88882 E46D
-E88885 E46E
-E88887 E46F
-E88888 8BBB
-E88889 9DA8
-E8888A E470
-E8888C 90E3
-E8888D E471
-E8888E 8EC9
-E88890 E472
-E88892 98AE
-E88896 E473
-E88897 95DC
-E88898 8ADA
-E8889B 9143
-E8889C 8F77
-E8889E 9591
-E8889F 8F4D
-E888A9 E474
-E888AA 8D71
-E888AB E475
-E888AC 94CA
-E888AE E484
-E888B3 E477
-E888B5 91C7
-E888B6 9495
-E888B7 8CBD
-E888B8 E476
-E888B9 9144
-E88980 E478
-E88987 92F8
-E88998 E47A
-E88999 E479
-E8899A E47C
-E8899D E47B
-E8899F E47D
-E889A2 E480
-E889A4 E47E
-E889A6 8ACD
-E889A8 E481
-E889AA E482
-E889AB E483
-E889AE 8DAF
-E889AF 97C7
-E889B1 E485
-E889B2 9046
-E889B6 8990
-E889B7 E486
-E889B8 E487
-E889BE E488
-E88A8B 88F0
-E88A8D E489
-E88A92 E48A
-E88A99 9587
-E88A9D 8EC5
-E88A9F E48C
-E88AA5 8A48
-E88AA6 88B0
-E88AAB E48B
-E88AAC E48E
-E88AAD 946D
-E88AAF 9063
-E88AB1 89D4
-E88AB3 9646
-E88AB8 8C7C
-E88AB9 8BDA
-E88ABB E48D
-E88ABD 89E8
-E88B85 8AA1
-E88B91 8991
-E88B92 E492
-E88B93 97E8
-E88B94 91DB
-E88B97 9563
-E88B99 E49E
-E88B9B 89D5
-E88B9C E49C
-E88B9E E49A
-E88B9F E491
-E88BA1 E48F
-E88BA3 E490
-E88BA5 8EE1
-E88BA6 8BEA
-E88BA7 9297
-E88BAB 93CF
-E88BB1 8970
-E88BB3 E494
-E88BB4 E493
-E88BB9 E499
-E88BBA E495
-E88BBB E498
-E88C82 96CE
-E88C83 E497
-E88C84 89D6
-E88C85 8A9D
-E88C86 E49B
-E88C89 E49D
-E88C8E 8C73
-E88C96 E4A1
-E88C97 E4AA
-E88C98 E4AB
-E88C9C 88A9
-E88CA3 E4B2
-E88CA8 88EF
-E88CAB E4A9
-E88CAF E4A8
-E88CB1 E4A3
-E88CB2 E4A2
-E88CB4 E4A0
-E88CB5 E49F
-E88CB6 9283
-E88CB8 91F9
-E88CB9 E4A5
-E88D80 E4A4
-E88D85 E4A7
-E88D89 9190
-E88D8A 8C74
-E88D8F 8960
-E88D90 E4A6
-E88D92 8D72
-E88D98 9191
-E88DB3 E4B8
-E88DB5 E4B9
-E88DB7 89D7
-E88DBB 89AC
-E88DBC E4B6
-E88E85 E4AC
-E88E87 E4B4
-E88E89 E4BB
-E88E8A E4B5
-E88E8E E4B3
-E88E93 E496
-E88E96 E4B1
-E88E9A E4AD
-E88E9E 8ACE
-E88E9F E4AF
-E88EA0 E4BA
-E88EA2 E4B0
-E88EA8 E4BC
-E88EAA E4AE
-E88EAB 949C
-E88EB1 9789
-E88EB5 E4B7
-E88EBD E4CD
-E88F81 E4C5
-E88F85 909B
-E88F8A 8B65
-E88F8C 8BDB
-E88F8E E4C0
-E88F93 89D9
-E88F96 8FD2
-E88F98 E4C3
-E88F9C 8DD8
-E88F9F 9370
-E88FA0 E4C8
-E88FA9 95EC
-E88FAB E4BF
-E88FAF 89D8
-E88FB0 8CD4
-E88FB1 9548
-E88FB2 E4C9
-E88FB4 E4BD
-E88FB7 E4C6
-E88FBB E4D0
-E88FBD E4C1
-E89083 E4C2
-E89084 93B8
-E89087 E4C7
-E8908B E4C4
-E8908C 9647
-E8908D E4CA
-E8908E 88DE
-E89093 E4BE
-E890A0 E4CC
-E890A2 E4CB
-E890A9 948B
-E890AA E4D2
-E890AC E4DD
-E890B1 8A9E
-E890B5 E4E0
-E890B8 E4CE
-E890BC E4D3
-E890BD 978E
-E89186 E4DC
-E89189 9774
-E8918E 97A8
-E89197 9298
-E8919B 8A8B
-E891A1 9592
-E891A2 E4E2
-E891A3 939F
-E891A6 88AF
-E891A9 E4DB
-E891AB E4D7
-E891AC 9192
-E891AD E4D1
-E891AE E4D9
-E891AF E4DE
-E891B1 944B
-E891B5 88A8
-E891B7 E4D6
-E891B9 E4DF
-E891BA 9598
-E89282 E4DA
-E89284 E4D5
-E8928B 8FD3
-E89290 8F4E
-E89294 8EAA
-E89299 96D6
-E8929C 9566
-E8929F E4E5
-E892A1 E4EE
-E892AD E4D8
-E892B2 8A97
-E892B8 8FF6
-E892B9 E4E3
-E892BB E4E8
-E892BC 9193
-E892BF E4E4
-E89381 E4EB
-E89384 927E
-E89386 E4EC
-E89389 9775
-E8938A E4E1
-E8938B 8A57
-E8938D E4E7
-E89390 E4EA
-E89391 96AA
-E89396 E4ED
-E89399 E4E6
-E8939A E4E9
-E893AC 9648
-E893AE 9840
-E893B4 E4F1
-E893BC E4F8
-E893BF E4F0
-E89480 8EC1
-E89486 E4CF
-E89491 95CC
-E89493 96A0
-E89494 E4F7
-E89495 E4F6
-E89497 E4F2
-E89498 E4F3
-E8949A 8955
-E8949F E4F5
-E894A1 E4EF
-E894A6 92D3
-E894AC E4F4
-E894AD 88FC
-E894B5 91A0
-E894BD 95C1
-E89580 E4F9
-E89581 E540
-E89583 94D7
-E89588 E4FC
-E89589 8FD4
-E8958A 8EC7
-E8958B E542
-E8958E 8BBC
-E89595 E543
-E89597 9599
-E89598 E4FB
-E8959A E4D4
-E895A3 E4FA
-E895A8 986E
-E895A9 93A0
-E895AA 9593
-E895AD E54A
-E895B7 E550
-E895BE E551
-E89680 E544
-E89684 9496
-E89687 E54E
-E89688 E546
-E8968A E548
-E89690 E552
-E89691 E547
-E89694 E54B
-E89697 8992
-E89699 93E3
-E8969B E54C
-E8969C E54F
-E896A4 E545
-E896A6 9145
-E896A8 E549
-E896A9 8E46
-E896AA 9064
-E896AB 8C4F
-E896AC 96F2
-E896AE 96F7
-E896AF 8F92
-E896B9 E556
-E896BA E554
-E89781 986D
-E89789 E553
-E8978D 9795
-E8978F E555
-E89790 E557
-E89795 E558
-E8979C E55B
-E8979D E559
-E897A4 93A1
-E897A5 E55A
-E897A9 94CB
-E897AA E54D
-E897B7 8F93
-E897B9 E55C
-E897BA E561
-E897BB 9194
-E897BE E560
-E89882 E541
-E89886 E562
-E89887 9168
-E8988A E55D
-E8988B E55F
-E89893 E55E
-E89896 9F50
-E89897 9F41
-E8989A E564
-E898A2 E563
-E898AD 9796
-E898AF E1BA
-E898B0 E565
-E898BF E566
-E8998D E567
-E8998E 8CD5
-E89990 8B73
-E89994 E569
-E89995 997C
-E8999A 8B95
-E8999C 97B8
-E8999E 8BF1
-E8999F E56A
-E899A7 E56B
-E899AB 928E
-E899B1 E56C
-E899B9 93F8
-E899BB 88B8
-E89A8A 89E1
-E89A8B E571
-E89A8C E572
-E89A93 E56D
-E89A95 8E5C
-E89AA3 E56E
-E89AA4 9461
-E89AA9 E56F
-E89AAA E570
-E89AAB E57A
-E89AAF E574
-E89AB0 E577
-E89AB6 E573
-E89B84 E575
-E89B86 E576
-E89B87 8ED6
-E89B89 E578
-E89B8B 9260
-E89B8D 8C75
-E89B8E 8A61
-E89B94 E57B
-E89B99 8A5E
-E89B9B E581
-E89B9E E57C
-E89B9F E580
-E89BA4 94B8
-E89BA9 E57D
-E89BAC E57E
-E89BAD 9567
-E89BAE 94D8
-E89BAF E582
-E89BB8 91FB
-E89BB9 E58C
-E89BBB E588
-E89BBE 89E9
-E89C80 E586
-E89C82 9649
-E89C83 E587
-E89C86 E584
-E89C88 E585
-E89C89 E58A
-E89C8A E58D
-E89C8D E58B
-E89C91 E589
-E89C92 E583
-E89C98 9277
-E89C9A E594
-E89C9C 96A8
-E89CA5 E592
-E89CA9 E593
-E89CB4 E58E
-E89CB7 E590
-E89CBB E591
-E89CBF E58F
-E89D89 90E4
-E89D8B 9858
-E89D8C E598
-E89D8E E599
-E89D93 E59F
-E89D95 9049
-E89D97 E59B
-E89D99 E59E
-E89D9F E596
-E89DA0 E595
-E89DA3 E5A0
-E89DA6 89DA
-E89DA8 E59C
-E89DAA E5A1
-E89DAE E59D
-E89DB4 E59A
-E89DB6 92B1
-E89DB8 E597
-E89DBF 9488
-E89E82 E5A5
-E89E8D 975A
-E89E9F E5A4
-E89EA2 E5A3
-E89EAB E5AC
-E89EAF E5A6
-E89EB3 E5AE
-E89EBA 9786
-E89EBB E5B1
-E89EBD E5A8
-E89F80 E5A9
-E89F84 E5AD
-E89F86 E5B0
-E89F87 E5AF
-E89F8B E5A7
-E89F90 E5AA
-E89F92 E5BB
-E89FA0 E5B4
-E89FAF E5B2
-E89FB2 E5B3
-E89FB6 E5B8
-E89FB7 E5B9
-E89FB9 8A49
-E89FBB 8B61
-E89FBE E5B7
-E8A085 E5A2
-E8A08D E5B6
-E8A08E E5BA
-E8A08F E5B5
-E8A091 E5BC
-E8A095 E5BE
-E8A096 E5BD
-E8A0A1 E5C0
-E8A0A2 E5BF
-E8A0A3 E579
-E8A0A7 E5C4
-E8A0B1 E5C1
-E8A0B6 E5C2
-E8A0B9 E5C3
-E8A0BB E5C5
-E8A180 8C8C
-E8A182 E5C7
-E8A184 E5C6
-E8A186 8F4F
-E8A18C 8D73
-E8A18D 9FA5
-E8A192 E5C8
-E8A193 8F70
-E8A197 8A58
-E8A199 E5C9
-E8A19B 8971
-E8A19D 8FD5
-E8A19E E5CA
-E8A1A1 8D74
-E8A1A2 E5CB
-E8A1A3 88DF
-E8A1A8 955C
-E8A1AB E5CC
-E8A1B0 908A
-E8A1B2 E5D3
-E8A1B5 E5D0
-E8A1B7 928F
-E8A1BD E5D1
-E8A1BE E5CE
-E8A1BF 8BDC
-E8A281 E5CD
-E8A282 E5D4
-E8A288 8C55
-E8A28B 91DC
-E8A28D E5DA
-E8A292 E5D6
-E8A296 91B3
-E8A297 E5D5
-E8A299 E5D8
-E8A29E E5CF
-E8A2A2 E5D9
-E8A2A4 E5DB
-E8A2AB 94ED
-E8A2AE E5D7
-E8A2B0 E5DC
-E8A2B1 E5DE
-E8A2B4 8CD1
-E8A2B5 E5D2
-E8A2B7 88BF
-E8A2BF E5DD
-E8A381 8DD9
-E8A382 97F4
-E8A383 E5DF
-E8A384 E5E0
-E8A385 9195
-E8A38F 97A0
-E8A394 E5E1
-E8A395 9754
-E8A398 E5E2
-E8A399 E5E3
-E8A39C 95E2
-E8A39D E5E4
-E8A39F 8DBE
-E8A3A1 97A1
-E8A3A8 E5E9
-E8A3B2 E5EA
-E8A3B3 8FD6
-E8A3B4 E5E8
-E8A3B8 9787
-E8A3B9 E5E5
-E8A3BC E5E7
-E8A3BD 90BB
-E8A3BE 909E
-E8A482 E5E6
-E8A484 E5EB
-E8A487 95A1
-E8A48A E5ED
-E8A48C E5EC
-E8A490 8A8C
-E8A492 964A
-E8A493 E5EE
-E8A49D E5FA
-E8A49E E5F0
-E8A4A5 E5F1
-E8A4AA E5F2
-E8A4AB E5F3
-E8A4B6 E5F7
-E8A4B8 E5F8
-E8A4BB E5F6
-E8A581 E5F4
-E8A583 E5EF
-E8A584 E5F5
-E8A58C E5F9
-E8A58D E8B5
-E8A596 89A6
-E8A59E E5FC
-E8A59F 8BDD
-E8A5A0 E5FB
-E8A5A4 E641
-E8A5A6 E640
-E8A5AA E643
-E8A5AD E642
-E8A5AF E644
-E8A5B2 8F50
-E8A5B4 E645
-E8A5B7 E646
-E8A5BE E647
-E8A5BF 90BC
-E8A681 9776
-E8A683 E648
-E8A686 95A2
-E8A687 9465
-E8A688 E649
-E8A68A E64A
-E8A68B 8CA9
-E8A68F 8B4B
-E8A693 E64B
-E8A696 8E8B
-E8A697 9460
-E8A698 E64C
-E8A69A 8A6F
-E8A6A1 E64D
-E8A6A6 E64F
-E8A6A7 9797
-E8A6A9 E64E
-E8A6AA 9065
-E8A6AC E650
-E8A6AF E651
-E8A6B2 E652
-E8A6B3 8ACF
-E8A6BA E653
-E8A6BD E654
-E8A6BF E655
-E8A780 E656
-E8A792 8A70
-E8A79A E657
-E8A79C E658
-E8A79D E659
-E8A7A3 89F0
-E8A7A6 9047
-E8A7A7 E65A
-E8A7B4 E65B
-E8A7B8 E65C
-E8A880 8CBE
-E8A882 92F9
-E8A883 E65D
-E8A888 8C76
-E8A88A 9075
-E8A88C E660
-E8A88E 93A2
-E8A890 E65F
-E8A893 8C50
-E8A896 E65E
-E8A897 91F5
-E8A898 8B4C
-E8A89B E661
-E8A89D E662
-E8A89F 8FD7
-E8A8A3 8C8D
-E8A8A5 E663
-E8A8AA 964B
-E8A8AD 90DD
-E8A8B1 8B96
-E8A8B3 96F3
-E8A8B4 9169
-E8A8B6 E664
-E8A8BA 9066
-E8A8BB 9290
-E8A8BC 8FD8
-E8A981 E665
-E8A986 E668
-E8A988 E669
-E8A990 8DBC
-E8A991 91C0
-E8A992 E667
-E8A994 8FD9
-E8A995 955D
-E8A99B E666
-E8A99E 8E8C
-E8A9A0 8972
-E8A9A2 E66D
-E8A9A3 8C77
-E8A9A6 8E8E
-E8A9A9 8E8D
-E8A9AB 986C
-E8A9AC E66C
-E8A9AD E66B
-E8A9AE 9146
-E8A9B0 8B6C
-E8A9B1 9862
-E8A9B2 8A59
-E8A9B3 8FDA
-E8A9BC E66A
-E8AA82 E66F
-E8AA84 E670
-E8AA85 E66E
-E8AA87 8CD6
-E8AA89 975F
-E8AA8C 8E8F
-E8AA8D 9446
-E8AA91 E673
-E8AA93 90BE
-E8AA95 9261
-E8AA98 9755
-E8AA9A E676
-E8AA9E 8CEA
-E8AAA0 90BD
-E8AAA1 E672
-E8AAA3 E677
-E8AAA4 8CEB
-E8AAA5 E674
-E8AAA6 E675
-E8AAA8 E671
-E8AAAC 90E0
-E8AAAD 93C7
-E8AAB0 924E
-E8AAB2 89DB
-E8AAB9 94EE
-E8AABC 8B62
-E8AABF 92B2
-E8AB82 E67A
-E8AB84 E678
-E8AB87 926B
-E8AB8B 90BF
-E8AB8C 8AD0
-E8AB8D E679
-E8AB8F 907A
-E8AB92 97C8
-E8AB96 985F
-E8AB9A E67B
-E8AB9B E687
-E8AB9C 92B3
-E8AB9E E686
-E8ABA0 E683
-E8ABA1 E68B
-E8ABA2 E684
-E8ABA4 E680
-E8ABA6 92FA
-E8ABA7 E67E
-E8ABAB E67C
-E8ABAD 9740
-E8ABAE 8E90
-E8ABB1 E681
-E8ABB3 E67D
-E8ABB7 E685
-E8ABB8 8F94
-E8ABBA 8CBF
-E8ABBE 91F8
-E8AC80 9664
-E8AC81 8979
-E8AC82 88E0
-E8AC84 93A3
-E8AC87 E689
-E8AC8C E688
-E8AC8E 93E4
-E8AC90 E68D
-E8AC94 E682
-E8AC96 E68C
-E8AC97 E68E
-E8AC99 8CAA
-E8AC9A E68A
-E8AC9B 8D75
-E8AC9D 8ED3
-E8ACA0 E68F
-E8ACA1 9777
-E8ACA6 E692
-E8ACA8 E695
-E8ACAB E693
-E8ACAC 9554
-E8ACB3 E690
-E8ACB9 8BDE
-E8ACBE E694
-E8AD81 E696
-E8AD89 E69A
-E8AD8C E697
-E8AD8E E699
-E8AD8F E698
-E8AD96 E69B
-E8AD98 8EAF
-E8AD9A E69D
-E8AD9B E69C
-E8AD9C 9588
-E8AD9F E69F
-E8ADA6 8C78
-E8ADAB E69E
-E8ADAC E6A0
-E8ADAF E6A1
-E8ADB0 8B63
-E8ADB1 E3BF
-E8ADB2 8FF7
-E8ADB4 E6A2
-E8ADB7 8CEC
-E8ADBD E6A3
-E8AE80 E6A4
-E8AE83 8E5D
-E8AE8A 9DCC
-E8AE8C E6A5
-E8AE8E E6A6
-E8AE90 8F51
-E8AE92 E6A7
-E8AE93 E6A8
-E8AE96 E6A9
-E8AE99 E6AA
-E8AE9A E6AB
-E8B0B7 924A
-E8B0BA E6AC
-E8B0BF E6AE
-E8B181 E6AD
-E8B186 93A4
-E8B188 E6AF
-E8B18A 964C
-E8B18C E6B0
-E8B18E E6B1
-E8B190 E6B2
-E8B195 E6B3
-E8B19A 93D8
-E8B1A1 8FDB
-E8B1A2 E6B4
-E8B1AA 8D8B
-E8B1AB 98AC
-E8B1AC E6B5
-E8B1B8 E6B6
-E8B1B9 955E
-E8B1BA E6B7
-E8B1BC E6BF
-E8B282 E6B8
-E8B285 E6BA
-E8B289 E6B9
-E8B28A E6BB
-E8B28C 9665
-E8B28D E6BC
-E8B28E E6BD
-E8B294 E6BE
-E8B298 E6C0
-E8B29D 8A4C
-E8B29E 92E5
-E8B2A0 9589
-E8B2A1 8DE0
-E8B2A2 8D76
-E8B2A7 956E
-E8B2A8 89DD
-E8B2A9 94CC
-E8B2AA E6C3
-E8B2AB 8AD1
-E8B2AC 90D3
-E8B2AD E6C2
-E8B2AE E6C7
-E8B2AF 9299
-E8B2B0 96E1
-E8B2B2 E6C5
-E8B2B3 E6C6
-E8B2B4 8B4D
-E8B2B6 E6C8
-E8B2B7 9483
-E8B2B8 91DD
-E8B2BB 94EF
-E8B2BC 935C
-E8B2BD E6C4
-E8B2BF 9666
-E8B380 89EA
-E8B381 E6CA
-E8B382 9847
-E8B383 92C0
-E8B384 9864
-E8B387 8E91
-E8B388 E6C9
-E8B38A 91AF
-E8B38D E6DA
-E8B38E 9147
-E8B391 93F6
-E8B393 956F
-E8B39A E6CD
-E8B39B 8E5E
-E8B39C 8E92
-E8B39E 8FDC
-E8B3A0 9485
-E8B3A2 8CAB
-E8B3A3 E6CC
-E8B3A4 E6CB
-E8B3A6 958A
-E8B3AA 8EBF
-E8B3AD 9371
-E8B3BA E6CF
-E8B3BB E6D0
-E8B3BC 8D77
-E8B3BD E6CE
-E8B484 E6D1
-E8B485 E6D2
-E8B487 E6D4
-E8B488 91A1
-E8B48A E6D3
-E8B48B 8AE4
-E8B48D E6D6
-E8B48F E6D5
-E8B490 E6D7
-E8B493 E6D9
-E8B494 E6DB
-E8B496 E6DC
-E8B5A4 90D4
-E8B5A6 8ECD
-E8B5A7 E6DD
-E8B5AB 8A71
-E8B5AD E6DE
-E8B5B0 9196
-E8B5B1 E6DF
-E8B5B3 E6E0
-E8B5B4 958B
-E8B5B7 8B4E
-E8B681 E6E1
-E8B685 92B4
-E8B68A 897A
-E8B699 E6E2
-E8B6A3 8EEF
-E8B6A8 9096
-E8B6B3 91AB
-E8B6BA E6E5
-E8B6BE E6E4
-E8B782 E6E3
-E8B78B E6EB
-E8B78C E6E9
-E8B78F E6E6
-E8B796 E6E8
-E8B79A E6E7
-E8B79B E6EA
-E8B79D 8B97
-E8B79F E6EE
-E8B7A1 90D5
-E8B7A3 E6EF
-E8B7A8 8CD7
-E8B7AA E6EC
-E8B7AB E6ED
-E8B7AF 9848
-E8B7B3 92B5
-E8B7B5 9148
-E8B7BC E6F0
-E8B7BF E6F3
-E8B888 E6F1
-E8B889 E6F2
-E8B88A 9778
-E8B88F 93A5
-E8B890 E6F6
-E8B89D E6F4
-E8B89E E6F5
-E8B89F E6F7
-E8B8AA E748
-E8B8B0 E6FA
-E8B8B4 E6FB
-E8B8B5 E6F9
-E8B982 E6F8
-E8B984 92FB
-E8B987 E740
-E8B988 E744
-E8B989 E741
-E8B98A E6FC
-E8B98C E742
-E8B990 E743
-E8B995 E74A
-E8B999 E745
-E8B99F 90D6
-E8B9A0 E747
-E8B9A3 E749
-E8B9A4 E746
-E8B9B2 E74C
-E8B9B4 8F52
-E8B9B6 E74B
-E8B9BC E74D
-E8BA81 E74E
-E8BA84 E751
-E8BA85 E750
-E8BA87 E74F
-E8BA8A E753
-E8BA8B E752
-E8BA8D 96F4
-E8BA91 E755
-E8BA93 E754
-E8BA94 E756
-E8BA99 E757
-E8BAA1 E759
-E8BAAA E758
-E8BAAB 9067
-E8BAAC E75A
-E8BAAF 8BEB
-E8BAB0 E75B
-E8BAB1 E75D
-E8BABE E75E
-E8BB85 E75F
-E8BB86 E75C
-E8BB88 E760
-E8BB8A 8ED4
-E8BB8B E761
-E8BB8C 8B4F
-E8BB8D 8C52
-E8BB92 8CAC
-E8BB9B E762
-E8BB9F 93EE
-E8BBA2 935D
-E8BBA3 E763
-E8BBAB E766
-E8BBB8 8EB2
-E8BBBB E765
-E8BBBC E764
-E8BBBD 8C79
-E8BBBE E767
-E8BC83 8A72
-E8BC85 E769
-E8BC89 8DDA
-E8BC8A E768
-E8BC8C E771
-E8BC92 E76B
-E8BC93 E76D
-E8BC94 95E3
-E8BC95 E76A
-E8BC99 E76C
-E8BC9B E770
-E8BC9C E76E
-E8BC9D 8B50
-E8BC9F E76F
-E8BCA6 E772
-E8BCA9 9479
-E8BCAA 97D6
-E8BCAF 8F53
-E8BCB3 E773
-E8BCB8 9741
-E8BCB9 E775
-E8BCBB E774
-E8BCBE E778
-E8BCBF 9760
-E8BD82 E777
-E8BD84 8A8D
-E8BD85 E776
-E8BD86 E77B
-E8BD89 E77A
-E8BD8C E779
-E8BD8D 9351
-E8BD8E E77C
-E8BD97 E77D
-E8BD9C E77E
-E8BD9F 8D8C
-E8BDA1 8C44
-E8BDA2 E780
-E8BDA3 E781
-E8BDA4 E782
-E8BE9B 9068
-E8BE9C E783
-E8BE9E 8EAB
-E8BE9F E784
-E8BEA3 E785
-E8BEA7 999F
-E8BEA8 999E
-E8BEAD E786
-E8BEAE E390
-E8BEAF E787
-E8BEB0 9243
-E8BEB1 904A
-E8BEB2 945F
-E8BEB7 E788
-E8BEBA 95D3
-E8BEBB 92D2
-E8BEBC 8D9E
-E8BEBF 9248
-E8BF82 8949
-E8BF84 9698
-E8BF85 9076
-E8BF8E 8C7D
-E8BF91 8BDF
-E8BF94 95D4
-E8BF9A E789
-E8BFA2 E78B
-E8BFA5 E78A
-E8BFA6 89DE
-E8BFA9 93F4
-E8BFAA E78C
-E8BFAB 9497
-E8BFAD 9352
-E8BFAF E78D
-E8BFB0 8F71
-E8BFB4 E78F
-E8BFB7 96C0
-E8BFB8 E79E
-E8BFB9 E791
-E8BFBA E792
-E8BFBD 92C7
-E98080 91DE
-E98081 9197
-E98083 93A6
-E98085 E790
-E98086 8B74
-E9808B E799
-E9808D E796
-E9808E E7A3
-E9808F 93A7
-E98090 9280
-E98091 E793
-E98093 92FC
-E98094 9372
-E98095 E794
-E98096 E798
-E98097 9080
-E98099 9487
-E9809A 92CA
-E9809D 90C0
-E9809E E797
-E9809F 91AC
-E980A0 91A2
-E980A1 E795
-E980A2 88A7
-E980A3 9841
-E980A7 E79A
-E980AE 91DF
-E980B1 8F54
-E980B2 9069
-E980B5 E79C
-E980B6 E79B
-E980B8 88ED
-E980B9 E79D
-E980BC 954E
-E980BE E7A5
-E98181 93D9
-E98182 908B
-E98185 9278
-E98187 8BF6
-E98189 E7A4
-E9818A 9756
-E9818B 895E
-E9818D 95D5
-E9818E 89DF
-E9818F E79F
-E98190 E7A0
-E98191 E7A1
-E98192 E7A2
-E98193 93B9
-E98194 9242
-E98195 88E1
-E98196 E7A6
-E98198 E7A7
-E98199 EAA1
-E9819C 91BB
-E9819E E7A8
-E981A0 8993
-E981A1 916B
-E981A3 8CAD
-E981A5 9779
-E981A8 E7A9
-E981A9 934B
-E981AD 9198
-E981AE 8ED5
-E981AF E7AA
-E981B2 E7AD
-E981B5 8F85
-E981B6 E7AB
-E981B7 914A
-E981B8 9149
-E981BA 88E2
-E981BC 97C9
-E981BD E7AF
-E981BF 94F0
-E98280 E7B1
-E98281 E7B0
-E98282 E7AE
-E98283 E284
-E98284 8AD2
-E98287 E78E
-E98289 E7B3
-E9828A E7B2
-E9828F E7B4
-E98291 9757
-E982A3 93DF
-E982A6 964D
-E982A8 E7B5
-E982AA 8ED7
-E982AF E7B6
-E982B1 E7B7
-E982B5 E7B8
-E982B8 9340
-E98381 88E8
-E9838A 8D78
-E9838E 9859
-E9839B E7BC
-E983A1 8C53
-E983A2 E7B9
-E983A4 E7BA
-E983A8 9594
-E983AD 8A73
-E983B5 9758
-E983B7 8BBD
-E983BD 9373
-E98482 E7BD
-E98492 E7BE
-E98499 E7BF
-E984AD 9341
-E984B0 E7C1
-E984B2 E7C0
-E98589 93D1
-E9858A E7C2
-E9858B 8F55
-E9858C 8EDE
-E9858D 947A
-E9858E 9291
-E98592 8EF0
-E98594 908C
-E98596 E7C3
-E98598 E7C4
-E985A2 907C
-E985A3 E7C5
-E985A5 E7C6
-E985A9 E7C7
-E985AA 978F
-E985AC 8F56
-E985B2 E7C9
-E985B3 E7C8
-E985B5 8D79
-E985B7 8D93
-E985B8 8E5F
-E98682 E7CC
-E98687 8F86
-E98689 E7CB
-E9868B E7CA
-E9868D 91E7
-E98690 8CED
-E98692 90C1
-E98697 94AE
-E9869C 8F58
-E986A2 E7CD
-E986A4 8FDD
-E986AA E7D0
-E986AB E7CE
-E986AF E7CF
-E986B4 E7D2
-E986B5 E7D1
-E986B8 8FF8
-E986BA E7D3
-E98780 E7D4
-E98781 E7D5
-E98786 94CE
-E98787 8DD1
-E98788 8EDF
-E98789 E7D6
-E9878B E7D7
-E9878C 97A2
-E9878D 8F64
-E9878E 96EC
-E9878F 97CA
-E98790 E7D8
-E98791 8BE0
-E98796 E7D9
-E98798 9342
-E9879B E7DC
-E9879C 8A98
-E9879D 906A
-E9879F E7DA
-E987A1 E7DB
-E987A3 92DE
-E987A6 9674
-E987A7 8BFA
-E987B5 E7DE
-E987B6 E7DF
-E987BC E7DD
-E987BF E7E1
-E9888D 93DD
-E9888E 8A62
-E98891 E7E5
-E98894 E7E2
-E98895 E7E4
-E9889E E7E0
-E988A9 E86E
-E988AC E7E3
-E988B4 97E9
-E988B7 8CD8
-E988BF E7ED
-E98984 9353
-E98985 E7E8
-E98988 E7EB
-E98989 E7E9
-E9898B E7EE
-E98990 E7EF
-E98997 E7E7
-E9899A E7F4
-E9899B 8994
-E9899E E7E6
-E989A2 94AB
-E989A4 E7EA
-E989A6 8FDE
-E989B1 8D7A
-E989BE 9667
-E98A80 8BE2
-E98A83 8F65
-E98A85 93BA
-E98A91 914C
-E98A93 E7F2
-E98A95 E7EC
-E98A96 E7F1
-E98A98 96C1
-E98A9A 92B6
-E98A9B E7F3
-E98A9C E7F0
-E98AAD 914B
-E98AB7 E7F7
-E98AB9 E7F6
-E98B8F E7F5
-E98B92 964E
-E98BA4 8F9B
-E98BA9 E7F8
-E98BAA 95DD
-E98BAD 8973
-E98BB2 9565
-E98BB3 9292
-E98BB8 8B98
-E98BBA E7FA
-E98BBC 8D7C
-E98C86 8E4B
-E98C8F E7F9
-E98C90 908D
-E98C98 908E
-E98C99 E840
-E98C9A E842
-E98CA0 8FF9
-E98CA2 E841
-E98CA3 E843
-E98CA6 8BD1
-E98CA8 9564
-E98CAB 8EE0
-E98CAC 9842
-E98CAE E7FC
-E98CAF 8DF6
-E98CB2 985E
-E98CB5 E845
-E98CBA E844
-E98CBB E846
-E98D84 E7FB
-E98D8B 93E7
-E98D8D 9374
-E98D94 92D5
-E98D96 E84B
-E98D9B 9262
-E98D9C E847
-E98DA0 E848
-E98DAC 8C4C
-E98DAE E84A
-E98DB5 8CAE
-E98DBC E849
-E98DBE 8FDF
-E98E8C 8A99
-E98E94 E84F
-E98E96 8DBD
-E98E97 9199
-E98E9A 92C8
-E98EA7 8A5A
-E98EAC E84D
-E98EAD E84E
-E98EAE 92C1
-E98EB0 E84C
-E98EB9 E850
-E98F83 E856
-E98F88 E859
-E98F90 E858
-E98F91 934C
-E98F96 E851
-E98F97 E852
-E98F98 E855
-E98F9D E857
-E98FA1 8BBE
-E98FA4 E85A
-E98FA5 E854
-E98FA8 E853
-E99083 E85E
-E99087 E85F
-E99090 E860
-E99093 E85D
-E99094 E85C
-E99098 8FE0
-E99099 93A8
-E9909A E85B
-E990A1 E864
-E990AB E862
-E990B5 E863
-E990B6 E861
-E990B8 91F6
-E990BA E865
-E99181 E866
-E99184 E868
-E99191 8AD3
-E99192 E867
-E99193 96F8
-E9919A E873
-E9919B E869
-E9919E E86C
-E991A0 E86A
-E991A2 E86B
-E991AA E86D
-E991B0 E86F
-E991B5 E870
-E991B7 E871
-E991BC E874
-E991BD E872
-E991BE E875
-E991BF E877
-E99281 E876
-E995B7 92B7
-E99680 96E5
-E99682 E878
-E99683 914D
-E99687 E879
-E99689 95C2
-E9968A E87A
-E9968B 8A4A
-E9968F 895B
-E99691 8AD5
-E99693 8AD4
-E99694 E87B
-E99696 E87C
-E99698 E87D
-E99699 E87E
-E996A0 E880
-E996A2 8AD6
-E996A3 8A74
-E996A4 8D7D
-E996A5 94B4
-E996A7 E882
-E996A8 E881
-E996AD E883
-E996B2 897B
-E996B9 E886
-E996BB E885
-E996BC E884
-E996BE E887
-E99783 E88A
-E99787 88C5
-E9978A E888
-E9978C E88C
-E9978D E88B
-E99794 E88E
-E99795 E88D
-E99796 E88F
-E99798 93AC
-E9979C E890
-E997A1 E891
-E997A2 E893
-E997A5 E892
-E9989C 958C
-E998A1 E894
-E998A8 E895
-E998AA 8DE3
-E998AE E896
-E998AF E897
-E998B2 9668
-E998BB 916A
-E998BF 88A2
-E99980 91C9
-E99982 E898
-E99984 958D
-E9998B E89B
-E9998C E899
-E9998D 8D7E
-E9998F E89A
-E99990 8CC0
-E9999B 95C3
-E9999C E89D
-E9999D E89F
-E9999E E89E
-E9999F E8A0
-E999A2 8940
-E999A3 9077
-E999A4 8F9C
-E999A5 8AD7
-E999A6 E8A1
-E999AA 9486
-E999AC E8A3
-E999B0 8941
-E999B2 E8A2
-E999B3 92C2
-E999B5 97CB
-E999B6 93A9
-E999B7 E89C
-E999B8 97A4
-E999BA 8CAF
-E999BD 977A
-E99A85 8BF7
-E99A86 97B2
-E99A88 8C47
-E99A8A 91E0
-E99A8B E440
-E99A8D E8A4
-E99A8E 8A4B
-E99A8F 908F
-E99A94 8A75
-E99A95 E8A6
-E99A97 E8A7
-E99A98 E8A5
-E99A99 8C84
-E99A9B 8DDB
-E99A9C 8FE1
-E99AA0 8942
-E99AA3 97D7
-E99AA7 E8A9
-E99AA8 E7AC
-E99AAA E8A8
-E99AB0 E8AC
-E99AB1 E8AA
-E99AB2 E8AB
-E99AB4 E8AD
-E99AB6 E8AE
-E99AB7 97EA
-E99AB8 E8AF
-E99AB9 E8B0
-E99ABB 90C7
-E99ABC 94B9
-E99B80 909D
-E99B81 8AE5
-E99B84 9759
-E99B85 89EB
-E99B86 8F57
-E99B87 8CD9
-E99B89 E8B3
-E99B8B E8B2
-E99B8C 8E93
-E99B8D E8B4
-E99B8E E8B1
-E99B91 8E47
-E99B95 E8B8
-E99B96 E5AB
-E99B99 99D4
-E99B9B 9097
-E99B9C E8B6
-E99BA2 97A3
-E99BA3 93EF
-E99BA8 894A
-E99BAA 90E1
-E99BAB 8EB4
-E99BB0 95B5
-E99BB2 895F
-E99BB6 97EB
-E99BB7 978B
-E99BB9 E8B9
-E99BBB 9364
-E99C80 8EF9
-E99C84 E8BA
-E99C86 E8BB
-E99C87 906B
-E99C88 E8BC
-E99C8A 97EC
-E99C8D E8B7
-E99C8E E8BE
-E99C8F E8C0
-E99C91 E8BF
-E99C93 E8BD
-E99C96 E8C1
-E99C99 E8C2
-E99C9C 919A
-E99C9E 89E0
-E99CA4 E8C3
-E99CA7 96B6
-E99CAA E8C4
-E99CB0 E8C5
-E99CB2 9849
-E99CB8 9E50
-E99CB9 E8C6
-E99CBD E8C7
-E99CBE E8C8
-E99D82 E8CC
-E99D84 E8C9
-E99D86 E8CA
-E99D88 E8CB
-E99D89 E8CD
-E99D92 90C2
-E99D96 96F5
-E99D99 90C3
-E99D9C E8CE
-E99D9E 94F1
-E99DA0 E8CF
-E99DA1 EA72
-E99DA2 96CA
-E99DA4 E8D0
-E99DA6 E8D1
-E99DA8 E8D2
-E99DA9 8A76
-E99DAB E8D4
-E99DAD 9078
-E99DB1 E8D5
-E99DB4 8C43
-E99DB9 E8D6
-E99DBA E8DA
-E99DBC E8D8
-E99E81 E8D9
-E99E84 8A93
-E99E85 E8D7
-E99E86 E8DB
-E99E8B E8DC
-E99E8D 88C6
-E99E8F E8DD
-E99E90 E8DE
-E99E98 8FE2
-E99E9C E8DF
-E99EA0 8B66
-E99EA3 E8E2
-E99EA6 E8E1
-E99EA8 E8E0
-E99EAB E691
-E99EAD 95DA
-E99EB3 E8E3
-E99EB4 E8E4
-E99F83 E8E5
-E99F86 E8E6
-E99F88 E8E7
-E99F8B E8E8
-E99F93 8AD8
-E99F9C E8E9
-E99FAD E8EA
-E99FAE 9442
-E99FB2 E8EC
-E99FB3 89B9
-E99FB5 E8EF
-E99FB6 E8EE
-E99FBB 8943
-E99FBF 8BBF
-E9A081 95C5
-E9A082 92B8
-E9A083 8DA0
-E9A085 8D80
-E9A086 8F87
-E9A088 907B
-E9A08C E8F1
-E9A08F E8F0
-E9A090 9761
-E9A091 8AE6
-E9A092 94D0
-E9A093 93DA
-E9A097 909C
-E9A098 97CC
-E9A09A 8C7A
-E9A0A1 E8F4
-E9A0A4 E8F3
-E9A0AC 966A
-E9A0AD 93AA
-E9A0B4 896F
-E9A0B7 E8F5
-E9A0B8 E8F2
-E9A0BB 9570
-E9A0BC 978A
-E9A0BD E8F6
-E9A186 E8F7
-E9A18B E8F9
-E9A18C 91E8
-E9A18D 8A7A
-E9A18E 8A7B
-E9A18F E8F8
-E9A194 8AE7
-E9A195 8CB0
-E9A198 8AE8
-E9A19B 935E
-E9A19E 97DE
-E9A1A7 8CDA
-E9A1AB E8FA
-E9A1AF E8FB
-E9A1B0 E8FC
-E9A1B1 E940
-E9A1B3 E942
-E9A1B4 E941
-E9A2A8 9597
-E9A2AA E943
-E9A2AF E944
-E9A2B1 E945
-E9A2B6 E946
-E9A383 E948
-E9A384 E947
-E9A386 E949
-E9A39B 94F2
-E9A39C E3CA
-E9A39F 9048
-E9A3A2 8B51
-E9A3A9 E94A
-E9A3AB E94B
-E9A3AD 99AA
-E9A3AE 9F5A
-E9A3AF 94D1
-E9A3B2 88F9
-E9A3B4 88B9
-E9A3BC 8E94
-E9A3BD 964F
-E9A3BE 8FFC
-E9A483 E94C
-E9A485 96DD
-E9A489 E94D
-E9A48A 977B
-E9A48C 8961
-E9A490 8E60
-E9A492 E94E
-E9A493 89EC
-E9A494 E94F
-E9A498 E950
-E9A49D E952
-E9A49E E953
-E9A4A0 E955
-E9A4A1 E951
-E9A4A4 E954
-E9A4A8 8AD9
-E9A4AC E956
-E9A4AE E957
-E9A4BD E958
-E9A4BE E959
-E9A582 E95A
-E9A585 E95C
-E9A589 E95B
-E9A58B E95E
-E9A58C E961
-E9A590 E95D
-E9A591 E95F
-E9A592 E960
-E9A595 E962
-E9A597 8BC0
-E9A696 8EF1
-E9A697 E963
-E9A698 E964
-E9A699 8D81
-E9A6A5 E965
-E9A6A8 8A5D
-E9A6AC 946E
-E9A6AD E966
-E9A6AE E967
-E9A6B3 9279
-E9A6B4 93E9
-E9A6BC E968
-E9A781 949D
-E9A784 91CA
-E9A785 8977
-E9A786 8BEC
-E9A788 8BED
-E9A790 9293
-E9A791 E96D
-E9A792 8BEE
-E9A795 89ED
-E9A798 E96C
-E9A79B E96A
-E9A79D E96B
-E9A79F E969
-E9A7A2 E977
-E9A7AD E96E
-E9A7AE E96F
-E9A7B1 E970
-E9A7B2 E971
-E9A7B8 E973
-E9A7BB E972
-E9A7BF 8F78
-E9A881 E974
-E9A885 E976
-E9A88E 8B52
-E9A88F E975
-E9A892 919B
-E9A893 8CB1
-E9A899 E978
-E9A8A8 91CB
-E9A8AB E979
-E9A8B0 93AB
-E9A8B7 E97A
-E9A8BE E980
-E9A980 E97D
-E9A982 E97C
-E9A983 E97E
-E9A985 E97B
-E9A98D E982
-E9A995 E981
-E9A997 E984
-E9A99A 8BC1
-E9A99B E983
-E9A99F E985
-E9A9A2 E986
-E9A9A4 E988
-E9A9A5 E987
-E9A9A9 E989
-E9A9AA E98B
-E9A9AB E98A
-E9AAA8 8D9C
-E9AAAD E98C
-E9AAB0 E98D
-E9AAB8 8A5B
-E9AABC E98E
-E9AB80 E98F
-E9AB84 9091
-E9AB8F E990
-E9AB91 E991
-E9AB93 E992
-E9AB94 E993
-E9AB98 8D82
-E9AB9E E994
-E9AB9F E995
-E9ABA2 E996
-E9ABA3 E997
-E9ABA6 E998
-E9ABAA 94AF
-E9ABAB E99A
-E9ABAD 9545
-E9ABAE E99B
-E9ABAF E999
-E9ABB1 E99D
-E9ABB4 E99C
-E9ABB7 E99E
-E9ABBB E99F
-E9AC86 E9A0
-E9AC98 E9A1
-E9AC9A E9A2
-E9AC9F E9A3
-E9ACA2 E9A4
-E9ACA3 E9A5
-E9ACA5 E9A6
-E9ACA7 E9A7
-E9ACA8 E9A8
-E9ACA9 E9A9
-E9ACAA E9AA
-E9ACAE E9AB
-E9ACAF E9AC
-E9ACB1 9F54
-E9ACB2 E9AD
-E9ACBB E2F6
-E9ACBC 8B53
-E9AD81 8A40
-E9AD82 8DB0
-E9AD83 E9AF
-E9AD84 E9AE
-E9AD85 96A3
-E9AD8D E9B1
-E9AD8E E9B2
-E9AD8F E9B0
-E9AD91 E9B3
-E9AD94 9682
-E9AD98 E9B4
-E9AD9A 8B9B
-E9ADAF 9844
-E9ADB4 E9B5
-E9AE83 E9B7
-E9AE8E 88BC
-E9AE91 E9B8
-E9AE92 95A9
-E9AE93 E9B6
-E9AE96 E9B9
-E9AE97 E9BA
-E9AE9F E9BB
-E9AEA0 E9BC
-E9AEA8 E9BD
-E9AEAA 968E
-E9AEAB 8E4C
-E9AEAD 8DF8
-E9AEAE 914E
-E9AEB4 E9BE
-E9AEB9 E9C1
-E9AF80 E9BF
-E9AF86 E9C2
-E9AF89 8CEF
-E9AF8A E9C0
-E9AF8F E9C3
-E9AF91 E9C4
-E9AF92 E9C5
-E9AF94 E9C9
-E9AF96 8E49
-E9AF9B 91E2
-E9AFA1 E9CA
-E9AFA2 E9C7
-E9AFA3 E9C6
-E9AFA4 E9C8
-E9AFA8 8C7E
-E9AFB0 E9CE
-E9AFB1 E9CD
-E9AFB2 E9CC
-E9AFB5 88B1
-E9B084 E9D8
-E9B086 E9D4
-E9B088 E9D5
-E9B089 E9D1
-E9B08A E9D7
-E9B08C E9D3
-E9B08D 8A82
-E9B090 986B
-E9B092 E9D6
-E9B093 E9D2
-E9B094 E9D0
-E9B095 E9CF
-E9B09B E9DA
-E9B0A1 E9DD
-E9B0A4 E9DC
-E9B0A5 E9DB
-E9B0AD 9568
-E9B0AE E9D9
-E9B0AF 88F1
-E9B0B0 E9DE
-E9B0B2 E9E0
-E9B0B9 8A8F
-E9B0BA E9CB
-E9B0BB 8956
-E9B0BE E9E2
-E9B186 E9E1
-E9B187 E9DF
-E9B188 924C
-E9B192 9690
-E9B197 97D8
-E9B19A E9E3
-E9B1A0 E9E4
-E9B1A7 E9E5
-E9B1B6 E9E6
-E9B1B8 E9E7
-E9B3A5 92B9
-E9B3A7 E9E8
-E9B3A9 94B5
-E9B3AB E9ED
-E9B3AC E9E9
-E9B3B0 E9EA
-E9B3B3 9650
-E9B3B4 96C2
-E9B3B6 93CE
-E9B483 E9EE
-E9B486 E9EF
-E9B487 93BC
-E9B488 E9EC
-E9B489 E9EB
-E9B48E 89A8
-E9B492 E9F7
-E9B495 E9F6
-E9B49B 8995
-E9B49F E9F4
-E9B4A3 E9F3
-E9B4A6 E9F1
-E9B4A8 8A9B
-E9B4AA E9F0
-E9B4AB 8EB0
-E9B4AC 89A7
-E9B4BB 8D83
-E9B4BE E9FA
-E9B4BF E9F9
-E9B581 E9F8
-E9B584 E9F5
-E9B586 E9FB
-E9B588 E9FC
-E9B590 EA44
-E9B591 EA43
-E9B599 EA45
-E9B59C 894C
-E9B59D EA40
-E9B59E EA41
-E9B5A0 8D94
-E9B5A1 96B7
-E9B5A4 EA42
-E9B5AC 9651
-E9B5AF EA4A
-E9B5B2 EA46
-E9B5BA EA4B
-E9B687 EA48
-E9B689 EA47
-E9B68F 8C7B
-E9B69A EA4C
-E9B6A4 EA4D
-E9B6A9 EA4E
-E9B6AB EA49
-E9B6AF E9F2
-E9B6B2 EA4F
-E9B6B4 92DF
-E9B6B8 EA53
-E9B6BA EA54
-E9B6BB EA52
-E9B781 EA51
-E9B782 EA57
-E9B784 EA50
-E9B786 EA55
-E9B78F EA56
-E9B793 EA59
-E9B799 EA58
-E9B7A6 EA5B
-E9B7AD EA5C
-E9B7AF EA5D
-E9B7B2 9868
-E9B7B8 EA5A
-E9B7B9 91E9
-E9B7BA 8DEB
-E9B7BD EA5E
-E9B89A EA5F
-E9B89B EA60
-E9B89E EA61
-E9B9B5 EA62
-E9B9B8 8CB2
-E9B9B9 EA63
-E9B9BD EA64
-E9B9BF 8EAD
-E9BA81 EA65
-E9BA88 EA66
-E9BA8B EA67
-E9BA8C EA68
-E9BA91 EA6B
-E9BA92 EA69
-E9BA93 985B
-E9BA95 EA6A
-E9BA97 97ED
-E9BA9D EA6C
-E9BA9F 97D9
-E9BAA5 EA6D
-E9BAA6 949E
-E9BAA9 EA6E
-E9BAAA EA70
-E9BAAD EA71
-E9BAB8 EA6F
-E9BAB9 8D8D
-E9BABA 96CB
-E9BABB 9683
-E9BABC 9BF5
-E9BABE 9F80
-E9BABF 969B
-E9BB84 89A9
-E9BB8C EA73
-E9BB8D 8B6F
-E9BB8E EA74
-E9BB8F EA75
-E9BB90 EA76
-E9BB92 8D95
-E9BB94 EA77
-E9BB98 E0D2
-E9BB99 96D9
-E9BB9B 91E1
-E9BB9C EA78
-E9BB9D EA7A
-E9BB9E EA79
-E9BBA0 EA7B
-E9BBA5 EA7C
-E9BBA8 EA7D
-E9BBAF EA7E
-E9BBB4 EA80
-E9BBB6 EA81
-E9BBB7 EA82
-E9BBB9 EA83
-E9BBBB EA84
-E9BBBC EA85
-E9BBBD EA86
-E9BC87 EA87
-E9BC88 EA88
-E9BC8E 9343
-E9BC93 8CDB
-E9BC95 EA8A
-E9BCA0 916C
-E9BCA1 EA8B
-E9BCAC EA8C
-E9BCBB 9540
-E9BCBE EA8D
-E9BD8A EA8E
-E9BD8B E256
-E9BD8E E6D8
-E9BD8F E8EB
-E9BD92 EA8F
-E9BD94 EA90
-E9BD9F EA92
-E9BDA0 EA93
-E9BDA1 EA94
-E9BDA2 97EE
-E9BDA3 EA91
-E9BDA6 EA95
-E9BDA7 EA96
-E9BDAA EA98
-E9BDAC EA97
-E9BDB2 EA9A
-E9BDB6 EA9B
-E9BDB7 EA99
-E9BE8D 97B4
-E9BE95 EA9C
-E9BE9C EA9D
-E9BE9D E273
-E9BEA0 EA9E
-EFBC81 8149
-EFBC83 8194
-EFBC84 8190
-EFBC85 8193
-EFBC86 8195
-EFBC88 8169
-EFBC89 816A
-EFBC8A 8196
-EFBC8B 817B
-EFBC8C 8143
-EFBC8E 8144
-EFBC8F 815E
-EFBC90 824F
-EFBC91 8250
-EFBC92 8251
-EFBC93 8252
-EFBC94 8253
-EFBC95 8254
-EFBC96 8255
-EFBC97 8256
-EFBC98 8257
-EFBC99 8258
-EFBC9A 8146
-EFBC9B 8147
-EFBC9C 8183
-EFBC9D 8181
-EFBC9E 8184
-EFBC9F 8148
-EFBCA0 8197
-EFBCA1 8260
-EFBCA2 8261
-EFBCA3 8262
-EFBCA4 8263
-EFBCA5 8264
-EFBCA6 8265
-EFBCA7 8266
-EFBCA8 8267
-EFBCA9 8268
-EFBCAA 8269
-EFBCAB 826A
-EFBCAC 826B
-EFBCAD 826C
-EFBCAE 826D
-EFBCAF 826E
-EFBCB0 826F
-EFBCB1 8270
-EFBCB2 8271
-EFBCB3 8272
-EFBCB4 8273
-EFBCB5 8274
-EFBCB6 8275
-EFBCB7 8276
-EFBCB8 8277
-EFBCB9 8278
-EFBCBA 8279
-EFBCBB 816D
-EFBCBD 816E
-EFBCBE 814F
-EFBCBF 8151
-EFBD80 814D
-EFBD81 8281
-EFBD82 8282
-EFBD83 8283
-EFBD84 8284
-EFBD85 8285
-EFBD86 8286
-EFBD87 8287
-EFBD88 8288
-EFBD89 8289
-EFBD8A 828A
-EFBD8B 828B
-EFBD8C 828C
-EFBD8D 828D
-EFBD8E 828E
-EFBD8F 828F
-EFBD90 8290
-EFBD91 8291
-EFBD92 8292
-EFBD93 8293
-EFBD94 8294
-EFBD95 8295
-EFBD96 8296
-EFBD97 8297
-EFBD98 8298
-EFBD99 8299
-EFBD9A 829A
-EFBD9B 816F
-EFBD9C 8162
-EFBD9D 8170
-EFBDA1 A1
-EFBDA2 A2
-EFBDA3 A3
-EFBDA4 A4
-EFBDA5 A5
-EFBDA6 A6
-EFBDA7 A7
-EFBDA8 A8
-EFBDA9 A9
-EFBDAA AA
-EFBDAB AB
-EFBDAC AC
-EFBDAD AD
-EFBDAE AE
-EFBDAF AF
-EFBDB0 B0
-EFBDB1 B1
-EFBDB2 B2
-EFBDB3 B3
-EFBDB4 B4
-EFBDB5 B5
-EFBDB6 B6
-EFBDB7 B7
-EFBDB8 B8
-EFBDB9 B9
-EFBDBA BA
-EFBDBB BB
-EFBDBC BC
-EFBDBD BD
-EFBDBE BE
-EFBDBF BF
-EFBE80 C0
-EFBE81 C1
-EFBE82 C2
-EFBE83 C3
-EFBE84 C4
-EFBE85 C5
-EFBE86 C6
-EFBE87 C7
-EFBE88 C8
-EFBE89 C9
-EFBE8A CA
-EFBE8B CB
-EFBE8C CC
-EFBE8D CD
-EFBE8E CE
-EFBE8F CF
-EFBE90 D0
-EFBE91 D1
-EFBE92 D2
-EFBE93 D3
-EFBE94 D4
-EFBE95 D5
-EFBE96 D6
-EFBE97 D7
-EFBE98 D8
-EFBE99 D9
-EFBE9A DA
-EFBE9B DB
-EFBE9C DC
-EFBE9D DD
-EFBE9E DE
-EFBE9F DF
-EFBFA3 8150
-EFBFA5 818F
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set names sjis;
-select @@collation_connection;
-@@collation_connection
-sjis_japanese_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET sjis NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-41
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET sjis DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-4141414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-4141414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41414141412020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41414141412020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-41
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-414243
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-4142
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-414243
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-4142432020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-41
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-4142
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-414220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-41422020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-4142202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-41422020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-41
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-4142
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-414243
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-41424320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-41
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-4142
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-414243
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-41424320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-sjis_japanese_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-41
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-414243
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-4142
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-414243
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-4142432020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020434241
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-BEBDBCDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDFBCBDBE
-select collation(cast(0x8140 as char));
-collation(cast(0x8140 as char))
-sjis_japanese_ci
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-4141
-select hex(weight_string(cast(0x8140 as char)));
-hex(weight_string(cast(0x8140 as char)))
-8140
-select hex(weight_string(cast(0x8140 as char) as char(1)));
-hex(weight_string(cast(0x8140 as char) as char(1)))
-8140
-select hex(weight_string(cast(0x81408140 as char) as char(1)));
-hex(weight_string(cast(0x81408140 as char) as char(1)))
-8140
-select hex(weight_string(cast(0x8140 as char) as char(3)));
-hex(weight_string(cast(0x8140 as char) as char(3)))
-81402020
-select hex(weight_string(cast(0x81408140 as char) as char(3)));
-hex(weight_string(cast(0x81408140 as char) as char(3)))
-8140814020
-select hex(weight_string(cast(0x408140 as char) as char(3)));
-hex(weight_string(cast(0x408140 as char) as char(3)))
-40814020
-select hex(weight_string(cast(0x4081408140 as char) as char(3)));
-hex(weight_string(cast(0x4081408140 as char) as char(3)))
-4081408140
-select hex(weight_string(cast(0x40814081408140 as char) as char(3)));
-hex(weight_string(cast(0x40814081408140 as char) as char(3)))
-4081408140
-select hex(weight_string(cast(0x4040814081408140 as char) as char(3)));
-hex(weight_string(cast(0x4040814081408140 as char) as char(3)))
-40408140
-select hex(weight_string(cast(0x814081408140 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 2, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 2, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 2, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 2, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 2, 0xC0))
-8140814020
-select hex(weight_string(cast(0x814081408140 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 2, 0xC0))
-81408140202020202020202020202020202020202020202020
-select hex(weight_string(cast(0x814081408140 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 3, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 3, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 3, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 3, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 3, 0xC0))
-8140814081
-select hex(weight_string(cast(0x814081408140 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 3, 0xC0))
-81408140814020202020202020202020202020202020202020
-select hex(weight_string(cast(0x814081408140 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 4, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 4, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 4, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 4, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 4, 0xC0))
-8140814081
-select hex(weight_string(cast(0x814081408140 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 4, 0xC0))
-81408140814020202020202020202020202020202020202020
-set collation_connection=sjis_bin;
-select @@collation_connection;
-@@collation_connection
-sjis_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET sjis COLLATE sjis_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-61
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET sjis COLLATE sjis_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-6161616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-6161616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61616161612020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61616161612020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-61
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-616263
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-6162
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-616263
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-6162632020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-61
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-6162
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-616220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-61622020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-6162202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-61622020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-61
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-6162
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-616263
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-61626320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-61
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-6162
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-616263
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-61626320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-sjis_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-61
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-616263
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-6162
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-616263
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-6162632020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020636261
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-9E9D9CDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDF9C9D9E
-select collation(cast(0x8140 as char));
-collation(cast(0x8140 as char))
-sjis_bin
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-6141
-select hex(weight_string(cast(0x8140 as char)));
-hex(weight_string(cast(0x8140 as char)))
-8140
-select hex(weight_string(cast(0x8140 as char) as char(1)));
-hex(weight_string(cast(0x8140 as char) as char(1)))
-8140
-select hex(weight_string(cast(0x81408140 as char) as char(1)));
-hex(weight_string(cast(0x81408140 as char) as char(1)))
-8140
-select hex(weight_string(cast(0x8140 as char) as char(3)));
-hex(weight_string(cast(0x8140 as char) as char(3)))
-81402020
-select hex(weight_string(cast(0x81408140 as char) as char(3)));
-hex(weight_string(cast(0x81408140 as char) as char(3)))
-8140814020
-select hex(weight_string(cast(0x408140 as char) as char(3)));
-hex(weight_string(cast(0x408140 as char) as char(3)))
-40814020
-select hex(weight_string(cast(0x4081408140 as char) as char(3)));
-hex(weight_string(cast(0x4081408140 as char) as char(3)))
-4081408140
-select hex(weight_string(cast(0x40814081408140 as char) as char(3)));
-hex(weight_string(cast(0x40814081408140 as char) as char(3)))
-4081408140
-select hex(weight_string(cast(0x4040814081408140 as char) as char(3)));
-hex(weight_string(cast(0x4040814081408140 as char) as char(3)))
-40408140
-select hex(weight_string(cast(0x814081408140 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 2, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 2, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 2, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 2, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 2, 0xC0))
-8140814020
-select hex(weight_string(cast(0x814081408140 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 2, 0xC0))
-81408140202020202020202020202020202020202020202020
-select hex(weight_string(cast(0x814081408140 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 3, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 3, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 3, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 3, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 3, 0xC0))
-8140814081
-select hex(weight_string(cast(0x814081408140 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 3, 0xC0))
-81408140814020202020202020202020202020202020202020
-select hex(weight_string(cast(0x814081408140 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 1, 4, 0xC0))
-81
-select hex(weight_string(cast(0x814081408140 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 2, 4, 0xC0))
-8140
-select hex(weight_string(cast(0x814081408140 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 3, 4, 0xC0))
-814081
-select hex(weight_string(cast(0x814081408140 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 4, 4, 0xC0))
-81408140
-select hex(weight_string(cast(0x814081408140 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char), 5, 4, 0xC0))
-8140814081
-select hex(weight_string(cast(0x814081408140 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x814081408140 as char),25, 4, 0xC0))
-81408140814020202020202020202020202020202020202020
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.0 tests
-#
-# Start of ctype_unescape.inc
-SET sql_mode = '';
-SET @query=_binary'SELECT CHARSET(\'test\'),@@character_set_client,@@character_set_connection';
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-CHARSET('test') @@character_set_client @@character_set_connection
-sjis sjis sjis
-DEALLOCATE PREPARE stmt;
-CREATE TABLE allbytes (a VARBINARY(10));
-# Using selected bytes combinations
-CREATE TABLE halfs (a INT);
-INSERT INTO halfs VALUES (0x00),(0x01),(0x02),(0x03),(0x04),(0x05),(0x06),(0x07);
-INSERT INTO halfs VALUES (0x08),(0x09),(0x0A),(0x0B),(0x0C),(0x0D),(0x0E),(0x0F);
-CREATE TEMPORARY TABLE bytes (a BINARY(1), KEY(a)) ENGINE=MyISAM;
-INSERT INTO bytes SELECT CHAR((t1.a << 4) | t2.a USING BINARY) FROM halfs t1, halfs t2;
-DROP TABLE halfs;
-CREATE TABLE selected_bytes (a VARBINARY(10));
-INSERT INTO selected_bytes (a) VALUES ('\0'),('\b'),('\t'),('\r'),('\n'),('\Z');
-INSERT INTO selected_bytes (a) VALUES ('0'),('b'),('t'),('r'),('n'),('Z');
-INSERT INTO selected_bytes (a) VALUES ('\\'),('_'),('%'),(0x22),(0x27);
-INSERT INTO selected_bytes (a) VALUES ('a');
-INSERT INTO selected_bytes (a) VALUES
-(0x3F), # 7bit
-(0x40), # 7bit mbtail
-(0x7E), # 7bit mbtail nonascii-8bit
-(0x7F), # 7bit nonascii-8bit
-(0x80), # mbtail bad-mb
-(0x81), # mbhead mbtail
-(0x9F), # mbhead mbtail bad-mb
-(0xA0), # mbhead mbtail bad-mb
-(0xA1), # mbhead mbtail nonascii-8bit
-(0xE0), # mbhead mbtai
-(0xEF), # mbhead mbtail
-(0xF9), # mbhead mbtail
-(0xFA), # mbhead mbtail bad-mb
-(0xFC), # mbhead mbtail bad-mb
-(0xFD), # mbhead mbtail bad-mb
-(0xFE), # mbhead mbtial bad-mb
-(0xFF);
-INSERT INTO allbytes (a) SELECT a FROM bytes;
-INSERT INTO allbytes (a) SELECT CONCAT(t1.a,t2.a) FROM selected_bytes t1,selected_bytes t2;
-INSERT INTO allbytes (a) SELECT CONCAT(0x5C,t1.a,t2.a) FROM selected_bytes t1,selected_bytes t2;
-INSERT INTO allbytes (a) SELECT CONCAT(0x5C,t1.a,0x5C,t2.a) FROM selected_bytes t1,selected_bytes t2;
-DROP TABLE selected_bytes;
-DELETE FROM allbytes WHERE
-OCTET_LENGTH(a)>1 AND
-LOCATE(0x5C,a)=0 AND
-a NOT LIKE '%\'%' AND
- a NOT LIKE '%"%';
-CREATE PROCEDURE p1(val VARBINARY(10))
-BEGIN
-DECLARE EXIT HANDLER FOR SQLSTATE '42000' INSERT INTO t1 (a,b) VALUES(val,NULL);
-SET @query=CONCAT(_binary"INSERT INTO t1 (a,b) VALUES (0x",HEX(val),",'",val,"')");
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-END//
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE val VARBINARY(10);
-DECLARE done INT DEFAULT FALSE;
-DECLARE stmt CURSOR FOR SELECT a FROM allbytes;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN stmt;
-read_loop1: LOOP
-FETCH stmt INTO val;
-IF done THEN
-LEAVE read_loop1;
-END IF;
-CALL p1(val);
-END LOOP;
-CLOSE stmt;
-END//
-CREATE FUNCTION iswellformed(a VARBINARY(256)) RETURNS INT RETURN a=BINARY CONVERT(a USING sjis);//
-CREATE FUNCTION unescape(a VARBINARY(256)) RETURNS VARBINARY(256)
-BEGIN
-# We need to do it in a way to avoid producing new escape sequences
-# First, enclose all known escsape sequences to '{{xx}}'
- # - Backslash not followed by a LIKE pattern characters _ and %
-# - Double escapes
-# This uses PCRE Branch Reset Groups: (?|(alt1)|(alt2)|(alt3)).
-# So '\\1' in the last argument always means the match, no matter
-# which alternative it came from.
-SET a=REGEXP_REPLACE(a,'(?|(\\\\[^_%])|(\\x{27}\\x{27}))','{{\\1}}');
-# Now unescape all enclosed standard escape sequences
-SET a=REPLACE(a,'{{\\0}}', '\0');
-SET a=REPLACE(a,'{{\\b}}', '\b');
-SET a=REPLACE(a,'{{\\t}}', '\t');
-SET a=REPLACE(a,'{{\\r}}', '\r');
-SET a=REPLACE(a,'{{\\n}}', '\n');
-SET a=REPLACE(a,'{{\\Z}}', '\Z');
-SET a=REPLACE(a,'{{\\\'}}', '\'');
-# Unescape double quotes
-SET a=REPLACE(a,'{{\'\'}}', '\'');
- # Unescape the rest: all other \x sequences mean just 'x'
- SET a=REGEXP_REPLACE(a, '{{\\\\(.|\\R)}}', '\\1');
- RETURN a;
-END//
-CREATE FUNCTION unescape_type(a VARBINARY(256),b VARBINARY(256)) RETURNS VARBINARY(256)
-BEGIN
-RETURN CASE
-WHEN b IS NULL THEN '[SyntErr]'
- WHEN a=b THEN CASE
-WHEN OCTET_LENGTH(a)=1 THEN '[Preserve]'
- WHEN a RLIKE '\\\\[_%]' THEN '[Preserve][LIKE]'
- WHEN a RLIKE '^[[:ascii:]]+$' THEN '[Preserve][ASCII]'
- ELSE '[Preserv][MB]' END
-WHEN REPLACE(a,0x5C,'')=b THEN '[Trivial]'
- WHEN UNESCAPE(a)=b THEN '[Regular]'
- ELSE '[Special]' END;
-END//
-CREATE FUNCTION wellformedness(a VARBINARY(256), b VARBINARY(256))
-RETURNS VARBINARY(256)
-BEGIN
-RETURN CASE
-WHEN b IS NULL THEN ''
- WHEN NOT iswellformed(a) AND iswellformed(b) THEN '[FIXED]'
- WHEN iswellformed(a) AND NOT iswellformed(b) THEN '[BROKE]'
- WHEN NOT iswellformed(a) AND NOT iswellformed(b) THEN '[ILSEQ]'
- ELSE ''
- END;
-END//
-CREATE FUNCTION mysql_real_escape_string_generated(a VARBINARY(256))
-RETURNS VARBINARY(256)
-BEGIN
-DECLARE a1 BINARY(1) DEFAULT SUBSTR(a,1,1);
-DECLARE a2 BINARY(1) DEFAULT SUBSTR(a,2,1);
-DECLARE a3 BINARY(1) DEFAULT SUBSTR(a,3,1);
-DECLARE a4 BINARY(1) DEFAULT SUBSTR(a,4,1);
-DECLARE a2a4 BINARY(2) DEFAULT CONCAT(a2,a4);
-RETURN CASE
-WHEN (a1=0x5C) AND
-(a3=0x5C) AND
-(a2>0x7F) AND
-(a4 NOT IN ('_','%','0','t','r','n','Z')) AND
-iswellformed(a2a4) THEN '[USER]'
- ELSE ''
- END;
-END//
-CREATE TABLE t1 (a VARBINARY(10),b VARBINARY(10));
-CALL p2();
-SELECT HEX(a),HEX(b),
-CONCAT(unescape_type(a,b),
-wellformedness(a,b),
-mysql_real_escape_string_generated(a),
-IF(UNESCAPE(a)<>b,CONCAT('[BAD',HEX(UNESCAPE(a)),']'),'')) AS comment
-FROM t1 ORDER BY LENGTH(a),a;
-HEX(a) HEX(b) comment
-00 00 [Preserve]
-01 01 [Preserve]
-02 02 [Preserve]
-03 03 [Preserve]
-04 04 [Preserve]
-05 05 [Preserve]
-06 06 [Preserve]
-07 07 [Preserve]
-08 08 [Preserve]
-09 09 [Preserve]
-0A 0A [Preserve]
-0B 0B [Preserve]
-0C 0C [Preserve]
-0D 0D [Preserve]
-0E 0E [Preserve]
-0F 0F [Preserve]
-10 10 [Preserve]
-11 11 [Preserve]
-12 12 [Preserve]
-13 13 [Preserve]
-14 14 [Preserve]
-15 15 [Preserve]
-16 16 [Preserve]
-17 17 [Preserve]
-18 18 [Preserve]
-19 19 [Preserve]
-1A 1A [Preserve]
-1B 1B [Preserve]
-1C 1C [Preserve]
-1D 1D [Preserve]
-1E 1E [Preserve]
-1F 1F [Preserve]
-20 20 [Preserve]
-21 21 [Preserve]
-22 22 [Preserve]
-23 23 [Preserve]
-24 24 [Preserve]
-25 25 [Preserve]
-26 26 [Preserve]
-27 NULL [SyntErr]
-28 28 [Preserve]
-29 29 [Preserve]
-2A 2A [Preserve]
-2B 2B [Preserve]
-2C 2C [Preserve]
-2D 2D [Preserve]
-2E 2E [Preserve]
-2F 2F [Preserve]
-30 30 [Preserve]
-31 31 [Preserve]
-32 32 [Preserve]
-33 33 [Preserve]
-34 34 [Preserve]
-35 35 [Preserve]
-36 36 [Preserve]
-37 37 [Preserve]
-38 38 [Preserve]
-39 39 [Preserve]
-3A 3A [Preserve]
-3B 3B [Preserve]
-3C 3C [Preserve]
-3D 3D [Preserve]
-3E 3E [Preserve]
-3F 3F [Preserve]
-40 40 [Preserve]
-41 41 [Preserve]
-42 42 [Preserve]
-43 43 [Preserve]
-44 44 [Preserve]
-45 45 [Preserve]
-46 46 [Preserve]
-47 47 [Preserve]
-48 48 [Preserve]
-49 49 [Preserve]
-4A 4A [Preserve]
-4B 4B [Preserve]
-4C 4C [Preserve]
-4D 4D [Preserve]
-4E 4E [Preserve]
-4F 4F [Preserve]
-50 50 [Preserve]
-51 51 [Preserve]
-52 52 [Preserve]
-53 53 [Preserve]
-54 54 [Preserve]
-55 55 [Preserve]
-56 56 [Preserve]
-57 57 [Preserve]
-58 58 [Preserve]
-59 59 [Preserve]
-5A 5A [Preserve]
-5B 5B [Preserve]
-5C NULL [SyntErr]
-5D 5D [Preserve]
-5E 5E [Preserve]
-5F 5F [Preserve]
-60 60 [Preserve]
-61 61 [Preserve]
-62 62 [Preserve]
-63 63 [Preserve]
-64 64 [Preserve]
-65 65 [Preserve]
-66 66 [Preserve]
-67 67 [Preserve]
-68 68 [Preserve]
-69 69 [Preserve]
-6A 6A [Preserve]
-6B 6B [Preserve]
-6C 6C [Preserve]
-6D 6D [Preserve]
-6E 6E [Preserve]
-6F 6F [Preserve]
-70 70 [Preserve]
-71 71 [Preserve]
-72 72 [Preserve]
-73 73 [Preserve]
-74 74 [Preserve]
-75 75 [Preserve]
-76 76 [Preserve]
-77 77 [Preserve]
-78 78 [Preserve]
-79 79 [Preserve]
-7A 7A [Preserve]
-7B 7B [Preserve]
-7C 7C [Preserve]
-7D 7D [Preserve]
-7E 7E [Preserve]
-7F 7F [Preserve]
-80 80 [Preserve][ILSEQ]
-81 81 [Preserve][ILSEQ]
-82 82 [Preserve][ILSEQ]
-83 83 [Preserve][ILSEQ]
-84 84 [Preserve][ILSEQ]
-85 85 [Preserve][ILSEQ]
-86 86 [Preserve][ILSEQ]
-87 87 [Preserve][ILSEQ]
-88 88 [Preserve][ILSEQ]
-89 89 [Preserve][ILSEQ]
-8A 8A [Preserve][ILSEQ]
-8B 8B [Preserve][ILSEQ]
-8C 8C [Preserve][ILSEQ]
-8D 8D [Preserve][ILSEQ]
-8E 8E [Preserve][ILSEQ]
-8F 8F [Preserve][ILSEQ]
-90 90 [Preserve][ILSEQ]
-91 91 [Preserve][ILSEQ]
-92 92 [Preserve][ILSEQ]
-93 93 [Preserve][ILSEQ]
-94 94 [Preserve][ILSEQ]
-95 95 [Preserve][ILSEQ]
-96 96 [Preserve][ILSEQ]
-97 97 [Preserve][ILSEQ]
-98 98 [Preserve][ILSEQ]
-99 99 [Preserve][ILSEQ]
-9A 9A [Preserve][ILSEQ]
-9B 9B [Preserve][ILSEQ]
-9C 9C [Preserve][ILSEQ]
-9D 9D [Preserve][ILSEQ]
-9E 9E [Preserve][ILSEQ]
-9F 9F [Preserve][ILSEQ]
-A0 A0 [Preserve][ILSEQ]
-A1 A1 [Preserve]
-A2 A2 [Preserve]
-A3 A3 [Preserve]
-A4 A4 [Preserve]
-A5 A5 [Preserve]
-A6 A6 [Preserve]
-A7 A7 [Preserve]
-A8 A8 [Preserve]
-A9 A9 [Preserve]
-AA AA [Preserve]
-AB AB [Preserve]
-AC AC [Preserve]
-AD AD [Preserve]
-AE AE [Preserve]
-AF AF [Preserve]
-B0 B0 [Preserve]
-B1 B1 [Preserve]
-B2 B2 [Preserve]
-B3 B3 [Preserve]
-B4 B4 [Preserve]
-B5 B5 [Preserve]
-B6 B6 [Preserve]
-B7 B7 [Preserve]
-B8 B8 [Preserve]
-B9 B9 [Preserve]
-BA BA [Preserve]
-BB BB [Preserve]
-BC BC [Preserve]
-BD BD [Preserve]
-BE BE [Preserve]
-BF BF [Preserve]
-C0 C0 [Preserve]
-C1 C1 [Preserve]
-C2 C2 [Preserve]
-C3 C3 [Preserve]
-C4 C4 [Preserve]
-C5 C5 [Preserve]
-C6 C6 [Preserve]
-C7 C7 [Preserve]
-C8 C8 [Preserve]
-C9 C9 [Preserve]
-CA CA [Preserve]
-CB CB [Preserve]
-CC CC [Preserve]
-CD CD [Preserve]
-CE CE [Preserve]
-CF CF [Preserve]
-D0 D0 [Preserve]
-D1 D1 [Preserve]
-D2 D2 [Preserve]
-D3 D3 [Preserve]
-D4 D4 [Preserve]
-D5 D5 [Preserve]
-D6 D6 [Preserve]
-D7 D7 [Preserve]
-D8 D8 [Preserve]
-D9 D9 [Preserve]
-DA DA [Preserve]
-DB DB [Preserve]
-DC DC [Preserve]
-DD DD [Preserve]
-DE DE [Preserve]
-DF DF [Preserve]
-E0 E0 [Preserve][ILSEQ]
-E1 E1 [Preserve][ILSEQ]
-E2 E2 [Preserve][ILSEQ]
-E3 E3 [Preserve][ILSEQ]
-E4 E4 [Preserve][ILSEQ]
-E5 E5 [Preserve][ILSEQ]
-E6 E6 [Preserve][ILSEQ]
-E7 E7 [Preserve][ILSEQ]
-E8 E8 [Preserve][ILSEQ]
-E9 E9 [Preserve][ILSEQ]
-EA EA [Preserve][ILSEQ]
-EB EB [Preserve][ILSEQ]
-EC EC [Preserve][ILSEQ]
-ED ED [Preserve][ILSEQ]
-EE EE [Preserve][ILSEQ]
-EF EF [Preserve][ILSEQ]
-F0 F0 [Preserve][ILSEQ]
-F1 F1 [Preserve][ILSEQ]
-F2 F2 [Preserve][ILSEQ]
-F3 F3 [Preserve][ILSEQ]
-F4 F4 [Preserve][ILSEQ]
-F5 F5 [Preserve][ILSEQ]
-F6 F6 [Preserve][ILSEQ]
-F7 F7 [Preserve][ILSEQ]
-F8 F8 [Preserve][ILSEQ]
-F9 F9 [Preserve][ILSEQ]
-FA FA [Preserve][ILSEQ]
-FB FB [Preserve][ILSEQ]
-FC FC [Preserve][ILSEQ]
-FD FD [Preserve][ILSEQ]
-FE FE [Preserve][ILSEQ]
-FF FF [Preserve][ILSEQ]
-0022 0022 [Preserve][ASCII]
-0027 NULL [SyntErr]
-005C NULL [SyntErr]
-0822 0822 [Preserve][ASCII]
-0827 NULL [SyntErr]
-085C NULL [SyntErr]
-0922 0922 [Preserve][ASCII]
-0927 NULL [SyntErr]
-095C NULL [SyntErr]
-0A22 0A22 [Preserve][ASCII]
-0A27 NULL [SyntErr]
-0A5C NULL [SyntErr]
-0D22 0D22 [Preserve][ASCII]
-0D27 NULL [SyntErr]
-0D5C NULL [SyntErr]
-1A22 1A22 [Preserve][ASCII]
-1A27 NULL [SyntErr]
-1A5C NULL [SyntErr]
-2200 2200 [Preserve][ASCII]
-2208 2208 [Preserve][ASCII]
-2209 2209 [Preserve][ASCII]
-220A 220A [Preserve][ASCII]
-220D 220D [Preserve][ASCII]
-221A 221A [Preserve][ASCII]
-2222 2222 [Preserve][ASCII]
-2225 2225 [Preserve][ASCII]
-2227 NULL [SyntErr]
-2230 2230 [Preserve][ASCII]
-223F 223F [Preserve][ASCII]
-2240 2240 [Preserve][ASCII]
-225A 225A [Preserve][ASCII]
-225C NULL [SyntErr]
-225F 225F [Preserve][ASCII]
-2261 2261 [Preserve][ASCII]
-2262 2262 [Preserve][ASCII]
-226E 226E [Preserve][ASCII]
-2272 2272 [Preserve][ASCII]
-2274 2274 [Preserve][ASCII]
-227E 227E [Preserve][ASCII]
-227F 227F [Preserve][ASCII]
-2280 2280 [Preserv][MB][ILSEQ]
-2281 2281 [Preserv][MB][ILSEQ]
-229F 229F [Preserv][MB][ILSEQ]
-22A0 22A0 [Preserv][MB][ILSEQ]
-22A1 22A1 [Preserv][MB]
-22E0 22E0 [Preserv][MB][ILSEQ]
-22EF 22EF [Preserv][MB][ILSEQ]
-22F9 22F9 [Preserv][MB][ILSEQ]
-22FA 22FA [Preserv][MB][ILSEQ]
-22FC 22FC [Preserv][MB][ILSEQ]
-22FD 22FD [Preserv][MB][ILSEQ]
-22FE 22FE [Preserv][MB][ILSEQ]
-22FF 22FF [Preserv][MB][ILSEQ]
-2522 2522 [Preserve][ASCII]
-2527 NULL [SyntErr]
-255C NULL [SyntErr]
-2700 NULL [SyntErr]
-2708 NULL [SyntErr]
-2709 NULL [SyntErr]
-270A NULL [SyntErr]
-270D NULL [SyntErr]
-271A NULL [SyntErr]
-2722 NULL [SyntErr]
-2725 NULL [SyntErr]
-2727 27 [Regular]
-2730 NULL [SyntErr]
-273F NULL [SyntErr]
-2740 NULL [SyntErr]
-275A NULL [SyntErr]
-275C NULL [SyntErr]
-275F NULL [SyntErr]
-2761 NULL [SyntErr]
-2762 NULL [SyntErr]
-276E NULL [SyntErr]
-2772 NULL [SyntErr]
-2774 NULL [SyntErr]
-277E NULL [SyntErr]
-277F NULL [SyntErr]
-2780 NULL [SyntErr]
-2781 NULL [SyntErr]
-279F NULL [SyntErr]
-27A0 NULL [SyntErr]
-27A1 NULL [SyntErr]
-27E0 NULL [SyntErr]
-27EF NULL [SyntErr]
-27F9 NULL [SyntErr]
-27FA NULL [SyntErr]
-27FC NULL [SyntErr]
-27FD NULL [SyntErr]
-27FE NULL [SyntErr]
-27FF NULL [SyntErr]
-3022 3022 [Preserve][ASCII]
-3027 NULL [SyntErr]
-305C NULL [SyntErr]
-3F22 3F22 [Preserve][ASCII]
-3F27 NULL [SyntErr]
-3F5C NULL [SyntErr]
-4022 4022 [Preserve][ASCII]
-4027 NULL [SyntErr]
-405C NULL [SyntErr]
-5A22 5A22 [Preserve][ASCII]
-5A27 NULL [SyntErr]
-5A5C NULL [SyntErr]
-5C00 00 [Trivial]
-5C08 08 [Trivial]
-5C09 09 [Trivial]
-5C0A 0A [Trivial]
-5C0D 0D [Trivial]
-5C1A 1A [Trivial]
-5C22 22 [Trivial]
-5C25 5C25 [Preserve][LIKE]
-5C27 27 [Trivial]
-5C30 00 [Regular]
-5C3F 3F [Trivial]
-5C40 40 [Trivial]
-5C5A 1A [Regular]
-5C5C 5C [Regular]
-5C5F 5C5F [Preserve][LIKE]
-5C61 61 [Trivial]
-5C62 08 [Regular]
-5C6E 0A [Regular]
-5C72 0D [Regular]
-5C74 09 [Regular]
-5C7E 7E [Trivial]
-5C7F 7F [Trivial]
-5C80 80 [Trivial][ILSEQ]
-5C81 81 [Trivial][ILSEQ]
-5C9F 9F [Trivial][ILSEQ]
-5CA0 A0 [Trivial][ILSEQ]
-5CA1 A1 [Trivial]
-5CE0 E0 [Trivial][ILSEQ]
-5CEF EF [Trivial][ILSEQ]
-5CF9 F9 [Trivial][ILSEQ]
-5CFA FA [Trivial][ILSEQ]
-5CFC FC [Trivial][ILSEQ]
-5CFD FD [Trivial][ILSEQ]
-5CFE FE [Trivial][ILSEQ]
-5CFF FF [Trivial][ILSEQ]
-5F22 5F22 [Preserve][ASCII]
-5F27 NULL [SyntErr]
-5F5C NULL [SyntErr]
-6122 6122 [Preserve][ASCII]
-6127 NULL [SyntErr]
-615C NULL [SyntErr]
-6222 6222 [Preserve][ASCII]
-6227 NULL [SyntErr]
-625C NULL [SyntErr]
-6E22 6E22 [Preserve][ASCII]
-6E27 NULL [SyntErr]
-6E5C NULL [SyntErr]
-7222 7222 [Preserve][ASCII]
-7227 NULL [SyntErr]
-725C NULL [SyntErr]
-7422 7422 [Preserve][ASCII]
-7427 NULL [SyntErr]
-745C NULL [SyntErr]
-7E22 7E22 [Preserve][ASCII]
-7E27 NULL [SyntErr]
-7E5C NULL [SyntErr]
-7F22 7F22 [Preserve][ASCII]
-7F27 NULL [SyntErr]
-7F5C NULL [SyntErr]
-8022 8022 [Preserv][MB][ILSEQ]
-8027 NULL [SyntErr]
-805C NULL [SyntErr]
-8122 8122 [Preserv][MB][ILSEQ]
-8127 NULL [SyntErr]
-815C 815C [Preserv][MB]
-9F22 9F22 [Preserv][MB][ILSEQ]
-9F27 NULL [SyntErr]
-9F5C 9F5C [Preserv][MB]
-A022 A022 [Preserv][MB][ILSEQ]
-A027 NULL [SyntErr]
-A05C NULL [SyntErr]
-A122 A122 [Preserv][MB]
-A127 NULL [SyntErr]
-A15C NULL [SyntErr]
-E022 E022 [Preserv][MB][ILSEQ]
-E027 NULL [SyntErr]
-E05C E05C [Preserv][MB]
-EF22 EF22 [Preserv][MB][ILSEQ]
-EF27 NULL [SyntErr]
-EF5C EF5C [Preserv][MB]
-F922 F922 [Preserv][MB][ILSEQ]
-F927 NULL [SyntErr]
-F95C F95C [Preserv][MB]
-FA22 FA22 [Preserv][MB][ILSEQ]
-FA27 NULL [SyntErr]
-FA5C FA5C [Preserv][MB]
-FC22 FC22 [Preserv][MB][ILSEQ]
-FC27 NULL [SyntErr]
-FC5C FC5C [Preserv][MB]
-FD22 FD22 [Preserv][MB][ILSEQ]
-FD27 NULL [SyntErr]
-FD5C NULL [SyntErr]
-FE22 FE22 [Preserv][MB][ILSEQ]
-FE27 NULL [SyntErr]
-FE5C NULL [SyntErr]
-FF22 FF22 [Preserv][MB][ILSEQ]
-FF27 NULL [SyntErr]
-FF5C NULL [SyntErr]
-5C0000 0000 [Trivial]
-5C0008 0008 [Trivial]
-5C0009 0009 [Trivial]
-5C000A 000A [Trivial]
-5C000D 000D [Trivial]
-5C001A 001A [Trivial]
-5C0022 0022 [Trivial]
-5C0025 0025 [Trivial]
-5C0027 NULL [SyntErr]
-5C0030 0030 [Trivial]
-5C003F 003F [Trivial]
-5C0040 0040 [Trivial]
-5C005A 005A [Trivial]
-5C005C NULL [SyntErr]
-5C005F 005F [Trivial]
-5C0061 0061 [Trivial]
-5C0062 0062 [Trivial]
-5C006E 006E [Trivial]
-5C0072 0072 [Trivial]
-5C0074 0074 [Trivial]
-5C007E 007E [Trivial]
-5C007F 007F [Trivial]
-5C0080 0080 [Trivial][ILSEQ]
-5C0081 0081 [Trivial][ILSEQ]
-5C009F 009F [Trivial][ILSEQ]
-5C00A0 00A0 [Trivial][ILSEQ]
-5C00A1 00A1 [Trivial]
-5C00E0 00E0 [Trivial][ILSEQ]
-5C00EF 00EF [Trivial][ILSEQ]
-5C00F9 00F9 [Trivial][ILSEQ]
-5C00FA 00FA [Trivial][ILSEQ]
-5C00FC 00FC [Trivial][ILSEQ]
-5C00FD 00FD [Trivial][ILSEQ]
-5C00FE 00FE [Trivial][ILSEQ]
-5C00FF 00FF [Trivial][ILSEQ]
-5C0800 0800 [Trivial]
-5C0808 0808 [Trivial]
-5C0809 0809 [Trivial]
-5C080A 080A [Trivial]
-5C080D 080D [Trivial]
-5C081A 081A [Trivial]
-5C0822 0822 [Trivial]
-5C0825 0825 [Trivial]
-5C0827 NULL [SyntErr]
-5C0830 0830 [Trivial]
-5C083F 083F [Trivial]
-5C0840 0840 [Trivial]
-5C085A 085A [Trivial]
-5C085C NULL [SyntErr]
-5C085F 085F [Trivial]
-5C0861 0861 [Trivial]
-5C0862 0862 [Trivial]
-5C086E 086E [Trivial]
-5C0872 0872 [Trivial]
-5C0874 0874 [Trivial]
-5C087E 087E [Trivial]
-5C087F 087F [Trivial]
-5C0880 0880 [Trivial][ILSEQ]
-5C0881 0881 [Trivial][ILSEQ]
-5C089F 089F [Trivial][ILSEQ]
-5C08A0 08A0 [Trivial][ILSEQ]
-5C08A1 08A1 [Trivial]
-5C08E0 08E0 [Trivial][ILSEQ]
-5C08EF 08EF [Trivial][ILSEQ]
-5C08F9 08F9 [Trivial][ILSEQ]
-5C08FA 08FA [Trivial][ILSEQ]
-5C08FC 08FC [Trivial][ILSEQ]
-5C08FD 08FD [Trivial][ILSEQ]
-5C08FE 08FE [Trivial][ILSEQ]
-5C08FF 08FF [Trivial][ILSEQ]
-5C0900 0900 [Trivial]
-5C0908 0908 [Trivial]
-5C0909 0909 [Trivial]
-5C090A 090A [Trivial]
-5C090D 090D [Trivial]
-5C091A 091A [Trivial]
-5C0922 0922 [Trivial]
-5C0925 0925 [Trivial]
-5C0927 NULL [SyntErr]
-5C0930 0930 [Trivial]
-5C093F 093F [Trivial]
-5C0940 0940 [Trivial]
-5C095A 095A [Trivial]
-5C095C NULL [SyntErr]
-5C095F 095F [Trivial]
-5C0961 0961 [Trivial]
-5C0962 0962 [Trivial]
-5C096E 096E [Trivial]
-5C0972 0972 [Trivial]
-5C0974 0974 [Trivial]
-5C097E 097E [Trivial]
-5C097F 097F [Trivial]
-5C0980 0980 [Trivial][ILSEQ]
-5C0981 0981 [Trivial][ILSEQ]
-5C099F 099F [Trivial][ILSEQ]
-5C09A0 09A0 [Trivial][ILSEQ]
-5C09A1 09A1 [Trivial]
-5C09E0 09E0 [Trivial][ILSEQ]
-5C09EF 09EF [Trivial][ILSEQ]
-5C09F9 09F9 [Trivial][ILSEQ]
-5C09FA 09FA [Trivial][ILSEQ]
-5C09FC 09FC [Trivial][ILSEQ]
-5C09FD 09FD [Trivial][ILSEQ]
-5C09FE 09FE [Trivial][ILSEQ]
-5C09FF 09FF [Trivial][ILSEQ]
-5C0A00 0A00 [Trivial]
-5C0A08 0A08 [Trivial]
-5C0A09 0A09 [Trivial]
-5C0A0A 0A0A [Trivial]
-5C0A0D 0A0D [Trivial]
-5C0A1A 0A1A [Trivial]
-5C0A22 0A22 [Trivial]
-5C0A25 0A25 [Trivial]
-5C0A27 NULL [SyntErr]
-5C0A30 0A30 [Trivial]
-5C0A3F 0A3F [Trivial]
-5C0A40 0A40 [Trivial]
-5C0A5A 0A5A [Trivial]
-5C0A5C NULL [SyntErr]
-5C0A5F 0A5F [Trivial]
-5C0A61 0A61 [Trivial]
-5C0A62 0A62 [Trivial]
-5C0A6E 0A6E [Trivial]
-5C0A72 0A72 [Trivial]
-5C0A74 0A74 [Trivial]
-5C0A7E 0A7E [Trivial]
-5C0A7F 0A7F [Trivial]
-5C0A80 0A80 [Trivial][ILSEQ]
-5C0A81 0A81 [Trivial][ILSEQ]
-5C0A9F 0A9F [Trivial][ILSEQ]
-5C0AA0 0AA0 [Trivial][ILSEQ]
-5C0AA1 0AA1 [Trivial]
-5C0AE0 0AE0 [Trivial][ILSEQ]
-5C0AEF 0AEF [Trivial][ILSEQ]
-5C0AF9 0AF9 [Trivial][ILSEQ]
-5C0AFA 0AFA [Trivial][ILSEQ]
-5C0AFC 0AFC [Trivial][ILSEQ]
-5C0AFD 0AFD [Trivial][ILSEQ]
-5C0AFE 0AFE [Trivial][ILSEQ]
-5C0AFF 0AFF [Trivial][ILSEQ]
-5C0D00 0D00 [Trivial]
-5C0D08 0D08 [Trivial]
-5C0D09 0D09 [Trivial]
-5C0D0A 0D0A [Trivial]
-5C0D0D 0D0D [Trivial]
-5C0D1A 0D1A [Trivial]
-5C0D22 0D22 [Trivial]
-5C0D25 0D25 [Trivial]
-5C0D27 NULL [SyntErr]
-5C0D30 0D30 [Trivial]
-5C0D3F 0D3F [Trivial]
-5C0D40 0D40 [Trivial]
-5C0D5A 0D5A [Trivial]
-5C0D5C NULL [SyntErr]
-5C0D5F 0D5F [Trivial]
-5C0D61 0D61 [Trivial]
-5C0D62 0D62 [Trivial]
-5C0D6E 0D6E [Trivial]
-5C0D72 0D72 [Trivial]
-5C0D74 0D74 [Trivial]
-5C0D7E 0D7E [Trivial]
-5C0D7F 0D7F [Trivial]
-5C0D80 0D80 [Trivial][ILSEQ]
-5C0D81 0D81 [Trivial][ILSEQ]
-5C0D9F 0D9F [Trivial][ILSEQ]
-5C0DA0 0DA0 [Trivial][ILSEQ]
-5C0DA1 0DA1 [Trivial]
-5C0DE0 0DE0 [Trivial][ILSEQ]
-5C0DEF 0DEF [Trivial][ILSEQ]
-5C0DF9 0DF9 [Trivial][ILSEQ]
-5C0DFA 0DFA [Trivial][ILSEQ]
-5C0DFC 0DFC [Trivial][ILSEQ]
-5C0DFD 0DFD [Trivial][ILSEQ]
-5C0DFE 0DFE [Trivial][ILSEQ]
-5C0DFF 0DFF [Trivial][ILSEQ]
-5C1A00 1A00 [Trivial]
-5C1A08 1A08 [Trivial]
-5C1A09 1A09 [Trivial]
-5C1A0A 1A0A [Trivial]
-5C1A0D 1A0D [Trivial]
-5C1A1A 1A1A [Trivial]
-5C1A22 1A22 [Trivial]
-5C1A25 1A25 [Trivial]
-5C1A27 NULL [SyntErr]
-5C1A30 1A30 [Trivial]
-5C1A3F 1A3F [Trivial]
-5C1A40 1A40 [Trivial]
-5C1A5A 1A5A [Trivial]
-5C1A5C NULL [SyntErr]
-5C1A5F 1A5F [Trivial]
-5C1A61 1A61 [Trivial]
-5C1A62 1A62 [Trivial]
-5C1A6E 1A6E [Trivial]
-5C1A72 1A72 [Trivial]
-5C1A74 1A74 [Trivial]
-5C1A7E 1A7E [Trivial]
-5C1A7F 1A7F [Trivial]
-5C1A80 1A80 [Trivial][ILSEQ]
-5C1A81 1A81 [Trivial][ILSEQ]
-5C1A9F 1A9F [Trivial][ILSEQ]
-5C1AA0 1AA0 [Trivial][ILSEQ]
-5C1AA1 1AA1 [Trivial]
-5C1AE0 1AE0 [Trivial][ILSEQ]
-5C1AEF 1AEF [Trivial][ILSEQ]
-5C1AF9 1AF9 [Trivial][ILSEQ]
-5C1AFA 1AFA [Trivial][ILSEQ]
-5C1AFC 1AFC [Trivial][ILSEQ]
-5C1AFD 1AFD [Trivial][ILSEQ]
-5C1AFE 1AFE [Trivial][ILSEQ]
-5C1AFF 1AFF [Trivial][ILSEQ]
-5C2200 2200 [Trivial]
-5C2208 2208 [Trivial]
-5C2209 2209 [Trivial]
-5C220A 220A [Trivial]
-5C220D 220D [Trivial]
-5C221A 221A [Trivial]
-5C2222 2222 [Trivial]
-5C2225 2225 [Trivial]
-5C2227 NULL [SyntErr]
-5C2230 2230 [Trivial]
-5C223F 223F [Trivial]
-5C2240 2240 [Trivial]
-5C225A 225A [Trivial]
-5C225C NULL [SyntErr]
-5C225F 225F [Trivial]
-5C2261 2261 [Trivial]
-5C2262 2262 [Trivial]
-5C226E 226E [Trivial]
-5C2272 2272 [Trivial]
-5C2274 2274 [Trivial]
-5C227E 227E [Trivial]
-5C227F 227F [Trivial]
-5C2280 2280 [Trivial][ILSEQ]
-5C2281 2281 [Trivial][ILSEQ]
-5C229F 229F [Trivial][ILSEQ]
-5C22A0 22A0 [Trivial][ILSEQ]
-5C22A1 22A1 [Trivial]
-5C22E0 22E0 [Trivial][ILSEQ]
-5C22EF 22EF [Trivial][ILSEQ]
-5C22F9 22F9 [Trivial][ILSEQ]
-5C22FA 22FA [Trivial][ILSEQ]
-5C22FC 22FC [Trivial][ILSEQ]
-5C22FD 22FD [Trivial][ILSEQ]
-5C22FE 22FE [Trivial][ILSEQ]
-5C22FF 22FF [Trivial][ILSEQ]
-5C2500 5C2500 [Preserve][LIKE]
-5C2508 5C2508 [Preserve][LIKE]
-5C2509 5C2509 [Preserve][LIKE]
-5C250A 5C250A [Preserve][LIKE]
-5C250D 5C250D [Preserve][LIKE]
-5C251A 5C251A [Preserve][LIKE]
-5C2522 5C2522 [Preserve][LIKE]
-5C2525 5C2525 [Preserve][LIKE]
-5C2527 NULL [SyntErr]
-5C2530 5C2530 [Preserve][LIKE]
-5C253F 5C253F [Preserve][LIKE]
-5C2540 5C2540 [Preserve][LIKE]
-5C255A 5C255A [Preserve][LIKE]
-5C255C NULL [SyntErr]
-5C255F 5C255F [Preserve][LIKE]
-5C2561 5C2561 [Preserve][LIKE]
-5C2562 5C2562 [Preserve][LIKE]
-5C256E 5C256E [Preserve][LIKE]
-5C2572 5C2572 [Preserve][LIKE]
-5C2574 5C2574 [Preserve][LIKE]
-5C257E 5C257E [Preserve][LIKE]
-5C257F 5C257F [Preserve][LIKE]
-5C2580 5C2580 [Preserve][LIKE][ILSEQ]
-5C2581 5C2581 [Preserve][LIKE][ILSEQ]
-5C259F 5C259F [Preserve][LIKE][ILSEQ]
-5C25A0 5C25A0 [Preserve][LIKE][ILSEQ]
-5C25A1 5C25A1 [Preserve][LIKE]
-5C25E0 5C25E0 [Preserve][LIKE][ILSEQ]
-5C25EF 5C25EF [Preserve][LIKE][ILSEQ]
-5C25F9 5C25F9 [Preserve][LIKE][ILSEQ]
-5C25FA 5C25FA [Preserve][LIKE][ILSEQ]
-5C25FC 5C25FC [Preserve][LIKE][ILSEQ]
-5C25FD 5C25FD [Preserve][LIKE][ILSEQ]
-5C25FE 5C25FE [Preserve][LIKE][ILSEQ]
-5C25FF 5C25FF [Preserve][LIKE][ILSEQ]
-5C2700 2700 [Trivial]
-5C2708 2708 [Trivial]
-5C2709 2709 [Trivial]
-5C270A 270A [Trivial]
-5C270D 270D [Trivial]
-5C271A 271A [Trivial]
-5C2722 2722 [Trivial]
-5C2725 2725 [Trivial]
-5C2727 NULL [SyntErr]
-5C2730 2730 [Trivial]
-5C273F 273F [Trivial]
-5C2740 2740 [Trivial]
-5C275A 275A [Trivial]
-5C275C NULL [SyntErr]
-5C275F 275F [Trivial]
-5C2761 2761 [Trivial]
-5C2762 2762 [Trivial]
-5C276E 276E [Trivial]
-5C2772 2772 [Trivial]
-5C2774 2774 [Trivial]
-5C277E 277E [Trivial]
-5C277F 277F [Trivial]
-5C2780 2780 [Trivial][ILSEQ]
-5C2781 2781 [Trivial][ILSEQ]
-5C279F 279F [Trivial][ILSEQ]
-5C27A0 27A0 [Trivial][ILSEQ]
-5C27A1 27A1 [Trivial]
-5C27E0 27E0 [Trivial][ILSEQ]
-5C27EF 27EF [Trivial][ILSEQ]
-5C27F9 27F9 [Trivial][ILSEQ]
-5C27FA 27FA [Trivial][ILSEQ]
-5C27FC 27FC [Trivial][ILSEQ]
-5C27FD 27FD [Trivial][ILSEQ]
-5C27FE 27FE [Trivial][ILSEQ]
-5C27FF 27FF [Trivial][ILSEQ]
-5C3000 0000 [Regular]
-5C3008 0008 [Regular]
-5C3009 0009 [Regular]
-5C300A 000A [Regular]
-5C300D 000D [Regular]
-5C301A 001A [Regular]
-5C3022 0022 [Regular]
-5C3025 0025 [Regular]
-5C3027 NULL [SyntErr]
-5C3030 0030 [Regular]
-5C303F 003F [Regular]
-5C3040 0040 [Regular]
-5C305A 005A [Regular]
-5C305C NULL [SyntErr]
-5C305F 005F [Regular]
-5C3061 0061 [Regular]
-5C3062 0062 [Regular]
-5C306E 006E [Regular]
-5C3072 0072 [Regular]
-5C3074 0074 [Regular]
-5C307E 007E [Regular]
-5C307F 007F [Regular]
-5C3080 0080 [Regular][ILSEQ]
-5C3081 0081 [Regular][ILSEQ]
-5C309F 009F [Regular][ILSEQ]
-5C30A0 00A0 [Regular][ILSEQ]
-5C30A1 00A1 [Regular]
-5C30E0 00E0 [Regular][ILSEQ]
-5C30EF 00EF [Regular][ILSEQ]
-5C30F9 00F9 [Regular][ILSEQ]
-5C30FA 00FA [Regular][ILSEQ]
-5C30FC 00FC [Regular][ILSEQ]
-5C30FD 00FD [Regular][ILSEQ]
-5C30FE 00FE [Regular][ILSEQ]
-5C30FF 00FF [Regular][ILSEQ]
-5C3F00 3F00 [Trivial]
-5C3F08 3F08 [Trivial]
-5C3F09 3F09 [Trivial]
-5C3F0A 3F0A [Trivial]
-5C3F0D 3F0D [Trivial]
-5C3F1A 3F1A [Trivial]
-5C3F22 3F22 [Trivial]
-5C3F25 3F25 [Trivial]
-5C3F27 NULL [SyntErr]
-5C3F30 3F30 [Trivial]
-5C3F3F 3F3F [Trivial]
-5C3F40 3F40 [Trivial]
-5C3F5A 3F5A [Trivial]
-5C3F5C NULL [SyntErr]
-5C3F5F 3F5F [Trivial]
-5C3F61 3F61 [Trivial]
-5C3F62 3F62 [Trivial]
-5C3F6E 3F6E [Trivial]
-5C3F72 3F72 [Trivial]
-5C3F74 3F74 [Trivial]
-5C3F7E 3F7E [Trivial]
-5C3F7F 3F7F [Trivial]
-5C3F80 3F80 [Trivial][ILSEQ]
-5C3F81 3F81 [Trivial][ILSEQ]
-5C3F9F 3F9F [Trivial][ILSEQ]
-5C3FA0 3FA0 [Trivial][ILSEQ]
-5C3FA1 3FA1 [Trivial]
-5C3FE0 3FE0 [Trivial][ILSEQ]
-5C3FEF 3FEF [Trivial][ILSEQ]
-5C3FF9 3FF9 [Trivial][ILSEQ]
-5C3FFA 3FFA [Trivial][ILSEQ]
-5C3FFC 3FFC [Trivial][ILSEQ]
-5C3FFD 3FFD [Trivial][ILSEQ]
-5C3FFE 3FFE [Trivial][ILSEQ]
-5C3FFF 3FFF [Trivial][ILSEQ]
-5C4000 4000 [Trivial]
-5C4008 4008 [Trivial]
-5C4009 4009 [Trivial]
-5C400A 400A [Trivial]
-5C400D 400D [Trivial]
-5C401A 401A [Trivial]
-5C4022 4022 [Trivial]
-5C4025 4025 [Trivial]
-5C4027 NULL [SyntErr]
-5C4030 4030 [Trivial]
-5C403F 403F [Trivial]
-5C4040 4040 [Trivial]
-5C405A 405A [Trivial]
-5C405C NULL [SyntErr]
-5C405F 405F [Trivial]
-5C4061 4061 [Trivial]
-5C4062 4062 [Trivial]
-5C406E 406E [Trivial]
-5C4072 4072 [Trivial]
-5C4074 4074 [Trivial]
-5C407E 407E [Trivial]
-5C407F 407F [Trivial]
-5C4080 4080 [Trivial][ILSEQ]
-5C4081 4081 [Trivial][ILSEQ]
-5C409F 409F [Trivial][ILSEQ]
-5C40A0 40A0 [Trivial][ILSEQ]
-5C40A1 40A1 [Trivial]
-5C40E0 40E0 [Trivial][ILSEQ]
-5C40EF 40EF [Trivial][ILSEQ]
-5C40F9 40F9 [Trivial][ILSEQ]
-5C40FA 40FA [Trivial][ILSEQ]
-5C40FC 40FC [Trivial][ILSEQ]
-5C40FD 40FD [Trivial][ILSEQ]
-5C40FE 40FE [Trivial][ILSEQ]
-5C40FF 40FF [Trivial][ILSEQ]
-5C5A00 1A00 [Regular]
-5C5A08 1A08 [Regular]
-5C5A09 1A09 [Regular]
-5C5A0A 1A0A [Regular]
-5C5A0D 1A0D [Regular]
-5C5A1A 1A1A [Regular]
-5C5A22 1A22 [Regular]
-5C5A25 1A25 [Regular]
-5C5A27 NULL [SyntErr]
-5C5A30 1A30 [Regular]
-5C5A3F 1A3F [Regular]
-5C5A40 1A40 [Regular]
-5C5A5A 1A5A [Regular]
-5C5A5C NULL [SyntErr]
-5C5A5F 1A5F [Regular]
-5C5A61 1A61 [Regular]
-5C5A62 1A62 [Regular]
-5C5A6E 1A6E [Regular]
-5C5A72 1A72 [Regular]
-5C5A74 1A74 [Regular]
-5C5A7E 1A7E [Regular]
-5C5A7F 1A7F [Regular]
-5C5A80 1A80 [Regular][ILSEQ]
-5C5A81 1A81 [Regular][ILSEQ]
-5C5A9F 1A9F [Regular][ILSEQ]
-5C5AA0 1AA0 [Regular][ILSEQ]
-5C5AA1 1AA1 [Regular]
-5C5AE0 1AE0 [Regular][ILSEQ]
-5C5AEF 1AEF [Regular][ILSEQ]
-5C5AF9 1AF9 [Regular][ILSEQ]
-5C5AFA 1AFA [Regular][ILSEQ]
-5C5AFC 1AFC [Regular][ILSEQ]
-5C5AFD 1AFD [Regular][ILSEQ]
-5C5AFE 1AFE [Regular][ILSEQ]
-5C5AFF 1AFF [Regular][ILSEQ]
-5C5C00 5C00 [Regular]
-5C5C08 5C08 [Regular]
-5C5C09 5C09 [Regular]
-5C5C0A 5C0A [Regular]
-5C5C0D 5C0D [Regular]
-5C5C1A 5C1A [Regular]
-5C5C22 5C22 [Regular]
-5C5C25 5C25 [Regular]
-5C5C27 NULL [SyntErr]
-5C5C30 5C30 [Regular]
-5C5C3F 5C3F [Regular]
-5C5C40 5C40 [Regular]
-5C5C5A 5C5A [Regular]
-5C5C5C NULL [SyntErr]
-5C5C5F 5C5F [Regular]
-5C5C61 5C61 [Regular]
-5C5C62 5C62 [Regular]
-5C5C6E 5C6E [Regular]
-5C5C72 5C72 [Regular]
-5C5C74 5C74 [Regular]
-5C5C7E 5C7E [Regular]
-5C5C7F 5C7F [Regular]
-5C5C80 5C80 [Regular][ILSEQ]
-5C5C81 5C81 [Regular][ILSEQ]
-5C5C9F 5C9F [Regular][ILSEQ]
-5C5CA0 5CA0 [Regular][ILSEQ]
-5C5CA1 5CA1 [Regular]
-5C5CE0 5CE0 [Regular][ILSEQ]
-5C5CEF 5CEF [Regular][ILSEQ]
-5C5CF9 5CF9 [Regular][ILSEQ]
-5C5CFA 5CFA [Regular][ILSEQ]
-5C5CFC 5CFC [Regular][ILSEQ]
-5C5CFD 5CFD [Regular][ILSEQ]
-5C5CFE 5CFE [Regular][ILSEQ]
-5C5CFF 5CFF [Regular][ILSEQ]
-5C5F00 5C5F00 [Preserve][LIKE]
-5C5F08 5C5F08 [Preserve][LIKE]
-5C5F09 5C5F09 [Preserve][LIKE]
-5C5F0A 5C5F0A [Preserve][LIKE]
-5C5F0D 5C5F0D [Preserve][LIKE]
-5C5F1A 5C5F1A [Preserve][LIKE]
-5C5F22 5C5F22 [Preserve][LIKE]
-5C5F25 5C5F25 [Preserve][LIKE]
-5C5F27 NULL [SyntErr]
-5C5F30 5C5F30 [Preserve][LIKE]
-5C5F3F 5C5F3F [Preserve][LIKE]
-5C5F40 5C5F40 [Preserve][LIKE]
-5C5F5A 5C5F5A [Preserve][LIKE]
-5C5F5C NULL [SyntErr]
-5C5F5F 5C5F5F [Preserve][LIKE]
-5C5F61 5C5F61 [Preserve][LIKE]
-5C5F62 5C5F62 [Preserve][LIKE]
-5C5F6E 5C5F6E [Preserve][LIKE]
-5C5F72 5C5F72 [Preserve][LIKE]
-5C5F74 5C5F74 [Preserve][LIKE]
-5C5F7E 5C5F7E [Preserve][LIKE]
-5C5F7F 5C5F7F [Preserve][LIKE]
-5C5F80 5C5F80 [Preserve][LIKE][ILSEQ]
-5C5F81 5C5F81 [Preserve][LIKE][ILSEQ]
-5C5F9F 5C5F9F [Preserve][LIKE][ILSEQ]
-5C5FA0 5C5FA0 [Preserve][LIKE][ILSEQ]
-5C5FA1 5C5FA1 [Preserve][LIKE]
-5C5FE0 5C5FE0 [Preserve][LIKE][ILSEQ]
-5C5FEF 5C5FEF [Preserve][LIKE][ILSEQ]
-5C5FF9 5C5FF9 [Preserve][LIKE][ILSEQ]
-5C5FFA 5C5FFA [Preserve][LIKE][ILSEQ]
-5C5FFC 5C5FFC [Preserve][LIKE][ILSEQ]
-5C5FFD 5C5FFD [Preserve][LIKE][ILSEQ]
-5C5FFE 5C5FFE [Preserve][LIKE][ILSEQ]
-5C5FFF 5C5FFF [Preserve][LIKE][ILSEQ]
-5C6100 6100 [Trivial]
-5C6108 6108 [Trivial]
-5C6109 6109 [Trivial]
-5C610A 610A [Trivial]
-5C610D 610D [Trivial]
-5C611A 611A [Trivial]
-5C6122 6122 [Trivial]
-5C6125 6125 [Trivial]
-5C6127 NULL [SyntErr]
-5C6130 6130 [Trivial]
-5C613F 613F [Trivial]
-5C6140 6140 [Trivial]
-5C615A 615A [Trivial]
-5C615C NULL [SyntErr]
-5C615F 615F [Trivial]
-5C6161 6161 [Trivial]
-5C6162 6162 [Trivial]
-5C616E 616E [Trivial]
-5C6172 6172 [Trivial]
-5C6174 6174 [Trivial]
-5C617E 617E [Trivial]
-5C617F 617F [Trivial]
-5C6180 6180 [Trivial][ILSEQ]
-5C6181 6181 [Trivial][ILSEQ]
-5C619F 619F [Trivial][ILSEQ]
-5C61A0 61A0 [Trivial][ILSEQ]
-5C61A1 61A1 [Trivial]
-5C61E0 61E0 [Trivial][ILSEQ]
-5C61EF 61EF [Trivial][ILSEQ]
-5C61F9 61F9 [Trivial][ILSEQ]
-5C61FA 61FA [Trivial][ILSEQ]
-5C61FC 61FC [Trivial][ILSEQ]
-5C61FD 61FD [Trivial][ILSEQ]
-5C61FE 61FE [Trivial][ILSEQ]
-5C61FF 61FF [Trivial][ILSEQ]
-5C6200 0800 [Regular]
-5C6208 0808 [Regular]
-5C6209 0809 [Regular]
-5C620A 080A [Regular]
-5C620D 080D [Regular]
-5C621A 081A [Regular]
-5C6222 0822 [Regular]
-5C6225 0825 [Regular]
-5C6227 NULL [SyntErr]
-5C6230 0830 [Regular]
-5C623F 083F [Regular]
-5C6240 0840 [Regular]
-5C625A 085A [Regular]
-5C625C NULL [SyntErr]
-5C625F 085F [Regular]
-5C6261 0861 [Regular]
-5C6262 0862 [Regular]
-5C626E 086E [Regular]
-5C6272 0872 [Regular]
-5C6274 0874 [Regular]
-5C627E 087E [Regular]
-5C627F 087F [Regular]
-5C6280 0880 [Regular][ILSEQ]
-5C6281 0881 [Regular][ILSEQ]
-5C629F 089F [Regular][ILSEQ]
-5C62A0 08A0 [Regular][ILSEQ]
-5C62A1 08A1 [Regular]
-5C62E0 08E0 [Regular][ILSEQ]
-5C62EF 08EF [Regular][ILSEQ]
-5C62F9 08F9 [Regular][ILSEQ]
-5C62FA 08FA [Regular][ILSEQ]
-5C62FC 08FC [Regular][ILSEQ]
-5C62FD 08FD [Regular][ILSEQ]
-5C62FE 08FE [Regular][ILSEQ]
-5C62FF 08FF [Regular][ILSEQ]
-5C6E00 0A00 [Regular]
-5C6E08 0A08 [Regular]
-5C6E09 0A09 [Regular]
-5C6E0A 0A0A [Regular]
-5C6E0D 0A0D [Regular]
-5C6E1A 0A1A [Regular]
-5C6E22 0A22 [Regular]
-5C6E25 0A25 [Regular]
-5C6E27 NULL [SyntErr]
-5C6E30 0A30 [Regular]
-5C6E3F 0A3F [Regular]
-5C6E40 0A40 [Regular]
-5C6E5A 0A5A [Regular]
-5C6E5C NULL [SyntErr]
-5C6E5F 0A5F [Regular]
-5C6E61 0A61 [Regular]
-5C6E62 0A62 [Regular]
-5C6E6E 0A6E [Regular]
-5C6E72 0A72 [Regular]
-5C6E74 0A74 [Regular]
-5C6E7E 0A7E [Regular]
-5C6E7F 0A7F [Regular]
-5C6E80 0A80 [Regular][ILSEQ]
-5C6E81 0A81 [Regular][ILSEQ]
-5C6E9F 0A9F [Regular][ILSEQ]
-5C6EA0 0AA0 [Regular][ILSEQ]
-5C6EA1 0AA1 [Regular]
-5C6EE0 0AE0 [Regular][ILSEQ]
-5C6EEF 0AEF [Regular][ILSEQ]
-5C6EF9 0AF9 [Regular][ILSEQ]
-5C6EFA 0AFA [Regular][ILSEQ]
-5C6EFC 0AFC [Regular][ILSEQ]
-5C6EFD 0AFD [Regular][ILSEQ]
-5C6EFE 0AFE [Regular][ILSEQ]
-5C6EFF 0AFF [Regular][ILSEQ]
-5C7200 0D00 [Regular]
-5C7208 0D08 [Regular]
-5C7209 0D09 [Regular]
-5C720A 0D0A [Regular]
-5C720D 0D0D [Regular]
-5C721A 0D1A [Regular]
-5C7222 0D22 [Regular]
-5C7225 0D25 [Regular]
-5C7227 NULL [SyntErr]
-5C7230 0D30 [Regular]
-5C723F 0D3F [Regular]
-5C7240 0D40 [Regular]
-5C725A 0D5A [Regular]
-5C725C NULL [SyntErr]
-5C725F 0D5F [Regular]
-5C7261 0D61 [Regular]
-5C7262 0D62 [Regular]
-5C726E 0D6E [Regular]
-5C7272 0D72 [Regular]
-5C7274 0D74 [Regular]
-5C727E 0D7E [Regular]
-5C727F 0D7F [Regular]
-5C7280 0D80 [Regular][ILSEQ]
-5C7281 0D81 [Regular][ILSEQ]
-5C729F 0D9F [Regular][ILSEQ]
-5C72A0 0DA0 [Regular][ILSEQ]
-5C72A1 0DA1 [Regular]
-5C72E0 0DE0 [Regular][ILSEQ]
-5C72EF 0DEF [Regular][ILSEQ]
-5C72F9 0DF9 [Regular][ILSEQ]
-5C72FA 0DFA [Regular][ILSEQ]
-5C72FC 0DFC [Regular][ILSEQ]
-5C72FD 0DFD [Regular][ILSEQ]
-5C72FE 0DFE [Regular][ILSEQ]
-5C72FF 0DFF [Regular][ILSEQ]
-5C7400 0900 [Regular]
-5C7408 0908 [Regular]
-5C7409 0909 [Regular]
-5C740A 090A [Regular]
-5C740D 090D [Regular]
-5C741A 091A [Regular]
-5C7422 0922 [Regular]
-5C7425 0925 [Regular]
-5C7427 NULL [SyntErr]
-5C7430 0930 [Regular]
-5C743F 093F [Regular]
-5C7440 0940 [Regular]
-5C745A 095A [Regular]
-5C745C NULL [SyntErr]
-5C745F 095F [Regular]
-5C7461 0961 [Regular]
-5C7462 0962 [Regular]
-5C746E 096E [Regular]
-5C7472 0972 [Regular]
-5C7474 0974 [Regular]
-5C747E 097E [Regular]
-5C747F 097F [Regular]
-5C7480 0980 [Regular][ILSEQ]
-5C7481 0981 [Regular][ILSEQ]
-5C749F 099F [Regular][ILSEQ]
-5C74A0 09A0 [Regular][ILSEQ]
-5C74A1 09A1 [Regular]
-5C74E0 09E0 [Regular][ILSEQ]
-5C74EF 09EF [Regular][ILSEQ]
-5C74F9 09F9 [Regular][ILSEQ]
-5C74FA 09FA [Regular][ILSEQ]
-5C74FC 09FC [Regular][ILSEQ]
-5C74FD 09FD [Regular][ILSEQ]
-5C74FE 09FE [Regular][ILSEQ]
-5C74FF 09FF [Regular][ILSEQ]
-5C7E00 7E00 [Trivial]
-5C7E08 7E08 [Trivial]
-5C7E09 7E09 [Trivial]
-5C7E0A 7E0A [Trivial]
-5C7E0D 7E0D [Trivial]
-5C7E1A 7E1A [Trivial]
-5C7E22 7E22 [Trivial]
-5C7E25 7E25 [Trivial]
-5C7E27 NULL [SyntErr]
-5C7E30 7E30 [Trivial]
-5C7E3F 7E3F [Trivial]
-5C7E40 7E40 [Trivial]
-5C7E5A 7E5A [Trivial]
-5C7E5C NULL [SyntErr]
-5C7E5F 7E5F [Trivial]
-5C7E61 7E61 [Trivial]
-5C7E62 7E62 [Trivial]
-5C7E6E 7E6E [Trivial]
-5C7E72 7E72 [Trivial]
-5C7E74 7E74 [Trivial]
-5C7E7E 7E7E [Trivial]
-5C7E7F 7E7F [Trivial]
-5C7E80 7E80 [Trivial][ILSEQ]
-5C7E81 7E81 [Trivial][ILSEQ]
-5C7E9F 7E9F [Trivial][ILSEQ]
-5C7EA0 7EA0 [Trivial][ILSEQ]
-5C7EA1 7EA1 [Trivial]
-5C7EE0 7EE0 [Trivial][ILSEQ]
-5C7EEF 7EEF [Trivial][ILSEQ]
-5C7EF9 7EF9 [Trivial][ILSEQ]
-5C7EFA 7EFA [Trivial][ILSEQ]
-5C7EFC 7EFC [Trivial][ILSEQ]
-5C7EFD 7EFD [Trivial][ILSEQ]
-5C7EFE 7EFE [Trivial][ILSEQ]
-5C7EFF 7EFF [Trivial][ILSEQ]
-5C7F00 7F00 [Trivial]
-5C7F08 7F08 [Trivial]
-5C7F09 7F09 [Trivial]
-5C7F0A 7F0A [Trivial]
-5C7F0D 7F0D [Trivial]
-5C7F1A 7F1A [Trivial]
-5C7F22 7F22 [Trivial]
-5C7F25 7F25 [Trivial]
-5C7F27 NULL [SyntErr]
-5C7F30 7F30 [Trivial]
-5C7F3F 7F3F [Trivial]
-5C7F40 7F40 [Trivial]
-5C7F5A 7F5A [Trivial]
-5C7F5C NULL [SyntErr]
-5C7F5F 7F5F [Trivial]
-5C7F61 7F61 [Trivial]
-5C7F62 7F62 [Trivial]
-5C7F6E 7F6E [Trivial]
-5C7F72 7F72 [Trivial]
-5C7F74 7F74 [Trivial]
-5C7F7E 7F7E [Trivial]
-5C7F7F 7F7F [Trivial]
-5C7F80 7F80 [Trivial][ILSEQ]
-5C7F81 7F81 [Trivial][ILSEQ]
-5C7F9F 7F9F [Trivial][ILSEQ]
-5C7FA0 7FA0 [Trivial][ILSEQ]
-5C7FA1 7FA1 [Trivial]
-5C7FE0 7FE0 [Trivial][ILSEQ]
-5C7FEF 7FEF [Trivial][ILSEQ]
-5C7FF9 7FF9 [Trivial][ILSEQ]
-5C7FFA 7FFA [Trivial][ILSEQ]
-5C7FFC 7FFC [Trivial][ILSEQ]
-5C7FFD 7FFD [Trivial][ILSEQ]
-5C7FFE 7FFE [Trivial][ILSEQ]
-5C7FFF 7FFF [Trivial][ILSEQ]
-5C8000 8000 [Trivial][ILSEQ]
-5C8008 8008 [Trivial][ILSEQ]
-5C8009 8009 [Trivial][ILSEQ]
-5C800A 800A [Trivial][ILSEQ]
-5C800D 800D [Trivial][ILSEQ]
-5C801A 801A [Trivial][ILSEQ]
-5C8022 8022 [Trivial][ILSEQ]
-5C8025 8025 [Trivial][ILSEQ]
-5C8027 NULL [SyntErr]
-5C8030 8030 [Trivial][ILSEQ]
-5C803F 803F [Trivial][ILSEQ]
-5C8040 8040 [Trivial][ILSEQ]
-5C805A 805A [Trivial][ILSEQ]
-5C805C NULL [SyntErr]
-5C805F 805F [Trivial][ILSEQ]
-5C8061 8061 [Trivial][ILSEQ]
-5C8062 8062 [Trivial][ILSEQ]
-5C806E 806E [Trivial][ILSEQ]
-5C8072 8072 [Trivial][ILSEQ]
-5C8074 8074 [Trivial][ILSEQ]
-5C807E 807E [Trivial][ILSEQ]
-5C807F 807F [Trivial][ILSEQ]
-5C8080 8080 [Trivial][ILSEQ]
-5C8081 8081 [Trivial][ILSEQ]
-5C809F 809F [Trivial][ILSEQ]
-5C80A0 80A0 [Trivial][ILSEQ]
-5C80A1 80A1 [Trivial][ILSEQ]
-5C80E0 80E0 [Trivial][ILSEQ]
-5C80EF 80EF [Trivial][ILSEQ]
-5C80F9 80F9 [Trivial][ILSEQ]
-5C80FA 80FA [Trivial][ILSEQ]
-5C80FC 80FC [Trivial][ILSEQ]
-5C80FD 80FD [Trivial][ILSEQ]
-5C80FE 80FE [Trivial][ILSEQ]
-5C80FF 80FF [Trivial][ILSEQ]
-5C8100 8100 [Trivial][ILSEQ]
-5C8108 8108 [Trivial][ILSEQ]
-5C8109 8109 [Trivial][ILSEQ]
-5C810A 810A [Trivial][ILSEQ]
-5C810D 810D [Trivial][ILSEQ]
-5C811A 811A [Trivial][ILSEQ]
-5C8122 8122 [Trivial][ILSEQ]
-5C8125 8125 [Trivial][ILSEQ]
-5C8127 NULL [SyntErr]
-5C8130 8130 [Trivial][ILSEQ]
-5C813F 813F [Trivial][ILSEQ]
-5C8140 8140 [Trivial]
-5C815A 815A [Trivial]
-5C815C NULL [SyntErr]
-5C815F 815F [Trivial]
-5C8161 8161 [Trivial]
-5C8162 8162 [Trivial]
-5C816E 816E [Trivial]
-5C8172 8172 [Trivial]
-5C8174 8174 [Trivial]
-5C817E 817E [Trivial]
-5C817F 817F [Trivial][ILSEQ]
-5C8180 8180 [Trivial]
-5C8181 8181 [Trivial]
-5C819F 819F [Trivial]
-5C81A0 81A0 [Trivial]
-5C81A1 81A1 [Trivial]
-5C81E0 81E0 [Trivial]
-5C81EF 81EF [Trivial]
-5C81F9 81F9 [Trivial]
-5C81FA 81FA [Trivial]
-5C81FC 81FC [Trivial]
-5C81FD 81FD [Trivial][ILSEQ]
-5C81FE 81FE [Trivial][ILSEQ]
-5C81FF 81FF [Trivial][ILSEQ]
-5C9F00 9F00 [Trivial][ILSEQ]
-5C9F08 9F08 [Trivial][ILSEQ]
-5C9F09 9F09 [Trivial][ILSEQ]
-5C9F0A 9F0A [Trivial][ILSEQ]
-5C9F0D 9F0D [Trivial][ILSEQ]
-5C9F1A 9F1A [Trivial][ILSEQ]
-5C9F22 9F22 [Trivial][ILSEQ]
-5C9F25 9F25 [Trivial][ILSEQ]
-5C9F27 NULL [SyntErr]
-5C9F30 9F30 [Trivial][ILSEQ]
-5C9F3F 9F3F [Trivial][ILSEQ]
-5C9F40 9F40 [Trivial]
-5C9F5A 9F5A [Trivial]
-5C9F5C NULL [SyntErr]
-5C9F5F 9F5F [Trivial]
-5C9F61 9F61 [Trivial]
-5C9F62 9F62 [Trivial]
-5C9F6E 9F6E [Trivial]
-5C9F72 9F72 [Trivial]
-5C9F74 9F74 [Trivial]
-5C9F7E 9F7E [Trivial]
-5C9F7F 9F7F [Trivial][ILSEQ]
-5C9F80 9F80 [Trivial]
-5C9F81 9F81 [Trivial]
-5C9F9F 9F9F [Trivial]
-5C9FA0 9FA0 [Trivial]
-5C9FA1 9FA1 [Trivial]
-5C9FE0 9FE0 [Trivial]
-5C9FEF 9FEF [Trivial]
-5C9FF9 9FF9 [Trivial]
-5C9FFA 9FFA [Trivial]
-5C9FFC 9FFC [Trivial]
-5C9FFD 9FFD [Trivial][ILSEQ]
-5C9FFE 9FFE [Trivial][ILSEQ]
-5C9FFF 9FFF [Trivial][ILSEQ]
-5CA000 A000 [Trivial][ILSEQ]
-5CA008 A008 [Trivial][ILSEQ]
-5CA009 A009 [Trivial][ILSEQ]
-5CA00A A00A [Trivial][ILSEQ]
-5CA00D A00D [Trivial][ILSEQ]
-5CA01A A01A [Trivial][ILSEQ]
-5CA022 A022 [Trivial][ILSEQ]
-5CA025 A025 [Trivial][ILSEQ]
-5CA027 NULL [SyntErr]
-5CA030 A030 [Trivial][ILSEQ]
-5CA03F A03F [Trivial][ILSEQ]
-5CA040 A040 [Trivial][ILSEQ]
-5CA05A A05A [Trivial][ILSEQ]
-5CA05C NULL [SyntErr]
-5CA05F A05F [Trivial][ILSEQ]
-5CA061 A061 [Trivial][ILSEQ]
-5CA062 A062 [Trivial][ILSEQ]
-5CA06E A06E [Trivial][ILSEQ]
-5CA072 A072 [Trivial][ILSEQ]
-5CA074 A074 [Trivial][ILSEQ]
-5CA07E A07E [Trivial][ILSEQ]
-5CA07F A07F [Trivial][ILSEQ]
-5CA080 A080 [Trivial][ILSEQ]
-5CA081 A081 [Trivial][ILSEQ]
-5CA09F A09F [Trivial][ILSEQ]
-5CA0A0 A0A0 [Trivial][ILSEQ]
-5CA0A1 A0A1 [Trivial][ILSEQ]
-5CA0E0 A0E0 [Trivial][ILSEQ]
-5CA0EF A0EF [Trivial][ILSEQ]
-5CA0F9 A0F9 [Trivial][ILSEQ]
-5CA0FA A0FA [Trivial][ILSEQ]
-5CA0FC A0FC [Trivial][ILSEQ]
-5CA0FD A0FD [Trivial][ILSEQ]
-5CA0FE A0FE [Trivial][ILSEQ]
-5CA0FF A0FF [Trivial][ILSEQ]
-5CA100 A100 [Trivial]
-5CA108 A108 [Trivial]
-5CA109 A109 [Trivial]
-5CA10A A10A [Trivial]
-5CA10D A10D [Trivial]
-5CA11A A11A [Trivial]
-5CA122 A122 [Trivial]
-5CA125 A125 [Trivial]
-5CA127 NULL [SyntErr]
-5CA130 A130 [Trivial]
-5CA13F A13F [Trivial]
-5CA140 A140 [Trivial]
-5CA15A A15A [Trivial]
-5CA15C NULL [SyntErr][USER]
-5CA15F A15F [Trivial]
-5CA161 A161 [Trivial]
-5CA162 A162 [Trivial]
-5CA16E A16E [Trivial]
-5CA172 A172 [Trivial]
-5CA174 A174 [Trivial]
-5CA17E A17E [Trivial]
-5CA17F A17F [Trivial]
-5CA180 A180 [Trivial][ILSEQ]
-5CA181 A181 [Trivial][ILSEQ]
-5CA19F A19F [Trivial][ILSEQ]
-5CA1A0 A1A0 [Trivial][ILSEQ]
-5CA1A1 A1A1 [Trivial]
-5CA1E0 A1E0 [Trivial][ILSEQ]
-5CA1EF A1EF [Trivial][ILSEQ]
-5CA1F9 A1F9 [Trivial][ILSEQ]
-5CA1FA A1FA [Trivial][ILSEQ]
-5CA1FC A1FC [Trivial][ILSEQ]
-5CA1FD A1FD [Trivial][ILSEQ]
-5CA1FE A1FE [Trivial][ILSEQ]
-5CA1FF A1FF [Trivial][ILSEQ]
-5CE000 E000 [Trivial][ILSEQ]
-5CE008 E008 [Trivial][ILSEQ]
-5CE009 E009 [Trivial][ILSEQ]
-5CE00A E00A [Trivial][ILSEQ]
-5CE00D E00D [Trivial][ILSEQ]
-5CE01A E01A [Trivial][ILSEQ]
-5CE022 E022 [Trivial][ILSEQ]
-5CE025 E025 [Trivial][ILSEQ]
-5CE027 NULL [SyntErr]
-5CE030 E030 [Trivial][ILSEQ]
-5CE03F E03F [Trivial][ILSEQ]
-5CE040 E040 [Trivial]
-5CE05A E05A [Trivial]
-5CE05C NULL [SyntErr]
-5CE05F E05F [Trivial]
-5CE061 E061 [Trivial]
-5CE062 E062 [Trivial]
-5CE06E E06E [Trivial]
-5CE072 E072 [Trivial]
-5CE074 E074 [Trivial]
-5CE07E E07E [Trivial]
-5CE07F E07F [Trivial][ILSEQ]
-5CE080 E080 [Trivial]
-5CE081 E081 [Trivial]
-5CE09F E09F [Trivial]
-5CE0A0 E0A0 [Trivial]
-5CE0A1 E0A1 [Trivial]
-5CE0E0 E0E0 [Trivial]
-5CE0EF E0EF [Trivial]
-5CE0F9 E0F9 [Trivial]
-5CE0FA E0FA [Trivial]
-5CE0FC E0FC [Trivial]
-5CE0FD E0FD [Trivial][ILSEQ]
-5CE0FE E0FE [Trivial][ILSEQ]
-5CE0FF E0FF [Trivial][ILSEQ]
-5CEF00 EF00 [Trivial][ILSEQ]
-5CEF08 EF08 [Trivial][ILSEQ]
-5CEF09 EF09 [Trivial][ILSEQ]
-5CEF0A EF0A [Trivial][ILSEQ]
-5CEF0D EF0D [Trivial][ILSEQ]
-5CEF1A EF1A [Trivial][ILSEQ]
-5CEF22 EF22 [Trivial][ILSEQ]
-5CEF25 EF25 [Trivial][ILSEQ]
-5CEF27 NULL [SyntErr]
-5CEF30 EF30 [Trivial][ILSEQ]
-5CEF3F EF3F [Trivial][ILSEQ]
-5CEF40 EF40 [Trivial]
-5CEF5A EF5A [Trivial]
-5CEF5C NULL [SyntErr]
-5CEF5F EF5F [Trivial]
-5CEF61 EF61 [Trivial]
-5CEF62 EF62 [Trivial]
-5CEF6E EF6E [Trivial]
-5CEF72 EF72 [Trivial]
-5CEF74 EF74 [Trivial]
-5CEF7E EF7E [Trivial]
-5CEF7F EF7F [Trivial][ILSEQ]
-5CEF80 EF80 [Trivial]
-5CEF81 EF81 [Trivial]
-5CEF9F EF9F [Trivial]
-5CEFA0 EFA0 [Trivial]
-5CEFA1 EFA1 [Trivial]
-5CEFE0 EFE0 [Trivial]
-5CEFEF EFEF [Trivial]
-5CEFF9 EFF9 [Trivial]
-5CEFFA EFFA [Trivial]
-5CEFFC EFFC [Trivial]
-5CEFFD EFFD [Trivial][ILSEQ]
-5CEFFE EFFE [Trivial][ILSEQ]
-5CEFFF EFFF [Trivial][ILSEQ]
-5CF900 F900 [Trivial][ILSEQ]
-5CF908 F908 [Trivial][ILSEQ]
-5CF909 F909 [Trivial][ILSEQ]
-5CF90A F90A [Trivial][ILSEQ]
-5CF90D F90D [Trivial][ILSEQ]
-5CF91A F91A [Trivial][ILSEQ]
-5CF922 F922 [Trivial][ILSEQ]
-5CF925 F925 [Trivial][ILSEQ]
-5CF927 NULL [SyntErr]
-5CF930 F930 [Trivial][ILSEQ]
-5CF93F F93F [Trivial][ILSEQ]
-5CF940 F940 [Trivial]
-5CF95A F95A [Trivial]
-5CF95C NULL [SyntErr]
-5CF95F F95F [Trivial]
-5CF961 F961 [Trivial]
-5CF962 F962 [Trivial]
-5CF96E F96E [Trivial]
-5CF972 F972 [Trivial]
-5CF974 F974 [Trivial]
-5CF97E F97E [Trivial]
-5CF97F F97F [Trivial][ILSEQ]
-5CF980 F980 [Trivial]
-5CF981 F981 [Trivial]
-5CF99F F99F [Trivial]
-5CF9A0 F9A0 [Trivial]
-5CF9A1 F9A1 [Trivial]
-5CF9E0 F9E0 [Trivial]
-5CF9EF F9EF [Trivial]
-5CF9F9 F9F9 [Trivial]
-5CF9FA F9FA [Trivial]
-5CF9FC F9FC [Trivial]
-5CF9FD F9FD [Trivial][ILSEQ]
-5CF9FE F9FE [Trivial][ILSEQ]
-5CF9FF F9FF [Trivial][ILSEQ]
-5CFA00 FA00 [Trivial][ILSEQ]
-5CFA08 FA08 [Trivial][ILSEQ]
-5CFA09 FA09 [Trivial][ILSEQ]
-5CFA0A FA0A [Trivial][ILSEQ]
-5CFA0D FA0D [Trivial][ILSEQ]
-5CFA1A FA1A [Trivial][ILSEQ]
-5CFA22 FA22 [Trivial][ILSEQ]
-5CFA25 FA25 [Trivial][ILSEQ]
-5CFA27 NULL [SyntErr]
-5CFA30 FA30 [Trivial][ILSEQ]
-5CFA3F FA3F [Trivial][ILSEQ]
-5CFA40 FA40 [Trivial]
-5CFA5A FA5A [Trivial]
-5CFA5C NULL [SyntErr]
-5CFA5F FA5F [Trivial]
-5CFA61 FA61 [Trivial]
-5CFA62 FA62 [Trivial]
-5CFA6E FA6E [Trivial]
-5CFA72 FA72 [Trivial]
-5CFA74 FA74 [Trivial]
-5CFA7E FA7E [Trivial]
-5CFA7F FA7F [Trivial][ILSEQ]
-5CFA80 FA80 [Trivial]
-5CFA81 FA81 [Trivial]
-5CFA9F FA9F [Trivial]
-5CFAA0 FAA0 [Trivial]
-5CFAA1 FAA1 [Trivial]
-5CFAE0 FAE0 [Trivial]
-5CFAEF FAEF [Trivial]
-5CFAF9 FAF9 [Trivial]
-5CFAFA FAFA [Trivial]
-5CFAFC FAFC [Trivial]
-5CFAFD FAFD [Trivial][ILSEQ]
-5CFAFE FAFE [Trivial][ILSEQ]
-5CFAFF FAFF [Trivial][ILSEQ]
-5CFC00 FC00 [Trivial][ILSEQ]
-5CFC08 FC08 [Trivial][ILSEQ]
-5CFC09 FC09 [Trivial][ILSEQ]
-5CFC0A FC0A [Trivial][ILSEQ]
-5CFC0D FC0D [Trivial][ILSEQ]
-5CFC1A FC1A [Trivial][ILSEQ]
-5CFC22 FC22 [Trivial][ILSEQ]
-5CFC25 FC25 [Trivial][ILSEQ]
-5CFC27 NULL [SyntErr]
-5CFC30 FC30 [Trivial][ILSEQ]
-5CFC3F FC3F [Trivial][ILSEQ]
-5CFC40 FC40 [Trivial]
-5CFC5A FC5A [Trivial]
-5CFC5C NULL [SyntErr]
-5CFC5F FC5F [Trivial]
-5CFC61 FC61 [Trivial]
-5CFC62 FC62 [Trivial]
-5CFC6E FC6E [Trivial]
-5CFC72 FC72 [Trivial]
-5CFC74 FC74 [Trivial]
-5CFC7E FC7E [Trivial]
-5CFC7F FC7F [Trivial][ILSEQ]
-5CFC80 FC80 [Trivial]
-5CFC81 FC81 [Trivial]
-5CFC9F FC9F [Trivial]
-5CFCA0 FCA0 [Trivial]
-5CFCA1 FCA1 [Trivial]
-5CFCE0 FCE0 [Trivial]
-5CFCEF FCEF [Trivial]
-5CFCF9 FCF9 [Trivial]
-5CFCFA FCFA [Trivial]
-5CFCFC FCFC [Trivial]
-5CFCFD FCFD [Trivial][ILSEQ]
-5CFCFE FCFE [Trivial][ILSEQ]
-5CFCFF FCFF [Trivial][ILSEQ]
-5CFD00 FD00 [Trivial][ILSEQ]
-5CFD08 FD08 [Trivial][ILSEQ]
-5CFD09 FD09 [Trivial][ILSEQ]
-5CFD0A FD0A [Trivial][ILSEQ]
-5CFD0D FD0D [Trivial][ILSEQ]
-5CFD1A FD1A [Trivial][ILSEQ]
-5CFD22 FD22 [Trivial][ILSEQ]
-5CFD25 FD25 [Trivial][ILSEQ]
-5CFD27 NULL [SyntErr]
-5CFD30 FD30 [Trivial][ILSEQ]
-5CFD3F FD3F [Trivial][ILSEQ]
-5CFD40 FD40 [Trivial][ILSEQ]
-5CFD5A FD5A [Trivial][ILSEQ]
-5CFD5C NULL [SyntErr]
-5CFD5F FD5F [Trivial][ILSEQ]
-5CFD61 FD61 [Trivial][ILSEQ]
-5CFD62 FD62 [Trivial][ILSEQ]
-5CFD6E FD6E [Trivial][ILSEQ]
-5CFD72 FD72 [Trivial][ILSEQ]
-5CFD74 FD74 [Trivial][ILSEQ]
-5CFD7E FD7E [Trivial][ILSEQ]
-5CFD7F FD7F [Trivial][ILSEQ]
-5CFD80 FD80 [Trivial][ILSEQ]
-5CFD81 FD81 [Trivial][ILSEQ]
-5CFD9F FD9F [Trivial][ILSEQ]
-5CFDA0 FDA0 [Trivial][ILSEQ]
-5CFDA1 FDA1 [Trivial][ILSEQ]
-5CFDE0 FDE0 [Trivial][ILSEQ]
-5CFDEF FDEF [Trivial][ILSEQ]
-5CFDF9 FDF9 [Trivial][ILSEQ]
-5CFDFA FDFA [Trivial][ILSEQ]
-5CFDFC FDFC [Trivial][ILSEQ]
-5CFDFD FDFD [Trivial][ILSEQ]
-5CFDFE FDFE [Trivial][ILSEQ]
-5CFDFF FDFF [Trivial][ILSEQ]
-5CFE00 FE00 [Trivial][ILSEQ]
-5CFE08 FE08 [Trivial][ILSEQ]
-5CFE09 FE09 [Trivial][ILSEQ]
-5CFE0A FE0A [Trivial][ILSEQ]
-5CFE0D FE0D [Trivial][ILSEQ]
-5CFE1A FE1A [Trivial][ILSEQ]
-5CFE22 FE22 [Trivial][ILSEQ]
-5CFE25 FE25 [Trivial][ILSEQ]
-5CFE27 NULL [SyntErr]
-5CFE30 FE30 [Trivial][ILSEQ]
-5CFE3F FE3F [Trivial][ILSEQ]
-5CFE40 FE40 [Trivial][ILSEQ]
-5CFE5A FE5A [Trivial][ILSEQ]
-5CFE5C NULL [SyntErr]
-5CFE5F FE5F [Trivial][ILSEQ]
-5CFE61 FE61 [Trivial][ILSEQ]
-5CFE62 FE62 [Trivial][ILSEQ]
-5CFE6E FE6E [Trivial][ILSEQ]
-5CFE72 FE72 [Trivial][ILSEQ]
-5CFE74 FE74 [Trivial][ILSEQ]
-5CFE7E FE7E [Trivial][ILSEQ]
-5CFE7F FE7F [Trivial][ILSEQ]
-5CFE80 FE80 [Trivial][ILSEQ]
-5CFE81 FE81 [Trivial][ILSEQ]
-5CFE9F FE9F [Trivial][ILSEQ]
-5CFEA0 FEA0 [Trivial][ILSEQ]
-5CFEA1 FEA1 [Trivial][ILSEQ]
-5CFEE0 FEE0 [Trivial][ILSEQ]
-5CFEEF FEEF [Trivial][ILSEQ]
-5CFEF9 FEF9 [Trivial][ILSEQ]
-5CFEFA FEFA [Trivial][ILSEQ]
-5CFEFC FEFC [Trivial][ILSEQ]
-5CFEFD FEFD [Trivial][ILSEQ]
-5CFEFE FEFE [Trivial][ILSEQ]
-5CFEFF FEFF [Trivial][ILSEQ]
-5CFF00 FF00 [Trivial][ILSEQ]
-5CFF08 FF08 [Trivial][ILSEQ]
-5CFF09 FF09 [Trivial][ILSEQ]
-5CFF0A FF0A [Trivial][ILSEQ]
-5CFF0D FF0D [Trivial][ILSEQ]
-5CFF1A FF1A [Trivial][ILSEQ]
-5CFF22 FF22 [Trivial][ILSEQ]
-5CFF25 FF25 [Trivial][ILSEQ]
-5CFF27 NULL [SyntErr]
-5CFF30 FF30 [Trivial][ILSEQ]
-5CFF3F FF3F [Trivial][ILSEQ]
-5CFF40 FF40 [Trivial][ILSEQ]
-5CFF5A FF5A [Trivial][ILSEQ]
-5CFF5C NULL [SyntErr]
-5CFF5F FF5F [Trivial][ILSEQ]
-5CFF61 FF61 [Trivial][ILSEQ]
-5CFF62 FF62 [Trivial][ILSEQ]
-5CFF6E FF6E [Trivial][ILSEQ]
-5CFF72 FF72 [Trivial][ILSEQ]
-5CFF74 FF74 [Trivial][ILSEQ]
-5CFF7E FF7E [Trivial][ILSEQ]
-5CFF7F FF7F [Trivial][ILSEQ]
-5CFF80 FF80 [Trivial][ILSEQ]
-5CFF81 FF81 [Trivial][ILSEQ]
-5CFF9F FF9F [Trivial][ILSEQ]
-5CFFA0 FFA0 [Trivial][ILSEQ]
-5CFFA1 FFA1 [Trivial][ILSEQ]
-5CFFE0 FFE0 [Trivial][ILSEQ]
-5CFFEF FFEF [Trivial][ILSEQ]
-5CFFF9 FFF9 [Trivial][ILSEQ]
-5CFFFA FFFA [Trivial][ILSEQ]
-5CFFFC FFFC [Trivial][ILSEQ]
-5CFFFD FFFD [Trivial][ILSEQ]
-5CFFFE FFFE [Trivial][ILSEQ]
-5CFFFF FFFF [Trivial][ILSEQ]
-5C005C00 0000 [Trivial]
-5C005C08 0008 [Trivial]
-5C005C09 0009 [Trivial]
-5C005C0A 000A [Trivial]
-5C005C0D 000D [Trivial]
-5C005C1A 001A [Trivial]
-5C005C22 0022 [Trivial]
-5C005C25 005C25 [Regular]
-5C005C27 0027 [Trivial]
-5C005C30 0000 [Regular]
-5C005C3F 003F [Trivial]
-5C005C40 0040 [Trivial]
-5C005C5A 001A [Regular]
-5C005C5C 005C [Regular]
-5C005C5F 005C5F [Regular]
-5C005C61 0061 [Trivial]
-5C005C62 0008 [Regular]
-5C005C6E 000A [Regular]
-5C005C72 000D [Regular]
-5C005C74 0009 [Regular]
-5C005C7E 007E [Trivial]
-5C005C7F 007F [Trivial]
-5C005C80 0080 [Trivial][ILSEQ]
-5C005C81 0081 [Trivial][ILSEQ]
-5C005C9F 009F [Trivial][ILSEQ]
-5C005CA0 00A0 [Trivial][ILSEQ]
-5C005CA1 00A1 [Trivial]
-5C005CE0 00E0 [Trivial][ILSEQ]
-5C005CEF 00EF [Trivial][ILSEQ]
-5C005CF9 00F9 [Trivial][ILSEQ]
-5C005CFA 00FA [Trivial][ILSEQ]
-5C005CFC 00FC [Trivial][ILSEQ]
-5C005CFD 00FD [Trivial][ILSEQ]
-5C005CFE 00FE [Trivial][ILSEQ]
-5C005CFF 00FF [Trivial][ILSEQ]
-5C085C00 0800 [Trivial]
-5C085C08 0808 [Trivial]
-5C085C09 0809 [Trivial]
-5C085C0A 080A [Trivial]
-5C085C0D 080D [Trivial]
-5C085C1A 081A [Trivial]
-5C085C22 0822 [Trivial]
-5C085C25 085C25 [Regular]
-5C085C27 0827 [Trivial]
-5C085C30 0800 [Regular]
-5C085C3F 083F [Trivial]
-5C085C40 0840 [Trivial]
-5C085C5A 081A [Regular]
-5C085C5C 085C [Regular]
-5C085C5F 085C5F [Regular]
-5C085C61 0861 [Trivial]
-5C085C62 0808 [Regular]
-5C085C6E 080A [Regular]
-5C085C72 080D [Regular]
-5C085C74 0809 [Regular]
-5C085C7E 087E [Trivial]
-5C085C7F 087F [Trivial]
-5C085C80 0880 [Trivial][ILSEQ]
-5C085C81 0881 [Trivial][ILSEQ]
-5C085C9F 089F [Trivial][ILSEQ]
-5C085CA0 08A0 [Trivial][ILSEQ]
-5C085CA1 08A1 [Trivial]
-5C085CE0 08E0 [Trivial][ILSEQ]
-5C085CEF 08EF [Trivial][ILSEQ]
-5C085CF9 08F9 [Trivial][ILSEQ]
-5C085CFA 08FA [Trivial][ILSEQ]
-5C085CFC 08FC [Trivial][ILSEQ]
-5C085CFD 08FD [Trivial][ILSEQ]
-5C085CFE 08FE [Trivial][ILSEQ]
-5C085CFF 08FF [Trivial][ILSEQ]
-5C095C00 0900 [Trivial]
-5C095C08 0908 [Trivial]
-5C095C09 0909 [Trivial]
-5C095C0A 090A [Trivial]
-5C095C0D 090D [Trivial]
-5C095C1A 091A [Trivial]
-5C095C22 0922 [Trivial]
-5C095C25 095C25 [Regular]
-5C095C27 0927 [Trivial]
-5C095C30 0900 [Regular]
-5C095C3F 093F [Trivial]
-5C095C40 0940 [Trivial]
-5C095C5A 091A [Regular]
-5C095C5C 095C [Regular]
-5C095C5F 095C5F [Regular]
-5C095C61 0961 [Trivial]
-5C095C62 0908 [Regular]
-5C095C6E 090A [Regular]
-5C095C72 090D [Regular]
-5C095C74 0909 [Regular]
-5C095C7E 097E [Trivial]
-5C095C7F 097F [Trivial]
-5C095C80 0980 [Trivial][ILSEQ]
-5C095C81 0981 [Trivial][ILSEQ]
-5C095C9F 099F [Trivial][ILSEQ]
-5C095CA0 09A0 [Trivial][ILSEQ]
-5C095CA1 09A1 [Trivial]
-5C095CE0 09E0 [Trivial][ILSEQ]
-5C095CEF 09EF [Trivial][ILSEQ]
-5C095CF9 09F9 [Trivial][ILSEQ]
-5C095CFA 09FA [Trivial][ILSEQ]
-5C095CFC 09FC [Trivial][ILSEQ]
-5C095CFD 09FD [Trivial][ILSEQ]
-5C095CFE 09FE [Trivial][ILSEQ]
-5C095CFF 09FF [Trivial][ILSEQ]
-5C0A5C00 0A00 [Trivial]
-5C0A5C08 0A08 [Trivial]
-5C0A5C09 0A09 [Trivial]
-5C0A5C0A 0A0A [Trivial]
-5C0A5C0D 0A0D [Trivial]
-5C0A5C1A 0A1A [Trivial]
-5C0A5C22 0A22 [Trivial]
-5C0A5C25 0A5C25 [Regular]
-5C0A5C27 0A27 [Trivial]
-5C0A5C30 0A00 [Regular]
-5C0A5C3F 0A3F [Trivial]
-5C0A5C40 0A40 [Trivial]
-5C0A5C5A 0A1A [Regular]
-5C0A5C5C 0A5C [Regular]
-5C0A5C5F 0A5C5F [Regular]
-5C0A5C61 0A61 [Trivial]
-5C0A5C62 0A08 [Regular]
-5C0A5C6E 0A0A [Regular]
-5C0A5C72 0A0D [Regular]
-5C0A5C74 0A09 [Regular]
-5C0A5C7E 0A7E [Trivial]
-5C0A5C7F 0A7F [Trivial]
-5C0A5C80 0A80 [Trivial][ILSEQ]
-5C0A5C81 0A81 [Trivial][ILSEQ]
-5C0A5C9F 0A9F [Trivial][ILSEQ]
-5C0A5CA0 0AA0 [Trivial][ILSEQ]
-5C0A5CA1 0AA1 [Trivial]
-5C0A5CE0 0AE0 [Trivial][ILSEQ]
-5C0A5CEF 0AEF [Trivial][ILSEQ]
-5C0A5CF9 0AF9 [Trivial][ILSEQ]
-5C0A5CFA 0AFA [Trivial][ILSEQ]
-5C0A5CFC 0AFC [Trivial][ILSEQ]
-5C0A5CFD 0AFD [Trivial][ILSEQ]
-5C0A5CFE 0AFE [Trivial][ILSEQ]
-5C0A5CFF 0AFF [Trivial][ILSEQ]
-5C0D5C00 0D00 [Trivial]
-5C0D5C08 0D08 [Trivial]
-5C0D5C09 0D09 [Trivial]
-5C0D5C0A 0D0A [Trivial]
-5C0D5C0D 0D0D [Trivial]
-5C0D5C1A 0D1A [Trivial]
-5C0D5C22 0D22 [Trivial]
-5C0D5C25 0D5C25 [Regular]
-5C0D5C27 0D27 [Trivial]
-5C0D5C30 0D00 [Regular]
-5C0D5C3F 0D3F [Trivial]
-5C0D5C40 0D40 [Trivial]
-5C0D5C5A 0D1A [Regular]
-5C0D5C5C 0D5C [Regular]
-5C0D5C5F 0D5C5F [Regular]
-5C0D5C61 0D61 [Trivial]
-5C0D5C62 0D08 [Regular]
-5C0D5C6E 0D0A [Regular]
-5C0D5C72 0D0D [Regular]
-5C0D5C74 0D09 [Regular]
-5C0D5C7E 0D7E [Trivial]
-5C0D5C7F 0D7F [Trivial]
-5C0D5C80 0D80 [Trivial][ILSEQ]
-5C0D5C81 0D81 [Trivial][ILSEQ]
-5C0D5C9F 0D9F [Trivial][ILSEQ]
-5C0D5CA0 0DA0 [Trivial][ILSEQ]
-5C0D5CA1 0DA1 [Trivial]
-5C0D5CE0 0DE0 [Trivial][ILSEQ]
-5C0D5CEF 0DEF [Trivial][ILSEQ]
-5C0D5CF9 0DF9 [Trivial][ILSEQ]
-5C0D5CFA 0DFA [Trivial][ILSEQ]
-5C0D5CFC 0DFC [Trivial][ILSEQ]
-5C0D5CFD 0DFD [Trivial][ILSEQ]
-5C0D5CFE 0DFE [Trivial][ILSEQ]
-5C0D5CFF 0DFF [Trivial][ILSEQ]
-5C1A5C00 1A00 [Trivial]
-5C1A5C08 1A08 [Trivial]
-5C1A5C09 1A09 [Trivial]
-5C1A5C0A 1A0A [Trivial]
-5C1A5C0D 1A0D [Trivial]
-5C1A5C1A 1A1A [Trivial]
-5C1A5C22 1A22 [Trivial]
-5C1A5C25 1A5C25 [Regular]
-5C1A5C27 1A27 [Trivial]
-5C1A5C30 1A00 [Regular]
-5C1A5C3F 1A3F [Trivial]
-5C1A5C40 1A40 [Trivial]
-5C1A5C5A 1A1A [Regular]
-5C1A5C5C 1A5C [Regular]
-5C1A5C5F 1A5C5F [Regular]
-5C1A5C61 1A61 [Trivial]
-5C1A5C62 1A08 [Regular]
-5C1A5C6E 1A0A [Regular]
-5C1A5C72 1A0D [Regular]
-5C1A5C74 1A09 [Regular]
-5C1A5C7E 1A7E [Trivial]
-5C1A5C7F 1A7F [Trivial]
-5C1A5C80 1A80 [Trivial][ILSEQ]
-5C1A5C81 1A81 [Trivial][ILSEQ]
-5C1A5C9F 1A9F [Trivial][ILSEQ]
-5C1A5CA0 1AA0 [Trivial][ILSEQ]
-5C1A5CA1 1AA1 [Trivial]
-5C1A5CE0 1AE0 [Trivial][ILSEQ]
-5C1A5CEF 1AEF [Trivial][ILSEQ]
-5C1A5CF9 1AF9 [Trivial][ILSEQ]
-5C1A5CFA 1AFA [Trivial][ILSEQ]
-5C1A5CFC 1AFC [Trivial][ILSEQ]
-5C1A5CFD 1AFD [Trivial][ILSEQ]
-5C1A5CFE 1AFE [Trivial][ILSEQ]
-5C1A5CFF 1AFF [Trivial][ILSEQ]
-5C225C00 2200 [Trivial]
-5C225C08 2208 [Trivial]
-5C225C09 2209 [Trivial]
-5C225C0A 220A [Trivial]
-5C225C0D 220D [Trivial]
-5C225C1A 221A [Trivial]
-5C225C22 2222 [Trivial]
-5C225C25 225C25 [Regular]
-5C225C27 2227 [Trivial]
-5C225C30 2200 [Regular]
-5C225C3F 223F [Trivial]
-5C225C40 2240 [Trivial]
-5C225C5A 221A [Regular]
-5C225C5C 225C [Regular]
-5C225C5F 225C5F [Regular]
-5C225C61 2261 [Trivial]
-5C225C62 2208 [Regular]
-5C225C6E 220A [Regular]
-5C225C72 220D [Regular]
-5C225C74 2209 [Regular]
-5C225C7E 227E [Trivial]
-5C225C7F 227F [Trivial]
-5C225C80 2280 [Trivial][ILSEQ]
-5C225C81 2281 [Trivial][ILSEQ]
-5C225C9F 229F [Trivial][ILSEQ]
-5C225CA0 22A0 [Trivial][ILSEQ]
-5C225CA1 22A1 [Trivial]
-5C225CE0 22E0 [Trivial][ILSEQ]
-5C225CEF 22EF [Trivial][ILSEQ]
-5C225CF9 22F9 [Trivial][ILSEQ]
-5C225CFA 22FA [Trivial][ILSEQ]
-5C225CFC 22FC [Trivial][ILSEQ]
-5C225CFD 22FD [Trivial][ILSEQ]
-5C225CFE 22FE [Trivial][ILSEQ]
-5C225CFF 22FF [Trivial][ILSEQ]
-5C255C00 5C2500 [Regular]
-5C255C08 5C2508 [Regular]
-5C255C09 5C2509 [Regular]
-5C255C0A 5C250A [Regular]
-5C255C0D 5C250D [Regular]
-5C255C1A 5C251A [Regular]
-5C255C22 5C2522 [Regular]
-5C255C25 5C255C25 [Preserve][LIKE]
-5C255C27 5C2527 [Regular]
-5C255C30 5C2500 [Regular]
-5C255C3F 5C253F [Regular]
-5C255C40 5C2540 [Regular]
-5C255C5A 5C251A [Regular]
-5C255C5C 5C255C [Regular]
-5C255C5F 5C255C5F [Preserve][LIKE]
-5C255C61 5C2561 [Regular]
-5C255C62 5C2508 [Regular]
-5C255C6E 5C250A [Regular]
-5C255C72 5C250D [Regular]
-5C255C74 5C2509 [Regular]
-5C255C7E 5C257E [Regular]
-5C255C7F 5C257F [Regular]
-5C255C80 5C2580 [Regular][ILSEQ]
-5C255C81 5C2581 [Regular][ILSEQ]
-5C255C9F 5C259F [Regular][ILSEQ]
-5C255CA0 5C25A0 [Regular][ILSEQ]
-5C255CA1 5C25A1 [Regular]
-5C255CE0 5C25E0 [Regular][ILSEQ]
-5C255CEF 5C25EF [Regular][ILSEQ]
-5C255CF9 5C25F9 [Regular][ILSEQ]
-5C255CFA 5C25FA [Regular][ILSEQ]
-5C255CFC 5C25FC [Regular][ILSEQ]
-5C255CFD 5C25FD [Regular][ILSEQ]
-5C255CFE 5C25FE [Regular][ILSEQ]
-5C255CFF 5C25FF [Regular][ILSEQ]
-5C275C00 2700 [Trivial]
-5C275C08 2708 [Trivial]
-5C275C09 2709 [Trivial]
-5C275C0A 270A [Trivial]
-5C275C0D 270D [Trivial]
-5C275C1A 271A [Trivial]
-5C275C22 2722 [Trivial]
-5C275C25 275C25 [Regular]
-5C275C27 2727 [Trivial]
-5C275C30 2700 [Regular]
-5C275C3F 273F [Trivial]
-5C275C40 2740 [Trivial]
-5C275C5A 271A [Regular]
-5C275C5C 275C [Regular]
-5C275C5F 275C5F [Regular]
-5C275C61 2761 [Trivial]
-5C275C62 2708 [Regular]
-5C275C6E 270A [Regular]
-5C275C72 270D [Regular]
-5C275C74 2709 [Regular]
-5C275C7E 277E [Trivial]
-5C275C7F 277F [Trivial]
-5C275C80 2780 [Trivial][ILSEQ]
-5C275C81 2781 [Trivial][ILSEQ]
-5C275C9F 279F [Trivial][ILSEQ]
-5C275CA0 27A0 [Trivial][ILSEQ]
-5C275CA1 27A1 [Trivial]
-5C275CE0 27E0 [Trivial][ILSEQ]
-5C275CEF 27EF [Trivial][ILSEQ]
-5C275CF9 27F9 [Trivial][ILSEQ]
-5C275CFA 27FA [Trivial][ILSEQ]
-5C275CFC 27FC [Trivial][ILSEQ]
-5C275CFD 27FD [Trivial][ILSEQ]
-5C275CFE 27FE [Trivial][ILSEQ]
-5C275CFF 27FF [Trivial][ILSEQ]
-5C305C00 0000 [Regular]
-5C305C08 0008 [Regular]
-5C305C09 0009 [Regular]
-5C305C0A 000A [Regular]
-5C305C0D 000D [Regular]
-5C305C1A 001A [Regular]
-5C305C22 0022 [Regular]
-5C305C25 005C25 [Regular]
-5C305C27 0027 [Regular]
-5C305C30 0000 [Regular]
-5C305C3F 003F [Regular]
-5C305C40 0040 [Regular]
-5C305C5A 001A [Regular]
-5C305C5C 005C [Regular]
-5C305C5F 005C5F [Regular]
-5C305C61 0061 [Regular]
-5C305C62 0008 [Regular]
-5C305C6E 000A [Regular]
-5C305C72 000D [Regular]
-5C305C74 0009 [Regular]
-5C305C7E 007E [Regular]
-5C305C7F 007F [Regular]
-5C305C80 0080 [Regular][ILSEQ]
-5C305C81 0081 [Regular][ILSEQ]
-5C305C9F 009F [Regular][ILSEQ]
-5C305CA0 00A0 [Regular][ILSEQ]
-5C305CA1 00A1 [Regular]
-5C305CE0 00E0 [Regular][ILSEQ]
-5C305CEF 00EF [Regular][ILSEQ]
-5C305CF9 00F9 [Regular][ILSEQ]
-5C305CFA 00FA [Regular][ILSEQ]
-5C305CFC 00FC [Regular][ILSEQ]
-5C305CFD 00FD [Regular][ILSEQ]
-5C305CFE 00FE [Regular][ILSEQ]
-5C305CFF 00FF [Regular][ILSEQ]
-5C3F5C00 3F00 [Trivial]
-5C3F5C08 3F08 [Trivial]
-5C3F5C09 3F09 [Trivial]
-5C3F5C0A 3F0A [Trivial]
-5C3F5C0D 3F0D [Trivial]
-5C3F5C1A 3F1A [Trivial]
-5C3F5C22 3F22 [Trivial]
-5C3F5C25 3F5C25 [Regular]
-5C3F5C27 3F27 [Trivial]
-5C3F5C30 3F00 [Regular]
-5C3F5C3F 3F3F [Trivial]
-5C3F5C40 3F40 [Trivial]
-5C3F5C5A 3F1A [Regular]
-5C3F5C5C 3F5C [Regular]
-5C3F5C5F 3F5C5F [Regular]
-5C3F5C61 3F61 [Trivial]
-5C3F5C62 3F08 [Regular]
-5C3F5C6E 3F0A [Regular]
-5C3F5C72 3F0D [Regular]
-5C3F5C74 3F09 [Regular]
-5C3F5C7E 3F7E [Trivial]
-5C3F5C7F 3F7F [Trivial]
-5C3F5C80 3F80 [Trivial][ILSEQ]
-5C3F5C81 3F81 [Trivial][ILSEQ]
-5C3F5C9F 3F9F [Trivial][ILSEQ]
-5C3F5CA0 3FA0 [Trivial][ILSEQ]
-5C3F5CA1 3FA1 [Trivial]
-5C3F5CE0 3FE0 [Trivial][ILSEQ]
-5C3F5CEF 3FEF [Trivial][ILSEQ]
-5C3F5CF9 3FF9 [Trivial][ILSEQ]
-5C3F5CFA 3FFA [Trivial][ILSEQ]
-5C3F5CFC 3FFC [Trivial][ILSEQ]
-5C3F5CFD 3FFD [Trivial][ILSEQ]
-5C3F5CFE 3FFE [Trivial][ILSEQ]
-5C3F5CFF 3FFF [Trivial][ILSEQ]
-5C405C00 4000 [Trivial]
-5C405C08 4008 [Trivial]
-5C405C09 4009 [Trivial]
-5C405C0A 400A [Trivial]
-5C405C0D 400D [Trivial]
-5C405C1A 401A [Trivial]
-5C405C22 4022 [Trivial]
-5C405C25 405C25 [Regular]
-5C405C27 4027 [Trivial]
-5C405C30 4000 [Regular]
-5C405C3F 403F [Trivial]
-5C405C40 4040 [Trivial]
-5C405C5A 401A [Regular]
-5C405C5C 405C [Regular]
-5C405C5F 405C5F [Regular]
-5C405C61 4061 [Trivial]
-5C405C62 4008 [Regular]
-5C405C6E 400A [Regular]
-5C405C72 400D [Regular]
-5C405C74 4009 [Regular]
-5C405C7E 407E [Trivial]
-5C405C7F 407F [Trivial]
-5C405C80 4080 [Trivial][ILSEQ]
-5C405C81 4081 [Trivial][ILSEQ]
-5C405C9F 409F [Trivial][ILSEQ]
-5C405CA0 40A0 [Trivial][ILSEQ]
-5C405CA1 40A1 [Trivial]
-5C405CE0 40E0 [Trivial][ILSEQ]
-5C405CEF 40EF [Trivial][ILSEQ]
-5C405CF9 40F9 [Trivial][ILSEQ]
-5C405CFA 40FA [Trivial][ILSEQ]
-5C405CFC 40FC [Trivial][ILSEQ]
-5C405CFD 40FD [Trivial][ILSEQ]
-5C405CFE 40FE [Trivial][ILSEQ]
-5C405CFF 40FF [Trivial][ILSEQ]
-5C5A5C00 1A00 [Regular]
-5C5A5C08 1A08 [Regular]
-5C5A5C09 1A09 [Regular]
-5C5A5C0A 1A0A [Regular]
-5C5A5C0D 1A0D [Regular]
-5C5A5C1A 1A1A [Regular]
-5C5A5C22 1A22 [Regular]
-5C5A5C25 1A5C25 [Regular]
-5C5A5C27 1A27 [Regular]
-5C5A5C30 1A00 [Regular]
-5C5A5C3F 1A3F [Regular]
-5C5A5C40 1A40 [Regular]
-5C5A5C5A 1A1A [Regular]
-5C5A5C5C 1A5C [Regular]
-5C5A5C5F 1A5C5F [Regular]
-5C5A5C61 1A61 [Regular]
-5C5A5C62 1A08 [Regular]
-5C5A5C6E 1A0A [Regular]
-5C5A5C72 1A0D [Regular]
-5C5A5C74 1A09 [Regular]
-5C5A5C7E 1A7E [Regular]
-5C5A5C7F 1A7F [Regular]
-5C5A5C80 1A80 [Regular][ILSEQ]
-5C5A5C81 1A81 [Regular][ILSEQ]
-5C5A5C9F 1A9F [Regular][ILSEQ]
-5C5A5CA0 1AA0 [Regular][ILSEQ]
-5C5A5CA1 1AA1 [Regular]
-5C5A5CE0 1AE0 [Regular][ILSEQ]
-5C5A5CEF 1AEF [Regular][ILSEQ]
-5C5A5CF9 1AF9 [Regular][ILSEQ]
-5C5A5CFA 1AFA [Regular][ILSEQ]
-5C5A5CFC 1AFC [Regular][ILSEQ]
-5C5A5CFD 1AFD [Regular][ILSEQ]
-5C5A5CFE 1AFE [Regular][ILSEQ]
-5C5A5CFF 1AFF [Regular][ILSEQ]
-5C5C5C00 5C00 [Regular]
-5C5C5C08 5C08 [Regular]
-5C5C5C09 5C09 [Regular]
-5C5C5C0A 5C0A [Regular]
-5C5C5C0D 5C0D [Regular]
-5C5C5C1A 5C1A [Regular]
-5C5C5C22 5C22 [Regular]
-5C5C5C25 5C5C25 [Regular]
-5C5C5C27 5C27 [Regular]
-5C5C5C30 5C00 [Regular]
-5C5C5C3F 5C3F [Regular]
-5C5C5C40 5C40 [Regular]
-5C5C5C5A 5C1A [Regular]
-5C5C5C5C 5C5C [Regular]
-5C5C5C5F 5C5C5F [Regular]
-5C5C5C61 5C61 [Regular]
-5C5C5C62 5C08 [Regular]
-5C5C5C6E 5C0A [Regular]
-5C5C5C72 5C0D [Regular]
-5C5C5C74 5C09 [Regular]
-5C5C5C7E 5C7E [Regular]
-5C5C5C7F 5C7F [Regular]
-5C5C5C80 5C80 [Regular][ILSEQ]
-5C5C5C81 5C81 [Regular][ILSEQ]
-5C5C5C9F 5C9F [Regular][ILSEQ]
-5C5C5CA0 5CA0 [Regular][ILSEQ]
-5C5C5CA1 5CA1 [Regular]
-5C5C5CE0 5CE0 [Regular][ILSEQ]
-5C5C5CEF 5CEF [Regular][ILSEQ]
-5C5C5CF9 5CF9 [Regular][ILSEQ]
-5C5C5CFA 5CFA [Regular][ILSEQ]
-5C5C5CFC 5CFC [Regular][ILSEQ]
-5C5C5CFD 5CFD [Regular][ILSEQ]
-5C5C5CFE 5CFE [Regular][ILSEQ]
-5C5C5CFF 5CFF [Regular][ILSEQ]
-5C5F5C00 5C5F00 [Regular]
-5C5F5C08 5C5F08 [Regular]
-5C5F5C09 5C5F09 [Regular]
-5C5F5C0A 5C5F0A [Regular]
-5C5F5C0D 5C5F0D [Regular]
-5C5F5C1A 5C5F1A [Regular]
-5C5F5C22 5C5F22 [Regular]
-5C5F5C25 5C5F5C25 [Preserve][LIKE]
-5C5F5C27 5C5F27 [Regular]
-5C5F5C30 5C5F00 [Regular]
-5C5F5C3F 5C5F3F [Regular]
-5C5F5C40 5C5F40 [Regular]
-5C5F5C5A 5C5F1A [Regular]
-5C5F5C5C 5C5F5C [Regular]
-5C5F5C5F 5C5F5C5F [Preserve][LIKE]
-5C5F5C61 5C5F61 [Regular]
-5C5F5C62 5C5F08 [Regular]
-5C5F5C6E 5C5F0A [Regular]
-5C5F5C72 5C5F0D [Regular]
-5C5F5C74 5C5F09 [Regular]
-5C5F5C7E 5C5F7E [Regular]
-5C5F5C7F 5C5F7F [Regular]
-5C5F5C80 5C5F80 [Regular][ILSEQ]
-5C5F5C81 5C5F81 [Regular][ILSEQ]
-5C5F5C9F 5C5F9F [Regular][ILSEQ]
-5C5F5CA0 5C5FA0 [Regular][ILSEQ]
-5C5F5CA1 5C5FA1 [Regular]
-5C5F5CE0 5C5FE0 [Regular][ILSEQ]
-5C5F5CEF 5C5FEF [Regular][ILSEQ]
-5C5F5CF9 5C5FF9 [Regular][ILSEQ]
-5C5F5CFA 5C5FFA [Regular][ILSEQ]
-5C5F5CFC 5C5FFC [Regular][ILSEQ]
-5C5F5CFD 5C5FFD [Regular][ILSEQ]
-5C5F5CFE 5C5FFE [Regular][ILSEQ]
-5C5F5CFF 5C5FFF [Regular][ILSEQ]
-5C615C00 6100 [Trivial]
-5C615C08 6108 [Trivial]
-5C615C09 6109 [Trivial]
-5C615C0A 610A [Trivial]
-5C615C0D 610D [Trivial]
-5C615C1A 611A [Trivial]
-5C615C22 6122 [Trivial]
-5C615C25 615C25 [Regular]
-5C615C27 6127 [Trivial]
-5C615C30 6100 [Regular]
-5C615C3F 613F [Trivial]
-5C615C40 6140 [Trivial]
-5C615C5A 611A [Regular]
-5C615C5C 615C [Regular]
-5C615C5F 615C5F [Regular]
-5C615C61 6161 [Trivial]
-5C615C62 6108 [Regular]
-5C615C6E 610A [Regular]
-5C615C72 610D [Regular]
-5C615C74 6109 [Regular]
-5C615C7E 617E [Trivial]
-5C615C7F 617F [Trivial]
-5C615C80 6180 [Trivial][ILSEQ]
-5C615C81 6181 [Trivial][ILSEQ]
-5C615C9F 619F [Trivial][ILSEQ]
-5C615CA0 61A0 [Trivial][ILSEQ]
-5C615CA1 61A1 [Trivial]
-5C615CE0 61E0 [Trivial][ILSEQ]
-5C615CEF 61EF [Trivial][ILSEQ]
-5C615CF9 61F9 [Trivial][ILSEQ]
-5C615CFA 61FA [Trivial][ILSEQ]
-5C615CFC 61FC [Trivial][ILSEQ]
-5C615CFD 61FD [Trivial][ILSEQ]
-5C615CFE 61FE [Trivial][ILSEQ]
-5C615CFF 61FF [Trivial][ILSEQ]
-5C625C00 0800 [Regular]
-5C625C08 0808 [Regular]
-5C625C09 0809 [Regular]
-5C625C0A 080A [Regular]
-5C625C0D 080D [Regular]
-5C625C1A 081A [Regular]
-5C625C22 0822 [Regular]
-5C625C25 085C25 [Regular]
-5C625C27 0827 [Regular]
-5C625C30 0800 [Regular]
-5C625C3F 083F [Regular]
-5C625C40 0840 [Regular]
-5C625C5A 081A [Regular]
-5C625C5C 085C [Regular]
-5C625C5F 085C5F [Regular]
-5C625C61 0861 [Regular]
-5C625C62 0808 [Regular]
-5C625C6E 080A [Regular]
-5C625C72 080D [Regular]
-5C625C74 0809 [Regular]
-5C625C7E 087E [Regular]
-5C625C7F 087F [Regular]
-5C625C80 0880 [Regular][ILSEQ]
-5C625C81 0881 [Regular][ILSEQ]
-5C625C9F 089F [Regular][ILSEQ]
-5C625CA0 08A0 [Regular][ILSEQ]
-5C625CA1 08A1 [Regular]
-5C625CE0 08E0 [Regular][ILSEQ]
-5C625CEF 08EF [Regular][ILSEQ]
-5C625CF9 08F9 [Regular][ILSEQ]
-5C625CFA 08FA [Regular][ILSEQ]
-5C625CFC 08FC [Regular][ILSEQ]
-5C625CFD 08FD [Regular][ILSEQ]
-5C625CFE 08FE [Regular][ILSEQ]
-5C625CFF 08FF [Regular][ILSEQ]
-5C6E5C00 0A00 [Regular]
-5C6E5C08 0A08 [Regular]
-5C6E5C09 0A09 [Regular]
-5C6E5C0A 0A0A [Regular]
-5C6E5C0D 0A0D [Regular]
-5C6E5C1A 0A1A [Regular]
-5C6E5C22 0A22 [Regular]
-5C6E5C25 0A5C25 [Regular]
-5C6E5C27 0A27 [Regular]
-5C6E5C30 0A00 [Regular]
-5C6E5C3F 0A3F [Regular]
-5C6E5C40 0A40 [Regular]
-5C6E5C5A 0A1A [Regular]
-5C6E5C5C 0A5C [Regular]
-5C6E5C5F 0A5C5F [Regular]
-5C6E5C61 0A61 [Regular]
-5C6E5C62 0A08 [Regular]
-5C6E5C6E 0A0A [Regular]
-5C6E5C72 0A0D [Regular]
-5C6E5C74 0A09 [Regular]
-5C6E5C7E 0A7E [Regular]
-5C6E5C7F 0A7F [Regular]
-5C6E5C80 0A80 [Regular][ILSEQ]
-5C6E5C81 0A81 [Regular][ILSEQ]
-5C6E5C9F 0A9F [Regular][ILSEQ]
-5C6E5CA0 0AA0 [Regular][ILSEQ]
-5C6E5CA1 0AA1 [Regular]
-5C6E5CE0 0AE0 [Regular][ILSEQ]
-5C6E5CEF 0AEF [Regular][ILSEQ]
-5C6E5CF9 0AF9 [Regular][ILSEQ]
-5C6E5CFA 0AFA [Regular][ILSEQ]
-5C6E5CFC 0AFC [Regular][ILSEQ]
-5C6E5CFD 0AFD [Regular][ILSEQ]
-5C6E5CFE 0AFE [Regular][ILSEQ]
-5C6E5CFF 0AFF [Regular][ILSEQ]
-5C725C00 0D00 [Regular]
-5C725C08 0D08 [Regular]
-5C725C09 0D09 [Regular]
-5C725C0A 0D0A [Regular]
-5C725C0D 0D0D [Regular]
-5C725C1A 0D1A [Regular]
-5C725C22 0D22 [Regular]
-5C725C25 0D5C25 [Regular]
-5C725C27 0D27 [Regular]
-5C725C30 0D00 [Regular]
-5C725C3F 0D3F [Regular]
-5C725C40 0D40 [Regular]
-5C725C5A 0D1A [Regular]
-5C725C5C 0D5C [Regular]
-5C725C5F 0D5C5F [Regular]
-5C725C61 0D61 [Regular]
-5C725C62 0D08 [Regular]
-5C725C6E 0D0A [Regular]
-5C725C72 0D0D [Regular]
-5C725C74 0D09 [Regular]
-5C725C7E 0D7E [Regular]
-5C725C7F 0D7F [Regular]
-5C725C80 0D80 [Regular][ILSEQ]
-5C725C81 0D81 [Regular][ILSEQ]
-5C725C9F 0D9F [Regular][ILSEQ]
-5C725CA0 0DA0 [Regular][ILSEQ]
-5C725CA1 0DA1 [Regular]
-5C725CE0 0DE0 [Regular][ILSEQ]
-5C725CEF 0DEF [Regular][ILSEQ]
-5C725CF9 0DF9 [Regular][ILSEQ]
-5C725CFA 0DFA [Regular][ILSEQ]
-5C725CFC 0DFC [Regular][ILSEQ]
-5C725CFD 0DFD [Regular][ILSEQ]
-5C725CFE 0DFE [Regular][ILSEQ]
-5C725CFF 0DFF [Regular][ILSEQ]
-5C745C00 0900 [Regular]
-5C745C08 0908 [Regular]
-5C745C09 0909 [Regular]
-5C745C0A 090A [Regular]
-5C745C0D 090D [Regular]
-5C745C1A 091A [Regular]
-5C745C22 0922 [Regular]
-5C745C25 095C25 [Regular]
-5C745C27 0927 [Regular]
-5C745C30 0900 [Regular]
-5C745C3F 093F [Regular]
-5C745C40 0940 [Regular]
-5C745C5A 091A [Regular]
-5C745C5C 095C [Regular]
-5C745C5F 095C5F [Regular]
-5C745C61 0961 [Regular]
-5C745C62 0908 [Regular]
-5C745C6E 090A [Regular]
-5C745C72 090D [Regular]
-5C745C74 0909 [Regular]
-5C745C7E 097E [Regular]
-5C745C7F 097F [Regular]
-5C745C80 0980 [Regular][ILSEQ]
-5C745C81 0981 [Regular][ILSEQ]
-5C745C9F 099F [Regular][ILSEQ]
-5C745CA0 09A0 [Regular][ILSEQ]
-5C745CA1 09A1 [Regular]
-5C745CE0 09E0 [Regular][ILSEQ]
-5C745CEF 09EF [Regular][ILSEQ]
-5C745CF9 09F9 [Regular][ILSEQ]
-5C745CFA 09FA [Regular][ILSEQ]
-5C745CFC 09FC [Regular][ILSEQ]
-5C745CFD 09FD [Regular][ILSEQ]
-5C745CFE 09FE [Regular][ILSEQ]
-5C745CFF 09FF [Regular][ILSEQ]
-5C7E5C00 7E00 [Trivial]
-5C7E5C08 7E08 [Trivial]
-5C7E5C09 7E09 [Trivial]
-5C7E5C0A 7E0A [Trivial]
-5C7E5C0D 7E0D [Trivial]
-5C7E5C1A 7E1A [Trivial]
-5C7E5C22 7E22 [Trivial]
-5C7E5C25 7E5C25 [Regular]
-5C7E5C27 7E27 [Trivial]
-5C7E5C30 7E00 [Regular]
-5C7E5C3F 7E3F [Trivial]
-5C7E5C40 7E40 [Trivial]
-5C7E5C5A 7E1A [Regular]
-5C7E5C5C 7E5C [Regular]
-5C7E5C5F 7E5C5F [Regular]
-5C7E5C61 7E61 [Trivial]
-5C7E5C62 7E08 [Regular]
-5C7E5C6E 7E0A [Regular]
-5C7E5C72 7E0D [Regular]
-5C7E5C74 7E09 [Regular]
-5C7E5C7E 7E7E [Trivial]
-5C7E5C7F 7E7F [Trivial]
-5C7E5C80 7E80 [Trivial][ILSEQ]
-5C7E5C81 7E81 [Trivial][ILSEQ]
-5C7E5C9F 7E9F [Trivial][ILSEQ]
-5C7E5CA0 7EA0 [Trivial][ILSEQ]
-5C7E5CA1 7EA1 [Trivial]
-5C7E5CE0 7EE0 [Trivial][ILSEQ]
-5C7E5CEF 7EEF [Trivial][ILSEQ]
-5C7E5CF9 7EF9 [Trivial][ILSEQ]
-5C7E5CFA 7EFA [Trivial][ILSEQ]
-5C7E5CFC 7EFC [Trivial][ILSEQ]
-5C7E5CFD 7EFD [Trivial][ILSEQ]
-5C7E5CFE 7EFE [Trivial][ILSEQ]
-5C7E5CFF 7EFF [Trivial][ILSEQ]
-5C7F5C00 7F00 [Trivial]
-5C7F5C08 7F08 [Trivial]
-5C7F5C09 7F09 [Trivial]
-5C7F5C0A 7F0A [Trivial]
-5C7F5C0D 7F0D [Trivial]
-5C7F5C1A 7F1A [Trivial]
-5C7F5C22 7F22 [Trivial]
-5C7F5C25 7F5C25 [Regular]
-5C7F5C27 7F27 [Trivial]
-5C7F5C30 7F00 [Regular]
-5C7F5C3F 7F3F [Trivial]
-5C7F5C40 7F40 [Trivial]
-5C7F5C5A 7F1A [Regular]
-5C7F5C5C 7F5C [Regular]
-5C7F5C5F 7F5C5F [Regular]
-5C7F5C61 7F61 [Trivial]
-5C7F5C62 7F08 [Regular]
-5C7F5C6E 7F0A [Regular]
-5C7F5C72 7F0D [Regular]
-5C7F5C74 7F09 [Regular]
-5C7F5C7E 7F7E [Trivial]
-5C7F5C7F 7F7F [Trivial]
-5C7F5C80 7F80 [Trivial][ILSEQ]
-5C7F5C81 7F81 [Trivial][ILSEQ]
-5C7F5C9F 7F9F [Trivial][ILSEQ]
-5C7F5CA0 7FA0 [Trivial][ILSEQ]
-5C7F5CA1 7FA1 [Trivial]
-5C7F5CE0 7FE0 [Trivial][ILSEQ]
-5C7F5CEF 7FEF [Trivial][ILSEQ]
-5C7F5CF9 7FF9 [Trivial][ILSEQ]
-5C7F5CFA 7FFA [Trivial][ILSEQ]
-5C7F5CFC 7FFC [Trivial][ILSEQ]
-5C7F5CFD 7FFD [Trivial][ILSEQ]
-5C7F5CFE 7FFE [Trivial][ILSEQ]
-5C7F5CFF 7FFF [Trivial][ILSEQ]
-5C805C00 8000 [Trivial][ILSEQ]
-5C805C08 8008 [Trivial][ILSEQ]
-5C805C09 8009 [Trivial][ILSEQ]
-5C805C0A 800A [Trivial][ILSEQ]
-5C805C0D 800D [Trivial][ILSEQ]
-5C805C1A 801A [Trivial][ILSEQ]
-5C805C22 8022 [Trivial][ILSEQ]
-5C805C25 805C25 [Regular][ILSEQ]
-5C805C27 8027 [Trivial][ILSEQ]
-5C805C30 8000 [Regular][ILSEQ]
-5C805C3F 803F [Trivial][ILSEQ]
-5C805C40 8040 [Trivial][ILSEQ]
-5C805C5A 801A [Regular][ILSEQ]
-5C805C5C 805C [Regular][ILSEQ]
-5C805C5F 805C5F [Regular][ILSEQ]
-5C805C61 8061 [Trivial][ILSEQ]
-5C805C62 8008 [Regular][ILSEQ]
-5C805C6E 800A [Regular][ILSEQ]
-5C805C72 800D [Regular][ILSEQ]
-5C805C74 8009 [Regular][ILSEQ]
-5C805C7E 807E [Trivial][ILSEQ]
-5C805C7F 807F [Trivial][ILSEQ]
-5C805C80 8080 [Trivial][ILSEQ]
-5C805C81 8081 [Trivial][ILSEQ]
-5C805C9F 809F [Trivial][ILSEQ]
-5C805CA0 80A0 [Trivial][ILSEQ]
-5C805CA1 80A1 [Trivial][ILSEQ]
-5C805CE0 80E0 [Trivial][ILSEQ]
-5C805CEF 80EF [Trivial][ILSEQ]
-5C805CF9 80F9 [Trivial][ILSEQ]
-5C805CFA 80FA [Trivial][ILSEQ]
-5C805CFC 80FC [Trivial][ILSEQ]
-5C805CFD 80FD [Trivial][ILSEQ]
-5C805CFE 80FE [Trivial][ILSEQ]
-5C805CFF 80FF [Trivial][ILSEQ]
-5C815C00 8100 [Trivial][BROKE]
-5C815C08 8108 [Trivial][BROKE]
-5C815C09 8109 [Trivial][BROKE]
-5C815C0A 810A [Trivial][BROKE]
-5C815C0D 810D [Trivial][BROKE]
-5C815C1A 811A [Trivial][BROKE]
-5C815C22 8122 [Trivial][BROKE]
-5C815C25 815C25 [Regular]
-5C815C27 8127 [Trivial][BROKE]
-5C815C30 8100 [Regular][BROKE]
-5C815C3F 813F [Trivial][BROKE]
-5C815C40 8140 [Trivial][USER]
-5C815C5A 811A [Regular][BROKE]
-5C815C5C 815C [Regular][USER]
-5C815C5F 815C5F [Regular]
-5C815C61 8161 [Trivial][USER]
-5C815C62 8108 [Regular][BROKE][USER]
-5C815C6E 810A [Regular][BROKE]
-5C815C72 810D [Regular][BROKE]
-5C815C74 8109 [Regular][BROKE]
-5C815C7E 817E [Trivial][USER]
-5C815C7F 817F [Trivial][BROKE]
-5C815C80 8180 [Trivial][FIXED][USER]
-5C815C81 8181 [Trivial][FIXED][USER]
-5C815C9F 819F [Trivial][FIXED][USER]
-5C815CA0 81A0 [Trivial][FIXED][USER]
-5C815CA1 81A1 [Trivial][USER]
-5C815CE0 81E0 [Trivial][FIXED][USER]
-5C815CEF 81EF [Trivial][FIXED][USER]
-5C815CF9 81F9 [Trivial][FIXED][USER]
-5C815CFA 81FA [Trivial][FIXED][USER]
-5C815CFC 81FC [Trivial][FIXED][USER]
-5C815CFD 81FD [Trivial][ILSEQ]
-5C815CFE 81FE [Trivial][ILSEQ]
-5C815CFF 81FF [Trivial][ILSEQ]
-5C9F5C00 9F00 [Trivial][BROKE]
-5C9F5C08 9F08 [Trivial][BROKE]
-5C9F5C09 9F09 [Trivial][BROKE]
-5C9F5C0A 9F0A [Trivial][BROKE]
-5C9F5C0D 9F0D [Trivial][BROKE]
-5C9F5C1A 9F1A [Trivial][BROKE]
-5C9F5C22 9F22 [Trivial][BROKE]
-5C9F5C25 9F5C25 [Regular]
-5C9F5C27 9F27 [Trivial][BROKE]
-5C9F5C30 9F00 [Regular][BROKE]
-5C9F5C3F 9F3F [Trivial][BROKE]
-5C9F5C40 9F40 [Trivial][USER]
-5C9F5C5A 9F1A [Regular][BROKE]
-5C9F5C5C 9F5C [Regular][USER]
-5C9F5C5F 9F5C5F [Regular]
-5C9F5C61 9F61 [Trivial][USER]
-5C9F5C62 9F08 [Regular][BROKE][USER]
-5C9F5C6E 9F0A [Regular][BROKE]
-5C9F5C72 9F0D [Regular][BROKE]
-5C9F5C74 9F09 [Regular][BROKE]
-5C9F5C7E 9F7E [Trivial][USER]
-5C9F5C7F 9F7F [Trivial][BROKE]
-5C9F5C80 9F80 [Trivial][FIXED][USER]
-5C9F5C81 9F81 [Trivial][FIXED][USER]
-5C9F5C9F 9F9F [Trivial][FIXED][USER]
-5C9F5CA0 9FA0 [Trivial][FIXED][USER]
-5C9F5CA1 9FA1 [Trivial][USER]
-5C9F5CE0 9FE0 [Trivial][FIXED][USER]
-5C9F5CEF 9FEF [Trivial][FIXED][USER]
-5C9F5CF9 9FF9 [Trivial][FIXED][USER]
-5C9F5CFA 9FFA [Trivial][FIXED][USER]
-5C9F5CFC 9FFC [Trivial][FIXED][USER]
-5C9F5CFD 9FFD [Trivial][ILSEQ]
-5C9F5CFE 9FFE [Trivial][ILSEQ]
-5C9F5CFF 9FFF [Trivial][ILSEQ]
-5CA05C00 A000 [Trivial][ILSEQ]
-5CA05C08 A008 [Trivial][ILSEQ]
-5CA05C09 A009 [Trivial][ILSEQ]
-5CA05C0A A00A [Trivial][ILSEQ]
-5CA05C0D A00D [Trivial][ILSEQ]
-5CA05C1A A01A [Trivial][ILSEQ]
-5CA05C22 A022 [Trivial][ILSEQ]
-5CA05C25 A05C25 [Regular][ILSEQ]
-5CA05C27 A027 [Trivial][ILSEQ]
-5CA05C30 A000 [Regular][ILSEQ]
-5CA05C3F A03F [Trivial][ILSEQ]
-5CA05C40 A040 [Trivial][ILSEQ]
-5CA05C5A A01A [Regular][ILSEQ]
-5CA05C5C A05C [Regular][ILSEQ]
-5CA05C5F A05C5F [Regular][ILSEQ]
-5CA05C61 A061 [Trivial][ILSEQ]
-5CA05C62 A008 [Regular][ILSEQ]
-5CA05C6E A00A [Regular][ILSEQ]
-5CA05C72 A00D [Regular][ILSEQ]
-5CA05C74 A009 [Regular][ILSEQ]
-5CA05C7E A07E [Trivial][ILSEQ]
-5CA05C7F A07F [Trivial][ILSEQ]
-5CA05C80 A080 [Trivial][ILSEQ]
-5CA05C81 A081 [Trivial][ILSEQ]
-5CA05C9F A09F [Trivial][ILSEQ]
-5CA05CA0 A0A0 [Trivial][ILSEQ]
-5CA05CA1 A0A1 [Trivial][ILSEQ]
-5CA05CE0 A0E0 [Trivial][ILSEQ]
-5CA05CEF A0EF [Trivial][ILSEQ]
-5CA05CF9 A0F9 [Trivial][ILSEQ]
-5CA05CFA A0FA [Trivial][ILSEQ]
-5CA05CFC A0FC [Trivial][ILSEQ]
-5CA05CFD A0FD [Trivial][ILSEQ]
-5CA05CFE A0FE [Trivial][ILSEQ]
-5CA05CFF A0FF [Trivial][ILSEQ]
-5CA15C00 A100 [Trivial][USER]
-5CA15C08 A108 [Trivial][USER]
-5CA15C09 A109 [Trivial][USER]
-5CA15C0A A10A [Trivial][USER]
-5CA15C0D A10D [Trivial][USER]
-5CA15C1A A11A [Trivial][USER]
-5CA15C22 A122 [Trivial][USER]
-5CA15C25 A15C25 [Regular]
-5CA15C27 A127 [Trivial][USER]
-5CA15C30 A100 [Regular]
-5CA15C3F A13F [Trivial][USER]
-5CA15C40 A140 [Trivial][USER]
-5CA15C5A A11A [Regular]
-5CA15C5C A15C [Regular][USER]
-5CA15C5F A15C5F [Regular]
-5CA15C61 A161 [Trivial][USER]
-5CA15C62 A108 [Regular][USER]
-5CA15C6E A10A [Regular]
-5CA15C72 A10D [Regular]
-5CA15C74 A109 [Regular]
-5CA15C7E A17E [Trivial][USER]
-5CA15C7F A17F [Trivial][USER]
-5CA15C80 A180 [Trivial][ILSEQ]
-5CA15C81 A181 [Trivial][ILSEQ]
-5CA15C9F A19F [Trivial][ILSEQ]
-5CA15CA0 A1A0 [Trivial][ILSEQ]
-5CA15CA1 A1A1 [Trivial][USER]
-5CA15CE0 A1E0 [Trivial][ILSEQ]
-5CA15CEF A1EF [Trivial][ILSEQ]
-5CA15CF9 A1F9 [Trivial][ILSEQ]
-5CA15CFA A1FA [Trivial][ILSEQ]
-5CA15CFC A1FC [Trivial][ILSEQ]
-5CA15CFD A1FD [Trivial][ILSEQ]
-5CA15CFE A1FE [Trivial][ILSEQ]
-5CA15CFF A1FF [Trivial][ILSEQ]
-5CE05C00 E000 [Trivial][BROKE]
-5CE05C08 E008 [Trivial][BROKE]
-5CE05C09 E009 [Trivial][BROKE]
-5CE05C0A E00A [Trivial][BROKE]
-5CE05C0D E00D [Trivial][BROKE]
-5CE05C1A E01A [Trivial][BROKE]
-5CE05C22 E022 [Trivial][BROKE]
-5CE05C25 E05C25 [Regular]
-5CE05C27 E027 [Trivial][BROKE]
-5CE05C30 E000 [Regular][BROKE]
-5CE05C3F E03F [Trivial][BROKE]
-5CE05C40 E040 [Trivial][USER]
-5CE05C5A E01A [Regular][BROKE]
-5CE05C5C E05C [Regular][USER]
-5CE05C5F E05C5F [Regular]
-5CE05C61 E061 [Trivial][USER]
-5CE05C62 E008 [Regular][BROKE][USER]
-5CE05C6E E00A [Regular][BROKE]
-5CE05C72 E00D [Regular][BROKE]
-5CE05C74 E009 [Regular][BROKE]
-5CE05C7E E07E [Trivial][USER]
-5CE05C7F E07F [Trivial][BROKE]
-5CE05C80 E080 [Trivial][FIXED][USER]
-5CE05C81 E081 [Trivial][FIXED][USER]
-5CE05C9F E09F [Trivial][FIXED][USER]
-5CE05CA0 E0A0 [Trivial][FIXED][USER]
-5CE05CA1 E0A1 [Trivial][USER]
-5CE05CE0 E0E0 [Trivial][FIXED][USER]
-5CE05CEF E0EF [Trivial][FIXED][USER]
-5CE05CF9 E0F9 [Trivial][FIXED][USER]
-5CE05CFA E0FA [Trivial][FIXED][USER]
-5CE05CFC E0FC [Trivial][FIXED][USER]
-5CE05CFD E0FD [Trivial][ILSEQ]
-5CE05CFE E0FE [Trivial][ILSEQ]
-5CE05CFF E0FF [Trivial][ILSEQ]
-5CEF5C00 EF00 [Trivial][BROKE]
-5CEF5C08 EF08 [Trivial][BROKE]
-5CEF5C09 EF09 [Trivial][BROKE]
-5CEF5C0A EF0A [Trivial][BROKE]
-5CEF5C0D EF0D [Trivial][BROKE]
-5CEF5C1A EF1A [Trivial][BROKE]
-5CEF5C22 EF22 [Trivial][BROKE]
-5CEF5C25 EF5C25 [Regular]
-5CEF5C27 EF27 [Trivial][BROKE]
-5CEF5C30 EF00 [Regular][BROKE]
-5CEF5C3F EF3F [Trivial][BROKE]
-5CEF5C40 EF40 [Trivial][USER]
-5CEF5C5A EF1A [Regular][BROKE]
-5CEF5C5C EF5C [Regular][USER]
-5CEF5C5F EF5C5F [Regular]
-5CEF5C61 EF61 [Trivial][USER]
-5CEF5C62 EF08 [Regular][BROKE][USER]
-5CEF5C6E EF0A [Regular][BROKE]
-5CEF5C72 EF0D [Regular][BROKE]
-5CEF5C74 EF09 [Regular][BROKE]
-5CEF5C7E EF7E [Trivial][USER]
-5CEF5C7F EF7F [Trivial][BROKE]
-5CEF5C80 EF80 [Trivial][FIXED][USER]
-5CEF5C81 EF81 [Trivial][FIXED][USER]
-5CEF5C9F EF9F [Trivial][FIXED][USER]
-5CEF5CA0 EFA0 [Trivial][FIXED][USER]
-5CEF5CA1 EFA1 [Trivial][USER]
-5CEF5CE0 EFE0 [Trivial][FIXED][USER]
-5CEF5CEF EFEF [Trivial][FIXED][USER]
-5CEF5CF9 EFF9 [Trivial][FIXED][USER]
-5CEF5CFA EFFA [Trivial][FIXED][USER]
-5CEF5CFC EFFC [Trivial][FIXED][USER]
-5CEF5CFD EFFD [Trivial][ILSEQ]
-5CEF5CFE EFFE [Trivial][ILSEQ]
-5CEF5CFF EFFF [Trivial][ILSEQ]
-5CF95C00 F900 [Trivial][BROKE]
-5CF95C08 F908 [Trivial][BROKE]
-5CF95C09 F909 [Trivial][BROKE]
-5CF95C0A F90A [Trivial][BROKE]
-5CF95C0D F90D [Trivial][BROKE]
-5CF95C1A F91A [Trivial][BROKE]
-5CF95C22 F922 [Trivial][BROKE]
-5CF95C25 F95C25 [Regular]
-5CF95C27 F927 [Trivial][BROKE]
-5CF95C30 F900 [Regular][BROKE]
-5CF95C3F F93F [Trivial][BROKE]
-5CF95C40 F940 [Trivial][USER]
-5CF95C5A F91A [Regular][BROKE]
-5CF95C5C F95C [Regular][USER]
-5CF95C5F F95C5F [Regular]
-5CF95C61 F961 [Trivial][USER]
-5CF95C62 F908 [Regular][BROKE][USER]
-5CF95C6E F90A [Regular][BROKE]
-5CF95C72 F90D [Regular][BROKE]
-5CF95C74 F909 [Regular][BROKE]
-5CF95C7E F97E [Trivial][USER]
-5CF95C7F F97F [Trivial][BROKE]
-5CF95C80 F980 [Trivial][FIXED][USER]
-5CF95C81 F981 [Trivial][FIXED][USER]
-5CF95C9F F99F [Trivial][FIXED][USER]
-5CF95CA0 F9A0 [Trivial][FIXED][USER]
-5CF95CA1 F9A1 [Trivial][USER]
-5CF95CE0 F9E0 [Trivial][FIXED][USER]
-5CF95CEF F9EF [Trivial][FIXED][USER]
-5CF95CF9 F9F9 [Trivial][FIXED][USER]
-5CF95CFA F9FA [Trivial][FIXED][USER]
-5CF95CFC F9FC [Trivial][FIXED][USER]
-5CF95CFD F9FD [Trivial][ILSEQ]
-5CF95CFE F9FE [Trivial][ILSEQ]
-5CF95CFF F9FF [Trivial][ILSEQ]
-5CFA5C00 FA00 [Trivial][BROKE]
-5CFA5C08 FA08 [Trivial][BROKE]
-5CFA5C09 FA09 [Trivial][BROKE]
-5CFA5C0A FA0A [Trivial][BROKE]
-5CFA5C0D FA0D [Trivial][BROKE]
-5CFA5C1A FA1A [Trivial][BROKE]
-5CFA5C22 FA22 [Trivial][BROKE]
-5CFA5C25 FA5C25 [Regular]
-5CFA5C27 FA27 [Trivial][BROKE]
-5CFA5C30 FA00 [Regular][BROKE]
-5CFA5C3F FA3F [Trivial][BROKE]
-5CFA5C40 FA40 [Trivial][USER]
-5CFA5C5A FA1A [Regular][BROKE]
-5CFA5C5C FA5C [Regular][USER]
-5CFA5C5F FA5C5F [Regular]
-5CFA5C61 FA61 [Trivial][USER]
-5CFA5C62 FA08 [Regular][BROKE][USER]
-5CFA5C6E FA0A [Regular][BROKE]
-5CFA5C72 FA0D [Regular][BROKE]
-5CFA5C74 FA09 [Regular][BROKE]
-5CFA5C7E FA7E [Trivial][USER]
-5CFA5C7F FA7F [Trivial][BROKE]
-5CFA5C80 FA80 [Trivial][FIXED][USER]
-5CFA5C81 FA81 [Trivial][FIXED][USER]
-5CFA5C9F FA9F [Trivial][FIXED][USER]
-5CFA5CA0 FAA0 [Trivial][FIXED][USER]
-5CFA5CA1 FAA1 [Trivial][USER]
-5CFA5CE0 FAE0 [Trivial][FIXED][USER]
-5CFA5CEF FAEF [Trivial][FIXED][USER]
-5CFA5CF9 FAF9 [Trivial][FIXED][USER]
-5CFA5CFA FAFA [Trivial][FIXED][USER]
-5CFA5CFC FAFC [Trivial][FIXED][USER]
-5CFA5CFD FAFD [Trivial][ILSEQ]
-5CFA5CFE FAFE [Trivial][ILSEQ]
-5CFA5CFF FAFF [Trivial][ILSEQ]
-5CFC5C00 FC00 [Trivial][BROKE]
-5CFC5C08 FC08 [Trivial][BROKE]
-5CFC5C09 FC09 [Trivial][BROKE]
-5CFC5C0A FC0A [Trivial][BROKE]
-5CFC5C0D FC0D [Trivial][BROKE]
-5CFC5C1A FC1A [Trivial][BROKE]
-5CFC5C22 FC22 [Trivial][BROKE]
-5CFC5C25 FC5C25 [Regular]
-5CFC5C27 FC27 [Trivial][BROKE]
-5CFC5C30 FC00 [Regular][BROKE]
-5CFC5C3F FC3F [Trivial][BROKE]
-5CFC5C40 FC40 [Trivial][USER]
-5CFC5C5A FC1A [Regular][BROKE]
-5CFC5C5C FC5C [Regular][USER]
-5CFC5C5F FC5C5F [Regular]
-5CFC5C61 FC61 [Trivial][USER]
-5CFC5C62 FC08 [Regular][BROKE][USER]
-5CFC5C6E FC0A [Regular][BROKE]
-5CFC5C72 FC0D [Regular][BROKE]
-5CFC5C74 FC09 [Regular][BROKE]
-5CFC5C7E FC7E [Trivial][USER]
-5CFC5C7F FC7F [Trivial][BROKE]
-5CFC5C80 FC80 [Trivial][FIXED][USER]
-5CFC5C81 FC81 [Trivial][FIXED][USER]
-5CFC5C9F FC9F [Trivial][FIXED][USER]
-5CFC5CA0 FCA0 [Trivial][FIXED][USER]
-5CFC5CA1 FCA1 [Trivial][USER]
-5CFC5CE0 FCE0 [Trivial][FIXED][USER]
-5CFC5CEF FCEF [Trivial][FIXED][USER]
-5CFC5CF9 FCF9 [Trivial][FIXED][USER]
-5CFC5CFA FCFA [Trivial][FIXED][USER]
-5CFC5CFC FCFC [Trivial][FIXED][USER]
-5CFC5CFD FCFD [Trivial][ILSEQ]
-5CFC5CFE FCFE [Trivial][ILSEQ]
-5CFC5CFF FCFF [Trivial][ILSEQ]
-5CFD5C00 FD00 [Trivial][ILSEQ]
-5CFD5C08 FD08 [Trivial][ILSEQ]
-5CFD5C09 FD09 [Trivial][ILSEQ]
-5CFD5C0A FD0A [Trivial][ILSEQ]
-5CFD5C0D FD0D [Trivial][ILSEQ]
-5CFD5C1A FD1A [Trivial][ILSEQ]
-5CFD5C22 FD22 [Trivial][ILSEQ]
-5CFD5C25 FD5C25 [Regular][ILSEQ]
-5CFD5C27 FD27 [Trivial][ILSEQ]
-5CFD5C30 FD00 [Regular][ILSEQ]
-5CFD5C3F FD3F [Trivial][ILSEQ]
-5CFD5C40 FD40 [Trivial][ILSEQ]
-5CFD5C5A FD1A [Regular][ILSEQ]
-5CFD5C5C FD5C [Regular][ILSEQ]
-5CFD5C5F FD5C5F [Regular][ILSEQ]
-5CFD5C61 FD61 [Trivial][ILSEQ]
-5CFD5C62 FD08 [Regular][ILSEQ]
-5CFD5C6E FD0A [Regular][ILSEQ]
-5CFD5C72 FD0D [Regular][ILSEQ]
-5CFD5C74 FD09 [Regular][ILSEQ]
-5CFD5C7E FD7E [Trivial][ILSEQ]
-5CFD5C7F FD7F [Trivial][ILSEQ]
-5CFD5C80 FD80 [Trivial][ILSEQ]
-5CFD5C81 FD81 [Trivial][ILSEQ]
-5CFD5C9F FD9F [Trivial][ILSEQ]
-5CFD5CA0 FDA0 [Trivial][ILSEQ]
-5CFD5CA1 FDA1 [Trivial][ILSEQ]
-5CFD5CE0 FDE0 [Trivial][ILSEQ]
-5CFD5CEF FDEF [Trivial][ILSEQ]
-5CFD5CF9 FDF9 [Trivial][ILSEQ]
-5CFD5CFA FDFA [Trivial][ILSEQ]
-5CFD5CFC FDFC [Trivial][ILSEQ]
-5CFD5CFD FDFD [Trivial][ILSEQ]
-5CFD5CFE FDFE [Trivial][ILSEQ]
-5CFD5CFF FDFF [Trivial][ILSEQ]
-5CFE5C00 FE00 [Trivial][ILSEQ]
-5CFE5C08 FE08 [Trivial][ILSEQ]
-5CFE5C09 FE09 [Trivial][ILSEQ]
-5CFE5C0A FE0A [Trivial][ILSEQ]
-5CFE5C0D FE0D [Trivial][ILSEQ]
-5CFE5C1A FE1A [Trivial][ILSEQ]
-5CFE5C22 FE22 [Trivial][ILSEQ]
-5CFE5C25 FE5C25 [Regular][ILSEQ]
-5CFE5C27 FE27 [Trivial][ILSEQ]
-5CFE5C30 FE00 [Regular][ILSEQ]
-5CFE5C3F FE3F [Trivial][ILSEQ]
-5CFE5C40 FE40 [Trivial][ILSEQ]
-5CFE5C5A FE1A [Regular][ILSEQ]
-5CFE5C5C FE5C [Regular][ILSEQ]
-5CFE5C5F FE5C5F [Regular][ILSEQ]
-5CFE5C61 FE61 [Trivial][ILSEQ]
-5CFE5C62 FE08 [Regular][ILSEQ]
-5CFE5C6E FE0A [Regular][ILSEQ]
-5CFE5C72 FE0D [Regular][ILSEQ]
-5CFE5C74 FE09 [Regular][ILSEQ]
-5CFE5C7E FE7E [Trivial][ILSEQ]
-5CFE5C7F FE7F [Trivial][ILSEQ]
-5CFE5C80 FE80 [Trivial][ILSEQ]
-5CFE5C81 FE81 [Trivial][ILSEQ]
-5CFE5C9F FE9F [Trivial][ILSEQ]
-5CFE5CA0 FEA0 [Trivial][ILSEQ]
-5CFE5CA1 FEA1 [Trivial][ILSEQ]
-5CFE5CE0 FEE0 [Trivial][ILSEQ]
-5CFE5CEF FEEF [Trivial][ILSEQ]
-5CFE5CF9 FEF9 [Trivial][ILSEQ]
-5CFE5CFA FEFA [Trivial][ILSEQ]
-5CFE5CFC FEFC [Trivial][ILSEQ]
-5CFE5CFD FEFD [Trivial][ILSEQ]
-5CFE5CFE FEFE [Trivial][ILSEQ]
-5CFE5CFF FEFF [Trivial][ILSEQ]
-5CFF5C00 FF00 [Trivial][ILSEQ]
-5CFF5C08 FF08 [Trivial][ILSEQ]
-5CFF5C09 FF09 [Trivial][ILSEQ]
-5CFF5C0A FF0A [Trivial][ILSEQ]
-5CFF5C0D FF0D [Trivial][ILSEQ]
-5CFF5C1A FF1A [Trivial][ILSEQ]
-5CFF5C22 FF22 [Trivial][ILSEQ]
-5CFF5C25 FF5C25 [Regular][ILSEQ]
-5CFF5C27 FF27 [Trivial][ILSEQ]
-5CFF5C30 FF00 [Regular][ILSEQ]
-5CFF5C3F FF3F [Trivial][ILSEQ]
-5CFF5C40 FF40 [Trivial][ILSEQ]
-5CFF5C5A FF1A [Regular][ILSEQ]
-5CFF5C5C FF5C [Regular][ILSEQ]
-5CFF5C5F FF5C5F [Regular][ILSEQ]
-5CFF5C61 FF61 [Trivial][ILSEQ]
-5CFF5C62 FF08 [Regular][ILSEQ]
-5CFF5C6E FF0A [Regular][ILSEQ]
-5CFF5C72 FF0D [Regular][ILSEQ]
-5CFF5C74 FF09 [Regular][ILSEQ]
-5CFF5C7E FF7E [Trivial][ILSEQ]
-5CFF5C7F FF7F [Trivial][ILSEQ]
-5CFF5C80 FF80 [Trivial][ILSEQ]
-5CFF5C81 FF81 [Trivial][ILSEQ]
-5CFF5C9F FF9F [Trivial][ILSEQ]
-5CFF5CA0 FFA0 [Trivial][ILSEQ]
-5CFF5CA1 FFA1 [Trivial][ILSEQ]
-5CFF5CE0 FFE0 [Trivial][ILSEQ]
-5CFF5CEF FFEF [Trivial][ILSEQ]
-5CFF5CF9 FFF9 [Trivial][ILSEQ]
-5CFF5CFA FFFA [Trivial][ILSEQ]
-5CFF5CFC FFFC [Trivial][ILSEQ]
-5CFF5CFD FFFD [Trivial][ILSEQ]
-5CFF5CFE FFFE [Trivial][ILSEQ]
-5CFF5CFF FFFF [Trivial][ILSEQ]
-DROP TABLE t1;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP FUNCTION unescape;
-DROP FUNCTION unescape_type;
-DROP FUNCTION wellformedness;
-DROP FUNCTION mysql_real_escape_string_generated;
-DROP FUNCTION iswellformed;
-DROP TABLE allbytes;
-SET sql_mode = DEFAULT;
-# End of ctype_backslash.inc
-SET NAMES sjis;
-# Start of ctype_E05C.inc
-SELECT HEX('à\'),HEX('à\t');
-HEX('à\') HEX('à\t')
-E05C E05C74
-SELECT HEX('\\à\'),HEX('\\à\t'),HEX('\\à\t\t');
-HEX('__à\') HEX('__à\t') HEX('__à\t_t')
-5CE05C 5CE05C74 5CE05C7409
-SELECT HEX('''à\'),HEX('à\''');
-HEX('''à\') HEX('à\''')
-27E05C E05C27
-SELECT HEX('\\''à\'),HEX('à\''\\');
-HEX('__''à\') HEX('à\''__')
-5C27E05C E05C275C
-SELECT HEX(BINARY('à\')),HEX(BINARY('à\t'));
-HEX(BINARY('à\')) HEX(BINARY('à\t'))
-E05C E05C74
-SELECT HEX(BINARY('\\à\')),HEX(BINARY('\\à\t')),HEX(BINARY('\\à\t\t'));
-HEX(BINARY('__à\')) HEX(BINARY('__à\t')) HEX(BINARY('__à\t_t'))
-5CE05C 5CE05C74 5CE05C7409
-SELECT HEX(BINARY('''à\')),HEX(BINARY('à\'''));
-HEX(BINARY('''à\')) HEX(BINARY('à\'''))
-27E05C E05C27
-SELECT HEX(BINARY('\\''à\')),HEX(BINARY('à\''\\'));
-HEX(BINARY('__''à\')) HEX(BINARY('à\''__'))
-5C27E05C E05C275C
-SELECT HEX(_BINARY'à\'),HEX(_BINARY'à\t');
-HEX(_BINARY'à\') HEX(_BINARY'à\t')
-E05C E05C74
-SELECT HEX(_BINARY'\\à\'),HEX(_BINARY'\\à\t'),HEX(_BINARY'\\à\t\t');
-HEX(_BINARY'__à\') HEX(_BINARY'__à\t') HEX(_BINARY'__à\t_t')
-5CE05C 5CE05C74 5CE05C7409
-SELECT HEX(_BINARY'''à\'),HEX(_BINARY'à\''');
-HEX(_BINARY'''à\') HEX(_BINARY'à\''')
-27E05C E05C27
-SELECT HEX(_BINARY'\\''à\'),HEX(_BINARY'à\''\\');
-HEX(_BINARY'__''à\') HEX(_BINARY'à\''__')
-5C27E05C E05C275C
-CREATE TABLE t1 AS SELECT REPEAT(' ',10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET sjis DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('à\'),('à\t');
-INSERT INTO t1 VALUES ('\\à\'),('\\à\t'),('\\à\t\t');
-INSERT INTO t1 VALUES ('''à\'),('à\''');
-INSERT INTO t1 VALUES ('\\''à\'),('à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES ('à\'),('à\t');
-INSERT INTO t1 VALUES ('\\à\'),('\\à\t'),('\\à\t\t');
-INSERT INTO t1 VALUES ('''à\'),('à\''');
-INSERT INTO t1 VALUES ('\\''à\'),('à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET sjis DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (BINARY('à\')),(BINARY('à\t'));
-INSERT INTO t1 VALUES (BINARY('\\à\')),(BINARY('\\à\t')),(BINARY('\\à\t\t'));
-INSERT INTO t1 VALUES (BINARY('''à\')),(BINARY('à\'''));
-INSERT INTO t1 VALUES (BINARY('\\''à\')),(BINARY('à\''\\'));
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES (BINARY('à\')),(BINARY('à\t'));
-INSERT INTO t1 VALUES (BINARY('\\à\')),(BINARY('\\à\t')),(BINARY('\\à\t\t'));
-INSERT INTO t1 VALUES (BINARY('''à\')),(BINARY('à\'''));
-INSERT INTO t1 VALUES (BINARY('\\''à\')),(BINARY('à\''\\'));
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET sjis DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_BINARY'à\'),(_BINARY'à\t');
-INSERT INTO t1 VALUES (_BINARY'\\à\'),(_BINARY'\\à\t'),(_BINARY'\\à\t\t');
-INSERT INTO t1 VALUES (_BINARY'''à\'),(_BINARY'à\''');
-INSERT INTO t1 VALUES (_BINARY'\\''à\'),(_BINARY'à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES (_BINARY'à\'),(_BINARY'à\t');
-INSERT INTO t1 VALUES (_BINARY'\\à\'),(_BINARY'\\à\t'),(_BINARY'\\à\t\t');
-INSERT INTO t1 VALUES (_BINARY'''à\'),(_BINARY'à\''');
-INSERT INTO t1 VALUES (_BINARY'\\''à\'),(_BINARY'à\''\\');
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-à\ E05C
-à\t E05C74
-\à\ 5CE05C
-\à\t 5CE05C74
-\à\t 5CE05C7409
-'à\ 27E05C
-à\' E05C27
-\'à\ 5C27E05C
-à\'\ E05C275C
-DROP TABLE t1;
-SET character_set_client=binary, character_set_results=binary;
-SELECT @@character_set_client, @@character_set_connection, @@character_set_results;
-@@character_set_client @@character_set_connection @@character_set_results
-binary sjis binary
-SELECT HEX('à\['), HEX('\à\[');
-HEX('à\[') HEX('\à\[')
-E05B E05B
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET sjis DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('à\['),('\à\[');
-SELECT HEX(a) FROM t1;
-HEX(a)
-E05B
-E05B
-DROP TABLE t1;
-SET character_set_client=@@character_set_connection, character_set_results=@@character_set_connection;
-SET character_set_connection=binary;
-SELECT @@character_set_client, @@character_set_connection, @@character_set_results;
-@@character_set_client @@character_set_connection @@character_set_results
-sjis binary sjis
-SELECT HEX('à\['), HEX('\à\[');
-HEX('à\[') HEX('_à\[')
-E05C5B E05B
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('à\['),('\à\[');
-SELECT HEX(a) FROM t1;
-HEX(a)
-E05C5B
-E05B
-DROP TABLE t1;
-# Start of ctype_E05C.inc
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9842 LOAD DATA INFILE does not work well with a TEXT column when using sjis
-#
-CREATE TABLE t1 (a TEXT CHARACTER SET sjis);
-LOAD DATA INFILE '../../std_data/loaddata/mdev9842.txt' INTO TABLE t1 CHARACTER SET sjis;
-SELECT HEX(a) FROM t1;
-HEX(a)
-78835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C835C
-SELECT a=CONCAT('x', REPEAT(_sjis 0x835C, 200)) FROM t1;
-a=CONCAT('x', REPEAT(_sjis 0x835C, 200))
-1
-DROP TABLE t1;
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=sjis;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'sjis_japanese_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE sjis_japanese_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=sjis COLLATE=sjis_japanese_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'sjis_japanese_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'sjis_japanese_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'sjis_japanese_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'sjis_japanese_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'sjis_japanese_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'sjis_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'sjis_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'sjis_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'sjis_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'sjis_japanese_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'sjis_japanese_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'sjis_japanese_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'sjis_japanese_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'sjis_japanese_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_japanese_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'sjis_japanese_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_japanese_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'sjis_japanese_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE sjis_japanese_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=sjis COLLATE=sjis_japanese_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'sjis_japanese_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'sjis_japanese_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'sjis_japanese_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'sjis_japanese_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'sjis_japanese_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'sjis_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'sjis_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'sjis_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'sjis_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'sjis_japanese_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'sjis_japanese_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'sjis_japanese_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'sjis_japanese_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'sjis_japanese_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_japanese_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'sjis_japanese_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_japanese_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'sjis_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE sjis_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=sjis COLLATE=sjis_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'sjis_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'sjis_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'sjis_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'sjis_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'sjis_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'sjis_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'sjis_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'sjis_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'sjis_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'sjis_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'sjis_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'sjis_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'sjis_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'sjis_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'sjis_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'sjis_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE sjis_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=sjis COLLATE=sjis_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'sjis_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'sjis_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'sjis_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'sjis_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'sjis_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'sjis_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'sjis_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'sjis_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'sjis_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'sjis_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'sjis_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'sjis_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'sjis_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'sjis_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'sjis_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'sjis_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_swe7.result b/mysql-test/r/ctype_swe7.result
deleted file mode 100644
index 63da7d362ca..00000000000
--- a/mysql-test/r/ctype_swe7.result
+++ /dev/null
@@ -1,3637 +0,0 @@
-#
-# Start of 10.0 tests
-#
-SET NAMES swe7;
-# Start of ctype_unescape.inc
-SET sql_mode = '';
-SET @query=_binary'SELECT CHARSET(\'test\'),@@character_set_client,@@character_set_connection';
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-CHARSET('test') @@character_set_client @@character_set_connection
-swe7 swe7 swe7
-DEALLOCATE PREPARE stmt;
-CREATE TABLE allbytes (a VARBINARY(10));
-# Using selected bytes combinations
-CREATE TABLE halfs (a INT);
-INSERT INTO halfs VALUES (0x00),(0x01),(0x02),(0x03),(0x04),(0x05),(0x06),(0x07);
-INSERT INTO halfs VALUES (0x08),(0x09),(0x0A),(0x0B),(0x0C),(0x0D),(0x0E),(0x0F);
-CREATE TEMPORARY TABLE bytes (a BINARY(1), KEY(a)) ENGINE=MyISAM;
-INSERT INTO bytes SELECT CHAR((t1.a << 4) | t2.a USING BINARY) FROM halfs t1, halfs t2;
-DROP TABLE halfs;
-CREATE TABLE selected_bytes (a VARBINARY(10));
-INSERT INTO selected_bytes (a) VALUES ('\0'),('\b'),('\t'),('\r'),('\n'),('\Z');
-INSERT INTO selected_bytes (a) VALUES ('0'),('b'),('t'),('r'),('n'),('Z');
-INSERT INTO selected_bytes (a) VALUES ('\\'),('_'),('%'),(0x22),(0x27);
-INSERT INTO selected_bytes (a) VALUES ('a');
-INSERT INTO selected_bytes (a) VALUES
-(0x3F), # 7bit
-(0x40), # 7bit mbtail
-(0x7E), # 7bit mbtail nonascii-8bit
-(0x7F), # 7bit nonascii-8bit
-(0x80), # mbtail bad-mb
-(0x81), # mbhead mbtail
-(0x9F), # mbhead mbtail bad-mb
-(0xA0), # mbhead mbtail bad-mb
-(0xA1), # mbhead mbtail nonascii-8bit
-(0xE0), # mbhead mbtai
-(0xEF), # mbhead mbtail
-(0xF9), # mbhead mbtail
-(0xFA), # mbhead mbtail bad-mb
-(0xFC), # mbhead mbtail bad-mb
-(0xFD), # mbhead mbtail bad-mb
-(0xFE), # mbhead mbtial bad-mb
-(0xFF);
-INSERT INTO allbytes (a) SELECT a FROM bytes;
-INSERT INTO allbytes (a) SELECT CONCAT(t1.a,t2.a) FROM selected_bytes t1,selected_bytes t2;
-INSERT INTO allbytes (a) SELECT CONCAT(0x5C,t1.a,t2.a) FROM selected_bytes t1,selected_bytes t2;
-INSERT INTO allbytes (a) SELECT CONCAT(0x5C,t1.a,0x5C,t2.a) FROM selected_bytes t1,selected_bytes t2;
-DROP TABLE selected_bytes;
-DELETE FROM allbytes WHERE
-OCTET_LENGTH(a)>1 AND
-LOCATE(0x5C,a)=0 AND
-a NOT LIKE '%\'%' AND
- a NOT LIKE '%"%';
-CREATE PROCEDURE p1(val VARBINARY(10))
-BEGIN
-DECLARE EXIT HANDLER FOR SQLSTATE '42000' INSERT INTO t1 (a,b) VALUES(val,NULL);
-SET @query=CONCAT(_binary"INSERT INTO t1 (a,b) VALUES (0x",HEX(val),",'",val,"')");
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-END//
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE val VARBINARY(10);
-DECLARE done INT DEFAULT FALSE;
-DECLARE stmt CURSOR FOR SELECT a FROM allbytes;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN stmt;
-read_loop1: LOOP
-FETCH stmt INTO val;
-IF done THEN
-LEAVE read_loop1;
-END IF;
-CALL p1(val);
-END LOOP;
-CLOSE stmt;
-END//
-CREATE FUNCTION iswellformed(a VARBINARY(256)) RETURNS INT RETURN a=BINARY CONVERT(a USING swe7);//
-CREATE FUNCTION unescape(a VARBINARY(256)) RETURNS VARBINARY(256)
-BEGIN
-# We need to do it in a way to avoid producing new escape sequences
-# First, enclose all known escsape sequences to '{{xx}}'
- # - Backslash not followed by a LIKE pattern characters _ and %
-# - Double escapes
-# This uses PCRE Branch Reset Groups: (?|(alt1)|(alt2)|(alt3)).
-# So '\\1' in the last argument always means the match, no matter
-# which alternative it came from.
-SET a=REGEXP_REPLACE(a,'(?|(\\\\[^_%])|(\\x{27}\\x{27}))','{{\\1}}');
-# Now unescape all enclosed standard escape sequences
-SET a=REPLACE(a,'{{\\0}}', '\0');
-SET a=REPLACE(a,'{{\\b}}', '\b');
-SET a=REPLACE(a,'{{\\t}}', '\t');
-SET a=REPLACE(a,'{{\\r}}', '\r');
-SET a=REPLACE(a,'{{\\n}}', '\n');
-SET a=REPLACE(a,'{{\\Z}}', '\Z');
-SET a=REPLACE(a,'{{\\\'}}', '\'');
-# Unescape double quotes
-SET a=REPLACE(a,'{{\'\'}}', '\'');
- # Unescape the rest: all other \x sequences mean just 'x'
- SET a=REGEXP_REPLACE(a, '{{\\\\(.|\\R)}}', '\\1');
- RETURN a;
-END//
-CREATE FUNCTION unescape_type(a VARBINARY(256),b VARBINARY(256)) RETURNS VARBINARY(256)
-BEGIN
-RETURN CASE
-WHEN b IS NULL THEN '[SyntErr]'
- WHEN a=b THEN CASE
-WHEN OCTET_LENGTH(a)=1 THEN '[Preserve]'
- WHEN a RLIKE '\\\\[_%]' THEN '[Preserve][LIKE]'
- WHEN a RLIKE '^[[:ascii:]]+$' THEN '[Preserve][ASCII]'
- ELSE '[Preserv][MB]' END
-WHEN REPLACE(a,0x5C,'')=b THEN '[Trivial]'
- WHEN UNESCAPE(a)=b THEN '[Regular]'
- ELSE '[Special]' END;
-END//
-CREATE FUNCTION wellformedness(a VARBINARY(256), b VARBINARY(256))
-RETURNS VARBINARY(256)
-BEGIN
-RETURN CASE
-WHEN b IS NULL THEN ''
- WHEN NOT iswellformed(a) AND iswellformed(b) THEN '[FIXED]'
- WHEN iswellformed(a) AND NOT iswellformed(b) THEN '[BROKE]'
- WHEN NOT iswellformed(a) AND NOT iswellformed(b) THEN '[ILSEQ]'
- ELSE ''
- END;
-END//
-CREATE FUNCTION mysql_real_escape_string_generated(a VARBINARY(256))
-RETURNS VARBINARY(256)
-BEGIN
-DECLARE a1 BINARY(1) DEFAULT SUBSTR(a,1,1);
-DECLARE a2 BINARY(1) DEFAULT SUBSTR(a,2,1);
-DECLARE a3 BINARY(1) DEFAULT SUBSTR(a,3,1);
-DECLARE a4 BINARY(1) DEFAULT SUBSTR(a,4,1);
-DECLARE a2a4 BINARY(2) DEFAULT CONCAT(a2,a4);
-RETURN CASE
-WHEN (a1=0x5C) AND
-(a3=0x5C) AND
-(a2>0x7F) AND
-(a4 NOT IN ('_','%','0','t','r','n','Z')) AND
-iswellformed(a2a4) THEN '[USER]'
- ELSE ''
- END;
-END//
-CREATE TABLE t1 (a VARBINARY(10),b VARBINARY(10));
-CALL p2();
-SELECT HEX(a),HEX(b),
-CONCAT(unescape_type(a,b),
-wellformedness(a,b),
-mysql_real_escape_string_generated(a),
-IF(UNESCAPE(a)<>b,CONCAT('[BAD',HEX(UNESCAPE(a)),']'),'')) AS comment
-FROM t1 ORDER BY LENGTH(a),a;
-HEX(a) HEX(b) comment
-00 00 [Preserve]
-01 01 [Preserve]
-02 02 [Preserve]
-03 03 [Preserve]
-04 04 [Preserve]
-05 05 [Preserve]
-06 06 [Preserve]
-07 07 [Preserve]
-08 08 [Preserve]
-09 09 [Preserve]
-0A 0A [Preserve]
-0B 0B [Preserve]
-0C 0C [Preserve]
-0D 0D [Preserve]
-0E 0E [Preserve]
-0F 0F [Preserve]
-10 10 [Preserve]
-11 11 [Preserve]
-12 12 [Preserve]
-13 13 [Preserve]
-14 14 [Preserve]
-15 15 [Preserve]
-16 16 [Preserve]
-17 17 [Preserve]
-18 18 [Preserve]
-19 19 [Preserve]
-1A 1A [Preserve]
-1B 1B [Preserve]
-1C 1C [Preserve]
-1D 1D [Preserve]
-1E 1E [Preserve]
-1F 1F [Preserve]
-20 20 [Preserve]
-21 21 [Preserve]
-22 22 [Preserve]
-23 23 [Preserve]
-24 24 [Preserve]
-25 25 [Preserve]
-26 26 [Preserve]
-27 NULL [SyntErr]
-28 28 [Preserve]
-29 29 [Preserve]
-2A 2A [Preserve]
-2B 2B [Preserve]
-2C 2C [Preserve]
-2D 2D [Preserve]
-2E 2E [Preserve]
-2F 2F [Preserve]
-30 30 [Preserve]
-31 31 [Preserve]
-32 32 [Preserve]
-33 33 [Preserve]
-34 34 [Preserve]
-35 35 [Preserve]
-36 36 [Preserve]
-37 37 [Preserve]
-38 38 [Preserve]
-39 39 [Preserve]
-3A 3A [Preserve]
-3B 3B [Preserve]
-3C 3C [Preserve]
-3D 3D [Preserve]
-3E 3E [Preserve]
-3F 3F [Preserve]
-40 40 [Preserve]
-41 41 [Preserve]
-42 42 [Preserve]
-43 43 [Preserve]
-44 44 [Preserve]
-45 45 [Preserve]
-46 46 [Preserve]
-47 47 [Preserve]
-48 48 [Preserve]
-49 49 [Preserve]
-4A 4A [Preserve]
-4B 4B [Preserve]
-4C 4C [Preserve]
-4D 4D [Preserve]
-4E 4E [Preserve]
-4F 4F [Preserve]
-50 50 [Preserve]
-51 51 [Preserve]
-52 52 [Preserve]
-53 53 [Preserve]
-54 54 [Preserve]
-55 55 [Preserve]
-56 56 [Preserve]
-57 57 [Preserve]
-58 58 [Preserve]
-59 59 [Preserve]
-5A 5A [Preserve]
-5B 5B [Preserve]
-5C NULL [SyntErr]
-5D 5D [Preserve]
-5E 5E [Preserve]
-5F 5F [Preserve]
-60 60 [Preserve]
-61 61 [Preserve]
-62 62 [Preserve]
-63 63 [Preserve]
-64 64 [Preserve]
-65 65 [Preserve]
-66 66 [Preserve]
-67 67 [Preserve]
-68 68 [Preserve]
-69 69 [Preserve]
-6A 6A [Preserve]
-6B 6B [Preserve]
-6C 6C [Preserve]
-6D 6D [Preserve]
-6E 6E [Preserve]
-6F 6F [Preserve]
-70 70 [Preserve]
-71 71 [Preserve]
-72 72 [Preserve]
-73 73 [Preserve]
-74 74 [Preserve]
-75 75 [Preserve]
-76 76 [Preserve]
-77 77 [Preserve]
-78 78 [Preserve]
-79 79 [Preserve]
-7A 7A [Preserve]
-7B 7B [Preserve]
-7C 7C [Preserve]
-7D 7D [Preserve]
-7E 7E [Preserve]
-7F 7F [Preserve]
-80 80 [Preserve]
-81 81 [Preserve]
-82 82 [Preserve]
-83 83 [Preserve]
-84 84 [Preserve]
-85 85 [Preserve]
-86 86 [Preserve]
-87 87 [Preserve]
-88 88 [Preserve]
-89 89 [Preserve]
-8A 8A [Preserve]
-8B 8B [Preserve]
-8C 8C [Preserve]
-8D 8D [Preserve]
-8E 8E [Preserve]
-8F 8F [Preserve]
-90 90 [Preserve]
-91 91 [Preserve]
-92 92 [Preserve]
-93 93 [Preserve]
-94 94 [Preserve]
-95 95 [Preserve]
-96 96 [Preserve]
-97 97 [Preserve]
-98 98 [Preserve]
-99 99 [Preserve]
-9A 9A [Preserve]
-9B 9B [Preserve]
-9C 9C [Preserve]
-9D 9D [Preserve]
-9E 9E [Preserve]
-9F 9F [Preserve]
-A0 A0 [Preserve]
-A1 A1 [Preserve]
-A2 A2 [Preserve]
-A3 A3 [Preserve]
-A4 A4 [Preserve]
-A5 A5 [Preserve]
-A6 A6 [Preserve]
-A7 A7 [Preserve]
-A8 A8 [Preserve]
-A9 A9 [Preserve]
-AA AA [Preserve]
-AB AB [Preserve]
-AC AC [Preserve]
-AD AD [Preserve]
-AE AE [Preserve]
-AF AF [Preserve]
-B0 B0 [Preserve]
-B1 B1 [Preserve]
-B2 B2 [Preserve]
-B3 B3 [Preserve]
-B4 B4 [Preserve]
-B5 B5 [Preserve]
-B6 B6 [Preserve]
-B7 B7 [Preserve]
-B8 B8 [Preserve]
-B9 B9 [Preserve]
-BA BA [Preserve]
-BB BB [Preserve]
-BC BC [Preserve]
-BD BD [Preserve]
-BE BE [Preserve]
-BF BF [Preserve]
-C0 C0 [Preserve]
-C1 C1 [Preserve]
-C2 C2 [Preserve]
-C3 C3 [Preserve]
-C4 C4 [Preserve]
-C5 C5 [Preserve]
-C6 C6 [Preserve]
-C7 C7 [Preserve]
-C8 C8 [Preserve]
-C9 C9 [Preserve]
-CA CA [Preserve]
-CB CB [Preserve]
-CC CC [Preserve]
-CD CD [Preserve]
-CE CE [Preserve]
-CF CF [Preserve]
-D0 D0 [Preserve]
-D1 D1 [Preserve]
-D2 D2 [Preserve]
-D3 D3 [Preserve]
-D4 D4 [Preserve]
-D5 D5 [Preserve]
-D6 D6 [Preserve]
-D7 D7 [Preserve]
-D8 D8 [Preserve]
-D9 D9 [Preserve]
-DA DA [Preserve]
-DB DB [Preserve]
-DC DC [Preserve]
-DD DD [Preserve]
-DE DE [Preserve]
-DF DF [Preserve]
-E0 E0 [Preserve]
-E1 E1 [Preserve]
-E2 E2 [Preserve]
-E3 E3 [Preserve]
-E4 E4 [Preserve]
-E5 E5 [Preserve]
-E6 E6 [Preserve]
-E7 E7 [Preserve]
-E8 E8 [Preserve]
-E9 E9 [Preserve]
-EA EA [Preserve]
-EB EB [Preserve]
-EC EC [Preserve]
-ED ED [Preserve]
-EE EE [Preserve]
-EF EF [Preserve]
-F0 F0 [Preserve]
-F1 F1 [Preserve]
-F2 F2 [Preserve]
-F3 F3 [Preserve]
-F4 F4 [Preserve]
-F5 F5 [Preserve]
-F6 F6 [Preserve]
-F7 F7 [Preserve]
-F8 F8 [Preserve]
-F9 F9 [Preserve]
-FA FA [Preserve]
-FB FB [Preserve]
-FC FC [Preserve]
-FD FD [Preserve]
-FE FE [Preserve]
-FF FF [Preserve]
-0022 0022 [Preserve][ASCII]
-0027 NULL [SyntErr]
-005C NULL [SyntErr]
-0822 0822 [Preserve][ASCII]
-0827 NULL [SyntErr]
-085C NULL [SyntErr]
-0922 0922 [Preserve][ASCII]
-0927 NULL [SyntErr]
-095C NULL [SyntErr]
-0A22 0A22 [Preserve][ASCII]
-0A27 NULL [SyntErr]
-0A5C NULL [SyntErr]
-0D22 0D22 [Preserve][ASCII]
-0D27 NULL [SyntErr]
-0D5C NULL [SyntErr]
-1A22 1A22 [Preserve][ASCII]
-1A27 NULL [SyntErr]
-1A5C NULL [SyntErr]
-2200 2200 [Preserve][ASCII]
-2208 2208 [Preserve][ASCII]
-2209 2209 [Preserve][ASCII]
-220A 220A [Preserve][ASCII]
-220D 220D [Preserve][ASCII]
-221A 221A [Preserve][ASCII]
-2222 2222 [Preserve][ASCII]
-2225 2225 [Preserve][ASCII]
-2227 NULL [SyntErr]
-2230 2230 [Preserve][ASCII]
-223F 223F [Preserve][ASCII]
-2240 2240 [Preserve][ASCII]
-225A 225A [Preserve][ASCII]
-225C NULL [SyntErr]
-225F 225F [Preserve][ASCII]
-2261 2261 [Preserve][ASCII]
-2262 2262 [Preserve][ASCII]
-226E 226E [Preserve][ASCII]
-2272 2272 [Preserve][ASCII]
-2274 2274 [Preserve][ASCII]
-227E 227E [Preserve][ASCII]
-227F 227F [Preserve][ASCII]
-2280 2280 [Preserv][MB]
-2281 2281 [Preserv][MB]
-229F 229F [Preserv][MB]
-22A0 22A0 [Preserv][MB]
-22A1 22A1 [Preserv][MB]
-22E0 22E0 [Preserv][MB]
-22EF 22EF [Preserv][MB]
-22F9 22F9 [Preserv][MB]
-22FA 22FA [Preserv][MB]
-22FC 22FC [Preserv][MB]
-22FD 22FD [Preserv][MB]
-22FE 22FE [Preserv][MB]
-22FF 22FF [Preserv][MB]
-2522 2522 [Preserve][ASCII]
-2527 NULL [SyntErr]
-255C NULL [SyntErr]
-2700 NULL [SyntErr]
-2708 NULL [SyntErr]
-2709 NULL [SyntErr]
-270A NULL [SyntErr]
-270D NULL [SyntErr]
-271A NULL [SyntErr]
-2722 NULL [SyntErr]
-2725 NULL [SyntErr]
-2727 27 [Regular]
-2730 NULL [SyntErr]
-273F NULL [SyntErr]
-2740 NULL [SyntErr]
-275A NULL [SyntErr]
-275C NULL [SyntErr]
-275F NULL [SyntErr]
-2761 NULL [SyntErr]
-2762 NULL [SyntErr]
-276E NULL [SyntErr]
-2772 NULL [SyntErr]
-2774 NULL [SyntErr]
-277E NULL [SyntErr]
-277F NULL [SyntErr]
-2780 NULL [SyntErr]
-2781 NULL [SyntErr]
-279F NULL [SyntErr]
-27A0 NULL [SyntErr]
-27A1 NULL [SyntErr]
-27E0 NULL [SyntErr]
-27EF NULL [SyntErr]
-27F9 NULL [SyntErr]
-27FA NULL [SyntErr]
-27FC NULL [SyntErr]
-27FD NULL [SyntErr]
-27FE NULL [SyntErr]
-27FF NULL [SyntErr]
-3022 3022 [Preserve][ASCII]
-3027 NULL [SyntErr]
-305C NULL [SyntErr]
-3F22 3F22 [Preserve][ASCII]
-3F27 NULL [SyntErr]
-3F5C NULL [SyntErr]
-4022 4022 [Preserve][ASCII]
-4027 NULL [SyntErr]
-405C NULL [SyntErr]
-5A22 5A22 [Preserve][ASCII]
-5A27 NULL [SyntErr]
-5A5C NULL [SyntErr]
-5C00 00 [Trivial]
-5C08 08 [Trivial]
-5C09 09 [Trivial]
-5C0A 0A [Trivial]
-5C0D 0D [Trivial]
-5C1A 1A [Trivial]
-5C22 22 [Trivial]
-5C25 5C25 [Preserve][LIKE]
-5C27 27 [Trivial]
-5C30 00 [Regular]
-5C3F 3F [Trivial]
-5C40 40 [Trivial]
-5C5A 1A [Regular]
-5C5C 5C [Regular]
-5C5F 5C5F [Preserve][LIKE]
-5C61 61 [Trivial]
-5C62 08 [Regular]
-5C6E 0A [Regular]
-5C72 0D [Regular]
-5C74 09 [Regular]
-5C7E 7E [Trivial]
-5C7F 7F [Trivial]
-5C80 80 [Trivial]
-5C81 81 [Trivial]
-5C9F 9F [Trivial]
-5CA0 A0 [Trivial]
-5CA1 A1 [Trivial]
-5CE0 E0 [Trivial]
-5CEF EF [Trivial]
-5CF9 F9 [Trivial]
-5CFA FA [Trivial]
-5CFC FC [Trivial]
-5CFD FD [Trivial]
-5CFE FE [Trivial]
-5CFF FF [Trivial]
-5F22 5F22 [Preserve][ASCII]
-5F27 NULL [SyntErr]
-5F5C NULL [SyntErr]
-6122 6122 [Preserve][ASCII]
-6127 NULL [SyntErr]
-615C NULL [SyntErr]
-6222 6222 [Preserve][ASCII]
-6227 NULL [SyntErr]
-625C NULL [SyntErr]
-6E22 6E22 [Preserve][ASCII]
-6E27 NULL [SyntErr]
-6E5C NULL [SyntErr]
-7222 7222 [Preserve][ASCII]
-7227 NULL [SyntErr]
-725C NULL [SyntErr]
-7422 7422 [Preserve][ASCII]
-7427 NULL [SyntErr]
-745C NULL [SyntErr]
-7E22 7E22 [Preserve][ASCII]
-7E27 NULL [SyntErr]
-7E5C NULL [SyntErr]
-7F22 7F22 [Preserve][ASCII]
-7F27 NULL [SyntErr]
-7F5C NULL [SyntErr]
-8022 8022 [Preserv][MB]
-8027 NULL [SyntErr]
-805C NULL [SyntErr]
-8122 8122 [Preserv][MB]
-8127 NULL [SyntErr]
-815C NULL [SyntErr]
-9F22 9F22 [Preserv][MB]
-9F27 NULL [SyntErr]
-9F5C NULL [SyntErr]
-A022 A022 [Preserv][MB]
-A027 NULL [SyntErr]
-A05C NULL [SyntErr]
-A122 A122 [Preserv][MB]
-A127 NULL [SyntErr]
-A15C NULL [SyntErr]
-E022 E022 [Preserv][MB]
-E027 NULL [SyntErr]
-E05C NULL [SyntErr]
-EF22 EF22 [Preserv][MB]
-EF27 NULL [SyntErr]
-EF5C NULL [SyntErr]
-F922 F922 [Preserv][MB]
-F927 NULL [SyntErr]
-F95C NULL [SyntErr]
-FA22 FA22 [Preserv][MB]
-FA27 NULL [SyntErr]
-FA5C NULL [SyntErr]
-FC22 FC22 [Preserv][MB]
-FC27 NULL [SyntErr]
-FC5C NULL [SyntErr]
-FD22 FD22 [Preserv][MB]
-FD27 NULL [SyntErr]
-FD5C NULL [SyntErr]
-FE22 FE22 [Preserv][MB]
-FE27 NULL [SyntErr]
-FE5C NULL [SyntErr]
-FF22 FF22 [Preserv][MB]
-FF27 NULL [SyntErr]
-FF5C NULL [SyntErr]
-5C0000 0000 [Trivial]
-5C0008 0008 [Trivial]
-5C0009 0009 [Trivial]
-5C000A 000A [Trivial]
-5C000D 000D [Trivial]
-5C001A 001A [Trivial]
-5C0022 0022 [Trivial]
-5C0025 0025 [Trivial]
-5C0027 NULL [SyntErr]
-5C0030 0030 [Trivial]
-5C003F 003F [Trivial]
-5C0040 0040 [Trivial]
-5C005A 005A [Trivial]
-5C005C NULL [SyntErr]
-5C005F 005F [Trivial]
-5C0061 0061 [Trivial]
-5C0062 0062 [Trivial]
-5C006E 006E [Trivial]
-5C0072 0072 [Trivial]
-5C0074 0074 [Trivial]
-5C007E 007E [Trivial]
-5C007F 007F [Trivial]
-5C0080 0080 [Trivial]
-5C0081 0081 [Trivial]
-5C009F 009F [Trivial]
-5C00A0 00A0 [Trivial]
-5C00A1 00A1 [Trivial]
-5C00E0 00E0 [Trivial]
-5C00EF 00EF [Trivial]
-5C00F9 00F9 [Trivial]
-5C00FA 00FA [Trivial]
-5C00FC 00FC [Trivial]
-5C00FD 00FD [Trivial]
-5C00FE 00FE [Trivial]
-5C00FF 00FF [Trivial]
-5C0800 0800 [Trivial]
-5C0808 0808 [Trivial]
-5C0809 0809 [Trivial]
-5C080A 080A [Trivial]
-5C080D 080D [Trivial]
-5C081A 081A [Trivial]
-5C0822 0822 [Trivial]
-5C0825 0825 [Trivial]
-5C0827 NULL [SyntErr]
-5C0830 0830 [Trivial]
-5C083F 083F [Trivial]
-5C0840 0840 [Trivial]
-5C085A 085A [Trivial]
-5C085C NULL [SyntErr]
-5C085F 085F [Trivial]
-5C0861 0861 [Trivial]
-5C0862 0862 [Trivial]
-5C086E 086E [Trivial]
-5C0872 0872 [Trivial]
-5C0874 0874 [Trivial]
-5C087E 087E [Trivial]
-5C087F 087F [Trivial]
-5C0880 0880 [Trivial]
-5C0881 0881 [Trivial]
-5C089F 089F [Trivial]
-5C08A0 08A0 [Trivial]
-5C08A1 08A1 [Trivial]
-5C08E0 08E0 [Trivial]
-5C08EF 08EF [Trivial]
-5C08F9 08F9 [Trivial]
-5C08FA 08FA [Trivial]
-5C08FC 08FC [Trivial]
-5C08FD 08FD [Trivial]
-5C08FE 08FE [Trivial]
-5C08FF 08FF [Trivial]
-5C0900 0900 [Trivial]
-5C0908 0908 [Trivial]
-5C0909 0909 [Trivial]
-5C090A 090A [Trivial]
-5C090D 090D [Trivial]
-5C091A 091A [Trivial]
-5C0922 0922 [Trivial]
-5C0925 0925 [Trivial]
-5C0927 NULL [SyntErr]
-5C0930 0930 [Trivial]
-5C093F 093F [Trivial]
-5C0940 0940 [Trivial]
-5C095A 095A [Trivial]
-5C095C NULL [SyntErr]
-5C095F 095F [Trivial]
-5C0961 0961 [Trivial]
-5C0962 0962 [Trivial]
-5C096E 096E [Trivial]
-5C0972 0972 [Trivial]
-5C0974 0974 [Trivial]
-5C097E 097E [Trivial]
-5C097F 097F [Trivial]
-5C0980 0980 [Trivial]
-5C0981 0981 [Trivial]
-5C099F 099F [Trivial]
-5C09A0 09A0 [Trivial]
-5C09A1 09A1 [Trivial]
-5C09E0 09E0 [Trivial]
-5C09EF 09EF [Trivial]
-5C09F9 09F9 [Trivial]
-5C09FA 09FA [Trivial]
-5C09FC 09FC [Trivial]
-5C09FD 09FD [Trivial]
-5C09FE 09FE [Trivial]
-5C09FF 09FF [Trivial]
-5C0A00 0A00 [Trivial]
-5C0A08 0A08 [Trivial]
-5C0A09 0A09 [Trivial]
-5C0A0A 0A0A [Trivial]
-5C0A0D 0A0D [Trivial]
-5C0A1A 0A1A [Trivial]
-5C0A22 0A22 [Trivial]
-5C0A25 0A25 [Trivial]
-5C0A27 NULL [SyntErr]
-5C0A30 0A30 [Trivial]
-5C0A3F 0A3F [Trivial]
-5C0A40 0A40 [Trivial]
-5C0A5A 0A5A [Trivial]
-5C0A5C NULL [SyntErr]
-5C0A5F 0A5F [Trivial]
-5C0A61 0A61 [Trivial]
-5C0A62 0A62 [Trivial]
-5C0A6E 0A6E [Trivial]
-5C0A72 0A72 [Trivial]
-5C0A74 0A74 [Trivial]
-5C0A7E 0A7E [Trivial]
-5C0A7F 0A7F [Trivial]
-5C0A80 0A80 [Trivial]
-5C0A81 0A81 [Trivial]
-5C0A9F 0A9F [Trivial]
-5C0AA0 0AA0 [Trivial]
-5C0AA1 0AA1 [Trivial]
-5C0AE0 0AE0 [Trivial]
-5C0AEF 0AEF [Trivial]
-5C0AF9 0AF9 [Trivial]
-5C0AFA 0AFA [Trivial]
-5C0AFC 0AFC [Trivial]
-5C0AFD 0AFD [Trivial]
-5C0AFE 0AFE [Trivial]
-5C0AFF 0AFF [Trivial]
-5C0D00 0D00 [Trivial]
-5C0D08 0D08 [Trivial]
-5C0D09 0D09 [Trivial]
-5C0D0A 0D0A [Trivial]
-5C0D0D 0D0D [Trivial]
-5C0D1A 0D1A [Trivial]
-5C0D22 0D22 [Trivial]
-5C0D25 0D25 [Trivial]
-5C0D27 NULL [SyntErr]
-5C0D30 0D30 [Trivial]
-5C0D3F 0D3F [Trivial]
-5C0D40 0D40 [Trivial]
-5C0D5A 0D5A [Trivial]
-5C0D5C NULL [SyntErr]
-5C0D5F 0D5F [Trivial]
-5C0D61 0D61 [Trivial]
-5C0D62 0D62 [Trivial]
-5C0D6E 0D6E [Trivial]
-5C0D72 0D72 [Trivial]
-5C0D74 0D74 [Trivial]
-5C0D7E 0D7E [Trivial]
-5C0D7F 0D7F [Trivial]
-5C0D80 0D80 [Trivial]
-5C0D81 0D81 [Trivial]
-5C0D9F 0D9F [Trivial]
-5C0DA0 0DA0 [Trivial]
-5C0DA1 0DA1 [Trivial]
-5C0DE0 0DE0 [Trivial]
-5C0DEF 0DEF [Trivial]
-5C0DF9 0DF9 [Trivial]
-5C0DFA 0DFA [Trivial]
-5C0DFC 0DFC [Trivial]
-5C0DFD 0DFD [Trivial]
-5C0DFE 0DFE [Trivial]
-5C0DFF 0DFF [Trivial]
-5C1A00 1A00 [Trivial]
-5C1A08 1A08 [Trivial]
-5C1A09 1A09 [Trivial]
-5C1A0A 1A0A [Trivial]
-5C1A0D 1A0D [Trivial]
-5C1A1A 1A1A [Trivial]
-5C1A22 1A22 [Trivial]
-5C1A25 1A25 [Trivial]
-5C1A27 NULL [SyntErr]
-5C1A30 1A30 [Trivial]
-5C1A3F 1A3F [Trivial]
-5C1A40 1A40 [Trivial]
-5C1A5A 1A5A [Trivial]
-5C1A5C NULL [SyntErr]
-5C1A5F 1A5F [Trivial]
-5C1A61 1A61 [Trivial]
-5C1A62 1A62 [Trivial]
-5C1A6E 1A6E [Trivial]
-5C1A72 1A72 [Trivial]
-5C1A74 1A74 [Trivial]
-5C1A7E 1A7E [Trivial]
-5C1A7F 1A7F [Trivial]
-5C1A80 1A80 [Trivial]
-5C1A81 1A81 [Trivial]
-5C1A9F 1A9F [Trivial]
-5C1AA0 1AA0 [Trivial]
-5C1AA1 1AA1 [Trivial]
-5C1AE0 1AE0 [Trivial]
-5C1AEF 1AEF [Trivial]
-5C1AF9 1AF9 [Trivial]
-5C1AFA 1AFA [Trivial]
-5C1AFC 1AFC [Trivial]
-5C1AFD 1AFD [Trivial]
-5C1AFE 1AFE [Trivial]
-5C1AFF 1AFF [Trivial]
-5C2200 2200 [Trivial]
-5C2208 2208 [Trivial]
-5C2209 2209 [Trivial]
-5C220A 220A [Trivial]
-5C220D 220D [Trivial]
-5C221A 221A [Trivial]
-5C2222 2222 [Trivial]
-5C2225 2225 [Trivial]
-5C2227 NULL [SyntErr]
-5C2230 2230 [Trivial]
-5C223F 223F [Trivial]
-5C2240 2240 [Trivial]
-5C225A 225A [Trivial]
-5C225C NULL [SyntErr]
-5C225F 225F [Trivial]
-5C2261 2261 [Trivial]
-5C2262 2262 [Trivial]
-5C226E 226E [Trivial]
-5C2272 2272 [Trivial]
-5C2274 2274 [Trivial]
-5C227E 227E [Trivial]
-5C227F 227F [Trivial]
-5C2280 2280 [Trivial]
-5C2281 2281 [Trivial]
-5C229F 229F [Trivial]
-5C22A0 22A0 [Trivial]
-5C22A1 22A1 [Trivial]
-5C22E0 22E0 [Trivial]
-5C22EF 22EF [Trivial]
-5C22F9 22F9 [Trivial]
-5C22FA 22FA [Trivial]
-5C22FC 22FC [Trivial]
-5C22FD 22FD [Trivial]
-5C22FE 22FE [Trivial]
-5C22FF 22FF [Trivial]
-5C2500 5C2500 [Preserve][LIKE]
-5C2508 5C2508 [Preserve][LIKE]
-5C2509 5C2509 [Preserve][LIKE]
-5C250A 5C250A [Preserve][LIKE]
-5C250D 5C250D [Preserve][LIKE]
-5C251A 5C251A [Preserve][LIKE]
-5C2522 5C2522 [Preserve][LIKE]
-5C2525 5C2525 [Preserve][LIKE]
-5C2527 NULL [SyntErr]
-5C2530 5C2530 [Preserve][LIKE]
-5C253F 5C253F [Preserve][LIKE]
-5C2540 5C2540 [Preserve][LIKE]
-5C255A 5C255A [Preserve][LIKE]
-5C255C NULL [SyntErr]
-5C255F 5C255F [Preserve][LIKE]
-5C2561 5C2561 [Preserve][LIKE]
-5C2562 5C2562 [Preserve][LIKE]
-5C256E 5C256E [Preserve][LIKE]
-5C2572 5C2572 [Preserve][LIKE]
-5C2574 5C2574 [Preserve][LIKE]
-5C257E 5C257E [Preserve][LIKE]
-5C257F 5C257F [Preserve][LIKE]
-5C2580 5C2580 [Preserve][LIKE]
-5C2581 5C2581 [Preserve][LIKE]
-5C259F 5C259F [Preserve][LIKE]
-5C25A0 5C25A0 [Preserve][LIKE]
-5C25A1 5C25A1 [Preserve][LIKE]
-5C25E0 5C25E0 [Preserve][LIKE]
-5C25EF 5C25EF [Preserve][LIKE]
-5C25F9 5C25F9 [Preserve][LIKE]
-5C25FA 5C25FA [Preserve][LIKE]
-5C25FC 5C25FC [Preserve][LIKE]
-5C25FD 5C25FD [Preserve][LIKE]
-5C25FE 5C25FE [Preserve][LIKE]
-5C25FF 5C25FF [Preserve][LIKE]
-5C2700 2700 [Trivial]
-5C2708 2708 [Trivial]
-5C2709 2709 [Trivial]
-5C270A 270A [Trivial]
-5C270D 270D [Trivial]
-5C271A 271A [Trivial]
-5C2722 2722 [Trivial]
-5C2725 2725 [Trivial]
-5C2727 NULL [SyntErr]
-5C2730 2730 [Trivial]
-5C273F 273F [Trivial]
-5C2740 2740 [Trivial]
-5C275A 275A [Trivial]
-5C275C NULL [SyntErr]
-5C275F 275F [Trivial]
-5C2761 2761 [Trivial]
-5C2762 2762 [Trivial]
-5C276E 276E [Trivial]
-5C2772 2772 [Trivial]
-5C2774 2774 [Trivial]
-5C277E 277E [Trivial]
-5C277F 277F [Trivial]
-5C2780 2780 [Trivial]
-5C2781 2781 [Trivial]
-5C279F 279F [Trivial]
-5C27A0 27A0 [Trivial]
-5C27A1 27A1 [Trivial]
-5C27E0 27E0 [Trivial]
-5C27EF 27EF [Trivial]
-5C27F9 27F9 [Trivial]
-5C27FA 27FA [Trivial]
-5C27FC 27FC [Trivial]
-5C27FD 27FD [Trivial]
-5C27FE 27FE [Trivial]
-5C27FF 27FF [Trivial]
-5C3000 0000 [Regular]
-5C3008 0008 [Regular]
-5C3009 0009 [Regular]
-5C300A 000A [Regular]
-5C300D 000D [Regular]
-5C301A 001A [Regular]
-5C3022 0022 [Regular]
-5C3025 0025 [Regular]
-5C3027 NULL [SyntErr]
-5C3030 0030 [Regular]
-5C303F 003F [Regular]
-5C3040 0040 [Regular]
-5C305A 005A [Regular]
-5C305C NULL [SyntErr]
-5C305F 005F [Regular]
-5C3061 0061 [Regular]
-5C3062 0062 [Regular]
-5C306E 006E [Regular]
-5C3072 0072 [Regular]
-5C3074 0074 [Regular]
-5C307E 007E [Regular]
-5C307F 007F [Regular]
-5C3080 0080 [Regular]
-5C3081 0081 [Regular]
-5C309F 009F [Regular]
-5C30A0 00A0 [Regular]
-5C30A1 00A1 [Regular]
-5C30E0 00E0 [Regular]
-5C30EF 00EF [Regular]
-5C30F9 00F9 [Regular]
-5C30FA 00FA [Regular]
-5C30FC 00FC [Regular]
-5C30FD 00FD [Regular]
-5C30FE 00FE [Regular]
-5C30FF 00FF [Regular]
-5C3F00 3F00 [Trivial]
-5C3F08 3F08 [Trivial]
-5C3F09 3F09 [Trivial]
-5C3F0A 3F0A [Trivial]
-5C3F0D 3F0D [Trivial]
-5C3F1A 3F1A [Trivial]
-5C3F22 3F22 [Trivial]
-5C3F25 3F25 [Trivial]
-5C3F27 NULL [SyntErr]
-5C3F30 3F30 [Trivial]
-5C3F3F 3F3F [Trivial]
-5C3F40 3F40 [Trivial]
-5C3F5A 3F5A [Trivial]
-5C3F5C NULL [SyntErr]
-5C3F5F 3F5F [Trivial]
-5C3F61 3F61 [Trivial]
-5C3F62 3F62 [Trivial]
-5C3F6E 3F6E [Trivial]
-5C3F72 3F72 [Trivial]
-5C3F74 3F74 [Trivial]
-5C3F7E 3F7E [Trivial]
-5C3F7F 3F7F [Trivial]
-5C3F80 3F80 [Trivial]
-5C3F81 3F81 [Trivial]
-5C3F9F 3F9F [Trivial]
-5C3FA0 3FA0 [Trivial]
-5C3FA1 3FA1 [Trivial]
-5C3FE0 3FE0 [Trivial]
-5C3FEF 3FEF [Trivial]
-5C3FF9 3FF9 [Trivial]
-5C3FFA 3FFA [Trivial]
-5C3FFC 3FFC [Trivial]
-5C3FFD 3FFD [Trivial]
-5C3FFE 3FFE [Trivial]
-5C3FFF 3FFF [Trivial]
-5C4000 4000 [Trivial]
-5C4008 4008 [Trivial]
-5C4009 4009 [Trivial]
-5C400A 400A [Trivial]
-5C400D 400D [Trivial]
-5C401A 401A [Trivial]
-5C4022 4022 [Trivial]
-5C4025 4025 [Trivial]
-5C4027 NULL [SyntErr]
-5C4030 4030 [Trivial]
-5C403F 403F [Trivial]
-5C4040 4040 [Trivial]
-5C405A 405A [Trivial]
-5C405C NULL [SyntErr]
-5C405F 405F [Trivial]
-5C4061 4061 [Trivial]
-5C4062 4062 [Trivial]
-5C406E 406E [Trivial]
-5C4072 4072 [Trivial]
-5C4074 4074 [Trivial]
-5C407E 407E [Trivial]
-5C407F 407F [Trivial]
-5C4080 4080 [Trivial]
-5C4081 4081 [Trivial]
-5C409F 409F [Trivial]
-5C40A0 40A0 [Trivial]
-5C40A1 40A1 [Trivial]
-5C40E0 40E0 [Trivial]
-5C40EF 40EF [Trivial]
-5C40F9 40F9 [Trivial]
-5C40FA 40FA [Trivial]
-5C40FC 40FC [Trivial]
-5C40FD 40FD [Trivial]
-5C40FE 40FE [Trivial]
-5C40FF 40FF [Trivial]
-5C5A00 1A00 [Regular]
-5C5A08 1A08 [Regular]
-5C5A09 1A09 [Regular]
-5C5A0A 1A0A [Regular]
-5C5A0D 1A0D [Regular]
-5C5A1A 1A1A [Regular]
-5C5A22 1A22 [Regular]
-5C5A25 1A25 [Regular]
-5C5A27 NULL [SyntErr]
-5C5A30 1A30 [Regular]
-5C5A3F 1A3F [Regular]
-5C5A40 1A40 [Regular]
-5C5A5A 1A5A [Regular]
-5C5A5C NULL [SyntErr]
-5C5A5F 1A5F [Regular]
-5C5A61 1A61 [Regular]
-5C5A62 1A62 [Regular]
-5C5A6E 1A6E [Regular]
-5C5A72 1A72 [Regular]
-5C5A74 1A74 [Regular]
-5C5A7E 1A7E [Regular]
-5C5A7F 1A7F [Regular]
-5C5A80 1A80 [Regular]
-5C5A81 1A81 [Regular]
-5C5A9F 1A9F [Regular]
-5C5AA0 1AA0 [Regular]
-5C5AA1 1AA1 [Regular]
-5C5AE0 1AE0 [Regular]
-5C5AEF 1AEF [Regular]
-5C5AF9 1AF9 [Regular]
-5C5AFA 1AFA [Regular]
-5C5AFC 1AFC [Regular]
-5C5AFD 1AFD [Regular]
-5C5AFE 1AFE [Regular]
-5C5AFF 1AFF [Regular]
-5C5C00 5C00 [Regular]
-5C5C08 5C08 [Regular]
-5C5C09 5C09 [Regular]
-5C5C0A 5C0A [Regular]
-5C5C0D 5C0D [Regular]
-5C5C1A 5C1A [Regular]
-5C5C22 5C22 [Regular]
-5C5C25 5C25 [Regular]
-5C5C27 NULL [SyntErr]
-5C5C30 5C30 [Regular]
-5C5C3F 5C3F [Regular]
-5C5C40 5C40 [Regular]
-5C5C5A 5C5A [Regular]
-5C5C5C NULL [SyntErr]
-5C5C5F 5C5F [Regular]
-5C5C61 5C61 [Regular]
-5C5C62 5C62 [Regular]
-5C5C6E 5C6E [Regular]
-5C5C72 5C72 [Regular]
-5C5C74 5C74 [Regular]
-5C5C7E 5C7E [Regular]
-5C5C7F 5C7F [Regular]
-5C5C80 5C80 [Regular]
-5C5C81 5C81 [Regular]
-5C5C9F 5C9F [Regular]
-5C5CA0 5CA0 [Regular]
-5C5CA1 5CA1 [Regular]
-5C5CE0 5CE0 [Regular]
-5C5CEF 5CEF [Regular]
-5C5CF9 5CF9 [Regular]
-5C5CFA 5CFA [Regular]
-5C5CFC 5CFC [Regular]
-5C5CFD 5CFD [Regular]
-5C5CFE 5CFE [Regular]
-5C5CFF 5CFF [Regular]
-5C5F00 5C5F00 [Preserve][LIKE]
-5C5F08 5C5F08 [Preserve][LIKE]
-5C5F09 5C5F09 [Preserve][LIKE]
-5C5F0A 5C5F0A [Preserve][LIKE]
-5C5F0D 5C5F0D [Preserve][LIKE]
-5C5F1A 5C5F1A [Preserve][LIKE]
-5C5F22 5C5F22 [Preserve][LIKE]
-5C5F25 5C5F25 [Preserve][LIKE]
-5C5F27 NULL [SyntErr]
-5C5F30 5C5F30 [Preserve][LIKE]
-5C5F3F 5C5F3F [Preserve][LIKE]
-5C5F40 5C5F40 [Preserve][LIKE]
-5C5F5A 5C5F5A [Preserve][LIKE]
-5C5F5C NULL [SyntErr]
-5C5F5F 5C5F5F [Preserve][LIKE]
-5C5F61 5C5F61 [Preserve][LIKE]
-5C5F62 5C5F62 [Preserve][LIKE]
-5C5F6E 5C5F6E [Preserve][LIKE]
-5C5F72 5C5F72 [Preserve][LIKE]
-5C5F74 5C5F74 [Preserve][LIKE]
-5C5F7E 5C5F7E [Preserve][LIKE]
-5C5F7F 5C5F7F [Preserve][LIKE]
-5C5F80 5C5F80 [Preserve][LIKE]
-5C5F81 5C5F81 [Preserve][LIKE]
-5C5F9F 5C5F9F [Preserve][LIKE]
-5C5FA0 5C5FA0 [Preserve][LIKE]
-5C5FA1 5C5FA1 [Preserve][LIKE]
-5C5FE0 5C5FE0 [Preserve][LIKE]
-5C5FEF 5C5FEF [Preserve][LIKE]
-5C5FF9 5C5FF9 [Preserve][LIKE]
-5C5FFA 5C5FFA [Preserve][LIKE]
-5C5FFC 5C5FFC [Preserve][LIKE]
-5C5FFD 5C5FFD [Preserve][LIKE]
-5C5FFE 5C5FFE [Preserve][LIKE]
-5C5FFF 5C5FFF [Preserve][LIKE]
-5C6100 6100 [Trivial]
-5C6108 6108 [Trivial]
-5C6109 6109 [Trivial]
-5C610A 610A [Trivial]
-5C610D 610D [Trivial]
-5C611A 611A [Trivial]
-5C6122 6122 [Trivial]
-5C6125 6125 [Trivial]
-5C6127 NULL [SyntErr]
-5C6130 6130 [Trivial]
-5C613F 613F [Trivial]
-5C6140 6140 [Trivial]
-5C615A 615A [Trivial]
-5C615C NULL [SyntErr]
-5C615F 615F [Trivial]
-5C6161 6161 [Trivial]
-5C6162 6162 [Trivial]
-5C616E 616E [Trivial]
-5C6172 6172 [Trivial]
-5C6174 6174 [Trivial]
-5C617E 617E [Trivial]
-5C617F 617F [Trivial]
-5C6180 6180 [Trivial]
-5C6181 6181 [Trivial]
-5C619F 619F [Trivial]
-5C61A0 61A0 [Trivial]
-5C61A1 61A1 [Trivial]
-5C61E0 61E0 [Trivial]
-5C61EF 61EF [Trivial]
-5C61F9 61F9 [Trivial]
-5C61FA 61FA [Trivial]
-5C61FC 61FC [Trivial]
-5C61FD 61FD [Trivial]
-5C61FE 61FE [Trivial]
-5C61FF 61FF [Trivial]
-5C6200 0800 [Regular]
-5C6208 0808 [Regular]
-5C6209 0809 [Regular]
-5C620A 080A [Regular]
-5C620D 080D [Regular]
-5C621A 081A [Regular]
-5C6222 0822 [Regular]
-5C6225 0825 [Regular]
-5C6227 NULL [SyntErr]
-5C6230 0830 [Regular]
-5C623F 083F [Regular]
-5C6240 0840 [Regular]
-5C625A 085A [Regular]
-5C625C NULL [SyntErr]
-5C625F 085F [Regular]
-5C6261 0861 [Regular]
-5C6262 0862 [Regular]
-5C626E 086E [Regular]
-5C6272 0872 [Regular]
-5C6274 0874 [Regular]
-5C627E 087E [Regular]
-5C627F 087F [Regular]
-5C6280 0880 [Regular]
-5C6281 0881 [Regular]
-5C629F 089F [Regular]
-5C62A0 08A0 [Regular]
-5C62A1 08A1 [Regular]
-5C62E0 08E0 [Regular]
-5C62EF 08EF [Regular]
-5C62F9 08F9 [Regular]
-5C62FA 08FA [Regular]
-5C62FC 08FC [Regular]
-5C62FD 08FD [Regular]
-5C62FE 08FE [Regular]
-5C62FF 08FF [Regular]
-5C6E00 0A00 [Regular]
-5C6E08 0A08 [Regular]
-5C6E09 0A09 [Regular]
-5C6E0A 0A0A [Regular]
-5C6E0D 0A0D [Regular]
-5C6E1A 0A1A [Regular]
-5C6E22 0A22 [Regular]
-5C6E25 0A25 [Regular]
-5C6E27 NULL [SyntErr]
-5C6E30 0A30 [Regular]
-5C6E3F 0A3F [Regular]
-5C6E40 0A40 [Regular]
-5C6E5A 0A5A [Regular]
-5C6E5C NULL [SyntErr]
-5C6E5F 0A5F [Regular]
-5C6E61 0A61 [Regular]
-5C6E62 0A62 [Regular]
-5C6E6E 0A6E [Regular]
-5C6E72 0A72 [Regular]
-5C6E74 0A74 [Regular]
-5C6E7E 0A7E [Regular]
-5C6E7F 0A7F [Regular]
-5C6E80 0A80 [Regular]
-5C6E81 0A81 [Regular]
-5C6E9F 0A9F [Regular]
-5C6EA0 0AA0 [Regular]
-5C6EA1 0AA1 [Regular]
-5C6EE0 0AE0 [Regular]
-5C6EEF 0AEF [Regular]
-5C6EF9 0AF9 [Regular]
-5C6EFA 0AFA [Regular]
-5C6EFC 0AFC [Regular]
-5C6EFD 0AFD [Regular]
-5C6EFE 0AFE [Regular]
-5C6EFF 0AFF [Regular]
-5C7200 0D00 [Regular]
-5C7208 0D08 [Regular]
-5C7209 0D09 [Regular]
-5C720A 0D0A [Regular]
-5C720D 0D0D [Regular]
-5C721A 0D1A [Regular]
-5C7222 0D22 [Regular]
-5C7225 0D25 [Regular]
-5C7227 NULL [SyntErr]
-5C7230 0D30 [Regular]
-5C723F 0D3F [Regular]
-5C7240 0D40 [Regular]
-5C725A 0D5A [Regular]
-5C725C NULL [SyntErr]
-5C725F 0D5F [Regular]
-5C7261 0D61 [Regular]
-5C7262 0D62 [Regular]
-5C726E 0D6E [Regular]
-5C7272 0D72 [Regular]
-5C7274 0D74 [Regular]
-5C727E 0D7E [Regular]
-5C727F 0D7F [Regular]
-5C7280 0D80 [Regular]
-5C7281 0D81 [Regular]
-5C729F 0D9F [Regular]
-5C72A0 0DA0 [Regular]
-5C72A1 0DA1 [Regular]
-5C72E0 0DE0 [Regular]
-5C72EF 0DEF [Regular]
-5C72F9 0DF9 [Regular]
-5C72FA 0DFA [Regular]
-5C72FC 0DFC [Regular]
-5C72FD 0DFD [Regular]
-5C72FE 0DFE [Regular]
-5C72FF 0DFF [Regular]
-5C7400 0900 [Regular]
-5C7408 0908 [Regular]
-5C7409 0909 [Regular]
-5C740A 090A [Regular]
-5C740D 090D [Regular]
-5C741A 091A [Regular]
-5C7422 0922 [Regular]
-5C7425 0925 [Regular]
-5C7427 NULL [SyntErr]
-5C7430 0930 [Regular]
-5C743F 093F [Regular]
-5C7440 0940 [Regular]
-5C745A 095A [Regular]
-5C745C NULL [SyntErr]
-5C745F 095F [Regular]
-5C7461 0961 [Regular]
-5C7462 0962 [Regular]
-5C746E 096E [Regular]
-5C7472 0972 [Regular]
-5C7474 0974 [Regular]
-5C747E 097E [Regular]
-5C747F 097F [Regular]
-5C7480 0980 [Regular]
-5C7481 0981 [Regular]
-5C749F 099F [Regular]
-5C74A0 09A0 [Regular]
-5C74A1 09A1 [Regular]
-5C74E0 09E0 [Regular]
-5C74EF 09EF [Regular]
-5C74F9 09F9 [Regular]
-5C74FA 09FA [Regular]
-5C74FC 09FC [Regular]
-5C74FD 09FD [Regular]
-5C74FE 09FE [Regular]
-5C74FF 09FF [Regular]
-5C7E00 7E00 [Trivial]
-5C7E08 7E08 [Trivial]
-5C7E09 7E09 [Trivial]
-5C7E0A 7E0A [Trivial]
-5C7E0D 7E0D [Trivial]
-5C7E1A 7E1A [Trivial]
-5C7E22 7E22 [Trivial]
-5C7E25 7E25 [Trivial]
-5C7E27 NULL [SyntErr]
-5C7E30 7E30 [Trivial]
-5C7E3F 7E3F [Trivial]
-5C7E40 7E40 [Trivial]
-5C7E5A 7E5A [Trivial]
-5C7E5C NULL [SyntErr]
-5C7E5F 7E5F [Trivial]
-5C7E61 7E61 [Trivial]
-5C7E62 7E62 [Trivial]
-5C7E6E 7E6E [Trivial]
-5C7E72 7E72 [Trivial]
-5C7E74 7E74 [Trivial]
-5C7E7E 7E7E [Trivial]
-5C7E7F 7E7F [Trivial]
-5C7E80 7E80 [Trivial]
-5C7E81 7E81 [Trivial]
-5C7E9F 7E9F [Trivial]
-5C7EA0 7EA0 [Trivial]
-5C7EA1 7EA1 [Trivial]
-5C7EE0 7EE0 [Trivial]
-5C7EEF 7EEF [Trivial]
-5C7EF9 7EF9 [Trivial]
-5C7EFA 7EFA [Trivial]
-5C7EFC 7EFC [Trivial]
-5C7EFD 7EFD [Trivial]
-5C7EFE 7EFE [Trivial]
-5C7EFF 7EFF [Trivial]
-5C7F00 7F00 [Trivial]
-5C7F08 7F08 [Trivial]
-5C7F09 7F09 [Trivial]
-5C7F0A 7F0A [Trivial]
-5C7F0D 7F0D [Trivial]
-5C7F1A 7F1A [Trivial]
-5C7F22 7F22 [Trivial]
-5C7F25 7F25 [Trivial]
-5C7F27 NULL [SyntErr]
-5C7F30 7F30 [Trivial]
-5C7F3F 7F3F [Trivial]
-5C7F40 7F40 [Trivial]
-5C7F5A 7F5A [Trivial]
-5C7F5C NULL [SyntErr]
-5C7F5F 7F5F [Trivial]
-5C7F61 7F61 [Trivial]
-5C7F62 7F62 [Trivial]
-5C7F6E 7F6E [Trivial]
-5C7F72 7F72 [Trivial]
-5C7F74 7F74 [Trivial]
-5C7F7E 7F7E [Trivial]
-5C7F7F 7F7F [Trivial]
-5C7F80 7F80 [Trivial]
-5C7F81 7F81 [Trivial]
-5C7F9F 7F9F [Trivial]
-5C7FA0 7FA0 [Trivial]
-5C7FA1 7FA1 [Trivial]
-5C7FE0 7FE0 [Trivial]
-5C7FEF 7FEF [Trivial]
-5C7FF9 7FF9 [Trivial]
-5C7FFA 7FFA [Trivial]
-5C7FFC 7FFC [Trivial]
-5C7FFD 7FFD [Trivial]
-5C7FFE 7FFE [Trivial]
-5C7FFF 7FFF [Trivial]
-5C8000 8000 [Trivial]
-5C8008 8008 [Trivial]
-5C8009 8009 [Trivial]
-5C800A 800A [Trivial]
-5C800D 800D [Trivial]
-5C801A 801A [Trivial]
-5C8022 8022 [Trivial]
-5C8025 8025 [Trivial]
-5C8027 NULL [SyntErr]
-5C8030 8030 [Trivial]
-5C803F 803F [Trivial]
-5C8040 8040 [Trivial]
-5C805A 805A [Trivial]
-5C805C NULL [SyntErr][USER]
-5C805F 805F [Trivial]
-5C8061 8061 [Trivial]
-5C8062 8062 [Trivial]
-5C806E 806E [Trivial]
-5C8072 8072 [Trivial]
-5C8074 8074 [Trivial]
-5C807E 807E [Trivial]
-5C807F 807F [Trivial]
-5C8080 8080 [Trivial]
-5C8081 8081 [Trivial]
-5C809F 809F [Trivial]
-5C80A0 80A0 [Trivial]
-5C80A1 80A1 [Trivial]
-5C80E0 80E0 [Trivial]
-5C80EF 80EF [Trivial]
-5C80F9 80F9 [Trivial]
-5C80FA 80FA [Trivial]
-5C80FC 80FC [Trivial]
-5C80FD 80FD [Trivial]
-5C80FE 80FE [Trivial]
-5C80FF 80FF [Trivial]
-5C8100 8100 [Trivial]
-5C8108 8108 [Trivial]
-5C8109 8109 [Trivial]
-5C810A 810A [Trivial]
-5C810D 810D [Trivial]
-5C811A 811A [Trivial]
-5C8122 8122 [Trivial]
-5C8125 8125 [Trivial]
-5C8127 NULL [SyntErr]
-5C8130 8130 [Trivial]
-5C813F 813F [Trivial]
-5C8140 8140 [Trivial]
-5C815A 815A [Trivial]
-5C815C NULL [SyntErr][USER]
-5C815F 815F [Trivial]
-5C8161 8161 [Trivial]
-5C8162 8162 [Trivial]
-5C816E 816E [Trivial]
-5C8172 8172 [Trivial]
-5C8174 8174 [Trivial]
-5C817E 817E [Trivial]
-5C817F 817F [Trivial]
-5C8180 8180 [Trivial]
-5C8181 8181 [Trivial]
-5C819F 819F [Trivial]
-5C81A0 81A0 [Trivial]
-5C81A1 81A1 [Trivial]
-5C81E0 81E0 [Trivial]
-5C81EF 81EF [Trivial]
-5C81F9 81F9 [Trivial]
-5C81FA 81FA [Trivial]
-5C81FC 81FC [Trivial]
-5C81FD 81FD [Trivial]
-5C81FE 81FE [Trivial]
-5C81FF 81FF [Trivial]
-5C9F00 9F00 [Trivial]
-5C9F08 9F08 [Trivial]
-5C9F09 9F09 [Trivial]
-5C9F0A 9F0A [Trivial]
-5C9F0D 9F0D [Trivial]
-5C9F1A 9F1A [Trivial]
-5C9F22 9F22 [Trivial]
-5C9F25 9F25 [Trivial]
-5C9F27 NULL [SyntErr]
-5C9F30 9F30 [Trivial]
-5C9F3F 9F3F [Trivial]
-5C9F40 9F40 [Trivial]
-5C9F5A 9F5A [Trivial]
-5C9F5C NULL [SyntErr][USER]
-5C9F5F 9F5F [Trivial]
-5C9F61 9F61 [Trivial]
-5C9F62 9F62 [Trivial]
-5C9F6E 9F6E [Trivial]
-5C9F72 9F72 [Trivial]
-5C9F74 9F74 [Trivial]
-5C9F7E 9F7E [Trivial]
-5C9F7F 9F7F [Trivial]
-5C9F80 9F80 [Trivial]
-5C9F81 9F81 [Trivial]
-5C9F9F 9F9F [Trivial]
-5C9FA0 9FA0 [Trivial]
-5C9FA1 9FA1 [Trivial]
-5C9FE0 9FE0 [Trivial]
-5C9FEF 9FEF [Trivial]
-5C9FF9 9FF9 [Trivial]
-5C9FFA 9FFA [Trivial]
-5C9FFC 9FFC [Trivial]
-5C9FFD 9FFD [Trivial]
-5C9FFE 9FFE [Trivial]
-5C9FFF 9FFF [Trivial]
-5CA000 A000 [Trivial]
-5CA008 A008 [Trivial]
-5CA009 A009 [Trivial]
-5CA00A A00A [Trivial]
-5CA00D A00D [Trivial]
-5CA01A A01A [Trivial]
-5CA022 A022 [Trivial]
-5CA025 A025 [Trivial]
-5CA027 NULL [SyntErr]
-5CA030 A030 [Trivial]
-5CA03F A03F [Trivial]
-5CA040 A040 [Trivial]
-5CA05A A05A [Trivial]
-5CA05C NULL [SyntErr][USER]
-5CA05F A05F [Trivial]
-5CA061 A061 [Trivial]
-5CA062 A062 [Trivial]
-5CA06E A06E [Trivial]
-5CA072 A072 [Trivial]
-5CA074 A074 [Trivial]
-5CA07E A07E [Trivial]
-5CA07F A07F [Trivial]
-5CA080 A080 [Trivial]
-5CA081 A081 [Trivial]
-5CA09F A09F [Trivial]
-5CA0A0 A0A0 [Trivial]
-5CA0A1 A0A1 [Trivial]
-5CA0E0 A0E0 [Trivial]
-5CA0EF A0EF [Trivial]
-5CA0F9 A0F9 [Trivial]
-5CA0FA A0FA [Trivial]
-5CA0FC A0FC [Trivial]
-5CA0FD A0FD [Trivial]
-5CA0FE A0FE [Trivial]
-5CA0FF A0FF [Trivial]
-5CA100 A100 [Trivial]
-5CA108 A108 [Trivial]
-5CA109 A109 [Trivial]
-5CA10A A10A [Trivial]
-5CA10D A10D [Trivial]
-5CA11A A11A [Trivial]
-5CA122 A122 [Trivial]
-5CA125 A125 [Trivial]
-5CA127 NULL [SyntErr]
-5CA130 A130 [Trivial]
-5CA13F A13F [Trivial]
-5CA140 A140 [Trivial]
-5CA15A A15A [Trivial]
-5CA15C NULL [SyntErr][USER]
-5CA15F A15F [Trivial]
-5CA161 A161 [Trivial]
-5CA162 A162 [Trivial]
-5CA16E A16E [Trivial]
-5CA172 A172 [Trivial]
-5CA174 A174 [Trivial]
-5CA17E A17E [Trivial]
-5CA17F A17F [Trivial]
-5CA180 A180 [Trivial]
-5CA181 A181 [Trivial]
-5CA19F A19F [Trivial]
-5CA1A0 A1A0 [Trivial]
-5CA1A1 A1A1 [Trivial]
-5CA1E0 A1E0 [Trivial]
-5CA1EF A1EF [Trivial]
-5CA1F9 A1F9 [Trivial]
-5CA1FA A1FA [Trivial]
-5CA1FC A1FC [Trivial]
-5CA1FD A1FD [Trivial]
-5CA1FE A1FE [Trivial]
-5CA1FF A1FF [Trivial]
-5CE000 E000 [Trivial]
-5CE008 E008 [Trivial]
-5CE009 E009 [Trivial]
-5CE00A E00A [Trivial]
-5CE00D E00D [Trivial]
-5CE01A E01A [Trivial]
-5CE022 E022 [Trivial]
-5CE025 E025 [Trivial]
-5CE027 NULL [SyntErr]
-5CE030 E030 [Trivial]
-5CE03F E03F [Trivial]
-5CE040 E040 [Trivial]
-5CE05A E05A [Trivial]
-5CE05C NULL [SyntErr][USER]
-5CE05F E05F [Trivial]
-5CE061 E061 [Trivial]
-5CE062 E062 [Trivial]
-5CE06E E06E [Trivial]
-5CE072 E072 [Trivial]
-5CE074 E074 [Trivial]
-5CE07E E07E [Trivial]
-5CE07F E07F [Trivial]
-5CE080 E080 [Trivial]
-5CE081 E081 [Trivial]
-5CE09F E09F [Trivial]
-5CE0A0 E0A0 [Trivial]
-5CE0A1 E0A1 [Trivial]
-5CE0E0 E0E0 [Trivial]
-5CE0EF E0EF [Trivial]
-5CE0F9 E0F9 [Trivial]
-5CE0FA E0FA [Trivial]
-5CE0FC E0FC [Trivial]
-5CE0FD E0FD [Trivial]
-5CE0FE E0FE [Trivial]
-5CE0FF E0FF [Trivial]
-5CEF00 EF00 [Trivial]
-5CEF08 EF08 [Trivial]
-5CEF09 EF09 [Trivial]
-5CEF0A EF0A [Trivial]
-5CEF0D EF0D [Trivial]
-5CEF1A EF1A [Trivial]
-5CEF22 EF22 [Trivial]
-5CEF25 EF25 [Trivial]
-5CEF27 NULL [SyntErr]
-5CEF30 EF30 [Trivial]
-5CEF3F EF3F [Trivial]
-5CEF40 EF40 [Trivial]
-5CEF5A EF5A [Trivial]
-5CEF5C NULL [SyntErr][USER]
-5CEF5F EF5F [Trivial]
-5CEF61 EF61 [Trivial]
-5CEF62 EF62 [Trivial]
-5CEF6E EF6E [Trivial]
-5CEF72 EF72 [Trivial]
-5CEF74 EF74 [Trivial]
-5CEF7E EF7E [Trivial]
-5CEF7F EF7F [Trivial]
-5CEF80 EF80 [Trivial]
-5CEF81 EF81 [Trivial]
-5CEF9F EF9F [Trivial]
-5CEFA0 EFA0 [Trivial]
-5CEFA1 EFA1 [Trivial]
-5CEFE0 EFE0 [Trivial]
-5CEFEF EFEF [Trivial]
-5CEFF9 EFF9 [Trivial]
-5CEFFA EFFA [Trivial]
-5CEFFC EFFC [Trivial]
-5CEFFD EFFD [Trivial]
-5CEFFE EFFE [Trivial]
-5CEFFF EFFF [Trivial]
-5CF900 F900 [Trivial]
-5CF908 F908 [Trivial]
-5CF909 F909 [Trivial]
-5CF90A F90A [Trivial]
-5CF90D F90D [Trivial]
-5CF91A F91A [Trivial]
-5CF922 F922 [Trivial]
-5CF925 F925 [Trivial]
-5CF927 NULL [SyntErr]
-5CF930 F930 [Trivial]
-5CF93F F93F [Trivial]
-5CF940 F940 [Trivial]
-5CF95A F95A [Trivial]
-5CF95C NULL [SyntErr][USER]
-5CF95F F95F [Trivial]
-5CF961 F961 [Trivial]
-5CF962 F962 [Trivial]
-5CF96E F96E [Trivial]
-5CF972 F972 [Trivial]
-5CF974 F974 [Trivial]
-5CF97E F97E [Trivial]
-5CF97F F97F [Trivial]
-5CF980 F980 [Trivial]
-5CF981 F981 [Trivial]
-5CF99F F99F [Trivial]
-5CF9A0 F9A0 [Trivial]
-5CF9A1 F9A1 [Trivial]
-5CF9E0 F9E0 [Trivial]
-5CF9EF F9EF [Trivial]
-5CF9F9 F9F9 [Trivial]
-5CF9FA F9FA [Trivial]
-5CF9FC F9FC [Trivial]
-5CF9FD F9FD [Trivial]
-5CF9FE F9FE [Trivial]
-5CF9FF F9FF [Trivial]
-5CFA00 FA00 [Trivial]
-5CFA08 FA08 [Trivial]
-5CFA09 FA09 [Trivial]
-5CFA0A FA0A [Trivial]
-5CFA0D FA0D [Trivial]
-5CFA1A FA1A [Trivial]
-5CFA22 FA22 [Trivial]
-5CFA25 FA25 [Trivial]
-5CFA27 NULL [SyntErr]
-5CFA30 FA30 [Trivial]
-5CFA3F FA3F [Trivial]
-5CFA40 FA40 [Trivial]
-5CFA5A FA5A [Trivial]
-5CFA5C NULL [SyntErr][USER]
-5CFA5F FA5F [Trivial]
-5CFA61 FA61 [Trivial]
-5CFA62 FA62 [Trivial]
-5CFA6E FA6E [Trivial]
-5CFA72 FA72 [Trivial]
-5CFA74 FA74 [Trivial]
-5CFA7E FA7E [Trivial]
-5CFA7F FA7F [Trivial]
-5CFA80 FA80 [Trivial]
-5CFA81 FA81 [Trivial]
-5CFA9F FA9F [Trivial]
-5CFAA0 FAA0 [Trivial]
-5CFAA1 FAA1 [Trivial]
-5CFAE0 FAE0 [Trivial]
-5CFAEF FAEF [Trivial]
-5CFAF9 FAF9 [Trivial]
-5CFAFA FAFA [Trivial]
-5CFAFC FAFC [Trivial]
-5CFAFD FAFD [Trivial]
-5CFAFE FAFE [Trivial]
-5CFAFF FAFF [Trivial]
-5CFC00 FC00 [Trivial]
-5CFC08 FC08 [Trivial]
-5CFC09 FC09 [Trivial]
-5CFC0A FC0A [Trivial]
-5CFC0D FC0D [Trivial]
-5CFC1A FC1A [Trivial]
-5CFC22 FC22 [Trivial]
-5CFC25 FC25 [Trivial]
-5CFC27 NULL [SyntErr]
-5CFC30 FC30 [Trivial]
-5CFC3F FC3F [Trivial]
-5CFC40 FC40 [Trivial]
-5CFC5A FC5A [Trivial]
-5CFC5C NULL [SyntErr][USER]
-5CFC5F FC5F [Trivial]
-5CFC61 FC61 [Trivial]
-5CFC62 FC62 [Trivial]
-5CFC6E FC6E [Trivial]
-5CFC72 FC72 [Trivial]
-5CFC74 FC74 [Trivial]
-5CFC7E FC7E [Trivial]
-5CFC7F FC7F [Trivial]
-5CFC80 FC80 [Trivial]
-5CFC81 FC81 [Trivial]
-5CFC9F FC9F [Trivial]
-5CFCA0 FCA0 [Trivial]
-5CFCA1 FCA1 [Trivial]
-5CFCE0 FCE0 [Trivial]
-5CFCEF FCEF [Trivial]
-5CFCF9 FCF9 [Trivial]
-5CFCFA FCFA [Trivial]
-5CFCFC FCFC [Trivial]
-5CFCFD FCFD [Trivial]
-5CFCFE FCFE [Trivial]
-5CFCFF FCFF [Trivial]
-5CFD00 FD00 [Trivial]
-5CFD08 FD08 [Trivial]
-5CFD09 FD09 [Trivial]
-5CFD0A FD0A [Trivial]
-5CFD0D FD0D [Trivial]
-5CFD1A FD1A [Trivial]
-5CFD22 FD22 [Trivial]
-5CFD25 FD25 [Trivial]
-5CFD27 NULL [SyntErr]
-5CFD30 FD30 [Trivial]
-5CFD3F FD3F [Trivial]
-5CFD40 FD40 [Trivial]
-5CFD5A FD5A [Trivial]
-5CFD5C NULL [SyntErr][USER]
-5CFD5F FD5F [Trivial]
-5CFD61 FD61 [Trivial]
-5CFD62 FD62 [Trivial]
-5CFD6E FD6E [Trivial]
-5CFD72 FD72 [Trivial]
-5CFD74 FD74 [Trivial]
-5CFD7E FD7E [Trivial]
-5CFD7F FD7F [Trivial]
-5CFD80 FD80 [Trivial]
-5CFD81 FD81 [Trivial]
-5CFD9F FD9F [Trivial]
-5CFDA0 FDA0 [Trivial]
-5CFDA1 FDA1 [Trivial]
-5CFDE0 FDE0 [Trivial]
-5CFDEF FDEF [Trivial]
-5CFDF9 FDF9 [Trivial]
-5CFDFA FDFA [Trivial]
-5CFDFC FDFC [Trivial]
-5CFDFD FDFD [Trivial]
-5CFDFE FDFE [Trivial]
-5CFDFF FDFF [Trivial]
-5CFE00 FE00 [Trivial]
-5CFE08 FE08 [Trivial]
-5CFE09 FE09 [Trivial]
-5CFE0A FE0A [Trivial]
-5CFE0D FE0D [Trivial]
-5CFE1A FE1A [Trivial]
-5CFE22 FE22 [Trivial]
-5CFE25 FE25 [Trivial]
-5CFE27 NULL [SyntErr]
-5CFE30 FE30 [Trivial]
-5CFE3F FE3F [Trivial]
-5CFE40 FE40 [Trivial]
-5CFE5A FE5A [Trivial]
-5CFE5C NULL [SyntErr][USER]
-5CFE5F FE5F [Trivial]
-5CFE61 FE61 [Trivial]
-5CFE62 FE62 [Trivial]
-5CFE6E FE6E [Trivial]
-5CFE72 FE72 [Trivial]
-5CFE74 FE74 [Trivial]
-5CFE7E FE7E [Trivial]
-5CFE7F FE7F [Trivial]
-5CFE80 FE80 [Trivial]
-5CFE81 FE81 [Trivial]
-5CFE9F FE9F [Trivial]
-5CFEA0 FEA0 [Trivial]
-5CFEA1 FEA1 [Trivial]
-5CFEE0 FEE0 [Trivial]
-5CFEEF FEEF [Trivial]
-5CFEF9 FEF9 [Trivial]
-5CFEFA FEFA [Trivial]
-5CFEFC FEFC [Trivial]
-5CFEFD FEFD [Trivial]
-5CFEFE FEFE [Trivial]
-5CFEFF FEFF [Trivial]
-5CFF00 FF00 [Trivial]
-5CFF08 FF08 [Trivial]
-5CFF09 FF09 [Trivial]
-5CFF0A FF0A [Trivial]
-5CFF0D FF0D [Trivial]
-5CFF1A FF1A [Trivial]
-5CFF22 FF22 [Trivial]
-5CFF25 FF25 [Trivial]
-5CFF27 NULL [SyntErr]
-5CFF30 FF30 [Trivial]
-5CFF3F FF3F [Trivial]
-5CFF40 FF40 [Trivial]
-5CFF5A FF5A [Trivial]
-5CFF5C NULL [SyntErr][USER]
-5CFF5F FF5F [Trivial]
-5CFF61 FF61 [Trivial]
-5CFF62 FF62 [Trivial]
-5CFF6E FF6E [Trivial]
-5CFF72 FF72 [Trivial]
-5CFF74 FF74 [Trivial]
-5CFF7E FF7E [Trivial]
-5CFF7F FF7F [Trivial]
-5CFF80 FF80 [Trivial]
-5CFF81 FF81 [Trivial]
-5CFF9F FF9F [Trivial]
-5CFFA0 FFA0 [Trivial]
-5CFFA1 FFA1 [Trivial]
-5CFFE0 FFE0 [Trivial]
-5CFFEF FFEF [Trivial]
-5CFFF9 FFF9 [Trivial]
-5CFFFA FFFA [Trivial]
-5CFFFC FFFC [Trivial]
-5CFFFD FFFD [Trivial]
-5CFFFE FFFE [Trivial]
-5CFFFF FFFF [Trivial]
-5C005C00 0000 [Trivial]
-5C005C08 0008 [Trivial]
-5C005C09 0009 [Trivial]
-5C005C0A 000A [Trivial]
-5C005C0D 000D [Trivial]
-5C005C1A 001A [Trivial]
-5C005C22 0022 [Trivial]
-5C005C25 005C25 [Regular]
-5C005C27 0027 [Trivial]
-5C005C30 0000 [Regular]
-5C005C3F 003F [Trivial]
-5C005C40 0040 [Trivial]
-5C005C5A 001A [Regular]
-5C005C5C 005C [Regular]
-5C005C5F 005C5F [Regular]
-5C005C61 0061 [Trivial]
-5C005C62 0008 [Regular]
-5C005C6E 000A [Regular]
-5C005C72 000D [Regular]
-5C005C74 0009 [Regular]
-5C005C7E 007E [Trivial]
-5C005C7F 007F [Trivial]
-5C005C80 0080 [Trivial]
-5C005C81 0081 [Trivial]
-5C005C9F 009F [Trivial]
-5C005CA0 00A0 [Trivial]
-5C005CA1 00A1 [Trivial]
-5C005CE0 00E0 [Trivial]
-5C005CEF 00EF [Trivial]
-5C005CF9 00F9 [Trivial]
-5C005CFA 00FA [Trivial]
-5C005CFC 00FC [Trivial]
-5C005CFD 00FD [Trivial]
-5C005CFE 00FE [Trivial]
-5C005CFF 00FF [Trivial]
-5C085C00 0800 [Trivial]
-5C085C08 0808 [Trivial]
-5C085C09 0809 [Trivial]
-5C085C0A 080A [Trivial]
-5C085C0D 080D [Trivial]
-5C085C1A 081A [Trivial]
-5C085C22 0822 [Trivial]
-5C085C25 085C25 [Regular]
-5C085C27 0827 [Trivial]
-5C085C30 0800 [Regular]
-5C085C3F 083F [Trivial]
-5C085C40 0840 [Trivial]
-5C085C5A 081A [Regular]
-5C085C5C 085C [Regular]
-5C085C5F 085C5F [Regular]
-5C085C61 0861 [Trivial]
-5C085C62 0808 [Regular]
-5C085C6E 080A [Regular]
-5C085C72 080D [Regular]
-5C085C74 0809 [Regular]
-5C085C7E 087E [Trivial]
-5C085C7F 087F [Trivial]
-5C085C80 0880 [Trivial]
-5C085C81 0881 [Trivial]
-5C085C9F 089F [Trivial]
-5C085CA0 08A0 [Trivial]
-5C085CA1 08A1 [Trivial]
-5C085CE0 08E0 [Trivial]
-5C085CEF 08EF [Trivial]
-5C085CF9 08F9 [Trivial]
-5C085CFA 08FA [Trivial]
-5C085CFC 08FC [Trivial]
-5C085CFD 08FD [Trivial]
-5C085CFE 08FE [Trivial]
-5C085CFF 08FF [Trivial]
-5C095C00 0900 [Trivial]
-5C095C08 0908 [Trivial]
-5C095C09 0909 [Trivial]
-5C095C0A 090A [Trivial]
-5C095C0D 090D [Trivial]
-5C095C1A 091A [Trivial]
-5C095C22 0922 [Trivial]
-5C095C25 095C25 [Regular]
-5C095C27 0927 [Trivial]
-5C095C30 0900 [Regular]
-5C095C3F 093F [Trivial]
-5C095C40 0940 [Trivial]
-5C095C5A 091A [Regular]
-5C095C5C 095C [Regular]
-5C095C5F 095C5F [Regular]
-5C095C61 0961 [Trivial]
-5C095C62 0908 [Regular]
-5C095C6E 090A [Regular]
-5C095C72 090D [Regular]
-5C095C74 0909 [Regular]
-5C095C7E 097E [Trivial]
-5C095C7F 097F [Trivial]
-5C095C80 0980 [Trivial]
-5C095C81 0981 [Trivial]
-5C095C9F 099F [Trivial]
-5C095CA0 09A0 [Trivial]
-5C095CA1 09A1 [Trivial]
-5C095CE0 09E0 [Trivial]
-5C095CEF 09EF [Trivial]
-5C095CF9 09F9 [Trivial]
-5C095CFA 09FA [Trivial]
-5C095CFC 09FC [Trivial]
-5C095CFD 09FD [Trivial]
-5C095CFE 09FE [Trivial]
-5C095CFF 09FF [Trivial]
-5C0A5C00 0A00 [Trivial]
-5C0A5C08 0A08 [Trivial]
-5C0A5C09 0A09 [Trivial]
-5C0A5C0A 0A0A [Trivial]
-5C0A5C0D 0A0D [Trivial]
-5C0A5C1A 0A1A [Trivial]
-5C0A5C22 0A22 [Trivial]
-5C0A5C25 0A5C25 [Regular]
-5C0A5C27 0A27 [Trivial]
-5C0A5C30 0A00 [Regular]
-5C0A5C3F 0A3F [Trivial]
-5C0A5C40 0A40 [Trivial]
-5C0A5C5A 0A1A [Regular]
-5C0A5C5C 0A5C [Regular]
-5C0A5C5F 0A5C5F [Regular]
-5C0A5C61 0A61 [Trivial]
-5C0A5C62 0A08 [Regular]
-5C0A5C6E 0A0A [Regular]
-5C0A5C72 0A0D [Regular]
-5C0A5C74 0A09 [Regular]
-5C0A5C7E 0A7E [Trivial]
-5C0A5C7F 0A7F [Trivial]
-5C0A5C80 0A80 [Trivial]
-5C0A5C81 0A81 [Trivial]
-5C0A5C9F 0A9F [Trivial]
-5C0A5CA0 0AA0 [Trivial]
-5C0A5CA1 0AA1 [Trivial]
-5C0A5CE0 0AE0 [Trivial]
-5C0A5CEF 0AEF [Trivial]
-5C0A5CF9 0AF9 [Trivial]
-5C0A5CFA 0AFA [Trivial]
-5C0A5CFC 0AFC [Trivial]
-5C0A5CFD 0AFD [Trivial]
-5C0A5CFE 0AFE [Trivial]
-5C0A5CFF 0AFF [Trivial]
-5C0D5C00 0D00 [Trivial]
-5C0D5C08 0D08 [Trivial]
-5C0D5C09 0D09 [Trivial]
-5C0D5C0A 0D0A [Trivial]
-5C0D5C0D 0D0D [Trivial]
-5C0D5C1A 0D1A [Trivial]
-5C0D5C22 0D22 [Trivial]
-5C0D5C25 0D5C25 [Regular]
-5C0D5C27 0D27 [Trivial]
-5C0D5C30 0D00 [Regular]
-5C0D5C3F 0D3F [Trivial]
-5C0D5C40 0D40 [Trivial]
-5C0D5C5A 0D1A [Regular]
-5C0D5C5C 0D5C [Regular]
-5C0D5C5F 0D5C5F [Regular]
-5C0D5C61 0D61 [Trivial]
-5C0D5C62 0D08 [Regular]
-5C0D5C6E 0D0A [Regular]
-5C0D5C72 0D0D [Regular]
-5C0D5C74 0D09 [Regular]
-5C0D5C7E 0D7E [Trivial]
-5C0D5C7F 0D7F [Trivial]
-5C0D5C80 0D80 [Trivial]
-5C0D5C81 0D81 [Trivial]
-5C0D5C9F 0D9F [Trivial]
-5C0D5CA0 0DA0 [Trivial]
-5C0D5CA1 0DA1 [Trivial]
-5C0D5CE0 0DE0 [Trivial]
-5C0D5CEF 0DEF [Trivial]
-5C0D5CF9 0DF9 [Trivial]
-5C0D5CFA 0DFA [Trivial]
-5C0D5CFC 0DFC [Trivial]
-5C0D5CFD 0DFD [Trivial]
-5C0D5CFE 0DFE [Trivial]
-5C0D5CFF 0DFF [Trivial]
-5C1A5C00 1A00 [Trivial]
-5C1A5C08 1A08 [Trivial]
-5C1A5C09 1A09 [Trivial]
-5C1A5C0A 1A0A [Trivial]
-5C1A5C0D 1A0D [Trivial]
-5C1A5C1A 1A1A [Trivial]
-5C1A5C22 1A22 [Trivial]
-5C1A5C25 1A5C25 [Regular]
-5C1A5C27 1A27 [Trivial]
-5C1A5C30 1A00 [Regular]
-5C1A5C3F 1A3F [Trivial]
-5C1A5C40 1A40 [Trivial]
-5C1A5C5A 1A1A [Regular]
-5C1A5C5C 1A5C [Regular]
-5C1A5C5F 1A5C5F [Regular]
-5C1A5C61 1A61 [Trivial]
-5C1A5C62 1A08 [Regular]
-5C1A5C6E 1A0A [Regular]
-5C1A5C72 1A0D [Regular]
-5C1A5C74 1A09 [Regular]
-5C1A5C7E 1A7E [Trivial]
-5C1A5C7F 1A7F [Trivial]
-5C1A5C80 1A80 [Trivial]
-5C1A5C81 1A81 [Trivial]
-5C1A5C9F 1A9F [Trivial]
-5C1A5CA0 1AA0 [Trivial]
-5C1A5CA1 1AA1 [Trivial]
-5C1A5CE0 1AE0 [Trivial]
-5C1A5CEF 1AEF [Trivial]
-5C1A5CF9 1AF9 [Trivial]
-5C1A5CFA 1AFA [Trivial]
-5C1A5CFC 1AFC [Trivial]
-5C1A5CFD 1AFD [Trivial]
-5C1A5CFE 1AFE [Trivial]
-5C1A5CFF 1AFF [Trivial]
-5C225C00 2200 [Trivial]
-5C225C08 2208 [Trivial]
-5C225C09 2209 [Trivial]
-5C225C0A 220A [Trivial]
-5C225C0D 220D [Trivial]
-5C225C1A 221A [Trivial]
-5C225C22 2222 [Trivial]
-5C225C25 225C25 [Regular]
-5C225C27 2227 [Trivial]
-5C225C30 2200 [Regular]
-5C225C3F 223F [Trivial]
-5C225C40 2240 [Trivial]
-5C225C5A 221A [Regular]
-5C225C5C 225C [Regular]
-5C225C5F 225C5F [Regular]
-5C225C61 2261 [Trivial]
-5C225C62 2208 [Regular]
-5C225C6E 220A [Regular]
-5C225C72 220D [Regular]
-5C225C74 2209 [Regular]
-5C225C7E 227E [Trivial]
-5C225C7F 227F [Trivial]
-5C225C80 2280 [Trivial]
-5C225C81 2281 [Trivial]
-5C225C9F 229F [Trivial]
-5C225CA0 22A0 [Trivial]
-5C225CA1 22A1 [Trivial]
-5C225CE0 22E0 [Trivial]
-5C225CEF 22EF [Trivial]
-5C225CF9 22F9 [Trivial]
-5C225CFA 22FA [Trivial]
-5C225CFC 22FC [Trivial]
-5C225CFD 22FD [Trivial]
-5C225CFE 22FE [Trivial]
-5C225CFF 22FF [Trivial]
-5C255C00 5C2500 [Regular]
-5C255C08 5C2508 [Regular]
-5C255C09 5C2509 [Regular]
-5C255C0A 5C250A [Regular]
-5C255C0D 5C250D [Regular]
-5C255C1A 5C251A [Regular]
-5C255C22 5C2522 [Regular]
-5C255C25 5C255C25 [Preserve][LIKE]
-5C255C27 5C2527 [Regular]
-5C255C30 5C2500 [Regular]
-5C255C3F 5C253F [Regular]
-5C255C40 5C2540 [Regular]
-5C255C5A 5C251A [Regular]
-5C255C5C 5C255C [Regular]
-5C255C5F 5C255C5F [Preserve][LIKE]
-5C255C61 5C2561 [Regular]
-5C255C62 5C2508 [Regular]
-5C255C6E 5C250A [Regular]
-5C255C72 5C250D [Regular]
-5C255C74 5C2509 [Regular]
-5C255C7E 5C257E [Regular]
-5C255C7F 5C257F [Regular]
-5C255C80 5C2580 [Regular]
-5C255C81 5C2581 [Regular]
-5C255C9F 5C259F [Regular]
-5C255CA0 5C25A0 [Regular]
-5C255CA1 5C25A1 [Regular]
-5C255CE0 5C25E0 [Regular]
-5C255CEF 5C25EF [Regular]
-5C255CF9 5C25F9 [Regular]
-5C255CFA 5C25FA [Regular]
-5C255CFC 5C25FC [Regular]
-5C255CFD 5C25FD [Regular]
-5C255CFE 5C25FE [Regular]
-5C255CFF 5C25FF [Regular]
-5C275C00 2700 [Trivial]
-5C275C08 2708 [Trivial]
-5C275C09 2709 [Trivial]
-5C275C0A 270A [Trivial]
-5C275C0D 270D [Trivial]
-5C275C1A 271A [Trivial]
-5C275C22 2722 [Trivial]
-5C275C25 275C25 [Regular]
-5C275C27 2727 [Trivial]
-5C275C30 2700 [Regular]
-5C275C3F 273F [Trivial]
-5C275C40 2740 [Trivial]
-5C275C5A 271A [Regular]
-5C275C5C 275C [Regular]
-5C275C5F 275C5F [Regular]
-5C275C61 2761 [Trivial]
-5C275C62 2708 [Regular]
-5C275C6E 270A [Regular]
-5C275C72 270D [Regular]
-5C275C74 2709 [Regular]
-5C275C7E 277E [Trivial]
-5C275C7F 277F [Trivial]
-5C275C80 2780 [Trivial]
-5C275C81 2781 [Trivial]
-5C275C9F 279F [Trivial]
-5C275CA0 27A0 [Trivial]
-5C275CA1 27A1 [Trivial]
-5C275CE0 27E0 [Trivial]
-5C275CEF 27EF [Trivial]
-5C275CF9 27F9 [Trivial]
-5C275CFA 27FA [Trivial]
-5C275CFC 27FC [Trivial]
-5C275CFD 27FD [Trivial]
-5C275CFE 27FE [Trivial]
-5C275CFF 27FF [Trivial]
-5C305C00 0000 [Regular]
-5C305C08 0008 [Regular]
-5C305C09 0009 [Regular]
-5C305C0A 000A [Regular]
-5C305C0D 000D [Regular]
-5C305C1A 001A [Regular]
-5C305C22 0022 [Regular]
-5C305C25 005C25 [Regular]
-5C305C27 0027 [Regular]
-5C305C30 0000 [Regular]
-5C305C3F 003F [Regular]
-5C305C40 0040 [Regular]
-5C305C5A 001A [Regular]
-5C305C5C 005C [Regular]
-5C305C5F 005C5F [Regular]
-5C305C61 0061 [Regular]
-5C305C62 0008 [Regular]
-5C305C6E 000A [Regular]
-5C305C72 000D [Regular]
-5C305C74 0009 [Regular]
-5C305C7E 007E [Regular]
-5C305C7F 007F [Regular]
-5C305C80 0080 [Regular]
-5C305C81 0081 [Regular]
-5C305C9F 009F [Regular]
-5C305CA0 00A0 [Regular]
-5C305CA1 00A1 [Regular]
-5C305CE0 00E0 [Regular]
-5C305CEF 00EF [Regular]
-5C305CF9 00F9 [Regular]
-5C305CFA 00FA [Regular]
-5C305CFC 00FC [Regular]
-5C305CFD 00FD [Regular]
-5C305CFE 00FE [Regular]
-5C305CFF 00FF [Regular]
-5C3F5C00 3F00 [Trivial]
-5C3F5C08 3F08 [Trivial]
-5C3F5C09 3F09 [Trivial]
-5C3F5C0A 3F0A [Trivial]
-5C3F5C0D 3F0D [Trivial]
-5C3F5C1A 3F1A [Trivial]
-5C3F5C22 3F22 [Trivial]
-5C3F5C25 3F5C25 [Regular]
-5C3F5C27 3F27 [Trivial]
-5C3F5C30 3F00 [Regular]
-5C3F5C3F 3F3F [Trivial]
-5C3F5C40 3F40 [Trivial]
-5C3F5C5A 3F1A [Regular]
-5C3F5C5C 3F5C [Regular]
-5C3F5C5F 3F5C5F [Regular]
-5C3F5C61 3F61 [Trivial]
-5C3F5C62 3F08 [Regular]
-5C3F5C6E 3F0A [Regular]
-5C3F5C72 3F0D [Regular]
-5C3F5C74 3F09 [Regular]
-5C3F5C7E 3F7E [Trivial]
-5C3F5C7F 3F7F [Trivial]
-5C3F5C80 3F80 [Trivial]
-5C3F5C81 3F81 [Trivial]
-5C3F5C9F 3F9F [Trivial]
-5C3F5CA0 3FA0 [Trivial]
-5C3F5CA1 3FA1 [Trivial]
-5C3F5CE0 3FE0 [Trivial]
-5C3F5CEF 3FEF [Trivial]
-5C3F5CF9 3FF9 [Trivial]
-5C3F5CFA 3FFA [Trivial]
-5C3F5CFC 3FFC [Trivial]
-5C3F5CFD 3FFD [Trivial]
-5C3F5CFE 3FFE [Trivial]
-5C3F5CFF 3FFF [Trivial]
-5C405C00 4000 [Trivial]
-5C405C08 4008 [Trivial]
-5C405C09 4009 [Trivial]
-5C405C0A 400A [Trivial]
-5C405C0D 400D [Trivial]
-5C405C1A 401A [Trivial]
-5C405C22 4022 [Trivial]
-5C405C25 405C25 [Regular]
-5C405C27 4027 [Trivial]
-5C405C30 4000 [Regular]
-5C405C3F 403F [Trivial]
-5C405C40 4040 [Trivial]
-5C405C5A 401A [Regular]
-5C405C5C 405C [Regular]
-5C405C5F 405C5F [Regular]
-5C405C61 4061 [Trivial]
-5C405C62 4008 [Regular]
-5C405C6E 400A [Regular]
-5C405C72 400D [Regular]
-5C405C74 4009 [Regular]
-5C405C7E 407E [Trivial]
-5C405C7F 407F [Trivial]
-5C405C80 4080 [Trivial]
-5C405C81 4081 [Trivial]
-5C405C9F 409F [Trivial]
-5C405CA0 40A0 [Trivial]
-5C405CA1 40A1 [Trivial]
-5C405CE0 40E0 [Trivial]
-5C405CEF 40EF [Trivial]
-5C405CF9 40F9 [Trivial]
-5C405CFA 40FA [Trivial]
-5C405CFC 40FC [Trivial]
-5C405CFD 40FD [Trivial]
-5C405CFE 40FE [Trivial]
-5C405CFF 40FF [Trivial]
-5C5A5C00 1A00 [Regular]
-5C5A5C08 1A08 [Regular]
-5C5A5C09 1A09 [Regular]
-5C5A5C0A 1A0A [Regular]
-5C5A5C0D 1A0D [Regular]
-5C5A5C1A 1A1A [Regular]
-5C5A5C22 1A22 [Regular]
-5C5A5C25 1A5C25 [Regular]
-5C5A5C27 1A27 [Regular]
-5C5A5C30 1A00 [Regular]
-5C5A5C3F 1A3F [Regular]
-5C5A5C40 1A40 [Regular]
-5C5A5C5A 1A1A [Regular]
-5C5A5C5C 1A5C [Regular]
-5C5A5C5F 1A5C5F [Regular]
-5C5A5C61 1A61 [Regular]
-5C5A5C62 1A08 [Regular]
-5C5A5C6E 1A0A [Regular]
-5C5A5C72 1A0D [Regular]
-5C5A5C74 1A09 [Regular]
-5C5A5C7E 1A7E [Regular]
-5C5A5C7F 1A7F [Regular]
-5C5A5C80 1A80 [Regular]
-5C5A5C81 1A81 [Regular]
-5C5A5C9F 1A9F [Regular]
-5C5A5CA0 1AA0 [Regular]
-5C5A5CA1 1AA1 [Regular]
-5C5A5CE0 1AE0 [Regular]
-5C5A5CEF 1AEF [Regular]
-5C5A5CF9 1AF9 [Regular]
-5C5A5CFA 1AFA [Regular]
-5C5A5CFC 1AFC [Regular]
-5C5A5CFD 1AFD [Regular]
-5C5A5CFE 1AFE [Regular]
-5C5A5CFF 1AFF [Regular]
-5C5C5C00 5C00 [Regular]
-5C5C5C08 5C08 [Regular]
-5C5C5C09 5C09 [Regular]
-5C5C5C0A 5C0A [Regular]
-5C5C5C0D 5C0D [Regular]
-5C5C5C1A 5C1A [Regular]
-5C5C5C22 5C22 [Regular]
-5C5C5C25 5C5C25 [Regular]
-5C5C5C27 5C27 [Regular]
-5C5C5C30 5C00 [Regular]
-5C5C5C3F 5C3F [Regular]
-5C5C5C40 5C40 [Regular]
-5C5C5C5A 5C1A [Regular]
-5C5C5C5C 5C5C [Regular]
-5C5C5C5F 5C5C5F [Regular]
-5C5C5C61 5C61 [Regular]
-5C5C5C62 5C08 [Regular]
-5C5C5C6E 5C0A [Regular]
-5C5C5C72 5C0D [Regular]
-5C5C5C74 5C09 [Regular]
-5C5C5C7E 5C7E [Regular]
-5C5C5C7F 5C7F [Regular]
-5C5C5C80 5C80 [Regular]
-5C5C5C81 5C81 [Regular]
-5C5C5C9F 5C9F [Regular]
-5C5C5CA0 5CA0 [Regular]
-5C5C5CA1 5CA1 [Regular]
-5C5C5CE0 5CE0 [Regular]
-5C5C5CEF 5CEF [Regular]
-5C5C5CF9 5CF9 [Regular]
-5C5C5CFA 5CFA [Regular]
-5C5C5CFC 5CFC [Regular]
-5C5C5CFD 5CFD [Regular]
-5C5C5CFE 5CFE [Regular]
-5C5C5CFF 5CFF [Regular]
-5C5F5C00 5C5F00 [Regular]
-5C5F5C08 5C5F08 [Regular]
-5C5F5C09 5C5F09 [Regular]
-5C5F5C0A 5C5F0A [Regular]
-5C5F5C0D 5C5F0D [Regular]
-5C5F5C1A 5C5F1A [Regular]
-5C5F5C22 5C5F22 [Regular]
-5C5F5C25 5C5F5C25 [Preserve][LIKE]
-5C5F5C27 5C5F27 [Regular]
-5C5F5C30 5C5F00 [Regular]
-5C5F5C3F 5C5F3F [Regular]
-5C5F5C40 5C5F40 [Regular]
-5C5F5C5A 5C5F1A [Regular]
-5C5F5C5C 5C5F5C [Regular]
-5C5F5C5F 5C5F5C5F [Preserve][LIKE]
-5C5F5C61 5C5F61 [Regular]
-5C5F5C62 5C5F08 [Regular]
-5C5F5C6E 5C5F0A [Regular]
-5C5F5C72 5C5F0D [Regular]
-5C5F5C74 5C5F09 [Regular]
-5C5F5C7E 5C5F7E [Regular]
-5C5F5C7F 5C5F7F [Regular]
-5C5F5C80 5C5F80 [Regular]
-5C5F5C81 5C5F81 [Regular]
-5C5F5C9F 5C5F9F [Regular]
-5C5F5CA0 5C5FA0 [Regular]
-5C5F5CA1 5C5FA1 [Regular]
-5C5F5CE0 5C5FE0 [Regular]
-5C5F5CEF 5C5FEF [Regular]
-5C5F5CF9 5C5FF9 [Regular]
-5C5F5CFA 5C5FFA [Regular]
-5C5F5CFC 5C5FFC [Regular]
-5C5F5CFD 5C5FFD [Regular]
-5C5F5CFE 5C5FFE [Regular]
-5C5F5CFF 5C5FFF [Regular]
-5C615C00 6100 [Trivial]
-5C615C08 6108 [Trivial]
-5C615C09 6109 [Trivial]
-5C615C0A 610A [Trivial]
-5C615C0D 610D [Trivial]
-5C615C1A 611A [Trivial]
-5C615C22 6122 [Trivial]
-5C615C25 615C25 [Regular]
-5C615C27 6127 [Trivial]
-5C615C30 6100 [Regular]
-5C615C3F 613F [Trivial]
-5C615C40 6140 [Trivial]
-5C615C5A 611A [Regular]
-5C615C5C 615C [Regular]
-5C615C5F 615C5F [Regular]
-5C615C61 6161 [Trivial]
-5C615C62 6108 [Regular]
-5C615C6E 610A [Regular]
-5C615C72 610D [Regular]
-5C615C74 6109 [Regular]
-5C615C7E 617E [Trivial]
-5C615C7F 617F [Trivial]
-5C615C80 6180 [Trivial]
-5C615C81 6181 [Trivial]
-5C615C9F 619F [Trivial]
-5C615CA0 61A0 [Trivial]
-5C615CA1 61A1 [Trivial]
-5C615CE0 61E0 [Trivial]
-5C615CEF 61EF [Trivial]
-5C615CF9 61F9 [Trivial]
-5C615CFA 61FA [Trivial]
-5C615CFC 61FC [Trivial]
-5C615CFD 61FD [Trivial]
-5C615CFE 61FE [Trivial]
-5C615CFF 61FF [Trivial]
-5C625C00 0800 [Regular]
-5C625C08 0808 [Regular]
-5C625C09 0809 [Regular]
-5C625C0A 080A [Regular]
-5C625C0D 080D [Regular]
-5C625C1A 081A [Regular]
-5C625C22 0822 [Regular]
-5C625C25 085C25 [Regular]
-5C625C27 0827 [Regular]
-5C625C30 0800 [Regular]
-5C625C3F 083F [Regular]
-5C625C40 0840 [Regular]
-5C625C5A 081A [Regular]
-5C625C5C 085C [Regular]
-5C625C5F 085C5F [Regular]
-5C625C61 0861 [Regular]
-5C625C62 0808 [Regular]
-5C625C6E 080A [Regular]
-5C625C72 080D [Regular]
-5C625C74 0809 [Regular]
-5C625C7E 087E [Regular]
-5C625C7F 087F [Regular]
-5C625C80 0880 [Regular]
-5C625C81 0881 [Regular]
-5C625C9F 089F [Regular]
-5C625CA0 08A0 [Regular]
-5C625CA1 08A1 [Regular]
-5C625CE0 08E0 [Regular]
-5C625CEF 08EF [Regular]
-5C625CF9 08F9 [Regular]
-5C625CFA 08FA [Regular]
-5C625CFC 08FC [Regular]
-5C625CFD 08FD [Regular]
-5C625CFE 08FE [Regular]
-5C625CFF 08FF [Regular]
-5C6E5C00 0A00 [Regular]
-5C6E5C08 0A08 [Regular]
-5C6E5C09 0A09 [Regular]
-5C6E5C0A 0A0A [Regular]
-5C6E5C0D 0A0D [Regular]
-5C6E5C1A 0A1A [Regular]
-5C6E5C22 0A22 [Regular]
-5C6E5C25 0A5C25 [Regular]
-5C6E5C27 0A27 [Regular]
-5C6E5C30 0A00 [Regular]
-5C6E5C3F 0A3F [Regular]
-5C6E5C40 0A40 [Regular]
-5C6E5C5A 0A1A [Regular]
-5C6E5C5C 0A5C [Regular]
-5C6E5C5F 0A5C5F [Regular]
-5C6E5C61 0A61 [Regular]
-5C6E5C62 0A08 [Regular]
-5C6E5C6E 0A0A [Regular]
-5C6E5C72 0A0D [Regular]
-5C6E5C74 0A09 [Regular]
-5C6E5C7E 0A7E [Regular]
-5C6E5C7F 0A7F [Regular]
-5C6E5C80 0A80 [Regular]
-5C6E5C81 0A81 [Regular]
-5C6E5C9F 0A9F [Regular]
-5C6E5CA0 0AA0 [Regular]
-5C6E5CA1 0AA1 [Regular]
-5C6E5CE0 0AE0 [Regular]
-5C6E5CEF 0AEF [Regular]
-5C6E5CF9 0AF9 [Regular]
-5C6E5CFA 0AFA [Regular]
-5C6E5CFC 0AFC [Regular]
-5C6E5CFD 0AFD [Regular]
-5C6E5CFE 0AFE [Regular]
-5C6E5CFF 0AFF [Regular]
-5C725C00 0D00 [Regular]
-5C725C08 0D08 [Regular]
-5C725C09 0D09 [Regular]
-5C725C0A 0D0A [Regular]
-5C725C0D 0D0D [Regular]
-5C725C1A 0D1A [Regular]
-5C725C22 0D22 [Regular]
-5C725C25 0D5C25 [Regular]
-5C725C27 0D27 [Regular]
-5C725C30 0D00 [Regular]
-5C725C3F 0D3F [Regular]
-5C725C40 0D40 [Regular]
-5C725C5A 0D1A [Regular]
-5C725C5C 0D5C [Regular]
-5C725C5F 0D5C5F [Regular]
-5C725C61 0D61 [Regular]
-5C725C62 0D08 [Regular]
-5C725C6E 0D0A [Regular]
-5C725C72 0D0D [Regular]
-5C725C74 0D09 [Regular]
-5C725C7E 0D7E [Regular]
-5C725C7F 0D7F [Regular]
-5C725C80 0D80 [Regular]
-5C725C81 0D81 [Regular]
-5C725C9F 0D9F [Regular]
-5C725CA0 0DA0 [Regular]
-5C725CA1 0DA1 [Regular]
-5C725CE0 0DE0 [Regular]
-5C725CEF 0DEF [Regular]
-5C725CF9 0DF9 [Regular]
-5C725CFA 0DFA [Regular]
-5C725CFC 0DFC [Regular]
-5C725CFD 0DFD [Regular]
-5C725CFE 0DFE [Regular]
-5C725CFF 0DFF [Regular]
-5C745C00 0900 [Regular]
-5C745C08 0908 [Regular]
-5C745C09 0909 [Regular]
-5C745C0A 090A [Regular]
-5C745C0D 090D [Regular]
-5C745C1A 091A [Regular]
-5C745C22 0922 [Regular]
-5C745C25 095C25 [Regular]
-5C745C27 0927 [Regular]
-5C745C30 0900 [Regular]
-5C745C3F 093F [Regular]
-5C745C40 0940 [Regular]
-5C745C5A 091A [Regular]
-5C745C5C 095C [Regular]
-5C745C5F 095C5F [Regular]
-5C745C61 0961 [Regular]
-5C745C62 0908 [Regular]
-5C745C6E 090A [Regular]
-5C745C72 090D [Regular]
-5C745C74 0909 [Regular]
-5C745C7E 097E [Regular]
-5C745C7F 097F [Regular]
-5C745C80 0980 [Regular]
-5C745C81 0981 [Regular]
-5C745C9F 099F [Regular]
-5C745CA0 09A0 [Regular]
-5C745CA1 09A1 [Regular]
-5C745CE0 09E0 [Regular]
-5C745CEF 09EF [Regular]
-5C745CF9 09F9 [Regular]
-5C745CFA 09FA [Regular]
-5C745CFC 09FC [Regular]
-5C745CFD 09FD [Regular]
-5C745CFE 09FE [Regular]
-5C745CFF 09FF [Regular]
-5C7E5C00 7E00 [Trivial]
-5C7E5C08 7E08 [Trivial]
-5C7E5C09 7E09 [Trivial]
-5C7E5C0A 7E0A [Trivial]
-5C7E5C0D 7E0D [Trivial]
-5C7E5C1A 7E1A [Trivial]
-5C7E5C22 7E22 [Trivial]
-5C7E5C25 7E5C25 [Regular]
-5C7E5C27 7E27 [Trivial]
-5C7E5C30 7E00 [Regular]
-5C7E5C3F 7E3F [Trivial]
-5C7E5C40 7E40 [Trivial]
-5C7E5C5A 7E1A [Regular]
-5C7E5C5C 7E5C [Regular]
-5C7E5C5F 7E5C5F [Regular]
-5C7E5C61 7E61 [Trivial]
-5C7E5C62 7E08 [Regular]
-5C7E5C6E 7E0A [Regular]
-5C7E5C72 7E0D [Regular]
-5C7E5C74 7E09 [Regular]
-5C7E5C7E 7E7E [Trivial]
-5C7E5C7F 7E7F [Trivial]
-5C7E5C80 7E80 [Trivial]
-5C7E5C81 7E81 [Trivial]
-5C7E5C9F 7E9F [Trivial]
-5C7E5CA0 7EA0 [Trivial]
-5C7E5CA1 7EA1 [Trivial]
-5C7E5CE0 7EE0 [Trivial]
-5C7E5CEF 7EEF [Trivial]
-5C7E5CF9 7EF9 [Trivial]
-5C7E5CFA 7EFA [Trivial]
-5C7E5CFC 7EFC [Trivial]
-5C7E5CFD 7EFD [Trivial]
-5C7E5CFE 7EFE [Trivial]
-5C7E5CFF 7EFF [Trivial]
-5C7F5C00 7F00 [Trivial]
-5C7F5C08 7F08 [Trivial]
-5C7F5C09 7F09 [Trivial]
-5C7F5C0A 7F0A [Trivial]
-5C7F5C0D 7F0D [Trivial]
-5C7F5C1A 7F1A [Trivial]
-5C7F5C22 7F22 [Trivial]
-5C7F5C25 7F5C25 [Regular]
-5C7F5C27 7F27 [Trivial]
-5C7F5C30 7F00 [Regular]
-5C7F5C3F 7F3F [Trivial]
-5C7F5C40 7F40 [Trivial]
-5C7F5C5A 7F1A [Regular]
-5C7F5C5C 7F5C [Regular]
-5C7F5C5F 7F5C5F [Regular]
-5C7F5C61 7F61 [Trivial]
-5C7F5C62 7F08 [Regular]
-5C7F5C6E 7F0A [Regular]
-5C7F5C72 7F0D [Regular]
-5C7F5C74 7F09 [Regular]
-5C7F5C7E 7F7E [Trivial]
-5C7F5C7F 7F7F [Trivial]
-5C7F5C80 7F80 [Trivial]
-5C7F5C81 7F81 [Trivial]
-5C7F5C9F 7F9F [Trivial]
-5C7F5CA0 7FA0 [Trivial]
-5C7F5CA1 7FA1 [Trivial]
-5C7F5CE0 7FE0 [Trivial]
-5C7F5CEF 7FEF [Trivial]
-5C7F5CF9 7FF9 [Trivial]
-5C7F5CFA 7FFA [Trivial]
-5C7F5CFC 7FFC [Trivial]
-5C7F5CFD 7FFD [Trivial]
-5C7F5CFE 7FFE [Trivial]
-5C7F5CFF 7FFF [Trivial]
-5C805C00 8000 [Trivial][USER]
-5C805C08 8008 [Trivial][USER]
-5C805C09 8009 [Trivial][USER]
-5C805C0A 800A [Trivial][USER]
-5C805C0D 800D [Trivial][USER]
-5C805C1A 801A [Trivial][USER]
-5C805C22 8022 [Trivial][USER]
-5C805C25 805C25 [Regular]
-5C805C27 8027 [Trivial][USER]
-5C805C30 8000 [Regular]
-5C805C3F 803F [Trivial][USER]
-5C805C40 8040 [Trivial][USER]
-5C805C5A 801A [Regular]
-5C805C5C 805C [Regular][USER]
-5C805C5F 805C5F [Regular]
-5C805C61 8061 [Trivial][USER]
-5C805C62 8008 [Regular][USER]
-5C805C6E 800A [Regular]
-5C805C72 800D [Regular]
-5C805C74 8009 [Regular]
-5C805C7E 807E [Trivial][USER]
-5C805C7F 807F [Trivial][USER]
-5C805C80 8080 [Trivial][USER]
-5C805C81 8081 [Trivial][USER]
-5C805C9F 809F [Trivial][USER]
-5C805CA0 80A0 [Trivial][USER]
-5C805CA1 80A1 [Trivial][USER]
-5C805CE0 80E0 [Trivial][USER]
-5C805CEF 80EF [Trivial][USER]
-5C805CF9 80F9 [Trivial][USER]
-5C805CFA 80FA [Trivial][USER]
-5C805CFC 80FC [Trivial][USER]
-5C805CFD 80FD [Trivial][USER]
-5C805CFE 80FE [Trivial][USER]
-5C805CFF 80FF [Trivial][USER]
-5C815C00 8100 [Trivial][USER]
-5C815C08 8108 [Trivial][USER]
-5C815C09 8109 [Trivial][USER]
-5C815C0A 810A [Trivial][USER]
-5C815C0D 810D [Trivial][USER]
-5C815C1A 811A [Trivial][USER]
-5C815C22 8122 [Trivial][USER]
-5C815C25 815C25 [Regular]
-5C815C27 8127 [Trivial][USER]
-5C815C30 8100 [Regular]
-5C815C3F 813F [Trivial][USER]
-5C815C40 8140 [Trivial][USER]
-5C815C5A 811A [Regular]
-5C815C5C 815C [Regular][USER]
-5C815C5F 815C5F [Regular]
-5C815C61 8161 [Trivial][USER]
-5C815C62 8108 [Regular][USER]
-5C815C6E 810A [Regular]
-5C815C72 810D [Regular]
-5C815C74 8109 [Regular]
-5C815C7E 817E [Trivial][USER]
-5C815C7F 817F [Trivial][USER]
-5C815C80 8180 [Trivial][USER]
-5C815C81 8181 [Trivial][USER]
-5C815C9F 819F [Trivial][USER]
-5C815CA0 81A0 [Trivial][USER]
-5C815CA1 81A1 [Trivial][USER]
-5C815CE0 81E0 [Trivial][USER]
-5C815CEF 81EF [Trivial][USER]
-5C815CF9 81F9 [Trivial][USER]
-5C815CFA 81FA [Trivial][USER]
-5C815CFC 81FC [Trivial][USER]
-5C815CFD 81FD [Trivial][USER]
-5C815CFE 81FE [Trivial][USER]
-5C815CFF 81FF [Trivial][USER]
-5C9F5C00 9F00 [Trivial][USER]
-5C9F5C08 9F08 [Trivial][USER]
-5C9F5C09 9F09 [Trivial][USER]
-5C9F5C0A 9F0A [Trivial][USER]
-5C9F5C0D 9F0D [Trivial][USER]
-5C9F5C1A 9F1A [Trivial][USER]
-5C9F5C22 9F22 [Trivial][USER]
-5C9F5C25 9F5C25 [Regular]
-5C9F5C27 9F27 [Trivial][USER]
-5C9F5C30 9F00 [Regular]
-5C9F5C3F 9F3F [Trivial][USER]
-5C9F5C40 9F40 [Trivial][USER]
-5C9F5C5A 9F1A [Regular]
-5C9F5C5C 9F5C [Regular][USER]
-5C9F5C5F 9F5C5F [Regular]
-5C9F5C61 9F61 [Trivial][USER]
-5C9F5C62 9F08 [Regular][USER]
-5C9F5C6E 9F0A [Regular]
-5C9F5C72 9F0D [Regular]
-5C9F5C74 9F09 [Regular]
-5C9F5C7E 9F7E [Trivial][USER]
-5C9F5C7F 9F7F [Trivial][USER]
-5C9F5C80 9F80 [Trivial][USER]
-5C9F5C81 9F81 [Trivial][USER]
-5C9F5C9F 9F9F [Trivial][USER]
-5C9F5CA0 9FA0 [Trivial][USER]
-5C9F5CA1 9FA1 [Trivial][USER]
-5C9F5CE0 9FE0 [Trivial][USER]
-5C9F5CEF 9FEF [Trivial][USER]
-5C9F5CF9 9FF9 [Trivial][USER]
-5C9F5CFA 9FFA [Trivial][USER]
-5C9F5CFC 9FFC [Trivial][USER]
-5C9F5CFD 9FFD [Trivial][USER]
-5C9F5CFE 9FFE [Trivial][USER]
-5C9F5CFF 9FFF [Trivial][USER]
-5CA05C00 A000 [Trivial][USER]
-5CA05C08 A008 [Trivial][USER]
-5CA05C09 A009 [Trivial][USER]
-5CA05C0A A00A [Trivial][USER]
-5CA05C0D A00D [Trivial][USER]
-5CA05C1A A01A [Trivial][USER]
-5CA05C22 A022 [Trivial][USER]
-5CA05C25 A05C25 [Regular]
-5CA05C27 A027 [Trivial][USER]
-5CA05C30 A000 [Regular]
-5CA05C3F A03F [Trivial][USER]
-5CA05C40 A040 [Trivial][USER]
-5CA05C5A A01A [Regular]
-5CA05C5C A05C [Regular][USER]
-5CA05C5F A05C5F [Regular]
-5CA05C61 A061 [Trivial][USER]
-5CA05C62 A008 [Regular][USER]
-5CA05C6E A00A [Regular]
-5CA05C72 A00D [Regular]
-5CA05C74 A009 [Regular]
-5CA05C7E A07E [Trivial][USER]
-5CA05C7F A07F [Trivial][USER]
-5CA05C80 A080 [Trivial][USER]
-5CA05C81 A081 [Trivial][USER]
-5CA05C9F A09F [Trivial][USER]
-5CA05CA0 A0A0 [Trivial][USER]
-5CA05CA1 A0A1 [Trivial][USER]
-5CA05CE0 A0E0 [Trivial][USER]
-5CA05CEF A0EF [Trivial][USER]
-5CA05CF9 A0F9 [Trivial][USER]
-5CA05CFA A0FA [Trivial][USER]
-5CA05CFC A0FC [Trivial][USER]
-5CA05CFD A0FD [Trivial][USER]
-5CA05CFE A0FE [Trivial][USER]
-5CA05CFF A0FF [Trivial][USER]
-5CA15C00 A100 [Trivial][USER]
-5CA15C08 A108 [Trivial][USER]
-5CA15C09 A109 [Trivial][USER]
-5CA15C0A A10A [Trivial][USER]
-5CA15C0D A10D [Trivial][USER]
-5CA15C1A A11A [Trivial][USER]
-5CA15C22 A122 [Trivial][USER]
-5CA15C25 A15C25 [Regular]
-5CA15C27 A127 [Trivial][USER]
-5CA15C30 A100 [Regular]
-5CA15C3F A13F [Trivial][USER]
-5CA15C40 A140 [Trivial][USER]
-5CA15C5A A11A [Regular]
-5CA15C5C A15C [Regular][USER]
-5CA15C5F A15C5F [Regular]
-5CA15C61 A161 [Trivial][USER]
-5CA15C62 A108 [Regular][USER]
-5CA15C6E A10A [Regular]
-5CA15C72 A10D [Regular]
-5CA15C74 A109 [Regular]
-5CA15C7E A17E [Trivial][USER]
-5CA15C7F A17F [Trivial][USER]
-5CA15C80 A180 [Trivial][USER]
-5CA15C81 A181 [Trivial][USER]
-5CA15C9F A19F [Trivial][USER]
-5CA15CA0 A1A0 [Trivial][USER]
-5CA15CA1 A1A1 [Trivial][USER]
-5CA15CE0 A1E0 [Trivial][USER]
-5CA15CEF A1EF [Trivial][USER]
-5CA15CF9 A1F9 [Trivial][USER]
-5CA15CFA A1FA [Trivial][USER]
-5CA15CFC A1FC [Trivial][USER]
-5CA15CFD A1FD [Trivial][USER]
-5CA15CFE A1FE [Trivial][USER]
-5CA15CFF A1FF [Trivial][USER]
-5CE05C00 E000 [Trivial][USER]
-5CE05C08 E008 [Trivial][USER]
-5CE05C09 E009 [Trivial][USER]
-5CE05C0A E00A [Trivial][USER]
-5CE05C0D E00D [Trivial][USER]
-5CE05C1A E01A [Trivial][USER]
-5CE05C22 E022 [Trivial][USER]
-5CE05C25 E05C25 [Regular]
-5CE05C27 E027 [Trivial][USER]
-5CE05C30 E000 [Regular]
-5CE05C3F E03F [Trivial][USER]
-5CE05C40 E040 [Trivial][USER]
-5CE05C5A E01A [Regular]
-5CE05C5C E05C [Regular][USER]
-5CE05C5F E05C5F [Regular]
-5CE05C61 E061 [Trivial][USER]
-5CE05C62 E008 [Regular][USER]
-5CE05C6E E00A [Regular]
-5CE05C72 E00D [Regular]
-5CE05C74 E009 [Regular]
-5CE05C7E E07E [Trivial][USER]
-5CE05C7F E07F [Trivial][USER]
-5CE05C80 E080 [Trivial][USER]
-5CE05C81 E081 [Trivial][USER]
-5CE05C9F E09F [Trivial][USER]
-5CE05CA0 E0A0 [Trivial][USER]
-5CE05CA1 E0A1 [Trivial][USER]
-5CE05CE0 E0E0 [Trivial][USER]
-5CE05CEF E0EF [Trivial][USER]
-5CE05CF9 E0F9 [Trivial][USER]
-5CE05CFA E0FA [Trivial][USER]
-5CE05CFC E0FC [Trivial][USER]
-5CE05CFD E0FD [Trivial][USER]
-5CE05CFE E0FE [Trivial][USER]
-5CE05CFF E0FF [Trivial][USER]
-5CEF5C00 EF00 [Trivial][USER]
-5CEF5C08 EF08 [Trivial][USER]
-5CEF5C09 EF09 [Trivial][USER]
-5CEF5C0A EF0A [Trivial][USER]
-5CEF5C0D EF0D [Trivial][USER]
-5CEF5C1A EF1A [Trivial][USER]
-5CEF5C22 EF22 [Trivial][USER]
-5CEF5C25 EF5C25 [Regular]
-5CEF5C27 EF27 [Trivial][USER]
-5CEF5C30 EF00 [Regular]
-5CEF5C3F EF3F [Trivial][USER]
-5CEF5C40 EF40 [Trivial][USER]
-5CEF5C5A EF1A [Regular]
-5CEF5C5C EF5C [Regular][USER]
-5CEF5C5F EF5C5F [Regular]
-5CEF5C61 EF61 [Trivial][USER]
-5CEF5C62 EF08 [Regular][USER]
-5CEF5C6E EF0A [Regular]
-5CEF5C72 EF0D [Regular]
-5CEF5C74 EF09 [Regular]
-5CEF5C7E EF7E [Trivial][USER]
-5CEF5C7F EF7F [Trivial][USER]
-5CEF5C80 EF80 [Trivial][USER]
-5CEF5C81 EF81 [Trivial][USER]
-5CEF5C9F EF9F [Trivial][USER]
-5CEF5CA0 EFA0 [Trivial][USER]
-5CEF5CA1 EFA1 [Trivial][USER]
-5CEF5CE0 EFE0 [Trivial][USER]
-5CEF5CEF EFEF [Trivial][USER]
-5CEF5CF9 EFF9 [Trivial][USER]
-5CEF5CFA EFFA [Trivial][USER]
-5CEF5CFC EFFC [Trivial][USER]
-5CEF5CFD EFFD [Trivial][USER]
-5CEF5CFE EFFE [Trivial][USER]
-5CEF5CFF EFFF [Trivial][USER]
-5CF95C00 F900 [Trivial][USER]
-5CF95C08 F908 [Trivial][USER]
-5CF95C09 F909 [Trivial][USER]
-5CF95C0A F90A [Trivial][USER]
-5CF95C0D F90D [Trivial][USER]
-5CF95C1A F91A [Trivial][USER]
-5CF95C22 F922 [Trivial][USER]
-5CF95C25 F95C25 [Regular]
-5CF95C27 F927 [Trivial][USER]
-5CF95C30 F900 [Regular]
-5CF95C3F F93F [Trivial][USER]
-5CF95C40 F940 [Trivial][USER]
-5CF95C5A F91A [Regular]
-5CF95C5C F95C [Regular][USER]
-5CF95C5F F95C5F [Regular]
-5CF95C61 F961 [Trivial][USER]
-5CF95C62 F908 [Regular][USER]
-5CF95C6E F90A [Regular]
-5CF95C72 F90D [Regular]
-5CF95C74 F909 [Regular]
-5CF95C7E F97E [Trivial][USER]
-5CF95C7F F97F [Trivial][USER]
-5CF95C80 F980 [Trivial][USER]
-5CF95C81 F981 [Trivial][USER]
-5CF95C9F F99F [Trivial][USER]
-5CF95CA0 F9A0 [Trivial][USER]
-5CF95CA1 F9A1 [Trivial][USER]
-5CF95CE0 F9E0 [Trivial][USER]
-5CF95CEF F9EF [Trivial][USER]
-5CF95CF9 F9F9 [Trivial][USER]
-5CF95CFA F9FA [Trivial][USER]
-5CF95CFC F9FC [Trivial][USER]
-5CF95CFD F9FD [Trivial][USER]
-5CF95CFE F9FE [Trivial][USER]
-5CF95CFF F9FF [Trivial][USER]
-5CFA5C00 FA00 [Trivial][USER]
-5CFA5C08 FA08 [Trivial][USER]
-5CFA5C09 FA09 [Trivial][USER]
-5CFA5C0A FA0A [Trivial][USER]
-5CFA5C0D FA0D [Trivial][USER]
-5CFA5C1A FA1A [Trivial][USER]
-5CFA5C22 FA22 [Trivial][USER]
-5CFA5C25 FA5C25 [Regular]
-5CFA5C27 FA27 [Trivial][USER]
-5CFA5C30 FA00 [Regular]
-5CFA5C3F FA3F [Trivial][USER]
-5CFA5C40 FA40 [Trivial][USER]
-5CFA5C5A FA1A [Regular]
-5CFA5C5C FA5C [Regular][USER]
-5CFA5C5F FA5C5F [Regular]
-5CFA5C61 FA61 [Trivial][USER]
-5CFA5C62 FA08 [Regular][USER]
-5CFA5C6E FA0A [Regular]
-5CFA5C72 FA0D [Regular]
-5CFA5C74 FA09 [Regular]
-5CFA5C7E FA7E [Trivial][USER]
-5CFA5C7F FA7F [Trivial][USER]
-5CFA5C80 FA80 [Trivial][USER]
-5CFA5C81 FA81 [Trivial][USER]
-5CFA5C9F FA9F [Trivial][USER]
-5CFA5CA0 FAA0 [Trivial][USER]
-5CFA5CA1 FAA1 [Trivial][USER]
-5CFA5CE0 FAE0 [Trivial][USER]
-5CFA5CEF FAEF [Trivial][USER]
-5CFA5CF9 FAF9 [Trivial][USER]
-5CFA5CFA FAFA [Trivial][USER]
-5CFA5CFC FAFC [Trivial][USER]
-5CFA5CFD FAFD [Trivial][USER]
-5CFA5CFE FAFE [Trivial][USER]
-5CFA5CFF FAFF [Trivial][USER]
-5CFC5C00 FC00 [Trivial][USER]
-5CFC5C08 FC08 [Trivial][USER]
-5CFC5C09 FC09 [Trivial][USER]
-5CFC5C0A FC0A [Trivial][USER]
-5CFC5C0D FC0D [Trivial][USER]
-5CFC5C1A FC1A [Trivial][USER]
-5CFC5C22 FC22 [Trivial][USER]
-5CFC5C25 FC5C25 [Regular]
-5CFC5C27 FC27 [Trivial][USER]
-5CFC5C30 FC00 [Regular]
-5CFC5C3F FC3F [Trivial][USER]
-5CFC5C40 FC40 [Trivial][USER]
-5CFC5C5A FC1A [Regular]
-5CFC5C5C FC5C [Regular][USER]
-5CFC5C5F FC5C5F [Regular]
-5CFC5C61 FC61 [Trivial][USER]
-5CFC5C62 FC08 [Regular][USER]
-5CFC5C6E FC0A [Regular]
-5CFC5C72 FC0D [Regular]
-5CFC5C74 FC09 [Regular]
-5CFC5C7E FC7E [Trivial][USER]
-5CFC5C7F FC7F [Trivial][USER]
-5CFC5C80 FC80 [Trivial][USER]
-5CFC5C81 FC81 [Trivial][USER]
-5CFC5C9F FC9F [Trivial][USER]
-5CFC5CA0 FCA0 [Trivial][USER]
-5CFC5CA1 FCA1 [Trivial][USER]
-5CFC5CE0 FCE0 [Trivial][USER]
-5CFC5CEF FCEF [Trivial][USER]
-5CFC5CF9 FCF9 [Trivial][USER]
-5CFC5CFA FCFA [Trivial][USER]
-5CFC5CFC FCFC [Trivial][USER]
-5CFC5CFD FCFD [Trivial][USER]
-5CFC5CFE FCFE [Trivial][USER]
-5CFC5CFF FCFF [Trivial][USER]
-5CFD5C00 FD00 [Trivial][USER]
-5CFD5C08 FD08 [Trivial][USER]
-5CFD5C09 FD09 [Trivial][USER]
-5CFD5C0A FD0A [Trivial][USER]
-5CFD5C0D FD0D [Trivial][USER]
-5CFD5C1A FD1A [Trivial][USER]
-5CFD5C22 FD22 [Trivial][USER]
-5CFD5C25 FD5C25 [Regular]
-5CFD5C27 FD27 [Trivial][USER]
-5CFD5C30 FD00 [Regular]
-5CFD5C3F FD3F [Trivial][USER]
-5CFD5C40 FD40 [Trivial][USER]
-5CFD5C5A FD1A [Regular]
-5CFD5C5C FD5C [Regular][USER]
-5CFD5C5F FD5C5F [Regular]
-5CFD5C61 FD61 [Trivial][USER]
-5CFD5C62 FD08 [Regular][USER]
-5CFD5C6E FD0A [Regular]
-5CFD5C72 FD0D [Regular]
-5CFD5C74 FD09 [Regular]
-5CFD5C7E FD7E [Trivial][USER]
-5CFD5C7F FD7F [Trivial][USER]
-5CFD5C80 FD80 [Trivial][USER]
-5CFD5C81 FD81 [Trivial][USER]
-5CFD5C9F FD9F [Trivial][USER]
-5CFD5CA0 FDA0 [Trivial][USER]
-5CFD5CA1 FDA1 [Trivial][USER]
-5CFD5CE0 FDE0 [Trivial][USER]
-5CFD5CEF FDEF [Trivial][USER]
-5CFD5CF9 FDF9 [Trivial][USER]
-5CFD5CFA FDFA [Trivial][USER]
-5CFD5CFC FDFC [Trivial][USER]
-5CFD5CFD FDFD [Trivial][USER]
-5CFD5CFE FDFE [Trivial][USER]
-5CFD5CFF FDFF [Trivial][USER]
-5CFE5C00 FE00 [Trivial][USER]
-5CFE5C08 FE08 [Trivial][USER]
-5CFE5C09 FE09 [Trivial][USER]
-5CFE5C0A FE0A [Trivial][USER]
-5CFE5C0D FE0D [Trivial][USER]
-5CFE5C1A FE1A [Trivial][USER]
-5CFE5C22 FE22 [Trivial][USER]
-5CFE5C25 FE5C25 [Regular]
-5CFE5C27 FE27 [Trivial][USER]
-5CFE5C30 FE00 [Regular]
-5CFE5C3F FE3F [Trivial][USER]
-5CFE5C40 FE40 [Trivial][USER]
-5CFE5C5A FE1A [Regular]
-5CFE5C5C FE5C [Regular][USER]
-5CFE5C5F FE5C5F [Regular]
-5CFE5C61 FE61 [Trivial][USER]
-5CFE5C62 FE08 [Regular][USER]
-5CFE5C6E FE0A [Regular]
-5CFE5C72 FE0D [Regular]
-5CFE5C74 FE09 [Regular]
-5CFE5C7E FE7E [Trivial][USER]
-5CFE5C7F FE7F [Trivial][USER]
-5CFE5C80 FE80 [Trivial][USER]
-5CFE5C81 FE81 [Trivial][USER]
-5CFE5C9F FE9F [Trivial][USER]
-5CFE5CA0 FEA0 [Trivial][USER]
-5CFE5CA1 FEA1 [Trivial][USER]
-5CFE5CE0 FEE0 [Trivial][USER]
-5CFE5CEF FEEF [Trivial][USER]
-5CFE5CF9 FEF9 [Trivial][USER]
-5CFE5CFA FEFA [Trivial][USER]
-5CFE5CFC FEFC [Trivial][USER]
-5CFE5CFD FEFD [Trivial][USER]
-5CFE5CFE FEFE [Trivial][USER]
-5CFE5CFF FEFF [Trivial][USER]
-5CFF5C00 FF00 [Trivial][USER]
-5CFF5C08 FF08 [Trivial][USER]
-5CFF5C09 FF09 [Trivial][USER]
-5CFF5C0A FF0A [Trivial][USER]
-5CFF5C0D FF0D [Trivial][USER]
-5CFF5C1A FF1A [Trivial][USER]
-5CFF5C22 FF22 [Trivial][USER]
-5CFF5C25 FF5C25 [Regular]
-5CFF5C27 FF27 [Trivial][USER]
-5CFF5C30 FF00 [Regular]
-5CFF5C3F FF3F [Trivial][USER]
-5CFF5C40 FF40 [Trivial][USER]
-5CFF5C5A FF1A [Regular]
-5CFF5C5C FF5C [Regular][USER]
-5CFF5C5F FF5C5F [Regular]
-5CFF5C61 FF61 [Trivial][USER]
-5CFF5C62 FF08 [Regular][USER]
-5CFF5C6E FF0A [Regular]
-5CFF5C72 FF0D [Regular]
-5CFF5C74 FF09 [Regular]
-5CFF5C7E FF7E [Trivial][USER]
-5CFF5C7F FF7F [Trivial][USER]
-5CFF5C80 FF80 [Trivial][USER]
-5CFF5C81 FF81 [Trivial][USER]
-5CFF5C9F FF9F [Trivial][USER]
-5CFF5CA0 FFA0 [Trivial][USER]
-5CFF5CA1 FFA1 [Trivial][USER]
-5CFF5CE0 FFE0 [Trivial][USER]
-5CFF5CEF FFEF [Trivial][USER]
-5CFF5CF9 FFF9 [Trivial][USER]
-5CFF5CFA FFFA [Trivial][USER]
-5CFF5CFC FFFC [Trivial][USER]
-5CFF5CFD FFFD [Trivial][USER]
-5CFF5CFE FFFE [Trivial][USER]
-5CFF5CFF FFFF [Trivial][USER]
-DROP TABLE t1;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP FUNCTION unescape;
-DROP FUNCTION unescape_type;
-DROP FUNCTION wellformedness;
-DROP FUNCTION mysql_real_escape_string_generated;
-DROP FUNCTION iswellformed;
-DROP TABLE allbytes;
-SET sql_mode = DEFAULT;
-# End of ctype_backslash.inc
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=swe7;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'swe7_swedish_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE ?t1? (
- ?a? varchar(10) COLLATE swe7_swedish_nopad_ci NOT NULL,
- PRIMARY KEY (?a?)
-) ENGINE=MyISAM DEFAULT CHARSET=swe7 COLLATE=swe7_swedish_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'swe7_swedish_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_swedish_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'swe7_swedish_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'swe7_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'swe7_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_swedish_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'swe7_swedish_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'swe7_swedish_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE ?t1? (
- ?a? varchar(10) COLLATE swe7_swedish_nopad_ci NOT NULL,
- PRIMARY KEY (?a?)
-) ENGINE=MEMORY DEFAULT CHARSET=swe7 COLLATE=swe7_swedish_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'swe7_swedish_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_swedish_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'swe7_swedish_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'swe7_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'swe7_swedish_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'swe7_swedish_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'swe7_swedish_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_swedish_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'swe7_swedish_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_swedish_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'swe7_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE ?t1? (
- ?a? varchar(10) COLLATE swe7_nopad_bin NOT NULL,
- PRIMARY KEY (?a?)
-) ENGINE=MyISAM DEFAULT CHARSET=swe7 COLLATE=swe7_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'swe7_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'swe7_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'swe7_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'swe7_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'swe7_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'swe7_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'swe7_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'swe7_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'swe7_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'swe7_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'swe7_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'swe7_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'swe7_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'swe7_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE ?t1? (
- ?a? varchar(10) COLLATE swe7_nopad_bin NOT NULL,
- PRIMARY KEY (?a?)
-) ENGINE=MEMORY DEFAULT CHARSET=swe7 COLLATE=swe7_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'swe7_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'swe7_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'swe7_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'swe7_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'swe7_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'swe7_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'swe7_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'swe7_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'swe7_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'swe7_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'swe7_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'swe7_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'swe7_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'swe7_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'swe7_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_tis620.result b/mysql-test/r/ctype_tis620.result
deleted file mode 100644
index cf66c81c647..00000000000
--- a/mysql-test/r/ctype_tis620.result
+++ /dev/null
@@ -1,4413 +0,0 @@
-drop table if exists t1;
-SET @pl0= _tis620 0x000102030405060708090A0B0C0D0E0F;
-SET @pl1= _tis620 0x101112131415161718191A1B1C1D1E1F;
-SET @pl2= _tis620 0x202122232425262728292A2B2C2D2E2F;
-SET @pl3= _tis620 0x303132333435363738393A3B3C3D3E3F;
-SET @pl4= _tis620 0x404142434445464748494A4B4C4D4E4F;
-SET @pl5= _tis620 0x505152535455565758595A5B5C5D5E5F;
-SET @pl6= _tis620 0x606162636465666768696A6B6C6D6E6F;
-SET @pl7= _tis620 0x707172737475767778797A7B7C7D7E7F;
-SET @pl8= _tis620 0x808182838485868788898A8B8C8D8E8F;
-SET @pl9= _tis620 0x909192939495969798999A9B9C9D9E9F;
-SET @plA= _tis620 0xA0A1A2A3A4A5A6A7A8A9AAABACADAEAF;
-SET @plB= _tis620 0xB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBF;
-SET @plC= _tis620 0xC0C1C2C3C4C5C6C7C8C9CACBCCCDCECF;
-SET @plD= _tis620 0xD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF;
-SET @plE= _tis620 0xE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF;
-SET @plF= _tis620 0xF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF;
-SELECT hex(@u0:=convert(@pl0 using utf8));
-hex(@u0:=convert(@pl0 using utf8))
-000102030405060708090A0B0C0D0E0F
-SELECT hex(@u1:=convert(@pl1 using utf8));
-hex(@u1:=convert(@pl1 using utf8))
-101112131415161718191A1B1C1D1E1F
-SELECT hex(@u2:=convert(@pl2 using utf8));
-hex(@u2:=convert(@pl2 using utf8))
-202122232425262728292A2B2C2D2E2F
-SELECT hex(@u3:=convert(@pl3 using utf8));
-hex(@u3:=convert(@pl3 using utf8))
-303132333435363738393A3B3C3D3E3F
-SELECT hex(@u4:=convert(@pl4 using utf8));
-hex(@u4:=convert(@pl4 using utf8))
-404142434445464748494A4B4C4D4E4F
-SELECT hex(@u5:=convert(@pl5 using utf8));
-hex(@u5:=convert(@pl5 using utf8))
-505152535455565758595A5B5C5D5E5F
-SELECT hex(@u6:=convert(@pl6 using utf8));
-hex(@u6:=convert(@pl6 using utf8))
-606162636465666768696A6B6C6D6E6F
-SELECT hex(@u7:=convert(@pl7 using utf8));
-hex(@u7:=convert(@pl7 using utf8))
-707172737475767778797A7B7C7D7E7F
-SELECT hex(@u8:=convert(@pl8 using utf8));
-hex(@u8:=convert(@pl8 using utf8))
-C280C281C282C283C284C285C286C287C288C289C28AC28BC28CC28DC28EC28F
-SELECT hex(@u9:=convert(@pl9 using utf8));
-hex(@u9:=convert(@pl9 using utf8))
-C290C291C292C293C294C295C296C297C298C299C29AC29BC29CC29DC29EC29F
-SELECT hex(@uA:=convert(@plA using utf8));
-hex(@uA:=convert(@plA using utf8))
-EFBFBDE0B881E0B882E0B883E0B884E0B885E0B886E0B887E0B888E0B889E0B88AE0B88BE0B88CE0B88DE0B88EE0B88F
-SELECT hex(@uB:=convert(@plB using utf8));
-hex(@uB:=convert(@plB using utf8))
-E0B890E0B891E0B892E0B893E0B894E0B895E0B896E0B897E0B898E0B899E0B89AE0B89BE0B89CE0B89DE0B89EE0B89F
-SELECT hex(@uC:=convert(@plC using utf8));
-hex(@uC:=convert(@plC using utf8))
-E0B8A0E0B8A1E0B8A2E0B8A3E0B8A4E0B8A5E0B8A6E0B8A7E0B8A8E0B8A9E0B8AAE0B8ABE0B8ACE0B8ADE0B8AEE0B8AF
-SELECT hex(@uD:=convert(@plD using utf8));
-hex(@uD:=convert(@plD using utf8))
-E0B8B0E0B8B1E0B8B2E0B8B3E0B8B4E0B8B5E0B8B6E0B8B7E0B8B8E0B8B9E0B8BAEFBFBDEFBFBDEFBFBDEFBFBDE0B8BF
-SELECT hex(@uE:=convert(@plE using utf8));
-hex(@uE:=convert(@plE using utf8))
-E0B980E0B981E0B982E0B983E0B984E0B985E0B986E0B987E0B988E0B989E0B98AE0B98BE0B98CE0B98DE0B98EE0B98F
-SELECT hex(@uF:=convert(@plF using utf8));
-hex(@uF:=convert(@plF using utf8))
-E0B990E0B991E0B992E0B993E0B994E0B995E0B996E0B997E0B998E0B999E0B99AE0B99BEFBFBDEFBFBDEFBFBDEFBFBD
-SELECT hex(convert(@u0 USING tis620));
-hex(convert(@u0 USING tis620))
-000102030405060708090A0B0C0D0E0F
-SELECT hex(convert(@u1 USING tis620));
-hex(convert(@u1 USING tis620))
-101112131415161718191A1B1C1D1E1F
-SELECT hex(convert(@u2 USING tis620));
-hex(convert(@u2 USING tis620))
-202122232425262728292A2B2C2D2E2F
-SELECT hex(convert(@u3 USING tis620));
-hex(convert(@u3 USING tis620))
-303132333435363738393A3B3C3D3E3F
-SELECT hex(convert(@u4 USING tis620));
-hex(convert(@u4 USING tis620))
-404142434445464748494A4B4C4D4E4F
-SELECT hex(convert(@u5 USING tis620));
-hex(convert(@u5 USING tis620))
-505152535455565758595A5B5C5D5E5F
-SELECT hex(convert(@u6 USING tis620));
-hex(convert(@u6 USING tis620))
-606162636465666768696A6B6C6D6E6F
-SELECT hex(convert(@u7 USING tis620));
-hex(convert(@u7 USING tis620))
-707172737475767778797A7B7C7D7E7F
-SELECT hex(convert(@u8 USING tis620));
-hex(convert(@u8 USING tis620))
-808182838485868788898A8B8C8D8E8F
-SELECT hex(convert(@u9 USING tis620));
-hex(convert(@u9 USING tis620))
-909192939495969798999A9B9C9D9E9F
-SELECT hex(convert(@uA USING tis620));
-hex(convert(@uA USING tis620))
-FFA1A2A3A4A5A6A7A8A9AAABACADAEAF
-SELECT hex(convert(@uB USING tis620));
-hex(convert(@uB USING tis620))
-B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBF
-SELECT hex(convert(@uC USING tis620));
-hex(convert(@uC USING tis620))
-C0C1C2C3C4C5C6C7C8C9CACBCCCDCECF
-SELECT hex(convert(@uD USING tis620));
-hex(convert(@uD USING tis620))
-D0D1D2D3D4D5D6D7D8D9DAFFFFFFFFDF
-SELECT hex(convert(@uE USING tis620));
-hex(convert(@uE USING tis620))
-E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF
-SELECT hex(convert(@uF USING tis620));
-hex(convert(@uF USING tis620))
-F0F1F2F3F4F5F6F7F8F9FAFBFFFFFFFF
-SET NAMES tis620;
-CREATE TABLE t1 (
-recid int(11) NOT NULL auto_increment,
-dyninfo text,
-PRIMARY KEY (recid)
-) ENGINE=MyISAM CHARACTER SET tis620;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `recid` int(11) NOT NULL AUTO_INCREMENT,
- `dyninfo` text DEFAULT NULL,
- PRIMARY KEY (`recid`)
-) ENGINE=MyISAM DEFAULT CHARSET=tis620
-INSERT INTO t1 VALUES (1,'color=\"STB,NPG\"\r\nengine=\"J30A13\"\r\nframe=\"MRHCG1640YP4\"\r\ngrade=\"V6\"\r\nmodel=\"ACCORD\"\r\nmodelcode=\"CG164YEN\"\r\ntype=\"VT6\"\r\n');
-INSERT INTO t1 VALUES (2,'color=\"HTM,NPG,DEG,RGS\"\r\nengine=\"F23A5YP1\"\r\nframe=\"MRHCF8640YP3\"\r\ngrade=\"EXi AT\"\r\nmodel=\"ACCORD\"\r\nmodelcode=\"CF864YE\"\r\ntype=\"EXA\"\r\n');
-SELECT DISTINCT
-(IF( LOCATE( 'year=\"', dyninfo ) = 1,
-SUBSTRING( dyninfo, 6+1, LOCATE('\"\r',dyninfo) - 6 -1),
-IF( LOCATE( '\nyear=\"', dyninfo ),
-SUBSTRING( dyninfo, LOCATE( '\nyear=\"', dyninfo ) + 7,
-LOCATE( '\"\r', SUBSTRING( dyninfo, LOCATE( '\nyear=\"', dyninfo ) +7 )) - 1), '' ))) AS year
-FROM t1
-HAVING year != '' ORDER BY year;
-year
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1
-(
-name varchar(50) NOT NULL default '',
-excelorder int(11) NOT NULL default '0',
-neworder int(11) NOT NULL default '0'
-) ENGINE=MyISAM DEFAULT CHARSET=tis620;
-INSERT INTO `t1` VALUES ('+45 BRETT',4,1),('+55 BRETT',5,2),('+56 BRETT',6,3),('-.55 BRETT',2,4),('-45 BRETT',8,5),('-55 BRETT',13,6),('.-55 BRETT',3,7),('.55 BRETT',1,8),('45 BRETT',7,9),('5 5 BRETT3',9,10),('5 5 BRETT2',10,11),('5 5 BRETT1',11,12),('5-5 BRETT',14,13),('55 BRETT',12,14),('55+ BRETT',17,15),('55- BRETT',15,16),('55. BRETT',16,17),('Ã.µË­Ô§ ¾Íã¨',1630,1630),('ÂÃç¤ì',1599,1599),('ÃÁÂì¨ÃÃÂì',1638,1638),('àÁà¨ÍÃìÍصÊÒË¡ÃÃÁä·Â (1989)',1583,1583),('àÁâ·ÃʻԹ¹Ôè§',1586,1586),('àÃÇѵ',1706,1706),('àÂ繨ԵÃ',1623,1623),('àÂ繨Եµì',1622,1622),('àÁÉÂÒ',1591,1591),('àÁÉÔ³Õ',1592,1592),('áÁé¹ÁÒµÃ',1595,1595),('àÂÒÇàÃÈ',1627,1627),('àÂÒÇÀÒ',1626,1626),('àÂÒÇÅѡɳì',1628,1628),('àÂÒÇ´Õ',1624,1624),('àÂÒǾÒ',1625,1625),('àÃÔ§ÃÐÇÕ',1708,1708),('àÃԧķ¸Ôì',1709,1709),('àÃÔ§·ÔÇÒ',1707,1707),('ÀÃÒ´Ã',1496,1496),('àâ­Ò',1702,1702),('âç§Ò¹àËÅç¡¡Ãا෾Ï',1712,1712),('âè¹ì»ÃÐàÊÃÔ°',1713,1713),('àóÙ',1703,1703),('àÁ´Ô¤ÃÒ¿·ì',1584,1584),('àÁµµÒ',1585,1585),('áÁ··ÕàÃÕÂÅ¡ÃØê» ¨Ó¡Ñ´',1594,1594),('àÁ¸Ò',1587,1587),('àÁ¸Õ',1590,1590),('àÁ¸ÒÇÕ',1588,1588),('â¸Թ',1629,1629),('àÁ¸Ô¹Õ',1589,1589),('Áâ¹',1553,1553),('Á⹪',1554,1554),('àþᾤ à·Ã´´Ôé§',1704,1704),('áþᾤ ¤Í¹ÊµÃѤªÑè¹',1711,1711),('àþᾤ¤Í¹ÊµÃѤªÑè¹',1705,1705),('àÃ×ͧÂÈ',1710,1710),('àÁ×ͧ·Í§',1593,1593),('ÁÂØÃÕ',1555,1555),('áÇÇÇÔÀÒ',1952,1952),('áÇÇÇ´Õ',1951,1951),('àÇèÂà©Ô¹ÍÔ¹´ÑÊàµÃÕ¹',1949,1949),('àÇÍÃìâ¡é ·ÃҹʻÍÃìµ',1950,1950),('ÀÇÔ¹',1497,1497),('Ãǧ·Í§',1639,1639),('ÁÐÅÔÇÑÅÂì',1560,1560),('ÃеÃÕ',1643,1643),('ÃоԹ·Ãì',1644,1644),('ÃоվÃ',1645,1645),('ÃоվÃó',1646,1646),('ÃоվÅ',1647,1647),('àËÁÇ´Õ',2452,2452),('âÊÃÊ',2438,2438),('àÈÃÉ°¸Ã',2050,2050),('àÈÃÉ°¾§Éì',2051,2051),('âÊÃѨ',2439,2439),('ÁËÀÑ®',1558,1558),('àÊÁÒ',2410,2410),('àÊÃÕ',2413,2413),('âÊÀÒ',2432,2432),('âÊÀÕ',2435,2435),('àÊÃÔÁÈÑ¡´Ôì',2412,2412),('àÊÃÔÁäªÂ¤éÒ¡ÃдÒÉ',2411,2411),('àËÃÕ­',2455,2455),('âÊÀÒ¾Ãó',2434,2434),('âÊÀÒ¾¨¹Õ',2433,2433),('âÊèԵ',2436,2436),('âÊÀ³',2431,2431),('âÈôÒ',2052,2052),('âÊôÒ',2437,2437),('àËÁ×͹¢ÇÑ­',2453,2453),('àËÁ×͹¾¹Í',2454,2454),('àÊÇÂ',2414,2414),('áÊǧ',2430,2430),('Áéǹáµé',1557,1557),('ÃÊÊؤ¹¸ì',1641,1641),('âÊÌÊ',2440,2440),('ÃÈÑ¡´Ôì',1640,1640),('ÁËÒÃÒª',1559,1559),('àÊÒÇÅѡɳì',2420,2420),('àÊÒǤ¹¸ì',2415,2415),('àÊÒdzÕ',2416,2416),('àÊÒdzÕÂì',2417,2417),('àÊÒǹÕÂì',2419,2419),('àÊÒǹԵÂì',2418,2418),('áËÅÁ·Í§ÊË¡ÒÃ',2456,2456),('àÊ¡ÊÃÃ',2405,2405),('àÊ¡ÊÃäì',2406,2406),('áʧÃÐÇÕ',2424,2424),('Âè§àΧÇѲ¹Ò¡ÒþÔÁ¾ì',1598,1598),('áʧà´×͹',2422,2422),('áʧªÑÂ',2421,2421),('áʧ·Í§',2423,2423),('àʶÕÂÃ',2407,2407),('áʹÃÑ¡',2428,2428),('áʹÂÒ¡Ã',2427,2427),('áʹÀ¾',2426,2426),('àʹËì',2408,2408),('áʹÊØ¢',2429,2429),('àʹÕÂì',2409,2409),('áʹ·ÇÕà·ç¡«ìä·Åì',2425,2425),('àÍ.à¨.¾ÅÒÊ·ì',2676,2676),('âÍàÃÕÂÅ·ÍÅ ¿Øé´',2716,2716),('áÍÃì«Õ à¿Ã· ¿ÍÃìàÇÔ´àµÍÃì',2712,2712),('áÍÃì¾Õà¾ÔÅÍÔ¹àµÍÃì๪Ñè¹á¹Å',2713,2713),('ÃÍÂÑÅàÍ繨Ôà¹ÕÂÃÔè§',1642,1642),('àÍàªÕÂàÊÃÔÁ¡Ô¨ÅÔÊ«Ôè§',2687,2687),('àÍçÁ .«Õ.¾ÕÅÔÊ«Ôè§',2690,2690),('àÍçÁ «Õ ÍÐâ¡Ãà¤ÁÕ¤ÍÅ',2691,2691),('àÍçÁ.àÍçÁ.«Õ.â»ÅÔàÁÍÃì',2693,2693),('àÍçÁ.«Õ.¾Õ. ÅÔÊ«Ôè§',2692,2692),('àÍçÁ«ÕÊÂÒÁ âŨÕʵԤÊì',2694,2694),('âÍÇÍÐËÅÑè¾ÒÃì·à«ç¹àµÍÃì',2717,2717),('àÍç¡«Õà«ÅàŹ¿ÍÃìÁ',2678,2678),('àÍçª àÍçÁ «Õ â»ÅÕàÁÍÃì',2684,2684),('àÍçª.àÍçÁ.«Õ.â»ÅÔàÁÍÃì',2685,2685),('àÍçª.àÍçÁ.«Õ.â»ÅÕàÁÍÃì (º¨¡.)',2686,2686),('àÍç¹ ´Õ ठ(»ÃÐà·Èä·Â)',2688,2688),('àÍÊ àÍÊ à¤ ¡Å¡ÒÃ',2697,2697),('àÍÊ à¨ ¾ÅÒÊ·ì á͹´ì ᾤ',2695,2695),('àÍÊ ¾Õ Ê᡹',2696,2696),('àÍÊ.àÍçÁ.ÇÕ ÊË¡ÒÃ',2701,2701),('àÍÊ.àÍÊ.ठ¡Å¡ÒÃ',2702,2702),('àÍÊ.àÍÊ.à¤.¡Å¡ÒÃ',2703,2703),('àÍÊ.àÍÊ.ÍÔ¹¡Íµ ÍÅÙÁÔà¹ÕÂÁ1999',2704,2704),('àÍÊ.à¤.ÍÕ.',2698,2698),('àÍÊ.«Õ.¾Õ.ᾤ',2699,2699),('àÍÊ.¾Õ.¹ÔµµÔé§',2700,2700),('áÍÊષ¾ÅÑÊ',2715,2715),('àÍÊÇÕ¹Ô··Ñ¹¾ÃÔ«ÔªÑè¹',2705,2705),('áÍÅ¿èÒ â»Ãà«Ê«Ôè§',2714,2714),('àÍ¡ÃÒª',2679,2679),('àÍ¡ÃÔ¹·Ãì',2680,2680),('àÍ¡ÊÔ·¸Ôì',2681,2681),('àÍ¡ÍÃö',2683,2683),('à͡͹ѹµì',2682,2682),('àÍ¡ªÑÂ',2677,2677),('àΧà¨ÃÔ­ªÑ ¡ÃØê» ÍÔ¹´ÑÊàµÃÕÂÅ',2725,2725),('ÂʹྪÃ',1600,1600),('á͹¹Ò',2709,2709),('á͹¹ÒÃÕ',2710,2710),('áͺºÕà¤ÃÊ·ì(»ÃÐà·Èä·Â)',2711,2711),('àÍ¿ ÍÕ «Ô¤ÅÔ¤ (¡Ãا෾)',2689,2689),('àÍ×éÍÁ¾Ã',2707,2707),('àÍ×éÍÍÒÃÕ',2708,2708),('àÍ×é;ѹ¸Øì',2706,2706),('ÃÑÈÁÕ',1674,1674),('ÃÑÈÁÕÀÑÊÊÃ',1675,1675),('ÀÑÊÇÃó',1511,1511),('ÀÑÊÅÔ¹',1510,1510),('ÁÑÅÅÔ¡Ò',1564,1564),('ÃÑ¡ÈÑ¡´Ôì',1649,1649),('ÃÑ¡ÉÔµÀÑ·Ã',1650,1650),('ÀÑ¡´Õ',1498,1498),('ÃÑ¡´Õ',1648,1648),('ÀѤ¨ÔÃÒ',1499,1499),('ÃѧÊÃäì',1651,1651),('ÃѧÊѹµì',1652,1652),('ÃѧÊÔÁÒ',1653,1653),('Áѧ¡Ãä·ÂʵÕźÒÃì',1561,1561),('ÃѪà¡ÅéÒ',1654,1654),('ÃѪ®Ò',1655,1655),('ÃѪ®Ò¾Ã',1656,1656),('ÃѪ´Ò',1657,1657),('ÃѪ¹Õ',1658,1658),('ÃѪ¹Õ¡Ã',1659,1659),('ÃѪ¹Õ¾Ã',1660,1660),('ÃÑ°ÊØ´Ò',1662,1662),('ÃÑ°¾§Éì',1661,1661),('Àѳ±ÔÃÒ',1500,1500),('Áѳ±¹Ò',1562,1562),('ÃѵÔÂÒ',1672,1672),('ÃѵÔÂÒÀóì',1673,1673),('Ãѵ³Ò',1663,1663),('ÃѵµÔÂÒ',1665,1665),('ÃѵµªÑÂ',1664,1664),('Ãѵ¹Àóì',1667,1667),('Ãѵ¹Á³Õ',1668,1668),('Ãѵ¹Ò',1669,1669),('Ãѵ¹ÒÀóì',1671,1671),('Ãѵ¹Ò¾Ã',1670,1670),('Ãѵ¹ªÑÂ',1666,1666),('ÀÑ·ÃÀÃ',1505,1505),('ÀÑ·ÃÃѧÊÕ',1506,1506),('ÀÑ·ÃÒÀóì',1508,1508),('ÀÑ·ÃÔ¹·Ãì',1509,1509),('ÀÑ·ÃÄ´Õ',1507,1507),('Àѷ÷ÔÃÒ',1501,1501),('ÀѷþÃ',1503,1503),('ÀѷþÅ',1504,1504),('Àѷþ§Èì',1502,1502),('ÁÑ·¹Ò',1563,1563),('Âѹ áÍÅ à¤âÂÊ',1601,1601),('ÃÒàÁÈÃì',1681,1681),('ÁÒÃÔÉÒ',1572,1572),('ÃÒÂÕ¹',1682,1682),('ÃÒહ',1678,1678),('ÀÒôÕ',1521,1521),('ÀÔôÕ',1531,1531),('ÁÒ⹪³ì',1570,1570),('ÁÒâ¹·',1571,1571),('ÀÒÇÔ³Õ',1524,1524),('ÀÒÇÔ¹',1525,1525),('ÀÒÇÔ¹Õ',1526,1526),('ÀÒǹÒ',1522,1522),('ÀÒǾѹ¸¹ì',1523,1523),('ÀÒÉÔµÒ',1527,1527),('ÂÔè§ÇÃó',1602,1602),('ÁÔÅàŹà¹ÕèÂÁ âÍ.àÍ 2000',1578,1578),('ÁÒÅÑÂ',1573,1573),('ÁÒÅÕ',1575,1575),('ÁÒÅÕÇÃó',1576,1576),('ÁÒÅÔ¹Õ',1574,1574),('ÀÒ¡Ã',1512,1512),('ÀÒ¤ÀÙÁÔ',1513,1513),('ÀÔ¨ÔµÃÒ',1528,1528),('ÁÒªÍÃì¡ÇÒ¹',1565,1565),('ÃҪѹÂì',1676,1676),('ÃÒªÒÍÙªÔâ¹',1677,1677),('ÀÔ­â­',1530,1530),('ÀÔ­­¾Ñ¡µÃì',1529,1529),('ÀÒ³Õ',1514,1514),('ÁÒ³Õ',1566,1566),('ÃÒ³Õ',1679,1679),('ÀÒ³Ø',1515,1515),('ÀÒ³ØÇÃó',1517,1517),('ÀҳؾÅ',1516,1516),('ÃÒµÃÕ',1680,1680),('ÁÔµ·ÔÃÒ',1577,1577),('ÁÒ¹Ð',1568,1568),('ÁÒ¹ÔµÂì',1569,1569),('ÁÒ¹¾',1567,1567),('ÀÒ¹ØÇѲ¹ì',1518,1518),('ÀÒ¹ØÇѵÃ',1519,1519),('ÀÒ¾Ã',1520,1520),('ÁÕ¾Å',1579,1579),('ÀÙÃÔÇÃò¡ì',1535,1535),('ÀÙÁÔ°Ò¹',1533,1533),('ÀÙÃÔ¾§Èì',1534,1534),('ÂÙà¹Õè¹á¡êÊá͹´ìàÅÁÔ¤ÑÅÊì',1621,1621),('ÀÙàºÈ',1532,1532),('ÃÙàºÕÂÍصÊÒË¡ÃÃÁ',1701,1701),('ÁÙËÐÁд×ÍàÃÐ',1582,1582),('ÀÙÉÔµ',1536,1536),('ÂÙ¹ÔÅÕàÇÍÃì ä·Â âÎÅ´Ôé§Êì',1618,1618),('ÂÙ¹ÔÅÕàÇÍÃìä·Â âÎÅ´Ôé§Êì',1619,1619),('ÂÙ¹Õ¤ ÍÍÃì¤Ô´',1620,1620),('âÅËСԨʵÕÅ',1744,1744),('àÅÍÊÃäì',1739,1739),('àÅÍÈÑ¡´Ôì',1738,1738),('àÅÍÊØ¢',1740,1740),('àÅͪÑÂ',1737,1737),('àÅÔÈÈÑ¡´Ôì',1742,1742),('àÅÔÈÊÒÁÒö â¸Ò',1743,1743),('àÅÔȪÑÂ',1741,1741),('ÁÅÄ´Õ',1556,1556),('â¡àÁÈ',206,206),('â¡àÇȹì',211,211),('à¡ÃÕ§§ÍÔ¹àµÍÃì๪Ñè¹á¹Å',179,179),('à¡ÃÕ§ÈÑ¡´Ôì',180,180),('à¡ÃÕ§ä¡Ã',177,177),('à¡ÃÕ§ªÑÂ',178,178),('à¡ÃÔ¡',174,174),('à¡ÃÔ¡ä¡Ã',175,175),('à¡ÃÔ¡¾§Éì',176,176),('Á¡Ãҹѹ·ì',1537,1537),('â¡Ážѹ¸ì',205,205),('â¡ÇÔ·',208,208),('â¡ÇÔ·Âì',209,209),('â¡ÇÔ¹',210,210),('à¡ç¨¾ÔÃس',170,170),('à¡ÉÁ',190,190),('à¡ÊÃ',196,195),('à¡ÉÁÊѹµì',191,191),('à¡ÊÃì',195,196),('à¡ÈÃÒ',182,182),('à¡ÉÃÒ',192,192),('à¡ÉÃÕ',193,193),('à¡ÈÃÔ¹·Ãì',183,183),('á¡éÇ',203,203),('á¡éÇã¨',204,204),('à¡ÈÇÅÕ',184,184),('à¡ÈÈÔÃÔ',185,185),('à¡ÈÊØ´Ò',186,186),('à¡ÉÕÂÃ',194,194),('à¡ÈÔ¹Õ',187,187),('â¡ÊÔ¹·Ãì',213,213),('â¡ÈÅ',212,212),('à¡È¡ØÅÀÒ',181,181),('à¡É³Õ',188,188),('à¡É´Ò',189,189),('à¡ÕÂõÔ',197,197),('à¡ÕÂõÔÊÇÑÊ´Ôì',201,201),('à¡ÕÂõÔÈÑ¡´Ôì',200,200),('à¡ÕÂõԻÀÒ',198,198),('à¡ÕÂõԾ§Éì',199,199),('â¡ÅºÍÅ ¤Í¹à¹ç¤ªÑè¹Êì',207,207),('ࡪÒ',171,171),('ࡳԡÒ',172,172),('ࡵØÁ³Õ',173,173),('à¡×éÍ¡ÙÅ',202,202),('á¢ä¢',235,235),('ठÊËÒÂÍÔÁà»ê¡«ì',262,262),('à¤.«Õ.¾Õ. áÁªªÕ¹à¹ÍÃÕè',263,263),('â¤Ãà¹Ê (ä·ÂᏴì)',270,270),('à¤Ã×ÍÇÑÅÂì',267,267),('á¤Ð¨éÍÂ',269,269),('षշÕÅÔÊ«Ôè§',264,264),('ह áÁç¡«ì (»ÃÐà·Èä·Â)',266,266),('ह áÁ¡«ì (»ÃÐà·Èä·Â)',265,265),('᤹¹Ù ÍÔ¹àµÍÃìà·Ã´',268,268),('â¦ÉÔµ',271,271),('§ÂØ·¸',1597,1597),('à§Ô¹·Ø¹à¡ÕÂõԹҤԹ',274,274),('Á§¡Ø®Ãѵ¹ì',1538,1538),('Á§¤Å',1539,1539),('Á§¤Å¡Òûѡ',1540,1540),('à¨ÃÕ§',409,409),('à¨ÃÔ­',407,407),('à¨ÃÔ­ªÑÂËÁéÍá»Å§ä¿¿éÒ',408,408),('á¨èÁ',414,414),('ã¨ÊÇÇäì',415,415),('à¨éÒ¾ÃÐÂÒÁÒÃì¤',411,411),('à¨É®Ò',410,410),('à¨ÕÂÁ¨Ôµ',413,413),('à¨ÔÁªÑÂ',412,412),('ਵ¹ì',401,401),('ਹ',402,402),('ਹà¹ÍÃÑÅ乫ì (»ÃÐà·Èä·Â)',405,405),('ਹÇÔ·Âì',406,406),('è¹Ò',1631,1631),('ਹ¨ÔÃÒ',403,403),('ਹµì³Ã§¤ì',404,404),('â©ÁÊØ´Ò',436,436),('â©ÁÅ´Ò',435,435),('à©Ô¹',434,434),('à©ÅÔÁ',428,428),('à©ÅÕÂÇ',433,433),('à©ÅÔÁ¢ÇÑ­',429,429),('à©ÅÔÁªÑÂ',430,430),('à©ÅÔÁªÒµÔ',431,431),('à©ÅÔÁ¾Ñ¹¸Øì',432,432),('àªÉ°Ò',555,555),('àªÍÃÔè§-¾ÅÒÇ á͹ÔÁÑÅ àÎéŪ',556,556),('àªÍÃÔè§-¾ÅÒÇá͹ÔÁÑÅàÎçŸ',557,557),('àªÕ§àΧ¡ÒêèÒ§',563,563),('àªÒÇÅÔµ',559,559),('àªÒǹҭ',558,558),('àªÕèÂǪҭ ÍÔ¹´ÑÊ·ÃÕè (1989)',564,564),('àªÕèÂǪҭÍÔ¹´ÑÊ·ÃÕ (1989)',565,565),('àªÕèÂǪҭÍÔ¹´ÑÊ·ÃÕè (1989)',566,566),('àªÕèÂǪҭÍÔ¹´ÑÊ·ÃÕè(1989)',567,567),('àªÔ´ÈÑ¡´Ôì',562,562),('àªÔ´¨Ôµµì',560,560),('àªÔ´ªÑÂ',561,561),('⪤',568,568),('⪤ªÑÂ',569,569),('ય°¡Ã',554,554),('⪵Ô',570,570),('⪵ÔÃÊ',571,571),('⪵ÔÇظ',572,572),('à«ÕÂÁà¡ÕÂÇ',589,589),('à«ÒÐ',588,588),('óç¤ì',1632,1632),('Á³à±ÕÂÃ',1546,1546),('Á³ÕÃѵ¹ì',1547,1547),('Á³°Ô´Ò',1541,1541),('Á³±Ò',1545,1545),('Á³±ÅÕ',1544,1544),('Á³±¹ì¡Ò­¨¹ì',1542,1542),('Á³±¹Ô¨',1543,1543),('â´Á',708,708),('à´ÍФÇÍÅÔµäÇÃì',705,705),('ôÒ',1633,1633),('à´ª',703,703),('à´ªÒ',704,704),('à´×͹à¾ç­',707,707),('à´×͹¹ÀÒ',706,706),('àµçÁà´ª',720,720),('ãµé à«é§ «Ñ¹',723,723),('àµ×͹ã¨',721,721),('àµ×͹µÒ',722,722),('à¶ÅÔ§ÈÑ¡´Ôì',734,734),('à·ÇÒ',802,802),('à·ÇÕ',803,803),('à·Ô´ä·',804,804),('à·¾',799,799),('෾ķ¸Ôì',801,801),('à·¾¾ÔºÙÅ',800,800),('Á¹ÑÊ',1550,1550),('Á¹ÑÊÇÕ',1551,1551),('à¹ÒÇÃѵ¹ì',1043,1043),('ùԮ°Ò',1634,1634),('Á¹Ù­',1552,1552),('Á¹µÃÕ',1549,1549),('๵ôÒÇ',1042,1042),('Á¹µìªÑÂ',1548,1548),('àºç­ÇÃó',1117,1117),('àºç·à·ÍÃì äÅ¿ì',1118,1118),('ອ¨ÁÒ',1114,1114),('ອ¨ÇÃó',1116,1116),('ອ¨ÅÑ¡É³ì ¾ÃÔé¹µÔé§',1115,1115),('ອ¨¾Ã',1113,1113),('à»ÃÁ',1265,1265),('à»ÃÁÈÃÕ',1268,1268),('à»ÃÁÊÔ·¸Ôì',1269,1269),('à»ÃÁÄ´Õ',1267,1267),('à»ÃÁ»ÃÐÀÒ',1266,1266),('à»à»ÍÃìÅÔ¿',1264,1264),('à»ÕèÂÁÊØ¢',1270,1270),('á»Å¹âÁ·Ô¿',1271,1271),('à¼Ô§',1291,1291),('༴ç¨',1290,1290),('á¾ÃÇ',1475,1475),('á¾ÃÇÒ',1476,1476),('à¾ÃÔÁàÁ¹¹Ôª ÍâÃáÁµÔê¡Êì ¾Õ·ÕÍÕ ÅÔÁÔàµç´',1468,1468),('à¾ç§ ¿Ù ËÅÔ¹',1456,1456),('à¾çªÃì',1457,1457),('à¾ç­ÈÃÕ',1467,1467),('à¾ç­¨Ñ¹·Ãì',1461,1461),('à¾ç­·Ô¾Âì',1462,1462),('à¾ç­¹ÀÒ',1463,1463),('à¾ç­»ÃÐÀÒ',1464,1464),('à¾ç­¼¡Ò',1465,1465),('à¾ç­¾ÔäÅ',1466,1466),('þÕÀÑ·Ã',1637,1637),('à¾Õ§¾Ã',1471,1471),('þվÃ',1635,1635),('þվѲ¹ì',1636,1636),('à¾ÅԹĴÕ',1470,1470),('à¾ÅÔ¹¨Ôµµì',1469,1469),('ྪÃÃѵ¹ì',1458,1458),('ྪÃÔ¹·Ãì',1460,1460),('ྪÃÅ´Ò',1459,1459),('á¾´´Ôé§ (ä·ÂᏴì)',1472,1472),('á¾´´Ôé§(ä·ÂᏴì)',1473,1473),('á¾¹´éÒ à»à»ÍÃì ¤ÒÃìµÑ¹Ê',1474,1474),('á¿ÃìàÇÂì ÍÔ¹àµÍÃì๪Ñè¹á¹Å',1495,1495),('á¿Ã§¤ì',1494,1494),('Ã×è¹ÇÃÒËì',1683,1683),('ÂØÀÒÀóì',1615,1615),('ÂØÀÒ¾Ã',1614,1614),('ÂØÇÃÕ',1617,1617),('ÂØÇ´Õ',1616,1616),('ÃØËйÒ',1700,1700),('ÃØé§',1684,1684),('ÃØè§âè¹ì',1693,1693),('ÃØè§âè¹ì¢¹Êè§',1694,1694),('ÃØè§àÃ×ͧ',1692,1692),('ÃØè§ÃÑÈÁÕ',1691,1691),('ÃØè§ÃѪ¹Õ',1689,1689),('ÃØè§Ãѵ¹ì',1690,1690),('ÃØè§à¾ªÃ',1688,1688),('ÃØè§ÇÔ·Âì',1696,1696),('ÃØè§ÍÃس',1697,1697),('ÃØé§ÅÒÇÃó',1695,1695),('ÃØ觷ÔÇÒ',1686,1686),('ÃØ觷ԾÂì',1685,1685),('ÃØ觹ÀÒ',1687,1687),('ÁØ¢',1580,1580),('ÂؤžÃ',1603,1603),('ÃبÒ',1698,1698),('ÃبÒÀÒ',1699,1699),('ÂØ´Ò',1604,1604),('ÁØ·ÔµÒ',1581,1581),('ÂØ·¸Â§',1607,1607),('ÂØ·¸¹Ò',1605,1605),('ÂØ·¸¹ÒÇÕ',1606,1606),('ÂظÒÁÒµÂì',1608,1608),('Âعâ¡Ð',1609,1609),('ÂؾÒ',1610,1610),('ÂؾÒÇ´Õ',1612,1612),('ÂؾԹ',1613,1613),('ÂؾҾÃ',1611,1611),('ÇÃÃѪ',1792,1792),('ÇÃÁÅ',1768,1768),('ÇÃóÀóì',1785,1785),('ÇÃóÀÒ',1786,1786),('ÇÃóÀ¾',1784,1784),('ÇÃóà¾ç­',1783,1783),('ÇÃóǴÕ',1787,1787),('ÇÃóÈÔÃÔ',1788,1788),('ÇÃóì´Õ',1773,1774),('ÇÃóÒ',1789,1789),('ÇÃóÕ',1790,1790),('ÇÃó¨Ôµ',1770,1770),('ÇÃóªÑÂ',1771,1771),('ÇÃó±¹Ò',1772,1772),('ÇÃó´Õ',1774,1773),('ÇÃó·¹Ò',1775,1775),('ÇÃó·¹Õ',1776,1776),('ÇÃó¸ÁÅ',1778,1778),('ÇÃó¸³Õ',1777,1777),('ÇÃó¹ÀÒ',1779,1779),('ÇÃó¹ÒÃÕ',1780,1780),('ÇÃó¾Ã',1781,1781),('ÇÃó¾Ò',1782,1782),('ÇÃà·¾',1762,1762),('ÇÃø¹Ò',1791,1791),('ÇÃÂØ·¸ì',1769,1769),('ÇÃÇÃó',1794,1794),('ÇÃÇÃø¹ì',1795,1795),('ÇÃÇѲ¹ì',1796,1796),('ÇÃÇÔÀÒ',1797,1797),('ÇÃÑ­¸Ã',1798,1798),('ÇÃÒ',1799,1799),('ÇÃÒÀóì',1803,1803),('ÇÃÒÃѵ¹ì',1804,1804),('ÇÃÔÁÒ',1810,1810),('ÇÃÕÇÃó',1812,1812),('ÇÃÒÇزÔ',1806,1806),('ÇÃÒÇظ',1807,1807),('ÇÃÔÈÃÒ',1811,1811),('ÇÃÒÅѡɳì',1805,1805),('ÇÃÒ§Ãѵ¹ì',1801,1801),('ÇÃÒ§¤³Ò',1800,1800),('ÇÃÔ¹·Ãì',1808,1808),('ÇÃÔ¹¸Ã',1809,1809),('ÇÃÒ¾Ã',1802,1802),('ÇÃÅѡɳì',1793,1793),('ÇáÒÃ',1758,1758),('ÇêÑÂ',1759,1759),('ÇêҵÔ',1760,1760),('ÇôÔÉ°ì',1761,1761),('ÇøѹÂì',1763,1763),('Çùت',1764,1764),('ÇþÅ',1767,1767),('Çþ§Éì',1765,1765),('Çþ¨¹ì',1766,1766),('ÇÃس',1813,1813),('Çèͧ',1819,1819),('ÇÊѹµì',1817,1817),('ÇÈÔ³Ò',1815,1815),('ÇÈÔ¹',1816,1816),('ÇÊØ',1818,1818),('CHEE KUNG FOOK',18,18),('CHEN CHIA YI',19,19),('CHI WAI DAVIT',20,20),('ÇÑʹÑÂ',1843,1843),('ÇÑȾÅ',1842,1842),('ÇÑÅÅÀ',1839,1839),('ÇÑÅÅÀÒ',1840,1840),('ÇÑÅÅÒÀÒ',1841,1841),('ÇѪÃÐ',1822,1822),('ÇѪÃÑ­­Ò',1823,1823),('ÇѪÃÕ',1825,1825),('ÇѪÃÔ¹·Ãì',1824,1824),('ÇѪáÃ',1820,1820),('ÇѪþÅ',1821,1821),('ÇѲ¹Ð',1826,1826),('ÇѲ¹Ò',1827,1827),('ÇѹÃѪ´Ò',1836,1836),('Çѹà©ÅÔÁ',1828,1828),('Çѹà¾ç­',1835,1835),('ÇѹÇÔÊÒ¢ì',1837,1837),('ÇѹʶÒ',1838,1838),('ÇѹªÑÂ',1829,1829),('ÇѹªÒµÔ',1830,1830),('Çѹ´Õ',1831,1831),('Çѹ·¹Ò',1832,1832),('Çѹ·¹Õ',1833,1833),('Çѹ·¹ÕÂì',1834,1834),('ÇÕ àÍÊ à¹à¹ÍÃÑÅ à¤Á',1916,1916),('ÇÔÃÁÅ',1886,1886),('ÇÔâè¹ì',1889,1889),('ÇÕÃ⪵Ô',1921,1921),('ÇÕÃà´ª',1922,1922),('ÇÕÃÂØ·Âì',1925,1925),('ÇÕÃÇÃó',1926,1926),('ÇÕÃÐ',1929,1929),('ÇÕÃÐà´ª',1933,1933),('ÇÕÃÐÂØ·¸ì',1936,1936),('ÇÕÃÐÇÃó',1937,1937),('ÇÕÃÐÇѲ¹ì',1938,1938),('ÇÕÃÐÈÑ¡´Ôì',1939,1939),('ÇÕÃЪÑÂ',1930,1930),('ÇÕÃЪÒÂ',1932,1932),('ÇÕÃЪҵÔ',1931,1931),('ÇÕÃоÅ',1935,1935),('ÇÕÃо§Éì',1934,1934),('ÇÕÃÈÑ¡´Ôì',1927,1927),('ÇÕÃÊÔ·¸Ôì',1928,1928),('ÇÔÃѪ',1887,1887),('ÇÔÃѵ¹ì',1888,1888),('ÇÒÃÕ',1849,1849),('ÇÔÀÒ',1875,1875),('ÇÕÃÒÀóì',1940,1940),('ÇÔÀÒÃѵ¹ì',1879,1879),('ÇÔÀÒÊ',1881,1881),('ÇÔÀÒɳÕÂì',1880,1880),('ÇÔÀҡóì',1876,1876),('ÇÔÀÒ¤',1877,1877),('ÇÒÃÔª',1848,1848),('ÇÔÀÒ¾Ãó',1878,1878),('ÇÔÀÙÉÔµ',1882,1882),('ÇÔÁÅ',1883,1883),('ÇÔÁÅÇÃó',1885,1885),('ÇÔÁžÃ',1884,1884),('ÇÔàªÉ°',1863,1863),('ÇÕêÑÂ',1920,1920),('ÇÔàªÕÂÃ',1864,1864),('ÇÕþÅ',1924,1924),('ÇÕþ§Èì',1923,1923),('ÇÒÃسÕ',1850,1850),('ÇÔÇ',1901,1901),('ÇÔÇÃø¹ì',1902,1902),('ÇÔÇѲ¹ì',1903,1903),('ÇÔÇѲ¹ìªÑÂ',1904,1904),('ÇÔÉÃب¹ì',1910,1910),('ÇÔÈÃص',1906,1906),('ÇÔÈÔÉ®ì',1908,1908),('ÇÔÈÔÉ°ì',1909,1909),('ÇÔÈÒÅ',1907,1907),('ÇÔÊÔ°ÈÑ¡´Ôì',1911,1911),('ÇÔÊÔ·¸Ôì',1912,1912),('ÇÔÊÙµ',1915,1915),('ÇÒʹÒ',1851,1851),('ÇÔȹÕ',1905,1905),('ÇÔÊØ·¸Ô',1914,1913),('ÇÔÊØ·¸Ôì',1913,1914),('ÇÔÅÇѳÂì',1890,1890),('ÇÔÅÒÇÃó',1891,1891),('ÇÔÅÒÇÑÅÂì',1893,1893),('ÇÔÅÒÇѳÂì',1892,1892),('ÇÔÅÒÊÔ¹Õ',1894,1894),('ÇÔÅÔµ',1895,1895),('ÇÔäÅ',1896,1896),('ÇÔäÅÃѵ¹ì',1898,1898),('ÇÔäÅÇÃó',1900,1900),('ÇÔäÅÅѡɳì',1899,1899),('ÇÔäžÃ',1897,1897),('ÇÔ¤Á',1853,1853),('ÇÔ¤µÍÃÕè â¾Ãà¡Ã·',1852,1852),('ÇÔ¨ÔÃÒ',1856,1856),('ÇÔ¨Òóì',1854,1854),('ÇÔ¨ÔµÃ',1855,1855),('ÇÔªÑÂ',1859,1859),('ÇÔªÒ­',1860,1860),('ÇÔªÔµ',1861,1861),('ÇÔªªÒ',1857,1857),('ÇÔª­ÐÃب',1858,1858),('ÇԪشÒ',1862,1862),('ÇÕ«èÒ (2000)',1917,1917),('ÇÔ­­Ø´Ò',1865,1865),('ÇÔ±ÙÅÂì',1866,1866),('ÇÒ³Õ',1844,1844),('ÇÕ³Ò',1918,1918),('ÇÔ·ÂÒ',1868,1868),('ÇÔ·ÇÑÊ',1869,1869),('ÇÒ·Ôµ',1845,1845),('ÇÒ·Ô¹',1846,1846),('ÇÒ·Ô¹ÕÂì',1847,1847),('ÇÔ·ÙÃ',1870,1870),('ÇÔ·¸ÇѪ',1867,1867),('ÇÔ¹ÊÃäì',1871,1871),('ÇÔ¹ÑÂ',1872,1872),('ÇÕ¹ÑÊ',1919,1919),('ÇÔ¹Ô¨',1873,1873),('ÇÔºÙÅÂì',1874,1874),('ÇÅѾÃ',1814,1814),('ǧà´×͹',1745,1745),('ǧÈìÇÒµ',1749,1749),('ǧÈìÊØÀÒ',1750,1750),('ǧÈìä¾±ÙÃÂì¡Ãç» º',1746,1746),('ǧÈìä¾±ÙÃÂì¡ÃÙê»',1748,1748),('ǧÈìä¾±ÙÃÂì¡ÃØê»',1747,1747),('ǨÕÃѵ¹ì',1751,1751),('ǪÔÃÒÀÒ',1752,1752),('ǹÑʹѹ·ì',1754,1754),('ǹѪ¾Ã',1753,1753),('ǹÒ',1755,1755),('ǹԪ',1756,1756),('ǹԴÒ',1757,1757),('ÇزÔÃѵ¹ì',1948,1948),('ÇزԡÃ',1941,1941),('ÇزԪÑÂ',1942,1942),('ÇزԹÑÂ',1944,1944),('ÇزԹѹ·ì',1943,1943),('ÇزԾÅ',1947,1947),('ÇزԾ§Èì',1945,1945),('ÇزԾ¨¹ì',1946,1946),('Ê ÍÒ´',2054,2054),('Ê.͹ѹµìàÍ繨Ôà¹ÕÂÃÔè§ á͹¤Í¹ÊµÃѤªÑè¹',2055,2055),('ÊÁ',2078,2078),('ÊÁÃ',2113,2113),('ÊÃÃàÊÃÔ°­',2142,2142),('ÊÁâÀª¹ì',2108,2108),('ÊÁâÁ·',2111,2111),('ÊÁÂÈ',2112,2112),('ÊÁÃÑ¡Éì',2114,2114),('ÊÁÁÒö',2109,2109),('ÊÁÁÒȹì',2110,2110),('ÊÁà¡ÕÂõÔ',2080,2080),('ÊÁã¨',2088,2088),('ÊÁ⪤',2093,2093),('ÊÁà´ª',2095,2095),('ÊÁÀ¾',2107,2107),('ÈÃÇÑÅÂì',1959,1959),('ÊÁǧÉì',2119,2119),('ÊÁÈÃÕ',2120,2120),('ÊÁËÁÒÂ',2126,2126),('ÊÁËÇѧ',2127,2127),('ÊÁÈÑ¡´Ôì',2121,2121),('ÊÁÈÔÃÔ',2122,2122),('ÊÁË­Ô§',2125,2125),('ÊÁÊØ¢',2123,2123),('ÊÁÊعÕÂì',2124,2124),('ÊÁÑÂ',2128,2128),('ÈÃÑ­­Ò',1960,1960),('ÊÃÑ­­Ò',2143,2143),('ÈÃѳÂì',1962,1962),('ÈÃѳ¾Ã',1961,1961),('ÊÂÒÁ',2133,2133),('ÊÂÒÁàÁ¦Õâ¾ÅÕàÁÍÃì',2139,2139),('ÊÂÒÁÂÙ¹Ôâ«Å',2140,2140),('ÈÃÕÃѵ¹ì',1977,1977),('ÈÃÕÀÒ',1976,1976),('ÈÃÒÁÒÈ',1963,1963),('ÈÂÒÁÅ',1957,1957),('ÊÂÒÁä´à¤ÕÂÇ',2136,2136),('ÊÂÒÁ¤Í¹àÇàÂÍÃì',2134,2134),('ÊÂÒÁªÑÂâ¾ÅÕàÁÍÃì',2135,2135),('ÊÂÒÁ¹ÔÊÊѹ ÍÍâµéâÁºÔÅ',2137,2137),('ÊÂÒÁ¾Ãà·Ã´à«ç¹àµÍÃì',2138,2138),('ÈÃÕà¾ç­',1975,1975),('ÊÃÒÂظ',2146,2146),('ÈÃÕÇѨ¹Ò',1978,1978),('ÈÃÕÇѲ¹Ò',1979,1979),('ÈÃÕÇÔ¡Ò',1980,1980),('ÈÃÒÇزÔ',1964,1964),('ÊÃÒÇزÔ',2147,2147),('ÈÃÒÇظ',1965,1965),('ÊÃÒÇظ',2148,2148),('ÈÃÕÊÁÃ\nÈÃÕÊÁÃ',1984,1983),('ÈÃÕÊÁÃ',1983,1984),('ÈÃÕÈÑ¡´Ôì',1981,1981),('ÈÃÕÊ¡ØÅ',1982,1982),('ÈÃÕÊØÇÃó¤Í¹àÇàÂÍÃìàºÅ·ì á͹´ì ÃѺàºÍÃì',1985,1985),('ÈÃÕÍÓ¾ÅÍصÊÒË¡ÃÃÁ',1987,1987),('ÈÃÕ͹§¤ì',1986,1986),('ÊÃÒ¡Ã',2144,2144),('ÈÃըѹ·Ãì',1967,1967),('ÈÃըѹ·ÃÒ',1968,1968),('ÊÃÒ­¨Ôµ',2145,2145),('ÈÃշͧà¹Áà¾Å·',1969,1969),('ÈÃշͧÍصÊÒË¡ÃÃÁ«Ñ¾¾ÅÒÂ',1970,1970),('ÊÁÔ·¸Ô',2131,2130),('ÊÁÔ·¸Ôì',2130,2131),('ÊÁÒ¹',2129,2129),('ËÃÔ¹',2446,2446),('ÊÃÔ¹ÃÒ',2149,2149),('ÈÃÕ¹ÇÅ',1971,1971),('ÈÃÔ¹·Ãì',1966,1966),('ÈÃÕ»ÃÐÀÒ',1973,1973),('ÈÃÕ»ÃÐä¾',1972,1972),('ÈÃÕ¾§Éì',1974,1974),('ÈÁÅÇÃó',1956,1956),('ÊÁÅѡɳì',2118,2118),('ÊàŤ·ì¿ÍÃìÁà¿ÍÃì¹Ôà¨ÍÃìáÅкصÃ',2152,2152),('ÊÁÄ´Õ',2115,2115),('ÊÁÄ·ÑÂ',2117,2117),('ÊÁÄ·¸Ôì',2116,2116),('ÊÁ¡ÁÅ',2079,2079),('ÊÁ¤ÇÃ',2081,2081),('ÊÁ¤Ô´',2082,2082),('ÊÁ¨Ôµ',2083,2083),('ÊÁ¨ÔµÃ',2086,2085),('ÊÁ¨ÔµÃì',2085,2086),('ÊÁ¨Ôµµì',2084,2084),('ÊÁ¨Ô¹µ¹Ò',2087,2087),('ÈêÑÂ',1958,1958),('ÊÁªÑÂ',2089,2089),('ÊÁªÒÂ',2092,2092),('ÊÁªÒ­',2090,2090),('ÊÁªÒµÔ',2091,2091),('ÊÁ´Õ',2094,2094),('Êáµ¹´ÒÃì´ ªÒÃìàµÍÃì (»ÃÐà·Èä·Â)',2066,2066),('ÊÁ·Ã§',2096,2096),('ÊÁ¹Ö¡',2097,2097),('ÊÁºÑµÔ',2098,2098),('ÊÁºÙóì',2100,2100),('ÊÁºØ­',2099,2099),('Êà»ç¤ à´ç¹ µÑÅ áź',2076,2076),('ÊÁ»Í§',2101,2101),('Ê໫¤ÍÁ',2077,2077),('ÊÁ¾Ã',2104,2104),('ÊÁ¾ÔÈ',2106,2106),('ÊÁ¾Å',2105,2105),('ÊÁ¾§Éì',2102,2102),('ÊÁ¾¨¹ì',2103,2103),('ÊÂØÁ¾Ã',2141,2141),('ÊÃب',2150,2150),('ÊÁتªÅ',2132,2132),('ÊÇÑÊ´Ôì',2154,2154),('ÊÇÕâè¹ì',2155,2155),('ÊÇÕÇÃó',2156,2156),('ËÇÒ¹',2448,2448),('ÊÇÅѡɳì',2153,2153),('Êзé͹',2161,2161),('ÈÈÁÅ',1989,1989),('ÊËà¡ÕÂõÔâÅËÐà¡ÕÂõÔ',2158,2158),('ÈÈÔ',1990,1990),('ÈÈÔÀÒ',1993,1993),('ÈÈÔÁÒ',1994,1994),('ÈÈÔÇÔÁÅ',1995,1995),('ÈÈÔÉÒ',1996,1996),('ÈÈÔ¸Ã',1991,1991),('ÈÈÔ¾Ã',1992,1992),('ÊÊԾѹ¸Øì',2157,2157),('Êè§àÊÃÔÁ',2062,2062),('Êè§ÈÃÕ',2061,2061),('Ê˾Å',2159,2159),('ËÍÁ¨Ñ¹·Ãì',2449,2449),('ÊÍÒ´',2160,2160),('ÊÑÁÄ·¸Ôì',2170,2170),('ÊÑÁ¾Ñ¹¸ì',2169,2169),('ËÑÊÂÒ',2451,2451),('ËÑʹÕ',2450,2450),('ÈÑ¡ÃÔ¹·Ãì',2003,2003),('ÈÑ¡´Ò',1997,1997),('ÈÑ¡´Ôì',1998,1998),('ÈÑ¡´ÔìàªÇ§',2000,2000),('ÈÑ¡´ÔìÇÔºÙÅÂì',2002,2002),('ÈÑ¡´ÔìªÑÂ',1999,1999),('ÈÑ¡´Ôì´Ò',2001,2001),('ÊѧÇÒÅÂì',2162,2162),('ÊѨ¾§Éì',2163,2163),('ÊÑ­ªÑÂ',2165,2165),('ÊÑ­ª¹Ò',2164,2164),('ÊÑ­­Ò',2166,2166),('ÈѹʹÕÂì',2004,2004),('ÊѹµÔ',2167,2167),('ÊѹµÔªÑÂ',2168,2168),('ÊÒÂã¨',2176,2176),('ÈÔâè¹ì',2030,2030),('ÊÒâè¹ì',2188,2188),('ÊÔâè¹ì',2228,2228),('ÊÒâê',2189,2189),('ÊÒ¹µì',2181,2181),('ÊÒÁÀ¾',2174,2174),('ÊÓÃÇÁ',2195,2195),('ÊÓÃÇÂ',2196,2196),('ÊÒÂÊÁÃ',2183,2183),('ÈÔÃÉÒ',2007,2007),('ÊÒÂÊسÕ',2184,2184),('ÊÒÂÊعÕÂì',2185,2185),('ÊÒÂѳ',2186,2186),('ÊÒÂѳËì',2187,2187),('ÈÔÃÔ',2009,2009),('ÈÔÃÔÃѨ¹ì',2024,2024),('ÈÔÃÔÃѵ¹ì',2025,2025),('ÊÔÃÔÃѵ¹ì',2223,2223),('ÈÔÁÒÃÕ',2006,2006),('ÈÔÃÔÁÒ',2023,2023),('ÊÔÃÔÁÒ',2222,2222),('ÈÔÃÔâ©Á',2012,2012),('ÊÔÃÔà´ª',2214,2214),('ÊÒÁÒö',2175,2175),('ÈÔÃÔà¾ç­',2022,2022),('ÈÔÃÔÇÃó',2027,2027),('ÊÔÃÔÇÃó',2225,2225),('ÊÔÃÔÇѲ¡ì',2226,2226),('ÈÔÃÔÇѲ¹ì',2028,2028),('ÊÔÃÔÇѲ¹Ò',2227,2227),('ÈÔÃÔÈÑ¡´Ôì',2029,2029),('ÈÔÃÔÅѡɳì',2026,2026),('ÊÔÃÔÅѡɳì',2224,2224),('ÈÔÃÔ¡ØÅ',2010,2010),('ÈÔÃԨѹ·Ãì',2011,2011),('ÈÔÃÔªÑÂ',2013,2013),('ÊÔÃÔªÑÂ',2213,2213),('ÊÓÃÒ­',2197,2197),('ÈÔÃÔ·Ñȹì',2014,2014),('ÈÔÃÔ¸Ã',2015,2015),('ÊÔÃÔ¹Ãѵ¹ì',2216,2216),('ÈÔÃÔ¹Òö',2017,2017),('ÈÔÃÔ¹­Ò',2016,2016),('ÊÔÃÔ¹¾Ã',2215,2215),('ÈÔÃԹت',2018,2018),('ÊÔÃÔ»ÃÐÀÒ',2217,2217),('ÈÔÃÒ¾Ã',2008,2008),('ÈÔÃÔ¾Ã',2020,2020),('ÊÔÃÔ¾Ã',2219,2219),('ÈÔÃÔ¾Ãó',2021,2021),('ÊÔÃÔ¾Ãó',2220,2220),('ÊÔÃԾѹ¸ì',2221,2221),('ÈÔÃÔ¾§Éì',2019,2019),('ÊÔÃÔ¾§Éì',2218,2218),('ÊÒÂÅÁ',2182,2182),('ÊÒÂä¿¿éÒä·Â-ÂÒ«Ò¡Ô',2180,2180),('ÊÒªÅ',2177,2177),('ÊÓà¹Õ§',2194,2194),('ÊÒ¹·Õ',2178,2178),('ÊÒ½¹',2179,2179),('ÈÔÇÒÀóì',2036,2036),('ÊÕÇÔ¡Ò',2231,2231),('ÊÒÇÔµÃÕ',2192,2192),('ÈÔÇÒ¾Ã',2035,2035),('ÊÔÇÅÕ',2229,2229),('ÈÔǾÃ',2033,2033),('ÈÔǾÅ',2034,2034),('ÈÔÅÒ',2032,2032),('ÊÒÅÕ',2190,2190),('ÊÓÅÕ',2199,2199),('ÊÒÅÕè',2191,2191),('ÈÔÅ»ªÑÂ',2031,2031),('ÊÓÄ·¸Ôì',2198,2198),('ÊÒ¤Ã',2171,2171),('ÊÔ§Ëì',2200,2200),('ÊÔ§Ëì¾Å',2201,2201),('ÊÔ§ËÒ',2202,2202),('ÊԵҹѹ',2203,2203),('ÊÔµÒ¾Ã',2204,2204),('ÊÔ·¸Ò',2205,2205),('ÊÔ·¸Ôà´ª',2208,2208),('ÊÔ·¸Ôì',2206,2206),('ÊÔ·¸ÔªÑÂ',2207,2207),('ÊÔ·¸Ô¾Ã',2209,2209),('ÊÔ·¸Ô¾Ãó',2210,2210),('ÊÔ·¸Ô¾Å',2211,2211),('ÊÒ¸Ôµ',2172,2172),('ÊÕ¹ÇÅ',2230,2230),('Êӹѡ¹âºÒÂáÅÐá¼¹¡Ãا෾ÁËÒ¹¤Ã',2193,2193),('ÊÒ¹ÔµÂì',2173,2173),('ÈÒ¹µÔᏴì',2005,2005),('ÊÔ¹·ÇÕ',2212,2212),('ÊÅÑ¡¨ÔµÃ',2151,2151),('ÈÅÔÉÒ',1988,1988),('ËÄ·Â',2447,2447),('Ê¡ÒÇÃѵ¹ì',2057,2057),('Ê¡ÅÃѵ¹ì',2056,2056),('È¡ÅÇÃó',1954,1954),('˧',2441,2441),('ʧǹ',2060,2060),('ʧèÒ',2064,2064),('ʧѴ',2063,2063),('ʧ¡ÃÒ¹µì',2059,2059),('ʧ¡Ã³ì',2058,2058),('ȨÕ',1955,1955),('ʴѺ¾Ô³',2065,2065),('ʶÔÃÂÒ',2068,2068),('ʶҾÃ',2067,2067),('Ë·ÑÂ',2442,2442),('Ë·ÑÂÃѵ¹ì',2444,2444),('Ë·Ñ·ԾÂì',2443,2443),('ʹã¨',2069,2069),('ʹͧ',2073,2073),('ʹÑè¹',2074,2074),('ʹԴÒ',2075,2075),('˹Öè§Ä·ÑÂ',2445,2445),('ʹ·ÂÒ',2070,2070),('ʹ¸ÂÒ',2072,2072),('ʹ¸¾',2071,2071),('ÈØÀÃ',2042,2042),('ÈØÀÃѵ¹ì',2043,2043),('ÈØÀÃÒÀóì',2044,2044),('ÊØÀÁÒÊ',2329,2329),('ÈØÀÁÔµÃ',2041,2041),('ÊØÃàªÉ°ì',2353,2353),('ÊØÀ⪤',2328,2328),('ÊØÃà´ª',2354,2354),('ÊØàÁ¸',2348,2348),('ÊØàÁ¸Õ¡ì',2349,2349),('ÉØÀÁ¹',2053,2053),('ÈØÀÇѲ¹ì',2046,2046),('ÈØÀÇÔ·Âì',2047,2047),('ÈØÀÈÑ¡´Ôì',2048,2048),('ÊØÃÈÑ¡´Ôì',2360,2360),('ÊØÃÊÔ·¸Ôì',2361,2361),('ÊØÀѤ',2330,2330),('ÊØÃѪ¹Õ¡Ã',2362,2362),('ÊØÀѵÃÒ',2331,2331),('ÊØÃѵÂÒ',2367,2367),('ÊØÃѵ¹Ç´Õ',2365,2364),('ÊØÃѵ¹ì',2363,2363),('ÊØÃѵ¹ìÇ´Õ',2364,2365),('ÊØÃѵ¹Ò',2366,2366),('ÊØÀÑ·ÃÒ',2332,2332),('ÊØÀÒ',2333,2333),('ÊØÀÒÀóì',2338,2338),('ÊØÃÕÂì',2381,2381),('ÊØÃÕÂì¾Ã',2382,2382),('ÊØÃÕÃѵ¹ì',2383,2383),('ÊØÃÔÂѹ',2375,2375),('ÊØÃÔÂѹµì',2376,2376),('ÊØÃÔÂÒ',2377,2377),('ÊØÃÕÁÒÈ',2380,2380),('ÊØÃÔ§Èì',2371,2371),('ÊØÀÒôÕ',2339,2339),('ÊØÃÔ¹',2372,2372),('ÊØÃÔ¹µì',2373,2373),('ÊØÃÔ¾§Èì',2374,2374),('ÊØÀÒÇ´Õ',2340,2340),('ÈØÀÔÊÃÒ',2049,2049),('ÊØÁÒÊÕ',2345,2345),('ÊØÁÒÅÕ',2344,2344),('ÊØÃÒ§¤¹Ò',2368,2368),('ÊØÃÔªÑÂ',2369,2369),('ÊØÀÔ­­Ò',2341,2341),('ÊØÀÒ³Õ',2334,2334),('ÊØÁÔµÃ',2346,2346),('ÊØÁÔµÃÒ',2347,2347),('ÊØÃÕ¸Ò¾Ã',2378,2378),('ÊØÃÔ¹·Ãì',2370,2370),('ÊØÀÒ¾',2335,2335),('ÊØÀÒ¾Ã',2336,2336),('ÊØÃÕ¾Ã',2379,2379),('ÊØÀÒ¾Ãó',2337,2337),('ÈØÀÅѡɳì',2045,2045),('ÈØÀ¡Ã',2037,2037),('ÈØÀ¡Ô¨',2038,2038),('ÊØÀ¡Ô¨',2326,2326),('ÊØáԨ',2350,2350),('ÈØÀªÑÂ',2039,2039),('ÊØêÑÂ',2351,2351),('ÊØÀªÒ',2327,2327),('ÊØêҵÔ',2352,2352),('ÊØ÷Թ',2355,2355),('ÊØà·¾',2289,2289),('ÊØÁ¹Ò',2343,2343),('ÊØ๵Ã',2307,2307),('ÊØÁ¹µì',2342,2342),('ÈØÀ¾Ã',2040,2040),('ÊØþѹ¸ì',2358,2358),('ÊØþѹ¸Øì',2359,2359),('ÊØþÅ',2357,2357),('ÊØþ§Éì',2356,2356),('ÊØÇÃó',2386,2386),('ÊØÇÃóÒ',2388,2388),('ÊØÇÃóÕ',2389,2389),('ÊØÇÃóÕÂì',2390,2390),('ÊØÇÃóªÑÂ',2387,2387),('ÊØÇÃѵ¹ì',2391,2391),('ÊØÇÀÑ·Ãì',2385,2385),('ÊØÇѲ¹ì',2392,2392),('ÊØÇѲ¹ìªÑÂ',2393,2393),('ÊØÇѲ¹Ò',2394,2394),('ÊØÇѵªÑÂ',2395,2395),('ÊØÇÔÃѪ',2402,2402),('ÊØÇÒÃÕ',2396,2396),('ÊØÇÔÁÅ',2401,2401),('ÊØÇÔªÑÂ',2397,2397),('ÊØÇÔªÒ',2398,2398),('ÊØÇÔ´Ò',2399,2399),('ÊØÇÔ·Âì',2400,2400),('ÊØËÑʪÒ',2404,2404),('ÊØÊÔÃÔ',2403,2403),('ÊØÅÑ´´Ò',2384,2384),('ÊØ¡ÃÕ',2232,2232),('ÊØ¡Ñ­­Ò',2233,2233),('ÊØ¡Ô¨',2235,2235),('ÊØ¡ÔµÔì',2236,2236),('ÊØ¡ÕµÔì',2237,2237),('ÊØ¡Ò¹´Ò',2234,2234),('ÊØ¡ØÁÒ',2238,2238),('ÊØ¢',2239,2239),('ÊØ¢ÊÇÑÊ´Ôì¡Å¡ÒÃ',2242,2242),('ÊØ¢Êѹµì',2243,2243),('ÊآĴÕ',2241,2241),('ÊØ¢ªÒÂ',2240,2240),('ÊØ¢ØÁ',2244,2244),('Êؤ¹¸ì',2245,2245),('Êؤ¹¸Ò',2246,2246),('ÊبÒÃÕ',2247,2247),('ÊبԵ',2248,2248),('ÊبԵÃÒ',2250,2250),('ÊبԵµÒ',2249,2249),('ÊبԹ´Ò',2251,2251),('ÊبԹµì',2252,2252),('ÊبԹµ¹ì',2253,2253),('ÊتÑÂ',2255,2255),('ÊتÒÂ',2258,2258),('ÊتÒÊÔ¹Õ',2259,2259),('ÊتҴÒ',2256,2256),('ÊتԵ',2260,2260),('ÊتҵÔ',2257,2257),('ÊتԹ',2261,2261),('ÊتÅ',2254,2254),('ÊرÒÁÒÈ',2262,2262),('ÊسÕ',2263,2263),('ÊØ´ÊÇÒ·',2265,2265),('Êشʧǹ',2264,2264),('ÊØ´Ò',2266,2266),('ÊØ´ÒÃѵ¹ì',2270,2270),('ÊØ´ÒÀÒ',2269,2269),('ÊØ´ÒÃÒ',2271,2271),('ÊØ´Õà¾é¹·ìà«ç¹àµÍÃì',2272,2272),('ÊØ´ÒªÅÕ',2267,2267),('ÊØ´Ò¾Ã',2268,2268),('ÊØ·ÃÕ',2282,2282),('ÊØ·ÑÈ',2283,2283),('ÊØ·Ñȹì',2284,2284),('ÊØ·ÔÈÒ',2288,2288),('ÊØ·ÔµÂì',2285,2285),('ÊØ·Ô¹',2286,2286),('ÊØ·Ô¾Ò',2287,2287),('ÊØ·¸ÔÇѲ¹ì',2280,2280),('ÊØ·¸ÔÈÑ¡´Ôì',2281,2281),('ÊØ·¸Ô쾧Éì',2278,2278),('ÊØ·¸Ô¡Ò¨',2274,2274),('ÊØ·¸ÔªÑÂ',2275,2275),('ÊØ·¸Ò·Ô¾Âì',2273,2273),('ÊØ·¸Ô¹Ñ¹·ì',2276,2276),('ÊØ·¸Ô¹Õ',2277,2277),('ÊØ·¸Ô¾Ãó',2279,2279),('ÊظÕ',2294,2294),('ÊظÕÃì',2295,2295),('ÊظÕÃÒ',2296,2296),('ÊظÔÈÑ¡´Ôì',2293,2293),('ÊظԴÒ',2292,2292),('ÊظҷԾÂì',2290,2290),('ÊظҹԸÔ',2291,2291),('Êعѷ·Õ',2299,2299),('Êعѹ·ì',2300,2300),('Êعѹ·Ò',2301,2301),('ÊعÕÂì',2306,2306),('ÊعÔÈÒ',2303,2303),('ÊعÔÉÒ',2304,2304),('ÊعÔÊÒ',2305,2305),('ÊعԵÒ',2302,2302),('Êع·Ã',2297,2297),('Êع·ÃÕ',2298,2298),('ÊØ»ÃÐÇÕ³ì',2309,2309),('ÊØ»ÃдÔÉ°ì',2308,2308),('ÊØ»ÃÕÃдÒ',2312,2312),('ÊØ»ÃÕÂÒ',2311,2311),('ÊØ»ÃÒ³Õ',2310,2310),('Êػѭ­Ò',2313,2313),('ÊؾÃ',2316,2316),('ÊؾÃÃÉÒ',2318,2318),('ÊؾÃóÕ',2317,2317),('ÊؾѲ¹ì',2320,2320),('ÊؾѵÃÒ',2321,2321),('ÊؾÕÃìªÑÂ',2325,2325),('ÊؾÔÈ',2324,2324),('ÊؾԪ­ìª­Ò',2322,2322),('ÊؾԹ',2323,2323),('ÊؾÅ',2319,2319),('Êؾ¨ÁÒÅÂì',2315,2315),('Êؾ¨¹ì',2314,2314),('GEORGE',21,21),('Í.à¨ÃÔ­ÎÒÃì´áÇÃì',2457,2457),('ÍÁÃÃѵ¹ì',2515,2515),('ÍÁÃà·¾',2514,2514),('ÍÁÃÈÑ¡´Ôì',2516,2516),('ÍÁÃÊÔÃÔ',2517,2517),('ÍÃÀÑ·Ãì',2534,2534),('ÍÁÃÒÅѡɳì',2518,2518),('ÍÃæÂì',2535,2535),('ÍÁêÑÂ',2513,2513),('ÍÃó¾',2536,2536),('ÍÃöÊÔ·¸Ôì',2540,2540),('ÍÃö¾Ã',2538,2538),('ÍÃö¾Å',2539,2539),('ÍÃö¾¹¸ì',2537,2537),('ÍÃ๵Ã',2530,2530),('ÍÃÇÃó',2542,2542),('ÍÃÇÔ· ÍÔ¹àµÍÃì๪Ñè¹á¹Å',2543,2543),('ÍÃÈÁ',2544,2544),('ÍÃÈÃÕ',2545,2545),('ÍÃÊÒ',2546,2546),('ÍÃèÒÁÈÃÕ',2551,2551),('ÍÃ͹§¤ì',2547,2547),('ÍÃÍØÁÒ',2548,2548),('ÍÃÑ­',2549,2549),('ÍÃÑ­­Ò',2550,2550),('ÍÀѹµÃÕÊì',2496,2496),('ÍÀÔÃÑ¡Éì',2507,2507),('ÍÃÔÂÒ',2555,2555),('ÍÃÔÂÒÀóì',2556,2556),('ÍÀÔÀÒ´Ò',2505,2505),('ÍÀÔવ',2501,2501),('ÍÀÔôÕ',2506,2506),('ÍÀÔà´ª',2503,2503),('ÍÀÔÇѲ¹ì',2508,2508),('ÍÀÔÇѹ·ì',2509,2509),('ÍÀÔÊÃ',2511,2511),('ÍÃÔÈÃÒ',2557,2557),('ÍÃÔÊÃÒ',2558,2558),('ÍÀÔÈÑ¡´Ôì',2510,2510),('ÍÃÔÊÒ',2559,2559),('ÍÀÔÊÔ·¸Ôì',2512,2512),('ÍÀÔªÑÂ',2497,2497),('ÍÃÔªÑÂ',2552,2552),('ÍÀÔªÒ µÔ',2498,2498),('ÍÀÔªÒµ',2499,2499),('ÍÀÔªÒµÔ',2500,2500),('ÍÀÔ­­Ò',2502,2502),('ÍÁÔµÒ',2519,2519),('ÍÀԹѹ·ì',2504,2504),('ÍÃÔ¹ª¹Ò',2553,2553),('ÍÁÔ¹µÒ',2520,2520),('ÍÃÔ¹·ÁÒ',2554,2554),('ÍÃÄ´Õ',2541,2541),('ÍèÔÃÒ',2522,2522),('ÍêÃ',2523,2523),('ÍêسËì',2524,2524),('Íóѭªì',2525,2525),('Íâ³·ÂÒ',2459,2459),('Í÷ÑÂ',2526,2526),('Í÷ԪÒ',2527,2527),('ÍùԵÂì',2528,2528),('Í⹪Ò',2495,2495),('Íùت',2529,2529),('ÍþÃó',2531,2531),('ÍþԹ',2532,2532),('ÍþԹ·Ãì',2533,2533),('ÍÃس',2560,2560),('ÍÃسÃѵ¹ì',2561,2561),('ÍÃسÃØè§',2562,2562),('ÍÃسÈÃÕ',2563,2563),('ÍÃسÕ',2564,2564),('ÍÂظÂѹ',2521,2521),('ÍǪÑÂ',2567,2567),('ÍÐÅÒ¹',2574,2574),('ÍФÙà·ç¤·ì',2573,2573),('ÍéÍ·ԾÂì',2571,2571),('ÍéÒÂÍÔé§',2612,2612),('ÍÍâµàÁªÑè¹à«ÍÃìÇÔÊ',2570,2570),('ÍÍÊ·ì ÍÍÂÊì',2572,2572),('ÎÍÊ·ì ÍÍÂÅì',2723,2723),('ÍͤµéÒ àÁÁâÁàÃÕÂÅ',2568,2568),('ÍͤµéÒàÁÁâÁàÃÕÂÅ',2569,2569),('ÍÑÁä¾ÇÃó',2594,2594),('ÍÑÁ¾Ã',2592,2592),('ÍÑÁ¾Ãó',2593,2593),('ÍѤÃà´ª',2575,2575),('ÍѤÃÇÔ·Âì',2578,2578),('ÍѤÃÇÔ¹·ì',2579,2579),('ÍѤÃÒ',2580,2580),('ÍѤþѨ¹ì',2577,2577),('ÍѤþ¹¸ì',2576,2576),('ÍѧʹÒ',2581,2581),('ÍѨ©ÃÒ',2582,2582),('ÍѪÂÒ',2583,2583),('ÍÑ­ªÅÕ',2587,2587),('ÍÑ­ª³Ò¾Ã',2584,2584),('ÍÑ­ª´Ò',2585,2585),('ÍÑ­ª¹Ò',2586,2586),('ÍÑ­ªØÅÕ',2588,2588),('ÍÑ®ÉÁÒ',2589,2589),('ÍѹÊÃÕÂì',2590,2590),('ÍÑ»ÊÃ',2591,2591),('ÍÒÃÂѹ',2616,2616),('ÍÒÃÂÒ',2617,2617),('ÍÔÁâ¡éá¾ç¤ ¤ÍÃì»ÍÃìàêÑè¹',2641,2641),('ÍÒÀóì',2606,2606),('ÍÒÃÁ³ì',2615,2615),('ÍÒÃì«Õ ¹ÔµáÇÃì',2613,2613),('ÍÒÃì«Ø»à»ÍÃì⫹Ԥ¾Ô¤ÍѾÊì',2614,2614),('ÍÒÃÑ¡Éì',2618,2618),('ÍÒÀÒ',2607,2607),('ÍÒÃÕ',2621,2621),('ÍÓÀÒ',2633,2633),('ÍÒÀÒÀóì',2611,2611),('ÍÒÃÕÂì',2622,2622),('ÍÒÃÕÂì àÊÁÒ©ÔÁ (ä·Âູ¡Ñ¹',2623,2623),('ÍÒÃÕÃѵ¹ì',2624,2624),('ÍÒÃÔÂÒ',2620,2620),('ÍÒÃÕÇÃó',2625,2625),('ÍÒÀÒ¡Ã',2608,2608),('ÍÒÀÒ³Õ',2609,2609),('ÍÒÀÒ¾Ã',2610,2610),('ÍÒÃÒ¾Ã',2619,2619),('ÍÔÈÃÒ',2642,2642),('ÍÔê¡«èÒ ÍÔ¹àµÍÃì๪Ñè¹á¹Åਹà¹ÃÑÅ à«ÅÅì',2634,2634),('ÍÓä¾',2632,2632),('ÍÒ¤Á',2595,2595),('Íԧ˷ÑÂ',2635,2635),('ÍÒ¨³Ã§¤ì',2596,2596),('ÍÒ«ÒÎÕ-ä·Â ÍÑÅÅÍÂ',2597,2597),('ÍҳѹÂì',2598,2598),('ÍÒ·Ô¡Ã',2599,2599),('ÍÕ·Õ«Õ',2643,2643),('ÍÒ·Ôµ',2600,2600),('ÍÔ·¸Ô¾Å',2636,2636),('ÍÔ¹àµÍÃìàÇç·(»ÃÐà·Èä·Â)',2638,2638),('ÍÓ¹ÇÂ',2626,2626),('ÍҹѴ',2603,2603),('ÍҹѹµÂÒ',2604,2604),('ÍÓ¹Ò¨',2627,2627),('ÍԹ䫷ìà¤Á',2637,2637),('ÍÔ¹·ÔÃÒ',2639,2639),('ÍÒ¹¹·ì',2601,2601),('ÍÒ¹¾',2602,2602),('ÍÒ¹ØÀÒ¾',2605,2605),('ÍÔ¾',2640,2640),('ÍÓ¾Ã',2628,2628),('ÍÓ¾Ãó',2629,2629),('ÍӾѹ¸ì',2631,2631),('ÍÓ¾Å',2630,2630),('ÎÙàÇÍÃìÍصÊÒË¡ÃÃÁ(»ÃÐà·Èä·Â)',2724,2724),('Íŧ¡Ã³ì',2566,2566),('Íŧ¡µ',2565,2565),('ͧÍÒ¨',2458,2458),('Í´Ôàá',2460,2460),('Í´ÔÈÃ',2461,2461),('Í´ÔÈÑ¡´Ôì',2462,2462),('Í´ØÅ',2463,2463),('Í´ØÅÂìà´ª',2465,2465),('Í´ØžѲ¹ì',2464,2464),('͵Թت',2466,2466),('͵ԾÃ',2467,2467),('ͶԪÒ',2468,2468),('͸Ի¾Å',2469,2469),('͹ÇѪ',2473,2473),('͹ѭ­Ò',2474,2474),('͹ѹµÈÑ¡´Ôì',2476,2476),('͹ѹµì',2475,2475),('͹§¤ìÇÃó',2471,2471),('͹§¤ì¹Ò®',2470,2470),('͹¹·ì',2472,2472),('͹ØÃÑÉì',2491,2491),('͹ØÃÑ¡Éì',2489,2489),('͹ØÃѵ¹ì',2490,2490),('͹ØÇѲ¹ì',2492,2492),('͹ØÊóì',2494,2494),('͹ØÈÑ¡´Ôì',2493,2493),('͹ءԵÔ',2477,2477),('͹ءÙÅ',2478,2478),('͹تÒ',2479,2479),('͹تԵ',2480,2480),('͹شÒ',2481,2481),('͹صÃ',2483,2483),('͹صµÃÒ',2482,2482),('͹طԵÒ',2484,2484),('͹ؾÃ',2487,2487),('͹ؾѹ¸ì',2488,2488),('͹ؾ§Èì',2485,2485),('͹ؾ§Éì',2486,2486),('ÍØÁÒ',2665,2665),('ÍØÃÕÂì',2667,2667),('ÍØÁÒ¾Ã',2666,2666),('ÍØà·¹·Ãì',2660,2660),('ÍØÉÒ',2673,2673),('ÍØÊÒËì',2674,2674),('ÍØè§á¤Ð',2644,2644),('ÍØɳÕ',2672,2672),('ÍØè¹ã¨',2661,2661),('ÍØÌÒÃ',2675,2675),('ÍØäÃ',2668,2668),('ÍØäÃÃѵ¹ì',2670,2670),('ÍØäÃÇÃó',2671,2671),('ÍØäþÃ',2669,2669),('ÍسÒÇ´Õ',2645,2645),('ÍØ´Á',2646,2646),('ÍØ´Ã',2654,2654),('ÍØ´ÁàÁ´Ô¤ÍÅ ÍÔ¤ÇÔ»àÁé¹',2650,2650),('ÍØ´ÁÇþѹ¸ì',2652,2652),('ÍØ´ÁÈÑ¡´Ôì',2653,2653),('ÍØ´ÁÅѡɳì',2651,2651),('ÍØ´Á¾Ã',2648,2648),('ÍØ´Á¾Ñ¹¸ì',2649,2649),('ÍØ´Á¾§Èì',2647,2647),('ÍصâÁ·Âì',2655,2655),('ÍصÊÒË¡ÃÃÁ¼éÒà¤Å×ͺ¾ÅÒʵԡä·Â',2656,2656),('ÍØ·ÑÂ',2657,2657),('ÍØ·ÑÂÇÃó',2658,2658),('ÍØ·ØÁ¾Ã',2659,2659),('ÍغÅ',2662,2662),('ÍغÅÇÃó',2664,2664),('ÍغžÃó',2663,2663),('KAWAIJIT',22,22),('KAWALJIT',23,23),('KOJI',24,24),('LOUIS',25,25),('PETER',26,26),('SHERMAN',27,27),('TAN',28,28),('Willem Arnold',29,29),('WONG',30,30),('WU',31,31),('ÅÐÁèÍÁ',1718,1718),('ÅÐàÍÕ´',1721,1721),('ÅÐÁÑÂ',1719,1719),('ÅÐÍͧ´ÒÇ',1720,1720),('ÅÑ¡ÉÁÕ',1724,1724),('ÅѡɳÒ',1723,1723),('ÅÑ¡¢³Ò',1722,1722),('ÅÑ­ª¹Ò',1725,1725),('ÅÑ´´Ò',1726,1726),('ÅÑ´´ÒÇÃó',1727,1727),('ÅÑ´´ÒÇÑÅÂì',1728,1728),('ÅÑ·¸ÈÑ¡´Ôì',1729,1729),('ÅÔÁ',1734,1734),('ÅÒÇѳÂì',1730,1730),('ÅÔÅÒÀóì',1735,1735),('ÅÓäÂ',1732,1732),('ÅÓä¾',1731,1731),('ÅÔ¹´ÒÇÃó',1733,1733),('ÅÅÔ´Ò',1716,1716),('ÅÅÔµÒ',1717,1717),('Å×ͪÑÂ',1736,1736),('äÁµÃÕ',1596,1596),('äÇ·Ô¹',1953,1953),('äÍ.àÍÊ.äÍ.ÍÔ¹àµÍÃì๪Ñè¹á¹Å',2721,2721),('äÍ.«Õ.«Õ.ÍÔ¹àµÍÃì๪Ñè¹á¹Å (ÁËÒª¹)',2718,2718),('äÍ.·Õ.áÍ´ìÇÒ¹« à·¤ ¨Ó¡Ñ´',2719,2719),('äÍ.·Õ.á͹´ìÇÒ¹« à·¤ ¨Ó¡Ñ´',2720,2720),('äÍÂàÃÈ',2722,2722),('ä¡Ãà·¾',215,215),('ä¡Ã¤Ó',214,214),('ä¡Ã¸ÇѪ',216,216),('äªÂÃѵ¹ì',575,575),('äªÂÁ§¤Å',574,574),('äªÂÒ',576,576),('äªÂ¹Ñ¹·¹ì',573,573),('ä´ÍСÅêÒÊ',709,709),('äµÃç¤ì',726,726),('äµÃà·¾',725,725),('äµÃ·È',724,724),('ä·Â',805,805),('ä·Â ¤Í¹Êì á͹´ì ºÔÅ´Ôé§',806,806),('ä·Â ´Õ à͹ ·Õ ྐྵ·ì',807,807),('ä·Â-àÍà«Õ ¾Õ.ÍÕ.ä¾é¾ì',824,808),('ä·ÂàÇŤ͹ÍصÊÒ¡ÃÃÁ',821,822),('ä·ÂÂÙà¹Õ¹¤ÇÍÅÅÔµÕé',820,821),('ä·Âà¡ÃÕ§ÊÔ觷Í',808,809),('ä·Âà¤ÁÕÀѳ±ì',810,811),('ä·Âà«çÅ·ÃÑÅà¤ÁÕ ª¹)',813,814),('ä·Âà«ç¹·ÃÑÅ à¤ÁÕ ª¹)',811,812),('ä·Âà«ç¹·ÃÑÅà¤ÁÕ',812,813),('ä·Âà¾ÔèÁ¾ÅÒʵԡ',819,820),('ä·ÂÍÔ¹àµÍÃì ÍÐâÃàÁµÔ¡Êì',823,824),('ä·ÂÍÔ¹àµÍÃì ¤ÍµµÍ¹¡Ò÷Í',822,823),('ä·Â¤Òà«ÎÔ¹',809,810),('ä·Â´Õà͹·Õྐྵ·ì',814,815),('ä·Âµ§¹ÔµµÔé§',815,816),('ä·Â¸Ò¹Õà¤ÁÕ',817,818),('ä·Â¸¹Ò¾Ò³ÔªÂì',816,817),('ä·Â¾ÃçÍ¡«ì',818,819),('Ä·¸Ôì',1714,1714),('Ä·¸ÔªÑÂ',1715,1715),('ä¼·',1292,1292),('ä¾àÃÒÐ',1485,1485),('ä¾âè¹ì',1486,1486),('ä¾ÃÊÔ·¸Ôì',1481,1481),('ä¾Ãʳ±ì',1480,1480),('ä¾ÃѪ',1482,1482),('ä¾Ãѵ¹ì',1483,1483),('ä¾ÃÔ¹·Ãì',1484,1484),('ä¾ÃÄ·¸Ôì',1479,1479),('ä¾ÇÑÅÂì',1488,1488),('ä¾ÈÔÃÔ',1490,1490),('ä¾ÈÒÅ',1489,1489),('ä¾ÊÔ°',1491,1491),('ä¾ÅÔ¹',1487,1487),('ä¾±ÙÃÂì',1477,1477),('侺ÙÅÂì',1478,1478),('¡.µÃÕ·Ô¾Âì ¤Í¹«ÑÅáµ¹·ì',32,32),('¡ÃíԡÒÃì',65,65),('¡ÃóԡÒ',66,66),('¡ÃóԡÒÃì',67,67),('¡ÃÇÔ·Âì',69,69),('¡ÃÇÅÑÂ',68,68),('¡ÃШ¡ä·ÂÍÒ«ÒÎÕ',72,72),('¡Ãͧá¡éÇ',70,70),('¡Ãͧ·Ô¾Âì',71,71),('¡ÃÕ±Ò',73,73),('¡ÁÅ',49,49),('¡ÁÅÃѪµì',55,55),('¡ÁÅÃѵ¹ì',56,56),('¡ÁÅÁÒÅÂì',54,54),('¡ÁÅÇÃó',57,57),('¡ÁũѵÃ',50,50),('¡ÁÅ·Ô¾Âì',51,51),('¡ÁžÃ',52,52),('¡ÁžÃó',53,53),('¡Ã¡ÁÅ',60,60),('¡Ã¡¹¡',58,58),('¡Ã¡¾Ã',59,59),('¡ÃªÑÂ',61,61),('¡Ã³ì',62,62),('¡Ã¹Ñ¹·ì',63,63),('¡Ã»ÃÕÂÒ',64,64),('¡Ãا෾¼ÅÔµàËÅç¡',74,74),('¡Ãاä·ÂÍØ»¡Ã³ì',76,76),('¡Ãاä·Â¤ÒÃìàÃé¹·ì ÍÔ¹àµÍÃì๪Ñè¹á¹Å',75,75),('¡ÃسÒ',77,77),('¡ÇÕ',93,93),('¡ÉÁÒ',94,94),('¡èÍà¡ÕÂõÔ',98,98),('¡ÊÔÇѹ',97,97),('¡ÉÔª­ì',95,95),('¡ÉÔ´ÔÈ',96,96),('¡Íºá¡éÇ',100,100),('¡ÍºÅÒÀ',102,102),('¡Íº¡ØÅ',99,99),('¡ÍººØ­',101,101),('¡Ñ ÅÂÒ',103,103),('¡ÑÁ»¹Ò¶',117,117),('¡ÑÁ»¹Ò·',118,118),('¡ÑÅÂÒ',119,119),('¡ÑÅÂÒÃѵ¹ì',121,121),('¡ÑÅÂÒ³Õ',120,120),('¡Ñ­ª¾Ã',104,104),('¡Ñ­­ÀѤ',105,105),('¡Ñ­­ìÇÃÒ',106,106),('¡Ñ­­ÒÁÒÈ',107,107),('¡Ñ­­ÒÇÕÃì',108,108),('¡Ñ³°Ô¡Ò',110,110),('¡Ñ³°ªÒ',109,109),('¡Ñ³·ÔÁÒ',111,111),('¡Ñ¹ÂÒÃѵ¹ì',116,116),('¡Ñ¹µì',112,112),('¡Ñ¹µÔ¡Ã',113,113),('¡Ñ¹¸ÔÁÒ',115,115),('¡Ñ¹¸ÔªÒ',114,114),('¡ÒÃÇÔÍÃ',128,128),('¡ÒÂÊÔ·¸Ôì',127,127),('¡Óá˧',134,134),('¡ÔÁÅÑé§',157,157),('¡ÕõÔ',158,158),('¡ÒÃسÕ',129,129),('¡ÒÈÔ',130,130),('¡Ô觡ҭ¨¹ì',135,135),('¡ÓäÃ',133,133),('¡Ô¨ÇÃó',137,137),('¡Ô¨µÔÂÒ',136,136),('¡Ò­¨¹ÇÃó',122,122),('¡Ò­¨¹Ò',123,123),('¡ÔµÔ¡Ã',153,153),('¡ÔµÔ¡Ã³ì',154,154),('¡ÔµÔ¡Ñ­­Ò',155,155),('¡ÔµÔªÒ­',156,156),('¡ÔµµÔ',138,138),('¡ÔµµÔÃѵ¹ì',150,150),('¡ÔµµÔÁÒ',148,148),('¡ÔµµÔÂÒ',149,149),('¡ÔµµÔÇѲ¹ì',151,151),('¡ÔµµÔÈÑ¡´Ôì',152,152),('¡ÔµµÔ¡Ñ¹µì',139,139),('¡ÔµµÔªÑÂ',140,140),('¡ÔµµÔ­Ò',141,141),('¡ÔµµÔ¹Ñ¹·ì',142,142),('¡ÔµµÔ¾Ñ²¹ì',146,146),('¡ÔµµÔ¾Ñ¹¸ì',147,147),('¡ÔµµÔ¾Å',145,145),('¡ÔµµÔ¾§Èì',143,143),('¡ÔµµÔ¾§Éì',144,144),('¡Ó¸Ã',131,131),('¡Ò¹´Ò',124,124),('¡Ò¹µì',125,125),('¡Ò¹µìÃÇÕ',126,126),('¡Ó¾Å',132,132),('¡Ùê´ÇÔÅ ÍÔ¹´ÑʵÃÕé',169,169),('¡ÄÉ®Ò',84,84),('¡ÄÉ®Õ',85,85),('¡ÄɮվÃ',86,86),('¡ÄɳÐ',89,89),('¡ÄɳÒ',90,90),('¡ÄɳÕ',91,91),('¡Äɳ¾Å',88,88),('¡Äɳ¾¨¹ì',87,87),('¡ÄÉ´Ò',92,92),('¡ÄȾÃó',83,83),('¡ÄªÇÃó',78,78),('¡ÄµÂÒ',80,80),('¡ÄµÔÂÒ',82,82),('¡ÄµÔ¡Ò¹·ì',81,81),('¡Äµº¾Ô¸',79,79),('¡ªÁÅ',35,35),('¡ª¡Ã',33,33),('¡ª¾Ã',34,34),('¡µÑ­­Ù',36,36),('¡¹ÔÉ°Ò',48,48),('¡¹¡',37,37),('¡¹¡Ãѵ¹ì',43,43),('¡¹¡ÇÃó',45,45),('¡¹¡ÈÃÕ',46,46),('¡¹¡Ò­¨¹ì',47,47),('¡¹¡Ä·¸Ôì',44,44),('¡¹¡¡Ò­¨¹ì',38,38),('¡¹¡ªÑÂ',39,39),('¡¹¡¹ÔÀÒ',40,40),('¡¹¡¹Øª',41,41),('¡¹¡¾Ã',42,42),('¡ØÁØ·¾Ñ¹¸ì',159,159),('¡ØéÂà«é§ ÍÔÁ»ÍÃìµ á͹´ì àÍç¡«ì»ÍÃìµ',160,160),('¡ØËÅÒº',168,168),('¡ØÊØÁÒ',167,167),('¡ØÅÂÒ',163,163),('¡ØÅÇ´Õ',165,165),('¡ØÅÈÔÃÔ',166,166),('¡ØÅÅ´Ò',164,164),('¡ØŹѹ·ì',161,161),('¡ØŹÒÃÕ',162,162),('¢ÇÑ­àÁ×èͧ',228,228),('¢ÇÑ­àÃ×͹',231,231),('¢ÇÑ­ã¨',223,223),('¢ÇÑ­à´×͹',225,225),('¢ÇÑ­à¾çªÃ',227,227),('¢ÇÑ­ÃØé§',230,230),('¢ÇÑ­ÂؾÒ',229,229),('¢ÇÑ­ªÑÂ',224,224),('¢ÇÑ­µÒ',226,226),('¢éÒÇÍÔèÁ·Ô¾Âì',233,233),('¢ÑµµÔÂÒ³Õ',232,232),('¢¨Ã',217,217),('¢¨Ãà¡ÕÂõÔ',218,218),('¢¨ÃÈÃÕ',219,219),('¢¨ÃÈÑ¡´Ôì',220,220),('¢¹ÔÉ°ì',221,221),('¢¹ÔÉ°Ò',222,222),('¢Ø¹·Í§',234,234),('¤Áà¾çªÃ',249,249),('¤ÃÒ¿·ìà´ÍÐàºÊ·ì',250,250),('¤Á¡ÃÔª',247,247),('¤Á¨Ñ¡Ã',248,248),('¤àª¹·Ãì',238,238),('¤à³È',244,244),('¤à¹Âì',246,246),('¤ÍÊÁÔ¤ ¤Í¹¤ÍÃì´ ¤ÍÃì»ÍàêÑè¹',251,251),('¤ÔÁ§¤ì',257,257),('¤Óá˧',256,256),('¤ÒÃìâ»Ãà¿ÊªÑè¹á¹Å',253,253),('¤Óó',255,255),('¤ÒÇÒ¤Ô¹',254,254),('¤Ò«ÙâÍÐ',252,252),('¤ÙèºØ­',260,260),('¤Ù»Ò¹Ò',261,261),('¤§à´ª',237,237),('¤§¡ÄÈ',236,236),('¤³ÒÇزÔ',240,240),('¤³ÔÈÃ',241,241),('¤³ÔÊÃ',242,242),('¤³Ò¡Ã',239,239),('¤³ØµÁì',243,243),('¤¸Ò',245,245),('¤Ø³Ò¡Ã',258,258),('¤Ø³Õ·Ã',259,259),('§ÒÁà¾ç­',273,273),('§ÒÁ¹Ô¨',272,272),('¨àÃ',298,298),('¨ÃÃÂÒ',285,285),('¨àÃÈÑ¡´Ôì',299,299),('¨ÃÇÃø¹ì',287,287),('¨ÃǾÃ',286,286),('¨ÃÑʪÑÂ',290,290),('¨ÃÑʾÅ',291,291),('¨ÃÑÅ',289,289),('¨ÃÑ­',288,288),('¨ÃÔÂÒ',294,294),('¨ÃÔÂÒÀóì',295,295),('¨ÃÔ¹·Ãì',292,292),('¨ÃÔ¹¸Ã',293,293),('¨ÃÙ­',297,297),('¨ÃظԴÒ',296,296),('¨ÍÁ¢ÇÑ­ã¨',300,300),('¨Ñ¡ÃÇÒÅ',304,304),('¨Ñ¡Ãѵ¹ì',305,305),('¨Ñ¡ÃÕ',307,307),('¨Ñ¡ÃÔ¹·Ãì',306,306),('¨Ñ¡Ã¡Äɳì',302,302),('¨Ñ¡Ã¡Äª',301,301),('¨Ñ¡Ã¾Ñ¹¸ì',303,303),('¨Ñ¡ÉÇѯ',308,308),('¨Ñ´ËÒ§Ò¹ÎÔÇáÁ¹àÍ繨Ôà¹ÕÂÃÔè§',309,309),('¨ÑµÃ´ÒÇ',310,310),('¨Ñ¹¨ÔÃÒ',311,311),('¨Ñ¹·Ã',314,314),('¨Ñ¹·ÃìÃѵ¹ì',321,321),('¨Ñ¹·Ãìà¨éÒ',315,315),('¨Ñ¹·Ãìà¾ç­',320,320),('¨Ñ¹·ÃìÇÔÁÅ',322,322),('¨Ñ¹·ÃìÇÔäÅ',323,323),('¨Ñ¹·ÃìÊØ´Ò',324,324),('¨Ñ¹·Ãì·Ô¾Âì',316,316),('¨Ñ¹·Ãì¸ÔÀÒ',317,317),('¨Ñ¹·Ãì¹ÀÒ',318,318),('¨Ñ¹·Ãì¾Ã',319,319),('¨Ñ¹·ÔÀÒ',326,326),('¨Ñ¹·ÔÁÒ',327,327),('¨Ñ¹·ÔÃÒ',329,329),('¨Ñ¹·ÔÁÒÀóì',328,328),('¨Ñ¹·Ô¡Ò',325,325),('¨Ñ¹··Õ',312,312),('¨Ñ¹·¹Ò',313,313),('¨ÔÃÀÑ·Ã',361,361),('¨ÔÃÀÒ',362,362),('¨ÓàÃÔ­',344,344),('¨ÔÃÇÃó',363,363),('¨ÔÃÇѲ¹ì',364,364),('¨ÔÃÐÀÒ',369,369),('¨ÕÃÐÇѲ¹ì',386,386),('¨ÔÃÐÈÑ¡´Ôì',370,370),('¨ÕÃйѹ·ì',385,385),('¨ÔÃоÃ',367,367),('¨ÔÃоÃó',368,368),('¨ÔÃÈÑ¡´Ôì',365,365),('¨ÕÃÈÑ¡´Ôì',384,384),('¨ÔÃÊØ´Ò',366,366),('¨ÕâÍà·¤¹Ô¤ (ä·ÂᏴì)',388,388),('¨ÓÃÑÊ',343,343),('¨ÔÃѪ´Ò',371,371),('¨ÔÃÑ°µÔì',372,372),('¨ÔÃÒÀóì',376,376),('¨ÒÃÕÃѵ¹ì',333,333),('¨ÔÃÒÀÒ',377,377),('¨ÔÃÒÂØ',378,378),('¨ÔÃÒÇÃó',379,379),('¨ÔÃÒÇÑÅÂì',380,380),('¨ÔÃÒÇزÔ',381,381),('¨ÔÃÒ¤Á',373,373),('¨ÔÃҹت',374,374),('¨ÔÃÒ¾Ã',375,375),('¨ÔþÃ',359,359),('¨ÕþÃó',383,383),('¨Ôþѹ¸ì',360,360),('¨ÒÃØÃѵ¹ì',338,338),('¨ÒÃØÇÃó',339,339),('¨ÒÃسÕ',334,334),('¨ÒÃسÕÂì',335,335),('¨ÒÃعѹ',336,336),('¨ÒÃغصÃ',337,337),('¨ÕÍÕ á¤»»ÔµÍÅ (»ÃÐà·Èä·Â)',387,387),('¨ÓÅͧ',345,345),('¨Ô³³ì',346,346),('¨ÔµÃÒ',354,354),('¨ÔµÃÒÀóì',355,355),('¨ÔµÃÅ´Ò',353,353),('¨ÔµµÁÒÊ',349,349),('¨Ôµµì',347,347),('¨Ôµµì¹ÔÉÒ',348,348),('¨ÔµµÒ',350,350),('¨ÔµµÔ',351,351),('¨ÔµµÔ¹¹Ñ¹·ì',352,352),('¨ÒµØç¤ì',331,331),('¨ÒµØùµì',332,332),('¨ÒµØ¾Ã',330,330),('¨Õ·Õ«Õ ·Ã§¾Ñ¹¸ì)',382,382),('¨Ó¹§',340,340),('¨Ó¹§¤ì',341,341),('¨Ô¹´Ò',356,356),('¨Ô¹µì¨Ø±Ò',357,357),('¨Ô¹µ¹Ò',358,358),('¨Ó»Õ',342,342),('¨§ÃÑ¡',277,277),('¨§ÃÑ¡Éì',278,278),('¨§Åѡɳì',279,279),('¨§¡Å',275,275),('¨§¡Å³Õ',276,276),('¨µØç¤ì',283,283),('¨µØÄ·¸Ôì',284,284),('¨µØ¾Ã',280,280),('¨µØ¾Ñ¹¸ì',282,282),('¨µØ¾Å',281,281),('¨ØÃÕÃѵ¹ì',395,395),('¨ØÌÒ',397,397),('¨ØÌÒÀóì',398,398),('¨ØÌÒÀÒ',399,399),('¨ØÌÒÅѡɳì',400,400),('¨ØÅÅ´Ò',396,396),('¨Ø±ÒÃѵ¹ì',393,393),('¨Ø±ÒÁÒÈ',391,391),('¨Ø±ÒÁÒÊ',392,392),('¨Ø±ÒÇÃó',394,394),('¨Ø±Ò·Ô¾Âì',389,389),('¨Ø±Ò¾Ñ¹¸ì',390,390),('©ÇÕÇÃó',419,419),('©Íé͹',420,420),('©ÑµÃÀóì',422,422),('©ÑµÃÈÔÃÔ',423,423),('©ÑµÃªÑÂ',421,421),('©Ñ¹·Ãѵ¹ì',425,425),('©Ñ¹·¹Ò',424,424),('©ÅÇÂ',416,416),('©Åͧ',417,417),('©ÅÒ´',418,418),('©×èÍ ¨Ôé¹ ÎÑéÇ',426,426),('©×èͨÔé¹ÎÑéÇ',427,427),('ª.ÊÂÒÁ¨Ñ¡ÃÂÒ¹à´ç¡àÅè¹',437,437),('ªÁ',450,450),('ªÁÀÑÊÊÃ',454,454),('ªÁÀٹت',455,455),('ªÁѾÃ',456,456),('ªÃÑÊÃÒ',463,463),('ªÃѪÊÃÒ',461,461),('ªÃѶ¨Ñ¹·Ãì',462,462),('ªÂÒÀóì',460,460),('ªÃÔ¹Ãѵ¹ì',465,465),('ªÃÔ¹·Ãì',464,464),('ªÂÒ¾Å',459,459),('ªÂ¹',458,458),('ªÁ¾Ù¹Øª',452,452),('ªÁ¾Ù¹Ø·',453,453),('ªÁ¾Å',451,451),('ªÇÔÈÒ',479,479),('ªÇÅÔµ',478,478),('ªÇ¹',475,475),('ªÇ¹ªÁ',476,476),('ªÇ¹¾ÔÈ',477,477),('ªÐÍé͹',485,485),('ªÐ¹ÔÅ',484,484),('ªèÍ',480,480),('ªèÍÍÑ­ªÑ­',483,483),('ªèͩѵÃ',481,481),('ªèÍ·Ô¾Âì',482,482),('ªÑÂÂÐ',509,509),('ªÑÂÂÈ',508,508),('ªÑÂÃѵ¹ì',511,511),('ªÑÂÀÑ·Ã',505,505),('ªÑÂÁ§¤Å',506,506),('ªÑ§³ì',507,507),('ªÑÂà¨ÃÔ­ãªèËÅÕʵÕÅ',496,496),('ªÑÂÂØ·¸',510,510),('ªÑÂÇѲ¹ì',512,512),('ªÑÂÊÔ·¸Ôì',513,513),('ªÑÂÊÔ¹¸Øì',514,514),('ªÑªҭ',498,498),('ªÑª¹Ð',497,497),('ªÑ³ç¤ì',499,499),('ªÑ¸ÇѲ¹ì',500,500),('ªÑ¹ѹ·ì',502,502),('ªÑ¹¤Ã',501,501),('ªÑ¾Ã',503,503),('ªÑ¾Å',504,504),('ªÑªÀÑÊÊÃ',489,489),('ªÑªÀ³',488,488),('ªÑªÁ³±ì',490,490),('ªÑªÁ¹±ì',491,491),('ªÑªÇÒÅÂì',493,492),('ªÑªÇÒÅìÂ',492,493),('ªÑªªÑÂ',486,486),('ªÑª®Ò',487,487),('ªÑ­ÉÒ',495,495),('ªÑ­­Ò',494,494),('ªÒÂ',524,524),('ªÒÇѳÂì',526,526),('ªÕÇÒ¾Ã',534,534),('ªÒÅÕ',525,525),('ªÒ­',515,515),('ªÒ­ÂØ·¸',518,518),('ªÒ­ÈÑ¡´Ôì',519,519),('ªÒ­ªÑÂ',516,516),('ªÒ­³Ã§¤ì',517,517),('ªÔ´ª¹¡',529,529),('ªÒµÃÕ',520,520),('ªÒµÔªÒÂ',521,521),('ªÒ¹',522,522),('ªÔ¹',530,530),('ªÔ¹Ãѵ¹ì',532,532),('ªÔ¹ÇѲ¹ì',533,533),('ªÓ¹Ô',528,528),('ªÓ¹Ò­',527,527),('ªÒ¹¹·ì',523,523),('ªÔ¹¾Ñ¹¸ì',531,531),('ªÙà¡ÉÁ',544,544),('ªÙà¡ÕÂõÔ',545,545),('ªÙÈÑ¡´Ôì',553,553),('ªÙ¨Ôµ',546,546),('ªÙ¨Ôµµì',547,547),('ªÙªÑÂ',548,548),('ªÙªÒµÔ',549,549),('ªÙªÕ¾',550,550),('ªÙ¾§Èì',551,551),('ªÙ¾§Éì',552,552),('ªÅÍ',468,468),('ªÅÍÁ',469,469),('ªÅÒ¡Ã',470,470),('ªÅÔ¡Ò',471,471),('ªÅÔ´Ò',472,472),('ªÅÔµ',473,473),('ªÅÔµÒ',474,474),('ªÅ¸Õ',467,467),('ªÅ¸ÔªÒ',466,466),('ªäÁ¾Ã',457,457),('ª®ÒÃѪ',438,438),('ª´Ò¡Ã',439,439),('ª¹ÁìÊØÇÃó',442,442),('ª¹Ð',443,443),('ª¹Ð⪵Ô',444,444),('ª¹Ñ­­Ò',445,445),('ª¹Ñ°',446,446),('ª¹Ñ¹Àóì',447,447),('ª¹ÒÀÒ',448,448),('ª¹Ô´Ò',449,449),('ª¹¹Ñ¹·ì',440,440),('ª¹¹ÔÈÒ',441,441),('ª×蹨Եµì',535,535),('ªØÁÊÒÂ',542,542),('ªØÁÈÔÃÔ',541,541),('ªØÁ¾Ã',539,539),('ªØÁ¾Å',540,540),('ªØÅÕ¾Ã',543,543),('ªØ´Ò¾Ã',536,536),('ªØµÔÁÒ',538,538),('ªØµÔ¡Ò­¨¹ì',537,537),('«è͹¡ÅÔè¹',577,577),('«Õ àÍç¹ äÍ',580,580),('«Õ ´Õ àÍçÁ àÍç¹àµÍÃìä¾ÃÊì',581,581),('«Õ.ÇÕ.àÍÊ.ÍÔ¹´ÑʵÃÕé',584,584),('«Õ.´Õ.ÍصÊÒË¡ÃÃÁ',582,582),('«Õ.·Õ.à·àŤÍÁ',583,583),('«ÕàÍç¹äÍàÍ繨Ôà¹ÕÂÃÔ觫Ѿ¾ÅÒÂ',586,586),('«Òâµéâ¤à¡ÕÂÇ ¡Ãا෾',578,578),('«Ô¡»éÒ (»ÃÐà·Èä·Â)',579,579),('«Õ´Õ ÍصÊÒË¡ÃÃÁ',585,585),('«Ù',587,587),('­Ò³ÀѤ',590,590),('­Õ¹ÀÒ',591,591),('¯Ç§¡ÁÅ',592,592),('°ÔµÔÃѪµì',605,605),('°ÔµÔÃѵ¹ì',606,606),('°ÔµÔÁÒ',604,604),('°ÔµÔà¸ÕÂÃ',600,600),('°ÔµÔ¡Ò¹µì',598,598),('°ÔµÔ³Ñ°',599,599),('°ÔµÔ¹Ñ¹·ì',601,601),('°ÔµÔ¾Ã',603,603),('°ÔµÔ¾§Èì',602,602),('°Ôµ¡Ò¹µì',597,597),('°Ò¹Ñ¹·ì',593,593),('°Ò¹ÔÊÃ',595,595),('°Ò¹ÔµÂì',594,594),('°Ò»¹ÇÔ·Âì',596,596),('±ÔÁÀì¹Øª',607,607),('³ÀÑ·Ã',609,609),('³Àѷáóì',610,610),('³Ã§ÃÑ¡Éì',617,617),('³Ã§ÈÑ¡´Ôì',619,619),('³Ã§Ä·¸Ôì',618,618),('³Ã§¤ì',611,611),('³Ã§¤ìÇÔ·Âì',615,615),('³Ã§¤ìÈÑ¡´Ôì',616,616),('³Ã§¤ìÄ·¸Ôì',614,614),('³Ã§¤ìªÑÂ',612,612),('³Ã§¤ì¾ÑªÃì',613,613),('³Ë·ÑÂ',620,620),('³ÑªªÒ',621,621),('³Ñ­­Ò',622,622),('³Ñ®°ÁÑÂ',623,623),('³Ñ®°ÇÃó',624,624),('³Ñ¯¾Å',625,625),('³Ñ°',626,626),('³Ñ°ÁÒ',645,645),('³Ñ°ÂÒ',646,646),('³Ñ°ÀÙÁÔ',643,643),('³Ñ°Á¹',644,644),('³Ñ°ÇÃÕÂì',647,647),('³Ñ°ÇѪÃì',648,648),('³Ñ°ÇѲ¹ì',649,649),('³Ñ°ÇѵÔ',650,650),('³Ñ°ÇزÔ',651,651),('³Ñ°ÊÃÑ­',653,653),('³Ñ°ÈÑ¡Âì',652,652),('³Ñ°Ë·ÑÂ',654,654),('³Ñ°Ô¡Ò',655,655),('³Ñ°¡Ã³ÔÈÒ',627,627),('³Ñ°¡Ò¹µì',629,629),('³Ñ°¡ÄµÒ',628,628),('³Ñ°¢¨Ã',630,630),('³Ñ°ªÒ',632,632),('³Ñ°ª¹Ñ­',631,631),('³Ñ°°Ò',633,633),('³Ñ°µÂÒ',634,634),('³Ñ°¹Ñ¹·ì',636,636),('³Ñ°¹¹·ì',635,635),('³Ñ°»¡Ã³ì',637,637),('³Ñ°¾Ã',641,641),('³Ñ°¾Å',642,642),('³Ñ°¾§Èì',638,638),('³Ñ°¾§Éì',639,639),('³Ñ°¾¨¹ì',640,640),('³Õç¤ì',657,657),('³ÔªÒ¡Ã',656,656),('³¸ÔµÒ',608,608),('³Øªª¹Ò',658,658),('´ÃÃ쪹Õ',661,661),('´ÃسÕ',662,662),('´Ç§Ãѵ¹ì',674,674),('´Ç§ã¨',667,667),('´Ç§à´×͹',669,669),('´Ç§Á¹·Ãì',673,673),('´Ç§Ë·ÑÂ',675,675),('´Ç§¡ÁÅ',665,665),('´Ç§¨Ñ¹·Ãì',666,666),('´Ç§´ÒÇ',668,668),('´Ç§¹ÀÒ',670,670),('´Ç§ºÅ',671,671),('´Ç§¾Ã',672,672),('´Í¡äÁé',676,676),('´Õ.ºÕ.ä´Á͹´ì (»ÃÐà·Èä·Â)',695,695),('´Ôàá',692,692),('´ÒÃÒÃѵ¹ì',680,680),('´ÒÃÒÇÃó',681,681),('´ÒÃÔ¡Ò',682,682),('´ÒÃÔ³Õ',683,683),('´ÒÃÔ¹',684,684),('´ÒÃÒ¹ÕÅì',679,679),('´Óç',689,689),('´Óç¤ì',690,690),('´ÒóÕ',677,677),('´ÒùÕÂì',678,678),('´Óà¹Ô¹',688,688),('´ÒÃسÕ',685,685),('´ÒÇÃÕ',687,687),('´ÒÇ»ÃСÒÂ',686,686),('´ÓËÃÔ',691,691),('´ÔÈ¡ØÅ',693,693),('´Ôʷѵ',694,694),('´ÅÄ´Õ',663,663),('´ÅÄ·ÑÂ',664,664),('´¹ÑÂ',659,659),('´¹Ø¾Å',660,660),('´ØÊÔµ',701,701),('´ØÊÔµà¤ÁÕÀѳ±ì',702,702),('´ØÉ®Õ',698,698),('´ØɳÕ',699,699),('´ØÉ´Õ',700,700),('´ØÅÂì¾Ñ²¹ì',697,697),('´ØžÅ',696,696),('µÐÇѹ',712,712),('µÐÅèÍÁÊÔ¹¾ÅÒʵԡ',711,711),('µèͨѡÃ',710,710),('µÑ觨Ñè§ËÅÍ´ä¿',713,713),('µÒà¿ç´',714,714),('µØê',715,715),('µØéÁ',717,717),('µØëÂ',718,718),('µØ꡵Ò',716,716),('µØÅÒÅѡɳì',719,719),('¶ÇÑÅ',729,729),('¶ÇÑÅÂì',730,730),('¶ÇÔÅ',731,731),('¶ÒÇÃ',733,733),('¶Ò³Ø¾§Èì',732,732),('¶¹ÍÁÈÑ¡´Ôì',727,727),('¶¹Ôµ¾Å',728,728),('·ÃÃȹÕÂì',745,745),('·ÃѾÂì¶ÒÇäéÒÇÑÊ´Ø',746,746),('·Ã§',737,737),('·Ã§ÇزÔ',741,741),('·Ã§ÈÃÕ',742,742),('·Ã§ÈÑ¡´Ôì',743,743),('·Ã§ÈÔÃÔ',744,744),('·Ã§ªÑ»Ñè¹·Í',738,738),('·Ã§¸ÃÃÁ',739,739),('·Ã§¾Å',740,740),('·ÇÕ',748,748),('·ÇÕÇѲ¹ì',752,752),('·ÇÕÈÃÕ',753,753),('·ÇÕÈÑ¡´Ôì',754,754),('·ÇÔª',747,747),('·ÇÕªÑÂ',749,749),('·ÇÕ»',750,750),('·ÇÕ¾Ã',751,751),('·èÒ·ÃÒÂá¨é§ÇѲ¹Ò',773,773),('·È¾Ã',755,755),('·È¾Å',756,756),('·Í§ãº',759,759),('·Í§ÊØ¢',763,763),('·Í§ÍÔ¹·Ãì',764,764),('·Í§¢ÒÇ',757,757),('·Í§¤Ó',758,758),('·Í§»Ò¹',760,760),('·Í§¾Ñ¹¸ì',761,761),('·Í§¾Ñ¹¸Øì',762,762),('·ÑÈÇÃó',772,772),('·ÑȹÇÃó',768,768),('·ÑȹÕÂì',770,770),('·ÑȹÕÂÒ',771,771),('·ÑȹվÃ',769,769),('·Ñ¡ÉÁ³¹ì',765,765),('·Ñ´´ÒÇ',766,766),('·Ñº·ÔÁ',767,767),('·Õ «Õ ¾Õ ÍÔ¹´ÑÊ·ÃÕé',791,791),('·Õ.àÍÊ.äÇÃì¤Ñ· á͹´ì áÁªªÕ¹¾ÒÃì·',794,794),('·Õ.äÍ.·Õ.ÍÔ¹àµÍÃì๪Ñè¹á¹Å',795,795),('·Õ.«Õ.«Õ.¾Ãç;à¾ÍÃìµÕé',792,792),('·Õ.«Õ.¾Õ.ÍÔ¹´ÑÊ·ÃÕé',793,793),('·ÕâÍàÍ â´¿à¤Á ÍÔ¹´ÃÑʵÕé',796,796),('·ÔÇÒ',789,789),('·ÔȾÅ',790,790),('·Ô¦ÑÁ¾Ã',774,774),('·Ô¹á¤¹ ÍÔ¹´ÑÊ·ÃÕ',775,775),('·Ô¾ÂìÇÃó',778,778),('·Ô¾ÂìÇÃس',779,779),('·Ô¾ÂìÇÑÅÂì',780,780),('·Ô¾ÂìÇÒÃÕ',781,781),('·Ô¾ÂìÇÔÁÅ',782,782),('·Ô¾ÂìÇ´Õ',777,777),('·Ô¾Âì¾Ò¾Ã',776,776),('·Ô¾ÇÃó',783,783),('·Ô¾ÇÑÅÂì',784,784),('·Ô¾ÇÔÁÅ',785,785),('·Ô¾ÊØ´Ò',786,786),('·Ô¾ÒÇÃó',788,788),('·Ô¾Ò¡Ã',787,787),('·ÙÃ',798,798),('·ÙÁÔ¹Ô·Êì ºÔ«Ôà¹Ê',797,797),('·¹§ÈÑ¡´Ôì',735,735),('·¹Ø',736,736),('¸ÃÃÁÈÒʵÃì',861,861),('¸ÃÃÁ¹Ù­',860,860),('¸à¹È',857,857),('¸à¹ÈÃì',858,858),('¸Á¹Ñ¹·ì',859,859),('¸ÇÑÅÃѵ¹ì',865,865),('¸ÇѪ',863,863),('¸ÇѪªÑÂ',864,864),('¸ÑªÇѲ¹ì',869,869),('¸ÑªÇ´Õ',868,868),('¸Ñª¡Ã',866,866),('¸Ñª¾Å',867,867),('¸Ñ­Ã´Ò',877,877),('¸Ñ­ª¹¡',870,870),('¸Ñ­­¸Ã',871,871),('¸Ñ­­¾Ñ²¹ì',872,872),('¸Ñ­³ÔªÒ',873,873),('¸Ñ­¹Ñ¹·ì',874,874),('¸Ñ­¾Ã',875,875),('¸Ñ­¾ÔÊÔ·¸Ôì',876,876),('¸ÕÃÀÑ·Ãì',896,896),('¸ÕÃÀÒ¾',897,897),('¸ÕÃÇѲ¹ì',898,898),('¸ÕÃÐ',901,901),('¸ÕÃÐÇѲ¹ì',904,904),('¸ÕÃЪÑÂ',902,902),('¸ÕÃоÅ',903,903),('¸ÕÃÈÑ¡´Ôì',899,899),('¸ÕÃÈÒ¹µÔ¾Ñ¹¸ì',900,900),('¸ÒÃÒ',883,883),('¸ÒÃÔ¹Õ',884,884),('¸ÓçÃѵ¹ì',886,886),('¸Óç¤ì',885,885),('¸ÕêÑÂ',890,890),('¸Ò÷ԾÂì',882,882),('¸Õùت',891,891),('¸ÕþѲ¹ì',895,895),('¸ÕþÅ',894,894),('¸Õþ§Èì',892,892),('¸Õþ§Éì',893,893),('¸Ò¡Ã',878,878),('¸Ò´Ò',879,879),('¸Ô´ÒÃѵ¹ì',887,887),('¸ÔµÔ¹Ñ¹·ì',888,888),('¸Ò¹Õ',881,881),('¸Ô¹Õ¡Ò­¨¹ì',889,889),('¸Ò¹Ô¹·Ãì',880,880),('¸Äµ',862,862),('¸§äªÂ',826,826),('¸§ªÑÂ',825,825),('¸³Ñ°',827,827),('¸¹âè¹ì',834,834),('¸¹ÃѪ',832,832),('¸¹Ãѵ¹ì',833,833),('¸¹ÇѲ¹ì',836,836),('¸¹Çѹ',837,837),('¸¹ÇÔµµ',838,838),('¸¹ÇÔ·Âì',839,839),('¸¹Ç´Õ',835,835),('¸¹ÐÃѪµì',841,841),('¸¹ÊÔ·¸Ôì',840,840),('¸¹ÑÊ',846,846),('¸¹Ñª¸Ô´Ò',842,842),('¸¹Ñ­­Ò',843,843),('¸¹Ñ¹µì',844,844),('¸¹Ñ¹·ì',845,845),('¸¹Ò',847,847),('¸¹ÒÀóì',850,850),('¸¹ÒÃÑ¡Éì',852,852),('¸¹ÒÀÒ',851,851),('¸¹ÒÇѪÃì',853,853),('¸¹ÔÉ°Ò',855,855),('¸¹Ò¤ÒÃÂÙâÍºÕ Ãѵ¹ÊÔ¹ ÊÒ¢ÒËÑÇËÁÒ¡',849,849),('¸¹Ò¤ÒáÃاÈÃÕÍÂظÂÒ º',848,848),('¸¹Ô´Ò',854,854),('¸¹Ù',856,856),('¸¹¡Ã',828,828),('¸¹¡Äµ',829,829),('¸¹¾Ã',830,830),('¸¹¾Å',831,831),('¹ à¿ÃÔÁàÁ¹¹Ôª ÍâÃáÁµÔê¡Êì ¾Õ·ÕÍÕ ÅÔÁÔàµç',906,906),('¹ ¾´Å',905,905),('¹àÃÈ',946,946),('¹ÃÀÑ·Ãì',939,939),('¹âõÁì',947,947),('¹ÀÇÃó',929,929),('¹ÀÑÊÊÃ',930,930),('¹ÀÑÊÊØÇÃó',931,931),('¹ÀÒ',932,932),('¹ÃÒ',940,940),('¹ÃÕ',945,945),('¹ÀÒÂØ·¸ì',934,934),('¹ÀÒÇÃó',935,935),('¹ÃÔÈ',943,943),('¹ÃÔÉ°',944,944),('¹ÀÔ¹·Ã',936,936),('¹ÃÔ¹·Ãì',941,941),('¹ÃÔ¹·Ãìà´ª',942,942),('¹ÀÒ¾Ã',933,933),('¹ÃªÑÂ',937,937),('¹À´Å',928,928),('¹Ã¾Å',938,938),('¹ÇÃѵ¹ì',956,956),('¹ÇÅÅÐÍÍ',960,960),('¹ÇŨѹ·Ãì',957,957),('¹ÇÅ©ÇÕ',958,958),('¹ÇžÃ',959,959),('¹Ç¡Ã³ì',954,954),('¹Ç¾Å',955,955),('¹éÓÁѹ¤ÒÅà·ê¡«ì',992,992),('¹éÓྪÃ',991,991),('¹éÓÍéÍÂ',994,994),('¹éÓ·Ô¾Âì',988,988),('¹éÓ½¹',989,989),('¹Ñ¹Ò',980,980),('¹Ñ­ªÅÒ',961,961),('¹Ñ¯¾Ã',962,962),('¹Ñ±¾Ã',963,963),('¹Ñ·ª¹¡',964,964),('¹Ñ·¸Á¹',965,965),('¹Ñ¹ªÑÂ',966,966),('¹Ñ¹·Ãѵ¹ì',973,973),('¹Ñ¹·ÁÒÊ',972,972),('¹Ñ¹·ÇÃó',975,975),('¹Ñ¹·Ç§Éì',974,974),('¹Ñ¹·ÈÑ¡´Ôì',976,976),('¹Ñ¹·Ò',977,977),('¹Ñ¹·ÔÂÒ',979,979),('¹Ñ¹·Ô¡Ò¹µì',978,978),('¹Ñ¹·ªÑÂ',967,967),('¹Ñ¹·¹ì',968,968),('¹Ñ¹·¹Ò',969,969),('¹Ñ¹·¾Ã',970,970),('¹Ñ¹·¾Å',971,971),('¹ÒÁ',983,983),('¹ÔÂÁ',1016,1016),('¹ÔÃÁÅ',1017,1017),('¹ÔÃѹ´Ã',1018,1018),('¹ÒÃÕ',985,985),('¹ÔÀÒ',1015,1015),('¹ÒÃÕÃѵ¹ì',986,986),('¹ÔÃÒÇÃóì',1019,1019),('¹ÒÃÔ¹·Ãì',984,984),('¹ÔâźÅ',1024,1024),('¹Ôà«Ð',998,998),('¹ÓÃØè§ä·Â ¡ÒÃìàÁ¹·ì',993,993),('¹ÔÃب¹ì',1020,1020),('¹ÔÃصµì',1021,1021),('¹ÔÇૹ¨ÙÃÕè¾ÃÔé¹µÔé§á͹´ì ᾤࡨ¨Ôé§',1025,1025),('¹ÔÇѲ¹ì',1026,1026),('¹ÔÇѵÃì',1027,1027),('¹ÔÇѵÔ',1028,1028),('¹ÔÇÒµ',1029,1029),('¹ÒÇÔ¹Õ',987,987),('¹ÔÈÃÒ',1030,1030),('¹ÔÊÒ',1033,1033),('¹ÔÈÒªÅ',1031,1031),('¹ÔÈÒ¾Ã',1032,1032),('¹ÔÅÀÒ',1022,1022),('¹ÔÅغÅ',1023,1023),('¹Ô¡Éì',995,995),('¹Ô¤Á',996,996),('¹ÔªÃªÕ¾',997,997),('¹Ò¯Êǧ',981,981),('¹Ô´',999,999),('¹Ô´Ò',1000,1000),('¹ÔµÂì',1001,1001),('¹ÒµÂÒ',982,982),('¹ÔµÂÒ',1002,1002),('¹ÔµÔ',1003,1003),('¹ÕµÔ',1034,1034),('¹ÔµÔÁÒ',1005,1005),('¹ÔµÔ¾§Éì',1004,1004),('¹Ô·ÃÒ',1006,1006),('¹Ô·Ñȹì',1007,1007),('¹Ô·ÑȹÕÂì',1008,1008),('¹Ô¸ÔÇ´Õ',1009,1009),('¹Ô»»Í¹à¾¹µì(»ÃÐà·Èä·Â)',1010,1010),('¹Ô¾Ñ·¸Ò',1013,1013),('¹Ô¾Ñ¹',1014,1014),('¹Ó¾Å',990,990),('¹Ô¾Å',1012,1012),('¹Ô¾¹¸ì',1011,1011),('¹Å¾Ãó',953,953),('¹ÄÁÒ³',952,952),('¹ÄÁÅ',951,951),('¹Ä³Õ',948,948),('¹Ä´Õ',949,949),('¹Ä·¸Ôì',950,950),('¹¤Ã',907,907),('¹¤Ã»°Á Î͹´éÒ¤ÒÃìÊì (1994)',908,908),('¹§Åѡɳì',911,911),('¹§ª¹¡',909,909),('¹§¹Øª',910,910),('¹·',912,912),('¹·Õ',914,914),('¹·Ô¹',913,913),('¹¹·ÈÑ¡´Ôì',915,915),('¹¾Ãѵ¹ì',924,924),('¹¾ÁÒÈ',923,923),('¹¾à¡éÒ',916,916),('¹¾ÇÃó',926,926),('¹¾Ò¾Ã',927,927),('¹¾ÄÔ·¸Ôì',925,925),('¹¾´Å',917,917),('¹¾´ÅÂì',918,918),('¹¾·Ñµ',919,919),('¹¾¾Ã',921,921),('¹¾¾Å',922,922),('¹¾¾§¤ì',920,920),('¹ØÈÃÒ',1039,1039),('¹ØÊÃÒ',1041,1041),('¹ØʺÒ',1040,1040),('¹ØªÂÒ',1037,1037),('¹ØªÃÕ',1038,1038),('¹Øª¨ÃÔ¹·Ãì',1035,1035),('¹Øª¹Ò¶',1036,1036),('ºÃç',1050,1050),('ºÃÃà¨Ô´',1049,1049),('ºÃÃÊÒÃ',1051,1051),('ºÃè§',1047,1047),('ºÃèº',1048,1048),('ºÃÔÇÃõ',1052,1052),('ºÇêÑÂ',1053,1053),('ºÑ§ÍÃ',1054,1054),('ºÑ­ªÒ',1055,1055),('ºÑ­­ÑµÔ',1056,1056),('ºÑ³±Ôµ',1057,1057),('ºÑ³±ÔµÂì',1058,1058),('ºÑµÃ¡ÃاÈÃÕÍÂظÂÒ',1060,1060),('ºÑµÃ¡Ãاä·Â',1059,1059),('ºÑ¹Å×ÍÈÑ¡´Ôì',1061,1061),('ºÕ á͹´ì «Õ ¾ÙÅÒÊ¡Õé',1067,1067),('ºÕ ÇÒ ¤ÍÃìâ¾àêÑè¹ ¨Ó¡Ñ´',1066,1066),('ºÕ.àÍç¹.ºÃÒà´ÍÃì',1068,1068),('ºÕ.àÍÊ.äÍ.àËÅç¡¡èÍÊÃéÒ§',1069,1069),('ºÓÃاä·Â',1064,1064),('ºÔǵÕéᾤ',1065,1065),('ºÒ§¡Í¡ªÕ·àÁç··ÑÅ',1062,1062),('ºÒ¹ªéÍÂ',1063,1063),('ºÙê·Êì (»ÃÐà·Èä·Â)',1111,1111),('ºÙê·ÊìáÁ¹Ùῤà¨ÍÃìÃÔè§ (»ÃÐà·Èä·Â)',1112,1112),('º§¡ª',1044,1044),('º§¡µÃѵ¹ì',1045,1045),('º«ì ÍÔ¹â¿Ãì à«ÍÃìÇÔÊ',1046,1046),('ºØÃÑ­ªÅÕ',1101,1101),('ºØÃÔ¹·Ãì',1102,1102),('ºØÈÃÒ',1103,1103),('ºØÉÂÒ',1108,1108),('ºØÉÃÒÀóì',1109,1109),('ºØÈÃÔ¹·Ãì',1105,1105),('ºØÈÃÒ¾Ã',1104,1104),('ºØËÅÑè¹',1110,1110),('ºØÉ¡Ã',1106,1106),('ºØɺÒ',1107,1107),('ºØ­àÂÕèÂÁ',1085,1085),('ºØ­ÃèÇÁ',1086,1086),('ºØ­áʧ',1098,1098),('ºØ­ÃÑ¡',1087,1087),('ºØ­Âѧ',1084,1084),('ºØ­ÁÕ',1083,1083),('ºØ­àÅÔÈ',1090,1090),('ºØ­à¡ÕÂõÔ',1070,1070),('ºØ­àªÔ´',1075,1075),('ºØ­ÈÃÕ',1091,1091),('ºØ­Êè§',1093,1093),('ºØ­ÈÔÃÔ ´ÕÇÔÅÍ»àÁ¹·ì',1092,1092),('ºØ­ÊÔ¹',1095,1095),('ºØ­Ê¹Í§',1094,1094),('ºØ­Ê׺',1096,1096),('ºØ­ÊØ¢',1097,1097),('ºØ­ÅѺ',1088,1088),('ºØ­Å×Í',1089,1089),('ºØ­¤§',1071,1071),('ºØ­ªèÇÂ',1072,1072),('ºØ­ªÑÂ',1073,1073),('ºØ­ªØº',1074,1074),('ºØ­«é͹',1076,1076),('ºØ­·ÃѾÂì',1077,1077),('ºØ­·ÇÕ',1078,1078),('ºØ­·Í§',1079,1079),('ºØ­¸ÃÃÁ',1080,1080),('ºØ­»ÃÐÊÔ·¸Ôì',1081,1081),('ºØ­¾§Éì',1082,1082),('ºØ³±Ôµ',1099,1099),('ºØ»¼Ò',1100,1100),('»ÃÐ⪹ì',1179,1179),('»ÃÐàÇÈ',1186,1186),('»ÃÐÁÇÅ',1171,1171),('»ÃÐàÊÃÔ°',1193,1193),('»ÃÐÁѾÃ',1172,1172),('»ÃÐÀÑÊ',1163,1163),('»ÃÐÀÑÊÃì',1164,1164),('»ÃÐÀÑÊÃÒ¾Ã',1165,1165),('»ÃÐÀÑÊÊÃ',1166,1166),('»ÃÐÀÒÀóì',1169,1169),('»ÃÐÀÒÊ',1170,1170),('»ÃÐÂÔ¹',1175,1175),('»ÃÐÀÒ¾Ã',1167,1167),('»ÃÐÀÒ¾Ãó',1168,1168),('»ÃÐÂÙÃ',1177,1177),('»ÃÐÂÙÃÈÃÕ',1178,1178),('»ÃÐÁÙÅ',1173,1173),('»ÃЧ¤ì',1174,1174),('»ÃÐà·×ͧ',1156,1156),('»ÃÐÂØ·¸',1176,1176),('»ÃÐÇѵÃ',1180,1180),('»ÃÐÇѵÔ',1181,1181),('»ÃÐÇÕ³Ò',1185,1185),('»ÃÐÇÔµÃ',1182,1182),('»ÃÐÇÔ·',1183,1183),('»ÃÐÇÔ·Âì',1184,1184),('»ÃÐÊÒÃ',1190,1190),('»ÃÐÊÒ·',1188,1188),('»ÃÐÊÔ·¸Ôì',1191,1191),('»ÃÐÊÒ¹',1189,1189),('»ÃÐʧ¤ì',1187,1187),('»ÃÐÊ׺',1192,1192),('»ÃÐä¾',1162,1162),('»ÃСͺ',1138,1138),('»ÃСÒÈ',1139,1139),('»ÃСÒÈÔµ',1140,1140),('»ÃСԨ',1141,1141),('»ÃСԵ',1142,1142),('»ÃФͧ',1143,1143),('»ÃШǺ',1145,1145),('»ÃШѡÉì',1146,1146),('»ÃШԵÃ',1147,1147),('»ÃШ§¨Ôµ',1144,1144),('»ÃЪÒ',1148,1148),('»ÃЪԵ',1149,1149),('»ÃЪØÁ¾Ã',1150,1150),('»Ãгµ',1151,1151),('»ÃдÔÉ°ì',1152,1152),('»ÃзѺã¨',1153,1153),('»Ãзջ',1154,1154),('»ÃзØÁ·Ô¾Âì',1155,1155),('»ÃоѲ¹ì',1160,1160),('»Ãоѹ¸ì',1161,1161),('»Ãоķ¸Ôì',1159,1159),('»Ãо¨¹ì',1157,1157),('»Ãо¹¸ì',1158,1158),('»ÀÑÊÊÃ',1132,1132),('»ÃѪ­Ò',1194,1194),('»ÃÒâÁ·Âì',1200,1200),('»ÃÕÂÒÀóì',1213,1213),('»ÃÔÂÒÇÃó',1208,1208),('»ÃÒö¹Ò',1201,1201),('»ÀÒÇÃÔ¹·ì',1135,1135),('»ÀÒÇÕ',1136,1136),('»ÀÒÇ´Õ',1134,1134),('»ÃÔȹÒ',1209,1209),('»ÃÔȹÕ',1210,1210),('»ÃÒ¡ÒÃ',1195,1195),('»ÃÒ§³Õ',1196,1196),('»ÃÕªÒ',1211,1211),('»ÃÒª­ì',1197,1197),('»ÃÕ­Ò',1212,1212),('»ÃÔ­­ì',1202,1202),('»ÃÔ­­Ò',1203,1203),('»ÃÔ­´Ò',1204,1204),('»ÃÒ³Õ',1198,1198),('»ÃÒ³ÕÂì',1199,1199),('»ÃÔ³´Ò',1205,1205),('»ÀÒ³Ø',1133,1133),('»ÃÔ·ÑÈ',1206,1206),('»ÃÔ¹´Ò',1207,1207),('»ÂصÒ',1137,1137),('»ÇÕ³ÃѪ',1214,1214),('»ÇÕ³Ò',1215,1215),('»Êѹµì',1216,1216),('»Êѹ¹ì',1217,1217),('»Í§À¾',1218,1218),('»Ñ­¨ÃÑÈÁÔì',1219,1219),('»Ñ­­Ò',1220,1220),('»Ñ­­Ò¾Ã',1221,1221),('»Ñ­­Ò¾Å',1222,1222),('»Ñ³ÃÊÕ',1223,1223),('»Ñ·Á',1224,1224),('»Ñ·ÁÒ',1225,1225),('»Ñ·ÁÒÇ´Õ',1226,1226),('»ÔÂÃѵ¹ì',1246,1246),('»ÔÂÁÒÀóì',1245,1245),('»ÔÂÇÃó',1247,1247),('»ÔÂÇѲ¹ì',1248,1248),('»ÔÂÐ',1250,1250),('»ÔÂÐÁÒÈ',1259,1259),('»ÔÂÐÈÑ¡´Ôì',1260,1260),('»ÔÂЪÑÂ',1251,1251),('»ÔÂйѹ·ì',1253,1253),('»ÔÂй¹·ì',1252,1252),('»ÔÂйت',1254,1254),('»ÔÂоÃ',1256,1256),('»ÔÂоѹ¸ì',1257,1257),('»ÔÂоѹ¸Øì',1258,1258),('»ÔÂо§Èì',1255,1255),('»ÔÂÈÑ¡´Ôì',1249,1249),('»ÒÃÔªÒµ',1230,1230),('»ÒÃÔªÒµÔ',1231,1231),('»ÒÃÕ³Ò',1233,1233),('»ÔÂÒ¾Ã',1261,1261),('»ÒÃԾѹ¸ì',1232,1232),('»Ô¡ҭ¨¹ì',1239,1239),('»Ô¹ѹ·ì',1240,1240),('»Ô¹ү',1241,1241),('»Ô¾Ã',1244,1244),('»Ô¾§Èì',1242,1242),('»Ô¾§Éì',1243,1243),('»Ôè¹ÁÒ⹪',1238,1238),('»Ôè¹Á³Õ',1237,1237),('»Ò˹ѹ',1234,1234),('»ÔÅѹ­Ò',1262,1262),('»Ò³ÔÊÃÒ',1227,1227),('»ÔµÔ',1235,1235),('»ÔµÔÇѪÃì',1236,1236),('»Ò¹',1228,1228),('»Ò¹à¾ªÃ',1229,1229),('»¡Ã³ì',1119,1119),('»®ÔÁÒ',1120,1120),('»¯ÔÁÒ',1123,1123),('»¯Ô­­Ò',1121,1121),('»¯Ô¾Å',1122,1122),('»°ÁÇѲ¹ì',1124,1124),('»³Ô´Ò',1126,1126),('»³ÔµÒ',1127,1127),('»³ªÑÂ',1125,1125),('»·ØÁ',1128,1128),('»·ØÁÒ',1130,1130),('»·ØÁ¾Ã',1129,1129),('»¹Ñ´´Ò',1131,1131),('»Ø³³ÂÒ',1263,1263),('¼à´ÔÁ',1277,1277),('¼èͧÈÃÕ',1279,1279),('¼èͧ¾Ãó',1278,1278),('¼è͹»ÃÐÀÒ',1280,1280),('¼èÒ¡ÒäÅѧ¡Í§¡ÅÒ§Êӹѡ»ÅÑ´¡Ãا෾ÁËÒ¹¤Ã',1285,1285),('¼éÒ¢¹Ë¹ÙªÔ¹àΧ',1281,1281),('¼éÒ¢¹Ë¹Ù«Ô¹àΧ',1282,1282),('¼éҢع˹٫ԹàΧ',1283,1283),('¼èÒ¹¿éÒ àÍ繨Ôà¹ÕÂÃÔè§',1284,1284),('¼ÒÊØ¢',1286,1286),('¼ÙéãË­èàÅç¡',1289,1289),('¼Ùé༴ç¨',1288,1288),('¼¡Ò¡Ãͧ',1272,1272),('¼¡Ò¾Ãó',1273,1273),('¼§',1274,1274),('¼¨§¨Ôµµì',1275,1275),('¼´Ø§ÈÑ¡´Ôì',1276,1276),('¼ØÊ´Õ',1287,1287),('½èÒ¡ÒäÅѧ¡Í§¡ÅÒ§ Êӹѡ»ÅÑ´¡Ãا෾ÁËÒ¹¤Ã',1293,1293),('¾Ã',1319,1319),('¾ÃÁ§¤Åà¿ÍÃì¹Ôà¨ÍÃì',1338,1338),('¾ÃóÃÒ³ì',1344,1344),('¾ÃóÊóì',1345,1345),('¾ÃóÕ',1347,1347),('¾ÃóԡÒ',1346,1346),('¾Ãó·ÔÀÒ',1339,1339),('¾Ãó¹ÔÀÒ',1340,1340),('¾Ãó»ÃÐä¾Ç´Õ',1341,1341),('¾Ãó¾ÃÃÉ',1342,1342),('¾Ãó¾ÔÁÅ',1343,1343),('¾Ãà·¾',1326,1326),('¾ÃøԴÒ',1348,1348),('¾Ãà¾ç­',1337,1337),('¾ÃÇÔÁÅ',1349,1349),('¾ÃÇÔäÅ',1350,1350),('¾ÃÐÃÒÁ 3 Î͹´éÒ¤ÒÃìÊì',1360,1360),('¾ÃÐÃÒÁ 3 ¤ÒÃìà«ç¹àµÍÃì',1359,1359),('¾ÃлÃÐá´§ Î͹´éÒ¤ÒÃìÊì',1357,1357),('¾ÃлÃÐá´§ Î͹´éÒ¤ÒÃìÊì ¨Ó¡Ñ´',1358,1358),('¾ÃÊÃǧ',1353,1353),('¾ÃËÁ¾Ñ²¹ì',1355,1355),('¾ÃÊÇÃäì',1354,1354),('¾ÃéÍÁªÑÂ',1356,1356),('¾ÃÈÑ¡´Ôì',1351,1351),('¾ÃÈÔÃÔ',1352,1352),('¾ÃÕàÁÕÂÃìà¤ÁÔ¤ÑÅ á͹´ì¾ÅÒʵԡ',1362,1362),('¾ÃÕàÁÕÂÃìÍÔ¹àµÍÃìÅÔ««Ôè§',1363,1363),('¾ÃÔéÁà¾ÃÒ',1361,1361),('¾Ã¡ÇÕ',1320,1320),('¾Ã¨Ôµµì',1321,1321),('¾ÃªÑÂ',1322,1322),('¾Ã·ÔÀÒ',1325,1325),('¾Ã·Ô¾Âì',1323,1323),('¾Ã·Ô¾Ò',1324,1324),('¾Ã¹ÀÒ',1328,1328),('¾Ã¹ÔµÔ¿ÔÅìÁá͹´ìÇÕ´ÕâÍ',1329,1329),('¾Â¹µì',1317,1317),('¾Ã¹·Õ',1327,1327),('¾Ã¾Ãó',1332,1332),('¾Ã¾ÔÁÅ',1335,1335),('¾Ã¾ÔäÅ',1336,1336),('¾Ã¾Å',1333,1333),('¾Ã¾ÅÒ§ÒÁ',1334,1334),('¾Ã¾§Éì',1330,1330),('¾Ã¾¹Ò',1331,1331),('¾Âا',1318,1318),('¾Ç§Ãѵ¹ì',1372,1372),('¾Ç§à¾ç­',1371,1371),('¾Ç§·Í§',1370,1370),('¾ÈÔ¹',1373,1373),('¾ÊØࡵÔì',1374,1374),('¾ÑʾÃ',1391,1391),('¾ÑÅÅÀ',1390,1390),('¾ÑªÃ',1376,1376),('¾ÑªÃÇäÅ',1377,1377),('¾ÑªÃÒ',1378,1378),('¾ÑªÃÕ',1382,1382),('¾ÑªÃÒÀóì',1379,1379),('¾ÑªÃÕÀóì',1384,1384),('¾ÑªÃÒÀÒ',1380,1380),('¾ÑªÃÔ¹·Ãì',1381,1381),('¾ÑªÃÕ¾Ã',1383,1383),('¾Ñª¹Õ',1375,1375),('¾Ñ²·ÇÕ',1385,1385),('¾Ñ²¹Ð',1387,1387),('¾Ñ²¹ªÑÂ',1386,1386),('¾Ñ²¾§Éì',1388,1388),('¾Ñ·¸ì¸ÕÃÒ',1389,1389),('¾Ô ÈÁÑÂ',1397,1397),('¾Õ.àÍÊ.¨Õ ÅÔÊ«Ôè§',1439,1439),('¾Õ.àÍÊ.¾ÅÒʵԡºÃÒà´ÍÃì á͹´ì«Ñ¹',1440,1440),('¾Õ.àÍÊ.¾ÅÒʵԡºÃÒà´ÍÃìá͹´ì«Ñ¹',1441,1441),('¾Õ.«Õ.àºÊ·ì ¤ÃÕàÍ·',1438,1438),('¾ÔÃÁÂì',1430,1430),('¾ÔÁÀÒ',1428,1428),('¾ÕÃÇزÔ',1446,1446),('¾ÕÃÐ',1448,1448),('¾ÕÃÐÈÑ¡´Ôì',1451,1451),('¾ÕÃоÅ',1450,1450),('¾ÕÃо§Èì',1449,1449),('¾ÕÃÈÔÅ»ì',1447,1447),('¾ÒÃҡ͹ÍÔ¹â¿à·¤',1396,1396),('¾ÔÁÅ',1429,1429),('¾ÔàªÉ°',1409,1408),('¾ÔàªÉ°ì',1408,1409),('¾Ôય',1406,1406),('¾Ôય°ì',1407,1407),('¾Òâµà¤ÁÕÍصÊÒË¡ÃÃÁ',1394,1394),('¾Õ÷ѵ',1444,1444),('¾Ôà·¾',1415,1415),('¾ÔÀ¾',1420,1420),('¾ÔÁ¾ìÀóì',1425,1425),('¾ÔÁ¾ìÀѤ',1426,1426),('¾ÔÁ¾ìã¨',1421,1421),('¾ÔÁ¾ìÇÔÁÅ',1427,1427),('¾ÔÁ¾ìª¹¡',1422,1422),('¾ÔÁ¾ì»ÃоÃó',1423,1423),('¾ÔÁ¾ì¾Ã',1424,1424),('¾ÕþѲ¹ì',1445,1445),('¾ÔÃس',1431,1431),('¾ÔÊÁÑÂ',1434,1434),('¾ÔÈÔÉ°ì',1432,1432),('¾ÔÊÔÉ°ì',1437,1437),('¾ÔÊÔ°',1435,1435),('¾ÔÊÔ·¸Ôì',1436,1436),('¾ÔɳØ',1433,1433),('¾Ô¨ÔµÃÒ',1398,1398),('¾ÔªÂÒ',1401,1401),('¾ÔªÑÂ',1402,1402),('¾ÔªÑÂÇѲ¹ì',1403,1403),('¾ÔªÔµ',1404,1404),('¾ÔªÔµ¾Å',1405,1405),('¾Ôª­ì',1399,1399),('¾Ôª´Ò',1400,1400),('¾Ô±ÙÃÂì',1410,1410),('¾Ò³Õ',1393,1393),('¾Ò³ÔªÂì',1392,1392),('¾Ô³ªØ´Ò',1411,1411),('¾Ô³¹ÀÒ',1412,1412),('¾Ô·ÂÒ',1413,1413),('¾Ô·Ñ¡Éì',1414,1414),('¾Ô¸Ò¹¡Ã',1416,1416),('¾Õ¹Ô¡«ì àÍç¡«ìà¾ÃÊ',1442,1442),('¾Õ¹Ô¡«ìàÍç¡«ìà¾ÃÊ',1443,1443),('¾Ò¹·Í§',1395,1395),('¾Ô¹¹ÔÀÒ',1417,1417),('¾ÔºÙÅÂì',1418,1418),('¾Ô¾Ñ²¹ì',1419,1419),('¾Ùŷͧ¾Ãç;à¾ÍÃìµÕé_',1454,1454),('¾ÙżÅ',1455,1455),('¾Ù¹ÈÑ¡´Ôì',1453,1453),('¾Ù¹¾Ñ¹¸ì',1452,1452),('¾Åà·¾',1366,1366),('¾ÅÊÔ·¸Ôì',1369,1369),('¾Å¡Äɳì',1364,1364),('¾ÅªÑÂ',1365,1365),('¾Å¾ÑªÃì',1367,1367),('¾Å¾Ñ²¹ì',1368,1368),('¾§ÈìÀѤ',1300,1300),('¾§Èìà¡ÕÂõÔ',1294,1294),('¾§Èìà·¾',1296,1296),('¾§Éìà·¾',1302,1302),('¾§ÉìÈÑ¡´Ôì',1304,1304),('¾§ÉìÊѹµì',1305,1305),('¾§ÈìÊØà¡ÉÁ',1301,1301),('¾§Éì͹ѹµì',1306,1306),('¾§ÈìªÒÂ',1295,1295),('¾§Éì¾Ã',1303,1303),('¾§Èì¾Ñ¹¸ì',1298,1298),('¾§Èì¾Ô¾Ñ²¹ì',1299,1299),('¾§È¸Ã',1297,1297),('¾¨ÁÒÅÂì',1312,1312),('¾¨ÁÒ¹',1311,1311),('¾¨¹ì',1307,1307),('¾¨¹Ò',1308,1308),('¾¨¹ÕÂì',1310,1310),('¾¨¹Òö',1309,1309),('¾¹Á',1313,1313),('¾¹ÁªÑÂ',1314,1314),('¾¹ÒÊѹ±ì',1315,1315),('¾¹Ô´Ò',1316,1316),('¿Õ¹Ô¡«ì àÍç¡«ìà¾ÃÊ',1493,1493),('¿ÅØÊÊÔ¡à¤Á',1492,1492);
-SELECT name FROM t1 ORDER BY name;
-name
-+45 BRETT
-+55 BRETT
-+56 BRETT
--.55 BRETT
--45 BRETT
--55 BRETT
-.-55 BRETT
-.55 BRETT
-45 BRETT
-5 5 BRETT3
-5 5 BRETT2
-5 5 BRETT1
-5-5 BRETT
-55 BRETT
-55+ BRETT
-55- BRETT
-55. BRETT
-CHEE KUNG FOOK
-CHEN CHIA YI
-CHI WAI DAVIT
-GEORGE
-KAWAIJIT
-KAWALJIT
-KOJI
-LOUIS
-PETER
-SHERMAN
-TAN
-Willem Arnold
-WONG
-WU
-¡.µÃÕ·Ô¾Âì ¤Í¹«ÑÅáµ¹·ì
-¡ª¡Ã
-¡ª¾Ã
-¡ªÁÅ
-¡µÑ­­Ù
-¡¹¡
-¡¹¡¡Ò­¨¹ì
-¡¹¡ªÑÂ
-¡¹¡¹ÔÀÒ
-¡¹¡¹Øª
-¡¹¡¾Ã
-¡¹¡Ãѵ¹ì
-¡¹¡Ä·¸Ôì
-¡¹¡ÇÃó
-¡¹¡ÈÃÕ
-¡¹¡Ò­¨¹ì
-¡¹ÔÉ°Ò
-¡ÁÅ
-¡ÁũѵÃ
-¡ÁÅ·Ô¾Âì
-¡ÁžÃ
-¡ÁžÃó
-¡ÁÅÁÒÅÂì
-¡ÁÅÃѪµì
-¡ÁÅÃѵ¹ì
-¡ÁÅÇÃó
-¡Ã¡¹¡
-¡Ã¡¾Ã
-¡Ã¡ÁÅ
-¡ÃªÑÂ
-¡Ã³ì
-¡Ã¹Ñ¹·ì
-¡Ã»ÃÕÂÒ
-¡ÃíԡÒÃì
-¡ÃóԡÒ
-¡ÃóԡÒÃì
-¡ÃÇÅÑÂ
-¡ÃÇÔ·Âì
-¡Ãͧá¡éÇ
-¡Ãͧ·Ô¾Âì
-¡ÃШ¡ä·ÂÍÒ«ÒÎÕ
-¡ÃÕ±Ò
-¡Ãا෾¼ÅÔµàËÅç¡
-¡Ãاä·Â¤ÒÃìàÃé¹·ì ÍÔ¹àµÍÃì๪Ñè¹á¹Å
-¡Ãاä·ÂÍØ»¡Ã³ì
-¡ÃسÒ
-¡ÄªÇÃó
-¡Äµº¾Ô¸
-¡ÄµÂÒ
-¡ÄµÔ¡Ò¹·ì
-¡ÄµÔÂÒ
-¡ÄȾÃó
-¡ÄÉ®Ò
-¡ÄÉ®Õ
-¡ÄɮվÃ
-¡Äɳ¾¨¹ì
-¡Äɳ¾Å
-¡ÄɳÐ
-¡ÄɳÒ
-¡ÄɳÕ
-¡ÄÉ´Ò
-¡ÇÕ
-¡ÉÁÒ
-¡ÉÔª­ì
-¡ÉÔ´ÔÈ
-¡ÊÔÇѹ
-¡èÍà¡ÕÂõÔ
-¡Íº¡ØÅ
-¡Íºá¡éÇ
-¡ÍººØ­
-¡ÍºÅÒÀ
-¡Ñ ÅÂÒ
-¡Ñ­ª¾Ã
-¡Ñ­­ÀѤ
-¡Ñ­­ìÇÃÒ
-¡Ñ­­ÒÁÒÈ
-¡Ñ­­ÒÇÕÃì
-¡Ñ³°ªÒ
-¡Ñ³°Ô¡Ò
-¡Ñ³·ÔÁÒ
-¡Ñ¹µÔ¡Ã
-¡Ñ¹µì
-¡Ñ¹¸ÔªÒ
-¡Ñ¹¸ÔÁÒ
-¡Ñ¹ÂÒÃѵ¹ì
-¡ÑÁ»¹Ò¶
-¡ÑÁ»¹Ò·
-¡ÑÅÂÒ
-¡ÑÅÂÒ³Õ
-¡ÑÅÂÒÃѵ¹ì
-¡Ò­¨¹ÇÃó
-¡Ò­¨¹Ò
-¡Ò¹´Ò
-¡Ò¹µìÃÇÕ
-¡Ò¹µì
-¡ÒÂÊÔ·¸Ôì
-¡ÒÃÇÔÍÃ
-¡ÒÃسÕ
-¡ÒÈÔ
-¡Ó¸Ã
-¡Ó¾Å
-¡ÓäÃ
-¡Óá˧
-¡Ô觡ҭ¨¹ì
-¡Ô¨µÔÂÒ
-¡Ô¨ÇÃó
-¡ÔµµÔ
-¡ÔµµÔ¡Ñ¹µì
-¡ÔµµÔªÑÂ
-¡ÔµµÔ­Ò
-¡ÔµµÔ¹Ñ¹·ì
-¡ÔµµÔ¾§Èì
-¡ÔµµÔ¾§Éì
-¡ÔµµÔ¾Å
-¡ÔµµÔ¾Ñ²¹ì
-¡ÔµµÔ¾Ñ¹¸ì
-¡ÔµµÔÁÒ
-¡ÔµµÔÂÒ
-¡ÔµµÔÃѵ¹ì
-¡ÔµµÔÇѲ¹ì
-¡ÔµµÔÈÑ¡´Ôì
-¡ÔµÔ¡Ã
-¡ÔµÔ¡Ã³ì
-¡ÔµÔ¡Ñ­­Ò
-¡ÔµÔªÒ­
-¡ÔÁÅÑé§
-¡ÕõÔ
-¡ØÁØ·¾Ñ¹¸ì
-¡ØéÂà«é§ ÍÔÁ»ÍÃìµ á͹´ì àÍç¡«ì»ÍÃìµ
-¡ØŹѹ·ì
-¡ØŹÒÃÕ
-¡ØÅÂÒ
-¡ØÅÅ´Ò
-¡ØÅÇ´Õ
-¡ØÅÈÔÃÔ
-¡ØÊØÁÒ
-¡ØËÅÒº
-¡Ùê´ÇÔÅ ÍÔ¹´ÑʵÃÕé
-à¡ç¨¾ÔÃس
-ࡪÒ
-ࡳԡÒ
-ࡵØÁ³Õ
-à¡ÃÔ¡
-à¡ÃÔ¡ä¡Ã
-à¡ÃÔ¡¾§Éì
-à¡ÃÕ§ä¡Ã
-à¡ÃÕ§ªÑÂ
-à¡ÃÕ§§ÍÔ¹àµÍÃì๪Ñè¹á¹Å
-à¡ÃÕ§ÈÑ¡´Ôì
-à¡È¡ØÅÀÒ
-à¡ÈÃÒ
-à¡ÈÃÔ¹·Ãì
-à¡ÈÇÅÕ
-à¡ÈÈÔÃÔ
-à¡ÈÊØ´Ò
-à¡ÈÔ¹Õ
-à¡É³Õ
-à¡É´Ò
-à¡ÉÁ
-à¡ÉÁÊѹµì
-à¡ÉÃÒ
-à¡ÉÃÕ
-à¡ÉÕÂÃ
-à¡ÊÃ
-à¡ÊÃì
-à¡ÕÂõÔ
-à¡ÕÂõԻÀÒ
-à¡ÕÂõԾ§Éì
-à¡ÕÂõÔÈÑ¡´Ôì
-à¡ÕÂõÔÊÇÑÊ´Ôì
-à¡×éÍ¡ÙÅ
-á¡éÇã¨
-á¡éÇ
-â¡Ážѹ¸ì
-â¡àÁÈ
-â¡ÅºÍÅ ¤Í¹à¹ç¤ªÑè¹Êì
-â¡ÇÔ·
-â¡ÇÔ·Âì
-â¡ÇÔ¹
-â¡àÇȹì
-â¡ÈÅ
-â¡ÊÔ¹·Ãì
-ä¡Ã¤Ó
-ä¡Ãà·¾
-ä¡Ã¸ÇѪ
-¢¨Ã
-¢¨Ãà¡ÕÂõÔ
-¢¨ÃÈÃÕ
-¢¨ÃÈÑ¡´Ôì
-¢¹ÔÉ°Ò
-¢¹ÔÉ°ì
-¢ÇÑ­ã¨
-¢ÇÑ­ªÑÂ
-¢ÇÑ­à´×͹
-¢ÇÑ­µÒ
-¢ÇÑ­à¾çªÃ
-¢ÇÑ­àÁ×èͧ
-¢ÇÑ­ÂؾÒ
-¢ÇÑ­ÃØé§
-¢ÇÑ­àÃ×͹
-¢ÑµµÔÂÒ³Õ
-¢éÒÇÍÔèÁ·Ô¾Âì
-¢Ø¹·Í§
-á¢ä¢
-¤§¡ÄÈ
-¤§à´ª
-¤àª¹·Ãì
-¤³Ò¡Ã
-¤³ÒÇزÔ
-¤³ÔÈÃ
-¤³ÔÊÃ
-¤³ØµÁì
-¤à³È
-¤¸Ò
-¤à¹Âì
-¤Á¡ÃÔª
-¤Á¨Ñ¡Ã
-¤Áà¾çªÃ
-¤ÃÒ¿·ìà´ÍÐàºÊ·ì
-¤ÍÊÁÔ¤ ¤Í¹¤ÍÃì´ ¤ÍÃì»ÍàêÑè¹
-¤Ò«ÙâÍÐ
-¤ÒÃìâ»Ãà¿ÊªÑè¹á¹Å
-¤ÒÇÒ¤Ô¹
-¤Óó
-¤Óá˧
-¤ÔÁ§¤ì
-¤Ø³Ò¡Ã
-¤Ø³Õ·Ã
-¤ÙèºØ­
-¤Ù»Ò¹Ò
-ठÊËÒÂÍÔÁà»ê¡«ì
-à¤.«Õ.¾Õ. áÁªªÕ¹à¹ÍÃÕè
-षշÕÅÔÊ«Ôè§
-ह áÁç¡«ì (»ÃÐà·Èä·Â)
-ह áÁ¡«ì (»ÃÐà·Èä·Â)
-à¤Ã×ÍÇÑÅÂì
-᤹¹Ù ÍÔ¹àµÍÃìà·Ã´
-á¤Ð¨éÍÂ
-â¤Ãà¹Ê (ä·ÂᏴì)
-â¦ÉÔµ
-§ÒÁ¹Ô¨
-§ÒÁà¾ç­
-à§Ô¹·Ø¹à¡ÕÂõԹҤԹ
-¨§¡Å
-¨§¡Å³Õ
-¨§ÃÑ¡
-¨§ÃÑ¡Éì
-¨§Åѡɳì
-¨µØ¾Ã
-¨µØ¾Å
-¨µØ¾Ñ¹¸ì
-¨µØç¤ì
-¨µØÄ·¸Ôì
-¨ÃÃÂÒ
-¨ÃǾÃ
-¨ÃÇÃø¹ì
-¨ÃÑ­
-¨ÃÑÅ
-¨ÃÑʪÑÂ
-¨ÃÑʾÅ
-¨ÃÔ¹·Ãì
-¨ÃÔ¹¸Ã
-¨ÃÔÂÒ
-¨ÃÔÂÒÀóì
-¨ÃظԴÒ
-¨ÃÙ­
-¨àÃ
-¨àÃÈÑ¡´Ôì
-¨ÍÁ¢ÇÑ­ã¨
-¨Ñ¡Ã¡Äª
-¨Ñ¡Ã¡Äɳì
-¨Ñ¡Ã¾Ñ¹¸ì
-¨Ñ¡ÃÇÒÅ
-¨Ñ¡Ãѵ¹ì
-¨Ñ¡ÃÔ¹·Ãì
-¨Ñ¡ÃÕ
-¨Ñ¡ÉÇѯ
-¨Ñ´ËÒ§Ò¹ÎÔÇáÁ¹àÍ繨Ôà¹ÕÂÃÔè§
-¨ÑµÃ´ÒÇ
-¨Ñ¹¨ÔÃÒ
-¨Ñ¹··Õ
-¨Ñ¹·¹Ò
-¨Ñ¹·Ã
-¨Ñ¹·Ãìà¨éÒ
-¨Ñ¹·Ãì·Ô¾Âì
-¨Ñ¹·Ãì¸ÔÀÒ
-¨Ñ¹·Ãì¹ÀÒ
-¨Ñ¹·Ãì¾Ã
-¨Ñ¹·Ãìà¾ç­
-¨Ñ¹·ÃìÃѵ¹ì
-¨Ñ¹·ÃìÇÔÁÅ
-¨Ñ¹·ÃìÇÔäÅ
-¨Ñ¹·ÃìÊØ´Ò
-¨Ñ¹·Ô¡Ò
-¨Ñ¹·ÔÀÒ
-¨Ñ¹·ÔÁÒ
-¨Ñ¹·ÔÁÒÀóì
-¨Ñ¹·ÔÃÒ
-¨ÒµØ¾Ã
-¨ÒµØç¤ì
-¨ÒµØùµì
-¨ÒÃÕÃѵ¹ì
-¨ÒÃسÕ
-¨ÒÃسÕÂì
-¨ÒÃعѹ
-¨ÒÃغصÃ
-¨ÒÃØÃѵ¹ì
-¨ÒÃØÇÃó
-¨Ó¹§
-¨Ó¹§¤ì
-¨Ó»Õ
-¨ÓÃÑÊ
-¨ÓàÃÔ­
-¨ÓÅͧ
-¨Ô³³ì
-¨Ôµµì¹ÔÉÒ
-¨ÔµµÁÒÊ
-¨ÔµµÒ
-¨ÔµµÔ
-¨ÔµµÔ¹¹Ñ¹·ì
-¨Ôµµì
-¨ÔµÃÅ´Ò
-¨ÔµÃÒ
-¨ÔµÃÒÀóì
-¨Ô¹´Ò
-¨Ô¹µì¨Ø±Ò
-¨Ô¹µ¹Ò
-¨ÔþÃ
-¨Ôþѹ¸ì
-¨ÔÃÀÑ·Ã
-¨ÔÃÀÒ
-¨ÔÃÇÃó
-¨ÔÃÇѲ¹ì
-¨ÔÃÈÑ¡´Ôì
-¨ÔÃÊØ´Ò
-¨ÔÃоÃ
-¨ÔÃоÃó
-¨ÔÃÐÀÒ
-¨ÔÃÐÈÑ¡´Ôì
-¨ÔÃѪ´Ò
-¨ÔÃÑ°µÔì
-¨ÔÃÒ¤Á
-¨ÔÃҹت
-¨ÔÃÒ¾Ã
-¨ÔÃÒÀóì
-¨ÔÃÒÀÒ
-¨ÔÃÒÂØ
-¨ÔÃÒÇÃó
-¨ÔÃÒÇÑÅÂì
-¨ÔÃÒÇزÔ
-¨Õ·Õ«Õ ·Ã§¾Ñ¹¸ì)
-¨ÕþÃó
-¨ÕÃÈÑ¡´Ôì
-¨ÕÃйѹ·ì
-¨ÕÃÐÇѲ¹ì
-¨ÕÍÕ á¤»»ÔµÍÅ (»ÃÐà·Èä·Â)
-¨ÕâÍà·¤¹Ô¤ (ä·ÂᏴì)
-¨Ø±Ò·Ô¾Âì
-¨Ø±Ò¾Ñ¹¸ì
-¨Ø±ÒÁÒÈ
-¨Ø±ÒÁÒÊ
-¨Ø±ÒÃѵ¹ì
-¨Ø±ÒÇÃó
-¨ØÃÕÃѵ¹ì
-¨ØÅÅ´Ò
-¨ØÌÒ
-¨ØÌÒÀóì
-¨ØÌÒÀÒ
-¨ØÌÒÅѡɳì
-ਵ¹ì
-ਹ
-ਹ¨ÔÃÒ
-ਹµì³Ã§¤ì
-ਹà¹ÍÃÑÅ乫ì (»ÃÐà·Èä·Â)
-ਹÇÔ·Âì
-à¨ÃÔ­
-à¨ÃÔ­ªÑÂËÁéÍá»Å§ä¿¿éÒ
-à¨ÃÕ§
-à¨É®Ò
-à¨éÒ¾ÃÐÂÒÁÒÃì¤
-à¨ÔÁªÑÂ
-à¨ÕÂÁ¨Ôµ
-á¨èÁ
-ã¨ÊÇÇäì
-©ÅÇÂ
-©Åͧ
-©ÅÒ´
-©ÇÕÇÃó
-©Íé͹
-©ÑµÃªÑÂ
-©ÑµÃÀóì
-©ÑµÃÈÔÃÔ
-©Ñ¹·¹Ò
-©Ñ¹·Ãѵ¹ì
-©×èÍ ¨Ôé¹ ÎÑéÇ
-©×èͨÔé¹ÎÑéÇ
-à©ÅÔÁ
-à©ÅÔÁ¢ÇÑ­
-à©ÅÔÁªÑÂ
-à©ÅÔÁªÒµÔ
-à©ÅÔÁ¾Ñ¹¸Øì
-à©ÅÕÂÇ
-à©Ô¹
-â©ÁÅ´Ò
-â©ÁÊØ´Ò
-ª.ÊÂÒÁ¨Ñ¡ÃÂÒ¹à´ç¡àÅè¹
-ª®ÒÃѪ
-ª´Ò¡Ã
-ª¹¹Ñ¹·ì
-ª¹¹ÔÈÒ
-ª¹ÁìÊØÇÃó
-ª¹Ð
-ª¹Ð⪵Ô
-ª¹Ñ­­Ò
-ª¹Ñ°
-ª¹Ñ¹Àóì
-ª¹ÒÀÒ
-ª¹Ô´Ò
-ªÁ
-ªÁ¾Å
-ªÁ¾Ù¹Øª
-ªÁ¾Ù¹Ø·
-ªÁÀÑÊÊÃ
-ªÁÀٹت
-ªÁѾÃ
-ªäÁ¾Ã
-ªÂ¹
-ªÂÒ¾Å
-ªÂÒÀóì
-ªÃѪÊÃÒ
-ªÃѶ¨Ñ¹·Ãì
-ªÃÑÊÃÒ
-ªÃÔ¹·Ãì
-ªÃÔ¹Ãѵ¹ì
-ªÅ¸ÔªÒ
-ªÅ¸Õ
-ªÅÍ
-ªÅÍÁ
-ªÅÒ¡Ã
-ªÅÔ¡Ò
-ªÅÔ´Ò
-ªÅÔµ
-ªÅÔµÒ
-ªÇ¹
-ªÇ¹ªÁ
-ªÇ¹¾ÔÈ
-ªÇÅÔµ
-ªÇÔÈÒ
-ªèͩѵÃ
-ªèÍ·Ô¾Âì
-ªèÍÍÑ­ªÑ­
-ªèÍ
-ªÐ¹ÔÅ
-ªÐÍé͹
-ªÑªªÑÂ
-ªÑª®Ò
-ªÑªÀ³
-ªÑªÀÑÊÊÃ
-ªÑªÁ³±ì
-ªÑªÁ¹±ì
-ªÑªÇÒÅÂì
-ªÑªÇÒÅìÂ
-ªÑ­­Ò
-ªÑ­ÉÒ
-ªÑÂà¨ÃÔ­ãªèËÅÕʵÕÅ
-ªÑª¹Ð
-ªÑªҭ
-ªÑ³ç¤ì
-ªÑ¸ÇѲ¹ì
-ªÑ¹¤Ã
-ªÑ¹ѹ·ì
-ªÑ¾Ã
-ªÑ¾Å
-ªÑÂÀÑ·Ã
-ªÑÂÁ§¤Å
-ªÑ§³ì
-ªÑÂÂÈ
-ªÑÂÂÐ
-ªÑÂÂØ·¸
-ªÑÂÃѵ¹ì
-ªÑÂÇѲ¹ì
-ªÑÂÊÔ·¸Ôì
-ªÑÂÊÔ¹¸Øì
-ªÒ­
-ªÒ­ªÑÂ
-ªÒ­³Ã§¤ì
-ªÒ­ÂØ·¸
-ªÒ­ÈÑ¡´Ôì
-ªÒµÃÕ
-ªÒµÔªÒÂ
-ªÒ¹
-ªÒ¹¹·ì
-ªÒÂ
-ªÒÅÕ
-ªÒÇѳÂì
-ªÓ¹Ò­
-ªÓ¹Ô
-ªÔ´ª¹¡
-ªÔ¹
-ªÔ¹¾Ñ¹¸ì
-ªÔ¹Ãѵ¹ì
-ªÔ¹ÇѲ¹ì
-ªÕÇÒ¾Ã
-ª×蹨Եµì
-ªØ´Ò¾Ã
-ªØµÔ¡Ò­¨¹ì
-ªØµÔÁÒ
-ªØÁ¾Ã
-ªØÁ¾Å
-ªØÁÈÔÃÔ
-ªØÁÊÒÂ
-ªØÅÕ¾Ã
-ªÙà¡ÉÁ
-ªÙà¡ÕÂõÔ
-ªÙ¨Ôµ
-ªÙ¨Ôµµì
-ªÙªÑÂ
-ªÙªÒµÔ
-ªÙªÕ¾
-ªÙ¾§Èì
-ªÙ¾§Éì
-ªÙÈÑ¡´Ôì
-ય°¡Ã
-àªÉ°Ò
-àªÍÃÔè§-¾ÅÒÇ á͹ÔÁÑÅ àÎéŪ
-àªÍÃÔè§-¾ÅÒÇá͹ÔÁÑÅàÎçŸ
-àªÒǹҭ
-àªÒÇÅÔµ
-àªÔ´¨Ôµµì
-àªÔ´ªÑÂ
-àªÔ´ÈÑ¡´Ôì
-àªÕ§àΧ¡ÒêèÒ§
-àªÕèÂǪҭ ÍÔ¹´ÑÊ·ÃÕè (1989)
-àªÕèÂǪҭÍÔ¹´ÑÊ·ÃÕè (1989)
-àªÕèÂǪҭÍÔ¹´ÑÊ·ÃÕ (1989)
-àªÕèÂǪҭÍÔ¹´ÑÊ·ÃÕè(1989)
-⪤
-⪤ªÑÂ
-⪵Ô
-⪵ÔÃÊ
-⪵ÔÇظ
-äªÂ¹Ñ¹·¹ì
-äªÂÁ§¤Å
-äªÂÃѵ¹ì
-äªÂÒ
-«è͹¡ÅÔè¹
-«Òâµéâ¤à¡ÕÂÇ ¡Ãا෾
-«Ô¡»éÒ (»ÃÐà·Èä·Â)
-«Õ àÍç¹ äÍ
-«Õ ´Õ àÍçÁ àÍç¹àµÍÃìä¾ÃÊì
-«Õ.´Õ.ÍصÊÒË¡ÃÃÁ
-«Õ.·Õ.à·àŤÍÁ
-«Õ.ÇÕ.àÍÊ.ÍÔ¹´ÑʵÃÕé
-«Õ´Õ ÍصÊÒË¡ÃÃÁ
-«ÕàÍç¹äÍàÍ繨Ôà¹ÕÂÃÔ觫Ѿ¾ÅÒÂ
-«Ù
-à«ÒÐ
-à«ÕÂÁà¡ÕÂÇ
-­Ò³ÀѤ
-­Õ¹ÀÒ
-¯Ç§¡ÁÅ
-°Ò¹Ñ¹·ì
-°Ò¹ÔµÂì
-°Ò¹ÔÊÃ
-°Ò»¹ÇÔ·Âì
-°Ôµ¡Ò¹µì
-°ÔµÔ¡Ò¹µì
-°ÔµÔ³Ñ°
-°ÔµÔà¸ÕÂÃ
-°ÔµÔ¹Ñ¹·ì
-°ÔµÔ¾§Èì
-°ÔµÔ¾Ã
-°ÔµÔÁÒ
-°ÔµÔÃѪµì
-°ÔµÔÃѵ¹ì
-±ÔÁÀì¹Øª
-³¸ÔµÒ
-³ÀÑ·Ã
-³Àѷáóì
-³Ã§¤ìªÑÂ
-³Ã§¤ì¾ÑªÃì
-³Ã§¤ìÄ·¸Ôì
-³Ã§¤ìÇÔ·Âì
-³Ã§¤ìÈÑ¡´Ôì
-³Ã§¤ì
-³Ã§ÃÑ¡Éì
-³Ã§Ä·¸Ôì
-³Ã§ÈÑ¡´Ôì
-³Ë·ÑÂ
-³ÑªªÒ
-³Ñ­­Ò
-³Ñ®°ÁÑÂ
-³Ñ®°ÇÃó
-³Ñ¯¾Å
-³Ñ°
-³Ñ°¡Ã³ÔÈÒ
-³Ñ°¡ÄµÒ
-³Ñ°¡Ò¹µì
-³Ñ°¢¨Ã
-³Ñ°ª¹Ñ­
-³Ñ°ªÒ
-³Ñ°°Ò
-³Ñ°µÂÒ
-³Ñ°¹¹·ì
-³Ñ°¹Ñ¹·ì
-³Ñ°»¡Ã³ì
-³Ñ°¾§Èì
-³Ñ°¾§Éì
-³Ñ°¾¨¹ì
-³Ñ°¾Ã
-³Ñ°¾Å
-³Ñ°ÀÙÁÔ
-³Ñ°Á¹
-³Ñ°ÁÒ
-³Ñ°ÂÒ
-³Ñ°ÇÃÕÂì
-³Ñ°ÇѪÃì
-³Ñ°ÇѲ¹ì
-³Ñ°ÇѵÔ
-³Ñ°ÇزÔ
-³Ñ°ÈÑ¡Âì
-³Ñ°ÊÃÑ­
-³Ñ°Ë·ÑÂ
-³Ñ°Ô¡Ò
-³ÔªÒ¡Ã
-³Õç¤ì
-³Øªª¹Ò
-´¹ÑÂ
-´¹Ø¾Å
-´ÃÃ쪹Õ
-´ÃسÕ
-´ÅÄ´Õ
-´ÅÄ·ÑÂ
-´Ç§¡ÁÅ
-´Ç§¨Ñ¹·Ãì
-´Ç§ã¨
-´Ç§´ÒÇ
-´Ç§à´×͹
-´Ç§¹ÀÒ
-´Ç§ºÅ
-´Ç§¾Ã
-´Ç§Á¹·Ãì
-´Ç§Ãѵ¹ì
-´Ç§Ë·ÑÂ
-´Í¡äÁé
-´ÒóÕ
-´ÒùÕÂì
-´ÒÃÒ¹ÕÅì
-´ÒÃÒÃѵ¹ì
-´ÒÃÒÇÃó
-´ÒÃÔ¡Ò
-´ÒÃÔ³Õ
-´ÒÃÔ¹
-´ÒÃسÕ
-´ÒÇ»ÃСÒÂ
-´ÒÇÃÕ
-´Óà¹Ô¹
-´Óç
-´Óç¤ì
-´ÓËÃÔ
-´Ôàá
-´ÔÈ¡ØÅ
-´Ôʷѵ
-´Õ.ºÕ.ä´Á͹´ì (»ÃÐà·Èä·Â)
-´ØžÅ
-´ØÅÂì¾Ñ²¹ì
-´ØÉ®Õ
-´ØɳÕ
-´ØÉ´Õ
-´ØÊÔµ
-´ØÊÔµà¤ÁÕÀѳ±ì
-à´ª
-à´ªÒ
-à´ÍФÇÍÅÔµäÇÃì
-à´×͹¹ÀÒ
-à´×͹à¾ç­
-â´Á
-ä´ÍСÅêÒÊ
-µèͨѡÃ
-µÐÅèÍÁÊÔ¹¾ÅÒʵԡ
-µÐÇѹ
-µÑ觨Ñè§ËÅÍ´ä¿
-µÒà¿ç´
-µØ꡵Ò
-µØéÁ
-µØëÂ
-µØÅÒÅѡɳì
-µØê
-àµçÁà´ª
-àµ×͹ã¨
-àµ×͹µÒ
-ãµé à«é§ «Ñ¹
-äµÃ·È
-äµÃà·¾
-äµÃç¤ì
-¶¹ÍÁÈÑ¡´Ôì
-¶¹Ôµ¾Å
-¶ÇÑÅ
-¶ÇÑÅÂì
-¶ÇÔÅ
-¶Ò³Ø¾§Èì
-¶ÒÇÃ
-à¶ÅÔ§ÈÑ¡´Ôì
-·¹§ÈÑ¡´Ôì
-·¹Ø
-·Ã§
-·Ã§ªÑ»Ñè¹·Í
-·Ã§¸ÃÃÁ
-·Ã§¾Å
-·Ã§ÇزÔ
-·Ã§ÈÃÕ
-·Ã§ÈÑ¡´Ôì
-·Ã§ÈÔÃÔ
-·ÃÃȹÕÂì
-·ÃѾÂì¶ÒÇäéÒÇÑÊ´Ø
-·ÇÔª
-·ÇÕ
-·ÇÕªÑÂ
-·ÇÕ»
-·ÇÕ¾Ã
-·ÇÕÇѲ¹ì
-·ÇÕÈÃÕ
-·ÇÕÈÑ¡´Ôì
-·È¾Ã
-·È¾Å
-·Í§¢ÒÇ
-·Í§¤Ó
-·Í§ãº
-·Í§»Ò¹
-·Í§¾Ñ¹¸ì
-·Í§¾Ñ¹¸Øì
-·Í§ÊØ¢
-·Í§ÍÔ¹·Ãì
-·Ñ¡ÉÁ³¹ì
-·Ñ´´ÒÇ
-·Ñº·ÔÁ
-·ÑȹÇÃó
-·ÑȹվÃ
-·ÑȹÕÂÒ
-·ÑȹÕÂì
-·ÑÈÇÃó
-·èÒ·ÃÒÂá¨é§ÇѲ¹Ò
-·Ô¦ÑÁ¾Ã
-·Ô¹á¤¹ ÍÔ¹´ÑÊ·ÃÕ
-·Ô¾Âì¾Ò¾Ã
-·Ô¾ÂìÇ´Õ
-·Ô¾ÂìÇÃó
-·Ô¾ÂìÇÃس
-·Ô¾ÂìÇÑÅÂì
-·Ô¾ÂìÇÒÃÕ
-·Ô¾ÂìÇÔÁÅ
-·Ô¾ÇÃó
-·Ô¾ÇÑÅÂì
-·Ô¾ÇÔÁÅ
-·Ô¾ÊØ´Ò
-·Ô¾Ò¡Ã
-·Ô¾ÒÇÃó
-·ÔÇÒ
-·ÔȾÅ
-·Õ «Õ ¾Õ ÍÔ¹´ÑÊ·ÃÕé
-·Õ.«Õ.«Õ.¾Ãç;à¾ÍÃìµÕé
-·Õ.«Õ.¾Õ.ÍÔ¹´ÑÊ·ÃÕé
-·Õ.àÍÊ.äÇÃì¤Ñ· á͹´ì áÁªªÕ¹¾ÒÃì·
-·Õ.äÍ.·Õ.ÍÔ¹àµÍÃì๪Ñè¹á¹Å
-·ÕâÍàÍ â´¿à¤Á ÍÔ¹´ÃÑʵÕé
-·ÙÁÔ¹Ô·Êì ºÔ«Ôà¹Ê
-·ÙÃ
-à·¾
-à·¾¾ÔºÙÅ
-෾ķ¸Ôì
-à·ÇÒ
-à·ÇÕ
-à·Ô´ä·
-ä·Â
-ä·Â ¤Í¹Êì á͹´ì ºÔÅ´Ôé§
-ä·Â ´Õ à͹ ·Õ ྐྵ·ì
-ä·Â-àÍà«Õ ¾Õ.ÍÕ.ä¾é¾ì
-ä·Âà¡ÃÕ§ÊÔ觷Í
-ä·Â¤Òà«ÎÔ¹
-ä·Âà¤ÁÕÀѳ±ì
-ä·Âà«ç¹·ÃÑÅ à¤ÁÕ ª¹)
-ä·Âà«ç¹·ÃÑÅà¤ÁÕ
-ä·Âà«çÅ·ÃÑÅà¤ÁÕ ª¹)
-ä·Â´Õà͹·Õྐྵ·ì
-ä·Âµ§¹ÔµµÔé§
-ä·Â¸¹Ò¾Ò³ÔªÂì
-ä·Â¸Ò¹Õà¤ÁÕ
-ä·Â¾ÃçÍ¡«ì
-ä·Âà¾ÔèÁ¾ÅÒʵԡ
-ä·ÂÂÙà¹Õ¹¤ÇÍÅÅÔµÕé
-ä·ÂàÇŤ͹ÍصÊÒ¡ÃÃÁ
-ä·ÂÍÔ¹àµÍÃì ¤ÍµµÍ¹¡Ò÷Í
-ä·ÂÍÔ¹àµÍÃì ÍÐâÃàÁµÔ¡Êì
-¸§ªÑÂ
-¸§äªÂ
-¸³Ñ°
-¸¹¡Ã
-¸¹¡Äµ
-¸¹¾Ã
-¸¹¾Å
-¸¹ÃѪ
-¸¹Ãѵ¹ì
-¸¹âè¹ì
-¸¹Ç´Õ
-¸¹ÇѲ¹ì
-¸¹Çѹ
-¸¹ÇÔµµ
-¸¹ÇÔ·Âì
-¸¹ÊÔ·¸Ôì
-¸¹ÐÃѪµì
-¸¹Ñª¸Ô´Ò
-¸¹Ñ­­Ò
-¸¹Ñ¹µì
-¸¹Ñ¹·ì
-¸¹ÑÊ
-¸¹Ò
-¸¹Ò¤ÒáÃاÈÃÕÍÂظÂÒ º
-¸¹Ò¤ÒÃÂÙâÍºÕ Ãѵ¹ÊÔ¹ ÊÒ¢ÒËÑÇËÁÒ¡
-¸¹ÒÀóì
-¸¹ÒÀÒ
-¸¹ÒÃÑ¡Éì
-¸¹ÒÇѪÃì
-¸¹Ô´Ò
-¸¹ÔÉ°Ò
-¸¹Ù
-¸à¹È
-¸à¹ÈÃì
-¸Á¹Ñ¹·ì
-¸ÃÃÁ¹Ù­
-¸ÃÃÁÈÒʵÃì
-¸Äµ
-¸ÇѪ
-¸ÇѪªÑÂ
-¸ÇÑÅÃѵ¹ì
-¸Ñª¡Ã
-¸Ñª¾Å
-¸ÑªÇ´Õ
-¸ÑªÇѲ¹ì
-¸Ñ­ª¹¡
-¸Ñ­­¸Ã
-¸Ñ­­¾Ñ²¹ì
-¸Ñ­³ÔªÒ
-¸Ñ­¹Ñ¹·ì
-¸Ñ­¾Ã
-¸Ñ­¾ÔÊÔ·¸Ôì
-¸Ñ­Ã´Ò
-¸Ò¡Ã
-¸Ò´Ò
-¸Ò¹Ô¹·Ãì
-¸Ò¹Õ
-¸Ò÷ԾÂì
-¸ÒÃÒ
-¸ÒÃÔ¹Õ
-¸Óç¤ì
-¸ÓçÃѵ¹ì
-¸Ô´ÒÃѵ¹ì
-¸ÔµÔ¹Ñ¹·ì
-¸Ô¹Õ¡Ò­¨¹ì
-¸ÕêÑÂ
-¸Õùت
-¸Õþ§Èì
-¸Õþ§Éì
-¸ÕþÅ
-¸ÕþѲ¹ì
-¸ÕÃÀÑ·Ãì
-¸ÕÃÀÒ¾
-¸ÕÃÇѲ¹ì
-¸ÕÃÈÑ¡´Ôì
-¸ÕÃÈÒ¹µÔ¾Ñ¹¸ì
-¸ÕÃÐ
-¸ÕÃЪÑÂ
-¸ÕÃоÅ
-¸ÕÃÐÇѲ¹ì
-¹ ¾´Å
-¹ à¿ÃÔÁàÁ¹¹Ôª ÍâÃáÁµÔê¡Êì ¾Õ·ÕÍÕ ÅÔÁÔàµç
-¹¤Ã
-¹¤Ã»°Á Î͹´éÒ¤ÒÃìÊì (1994)
-¹§ª¹¡
-¹§¹Øª
-¹§Åѡɳì
-¹·
-¹·Ô¹
-¹·Õ
-¹¹·ÈÑ¡´Ôì
-¹¾à¡éÒ
-¹¾´Å
-¹¾´ÅÂì
-¹¾·Ñµ
-¹¾¾§¤ì
-¹¾¾Ã
-¹¾¾Å
-¹¾ÁÒÈ
-¹¾Ãѵ¹ì
-¹¾ÄÔ·¸Ôì
-¹¾ÇÃó
-¹¾Ò¾Ã
-¹À´Å
-¹ÀÇÃó
-¹ÀÑÊÊÃ
-¹ÀÑÊÊØÇÃó
-¹ÀÒ
-¹ÀÒ¾Ã
-¹ÀÒÂØ·¸ì
-¹ÀÒÇÃó
-¹ÀÔ¹·Ã
-¹ÃªÑÂ
-¹Ã¾Å
-¹ÃÀÑ·Ãì
-¹ÃÒ
-¹ÃÔ¹·Ãìà´ª
-¹ÃÔ¹·Ãì
-¹ÃÔÈ
-¹ÃÔÉ°
-¹ÃÕ
-¹àÃÈ
-¹âõÁì
-¹Ä³Õ
-¹Ä´Õ
-¹Ä·¸Ôì
-¹ÄÁÅ
-¹ÄÁÒ³
-¹Å¾Ãó
-¹Ç¡Ã³ì
-¹Ç¾Å
-¹ÇÃѵ¹ì
-¹ÇŨѹ·Ãì
-¹ÇÅ©ÇÕ
-¹ÇžÃ
-¹ÇÅÅÐÍÍ
-¹Ñ­ªÅÒ
-¹Ñ¯¾Ã
-¹Ñ±¾Ã
-¹Ñ·ª¹¡
-¹Ñ·¸Á¹
-¹Ñ¹ªÑÂ
-¹Ñ¹·ªÑÂ
-¹Ñ¹·¹Ò
-¹Ñ¹·¹ì
-¹Ñ¹·¾Ã
-¹Ñ¹·¾Å
-¹Ñ¹·ÁÒÊ
-¹Ñ¹·Ãѵ¹ì
-¹Ñ¹·Ç§Éì
-¹Ñ¹·ÇÃó
-¹Ñ¹·ÈÑ¡´Ôì
-¹Ñ¹·Ò
-¹Ñ¹·Ô¡Ò¹µì
-¹Ñ¹·ÔÂÒ
-¹Ñ¹Ò
-¹Ò¯Êǧ
-¹ÒµÂÒ
-¹ÒÁ
-¹ÒÃÔ¹·Ãì
-¹ÒÃÕ
-¹ÒÃÕÃѵ¹ì
-¹ÒÇÔ¹Õ
-¹éÓ·Ô¾Âì
-¹éÓ½¹
-¹Ó¾Å
-¹éÓྪÃ
-¹éÓÁѹ¤ÒÅà·ê¡«ì
-¹ÓÃØè§ä·Â ¡ÒÃìàÁ¹·ì
-¹éÓÍéÍÂ
-¹Ô¡Éì
-¹Ô¤Á
-¹ÔªÃªÕ¾
-¹Ôà«Ð
-¹Ô´
-¹Ô´Ò
-¹ÔµÂÒ
-¹ÔµÂì
-¹ÔµÔ
-¹ÔµÔ¾§Éì
-¹ÔµÔÁÒ
-¹Ô·ÃÒ
-¹Ô·ÑȹÕÂì
-¹Ô·Ñȹì
-¹Ô¸ÔÇ´Õ
-¹Ô»»Í¹à¾¹µì(»ÃÐà·Èä·Â)
-¹Ô¾¹¸ì
-¹Ô¾Å
-¹Ô¾Ñ·¸Ò
-¹Ô¾Ñ¹
-¹ÔÀÒ
-¹ÔÂÁ
-¹ÔÃÁÅ
-¹ÔÃѹ´Ã
-¹ÔÃÒÇÃóì
-¹ÔÃب¹ì
-¹ÔÃصµì
-¹ÔÅÀÒ
-¹ÔÅغÅ
-¹ÔâźÅ
-¹ÔÇૹ¨ÙÃÕè¾ÃÔé¹µÔé§á͹´ì ᾤࡨ¨Ôé§
-¹ÔÇѲ¹ì
-¹ÔÇѵÃì
-¹ÔÇѵÔ
-¹ÔÇÒµ
-¹ÔÈÃÒ
-¹ÔÈÒªÅ
-¹ÔÈÒ¾Ã
-¹ÔÊÒ
-¹ÕµÔ
-¹Øª¨ÃÔ¹·Ãì
-¹Øª¹Ò¶
-¹ØªÂÒ
-¹ØªÃÕ
-¹ØÈÃÒ
-¹ØʺÒ
-¹ØÊÃÒ
-๵ôÒÇ
-à¹ÒÇÃѵ¹ì
-º§¡ª
-º§¡µÃѵ¹ì
-º«ì ÍÔ¹â¿Ãì à«ÍÃìÇÔÊ
-ºÃè§
-ºÃèº
-ºÃÃà¨Ô´
-ºÃç
-ºÃÃÊÒÃ
-ºÃÔÇÃõ
-ºÇêÑÂ
-ºÑ§ÍÃ
-ºÑ­ªÒ
-ºÑ­­ÑµÔ
-ºÑ³±Ôµ
-ºÑ³±ÔµÂì
-ºÑµÃ¡Ãاä·Â
-ºÑµÃ¡ÃاÈÃÕÍÂظÂÒ
-ºÑ¹Å×ÍÈÑ¡´Ôì
-ºÒ§¡Í¡ªÕ·àÁç··ÑÅ
-ºÒ¹ªéÍÂ
-ºÓÃاä·Â
-ºÔǵÕéᾤ
-ºÕ ÇÒ ¤ÍÃìâ¾àêÑè¹ ¨Ó¡Ñ´
-ºÕ á͹´ì «Õ ¾ÙÅÒÊ¡Õé
-ºÕ.àÍç¹.ºÃÒà´ÍÃì
-ºÕ.àÍÊ.äÍ.àËÅç¡¡èÍÊÃéÒ§
-ºØ­à¡ÕÂõÔ
-ºØ­¤§
-ºØ­ªèÇÂ
-ºØ­ªÑÂ
-ºØ­ªØº
-ºØ­àªÔ´
-ºØ­«é͹
-ºØ­·ÃѾÂì
-ºØ­·ÇÕ
-ºØ­·Í§
-ºØ­¸ÃÃÁ
-ºØ­»ÃÐÊÔ·¸Ôì
-ºØ­¾§Éì
-ºØ­ÁÕ
-ºØ­Âѧ
-ºØ­àÂÕèÂÁ
-ºØ­ÃèÇÁ
-ºØ­ÃÑ¡
-ºØ­ÅѺ
-ºØ­Å×Í
-ºØ­àÅÔÈ
-ºØ­ÈÃÕ
-ºØ­ÈÔÃÔ ´ÕÇÔÅÍ»àÁ¹·ì
-ºØ­Êè§
-ºØ­Ê¹Í§
-ºØ­ÊÔ¹
-ºØ­Ê׺
-ºØ­ÊØ¢
-ºØ­áʧ
-ºØ³±Ôµ
-ºØ»¼Ò
-ºØÃÑ­ªÅÕ
-ºØÃÔ¹·Ãì
-ºØÈÃÒ
-ºØÈÃÒ¾Ã
-ºØÈÃÔ¹·Ãì
-ºØÉ¡Ã
-ºØɺÒ
-ºØÉÂÒ
-ºØÉÃÒÀóì
-ºØËÅÑè¹
-ºÙê·Êì (»ÃÐà·Èä·Â)
-ºÙê·ÊìáÁ¹Ùῤà¨ÍÃìÃÔè§ (»ÃÐà·Èä·Â)
-ອ¨¾Ã
-ອ¨ÁÒ
-ອ¨ÅÑ¡É³ì ¾ÃÔé¹µÔé§
-ອ¨ÇÃó
-àºç­ÇÃó
-àºç·à·ÍÃì äÅ¿ì
-»¡Ã³ì
-»®ÔÁÒ
-»¯Ô­­Ò
-»¯Ô¾Å
-»¯ÔÁÒ
-»°ÁÇѲ¹ì
-»³ªÑÂ
-»³Ô´Ò
-»³ÔµÒ
-»·ØÁ
-»·ØÁ¾Ã
-»·ØÁÒ
-»¹Ñ´´Ò
-»ÀÑÊÊÃ
-»ÀÒ³Ø
-»ÀÒÇ´Õ
-»ÀÒÇÃÔ¹·ì
-»ÀÒÇÕ
-»ÂصÒ
-»ÃСͺ
-»ÃСÒÈ
-»ÃСÒÈÔµ
-»ÃСԨ
-»ÃСԵ
-»ÃФͧ
-»ÃШ§¨Ôµ
-»ÃШǺ
-»ÃШѡÉì
-»ÃШԵÃ
-»ÃЪÒ
-»ÃЪԵ
-»ÃЪØÁ¾Ã
-»Ãгµ
-»ÃдÔÉ°ì
-»ÃзѺã¨
-»Ãзջ
-»ÃзØÁ·Ô¾Âì
-»ÃÐà·×ͧ
-»Ãо¨¹ì
-»Ãо¹¸ì
-»Ãоķ¸Ôì
-»ÃоѲ¹ì
-»Ãоѹ¸ì
-»ÃÐä¾
-»ÃÐÀÑÊ
-»ÃÐÀÑÊÃì
-»ÃÐÀÑÊÃÒ¾Ã
-»ÃÐÀÑÊÊÃ
-»ÃÐÀÒ¾Ã
-»ÃÐÀÒ¾Ãó
-»ÃÐÀÒÀóì
-»ÃÐÀÒÊ
-»ÃÐÁÇÅ
-»ÃÐÁѾÃ
-»ÃÐÁÙÅ
-»ÃЧ¤ì
-»ÃÐÂÔ¹
-»ÃÐÂØ·¸
-»ÃÐÂÙÃ
-»ÃÐÂÙÃÈÃÕ
-»ÃÐ⪹ì
-»ÃÐÇѵÃ
-»ÃÐÇѵÔ
-»ÃÐÇÔµÃ
-»ÃÐÇÔ·
-»ÃÐÇÔ·Âì
-»ÃÐÇÕ³Ò
-»ÃÐàÇÈ
-»ÃÐʧ¤ì
-»ÃÐÊÒ·
-»ÃÐÊÒ¹
-»ÃÐÊÒÃ
-»ÃÐÊÔ·¸Ôì
-»ÃÐÊ׺
-»ÃÐàÊÃÔ°
-»ÃѪ­Ò
-»ÃÒ¡ÒÃ
-»ÃÒ§³Õ
-»ÃÒª­ì
-»ÃÒ³Õ
-»ÃÒ³ÕÂì
-»ÃÒâÁ·Âì
-»ÃÒö¹Ò
-»ÃÔ­­Ò
-»ÃÔ­­ì
-»ÃÔ­´Ò
-»ÃÔ³´Ò
-»ÃÔ·ÑÈ
-»ÃÔ¹´Ò
-»ÃÔÂÒÇÃó
-»ÃÔȹÒ
-»ÃÔȹÕ
-»ÃÕªÒ
-»ÃÕ­Ò
-»ÃÕÂÒÀóì
-»ÇÕ³ÃѪ
-»ÇÕ³Ò
-»Êѹµì
-»Êѹ¹ì
-»Í§À¾
-»Ñ­¨ÃÑÈÁÔì
-»Ñ­­Ò
-»Ñ­­Ò¾Ã
-»Ñ­­Ò¾Å
-»Ñ³ÃÊÕ
-»Ñ·Á
-»Ñ·ÁÒ
-»Ñ·ÁÒÇ´Õ
-»Ò³ÔÊÃÒ
-»Ò¹
-»Ò¹à¾ªÃ
-»ÒÃÔªÒµ
-»ÒÃÔªÒµÔ
-»ÒÃԾѹ¸ì
-»ÒÃÕ³Ò
-»Ò˹ѹ
-»ÔµÔ
-»ÔµÔÇѪÃì
-»Ôè¹Á³Õ
-»Ôè¹ÁÒ⹪
-»Ô¡ҭ¨¹ì
-»Ô¹ѹ·ì
-»Ô¹ү
-»Ô¾§Èì
-»Ô¾§Éì
-»Ô¾Ã
-»ÔÂÁÒÀóì
-»ÔÂÃѵ¹ì
-»ÔÂÇÃó
-»ÔÂÇѲ¹ì
-»ÔÂÈÑ¡´Ôì
-»ÔÂÐ
-»ÔÂЪÑÂ
-»ÔÂй¹·ì
-»ÔÂйѹ·ì
-»ÔÂйت
-»ÔÂо§Èì
-»ÔÂоÃ
-»ÔÂоѹ¸ì
-»ÔÂоѹ¸Øì
-»ÔÂÐÁÒÈ
-»ÔÂÐÈÑ¡´Ôì
-»ÔÂÒ¾Ã
-»ÔÅѹ­Ò
-»Ø³³ÂÒ
-à»à»ÍÃìÅÔ¿
-à»ÃÁ
-à»ÃÁ»ÃÐÀÒ
-à»ÃÁÄ´Õ
-à»ÃÁÈÃÕ
-à»ÃÁÊÔ·¸Ôì
-à»ÕèÂÁÊØ¢
-á»Å¹âÁ·Ô¿
-¼¡Ò¡Ãͧ
-¼¡Ò¾Ãó
-¼§
-¼¨§¨Ôµµì
-¼´Ø§ÈÑ¡´Ôì
-¼à´ÔÁ
-¼èͧ¾Ãó
-¼èͧÈÃÕ
-¼è͹»ÃÐÀÒ
-¼éÒ¢¹Ë¹ÙªÔ¹àΧ
-¼éÒ¢¹Ë¹Ù«Ô¹àΧ
-¼éҢع˹٫ԹàΧ
-¼èÒ¹¿éÒ àÍ繨Ôà¹ÕÂÃÔè§
-¼èÒ¡ÒäÅѧ¡Í§¡ÅÒ§Êӹѡ»ÅÑ´¡Ãا෾ÁËÒ¹¤Ã
-¼ÒÊØ¢
-¼ØÊ´Õ
-¼Ùé༴ç¨
-¼ÙéãË­èàÅç¡
-༴ç¨
-à¼Ô§
-ä¼·
-½èÒ¡ÒäÅѧ¡Í§¡ÅÒ§ Êӹѡ»ÅÑ´¡Ãا෾ÁËÒ¹¤Ã
-¾§Èìà¡ÕÂõÔ
-¾§ÈìªÒÂ
-¾§Èìà·¾
-¾§È¸Ã
-¾§Èì¾Ñ¹¸ì
-¾§Èì¾Ô¾Ñ²¹ì
-¾§ÈìÀѤ
-¾§ÈìÊØà¡ÉÁ
-¾§Éìà·¾
-¾§Éì¾Ã
-¾§ÉìÈÑ¡´Ôì
-¾§ÉìÊѹµì
-¾§Éì͹ѹµì
-¾¨¹Ò
-¾¨¹Òö
-¾¨¹ÕÂì
-¾¨¹ì
-¾¨ÁÒ¹
-¾¨ÁÒÅÂì
-¾¹Á
-¾¹ÁªÑÂ
-¾¹ÒÊѹ±ì
-¾¹Ô´Ò
-¾Â¹µì
-¾Âا
-¾Ã
-¾Ã¡ÇÕ
-¾Ã¨Ôµµì
-¾ÃªÑÂ
-¾Ã·Ô¾Âì
-¾Ã·Ô¾Ò
-¾Ã·ÔÀÒ
-¾Ãà·¾
-¾Ã¹·Õ
-¾Ã¹ÀÒ
-¾Ã¹ÔµÔ¿ÔÅìÁá͹´ìÇÕ´ÕâÍ
-¾Ã¾§Éì
-¾Ã¾¹Ò
-¾Ã¾Ãó
-¾Ã¾Å
-¾Ã¾ÅÒ§ÒÁ
-¾Ã¾ÔÁÅ
-¾Ã¾ÔäÅ
-¾Ãà¾ç­
-¾ÃÁ§¤Åà¿ÍÃì¹Ôà¨ÍÃì
-¾Ãó·ÔÀÒ
-¾Ãó¹ÔÀÒ
-¾Ãó»ÃÐä¾Ç´Õ
-¾Ãó¾ÃÃÉ
-¾Ãó¾ÔÁÅ
-¾ÃóÃÒ³ì
-¾ÃóÊóì
-¾ÃóԡÒ
-¾ÃóÕ
-¾ÃøԴÒ
-¾ÃÇÔÁÅ
-¾ÃÇÔäÅ
-¾ÃÈÑ¡´Ôì
-¾ÃÈÔÃÔ
-¾ÃÊÃǧ
-¾ÃÊÇÃäì
-¾ÃËÁ¾Ñ²¹ì
-¾ÃéÍÁªÑÂ
-¾ÃлÃÐá´§ Î͹´éÒ¤ÒÃìÊì ¨Ó¡Ñ´
-¾ÃлÃÐá´§ Î͹´éÒ¤ÒÃìÊì
-¾ÃÐÃÒÁ 3 ¤ÒÃìà«ç¹àµÍÃì
-¾ÃÐÃÒÁ 3 Î͹´éÒ¤ÒÃìÊì
-¾ÃÔéÁà¾ÃÒ
-¾ÃÕàÁÕÂÃìà¤ÁÔ¤ÑÅ á͹´ì¾ÅÒʵԡ
-¾ÃÕàÁÕÂÃìÍÔ¹àµÍÃìÅÔ««Ôè§
-¾Å¡Äɳì
-¾ÅªÑÂ
-¾Åà·¾
-¾Å¾ÑªÃì
-¾Å¾Ñ²¹ì
-¾ÅÊÔ·¸Ôì
-¾Ç§·Í§
-¾Ç§à¾ç­
-¾Ç§Ãѵ¹ì
-¾ÈÔ¹
-¾ÊØࡵÔì
-¾Ñª¹Õ
-¾ÑªÃ
-¾ÑªÃÇäÅ
-¾ÑªÃÒ
-¾ÑªÃÒÀóì
-¾ÑªÃÒÀÒ
-¾ÑªÃÔ¹·Ãì
-¾ÑªÃÕ
-¾ÑªÃÕ¾Ã
-¾ÑªÃÕÀóì
-¾Ñ²·ÇÕ
-¾Ñ²¹ªÑÂ
-¾Ñ²¹Ð
-¾Ñ²¾§Éì
-¾Ñ·¸ì¸ÕÃÒ
-¾ÑÅÅÀ
-¾ÑʾÃ
-¾Ò³ÔªÂì
-¾Ò³Õ
-¾Òâµà¤ÁÕÍصÊÒË¡ÃÃÁ
-¾Ò¹·Í§
-¾ÒÃҡ͹ÍÔ¹â¿à·¤
-¾Ô ÈÁÑÂ
-¾Ô¨ÔµÃÒ
-¾Ôª­ì
-¾Ôª´Ò
-¾ÔªÂÒ
-¾ÔªÑÂ
-¾ÔªÑÂÇѲ¹ì
-¾ÔªÔµ
-¾ÔªÔµ¾Å
-¾Ôય
-¾Ôય°ì
-¾ÔàªÉ°
-¾ÔàªÉ°ì
-¾Ô±ÙÃÂì
-¾Ô³ªØ´Ò
-¾Ô³¹ÀÒ
-¾Ô·ÂÒ
-¾Ô·Ñ¡Éì
-¾Ôà·¾
-¾Ô¸Ò¹¡Ã
-¾Ô¹¹ÔÀÒ
-¾ÔºÙÅÂì
-¾Ô¾Ñ²¹ì
-¾ÔÀ¾
-¾ÔÁ¾ìã¨
-¾ÔÁ¾ìª¹¡
-¾ÔÁ¾ì»ÃоÃó
-¾ÔÁ¾ì¾Ã
-¾ÔÁ¾ìÀóì
-¾ÔÁ¾ìÀѤ
-¾ÔÁ¾ìÇÔÁÅ
-¾ÔÁÀÒ
-¾ÔÁÅ
-¾ÔÃÁÂì
-¾ÔÃس
-¾ÔÈÔÉ°ì
-¾ÔɳØ
-¾ÔÊÁÑÂ
-¾ÔÊÔ°
-¾ÔÊÔ·¸Ôì
-¾ÔÊÔÉ°ì
-¾Õ.«Õ.àºÊ·ì ¤ÃÕàÍ·
-¾Õ.àÍÊ.¨Õ ÅÔÊ«Ôè§
-¾Õ.àÍÊ.¾ÅÒʵԡºÃÒà´ÍÃì á͹´ì«Ñ¹
-¾Õ.àÍÊ.¾ÅÒʵԡºÃÒà´ÍÃìá͹´ì«Ñ¹
-¾Õ¹Ô¡«ì àÍç¡«ìà¾ÃÊ
-¾Õ¹Ô¡«ìàÍç¡«ìà¾ÃÊ
-¾Õ÷ѵ
-¾ÕþѲ¹ì
-¾ÕÃÇزÔ
-¾ÕÃÈÔÅ»ì
-¾ÕÃÐ
-¾ÕÃо§Èì
-¾ÕÃоÅ
-¾ÕÃÐÈÑ¡´Ôì
-¾Ù¹¾Ñ¹¸ì
-¾Ù¹ÈÑ¡´Ôì
-¾Ùŷͧ¾Ãç;à¾ÍÃìµÕé_
-¾ÙżÅ
-à¾ç§ ¿Ù ËÅÔ¹
-ྪÃÃѵ¹ì
-ྪÃÅ´Ò
-ྪÃÔ¹·Ãì
-à¾çªÃì
-à¾ç­¨Ñ¹·Ãì
-à¾ç­·Ô¾Âì
-à¾ç­¹ÀÒ
-à¾ç­»ÃÐÀÒ
-à¾ç­¼¡Ò
-à¾ç­¾ÔäÅ
-à¾ç­ÈÃÕ
-à¾ÃÔÁàÁ¹¹Ôª ÍâÃáÁµÔê¡Êì ¾Õ·ÕÍÕ ÅÔÁÔàµç´
-à¾ÅÔ¹¨Ôµµì
-à¾ÅԹĴÕ
-à¾Õ§¾Ã
-á¾´´Ôé§ (ä·ÂᏴì)
-á¾´´Ôé§(ä·ÂᏴì)
-á¾¹´éÒ à»à»ÍÃì ¤ÒÃìµÑ¹Ê
-á¾ÃÇ
-á¾ÃÇÒ
-ä¾±ÙÃÂì
-侺ÙÅÂì
-ä¾ÃÄ·¸Ôì
-ä¾Ãʳ±ì
-ä¾ÃÊÔ·¸Ôì
-ä¾ÃѪ
-ä¾Ãѵ¹ì
-ä¾ÃÔ¹·Ãì
-ä¾àÃÒÐ
-ä¾âè¹ì
-ä¾ÅÔ¹
-ä¾ÇÑÅÂì
-ä¾ÈÒÅ
-ä¾ÈÔÃÔ
-ä¾ÊÔ°
-¿ÅØÊÊÔ¡à¤Á
-¿Õ¹Ô¡«ì àÍç¡«ìà¾ÃÊ
-á¿Ã§¤ì
-á¿ÃìàÇÂì ÍÔ¹àµÍÃì๪Ñè¹á¹Å
-ÀÃÒ´Ã
-ÀÇÔ¹
-ÀÑ¡´Õ
-ÀѤ¨ÔÃÒ
-Àѳ±ÔÃÒ
-Àѷ÷ÔÃÒ
-Àѷþ§Èì
-ÀѷþÃ
-ÀѷþÅ
-ÀÑ·ÃÀÃ
-ÀÑ·ÃÃѧÊÕ
-ÀÑ·ÃÄ´Õ
-ÀÑ·ÃÒÀóì
-ÀÑ·ÃÔ¹·Ãì
-ÀÑÊÅÔ¹
-ÀÑÊÇÃó
-ÀÒ¡Ã
-ÀÒ¤ÀÙÁÔ
-ÀÒ³Õ
-ÀÒ³Ø
-ÀҳؾÅ
-ÀÒ³ØÇÃó
-ÀÒ¹ØÇѲ¹ì
-ÀÒ¹ØÇѵÃ
-ÀÒ¾Ã
-ÀÒôÕ
-ÀÒǹÒ
-ÀÒǾѹ¸¹ì
-ÀÒÇÔ³Õ
-ÀÒÇÔ¹
-ÀÒÇÔ¹Õ
-ÀÒÉÔµÒ
-ÀÔ¨ÔµÃÒ
-ÀÔ­­¾Ñ¡µÃì
-ÀÔ­â­
-ÀÔôÕ
-ÀÙàºÈ
-ÀÙÁÔ°Ò¹
-ÀÙÃÔ¾§Èì
-ÀÙÃÔÇÃò¡ì
-ÀÙÉÔµ
-Á¡Ãҹѹ·ì
-Á§¡Ø®Ãѵ¹ì
-Á§¤Å
-Á§¤Å¡Òûѡ
-Á³°Ô´Ò
-Á³±¹ì¡Ò­¨¹ì
-Á³±¹Ô¨
-Á³±ÅÕ
-Á³±Ò
-Á³à±ÕÂÃ
-Á³ÕÃѵ¹ì
-Á¹µìªÑÂ
-Á¹µÃÕ
-Á¹ÑÊ
-Á¹ÑÊÇÕ
-Á¹Ù­
-Áâ¹
-Á⹪
-ÁÂØÃÕ
-ÁÅÄ´Õ
-Áéǹáµé
-ÁËÀÑ®
-ÁËÒÃÒª
-ÁÐÅÔÇÑÅÂì
-Áѧ¡Ãä·ÂʵÕźÒÃì
-Áѳ±¹Ò
-ÁÑ·¹Ò
-ÁÑÅÅÔ¡Ò
-ÁÒªÍÃì¡ÇÒ¹
-ÁÒ³Õ
-ÁÒ¹¾
-ÁÒ¹Ð
-ÁÒ¹ÔµÂì
-ÁÒ⹪³ì
-ÁÒâ¹·
-ÁÒÃÔÉÒ
-ÁÒÅÑÂ
-ÁÒÅÔ¹Õ
-ÁÒÅÕ
-ÁÒÅÕÇÃó
-ÁÔµ·ÔÃÒ
-ÁÔÅàŹà¹ÕèÂÁ âÍ.àÍ 2000
-ÁÕ¾Å
-ÁØ¢
-ÁØ·ÔµÒ
-ÁÙËÐÁд×ÍàÃÐ
-àÁà¨ÍÃìÍصÊÒË¡ÃÃÁä·Â (1989)
-àÁ´Ô¤ÃÒ¿·ì
-àÁµµÒ
-àÁâ·ÃʻԹ¹Ôè§
-àÁ¸Ò
-àÁ¸ÒÇÕ
-àÁ¸Ô¹Õ
-àÁ¸Õ
-àÁÉÂÒ
-àÁÉÔ³Õ
-àÁ×ͧ·Í§
-áÁ··ÕàÃÕÂÅ¡ÃØê» ¨Ó¡Ñ´
-áÁé¹ÁÒµÃ
-äÁµÃÕ
-§ÂØ·¸
-Âè§àΧÇѲ¹Ò¡ÒþÔÁ¾ì
-ÂÃç¤ì
-ÂʹྪÃ
-Âѹ áÍÅ à¤âÂÊ
-ÂÔè§ÇÃó
-ÂؤžÃ
-ÂØ´Ò
-ÂØ·¸¹Ò
-ÂØ·¸¹ÒÇÕ
-ÂØ·¸Â§
-ÂظÒÁÒµÂì
-Âعâ¡Ð
-ÂؾÒ
-ÂؾҾÃ
-ÂؾÒÇ´Õ
-ÂؾԹ
-ÂØÀÒ¾Ã
-ÂØÀÒÀóì
-ÂØÇ´Õ
-ÂØÇÃÕ
-ÂÙ¹ÔÅÕàÇÍÃì ä·Â âÎÅ´Ôé§Êì
-ÂÙ¹ÔÅÕàÇÍÃìä·Â âÎÅ´Ôé§Êì
-ÂÙ¹Õ¤ ÍÍÃì¤Ô´
-ÂÙà¹Õè¹á¡êÊá͹´ìàÅÁÔ¤ÑÅÊì
-àÂ繨Եµì
-àÂ繨ԵÃ
-àÂÒÇ´Õ
-àÂÒǾÒ
-àÂÒÇÀÒ
-àÂÒÇàÃÈ
-àÂÒÇÅѡɳì
-â¸Թ
-Ã.µË­Ô§ ¾Íã¨
-è¹Ò
-óç¤ì
-ôÒ
-ùԮ°Ò
-þվÃ
-þվѲ¹ì
-þÕÀÑ·Ã
-ÃÁÂì¨ÃÃÂì
-Ãǧ·Í§
-ÃÈÑ¡´Ôì
-ÃÊÊؤ¹¸ì
-ÃÍÂÑÅàÍ繨Ôà¹ÕÂÃÔè§
-ÃеÃÕ
-ÃоԹ·Ãì
-ÃоվÃ
-ÃоվÃó
-ÃоվÅ
-ÃÑ¡´Õ
-ÃÑ¡ÈÑ¡´Ôì
-ÃÑ¡ÉÔµÀÑ·Ã
-ÃѧÊÃäì
-ÃѧÊѹµì
-ÃѧÊÔÁÒ
-ÃѪà¡ÅéÒ
-ÃѪ®Ò
-ÃѪ®Ò¾Ã
-ÃѪ´Ò
-ÃѪ¹Õ
-ÃѪ¹Õ¡Ã
-ÃѪ¹Õ¾Ã
-ÃÑ°¾§Éì
-ÃÑ°ÊØ´Ò
-Ãѵ³Ò
-ÃѵµªÑÂ
-ÃѵµÔÂÒ
-Ãѵ¹ªÑÂ
-Ãѵ¹Àóì
-Ãѵ¹Á³Õ
-Ãѵ¹Ò
-Ãѵ¹Ò¾Ã
-Ãѵ¹ÒÀóì
-ÃѵÔÂÒ
-ÃѵÔÂÒÀóì
-ÃÑÈÁÕ
-ÃÑÈÁÕÀÑÊÊÃ
-ÃҪѹÂì
-ÃÒªÒÍÙªÔâ¹
-ÃÒહ
-ÃÒ³Õ
-ÃÒµÃÕ
-ÃÒàÁÈÃì
-ÃÒÂÕ¹
-Ã×è¹ÇÃÒËì
-ÃØ觷ԾÂì
-ÃØ觷ÔÇÒ
-ÃØ觹ÀÒ
-ÃØè§à¾ªÃ
-ÃØè§ÃѪ¹Õ
-ÃØè§Ãѵ¹ì
-ÃØè§ÃÑÈÁÕ
-ÃØè§àÃ×ͧ
-ÃØè§âè¹ì¢¹Êè§
-ÃØè§âè¹ì
-ÃØé§ÅÒÇÃó
-ÃØè§ÇÔ·Âì
-ÃØè§ÍÃس
-ÃØé§
-ÃبÒ
-ÃبÒÀÒ
-ÃØËйÒ
-ÃÙàºÕÂÍصÊÒË¡ÃÃÁ
-àâ­Ò
-àóÙ
-àþᾤ à·Ã´´Ôé§
-àþᾤ¤Í¹ÊµÃѤªÑè¹
-àÃÇѵ
-àÃÔ§·ÔÇÒ
-àÃÔ§ÃÐÇÕ
-àÃԧķ¸Ôì
-àÃ×ͧÂÈ
-áþᾤ ¤Í¹ÊµÃѤªÑè¹
-âç§Ò¹àËÅç¡¡Ãا෾Ï
-âè¹ì»ÃÐàÊÃÔ°
-Ä·¸ÔªÑÂ
-Ä·¸Ôì
-ÅÅÔ´Ò
-ÅÅÔµÒ
-ÅÐÁèÍÁ
-ÅÐÁÑÂ
-ÅÐÍͧ´ÒÇ
-ÅÐàÍÕ´
-ÅÑ¡¢³Ò
-ÅѡɳÒ
-ÅÑ¡ÉÁÕ
-ÅÑ­ª¹Ò
-ÅÑ´´Ò
-ÅÑ´´ÒÇÃó
-ÅÑ´´ÒÇÑÅÂì
-ÅÑ·¸ÈÑ¡´Ôì
-ÅÒÇѳÂì
-ÅÓä¾
-ÅÓäÂ
-ÅÔ¹´ÒÇÃó
-ÅÔÁ
-ÅÔÅÒÀóì
-Å×ͪÑÂ
-àÅͪÑÂ
-àÅÍÈÑ¡´Ôì
-àÅÍÊÃäì
-àÅÍÊØ¢
-àÅÔȪÑÂ
-àÅÔÈÈÑ¡´Ôì
-àÅÔÈÊÒÁÒö â¸Ò
-âÅËСԨʵÕÅ
-ǧà´×͹
-ǧÈìä¾±ÙÃÂì¡Ãç» º
-ǧÈìä¾±ÙÃÂì¡ÃØê»
-ǧÈìä¾±ÙÃÂì¡ÃÙê»
-ǧÈìÇÒµ
-ǧÈìÊØÀÒ
-ǨÕÃѵ¹ì
-ǪÔÃÒÀÒ
-ǹѪ¾Ã
-ǹÑʹѹ·ì
-ǹÒ
-ǹԪ
-ǹԴÒ
-ÇáÒÃ
-ÇêÑÂ
-ÇêҵÔ
-ÇôÔÉ°ì
-ÇÃà·¾
-ÇøѹÂì
-Çùت
-Çþ§Éì
-Çþ¨¹ì
-ÇþÅ
-ÇÃÁÅ
-ÇÃÂØ·¸ì
-ÇÃó¨Ôµ
-ÇÃóªÑÂ
-ÇÃó±¹Ò
-ÇÃó´Õ
-ÇÃóì´Õ
-ÇÃó·¹Ò
-ÇÃó·¹Õ
-ÇÃó¸³Õ
-ÇÃó¸ÁÅ
-ÇÃó¹ÀÒ
-ÇÃó¹ÒÃÕ
-ÇÃó¾Ã
-ÇÃó¾Ò
-ÇÃóà¾ç­
-ÇÃóÀ¾
-ÇÃóÀóì
-ÇÃóÀÒ
-ÇÃóǴÕ
-ÇÃóÈÔÃÔ
-ÇÃóÒ
-ÇÃóÕ
-ÇÃø¹Ò
-ÇÃÃѪ
-ÇÃÅѡɳì
-ÇÃÇÃó
-ÇÃÇÃø¹ì
-ÇÃÇѲ¹ì
-ÇÃÇÔÀÒ
-ÇÃÑ­¸Ã
-ÇÃÒ
-ÇÃÒ§¤³Ò
-ÇÃÒ§Ãѵ¹ì
-ÇÃÒ¾Ã
-ÇÃÒÀóì
-ÇÃÒÃѵ¹ì
-ÇÃÒÅѡɳì
-ÇÃÒÇزÔ
-ÇÃÒÇظ
-ÇÃÔ¹·Ãì
-ÇÃÔ¹¸Ã
-ÇÃÔÁÒ
-ÇÃÔÈÃÒ
-ÇÃÕÇÃó
-ÇÃس
-ÇÅѾÃ
-ÇÈÔ³Ò
-ÇÈÔ¹
-ÇÊѹµì
-ÇÊØ
-Çèͧ
-ÇѪáÃ
-ÇѪþÅ
-ÇѪÃÐ
-ÇѪÃÑ­­Ò
-ÇѪÃÔ¹·Ãì
-ÇѪÃÕ
-ÇѲ¹Ð
-ÇѲ¹Ò
-Çѹà©ÅÔÁ
-ÇѹªÑÂ
-ÇѹªÒµÔ
-Çѹ´Õ
-Çѹ·¹Ò
-Çѹ·¹Õ
-Çѹ·¹ÕÂì
-Çѹà¾ç­
-ÇѹÃѪ´Ò
-ÇѹÇÔÊÒ¢ì
-ÇѹʶÒ
-ÇÑÅÅÀ
-ÇÑÅÅÀÒ
-ÇÑÅÅÒÀÒ
-ÇÑȾÅ
-ÇÑʹÑÂ
-ÇÒ³Õ
-ÇÒ·Ôµ
-ÇÒ·Ô¹
-ÇÒ·Ô¹ÕÂì
-ÇÒÃÔª
-ÇÒÃÕ
-ÇÒÃسÕ
-ÇÒʹÒ
-ÇÔ¤µÍÃÕè â¾Ãà¡Ã·
-ÇÔ¤Á
-ÇÔ¨Òóì
-ÇÔ¨ÔµÃ
-ÇÔ¨ÔÃÒ
-ÇÔªªÒ
-ÇÔª­ÐÃب
-ÇÔªÑÂ
-ÇÔªÒ­
-ÇÔªÔµ
-ÇԪشÒ
-ÇÔàªÉ°
-ÇÔàªÕÂÃ
-ÇÔ­­Ø´Ò
-ÇÔ±ÙÅÂì
-ÇÔ·¸ÇѪ
-ÇÔ·ÂÒ
-ÇÔ·ÇÑÊ
-ÇÔ·ÙÃ
-ÇÔ¹ÊÃäì
-ÇÔ¹ÑÂ
-ÇÔ¹Ô¨
-ÇÔºÙÅÂì
-ÇÔÀÒ
-ÇÔÀҡóì
-ÇÔÀÒ¤
-ÇÔÀÒ¾Ãó
-ÇÔÀÒÃѵ¹ì
-ÇÔÀÒɳÕÂì
-ÇÔÀÒÊ
-ÇÔÀÙÉÔµ
-ÇÔÁÅ
-ÇÔÁžÃ
-ÇÔÁÅÇÃó
-ÇÔÃÁÅ
-ÇÔÃѪ
-ÇÔÃѵ¹ì
-ÇÔâè¹ì
-ÇÔÅÇѳÂì
-ÇÔÅÒÇÃó
-ÇÔÅÒÇѳÂì
-ÇÔÅÒÇÑÅÂì
-ÇÔÅÒÊÔ¹Õ
-ÇÔÅÔµ
-ÇÔäÅ
-ÇÔäžÃ
-ÇÔäÅÃѵ¹ì
-ÇÔäÅÅѡɳì
-ÇÔäÅÇÃó
-ÇÔÇ
-ÇÔÇÃø¹ì
-ÇÔÇѲ¹ìªÑÂ
-ÇÔÇѲ¹ì
-ÇÔȹÕ
-ÇÔÈÃص
-ÇÔÈÒÅ
-ÇÔÈÔÉ®ì
-ÇÔÈÔÉ°ì
-ÇÔÉÃب¹ì
-ÇÔÊÔ°ÈÑ¡´Ôì
-ÇÔÊÔ·¸Ôì
-ÇÔÊØ·¸Ô
-ÇÔÊØ·¸Ôì
-ÇÔÊÙµ
-ÇÕ àÍÊ à¹à¹ÍÃÑÅ à¤Á
-ÇÕ«èÒ (2000)
-ÇÕ³Ò
-ÇÕ¹ÑÊ
-ÇÕêÑÂ
-ÇÕÃ⪵Ô
-ÇÕÃà´ª
-ÇÕþ§Èì
-ÇÕþÅ
-ÇÕÃÂØ·Âì
-ÇÕÃÇÃó
-ÇÕÃÈÑ¡´Ôì
-ÇÕÃÊÔ·¸Ôì
-ÇÕÃÐ
-ÇÕÃЪÑÂ
-ÇÕÃЪҵÔ
-ÇÕÃЪÒÂ
-ÇÕÃÐà´ª
-ÇÕÃо§Éì
-ÇÕÃоÅ
-ÇÕÃÐÂØ·¸ì
-ÇÕÃÐÇÃó
-ÇÕÃÐÇѲ¹ì
-ÇÕÃÐÈÑ¡´Ôì
-ÇÕÃÒÀóì
-ÇزԡÃ
-ÇزԪÑÂ
-ÇزԹѹ·ì
-ÇزԹÑÂ
-ÇزԾ§Èì
-ÇزԾ¨¹ì
-ÇزԾÅ
-ÇزÔÃѵ¹ì
-àÇèÂà©Ô¹ÍÔ¹´ÑÊàµÃÕ¹
-àÇÍÃìâ¡é ·ÃҹʻÍÃìµ
-áÇÇÇ´Õ
-áÇÇÇÔÀÒ
-äÇ·Ô¹
-È¡ÅÇÃó
-ȨÕ
-ÈÁÅÇÃó
-ÈÂÒÁÅ
-ÈêÑÂ
-ÈÃÇÑÅÂì
-ÈÃÑ­­Ò
-ÈÃѳ¾Ã
-ÈÃѳÂì
-ÈÃÒÁÒÈ
-ÈÃÒÇزÔ
-ÈÃÒÇظ
-ÈÃÔ¹·Ãì
-ÈÃըѹ·Ãì
-ÈÃըѹ·ÃÒ
-ÈÃշͧà¹Áà¾Å·
-ÈÃշͧÍصÊÒË¡ÃÃÁ«Ñ¾¾ÅÒÂ
-ÈÃÕ¹ÇÅ
-ÈÃÕ»ÃÐä¾
-ÈÃÕ»ÃÐÀÒ
-ÈÃÕ¾§Éì
-ÈÃÕà¾ç­
-ÈÃÕÀÒ
-ÈÃÕÃѵ¹ì
-ÈÃÕÇѨ¹Ò
-ÈÃÕÇѲ¹Ò
-ÈÃÕÇÔ¡Ò
-ÈÃÕÈÑ¡´Ôì
-ÈÃÕÊ¡ØÅ
-ÈÃÕÊÁÃ
-ÈÃÕÊÁÃ
-ÈÃÕÊÁÃ
-ÈÃÕÊØÇÃó¤Í¹àÇàÂÍÃìàºÅ·ì á͹´ì ÃѺàºÍÃì
-ÈÃÕ͹§¤ì
-ÈÃÕÍÓ¾ÅÍصÊÒË¡ÃÃÁ
-ÈÅÔÉÒ
-ÈÈÁÅ
-ÈÈÔ
-ÈÈÔ¸Ã
-ÈÈÔ¾Ã
-ÈÈÔÀÒ
-ÈÈÔÁÒ
-ÈÈÔÇÔÁÅ
-ÈÈÔÉÒ
-ÈÑ¡´Ò
-ÈÑ¡´ÔìªÑÂ
-ÈÑ¡´ÔìàªÇ§
-ÈÑ¡´Ôì´Ò
-ÈÑ¡´ÔìÇÔºÙÅÂì
-ÈÑ¡´Ôì
-ÈÑ¡ÃÔ¹·Ãì
-ÈѹʹÕÂì
-ÈÒ¹µÔᏴì
-ÈÔÁÒÃÕ
-ÈÔÃÉÒ
-ÈÔÃÒ¾Ã
-ÈÔÃÔ
-ÈÔÃÔ¡ØÅ
-ÈÔÃԨѹ·Ãì
-ÈÔÃÔâ©Á
-ÈÔÃÔªÑÂ
-ÈÔÃÔ·Ñȹì
-ÈÔÃÔ¸Ã
-ÈÔÃÔ¹­Ò
-ÈÔÃÔ¹Òö
-ÈÔÃԹت
-ÈÔÃÔ¾§Éì
-ÈÔÃÔ¾Ã
-ÈÔÃÔ¾Ãó
-ÈÔÃÔà¾ç­
-ÈÔÃÔÁÒ
-ÈÔÃÔÃѨ¹ì
-ÈÔÃÔÃѵ¹ì
-ÈÔÃÔÅѡɳì
-ÈÔÃÔÇÃó
-ÈÔÃÔÇѲ¹ì
-ÈÔÃÔÈÑ¡´Ôì
-ÈÔâè¹ì
-ÈÔÅ»ªÑÂ
-ÈÔÅÒ
-ÈÔǾÃ
-ÈÔǾÅ
-ÈÔÇÒ¾Ã
-ÈÔÇÒÀóì
-ÈØÀ¡Ã
-ÈØÀ¡Ô¨
-ÈØÀªÑÂ
-ÈØÀ¾Ã
-ÈØÀÁÔµÃ
-ÈØÀÃ
-ÈØÀÃѵ¹ì
-ÈØÀÃÒÀóì
-ÈØÀÅѡɳì
-ÈØÀÇѲ¹ì
-ÈØÀÇÔ·Âì
-ÈØÀÈÑ¡´Ôì
-ÈØÀÔÊÃÒ
-àÈÃÉ°¸Ã
-àÈÃÉ°¾§Éì
-âÈôÒ
-ÉØÀÁ¹
-Ê ÍÒ´
-Ê.͹ѹµìàÍ繨Ôà¹ÕÂÃÔè§ á͹¤Í¹ÊµÃѤªÑè¹
-Ê¡ÅÃѵ¹ì
-Ê¡ÒÇÃѵ¹ì
-ʧ¡Ã³ì
-ʧ¡ÃÒ¹µì
-ʧǹ
-Êè§ÈÃÕ
-Êè§àÊÃÔÁ
-ʧѴ
-ʧèÒ
-ʴѺ¾Ô³
-Êáµ¹´ÒÃì´ ªÒÃìàµÍÃì (»ÃÐà·Èä·Â)
-ʶҾÃ
-ʶÔÃÂÒ
-ʹã¨
-ʹ·ÂÒ
-ʹ¸¾
-ʹ¸ÂÒ
-ʹͧ
-ʹÑè¹
-ʹԴÒ
-Êà»ç¤ à´ç¹ µÑÅ áź
-Ê໫¤ÍÁ
-ÊÁ
-ÊÁ¡ÁÅ
-ÊÁà¡ÕÂõÔ
-ÊÁ¤ÇÃ
-ÊÁ¤Ô´
-ÊÁ¨Ôµ
-ÊÁ¨Ôµµì
-ÊÁ¨ÔµÃ
-ÊÁ¨ÔµÃì
-ÊÁ¨Ô¹µ¹Ò
-ÊÁã¨
-ÊÁªÑÂ
-ÊÁªÒ­
-ÊÁªÒµÔ
-ÊÁªÒÂ
-ÊÁ⪤
-ÊÁ´Õ
-ÊÁà´ª
-ÊÁ·Ã§
-ÊÁ¹Ö¡
-ÊÁºÑµÔ
-ÊÁºØ­
-ÊÁºÙóì
-ÊÁ»Í§
-ÊÁ¾§Éì
-ÊÁ¾¨¹ì
-ÊÁ¾Ã
-ÊÁ¾Å
-ÊÁ¾ÔÈ
-ÊÁÀ¾
-ÊÁâÀª¹ì
-ÊÁÁÒö
-ÊÁÁÒȹì
-ÊÁâÁ·
-ÊÁÂÈ
-ÊÁÃ
-ÊÁÃÑ¡Éì
-ÊÁÄ´Õ
-ÊÁÄ·¸Ôì
-ÊÁÄ·ÑÂ
-ÊÁÅѡɳì
-ÊÁǧÉì
-ÊÁÈÃÕ
-ÊÁÈÑ¡´Ôì
-ÊÁÈÔÃÔ
-ÊÁÊØ¢
-ÊÁÊعÕÂì
-ÊÁË­Ô§
-ÊÁËÁÒÂ
-ÊÁËÇѧ
-ÊÁÑÂ
-ÊÁÒ¹
-ÊÁÔ·¸Ô
-ÊÁÔ·¸Ôì
-ÊÁتªÅ
-ÊÂÒÁ
-ÊÂÒÁ¤Í¹àÇàÂÍÃì
-ÊÂÒÁªÑÂâ¾ÅÕàÁÍÃì
-ÊÂÒÁä´à¤ÕÂÇ
-ÊÂÒÁ¹ÔÊÊѹ ÍÍâµéâÁºÔÅ
-ÊÂÒÁ¾Ãà·Ã´à«ç¹àµÍÃì
-ÊÂÒÁàÁ¦Õâ¾ÅÕàÁÍÃì
-ÊÂÒÁÂÙ¹Ôâ«Å
-ÊÂØÁ¾Ã
-ÊÃÃàÊÃÔ°­
-ÊÃÑ­­Ò
-ÊÃÒ¡Ã
-ÊÃÒ­¨Ôµ
-ÊÃÒÂظ
-ÊÃÒÇزÔ
-ÊÃÒÇظ
-ÊÃÔ¹ÃÒ
-ÊÃب
-ÊÅÑ¡¨ÔµÃ
-ÊàŤ·ì¿ÍÃìÁà¿ÍÃì¹Ôà¨ÍÃìáÅкصÃ
-ÊÇÅѡɳì
-ÊÇÑÊ´Ôì
-ÊÇÕâè¹ì
-ÊÇÕÇÃó
-ÊÊԾѹ¸Øì
-ÊËà¡ÕÂõÔâÅËÐà¡ÕÂõÔ
-Ê˾Å
-ÊÍÒ´
-Êзé͹
-ÊѧÇÒÅÂì
-ÊѨ¾§Éì
-ÊÑ­ª¹Ò
-ÊÑ­ªÑÂ
-ÊÑ­­Ò
-ÊѹµÔ
-ÊѹµÔªÑÂ
-ÊÑÁ¾Ñ¹¸ì
-ÊÑÁÄ·¸Ôì
-ÊÒ¤Ã
-ÊÒ¸Ôµ
-ÊÒ¹ÔµÂì
-ÊÒÁÀ¾
-ÊÒÁÒö
-ÊÒÂã¨
-ÊÒªÅ
-ÊÒ¹·Õ
-ÊÒ½¹
-ÊÒÂä¿¿éÒä·Â-ÂÒ«Ò¡Ô
-ÊÒ¹µì
-ÊÒÂÅÁ
-ÊÒÂÊÁÃ
-ÊÒÂÊسÕ
-ÊÒÂÊعÕÂì
-ÊÒÂѳ
-ÊÒÂѳËì
-ÊÒâè¹ì
-ÊÒâê
-ÊÒÅÕ
-ÊÒÅÕè
-ÊÒÇÔµÃÕ
-Êӹѡ¹âºÒÂáÅÐá¼¹¡Ãا෾ÁËÒ¹¤Ã
-ÊÓà¹Õ§
-ÊÓÃÇÁ
-ÊÓÃÇÂ
-ÊÓÃÒ­
-ÊÓÄ·¸Ôì
-ÊÓÅÕ
-ÊÔ§Ëì¾Å
-ÊÔ§ËÒ
-ÊÔ§Ëì
-ÊԵҹѹ
-ÊÔµÒ¾Ã
-ÊÔ·¸Ò
-ÊÔ·¸ÔªÑÂ
-ÊÔ·¸Ôà´ª
-ÊÔ·¸Ô¾Ã
-ÊÔ·¸Ô¾Ãó
-ÊÔ·¸Ô¾Å
-ÊÔ·¸Ôì
-ÊÔ¹·ÇÕ
-ÊÔÃÔªÑÂ
-ÊÔÃÔà´ª
-ÊÔÃÔ¹¾Ã
-ÊÔÃÔ¹Ãѵ¹ì
-ÊÔÃÔ»ÃÐÀÒ
-ÊÔÃÔ¾§Éì
-ÊÔÃÔ¾Ã
-ÊÔÃÔ¾Ãó
-ÊÔÃԾѹ¸ì
-ÊÔÃÔÁÒ
-ÊÔÃÔÃѵ¹ì
-ÊÔÃÔÅѡɳì
-ÊÔÃÔÇÃó
-ÊÔÃÔÇѲ¡ì
-ÊÔÃÔÇѲ¹Ò
-ÊÔâè¹ì
-ÊÔÇÅÕ
-ÊÕ¹ÇÅ
-ÊÕÇÔ¡Ò
-ÊØ¡ÃÕ
-ÊØ¡Ñ­­Ò
-ÊØ¡Ò¹´Ò
-ÊØ¡Ô¨
-ÊØ¡ÔµÔì
-ÊØ¡ÕµÔì
-ÊØ¡ØÁÒ
-ÊØ¢
-ÊØ¢ªÒÂ
-ÊآĴÕ
-ÊØ¢ÊÇÑÊ´Ôì¡Å¡ÒÃ
-ÊØ¢Êѹµì
-ÊØ¢ØÁ
-Êؤ¹¸Ò
-Êؤ¹¸ì
-ÊبÒÃÕ
-ÊبԵ
-ÊبԵµÒ
-ÊبԵÃÒ
-ÊبԹ´Ò
-ÊبԹµ¹ì
-ÊبԹµì
-ÊتÅ
-ÊتÑÂ
-ÊتҴÒ
-ÊتҵÔ
-ÊتÒÂ
-ÊتÒÊÔ¹Õ
-ÊتԵ
-ÊتԹ
-ÊرÒÁÒÈ
-ÊسÕ
-Êشʧǹ
-ÊØ´ÊÇÒ·
-ÊØ´Ò
-ÊØ´ÒªÅÕ
-ÊØ´Ò¾Ã
-ÊØ´ÒÀÒ
-ÊØ´ÒÃѵ¹ì
-ÊØ´ÒÃÒ
-ÊØ´Õà¾é¹·ìà«ç¹àµÍÃì
-ÊØ·¸Ò·Ô¾Âì
-ÊØ·¸Ô¡Ò¨
-ÊØ·¸ÔªÑÂ
-ÊØ·¸Ô¹Ñ¹·ì
-ÊØ·¸Ô¹Õ
-ÊØ·¸Ô쾧Éì
-ÊØ·¸Ô¾Ãó
-ÊØ·¸ÔÇѲ¹ì
-ÊØ·¸ÔÈÑ¡´Ôì
-ÊØ·ÃÕ
-ÊØ·ÑÈ
-ÊØ·Ñȹì
-ÊØ·ÔµÂì
-ÊØ·Ô¹
-ÊØ·Ô¾Ò
-ÊØ·ÔÈÒ
-ÊØà·¾
-ÊظҷԾÂì
-ÊظҹԸÔ
-ÊظԴÒ
-ÊظÔÈÑ¡´Ôì
-ÊظÕ
-ÊظÕÃÒ
-ÊظÕÃì
-Êع·Ã
-Êع·ÃÕ
-Êعѷ·Õ
-Êعѹ·Ò
-Êعѹ·ì
-ÊعԵÒ
-ÊعÔÈÒ
-ÊعÔÉÒ
-ÊعÔÊÒ
-ÊعÕÂì
-ÊØ๵Ã
-ÊØ»ÃдÔÉ°ì
-ÊØ»ÃÐÇÕ³ì
-ÊØ»ÃÒ³Õ
-ÊØ»ÃÕÂÒ
-ÊØ»ÃÕÃдÒ
-Êػѭ­Ò
-Êؾ¨¹ì
-Êؾ¨ÁÒÅÂì
-ÊؾÃ
-ÊؾÃóÕ
-ÊؾÃÃÉÒ
-ÊؾÅ
-ÊؾѲ¹ì
-ÊؾѵÃÒ
-ÊؾԪ­ìª­Ò
-ÊؾԹ
-ÊؾÔÈ
-ÊؾÕÃìªÑÂ
-ÊØÀ¡Ô¨
-ÊØÀªÒ
-ÊØÀ⪤
-ÊØÀÁÒÊ
-ÊØÀѤ
-ÊØÀѵÃÒ
-ÊØÀÑ·ÃÒ
-ÊØÀÒ
-ÊØÀÒ³Õ
-ÊØÀÒ¾
-ÊØÀÒ¾Ã
-ÊØÀÒ¾Ãó
-ÊØÀÒÀóì
-ÊØÀÒôÕ
-ÊØÀÒÇ´Õ
-ÊØÀÔ­­Ò
-ÊØÁ¹µì
-ÊØÁ¹Ò
-ÊØÁÒÅÕ
-ÊØÁÒÊÕ
-ÊØÁÔµÃ
-ÊØÁÔµÃÒ
-ÊØàÁ¸
-ÊØàÁ¸Õ¡ì
-ÊØáԨ
-ÊØêÑÂ
-ÊØêҵÔ
-ÊØÃàªÉ°ì
-ÊØÃà´ª
-ÊØ÷Թ
-ÊØþ§Éì
-ÊØþÅ
-ÊØþѹ¸ì
-ÊØþѹ¸Øì
-ÊØÃÈÑ¡´Ôì
-ÊØÃÊÔ·¸Ôì
-ÊØÃѪ¹Õ¡Ã
-ÊØÃѵ¹Ç´Õ
-ÊØÃѵ¹ìÇ´Õ
-ÊØÃѵ¹Ò
-ÊØÃѵ¹ì
-ÊØÃѵÂÒ
-ÊØÃÒ§¤¹Ò
-ÊØÃÔªÑÂ
-ÊØÃÔ¹·Ãì
-ÊØÃÔ§Èì
-ÊØÃÔ¹
-ÊØÃÔ¹µì
-ÊØÃÔ¾§Èì
-ÊØÃÔÂѹ
-ÊØÃÔÂѹµì
-ÊØÃÔÂÒ
-ÊØÃÕ¸Ò¾Ã
-ÊØÃÕ¾Ã
-ÊØÃÕÁÒÈ
-ÊØÃÕÂì¾Ã
-ÊØÃÕÂì
-ÊØÃÕÃѵ¹ì
-ÊØÅÑ´´Ò
-ÊØÇÀÑ·Ãì
-ÊØÇÃó
-ÊØÇÃóªÑÂ
-ÊØÇÃóÒ
-ÊØÇÃóÕ
-ÊØÇÃóÕÂì
-ÊØÇÃѵ¹ì
-ÊØÇѲ¹ìªÑÂ
-ÊØÇѲ¹Ò
-ÊØÇѲ¹ì
-ÊØÇѵªÑÂ
-ÊØÇÒÃÕ
-ÊØÇÔªÑÂ
-ÊØÇÔªÒ
-ÊØÇÔ´Ò
-ÊØÇÔ·Âì
-ÊØÇÔÁÅ
-ÊØÇÔÃѪ
-ÊØÊÔÃÔ
-ÊØËÑʪÒ
-àÊ¡ÊÃÃ
-àÊ¡ÊÃäì
-àʶÕÂÃ
-àʹËì
-àʹÕÂì
-àÊÁÒ
-àÊÃÔÁäªÂ¤éÒ¡ÃдÒÉ
-àÊÃÔÁÈÑ¡´Ôì
-àÊÃÕ
-àÊÇÂ
-àÊÒǤ¹¸ì
-àÊÒdzÕ
-àÊÒdzÕÂì
-àÊÒǹԵÂì
-àÊÒǹÕÂì
-àÊÒÇÅѡɳì
-áʧªÑÂ
-áʧà´×͹
-áʧ·Í§
-áʧÃÐÇÕ
-áʹ·ÇÕà·ç¡«ìä·Åì
-áʹÀ¾
-áʹÂÒ¡Ã
-áʹÃÑ¡
-áʹÊØ¢
-áÊǧ
-âÊÀ³
-âÊÀÒ
-âÊÀÒ¾¨¹Õ
-âÊÀÒ¾Ãó
-âÊÀÕ
-âÊèԵ
-âÊôÒ
-âÊÃÊ
-âÊÃѨ
-âÊÌÊ
-˧
-Ë·ÑÂ
-Ë·Ñ·ԾÂì
-Ë·ÑÂÃѵ¹ì
-˹Öè§Ä·ÑÂ
-ËÃÔ¹
-ËÄ·Â
-ËÇÒ¹
-ËÍÁ¨Ñ¹·Ãì
-ËÑʹÕ
-ËÑÊÂÒ
-àËÁÇ´Õ
-àËÁ×͹¢ÇÑ­
-àËÁ×͹¾¹Í
-àËÃÕ­
-áËÅÁ·Í§ÊË¡ÒÃ
-Í.à¨ÃÔ­ÎÒÃì´áÇÃì
-ͧÍÒ¨
-Íâ³·ÂÒ
-Í´Ôàá
-Í´ÔÈÃ
-Í´ÔÈÑ¡´Ôì
-Í´ØÅ
-Í´ØžѲ¹ì
-Í´ØÅÂìà´ª
-͵Թت
-͵ԾÃ
-ͶԪÒ
-͸Ի¾Å
-͹§¤ì¹Ò®
-͹§¤ìÇÃó
-͹¹·ì
-͹ÇѪ
-͹ѭ­Ò
-͹ѹµÈÑ¡´Ôì
-͹ѹµì
-͹ءԵÔ
-͹ءÙÅ
-͹تÒ
-͹تԵ
-͹شÒ
-͹صµÃÒ
-͹صÃ
-͹طԵÒ
-͹ؾ§Èì
-͹ؾ§Éì
-͹ؾÃ
-͹ؾѹ¸ì
-͹ØÃÑ¡Éì
-͹ØÃѵ¹ì
-͹ØÃÑÉì
-͹ØÇѲ¹ì
-͹ØÈÑ¡´Ôì
-͹ØÊóì
-Í⹪Ò
-ÍÀѹµÃÕÊì
-ÍÀÔªÑÂ
-ÍÀÔªÒ µÔ
-ÍÀÔªÒµ
-ÍÀÔªÒµÔ
-ÍÀÔવ
-ÍÀÔ­­Ò
-ÍÀÔà´ª
-ÍÀԹѹ·ì
-ÍÀÔÀÒ´Ò
-ÍÀÔôÕ
-ÍÀÔÃÑ¡Éì
-ÍÀÔÇѲ¹ì
-ÍÀÔÇѹ·ì
-ÍÀÔÈÑ¡´Ôì
-ÍÀÔÊÃ
-ÍÀÔÊÔ·¸Ôì
-ÍÁêÑÂ
-ÍÁÃà·¾
-ÍÁÃÃѵ¹ì
-ÍÁÃÈÑ¡´Ôì
-ÍÁÃÊÔÃÔ
-ÍÁÃÒÅѡɳì
-ÍÁÔµÒ
-ÍÁÔ¹µÒ
-ÍÂظÂѹ
-ÍèÔÃÒ
-ÍêÃ
-ÍêسËì
-Íóѭªì
-Í÷ÑÂ
-Í÷ԪÒ
-ÍùԵÂì
-Íùت
-ÍÃ๵Ã
-ÍþÃó
-ÍþԹ
-ÍþԹ·Ãì
-ÍÃÀÑ·Ãì
-ÍÃæÂì
-ÍÃó¾
-ÍÃö¾¹¸ì
-ÍÃö¾Ã
-ÍÃö¾Å
-ÍÃöÊÔ·¸Ôì
-ÍÃÄ´Õ
-ÍÃÇÃó
-ÍÃÇÔ· ÍÔ¹àµÍÃì๪Ñè¹á¹Å
-ÍÃÈÁ
-ÍÃÈÃÕ
-ÍÃÊÒ
-ÍÃ͹§¤ì
-ÍÃÍØÁÒ
-ÍÃÑ­
-ÍÃÑ­­Ò
-ÍÃèÒÁÈÃÕ
-ÍÃÔªÑÂ
-ÍÃÔ¹ª¹Ò
-ÍÃÔ¹·ÁÒ
-ÍÃÔÂÒ
-ÍÃÔÂÒÀóì
-ÍÃÔÈÃÒ
-ÍÃÔÊÃÒ
-ÍÃÔÊÒ
-ÍÃس
-ÍÃسÃѵ¹ì
-ÍÃسÃØè§
-ÍÃسÈÃÕ
-ÍÃسÕ
-Íŧ¡µ
-Íŧ¡Ã³ì
-ÍǪÑÂ
-ÍͤµéÒ àÁÁâÁàÃÕÂÅ
-ÍͤµéÒàÁÁâÁàÃÕÂÅ
-ÍÍâµàÁªÑè¹à«ÍÃìÇÔÊ
-ÍéÍ·ԾÂì
-ÍÍÊ·ì ÍÍÂÊì
-ÍФÙà·ç¤·ì
-ÍÐÅÒ¹
-ÍѤÃà´ª
-ÍѤþ¹¸ì
-ÍѤþѨ¹ì
-ÍѤÃÇÔ·Âì
-ÍѤÃÇÔ¹·ì
-ÍѤÃÒ
-ÍѧʹÒ
-ÍѨ©ÃÒ
-ÍѪÂÒ
-ÍÑ­ª³Ò¾Ã
-ÍÑ­ª´Ò
-ÍÑ­ª¹Ò
-ÍÑ­ªÅÕ
-ÍÑ­ªØÅÕ
-ÍÑ®ÉÁÒ
-ÍѹÊÃÕÂì
-ÍÑ»ÊÃ
-ÍÑÁ¾Ã
-ÍÑÁ¾Ãó
-ÍÑÁä¾ÇÃó
-ÍÒ¤Á
-ÍÒ¨³Ã§¤ì
-ÍÒ«ÒÎÕ-ä·Â ÍÑÅÅÍÂ
-ÍҳѹÂì
-ÍÒ·Ô¡Ã
-ÍÒ·Ôµ
-ÍÒ¹¹·ì
-ÍÒ¹¾
-ÍҹѴ
-ÍҹѹµÂÒ
-ÍÒ¹ØÀÒ¾
-ÍÒÀóì
-ÍÒÀÒ
-ÍÒÀÒ¡Ã
-ÍÒÀÒ³Õ
-ÍÒÀÒ¾Ã
-ÍÒÀÒÀóì
-ÍéÒÂÍÔé§
-ÍÒÃì«Õ ¹ÔµáÇÃì
-ÍÒÃì«Ø»à»ÍÃì⫹Ԥ¾Ô¤ÍѾÊì
-ÍÒÃÁ³ì
-ÍÒÃÂѹ
-ÍÒÃÂÒ
-ÍÒÃÑ¡Éì
-ÍÒÃÒ¾Ã
-ÍÒÃÔÂÒ
-ÍÒÃÕ
-ÍÒÃÕÂì àÊÁÒ©ÔÁ (ä·Âູ¡Ñ¹
-ÍÒÃÕÂì
-ÍÒÃÕÃѵ¹ì
-ÍÒÃÕÇÃó
-ÍÓ¹ÇÂ
-ÍÓ¹Ò¨
-ÍÓ¾Ã
-ÍÓ¾Ãó
-ÍÓ¾Å
-ÍӾѹ¸ì
-ÍÓä¾
-ÍÓÀÒ
-ÍÔê¡«èÒ ÍÔ¹àµÍÃì๪Ñè¹á¹Åਹà¹ÃÑÅ à«ÅÅì
-Íԧ˷ÑÂ
-ÍÔ·¸Ô¾Å
-ÍԹ䫷ìà¤Á
-ÍÔ¹àµÍÃìàÇç·(»ÃÐà·Èä·Â)
-ÍÔ¹·ÔÃÒ
-ÍÔ¾
-ÍÔÁâ¡éá¾ç¤ ¤ÍÃì»ÍÃìàêÑè¹
-ÍÔÈÃÒ
-ÍÕ·Õ«Õ
-ÍØè§á¤Ð
-ÍسÒÇ´Õ
-ÍØ´Á
-ÍØ´Á¾§Èì
-ÍØ´Á¾Ã
-ÍØ´Á¾Ñ¹¸ì
-ÍØ´ÁàÁ´Ô¤ÍÅ ÍÔ¤ÇÔ»àÁé¹
-ÍØ´ÁÅѡɳì
-ÍØ´ÁÇþѹ¸ì
-ÍØ´ÁÈÑ¡´Ôì
-ÍØ´Ã
-ÍصâÁ·Âì
-ÍصÊÒË¡ÃÃÁ¼éÒà¤Å×ͺ¾ÅÒʵԡä·Â
-ÍØ·ÑÂ
-ÍØ·ÑÂÇÃó
-ÍØ·ØÁ¾Ã
-ÍØà·¹·Ãì
-ÍØè¹ã¨
-ÍغÅ
-ÍغžÃó
-ÍغÅÇÃó
-ÍØÁÒ
-ÍØÁÒ¾Ã
-ÍØÃÕÂì
-ÍØäÃ
-ÍØäþÃ
-ÍØäÃÃѵ¹ì
-ꯊ̗̂
-ÍØɳÕ
-ÍØÉÒ
-ÍØÊÒËì
-ÍØÌÒÃ
-àÍ.à¨.¾ÅÒÊ·ì
-àÍ¡ªÑÂ
-àÍç¡«Õà«ÅàŹ¿ÍÃìÁ
-àÍ¡ÃÒª
-àÍ¡ÃÔ¹·Ãì
-àÍ¡ÊÔ·¸Ôì
-à͡͹ѹµì
-àÍ¡ÍÃö
-àÍçª àÍçÁ «Õ â»ÅÕàÁÍÃì
-àÍçª.àÍçÁ.«Õ.â»ÅÔàÁÍÃì
-àÍçª.àÍçÁ.«Õ.â»ÅÕàÁÍÃì (º¨¡.)
-àÍàªÕÂàÊÃÔÁ¡Ô¨ÅÔÊ«Ôè§
-àÍç¹ ´Õ ठ(»ÃÐà·Èä·Â)
-àÍ¿ ÍÕ «Ô¤ÅÔ¤ (¡Ãا෾)
-àÍçÁ .«Õ.¾ÕÅÔÊ«Ôè§
-àÍçÁ «Õ ÍÐâ¡Ãà¤ÁÕ¤ÍÅ
-àÍçÁ.«Õ.¾Õ. ÅÔÊ«Ôè§
-àÍçÁ.àÍçÁ.«Õ.â»ÅÔàÁÍÃì
-àÍçÁ«ÕÊÂÒÁ âŨÕʵԤÊì
-àÍÊ à¨ ¾ÅÒÊ·ì á͹´ì ᾤ
-àÍÊ ¾Õ Ê᡹
-àÍÊ àÍÊ à¤ ¡Å¡ÒÃ
-àÍÊ.à¤.ÍÕ.
-àÍÊ.«Õ.¾Õ.ᾤ
-àÍÊ.¾Õ.¹ÔµµÔé§
-àÍÊ.àÍçÁ.ÇÕ ÊË¡ÒÃ
-àÍÊ.àÍÊ.ठ¡Å¡ÒÃ
-àÍÊ.àÍÊ.à¤.¡Å¡ÒÃ
-àÍÊ.àÍÊ.ÍÔ¹¡Íµ ÍÅÙÁÔà¹ÕÂÁ1999
-àÍÊÇÕ¹Ô··Ñ¹¾ÃÔ«ÔªÑè¹
-àÍ×é;ѹ¸Øì
-àÍ×éÍÁ¾Ã
-àÍ×éÍÍÒÃÕ
-á͹¹Ò
-á͹¹ÒÃÕ
-áͺºÕà¤ÃÊ·ì(»ÃÐà·Èä·Â)
-áÍÃì«Õ à¿Ã· ¿ÍÃìàÇÔ´àµÍÃì
-áÍÃì¾Õà¾ÔÅÍÔ¹àµÍÃì๪Ñè¹á¹Å
-áÍÅ¿èÒ â»Ãà«Ê«Ôè§
-áÍÊષ¾ÅÑÊ
-âÍàÃÕÂÅ·ÍÅ ¿Øé´
-âÍÇÍÐËÅÑè¾ÒÃì·à«ç¹àµÍÃì
-äÍ.«Õ.«Õ.ÍÔ¹àµÍÃì๪Ñè¹á¹Å (ÁËÒª¹)
-äÍ.·Õ.áÍ´ìÇÒ¹« à·¤ ¨Ó¡Ñ´
-äÍ.·Õ.á͹´ìÇÒ¹« à·¤ ¨Ó¡Ñ´
-äÍ.àÍÊ.äÍ.ÍÔ¹àµÍÃì๪Ñè¹á¹Å
-äÍÂàÃÈ
-ÎÍÊ·ì ÍÍÂÅì
-ÎÙàÇÍÃìÍصÊÒË¡ÃÃÁ(»ÃÐà·Èä·Â)
-àΧà¨ÃÔ­ªÑ ¡ÃØê» ÍÔ¹´ÑÊàµÃÕÂÅ
-DROP TABLE t1;
-SELECT 'a' = 'a ';
-'a' = 'a '
-1
-SELECT 'a\0' < 'a';
-'a\0' < 'a'
-1
-SELECT 'a\0' < 'a ';
-'a\0' < 'a '
-1
-SELECT 'a\t' < 'a';
-'a\t' < 'a'
-1
-SELECT 'a\t' < 'a ';
-'a\t' < 'a '
-1
-CREATE TABLE t1 (a char(10) not null) CHARACTER SET tis620;
-INSERT INTO t1 VALUES ('a'),('a\0'),('a\t'),('a ');
-SELECT hex(a),STRCMP(a,'a'), STRCMP(a,'a ') FROM t1;
-hex(a) STRCMP(a,'a') STRCMP(a,'a ')
-61 0 0
-6100 -1 -1
-6109 -1 -1
-61 0 0
-DROP TABLE t1;
-CREATE TABLE t1 (
-`id` int(11) NOT NULL auto_increment,
-`url` varchar(200) NOT NULL default '',
-`name` varchar(250) NOT NULL default '',
-`type` int(11) NOT NULL default '0',
-`website` varchar(250) NOT NULL default '',
-`adddate` date NOT NULL default '0000-00-00',
-`size` varchar(20) NOT NULL default '',
-`movieid` int(11) NOT NULL default '0',
-`musicid` int(11) NOT NULL default '0',
-`star` varchar(20) NOT NULL default '',
-`download` int(11) NOT NULL default '0',
-`lastweek` int(11) NOT NULL default '0',
-`thisweek` int(11) NOT NULL default '0',
-`page` varchar(250) NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `url` (`url`)
-) CHARACTER SET tis620;
-INSERT INTO t1 VALUES
-(1,'http://www.siamzone.com/download/download/000001-frodo_1024.jpg','The Lord
-of the Rings
-Wallpapers',1,'http://www.lordoftherings.net','2002-01-22','',448,0,'',3805,0,0,
-'');
-INSERT INTO t1 VALUES (2,'http://www.othemovie.com/OScreenSaver1.EXE','O
-Screensaver',2,'','2002-01-22','',491,0,'',519,0,0,'');
-INSERT INTO t1 VALUES
-(3,'http://www.siamzone.com/download/download/000003-jasonx2(800x600).jpg','Jaso
-n X Wallpapers',1,'','2002-05-31','',579,0,'',1091,0,0,'');
-select * from t1 order by id;
-id url name type website adddate size movieid musicid star download lastweek thisweek page
-1 http://www.siamzone.com/download/download/000001-frodo_1024.jpg The Lord
-of the Rings
-Wallpapers 1 http://www.lordoftherings.net 2002-01-22 448 0 3805 0 0
-2 http://www.othemovie.com/OScreenSaver1.EXE O
-Screensaver 2 2002-01-22 491 0 519 0 0
-3 http://www.siamzone.com/download/download/000003-jasonx2(800x600).jpg Jaso
-n X Wallpapers 1 2002-05-31 579 0 1091 0 0
-DROP TABLE t1;
-SET collation_connection='tis620_thai_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-tis620_thai_ci 6109
-tis620_thai_ci 61
-tis620_thai_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-tis620_thai_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-tis620_thai_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-tis620_thai_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-drop table if exists t1;
-create table t1 select repeat('a',10) as c1;
-delete from t1;
-insert into t1 values (0x20),(0x21),(0x22),(0x23),(0x24),(0x25),(0x26),(0x27),(0x28),(0x29),(0x2A),(0x2B),(0x2C),(0x2D),(0x2E),(0x2F);
-insert into t1 values (0x30),(0x31),(0x32),(0x33),(0x34),(0x35),(0x36),(0x37),(0x38),(0x39),(0x3A),(0x3B),(0x3C),(0x3D),(0x3E),(0x3F);
-insert into t1 values (0x40),(0x41),(0x42),(0x43),(0x44),(0x45),(0x46),(0x47),(0x48),(0x49),(0x4A),(0x4B),(0x4C),(0x4D),(0x4E),(0x4F);
-insert into t1 values (0x50),(0x51),(0x52),(0x53),(0x54),(0x55),(0x56),(0x57),(0x58),(0x59),(0x5A),(0x5B),(0x5C),(0x5D),(0x5E),(0x5F);
-insert into t1 values (0x60),(0x61),(0x62),(0x63),(0x64),(0x65),(0x66),(0x67),(0x68),(0x69),(0x6A),(0x6B),(0x6C),(0x6D),(0x6E),(0x6F);
-insert into t1 values (0x70),(0x71),(0x72),(0x73),(0x74),(0x75),(0x76),(0x77),(0x78),(0x79),(0x7A),(0x7B),(0x7C),(0x7D),(0x7E),(0x7F);
-SELECT GROUP_CONCAT(c1 ORDER BY binary c1 SEPARATOR ''), GROUP_CONCAT(hex(c1) ORDER BY BINARY c1) FROM t1 GROUP BY c1;
-GROUP_CONCAT(c1 ORDER BY binary c1 SEPARATOR '') GROUP_CONCAT(hex(c1) ORDER BY BINARY c1)
- 20
-! 21
-" 22
-# 23
-$ 24
-% 25
-& 26
-' 27
-( 28
-) 29
-* 2A
-+ 2B
-, 2C
-- 2D
-. 2E
-/ 2F
-0 30
-1 31
-2 32
-3 33
-4 34
-5 35
-6 36
-7 37
-8 38
-9 39
-: 3A
-; 3B
-< 3C
-= 3D
-> 3E
-? 3F
-@ 40
-[ 5B
-\ 5C
-] 5D
-^ 5E
-_ 5F
-` 60
-Aa 41,61
-Bb 42,62
-Cc 43,63
-Dd 44,64
-Ee 45,65
-Ff 46,66
-Gg 47,67
-Hh 48,68
-Ii 49,69
-Jj 4A,6A
-Kk 4B,6B
-Ll 4C,6C
-Mm 4D,6D
-Nn 4E,6E
-Oo 4F,6F
-Pp 50,70
-Qq 51,71
-Rr 52,72
-Ss 53,73
-Tt 54,74
-Uu 55,75
-Vv 56,76
-Ww 57,77
-Xx 58,78
-Yy 59,79
-Zz 5A,7A
-{ 7B
-| 7C
-} 7D
-~ 7E
- 7F
-drop table t1;
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET tis620 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE CONCAT(c1)='a';
-c1
-a
-a
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'a ';
-c1
-a
-SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'a' and concat(`test`.`t1`.`c1`) like 'a '
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET tis620 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1);
-c1
-a
-a
-SELECT * FROM t1 WHERE 'a ' LIKE CONCAT(c1);
-c1
-a
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 'a' = concat(`test`.`t1`.`c1`) and 'a ' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET tis620 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '% '=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '% ' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET tis620 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '%'=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-#
-# MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a'
-#
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET tis620 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ';
-a LENGTH(a)
-a 1
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-a LENGTH(a)
-a 1
-EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a' and `test`.`t1`.`a` not like 'a '
-DROP TABLE t1;
-#
-# End of MDEV-8694
-#
-SET collation_connection='tis620_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-tis620_bin 6109
-tis620_bin 61
-tis620_bin 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-tis620_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-tis620_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-tis620_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET tis620 COLLATE tis620_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE CONCAT(c1)='a';
-c1
-a
-a
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'a ';
-c1
-a
-SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'a' and concat(`test`.`t1`.`c1`) like 'a '
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET tis620 COLLATE tis620_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1);
-c1
-a
-a
-SELECT * FROM t1 WHERE 'a ' LIKE CONCAT(c1);
-c1
-a
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 'a' = concat(`test`.`t1`.`c1`) and 'a ' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET tis620 COLLATE tis620_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '% '=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '% ' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET tis620 COLLATE tis620_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '%'=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-#
-# MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a'
-#
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET tis620 COLLATE tis620_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ';
-a LENGTH(a)
-a 1
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-a LENGTH(a)
-a 1
-EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a' and `test`.`t1`.`a` not like 'a '
-DROP TABLE t1;
-#
-# End of MDEV-8694
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set names tis620;
-set collation_connection=tis620_thai_ci;
-select @@collation_connection;
-@@collation_connection
-tis620_thai_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET tis620 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-61
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET tis620 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-6161616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-6161616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(40) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61616161612020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61616161612020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-61
-select hex(weight_string('A'));
-hex(weight_string('A'))
-61
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-616263
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-6162
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-616263
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-6162632020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-61
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-6162
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-616220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-61622020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-6162202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-61622020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-61
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-6162
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-616263
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-61626320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-61
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-6162
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-616263
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-61626320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-tis620_thai_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-61
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-61
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-616263
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-6162
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-616263
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-6162632020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020636261
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-9E9D9CDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDF9C9D9E
-SELECT strcmp('a','a '), strcmp('a ','a');
-strcmp('a','a ') strcmp('a ','a')
-0 0
-SELECT strcmp('a\0','a' ), strcmp('a','a\0');
-strcmp('a\0','a' ) strcmp('a','a\0')
--1 1
-SELECT strcmp('a\0','a '), strcmp('a ','a\0');
-strcmp('a\0','a ') strcmp('a ','a\0')
--1 1
-SELECT strcmp('a\t','a' ), strcmp('a', 'a\t');
-strcmp('a\t','a' ) strcmp('a', 'a\t')
--1 1
-SELECT strcmp('a\t','a '), strcmp('a ', 'a\t');
-strcmp('a\t','a ') strcmp('a ', 'a\t')
--1 1
-select hex(weight_string(cast(0xE0A1 as char)));
-hex(weight_string(cast(0xE0A1 as char)))
-A1E0
-select hex(weight_string(cast(0xE0A1 as char) as char(1)));
-hex(weight_string(cast(0xE0A1 as char) as char(1)))
-A1
-set collation_connection=tis620_bin;
-select @@collation_connection;
-@@collation_connection
-tis620_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET tis620 COLLATE tis620_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-61
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET tis620 COLLATE tis620_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-6161616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-6161616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61616161612020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61616161612020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-61
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-616263
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-6162
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-616263
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-6162632020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-61
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-6162
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-616220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-61622020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-6162202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-61622020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-61
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-6162
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-616263
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-61626320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-61
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-6162
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-616263
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-61626320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-tis620_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-61
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-616263
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-6162
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-616263
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-6162632020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020636261
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-9E9D9CDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDF9C9D9E
-SELECT strcmp('a','a '), strcmp('a ','a');
-strcmp('a','a ') strcmp('a ','a')
-0 0
-SELECT strcmp('a\0','a' ), strcmp('a','a\0');
-strcmp('a\0','a' ) strcmp('a','a\0')
--1 1
-SELECT strcmp('a\0','a '), strcmp('a ','a\0');
-strcmp('a\0','a ') strcmp('a ','a\0')
--1 1
-SELECT strcmp('a\t','a' ), strcmp('a', 'a\t');
-strcmp('a\t','a' ) strcmp('a', 'a\t')
--1 1
-SELECT strcmp('a\t','a '), strcmp('a ', 'a\t');
-strcmp('a\t','a ') strcmp('a ', 'a\t')
--1 1
-select hex(weight_string(cast(0xE0A1 as char)));
-hex(weight_string(cast(0xE0A1 as char)))
-E0A1
-select hex(weight_string(cast(0xE0A1 as char) as char(1)));
-hex(weight_string(cast(0xE0A1 as char) as char(1)))
-E0
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=tis620;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'tis620_thai_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE tis620_thai_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=tis620 COLLATE=tis620_thai_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'tis620_thai_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'tis620_thai_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'tis620_thai_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'tis620_thai_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'tis620_thai_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'tis620_thai_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'tis620_thai_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'tis620_thai_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'tis620_thai_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'tis620_thai_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'tis620_thai_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'tis620_thai_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'tis620_thai_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'tis620_thai_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_thai_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_thai_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'tis620_thai_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_thai_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_thai_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'tis620_thai_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE tis620_thai_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=tis620 COLLATE=tis620_thai_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'tis620_thai_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'tis620_thai_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'tis620_thai_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'tis620_thai_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'tis620_thai_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'tis620_thai_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'tis620_thai_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'tis620_thai_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'tis620_thai_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'tis620_thai_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'tis620_thai_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'tis620_thai_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'tis620_thai_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'tis620_thai_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_thai_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_thai_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'tis620_thai_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_thai_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_thai_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'tis620_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE tis620_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=tis620 COLLATE=tis620_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'tis620_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'tis620_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'tis620_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'tis620_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'tis620_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'tis620_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'tis620_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'tis620_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'tis620_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'tis620_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'tis620_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'tis620_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'tis620_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'tis620_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'tis620_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'tis620_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE tis620_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=tis620 COLLATE=tis620_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'tis620_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'tis620_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'tis620_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'tis620_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'tis620_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'tis620_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'tis620_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'tis620_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'tis620_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'tis620_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'tis620_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'tis620_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'tis620_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'tis620_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'tis620_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'tis620_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_uca.result b/mysql-test/r/ctype_uca.result
deleted file mode 100644
index 725e744c44e..00000000000
--- a/mysql-test/r/ctype_uca.result
+++ /dev/null
@@ -1,15379 +0,0 @@
-DROP TABLE IF EXISTS t1;
-set names utf8;
-set collation_connection=utf8_unicode_ci;
-select 'a' = 'a', 'a' = 'a ', 'a ' = 'a';
-'a' = 'a' 'a' = 'a ' 'a ' = 'a'
-1 1 1
-select 'a\t' = 'a' , 'a\t' < 'a' , 'a\t' > 'a';
-'a\t' = 'a' 'a\t' < 'a' 'a\t' > 'a'
-0 1 0
-select 'a\t' = 'a ', 'a\t' < 'a ', 'a\t' > 'a ';
-'a\t' = 'a ' 'a\t' < 'a ' 'a\t' > 'a '
-0 1 0
-select 'a' = 'a\t', 'a' < 'a\t', 'a' > 'a\t';
-'a' = 'a\t' 'a' < 'a\t' 'a' > 'a\t'
-0 0 1
-select 'a ' = 'a\t', 'a ' < 'a\t', 'a ' > 'a\t';
-'a ' = 'a\t' 'a ' < 'a\t' 'a ' > 'a\t'
-0 0 1
-select 'a a' > 'a', 'a \t' < 'a';
-'a a' > 'a' 'a \t' < 'a'
-1 1
-select 'c' like '\_' as want0;
-want0
-0
-CREATE TABLE t (
-c char(20) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-INSERT INTO t VALUES ('a'),('ab'),('aba');
-ALTER TABLE t ADD INDEX (c);
-SELECT c FROM t WHERE c LIKE 'a%';
-c
-a
-ab
-aba
-DROP TABLE t;
-create table t1 (c1 char(10) character set utf8 collate utf8_bin);
-insert into t1 values ('A'),('a');
-insert into t1 values ('B'),('b');
-insert into t1 values ('C'),('c');
-insert into t1 values ('D'),('d');
-insert into t1 values ('E'),('e');
-insert into t1 values ('F'),('f');
-insert into t1 values ('G'),('g');
-insert into t1 values ('H'),('h');
-insert into t1 values ('I'),('i');
-insert into t1 values ('J'),('j');
-insert into t1 values ('K'),('k');
-insert into t1 values ('L'),('l');
-insert into t1 values ('M'),('m');
-insert into t1 values ('N'),('n');
-insert into t1 values ('O'),('o');
-insert into t1 values ('P'),('p');
-insert into t1 values ('Q'),('q');
-insert into t1 values ('R'),('r');
-insert into t1 values ('S'),('s');
-insert into t1 values ('T'),('t');
-insert into t1 values ('U'),('u');
-insert into t1 values ('V'),('v');
-insert into t1 values ('W'),('w');
-insert into t1 values ('X'),('x');
-insert into t1 values ('Y'),('y');
-insert into t1 values ('Z'),('z');
-insert into t1 values (_ucs2 0x00e0),(_ucs2 0x00c0);
-insert into t1 values (_ucs2 0x00e1),(_ucs2 0x00c1);
-insert into t1 values (_ucs2 0x00e2),(_ucs2 0x00c2);
-insert into t1 values (_ucs2 0x00e3),(_ucs2 0x00c3);
-insert into t1 values (_ucs2 0x00e4),(_ucs2 0x00c4);
-insert into t1 values (_ucs2 0x00e5),(_ucs2 0x00c5);
-insert into t1 values (_ucs2 0x00e6),(_ucs2 0x00c6);
-insert into t1 values (_ucs2 0x00e7),(_ucs2 0x00c7);
-insert into t1 values (_ucs2 0x00e8),(_ucs2 0x00c8);
-insert into t1 values (_ucs2 0x00e9),(_ucs2 0x00c9);
-insert into t1 values (_ucs2 0x00ea),(_ucs2 0x00ca);
-insert into t1 values (_ucs2 0x00eb),(_ucs2 0x00cb);
-insert into t1 values (_ucs2 0x00ec),(_ucs2 0x00cc);
-insert into t1 values (_ucs2 0x00ed),(_ucs2 0x00cd);
-insert into t1 values (_ucs2 0x00ee),(_ucs2 0x00ce);
-insert into t1 values (_ucs2 0x00ef),(_ucs2 0x00cf);
-insert into t1 values (_ucs2 0x00f0),(_ucs2 0x00d0);
-insert into t1 values (_ucs2 0x00f1),(_ucs2 0x00d1);
-insert into t1 values (_ucs2 0x00f2),(_ucs2 0x00d2);
-insert into t1 values (_ucs2 0x00f3),(_ucs2 0x00d3);
-insert into t1 values (_ucs2 0x00f4),(_ucs2 0x00d4);
-insert into t1 values (_ucs2 0x00f5),(_ucs2 0x00d5);
-insert into t1 values (_ucs2 0x00f6),(_ucs2 0x00d6);
-insert into t1 values (_ucs2 0x00f7),(_ucs2 0x00d7);
-insert into t1 values (_ucs2 0x00f8),(_ucs2 0x00d8);
-insert into t1 values (_ucs2 0x00f9),(_ucs2 0x00d9);
-insert into t1 values (_ucs2 0x00fa),(_ucs2 0x00da);
-insert into t1 values (_ucs2 0x00fb),(_ucs2 0x00db);
-insert into t1 values (_ucs2 0x00fc),(_ucs2 0x00dc);
-insert into t1 values (_ucs2 0x00fd),(_ucs2 0x00dd);
-insert into t1 values (_ucs2 0x00fe),(_ucs2 0x00de);
-insert into t1 values (_ucs2 0x00ff),(_ucs2 0x00df);
-insert into t1 values (_ucs2 0x0100),(_ucs2 0x0101),(_ucs2 0x0102),(_ucs2 0x0103);
-insert into t1 values (_ucs2 0x0104),(_ucs2 0x0105),(_ucs2 0x0106),(_ucs2 0x0107);
-insert into t1 values (_ucs2 0x0108),(_ucs2 0x0109),(_ucs2 0x010a),(_ucs2 0x010b);
-insert into t1 values (_ucs2 0x010c),(_ucs2 0x010d),(_ucs2 0x010e),(_ucs2 0x010f);
-insert into t1 values (_ucs2 0x0110),(_ucs2 0x0111),(_ucs2 0x0112),(_ucs2 0x0113);
-insert into t1 values (_ucs2 0x0114),(_ucs2 0x0115),(_ucs2 0x0116),(_ucs2 0x0117);
-insert into t1 values (_ucs2 0x0118),(_ucs2 0x0119),(_ucs2 0x011a),(_ucs2 0x011b);
-insert into t1 values (_ucs2 0x011c),(_ucs2 0x011d),(_ucs2 0x011e),(_ucs2 0x011f);
-insert into t1 values (_ucs2 0x0120),(_ucs2 0x0121),(_ucs2 0x0122),(_ucs2 0x0123);
-insert into t1 values (_ucs2 0x0124),(_ucs2 0x0125),(_ucs2 0x0126),(_ucs2 0x0127);
-insert into t1 values (_ucs2 0x0128),(_ucs2 0x0129),(_ucs2 0x012a),(_ucs2 0x012b);
-insert into t1 values (_ucs2 0x012c),(_ucs2 0x012d),(_ucs2 0x012e),(_ucs2 0x012f);
-insert into t1 values (_ucs2 0x0130),(_ucs2 0x0131),(_ucs2 0x0132),(_ucs2 0x0133);
-insert into t1 values (_ucs2 0x0134),(_ucs2 0x0135),(_ucs2 0x0136),(_ucs2 0x0137);
-insert into t1 values (_ucs2 0x0138),(_ucs2 0x0139),(_ucs2 0x013a),(_ucs2 0x013b);
-insert into t1 values (_ucs2 0x013c),(_ucs2 0x013d),(_ucs2 0x013e),(_ucs2 0x013f);
-insert into t1 values (_ucs2 0x0140),(_ucs2 0x0141),(_ucs2 0x0142),(_ucs2 0x0143);
-insert into t1 values (_ucs2 0x0144),(_ucs2 0x0145),(_ucs2 0x0146),(_ucs2 0x0147);
-insert into t1 values (_ucs2 0x0148),(_ucs2 0x0149),(_ucs2 0x014a),(_ucs2 0x014b);
-insert into t1 values (_ucs2 0x014c),(_ucs2 0x014d),(_ucs2 0x014e),(_ucs2 0x014f);
-insert into t1 values (_ucs2 0x0150),(_ucs2 0x0151),(_ucs2 0x0152),(_ucs2 0x0153);
-insert into t1 values (_ucs2 0x0154),(_ucs2 0x0155),(_ucs2 0x0156),(_ucs2 0x0157);
-insert into t1 values (_ucs2 0x0158),(_ucs2 0x0159),(_ucs2 0x015a),(_ucs2 0x015b);
-insert into t1 values (_ucs2 0x015c),(_ucs2 0x015d),(_ucs2 0x015e),(_ucs2 0x015f);
-insert into t1 values (_ucs2 0x0160),(_ucs2 0x0161),(_ucs2 0x0162),(_ucs2 0x0163);
-insert into t1 values (_ucs2 0x0164),(_ucs2 0x0165),(_ucs2 0x0166),(_ucs2 0x0167);
-insert into t1 values (_ucs2 0x0168),(_ucs2 0x0169),(_ucs2 0x016a),(_ucs2 0x016b);
-insert into t1 values (_ucs2 0x016c),(_ucs2 0x016d),(_ucs2 0x016e),(_ucs2 0x016f);
-insert into t1 values (_ucs2 0x0170),(_ucs2 0x0171),(_ucs2 0x0172),(_ucs2 0x0173);
-insert into t1 values (_ucs2 0x0174),(_ucs2 0x0175),(_ucs2 0x0176),(_ucs2 0x0177);
-insert into t1 values (_ucs2 0x0178),(_ucs2 0x0179),(_ucs2 0x017a),(_ucs2 0x017b);
-insert into t1 values (_ucs2 0x017c),(_ucs2 0x017d),(_ucs2 0x017e),(_ucs2 0x017f);
-insert into t1 values (_ucs2 0x0180),(_ucs2 0x0181),(_ucs2 0x0182),(_ucs2 0x0183);
-insert into t1 values (_ucs2 0x0184),(_ucs2 0x0185),(_ucs2 0x0186),(_ucs2 0x0187);
-insert into t1 values (_ucs2 0x0188),(_ucs2 0x0189),(_ucs2 0x018a),(_ucs2 0x018b);
-insert into t1 values (_ucs2 0x018c),(_ucs2 0x018d),(_ucs2 0x018e),(_ucs2 0x018f);
-insert into t1 values (_ucs2 0x0190),(_ucs2 0x0191),(_ucs2 0x0192),(_ucs2 0x0193);
-insert into t1 values (_ucs2 0x0194),(_ucs2 0x0195),(_ucs2 0x0196),(_ucs2 0x0197);
-insert into t1 values (_ucs2 0x0198),(_ucs2 0x0199),(_ucs2 0x019a),(_ucs2 0x019b);
-insert into t1 values (_ucs2 0x019c),(_ucs2 0x019d),(_ucs2 0x019e),(_ucs2 0x019f);
-insert into t1 values (_ucs2 0x01a0),(_ucs2 0x01a1),(_ucs2 0x01a2),(_ucs2 0x01a3);
-insert into t1 values (_ucs2 0x01a4),(_ucs2 0x01a5),(_ucs2 0x01a6),(_ucs2 0x01a7);
-insert into t1 values (_ucs2 0x01a8),(_ucs2 0x01a9),(_ucs2 0x01aa),(_ucs2 0x01ab);
-insert into t1 values (_ucs2 0x01ac),(_ucs2 0x01ad),(_ucs2 0x01ae),(_ucs2 0x01af);
-insert into t1 values (_ucs2 0x01b0),(_ucs2 0x01b1),(_ucs2 0x01b2),(_ucs2 0x01b3);
-insert into t1 values (_ucs2 0x01b4),(_ucs2 0x01b5),(_ucs2 0x01b6),(_ucs2 0x01b7);
-insert into t1 values (_ucs2 0x01b8),(_ucs2 0x01b9),(_ucs2 0x01ba),(_ucs2 0x01bb);
-insert into t1 values (_ucs2 0x01bc),(_ucs2 0x01bd),(_ucs2 0x01be),(_ucs2 0x01bf);
-insert into t1 values (_ucs2 0x01c0),(_ucs2 0x01c1),(_ucs2 0x01c2),(_ucs2 0x01c3);
-insert into t1 values (_ucs2 0x01c4),(_ucs2 0x01c5),(_ucs2 0x01c6),(_ucs2 0x01c7);
-insert into t1 values (_ucs2 0x01c8),(_ucs2 0x01c9),(_ucs2 0x01ca),(_ucs2 0x01cb);
-insert into t1 values (_ucs2 0x01cc),(_ucs2 0x01cd),(_ucs2 0x01ce),(_ucs2 0x01cf);
-insert into t1 values (_ucs2 0x01d0),(_ucs2 0x01d1),(_ucs2 0x01d2),(_ucs2 0x01d3);
-insert into t1 values (_ucs2 0x01d4),(_ucs2 0x01d5),(_ucs2 0x01d6),(_ucs2 0x01d7);
-insert into t1 values (_ucs2 0x01d8),(_ucs2 0x01d9),(_ucs2 0x01da),(_ucs2 0x01db);
-insert into t1 values (_ucs2 0x01dc),(_ucs2 0x01dd),(_ucs2 0x01de),(_ucs2 0x01df);
-insert into t1 values (_ucs2 0x01e0),(_ucs2 0x01e1),(_ucs2 0x01e2),(_ucs2 0x01e3);
-insert into t1 values (_ucs2 0x01e4),(_ucs2 0x01e5),(_ucs2 0x01e6),(_ucs2 0x01e7);
-insert into t1 values (_ucs2 0x01e8),(_ucs2 0x01e9),(_ucs2 0x01ea),(_ucs2 0x01eb);
-insert into t1 values (_ucs2 0x01ec),(_ucs2 0x01ed),(_ucs2 0x01ee),(_ucs2 0x01ef);
-insert into t1 values (_ucs2 0x01f0),(_ucs2 0x01f1),(_ucs2 0x01f2),(_ucs2 0x01f3);
-insert into t1 values (_ucs2 0x01f4),(_ucs2 0x01f5),(_ucs2 0x01f6),(_ucs2 0x01f7);
-insert into t1 values (_ucs2 0x01f8),(_ucs2 0x01f9),(_ucs2 0x01fa),(_ucs2 0x01fb);
-insert into t1 values (_ucs2 0x01fc),(_ucs2 0x01fd),(_ucs2 0x01fe),(_ucs2 0x01ff);
-INSERT INTO t1 VALUES (_ucs2 0x1EA0),(_ucs2 0x1EA1),(_ucs2 0x1EA2),(_ucs2 0x1EA3);
-INSERT INTO t1 VALUES (_ucs2 0x1EA4),(_ucs2 0x1EA5),(_ucs2 0x1EA6),(_ucs2 0x1EA7);
-INSERT INTO t1 VALUES (_ucs2 0x1EA8),(_ucs2 0x1EA9),(_ucs2 0x1EAA),(_ucs2 0x1EAB);
-INSERT INTO t1 VALUES (_ucs2 0x1EAC),(_ucs2 0x1EAD),(_ucs2 0x1EAE),(_ucs2 0x1EAF);
-INSERT INTO t1 VALUES (_ucs2 0x1EB0),(_ucs2 0x1EB1),(_ucs2 0x1EB2),(_ucs2 0x1EB3);
-INSERT INTO t1 VALUES (_ucs2 0x1EB4),(_ucs2 0x1EB5),(_ucs2 0x1EB6),(_ucs2 0x1EB7);
-INSERT INTO t1 VALUES (_ucs2 0x1EB8),(_ucs2 0x1EB9),(_ucs2 0x1EBA),(_ucs2 0x1EBB);
-INSERT INTO t1 VALUES (_ucs2 0x1EBC),(_ucs2 0x1EBD),(_ucs2 0x1EBE),(_ucs2 0x1EBF);
-INSERT INTO t1 VALUES (_ucs2 0x1EC0),(_ucs2 0x1EC1),(_ucs2 0x1EC2),(_ucs2 0x1EC3);
-INSERT INTO t1 VALUES (_ucs2 0x1EC4),(_ucs2 0x1EC5),(_ucs2 0x1EC6),(_ucs2 0x1EC7);
-INSERT INTO t1 VALUES (_ucs2 0x1EC8),(_ucs2 0x1EC9),(_ucs2 0x1ECA),(_ucs2 0x1ECB);
-INSERT INTO t1 VALUES (_ucs2 0x1ECC),(_ucs2 0x1ECD),(_ucs2 0x1ECE),(_ucs2 0x1ECF);
-INSERT INTO t1 VALUES (_ucs2 0x1ED0),(_ucs2 0x1ED1),(_ucs2 0x1ED2),(_ucs2 0x1ED3);
-INSERT INTO t1 VALUES (_ucs2 0x1ED4),(_ucs2 0x1ED5),(_ucs2 0x1ED6),(_ucs2 0x1ED7);
-INSERT INTO t1 VALUES (_ucs2 0x1ED8),(_ucs2 0x1ED9),(_ucs2 0x1EDA),(_ucs2 0x1EDB);
-INSERT INTO t1 VALUES (_ucs2 0x1EDC),(_ucs2 0x1EDD),(_ucs2 0x1EDE),(_ucs2 0x1EDF);
-INSERT INTO t1 VALUES (_ucs2 0x1EE0),(_ucs2 0x1EE1),(_ucs2 0x1EE2),(_ucs2 0x1EE3);
-INSERT INTO t1 VALUES (_ucs2 0x1EE4),(_ucs2 0x1EE5),(_ucs2 0x1EE6),(_ucs2 0x1EE7);
-INSERT INTO t1 VALUES (_ucs2 0x1EE8),(_ucs2 0x1EE9),(_ucs2 0x1EEA),(_ucs2 0x1EEB);
-INSERT INTO t1 VALUES (_ucs2 0x1EEC),(_ucs2 0x1EED),(_ucs2 0x1EEE),(_ucs2 0x1EEF);
-INSERT INTO t1 VALUES (_ucs2 0x1EF0),(_ucs2 0x1EF1);
-insert into t1 values ('AA'),('Aa'),('aa'),('aA');
-insert into t1 values ('AE'),('Ae'),('ae'),('aE');
-insert into t1 values ('CH'),('Ch'),('ch'),('cH');
-insert into t1 values ('DZ'),('Dz'),('dz'),('dZ');
-insert into t1 values ('DŽ'),('Dž'),('dž'),('dŽ');
-insert into t1 values ('IJ'),('Ij'),('ij'),('iJ');
-insert into t1 values ('LJ'),('Lj'),('lj'),('lJ');
-insert into t1 values ('LL'),('Ll'),('ll'),('lL');
-insert into t1 values ('NJ'),('Nj'),('nj'),('nJ');
-insert into t1 values ('OE'),('Oe'),('oe'),('oE');
-insert into t1 values ('SS'),('Ss'),('ss'),('sS');
-insert into t1 values ('RR'),('Rr'),('rr'),('rR');
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_unicode_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_icelandic_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Â,Ã,à,â,ã,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Ã,á
-Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ã,ð
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-E,e,È,Ê,Ë,è,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-É,é
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,ÃŽ,Ã,ì,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-Ã,í
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ô,Õ,ò,ô,õ,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ó,ó
-Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Û,Ü,ù,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ú,ú
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,ÿ,Ŷ,ŷ,Ÿ
-Ã,ý
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Þ,þ
-Ä,Æ,ä,æ
-Ö,Ø,ö,ø
-Ã…,Ã¥
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_latvian_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,Ċ,ċ
-CH,Ch,cH,ch
-ÄŒ,Ä
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz,DŽ,Dž,dž,DZ,Dz,dz
-DŽ,Dž,dŽ,dž
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ǧ,ǧ,Ç´,ǵ
-Ä¢,Ä£
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-Y,y
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ǩ,ǩ
-Ķ,ķ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Ļ,ļ
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Ņ,ņ
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ř,ř
-RR,Rr,rR,rr
-Å–,Å—
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż
-Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_romanian_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Ã,Ä,Ã…,à,á,ã,ä,Ã¥,Ä€,Ä,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Ă,ă
-Â,â
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,Ã,ì,í,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-Î,î
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Åž,ÅŸ
-Æ©
-ƪ
-T,t,Ť,ť
-ƾ
-Å¢,Å£
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_slovenian_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,Ċ,ċ
-CH,Ch,cH,ch
-ÄŒ,Ä
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz,DŽ,Dž,dž,DZ,Dz,dz
-DŽ,Dž,dŽ,dž
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż
-Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_polish_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Ä„,Ä…
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ć,ć
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-Ę,ę
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Ń,ń
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ô,Õ,Ö,ò,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ó,ó
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Åš,Å›
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ž,ž
-Ź,ź
-Ż,ż
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_estonian_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ã…,à,á,â,ã,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz
-DŽ,Dž,dŽ,dž
-DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,ò,ó,ô,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Z,z
-Ž,ž
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,ù,ú,û,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-Õ,õ
-Ä,ä
-Ö,ö
-Ü,ü
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Ź,ź,Ż,ż
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_spanish_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Ñ,ñ
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_swedish_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,à,á,â,ã,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,ò,ó,ô,õ,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,ù,ú,û,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ãœ,Ã,ü,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ã…,Ã¥
-Ä,Æ,ä,æ
-Ö,Ø,ö,ø
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_turkish_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ç,ç
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Äž,ÄŸ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-I,ı
-IJ,Ij
-ƕ,Ƕ
-Ħ,ħ
-i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-iJ,ij,IJ,ij
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,ò,ó,ô,õ,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ö,ö
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Åž,ÅŸ
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,ù,ú,û,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ü,ü
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_czech_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,Ċ,ċ
-cH
-ÄŒ,Ä
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz,DŽ,Dž,dž,DZ,Dz,dz
-DŽ,Dž,dŽ,dž
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-CH,Ch,ch
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Å”,Å•,Å–,Å—
-RR,Rr,rR,rr
-Ř,ř
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż
-Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_danish_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,à,á,â,ã,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-aA
-AE,Ae,aE,ae
-Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,ò,ó,ô,õ,ÅŒ,Å,ÅŽ,Å,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,ù,ú,û,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ãœ,Ã,ü,ý,ÿ,Å°,ű,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ä,Æ,ä,æ
-Ö,Ø,ö,ø,Å,Å‘
-AA,Aa,aa,Ã…,Ã¥
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_lithuanian_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,CH,Ch,c,ch,Ç,ç,Ć,ć,Ĉ,ĉ,Ċ,ċ
-cH
-ÄŒ,Ä
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz,DŽ,Dž,dž,DZ,Dz,dz
-DŽ,Dž,dŽ,dž
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,Y,i,y,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż
-Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_slovak_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ã…,à,á,â,ã,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Ä,ä
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,Ċ,ċ
-cH
-ÄŒ,Ä
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz,DŽ,Dž,dž,DZ,Dz,dz
-DŽ,Dž,dŽ,dž
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-CH,Ch,ch
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Õ,Ö,ò,ó,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ô,ô
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż
-Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_spanish2_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-cH
-CH,Ch,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-lL
-LL,Ll,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Ñ,ñ
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_roman_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,J,i,j,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij
-IJ,ij
-ı
-Æ—
-Æ–
-Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj
-LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj
-NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-U,V,u,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_esperanto_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ĉ,ĉ
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Ğ,ğ,Ġ,ġ,Ģ,ģ,Ǧ,ǧ,Ǵ,ǵ
-Äœ,Ä
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h
-Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ç°
-Ĵ,ĵ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Åœ,Å
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ŭ,ŭ
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_hungarian_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,ò,ó,ô,õ,ÅŒ,Å,ÅŽ,Å,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ö,ö,Å,Å‘
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,ù,ú,û,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ü,ü,Ű,ű
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_croatian_mysql561_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ĉ,ĉ,Ċ,ċ
-CH,Ch,cH,ch
-ÄŒ,Ä
-Ć,ć
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz,DZ,Dz,dz
-DŽ,Dž,dŽ,dž,DŽ,Dž,dž
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LL,Ll,lL,ll
-LJ,Lj,lJ,lj,LJ,Lj,lj
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż
-Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_croatian_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ĉ,ĉ,Ċ,ċ
-CH,Ch,cH,ch
-ÄŒ,Ä
-Ć,ć
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz,DZ,Dz,dz
-dŽ
-DŽ,Dž,dž,DŽ,Dž,dž
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-lJ
-LL,Ll,lL,ll
-LJ,Lj,lj,LJ,Lj,lj
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-nJ
-NJ,Nj,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż
-Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_german2_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ã…,à,á,â,ã,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae,Ä,Æ,ä,æ
-Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,ò,ó,ô,õ,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Ö,ö,Œ,œ
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,ù,ú,û,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ü,ü
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_unicode_520_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae,Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,Ã,ð,ÄŽ,Ä,Ä,Ä‘
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ɖ
-ÆŠ
-Ƌ,ƌ
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ,Ħ,ħ
-ƕ,Ƕ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ä»,ļ,Ľ,ľ,Ä¿,Å€,Å,Å‚
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,Ø,ò,ó,ô,õ,ö,ø,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ǿ,Ç¿,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_vietnamese_ci;
-group_concat(c1 order by c1)
-÷
-×
-A,a,À,Ã,Ã,Ä,Ã…,à,á,ã,ä,Ã¥,Ä€,Ä,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Ă,ă,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-Â,â,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ë,è,é,ë,Ē,ē,Ĕ,ĕ,Ė,ė,Ę,ę,Ě,ě,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ
-Ê,ê,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Õ,Ö,ò,ó,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»
-OE,Oe,oE,oe,Å’,Å“
-Ô,ô,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™
-Æ ,Æ¡,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ
-Ư,ư,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by c1) from t1 group by c1 collate utf8_thai_520_w2;
-group_concat(c1 order by c1)
-÷
-×
-A,a
-Ã,á
-À,à
-Ă,ă
-Ắ,ắ
-Ằ,ằ
-Ẵ,ẵ
-Ẳ,ẳ
-Â,â
-Ấ,ấ
-Ầ,ầ
-Ẫ,ẫ
-Ẩ,ẩ
-Ç,ÇŽ
-Ã…,Ã¥
-Ǻ,ǻ
-Ä,ä
-Çž,ÇŸ
-Ã,ã
-Ç ,Ç¡
-Ä„,Ä…
-Ä€,Ä
-Ả,ả
-Ạ,ạ
-Ặ,ặ
-Ậ,ậ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ
-Ǽ,ǽ
-Ç¢,Ç£
-B,b
-Æ€
-Ƃ,ƃ
-C,c
-Ć,ć
-Ĉ,ĉ
-ÄŒ,Ä
-ÄŠ,Ä‹
-Ç,ç
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d
-ÄŽ,Ä
-Ä,Ä‘
-Ã,ð
-DZ,Dz,dZ,dz,DZ,Dz,dz
-DŽ,Dž,dŽ,dž,DŽ,Dž,dž
-Ɖ
-ÆŠ
-Ƌ,ƌ
-E,e
-É,é
-È,è
-Ä”,Ä•
-Ê,ê
-Ế,ế
-Ề,á»
-Ễ,ễ
-Ể,ể
-Äš,Ä›
-Ë,ë
-Ẽ,ẽ
-Ä–,Ä—
-Ę,ę
-Ä’,Ä“
-Ẻ,ẻ
-Ẹ,ẹ
-Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g
-Ǵ,ǵ
-Äž,ÄŸ
-Äœ,Ä
-Ǧ,ǧ
-Ä ,Ä¡
-Ä¢,Ä£
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h
-Ĥ,ĥ
-Ħ,ħ
-ƕ,Ƕ
-I,i
-Ã,í
-Ì,ì
-Ĭ,ĭ
-Î,î
-Ç,Ç
-Ã,ï
-Ĩ,ĩ
-Ä°
-Į,į
-Ī,ī
-Ỉ,ỉ
-Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j
-Ĵ,ĵ
-Ç°
-K,k
-Ǩ,ǩ
-Ķ,ķ
-Ƙ,ƙ
-L,l
-Ĺ,ĺ
-Ľ,ľ
-Ļ,ļ
-Å,Å‚
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Æš
-Æ›
-M,m
-N,n
-Ń,ń
-Ǹ,ǹ
-Ň,ň
-Ñ,ñ
-Ņ,ņ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o
-Ó,ó
-Ò,ò
-ÅŽ,Å
-Ô,ô
-á»,ố
-Ồ,ồ
-á»–,á»—
-Ổ,ổ
-Ç‘,Ç’
-Ö,ö
-Å,Å‘
-Õ,õ
-Ø,ø
-Ǿ,ǿ
-Ǫ,ǫ
-Ǭ,ǭ
-ÅŒ,Å
-Ỏ,á»
-Æ ,Æ¡
-Ớ,ớ
-Ờ,á»
-Ỡ,ỡ
-Ở,ở
-Ợ,ợ
-Ọ,á»
-Ộ,ộ
-OE,Oe,oE,oe
-Å’,Å“
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r
-Å”,Å•
-Ř,ř
-Å–,Å—
-RR,Rr,rR,rr
-Ʀ
-S,s
-Åš,Å›
-Åœ,Å
-Å ,Å¡
-Åž,ÅŸ
-Å¿
-SS,Ss,sS,ss
-ß
-Æ©
-ƪ
-T,t
-Ť,ť
-Å¢,Å£
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u
-Ú,ú
-Ù,ù
-Ŭ,ŭ
-Û,û
-Ç“,Ç”
-Ů,ů
-Ü,ü
-Ǘ,ǘ
-Ǜ,ǜ
-Ç™,Çš
-Ç•,Ç–
-Ű,ű
-Ũ,ũ
-Ų,ų
-Ū,ū
-Ủ,ủ
-Ư,ư
-Ứ,ứ
-Ừ,ừ
-Ữ,ữ
-Ử,ử
-á»°,á»±
-Ụ,ụ
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w
-Ŵ,ŵ
-X,x
-Y,y
-Ã,ý
-Ŷ,ŷ
-ÿ,Ÿ
-Ƴ,ƴ
-Z,z
-Ź,ź
-Ž,ž
-Ż,ż
-Ƶ,ƶ
-Æ·
-Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-ALTER TABLE t1 CONVERT TO CHARACTER SET ucs2 COLLATE ucs2_bin;
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_unicode_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_icelandic_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Â,Ã,à,â,ã,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Ã,á
-Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ã,ð
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-E,e,È,Ê,Ë,è,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-É,é
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,ÃŽ,Ã,ì,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-Ã,í
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ô,Õ,ò,ô,õ,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ó,ó
-Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Û,Ü,ù,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ú,ú
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,ÿ,Ŷ,ŷ,Ÿ
-Ã,ý
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Þ,þ
-Ä,Æ,ä,æ
-Ö,Ø,ö,ø
-Ã…,Ã¥
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_latvian_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,Ċ,ċ
-CH,Ch,cH,ch
-ÄŒ,Ä
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz,DŽ,Dž,dž,DZ,Dz,dz
-DŽ,Dž,dŽ,dž
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ǧ,ǧ,Ç´,ǵ
-Ä¢,Ä£
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-Y,y
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ǩ,ǩ
-Ķ,ķ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Ļ,ļ
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Ņ,ņ
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ř,ř
-RR,Rr,rR,rr
-Å–,Å—
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż
-Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_romanian_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Ã,Ä,Ã…,à,á,ã,ä,Ã¥,Ä€,Ä,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Ă,ă
-Â,â
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,Ã,ì,í,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-Î,î
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Åž,ÅŸ
-Æ©
-ƪ
-T,t,Ť,ť
-ƾ
-Å¢,Å£
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_slovenian_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,Ċ,ċ
-CH,Ch,cH,ch
-ÄŒ,Ä
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz,DŽ,Dž,dž,DZ,Dz,dz
-DŽ,Dž,dŽ,dž
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż
-Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_polish_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Ä„,Ä…
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ć,ć
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-Ę,ę
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Ń,ń
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ô,Õ,Ö,ò,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ó,ó
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Åš,Å›
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ž,ž
-Ź,ź
-Ż,ż
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_estonian_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ã…,à,á,â,ã,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz
-DŽ,Dž,dŽ,dž
-DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,ò,ó,ô,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Z,z
-Ž,ž
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,ù,ú,û,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-Õ,õ
-Ä,ä
-Ö,ö
-Ü,ü
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Ź,ź,Ż,ż
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_spanish_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Ñ,ñ
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_swedish_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,à,á,â,ã,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,ò,ó,ô,õ,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,ù,ú,û,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ãœ,Ã,ü,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ã…,Ã¥
-Ä,Æ,ä,æ
-Ö,Ø,ö,ø
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_turkish_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ç,ç
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Äž,ÄŸ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-I,ı
-IJ,Ij
-ƕ,Ƕ
-Ħ,ħ
-i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-iJ,ij,IJ,ij
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,ò,ó,ô,õ,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ö,ö
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Åž,ÅŸ
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,ù,ú,û,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ü,ü
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_czech_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,Ċ,ċ
-cH
-ÄŒ,Ä
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz,DŽ,Dž,dž,DZ,Dz,dz
-DŽ,Dž,dŽ,dž
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-CH,Ch,ch
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Å”,Å•,Å–,Å—
-RR,Rr,rR,rr
-Ř,ř
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż
-Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_danish_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,à,á,â,ã,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-aA
-AE,Ae,aE,ae
-Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,ò,ó,ô,õ,ÅŒ,Å,ÅŽ,Å,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,ù,ú,û,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ãœ,Ã,ü,ý,ÿ,Å°,ű,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ä,Æ,ä,æ
-Ö,Ø,ö,ø,Å,Å‘
-AA,Aa,aa,Ã…,Ã¥
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_lithuanian_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,CH,Ch,c,ch,Ç,ç,Ć,ć,Ĉ,ĉ,Ċ,ċ
-cH
-ÄŒ,Ä
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz,DŽ,Dž,dž,DZ,Dz,dz
-DŽ,Dž,dŽ,dž
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,Y,i,y,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż
-Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_slovak_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ã…,à,á,â,ã,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Ä,ä
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,Ċ,ċ
-cH
-ÄŒ,Ä
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz,DŽ,Dž,dž,DZ,Dz,dz
-DŽ,Dž,dŽ,dž
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-CH,Ch,ch
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Õ,Ö,ò,ó,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ô,ô
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż
-Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_spanish2_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-cH
-CH,Ch,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-lL
-LL,Ll,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Ñ,ñ
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_roman_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,J,i,j,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij
-IJ,ij
-ı
-Æ—
-Æ–
-Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj
-LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj
-NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-U,V,u,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_esperanto_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ĉ,ĉ
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Ğ,ğ,Ġ,ġ,Ģ,ģ,Ǧ,ǧ,Ǵ,ǵ
-Äœ,Ä
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h
-Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ç°
-Ĵ,ĵ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Åœ,Å
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ŭ,ŭ
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_hungarian_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,ò,ó,ô,õ,ÅŒ,Å,ÅŽ,Å,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ö,ö,Å,Å‘
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,ù,ú,û,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ü,ü,Ű,ű
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_croatian_mysql561_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ĉ,ĉ,Ċ,ċ
-CH,Ch,cH,ch
-ÄŒ,Ä
-Ć,ć
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz,DZ,Dz,dz
-DŽ,Dž,dŽ,dž,DŽ,Dž,dž
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LL,Ll,lL,ll
-LJ,Lj,lJ,lj,LJ,Lj,lj
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż
-Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_croatian_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ĉ,ĉ,Ċ,ċ
-CH,Ch,cH,ch
-ÄŒ,Ä
-Ć,ć
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,dZ,dz,DZ,Dz,dz
-dŽ
-DŽ,Dž,dž,DŽ,Dž,dž
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-lJ
-LL,Ll,lL,ll
-LJ,Lj,lj,LJ,Lj,lj
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-nJ
-NJ,Nj,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,ò,ó,ô,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å¿
-SS,Ss,sS,ss,ß
-Å ,Å¡
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż
-Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_german2_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ã…,à,á,â,ã,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae,Ä,Æ,ä,æ
-Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,ò,ó,ô,õ,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Ö,ö,Œ,œ
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,ù,ú,û,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ü,ü
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_unicode_520_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Â,Ã,Ä,Ã…,à,á,â,ã,ä,Ã¥,Ä€,Ä,Ä‚,ă,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-AA,Aa,aA,aa
-AE,Ae,aE,ae,Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,Ã,ð,ÄŽ,Ä,Ä,Ä‘
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ɖ
-ÆŠ
-Ƌ,ƌ
-E,e,È,É,Ê,Ë,è,é,ê,ë,Ä’,Ä“,Ä”,Ä•,Ä–,Ä—,Ę,Ä™,Äš,Ä›,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ,Ħ,ħ
-ƕ,Ƕ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ä»,ļ,Ľ,ľ,Ä¿,Å€,Å,Å‚
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Ô,Õ,Ö,Ø,ò,ó,ô,õ,ö,ø,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Æ ,Æ¡,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ǿ,Ç¿,Ọ,á»,Ỏ,á»,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-OE,Oe,oE,oe,Å’,Å“
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ư,ư,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1) FROM t1 GROUP BY c1 COLLATE ucs2_vietnamese_ci;
-GROUP_CONCAT(c1 ORDER BY c1)
-÷
-×
-A,a,À,Ã,Ã,Ä,Ã…,à,á,ã,ä,Ã¥,Ä€,Ä,Ä„,Ä…,Ç,ÇŽ,Çž,ÇŸ,Ç ,Ç¡,Ǻ,Ç»,Ạ,ạ,Ả,ả
-AA,Aa,aA,aa
-AE,Ae,aE,ae
-Ă,ă,Ắ,ắ,Ằ,ằ,Ẳ,ẳ,Ẵ,ẵ,Ặ,ặ
-Â,â,Ấ,ấ,Ầ,ầ,Ẩ,ẩ,Ẫ,ẫ,Ậ,ậ
-Æ,æ,Ǣ,ǣ,Ǽ,ǽ
-B,b
-Æ€
-Ƃ,ƃ
-C,c,Ç,ç,Ć,ć,Ĉ,ĉ,ÄŠ,Ä‹,ÄŒ,Ä
-CH,Ch,cH,ch
-Ƈ,ƈ
-D,d,ÄŽ,Ä
-DZ,Dz,DŽ,Dž,dZ,dz,dŽ,dž,DŽ,Dž,dž,DZ,Dz,dz
-Ä,Ä‘
-Ɖ
-ÆŠ
-Ƌ,ƌ
-Ã,ð
-E,e,È,É,Ë,è,é,ë,Ē,ē,Ĕ,ĕ,Ė,ė,Ę,ę,Ě,ě,Ẹ,ẹ,Ẻ,ẻ,Ẽ,ẽ
-Ê,ê,Ế,ế,Ề,á»,Ể,ể,Ễ,á»…,Ệ,ệ
-ÆŽ,Ç
-F,f
-Æ‘,Æ’
-G,g,Äœ,Ä,Äž,ÄŸ,Ä ,Ä¡,Ä¢,Ä£,Ǧ,ǧ,Ç´,ǵ
-Ǥ,ǥ
-Æ“
-Æ”
-Æ¢,Æ£
-H,h,Ĥ,ĥ
-ƕ,Ƕ
-Ħ,ħ
-I,i,ÃŒ,Ã,ÃŽ,Ã,ì,í,î,ï,Ĩ,Ä©,Ī,Ä«,Ĭ,Ä­,Ä®,į,Ä°,Ç,Ç,Ỉ,ỉ,Ị,ị
-IJ,Ij,iJ,ij,IJ,ij
-ı
-Æ—
-Æ–
-J,j,Ĵ,ĵ,ǰ
-K,k,Ķ,ķ,Ǩ,ǩ
-Ƙ,ƙ
-L,l,Ĺ,ĺ,Ļ,ļ,Ľ,ľ
-Ä¿,Å€
-LJ,Lj,lJ,lj,LJ,Lj,lj
-LL,Ll,lL,ll
-Å,Å‚
-Æš
-Æ›
-M,m
-N,n,Ñ,ñ,Ń,ń,Ņ,ņ,Ň,ň,Ǹ,ǹ
-NJ,Nj,nJ,nj,NJ,Nj,nj
-Æž
-ÅŠ,Å‹
-O,o,Ã’,Ó,Õ,Ö,ò,ó,õ,ö,ÅŒ,Å,ÅŽ,Å,Å,Å‘,Ç‘,Ç’,Ǫ,Ç«,Ǭ,Ç­,Ọ,á»,Ỏ,á»
-OE,Oe,oE,oe,Å’,Å“
-Ô,ô,á»,ố,á»’,ồ,á»”,ổ,á»–,á»—,Ộ,á»™
-Æ ,Æ¡,Ớ,á»›,Ờ,á»,Ở,ở,á» ,ỡ,Ợ,ợ
-Ø,ø,Ǿ,ǿ
-Ɔ
-ÆŸ
-P,p
-Ƥ,ƥ
-Q,q
-ĸ
-R,r,Ŕ,ŕ,Ŗ,ŗ,Ř,ř
-RR,Rr,rR,rr
-Ʀ
-S,s,Åš,Å›,Åœ,Å,Åž,ÅŸ,Å ,Å¡,Å¿
-SS,Ss,sS,ss,ß
-Æ©
-ƪ
-T,t,Ţ,ţ,Ť,ť
-ƾ
-Ŧ,ŧ
-Æ«
-Ƭ,ƭ
-Æ®
-U,u,Ù,Ú,Û,Ü,ù,ú,û,ü,Ũ,ũ,Ū,ū,Ŭ,ŭ,Ů,ů,Ű,ű,Ų,ų,Ǔ,ǔ,Ǖ,ǖ,Ǘ,ǘ,Ǚ,ǚ,Ǜ,ǜ,Ụ,ụ,Ủ,ủ
-Ư,ư,Ứ,ứ,Ừ,ừ,Ử,ử,Ữ,ữ,Ự,ự
-Ɯ
-Ʊ
-V,v
-Ʋ
-W,w,Ŵ,ŵ
-X,x
-Y,y,Ã,ý,ÿ,Ŷ,Å·,Ÿ
-Ƴ,ƴ
-Z,z,Ź,ź,Ż,ż,Ž,ž
-Ƶ,ƶ
-Ʒ,Ǯ,ǯ
-Ƹ,ƹ
-ƺ
-Þ,þ
-Æ¿,Ç·
-Æ»
-Ƨ,ƨ
-Ƽ,ƽ
-Æ„,Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-drop table t1;
-SET NAMES utf8;
-CREATE TABLE t1 (c varchar(255) NOT NULL COLLATE utf8_general_ci, INDEX (c));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x039C03C903B403B11F770308 USING utf8));
-SELECT * FROM t1 WHERE c LIKE CONVERT(_ucs2 0x039C0025 USING utf8)
-COLLATE utf8_general_ci;
-c
-Μωδαί̈
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x039C03C903B4 USING utf8));
-SELECT * FROM t1 WHERE c LIKE CONVERT(_ucs2 0x039C0025 USING utf8)
-COLLATE utf8_general_ci ORDER BY c;
-c
-Μωδ
-Μωδαί̈
-DROP TABLE t1;
-CREATE TABLE t1 (c varchar(255) NOT NULL COLLATE ucs2_unicode_ci, INDEX (c));
-INSERT INTO t1 VALUES (_ucs2 0x039C03C903B403B11F770308);
-SELECT * FROM t1 WHERE c LIKE _ucs2 0x039C0025 COLLATE ucs2_unicode_ci;
-c
-Μωδαί̈
-INSERT INTO t1 VALUES (_ucs2 0x039C03C903B4);
-SELECT * FROM t1 WHERE c LIKE _ucs2 0x039C0025
-COLLATE ucs2_unicode_ci ORDER BY c;
-c
-Μωδ
-Μωδαί̈
-DROP TABLE t1;
-CREATE TABLE t1 (c varchar(255) NOT NULL COLLATE utf8_unicode_ci, INDEX (c));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x039C03C903B403B11F770308 USING utf8));
-SELECT * FROM t1 WHERE c LIKE CONVERT(_ucs2 0x039C0025 USING utf8) COLLATE utf8_unicode_ci;
-c
-Μωδαί̈
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x039C03C903B4 USING utf8));
-SELECT * FROM t1 WHERE c LIKE CONVERT(_ucs2 0x039C0025 USING utf8)
-COLLATE utf8_unicode_ci ORDER BY c;
-c
-Μωδ
-Μωδαί̈
-DROP TABLE t1;
-CREATE TABLE t1 (
-col1 CHAR(32) CHARACTER SET utf8 NOT NULL
-);
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0041004100410627 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0041004100410628 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0041004100410647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0041004100410648 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0633064A0651062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062D06330646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062A0642064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06320627062F0647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062806310627064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064706450647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F062706460634062C0648064A06270646064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06A90647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062A06270631064A062E USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062706460642064406270628 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0627064A0631062706460650 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0627062F064806270631062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06280631062706480646200C06310627 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062E064806270646062F0647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0648 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062A062D062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062A0623062B064A0631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06220646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0642063106270631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06AF06310641062A0647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06270646062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0634062E0635064A0651062A064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0628062706310632 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06270633062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x063906A90633 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06270648060C USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F0631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062D062F0648062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0628064A0633062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0648067E0646062C USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06330627064406AF064A060C USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x063306270644 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064606450627064A0646062F0647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062A06280631064A0632 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0645062C06440633 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06280648062F060C USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0628064A0646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06350641062D0627062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0627064A0646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06A9062A06270628 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06280647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x068606340645 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0645064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062E06480631062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0686064706310647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0627064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06420648064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06450635064506510645 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06310627 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0646063406270646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0645064A200C062F0647062F060C USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0647063106860646062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06390645064400BB USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06A9064806340634 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0628 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064706500646064A064606AF USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0627062D063306270646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064A062706310634062706370631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06450646062A06340631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0634062F0647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F0633062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062A064806270646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0647064506270646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0627064806510644 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062A0634062E064A0635 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F0627062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06280627 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062A064106270648062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062D06270644062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062A064106A906510631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x063A064406280647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F06270631062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064A06A9064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06270632 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x063106470628063106270646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064606470636062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064506340631064806370647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0627064A063106270646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0646064A0632 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064A06A9 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0645062D064206510642 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0637063106270632 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064106310647064606AF USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062A0645062F06510646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0627064A063106270646064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06280648062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06A90627063106470627064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06270648 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0639063106350647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0627064506480631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0633064A06270633064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0627064A063106270646060C USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062D064806320647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x063906440645 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F062706460634 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06450642062706440627062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F064A06AF0631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0648064A06980647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0646062706450647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064506480631062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0628062D062B USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0628063106310633064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064606480634062A0647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06450646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062A064606470627 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0622064606860647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F064806310647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0627064206270645062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x067E0631062F062706320645 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0698062706460648064A0647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0648064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F06390648062A0650 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x063306500631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F0646064A0633064F0646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x063106270633 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0647064A0626062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0639064406480645200C063406310642064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06280639062F0627064B USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0645062F063106330647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062206410631064A06420627064A064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F06270646063406AF06270647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06440646062F0646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x067E064A06480633062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0647064606AF06270645064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x067E0633 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0622063A06270632 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062C064606AF USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062C064706270646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F064806510645 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x063406470631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06A9064506280631064A062C USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06450646062A06420644 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06A90631062F0646062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06470645 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06310641062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06220646062C0627 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064506270646062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062A0627 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062706A9062A06280631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064606380631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F06480644062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F06480628062706310647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064606330628062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0645063306270639062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0634062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06480632064A0631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0645062E062A06270631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06330641064A0631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0627064606AF0644064A0633 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062A0642064A200C06320627062F0647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06280627063206AF0634062A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0647064506330631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06220644064506270646064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06270634 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06220645062F0647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06A906270631064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x067E0631062F0627062E062A0647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x063906440645064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x0627062F0628064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062D062F0651 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064606280648062F060C USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06480644064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x063906480636060C USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06340627064A062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064506470645 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062A0631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06220646060C USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06470645063306310634 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06A90627064606480646 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062E0627064606480627062F06AF064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06AF06310645064A USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06280648062C0648062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062206480631062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F0648 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06A90627064506440627064B USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x064A06A9062F064A06AF0631 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06AF USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F064406280633062A0647 USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06280648062F0646062F USING utf8));
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x06450647064506270646 USING utf8));
-SELECT HEX(CONVERT(col1 USING ucs2)) FROM t1 ORDER BY col1 COLLATE utf8_persian_ci, col1 COLLATE utf8_bin;
-HEX(CONVERT(col1 USING ucs2))
-0041004100410627
-0041004100410628
-0041004100410648
-0041004100410647
-0622063A06270632
-062206410631064A06420627064A064A
-06220644064506270646064A
-06220645062F0647
-06220646
-06220646060C
-06220646062C0627
-0622064606860647
-062206480631062F
-0627062D063306270646
-0627062F0628064A
-0627062F064806270631062F
-06270632
-06270633062A
-06270634
-0627064206270645062A
-062706A9062A06280631
-0627064506480631
-06270646062F
-062706460642064406270628
-0627064606AF0644064A0633
-06270648
-06270648060C
-0627064806510644
-0627064A
-0627064A063106270646
-0627064A063106270646060C
-0627064A0631062706460650
-0627064A063106270646064A
-0627064A0646
-0628
-06280627
-0628062706310632
-06280627063206AF0634062A
-0628062D062B
-06280631062706480646200C06310627
-062806310627064A
-0628063106310633064A
-06280639062F0627064B
-06280648062C0648062F
-06280648062F
-06280648062F060C
-06280648062F0646062F
-06280647
-0628064A0633062A
-0628064A0646
-067E0631062F0627062E062A0647
-067E0631062F062706320645
-067E0633
-067E064A06480633062A
-062A0627
-062A06270631064A062E
-062A0623062B064A0631
-062A06280631064A0632
-062A062D062A
-062A0631
-062A0634062E064A0635
-062A064106270648062A
-062A064106A906510631
-062A0642064A
-062A0642064A200C06320627062F0647
-062A0645062F06510646
-062A064606470627
-062A064806270646
-062C064606AF
-062C064706270646
-068606340645
-0686064706310647
-062D06270644062A
-062D062F0651
-062D062F0648062F
-062D06330646
-062D064806320647
-062E0627064606480627062F06AF064A
-062E064806270646062F0647
-062E06480631062F
-062F0627062F
-062F06270631062F
-062F062706460634
-062F062706460634062C0648064A06270646064A
-062F06270646063406AF06270647
-062F0631
-062F0633062A
-062F06390648062A0650
-062F064406280633062A0647
-062F0646064A0633064F0646
-062F0648
-062F06480628062706310647
-062F064806310647
-062F06480644062A
-062F064806510645
-062F064A06AF0631
-06310627
-063106270633
-06310641062A
-063106470628063106270646
-06320627062F0647
-0698062706460648064A0647
-063306500631
-063306270644
-06330627064406AF064A060C
-06330641064A0631
-0633064A06270633064A
-0633064A0651062F
-06340627064A062F
-0634062E0635064A0651062A064A
-0634062F
-0634062F0647
-063406470631
-06350641062D0627062A
-0637063106270632
-0639063106350647
-063906A90633
-063906440645
-063906440645064A
-0639064406480645200C063406310642064A
-06390645064400BB
-063906480636060C
-063A064406280647
-064106310647064606AF
-0642063106270631
-06420648064A
-06A90627063106470627064A
-06A906270631064A
-06A90627064506440627064B
-06A90627064606480646
-06A9062A06270628
-06A90631062F0646062F
-06A9064506280631064A062C
-06A9064806340634
-06A90647
-06AF
-06AF06310641062A0647
-06AF06310645064A
-06440646062F0646
-064506270646062F
-0645062C06440633
-0645062D064206510642
-0645062E062A06270631
-0645062F063106330647
-0645063306270639062F
-064506340631064806370647
-06450635064506510645
-06450642062706440627062A
-06450646
-06450646062A06340631
-06450646062A06420644
-064506480631062F
-064506470645
-06450647064506270646
-0645064A
-0645064A200C062F0647062F060C
-0646062706450647
-064606280648062F060C
-064606330628062A
-0646063406270646
-064606380631
-064606450627064A0646062F0647
-064606480634062A0647
-064606470636062A
-0646064A0632
-0648
-0648067E0646062C
-06480632064A0631
-06480644064A
-0648064A
-0648064A06980647
-064706500646064A064606AF
-0647063106860646062F
-06470645
-0647064506270646
-0647064506330631
-06470645063306310634
-064706450647
-0647064606AF06270645064A
-0647064A0626062A
-064A062706310634062706370631
-064A06A9
-064A06A9062F064A06AF0631
-064A06A9064A
-DROP TABLE t1;
-CREATE TABLE t1 (
-a VARCHAR(10) CHARACTER SET utf8 COLLATE utf8_persian_ci,
-offs INT NOT NULL
-);
-INSERT INTO t1 VALUES
-(_ucs2 0x066D, 1),(_ucs2 0x064E, 2),(_ucs2 0xFE76, 3),(_ucs2 0xFE77, 4),
-(_ucs2 0x0650, 5),(_ucs2 0xFE7A, 6),(_ucs2 0xFE7B, 7),(_ucs2 0x064F, 8),
-(_ucs2 0xFE78, 9),(_ucs2 0xFE79,10),(_ucs2 0x064B,11),(_ucs2 0xFE70,12),
-(_ucs2 0xFE71,13),(_ucs2 0x064D,14),(_ucs2 0xFE74,15),(_ucs2 0x064C,16),
-(_ucs2 0xFE72,17),
-(_ucs2 0xFE7F, 1),(_ucs2 0x0653, 2),(_ucs2 0x0654, 3),(_ucs2 0x0655, 4),
-(_ucs2 0x0670, 5),
-(_ucs2 0x0669, 1),(_ucs2 0x0622, 2),(_ucs2 0x0627, 3),(_ucs2 0x0671, 4),
-(_ucs2 0x0621, 5),(_ucs2 0x0623, 6),(_ucs2 0x0625, 7),(_ucs2 0x0624, 8),
-(_ucs2 0x0626, 9),
-(_ucs2 0x0642, 1),(_ucs2 0x06A9, 2),(_ucs2 0x0643, 3),
-(_ucs2 0x0648, 1),(_ucs2 0x0647, 2),(_ucs2 0x0629, 3),(_ucs2 0x06C0, 4),
-(_ucs2 0x06CC, 5),(_ucs2 0x0649, 6),(_ucs2 0x064A, 7),
-(_ucs2 0xFE80, 1),(_ucs2 0xFE81, 2),(_ucs2 0xFE82, 3),(_ucs2 0xFE8D, 4),
-(_ucs2 0xFE8E, 5),(_ucs2 0xFB50, 6),(_ucs2 0xFB51, 7),(_ucs2 0xFE80, 8),
-(_ucs2 0xFE83, 9),(_ucs2 0xFE84,10),(_ucs2 0xFE87,11),(_ucs2 0xFE88,12),
-(_ucs2 0xFE85,13),(_ucs2 0xFE86,14),(_ucs2 0x0689,16),(_ucs2 0x068A,17),
-(_ucs2 0xFEAE, 1),(_ucs2 0xFDFC, 2),
-(_ucs2 0xFED8, 1),(_ucs2 0xFB8E, 2),(_ucs2 0xFB8F, 3),(_ucs2 0xFB90, 4),
-(_ucs2 0xFB91, 5),(_ucs2 0xFED9, 6),(_ucs2 0xFEDA, 7),(_ucs2 0xFEDB, 8),
-(_ucs2 0xFEDC, 9),
-(_ucs2 0xFEEE, 1),(_ucs2 0xFEE9, 2),(_ucs2 0xFEEA, 3),(_ucs2 0xFEEB, 4),
-(_ucs2 0xFEEC, 5),(_ucs2 0xFE93, 6),(_ucs2 0xFE94, 7),(_ucs2 0xFBA4, 8),
-(_ucs2 0xFBA5, 9),(_ucs2 0xFBFC,10),(_ucs2 0xFBFD,11),(_ucs2 0xFBFE,12),
-(_ucs2 0xFBFF,13),(_ucs2 0xFEEF,14),(_ucs2 0xFEF0,15),(_ucs2 0xFEF1,16),
-(_ucs2 0xFEF2,17),(_ucs2 0xFEF3,18),(_ucs2 0xFEF4,19),(_ucs2 0xFEF5,20),
-(_ucs2 0xFEF6,21),(_ucs2 0xFEF7,22),(_ucs2 0xFEF8,23),(_ucs2 0xFEF9,24),
-(_ucs2 0xFEFA,25),(_ucs2 0xFEFB,26),(_ucs2 0xFEFC,27);
-SELECT HEX(CONVERT(a USING ucs2)), offs, hex(weight_string(a)), a
-FROM t1 ORDER BY a, offs, BINARY a;
-HEX(CONVERT(a USING ucs2)) offs hex(weight_string(a)) a
-0653 2 0001 Ù“
-0654 3 0002 Ù”
-0655 4 0003 Ù•
-0670 5 0004 Ù°
-FE7F 1 ﹿ
-066D 1 02CB Ù­
-064E 2 02CC ÙŽ
-FE76 3 02CD ﹶ
-FE77 4 02CE ï¹·
-0650 5 02CF Ù
-FE7A 6 02D0 ﹺ
-FE7B 7 02D1 ï¹»
-064F 8 02D2 Ù
-FE78 9 02D3 ﹸ
-FE79 10 02D4 ï¹¹
-064B 11 02D5 Ù‹
-FE70 12 02D6 ï¹°
-FE71 13 02D7 ï¹±
-064D 14 02D8 Ù
-FE74 15 02D9 ï¹´
-064C 16 02DA ٌ
-FE72 17 02DB ï¹²
-0669 1 0E32 Ù©
-0622 2 0E33 آ
-0627 3 0E34 ا
-0671 4 0E35 Ù±
-0621 5 0E36 Ø¡
-0623 6 0E37 أ
-0625 7 0E38 إ
-0624 8 0E39 ؤ
-0626 9 0E3A ئ
-FE81 2 1348 ïº
-FE82 3 1349 ﺂ
-FE8D 4 134A ïº
-FE8E 5 134B ﺎ
-FB50 6 134C ï­
-FB51 7 134D ï­‘
-FE80 1 134E ﺀ
-FE80 8 134E ﺀ
-FE83 9 134F ﺃ
-FE84 10 1350 ﺄ
-FE87 11 1351 ﺇ
-FE88 12 1352 ﺈ
-FE85 13 1353 ﺅ
-FE86 14 1354 ﺆ
-0689 16 1355 Ú‰
-068A 17 1356 ÚŠ
-FEAE 1 1375 ﺮ
-FDFC 2 1376 ï·¼
-0642 1 139B Ù‚
-FED8 1 139B ﻘ
-06A9 2 139C Ú©
-FB8E 2 139C ﮎ
-0643 3 139D Ùƒ
-FB8F 3 139D ï®
-FB90 4 139E ï®
-FB91 5 139F ﮑ
-FED9 6 13A0 ï»™
-FEDA 7 13A1 ﻚ
-FEDB 8 13A2 ï»›
-FEDC 9 13A3 ﻜ
-0648 1 13BD Ùˆ
-FEEE 1 13BD ï»®
-0647 2 13BE Ù‡
-FEE9 2 13BE ﻩ
-0629 3 13BF Ø©
-FEEA 3 13BF ﻪ
-06C0 4 13C0 Û€
-FEEB 4 13C0 ﻫ
-06CC 5 13C1 ی
-FEEC 5 13C1 ﻬ
-0649 6 13C2 Ù‰
-FE93 6 13C2 ﺓ
-064A 7 13C3 ÙŠ
-FE94 7 13C3 ﺔ
-FBA4 8 13C4 ﮤ
-FBA5 9 13C5 ﮥ
-FBFC 10 13C6 ﯼ
-FBFD 11 13C7 ﯽ
-FBFE 12 13C8 ﯾ
-FBFF 13 13C9 ﯿ
-FEEF 14 13CA ﻯ
-FEF0 15 13CB ï»°
-FEF1 16 13CC ï»±
-FEF2 17 13CD ﻲ
-FEF3 18 13CE ﻳ
-FEF4 19 13CF ï»´
-FEF5 20 13D0 ﻵ
-FEF6 21 13D1 ﻶ
-FEF7 22 13D2 ï»·
-FEF8 23 13D3 ﻸ
-FEF9 24 13D4 ﻹ
-FEFA 25 13D5 ﻺ
-FEFB 26 13D6 ï»»
-FEFC 27 13D7 ﻼ
-DROP TABLE t1;
-SET @test_character_set= 'utf8';
-SET @test_collation= 'utf8_swedish_ci';
-SET @safe_character_set_server= @@character_set_server;
-SET @safe_collation_server= @@collation_server;
-SET @safe_character_set_client= @@character_set_client;
-SET @safe_character_set_results= @@character_set_results;
-SET character_set_server= @test_character_set;
-SET collation_server= @test_collation;
-CREATE DATABASE d1;
-USE d1;
-CREATE TABLE t1 (c CHAR(10), KEY(c));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c char(10) utf8_swedish_ci YES MUL NULL
-INSERT INTO t1 VALUES ('aaa'),('aaaa'),('aaaaa');
-SELECT c as want3results FROM t1 WHERE c LIKE 'aaa%';
-want3results
-aaa
-aaaa
-aaaaa
-DROP TABLE t1;
-CREATE TABLE t1 (c1 varchar(15), KEY c1 (c1(2)));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c1 varchar(15) utf8_swedish_ci YES MUL NULL
-INSERT INTO t1 VALUES ('location'),('loberge'),('lotre'),('boabab');
-SELECT c1 as want3results from t1 where c1 like 'l%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want3results from t1 where c1 like 'lo%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want1result from t1 where c1 like 'loc%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'loca%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locat%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locati%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locatio%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'location%';
-want1result
-location
-DROP TABLE t1;
-create table t1 (a set('a') not null);
-insert ignore into t1 values (),();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-select cast(a as char(1)) from t1;
-cast(a as char(1))
-
-
-select a sounds like a from t1;
-a sounds like a
-1
-1
-select 1 from t1 order by cast(a as char(1));
-1
-1
-1
-drop table t1;
-#
-# MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found
-#
-SET character_set_client=latin1;
-SET character_set_connection= @test_character_set;
-SET collation_connection= @test_collation;
-SELECT COLLATION('.'), SUBSTRING_INDEX('.wwwmysqlcom', '.', -2) AS c1;
-COLLATION('.') c1
-utf8_swedish_ci .wwwmysqlcom
-set names utf8;
-create table t1 (
-name varchar(10),
-level smallint unsigned);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `name` varchar(10) COLLATE utf8_swedish_ci DEFAULT NULL,
- `level` smallint(5) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci
-insert into t1 values ('string',1);
-select concat(name,space(level)), concat(name, repeat(' ',level)) from t1;
-concat(name,space(level)) concat(name, repeat(' ',level))
-string string
-drop table t1;
-DROP DATABASE d1;
-USE test;
-SET character_set_server= @safe_character_set_server;
-SET collation_server= @safe_collation_server;
-SET character_set_client= @safe_character_set_client;
-SET character_set_results= @safe_character_set_results;
-create table t1 (a varchar(1)) character set utf8 collate utf8_estonian_ci;
-insert into t1 values ('A'),('B'),('C'),('a'),('b'),('c');
-select a, a regexp '[a]' from t1 order by binary a;
-a a regexp '[a]'
-A 1
-B 0
-C 0
-a 1
-b 0
-c 0
-drop table t1;
-SET collation_connection='utf8_unicode_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf8_unicode_ci 6109
-utf8_unicode_ci 61
-utf8_unicode_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8_unicode_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8_unicode_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf8_unicode_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-"BEGIN ctype_german.inc"
-drop table if exists t1;
-create table t1 as select repeat(' ', 64) as s1;
-select collation(s1) from t1;
-collation(s1)
-utf8_unicode_ci
-delete from t1;
-INSERT INTO t1 VALUES ('ud'),('uf');
-INSERT INTO t1 VALUES ('od'),('of');
-INSERT INTO t1 VALUES ('e');
-INSERT INTO t1 VALUES ('ad'),('af');
-insert into t1 values ('a'),('ae'),(_latin1 0xE4);
-insert into t1 values ('o'),('oe'),(_latin1 0xF6);
-insert into t1 values ('s'),('ss'),(_latin1 0xDF);
-insert into t1 values ('u'),('ue'),(_latin1 0xFC);
-INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
-INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
-select s1, hex(s1) from t1 order by s1, binary s1;
-s1 hex(s1)
-a 61
-ä C3A4
-ad 6164
-ae 6165
-af 6166
-Æ C386
-æ C3A6
-e 65
-o 6F
-ö C3B6
-od 6F64
-oe 6F65
-Å’ C592
-Å“ C593
-of 6F66
-s 73
-ss 7373
-ß C39F
-u 75
-ü C3BC
-ud 7564
-ue 7565
-uf 7566
-select group_concat(s1 order by binary s1) from t1 group by s1;
-group_concat(s1 order by binary s1)
-a,ä
-ad
-ae
-af
-Æ,æ
-e
-o,ö
-od
-oe,Å’,Å“
-of
-s
-ss,ß
-u,ü
-ud
-ue
-uf
-SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
-s1 hex(s1) hex(weight_string(s1))
-a 61 0E33
-ä C3A4 0E33
-ad 6164 0E330E6D
-ae 6165 0E330E8B
-af 6166 0E330EB9
-Æ C386 0E38
-æ C3A6 0E38
-e 65 0E8B
-o 6F 0F82
-ö C3B6 0F82
-od 6F64 0F820E6D
-oe 6F65 0F820E8B
-Å’ C592 0F820E8B
-Å“ C593 0F820E8B
-of 6F66 0F820EB9
-s 73 0FEA
-ss 7373 0FEA0FEA
-ß C39F 0FEA0FEA
-u 75 101F
-ü C3BC 101F
-ud 7564 101F0E6D
-ue 7565 101F0E8B
-uf 7566 101F0EB9
-SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
-s1 hex(s1)
-ae 6165
-drop table t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('s',0),(_latin1 0xDF,1);
-SELECT * FROM t1 ORDER BY a, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY a DESC, b;
-a b
-ß 1
-s 0
-SELECT * FROM t1 ORDER BY CONCAT(a), b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
-a b
-ß 1
-s 0
-DROP TABLE t1;
-"END ctype_german.inc"
-CREATE TABLE t1 (id int, a varchar(30) character set utf8);
-INSERT INTO t1 VALUES (1, _ucs2 0x01310069), (2, _ucs2 0x01310131);
-INSERT INTO t1 VALUES (3, _ucs2 0x00690069), (4, _ucs2 0x01300049);
-INSERT INTO t1 VALUES (5, _ucs2 0x01300130), (6, _ucs2 0x00490049);
-SELECT a, length(a) la, @l:=lower(a) l, length(@l) ll, @u:=upper(a) u, length(@u) lu
-FROM t1 ORDER BY id;
-a la l ll u lu
-ıi 3 ıi 3 II 2
-ıı 4 ıı 4 II 2
-ii 2 ii 2 II 2
-Ä°I 3 ii 2 Ä°I 3
-Ä°Ä° 4 ii 2 Ä°Ä° 4
-II 2 ii 2 II 2
-ALTER TABLE t1 MODIFY a VARCHAR(30) character set utf8 collate utf8_turkish_ci;
-SELECT a, length(a) la, @l:=lower(a) l, length(@l) ll, @u:=upper(a) u, length(@u) lu
-FROM t1 ORDER BY id;
-a la l ll u lu
-ıi 3 ıi 3 Iİ 3
-ıı 4 ıı 4 II 2
-ii 2 ii 2 Ä°Ä° 4
-İI 3 iı 3 İI 3
-Ä°Ä° 4 ii 2 Ä°Ä° 4
-II 2 ıı 4 II 2
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 text character set ucs2 collate ucs2_polish_ci NOT NULL
-) ENGINE=MyISAM;
-insert into t1 values (''),('a');
-SELECT COUNT(*), c1 FROM t1 GROUP BY c1;
-COUNT(*) c1
-1
-1 a
-DROP TABLE IF EXISTS t1;
-set names utf8;
-create table t1 (
-a varchar(255),
-key a(a)
-) character set utf8 collate utf8_danish_ci;
-insert into t1 values ('åaaaa'),('ååaaa'),('aaaaa');
-select a as like_a from t1 where a like 'a%';
-like_a
-aaaaa
-select a as like_aa from t1 where a like 'aa%';
-like_aa
-aaaaa
-select a as like_aaa from t1 where a like 'aaa%';
-like_aaa
-aaaaa
-select a as like_aaaa from t1 where a like 'aaaa%';
-like_aaaa
-aaaaa
-select a as like_aaaaa from t1 where a like 'aaaaa%';
-like_aaaaa
-aaaaa
-alter table t1 convert to character set ucs2 collate ucs2_danish_ci;
-select a as like_a from t1 where a like 'a%';
-like_a
-aaaaa
-select a as like_aa from t1 where a like 'aa%';
-like_aa
-aaaaa
-select a as like_aaa from t1 where a like 'aaa%';
-like_aaa
-aaaaa
-select a as like_aaaa from t1 where a like 'aaaa%';
-like_aaaa
-aaaaa
-select a as like_aaaaa from t1 where a like 'aaaaa%';
-like_aaaaa
-aaaaa
-drop table t1;
-create table t1 (
-a varchar(255),
-key(a)
-) character set utf8 collate utf8_spanish2_ci;
-insert into t1 values ('aaaaa'),('lllll'),('zzzzz');
-select a as like_l from t1 where a like 'l%';
-like_l
-lllll
-select a as like_ll from t1 where a like 'll%';
-like_ll
-lllll
-select a as like_lll from t1 where a like 'lll%';
-like_lll
-lllll
-select a as like_llll from t1 where a like 'llll%';
-like_llll
-lllll
-select a as like_lllll from t1 where a like 'lllll%';
-like_lllll
-lllll
-alter table t1 convert to character set ucs2 collate ucs2_spanish2_ci;
-select a as like_l from t1 where a like 'l%';
-like_l
-lllll
-select a as like_ll from t1 where a like 'll%';
-like_ll
-lllll
-select a as like_lll from t1 where a like 'lll%';
-like_lll
-lllll
-select a as like_llll from t1 where a like 'llll%';
-like_llll
-lllll
-select a as like_lllll from t1 where a like 'lllll%';
-like_lllll
-lllll
-drop table t1;
-create table t1 (
-a varchar(255),
-key a(a)
-) character set utf8 collate utf8_czech_ci;
-insert into t1 values
-('b'),('c'),('d'),('e'),('f'),('g'),('h'),('ch'),('i'),('j');
-select * from t1 where a like 'c%';
-a
-c
-ch
-alter table t1 convert to character set ucs2 collate ucs2_czech_ci;
-select * from t1 where a like 'c%';
-a
-c
-ch
-drop table t1;
-set collation_connection=ucs2_unicode_ci;
-drop table if exists t1;
-create table t1 as
-select repeat(' ', 64) as s1, repeat(' ',64) as s2
-union
-select null, null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(64) CHARACTER SET ucs2 COLLATE ucs2_unicode_ci DEFAULT NULL,
- `s2` varchar(64) CHARACTER SET ucs2 COLLATE ucs2_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-delete from t1;
-insert into t1 values('aaa','aaa');
-insert into t1 values('aaa|qqq','qqq');
-insert into t1 values('gheis','^[^a-dXYZ]+$');
-insert into t1 values('aab','^aa?b');
-insert into t1 values('Baaan','^Ba*n');
-insert into t1 values('aaa','qqq|aaa');
-insert into t1 values('qqq','qqq|aaa');
-insert into t1 values('bbb','qqq|aaa');
-insert into t1 values('bbb','qqq');
-insert into t1 values('aaa','aba');
-insert into t1 values(null,'abc');
-insert into t1 values('def',null);
-insert into t1 values(null,null);
-insert into t1 values('ghi','ghi[');
-select HIGH_PRIORITY s1 regexp s2 from t1;
-s1 regexp s2
-0
-0
-0
-1
-1
-1
-1
-1
-1
-1
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F20025
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-set names utf8;
-End for 5.0 tests
-End of 5.1 tests
-#
-# Start of 5.5 tests
-#
-SET collation_connection=utf8_czech_ci;
-SELECT @@collation_connection;
-@@collation_connection
-utf8_czech_ci
-#
-# Bug#57737 Character sets: search fails with like, contraction, index
-#
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS s1 LIMIT 0;
-INSERT INTO t1 VALUES ('c'),('ce'),('cé'),('ch');
-SELECT * FROM t1 WHERE s1 LIKE 'c%';
-s1
-c
-ce
-cé
-ch
-ALTER TABLE t1 ADD KEY s1 (s1);
-SELECT * FROM t1 WHERE s1 LIKE 'c%';
-s1
-c
-ce
-cé
-ch
-ALTER TABLE t1 DROP KEY s1, ADD KEY(s1(1));
-SELECT * FROM t1 WHERE s1 LIKE 'ch';
-s1
-ch
-DROP TABLE t1;
-SELECT @@collation_connection;
-@@collation_connection
-utf8_czech_ci
-#
-# Bug#57737 Character sets: search fails with like, contraction, index
-# Part#2 - ignorable characters
-#
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS s1 LIMIT 0;
-INSERT INTO t1 VALUES ('a\0\0\0\0\0\t'),('a'),('b'),('c'),('d'),('e');
-SELECT HEX(s1) FROM t1 WHERE s1 LIKE 'a%';
-HEX(s1)
-61000000000009
-61
-ALTER TABLE t1 ADD KEY s1 (s1);
-SELECT HEX(s1) FROM t1 WHERE s1 LIKE 'a%';
-HEX(s1)
-61000000000009
-61
-DROP TABLE t1;
-SET collation_connection=ucs2_czech_ci;
-SELECT @@collation_connection;
-@@collation_connection
-ucs2_czech_ci
-#
-# Bug#57737 Character sets: search fails with like, contraction, index
-#
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS s1 LIMIT 0;
-INSERT INTO t1 VALUES ('c'),('ce'),('cé'),('ch');
-SELECT * FROM t1 WHERE s1 LIKE 'c%';
-s1
-c
-ce
-cé
-ch
-ALTER TABLE t1 ADD KEY s1 (s1);
-SELECT * FROM t1 WHERE s1 LIKE 'c%';
-s1
-c
-ce
-cé
-ch
-ALTER TABLE t1 DROP KEY s1, ADD KEY(s1(1));
-SELECT * FROM t1 WHERE s1 LIKE 'ch';
-s1
-ch
-DROP TABLE t1;
-SELECT @@collation_connection;
-@@collation_connection
-ucs2_czech_ci
-#
-# Bug#57737 Character sets: search fails with like, contraction, index
-# Part#2 - ignorable characters
-#
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS s1 LIMIT 0;
-INSERT INTO t1 VALUES ('a\0\0\0\0\0\t'),('a'),('b'),('c'),('d'),('e');
-SELECT HEX(s1) FROM t1 WHERE s1 LIKE 'a%';
-HEX(s1)
-0061000000000000000000000009
-0061
-ALTER TABLE t1 ADD KEY s1 (s1);
-SELECT HEX(s1) FROM t1 WHERE s1 LIKE 'a%';
-HEX(s1)
-0061000000000000000000000009
-0061
-DROP TABLE t1;
-create table t1 (a int, c1 varchar(200) collate utf8_croatian_mysql561_ci, key (c1));
-insert into t1 values (1,'=> DZ'),(2,'=> Dz'),(3,'=> dz'),(4,'=> dZ');
-insert into t1 values (5,'=> DŽ'),(6,'=> Dž'),(7,'=> dž'),(8,'=> dŽ');
-insert into t1 values (9,'=> dž'),(10,'=> DŽ');
-select c1 from t1;
-c1
-=> DZ
-=> Dz
-=> dz
-=> dZ
-=> DŽ
-=> Dž
-=> dž
-=> dŽ
-=> dž
-=> Ç„
-select concat(c1) from t1 order by c1;
-concat(c1)
-=> DZ
-=> Dz
-=> dz
-=> dZ
-=> DŽ
-=> Dž
-=> dž
-=> dŽ
-=> dž
-=> Ç„
-select * from t1 where c1 like '=> d%';
-a c1
-1 => DZ
-2 => Dz
-3 => dz
-4 => dZ
-5 => DŽ
-6 => Dž
-7 => dž
-8 => dŽ
-select * from t1 where concat(c1) like '=> d%';
-a c1
-1 => DZ
-2 => Dz
-3 => dz
-4 => dZ
-5 => DŽ
-6 => Dž
-7 => dž
-8 => dŽ
-select * from t1 where c1 like '=> dz%';
-a c1
-1 => DZ
-2 => Dz
-3 => dz
-4 => dZ
-select * from t1 where concat(c1) like '=> dz%';
-a c1
-1 => DZ
-2 => Dz
-3 => dz
-4 => dZ
-select * from t1 where c1 like '=> dž%';
-a c1
-5 => DŽ
-6 => Dž
-7 => dž
-8 => dŽ
-select * from t1 where concat(c1) like '=> dž%';
-a c1
-5 => DŽ
-6 => Dž
-7 => dž
-8 => dŽ
-select * from t1 where c1 = '=> dž';
-a c1
-5 => DŽ
-6 => Dž
-7 => dž
-8 => dŽ
-9 => dž
-10 => Ç„
-select * from t1 where concat(c1) = '=> dž';
-a c1
-5 => DŽ
-6 => Dž
-7 => dž
-8 => dŽ
-9 => dž
-10 => Ç„
-drop table t1;
-#
-# MDEV-7649 wrong result when comparing utf8 column with an invalid literal
-#
-SET NAMES utf8 COLLATE utf8_unicode_ci;
-#
-# Start of ctype_utf8_ilseq.inc
-#
-CREATE TABLE t1 ENGINE=MyISAM AS SELECT REPEAT(' ', 60) AS ch LIMIT 0;;
-ALTER TABLE t1
-ADD id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
-ADD KEY(ch);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `ch` varchar(60) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`),
- KEY `ch` (`ch`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (ch) VALUES ('admin'),('admin1');
-SELECT ch FROM t1 WHERE ch='adminðŒ†';
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='adminðŒ†';
-ch
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='adminðŒ†';
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-DELETE FROM t1;
-INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????');
-INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b');
-INSERT INTO t1 (ch) VALUES ('az'),('a?z'),('a??z'),('a???z'),('a????z');
-INSERT INTO t1 (ch) VALUES ('z');
-INSERT INTO t1 (ch) VALUES (_utf8 0x61D080);
-INSERT INTO t1 (ch) VALUES (_utf8 0x61D680);
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-ch
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-ch
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-ch
-z
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-ch
-z
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-ch
-z
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-ch
-z
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-ALTER TABLE t1 DROP KEY ch;
-# 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'''');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'b''');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch<''a', 0xD1,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch>''a', 0xD1,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-z
-# 0xEA9A96 would be a good 3-byte character, 0xEA9A is an incomplete sequence
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xEA9A,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xEA9A,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-# 0x8F is a bad byte sequence (an mb2tail without mb2head)
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-# 0x8F8F is a bad byte sequence (an mb2tail without mb2head, two times)
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F8F,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F8F,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-DROP TABLE t1;
-#
-# End of ctype_utf8_ilseq.inc
-#
-#
-# Start of ctype_utf8_ilseq.inc
-#
-CREATE TABLE t1 ENGINE=HEAP AS SELECT REPEAT(' ', 60) AS ch LIMIT 0;;
-ALTER TABLE t1
-ADD id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
-ADD KEY(ch);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `ch` varchar(60) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`),
- KEY `ch` (`ch`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-INSERT INTO t1 (ch) VALUES ('admin'),('admin1');
-SELECT ch FROM t1 WHERE ch='adminðŒ†';
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='adminðŒ†';
-ch
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='adminðŒ†';
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-DELETE FROM t1;
-INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????');
-INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b');
-INSERT INTO t1 (ch) VALUES ('az'),('a?z'),('a??z'),('a???z'),('a????z');
-INSERT INTO t1 (ch) VALUES ('z');
-INSERT INTO t1 (ch) VALUES (_utf8 0x61D080);
-INSERT INTO t1 (ch) VALUES (_utf8 0x61D680);
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-ch
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-ch
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL ch NULL NULL NULL # Using where; Using filesort
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL ch NULL NULL NULL # Using where; Using filesort
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-ch
-z
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-ch
-z
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL ch NULL NULL NULL # Using where; Using filesort
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-ch
-z
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL ch NULL NULL NULL # Using where; Using filesort
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-ch
-z
-ALTER TABLE t1 DROP KEY ch;
-# 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'''');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'b''');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch<''a', 0xD1,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch>''a', 0xD1,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-z
-# 0xEA9A96 would be a good 3-byte character, 0xEA9A is an incomplete sequence
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xEA9A,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xEA9A,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-# 0x8F is a bad byte sequence (an mb2tail without mb2head)
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-# 0x8F8F is a bad byte sequence (an mb2tail without mb2head, two times)
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F8F,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F8F,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-DROP TABLE t1;
-#
-# End of ctype_utf8_ilseq.inc
-#
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set collation_connection=ucs2_unicode_ci;
-select @@collation_connection;
-@@collation_connection
-ucs2_unicode_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET ucs2 COLLATE ucs2_unicode_ci NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(16) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0E33
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E33
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET ucs2 COLLATE ucs2_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(80) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0E330E330E330E330E33
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E330E330E330E330E33
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(48) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-0E330E330E33
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E330E330E33
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(160) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0E330E330E330E330E3302090209020902090209
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E330E330E330E330E3302090209020902090209
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-0E33
-select hex(weight_string('A'));
-hex(weight_string('A'))
-0E33
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-0E330E4A0E60
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-0E330E4A
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-0E330E4A0E60
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-0E330E4A0E6002090209
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-0E
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0E33
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-0E330E
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-0E330E4A
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0E330E4A02
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-0E330E4A020902090209020902090209020902090209020902
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-0E
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0E33
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-0E330E
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-0E330E4A
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0E330E4A0E
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-0E330E4A0E6002090209020902090209020902090209020902
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-0E
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0E33
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-0E330E
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-0E330E4A
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0E330E4A0E
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-0E330E4A0E6002090209020902090209020902090209020902
-select @@collation_connection;
-@@collation_connection
-ucs2_unicode_ci
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-0E230E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-0E230E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-0E230E230E2302090209
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-0E230E
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-0E230E2302
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-0E230E23020902090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-0E230E
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-0E230E230E
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-0E230E230E2302090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-0E230E
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-0E230E230E
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-0E230E230E2302090209020902090209020902090209020902
-select @@collation_connection;
-@@collation_connection
-ucs2_unicode_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-0E33
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-0E33
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-0E330E4A0E60
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-0E330E4A
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-0E330E4A0E60
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-0E330E4A0E6002090209
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-09020902600E4A0E330E
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-F1CCF1B5F19FFDF6FDF6
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-F6FDF6FD9FF1B5F1CCF1
-set @@collation_connection=utf8_unicode_ci;
-select @@collation_connection;
-@@collation_connection
-utf8_unicode_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(16) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0E33
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E33
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(80) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0E330E330E330E330E33
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E330E330E330E330E33
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(48) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-0E330E330E33
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E330E330E33
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(160) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0E330E330E330E330E3302090209020902090209
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E330E330E330E330E3302090209020902090209
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-0E33
-select hex(weight_string('A'));
-hex(weight_string('A'))
-0E33
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-0E330E4A0E60
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-0E330E4A
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-0E330E4A0E60
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-0E330E4A0E6002090209
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-0E
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0E33
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-0E330E
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-0E330E4A
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0E330E4A02
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-0E330E4A020902090209020902090209020902090209020902
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-0E
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0E33
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-0E330E
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-0E330E4A
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0E330E4A0E
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-0E330E4A0E6002090209020902090209020902090209020902
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-0E
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0E33
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-0E330E
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-0E330E4A
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0E330E4A0E
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-0E330E4A0E6002090209020902090209020902090209020902
-select @@collation_connection;
-@@collation_connection
-utf8_unicode_ci
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-0E230E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-0E230E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-0E230E230E2302090209
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-0E230E
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-0E230E2302
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-0E230E23020902090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-0E230E
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-0E230E230E
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-0E230E230E2302090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-0E230E
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-0E230E230E
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-0E230E230E2302090209020902090209020902090209020902
-select @@collation_connection;
-@@collation_connection
-utf8_unicode_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-0E33
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-0E33
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-0E330E4A0E60
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-0E330E4A
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-0E330E4A0E60
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-0E330E4A0E6002090209
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-09020902600E4A0E330E
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-F1CCF1B5F19FFDF6FDF6
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-F6FDF6FD9FF1B5F1CCF1
-set @@collation_connection=utf8_czech_ci;
-select @@collation_connection;
-@@collation_connection
-utf8_czech_ci
-select collation(cast(_latin1 0xDF as char));
-collation(cast(_latin1 0xDF as char))
-utf8_czech_ci
-select hex(weight_string('s'));
-hex(weight_string('s'))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF as char)));
-hex(weight_string(cast(_latin1 0xDF as char)))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF as char) as char(1)));
-hex(weight_string(cast(_latin1 0xDF as char) as char(1)))
-0FEA
-select hex(weight_string('c'));
-hex(weight_string('c'))
-0E60
-select hex(weight_string('h'));
-hex(weight_string('h'))
-0EE1
-select hex(weight_string('ch'));
-hex(weight_string('ch'))
-0EE2
-select hex(weight_string('i'));
-hex(weight_string('i'))
-0EFB
-select hex(weight_string(cast(_latin1 0x6368DF as char)));
-hex(weight_string(cast(_latin1 0x6368DF as char)))
-0EE20FEA0FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(1)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(1)))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(2)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(2)))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(3)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(3)))
-0EE20FEA0FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(4)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(4)))
-0EE20FEA0FEA0209
-select hex(weight_string(cast(_latin1 0xDF6368 as char)));
-hex(weight_string(cast(_latin1 0xDF6368 as char)))
-0FEA0FEA0EE2
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(1)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(1)))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(2)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(2)))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(3)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(3)))
-0FEA0FEA0EE2
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(4)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(4)))
-0FEA0FEA0EE20209
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 2, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 2, 0xC0))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 2, 0xC0))
-0EE20F
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 2, 0xC0))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 2, 0xC0))
-0EE20FEA020902090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 3, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 3, 0xC0))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 3, 0xC0))
-0EE20F
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 3, 0xC0))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 3, 0xC0))
-0EE20FEA0FEA02090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 4, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 4, 0xC0))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 4, 0xC0))
-0EE20F
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 4, 0xC0))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 4, 0xC0))
-0EE20FEA0FEA02090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 2,0xC0))
-0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 2,0xC0))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 2,0xC0))
-0FEA0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 2,0xC0))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 2,0xC0))
-0FEA0FEA020902090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 3,0xC0))
-0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 3,0xC0))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 3,0xC0))
-0FEA0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 3,0xC0))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 3,0xC0))
-0FEA0FEA0EE202090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 4,0xC0))
-0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 4,0xC0))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 4,0xC0))
-0FEA0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 4,0xC0))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 4,0xC0))
-0FEA0FEA0EE202090209020902090209020902090209020902
-set @@collation_connection=ucs2_czech_ci;
-select @@collation_connection;
-@@collation_connection
-ucs2_czech_ci
-select collation(cast(_latin1 0xDF as char));
-collation(cast(_latin1 0xDF as char))
-ucs2_czech_ci
-select hex(weight_string('s'));
-hex(weight_string('s'))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF as char)));
-hex(weight_string(cast(_latin1 0xDF as char)))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF as char) as char(1)));
-hex(weight_string(cast(_latin1 0xDF as char) as char(1)))
-0FEA
-select hex(weight_string('c'));
-hex(weight_string('c'))
-0E60
-select hex(weight_string('h'));
-hex(weight_string('h'))
-0EE1
-select hex(weight_string('ch'));
-hex(weight_string('ch'))
-0EE2
-select hex(weight_string('i'));
-hex(weight_string('i'))
-0EFB
-select hex(weight_string(cast(_latin1 0x6368DF as char)));
-hex(weight_string(cast(_latin1 0x6368DF as char)))
-0EE20FEA0FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(1)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(1)))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(2)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(2)))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(3)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(3)))
-0EE20FEA0FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(4)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(4)))
-0EE20FEA0FEA0209
-select hex(weight_string(cast(_latin1 0xDF6368 as char)));
-hex(weight_string(cast(_latin1 0xDF6368 as char)))
-0FEA0FEA0EE2
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(1)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(1)))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(2)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(2)))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(3)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(3)))
-0FEA0FEA0EE2
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(4)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(4)))
-0FEA0FEA0EE20209
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 2, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 2, 0xC0))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 2, 0xC0))
-0EE20F
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 2, 0xC0))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 2, 0xC0))
-0EE20FEA020902090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 3, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 3, 0xC0))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 3, 0xC0))
-0EE20F
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 3, 0xC0))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 3, 0xC0))
-0EE20FEA0FEA02090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 4, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 4, 0xC0))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 4, 0xC0))
-0EE20F
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 4, 0xC0))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 4, 0xC0))
-0EE20FEA0FEA02090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 2,0xC0))
-0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 2,0xC0))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 2,0xC0))
-0FEA0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 2,0xC0))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 2,0xC0))
-0FEA0FEA020902090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 3,0xC0))
-0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 3,0xC0))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 3,0xC0))
-0FEA0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 3,0xC0))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 3,0xC0))
-0FEA0FEA0EE202090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 4,0xC0))
-0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 4,0xC0))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 4,0xC0))
-0FEA0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 4,0xC0))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 4,0xC0))
-0FEA0FEA0EE202090209020902090209020902090209020902
-#
-# Bug#33077 weight of supplementary characters is not 0xfffd
-#
-select hex(weight_string(_utf8mb4 0xF0908080 /* U+10000 */ collate utf8mb4_unicode_ci));
-hex(weight_string(_utf8mb4 0xF0908080 /* U+10000 */ collate utf8mb4_unicode_ci))
-FFFD
-#
-# Bug#53064 garbled data when using utf8_german2_ci collation
-#
-CREATE TABLE t1 (s1 VARCHAR(10) COLLATE utf8_german2_ci);
-INSERT INTO t1 VALUES ('a'),('ae'),('af');
-SELECT s1,hex(s1),hex(weight_string(s1)) FROM t1 ORDER BY s1;
-s1 hex(s1) hex(weight_string(s1))
-a 61 0E33
-ae 6165 0E330E8B
-af 6166 0E330EB9
-DROP TABLE t1;
-#
-# WL#4013 Unicode german2 collation
-#
-SET collation_connection=utf8_german2_ci;
-"BEGIN ctype_german.inc"
-drop table if exists t1;
-create table t1 as select repeat(' ', 64) as s1;
-select collation(s1) from t1;
-collation(s1)
-utf8_german2_ci
-delete from t1;
-INSERT INTO t1 VALUES ('ud'),('uf');
-INSERT INTO t1 VALUES ('od'),('of');
-INSERT INTO t1 VALUES ('e');
-INSERT INTO t1 VALUES ('ad'),('af');
-insert into t1 values ('a'),('ae'),(_latin1 0xE4);
-insert into t1 values ('o'),('oe'),(_latin1 0xF6);
-insert into t1 values ('s'),('ss'),(_latin1 0xDF);
-insert into t1 values ('u'),('ue'),(_latin1 0xFC);
-INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
-INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
-select s1, hex(s1) from t1 order by s1, binary s1;
-s1 hex(s1)
-a 61
-ad 6164
-ae 6165
-Æ C386
-ä C3A4
-æ C3A6
-af 6166
-e 65
-o 6F
-od 6F64
-oe 6F65
-ö C3B6
-Å’ C592
-Å“ C593
-of 6F66
-s 73
-ss 7373
-ß C39F
-u 75
-ud 7564
-ue 7565
-ü C3BC
-uf 7566
-select group_concat(s1 order by binary s1) from t1 group by s1;
-group_concat(s1 order by binary s1)
-a
-ad
-ae,Æ,ä,æ
-af
-e
-o
-od
-oe,ö,Œ,œ
-of
-s
-ss,ß
-u
-ud
-ue,ü
-uf
-SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
-s1 hex(s1) hex(weight_string(s1))
-a 61 0E33
-ad 6164 0E330E6D
-ae 6165 0E330E8B
-Æ C386 0E330E8B
-ä C3A4 0E330E8B
-æ C3A6 0E330E8B
-af 6166 0E330EB9
-e 65 0E8B
-o 6F 0F82
-od 6F64 0F820E6D
-oe 6F65 0F820E8B
-ö C3B6 0F820E8B
-Å’ C592 0F820E8B
-Å“ C593 0F820E8B
-of 6F66 0F820EB9
-s 73 0FEA
-ss 7373 0FEA0FEA
-ß C39F 0FEA0FEA
-u 75 101F
-ud 7564 101F0E6D
-ue 7565 101F0E8B
-ü C3BC 101F0E8B
-uf 7566 101F0EB9
-SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
-s1 hex(s1)
-ae 6165
-Æ C386
-ä C3A4
-æ C3A6
-drop table t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf8 COLLATE utf8_german2_ci DEFAULT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('s',0),(_latin1 0xDF,1);
-SELECT * FROM t1 ORDER BY a, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY a DESC, b;
-a b
-ß 1
-s 0
-SELECT * FROM t1 ORDER BY CONCAT(a), b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
-a b
-ß 1
-s 0
-DROP TABLE t1;
-"END ctype_german.inc"
-#
-# WL#2673 Unicode Collation Algorithm new version
-#
-SET NAMES utf8mb4 COLLATE utf8mb4_unicode_520_ci;
-CREATE TABLE t1 AS SELECT repeat('a', 10) as c LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_utf32 0x0180),(_utf32 0x023A);
-INSERT INTO t1 VALUES (_utf32 0x023B),(_utf32 0x023C);
-INSERT INTO t1 VALUES (_utf32 0x023D),(_utf32 0x023E);
-INSERT INTO t1 VALUES (_utf32 0x0241),(_utf32 0x0242);
-INSERT INTO t1 VALUES (_utf32 0x0243),(_utf32 0x0244);
-INSERT INTO t1 VALUES (_utf32 0x0245),(_utf32 0x0246);
-INSERT INTO t1 VALUES (_utf32 0x0247),(_utf32 0x0248);
-INSERT INTO t1 VALUES (_utf32 0x0249),(_utf32 0x024A);
-INSERT INTO t1 VALUES (_utf32 0x024B),(_utf32 0x024C);
-INSERT INTO t1 VALUES (_utf32 0x024D),(_utf32 0x024E);
-INSERT INTO t1 VALUES (_utf32 0x024F),(_utf32 0x026B);
-INSERT INTO t1 VALUES (_utf32 0x027D),(_utf32 0x0289);
-INSERT INTO t1 VALUES (_utf32 0x028C);
-INSERT INTO t1 VALUES (_utf32 0x037B), (_utf32 0x037C);
-INSERT INTO t1 VALUES (_utf32 0x037D), (_utf32 0x03FD);
-INSERT INTO t1 VALUES (_utf32 0x03FE), (_utf32 0x03FF);
-INSERT INTO t1 VALUES (_utf32 0x04C0), (_utf32 0x04CF);
-INSERT INTO t1 VALUES (_utf32 0x04F6), (_utf32 0x04F7);
-INSERT INTO t1 VALUES (_utf32 0x04FA), (_utf32 0x04FB);
-INSERT INTO t1 VALUES (_utf32 0x04FC), (_utf32 0x04FD);
-INSERT INTO t1 VALUES (_utf32 0x04FE), (_utf32 0x04FF);
-INSERT INTO t1 VALUES (_utf32 0x0510), (_utf32 0x0511);
-INSERT INTO t1 VALUES (_utf32 0x0512), (_utf32 0x0513);
-INSERT INTO t1 VALUES (_utf32 0x10A0), (_utf32 0x10A1);
-INSERT INTO t1 VALUES (_utf32 0x10A2), (_utf32 0x10A3);
-INSERT INTO t1 VALUES (_utf32 0x10A4), (_utf32 0x10A5);
-INSERT INTO t1 VALUES (_utf32 0x10A6), (_utf32 0x10A7);
-INSERT INTO t1 VALUES (_utf32 0x2D00), (_utf32 0x2D01);
-INSERT INTO t1 VALUES (_utf32 0x2D02), (_utf32 0x2D03);
-INSERT INTO t1 VALUES (_utf32 0x2D04), (_utf32 0x2D05);
-INSERT INTO t1 VALUES (_utf32 0x2D06), (_utf32 0x2D07);
-INSERT INTO t1 VALUES (_utf32 0x1D7D);
-INSERT INTO t1 VALUES (_utf32 0x2132),(_utf32 0x214E);
-INSERT INTO t1 VALUES (_utf32 0x2183),(_utf32 0x2184);
-INSERT INTO t1 VALUES (_utf32 0x2C80), (_utf32 0x2C81);
-INSERT INTO t1 VALUES (_utf32 0x2C82), (_utf32 0x2C83);
-INSERT INTO t1 VALUES (_utf32 0x2C84), (_utf32 0x2C85);
-INSERT INTO t1 VALUES (_utf32 0x2C86), (_utf32 0x2C87);
-INSERT INTO t1 VALUES (_utf32 0x2C88), (_utf32 0x2C89);
-INSERT INTO t1 VALUES (_utf32 0x2C8A), (_utf32 0x2C8B);
-INSERT INTO t1 VALUES (_utf32 0x2C8C), (_utf32 0x2C8D);
-INSERT INTO t1 VALUES (_utf32 0x2C8E), (_utf32 0x2C8F);
-INSERT INTO t1 VALUES (_utf32 0x2C60), (_utf32 0x2C61);
-INSERT INTO t1 VALUES (_utf32 0x2C62), (_utf32 0x2C63);
-INSERT INTO t1 VALUES (_utf32 0x2C64), (_utf32 0x2C65);
-INSERT INTO t1 VALUES (_utf32 0x2C66), (_utf32 0x2C67);
-INSERT INTO t1 VALUES (_utf32 0x2C68), (_utf32 0x2C69);
-INSERT INTO t1 VALUES (_utf32 0x2C6A), (_utf32 0x2C6B);
-INSERT INTO t1 VALUES (_utf32 0x2C6C), (_utf32 0x2C75);
-INSERT INTO t1 VALUES (_utf32 0x2C76);
-INSERT INTO t1 VALUES (_utf32 0x2C00), (_utf32 0x2C01);
-INSERT INTO t1 VALUES (_utf32 0x2C02), (_utf32 0x2C03);
-INSERT INTO t1 VALUES (_utf32 0x2C04), (_utf32 0x2C05);
-INSERT INTO t1 VALUES (_utf32 0x2C06), (_utf32 0x2C07);
-INSERT INTO t1 VALUES (_utf32 0x2C30), (_utf32 0x2C31);
-INSERT INTO t1 VALUES (_utf32 0x2C32), (_utf32 0x2C33);
-INSERT INTO t1 VALUES (_utf32 0x2C34), (_utf32 0x2C35);
-INSERT INTO t1 VALUES (_utf32 0x2C36), (_utf32 0x2C37);
-INSERT INTO t1 VALUES (_utf32 0x10400), (_utf32 0x10401);
-INSERT INTO t1 VALUES (_utf32 0x10402), (_utf32 0x10403);
-INSERT INTO t1 VALUES (_utf32 0x10404), (_utf32 0x10405);
-INSERT INTO t1 VALUES (_utf32 0x10406), (_utf32 0x10407);
-INSERT INTO t1 VALUES (_utf32 0x10428), (_utf32 0x10429);
-INSERT INTO t1 VALUES (_utf32 0x1042A), (_utf32 0x1042B);
-INSERT INTO t1 VALUES (_utf32 0x1042C), (_utf32 0x1042D);
-INSERT INTO t1 VALUES (_utf32 0x1042E), (_utf32 0x1042F);
-INSERT INTO t1 VALUES (_utf32 0x0370);
-INSERT INTO t1 VALUES (_utf32 0x0371);
-INSERT INTO t1 VALUES (_utf32 0x0372);
-INSERT INTO t1 VALUES (_utf32 0x0373);
-INSERT INTO t1 VALUES (_utf32 0x0514);
-INSERT INTO t1 VALUES (_utf32 0x0515);
-INSERT INTO t1 VALUES (_utf32 0x0516);
-INSERT INTO t1 VALUES (_utf32 0x0517);
-INSERT INTO t1 VALUES (_utf32 0xA640);
-INSERT INTO t1 VALUES (_utf32 0xA641);
-INSERT INTO t1 VALUES (_utf32 0xA642);
-INSERT INTO t1 VALUES (_utf32 0xA643);
-INSERT INTO t1 VALUES (_utf32 0xA722);
-INSERT INTO t1 VALUES (_utf32 0xA723);
-INSERT INTO t1 VALUES (_utf32 0xA724);
-INSERT INTO t1 VALUES (_utf32 0xA725);
-INSERT INTO t1 VALUES (_utf32 0xA726);
-INSERT INTO t1 VALUES (_utf32 0xA727);
-INSERT INTO t1 VALUES (_utf32 0xA728);
-INSERT INTO t1 VALUES (_utf32 0xA729);
-INSERT INTO t1 VALUES (_utf32 0xA72A);
-INSERT INTO t1 VALUES (_utf32 0xA72B);
-INSERT INTO t1 VALUES (_utf32 0x2CEB);
-INSERT INTO t1 VALUES (_utf32 0x2CEC);
-INSERT INTO t1 VALUES (_utf32 0x2CED);
-INSERT INTO t1 VALUES (_utf32 0x2CEE);
-SELECT hex(c), hex(lower(c)), hex(upper(c)), hex(weight_string(c)), c
-FROM t1 ORDER BY c, BINARY c;
-hex(c) hex(lower(c)) hex(upper(c)) hex(weight_string(c)) c
-C8BA C8BA 1214 Ⱥ
-E2B1A5 E2B1A5 C8BA 1214 â±¥
-C680 C680 C983 122D ƀ
-C983 C680 C983 122D Ƀ
-C8BB C8BC C8BB 1242 È»
-C8BC C8BC C8BB 1242 ȼ
-E28683 E28684 E28683 124E Ↄ
-E28684 E28684 E28683 124E ↄ
-C986 C987 C986 1270 Ɇ
-C987 C987 C986 1270 ɇ
-E284B2 E2858E E284B2 12AE Ⅎ
-E2858E E2858E E284B2 12AE â…Ž
-E2B1A7 E2B1A8 E2B1A7 12E3 Ⱨ
-E2B1A8 E2B1A8 E2B1A7 12E3 ⱨ
-E2B1B5 E2B1B6 E2B1B5 12E4 â±µ
-E2B1B6 E2B1B6 E2B1B5 12E4 ⱶ
-EA9CA6 EA9CA7 EA9CA6 12E5 Ꜧ
-EA9CA7 EA9CA7 EA9CA6 12E5 ꜧ
-C988 C989 C988 130E Ɉ
-C989 C989 C988 130E ɉ
-E2B1A9 E2B1AA E2B1A9 1328 Ⱪ
-E2B1AA E2B1AA E2B1A9 1328 ⱪ
-C8BD C69A C8BD 133B Ƚ
-E2B1A0 E2B1A1 E2B1A0 133F â± 
-E2B1A1 E2B1A1 E2B1A0 133F ⱡ
-C9AB C9AB 1340 É«
-E2B1A2 C9AB E2B1A2 1340 â±¢
-E1B5BD E1B5BD E2B1A3 13B8 áµ½
-E2B1A3 E1B5BD E2B1A3 13B8 â±£
-C98A C98B C98A 13D2 ÉŠ
-C98B C98B C98A 13D2 É‹
-C98C C98D C98C 13E4 Ɍ
-C98D C98D C98C 13E4 É
-C9BD C9BD 13FC ɽ
-E2B1A4 C9BD E2B1A4 13FC Ɽ
-EA9CA8 EA9CA9 EA9CA8 143314AD Ꜩ
-EA9CA9 EA9CA9 EA9CA8 143314AD ꜩ
-C8BE C8BE 143C Ⱦ
-E2B1A6 E2B1A6 C8BE 143C ⱦ
-C984 CA89 C984 145B É„
-CA89 CA89 C984 145B ʉ
-C985 CA8C C985 1489 É…
-CA8C CA8C C985 1489 ʌ
-C98E C98F C98E 14A4 ÉŽ
-C98F C98F C98E 14A4 É
-E2B1AB E2B1AC E2B1AB 14C8 Ⱬ
-E2B1AC E2B1AC E2B1AB 14C8 ⱬ
-EA9CAA EA9CAB EA9CAA 14F3 Ꜫ
-EA9CAB EA9CAB EA9CAA 14F3 ꜫ
-C981 C982 C981 1506 É
-C982 C982 C981 1506 É‚
-EA9CA2 EA9CA3 EA9CA2 150E Ꜣ
-EA9CA3 EA9CA3 EA9CA2 150E ꜣ
-EA9CA4 EA9CA5 EA9CA4 1518 Ꜥ
-EA9CA5 EA9CA5 EA9CA4 1518 ꜥ
-CDB0 CDB1 CDB0 154F Í°
-CDB1 CDB1 CDB0 154F ͱ
-CDBC CDBC CFBE 1564 ͼ
-CFBE CDBC CFBE 1564 Ͼ
-CDBB CDBB CFBD 1565 Í»
-CFBD CDBB CFBD 1565 Ͻ
-CDBD CDBD CFBF 1566 ͽ
-CFBF CDBD CFBF 1566 Ï¿
-CDB2 CDB3 CDB2 156F Ͳ
-CDB3 CDB3 CDB2 156F ͳ
-E2B280 E2B281 E2B280 1571 â²€
-E2B281 E2B281 E2B280 1571 â²
-E2B282 E2B283 E2B282 1572 Ⲃ
-E2B283 E2B283 E2B282 1572 ⲃ
-E2B284 E2B285 E2B284 1573 Ⲅ
-E2B285 E2B285 E2B284 1573 â²…
-E2B286 E2B287 E2B286 1574 Ⲇ
-E2B287 E2B287 E2B286 1574 ⲇ
-E2B288 E2B289 E2B288 1575 Ⲉ
-E2B289 E2B289 E2B288 1575 ⲉ
-E2B28A E2B28B E2B28A 1577 Ⲋ
-E2B28B E2B28B E2B28A 1577 ⲋ
-E2B28C E2B28D E2B28C 1578 Ⲍ
-E2B28D E2B28D E2B28C 1578 â²
-E2B28E E2B28F E2B28E 1579 Ⲏ
-E2B28F E2B28F E2B28E 1579 â²
-E2B3AB E2B3AC E2B3AB 1591 Ⳬ
-E2B3AC E2B3AC E2B3AB 1591 ⳬ
-E2B3AD E2B3AE E2B3AD 15A0 â³­
-E2B3AE E2B3AE E2B3AD 15A0 â³®
-D3BA D3BB D3BA 15D4 Óº
-D3BB D3BB D3BA 15D4 Ó»
-D3B6 D3B7 D3B6 15DC Ó¶
-D3B7 D3B7 D3B6 15DC Ó·
-EA9980 EA9981 EA9980 1611 Ꙁ
-EA9981 EA9981 EA9980 1611 ê™
-D490 D491 D490 1613 Ô
-D491 D491 D490 1613 Ô‘
-EA9982 EA9983 EA9982 1618 Ꙃ
-EA9983 EA9983 EA9982 1618 ꙃ
-D492 D493 D492 1666 Ô’
-D493 D493 D492 1666 Ô“
-D494 D495 D494 166E Ô”
-D495 D495 D494 166E Ô•
-D496 D497 D496 16B7 Ô–
-D497 D497 D496 16B7 Ô—
-D3BC D3BD D3BC 16F9 Ó¼
-D3BD D3BD D3BC 16F9 Ó½
-D3BE D3BF D3BE 16FD Ó¾
-D3BF D3BF D3BE 16FD Ó¿
-D380 D38F D380 17B1 Ó€
-D38F D38F D380 17B1 Ó
-E2B080 E2B0B0 E2B080 17B5 â°€
-E2B0B0 E2B0B0 E2B080 17B5 â°°
-E2B081 E2B0B1 E2B081 17B6 â°
-E2B0B1 E2B0B1 E2B081 17B6 â°±
-E2B082 E2B0B2 E2B082 17B7 â°‚
-E2B0B2 E2B0B2 E2B082 17B7 â°²
-E2B083 E2B0B3 E2B083 17B8 â°ƒ
-E2B0B3 E2B0B3 E2B083 17B8 â°³
-E2B084 E2B0B4 E2B084 17B9 â°„
-E2B0B4 E2B0B4 E2B084 17B9 â°´
-E2B085 E2B0B5 E2B085 17BA â°…
-E2B0B5 E2B0B5 E2B085 17BA â°µ
-E2B086 E2B0B6 E2B086 17BB â°†
-E2B0B6 E2B0B6 E2B086 17BB â°¶
-E2B087 E2B0B7 E2B087 17BC â°‡
-E2B0B7 E2B0B7 E2B087 17BC â°·
-E182A0 E2B480 E182A0 17E5 á‚ 
-E2B480 E2B480 E182A0 17E5 â´€
-E182A1 E2B481 E182A1 17E7 á‚¡
-E2B481 E2B481 E182A1 17E7 â´
-E182A2 E2B482 E182A2 17E9 á‚¢
-E2B482 E2B482 E182A2 17E9 â´‚
-E182A3 E2B483 E182A3 17EB á‚£
-E2B483 E2B483 E182A3 17EB â´ƒ
-E182A4 E2B484 E182A4 17ED Ⴄ
-E2B484 E2B484 E182A4 17ED â´„
-E182A5 E2B485 E182A5 17EF á‚¥
-E2B485 E2B485 E182A5 17EF â´…
-E182A6 E2B486 E182A6 17F1 Ⴆ
-E2B486 E2B486 E182A6 17F1 â´†
-E182A7 E2B487 E182A7 17F5 Ⴇ
-E2B487 E2B487 E182A7 17F5 â´‡
-F0909080 F09090A8 F0909080 30D2 ð€
-F09090A8 F09090A8 F0909080 30D2 ð¨
-F0909081 F09090A9 F0909081 30D3 ð
-F09090A9 F09090A9 F0909081 30D3 ð©
-F0909082 F09090AA F0909082 30D4 ð‚
-F09090AA F09090AA F0909082 30D4 ðª
-F0909083 F09090AB F0909083 30D5 ðƒ
-F09090AB F09090AB F0909083 30D5 ð«
-F0909084 F09090AC F0909084 30D6 ð„
-F09090AC F09090AC F0909084 30D6 ð¬
-F0909085 F09090AD F0909085 30D7 ð…
-F09090AD F09090AD F0909085 30D7 ð­
-F0909086 F09090AE F0909086 30D8 ð†
-F09090AE F09090AE F0909086 30D8 ð®
-F0909087 F09090AF F0909087 30D9 ð‡
-F09090AF F09090AF F0909087 30D9 ð¯
-INSERT INTO t1 VALUES ('a');
-INSERT INTO t1 VALUES (concat(_utf32 0x61, _utf32 0xFFFF));
-INSERT INTO t1 VALUES (concat(_utf32 0x61, _utf32 0x10FFFF));
-INSERT INTO t1 VALUES (concat(_utf32 0x61, _utf32 0x10400));
-SELECT hex(c), hex(weight_string(c)) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
-hex(c) hex(weight_string(c))
-61 120F
-61F0909080 120F30D2
-61EFBFBF 120FFBC1FFFF
-61F48FBFBF 120FFBE1FFFF
-SELECT hex(c), hex(weight_string(c)), c FROM t1 WHERE c LIKE _utf32 0x10400 ORDER BY c, BINARY c;
-hex(c) hex(weight_string(c)) c
-F0909080 30D2 ð€
-F09090A8 30D2 ð¨
-SELECT hex(c), hex(weight_string(c)), c FROM t1 WHERE c LIKE _utf32 0x10428 ORDER BY c, BINARY c;
-hex(c) hex(weight_string(c)) c
-F0909080 30D2 ð€
-F09090A8 30D2 ð¨
-ALTER TABLE t1 ADD KEY(c);
-EXPLAIN SELECT hex(c) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c c 43 NULL 3 Using where; Using index
-SELECT hex(c), hex(weight_string(c)) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
-hex(c) hex(weight_string(c))
-61 120F
-61F0909080 120F30D2
-61EFBFBF 120FFBC1FFFF
-61F48FBFBF 120FFBE1FFFF
-SELECT hex(c), hex(weight_string(c)), c FROM t1 WHERE c LIKE _utf32 0x10400 ORDER BY c, BINARY c;
-hex(c) hex(weight_string(c)) c
-F0909080 30D2 ð€
-F09090A8 30D2 ð¨
-SELECT hex(c), hex(weight_string(c)), c FROM t1 WHERE c LIKE _utf32 0x10428 ORDER BY c, BINARY c;
-hex(c) hex(weight_string(c)) c
-F0909080 30D2 ð€
-F09090A8 30D2 ð¨
-DROP TABLE t1;
-#
-# End of 5.6 tests
-#
-#
-# Start of MariaDB-10.0 tests
-#
-
-SET NAMES utf8 COLLATE utf8_unicode_ci;
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE CONCAT(c1)='a';
-c1
-a
-a
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'a ';
-c1
-a
-SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'a' and concat(`test`.`t1`.`c1`) like 'a '
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1);
-c1
-a
-a
-SELECT * FROM t1 WHERE 'a ' LIKE CONCAT(c1);
-c1
-a
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 'a' = concat(`test`.`t1`.`c1`) and 'a ' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '% '=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '% ' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '%'=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-#
-# MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a'
-#
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ';
-a LENGTH(a)
-a 1
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-a LENGTH(a)
-a 1
-EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` not like 'a ' and `test`.`t1`.`a` = 'a'
-DROP TABLE t1;
-#
-# End of MDEV-8694
-#
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a',10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('ae'),('ä');
-SELECT * FROM t1 WHERE c1='ä';
-c1
-ä
-SELECT * FROM t1 WHERE c1 LIKE 'ae';
-c1
-ae
-SELECT * FROM t1 WHERE c1='ä' AND c1 LIKE 'ae';
-c1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE c1='ä' AND c1 LIKE 'ae';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where `test`.`t1`.`c1` = 'ä' and `test`.`t1`.`c1` like 'ae'
-SELECT * FROM t1 WHERE CONCAT(c1)='ä';
-c1
-ä
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'ae';
-c1
-ae
-SELECT * FROM t1 WHERE CONCAT(c1)='ä' AND CONCAT(c1) LIKE 'ae';
-c1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='ä' AND CONCAT(c1) LIKE 'ae';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'ä' and concat(`test`.`t1`.`c1`) like 'ae'
-DROP TABLE IF EXISTS t1;
-SET NAMES utf8 COLLATE utf8_german2_ci;
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_german2_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE CONCAT(c1)='a';
-c1
-a
-a
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'a ';
-c1
-a
-SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'a' and concat(`test`.`t1`.`c1`) like 'a '
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_german2_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1);
-c1
-a
-a
-SELECT * FROM t1 WHERE 'a ' LIKE CONCAT(c1);
-c1
-a
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 'a' = concat(`test`.`t1`.`c1`) and 'a ' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_german2_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '% '=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '% ' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_german2_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '%'=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-#
-# MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a'
-#
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf8 COLLATE utf8_german2_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ';
-a LENGTH(a)
-a 1
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-a LENGTH(a)
-a 1
-EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` not like 'a ' and `test`.`t1`.`a` = 'a'
-DROP TABLE t1;
-#
-# End of MDEV-8694
-#
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a',10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_german2_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('ae'),('ä');
-SELECT * FROM t1 WHERE c1='ä';
-c1
-ae
-ä
-SELECT * FROM t1 WHERE c1 LIKE 'ae';
-c1
-ae
-SELECT * FROM t1 WHERE c1='ä' AND c1 LIKE 'ae';
-c1
-ae
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE c1='ä' AND c1 LIKE 'ae';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where `test`.`t1`.`c1` = 'ä' and `test`.`t1`.`c1` like 'ae'
-SELECT * FROM t1 WHERE CONCAT(c1)='ä';
-c1
-ae
-ä
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'ae';
-c1
-ae
-SELECT * FROM t1 WHERE CONCAT(c1)='ä' AND CONCAT(c1) LIKE 'ae';
-c1
-ae
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='ä' AND CONCAT(c1) LIKE 'ae';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'ä' and concat(`test`.`t1`.`c1`) like 'ae'
-DROP TABLE IF EXISTS t1;
-#
-# MDEV-4929 Myanmar collation
-#
-SET NAMES utf8 COLLATE utf8_myanmar_ci;
-#
-# Start of ctype_myanmar.inc
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8_myanmar_ci
-CREATE TABLE t1 AS SELECT 100000 AS id, REPEAT(' ', 64) AS s1 LIMIT 0;
-SELECT COLLATION(s1) FROM t1;
-COLLATION(s1)
-DELETE FROM t1;
-ALTER TABLE t1 MODIFY id INT NOT NULL AUTO_INCREMENT PRIMARY KEY;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `s1` varchar(64) CHARACTER SET utf8 COLLATE utf8_myanmar_ci DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (s1) VALUES
-(_ucs2 0x108C),
-(_ucs2 0x1037),
-(_ucs2 0x1038),
-(_ucs2 0x10371038),
-('--- Vowels'),
-(_ucs2 0x102C),
-(_ucs2 0x102B),
-(_ucs2 0x1032),
-(_ucs2 0x1031102C),
-(_ucs2 0x1031102B),
-(_ucs2 0x1031102C103A),
-(_ucs2 0x1031102B103A),
-(_ucs2 0x1034),
-(_ucs2 0x1036),
-(_ucs2 0x102D102F),
-('--- Vowels with finals'),
-(_ucs2 0x10001039),
-(_ucs2 0x1000103A),
-(_ucs2 0x102C10001039),
-(_ucs2 0x102C1000103A),
-(_ucs2 0x102B10001039),
-(_ucs2 0x102B1000103A),
-(_ucs2 0x102D10001039),
-(_ucs2 0x102D1000103A),
-(_ucs2 0x102F10001039),
-(_ucs2 0x102F1000103A),
-(_ucs2 0x103110001039),
-(_ucs2 0x10311000103A),
-(_ucs2 0x1031102C10001039),
-(_ucs2 0x1031102C1000103A),
-(_ucs2 0x1031102B10001039),
-(_ucs2 0x1031102B1000103A),
-(_ucs2 0x102D102F10001039),
-(_ucs2 0x102D102F1000103A),
-(_ucs2 0x10011039),
-(_ucs2 0x1001103A),
-(_ucs2 0x102C10011039),
-(_ucs2 0x102C1001103A),
-(_ucs2 0x102B10011039),
-(_ucs2 0x102B1001103A),
-(_ucs2 0x102D10011039),
-(_ucs2 0x102D1001103A),
-(_ucs2 0x102F10011039),
-(_ucs2 0x102F1001103A),
-(_ucs2 0x103110011039),
-(_ucs2 0x10311001103A),
-(_ucs2 0x1031102C10011039),
-(_ucs2 0x1031102C1001103A),
-(_ucs2 0x1031102B10011039),
-(_ucs2 0x1031102B1001103A),
-(_ucs2 0x102D102F10011039),
-(_ucs2 0x102D102F1001103A),
-(_ucs2 0x10021039),
-(_ucs2 0x1002103A),
-(_ucs2 0x102C10021039),
-(_ucs2 0x102C1002103A),
-(_ucs2 0x102B10021039),
-(_ucs2 0x102B1002103A),
-(_ucs2 0x102D10021039),
-(_ucs2 0x102D1002103A),
-(_ucs2 0x102F10021039),
-(_ucs2 0x102F1002103A),
-(_ucs2 0x103110021039),
-(_ucs2 0x10311002103A),
-(_ucs2 0x1031102C10021039),
-(_ucs2 0x1031102C1002103A),
-(_ucs2 0x1031102B10021039),
-(_ucs2 0x1031102B1002103A),
-(_ucs2 0x102D102F10021039),
-(_ucs2 0x102D102F1002103A),
-(_ucs2 0x10031039),
-(_ucs2 0x1003103A),
-(_ucs2 0x102C10031039),
-(_ucs2 0x102C1003103A),
-(_ucs2 0x102B10031039),
-(_ucs2 0x102B1003103A),
-(_ucs2 0x102D10031039),
-(_ucs2 0x102D1003103A),
-(_ucs2 0x102F10031039),
-(_ucs2 0x102F1003103A),
-(_ucs2 0x103110031039),
-(_ucs2 0x10311003103A),
-(_ucs2 0x1031102C10031039),
-(_ucs2 0x1031102C1003103A),
-(_ucs2 0x1031102B10031039),
-(_ucs2 0x1031102B1003103A),
-(_ucs2 0x102D102F10031039),
-(_ucs2 0x102D102F1003103A),
-(_ucs2 0x1004103A1039),
-(_ucs2 0x1004103A),
-(_ucs2 0x102C1004103A1039),
-(_ucs2 0x102C1004103A),
-(_ucs2 0x102B1004103A1039),
-(_ucs2 0x102B1004103A),
-(_ucs2 0x102D1004103A1039),
-(_ucs2 0x102D1004103A),
-(_ucs2 0x102F1004103A1039),
-(_ucs2 0x102F1004103A),
-(_ucs2 0x10311004103A1039),
-(_ucs2 0x10311004103A),
-(_ucs2 0x1031102C1004103A1039),
-(_ucs2 0x1031102C1004103A),
-(_ucs2 0x1031102B1004103A1039),
-(_ucs2 0x1031102B1004103A),
-(_ucs2 0x102D102F1004103A1039),
-(_ucs2 0x102D102F1004103A),
-(_ucs2 0x10051039),
-(_ucs2 0x1005103A),
-(_ucs2 0x102C10051039),
-(_ucs2 0x102C1005103A),
-(_ucs2 0x102B10051039),
-(_ucs2 0x102B1005103A),
-(_ucs2 0x102D10051039),
-(_ucs2 0x102D1005103A),
-(_ucs2 0x102F10051039),
-(_ucs2 0x102F1005103A),
-(_ucs2 0x103110051039),
-(_ucs2 0x10311005103A),
-(_ucs2 0x1031102C10051039),
-(_ucs2 0x1031102C1005103A),
-(_ucs2 0x1031102B10051039),
-(_ucs2 0x1031102B1005103A),
-(_ucs2 0x102D102F10051039),
-(_ucs2 0x102D102F1005103A),
-(_ucs2 0x10061039),
-(_ucs2 0x1006103A),
-(_ucs2 0x102C10061039),
-(_ucs2 0x102C1006103A),
-(_ucs2 0x102B10061039),
-(_ucs2 0x102B1006103A),
-(_ucs2 0x102D10061039),
-(_ucs2 0x102D1006103A),
-(_ucs2 0x102F10061039),
-(_ucs2 0x102F1006103A),
-(_ucs2 0x103110061039),
-(_ucs2 0x10311006103A),
-(_ucs2 0x1031102C10061039),
-(_ucs2 0x1031102C1006103A),
-(_ucs2 0x1031102B10061039),
-(_ucs2 0x1031102B1006103A),
-(_ucs2 0x102D102F10061039),
-(_ucs2 0x102D102F1006103A),
-(_ucs2 0x10071039),
-(_ucs2 0x1007103A),
-(_ucs2 0x102C10071039),
-(_ucs2 0x102C1007103A),
-(_ucs2 0x102B10071039),
-(_ucs2 0x102B1007103A),
-(_ucs2 0x102D10071039),
-(_ucs2 0x102D1007103A),
-(_ucs2 0x102F10071039),
-(_ucs2 0x102F1007103A),
-(_ucs2 0x103110071039),
-(_ucs2 0x10311007103A),
-(_ucs2 0x1031102C10071039),
-(_ucs2 0x1031102C1007103A),
-(_ucs2 0x1031102B10071039),
-(_ucs2 0x1031102B1007103A),
-(_ucs2 0x102D102F10071039),
-(_ucs2 0x102D102F1007103A),
-(_ucs2 0x1008103A),
-(_ucs2 0x102C1008103A),
-(_ucs2 0x102B1008103A),
-(_ucs2 0x102D1008103A),
-(_ucs2 0x102F1008103A),
-(_ucs2 0x10311008103A),
-(_ucs2 0x1031102C1008103A),
-(_ucs2 0x1031102B1008103A),
-(_ucs2 0x102D102F1008103A),
-(_ucs2 0x10091039),
-(_ucs2 0x1009103A),
-(_ucs2 0x102C10091039),
-(_ucs2 0x102C1009103A),
-(_ucs2 0x102B10091039),
-(_ucs2 0x102B1009103A),
-(_ucs2 0x102D10091039),
-(_ucs2 0x102D1009103A),
-(_ucs2 0x102F10091039),
-(_ucs2 0x102F1009103A),
-(_ucs2 0x103110091039),
-(_ucs2 0x10311009103A),
-(_ucs2 0x1031102C10091039),
-(_ucs2 0x1031102C1009103A),
-(_ucs2 0x1031102B10091039),
-(_ucs2 0x1031102B1009103A),
-(_ucs2 0x102D102F10091039),
-(_ucs2 0x102D102F1009103A),
-(_ucs2 0x100A1039),
-(_ucs2 0x100A103A),
-(_ucs2 0x102C100A1039),
-(_ucs2 0x102C100A103A),
-(_ucs2 0x102B100A1039),
-(_ucs2 0x102B100A103A),
-(_ucs2 0x102D100A1039),
-(_ucs2 0x102D100A103A),
-(_ucs2 0x102F100A1039),
-(_ucs2 0x102F100A103A),
-(_ucs2 0x1031100A1039),
-(_ucs2 0x1031100A103A),
-(_ucs2 0x1031102C100A1039),
-(_ucs2 0x1031102C100A103A),
-(_ucs2 0x1031102B100A1039),
-(_ucs2 0x1031102B100A103A),
-(_ucs2 0x102D102F100A1039),
-(_ucs2 0x102D102F100A103A),
-(_ucs2 0x100B1039),
-(_ucs2 0x100B103A),
-(_ucs2 0x102C100B1039),
-(_ucs2 0x102C100B103A),
-(_ucs2 0x102B100B1039),
-(_ucs2 0x102B100B103A),
-(_ucs2 0x102D100B1039),
-(_ucs2 0x102D100B103A),
-(_ucs2 0x102F100B1039),
-(_ucs2 0x102F100B103A),
-(_ucs2 0x1031100B1039),
-(_ucs2 0x1031100B103A),
-(_ucs2 0x1031102C100B1039),
-(_ucs2 0x1031102C100B103A),
-(_ucs2 0x1031102B100B1039),
-(_ucs2 0x1031102B100B103A),
-(_ucs2 0x102D102F100B1039),
-(_ucs2 0x102D102F100B103A),
-(_ucs2 0x100C1039),
-(_ucs2 0x100C103A),
-(_ucs2 0x102C100C1039),
-(_ucs2 0x102C100C103A),
-(_ucs2 0x102B100C1039),
-(_ucs2 0x102B100C103A),
-(_ucs2 0x102D100C1039),
-(_ucs2 0x102D100C103A),
-(_ucs2 0x102F100C1039),
-(_ucs2 0x102F100C103A),
-(_ucs2 0x1031100C1039),
-(_ucs2 0x1031100C103A),
-(_ucs2 0x1031102C100C1039),
-(_ucs2 0x1031102C100C103A),
-(_ucs2 0x1031102B100C1039),
-(_ucs2 0x1031102B100C103A),
-(_ucs2 0x102D102F100C1039),
-(_ucs2 0x102D102F100C103A),
-(_ucs2 0x100D1039),
-(_ucs2 0x100D103A),
-(_ucs2 0x102C100D1039),
-(_ucs2 0x102C100D103A),
-(_ucs2 0x102B100D1039),
-(_ucs2 0x102B100D103A),
-(_ucs2 0x102D100D1039),
-(_ucs2 0x102D100D103A),
-(_ucs2 0x102F100D1039),
-(_ucs2 0x102F100D103A),
-(_ucs2 0x1031100D1039),
-(_ucs2 0x1031100D103A),
-(_ucs2 0x1031102C100D1039),
-(_ucs2 0x1031102C100D103A),
-(_ucs2 0x1031102B100D1039),
-(_ucs2 0x1031102B100D103A),
-(_ucs2 0x102D102F100D1039),
-(_ucs2 0x102D102F100D103A),
-(_ucs2 0x100E1039),
-(_ucs2 0x100E103A),
-(_ucs2 0x102C100E1039),
-(_ucs2 0x102C100E103A),
-(_ucs2 0x102B100E1039),
-(_ucs2 0x102B100E103A),
-(_ucs2 0x102D100E1039),
-(_ucs2 0x102D100E103A),
-(_ucs2 0x102F100E1039),
-(_ucs2 0x102F100E103A),
-(_ucs2 0x1031100E1039),
-(_ucs2 0x1031100E103A),
-(_ucs2 0x1031102C100E1039),
-(_ucs2 0x1031102C100E103A),
-(_ucs2 0x1031102B100E1039),
-(_ucs2 0x1031102B100E103A),
-(_ucs2 0x102D102F100E1039),
-(_ucs2 0x102D102F100E103A),
-(_ucs2 0x100F1039),
-(_ucs2 0x100F103A),
-(_ucs2 0x102C100F1039),
-(_ucs2 0x102C100F103A),
-(_ucs2 0x102B100F1039),
-(_ucs2 0x102B100F103A),
-(_ucs2 0x102D100F1039),
-(_ucs2 0x102D100F103A),
-(_ucs2 0x102F100F1039),
-(_ucs2 0x102F100F103A),
-(_ucs2 0x1031100F1039),
-(_ucs2 0x1031100F103A),
-(_ucs2 0x1031102C100F1039),
-(_ucs2 0x1031102C100F103A),
-(_ucs2 0x1031102B100F1039),
-(_ucs2 0x1031102B100F103A),
-(_ucs2 0x102D102F100F1039),
-(_ucs2 0x102D102F100F103A),
-(_ucs2 0x10101039),
-(_ucs2 0x1010103A),
-(_ucs2 0x102C10101039),
-(_ucs2 0x102C1010103A),
-(_ucs2 0x102B10101039),
-(_ucs2 0x102B1010103A),
-(_ucs2 0x102D10101039),
-(_ucs2 0x102D1010103A),
-(_ucs2 0x102F10101039),
-(_ucs2 0x102F1010103A),
-(_ucs2 0x103110101039),
-(_ucs2 0x10311010103A),
-(_ucs2 0x1031102C10101039),
-(_ucs2 0x1031102C1010103A),
-(_ucs2 0x1031102B10101039),
-(_ucs2 0x1031102B1010103A),
-(_ucs2 0x102D102F10101039),
-(_ucs2 0x102D102F1010103A),
-(_ucs2 0x10111039),
-(_ucs2 0x1011103A),
-(_ucs2 0x102C10111039),
-(_ucs2 0x102C1011103A),
-(_ucs2 0x102B10111039),
-(_ucs2 0x102B1011103A),
-(_ucs2 0x102D10111039),
-(_ucs2 0x102D1011103A),
-(_ucs2 0x102F10111039),
-(_ucs2 0x102F1011103A),
-(_ucs2 0x103110111039),
-(_ucs2 0x10311011103A),
-(_ucs2 0x1031102C10111039),
-(_ucs2 0x1031102C1011103A),
-(_ucs2 0x1031102B10111039),
-(_ucs2 0x1031102B1011103A),
-(_ucs2 0x102D102F10111039),
-(_ucs2 0x102D102F1011103A),
-(_ucs2 0x10121039),
-(_ucs2 0x1012103A),
-(_ucs2 0x102C10121039),
-(_ucs2 0x102C1012103A),
-(_ucs2 0x102B10121039),
-(_ucs2 0x102B1012103A),
-(_ucs2 0x102D10121039),
-(_ucs2 0x102D1012103A),
-(_ucs2 0x102F10121039),
-(_ucs2 0x102F1012103A),
-(_ucs2 0x103110121039),
-(_ucs2 0x10311012103A),
-(_ucs2 0x1031102C10121039),
-(_ucs2 0x1031102C1012103A),
-(_ucs2 0x1031102B10121039),
-(_ucs2 0x1031102B1012103A),
-(_ucs2 0x102D102F10121039),
-(_ucs2 0x102D102F1012103A),
-(_ucs2 0x10131039),
-(_ucs2 0x1013103A),
-(_ucs2 0x102C10131039),
-(_ucs2 0x102C1013103A),
-(_ucs2 0x102B10131039),
-(_ucs2 0x102B1013103A),
-(_ucs2 0x102D10131039),
-(_ucs2 0x102D1013103A),
-(_ucs2 0x102F10131039),
-(_ucs2 0x102F1013103A),
-(_ucs2 0x103110131039),
-(_ucs2 0x10311013103A),
-(_ucs2 0x1031102C10131039),
-(_ucs2 0x1031102C1013103A),
-(_ucs2 0x1031102B10131039),
-(_ucs2 0x1031102B1013103A),
-(_ucs2 0x102D102F10131039),
-(_ucs2 0x102D102F1013103A),
-(_ucs2 0x10141039),
-(_ucs2 0x1014103A),
-(_ucs2 0x102C10141039),
-(_ucs2 0x102C1014103A),
-(_ucs2 0x102B10141039),
-(_ucs2 0x102B1014103A),
-(_ucs2 0x102D10141039),
-(_ucs2 0x102D1014103A),
-(_ucs2 0x102F10141039),
-(_ucs2 0x102F1014103A),
-(_ucs2 0x103110141039),
-(_ucs2 0x10311014103A),
-(_ucs2 0x1031102C10141039),
-(_ucs2 0x1031102C1014103A),
-(_ucs2 0x1031102B10141039),
-(_ucs2 0x1031102B1014103A),
-(_ucs2 0x102D102F10141039),
-(_ucs2 0x102D102F1014103A),
-(_ucs2 0x10151039),
-(_ucs2 0x1015103A),
-(_ucs2 0x102C10151039),
-(_ucs2 0x102C1015103A),
-(_ucs2 0x102B10151039),
-(_ucs2 0x102B1015103A),
-(_ucs2 0x102D10151039),
-(_ucs2 0x102D1015103A),
-(_ucs2 0x102F10151039),
-(_ucs2 0x102F1015103A),
-(_ucs2 0x103110151039),
-(_ucs2 0x10311015103A),
-(_ucs2 0x1031102C10151039),
-(_ucs2 0x1031102C1015103A),
-(_ucs2 0x1031102B10151039),
-(_ucs2 0x1031102B1015103A),
-(_ucs2 0x102D102F10151039),
-(_ucs2 0x102D102F1015103A),
-(_ucs2 0x10161039),
-(_ucs2 0x1016103A),
-(_ucs2 0x102C10161039),
-(_ucs2 0x102C1016103A),
-(_ucs2 0x102B10161039),
-(_ucs2 0x102B1016103A),
-(_ucs2 0x102D10161039),
-(_ucs2 0x102D1016103A),
-(_ucs2 0x102F10161039),
-(_ucs2 0x102F1016103A),
-(_ucs2 0x103110161039),
-(_ucs2 0x10311016103A),
-(_ucs2 0x1031102C10161039),
-(_ucs2 0x1031102C1016103A),
-(_ucs2 0x1031102B10161039),
-(_ucs2 0x1031102B1016103A),
-(_ucs2 0x102D102F10161039),
-(_ucs2 0x102D102F1016103A),
-(_ucs2 0x10171039),
-(_ucs2 0x1017103A),
-(_ucs2 0x102C10171039),
-(_ucs2 0x102C1017103A),
-(_ucs2 0x102B10171039),
-(_ucs2 0x102B1017103A),
-(_ucs2 0x102D10171039),
-(_ucs2 0x102D1017103A),
-(_ucs2 0x102F10171039),
-(_ucs2 0x102F1017103A),
-(_ucs2 0x103110171039),
-(_ucs2 0x10311017103A),
-(_ucs2 0x1031102C10171039),
-(_ucs2 0x1031102C1017103A),
-(_ucs2 0x1031102B10171039),
-(_ucs2 0x1031102B1017103A),
-(_ucs2 0x102D102F10171039),
-(_ucs2 0x102D102F1017103A),
-(_ucs2 0x10181039),
-(_ucs2 0x1018103A),
-(_ucs2 0x102C10181039),
-(_ucs2 0x102C1018103A),
-(_ucs2 0x102B10181039),
-(_ucs2 0x102B1018103A),
-(_ucs2 0x102D10181039),
-(_ucs2 0x102D1018103A),
-(_ucs2 0x102F10181039),
-(_ucs2 0x102F1018103A),
-(_ucs2 0x103110181039),
-(_ucs2 0x10311018103A),
-(_ucs2 0x1031102C10181039),
-(_ucs2 0x1031102C1018103A),
-(_ucs2 0x1031102B10181039),
-(_ucs2 0x1031102B1018103A),
-(_ucs2 0x102D102F10181039),
-(_ucs2 0x102D102F1018103A),
-(_ucs2 0x10191039),
-(_ucs2 0x1019103A),
-(_ucs2 0x102C10191039),
-(_ucs2 0x102C1019103A),
-(_ucs2 0x102B10191039),
-(_ucs2 0x102B1019103A),
-(_ucs2 0x102D10191039),
-(_ucs2 0x102D1019103A),
-(_ucs2 0x102F10191039),
-(_ucs2 0x102F1019103A),
-(_ucs2 0x103110191039),
-(_ucs2 0x10311019103A),
-(_ucs2 0x1031102C10191039),
-(_ucs2 0x1031102C1019103A),
-(_ucs2 0x1031102B10191039),
-(_ucs2 0x1031102B1019103A),
-(_ucs2 0x102D102F10191039),
-(_ucs2 0x102D102F1019103A),
-(_ucs2 0x101A1039),
-(_ucs2 0x101A103A),
-(_ucs2 0x102C101A1039),
-(_ucs2 0x102C101A103A),
-(_ucs2 0x102B101A1039),
-(_ucs2 0x102B101A103A),
-(_ucs2 0x102D101A1039),
-(_ucs2 0x102D101A103A),
-(_ucs2 0x102F101A1039),
-(_ucs2 0x102F101A103A),
-(_ucs2 0x1031101A1039),
-(_ucs2 0x1031101A103A),
-(_ucs2 0x1031102C101A1039),
-(_ucs2 0x1031102C101A103A),
-(_ucs2 0x1031102B101A1039),
-(_ucs2 0x1031102B101A103A),
-(_ucs2 0x102D102F101A1039),
-(_ucs2 0x102D102F101A103A),
-(_ucs2 0x101B1039),
-(_ucs2 0x101B103A),
-(_ucs2 0x102C101B1039),
-(_ucs2 0x102C101B103A),
-(_ucs2 0x102B101B1039),
-(_ucs2 0x102B101B103A),
-(_ucs2 0x102D101B1039),
-(_ucs2 0x102D101B103A),
-(_ucs2 0x102F101B1039),
-(_ucs2 0x102F101B103A),
-(_ucs2 0x1031101B1039),
-(_ucs2 0x1031101B103A),
-(_ucs2 0x1031102C101B1039),
-(_ucs2 0x1031102C101B103A),
-(_ucs2 0x1031102B101B1039),
-(_ucs2 0x1031102B101B103A),
-(_ucs2 0x102D102F101B1039),
-(_ucs2 0x102D102F101B103A),
-(_ucs2 0x101C1039),
-(_ucs2 0x101C103A),
-(_ucs2 0x102C101C1039),
-(_ucs2 0x102C101C103A),
-(_ucs2 0x102B101C1039),
-(_ucs2 0x102B101C103A),
-(_ucs2 0x102D101C1039),
-(_ucs2 0x102D101C103A),
-(_ucs2 0x102F101C1039),
-(_ucs2 0x102F101C103A),
-(_ucs2 0x1031101C1039),
-(_ucs2 0x1031101C103A),
-(_ucs2 0x1031102C101C1039),
-(_ucs2 0x1031102C101C103A),
-(_ucs2 0x1031102B101C1039),
-(_ucs2 0x1031102B101C103A),
-(_ucs2 0x102D102F101C1039),
-(_ucs2 0x102D102F101C103A),
-(_ucs2 0x101D103A),
-(_ucs2 0x102C101D103A),
-(_ucs2 0x102B101D103A),
-(_ucs2 0x102D101D103A),
-(_ucs2 0x102F101D103A),
-(_ucs2 0x1031101D103A),
-(_ucs2 0x1031102C101D103A),
-(_ucs2 0x1031102B101D103A),
-(_ucs2 0x102D102F101D103A),
-(_ucs2 0x101E1039),
-(_ucs2 0x101E103A),
-(_ucs2 0x102C101E1039),
-(_ucs2 0x102C101E103A),
-(_ucs2 0x102B101E1039),
-(_ucs2 0x102B101E103A),
-(_ucs2 0x102D101E1039),
-(_ucs2 0x102D101E103A),
-(_ucs2 0x102F101E1039),
-(_ucs2 0x102F101E103A),
-(_ucs2 0x1031101E1039),
-(_ucs2 0x1031101E103A),
-(_ucs2 0x1031102C101E1039),
-(_ucs2 0x1031102C101E103A),
-(_ucs2 0x1031102B101E1039),
-(_ucs2 0x1031102B101E103A),
-(_ucs2 0x102D102F101E1039),
-(_ucs2 0x102D102F101E103A),
-(_ucs2 0x101F1039),
-(_ucs2 0x101F103A),
-(_ucs2 0x102C101F1039),
-(_ucs2 0x102C101F103A),
-(_ucs2 0x102B101F1039),
-(_ucs2 0x102B101F103A),
-(_ucs2 0x102D101F1039),
-(_ucs2 0x102D101F103A),
-(_ucs2 0x102F101F1039),
-(_ucs2 0x102F101F103A),
-(_ucs2 0x1031101F1039),
-(_ucs2 0x1031101F103A),
-(_ucs2 0x1031102C101F1039),
-(_ucs2 0x1031102C101F103A),
-(_ucs2 0x1031102B101F1039),
-(_ucs2 0x1031102B101F103A),
-(_ucs2 0x102D102F101F1039),
-(_ucs2 0x102D102F101F103A),
-(_ucs2 0x1020103A),
-(_ucs2 0x102C1020103A),
-(_ucs2 0x102B1020103A),
-(_ucs2 0x102D1020103A),
-(_ucs2 0x102F1020103A),
-(_ucs2 0x10311020103A),
-(_ucs2 0x1031102C1020103A),
-(_ucs2 0x1031102B1020103A),
-(_ucs2 0x102D102F1020103A),
-(_ucs2 0x1021103A),
-(_ucs2 0x102C1021103A),
-(_ucs2 0x102B1021103A),
-(_ucs2 0x102D1021103A),
-(_ucs2 0x102F1021103A),
-(_ucs2 0x10311021103A),
-(_ucs2 0x1031102C1021103A),
-(_ucs2 0x1031102B1021103A),
-(_ucs2 0x102D102F1021103A),
-('--- Medials'),
-(_ucs2 0x105E),
-(_ucs2 0x105F),
-(_ucs2 0x103B),
-(_ucs2 0x103C),
-(_ucs2 0x1060),
-(_ucs2 0x103D),
-(_ucs2 0x1082),
-(_ucs2 0x103E),
-(_ucs2 0x103B103D),
-(_ucs2 0x103C103D),
-(_ucs2 0x103B103E),
-(_ucs2 0x103C103E),
-(_ucs2 0x103D103E),
-(_ucs2 0x103B103D103E),
-(_ucs2 0x103C103D103E),
-('--- Independent vowels'),
-(_ucs2 0x1021102D),
-(_ucs2 0x1023),
-(_ucs2 0x1021102E),
-(_ucs2 0x1024),
-(_ucs2 0x1021102F),
-(_ucs2 0x1025),
-(_ucs2 0x10211030),
-(_ucs2 0x1026),
-(_ucs2 0x10211031),
-(_ucs2 0x1027),
-(_ucs2 0x1028),
-(_ucs2 0x10211031102C),
-(_ucs2 0x1029),
-(_ucs2 0x10211031102C103A),
-(_ucs2 0x102A),
-(_ucs2 0x102D1019103A),
-(_ucs2 0x102D1036),
-(_ucs2 0x102D1019103A1037),
-(_ucs2 0x102D10361037),
-(_ucs2 0x102D1019103A1038),
-(_ucs2 0x102D10361038),
-(_ucs2 0x102F1019103A),
-(_ucs2 0x102F1036),
-(_ucs2 0x102F1019103A1037),
-(_ucs2 0x102F10361037),
-(_ucs2 0x102F1019103A1038),
-(_ucs2 0x102F10361038),
-(_ucs2 0x1021102F1036),
-(_ucs2 0x1025102F1036),
-('--- Independent vowels with finals'),
-(_ucs2 0x1021102D10001039),
-(_ucs2 0x102310001039),
-(_ucs2 0x1021102D1000103A),
-(_ucs2 0x10231000103A),
-(_ucs2 0x1021102F10001039),
-(_ucs2 0x102510001039),
-(_ucs2 0x1021102F1000103A),
-(_ucs2 0x10251000103A),
-(_ucs2 0x1021103110001039),
-(_ucs2 0x102710001039),
-(_ucs2 0x102110311000103A),
-(_ucs2 0x10271000103A),
-(_ucs2 0x10211031102C10001039),
-(_ucs2 0x102910001039),
-(_ucs2 0x10211031102C1000103A),
-(_ucs2 0x10291000103A),
-(_ucs2 0x10211031102C10001039),
-(_ucs2 0x10291031102C10001039),
-(_ucs2 0x10211031102C1000103A),
-(_ucs2 0x10291031102C1000103A),
-(_ucs2 0x1021102D10011039),
-(_ucs2 0x102310011039),
-(_ucs2 0x1021102D1001103A),
-(_ucs2 0x10231001103A),
-(_ucs2 0x1021102F10011039),
-(_ucs2 0x102510011039),
-(_ucs2 0x1021102F1001103A),
-(_ucs2 0x10251001103A),
-(_ucs2 0x1021103110011039),
-(_ucs2 0x102710011039),
-(_ucs2 0x102110311001103A),
-(_ucs2 0x10271001103A),
-(_ucs2 0x10211031102C10011039),
-(_ucs2 0x102910011039),
-(_ucs2 0x10211031102C1001103A),
-(_ucs2 0x10291001103A),
-(_ucs2 0x10211031102C10011039),
-(_ucs2 0x10291031102C10011039),
-(_ucs2 0x10211031102C1001103A),
-(_ucs2 0x10291031102C1001103A),
-(_ucs2 0x1021102D10021039),
-(_ucs2 0x102310021039),
-(_ucs2 0x1021102D1002103A),
-(_ucs2 0x10231002103A),
-(_ucs2 0x1021102F10021039),
-(_ucs2 0x102510021039),
-(_ucs2 0x1021102F1002103A),
-(_ucs2 0x10251002103A),
-(_ucs2 0x1021103110021039),
-(_ucs2 0x102710021039),
-(_ucs2 0x102110311002103A),
-(_ucs2 0x10271002103A),
-(_ucs2 0x10211031102C10021039),
-(_ucs2 0x102910021039),
-(_ucs2 0x10211031102C1002103A),
-(_ucs2 0x10291002103A),
-(_ucs2 0x10211031102C10021039),
-(_ucs2 0x10291031102C10021039),
-(_ucs2 0x10211031102C1002103A),
-(_ucs2 0x10291031102C1002103A),
-(_ucs2 0x1021102D10031039),
-(_ucs2 0x102310031039),
-(_ucs2 0x1021102D1003103A),
-(_ucs2 0x10231003103A),
-(_ucs2 0x1021102F10031039),
-(_ucs2 0x102510031039),
-(_ucs2 0x1021102F1003103A),
-(_ucs2 0x10251003103A),
-(_ucs2 0x1021103110031039),
-(_ucs2 0x102710031039),
-(_ucs2 0x102110311003103A),
-(_ucs2 0x10271003103A),
-(_ucs2 0x10211031102C10031039),
-(_ucs2 0x102910031039),
-(_ucs2 0x10211031102C1003103A),
-(_ucs2 0x10291003103A),
-(_ucs2 0x10211031102C10031039),
-(_ucs2 0x10291031102C10031039),
-(_ucs2 0x10211031102C1003103A),
-(_ucs2 0x10291031102C1003103A),
-(_ucs2 0x1021102D10041039),
-(_ucs2 0x102310041039),
-(_ucs2 0x1021102D1004103A),
-(_ucs2 0x10231004103A),
-(_ucs2 0x1021102F10041039),
-(_ucs2 0x102510041039),
-(_ucs2 0x1021102F1004103A),
-(_ucs2 0x10251004103A),
-(_ucs2 0x1021103110041039),
-(_ucs2 0x102710041039),
-(_ucs2 0x102110311004103A),
-(_ucs2 0x10271004103A),
-(_ucs2 0x10211031102C10041039),
-(_ucs2 0x102910041039),
-(_ucs2 0x10211031102C1004103A),
-(_ucs2 0x10291004103A),
-(_ucs2 0x10211031102C10041039),
-(_ucs2 0x10291031102C10041039),
-(_ucs2 0x10211031102C1004103A),
-(_ucs2 0x10291031102C1004103A),
-(_ucs2 0x1021102D10051039),
-(_ucs2 0x102310051039),
-(_ucs2 0x1021102D1005103A),
-(_ucs2 0x10231005103A),
-(_ucs2 0x1021102F10051039),
-(_ucs2 0x102510051039),
-(_ucs2 0x1021102F1005103A),
-(_ucs2 0x10251005103A),
-(_ucs2 0x1021103110051039),
-(_ucs2 0x102710051039),
-(_ucs2 0x102110311005103A),
-(_ucs2 0x10271005103A),
-(_ucs2 0x10211031102C10051039),
-(_ucs2 0x102910051039),
-(_ucs2 0x10211031102C1005103A),
-(_ucs2 0x10291005103A),
-(_ucs2 0x10211031102C10051039),
-(_ucs2 0x10291031102C10051039),
-(_ucs2 0x10211031102C1005103A),
-(_ucs2 0x10291031102C1005103A),
-(_ucs2 0x1021102D10061039),
-(_ucs2 0x102310061039),
-(_ucs2 0x1021102D1006103A),
-(_ucs2 0x10231006103A),
-(_ucs2 0x1021102F10061039),
-(_ucs2 0x102510061039),
-(_ucs2 0x1021102F1006103A),
-(_ucs2 0x10251006103A),
-(_ucs2 0x1021103110061039),
-(_ucs2 0x102710061039),
-(_ucs2 0x102110311006103A),
-(_ucs2 0x10271006103A),
-(_ucs2 0x10211031102C10061039),
-(_ucs2 0x102910061039),
-(_ucs2 0x10211031102C1006103A),
-(_ucs2 0x10291006103A),
-(_ucs2 0x10211031102C10061039),
-(_ucs2 0x10291031102C10061039),
-(_ucs2 0x10211031102C1006103A),
-(_ucs2 0x10291031102C1006103A),
-(_ucs2 0x1021102D10071039),
-(_ucs2 0x102310071039),
-(_ucs2 0x1021102D1007103A),
-(_ucs2 0x10231007103A),
-(_ucs2 0x1021102F10071039),
-(_ucs2 0x102510071039),
-(_ucs2 0x1021102F1007103A),
-(_ucs2 0x10251007103A),
-(_ucs2 0x1021103110071039),
-(_ucs2 0x102710071039),
-(_ucs2 0x102110311007103A),
-(_ucs2 0x10271007103A),
-(_ucs2 0x10211031102C10071039),
-(_ucs2 0x102910071039),
-(_ucs2 0x10211031102C1007103A),
-(_ucs2 0x10291007103A),
-(_ucs2 0x10211031102C10071039),
-(_ucs2 0x10291031102C10071039),
-(_ucs2 0x10211031102C1007103A),
-(_ucs2 0x10291031102C1007103A),
-(_ucs2 0x1021102D10091039),
-(_ucs2 0x102310091039),
-(_ucs2 0x1021102D1009103A),
-(_ucs2 0x10231009103A),
-(_ucs2 0x1021102F10091039),
-(_ucs2 0x102510091039),
-(_ucs2 0x1021102F1009103A),
-(_ucs2 0x10251009103A),
-(_ucs2 0x1021103110091039),
-(_ucs2 0x102710091039),
-(_ucs2 0x102110311009103A),
-(_ucs2 0x10271009103A),
-(_ucs2 0x10211031102C10091039),
-(_ucs2 0x102910091039),
-(_ucs2 0x10211031102C1009103A),
-(_ucs2 0x10291009103A),
-(_ucs2 0x10211031102C10091039),
-(_ucs2 0x10291031102C10091039),
-(_ucs2 0x10211031102C1009103A),
-(_ucs2 0x10291031102C1009103A),
-(_ucs2 0x1021102D100A1039),
-(_ucs2 0x1023100A1039),
-(_ucs2 0x1021102D100A103A),
-(_ucs2 0x1023100A103A),
-(_ucs2 0x1021102F100A1039),
-(_ucs2 0x1025100A1039),
-(_ucs2 0x1021102F100A103A),
-(_ucs2 0x1025100A103A),
-(_ucs2 0x10211031100A1039),
-(_ucs2 0x1027100A1039),
-(_ucs2 0x10211031100A103A),
-(_ucs2 0x1027100A103A),
-(_ucs2 0x10211031102C100A1039),
-(_ucs2 0x1029100A1039),
-(_ucs2 0x10211031102C100A103A),
-(_ucs2 0x1029100A103A),
-(_ucs2 0x10211031102C100A1039),
-(_ucs2 0x10291031102C100A1039),
-(_ucs2 0x10211031102C100A103A),
-(_ucs2 0x10291031102C100A103A),
-(_ucs2 0x1021102D100B1039),
-(_ucs2 0x1023100B1039),
-(_ucs2 0x1021102D100B103A),
-(_ucs2 0x1023100B103A),
-(_ucs2 0x1021102F100B1039),
-(_ucs2 0x1025100B1039),
-(_ucs2 0x1021102F100B103A),
-(_ucs2 0x1025100B103A),
-(_ucs2 0x10211031100B1039),
-(_ucs2 0x1027100B1039),
-(_ucs2 0x10211031100B103A),
-(_ucs2 0x1027100B103A),
-(_ucs2 0x10211031102C100B1039),
-(_ucs2 0x1029100B1039),
-(_ucs2 0x10211031102C100B103A),
-(_ucs2 0x1029100B103A),
-(_ucs2 0x10211031102C100B1039),
-(_ucs2 0x10291031102C100B1039),
-(_ucs2 0x10211031102C100B103A),
-(_ucs2 0x10291031102C100B103A),
-(_ucs2 0x1021102D100C1039),
-(_ucs2 0x1023100C1039),
-(_ucs2 0x1021102D100C103A),
-(_ucs2 0x1023100C103A),
-(_ucs2 0x1021102F100C1039),
-(_ucs2 0x1025100C1039),
-(_ucs2 0x1021102F100C103A),
-(_ucs2 0x1025100C103A),
-(_ucs2 0x10211031100C1039),
-(_ucs2 0x1027100C1039),
-(_ucs2 0x10211031100C103A),
-(_ucs2 0x1027100C103A),
-(_ucs2 0x10211031102C100C1039),
-(_ucs2 0x1029100C1039),
-(_ucs2 0x10211031102C100C103A),
-(_ucs2 0x1029100C103A),
-(_ucs2 0x10211031102C100C1039),
-(_ucs2 0x10291031102C100C1039),
-(_ucs2 0x10211031102C100C103A),
-(_ucs2 0x10291031102C100C103A),
-(_ucs2 0x1021102D100D1039),
-(_ucs2 0x1023100D1039),
-(_ucs2 0x1021102D100D103A),
-(_ucs2 0x1023100D103A),
-(_ucs2 0x1021102F100D1039),
-(_ucs2 0x1025100D1039),
-(_ucs2 0x1021102F100D103A),
-(_ucs2 0x1025100D103A),
-(_ucs2 0x10211031100D1039),
-(_ucs2 0x1027100D1039),
-(_ucs2 0x10211031100D103A),
-(_ucs2 0x1027100D103A),
-(_ucs2 0x10211031102C100D1039),
-(_ucs2 0x1029100D1039),
-(_ucs2 0x10211031102C100D103A),
-(_ucs2 0x1029100D103A),
-(_ucs2 0x10211031102C100D1039),
-(_ucs2 0x10291031102C100D1039),
-(_ucs2 0x10211031102C100D103A),
-(_ucs2 0x10291031102C100D103A),
-(_ucs2 0x1021102D100E1039),
-(_ucs2 0x1023100E1039),
-(_ucs2 0x1021102D100E103A),
-(_ucs2 0x1023100E103A),
-(_ucs2 0x1021102F100E1039),
-(_ucs2 0x1025100E1039),
-(_ucs2 0x1021102F100E103A),
-(_ucs2 0x1025100E103A),
-(_ucs2 0x10211031100E1039),
-(_ucs2 0x1027100E1039),
-(_ucs2 0x10211031100E103A),
-(_ucs2 0x1027100E103A),
-(_ucs2 0x10211031102C100E1039),
-(_ucs2 0x1029100E1039),
-(_ucs2 0x10211031102C100E103A),
-(_ucs2 0x1029100E103A),
-(_ucs2 0x10211031102C100E1039),
-(_ucs2 0x10291031102C100E1039),
-(_ucs2 0x10211031102C100E103A),
-(_ucs2 0x10291031102C100E103A),
-(_ucs2 0x1021102D100F1039),
-(_ucs2 0x1023100F1039),
-(_ucs2 0x1021102D100F103A),
-(_ucs2 0x1023100F103A),
-(_ucs2 0x1021102F100F1039),
-(_ucs2 0x1025100F1039),
-(_ucs2 0x1021102F100F103A),
-(_ucs2 0x1025100F103A),
-(_ucs2 0x10211031100F1039),
-(_ucs2 0x1027100F1039),
-(_ucs2 0x10211031100F103A),
-(_ucs2 0x1027100F103A),
-(_ucs2 0x10211031102C100F1039),
-(_ucs2 0x1029100F1039),
-(_ucs2 0x10211031102C100F103A),
-(_ucs2 0x1029100F103A),
-(_ucs2 0x10211031102C100F1039),
-(_ucs2 0x10291031102C100F1039),
-(_ucs2 0x10211031102C100F103A),
-(_ucs2 0x10291031102C100F103A),
-(_ucs2 0x1021102D10101039),
-(_ucs2 0x102310101039),
-(_ucs2 0x1021102D1010103A),
-(_ucs2 0x10231010103A),
-(_ucs2 0x1021102F10101039),
-(_ucs2 0x102510101039),
-(_ucs2 0x1021102F1010103A),
-(_ucs2 0x10251010103A),
-(_ucs2 0x1021103110101039),
-(_ucs2 0x102710101039),
-(_ucs2 0x102110311010103A),
-(_ucs2 0x10271010103A),
-(_ucs2 0x10211031102C10101039),
-(_ucs2 0x102910101039),
-(_ucs2 0x10211031102C1010103A),
-(_ucs2 0x10291010103A),
-(_ucs2 0x10211031102C10101039),
-(_ucs2 0x10291031102C10101039),
-(_ucs2 0x10211031102C1010103A),
-(_ucs2 0x10291031102C1010103A),
-(_ucs2 0x1021102D10111039),
-(_ucs2 0x102310111039),
-(_ucs2 0x1021102D1011103A),
-(_ucs2 0x10231011103A),
-(_ucs2 0x1021102F10111039),
-(_ucs2 0x102510111039),
-(_ucs2 0x1021102F1011103A),
-(_ucs2 0x10251011103A),
-(_ucs2 0x1021103110111039),
-(_ucs2 0x102710111039),
-(_ucs2 0x102110311011103A),
-(_ucs2 0x10271011103A),
-(_ucs2 0x10211031102C10111039),
-(_ucs2 0x102910111039),
-(_ucs2 0x10211031102C1011103A),
-(_ucs2 0x10291011103A),
-(_ucs2 0x10211031102C10111039),
-(_ucs2 0x10291031102C10111039),
-(_ucs2 0x10211031102C1011103A),
-(_ucs2 0x10291031102C1011103A),
-(_ucs2 0x1021102D10121039),
-(_ucs2 0x102310121039),
-(_ucs2 0x1021102D1012103A),
-(_ucs2 0x10231012103A),
-(_ucs2 0x1021102F10121039),
-(_ucs2 0x102510121039),
-(_ucs2 0x1021102F1012103A),
-(_ucs2 0x10251012103A),
-(_ucs2 0x1021103110121039),
-(_ucs2 0x102710121039),
-(_ucs2 0x102110311012103A),
-(_ucs2 0x10271012103A),
-(_ucs2 0x10211031102C10121039),
-(_ucs2 0x102910121039),
-(_ucs2 0x10211031102C1012103A),
-(_ucs2 0x10291012103A),
-(_ucs2 0x10211031102C10121039),
-(_ucs2 0x10291031102C10121039),
-(_ucs2 0x10211031102C1012103A),
-(_ucs2 0x10291031102C1012103A),
-(_ucs2 0x1021102D10131039),
-(_ucs2 0x102310131039),
-(_ucs2 0x1021102D1013103A),
-(_ucs2 0x10231013103A),
-(_ucs2 0x1021102F10131039),
-(_ucs2 0x102510131039),
-(_ucs2 0x1021102F1013103A),
-(_ucs2 0x10251013103A),
-(_ucs2 0x1021103110131039),
-(_ucs2 0x102710131039),
-(_ucs2 0x102110311013103A),
-(_ucs2 0x10271013103A),
-(_ucs2 0x10211031102C10131039),
-(_ucs2 0x102910131039),
-(_ucs2 0x10211031102C1013103A),
-(_ucs2 0x10291013103A),
-(_ucs2 0x10211031102C10131039),
-(_ucs2 0x10291031102C10131039),
-(_ucs2 0x10211031102C1013103A),
-(_ucs2 0x10291031102C1013103A),
-(_ucs2 0x1021102D10141039),
-(_ucs2 0x102310141039),
-(_ucs2 0x1021102D1014103A),
-(_ucs2 0x10231014103A),
-(_ucs2 0x1021102F10141039),
-(_ucs2 0x102510141039),
-(_ucs2 0x1021102F1014103A),
-(_ucs2 0x10251014103A),
-(_ucs2 0x1021103110141039),
-(_ucs2 0x102710141039),
-(_ucs2 0x102110311014103A),
-(_ucs2 0x10271014103A),
-(_ucs2 0x10211031102C10141039),
-(_ucs2 0x102910141039),
-(_ucs2 0x10211031102C1014103A),
-(_ucs2 0x10291014103A),
-(_ucs2 0x10211031102C10141039),
-(_ucs2 0x10291031102C10141039),
-(_ucs2 0x10211031102C1014103A),
-(_ucs2 0x10291031102C1014103A),
-(_ucs2 0x1021102D10151039),
-(_ucs2 0x102310151039),
-(_ucs2 0x1021102D1015103A),
-(_ucs2 0x10231015103A),
-(_ucs2 0x1021102F10151039),
-(_ucs2 0x102510151039),
-(_ucs2 0x1021102F1015103A),
-(_ucs2 0x10251015103A),
-(_ucs2 0x1021103110151039),
-(_ucs2 0x102710151039),
-(_ucs2 0x102110311015103A),
-(_ucs2 0x10271015103A),
-(_ucs2 0x10211031102C10151039),
-(_ucs2 0x102910151039),
-(_ucs2 0x10211031102C1015103A),
-(_ucs2 0x10291015103A),
-(_ucs2 0x10211031102C10151039),
-(_ucs2 0x10291031102C10151039),
-(_ucs2 0x10211031102C1015103A),
-(_ucs2 0x10291031102C1015103A),
-(_ucs2 0x1021102D10161039),
-(_ucs2 0x102310161039),
-(_ucs2 0x1021102D1016103A),
-(_ucs2 0x10231016103A),
-(_ucs2 0x1021102F10161039),
-(_ucs2 0x102510161039),
-(_ucs2 0x1021102F1016103A),
-(_ucs2 0x10251016103A),
-(_ucs2 0x1021103110161039),
-(_ucs2 0x102710161039),
-(_ucs2 0x102110311016103A),
-(_ucs2 0x10271016103A),
-(_ucs2 0x10211031102C10161039),
-(_ucs2 0x102910161039),
-(_ucs2 0x10211031102C1016103A),
-(_ucs2 0x10291016103A),
-(_ucs2 0x10211031102C10161039),
-(_ucs2 0x10291031102C10161039),
-(_ucs2 0x10211031102C1016103A),
-(_ucs2 0x10291031102C1016103A),
-(_ucs2 0x1021102D10171039),
-(_ucs2 0x102310171039),
-(_ucs2 0x1021102D1017103A),
-(_ucs2 0x10231017103A),
-(_ucs2 0x1021102F10171039),
-(_ucs2 0x102510171039),
-(_ucs2 0x1021102F1017103A),
-(_ucs2 0x10251017103A),
-(_ucs2 0x1021103110171039),
-(_ucs2 0x102710171039),
-(_ucs2 0x102110311017103A),
-(_ucs2 0x10271017103A),
-(_ucs2 0x10211031102C10171039),
-(_ucs2 0x102910171039),
-(_ucs2 0x10211031102C1017103A),
-(_ucs2 0x10291017103A),
-(_ucs2 0x10211031102C10171039),
-(_ucs2 0x10291031102C10171039),
-(_ucs2 0x10211031102C1017103A),
-(_ucs2 0x10291031102C1017103A),
-(_ucs2 0x1021102D10181039),
-(_ucs2 0x102310181039),
-(_ucs2 0x1021102D1018103A),
-(_ucs2 0x10231018103A),
-(_ucs2 0x1021102F10181039),
-(_ucs2 0x102510181039),
-(_ucs2 0x1021102F1018103A),
-(_ucs2 0x10251018103A),
-(_ucs2 0x1021103110181039),
-(_ucs2 0x102710181039),
-(_ucs2 0x102110311018103A),
-(_ucs2 0x10271018103A),
-(_ucs2 0x10211031102C10181039),
-(_ucs2 0x102910181039),
-(_ucs2 0x10211031102C1018103A),
-(_ucs2 0x10291018103A),
-(_ucs2 0x10211031102C10181039),
-(_ucs2 0x10291031102C10181039),
-(_ucs2 0x10211031102C1018103A),
-(_ucs2 0x10291031102C1018103A),
-(_ucs2 0x1021102D10191039),
-(_ucs2 0x102310191039),
-(_ucs2 0x1021102D1019103A),
-(_ucs2 0x10231019103A),
-(_ucs2 0x1021102F10191039),
-(_ucs2 0x102510191039),
-(_ucs2 0x1021102F1019103A),
-(_ucs2 0x10251019103A),
-(_ucs2 0x1021103110191039),
-(_ucs2 0x102710191039),
-(_ucs2 0x102110311019103A),
-(_ucs2 0x10271019103A),
-(_ucs2 0x10211031102C10191039),
-(_ucs2 0x102910191039),
-(_ucs2 0x10211031102C1019103A),
-(_ucs2 0x10291019103A),
-(_ucs2 0x10211031102C10191039),
-(_ucs2 0x10291031102C10191039),
-(_ucs2 0x10211031102C1019103A),
-(_ucs2 0x10291031102C1019103A),
-(_ucs2 0x1021102D101A1039),
-(_ucs2 0x1023101A1039),
-(_ucs2 0x1021102D101A103A),
-(_ucs2 0x1023101A103A),
-(_ucs2 0x1021102F101A1039),
-(_ucs2 0x1025101A1039),
-(_ucs2 0x1021102F101A103A),
-(_ucs2 0x1025101A103A),
-(_ucs2 0x10211031101A1039),
-(_ucs2 0x1027101A1039),
-(_ucs2 0x10211031101A103A),
-(_ucs2 0x1027101A103A),
-(_ucs2 0x10211031102C101A1039),
-(_ucs2 0x1029101A1039),
-(_ucs2 0x10211031102C101A103A),
-(_ucs2 0x1029101A103A),
-(_ucs2 0x10211031102C101A1039),
-(_ucs2 0x10291031102C101A1039),
-(_ucs2 0x10211031102C101A103A),
-(_ucs2 0x10291031102C101A103A),
-(_ucs2 0x1021102D101B1039),
-(_ucs2 0x1023101B1039),
-(_ucs2 0x1021102D101B103A),
-(_ucs2 0x1023101B103A),
-(_ucs2 0x1021102F101B1039),
-(_ucs2 0x1025101B1039),
-(_ucs2 0x1021102F101B103A),
-(_ucs2 0x1025101B103A),
-(_ucs2 0x10211031101B1039),
-(_ucs2 0x1027101B1039),
-(_ucs2 0x10211031101B103A),
-(_ucs2 0x1027101B103A),
-(_ucs2 0x10211031102C101B1039),
-(_ucs2 0x1029101B1039),
-(_ucs2 0x10211031102C101B103A),
-(_ucs2 0x1029101B103A),
-(_ucs2 0x10211031102C101B1039),
-(_ucs2 0x10291031102C101B1039),
-(_ucs2 0x10211031102C101B103A),
-(_ucs2 0x10291031102C101B103A),
-(_ucs2 0x1021102D101C1039),
-(_ucs2 0x1023101C1039),
-(_ucs2 0x1021102D101C103A),
-(_ucs2 0x1023101C103A),
-(_ucs2 0x1021102F101C1039),
-(_ucs2 0x1025101C1039),
-(_ucs2 0x1021102F101C103A),
-(_ucs2 0x1025101C103A),
-(_ucs2 0x10211031101C1039),
-(_ucs2 0x1027101C1039),
-(_ucs2 0x10211031101C103A),
-(_ucs2 0x1027101C103A),
-(_ucs2 0x10211031102C101C1039),
-(_ucs2 0x1029101C1039),
-(_ucs2 0x10211031102C101C103A),
-(_ucs2 0x1029101C103A),
-(_ucs2 0x10211031102C101C1039),
-(_ucs2 0x10291031102C101C1039),
-(_ucs2 0x10211031102C101C103A),
-(_ucs2 0x10291031102C101C103A),
-(_ucs2 0x1021102D101E1039),
-(_ucs2 0x1023101E1039),
-(_ucs2 0x1021102D101E103A),
-(_ucs2 0x1023101E103A),
-(_ucs2 0x1021102F101E1039),
-(_ucs2 0x1025101E1039),
-(_ucs2 0x1021102F101E103A),
-(_ucs2 0x1025101E103A),
-(_ucs2 0x10211031101E1039),
-(_ucs2 0x1027101E1039),
-(_ucs2 0x10211031101E103A),
-(_ucs2 0x1027101E103A),
-(_ucs2 0x10211031102C101E1039),
-(_ucs2 0x1029101E1039),
-(_ucs2 0x10211031102C101E103A),
-(_ucs2 0x1029101E103A),
-(_ucs2 0x10211031102C101E1039),
-(_ucs2 0x10291031102C101E1039),
-(_ucs2 0x10211031102C101E103A),
-(_ucs2 0x10291031102C101E103A),
-(_ucs2 0x1021102D101F1039),
-(_ucs2 0x1023101F1039),
-(_ucs2 0x1021102D101F103A),
-(_ucs2 0x1023101F103A),
-(_ucs2 0x1021102F101F1039),
-(_ucs2 0x1025101F1039),
-(_ucs2 0x1021102F101F103A),
-(_ucs2 0x1025101F103A),
-(_ucs2 0x10211031101F1039),
-(_ucs2 0x1027101F1039),
-(_ucs2 0x10211031101F103A),
-(_ucs2 0x1027101F103A),
-(_ucs2 0x10211031102C101F1039),
-(_ucs2 0x1029101F1039),
-(_ucs2 0x10211031102C101F103A),
-(_ucs2 0x1029101F103A),
-(_ucs2 0x10211031102C101F1039),
-(_ucs2 0x10291031102C101F1039),
-(_ucs2 0x10211031102C101F103A),
-(_ucs2 0x10291031102C101F103A),
-('--- Contractions'),
-(_ucs2 0x1031102C1000103A1000103B),
-(_ucs2 0x1031102C1000103A103B /* (suffix of) man */),
-(_ucs2 0x1014103A1014102F1015103A),
-(_ucs2 0x1014103A102F1015103A /* (suffix of) I */),
-('--- Great Sa'),
-(_ucs2 0x1031101E1039101E),
-(_ucs2 0x1031103F),
-(_ucs2 0x102D101E1039101E),
-(_ucs2 0x102D103F),
-(_ucs2 0x102F101E1039101E),
-(_ucs2 0x102F103F),
-(_ucs2 0x1021102D101E1039101E),
-(_ucs2 0x1023103F),
-(_ucs2 0x1021102F101E1039101E),
-(_ucs2 0x1025103F),
-(_ucs2 0x101E1039101E),
-(_ucs2 0x103F),
-('--- Symbols - collate as long form'),
-(_ucs2 0x1014103E102D102F1000103A),
-(_ucs2 0x104C),
-(_ucs2 0x101B103D10311037),
-(_ucs2 0x104D),
-(_ucs2 0x101C100A103A103810001031102C1004103A1038),
-(_ucs2 0x104E1004103A1038),
-(_ucs2 0x1021102D),
-(_ucs2 0x104F),
-('--- Short Forms may need to be added here'),
-(_ucs2 0x101C1000103A101A102C),
-(_ucs2 0x101C1000103A103B102C /* right hand side */),
-(_ucs2 0x101E1019102E),
-(_ucs2 0x101E10391019102E /* daughter */),
-(_ucs2 0x101110191004103A1038),
-(_ucs2 0x1011103910191004103A1038 /* cooked rice */),
-(_ucs2 0x101C1000103A10181000103A),
-(_ucs2 0x101C103910181000103A /* tea */);
-SELECT id, IF(LEFT(s1,1)='-',s1,CONCAT(HEX(WEIGHT_STRING(s1)),'\t', HEX(CONVERT(s1 USING ucs2)))) FROM t1 ORDER BY id;
-id IF(LEFT(s1,1)='-',s1,CONCAT(HEX(WEIGHT_STRING(s1)),'\t', HEX(CONVERT(s1 USING ucs2))))
-1 2259 108C
-2 22593ACB 1037
-3 22593ACC 1038
-4 22593ACD 10371038
-5 --- Vowels
-6 2232 102C
-7 2232 102B
-8 2246 1032
-9 22463ACB 1031102C
-10 22463ACB 1031102B
-11 22463ACC 1031102C103A
-12 22463ACC 1031102B103A
-13 2248 1034
-14 22483ACB 1036
-15 22483ACC 102D102F
-16 --- Vowels with finals
-17 22483ACD 10001039
-18 22483ACD 1000103A
-19 22483ACE 102C10001039
-20 22483ACE 102C1000103A
-21 22483ACE 102B10001039
-22 22483ACE 102B1000103A
-23 22483ACF 102D10001039
-24 22483ACF 102D1000103A
-25 22483AD0 102F10001039
-26 22483AD0 102F1000103A
-27 22483AD1 103110001039
-28 22483AD1 10311000103A
-29 22483AD2 1031102C10001039
-30 22483AD2 1031102C1000103A
-31 22483AD2 1031102B10001039
-32 22483AD2 1031102B1000103A
-33 22483AD3 102D102F10001039
-34 22483AD3 102D102F1000103A
-35 22483AD4 10011039
-36 22483AD4 1001103A
-37 22483AD5 102C10011039
-38 22483AD5 102C1001103A
-39 22483AD5 102B10011039
-40 22483AD5 102B1001103A
-41 22483AD6 102D10011039
-42 22483AD6 102D1001103A
-43 22483AD7 102F10011039
-44 22483AD7 102F1001103A
-45 22483AD8 103110011039
-46 22483AD8 10311001103A
-47 22483AD9 1031102C10011039
-48 22483AD9 1031102C1001103A
-49 22483AD9 1031102B10011039
-50 22483AD9 1031102B1001103A
-51 22483ADA 102D102F10011039
-52 22483ADA 102D102F1001103A
-53 22483ADB 10021039
-54 22483ADB 1002103A
-55 22483ADC 102C10021039
-56 22483ADC 102C1002103A
-57 22483ADC 102B10021039
-58 22483ADC 102B1002103A
-59 22483ADD 102D10021039
-60 22483ADD 102D1002103A
-61 22483ADE 102F10021039
-62 22483ADE 102F1002103A
-63 22483ADF 103110021039
-64 22483ADF 10311002103A
-65 22483AE0 1031102C10021039
-66 22483AE0 1031102C1002103A
-67 22483AE0 1031102B10021039
-68 22483AE0 1031102B1002103A
-69 22483AE1 102D102F10021039
-70 22483AE1 102D102F1002103A
-71 22483AE2 10031039
-72 22483AE2 1003103A
-73 22483AE3 102C10031039
-74 22483AE3 102C1003103A
-75 22483AE3 102B10031039
-76 22483AE3 102B1003103A
-77 22483AE4 102D10031039
-78 22483AE4 102D1003103A
-79 22483AE5 102F10031039
-80 22483AE5 102F1003103A
-81 22483AE6 103110031039
-82 22483AE6 10311003103A
-83 22483AE7 1031102C10031039
-84 22483AE7 1031102C1003103A
-85 22483AE7 1031102B10031039
-86 22483AE7 1031102B1003103A
-87 22483AE8 102D102F10031039
-88 22483AE8 102D102F1003103A
-89 22483AE9 1004103A1039
-90 22483AE9 1004103A
-91 22483AEA 102C1004103A1039
-92 22483AEA 102C1004103A
-93 22483AEA 102B1004103A1039
-94 22483AEA 102B1004103A
-95 22483AEB 102D1004103A1039
-96 22483AEB 102D1004103A
-97 22483AEC 102F1004103A1039
-98 22483AEC 102F1004103A
-99 22483AED 10311004103A1039
-100 22483AED 10311004103A
-101 22483AEE 1031102C1004103A1039
-102 22483AEE 1031102C1004103A
-103 22483AEE 1031102B1004103A1039
-104 22483AEE 1031102B1004103A
-105 22483AEF 102D102F1004103A1039
-106 22483AEF 102D102F1004103A
-107 22483AF0 10051039
-108 22483AF0 1005103A
-109 22483AF1 102C10051039
-110 22483AF1 102C1005103A
-111 22483AF1 102B10051039
-112 22483AF1 102B1005103A
-113 22483AF2 102D10051039
-114 22483AF2 102D1005103A
-115 22483AF3 102F10051039
-116 22483AF3 102F1005103A
-117 22483AF4 103110051039
-118 22483AF4 10311005103A
-119 22483AF5 1031102C10051039
-120 22483AF5 1031102C1005103A
-121 22483AF5 1031102B10051039
-122 22483AF5 1031102B1005103A
-123 22483AF6 102D102F10051039
-124 22483AF6 102D102F1005103A
-125 22483AF7 10061039
-126 22483AF7 1006103A
-127 22483AF8 102C10061039
-128 22483AF8 102C1006103A
-129 22483AF8 102B10061039
-130 22483AF8 102B1006103A
-131 22483AF9 102D10061039
-132 22483AF9 102D1006103A
-133 22483AFA 102F10061039
-134 22483AFA 102F1006103A
-135 22483AFB 103110061039
-136 22483AFB 10311006103A
-137 22483AFC 1031102C10061039
-138 22483AFC 1031102C1006103A
-139 22483AFC 1031102B10061039
-140 22483AFC 1031102B1006103A
-141 22483AFD 102D102F10061039
-142 22483AFD 102D102F1006103A
-143 22483AFE 10071039
-144 22483AFE 1007103A
-145 22483AFF 102C10071039
-146 22483AFF 102C1007103A
-147 22483AFF 102B10071039
-148 22483AFF 102B1007103A
-149 22483B00 102D10071039
-150 22483B00 102D1007103A
-151 22483B01 102F10071039
-152 22483B01 102F1007103A
-153 22483B02 103110071039
-154 22483B02 10311007103A
-155 22483B03 1031102C10071039
-156 22483B03 1031102C1007103A
-157 22483B03 1031102B10071039
-158 22483B03 1031102B1007103A
-159 22483B04 102D102F10071039
-160 22483B04 102D102F1007103A
-161 22483B05 1008103A
-162 22483B06 102C1008103A
-163 22483B06 102B1008103A
-164 22483B07 102D1008103A
-165 22483B08 102F1008103A
-166 22483B09 10311008103A
-167 22483B0A 1031102C1008103A
-168 22483B0A 1031102B1008103A
-169 22483B0B 102D102F1008103A
-170 22483B0C 10091039
-171 22483B0C 1009103A
-172 22483B0D 102C10091039
-173 22483B0D 102C1009103A
-174 22483B0D 102B10091039
-175 22483B0D 102B1009103A
-176 22483B0E 102D10091039
-177 22483B0E 102D1009103A
-178 22483B0F 102F10091039
-179 22483B0F 102F1009103A
-180 22483B10 103110091039
-181 22483B10 10311009103A
-182 22483B11 1031102C10091039
-183 22483B11 1031102C1009103A
-184 22483B11 1031102B10091039
-185 22483B11 1031102B1009103A
-186 22483B12 102D102F10091039
-187 22483B12 102D102F1009103A
-188 22483B13 100A1039
-189 22483B13 100A103A
-190 22483B14 102C100A1039
-191 22483B14 102C100A103A
-192 22483B14 102B100A1039
-193 22483B14 102B100A103A
-194 22483B15 102D100A1039
-195 22483B15 102D100A103A
-196 22483B16 102F100A1039
-197 22483B16 102F100A103A
-198 22483B17 1031100A1039
-199 22483B17 1031100A103A
-200 22483B18 1031102C100A1039
-201 22483B18 1031102C100A103A
-202 22483B18 1031102B100A1039
-203 22483B18 1031102B100A103A
-204 22483B19 102D102F100A1039
-205 22483B19 102D102F100A103A
-206 22483B1A 100B1039
-207 22483B1A 100B103A
-208 22483B1B 102C100B1039
-209 22483B1B 102C100B103A
-210 22483B1B 102B100B1039
-211 22483B1B 102B100B103A
-212 22483B1C 102D100B1039
-213 22483B1C 102D100B103A
-214 22483B1D 102F100B1039
-215 22483B1D 102F100B103A
-216 22483B1E 1031100B1039
-217 22483B1E 1031100B103A
-218 22483B1F 1031102C100B1039
-219 22483B1F 1031102C100B103A
-220 22483B1F 1031102B100B1039
-221 22483B1F 1031102B100B103A
-222 22483B20 102D102F100B1039
-223 22483B20 102D102F100B103A
-224 22483B21 100C1039
-225 22483B21 100C103A
-226 22483B22 102C100C1039
-227 22483B22 102C100C103A
-228 22483B22 102B100C1039
-229 22483B22 102B100C103A
-230 22483B23 102D100C1039
-231 22483B23 102D100C103A
-232 22483B24 102F100C1039
-233 22483B24 102F100C103A
-234 22483B25 1031100C1039
-235 22483B25 1031100C103A
-236 22483B26 1031102C100C1039
-237 22483B26 1031102C100C103A
-238 22483B26 1031102B100C1039
-239 22483B26 1031102B100C103A
-240 22483B27 102D102F100C1039
-241 22483B27 102D102F100C103A
-242 22483B28 100D1039
-243 22483B28 100D103A
-244 22483B29 102C100D1039
-245 22483B29 102C100D103A
-246 22483B29 102B100D1039
-247 22483B29 102B100D103A
-248 22483B2A 102D100D1039
-249 22483B2A 102D100D103A
-250 22483B2B 102F100D1039
-251 22483B2B 102F100D103A
-252 22483B2C 1031100D1039
-253 22483B2C 1031100D103A
-254 22483B2D 1031102C100D1039
-255 22483B2D 1031102C100D103A
-256 22483B2D 1031102B100D1039
-257 22483B2D 1031102B100D103A
-258 22483B2E 102D102F100D1039
-259 22483B2E 102D102F100D103A
-260 22483B2F 100E1039
-261 22483B2F 100E103A
-262 22483B30 102C100E1039
-263 22483B30 102C100E103A
-264 22483B30 102B100E1039
-265 22483B30 102B100E103A
-266 22483B31 102D100E1039
-267 22483B31 102D100E103A
-268 22483B32 102F100E1039
-269 22483B32 102F100E103A
-270 22483B33 1031100E1039
-271 22483B33 1031100E103A
-272 22483B34 1031102C100E1039
-273 22483B34 1031102C100E103A
-274 22483B34 1031102B100E1039
-275 22483B34 1031102B100E103A
-276 22483B35 102D102F100E1039
-277 22483B35 102D102F100E103A
-278 22483B36 100F1039
-279 22483B36 100F103A
-280 22483B37 102C100F1039
-281 22483B37 102C100F103A
-282 22483B37 102B100F1039
-283 22483B37 102B100F103A
-284 22483B38 102D100F1039
-285 22483B38 102D100F103A
-286 22483B39 102F100F1039
-287 22483B39 102F100F103A
-288 22483B3A 1031100F1039
-289 22483B3A 1031100F103A
-290 22483B3B 1031102C100F1039
-291 22483B3B 1031102C100F103A
-292 22483B3B 1031102B100F1039
-293 22483B3B 1031102B100F103A
-294 22483B3C 102D102F100F1039
-295 22483B3C 102D102F100F103A
-296 22483B3D 10101039
-297 22483B3D 1010103A
-298 22483B3E 102C10101039
-299 22483B3E 102C1010103A
-300 22483B3E 102B10101039
-301 22483B3E 102B1010103A
-302 22483B3F 102D10101039
-303 22483B3F 102D1010103A
-304 22483B40 102F10101039
-305 22483B40 102F1010103A
-306 22483B41 103110101039
-307 22483B41 10311010103A
-308 22483B42 1031102C10101039
-309 22483B42 1031102C1010103A
-310 22483B42 1031102B10101039
-311 22483B42 1031102B1010103A
-312 22483B43 102D102F10101039
-313 22483B43 102D102F1010103A
-314 22483B44 10111039
-315 22483B44 1011103A
-316 22483B45 102C10111039
-317 22483B45 102C1011103A
-318 22483B45 102B10111039
-319 22483B45 102B1011103A
-320 22483B46 102D10111039
-321 22483B46 102D1011103A
-322 22483B47 102F10111039
-323 22483B47 102F1011103A
-324 22483B48 103110111039
-325 22483B48 10311011103A
-326 22483B49 1031102C10111039
-327 22483B49 1031102C1011103A
-328 22483B49 1031102B10111039
-329 22483B49 1031102B1011103A
-330 22483B4A 102D102F10111039
-331 22483B4A 102D102F1011103A
-332 22483B4B 10121039
-333 22483B4B 1012103A
-334 22483B4C 102C10121039
-335 22483B4C 102C1012103A
-336 22483B4C 102B10121039
-337 22483B4C 102B1012103A
-338 22483B4D 102D10121039
-339 22483B4D 102D1012103A
-340 22483B4E 102F10121039
-341 22483B4E 102F1012103A
-342 22483B4F 103110121039
-343 22483B4F 10311012103A
-344 22483B50 1031102C10121039
-345 22483B50 1031102C1012103A
-346 22483B50 1031102B10121039
-347 22483B50 1031102B1012103A
-348 22483B51 102D102F10121039
-349 22483B51 102D102F1012103A
-350 22483B52 10131039
-351 22483B52 1013103A
-352 22483B53 102C10131039
-353 22483B53 102C1013103A
-354 22483B53 102B10131039
-355 22483B53 102B1013103A
-356 22483B54 102D10131039
-357 22483B54 102D1013103A
-358 22483B55 102F10131039
-359 22483B55 102F1013103A
-360 22483B56 103110131039
-361 22483B56 10311013103A
-362 22483B57 1031102C10131039
-363 22483B57 1031102C1013103A
-364 22483B57 1031102B10131039
-365 22483B57 1031102B1013103A
-366 22483B58 102D102F10131039
-367 22483B58 102D102F1013103A
-368 22483B59 10141039
-369 22483B59 1014103A
-370 22483B5A 102C10141039
-371 22483B5A 102C1014103A
-372 22483B5A 102B10141039
-373 22483B5A 102B1014103A
-374 22483B5B 102D10141039
-375 22483B5B 102D1014103A
-376 22483B5C 102F10141039
-377 22483B5C 102F1014103A
-378 22483B5D 103110141039
-379 22483B5D 10311014103A
-380 22483B5E 1031102C10141039
-381 22483B5E 1031102C1014103A
-382 22483B5E 1031102B10141039
-383 22483B5E 1031102B1014103A
-384 22483B5F 102D102F10141039
-385 22483B5F 102D102F1014103A
-386 22483B60 10151039
-387 22483B60 1015103A
-388 22483B61 102C10151039
-389 22483B61 102C1015103A
-390 22483B61 102B10151039
-391 22483B61 102B1015103A
-392 22483B62 102D10151039
-393 22483B62 102D1015103A
-394 22483B63 102F10151039
-395 22483B63 102F1015103A
-396 22483B64 103110151039
-397 22483B64 10311015103A
-398 22483B65 1031102C10151039
-399 22483B65 1031102C1015103A
-400 22483B65 1031102B10151039
-401 22483B65 1031102B1015103A
-402 22483B66 102D102F10151039
-403 22483B66 102D102F1015103A
-404 22483B67 10161039
-405 22483B67 1016103A
-406 22483B68 102C10161039
-407 22483B68 102C1016103A
-408 22483B68 102B10161039
-409 22483B68 102B1016103A
-410 22483B69 102D10161039
-411 22483B69 102D1016103A
-412 22483B6A 102F10161039
-413 22483B6A 102F1016103A
-414 22483B6B 103110161039
-415 22483B6B 10311016103A
-416 22483B6C 1031102C10161039
-417 22483B6C 1031102C1016103A
-418 22483B6C 1031102B10161039
-419 22483B6C 1031102B1016103A
-420 22483B6D 102D102F10161039
-421 22483B6D 102D102F1016103A
-422 22483B6E 10171039
-423 22483B6E 1017103A
-424 22483B6F 102C10171039
-425 22483B6F 102C1017103A
-426 22483B6F 102B10171039
-427 22483B6F 102B1017103A
-428 22483B70 102D10171039
-429 22483B70 102D1017103A
-430 22483B71 102F10171039
-431 22483B71 102F1017103A
-432 22483B72 103110171039
-433 22483B72 10311017103A
-434 22483B73 1031102C10171039
-435 22483B73 1031102C1017103A
-436 22483B73 1031102B10171039
-437 22483B73 1031102B1017103A
-438 22483B74 102D102F10171039
-439 22483B74 102D102F1017103A
-440 22483B75 10181039
-441 22483B75 1018103A
-442 22483B76 102C10181039
-443 22483B76 102C1018103A
-444 22483B76 102B10181039
-445 22483B76 102B1018103A
-446 22483B77 102D10181039
-447 22483B77 102D1018103A
-448 22483B78 102F10181039
-449 22483B78 102F1018103A
-450 22483B79 103110181039
-451 22483B79 10311018103A
-452 22483B7A 1031102C10181039
-453 22483B7A 1031102C1018103A
-454 22483B7A 1031102B10181039
-455 22483B7A 1031102B1018103A
-456 22483B7B 102D102F10181039
-457 22483B7B 102D102F1018103A
-458 22483B7C 10191039
-459 22483B7C 1019103A
-460 22483B7D 102C10191039
-461 22483B7D 102C1019103A
-462 22483B7D 102B10191039
-463 22483B7D 102B1019103A
-464 22483B7E 102D10191039
-465 22483B7E 102D1019103A
-466 22483B7F 102F10191039
-467 22483B7F 102F1019103A
-468 22483B80 103110191039
-469 22483B80 10311019103A
-470 22483B81 1031102C10191039
-471 22483B81 1031102C1019103A
-472 22483B81 1031102B10191039
-473 22483B81 1031102B1019103A
-474 22483B82 102D102F10191039
-475 22483B82 102D102F1019103A
-476 22483B83 101A1039
-477 22483B83 101A103A
-478 22483B84 102C101A1039
-479 22483B84 102C101A103A
-480 22483B84 102B101A1039
-481 22483B84 102B101A103A
-482 22483B85 102D101A1039
-483 22483B85 102D101A103A
-484 22483B86 102F101A1039
-485 22483B86 102F101A103A
-486 22483B87 1031101A1039
-487 22483B87 1031101A103A
-488 22483B88 1031102C101A1039
-489 22483B88 1031102C101A103A
-490 22483B88 1031102B101A1039
-491 22483B88 1031102B101A103A
-492 22483B89 102D102F101A1039
-493 22483B89 102D102F101A103A
-494 22483B8A 101B1039
-495 22483B8A 101B103A
-496 22483B8B 102C101B1039
-497 22483B8B 102C101B103A
-498 22483B8B 102B101B1039
-499 22483B8B 102B101B103A
-500 22483B8C 102D101B1039
-501 22483B8C 102D101B103A
-502 22483B8D 102F101B1039
-503 22483B8D 102F101B103A
-504 22483B8E 1031101B1039
-505 22483B8E 1031101B103A
-506 22483B8F 1031102C101B1039
-507 22483B8F 1031102C101B103A
-508 22483B8F 1031102B101B1039
-509 22483B8F 1031102B101B103A
-510 22483B90 102D102F101B1039
-511 22483B90 102D102F101B103A
-512 22483B91 101C1039
-513 22483B91 101C103A
-514 22483B92 102C101C1039
-515 22483B92 102C101C103A
-516 22483B92 102B101C1039
-517 22483B92 102B101C103A
-518 22483B93 102D101C1039
-519 22483B93 102D101C103A
-520 22483B94 102F101C1039
-521 22483B94 102F101C103A
-522 22483B95 1031101C1039
-523 22483B95 1031101C103A
-524 22483B96 1031102C101C1039
-525 22483B96 1031102C101C103A
-526 22483B96 1031102B101C1039
-527 22483B96 1031102B101C103A
-528 22483B97 102D102F101C1039
-529 22483B97 102D102F101C103A
-530 22483B98 101D103A
-531 22483B99 102C101D103A
-532 22483B99 102B101D103A
-533 22483B9A 102D101D103A
-534 22483B9B 102F101D103A
-535 22483B9C 1031101D103A
-536 22483B9D 1031102C101D103A
-537 22483B9D 1031102B101D103A
-538 22483B9E 102D102F101D103A
-539 22483B9F 101E1039
-540 22483B9F 101E103A
-541 22483BA0 102C101E1039
-542 22483BA0 102C101E103A
-543 22483BA0 102B101E1039
-544 22483BA0 102B101E103A
-545 22483BA1 102D101E1039
-546 22483BA1 102D101E103A
-547 22483BA2 102F101E1039
-548 22483BA2 102F101E103A
-549 22483BA3 1031101E1039
-550 22483BA3 1031101E103A
-551 22483BA4 1031102C101E1039
-552 22483BA4 1031102C101E103A
-553 22483BA4 1031102B101E1039
-554 22483BA4 1031102B101E103A
-555 22483BA5 102D102F101E1039
-556 22483BA5 102D102F101E103A
-557 22483BA6 101F1039
-558 22483BA6 101F103A
-559 22483BA7 102C101F1039
-560 22483BA7 102C101F103A
-561 22483BA7 102B101F1039
-562 22483BA7 102B101F103A
-563 22483BA8 102D101F1039
-564 22483BA8 102D101F103A
-565 22483BA9 102F101F1039
-566 22483BA9 102F101F103A
-567 22483BAA 1031101F1039
-568 22483BAA 1031101F103A
-569 22483BAB 1031102C101F1039
-570 22483BAB 1031102C101F103A
-571 22483BAB 1031102B101F1039
-572 22483BAB 1031102B101F103A
-573 22483BAC 102D102F101F1039
-574 22483BAC 102D102F101F103A
-575 22483BAD 1020103A
-576 22483BAE 102C1020103A
-577 22483BAE 102B1020103A
-578 22483BAF 102D1020103A
-579 22483BB0 102F1020103A
-580 22483BB1 10311020103A
-581 22483BB2 1031102C1020103A
-582 22483BB2 1031102B1020103A
-583 22483BB3 102D102F1020103A
-584 22483BB4 1021103A
-585 22483BB5 102C1021103A
-586 22483BB5 102B1021103A
-587 22483BB6 102D1021103A
-588 22483BB7 102F1021103A
-589 22483BB8 10311021103A
-590 22483BB9 1031102C1021103A
-591 22483BB9 1031102B1021103A
-592 22483BBA 102D102F1021103A
-593 --- Medials
-594 22483BBB 105E
-595 22483BBC 105F
-596 22483BBD 103B
-597 22483BBE 103C
-598 22483BBF 1060
-599 22483BC0 103D
-600 22483BC1 1082
-601 22483BC2 103E
-602 22483BC3 103B103D
-603 22483BC4 103C103D
-604 22483BC5 103B103E
-605 22483BC6 103C103E
-606 22483BC7 103D103E
-607 22483BC8 103B103D103E
-608 22483BC9 103C103D103E
-609 --- Independent vowels
-610 22242236 1021102D
-611 22242236 1023
-612 22242238 1021102E
-613 22242238 1024
-614 2224223A 1021102F
-615 2224223A 1025
-616 2224223D 10211030
-617 2224223D 1026
-618 22242242 10211031
-619 22242242 1027
-620 22242242 1028
-621 222422463ACB 10211031102C
-622 222422463ACB 1029
-623 222422463ACC 10211031102C103A
-624 222422463ACC 102A
-625 22483B7E 102D1019103A
-626 22483B7E3ACB 102D1036
-627 22483B7E3ACC 102D1019103A1037
-628 22483B7E3ACD 102D10361037
-629 22483B7E3ACE 102D1019103A1038
-630 22483B7E3ACF 102D10361038
-631 22483B7F 102F1019103A
-632 22483B7F3ACB 102F1036
-633 22483B7F3ACC 102F1019103A1037
-634 22483B7F3ACD 102F10361037
-635 22483B7F3ACE 102F1019103A1038
-636 22483B7F3ACF 102F10361038
-637 222422483B7F3ACB 1021102F1036
-638 222422483B7F3ACB 1025102F1036
-639 --- Independent vowels with finals
-640 222422483ACF 1021102D10001039
-641 222422483ACF 102310001039
-642 222422483ACF 1021102D1000103A
-643 222422483ACF 10231000103A
-644 222422483AD0 1021102F10001039
-645 222422483AD0 102510001039
-646 222422483AD0 1021102F1000103A
-647 222422483AD0 10251000103A
-648 222422483AD1 1021103110001039
-649 222422483AD1 102710001039
-650 222422483AD1 102110311000103A
-651 222422483AD1 10271000103A
-652 222422483AD2 10211031102C10001039
-653 222422483AD2 102910001039
-654 222422483AD2 10211031102C1000103A
-655 222422483AD2 10291000103A
-656 222422483AD2 10211031102C10001039
-657 222422483AD2 10291031102C10001039
-658 222422483AD2 10211031102C1000103A
-659 222422483AD2 10291031102C1000103A
-660 222422483AD6 1021102D10011039
-661 222422483AD6 102310011039
-662 222422483AD6 1021102D1001103A
-663 222422483AD6 10231001103A
-664 222422483AD7 1021102F10011039
-665 222422483AD7 102510011039
-666 222422483AD7 1021102F1001103A
-667 222422483AD7 10251001103A
-668 222422483AD8 1021103110011039
-669 222422483AD8 102710011039
-670 222422483AD8 102110311001103A
-671 222422483AD8 10271001103A
-672 222422483AD9 10211031102C10011039
-673 222422483AD9 102910011039
-674 222422483AD9 10211031102C1001103A
-675 222422483AD9 10291001103A
-676 222422483AD9 10211031102C10011039
-677 222422483AD9 10291031102C10011039
-678 222422483AD9 10211031102C1001103A
-679 222422483AD9 10291031102C1001103A
-680 222422483ADD 1021102D10021039
-681 222422483ADD 102310021039
-682 222422483ADD 1021102D1002103A
-683 222422483ADD 10231002103A
-684 222422483ADE 1021102F10021039
-685 222422483ADE 102510021039
-686 222422483ADE 1021102F1002103A
-687 222422483ADE 10251002103A
-688 222422483ADF 1021103110021039
-689 222422483ADF 102710021039
-690 222422483ADF 102110311002103A
-691 222422483ADF 10271002103A
-692 222422483AE0 10211031102C10021039
-693 222422483AE0 102910021039
-694 222422483AE0 10211031102C1002103A
-695 222422483AE0 10291002103A
-696 222422483AE0 10211031102C10021039
-697 222422483AE0 10291031102C10021039
-698 222422483AE0 10211031102C1002103A
-699 222422483AE0 10291031102C1002103A
-700 222422483AE4 1021102D10031039
-701 222422483AE4 102310031039
-702 222422483AE4 1021102D1003103A
-703 222422483AE4 10231003103A
-704 222422483AE5 1021102F10031039
-705 222422483AE5 102510031039
-706 222422483AE5 1021102F1003103A
-707 222422483AE5 10251003103A
-708 222422483AE6 1021103110031039
-709 222422483AE6 102710031039
-710 222422483AE6 102110311003103A
-711 222422483AE6 10271003103A
-712 222422483AE7 10211031102C10031039
-713 222422483AE7 102910031039
-714 222422483AE7 10211031102C1003103A
-715 222422483AE7 10291003103A
-716 222422483AE7 10211031102C10031039
-717 222422483AE7 10291031102C10031039
-718 222422483AE7 10211031102C1003103A
-719 222422483AE7 10291031102C1003103A
-720 2224223621D5224D 1021102D10041039
-721 2224223621D5224D 102310041039
-722 222422483AEB 1021102D1004103A
-723 222422483AEB 10231004103A
-724 2224223A21D5224D 1021102F10041039
-725 2224223A21D5224D 102510041039
-726 222422483AEC 1021102F1004103A
-727 222422483AEC 10251004103A
-728 2224224221D5224D 1021103110041039
-729 2224224221D5224D 102710041039
-730 222422483AED 102110311004103A
-731 222422483AED 10271004103A
-732 222422463ACB21D5224D 10211031102C10041039
-733 222422463ACB21D5224D 102910041039
-734 222422483AEE 10211031102C1004103A
-735 222422483AEE 10291004103A
-736 222422463ACB21D5224D 10211031102C10041039
-737 222422463ACB21D5224D 10291031102C10041039
-738 222422483AEE 10211031102C1004103A
-739 222422483AEE 10291031102C1004103A
-740 222422483AF2 1021102D10051039
-741 222422483AF2 102310051039
-742 222422483AF2 1021102D1005103A
-743 222422483AF2 10231005103A
-744 222422483AF3 1021102F10051039
-745 222422483AF3 102510051039
-746 222422483AF3 1021102F1005103A
-747 222422483AF3 10251005103A
-748 222422483AF4 1021103110051039
-749 222422483AF4 102710051039
-750 222422483AF4 102110311005103A
-751 222422483AF4 10271005103A
-752 222422483AF5 10211031102C10051039
-753 222422483AF5 102910051039
-754 222422483AF5 10211031102C1005103A
-755 222422483AF5 10291005103A
-756 222422483AF5 10211031102C10051039
-757 222422483AF5 10291031102C10051039
-758 222422483AF5 10211031102C1005103A
-759 222422483AF5 10291031102C1005103A
-760 222422483AF9 1021102D10061039
-761 222422483AF9 102310061039
-762 222422483AF9 1021102D1006103A
-763 222422483AF9 10231006103A
-764 222422483AFA 1021102F10061039
-765 222422483AFA 102510061039
-766 222422483AFA 1021102F1006103A
-767 222422483AFA 10251006103A
-768 222422483AFB 1021103110061039
-769 222422483AFB 102710061039
-770 222422483AFB 102110311006103A
-771 222422483AFB 10271006103A
-772 222422483AFC 10211031102C10061039
-773 222422483AFC 102910061039
-774 222422483AFC 10211031102C1006103A
-775 222422483AFC 10291006103A
-776 222422483AFC 10211031102C10061039
-777 222422483AFC 10291031102C10061039
-778 222422483AFC 10211031102C1006103A
-779 222422483AFC 10291031102C1006103A
-780 222422483B00 1021102D10071039
-781 222422483B00 102310071039
-782 222422483B00 1021102D1007103A
-783 222422483B00 10231007103A
-784 222422483B01 1021102F10071039
-785 222422483B01 102510071039
-786 222422483B01 1021102F1007103A
-787 222422483B01 10251007103A
-788 222422483B02 1021103110071039
-789 222422483B02 102710071039
-790 222422483B02 102110311007103A
-791 222422483B02 10271007103A
-792 222422483B03 10211031102C10071039
-793 222422483B03 102910071039
-794 222422483B03 10211031102C1007103A
-795 222422483B03 10291007103A
-796 222422483B03 10211031102C10071039
-797 222422483B03 10291031102C10071039
-798 222422483B03 10211031102C1007103A
-799 222422483B03 10291031102C1007103A
-800 222422483B0E 1021102D10091039
-801 222422483B0E 102310091039
-802 222422483B0E 1021102D1009103A
-803 222422483B0E 10231009103A
-804 222422483B0F 1021102F10091039
-805 222422483B0F 102510091039
-806 222422483B0F 1021102F1009103A
-807 222422483B0F 10251009103A
-808 222422483B10 1021103110091039
-809 222422483B10 102710091039
-810 222422483B10 102110311009103A
-811 222422483B10 10271009103A
-812 222422483B11 10211031102C10091039
-813 222422483B11 102910091039
-814 222422483B11 10211031102C1009103A
-815 222422483B11 10291009103A
-816 222422483B11 10211031102C10091039
-817 222422483B11 10291031102C10091039
-818 222422483B11 10211031102C1009103A
-819 222422483B11 10291031102C1009103A
-820 222422483B15 1021102D100A1039
-821 222422483B15 1023100A1039
-822 222422483B15 1021102D100A103A
-823 222422483B15 1023100A103A
-824 222422483B16 1021102F100A1039
-825 222422483B16 1025100A1039
-826 222422483B16 1021102F100A103A
-827 222422483B16 1025100A103A
-828 222422483B17 10211031100A1039
-829 222422483B17 1027100A1039
-830 222422483B17 10211031100A103A
-831 222422483B17 1027100A103A
-832 222422483B18 10211031102C100A1039
-833 222422483B18 1029100A1039
-834 222422483B18 10211031102C100A103A
-835 222422483B18 1029100A103A
-836 222422483B18 10211031102C100A1039
-837 222422483B18 10291031102C100A1039
-838 222422483B18 10211031102C100A103A
-839 222422483B18 10291031102C100A103A
-840 222422483B1C 1021102D100B1039
-841 222422483B1C 1023100B1039
-842 222422483B1C 1021102D100B103A
-843 222422483B1C 1023100B103A
-844 222422483B1D 1021102F100B1039
-845 222422483B1D 1025100B1039
-846 222422483B1D 1021102F100B103A
-847 222422483B1D 1025100B103A
-848 222422483B1E 10211031100B1039
-849 222422483B1E 1027100B1039
-850 222422483B1E 10211031100B103A
-851 222422483B1E 1027100B103A
-852 222422483B1F 10211031102C100B1039
-853 222422483B1F 1029100B1039
-854 222422483B1F 10211031102C100B103A
-855 222422483B1F 1029100B103A
-856 222422483B1F 10211031102C100B1039
-857 222422483B1F 10291031102C100B1039
-858 222422483B1F 10211031102C100B103A
-859 222422483B1F 10291031102C100B103A
-860 222422483B23 1021102D100C1039
-861 222422483B23 1023100C1039
-862 222422483B23 1021102D100C103A
-863 222422483B23 1023100C103A
-864 222422483B24 1021102F100C1039
-865 222422483B24 1025100C1039
-866 222422483B24 1021102F100C103A
-867 222422483B24 1025100C103A
-868 222422483B25 10211031100C1039
-869 222422483B25 1027100C1039
-870 222422483B25 10211031100C103A
-871 222422483B25 1027100C103A
-872 222422483B26 10211031102C100C1039
-873 222422483B26 1029100C1039
-874 222422483B26 10211031102C100C103A
-875 222422483B26 1029100C103A
-876 222422483B26 10211031102C100C1039
-877 222422483B26 10291031102C100C1039
-878 222422483B26 10211031102C100C103A
-879 222422483B26 10291031102C100C103A
-880 222422483B2A 1021102D100D1039
-881 222422483B2A 1023100D1039
-882 222422483B2A 1021102D100D103A
-883 222422483B2A 1023100D103A
-884 222422483B2B 1021102F100D1039
-885 222422483B2B 1025100D1039
-886 222422483B2B 1021102F100D103A
-887 222422483B2B 1025100D103A
-888 222422483B2C 10211031100D1039
-889 222422483B2C 1027100D1039
-890 222422483B2C 10211031100D103A
-891 222422483B2C 1027100D103A
-892 222422483B2D 10211031102C100D1039
-893 222422483B2D 1029100D1039
-894 222422483B2D 10211031102C100D103A
-895 222422483B2D 1029100D103A
-896 222422483B2D 10211031102C100D1039
-897 222422483B2D 10291031102C100D1039
-898 222422483B2D 10211031102C100D103A
-899 222422483B2D 10291031102C100D103A
-900 222422483B31 1021102D100E1039
-901 222422483B31 1023100E1039
-902 222422483B31 1021102D100E103A
-903 222422483B31 1023100E103A
-904 222422483B32 1021102F100E1039
-905 222422483B32 1025100E1039
-906 222422483B32 1021102F100E103A
-907 222422483B32 1025100E103A
-908 222422483B33 10211031100E1039
-909 222422483B33 1027100E1039
-910 222422483B33 10211031100E103A
-911 222422483B33 1027100E103A
-912 222422483B34 10211031102C100E1039
-913 222422483B34 1029100E1039
-914 222422483B34 10211031102C100E103A
-915 222422483B34 1029100E103A
-916 222422483B34 10211031102C100E1039
-917 222422483B34 10291031102C100E1039
-918 222422483B34 10211031102C100E103A
-919 222422483B34 10291031102C100E103A
-920 222422483B38 1021102D100F1039
-921 222422483B38 1023100F1039
-922 222422483B38 1021102D100F103A
-923 222422483B38 1023100F103A
-924 222422483B39 1021102F100F1039
-925 222422483B39 1025100F1039
-926 222422483B39 1021102F100F103A
-927 222422483B39 1025100F103A
-928 222422483B3A 10211031100F1039
-929 222422483B3A 1027100F1039
-930 222422483B3A 10211031100F103A
-931 222422483B3A 1027100F103A
-932 222422483B3B 10211031102C100F1039
-933 222422483B3B 1029100F1039
-934 222422483B3B 10211031102C100F103A
-935 222422483B3B 1029100F103A
-936 222422483B3B 10211031102C100F1039
-937 222422483B3B 10291031102C100F1039
-938 222422483B3B 10211031102C100F103A
-939 222422483B3B 10291031102C100F103A
-940 222422483B3F 1021102D10101039
-941 222422483B3F 102310101039
-942 222422483B3F 1021102D1010103A
-943 222422483B3F 10231010103A
-944 222422483B40 1021102F10101039
-945 222422483B40 102510101039
-946 222422483B40 1021102F1010103A
-947 222422483B40 10251010103A
-948 222422483B41 1021103110101039
-949 222422483B41 102710101039
-950 222422483B41 102110311010103A
-951 222422483B41 10271010103A
-952 222422483B42 10211031102C10101039
-953 222422483B42 102910101039
-954 222422483B42 10211031102C1010103A
-955 222422483B42 10291010103A
-956 222422483B42 10211031102C10101039
-957 222422483B42 10291031102C10101039
-958 222422483B42 10211031102C1010103A
-959 222422483B42 10291031102C1010103A
-960 222422483B46 1021102D10111039
-961 222422483B46 102310111039
-962 222422483B46 1021102D1011103A
-963 222422483B46 10231011103A
-964 222422483B47 1021102F10111039
-965 222422483B47 102510111039
-966 222422483B47 1021102F1011103A
-967 222422483B47 10251011103A
-968 222422483B48 1021103110111039
-969 222422483B48 102710111039
-970 222422483B48 102110311011103A
-971 222422483B48 10271011103A
-972 222422483B49 10211031102C10111039
-973 222422483B49 102910111039
-974 222422483B49 10211031102C1011103A
-975 222422483B49 10291011103A
-976 222422483B49 10211031102C10111039
-977 222422483B49 10291031102C10111039
-978 222422483B49 10211031102C1011103A
-979 222422483B49 10291031102C1011103A
-980 222422483B4D 1021102D10121039
-981 222422483B4D 102310121039
-982 222422483B4D 1021102D1012103A
-983 222422483B4D 10231012103A
-984 222422483B4E 1021102F10121039
-985 222422483B4E 102510121039
-986 222422483B4E 1021102F1012103A
-987 222422483B4E 10251012103A
-988 222422483B4F 1021103110121039
-989 222422483B4F 102710121039
-990 222422483B4F 102110311012103A
-991 222422483B4F 10271012103A
-992 222422483B50 10211031102C10121039
-993 222422483B50 102910121039
-994 222422483B50 10211031102C1012103A
-995 222422483B50 10291012103A
-996 222422483B50 10211031102C10121039
-997 222422483B50 10291031102C10121039
-998 222422483B50 10211031102C1012103A
-999 222422483B50 10291031102C1012103A
-1000 222422483B54 1021102D10131039
-1001 222422483B54 102310131039
-1002 222422483B54 1021102D1013103A
-1003 222422483B54 10231013103A
-1004 222422483B55 1021102F10131039
-1005 222422483B55 102510131039
-1006 222422483B55 1021102F1013103A
-1007 222422483B55 10251013103A
-1008 222422483B56 1021103110131039
-1009 222422483B56 102710131039
-1010 222422483B56 102110311013103A
-1011 222422483B56 10271013103A
-1012 222422483B57 10211031102C10131039
-1013 222422483B57 102910131039
-1014 222422483B57 10211031102C1013103A
-1015 222422483B57 10291013103A
-1016 222422483B57 10211031102C10131039
-1017 222422483B57 10291031102C10131039
-1018 222422483B57 10211031102C1013103A
-1019 222422483B57 10291031102C1013103A
-1020 222422483B5B 1021102D10141039
-1021 222422483B5B 102310141039
-1022 222422483B5B 1021102D1014103A
-1023 222422483B5B 10231014103A
-1024 222422483B5C 1021102F10141039
-1025 222422483B5C 102510141039
-1026 222422483B5C 1021102F1014103A
-1027 222422483B5C 10251014103A
-1028 222422483B5D 1021103110141039
-1029 222422483B5D 102710141039
-1030 222422483B5D 102110311014103A
-1031 222422483B5D 10271014103A
-1032 222422483B5E 10211031102C10141039
-1033 222422483B5E 102910141039
-1034 222422483B5E 10211031102C1014103A
-1035 222422483B5E 10291014103A
-1036 222422483B5E 10211031102C10141039
-1037 222422483B5E 10291031102C10141039
-1038 222422483B5E 10211031102C1014103A
-1039 222422483B5E 10291031102C1014103A
-1040 222422483B62 1021102D10151039
-1041 222422483B62 102310151039
-1042 222422483B62 1021102D1015103A
-1043 222422483B62 10231015103A
-1044 222422483B63 1021102F10151039
-1045 222422483B63 102510151039
-1046 222422483B63 1021102F1015103A
-1047 222422483B63 10251015103A
-1048 222422483B64 1021103110151039
-1049 222422483B64 102710151039
-1050 222422483B64 102110311015103A
-1051 222422483B64 10271015103A
-1052 222422483B65 10211031102C10151039
-1053 222422483B65 102910151039
-1054 222422483B65 10211031102C1015103A
-1055 222422483B65 10291015103A
-1056 222422483B65 10211031102C10151039
-1057 222422483B65 10291031102C10151039
-1058 222422483B65 10211031102C1015103A
-1059 222422483B65 10291031102C1015103A
-1060 222422483B69 1021102D10161039
-1061 222422483B69 102310161039
-1062 222422483B69 1021102D1016103A
-1063 222422483B69 10231016103A
-1064 222422483B6A 1021102F10161039
-1065 222422483B6A 102510161039
-1066 222422483B6A 1021102F1016103A
-1067 222422483B6A 10251016103A
-1068 222422483B6B 1021103110161039
-1069 222422483B6B 102710161039
-1070 222422483B6B 102110311016103A
-1071 222422483B6B 10271016103A
-1072 222422483B6C 10211031102C10161039
-1073 222422483B6C 102910161039
-1074 222422483B6C 10211031102C1016103A
-1075 222422483B6C 10291016103A
-1076 222422483B6C 10211031102C10161039
-1077 222422483B6C 10291031102C10161039
-1078 222422483B6C 10211031102C1016103A
-1079 222422483B6C 10291031102C1016103A
-1080 222422483B70 1021102D10171039
-1081 222422483B70 102310171039
-1082 222422483B70 1021102D1017103A
-1083 222422483B70 10231017103A
-1084 222422483B71 1021102F10171039
-1085 222422483B71 102510171039
-1086 222422483B71 1021102F1017103A
-1087 222422483B71 10251017103A
-1088 222422483B72 1021103110171039
-1089 222422483B72 102710171039
-1090 222422483B72 102110311017103A
-1091 222422483B72 10271017103A
-1092 222422483B73 10211031102C10171039
-1093 222422483B73 102910171039
-1094 222422483B73 10211031102C1017103A
-1095 222422483B73 10291017103A
-1096 222422483B73 10211031102C10171039
-1097 222422483B73 10291031102C10171039
-1098 222422483B73 10211031102C1017103A
-1099 222422483B73 10291031102C1017103A
-1100 222422483B77 1021102D10181039
-1101 222422483B77 102310181039
-1102 222422483B77 1021102D1018103A
-1103 222422483B77 10231018103A
-1104 222422483B78 1021102F10181039
-1105 222422483B78 102510181039
-1106 222422483B78 1021102F1018103A
-1107 222422483B78 10251018103A
-1108 222422483B79 1021103110181039
-1109 222422483B79 102710181039
-1110 222422483B79 102110311018103A
-1111 222422483B79 10271018103A
-1112 222422483B7A 10211031102C10181039
-1113 222422483B7A 102910181039
-1114 222422483B7A 10211031102C1018103A
-1115 222422483B7A 10291018103A
-1116 222422483B7A 10211031102C10181039
-1117 222422483B7A 10291031102C10181039
-1118 222422483B7A 10211031102C1018103A
-1119 222422483B7A 10291031102C1018103A
-1120 222422483B7E 1021102D10191039
-1121 222422483B7E 102310191039
-1122 222422483B7E 1021102D1019103A
-1123 222422483B7E 10231019103A
-1124 222422483B7F 1021102F10191039
-1125 222422483B7F 102510191039
-1126 222422483B7F 1021102F1019103A
-1127 222422483B7F 10251019103A
-1128 222422483B80 1021103110191039
-1129 222422483B80 102710191039
-1130 222422483B80 102110311019103A
-1131 222422483B80 10271019103A
-1132 222422483B81 10211031102C10191039
-1133 222422483B81 102910191039
-1134 222422483B81 10211031102C1019103A
-1135 222422483B81 10291019103A
-1136 222422483B81 10211031102C10191039
-1137 222422483B81 10291031102C10191039
-1138 222422483B81 10211031102C1019103A
-1139 222422483B81 10291031102C1019103A
-1140 222422483B85 1021102D101A1039
-1141 222422483B85 1023101A1039
-1142 222422483B85 1021102D101A103A
-1143 222422483B85 1023101A103A
-1144 222422483B86 1021102F101A1039
-1145 222422483B86 1025101A1039
-1146 222422483B86 1021102F101A103A
-1147 222422483B86 1025101A103A
-1148 222422483B87 10211031101A1039
-1149 222422483B87 1027101A1039
-1150 222422483B87 10211031101A103A
-1151 222422483B87 1027101A103A
-1152 222422483B88 10211031102C101A1039
-1153 222422483B88 1029101A1039
-1154 222422483B88 10211031102C101A103A
-1155 222422483B88 1029101A103A
-1156 222422483B88 10211031102C101A1039
-1157 222422483B88 10291031102C101A1039
-1158 222422483B88 10211031102C101A103A
-1159 222422483B88 10291031102C101A103A
-1160 222422483B8C 1021102D101B1039
-1161 222422483B8C 1023101B1039
-1162 222422483B8C 1021102D101B103A
-1163 222422483B8C 1023101B103A
-1164 222422483B8D 1021102F101B1039
-1165 222422483B8D 1025101B1039
-1166 222422483B8D 1021102F101B103A
-1167 222422483B8D 1025101B103A
-1168 222422483B8E 10211031101B1039
-1169 222422483B8E 1027101B1039
-1170 222422483B8E 10211031101B103A
-1171 222422483B8E 1027101B103A
-1172 222422483B8F 10211031102C101B1039
-1173 222422483B8F 1029101B1039
-1174 222422483B8F 10211031102C101B103A
-1175 222422483B8F 1029101B103A
-1176 222422483B8F 10211031102C101B1039
-1177 222422483B8F 10291031102C101B1039
-1178 222422483B8F 10211031102C101B103A
-1179 222422483B8F 10291031102C101B103A
-1180 222422483B93 1021102D101C1039
-1181 222422483B93 1023101C1039
-1182 222422483B93 1021102D101C103A
-1183 222422483B93 1023101C103A
-1184 222422483B94 1021102F101C1039
-1185 222422483B94 1025101C1039
-1186 222422483B94 1021102F101C103A
-1187 222422483B94 1025101C103A
-1188 222422483B95 10211031101C1039
-1189 222422483B95 1027101C1039
-1190 222422483B95 10211031101C103A
-1191 222422483B95 1027101C103A
-1192 222422483B96 10211031102C101C1039
-1193 222422483B96 1029101C1039
-1194 222422483B96 10211031102C101C103A
-1195 222422483B96 1029101C103A
-1196 222422483B96 10211031102C101C1039
-1197 222422483B96 10291031102C101C1039
-1198 222422483B96 10211031102C101C103A
-1199 222422483B96 10291031102C101C103A
-1200 222422483BA1 1021102D101E1039
-1201 222422483BA1 1023101E1039
-1202 222422483BA1 1021102D101E103A
-1203 222422483BA1 1023101E103A
-1204 222422483BA2 1021102F101E1039
-1205 222422483BA2 1025101E1039
-1206 222422483BA2 1021102F101E103A
-1207 222422483BA2 1025101E103A
-1208 222422483BA3 10211031101E1039
-1209 222422483BA3 1027101E1039
-1210 222422483BA3 10211031101E103A
-1211 222422483BA3 1027101E103A
-1212 222422483BA4 10211031102C101E1039
-1213 222422483BA4 1029101E1039
-1214 222422483BA4 10211031102C101E103A
-1215 222422483BA4 1029101E103A
-1216 222422483BA4 10211031102C101E1039
-1217 222422483BA4 10291031102C101E1039
-1218 222422483BA4 10211031102C101E103A
-1219 222422483BA4 10291031102C101E103A
-1220 222422483BA8 1021102D101F1039
-1221 222422483BA8 1023101F1039
-1222 222422483BA8 1021102D101F103A
-1223 222422483BA8 1023101F103A
-1224 222422483BA9 1021102F101F1039
-1225 222422483BA9 1025101F1039
-1226 222422483BA9 1021102F101F103A
-1227 222422483BA9 1025101F103A
-1228 222422483BAA 10211031101F1039
-1229 222422483BAA 1027101F1039
-1230 222422483BAA 10211031101F103A
-1231 222422483BAA 1027101F103A
-1232 222422483BAB 10211031102C101F1039
-1233 222422483BAB 1029101F1039
-1234 222422483BAB 10211031102C101F103A
-1235 222422483BAB 1029101F103A
-1236 222422483BAB 10211031102C101F1039
-1237 222422483BAB 10291031102C101F1039
-1238 222422483BAB 10211031102C101F103A
-1239 222422483BAB 10291031102C101F103A
-1240 --- Contractions
-1241 22483AD221CD22483BBD 1031102C1000103A1000103B
-1242 22483AD221CD22483BBD 1031102C1000103A103B
-1243 22483B5921F822483B63 1014103A1014102F1015103A
-1244 22483B5921F822483B63 1014103A102F1015103A
-1245 --- Great Sa
-1246 22483BA32216 1031101E1039101E
-1247 22483BA32216 1031103F
-1248 22483BA12216 102D101E1039101E
-1249 22483BA12216 102D103F
-1250 22483BA22216 102F101E1039101E
-1251 22483BA22216 102F103F
-1252 222422483BA12216 1021102D101E1039101E
-1253 222422483BA12216 1023103F
-1254 222422483BA22216 1021102F101E1039101E
-1255 222422483BA22216 1025103F
-1256 22483B9F2216 101E1039101E
-1257 22483B9F2216 103F
-1258 --- Symbols - collate as long form
-1259 21F822483BC222483AD3 1014103E102D102F1000103A
-1260 21F822483BC222483AD3 104C
-1261 220922483BC0224222593ACB 101B103D10311037
-1262 220922483BC0224222593ACB 104D
-1263 220D22483B1322593ACC21CD22483AEE22593ACC 101C100A103A103810001031102C1004103A1038
-1264 220D22483B1322593ACC21CD22483AEE22593ACC 104E1004103A1038
-1265 22242236 1021102D
-1266 22242236 104F
-1267 --- Short Forms may need to be added here
-1268 220D22483ACD22072232 101C1000103A101A102C
-1269 220D22483ACD22072232 101C1000103A103B102C
-1270 221622052238 101E1019102E
-1271 221622052238 101E10391019102E
-1272 21F3220522483AE922593ACC 101110191004103A1038
-1273 21F3220522483AE922593ACC 1011103910191004103A1038
-1274 220D22483ACD220422483ACD 101C1000103A10181000103A
-1275 220D22483ACD220422483ACD 101C103910181000103A
-DROP TABLE t1;
-#
-# END of ctype_myanmar.inc
-#
-SET collation_connection=ucs2_myanmar_ci;
-#
-# Start of ctype_myanmar.inc
-#
-SELECT @@collation_connection;
-@@collation_connection
-ucs2_myanmar_ci
-CREATE TABLE t1 AS SELECT 100000 AS id, REPEAT(' ', 64) AS s1 LIMIT 0;
-SELECT COLLATION(s1) FROM t1;
-COLLATION(s1)
-DELETE FROM t1;
-ALTER TABLE t1 MODIFY id INT NOT NULL AUTO_INCREMENT PRIMARY KEY;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `s1` varchar(64) CHARACTER SET ucs2 COLLATE ucs2_myanmar_ci DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (s1) VALUES
-(_ucs2 0x108C),
-(_ucs2 0x1037),
-(_ucs2 0x1038),
-(_ucs2 0x10371038),
-('--- Vowels'),
-(_ucs2 0x102C),
-(_ucs2 0x102B),
-(_ucs2 0x1032),
-(_ucs2 0x1031102C),
-(_ucs2 0x1031102B),
-(_ucs2 0x1031102C103A),
-(_ucs2 0x1031102B103A),
-(_ucs2 0x1034),
-(_ucs2 0x1036),
-(_ucs2 0x102D102F),
-('--- Vowels with finals'),
-(_ucs2 0x10001039),
-(_ucs2 0x1000103A),
-(_ucs2 0x102C10001039),
-(_ucs2 0x102C1000103A),
-(_ucs2 0x102B10001039),
-(_ucs2 0x102B1000103A),
-(_ucs2 0x102D10001039),
-(_ucs2 0x102D1000103A),
-(_ucs2 0x102F10001039),
-(_ucs2 0x102F1000103A),
-(_ucs2 0x103110001039),
-(_ucs2 0x10311000103A),
-(_ucs2 0x1031102C10001039),
-(_ucs2 0x1031102C1000103A),
-(_ucs2 0x1031102B10001039),
-(_ucs2 0x1031102B1000103A),
-(_ucs2 0x102D102F10001039),
-(_ucs2 0x102D102F1000103A),
-(_ucs2 0x10011039),
-(_ucs2 0x1001103A),
-(_ucs2 0x102C10011039),
-(_ucs2 0x102C1001103A),
-(_ucs2 0x102B10011039),
-(_ucs2 0x102B1001103A),
-(_ucs2 0x102D10011039),
-(_ucs2 0x102D1001103A),
-(_ucs2 0x102F10011039),
-(_ucs2 0x102F1001103A),
-(_ucs2 0x103110011039),
-(_ucs2 0x10311001103A),
-(_ucs2 0x1031102C10011039),
-(_ucs2 0x1031102C1001103A),
-(_ucs2 0x1031102B10011039),
-(_ucs2 0x1031102B1001103A),
-(_ucs2 0x102D102F10011039),
-(_ucs2 0x102D102F1001103A),
-(_ucs2 0x10021039),
-(_ucs2 0x1002103A),
-(_ucs2 0x102C10021039),
-(_ucs2 0x102C1002103A),
-(_ucs2 0x102B10021039),
-(_ucs2 0x102B1002103A),
-(_ucs2 0x102D10021039),
-(_ucs2 0x102D1002103A),
-(_ucs2 0x102F10021039),
-(_ucs2 0x102F1002103A),
-(_ucs2 0x103110021039),
-(_ucs2 0x10311002103A),
-(_ucs2 0x1031102C10021039),
-(_ucs2 0x1031102C1002103A),
-(_ucs2 0x1031102B10021039),
-(_ucs2 0x1031102B1002103A),
-(_ucs2 0x102D102F10021039),
-(_ucs2 0x102D102F1002103A),
-(_ucs2 0x10031039),
-(_ucs2 0x1003103A),
-(_ucs2 0x102C10031039),
-(_ucs2 0x102C1003103A),
-(_ucs2 0x102B10031039),
-(_ucs2 0x102B1003103A),
-(_ucs2 0x102D10031039),
-(_ucs2 0x102D1003103A),
-(_ucs2 0x102F10031039),
-(_ucs2 0x102F1003103A),
-(_ucs2 0x103110031039),
-(_ucs2 0x10311003103A),
-(_ucs2 0x1031102C10031039),
-(_ucs2 0x1031102C1003103A),
-(_ucs2 0x1031102B10031039),
-(_ucs2 0x1031102B1003103A),
-(_ucs2 0x102D102F10031039),
-(_ucs2 0x102D102F1003103A),
-(_ucs2 0x1004103A1039),
-(_ucs2 0x1004103A),
-(_ucs2 0x102C1004103A1039),
-(_ucs2 0x102C1004103A),
-(_ucs2 0x102B1004103A1039),
-(_ucs2 0x102B1004103A),
-(_ucs2 0x102D1004103A1039),
-(_ucs2 0x102D1004103A),
-(_ucs2 0x102F1004103A1039),
-(_ucs2 0x102F1004103A),
-(_ucs2 0x10311004103A1039),
-(_ucs2 0x10311004103A),
-(_ucs2 0x1031102C1004103A1039),
-(_ucs2 0x1031102C1004103A),
-(_ucs2 0x1031102B1004103A1039),
-(_ucs2 0x1031102B1004103A),
-(_ucs2 0x102D102F1004103A1039),
-(_ucs2 0x102D102F1004103A),
-(_ucs2 0x10051039),
-(_ucs2 0x1005103A),
-(_ucs2 0x102C10051039),
-(_ucs2 0x102C1005103A),
-(_ucs2 0x102B10051039),
-(_ucs2 0x102B1005103A),
-(_ucs2 0x102D10051039),
-(_ucs2 0x102D1005103A),
-(_ucs2 0x102F10051039),
-(_ucs2 0x102F1005103A),
-(_ucs2 0x103110051039),
-(_ucs2 0x10311005103A),
-(_ucs2 0x1031102C10051039),
-(_ucs2 0x1031102C1005103A),
-(_ucs2 0x1031102B10051039),
-(_ucs2 0x1031102B1005103A),
-(_ucs2 0x102D102F10051039),
-(_ucs2 0x102D102F1005103A),
-(_ucs2 0x10061039),
-(_ucs2 0x1006103A),
-(_ucs2 0x102C10061039),
-(_ucs2 0x102C1006103A),
-(_ucs2 0x102B10061039),
-(_ucs2 0x102B1006103A),
-(_ucs2 0x102D10061039),
-(_ucs2 0x102D1006103A),
-(_ucs2 0x102F10061039),
-(_ucs2 0x102F1006103A),
-(_ucs2 0x103110061039),
-(_ucs2 0x10311006103A),
-(_ucs2 0x1031102C10061039),
-(_ucs2 0x1031102C1006103A),
-(_ucs2 0x1031102B10061039),
-(_ucs2 0x1031102B1006103A),
-(_ucs2 0x102D102F10061039),
-(_ucs2 0x102D102F1006103A),
-(_ucs2 0x10071039),
-(_ucs2 0x1007103A),
-(_ucs2 0x102C10071039),
-(_ucs2 0x102C1007103A),
-(_ucs2 0x102B10071039),
-(_ucs2 0x102B1007103A),
-(_ucs2 0x102D10071039),
-(_ucs2 0x102D1007103A),
-(_ucs2 0x102F10071039),
-(_ucs2 0x102F1007103A),
-(_ucs2 0x103110071039),
-(_ucs2 0x10311007103A),
-(_ucs2 0x1031102C10071039),
-(_ucs2 0x1031102C1007103A),
-(_ucs2 0x1031102B10071039),
-(_ucs2 0x1031102B1007103A),
-(_ucs2 0x102D102F10071039),
-(_ucs2 0x102D102F1007103A),
-(_ucs2 0x1008103A),
-(_ucs2 0x102C1008103A),
-(_ucs2 0x102B1008103A),
-(_ucs2 0x102D1008103A),
-(_ucs2 0x102F1008103A),
-(_ucs2 0x10311008103A),
-(_ucs2 0x1031102C1008103A),
-(_ucs2 0x1031102B1008103A),
-(_ucs2 0x102D102F1008103A),
-(_ucs2 0x10091039),
-(_ucs2 0x1009103A),
-(_ucs2 0x102C10091039),
-(_ucs2 0x102C1009103A),
-(_ucs2 0x102B10091039),
-(_ucs2 0x102B1009103A),
-(_ucs2 0x102D10091039),
-(_ucs2 0x102D1009103A),
-(_ucs2 0x102F10091039),
-(_ucs2 0x102F1009103A),
-(_ucs2 0x103110091039),
-(_ucs2 0x10311009103A),
-(_ucs2 0x1031102C10091039),
-(_ucs2 0x1031102C1009103A),
-(_ucs2 0x1031102B10091039),
-(_ucs2 0x1031102B1009103A),
-(_ucs2 0x102D102F10091039),
-(_ucs2 0x102D102F1009103A),
-(_ucs2 0x100A1039),
-(_ucs2 0x100A103A),
-(_ucs2 0x102C100A1039),
-(_ucs2 0x102C100A103A),
-(_ucs2 0x102B100A1039),
-(_ucs2 0x102B100A103A),
-(_ucs2 0x102D100A1039),
-(_ucs2 0x102D100A103A),
-(_ucs2 0x102F100A1039),
-(_ucs2 0x102F100A103A),
-(_ucs2 0x1031100A1039),
-(_ucs2 0x1031100A103A),
-(_ucs2 0x1031102C100A1039),
-(_ucs2 0x1031102C100A103A),
-(_ucs2 0x1031102B100A1039),
-(_ucs2 0x1031102B100A103A),
-(_ucs2 0x102D102F100A1039),
-(_ucs2 0x102D102F100A103A),
-(_ucs2 0x100B1039),
-(_ucs2 0x100B103A),
-(_ucs2 0x102C100B1039),
-(_ucs2 0x102C100B103A),
-(_ucs2 0x102B100B1039),
-(_ucs2 0x102B100B103A),
-(_ucs2 0x102D100B1039),
-(_ucs2 0x102D100B103A),
-(_ucs2 0x102F100B1039),
-(_ucs2 0x102F100B103A),
-(_ucs2 0x1031100B1039),
-(_ucs2 0x1031100B103A),
-(_ucs2 0x1031102C100B1039),
-(_ucs2 0x1031102C100B103A),
-(_ucs2 0x1031102B100B1039),
-(_ucs2 0x1031102B100B103A),
-(_ucs2 0x102D102F100B1039),
-(_ucs2 0x102D102F100B103A),
-(_ucs2 0x100C1039),
-(_ucs2 0x100C103A),
-(_ucs2 0x102C100C1039),
-(_ucs2 0x102C100C103A),
-(_ucs2 0x102B100C1039),
-(_ucs2 0x102B100C103A),
-(_ucs2 0x102D100C1039),
-(_ucs2 0x102D100C103A),
-(_ucs2 0x102F100C1039),
-(_ucs2 0x102F100C103A),
-(_ucs2 0x1031100C1039),
-(_ucs2 0x1031100C103A),
-(_ucs2 0x1031102C100C1039),
-(_ucs2 0x1031102C100C103A),
-(_ucs2 0x1031102B100C1039),
-(_ucs2 0x1031102B100C103A),
-(_ucs2 0x102D102F100C1039),
-(_ucs2 0x102D102F100C103A),
-(_ucs2 0x100D1039),
-(_ucs2 0x100D103A),
-(_ucs2 0x102C100D1039),
-(_ucs2 0x102C100D103A),
-(_ucs2 0x102B100D1039),
-(_ucs2 0x102B100D103A),
-(_ucs2 0x102D100D1039),
-(_ucs2 0x102D100D103A),
-(_ucs2 0x102F100D1039),
-(_ucs2 0x102F100D103A),
-(_ucs2 0x1031100D1039),
-(_ucs2 0x1031100D103A),
-(_ucs2 0x1031102C100D1039),
-(_ucs2 0x1031102C100D103A),
-(_ucs2 0x1031102B100D1039),
-(_ucs2 0x1031102B100D103A),
-(_ucs2 0x102D102F100D1039),
-(_ucs2 0x102D102F100D103A),
-(_ucs2 0x100E1039),
-(_ucs2 0x100E103A),
-(_ucs2 0x102C100E1039),
-(_ucs2 0x102C100E103A),
-(_ucs2 0x102B100E1039),
-(_ucs2 0x102B100E103A),
-(_ucs2 0x102D100E1039),
-(_ucs2 0x102D100E103A),
-(_ucs2 0x102F100E1039),
-(_ucs2 0x102F100E103A),
-(_ucs2 0x1031100E1039),
-(_ucs2 0x1031100E103A),
-(_ucs2 0x1031102C100E1039),
-(_ucs2 0x1031102C100E103A),
-(_ucs2 0x1031102B100E1039),
-(_ucs2 0x1031102B100E103A),
-(_ucs2 0x102D102F100E1039),
-(_ucs2 0x102D102F100E103A),
-(_ucs2 0x100F1039),
-(_ucs2 0x100F103A),
-(_ucs2 0x102C100F1039),
-(_ucs2 0x102C100F103A),
-(_ucs2 0x102B100F1039),
-(_ucs2 0x102B100F103A),
-(_ucs2 0x102D100F1039),
-(_ucs2 0x102D100F103A),
-(_ucs2 0x102F100F1039),
-(_ucs2 0x102F100F103A),
-(_ucs2 0x1031100F1039),
-(_ucs2 0x1031100F103A),
-(_ucs2 0x1031102C100F1039),
-(_ucs2 0x1031102C100F103A),
-(_ucs2 0x1031102B100F1039),
-(_ucs2 0x1031102B100F103A),
-(_ucs2 0x102D102F100F1039),
-(_ucs2 0x102D102F100F103A),
-(_ucs2 0x10101039),
-(_ucs2 0x1010103A),
-(_ucs2 0x102C10101039),
-(_ucs2 0x102C1010103A),
-(_ucs2 0x102B10101039),
-(_ucs2 0x102B1010103A),
-(_ucs2 0x102D10101039),
-(_ucs2 0x102D1010103A),
-(_ucs2 0x102F10101039),
-(_ucs2 0x102F1010103A),
-(_ucs2 0x103110101039),
-(_ucs2 0x10311010103A),
-(_ucs2 0x1031102C10101039),
-(_ucs2 0x1031102C1010103A),
-(_ucs2 0x1031102B10101039),
-(_ucs2 0x1031102B1010103A),
-(_ucs2 0x102D102F10101039),
-(_ucs2 0x102D102F1010103A),
-(_ucs2 0x10111039),
-(_ucs2 0x1011103A),
-(_ucs2 0x102C10111039),
-(_ucs2 0x102C1011103A),
-(_ucs2 0x102B10111039),
-(_ucs2 0x102B1011103A),
-(_ucs2 0x102D10111039),
-(_ucs2 0x102D1011103A),
-(_ucs2 0x102F10111039),
-(_ucs2 0x102F1011103A),
-(_ucs2 0x103110111039),
-(_ucs2 0x10311011103A),
-(_ucs2 0x1031102C10111039),
-(_ucs2 0x1031102C1011103A),
-(_ucs2 0x1031102B10111039),
-(_ucs2 0x1031102B1011103A),
-(_ucs2 0x102D102F10111039),
-(_ucs2 0x102D102F1011103A),
-(_ucs2 0x10121039),
-(_ucs2 0x1012103A),
-(_ucs2 0x102C10121039),
-(_ucs2 0x102C1012103A),
-(_ucs2 0x102B10121039),
-(_ucs2 0x102B1012103A),
-(_ucs2 0x102D10121039),
-(_ucs2 0x102D1012103A),
-(_ucs2 0x102F10121039),
-(_ucs2 0x102F1012103A),
-(_ucs2 0x103110121039),
-(_ucs2 0x10311012103A),
-(_ucs2 0x1031102C10121039),
-(_ucs2 0x1031102C1012103A),
-(_ucs2 0x1031102B10121039),
-(_ucs2 0x1031102B1012103A),
-(_ucs2 0x102D102F10121039),
-(_ucs2 0x102D102F1012103A),
-(_ucs2 0x10131039),
-(_ucs2 0x1013103A),
-(_ucs2 0x102C10131039),
-(_ucs2 0x102C1013103A),
-(_ucs2 0x102B10131039),
-(_ucs2 0x102B1013103A),
-(_ucs2 0x102D10131039),
-(_ucs2 0x102D1013103A),
-(_ucs2 0x102F10131039),
-(_ucs2 0x102F1013103A),
-(_ucs2 0x103110131039),
-(_ucs2 0x10311013103A),
-(_ucs2 0x1031102C10131039),
-(_ucs2 0x1031102C1013103A),
-(_ucs2 0x1031102B10131039),
-(_ucs2 0x1031102B1013103A),
-(_ucs2 0x102D102F10131039),
-(_ucs2 0x102D102F1013103A),
-(_ucs2 0x10141039),
-(_ucs2 0x1014103A),
-(_ucs2 0x102C10141039),
-(_ucs2 0x102C1014103A),
-(_ucs2 0x102B10141039),
-(_ucs2 0x102B1014103A),
-(_ucs2 0x102D10141039),
-(_ucs2 0x102D1014103A),
-(_ucs2 0x102F10141039),
-(_ucs2 0x102F1014103A),
-(_ucs2 0x103110141039),
-(_ucs2 0x10311014103A),
-(_ucs2 0x1031102C10141039),
-(_ucs2 0x1031102C1014103A),
-(_ucs2 0x1031102B10141039),
-(_ucs2 0x1031102B1014103A),
-(_ucs2 0x102D102F10141039),
-(_ucs2 0x102D102F1014103A),
-(_ucs2 0x10151039),
-(_ucs2 0x1015103A),
-(_ucs2 0x102C10151039),
-(_ucs2 0x102C1015103A),
-(_ucs2 0x102B10151039),
-(_ucs2 0x102B1015103A),
-(_ucs2 0x102D10151039),
-(_ucs2 0x102D1015103A),
-(_ucs2 0x102F10151039),
-(_ucs2 0x102F1015103A),
-(_ucs2 0x103110151039),
-(_ucs2 0x10311015103A),
-(_ucs2 0x1031102C10151039),
-(_ucs2 0x1031102C1015103A),
-(_ucs2 0x1031102B10151039),
-(_ucs2 0x1031102B1015103A),
-(_ucs2 0x102D102F10151039),
-(_ucs2 0x102D102F1015103A),
-(_ucs2 0x10161039),
-(_ucs2 0x1016103A),
-(_ucs2 0x102C10161039),
-(_ucs2 0x102C1016103A),
-(_ucs2 0x102B10161039),
-(_ucs2 0x102B1016103A),
-(_ucs2 0x102D10161039),
-(_ucs2 0x102D1016103A),
-(_ucs2 0x102F10161039),
-(_ucs2 0x102F1016103A),
-(_ucs2 0x103110161039),
-(_ucs2 0x10311016103A),
-(_ucs2 0x1031102C10161039),
-(_ucs2 0x1031102C1016103A),
-(_ucs2 0x1031102B10161039),
-(_ucs2 0x1031102B1016103A),
-(_ucs2 0x102D102F10161039),
-(_ucs2 0x102D102F1016103A),
-(_ucs2 0x10171039),
-(_ucs2 0x1017103A),
-(_ucs2 0x102C10171039),
-(_ucs2 0x102C1017103A),
-(_ucs2 0x102B10171039),
-(_ucs2 0x102B1017103A),
-(_ucs2 0x102D10171039),
-(_ucs2 0x102D1017103A),
-(_ucs2 0x102F10171039),
-(_ucs2 0x102F1017103A),
-(_ucs2 0x103110171039),
-(_ucs2 0x10311017103A),
-(_ucs2 0x1031102C10171039),
-(_ucs2 0x1031102C1017103A),
-(_ucs2 0x1031102B10171039),
-(_ucs2 0x1031102B1017103A),
-(_ucs2 0x102D102F10171039),
-(_ucs2 0x102D102F1017103A),
-(_ucs2 0x10181039),
-(_ucs2 0x1018103A),
-(_ucs2 0x102C10181039),
-(_ucs2 0x102C1018103A),
-(_ucs2 0x102B10181039),
-(_ucs2 0x102B1018103A),
-(_ucs2 0x102D10181039),
-(_ucs2 0x102D1018103A),
-(_ucs2 0x102F10181039),
-(_ucs2 0x102F1018103A),
-(_ucs2 0x103110181039),
-(_ucs2 0x10311018103A),
-(_ucs2 0x1031102C10181039),
-(_ucs2 0x1031102C1018103A),
-(_ucs2 0x1031102B10181039),
-(_ucs2 0x1031102B1018103A),
-(_ucs2 0x102D102F10181039),
-(_ucs2 0x102D102F1018103A),
-(_ucs2 0x10191039),
-(_ucs2 0x1019103A),
-(_ucs2 0x102C10191039),
-(_ucs2 0x102C1019103A),
-(_ucs2 0x102B10191039),
-(_ucs2 0x102B1019103A),
-(_ucs2 0x102D10191039),
-(_ucs2 0x102D1019103A),
-(_ucs2 0x102F10191039),
-(_ucs2 0x102F1019103A),
-(_ucs2 0x103110191039),
-(_ucs2 0x10311019103A),
-(_ucs2 0x1031102C10191039),
-(_ucs2 0x1031102C1019103A),
-(_ucs2 0x1031102B10191039),
-(_ucs2 0x1031102B1019103A),
-(_ucs2 0x102D102F10191039),
-(_ucs2 0x102D102F1019103A),
-(_ucs2 0x101A1039),
-(_ucs2 0x101A103A),
-(_ucs2 0x102C101A1039),
-(_ucs2 0x102C101A103A),
-(_ucs2 0x102B101A1039),
-(_ucs2 0x102B101A103A),
-(_ucs2 0x102D101A1039),
-(_ucs2 0x102D101A103A),
-(_ucs2 0x102F101A1039),
-(_ucs2 0x102F101A103A),
-(_ucs2 0x1031101A1039),
-(_ucs2 0x1031101A103A),
-(_ucs2 0x1031102C101A1039),
-(_ucs2 0x1031102C101A103A),
-(_ucs2 0x1031102B101A1039),
-(_ucs2 0x1031102B101A103A),
-(_ucs2 0x102D102F101A1039),
-(_ucs2 0x102D102F101A103A),
-(_ucs2 0x101B1039),
-(_ucs2 0x101B103A),
-(_ucs2 0x102C101B1039),
-(_ucs2 0x102C101B103A),
-(_ucs2 0x102B101B1039),
-(_ucs2 0x102B101B103A),
-(_ucs2 0x102D101B1039),
-(_ucs2 0x102D101B103A),
-(_ucs2 0x102F101B1039),
-(_ucs2 0x102F101B103A),
-(_ucs2 0x1031101B1039),
-(_ucs2 0x1031101B103A),
-(_ucs2 0x1031102C101B1039),
-(_ucs2 0x1031102C101B103A),
-(_ucs2 0x1031102B101B1039),
-(_ucs2 0x1031102B101B103A),
-(_ucs2 0x102D102F101B1039),
-(_ucs2 0x102D102F101B103A),
-(_ucs2 0x101C1039),
-(_ucs2 0x101C103A),
-(_ucs2 0x102C101C1039),
-(_ucs2 0x102C101C103A),
-(_ucs2 0x102B101C1039),
-(_ucs2 0x102B101C103A),
-(_ucs2 0x102D101C1039),
-(_ucs2 0x102D101C103A),
-(_ucs2 0x102F101C1039),
-(_ucs2 0x102F101C103A),
-(_ucs2 0x1031101C1039),
-(_ucs2 0x1031101C103A),
-(_ucs2 0x1031102C101C1039),
-(_ucs2 0x1031102C101C103A),
-(_ucs2 0x1031102B101C1039),
-(_ucs2 0x1031102B101C103A),
-(_ucs2 0x102D102F101C1039),
-(_ucs2 0x102D102F101C103A),
-(_ucs2 0x101D103A),
-(_ucs2 0x102C101D103A),
-(_ucs2 0x102B101D103A),
-(_ucs2 0x102D101D103A),
-(_ucs2 0x102F101D103A),
-(_ucs2 0x1031101D103A),
-(_ucs2 0x1031102C101D103A),
-(_ucs2 0x1031102B101D103A),
-(_ucs2 0x102D102F101D103A),
-(_ucs2 0x101E1039),
-(_ucs2 0x101E103A),
-(_ucs2 0x102C101E1039),
-(_ucs2 0x102C101E103A),
-(_ucs2 0x102B101E1039),
-(_ucs2 0x102B101E103A),
-(_ucs2 0x102D101E1039),
-(_ucs2 0x102D101E103A),
-(_ucs2 0x102F101E1039),
-(_ucs2 0x102F101E103A),
-(_ucs2 0x1031101E1039),
-(_ucs2 0x1031101E103A),
-(_ucs2 0x1031102C101E1039),
-(_ucs2 0x1031102C101E103A),
-(_ucs2 0x1031102B101E1039),
-(_ucs2 0x1031102B101E103A),
-(_ucs2 0x102D102F101E1039),
-(_ucs2 0x102D102F101E103A),
-(_ucs2 0x101F1039),
-(_ucs2 0x101F103A),
-(_ucs2 0x102C101F1039),
-(_ucs2 0x102C101F103A),
-(_ucs2 0x102B101F1039),
-(_ucs2 0x102B101F103A),
-(_ucs2 0x102D101F1039),
-(_ucs2 0x102D101F103A),
-(_ucs2 0x102F101F1039),
-(_ucs2 0x102F101F103A),
-(_ucs2 0x1031101F1039),
-(_ucs2 0x1031101F103A),
-(_ucs2 0x1031102C101F1039),
-(_ucs2 0x1031102C101F103A),
-(_ucs2 0x1031102B101F1039),
-(_ucs2 0x1031102B101F103A),
-(_ucs2 0x102D102F101F1039),
-(_ucs2 0x102D102F101F103A),
-(_ucs2 0x1020103A),
-(_ucs2 0x102C1020103A),
-(_ucs2 0x102B1020103A),
-(_ucs2 0x102D1020103A),
-(_ucs2 0x102F1020103A),
-(_ucs2 0x10311020103A),
-(_ucs2 0x1031102C1020103A),
-(_ucs2 0x1031102B1020103A),
-(_ucs2 0x102D102F1020103A),
-(_ucs2 0x1021103A),
-(_ucs2 0x102C1021103A),
-(_ucs2 0x102B1021103A),
-(_ucs2 0x102D1021103A),
-(_ucs2 0x102F1021103A),
-(_ucs2 0x10311021103A),
-(_ucs2 0x1031102C1021103A),
-(_ucs2 0x1031102B1021103A),
-(_ucs2 0x102D102F1021103A),
-('--- Medials'),
-(_ucs2 0x105E),
-(_ucs2 0x105F),
-(_ucs2 0x103B),
-(_ucs2 0x103C),
-(_ucs2 0x1060),
-(_ucs2 0x103D),
-(_ucs2 0x1082),
-(_ucs2 0x103E),
-(_ucs2 0x103B103D),
-(_ucs2 0x103C103D),
-(_ucs2 0x103B103E),
-(_ucs2 0x103C103E),
-(_ucs2 0x103D103E),
-(_ucs2 0x103B103D103E),
-(_ucs2 0x103C103D103E),
-('--- Independent vowels'),
-(_ucs2 0x1021102D),
-(_ucs2 0x1023),
-(_ucs2 0x1021102E),
-(_ucs2 0x1024),
-(_ucs2 0x1021102F),
-(_ucs2 0x1025),
-(_ucs2 0x10211030),
-(_ucs2 0x1026),
-(_ucs2 0x10211031),
-(_ucs2 0x1027),
-(_ucs2 0x1028),
-(_ucs2 0x10211031102C),
-(_ucs2 0x1029),
-(_ucs2 0x10211031102C103A),
-(_ucs2 0x102A),
-(_ucs2 0x102D1019103A),
-(_ucs2 0x102D1036),
-(_ucs2 0x102D1019103A1037),
-(_ucs2 0x102D10361037),
-(_ucs2 0x102D1019103A1038),
-(_ucs2 0x102D10361038),
-(_ucs2 0x102F1019103A),
-(_ucs2 0x102F1036),
-(_ucs2 0x102F1019103A1037),
-(_ucs2 0x102F10361037),
-(_ucs2 0x102F1019103A1038),
-(_ucs2 0x102F10361038),
-(_ucs2 0x1021102F1036),
-(_ucs2 0x1025102F1036),
-('--- Independent vowels with finals'),
-(_ucs2 0x1021102D10001039),
-(_ucs2 0x102310001039),
-(_ucs2 0x1021102D1000103A),
-(_ucs2 0x10231000103A),
-(_ucs2 0x1021102F10001039),
-(_ucs2 0x102510001039),
-(_ucs2 0x1021102F1000103A),
-(_ucs2 0x10251000103A),
-(_ucs2 0x1021103110001039),
-(_ucs2 0x102710001039),
-(_ucs2 0x102110311000103A),
-(_ucs2 0x10271000103A),
-(_ucs2 0x10211031102C10001039),
-(_ucs2 0x102910001039),
-(_ucs2 0x10211031102C1000103A),
-(_ucs2 0x10291000103A),
-(_ucs2 0x10211031102C10001039),
-(_ucs2 0x10291031102C10001039),
-(_ucs2 0x10211031102C1000103A),
-(_ucs2 0x10291031102C1000103A),
-(_ucs2 0x1021102D10011039),
-(_ucs2 0x102310011039),
-(_ucs2 0x1021102D1001103A),
-(_ucs2 0x10231001103A),
-(_ucs2 0x1021102F10011039),
-(_ucs2 0x102510011039),
-(_ucs2 0x1021102F1001103A),
-(_ucs2 0x10251001103A),
-(_ucs2 0x1021103110011039),
-(_ucs2 0x102710011039),
-(_ucs2 0x102110311001103A),
-(_ucs2 0x10271001103A),
-(_ucs2 0x10211031102C10011039),
-(_ucs2 0x102910011039),
-(_ucs2 0x10211031102C1001103A),
-(_ucs2 0x10291001103A),
-(_ucs2 0x10211031102C10011039),
-(_ucs2 0x10291031102C10011039),
-(_ucs2 0x10211031102C1001103A),
-(_ucs2 0x10291031102C1001103A),
-(_ucs2 0x1021102D10021039),
-(_ucs2 0x102310021039),
-(_ucs2 0x1021102D1002103A),
-(_ucs2 0x10231002103A),
-(_ucs2 0x1021102F10021039),
-(_ucs2 0x102510021039),
-(_ucs2 0x1021102F1002103A),
-(_ucs2 0x10251002103A),
-(_ucs2 0x1021103110021039),
-(_ucs2 0x102710021039),
-(_ucs2 0x102110311002103A),
-(_ucs2 0x10271002103A),
-(_ucs2 0x10211031102C10021039),
-(_ucs2 0x102910021039),
-(_ucs2 0x10211031102C1002103A),
-(_ucs2 0x10291002103A),
-(_ucs2 0x10211031102C10021039),
-(_ucs2 0x10291031102C10021039),
-(_ucs2 0x10211031102C1002103A),
-(_ucs2 0x10291031102C1002103A),
-(_ucs2 0x1021102D10031039),
-(_ucs2 0x102310031039),
-(_ucs2 0x1021102D1003103A),
-(_ucs2 0x10231003103A),
-(_ucs2 0x1021102F10031039),
-(_ucs2 0x102510031039),
-(_ucs2 0x1021102F1003103A),
-(_ucs2 0x10251003103A),
-(_ucs2 0x1021103110031039),
-(_ucs2 0x102710031039),
-(_ucs2 0x102110311003103A),
-(_ucs2 0x10271003103A),
-(_ucs2 0x10211031102C10031039),
-(_ucs2 0x102910031039),
-(_ucs2 0x10211031102C1003103A),
-(_ucs2 0x10291003103A),
-(_ucs2 0x10211031102C10031039),
-(_ucs2 0x10291031102C10031039),
-(_ucs2 0x10211031102C1003103A),
-(_ucs2 0x10291031102C1003103A),
-(_ucs2 0x1021102D10041039),
-(_ucs2 0x102310041039),
-(_ucs2 0x1021102D1004103A),
-(_ucs2 0x10231004103A),
-(_ucs2 0x1021102F10041039),
-(_ucs2 0x102510041039),
-(_ucs2 0x1021102F1004103A),
-(_ucs2 0x10251004103A),
-(_ucs2 0x1021103110041039),
-(_ucs2 0x102710041039),
-(_ucs2 0x102110311004103A),
-(_ucs2 0x10271004103A),
-(_ucs2 0x10211031102C10041039),
-(_ucs2 0x102910041039),
-(_ucs2 0x10211031102C1004103A),
-(_ucs2 0x10291004103A),
-(_ucs2 0x10211031102C10041039),
-(_ucs2 0x10291031102C10041039),
-(_ucs2 0x10211031102C1004103A),
-(_ucs2 0x10291031102C1004103A),
-(_ucs2 0x1021102D10051039),
-(_ucs2 0x102310051039),
-(_ucs2 0x1021102D1005103A),
-(_ucs2 0x10231005103A),
-(_ucs2 0x1021102F10051039),
-(_ucs2 0x102510051039),
-(_ucs2 0x1021102F1005103A),
-(_ucs2 0x10251005103A),
-(_ucs2 0x1021103110051039),
-(_ucs2 0x102710051039),
-(_ucs2 0x102110311005103A),
-(_ucs2 0x10271005103A),
-(_ucs2 0x10211031102C10051039),
-(_ucs2 0x102910051039),
-(_ucs2 0x10211031102C1005103A),
-(_ucs2 0x10291005103A),
-(_ucs2 0x10211031102C10051039),
-(_ucs2 0x10291031102C10051039),
-(_ucs2 0x10211031102C1005103A),
-(_ucs2 0x10291031102C1005103A),
-(_ucs2 0x1021102D10061039),
-(_ucs2 0x102310061039),
-(_ucs2 0x1021102D1006103A),
-(_ucs2 0x10231006103A),
-(_ucs2 0x1021102F10061039),
-(_ucs2 0x102510061039),
-(_ucs2 0x1021102F1006103A),
-(_ucs2 0x10251006103A),
-(_ucs2 0x1021103110061039),
-(_ucs2 0x102710061039),
-(_ucs2 0x102110311006103A),
-(_ucs2 0x10271006103A),
-(_ucs2 0x10211031102C10061039),
-(_ucs2 0x102910061039),
-(_ucs2 0x10211031102C1006103A),
-(_ucs2 0x10291006103A),
-(_ucs2 0x10211031102C10061039),
-(_ucs2 0x10291031102C10061039),
-(_ucs2 0x10211031102C1006103A),
-(_ucs2 0x10291031102C1006103A),
-(_ucs2 0x1021102D10071039),
-(_ucs2 0x102310071039),
-(_ucs2 0x1021102D1007103A),
-(_ucs2 0x10231007103A),
-(_ucs2 0x1021102F10071039),
-(_ucs2 0x102510071039),
-(_ucs2 0x1021102F1007103A),
-(_ucs2 0x10251007103A),
-(_ucs2 0x1021103110071039),
-(_ucs2 0x102710071039),
-(_ucs2 0x102110311007103A),
-(_ucs2 0x10271007103A),
-(_ucs2 0x10211031102C10071039),
-(_ucs2 0x102910071039),
-(_ucs2 0x10211031102C1007103A),
-(_ucs2 0x10291007103A),
-(_ucs2 0x10211031102C10071039),
-(_ucs2 0x10291031102C10071039),
-(_ucs2 0x10211031102C1007103A),
-(_ucs2 0x10291031102C1007103A),
-(_ucs2 0x1021102D10091039),
-(_ucs2 0x102310091039),
-(_ucs2 0x1021102D1009103A),
-(_ucs2 0x10231009103A),
-(_ucs2 0x1021102F10091039),
-(_ucs2 0x102510091039),
-(_ucs2 0x1021102F1009103A),
-(_ucs2 0x10251009103A),
-(_ucs2 0x1021103110091039),
-(_ucs2 0x102710091039),
-(_ucs2 0x102110311009103A),
-(_ucs2 0x10271009103A),
-(_ucs2 0x10211031102C10091039),
-(_ucs2 0x102910091039),
-(_ucs2 0x10211031102C1009103A),
-(_ucs2 0x10291009103A),
-(_ucs2 0x10211031102C10091039),
-(_ucs2 0x10291031102C10091039),
-(_ucs2 0x10211031102C1009103A),
-(_ucs2 0x10291031102C1009103A),
-(_ucs2 0x1021102D100A1039),
-(_ucs2 0x1023100A1039),
-(_ucs2 0x1021102D100A103A),
-(_ucs2 0x1023100A103A),
-(_ucs2 0x1021102F100A1039),
-(_ucs2 0x1025100A1039),
-(_ucs2 0x1021102F100A103A),
-(_ucs2 0x1025100A103A),
-(_ucs2 0x10211031100A1039),
-(_ucs2 0x1027100A1039),
-(_ucs2 0x10211031100A103A),
-(_ucs2 0x1027100A103A),
-(_ucs2 0x10211031102C100A1039),
-(_ucs2 0x1029100A1039),
-(_ucs2 0x10211031102C100A103A),
-(_ucs2 0x1029100A103A),
-(_ucs2 0x10211031102C100A1039),
-(_ucs2 0x10291031102C100A1039),
-(_ucs2 0x10211031102C100A103A),
-(_ucs2 0x10291031102C100A103A),
-(_ucs2 0x1021102D100B1039),
-(_ucs2 0x1023100B1039),
-(_ucs2 0x1021102D100B103A),
-(_ucs2 0x1023100B103A),
-(_ucs2 0x1021102F100B1039),
-(_ucs2 0x1025100B1039),
-(_ucs2 0x1021102F100B103A),
-(_ucs2 0x1025100B103A),
-(_ucs2 0x10211031100B1039),
-(_ucs2 0x1027100B1039),
-(_ucs2 0x10211031100B103A),
-(_ucs2 0x1027100B103A),
-(_ucs2 0x10211031102C100B1039),
-(_ucs2 0x1029100B1039),
-(_ucs2 0x10211031102C100B103A),
-(_ucs2 0x1029100B103A),
-(_ucs2 0x10211031102C100B1039),
-(_ucs2 0x10291031102C100B1039),
-(_ucs2 0x10211031102C100B103A),
-(_ucs2 0x10291031102C100B103A),
-(_ucs2 0x1021102D100C1039),
-(_ucs2 0x1023100C1039),
-(_ucs2 0x1021102D100C103A),
-(_ucs2 0x1023100C103A),
-(_ucs2 0x1021102F100C1039),
-(_ucs2 0x1025100C1039),
-(_ucs2 0x1021102F100C103A),
-(_ucs2 0x1025100C103A),
-(_ucs2 0x10211031100C1039),
-(_ucs2 0x1027100C1039),
-(_ucs2 0x10211031100C103A),
-(_ucs2 0x1027100C103A),
-(_ucs2 0x10211031102C100C1039),
-(_ucs2 0x1029100C1039),
-(_ucs2 0x10211031102C100C103A),
-(_ucs2 0x1029100C103A),
-(_ucs2 0x10211031102C100C1039),
-(_ucs2 0x10291031102C100C1039),
-(_ucs2 0x10211031102C100C103A),
-(_ucs2 0x10291031102C100C103A),
-(_ucs2 0x1021102D100D1039),
-(_ucs2 0x1023100D1039),
-(_ucs2 0x1021102D100D103A),
-(_ucs2 0x1023100D103A),
-(_ucs2 0x1021102F100D1039),
-(_ucs2 0x1025100D1039),
-(_ucs2 0x1021102F100D103A),
-(_ucs2 0x1025100D103A),
-(_ucs2 0x10211031100D1039),
-(_ucs2 0x1027100D1039),
-(_ucs2 0x10211031100D103A),
-(_ucs2 0x1027100D103A),
-(_ucs2 0x10211031102C100D1039),
-(_ucs2 0x1029100D1039),
-(_ucs2 0x10211031102C100D103A),
-(_ucs2 0x1029100D103A),
-(_ucs2 0x10211031102C100D1039),
-(_ucs2 0x10291031102C100D1039),
-(_ucs2 0x10211031102C100D103A),
-(_ucs2 0x10291031102C100D103A),
-(_ucs2 0x1021102D100E1039),
-(_ucs2 0x1023100E1039),
-(_ucs2 0x1021102D100E103A),
-(_ucs2 0x1023100E103A),
-(_ucs2 0x1021102F100E1039),
-(_ucs2 0x1025100E1039),
-(_ucs2 0x1021102F100E103A),
-(_ucs2 0x1025100E103A),
-(_ucs2 0x10211031100E1039),
-(_ucs2 0x1027100E1039),
-(_ucs2 0x10211031100E103A),
-(_ucs2 0x1027100E103A),
-(_ucs2 0x10211031102C100E1039),
-(_ucs2 0x1029100E1039),
-(_ucs2 0x10211031102C100E103A),
-(_ucs2 0x1029100E103A),
-(_ucs2 0x10211031102C100E1039),
-(_ucs2 0x10291031102C100E1039),
-(_ucs2 0x10211031102C100E103A),
-(_ucs2 0x10291031102C100E103A),
-(_ucs2 0x1021102D100F1039),
-(_ucs2 0x1023100F1039),
-(_ucs2 0x1021102D100F103A),
-(_ucs2 0x1023100F103A),
-(_ucs2 0x1021102F100F1039),
-(_ucs2 0x1025100F1039),
-(_ucs2 0x1021102F100F103A),
-(_ucs2 0x1025100F103A),
-(_ucs2 0x10211031100F1039),
-(_ucs2 0x1027100F1039),
-(_ucs2 0x10211031100F103A),
-(_ucs2 0x1027100F103A),
-(_ucs2 0x10211031102C100F1039),
-(_ucs2 0x1029100F1039),
-(_ucs2 0x10211031102C100F103A),
-(_ucs2 0x1029100F103A),
-(_ucs2 0x10211031102C100F1039),
-(_ucs2 0x10291031102C100F1039),
-(_ucs2 0x10211031102C100F103A),
-(_ucs2 0x10291031102C100F103A),
-(_ucs2 0x1021102D10101039),
-(_ucs2 0x102310101039),
-(_ucs2 0x1021102D1010103A),
-(_ucs2 0x10231010103A),
-(_ucs2 0x1021102F10101039),
-(_ucs2 0x102510101039),
-(_ucs2 0x1021102F1010103A),
-(_ucs2 0x10251010103A),
-(_ucs2 0x1021103110101039),
-(_ucs2 0x102710101039),
-(_ucs2 0x102110311010103A),
-(_ucs2 0x10271010103A),
-(_ucs2 0x10211031102C10101039),
-(_ucs2 0x102910101039),
-(_ucs2 0x10211031102C1010103A),
-(_ucs2 0x10291010103A),
-(_ucs2 0x10211031102C10101039),
-(_ucs2 0x10291031102C10101039),
-(_ucs2 0x10211031102C1010103A),
-(_ucs2 0x10291031102C1010103A),
-(_ucs2 0x1021102D10111039),
-(_ucs2 0x102310111039),
-(_ucs2 0x1021102D1011103A),
-(_ucs2 0x10231011103A),
-(_ucs2 0x1021102F10111039),
-(_ucs2 0x102510111039),
-(_ucs2 0x1021102F1011103A),
-(_ucs2 0x10251011103A),
-(_ucs2 0x1021103110111039),
-(_ucs2 0x102710111039),
-(_ucs2 0x102110311011103A),
-(_ucs2 0x10271011103A),
-(_ucs2 0x10211031102C10111039),
-(_ucs2 0x102910111039),
-(_ucs2 0x10211031102C1011103A),
-(_ucs2 0x10291011103A),
-(_ucs2 0x10211031102C10111039),
-(_ucs2 0x10291031102C10111039),
-(_ucs2 0x10211031102C1011103A),
-(_ucs2 0x10291031102C1011103A),
-(_ucs2 0x1021102D10121039),
-(_ucs2 0x102310121039),
-(_ucs2 0x1021102D1012103A),
-(_ucs2 0x10231012103A),
-(_ucs2 0x1021102F10121039),
-(_ucs2 0x102510121039),
-(_ucs2 0x1021102F1012103A),
-(_ucs2 0x10251012103A),
-(_ucs2 0x1021103110121039),
-(_ucs2 0x102710121039),
-(_ucs2 0x102110311012103A),
-(_ucs2 0x10271012103A),
-(_ucs2 0x10211031102C10121039),
-(_ucs2 0x102910121039),
-(_ucs2 0x10211031102C1012103A),
-(_ucs2 0x10291012103A),
-(_ucs2 0x10211031102C10121039),
-(_ucs2 0x10291031102C10121039),
-(_ucs2 0x10211031102C1012103A),
-(_ucs2 0x10291031102C1012103A),
-(_ucs2 0x1021102D10131039),
-(_ucs2 0x102310131039),
-(_ucs2 0x1021102D1013103A),
-(_ucs2 0x10231013103A),
-(_ucs2 0x1021102F10131039),
-(_ucs2 0x102510131039),
-(_ucs2 0x1021102F1013103A),
-(_ucs2 0x10251013103A),
-(_ucs2 0x1021103110131039),
-(_ucs2 0x102710131039),
-(_ucs2 0x102110311013103A),
-(_ucs2 0x10271013103A),
-(_ucs2 0x10211031102C10131039),
-(_ucs2 0x102910131039),
-(_ucs2 0x10211031102C1013103A),
-(_ucs2 0x10291013103A),
-(_ucs2 0x10211031102C10131039),
-(_ucs2 0x10291031102C10131039),
-(_ucs2 0x10211031102C1013103A),
-(_ucs2 0x10291031102C1013103A),
-(_ucs2 0x1021102D10141039),
-(_ucs2 0x102310141039),
-(_ucs2 0x1021102D1014103A),
-(_ucs2 0x10231014103A),
-(_ucs2 0x1021102F10141039),
-(_ucs2 0x102510141039),
-(_ucs2 0x1021102F1014103A),
-(_ucs2 0x10251014103A),
-(_ucs2 0x1021103110141039),
-(_ucs2 0x102710141039),
-(_ucs2 0x102110311014103A),
-(_ucs2 0x10271014103A),
-(_ucs2 0x10211031102C10141039),
-(_ucs2 0x102910141039),
-(_ucs2 0x10211031102C1014103A),
-(_ucs2 0x10291014103A),
-(_ucs2 0x10211031102C10141039),
-(_ucs2 0x10291031102C10141039),
-(_ucs2 0x10211031102C1014103A),
-(_ucs2 0x10291031102C1014103A),
-(_ucs2 0x1021102D10151039),
-(_ucs2 0x102310151039),
-(_ucs2 0x1021102D1015103A),
-(_ucs2 0x10231015103A),
-(_ucs2 0x1021102F10151039),
-(_ucs2 0x102510151039),
-(_ucs2 0x1021102F1015103A),
-(_ucs2 0x10251015103A),
-(_ucs2 0x1021103110151039),
-(_ucs2 0x102710151039),
-(_ucs2 0x102110311015103A),
-(_ucs2 0x10271015103A),
-(_ucs2 0x10211031102C10151039),
-(_ucs2 0x102910151039),
-(_ucs2 0x10211031102C1015103A),
-(_ucs2 0x10291015103A),
-(_ucs2 0x10211031102C10151039),
-(_ucs2 0x10291031102C10151039),
-(_ucs2 0x10211031102C1015103A),
-(_ucs2 0x10291031102C1015103A),
-(_ucs2 0x1021102D10161039),
-(_ucs2 0x102310161039),
-(_ucs2 0x1021102D1016103A),
-(_ucs2 0x10231016103A),
-(_ucs2 0x1021102F10161039),
-(_ucs2 0x102510161039),
-(_ucs2 0x1021102F1016103A),
-(_ucs2 0x10251016103A),
-(_ucs2 0x1021103110161039),
-(_ucs2 0x102710161039),
-(_ucs2 0x102110311016103A),
-(_ucs2 0x10271016103A),
-(_ucs2 0x10211031102C10161039),
-(_ucs2 0x102910161039),
-(_ucs2 0x10211031102C1016103A),
-(_ucs2 0x10291016103A),
-(_ucs2 0x10211031102C10161039),
-(_ucs2 0x10291031102C10161039),
-(_ucs2 0x10211031102C1016103A),
-(_ucs2 0x10291031102C1016103A),
-(_ucs2 0x1021102D10171039),
-(_ucs2 0x102310171039),
-(_ucs2 0x1021102D1017103A),
-(_ucs2 0x10231017103A),
-(_ucs2 0x1021102F10171039),
-(_ucs2 0x102510171039),
-(_ucs2 0x1021102F1017103A),
-(_ucs2 0x10251017103A),
-(_ucs2 0x1021103110171039),
-(_ucs2 0x102710171039),
-(_ucs2 0x102110311017103A),
-(_ucs2 0x10271017103A),
-(_ucs2 0x10211031102C10171039),
-(_ucs2 0x102910171039),
-(_ucs2 0x10211031102C1017103A),
-(_ucs2 0x10291017103A),
-(_ucs2 0x10211031102C10171039),
-(_ucs2 0x10291031102C10171039),
-(_ucs2 0x10211031102C1017103A),
-(_ucs2 0x10291031102C1017103A),
-(_ucs2 0x1021102D10181039),
-(_ucs2 0x102310181039),
-(_ucs2 0x1021102D1018103A),
-(_ucs2 0x10231018103A),
-(_ucs2 0x1021102F10181039),
-(_ucs2 0x102510181039),
-(_ucs2 0x1021102F1018103A),
-(_ucs2 0x10251018103A),
-(_ucs2 0x1021103110181039),
-(_ucs2 0x102710181039),
-(_ucs2 0x102110311018103A),
-(_ucs2 0x10271018103A),
-(_ucs2 0x10211031102C10181039),
-(_ucs2 0x102910181039),
-(_ucs2 0x10211031102C1018103A),
-(_ucs2 0x10291018103A),
-(_ucs2 0x10211031102C10181039),
-(_ucs2 0x10291031102C10181039),
-(_ucs2 0x10211031102C1018103A),
-(_ucs2 0x10291031102C1018103A),
-(_ucs2 0x1021102D10191039),
-(_ucs2 0x102310191039),
-(_ucs2 0x1021102D1019103A),
-(_ucs2 0x10231019103A),
-(_ucs2 0x1021102F10191039),
-(_ucs2 0x102510191039),
-(_ucs2 0x1021102F1019103A),
-(_ucs2 0x10251019103A),
-(_ucs2 0x1021103110191039),
-(_ucs2 0x102710191039),
-(_ucs2 0x102110311019103A),
-(_ucs2 0x10271019103A),
-(_ucs2 0x10211031102C10191039),
-(_ucs2 0x102910191039),
-(_ucs2 0x10211031102C1019103A),
-(_ucs2 0x10291019103A),
-(_ucs2 0x10211031102C10191039),
-(_ucs2 0x10291031102C10191039),
-(_ucs2 0x10211031102C1019103A),
-(_ucs2 0x10291031102C1019103A),
-(_ucs2 0x1021102D101A1039),
-(_ucs2 0x1023101A1039),
-(_ucs2 0x1021102D101A103A),
-(_ucs2 0x1023101A103A),
-(_ucs2 0x1021102F101A1039),
-(_ucs2 0x1025101A1039),
-(_ucs2 0x1021102F101A103A),
-(_ucs2 0x1025101A103A),
-(_ucs2 0x10211031101A1039),
-(_ucs2 0x1027101A1039),
-(_ucs2 0x10211031101A103A),
-(_ucs2 0x1027101A103A),
-(_ucs2 0x10211031102C101A1039),
-(_ucs2 0x1029101A1039),
-(_ucs2 0x10211031102C101A103A),
-(_ucs2 0x1029101A103A),
-(_ucs2 0x10211031102C101A1039),
-(_ucs2 0x10291031102C101A1039),
-(_ucs2 0x10211031102C101A103A),
-(_ucs2 0x10291031102C101A103A),
-(_ucs2 0x1021102D101B1039),
-(_ucs2 0x1023101B1039),
-(_ucs2 0x1021102D101B103A),
-(_ucs2 0x1023101B103A),
-(_ucs2 0x1021102F101B1039),
-(_ucs2 0x1025101B1039),
-(_ucs2 0x1021102F101B103A),
-(_ucs2 0x1025101B103A),
-(_ucs2 0x10211031101B1039),
-(_ucs2 0x1027101B1039),
-(_ucs2 0x10211031101B103A),
-(_ucs2 0x1027101B103A),
-(_ucs2 0x10211031102C101B1039),
-(_ucs2 0x1029101B1039),
-(_ucs2 0x10211031102C101B103A),
-(_ucs2 0x1029101B103A),
-(_ucs2 0x10211031102C101B1039),
-(_ucs2 0x10291031102C101B1039),
-(_ucs2 0x10211031102C101B103A),
-(_ucs2 0x10291031102C101B103A),
-(_ucs2 0x1021102D101C1039),
-(_ucs2 0x1023101C1039),
-(_ucs2 0x1021102D101C103A),
-(_ucs2 0x1023101C103A),
-(_ucs2 0x1021102F101C1039),
-(_ucs2 0x1025101C1039),
-(_ucs2 0x1021102F101C103A),
-(_ucs2 0x1025101C103A),
-(_ucs2 0x10211031101C1039),
-(_ucs2 0x1027101C1039),
-(_ucs2 0x10211031101C103A),
-(_ucs2 0x1027101C103A),
-(_ucs2 0x10211031102C101C1039),
-(_ucs2 0x1029101C1039),
-(_ucs2 0x10211031102C101C103A),
-(_ucs2 0x1029101C103A),
-(_ucs2 0x10211031102C101C1039),
-(_ucs2 0x10291031102C101C1039),
-(_ucs2 0x10211031102C101C103A),
-(_ucs2 0x10291031102C101C103A),
-(_ucs2 0x1021102D101E1039),
-(_ucs2 0x1023101E1039),
-(_ucs2 0x1021102D101E103A),
-(_ucs2 0x1023101E103A),
-(_ucs2 0x1021102F101E1039),
-(_ucs2 0x1025101E1039),
-(_ucs2 0x1021102F101E103A),
-(_ucs2 0x1025101E103A),
-(_ucs2 0x10211031101E1039),
-(_ucs2 0x1027101E1039),
-(_ucs2 0x10211031101E103A),
-(_ucs2 0x1027101E103A),
-(_ucs2 0x10211031102C101E1039),
-(_ucs2 0x1029101E1039),
-(_ucs2 0x10211031102C101E103A),
-(_ucs2 0x1029101E103A),
-(_ucs2 0x10211031102C101E1039),
-(_ucs2 0x10291031102C101E1039),
-(_ucs2 0x10211031102C101E103A),
-(_ucs2 0x10291031102C101E103A),
-(_ucs2 0x1021102D101F1039),
-(_ucs2 0x1023101F1039),
-(_ucs2 0x1021102D101F103A),
-(_ucs2 0x1023101F103A),
-(_ucs2 0x1021102F101F1039),
-(_ucs2 0x1025101F1039),
-(_ucs2 0x1021102F101F103A),
-(_ucs2 0x1025101F103A),
-(_ucs2 0x10211031101F1039),
-(_ucs2 0x1027101F1039),
-(_ucs2 0x10211031101F103A),
-(_ucs2 0x1027101F103A),
-(_ucs2 0x10211031102C101F1039),
-(_ucs2 0x1029101F1039),
-(_ucs2 0x10211031102C101F103A),
-(_ucs2 0x1029101F103A),
-(_ucs2 0x10211031102C101F1039),
-(_ucs2 0x10291031102C101F1039),
-(_ucs2 0x10211031102C101F103A),
-(_ucs2 0x10291031102C101F103A),
-('--- Contractions'),
-(_ucs2 0x1031102C1000103A1000103B),
-(_ucs2 0x1031102C1000103A103B /* (suffix of) man */),
-(_ucs2 0x1014103A1014102F1015103A),
-(_ucs2 0x1014103A102F1015103A /* (suffix of) I */),
-('--- Great Sa'),
-(_ucs2 0x1031101E1039101E),
-(_ucs2 0x1031103F),
-(_ucs2 0x102D101E1039101E),
-(_ucs2 0x102D103F),
-(_ucs2 0x102F101E1039101E),
-(_ucs2 0x102F103F),
-(_ucs2 0x1021102D101E1039101E),
-(_ucs2 0x1023103F),
-(_ucs2 0x1021102F101E1039101E),
-(_ucs2 0x1025103F),
-(_ucs2 0x101E1039101E),
-(_ucs2 0x103F),
-('--- Symbols - collate as long form'),
-(_ucs2 0x1014103E102D102F1000103A),
-(_ucs2 0x104C),
-(_ucs2 0x101B103D10311037),
-(_ucs2 0x104D),
-(_ucs2 0x101C100A103A103810001031102C1004103A1038),
-(_ucs2 0x104E1004103A1038),
-(_ucs2 0x1021102D),
-(_ucs2 0x104F),
-('--- Short Forms may need to be added here'),
-(_ucs2 0x101C1000103A101A102C),
-(_ucs2 0x101C1000103A103B102C /* right hand side */),
-(_ucs2 0x101E1019102E),
-(_ucs2 0x101E10391019102E /* daughter */),
-(_ucs2 0x101110191004103A1038),
-(_ucs2 0x1011103910191004103A1038 /* cooked rice */),
-(_ucs2 0x101C1000103A10181000103A),
-(_ucs2 0x101C103910181000103A /* tea */);
-SELECT id, IF(LEFT(s1,1)='-',s1,CONCAT(HEX(WEIGHT_STRING(s1)),'\t', HEX(CONVERT(s1 USING ucs2)))) FROM t1 ORDER BY id;
-id IF(LEFT(s1,1)='-',s1,CONCAT(HEX(WEIGHT_STRING(s1)),'\t', HEX(CONVERT(s1 USING ucs2))))
-1 2259 108C
-2 22593ACB 1037
-3 22593ACC 1038
-4 22593ACD 10371038
-5 --- Vowels
-6 2232 102C
-7 2232 102B
-8 2246 1032
-9 22463ACB 1031102C
-10 22463ACB 1031102B
-11 22463ACC 1031102C103A
-12 22463ACC 1031102B103A
-13 2248 1034
-14 22483ACB 1036
-15 22483ACC 102D102F
-16 --- Vowels with finals
-17 22483ACD 10001039
-18 22483ACD 1000103A
-19 22483ACE 102C10001039
-20 22483ACE 102C1000103A
-21 22483ACE 102B10001039
-22 22483ACE 102B1000103A
-23 22483ACF 102D10001039
-24 22483ACF 102D1000103A
-25 22483AD0 102F10001039
-26 22483AD0 102F1000103A
-27 22483AD1 103110001039
-28 22483AD1 10311000103A
-29 22483AD2 1031102C10001039
-30 22483AD2 1031102C1000103A
-31 22483AD2 1031102B10001039
-32 22483AD2 1031102B1000103A
-33 22483AD3 102D102F10001039
-34 22483AD3 102D102F1000103A
-35 22483AD4 10011039
-36 22483AD4 1001103A
-37 22483AD5 102C10011039
-38 22483AD5 102C1001103A
-39 22483AD5 102B10011039
-40 22483AD5 102B1001103A
-41 22483AD6 102D10011039
-42 22483AD6 102D1001103A
-43 22483AD7 102F10011039
-44 22483AD7 102F1001103A
-45 22483AD8 103110011039
-46 22483AD8 10311001103A
-47 22483AD9 1031102C10011039
-48 22483AD9 1031102C1001103A
-49 22483AD9 1031102B10011039
-50 22483AD9 1031102B1001103A
-51 22483ADA 102D102F10011039
-52 22483ADA 102D102F1001103A
-53 22483ADB 10021039
-54 22483ADB 1002103A
-55 22483ADC 102C10021039
-56 22483ADC 102C1002103A
-57 22483ADC 102B10021039
-58 22483ADC 102B1002103A
-59 22483ADD 102D10021039
-60 22483ADD 102D1002103A
-61 22483ADE 102F10021039
-62 22483ADE 102F1002103A
-63 22483ADF 103110021039
-64 22483ADF 10311002103A
-65 22483AE0 1031102C10021039
-66 22483AE0 1031102C1002103A
-67 22483AE0 1031102B10021039
-68 22483AE0 1031102B1002103A
-69 22483AE1 102D102F10021039
-70 22483AE1 102D102F1002103A
-71 22483AE2 10031039
-72 22483AE2 1003103A
-73 22483AE3 102C10031039
-74 22483AE3 102C1003103A
-75 22483AE3 102B10031039
-76 22483AE3 102B1003103A
-77 22483AE4 102D10031039
-78 22483AE4 102D1003103A
-79 22483AE5 102F10031039
-80 22483AE5 102F1003103A
-81 22483AE6 103110031039
-82 22483AE6 10311003103A
-83 22483AE7 1031102C10031039
-84 22483AE7 1031102C1003103A
-85 22483AE7 1031102B10031039
-86 22483AE7 1031102B1003103A
-87 22483AE8 102D102F10031039
-88 22483AE8 102D102F1003103A
-89 22483AE9 1004103A1039
-90 22483AE9 1004103A
-91 22483AEA 102C1004103A1039
-92 22483AEA 102C1004103A
-93 22483AEA 102B1004103A1039
-94 22483AEA 102B1004103A
-95 22483AEB 102D1004103A1039
-96 22483AEB 102D1004103A
-97 22483AEC 102F1004103A1039
-98 22483AEC 102F1004103A
-99 22483AED 10311004103A1039
-100 22483AED 10311004103A
-101 22483AEE 1031102C1004103A1039
-102 22483AEE 1031102C1004103A
-103 22483AEE 1031102B1004103A1039
-104 22483AEE 1031102B1004103A
-105 22483AEF 102D102F1004103A1039
-106 22483AEF 102D102F1004103A
-107 22483AF0 10051039
-108 22483AF0 1005103A
-109 22483AF1 102C10051039
-110 22483AF1 102C1005103A
-111 22483AF1 102B10051039
-112 22483AF1 102B1005103A
-113 22483AF2 102D10051039
-114 22483AF2 102D1005103A
-115 22483AF3 102F10051039
-116 22483AF3 102F1005103A
-117 22483AF4 103110051039
-118 22483AF4 10311005103A
-119 22483AF5 1031102C10051039
-120 22483AF5 1031102C1005103A
-121 22483AF5 1031102B10051039
-122 22483AF5 1031102B1005103A
-123 22483AF6 102D102F10051039
-124 22483AF6 102D102F1005103A
-125 22483AF7 10061039
-126 22483AF7 1006103A
-127 22483AF8 102C10061039
-128 22483AF8 102C1006103A
-129 22483AF8 102B10061039
-130 22483AF8 102B1006103A
-131 22483AF9 102D10061039
-132 22483AF9 102D1006103A
-133 22483AFA 102F10061039
-134 22483AFA 102F1006103A
-135 22483AFB 103110061039
-136 22483AFB 10311006103A
-137 22483AFC 1031102C10061039
-138 22483AFC 1031102C1006103A
-139 22483AFC 1031102B10061039
-140 22483AFC 1031102B1006103A
-141 22483AFD 102D102F10061039
-142 22483AFD 102D102F1006103A
-143 22483AFE 10071039
-144 22483AFE 1007103A
-145 22483AFF 102C10071039
-146 22483AFF 102C1007103A
-147 22483AFF 102B10071039
-148 22483AFF 102B1007103A
-149 22483B00 102D10071039
-150 22483B00 102D1007103A
-151 22483B01 102F10071039
-152 22483B01 102F1007103A
-153 22483B02 103110071039
-154 22483B02 10311007103A
-155 22483B03 1031102C10071039
-156 22483B03 1031102C1007103A
-157 22483B03 1031102B10071039
-158 22483B03 1031102B1007103A
-159 22483B04 102D102F10071039
-160 22483B04 102D102F1007103A
-161 22483B05 1008103A
-162 22483B06 102C1008103A
-163 22483B06 102B1008103A
-164 22483B07 102D1008103A
-165 22483B08 102F1008103A
-166 22483B09 10311008103A
-167 22483B0A 1031102C1008103A
-168 22483B0A 1031102B1008103A
-169 22483B0B 102D102F1008103A
-170 22483B0C 10091039
-171 22483B0C 1009103A
-172 22483B0D 102C10091039
-173 22483B0D 102C1009103A
-174 22483B0D 102B10091039
-175 22483B0D 102B1009103A
-176 22483B0E 102D10091039
-177 22483B0E 102D1009103A
-178 22483B0F 102F10091039
-179 22483B0F 102F1009103A
-180 22483B10 103110091039
-181 22483B10 10311009103A
-182 22483B11 1031102C10091039
-183 22483B11 1031102C1009103A
-184 22483B11 1031102B10091039
-185 22483B11 1031102B1009103A
-186 22483B12 102D102F10091039
-187 22483B12 102D102F1009103A
-188 22483B13 100A1039
-189 22483B13 100A103A
-190 22483B14 102C100A1039
-191 22483B14 102C100A103A
-192 22483B14 102B100A1039
-193 22483B14 102B100A103A
-194 22483B15 102D100A1039
-195 22483B15 102D100A103A
-196 22483B16 102F100A1039
-197 22483B16 102F100A103A
-198 22483B17 1031100A1039
-199 22483B17 1031100A103A
-200 22483B18 1031102C100A1039
-201 22483B18 1031102C100A103A
-202 22483B18 1031102B100A1039
-203 22483B18 1031102B100A103A
-204 22483B19 102D102F100A1039
-205 22483B19 102D102F100A103A
-206 22483B1A 100B1039
-207 22483B1A 100B103A
-208 22483B1B 102C100B1039
-209 22483B1B 102C100B103A
-210 22483B1B 102B100B1039
-211 22483B1B 102B100B103A
-212 22483B1C 102D100B1039
-213 22483B1C 102D100B103A
-214 22483B1D 102F100B1039
-215 22483B1D 102F100B103A
-216 22483B1E 1031100B1039
-217 22483B1E 1031100B103A
-218 22483B1F 1031102C100B1039
-219 22483B1F 1031102C100B103A
-220 22483B1F 1031102B100B1039
-221 22483B1F 1031102B100B103A
-222 22483B20 102D102F100B1039
-223 22483B20 102D102F100B103A
-224 22483B21 100C1039
-225 22483B21 100C103A
-226 22483B22 102C100C1039
-227 22483B22 102C100C103A
-228 22483B22 102B100C1039
-229 22483B22 102B100C103A
-230 22483B23 102D100C1039
-231 22483B23 102D100C103A
-232 22483B24 102F100C1039
-233 22483B24 102F100C103A
-234 22483B25 1031100C1039
-235 22483B25 1031100C103A
-236 22483B26 1031102C100C1039
-237 22483B26 1031102C100C103A
-238 22483B26 1031102B100C1039
-239 22483B26 1031102B100C103A
-240 22483B27 102D102F100C1039
-241 22483B27 102D102F100C103A
-242 22483B28 100D1039
-243 22483B28 100D103A
-244 22483B29 102C100D1039
-245 22483B29 102C100D103A
-246 22483B29 102B100D1039
-247 22483B29 102B100D103A
-248 22483B2A 102D100D1039
-249 22483B2A 102D100D103A
-250 22483B2B 102F100D1039
-251 22483B2B 102F100D103A
-252 22483B2C 1031100D1039
-253 22483B2C 1031100D103A
-254 22483B2D 1031102C100D1039
-255 22483B2D 1031102C100D103A
-256 22483B2D 1031102B100D1039
-257 22483B2D 1031102B100D103A
-258 22483B2E 102D102F100D1039
-259 22483B2E 102D102F100D103A
-260 22483B2F 100E1039
-261 22483B2F 100E103A
-262 22483B30 102C100E1039
-263 22483B30 102C100E103A
-264 22483B30 102B100E1039
-265 22483B30 102B100E103A
-266 22483B31 102D100E1039
-267 22483B31 102D100E103A
-268 22483B32 102F100E1039
-269 22483B32 102F100E103A
-270 22483B33 1031100E1039
-271 22483B33 1031100E103A
-272 22483B34 1031102C100E1039
-273 22483B34 1031102C100E103A
-274 22483B34 1031102B100E1039
-275 22483B34 1031102B100E103A
-276 22483B35 102D102F100E1039
-277 22483B35 102D102F100E103A
-278 22483B36 100F1039
-279 22483B36 100F103A
-280 22483B37 102C100F1039
-281 22483B37 102C100F103A
-282 22483B37 102B100F1039
-283 22483B37 102B100F103A
-284 22483B38 102D100F1039
-285 22483B38 102D100F103A
-286 22483B39 102F100F1039
-287 22483B39 102F100F103A
-288 22483B3A 1031100F1039
-289 22483B3A 1031100F103A
-290 22483B3B 1031102C100F1039
-291 22483B3B 1031102C100F103A
-292 22483B3B 1031102B100F1039
-293 22483B3B 1031102B100F103A
-294 22483B3C 102D102F100F1039
-295 22483B3C 102D102F100F103A
-296 22483B3D 10101039
-297 22483B3D 1010103A
-298 22483B3E 102C10101039
-299 22483B3E 102C1010103A
-300 22483B3E 102B10101039
-301 22483B3E 102B1010103A
-302 22483B3F 102D10101039
-303 22483B3F 102D1010103A
-304 22483B40 102F10101039
-305 22483B40 102F1010103A
-306 22483B41 103110101039
-307 22483B41 10311010103A
-308 22483B42 1031102C10101039
-309 22483B42 1031102C1010103A
-310 22483B42 1031102B10101039
-311 22483B42 1031102B1010103A
-312 22483B43 102D102F10101039
-313 22483B43 102D102F1010103A
-314 22483B44 10111039
-315 22483B44 1011103A
-316 22483B45 102C10111039
-317 22483B45 102C1011103A
-318 22483B45 102B10111039
-319 22483B45 102B1011103A
-320 22483B46 102D10111039
-321 22483B46 102D1011103A
-322 22483B47 102F10111039
-323 22483B47 102F1011103A
-324 22483B48 103110111039
-325 22483B48 10311011103A
-326 22483B49 1031102C10111039
-327 22483B49 1031102C1011103A
-328 22483B49 1031102B10111039
-329 22483B49 1031102B1011103A
-330 22483B4A 102D102F10111039
-331 22483B4A 102D102F1011103A
-332 22483B4B 10121039
-333 22483B4B 1012103A
-334 22483B4C 102C10121039
-335 22483B4C 102C1012103A
-336 22483B4C 102B10121039
-337 22483B4C 102B1012103A
-338 22483B4D 102D10121039
-339 22483B4D 102D1012103A
-340 22483B4E 102F10121039
-341 22483B4E 102F1012103A
-342 22483B4F 103110121039
-343 22483B4F 10311012103A
-344 22483B50 1031102C10121039
-345 22483B50 1031102C1012103A
-346 22483B50 1031102B10121039
-347 22483B50 1031102B1012103A
-348 22483B51 102D102F10121039
-349 22483B51 102D102F1012103A
-350 22483B52 10131039
-351 22483B52 1013103A
-352 22483B53 102C10131039
-353 22483B53 102C1013103A
-354 22483B53 102B10131039
-355 22483B53 102B1013103A
-356 22483B54 102D10131039
-357 22483B54 102D1013103A
-358 22483B55 102F10131039
-359 22483B55 102F1013103A
-360 22483B56 103110131039
-361 22483B56 10311013103A
-362 22483B57 1031102C10131039
-363 22483B57 1031102C1013103A
-364 22483B57 1031102B10131039
-365 22483B57 1031102B1013103A
-366 22483B58 102D102F10131039
-367 22483B58 102D102F1013103A
-368 22483B59 10141039
-369 22483B59 1014103A
-370 22483B5A 102C10141039
-371 22483B5A 102C1014103A
-372 22483B5A 102B10141039
-373 22483B5A 102B1014103A
-374 22483B5B 102D10141039
-375 22483B5B 102D1014103A
-376 22483B5C 102F10141039
-377 22483B5C 102F1014103A
-378 22483B5D 103110141039
-379 22483B5D 10311014103A
-380 22483B5E 1031102C10141039
-381 22483B5E 1031102C1014103A
-382 22483B5E 1031102B10141039
-383 22483B5E 1031102B1014103A
-384 22483B5F 102D102F10141039
-385 22483B5F 102D102F1014103A
-386 22483B60 10151039
-387 22483B60 1015103A
-388 22483B61 102C10151039
-389 22483B61 102C1015103A
-390 22483B61 102B10151039
-391 22483B61 102B1015103A
-392 22483B62 102D10151039
-393 22483B62 102D1015103A
-394 22483B63 102F10151039
-395 22483B63 102F1015103A
-396 22483B64 103110151039
-397 22483B64 10311015103A
-398 22483B65 1031102C10151039
-399 22483B65 1031102C1015103A
-400 22483B65 1031102B10151039
-401 22483B65 1031102B1015103A
-402 22483B66 102D102F10151039
-403 22483B66 102D102F1015103A
-404 22483B67 10161039
-405 22483B67 1016103A
-406 22483B68 102C10161039
-407 22483B68 102C1016103A
-408 22483B68 102B10161039
-409 22483B68 102B1016103A
-410 22483B69 102D10161039
-411 22483B69 102D1016103A
-412 22483B6A 102F10161039
-413 22483B6A 102F1016103A
-414 22483B6B 103110161039
-415 22483B6B 10311016103A
-416 22483B6C 1031102C10161039
-417 22483B6C 1031102C1016103A
-418 22483B6C 1031102B10161039
-419 22483B6C 1031102B1016103A
-420 22483B6D 102D102F10161039
-421 22483B6D 102D102F1016103A
-422 22483B6E 10171039
-423 22483B6E 1017103A
-424 22483B6F 102C10171039
-425 22483B6F 102C1017103A
-426 22483B6F 102B10171039
-427 22483B6F 102B1017103A
-428 22483B70 102D10171039
-429 22483B70 102D1017103A
-430 22483B71 102F10171039
-431 22483B71 102F1017103A
-432 22483B72 103110171039
-433 22483B72 10311017103A
-434 22483B73 1031102C10171039
-435 22483B73 1031102C1017103A
-436 22483B73 1031102B10171039
-437 22483B73 1031102B1017103A
-438 22483B74 102D102F10171039
-439 22483B74 102D102F1017103A
-440 22483B75 10181039
-441 22483B75 1018103A
-442 22483B76 102C10181039
-443 22483B76 102C1018103A
-444 22483B76 102B10181039
-445 22483B76 102B1018103A
-446 22483B77 102D10181039
-447 22483B77 102D1018103A
-448 22483B78 102F10181039
-449 22483B78 102F1018103A
-450 22483B79 103110181039
-451 22483B79 10311018103A
-452 22483B7A 1031102C10181039
-453 22483B7A 1031102C1018103A
-454 22483B7A 1031102B10181039
-455 22483B7A 1031102B1018103A
-456 22483B7B 102D102F10181039
-457 22483B7B 102D102F1018103A
-458 22483B7C 10191039
-459 22483B7C 1019103A
-460 22483B7D 102C10191039
-461 22483B7D 102C1019103A
-462 22483B7D 102B10191039
-463 22483B7D 102B1019103A
-464 22483B7E 102D10191039
-465 22483B7E 102D1019103A
-466 22483B7F 102F10191039
-467 22483B7F 102F1019103A
-468 22483B80 103110191039
-469 22483B80 10311019103A
-470 22483B81 1031102C10191039
-471 22483B81 1031102C1019103A
-472 22483B81 1031102B10191039
-473 22483B81 1031102B1019103A
-474 22483B82 102D102F10191039
-475 22483B82 102D102F1019103A
-476 22483B83 101A1039
-477 22483B83 101A103A
-478 22483B84 102C101A1039
-479 22483B84 102C101A103A
-480 22483B84 102B101A1039
-481 22483B84 102B101A103A
-482 22483B85 102D101A1039
-483 22483B85 102D101A103A
-484 22483B86 102F101A1039
-485 22483B86 102F101A103A
-486 22483B87 1031101A1039
-487 22483B87 1031101A103A
-488 22483B88 1031102C101A1039
-489 22483B88 1031102C101A103A
-490 22483B88 1031102B101A1039
-491 22483B88 1031102B101A103A
-492 22483B89 102D102F101A1039
-493 22483B89 102D102F101A103A
-494 22483B8A 101B1039
-495 22483B8A 101B103A
-496 22483B8B 102C101B1039
-497 22483B8B 102C101B103A
-498 22483B8B 102B101B1039
-499 22483B8B 102B101B103A
-500 22483B8C 102D101B1039
-501 22483B8C 102D101B103A
-502 22483B8D 102F101B1039
-503 22483B8D 102F101B103A
-504 22483B8E 1031101B1039
-505 22483B8E 1031101B103A
-506 22483B8F 1031102C101B1039
-507 22483B8F 1031102C101B103A
-508 22483B8F 1031102B101B1039
-509 22483B8F 1031102B101B103A
-510 22483B90 102D102F101B1039
-511 22483B90 102D102F101B103A
-512 22483B91 101C1039
-513 22483B91 101C103A
-514 22483B92 102C101C1039
-515 22483B92 102C101C103A
-516 22483B92 102B101C1039
-517 22483B92 102B101C103A
-518 22483B93 102D101C1039
-519 22483B93 102D101C103A
-520 22483B94 102F101C1039
-521 22483B94 102F101C103A
-522 22483B95 1031101C1039
-523 22483B95 1031101C103A
-524 22483B96 1031102C101C1039
-525 22483B96 1031102C101C103A
-526 22483B96 1031102B101C1039
-527 22483B96 1031102B101C103A
-528 22483B97 102D102F101C1039
-529 22483B97 102D102F101C103A
-530 22483B98 101D103A
-531 22483B99 102C101D103A
-532 22483B99 102B101D103A
-533 22483B9A 102D101D103A
-534 22483B9B 102F101D103A
-535 22483B9C 1031101D103A
-536 22483B9D 1031102C101D103A
-537 22483B9D 1031102B101D103A
-538 22483B9E 102D102F101D103A
-539 22483B9F 101E1039
-540 22483B9F 101E103A
-541 22483BA0 102C101E1039
-542 22483BA0 102C101E103A
-543 22483BA0 102B101E1039
-544 22483BA0 102B101E103A
-545 22483BA1 102D101E1039
-546 22483BA1 102D101E103A
-547 22483BA2 102F101E1039
-548 22483BA2 102F101E103A
-549 22483BA3 1031101E1039
-550 22483BA3 1031101E103A
-551 22483BA4 1031102C101E1039
-552 22483BA4 1031102C101E103A
-553 22483BA4 1031102B101E1039
-554 22483BA4 1031102B101E103A
-555 22483BA5 102D102F101E1039
-556 22483BA5 102D102F101E103A
-557 22483BA6 101F1039
-558 22483BA6 101F103A
-559 22483BA7 102C101F1039
-560 22483BA7 102C101F103A
-561 22483BA7 102B101F1039
-562 22483BA7 102B101F103A
-563 22483BA8 102D101F1039
-564 22483BA8 102D101F103A
-565 22483BA9 102F101F1039
-566 22483BA9 102F101F103A
-567 22483BAA 1031101F1039
-568 22483BAA 1031101F103A
-569 22483BAB 1031102C101F1039
-570 22483BAB 1031102C101F103A
-571 22483BAB 1031102B101F1039
-572 22483BAB 1031102B101F103A
-573 22483BAC 102D102F101F1039
-574 22483BAC 102D102F101F103A
-575 22483BAD 1020103A
-576 22483BAE 102C1020103A
-577 22483BAE 102B1020103A
-578 22483BAF 102D1020103A
-579 22483BB0 102F1020103A
-580 22483BB1 10311020103A
-581 22483BB2 1031102C1020103A
-582 22483BB2 1031102B1020103A
-583 22483BB3 102D102F1020103A
-584 22483BB4 1021103A
-585 22483BB5 102C1021103A
-586 22483BB5 102B1021103A
-587 22483BB6 102D1021103A
-588 22483BB7 102F1021103A
-589 22483BB8 10311021103A
-590 22483BB9 1031102C1021103A
-591 22483BB9 1031102B1021103A
-592 22483BBA 102D102F1021103A
-593 --- Medials
-594 22483BBB 105E
-595 22483BBC 105F
-596 22483BBD 103B
-597 22483BBE 103C
-598 22483BBF 1060
-599 22483BC0 103D
-600 22483BC1 1082
-601 22483BC2 103E
-602 22483BC3 103B103D
-603 22483BC4 103C103D
-604 22483BC5 103B103E
-605 22483BC6 103C103E
-606 22483BC7 103D103E
-607 22483BC8 103B103D103E
-608 22483BC9 103C103D103E
-609 --- Independent vowels
-610 22242236 1021102D
-611 22242236 1023
-612 22242238 1021102E
-613 22242238 1024
-614 2224223A 1021102F
-615 2224223A 1025
-616 2224223D 10211030
-617 2224223D 1026
-618 22242242 10211031
-619 22242242 1027
-620 22242242 1028
-621 222422463ACB 10211031102C
-622 222422463ACB 1029
-623 222422463ACC 10211031102C103A
-624 222422463ACC 102A
-625 22483B7E 102D1019103A
-626 22483B7E3ACB 102D1036
-627 22483B7E3ACC 102D1019103A1037
-628 22483B7E3ACD 102D10361037
-629 22483B7E3ACE 102D1019103A1038
-630 22483B7E3ACF 102D10361038
-631 22483B7F 102F1019103A
-632 22483B7F3ACB 102F1036
-633 22483B7F3ACC 102F1019103A1037
-634 22483B7F3ACD 102F10361037
-635 22483B7F3ACE 102F1019103A1038
-636 22483B7F3ACF 102F10361038
-637 222422483B7F3ACB 1021102F1036
-638 222422483B7F3ACB 1025102F1036
-639 --- Independent vowels with finals
-640 222422483ACF 1021102D10001039
-641 222422483ACF 102310001039
-642 222422483ACF 1021102D1000103A
-643 222422483ACF 10231000103A
-644 222422483AD0 1021102F10001039
-645 222422483AD0 102510001039
-646 222422483AD0 1021102F1000103A
-647 222422483AD0 10251000103A
-648 222422483AD1 1021103110001039
-649 222422483AD1 102710001039
-650 222422483AD1 102110311000103A
-651 222422483AD1 10271000103A
-652 222422483AD2 10211031102C10001039
-653 222422483AD2 102910001039
-654 222422483AD2 10211031102C1000103A
-655 222422483AD2 10291000103A
-656 222422483AD2 10211031102C10001039
-657 222422483AD2 10291031102C10001039
-658 222422483AD2 10211031102C1000103A
-659 222422483AD2 10291031102C1000103A
-660 222422483AD6 1021102D10011039
-661 222422483AD6 102310011039
-662 222422483AD6 1021102D1001103A
-663 222422483AD6 10231001103A
-664 222422483AD7 1021102F10011039
-665 222422483AD7 102510011039
-666 222422483AD7 1021102F1001103A
-667 222422483AD7 10251001103A
-668 222422483AD8 1021103110011039
-669 222422483AD8 102710011039
-670 222422483AD8 102110311001103A
-671 222422483AD8 10271001103A
-672 222422483AD9 10211031102C10011039
-673 222422483AD9 102910011039
-674 222422483AD9 10211031102C1001103A
-675 222422483AD9 10291001103A
-676 222422483AD9 10211031102C10011039
-677 222422483AD9 10291031102C10011039
-678 222422483AD9 10211031102C1001103A
-679 222422483AD9 10291031102C1001103A
-680 222422483ADD 1021102D10021039
-681 222422483ADD 102310021039
-682 222422483ADD 1021102D1002103A
-683 222422483ADD 10231002103A
-684 222422483ADE 1021102F10021039
-685 222422483ADE 102510021039
-686 222422483ADE 1021102F1002103A
-687 222422483ADE 10251002103A
-688 222422483ADF 1021103110021039
-689 222422483ADF 102710021039
-690 222422483ADF 102110311002103A
-691 222422483ADF 10271002103A
-692 222422483AE0 10211031102C10021039
-693 222422483AE0 102910021039
-694 222422483AE0 10211031102C1002103A
-695 222422483AE0 10291002103A
-696 222422483AE0 10211031102C10021039
-697 222422483AE0 10291031102C10021039
-698 222422483AE0 10211031102C1002103A
-699 222422483AE0 10291031102C1002103A
-700 222422483AE4 1021102D10031039
-701 222422483AE4 102310031039
-702 222422483AE4 1021102D1003103A
-703 222422483AE4 10231003103A
-704 222422483AE5 1021102F10031039
-705 222422483AE5 102510031039
-706 222422483AE5 1021102F1003103A
-707 222422483AE5 10251003103A
-708 222422483AE6 1021103110031039
-709 222422483AE6 102710031039
-710 222422483AE6 102110311003103A
-711 222422483AE6 10271003103A
-712 222422483AE7 10211031102C10031039
-713 222422483AE7 102910031039
-714 222422483AE7 10211031102C1003103A
-715 222422483AE7 10291003103A
-716 222422483AE7 10211031102C10031039
-717 222422483AE7 10291031102C10031039
-718 222422483AE7 10211031102C1003103A
-719 222422483AE7 10291031102C1003103A
-720 2224223621D5224D 1021102D10041039
-721 2224223621D5224D 102310041039
-722 222422483AEB 1021102D1004103A
-723 222422483AEB 10231004103A
-724 2224223A21D5224D 1021102F10041039
-725 2224223A21D5224D 102510041039
-726 222422483AEC 1021102F1004103A
-727 222422483AEC 10251004103A
-728 2224224221D5224D 1021103110041039
-729 2224224221D5224D 102710041039
-730 222422483AED 102110311004103A
-731 222422483AED 10271004103A
-732 222422463ACB21D5224D 10211031102C10041039
-733 222422463ACB21D5224D 102910041039
-734 222422483AEE 10211031102C1004103A
-735 222422483AEE 10291004103A
-736 222422463ACB21D5224D 10211031102C10041039
-737 222422463ACB21D5224D 10291031102C10041039
-738 222422483AEE 10211031102C1004103A
-739 222422483AEE 10291031102C1004103A
-740 222422483AF2 1021102D10051039
-741 222422483AF2 102310051039
-742 222422483AF2 1021102D1005103A
-743 222422483AF2 10231005103A
-744 222422483AF3 1021102F10051039
-745 222422483AF3 102510051039
-746 222422483AF3 1021102F1005103A
-747 222422483AF3 10251005103A
-748 222422483AF4 1021103110051039
-749 222422483AF4 102710051039
-750 222422483AF4 102110311005103A
-751 222422483AF4 10271005103A
-752 222422483AF5 10211031102C10051039
-753 222422483AF5 102910051039
-754 222422483AF5 10211031102C1005103A
-755 222422483AF5 10291005103A
-756 222422483AF5 10211031102C10051039
-757 222422483AF5 10291031102C10051039
-758 222422483AF5 10211031102C1005103A
-759 222422483AF5 10291031102C1005103A
-760 222422483AF9 1021102D10061039
-761 222422483AF9 102310061039
-762 222422483AF9 1021102D1006103A
-763 222422483AF9 10231006103A
-764 222422483AFA 1021102F10061039
-765 222422483AFA 102510061039
-766 222422483AFA 1021102F1006103A
-767 222422483AFA 10251006103A
-768 222422483AFB 1021103110061039
-769 222422483AFB 102710061039
-770 222422483AFB 102110311006103A
-771 222422483AFB 10271006103A
-772 222422483AFC 10211031102C10061039
-773 222422483AFC 102910061039
-774 222422483AFC 10211031102C1006103A
-775 222422483AFC 10291006103A
-776 222422483AFC 10211031102C10061039
-777 222422483AFC 10291031102C10061039
-778 222422483AFC 10211031102C1006103A
-779 222422483AFC 10291031102C1006103A
-780 222422483B00 1021102D10071039
-781 222422483B00 102310071039
-782 222422483B00 1021102D1007103A
-783 222422483B00 10231007103A
-784 222422483B01 1021102F10071039
-785 222422483B01 102510071039
-786 222422483B01 1021102F1007103A
-787 222422483B01 10251007103A
-788 222422483B02 1021103110071039
-789 222422483B02 102710071039
-790 222422483B02 102110311007103A
-791 222422483B02 10271007103A
-792 222422483B03 10211031102C10071039
-793 222422483B03 102910071039
-794 222422483B03 10211031102C1007103A
-795 222422483B03 10291007103A
-796 222422483B03 10211031102C10071039
-797 222422483B03 10291031102C10071039
-798 222422483B03 10211031102C1007103A
-799 222422483B03 10291031102C1007103A
-800 222422483B0E 1021102D10091039
-801 222422483B0E 102310091039
-802 222422483B0E 1021102D1009103A
-803 222422483B0E 10231009103A
-804 222422483B0F 1021102F10091039
-805 222422483B0F 102510091039
-806 222422483B0F 1021102F1009103A
-807 222422483B0F 10251009103A
-808 222422483B10 1021103110091039
-809 222422483B10 102710091039
-810 222422483B10 102110311009103A
-811 222422483B10 10271009103A
-812 222422483B11 10211031102C10091039
-813 222422483B11 102910091039
-814 222422483B11 10211031102C1009103A
-815 222422483B11 10291009103A
-816 222422483B11 10211031102C10091039
-817 222422483B11 10291031102C10091039
-818 222422483B11 10211031102C1009103A
-819 222422483B11 10291031102C1009103A
-820 222422483B15 1021102D100A1039
-821 222422483B15 1023100A1039
-822 222422483B15 1021102D100A103A
-823 222422483B15 1023100A103A
-824 222422483B16 1021102F100A1039
-825 222422483B16 1025100A1039
-826 222422483B16 1021102F100A103A
-827 222422483B16 1025100A103A
-828 222422483B17 10211031100A1039
-829 222422483B17 1027100A1039
-830 222422483B17 10211031100A103A
-831 222422483B17 1027100A103A
-832 222422483B18 10211031102C100A1039
-833 222422483B18 1029100A1039
-834 222422483B18 10211031102C100A103A
-835 222422483B18 1029100A103A
-836 222422483B18 10211031102C100A1039
-837 222422483B18 10291031102C100A1039
-838 222422483B18 10211031102C100A103A
-839 222422483B18 10291031102C100A103A
-840 222422483B1C 1021102D100B1039
-841 222422483B1C 1023100B1039
-842 222422483B1C 1021102D100B103A
-843 222422483B1C 1023100B103A
-844 222422483B1D 1021102F100B1039
-845 222422483B1D 1025100B1039
-846 222422483B1D 1021102F100B103A
-847 222422483B1D 1025100B103A
-848 222422483B1E 10211031100B1039
-849 222422483B1E 1027100B1039
-850 222422483B1E 10211031100B103A
-851 222422483B1E 1027100B103A
-852 222422483B1F 10211031102C100B1039
-853 222422483B1F 1029100B1039
-854 222422483B1F 10211031102C100B103A
-855 222422483B1F 1029100B103A
-856 222422483B1F 10211031102C100B1039
-857 222422483B1F 10291031102C100B1039
-858 222422483B1F 10211031102C100B103A
-859 222422483B1F 10291031102C100B103A
-860 222422483B23 1021102D100C1039
-861 222422483B23 1023100C1039
-862 222422483B23 1021102D100C103A
-863 222422483B23 1023100C103A
-864 222422483B24 1021102F100C1039
-865 222422483B24 1025100C1039
-866 222422483B24 1021102F100C103A
-867 222422483B24 1025100C103A
-868 222422483B25 10211031100C1039
-869 222422483B25 1027100C1039
-870 222422483B25 10211031100C103A
-871 222422483B25 1027100C103A
-872 222422483B26 10211031102C100C1039
-873 222422483B26 1029100C1039
-874 222422483B26 10211031102C100C103A
-875 222422483B26 1029100C103A
-876 222422483B26 10211031102C100C1039
-877 222422483B26 10291031102C100C1039
-878 222422483B26 10211031102C100C103A
-879 222422483B26 10291031102C100C103A
-880 222422483B2A 1021102D100D1039
-881 222422483B2A 1023100D1039
-882 222422483B2A 1021102D100D103A
-883 222422483B2A 1023100D103A
-884 222422483B2B 1021102F100D1039
-885 222422483B2B 1025100D1039
-886 222422483B2B 1021102F100D103A
-887 222422483B2B 1025100D103A
-888 222422483B2C 10211031100D1039
-889 222422483B2C 1027100D1039
-890 222422483B2C 10211031100D103A
-891 222422483B2C 1027100D103A
-892 222422483B2D 10211031102C100D1039
-893 222422483B2D 1029100D1039
-894 222422483B2D 10211031102C100D103A
-895 222422483B2D 1029100D103A
-896 222422483B2D 10211031102C100D1039
-897 222422483B2D 10291031102C100D1039
-898 222422483B2D 10211031102C100D103A
-899 222422483B2D 10291031102C100D103A
-900 222422483B31 1021102D100E1039
-901 222422483B31 1023100E1039
-902 222422483B31 1021102D100E103A
-903 222422483B31 1023100E103A
-904 222422483B32 1021102F100E1039
-905 222422483B32 1025100E1039
-906 222422483B32 1021102F100E103A
-907 222422483B32 1025100E103A
-908 222422483B33 10211031100E1039
-909 222422483B33 1027100E1039
-910 222422483B33 10211031100E103A
-911 222422483B33 1027100E103A
-912 222422483B34 10211031102C100E1039
-913 222422483B34 1029100E1039
-914 222422483B34 10211031102C100E103A
-915 222422483B34 1029100E103A
-916 222422483B34 10211031102C100E1039
-917 222422483B34 10291031102C100E1039
-918 222422483B34 10211031102C100E103A
-919 222422483B34 10291031102C100E103A
-920 222422483B38 1021102D100F1039
-921 222422483B38 1023100F1039
-922 222422483B38 1021102D100F103A
-923 222422483B38 1023100F103A
-924 222422483B39 1021102F100F1039
-925 222422483B39 1025100F1039
-926 222422483B39 1021102F100F103A
-927 222422483B39 1025100F103A
-928 222422483B3A 10211031100F1039
-929 222422483B3A 1027100F1039
-930 222422483B3A 10211031100F103A
-931 222422483B3A 1027100F103A
-932 222422483B3B 10211031102C100F1039
-933 222422483B3B 1029100F1039
-934 222422483B3B 10211031102C100F103A
-935 222422483B3B 1029100F103A
-936 222422483B3B 10211031102C100F1039
-937 222422483B3B 10291031102C100F1039
-938 222422483B3B 10211031102C100F103A
-939 222422483B3B 10291031102C100F103A
-940 222422483B3F 1021102D10101039
-941 222422483B3F 102310101039
-942 222422483B3F 1021102D1010103A
-943 222422483B3F 10231010103A
-944 222422483B40 1021102F10101039
-945 222422483B40 102510101039
-946 222422483B40 1021102F1010103A
-947 222422483B40 10251010103A
-948 222422483B41 1021103110101039
-949 222422483B41 102710101039
-950 222422483B41 102110311010103A
-951 222422483B41 10271010103A
-952 222422483B42 10211031102C10101039
-953 222422483B42 102910101039
-954 222422483B42 10211031102C1010103A
-955 222422483B42 10291010103A
-956 222422483B42 10211031102C10101039
-957 222422483B42 10291031102C10101039
-958 222422483B42 10211031102C1010103A
-959 222422483B42 10291031102C1010103A
-960 222422483B46 1021102D10111039
-961 222422483B46 102310111039
-962 222422483B46 1021102D1011103A
-963 222422483B46 10231011103A
-964 222422483B47 1021102F10111039
-965 222422483B47 102510111039
-966 222422483B47 1021102F1011103A
-967 222422483B47 10251011103A
-968 222422483B48 1021103110111039
-969 222422483B48 102710111039
-970 222422483B48 102110311011103A
-971 222422483B48 10271011103A
-972 222422483B49 10211031102C10111039
-973 222422483B49 102910111039
-974 222422483B49 10211031102C1011103A
-975 222422483B49 10291011103A
-976 222422483B49 10211031102C10111039
-977 222422483B49 10291031102C10111039
-978 222422483B49 10211031102C1011103A
-979 222422483B49 10291031102C1011103A
-980 222422483B4D 1021102D10121039
-981 222422483B4D 102310121039
-982 222422483B4D 1021102D1012103A
-983 222422483B4D 10231012103A
-984 222422483B4E 1021102F10121039
-985 222422483B4E 102510121039
-986 222422483B4E 1021102F1012103A
-987 222422483B4E 10251012103A
-988 222422483B4F 1021103110121039
-989 222422483B4F 102710121039
-990 222422483B4F 102110311012103A
-991 222422483B4F 10271012103A
-992 222422483B50 10211031102C10121039
-993 222422483B50 102910121039
-994 222422483B50 10211031102C1012103A
-995 222422483B50 10291012103A
-996 222422483B50 10211031102C10121039
-997 222422483B50 10291031102C10121039
-998 222422483B50 10211031102C1012103A
-999 222422483B50 10291031102C1012103A
-1000 222422483B54 1021102D10131039
-1001 222422483B54 102310131039
-1002 222422483B54 1021102D1013103A
-1003 222422483B54 10231013103A
-1004 222422483B55 1021102F10131039
-1005 222422483B55 102510131039
-1006 222422483B55 1021102F1013103A
-1007 222422483B55 10251013103A
-1008 222422483B56 1021103110131039
-1009 222422483B56 102710131039
-1010 222422483B56 102110311013103A
-1011 222422483B56 10271013103A
-1012 222422483B57 10211031102C10131039
-1013 222422483B57 102910131039
-1014 222422483B57 10211031102C1013103A
-1015 222422483B57 10291013103A
-1016 222422483B57 10211031102C10131039
-1017 222422483B57 10291031102C10131039
-1018 222422483B57 10211031102C1013103A
-1019 222422483B57 10291031102C1013103A
-1020 222422483B5B 1021102D10141039
-1021 222422483B5B 102310141039
-1022 222422483B5B 1021102D1014103A
-1023 222422483B5B 10231014103A
-1024 222422483B5C 1021102F10141039
-1025 222422483B5C 102510141039
-1026 222422483B5C 1021102F1014103A
-1027 222422483B5C 10251014103A
-1028 222422483B5D 1021103110141039
-1029 222422483B5D 102710141039
-1030 222422483B5D 102110311014103A
-1031 222422483B5D 10271014103A
-1032 222422483B5E 10211031102C10141039
-1033 222422483B5E 102910141039
-1034 222422483B5E 10211031102C1014103A
-1035 222422483B5E 10291014103A
-1036 222422483B5E 10211031102C10141039
-1037 222422483B5E 10291031102C10141039
-1038 222422483B5E 10211031102C1014103A
-1039 222422483B5E 10291031102C1014103A
-1040 222422483B62 1021102D10151039
-1041 222422483B62 102310151039
-1042 222422483B62 1021102D1015103A
-1043 222422483B62 10231015103A
-1044 222422483B63 1021102F10151039
-1045 222422483B63 102510151039
-1046 222422483B63 1021102F1015103A
-1047 222422483B63 10251015103A
-1048 222422483B64 1021103110151039
-1049 222422483B64 102710151039
-1050 222422483B64 102110311015103A
-1051 222422483B64 10271015103A
-1052 222422483B65 10211031102C10151039
-1053 222422483B65 102910151039
-1054 222422483B65 10211031102C1015103A
-1055 222422483B65 10291015103A
-1056 222422483B65 10211031102C10151039
-1057 222422483B65 10291031102C10151039
-1058 222422483B65 10211031102C1015103A
-1059 222422483B65 10291031102C1015103A
-1060 222422483B69 1021102D10161039
-1061 222422483B69 102310161039
-1062 222422483B69 1021102D1016103A
-1063 222422483B69 10231016103A
-1064 222422483B6A 1021102F10161039
-1065 222422483B6A 102510161039
-1066 222422483B6A 1021102F1016103A
-1067 222422483B6A 10251016103A
-1068 222422483B6B 1021103110161039
-1069 222422483B6B 102710161039
-1070 222422483B6B 102110311016103A
-1071 222422483B6B 10271016103A
-1072 222422483B6C 10211031102C10161039
-1073 222422483B6C 102910161039
-1074 222422483B6C 10211031102C1016103A
-1075 222422483B6C 10291016103A
-1076 222422483B6C 10211031102C10161039
-1077 222422483B6C 10291031102C10161039
-1078 222422483B6C 10211031102C1016103A
-1079 222422483B6C 10291031102C1016103A
-1080 222422483B70 1021102D10171039
-1081 222422483B70 102310171039
-1082 222422483B70 1021102D1017103A
-1083 222422483B70 10231017103A
-1084 222422483B71 1021102F10171039
-1085 222422483B71 102510171039
-1086 222422483B71 1021102F1017103A
-1087 222422483B71 10251017103A
-1088 222422483B72 1021103110171039
-1089 222422483B72 102710171039
-1090 222422483B72 102110311017103A
-1091 222422483B72 10271017103A
-1092 222422483B73 10211031102C10171039
-1093 222422483B73 102910171039
-1094 222422483B73 10211031102C1017103A
-1095 222422483B73 10291017103A
-1096 222422483B73 10211031102C10171039
-1097 222422483B73 10291031102C10171039
-1098 222422483B73 10211031102C1017103A
-1099 222422483B73 10291031102C1017103A
-1100 222422483B77 1021102D10181039
-1101 222422483B77 102310181039
-1102 222422483B77 1021102D1018103A
-1103 222422483B77 10231018103A
-1104 222422483B78 1021102F10181039
-1105 222422483B78 102510181039
-1106 222422483B78 1021102F1018103A
-1107 222422483B78 10251018103A
-1108 222422483B79 1021103110181039
-1109 222422483B79 102710181039
-1110 222422483B79 102110311018103A
-1111 222422483B79 10271018103A
-1112 222422483B7A 10211031102C10181039
-1113 222422483B7A 102910181039
-1114 222422483B7A 10211031102C1018103A
-1115 222422483B7A 10291018103A
-1116 222422483B7A 10211031102C10181039
-1117 222422483B7A 10291031102C10181039
-1118 222422483B7A 10211031102C1018103A
-1119 222422483B7A 10291031102C1018103A
-1120 222422483B7E 1021102D10191039
-1121 222422483B7E 102310191039
-1122 222422483B7E 1021102D1019103A
-1123 222422483B7E 10231019103A
-1124 222422483B7F 1021102F10191039
-1125 222422483B7F 102510191039
-1126 222422483B7F 1021102F1019103A
-1127 222422483B7F 10251019103A
-1128 222422483B80 1021103110191039
-1129 222422483B80 102710191039
-1130 222422483B80 102110311019103A
-1131 222422483B80 10271019103A
-1132 222422483B81 10211031102C10191039
-1133 222422483B81 102910191039
-1134 222422483B81 10211031102C1019103A
-1135 222422483B81 10291019103A
-1136 222422483B81 10211031102C10191039
-1137 222422483B81 10291031102C10191039
-1138 222422483B81 10211031102C1019103A
-1139 222422483B81 10291031102C1019103A
-1140 222422483B85 1021102D101A1039
-1141 222422483B85 1023101A1039
-1142 222422483B85 1021102D101A103A
-1143 222422483B85 1023101A103A
-1144 222422483B86 1021102F101A1039
-1145 222422483B86 1025101A1039
-1146 222422483B86 1021102F101A103A
-1147 222422483B86 1025101A103A
-1148 222422483B87 10211031101A1039
-1149 222422483B87 1027101A1039
-1150 222422483B87 10211031101A103A
-1151 222422483B87 1027101A103A
-1152 222422483B88 10211031102C101A1039
-1153 222422483B88 1029101A1039
-1154 222422483B88 10211031102C101A103A
-1155 222422483B88 1029101A103A
-1156 222422483B88 10211031102C101A1039
-1157 222422483B88 10291031102C101A1039
-1158 222422483B88 10211031102C101A103A
-1159 222422483B88 10291031102C101A103A
-1160 222422483B8C 1021102D101B1039
-1161 222422483B8C 1023101B1039
-1162 222422483B8C 1021102D101B103A
-1163 222422483B8C 1023101B103A
-1164 222422483B8D 1021102F101B1039
-1165 222422483B8D 1025101B1039
-1166 222422483B8D 1021102F101B103A
-1167 222422483B8D 1025101B103A
-1168 222422483B8E 10211031101B1039
-1169 222422483B8E 1027101B1039
-1170 222422483B8E 10211031101B103A
-1171 222422483B8E 1027101B103A
-1172 222422483B8F 10211031102C101B1039
-1173 222422483B8F 1029101B1039
-1174 222422483B8F 10211031102C101B103A
-1175 222422483B8F 1029101B103A
-1176 222422483B8F 10211031102C101B1039
-1177 222422483B8F 10291031102C101B1039
-1178 222422483B8F 10211031102C101B103A
-1179 222422483B8F 10291031102C101B103A
-1180 222422483B93 1021102D101C1039
-1181 222422483B93 1023101C1039
-1182 222422483B93 1021102D101C103A
-1183 222422483B93 1023101C103A
-1184 222422483B94 1021102F101C1039
-1185 222422483B94 1025101C1039
-1186 222422483B94 1021102F101C103A
-1187 222422483B94 1025101C103A
-1188 222422483B95 10211031101C1039
-1189 222422483B95 1027101C1039
-1190 222422483B95 10211031101C103A
-1191 222422483B95 1027101C103A
-1192 222422483B96 10211031102C101C1039
-1193 222422483B96 1029101C1039
-1194 222422483B96 10211031102C101C103A
-1195 222422483B96 1029101C103A
-1196 222422483B96 10211031102C101C1039
-1197 222422483B96 10291031102C101C1039
-1198 222422483B96 10211031102C101C103A
-1199 222422483B96 10291031102C101C103A
-1200 222422483BA1 1021102D101E1039
-1201 222422483BA1 1023101E1039
-1202 222422483BA1 1021102D101E103A
-1203 222422483BA1 1023101E103A
-1204 222422483BA2 1021102F101E1039
-1205 222422483BA2 1025101E1039
-1206 222422483BA2 1021102F101E103A
-1207 222422483BA2 1025101E103A
-1208 222422483BA3 10211031101E1039
-1209 222422483BA3 1027101E1039
-1210 222422483BA3 10211031101E103A
-1211 222422483BA3 1027101E103A
-1212 222422483BA4 10211031102C101E1039
-1213 222422483BA4 1029101E1039
-1214 222422483BA4 10211031102C101E103A
-1215 222422483BA4 1029101E103A
-1216 222422483BA4 10211031102C101E1039
-1217 222422483BA4 10291031102C101E1039
-1218 222422483BA4 10211031102C101E103A
-1219 222422483BA4 10291031102C101E103A
-1220 222422483BA8 1021102D101F1039
-1221 222422483BA8 1023101F1039
-1222 222422483BA8 1021102D101F103A
-1223 222422483BA8 1023101F103A
-1224 222422483BA9 1021102F101F1039
-1225 222422483BA9 1025101F1039
-1226 222422483BA9 1021102F101F103A
-1227 222422483BA9 1025101F103A
-1228 222422483BAA 10211031101F1039
-1229 222422483BAA 1027101F1039
-1230 222422483BAA 10211031101F103A
-1231 222422483BAA 1027101F103A
-1232 222422483BAB 10211031102C101F1039
-1233 222422483BAB 1029101F1039
-1234 222422483BAB 10211031102C101F103A
-1235 222422483BAB 1029101F103A
-1236 222422483BAB 10211031102C101F1039
-1237 222422483BAB 10291031102C101F1039
-1238 222422483BAB 10211031102C101F103A
-1239 222422483BAB 10291031102C101F103A
-1240 --- Contractions
-1241 22483AD221CD22483BBD 1031102C1000103A1000103B
-1242 22483AD221CD22483BBD 1031102C1000103A103B
-1243 22483B5921F822483B63 1014103A1014102F1015103A
-1244 22483B5921F822483B63 1014103A102F1015103A
-1245 --- Great Sa
-1246 22483BA32216 1031101E1039101E
-1247 22483BA32216 1031103F
-1248 22483BA12216 102D101E1039101E
-1249 22483BA12216 102D103F
-1250 22483BA22216 102F101E1039101E
-1251 22483BA22216 102F103F
-1252 222422483BA12216 1021102D101E1039101E
-1253 222422483BA12216 1023103F
-1254 222422483BA22216 1021102F101E1039101E
-1255 222422483BA22216 1025103F
-1256 22483B9F2216 101E1039101E
-1257 22483B9F2216 103F
-1258 --- Symbols - collate as long form
-1259 21F822483BC222483AD3 1014103E102D102F1000103A
-1260 21F822483BC222483AD3 104C
-1261 220922483BC0224222593ACB 101B103D10311037
-1262 220922483BC0224222593ACB 104D
-1263 220D22483B1322593ACC21CD22483AEE22593ACC 101C100A103A103810001031102C1004103A1038
-1264 220D22483B1322593ACC21CD22483AEE22593ACC 104E1004103A1038
-1265 22242236 1021102D
-1266 22242236 104F
-1267 --- Short Forms may need to be added here
-1268 220D22483ACD22072232 101C1000103A101A102C
-1269 220D22483ACD22072232 101C1000103A103B102C
-1270 221622052238 101E1019102E
-1271 221622052238 101E10391019102E
-1272 21F3220522483AE922593ACC 101110191004103A1038
-1273 21F3220522483AE922593ACC 1011103910191004103A1038
-1274 220D22483ACD220422483ACD 101C1000103A10181000103A
-1275 220D22483ACD220422483ACD 101C103910181000103A
-DROP TABLE t1;
-#
-# END of ctype_myanmar.inc
-#
-#
-# MDEV-7366 SELECT 'a' = BINARY 'A' returns 1 (utf8 charset, utf8_unicode_ci collation)
-#
-SET NAMES utf8 COLLATE utf8_unicode_ci;
-SELECT 'a' = BINARY 'A';
-'a' = BINARY 'A'
-0
-SELECT BINARY 'A' = 'a';
-BINARY 'A' = 'a'
-0
-#
-# Wrong result set for WHERE a='oe' COLLATE utf8_german2_ci AND a='oe'
-#
-SET NAMES utf8 COLLATE utf8_german2_ci;
-CREATE TABLE t1 (a CHAR(10) CHARACTER SET utf8);
-INSERT INTO t1 VALUES ('ö'),('oe');
-SELECT * FROM t1 WHERE a='oe' AND a='oe' COLLATE utf8_german2_ci;
-a
-oe
-SELECT * FROM t1 WHERE a='oe' COLLATE utf8_german2_ci AND a='oe';
-a
-oe
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='oe' AND a='oe' COLLATE utf8_german2_ci;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'oe' and `test`.`t1`.`a` = 'oe'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='oe' COLLATE utf8_german2_ci AND a='oe';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'oe' and `test`.`t1`.`a` = 'oe'
-DROP TABLE t1;
-#
-# End of MariaDB-10.0 tests
-#
-#
-# Start of MariaDB-10.1 tests
-#
-#
-# MDEV-6973 XOR aggregates argument collations
-#
-SELECT '10' COLLATE utf8_general_ci XOR '20' COLLATE utf8_unicode_ci;
-'10' COLLATE utf8_general_ci XOR '20' COLLATE utf8_unicode_ci
-0
-#
-# MDEV-8705 Wrong result for SELECT..WHERE latin1_bin_column='a' AND latin1_bin_column='A'
-#
-SET NAMES utf8 COLLATE utf8_german2_ci;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8 COLLATE utf8_bin);
-INSERT INTO t1 VALUES ('a'),('A');
-SELECT * FROM t1 WHERE a='a';
-a
-a
-SELECT * FROM t1 WHERE a=_utf8'a';
-a
-a
-SELECT * FROM t1 WHERE a='a' AND a=_utf8'a';
-a
-a
-DROP TABLE t1;
-SET NAMES utf8 COLLATE utf8_thai_520_w2;
-#
-# Start of ctype_uca_w2.inc
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8_thai_520_w2
-SELECT ID, SORTLEN, COLLATION_NAME, CHARACTER_SET_NAME
-FROM INFORMATION_SCHEMA.COLLATIONS
-WHERE COLLATION_NAME LIKE @@collation_connection;
-ID SORTLEN COLLATION_NAME CHARACTER_SET_NAME
-578 4 utf8_thai_520_w2 utf8
-#
-# Testing strnxfrm
-#
-CREATE TABLE t1 AS SELECT SPACE(3) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(3) CHARACTER SET utf8 COLLATE utf8_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (SPACE(0)),(SPACE(1)),(SPACE(2));
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(8))) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(8)))
- 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-20 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-2020 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4))) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4)))
- 020A020A020A020A0020002000200020
-20 020A020A020A020A0020002000200020
-2020 020A020A020A020A0020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 1)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 1))
- 020A020A020A020A
-20 020A020A020A020A
-2020 020A020A020A020A
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 2)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 2))
- 0020002000200020
-20 0020002000200020
-2020 0020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 3)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 3))
- 0020002000200020
-20 0020002000200020
-2020 0020002000200020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf8 COLLATE utf8_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_ucs2 0x3400);
-INSERT INTO t1 VALUES (_ucs2 0xF001);
-SELECT HEX(CONVERT(a USING ucs2)) AS ucs2, HEX(a), HEX(WEIGHT_STRING(a)) FROM t1;
-ucs2 HEX(a) HEX(WEIGHT_STRING(a))
-3400 E39080 FB80B4000020
-F001 EF8081 FBC1F0010020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf8 COLLATE utf8_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('A'),('À'),('Ã'),('Â'),('Ã'),('Ä'),('Ã…');
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-A 0020
-Ã 00200032
-À 00200035
-Â 0020003C
-Ã… 00200043
-Ä 00200047
-Ã 0020004E
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a DESC;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-Ã 0020004E
-Ä 00200047
-Ã… 00200043
-Â 0020003C
-À 00200035
-Ã 00200032
-A 0020
-SET @backup_character_set_connection=@@character_set_connection;
-SET @backup_collation_connection=@@collation_connection;
-SET NAMES utf8;
-SET @stmt= CONCAT('ALTER TABLE t1 MODIFY a CHAR(10)' COLLATE utf8_bin,
-' CHARACTER SET ', @backup_character_set_connection,
-' COLLATE ', @backup_collation_connection);
-PREPARE stmt FROM @stmt;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-SET collation_connection=@backup_collation_connection;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) CHARACTER SET utf8 COLLATE utf8_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-A 0020
-Ã 00200032
-À 00200035
-Â 0020003C
-Ã… 00200043
-Ä 00200047
-Ã 0020004E
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a DESC;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-Ã 0020004E
-Ä 00200047
-Ã… 00200043
-Â 0020003C
-À 00200035
-Ã 00200032
-A 0020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf8 COLLATE utf8_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('cota'),('cote'),('cotz');
-INSERT INTO t1 VALUES ('coté'),('côte'),('côté'),('cotë'),('côtë');
-SELECT * FROM t1 ORDER BY a;
-a
-cota
-cote
-coté
-cotë
-côte
-côté
-côtë
-cotz
-SELECT * FROM t1 ORDER BY a DESC;
-a
-cotz
-côtë
-côté
-côte
-cotë
-coté
-cote
-cota
-DROP TABLE t1;
-#
-# End of ctype_uca_w2.inc
-#
-#
-# Start of ctype_thai.inc
-#
-CREATE TABLE t1 (a VARCHAR(30) CHARACTER SET utf8 COLLATE utf8_bin);
-INSERT INTO t1 VALUES ('-à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡');
-INSERT INTO t1 VALUES ('à¸à¸');
-INSERT INTO t1 VALUES ('à¸à¸£à¸²à¸š');
-INSERT INTO t1 VALUES ('ข่าง');
-INSERT INTO t1 VALUES ('ข้าง');
-INSERT INTO t1 VALUES ('ข้างà¸à¸£à¸°à¸”าน');
-INSERT INTO t1 VALUES ('ข้างขึ้น');
-INSERT INTO t1 VALUES ('ข้างควาย');
-INSERT INTO t1 VALUES ('ข้างเงิน');
-INSERT INTO t1 VALUES ('ข้างà¹à¸£à¸¡');
-INSERT INTO t1 VALUES ('ข้างออà¸');
-INSERT INTO t1 VALUES ('ข้างๆ');
-INSERT INTO t1 VALUES ('ข้างๆ คูๆ');
-INSERT INTO t1 VALUES ('ขาง');
-INSERT INTO t1 VALUES ('à¹à¸‚็ง');
-INSERT INTO t1 VALUES ('à¹à¸‚่ง');
-INSERT INTO t1 VALUES ('à¹à¸‚่งขัน');
-INSERT INTO t1 VALUES ('à¹à¸‚้ง');
-INSERT INTO t1 VALUES ('à¹à¸‚้งขวา');
-INSERT INTO t1 VALUES ('à¹à¸‚็งขัน');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²à¸¯');
-INSERT INTO t1 VALUES ('บุà¸à¸à¸²');
-INSERT INTO t1 VALUES ('บุà¸-หลง');
-INSERT INTO t1 VALUES ('บุà¸à¸«à¸¥à¸‡');
-INSERT INTO t1 VALUES ('ป่า');
-INSERT INTO t1 VALUES ('ป่าน');
-INSERT INTO t1 VALUES ('ป้า');
-INSERT INTO t1 VALUES ('ป้าน');
-INSERT INTO t1 VALUES ('ป๊า');
-INSERT INTO t1 VALUES ('ป๊าน');
-INSERT INTO t1 VALUES ('ป๋า');
-INSERT INTO t1 VALUES ('ป๋าน');
-INSERT INTO t1 VALUES ('ปา');
-INSERT INTO t1 VALUES ('ปาน');
-INSERT INTO t1 VALUES ('à¹à¸›à¹‰à¸‡');
-INSERT INTO t1 VALUES ('พณิชย์');
-INSERT INTO t1 VALUES ('ม้า');
-INSERT INTO t1 VALUES ('ฯพณฯ');
-INSERT INTO t1 VALUES ('A');
-INSERT INTO t1 VALUES ('a');
-INSERT INTO t1 VALUES ('a\'');
-INSERT INTO t1 VALUES ('A-');
-INSERT INTO t1 VALUES ('a-');
-INSERT INTO t1 VALUES ('-a');
-INSERT INTO t1 VALUES ('A.');
-INSERT INTO t1 VALUES ('a.');
-INSERT INTO t1 VALUES ('A-1');
-INSERT INTO t1 VALUES ('aa');
-INSERT INTO t1 VALUES ('AA');
-INSERT INTO t1 VALUES ('A.A.');
-INSERT INTO t1 VALUES ('a.a.');
-INSERT INTO t1 VALUES ('AAA');
-INSERT INTO t1 VALUES ('A.A.A.');
-INSERT INTO t1 VALUES ('AAAA');
-INSERT INTO t1 VALUES ('A.A.A.L.');
-INSERT INTO t1 VALUES ('A.A.A.S.');
-INSERT INTO t1 VALUES ('Aachen');
-INSERT INTO t1 VALUES ('A.A.E.');
-INSERT INTO t1 VALUES ('A.Ae.E.');
-INSERT INTO t1 VALUES ('A.A.E.E.');
-INSERT INTO t1 VALUES ('AAES');
-INSERT INTO t1 VALUES ('AAF');
-INSERT INTO t1 VALUES ('A.Agr');
-INSERT INTO t1 VALUES ('aah');
-INSERT INTO t1 VALUES ('@@@@@');
-INSERT INTO t1 VALUES ('0000');
-INSERT INTO t1 VALUES ('9999');
-INSERT INTO t1 VALUES ('Aalborg');
-INSERT INTO t1 VALUES ('aide');
-INSERT INTO t1 VALUES ('air');
-INSERT INTO t1 VALUES ('@@@air');
-INSERT INTO t1 VALUES ('air@@@');
-INSERT INTO t1 VALUES ('C.A.F');
-INSERT INTO t1 VALUES ('Canon');
-INSERT INTO t1 VALUES ('coop');
-INSERT INTO t1 VALUES ('co-op');
-INSERT INTO t1 VALUES ('COOP');
-INSERT INTO t1 VALUES ('CO-OP');
-INSERT INTO t1 VALUES ('Copenhegen');
-INSERT INTO t1 VALUES ('McArthur');
-INSERT INTO t1 VALUES ('Mc Arthur');
-INSERT INTO t1 VALUES ('Mc Mahon');
-INSERT INTO t1 VALUES ('vice-president');
-INSERT INTO t1 VALUES ('vice versa');
-INSERT INTO t1 VALUES ('vice-versa');
-INSERT INTO t1 VALUES ('10 ลิตร');
-INSERT INTO t1 VALUES ('๑๠ลิตร');
-INSERT INTO t1 VALUES ('10 litre');
-INSERT INTO t1 VALUES ('10 litre (10 ลิตร)');
-INSERT INTO t1 VALUES ('10 ลิตร (10 litre)');
-INSERT INTO t1 VALUES ('10 litre (๑๠ลิตร)');
-INSERT INTO t1 VALUES ('๑๠ลิตร (10 litre)');
-INSERT INTO t1 VALUES ('๑๠ลิตร [10 litre]');
-INSERT INTO t1 VALUES ('๑๠ลิตร {10 litre}');
-ALTER TABLE t1 ORDER BY a;
-SET @backup_character_set_connection=@@character_set_connection;
-SET @backup_collation_connection=@@collation_connection;
-SET NAMES utf8;
-SET @stmt= CONCAT('ALTER TABLE t1 MODIFY a VARCHAR(30)',
-' CHARACTER SET ', @backup_character_set_connection,
-' COLLATE ', @backup_collation_connection,
-' , ADD id INT NOT NULL AUTO_INCREMENT PRIMARY KEY'
- ' , ADD KEY a_id (a, id)');
-PREPARE stmt FROM @stmt;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-SET collation_connection=@backup_collation_connection;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) CHARACTER SET utf8 COLLATE utf8_thai_520_w2 DEFAULT NULL,
- `id` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`),
- KEY `a_id` (`a`,`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=97 DEFAULT CHARSET=latin1
-#
-# Ascending sort, using filesort
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a, BINARY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 97 NULL 96 Using index; Using filesort
-SELECT a FROM t1 ORDER BY a, BINARY a;
-a
--a
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
-@@@@@
-@@@air
-0000
-10 litre
-10 litre (10 ลิตร)
-10 litre (๑๠ลิตร)
-10 ลิตร
-๑๠ลิตร
-10 ลิตร (10 litre)
-๑๠ลิตร (10 litre)
-๑๠ลิตร [10 litre]
-๑๠ลิตร {10 litre}
-9999
-A
-a
-A-
-a-
-A-1
-A.
-a.
-A.A.
-a.a.
-A.A.A.
-A.A.A.L.
-A.A.A.S.
-A.A.E.
-A.A.E.E.
-A.Ae.E.
-A.Agr
-a'
-AA
-aa
-AAA
-AAAA
-Aachen
-AAES
-AAF
-aah
-Aalborg
-aide
-air
-air@@@
-C.A.F
-Canon
-CO-OP
-co-op
-COOP
-coop
-Copenhegen
-Mc Arthur
-Mc Mahon
-McArthur
-vice versa
-vice-president
-vice-versa
-à¸à¸
-à¸à¸£à¸²à¸š
-ขาง
-ข่าง
-ข้าง
-ข้างๆ
-ข้างๆ คูๆ
-ข้างà¸à¸£à¸°à¸”าน
-ข้างขึ้น
-ข้างควาย
-ข้างเงิน
-ข้างà¹à¸£à¸¡
-ข้างออà¸
-à¹à¸‚็ง
-à¹à¸‚่ง
-à¹à¸‚้ง
-à¹à¸‚้งขวา
-à¹à¸‚็งขัน
-à¹à¸‚่งขัน
-ทูลเà¸à¸¥à¹‰à¸²
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-บุà¸-หลง
-บุà¸à¸à¸²
-บุà¸à¸«à¸¥à¸‡
-ปา
-ป่า
-ป้า
-ป๊า
-ป๋า
-ปาน
-ป่าน
-ป้าน
-ป๊าน
-ป๋าน
-à¹à¸›à¹‰à¸‡
-พณิชย์
-ม้า
-ฯพณฯ
-#
-# Descending sort, using filesort
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 97 NULL 96 Using index; Using filesort
-SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC;
-a
-ฯพณฯ
-ม้า
-พณิชย์
-à¹à¸›à¹‰à¸‡
-ป๋าน
-ป๊าน
-ป้าน
-ป่าน
-ปาน
-ป๋า
-ป๊า
-ป้า
-ป่า
-ปา
-บุà¸à¸«à¸¥à¸‡
-บุà¸à¸à¸²
-บุà¸-หลง
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²
-à¹à¸‚่งขัน
-à¹à¸‚็งขัน
-à¹à¸‚้งขวา
-à¹à¸‚้ง
-à¹à¸‚่ง
-à¹à¸‚็ง
-ข้างออà¸
-ข้างà¹à¸£à¸¡
-ข้างเงิน
-ข้างควาย
-ข้างขึ้น
-ข้างà¸à¸£à¸°à¸”าน
-ข้างๆ คูๆ
-ข้างๆ
-ข้าง
-ข่าง
-ขาง
-à¸à¸£à¸²à¸š
-à¸à¸
-vice-versa
-vice-president
-vice versa
-McArthur
-Mc Mahon
-Mc Arthur
-Copenhegen
-coop
-COOP
-co-op
-CO-OP
-Canon
-C.A.F
-air@@@
-air
-aide
-Aalborg
-aah
-AAF
-AAES
-Aachen
-AAAA
-AAA
-aa
-AA
-a'
-A.Agr
-A.Ae.E.
-A.A.E.E.
-A.A.E.
-A.A.A.S.
-A.A.A.L.
-A.A.A.
-a.a.
-A.A.
-a.
-A.
-A-1
-a-
-A-
-a
-A
-9999
-๑๠ลิตร {10 litre}
-๑๠ลิตร [10 litre]
-๑๠ลิตร (10 litre)
-10 ลิตร (10 litre)
-๑๠ลิตร
-10 ลิตร
-10 litre (๑๠ลิตร)
-10 litre (10 ลิตร)
-10 litre
-0000
-@@@air
-@@@@@
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
--a
-#
-# Ascending sort, using index
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a, id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 97 NULL 96 Using index
-SELECT a FROM t1 ORDER BY a, id;
-a
--a
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
-@@@@@
-@@@air
-0000
-10 litre
-10 litre (10 ลิตร)
-10 litre (๑๠ลิตร)
-10 ลิตร
-๑๠ลิตร
-10 ลิตร (10 litre)
-๑๠ลิตร (10 litre)
-๑๠ลิตร [10 litre]
-๑๠ลิตร {10 litre}
-9999
-A
-a
-A-
-a-
-A-1
-A.
-a.
-A.A.
-a.a.
-A.A.A.
-A.A.A.L.
-A.A.A.S.
-A.A.E.
-A.A.E.E.
-A.Ae.E.
-A.Agr
-a'
-AA
-aa
-AAA
-AAAA
-Aachen
-AAES
-AAF
-aah
-Aalborg
-aide
-air
-air@@@
-C.A.F
-Canon
-CO-OP
-co-op
-COOP
-coop
-Copenhegen
-Mc Arthur
-Mc Mahon
-McArthur
-vice versa
-vice-president
-vice-versa
-à¸à¸
-à¸à¸£à¸²à¸š
-ขาง
-ข่าง
-ข้าง
-ข้างๆ
-ข้างๆ คูๆ
-ข้างà¸à¸£à¸°à¸”าน
-ข้างขึ้น
-ข้างควาย
-ข้างเงิน
-ข้างà¹à¸£à¸¡
-ข้างออà¸
-à¹à¸‚็ง
-à¹à¸‚่ง
-à¹à¸‚้ง
-à¹à¸‚้งขวา
-à¹à¸‚็งขัน
-à¹à¸‚่งขัน
-ทูลเà¸à¸¥à¹‰à¸²
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-บุà¸-หลง
-บุà¸à¸à¸²
-บุà¸à¸«à¸¥à¸‡
-ปา
-ป่า
-ป้า
-ป๊า
-ป๋า
-ปาน
-ป่าน
-ป้าน
-ป๊าน
-ป๋าน
-à¹à¸›à¹‰à¸‡
-พณิชย์
-ม้า
-ฯพณฯ
-#
-# Descending sort, using index
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a DESC, id DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 97 NULL 96 Using index
-SELECT a FROM t1 ORDER BY a DESC, id DESC;
-a
-ฯพณฯ
-ม้า
-พณิชย์
-à¹à¸›à¹‰à¸‡
-ป๋าน
-ป๊าน
-ป้าน
-ป่าน
-ปาน
-ป๋า
-ป๊า
-ป้า
-ป่า
-ปา
-บุà¸à¸«à¸¥à¸‡
-บุà¸à¸à¸²
-บุà¸-หลง
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²
-à¹à¸‚่งขัน
-à¹à¸‚็งขัน
-à¹à¸‚้งขวา
-à¹à¸‚้ง
-à¹à¸‚่ง
-à¹à¸‚็ง
-ข้างออà¸
-ข้างà¹à¸£à¸¡
-ข้างเงิน
-ข้างควาย
-ข้างขึ้น
-ข้างà¸à¸£à¸°à¸”าน
-ข้างๆ คูๆ
-ข้างๆ
-ข้าง
-ข่าง
-ขาง
-à¸à¸£à¸²à¸š
-à¸à¸
-vice-versa
-vice-president
-vice versa
-McArthur
-Mc Mahon
-Mc Arthur
-Copenhegen
-coop
-COOP
-co-op
-CO-OP
-Canon
-C.A.F
-air@@@
-air
-aide
-Aalborg
-aah
-AAF
-AAES
-Aachen
-AAAA
-AAA
-aa
-AA
-a'
-A.Agr
-A.Ae.E.
-A.A.E.E.
-A.A.E.
-A.A.A.S.
-A.A.A.L.
-A.A.A.
-a.a.
-A.A.
-a.
-A.
-A-1
-a-
-A-
-a
-A
-9999
-๑๠ลิตร {10 litre}
-๑๠ลิตร [10 litre]
-๑๠ลิตร (10 litre)
-10 ลิตร (10 litre)
-๑๠ลิตร
-10 ลิตร
-10 litre (๑๠ลิตร)
-10 litre (10 ลิตร)
-10 litre
-0000
-@@@air
-@@@@@
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
--a
-DROP TABLE t1;
-#
-# End of ctype_thai.inc
-#
-SET NAMES utf8;
-SET collation_connection=ucs2_thai_520_w2;
-#
-# Start of ctype_uca_w2.inc
-#
-SELECT @@collation_connection;
-@@collation_connection
-ucs2_thai_520_w2
-SELECT ID, SORTLEN, COLLATION_NAME, CHARACTER_SET_NAME
-FROM INFORMATION_SCHEMA.COLLATIONS
-WHERE COLLATION_NAME LIKE @@collation_connection;
-ID SORTLEN COLLATION_NAME CHARACTER_SET_NAME
-642 4 ucs2_thai_520_w2 ucs2
-#
-# Testing strnxfrm
-#
-CREATE TABLE t1 AS SELECT SPACE(3) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(3) CHARACTER SET ucs2 COLLATE ucs2_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (SPACE(0)),(SPACE(1)),(SPACE(2));
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(8))) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(8)))
- 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-0020 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-00200020 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4))) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4)))
- 020A020A020A020A0020002000200020
-0020 020A020A020A020A0020002000200020
-00200020 020A020A020A020A0020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 1)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 1))
- 020A020A020A020A
-0020 020A020A020A020A
-00200020 020A020A020A020A
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 2)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 2))
- 0020002000200020
-0020 0020002000200020
-00200020 0020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 3)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 3))
- 0020002000200020
-0020 0020002000200020
-00200020 0020002000200020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_ucs2 0x3400);
-INSERT INTO t1 VALUES (_ucs2 0xF001);
-SELECT HEX(CONVERT(a USING ucs2)) AS ucs2, HEX(a), HEX(WEIGHT_STRING(a)) FROM t1;
-ucs2 HEX(a) HEX(WEIGHT_STRING(a))
-3400 3400 FB80B4000020
-F001 F001 FBC1F0010020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('A'),('À'),('Ã'),('Â'),('Ã'),('Ä'),('Ã…');
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-A 0020
-Ã 00200032
-À 00200035
-Â 0020003C
-Ã… 00200043
-Ä 00200047
-Ã 0020004E
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a DESC;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-Ã 0020004E
-Ä 00200047
-Ã… 00200043
-Â 0020003C
-À 00200035
-Ã 00200032
-A 0020
-SET @backup_character_set_connection=@@character_set_connection;
-SET @backup_collation_connection=@@collation_connection;
-SET NAMES utf8;
-SET @stmt= CONCAT('ALTER TABLE t1 MODIFY a CHAR(10)' COLLATE utf8_bin,
-' CHARACTER SET ', @backup_character_set_connection,
-' COLLATE ', @backup_collation_connection);
-PREPARE stmt FROM @stmt;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-SET collation_connection=@backup_collation_connection;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) CHARACTER SET ucs2 COLLATE ucs2_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-A 0020
-Ã 00200032
-À 00200035
-Â 0020003C
-Ã… 00200043
-Ä 00200047
-Ã 0020004E
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a DESC;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-Ã 0020004E
-Ä 00200047
-Ã… 00200043
-Â 0020003C
-À 00200035
-Ã 00200032
-A 0020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('cota'),('cote'),('cotz');
-INSERT INTO t1 VALUES ('coté'),('côte'),('côté'),('cotë'),('côtë');
-SELECT * FROM t1 ORDER BY a;
-a
-cota
-cote
-coté
-cotë
-côte
-côté
-côtë
-cotz
-SELECT * FROM t1 ORDER BY a DESC;
-a
-cotz
-côtë
-côté
-côte
-cotë
-coté
-cote
-cota
-DROP TABLE t1;
-#
-# End of ctype_uca_w2.inc
-#
-#
-# Start of ctype_thai.inc
-#
-CREATE TABLE t1 (a VARCHAR(30) CHARACTER SET utf8 COLLATE utf8_bin);
-INSERT INTO t1 VALUES ('-à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡');
-INSERT INTO t1 VALUES ('à¸à¸');
-INSERT INTO t1 VALUES ('à¸à¸£à¸²à¸š');
-INSERT INTO t1 VALUES ('ข่าง');
-INSERT INTO t1 VALUES ('ข้าง');
-INSERT INTO t1 VALUES ('ข้างà¸à¸£à¸°à¸”าน');
-INSERT INTO t1 VALUES ('ข้างขึ้น');
-INSERT INTO t1 VALUES ('ข้างควาย');
-INSERT INTO t1 VALUES ('ข้างเงิน');
-INSERT INTO t1 VALUES ('ข้างà¹à¸£à¸¡');
-INSERT INTO t1 VALUES ('ข้างออà¸');
-INSERT INTO t1 VALUES ('ข้างๆ');
-INSERT INTO t1 VALUES ('ข้างๆ คูๆ');
-INSERT INTO t1 VALUES ('ขาง');
-INSERT INTO t1 VALUES ('à¹à¸‚็ง');
-INSERT INTO t1 VALUES ('à¹à¸‚่ง');
-INSERT INTO t1 VALUES ('à¹à¸‚่งขัน');
-INSERT INTO t1 VALUES ('à¹à¸‚้ง');
-INSERT INTO t1 VALUES ('à¹à¸‚้งขวา');
-INSERT INTO t1 VALUES ('à¹à¸‚็งขัน');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²à¸¯');
-INSERT INTO t1 VALUES ('บุà¸à¸à¸²');
-INSERT INTO t1 VALUES ('บุà¸-หลง');
-INSERT INTO t1 VALUES ('บุà¸à¸«à¸¥à¸‡');
-INSERT INTO t1 VALUES ('ป่า');
-INSERT INTO t1 VALUES ('ป่าน');
-INSERT INTO t1 VALUES ('ป้า');
-INSERT INTO t1 VALUES ('ป้าน');
-INSERT INTO t1 VALUES ('ป๊า');
-INSERT INTO t1 VALUES ('ป๊าน');
-INSERT INTO t1 VALUES ('ป๋า');
-INSERT INTO t1 VALUES ('ป๋าน');
-INSERT INTO t1 VALUES ('ปา');
-INSERT INTO t1 VALUES ('ปาน');
-INSERT INTO t1 VALUES ('à¹à¸›à¹‰à¸‡');
-INSERT INTO t1 VALUES ('พณิชย์');
-INSERT INTO t1 VALUES ('ม้า');
-INSERT INTO t1 VALUES ('ฯพณฯ');
-INSERT INTO t1 VALUES ('A');
-INSERT INTO t1 VALUES ('a');
-INSERT INTO t1 VALUES ('a\'');
-INSERT INTO t1 VALUES ('A-');
-INSERT INTO t1 VALUES ('a-');
-INSERT INTO t1 VALUES ('-a');
-INSERT INTO t1 VALUES ('A.');
-INSERT INTO t1 VALUES ('a.');
-INSERT INTO t1 VALUES ('A-1');
-INSERT INTO t1 VALUES ('aa');
-INSERT INTO t1 VALUES ('AA');
-INSERT INTO t1 VALUES ('A.A.');
-INSERT INTO t1 VALUES ('a.a.');
-INSERT INTO t1 VALUES ('AAA');
-INSERT INTO t1 VALUES ('A.A.A.');
-INSERT INTO t1 VALUES ('AAAA');
-INSERT INTO t1 VALUES ('A.A.A.L.');
-INSERT INTO t1 VALUES ('A.A.A.S.');
-INSERT INTO t1 VALUES ('Aachen');
-INSERT INTO t1 VALUES ('A.A.E.');
-INSERT INTO t1 VALUES ('A.Ae.E.');
-INSERT INTO t1 VALUES ('A.A.E.E.');
-INSERT INTO t1 VALUES ('AAES');
-INSERT INTO t1 VALUES ('AAF');
-INSERT INTO t1 VALUES ('A.Agr');
-INSERT INTO t1 VALUES ('aah');
-INSERT INTO t1 VALUES ('@@@@@');
-INSERT INTO t1 VALUES ('0000');
-INSERT INTO t1 VALUES ('9999');
-INSERT INTO t1 VALUES ('Aalborg');
-INSERT INTO t1 VALUES ('aide');
-INSERT INTO t1 VALUES ('air');
-INSERT INTO t1 VALUES ('@@@air');
-INSERT INTO t1 VALUES ('air@@@');
-INSERT INTO t1 VALUES ('C.A.F');
-INSERT INTO t1 VALUES ('Canon');
-INSERT INTO t1 VALUES ('coop');
-INSERT INTO t1 VALUES ('co-op');
-INSERT INTO t1 VALUES ('COOP');
-INSERT INTO t1 VALUES ('CO-OP');
-INSERT INTO t1 VALUES ('Copenhegen');
-INSERT INTO t1 VALUES ('McArthur');
-INSERT INTO t1 VALUES ('Mc Arthur');
-INSERT INTO t1 VALUES ('Mc Mahon');
-INSERT INTO t1 VALUES ('vice-president');
-INSERT INTO t1 VALUES ('vice versa');
-INSERT INTO t1 VALUES ('vice-versa');
-INSERT INTO t1 VALUES ('10 ลิตร');
-INSERT INTO t1 VALUES ('๑๠ลิตร');
-INSERT INTO t1 VALUES ('10 litre');
-INSERT INTO t1 VALUES ('10 litre (10 ลิตร)');
-INSERT INTO t1 VALUES ('10 ลิตร (10 litre)');
-INSERT INTO t1 VALUES ('10 litre (๑๠ลิตร)');
-INSERT INTO t1 VALUES ('๑๠ลิตร (10 litre)');
-INSERT INTO t1 VALUES ('๑๠ลิตร [10 litre]');
-INSERT INTO t1 VALUES ('๑๠ลิตร {10 litre}');
-ALTER TABLE t1 ORDER BY a;
-SET @backup_character_set_connection=@@character_set_connection;
-SET @backup_collation_connection=@@collation_connection;
-SET NAMES utf8;
-SET @stmt= CONCAT('ALTER TABLE t1 MODIFY a VARCHAR(30)',
-' CHARACTER SET ', @backup_character_set_connection,
-' COLLATE ', @backup_collation_connection,
-' , ADD id INT NOT NULL AUTO_INCREMENT PRIMARY KEY'
- ' , ADD KEY a_id (a, id)');
-PREPARE stmt FROM @stmt;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-SET collation_connection=@backup_collation_connection;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) CHARACTER SET ucs2 COLLATE ucs2_thai_520_w2 DEFAULT NULL,
- `id` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`),
- KEY `a_id` (`a`,`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=97 DEFAULT CHARSET=latin1
-#
-# Ascending sort, using filesort
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a, BINARY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 67 NULL 96 Using index; Using filesort
-SELECT a FROM t1 ORDER BY a, BINARY a;
-a
--a
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
-@@@@@
-@@@air
-0000
-10 litre
-10 litre (10 ลิตร)
-10 litre (๑๠ลิตร)
-10 ลิตร
-๑๠ลิตร
-10 ลิตร (10 litre)
-๑๠ลิตร (10 litre)
-๑๠ลิตร [10 litre]
-๑๠ลิตร {10 litre}
-9999
-A
-a
-A-
-a-
-A-1
-A.
-a.
-A.A.
-a.a.
-A.A.A.
-A.A.A.L.
-A.A.A.S.
-A.A.E.
-A.A.E.E.
-A.Ae.E.
-A.Agr
-a'
-AA
-aa
-AAA
-AAAA
-Aachen
-AAES
-AAF
-aah
-Aalborg
-aide
-air
-air@@@
-C.A.F
-Canon
-CO-OP
-co-op
-COOP
-coop
-Copenhegen
-Mc Arthur
-Mc Mahon
-McArthur
-vice versa
-vice-president
-vice-versa
-à¸à¸
-à¸à¸£à¸²à¸š
-ขาง
-ข่าง
-ข้าง
-ข้างๆ
-ข้างๆ คูๆ
-ข้างà¸à¸£à¸°à¸”าน
-ข้างขึ้น
-ข้างควาย
-ข้างเงิน
-ข้างà¹à¸£à¸¡
-ข้างออà¸
-à¹à¸‚็ง
-à¹à¸‚่ง
-à¹à¸‚้ง
-à¹à¸‚้งขวา
-à¹à¸‚็งขัน
-à¹à¸‚่งขัน
-ทูลเà¸à¸¥à¹‰à¸²
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-บุà¸-หลง
-บุà¸à¸à¸²
-บุà¸à¸«à¸¥à¸‡
-ปา
-ป่า
-ป้า
-ป๊า
-ป๋า
-ปาน
-ป่าน
-ป้าน
-ป๊าน
-ป๋าน
-à¹à¸›à¹‰à¸‡
-พณิชย์
-ม้า
-ฯพณฯ
-#
-# Descending sort, using filesort
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 67 NULL 96 Using index; Using filesort
-SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC;
-a
-ฯพณฯ
-ม้า
-พณิชย์
-à¹à¸›à¹‰à¸‡
-ป๋าน
-ป๊าน
-ป้าน
-ป่าน
-ปาน
-ป๋า
-ป๊า
-ป้า
-ป่า
-ปา
-บุà¸à¸«à¸¥à¸‡
-บุà¸à¸à¸²
-บุà¸-หลง
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²
-à¹à¸‚่งขัน
-à¹à¸‚็งขัน
-à¹à¸‚้งขวา
-à¹à¸‚้ง
-à¹à¸‚่ง
-à¹à¸‚็ง
-ข้างออà¸
-ข้างà¹à¸£à¸¡
-ข้างเงิน
-ข้างควาย
-ข้างขึ้น
-ข้างà¸à¸£à¸°à¸”าน
-ข้างๆ คูๆ
-ข้างๆ
-ข้าง
-ข่าง
-ขาง
-à¸à¸£à¸²à¸š
-à¸à¸
-vice-versa
-vice-president
-vice versa
-McArthur
-Mc Mahon
-Mc Arthur
-Copenhegen
-coop
-COOP
-co-op
-CO-OP
-Canon
-C.A.F
-air@@@
-air
-aide
-Aalborg
-aah
-AAF
-AAES
-Aachen
-AAAA
-AAA
-aa
-AA
-a'
-A.Agr
-A.Ae.E.
-A.A.E.E.
-A.A.E.
-A.A.A.S.
-A.A.A.L.
-A.A.A.
-a.a.
-A.A.
-a.
-A.
-A-1
-a-
-A-
-a
-A
-9999
-๑๠ลิตร {10 litre}
-๑๠ลิตร [10 litre]
-๑๠ลิตร (10 litre)
-10 ลิตร (10 litre)
-๑๠ลิตร
-10 ลิตร
-10 litre (๑๠ลิตร)
-10 litre (10 ลิตร)
-10 litre
-0000
-@@@air
-@@@@@
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
--a
-#
-# Ascending sort, using index
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a, id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 67 NULL 96 Using index
-SELECT a FROM t1 ORDER BY a, id;
-a
--a
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
-@@@@@
-@@@air
-0000
-10 litre
-10 litre (10 ลิตร)
-10 litre (๑๠ลิตร)
-10 ลิตร
-๑๠ลิตร
-10 ลิตร (10 litre)
-๑๠ลิตร (10 litre)
-๑๠ลิตร [10 litre]
-๑๠ลิตร {10 litre}
-9999
-A
-a
-A-
-a-
-A-1
-A.
-a.
-A.A.
-a.a.
-A.A.A.
-A.A.A.L.
-A.A.A.S.
-A.A.E.
-A.A.E.E.
-A.Ae.E.
-A.Agr
-a'
-AA
-aa
-AAA
-AAAA
-Aachen
-AAES
-AAF
-aah
-Aalborg
-aide
-air
-air@@@
-C.A.F
-Canon
-CO-OP
-co-op
-COOP
-coop
-Copenhegen
-Mc Arthur
-Mc Mahon
-McArthur
-vice versa
-vice-president
-vice-versa
-à¸à¸
-à¸à¸£à¸²à¸š
-ขาง
-ข่าง
-ข้าง
-ข้างๆ
-ข้างๆ คูๆ
-ข้างà¸à¸£à¸°à¸”าน
-ข้างขึ้น
-ข้างควาย
-ข้างเงิน
-ข้างà¹à¸£à¸¡
-ข้างออà¸
-à¹à¸‚็ง
-à¹à¸‚่ง
-à¹à¸‚้ง
-à¹à¸‚้งขวา
-à¹à¸‚็งขัน
-à¹à¸‚่งขัน
-ทูลเà¸à¸¥à¹‰à¸²
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-บุà¸-หลง
-บุà¸à¸à¸²
-บุà¸à¸«à¸¥à¸‡
-ปา
-ป่า
-ป้า
-ป๊า
-ป๋า
-ปาน
-ป่าน
-ป้าน
-ป๊าน
-ป๋าน
-à¹à¸›à¹‰à¸‡
-พณิชย์
-ม้า
-ฯพณฯ
-#
-# Descending sort, using index
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a DESC, id DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 67 NULL 96 Using index
-SELECT a FROM t1 ORDER BY a DESC, id DESC;
-a
-ฯพณฯ
-ม้า
-พณิชย์
-à¹à¸›à¹‰à¸‡
-ป๋าน
-ป๊าน
-ป้าน
-ป่าน
-ปาน
-ป๋า
-ป๊า
-ป้า
-ป่า
-ปา
-บุà¸à¸«à¸¥à¸‡
-บุà¸à¸à¸²
-บุà¸-หลง
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²
-à¹à¸‚่งขัน
-à¹à¸‚็งขัน
-à¹à¸‚้งขวา
-à¹à¸‚้ง
-à¹à¸‚่ง
-à¹à¸‚็ง
-ข้างออà¸
-ข้างà¹à¸£à¸¡
-ข้างเงิน
-ข้างควาย
-ข้างขึ้น
-ข้างà¸à¸£à¸°à¸”าน
-ข้างๆ คูๆ
-ข้างๆ
-ข้าง
-ข่าง
-ขาง
-à¸à¸£à¸²à¸š
-à¸à¸
-vice-versa
-vice-president
-vice versa
-McArthur
-Mc Mahon
-Mc Arthur
-Copenhegen
-coop
-COOP
-co-op
-CO-OP
-Canon
-C.A.F
-air@@@
-air
-aide
-Aalborg
-aah
-AAF
-AAES
-Aachen
-AAAA
-AAA
-aa
-AA
-a'
-A.Agr
-A.Ae.E.
-A.A.E.E.
-A.A.E.
-A.A.A.S.
-A.A.A.L.
-A.A.A.
-a.a.
-A.A.
-a.
-A.
-A-1
-a-
-A-
-a
-A
-9999
-๑๠ลิตร {10 litre}
-๑๠ลิตร [10 litre]
-๑๠ลิตร (10 litre)
-10 ลิตร (10 litre)
-๑๠ลิตร
-10 ลิตร
-10 litre (๑๠ลิตร)
-10 litre (10 ลิตร)
-10 litre
-0000
-@@@air
-@@@@@
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
--a
-DROP TABLE t1;
-#
-# End of ctype_thai.inc
-#
-#
-# End of MariaDB-10.1 tests
-#
-#
-# Start of MariaDB-10.2 tests
-#
-#
-# MDEV-9407 Illegal mix of collation when using GROUP_CONCAT in a VIEW
-#
-SET NAMES utf8;
-CREATE TABLE t1 (col1 VARCHAR(12) CHARACTER SET utf8 COLLATE utf8_unicode_ci);
-INSERT INTO t1 VALUES ('a'),('b');
-CREATE VIEW v1 AS SELECT group_concat('f') AS col1;
-SELECT col1 FROM v1 UNION SELECT col1 FROM t1;
-col1
-f
-a
-b
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# End of MariaDB-10.2 tests
-#
diff --git a/mysql-test/r/ctype_uca_innodb.result b/mysql-test/r/ctype_uca_innodb.result
deleted file mode 100644
index c04a99c8cd3..00000000000
--- a/mysql-test/r/ctype_uca_innodb.result
+++ /dev/null
@@ -1,254 +0,0 @@
-#
-# Start of 5.5 tests
-#
-#
-# MDEV-7649 wrong result when comparing utf8 column with an invalid literal
-#
-SET NAMES utf8 COLLATE utf8_unicode_ci;
-#
-# Start of ctype_utf8_ilseq.inc
-#
-CREATE TABLE t1 ENGINE=InnoDB AS SELECT REPEAT(' ', 60) AS ch LIMIT 0;;
-ALTER TABLE t1
-ADD id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
-ADD KEY(ch);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `ch` varchar(60) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`),
- KEY `ch` (`ch`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-INSERT INTO t1 (ch) VALUES ('admin'),('admin1');
-SELECT ch FROM t1 WHERE ch='adminðŒ†';
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='adminðŒ†';
-ch
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='adminðŒ†';
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-DELETE FROM t1;
-INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????');
-INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b');
-INSERT INTO t1 (ch) VALUES ('az'),('a?z'),('a??z'),('a???z'),('a????z');
-INSERT INTO t1 (ch) VALUES ('z');
-INSERT INTO t1 (ch) VALUES (_utf8 0x61D080);
-INSERT INTO t1 (ch) VALUES (_utf8 0x61D680);
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-ch
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-ch
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-ch
-z
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-ch
-z
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-ch
-z
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-ch
-z
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-ALTER TABLE t1 DROP KEY ch;
-# 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'''');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'b''');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch<''a', 0xD1,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch>''a', 0xD1,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-z
-# 0xEA9A96 would be a good 3-byte character, 0xEA9A is an incomplete sequence
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xEA9A,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xEA9A,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-# 0x8F is a bad byte sequence (an mb2tail without mb2head)
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-# 0x8F8F is a bad byte sequence (an mb2tail without mb2head, two times)
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F8F,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F8F,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-DROP TABLE t1;
-#
-# End of ctype_utf8_ilseq.inc
-#
-#
-# End of 5.5 tests
-#
diff --git a/mysql-test/r/ctype_uca_partitions.result b/mysql-test/r/ctype_uca_partitions.result
deleted file mode 100644
index 154de148ee0..00000000000
--- a/mysql-test/r/ctype_uca_partitions.result
+++ /dev/null
@@ -1,86 +0,0 @@
-SET NAMES utf8;
-CREATE TABLE t1 (c1 VARCHAR(10) CHARACTER SET utf8 COLLATE utf8_thai_520_w2)
-PARTITION BY KEY(c1) PARTITIONS 3;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`c1`)
-PARTITIONS 3
-INSERT INTO t1 VALUES ('A'),('À'),('Ã'),('Â'),('Ã'),('Ä'),('Ã…');
-INSERT INTO t1 VALUES ('B');
-INSERT INTO t1 VALUES ('C');
-INSERT INTO t1 VALUES ('D');
-INSERT INTO t1 VALUES ('E');
-INSERT INTO t1 VALUES ('F');
-INSERT INTO t1 VALUES ('G');
-INSERT INTO t1 VALUES ('H');
-INSERT INTO t1 VALUES ('I');
-INSERT INTO t1 VALUES ('J');
-INSERT INTO t1 VALUES ('K');
-INSERT INTO t1 VALUES ('L'),('Ĺ'),('Ä»'),('Ľ'),('Ä¿'),('Å');
-INSERT INTO t1 VALUES ('M');
-INSERT INTO t1 VALUES ('N');
-INSERT INTO t1 VALUES ('O'),('Ò'),('Ó'),('Ô'),('Õ'),('Ö'),('Ø');
-INSERT INTO t1 VALUES ('P');
-INSERT INTO t1 VALUES ('Q');
-INSERT INTO t1 VALUES ('R');
-INSERT INTO t1 VALUES ('S');
-INSERT INTO t1 VALUES ('T');
-INSERT INTO t1 VALUES ('U');
-INSERT INTO t1 VALUES ('V');
-INSERT INTO t1 VALUES ('W');
-INSERT INTO t1 VALUES ('X');
-INSERT INTO t1 VALUES ('Y');
-INSERT INTO t1 VALUES ('Z');
-SELECT * FROM t1 PARTITION (p0) ORDER BY c1;
-c1
-J
-K
-L
-Ĺ
-Ľ
-Ä»
-Ä¿
-M
-Q
-R
-T
-V
-X
-SELECT * FROM t1 PARTITION (p1) ORDER BY c1;
-c1
-A
-À
-Â
-Ã…
-Ä
-Ã
-D
-E
-F
-G
-I
-N
-S
-U
-W
-Z
-SELECT * FROM t1 PARTITION (p2) ORDER BY c1;
-c1
-B
-C
-H
-O
-Ó
-Ã’
-Ô
-Ö
-Õ
-Ø
-P
-Y
-DROP TABLE t1;
diff --git a/mysql-test/r/ctype_ucs.result b/mysql-test/r/ctype_ucs.result
deleted file mode 100644
index fcc8f27010c..00000000000
--- a/mysql-test/r/ctype_ucs.result
+++ /dev/null
@@ -1,6326 +0,0 @@
-DROP TABLE IF EXISTS t1;
-SET @test_character_set= 'ucs2';
-SET @test_collation= 'ucs2_general_ci';
-SET @safe_character_set_server= @@character_set_server;
-SET @safe_collation_server= @@collation_server;
-SET @safe_character_set_client= @@character_set_client;
-SET @safe_character_set_results= @@character_set_results;
-SET character_set_server= @test_character_set;
-SET collation_server= @test_collation;
-CREATE DATABASE d1;
-USE d1;
-CREATE TABLE t1 (c CHAR(10), KEY(c));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c char(10) ucs2_general_ci YES MUL NULL
-INSERT INTO t1 VALUES ('aaa'),('aaaa'),('aaaaa');
-SELECT c as want3results FROM t1 WHERE c LIKE 'aaa%';
-want3results
-aaa
-aaaa
-aaaaa
-DROP TABLE t1;
-CREATE TABLE t1 (c1 varchar(15), KEY c1 (c1(2)));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c1 varchar(15) ucs2_general_ci YES MUL NULL
-INSERT INTO t1 VALUES ('location'),('loberge'),('lotre'),('boabab');
-SELECT c1 as want3results from t1 where c1 like 'l%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want3results from t1 where c1 like 'lo%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want1result from t1 where c1 like 'loc%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'loca%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locat%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locati%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locatio%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'location%';
-want1result
-location
-DROP TABLE t1;
-create table t1 (a set('a') not null);
-insert ignore into t1 values (),();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-select cast(a as char(1)) from t1;
-cast(a as char(1))
-
-
-select a sounds like a from t1;
-a sounds like a
-1
-1
-select 1 from t1 order by cast(a as char(1));
-1
-1
-1
-drop table t1;
-#
-# MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found
-#
-SET character_set_client=latin1;
-SET character_set_connection= @test_character_set;
-SET collation_connection= @test_collation;
-SELECT COLLATION('.'), SUBSTRING_INDEX('.wwwmysqlcom', '.', -2) AS c1;
-COLLATION('.') c1
-ucs2_general_ci .wwwmysqlcom
-set names utf8;
-create table t1 (
-name varchar(10),
-level smallint unsigned);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `name` varchar(10) DEFAULT NULL,
- `level` smallint(5) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=ucs2
-insert into t1 values ('string',1);
-select concat(name,space(level)), concat(name, repeat(' ',level)) from t1;
-concat(name,space(level)) concat(name, repeat(' ',level))
-string string
-drop table t1;
-DROP DATABASE d1;
-USE test;
-SET character_set_server= @safe_character_set_server;
-SET collation_server= @safe_collation_server;
-SET character_set_client= @safe_character_set_client;
-SET character_set_results= @safe_character_set_results;
-SET NAMES latin1;
-SET character_set_connection=ucs2;
-select 'a' = 'a', 'a' = 'a ', 'a ' = 'a';
-'a' = 'a' 'a' = 'a ' 'a ' = 'a'
-1 1 1
-select 'a\0' = 'a', 'a\0' < 'a', 'a\0' > 'a';
-'a\0' = 'a' 'a\0' < 'a' 'a\0' > 'a'
-0 1 0
-select 'a' = 'a\0', 'a' < 'a\0', 'a' > 'a\0';
-'a' = 'a\0' 'a' < 'a\0' 'a' > 'a\0'
-0 0 1
-select 'a\0' = 'a ', 'a\0' < 'a ', 'a\0' > 'a ';
-'a\0' = 'a ' 'a\0' < 'a ' 'a\0' > 'a '
-0 1 0
-select 'a ' = 'a\0', 'a ' < 'a\0', 'a ' > 'a\0';
-'a ' = 'a\0' 'a ' < 'a\0' 'a ' > 'a\0'
-0 0 1
-select 'a a' > 'a', 'a \0' < 'a';
-'a a' > 'a' 'a \0' < 'a'
-1 1
-select binary 'a a' > 'a', binary 'a \0' > 'a', binary 'a\0' > 'a';
-binary 'a a' > 'a' binary 'a \0' > 'a' binary 'a\0' > 'a'
-1 1 1
-SET CHARACTER SET koi8r;
-create table t1 (a varchar(2) character set ucs2 collate ucs2_bin, key(a));
-insert into t1 values ('A'),('A'),('B'),('C'),('D'),('A\t');
-insert into t1 values ('A\0'),('A\0'),('A\0'),('A\0'),('AZ');
-select hex(a) from t1 where a like 'A_' order by a;
-hex(a)
-00410000
-00410000
-00410000
-00410000
-00410009
-0041005A
-select hex(a) from t1 ignore key(a) where a like 'A_' order by a;
-hex(a)
-00410000
-00410000
-00410000
-00410000
-00410009
-0041005A
-drop table t1;
-CREATE TABLE t1 (word VARCHAR(64) CHARACTER SET ucs2, word2 CHAR(64) CHARACTER SET ucs2);
-INSERT INTO t1 VALUES (_koi8r'ò',_koi8r'ò'), (X'2004',X'2004');
-SELECT hex(word) FROM t1 ORDER BY word;
-hex(word)
-0420
-2004
-SELECT hex(word2) FROM t1 ORDER BY word2;
-hex(word2)
-0420
-2004
-DELETE FROM t1;
-INSERT INTO t1 VALUES (X'042000200020',X'042000200020'), (X'200400200020', X'200400200020');
-SELECT hex(word) FROM t1 ORDER BY word;
-hex(word)
-042000200020
-200400200020
-SELECT hex(word2) FROM t1 ORDER BY word2;
-hex(word2)
-0420
-2004
-DROP TABLE t1;
-SELECT LPAD(_ucs2 X'0420',10,_ucs2 X'0421');
-LPAD(_ucs2 X'0420',10,_ucs2 X'0421')
-óóóóóóóóóò
-SELECT LPAD(_ucs2 X'0420',10,_ucs2 X'04210422');
-LPAD(_ucs2 X'0420',10,_ucs2 X'04210422')
-óôóôóôóôóò
-SELECT LPAD(_ucs2 X'0420',10,_ucs2 X'042104220423');
-LPAD(_ucs2 X'0420',10,_ucs2 X'042104220423')
-óôõóôõóôõò
-SELECT LPAD(_ucs2 X'0420042104220423042404250426042704280429042A042B',10,_ucs2 X'042104220423');
-LPAD(_ucs2 X'0420042104220423042404250426042704280429042A042B',10,_ucs2 X'042104220423')
-òóôõæèãþûý
-SELECT RPAD(_ucs2 X'0420',10,_ucs2 X'0421');
-RPAD(_ucs2 X'0420',10,_ucs2 X'0421')
-òóóóóóóóóó
-SELECT RPAD(_ucs2 X'0420',10,_ucs2 X'04210422');
-RPAD(_ucs2 X'0420',10,_ucs2 X'04210422')
-òóôóôóôóôó
-SELECT RPAD(_ucs2 X'0420',10,_ucs2 X'042104220423');
-RPAD(_ucs2 X'0420',10,_ucs2 X'042104220423')
-òóôõóôõóôõ
-SELECT RPAD(_ucs2 X'0420042104220423042404250426042704280429042A042B',10,_ucs2 X'042104220423');
-RPAD(_ucs2 X'0420042104220423042404250426042704280429042A042B',10,_ucs2 X'042104220423')
-òóôõæèãþûý
-CREATE TABLE t1 SELECT
-LPAD(_ucs2 X'0420',10,_ucs2 X'0421') l,
-RPAD(_ucs2 X'0420',10,_ucs2 X'0421') r;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `l` varchar(10) CHARACTER SET ucs2 DEFAULT NULL,
- `r` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# Bug #51876 : crash/memory underrun when loading data with ucs2
-# and reverse() function
-#
-# Problem # 1 (original report): wrong parsing of ucs2 data
-SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp.txt';
-CREATE TABLE t1(a INT);
-LOAD DATA INFILE 'tmpp.txt' INTO TABLE t1 CHARACTER SET ucs2
-(@b) SET a=REVERSE(@b);
-# should return 2 zeroes (as the value is truncated)
-SELECT * FROM t1;
-a
-0
-1
-DROP TABLE t1;
-# Problem # 2 : if you write and read ucs2 data to a file they're lost
-SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp2.txt' CHARACTER SET ucs2;
-CREATE TABLE t1(a INT);
-LOAD DATA INFILE 'tmpp2.txt' INTO TABLE t1 CHARACTER SET ucs2
-(@b) SET a=REVERSE(@b);
-# should return 0 and 1 (10 reversed)
-SELECT * FROM t1;
-a
-0
-1
-DROP TABLE t1;
-create table t2(f1 Char(30));
-insert into t2 values ("103000"), ("22720000"), ("3401200"), ("78000");
-select lpad(f1, 12, "-o-/") from t2;
-lpad(f1, 12, "-o-/")
--o-/-o103000
--o-/22720000
--o-/-3401200
--o-/-o-78000
-drop table t2;
-SET NAMES koi8r;
-SET character_set_connection=ucs2;
-select @@collation_connection;
-@@collation_connection
-ucs2_general_ci
-create table t1 as select repeat(' ',10) as a union select null;
-alter table t1 add key(a);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET ucs2 DEFAULT NULL,
- KEY `a` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
-explain select * from t1 where a like 'abc%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 23 NULL 1 Using where; Using index
-explain select * from t1 where a like concat('abc','%');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 23 NULL 1 Using where; Using index
-select * from t1 where a like "abc%";
-a
-abc
-abcd
-select * from t1 where a like concat("abc","%");
-a
-abc
-abcd
-select * from t1 where a like "ABC%";
-a
-abc
-abcd
-select * from t1 where a like "test%";
-a
-test
-select * from t1 where a like "te_t";
-a
-test
-select * from t1 where a like "%a%";
-a
-a
-abc
-abcd
-select * from t1 where a like "%abcd%";
-a
-abcd
-select * from t1 where a like "%abc\d%";
-a
-abcd
-drop table t1;
-select 'AA' like 'AA';
-'AA' like 'AA'
-1
-select 'AA' like 'A%A';
-'AA' like 'A%A'
-1
-select 'AA' like 'A%%A';
-'AA' like 'A%%A'
-1
-select 'AA' like 'AA%';
-'AA' like 'AA%'
-1
-select 'AA' like '%AA%';
-'AA' like '%AA%'
-1
-select 'AA' like '%A';
-'AA' like '%A'
-1
-select 'AA' like '%AA';
-'AA' like '%AA'
-1
-select 'AA' like 'A%A%';
-'AA' like 'A%A%'
-1
-select 'AA' like '_%_%';
-'AA' like '_%_%'
-1
-select 'AA' like '%A%A';
-'AA' like '%A%A'
-1
-select 'AAA'like 'A%A%A';
-'AAA'like 'A%A%A'
-1
-select 'AZ' like 'AZ';
-'AZ' like 'AZ'
-1
-select 'AZ' like 'A%Z';
-'AZ' like 'A%Z'
-1
-select 'AZ' like 'A%%Z';
-'AZ' like 'A%%Z'
-1
-select 'AZ' like 'AZ%';
-'AZ' like 'AZ%'
-1
-select 'AZ' like '%AZ%';
-'AZ' like '%AZ%'
-1
-select 'AZ' like '%Z';
-'AZ' like '%Z'
-1
-select 'AZ' like '%AZ';
-'AZ' like '%AZ'
-1
-select 'AZ' like 'A%Z%';
-'AZ' like 'A%Z%'
-1
-select 'AZ' like '_%_%';
-'AZ' like '_%_%'
-1
-select 'AZ' like '%A%Z';
-'AZ' like '%A%Z'
-1
-select 'AZ' like 'A_';
-'AZ' like 'A_'
-1
-select 'AZ' like '_Z';
-'AZ' like '_Z'
-1
-select 'AMZ'like 'A%M%Z';
-'AMZ'like 'A%M%Z'
-1
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET ucs2);
-INSERT INTO t1 VALUES ('ÆÙ×Á'),('æÙ×Á'),('Æù×Á'),('ÆÙ÷Á'),('ÆÙ×á'),('æù÷á');
-INSERT INTO t1 VALUES ('ÆÙ×ÁÐÒÏÌÄÖ'),('æÙ×ÁÐÒÏÌÄÖ'),('Æù×ÁÐÒÏÌÄÖ'),('ÆÙ÷ÁÐÒÏÌÄÖ');
-INSERT INTO t1 VALUES ('ÆÙ×áÐÒÏÌÄÖ'),('ÆÙ×ÁðÒÏÌÄÖ'),('ÆÙ×ÁÐòÏÌÄÖ'),('ÆÙ×ÁÐÒïÌÄÖ');
-INSERT INTO t1 VALUES ('ÆÙ×ÁÐÒÏìÄÖ'),('ÆÙ×ÁÐÒÏÌäÖ'),('ÆÙ×ÁÐÒÏÌÄö'),('æù÷áðòïìäö');
-SELECT * FROM t1 WHERE a LIKE '%Æù×Á%';
-a
-ÆÙ×Á
-æÙ×Á
-Æù×Á
-ÆÙ÷Á
-ÆÙ×á
-æù÷á
-ÆÙ×ÁÐÒÏÌÄÖ
-æÙ×ÁÐÒÏÌÄÖ
-Æù×ÁÐÒÏÌÄÖ
-ÆÙ÷ÁÐÒÏÌÄÖ
-ÆÙ×áÐÒÏÌÄÖ
-ÆÙ×ÁðÒÏÌÄÖ
-ÆÙ×ÁÐòÏÌÄÖ
-ÆÙ×ÁÐÒïÌÄÖ
-ÆÙ×ÁÐÒÏìÄÖ
-ÆÙ×ÁÐÒÏÌäÖ
-ÆÙ×ÁÐÒÏÌÄö
-æù÷áðòïìäö
-SELECT * FROM t1 WHERE a LIKE '%Æù×%';
-a
-ÆÙ×Á
-æÙ×Á
-Æù×Á
-ÆÙ÷Á
-ÆÙ×á
-æù÷á
-ÆÙ×ÁÐÒÏÌÄÖ
-æÙ×ÁÐÒÏÌÄÖ
-Æù×ÁÐÒÏÌÄÖ
-ÆÙ÷ÁÐÒÏÌÄÖ
-ÆÙ×áÐÒÏÌÄÖ
-ÆÙ×ÁðÒÏÌÄÖ
-ÆÙ×ÁÐòÏÌÄÖ
-ÆÙ×ÁÐÒïÌÄÖ
-ÆÙ×ÁÐÒÏìÄÖ
-ÆÙ×ÁÐÒÏÌäÖ
-ÆÙ×ÁÐÒÏÌÄö
-æù÷áðòïìäö
-SELECT * FROM t1 WHERE a LIKE 'Æù×Á%';
-a
-ÆÙ×Á
-æÙ×Á
-Æù×Á
-ÆÙ÷Á
-ÆÙ×á
-æù÷á
-ÆÙ×ÁÐÒÏÌÄÖ
-æÙ×ÁÐÒÏÌÄÖ
-Æù×ÁÐÒÏÌÄÖ
-ÆÙ÷ÁÐÒÏÌÄÖ
-ÆÙ×áÐÒÏÌÄÖ
-ÆÙ×ÁðÒÏÌÄÖ
-ÆÙ×ÁÐòÏÌÄÖ
-ÆÙ×ÁÐÒïÌÄÖ
-ÆÙ×ÁÐÒÏìÄÖ
-ÆÙ×ÁÐÒÏÌäÖ
-ÆÙ×ÁÐÒÏÌÄö
-æù÷áðòïìäö
-SELECT * FROM t1 WHERE a LIKE 'Æù×Á%' COLLATE ucs2_bin;
-a
-Æù×Á
-Æù×ÁÐÒÏÌÄÖ
-DROP TABLE t1;
-CREATE TABLE t1 (word varchar(64) NOT NULL, PRIMARY KEY (word))
-ENGINE=MyISAM CHARACTER SET ucs2 COLLATE ucs2_general_ci;
-INSERT INTO t1 (word) VALUES ("cat");
-SELECT * FROM t1 WHERE word LIKE "c%";
-word
-cat
-SELECT * FROM t1 WHERE word LIKE "ca_";
-word
-cat
-SELECT * FROM t1 WHERE word LIKE "cat";
-word
-cat
-SELECT * FROM t1 WHERE word LIKE _ucs2 x'00630025';
-word
-cat
-SELECT * FROM t1 WHERE word LIKE _ucs2 x'00630061005F';
-word
-cat
-DROP TABLE t1;
-select insert(_ucs2 0x006100620063,10,2,_ucs2 0x006400650066);
-insert(_ucs2 0x006100620063,10,2,_ucs2 0x006400650066)
-abc
-select insert(_ucs2 0x006100620063,1,2,_ucs2 0x006400650066);
-insert(_ucs2 0x006100620063,1,2,_ucs2 0x006400650066)
-defc
-SET NAMES latin1;
-CREATE TABLE t1 (
-word VARCHAR(64),
-bar INT(11) default 0,
-PRIMARY KEY (word))
-ENGINE=MyISAM
-CHARSET ucs2
-COLLATE ucs2_general_ci ;
-INSERT INTO t1 (word) VALUES ("aar");
-INSERT INTO t1 (word) VALUES ("a");
-INSERT INTO t1 (word) VALUES ("aardvar");
-INSERT INTO t1 (word) VALUES ("aardvark");
-INSERT INTO t1 (word) VALUES ("aardvara");
-INSERT INTO t1 (word) VALUES ("aardvarz");
-EXPLAIN SELECT * FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort
-SELECT * FROM t1 ORDER BY word;
-word bar
-a 0
-aar 0
-aardvar 0
-aardvara 0
-aardvark 0
-aardvarz 0
-EXPLAIN SELECT word FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 130 NULL 6 Using index
-SELECT word FROM t1 ORDER by word;
-word
-a
-aar
-aardvar
-aardvara
-aardvark
-aardvarz
-DROP TABLE t1;
-CREATE TABLE t1 (
-word VARCHAR(64) ,
-PRIMARY KEY (word))
-ENGINE=MyISAM
-CHARSET ucs2
-COLLATE ucs2_general_ci;
-INSERT INTO t1 (word) VALUES ("aar");
-INSERT INTO t1 (word) VALUES ("a");
-INSERT INTO t1 (word) VALUES ("aardvar");
-INSERT INTO t1 (word) VALUES ("aardvark");
-INSERT INTO t1 (word) VALUES ("aardvara");
-INSERT INTO t1 (word) VALUES ("aardvarz");
-EXPLAIN SELECT * FROM t1 ORDER BY WORD;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 130 NULL 6 Using index
-SELECT * FROM t1 ORDER BY word;
-word
-a
-aar
-aardvar
-aardvara
-aardvark
-aardvarz
-DROP TABLE t1;
-CREATE TABLE t1 (
-word TEXT,
-bar INT(11) AUTO_INCREMENT,
-PRIMARY KEY (bar))
-ENGINE=MyISAM
-CHARSET ucs2
-COLLATE ucs2_general_ci ;
-INSERT INTO t1 (word) VALUES ("aar");
-INSERT INTO t1 (word) VALUES ("a" );
-INSERT INTO t1 (word) VALUES ("aardvar");
-INSERT INTO t1 (word) VALUES ("aardvark");
-INSERT INTO t1 (word) VALUES ("aardvara");
-INSERT INTO t1 (word) VALUES ("aardvarz");
-EXPLAIN SELECT * FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort
-SELECT * FROM t1 ORDER BY word;
-word bar
-a 2
-aar 1
-aardvar 3
-aardvara 5
-aardvark 4
-aardvarz 6
-EXPLAIN SELECT word FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort
-SELECT word FROM t1 ORDER BY word;
-word
-a
-aar
-aardvar
-aardvara
-aardvark
-aardvarz
-DROP TABLE t1;
-SELECT HEX(_ucs2 0x0);
-HEX(_ucs2 0x0)
-0000
-SELECT HEX(_ucs2 0x01);
-HEX(_ucs2 0x01)
-0001
-SELECT HEX(_ucs2 0x012);
-HEX(_ucs2 0x012)
-0012
-SELECT HEX(_ucs2 0x0123);
-HEX(_ucs2 0x0123)
-0123
-SELECT HEX(_ucs2 0x01234);
-HEX(_ucs2 0x01234)
-00001234
-SELECT HEX(_ucs2 0x012345);
-HEX(_ucs2 0x012345)
-00012345
-SELECT HEX(_ucs2 0x0123456);
-HEX(_ucs2 0x0123456)
-00123456
-SELECT HEX(_ucs2 0x01234567);
-HEX(_ucs2 0x01234567)
-01234567
-SELECT HEX(_ucs2 0x012345678);
-HEX(_ucs2 0x012345678)
-000012345678
-SELECT HEX(_ucs2 0x0123456789);
-HEX(_ucs2 0x0123456789)
-000123456789
-SELECT HEX(_ucs2 0x0123456789A);
-HEX(_ucs2 0x0123456789A)
-00123456789A
-SELECT HEX(_ucs2 0x0123456789AB);
-HEX(_ucs2 0x0123456789AB)
-0123456789AB
-SELECT HEX(_ucs2 0x0123456789ABC);
-HEX(_ucs2 0x0123456789ABC)
-0000123456789ABC
-SELECT HEX(_ucs2 0x0123456789ABCD);
-HEX(_ucs2 0x0123456789ABCD)
-000123456789ABCD
-SELECT HEX(_ucs2 0x0123456789ABCDE);
-HEX(_ucs2 0x0123456789ABCDE)
-00123456789ABCDE
-SELECT HEX(_ucs2 0x0123456789ABCDEF);
-HEX(_ucs2 0x0123456789ABCDEF)
-0123456789ABCDEF
-SELECT hex(cast(0xAA as char character set ucs2));
-hex(cast(0xAA as char character set ucs2))
-00AA
-SELECT hex(convert(0xAA using ucs2));
-hex(convert(0xAA using ucs2))
-00AA
-CREATE TABLE t1 (a char(10) character set ucs2);
-INSERT INTO t1 VALUES (0xA),(0xAA),(0xAAA),(0xAAAA),(0xAAAAA);
-SELECT HEX(a) FROM t1;
-HEX(a)
-000A
-00AA
-0AAA
-AAAA
-000AAAAA
-DROP TABLE t1;
-CREATE TABLE t1 (a varchar(10) character set ucs2);
-INSERT INTO t1 VALUES (0xA),(0xAA),(0xAAA),(0xAAAA),(0xAAAAA);
-SELECT HEX(a) FROM t1;
-HEX(a)
-000A
-00AA
-0AAA
-AAAA
-000AAAAA
-DROP TABLE t1;
-CREATE TABLE t1 (a text character set ucs2);
-INSERT INTO t1 VALUES (0xA),(0xAA),(0xAAA),(0xAAAA),(0xAAAAA);
-SELECT HEX(a) FROM t1;
-HEX(a)
-000A
-00AA
-0AAA
-AAAA
-000AAAAA
-DROP TABLE t1;
-CREATE TABLE t1 (a mediumtext character set ucs2);
-INSERT INTO t1 VALUES (0xA),(0xAA),(0xAAA),(0xAAAA),(0xAAAAA);
-SELECT HEX(a) FROM t1;
-HEX(a)
-000A
-00AA
-0AAA
-AAAA
-000AAAAA
-DROP TABLE t1;
-CREATE TABLE t1 (a longtext character set ucs2);
-INSERT INTO t1 VALUES (0xA),(0xAA),(0xAAA),(0xAAAA),(0xAAAAA);
-SELECT HEX(a) FROM t1;
-HEX(a)
-000A
-00AA
-0AAA
-AAAA
-000AAAAA
-DROP TABLE t1;
-create table t1 (s1 char character set `ucs2` collate `ucs2_czech_ci`);
-insert into t1 values ('0'),('1'),('2'),('a'),('b'),('c');
-select s1 from t1 where s1 > 'a' order by s1;
-s1
-b
-c
-drop table t1;
-create table t1(a char(1)) default charset = ucs2;
-insert into t1 values ('a'),('b'),('c');
-alter table t1 modify a char(5);
-select a, hex(a) from t1;
-a hex(a)
-a 0061
-b 0062
-c 0063
-drop table t1;
-set @ivar= 1234;
-set @str1 = 'select ?';
-set @str2 = convert(@str1 using ucs2);
-prepare stmt1 from @str2;
-execute stmt1 using @ivar;
-?
-1234
-set names latin1;
-create table t1 (a enum('x','y','z') character set ucs2);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('x','y','z') CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('x');
-insert into t1 values ('y');
-insert into t1 values ('z');
-select a, hex(a) from t1 order by a;
-a hex(a)
-x 0078
-y 0079
-z 007A
-alter table t1 change a a enum('x','y','z','d','e','ä','ö','ü') character set ucs2;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('x','y','z','d','e','ä','ö','ü') CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('D');
-insert into t1 values ('E ');
-insert into t1 values ('Ä');
-insert into t1 values ('Ö');
-insert into t1 values ('Ü');
-select a, hex(a) from t1 order by a;
-a hex(a)
-x 0078
-y 0079
-z 007A
-d 0064
-e 0065
-ä 00E4
-ö 00F6
-ü 00FC
-drop table t1;
-create table t1 (a set ('x','y','z','ä','ö','ü') character set ucs2);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` set('x','y','z','ä','ö','ü') CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('x');
-insert into t1 values ('y');
-insert into t1 values ('z');
-insert into t1 values ('x,y');
-insert into t1 values ('x,y,z,Ä,Ö,Ü');
-select a, hex(a) from t1 order by a;
-a hex(a)
-x 0078
-y 0079
-x,y 0078002C0079
-z 007A
-x,y,z,ä,ö,ü 0078002C0079002C007A002C00E4002C00F6002C00FC
-drop table t1;
-create table t1(a enum('a','b','c')) default character set ucs2;
-insert into t1 values('a'),('b'),('c');
-alter table t1 add b char(1);
-show warnings;
-Level Code Message
-select * from t1 order by a;
-a b
-a NULL
-b NULL
-c NULL
-drop table t1;
-SET collation_connection='ucs2_general_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-ucs2_general_ci 00610009
-ucs2_general_ci 0061
-ucs2_general_ci 00610020
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-ucs2_general_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-ucs2_general_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-ucs2_general_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-"BEGIN ctype_german.inc"
-drop table if exists t1;
-create table t1 as select repeat(' ', 64) as s1;
-select collation(s1) from t1;
-collation(s1)
-ucs2_general_ci
-delete from t1;
-INSERT INTO t1 VALUES ('ud'),('uf');
-INSERT INTO t1 VALUES ('od'),('of');
-INSERT INTO t1 VALUES ('e');
-INSERT INTO t1 VALUES ('ad'),('af');
-insert into t1 values ('a'),('ae'),(_latin1 0xE4);
-insert into t1 values ('o'),('oe'),(_latin1 0xF6);
-insert into t1 values ('s'),('ss'),(_latin1 0xDF);
-insert into t1 values ('u'),('ue'),(_latin1 0xFC);
-INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
-INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
-select s1, hex(s1) from t1 order by s1, binary s1;
-s1 hex(s1)
-a 0061
-ä 00E4
-ad 00610064
-ae 00610065
-af 00610066
-e 0065
-o 006F
-ö 00F6
-od 006F0064
-oe 006F0065
-of 006F0066
-s 0073
-ß 00DF
-ss 00730073
-u 0075
-ü 00FC
-ud 00750064
-ue 00750065
-uf 00750066
-Æ 00C6
-æ 00E6
-Œ 0152
-œ 0153
-select group_concat(s1 order by binary s1) from t1 group by s1;
-group_concat(s1 order by binary s1)
-a,ä
-ad
-ae
-af
-e
-o,ö
-od
-oe
-of
-s,ß
-ss
-u,ü
-ud
-ue
-uf
-Æ,æ
-Œ,œ
-SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
-s1 hex(s1) hex(weight_string(s1))
-a 0061 0041
-ä 00E4 0041
-ad 00610064 00410044
-ae 00610065 00410045
-af 00610066 00410046
-e 0065 0045
-o 006F 004F
-ö 00F6 004F
-od 006F0064 004F0044
-oe 006F0065 004F0045
-of 006F0066 004F0046
-s 0073 0053
-ß 00DF 0053
-ss 00730073 00530053
-u 0075 0055
-ü 00FC 0055
-ud 00750064 00550044
-ue 00750065 00550045
-uf 00750066 00550046
-Æ 00C6 00C6
-æ 00E6 00C6
-Œ 0152 0152
-œ 0153 0152
-SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
-s1 hex(s1)
-ae 00610065
-drop table t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET ucs2 DEFAULT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('s',0),(_latin1 0xDF,1);
-SELECT * FROM t1 ORDER BY a, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY a DESC, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a), b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
-a b
-s 0
-ß 1
-DROP TABLE t1;
-"END ctype_german.inc"
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F20025
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-#
-# MDEV-4842 STR_TO_DATE does not work with UCS2/UTF16/UTF32
-#
-SELECT @@character_set_connection, HEX(CAST(_utf8'÷' AS CHAR));
-@@character_set_connection HEX(CAST(_utf8'÷' AS CHAR))
-ucs2 00F7
-SELECT STR_TO_DATE(CAST(_utf8'2001÷01÷01' AS CHAR),CAST(_utf8'%Y÷%m÷%d' AS CHAR));
-STR_TO_DATE(CAST(_utf8'2001÷01÷01' AS CHAR),CAST(_utf8'%Y÷%m÷%d' AS CHAR))
-2001-01-01
-CREATE TABLE t1 AS SELECT REPEAT(' ', 64) AS subject, REPEAT(' ',64) AS pattern LIMIT 0;
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-subject varchar(64) YES NULL
-pattern varchar(64) YES NULL
-INSERT INTO t1 VALUES (_utf8'2001÷01÷01',_utf8'%Y÷%m÷%d');
-SELECT HEX(subject),HEX(pattern),STR_TO_DATE(subject, pattern) FROM t1;
-HEX(subject) HEX(pattern) STR_TO_DATE(subject, pattern)
-003200300030003100F70030003100F700300031 0025005900F70025006D00F700250064 2001-01-01 00:00:00.000000
-DROP TABLE t1;
-SET NAMES latin1;
-SET collation_connection='ucs2_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-ucs2_bin 00610009
-ucs2_bin 0061
-ucs2_bin 00610020
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-ucs2_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-ucs2_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-ucs2_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F20025
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-select hex(substr(_ucs2 0x00e400e50068,1));
-hex(substr(_ucs2 0x00e400e50068,1))
-00E400E50068
-select hex(substr(_ucs2 0x00e400e50068,2));
-hex(substr(_ucs2 0x00e400e50068,2))
-00E50068
-select hex(substr(_ucs2 0x00e400e50068,3));
-hex(substr(_ucs2 0x00e400e50068,3))
-0068
-select hex(substr(_ucs2 0x00e400e50068,-1));
-hex(substr(_ucs2 0x00e400e50068,-1))
-0068
-select hex(substr(_ucs2 0x00e400e50068,-2));
-hex(substr(_ucs2 0x00e400e50068,-2))
-00E50068
-select hex(substr(_ucs2 0x00e400e50068,-3));
-hex(substr(_ucs2 0x00e400e50068,-3))
-00E400E50068
-SET NAMES latin1;
-SET collation_connection='ucs2_swedish_ci';
-CREATE TABLE t1 (Field1 int(10) default '0');
-INSERT INTO t1 VALUES ('-1');
-SELECT * FROM t1;
-Field1
--1
-DROP TABLE t1;
-CREATE TABLE t1 (Field1 int(10) unsigned default '0');
-INSERT IGNORE INTO t1 VALUES ('-1');
-Warnings:
-Warning 1264 Out of range value for column 'Field1' at row 1
-DROP TABLE t1;
-SET NAMES latin1;
-SELECT CONVERT(103, CHAR(50) UNICODE);
-CONVERT(103, CHAR(50) UNICODE)
-103
-SELECT CONVERT(103.0, CHAR(50) UNICODE);
-CONVERT(103.0, CHAR(50) UNICODE)
-103.0
-SELECT CONVERT(-103, CHAR(50) UNICODE);
-CONVERT(-103, CHAR(50) UNICODE)
--103
-SELECT CONVERT(-103.0, CHAR(50) UNICODE);
-CONVERT(-103.0, CHAR(50) UNICODE)
--103.0
-CREATE TABLE t1 (
-a varchar(255) NOT NULL default '',
-KEY a (a)
-) ENGINE=MyISAM DEFAULT CHARSET=ucs2 COLLATE ucs2_general_ci;
-insert into t1 values (0x803d);
-insert into t1 values (0x005b);
-select hex(a) from t1;
-hex(a)
-005B
-803D
-drop table t1;
-set sql_mode="";
-create table t1(f1 varchar(5) CHARACTER SET ucs2 COLLATE ucs2_bin NOT NULL) engine=InnoDB;
-set sql_mode=default;
-insert into t1 values('a');
-create index t1f1 on t1(f1);
-select f1 from t1 where f1 like 'a%';
-f1
-a
-drop table t1;
-create table t1 (utext varchar(20) character set ucs2);
-insert into t1 values ("lily");
-insert into t1 values ("river");
-prepare stmt from 'select utext from t1 where utext like ?';
-set @param1='%%';
-execute stmt using @param1;
-utext
-lily
-river
-execute stmt using @param1;
-utext
-lily
-river
-select utext from t1 where utext like '%%';
-utext
-lily
-river
-drop table t1;
-deallocate prepare stmt;
-create table t1 (
-a char(10) unicode not null,
-index a (a)
-) engine=myisam;
-insert into t1 values (repeat(0x201f, 10));
-insert into t1 values (repeat(0x2020, 10));
-insert into t1 values (repeat(0x2021, 10));
-explain select hex(a) from t1 order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 20 NULL 3 Using index
-select hex(a) from t1 order by a;
-hex(a)
-201F201F201F201F201F201F201F201F201F201F
-2020202020202020202020202020202020202020
-2021202120212021202120212021202120212021
-alter table t1 drop index a;
-select hex(a) from t1 order by a;
-hex(a)
-201F201F201F201F201F201F201F201F201F201F
-2020202020202020202020202020202020202020
-2021202120212021202120212021202120212021
-drop table t1;
-CREATE TABLE t1 (id int, s char(5) CHARACTER SET ucs2 COLLATE ucs2_unicode_ci);
-INSERT INTO t1 VALUES (1, 'ZZZZZ'), (1, 'ZZZ'), (2, 'ZZZ'), (2, 'ZZZZZ');
-SELECT id, MIN(s) FROM t1 GROUP BY id;
-id MIN(s)
-1 ZZZ
-2 ZZZ
-DROP TABLE t1;
-drop table if exists bug20536;
-set names latin1;
-create table bug20536 (id bigint not null auto_increment primary key, name
-varchar(255) character set ucs2 not null);
-insert into `bug20536` (`id`,`name`) values (1, _latin1 x'7465737431'), (2, "'test\\_2'");
-select md5(name) from bug20536;
-md5(name)
-f4b7ce8b45a20e3c4e84bef515d1525c
-48d95db0d8305c2fe11548a3635c9385
-select sha1(name) from bug20536;
-sha1(name)
-e0b52f38deddb9f9e8d5336b153592794cb49baf
-677d4d505355eb5b0549b865fcae4b7f0c28aef5
-select make_set(3, name, upper(name)) from bug20536;
-make_set(3, name, upper(name))
-test1,TEST1
-'test\_2','TEST\_2'
-select export_set(5, name, upper(name)) from bug20536;
-export_set(5, name, upper(name))
-test1,TEST1,test1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1,TEST1
-'test\_2','TEST\_2','test\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2','TEST\_2'
-select export_set(5, name, upper(name), ",", 5) from bug20536;
-export_set(5, name, upper(name), ",", 5)
-test1,TEST1,test1,TEST1,TEST1
-'test\_2','TEST\_2','test\_2','TEST\_2','TEST\_2'
-CREATE TABLE t1 (
-status enum('active','passive') collate latin1_general_ci
-NOT NULL default 'passive'
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `status` enum('active','passive') CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT 'passive'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 ADD a int NOT NULL AFTER status;
-CREATE TABLE t2 (
-status enum('active','passive') collate ucs2_turkish_ci
-NOT NULL default 'passive'
-);
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `status` enum('active','passive') CHARACTER SET ucs2 COLLATE ucs2_turkish_ci NOT NULL DEFAULT 'passive'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t2 ADD a int NOT NULL AFTER status;
-DROP TABLE t1,t2;
-select password(name) from bug20536;
-password(name)
-*286C12C0F32248BD65B30EE65F3ECFB2AA3F7849
-*947A5674312754578F132655C74A11533B105FF6
-select old_password(name) from bug20536;
-old_password(name)
-10e155cb44e2adb5
-14e500b131773991
-select quote(name) from bug20536;
-quote(name)
-'test1'
-'\'test\\_2\''
-drop table bug20536;
-set names ucs2;
-ERROR 42000: Variable 'character_set_client' can't be set to the value of 'ucs2'
-set names ucs2 collate ucs2_bin;
-ERROR 42000: Variable 'character_set_client' can't be set to the value of 'ucs2'
-set character_set_client= ucs2;
-ERROR 42000: Variable 'character_set_client' can't be set to the value of 'ucs2'
-set character_set_client= concat('ucs', substr('2', 1));
-ERROR 42000: Variable 'character_set_client' can't be set to the value of 'ucs2'
-CREATE TABLE t1(a TEXT CHARSET ucs2 COLLATE ucs2_unicode_ci);
-INSERT INTO t1 VALUES('abcd');
-SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abcd' IN BOOLEAN MODE);
-a
-abcd
-DROP TABLE t1;
-End of 4.1 tests
-CREATE TABLE t1 (a varchar(64) character set ucs2, b decimal(10,3));
-INSERT INTO t1 VALUES ("1.1", 0), ("2.1", 0);
-update t1 set b=a;
-SELECT * FROM t1;
-a b
-1.1 1.100
-2.1 2.100
-DROP TABLE t1;
-create table t1 (utext varchar(20) character set ucs2);
-insert into t1 values ("lily");
-insert into t1 values ("river");
-prepare stmt from 'select utext from t1 where utext like ?';
-set @param1='%%';
-execute stmt using @param1;
-utext
-lily
-river
-execute stmt using @param1;
-utext
-lily
-river
-select utext from t1 where utext like '%%';
-utext
-lily
-river
-drop table t1;
-deallocate prepare stmt;
-set names latin1;
-set character_set_connection=ucs2;
-select soundex(''),soundex('he'),soundex('hello all folks'),soundex('#3556 in bugdb');
-soundex('') soundex('he') soundex('hello all folks') soundex('#3556 in bugdb')
- H000 H4142 I51231
-select hex(soundex('')),hex(soundex('he')),hex(soundex('hello all folks')),hex(soundex('#3556 in bugdb'));
-hex(soundex('')) hex(soundex('he')) hex(soundex('hello all folks')) hex(soundex('#3556 in bugdb'))
- 0048003000300030 00480034003100340032 004900350031003200330031
-select 'mood' sounds like 'mud';
-'mood' sounds like 'mud'
-1
-select hex(soundex(_ucs2 0x041004110412));
-hex(soundex(_ucs2 0x041004110412))
-0410003000300030
-select hex(soundex(_ucs2 0x00BF00C0));
-hex(soundex(_ucs2 0x00BF00C0))
-00C0003000300030
-set names latin1;
-create table t1(a blob, b text charset utf8, c text charset ucs2);
-select data_type, character_octet_length, character_maximum_length
-from information_schema.columns where table_name='t1';
-data_type character_octet_length character_maximum_length
-blob 65535 65535
-text 65535 65535
-text 65535 32767
-drop table t1;
-create table t1 (a char(1) character set ucs2);
-insert into t1 values ('a'),('b'),('c');
-select hex(group_concat(a)) from t1;
-hex(group_concat(a))
-0061002C0062002C0063
-select collation(group_concat(a)) from t1;
-collation(group_concat(a))
-ucs2_general_ci
-drop table t1;
-set names latin1;
-create table t1 (a char(1) character set latin1);
-insert into t1 values ('a'),('b'),('c');
-set character_set_connection=ucs2;
-select hex(group_concat(a separator ',')) from t1;
-hex(group_concat(a separator ','))
-612C622C63
-select collation(group_concat(a separator ',')) from t1;
-collation(group_concat(a separator ','))
-latin1_swedish_ci
-drop table t1;
-set names latin1;
-create table t1 (s1 char(1) character set ascii, s2 char(1) character set ucs2);
-insert into t1 (s1) values (0x7f);
-update t1 set s2 = s1;
-select hex(s2) from t1;
-hex(s2)
-007F
-select hex(convert(s1 using latin1)) from t1;
-hex(convert(s1 using latin1))
-7F
-drop table t1;
-create table t1 (a varchar(15) character set ascii not null, b int);
-insert into t1 values ('a',1);
-select concat(a,if(b<10,_ucs2 0x0061,_ucs2 0x0062)) from t1;
-concat(a,if(b<10,_ucs2 0x0061,_ucs2 0x0062))
-aa
-select concat(a,if(b>10,_ucs2 0x0061,_ucs2 0x0062)) from t1;
-concat(a,if(b>10,_ucs2 0x0061,_ucs2 0x0062))
-ab
-select * from t1 where a=if(b<10,_ucs2 0x0061,_ucs2 0x0062);
-a b
-a 1
-select * from t1 where a=if(b>10,_ucs2 0x0061,_ucs2 0x0062);
-a b
-select concat(a,if(b<10,_ucs2 0x00C0,_ucs2 0x0062)) from t1;
-ERROR HY000: Illegal mix of collations (ascii_general_ci,IMPLICIT) and (ucs2_general_ci,COERCIBLE) for operation 'concat'
-select concat(a,if(b>10,_ucs2 0x00C0,_ucs2 0x0062)) from t1;
-ERROR HY000: Illegal mix of collations (ascii_general_ci,IMPLICIT) and (ucs2_general_ci,COERCIBLE) for operation 'concat'
-select concat(a,if(b<10,_ucs2 0x0062,_ucs2 0x00C0)) from t1;
-ERROR HY000: Illegal mix of collations (ascii_general_ci,IMPLICIT) and (ucs2_general_ci,COERCIBLE) for operation 'concat'
-select concat(a,if(b>10,_ucs2 0x0062,_ucs2 0x00C0)) from t1;
-ERROR HY000: Illegal mix of collations (ascii_general_ci,IMPLICIT) and (ucs2_general_ci,COERCIBLE) for operation 'concat'
-select * from t1 where a=if(b<10,_ucs2 0x00C0,_ucs2 0x0062);
-ERROR HY000: Illegal mix of collations (ascii_general_ci,IMPLICIT) and (ucs2_general_ci,COERCIBLE) for operation '='
-select * from t1 where a=if(b<10,_ucs2 0x0062,_ucs2 0x00C0);
-ERROR HY000: Illegal mix of collations (ascii_general_ci,IMPLICIT) and (ucs2_general_ci,COERCIBLE) for operation '='
-drop table t1;
-CREATE TABLE t1 (s1 CHAR(5) CHARACTER SET UCS2);
-INSERT INTO t1 VALUES ('a');
-SET @@sql_mode=pad_char_to_full_length;
-SELECT HEX(s1) FROM t1;
-HEX(s1)
-00610020002000200020
-SET @@sql_mode=default;
-SELECT HEX(s1) FROM t1;
-HEX(s1)
-0061
-DROP TABLE t1;
-set collation_connection=ucs2_general_ci;
-drop table if exists t1;
-create table t1 as
-select repeat(' ', 64) as s1, repeat(' ',64) as s2
-union
-select null, null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(64) CHARACTER SET ucs2 DEFAULT NULL,
- `s2` varchar(64) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-delete from t1;
-insert into t1 values('aaa','aaa');
-insert into t1 values('aaa|qqq','qqq');
-insert into t1 values('gheis','^[^a-dXYZ]+$');
-insert into t1 values('aab','^aa?b');
-insert into t1 values('Baaan','^Ba*n');
-insert into t1 values('aaa','qqq|aaa');
-insert into t1 values('qqq','qqq|aaa');
-insert into t1 values('bbb','qqq|aaa');
-insert into t1 values('bbb','qqq');
-insert into t1 values('aaa','aba');
-insert into t1 values(null,'abc');
-insert into t1 values('def',null);
-insert into t1 values(null,null);
-insert into t1 values('ghi','ghi[');
-select HIGH_PRIORITY s1 regexp s2 from t1;
-s1 regexp s2
-0
-0
-0
-1
-1
-1
-1
-1
-1
-1
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-set names latin1;
-select hex(char(0x41 using ucs2));
-hex(char(0x41 using ucs2))
-0041
-SET character_set_connection=ucs2;
-SELECT CHARSET(DAYNAME(19700101));
-CHARSET(DAYNAME(19700101))
-ucs2
-SELECT CHARSET(MONTHNAME(19700101));
-CHARSET(MONTHNAME(19700101))
-ucs2
-SELECT LOWER(DAYNAME(19700101));
-LOWER(DAYNAME(19700101))
-thursday
-SELECT LOWER(MONTHNAME(19700101));
-LOWER(MONTHNAME(19700101))
-january
-SELECT UPPER(DAYNAME(19700101));
-UPPER(DAYNAME(19700101))
-THURSDAY
-SELECT UPPER(MONTHNAME(19700101));
-UPPER(MONTHNAME(19700101))
-JANUARY
-SELECT HEX(MONTHNAME(19700101));
-HEX(MONTHNAME(19700101))
-004A0061006E0075006100720079
-SELECT HEX(DAYNAME(19700101));
-HEX(DAYNAME(19700101))
-00540068007500720073006400610079
-SET LC_TIME_NAMES=ru_RU;
-SET NAMES utf8;
-SET character_set_connection=ucs2;
-SELECT CHARSET(DAYNAME(19700101));
-CHARSET(DAYNAME(19700101))
-ucs2
-SELECT CHARSET(MONTHNAME(19700101));
-CHARSET(MONTHNAME(19700101))
-ucs2
-SELECT LOWER(DAYNAME(19700101));
-LOWER(DAYNAME(19700101))
-четверг
-SELECT LOWER(MONTHNAME(19700101));
-LOWER(MONTHNAME(19700101))
-ÑнварÑ
-SELECT UPPER(DAYNAME(19700101));
-UPPER(DAYNAME(19700101))
-ЧЕТВЕРГ
-SELECT UPPER(MONTHNAME(19700101));
-UPPER(MONTHNAME(19700101))
-ЯÐÐ’ÐРЯ
-SELECT HEX(MONTHNAME(19700101));
-HEX(MONTHNAME(19700101))
-042F043D043204300440044F
-SELECT HEX(DAYNAME(19700101));
-HEX(DAYNAME(19700101))
-0427043504420432043504400433
-SET character_set_connection=latin1;
-#
-# Bug#52120 create view cause Assertion failed: 0, file .\item_subselect.cc, line 817
-#
-CREATE TABLE t1 (a CHAR(1) CHARSET ascii, b CHAR(1) CHARSET latin1);
-CREATE VIEW v1 AS SELECT 1 from t1
-WHERE t1.b <=> (SELECT a FROM t1 WHERE a < SOME(SELECT '1'));
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug#59648 my_strtoll10_mb2: Assertion `(*endptr - s) % 2 == 0' failed.
-#
-SELECT HEX(CHAR(COALESCE(NULL, CHAR(COUNT('%s') USING ucs2), 1, @@global.license, NULL) USING cp850));
-HEX(CHAR(COALESCE(NULL, CHAR(COUNT('%s') USING ucs2), 1, @@global.license, NULL) USING cp850))
-00
-SELECT CONVERT(QUOTE(CHAR(0xf5 using ucs2)), SIGNED);
-CONVERT(QUOTE(CHAR(0xf5 using ucs2)), SIGNED)
-0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: ''õ''
-End of 5.0 tests
-#
-# Start of 5.1 tests
-#
-SET NAMES utf8;
-CREATE TABLE t1 (
-a varchar(10) CHARACTER SET ucs2 COLLATE ucs2_czech_ci,
-key(a)
-);
-INSERT INTO t1 VALUES
-('aa'),('bb'),('cc'),('dd'),('ee'),('ff'),('gg'),('hh'),('ii'),
-('jj'),('kk'),('ll'),('mm'),('nn'),('oo'),('pp'),('rr'),('ss'),
-('tt'),('uu'),('vv'),('ww'),('xx'),('yy'),('zz');
-INSERT INTO t1 VALUES ('ca'),('cz'),('ch');
-INSERT INTO t1 VALUES ('da'),('dz'), (X'0064017E');
-EXPLAIN SELECT * FROM t1 WHERE a LIKE 'b%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 23 NULL 1 Using where; Using index
-EXPLAIN SELECT * FROM t1 WHERE a LIKE 'c%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 23 NULL 30 Using where; Using index
-SELECT * FROM t1 WHERE a LIKE 'c%';
-a
-ca
-cc
-cz
-ch
-EXPLAIN SELECT * FROM t1 WHERE a LIKE 'ch%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 23 NULL 1 Using where; Using index
-SELECT * FROM t1 WHERE a LIKE 'ch%';
-a
-ch
-ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET ucs2 COLLATE ucs2_croatian_ci;
-EXPLAIN SELECT * FROM t1 WHERE a LIKE 'd%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 23 NULL 30 Using where; Using index
-SELECT hex(concat('d',_ucs2 0x017E,'%'));
-hex(concat('d',_ucs2 0x017E,'%'))
-0064017E0025
-EXPLAIN SELECT * FROM t1 WHERE a LIKE concat('d',_ucs2 0x017E,'%');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 23 NULL 1 Using where; Using index
-SELECT hex(a) FROM t1 WHERE a LIKE concat('D',_ucs2 0x017E,'%');
-hex(a)
-0064017E
-DROP TABLE t1;
-#
-# End of 5.1 tests
-#
-#
-# Start of 5.5 tests
-#
-SET NAMES latin1;
-SET collation_connection=ucs2_general_ci;
-SET TIME_ZONE = _latin1 '+03:00';
-#
-# Start of WL#2649 Number-to-string conversions
-#
-select hex(concat(1));
-hex(concat(1))
-0031
-create table t1 as select concat(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-0031
-drop table t1;
-select hex(concat(18446744073709551615));
-hex(concat(18446744073709551615))
-00310038003400340036003700340034003000370033003700300039003500350031003600310035
-create table t1 as select concat(18446744073709551615) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-00310038003400340036003700340034003000370033003700300039003500350031003600310035
-drop table t1;
-select hex(concat(1.1));
-hex(concat(1.1))
-0031002E0031
-create table t1 as select concat(1.1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-0031002E0031
-drop table t1;
-select hex(concat('a', 1+2)), charset(concat(1+2));
-hex(concat('a', 1+2)) charset(concat(1+2))
-00610033 ucs2
-create table t1 as select concat(1+2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1-2));
-hex(concat(1-2))
-002D0031
-create table t1 as select concat(1-2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1*2));
-hex(concat(1*2))
-0032
-create table t1 as select concat(1*2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1/2));
-hex(concat(1/2))
-0030002E0035003000300030
-create table t1 as select concat(1/2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(7) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1 div 2));
-hex(concat(1 div 2))
-0030
-create table t1 as select concat(1 div 2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1 % 2));
-hex(concat(1 % 2))
-0031
-create table t1 as select concat(1 % 2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(-1));
-hex(concat(-1))
-002D0031
-create table t1 as select concat(-1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(-(1+2)));
-hex(concat(-(1+2)))
-002D0033
-create table t1 as select concat(-(1+2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1|2));
-hex(concat(1|2))
-0033
-create table t1 as select concat(1|2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1&2));
-hex(concat(1&2))
-0030
-create table t1 as select concat(1&2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(bit_count(12)));
-hex(concat(bit_count(12)))
-0032
-create table t1 as select concat(bit_count(12)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(2<<1));
-hex(concat(2<<1))
-0034
-create table t1 as select concat(2<<1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(2>>1));
-hex(concat(2>>1))
-0031
-create table t1 as select concat(2>>1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(~0));
-hex(concat(~0))
-00310038003400340036003700340034003000370033003700300039003500350031003600310035
-create table t1 as select concat(~0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(3^2));
-hex(concat(3^2))
-0031
-create table t1 as select concat(3^2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(abs(-2)));
-hex(concat(abs(-2)))
-0032
-create table t1 as select concat(abs(-2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(exp(2)),1));
-hex(left(concat(exp(2)),1))
-0037
-create table t1 as select concat(exp(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log(2)),1));
-hex(left(concat(log(2)),1))
-0030
-create table t1 as select concat(log(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log2(2)),1));
-hex(left(concat(log2(2)),1))
-0031
-create table t1 as select concat(log2(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log10(2)),1));
-hex(left(concat(log10(2)),1))
-0030
-create table t1 as select concat(log10(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(sqrt(2)),1));
-hex(left(concat(sqrt(2)),1))
-0031
-create table t1 as select concat(sqrt(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(pow(2,2)),1));
-hex(left(concat(pow(2,2)),1))
-0034
-create table t1 as select concat(pow(2,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(acos(0.5)),1));
-hex(left(concat(acos(0.5)),1))
-0031
-create table t1 as select concat(acos(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(asin(0.5)),1));
-hex(left(concat(asin(0.5)),1))
-0030
-create table t1 as select concat(asin(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(atan(0.5)),1));
-hex(left(concat(atan(0.5)),1))
-0030
-create table t1 as select concat(atan(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(cos(0.5)),1));
-hex(left(concat(cos(0.5)),1))
-0030
-create table t1 as select concat(cos(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(sin(0.5)),1));
-hex(left(concat(sin(0.5)),1))
-0030
-create table t1 as select concat(sin(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(tan(0.5)),1));
-hex(left(concat(tan(0.5)),1))
-0030
-create table t1 as select concat(tan(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(degrees(0)));
-hex(concat(degrees(0)))
-0030
-create table t1 as select concat(degrees(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(radians(0)));
-hex(concat(radians(0)))
-0030
-create table t1 as select concat(radians(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ceiling(0.5)));
-hex(concat(ceiling(0.5)))
-0031
-create table t1 as select concat(ceiling(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(floor(0.5)));
-hex(concat(floor(0.5)))
-0030
-create table t1 as select concat(floor(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(round(0.5)));
-hex(concat(round(0.5)))
-0031
-create table t1 as select concat(round(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sign(0.5)));
-hex(concat(sign(0.5)))
-0031
-create table t1 as select concat(sign(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(rand()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(length('a')));
-hex(concat(length('a')))
-0032
-create table t1 as select concat(length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(char_length('a')));
-hex(concat(char_length('a')))
-0031
-create table t1 as select concat(char_length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(bit_length('a')));
-hex(concat(bit_length('a')))
-00310036
-create table t1 as select concat(bit_length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(11) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(coercibility('a')));
-hex(concat(coercibility('a')))
-0034
-create table t1 as select concat(coercibility('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(locate('a','a')));
-hex(concat(locate('a','a')))
-0031
-create table t1 as select concat(locate('a','a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(11) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(field('c','a','b','c')));
-hex(concat(field('c','a','b','c')))
-0033
-create table t1 as select concat(field('c','a','b','c')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ascii(61)));
-hex(concat(ascii(61)))
-00350034
-create table t1 as select concat(ascii(61)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ord(61)));
-hex(concat(ord(61)))
-00350034
-create table t1 as select concat(ord(61)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(7) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(find_in_set('b','a,b,c,d')));
-hex(concat(find_in_set('b','a,b,c,d')))
-0032
-create table t1 as select concat(find_in_set('b','a,b,c,d')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select md5('a'), hex(md5('a'));
-md5('a') hex(md5('a'))
-760f753576f2955b0074758acb4d5fa6 00370036003000660037003500330035003700360066003200390035003500620030003000370034003700350038006100630062003400640035006600610036
-create table t1 as select md5('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(32) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select old_password('a'), hex(old_password('a'));
-old_password('a') hex(old_password('a'))
-0705298948d1f92f 0030003700300035003200390038003900340038006400310066003900320066
-create table t1 as select old_password('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(16) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select password('a'), hex(password('a'));
-password('a') hex(password('a'))
-*9A48A662559C49521B25C43077059DD109FBD84A 002A0039004100340038004100360036003200350035003900430034003900350032003100420032003500430034003300300037003700300035003900440044003100300039004600420044003800340041
-create table t1 as select password('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(41) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select sha('a'), hex(sha('a'));
-sha('a') hex(sha('a'))
-3106600e0327ca77371f2526df794ed84322585c 0033003100300036003600300030006500300033003200370063006100370037003300370031006600320035003200360064006600370039003400650064003800340033003200320035003800350063
-create table t1 as select sha('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(40) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select sha1('a'), hex(sha1('a'));
-sha1('a') hex(sha1('a'))
-3106600e0327ca77371f2526df794ed84322585c 0033003100300036003600300030006500300033003200370063006100370037003300370031006600320035003200360064006600370039003400650064003800340033003200320035003800350063
-create table t1 as select sha1('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(40) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('-1' as signed)));
-hex(concat(cast('-1' as signed)))
-002D0031
-create table t1 as select concat(cast('-1' as signed)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('1' as unsigned)));
-hex(concat(cast('1' as unsigned)))
-0031
-create table t1 as select concat(cast('1' as unsigned)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast(1/2 as decimal(5,5))));
-hex(concat(cast(1/2 as decimal(5,5))))
-0030002E00350030003000300030
-create table t1 as select concat(cast(1/2 as decimal(5,5))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(7) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('2001-01-02 03:04:05' as date)));
-hex(concat(cast('2001-01-02 03:04:05' as date)))
-0032003000300031002D00300031002D00300032
-create table t1 as select concat(cast('2001-01-02 03:04:05' as date)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2001-01-02
-drop table t1;
-select hex(concat(cast('2001-01-02 03:04:05' as time)));
-hex(concat(cast('2001-01-02 03:04:05' as time)))
-00300033003A00300034003A00300035
-create table t1 as select concat(cast('2001-01-02 03:04:05' as time)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-03:04:05
-drop table t1;
-select hex(concat(cast('2001-01-02' as datetime)));
-hex(concat(cast('2001-01-02' as datetime)))
-0032003000300031002D00300031002D00300032002000300030003A00300030003A00300030
-create table t1 as select concat(cast('2001-01-02' as datetime)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2001-01-02 00:00:00
-drop table t1;
-select hex(concat(least(1,2)));
-hex(concat(least(1,2)))
-0031
-create table t1 as select concat(least(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(greatest(1,2)));
-hex(concat(greatest(1,2)))
-0032
-create table t1 as select concat(greatest(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(case when 11 then 22 else 33 end));
-hex(concat(case when 11 then 22 else 33 end))
-00320032
-create table t1 as select concat(case when 11 then 22 else 33 end) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(coalesce(1,2)));
-hex(concat(coalesce(1,2)))
-0031
-create table t1 as select concat(coalesce(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat_ws(1,2,3));
-hex(concat_ws(1,2,3))
-003200310033
-create table t1 as select concat_ws(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(group_concat(1,2,3));
-hex(group_concat(1,2,3))
-003100320033
-create table t1 as select group_concat(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` mediumtext CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select 1 as c1 union select 'a';
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1 order by c1;
-hex(c1)
-0031
-0061
-drop table t1;
-create table t1 as select concat(last_insert_id()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(benchmark(0,0)));
-hex(concat(benchmark(0,0)))
-0030
-create table t1 as select concat(benchmark(0,0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sleep(0)));
-hex(concat(sleep(0)))
-0030
-create table t1 as select concat(sleep(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(is_free_lock('xxxx')));
-hex(concat(is_free_lock('xxxx')))
-0031
-create table t1 as select concat(is_free_lock('xxxx')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(is_used_lock('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(release_lock('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(crc32('')));
-hex(concat(crc32('')))
-0030
-create table t1 as select concat(crc32('')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(uncompressed_length('')));
-hex(concat(uncompressed_length('')))
-0030
-create table t1 as select concat(uncompressed_length('')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(connection_id()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(inet_aton('127.1.1.1')));
-hex(concat(inet_aton('127.1.1.1')))
-0032003100330030003700370032003200320035
-create table t1 as select concat(inet_aton('127.1.1.1')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(inet_ntoa(2130772225)));
-hex(concat(inet_ntoa(2130772225)))
-003100320037002E0031002E0031002E0031
-create table t1 as select concat(inet_ntoa(2130772225)) as c1;
-select * from t1;
-c1
-127.1.1.1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(31) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select 1;
-1
-1
-select hex(concat(row_count()));
-hex(concat(row_count()))
-002D0031
-create table t1 as select concat(row_count()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(found_rows()));
-hex(concat(found_rows()))
-0030
-create table t1 as select concat(found_rows()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(uuid_short()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(uuid()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(36) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select coercibility(uuid()), coercibility(cast('a' as char character set latin1));
-coercibility(uuid()) coercibility(cast('a' as char character set latin1))
-4 2
-select charset(concat(uuid(), cast('a' as char character set latin1)));
-charset(concat(uuid(), cast('a' as char character set latin1)))
-latin1
-create table t1 as select concat(uuid(), cast('a' as char character set latin1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(37) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(master_pos_wait('non-existent',0,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=1));
-hex(concat(@a1:=1))
-0031
-create table t1 as select concat(@a2:=2) as c1, @a3:=3 as c2;
-select hex(c1) from t1;
-hex(c1)
-0032
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL,
- `c2` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=1;
-select hex(concat(@a2));
-hex(concat(@a2))
-0031
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-0031
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) CHARACTER SET ucs2 DEFAULT NULL,
- `c2` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=sqrt(1)));
-hex(concat(@a1:=sqrt(1)))
-0031
-create table t1 as select concat(@a2:=sqrt(1)) as c1, @a3:=sqrt(1) as c2;
-select hex(c1) from t1;
-hex(c1)
-0031
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL,
- `c2` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=sqrt(1);
-select hex(concat(@a2));
-hex(concat(@a2))
-0031
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-0031
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL,
- `c2` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=1.1));
-hex(concat(@a1:=1.1))
-0031002E0031
-create table t1 as select concat(@a2:=1.1) as c1, @a3:=1.1 as c2;
-select hex(c1) from t1;
-hex(c1)
-0031002E0031
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET ucs2 DEFAULT NULL,
- `c2` decimal(2,1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=1.1;
-select hex(concat(@a2));
-hex(concat(@a2))
-0031002E0031
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-0031002E0031
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(83) CHARACTER SET ucs2 DEFAULT NULL,
- `c2` decimal(65,38) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@@ft_max_word_len));
-hex(concat(@@ft_max_word_len))
-00380034
-create table t1 as select concat(@@ft_max_word_len) as c1;
-select hex(c1) from t1;
-hex(c1)
-00380034
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a'='a' IS TRUE));
-hex(concat('a'='a' IS TRUE))
-0031
-create table t1 as select concat('a'='a' IS TRUE) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a'='a' IS NOT TRUE));
-hex(concat('a'='a' IS NOT TRUE))
-0030
-create table t1 as select concat('a'='a' IS NOT TRUE) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NOT 'a'='a'));
-hex(concat(NOT 'a'='a'))
-0030
-create table t1 as select concat(NOT 'a'='a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' IS NULL));
-hex(concat('a' IS NULL))
-0030
-create table t1 as select concat('a' IS NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' IS NOT NULL));
-hex(concat('a' IS NOT NULL))
-0031
-create table t1 as select concat('a' IS NOT NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' rlike 'a'));
-hex(concat('a' rlike 'a'))
-0031
-create table t1 as select concat('a' IS NOT NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(strcmp('a','b')));
-hex(concat(strcmp('a','b')))
-002D0031
-create table t1 as select concat(strcmp('a','b')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' like 'a'));
-hex(concat('a' like 'a'))
-0031
-create table t1 as select concat('a' like 'b') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' between 'b' and 'c'));
-hex(concat('a' between 'b' and 'c'))
-0030
-create table t1 as select concat('a' between 'b' and 'c') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' in ('a','b')));
-hex(concat('a' in ('a','b')))
-0031
-create table t1 as select concat('a' in ('a','b')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(interval(23, 1, 15, 17, 30, 44, 200)));
-hex(concat(interval(23, 1, 15, 17, 30, 44, 200)))
-0033
-create table t1 as select concat(interval(23, 1, 15, 17, 30, 44, 200)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a varchar(10), fulltext key(a));
-insert into t1 values ('a');
-select hex(concat(match (a) against ('a'))) from t1;
-hex(concat(match (a) against ('a')))
-0030
-create table t2 as select concat(match (a) against ('a')) as a from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-select hex(ifnull(1,'a'));
-hex(ifnull(1,'a'))
-0031
-create table t1 as select ifnull(1,'a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ifnull(1,1)));
-hex(concat(ifnull(1,1)))
-0031
-create table t1 as select concat(ifnull(1,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ifnull(1.1,1.1)));
-hex(concat(ifnull(1.1,1.1)))
-0031002E0031
-create table t1 as select concat(ifnull(1.1,1.1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(if(1,'b',1));
-hex(if(1,'b',1))
-0062
-create table t1 as select if(1,'b',1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(if(1,1,'b'));
-hex(if(1,1,'b'))
-0031
-create table t1 as select if(1,1,'b') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(if(1,1,1)));
-hex(concat(if(1,1,1)))
-0031
-create table t1 as select concat(if(1,1,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(nullif(1,2)));
-hex(concat(nullif(1,2)))
-0031
-create table t1 as select concat(nullif(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Dimension(GeomFromText('LINESTRING(0 0,10 10)'))));
-hex(concat(Dimension(GeomFromText('LINESTRING(0 0,10 10)'))))
-0031
-create table t1 as select concat(Dimension(GeomFromText('LINSTRING(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))));
-hex(concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))))
-0032
-create table t1 as select concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))));
-hex(concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))))
-0032
-create table t1 as select concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))));
-hex(concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))))
-0030
-create table t1 as select concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))));
-hex(concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))))
-0031
-create table t1 as select concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsEmpty(GeomFromText('POINT(1 1)'))));
-hex(concat(IsEmpty(GeomFromText('POINT(1 1)'))))
-0030
-create table t1 as select concat(IsEmpty(GeomFromText('Point(1 1)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsSimple(GeomFromText('POINT(1 1)'))));
-hex(concat(IsSimple(GeomFromText('POINT(1 1)'))))
-0031
-create table t1 as select concat(IsSimple(GeomFromText('Point(1 1)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))));
-hex(concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))))
-0030
-create table t1 as select concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))));
-hex(concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))))
-0031
-create table t1 as select concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))) as c1;
-drop table t1;
-select hex(concat(x(GeomFromText('Point(1 2)'))));
-hex(concat(x(GeomFromText('Point(1 2)'))))
-0031
-create table t1 as select concat(x(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(y(GeomFromText('Point(1 2)'))));
-hex(concat(y(GeomFromText('Point(1 2)'))))
-0032
-create table t1 as select concat(x(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(GLength(GeomFromText('LineString(1 2,2 2)'))));
-hex(concat(GLength(GeomFromText('LineString(1 2,2 2)'))))
-0031
-create table t1 as select concat(GLength(GeomFromText('LineString(1 2, 2 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))));
-hex(concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))))
-0031
-create table t1 as select concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(GeometryType(GeomFromText('Point(1 2)'))));
-hex(concat(GeometryType(GeomFromText('Point(1 2)'))))
-0050004F0049004E0054
-create table t1 as select concat(GeometryType(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(AsText(GeomFromText('Point(1 2)'))));
-hex(concat(AsText(GeomFromText('Point(1 2)'))))
-0050004F0049004E005400280031002000320029
-create table t1 as select concat(AsText(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` longtext CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(period_add(200902, 2)));
-hex(concat(period_add(200902, 2)))
-003200300030003900300034
-create table t1 as select concat(period_add(200902, 2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(period_diff(200902, 200802)));
-hex(concat(period_diff(200902, 200802)))
-00310032
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1 as select concat(period_add(200902, 200802)) as c1;
-Warnings:
-Warning 1265 Data truncated for column 'c1' at row 1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET ucs2 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(to_days(20090224)));
-hex(concat(to_days(20090224)))
-003700330033003800320037
-create table t1 as select concat(to_days(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofmonth(20090224)));
-hex(concat(dayofmonth(20090224)))
-00320034
-create table t1 as select concat(dayofmonth(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofyear(20090224)));
-hex(concat(dayofyear(20090224)))
-00350035
-create table t1 as select concat(dayofyear(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(hour('10:11:12')));
-hex(concat(hour('10:11:12')))
-00310030
-create table t1 as select concat(hour('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(minute('10:11:12')));
-hex(concat(minute('10:11:12')))
-00310031
-create table t1 as select concat(minute('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(second('10:11:12')));
-hex(concat(second('10:11:12')))
-00310032
-create table t1 as select concat(second('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(quarter(20090224)));
-hex(concat(quarter(20090224)))
-0031
-create table t1 as select concat(quarter(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(week(20090224)));
-hex(concat(week(20090224)))
-0038
-create table t1 as select concat(week(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(yearweek(20090224)));
-hex(concat(yearweek(20090224)))
-003200300030003900300038
-create table t1 as select concat(yearweek(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(year(20090224)));
-hex(concat(year(20090224)))
-0032003000300039
-create table t1 as select concat(year(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(weekday(20090224)));
-hex(concat(weekday(20090224)))
-0031
-create table t1 as select concat(weekday(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofweek(20090224)));
-hex(concat(dayofweek(20090224)))
-0033
-create table t1 as select concat(dayofweek(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(unix_timestamp(20090224)));
-hex(concat(unix_timestamp(20090224)))
-0031003200330035003400320032003800300030
-create table t1 as select concat(unix_timestamp(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(17) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(time_to_sec('10:11:12')));
-hex(concat(time_to_sec('10:11:12')))
-00330036003600370032
-create table t1 as select concat(time_to_sec('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(17) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(extract(year from 20090702)));
-hex(concat(extract(year from 20090702)))
-0032003000300039
-create table t1 as select concat(extract(year from 20090702)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(microsecond('12:00:00.123456')));
-hex(concat(microsecond('12:00:00.123456')))
-003100320033003400350036
-create table t1 as select concat(microsecond('12:00:00.123456')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(month(20090224)));
-hex(concat(month(20090224)))
-0032
-create table t1 as select concat(month(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(last_day('2003-02-05')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2003-02-28 0032003000300033002D00300032002D00320038
-drop table t1;
-create table t1 as select concat(from_days(730669)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2000-07-03 0032003000300030002D00300037002D00300033
-drop table t1;
-create table t1 as select concat(curdate()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(utc_date()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(curtime()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select repeat('a',20) as c1 limit 0;
-set timestamp=1216359724;
-insert into t1 values (current_date);
-insert into t1 values (current_time);
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2008-07-18 0032003000300038002D00300037002D00310038
-08:42:04 00300038003A00340032003A00300034
-drop table t1;
-create table t1 as select concat(utc_time()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sec_to_time(2378)));
-hex(concat(sec_to_time(2378)))
-00300030003A00330039003A00330038
-create table t1 as select concat(sec_to_time(2378)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')));
-hex(concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')))
-00320034003A00300030003A00300030
-create table t1 as select concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(maketime(10,11,12)));
-hex(concat(maketime(10,11,12)))
-00310030003A00310031003A00310032
-create table t1 as select concat(maketime(10,11,12)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(get_format(DATE,'USA'));
-hex(get_format(DATE,'USA'))
-0025006D002E00250064002E00250059
-create table t1 as select get_format(DATE,'USA') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(17) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(from_unixtime(1111885200)),4));
-hex(left(concat(from_unixtime(1111885200)),4))
-0032003000300035
-create table t1 as select concat(from_unixtime(1111885200)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')));
-hex(concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')))
-0032003000300033002D00310032002D00330031002000320030003A00300030003A00300030
-create table t1 as select concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(date_add('2004-01-01 12:00:00', interval 1 day)));
-hex(concat(date_add('2004-01-01 12:00:00', interval 1 day)))
-0032003000300034002D00300031002D00300032002000310032003A00300030003A00300030
-create table t1 as select concat(date_add('2004-01-01 12:00:00', interval 1 day)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2004-01-02 12:00:00
-drop table t1;
-select hex(concat(makedate(2009,1)));
-hex(concat(makedate(2009,1)))
-0032003000300039002D00300031002D00300031
-create table t1 as select concat(makedate(2009,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2009-01-01
-drop table t1;
-create table t1 as select concat(now()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(utc_timestamp()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(sysdate()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(addtime('00:00:00','11:22:33')));
-hex(concat(addtime('00:00:00','11:22:33')))
-00310031003A00320032003A00330033
-create table t1 as select concat(addtime('00:00:00','11:22:33')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(26) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(subtime('23:59:59','11:22:33')));
-hex(concat(subtime('23:59:59','11:22:33')))
-00310032003A00330037003A00320036
-create table t1 as select concat(subtime('23:59:59','11:22:33')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(26) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(elt(1,2,3));
-hex(elt(1,2,3))
-0032
-create table t1 as select elt(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(export_set(1,2,3,4,2));
-hex(export_set(1,2,3,4,2))
-003200340033
-create table t1 as select export_set(1,2,3,4,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(127) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(insert(1133,3,0,22));
-hex(insert(1133,3,0,22))
-003100310032003200330033
-create table t1 as select insert(1133,3,0,22) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lcase(123));
-hex(lcase(123))
-003100320033
-create table t1 as select lcase(123) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(123,1));
-hex(left(123,1))
-0031
-create table t1 as select left(123,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lower(123));
-hex(lower(123))
-003100320033
-create table t1 as select lower(123) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lpad(1,2,0));
-hex(lpad(1,2,0))
-00300031
-create table t1 as select lpad(1,2,0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(ltrim(1));
-hex(ltrim(1))
-0031
-create table t1 as select ltrim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(mid(1,1,1));
-hex(mid(1,1,1))
-0031
-create table t1 as select mid(1,1,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(repeat(1,2));
-hex(repeat(1,2))
-00310031
-create table t1 as select repeat(1,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(replace(1,1,2));
-hex(replace(1,1,2))
-0032
-create table t1 as select replace(1,1,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(reverse(12));
-hex(reverse(12))
-00320031
-create table t1 as select reverse(12) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(right(123,1));
-hex(right(123,1))
-0033
-create table t1 as select right(123,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(rpad(1,2,0));
-hex(rpad(1,2,0))
-00310030
-create table t1 as select rpad(1,2,0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(rtrim(1));
-hex(rtrim(1))
-0031
-create table t1 as select rtrim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(soundex(1));
-hex(soundex(1))
-
-create table t1 as select soundex(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(substring(1,1,1));
-hex(substring(1,1,1))
-0031
-create table t1 as select substring(1,1,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(trim(1));
-hex(trim(1))
-0031
-create table t1 as select trim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(ucase(1));
-hex(ucase(1))
-0031
-create table t1 as select ucase(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(upper(1));
-hex(upper(1))
-0031
-create table t1 as select upper(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select repeat(' ', 64) as a limit 0;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(64) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ("1.1"), ("2.1");
-select a, hex(a) from t1;
-a hex(a)
-1.1 0031002E0031
-2.1 0032002E0031
-update t1 set a= a + 0.1;
-select a, hex(a) from t1;
-a hex(a)
-1.2000000000000002 0031002E0032003000300030003000300030003000300030003000300030003000300032
-2.2 0032002E0032
-drop table t1;
-create table t1 (a tinyint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-0031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(4) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a tinyint zerofill);
-insert into t1 values (1), (10), (100);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-003000300031 001
-003000310030 010
-003100300030 100
-drop table t1;
-create table t1 (a tinyint(4) zerofill);
-insert into t1 values (1), (10), (100);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-0030003000300031 0001
-0030003000310030 0010
-0030003100300030 0100
-drop table t1;
-create table t1 (a decimal(10,2));
-insert into t1 values (123.45);
-select hex(concat(a)) from t1;
-hex(concat(a))
-003100320033002E00340035
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(12) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a smallint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-0031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(6) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a smallint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-00300030003000300031 00001
-00300030003000310030 00010
-00300030003100300030 00100
-00300031003000300030 01000
-00310030003000300030 10000
-drop table t1;
-create table t1 (a mediumint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-0031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(9) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a mediumint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-00300030003000300030003000300031 00000001
-00300030003000300030003000310030 00000010
-00300030003000300030003100300030 00000100
-00300030003000300031003000300030 00001000
-00300030003000310030003000300030 00010000
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-0031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(11) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a int zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-0030003000300030003000300030003000300031 0000000001
-0030003000300030003000300030003000310030 0000000010
-0030003000300030003000300030003100300030 0000000100
-0030003000300030003000300031003000300030 0000001000
-0030003000300030003000310030003000300030 0000010000
-drop table t1;
-create table t1 (a bigint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-0031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(20) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a bigint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-00300030003000300030003000300030003000300030003000300030003000300030003000300031 00000000000000000001
-00300030003000300030003000300030003000300030003000300030003000300030003000310030 00000000000000000010
-00300030003000300030003000300030003000300030003000300030003000300030003100300030 00000000000000000100
-00300030003000300030003000300030003000300030003000300030003000300031003000300030 00000000000000001000
-00300030003000300030003000300030003000300030003000300030003000310030003000300030 00000000000000010000
-drop table t1;
-create table t1 (a float);
-insert into t1 values (123.456);
-select hex(concat(a)) from t1;
-hex(concat(a))
-003100320033002E003400350036
-select concat(a) from t1;
-concat(a)
-123.456
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(12) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a float zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-0030003000300030003000300030003000300031002E0031 0000000001.1
-0030003000300030003000300030003000310030002E0031 0000000010.1
-0030003000300030003000300030003100300030002E0031 0000000100.1
-0030003000300030003000300031003000300030002E0031 0000001000.1
-0030003000300030003000310030003000300030002E0031 0000010000.1
-drop table t1;
-create table t1 (a double);
-insert into t1 values (123.456);
-select hex(concat(a)) from t1;
-hex(concat(a))
-003100320033002E003400350036
-select concat(a) from t1;
-concat(a)
-123.456
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(22) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a double zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-00300030003000300030003000300030003000300030003000300030003000300030003000300031002E0031 00000000000000000001.1
-00300030003000300030003000300030003000300030003000300030003000300030003000310030002E0031 00000000000000000010.1
-00300030003000300030003000300030003000300030003000300030003000300030003100300030002E0031 00000000000000000100.1
-00300030003000300030003000300030003000300030003000300030003000300031003000300030002E0031 00000000000000001000.1
-00300030003000300030003000300030003000300030003000300030003000310030003000300030002E0031 00000000000000010000.1
-drop table t1;
-create table t1 (a year(2));
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-00300031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a year);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-0032003000300031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(4) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a bit(64));
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-0000000000000001
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(64) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values (0);
-insert into t1 values (20010203040506);
-insert into t1 values (19800203040506);
-insert into t1 values ('2001-02-03 04:05:06');
-select hex(concat(a)) from t1;
-hex(concat(a))
-0030003000300030002D00300030002D00300030002000300030003A00300030003A00300030
-0032003000300031002D00300032002D00300033002000300034003A00300035003A00300036
-0031003900380030002D00300032002D00300033002000300034003A00300035003A00300036
-0032003000300031002D00300032002D00300033002000300034003A00300035003A00300036
-select concat(a) from t1;
-concat(a)
-0000-00-00 00:00:00
-2001-02-03 04:05:06
-1980-02-03 04:05:06
-2001-02-03 04:05:06
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(19) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a date);
-insert into t1 values ('2001-02-03');
-insert into t1 values (20010203);
-select hex(concat(a)) from t1;
-hex(concat(a))
-0032003000300031002D00300032002D00300033
-0032003000300031002D00300032002D00300033
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a time);
-insert into t1 values (1);
-insert into t1 values ('01:02:03');
-select hex(concat(a)) from t1;
-hex(concat(a))
-00300030003A00300030003A00300031
-00300031003A00300032003A00300033
-select concat(a) from t1;
-concat(a)
-00:00:01
-01:02:03
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a datetime);
-insert into t1 values ('2001-02-03 04:05:06');
-insert into t1 values (20010203040506);
-select hex(concat(a)) from t1;
-hex(concat(a))
-0032003000300031002D00300032002D00300033002000300034003A00300035003A00300036
-0032003000300031002D00300032002D00300033002000300034003A00300035003A00300036
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(19) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a tinyint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(4) YES NULL
-select hex(a) from v1;
-hex(a)
-0031
-drop table t1;
-drop view v1;
-create table t1 (a tinyint zerofill);
-insert into t1 values (1), (10), (100);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(3) YES NULL
-select hex(a) from v1;
-hex(a)
-003000300031
-003000310030
-003100300030
-drop table t1;
-drop view v1;
-create table t1 (a tinyint(30) zerofill);
-insert into t1 values (1), (10), (100);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(30) YES NULL
-select hex(a) from v1;
-hex(a)
-003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300031
-003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000310030
-003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003100300030
-drop table t1;
-drop view v1;
-create table t1 (a decimal(10,2));
-insert into t1 values (123.45);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(12) YES NULL
-select hex(a) from v1;
-hex(a)
-003100320033002E00340035
-drop table t1;
-drop view v1;
-create table t1 (a smallint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(6) YES NULL
-select hex(a) from v1;
-hex(a)
-0031
-drop table t1;
-drop view v1;
-create table t1 (a smallint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(5) YES NULL
-select hex(a) from v1;
-hex(a)
-00300030003000300031
-00300030003000310030
-00300030003100300030
-00300031003000300030
-00310030003000300030
-drop table t1;
-drop view v1;
-create table t1 (a mediumint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(9) YES NULL
-select hex(a) from v1;
-hex(a)
-0031
-drop table t1;
-drop view v1;
-create table t1 (a mediumint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(8) YES NULL
-select hex(a) from v1;
-hex(a)
-00300030003000300030003000300031
-00300030003000300030003000310030
-00300030003000300030003100300030
-00300030003000300031003000300030
-00300030003000310030003000300030
-drop table t1;
-drop view v1;
-create table t1 (a int);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(11) YES NULL
-select hex(a) from v1;
-hex(a)
-0031
-drop table t1;
-drop view v1;
-create table t1 (a int zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(10) YES NULL
-select hex(a) from v1;
-hex(a)
-0030003000300030003000300030003000300031
-0030003000300030003000300030003000310030
-0030003000300030003000300030003100300030
-0030003000300030003000300031003000300030
-0030003000300030003000310030003000300030
-drop table t1;
-drop view v1;
-create table t1 (a bigint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(20) YES NULL
-select hex(a) from v1;
-hex(a)
-0031
-drop table t1;
-drop view v1;
-create table t1 (a bigint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(20) YES NULL
-select hex(a) from v1;
-hex(a)
-00300030003000300030003000300030003000300030003000300030003000300030003000300031
-00300030003000300030003000300030003000300030003000300030003000300030003000310030
-00300030003000300030003000300030003000300030003000300030003000300030003100300030
-00300030003000300030003000300030003000300030003000300030003000300031003000300030
-00300030003000300030003000300030003000300030003000300030003000310030003000300030
-drop table t1;
-drop view v1;
-create table t1 (a float);
-insert into t1 values (123.456);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(12) YES NULL
-select hex(a) from v1;
-hex(a)
-003100320033002E003400350036
-drop table t1;
-drop view v1;
-create table t1 (a float zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(12) YES NULL
-select hex(a) from v1;
-hex(a)
-0030003000300030003000300030003000300031002E0031
-0030003000300030003000300030003000310030002E0031
-0030003000300030003000300030003100300030002E0031
-0030003000300030003000300031003000300030002E0031
-0030003000300030003000310030003000300030002E0031
-drop table t1;
-drop view v1;
-create table t1 (a double);
-insert into t1 values (123.456);
-select concat(a) from t1;
-concat(a)
-123.456
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(22) YES NULL
-select hex(a) from v1;
-hex(a)
-003100320033002E003400350036
-drop table t1;
-drop view v1;
-create table t1 (a double zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(22) YES NULL
-select hex(a) from v1;
-hex(a)
-00300030003000300030003000300030003000300030003000300030003000300030003000300031002E0031
-00300030003000300030003000300030003000300030003000300030003000300030003000310030002E0031
-00300030003000300030003000300030003000300030003000300030003000300030003100300030002E0031
-00300030003000300030003000300030003000300030003000300030003000300031003000300030002E0031
-00300030003000300030003000300030003000300030003000300030003000310030003000300030002E0031
-drop table t1;
-drop view v1;
-create table t1 (a year(2));
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(2) YES NULL
-select hex(a) from v1;
-hex(a)
-00300031
-drop table t1;
-drop view v1;
-create table t1 (a year);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(4) YES NULL
-select hex(a) from v1;
-hex(a)
-0032003000300031
-drop table t1;
-drop view v1;
-create table t1 (a bit(64));
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(64) YES NULL
-select hex(a) from v1;
-hex(a)
-0000000000000001
-drop table t1;
-drop view v1;
-create table t1 (a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values (0);
-insert into t1 values (20010203040506);
-insert into t1 values (19800203040506);
-insert into t1 values ('2001-02-03 04:05:06');
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(19) YES NULL
-select hex(a) from v1;
-hex(a)
-0030003000300030002D00300030002D00300030002000300030003A00300030003A00300030
-0032003000300031002D00300032002D00300033002000300034003A00300035003A00300036
-0031003900380030002D00300032002D00300033002000300034003A00300035003A00300036
-0032003000300031002D00300032002D00300033002000300034003A00300035003A00300036
-drop table t1;
-drop view v1;
-create table t1 (a date);
-insert into t1 values ('2001-02-03');
-insert into t1 values (20010203);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(10) YES NULL
-select hex(a) from v1;
-hex(a)
-0032003000300031002D00300032002D00300033
-0032003000300031002D00300032002D00300033
-drop table t1;
-drop view v1;
-create table t1 (a time);
-insert into t1 values (1);
-insert into t1 values ('01:02:03');
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(10) YES NULL
-select hex(a) from v1;
-hex(a)
-00300030003A00300030003A00300031
-00300031003A00300032003A00300033
-drop table t1;
-drop view v1;
-create table t1 (a datetime);
-insert into t1 values ('2001-02-03 04:05:06');
-insert into t1 values (20010203040506);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(19) YES NULL
-select hex(a) from v1;
-hex(a)
-0032003000300031002D00300032002D00300033002000300034003A00300035003A00300036
-0032003000300031002D00300032002D00300033002000300034003A00300035003A00300036
-drop table t1;
-drop view v1;
-create function f1 (par1 int) returns int
-begin
-return concat(par1);
-end|
-set @a= f1(1);
-select hex(@a);
-hex(@a)
-1
-select hex(concat(f1(1)));
-hex(concat(f1(1)))
-31
-create table t1 as select f1(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(1)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(11) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 decimal(18,2)) returns decimal(18,2)
-begin
-return concat(par1);
-end|
-set @a= f1(123.45);
-select hex(@a);
-hex(@a)
-7B
-select hex(concat(f1(123.45)));
-hex(concat(f1(123.45)))
-3132332E3435
-create table t1 as select f1(123.45) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` decimal(18,2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(123.45)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(123.45)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(20) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 float) returns float
-begin
-return concat(par1);
-end|
-set @a= f1(123.45);
-select hex(@a);
-hex(@a)
-7B
-select hex(concat(f1(123.45)));
-hex(concat(f1(123.45)))
-3132332E3435
-create table t1 as select f1(123.45) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` float DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(123.45)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(123.45)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(12) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 date) returns date
-begin
-return concat(par1);
-end|
-set @a= f1(cast('2001-01-02' as date));
-select hex(@a);
-hex(@a)
-323030312D30312D3032
-select hex(concat(f1(cast('2001-01-02' as date))));
-hex(concat(f1(cast('2001-01-02' as date))))
-323030312D30312D3032
-create table t1 as select f1(cast('2001-01-02' as date)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(cast('2001-01-02' as date))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(cast('2001-01-02' as date))) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(10) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-#
-# End of WL#2649 Number-to-string conversions
-#
-#
-# Bug#54668 User variable assignments get wrong type
-#
-SET @x=md5('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-ucs2 ucs2_general_ci
-SET @x=old_password('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-ucs2 ucs2_general_ci
-SET @x=password('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-ucs2 ucs2_general_ci
-SET @x=sha('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-ucs2 ucs2_general_ci
-SET @x=sha1('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-ucs2 ucs2_general_ci
-SET @x=astext(point(1,2));
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-ucs2 ucs2_general_ci
-SET @x=aswkt(point(1,2));
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-ucs2 ucs2_general_ci
-#
-# Bug#54916 GROUP_CONCAT + IFNULL truncates output
-#
-SELECT @@collation_connection;
-@@collation_connection
-ucs2_general_ci
-CREATE TABLE t1 (a MEDIUMINT NULL) ENGINE=MYISAM;
-INSERT INTO t1 VALUES (1234567);
-SELECT GROUP_CONCAT(IFNULL(a,'')) FROM t1;
-GROUP_CONCAT(IFNULL(a,''))
-1234567
-SELECT GROUP_CONCAT(IF(a,a,'')) FROM t1;
-GROUP_CONCAT(IF(a,a,''))
-1234567
-SELECT GROUP_CONCAT(CASE WHEN a THEN a ELSE '' END) FROM t1;
-GROUP_CONCAT(CASE WHEN a THEN a ELSE '' END)
-1234567
-SELECT COALESCE(a,'') FROM t1 GROUP BY 1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def COALESCE(a,'') 253 9 7 Y 0 39 8
-COALESCE(a,'')
-1234567
-# All columns must be VARCHAR(9) with the same length:
-CREATE TABLE t2 AS
-SELECT
-CONCAT(a),
-IFNULL(a,''),
-IF(a,a,''),
-CASE WHEN a THEN a ELSE '' END,
-COALESCE(a,'')
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT(a)` varchar(9) CHARACTER SET ucs2 DEFAULT NULL,
- `IFNULL(a,'')` varchar(9) CHARACTER SET ucs2 NOT NULL,
- `IF(a,a,'')` varchar(9) CHARACTER SET ucs2 DEFAULT NULL,
- `CASE WHEN a THEN a ELSE '' END` varchar(9) CHARACTER SET ucs2 DEFAULT NULL,
- `COALESCE(a,'')` varchar(9) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT CONCAT_WS(1,2,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT_WS(1,2,3)` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT INSERT(1133,3,0,22) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `INSERT(1133,3,0,22)` varchar(6) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LCASE(a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LCASE(a)` varchar(9) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT UCASE(a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `UCASE(a)` varchar(9) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT REPEAT(1,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `REPEAT(1,2)` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LEFT(123,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEFT(123,2)` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT RIGHT(123,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `RIGHT(123,2)` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LTRIM(123) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LTRIM(123)` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT RTRIM(123) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `RTRIM(123)` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT ELT(1,111,222,333) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ELT(1,111,222,333)` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT REPLACE(111,2,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `REPLACE(111,2,3)` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT SUBSTRING_INDEX(111,111,1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `SUBSTRING_INDEX(111,111,1)` varchar(3) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT MAKE_SET(111,222,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `MAKE_SET(111,222,3)` varchar(5) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT SOUNDEX(1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `SOUNDEX(1)` varchar(4) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT EXPORT_SET(1,'Y','N','',8);
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `EXPORT_SET(1,'Y','N','',8)` varchar(64) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# End of Bug#54916
-#
-#
-# Bug#58190 BETWEEN no longer uses indexes for date or datetime fields
-#
-SELECT @@collation_connection;
-@@collation_connection
-ucs2_general_ci
-CREATE TABLE t1 (
-id INT(11) DEFAULT NULL,
-date_column DATE DEFAULT NULL,
-KEY(date_column));
-INSERT INTO t1 VALUES (1,'2010-09-01'),(2,'2010-10-01');
-EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range date_column date_column 4 NULL 1 Using index condition
-ALTER TABLE t1 MODIFY date_column DATETIME DEFAULT NULL;
-EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range date_column date_column 6 NULL 1 Using index condition
-DROP TABLE t1;
-#
-# Bug #31384 DATE_ADD() and DATE_SUB() return binary data
-#
-SELECT @@collation_connection, @@character_set_results;
-@@collation_connection @@character_set_results
-ucs2_general_ci latin1
-SELECT
-CHARSET(DATE_SUB('2007-08-03', INTERVAL 1 MINUTE)) AS field_str1,
-CHARSET(DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE)) AS field_str2,
-CHARSET(DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY)) AS field_date,
-CHARSET(DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE)) AS field_datetime;
-field_str1 field_str2 field_date field_datetime
-ucs2 ucs2 binary binary
-CREATE TABLE t1 AS
-SELECT
-DATE_SUB('2007-08-03', INTERVAL 1 MINUTE) AS field_str1,
-DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE) AS field1_str2,
-DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY) AS field_date,
-DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE) AS field_datetime;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `field_str1` varchar(19) CHARACTER SET ucs2 DEFAULT NULL,
- `field1_str2` varchar(19) CHARACTER SET ucs2 DEFAULT NULL,
- `field_date` date DEFAULT NULL,
- `field_datetime` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SELECT
-DATE_SUB('2007-08-03', INTERVAL 1 DAY) AS field_str1,
-DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE) AS field1_str2,
-DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY) AS field_date,
-DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE) AS field_datetime;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def field_str1 254 19 10 Y 0 0 8
-def field1_str2 254 19 19 Y 0 0 8
-def field_date 10 10 10 Y 128 0 63
-def field_datetime 12 19 19 Y 128 0 63
-field_str1 field1_str2 field_date field_datetime
-2007-08-02 2007-08-03 17:32:00 2007-08-02 2007-08-03 17:32:00
-SELECT
-HEX(DATE_SUB('2007-08-03', INTERVAL 1 MINUTE)) AS field_str1,
-HEX(DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE)) AS field1_str2,
-HEX(DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY)) AS field_date,
-HEX(DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE)) AS field_datetime;
-field_str1 field1_str2 field_date field_datetime
-0032003000300037002D00300038002D00300032002000320033003A00350039003A00300030 0032003000300037002D00300038002D00300033002000310037003A00330032003A00300030 323030372D30382D3032 323030372D30382D30332031373A33323A3030
-#
-# MDEV-4841 Wrong character set of ADDTIME() and DATE_ADD()
-#
-SELECT @@collation_connection, @@character_set_results;
-@@collation_connection @@character_set_results
-ucs2_general_ci latin1
-SELECT
-CHARSET(ADDTIME(_latin1'10:01:01',_latin1'10:00:00')) AS addtime1,
-CHARSET(ADDTIME('10:01:01','10:00:00')) AS addtime2,
-CHARSET(DATE_ADD(_latin1'2001-01-01 10:01:01',interval 10 second)) AS date_add1,
-CHARSET(DATE_ADD('2001-01-01 10:01:01',interval 10 second)) AS date_add2;
-addtime1 addtime2 date_add1 date_add2
-ucs2 ucs2 ucs2 ucs2
-CREATE TABLE t1 AS
-SELECT
-ADDTIME(_latin1'10:01:01',_latin1'10:00:00') AS addtime1,
-ADDTIME('10:01:01','10:00:00') AS addtime2,
-DATE_ADD(_latin1'2001-01-01 10:01:01',interval 10 second) AS date_add1,
-DATE_ADD('2001-01-01 10:01:01',interval 10 second) AS date_add2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `addtime1` varchar(26) CHARACTER SET ucs2 DEFAULT NULL,
- `addtime2` varchar(26) CHARACTER SET ucs2 DEFAULT NULL,
- `date_add1` varchar(19) CHARACTER SET ucs2 DEFAULT NULL,
- `date_add2` varchar(19) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-addtime1 addtime2 date_add1 date_add2
-20:01:01 20:01:01 2001-01-01 10:01:11 2001-01-01 10:01:11
-DROP TABLE t1;
-#
-# Bug#11926811 / Bug#60625 Illegal mix of collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-ucs2_general_ci
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE v_LastPaymentDate DATETIME DEFAULT NULL;
-SELECT v_LastPaymentDate < NOW();
-EXPLAIN EXTENDED SELECT v_LastPaymentDate < NOW();
-SHOW WARNINGS;
-EXPLAIN EXTENDED SELECT CONCAT(v_LastPaymentDate, NOW());
-END//
-CALL p1;
-v_LastPaymentDate < NOW()
-NULL
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Level Code Message
-Note 1003 select v_LastPaymentDate@0 < current_timestamp() AS `v_LastPaymentDate < NOW()`
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select concat(convert(v_LastPaymentDate@0 using ucs2),convert(current_timestamp() using ucs2)) AS `CONCAT(v_LastPaymentDate, NOW())`
-DROP PROCEDURE p1;
-#
-# Bug#52159 returning time type from function and empty left join causes debug assertion
-#
-CREATE FUNCTION f1() RETURNS TIME RETURN 1;
-CREATE TABLE t1 (b INT);
-INSERT INTO t1 VALUES (0);
-SELECT f1() FROM t1 LEFT JOIN (SELECT 1 AS a FROM t1 LIMIT 0) AS d ON 1 GROUP BY a;
-f1()
-00:00:01
-DROP FUNCTION f1;
-DROP TABLE t1;
-#
-# MDEV-9662 Assertion `precision || !scale' failed in my_decimal_precision_to_length_no_truncation(uint, uint8, bool)
-#
-SELECT @@collation_connection;
-@@collation_connection
-ucs2_general_ci
-SELECT CASE 1 WHEN 2 THEN ( - '3' ) END;
-CASE 1 WHEN 2 THEN ( - '3' ) END
-NULL
-#
-# MDEV-5702 Incorrect results are returned with NULLIF()
-#
-CREATE TABLE t1 (d DATE);
-INSERT INTO t1 VALUES ('1999-11-11'),('2014-02-04');
-SELECT DISTINCT d, CAST(d AS CHAR), NULLIF(d,"2000-01-01") AS bad, NULLIF(CAST(d AS CHAR),"2000-01-01") AS good FROM t1;
-d CAST(d AS CHAR) bad good
-1999-11-11 1999-11-11 1999-11-11 1999-11-11
-2014-02-04 2014-02-04 2014-02-04 2014-02-04
-CREATE TABLE t2 AS SELECT DISTINCT d, NULLIF(d,'2000-01-01') AS bad FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `d` date DEFAULT NULL,
- `bad` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1, t2;
-SET NAMES latin1;
-SET sql_mode='';
-CREATE TABLE t1(a char(215) CHARACTER SET utf8 NOT NULL DEFAULT '', KEY(a));
-INSERT INTO t1 VALUES ();
-SELECT maketime(`a`,`a`,`a`) FROM t1 GROUP BY 1;
-maketime(`a`,`a`,`a`)
-00:00:00.000000
-DROP TABLE t1;
-SET sql_mode=default;
-SET NAMES latin1;
-#
-# Bug #13832953 MY_STRNXFRM_UNICODE: ASSERTION `SRC' FAILED
-#
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t1 (c1 SET('','') CHARACTER SET ucs2);
-Warnings:
-Note 1291 Column 'c1' has duplicated value '' in SET
-INSERT INTO t1 VALUES ('');
-SELECT COALESCE(c1) FROM t1 ORDER BY 1;
-COALESCE(c1)
-
-DROP TABLE t1;
-#
-# MDEV-5745 analyze MySQL fix for bug#12368495
-#
-SELECT CHAR_LENGTH(TRIM(LEADING 0x000000 FROM _ucs2 0x0061));
-CHAR_LENGTH(TRIM(LEADING 0x000000 FROM _ucs2 0x0061))
-2
-SELECT CHAR_LENGTH(TRIM(LEADING 0x0001 FROM _ucs2 0x0061));
-CHAR_LENGTH(TRIM(LEADING 0x0001 FROM _ucs2 0x0061))
-2
-SELECT CHAR_LENGTH(TRIM(LEADING 0x00 FROM _ucs2 0x0061));
-CHAR_LENGTH(TRIM(LEADING 0x00 FROM _ucs2 0x0061))
-1
-SELECT CHAR_LENGTH(TRIM(TRAILING 0x000000 FROM _ucs2 0x0061));
-CHAR_LENGTH(TRIM(TRAILING 0x000000 FROM _ucs2 0x0061))
-2
-SELECT CHAR_LENGTH(TRIM(TRAILING 0x0001 FROM _ucs2 0x0061));
-CHAR_LENGTH(TRIM(TRAILING 0x0001 FROM _ucs2 0x0061))
-2
-SELECT CHAR_LENGTH(TRIM(TRAILING 0x61 FROM _ucs2 0x0061));
-CHAR_LENGTH(TRIM(TRAILING 0x61 FROM _ucs2 0x0061))
-1
-SELECT CHAR_LENGTH(TRIM(BOTH 0x000000 FROM _ucs2 0x0061));
-CHAR_LENGTH(TRIM(BOTH 0x000000 FROM _ucs2 0x0061))
-2
-SELECT CHAR_LENGTH(TRIM(BOTH 0x0001 FROM _ucs2 0x0061));
-CHAR_LENGTH(TRIM(BOTH 0x0001 FROM _ucs2 0x0061))
-2
-SELECT CHAR_LENGTH(TRIM(BOTH 0x61 FROM _ucs2 0x0061));
-CHAR_LENGTH(TRIM(BOTH 0x61 FROM _ucs2 0x0061))
-1
-SELECT CHAR_LENGTH(TRIM(BOTH 0x00 FROM _ucs2 0x0061));
-CHAR_LENGTH(TRIM(BOTH 0x00 FROM _ucs2 0x0061))
-1
-#
-# MDEV-11685: sql_mode can't be set with non-ascii connection charset
-#
-SET character_set_connection=ucs2;
-SET sql_mode='NO_ENGINE_SUBSTITUTION';
-SELECT @@sql_mode;
-@@sql_mode
-NO_ENGINE_SUBSTITUTION
-SET sql_mode=DEFAULT;
-SET NAMES utf8;
-#
-# MDEV-13972 crash in Item_func_sec_to_time::get_date
-#
-SELECT SEC_TO_TIME(CONVERT(900*24*60*60 USING ucs2));
-SEC_TO_TIME(CONVERT(900*24*60*60 USING ucs2))
-838:59:59.999999
-Warnings:
-Warning 1292 Truncated incorrect time value: '77760000'
-#
-# MDEV-13530 VARBINARY doesn't convert to to BLOB for sizes 65533, 65534 and 65535
-#
-set sql_mode="";
-CREATE TABLE t1 (c1 VARCHAR(32766) CHARACTER SET ucs2);
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 varchar(32766) YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(32767) CHARACTER SET ucs2);
-Warnings:
-Note 1246 Converting column 'c1' from VARCHAR to TEXT
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 text YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(32768) CHARACTER SET ucs2);
-Warnings:
-Note 1246 Converting column 'c1' from VARCHAR to TEXT
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 mediumtext YES NULL
-DROP TABLE t1;
-set sql_mode=default;
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set collation_connection=ucs2_general_ci;
-select @@collation_connection;
-@@collation_connection
-ucs2_general_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET ucs2 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0041
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-00410041004100410041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-00410041004100410041
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-004100410041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-004100410041
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041004100410041004100200020002000200020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0041004100410041004100200020002000200020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-0041
-select hex(weight_string('A'));
-hex(weight_string('A'))
-0041
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-004100420043
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-00410042
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-004100420043
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-00410042004300200020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-00
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0041
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-004100
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-00410042002000200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-00
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0041
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-004100
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-00410042004300200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-00
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0041
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-004100
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-00410042004300200020002000200020002000200020002000
-select @@collation_connection;
-@@collation_connection
-ucs2_general_ci
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-20AC20AC20AC00200020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-20AC20AC00
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-20AC20AC002000200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select @@collation_connection;
-@@collation_connection
-ucs2_general_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-0041
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-0041
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-004100420043
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-00410042
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-004100420043
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-00410042004300200020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-20002000430042004100
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-FFBEFFBDFFBCFFDFFFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFFFDFFFBCFFBDFFBEFF
-set collation_connection=ucs2_bin;
-select @@collation_connection;
-@@collation_connection
-ucs2_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET ucs2 COLLATE ucs2_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0061
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET ucs2 COLLATE ucs2_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-00610061006100610061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-00610061006100610061
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-006100610061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-006100610061
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0061006100610061006100200020002000200020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0061006100610061006100200020002000200020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-0061
-select hex(weight_string('A'));
-hex(weight_string('A'))
-0041
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-006100620063
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-00610062
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-006100620063
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-00610062006300200020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-00
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0061
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-006100
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-00610062
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0061006200
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-00610062002000200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-00
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0061
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-006100
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-00610062
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0061006200
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-00610062006300200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-00
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0061
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-006100
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-00610062
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0061006200
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-00610062006300200020002000200020002000200020002000
-select @@collation_connection;
-@@collation_connection
-ucs2_bin
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-20AC20AC20AC00200020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-20AC20AC00
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-20AC20AC002000200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select @@collation_connection;
-@@collation_connection
-ucs2_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-0061
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-0041
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-006100620063
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-00610062
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-006100620063
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-00610062006300200020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-20002000630062006100
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-FF9EFF9DFF9CFFDFFFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFFFDFFF9CFF9DFF9EFF
-#
-# Bug #36418 Character sets: crash if char(256 using utf32)
-#
-select hex(char(0x01 using ucs2));
-hex(char(0x01 using ucs2))
-0001
-select hex(char(0x0102 using ucs2));
-hex(char(0x0102 using ucs2))
-0102
-select hex(char(0x010203 using ucs2));
-hex(char(0x010203 using ucs2))
-00010203
-select hex(char(0x01020304 using ucs2));
-hex(char(0x01020304 using ucs2))
-01020304
-#
-# Bug#10094 Displays wrong error message for UNIQUE key index on CHAR(255) Unicode datatype
-#
-CREATE TABLE t1 (f1 CHAR(255) unicode);
-INSERT INTO t1 values ('abc'),('bcd'),('abc');
-ALTER TABLE t1 ADD UNIQUE Index_1 (f1);
-ERROR 23000: Duplicate entry 'abc' for key 'Index_1'
-DROP TABLE t1;
-#
-# Test how character set works with date/time
-#
-SET collation_connection=ucs2_general_ci;
-#
-# Bug#32390 Character sets: casting utf32 to/from date doesn't work
-#
-CREATE TABLE t1 AS SELECT repeat('a',20) AS s1 LIMIT 0;
-SET time_zone=_latin1'+03:00';
-SET timestamp=1216359724;
-INSERT INTO t1 VALUES (current_date);
-INSERT INTO t1 VALUES (current_time);
-INSERT INTO t1 VALUES (current_timestamp);
-SELECT s1, hex(s1) FROM t1;
-s1 hex(s1)
-2008-07-18 0032003000300038002D00300037002D00310038
-08:42:04 00300038003A00340032003A00300034
-2008-07-18 08:42:04 0032003000300038002D00300037002D00310038002000300038003A00340032003A00300034
-DROP TABLE t1;
-SET timestamp=0;
-SET time_zone=default;
-#
-# MDEV-5298 Illegal mix of collations on timestamp
-#
-SELECT CHARSET('2013-11-15 00:41:28' - INTERVAL 7 DAY);
-CHARSET('2013-11-15 00:41:28' - INTERVAL 7 DAY)
-ucs2
-SELECT COERCIBILITY('2013-11-15 00:41:28' - INTERVAL 7 DAY);
-COERCIBILITY('2013-11-15 00:41:28' - INTERVAL 7 DAY)
-4
-SELECT CHARSET(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY);
-CHARSET(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY)
-binary
-SELECT COERCIBILITY(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY);
-COERCIBILITY(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY)
-5
-SELECT CHARSET(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY));
-CHARSET(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY))
-ucs2
-SELECT COERCIBILITY(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY))
-4
-SELECT CHARSET(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY));
-CHARSET(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY))
-ucs2
-SELECT COERCIBILITY(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY))
-4
-SELECT CHARSET(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-CHARSET(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-ucs2
-SELECT COERCIBILITY(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-4
-SELECT HEX(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-HEX(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-0032003000300031002D00300031002D00300031002000300030003A00300030003A00300030
-SELECT CHARSET(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-CHARSET(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-ucs2
-SELECT COERCIBILITY(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-4
-SELECT HEX(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-HEX(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-0032003000300031002D00300031002D00300031002000300030003A00300030003A00300030
-CREATE TABLE t1 AS SELECT REPEAT('a', 64) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(64) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('');
-SELECT CHARSET(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-CHARSET(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-ucs2
-SELECT COERCIBILITY(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-COERCIBILITY(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-2
-SELECT HEX(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-HEX(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-0032003000300031002D00300031002D00300031002000300030003A00300030003A00300030
-SELECT CHARSET(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-CHARSET(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-ucs2
-SELECT COERCIBILITY(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-COERCIBILITY(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-2
-SELECT HEX(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-HEX(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-0032003000300031002D00300031002D00300031002000300030003A00300030003A00300030
-DROP TABLE t1;
-CREATE TABLE t1 (t TIMESTAMP NOT NULL);
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00');
-SELECT * FROM t1 WHERE t < '2013-11-15 00:41:28' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = '2001-01-08 00:00:00' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t < CONCAT('2013-11-15 00:41:28',LEFT(RAND(),0)) - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = CONCAT('2001-01-08 00:00:00',LEFT(RAND(),0)) - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t < TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-DROP TABLE t1;
-SET NAMES latin1;
-#
-# WL#4013 Unicode german2 collation
-#
-SET collation_connection=ucs2_german2_ci;
-"BEGIN ctype_german.inc"
-drop table if exists t1;
-create table t1 as select repeat(' ', 64) as s1;
-select collation(s1) from t1;
-collation(s1)
-ucs2_german2_ci
-delete from t1;
-INSERT INTO t1 VALUES ('ud'),('uf');
-INSERT INTO t1 VALUES ('od'),('of');
-INSERT INTO t1 VALUES ('e');
-INSERT INTO t1 VALUES ('ad'),('af');
-insert into t1 values ('a'),('ae'),(_latin1 0xE4);
-insert into t1 values ('o'),('oe'),(_latin1 0xF6);
-insert into t1 values ('s'),('ss'),(_latin1 0xDF);
-insert into t1 values ('u'),('ue'),(_latin1 0xFC);
-INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
-INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
-select s1, hex(s1) from t1 order by s1, binary s1;
-s1 hex(s1)
-a 0061
-ad 00610064
-ae 00610065
-Æ 00C6
-ä 00E4
-æ 00E6
-af 00610066
-e 0065
-o 006F
-od 006F0064
-oe 006F0065
-ö 00F6
-Œ 0152
-œ 0153
-of 006F0066
-s 0073
-ss 00730073
-ß 00DF
-u 0075
-ud 00750064
-ue 00750065
-ü 00FC
-uf 00750066
-select group_concat(s1 order by binary s1) from t1 group by s1;
-group_concat(s1 order by binary s1)
-a
-ad
-ae,Æ,ä,æ
-af
-e
-o
-od
-oe,ö,Œ,œ
-of
-s
-ss,ß
-u
-ud
-ue,ü
-uf
-SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
-s1 hex(s1) hex(weight_string(s1))
-a 0061 0E33
-ad 00610064 0E330E6D
-ae 00610065 0E330E8B
-Æ 00C6 0E330E8B
-ä 00E4 0E330E8B
-æ 00E6 0E330E8B
-af 00610066 0E330EB9
-e 0065 0E8B
-o 006F 0F82
-od 006F0064 0F820E6D
-oe 006F0065 0F820E8B
-ö 00F6 0F820E8B
-Œ 0152 0F820E8B
-œ 0153 0F820E8B
-of 006F0066 0F820EB9
-s 0073 0FEA
-ss 00730073 0FEA0FEA
-ß 00DF 0FEA0FEA
-u 0075 101F
-ud 00750064 101F0E6D
-ue 00750065 101F0E8B
-ü 00FC 101F0E8B
-uf 00750066 101F0EB9
-SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
-s1 hex(s1)
-ae 00610065
-Æ 00C6
-ä 00E4
-æ 00E6
-drop table t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET ucs2 COLLATE ucs2_german2_ci DEFAULT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('s',0),(_latin1 0xDF,1);
-SELECT * FROM t1 ORDER BY a, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY a DESC, b;
-a b
-ß 1
-s 0
-SELECT * FROM t1 ORDER BY CONCAT(a), b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
-a b
-ß 1
-s 0
-DROP TABLE t1;
-"END ctype_german.inc"
-#
-# Bug#59145 valgrind warnings for uninitialized values in my_strtoll10_mb2
-#
-SET NAMES latin1;
-SELECT CONVERT(CHAR(NULL USING ucs2), UNSIGNED);
-CONVERT(CHAR(NULL USING ucs2), UNSIGNED)
-0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: ''
-DO IFNULL(CHAR(NULL USING ucs2), '');
-DO CAST(CONVERT('' USING ucs2) AS UNSIGNED);
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: ''
-#
-# Test error message for conversion using different charset
-#
-CREATE TABLE t1 (a DECIMAL(2,0));
-SET sql_mode='strict_all_tables';
-INSERT INTO t1 VALUES (CONVERT('9e99999999' USING ucs2));
-ERROR 22003: Out of range value for column 'a' at row 1
-SET sql_mode=DEFAULT;
-INSERT IGNORE INTO t1 VALUES (CONVERT('aaa' USING ucs2));
-Warnings:
-Warning 1366 Incorrect decimal value: 'aaa' for column 'a' at row 1
-DROP TABLE t1;
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.0 tests
-#
-SET NAMES latin1, collation_connection=ucs2_bin;
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE CONCAT(c1)='a';
-c1
-a
-a
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'a ';
-c1
-a
-SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'a' and concat(`test`.`t1`.`c1`) like 'a '
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1);
-c1
-a
-a
-SELECT * FROM t1 WHERE 'a ' LIKE CONCAT(c1);
-c1
-a
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 'a' = concat(`test`.`t1`.`c1`) and 'a ' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '% '=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '% ' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '%'=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-#
-# MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a'
-#
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ';
-a LENGTH(a)
-a 2
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-a LENGTH(a)
-a 2
-EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a' and `test`.`t1`.`a` not like 'a '
-DROP TABLE t1;
-#
-# End of MDEV-8694
-#
-SET NAMES latin1, collation_connection=ucs2_general_ci;
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE CONCAT(c1)='a';
-c1
-a
-a
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'a ';
-c1
-a
-SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'a' and concat(`test`.`t1`.`c1`) like 'a '
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1);
-c1
-a
-a
-SELECT * FROM t1 WHERE 'a ' LIKE CONCAT(c1);
-c1
-a
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 'a' = concat(`test`.`t1`.`c1`) and 'a ' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '% '=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '% ' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '%'=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-#
-# MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a'
-#
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ';
-a LENGTH(a)
-a 2
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-a LENGTH(a)
-a 2
-EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a' and `test`.`t1`.`a` not like 'a '
-DROP TABLE t1;
-#
-# End of MDEV-8694
-#
-SET NAMES latin1;
-#
-# MDEV-6661 PI() does not work well in UCS2/UTF16/UTF32 context
-#
-SELECT CONCAT(CONVERT('pi=' USING ucs2),PI()) AS PI;
-PI
-pi=3.141593
-#
-# MDEV-6695 Bad column name for UCS2 string literals
-#
-SET NAMES utf8, character_set_connection=ucs2;
-SELECT 'a','aa';
-a aa
-a aa
-#
-# MDEV-10306 Wrong results with combination of CONCAT, SUBSTR and CONVERT in subquery
-#
-SET NAMES utf8, character_set_connection=ucs2;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch=_utf8'derived_merge=on';
-CREATE TABLE t1 (t VARCHAR(10) CHARSET latin1);
-INSERT INTO t1 VALUES('abcdefghi');
-SET NAMES utf8, character_set_connection=ucs2;
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT HEX(t) t2 FROM t1) sub;
-c2
-616263646566676869-616263646566676869
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT TO_BASE64(t) t2 FROM t1) sub;
-c2
-YWJjZGVmZ2hp-YWJjZGVmZ2hp
-DROP TABLE t1;
-SET optimizer_switch=@save_optimizer_switch;
-#
-# End of 10.0 tests
-#
-select collation(cast("a" as char(10) unicode binary));
-collation(cast("a" as char(10) unicode binary))
-ucs2_bin
-select collation(cast("a" as char(10) binary unicode));
-collation(cast("a" as char(10) binary unicode))
-ucs2_bin
-#
-# MDEV-8222 "string_field LIKE int_const" returns a wrong result in case of UCS2
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARSET ucs2);
-INSERT INTO t1 VALUES ('1');
-SELECT * FROM t1 WHERE a LIKE 1;
-a
-1
-DROP TABLE t1;
-#
-# MDEV-8253 EXPLAIN SELECT prints unexpected characters
-#
-SET NAMES latin1, character_set_connection=ucs2;
-CREATE TABLE t1 (a DECIMAL(10,1),b DECIMAL(10,1),c VARCHAR(10),d VARCHAR(10));
-INSERT INTO t1 VALUES (1.5,1.5,'1','1'),(3.5,3.5,'3','3');
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(c,0)='3 ' AND COALESCE(d,0)=COALESCE(c,0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` where coalesce(`test`.`t1`.`c`,0) = '3 ' and coalesce(`test`.`t1`.`d`,0) = '3 '
-DROP TABLE t1;
-#
-# MDEV-9178 Wrong result for CAST(CONVERT('1IJ3' USING ucs2) AS SIGNED)
-#
-SET NAMES utf8;
-SELECT CAST(CONVERT('1IJ3' USING ucs2) AS SIGNED);
-CAST(CONVERT('1IJ3' USING ucs2) AS SIGNED)
-1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1IJ3'
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=ucs2;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ucs2_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ucs2_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=ucs2 COLLATE=ucs2_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ucs2_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ucs2_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041000000000000000000000000000000000000
-0041002000200000000000000000000000000000
-0020004100000000000000000000000000000000
-0020004100200000000000000000000000000000
-0041002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ucs2_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ucs2_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ucs2_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ucs2_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ucs2_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ucs2_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ucs2_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ucs2_general_nopad_ci', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'ucs2_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ucs2_general_nopad_ci', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ucs2_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ucs2_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ucs2_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=ucs2 COLLATE=ucs2_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ucs2_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ucs2_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041000000000000000000000000000000000000
-0041002000200000000000000000000000000000
-0020004100000000000000000000000000000000
-0020004100200000000000000000000000000000
-0041002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ucs2_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ucs2_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ucs2_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ucs2_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ucs2_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ucs2_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ucs2_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ucs2_general_nopad_ci', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'ucs2_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ucs2_general_nopad_ci', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ucs2_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ucs2_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ucs2_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=ucs2 COLLATE=ucs2_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ucs2_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ucs2_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0061000000000000000000000000000000000000
-0061002000200000000000000000000000000000
-0020006100000000000000000000000000000000
-0020006100200000000000000000000000000000
-0061002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ucs2_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ucs2_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ucs2_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ucs2_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ucs2_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ucs2_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ucs2_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ucs2_nopad_bin', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'ucs2_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ucs2_nopad_bin', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ucs2_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ucs2_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ucs2_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=ucs2 COLLATE=ucs2_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ucs2_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ucs2_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0061000000000000000000000000000000000000
-0061002000200000000000000000000000000000
-0020006100000000000000000000000000000000
-0020006100200000000000000000000000000000
-0061002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ucs2_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ucs2_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ucs2_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ucs2_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ucs2_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ucs2_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ucs2_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ucs2_nopad_bin', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'ucs2_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ucs2_nopad_bin', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ucs2_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# MDEV-10585 EXECUTE IMMEDIATE statement
-#
-SET character_set_connection=ucs2;
-EXECUTE IMMEDIATE 'SELECT COLLATION("a")';
-COLLATION("a")
-ucs2_general_ci
-SET @stmt='SELECT COLLATION("a")';
-EXECUTE IMMEDIATE @stmt;
-COLLATION("a")
-ucs2_general_ci
-#
-# MDEV-10866 Extend PREPARE and EXECUTE IMMEDIATE to understand expressions
-#
-SET NAMES utf8, collation_connection=ucs2_bin;
-SET @stmt='SELECT COLLATION(''a'')';
-EXECUTE IMMEDIATE @stmt;
-COLLATION('a')
-ucs2_bin
-SET NAMES utf8, character_set_connection=ucs2;
-SET @stmt='SELECT COLLATION(''a'')';
-EXECUTE IMMEDIATE @stmt;
-COLLATION('a')
-ucs2_general_ci
-EXECUTE IMMEDIATE CONCAT('SELECT ''a'' FROM DUAL');
-a
-a
-SELECT HEX('aä') FROM DUAL;
-HEX('aä')
-006100E4
-EXECUTE IMMEDIATE 'SELECT HEX(''aä'') FROM DUAL';
-HEX('aä')
-006100E4
-EXECUTE IMMEDIATE CONCAT('SELECT HEX(''aä'') FROM DUAL');
-HEX('aä')
-006100E4
-EXECUTE IMMEDIATE CONCAT('SELECT HEX(''aä'') FROM ', 'DUAL');
-HEX('aä')
-006100E4
-PREPARE stmt FROM 'SELECT HEX(''aä'') FROM DUAL';
-EXECUTE stmt;
-HEX('aä')
-006100E4
-DEALLOCATE PREPARE stmt;
-SET @table='DUAL';
-SELECT HEX(@table);
-HEX(@table)
-004400550041004C
-EXECUTE IMMEDIATE CONCAT('SELECT HEX(''aä'') FROM ', @table);
-HEX('aä')
-006100E4
-EXECUTE IMMEDIATE CONCAT('SELECT HEX(''aä'') FROM ', CONVERT(@table USING utf8));
-HEX('aä')
-006100E4
-SET @stmt='SELECT HEX(''aä'') FROM DUAL';
-EXECUTE IMMEDIATE @stmt;
-HEX('aä')
-006100E4
-PREPARE stmt FROM @stmt;
-EXECUTE stmt;
-HEX('aä')
-006100E4
-DEALLOCATE PREPARE stmt;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_ucs2_def.result b/mysql-test/r/ctype_ucs2_def.result
deleted file mode 100644
index 9d8f5181103..00000000000
--- a/mysql-test/r/ctype_ucs2_def.result
+++ /dev/null
@@ -1,35 +0,0 @@
-call mtr.add_suppression("'ucs2' can not be used as client character set");
-show variables like 'collation_server';
-Variable_name Value
-collation_server ucs2_unicode_ci
-show variables like "%character_set_ser%";
-Variable_name Value
-character_set_server ucs2
-DROP TABLE IF EXISTS t1;
-create table t1 (a int);
-drop table t1;
-End of 4.1 tests
-create table t1 (a char(1) character set latin1);
-insert into t1 values ('a'),('b'),('c');
-select hex(group_concat(a)) from t1;
-hex(group_concat(a))
-612C622C63
-drop table t1;
-CREATE TABLE t1(col1 VARCHAR(32) CHARACTER SET ucs2 COLLATE ucs2_bin NOT NULL,
-col2 VARCHAR(32) CHARACTER SET ucs2 COLLATE ucs2_bin NOT NULL,
-UNIQUE KEY key1 USING HASH (col1, col2)) ENGINE=MEMORY;
-INSERT INTO t1 VALUES('A', 'A'), ('B', 'B'), ('C', 'C');
-INSERT INTO t1 VALUES('A ', 'A ');
-ERROR 23000: Duplicate entry 'A -A ' for key 'key1'
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 CHAR(255) CHARACTER SET UCS2 COLLATE UCS2_BIN NOT NULL,
-KEY(c1)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('marshall\'s');
-INSERT INTO t1 VALUES ('marsh');
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-End of 5.0 tests
diff --git a/mysql-test/r/ctype_ucs2_query_cache.result b/mysql-test/r/ctype_ucs2_query_cache.result
deleted file mode 100644
index eba7f2fb0fc..00000000000
--- a/mysql-test/r/ctype_ucs2_query_cache.result
+++ /dev/null
@@ -1,26 +0,0 @@
-call mtr.add_suppression("'ucs2' can not be used as client character set");
-#
-# Start of 5.5 tests
-#
-#
-# Bug#MDEV-4518 Server crashes in is_white_space when it's run
-# with query cache, charset ucs2 and collation ucs2_unicode_ci
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-SELECT * FROM t1;
-a
-1
-2
-3
-4
-SELECT * FROM t1;
-a
-1
-2
-3
-4
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
diff --git a/mysql-test/r/ctype_ucs2_uca.result b/mysql-test/r/ctype_ucs2_uca.result
deleted file mode 100644
index 44a623842c6..00000000000
--- a/mysql-test/r/ctype_ucs2_uca.result
+++ /dev/null
@@ -1,590 +0,0 @@
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10877 xxx_unicode_nopad_ci collations
-#
-SET NAMES utf8, character_set_connection=ucs2;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ucs2_unicode_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ucs2_unicode_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=ucs2 COLLATE=ucs2_unicode_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ucs2_unicode_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_unicode_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ucs2_unicode_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0E33020002000200020002000200020002000200
-0E33020902090200020002000200020002000200
-02090E3302000200020002000200020002000200
-02090E3302090200020002000200020002000200
-0E33020902090209020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ucs2_unicode_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ucs2_unicode_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ucs2_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ucs2_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ucs2_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ucs2_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ucs2_unicode_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ucs2_unicode_nopad_ci', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'ucs2_unicode_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ucs2_unicode_nopad_ci', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_unicode_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ucs2_unicode_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ucs2_unicode_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ucs2_unicode_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=ucs2 COLLATE=ucs2_unicode_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ucs2_unicode_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_unicode_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ucs2_unicode_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0E33020002000200020002000200020002000200
-0E33020902090200020002000200020002000200
-02090E3302000200020002000200020002000200
-02090E3302090200020002000200020002000200
-0E33020902090209020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ucs2_unicode_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ucs2_unicode_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ucs2_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ucs2_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ucs2_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ucs2_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ucs2_unicode_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ucs2_unicode_nopad_ci', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'ucs2_unicode_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ucs2_unicode_nopad_ci', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_unicode_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ucs2_unicode_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ucs2_unicode_520_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ucs2_unicode_520_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=ucs2 COLLATE=ucs2_unicode_520_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ucs2_unicode_520_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_unicode_520_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ucs2_unicode_520_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-120F020002000200020002000200020002000200
-120F020A020A0200020002000200020002000200
-020A120F02000200020002000200020002000200
-020A120F020A0200020002000200020002000200
-120F020A020A020A020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ucs2_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ucs2_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ucs2_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ucs2_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ucs2_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ucs2_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ucs2_unicode_520_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ucs2_unicode_520_nopad_ci', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'ucs2_unicode_520_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ucs2_unicode_520_nopad_ci', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_unicode_520_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_520_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ucs2_unicode_520_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_520_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ucs2_unicode_520_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ucs2_unicode_520_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=ucs2 COLLATE=ucs2_unicode_520_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ucs2_unicode_520_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_unicode_520_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ucs2_unicode_520_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-120F020002000200020002000200020002000200
-120F020A020A0200020002000200020002000200
-020A120F02000200020002000200020002000200
-020A120F020A0200020002000200020002000200
-120F020A020A020A020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ucs2_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ucs2_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ucs2_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ucs2_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ucs2_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ucs2_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ucs2_unicode_520_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ucs2_unicode_520_nopad_ci', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'ucs2_unicode_520_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ucs2_unicode_520_nopad_ci', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ucs2_unicode_520_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_520_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ucs2_unicode_520_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ucs2_unicode_520_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET NAMES utf8, collation_connection=ucs2_unicode_520_nopad_ci;
-#
-# MDEV-14350 Index use with collation utf8mb4_unicode_nopad_ci on LIKE pattern with wrong results
-#
-CREATE OR REPLACE TABLE t1 AS SELECT SPACE(50) AS a, SPACE (50) AS b;
-ALTER TABLE t1 ADD KEY(a), ADD KEY(b);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(50) CHARACTER SET ucs2 COLLATE ucs2_unicode_520_nopad_ci DEFAULT NULL,
- `b` varchar(50) CHARACTER SET ucs2 COLLATE ucs2_unicode_520_nopad_ci DEFAULT NULL,
- KEY `a` (`a`),
- KEY `b` (`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('111', '111');
-INSERT INTO t1 VALUES ('222', '222');
-INSERT INTO t1 VALUES ('333', '333');
-INSERT INTO t1 VALUES ('444', '444');
-SELECT * FROM t1 WHERE a LIKE '111%';
-a b
-111 111
-SELECT * FROM t1 IGNORE INDEX (a) WHERE a LIKE '111%';
-a b
-111 111
-DROP TABLE t1;
-SET NAMES utf8;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_ujis.result b/mysql-test/r/ctype_ujis.result
deleted file mode 100644
index cb9de83fedc..00000000000
--- a/mysql-test/r/ctype_ujis.result
+++ /dev/null
@@ -1,26775 +0,0 @@
-drop table if exists t1;
-set names ujis;
-create table t1 (c text character set ujis);
-insert into t1 values (0xa4a2),(0xa4a3);
-select hex(left(c,1)) from t1 group by c;
-hex(left(c,1))
-A4A2
-A4A3
-drop table t1;
-select locate(0xa2a1,0xa1a2a1a3);
-locate(0xa2a1,0xa1a2a1a3)
-2
-select locate(_ujis 0xa2a1,_ujis 0xa1a2a1a3);
-locate(_ujis 0xa2a1,_ujis 0xa1a2a1a3)
-0
-select locate(_ujis 0xa2a1,_ujis 0xa1a2a1a3 collate ujis_bin);
-locate(_ujis 0xa2a1,_ujis 0xa1a2a1a3 collate ujis_bin)
-0
-select locate('he','hello');
-locate('he','hello')
-1
-select locate('he','hello',2);
-locate('he','hello',2)
-0
-select locate('lo','hello',2);
-locate('lo','hello',2)
-4
-select locate('HE','hello');
-locate('HE','hello')
-1
-select locate('HE','hello',2);
-locate('HE','hello',2)
-0
-select locate('LO','hello',2);
-locate('LO','hello',2)
-4
-select locate('HE','hello' collate ujis_bin);
-locate('HE','hello' collate ujis_bin)
-0
-select locate('HE','hello' collate ujis_bin,2);
-locate('HE','hello' collate ujis_bin,2)
-0
-select locate('LO','hello' collate ujis_bin,2);
-locate('LO','hello' collate ujis_bin,2)
-0
-select locate(_ujis 0xa1a3,_ujis 0xa1a2a1a3);
-locate(_ujis 0xa1a3,_ujis 0xa1a2a1a3)
-2
-select 0xa1a2a1a3 like concat(_binary'%',0xa2a1,_binary'%');
-0xa1a2a1a3 like concat(_binary'%',0xa2a1,_binary'%')
-1
-select _ujis 0xa1a2a1a3 like concat(_ujis'%',_ujis 0xa2a1, _ujis'%');
-_ujis 0xa1a2a1a3 like concat(_ujis'%',_ujis 0xa2a1, _ujis'%')
-0
-select _ujis 0xa1a2a1a3 like concat(_ujis'%',_ujis 0xa2a1, _ujis'%') collate ujis_bin;
-_ujis 0xa1a2a1a3 like concat(_ujis'%',_ujis 0xa2a1, _ujis'%') collate ujis_bin
-0
-select 'a' like 'a';
-'a' like 'a'
-1
-select 'A' like 'a';
-'A' like 'a'
-1
-select 'A' like 'a' collate ujis_bin;
-'A' like 'a' collate ujis_bin
-0
-set @ujis1= _ujis 0x8EA18EA28EA38EA48EA58EA68EA78EA88EA98EAA8EAB8EAC8EAD8EAE8EAF;
-set @ujis2= _ujis 0x8EB08EB18EB28EB38EB48EB58EB68EB78EB88EB98EBA8EBB8EBC8EBD8EBE8EBF;
-set @ujis3= _ujis 0x8EC08EC18EC28EC38EC48EC58EC68EC78EC88EC98ECA8ECB8ECC8ECD8ECE8ECF;
-set @ujis4= _ujis 0x8ED08ED18ED28ED38ED48ED58ED68ED78ED88ED98EDA8EDB8EDC8EDD8EDE8EDF;
-select hex(@utf81:= CONVERT(@ujis1 USING utf8));
-hex(@utf81:= CONVERT(@ujis1 USING utf8))
-EFBDA1EFBDA2EFBDA3EFBDA4EFBDA5EFBDA6EFBDA7EFBDA8EFBDA9EFBDAAEFBDABEFBDACEFBDADEFBDAEEFBDAF
-select hex(@utf82:= CONVERT(@ujis2 USING utf8));
-hex(@utf82:= CONVERT(@ujis2 USING utf8))
-EFBDB0EFBDB1EFBDB2EFBDB3EFBDB4EFBDB5EFBDB6EFBDB7EFBDB8EFBDB9EFBDBAEFBDBBEFBDBCEFBDBDEFBDBEEFBDBF
-select hex(@utf83:= CONVERT(@ujis3 USING utf8));
-hex(@utf83:= CONVERT(@ujis3 USING utf8))
-EFBE80EFBE81EFBE82EFBE83EFBE84EFBE85EFBE86EFBE87EFBE88EFBE89EFBE8AEFBE8BEFBE8CEFBE8DEFBE8EEFBE8F
-select hex(@utf84:= CONVERT(@ujis4 USING utf8));
-hex(@utf84:= CONVERT(@ujis4 USING utf8))
-EFBE90EFBE91EFBE92EFBE93EFBE94EFBE95EFBE96EFBE97EFBE98EFBE99EFBE9AEFBE9BEFBE9CEFBE9DEFBE9EEFBE9F
-select @ujis1 = CONVERT(@utf81 USING ujis);
-@ujis1 = CONVERT(@utf81 USING ujis)
-1
-select @ujis2 = CONVERT(@utf82 USING ujis);
-@ujis2 = CONVERT(@utf82 USING ujis)
-1
-select @ujis3 = CONVERT(@utf83 USING ujis);
-@ujis3 = CONVERT(@utf83 USING ujis)
-1
-select @ujis4 = CONVERT(@utf84 USING ujis);
-@ujis4 = CONVERT(@utf84 USING ujis)
-1
-drop table if exists t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-create table t1 (c1 varchar(8)) default character set 'ujis';
-insert into t1 values (0xA4A2),(0xA2A2),(0xA4A2);
-select c1 as 'no index' from t1 where c1 like cast(concat(0xA4A2, '%') as char character set ujis);
-no index
-¤¢
-¤¢
-create index idx_c1 on t1(c1);
-select c1 as 'using index' from t1 where c1 like cast(concat(0xA4A2, '%') as char character set ujis);
-using index
-¤¢
-¤¢
-select c1 as 'no index' from t1 where c1 like cast(concat('%',0xA4A2, '%') as char character set ujis);
-no index
-¤¢
-¤¢
-drop table t1;
-CREATE TABLE t1 (
-a char(1) NOT NULL default '',
-b enum('¤¢','¤¤') default NULL
-) CHARACTER SET ujis;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(1) NOT NULL DEFAULT '',
- `b` enum('¤¢','¤¤') DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=ujis
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-a char(1) NO
-b enum('¤¢','¤¤') YES NULL
-DROP TABLE t1;
-set sql_mode="";
-CREATE TABLE t1
-(
-a INTEGER NOT NULL,
-b VARCHAR(50) NOT NULL DEFAULT '',
-PRIMARY KEY (a),
-KEY b (b(10))
-) ENGINE=InnoDB CHARACTER SET 'ujis' COLLATE 'ujis_japanese_ci';
-set sql_mode=default;
-INSERT INTO t1 (a, b) VALUES (0, 'aaabbbcccddd');
-INSERT INTO t1 (a, b) VALUES (1, 'eeefffggghhh');
-INSERT INTO t1 (a, b) VALUES (2, 'iiijjjkkkl');
-SELECT t1.* FROM t1 WHERE b='aaabbbcccddd' ORDER BY a;
-a b
-0 aaabbbcccddd
-SELECT t1.* FROM t1 WHERE b='eeefffggghhh' ORDER BY a;
-a b
-1 eeefffggghhh
-SELECT t1.* FROM t1 WHERE b='iiijjjkkkl' ORDER BY a;
-a b
-2 iiijjjkkkl
-DROP TABLE t1;
-CREATE TABLE t1
-(
-a INTEGER NOT NULL,
-b VARCHAR(50) NOT NULL DEFAULT '',
-PRIMARY KEY (a),
-KEY b (b(10))
-) ENGINE=MyISAM CHARACTER SET 'ujis' COLLATE 'ujis_japanese_ci';
-INSERT INTO t1 (a, b) VALUES (0, 'aaabbbcccddd');
-INSERT INTO t1 (a, b) VALUES (1, 'eeefffggghhh');
-INSERT INTO t1 (a, b) VALUES (2, 'iiijjjkkkl');
-SELECT t1.* FROM t1 WHERE b='aaabbbcccddd' ORDER BY a;
-a b
-0 aaabbbcccddd
-SELECT t1.* FROM t1 WHERE b='eeefffggghhh' ORDER BY a;
-a b
-1 eeefffggghhh
-SELECT t1.* FROM t1 WHERE b='iiijjjkkkl' ORDER BY a;
-a b
-2 iiijjjkkkl
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1(c char(1)) character set ujis;
-INSERT INTO t1 VALUES(0xA2AF);
-INSERT INTO t1 VALUES(0xA2B0);
-INSERT INTO t1 VALUES(0xA2B1);
-INSERT INTO t1 VALUES(0xA2B2);
-INSERT INTO t1 VALUES(0xA2B3);
-INSERT INTO t1 VALUES(0xA2B4);
-INSERT INTO t1 VALUES(0xA2B5);
-INSERT INTO t1 VALUES(0xA2B6);
-INSERT INTO t1 VALUES(0xA2B7);
-INSERT INTO t1 VALUES(0xA2B8);
-INSERT INTO t1 VALUES(0xA2B9);
-INSERT INTO t1 VALUES(0xA2C2);
-INSERT INTO t1 VALUES(0xA2C3);
-INSERT INTO t1 VALUES(0xA2C4);
-INSERT INTO t1 VALUES(0xA2C5);
-INSERT INTO t1 VALUES(0xA2C6);
-INSERT INTO t1 VALUES(0xA2C7);
-INSERT INTO t1 VALUES(0xA2C8);
-INSERT INTO t1 VALUES(0xA2C9);
-INSERT INTO t1 VALUES(0xA2D1);
-INSERT INTO t1 VALUES(0xA2D2);
-INSERT INTO t1 VALUES(0xA2D3);
-INSERT INTO t1 VALUES(0xA2D4);
-INSERT INTO t1 VALUES(0xA2D5);
-INSERT INTO t1 VALUES(0xA2D6);
-INSERT INTO t1 VALUES(0xA2D7);
-INSERT INTO t1 VALUES(0xA2D8);
-INSERT INTO t1 VALUES(0xA2D9);
-INSERT INTO t1 VALUES(0xA2DA);
-INSERT INTO t1 VALUES(0xA2DB);
-INSERT INTO t1 VALUES(0xA2EB);
-INSERT INTO t1 VALUES(0xA2EC);
-INSERT INTO t1 VALUES(0xA2ED);
-INSERT INTO t1 VALUES(0xA2EE);
-INSERT INTO t1 VALUES(0xA2EF);
-INSERT INTO t1 VALUES(0xA2F0);
-INSERT INTO t1 VALUES(0xA2F1);
-INSERT INTO t1 VALUES(0xA2FA);
-INSERT INTO t1 VALUES(0xA2FB);
-INSERT INTO t1 VALUES(0xA2FC);
-INSERT INTO t1 VALUES(0xA2FD);
-INSERT INTO t1 VALUES(0xA3A1);
-INSERT INTO t1 VALUES(0xA3A2);
-INSERT INTO t1 VALUES(0xA3A3);
-INSERT INTO t1 VALUES(0xA3A4);
-INSERT INTO t1 VALUES(0xA3A5);
-INSERT INTO t1 VALUES(0xA3A6);
-INSERT INTO t1 VALUES(0xA3A7);
-INSERT INTO t1 VALUES(0xA3A8);
-INSERT INTO t1 VALUES(0xA3A9);
-INSERT INTO t1 VALUES(0xA3AA);
-INSERT INTO t1 VALUES(0xA3AB);
-INSERT INTO t1 VALUES(0xA3AC);
-INSERT INTO t1 VALUES(0xA3AD);
-INSERT INTO t1 VALUES(0xA3AE);
-INSERT INTO t1 VALUES(0xA3AF);
-INSERT INTO t1 VALUES(0xA3BA);
-INSERT INTO t1 VALUES(0xA3BB);
-INSERT INTO t1 VALUES(0xA3BC);
-INSERT INTO t1 VALUES(0xA3BD);
-INSERT INTO t1 VALUES(0xA3BE);
-INSERT INTO t1 VALUES(0xA3BF);
-INSERT INTO t1 VALUES(0xA3C0);
-INSERT INTO t1 VALUES(0xA3DB);
-INSERT INTO t1 VALUES(0xA3DC);
-INSERT INTO t1 VALUES(0xA3DD);
-INSERT INTO t1 VALUES(0xA3DE);
-INSERT INTO t1 VALUES(0xA3DF);
-INSERT INTO t1 VALUES(0xA3E0);
-INSERT INTO t1 VALUES(0xA3FB);
-INSERT INTO t1 VALUES(0xA3FC);
-INSERT INTO t1 VALUES(0xA3FD);
-INSERT INTO t1 VALUES(0xA3FE);
-INSERT INTO t1 VALUES(0xA4F4);
-INSERT INTO t1 VALUES(0xA4F5);
-INSERT INTO t1 VALUES(0xA4F6);
-INSERT INTO t1 VALUES(0xA4F7);
-INSERT INTO t1 VALUES(0xA4F8);
-INSERT INTO t1 VALUES(0xA4F9);
-INSERT INTO t1 VALUES(0xA4FA);
-INSERT INTO t1 VALUES(0xA4FB);
-INSERT INTO t1 VALUES(0xA4FC);
-INSERT INTO t1 VALUES(0xA4FD);
-INSERT INTO t1 VALUES(0xA4FE);
-INSERT INTO t1 VALUES(0xA5F7);
-INSERT INTO t1 VALUES(0xA5F8);
-INSERT INTO t1 VALUES(0xA5F9);
-INSERT INTO t1 VALUES(0xA5FA);
-INSERT INTO t1 VALUES(0xA5FB);
-INSERT INTO t1 VALUES(0xA5FC);
-INSERT INTO t1 VALUES(0xA5FD);
-INSERT INTO t1 VALUES(0xA5FE);
-INSERT INTO t1 VALUES(0xA6B9);
-INSERT INTO t1 VALUES(0xA6BA);
-INSERT INTO t1 VALUES(0xA6BB);
-INSERT INTO t1 VALUES(0xA6BC);
-INSERT INTO t1 VALUES(0xA6BD);
-INSERT INTO t1 VALUES(0xA6BE);
-INSERT INTO t1 VALUES(0xA6BF);
-INSERT INTO t1 VALUES(0xA6C0);
-INSERT INTO t1 VALUES(0xA6D9);
-INSERT INTO t1 VALUES(0xA6DA);
-INSERT INTO t1 VALUES(0xA6DB);
-INSERT INTO t1 VALUES(0xA6DC);
-INSERT INTO t1 VALUES(0xA6DD);
-INSERT INTO t1 VALUES(0xA6DE);
-INSERT INTO t1 VALUES(0xA6DF);
-INSERT INTO t1 VALUES(0xA6E0);
-INSERT INTO t1 VALUES(0xA6E1);
-INSERT INTO t1 VALUES(0xA6E2);
-INSERT INTO t1 VALUES(0xA6E3);
-INSERT INTO t1 VALUES(0xA6E4);
-INSERT INTO t1 VALUES(0xA6E5);
-INSERT INTO t1 VALUES(0xA6E6);
-INSERT INTO t1 VALUES(0xA6E7);
-INSERT INTO t1 VALUES(0xA6E8);
-INSERT INTO t1 VALUES(0xA6E9);
-INSERT INTO t1 VALUES(0xA6EA);
-INSERT INTO t1 VALUES(0xA6EB);
-INSERT INTO t1 VALUES(0xA6EC);
-INSERT INTO t1 VALUES(0xA6ED);
-INSERT INTO t1 VALUES(0xA6EE);
-INSERT INTO t1 VALUES(0xA6EF);
-INSERT INTO t1 VALUES(0xA6F0);
-INSERT INTO t1 VALUES(0xA6F1);
-INSERT INTO t1 VALUES(0xA6F2);
-INSERT INTO t1 VALUES(0xA6F3);
-INSERT INTO t1 VALUES(0xA6F4);
-INSERT INTO t1 VALUES(0xA6F5);
-INSERT INTO t1 VALUES(0xA6F6);
-INSERT INTO t1 VALUES(0xA6F7);
-INSERT INTO t1 VALUES(0xA6F8);
-INSERT INTO t1 VALUES(0xA6F9);
-INSERT INTO t1 VALUES(0xA6FA);
-INSERT INTO t1 VALUES(0xA6FB);
-INSERT INTO t1 VALUES(0xA6FC);
-INSERT INTO t1 VALUES(0xA6FD);
-INSERT INTO t1 VALUES(0xA6FE);
-INSERT INTO t1 VALUES(0xA7C2);
-INSERT INTO t1 VALUES(0xA7C3);
-INSERT INTO t1 VALUES(0xA7C4);
-INSERT INTO t1 VALUES(0xA7C5);
-INSERT INTO t1 VALUES(0xA7C6);
-INSERT INTO t1 VALUES(0xA7C7);
-INSERT INTO t1 VALUES(0xA7C8);
-INSERT INTO t1 VALUES(0xA7C9);
-INSERT INTO t1 VALUES(0xA7CA);
-INSERT INTO t1 VALUES(0xA7CB);
-INSERT INTO t1 VALUES(0xA7CC);
-INSERT INTO t1 VALUES(0xA7CD);
-INSERT INTO t1 VALUES(0xA7CE);
-INSERT INTO t1 VALUES(0xA7CF);
-INSERT INTO t1 VALUES(0xA7D0);
-INSERT INTO t1 VALUES(0xA7F2);
-INSERT INTO t1 VALUES(0xA7F3);
-INSERT INTO t1 VALUES(0xA7F4);
-INSERT INTO t1 VALUES(0xA7F5);
-INSERT INTO t1 VALUES(0xA7F6);
-INSERT INTO t1 VALUES(0xA7F7);
-INSERT INTO t1 VALUES(0xA7F8);
-INSERT INTO t1 VALUES(0xA7F9);
-INSERT INTO t1 VALUES(0xA7FA);
-INSERT INTO t1 VALUES(0xA7FB);
-INSERT INTO t1 VALUES(0xA7FC);
-INSERT INTO t1 VALUES(0xA7FD);
-INSERT INTO t1 VALUES(0xA7FE);
-INSERT INTO t1 VALUES(0xA8C1);
-INSERT INTO t1 VALUES(0xA8C2);
-INSERT INTO t1 VALUES(0xA8C3);
-INSERT INTO t1 VALUES(0xA8C4);
-INSERT INTO t1 VALUES(0xA8C5);
-INSERT INTO t1 VALUES(0xA8C6);
-INSERT INTO t1 VALUES(0xA8C7);
-INSERT INTO t1 VALUES(0xA8C8);
-INSERT INTO t1 VALUES(0xA8C9);
-INSERT INTO t1 VALUES(0xA8CA);
-INSERT INTO t1 VALUES(0xA8CB);
-INSERT INTO t1 VALUES(0xA8CC);
-INSERT INTO t1 VALUES(0xA8CD);
-INSERT INTO t1 VALUES(0xA8CE);
-INSERT INTO t1 VALUES(0xA8CF);
-INSERT INTO t1 VALUES(0xA8D0);
-INSERT INTO t1 VALUES(0xA8D1);
-INSERT INTO t1 VALUES(0xA8D2);
-INSERT INTO t1 VALUES(0xA8D3);
-INSERT INTO t1 VALUES(0xA8D4);
-INSERT INTO t1 VALUES(0xA8D5);
-INSERT INTO t1 VALUES(0xA8D6);
-INSERT INTO t1 VALUES(0xA8D7);
-INSERT INTO t1 VALUES(0xA8D8);
-INSERT INTO t1 VALUES(0xA8D9);
-INSERT INTO t1 VALUES(0xA8DA);
-INSERT INTO t1 VALUES(0xA8DB);
-INSERT INTO t1 VALUES(0xA8DC);
-INSERT INTO t1 VALUES(0xA8DD);
-INSERT INTO t1 VALUES(0xA8DE);
-INSERT INTO t1 VALUES(0xA8DF);
-INSERT INTO t1 VALUES(0xA8E0);
-INSERT INTO t1 VALUES(0xA8E1);
-INSERT INTO t1 VALUES(0xA8E2);
-INSERT INTO t1 VALUES(0xA8E3);
-INSERT INTO t1 VALUES(0xA8E4);
-INSERT INTO t1 VALUES(0xA8E5);
-INSERT INTO t1 VALUES(0xA8E6);
-INSERT INTO t1 VALUES(0xA8E7);
-INSERT INTO t1 VALUES(0xA8E8);
-INSERT INTO t1 VALUES(0xA8E9);
-INSERT INTO t1 VALUES(0xA8EA);
-INSERT INTO t1 VALUES(0xA8EB);
-INSERT INTO t1 VALUES(0xA8EC);
-INSERT INTO t1 VALUES(0xA8ED);
-INSERT INTO t1 VALUES(0xA8EE);
-INSERT INTO t1 VALUES(0xA8EF);
-INSERT INTO t1 VALUES(0xA8F0);
-INSERT INTO t1 VALUES(0xA8F1);
-INSERT INTO t1 VALUES(0xA8F2);
-INSERT INTO t1 VALUES(0xA8F3);
-INSERT INTO t1 VALUES(0xA8F4);
-INSERT INTO t1 VALUES(0xA8F5);
-INSERT INTO t1 VALUES(0xA8F6);
-INSERT INTO t1 VALUES(0xA8F7);
-INSERT INTO t1 VALUES(0xA8F8);
-INSERT INTO t1 VALUES(0xA8F9);
-INSERT INTO t1 VALUES(0xA8FA);
-INSERT INTO t1 VALUES(0xA8FB);
-INSERT INTO t1 VALUES(0xA8FC);
-INSERT INTO t1 VALUES(0xA8FD);
-INSERT INTO t1 VALUES(0xA8FE);
-INSERT INTO t1 VALUES(0xA9A1);
-INSERT INTO t1 VALUES(0xA9A2);
-INSERT INTO t1 VALUES(0xA9A3);
-INSERT INTO t1 VALUES(0xA9A4);
-INSERT INTO t1 VALUES(0xA9A5);
-INSERT INTO t1 VALUES(0xA9A6);
-INSERT INTO t1 VALUES(0xA9A7);
-INSERT INTO t1 VALUES(0xA9A8);
-INSERT INTO t1 VALUES(0xA9A9);
-INSERT INTO t1 VALUES(0xA9AA);
-INSERT INTO t1 VALUES(0xA9AB);
-INSERT INTO t1 VALUES(0xA9AC);
-INSERT INTO t1 VALUES(0xA9AD);
-INSERT INTO t1 VALUES(0xA9AE);
-INSERT INTO t1 VALUES(0xA9AF);
-INSERT INTO t1 VALUES(0xA9B0);
-INSERT INTO t1 VALUES(0xA9B1);
-INSERT INTO t1 VALUES(0xA9B2);
-INSERT INTO t1 VALUES(0xA9B3);
-INSERT INTO t1 VALUES(0xA9B4);
-INSERT INTO t1 VALUES(0xA9B5);
-INSERT INTO t1 VALUES(0xA9B6);
-INSERT INTO t1 VALUES(0xA9B7);
-INSERT INTO t1 VALUES(0xA9B8);
-INSERT INTO t1 VALUES(0xA9B9);
-INSERT INTO t1 VALUES(0xA9BA);
-INSERT INTO t1 VALUES(0xA9BB);
-INSERT INTO t1 VALUES(0xA9BC);
-INSERT INTO t1 VALUES(0xA9BD);
-INSERT INTO t1 VALUES(0xA9BE);
-INSERT INTO t1 VALUES(0xA9BF);
-INSERT INTO t1 VALUES(0xA9C0);
-INSERT INTO t1 VALUES(0xA9C1);
-INSERT INTO t1 VALUES(0xA9C2);
-INSERT INTO t1 VALUES(0xA9C3);
-INSERT INTO t1 VALUES(0xA9C4);
-INSERT INTO t1 VALUES(0xA9C5);
-INSERT INTO t1 VALUES(0xA9C6);
-INSERT INTO t1 VALUES(0xA9C7);
-INSERT INTO t1 VALUES(0xA9C8);
-INSERT INTO t1 VALUES(0xA9C9);
-INSERT INTO t1 VALUES(0xA9CA);
-INSERT INTO t1 VALUES(0xA9CB);
-INSERT INTO t1 VALUES(0xA9CC);
-INSERT INTO t1 VALUES(0xA9CD);
-INSERT INTO t1 VALUES(0xA9CE);
-INSERT INTO t1 VALUES(0xA9CF);
-INSERT INTO t1 VALUES(0xA9D0);
-INSERT INTO t1 VALUES(0xA9D1);
-INSERT INTO t1 VALUES(0xA9D2);
-INSERT INTO t1 VALUES(0xA9D3);
-INSERT INTO t1 VALUES(0xA9D4);
-INSERT INTO t1 VALUES(0xA9D5);
-INSERT INTO t1 VALUES(0xA9D6);
-INSERT INTO t1 VALUES(0xA9D7);
-INSERT INTO t1 VALUES(0xA9D8);
-INSERT INTO t1 VALUES(0xA9D9);
-INSERT INTO t1 VALUES(0xA9DA);
-INSERT INTO t1 VALUES(0xA9DB);
-INSERT INTO t1 VALUES(0xA9DC);
-INSERT INTO t1 VALUES(0xA9DD);
-INSERT INTO t1 VALUES(0xA9DE);
-INSERT INTO t1 VALUES(0xA9DF);
-INSERT INTO t1 VALUES(0xA9E0);
-INSERT INTO t1 VALUES(0xA9E1);
-INSERT INTO t1 VALUES(0xA9E2);
-INSERT INTO t1 VALUES(0xA9E3);
-INSERT INTO t1 VALUES(0xA9E4);
-INSERT INTO t1 VALUES(0xA9E5);
-INSERT INTO t1 VALUES(0xA9E6);
-INSERT INTO t1 VALUES(0xA9E7);
-INSERT INTO t1 VALUES(0xA9E8);
-INSERT INTO t1 VALUES(0xA9E9);
-INSERT INTO t1 VALUES(0xA9EA);
-INSERT INTO t1 VALUES(0xA9EB);
-INSERT INTO t1 VALUES(0xA9EC);
-INSERT INTO t1 VALUES(0xA9ED);
-INSERT INTO t1 VALUES(0xA9EE);
-INSERT INTO t1 VALUES(0xA9EF);
-INSERT INTO t1 VALUES(0xA9F0);
-INSERT INTO t1 VALUES(0xA9F1);
-INSERT INTO t1 VALUES(0xA9F2);
-INSERT INTO t1 VALUES(0xA9F3);
-INSERT INTO t1 VALUES(0xA9F4);
-INSERT INTO t1 VALUES(0xA9F5);
-INSERT INTO t1 VALUES(0xA9F6);
-INSERT INTO t1 VALUES(0xA9F7);
-INSERT INTO t1 VALUES(0xA9F8);
-INSERT INTO t1 VALUES(0xA9F9);
-INSERT INTO t1 VALUES(0xA9FA);
-INSERT INTO t1 VALUES(0xA9FB);
-INSERT INTO t1 VALUES(0xA9FC);
-INSERT INTO t1 VALUES(0xA9FD);
-INSERT INTO t1 VALUES(0xA9FE);
-INSERT INTO t1 VALUES(0xAAA1);
-INSERT INTO t1 VALUES(0xAAA2);
-INSERT INTO t1 VALUES(0xAAA3);
-INSERT INTO t1 VALUES(0xAAA4);
-INSERT INTO t1 VALUES(0xAAA5);
-INSERT INTO t1 VALUES(0xAAA6);
-INSERT INTO t1 VALUES(0xAAA7);
-INSERT INTO t1 VALUES(0xAAA8);
-INSERT INTO t1 VALUES(0xAAA9);
-INSERT INTO t1 VALUES(0xAAAA);
-INSERT INTO t1 VALUES(0xAAAB);
-INSERT INTO t1 VALUES(0xAAAC);
-INSERT INTO t1 VALUES(0xAAAD);
-INSERT INTO t1 VALUES(0xAAAE);
-INSERT INTO t1 VALUES(0xAAAF);
-INSERT INTO t1 VALUES(0xAAB0);
-INSERT INTO t1 VALUES(0xAAB1);
-INSERT INTO t1 VALUES(0xAAB2);
-INSERT INTO t1 VALUES(0xAAB3);
-INSERT INTO t1 VALUES(0xAAB4);
-INSERT INTO t1 VALUES(0xAAB5);
-INSERT INTO t1 VALUES(0xAAB6);
-INSERT INTO t1 VALUES(0xAAB7);
-INSERT INTO t1 VALUES(0xAAB8);
-INSERT INTO t1 VALUES(0xAAB9);
-INSERT INTO t1 VALUES(0xAABA);
-INSERT INTO t1 VALUES(0xAABB);
-INSERT INTO t1 VALUES(0xAABC);
-INSERT INTO t1 VALUES(0xAABD);
-INSERT INTO t1 VALUES(0xAABE);
-INSERT INTO t1 VALUES(0xAABF);
-INSERT INTO t1 VALUES(0xAAC0);
-INSERT INTO t1 VALUES(0xAAC1);
-INSERT INTO t1 VALUES(0xAAC2);
-INSERT INTO t1 VALUES(0xAAC3);
-INSERT INTO t1 VALUES(0xAAC4);
-INSERT INTO t1 VALUES(0xAAC5);
-INSERT INTO t1 VALUES(0xAAC6);
-INSERT INTO t1 VALUES(0xAAC7);
-INSERT INTO t1 VALUES(0xAAC8);
-INSERT INTO t1 VALUES(0xAAC9);
-INSERT INTO t1 VALUES(0xAACA);
-INSERT INTO t1 VALUES(0xAACB);
-INSERT INTO t1 VALUES(0xAACC);
-INSERT INTO t1 VALUES(0xAACD);
-INSERT INTO t1 VALUES(0xAACE);
-INSERT INTO t1 VALUES(0xAACF);
-INSERT INTO t1 VALUES(0xAAD0);
-INSERT INTO t1 VALUES(0xAAD1);
-INSERT INTO t1 VALUES(0xAAD2);
-INSERT INTO t1 VALUES(0xAAD3);
-INSERT INTO t1 VALUES(0xAAD4);
-INSERT INTO t1 VALUES(0xAAD5);
-INSERT INTO t1 VALUES(0xAAD6);
-INSERT INTO t1 VALUES(0xAAD7);
-INSERT INTO t1 VALUES(0xAAD8);
-INSERT INTO t1 VALUES(0xAAD9);
-INSERT INTO t1 VALUES(0xAADA);
-INSERT INTO t1 VALUES(0xAADB);
-INSERT INTO t1 VALUES(0xAADC);
-INSERT INTO t1 VALUES(0xAADD);
-INSERT INTO t1 VALUES(0xAADE);
-INSERT INTO t1 VALUES(0xAADF);
-INSERT INTO t1 VALUES(0xAAE0);
-INSERT INTO t1 VALUES(0xAAE1);
-INSERT INTO t1 VALUES(0xAAE2);
-INSERT INTO t1 VALUES(0xAAE3);
-INSERT INTO t1 VALUES(0xAAE4);
-INSERT INTO t1 VALUES(0xAAE5);
-INSERT INTO t1 VALUES(0xAAE6);
-INSERT INTO t1 VALUES(0xAAE7);
-INSERT INTO t1 VALUES(0xAAE8);
-INSERT INTO t1 VALUES(0xAAE9);
-INSERT INTO t1 VALUES(0xAAEA);
-INSERT INTO t1 VALUES(0xAAEB);
-INSERT INTO t1 VALUES(0xAAEC);
-INSERT INTO t1 VALUES(0xAAED);
-INSERT INTO t1 VALUES(0xAAEE);
-INSERT INTO t1 VALUES(0xAAEF);
-INSERT INTO t1 VALUES(0xAAF0);
-INSERT INTO t1 VALUES(0xAAF1);
-INSERT INTO t1 VALUES(0xAAF2);
-INSERT INTO t1 VALUES(0xAAF3);
-INSERT INTO t1 VALUES(0xAAF4);
-INSERT INTO t1 VALUES(0xAAF5);
-INSERT INTO t1 VALUES(0xAAF6);
-INSERT INTO t1 VALUES(0xAAF7);
-INSERT INTO t1 VALUES(0xAAF8);
-INSERT INTO t1 VALUES(0xAAF9);
-INSERT INTO t1 VALUES(0xAAFA);
-INSERT INTO t1 VALUES(0xAAFB);
-INSERT INTO t1 VALUES(0xAAFC);
-INSERT INTO t1 VALUES(0xAAFD);
-INSERT INTO t1 VALUES(0xAAFE);
-INSERT INTO t1 VALUES(0xABA1);
-INSERT INTO t1 VALUES(0xABA2);
-INSERT INTO t1 VALUES(0xABA3);
-INSERT INTO t1 VALUES(0xABA4);
-INSERT INTO t1 VALUES(0xABA5);
-INSERT INTO t1 VALUES(0xABA6);
-INSERT INTO t1 VALUES(0xABA7);
-INSERT INTO t1 VALUES(0xABA8);
-INSERT INTO t1 VALUES(0xABA9);
-INSERT INTO t1 VALUES(0xABAA);
-INSERT INTO t1 VALUES(0xABAB);
-INSERT INTO t1 VALUES(0xABAC);
-INSERT INTO t1 VALUES(0xABAD);
-INSERT INTO t1 VALUES(0xABAE);
-INSERT INTO t1 VALUES(0xABAF);
-INSERT INTO t1 VALUES(0xABB0);
-INSERT INTO t1 VALUES(0xABB1);
-INSERT INTO t1 VALUES(0xABB2);
-INSERT INTO t1 VALUES(0xABB3);
-INSERT INTO t1 VALUES(0xABB4);
-INSERT INTO t1 VALUES(0xABB5);
-INSERT INTO t1 VALUES(0xABB6);
-INSERT INTO t1 VALUES(0xABB7);
-INSERT INTO t1 VALUES(0xABB8);
-INSERT INTO t1 VALUES(0xABB9);
-INSERT INTO t1 VALUES(0xABBA);
-INSERT INTO t1 VALUES(0xABBB);
-INSERT INTO t1 VALUES(0xABBC);
-INSERT INTO t1 VALUES(0xABBD);
-INSERT INTO t1 VALUES(0xABBE);
-INSERT INTO t1 VALUES(0xABBF);
-INSERT INTO t1 VALUES(0xABC0);
-INSERT INTO t1 VALUES(0xABC1);
-INSERT INTO t1 VALUES(0xABC2);
-INSERT INTO t1 VALUES(0xABC3);
-INSERT INTO t1 VALUES(0xABC4);
-INSERT INTO t1 VALUES(0xABC5);
-INSERT INTO t1 VALUES(0xABC6);
-INSERT INTO t1 VALUES(0xABC7);
-INSERT INTO t1 VALUES(0xABC8);
-INSERT INTO t1 VALUES(0xABC9);
-INSERT INTO t1 VALUES(0xABCA);
-INSERT INTO t1 VALUES(0xABCB);
-INSERT INTO t1 VALUES(0xABCC);
-INSERT INTO t1 VALUES(0xABCD);
-INSERT INTO t1 VALUES(0xABCE);
-INSERT INTO t1 VALUES(0xABCF);
-INSERT INTO t1 VALUES(0xABD0);
-INSERT INTO t1 VALUES(0xABD1);
-INSERT INTO t1 VALUES(0xABD2);
-INSERT INTO t1 VALUES(0xABD3);
-INSERT INTO t1 VALUES(0xABD4);
-INSERT INTO t1 VALUES(0xABD5);
-INSERT INTO t1 VALUES(0xABD6);
-INSERT INTO t1 VALUES(0xABD7);
-INSERT INTO t1 VALUES(0xABD8);
-INSERT INTO t1 VALUES(0xABD9);
-INSERT INTO t1 VALUES(0xABDA);
-INSERT INTO t1 VALUES(0xABDB);
-INSERT INTO t1 VALUES(0xABDC);
-INSERT INTO t1 VALUES(0xABDD);
-INSERT INTO t1 VALUES(0xABDE);
-INSERT INTO t1 VALUES(0xABDF);
-INSERT INTO t1 VALUES(0xABE0);
-INSERT INTO t1 VALUES(0xABE1);
-INSERT INTO t1 VALUES(0xABE2);
-INSERT INTO t1 VALUES(0xABE3);
-INSERT INTO t1 VALUES(0xABE4);
-INSERT INTO t1 VALUES(0xABE5);
-INSERT INTO t1 VALUES(0xABE6);
-INSERT INTO t1 VALUES(0xABE7);
-INSERT INTO t1 VALUES(0xABE8);
-INSERT INTO t1 VALUES(0xABE9);
-INSERT INTO t1 VALUES(0xABEA);
-INSERT INTO t1 VALUES(0xABEB);
-INSERT INTO t1 VALUES(0xABEC);
-INSERT INTO t1 VALUES(0xABED);
-INSERT INTO t1 VALUES(0xABEE);
-INSERT INTO t1 VALUES(0xABEF);
-INSERT INTO t1 VALUES(0xABF0);
-INSERT INTO t1 VALUES(0xABF1);
-INSERT INTO t1 VALUES(0xABF2);
-INSERT INTO t1 VALUES(0xABF3);
-INSERT INTO t1 VALUES(0xABF4);
-INSERT INTO t1 VALUES(0xABF5);
-INSERT INTO t1 VALUES(0xABF6);
-INSERT INTO t1 VALUES(0xABF7);
-INSERT INTO t1 VALUES(0xABF8);
-INSERT INTO t1 VALUES(0xABF9);
-INSERT INTO t1 VALUES(0xABFA);
-INSERT INTO t1 VALUES(0xABFB);
-INSERT INTO t1 VALUES(0xABFC);
-INSERT INTO t1 VALUES(0xABFD);
-INSERT INTO t1 VALUES(0xABFE);
-INSERT INTO t1 VALUES(0xACA1);
-INSERT INTO t1 VALUES(0xACA2);
-INSERT INTO t1 VALUES(0xACA3);
-INSERT INTO t1 VALUES(0xACA4);
-INSERT INTO t1 VALUES(0xACA5);
-INSERT INTO t1 VALUES(0xACA6);
-INSERT INTO t1 VALUES(0xACA7);
-INSERT INTO t1 VALUES(0xACA8);
-INSERT INTO t1 VALUES(0xACA9);
-INSERT INTO t1 VALUES(0xACAA);
-INSERT INTO t1 VALUES(0xACAB);
-INSERT INTO t1 VALUES(0xACAC);
-INSERT INTO t1 VALUES(0xACAD);
-INSERT INTO t1 VALUES(0xACAE);
-INSERT INTO t1 VALUES(0xACAF);
-INSERT INTO t1 VALUES(0xACB0);
-INSERT INTO t1 VALUES(0xACB1);
-INSERT INTO t1 VALUES(0xACB2);
-INSERT INTO t1 VALUES(0xACB3);
-INSERT INTO t1 VALUES(0xACB4);
-INSERT INTO t1 VALUES(0xACB5);
-INSERT INTO t1 VALUES(0xACB6);
-INSERT INTO t1 VALUES(0xACB7);
-INSERT INTO t1 VALUES(0xACB8);
-INSERT INTO t1 VALUES(0xACB9);
-INSERT INTO t1 VALUES(0xACBA);
-INSERT INTO t1 VALUES(0xACBB);
-INSERT INTO t1 VALUES(0xACBC);
-INSERT INTO t1 VALUES(0xACBD);
-INSERT INTO t1 VALUES(0xACBE);
-INSERT INTO t1 VALUES(0xACBF);
-INSERT INTO t1 VALUES(0xACC0);
-INSERT INTO t1 VALUES(0xACC1);
-INSERT INTO t1 VALUES(0xACC2);
-INSERT INTO t1 VALUES(0xACC3);
-INSERT INTO t1 VALUES(0xACC4);
-INSERT INTO t1 VALUES(0xACC5);
-INSERT INTO t1 VALUES(0xACC6);
-INSERT INTO t1 VALUES(0xACC7);
-INSERT INTO t1 VALUES(0xACC8);
-INSERT INTO t1 VALUES(0xACC9);
-INSERT INTO t1 VALUES(0xACCA);
-INSERT INTO t1 VALUES(0xACCB);
-INSERT INTO t1 VALUES(0xACCC);
-INSERT INTO t1 VALUES(0xACCD);
-INSERT INTO t1 VALUES(0xACCE);
-INSERT INTO t1 VALUES(0xACCF);
-INSERT INTO t1 VALUES(0xACD0);
-INSERT INTO t1 VALUES(0xACD1);
-INSERT INTO t1 VALUES(0xACD2);
-INSERT INTO t1 VALUES(0xACD3);
-INSERT INTO t1 VALUES(0xACD4);
-INSERT INTO t1 VALUES(0xACD5);
-INSERT INTO t1 VALUES(0xACD6);
-INSERT INTO t1 VALUES(0xACD7);
-INSERT INTO t1 VALUES(0xACD8);
-INSERT INTO t1 VALUES(0xACD9);
-INSERT INTO t1 VALUES(0xACDA);
-INSERT INTO t1 VALUES(0xACDB);
-INSERT INTO t1 VALUES(0xACDC);
-INSERT INTO t1 VALUES(0xACDD);
-INSERT INTO t1 VALUES(0xACDE);
-INSERT INTO t1 VALUES(0xACDF);
-INSERT INTO t1 VALUES(0xACE0);
-INSERT INTO t1 VALUES(0xACE1);
-INSERT INTO t1 VALUES(0xACE2);
-INSERT INTO t1 VALUES(0xACE3);
-INSERT INTO t1 VALUES(0xACE4);
-INSERT INTO t1 VALUES(0xACE5);
-INSERT INTO t1 VALUES(0xACE6);
-INSERT INTO t1 VALUES(0xACE7);
-INSERT INTO t1 VALUES(0xACE8);
-INSERT INTO t1 VALUES(0xACE9);
-INSERT INTO t1 VALUES(0xACEA);
-INSERT INTO t1 VALUES(0xACEB);
-INSERT INTO t1 VALUES(0xACEC);
-INSERT INTO t1 VALUES(0xACED);
-INSERT INTO t1 VALUES(0xACEE);
-INSERT INTO t1 VALUES(0xACEF);
-INSERT INTO t1 VALUES(0xACF0);
-INSERT INTO t1 VALUES(0xACF1);
-INSERT INTO t1 VALUES(0xACF2);
-INSERT INTO t1 VALUES(0xACF3);
-INSERT INTO t1 VALUES(0xACF4);
-INSERT INTO t1 VALUES(0xACF5);
-INSERT INTO t1 VALUES(0xACF6);
-INSERT INTO t1 VALUES(0xACF7);
-INSERT INTO t1 VALUES(0xACF8);
-INSERT INTO t1 VALUES(0xACF9);
-INSERT INTO t1 VALUES(0xACFA);
-INSERT INTO t1 VALUES(0xACFB);
-INSERT INTO t1 VALUES(0xACFC);
-INSERT INTO t1 VALUES(0xACFD);
-INSERT INTO t1 VALUES(0xACFE);
-INSERT INTO t1 VALUES(0xADA1);
-INSERT INTO t1 VALUES(0xADA2);
-INSERT INTO t1 VALUES(0xADA3);
-INSERT INTO t1 VALUES(0xADA4);
-INSERT INTO t1 VALUES(0xADA5);
-INSERT INTO t1 VALUES(0xADA6);
-INSERT INTO t1 VALUES(0xADA7);
-INSERT INTO t1 VALUES(0xADA8);
-INSERT INTO t1 VALUES(0xADA9);
-INSERT INTO t1 VALUES(0xADAA);
-INSERT INTO t1 VALUES(0xADAB);
-INSERT INTO t1 VALUES(0xADAC);
-INSERT INTO t1 VALUES(0xADAD);
-INSERT INTO t1 VALUES(0xADAE);
-INSERT INTO t1 VALUES(0xADAF);
-INSERT INTO t1 VALUES(0xADB0);
-INSERT INTO t1 VALUES(0xADB1);
-INSERT INTO t1 VALUES(0xADB2);
-INSERT INTO t1 VALUES(0xADB3);
-INSERT INTO t1 VALUES(0xADB4);
-INSERT INTO t1 VALUES(0xADB5);
-INSERT INTO t1 VALUES(0xADB6);
-INSERT INTO t1 VALUES(0xADB7);
-INSERT INTO t1 VALUES(0xADB8);
-INSERT INTO t1 VALUES(0xADB9);
-INSERT INTO t1 VALUES(0xADBA);
-INSERT INTO t1 VALUES(0xADBB);
-INSERT INTO t1 VALUES(0xADBC);
-INSERT INTO t1 VALUES(0xADBD);
-INSERT INTO t1 VALUES(0xADBE);
-INSERT INTO t1 VALUES(0xADBF);
-INSERT INTO t1 VALUES(0xADC0);
-INSERT INTO t1 VALUES(0xADC1);
-INSERT INTO t1 VALUES(0xADC2);
-INSERT INTO t1 VALUES(0xADC3);
-INSERT INTO t1 VALUES(0xADC4);
-INSERT INTO t1 VALUES(0xADC5);
-INSERT INTO t1 VALUES(0xADC6);
-INSERT INTO t1 VALUES(0xADC7);
-INSERT INTO t1 VALUES(0xADC8);
-INSERT INTO t1 VALUES(0xADC9);
-INSERT INTO t1 VALUES(0xADCA);
-INSERT INTO t1 VALUES(0xADCB);
-INSERT INTO t1 VALUES(0xADCC);
-INSERT INTO t1 VALUES(0xADCD);
-INSERT INTO t1 VALUES(0xADCE);
-INSERT INTO t1 VALUES(0xADCF);
-INSERT INTO t1 VALUES(0xADD0);
-INSERT INTO t1 VALUES(0xADD1);
-INSERT INTO t1 VALUES(0xADD2);
-INSERT INTO t1 VALUES(0xADD3);
-INSERT INTO t1 VALUES(0xADD4);
-INSERT INTO t1 VALUES(0xADD5);
-INSERT INTO t1 VALUES(0xADD6);
-INSERT INTO t1 VALUES(0xADD7);
-INSERT INTO t1 VALUES(0xADD8);
-INSERT INTO t1 VALUES(0xADD9);
-INSERT INTO t1 VALUES(0xADDA);
-INSERT INTO t1 VALUES(0xADDB);
-INSERT INTO t1 VALUES(0xADDC);
-INSERT INTO t1 VALUES(0xADDD);
-INSERT INTO t1 VALUES(0xADDE);
-INSERT INTO t1 VALUES(0xADDF);
-INSERT INTO t1 VALUES(0xADE0);
-INSERT INTO t1 VALUES(0xADE1);
-INSERT INTO t1 VALUES(0xADE2);
-INSERT INTO t1 VALUES(0xADE3);
-INSERT INTO t1 VALUES(0xADE4);
-INSERT INTO t1 VALUES(0xADE5);
-INSERT INTO t1 VALUES(0xADE6);
-INSERT INTO t1 VALUES(0xADE7);
-INSERT INTO t1 VALUES(0xADE8);
-INSERT INTO t1 VALUES(0xADE9);
-INSERT INTO t1 VALUES(0xADEA);
-INSERT INTO t1 VALUES(0xADEB);
-INSERT INTO t1 VALUES(0xADEC);
-INSERT INTO t1 VALUES(0xADED);
-INSERT INTO t1 VALUES(0xADEE);
-INSERT INTO t1 VALUES(0xADEF);
-INSERT INTO t1 VALUES(0xADF0);
-INSERT INTO t1 VALUES(0xADF1);
-INSERT INTO t1 VALUES(0xADF2);
-INSERT INTO t1 VALUES(0xADF3);
-INSERT INTO t1 VALUES(0xADF4);
-INSERT INTO t1 VALUES(0xADF5);
-INSERT INTO t1 VALUES(0xADF6);
-INSERT INTO t1 VALUES(0xADF7);
-INSERT INTO t1 VALUES(0xADF8);
-INSERT INTO t1 VALUES(0xADF9);
-INSERT INTO t1 VALUES(0xADFA);
-INSERT INTO t1 VALUES(0xADFB);
-INSERT INTO t1 VALUES(0xADFC);
-INSERT INTO t1 VALUES(0xADFD);
-INSERT INTO t1 VALUES(0xADFE);
-INSERT INTO t1 VALUES(0xAEA1);
-INSERT INTO t1 VALUES(0xAEA2);
-INSERT INTO t1 VALUES(0xAEA3);
-INSERT INTO t1 VALUES(0xAEA4);
-INSERT INTO t1 VALUES(0xAEA5);
-INSERT INTO t1 VALUES(0xAEA6);
-INSERT INTO t1 VALUES(0xAEA7);
-INSERT INTO t1 VALUES(0xAEA8);
-INSERT INTO t1 VALUES(0xAEA9);
-INSERT INTO t1 VALUES(0xAEAA);
-INSERT INTO t1 VALUES(0xAEAB);
-INSERT INTO t1 VALUES(0xAEAC);
-INSERT INTO t1 VALUES(0xAEAD);
-INSERT INTO t1 VALUES(0xAEAE);
-INSERT INTO t1 VALUES(0xAEAF);
-INSERT INTO t1 VALUES(0xAEB0);
-INSERT INTO t1 VALUES(0xAEB1);
-INSERT INTO t1 VALUES(0xAEB2);
-INSERT INTO t1 VALUES(0xAEB3);
-INSERT INTO t1 VALUES(0xAEB4);
-INSERT INTO t1 VALUES(0xAEB5);
-INSERT INTO t1 VALUES(0xAEB6);
-INSERT INTO t1 VALUES(0xAEB7);
-INSERT INTO t1 VALUES(0xAEB8);
-INSERT INTO t1 VALUES(0xAEB9);
-INSERT INTO t1 VALUES(0xAEBA);
-INSERT INTO t1 VALUES(0xAEBB);
-INSERT INTO t1 VALUES(0xAEBC);
-INSERT INTO t1 VALUES(0xAEBD);
-INSERT INTO t1 VALUES(0xAEBE);
-INSERT INTO t1 VALUES(0xAEBF);
-INSERT INTO t1 VALUES(0xAEC0);
-INSERT INTO t1 VALUES(0xAEC1);
-INSERT INTO t1 VALUES(0xAEC2);
-INSERT INTO t1 VALUES(0xAEC3);
-INSERT INTO t1 VALUES(0xAEC4);
-INSERT INTO t1 VALUES(0xAEC5);
-INSERT INTO t1 VALUES(0xAEC6);
-INSERT INTO t1 VALUES(0xAEC7);
-INSERT INTO t1 VALUES(0xAEC8);
-INSERT INTO t1 VALUES(0xAEC9);
-INSERT INTO t1 VALUES(0xAECA);
-INSERT INTO t1 VALUES(0xAECB);
-INSERT INTO t1 VALUES(0xAECC);
-INSERT INTO t1 VALUES(0xAECD);
-INSERT INTO t1 VALUES(0xAECE);
-INSERT INTO t1 VALUES(0xAECF);
-INSERT INTO t1 VALUES(0xAED0);
-INSERT INTO t1 VALUES(0xAED1);
-INSERT INTO t1 VALUES(0xAED2);
-INSERT INTO t1 VALUES(0xAED3);
-INSERT INTO t1 VALUES(0xAED4);
-INSERT INTO t1 VALUES(0xAED5);
-INSERT INTO t1 VALUES(0xAED6);
-INSERT INTO t1 VALUES(0xAED7);
-INSERT INTO t1 VALUES(0xAED8);
-INSERT INTO t1 VALUES(0xAED9);
-INSERT INTO t1 VALUES(0xAEDA);
-INSERT INTO t1 VALUES(0xAEDB);
-INSERT INTO t1 VALUES(0xAEDC);
-INSERT INTO t1 VALUES(0xAEDD);
-INSERT INTO t1 VALUES(0xAEDE);
-INSERT INTO t1 VALUES(0xAEDF);
-INSERT INTO t1 VALUES(0xAEE0);
-INSERT INTO t1 VALUES(0xAEE1);
-INSERT INTO t1 VALUES(0xAEE2);
-INSERT INTO t1 VALUES(0xAEE3);
-INSERT INTO t1 VALUES(0xAEE4);
-INSERT INTO t1 VALUES(0xAEE5);
-INSERT INTO t1 VALUES(0xAEE6);
-INSERT INTO t1 VALUES(0xAEE7);
-INSERT INTO t1 VALUES(0xAEE8);
-INSERT INTO t1 VALUES(0xAEE9);
-INSERT INTO t1 VALUES(0xAEEA);
-INSERT INTO t1 VALUES(0xAEEB);
-INSERT INTO t1 VALUES(0xAEEC);
-INSERT INTO t1 VALUES(0xAEED);
-INSERT INTO t1 VALUES(0xAEEE);
-INSERT INTO t1 VALUES(0xAEEF);
-INSERT INTO t1 VALUES(0xAEF0);
-INSERT INTO t1 VALUES(0xAEF1);
-INSERT INTO t1 VALUES(0xAEF2);
-INSERT INTO t1 VALUES(0xAEF3);
-INSERT INTO t1 VALUES(0xAEF4);
-INSERT INTO t1 VALUES(0xAEF5);
-INSERT INTO t1 VALUES(0xAEF6);
-INSERT INTO t1 VALUES(0xAEF7);
-INSERT INTO t1 VALUES(0xAEF8);
-INSERT INTO t1 VALUES(0xAEF9);
-INSERT INTO t1 VALUES(0xAEFA);
-INSERT INTO t1 VALUES(0xAEFB);
-INSERT INTO t1 VALUES(0xAEFC);
-INSERT INTO t1 VALUES(0xAEFD);
-INSERT INTO t1 VALUES(0xAEFE);
-INSERT INTO t1 VALUES(0xAFA1);
-INSERT INTO t1 VALUES(0xAFA2);
-INSERT INTO t1 VALUES(0xAFA3);
-INSERT INTO t1 VALUES(0xAFA4);
-INSERT INTO t1 VALUES(0xAFA5);
-INSERT INTO t1 VALUES(0xAFA6);
-INSERT INTO t1 VALUES(0xAFA7);
-INSERT INTO t1 VALUES(0xAFA8);
-INSERT INTO t1 VALUES(0xAFA9);
-INSERT INTO t1 VALUES(0xAFAA);
-INSERT INTO t1 VALUES(0xAFAB);
-INSERT INTO t1 VALUES(0xAFAC);
-INSERT INTO t1 VALUES(0xAFAD);
-INSERT INTO t1 VALUES(0xAFAE);
-INSERT INTO t1 VALUES(0xAFAF);
-INSERT INTO t1 VALUES(0xAFB0);
-INSERT INTO t1 VALUES(0xAFB1);
-INSERT INTO t1 VALUES(0xAFB2);
-INSERT INTO t1 VALUES(0xAFB3);
-INSERT INTO t1 VALUES(0xAFB4);
-INSERT INTO t1 VALUES(0xAFB5);
-INSERT INTO t1 VALUES(0xAFB6);
-INSERT INTO t1 VALUES(0xAFB7);
-INSERT INTO t1 VALUES(0xAFB8);
-INSERT INTO t1 VALUES(0xAFB9);
-INSERT INTO t1 VALUES(0xAFBA);
-INSERT INTO t1 VALUES(0xAFBB);
-INSERT INTO t1 VALUES(0xAFBC);
-INSERT INTO t1 VALUES(0xAFBD);
-INSERT INTO t1 VALUES(0xAFBE);
-INSERT INTO t1 VALUES(0xAFBF);
-INSERT INTO t1 VALUES(0xAFC0);
-INSERT INTO t1 VALUES(0xAFC1);
-INSERT INTO t1 VALUES(0xAFC2);
-INSERT INTO t1 VALUES(0xAFC3);
-INSERT INTO t1 VALUES(0xAFC4);
-INSERT INTO t1 VALUES(0xAFC5);
-INSERT INTO t1 VALUES(0xAFC6);
-INSERT INTO t1 VALUES(0xAFC7);
-INSERT INTO t1 VALUES(0xAFC8);
-INSERT INTO t1 VALUES(0xAFC9);
-INSERT INTO t1 VALUES(0xAFCA);
-INSERT INTO t1 VALUES(0xAFCB);
-INSERT INTO t1 VALUES(0xAFCC);
-INSERT INTO t1 VALUES(0xAFCD);
-INSERT INTO t1 VALUES(0xAFCE);
-INSERT INTO t1 VALUES(0xAFCF);
-INSERT INTO t1 VALUES(0xAFD0);
-INSERT INTO t1 VALUES(0xAFD1);
-INSERT INTO t1 VALUES(0xAFD2);
-INSERT INTO t1 VALUES(0xAFD3);
-INSERT INTO t1 VALUES(0xAFD4);
-INSERT INTO t1 VALUES(0xAFD5);
-INSERT INTO t1 VALUES(0xAFD6);
-INSERT INTO t1 VALUES(0xAFD7);
-INSERT INTO t1 VALUES(0xAFD8);
-INSERT INTO t1 VALUES(0xAFD9);
-INSERT INTO t1 VALUES(0xAFDA);
-INSERT INTO t1 VALUES(0xAFDB);
-INSERT INTO t1 VALUES(0xAFDC);
-INSERT INTO t1 VALUES(0xAFDD);
-INSERT INTO t1 VALUES(0xAFDE);
-INSERT INTO t1 VALUES(0xAFDF);
-INSERT INTO t1 VALUES(0xAFE0);
-INSERT INTO t1 VALUES(0xAFE1);
-INSERT INTO t1 VALUES(0xAFE2);
-INSERT INTO t1 VALUES(0xAFE3);
-INSERT INTO t1 VALUES(0xAFE4);
-INSERT INTO t1 VALUES(0xAFE5);
-INSERT INTO t1 VALUES(0xAFE6);
-INSERT INTO t1 VALUES(0xAFE7);
-INSERT INTO t1 VALUES(0xAFE8);
-INSERT INTO t1 VALUES(0xAFE9);
-INSERT INTO t1 VALUES(0xAFEA);
-INSERT INTO t1 VALUES(0xAFEB);
-INSERT INTO t1 VALUES(0xAFEC);
-INSERT INTO t1 VALUES(0xAFED);
-INSERT INTO t1 VALUES(0xAFEE);
-INSERT INTO t1 VALUES(0xAFEF);
-INSERT INTO t1 VALUES(0xAFF0);
-INSERT INTO t1 VALUES(0xAFF1);
-INSERT INTO t1 VALUES(0xAFF2);
-INSERT INTO t1 VALUES(0xAFF3);
-INSERT INTO t1 VALUES(0xAFF4);
-INSERT INTO t1 VALUES(0xAFF5);
-INSERT INTO t1 VALUES(0xAFF6);
-INSERT INTO t1 VALUES(0xAFF7);
-INSERT INTO t1 VALUES(0xAFF8);
-INSERT INTO t1 VALUES(0xAFF9);
-INSERT INTO t1 VALUES(0xAFFA);
-INSERT INTO t1 VALUES(0xAFFB);
-INSERT INTO t1 VALUES(0xAFFC);
-INSERT INTO t1 VALUES(0xAFFD);
-INSERT INTO t1 VALUES(0xAFFE);
-INSERT INTO t1 VALUES(0xCFD4);
-INSERT INTO t1 VALUES(0xCFD5);
-INSERT INTO t1 VALUES(0xCFD6);
-INSERT INTO t1 VALUES(0xCFD7);
-INSERT INTO t1 VALUES(0xCFD8);
-INSERT INTO t1 VALUES(0xCFD9);
-INSERT INTO t1 VALUES(0xCFDA);
-INSERT INTO t1 VALUES(0xCFDB);
-INSERT INTO t1 VALUES(0xCFDC);
-INSERT INTO t1 VALUES(0xCFDD);
-INSERT INTO t1 VALUES(0xCFDE);
-INSERT INTO t1 VALUES(0xCFDF);
-INSERT INTO t1 VALUES(0xCFE0);
-INSERT INTO t1 VALUES(0xCFE1);
-INSERT INTO t1 VALUES(0xCFE2);
-INSERT INTO t1 VALUES(0xCFE3);
-INSERT INTO t1 VALUES(0xCFE4);
-INSERT INTO t1 VALUES(0xCFE5);
-INSERT INTO t1 VALUES(0xCFE6);
-INSERT INTO t1 VALUES(0xCFE7);
-INSERT INTO t1 VALUES(0xCFE8);
-INSERT INTO t1 VALUES(0xCFE9);
-INSERT INTO t1 VALUES(0xCFEA);
-INSERT INTO t1 VALUES(0xCFEB);
-INSERT INTO t1 VALUES(0xCFEC);
-INSERT INTO t1 VALUES(0xCFED);
-INSERT INTO t1 VALUES(0xCFEE);
-INSERT INTO t1 VALUES(0xCFEF);
-INSERT INTO t1 VALUES(0xCFF0);
-INSERT INTO t1 VALUES(0xCFF1);
-INSERT INTO t1 VALUES(0xCFF2);
-INSERT INTO t1 VALUES(0xCFF3);
-INSERT INTO t1 VALUES(0xCFF4);
-INSERT INTO t1 VALUES(0xCFF5);
-INSERT INTO t1 VALUES(0xCFF6);
-INSERT INTO t1 VALUES(0xCFF7);
-INSERT INTO t1 VALUES(0xCFF8);
-INSERT INTO t1 VALUES(0xCFF9);
-INSERT INTO t1 VALUES(0xCFFA);
-INSERT INTO t1 VALUES(0xCFFB);
-INSERT INTO t1 VALUES(0xCFFC);
-INSERT INTO t1 VALUES(0xCFFD);
-INSERT INTO t1 VALUES(0xCFFE);
-INSERT INTO t1 VALUES(0xF4A7);
-INSERT INTO t1 VALUES(0xF4A8);
-INSERT INTO t1 VALUES(0xF4A9);
-INSERT INTO t1 VALUES(0xF4AA);
-INSERT INTO t1 VALUES(0xF4AB);
-INSERT INTO t1 VALUES(0xF4AC);
-INSERT INTO t1 VALUES(0xF4AD);
-INSERT INTO t1 VALUES(0xF4AE);
-INSERT INTO t1 VALUES(0xF4AF);
-INSERT INTO t1 VALUES(0xF4B0);
-INSERT INTO t1 VALUES(0xF4B1);
-INSERT INTO t1 VALUES(0xF4B2);
-INSERT INTO t1 VALUES(0xF4B3);
-INSERT INTO t1 VALUES(0xF4B4);
-INSERT INTO t1 VALUES(0xF4B5);
-INSERT INTO t1 VALUES(0xF4B6);
-INSERT INTO t1 VALUES(0xF4B7);
-INSERT INTO t1 VALUES(0xF4B8);
-INSERT INTO t1 VALUES(0xF4B9);
-INSERT INTO t1 VALUES(0xF4BA);
-INSERT INTO t1 VALUES(0xF4BB);
-INSERT INTO t1 VALUES(0xF4BC);
-INSERT INTO t1 VALUES(0xF4BD);
-INSERT INTO t1 VALUES(0xF4BE);
-INSERT INTO t1 VALUES(0xF4BF);
-INSERT INTO t1 VALUES(0xF4C0);
-INSERT INTO t1 VALUES(0xF4C1);
-INSERT INTO t1 VALUES(0xF4C2);
-INSERT INTO t1 VALUES(0xF4C3);
-INSERT INTO t1 VALUES(0xF4C4);
-INSERT INTO t1 VALUES(0xF4C5);
-INSERT INTO t1 VALUES(0xF4C6);
-INSERT INTO t1 VALUES(0xF4C7);
-INSERT INTO t1 VALUES(0xF4C8);
-INSERT INTO t1 VALUES(0xF4C9);
-INSERT INTO t1 VALUES(0xF4CA);
-INSERT INTO t1 VALUES(0xF4CB);
-INSERT INTO t1 VALUES(0xF4CC);
-INSERT INTO t1 VALUES(0xF4CD);
-INSERT INTO t1 VALUES(0xF4CE);
-INSERT INTO t1 VALUES(0xF4CF);
-INSERT INTO t1 VALUES(0xF4D0);
-INSERT INTO t1 VALUES(0xF4D1);
-INSERT INTO t1 VALUES(0xF4D2);
-INSERT INTO t1 VALUES(0xF4D3);
-INSERT INTO t1 VALUES(0xF4D4);
-INSERT INTO t1 VALUES(0xF4D5);
-INSERT INTO t1 VALUES(0xF4D6);
-INSERT INTO t1 VALUES(0xF4D7);
-INSERT INTO t1 VALUES(0xF4D8);
-INSERT INTO t1 VALUES(0xF4D9);
-INSERT INTO t1 VALUES(0xF4DA);
-INSERT INTO t1 VALUES(0xF4DB);
-INSERT INTO t1 VALUES(0xF4DC);
-INSERT INTO t1 VALUES(0xF4DD);
-INSERT INTO t1 VALUES(0xF4DE);
-INSERT INTO t1 VALUES(0xF4DF);
-INSERT INTO t1 VALUES(0xF4E0);
-INSERT INTO t1 VALUES(0xF4E1);
-INSERT INTO t1 VALUES(0xF4E2);
-INSERT INTO t1 VALUES(0xF4E3);
-INSERT INTO t1 VALUES(0xF4E4);
-INSERT INTO t1 VALUES(0xF4E5);
-INSERT INTO t1 VALUES(0xF4E6);
-INSERT INTO t1 VALUES(0xF4E7);
-INSERT INTO t1 VALUES(0xF4E8);
-INSERT INTO t1 VALUES(0xF4E9);
-INSERT INTO t1 VALUES(0xF4EA);
-INSERT INTO t1 VALUES(0xF4EB);
-INSERT INTO t1 VALUES(0xF4EC);
-INSERT INTO t1 VALUES(0xF4ED);
-INSERT INTO t1 VALUES(0xF4EE);
-INSERT INTO t1 VALUES(0xF4EF);
-INSERT INTO t1 VALUES(0xF4F0);
-INSERT INTO t1 VALUES(0xF4F1);
-INSERT INTO t1 VALUES(0xF4F2);
-INSERT INTO t1 VALUES(0xF4F3);
-INSERT INTO t1 VALUES(0xF4F4);
-INSERT INTO t1 VALUES(0xF4F5);
-INSERT INTO t1 VALUES(0xF4F6);
-INSERT INTO t1 VALUES(0xF4F7);
-INSERT INTO t1 VALUES(0xF4F8);
-INSERT INTO t1 VALUES(0xF4F9);
-INSERT INTO t1 VALUES(0xF4FA);
-INSERT INTO t1 VALUES(0xF4FB);
-INSERT INTO t1 VALUES(0xF4FC);
-INSERT INTO t1 VALUES(0xF4FD);
-INSERT INTO t1 VALUES(0xF4FE);
-SELECT HEX(c) FROM t1 ORDER BY BINARY c;
-HEX(c)
-A2AF
-A2B0
-A2B1
-A2B2
-A2B3
-A2B4
-A2B5
-A2B6
-A2B7
-A2B8
-A2B9
-A2C2
-A2C3
-A2C4
-A2C5
-A2C6
-A2C7
-A2C8
-A2C9
-A2D1
-A2D2
-A2D3
-A2D4
-A2D5
-A2D6
-A2D7
-A2D8
-A2D9
-A2DA
-A2DB
-A2EB
-A2EC
-A2ED
-A2EE
-A2EF
-A2F0
-A2F1
-A2FA
-A2FB
-A2FC
-A2FD
-A3A1
-A3A2
-A3A3
-A3A4
-A3A5
-A3A6
-A3A7
-A3A8
-A3A9
-A3AA
-A3AB
-A3AC
-A3AD
-A3AE
-A3AF
-A3BA
-A3BB
-A3BC
-A3BD
-A3BE
-A3BF
-A3C0
-A3DB
-A3DC
-A3DD
-A3DE
-A3DF
-A3E0
-A3FB
-A3FC
-A3FD
-A3FE
-A4F4
-A4F5
-A4F6
-A4F7
-A4F8
-A4F9
-A4FA
-A4FB
-A4FC
-A4FD
-A4FE
-A5F7
-A5F8
-A5F9
-A5FA
-A5FB
-A5FC
-A5FD
-A5FE
-A6B9
-A6BA
-A6BB
-A6BC
-A6BD
-A6BE
-A6BF
-A6C0
-A6D9
-A6DA
-A6DB
-A6DC
-A6DD
-A6DE
-A6DF
-A6E0
-A6E1
-A6E2
-A6E3
-A6E4
-A6E5
-A6E6
-A6E7
-A6E8
-A6E9
-A6EA
-A6EB
-A6EC
-A6ED
-A6EE
-A6EF
-A6F0
-A6F1
-A6F2
-A6F3
-A6F4
-A6F5
-A6F6
-A6F7
-A6F8
-A6F9
-A6FA
-A6FB
-A6FC
-A6FD
-A6FE
-A7C2
-A7C3
-A7C4
-A7C5
-A7C6
-A7C7
-A7C8
-A7C9
-A7CA
-A7CB
-A7CC
-A7CD
-A7CE
-A7CF
-A7D0
-A7F2
-A7F3
-A7F4
-A7F5
-A7F6
-A7F7
-A7F8
-A7F9
-A7FA
-A7FB
-A7FC
-A7FD
-A7FE
-A8C1
-A8C2
-A8C3
-A8C4
-A8C5
-A8C6
-A8C7
-A8C8
-A8C9
-A8CA
-A8CB
-A8CC
-A8CD
-A8CE
-A8CF
-A8D0
-A8D1
-A8D2
-A8D3
-A8D4
-A8D5
-A8D6
-A8D7
-A8D8
-A8D9
-A8DA
-A8DB
-A8DC
-A8DD
-A8DE
-A8DF
-A8E0
-A8E1
-A8E2
-A8E3
-A8E4
-A8E5
-A8E6
-A8E7
-A8E8
-A8E9
-A8EA
-A8EB
-A8EC
-A8ED
-A8EE
-A8EF
-A8F0
-A8F1
-A8F2
-A8F3
-A8F4
-A8F5
-A8F6
-A8F7
-A8F8
-A8F9
-A8FA
-A8FB
-A8FC
-A8FD
-A8FE
-A9A1
-A9A2
-A9A3
-A9A4
-A9A5
-A9A6
-A9A7
-A9A8
-A9A9
-A9AA
-A9AB
-A9AC
-A9AD
-A9AE
-A9AF
-A9B0
-A9B1
-A9B2
-A9B3
-A9B4
-A9B5
-A9B6
-A9B7
-A9B8
-A9B9
-A9BA
-A9BB
-A9BC
-A9BD
-A9BE
-A9BF
-A9C0
-A9C1
-A9C2
-A9C3
-A9C4
-A9C5
-A9C6
-A9C7
-A9C8
-A9C9
-A9CA
-A9CB
-A9CC
-A9CD
-A9CE
-A9CF
-A9D0
-A9D1
-A9D2
-A9D3
-A9D4
-A9D5
-A9D6
-A9D7
-A9D8
-A9D9
-A9DA
-A9DB
-A9DC
-A9DD
-A9DE
-A9DF
-A9E0
-A9E1
-A9E2
-A9E3
-A9E4
-A9E5
-A9E6
-A9E7
-A9E8
-A9E9
-A9EA
-A9EB
-A9EC
-A9ED
-A9EE
-A9EF
-A9F0
-A9F1
-A9F2
-A9F3
-A9F4
-A9F5
-A9F6
-A9F7
-A9F8
-A9F9
-A9FA
-A9FB
-A9FC
-A9FD
-A9FE
-AAA1
-AAA2
-AAA3
-AAA4
-AAA5
-AAA6
-AAA7
-AAA8
-AAA9
-AAAA
-AAAB
-AAAC
-AAAD
-AAAE
-AAAF
-AAB0
-AAB1
-AAB2
-AAB3
-AAB4
-AAB5
-AAB6
-AAB7
-AAB8
-AAB9
-AABA
-AABB
-AABC
-AABD
-AABE
-AABF
-AAC0
-AAC1
-AAC2
-AAC3
-AAC4
-AAC5
-AAC6
-AAC7
-AAC8
-AAC9
-AACA
-AACB
-AACC
-AACD
-AACE
-AACF
-AAD0
-AAD1
-AAD2
-AAD3
-AAD4
-AAD5
-AAD6
-AAD7
-AAD8
-AAD9
-AADA
-AADB
-AADC
-AADD
-AADE
-AADF
-AAE0
-AAE1
-AAE2
-AAE3
-AAE4
-AAE5
-AAE6
-AAE7
-AAE8
-AAE9
-AAEA
-AAEB
-AAEC
-AAED
-AAEE
-AAEF
-AAF0
-AAF1
-AAF2
-AAF3
-AAF4
-AAF5
-AAF6
-AAF7
-AAF8
-AAF9
-AAFA
-AAFB
-AAFC
-AAFD
-AAFE
-ABA1
-ABA2
-ABA3
-ABA4
-ABA5
-ABA6
-ABA7
-ABA8
-ABA9
-ABAA
-ABAB
-ABAC
-ABAD
-ABAE
-ABAF
-ABB0
-ABB1
-ABB2
-ABB3
-ABB4
-ABB5
-ABB6
-ABB7
-ABB8
-ABB9
-ABBA
-ABBB
-ABBC
-ABBD
-ABBE
-ABBF
-ABC0
-ABC1
-ABC2
-ABC3
-ABC4
-ABC5
-ABC6
-ABC7
-ABC8
-ABC9
-ABCA
-ABCB
-ABCC
-ABCD
-ABCE
-ABCF
-ABD0
-ABD1
-ABD2
-ABD3
-ABD4
-ABD5
-ABD6
-ABD7
-ABD8
-ABD9
-ABDA
-ABDB
-ABDC
-ABDD
-ABDE
-ABDF
-ABE0
-ABE1
-ABE2
-ABE3
-ABE4
-ABE5
-ABE6
-ABE7
-ABE8
-ABE9
-ABEA
-ABEB
-ABEC
-ABED
-ABEE
-ABEF
-ABF0
-ABF1
-ABF2
-ABF3
-ABF4
-ABF5
-ABF6
-ABF7
-ABF8
-ABF9
-ABFA
-ABFB
-ABFC
-ABFD
-ABFE
-ACA1
-ACA2
-ACA3
-ACA4
-ACA5
-ACA6
-ACA7
-ACA8
-ACA9
-ACAA
-ACAB
-ACAC
-ACAD
-ACAE
-ACAF
-ACB0
-ACB1
-ACB2
-ACB3
-ACB4
-ACB5
-ACB6
-ACB7
-ACB8
-ACB9
-ACBA
-ACBB
-ACBC
-ACBD
-ACBE
-ACBF
-ACC0
-ACC1
-ACC2
-ACC3
-ACC4
-ACC5
-ACC6
-ACC7
-ACC8
-ACC9
-ACCA
-ACCB
-ACCC
-ACCD
-ACCE
-ACCF
-ACD0
-ACD1
-ACD2
-ACD3
-ACD4
-ACD5
-ACD6
-ACD7
-ACD8
-ACD9
-ACDA
-ACDB
-ACDC
-ACDD
-ACDE
-ACDF
-ACE0
-ACE1
-ACE2
-ACE3
-ACE4
-ACE5
-ACE6
-ACE7
-ACE8
-ACE9
-ACEA
-ACEB
-ACEC
-ACED
-ACEE
-ACEF
-ACF0
-ACF1
-ACF2
-ACF3
-ACF4
-ACF5
-ACF6
-ACF7
-ACF8
-ACF9
-ACFA
-ACFB
-ACFC
-ACFD
-ACFE
-ADA1
-ADA2
-ADA3
-ADA4
-ADA5
-ADA6
-ADA7
-ADA8
-ADA9
-ADAA
-ADAB
-ADAC
-ADAD
-ADAE
-ADAF
-ADB0
-ADB1
-ADB2
-ADB3
-ADB4
-ADB5
-ADB6
-ADB7
-ADB8
-ADB9
-ADBA
-ADBB
-ADBC
-ADBD
-ADBE
-ADBF
-ADC0
-ADC1
-ADC2
-ADC3
-ADC4
-ADC5
-ADC6
-ADC7
-ADC8
-ADC9
-ADCA
-ADCB
-ADCC
-ADCD
-ADCE
-ADCF
-ADD0
-ADD1
-ADD2
-ADD3
-ADD4
-ADD5
-ADD6
-ADD7
-ADD8
-ADD9
-ADDA
-ADDB
-ADDC
-ADDD
-ADDE
-ADDF
-ADE0
-ADE1
-ADE2
-ADE3
-ADE4
-ADE5
-ADE6
-ADE7
-ADE8
-ADE9
-ADEA
-ADEB
-ADEC
-ADED
-ADEE
-ADEF
-ADF0
-ADF1
-ADF2
-ADF3
-ADF4
-ADF5
-ADF6
-ADF7
-ADF8
-ADF9
-ADFA
-ADFB
-ADFC
-ADFD
-ADFE
-AEA1
-AEA2
-AEA3
-AEA4
-AEA5
-AEA6
-AEA7
-AEA8
-AEA9
-AEAA
-AEAB
-AEAC
-AEAD
-AEAE
-AEAF
-AEB0
-AEB1
-AEB2
-AEB3
-AEB4
-AEB5
-AEB6
-AEB7
-AEB8
-AEB9
-AEBA
-AEBB
-AEBC
-AEBD
-AEBE
-AEBF
-AEC0
-AEC1
-AEC2
-AEC3
-AEC4
-AEC5
-AEC6
-AEC7
-AEC8
-AEC9
-AECA
-AECB
-AECC
-AECD
-AECE
-AECF
-AED0
-AED1
-AED2
-AED3
-AED4
-AED5
-AED6
-AED7
-AED8
-AED9
-AEDA
-AEDB
-AEDC
-AEDD
-AEDE
-AEDF
-AEE0
-AEE1
-AEE2
-AEE3
-AEE4
-AEE5
-AEE6
-AEE7
-AEE8
-AEE9
-AEEA
-AEEB
-AEEC
-AEED
-AEEE
-AEEF
-AEF0
-AEF1
-AEF2
-AEF3
-AEF4
-AEF5
-AEF6
-AEF7
-AEF8
-AEF9
-AEFA
-AEFB
-AEFC
-AEFD
-AEFE
-AFA1
-AFA2
-AFA3
-AFA4
-AFA5
-AFA6
-AFA7
-AFA8
-AFA9
-AFAA
-AFAB
-AFAC
-AFAD
-AFAE
-AFAF
-AFB0
-AFB1
-AFB2
-AFB3
-AFB4
-AFB5
-AFB6
-AFB7
-AFB8
-AFB9
-AFBA
-AFBB
-AFBC
-AFBD
-AFBE
-AFBF
-AFC0
-AFC1
-AFC2
-AFC3
-AFC4
-AFC5
-AFC6
-AFC7
-AFC8
-AFC9
-AFCA
-AFCB
-AFCC
-AFCD
-AFCE
-AFCF
-AFD0
-AFD1
-AFD2
-AFD3
-AFD4
-AFD5
-AFD6
-AFD7
-AFD8
-AFD9
-AFDA
-AFDB
-AFDC
-AFDD
-AFDE
-AFDF
-AFE0
-AFE1
-AFE2
-AFE3
-AFE4
-AFE5
-AFE6
-AFE7
-AFE8
-AFE9
-AFEA
-AFEB
-AFEC
-AFED
-AFEE
-AFEF
-AFF0
-AFF1
-AFF2
-AFF3
-AFF4
-AFF5
-AFF6
-AFF7
-AFF8
-AFF9
-AFFA
-AFFB
-AFFC
-AFFD
-AFFE
-CFD4
-CFD5
-CFD6
-CFD7
-CFD8
-CFD9
-CFDA
-CFDB
-CFDC
-CFDD
-CFDE
-CFDF
-CFE0
-CFE1
-CFE2
-CFE3
-CFE4
-CFE5
-CFE6
-CFE7
-CFE8
-CFE9
-CFEA
-CFEB
-CFEC
-CFED
-CFEE
-CFEF
-CFF0
-CFF1
-CFF2
-CFF3
-CFF4
-CFF5
-CFF6
-CFF7
-CFF8
-CFF9
-CFFA
-CFFB
-CFFC
-CFFD
-CFFE
-F4A7
-F4A8
-F4A9
-F4AA
-F4AB
-F4AC
-F4AD
-F4AE
-F4AF
-F4B0
-F4B1
-F4B2
-F4B3
-F4B4
-F4B5
-F4B6
-F4B7
-F4B8
-F4B9
-F4BA
-F4BB
-F4BC
-F4BD
-F4BE
-F4BF
-F4C0
-F4C1
-F4C2
-F4C3
-F4C4
-F4C5
-F4C6
-F4C7
-F4C8
-F4C9
-F4CA
-F4CB
-F4CC
-F4CD
-F4CE
-F4CF
-F4D0
-F4D1
-F4D2
-F4D3
-F4D4
-F4D5
-F4D6
-F4D7
-F4D8
-F4D9
-F4DA
-F4DB
-F4DC
-F4DD
-F4DE
-F4DF
-F4E0
-F4E1
-F4E2
-F4E3
-F4E4
-F4E5
-F4E6
-F4E7
-F4E8
-F4E9
-F4EA
-F4EB
-F4EC
-F4ED
-F4EE
-F4EF
-F4F0
-F4F1
-F4F2
-F4F3
-F4F4
-F4F5
-F4F6
-F4F7
-F4F8
-F4F9
-F4FA
-F4FB
-F4FC
-F4FD
-F4FE
-DROP TABLE t1;
-SET collation_connection='ujis_japanese_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-ujis_japanese_ci 6109
-ujis_japanese_ci 61
-ujis_japanese_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-ujis_japanese_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-ujis_japanese_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-create table t1 engine=innodb select repeat('a',50) as c1;
-alter table t1 add index(c1(5));
-insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
-select collation(c1) from t1 limit 1;
-collation(c1)
-ujis_japanese_ci
-select c1 from t1 where c1 like 'abcdef%' order by c1;
-c1
-abcdefg
-select c1 from t1 where c1 like 'abcde1%' order by c1;
-c1
-abcde100
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde11%' order by c1;
-c1
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde111%' order by c1;
-c1
-abcde111
-drop table t1;
-select @@collation_connection;
-@@collation_connection
-ujis_japanese_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F225
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-SET collation_connection='ujis_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-ujis_bin 6109
-ujis_bin 61
-ujis_bin 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-ujis_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-ujis_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-create table t1 engine=innodb select repeat('a',50) as c1;
-alter table t1 add index(c1(5));
-insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
-select collation(c1) from t1 limit 1;
-collation(c1)
-ujis_bin
-select c1 from t1 where c1 like 'abcdef%' order by c1;
-c1
-abcdefg
-select c1 from t1 where c1 like 'abcde1%' order by c1;
-c1
-abcde100
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde11%' order by c1;
-c1
-abcde110
-abcde111
-select c1 from t1 where c1 like 'abcde111%' order by c1;
-c1
-abcde111
-drop table t1;
-select @@collation_connection;
-@@collation_connection
-ujis_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 AS
-SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
-ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
-INSERT INTO t1 (a, b) VALUES (1, repeat(0xF1F2,5));
-INSERT INTO t1 (a, b) VALUES (2, repeat(0xF1F2,10));
-INSERT INTO t1 (a, b) VALUES (3, repeat(0xF1F2,11));
-INSERT INTO t1 (a, b) VALUES (4, repeat(0xF1F2,12));
-SELECT hex(concat(repeat(0xF1F2, 10), '%'));
-hex(concat(repeat(0xF1F2, 10), '%'))
-F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F225
-3 rows expected
-SELECT a, hex(b), c FROM t1 WHERE b LIKE concat(repeat(0xF1F2,10), '%');
-a hex(b) c
-2 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-3 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-4 F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2F1F2 NULL
-DROP TABLE t1;
-select hex(convert(_ujis 0xA5FE41 using ucs2));
-hex(convert(_ujis 0xA5FE41 using ucs2))
-003F0041
-Warnings:
-Warning 1977 Cannot convert 'ujis' character 0xA5FE to 'ucs2'
-select hex(convert(_ujis 0x8FABF841 using ucs2));
-hex(convert(_ujis 0x8FABF841 using ucs2))
-003F0041
-Warnings:
-Warning 1977 Cannot convert 'ujis' character 0x8FABF8 to 'ucs2'
-DROP TABLE IF EXISTS t1, t2;
-DROP PROCEDURE IF EXISTS sp1;
-set names ujis;
-set character_set_database = ujis;
-set character_set_server = ujis;
-CREATE TABLE t1(c1 char(2)) default charset = ujis;
-CREATE TABLE t2(c2 char(2)) default charset = ujis;
-INSERT INTO t1 VALUES(_ujis 0xA4A2);
-CREATE PROCEDURE sp1()
-BEGIN
-DECLARE a CHAR(2) CHARSET ujis;
-DECLARE cur1 CURSOR FOR SELECT c1 FROM t1;
-OPEN cur1;
-FETCH cur1 INTO a;
-INSERT INTO t2 VALUES (a);
-CLOSE cur1;
-END|
-CALL sp1();
-SELECT c1,c2 FROM t1,t2;
-c1 c2
-¤¢ ¤¢
-SELECT hex(convert(_latin1 0xA4A2 using ujis)),hex(c2) FROM t1,t2;
-hex(convert(_latin1 0xA4A2 using ujis)) hex(c2)
-8FA2F0A1F1 A4A2
-DROP PROCEDURE sp1;
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# Bug#57257 Replace(ExtractValue(...)) causes MySQL crash
-#
-SET NAMES utf8;
-SELECT CONVERT(REPLACE(EXPORT_SET('a','a','a','','a'),'00','') USING ujis);
-CONVERT(REPLACE(EXPORT_SET('a','a','a','','a'),'00','') USING ujis)
-
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'a'
-Warning 1292 Truncated incorrect INTEGER value: 'a'
-set names default;
-set character_set_database=default;
-set character_set_server=default;
-End of 5.1 tests
-#
-# Start of 5.5 tests
-#
-#
-# Testing WL#4583 Case conversion in Asian character sets
-#
-SET NAMES utf8;
-SET collation_connection=ujis_japanese_ci;
-CREATE TABLE t1 (b VARCHAR(2));
-INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
-INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
-CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT 'XXXXXX' AS code, ' ' AS a LIMIT 0;
-INSERT IGNORE INTO t1 (code) SELECT concat('8E', head) FROM head
-WHERE (head BETWEEN 'A1' AND 'DF') ORDER BY head;
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-INSERT IGNORE INTO t1 (code) SELECT concat(head, tail)
-FROM head, tail
-WHERE (head BETWEEN '80' AND 'FF') AND (head NOT BETWEEN '8E' AND '8F')
-AND (tail BETWEEN '20' AND 'FF')
-ORDER BY head, tail;
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-INSERT IGNORE INTO t1 (code) SELECT concat('8F', head, tail)
-FROM head, tail
-WHERE (head BETWEEN '80' AND 'FF') AND (tail BETWEEN '80' AND 'FF')
-ORDER BY head, tail;
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-DROP TEMPORARY TABLE head, tail;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `code` varchar(6) CHARACTER SET ujis NOT NULL,
- `a` varchar(1) CHARACTER SET ujis NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
-Warnings:
-Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
-Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
-Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
-Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
-Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
-Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
-Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
-Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
-Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
-Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
-Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
-Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
-Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
-Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
-Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
-Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
-Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
-Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
-Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
-Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
-Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
-Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
-Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
-Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
-Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
-Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
-Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
-Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
-Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
-Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
-Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
-Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
-Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
-Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
-Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
-Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
-Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
-Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
-Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
-Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
-Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
-Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
-Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
-Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
-Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
-Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
-Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
-Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
-Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
-Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
-Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
-Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
-Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
-Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
-Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
-Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
-Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
-Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
-Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
-Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
-Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
-Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
-Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-44671
-SELECT COUNT(*) FROM t1 WHERE a<>'?';
-COUNT(*)
-17735
-SELECT COUNT(*) FROM t1 WHERE a<>'' AND OCTET_LENGTH(a)=2;
-COUNT(*)
-8899
-SELECT COUNT(*) FROM t1 WHERE a<>'' AND OCTET_LENGTH(a)=3;
-COUNT(*)
-8836
-SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a) FROM t1 WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a)) ORDER BY code;
-code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
-8FA6E1 8FA6E1 8FA6F1 Ά Ά ά
-8FA6E2 8FA6E2 8FA6F2 Έ Έ έ
-8FA6E3 8FA6E3 8FA6F3 Ή Ή ή
-8FA6E4 8FA6E4 8FA6F4 Ί Ί ί
-8FA6E5 8FA6E5 8FA6F5 Ϊ Ϊ ϊ
-8FA6E7 8FA6E7 8FA6F7 Ό Ό ό
-8FA6E9 8FA6E9 8FA6F9 ÎŽ ÎŽ Ï
-8FA6EA 8FA6EA 8FA6FA Ϋ Ϋ ϋ
-8FA6EC 8FA6EC 8FA6FC Î Î ÏŽ
-8FA6F1 8FA6E1 8FA6F1 ά Ά ά
-8FA6F2 8FA6E2 8FA6F2 έ Έ έ
-8FA6F3 8FA6E3 8FA6F3 ή Ή ή
-8FA6F4 8FA6E4 8FA6F4 ί Ί ί
-8FA6F5 8FA6E5 8FA6F5 ϊ Ϊ ϊ
-8FA6F7 8FA6E7 8FA6F7 ό Ό ό
-8FA6F8 A6B2 8FA6F8 ς Σ ς
-8FA6F9 8FA6E9 8FA6F9 Ï ÎŽ Ï
-8FA6FA 8FA6EA 8FA6FA ϋ Ϋ ϋ
-8FA6FC 8FA6EC 8FA6FC ÏŽ Î ÏŽ
-8FA7C2 8FA7C2 8FA7F2 Ђ Ђ ђ
-8FA7C3 8FA7C3 8FA7F3 Ѓ Ѓ ѓ
-8FA7C4 8FA7C4 8FA7F4 Є Є є
-8FA7C5 8FA7C5 8FA7F5 Ð… Ð… Ñ•
-8FA7C6 8FA7C6 8FA7F6 І І і
-8FA7C7 8FA7C7 8FA7F7 Ї Ї ї
-8FA7C8 8FA7C8 8FA7F8 Ј Ј ј
-8FA7C9 8FA7C9 8FA7F9 Љ Љ љ
-8FA7CA 8FA7CA 8FA7FA Њ Њ њ
-8FA7CB 8FA7CB 8FA7FB Ћ Ћ ћ
-8FA7CC 8FA7CC 8FA7FC Ќ Ќ ќ
-8FA7CD 8FA7CD 8FA7FD ÐŽ ÐŽ Ñž
-8FA7CE 8FA7CE 8FA7FE Ð Ð ÑŸ
-8FA7F2 8FA7C2 8FA7F2 ђ Ђ ђ
-8FA7F3 8FA7C3 8FA7F3 ѓ Ѓ ѓ
-8FA7F4 8FA7C4 8FA7F4 є Є є
-8FA7F5 8FA7C5 8FA7F5 Ñ• Ð… Ñ•
-8FA7F6 8FA7C6 8FA7F6 і І і
-8FA7F7 8FA7C7 8FA7F7 ї Ї ї
-8FA7F8 8FA7C8 8FA7F8 ј Ј ј
-8FA7F9 8FA7C9 8FA7F9 љ Љ љ
-8FA7FA 8FA7CA 8FA7FA њ Њ њ
-8FA7FB 8FA7CB 8FA7FB ћ Ћ ћ
-8FA7FC 8FA7CC 8FA7FC ќ Ќ ќ
-8FA7FD 8FA7CD 8FA7FD Ñž ÐŽ Ñž
-8FA7FE 8FA7CE 8FA7FE ÑŸ Ð ÑŸ
-8FA9A1 8FA9A1 8FA9C1 Æ Æ æ
-8FA9A2 8FA9A2 8FA9C2 Ä Ä Ä‘
-8FA9A4 8FA9A4 8FA9C4 Ħ Ħ ħ
-8FA9A6 8FA9A6 8FA9C6 IJ IJ ij
-8FA9A8 8FA9A8 8FA9C8 Å Å Å‚
-8FA9A9 8FA9A9 8FA9C9 Ŀ Ŀ ŀ
-8FA9AB 8FA9AB 8FA9CB ÅŠ ÅŠ Å‹
-8FA9AC 8FA9AC 8FA9CC Ø Ø ø
-8FA9AD 8FA9AD 8FA9CD Å’ Å’ Å“
-8FA9AF 8FA9AF 8FA9CF Ŧ Ŧ ŧ
-8FA9B0 8FA9B0 8FA9D0 Þ Þ þ
-8FA9C1 8FA9A1 8FA9C1 æ Æ æ
-8FA9C2 8FA9A2 8FA9C2 Ä‘ Ä Ä‘
-8FA9C4 8FA9A4 8FA9C4 ħ Ħ ħ
-8FA9C5 49 8FA9C5 ı I ı
-8FA9C6 8FA9A6 8FA9C6 ij IJ ij
-8FA9C8 8FA9A8 8FA9C8 Å‚ Å Å‚
-8FA9C9 8FA9A9 8FA9C9 ŀ Ŀ ŀ
-8FA9CB 8FA9AB 8FA9CB Å‹ ÅŠ Å‹
-8FA9CC 8FA9AC 8FA9CC ø Ø ø
-8FA9CD 8FA9AD 8FA9CD Å“ Å’ Å“
-8FA9CF 8FA9AF 8FA9CF ŧ Ŧ ŧ
-8FA9D0 8FA9B0 8FA9D0 þ Þ þ
-8FAAA1 8FAAA1 8FABA1 à à á
-8FAAA2 8FAAA2 8FABA2 À À à
-8FAAA3 8FAAA3 8FABA3 Ä Ä ä
-8FAAA4 8FAAA4 8FABA4 Â Â â
-8FAAA5 8FAAA5 8FABA5 Ă Ă ă
-8FAAA6 8FAAA6 8FABA6 Ç Ç ÇŽ
-8FAAA7 8FAAA7 8FABA7 Ä€ Ä€ Ä
-8FAAA8 8FAAA8 8FABA8 Ä„ Ä„ Ä…
-8FAAA9 8FAAA9 8FABA9 Å Å å
-8FAAAA 8FAAAA 8FABAA Ã Ã ã
-8FAAAB 8FAAAB 8FABAB Ć Ć ć
-8FAAAC 8FAAAC 8FABAC Ĉ Ĉ ĉ
-8FAAAD 8FAAAD 8FABAD ÄŒ ÄŒ Ä
-8FAAAE 8FAAAE 8FABAE Ç Ç ç
-8FAAAF 8FAAAF 8FABAF ÄŠ ÄŠ Ä‹
-8FAAB0 8FAAB0 8FABB0 ÄŽ ÄŽ Ä
-8FAAB1 8FAAB1 8FABB1 É É é
-8FAAB2 8FAAB2 8FABB2 È È è
-8FAAB3 8FAAB3 8FABB3 Ë Ë ë
-8FAAB4 8FAAB4 8FABB4 Ê Ê ê
-8FAAB5 8FAAB5 8FABB5 Äš Äš Ä›
-8FAAB6 8FAAB6 8FABB6 Ä– Ä– Ä—
-8FAAB7 8FAAB7 8FABB7 Ä’ Ä’ Ä“
-8FAAB8 8FAAB8 8FABB8 Ę Ę ę
-8FAABA 8FAABA 8FABBA Äœ Äœ Ä
-8FAABB 8FAABB 8FABBB Äž Äž ÄŸ
-8FAABD 8FAABD 8FABBD Ä  Ä  Ä¡
-8FAABE 8FAABE 8FABBE Ĥ Ĥ ĥ
-8FAABF 8FAABF 8FABBF à à í
-8FAAC0 8FAAC0 8FABC0 Ì Ì ì
-8FAAC1 8FAAC1 8FABC1 à à ï
-8FAAC2 8FAAC2 8FABC2 Î Î î
-8FAAC3 8FAAC3 8FABC3 Ç Ç Ç
-8FAAC4 8FAAC4 69 Ä° Ä° i
-8FAAC5 8FAAC5 8FABC5 Ī Ī ī
-8FAAC6 8FAAC6 8FABC6 Į Į į
-8FAAC7 8FAAC7 8FABC7 Ĩ Ĩ ĩ
-8FAAC8 8FAAC8 8FABC8 Ĵ Ĵ ĵ
-8FAAC9 8FAAC9 8FABC9 Ķ Ķ ķ
-8FAACA 8FAACA 8FABCA Ĺ Ĺ ĺ
-8FAACB 8FAACB 8FABCB Ľ Ľ ľ
-8FAACC 8FAACC 8FABCC Ļ Ļ ļ
-8FAACD 8FAACD 8FABCD Ń Ń ń
-8FAACE 8FAACE 8FABCE Ň Ň ň
-8FAACF 8FAACF 8FABCF Ņ Ņ ņ
-8FAAD0 8FAAD0 8FABD0 Ñ Ñ ñ
-8FAAD1 8FAAD1 8FABD1 Ó Ó ó
-8FAAD2 8FAAD2 8FABD2 Ò Ò ò
-8FAAD3 8FAAD3 8FABD3 Ö Ö ö
-8FAAD4 8FAAD4 8FABD4 Ô Ô ô
-8FAAD5 8FAAD5 8FABD5 Ç‘ Ç‘ Ç’
-8FAAD6 8FAAD6 8FABD6 Å Å Å‘
-8FAAD7 8FAAD7 8FABD7 ÅŒ ÅŒ Å
-8FAAD8 8FAAD8 8FABD8 Õ Õ õ
-8FAAD9 8FAAD9 8FABD9 Å” Å” Å•
-8FAADA 8FAADA 8FABDA Ř Ř ř
-8FAADB 8FAADB 8FABDB Å– Å– Å—
-8FAADC 8FAADC 8FABDC Åš Åš Å›
-8FAADD 8FAADD 8FABDD Åœ Åœ Å
-8FAADE 8FAADE 8FABDE Å  Å  Å¡
-8FAADF 8FAADF 8FABDF Åž Åž ÅŸ
-8FAAE0 8FAAE0 8FABE0 Ť Ť ť
-8FAAE1 8FAAE1 8FABE1 Ţ Ţ ţ
-8FAAE2 8FAAE2 8FABE2 Ú Ú ú
-8FAAE3 8FAAE3 8FABE3 Ù Ù ù
-8FAAE4 8FAAE4 8FABE4 Ü Ü ü
-8FAAE5 8FAAE5 8FABE5 Û Û û
-8FAAE6 8FAAE6 8FABE6 Ŭ Ŭ ŭ
-8FAAE7 8FAAE7 8FABE7 Ç“ Ç“ Ç”
-8FAAE8 8FAAE8 8FABE8 Ű Ű ű
-8FAAE9 8FAAE9 8FABE9 Ū Ū ū
-8FAAEA 8FAAEA 8FABEA Ų Ų ų
-8FAAEB 8FAAEB 8FABEB Ů Ů ů
-8FAAEC 8FAAEC 8FABEC Ũ Ũ ũ
-8FAAED 8FAAED 8FABED Ǘ Ǘ ǘ
-8FAAEE 8FAAEE 8FABEE Ǜ Ǜ ǜ
-8FAAEF 8FAAEF 8FABEF Ç™ Ç™ Çš
-8FAAF0 8FAAF0 8FABF0 Ç• Ç• Ç–
-8FAAF1 8FAAF1 8FABF1 Ŵ Ŵ ŵ
-8FAAF2 8FAAF2 8FABF2 à à ý
-8FAAF3 8FAAF3 8FABF3 Ÿ Ÿ ÿ
-8FAAF4 8FAAF4 8FABF4 Ŷ Ŷ ŷ
-8FAAF5 8FAAF5 8FABF5 Ź Ź ź
-8FAAF6 8FAAF6 8FABF6 Ž Ž ž
-8FAAF7 8FAAF7 8FABF7 Ż Ż ż
-8FABA1 8FAAA1 8FABA1 á à á
-8FABA2 8FAAA2 8FABA2 à À à
-8FABA3 8FAAA3 8FABA3 ä Ä ä
-8FABA4 8FAAA4 8FABA4 â Â â
-8FABA5 8FAAA5 8FABA5 ă Ă ă
-8FABA6 8FAAA6 8FABA6 ÇŽ Ç ÇŽ
-8FABA7 8FAAA7 8FABA7 Ä Ä€ Ä
-8FABA8 8FAAA8 8FABA8 Ä… Ä„ Ä…
-8FABA9 8FAAA9 8FABA9 å Å å
-8FABAA 8FAAAA 8FABAA ã Ã ã
-8FABAB 8FAAAB 8FABAB ć Ć ć
-8FABAC 8FAAAC 8FABAC ĉ Ĉ ĉ
-8FABAD 8FAAAD 8FABAD Ä ÄŒ Ä
-8FABAE 8FAAAE 8FABAE ç Ç ç
-8FABAF 8FAAAF 8FABAF Ä‹ ÄŠ Ä‹
-8FABB0 8FAAB0 8FABB0 Ä ÄŽ Ä
-8FABB1 8FAAB1 8FABB1 é É é
-8FABB2 8FAAB2 8FABB2 è È è
-8FABB3 8FAAB3 8FABB3 ë Ë ë
-8FABB4 8FAAB4 8FABB4 ê Ê ê
-8FABB5 8FAAB5 8FABB5 Ä› Äš Ä›
-8FABB6 8FAAB6 8FABB6 Ä— Ä– Ä—
-8FABB7 8FAAB7 8FABB7 Ä“ Ä’ Ä“
-8FABB8 8FAAB8 8FABB8 ę Ę ę
-8FABBA 8FAABA 8FABBA Ä Äœ Ä
-8FABBB 8FAABB 8FABBB ÄŸ Äž ÄŸ
-8FABBD 8FAABD 8FABBD Ä¡ Ä  Ä¡
-8FABBE 8FAABE 8FABBE ĥ Ĥ ĥ
-8FABBF 8FAABF 8FABBF í à í
-8FABC0 8FAAC0 8FABC0 ì Ì ì
-8FABC1 8FAAC1 8FABC1 ï à ï
-8FABC2 8FAAC2 8FABC2 î Î î
-8FABC3 8FAAC3 8FABC3 Ç Ç Ç
-8FABC5 8FAAC5 8FABC5 ī Ī ī
-8FABC6 8FAAC6 8FABC6 į Į į
-8FABC7 8FAAC7 8FABC7 ĩ Ĩ ĩ
-8FABC8 8FAAC8 8FABC8 ĵ Ĵ ĵ
-8FABC9 8FAAC9 8FABC9 ķ Ķ ķ
-8FABCA 8FAACA 8FABCA ĺ Ĺ ĺ
-8FABCB 8FAACB 8FABCB ľ Ľ ľ
-8FABCC 8FAACC 8FABCC ļ Ļ ļ
-8FABCD 8FAACD 8FABCD ń Ń ń
-8FABCE 8FAACE 8FABCE ň Ň ň
-8FABCF 8FAACF 8FABCF ņ Ņ ņ
-8FABD0 8FAAD0 8FABD0 ñ Ñ ñ
-8FABD1 8FAAD1 8FABD1 ó Ó ó
-8FABD2 8FAAD2 8FABD2 ò Ò ò
-8FABD3 8FAAD3 8FABD3 ö Ö ö
-8FABD4 8FAAD4 8FABD4 ô Ô ô
-8FABD5 8FAAD5 8FABD5 Ç’ Ç‘ Ç’
-8FABD6 8FAAD6 8FABD6 Å‘ Å Å‘
-8FABD7 8FAAD7 8FABD7 Å ÅŒ Å
-8FABD8 8FAAD8 8FABD8 õ Õ õ
-8FABD9 8FAAD9 8FABD9 Å• Å” Å•
-8FABDA 8FAADA 8FABDA ř Ř ř
-8FABDB 8FAADB 8FABDB Å— Å– Å—
-8FABDC 8FAADC 8FABDC Å› Åš Å›
-8FABDD 8FAADD 8FABDD Å Åœ Å
-8FABDE 8FAADE 8FABDE Å¡ Å  Å¡
-8FABDF 8FAADF 8FABDF ÅŸ Åž ÅŸ
-8FABE0 8FAAE0 8FABE0 ť Ť ť
-8FABE1 8FAAE1 8FABE1 ţ Ţ ţ
-8FABE2 8FAAE2 8FABE2 ú Ú ú
-8FABE3 8FAAE3 8FABE3 ù Ù ù
-8FABE4 8FAAE4 8FABE4 ü Ü ü
-8FABE5 8FAAE5 8FABE5 û Û û
-8FABE6 8FAAE6 8FABE6 ŭ Ŭ ŭ
-8FABE7 8FAAE7 8FABE7 Ç” Ç“ Ç”
-8FABE8 8FAAE8 8FABE8 ű Ű ű
-8FABE9 8FAAE9 8FABE9 ū Ū ū
-8FABEA 8FAAEA 8FABEA ų Ų ų
-8FABEB 8FAAEB 8FABEB ů Ů ů
-8FABEC 8FAAEC 8FABEC ũ Ũ ũ
-8FABED 8FAAED 8FABED ǘ Ǘ ǘ
-8FABEE 8FAAEE 8FABEE ǜ Ǜ ǜ
-8FABEF 8FAAEF 8FABEF Çš Ç™ Çš
-8FABF0 8FAAF0 8FABF0 Ç– Ç• Ç–
-8FABF1 8FAAF1 8FABF1 ŵ Ŵ ŵ
-8FABF2 8FAAF2 8FABF2 ý à ý
-8FABF3 8FAAF3 8FABF3 ÿ Ÿ ÿ
-8FABF4 8FAAF4 8FABF4 ŷ Ŷ ŷ
-8FABF5 8FAAF5 8FABF5 ź Ź ź
-8FABF6 8FAAF6 8FABF6 ž Ž ž
-8FABF7 8FAAF7 8FABF7 ż Ż ż
-A2F2 A2F2 8FABA9 Å Å å
-A3C1 A3C1 A3E1 A A ï½
-A3C2 A3C2 A3E2 B B b
-A3C3 A3C3 A3E3 C C c
-A3C4 A3C4 A3E4 D D d
-A3C5 A3C5 A3E5 ï¼¥ ï¼¥ ï½…
-A3C6 A3C6 A3E6 F F f
-A3C7 A3C7 A3E7 G G g
-A3C8 A3C8 A3E8 H H h
-A3C9 A3C9 A3E9 I I i
-A3CA A3CA A3EA J J j
-A3CB A3CB A3EB K K k
-A3CC A3CC A3EC L L l
-A3CD A3CD A3ED ï¼­ ï¼­ ï½
-A3CE A3CE A3EE N N n
-A3CF A3CF A3EF O O ï½
-A3D0 A3D0 A3F0 ï¼° ï¼° ï½
-A3D1 A3D1 A3F1 Q Q q
-A3D2 A3D2 A3F2 ï¼² ï¼² ï½’
-A3D3 A3D3 A3F3 S S s
-A3D4 A3D4 A3F4 ï¼´ ï¼´ ï½”
-A3D5 A3D5 A3F5 U U u
-A3D6 A3D6 A3F6 V V v
-A3D7 A3D7 A3F7 ï¼· ï¼· ï½—
-A3D8 A3D8 A3F8 X X x
-A3D9 A3D9 A3F9 ï¼¹ ï¼¹ ï½™
-A3DA A3DA A3FA Z Z z
-A3E1 A3C1 A3E1 ï½ ï¼¡ ï½
-A3E2 A3C2 A3E2 b B b
-A3E3 A3C3 A3E3 c C c
-A3E4 A3C4 A3E4 d D d
-A3E5 A3C5 A3E5 ï½… ï¼¥ ï½…
-A3E6 A3C6 A3E6 f F f
-A3E7 A3C7 A3E7 g G g
-A3E8 A3C8 A3E8 h H h
-A3E9 A3C9 A3E9 i I i
-A3EA A3CA A3EA j J j
-A3EB A3CB A3EB k K k
-A3EC A3CC A3EC l L l
-A3ED A3CD A3ED ï½ ï¼­ ï½
-A3EE A3CE A3EE n N n
-A3EF A3CF A3EF ï½ ï¼¯ ï½
-A3F0 A3D0 A3F0 ï½ ï¼° ï½
-A3F1 A3D1 A3F1 q Q q
-A3F2 A3D2 A3F2 ï½’ ï¼² ï½’
-A3F3 A3D3 A3F3 s S s
-A3F4 A3D4 A3F4 ï½” ï¼´ ï½”
-A3F5 A3D5 A3F5 u U u
-A3F6 A3D6 A3F6 v V v
-A3F7 A3D7 A3F7 ï½— ï¼· ï½—
-A3F8 A3D8 A3F8 x X x
-A3F9 A3D9 A3F9 ï½™ ï¼¹ ï½™
-A3FA A3DA A3FA z Z z
-A6A1 A6A1 A6C1 Α Α α
-A6A2 A6A2 A6C2 Β Β β
-A6A3 A6A3 A6C3 Γ Γ γ
-A6A4 A6A4 A6C4 Δ Δ δ
-A6A5 A6A5 A6C5 Ε Ε ε
-A6A6 A6A6 A6C6 Ζ Ζ ζ
-A6A7 A6A7 A6C7 Η Η η
-A6A8 A6A8 A6C8 Θ Θ θ
-A6A9 A6A9 A6C9 Ι Ι ι
-A6AA A6AA A6CA Κ Κ κ
-A6AB A6AB A6CB Λ Λ λ
-A6AC A6AC A6CC Μ Μ μ
-A6AD A6AD A6CD ΠΠν
-A6AE A6AE A6CE Ξ Ξ ξ
-A6AF A6AF A6CF Ο Ο ο
-A6B0 A6B0 A6D0 Π Π π
-A6B1 A6B1 A6D1 Ρ Ρ Ï
-A6B2 A6B2 A6D2 Σ Σ σ
-A6B3 A6B3 A6D3 Τ Τ τ
-A6B4 A6B4 A6D4 Υ Υ υ
-A6B5 A6B5 A6D5 Φ Φ φ
-A6B6 A6B6 A6D6 Χ Χ χ
-A6B7 A6B7 A6D7 Ψ Ψ ψ
-A6B8 A6B8 A6D8 Ω Ω ω
-A6C1 A6A1 A6C1 α Α α
-A6C2 A6A2 A6C2 β Β β
-A6C3 A6A3 A6C3 γ Γ γ
-A6C4 A6A4 A6C4 δ Δ δ
-A6C5 A6A5 A6C5 ε Ε ε
-A6C6 A6A6 A6C6 ζ Ζ ζ
-A6C7 A6A7 A6C7 η Η η
-A6C8 A6A8 A6C8 θ Θ θ
-A6C9 A6A9 A6C9 ι Ι ι
-A6CA A6AA A6CA κ Κ κ
-A6CB A6AB A6CB λ Λ λ
-A6CC A6AC A6CC μ Μ μ
-A6CD A6AD A6CD ν Πν
-A6CE A6AE A6CE ξ Ξ ξ
-A6CF A6AF A6CF ο Ο ο
-A6D0 A6B0 A6D0 π Π π
-A6D1 A6B1 A6D1 Ï Î¡ Ï
-A6D2 A6B2 A6D2 σ Σ σ
-A6D3 A6B3 A6D3 τ Τ τ
-A6D4 A6B4 A6D4 υ Υ υ
-A6D5 A6B5 A6D5 φ Φ φ
-A6D6 A6B6 A6D6 χ Χ χ
-A6D7 A6B7 A6D7 ψ Ψ ψ
-A6D8 A6B8 A6D8 ω Ω ω
-A7A1 A7A1 A7D1 РРа
-A7A2 A7A2 A7D2 Б Б б
-A7A3 A7A3 A7D3 В В в
-A7A4 A7A4 A7D4 Г Г г
-A7A5 A7A5 A7D5 Д Д д
-A7A6 A7A6 A7D6 Е Е е
-A7A7 A7A7 A7D7 Ð Ð Ñ‘
-A7A8 A7A8 A7D8 Ж Ж ж
-A7A9 A7A9 A7D9 З З з
-A7AA A7AA A7DA И И и
-A7AB A7AB A7DB Й Й й
-A7AC A7AC A7DC К К к
-A7AD A7AD A7DD Л Л л
-A7AE A7AE A7DE М М м
-A7AF A7AF A7DF РРн
-A7B0 A7B0 A7E0 О О о
-A7B1 A7B1 A7E1 П П п
-A7B2 A7B2 A7E2 Р Р р
-A7B3 A7B3 A7E3 С С Ñ
-A7B4 A7B4 A7E4 Т Т т
-A7B5 A7B5 A7E5 У У у
-A7B6 A7B6 A7E6 Ф Ф ф
-A7B7 A7B7 A7E7 Х Х х
-A7B8 A7B8 A7E8 Ц Ц ц
-A7B9 A7B9 A7E9 Ч Ч ч
-A7BA A7BA A7EA Ш Ш ш
-A7BB A7BB A7EB Щ Щ щ
-A7BC A7BC A7EC Ъ Ъ ъ
-A7BD A7BD A7ED Ы Ы ы
-A7BE A7BE A7EE Ь Ь ь
-A7BF A7BF A7EF Э Э Ñ
-A7C0 A7C0 A7F0 Ю Ю ю
-A7C1 A7C1 A7F1 Я Я Ñ
-A7D1 A7A1 A7D1 а Ра
-A7D2 A7A2 A7D2 б Б б
-A7D3 A7A3 A7D3 в В в
-A7D4 A7A4 A7D4 г Г г
-A7D5 A7A5 A7D5 д Д д
-A7D6 A7A6 A7D6 е Е е
-A7D7 A7A7 A7D7 Ñ‘ Ð Ñ‘
-A7D8 A7A8 A7D8 ж Ж ж
-A7D9 A7A9 A7D9 з З з
-A7DA A7AA A7DA и И и
-A7DB A7AB A7DB й Й й
-A7DC A7AC A7DC к К к
-A7DD A7AD A7DD л Л л
-A7DE A7AE A7DE м М м
-A7DF A7AF A7DF н Рн
-A7E0 A7B0 A7E0 о О о
-A7E1 A7B1 A7E1 п П п
-A7E2 A7B2 A7E2 р Р р
-A7E3 A7B3 A7E3 Ñ Ð¡ Ñ
-A7E4 A7B4 A7E4 т Т т
-A7E5 A7B5 A7E5 у У у
-A7E6 A7B6 A7E6 ф Ф ф
-A7E7 A7B7 A7E7 х Х х
-A7E8 A7B8 A7E8 ц Ц ц
-A7E9 A7B9 A7E9 ч Ч ч
-A7EA A7BA A7EA ш Ш ш
-A7EB A7BB A7EB щ Щ щ
-A7EC A7BC A7EC ъ Ъ ъ
-A7ED A7BD A7ED ы Ы ы
-A7EE A7BE A7EE ь Ь ь
-A7EF A7BF A7EF Ñ Ð­ Ñ
-A7F0 A7C0 A7F0 ю Ю ю
-A7F1 A7C1 A7F1 Ñ Ð¯ Ñ
-SELECT * FROM t1
-WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-8FAABC Ģ
-Warnings:
-Warning 1977 Cannot convert 'ujis' character 0xA2AF to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2AF to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B0 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B0 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B1 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B1 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D1 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D1 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2DA to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2DA to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2DB to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2DB to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2EB to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2EB to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2EC to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2EC to 'utf8'
-SELECT * FROM t1
-WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
-HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
-code a
-8FA9C3 ð
-8FABB9 ǵ
-Warnings:
-Warning 1977 Cannot convert 'ujis' character 0xA2AF to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2AF to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B0 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B0 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B1 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B1 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D1 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D1 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2DA to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2DA to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2DB to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2DB to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2EB to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2EB to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2EC to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2EC to 'utf8'
-#
-# WL#3090 Japanese Character Set adjustments
-# Test sjis->Unicode conversion
-#
-SELECT HEX(a), HEX(CONVERT(a USING utf8)) as b FROM t1
-WHERE a<>'' HAVING b<>'3F' ORDER BY code;
-HEX(a) b
-8EA1 EFBDA1
-8EA2 EFBDA2
-8EA3 EFBDA3
-8EA4 EFBDA4
-8EA5 EFBDA5
-8EA6 EFBDA6
-8EA7 EFBDA7
-8EA8 EFBDA8
-8EA9 EFBDA9
-8EAA EFBDAA
-8EAB EFBDAB
-8EAC EFBDAC
-8EAD EFBDAD
-8EAE EFBDAE
-8EAF EFBDAF
-8EB0 EFBDB0
-8EB1 EFBDB1
-8EB2 EFBDB2
-8EB3 EFBDB3
-8EB4 EFBDB4
-8EB5 EFBDB5
-8EB6 EFBDB6
-8EB7 EFBDB7
-8EB8 EFBDB8
-8EB9 EFBDB9
-8EBA EFBDBA
-8EBB EFBDBB
-8EBC EFBDBC
-8EBD EFBDBD
-8EBE EFBDBE
-8EBF EFBDBF
-8EC0 EFBE80
-8EC1 EFBE81
-8EC2 EFBE82
-8EC3 EFBE83
-8EC4 EFBE84
-8EC5 EFBE85
-8EC6 EFBE86
-8EC7 EFBE87
-8EC8 EFBE88
-8EC9 EFBE89
-8ECA EFBE8A
-8ECB EFBE8B
-8ECC EFBE8C
-8ECD EFBE8D
-8ECE EFBE8E
-8ECF EFBE8F
-8ED0 EFBE90
-8ED1 EFBE91
-8ED2 EFBE92
-8ED3 EFBE93
-8ED4 EFBE94
-8ED5 EFBE95
-8ED6 EFBE96
-8ED7 EFBE97
-8ED8 EFBE98
-8ED9 EFBE99
-8EDA EFBE9A
-8EDB EFBE9B
-8EDC EFBE9C
-8EDD EFBE9D
-8EDE EFBE9E
-8EDF EFBE9F
-8FA2AF CB98
-8FA2B0 CB87
-8FA2B1 C2B8
-8FA2B2 CB99
-8FA2B3 CB9D
-8FA2B4 C2AF
-8FA2B5 CB9B
-8FA2B6 CB9A
-8FA2B7 7E
-8FA2B8 CE84
-8FA2B9 CE85
-8FA2C2 C2A1
-8FA2C3 C2A6
-8FA2C4 C2BF
-8FA2EB C2BA
-8FA2EC C2AA
-8FA2ED C2A9
-8FA2EE C2AE
-8FA2EF E284A2
-8FA2F0 C2A4
-8FA2F1 E28496
-8FA6E1 CE86
-8FA6E2 CE88
-8FA6E3 CE89
-8FA6E4 CE8A
-8FA6E5 CEAA
-8FA6E7 CE8C
-8FA6E9 CE8E
-8FA6EA CEAB
-8FA6EC CE8F
-8FA6F1 CEAC
-8FA6F2 CEAD
-8FA6F3 CEAE
-8FA6F4 CEAF
-8FA6F5 CF8A
-8FA6F6 CE90
-8FA6F7 CF8C
-8FA6F8 CF82
-8FA6F9 CF8D
-8FA6FA CF8B
-8FA6FB CEB0
-8FA6FC CF8E
-8FA7C2 D082
-8FA7C3 D083
-8FA7C4 D084
-8FA7C5 D085
-8FA7C6 D086
-8FA7C7 D087
-8FA7C8 D088
-8FA7C9 D089
-8FA7CA D08A
-8FA7CB D08B
-8FA7CC D08C
-8FA7CD D08E
-8FA7CE D08F
-8FA7F2 D192
-8FA7F3 D193
-8FA7F4 D194
-8FA7F5 D195
-8FA7F6 D196
-8FA7F7 D197
-8FA7F8 D198
-8FA7F9 D199
-8FA7FA D19A
-8FA7FB D19B
-8FA7FC D19C
-8FA7FD D19E
-8FA7FE D19F
-8FA9A1 C386
-8FA9A2 C490
-8FA9A4 C4A6
-8FA9A6 C4B2
-8FA9A8 C581
-8FA9A9 C4BF
-8FA9AB C58A
-8FA9AC C398
-8FA9AD C592
-8FA9AF C5A6
-8FA9B0 C39E
-8FA9C1 C3A6
-8FA9C2 C491
-8FA9C3 C3B0
-8FA9C4 C4A7
-8FA9C5 C4B1
-8FA9C6 C4B3
-8FA9C7 C4B8
-8FA9C8 C582
-8FA9C9 C580
-8FA9CA C589
-8FA9CB C58B
-8FA9CC C3B8
-8FA9CD C593
-8FA9CE C39F
-8FA9CF C5A7
-8FA9D0 C3BE
-8FAAA1 C381
-8FAAA2 C380
-8FAAA3 C384
-8FAAA4 C382
-8FAAA5 C482
-8FAAA6 C78D
-8FAAA7 C480
-8FAAA8 C484
-8FAAA9 C385
-8FAAAA C383
-8FAAAB C486
-8FAAAC C488
-8FAAAD C48C
-8FAAAE C387
-8FAAAF C48A
-8FAAB0 C48E
-8FAAB1 C389
-8FAAB2 C388
-8FAAB3 C38B
-8FAAB4 C38A
-8FAAB5 C49A
-8FAAB6 C496
-8FAAB7 C492
-8FAAB8 C498
-8FAABA C49C
-8FAABB C49E
-8FAABC C4A2
-8FAABD C4A0
-8FAABE C4A4
-8FAABF C38D
-8FAAC0 C38C
-8FAAC1 C38F
-8FAAC2 C38E
-8FAAC3 C78F
-8FAAC4 C4B0
-8FAAC5 C4AA
-8FAAC6 C4AE
-8FAAC7 C4A8
-8FAAC8 C4B4
-8FAAC9 C4B6
-8FAACA C4B9
-8FAACB C4BD
-8FAACC C4BB
-8FAACD C583
-8FAACE C587
-8FAACF C585
-8FAAD0 C391
-8FAAD1 C393
-8FAAD2 C392
-8FAAD3 C396
-8FAAD4 C394
-8FAAD5 C791
-8FAAD6 C590
-8FAAD7 C58C
-8FAAD8 C395
-8FAAD9 C594
-8FAADA C598
-8FAADB C596
-8FAADC C59A
-8FAADD C59C
-8FAADE C5A0
-8FAADF C59E
-8FAAE0 C5A4
-8FAAE1 C5A2
-8FAAE2 C39A
-8FAAE3 C399
-8FAAE4 C39C
-8FAAE5 C39B
-8FAAE6 C5AC
-8FAAE7 C793
-8FAAE8 C5B0
-8FAAE9 C5AA
-8FAAEA C5B2
-8FAAEB C5AE
-8FAAEC C5A8
-8FAAED C797
-8FAAEE C79B
-8FAAEF C799
-8FAAF0 C795
-8FAAF1 C5B4
-8FAAF2 C39D
-8FAAF3 C5B8
-8FAAF4 C5B6
-8FAAF5 C5B9
-8FAAF6 C5BD
-8FAAF7 C5BB
-8FABA1 C3A1
-8FABA2 C3A0
-8FABA3 C3A4
-8FABA4 C3A2
-8FABA5 C483
-8FABA6 C78E
-8FABA7 C481
-8FABA8 C485
-8FABA9 C3A5
-8FABAA C3A3
-8FABAB C487
-8FABAC C489
-8FABAD C48D
-8FABAE C3A7
-8FABAF C48B
-8FABB0 C48F
-8FABB1 C3A9
-8FABB2 C3A8
-8FABB3 C3AB
-8FABB4 C3AA
-8FABB5 C49B
-8FABB6 C497
-8FABB7 C493
-8FABB8 C499
-8FABB9 C7B5
-8FABBA C49D
-8FABBB C49F
-8FABBD C4A1
-8FABBE C4A5
-8FABBF C3AD
-8FABC0 C3AC
-8FABC1 C3AF
-8FABC2 C3AE
-8FABC3 C790
-8FABC5 C4AB
-8FABC6 C4AF
-8FABC7 C4A9
-8FABC8 C4B5
-8FABC9 C4B7
-8FABCA C4BA
-8FABCB C4BE
-8FABCC C4BC
-8FABCD C584
-8FABCE C588
-8FABCF C586
-8FABD0 C3B1
-8FABD1 C3B3
-8FABD2 C3B2
-8FABD3 C3B6
-8FABD4 C3B4
-8FABD5 C792
-8FABD6 C591
-8FABD7 C58D
-8FABD8 C3B5
-8FABD9 C595
-8FABDA C599
-8FABDB C597
-8FABDC C59B
-8FABDD C59D
-8FABDE C5A1
-8FABDF C59F
-8FABE0 C5A5
-8FABE1 C5A3
-8FABE2 C3BA
-8FABE3 C3B9
-8FABE4 C3BC
-8FABE5 C3BB
-8FABE6 C5AD
-8FABE7 C794
-8FABE8 C5B1
-8FABE9 C5AB
-8FABEA C5B3
-8FABEB C5AF
-8FABEC C5A9
-8FABED C798
-8FABEE C79C
-8FABEF C79A
-8FABF0 C796
-8FABF1 C5B5
-8FABF2 C3BD
-8FABF3 C3BF
-8FABF4 C5B7
-8FABF5 C5BA
-8FABF6 C5BE
-8FABF7 C5BC
-8FB0A1 E4B882
-8FB0A2 E4B884
-8FB0A3 E4B885
-8FB0A4 E4B88C
-8FB0A5 E4B892
-8FB0A6 E4B89F
-8FB0A7 E4B8A3
-8FB0A8 E4B8A4
-8FB0A9 E4B8A8
-8FB0AA E4B8AB
-8FB0AB E4B8AE
-8FB0AC E4B8AF
-8FB0AD E4B8B0
-8FB0AE E4B8B5
-8FB0AF E4B980
-8FB0B0 E4B981
-8FB0B1 E4B984
-8FB0B2 E4B987
-8FB0B3 E4B991
-8FB0B4 E4B99A
-8FB0B5 E4B99C
-8FB0B6 E4B9A3
-8FB0B7 E4B9A8
-8FB0B8 E4B9A9
-8FB0B9 E4B9B4
-8FB0BA E4B9B5
-8FB0BB E4B9B9
-8FB0BC E4B9BF
-8FB0BD E4BA8D
-8FB0BE E4BA96
-8FB0BF E4BA97
-8FB0C0 E4BA9D
-8FB0C1 E4BAAF
-8FB0C2 E4BAB9
-8FB0C3 E4BB83
-8FB0C4 E4BB90
-8FB0C5 E4BB9A
-8FB0C6 E4BB9B
-8FB0C7 E4BBA0
-8FB0C8 E4BBA1
-8FB0C9 E4BBA2
-8FB0CA E4BBA8
-8FB0CB E4BBAF
-8FB0CC E4BBB1
-8FB0CD E4BBB3
-8FB0CE E4BBB5
-8FB0CF E4BBBD
-8FB0D0 E4BBBE
-8FB0D1 E4BBBF
-8FB0D2 E4BC80
-8FB0D3 E4BC82
-8FB0D4 E4BC83
-8FB0D5 E4BC88
-8FB0D6 E4BC8B
-8FB0D7 E4BC8C
-8FB0D8 E4BC92
-8FB0D9 E4BC95
-8FB0DA E4BC96
-8FB0DB E4BC97
-8FB0DC E4BC99
-8FB0DD E4BCAE
-8FB0DE E4BCB1
-8FB0DF E4BDA0
-8FB0E0 E4BCB3
-8FB0E1 E4BCB5
-8FB0E2 E4BCB7
-8FB0E3 E4BCB9
-8FB0E4 E4BCBB
-8FB0E5 E4BCBE
-8FB0E6 E4BD80
-8FB0E7 E4BD82
-8FB0E8 E4BD88
-8FB0E9 E4BD89
-8FB0EA E4BD8B
-8FB0EB E4BD8C
-8FB0EC E4BD92
-8FB0ED E4BD94
-8FB0EE E4BD96
-8FB0EF E4BD98
-8FB0F0 E4BD9F
-8FB0F1 E4BDA3
-8FB0F2 E4BDAA
-8FB0F3 E4BDAC
-8FB0F4 E4BDAE
-8FB0F5 E4BDB1
-8FB0F6 E4BDB7
-8FB0F7 E4BDB8
-8FB0F8 E4BDB9
-8FB0F9 E4BDBA
-8FB0FA E4BDBD
-8FB0FB E4BDBE
-8FB0FC E4BE81
-8FB0FD E4BE82
-8FB0FE E4BE84
-8FB1A1 E4BE85
-8FB1A2 E4BE89
-8FB1A3 E4BE8A
-8FB1A4 E4BE8C
-8FB1A5 E4BE8E
-8FB1A6 E4BE90
-8FB1A7 E4BE92
-8FB1A8 E4BE93
-8FB1A9 E4BE94
-8FB1AA E4BE97
-8FB1AB E4BE99
-8FB1AC E4BE9A
-8FB1AD E4BE9E
-8FB1AE E4BE9F
-8FB1AF E4BEB2
-8FB1B0 E4BEB7
-8FB1B1 E4BEB9
-8FB1B2 E4BEBB
-8FB1B3 E4BEBC
-8FB1B4 E4BEBD
-8FB1B5 E4BEBE
-8FB1B6 E4BF80
-8FB1B7 E4BF81
-8FB1B8 E4BF85
-8FB1B9 E4BF86
-8FB1BA E4BF88
-8FB1BB E4BF89
-8FB1BC E4BF8B
-8FB1BD E4BF8C
-8FB1BE E4BF8D
-8FB1BF E4BF8F
-8FB1C0 E4BF92
-8FB1C1 E4BF9C
-8FB1C2 E4BFA0
-8FB1C3 E4BFA2
-8FB1C4 E4BFB0
-8FB1C5 E4BFB2
-8FB1C6 E4BFBC
-8FB1C7 E4BFBD
-8FB1C8 E4BFBF
-8FB1C9 E58080
-8FB1CA E58081
-8FB1CB E58084
-8FB1CC E58087
-8FB1CD E5808A
-8FB1CE E5808C
-8FB1CF E5808E
-8FB1D0 E58090
-8FB1D1 E58093
-8FB1D2 E58097
-8FB1D3 E58098
-8FB1D4 E5809B
-8FB1D5 E5809C
-8FB1D6 E5809D
-8FB1D7 E5809E
-8FB1D8 E580A2
-8FB1D9 E580A7
-8FB1DA E580AE
-8FB1DB E580B0
-8FB1DC E580B2
-8FB1DD E580B3
-8FB1DE E580B5
-8FB1DF E58180
-8FB1E0 E58181
-8FB1E1 E58182
-8FB1E2 E58185
-8FB1E3 E58186
-8FB1E4 E5818A
-8FB1E5 E5818C
-8FB1E6 E5818E
-8FB1E7 E58191
-8FB1E8 E58192
-8FB1E9 E58193
-8FB1EA E58197
-8FB1EB E58199
-8FB1EC E5819F
-8FB1ED E581A0
-8FB1EE E581A2
-8FB1EF E581A3
-8FB1F0 E581A6
-8FB1F1 E581A7
-8FB1F2 E581AA
-8FB1F3 E581AD
-8FB1F4 E581B0
-8FB1F5 E581B1
-8FB1F6 E580BB
-8FB1F7 E58281
-8FB1F8 E58283
-8FB1F9 E58284
-8FB1FA E58286
-8FB1FB E5828A
-8FB1FC E5828E
-8FB1FD E5828F
-8FB1FE E58290
-8FB2A1 E58292
-8FB2A2 E58293
-8FB2A3 E58294
-8FB2A4 E58296
-8FB2A5 E5829B
-8FB2A6 E5829C
-8FB2A7 E5829E
-8FB2A8 E5829F
-8FB2A9 E582A0
-8FB2AA E582A1
-8FB2AB E582A2
-8FB2AC E582AA
-8FB2AD E582AF
-8FB2AE E582B0
-8FB2AF E582B9
-8FB2B0 E582BA
-8FB2B1 E582BD
-8FB2B2 E58380
-8FB2B3 E58383
-8FB2B4 E58384
-8FB2B5 E58387
-8FB2B6 E5838C
-8FB2B7 E5838E
-8FB2B8 E58390
-8FB2B9 E58393
-8FB2BA E58394
-8FB2BB E58398
-8FB2BC E5839C
-8FB2BD E5839D
-8FB2BE E5839F
-8FB2BF E583A2
-8FB2C0 E583A4
-8FB2C1 E583A6
-8FB2C2 E583A8
-8FB2C3 E583A9
-8FB2C4 E583AF
-8FB2C5 E583B1
-8FB2C6 E583B6
-8FB2C7 E583BA
-8FB2C8 E583BE
-8FB2C9 E58483
-8FB2CA E58486
-8FB2CB E58487
-8FB2CC E58488
-8FB2CD E5848B
-8FB2CE E5848C
-8FB2CF E5848D
-8FB2D0 E5848E
-8FB2D1 E583B2
-8FB2D2 E58490
-8FB2D3 E58497
-8FB2D4 E58499
-8FB2D5 E5849B
-8FB2D6 E5849C
-8FB2D7 E5849D
-8FB2D8 E5849E
-8FB2D9 E584A3
-8FB2DA E584A7
-8FB2DB E584A8
-8FB2DC E584AC
-8FB2DD E584AD
-8FB2DE E584AF
-8FB2DF E584B1
-8FB2E0 E584B3
-8FB2E1 E584B4
-8FB2E2 E584B5
-8FB2E3 E584B8
-8FB2E4 E584B9
-8FB2E5 E58582
-8FB2E6 E5858A
-8FB2E7 E5858F
-8FB2E8 E58593
-8FB2E9 E58595
-8FB2EA E58597
-8FB2EB E58598
-8FB2EC E5859F
-8FB2ED E585A4
-8FB2EE E585A6
-8FB2EF E585BE
-8FB2F0 E58683
-8FB2F1 E58684
-8FB2F2 E5868B
-8FB2F3 E5868E
-8FB2F4 E58698
-8FB2F5 E5869D
-8FB2F6 E586A1
-8FB2F7 E586A3
-8FB2F8 E586AD
-8FB2F9 E586B8
-8FB2FA E586BA
-8FB2FB E586BC
-8FB2FC E586BE
-8FB2FD E586BF
-8FB2FE E58782
-8FB3A1 E58788
-8FB3A2 E5878F
-8FB3A3 E58791
-8FB3A4 E58792
-8FB3A5 E58793
-8FB3A6 E58795
-8FB3A7 E58798
-8FB3A8 E5879E
-8FB3A9 E587A2
-8FB3AA E587A5
-8FB3AB E587AE
-8FB3AC E587B2
-8FB3AD E587B3
-8FB3AE E587B4
-8FB3AF E587B7
-8FB3B0 E58881
-8FB3B1 E58882
-8FB3B2 E58885
-8FB3B3 E58892
-8FB3B4 E58893
-8FB3B5 E58895
-8FB3B6 E58896
-8FB3B7 E58898
-8FB3B8 E588A2
-8FB3B9 E588A8
-8FB3BA E588B1
-8FB3BB E588B2
-8FB3BC E588B5
-8FB3BD E588BC
-8FB3BE E58985
-8FB3BF E58989
-8FB3C0 E58995
-8FB3C1 E58997
-8FB3C2 E58998
-8FB3C3 E5899A
-8FB3C4 E5899C
-8FB3C5 E5899F
-8FB3C6 E589A0
-8FB3C7 E589A1
-8FB3C8 E589A6
-8FB3C9 E589AE
-8FB3CA E589B7
-8FB3CB E589B8
-8FB3CC E589B9
-8FB3CD E58A80
-8FB3CE E58A82
-8FB3CF E58A85
-8FB3D0 E58A8A
-8FB3D1 E58A8C
-8FB3D2 E58A93
-8FB3D3 E58A95
-8FB3D4 E58A96
-8FB3D5 E58A97
-8FB3D6 E58A98
-8FB3D7 E58A9A
-8FB3D8 E58A9C
-8FB3D9 E58AA4
-8FB3DA E58AA5
-8FB3DB E58AA6
-8FB3DC E58AA7
-8FB3DD E58AAF
-8FB3DE E58AB0
-8FB3DF E58AB6
-8FB3E0 E58AB7
-8FB3E1 E58AB8
-8FB3E2 E58ABA
-8FB3E3 E58ABB
-8FB3E4 E58ABD
-8FB3E5 E58B80
-8FB3E6 E58B84
-8FB3E7 E58B86
-8FB3E8 E58B88
-8FB3E9 E58B8C
-8FB3EA E58B8F
-8FB3EB E58B91
-8FB3EC E58B94
-8FB3ED E58B96
-8FB3EE E58B9B
-8FB3EF E58B9C
-8FB3F0 E58BA1
-8FB3F1 E58BA5
-8FB3F2 E58BA8
-8FB3F3 E58BA9
-8FB3F4 E58BAA
-8FB3F5 E58BAC
-8FB3F6 E58BB0
-8FB3F7 E58BB1
-8FB3F8 E58BB4
-8FB3F9 E58BB6
-8FB3FA E58BB7
-8FB3FB E58C80
-8FB3FC E58C83
-8FB3FD E58C8A
-8FB3FE E58C8B
-8FB4A1 E58C8C
-8FB4A2 E58C91
-8FB4A3 E58C93
-8FB4A4 E58C98
-8FB4A5 E58C9B
-8FB4A6 E58C9C
-8FB4A7 E58C9E
-8FB4A8 E58C9F
-8FB4A9 E58CA5
-8FB4AA E58CA7
-8FB4AB E58CA8
-8FB4AC E58CA9
-8FB4AD E58CAB
-8FB4AE E58CAC
-8FB4AF E58CAD
-8FB4B0 E58CB0
-8FB4B1 E58CB2
-8FB4B2 E58CB5
-8FB4B3 E58CBC
-8FB4B4 E58CBD
-8FB4B5 E58CBE
-8FB4B6 E58D82
-8FB4B7 E58D8C
-8FB4B8 E58D8B
-8FB4B9 E58D99
-8FB4BA E58D9B
-8FB4BB E58DA1
-8FB4BC E58DA3
-8FB4BD E58DA5
-8FB4BE E58DAC
-8FB4BF E58DAD
-8FB4C0 E58DB2
-8FB4C1 E58DB9
-8FB4C2 E58DBE
-8FB4C3 E58E83
-8FB4C4 E58E87
-8FB4C5 E58E88
-8FB4C6 E58E8E
-8FB4C7 E58E93
-8FB4C8 E58E94
-8FB4C9 E58E99
-8FB4CA E58E9D
-8FB4CB E58EA1
-8FB4CC E58EA4
-8FB4CD E58EAA
-8FB4CE E58EAB
-8FB4CF E58EAF
-8FB4D0 E58EB2
-8FB4D1 E58EB4
-8FB4D2 E58EB5
-8FB4D3 E58EB7
-8FB4D4 E58EB8
-8FB4D5 E58EBA
-8FB4D6 E58EBD
-8FB4D7 E58F80
-8FB4D8 E58F85
-8FB4D9 E58F8F
-8FB4DA E58F92
-8FB4DB E58F93
-8FB4DC E58F95
-8FB4DD E58F9A
-8FB4DE E58F9D
-8FB4DF E58F9E
-8FB4E0 E58FA0
-8FB4E1 E58FA6
-8FB4E2 E58FA7
-8FB4E3 E58FB5
-8FB4E4 E59082
-8FB4E5 E59093
-8FB4E6 E5909A
-8FB4E7 E590A1
-8FB4E8 E590A7
-8FB4E9 E590A8
-8FB4EA E590AA
-8FB4EB E590AF
-8FB4EC E590B1
-8FB4ED E590B4
-8FB4EE E590B5
-8FB4EF E59183
-8FB4F0 E59184
-8FB4F1 E59187
-8FB4F2 E5918D
-8FB4F3 E5918F
-8FB4F4 E5919E
-8FB4F5 E591A2
-8FB4F6 E591A4
-8FB4F7 E591A6
-8FB4F8 E591A7
-8FB4F9 E591A9
-8FB4FA E591AB
-8FB4FB E591AD
-8FB4FC E591AE
-8FB4FD E591B4
-8FB4FE E591BF
-8FB5A1 E59281
-8FB5A2 E59283
-8FB5A3 E59285
-8FB5A4 E59288
-8FB5A5 E59289
-8FB5A6 E5928D
-8FB5A7 E59291
-8FB5A8 E59295
-8FB5A9 E59296
-8FB5AA E5929C
-8FB5AB E5929F
-8FB5AC E592A1
-8FB5AD E592A6
-8FB5AE E592A7
-8FB5AF E592A9
-8FB5B0 E592AA
-8FB5B1 E592AD
-8FB5B2 E592AE
-8FB5B3 E592B1
-8FB5B4 E592B7
-8FB5B5 E592B9
-8FB5B6 E592BA
-8FB5B7 E592BB
-8FB5B8 E592BF
-8FB5B9 E59386
-8FB5BA E5938A
-8FB5BB E5938D
-8FB5BC E5938E
-8FB5BD E593A0
-8FB5BE E593AA
-8FB5BF E593AC
-8FB5C0 E593AF
-8FB5C1 E593B6
-8FB5C2 E593BC
-8FB5C3 E593BE
-8FB5C4 E593BF
-8FB5C5 E59480
-8FB5C6 E59481
-8FB5C7 E59485
-8FB5C8 E59488
-8FB5C9 E59489
-8FB5CA E5948C
-8FB5CB E5948D
-8FB5CC E5948E
-8FB5CD E59495
-8FB5CE E594AA
-8FB5CF E594AB
-8FB5D0 E594B2
-8FB5D1 E594B5
-8FB5D2 E594B6
-8FB5D3 E594BB
-8FB5D4 E594BC
-8FB5D5 E594BD
-8FB5D6 E59581
-8FB5D7 E59587
-8FB5D8 E59589
-8FB5D9 E5958A
-8FB5DA E5958D
-8FB5DB E59590
-8FB5DC E59591
-8FB5DD E59598
-8FB5DE E5959A
-8FB5DF E5959B
-8FB5E0 E5959E
-8FB5E1 E595A0
-8FB5E2 E595A1
-8FB5E3 E595A4
-8FB5E4 E595A6
-8FB5E5 E595BF
-8FB5E6 E59681
-8FB5E7 E59682
-8FB5E8 E59686
-8FB5E9 E59688
-8FB5EA E5968E
-8FB5EB E5968F
-8FB5EC E59691
-8FB5ED E59692
-8FB5EE E59693
-8FB5EF E59694
-8FB5F0 E59697
-8FB5F1 E596A3
-8FB5F2 E596A4
-8FB5F3 E596AD
-8FB5F4 E596B2
-8FB5F5 E596BF
-8FB5F6 E59781
-8FB5F7 E59783
-8FB5F8 E59786
-8FB5F9 E59789
-8FB5FA E5978B
-8FB5FB E5978C
-8FB5FC E5978E
-8FB5FD E59791
-8FB5FE E59792
-8FB6A1 E59793
-8FB6A2 E59797
-8FB6A3 E59798
-8FB6A4 E5979B
-8FB6A5 E5979E
-8FB6A6 E597A2
-8FB6A7 E597A9
-8FB6A8 E597B6
-8FB6A9 E597BF
-8FB6AA E59885
-8FB6AB E59888
-8FB6AC E5988A
-8FB6AD E5988D
-8FB6AE E5988E
-8FB6AF E5988F
-8FB6B0 E59890
-8FB6B1 E59891
-8FB6B2 E59892
-8FB6B3 E59899
-8FB6B4 E598AC
-8FB6B5 E598B0
-8FB6B6 E598B3
-8FB6B7 E598B5
-8FB6B8 E598B7
-8FB6B9 E598B9
-8FB6BA E598BB
-8FB6BB E598BC
-8FB6BC E598BD
-8FB6BD E598BF
-8FB6BE E59980
-8FB6BF E59981
-8FB6C0 E59983
-8FB6C1 E59984
-8FB6C2 E59986
-8FB6C3 E59989
-8FB6C4 E5998B
-8FB6C5 E5998D
-8FB6C6 E5998F
-8FB6C7 E59994
-8FB6C8 E5999E
-8FB6C9 E599A0
-8FB6CA E599A1
-8FB6CB E599A2
-8FB6CC E599A3
-8FB6CD E599A6
-8FB6CE E599A9
-8FB6CF E599AD
-8FB6D0 E599AF
-8FB6D1 E599B1
-8FB6D2 E599B2
-8FB6D3 E599B5
-8FB6D4 E59A84
-8FB6D5 E59A85
-8FB6D6 E59A88
-8FB6D7 E59A8B
-8FB6D8 E59A8C
-8FB6D9 E59A95
-8FB6DA E59A99
-8FB6DB E59A9A
-8FB6DC E59A9D
-8FB6DD E59A9E
-8FB6DE E59A9F
-8FB6DF E59AA6
-8FB6E0 E59AA7
-8FB6E1 E59AA8
-8FB6E2 E59AA9
-8FB6E3 E59AAB
-8FB6E4 E59AAC
-8FB6E5 E59AAD
-8FB6E6 E59AB1
-8FB6E7 E59AB3
-8FB6E8 E59AB7
-8FB6E9 E59ABE
-8FB6EA E59B85
-8FB6EB E59B89
-8FB6EC E59B8A
-8FB6ED E59B8B
-8FB6EE E59B8F
-8FB6EF E59B90
-8FB6F0 E59B8C
-8FB6F1 E59B8D
-8FB6F2 E59B99
-8FB6F3 E59B9C
-8FB6F4 E59B9D
-8FB6F5 E59B9F
-8FB6F6 E59BA1
-8FB6F7 E59BA4
-8FB6F8 E59BA5
-8FB6F9 E59BA6
-8FB6FA E59BA7
-8FB6FB E59BA8
-8FB6FC E59BB1
-8FB6FD E59BAB
-8FB6FE E59BAD
-8FB7A1 E59BB6
-8FB7A2 E59BB7
-8FB7A3 E59C81
-8FB7A4 E59C82
-8FB7A5 E59C87
-8FB7A6 E59C8A
-8FB7A7 E59C8C
-8FB7A8 E59C91
-8FB7A9 E59C95
-8FB7AA E59C9A
-8FB7AB E59C9B
-8FB7AC E59C9D
-8FB7AD E59CA0
-8FB7AE E59CA2
-8FB7AF E59CA3
-8FB7B0 E59CA4
-8FB7B1 E59CA5
-8FB7B2 E59CA9
-8FB7B3 E59CAA
-8FB7B4 E59CAC
-8FB7B5 E59CAE
-8FB7B6 E59CAF
-8FB7B7 E59CB3
-8FB7B8 E59CB4
-8FB7B9 E59CBD
-8FB7BA E59CBE
-8FB7BB E59CBF
-8FB7BC E59D85
-8FB7BD E59D86
-8FB7BE E59D8C
-8FB7BF E59D8D
-8FB7C0 E59D92
-8FB7C1 E59DA2
-8FB7C2 E59DA5
-8FB7C3 E59DA7
-8FB7C4 E59DA8
-8FB7C5 E59DAB
-8FB7C6 E59DAD
-8FB7C7 E59DAE
-8FB7C8 E59DAF
-8FB7C9 E59DB0
-8FB7CA E59DB1
-8FB7CB E59DB3
-8FB7CC E59DB4
-8FB7CD E59DB5
-8FB7CE E59DB7
-8FB7CF E59DB9
-8FB7D0 E59DBA
-8FB7D1 E59DBB
-8FB7D2 E59DBC
-8FB7D3 E59DBE
-8FB7D4 E59E81
-8FB7D5 E59E83
-8FB7D6 E59E8C
-8FB7D7 E59E94
-8FB7D8 E59E97
-8FB7D9 E59E99
-8FB7DA E59E9A
-8FB7DB E59E9C
-8FB7DC E59E9D
-8FB7DD E59E9E
-8FB7DE E59E9F
-8FB7DF E59EA1
-8FB7E0 E59E95
-8FB7E1 E59EA7
-8FB7E2 E59EA8
-8FB7E3 E59EA9
-8FB7E4 E59EAC
-8FB7E5 E59EB8
-8FB7E6 E59EBD
-8FB7E7 E59F87
-8FB7E8 E59F88
-8FB7E9 E59F8C
-8FB7EA E59F8F
-8FB7EB E59F95
-8FB7EC E59F9D
-8FB7ED E59F9E
-8FB7EE E59FA4
-8FB7EF E59FA6
-8FB7F0 E59FA7
-8FB7F1 E59FA9
-8FB7F2 E59FAD
-8FB7F3 E59FB0
-8FB7F4 E59FB5
-8FB7F5 E59FB6
-8FB7F6 E59FB8
-8FB7F7 E59FBD
-8FB7F8 E59FBE
-8FB7F9 E59FBF
-8FB7FA E5A083
-8FB7FB E5A084
-8FB7FC E5A088
-8FB7FD E5A089
-8FB7FE E59FA1
-8FB8A1 E5A08C
-8FB8A2 E5A08D
-8FB8A3 E5A09B
-8FB8A4 E5A09E
-8FB8A5 E5A09F
-8FB8A6 E5A0A0
-8FB8A7 E5A0A6
-8FB8A8 E5A0A7
-8FB8A9 E5A0AD
-8FB8AA E5A0B2
-8FB8AB E5A0B9
-8FB8AC E5A0BF
-8FB8AD E5A189
-8FB8AE E5A18C
-8FB8AF E5A18D
-8FB8B0 E5A18F
-8FB8B1 E5A190
-8FB8B2 E5A195
-8FB8B3 E5A19F
-8FB8B4 E5A1A1
-8FB8B5 E5A1A4
-8FB8B6 E5A1A7
-8FB8B7 E5A1A8
-8FB8B8 E5A1B8
-8FB8B9 E5A1BC
-8FB8BA E5A1BF
-8FB8BB E5A280
-8FB8BC E5A281
-8FB8BD E5A287
-8FB8BE E5A288
-8FB8BF E5A289
-8FB8C0 E5A28A
-8FB8C1 E5A28C
-8FB8C2 E5A28D
-8FB8C3 E5A28F
-8FB8C4 E5A290
-8FB8C5 E5A294
-8FB8C6 E5A296
-8FB8C7 E5A29D
-8FB8C8 E5A2A0
-8FB8C9 E5A2A1
-8FB8CA E5A2A2
-8FB8CB E5A2A6
-8FB8CC E5A2A9
-8FB8CD E5A2B1
-8FB8CE E5A2B2
-8FB8CF E5A384
-8FB8D0 E5A2BC
-8FB8D1 E5A382
-8FB8D2 E5A388
-8FB8D3 E5A38D
-8FB8D4 E5A38E
-8FB8D5 E5A390
-8FB8D6 E5A392
-8FB8D7 E5A394
-8FB8D8 E5A396
-8FB8D9 E5A39A
-8FB8DA E5A39D
-8FB8DB E5A3A1
-8FB8DC E5A3A2
-8FB8DD E5A3A9
-8FB8DE E5A3B3
-8FB8DF E5A485
-8FB8E0 E5A486
-8FB8E1 E5A48B
-8FB8E2 E5A48C
-8FB8E3 E5A492
-8FB8E4 E5A493
-8FB8E5 E5A494
-8FB8E6 E89981
-8FB8E7 E5A49D
-8FB8E8 E5A4A1
-8FB8E9 E5A4A3
-8FB8EA E5A4A4
-8FB8EB E5A4A8
-8FB8EC E5A4AF
-8FB8ED E5A4B0
-8FB8EE E5A4B3
-8FB8EF E5A4B5
-8FB8F0 E5A4B6
-8FB8F1 E5A4BF
-8FB8F2 E5A583
-8FB8F3 E5A586
-8FB8F4 E5A592
-8FB8F5 E5A593
-8FB8F6 E5A599
-8FB8F7 E5A59B
-8FB8F8 E5A59D
-8FB8F9 E5A59E
-8FB8FA E5A59F
-8FB8FB E5A5A1
-8FB8FC E5A5A3
-8FB8FD E5A5AB
-8FB8FE E5A5AD
-8FB9A1 E5A5AF
-8FB9A2 E5A5B2
-8FB9A3 E5A5B5
-8FB9A4 E5A5B6
-8FB9A5 E5A5B9
-8FB9A6 E5A5BB
-8FB9A7 E5A5BC
-8FB9A8 E5A68B
-8FB9A9 E5A68C
-8FB9AA E5A68E
-8FB9AB E5A692
-8FB9AC E5A695
-8FB9AD E5A697
-8FB9AE E5A69F
-8FB9AF E5A6A4
-8FB9B0 E5A6A7
-8FB9B1 E5A6AD
-8FB9B2 E5A6AE
-8FB9B3 E5A6AF
-8FB9B4 E5A6B0
-8FB9B5 E5A6B3
-8FB9B6 E5A6B7
-8FB9B7 E5A6BA
-8FB9B8 E5A6BC
-8FB9B9 E5A781
-8FB9BA E5A783
-8FB9BB E5A784
-8FB9BC E5A788
-8FB9BD E5A78A
-8FB9BE E5A78D
-8FB9BF E5A792
-8FB9C0 E5A79D
-8FB9C1 E5A79E
-8FB9C2 E5A79F
-8FB9C3 E5A7A3
-8FB9C4 E5A7A4
-8FB9C5 E5A7A7
-8FB9C6 E5A7AE
-8FB9C7 E5A7AF
-8FB9C8 E5A7B1
-8FB9C9 E5A7B2
-8FB9CA E5A7B4
-8FB9CB E5A7B7
-8FB9CC E5A880
-8FB9CD E5A884
-8FB9CE E5A88C
-8FB9CF E5A88D
-8FB9D0 E5A88E
-8FB9D1 E5A892
-8FB9D2 E5A893
-8FB9D3 E5A89E
-8FB9D4 E5A8A3
-8FB9D5 E5A8A4
-8FB9D6 E5A8A7
-8FB9D7 E5A8A8
-8FB9D8 E5A8AA
-8FB9D9 E5A8AD
-8FB9DA E5A8B0
-8FB9DB E5A984
-8FB9DC E5A985
-8FB9DD E5A987
-8FB9DE E5A988
-8FB9DF E5A98C
-8FB9E0 E5A990
-8FB9E1 E5A995
-8FB9E2 E5A99E
-8FB9E3 E5A9A3
-8FB9E4 E5A9A5
-8FB9E5 E5A9A7
-8FB9E6 E5A9AD
-8FB9E7 E5A9B7
-8FB9E8 E5A9BA
-8FB9E9 E5A9BB
-8FB9EA E5A9BE
-8FB9EB E5AA8B
-8FB9EC E5AA90
-8FB9ED E5AA93
-8FB9EE E5AA96
-8FB9EF E5AA99
-8FB9F0 E5AA9C
-8FB9F1 E5AA9E
-8FB9F2 E5AA9F
-8FB9F3 E5AAA0
-8FB9F4 E5AAA2
-8FB9F5 E5AAA7
-8FB9F6 E5AAAC
-8FB9F7 E5AAB1
-8FB9F8 E5AAB2
-8FB9F9 E5AAB3
-8FB9FA E5AAB5
-8FB9FB E5AAB8
-8FB9FC E5AABA
-8FB9FD E5AABB
-8FB9FE E5AABF
-8FBAA1 E5AB84
-8FBAA2 E5AB86
-8FBAA3 E5AB88
-8FBAA4 E5AB8F
-8FBAA5 E5AB9A
-8FBAA6 E5AB9C
-8FBAA7 E5ABA0
-8FBAA8 E5ABA5
-8FBAA9 E5ABAA
-8FBAAA E5ABAE
-8FBAAB E5ABB5
-8FBAAC E5ABB6
-8FBAAD E5ABBD
-8FBAAE E5AC80
-8FBAAF E5AC81
-8FBAB0 E5AC88
-8FBAB1 E5AC97
-8FBAB2 E5ACB4
-8FBAB3 E5AC99
-8FBAB4 E5AC9B
-8FBAB5 E5AC9D
-8FBAB6 E5ACA1
-8FBAB7 E5ACA5
-8FBAB8 E5ACAD
-8FBAB9 E5ACB8
-8FBABA E5AD81
-8FBABB E5AD8B
-8FBABC E5AD8C
-8FBABD E5AD92
-8FBABE E5AD96
-8FBABF E5AD9E
-8FBAC0 E5ADA8
-8FBAC1 E5ADAE
-8FBAC2 E5ADAF
-8FBAC3 E5ADBC
-8FBAC4 E5ADBD
-8FBAC5 E5ADBE
-8FBAC6 E5ADBF
-8FBAC7 E5AE81
-8FBAC8 E5AE84
-8FBAC9 E5AE86
-8FBACA E5AE8A
-8FBACB E5AE8E
-8FBACC E5AE90
-8FBACD E5AE91
-8FBACE E5AE93
-8FBACF E5AE94
-8FBAD0 E5AE96
-8FBAD1 E5AEA8
-8FBAD2 E5AEA9
-8FBAD3 E5AEAC
-8FBAD4 E5AEAD
-8FBAD5 E5AEAF
-8FBAD6 E5AEB1
-8FBAD7 E5AEB2
-8FBAD8 E5AEB7
-8FBAD9 E5AEBA
-8FBADA E5AEBC
-8FBADB E5AF80
-8FBADC E5AF81
-8FBADD E5AF8D
-8FBADE E5AF8F
-8FBADF E5AF96
-8FBAE0 E5AF97
-8FBAE1 E5AF98
-8FBAE2 E5AF99
-8FBAE3 E5AF9A
-8FBAE4 E5AFA0
-8FBAE5 E5AFAF
-8FBAE6 E5AFB1
-8FBAE7 E5AFB4
-8FBAE8 E5AFBD
-8FBAE9 E5B08C
-8FBAEA E5B097
-8FBAEB E5B09E
-8FBAEC E5B09F
-8FBAED E5B0A3
-8FBAEE E5B0A6
-8FBAEF E5B0A9
-8FBAF0 E5B0AB
-8FBAF1 E5B0AC
-8FBAF2 E5B0AE
-8FBAF3 E5B0B0
-8FBAF4 E5B0B2
-8FBAF5 E5B0B5
-8FBAF6 E5B0B6
-8FBAF7 E5B199
-8FBAF8 E5B19A
-8FBAF9 E5B19C
-8FBAFA E5B1A2
-8FBAFB E5B1A3
-8FBAFC E5B1A7
-8FBAFD E5B1A8
-8FBAFE E5B1A9
-8FBBA1 E5B1AD
-8FBBA2 E5B1B0
-8FBBA3 E5B1B4
-8FBBA4 E5B1B5
-8FBBA5 E5B1BA
-8FBBA6 E5B1BB
-8FBBA7 E5B1BC
-8FBBA8 E5B1BD
-8FBBA9 E5B287
-8FBBAA E5B288
-8FBBAB E5B28A
-8FBBAC E5B28F
-8FBBAD E5B292
-8FBBAE E5B29D
-8FBBAF E5B29F
-8FBBB0 E5B2A0
-8FBBB1 E5B2A2
-8FBBB2 E5B2A3
-8FBBB3 E5B2A6
-8FBBB4 E5B2AA
-8FBBB5 E5B2B2
-8FBBB6 E5B2B4
-8FBBB7 E5B2B5
-8FBBB8 E5B2BA
-8FBBB9 E5B389
-8FBBBA E5B38B
-8FBBBB E5B392
-8FBBBC E5B39D
-8FBBBD E5B397
-8FBBBE E5B3AE
-8FBBBF E5B3B1
-8FBBC0 E5B3B2
-8FBBC1 E5B3B4
-8FBBC2 E5B481
-8FBBC3 E5B486
-8FBBC4 E5B48D
-8FBBC5 E5B492
-8FBBC6 E5B4AB
-8FBBC7 E5B4A3
-8FBBC8 E5B4A4
-8FBBC9 E5B4A6
-8FBBCA E5B4A7
-8FBBCB E5B4B1
-8FBBCC E5B4B4
-8FBBCD E5B4B9
-8FBBCE E5B4BD
-8FBBCF E5B4BF
-8FBBD0 E5B582
-8FBBD1 E5B583
-8FBBD2 E5B586
-8FBBD3 E5B588
-8FBBD4 E5B595
-8FBBD5 E5B591
-8FBBD6 E5B599
-8FBBD7 E5B58A
-8FBBD8 E5B59F
-8FBBD9 E5B5A0
-8FBBDA E5B5A1
-8FBBDB E5B5A2
-8FBBDC E5B5A4
-8FBBDD E5B5AA
-8FBBDE E5B5AD
-8FBBDF E5B5B0
-8FBBE0 E5B5B9
-8FBBE1 E5B5BA
-8FBBE2 E5B5BE
-8FBBE3 E5B5BF
-8FBBE4 E5B681
-8FBBE5 E5B683
-8FBBE6 E5B688
-8FBBE7 E5B68A
-8FBBE8 E5B692
-8FBBE9 E5B693
-8FBBEA E5B694
-8FBBEB E5B695
-8FBBEC E5B699
-8FBBED E5B69B
-8FBBEE E5B69F
-8FBBEF E5B6A0
-8FBBF0 E5B6A7
-8FBBF1 E5B6AB
-8FBBF2 E5B6B0
-8FBBF3 E5B6B4
-8FBBF4 E5B6B8
-8FBBF5 E5B6B9
-8FBBF6 E5B783
-8FBBF7 E5B787
-8FBBF8 E5B78B
-8FBBF9 E5B790
-8FBBFA E5B78E
-8FBBFB E5B798
-8FBBFC E5B799
-8FBBFD E5B7A0
-8FBBFE E5B7A4
-8FBCA1 E5B7A9
-8FBCA2 E5B7B8
-8FBCA3 E5B7B9
-8FBCA4 E5B880
-8FBCA5 E5B887
-8FBCA6 E5B88D
-8FBCA7 E5B892
-8FBCA8 E5B894
-8FBCA9 E5B895
-8FBCAA E5B898
-8FBCAB E5B89F
-8FBCAC E5B8A0
-8FBCAD E5B8AE
-8FBCAE E5B8A8
-8FBCAF E5B8B2
-8FBCB0 E5B8B5
-8FBCB1 E5B8BE
-8FBCB2 E5B98B
-8FBCB3 E5B990
-8FBCB4 E5B989
-8FBCB5 E5B991
-8FBCB6 E5B996
-8FBCB7 E5B998
-8FBCB8 E5B99B
-8FBCB9 E5B99C
-8FBCBA E5B99E
-8FBCBB E5B9A8
-8FBCBC E5B9AA
-8FBCBD E5B9AB
-8FBCBE E5B9AC
-8FBCBF E5B9AD
-8FBCC0 E5B9AE
-8FBCC1 E5B9B0
-8FBCC2 E5BA80
-8FBCC3 E5BA8B
-8FBCC4 E5BA8E
-8FBCC5 E5BAA2
-8FBCC6 E5BAA4
-8FBCC7 E5BAA5
-8FBCC8 E5BAA8
-8FBCC9 E5BAAA
-8FBCCA E5BAAC
-8FBCCB E5BAB1
-8FBCCC E5BAB3
-8FBCCD E5BABD
-8FBCCE E5BABE
-8FBCCF E5BABF
-8FBCD0 E5BB86
-8FBCD1 E5BB8C
-8FBCD2 E5BB8B
-8FBCD3 E5BB8E
-8FBCD4 E5BB91
-8FBCD5 E5BB92
-8FBCD6 E5BB94
-8FBCD7 E5BB95
-8FBCD8 E5BB9C
-8FBCD9 E5BB9E
-8FBCDA E5BBA5
-8FBCDB E5BBAB
-8FBCDC E5BC82
-8FBCDD E5BC86
-8FBCDE E5BC87
-8FBCDF E5BC88
-8FBCE0 E5BC8E
-8FBCE1 E5BC99
-8FBCE2 E5BC9C
-8FBCE3 E5BC9D
-8FBCE4 E5BCA1
-8FBCE5 E5BCA2
-8FBCE6 E5BCA3
-8FBCE7 E5BCA4
-8FBCE8 E5BCA8
-8FBCE9 E5BCAB
-8FBCEA E5BCAC
-8FBCEB E5BCAE
-8FBCEC E5BCB0
-8FBCED E5BCB4
-8FBCEE E5BCB6
-8FBCEF E5BCBB
-8FBCF0 E5BCBD
-8FBCF1 E5BCBF
-8FBCF2 E5BD80
-8FBCF3 E5BD84
-8FBCF4 E5BD85
-8FBCF5 E5BD87
-8FBCF6 E5BD8D
-8FBCF7 E5BD90
-8FBCF8 E5BD94
-8FBCF9 E5BD98
-8FBCFA E5BD9B
-8FBCFB E5BDA0
-8FBCFC E5BDA3
-8FBCFD E5BDA4
-8FBCFE E5BDA7
-8FBDA1 E5BDAF
-8FBDA2 E5BDB2
-8FBDA3 E5BDB4
-8FBDA4 E5BDB5
-8FBDA5 E5BDB8
-8FBDA6 E5BDBA
-8FBDA7 E5BDBD
-8FBDA8 E5BDBE
-8FBDA9 E5BE89
-8FBDAA E5BE8D
-8FBDAB E5BE8F
-8FBDAC E5BE96
-8FBDAD E5BE9C
-8FBDAE E5BE9D
-8FBDAF E5BEA2
-8FBDB0 E5BEA7
-8FBDB1 E5BEAB
-8FBDB2 E5BEA4
-8FBDB3 E5BEAC
-8FBDB4 E5BEAF
-8FBDB5 E5BEB0
-8FBDB6 E5BEB1
-8FBDB7 E5BEB8
-8FBDB8 E5BF84
-8FBDB9 E5BF87
-8FBDBA E5BF88
-8FBDBB E5BF89
-8FBDBC E5BF8B
-8FBDBD E5BF90
-8FBDBE E5BF91
-8FBDBF E5BF92
-8FBDC0 E5BF93
-8FBDC1 E5BF94
-8FBDC2 E5BF9E
-8FBDC3 E5BFA1
-8FBDC4 E5BFA2
-8FBDC5 E5BFA8
-8FBDC6 E5BFA9
-8FBDC7 E5BFAA
-8FBDC8 E5BFAC
-8FBDC9 E5BFAD
-8FBDCA E5BFAE
-8FBDCB E5BFAF
-8FBDCC E5BFB2
-8FBDCD E5BFB3
-8FBDCE E5BFB6
-8FBDCF E5BFBA
-8FBDD0 E5BFBC
-8FBDD1 E68087
-8FBDD2 E6808A
-8FBDD3 E6808D
-8FBDD4 E68093
-8FBDD5 E68094
-8FBDD6 E68097
-8FBDD7 E68098
-8FBDD8 E6809A
-8FBDD9 E6809F
-8FBDDA E680A4
-8FBDDB E680AD
-8FBDDC E680B3
-8FBDDD E680B5
-8FBDDE E68180
-8FBDDF E68187
-8FBDE0 E68188
-8FBDE1 E68189
-8FBDE2 E6818C
-8FBDE3 E68191
-8FBDE4 E68194
-8FBDE5 E68196
-8FBDE6 E68197
-8FBDE7 E6819D
-8FBDE8 E681A1
-8FBDE9 E681A7
-8FBDEA E681B1
-8FBDEB E681BE
-8FBDEC E681BF
-8FBDED E68282
-8FBDEE E68286
-8FBDEF E68288
-8FBDF0 E6828A
-8FBDF1 E6828E
-8FBDF2 E68291
-8FBDF3 E68293
-8FBDF4 E68295
-8FBDF5 E68298
-8FBDF6 E6829D
-8FBDF7 E6829E
-8FBDF8 E682A2
-8FBDF9 E682A4
-8FBDFA E682A5
-8FBDFB E682A8
-8FBDFC E682B0
-8FBDFD E682B1
-8FBDFE E682B7
-8FBEA1 E682BB
-8FBEA2 E682BE
-8FBEA3 E68382
-8FBEA4 E68384
-8FBEA5 E68388
-8FBEA6 E68389
-8FBEA7 E6838A
-8FBEA8 E6838B
-8FBEA9 E6838E
-8FBEAA E6838F
-8FBEAB E68394
-8FBEAC E68395
-8FBEAD E68399
-8FBEAE E6839B
-8FBEAF E6839D
-8FBEB0 E6839E
-8FBEB1 E683A2
-8FBEB2 E683A5
-8FBEB3 E683B2
-8FBEB4 E683B5
-8FBEB5 E683B8
-8FBEB6 E683BC
-8FBEB7 E683BD
-8FBEB8 E68482
-8FBEB9 E68487
-8FBEBA E6848A
-8FBEBB E6848C
-8FBEBC E68490
-8FBEBD E68491
-8FBEBE E68492
-8FBEBF E68493
-8FBEC0 E68494
-8FBEC1 E68496
-8FBEC2 E68497
-8FBEC3 E68499
-8FBEC4 E6849C
-8FBEC5 E6849E
-8FBEC6 E684A2
-8FBEC7 E684AA
-8FBEC8 E684AB
-8FBEC9 E684B0
-8FBECA E684B1
-8FBECB E684B5
-8FBECC E684B6
-8FBECD E684B7
-8FBECE E684B9
-8FBECF E68581
-8FBED0 E68585
-8FBED1 E68586
-8FBED2 E68589
-8FBED3 E6859E
-8FBED4 E685A0
-8FBED5 E685AC
-8FBED6 E685B2
-8FBED7 E685B8
-8FBED8 E685BB
-8FBED9 E685BC
-8FBEDA E685BF
-8FBEDB E68680
-8FBEDC E68681
-8FBEDD E68683
-8FBEDE E68684
-8FBEDF E6868B
-8FBEE0 E6868D
-8FBEE1 E68692
-8FBEE2 E68693
-8FBEE3 E68697
-8FBEE4 E68698
-8FBEE5 E6869C
-8FBEE6 E6869D
-8FBEE7 E6869F
-8FBEE8 E686A0
-8FBEE9 E686A5
-8FBEEA E686A8
-8FBEEB E686AA
-8FBEEC E686AD
-8FBEED E686B8
-8FBEEE E686B9
-8FBEEF E686BC
-8FBEF0 E68780
-8FBEF1 E68781
-8FBEF2 E68782
-8FBEF3 E6878E
-8FBEF4 E6878F
-8FBEF5 E68795
-8FBEF6 E6879C
-8FBEF7 E6879D
-8FBEF8 E6879E
-8FBEF9 E6879F
-8FBEFA E687A1
-8FBEFB E687A2
-8FBEFC E687A7
-8FBEFD E687A9
-8FBEFE E687A5
-8FBFA1 E687AC
-8FBFA2 E687AD
-8FBFA3 E687AF
-8FBFA4 E68881
-8FBFA5 E68883
-8FBFA6 E68884
-8FBFA7 E68887
-8FBFA8 E68893
-8FBFA9 E68895
-8FBFAA E6889C
-8FBFAB E688A0
-8FBFAC E688A2
-8FBFAD E688A3
-8FBFAE E688A7
-8FBFAF E688A9
-8FBFB0 E688AB
-8FBFB1 E688B9
-8FBFB2 E688BD
-8FBFB3 E68982
-8FBFB4 E68983
-8FBFB5 E68984
-8FBFB6 E68986
-8FBFB7 E6898C
-8FBFB8 E68990
-8FBFB9 E68991
-8FBFBA E68992
-8FBFBB E68994
-8FBFBC E68996
-8FBFBD E6899A
-8FBFBE E6899C
-8FBFBF E689A4
-8FBFC0 E689AD
-8FBFC1 E689AF
-8FBFC2 E689B3
-8FBFC3 E689BA
-8FBFC4 E689BD
-8FBFC5 E68A8D
-8FBFC6 E68A8E
-8FBFC7 E68A8F
-8FBFC8 E68A90
-8FBFC9 E68AA6
-8FBFCA E68AA8
-8FBFCB E68AB3
-8FBFCC E68AB6
-8FBFCD E68AB7
-8FBFCE E68ABA
-8FBFCF E68ABE
-8FBFD0 E68ABF
-8FBFD1 E68B84
-8FBFD2 E68B8E
-8FBFD3 E68B95
-8FBFD4 E68B96
-8FBFD5 E68B9A
-8FBFD6 E68BAA
-8FBFD7 E68BB2
-8FBFD8 E68BB4
-8FBFD9 E68BBC
-8FBFDA E68BBD
-8FBFDB E68C83
-8FBFDC E68C84
-8FBFDD E68C8A
-8FBFDE E68C8B
-8FBFDF E68C8D
-8FBFE0 E68C90
-8FBFE1 E68C93
-8FBFE2 E68C96
-8FBFE3 E68C98
-8FBFE4 E68CA9
-8FBFE5 E68CAA
-8FBFE6 E68CAD
-8FBFE7 E68CB5
-8FBFE8 E68CB6
-8FBFE9 E68CB9
-8FBFEA E68CBC
-8FBFEB E68D81
-8FBFEC E68D82
-8FBFED E68D83
-8FBFEE E68D84
-8FBFEF E68D86
-8FBFF0 E68D8A
-8FBFF1 E68D8B
-8FBFF2 E68D8E
-8FBFF3 E68D92
-8FBFF4 E68D93
-8FBFF5 E68D94
-8FBFF6 E68D98
-8FBFF7 E68D9B
-8FBFF8 E68DA5
-8FBFF9 E68DA6
-8FBFFA E68DAC
-8FBFFB E68DAD
-8FBFFC E68DB1
-8FBFFD E68DB4
-8FBFFE E68DB5
-8FC0A1 E68DB8
-8FC0A2 E68DBC
-8FC0A3 E68DBD
-8FC0A4 E68DBF
-8FC0A5 E68E82
-8FC0A6 E68E84
-8FC0A7 E68E87
-8FC0A8 E68E8A
-8FC0A9 E68E90
-8FC0AA E68E94
-8FC0AB E68E95
-8FC0AC E68E99
-8FC0AD E68E9A
-8FC0AE E68E9E
-8FC0AF E68EA4
-8FC0B0 E68EA6
-8FC0B1 E68EAD
-8FC0B2 E68EAE
-8FC0B3 E68EAF
-8FC0B4 E68EBD
-8FC0B5 E68F81
-8FC0B6 E68F85
-8FC0B7 E68F88
-8FC0B8 E68F8E
-8FC0B9 E68F91
-8FC0BA E68F93
-8FC0BB E68F94
-8FC0BC E68F95
-8FC0BD E68F9C
-8FC0BE E68FA0
-8FC0BF E68FA5
-8FC0C0 E68FAA
-8FC0C1 E68FAC
-8FC0C2 E68FB2
-8FC0C3 E68FB3
-8FC0C4 E68FB5
-8FC0C5 E68FB8
-8FC0C6 E68FB9
-8FC0C7 E69089
-8FC0C8 E6908A
-8FC0C9 E69090
-8FC0CA E69092
-8FC0CB E69094
-8FC0CC E69098
-8FC0CD E6909E
-8FC0CE E690A0
-8FC0CF E690A2
-8FC0D0 E690A4
-8FC0D1 E690A5
-8FC0D2 E690A9
-8FC0D3 E690AA
-8FC0D4 E690AF
-8FC0D5 E690B0
-8FC0D6 E690B5
-8FC0D7 E690BD
-8FC0D8 E690BF
-8FC0D9 E6918B
-8FC0DA E6918F
-8FC0DB E69191
-8FC0DC E69192
-8FC0DD E69193
-8FC0DE E69194
-8FC0DF E6919A
-8FC0E0 E6919B
-8FC0E1 E6919C
-8FC0E2 E6919D
-8FC0E3 E6919F
-8FC0E4 E691A0
-8FC0E5 E691A1
-8FC0E6 E691A3
-8FC0E7 E691AD
-8FC0E8 E691B3
-8FC0E9 E691B4
-8FC0EA E691BB
-8FC0EB E691BD
-8FC0EC E69285
-8FC0ED E69287
-8FC0EE E6928F
-8FC0EF E69290
-8FC0F0 E69291
-8FC0F1 E69298
-8FC0F2 E69299
-8FC0F3 E6929B
-8FC0F4 E6929D
-8FC0F5 E6929F
-8FC0F6 E692A1
-8FC0F7 E692A3
-8FC0F8 E692A6
-8FC0F9 E692A8
-8FC0FA E692AC
-8FC0FB E692B3
-8FC0FC E692BD
-8FC0FD E692BE
-8FC0FE E692BF
-8FC1A1 E69384
-8FC1A2 E69389
-8FC1A3 E6938A
-8FC1A4 E6938B
-8FC1A5 E6938C
-8FC1A6 E6938E
-8FC1A7 E69390
-8FC1A8 E69391
-8FC1A9 E69395
-8FC1AA E69397
-8FC1AB E693A4
-8FC1AC E693A5
-8FC1AD E693A9
-8FC1AE E693AA
-8FC1AF E693AD
-8FC1B0 E693B0
-8FC1B1 E693B5
-8FC1B2 E693B7
-8FC1B3 E693BB
-8FC1B4 E693BF
-8FC1B5 E69481
-8FC1B6 E69484
-8FC1B7 E69488
-8FC1B8 E69489
-8FC1B9 E6948A
-8FC1BA E6948F
-8FC1BB E69493
-8FC1BC E69494
-8FC1BD E69496
-8FC1BE E69499
-8FC1BF E6949B
-8FC1C0 E6949E
-8FC1C1 E6949F
-8FC1C2 E694A2
-8FC1C3 E694A6
-8FC1C4 E694A9
-8FC1C5 E694AE
-8FC1C6 E694B1
-8FC1C7 E694BA
-8FC1C8 E694BC
-8FC1C9 E694BD
-8FC1CA E69583
-8FC1CB E69587
-8FC1CC E69589
-8FC1CD E69590
-8FC1CE E69592
-8FC1CF E69594
-8FC1D0 E6959F
-8FC1D1 E695A0
-8FC1D2 E695A7
-8FC1D3 E695AB
-8FC1D4 E695BA
-8FC1D5 E695BD
-8FC1D6 E69681
-8FC1D7 E69685
-8FC1D8 E6968A
-8FC1D9 E69692
-8FC1DA E69695
-8FC1DB E69698
-8FC1DC E6969D
-8FC1DD E696A0
-8FC1DE E696A3
-8FC1DF E696A6
-8FC1E0 E696AE
-8FC1E1 E696B2
-8FC1E2 E696B3
-8FC1E3 E696B4
-8FC1E4 E696BF
-8FC1E5 E69782
-8FC1E6 E69788
-8FC1E7 E69789
-8FC1E8 E6978E
-8FC1E9 E69790
-8FC1EA E69794
-8FC1EB E69796
-8FC1EC E69798
-8FC1ED E6979F
-8FC1EE E697B0
-8FC1EF E697B2
-8FC1F0 E697B4
-8FC1F1 E697B5
-8FC1F2 E697B9
-8FC1F3 E697BE
-8FC1F4 E697BF
-8FC1F5 E69880
-8FC1F6 E69884
-8FC1F7 E69888
-8FC1F8 E69889
-8FC1F9 E6988D
-8FC1FA E69891
-8FC1FB E69892
-8FC1FC E69895
-8FC1FD E69896
-8FC1FE E6989D
-8FC2A1 E6989E
-8FC2A2 E698A1
-8FC2A3 E698A2
-8FC2A4 E698A3
-8FC2A5 E698A4
-8FC2A6 E698A6
-8FC2A7 E698A9
-8FC2A8 E698AA
-8FC2A9 E698AB
-8FC2AA E698AC
-8FC2AB E698AE
-8FC2AC E698B0
-8FC2AD E698B1
-8FC2AE E698B3
-8FC2AF E698B9
-8FC2B0 E698B7
-8FC2B1 E69980
-8FC2B2 E69985
-8FC2B3 E69986
-8FC2B4 E6998A
-8FC2B5 E6998C
-8FC2B6 E69991
-8FC2B7 E6998E
-8FC2B8 E69997
-8FC2B9 E69998
-8FC2BA E69999
-8FC2BB E6999B
-8FC2BC E6999C
-8FC2BD E699A0
-8FC2BE E699A1
-8FC2BF E69BBB
-8FC2C0 E699AA
-8FC2C1 E699AB
-8FC2C2 E699AC
-8FC2C3 E699BE
-8FC2C4 E699B3
-8FC2C5 E699B5
-8FC2C6 E699BF
-8FC2C7 E699B7
-8FC2C8 E699B8
-8FC2C9 E699B9
-8FC2CA E699BB
-8FC2CB E69A80
-8FC2CC E699BC
-8FC2CD E69A8B
-8FC2CE E69A8C
-8FC2CF E69A8D
-8FC2D0 E69A90
-8FC2D1 E69A92
-8FC2D2 E69A99
-8FC2D3 E69A9A
-8FC2D4 E69A9B
-8FC2D5 E69A9C
-8FC2D6 E69A9F
-8FC2D7 E69AA0
-8FC2D8 E69AA4
-8FC2D9 E69AAD
-8FC2DA E69AB1
-8FC2DB E69AB2
-8FC2DC E69AB5
-8FC2DD E69ABB
-8FC2DE E69ABF
-8FC2DF E69B80
-8FC2E0 E69B82
-8FC2E1 E69B83
-8FC2E2 E69B88
-8FC2E3 E69B8C
-8FC2E4 E69B8E
-8FC2E5 E69B8F
-8FC2E6 E69B94
-8FC2E7 E69B9B
-8FC2E8 E69B9F
-8FC2E9 E69BA8
-8FC2EA E69BAB
-8FC2EB E69BAC
-8FC2EC E69BAE
-8FC2ED E69BBA
-8FC2EE E69C85
-8FC2EF E69C87
-8FC2F0 E69C8E
-8FC2F1 E69C93
-8FC2F2 E69C99
-8FC2F3 E69C9C
-8FC2F4 E69CA0
-8FC2F5 E69CA2
-8FC2F6 E69CB3
-8FC2F7 E69CBE
-8FC2F8 E69D85
-8FC2F9 E69D87
-8FC2FA E69D88
-8FC2FB E69D8C
-8FC2FC E69D94
-8FC2FD E69D95
-8FC2FE E69D9D
-8FC3A1 E69DA6
-8FC3A2 E69DAC
-8FC3A3 E69DAE
-8FC3A4 E69DB4
-8FC3A5 E69DB6
-8FC3A6 E69DBB
-8FC3A7 E69E81
-8FC3A8 E69E84
-8FC3A9 E69E8E
-8FC3AA E69E8F
-8FC3AB E69E91
-8FC3AC E69E93
-8FC3AD E69E96
-8FC3AE E69E98
-8FC3AF E69E99
-8FC3B0 E69E9B
-8FC3B1 E69EB0
-8FC3B2 E69EB1
-8FC3B3 E69EB2
-8FC3B4 E69EB5
-8FC3B5 E69EBB
-8FC3B6 E69EBC
-8FC3B7 E69EBD
-8FC3B8 E69FB9
-8FC3B9 E69F80
-8FC3BA E69F82
-8FC3BB E69F83
-8FC3BC E69F85
-8FC3BD E69F88
-8FC3BE E69F89
-8FC3BF E69F92
-8FC3C0 E69F97
-8FC3C1 E69F99
-8FC3C2 E69F9C
-8FC3C3 E69FA1
-8FC3C4 E69FA6
-8FC3C5 E69FB0
-8FC3C6 E69FB2
-8FC3C7 E69FB6
-8FC3C8 E69FB7
-8FC3C9 E6A192
-8FC3CA E6A094
-8FC3CB E6A099
-8FC3CC E6A09D
-8FC3CD E6A09F
-8FC3CE E6A0A8
-8FC3CF E6A0A7
-8FC3D0 E6A0AC
-8FC3D1 E6A0AD
-8FC3D2 E6A0AF
-8FC3D3 E6A0B0
-8FC3D4 E6A0B1
-8FC3D5 E6A0B3
-8FC3D6 E6A0BB
-8FC3D7 E6A0BF
-8FC3D8 E6A184
-8FC3D9 E6A185
-8FC3DA E6A18A
-8FC3DB E6A18C
-8FC3DC E6A195
-8FC3DD E6A197
-8FC3DE E6A198
-8FC3DF E6A19B
-8FC3E0 E6A1AB
-8FC3E1 E6A1AE
-8FC3E2 E6A1AF
-8FC3E3 E6A1B0
-8FC3E4 E6A1B1
-8FC3E5 E6A1B2
-8FC3E6 E6A1B5
-8FC3E7 E6A1B9
-8FC3E8 E6A1BA
-8FC3E9 E6A1BB
-8FC3EA E6A1BC
-8FC3EB E6A282
-8FC3EC E6A284
-8FC3ED E6A286
-8FC3EE E6A288
-8FC3EF E6A296
-8FC3F0 E6A298
-8FC3F1 E6A29A
-8FC3F2 E6A29C
-8FC3F3 E6A2A1
-8FC3F4 E6A2A3
-8FC3F5 E6A2A5
-8FC3F6 E6A2A9
-8FC3F7 E6A2AA
-8FC3F8 E6A2AE
-8FC3F9 E6A2B2
-8FC3FA E6A2BB
-8FC3FB E6A385
-8FC3FC E6A388
-8FC3FD E6A38C
-8FC3FE E6A38F
-8FC4A1 E6A390
-8FC4A2 E6A391
-8FC4A3 E6A393
-8FC4A4 E6A396
-8FC4A5 E6A399
-8FC4A6 E6A39C
-8FC4A7 E6A39D
-8FC4A8 E6A3A5
-8FC4A9 E6A3A8
-8FC4AA E6A3AA
-8FC4AB E6A3AB
-8FC4AC E6A3AC
-8FC4AD E6A3AD
-8FC4AE E6A3B0
-8FC4AF E6A3B1
-8FC4B0 E6A3B5
-8FC4B1 E6A3B6
-8FC4B2 E6A3BB
-8FC4B3 E6A3BC
-8FC4B4 E6A3BD
-8FC4B5 E6A486
-8FC4B6 E6A489
-8FC4B7 E6A48A
-8FC4B8 E6A490
-8FC4B9 E6A491
-8FC4BA E6A493
-8FC4BB E6A496
-8FC4BC E6A497
-8FC4BD E6A4B1
-8FC4BE E6A4B3
-8FC4BF E6A4B5
-8FC4C0 E6A4B8
-8FC4C1 E6A4BB
-8FC4C2 E6A582
-8FC4C3 E6A585
-8FC4C4 E6A589
-8FC4C5 E6A58E
-8FC4C6 E6A597
-8FC4C7 E6A59B
-8FC4C8 E6A5A3
-8FC4C9 E6A5A4
-8FC4CA E6A5A5
-8FC4CB E6A5A6
-8FC4CC E6A5A8
-8FC4CD E6A5A9
-8FC4CE E6A5AC
-8FC4CF E6A5B0
-8FC4D0 E6A5B1
-8FC4D1 E6A5B2
-8FC4D2 E6A5BA
-8FC4D3 E6A5BB
-8FC4D4 E6A5BF
-8FC4D5 E6A680
-8FC4D6 E6A68D
-8FC4D7 E6A692
-8FC4D8 E6A696
-8FC4D9 E6A698
-8FC4DA E6A6A1
-8FC4DB E6A6A5
-8FC4DC E6A6A6
-8FC4DD E6A6A8
-8FC4DE E6A6AB
-8FC4DF E6A6AD
-8FC4E0 E6A6AF
-8FC4E1 E6A6B7
-8FC4E2 E6A6B8
-8FC4E3 E6A6BA
-8FC4E4 E6A6BC
-8FC4E5 E6A785
-8FC4E6 E6A788
-8FC4E7 E6A791
-8FC4E8 E6A796
-8FC4E9 E6A797
-8FC4EA E6A7A2
-8FC4EB E6A7A5
-8FC4EC E6A7AE
-8FC4ED E6A7AF
-8FC4EE E6A7B1
-8FC4EF E6A7B3
-8FC4F0 E6A7B5
-8FC4F1 E6A7BE
-8FC4F2 E6A880
-8FC4F3 E6A881
-8FC4F4 E6A883
-8FC4F5 E6A88F
-8FC4F6 E6A891
-8FC4F7 E6A895
-8FC4F8 E6A89A
-8FC4F9 E6A89D
-8FC4FA E6A8A0
-8FC4FB E6A8A4
-8FC4FC E6A8A8
-8FC4FD E6A8B0
-8FC4FE E6A8B2
-8FC5A1 E6A8B4
-8FC5A2 E6A8B7
-8FC5A3 E6A8BB
-8FC5A4 E6A8BE
-8FC5A5 E6A8BF
-8FC5A6 E6A985
-8FC5A7 E6A986
-8FC5A8 E6A989
-8FC5A9 E6A98A
-8FC5AA E6A98E
-8FC5AB E6A990
-8FC5AC E6A991
-8FC5AD E6A992
-8FC5AE E6A995
-8FC5AF E6A996
-8FC5B0 E6A99B
-8FC5B1 E6A9A4
-8FC5B2 E6A9A7
-8FC5B3 E6A9AA
-8FC5B4 E6A9B1
-8FC5B5 E6A9B3
-8FC5B6 E6A9BE
-8FC5B7 E6AA81
-8FC5B8 E6AA83
-8FC5B9 E6AA86
-8FC5BA E6AA87
-8FC5BB E6AA89
-8FC5BC E6AA8B
-8FC5BD E6AA91
-8FC5BE E6AA9B
-8FC5BF E6AA9D
-8FC5C0 E6AA9E
-8FC5C1 E6AA9F
-8FC5C2 E6AAA5
-8FC5C3 E6AAAB
-8FC5C4 E6AAAF
-8FC5C5 E6AAB0
-8FC5C6 E6AAB1
-8FC5C7 E6AAB4
-8FC5C8 E6AABD
-8FC5C9 E6AABE
-8FC5CA E6AABF
-8FC5CB E6AB86
-8FC5CC E6AB89
-8FC5CD E6AB88
-8FC5CE E6AB8C
-8FC5CF E6AB90
-8FC5D0 E6AB94
-8FC5D1 E6AB95
-8FC5D2 E6AB96
-8FC5D3 E6AB9C
-8FC5D4 E6AB9D
-8FC5D5 E6ABA4
-8FC5D6 E6ABA7
-8FC5D7 E6ABAC
-8FC5D8 E6ABB0
-8FC5D9 E6ABB1
-8FC5DA E6ABB2
-8FC5DB E6ABBC
-8FC5DC E6ABBD
-8FC5DD E6AC82
-8FC5DE E6AC83
-8FC5DF E6AC86
-8FC5E0 E6AC87
-8FC5E1 E6AC89
-8FC5E2 E6AC8F
-8FC5E3 E6AC90
-8FC5E4 E6AC91
-8FC5E5 E6AC97
-8FC5E6 E6AC9B
-8FC5E7 E6AC9E
-8FC5E8 E6ACA4
-8FC5E9 E6ACA8
-8FC5EA E6ACAB
-8FC5EB E6ACAC
-8FC5EC E6ACAF
-8FC5ED E6ACB5
-8FC5EE E6ACB6
-8FC5EF E6ACBB
-8FC5F0 E6ACBF
-8FC5F1 E6AD86
-8FC5F2 E6AD8A
-8FC5F3 E6AD8D
-8FC5F4 E6AD92
-8FC5F5 E6AD96
-8FC5F6 E6AD98
-8FC5F7 E6AD9D
-8FC5F8 E6ADA0
-8FC5F9 E6ADA7
-8FC5FA E6ADAB
-8FC5FB E6ADAE
-8FC5FC E6ADB0
-8FC5FD E6ADB5
-8FC5FE E6ADBD
-8FC6A1 E6ADBE
-8FC6A2 E6AE82
-8FC6A3 E6AE85
-8FC6A4 E6AE97
-8FC6A5 E6AE9B
-8FC6A6 E6AE9F
-8FC6A7 E6AEA0
-8FC6A8 E6AEA2
-8FC6A9 E6AEA3
-8FC6AA E6AEA8
-8FC6AB E6AEA9
-8FC6AC E6AEAC
-8FC6AD E6AEAD
-8FC6AE E6AEAE
-8FC6AF E6AEB0
-8FC6B0 E6AEB8
-8FC6B1 E6AEB9
-8FC6B2 E6AEBD
-8FC6B3 E6AEBE
-8FC6B4 E6AF83
-8FC6B5 E6AF84
-8FC6B6 E6AF89
-8FC6B7 E6AF8C
-8FC6B8 E6AF96
-8FC6B9 E6AF9A
-8FC6BA E6AFA1
-8FC6BB E6AFA3
-8FC6BC E6AFA6
-8FC6BD E6AFA7
-8FC6BE E6AFAE
-8FC6BF E6AFB1
-8FC6C0 E6AFB7
-8FC6C1 E6AFB9
-8FC6C2 E6AFBF
-8FC6C3 E6B082
-8FC6C4 E6B084
-8FC6C5 E6B085
-8FC6C6 E6B089
-8FC6C7 E6B08D
-8FC6C8 E6B08E
-8FC6C9 E6B090
-8FC6CA E6B092
-8FC6CB E6B099
-8FC6CC E6B09F
-8FC6CD E6B0A6
-8FC6CE E6B0A7
-8FC6CF E6B0A8
-8FC6D0 E6B0AC
-8FC6D1 E6B0AE
-8FC6D2 E6B0B3
-8FC6D3 E6B0B5
-8FC6D4 E6B0B6
-8FC6D5 E6B0BA
-8FC6D6 E6B0BB
-8FC6D7 E6B0BF
-8FC6D8 E6B18A
-8FC6D9 E6B18B
-8FC6DA E6B18D
-8FC6DB E6B18F
-8FC6DC E6B192
-8FC6DD E6B194
-8FC6DE E6B199
-8FC6DF E6B19B
-8FC6E0 E6B19C
-8FC6E1 E6B1AB
-8FC6E2 E6B1AD
-8FC6E3 E6B1AF
-8FC6E4 E6B1B4
-8FC6E5 E6B1B6
-8FC6E6 E6B1B8
-8FC6E7 E6B1B9
-8FC6E8 E6B1BB
-8FC6E9 E6B285
-8FC6EA E6B286
-8FC6EB E6B287
-8FC6EC E6B289
-8FC6ED E6B294
-8FC6EE E6B295
-8FC6EF E6B297
-8FC6F0 E6B298
-8FC6F1 E6B29C
-8FC6F2 E6B29F
-8FC6F3 E6B2B0
-8FC6F4 E6B2B2
-8FC6F5 E6B2B4
-8FC6F6 E6B382
-8FC6F7 E6B386
-8FC6F8 E6B38D
-8FC6F9 E6B38F
-8FC6FA E6B390
-8FC6FB E6B391
-8FC6FC E6B392
-8FC6FD E6B394
-8FC6FE E6B396
-8FC7A1 E6B39A
-8FC7A2 E6B39C
-8FC7A3 E6B3A0
-8FC7A4 E6B3A7
-8FC7A5 E6B3A9
-8FC7A6 E6B3AB
-8FC7A7 E6B3AC
-8FC7A8 E6B3AE
-8FC7A9 E6B3B2
-8FC7AA E6B3B4
-8FC7AB E6B484
-8FC7AC E6B487
-8FC7AD E6B48A
-8FC7AE E6B48E
-8FC7AF E6B48F
-8FC7B0 E6B491
-8FC7B1 E6B493
-8FC7B2 E6B49A
-8FC7B3 E6B4A6
-8FC7B4 E6B4A7
-8FC7B5 E6B4A8
-8FC7B6 E6B1A7
-8FC7B7 E6B4AE
-8FC7B8 E6B4AF
-8FC7B9 E6B4B1
-8FC7BA E6B4B9
-8FC7BB E6B4BC
-8FC7BC E6B4BF
-8FC7BD E6B597
-8FC7BE E6B59E
-8FC7BF E6B59F
-8FC7C0 E6B5A1
-8FC7C1 E6B5A5
-8FC7C2 E6B5A7
-8FC7C3 E6B5AF
-8FC7C4 E6B5B0
-8FC7C5 E6B5BC
-8FC7C6 E6B682
-8FC7C7 E6B687
-8FC7C8 E6B691
-8FC7C9 E6B692
-8FC7CA E6B694
-8FC7CB E6B696
-8FC7CC E6B697
-8FC7CD E6B698
-8FC7CE E6B6AA
-8FC7CF E6B6AC
-8FC7D0 E6B6B4
-8FC7D1 E6B6B7
-8FC7D2 E6B6B9
-8FC7D3 E6B6BD
-8FC7D4 E6B6BF
-8FC7D5 E6B784
-8FC7D6 E6B788
-8FC7D7 E6B78A
-8FC7D8 E6B78E
-8FC7D9 E6B78F
-8FC7DA E6B796
-8FC7DB E6B79B
-8FC7DC E6B79D
-8FC7DD E6B79F
-8FC7DE E6B7A0
-8FC7DF E6B7A2
-8FC7E0 E6B7A5
-8FC7E1 E6B7A9
-8FC7E2 E6B7AF
-8FC7E3 E6B7B0
-8FC7E4 E6B7B4
-8FC7E5 E6B7B6
-8FC7E6 E6B7BC
-8FC7E7 E6B880
-8FC7E8 E6B884
-8FC7E9 E6B89E
-8FC7EA E6B8A2
-8FC7EB E6B8A7
-8FC7EC E6B8B2
-8FC7ED E6B8B6
-8FC7EE E6B8B9
-8FC7EF E6B8BB
-8FC7F0 E6B8BC
-8FC7F1 E6B984
-8FC7F2 E6B985
-8FC7F3 E6B988
-8FC7F4 E6B989
-8FC7F5 E6B98B
-8FC7F6 E6B98F
-8FC7F7 E6B991
-8FC7F8 E6B992
-8FC7F9 E6B993
-8FC7FA E6B994
-8FC7FB E6B997
-8FC7FC E6B99C
-8FC7FD E6B99D
-8FC7FE E6B99E
-8FC8A1 E6B9A2
-8FC8A2 E6B9A3
-8FC8A3 E6B9A8
-8FC8A4 E6B9B3
-8FC8A5 E6B9BB
-8FC8A6 E6B9BD
-8FC8A7 E6BA8D
-8FC8A8 E6BA93
-8FC8A9 E6BA99
-8FC8AA E6BAA0
-8FC8AB E6BAA7
-8FC8AC E6BAAD
-8FC8AD E6BAAE
-8FC8AE E6BAB1
-8FC8AF E6BAB3
-8FC8B0 E6BABB
-8FC8B1 E6BABF
-8FC8B2 E6BB80
-8FC8B3 E6BB81
-8FC8B4 E6BB83
-8FC8B5 E6BB87
-8FC8B6 E6BB88
-8FC8B7 E6BB8A
-8FC8B8 E6BB8D
-8FC8B9 E6BB8E
-8FC8BA E6BB8F
-8FC8BB E6BBAB
-8FC8BC E6BBAD
-8FC8BD E6BBAE
-8FC8BE E6BBB9
-8FC8BF E6BBBB
-8FC8C0 E6BBBD
-8FC8C1 E6BC84
-8FC8C2 E6BC88
-8FC8C3 E6BC8A
-8FC8C4 E6BC8C
-8FC8C5 E6BC8D
-8FC8C6 E6BC96
-8FC8C7 E6BC98
-8FC8C8 E6BC9A
-8FC8C9 E6BC9B
-8FC8CA E6BCA6
-8FC8CB E6BCA9
-8FC8CC E6BCAA
-8FC8CD E6BCAF
-8FC8CE E6BCB0
-8FC8CF E6BCB3
-8FC8D0 E6BCB6
-8FC8D1 E6BCBB
-8FC8D2 E6BCBC
-8FC8D3 E6BCAD
-8FC8D4 E6BD8F
-8FC8D5 E6BD91
-8FC8D6 E6BD92
-8FC8D7 E6BD93
-8FC8D8 E6BD97
-8FC8D9 E6BD99
-8FC8DA E6BD9A
-8FC8DB E6BD9D
-8FC8DC E6BD9E
-8FC8DD E6BDA1
-8FC8DE E6BDA2
-8FC8DF E6BDA8
-8FC8E0 E6BDAC
-8FC8E1 E6BDBD
-8FC8E2 E6BDBE
-8FC8E3 E6BE83
-8FC8E4 E6BE87
-8FC8E5 E6BE88
-8FC8E6 E6BE8B
-8FC8E7 E6BE8C
-8FC8E8 E6BE8D
-8FC8E9 E6BE90
-8FC8EA E6BE92
-8FC8EB E6BE93
-8FC8EC E6BE94
-8FC8ED E6BE96
-8FC8EE E6BE9A
-8FC8EF E6BE9F
-8FC8F0 E6BEA0
-8FC8F1 E6BEA5
-8FC8F2 E6BEA6
-8FC8F3 E6BEA7
-8FC8F4 E6BEA8
-8FC8F5 E6BEAE
-8FC8F6 E6BEAF
-8FC8F7 E6BEB0
-8FC8F8 E6BEB5
-8FC8F9 E6BEB6
-8FC8FA E6BEBC
-8FC8FB E6BF85
-8FC8FC E6BF87
-8FC8FD E6BF88
-8FC8FE E6BF8A
-8FC9A1 E6BF9A
-8FC9A2 E6BF9E
-8FC9A3 E6BFA8
-8FC9A4 E6BFA9
-8FC9A5 E6BFB0
-8FC9A6 E6BFB5
-8FC9A7 E6BFB9
-8FC9A8 E6BFBC
-8FC9A9 E6BFBD
-8FC9AA E78080
-8FC9AB E78085
-8FC9AC E78086
-8FC9AD E78087
-8FC9AE E7808D
-8FC9AF E78097
-8FC9B0 E780A0
-8FC9B1 E780A3
-8FC9B2 E780AF
-8FC9B3 E780B4
-8FC9B4 E780B7
-8FC9B5 E780B9
-8FC9B6 E780BC
-8FC9B7 E78183
-8FC9B8 E78184
-8FC9B9 E78188
-8FC9BA E78189
-8FC9BB E7818A
-8FC9BC E7818B
-8FC9BD E78194
-8FC9BE E78195
-8FC9BF E7819D
-8FC9C0 E7819E
-8FC9C1 E7818E
-8FC9C2 E781A4
-8FC9C3 E781A5
-8FC9C4 E781AC
-8FC9C5 E781AE
-8FC9C6 E781B5
-8FC9C7 E781B6
-8FC9C8 E781BE
-8FC9C9 E78281
-8FC9CA E78285
-8FC9CB E78286
-8FC9CC E78294
-8FC9CD E78295
-8FC9CE E78296
-8FC9CF E78297
-8FC9D0 E78298
-8FC9D1 E7829B
-8FC9D2 E782A4
-8FC9D3 E782AB
-8FC9D4 E782B0
-8FC9D5 E782B1
-8FC9D6 E782B4
-8FC9D7 E782B7
-8FC9D8 E7838A
-8FC9D9 E78391
-8FC9DA E78393
-8FC9DB E78394
-8FC9DC E78395
-8FC9DD E78396
-8FC9DE E78398
-8FC9DF E7839C
-8FC9E0 E783A4
-8FC9E1 E783BA
-8FC9E2 E78483
-8FC9E3 E78484
-8FC9E4 E78485
-8FC9E5 E78486
-8FC9E6 E78487
-8FC9E7 E7848B
-8FC9E8 E7848C
-8FC9E9 E7848F
-8FC9EA E7849E
-8FC9EB E784A0
-8FC9EC E784AB
-8FC9ED E784AD
-8FC9EE E784AF
-8FC9EF E784B0
-8FC9F0 E784B1
-8FC9F1 E784B8
-8FC9F2 E78581
-8FC9F3 E78585
-8FC9F4 E78586
-8FC9F5 E78587
-8FC9F6 E7858A
-8FC9F7 E7858B
-8FC9F8 E78590
-8FC9F9 E78592
-8FC9FA E78597
-8FC9FB E7859A
-8FC9FC E7859C
-8FC9FD E7859E
-8FC9FE E785A0
-8FCAA1 E785A8
-8FCAA2 E785B9
-8FCAA3 E78680
-8FCAA4 E78685
-8FCAA5 E78687
-8FCAA6 E7868C
-8FCAA7 E78692
-8FCAA8 E7869A
-8FCAA9 E7869B
-8FCAAA E786A0
-8FCAAB E786A2
-8FCAAC E786AF
-8FCAAD E786B0
-8FCAAE E786B2
-8FCAAF E786B3
-8FCAB0 E786BA
-8FCAB1 E786BF
-8FCAB2 E78780
-8FCAB3 E78781
-8FCAB4 E78784
-8FCAB5 E7878B
-8FCAB6 E7878C
-8FCAB7 E78793
-8FCAB8 E78796
-8FCAB9 E78799
-8FCABA E7879A
-8FCABB E7879C
-8FCABC E787B8
-8FCABD E787BE
-8FCABE E78880
-8FCABF E78887
-8FCAC0 E78888
-8FCAC1 E78889
-8FCAC2 E78893
-8FCAC3 E78897
-8FCAC4 E7889A
-8FCAC5 E7889D
-8FCAC6 E7889F
-8FCAC7 E788A4
-8FCAC8 E788AB
-8FCAC9 E788AF
-8FCACA E788B4
-8FCACB E788B8
-8FCACC E788B9
-8FCACD E78981
-8FCACE E78982
-8FCACF E78983
-8FCAD0 E78985
-8FCAD1 E7898E
-8FCAD2 E7898F
-8FCAD3 E78990
-8FCAD4 E78993
-8FCAD5 E78995
-8FCAD6 E78996
-8FCAD7 E7899A
-8FCAD8 E7899C
-8FCAD9 E7899E
-8FCADA E789A0
-8FCADB E789A3
-8FCADC E789A8
-8FCADD E789AB
-8FCADE E789AE
-8FCADF E789AF
-8FCAE0 E789B1
-8FCAE1 E789B7
-8FCAE2 E789B8
-8FCAE3 E789BB
-8FCAE4 E789BC
-8FCAE5 E789BF
-8FCAE6 E78A84
-8FCAE7 E78A89
-8FCAE8 E78A8D
-8FCAE9 E78A8E
-8FCAEA E78A93
-8FCAEB E78A9B
-8FCAEC E78AA8
-8FCAED E78AAD
-8FCAEE E78AAE
-8FCAEF E78AB1
-8FCAF0 E78AB4
-8FCAF1 E78ABE
-8FCAF2 E78B81
-8FCAF3 E78B87
-8FCAF4 E78B89
-8FCAF5 E78B8C
-8FCAF6 E78B95
-8FCAF7 E78B96
-8FCAF8 E78B98
-8FCAF9 E78B9F
-8FCAFA E78BA5
-8FCAFB E78BB3
-8FCAFC E78BB4
-8FCAFD E78BBA
-8FCAFE E78BBB
-8FCBA1 E78BBE
-8FCBA2 E78C82
-8FCBA3 E78C84
-8FCBA4 E78C85
-8FCBA5 E78C87
-8FCBA6 E78C8B
-8FCBA7 E78C8D
-8FCBA8 E78C92
-8FCBA9 E78C93
-8FCBAA E78C98
-8FCBAB E78C99
-8FCBAC E78C9E
-8FCBAD E78CA2
-8FCBAE E78CA4
-8FCBAF E78CA7
-8FCBB0 E78CA8
-8FCBB1 E78CAC
-8FCBB2 E78CB1
-8FCBB3 E78CB2
-8FCBB4 E78CB5
-8FCBB5 E78CBA
-8FCBB6 E78CBB
-8FCBB7 E78CBD
-8FCBB8 E78D83
-8FCBB9 E78D8D
-8FCBBA E78D90
-8FCBBB E78D92
-8FCBBC E78D96
-8FCBBD E78D98
-8FCBBE E78D9D
-8FCBBF E78D9E
-8FCBC0 E78D9F
-8FCBC1 E78DA0
-8FCBC2 E78DA6
-8FCBC3 E78DA7
-8FCBC4 E78DA9
-8FCBC5 E78DAB
-8FCBC6 E78DAC
-8FCBC7 E78DAE
-8FCBC8 E78DAF
-8FCBC9 E78DB1
-8FCBCA E78DB7
-8FCBCB E78DB9
-8FCBCC E78DBC
-8FCBCD E78E80
-8FCBCE E78E81
-8FCBCF E78E83
-8FCBD0 E78E85
-8FCBD1 E78E86
-8FCBD2 E78E8E
-8FCBD3 E78E90
-8FCBD4 E78E93
-8FCBD5 E78E95
-8FCBD6 E78E97
-8FCBD7 E78E98
-8FCBD8 E78E9C
-8FCBD9 E78E9E
-8FCBDA E78E9F
-8FCBDB E78EA0
-8FCBDC E78EA2
-8FCBDD E78EA5
-8FCBDE E78EA6
-8FCBDF E78EAA
-8FCBE0 E78EAB
-8FCBE1 E78EAD
-8FCBE2 E78EB5
-8FCBE3 E78EB7
-8FCBE4 E78EB9
-8FCBE5 E78EBC
-8FCBE6 E78EBD
-8FCBE7 E78EBF
-8FCBE8 E78F85
-8FCBE9 E78F86
-8FCBEA E78F89
-8FCBEB E78F8B
-8FCBEC E78F8C
-8FCBED E78F8F
-8FCBEE E78F92
-8FCBEF E78F93
-8FCBF0 E78F96
-8FCBF1 E78F99
-8FCBF2 E78F9D
-8FCBF3 E78FA1
-8FCBF4 E78FA3
-8FCBF5 E78FA6
-8FCBF6 E78FA7
-8FCBF7 E78FA9
-8FCBF8 E78FB4
-8FCBF9 E78FB5
-8FCBFA E78FB7
-8FCBFB E78FB9
-8FCBFC E78FBA
-8FCBFD E78FBB
-8FCBFE E78FBD
-8FCCA1 E78FBF
-8FCCA2 E79080
-8FCCA3 E79081
-8FCCA4 E79084
-8FCCA5 E79087
-8FCCA6 E7908A
-8FCCA7 E79091
-8FCCA8 E7909A
-8FCCA9 E7909B
-8FCCAA E790A4
-8FCCAB E790A6
-8FCCAC E790A8
-8FCCAD E790A9
-8FCCAE E790AA
-8FCCAF E790AB
-8FCCB0 E790AC
-8FCCB1 E790AD
-8FCCB2 E790AE
-8FCCB3 E790AF
-8FCCB4 E790B0
-8FCCB5 E790B1
-8FCCB6 E790B9
-8FCCB7 E79180
-8FCCB8 E79183
-8FCCB9 E79184
-8FCCBA E79186
-8FCCBB E79187
-8FCCBC E7918B
-8FCCBD E7918D
-8FCCBE E79191
-8FCCBF E79192
-8FCCC0 E79197
-8FCCC1 E7919D
-8FCCC2 E791A2
-8FCCC3 E791A6
-8FCCC4 E791A7
-8FCCC5 E791A8
-8FCCC6 E791AB
-8FCCC7 E791AD
-8FCCC8 E791AE
-8FCCC9 E791B1
-8FCCCA E791B2
-8FCCCB E79280
-8FCCCC E79281
-8FCCCD E79285
-8FCCCE E79286
-8FCCCF E79287
-8FCCD0 E79289
-8FCCD1 E7928F
-8FCCD2 E79290
-8FCCD3 E79291
-8FCCD4 E79292
-8FCCD5 E79298
-8FCCD6 E79299
-8FCCD7 E7929A
-8FCCD8 E7929C
-8FCCD9 E7929F
-8FCCDA E792A0
-8FCCDB E792A1
-8FCCDC E792A3
-8FCCDD E792A6
-8FCCDE E792A8
-8FCCDF E792A9
-8FCCE0 E792AA
-8FCCE1 E792AB
-8FCCE2 E792AE
-8FCCE3 E792AF
-8FCCE4 E792B1
-8FCCE5 E792B2
-8FCCE6 E792B5
-8FCCE7 E792B9
-8FCCE8 E792BB
-8FCCE9 E792BF
-8FCCEA E79388
-8FCCEB E79389
-8FCCEC E7938C
-8FCCED E79390
-8FCCEE E79393
-8FCCEF E79398
-8FCCF0 E7939A
-8FCCF1 E7939B
-8FCCF2 E7939E
-8FCCF3 E7939F
-8FCCF4 E793A4
-8FCCF5 E793A8
-8FCCF6 E793AA
-8FCCF7 E793AB
-8FCCF8 E793AF
-8FCCF9 E793B4
-8FCCFA E793BA
-8FCCFB E793BB
-8FCCFC E793BC
-8FCCFD E793BF
-8FCCFE E79486
-8FCDA1 E79492
-8FCDA2 E79496
-8FCDA3 E79497
-8FCDA4 E794A0
-8FCDA5 E794A1
-8FCDA6 E794A4
-8FCDA7 E794A7
-8FCDA8 E794A9
-8FCDA9 E794AA
-8FCDAA E794AF
-8FCDAB E794B6
-8FCDAC E794B9
-8FCDAD E794BD
-8FCDAE E794BE
-8FCDAF E794BF
-8FCDB0 E79580
-8FCDB1 E79583
-8FCDB2 E79587
-8FCDB3 E79588
-8FCDB4 E7958E
-8FCDB5 E79590
-8FCDB6 E79592
-8FCDB7 E79597
-8FCDB8 E7959E
-8FCDB9 E7959F
-8FCDBA E795A1
-8FCDBB E795AF
-8FCDBC E795B1
-8FCDBD E795B9
-8FCDBE E795BA
-8FCDBF E795BB
-8FCDC0 E795BC
-8FCDC1 E795BD
-8FCDC2 E795BE
-8FCDC3 E79681
-8FCDC4 E79685
-8FCDC5 E79690
-8FCDC6 E79692
-8FCDC7 E79693
-8FCDC8 E79695
-8FCDC9 E79699
-8FCDCA E7969C
-8FCDCB E796A2
-8FCDCC E796A4
-8FCDCD E796B4
-8FCDCE E796BA
-8FCDCF E796BF
-8FCDD0 E79780
-8FCDD1 E79781
-8FCDD2 E79784
-8FCDD3 E79786
-8FCDD4 E7978C
-8FCDD5 E7978E
-8FCDD6 E7978F
-8FCDD7 E79797
-8FCDD8 E7979C
-8FCDD9 E7979F
-8FCDDA E797A0
-8FCDDB E797A1
-8FCDDC E797A4
-8FCDDD E797A7
-8FCDDE E797AC
-8FCDDF E797AE
-8FCDE0 E797AF
-8FCDE1 E797B1
-8FCDE2 E797B9
-8FCDE3 E79880
-8FCDE4 E79882
-8FCDE5 E79883
-8FCDE6 E79884
-8FCDE7 E79887
-8FCDE8 E79888
-8FCDE9 E7988A
-8FCDEA E7988C
-8FCDEB E7988F
-8FCDEC E79892
-8FCDED E79893
-8FCDEE E79895
-8FCDEF E79896
-8FCDF0 E79899
-8FCDF1 E7989B
-8FCDF2 E7989C
-8FCDF3 E7989D
-8FCDF4 E7989E
-8FCDF5 E798A3
-8FCDF6 E798A5
-8FCDF7 E798A6
-8FCDF8 E798A9
-8FCDF9 E798AD
-8FCDFA E798B2
-8FCDFB E798B3
-8FCDFC E798B5
-8FCDFD E798B8
-8FCDFE E798B9
-8FCEA1 E798BA
-8FCEA2 E798BC
-8FCEA3 E7998A
-8FCEA4 E79980
-8FCEA5 E79981
-8FCEA6 E79983
-8FCEA7 E79984
-8FCEA8 E79985
-8FCEA9 E79989
-8FCEAA E7998B
-8FCEAB E79995
-8FCEAC E79999
-8FCEAD E7999F
-8FCEAE E799A4
-8FCEAF E799A5
-8FCEB0 E799AD
-8FCEB1 E799AE
-8FCEB2 E799AF
-8FCEB3 E799B1
-8FCEB4 E799B4
-8FCEB5 E79A81
-8FCEB6 E79A85
-8FCEB7 E79A8C
-8FCEB8 E79A8D
-8FCEB9 E79A95
-8FCEBA E79A9B
-8FCEBB E79A9C
-8FCEBC E79A9D
-8FCEBD E79A9F
-8FCEBE E79AA0
-8FCEBF E79AA2
-8FCEC0 E79AA3
-8FCEC1 E79AA4
-8FCEC2 E79AA5
-8FCEC3 E79AA6
-8FCEC4 E79AA7
-8FCEC5 E79AA8
-8FCEC6 E79AAA
-8FCEC7 E79AAD
-8FCEC8 E79ABD
-8FCEC9 E79B81
-8FCECA E79B85
-8FCECB E79B89
-8FCECC E79B8B
-8FCECD E79B8C
-8FCECE E79B8E
-8FCECF E79B94
-8FCED0 E79B99
-8FCED1 E79BA0
-8FCED2 E79BA6
-8FCED3 E79BA8
-8FCED4 E79BAC
-8FCED5 E79BB0
-8FCED6 E79BB1
-8FCED7 E79BB6
-8FCED8 E79BB9
-8FCED9 E79BBC
-8FCEDA E79C80
-8FCEDB E79C86
-8FCEDC E79C8A
-8FCEDD E79C8E
-8FCEDE E79C92
-8FCEDF E79C94
-8FCEE0 E79C95
-8FCEE1 E79C97
-8FCEE2 E79C99
-8FCEE3 E79C9A
-8FCEE4 E79C9C
-8FCEE5 E79CA2
-8FCEE6 E79CA8
-8FCEE7 E79CAD
-8FCEE8 E79CAE
-8FCEE9 E79CAF
-8FCEEA E79CB4
-8FCEEB E79CB5
-8FCEEC E79CB6
-8FCEED E79CB9
-8FCEEE E79CBD
-8FCEEF E79CBE
-8FCEF0 E79D82
-8FCEF1 E79D85
-8FCEF2 E79D86
-8FCEF3 E79D8A
-8FCEF4 E79D8D
-8FCEF5 E79D8E
-8FCEF6 E79D8F
-8FCEF7 E79D92
-8FCEF8 E79D96
-8FCEF9 E79D97
-8FCEFA E79D9C
-8FCEFB E79D9E
-8FCEFC E79D9F
-8FCEFD E79DA0
-8FCEFE E79DA2
-8FCFA1 E79DA4
-8FCFA2 E79DA7
-8FCFA3 E79DAA
-8FCFA4 E79DAC
-8FCFA5 E79DB0
-8FCFA6 E79DB2
-8FCFA7 E79DB3
-8FCFA8 E79DB4
-8FCFA9 E79DBA
-8FCFAA E79DBD
-8FCFAB E79E80
-8FCFAC E79E84
-8FCFAD E79E8C
-8FCFAE E79E8D
-8FCFAF E79E94
-8FCFB0 E79E95
-8FCFB1 E79E96
-8FCFB2 E79E9A
-8FCFB3 E79E9F
-8FCFB4 E79EA2
-8FCFB5 E79EA7
-8FCFB6 E79EAA
-8FCFB7 E79EAE
-8FCFB8 E79EAF
-8FCFB9 E79EB1
-8FCFBA E79EB5
-8FCFBB E79EBE
-8FCFBC E79F83
-8FCFBD E79F89
-8FCFBE E79F91
-8FCFBF E79F92
-8FCFC0 E79F95
-8FCFC1 E79F99
-8FCFC2 E79F9E
-8FCFC3 E79F9F
-8FCFC4 E79FA0
-8FCFC5 E79FA4
-8FCFC6 E79FA6
-8FCFC7 E79FAA
-8FCFC8 E79FAC
-8FCFC9 E79FB0
-8FCFCA E79FB1
-8FCFCB E79FB4
-8FCFCC E79FB8
-8FCFCD E79FBB
-8FCFCE E7A085
-8FCFCF E7A086
-8FCFD0 E7A089
-8FCFD1 E7A08D
-8FCFD2 E7A08E
-8FCFD3 E7A091
-8FCFD4 E7A09D
-8FCFD5 E7A0A1
-8FCFD6 E7A0A2
-8FCFD7 E7A0A3
-8FCFD8 E7A0AD
-8FCFD9 E7A0AE
-8FCFDA E7A0B0
-8FCFDB E7A0B5
-8FCFDC E7A0B7
-8FCFDD E7A183
-8FCFDE E7A184
-8FCFDF E7A187
-8FCFE0 E7A188
-8FCFE1 E7A18C
-8FCFE2 E7A18E
-8FCFE3 E7A192
-8FCFE4 E7A19C
-8FCFE5 E7A19E
-8FCFE6 E7A1A0
-8FCFE7 E7A1A1
-8FCFE8 E7A1A3
-8FCFE9 E7A1A4
-8FCFEA E7A1A8
-8FCFEB E7A1AA
-8FCFEC E7A1AE
-8FCFED E7A1BA
-8FCFEE E7A1BE
-8FCFEF E7A28A
-8FCFF0 E7A28F
-8FCFF1 E7A294
-8FCFF2 E7A298
-8FCFF3 E7A2A1
-8FCFF4 E7A29D
-8FCFF5 E7A29E
-8FCFF6 E7A29F
-8FCFF7 E7A2A4
-8FCFF8 E7A2A8
-8FCFF9 E7A2AC
-8FCFFA E7A2AD
-8FCFFB E7A2B0
-8FCFFC E7A2B1
-8FCFFD E7A2B2
-8FCFFE E7A2B3
-8FD0A1 E7A2BB
-8FD0A2 E7A2BD
-8FD0A3 E7A2BF
-8FD0A4 E7A387
-8FD0A5 E7A388
-8FD0A6 E7A389
-8FD0A7 E7A38C
-8FD0A8 E7A38E
-8FD0A9 E7A392
-8FD0AA E7A393
-8FD0AB E7A395
-8FD0AC E7A396
-8FD0AD E7A3A4
-8FD0AE E7A39B
-8FD0AF E7A39F
-8FD0B0 E7A3A0
-8FD0B1 E7A3A1
-8FD0B2 E7A3A6
-8FD0B3 E7A3AA
-8FD0B4 E7A3B2
-8FD0B5 E7A3B3
-8FD0B6 E7A480
-8FD0B7 E7A3B6
-8FD0B8 E7A3B7
-8FD0B9 E7A3BA
-8FD0BA E7A3BB
-8FD0BB E7A3BF
-8FD0BC E7A486
-8FD0BD E7A48C
-8FD0BE E7A490
-8FD0BF E7A49A
-8FD0C0 E7A49C
-8FD0C1 E7A49E
-8FD0C2 E7A49F
-8FD0C3 E7A4A0
-8FD0C4 E7A4A5
-8FD0C5 E7A4A7
-8FD0C6 E7A4A9
-8FD0C7 E7A4AD
-8FD0C8 E7A4B1
-8FD0C9 E7A4B4
-8FD0CA E7A4B5
-8FD0CB E7A4BB
-8FD0CC E7A4BD
-8FD0CD E7A4BF
-8FD0CE E7A584
-8FD0CF E7A585
-8FD0D0 E7A586
-8FD0D1 E7A58A
-8FD0D2 E7A58B
-8FD0D3 E7A58F
-8FD0D4 E7A591
-8FD0D5 E7A594
-8FD0D6 E7A598
-8FD0D7 E7A59B
-8FD0D8 E7A59C
-8FD0D9 E7A5A7
-8FD0DA E7A5A9
-8FD0DB E7A5AB
-8FD0DC E7A5B2
-8FD0DD E7A5B9
-8FD0DE E7A5BB
-8FD0DF E7A5BC
-8FD0E0 E7A5BE
-8FD0E1 E7A68B
-8FD0E2 E7A68C
-8FD0E3 E7A691
-8FD0E4 E7A693
-8FD0E5 E7A694
-8FD0E6 E7A695
-8FD0E7 E7A696
-8FD0E8 E7A698
-8FD0E9 E7A69B
-8FD0EA E7A69C
-8FD0EB E7A6A1
-8FD0EC E7A6A8
-8FD0ED E7A6A9
-8FD0EE E7A6AB
-8FD0EF E7A6AF
-8FD0F0 E7A6B1
-8FD0F1 E7A6B4
-8FD0F2 E7A6B8
-8FD0F3 E7A6BB
-8FD0F4 E7A782
-8FD0F5 E7A784
-8FD0F6 E7A787
-8FD0F7 E7A788
-8FD0F8 E7A78A
-8FD0F9 E7A78F
-8FD0FA E7A794
-8FD0FB E7A796
-8FD0FC E7A79A
-8FD0FD E7A79D
-8FD0FE E7A79E
-8FD1A1 E7A7A0
-8FD1A2 E7A7A2
-8FD1A3 E7A7A5
-8FD1A4 E7A7AA
-8FD1A5 E7A7AB
-8FD1A6 E7A7AD
-8FD1A7 E7A7B1
-8FD1A8 E7A7B8
-8FD1A9 E7A7BC
-8FD1AA E7A882
-8FD1AB E7A883
-8FD1AC E7A887
-8FD1AD E7A889
-8FD1AE E7A88A
-8FD1AF E7A88C
-8FD1B0 E7A891
-8FD1B1 E7A895
-8FD1B2 E7A89B
-8FD1B3 E7A89E
-8FD1B4 E7A8A1
-8FD1B5 E7A8A7
-8FD1B6 E7A8AB
-8FD1B7 E7A8AD
-8FD1B8 E7A8AF
-8FD1B9 E7A8B0
-8FD1BA E7A8B4
-8FD1BB E7A8B5
-8FD1BC E7A8B8
-8FD1BD E7A8B9
-8FD1BE E7A8BA
-8FD1BF E7A984
-8FD1C0 E7A985
-8FD1C1 E7A987
-8FD1C2 E7A988
-8FD1C3 E7A98C
-8FD1C4 E7A995
-8FD1C5 E7A996
-8FD1C6 E7A999
-8FD1C7 E7A99C
-8FD1C8 E7A99D
-8FD1C9 E7A99F
-8FD1CA E7A9A0
-8FD1CB E7A9A5
-8FD1CC E7A9A7
-8FD1CD E7A9AA
-8FD1CE E7A9AD
-8FD1CF E7A9B5
-8FD1D0 E7A9B8
-8FD1D1 E7A9BE
-8FD1D2 E7AA80
-8FD1D3 E7AA82
-8FD1D4 E7AA85
-8FD1D5 E7AA86
-8FD1D6 E7AA8A
-8FD1D7 E7AA8B
-8FD1D8 E7AA90
-8FD1D9 E7AA91
-8FD1DA E7AA94
-8FD1DB E7AA9E
-8FD1DC E7AAA0
-8FD1DD E7AAA3
-8FD1DE E7AAAC
-8FD1DF E7AAB3
-8FD1E0 E7AAB5
-8FD1E1 E7AAB9
-8FD1E2 E7AABB
-8FD1E3 E7AABC
-8FD1E4 E7AB86
-8FD1E5 E7AB89
-8FD1E6 E7AB8C
-8FD1E7 E7AB8E
-8FD1E8 E7AB91
-8FD1E9 E7AB9B
-8FD1EA E7ABA8
-8FD1EB E7ABA9
-8FD1EC E7ABAB
-8FD1ED E7ABAC
-8FD1EE E7ABB1
-8FD1EF E7ABB4
-8FD1F0 E7ABBB
-8FD1F1 E7ABBD
-8FD1F2 E7ABBE
-8FD1F3 E7AC87
-8FD1F4 E7AC94
-8FD1F5 E7AC9F
-8FD1F6 E7ACA3
-8FD1F7 E7ACA7
-8FD1F8 E7ACA9
-8FD1F9 E7ACAA
-8FD1FA E7ACAB
-8FD1FB E7ACAD
-8FD1FC E7ACAE
-8FD1FD E7ACAF
-8FD1FE E7ACB0
-8FD2A1 E7ACB1
-8FD2A2 E7ACB4
-8FD2A3 E7ACBD
-8FD2A4 E7ACBF
-8FD2A5 E7AD80
-8FD2A6 E7AD81
-8FD2A7 E7AD87
-8FD2A8 E7AD8E
-8FD2A9 E7AD95
-8FD2AA E7ADA0
-8FD2AB E7ADA4
-8FD2AC E7ADA6
-8FD2AD E7ADA9
-8FD2AE E7ADAA
-8FD2AF E7ADAD
-8FD2B0 E7ADAF
-8FD2B1 E7ADB2
-8FD2B2 E7ADB3
-8FD2B3 E7ADB7
-8FD2B4 E7AE84
-8FD2B5 E7AE89
-8FD2B6 E7AE8E
-8FD2B7 E7AE90
-8FD2B8 E7AE91
-8FD2B9 E7AE96
-8FD2BA E7AE9B
-8FD2BB E7AE9E
-8FD2BC E7AEA0
-8FD2BD E7AEA5
-8FD2BE E7AEAC
-8FD2BF E7AEAF
-8FD2C0 E7AEB0
-8FD2C1 E7AEB2
-8FD2C2 E7AEB5
-8FD2C3 E7AEB6
-8FD2C4 E7AEBA
-8FD2C5 E7AEBB
-8FD2C6 E7AEBC
-8FD2C7 E7AEBD
-8FD2C8 E7AF82
-8FD2C9 E7AF85
-8FD2CA E7AF88
-8FD2CB E7AF8A
-8FD2CC E7AF94
-8FD2CD E7AF96
-8FD2CE E7AF97
-8FD2CF E7AF99
-8FD2D0 E7AF9A
-8FD2D1 E7AF9B
-8FD2D2 E7AFA8
-8FD2D3 E7AFAA
-8FD2D4 E7AFB2
-8FD2D5 E7AFB4
-8FD2D6 E7AFB5
-8FD2D7 E7AFB8
-8FD2D8 E7AFB9
-8FD2D9 E7AFBA
-8FD2DA E7AFBC
-8FD2DB E7AFBE
-8FD2DC E7B081
-8FD2DD E7B082
-8FD2DE E7B083
-8FD2DF E7B084
-8FD2E0 E7B086
-8FD2E1 E7B089
-8FD2E2 E7B08B
-8FD2E3 E7B08C
-8FD2E4 E7B08E
-8FD2E5 E7B08F
-8FD2E6 E7B099
-8FD2E7 E7B09B
-8FD2E8 E7B0A0
-8FD2E9 E7B0A5
-8FD2EA E7B0A6
-8FD2EB E7B0A8
-8FD2EC E7B0AC
-8FD2ED E7B0B1
-8FD2EE E7B0B3
-8FD2EF E7B0B4
-8FD2F0 E7B0B6
-8FD2F1 E7B0B9
-8FD2F2 E7B0BA
-8FD2F3 E7B186
-8FD2F4 E7B18A
-8FD2F5 E7B195
-8FD2F6 E7B191
-8FD2F7 E7B192
-8FD2F8 E7B193
-8FD2F9 E7B199
-8FD2FA E7B19A
-8FD2FB E7B19B
-8FD2FC E7B19C
-8FD2FD E7B19D
-8FD2FE E7B19E
-8FD3A1 E7B1A1
-8FD3A2 E7B1A3
-8FD3A3 E7B1A7
-8FD3A4 E7B1A9
-8FD3A5 E7B1AD
-8FD3A6 E7B1AE
-8FD3A7 E7B1B0
-8FD3A8 E7B1B2
-8FD3A9 E7B1B9
-8FD3AA E7B1BC
-8FD3AB E7B1BD
-8FD3AC E7B286
-8FD3AD E7B287
-8FD3AE E7B28F
-8FD3AF E7B294
-8FD3B0 E7B29E
-8FD3B1 E7B2A0
-8FD3B2 E7B2A6
-8FD3B3 E7B2B0
-8FD3B4 E7B2B6
-8FD3B5 E7B2B7
-8FD3B6 E7B2BA
-8FD3B7 E7B2BB
-8FD3B8 E7B2BC
-8FD3B9 E7B2BF
-8FD3BA E7B384
-8FD3BB E7B387
-8FD3BC E7B388
-8FD3BD E7B389
-8FD3BE E7B38D
-8FD3BF E7B38F
-8FD3C0 E7B393
-8FD3C1 E7B394
-8FD3C2 E7B395
-8FD3C3 E7B397
-8FD3C4 E7B399
-8FD3C5 E7B39A
-8FD3C6 E7B39D
-8FD3C7 E7B3A6
-8FD3C8 E7B3A9
-8FD3C9 E7B3AB
-8FD3CA E7B3B5
-8FD3CB E7B483
-8FD3CC E7B487
-8FD3CD E7B488
-8FD3CE E7B489
-8FD3CF E7B48F
-8FD3D0 E7B491
-8FD3D1 E7B492
-8FD3D2 E7B493
-8FD3D3 E7B496
-8FD3D4 E7B49D
-8FD3D5 E7B49E
-8FD3D6 E7B4A3
-8FD3D7 E7B4A6
-8FD3D8 E7B4AA
-8FD3D9 E7B4AD
-8FD3DA E7B4B1
-8FD3DB E7B4BC
-8FD3DC E7B4BD
-8FD3DD E7B4BE
-8FD3DE E7B580
-8FD3DF E7B581
-8FD3E0 E7B587
-8FD3E1 E7B588
-8FD3E2 E7B58D
-8FD3E3 E7B591
-8FD3E4 E7B593
-8FD3E5 E7B597
-8FD3E6 E7B599
-8FD3E7 E7B59A
-8FD3E8 E7B59C
-8FD3E9 E7B59D
-8FD3EA E7B5A5
-8FD3EB E7B5A7
-8FD3EC E7B5AA
-8FD3ED E7B5B0
-8FD3EE E7B5B8
-8FD3EF E7B5BA
-8FD3F0 E7B5BB
-8FD3F1 E7B5BF
-8FD3F2 E7B681
-8FD3F3 E7B682
-8FD3F4 E7B683
-8FD3F5 E7B685
-8FD3F6 E7B686
-8FD3F7 E7B688
-8FD3F8 E7B68B
-8FD3F9 E7B68C
-8FD3FA E7B68D
-8FD3FB E7B691
-8FD3FC E7B696
-8FD3FD E7B697
-8FD3FE E7B69D
-8FD4A1 E7B69E
-8FD4A2 E7B6A6
-8FD4A3 E7B6A7
-8FD4A4 E7B6AA
-8FD4A5 E7B6B3
-8FD4A6 E7B6B6
-8FD4A7 E7B6B7
-8FD4A8 E7B6B9
-8FD4A9 E7B782
-8FD4AA E7B783
-8FD4AB E7B784
-8FD4AC E7B785
-8FD4AD E7B786
-8FD4AE E7B78C
-8FD4AF E7B78D
-8FD4B0 E7B78E
-8FD4B1 E7B797
-8FD4B2 E7B799
-8FD4B3 E7B880
-8FD4B4 E7B7A2
-8FD4B5 E7B7A5
-8FD4B6 E7B7A6
-8FD4B7 E7B7AA
-8FD4B8 E7B7AB
-8FD4B9 E7B7AD
-8FD4BA E7B7B1
-8FD4BB E7B7B5
-8FD4BC E7B7B6
-8FD4BD E7B7B9
-8FD4BE E7B7BA
-8FD4BF E7B888
-8FD4C0 E7B890
-8FD4C1 E7B891
-8FD4C2 E7B895
-8FD4C3 E7B897
-8FD4C4 E7B89C
-8FD4C5 E7B89D
-8FD4C6 E7B8A0
-8FD4C7 E7B8A7
-8FD4C8 E7B8A8
-8FD4C9 E7B8AC
-8FD4CA E7B8AD
-8FD4CB E7B8AF
-8FD4CC E7B8B3
-8FD4CD E7B8B6
-8FD4CE E7B8BF
-8FD4CF E7B984
-8FD4D0 E7B985
-8FD4D1 E7B987
-8FD4D2 E7B98E
-8FD4D3 E7B990
-8FD4D4 E7B992
-8FD4D5 E7B998
-8FD4D6 E7B99F
-8FD4D7 E7B9A1
-8FD4D8 E7B9A2
-8FD4D9 E7B9A5
-8FD4DA E7B9AB
-8FD4DB E7B9AE
-8FD4DC E7B9AF
-8FD4DD E7B9B3
-8FD4DE E7B9B8
-8FD4DF E7B9BE
-8FD4E0 E7BA81
-8FD4E1 E7BA86
-8FD4E2 E7BA87
-8FD4E3 E7BA8A
-8FD4E4 E7BA8D
-8FD4E5 E7BA91
-8FD4E6 E7BA95
-8FD4E7 E7BA98
-8FD4E8 E7BA9A
-8FD4E9 E7BA9D
-8FD4EA E7BA9E
-8FD4EB E7BCBC
-8FD4EC E7BCBB
-8FD4ED E7BCBD
-8FD4EE E7BCBE
-8FD4EF E7BCBF
-8FD4F0 E7BD83
-8FD4F1 E7BD84
-8FD4F2 E7BD87
-8FD4F3 E7BD8F
-8FD4F4 E7BD92
-8FD4F5 E7BD93
-8FD4F6 E7BD9B
-8FD4F7 E7BD9C
-8FD4F8 E7BD9D
-8FD4F9 E7BDA1
-8FD4FA E7BDA3
-8FD4FB E7BDA4
-8FD4FC E7BDA5
-8FD4FD E7BDA6
-8FD4FE E7BDAD
-8FD5A1 E7BDB1
-8FD5A2 E7BDBD
-8FD5A3 E7BDBE
-8FD5A4 E7BDBF
-8FD5A5 E7BE80
-8FD5A6 E7BE8B
-8FD5A7 E7BE8D
-8FD5A8 E7BE8F
-8FD5A9 E7BE90
-8FD5AA E7BE91
-8FD5AB E7BE96
-8FD5AC E7BE97
-8FD5AD E7BE9C
-8FD5AE E7BEA1
-8FD5AF E7BEA2
-8FD5B0 E7BEA6
-8FD5B1 E7BEAA
-8FD5B2 E7BEAD
-8FD5B3 E7BEB4
-8FD5B4 E7BEBC
-8FD5B5 E7BEBF
-8FD5B6 E7BF80
-8FD5B7 E7BF83
-8FD5B8 E7BF88
-8FD5B9 E7BF8E
-8FD5BA E7BF8F
-8FD5BB E7BF9B
-8FD5BC E7BF9F
-8FD5BD E7BFA3
-8FD5BE E7BFA5
-8FD5BF E7BFA8
-8FD5C0 E7BFAC
-8FD5C1 E7BFAE
-8FD5C2 E7BFAF
-8FD5C3 E7BFB2
-8FD5C4 E7BFBA
-8FD5C5 E7BFBD
-8FD5C6 E7BFBE
-8FD5C7 E7BFBF
-8FD5C8 E88087
-8FD5C9 E88088
-8FD5CA E8808A
-8FD5CB E8808D
-8FD5CC E8808E
-8FD5CD E8808F
-8FD5CE E88091
-8FD5CF E88093
-8FD5D0 E88094
-8FD5D1 E88096
-8FD5D2 E8809D
-8FD5D3 E8809E
-8FD5D4 E8809F
-8FD5D5 E880A0
-8FD5D6 E880A4
-8FD5D7 E880A6
-8FD5D8 E880AC
-8FD5D9 E880AE
-8FD5DA E880B0
-8FD5DB E880B4
-8FD5DC E880B5
-8FD5DD E880B7
-8FD5DE E880B9
-8FD5DF E880BA
-8FD5E0 E880BC
-8FD5E1 E880BE
-8FD5E2 E88180
-8FD5E3 E88184
-8FD5E4 E881A0
-8FD5E5 E881A4
-8FD5E6 E881A6
-8FD5E7 E881AD
-8FD5E8 E881B1
-8FD5E9 E881B5
-8FD5EA E88281
-8FD5EB E88288
-8FD5EC E8828E
-8FD5ED E8829C
-8FD5EE E8829E
-8FD5EF E882A6
-8FD5F0 E882A7
-8FD5F1 E882AB
-8FD5F2 E882B8
-8FD5F3 E882B9
-8FD5F4 E88388
-8FD5F5 E8838D
-8FD5F6 E8838F
-8FD5F7 E88392
-8FD5F8 E88394
-8FD5F9 E88395
-8FD5FA E88397
-8FD5FB E88398
-8FD5FC E883A0
-8FD5FD E883AD
-8FD5FE E883AE
-8FD6A1 E883B0
-8FD6A2 E883B2
-8FD6A3 E883B3
-8FD6A4 E883B6
-8FD6A5 E883B9
-8FD6A6 E883BA
-8FD6A7 E883BE
-8FD6A8 E88483
-8FD6A9 E8848B
-8FD6AA E88496
-8FD6AB E88497
-8FD6AC E88498
-8FD6AD E8849C
-8FD6AE E8849E
-8FD6AF E884A0
-8FD6B0 E884A4
-8FD6B1 E884A7
-8FD6B2 E884AC
-8FD6B3 E884B0
-8FD6B4 E884B5
-8FD6B5 E884BA
-8FD6B6 E884BC
-8FD6B7 E88585
-8FD6B8 E88587
-8FD6B9 E8858A
-8FD6BA E8858C
-8FD6BB E88592
-8FD6BC E88597
-8FD6BD E885A0
-8FD6BE E885A1
-8FD6BF E885A7
-8FD6C0 E885A8
-8FD6C1 E885A9
-8FD6C2 E885AD
-8FD6C3 E885AF
-8FD6C4 E885B7
-8FD6C5 E88681
-8FD6C6 E88690
-8FD6C7 E88684
-8FD6C8 E88685
-8FD6C9 E88686
-8FD6CA E8868B
-8FD6CB E8868E
-8FD6CC E88696
-8FD6CD E88698
-8FD6CE E8869B
-8FD6CF E8869E
-8FD6D0 E886A2
-8FD6D1 E886AE
-8FD6D2 E886B2
-8FD6D3 E886B4
-8FD6D4 E886BB
-8FD6D5 E8878B
-8FD6D6 E88783
-8FD6D7 E88785
-8FD6D8 E8878A
-8FD6D9 E8878E
-8FD6DA E8878F
-8FD6DB E88795
-8FD6DC E88797
-8FD6DD E8879B
-8FD6DE E8879D
-8FD6DF E8879E
-8FD6E0 E887A1
-8FD6E1 E887A4
-8FD6E2 E887AB
-8FD6E3 E887AC
-8FD6E4 E887B0
-8FD6E5 E887B1
-8FD6E6 E887B2
-8FD6E7 E887B5
-8FD6E8 E887B6
-8FD6E9 E887B8
-8FD6EA E887B9
-8FD6EB E887BD
-8FD6EC E887BF
-8FD6ED E88880
-8FD6EE E88883
-8FD6EF E8888F
-8FD6F0 E88893
-8FD6F1 E88894
-8FD6F2 E88899
-8FD6F3 E8889A
-8FD6F4 E8889D
-8FD6F5 E888A1
-8FD6F6 E888A2
-8FD6F7 E888A8
-8FD6F8 E888B2
-8FD6F9 E888B4
-8FD6FA E888BA
-8FD6FB E88983
-8FD6FC E88984
-8FD6FD E88985
-8FD6FE E88986
-8FD7A1 E8898B
-8FD7A2 E8898E
-8FD7A3 E8898F
-8FD7A4 E88991
-8FD7A5 E88996
-8FD7A6 E8899C
-8FD7A7 E889A0
-8FD7A8 E889A3
-8FD7A9 E889A7
-8FD7AA E889AD
-8FD7AB E889B4
-8FD7AC E889BB
-8FD7AD E889BD
-8FD7AE E889BF
-8FD7AF E88A80
-8FD7B0 E88A81
-8FD7B1 E88A83
-8FD7B2 E88A84
-8FD7B3 E88A87
-8FD7B4 E88A89
-8FD7B5 E88A8A
-8FD7B6 E88A8E
-8FD7B7 E88A91
-8FD7B8 E88A94
-8FD7B9 E88A96
-8FD7BA E88A98
-8FD7BB E88A9A
-8FD7BC E88A9B
-8FD7BD E88AA0
-8FD7BE E88AA1
-8FD7BF E88AA3
-8FD7C0 E88AA4
-8FD7C1 E88AA7
-8FD7C2 E88AA8
-8FD7C3 E88AA9
-8FD7C4 E88AAA
-8FD7C5 E88AAE
-8FD7C6 E88AB0
-8FD7C7 E88AB2
-8FD7C8 E88AB4
-8FD7C9 E88AB7
-8FD7CA E88ABA
-8FD7CB E88ABC
-8FD7CC E88ABE
-8FD7CD E88ABF
-8FD7CE E88B86
-8FD7CF E88B90
-8FD7D0 E88B95
-8FD7D1 E88B9A
-8FD7D2 E88BA0
-8FD7D3 E88BA2
-8FD7D4 E88BA4
-8FD7D5 E88BA8
-8FD7D6 E88BAA
-8FD7D7 E88BAD
-8FD7D8 E88BAF
-8FD7D9 E88BB6
-8FD7DA E88BB7
-8FD7DB E88BBD
-8FD7DC E88BBE
-8FD7DD E88C80
-8FD7DE E88C81
-8FD7DF E88C87
-8FD7E0 E88C88
-8FD7E1 E88C8A
-8FD7E2 E88C8B
-8FD7E3 E88D94
-8FD7E4 E88C9B
-8FD7E5 E88C9D
-8FD7E6 E88C9E
-8FD7E7 E88C9F
-8FD7E8 E88CA1
-8FD7E9 E88CA2
-8FD7EA E88CAC
-8FD7EB E88CAD
-8FD7EC E88CAE
-8FD7ED E88CB0
-8FD7EE E88CB3
-8FD7EF E88CB7
-8FD7F0 E88CBA
-8FD7F1 E88CBC
-8FD7F2 E88CBD
-8FD7F3 E88D82
-8FD7F4 E88D83
-8FD7F5 E88D84
-8FD7F6 E88D87
-8FD7F7 E88D8D
-8FD7F8 E88D8E
-8FD7F9 E88D91
-8FD7FA E88D95
-8FD7FB E88D96
-8FD7FC E88D97
-8FD7FD E88DB0
-8FD7FE E88DB8
-8FD8A1 E88DBD
-8FD8A2 E88DBF
-8FD8A3 E88E80
-8FD8A4 E88E82
-8FD8A5 E88E84
-8FD8A6 E88E86
-8FD8A7 E88E8D
-8FD8A8 E88E92
-8FD8A9 E88E94
-8FD8AA E88E95
-8FD8AB E88E98
-8FD8AC E88E99
-8FD8AD E88E9B
-8FD8AE E88E9C
-8FD8AF E88E9D
-8FD8B0 E88EA6
-8FD8B1 E88EA7
-8FD8B2 E88EA9
-8FD8B3 E88EAC
-8FD8B4 E88EBE
-8FD8B5 E88EBF
-8FD8B6 E88F80
-8FD8B7 E88F87
-8FD8B8 E88F89
-8FD8B9 E88F8F
-8FD8BA E88F90
-8FD8BB E88F91
-8FD8BC E88F94
-8FD8BD E88F9D
-8FD8BE E88D93
-8FD8BF E88FA8
-8FD8C0 E88FAA
-8FD8C1 E88FB6
-8FD8C2 E88FB8
-8FD8C3 E88FB9
-8FD8C4 E88FBC
-8FD8C5 E89081
-8FD8C6 E89086
-8FD8C7 E8908A
-8FD8C8 E8908F
-8FD8C9 E89091
-8FD8CA E89095
-8FD8CB E89099
-8FD8CC E88EAD
-8FD8CD E890AF
-8FD8CE E890B9
-8FD8CF E89185
-8FD8D0 E89187
-8FD8D1 E89188
-8FD8D2 E8918A
-8FD8D3 E8918D
-8FD8D4 E8918F
-8FD8D5 E89191
-8FD8D6 E89192
-8FD8D7 E89196
-8FD8D8 E89198
-8FD8D9 E89199
-8FD8DA E8919A
-8FD8DB E8919C
-8FD8DC E891A0
-8FD8DD E891A4
-8FD8DE E891A5
-8FD8DF E891A7
-8FD8E0 E891AA
-8FD8E1 E891B0
-8FD8E2 E891B3
-8FD8E3 E891B4
-8FD8E4 E891B6
-8FD8E5 E891B8
-8FD8E6 E891BC
-8FD8E7 E891BD
-8FD8E8 E89281
-8FD8E9 E89285
-8FD8EA E89292
-8FD8EB E89293
-8FD8EC E89295
-8FD8ED E8929E
-8FD8EE E892A6
-8FD8EF E892A8
-8FD8F0 E892A9
-8FD8F1 E892AA
-8FD8F2 E892AF
-8FD8F3 E892B1
-8FD8F4 E892B4
-8FD8F5 E892BA
-8FD8F6 E892BD
-8FD8F7 E892BE
-8FD8F8 E89380
-8FD8F9 E89382
-8FD8FA E89387
-8FD8FB E89388
-8FD8FC E8938C
-8FD8FD E8938F
-8FD8FE E89393
-8FD9A1 E8939C
-8FD9A2 E893A7
-8FD9A3 E893AA
-8FD9A4 E893AF
-8FD9A5 E893B0
-8FD9A6 E893B1
-8FD9A7 E893B2
-8FD9A8 E893B7
-8FD9A9 E894B2
-8FD9AA E893BA
-8FD9AB E893BB
-8FD9AC E893BD
-8FD9AD E89482
-8FD9AE E89483
-8FD9AF E89487
-8FD9B0 E8948C
-8FD9B1 E8948E
-8FD9B2 E89490
-8FD9B3 E8949C
-8FD9B4 E8949E
-8FD9B5 E894A2
-8FD9B6 E894A3
-8FD9B7 E894A4
-8FD9B8 E894A5
-8FD9B9 E894A7
-8FD9BA E894AA
-8FD9BB E894AB
-8FD9BC E894AF
-8FD9BD E894B3
-8FD9BE E894B4
-8FD9BF E894B6
-8FD9C0 E894BF
-8FD9C1 E89586
-8FD9C2 E8958F
-8FD9C3 E89590
-8FD9C4 E89591
-8FD9C5 E89592
-8FD9C6 E89593
-8FD9C7 E89596
-8FD9C8 E89599
-8FD9C9 E8959C
-8FD9CA E8959D
-8FD9CB E8959E
-8FD9CC E8959F
-8FD9CD E895A0
-8FD9CE E895A1
-8FD9CF E895A2
-8FD9D0 E895A4
-8FD9D1 E895AB
-8FD9D2 E895AF
-8FD9D3 E895B9
-8FD9D4 E895BA
-8FD9D5 E895BB
-8FD9D6 E895BD
-8FD9D7 E895BF
-8FD9D8 E89681
-8FD9D9 E89685
-8FD9DA E89686
-8FD9DB E89689
-8FD9DC E8968B
-8FD9DD E8968C
-8FD9DE E8968F
-8FD9DF E89693
-8FD9E0 E89698
-8FD9E1 E8969D
-8FD9E2 E8969F
-8FD9E3 E896A0
-8FD9E4 E896A2
-8FD9E5 E896A5
-8FD9E6 E896A7
-8FD9E7 E896B4
-8FD9E8 E896B6
-8FD9E9 E896B7
-8FD9EA E896B8
-8FD9EB E896BC
-8FD9EC E896BD
-8FD9ED E896BE
-8FD9EE E896BF
-8FD9EF E89782
-8FD9F0 E89787
-8FD9F1 E8978A
-8FD9F2 E8978B
-8FD9F3 E8978E
-8FD9F4 E896AD
-8FD9F5 E89798
-8FD9F6 E8979A
-8FD9F7 E8979F
-8FD9F8 E897A0
-8FD9F9 E897A6
-8FD9FA E897A8
-8FD9FB E897AD
-8FD9FC E897B3
-8FD9FD E897B6
-8FD9FE E897BC
-8FDAA1 E897BF
-8FDAA2 E89880
-8FDAA3 E89884
-8FDAA4 E89885
-8FDAA5 E8988D
-8FDAA6 E8988E
-8FDAA7 E89890
-8FDAA8 E89891
-8FDAA9 E89892
-8FDAAA E89898
-8FDAAB E89899
-8FDAAC E8989B
-8FDAAD E8989E
-8FDAAE E898A1
-8FDAAF E898A7
-8FDAB0 E898A9
-8FDAB1 E898B6
-8FDAB2 E898B8
-8FDAB3 E898BA
-8FDAB4 E898BC
-8FDAB5 E898BD
-8FDAB6 E89980
-8FDAB7 E89982
-8FDAB8 E89986
-8FDAB9 E89992
-8FDABA E89993
-8FDABB E89996
-8FDABC E89997
-8FDABD E89998
-8FDABE E89999
-8FDABF E8999D
-8FDAC0 E899A0
-8FDAC1 E899A1
-8FDAC2 E899A2
-8FDAC3 E899A3
-8FDAC4 E899A4
-8FDAC5 E899A9
-8FDAC6 E899AC
-8FDAC7 E899AF
-8FDAC8 E899B5
-8FDAC9 E899B6
-8FDACA E899B7
-8FDACB E899BA
-8FDACC E89A8D
-8FDACD E89A91
-8FDACE E89A96
-8FDACF E89A98
-8FDAD0 E89A9A
-8FDAD1 E89A9C
-8FDAD2 E89AA1
-8FDAD3 E89AA6
-8FDAD4 E89AA7
-8FDAD5 E89AA8
-8FDAD6 E89AAD
-8FDAD7 E89AB1
-8FDAD8 E89AB3
-8FDAD9 E89AB4
-8FDADA E89AB5
-8FDADB E89AB7
-8FDADC E89AB8
-8FDADD E89AB9
-8FDADE E89ABF
-8FDADF E89B80
-8FDAE0 E89B81
-8FDAE1 E89B83
-8FDAE2 E89B85
-8FDAE3 E89B91
-8FDAE4 E89B92
-8FDAE5 E89B95
-8FDAE6 E89B97
-8FDAE7 E89B9A
-8FDAE8 E89B9C
-8FDAE9 E89BA0
-8FDAEA E89BA3
-8FDAEB E89BA5
-8FDAEC E89BA7
-8FDAED E89A88
-8FDAEE E89BBA
-8FDAEF E89BBC
-8FDAF0 E89BBD
-8FDAF1 E89C84
-8FDAF2 E89C85
-8FDAF3 E89C87
-8FDAF4 E89C8B
-8FDAF5 E89C8E
-8FDAF6 E89C8F
-8FDAF7 E89C90
-8FDAF8 E89C93
-8FDAF9 E89C94
-8FDAFA E89C99
-8FDAFB E89C9E
-8FDAFC E89C9F
-8FDAFD E89CA1
-8FDAFE E89CA3
-8FDBA1 E89CA8
-8FDBA2 E89CAE
-8FDBA3 E89CAF
-8FDBA4 E89CB1
-8FDBA5 E89CB2
-8FDBA6 E89CB9
-8FDBA7 E89CBA
-8FDBA8 E89CBC
-8FDBA9 E89CBD
-8FDBAA E89CBE
-8FDBAB E89D80
-8FDBAC E89D83
-8FDBAD E89D85
-8FDBAE E89D8D
-8FDBAF E89D98
-8FDBB0 E89D9D
-8FDBB1 E89DA1
-8FDBB2 E89DA4
-8FDBB3 E89DA5
-8FDBB4 E89DAF
-8FDBB5 E89DB1
-8FDBB6 E89DB2
-8FDBB7 E89DBB
-8FDBB8 E89E83
-8FDBB9 E89E84
-8FDBBA E89E85
-8FDBBB E89E86
-8FDBBC E89E87
-8FDBBD E89E88
-8FDBBE E89E89
-8FDBBF E89E8B
-8FDBC0 E89E8C
-8FDBC1 E89E90
-8FDBC2 E89E93
-8FDBC3 E89E95
-8FDBC4 E89E97
-8FDBC5 E89E98
-8FDBC6 E89E99
-8FDBC7 E89E9E
-8FDBC8 E89EA0
-8FDBC9 E89EA3
-8FDBCA E89EA7
-8FDBCB E89EAC
-8FDBCC E89EAD
-8FDBCD E89EAE
-8FDBCE E89EB1
-8FDBCF E89EB5
-8FDBD0 E89EBE
-8FDBD1 E89EBF
-8FDBD2 E89F81
-8FDBD3 E89F88
-8FDBD4 E89F89
-8FDBD5 E89F8A
-8FDBD6 E89F8E
-8FDBD7 E89F95
-8FDBD8 E89F96
-8FDBD9 E89F99
-8FDBDA E89F9A
-8FDBDB E89F9C
-8FDBDC E89F9F
-8FDBDD E89FA2
-8FDBDE E89FA3
-8FDBDF E89FA4
-8FDBE0 E89FAA
-8FDBE1 E89FAB
-8FDBE2 E89FAD
-8FDBE3 E89FB1
-8FDBE4 E89FB3
-8FDBE5 E89FB8
-8FDBE6 E89FBA
-8FDBE7 E89FBF
-8FDBE8 E8A081
-8FDBE9 E8A083
-8FDBEA E8A086
-8FDBEB E8A089
-8FDBEC E8A08A
-8FDBED E8A08B
-8FDBEE E8A090
-8FDBEF E8A099
-8FDBF0 E8A092
-8FDBF1 E8A093
-8FDBF2 E8A094
-8FDBF3 E8A098
-8FDBF4 E8A09A
-8FDBF5 E8A09B
-8FDBF6 E8A09C
-8FDBF7 E8A09E
-8FDBF8 E8A09F
-8FDBF9 E8A0A8
-8FDBFA E8A0AD
-8FDBFB E8A0AE
-8FDBFC E8A0B0
-8FDBFD E8A0B2
-8FDBFE E8A0B5
-8FDCA1 E8A0BA
-8FDCA2 E8A0BC
-8FDCA3 E8A181
-8FDCA4 E8A183
-8FDCA5 E8A185
-8FDCA6 E8A188
-8FDCA7 E8A189
-8FDCA8 E8A18A
-8FDCA9 E8A18B
-8FDCAA E8A18E
-8FDCAB E8A191
-8FDCAC E8A195
-8FDCAD E8A196
-8FDCAE E8A198
-8FDCAF E8A19A
-8FDCB0 E8A19C
-8FDCB1 E8A19F
-8FDCB2 E8A1A0
-8FDCB3 E8A1A4
-8FDCB4 E8A1A9
-8FDCB5 E8A1B1
-8FDCB6 E8A1B9
-8FDCB7 E8A1BB
-8FDCB8 E8A280
-8FDCB9 E8A298
-8FDCBA E8A29A
-8FDCBB E8A29B
-8FDCBC E8A29C
-8FDCBD E8A29F
-8FDCBE E8A2A0
-8FDCBF E8A2A8
-8FDCC0 E8A2AA
-8FDCC1 E8A2BA
-8FDCC2 E8A2BD
-8FDCC3 E8A2BE
-8FDCC4 E8A380
-8FDCC5 E8A38A
-8FDCC6 E8A38B
-8FDCC7 E8A38C
-8FDCC8 E8A38D
-8FDCC9 E8A38E
-8FDCCA E8A391
-8FDCCB E8A392
-8FDCCC E8A393
-8FDCCD E8A39B
-8FDCCE E8A39E
-8FDCCF E8A3A7
-8FDCD0 E8A3AF
-8FDCD1 E8A3B0
-8FDCD2 E8A3B1
-8FDCD3 E8A3B5
-8FDCD4 E8A3B7
-8FDCD5 E8A481
-8FDCD6 E8A486
-8FDCD7 E8A48D
-8FDCD8 E8A48E
-8FDCD9 E8A48F
-8FDCDA E8A495
-8FDCDB E8A496
-8FDCDC E8A498
-8FDCDD E8A499
-8FDCDE E8A49A
-8FDCDF E8A49C
-8FDCE0 E8A4A0
-8FDCE1 E8A4A6
-8FDCE2 E8A4A7
-8FDCE3 E8A4A8
-8FDCE4 E8A4B0
-8FDCE5 E8A4B1
-8FDCE6 E8A4B2
-8FDCE7 E8A4B5
-8FDCE8 E8A4B9
-8FDCE9 E8A4BA
-8FDCEA E8A4BE
-8FDCEB E8A580
-8FDCEC E8A582
-8FDCED E8A585
-8FDCEE E8A586
-8FDCEF E8A589
-8FDCF0 E8A58F
-8FDCF1 E8A592
-8FDCF2 E8A597
-8FDCF3 E8A59A
-8FDCF4 E8A59B
-8FDCF5 E8A59C
-8FDCF6 E8A5A1
-8FDCF7 E8A5A2
-8FDCF8 E8A5A3
-8FDCF9 E8A5AB
-8FDCFA E8A5AE
-8FDCFB E8A5B0
-8FDCFC E8A5B3
-8FDCFD E8A5B5
-8FDCFE E8A5BA
-8FDDA1 E8A5BB
-8FDDA2 E8A5BC
-8FDDA3 E8A5BD
-8FDDA4 E8A689
-8FDDA5 E8A68D
-8FDDA6 E8A690
-8FDDA7 E8A694
-8FDDA8 E8A695
-8FDDA9 E8A69B
-8FDDAA E8A69C
-8FDDAB E8A69F
-8FDDAC E8A6A0
-8FDDAD E8A6A5
-8FDDAE E8A6B0
-8FDDAF E8A6B4
-8FDDB0 E8A6B5
-8FDDB1 E8A6B6
-8FDDB2 E8A6B7
-8FDDB3 E8A6BC
-8FDDB4 E8A794
-8FDDB5 E8A795
-8FDDB6 E8A796
-8FDDB7 E8A797
-8FDDB8 E8A798
-8FDDB9 E8A7A5
-8FDDBA E8A7A9
-8FDDBB E8A7AB
-8FDDBC E8A7AD
-8FDDBD E8A7B1
-8FDDBE E8A7B3
-8FDDBF E8A7B6
-8FDDC0 E8A7B9
-8FDDC1 E8A7BD
-8FDDC2 E8A7BF
-8FDDC3 E8A884
-8FDDC4 E8A885
-8FDDC5 E8A887
-8FDDC6 E8A88F
-8FDDC7 E8A891
-8FDDC8 E8A892
-8FDDC9 E8A894
-8FDDCA E8A895
-8FDDCB E8A89E
-8FDDCC E8A8A0
-8FDDCD E8A8A2
-8FDDCE E8A8A4
-8FDDCF E8A8A6
-8FDDD0 E8A8AB
-8FDDD1 E8A8AC
-8FDDD2 E8A8AF
-8FDDD3 E8A8B5
-8FDDD4 E8A8B7
-8FDDD5 E8A8BD
-8FDDD6 E8A8BE
-8FDDD7 E8A980
-8FDDD8 E8A983
-8FDDD9 E8A985
-8FDDDA E8A987
-8FDDDB E8A989
-8FDDDC E8A98D
-8FDDDD E8A98E
-8FDDDE E8A993
-8FDDDF E8A996
-8FDDE0 E8A997
-8FDDE1 E8A998
-8FDDE2 E8A99C
-8FDDE3 E8A99D
-8FDDE4 E8A9A1
-8FDDE5 E8A9A5
-8FDDE6 E8A9A7
-8FDDE7 E8A9B5
-8FDDE8 E8A9B6
-8FDDE9 E8A9B7
-8FDDEA E8A9B9
-8FDDEB E8A9BA
-8FDDEC E8A9BB
-8FDDED E8A9BE
-8FDDEE E8A9BF
-8FDDEF E8AA80
-8FDDF0 E8AA83
-8FDDF1 E8AA86
-8FDDF2 E8AA8B
-8FDDF3 E8AA8F
-8FDDF4 E8AA90
-8FDDF5 E8AA92
-8FDDF6 E8AA96
-8FDDF7 E8AA97
-8FDDF8 E8AA99
-8FDDF9 E8AA9F
-8FDDFA E8AAA7
-8FDDFB E8AAA9
-8FDDFC E8AAAE
-8FDDFD E8AAAF
-8FDDFE E8AAB3
-8FDEA1 E8AAB6
-8FDEA2 E8AAB7
-8FDEA3 E8AABB
-8FDEA4 E8AABE
-8FDEA5 E8AB83
-8FDEA6 E8AB86
-8FDEA7 E8AB88
-8FDEA8 E8AB89
-8FDEA9 E8AB8A
-8FDEAA E8AB91
-8FDEAB E8AB93
-8FDEAC E8AB94
-8FDEAD E8AB95
-8FDEAE E8AB97
-8FDEAF E8AB9D
-8FDEB0 E8AB9F
-8FDEB1 E8ABAC
-8FDEB2 E8ABB0
-8FDEB3 E8ABB4
-8FDEB4 E8ABB5
-8FDEB5 E8ABB6
-8FDEB6 E8ABBC
-8FDEB7 E8ABBF
-8FDEB8 E8AC85
-8FDEB9 E8AC86
-8FDEBA E8AC8B
-8FDEBB E8AC91
-8FDEBC E8AC9C
-8FDEBD E8AC9E
-8FDEBE E8AC9F
-8FDEBF E8AC8A
-8FDEC0 E8ACAD
-8FDEC1 E8ACB0
-8FDEC2 E8ACB7
-8FDEC3 E8ACBC
-8FDEC4 E8AD82
-8FDEC5 E8AD83
-8FDEC6 E8AD84
-8FDEC7 E8AD85
-8FDEC8 E8AD86
-8FDEC9 E8AD88
-8FDECA E8AD92
-8FDECB E8AD93
-8FDECC E8AD94
-8FDECD E8AD99
-8FDECE E8AD8D
-8FDECF E8AD9E
-8FDED0 E8ADA3
-8FDED1 E8ADAD
-8FDED2 E8ADB6
-8FDED3 E8ADB8
-8FDED4 E8ADB9
-8FDED5 E8ADBC
-8FDED6 E8ADBE
-8FDED7 E8AE81
-8FDED8 E8AE84
-8FDED9 E8AE85
-8FDEDA E8AE8B
-8FDEDB E8AE8D
-8FDEDC E8AE8F
-8FDEDD E8AE94
-8FDEDE E8AE95
-8FDEDF E8AE9C
-8FDEE0 E8AE9E
-8FDEE1 E8AE9F
-8FDEE2 E8B0B8
-8FDEE3 E8B0B9
-8FDEE4 E8B0BD
-8FDEE5 E8B0BE
-8FDEE6 E8B185
-8FDEE7 E8B187
-8FDEE8 E8B189
-8FDEE9 E8B18B
-8FDEEA E8B18F
-8FDEEB E8B191
-8FDEEC E8B193
-8FDEED E8B194
-8FDEEE E8B197
-8FDEEF E8B198
-8FDEF0 E8B19B
-8FDEF1 E8B19D
-8FDEF2 E8B199
-8FDEF3 E8B1A3
-8FDEF4 E8B1A4
-8FDEF5 E8B1A6
-8FDEF6 E8B1A8
-8FDEF7 E8B1A9
-8FDEF8 E8B1AD
-8FDEF9 E8B1B3
-8FDEFA E8B1B5
-8FDEFB E8B1B6
-8FDEFC E8B1BB
-8FDEFD E8B1BE
-8FDEFE E8B286
-8FDFA1 E8B287
-8FDFA2 E8B28B
-8FDFA3 E8B290
-8FDFA4 E8B292
-8FDFA5 E8B293
-8FDFA6 E8B299
-8FDFA7 E8B29B
-8FDFA8 E8B29C
-8FDFA9 E8B2A4
-8FDFAA E8B2B9
-8FDFAB E8B2BA
-8FDFAC E8B385
-8FDFAD E8B386
-8FDFAE E8B389
-8FDFAF E8B38B
-8FDFB0 E8B38F
-8FDFB1 E8B396
-8FDFB2 E8B395
-8FDFB3 E8B399
-8FDFB4 E8B39D
-8FDFB5 E8B3A1
-8FDFB6 E8B3A8
-8FDFB7 E8B3AC
-8FDFB8 E8B3AF
-8FDFB9 E8B3B0
-8FDFBA E8B3B2
-8FDFBB E8B3B5
-8FDFBC E8B3B7
-8FDFBD E8B3B8
-8FDFBE E8B3BE
-8FDFBF E8B3BF
-8FDFC0 E8B481
-8FDFC1 E8B483
-8FDFC2 E8B489
-8FDFC3 E8B492
-8FDFC4 E8B497
-8FDFC5 E8B49B
-8FDFC6 E8B5A5
-8FDFC7 E8B5A9
-8FDFC8 E8B5AC
-8FDFC9 E8B5AE
-8FDFCA E8B5BF
-8FDFCB E8B682
-8FDFCC E8B684
-8FDFCD E8B688
-8FDFCE E8B68D
-8FDFCF E8B690
-8FDFD0 E8B691
-8FDFD1 E8B695
-8FDFD2 E8B69E
-8FDFD3 E8B69F
-8FDFD4 E8B6A0
-8FDFD5 E8B6A6
-8FDFD6 E8B6AB
-8FDFD7 E8B6AC
-8FDFD8 E8B6AF
-8FDFD9 E8B6B2
-8FDFDA E8B6B5
-8FDFDB E8B6B7
-8FDFDC E8B6B9
-8FDFDD E8B6BB
-8FDFDE E8B780
-8FDFDF E8B785
-8FDFE0 E8B786
-8FDFE1 E8B787
-8FDFE2 E8B788
-8FDFE3 E8B78A
-8FDFE4 E8B78E
-8FDFE5 E8B791
-8FDFE6 E8B794
-8FDFE7 E8B795
-8FDFE8 E8B797
-8FDFE9 E8B799
-8FDFEA E8B7A4
-8FDFEB E8B7A5
-8FDFEC E8B7A7
-8FDFED E8B7AC
-8FDFEE E8B7B0
-8FDFEF E8B6BC
-8FDFF0 E8B7B1
-8FDFF1 E8B7B2
-8FDFF2 E8B7B4
-8FDFF3 E8B7BD
-8FDFF4 E8B881
-8FDFF5 E8B884
-8FDFF6 E8B885
-8FDFF7 E8B886
-8FDFF8 E8B88B
-8FDFF9 E8B891
-8FDFFA E8B894
-8FDFFB E8B896
-8FDFFC E8B8A0
-8FDFFD E8B8A1
-8FDFFE E8B8A2
-8FE0A1 E8B8A3
-8FE0A2 E8B8A6
-8FE0A3 E8B8A7
-8FE0A4 E8B8B1
-8FE0A5 E8B8B3
-8FE0A6 E8B8B6
-8FE0A7 E8B8B7
-8FE0A8 E8B8B8
-8FE0A9 E8B8B9
-8FE0AA E8B8BD
-8FE0AB E8B980
-8FE0AC E8B981
-8FE0AD E8B98B
-8FE0AE E8B98D
-8FE0AF E8B98E
-8FE0B0 E8B98F
-8FE0B1 E8B994
-8FE0B2 E8B99B
-8FE0B3 E8B99C
-8FE0B4 E8B99D
-8FE0B5 E8B99E
-8FE0B6 E8B9A1
-8FE0B7 E8B9A2
-8FE0B8 E8B9A9
-8FE0B9 E8B9AC
-8FE0BA E8B9AD
-8FE0BB E8B9AF
-8FE0BC E8B9B0
-8FE0BD E8B9B1
-8FE0BE E8B9B9
-8FE0BF E8B9BA
-8FE0C0 E8B9BB
-8FE0C1 E8BA82
-8FE0C2 E8BA83
-8FE0C3 E8BA89
-8FE0C4 E8BA90
-8FE0C5 E8BA92
-8FE0C6 E8BA95
-8FE0C7 E8BA9A
-8FE0C8 E8BA9B
-8FE0C9 E8BA9D
-8FE0CA E8BA9E
-8FE0CB E8BAA2
-8FE0CC E8BAA7
-8FE0CD E8BAA9
-8FE0CE E8BAAD
-8FE0CF E8BAAE
-8FE0D0 E8BAB3
-8FE0D1 E8BAB5
-8FE0D2 E8BABA
-8FE0D3 E8BABB
-8FE0D4 E8BB80
-8FE0D5 E8BB81
-8FE0D6 E8BB83
-8FE0D7 E8BB84
-8FE0D8 E8BB87
-8FE0D9 E8BB8F
-8FE0DA E8BB91
-8FE0DB E8BB94
-8FE0DC E8BB9C
-8FE0DD E8BBA8
-8FE0DE E8BBAE
-8FE0DF E8BBB0
-8FE0E0 E8BBB1
-8FE0E1 E8BBB7
-8FE0E2 E8BBB9
-8FE0E3 E8BBBA
-8FE0E4 E8BBAD
-8FE0E5 E8BC80
-8FE0E6 E8BC82
-8FE0E7 E8BC87
-8FE0E8 E8BC88
-8FE0E9 E8BC8F
-8FE0EA E8BC90
-8FE0EB E8BC96
-8FE0EC E8BC97
-8FE0ED E8BC98
-8FE0EE E8BC9E
-8FE0EF E8BCA0
-8FE0F0 E8BCA1
-8FE0F1 E8BCA3
-8FE0F2 E8BCA5
-8FE0F3 E8BCA7
-8FE0F4 E8BCA8
-8FE0F5 E8BCAC
-8FE0F6 E8BCAD
-8FE0F7 E8BCAE
-8FE0F8 E8BCB4
-8FE0F9 E8BCB5
-8FE0FA E8BCB6
-8FE0FB E8BCB7
-8FE0FC E8BCBA
-8FE0FD E8BD80
-8FE0FE E8BD81
-8FE1A1 E8BD83
-8FE1A2 E8BD87
-8FE1A3 E8BD8F
-8FE1A4 E8BD91
-8FE1A5 E8BD92
-8FE1A6 E8BD93
-8FE1A7 E8BD94
-8FE1A8 E8BD95
-8FE1A9 E8BD98
-8FE1AA E8BD9D
-8FE1AB E8BD9E
-8FE1AC E8BDA5
-8FE1AD E8BE9D
-8FE1AE E8BEA0
-8FE1AF E8BEA1
-8FE1B0 E8BEA4
-8FE1B1 E8BEA5
-8FE1B2 E8BEA6
-8FE1B3 E8BEB5
-8FE1B4 E8BEB6
-8FE1B5 E8BEB8
-8FE1B6 E8BEBE
-8FE1B7 E8BF80
-8FE1B8 E8BF81
-8FE1B9 E8BF86
-8FE1BA E8BF8A
-8FE1BB E8BF8B
-8FE1BC E8BF8D
-8FE1BD E8BF90
-8FE1BE E8BF92
-8FE1BF E8BF93
-8FE1C0 E8BF95
-8FE1C1 E8BFA0
-8FE1C2 E8BFA3
-8FE1C3 E8BFA4
-8FE1C4 E8BFA8
-8FE1C5 E8BFAE
-8FE1C6 E8BFB1
-8FE1C7 E8BFB5
-8FE1C8 E8BFB6
-8FE1C9 E8BFBB
-8FE1CA E8BFBE
-8FE1CB E98082
-8FE1CC E98084
-8FE1CD E98088
-8FE1CE E9808C
-8FE1CF E98098
-8FE1D0 E9809B
-8FE1D1 E980A8
-8FE1D2 E980A9
-8FE1D3 E980AF
-8FE1D4 E980AA
-8FE1D5 E980AC
-8FE1D6 E980AD
-8FE1D7 E980B3
-8FE1D8 E980B4
-8FE1D9 E980B7
-8FE1DA E980BF
-8FE1DB E98183
-8FE1DC E98184
-8FE1DD E9818C
-8FE1DE E9819B
-8FE1DF E9819D
-8FE1E0 E981A2
-8FE1E1 E981A6
-8FE1E2 E981A7
-8FE1E3 E981AC
-8FE1E4 E981B0
-8FE1E5 E981B4
-8FE1E6 E981B9
-8FE1E7 E98285
-8FE1E8 E98288
-8FE1E9 E9828B
-8FE1EA E9828C
-8FE1EB E9828E
-8FE1EC E98290
-8FE1ED E98295
-8FE1EE E98297
-8FE1EF E98298
-8FE1F0 E98299
-8FE1F1 E9829B
-8FE1F2 E982A0
-8FE1F3 E982A1
-8FE1F4 E982A2
-8FE1F5 E982A5
-8FE1F6 E982B0
-8FE1F7 E982B2
-8FE1F8 E982B3
-8FE1F9 E982B4
-8FE1FA E982B6
-8FE1FB E982BD
-8FE1FC E9838C
-8FE1FD E982BE
-8FE1FE E98383
-8FE2A1 E98384
-8FE2A2 E98385
-8FE2A3 E98387
-8FE2A4 E98388
-8FE2A5 E98395
-8FE2A6 E98397
-8FE2A7 E98398
-8FE2A8 E98399
-8FE2A9 E9839C
-8FE2AA E9839D
-8FE2AB E9839F
-8FE2AC E983A5
-8FE2AD E98392
-8FE2AE E983B6
-8FE2AF E983AB
-8FE2B0 E983AF
-8FE2B1 E983B0
-8FE2B2 E983B4
-8FE2B3 E983BE
-8FE2B4 E983BF
-8FE2B5 E98480
-8FE2B6 E98484
-8FE2B7 E98485
-8FE2B8 E98486
-8FE2B9 E98488
-8FE2BA E9848D
-8FE2BB E98490
-8FE2BC E98494
-8FE2BD E98496
-8FE2BE E98497
-8FE2BF E98498
-8FE2C0 E9849A
-8FE2C1 E9849C
-8FE2C2 E9849E
-8FE2C3 E984A0
-8FE2C4 E984A5
-8FE2C5 E984A2
-8FE2C6 E984A3
-8FE2C7 E984A7
-8FE2C8 E984A9
-8FE2C9 E984AE
-8FE2CA E984AF
-8FE2CB E984B1
-8FE2CC E984B4
-8FE2CD E984B6
-8FE2CE E984B7
-8FE2CF E984B9
-8FE2D0 E984BA
-8FE2D1 E984BC
-8FE2D2 E984BD
-8FE2D3 E98583
-8FE2D4 E98587
-8FE2D5 E98588
-8FE2D6 E9858F
-8FE2D7 E98593
-8FE2D8 E98597
-8FE2D9 E98599
-8FE2DA E9859A
-8FE2DB E9859B
-8FE2DC E985A1
-8FE2DD E985A4
-8FE2DE E985A7
-8FE2DF E985AD
-8FE2E0 E985B4
-8FE2E1 E985B9
-8FE2E2 E985BA
-8FE2E3 E985BB
-8FE2E4 E98681
-8FE2E5 E98683
-8FE2E6 E98685
-8FE2E7 E98686
-8FE2E8 E9868A
-8FE2E9 E9868E
-8FE2EA E98691
-8FE2EB E98693
-8FE2EC E98694
-8FE2ED E98695
-8FE2EE E98698
-8FE2EF E9869E
-8FE2F0 E986A1
-8FE2F1 E986A6
-8FE2F2 E986A8
-8FE2F3 E986AC
-8FE2F4 E986AD
-8FE2F5 E986AE
-8FE2F6 E986B0
-8FE2F7 E986B1
-8FE2F8 E986B2
-8FE2F9 E986B3
-8FE2FA E986B6
-8FE2FB E986BB
-8FE2FC E986BC
-8FE2FD E986BD
-8FE2FE E986BF
-8FE3A1 E98782
-8FE3A2 E98783
-8FE3A3 E98785
-8FE3A4 E98793
-8FE3A5 E98794
-8FE3A6 E98797
-8FE3A7 E98799
-8FE3A8 E9879A
-8FE3A9 E9879E
-8FE3AA E987A4
-8FE3AB E987A5
-8FE3AC E987A9
-8FE3AD E987AA
-8FE3AE E987AC
-8FE3AF E987AD
-8FE3B0 E987AE
-8FE3B1 E987AF
-8FE3B2 E987B0
-8FE3B3 E987B1
-8FE3B4 E987B7
-8FE3B5 E987B9
-8FE3B6 E987BB
-8FE3B7 E987BD
-8FE3B8 E98880
-8FE3B9 E98881
-8FE3BA E98884
-8FE3BB E98885
-8FE3BC E98886
-8FE3BD E98887
-8FE3BE E98889
-8FE3BF E9888A
-8FE3C0 E9888C
-8FE3C1 E98890
-8FE3C2 E98892
-8FE3C3 E98893
-8FE3C4 E98896
-8FE3C5 E98898
-8FE3C6 E9889C
-8FE3C7 E9889D
-8FE3C8 E988A3
-8FE3C9 E988A4
-8FE3CA E988A5
-8FE3CB E988A6
-8FE3CC E988A8
-8FE3CD E988AE
-8FE3CE E988AF
-8FE3CF E988B0
-8FE3D0 E988B3
-8FE3D1 E988B5
-8FE3D2 E988B6
-8FE3D3 E988B8
-8FE3D4 E988B9
-8FE3D5 E988BA
-8FE3D6 E988BC
-8FE3D7 E988BE
-8FE3D8 E98980
-8FE3D9 E98982
-8FE3DA E98983
-8FE3DB E98986
-8FE3DC E98987
-8FE3DD E9898A
-8FE3DE E9898D
-8FE3DF E9898E
-8FE3E0 E9898F
-8FE3E1 E98991
-8FE3E2 E98998
-8FE3E3 E98999
-8FE3E4 E9899C
-8FE3E5 E9899D
-8FE3E6 E989A0
-8FE3E7 E989A1
-8FE3E8 E989A5
-8FE3E9 E989A7
-8FE3EA E989A8
-8FE3EB E989A9
-8FE3EC E989AE
-8FE3ED E989AF
-8FE3EE E989B0
-8FE3EF E989B5
-8FE3F0 E989B6
-8FE3F1 E989B7
-8FE3F2 E989B8
-8FE3F3 E989B9
-8FE3F4 E989BB
-8FE3F5 E989BC
-8FE3F6 E989BD
-8FE3F7 E989BF
-8FE3F8 E98A88
-8FE3F9 E98A89
-8FE3FA E98A8A
-8FE3FB E98A8D
-8FE3FC E98A8E
-8FE3FD E98A92
-8FE3FE E98A97
-8FE4A1 E98A99
-8FE4A2 E98A9F
-8FE4A3 E98AA0
-8FE4A4 E98AA4
-8FE4A5 E98AA5
-8FE4A6 E98AA7
-8FE4A7 E98AA8
-8FE4A8 E98AAB
-8FE4A9 E98AAF
-8FE4AA E98AB2
-8FE4AB E98AB6
-8FE4AC E98AB8
-8FE4AD E98ABA
-8FE4AE E98ABB
-8FE4AF E98ABC
-8FE4B0 E98ABD
-8FE4B1 E98ABF
-8FE4B2 E98B80
-8FE4B3 E98B81
-8FE4B4 E98B82
-8FE4B5 E98B83
-8FE4B6 E98B85
-8FE4B7 E98B86
-8FE4B8 E98B87
-8FE4B9 E98B88
-8FE4BA E98B8B
-8FE4BB E98B8C
-8FE4BC E98B8D
-8FE4BD E98B8E
-8FE4BE E98B90
-8FE4BF E98B93
-8FE4C0 E98B95
-8FE4C1 E98B97
-8FE4C2 E98B98
-8FE4C3 E98B99
-8FE4C4 E98B9C
-8FE4C5 E98B9D
-8FE4C6 E98B9F
-8FE4C7 E98BA0
-8FE4C8 E98BA1
-8FE4C9 E98BA3
-8FE4CA E98BA5
-8FE4CB E98BA7
-8FE4CC E98BA8
-8FE4CD E98BAC
-8FE4CE E98BAE
-8FE4CF E98BB0
-8FE4D0 E98BB9
-8FE4D1 E98BBB
-8FE4D2 E98BBF
-8FE4D3 E98C80
-8FE4D4 E98C82
-8FE4D5 E98C88
-8FE4D6 E98C8D
-8FE4D7 E98C91
-8FE4D8 E98C94
-8FE4D9 E98C95
-8FE4DA E98C9C
-8FE4DB E98C9D
-8FE4DC E98C9E
-8FE4DD E98C9F
-8FE4DE E98CA1
-8FE4DF E98CA4
-8FE4E0 E98CA5
-8FE4E1 E98CA7
-8FE4E2 E98CA9
-8FE4E3 E98CAA
-8FE4E4 E98CB3
-8FE4E5 E98CB4
-8FE4E6 E98CB6
-8FE4E7 E98CB7
-8FE4E8 E98D87
-8FE4E9 E98D88
-8FE4EA E98D89
-8FE4EB E98D90
-8FE4EC E98D91
-8FE4ED E98D92
-8FE4EE E98D95
-8FE4EF E98D97
-8FE4F0 E98D98
-8FE4F1 E98D9A
-8FE4F2 E98D9E
-8FE4F3 E98DA4
-8FE4F4 E98DA5
-8FE4F5 E98DA7
-8FE4F6 E98DA9
-8FE4F7 E98DAA
-8FE4F8 E98DAD
-8FE4F9 E98DAF
-8FE4FA E98DB0
-8FE4FB E98DB1
-8FE4FC E98DB3
-8FE4FD E98DB4
-8FE4FE E98DB6
-8FE5A1 E98DBA
-8FE5A2 E98DBD
-8FE5A3 E98DBF
-8FE5A4 E98E80
-8FE5A5 E98E81
-8FE5A6 E98E82
-8FE5A7 E98E88
-8FE5A8 E98E8A
-8FE5A9 E98E8B
-8FE5AA E98E8D
-8FE5AB E98E8F
-8FE5AC E98E92
-8FE5AD E98E95
-8FE5AE E98E98
-8FE5AF E98E9B
-8FE5B0 E98E9E
-8FE5B1 E98EA1
-8FE5B2 E98EA3
-8FE5B3 E98EA4
-8FE5B4 E98EA6
-8FE5B5 E98EA8
-8FE5B6 E98EAB
-8FE5B7 E98EB4
-8FE5B8 E98EB5
-8FE5B9 E98EB6
-8FE5BA E98EBA
-8FE5BB E98EA9
-8FE5BC E98F81
-8FE5BD E98F84
-8FE5BE E98F85
-8FE5BF E98F86
-8FE5C0 E98F87
-8FE5C1 E98F89
-8FE5C2 E98F8A
-8FE5C3 E98F8B
-8FE5C4 E98F8C
-8FE5C5 E98F8D
-8FE5C6 E98F93
-8FE5C7 E98F99
-8FE5C8 E98F9C
-8FE5C9 E98F9E
-8FE5CA E98F9F
-8FE5CB E98FA2
-8FE5CC E98FA6
-8FE5CD E98FA7
-8FE5CE E98FB9
-8FE5CF E98FB7
-8FE5D0 E98FB8
-8FE5D1 E98FBA
-8FE5D2 E98FBB
-8FE5D3 E98FBD
-8FE5D4 E99081
-8FE5D5 E99082
-8FE5D6 E99084
-8FE5D7 E99088
-8FE5D8 E99089
-8FE5D9 E9908D
-8FE5DA E9908E
-8FE5DB E9908F
-8FE5DC E99095
-8FE5DD E99096
-8FE5DE E99097
-8FE5DF E9909F
-8FE5E0 E990AE
-8FE5E1 E990AF
-8FE5E2 E990B1
-8FE5E3 E990B2
-8FE5E4 E990B3
-8FE5E5 E990B4
-8FE5E6 E990BB
-8FE5E7 E990BF
-8FE5E8 E990BD
-8FE5E9 E99183
-8FE5EA E99185
-8FE5EB E99188
-8FE5EC E9918A
-8FE5ED E9918C
-8FE5EE E99195
-8FE5EF E99199
-8FE5F0 E9919C
-8FE5F1 E9919F
-8FE5F2 E991A1
-8FE5F3 E991A3
-8FE5F4 E991A8
-8FE5F5 E991AB
-8FE5F6 E991AD
-8FE5F7 E991AE
-8FE5F8 E991AF
-8FE5F9 E991B1
-8FE5FA E991B2
-8FE5FB E99284
-8FE5FC E99283
-8FE5FD E995B8
-8FE5FE E995B9
-8FE6A1 E995BE
-8FE6A2 E99684
-8FE6A3 E99688
-8FE6A4 E9968C
-8FE6A5 E9968D
-8FE6A6 E9968E
-8FE6A7 E9969D
-8FE6A8 E9969E
-8FE6A9 E9969F
-8FE6AA E996A1
-8FE6AB E996A6
-8FE6AC E996A9
-8FE6AD E996AB
-8FE6AE E996AC
-8FE6AF E996B4
-8FE6B0 E996B6
-8FE6B1 E996BA
-8FE6B2 E996BD
-8FE6B3 E996BF
-8FE6B4 E99786
-8FE6B5 E99788
-8FE6B6 E99789
-8FE6B7 E9978B
-8FE6B8 E99790
-8FE6B9 E99791
-8FE6BA E99792
-8FE6BB E99793
-8FE6BC E99799
-8FE6BD E9979A
-8FE6BE E9979D
-8FE6BF E9979E
-8FE6C0 E9979F
-8FE6C1 E997A0
-8FE6C2 E997A4
-8FE6C3 E997A6
-8FE6C4 E9989D
-8FE6C5 E9989E
-8FE6C6 E998A2
-8FE6C7 E998A4
-8FE6C8 E998A5
-8FE6C9 E998A6
-8FE6CA E998AC
-8FE6CB E998B1
-8FE6CC E998B3
-8FE6CD E998B7
-8FE6CE E998B8
-8FE6CF E998B9
-8FE6D0 E998BA
-8FE6D1 E998BC
-8FE6D2 E998BD
-8FE6D3 E99981
-8FE6D4 E99992
-8FE6D5 E99994
-8FE6D6 E99996
-8FE6D7 E99997
-8FE6D8 E99998
-8FE6D9 E999A1
-8FE6DA E999AE
-8FE6DB E999B4
-8FE6DC E999BB
-8FE6DD E999BC
-8FE6DE E999BE
-8FE6DF E999BF
-8FE6E0 E99A81
-8FE6E1 E99A82
-8FE6E2 E99A83
-8FE6E3 E99A84
-8FE6E4 E99A89
-8FE6E5 E99A91
-8FE6E6 E99A96
-8FE6E7 E99A9A
-8FE6E8 E99A9D
-8FE6E9 E99A9F
-8FE6EA E99AA4
-8FE6EB E99AA5
-8FE6EC E99AA6
-8FE6ED E99AA9
-8FE6EE E99AAE
-8FE6EF E99AAF
-8FE6F0 E99AB3
-8FE6F1 E99ABA
-8FE6F2 E99B8A
-8FE6F3 E99B92
-8FE6F4 E5B6B2
-8FE6F5 E99B98
-8FE6F6 E99B9A
-8FE6F7 E99B9D
-8FE6F8 E99B9E
-8FE6F9 E99B9F
-8FE6FA E99BA9
-8FE6FB E99BAF
-8FE6FC E99BB1
-8FE6FD E99BBA
-8FE6FE E99C82
-8FE7A1 E99C83
-8FE7A2 E99C85
-8FE7A3 E99C89
-8FE7A4 E99C9A
-8FE7A5 E99C9B
-8FE7A6 E99C9D
-8FE7A7 E99CA1
-8FE7A8 E99CA2
-8FE7A9 E99CA3
-8FE7AA E99CA8
-8FE7AB E99CB1
-8FE7AC E99CB3
-8FE7AD E99D81
-8FE7AE E99D83
-8FE7AF E99D8A
-8FE7B0 E99D8E
-8FE7B1 E99D8F
-8FE7B2 E99D95
-8FE7B3 E99D97
-8FE7B4 E99D98
-8FE7B5 E99D9A
-8FE7B6 E99D9B
-8FE7B7 E99DA3
-8FE7B8 E99DA7
-8FE7B9 E99DAA
-8FE7BA E99DAE
-8FE7BB E99DB3
-8FE7BC E99DB6
-8FE7BD E99DB7
-8FE7BE E99DB8
-8FE7BF E99DBB
-8FE7C0 E99DBD
-8FE7C1 E99DBF
-8FE7C2 E99E80
-8FE7C3 E99E89
-8FE7C4 E99E95
-8FE7C5 E99E96
-8FE7C6 E99E97
-8FE7C7 E99E99
-8FE7C8 E99E9A
-8FE7C9 E99E9E
-8FE7CA E99E9F
-8FE7CB E99EA2
-8FE7CC E99EAC
-8FE7CD E99EAE
-8FE7CE E99EB1
-8FE7CF E99EB2
-8FE7D0 E99EB5
-8FE7D1 E99EB6
-8FE7D2 E99EB8
-8FE7D3 E99EB9
-8FE7D4 E99EBA
-8FE7D5 E99EBC
-8FE7D6 E99EBE
-8FE7D7 E99EBF
-8FE7D8 E99F81
-8FE7D9 E99F84
-8FE7DA E99F85
-8FE7DB E99F87
-8FE7DC E99F89
-8FE7DD E99F8A
-8FE7DE E99F8C
-8FE7DF E99F8D
-8FE7E0 E99F8E
-8FE7E1 E99F90
-8FE7E2 E99F91
-8FE7E3 E99F94
-8FE7E4 E99F97
-8FE7E5 E99F98
-8FE7E6 E99F99
-8FE7E7 E99F9D
-8FE7E8 E99F9E
-8FE7E9 E99FA0
-8FE7EA E99F9B
-8FE7EB E99FA1
-8FE7EC E99FA4
-8FE7ED E99FAF
-8FE7EE E99FB1
-8FE7EF E99FB4
-8FE7F0 E99FB7
-8FE7F1 E99FB8
-8FE7F2 E99FBA
-8FE7F3 E9A087
-8FE7F4 E9A08A
-8FE7F5 E9A099
-8FE7F6 E9A08D
-8FE7F7 E9A08E
-8FE7F8 E9A094
-8FE7F9 E9A096
-8FE7FA E9A09C
-8FE7FB E9A09E
-8FE7FC E9A0A0
-8FE7FD E9A0A3
-8FE7FE E9A0A6
-8FE8A1 E9A0AB
-8FE8A2 E9A0AE
-8FE8A3 E9A0AF
-8FE8A4 E9A0B0
-8FE8A5 E9A0B2
-8FE8A6 E9A0B3
-8FE8A7 E9A0B5
-8FE8A8 E9A0A5
-8FE8A9 E9A0BE
-8FE8AA E9A184
-8FE8AB E9A187
-8FE8AC E9A18A
-8FE8AD E9A191
-8FE8AE E9A192
-8FE8AF E9A193
-8FE8B0 E9A196
-8FE8B1 E9A197
-8FE8B2 E9A199
-8FE8B3 E9A19A
-8FE8B4 E9A1A2
-8FE8B5 E9A1A3
-8FE8B6 E9A1A5
-8FE8B7 E9A1A6
-8FE8B8 E9A1AA
-8FE8B9 E9A1AC
-8FE8BA E9A2AB
-8FE8BB E9A2AD
-8FE8BC E9A2AE
-8FE8BD E9A2B0
-8FE8BE E9A2B4
-8FE8BF E9A2B7
-8FE8C0 E9A2B8
-8FE8C1 E9A2BA
-8FE8C2 E9A2BB
-8FE8C3 E9A2BF
-8FE8C4 E9A382
-8FE8C5 E9A385
-8FE8C6 E9A388
-8FE8C7 E9A38C
-8FE8C8 E9A3A1
-8FE8C9 E9A3A3
-8FE8CA E9A3A5
-8FE8CB E9A3A6
-8FE8CC E9A3A7
-8FE8CD E9A3AA
-8FE8CE E9A3B3
-8FE8CF E9A3B6
-8FE8D0 E9A482
-8FE8D1 E9A487
-8FE8D2 E9A488
-8FE8D3 E9A491
-8FE8D4 E9A495
-8FE8D5 E9A496
-8FE8D6 E9A497
-8FE8D7 E9A49A
-8FE8D8 E9A49B
-8FE8D9 E9A49C
-8FE8DA E9A49F
-8FE8DB E9A4A2
-8FE8DC E9A4A6
-8FE8DD E9A4A7
-8FE8DE E9A4AB
-8FE8DF E9A4B1
-8FE8E0 E9A4B2
-8FE8E1 E9A4B3
-8FE8E2 E9A4B4
-8FE8E3 E9A4B5
-8FE8E4 E9A4B9
-8FE8E5 E9A4BA
-8FE8E6 E9A4BB
-8FE8E7 E9A4BC
-8FE8E8 E9A580
-8FE8E9 E9A581
-8FE8EA E9A586
-8FE8EB E9A587
-8FE8EC E9A588
-8FE8ED E9A58D
-8FE8EE E9A58E
-8FE8EF E9A594
-8FE8F0 E9A598
-8FE8F1 E9A599
-8FE8F2 E9A59B
-8FE8F3 E9A59C
-8FE8F4 E9A59E
-8FE8F5 E9A59F
-8FE8F6 E9A5A0
-8FE8F7 E9A69B
-8FE8F8 E9A69D
-8FE8F9 E9A69F
-8FE8FA E9A6A6
-8FE8FB E9A6B0
-8FE8FC E9A6B1
-8FE8FD E9A6B2
-8FE8FE E9A6B5
-8FE9A1 E9A6B9
-8FE9A2 E9A6BA
-8FE9A3 E9A6BD
-8FE9A4 E9A6BF
-8FE9A5 E9A783
-8FE9A6 E9A789
-8FE9A7 E9A793
-8FE9A8 E9A794
-8FE9A9 E9A799
-8FE9AA E9A79A
-8FE9AB E9A79C
-8FE9AC E9A79E
-8FE9AD E9A7A7
-8FE9AE E9A7AA
-8FE9AF E9A7AB
-8FE9B0 E9A7AC
-8FE9B1 E9A7B0
-8FE9B2 E9A7B4
-8FE9B3 E9A7B5
-8FE9B4 E9A7B9
-8FE9B5 E9A7BD
-8FE9B6 E9A7BE
-8FE9B7 E9A882
-8FE9B8 E9A883
-8FE9B9 E9A884
-8FE9BA E9A88B
-8FE9BB E9A88C
-8FE9BC E9A890
-8FE9BD E9A891
-8FE9BE E9A896
-8FE9BF E9A89E
-8FE9C0 E9A8A0
-8FE9C1 E9A8A2
-8FE9C2 E9A8A3
-8FE9C3 E9A8A4
-8FE9C4 E9A8A7
-8FE9C5 E9A8AD
-8FE9C6 E9A8AE
-8FE9C7 E9A8B3
-8FE9C8 E9A8B5
-8FE9C9 E9A8B6
-8FE9CA E9A8B8
-8FE9CB E9A987
-8FE9CC E9A981
-8FE9CD E9A984
-8FE9CE E9A98A
-8FE9CF E9A98B
-8FE9D0 E9A98C
-8FE9D1 E9A98E
-8FE9D2 E9A991
-8FE9D3 E9A994
-8FE9D4 E9A996
-8FE9D5 E9A99D
-8FE9D6 E9AAAA
-8FE9D7 E9AAAC
-8FE9D8 E9AAAE
-8FE9D9 E9AAAF
-8FE9DA E9AAB2
-8FE9DB E9AAB4
-8FE9DC E9AAB5
-8FE9DD E9AAB6
-8FE9DE E9AAB9
-8FE9DF E9AABB
-8FE9E0 E9AABE
-8FE9E1 E9AABF
-8FE9E2 E9AB81
-8FE9E3 E9AB83
-8FE9E4 E9AB86
-8FE9E5 E9AB88
-8FE9E6 E9AB8E
-8FE9E7 E9AB90
-8FE9E8 E9AB92
-8FE9E9 E9AB95
-8FE9EA E9AB96
-8FE9EB E9AB97
-8FE9EC E9AB9B
-8FE9ED E9AB9C
-8FE9EE E9ABA0
-8FE9EF E9ABA4
-8FE9F0 E9ABA5
-8FE9F1 E9ABA7
-8FE9F2 E9ABA9
-8FE9F3 E9ABAC
-8FE9F4 E9ABB2
-8FE9F5 E9ABB3
-8FE9F6 E9ABB5
-8FE9F7 E9ABB9
-8FE9F8 E9ABBA
-8FE9F9 E9ABBD
-8FE9FA E9ABBF
-8FE9FB E9AC80
-8FE9FC E9AC81
-8FE9FD E9AC82
-8FE9FE E9AC83
-8FEAA1 E9AC84
-8FEAA2 E9AC85
-8FEAA3 E9AC88
-8FEAA4 E9AC89
-8FEAA5 E9AC8B
-8FEAA6 E9AC8C
-8FEAA7 E9AC8D
-8FEAA8 E9AC8E
-8FEAA9 E9AC90
-8FEAAA E9AC92
-8FEAAB E9AC96
-8FEAAC E9AC99
-8FEAAD E9AC9B
-8FEAAE E9AC9C
-8FEAAF E9ACA0
-8FEAB0 E9ACA6
-8FEAB1 E9ACAB
-8FEAB2 E9ACAD
-8FEAB3 E9ACB3
-8FEAB4 E9ACB4
-8FEAB5 E9ACB5
-8FEAB6 E9ACB7
-8FEAB7 E9ACB9
-8FEAB8 E9ACBA
-8FEAB9 E9ACBD
-8FEABA E9AD88
-8FEABB E9AD8B
-8FEABC E9AD8C
-8FEABD E9AD95
-8FEABE E9AD96
-8FEABF E9AD97
-8FEAC0 E9AD9B
-8FEAC1 E9AD9E
-8FEAC2 E9ADA1
-8FEAC3 E9ADA3
-8FEAC4 E9ADA5
-8FEAC5 E9ADA6
-8FEAC6 E9ADA8
-8FEAC7 E9ADAA
-8FEAC8 E9ADAB
-8FEAC9 E9ADAC
-8FEACA E9ADAD
-8FEACB E9ADAE
-8FEACC E9ADB3
-8FEACD E9ADB5
-8FEACE E9ADB7
-8FEACF E9ADB8
-8FEAD0 E9ADB9
-8FEAD1 E9ADBF
-8FEAD2 E9AE80
-8FEAD3 E9AE84
-8FEAD4 E9AE85
-8FEAD5 E9AE86
-8FEAD6 E9AE87
-8FEAD7 E9AE89
-8FEAD8 E9AE8A
-8FEAD9 E9AE8B
-8FEADA E9AE8D
-8FEADB E9AE8F
-8FEADC E9AE90
-8FEADD E9AE94
-8FEADE E9AE9A
-8FEADF E9AE9D
-8FEAE0 E9AE9E
-8FEAE1 E9AEA6
-8FEAE2 E9AEA7
-8FEAE3 E9AEA9
-8FEAE4 E9AEAC
-8FEAE5 E9AEB0
-8FEAE6 E9AEB1
-8FEAE7 E9AEB2
-8FEAE8 E9AEB7
-8FEAE9 E9AEB8
-8FEAEA E9AEBB
-8FEAEB E9AEBC
-8FEAEC E9AEBE
-8FEAED E9AEBF
-8FEAEE E9AF81
-8FEAEF E9AF87
-8FEAF0 E9AF88
-8FEAF1 E9AF8E
-8FEAF2 E9AF90
-8FEAF3 E9AF97
-8FEAF4 E9AF98
-8FEAF5 E9AF9D
-8FEAF6 E9AF9F
-8FEAF7 E9AFA5
-8FEAF8 E9AFA7
-8FEAF9 E9AFAA
-8FEAFA E9AFAB
-8FEAFB E9AFAF
-8FEAFC E9AFB3
-8FEAFD E9AFB7
-8FEAFE E9AFB8
-8FEBA1 E9AFB9
-8FEBA2 E9AFBA
-8FEBA3 E9AFBD
-8FEBA4 E9AFBF
-8FEBA5 E9B080
-8FEBA6 E9B082
-8FEBA7 E9B08B
-8FEBA8 E9B08F
-8FEBA9 E9B091
-8FEBAA E9B096
-8FEBAB E9B098
-8FEBAC E9B099
-8FEBAD E9B09A
-8FEBAE E9B09C
-8FEBAF E9B09E
-8FEBB0 E9B0A2
-8FEBB1 E9B0A3
-8FEBB2 E9B0A6
-8FEBB3 E9B0A7
-8FEBB4 E9B0A8
-8FEBB5 E9B0A9
-8FEBB6 E9B0AA
-8FEBB7 E9B0B1
-8FEBB8 E9B0B5
-8FEBB9 E9B0B6
-8FEBBA E9B0B7
-8FEBBB E9B0BD
-8FEBBC E9B181
-8FEBBD E9B183
-8FEBBE E9B184
-8FEBBF E9B185
-8FEBC0 E9B189
-8FEBC1 E9B18A
-8FEBC2 E9B18E
-8FEBC3 E9B18F
-8FEBC4 E9B190
-8FEBC5 E9B193
-8FEBC6 E9B194
-8FEBC7 E9B196
-8FEBC8 E9B198
-8FEBC9 E9B19B
-8FEBCA E9B19D
-8FEBCB E9B19E
-8FEBCC E9B19F
-8FEBCD E9B1A3
-8FEBCE E9B1A9
-8FEBCF E9B1AA
-8FEBD0 E9B19C
-8FEBD1 E9B1AB
-8FEBD2 E9B1A8
-8FEBD3 E9B1AE
-8FEBD4 E9B1B0
-8FEBD5 E9B1B2
-8FEBD6 E9B1B5
-8FEBD7 E9B1B7
-8FEBD8 E9B1BB
-8FEBD9 E9B3A6
-8FEBDA E9B3B2
-8FEBDB E9B3B7
-8FEBDC E9B3B9
-8FEBDD E9B48B
-8FEBDE E9B482
-8FEBDF E9B491
-8FEBE0 E9B497
-8FEBE1 E9B498
-8FEBE2 E9B49C
-8FEBE3 E9B49D
-8FEBE4 E9B49E
-8FEBE5 E9B4AF
-8FEBE6 E9B4B0
-8FEBE7 E9B4B2
-8FEBE8 E9B4B3
-8FEBE9 E9B4B4
-8FEBEA E9B4BA
-8FEBEB E9B4BC
-8FEBEC E9B585
-8FEBED E9B4BD
-8FEBEE E9B582
-8FEBEF E9B583
-8FEBF0 E9B587
-8FEBF1 E9B58A
-8FEBF2 E9B593
-8FEBF3 E9B594
-8FEBF4 E9B59F
-8FEBF5 E9B5A3
-8FEBF6 E9B5A2
-8FEBF7 E9B5A5
-8FEBF8 E9B5A9
-8FEBF9 E9B5AA
-8FEBFA E9B5AB
-8FEBFB E9B5B0
-8FEBFC E9B5B6
-8FEBFD E9B5B7
-8FEBFE E9B5BB
-8FECA1 E9B5BC
-8FECA2 E9B5BE
-8FECA3 E9B683
-8FECA4 E9B684
-8FECA5 E9B686
-8FECA6 E9B68A
-8FECA7 E9B68D
-8FECA8 E9B68E
-8FECA9 E9B692
-8FECAA E9B693
-8FECAB E9B695
-8FECAC E9B696
-8FECAD E9B697
-8FECAE E9B698
-8FECAF E9B6A1
-8FECB0 E9B6AA
-8FECB1 E9B6AC
-8FECB2 E9B6AE
-8FECB3 E9B6B1
-8FECB4 E9B6B5
-8FECB5 E9B6B9
-8FECB6 E9B6BC
-8FECB7 E9B6BF
-8FECB8 E9B783
-8FECB9 E9B787
-8FECBA E9B789
-8FECBB E9B78A
-8FECBC E9B794
-8FECBD E9B795
-8FECBE E9B796
-8FECBF E9B797
-8FECC0 E9B79A
-8FECC1 E9B79E
-8FECC2 E9B79F
-8FECC3 E9B7A0
-8FECC4 E9B7A5
-8FECC5 E9B7A7
-8FECC6 E9B7A9
-8FECC7 E9B7AB
-8FECC8 E9B7AE
-8FECC9 E9B7B0
-8FECCA E9B7B3
-8FECCB E9B7B4
-8FECCC E9B7BE
-8FECCD E9B88A
-8FECCE E9B882
-8FECCF E9B887
-8FECD0 E9B88E
-8FECD1 E9B890
-8FECD2 E9B891
-8FECD3 E9B892
-8FECD4 E9B895
-8FECD5 E9B896
-8FECD6 E9B899
-8FECD7 E9B89C
-8FECD8 E9B89D
-8FECD9 E9B9BA
-8FECDA E9B9BB
-8FECDB E9B9BC
-8FECDC E9BA80
-8FECDD E9BA82
-8FECDE E9BA83
-8FECDF E9BA84
-8FECE0 E9BA85
-8FECE1 E9BA87
-8FECE2 E9BA8E
-8FECE3 E9BA8F
-8FECE4 E9BA96
-8FECE5 E9BA98
-8FECE6 E9BA9B
-8FECE7 E9BA9E
-8FECE8 E9BAA4
-8FECE9 E9BAA8
-8FECEA E9BAAC
-8FECEB E9BAAE
-8FECEC E9BAAF
-8FECED E9BAB0
-8FECEE E9BAB3
-8FECEF E9BAB4
-8FECF0 E9BAB5
-8FECF1 E9BB86
-8FECF2 E9BB88
-8FECF3 E9BB8B
-8FECF4 E9BB95
-8FECF5 E9BB9F
-8FECF6 E9BBA4
-8FECF7 E9BBA7
-8FECF8 E9BBAC
-8FECF9 E9BBAD
-8FECFA E9BBAE
-8FECFB E9BBB0
-8FECFC E9BBB1
-8FECFD E9BBB2
-8FECFE E9BBB5
-8FEDA1 E9BBB8
-8FEDA2 E9BBBF
-8FEDA3 E9BC82
-8FEDA4 E9BC83
-8FEDA5 E9BC89
-8FEDA6 E9BC8F
-8FEDA7 E9BC90
-8FEDA8 E9BC91
-8FEDA9 E9BC92
-8FEDAA E9BC94
-8FEDAB E9BC96
-8FEDAC E9BC97
-8FEDAD E9BC99
-8FEDAE E9BC9A
-8FEDAF E9BC9B
-8FEDB0 E9BC9F
-8FEDB1 E9BCA2
-8FEDB2 E9BCA6
-8FEDB3 E9BCAA
-8FEDB4 E9BCAB
-8FEDB5 E9BCAF
-8FEDB6 E9BCB1
-8FEDB7 E9BCB2
-8FEDB8 E9BCB4
-8FEDB9 E9BCB7
-8FEDBA E9BCB9
-8FEDBB E9BCBA
-8FEDBC E9BCBC
-8FEDBD E9BCBD
-8FEDBE E9BCBF
-8FEDBF E9BD81
-8FEDC0 E9BD83
-8FEDC1 E9BD84
-8FEDC2 E9BD85
-8FEDC3 E9BD86
-8FEDC4 E9BD87
-8FEDC5 E9BD93
-8FEDC6 E9BD95
-8FEDC7 E9BD96
-8FEDC8 E9BD97
-8FEDC9 E9BD98
-8FEDCA E9BD9A
-8FEDCB E9BD9D
-8FEDCC E9BD9E
-8FEDCD E9BDA8
-8FEDCE E9BDA9
-8FEDCF E9BDAD
-8FEDD0 E9BDAE
-8FEDD1 E9BDAF
-8FEDD2 E9BDB0
-8FEDD3 E9BDB1
-8FEDD4 E9BDB3
-8FEDD5 E9BDB5
-8FEDD6 E9BDBA
-8FEDD7 E9BDBD
-8FEDD8 E9BE8F
-8FEDD9 E9BE90
-8FEDDA E9BE91
-8FEDDB E9BE92
-8FEDDC E9BE94
-8FEDDD E9BE96
-8FEDDE E9BE97
-8FEDDF E9BE9E
-8FEDE0 E9BEA1
-8FEDE1 E9BEA2
-8FEDE2 E9BEA3
-8FEDE3 E9BEA5
-8FF5A1 EE8EAC
-8FF5A2 EE8EAD
-8FF5A3 EE8EAE
-8FF5A4 EE8EAF
-8FF5A5 EE8EB0
-8FF5A6 EE8EB1
-8FF5A7 EE8EB2
-8FF5A8 EE8EB3
-8FF5A9 EE8EB4
-8FF5AA EE8EB5
-8FF5AB EE8EB6
-8FF5AC EE8EB7
-8FF5AD EE8EB8
-8FF5AE EE8EB9
-8FF5AF EE8EBA
-8FF5B0 EE8EBB
-8FF5B1 EE8EBC
-8FF5B2 EE8EBD
-8FF5B3 EE8EBE
-8FF5B4 EE8EBF
-8FF5B5 EE8F80
-8FF5B6 EE8F81
-8FF5B7 EE8F82
-8FF5B8 EE8F83
-8FF5B9 EE8F84
-8FF5BA EE8F85
-8FF5BB EE8F86
-8FF5BC EE8F87
-8FF5BD EE8F88
-8FF5BE EE8F89
-8FF5BF EE8F8A
-8FF5C0 EE8F8B
-8FF5C1 EE8F8C
-8FF5C2 EE8F8D
-8FF5C3 EE8F8E
-8FF5C4 EE8F8F
-8FF5C5 EE8F90
-8FF5C6 EE8F91
-8FF5C7 EE8F92
-8FF5C8 EE8F93
-8FF5C9 EE8F94
-8FF5CA EE8F95
-8FF5CB EE8F96
-8FF5CC EE8F97
-8FF5CD EE8F98
-8FF5CE EE8F99
-8FF5CF EE8F9A
-8FF5D0 EE8F9B
-8FF5D1 EE8F9C
-8FF5D2 EE8F9D
-8FF5D3 EE8F9E
-8FF5D4 EE8F9F
-8FF5D5 EE8FA0
-8FF5D6 EE8FA1
-8FF5D7 EE8FA2
-8FF5D8 EE8FA3
-8FF5D9 EE8FA4
-8FF5DA EE8FA5
-8FF5DB EE8FA6
-8FF5DC EE8FA7
-8FF5DD EE8FA8
-8FF5DE EE8FA9
-8FF5DF EE8FAA
-8FF5E0 EE8FAB
-8FF5E1 EE8FAC
-8FF5E2 EE8FAD
-8FF5E3 EE8FAE
-8FF5E4 EE8FAF
-8FF5E5 EE8FB0
-8FF5E6 EE8FB1
-8FF5E7 EE8FB2
-8FF5E8 EE8FB3
-8FF5E9 EE8FB4
-8FF5EA EE8FB5
-8FF5EB EE8FB6
-8FF5EC EE8FB7
-8FF5ED EE8FB8
-8FF5EE EE8FB9
-8FF5EF EE8FBA
-8FF5F0 EE8FBB
-8FF5F1 EE8FBC
-8FF5F2 EE8FBD
-8FF5F3 EE8FBE
-8FF5F4 EE8FBF
-8FF5F5 EE9080
-8FF5F6 EE9081
-8FF5F7 EE9082
-8FF5F8 EE9083
-8FF5F9 EE9084
-8FF5FA EE9085
-8FF5FB EE9086
-8FF5FC EE9087
-8FF5FD EE9088
-8FF5FE EE9089
-8FF6A1 EE908A
-8FF6A2 EE908B
-8FF6A3 EE908C
-8FF6A4 EE908D
-8FF6A5 EE908E
-8FF6A6 EE908F
-8FF6A7 EE9090
-8FF6A8 EE9091
-8FF6A9 EE9092
-8FF6AA EE9093
-8FF6AB EE9094
-8FF6AC EE9095
-8FF6AD EE9096
-8FF6AE EE9097
-8FF6AF EE9098
-8FF6B0 EE9099
-8FF6B1 EE909A
-8FF6B2 EE909B
-8FF6B3 EE909C
-8FF6B4 EE909D
-8FF6B5 EE909E
-8FF6B6 EE909F
-8FF6B7 EE90A0
-8FF6B8 EE90A1
-8FF6B9 EE90A2
-8FF6BA EE90A3
-8FF6BB EE90A4
-8FF6BC EE90A5
-8FF6BD EE90A6
-8FF6BE EE90A7
-8FF6BF EE90A8
-8FF6C0 EE90A9
-8FF6C1 EE90AA
-8FF6C2 EE90AB
-8FF6C3 EE90AC
-8FF6C4 EE90AD
-8FF6C5 EE90AE
-8FF6C6 EE90AF
-8FF6C7 EE90B0
-8FF6C8 EE90B1
-8FF6C9 EE90B2
-8FF6CA EE90B3
-8FF6CB EE90B4
-8FF6CC EE90B5
-8FF6CD EE90B6
-8FF6CE EE90B7
-8FF6CF EE90B8
-8FF6D0 EE90B9
-8FF6D1 EE90BA
-8FF6D2 EE90BB
-8FF6D3 EE90BC
-8FF6D4 EE90BD
-8FF6D5 EE90BE
-8FF6D6 EE90BF
-8FF6D7 EE9180
-8FF6D8 EE9181
-8FF6D9 EE9182
-8FF6DA EE9183
-8FF6DB EE9184
-8FF6DC EE9185
-8FF6DD EE9186
-8FF6DE EE9187
-8FF6DF EE9188
-8FF6E0 EE9189
-8FF6E1 EE918A
-8FF6E2 EE918B
-8FF6E3 EE918C
-8FF6E4 EE918D
-8FF6E5 EE918E
-8FF6E6 EE918F
-8FF6E7 EE9190
-8FF6E8 EE9191
-8FF6E9 EE9192
-8FF6EA EE9193
-8FF6EB EE9194
-8FF6EC EE9195
-8FF6ED EE9196
-8FF6EE EE9197
-8FF6EF EE9198
-8FF6F0 EE9199
-8FF6F1 EE919A
-8FF6F2 EE919B
-8FF6F3 EE919C
-8FF6F4 EE919D
-8FF6F5 EE919E
-8FF6F6 EE919F
-8FF6F7 EE91A0
-8FF6F8 EE91A1
-8FF6F9 EE91A2
-8FF6FA EE91A3
-8FF6FB EE91A4
-8FF6FC EE91A5
-8FF6FD EE91A6
-8FF6FE EE91A7
-8FF7A1 EE91A8
-8FF7A2 EE91A9
-8FF7A3 EE91AA
-8FF7A4 EE91AB
-8FF7A5 EE91AC
-8FF7A6 EE91AD
-8FF7A7 EE91AE
-8FF7A8 EE91AF
-8FF7A9 EE91B0
-8FF7AA EE91B1
-8FF7AB EE91B2
-8FF7AC EE91B3
-8FF7AD EE91B4
-8FF7AE EE91B5
-8FF7AF EE91B6
-8FF7B0 EE91B7
-8FF7B1 EE91B8
-8FF7B2 EE91B9
-8FF7B3 EE91BA
-8FF7B4 EE91BB
-8FF7B5 EE91BC
-8FF7B6 EE91BD
-8FF7B7 EE91BE
-8FF7B8 EE91BF
-8FF7B9 EE9280
-8FF7BA EE9281
-8FF7BB EE9282
-8FF7BC EE9283
-8FF7BD EE9284
-8FF7BE EE9285
-8FF7BF EE9286
-8FF7C0 EE9287
-8FF7C1 EE9288
-8FF7C2 EE9289
-8FF7C3 EE928A
-8FF7C4 EE928B
-8FF7C5 EE928C
-8FF7C6 EE928D
-8FF7C7 EE928E
-8FF7C8 EE928F
-8FF7C9 EE9290
-8FF7CA EE9291
-8FF7CB EE9292
-8FF7CC EE9293
-8FF7CD EE9294
-8FF7CE EE9295
-8FF7CF EE9296
-8FF7D0 EE9297
-8FF7D1 EE9298
-8FF7D2 EE9299
-8FF7D3 EE929A
-8FF7D4 EE929B
-8FF7D5 EE929C
-8FF7D6 EE929D
-8FF7D7 EE929E
-8FF7D8 EE929F
-8FF7D9 EE92A0
-8FF7DA EE92A1
-8FF7DB EE92A2
-8FF7DC EE92A3
-8FF7DD EE92A4
-8FF7DE EE92A5
-8FF7DF EE92A6
-8FF7E0 EE92A7
-8FF7E1 EE92A8
-8FF7E2 EE92A9
-8FF7E3 EE92AA
-8FF7E4 EE92AB
-8FF7E5 EE92AC
-8FF7E6 EE92AD
-8FF7E7 EE92AE
-8FF7E8 EE92AF
-8FF7E9 EE92B0
-8FF7EA EE92B1
-8FF7EB EE92B2
-8FF7EC EE92B3
-8FF7ED EE92B4
-8FF7EE EE92B5
-8FF7EF EE92B6
-8FF7F0 EE92B7
-8FF7F1 EE92B8
-8FF7F2 EE92B9
-8FF7F3 EE92BA
-8FF7F4 EE92BB
-8FF7F5 EE92BC
-8FF7F6 EE92BD
-8FF7F7 EE92BE
-8FF7F8 EE92BF
-8FF7F9 EE9380
-8FF7FA EE9381
-8FF7FB EE9382
-8FF7FC EE9383
-8FF7FD EE9384
-8FF7FE EE9385
-8FF8A1 EE9386
-8FF8A2 EE9387
-8FF8A3 EE9388
-8FF8A4 EE9389
-8FF8A5 EE938A
-8FF8A6 EE938B
-8FF8A7 EE938C
-8FF8A8 EE938D
-8FF8A9 EE938E
-8FF8AA EE938F
-8FF8AB EE9390
-8FF8AC EE9391
-8FF8AD EE9392
-8FF8AE EE9393
-8FF8AF EE9394
-8FF8B0 EE9395
-8FF8B1 EE9396
-8FF8B2 EE9397
-8FF8B3 EE9398
-8FF8B4 EE9399
-8FF8B5 EE939A
-8FF8B6 EE939B
-8FF8B7 EE939C
-8FF8B8 EE939D
-8FF8B9 EE939E
-8FF8BA EE939F
-8FF8BB EE93A0
-8FF8BC EE93A1
-8FF8BD EE93A2
-8FF8BE EE93A3
-8FF8BF EE93A4
-8FF8C0 EE93A5
-8FF8C1 EE93A6
-8FF8C2 EE93A7
-8FF8C3 EE93A8
-8FF8C4 EE93A9
-8FF8C5 EE93AA
-8FF8C6 EE93AB
-8FF8C7 EE93AC
-8FF8C8 EE93AD
-8FF8C9 EE93AE
-8FF8CA EE93AF
-8FF8CB EE93B0
-8FF8CC EE93B1
-8FF8CD EE93B2
-8FF8CE EE93B3
-8FF8CF EE93B4
-8FF8D0 EE93B5
-8FF8D1 EE93B6
-8FF8D2 EE93B7
-8FF8D3 EE93B8
-8FF8D4 EE93B9
-8FF8D5 EE93BA
-8FF8D6 EE93BB
-8FF8D7 EE93BC
-8FF8D8 EE93BD
-8FF8D9 EE93BE
-8FF8DA EE93BF
-8FF8DB EE9480
-8FF8DC EE9481
-8FF8DD EE9482
-8FF8DE EE9483
-8FF8DF EE9484
-8FF8E0 EE9485
-8FF8E1 EE9486
-8FF8E2 EE9487
-8FF8E3 EE9488
-8FF8E4 EE9489
-8FF8E5 EE948A
-8FF8E6 EE948B
-8FF8E7 EE948C
-8FF8E8 EE948D
-8FF8E9 EE948E
-8FF8EA EE948F
-8FF8EB EE9490
-8FF8EC EE9491
-8FF8ED EE9492
-8FF8EE EE9493
-8FF8EF EE9494
-8FF8F0 EE9495
-8FF8F1 EE9496
-8FF8F2 EE9497
-8FF8F3 EE9498
-8FF8F4 EE9499
-8FF8F5 EE949A
-8FF8F6 EE949B
-8FF8F7 EE949C
-8FF8F8 EE949D
-8FF8F9 EE949E
-8FF8FA EE949F
-8FF8FB EE94A0
-8FF8FC EE94A1
-8FF8FD EE94A2
-8FF8FE EE94A3
-8FF9A1 EE94A4
-8FF9A2 EE94A5
-8FF9A3 EE94A6
-8FF9A4 EE94A7
-8FF9A5 EE94A8
-8FF9A6 EE94A9
-8FF9A7 EE94AA
-8FF9A8 EE94AB
-8FF9A9 EE94AC
-8FF9AA EE94AD
-8FF9AB EE94AE
-8FF9AC EE94AF
-8FF9AD EE94B0
-8FF9AE EE94B1
-8FF9AF EE94B2
-8FF9B0 EE94B3
-8FF9B1 EE94B4
-8FF9B2 EE94B5
-8FF9B3 EE94B6
-8FF9B4 EE94B7
-8FF9B5 EE94B8
-8FF9B6 EE94B9
-8FF9B7 EE94BA
-8FF9B8 EE94BB
-8FF9B9 EE94BC
-8FF9BA EE94BD
-8FF9BB EE94BE
-8FF9BC EE94BF
-8FF9BD EE9580
-8FF9BE EE9581
-8FF9BF EE9582
-8FF9C0 EE9583
-8FF9C1 EE9584
-8FF9C2 EE9585
-8FF9C3 EE9586
-8FF9C4 EE9587
-8FF9C5 EE9588
-8FF9C6 EE9589
-8FF9C7 EE958A
-8FF9C8 EE958B
-8FF9C9 EE958C
-8FF9CA EE958D
-8FF9CB EE958E
-8FF9CC EE958F
-8FF9CD EE9590
-8FF9CE EE9591
-8FF9CF EE9592
-8FF9D0 EE9593
-8FF9D1 EE9594
-8FF9D2 EE9595
-8FF9D3 EE9596
-8FF9D4 EE9597
-8FF9D5 EE9598
-8FF9D6 EE9599
-8FF9D7 EE959A
-8FF9D8 EE959B
-8FF9D9 EE959C
-8FF9DA EE959D
-8FF9DB EE959E
-8FF9DC EE959F
-8FF9DD EE95A0
-8FF9DE EE95A1
-8FF9DF EE95A2
-8FF9E0 EE95A3
-8FF9E1 EE95A4
-8FF9E2 EE95A5
-8FF9E3 EE95A6
-8FF9E4 EE95A7
-8FF9E5 EE95A8
-8FF9E6 EE95A9
-8FF9E7 EE95AA
-8FF9E8 EE95AB
-8FF9E9 EE95AC
-8FF9EA EE95AD
-8FF9EB EE95AE
-8FF9EC EE95AF
-8FF9ED EE95B0
-8FF9EE EE95B1
-8FF9EF EE95B2
-8FF9F0 EE95B3
-8FF9F1 EE95B4
-8FF9F2 EE95B5
-8FF9F3 EE95B6
-8FF9F4 EE95B7
-8FF9F5 EE95B8
-8FF9F6 EE95B9
-8FF9F7 EE95BA
-8FF9F8 EE95BB
-8FF9F9 EE95BC
-8FF9FA EE95BD
-8FF9FB EE95BE
-8FF9FC EE95BF
-8FF9FD EE9680
-8FF9FE EE9681
-8FFAA1 EE9682
-8FFAA2 EE9683
-8FFAA3 EE9684
-8FFAA4 EE9685
-8FFAA5 EE9686
-8FFAA6 EE9687
-8FFAA7 EE9688
-8FFAA8 EE9689
-8FFAA9 EE968A
-8FFAAA EE968B
-8FFAAB EE968C
-8FFAAC EE968D
-8FFAAD EE968E
-8FFAAE EE968F
-8FFAAF EE9690
-8FFAB0 EE9691
-8FFAB1 EE9692
-8FFAB2 EE9693
-8FFAB3 EE9694
-8FFAB4 EE9695
-8FFAB5 EE9696
-8FFAB6 EE9697
-8FFAB7 EE9698
-8FFAB8 EE9699
-8FFAB9 EE969A
-8FFABA EE969B
-8FFABB EE969C
-8FFABC EE969D
-8FFABD EE969E
-8FFABE EE969F
-8FFABF EE96A0
-8FFAC0 EE96A1
-8FFAC1 EE96A2
-8FFAC2 EE96A3
-8FFAC3 EE96A4
-8FFAC4 EE96A5
-8FFAC5 EE96A6
-8FFAC6 EE96A7
-8FFAC7 EE96A8
-8FFAC8 EE96A9
-8FFAC9 EE96AA
-8FFACA EE96AB
-8FFACB EE96AC
-8FFACC EE96AD
-8FFACD EE96AE
-8FFACE EE96AF
-8FFACF EE96B0
-8FFAD0 EE96B1
-8FFAD1 EE96B2
-8FFAD2 EE96B3
-8FFAD3 EE96B4
-8FFAD4 EE96B5
-8FFAD5 EE96B6
-8FFAD6 EE96B7
-8FFAD7 EE96B8
-8FFAD8 EE96B9
-8FFAD9 EE96BA
-8FFADA EE96BB
-8FFADB EE96BC
-8FFADC EE96BD
-8FFADD EE96BE
-8FFADE EE96BF
-8FFADF EE9780
-8FFAE0 EE9781
-8FFAE1 EE9782
-8FFAE2 EE9783
-8FFAE3 EE9784
-8FFAE4 EE9785
-8FFAE5 EE9786
-8FFAE6 EE9787
-8FFAE7 EE9788
-8FFAE8 EE9789
-8FFAE9 EE978A
-8FFAEA EE978B
-8FFAEB EE978C
-8FFAEC EE978D
-8FFAED EE978E
-8FFAEE EE978F
-8FFAEF EE9790
-8FFAF0 EE9791
-8FFAF1 EE9792
-8FFAF2 EE9793
-8FFAF3 EE9794
-8FFAF4 EE9795
-8FFAF5 EE9796
-8FFAF6 EE9797
-8FFAF7 EE9798
-8FFAF8 EE9799
-8FFAF9 EE979A
-8FFAFA EE979B
-8FFAFB EE979C
-8FFAFC EE979D
-8FFAFD EE979E
-8FFAFE EE979F
-8FFBA1 EE97A0
-8FFBA2 EE97A1
-8FFBA3 EE97A2
-8FFBA4 EE97A3
-8FFBA5 EE97A4
-8FFBA6 EE97A5
-8FFBA7 EE97A6
-8FFBA8 EE97A7
-8FFBA9 EE97A8
-8FFBAA EE97A9
-8FFBAB EE97AA
-8FFBAC EE97AB
-8FFBAD EE97AC
-8FFBAE EE97AD
-8FFBAF EE97AE
-8FFBB0 EE97AF
-8FFBB1 EE97B0
-8FFBB2 EE97B1
-8FFBB3 EE97B2
-8FFBB4 EE97B3
-8FFBB5 EE97B4
-8FFBB6 EE97B5
-8FFBB7 EE97B6
-8FFBB8 EE97B7
-8FFBB9 EE97B8
-8FFBBA EE97B9
-8FFBBB EE97BA
-8FFBBC EE97BB
-8FFBBD EE97BC
-8FFBBE EE97BD
-8FFBBF EE97BE
-8FFBC0 EE97BF
-8FFBC1 EE9880
-8FFBC2 EE9881
-8FFBC3 EE9882
-8FFBC4 EE9883
-8FFBC5 EE9884
-8FFBC6 EE9885
-8FFBC7 EE9886
-8FFBC8 EE9887
-8FFBC9 EE9888
-8FFBCA EE9889
-8FFBCB EE988A
-8FFBCC EE988B
-8FFBCD EE988C
-8FFBCE EE988D
-8FFBCF EE988E
-8FFBD0 EE988F
-8FFBD1 EE9890
-8FFBD2 EE9891
-8FFBD3 EE9892
-8FFBD4 EE9893
-8FFBD5 EE9894
-8FFBD6 EE9895
-8FFBD7 EE9896
-8FFBD8 EE9897
-8FFBD9 EE9898
-8FFBDA EE9899
-8FFBDB EE989A
-8FFBDC EE989B
-8FFBDD EE989C
-8FFBDE EE989D
-8FFBDF EE989E
-8FFBE0 EE989F
-8FFBE1 EE98A0
-8FFBE2 EE98A1
-8FFBE3 EE98A2
-8FFBE4 EE98A3
-8FFBE5 EE98A4
-8FFBE6 EE98A5
-8FFBE7 EE98A6
-8FFBE8 EE98A7
-8FFBE9 EE98A8
-8FFBEA EE98A9
-8FFBEB EE98AA
-8FFBEC EE98AB
-8FFBED EE98AC
-8FFBEE EE98AD
-8FFBEF EE98AE
-8FFBF0 EE98AF
-8FFBF1 EE98B0
-8FFBF2 EE98B1
-8FFBF3 EE98B2
-8FFBF4 EE98B3
-8FFBF5 EE98B4
-8FFBF6 EE98B5
-8FFBF7 EE98B6
-8FFBF8 EE98B7
-8FFBF9 EE98B8
-8FFBFA EE98B9
-8FFBFB EE98BA
-8FFBFC EE98BB
-8FFBFD EE98BC
-8FFBFE EE98BD
-8FFCA1 EE98BE
-8FFCA2 EE98BF
-8FFCA3 EE9980
-8FFCA4 EE9981
-8FFCA5 EE9982
-8FFCA6 EE9983
-8FFCA7 EE9984
-8FFCA8 EE9985
-8FFCA9 EE9986
-8FFCAA EE9987
-8FFCAB EE9988
-8FFCAC EE9989
-8FFCAD EE998A
-8FFCAE EE998B
-8FFCAF EE998C
-8FFCB0 EE998D
-8FFCB1 EE998E
-8FFCB2 EE998F
-8FFCB3 EE9990
-8FFCB4 EE9991
-8FFCB5 EE9992
-8FFCB6 EE9993
-8FFCB7 EE9994
-8FFCB8 EE9995
-8FFCB9 EE9996
-8FFCBA EE9997
-8FFCBB EE9998
-8FFCBC EE9999
-8FFCBD EE999A
-8FFCBE EE999B
-8FFCBF EE999C
-8FFCC0 EE999D
-8FFCC1 EE999E
-8FFCC2 EE999F
-8FFCC3 EE99A0
-8FFCC4 EE99A1
-8FFCC5 EE99A2
-8FFCC6 EE99A3
-8FFCC7 EE99A4
-8FFCC8 EE99A5
-8FFCC9 EE99A6
-8FFCCA EE99A7
-8FFCCB EE99A8
-8FFCCC EE99A9
-8FFCCD EE99AA
-8FFCCE EE99AB
-8FFCCF EE99AC
-8FFCD0 EE99AD
-8FFCD1 EE99AE
-8FFCD2 EE99AF
-8FFCD3 EE99B0
-8FFCD4 EE99B1
-8FFCD5 EE99B2
-8FFCD6 EE99B3
-8FFCD7 EE99B4
-8FFCD8 EE99B5
-8FFCD9 EE99B6
-8FFCDA EE99B7
-8FFCDB EE99B8
-8FFCDC EE99B9
-8FFCDD EE99BA
-8FFCDE EE99BB
-8FFCDF EE99BC
-8FFCE0 EE99BD
-8FFCE1 EE99BE
-8FFCE2 EE99BF
-8FFCE3 EE9A80
-8FFCE4 EE9A81
-8FFCE5 EE9A82
-8FFCE6 EE9A83
-8FFCE7 EE9A84
-8FFCE8 EE9A85
-8FFCE9 EE9A86
-8FFCEA EE9A87
-8FFCEB EE9A88
-8FFCEC EE9A89
-8FFCED EE9A8A
-8FFCEE EE9A8B
-8FFCEF EE9A8C
-8FFCF0 EE9A8D
-8FFCF1 EE9A8E
-8FFCF2 EE9A8F
-8FFCF3 EE9A90
-8FFCF4 EE9A91
-8FFCF5 EE9A92
-8FFCF6 EE9A93
-8FFCF7 EE9A94
-8FFCF8 EE9A95
-8FFCF9 EE9A96
-8FFCFA EE9A97
-8FFCFB EE9A98
-8FFCFC EE9A99
-8FFCFD EE9A9A
-8FFCFE EE9A9B
-8FFDA1 EE9A9C
-8FFDA2 EE9A9D
-8FFDA3 EE9A9E
-8FFDA4 EE9A9F
-8FFDA5 EE9AA0
-8FFDA6 EE9AA1
-8FFDA7 EE9AA2
-8FFDA8 EE9AA3
-8FFDA9 EE9AA4
-8FFDAA EE9AA5
-8FFDAB EE9AA6
-8FFDAC EE9AA7
-8FFDAD EE9AA8
-8FFDAE EE9AA9
-8FFDAF EE9AAA
-8FFDB0 EE9AAB
-8FFDB1 EE9AAC
-8FFDB2 EE9AAD
-8FFDB3 EE9AAE
-8FFDB4 EE9AAF
-8FFDB5 EE9AB0
-8FFDB6 EE9AB1
-8FFDB7 EE9AB2
-8FFDB8 EE9AB3
-8FFDB9 EE9AB4
-8FFDBA EE9AB5
-8FFDBB EE9AB6
-8FFDBC EE9AB7
-8FFDBD EE9AB8
-8FFDBE EE9AB9
-8FFDBF EE9ABA
-8FFDC0 EE9ABB
-8FFDC1 EE9ABC
-8FFDC2 EE9ABD
-8FFDC3 EE9ABE
-8FFDC4 EE9ABF
-8FFDC5 EE9B80
-8FFDC6 EE9B81
-8FFDC7 EE9B82
-8FFDC8 EE9B83
-8FFDC9 EE9B84
-8FFDCA EE9B85
-8FFDCB EE9B86
-8FFDCC EE9B87
-8FFDCD EE9B88
-8FFDCE EE9B89
-8FFDCF EE9B8A
-8FFDD0 EE9B8B
-8FFDD1 EE9B8C
-8FFDD2 EE9B8D
-8FFDD3 EE9B8E
-8FFDD4 EE9B8F
-8FFDD5 EE9B90
-8FFDD6 EE9B91
-8FFDD7 EE9B92
-8FFDD8 EE9B93
-8FFDD9 EE9B94
-8FFDDA EE9B95
-8FFDDB EE9B96
-8FFDDC EE9B97
-8FFDDD EE9B98
-8FFDDE EE9B99
-8FFDDF EE9B9A
-8FFDE0 EE9B9B
-8FFDE1 EE9B9C
-8FFDE2 EE9B9D
-8FFDE3 EE9B9E
-8FFDE4 EE9B9F
-8FFDE5 EE9BA0
-8FFDE6 EE9BA1
-8FFDE7 EE9BA2
-8FFDE8 EE9BA3
-8FFDE9 EE9BA4
-8FFDEA EE9BA5
-8FFDEB EE9BA6
-8FFDEC EE9BA7
-8FFDED EE9BA8
-8FFDEE EE9BA9
-8FFDEF EE9BAA
-8FFDF0 EE9BAB
-8FFDF1 EE9BAC
-8FFDF2 EE9BAD
-8FFDF3 EE9BAE
-8FFDF4 EE9BAF
-8FFDF5 EE9BB0
-8FFDF6 EE9BB1
-8FFDF7 EE9BB2
-8FFDF8 EE9BB3
-8FFDF9 EE9BB4
-8FFDFA EE9BB5
-8FFDFB EE9BB6
-8FFDFC EE9BB7
-8FFDFD EE9BB8
-8FFDFE EE9BB9
-8FFEA1 EE9BBA
-8FFEA2 EE9BBB
-8FFEA3 EE9BBC
-8FFEA4 EE9BBD
-8FFEA5 EE9BBE
-8FFEA6 EE9BBF
-8FFEA7 EE9C80
-8FFEA8 EE9C81
-8FFEA9 EE9C82
-8FFEAA EE9C83
-8FFEAB EE9C84
-8FFEAC EE9C85
-8FFEAD EE9C86
-8FFEAE EE9C87
-8FFEAF EE9C88
-8FFEB0 EE9C89
-8FFEB1 EE9C8A
-8FFEB2 EE9C8B
-8FFEB3 EE9C8C
-8FFEB4 EE9C8D
-8FFEB5 EE9C8E
-8FFEB6 EE9C8F
-8FFEB7 EE9C90
-8FFEB8 EE9C91
-8FFEB9 EE9C92
-8FFEBA EE9C93
-8FFEBB EE9C94
-8FFEBC EE9C95
-8FFEBD EE9C96
-8FFEBE EE9C97
-8FFEBF EE9C98
-8FFEC0 EE9C99
-8FFEC1 EE9C9A
-8FFEC2 EE9C9B
-8FFEC3 EE9C9C
-8FFEC4 EE9C9D
-8FFEC5 EE9C9E
-8FFEC6 EE9C9F
-8FFEC7 EE9CA0
-8FFEC8 EE9CA1
-8FFEC9 EE9CA2
-8FFECA EE9CA3
-8FFECB EE9CA4
-8FFECC EE9CA5
-8FFECD EE9CA6
-8FFECE EE9CA7
-8FFECF EE9CA8
-8FFED0 EE9CA9
-8FFED1 EE9CAA
-8FFED2 EE9CAB
-8FFED3 EE9CAC
-8FFED4 EE9CAD
-8FFED5 EE9CAE
-8FFED6 EE9CAF
-8FFED7 EE9CB0
-8FFED8 EE9CB1
-8FFED9 EE9CB2
-8FFEDA EE9CB3
-8FFEDB EE9CB4
-8FFEDC EE9CB5
-8FFEDD EE9CB6
-8FFEDE EE9CB7
-8FFEDF EE9CB8
-8FFEE0 EE9CB9
-8FFEE1 EE9CBA
-8FFEE2 EE9CBB
-8FFEE3 EE9CBC
-8FFEE4 EE9CBD
-8FFEE5 EE9CBE
-8FFEE6 EE9CBF
-8FFEE7 EE9D80
-8FFEE8 EE9D81
-8FFEE9 EE9D82
-8FFEEA EE9D83
-8FFEEB EE9D84
-8FFEEC EE9D85
-8FFEED EE9D86
-8FFEEE EE9D87
-8FFEEF EE9D88
-8FFEF0 EE9D89
-8FFEF1 EE9D8A
-8FFEF2 EE9D8B
-8FFEF3 EE9D8C
-8FFEF4 EE9D8D
-8FFEF5 EE9D8E
-8FFEF6 EE9D8F
-8FFEF7 EE9D90
-8FFEF8 EE9D91
-8FFEF9 EE9D92
-8FFEFA EE9D93
-8FFEFB EE9D94
-8FFEFC EE9D95
-8FFEFD EE9D96
-8FFEFE EE9D97
-A1A1 E38080
-A1A2 E38081
-A1A3 E38082
-A1A4 EFBC8C
-A1A5 EFBC8E
-A1A6 E383BB
-A1A7 EFBC9A
-A1A8 EFBC9B
-A1A9 EFBC9F
-A1AA EFBC81
-A1AB E3829B
-A1AC E3829C
-A1AD C2B4
-A1AE EFBD80
-A1AF C2A8
-A1B0 EFBCBE
-A1B1 EFBFA3
-A1B2 EFBCBF
-A1B3 E383BD
-A1B4 E383BE
-A1B5 E3829D
-A1B6 E3829E
-A1B7 E38083
-A1B8 E4BB9D
-A1B9 E38085
-A1BA E38086
-A1BB E38087
-A1BC E383BC
-A1BD E28095
-A1BE E28090
-A1BF EFBC8F
-A1C0 5C
-A1C1 E3809C
-A1C2 E28096
-A1C3 EFBD9C
-A1C4 E280A6
-A1C5 E280A5
-A1C6 E28098
-A1C7 E28099
-A1C8 E2809C
-A1C9 E2809D
-A1CA EFBC88
-A1CB EFBC89
-A1CC E38094
-A1CD E38095
-A1CE EFBCBB
-A1CF EFBCBD
-A1D0 EFBD9B
-A1D1 EFBD9D
-A1D2 E38088
-A1D3 E38089
-A1D4 E3808A
-A1D5 E3808B
-A1D6 E3808C
-A1D7 E3808D
-A1D8 E3808E
-A1D9 E3808F
-A1DA E38090
-A1DB E38091
-A1DC EFBC8B
-A1DD E28892
-A1DE C2B1
-A1DF C397
-A1E0 C3B7
-A1E1 EFBC9D
-A1E2 E289A0
-A1E3 EFBC9C
-A1E4 EFBC9E
-A1E5 E289A6
-A1E6 E289A7
-A1E7 E2889E
-A1E8 E288B4
-A1E9 E29982
-A1EA E29980
-A1EB C2B0
-A1EC E280B2
-A1ED E280B3
-A1EE E28483
-A1EF EFBFA5
-A1F0 EFBC84
-A1F1 C2A2
-A1F2 C2A3
-A1F3 EFBC85
-A1F4 EFBC83
-A1F5 EFBC86
-A1F6 EFBC8A
-A1F7 EFBCA0
-A1F8 C2A7
-A1F9 E29886
-A1FA E29885
-A1FB E2978B
-A1FC E2978F
-A1FD E2978E
-A1FE E29787
-A2A1 E29786
-A2A2 E296A1
-A2A3 E296A0
-A2A4 E296B3
-A2A5 E296B2
-A2A6 E296BD
-A2A7 E296BC
-A2A8 E280BB
-A2A9 E38092
-A2AA E28692
-A2AB E28690
-A2AC E28691
-A2AD E28693
-A2AE E38093
-A2BA E28888
-A2BB E2888B
-A2BC E28A86
-A2BD E28A87
-A2BE E28A82
-A2BF E28A83
-A2C0 E288AA
-A2C1 E288A9
-A2CA E288A7
-A2CB E288A8
-A2CC C2AC
-A2CD E28792
-A2CE E28794
-A2CF E28880
-A2D0 E28883
-A2DC E288A0
-A2DD E28AA5
-A2DE E28C92
-A2DF E28882
-A2E0 E28887
-A2E1 E289A1
-A2E2 E28992
-A2E3 E289AA
-A2E4 E289AB
-A2E5 E2889A
-A2E6 E288BD
-A2E7 E2889D
-A2E8 E288B5
-A2E9 E288AB
-A2EA E288AC
-A2F2 E284AB
-A2F3 E280B0
-A2F4 E299AF
-A2F5 E299AD
-A2F6 E299AA
-A2F7 E280A0
-A2F8 E280A1
-A2F9 C2B6
-A2FE E297AF
-A3B0 EFBC90
-A3B1 EFBC91
-A3B2 EFBC92
-A3B3 EFBC93
-A3B4 EFBC94
-A3B5 EFBC95
-A3B6 EFBC96
-A3B7 EFBC97
-A3B8 EFBC98
-A3B9 EFBC99
-A3C1 EFBCA1
-A3C2 EFBCA2
-A3C3 EFBCA3
-A3C4 EFBCA4
-A3C5 EFBCA5
-A3C6 EFBCA6
-A3C7 EFBCA7
-A3C8 EFBCA8
-A3C9 EFBCA9
-A3CA EFBCAA
-A3CB EFBCAB
-A3CC EFBCAC
-A3CD EFBCAD
-A3CE EFBCAE
-A3CF EFBCAF
-A3D0 EFBCB0
-A3D1 EFBCB1
-A3D2 EFBCB2
-A3D3 EFBCB3
-A3D4 EFBCB4
-A3D5 EFBCB5
-A3D6 EFBCB6
-A3D7 EFBCB7
-A3D8 EFBCB8
-A3D9 EFBCB9
-A3DA EFBCBA
-A3E1 EFBD81
-A3E2 EFBD82
-A3E3 EFBD83
-A3E4 EFBD84
-A3E5 EFBD85
-A3E6 EFBD86
-A3E7 EFBD87
-A3E8 EFBD88
-A3E9 EFBD89
-A3EA EFBD8A
-A3EB EFBD8B
-A3EC EFBD8C
-A3ED EFBD8D
-A3EE EFBD8E
-A3EF EFBD8F
-A3F0 EFBD90
-A3F1 EFBD91
-A3F2 EFBD92
-A3F3 EFBD93
-A3F4 EFBD94
-A3F5 EFBD95
-A3F6 EFBD96
-A3F7 EFBD97
-A3F8 EFBD98
-A3F9 EFBD99
-A3FA EFBD9A
-A4A1 E38181
-A4A2 E38182
-A4A3 E38183
-A4A4 E38184
-A4A5 E38185
-A4A6 E38186
-A4A7 E38187
-A4A8 E38188
-A4A9 E38189
-A4AA E3818A
-A4AB E3818B
-A4AC E3818C
-A4AD E3818D
-A4AE E3818E
-A4AF E3818F
-A4B0 E38190
-A4B1 E38191
-A4B2 E38192
-A4B3 E38193
-A4B4 E38194
-A4B5 E38195
-A4B6 E38196
-A4B7 E38197
-A4B8 E38198
-A4B9 E38199
-A4BA E3819A
-A4BB E3819B
-A4BC E3819C
-A4BD E3819D
-A4BE E3819E
-A4BF E3819F
-A4C0 E381A0
-A4C1 E381A1
-A4C2 E381A2
-A4C3 E381A3
-A4C4 E381A4
-A4C5 E381A5
-A4C6 E381A6
-A4C7 E381A7
-A4C8 E381A8
-A4C9 E381A9
-A4CA E381AA
-A4CB E381AB
-A4CC E381AC
-A4CD E381AD
-A4CE E381AE
-A4CF E381AF
-A4D0 E381B0
-A4D1 E381B1
-A4D2 E381B2
-A4D3 E381B3
-A4D4 E381B4
-A4D5 E381B5
-A4D6 E381B6
-A4D7 E381B7
-A4D8 E381B8
-A4D9 E381B9
-A4DA E381BA
-A4DB E381BB
-A4DC E381BC
-A4DD E381BD
-A4DE E381BE
-A4DF E381BF
-A4E0 E38280
-A4E1 E38281
-A4E2 E38282
-A4E3 E38283
-A4E4 E38284
-A4E5 E38285
-A4E6 E38286
-A4E7 E38287
-A4E8 E38288
-A4E9 E38289
-A4EA E3828A
-A4EB E3828B
-A4EC E3828C
-A4ED E3828D
-A4EE E3828E
-A4EF E3828F
-A4F0 E38290
-A4F1 E38291
-A4F2 E38292
-A4F3 E38293
-A5A1 E382A1
-A5A2 E382A2
-A5A3 E382A3
-A5A4 E382A4
-A5A5 E382A5
-A5A6 E382A6
-A5A7 E382A7
-A5A8 E382A8
-A5A9 E382A9
-A5AA E382AA
-A5AB E382AB
-A5AC E382AC
-A5AD E382AD
-A5AE E382AE
-A5AF E382AF
-A5B0 E382B0
-A5B1 E382B1
-A5B2 E382B2
-A5B3 E382B3
-A5B4 E382B4
-A5B5 E382B5
-A5B6 E382B6
-A5B7 E382B7
-A5B8 E382B8
-A5B9 E382B9
-A5BA E382BA
-A5BB E382BB
-A5BC E382BC
-A5BD E382BD
-A5BE E382BE
-A5BF E382BF
-A5C0 E38380
-A5C1 E38381
-A5C2 E38382
-A5C3 E38383
-A5C4 E38384
-A5C5 E38385
-A5C6 E38386
-A5C7 E38387
-A5C8 E38388
-A5C9 E38389
-A5CA E3838A
-A5CB E3838B
-A5CC E3838C
-A5CD E3838D
-A5CE E3838E
-A5CF E3838F
-A5D0 E38390
-A5D1 E38391
-A5D2 E38392
-A5D3 E38393
-A5D4 E38394
-A5D5 E38395
-A5D6 E38396
-A5D7 E38397
-A5D8 E38398
-A5D9 E38399
-A5DA E3839A
-A5DB E3839B
-A5DC E3839C
-A5DD E3839D
-A5DE E3839E
-A5DF E3839F
-A5E0 E383A0
-A5E1 E383A1
-A5E2 E383A2
-A5E3 E383A3
-A5E4 E383A4
-A5E5 E383A5
-A5E6 E383A6
-A5E7 E383A7
-A5E8 E383A8
-A5E9 E383A9
-A5EA E383AA
-A5EB E383AB
-A5EC E383AC
-A5ED E383AD
-A5EE E383AE
-A5EF E383AF
-A5F0 E383B0
-A5F1 E383B1
-A5F2 E383B2
-A5F3 E383B3
-A5F4 E383B4
-A5F5 E383B5
-A5F6 E383B6
-A6A1 CE91
-A6A2 CE92
-A6A3 CE93
-A6A4 CE94
-A6A5 CE95
-A6A6 CE96
-A6A7 CE97
-A6A8 CE98
-A6A9 CE99
-A6AA CE9A
-A6AB CE9B
-A6AC CE9C
-A6AD CE9D
-A6AE CE9E
-A6AF CE9F
-A6B0 CEA0
-A6B1 CEA1
-A6B2 CEA3
-A6B3 CEA4
-A6B4 CEA5
-A6B5 CEA6
-A6B6 CEA7
-A6B7 CEA8
-A6B8 CEA9
-A6C1 CEB1
-A6C2 CEB2
-A6C3 CEB3
-A6C4 CEB4
-A6C5 CEB5
-A6C6 CEB6
-A6C7 CEB7
-A6C8 CEB8
-A6C9 CEB9
-A6CA CEBA
-A6CB CEBB
-A6CC CEBC
-A6CD CEBD
-A6CE CEBE
-A6CF CEBF
-A6D0 CF80
-A6D1 CF81
-A6D2 CF83
-A6D3 CF84
-A6D4 CF85
-A6D5 CF86
-A6D6 CF87
-A6D7 CF88
-A6D8 CF89
-A7A1 D090
-A7A2 D091
-A7A3 D092
-A7A4 D093
-A7A5 D094
-A7A6 D095
-A7A7 D081
-A7A8 D096
-A7A9 D097
-A7AA D098
-A7AB D099
-A7AC D09A
-A7AD D09B
-A7AE D09C
-A7AF D09D
-A7B0 D09E
-A7B1 D09F
-A7B2 D0A0
-A7B3 D0A1
-A7B4 D0A2
-A7B5 D0A3
-A7B6 D0A4
-A7B7 D0A5
-A7B8 D0A6
-A7B9 D0A7
-A7BA D0A8
-A7BB D0A9
-A7BC D0AA
-A7BD D0AB
-A7BE D0AC
-A7BF D0AD
-A7C0 D0AE
-A7C1 D0AF
-A7D1 D0B0
-A7D2 D0B1
-A7D3 D0B2
-A7D4 D0B3
-A7D5 D0B4
-A7D6 D0B5
-A7D7 D191
-A7D8 D0B6
-A7D9 D0B7
-A7DA D0B8
-A7DB D0B9
-A7DC D0BA
-A7DD D0BB
-A7DE D0BC
-A7DF D0BD
-A7E0 D0BE
-A7E1 D0BF
-A7E2 D180
-A7E3 D181
-A7E4 D182
-A7E5 D183
-A7E6 D184
-A7E7 D185
-A7E8 D186
-A7E9 D187
-A7EA D188
-A7EB D189
-A7EC D18A
-A7ED D18B
-A7EE D18C
-A7EF D18D
-A7F0 D18E
-A7F1 D18F
-A8A1 E29480
-A8A2 E29482
-A8A3 E2948C
-A8A4 E29490
-A8A5 E29498
-A8A6 E29494
-A8A7 E2949C
-A8A8 E294AC
-A8A9 E294A4
-A8AA E294B4
-A8AB E294BC
-A8AC E29481
-A8AD E29483
-A8AE E2948F
-A8AF E29493
-A8B0 E2949B
-A8B1 E29497
-A8B2 E294A3
-A8B3 E294B3
-A8B4 E294AB
-A8B5 E294BB
-A8B6 E2958B
-A8B7 E294A0
-A8B8 E294AF
-A8B9 E294A8
-A8BA E294B7
-A8BB E294BF
-A8BC E2949D
-A8BD E294B0
-A8BE E294A5
-A8BF E294B8
-A8C0 E29582
-B0A1 E4BA9C
-B0A2 E59496
-B0A3 E5A883
-B0A4 E998BF
-B0A5 E59380
-B0A6 E6849B
-B0A7 E68CA8
-B0A8 E5A7B6
-B0A9 E980A2
-B0AA E891B5
-B0AB E88C9C
-B0AC E7A990
-B0AD E682AA
-B0AE E68FA1
-B0AF E6B8A5
-B0B0 E697AD
-B0B1 E891A6
-B0B2 E88AA6
-B0B3 E9AFB5
-B0B4 E6A293
-B0B5 E59CA7
-B0B6 E696A1
-B0B7 E689B1
-B0B8 E5AE9B
-B0B9 E5A790
-B0BA E899BB
-B0BB E9A3B4
-B0BC E7B5A2
-B0BD E7B6BE
-B0BE E9AE8E
-B0BF E68896
-B0C0 E7B29F
-B0C1 E8A2B7
-B0C2 E5AE89
-B0C3 E5BAB5
-B0C4 E68C89
-B0C5 E69A97
-B0C6 E6A188
-B0C7 E99787
-B0C8 E99E8D
-B0C9 E69D8F
-B0CA E4BBA5
-B0CB E4BC8A
-B0CC E4BD8D
-B0CD E4BE9D
-B0CE E58189
-B0CF E59BB2
-B0D0 E5A4B7
-B0D1 E5A794
-B0D2 E5A881
-B0D3 E5B089
-B0D4 E6839F
-B0D5 E6848F
-B0D6 E685B0
-B0D7 E69893
-B0D8 E6A485
-B0D9 E782BA
-B0DA E7958F
-B0DB E795B0
-B0DC E7A7BB
-B0DD E7B6AD
-B0DE E7B7AF
-B0DF E88383
-B0E0 E8908E
-B0E1 E8A1A3
-B0E2 E8AC82
-B0E3 E98195
-B0E4 E981BA
-B0E5 E58CBB
-B0E6 E4BA95
-B0E7 E4BAA5
-B0E8 E59F9F
-B0E9 E882B2
-B0EA E98381
-B0EB E7A3AF
-B0EC E4B880
-B0ED E5A3B1
-B0EE E6BAA2
-B0EF E980B8
-B0F0 E7A8B2
-B0F1 E88CA8
-B0F2 E88A8B
-B0F3 E9B0AF
-B0F4 E58581
-B0F5 E58DB0
-B0F6 E592BD
-B0F7 E593A1
-B0F8 E59BA0
-B0F9 E5A7BB
-B0FA E5BC95
-B0FB E9A3B2
-B0FC E6B7AB
-B0FD E883A4
-B0FE E894AD
-B1A1 E999A2
-B1A2 E999B0
-B1A3 E99AA0
-B1A4 E99FBB
-B1A5 E5908B
-B1A6 E58FB3
-B1A7 E5AE87
-B1A8 E7838F
-B1A9 E7BEBD
-B1AA E8BF82
-B1AB E99BA8
-B1AC E58DAF
-B1AD E9B59C
-B1AE E7AABA
-B1AF E4B891
-B1B0 E7A293
-B1B1 E887BC
-B1B2 E6B8A6
-B1B3 E59898
-B1B4 E59484
-B1B5 E6AC9D
-B1B6 E8949A
-B1B7 E9B0BB
-B1B8 E5A7A5
-B1B9 E58EA9
-B1BA E6B5A6
-B1BB E7939C
-B1BC E9968F
-B1BD E59982
-B1BE E4BA91
-B1BF E9818B
-B1C0 E99BB2
-B1C1 E88D8F
-B1C2 E9A48C
-B1C3 E58FA1
-B1C4 E596B6
-B1C5 E5ACB0
-B1C6 E5BDB1
-B1C7 E698A0
-B1C8 E69BB3
-B1C9 E6A084
-B1CA E6B0B8
-B1CB E6B3B3
-B1CC E6B4A9
-B1CD E7919B
-B1CE E79B88
-B1CF E7A98E
-B1D0 E9A0B4
-B1D1 E88BB1
-B1D2 E8A19B
-B1D3 E8A9A0
-B1D4 E98BAD
-B1D5 E6B6B2
-B1D6 E796AB
-B1D7 E79B8A
-B1D8 E9A785
-B1D9 E682A6
-B1DA E8AC81
-B1DB E8B68A
-B1DC E996B2
-B1DD E6A68E
-B1DE E58EAD
-B1DF E58686
-B1E0 E59C92
-B1E1 E5A0B0
-B1E2 E5A584
-B1E3 E5AEB4
-B1E4 E5BBB6
-B1E5 E680A8
-B1E6 E68EA9
-B1E7 E68FB4
-B1E8 E6B2BF
-B1E9 E6BC94
-B1EA E7828E
-B1EB E78494
-B1EC E78599
-B1ED E78795
-B1EE E78CBF
-B1EF E7B881
-B1F0 E889B6
-B1F1 E88B91
-B1F2 E89697
-B1F3 E981A0
-B1F4 E9899B
-B1F5 E9B49B
-B1F6 E5A1A9
-B1F7 E696BC
-B1F8 E6B19A
-B1F9 E794A5
-B1FA E587B9
-B1FB E5A4AE
-B1FC E5A5A5
-B1FD E5BE80
-B1FE E5BF9C
-B2A1 E68ABC
-B2A2 E697BA
-B2A3 E6A8AA
-B2A4 E6ACA7
-B2A5 E6AEB4
-B2A6 E78E8B
-B2A7 E7BF81
-B2A8 E8A596
-B2A9 E9B4AC
-B2AA E9B48E
-B2AB E9BB84
-B2AC E5B2A1
-B2AD E6B296
-B2AE E88DBB
-B2AF E58484
-B2B0 E5B18B
-B2B1 E686B6
-B2B2 E88786
-B2B3 E6A1B6
-B2B4 E789A1
-B2B5 E4B999
-B2B6 E4BFBA
-B2B7 E58DB8
-B2B8 E681A9
-B2B9 E6B8A9
-B2BA E7A98F
-B2BB E99FB3
-B2BC E4B88B
-B2BD E58C96
-B2BE E4BBAE
-B2BF E4BD95
-B2C0 E4BCBD
-B2C1 E4BEA1
-B2C2 E4BDB3
-B2C3 E58AA0
-B2C4 E58FAF
-B2C5 E59889
-B2C6 E5A48F
-B2C7 E5AB81
-B2C8 E5AEB6
-B2C9 E5AFA1
-B2CA E7A791
-B2CB E69A87
-B2CC E69E9C
-B2CD E69EB6
-B2CE E6AD8C
-B2CF E6B2B3
-B2D0 E781AB
-B2D1 E78F82
-B2D2 E7A68D
-B2D3 E7A6BE
-B2D4 E7A8BC
-B2D5 E7AE87
-B2D6 E88AB1
-B2D7 E88B9B
-B2D8 E88C84
-B2D9 E88DB7
-B2DA E88FAF
-B2DB E88F93
-B2DC E89DA6
-B2DD E8AAB2
-B2DE E598A9
-B2DF E8B2A8
-B2E0 E8BFA6
-B2E1 E9818E
-B2E2 E99C9E
-B2E3 E89A8A
-B2E4 E4BF84
-B2E5 E5B3A8
-B2E6 E68891
-B2E7 E78999
-B2E8 E794BB
-B2E9 E887A5
-B2EA E88ABD
-B2EB E89BBE
-B2EC E8B380
-B2ED E99B85
-B2EE E9A493
-B2EF E9A795
-B2F0 E4BB8B
-B2F1 E4BC9A
-B2F2 E8A7A3
-B2F3 E59B9E
-B2F4 E5A18A
-B2F5 E5A38A
-B2F6 E5BBBB
-B2F7 E5BFAB
-B2F8 E680AA
-B2F9 E68294
-B2FA E681A2
-B2FB E68790
-B2FC E68892
-B2FD E68B90
-B2FE E694B9
-B3A1 E9AD81
-B3A2 E699A6
-B3A3 E6A2B0
-B3A4 E6B5B7
-B3A5 E781B0
-B3A6 E7958C
-B3A7 E79A86
-B3A8 E7B5B5
-B3A9 E88AA5
-B3AA E89FB9
-B3AB E9968B
-B3AC E99A8E
-B3AD E8B29D
-B3AE E587B1
-B3AF E58ABE
-B3B0 E5A496
-B3B1 E592B3
-B3B2 E5AEB3
-B3B3 E5B496
-B3B4 E685A8
-B3B5 E6A682
-B3B6 E6B6AF
-B3B7 E7A28D
-B3B8 E8938B
-B3B9 E8A197
-B3BA E8A9B2
-B3BB E98EA7
-B3BC E9AAB8
-B3BD E6B5AC
-B3BE E9A6A8
-B3BF E89B99
-B3C0 E59EA3
-B3C1 E69FBF
-B3C2 E89B8E
-B3C3 E9888E
-B3C4 E58A83
-B3C5 E59A87
-B3C6 E59084
-B3C7 E5BB93
-B3C8 E68BA1
-B3C9 E692B9
-B3CA E6A0BC
-B3CB E6A0B8
-B3CC E6AEBB
-B3CD E78DB2
-B3CE E7A2BA
-B3CF E7A9AB
-B3D0 E8A69A
-B3D1 E8A792
-B3D2 E8B5AB
-B3D3 E8BC83
-B3D4 E983AD
-B3D5 E996A3
-B3D6 E99A94
-B3D7 E99DA9
-B3D8 E5ADA6
-B3D9 E5B2B3
-B3DA E6A5BD
-B3DB E9A18D
-B3DC E9A18E
-B3DD E68E9B
-B3DE E7ACA0
-B3DF E6A8AB
-B3E0 E6A9BF
-B3E1 E6A2B6
-B3E2 E9B08D
-B3E3 E6BD9F
-B3E4 E589B2
-B3E5 E5969D
-B3E6 E681B0
-B3E7 E68BAC
-B3E8 E6B4BB
-B3E9 E6B887
-B3EA E6BB91
-B3EB E8919B
-B3EC E8A490
-B3ED E8BD84
-B3EE E4B894
-B3EF E9B0B9
-B3F0 E58FB6
-B3F1 E6A49B
-B3F2 E6A8BA
-B3F3 E99E84
-B3F4 E6A0AA
-B3F5 E5859C
-B3F6 E7AB83
-B3F7 E892B2
-B3F8 E9879C
-B3F9 E98E8C
-B3FA E5999B
-B3FB E9B4A8
-B3FC E6A0A2
-B3FD E88C85
-B3FE E890B1
-B4A1 E7B2A5
-B4A2 E58888
-B4A3 E88B85
-B4A4 E793A6
-B4A5 E4B9BE
-B4A6 E4BE83
-B4A7 E586A0
-B4A8 E5AF92
-B4A9 E5888A
-B4AA E58B98
-B4AB E58BA7
-B4AC E5B7BB
-B4AD E5969A
-B4AE E5A0AA
-B4AF E5A7A6
-B4B0 E5AE8C
-B4B1 E5AE98
-B4B2 E5AF9B
-B4B3 E5B9B2
-B4B4 E5B9B9
-B4B5 E682A3
-B4B6 E6849F
-B4B7 E685A3
-B4B8 E686BE
-B4B9 E68F9B
-B4BA E695A2
-B4BB E69F91
-B4BC E6A193
-B4BD E6A3BA
-B4BE E6ACBE
-B4BF E6AD93
-B4C0 E6B197
-B4C1 E6BCA2
-B4C2 E6BE97
-B4C3 E6BD85
-B4C4 E792B0
-B4C5 E79498
-B4C6 E79BA3
-B4C7 E79C8B
-B4C8 E7ABBF
-B4C9 E7AEA1
-B4CA E7B0A1
-B4CB E7B7A9
-B4CC E7BCB6
-B4CD E7BFB0
-B4CE E8829D
-B4CF E889A6
-B4D0 E88E9E
-B4D1 E8A6B3
-B4D2 E8AB8C
-B4D3 E8B2AB
-B4D4 E98284
-B4D5 E99191
-B4D6 E99693
-B4D7 E99691
-B4D8 E996A2
-B4D9 E999A5
-B4DA E99F93
-B4DB E9A4A8
-B4DC E88898
-B4DD E4B8B8
-B4DE E590AB
-B4DF E5B2B8
-B4E0 E5B78C
-B4E1 E78EA9
-B4E2 E7998C
-B4E3 E79CBC
-B4E4 E5B2A9
-B4E5 E7BFAB
-B4E6 E8B48B
-B4E7 E99B81
-B4E8 E9A091
-B4E9 E9A194
-B4EA E9A198
-B4EB E4BC81
-B4EC E4BC8E
-B4ED E58DB1
-B4EE E5969C
-B4EF E599A8
-B4F0 E59FBA
-B4F1 E5A587
-B4F2 E5AC89
-B4F3 E5AF84
-B4F4 E5B290
-B4F5 E5B88C
-B4F6 E5B9BE
-B4F7 E5BF8C
-B4F8 E68FAE
-B4F9 E69CBA
-B4FA E69797
-B4FB E697A2
-B4FC E69C9F
-B4FD E6A38B
-B4FE E6A384
-B5A1 E6A99F
-B5A2 E5B8B0
-B5A3 E6AF85
-B5A4 E6B097
-B5A5 E6B1BD
-B5A6 E795BF
-B5A7 E7A588
-B5A8 E5ADA3
-B5A9 E7A880
-B5AA E7B480
-B5AB E5BEBD
-B5AC E8A68F
-B5AD E8A898
-B5AE E8B2B4
-B5AF E8B5B7
-B5B0 E8BB8C
-B5B1 E8BC9D
-B5B2 E9A3A2
-B5B3 E9A88E
-B5B4 E9ACBC
-B5B5 E4BA80
-B5B6 E581BD
-B5B7 E58480
-B5B8 E5A693
-B5B9 E5AE9C
-B5BA E688AF
-B5BB E68A80
-B5BC E693AC
-B5BD E6ACBA
-B5BE E78AA0
-B5BF E79691
-B5C0 E7A587
-B5C1 E7BEA9
-B5C2 E89FBB
-B5C3 E8AABC
-B5C4 E8ADB0
-B5C5 E68EAC
-B5C6 E88F8A
-B5C7 E99EA0
-B5C8 E59089
-B5C9 E59083
-B5CA E596AB
-B5CB E6A194
-B5CC E6A998
-B5CD E8A9B0
-B5CE E7A0A7
-B5CF E69DB5
-B5D0 E9BB8D
-B5D1 E58DB4
-B5D2 E5AEA2
-B5D3 E8849A
-B5D4 E89990
-B5D5 E98086
-B5D6 E4B898
-B5D7 E4B985
-B5D8 E4BB87
-B5D9 E4BC91
-B5DA E58F8A
-B5DB E590B8
-B5DC E5AEAE
-B5DD E5BC93
-B5DE E680A5
-B5DF E69591
-B5E0 E69CBD
-B5E1 E6B182
-B5E2 E6B1B2
-B5E3 E6B3A3
-B5E4 E781B8
-B5E5 E79083
-B5E6 E7A9B6
-B5E7 E7AAAE
-B5E8 E7AC88
-B5E9 E7B49A
-B5EA E7B3BE
-B5EB E7B5A6
-B5EC E697A7
-B5ED E7899B
-B5EE E58EBB
-B5EF E5B185
-B5F0 E5B7A8
-B5F1 E68B92
-B5F2 E68BA0
-B5F3 E68C99
-B5F4 E6B8A0
-B5F5 E8999A
-B5F6 E8A8B1
-B5F7 E8B79D
-B5F8 E98BB8
-B5F9 E6BC81
-B5FA E7A6A6
-B5FB E9AD9A
-B5FC E4BAA8
-B5FD E4BAAB
-B5FE E4BAAC
-B6A1 E4BE9B
-B6A2 E4BEA0
-B6A3 E58391
-B6A4 E58587
-B6A5 E7ABB6
-B6A6 E585B1
-B6A7 E587B6
-B6A8 E58D94
-B6A9 E58CA1
-B6AA E58DBF
-B6AB E58FAB
-B6AC E596AC
-B6AD E5A283
-B6AE E5B3A1
-B6AF E5BCB7
-B6B0 E5BD8A
-B6B1 E680AF
-B6B2 E68190
-B6B3 E681AD
-B6B4 E68C9F
-B6B5 E69599
-B6B6 E6A98B
-B6B7 E6B381
-B6B8 E78B82
-B6B9 E78BAD
-B6BA E79FAF
-B6BB E883B8
-B6BC E88485
-B6BD E88888
-B6BE E8958E
-B6BF E983B7
-B6C0 E98FA1
-B6C1 E99FBF
-B6C2 E9A597
-B6C3 E9A99A
-B6C4 E4BBB0
-B6C5 E5879D
-B6C6 E5B0AD
-B6C7 E69A81
-B6C8 E6A5AD
-B6C9 E5B180
-B6CA E69BB2
-B6CB E6A5B5
-B6CC E78E89
-B6CD E6A190
-B6CE E7B281
-B6CF E58385
-B6D0 E58BA4
-B6D1 E59D87
-B6D2 E5B7BE
-B6D3 E98CA6
-B6D4 E696A4
-B6D5 E6ACA3
-B6D6 E6ACBD
-B6D7 E790B4
-B6D8 E7A681
-B6D9 E7A6BD
-B6DA E7AD8B
-B6DB E7B78A
-B6DC E88AB9
-B6DD E88F8C
-B6DE E8A1BF
-B6DF E8A59F
-B6E0 E8ACB9
-B6E1 E8BF91
-B6E2 E98791
-B6E3 E5909F
-B6E4 E98A80
-B6E5 E4B99D
-B6E6 E580B6
-B6E7 E58FA5
-B6E8 E58CBA
-B6E9 E78B97
-B6EA E78E96
-B6EB E79FA9
-B6EC E88BA6
-B6ED E8BAAF
-B6EE E9A786
-B6EF E9A788
-B6F0 E9A792
-B6F1 E585B7
-B6F2 E6849A
-B6F3 E8999E
-B6F4 E596B0
-B6F5 E7A9BA
-B6F6 E581B6
-B6F7 E5AF93
-B6F8 E98187
-B6F9 E99A85
-B6FA E4B8B2
-B6FB E6AB9B
-B6FC E987A7
-B6FD E5B191
-B6FE E5B188
-B7A1 E68E98
-B7A2 E7AA9F
-B7A3 E6B293
-B7A4 E99DB4
-B7A5 E8BDA1
-B7A6 E7AAAA
-B7A7 E7868A
-B7A8 E99A88
-B7A9 E7B282
-B7AA E6A097
-B7AB E7B9B0
-B7AC E6A191
-B7AD E98DAC
-B7AE E58BB2
-B7AF E5909B
-B7B0 E896AB
-B7B1 E8A893
-B7B2 E7BEA4
-B7B3 E8BB8D
-B7B4 E983A1
-B7B5 E58DA6
-B7B6 E8A288
-B7B7 E7A581
-B7B8 E4BF82
-B7B9 E582BE
-B7BA E58891
-B7BB E58584
-B7BC E59593
-B7BD E59CAD
-B7BE E78FAA
-B7BF E59E8B
-B7C0 E5A591
-B7C1 E5BDA2
-B7C2 E5BE84
-B7C3 E681B5
-B7C4 E685B6
-B7C5 E685A7
-B7C6 E686A9
-B7C7 E68EB2
-B7C8 E690BA
-B7C9 E695AC
-B7CA E699AF
-B7CB E6A182
-B7CC E6B893
-B7CD E795A6
-B7CE E7A8BD
-B7CF E7B3BB
-B7D0 E7B58C
-B7D1 E7B699
-B7D2 E7B98B
-B7D3 E7BDAB
-B7D4 E88C8E
-B7D5 E88D8A
-B7D6 E89B8D
-B7D7 E8A888
-B7D8 E8A9A3
-B7D9 E8ADA6
-B7DA E8BBBD
-B7DB E9A09A
-B7DC E9B68F
-B7DD E88AB8
-B7DE E8BF8E
-B7DF E9AFA8
-B7E0 E58A87
-B7E1 E6889F
-B7E2 E69283
-B7E3 E6BF80
-B7E4 E99A99
-B7E5 E6A181
-B7E6 E58291
-B7E7 E6ACA0
-B7E8 E6B1BA
-B7E9 E6BD94
-B7EA E7A9B4
-B7EB E7B590
-B7EC E8A180
-B7ED E8A8A3
-B7EE E69C88
-B7EF E4BBB6
-B7F0 E580B9
-B7F1 E580A6
-B7F2 E581A5
-B7F3 E585BC
-B7F4 E588B8
-B7F5 E589A3
-B7F6 E596A7
-B7F7 E59C8F
-B7F8 E5A085
-B7F9 E5AB8C
-B7FA E5BBBA
-B7FB E686B2
-B7FC E687B8
-B7FD E68BB3
-B7FE E68DB2
-B8A1 E6A49C
-B8A2 E6A8A9
-B8A3 E789BD
-B8A4 E78AAC
-B8A5 E78CAE
-B8A6 E7A094
-B8A7 E7A1AF
-B8A8 E7B5B9
-B8A9 E79C8C
-B8AA E882A9
-B8AB E8A68B
-B8AC E8AC99
-B8AD E8B3A2
-B8AE E8BB92
-B8AF E981A3
-B8B0 E98DB5
-B8B1 E999BA
-B8B2 E9A195
-B8B3 E9A893
-B8B4 E9B9B8
-B8B5 E58583
-B8B6 E58E9F
-B8B7 E58EB3
-B8B8 E5B9BB
-B8B9 E5BCA6
-B8BA E6B89B
-B8BB E6BA90
-B8BC E78E84
-B8BD E78FBE
-B8BE E7B583
-B8BF E888B7
-B8C0 E8A880
-B8C1 E8ABBA
-B8C2 E99990
-B8C3 E4B98E
-B8C4 E5808B
-B8C5 E58FA4
-B8C6 E591BC
-B8C7 E59BBA
-B8C8 E5A791
-B8C9 E5ADA4
-B8CA E5B7B1
-B8CB E5BAAB
-B8CC E5BCA7
-B8CD E688B8
-B8CE E69585
-B8CF E69EAF
-B8D0 E6B996
-B8D1 E78B90
-B8D2 E7B38A
-B8D3 E8A2B4
-B8D4 E882A1
-B8D5 E883A1
-B8D6 E88FB0
-B8D7 E8998E
-B8D8 E8AA87
-B8D9 E8B7A8
-B8DA E988B7
-B8DB E99B87
-B8DC E9A1A7
-B8DD E9BC93
-B8DE E4BA94
-B8DF E4BA92
-B8E0 E4BC8D
-B8E1 E58D88
-B8E2 E59189
-B8E3 E590BE
-B8E4 E5A8AF
-B8E5 E5BE8C
-B8E6 E5BEA1
-B8E7 E6829F
-B8E8 E6A2A7
-B8E9 E6AA8E
-B8EA E7919A
-B8EB E7A281
-B8EC E8AA9E
-B8ED E8AAA4
-B8EE E8ADB7
-B8EF E98690
-B8F0 E4B99E
-B8F1 E9AF89
-B8F2 E4BAA4
-B8F3 E4BDBC
-B8F4 E4BEAF
-B8F5 E58099
-B8F6 E58096
-B8F7 E58589
-B8F8 E585AC
-B8F9 E58A9F
-B8FA E58AB9
-B8FB E58BBE
-B8FC E58E9A
-B8FD E58FA3
-B8FE E59091
-B9A1 E5908E
-B9A2 E59689
-B9A3 E59D91
-B9A4 E59EA2
-B9A5 E5A5BD
-B9A6 E5AD94
-B9A7 E5AD9D
-B9A8 E5AE8F
-B9A9 E5B7A5
-B9AA E5B7A7
-B9AB E5B7B7
-B9AC E5B9B8
-B9AD E5BA83
-B9AE E5BA9A
-B9AF E5BAB7
-B9B0 E5BC98
-B9B1 E68192
-B9B2 E6858C
-B9B3 E68A97
-B9B4 E68B98
-B9B5 E68EA7
-B9B6 E694BB
-B9B7 E69882
-B9B8 E69983
-B9B9 E69BB4
-B9BA E69DAD
-B9BB E6A0A1
-B9BC E6A297
-B9BD E6A78B
-B9BE E6B19F
-B9BF E6B4AA
-B9C0 E6B5A9
-B9C1 E6B8AF
-B9C2 E6BA9D
-B9C3 E794B2
-B9C4 E79A87
-B9C5 E7A1AC
-B9C6 E7A8BF
-B9C7 E7B3A0
-B9C8 E7B485
-B9C9 E7B498
-B9CA E7B59E
-B9CB E7B6B1
-B9CC E88095
-B9CD E88083
-B9CE E882AF
-B9CF E882B1
-B9D0 E88594
-B9D1 E8868F
-B9D2 E888AA
-B9D3 E88D92
-B9D4 E8A18C
-B9D5 E8A1A1
-B9D6 E8AC9B
-B9D7 E8B2A2
-B9D8 E8B3BC
-B9D9 E9838A
-B9DA E985B5
-B9DB E989B1
-B9DC E7A0BF
-B9DD E98BBC
-B9DE E996A4
-B9DF E9998D
-B9E0 E9A085
-B9E1 E9A699
-B9E2 E9AB98
-B9E3 E9B4BB
-B9E4 E5899B
-B9E5 E58AAB
-B9E6 E58FB7
-B9E7 E59088
-B9E8 E5A395
-B9E9 E68BB7
-B9EA E6BFA0
-B9EB E8B1AA
-B9EC E8BD9F
-B9ED E9BAB9
-B9EE E5858B
-B9EF E588BB
-B9F0 E5918A
-B9F1 E59BBD
-B9F2 E7A980
-B9F3 E985B7
-B9F4 E9B5A0
-B9F5 E9BB92
-B9F6 E78D84
-B9F7 E6BC89
-B9F8 E885B0
-B9F9 E79491
-B9FA E5BFBD
-B9FB E6839A
-B9FC E9AAA8
-B9FD E78B9B
-B9FE E8BEBC
-BAA1 E6ADA4
-BAA2 E9A083
-BAA3 E4BB8A
-BAA4 E59BB0
-BAA5 E59DA4
-BAA6 E5A2BE
-BAA7 E5A99A
-BAA8 E681A8
-BAA9 E68787
-BAAA E6988F
-BAAB E69886
-BAAC E6A0B9
-BAAD E6A2B1
-BAAE E6B7B7
-BAAF E79795
-BAB0 E7B4BA
-BAB1 E889AE
-BAB2 E9AD82
-BAB3 E4BA9B
-BAB4 E4BD90
-BAB5 E58F89
-BAB6 E59486
-BAB7 E5B5AF
-BAB8 E5B7A6
-BAB9 E5B7AE
-BABA E69FBB
-BABB E6B299
-BABC E791B3
-BABD E7A082
-BABE E8A990
-BABF E98E96
-BAC0 E8A39F
-BAC1 E59D90
-BAC2 E5BAA7
-BAC3 E68CAB
-BAC4 E582B5
-BAC5 E582AC
-BAC6 E5868D
-BAC7 E69C80
-BAC8 E59389
-BAC9 E5A19E
-BACA E5A6BB
-BACB E5AEB0
-BACC E5BDA9
-BACD E6898D
-BACE E68EA1
-BACF E6A0BD
-BAD0 E6ADB3
-BAD1 E6B888
-BAD2 E781BD
-BAD3 E98787
-BAD4 E78A80
-BAD5 E7A095
-BAD6 E7A0A6
-BAD7 E7A5AD
-BAD8 E6968E
-BAD9 E7B4B0
-BADA E88F9C
-BADB E8A381
-BADC E8BC89
-BADD E99A9B
-BADE E589A4
-BADF E59CA8
-BAE0 E69D90
-BAE1 E7BDAA
-BAE2 E8B2A1
-BAE3 E586B4
-BAE4 E59D82
-BAE5 E998AA
-BAE6 E5A0BA
-BAE7 E6A68A
-BAE8 E882B4
-BAE9 E592B2
-BAEA E5B48E
-BAEB E59FBC
-BAEC E7A295
-BAED E9B7BA
-BAEE E4BD9C
-BAEF E5898A
-BAF0 E5928B
-BAF1 E690BE
-BAF2 E698A8
-BAF3 E69C94
-BAF4 E69FB5
-BAF5 E7AA84
-BAF6 E7AD96
-BAF7 E7B4A2
-BAF8 E98CAF
-BAF9 E6A19C
-BAFA E9AEAD
-BAFB E7ACB9
-BAFC E58C99
-BAFD E5868A
-BAFE E588B7
-BBA1 E5AF9F
-BBA2 E68BB6
-BBA3 E692AE
-BBA4 E693A6
-BBA5 E69CAD
-BBA6 E6AEBA
-BBA7 E896A9
-BBA8 E99B91
-BBA9 E79A90
-BBAA E9AF96
-BBAB E68D8C
-BBAC E98C86
-BBAD E9AEAB
-BBAE E79ABF
-BBAF E69992
-BBB0 E4B889
-BBB1 E58298
-BBB2 E58F82
-BBB3 E5B1B1
-BBB4 E683A8
-BBB5 E69292
-BBB6 E695A3
-BBB7 E6A19F
-BBB8 E787A6
-BBB9 E78F8A
-BBBA E794A3
-BBBB E7AE97
-BBBC E7BA82
-BBBD E89A95
-BBBE E8AE83
-BBBF E8B39B
-BBC0 E985B8
-BBC1 E9A490
-BBC2 E696AC
-BBC3 E69AAB
-BBC4 E6AE8B
-BBC5 E4BB95
-BBC6 E4BB94
-BBC7 E4BCBA
-BBC8 E4BDBF
-BBC9 E588BA
-BBCA E58FB8
-BBCB E58FB2
-BBCC E597A3
-BBCD E59B9B
-BBCE E5A3AB
-BBCF E5A78B
-BBD0 E5A789
-BBD1 E5A7BF
-BBD2 E5AD90
-BBD3 E5B18D
-BBD4 E5B882
-BBD5 E5B8AB
-BBD6 E5BF97
-BBD7 E6809D
-BBD8 E68C87
-BBD9 E694AF
-BBDA E5AD9C
-BBDB E696AF
-BBDC E696BD
-BBDD E697A8
-BBDE E69E9D
-BBDF E6ADA2
-BBE0 E6ADBB
-BBE1 E6B08F
-BBE2 E78D85
-BBE3 E7A589
-BBE4 E7A781
-BBE5 E7B3B8
-BBE6 E7B499
-BBE7 E7B4AB
-BBE8 E882A2
-BBE9 E88482
-BBEA E887B3
-BBEB E8A696
-BBEC E8A99E
-BBED E8A9A9
-BBEE E8A9A6
-BBEF E8AA8C
-BBF0 E8ABAE
-BBF1 E8B387
-BBF2 E8B39C
-BBF3 E99B8C
-BBF4 E9A3BC
-BBF5 E6ADAF
-BBF6 E4BA8B
-BBF7 E4BCBC
-BBF8 E4BE8D
-BBF9 E58590
-BBFA E5AD97
-BBFB E5AFBA
-BBFC E68588
-BBFD E68C81
-BBFE E69982
-BCA1 E6ACA1
-BCA2 E6BB8B
-BCA3 E6B2BB
-BCA4 E788BE
-BCA5 E792BD
-BCA6 E79794
-BCA7 E7A381
-BCA8 E7A4BA
-BCA9 E8808C
-BCAA E880B3
-BCAB E887AA
-BCAC E89294
-BCAD E8BE9E
-BCAE E6B190
-BCAF E9B9BF
-BCB0 E5BC8F
-BCB1 E8AD98
-BCB2 E9B4AB
-BCB3 E7ABBA
-BCB4 E8BBB8
-BCB5 E5AE8D
-BCB6 E99BAB
-BCB7 E4B883
-BCB8 E58FB1
-BCB9 E59FB7
-BCBA E5A4B1
-BCBB E5AB89
-BCBC E5AEA4
-BCBD E68289
-BCBE E6B9BF
-BCBF E6BC86
-BCC0 E796BE
-BCC1 E8B3AA
-BCC2 E5AE9F
-BCC3 E89480
-BCC4 E7AFA0
-BCC5 E581B2
-BCC6 E69FB4
-BCC7 E88A9D
-BCC8 E5B1A1
-BCC9 E8958A
-BCCA E7B89E
-BCCB E8888E
-BCCC E58699
-BCCD E5B084
-BCCE E68DA8
-BCCF E8B5A6
-BCD0 E6969C
-BCD1 E785AE
-BCD2 E7A4BE
-BCD3 E7B497
-BCD4 E88085
-BCD5 E8AC9D
-BCD6 E8BB8A
-BCD7 E981AE
-BCD8 E89B87
-BCD9 E982AA
-BCDA E5809F
-BCDB E58BBA
-BCDC E5B0BA
-BCDD E69D93
-BCDE E781BC
-BCDF E788B5
-BCE0 E9858C
-BCE1 E98788
-BCE2 E98CAB
-BCE3 E88BA5
-BCE4 E5AF82
-BCE5 E5BCB1
-BCE6 E683B9
-BCE7 E4B8BB
-BCE8 E58F96
-BCE9 E5AE88
-BCEA E6898B
-BCEB E69CB1
-BCEC E6AE8A
-BCED E78BA9
-BCEE E78FA0
-BCEF E7A8AE
-BCF0 E885AB
-BCF1 E8B6A3
-BCF2 E98592
-BCF3 E9A696
-BCF4 E58492
-BCF5 E58F97
-BCF6 E591AA
-BCF7 E5AFBF
-BCF8 E68E88
-BCF9 E6A8B9
-BCFA E7B6AC
-BCFB E99C80
-BCFC E59B9A
-BCFD E58F8E
-BCFE E591A8
-BDA1 E5AE97
-BDA2 E5B0B1
-BDA3 E5B79E
-BDA4 E4BFAE
-BDA5 E68481
-BDA6 E68BBE
-BDA7 E6B4B2
-BDA8 E7A780
-BDA9 E7A78B
-BDAA E7B582
-BDAB E7B98D
-BDAC E7BF92
-BDAD E887AD
-BDAE E8889F
-BDAF E89290
-BDB0 E8A186
-BDB1 E8A5B2
-BDB2 E8AE90
-BDB3 E8B9B4
-BDB4 E8BCAF
-BDB5 E980B1
-BDB6 E9858B
-BDB7 E985AC
-BDB8 E99B86
-BDB9 E9869C
-BDBA E4BB80
-BDBB E4BD8F
-BDBC E58585
-BDBD E58D81
-BDBE E5BE93
-BDBF E6888E
-BDC0 E69F94
-BDC1 E6B181
-BDC2 E6B88B
-BDC3 E78DA3
-BDC4 E7B8A6
-BDC5 E9878D
-BDC6 E98A83
-BDC7 E58F94
-BDC8 E5A499
-BDC9 E5AEBF
-BDCA E6B791
-BDCB E7A59D
-BDCC E7B8AE
-BDCD E7B29B
-BDCE E5A1BE
-BDCF E7869F
-BDD0 E587BA
-BDD1 E8A193
-BDD2 E8BFB0
-BDD3 E4BF8A
-BDD4 E5B3BB
-BDD5 E698A5
-BDD6 E79EAC
-BDD7 E7ABA3
-BDD8 E8889C
-BDD9 E9A7BF
-BDDA E58786
-BDDB E5BEAA
-BDDC E697AC
-BDDD E6A5AF
-BDDE E6AE89
-BDDF E6B7B3
-BDE0 E6BA96
-BDE1 E6BDA4
-BDE2 E79BBE
-BDE3 E7B494
-BDE4 E5B7A1
-BDE5 E981B5
-BDE6 E98687
-BDE7 E9A086
-BDE8 E587A6
-BDE9 E5889D
-BDEA E68980
-BDEB E69A91
-BDEC E69B99
-BDED E6B89A
-BDEE E5BAB6
-BDEF E7B792
-BDF0 E7BDB2
-BDF1 E69BB8
-BDF2 E896AF
-BDF3 E897B7
-BDF4 E8ABB8
-BDF5 E58AA9
-BDF6 E58F99
-BDF7 E5A5B3
-BDF8 E5BA8F
-BDF9 E5BE90
-BDFA E68195
-BDFB E98BA4
-BDFC E999A4
-BDFD E582B7
-BDFE E5849F
-BEA1 E58B9D
-BEA2 E58CA0
-BEA3 E58D87
-BEA4 E58FAC
-BEA5 E593A8
-BEA6 E59586
-BEA7 E594B1
-BEA8 E59897
-BEA9 E5A5A8
-BEAA E5A6BE
-BEAB E5A8BC
-BEAC E5AEB5
-BEAD E5B086
-BEAE E5B08F
-BEAF E5B091
-BEB0 E5B09A
-BEB1 E5BA84
-BEB2 E5BA8A
-BEB3 E5BBA0
-BEB4 E5BDB0
-BEB5 E689BF
-BEB6 E68A84
-BEB7 E68B9B
-BEB8 E68E8C
-BEB9 E68DB7
-BEBA E69887
-BEBB E6988C
-BEBC E698AD
-BEBD E699B6
-BEBE E69DBE
-BEBF E6A2A2
-BEC0 E6A89F
-BEC1 E6A8B5
-BEC2 E6B2BC
-BEC3 E6B688
-BEC4 E6B889
-BEC5 E6B998
-BEC6 E784BC
-BEC7 E784A6
-BEC8 E785A7
-BEC9 E79787
-BECA E79C81
-BECB E7A19D
-BECC E7A481
-BECD E7A5A5
-BECE E7A7B0
-BECF E7ABA0
-BED0 E7AC91
-BED1 E7B2A7
-BED2 E7B4B9
-BED3 E88296
-BED4 E88F96
-BED5 E8928B
-BED6 E89589
-BED7 E8A19D
-BED8 E8A3B3
-BED9 E8A89F
-BEDA E8A8BC
-BEDB E8A994
-BEDC E8A9B3
-BEDD E8B1A1
-BEDE E8B39E
-BEDF E986A4
-BEE0 E989A6
-BEE1 E98DBE
-BEE2 E99098
-BEE3 E99A9C
-BEE4 E99E98
-BEE5 E4B88A
-BEE6 E4B888
-BEE7 E4B89E
-BEE8 E4B997
-BEE9 E58697
-BEEA E589B0
-BEEB E59F8E
-BEEC E5A0B4
-BEED E5A38C
-BEEE E5ACA2
-BEEF E5B8B8
-BEF0 E68385
-BEF1 E693BE
-BEF2 E69DA1
-BEF3 E69D96
-BEF4 E6B584
-BEF5 E78AB6
-BEF6 E795B3
-BEF7 E7A9A3
-BEF8 E892B8
-BEF9 E8ADB2
-BEFA E986B8
-BEFB E98CA0
-BEFC E598B1
-BEFD E59FB4
-BEFE E9A3BE
-BFA1 E68BAD
-BFA2 E6A48D
-BFA3 E6AE96
-BFA4 E787AD
-BFA5 E7B994
-BFA6 E881B7
-BFA7 E889B2
-BFA8 E8A7A6
-BFA9 E9A39F
-BFAA E89D95
-BFAB E8BEB1
-BFAC E5B0BB
-BFAD E4BCB8
-BFAE E4BFA1
-BFAF E4BEB5
-BFB0 E59487
-BFB1 E5A8A0
-BFB2 E5AF9D
-BFB3 E5AFA9
-BFB4 E5BF83
-BFB5 E6858E
-BFB6 E68CAF
-BFB7 E696B0
-BFB8 E6998B
-BFB9 E6A3AE
-BFBA E6A69B
-BFBB E6B5B8
-BFBC E6B7B1
-BFBD E794B3
-BFBE E796B9
-BFBF E79C9F
-BFC0 E7A59E
-BFC1 E7A7A6
-BFC2 E7B4B3
-BFC3 E887A3
-BFC4 E88AAF
-BFC5 E896AA
-BFC6 E8A6AA
-BFC7 E8A8BA
-BFC8 E8BAAB
-BFC9 E8BE9B
-BFCA E980B2
-BFCB E9879D
-BFCC E99C87
-BFCD E4BABA
-BFCE E4BB81
-BFCF E58883
-BFD0 E5A1B5
-BFD1 E5A3AC
-BFD2 E5B08B
-BFD3 E7949A
-BFD4 E5B0BD
-BFD5 E8858E
-BFD6 E8A88A
-BFD7 E8BF85
-BFD8 E999A3
-BFD9 E99DAD
-BFDA E7ACA5
-BFDB E8AB8F
-BFDC E9A088
-BFDD E985A2
-BFDE E59BB3
-BFDF E58EA8
-BFE0 E98097
-BFE1 E590B9
-BFE2 E59E82
-BFE3 E5B8A5
-BFE4 E68EA8
-BFE5 E6B0B4
-BFE6 E7828A
-BFE7 E79DA1
-BFE8 E7B28B
-BFE9 E7BFA0
-BFEA E8A1B0
-BFEB E98182
-BFEC E98594
-BFED E98C90
-BFEE E98C98
-BFEF E99A8F
-BFF0 E7919E
-BFF1 E9AB84
-BFF2 E5B487
-BFF3 E5B5A9
-BFF4 E695B0
-BFF5 E69EA2
-BFF6 E8B6A8
-BFF7 E99B9B
-BFF8 E68DAE
-BFF9 E69D89
-BFFA E6A499
-BFFB E88F85
-BFFC E9A097
-BFFD E99B80
-BFFE E8A3BE
-C0A1 E6BE84
-C0A2 E691BA
-C0A3 E5AFB8
-C0A4 E4B896
-C0A5 E780AC
-C0A6 E7959D
-C0A7 E698AF
-C0A8 E58784
-C0A9 E588B6
-C0AA E58BA2
-C0AB E5A793
-C0AC E5BE81
-C0AD E680A7
-C0AE E68890
-C0AF E694BF
-C0B0 E695B4
-C0B1 E6989F
-C0B2 E699B4
-C0B3 E6A3B2
-C0B4 E6A096
-C0B5 E6ADA3
-C0B6 E6B885
-C0B7 E789B2
-C0B8 E7949F
-C0B9 E79B9B
-C0BA E7B2BE
-C0BB E88196
-C0BC E5A3B0
-C0BD E8A3BD
-C0BE E8A5BF
-C0BF E8AAA0
-C0C0 E8AA93
-C0C1 E8AB8B
-C0C2 E9809D
-C0C3 E98692
-C0C4 E99D92
-C0C5 E99D99
-C0C6 E69689
-C0C7 E7A88E
-C0C8 E88486
-C0C9 E99ABB
-C0CA E5B8AD
-C0CB E6839C
-C0CC E6889A
-C0CD E696A5
-C0CE E69894
-C0CF E69E90
-C0D0 E79FB3
-C0D1 E7A98D
-C0D2 E7B18D
-C0D3 E7B8BE
-C0D4 E8848A
-C0D5 E8B2AC
-C0D6 E8B5A4
-C0D7 E8B7A1
-C0D8 E8B99F
-C0D9 E7A2A9
-C0DA E58887
-C0DB E68B99
-C0DC E68EA5
-C0DD E69182
-C0DE E68A98
-C0DF E8A8AD
-C0E0 E7AA83
-C0E1 E7AF80
-C0E2 E8AAAC
-C0E3 E99BAA
-C0E4 E7B5B6
-C0E5 E8888C
-C0E6 E89D89
-C0E7 E4BB99
-C0E8 E58588
-C0E9 E58D83
-C0EA E58DA0
-C0EB E5AEA3
-C0EC E5B082
-C0ED E5B096
-C0EE E5B79D
-C0EF E688A6
-C0F0 E68987
-C0F1 E692B0
-C0F2 E6A093
-C0F3 E6A0B4
-C0F4 E6B389
-C0F5 E6B585
-C0F6 E6B497
-C0F7 E69F93
-C0F8 E6BD9C
-C0F9 E7858E
-C0FA E785BD
-C0FB E6978B
-C0FC E7A9BF
-C0FD E7AEAD
-C0FE E7B79A
-C1A1 E7B98A
-C1A2 E7BEA8
-C1A3 E885BA
-C1A4 E8889B
-C1A5 E888B9
-C1A6 E896A6
-C1A7 E8A9AE
-C1A8 E8B38E
-C1A9 E8B7B5
-C1AA E981B8
-C1AB E981B7
-C1AC E98AAD
-C1AD E98A91
-C1AE E99683
-C1AF E9AEAE
-C1B0 E5898D
-C1B1 E59684
-C1B2 E6BCB8
-C1B3 E784B6
-C1B4 E585A8
-C1B5 E7A685
-C1B6 E7B995
-C1B7 E886B3
-C1B8 E7B38E
-C1B9 E5998C
-C1BA E5A191
-C1BB E5B2A8
-C1BC E68EAA
-C1BD E69BBE
-C1BE E69BBD
-C1BF E6A59A
-C1C0 E78B99
-C1C1 E7968F
-C1C2 E7968E
-C1C3 E7A48E
-C1C4 E7A596
-C1C5 E7A79F
-C1C6 E7B297
-C1C7 E7B4A0
-C1C8 E7B584
-C1C9 E89887
-C1CA E8A8B4
-C1CB E998BB
-C1CC E981A1
-C1CD E9BCA0
-C1CE E583A7
-C1CF E589B5
-C1D0 E58F8C
-C1D1 E58FA2
-C1D2 E58089
-C1D3 E596AA
-C1D4 E5A3AE
-C1D5 E5A58F
-C1D6 E788BD
-C1D7 E5AE8B
-C1D8 E5B1A4
-C1D9 E58C9D
-C1DA E683A3
-C1DB E683B3
-C1DC E68D9C
-C1DD E68E83
-C1DE E68CBF
-C1DF E68EBB
-C1E0 E6938D
-C1E1 E697A9
-C1E2 E69BB9
-C1E3 E5B7A3
-C1E4 E6A78D
-C1E5 E6A7BD
-C1E6 E6BC95
-C1E7 E787A5
-C1E8 E4BA89
-C1E9 E797A9
-C1EA E79BB8
-C1EB E7AA93
-C1EC E7B39F
-C1ED E7B78F
-C1EE E7B69C
-C1EF E881A1
-C1F0 E88D89
-C1F1 E88D98
-C1F2 E891AC
-C1F3 E892BC
-C1F4 E897BB
-C1F5 E8A385
-C1F6 E8B5B0
-C1F7 E98081
-C1F8 E981AD
-C1F9 E98E97
-C1FA E99C9C
-C1FB E9A892
-C1FC E5838F
-C1FD E5A297
-C1FE E6868E
-C2A1 E88793
-C2A2 E894B5
-C2A3 E8B488
-C2A4 E980A0
-C2A5 E4BF83
-C2A6 E581B4
-C2A7 E58987
-C2A8 E58DB3
-C2A9 E681AF
-C2AA E68D89
-C2AB E69D9F
-C2AC E6B8AC
-C2AD E8B6B3
-C2AE E9809F
-C2AF E4BF97
-C2B0 E5B19E
-C2B1 E8B38A
-C2B2 E6978F
-C2B3 E7B69A
-C2B4 E58D92
-C2B5 E8A296
-C2B6 E585B6
-C2B7 E68F83
-C2B8 E5AD98
-C2B9 E5ADAB
-C2BA E5B08A
-C2BB E6908D
-C2BC E69D91
-C2BD E9819C
-C2BE E4BB96
-C2BF E5A49A
-C2C0 E5A4AA
-C2C1 E6B1B0
-C2C2 E8A991
-C2C3 E594BE
-C2C4 E5A095
-C2C5 E5A6A5
-C2C6 E683B0
-C2C7 E68993
-C2C8 E69F81
-C2C9 E888B5
-C2CA E6A595
-C2CB E99980
-C2CC E9A784
-C2CD E9A8A8
-C2CE E4BD93
-C2CF E5A086
-C2D0 E5AFBE
-C2D1 E88090
-C2D2 E5B2B1
-C2D3 E5B8AF
-C2D4 E5BE85
-C2D5 E680A0
-C2D6 E6858B
-C2D7 E688B4
-C2D8 E69BBF
-C2D9 E6B3B0
-C2DA E6BB9E
-C2DB E8838E
-C2DC E885BF
-C2DD E88B94
-C2DE E8A28B
-C2DF E8B2B8
-C2E0 E98080
-C2E1 E980AE
-C2E2 E99A8A
-C2E3 E9BB9B
-C2E4 E9AF9B
-C2E5 E4BBA3
-C2E6 E58FB0
-C2E7 E5A4A7
-C2E8 E7ACAC
-C2E9 E9868D
-C2EA E9A18C
-C2EB E9B7B9
-C2EC E6BB9D
-C2ED E780A7
-C2EE E58D93
-C2EF E59584
-C2F0 E5AE85
-C2F1 E68998
-C2F2 E68A9E
-C2F3 E68B93
-C2F4 E6B2A2
-C2F5 E6BFAF
-C2F6 E790A2
-C2F7 E8A897
-C2F8 E990B8
-C2F9 E6BF81
-C2FA E8ABBE
-C2FB E88CB8
-C2FC E587A7
-C2FD E89BB8
-C2FE E58FAA
-C3A1 E58FA9
-C3A2 E4BD86
-C3A3 E98194
-C3A4 E8BEB0
-C3A5 E5A5AA
-C3A6 E884B1
-C3A7 E5B7BD
-C3A8 E7ABAA
-C3A9 E8BEBF
-C3AA E6A39A
-C3AB E8B0B7
-C3AC E78BB8
-C3AD E9B188
-C3AE E6A8BD
-C3AF E8AAB0
-C3B0 E4B8B9
-C3B1 E58D98
-C3B2 E59886
-C3B3 E59DA6
-C3B4 E68B85
-C3B5 E68EA2
-C3B6 E697A6
-C3B7 E6AD8E
-C3B8 E6B7A1
-C3B9 E6B99B
-C3BA E782AD
-C3BB E79FAD
-C3BC E7ABAF
-C3BD E7AEAA
-C3BE E7B6BB
-C3BF E880BD
-C3C0 E88386
-C3C1 E89B8B
-C3C2 E8AA95
-C3C3 E98D9B
-C3C4 E59BA3
-C3C5 E5A387
-C3C6 E5BCBE
-C3C7 E696AD
-C3C8 E69A96
-C3C9 E6AA80
-C3CA E6AEB5
-C3CB E794B7
-C3CC E8AB87
-C3CD E580A4
-C3CE E79FA5
-C3CF E59CB0
-C3D0 E5BC9B
-C3D1 E681A5
-C3D2 E699BA
-C3D3 E6B1A0
-C3D4 E797B4
-C3D5 E7A89A
-C3D6 E7BDAE
-C3D7 E887B4
-C3D8 E89C98
-C3D9 E98185
-C3DA E9A6B3
-C3DB E7AF89
-C3DC E7959C
-C3DD E7ABB9
-C3DE E7AD91
-C3DF E89384
-C3E0 E98090
-C3E1 E7A7A9
-C3E2 E7AA92
-C3E3 E88CB6
-C3E4 E5ABA1
-C3E5 E79D80
-C3E6 E4B8AD
-C3E7 E4BBB2
-C3E8 E5AE99
-C3E9 E5BFA0
-C3EA E68ABD
-C3EB E698BC
-C3EC E69FB1
-C3ED E6B3A8
-C3EE E899AB
-C3EF E8A1B7
-C3F0 E8A8BB
-C3F1 E9858E
-C3F2 E98BB3
-C3F3 E9A790
-C3F4 E6A897
-C3F5 E780A6
-C3F6 E78CAA
-C3F7 E88BA7
-C3F8 E89197
-C3F9 E8B2AF
-C3FA E4B881
-C3FB E58586
-C3FC E5878B
-C3FD E5968B
-C3FE E5AFB5
-C4A1 E5B896
-C4A2 E5B8B3
-C4A3 E5BA81
-C4A4 E5BC94
-C4A5 E5BCB5
-C4A6 E5BDAB
-C4A7 E5BEB4
-C4A8 E687B2
-C4A9 E68C91
-C4AA E69AA2
-C4AB E69C9D
-C4AC E6BDAE
-C4AD E78992
-C4AE E794BA
-C4AF E79CBA
-C4B0 E881B4
-C4B1 E884B9
-C4B2 E885B8
-C4B3 E89DB6
-C4B4 E8AABF
-C4B5 E8AB9C
-C4B6 E8B685
-C4B7 E8B7B3
-C4B8 E98A9A
-C4B9 E995B7
-C4BA E9A082
-C4BB E9B3A5
-C4BC E58B85
-C4BD E68D97
-C4BE E79BB4
-C4BF E69C95
-C4C0 E6B288
-C4C1 E78F8D
-C4C2 E8B383
-C4C3 E98EAE
-C4C4 E999B3
-C4C5 E6B4A5
-C4C6 E5A29C
-C4C7 E6A48E
-C4C8 E6A78C
-C4C9 E8BFBD
-C4CA E98E9A
-C4CB E7979B
-C4CC E9809A
-C4CD E5A19A
-C4CE E6A082
-C4CF E68EB4
-C4D0 E6A7BB
-C4D1 E4BD83
-C4D2 E6BCAC
-C4D3 E69F98
-C4D4 E8BEBB
-C4D5 E894A6
-C4D6 E7B6B4
-C4D7 E98D94
-C4D8 E6A4BF
-C4D9 E6BDB0
-C4DA E59DAA
-C4DB E5A3B7
-C4DC E5ACAC
-C4DD E7B4AC
-C4DE E788AA
-C4DF E5908A
-C4E0 E987A3
-C4E1 E9B6B4
-C4E2 E4BAAD
-C4E3 E4BD8E
-C4E4 E5819C
-C4E5 E581B5
-C4E6 E58983
-C4E7 E8B29E
-C4E8 E59188
-C4E9 E5A0A4
-C4EA E5AE9A
-C4EB E5B89D
-C4EC E5BA95
-C4ED E5BAAD
-C4EE E5BBB7
-C4EF E5BC9F
-C4F0 E6828C
-C4F1 E68AB5
-C4F2 E68CBA
-C4F3 E68F90
-C4F4 E6A2AF
-C4F5 E6B180
-C4F6 E7A287
-C4F7 E7A68E
-C4F8 E7A88B
-C4F9 E7B7A0
-C4FA E88987
-C4FB E8A882
-C4FC E8ABA6
-C4FD E8B984
-C4FE E98093
-C5A1 E982B8
-C5A2 E984AD
-C5A3 E98798
-C5A4 E9BC8E
-C5A5 E6B3A5
-C5A6 E69198
-C5A7 E693A2
-C5A8 E695B5
-C5A9 E6BBB4
-C5AA E79A84
-C5AB E7AC9B
-C5AC E981A9
-C5AD E98F91
-C5AE E6BABA
-C5AF E593B2
-C5B0 E5BEB9
-C5B1 E692A4
-C5B2 E8BD8D
-C5B3 E8BFAD
-C5B4 E98984
-C5B5 E585B8
-C5B6 E5A1AB
-C5B7 E5A4A9
-C5B8 E5B195
-C5B9 E5BA97
-C5BA E6B7BB
-C5BB E7BA8F
-C5BC E7949C
-C5BD E8B2BC
-C5BE E8BBA2
-C5BF E9A19B
-C5C0 E782B9
-C5C1 E4BC9D
-C5C2 E6AEBF
-C5C3 E6BEB1
-C5C4 E794B0
-C5C5 E99BBB
-C5C6 E5858E
-C5C7 E59090
-C5C8 E5A0B5
-C5C9 E5A197
-C5CA E5A6AC
-C5CB E5B1A0
-C5CC E5BE92
-C5CD E69697
-C5CE E69D9C
-C5CF E6B8A1
-C5D0 E799BB
-C5D1 E88F9F
-C5D2 E8B3AD
-C5D3 E98094
-C5D4 E983BD
-C5D5 E98D8D
-C5D6 E7A0A5
-C5D7 E7A0BA
-C5D8 E58AAA
-C5D9 E5BAA6
-C5DA E59C9F
-C5DB E5A5B4
-C5DC E68092
-C5DD E58092
-C5DE E5859A
-C5DF E586AC
-C5E0 E5878D
-C5E1 E58880
-C5E2 E59490
-C5E3 E5A194
-C5E4 E5A198
-C5E5 E5A597
-C5E6 E5AE95
-C5E7 E5B3B6
-C5E8 E5B68B
-C5E9 E682BC
-C5EA E68A95
-C5EB E690AD
-C5EC E69DB1
-C5ED E6A183
-C5EE E6A2BC
-C5EF E6A39F
-C5F0 E79B97
-C5F1 E6B798
-C5F2 E6B9AF
-C5F3 E6B69B
-C5F4 E781AF
-C5F5 E78788
-C5F6 E5BD93
-C5F7 E79798
-C5F8 E7A5B7
-C5F9 E7AD89
-C5FA E7AD94
-C5FB E7AD92
-C5FC E7B396
-C5FD E7B5B1
-C5FE E588B0
-C6A1 E891A3
-C6A2 E895A9
-C6A3 E897A4
-C6A4 E8A88E
-C6A5 E8AC84
-C6A6 E8B186
-C6A7 E8B88F
-C6A8 E98083
-C6A9 E9808F
-C6AA E99099
-C6AB E999B6
-C6AC E9A0AD
-C6AD E9A8B0
-C6AE E99798
-C6AF E5838D
-C6B0 E58B95
-C6B1 E5908C
-C6B2 E5A082
-C6B3 E5B08E
-C6B4 E686A7
-C6B5 E6929E
-C6B6 E6B49E
-C6B7 E79EB3
-C6B8 E7ABA5
-C6B9 E883B4
-C6BA E89084
-C6BB E98193
-C6BC E98A85
-C6BD E5B3A0
-C6BE E9B487
-C6BF E58CBF
-C6C0 E5BE97
-C6C1 E5BEB3
-C6C2 E6B69C
-C6C3 E789B9
-C6C4 E79DA3
-C6C5 E7A6BF
-C6C6 E7AFA4
-C6C7 E6AF92
-C6C8 E78BAC
-C6C9 E8AAAD
-C6CA E6A083
-C6CB E6A9A1
-C6CC E587B8
-C6CD E7AA81
-C6CE E6A4B4
-C6CF E5B18A
-C6D0 E9B3B6
-C6D1 E88BAB
-C6D2 E5AF85
-C6D3 E98589
-C6D4 E7809E
-C6D5 E599B8
-C6D6 E5B1AF
-C6D7 E68387
-C6D8 E695A6
-C6D9 E6B28C
-C6DA E8B19A
-C6DB E98181
-C6DC E9A093
-C6DD E59191
-C6DE E69B87
-C6DF E9888D
-C6E0 E5A588
-C6E1 E982A3
-C6E2 E58685
-C6E3 E4B98D
-C6E4 E587AA
-C6E5 E89699
-C6E6 E8AC8E
-C6E7 E78198
-C6E8 E68DBA
-C6E9 E98D8B
-C6EA E6A5A2
-C6EB E9A6B4
-C6EC E7B884
-C6ED E795B7
-C6EE E58D97
-C6EF E6A5A0
-C6F0 E8BB9F
-C6F1 E99BA3
-C6F2 E6B19D
-C6F3 E4BA8C
-C6F4 E5B0BC
-C6F5 E5BC90
-C6F6 E8BFA9
-C6F7 E58C82
-C6F8 E8B391
-C6F9 E88289
-C6FA E899B9
-C6FB E5BBBF
-C6FC E697A5
-C6FD E4B9B3
-C6FE E585A5
-C7A1 E5A682
-C7A2 E5B0BF
-C7A3 E99FAE
-C7A4 E4BBBB
-C7A5 E5A68A
-C7A6 E5BF8D
-C7A7 E8AA8D
-C7A8 E6BFA1
-C7A9 E7A6B0
-C7AA E7A5A2
-C7AB E5AFA7
-C7AC E891B1
-C7AD E78CAB
-C7AE E786B1
-C7AF E5B9B4
-C7B0 E5BFB5
-C7B1 E68DBB
-C7B2 E6929A
-C7B3 E78783
-C7B4 E7B298
-C7B5 E4B983
-C7B6 E5BBBC
-C7B7 E4B98B
-C7B8 E59F9C
-C7B9 E59AA2
-C7BA E682A9
-C7BB E6BF83
-C7BC E7B48D
-C7BD E883BD
-C7BE E884B3
-C7BF E886BF
-C7C0 E8BEB2
-C7C1 E8A697
-C7C2 E89AA4
-C7C3 E5B7B4
-C7C4 E68A8A
-C7C5 E692AD
-C7C6 E8A687
-C7C7 E69DB7
-C7C8 E6B3A2
-C7C9 E6B4BE
-C7CA E790B6
-C7CB E7A0B4
-C7CC E5A986
-C7CD E7BDB5
-C7CE E88AAD
-C7CF E9A6AC
-C7D0 E4BFB3
-C7D1 E5BB83
-C7D2 E68B9D
-C7D3 E68E92
-C7D4 E69597
-C7D5 E69DAF
-C7D6 E79B83
-C7D7 E7898C
-C7D8 E8838C
-C7D9 E882BA
-C7DA E8BCA9
-C7DB E9858D
-C7DC E5808D
-C7DD E59FB9
-C7DE E5AA92
-C7DF E6A285
-C7E0 E6A5B3
-C7E1 E785A4
-C7E2 E78BBD
-C7E3 E8B2B7
-C7E4 E5A3B2
-C7E5 E8B3A0
-C7E6 E999AA
-C7E7 E98099
-C7E8 E89DBF
-C7E9 E7A7A4
-C7EA E79FA7
-C7EB E890A9
-C7EC E4BCAF
-C7ED E589A5
-C7EE E58D9A
-C7EF E68B8D
-C7F0 E69F8F
-C7F1 E6B38A
-C7F2 E799BD
-C7F3 E7AE94
-C7F4 E7B295
-C7F5 E888B6
-C7F6 E89684
-C7F7 E8BFAB
-C7F8 E69B9D
-C7F9 E6BCA0
-C7FA E78886
-C7FB E7B89B
-C7FC E88EAB
-C7FD E9A781
-C7FE E9BAA6
-C8A1 E587BD
-C8A2 E7AEB1
-C8A3 E7A1B2
-C8A4 E7AEB8
-C8A5 E88287
-C8A6 E7AD88
-C8A7 E6ABA8
-C8A8 E5B9A1
-C8A9 E8828C
-C8AA E79591
-C8AB E795A0
-C8AC E585AB
-C8AD E989A2
-C8AE E6BA8C
-C8AF E799BA
-C8B0 E98697
-C8B1 E9ABAA
-C8B2 E4BC90
-C8B3 E7BDB0
-C8B4 E68A9C
-C8B5 E7AD8F
-C8B6 E996A5
-C8B7 E9B3A9
-C8B8 E599BA
-C8B9 E5A199
-C8BA E89BA4
-C8BB E99ABC
-C8BC E4BCB4
-C8BD E588A4
-C8BE E58D8A
-C8BF E58F8D
-C8C0 E58F9B
-C8C1 E5B886
-C8C2 E690AC
-C8C3 E69691
-C8C4 E69DBF
-C8C5 E6B0BE
-C8C6 E6B18E
-C8C7 E78988
-C8C8 E78AAF
-C8C9 E78FAD
-C8CA E79594
-C8CB E7B981
-C8CC E888AC
-C8CD E897A9
-C8CE E8B2A9
-C8CF E7AF84
-C8D0 E98786
-C8D1 E785A9
-C8D2 E9A092
-C8D3 E9A3AF
-C8D4 E68CBD
-C8D5 E699A9
-C8D6 E795AA
-C8D7 E79BA4
-C8D8 E7A390
-C8D9 E89583
-C8DA E89BAE
-C8DB E58CAA
-C8DC E58D91
-C8DD E590A6
-C8DE E5A683
-C8DF E5BA87
-C8E0 E5BDBC
-C8E1 E682B2
-C8E2 E68989
-C8E3 E689B9
-C8E4 E68AAB
-C8E5 E69690
-C8E6 E6AF94
-C8E7 E6B38C
-C8E8 E796B2
-C8E9 E79AAE
-C8EA E7A291
-C8EB E7A798
-C8EC E7B78B
-C8ED E7BDB7
-C8EE E882A5
-C8EF E8A2AB
-C8F0 E8AAB9
-C8F1 E8B2BB
-C8F2 E981BF
-C8F3 E99D9E
-C8F4 E9A39B
-C8F5 E6A88B
-C8F6 E7B0B8
-C8F7 E58299
-C8F8 E5B0BE
-C8F9 E5BEAE
-C8FA E69E87
-C8FB E6AF98
-C8FC E790B5
-C8FD E79C89
-C8FE E7BE8E
-C9A1 E9BCBB
-C9A2 E69F8A
-C9A3 E7A897
-C9A4 E58CB9
-C9A5 E7968B
-C9A6 E9ABAD
-C9A7 E5BDA6
-C9A8 E8869D
-C9A9 E88FB1
-C9AA E88298
-C9AB E5BCBC
-C9AC E5BF85
-C9AD E795A2
-C9AE E7AD86
-C9AF E980BC
-C9B0 E6A1A7
-C9B1 E5A7AB
-C9B2 E5AA9B
-C9B3 E7B490
-C9B4 E799BE
-C9B5 E8ACAC
-C9B6 E4BFB5
-C9B7 E5BDAA
-C9B8 E6A899
-C9B9 E6B0B7
-C9BA E6BC82
-C9BB E793A2
-C9BC E7A5A8
-C9BD E8A1A8
-C9BE E8A995
-C9BF E8B1B9
-C9C0 E5BB9F
-C9C1 E68F8F
-C9C2 E79785
-C9C3 E7A792
-C9C4 E88B97
-C9C5 E98CA8
-C9C6 E98BB2
-C9C7 E8929C
-C9C8 E89BAD
-C9C9 E9B0AD
-C9CA E59381
-C9CB E5BDAC
-C9CC E6968C
-C9CD E6B59C
-C9CE E78095
-C9CF E8B2A7
-C9D0 E8B393
-C9D1 E9A0BB
-C9D2 E6958F
-C9D3 E793B6
-C9D4 E4B88D
-C9D5 E4BB98
-C9D6 E59FA0
-C9D7 E5A4AB
-C9D8 E5A9A6
-C9D9 E5AF8C
-C9DA E586A8
-C9DB E5B883
-C9DC E5BA9C
-C9DD E68096
-C9DE E689B6
-C9DF E695B7
-C9E0 E696A7
-C9E1 E699AE
-C9E2 E6B5AE
-C9E3 E788B6
-C9E4 E7ACA6
-C9E5 E88590
-C9E6 E8869A
-C9E7 E88A99
-C9E8 E8AD9C
-C9E9 E8B2A0
-C9EA E8B3A6
-C9EB E8B5B4
-C9EC E9989C
-C9ED E99984
-C9EE E4BEAE
-C9EF E692AB
-C9F0 E6ADA6
-C9F1 E8889E
-C9F2 E891A1
-C9F3 E895AA
-C9F4 E983A8
-C9F5 E5B081
-C9F6 E6A593
-C9F7 E9A2A8
-C9F8 E891BA
-C9F9 E89597
-C9FA E4BC8F
-C9FB E589AF
-C9FC E5BEA9
-C9FD E5B985
-C9FE E69C8D
-CAA1 E7A68F
-CAA2 E885B9
-CAA3 E8A487
-CAA4 E8A686
-CAA5 E6B7B5
-CAA6 E5BC97
-CAA7 E68995
-CAA8 E6B2B8
-CAA9 E4BB8F
-CAAA E789A9
-CAAB E9AE92
-CAAC E58886
-CAAD E590BB
-CAAE E599B4
-CAAF E5A2B3
-CAB0 E686A4
-CAB1 E689AE
-CAB2 E7849A
-CAB3 E5A5AE
-CAB4 E7B289
-CAB5 E7B39E
-CAB6 E7B49B
-CAB7 E99BB0
-CAB8 E69687
-CAB9 E8819E
-CABA E4B899
-CABB E4BDB5
-CABC E585B5
-CABD E5A180
-CABE E5B9A3
-CABF E5B9B3
-CAC0 E5BC8A
-CAC1 E69F84
-CAC2 E4B8A6
-CAC3 E894BD
-CAC4 E99689
-CAC5 E9999B
-CAC6 E7B1B3
-CAC7 E9A081
-CAC8 E583BB
-CAC9 E5A381
-CACA E79996
-CACB E7A2A7
-CACC E588A5
-CACD E79EA5
-CACE E89491
-CACF E7AE86
-CAD0 E5818F
-CAD1 E5A489
-CAD2 E78987
-CAD3 E7AF87
-CAD4 E7B7A8
-CAD5 E8BEBA
-CAD6 E8BF94
-CAD7 E9818D
-CAD8 E4BEBF
-CAD9 E58B89
-CADA E5A8A9
-CADB E5BC81
-CADC E99EAD
-CADD E4BF9D
-CADE E88897
-CADF E98BAA
-CAE0 E59C83
-CAE1 E68D95
-CAE2 E6ADA9
-CAE3 E794AB
-CAE4 E8A39C
-CAE5 E8BC94
-CAE6 E7A982
-CAE7 E58B9F
-CAE8 E5A293
-CAE9 E68595
-CAEA E6888A
-CAEB E69AAE
-CAEC E6AF8D
-CAED E7B0BF
-CAEE E88FA9
-CAEF E580A3
-CAF0 E4BFB8
-CAF1 E58C85
-CAF2 E59186
-CAF3 E5A0B1
-CAF4 E5A589
-CAF5 E5AE9D
-CAF6 E5B3B0
-CAF7 E5B3AF
-CAF8 E5B4A9
-CAF9 E5BA96
-CAFA E68AB1
-CAFB E68DA7
-CAFC E694BE
-CAFD E696B9
-CAFE E69C8B
-CBA1 E6B395
-CBA2 E6B3A1
-CBA3 E783B9
-CBA4 E7A0B2
-CBA5 E7B8AB
-CBA6 E8839E
-CBA7 E88AB3
-CBA8 E8908C
-CBA9 E893AC
-CBAA E89C82
-CBAB E8A492
-CBAC E8A8AA
-CBAD E8B18A
-CBAE E982A6
-CBAF E98B92
-CBB0 E9A3BD
-CBB1 E9B3B3
-CBB2 E9B5AC
-CBB3 E4B98F
-CBB4 E4BAA1
-CBB5 E5828D
-CBB6 E58996
-CBB7 E59D8A
-CBB8 E5A6A8
-CBB9 E5B8BD
-CBBA E5BF98
-CBBB E5BF99
-CBBC E688BF
-CBBD E69AB4
-CBBE E69C9B
-CBBF E69F90
-CBC0 E6A392
-CBC1 E58692
-CBC2 E7B4A1
-CBC3 E882AA
-CBC4 E886A8
-CBC5 E8AC80
-CBC6 E8B28C
-CBC7 E8B2BF
-CBC8 E989BE
-CBC9 E998B2
-CBCA E590A0
-CBCB E9A0AC
-CBCC E58C97
-CBCD E58395
-CBCE E58D9C
-CBCF E5A2A8
-CBD0 E692B2
-CBD1 E69CB4
-CBD2 E789A7
-CBD3 E79DA6
-CBD4 E7A986
-CBD5 E987A6
-CBD6 E58B83
-CBD7 E6B2A1
-CBD8 E6AE86
-CBD9 E5A080
-CBDA E5B98C
-CBDB E5A594
-CBDC E69CAC
-CBDD E7BFBB
-CBDE E587A1
-CBDF E79B86
-CBE0 E691A9
-CBE1 E7A3A8
-CBE2 E9AD94
-CBE3 E9BABB
-CBE4 E59F8B
-CBE5 E5A6B9
-CBE6 E698A7
-CBE7 E69E9A
-CBE8 E6AF8E
-CBE9 E593A9
-CBEA E6A799
-CBEB E5B995
-CBEC E8869C
-CBED E69E95
-CBEE E9AEAA
-CBEF E69FBE
-CBF0 E9B192
-CBF1 E6A19D
-CBF2 E4BAA6
-CBF3 E4BFA3
-CBF4 E58F88
-CBF5 E68AB9
-CBF6 E69CAB
-CBF7 E6B2AB
-CBF8 E8BF84
-CBF9 E4BEAD
-CBFA E7B9AD
-CBFB E9BABF
-CBFC E4B887
-CBFD E685A2
-CBFE E6BA80
-CCA1 E6BCAB
-CCA2 E89493
-CCA3 E591B3
-CCA4 E69CAA
-CCA5 E9AD85
-CCA6 E5B7B3
-CCA7 E7AE95
-CCA8 E5B2AC
-CCA9 E5AF86
-CCAA E89C9C
-CCAB E6B98A
-CCAC E89391
-CCAD E7A894
-CCAE E88488
-CCAF E5A699
-CCB0 E7B28D
-CCB1 E6B091
-CCB2 E79CA0
-CCB3 E58B99
-CCB4 E5A4A2
-CCB5 E784A1
-CCB6 E7899F
-CCB7 E79F9B
-CCB8 E99CA7
-CCB9 E9B5A1
-CCBA E6A48B
-CCBB E5A9BF
-CCBC E5A898
-CCBD E586A5
-CCBE E5908D
-CCBF E591BD
-CCC0 E6988E
-CCC1 E79B9F
-CCC2 E8BFB7
-CCC3 E98A98
-CCC4 E9B3B4
-CCC5 E5A7AA
-CCC6 E7899D
-CCC7 E6BB85
-CCC8 E5858D
-CCC9 E6A389
-CCCA E7B6BF
-CCCB E7B7AC
-CCCC E99DA2
-CCCD E9BABA
-CCCE E691B8
-CCCF E6A8A1
-CCD0 E88C82
-CCD1 E5A684
-CCD2 E5AD9F
-CCD3 E6AF9B
-CCD4 E78C9B
-CCD5 E79BB2
-CCD6 E7B6B2
-CCD7 E88097
-CCD8 E89299
-CCD9 E584B2
-CCDA E69CA8
-CCDB E9BB99
-CCDC E79BAE
-CCDD E69DA2
-CCDE E58BBF
-CCDF E9A485
-CCE0 E5B0A4
-CCE1 E688BB
-CCE2 E7B1BE
-CCE3 E8B2B0
-CCE4 E5958F
-CCE5 E682B6
-CCE6 E7B48B
-CCE7 E99680
-CCE8 E58C81
-CCE9 E4B99F
-CCEA E586B6
-CCEB E5A49C
-CCEC E788BA
-CCED E880B6
-CCEE E9878E
-CCEF E5BCA5
-CCF0 E79FA2
-CCF1 E58E84
-CCF2 E5BDB9
-CCF3 E7B484
-CCF4 E896AC
-CCF5 E8A8B3
-CCF6 E8BA8D
-CCF7 E99D96
-CCF8 E69FB3
-CCF9 E896AE
-CCFA E99193
-CCFB E68489
-CCFC E68488
-CCFD E6B2B9
-CCFE E79992
-CDA1 E8ABAD
-CDA2 E8BCB8
-CDA3 E594AF
-CDA4 E4BD91
-CDA5 E584AA
-CDA6 E58B87
-CDA7 E58F8B
-CDA8 E5AEA5
-CDA9 E5B9BD
-CDAA E682A0
-CDAB E68682
-CDAC E68F96
-CDAD E69C89
-CDAE E69F9A
-CDAF E6B9A7
-CDB0 E6B68C
-CDB1 E78CB6
-CDB2 E78CB7
-CDB3 E794B1
-CDB4 E7A590
-CDB5 E8A395
-CDB6 E8AA98
-CDB7 E9818A
-CDB8 E98291
-CDB9 E983B5
-CDBA E99B84
-CDBB E89E8D
-CDBC E5A495
-CDBD E4BA88
-CDBE E4BD99
-CDBF E4B88E
-CDC0 E8AA89
-CDC1 E8BCBF
-CDC2 E9A090
-CDC3 E582AD
-CDC4 E5B9BC
-CDC5 E5A696
-CDC6 E5AEB9
-CDC7 E5BAB8
-CDC8 E68F9A
-CDC9 E68FBA
-CDCA E69381
-CDCB E69B9C
-CDCC E6A58A
-CDCD E6A798
-CDCE E6B48B
-CDCF E6BAB6
-CDD0 E78694
-CDD1 E794A8
-CDD2 E7AAAF
-CDD3 E7BE8A
-CDD4 E88080
-CDD5 E89189
-CDD6 E89389
-CDD7 E8A681
-CDD8 E8ACA1
-CDD9 E8B88A
-CDDA E981A5
-CDDB E999BD
-CDDC E9A48A
-CDDD E685BE
-CDDE E68A91
-CDDF E6ACB2
-CDE0 E6B283
-CDE1 E6B5B4
-CDE2 E7BF8C
-CDE3 E7BFBC
-CDE4 E6B780
-CDE5 E7BE85
-CDE6 E89EBA
-CDE7 E8A3B8
-CDE8 E69DA5
-CDE9 E88EB1
-CDEA E9A0BC
-CDEB E99BB7
-CDEC E6B49B
-CDED E7B5A1
-CDEE E890BD
-CDEF E985AA
-CDF0 E4B9B1
-CDF1 E58DB5
-CDF2 E5B590
-CDF3 E6AC84
-CDF4 E6BFAB
-CDF5 E8978D
-CDF6 E898AD
-CDF7 E8A6A7
-CDF8 E588A9
-CDF9 E5908F
-CDFA E5B1A5
-CDFB E69D8E
-CDFC E6A2A8
-CDFD E79086
-CDFE E79283
-CEA1 E797A2
-CEA2 E8A38F
-CEA3 E8A3A1
-CEA4 E9878C
-CEA5 E99BA2
-CEA6 E999B8
-CEA7 E5BE8B
-CEA8 E78E87
-CEA9 E7AB8B
-CEAA E8918E
-CEAB E68EA0
-CEAC E795A5
-CEAD E58A89
-CEAE E6B581
-CEAF E6BA9C
-CEB0 E79089
-CEB1 E79599
-CEB2 E7A1AB
-CEB3 E7B292
-CEB4 E99A86
-CEB5 E7AB9C
-CEB6 E9BE8D
-CEB7 E4BEB6
-CEB8 E685AE
-CEB9 E69785
-CEBA E8999C
-CEBB E4BA86
-CEBC E4BAAE
-CEBD E5839A
-CEBE E4B8A1
-CEBF E5878C
-CEC0 E5AFAE
-CEC1 E69699
-CEC2 E6A281
-CEC3 E6B6BC
-CEC4 E78C9F
-CEC5 E79982
-CEC6 E79EAD
-CEC7 E7A89C
-CEC8 E7B3A7
-CEC9 E889AF
-CECA E8AB92
-CECB E981BC
-CECC E9878F
-CECD E999B5
-CECE E9A098
-CECF E58A9B
-CED0 E7B791
-CED1 E580AB
-CED2 E58E98
-CED3 E69E97
-CED4 E6B78B
-CED5 E78790
-CED6 E790B3
-CED7 E887A8
-CED8 E8BCAA
-CED9 E99AA3
-CEDA E9B197
-CEDB E9BA9F
-CEDC E791A0
-CEDD E5A181
-CEDE E6B699
-CEDF E7B4AF
-CEE0 E9A19E
-CEE1 E4BBA4
-CEE2 E4BCB6
-CEE3 E4BE8B
-CEE4 E586B7
-CEE5 E58AB1
-CEE6 E5B6BA
-CEE7 E6809C
-CEE8 E78EB2
-CEE9 E7A4BC
-CEEA E88B93
-CEEB E988B4
-CEEC E99AB7
-CEED E99BB6
-CEEE E99C8A
-CEEF E9BA97
-CEF0 E9BDA2
-CEF1 E69AA6
-CEF2 E6ADB4
-CEF3 E58897
-CEF4 E58AA3
-CEF5 E78388
-CEF6 E8A382
-CEF7 E5BB89
-CEF8 E6818B
-CEF9 E68690
-CEFA E6BCA3
-CEFB E78589
-CEFC E7B0BE
-CEFD E7B7B4
-CEFE E881AF
-CFA1 E893AE
-CFA2 E980A3
-CFA3 E98CAC
-CFA4 E59182
-CFA5 E9ADAF
-CFA6 E6AB93
-CFA7 E78289
-CFA8 E8B382
-CFA9 E8B7AF
-CFAA E99CB2
-CFAB E58AB4
-CFAC E5A981
-CFAD E5BB8A
-CFAE E5BC84
-CFAF E69C97
-CFB0 E6A5BC
-CFB1 E6A694
-CFB2 E6B5AA
-CFB3 E6BC8F
-CFB4 E789A2
-CFB5 E78BBC
-CFB6 E7AFAD
-CFB7 E88081
-CFB8 E881BE
-CFB9 E89D8B
-CFBA E9838E
-CFBB E585AD
-CFBC E9BA93
-CFBD E7A684
-CFBE E8828B
-CFBF E98CB2
-CFC0 E8AB96
-CFC1 E580AD
-CFC2 E5928C
-CFC3 E8A9B1
-CFC4 E6ADAA
-CFC5 E8B384
-CFC6 E88487
-CFC7 E68391
-CFC8 E69EA0
-CFC9 E9B7B2
-CFCA E4BA99
-CFCB E4BA98
-CFCC E9B090
-CFCD E8A9AB
-CFCE E89781
-CFCF E895A8
-CFD0 E6A480
-CFD1 E6B9BE
-CFD2 E7A297
-CFD3 E88595
-D0A1 E5BC8C
-D0A2 E4B890
-D0A3 E4B895
-D0A4 E4B8AA
-D0A5 E4B8B1
-D0A6 E4B8B6
-D0A7 E4B8BC
-D0A8 E4B8BF
-D0A9 E4B982
-D0AA E4B996
-D0AB E4B998
-D0AC E4BA82
-D0AD E4BA85
-D0AE E8B1AB
-D0AF E4BA8A
-D0B0 E88892
-D0B1 E5BC8D
-D0B2 E4BA8E
-D0B3 E4BA9E
-D0B4 E4BA9F
-D0B5 E4BAA0
-D0B6 E4BAA2
-D0B7 E4BAB0
-D0B8 E4BAB3
-D0B9 E4BAB6
-D0BA E4BB8E
-D0BB E4BB8D
-D0BC E4BB84
-D0BD E4BB86
-D0BE E4BB82
-D0BF E4BB97
-D0C0 E4BB9E
-D0C1 E4BBAD
-D0C2 E4BB9F
-D0C3 E4BBB7
-D0C4 E4BC89
-D0C5 E4BD9A
-D0C6 E4BCB0
-D0C7 E4BD9B
-D0C8 E4BD9D
-D0C9 E4BD97
-D0CA E4BD87
-D0CB E4BDB6
-D0CC E4BE88
-D0CD E4BE8F
-D0CE E4BE98
-D0CF E4BDBB
-D0D0 E4BDA9
-D0D1 E4BDB0
-D0D2 E4BE91
-D0D3 E4BDAF
-D0D4 E4BE86
-D0D5 E4BE96
-D0D6 E58498
-D0D7 E4BF94
-D0D8 E4BF9F
-D0D9 E4BF8E
-D0DA E4BF98
-D0DB E4BF9B
-D0DC E4BF91
-D0DD E4BF9A
-D0DE E4BF90
-D0DF E4BFA4
-D0E0 E4BFA5
-D0E1 E5809A
-D0E2 E580A8
-D0E3 E58094
-D0E4 E580AA
-D0E5 E580A5
-D0E6 E58085
-D0E7 E4BC9C
-D0E8 E4BFB6
-D0E9 E580A1
-D0EA E580A9
-D0EB E580AC
-D0EC E4BFBE
-D0ED E4BFAF
-D0EE E58091
-D0EF E58086
-D0F0 E58183
-D0F1 E58187
-D0F2 E69C83
-D0F3 E58195
-D0F4 E58190
-D0F5 E58188
-D0F6 E5819A
-D0F7 E58196
-D0F8 E581AC
-D0F9 E581B8
-D0FA E58280
-D0FB E5829A
-D0FC E58285
-D0FD E582B4
-D0FE E582B2
-D1A1 E58389
-D1A2 E5838A
-D1A3 E582B3
-D1A4 E58382
-D1A5 E58396
-D1A6 E5839E
-D1A7 E583A5
-D1A8 E583AD
-D1A9 E583A3
-D1AA E583AE
-D1AB E583B9
-D1AC E583B5
-D1AD E58489
-D1AE E58481
-D1AF E58482
-D1B0 E58496
-D1B1 E58495
-D1B2 E58494
-D1B3 E5849A
-D1B4 E584A1
-D1B5 E584BA
-D1B6 E584B7
-D1B7 E584BC
-D1B8 E584BB
-D1B9 E584BF
-D1BA E58580
-D1BB E58592
-D1BC E5858C
-D1BD E58594
-D1BE E585A2
-D1BF E7ABB8
-D1C0 E585A9
-D1C1 E585AA
-D1C2 E585AE
-D1C3 E58680
-D1C4 E58682
-D1C5 E59B98
-D1C6 E5868C
-D1C7 E58689
-D1C8 E5868F
-D1C9 E58691
-D1CA E58693
-D1CB E58695
-D1CC E58696
-D1CD E586A4
-D1CE E586A6
-D1CF E586A2
-D1D0 E586A9
-D1D1 E586AA
-D1D2 E586AB
-D1D3 E586B3
-D1D4 E586B1
-D1D5 E586B2
-D1D6 E586B0
-D1D7 E586B5
-D1D8 E586BD
-D1D9 E58785
-D1DA E58789
-D1DB E5879B
-D1DC E587A0
-D1DD E89995
-D1DE E587A9
-D1DF E587AD
-D1E0 E587B0
-D1E1 E587B5
-D1E2 E587BE
-D1E3 E58884
-D1E4 E5888B
-D1E5 E58894
-D1E6 E5888E
-D1E7 E588A7
-D1E8 E588AA
-D1E9 E588AE
-D1EA E588B3
-D1EB E588B9
-D1EC E5898F
-D1ED E58984
-D1EE E5898B
-D1EF E5898C
-D1F0 E5899E
-D1F1 E58994
-D1F2 E589AA
-D1F3 E589B4
-D1F4 E589A9
-D1F5 E589B3
-D1F6 E589BF
-D1F7 E589BD
-D1F8 E58A8D
-D1F9 E58A94
-D1FA E58A92
-D1FB E589B1
-D1FC E58A88
-D1FD E58A91
-D1FE E8BEA8
-D2A1 E8BEA7
-D2A2 E58AAC
-D2A3 E58AAD
-D2A4 E58ABC
-D2A5 E58AB5
-D2A6 E58B81
-D2A7 E58B8D
-D2A8 E58B97
-D2A9 E58B9E
-D2AA E58BA3
-D2AB E58BA6
-D2AC E9A3AD
-D2AD E58BA0
-D2AE E58BB3
-D2AF E58BB5
-D2B0 E58BB8
-D2B1 E58BB9
-D2B2 E58C86
-D2B3 E58C88
-D2B4 E794B8
-D2B5 E58C8D
-D2B6 E58C90
-D2B7 E58C8F
-D2B8 E58C95
-D2B9 E58C9A
-D2BA E58CA3
-D2BB E58CAF
-D2BC E58CB1
-D2BD E58CB3
-D2BE E58CB8
-D2BF E58D80
-D2C0 E58D86
-D2C1 E58D85
-D2C2 E4B897
-D2C3 E58D89
-D2C4 E58D8D
-D2C5 E58796
-D2C6 E58D9E
-D2C7 E58DA9
-D2C8 E58DAE
-D2C9 E5A498
-D2CA E58DBB
-D2CB E58DB7
-D2CC E58E82
-D2CD E58E96
-D2CE E58EA0
-D2CF E58EA6
-D2D0 E58EA5
-D2D1 E58EAE
-D2D2 E58EB0
-D2D3 E58EB6
-D2D4 E58F83
-D2D5 E7B092
-D2D6 E99B99
-D2D7 E58F9F
-D2D8 E69BBC
-D2D9 E787AE
-D2DA E58FAE
-D2DB E58FA8
-D2DC E58FAD
-D2DD E58FBA
-D2DE E59081
-D2DF E590BD
-D2E0 E59180
-D2E1 E590AC
-D2E2 E590AD
-D2E3 E590BC
-D2E4 E590AE
-D2E5 E590B6
-D2E6 E590A9
-D2E7 E5909D
-D2E8 E5918E
-D2E9 E5928F
-D2EA E591B5
-D2EB E5928E
-D2EC E5919F
-D2ED E591B1
-D2EE E591B7
-D2EF E591B0
-D2F0 E59292
-D2F1 E591BB
-D2F2 E59280
-D2F3 E591B6
-D2F4 E59284
-D2F5 E59290
-D2F6 E59286
-D2F7 E59387
-D2F8 E592A2
-D2F9 E592B8
-D2FA E592A5
-D2FB E592AC
-D2FC E59384
-D2FD E59388
-D2FE E592A8
-D3A1 E592AB
-D3A2 E59382
-D3A3 E592A4
-D3A4 E592BE
-D3A5 E592BC
-D3A6 E59398
-D3A7 E593A5
-D3A8 E593A6
-D3A9 E5948F
-D3AA E59494
-D3AB E593BD
-D3AC E593AE
-D3AD E593AD
-D3AE E593BA
-D3AF E593A2
-D3B0 E594B9
-D3B1 E59580
-D3B2 E595A3
-D3B3 E5958C
-D3B4 E594AE
-D3B5 E5959C
-D3B6 E59585
-D3B7 E59596
-D3B8 E59597
-D3B9 E594B8
-D3BA E594B3
-D3BB E5959D
-D3BC E59699
-D3BD E59680
-D3BE E592AF
-D3BF E5968A
-D3C0 E5969F
-D3C1 E595BB
-D3C2 E595BE
-D3C3 E59698
-D3C4 E5969E
-D3C5 E596AE
-D3C6 E595BC
-D3C7 E59683
-D3C8 E596A9
-D3C9 E59687
-D3CA E596A8
-D3CB E5979A
-D3CC E59785
-D3CD E5979F
-D3CE E59784
-D3CF E5979C
-D3D0 E597A4
-D3D1 E59794
-D3D2 E59894
-D3D3 E597B7
-D3D4 E59896
-D3D5 E597BE
-D3D6 E597BD
-D3D7 E5989B
-D3D8 E597B9
-D3D9 E5998E
-D3DA E59990
-D3DB E7879F
-D3DC E598B4
-D3DD E598B6
-D3DE E598B2
-D3DF E598B8
-D3E0 E599AB
-D3E1 E599A4
-D3E2 E598AF
-D3E3 E599AC
-D3E4 E599AA
-D3E5 E59A86
-D3E6 E59A80
-D3E7 E59A8A
-D3E8 E59AA0
-D3E9 E59A94
-D3EA E59A8F
-D3EB E59AA5
-D3EC E59AAE
-D3ED E59AB6
-D3EE E59AB4
-D3EF E59B82
-D3F0 E59ABC
-D3F1 E59B81
-D3F2 E59B83
-D3F3 E59B80
-D3F4 E59B88
-D3F5 E59B8E
-D3F6 E59B91
-D3F7 E59B93
-D3F8 E59B97
-D3F9 E59BAE
-D3FA E59BB9
-D3FB E59C80
-D3FC E59BBF
-D3FD E59C84
-D3FE E59C89
-D4A1 E59C88
-D4A2 E59C8B
-D4A3 E59C8D
-D4A4 E59C93
-D4A5 E59C98
-D4A6 E59C96
-D4A7 E59787
-D4A8 E59C9C
-D4A9 E59CA6
-D4AA E59CB7
-D4AB E59CB8
-D4AC E59D8E
-D4AD E59CBB
-D4AE E59D80
-D4AF E59D8F
-D4B0 E59DA9
-D4B1 E59F80
-D4B2 E59E88
-D4B3 E59DA1
-D4B4 E59DBF
-D4B5 E59E89
-D4B6 E59E93
-D4B7 E59EA0
-D4B8 E59EB3
-D4B9 E59EA4
-D4BA E59EAA
-D4BB E59EB0
-D4BC E59F83
-D4BD E59F86
-D4BE E59F94
-D4BF E59F92
-D4C0 E59F93
-D4C1 E5A08A
-D4C2 E59F96
-D4C3 E59FA3
-D4C4 E5A08B
-D4C5 E5A099
-D4C6 E5A09D
-D4C7 E5A1B2
-D4C8 E5A0A1
-D4C9 E5A1A2
-D4CA E5A18B
-D4CB E5A1B0
-D4CC E6AF80
-D4CD E5A192
-D4CE E5A0BD
-D4CF E5A1B9
-D4D0 E5A285
-D4D1 E5A2B9
-D4D2 E5A29F
-D4D3 E5A2AB
-D4D4 E5A2BA
-D4D5 E5A39E
-D4D6 E5A2BB
-D4D7 E5A2B8
-D4D8 E5A2AE
-D4D9 E5A385
-D4DA E5A393
-D4DB E5A391
-D4DC E5A397
-D4DD E5A399
-D4DE E5A398
-D4DF E5A3A5
-D4E0 E5A39C
-D4E1 E5A3A4
-D4E2 E5A39F
-D4E3 E5A3AF
-D4E4 E5A3BA
-D4E5 E5A3B9
-D4E6 E5A3BB
-D4E7 E5A3BC
-D4E8 E5A3BD
-D4E9 E5A482
-D4EA E5A48A
-D4EB E5A490
-D4EC E5A49B
-D4ED E6A2A6
-D4EE E5A4A5
-D4EF E5A4AC
-D4F0 E5A4AD
-D4F1 E5A4B2
-D4F2 E5A4B8
-D4F3 E5A4BE
-D4F4 E7AB92
-D4F5 E5A595
-D4F6 E5A590
-D4F7 E5A58E
-D4F8 E5A59A
-D4F9 E5A598
-D4FA E5A5A2
-D4FB E5A5A0
-D4FC E5A5A7
-D4FD E5A5AC
-D4FE E5A5A9
-D5A1 E5A5B8
-D5A2 E5A681
-D5A3 E5A69D
-D5A4 E4BD9E
-D5A5 E4BEAB
-D5A6 E5A6A3
-D5A7 E5A6B2
-D5A8 E5A786
-D5A9 E5A7A8
-D5AA E5A79C
-D5AB E5A68D
-D5AC E5A799
-D5AD E5A79A
-D5AE E5A8A5
-D5AF E5A89F
-D5B0 E5A891
-D5B1 E5A89C
-D5B2 E5A889
-D5B3 E5A89A
-D5B4 E5A980
-D5B5 E5A9AC
-D5B6 E5A989
-D5B7 E5A8B5
-D5B8 E5A8B6
-D5B9 E5A9A2
-D5BA E5A9AA
-D5BB E5AA9A
-D5BC E5AABC
-D5BD E5AABE
-D5BE E5AB8B
-D5BF E5AB82
-D5C0 E5AABD
-D5C1 E5ABA3
-D5C2 E5AB97
-D5C3 E5ABA6
-D5C4 E5ABA9
-D5C5 E5AB96
-D5C6 E5ABBA
-D5C7 E5ABBB
-D5C8 E5AC8C
-D5C9 E5AC8B
-D5CA E5AC96
-D5CB E5ACB2
-D5CC E5AB90
-D5CD E5ACAA
-D5CE E5ACB6
-D5CF E5ACBE
-D5D0 E5AD83
-D5D1 E5AD85
-D5D2 E5AD80
-D5D3 E5AD91
-D5D4 E5AD95
-D5D5 E5AD9A
-D5D6 E5AD9B
-D5D7 E5ADA5
-D5D8 E5ADA9
-D5D9 E5ADB0
-D5DA E5ADB3
-D5DB E5ADB5
-D5DC E5ADB8
-D5DD E69688
-D5DE E5ADBA
-D5DF E5AE80
-D5E0 E5AE83
-D5E1 E5AEA6
-D5E2 E5AEB8
-D5E3 E5AF83
-D5E4 E5AF87
-D5E5 E5AF89
-D5E6 E5AF94
-D5E7 E5AF90
-D5E8 E5AFA4
-D5E9 E5AFA6
-D5EA E5AFA2
-D5EB E5AF9E
-D5EC E5AFA5
-D5ED E5AFAB
-D5EE E5AFB0
-D5EF E5AFB6
-D5F0 E5AFB3
-D5F1 E5B085
-D5F2 E5B087
-D5F3 E5B088
-D5F4 E5B08D
-D5F5 E5B093
-D5F6 E5B0A0
-D5F7 E5B0A2
-D5F8 E5B0A8
-D5F9 E5B0B8
-D5FA E5B0B9
-D5FB E5B181
-D5FC E5B186
-D5FD E5B18E
-D5FE E5B193
-D6A1 E5B190
-D6A2 E5B18F
-D6A3 E5ADB1
-D6A4 E5B1AC
-D6A5 E5B1AE
-D6A6 E4B9A2
-D6A7 E5B1B6
-D6A8 E5B1B9
-D6A9 E5B28C
-D6AA E5B291
-D6AB E5B294
-D6AC E5A69B
-D6AD E5B2AB
-D6AE E5B2BB
-D6AF E5B2B6
-D6B0 E5B2BC
-D6B1 E5B2B7
-D6B2 E5B385
-D6B3 E5B2BE
-D6B4 E5B387
-D6B5 E5B399
-D6B6 E5B3A9
-D6B7 E5B3BD
-D6B8 E5B3BA
-D6B9 E5B3AD
-D6BA E5B68C
-D6BB E5B3AA
-D6BC E5B48B
-D6BD E5B495
-D6BE E5B497
-D6BF E5B59C
-D6C0 E5B49F
-D6C1 E5B49B
-D6C2 E5B491
-D6C3 E5B494
-D6C4 E5B4A2
-D6C5 E5B49A
-D6C6 E5B499
-D6C7 E5B498
-D6C8 E5B58C
-D6C9 E5B592
-D6CA E5B58E
-D6CB E5B58B
-D6CC E5B5AC
-D6CD E5B5B3
-D6CE E5B5B6
-D6CF E5B687
-D6D0 E5B684
-D6D1 E5B682
-D6D2 E5B6A2
-D6D3 E5B69D
-D6D4 E5B6AC
-D6D5 E5B6AE
-D6D6 E5B6BD
-D6D7 E5B690
-D6D8 E5B6B7
-D6D9 E5B6BC
-D6DA E5B789
-D6DB E5B78D
-D6DC E5B793
-D6DD E5B792
-D6DE E5B796
-D6DF E5B79B
-D6E0 E5B7AB
-D6E1 E5B7B2
-D6E2 E5B7B5
-D6E3 E5B88B
-D6E4 E5B89A
-D6E5 E5B899
-D6E6 E5B891
-D6E7 E5B89B
-D6E8 E5B8B6
-D6E9 E5B8B7
-D6EA E5B984
-D6EB E5B983
-D6EC E5B980
-D6ED E5B98E
-D6EE E5B997
-D6EF E5B994
-D6F0 E5B99F
-D6F1 E5B9A2
-D6F2 E5B9A4
-D6F3 E5B987
-D6F4 E5B9B5
-D6F5 E5B9B6
-D6F6 E5B9BA
-D6F7 E9BABC
-D6F8 E5B9BF
-D6F9 E5BAA0
-D6FA E5BB81
-D6FB E5BB82
-D6FC E5BB88
-D6FD E5BB90
-D6FE E5BB8F
-D7A1 E5BB96
-D7A2 E5BBA3
-D7A3 E5BB9D
-D7A4 E5BB9A
-D7A5 E5BB9B
-D7A6 E5BBA2
-D7A7 E5BBA1
-D7A8 E5BBA8
-D7A9 E5BBA9
-D7AA E5BBAC
-D7AB E5BBB1
-D7AC E5BBB3
-D7AD E5BBB0
-D7AE E5BBB4
-D7AF E5BBB8
-D7B0 E5BBBE
-D7B1 E5BC83
-D7B2 E5BC89
-D7B3 E5BD9D
-D7B4 E5BD9C
-D7B5 E5BC8B
-D7B6 E5BC91
-D7B7 E5BC96
-D7B8 E5BCA9
-D7B9 E5BCAD
-D7BA E5BCB8
-D7BB E5BD81
-D7BC E5BD88
-D7BD E5BD8C
-D7BE E5BD8E
-D7BF E5BCAF
-D7C0 E5BD91
-D7C1 E5BD96
-D7C2 E5BD97
-D7C3 E5BD99
-D7C4 E5BDA1
-D7C5 E5BDAD
-D7C6 E5BDB3
-D7C7 E5BDB7
-D7C8 E5BE83
-D7C9 E5BE82
-D7CA E5BDBF
-D7CB E5BE8A
-D7CC E5BE88
-D7CD E5BE91
-D7CE E5BE87
-D7CF E5BE9E
-D7D0 E5BE99
-D7D1 E5BE98
-D7D2 E5BEA0
-D7D3 E5BEA8
-D7D4 E5BEAD
-D7D5 E5BEBC
-D7D6 E5BF96
-D7D7 E5BFBB
-D7D8 E5BFA4
-D7D9 E5BFB8
-D7DA E5BFB1
-D7DB E5BF9D
-D7DC E682B3
-D7DD E5BFBF
-D7DE E680A1
-D7DF E681A0
-D7E0 E68099
-D7E1 E68090
-D7E2 E680A9
-D7E3 E6808E
-D7E4 E680B1
-D7E5 E6809B
-D7E6 E68095
-D7E7 E680AB
-D7E8 E680A6
-D7E9 E6808F
-D7EA E680BA
-D7EB E6819A
-D7EC E68181
-D7ED E681AA
-D7EE E681B7
-D7EF E6819F
-D7F0 E6818A
-D7F1 E68186
-D7F2 E6818D
-D7F3 E681A3
-D7F4 E68183
-D7F5 E681A4
-D7F6 E68182
-D7F7 E681AC
-D7F8 E681AB
-D7F9 E68199
-D7FA E68281
-D7FB E6828D
-D7FC E683A7
-D7FD E68283
-D7FE E6829A
-D8A1 E68284
-D8A2 E6829B
-D8A3 E68296
-D8A4 E68297
-D8A5 E68292
-D8A6 E682A7
-D8A7 E6828B
-D8A8 E683A1
-D8A9 E682B8
-D8AA E683A0
-D8AB E68393
-D8AC E682B4
-D8AD E5BFB0
-D8AE E682BD
-D8AF E68386
-D8B0 E682B5
-D8B1 E68398
-D8B2 E6858D
-D8B3 E68495
-D8B4 E68486
-D8B5 E683B6
-D8B6 E683B7
-D8B7 E68480
-D8B8 E683B4
-D8B9 E683BA
-D8BA E68483
-D8BB E684A1
-D8BC E683BB
-D8BD E683B1
-D8BE E6848D
-D8BF E6848E
-D8C0 E68587
-D8C1 E684BE
-D8C2 E684A8
-D8C3 E684A7
-D8C4 E6858A
-D8C5 E684BF
-D8C6 E684BC
-D8C7 E684AC
-D8C8 E684B4
-D8C9 E684BD
-D8CA E68582
-D8CB E68584
-D8CC E685B3
-D8CD E685B7
-D8CE E68598
-D8CF E68599
-D8D0 E6859A
-D8D1 E685AB
-D8D2 E685B4
-D8D3 E685AF
-D8D4 E685A5
-D8D5 E685B1
-D8D6 E6859F
-D8D7 E6859D
-D8D8 E68593
-D8D9 E685B5
-D8DA E68699
-D8DB E68696
-D8DC E68687
-D8DD E686AC
-D8DE E68694
-D8DF E6869A
-D8E0 E6868A
-D8E1 E68691
-D8E2 E686AB
-D8E3 E686AE
-D8E4 E6878C
-D8E5 E6878A
-D8E6 E68789
-D8E7 E687B7
-D8E8 E68788
-D8E9 E68783
-D8EA E68786
-D8EB E686BA
-D8EC E6878B
-D8ED E7BDB9
-D8EE E6878D
-D8EF E687A6
-D8F0 E687A3
-D8F1 E687B6
-D8F2 E687BA
-D8F3 E687B4
-D8F4 E687BF
-D8F5 E687BD
-D8F6 E687BC
-D8F7 E687BE
-D8F8 E68880
-D8F9 E68888
-D8FA E68889
-D8FB E6888D
-D8FC E6888C
-D8FD E68894
-D8FE E6889B
-D9A1 E6889E
-D9A2 E688A1
-D9A3 E688AA
-D9A4 E688AE
-D9A5 E688B0
-D9A6 E688B2
-D9A7 E688B3
-D9A8 E68981
-D9A9 E6898E
-D9AA E6899E
-D9AB E689A3
-D9AC E6899B
-D9AD E689A0
-D9AE E689A8
-D9AF E689BC
-D9B0 E68A82
-D9B1 E68A89
-D9B2 E689BE
-D9B3 E68A92
-D9B4 E68A93
-D9B5 E68A96
-D9B6 E68B94
-D9B7 E68A83
-D9B8 E68A94
-D9B9 E68B97
-D9BA E68B91
-D9BB E68ABB
-D9BC E68B8F
-D9BD E68BBF
-D9BE E68B86
-D9BF E69394
-D9C0 E68B88
-D9C1 E68B9C
-D9C2 E68B8C
-D9C3 E68B8A
-D9C4 E68B82
-D9C5 E68B87
-D9C6 E68A9B
-D9C7 E68B89
-D9C8 E68C8C
-D9C9 E68BAE
-D9CA E68BB1
-D9CB E68CA7
-D9CC E68C82
-D9CD E68C88
-D9CE E68BAF
-D9CF E68BB5
-D9D0 E68D90
-D9D1 E68CBE
-D9D2 E68D8D
-D9D3 E6909C
-D9D4 E68D8F
-D9D5 E68E96
-D9D6 E68E8E
-D9D7 E68E80
-D9D8 E68EAB
-D9D9 E68DB6
-D9DA E68EA3
-D9DB E68E8F
-D9DC E68E89
-D9DD E68E9F
-D9DE E68EB5
-D9DF E68DAB
-D9E0 E68DA9
-D9E1 E68EBE
-D9E2 E68FA9
-D9E3 E68F80
-D9E4 E68F86
-D9E5 E68FA3
-D9E6 E68F89
-D9E7 E68F92
-D9E8 E68FB6
-D9E9 E68F84
-D9EA E69096
-D9EB E690B4
-D9EC E69086
-D9ED E69093
-D9EE E690A6
-D9EF E690B6
-D9F0 E6949D
-D9F1 E69097
-D9F2 E690A8
-D9F3 E6908F
-D9F4 E691A7
-D9F5 E691AF
-D9F6 E691B6
-D9F7 E6918E
-D9F8 E694AA
-D9F9 E69295
-D9FA E69293
-D9FB E692A5
-D9FC E692A9
-D9FD E69288
-D9FE E692BC
-DAA1 E6939A
-DAA2 E69392
-DAA3 E69385
-DAA4 E69387
-DAA5 E692BB
-DAA6 E69398
-DAA7 E69382
-DAA8 E693B1
-DAA9 E693A7
-DAAA E88889
-DAAB E693A0
-DAAC E693A1
-DAAD E68AAC
-DAAE E693A3
-DAAF E693AF
-DAB0 E694AC
-DAB1 E693B6
-DAB2 E693B4
-DAB3 E693B2
-DAB4 E693BA
-DAB5 E69480
-DAB6 E693BD
-DAB7 E69498
-DAB8 E6949C
-DAB9 E69485
-DABA E694A4
-DABB E694A3
-DABC E694AB
-DABD E694B4
-DABE E694B5
-DABF E694B7
-DAC0 E694B6
-DAC1 E694B8
-DAC2 E7958B
-DAC3 E69588
-DAC4 E69596
-DAC5 E69595
-DAC6 E6958D
-DAC7 E69598
-DAC8 E6959E
-DAC9 E6959D
-DACA E695B2
-DACB E695B8
-DACC E69682
-DACD E69683
-DACE E8AE8A
-DACF E6969B
-DAD0 E6969F
-DAD1 E696AB
-DAD2 E696B7
-DAD3 E69783
-DAD4 E69786
-DAD5 E69781
-DAD6 E69784
-DAD7 E6978C
-DAD8 E69792
-DAD9 E6979B
-DADA E69799
-DADB E697A0
-DADC E697A1
-DADD E697B1
-DADE E69DB2
-DADF E6988A
-DAE0 E69883
-DAE1 E697BB
-DAE2 E69DB3
-DAE3 E698B5
-DAE4 E698B6
-DAE5 E698B4
-DAE6 E6989C
-DAE7 E6998F
-DAE8 E69984
-DAE9 E69989
-DAEA E69981
-DAEB E6999E
-DAEC E6999D
-DAED E699A4
-DAEE E699A7
-DAEF E699A8
-DAF0 E6999F
-DAF1 E699A2
-DAF2 E699B0
-DAF3 E69A83
-DAF4 E69A88
-DAF5 E69A8E
-DAF6 E69A89
-DAF7 E69A84
-DAF8 E69A98
-DAF9 E69A9D
-DAFA E69B81
-DAFB E69AB9
-DAFC E69B89
-DAFD E69ABE
-DAFE E69ABC
-DBA1 E69B84
-DBA2 E69AB8
-DBA3 E69B96
-DBA4 E69B9A
-DBA5 E69BA0
-DBA6 E698BF
-DBA7 E69BA6
-DBA8 E69BA9
-DBA9 E69BB0
-DBAA E69BB5
-DBAB E69BB7
-DBAC E69C8F
-DBAD E69C96
-DBAE E69C9E
-DBAF E69CA6
-DBB0 E69CA7
-DBB1 E99CB8
-DBB2 E69CAE
-DBB3 E69CBF
-DBB4 E69CB6
-DBB5 E69D81
-DBB6 E69CB8
-DBB7 E69CB7
-DBB8 E69D86
-DBB9 E69D9E
-DBBA E69DA0
-DBBB E69D99
-DBBC E69DA3
-DBBD E69DA4
-DBBE E69E89
-DBBF E69DB0
-DBC0 E69EA9
-DBC1 E69DBC
-DBC2 E69DAA
-DBC3 E69E8C
-DBC4 E69E8B
-DBC5 E69EA6
-DBC6 E69EA1
-DBC7 E69E85
-DBC8 E69EB7
-DBC9 E69FAF
-DBCA E69EB4
-DBCB E69FAC
-DBCC E69EB3
-DBCD E69FA9
-DBCE E69EB8
-DBCF E69FA4
-DBD0 E69F9E
-DBD1 E69F9D
-DBD2 E69FA2
-DBD3 E69FAE
-DBD4 E69EB9
-DBD5 E69F8E
-DBD6 E69F86
-DBD7 E69FA7
-DBD8 E6AA9C
-DBD9 E6A09E
-DBDA E6A186
-DBDB E6A0A9
-DBDC E6A180
-DBDD E6A18D
-DBDE E6A0B2
-DBDF E6A18E
-DBE0 E6A2B3
-DBE1 E6A0AB
-DBE2 E6A199
-DBE3 E6A1A3
-DBE4 E6A1B7
-DBE5 E6A1BF
-DBE6 E6A29F
-DBE7 E6A28F
-DBE8 E6A2AD
-DBE9 E6A294
-DBEA E6A29D
-DBEB E6A29B
-DBEC E6A283
-DBED E6AAAE
-DBEE E6A2B9
-DBEF E6A1B4
-DBF0 E6A2B5
-DBF1 E6A2A0
-DBF2 E6A2BA
-DBF3 E6A48F
-DBF4 E6A28D
-DBF5 E6A1BE
-DBF6 E6A481
-DBF7 E6A38A
-DBF8 E6A488
-DBF9 E6A398
-DBFA E6A4A2
-DBFB E6A4A6
-DBFC E6A3A1
-DBFD E6A48C
-DBFE E6A38D
-DCA1 E6A394
-DCA2 E6A3A7
-DCA3 E6A395
-DCA4 E6A4B6
-DCA5 E6A492
-DCA6 E6A484
-DCA7 E6A397
-DCA8 E6A3A3
-DCA9 E6A4A5
-DCAA E6A3B9
-DCAB E6A3A0
-DCAC E6A3AF
-DCAD E6A4A8
-DCAE E6A4AA
-DCAF E6A49A
-DCB0 E6A4A3
-DCB1 E6A4A1
-DCB2 E6A386
-DCB3 E6A5B9
-DCB4 E6A5B7
-DCB5 E6A59C
-DCB6 E6A5B8
-DCB7 E6A5AB
-DCB8 E6A594
-DCB9 E6A5BE
-DCBA E6A5AE
-DCBB E6A4B9
-DCBC E6A5B4
-DCBD E6A4BD
-DCBE E6A599
-DCBF E6A4B0
-DCC0 E6A5A1
-DCC1 E6A59E
-DCC2 E6A59D
-DCC3 E6A681
-DCC4 E6A5AA
-DCC5 E6A6B2
-DCC6 E6A6AE
-DCC7 E6A790
-DCC8 E6A6BF
-DCC9 E6A781
-DCCA E6A793
-DCCB E6A6BE
-DCCC E6A78E
-DCCD E5AFA8
-DCCE E6A78A
-DCCF E6A79D
-DCD0 E6A6BB
-DCD1 E6A783
-DCD2 E6A6A7
-DCD3 E6A8AE
-DCD4 E6A691
-DCD5 E6A6A0
-DCD6 E6A69C
-DCD7 E6A695
-DCD8 E6A6B4
-DCD9 E6A79E
-DCDA E6A7A8
-DCDB E6A882
-DCDC E6A89B
-DCDD E6A7BF
-DCDE E6AC8A
-DCDF E6A7B9
-DCE0 E6A7B2
-DCE1 E6A7A7
-DCE2 E6A885
-DCE3 E6A6B1
-DCE4 E6A89E
-DCE5 E6A7AD
-DCE6 E6A894
-DCE7 E6A7AB
-DCE8 E6A88A
-DCE9 E6A892
-DCEA E6AB81
-DCEB E6A8A3
-DCEC E6A893
-DCED E6A984
-DCEE E6A88C
-DCEF E6A9B2
-DCF0 E6A8B6
-DCF1 E6A9B8
-DCF2 E6A987
-DCF3 E6A9A2
-DCF4 E6A999
-DCF5 E6A9A6
-DCF6 E6A988
-DCF7 E6A8B8
-DCF8 E6A8A2
-DCF9 E6AA90
-DCFA E6AA8D
-DCFB E6AAA0
-DCFC E6AA84
-DCFD E6AAA2
-DCFE E6AAA3
-DDA1 E6AA97
-DDA2 E89897
-DDA3 E6AABB
-DDA4 E6AB83
-DDA5 E6AB82
-DDA6 E6AAB8
-DDA7 E6AAB3
-DDA8 E6AAAC
-DDA9 E6AB9E
-DDAA E6AB91
-DDAB E6AB9F
-DDAC E6AAAA
-DDAD E6AB9A
-DDAE E6ABAA
-DDAF E6ABBB
-DDB0 E6AC85
-DDB1 E89896
-DDB2 E6ABBA
-DDB3 E6AC92
-DDB4 E6AC96
-DDB5 E9ACB1
-DDB6 E6AC9F
-DDB7 E6ACB8
-DDB8 E6ACB7
-DDB9 E79B9C
-DDBA E6ACB9
-DDBB E9A3AE
-DDBC E6AD87
-DDBD E6AD83
-DDBE E6AD89
-DDBF E6AD90
-DDC0 E6AD99
-DDC1 E6AD94
-DDC2 E6AD9B
-DDC3 E6AD9F
-DDC4 E6ADA1
-DDC5 E6ADB8
-DDC6 E6ADB9
-DDC7 E6ADBF
-DDC8 E6AE80
-DDC9 E6AE84
-DDCA E6AE83
-DDCB E6AE8D
-DDCC E6AE98
-DDCD E6AE95
-DDCE E6AE9E
-DDCF E6AEA4
-DDD0 E6AEAA
-DDD1 E6AEAB
-DDD2 E6AEAF
-DDD3 E6AEB2
-DDD4 E6AEB1
-DDD5 E6AEB3
-DDD6 E6AEB7
-DDD7 E6AEBC
-DDD8 E6AF86
-DDD9 E6AF8B
-DDDA E6AF93
-DDDB E6AF9F
-DDDC E6AFAC
-DDDD E6AFAB
-DDDE E6AFB3
-DDDF E6AFAF
-DDE0 E9BABE
-DDE1 E6B088
-DDE2 E6B093
-DDE3 E6B094
-DDE4 E6B09B
-DDE5 E6B0A4
-DDE6 E6B0A3
-DDE7 E6B19E
-DDE8 E6B195
-DDE9 E6B1A2
-DDEA E6B1AA
-DDEB E6B282
-DDEC E6B28D
-DDED E6B29A
-DDEE E6B281
-DDEF E6B29B
-DDF0 E6B1BE
-DDF1 E6B1A8
-DDF2 E6B1B3
-DDF3 E6B292
-DDF4 E6B290
-DDF5 E6B384
-DDF6 E6B3B1
-DDF7 E6B393
-DDF8 E6B2BD
-DDF9 E6B397
-DDFA E6B385
-DDFB E6B39D
-DDFC E6B2AE
-DDFD E6B2B1
-DDFE E6B2BE
-DEA1 E6B2BA
-DEA2 E6B39B
-DEA3 E6B3AF
-DEA4 E6B399
-DEA5 E6B3AA
-DEA6 E6B49F
-DEA7 E8A18D
-DEA8 E6B4B6
-DEA9 E6B4AB
-DEAA E6B4BD
-DEAB E6B4B8
-DEAC E6B499
-DEAD E6B4B5
-DEAE E6B4B3
-DEAF E6B492
-DEB0 E6B48C
-DEB1 E6B5A3
-DEB2 E6B693
-DEB3 E6B5A4
-DEB4 E6B59A
-DEB5 E6B5B9
-DEB6 E6B599
-DEB7 E6B68E
-DEB8 E6B695
-DEB9 E6BFA4
-DEBA E6B685
-DEBB E6B7B9
-DEBC E6B895
-DEBD E6B88A
-DEBE E6B6B5
-DEBF E6B787
-DEC0 E6B7A6
-DEC1 E6B6B8
-DEC2 E6B786
-DEC3 E6B7AC
-DEC4 E6B79E
-DEC5 E6B78C
-DEC6 E6B7A8
-DEC7 E6B792
-DEC8 E6B785
-DEC9 E6B7BA
-DECA E6B799
-DECB E6B7A4
-DECC E6B795
-DECD E6B7AA
-DECE E6B7AE
-DECF E6B8AD
-DED0 E6B9AE
-DED1 E6B8AE
-DED2 E6B899
-DED3 E6B9B2
-DED4 E6B99F
-DED5 E6B8BE
-DED6 E6B8A3
-DED7 E6B9AB
-DED8 E6B8AB
-DED9 E6B9B6
-DEDA E6B98D
-DEDB E6B89F
-DEDC E6B983
-DEDD E6B8BA
-DEDE E6B98E
-DEDF E6B8A4
-DEE0 E6BBBF
-DEE1 E6B89D
-DEE2 E6B8B8
-DEE3 E6BA82
-DEE4 E6BAAA
-DEE5 E6BA98
-DEE6 E6BB89
-DEE7 E6BAB7
-DEE8 E6BB93
-DEE9 E6BABD
-DEEA E6BAAF
-DEEB E6BB84
-DEEC E6BAB2
-DEED E6BB94
-DEEE E6BB95
-DEEF E6BA8F
-DEF0 E6BAA5
-DEF1 E6BB82
-DEF2 E6BA9F
-DEF3 E6BD81
-DEF4 E6BC91
-DEF5 E7818C
-DEF6 E6BBAC
-DEF7 E6BBB8
-DEF8 E6BBBE
-DEF9 E6BCBF
-DEFA E6BBB2
-DEFB E6BCB1
-DEFC E6BBAF
-DEFD E6BCB2
-DEFE E6BB8C
-DFA1 E6BCBE
-DFA2 E6BC93
-DFA3 E6BBB7
-DFA4 E6BE86
-DFA5 E6BDBA
-DFA6 E6BDB8
-DFA7 E6BE81
-DFA8 E6BE80
-DFA9 E6BDAF
-DFAA E6BD9B
-DFAB E6BFB3
-DFAC E6BDAD
-DFAD E6BE82
-DFAE E6BDBC
-DFAF E6BD98
-DFB0 E6BE8E
-DFB1 E6BE91
-DFB2 E6BF82
-DFB3 E6BDA6
-DFB4 E6BEB3
-DFB5 E6BEA3
-DFB6 E6BEA1
-DFB7 E6BEA4
-DFB8 E6BEB9
-DFB9 E6BF86
-DFBA E6BEAA
-DFBB E6BF9F
-DFBC E6BF95
-DFBD E6BFAC
-DFBE E6BF94
-DFBF E6BF98
-DFC0 E6BFB1
-DFC1 E6BFAE
-DFC2 E6BF9B
-DFC3 E78089
-DFC4 E7808B
-DFC5 E6BFBA
-DFC6 E78091
-DFC7 E78081
-DFC8 E7808F
-DFC9 E6BFBE
-DFCA E7809B
-DFCB E7809A
-DFCC E6BDB4
-DFCD E7809D
-DFCE E78098
-DFCF E7809F
-DFD0 E780B0
-DFD1 E780BE
-DFD2 E780B2
-DFD3 E78191
-DFD4 E781A3
-DFD5 E78299
-DFD6 E78292
-DFD7 E782AF
-DFD8 E783B1
-DFD9 E782AC
-DFDA E782B8
-DFDB E782B3
-DFDC E782AE
-DFDD E7839F
-DFDE E7838B
-DFDF E7839D
-DFE0 E78399
-DFE1 E78489
-DFE2 E783BD
-DFE3 E7849C
-DFE4 E78499
-DFE5 E785A5
-DFE6 E78595
-DFE7 E78688
-DFE8 E785A6
-DFE9 E785A2
-DFEA E7858C
-DFEB E78596
-DFEC E785AC
-DFED E7868F
-DFEE E787BB
-DFEF E78684
-DFF0 E78695
-DFF1 E786A8
-DFF2 E786AC
-DFF3 E78797
-DFF4 E786B9
-DFF5 E786BE
-DFF6 E78792
-DFF7 E78789
-DFF8 E78794
-DFF9 E7878E
-DFFA E787A0
-DFFB E787AC
-DFFC E787A7
-DFFD E787B5
-DFFE E787BC
-E0A1 E787B9
-E0A2 E787BF
-E0A3 E7888D
-E0A4 E78890
-E0A5 E7889B
-E0A6 E788A8
-E0A7 E788AD
-E0A8 E788AC
-E0A9 E788B0
-E0AA E788B2
-E0AB E788BB
-E0AC E788BC
-E0AD E788BF
-E0AE E78980
-E0AF E78986
-E0B0 E7898B
-E0B1 E78998
-E0B2 E789B4
-E0B3 E789BE
-E0B4 E78A82
-E0B5 E78A81
-E0B6 E78A87
-E0B7 E78A92
-E0B8 E78A96
-E0B9 E78AA2
-E0BA E78AA7
-E0BB E78AB9
-E0BC E78AB2
-E0BD E78B83
-E0BE E78B86
-E0BF E78B84
-E0C0 E78B8E
-E0C1 E78B92
-E0C2 E78BA2
-E0C3 E78BA0
-E0C4 E78BA1
-E0C5 E78BB9
-E0C6 E78BB7
-E0C7 E5808F
-E0C8 E78C97
-E0C9 E78C8A
-E0CA E78C9C
-E0CB E78C96
-E0CC E78C9D
-E0CD E78CB4
-E0CE E78CAF
-E0CF E78CA9
-E0D0 E78CA5
-E0D1 E78CBE
-E0D2 E78D8E
-E0D3 E78D8F
-E0D4 E9BB98
-E0D5 E78D97
-E0D6 E78DAA
-E0D7 E78DA8
-E0D8 E78DB0
-E0D9 E78DB8
-E0DA E78DB5
-E0DB E78DBB
-E0DC E78DBA
-E0DD E78F88
-E0DE E78EB3
-E0DF E78F8E
-E0E0 E78EBB
-E0E1 E78F80
-E0E2 E78FA5
-E0E3 E78FAE
-E0E4 E78F9E
-E0E5 E792A2
-E0E6 E79085
-E0E7 E791AF
-E0E8 E790A5
-E0E9 E78FB8
-E0EA E790B2
-E0EB E790BA
-E0EC E79195
-E0ED E790BF
-E0EE E7919F
-E0EF E79199
-E0F0 E79181
-E0F1 E7919C
-E0F2 E791A9
-E0F3 E791B0
-E0F4 E791A3
-E0F5 E791AA
-E0F6 E791B6
-E0F7 E791BE
-E0F8 E7928B
-E0F9 E7929E
-E0FA E792A7
-E0FB E7938A
-E0FC E7938F
-E0FD E79394
-E0FE E78FB1
-E1A1 E793A0
-E1A2 E793A3
-E1A3 E793A7
-E1A4 E793A9
-E1A5 E793AE
-E1A6 E793B2
-E1A7 E793B0
-E1A8 E793B1
-E1A9 E793B8
-E1AA E793B7
-E1AB E79484
-E1AC E79483
-E1AD E79485
-E1AE E7948C
-E1AF E7948E
-E1B0 E7948D
-E1B1 E79495
-E1B2 E79493
-E1B3 E7949E
-E1B4 E794A6
-E1B5 E794AC
-E1B6 E794BC
-E1B7 E79584
-E1B8 E7958D
-E1B9 E7958A
-E1BA E79589
-E1BB E7959B
-E1BC E79586
-E1BD E7959A
-E1BE E795A9
-E1BF E795A4
-E1C0 E795A7
-E1C1 E795AB
-E1C2 E795AD
-E1C3 E795B8
-E1C4 E795B6
-E1C5 E79686
-E1C6 E79687
-E1C7 E795B4
-E1C8 E7968A
-E1C9 E79689
-E1CA E79682
-E1CB E79694
-E1CC E7969A
-E1CD E7969D
-E1CE E796A5
-E1CF E796A3
-E1D0 E79782
-E1D1 E796B3
-E1D2 E79783
-E1D3 E796B5
-E1D4 E796BD
-E1D5 E796B8
-E1D6 E796BC
-E1D7 E796B1
-E1D8 E7978D
-E1D9 E7978A
-E1DA E79792
-E1DB E79799
-E1DC E797A3
-E1DD E7979E
-E1DE E797BE
-E1DF E797BF
-E1E0 E797BC
-E1E1 E79881
-E1E2 E797B0
-E1E3 E797BA
-E1E4 E797B2
-E1E5 E797B3
-E1E6 E7988B
-E1E7 E7988D
-E1E8 E79889
-E1E9 E7989F
-E1EA E798A7
-E1EB E798A0
-E1EC E798A1
-E1ED E798A2
-E1EE E798A4
-E1EF E798B4
-E1F0 E798B0
-E1F1 E798BB
-E1F2 E79987
-E1F3 E79988
-E1F4 E79986
-E1F5 E7999C
-E1F6 E79998
-E1F7 E799A1
-E1F8 E799A2
-E1F9 E799A8
-E1FA E799A9
-E1FB E799AA
-E1FC E799A7
-E1FD E799AC
-E1FE E799B0
-E2A1 E799B2
-E2A2 E799B6
-E2A3 E799B8
-E2A4 E799BC
-E2A5 E79A80
-E2A6 E79A83
-E2A7 E79A88
-E2A8 E79A8B
-E2A9 E79A8E
-E2AA E79A96
-E2AB E79A93
-E2AC E79A99
-E2AD E79A9A
-E2AE E79AB0
-E2AF E79AB4
-E2B0 E79AB8
-E2B1 E79AB9
-E2B2 E79ABA
-E2B3 E79B82
-E2B4 E79B8D
-E2B5 E79B96
-E2B6 E79B92
-E2B7 E79B9E
-E2B8 E79BA1
-E2B9 E79BA5
-E2BA E79BA7
-E2BB E79BAA
-E2BC E898AF
-E2BD E79BBB
-E2BE E79C88
-E2BF E79C87
-E2C0 E79C84
-E2C1 E79CA9
-E2C2 E79CA4
-E2C3 E79C9E
-E2C4 E79CA5
-E2C5 E79CA6
-E2C6 E79C9B
-E2C7 E79CB7
-E2C8 E79CB8
-E2C9 E79D87
-E2CA E79D9A
-E2CB E79DA8
-E2CC E79DAB
-E2CD E79D9B
-E2CE E79DA5
-E2CF E79DBF
-E2D0 E79DBE
-E2D1 E79DB9
-E2D2 E79E8E
-E2D3 E79E8B
-E2D4 E79E91
-E2D5 E79EA0
-E2D6 E79E9E
-E2D7 E79EB0
-E2D8 E79EB6
-E2D9 E79EB9
-E2DA E79EBF
-E2DB E79EBC
-E2DC E79EBD
-E2DD E79EBB
-E2DE E79F87
-E2DF E79F8D
-E2E0 E79F97
-E2E1 E79F9A
-E2E2 E79F9C
-E2E3 E79FA3
-E2E4 E79FAE
-E2E5 E79FBC
-E2E6 E7A08C
-E2E7 E7A092
-E2E8 E7A4A6
-E2E9 E7A0A0
-E2EA E7A4AA
-E2EB E7A185
-E2EC E7A28E
-E2ED E7A1B4
-E2EE E7A286
-E2EF E7A1BC
-E2F0 E7A29A
-E2F1 E7A28C
-E2F2 E7A2A3
-E2F3 E7A2B5
-E2F4 E7A2AA
-E2F5 E7A2AF
-E2F6 E7A391
-E2F7 E7A386
-E2F8 E7A38B
-E2F9 E7A394
-E2FA E7A2BE
-E2FB E7A2BC
-E2FC E7A385
-E2FD E7A38A
-E2FE E7A3AC
-E3A1 E7A3A7
-E3A2 E7A39A
-E3A3 E7A3BD
-E3A4 E7A3B4
-E3A5 E7A487
-E3A6 E7A492
-E3A7 E7A491
-E3A8 E7A499
-E3A9 E7A4AC
-E3AA E7A4AB
-E3AB E7A580
-E3AC E7A5A0
-E3AD E7A597
-E3AE E7A59F
-E3AF E7A59A
-E3B0 E7A595
-E3B1 E7A593
-E3B2 E7A5BA
-E3B3 E7A5BF
-E3B4 E7A68A
-E3B5 E7A69D
-E3B6 E7A6A7
-E3B7 E9BD8B
-E3B8 E7A6AA
-E3B9 E7A6AE
-E3BA E7A6B3
-E3BB E7A6B9
-E3BC E7A6BA
-E3BD E7A789
-E3BE E7A795
-E3BF E7A7A7
-E3C0 E7A7AC
-E3C1 E7A7A1
-E3C2 E7A7A3
-E3C3 E7A888
-E3C4 E7A88D
-E3C5 E7A898
-E3C6 E7A899
-E3C7 E7A8A0
-E3C8 E7A89F
-E3C9 E7A680
-E3CA E7A8B1
-E3CB E7A8BB
-E3CC E7A8BE
-E3CD E7A8B7
-E3CE E7A983
-E3CF E7A997
-E3D0 E7A989
-E3D1 E7A9A1
-E3D2 E7A9A2
-E3D3 E7A9A9
-E3D4 E9BE9D
-E3D5 E7A9B0
-E3D6 E7A9B9
-E3D7 E7A9BD
-E3D8 E7AA88
-E3D9 E7AA97
-E3DA E7AA95
-E3DB E7AA98
-E3DC E7AA96
-E3DD E7AAA9
-E3DE E7AB88
-E3DF E7AAB0
-E3E0 E7AAB6
-E3E1 E7AB85
-E3E2 E7AB84
-E3E3 E7AABF
-E3E4 E98283
-E3E5 E7AB87
-E3E6 E7AB8A
-E3E7 E7AB8D
-E3E8 E7AB8F
-E3E9 E7AB95
-E3EA E7AB93
-E3EB E7AB99
-E3EC E7AB9A
-E3ED E7AB9D
-E3EE E7ABA1
-E3EF E7ABA2
-E3F0 E7ABA6
-E3F1 E7ABAD
-E3F2 E7ABB0
-E3F3 E7AC82
-E3F4 E7AC8F
-E3F5 E7AC8A
-E3F6 E7AC86
-E3F7 E7ACB3
-E3F8 E7AC98
-E3F9 E7AC99
-E3FA E7AC9E
-E3FB E7ACB5
-E3FC E7ACA8
-E3FD E7ACB6
-E3FE E7AD90
-E4A1 E7ADBA
-E4A2 E7AC84
-E4A3 E7AD8D
-E4A4 E7AC8B
-E4A5 E7AD8C
-E4A6 E7AD85
-E4A7 E7ADB5
-E4A8 E7ADA5
-E4A9 E7ADB4
-E4AA E7ADA7
-E4AB E7ADB0
-E4AC E7ADB1
-E4AD E7ADAC
-E4AE E7ADAE
-E4AF E7AE9D
-E4B0 E7AE98
-E4B1 E7AE9F
-E4B2 E7AE8D
-E4B3 E7AE9C
-E4B4 E7AE9A
-E4B5 E7AE8B
-E4B6 E7AE92
-E4B7 E7AE8F
-E4B8 E7AD9D
-E4B9 E7AE99
-E4BA E7AF8B
-E4BB E7AF81
-E4BC E7AF8C
-E4BD E7AF8F
-E4BE E7AEB4
-E4BF E7AF86
-E4C0 E7AF9D
-E4C1 E7AFA9
-E4C2 E7B091
-E4C3 E7B094
-E4C4 E7AFA6
-E4C5 E7AFA5
-E4C6 E7B1A0
-E4C7 E7B080
-E4C8 E7B087
-E4C9 E7B093
-E4CA E7AFB3
-E4CB E7AFB7
-E4CC E7B097
-E4CD E7B08D
-E4CE E7AFB6
-E4CF E7B0A3
-E4D0 E7B0A7
-E4D1 E7B0AA
-E4D2 E7B09F
-E4D3 E7B0B7
-E4D4 E7B0AB
-E4D5 E7B0BD
-E4D6 E7B18C
-E4D7 E7B183
-E4D8 E7B194
-E4D9 E7B18F
-E4DA E7B180
-E4DB E7B190
-E4DC E7B198
-E4DD E7B19F
-E4DE E7B1A4
-E4DF E7B196
-E4E0 E7B1A5
-E4E1 E7B1AC
-E4E2 E7B1B5
-E4E3 E7B283
-E4E4 E7B290
-E4E5 E7B2A4
-E4E6 E7B2AD
-E4E7 E7B2A2
-E4E8 E7B2AB
-E4E9 E7B2A1
-E4EA E7B2A8
-E4EB E7B2B3
-E4EC E7B2B2
-E4ED E7B2B1
-E4EE E7B2AE
-E4EF E7B2B9
-E4F0 E7B2BD
-E4F1 E7B380
-E4F2 E7B385
-E4F3 E7B382
-E4F4 E7B398
-E4F5 E7B392
-E4F6 E7B39C
-E4F7 E7B3A2
-E4F8 E9ACBB
-E4F9 E7B3AF
-E4FA E7B3B2
-E4FB E7B3B4
-E4FC E7B3B6
-E4FD E7B3BA
-E4FE E7B486
-E5A1 E7B482
-E5A2 E7B49C
-E5A3 E7B495
-E5A4 E7B48A
-E5A5 E7B585
-E5A6 E7B58B
-E5A7 E7B4AE
-E5A8 E7B4B2
-E5A9 E7B4BF
-E5AA E7B4B5
-E5AB E7B586
-E5AC E7B5B3
-E5AD E7B596
-E5AE E7B58E
-E5AF E7B5B2
-E5B0 E7B5A8
-E5B1 E7B5AE
-E5B2 E7B58F
-E5B3 E7B5A3
-E5B4 E7B693
-E5B5 E7B689
-E5B6 E7B59B
-E5B7 E7B68F
-E5B8 E7B5BD
-E5B9 E7B69B
-E5BA E7B6BA
-E5BB E7B6AE
-E5BC E7B6A3
-E5BD E7B6B5
-E5BE E7B787
-E5BF E7B6BD
-E5C0 E7B6AB
-E5C1 E7B8BD
-E5C2 E7B6A2
-E5C3 E7B6AF
-E5C4 E7B79C
-E5C5 E7B6B8
-E5C6 E7B69F
-E5C7 E7B6B0
-E5C8 E7B798
-E5C9 E7B79D
-E5CA E7B7A4
-E5CB E7B79E
-E5CC E7B7BB
-E5CD E7B7B2
-E5CE E7B7A1
-E5CF E7B885
-E5D0 E7B88A
-E5D1 E7B8A3
-E5D2 E7B8A1
-E5D3 E7B892
-E5D4 E7B8B1
-E5D5 E7B89F
-E5D6 E7B889
-E5D7 E7B88B
-E5D8 E7B8A2
-E5D9 E7B986
-E5DA E7B9A6
-E5DB E7B8BB
-E5DC E7B8B5
-E5DD E7B8B9
-E5DE E7B983
-E5DF E7B8B7
-E5E0 E7B8B2
-E5E1 E7B8BA
-E5E2 E7B9A7
-E5E3 E7B99D
-E5E4 E7B996
-E5E5 E7B99E
-E5E6 E7B999
-E5E7 E7B99A
-E5E8 E7B9B9
-E5E9 E7B9AA
-E5EA E7B9A9
-E5EB E7B9BC
-E5EC E7B9BB
-E5ED E7BA83
-E5EE E7B795
-E5EF E7B9BD
-E5F0 E8BEAE
-E5F1 E7B9BF
-E5F2 E7BA88
-E5F3 E7BA89
-E5F4 E7BA8C
-E5F5 E7BA92
-E5F6 E7BA90
-E5F7 E7BA93
-E5F8 E7BA94
-E5F9 E7BA96
-E5FA E7BA8E
-E5FB E7BA9B
-E5FC E7BA9C
-E5FD E7BCB8
-E5FE E7BCBA
-E6A1 E7BD85
-E6A2 E7BD8C
-E6A3 E7BD8D
-E6A4 E7BD8E
-E6A5 E7BD90
-E6A6 E7BD91
-E6A7 E7BD95
-E6A8 E7BD94
-E6A9 E7BD98
-E6AA E7BD9F
-E6AB E7BDA0
-E6AC E7BDA8
-E6AD E7BDA9
-E6AE E7BDA7
-E6AF E7BDB8
-E6B0 E7BE82
-E6B1 E7BE86
-E6B2 E7BE83
-E6B3 E7BE88
-E6B4 E7BE87
-E6B5 E7BE8C
-E6B6 E7BE94
-E6B7 E7BE9E
-E6B8 E7BE9D
-E6B9 E7BE9A
-E6BA E7BEA3
-E6BB E7BEAF
-E6BC E7BEB2
-E6BD E7BEB9
-E6BE E7BEAE
-E6BF E7BEB6
-E6C0 E7BEB8
-E6C1 E8ADB1
-E6C2 E7BF85
-E6C3 E7BF86
-E6C4 E7BF8A
-E6C5 E7BF95
-E6C6 E7BF94
-E6C7 E7BFA1
-E6C8 E7BFA6
-E6C9 E7BFA9
-E6CA E7BFB3
-E6CB E7BFB9
-E6CC E9A39C
-E6CD E88086
-E6CE E88084
-E6CF E8808B
-E6D0 E88092
-E6D1 E88098
-E6D2 E88099
-E6D3 E8809C
-E6D4 E880A1
-E6D5 E880A8
-E6D6 E880BF
-E6D7 E880BB
-E6D8 E8818A
-E6D9 E88186
-E6DA E88192
-E6DB E88198
-E6DC E8819A
-E6DD E8819F
-E6DE E881A2
-E6DF E881A8
-E6E0 E881B3
-E6E1 E881B2
-E6E2 E881B0
-E6E3 E881B6
-E6E4 E881B9
-E6E5 E881BD
-E6E6 E881BF
-E6E7 E88284
-E6E8 E88286
-E6E9 E88285
-E6EA E8829B
-E6EB E88293
-E6EC E8829A
-E6ED E882AD
-E6EE E58690
-E6EF E882AC
-E6F0 E8839B
-E6F1 E883A5
-E6F2 E88399
-E6F3 E8839D
-E6F4 E88384
-E6F5 E8839A
-E6F6 E88396
-E6F7 E88489
-E6F8 E883AF
-E6F9 E883B1
-E6FA E8849B
-E6FB E884A9
-E6FC E884A3
-E6FD E884AF
-E6FE E8858B
-E7A1 E99A8B
-E7A2 E88586
-E7A3 E884BE
-E7A4 E88593
-E7A5 E88591
-E7A6 E883BC
-E7A7 E885B1
-E7A8 E885AE
-E7A9 E885A5
-E7AA E885A6
-E7AB E885B4
-E7AC E88683
-E7AD E88688
-E7AE E8868A
-E7AF E88680
-E7B0 E88682
-E7B1 E886A0
-E7B2 E88695
-E7B3 E886A4
-E7B4 E886A3
-E7B5 E8859F
-E7B6 E88693
-E7B7 E886A9
-E7B8 E886B0
-E7B9 E886B5
-E7BA E886BE
-E7BB E886B8
-E7BC E886BD
-E7BD E88780
-E7BE E88782
-E7BF E886BA
-E7C0 E88789
-E7C1 E8878D
-E7C2 E88791
-E7C3 E88799
-E7C4 E88798
-E7C5 E88788
-E7C6 E8879A
-E7C7 E8879F
-E7C8 E887A0
-E7C9 E887A7
-E7CA E887BA
-E7CB E887BB
-E7CC E887BE
-E7CD E88881
-E7CE E88882
-E7CF E88885
-E7D0 E88887
-E7D1 E8888A
-E7D2 E8888D
-E7D3 E88890
-E7D4 E88896
-E7D5 E888A9
-E7D6 E888AB
-E7D7 E888B8
-E7D8 E888B3
-E7D9 E88980
-E7DA E88999
-E7DB E88998
-E7DC E8899D
-E7DD E8899A
-E7DE E8899F
-E7DF E889A4
-E7E0 E889A2
-E7E1 E889A8
-E7E2 E889AA
-E7E3 E889AB
-E7E4 E888AE
-E7E5 E889B1
-E7E6 E889B7
-E7E7 E889B8
-E7E8 E889BE
-E7E9 E88A8D
-E7EA E88A92
-E7EB E88AAB
-E7EC E88A9F
-E7ED E88ABB
-E7EE E88AAC
-E7EF E88BA1
-E7F0 E88BA3
-E7F1 E88B9F
-E7F2 E88B92
-E7F3 E88BB4
-E7F4 E88BB3
-E7F5 E88BBA
-E7F6 E88E93
-E7F7 E88C83
-E7F8 E88BBB
-E7F9 E88BB9
-E7FA E88B9E
-E7FB E88C86
-E7FC E88B9C
-E7FD E88C89
-E7FE E88B99
-E8A1 E88CB5
-E8A2 E88CB4
-E8A3 E88C96
-E8A4 E88CB2
-E8A5 E88CB1
-E8A6 E88D80
-E8A7 E88CB9
-E8A8 E88D90
-E8A9 E88D85
-E8AA E88CAF
-E8AB E88CAB
-E8AC E88C97
-E8AD E88C98
-E8AE E88E85
-E8AF E88E9A
-E8B0 E88EAA
-E8B1 E88E9F
-E8B2 E88EA2
-E8B3 E88E96
-E8B4 E88CA3
-E8B5 E88E8E
-E8B6 E88E87
-E8B7 E88E8A
-E8B8 E88DBC
-E8B9 E88EB5
-E8BA E88DB3
-E8BB E88DB5
-E8BC E88EA0
-E8BD E88E89
-E8BE E88EA8
-E8BF E88FB4
-E8C0 E89093
-E8C1 E88FAB
-E8C2 E88F8E
-E8C3 E88FBD
-E8C4 E89083
-E8C5 E88F98
-E8C6 E8908B
-E8C7 E88F81
-E8C8 E88FB7
-E8C9 E89087
-E8CA E88FA0
-E8CB E88FB2
-E8CC E8908D
-E8CD E890A2
-E8CE E890A0
-E8CF E88EBD
-E8D0 E890B8
-E8D1 E89486
-E8D2 E88FBB
-E8D3 E891AD
-E8D4 E890AA
-E8D5 E890BC
-E8D6 E8959A
-E8D7 E89284
-E8D8 E891B7
-E8D9 E891AB
-E8DA E892AD
-E8DB E891AE
-E8DC E89282
-E8DD E891A9
-E8DE E89186
-E8DF E890AC
-E8E0 E891AF
-E8E1 E891B9
-E8E2 E890B5
-E8E3 E8938A
-E8E4 E891A2
-E8E5 E892B9
-E8E6 E892BF
-E8E7 E8929F
-E8E8 E89399
-E8E9 E8938D
-E8EA E892BB
-E8EB E8939A
-E8EC E89390
-E8ED E89381
-E8EE E89386
-E8EF E89396
-E8F0 E892A1
-E8F1 E894A1
-E8F2 E893BF
-E8F3 E893B4
-E8F4 E89497
-E8F5 E89498
-E8F6 E894AC
-E8F7 E8949F
-E8F8 E89495
-E8F9 E89494
-E8FA E893BC
-E8FB E89580
-E8FC E895A3
-E8FD E89598
-E8FE E89588
-E9A1 E89581
-E9A2 E89882
-E9A3 E8958B
-E9A4 E89595
-E9A5 E89680
-E9A6 E896A4
-E9A7 E89688
-E9A8 E89691
-E9A9 E8968A
-E9AA E896A8
-E9AB E895AD
-E9AC E89694
-E9AD E8969B
-E9AE E897AA
-E9AF E89687
-E9B0 E8969C
-E9B1 E895B7
-E9B2 E895BE
-E9B3 E89690
-E9B4 E89789
-E9B5 E896BA
-E9B6 E8978F
-E9B7 E896B9
-E9B8 E89790
-E9B9 E89795
-E9BA E8979D
-E9BB E897A5
-E9BC E8979C
-E9BD E897B9
-E9BE E8988A
-E9BF E89893
-E9C0 E8988B
-E9C1 E897BE
-E9C2 E897BA
-E9C3 E89886
-E9C4 E898A2
-E9C5 E8989A
-E9C6 E898B0
-E9C7 E898BF
-E9C8 E8998D
-E9C9 E4B995
-E9CA E89994
-E9CB E8999F
-E9CC E899A7
-E9CD E899B1
-E9CE E89A93
-E9CF E89AA3
-E9D0 E89AA9
-E9D1 E89AAA
-E9D2 E89A8B
-E9D3 E89A8C
-E9D4 E89AB6
-E9D5 E89AAF
-E9D6 E89B84
-E9D7 E89B86
-E9D8 E89AB0
-E9D9 E89B89
-E9DA E8A0A3
-E9DB E89AAB
-E9DC E89B94
-E9DD E89B9E
-E9DE E89BA9
-E9DF E89BAC
-E9E0 E89B9F
-E9E1 E89B9B
-E9E2 E89BAF
-E9E3 E89C92
-E9E4 E89C86
-E9E5 E89C88
-E9E6 E89C80
-E9E7 E89C83
-E9E8 E89BBB
-E9E9 E89C91
-E9EA E89C89
-E9EB E89C8D
-E9EC E89BB9
-E9ED E89C8A
-E9EE E89CB4
-E9EF E89CBF
-E9F0 E89CB7
-E9F1 E89CBB
-E9F2 E89CA5
-E9F3 E89CA9
-E9F4 E89C9A
-E9F5 E89DA0
-E9F6 E89D9F
-E9F7 E89DB8
-E9F8 E89D8C
-E9F9 E89D8E
-E9FA E89DB4
-E9FB E89D97
-E9FC E89DA8
-E9FD E89DAE
-E9FE E89D99
-EAA1 E89D93
-EAA2 E89DA3
-EAA3 E89DAA
-EAA4 E8A085
-EAA5 E89EA2
-EAA6 E89E9F
-EAA7 E89E82
-EAA8 E89EAF
-EAA9 E89F8B
-EAAA E89EBD
-EAAB E89F80
-EAAC E89F90
-EAAD E99B96
-EAAE E89EAB
-EAAF E89F84
-EAB0 E89EB3
-EAB1 E89F87
-EAB2 E89F86
-EAB3 E89EBB
-EAB4 E89FAF
-EAB5 E89FB2
-EAB6 E89FA0
-EAB7 E8A08F
-EAB8 E8A08D
-EAB9 E89FBE
-EABA E89FB6
-EABB E89FB7
-EABC E8A08E
-EABD E89F92
-EABE E8A091
-EABF E8A096
-EAC0 E8A095
-EAC1 E8A0A2
-EAC2 E8A0A1
-EAC3 E8A0B1
-EAC4 E8A0B6
-EAC5 E8A0B9
-EAC6 E8A0A7
-EAC7 E8A0BB
-EAC8 E8A184
-EAC9 E8A182
-EACA E8A192
-EACB E8A199
-EACC E8A19E
-EACD E8A1A2
-EACE E8A1AB
-EACF E8A281
-EAD0 E8A1BE
-EAD1 E8A29E
-EAD2 E8A1B5
-EAD3 E8A1BD
-EAD4 E8A2B5
-EAD5 E8A1B2
-EAD6 E8A282
-EAD7 E8A297
-EAD8 E8A292
-EAD9 E8A2AE
-EADA E8A299
-EADB E8A2A2
-EADC E8A28D
-EADD E8A2A4
-EADE E8A2B0
-EADF E8A2BF
-EAE0 E8A2B1
-EAE1 E8A383
-EAE2 E8A384
-EAE3 E8A394
-EAE4 E8A398
-EAE5 E8A399
-EAE6 E8A39D
-EAE7 E8A3B9
-EAE8 E8A482
-EAE9 E8A3BC
-EAEA E8A3B4
-EAEB E8A3A8
-EAEC E8A3B2
-EAED E8A484
-EAEE E8A48C
-EAEF E8A48A
-EAF0 E8A493
-EAF1 E8A583
-EAF2 E8A49E
-EAF3 E8A4A5
-EAF4 E8A4AA
-EAF5 E8A4AB
-EAF6 E8A581
-EAF7 E8A584
-EAF8 E8A4BB
-EAF9 E8A4B6
-EAFA E8A4B8
-EAFB E8A58C
-EAFC E8A49D
-EAFD E8A5A0
-EAFE E8A59E
-EBA1 E8A5A6
-EBA2 E8A5A4
-EBA3 E8A5AD
-EBA4 E8A5AA
-EBA5 E8A5AF
-EBA6 E8A5B4
-EBA7 E8A5B7
-EBA8 E8A5BE
-EBA9 E8A683
-EBAA E8A688
-EBAB E8A68A
-EBAC E8A693
-EBAD E8A698
-EBAE E8A6A1
-EBAF E8A6A9
-EBB0 E8A6A6
-EBB1 E8A6AC
-EBB2 E8A6AF
-EBB3 E8A6B2
-EBB4 E8A6BA
-EBB5 E8A6BD
-EBB6 E8A6BF
-EBB7 E8A780
-EBB8 E8A79A
-EBB9 E8A79C
-EBBA E8A79D
-EBBB E8A7A7
-EBBC E8A7B4
-EBBD E8A7B8
-EBBE E8A883
-EBBF E8A896
-EBC0 E8A890
-EBC1 E8A88C
-EBC2 E8A89B
-EBC3 E8A89D
-EBC4 E8A8A5
-EBC5 E8A8B6
-EBC6 E8A981
-EBC7 E8A99B
-EBC8 E8A992
-EBC9 E8A986
-EBCA E8A988
-EBCB E8A9BC
-EBCC E8A9AD
-EBCD E8A9AC
-EBCE E8A9A2
-EBCF E8AA85
-EBD0 E8AA82
-EBD1 E8AA84
-EBD2 E8AAA8
-EBD3 E8AAA1
-EBD4 E8AA91
-EBD5 E8AAA5
-EBD6 E8AAA6
-EBD7 E8AA9A
-EBD8 E8AAA3
-EBD9 E8AB84
-EBDA E8AB8D
-EBDB E8AB82
-EBDC E8AB9A
-EBDD E8ABAB
-EBDE E8ABB3
-EBDF E8ABA7
-EBE0 E8ABA4
-EBE1 E8ABB1
-EBE2 E8AC94
-EBE3 E8ABA0
-EBE4 E8ABA2
-EBE5 E8ABB7
-EBE6 E8AB9E
-EBE7 E8AB9B
-EBE8 E8AC8C
-EBE9 E8AC87
-EBEA E8AC9A
-EBEB E8ABA1
-EBEC E8AC96
-EBED E8AC90
-EBEE E8AC97
-EBEF E8ACA0
-EBF0 E8ACB3
-EBF1 E99EAB
-EBF2 E8ACA6
-EBF3 E8ACAB
-EBF4 E8ACBE
-EBF5 E8ACA8
-EBF6 E8AD81
-EBF7 E8AD8C
-EBF8 E8AD8F
-EBF9 E8AD8E
-EBFA E8AD89
-EBFB E8AD96
-EBFC E8AD9B
-EBFD E8AD9A
-EBFE E8ADAB
-ECA1 E8AD9F
-ECA2 E8ADAC
-ECA3 E8ADAF
-ECA4 E8ADB4
-ECA5 E8ADBD
-ECA6 E8AE80
-ECA7 E8AE8C
-ECA8 E8AE8E
-ECA9 E8AE92
-ECAA E8AE93
-ECAB E8AE96
-ECAC E8AE99
-ECAD E8AE9A
-ECAE E8B0BA
-ECAF E8B181
-ECB0 E8B0BF
-ECB1 E8B188
-ECB2 E8B18C
-ECB3 E8B18E
-ECB4 E8B190
-ECB5 E8B195
-ECB6 E8B1A2
-ECB7 E8B1AC
-ECB8 E8B1B8
-ECB9 E8B1BA
-ECBA E8B282
-ECBB E8B289
-ECBC E8B285
-ECBD E8B28A
-ECBE E8B28D
-ECBF E8B28E
-ECC0 E8B294
-ECC1 E8B1BC
-ECC2 E8B298
-ECC3 E6889D
-ECC4 E8B2AD
-ECC5 E8B2AA
-ECC6 E8B2BD
-ECC7 E8B2B2
-ECC8 E8B2B3
-ECC9 E8B2AE
-ECCA E8B2B6
-ECCB E8B388
-ECCC E8B381
-ECCD E8B3A4
-ECCE E8B3A3
-ECCF E8B39A
-ECD0 E8B3BD
-ECD1 E8B3BA
-ECD2 E8B3BB
-ECD3 E8B484
-ECD4 E8B485
-ECD5 E8B48A
-ECD6 E8B487
-ECD7 E8B48F
-ECD8 E8B48D
-ECD9 E8B490
-ECDA E9BD8E
-ECDB E8B493
-ECDC E8B38D
-ECDD E8B494
-ECDE E8B496
-ECDF E8B5A7
-ECE0 E8B5AD
-ECE1 E8B5B1
-ECE2 E8B5B3
-ECE3 E8B681
-ECE4 E8B699
-ECE5 E8B782
-ECE6 E8B6BE
-ECE7 E8B6BA
-ECE8 E8B78F
-ECE9 E8B79A
-ECEA E8B796
-ECEB E8B78C
-ECEC E8B79B
-ECED E8B78B
-ECEE E8B7AA
-ECEF E8B7AB
-ECF0 E8B79F
-ECF1 E8B7A3
-ECF2 E8B7BC
-ECF3 E8B888
-ECF4 E8B889
-ECF5 E8B7BF
-ECF6 E8B89D
-ECF7 E8B89E
-ECF8 E8B890
-ECF9 E8B89F
-ECFA E8B982
-ECFB E8B8B5
-ECFC E8B8B0
-ECFD E8B8B4
-ECFE E8B98A
-EDA1 E8B987
-EDA2 E8B989
-EDA3 E8B98C
-EDA4 E8B990
-EDA5 E8B988
-EDA6 E8B999
-EDA7 E8B9A4
-EDA8 E8B9A0
-EDA9 E8B8AA
-EDAA E8B9A3
-EDAB E8B995
-EDAC E8B9B6
-EDAD E8B9B2
-EDAE E8B9BC
-EDAF E8BA81
-EDB0 E8BA87
-EDB1 E8BA85
-EDB2 E8BA84
-EDB3 E8BA8B
-EDB4 E8BA8A
-EDB5 E8BA93
-EDB6 E8BA91
-EDB7 E8BA94
-EDB8 E8BA99
-EDB9 E8BAAA
-EDBA E8BAA1
-EDBB E8BAAC
-EDBC E8BAB0
-EDBD E8BB86
-EDBE E8BAB1
-EDBF E8BABE
-EDC0 E8BB85
-EDC1 E8BB88
-EDC2 E8BB8B
-EDC3 E8BB9B
-EDC4 E8BBA3
-EDC5 E8BBBC
-EDC6 E8BBBB
-EDC7 E8BBAB
-EDC8 E8BBBE
-EDC9 E8BC8A
-EDCA E8BC85
-EDCB E8BC95
-EDCC E8BC92
-EDCD E8BC99
-EDCE E8BC93
-EDCF E8BC9C
-EDD0 E8BC9F
-EDD1 E8BC9B
-EDD2 E8BC8C
-EDD3 E8BCA6
-EDD4 E8BCB3
-EDD5 E8BCBB
-EDD6 E8BCB9
-EDD7 E8BD85
-EDD8 E8BD82
-EDD9 E8BCBE
-EDDA E8BD8C
-EDDB E8BD89
-EDDC E8BD86
-EDDD E8BD8E
-EDDE E8BD97
-EDDF E8BD9C
-EDE0 E8BDA2
-EDE1 E8BDA3
-EDE2 E8BDA4
-EDE3 E8BE9C
-EDE4 E8BE9F
-EDE5 E8BEA3
-EDE6 E8BEAD
-EDE7 E8BEAF
-EDE8 E8BEB7
-EDE9 E8BF9A
-EDEA E8BFA5
-EDEB E8BFA2
-EDEC E8BFAA
-EDED E8BFAF
-EDEE E98287
-EDEF E8BFB4
-EDF0 E98085
-EDF1 E8BFB9
-EDF2 E8BFBA
-EDF3 E98091
-EDF4 E98095
-EDF5 E980A1
-EDF6 E9808D
-EDF7 E9809E
-EDF8 E98096
-EDF9 E9808B
-EDFA E980A7
-EDFB E980B6
-EDFC E980B5
-EDFD E980B9
-EDFE E8BFB8
-EEA1 E9818F
-EEA2 E98190
-EEA3 E98191
-EEA4 E98192
-EEA5 E9808E
-EEA6 E98189
-EEA7 E980BE
-EEA8 E98196
-EEA9 E98198
-EEAA E9819E
-EEAB E981A8
-EEAC E981AF
-EEAD E981B6
-EEAE E99AA8
-EEAF E981B2
-EEB0 E98282
-EEB1 E981BD
-EEB2 E98281
-EEB3 E98280
-EEB4 E9828A
-EEB5 E98289
-EEB6 E9828F
-EEB7 E982A8
-EEB8 E982AF
-EEB9 E982B1
-EEBA E982B5
-EEBB E983A2
-EEBC E983A4
-EEBD E68988
-EEBE E9839B
-EEBF E98482
-EEC0 E98492
-EEC1 E98499
-EEC2 E984B2
-EEC3 E984B0
-EEC4 E9858A
-EEC5 E98596
-EEC6 E98598
-EEC7 E985A3
-EEC8 E985A5
-EEC9 E985A9
-EECA E985B3
-EECB E985B2
-EECC E9868B
-EECD E98689
-EECE E98682
-EECF E986A2
-EED0 E986AB
-EED1 E986AF
-EED2 E986AA
-EED3 E986B5
-EED4 E986B4
-EED5 E986BA
-EED6 E98780
-EED7 E98781
-EED8 E98789
-EED9 E9878B
-EEDA E98790
-EEDB E98796
-EEDC E9879F
-EEDD E987A1
-EEDE E9879B
-EEDF E987BC
-EEE0 E987B5
-EEE1 E987B6
-EEE2 E9889E
-EEE3 E987BF
-EEE4 E98894
-EEE5 E988AC
-EEE6 E98895
-EEE7 E98891
-EEE8 E9899E
-EEE9 E98997
-EEEA E98985
-EEEB E98989
-EEEC E989A4
-EEED E98988
-EEEE E98A95
-EEEF E988BF
-EEF0 E9898B
-EEF1 E98990
-EEF2 E98A9C
-EEF3 E98A96
-EEF4 E98A93
-EEF5 E98A9B
-EEF6 E9899A
-EEF7 E98B8F
-EEF8 E98AB9
-EEF9 E98AB7
-EEFA E98BA9
-EEFB E98C8F
-EEFC E98BBA
-EEFD E98D84
-EEFE E98CAE
-EFA1 E98C99
-EFA2 E98CA2
-EFA3 E98C9A
-EFA4 E98CA3
-EFA5 E98CBA
-EFA6 E98CB5
-EFA7 E98CBB
-EFA8 E98D9C
-EFA9 E98DA0
-EFAA E98DBC
-EFAB E98DAE
-EFAC E98D96
-EFAD E98EB0
-EFAE E98EAC
-EFAF E98EAD
-EFB0 E98E94
-EFB1 E98EB9
-EFB2 E98F96
-EFB3 E98F97
-EFB4 E98FA8
-EFB5 E98FA5
-EFB6 E98F98
-EFB7 E98F83
-EFB8 E98F9D
-EFB9 E98F90
-EFBA E98F88
-EFBB E98FA4
-EFBC E9909A
-EFBD E99094
-EFBE E99093
-EFBF E99083
-EFC0 E99087
-EFC1 E99090
-EFC2 E990B6
-EFC3 E990AB
-EFC4 E990B5
-EFC5 E990A1
-EFC6 E990BA
-EFC7 E99181
-EFC8 E99192
-EFC9 E99184
-EFCA E9919B
-EFCB E991A0
-EFCC E991A2
-EFCD E9919E
-EFCE E991AA
-EFCF E988A9
-EFD0 E991B0
-EFD1 E991B5
-EFD2 E991B7
-EFD3 E991BD
-EFD4 E9919A
-EFD5 E991BC
-EFD6 E991BE
-EFD7 E99281
-EFD8 E991BF
-EFD9 E99682
-EFDA E99687
-EFDB E9968A
-EFDC E99694
-EFDD E99696
-EFDE E99698
-EFDF E99699
-EFE0 E996A0
-EFE1 E996A8
-EFE2 E996A7
-EFE3 E996AD
-EFE4 E996BC
-EFE5 E996BB
-EFE6 E996B9
-EFE7 E996BE
-EFE8 E9978A
-EFE9 E6BFB6
-EFEA E99783
-EFEB E9978D
-EFEC E9978C
-EFED E99795
-EFEE E99794
-EFEF E99796
-EFF0 E9979C
-EFF1 E997A1
-EFF2 E997A5
-EFF3 E997A2
-EFF4 E998A1
-EFF5 E998A8
-EFF6 E998AE
-EFF7 E998AF
-EFF8 E99982
-EFF9 E9998C
-EFFA E9998F
-EFFB E9998B
-EFFC E999B7
-EFFD E9999C
-EFFE E9999E
-F0A1 E9999D
-F0A2 E9999F
-F0A3 E999A6
-F0A4 E999B2
-F0A5 E999AC
-F0A6 E99A8D
-F0A7 E99A98
-F0A8 E99A95
-F0A9 E99A97
-F0AA E99AAA
-F0AB E99AA7
-F0AC E99AB1
-F0AD E99AB2
-F0AE E99AB0
-F0AF E99AB4
-F0B0 E99AB6
-F0B1 E99AB8
-F0B2 E99AB9
-F0B3 E99B8E
-F0B4 E99B8B
-F0B5 E99B89
-F0B6 E99B8D
-F0B7 E8A58D
-F0B8 E99B9C
-F0B9 E99C8D
-F0BA E99B95
-F0BB E99BB9
-F0BC E99C84
-F0BD E99C86
-F0BE E99C88
-F0BF E99C93
-F0C0 E99C8E
-F0C1 E99C91
-F0C2 E99C8F
-F0C3 E99C96
-F0C4 E99C99
-F0C5 E99CA4
-F0C6 E99CAA
-F0C7 E99CB0
-F0C8 E99CB9
-F0C9 E99CBD
-F0CA E99CBE
-F0CB E99D84
-F0CC E99D86
-F0CD E99D88
-F0CE E99D82
-F0CF E99D89
-F0D0 E99D9C
-F0D1 E99DA0
-F0D2 E99DA4
-F0D3 E99DA6
-F0D4 E99DA8
-F0D5 E58B92
-F0D6 E99DAB
-F0D7 E99DB1
-F0D8 E99DB9
-F0D9 E99E85
-F0DA E99DBC
-F0DB E99E81
-F0DC E99DBA
-F0DD E99E86
-F0DE E99E8B
-F0DF E99E8F
-F0E0 E99E90
-F0E1 E99E9C
-F0E2 E99EA8
-F0E3 E99EA6
-F0E4 E99EA3
-F0E5 E99EB3
-F0E6 E99EB4
-F0E7 E99F83
-F0E8 E99F86
-F0E9 E99F88
-F0EA E99F8B
-F0EB E99F9C
-F0EC E99FAD
-F0ED E9BD8F
-F0EE E99FB2
-F0EF E7AB9F
-F0F0 E99FB6
-F0F1 E99FB5
-F0F2 E9A08F
-F0F3 E9A08C
-F0F4 E9A0B8
-F0F5 E9A0A4
-F0F6 E9A0A1
-F0F7 E9A0B7
-F0F8 E9A0BD
-F0F9 E9A186
-F0FA E9A18F
-F0FB E9A18B
-F0FC E9A1AB
-F0FD E9A1AF
-F0FE E9A1B0
-F1A1 E9A1B1
-F1A2 E9A1B4
-F1A3 E9A1B3
-F1A4 E9A2AA
-F1A5 E9A2AF
-F1A6 E9A2B1
-F1A7 E9A2B6
-F1A8 E9A384
-F1A9 E9A383
-F1AA E9A386
-F1AB E9A3A9
-F1AC E9A3AB
-F1AD E9A483
-F1AE E9A489
-F1AF E9A492
-F1B0 E9A494
-F1B1 E9A498
-F1B2 E9A4A1
-F1B3 E9A49D
-F1B4 E9A49E
-F1B5 E9A4A4
-F1B6 E9A4A0
-F1B7 E9A4AC
-F1B8 E9A4AE
-F1B9 E9A4BD
-F1BA E9A4BE
-F1BB E9A582
-F1BC E9A589
-F1BD E9A585
-F1BE E9A590
-F1BF E9A58B
-F1C0 E9A591
-F1C1 E9A592
-F1C2 E9A58C
-F1C3 E9A595
-F1C4 E9A697
-F1C5 E9A698
-F1C6 E9A6A5
-F1C7 E9A6AD
-F1C8 E9A6AE
-F1C9 E9A6BC
-F1CA E9A79F
-F1CB E9A79B
-F1CC E9A79D
-F1CD E9A798
-F1CE E9A791
-F1CF E9A7AD
-F1D0 E9A7AE
-F1D1 E9A7B1
-F1D2 E9A7B2
-F1D3 E9A7BB
-F1D4 E9A7B8
-F1D5 E9A881
-F1D6 E9A88F
-F1D7 E9A885
-F1D8 E9A7A2
-F1D9 E9A899
-F1DA E9A8AB
-F1DB E9A8B7
-F1DC E9A985
-F1DD E9A982
-F1DE E9A980
-F1DF E9A983
-F1E0 E9A8BE
-F1E1 E9A995
-F1E2 E9A98D
-F1E3 E9A99B
-F1E4 E9A997
-F1E5 E9A99F
-F1E6 E9A9A2
-F1E7 E9A9A5
-F1E8 E9A9A4
-F1E9 E9A9A9
-F1EA E9A9AB
-F1EB E9A9AA
-F1EC E9AAAD
-F1ED E9AAB0
-F1EE E9AABC
-F1EF E9AB80
-F1F0 E9AB8F
-F1F1 E9AB91
-F1F2 E9AB93
-F1F3 E9AB94
-F1F4 E9AB9E
-F1F5 E9AB9F
-F1F6 E9ABA2
-F1F7 E9ABA3
-F1F8 E9ABA6
-F1F9 E9ABAF
-F1FA E9ABAB
-F1FB E9ABAE
-F1FC E9ABB4
-F1FD E9ABB1
-F1FE E9ABB7
-F2A1 E9ABBB
-F2A2 E9AC86
-F2A3 E9AC98
-F2A4 E9AC9A
-F2A5 E9AC9F
-F2A6 E9ACA2
-F2A7 E9ACA3
-F2A8 E9ACA5
-F2A9 E9ACA7
-F2AA E9ACA8
-F2AB E9ACA9
-F2AC E9ACAA
-F2AD E9ACAE
-F2AE E9ACAF
-F2AF E9ACB2
-F2B0 E9AD84
-F2B1 E9AD83
-F2B2 E9AD8F
-F2B3 E9AD8D
-F2B4 E9AD8E
-F2B5 E9AD91
-F2B6 E9AD98
-F2B7 E9ADB4
-F2B8 E9AE93
-F2B9 E9AE83
-F2BA E9AE91
-F2BB E9AE96
-F2BC E9AE97
-F2BD E9AE9F
-F2BE E9AEA0
-F2BF E9AEA8
-F2C0 E9AEB4
-F2C1 E9AF80
-F2C2 E9AF8A
-F2C3 E9AEB9
-F2C4 E9AF86
-F2C5 E9AF8F
-F2C6 E9AF91
-F2C7 E9AF92
-F2C8 E9AFA3
-F2C9 E9AFA2
-F2CA E9AFA4
-F2CB E9AF94
-F2CC E9AFA1
-F2CD E9B0BA
-F2CE E9AFB2
-F2CF E9AFB1
-F2D0 E9AFB0
-F2D1 E9B095
-F2D2 E9B094
-F2D3 E9B089
-F2D4 E9B093
-F2D5 E9B08C
-F2D6 E9B086
-F2D7 E9B088
-F2D8 E9B092
-F2D9 E9B08A
-F2DA E9B084
-F2DB E9B0AE
-F2DC E9B09B
-F2DD E9B0A5
-F2DE E9B0A4
-F2DF E9B0A1
-F2E0 E9B0B0
-F2E1 E9B187
-F2E2 E9B0B2
-F2E3 E9B186
-F2E4 E9B0BE
-F2E5 E9B19A
-F2E6 E9B1A0
-F2E7 E9B1A7
-F2E8 E9B1B6
-F2E9 E9B1B8
-F2EA E9B3A7
-F2EB E9B3AC
-F2EC E9B3B0
-F2ED E9B489
-F2EE E9B488
-F2EF E9B3AB
-F2F0 E9B483
-F2F1 E9B486
-F2F2 E9B4AA
-F2F3 E9B4A6
-F2F4 E9B6AF
-F2F5 E9B4A3
-F2F6 E9B49F
-F2F7 E9B584
-F2F8 E9B495
-F2F9 E9B492
-F2FA E9B581
-F2FB E9B4BF
-F2FC E9B4BE
-F2FD E9B586
-F2FE E9B588
-F3A1 E9B59D
-F3A2 E9B59E
-F3A3 E9B5A4
-F3A4 E9B591
-F3A5 E9B590
-F3A6 E9B599
-F3A7 E9B5B2
-F3A8 E9B689
-F3A9 E9B687
-F3AA E9B6AB
-F3AB E9B5AF
-F3AC E9B5BA
-F3AD E9B69A
-F3AE E9B6A4
-F3AF E9B6A9
-F3B0 E9B6B2
-F3B1 E9B784
-F3B2 E9B781
-F3B3 E9B6BB
-F3B4 E9B6B8
-F3B5 E9B6BA
-F3B6 E9B786
-F3B7 E9B78F
-F3B8 E9B782
-F3B9 E9B799
-F3BA E9B793
-F3BB E9B7B8
-F3BC E9B7A6
-F3BD E9B7AD
-F3BE E9B7AF
-F3BF E9B7BD
-F3C0 E9B89A
-F3C1 E9B89B
-F3C2 E9B89E
-F3C3 E9B9B5
-F3C4 E9B9B9
-F3C5 E9B9BD
-F3C6 E9BA81
-F3C7 E9BA88
-F3C8 E9BA8B
-F3C9 E9BA8C
-F3CA E9BA92
-F3CB E9BA95
-F3CC E9BA91
-F3CD E9BA9D
-F3CE E9BAA5
-F3CF E9BAA9
-F3D0 E9BAB8
-F3D1 E9BAAA
-F3D2 E9BAAD
-F3D3 E99DA1
-F3D4 E9BB8C
-F3D5 E9BB8E
-F3D6 E9BB8F
-F3D7 E9BB90
-F3D8 E9BB94
-F3D9 E9BB9C
-F3DA E9BB9E
-F3DB E9BB9D
-F3DC E9BBA0
-F3DD E9BBA5
-F3DE E9BBA8
-F3DF E9BBAF
-F3E0 E9BBB4
-F3E1 E9BBB6
-F3E2 E9BBB7
-F3E3 E9BBB9
-F3E4 E9BBBB
-F3E5 E9BBBC
-F3E6 E9BBBD
-F3E7 E9BC87
-F3E8 E9BC88
-F3E9 E79AB7
-F3EA E9BC95
-F3EB E9BCA1
-F3EC E9BCAC
-F3ED E9BCBE
-F3EE E9BD8A
-F3EF E9BD92
-F3F0 E9BD94
-F3F1 E9BDA3
-F3F2 E9BD9F
-F3F3 E9BDA0
-F3F4 E9BDA1
-F3F5 E9BDA6
-F3F6 E9BDA7
-F3F7 E9BDAC
-F3F8 E9BDAA
-F3F9 E9BDB7
-F3FA E9BDB2
-F3FB E9BDB6
-F3FC E9BE95
-F3FD E9BE9C
-F3FE E9BEA0
-F4A1 E5A0AF
-F4A2 E6A787
-F4A3 E98199
-F4A4 E791A4
-F4A5 E5879C
-F4A6 E78699
-F5A1 EE8080
-F5A2 EE8081
-F5A3 EE8082
-F5A4 EE8083
-F5A5 EE8084
-F5A6 EE8085
-F5A7 EE8086
-F5A8 EE8087
-F5A9 EE8088
-F5AA EE8089
-F5AB EE808A
-F5AC EE808B
-F5AD EE808C
-F5AE EE808D
-F5AF EE808E
-F5B0 EE808F
-F5B1 EE8090
-F5B2 EE8091
-F5B3 EE8092
-F5B4 EE8093
-F5B5 EE8094
-F5B6 EE8095
-F5B7 EE8096
-F5B8 EE8097
-F5B9 EE8098
-F5BA EE8099
-F5BB EE809A
-F5BC EE809B
-F5BD EE809C
-F5BE EE809D
-F5BF EE809E
-F5C0 EE809F
-F5C1 EE80A0
-F5C2 EE80A1
-F5C3 EE80A2
-F5C4 EE80A3
-F5C5 EE80A4
-F5C6 EE80A5
-F5C7 EE80A6
-F5C8 EE80A7
-F5C9 EE80A8
-F5CA EE80A9
-F5CB EE80AA
-F5CC EE80AB
-F5CD EE80AC
-F5CE EE80AD
-F5CF EE80AE
-F5D0 EE80AF
-F5D1 EE80B0
-F5D2 EE80B1
-F5D3 EE80B2
-F5D4 EE80B3
-F5D5 EE80B4
-F5D6 EE80B5
-F5D7 EE80B6
-F5D8 EE80B7
-F5D9 EE80B8
-F5DA EE80B9
-F5DB EE80BA
-F5DC EE80BB
-F5DD EE80BC
-F5DE EE80BD
-F5DF EE80BE
-F5E0 EE80BF
-F5E1 EE8180
-F5E2 EE8181
-F5E3 EE8182
-F5E4 EE8183
-F5E5 EE8184
-F5E6 EE8185
-F5E7 EE8186
-F5E8 EE8187
-F5E9 EE8188
-F5EA EE8189
-F5EB EE818A
-F5EC EE818B
-F5ED EE818C
-F5EE EE818D
-F5EF EE818E
-F5F0 EE818F
-F5F1 EE8190
-F5F2 EE8191
-F5F3 EE8192
-F5F4 EE8193
-F5F5 EE8194
-F5F6 EE8195
-F5F7 EE8196
-F5F8 EE8197
-F5F9 EE8198
-F5FA EE8199
-F5FB EE819A
-F5FC EE819B
-F5FD EE819C
-F5FE EE819D
-F6A1 EE819E
-F6A2 EE819F
-F6A3 EE81A0
-F6A4 EE81A1
-F6A5 EE81A2
-F6A6 EE81A3
-F6A7 EE81A4
-F6A8 EE81A5
-F6A9 EE81A6
-F6AA EE81A7
-F6AB EE81A8
-F6AC EE81A9
-F6AD EE81AA
-F6AE EE81AB
-F6AF EE81AC
-F6B0 EE81AD
-F6B1 EE81AE
-F6B2 EE81AF
-F6B3 EE81B0
-F6B4 EE81B1
-F6B5 EE81B2
-F6B6 EE81B3
-F6B7 EE81B4
-F6B8 EE81B5
-F6B9 EE81B6
-F6BA EE81B7
-F6BB EE81B8
-F6BC EE81B9
-F6BD EE81BA
-F6BE EE81BB
-F6BF EE81BC
-F6C0 EE81BD
-F6C1 EE81BE
-F6C2 EE81BF
-F6C3 EE8280
-F6C4 EE8281
-F6C5 EE8282
-F6C6 EE8283
-F6C7 EE8284
-F6C8 EE8285
-F6C9 EE8286
-F6CA EE8287
-F6CB EE8288
-F6CC EE8289
-F6CD EE828A
-F6CE EE828B
-F6CF EE828C
-F6D0 EE828D
-F6D1 EE828E
-F6D2 EE828F
-F6D3 EE8290
-F6D4 EE8291
-F6D5 EE8292
-F6D6 EE8293
-F6D7 EE8294
-F6D8 EE8295
-F6D9 EE8296
-F6DA EE8297
-F6DB EE8298
-F6DC EE8299
-F6DD EE829A
-F6DE EE829B
-F6DF EE829C
-F6E0 EE829D
-F6E1 EE829E
-F6E2 EE829F
-F6E3 EE82A0
-F6E4 EE82A1
-F6E5 EE82A2
-F6E6 EE82A3
-F6E7 EE82A4
-F6E8 EE82A5
-F6E9 EE82A6
-F6EA EE82A7
-F6EB EE82A8
-F6EC EE82A9
-F6ED EE82AA
-F6EE EE82AB
-F6EF EE82AC
-F6F0 EE82AD
-F6F1 EE82AE
-F6F2 EE82AF
-F6F3 EE82B0
-F6F4 EE82B1
-F6F5 EE82B2
-F6F6 EE82B3
-F6F7 EE82B4
-F6F8 EE82B5
-F6F9 EE82B6
-F6FA EE82B7
-F6FB EE82B8
-F6FC EE82B9
-F6FD EE82BA
-F6FE EE82BB
-F7A1 EE82BC
-F7A2 EE82BD
-F7A3 EE82BE
-F7A4 EE82BF
-F7A5 EE8380
-F7A6 EE8381
-F7A7 EE8382
-F7A8 EE8383
-F7A9 EE8384
-F7AA EE8385
-F7AB EE8386
-F7AC EE8387
-F7AD EE8388
-F7AE EE8389
-F7AF EE838A
-F7B0 EE838B
-F7B1 EE838C
-F7B2 EE838D
-F7B3 EE838E
-F7B4 EE838F
-F7B5 EE8390
-F7B6 EE8391
-F7B7 EE8392
-F7B8 EE8393
-F7B9 EE8394
-F7BA EE8395
-F7BB EE8396
-F7BC EE8397
-F7BD EE8398
-F7BE EE8399
-F7BF EE839A
-F7C0 EE839B
-F7C1 EE839C
-F7C2 EE839D
-F7C3 EE839E
-F7C4 EE839F
-F7C5 EE83A0
-F7C6 EE83A1
-F7C7 EE83A2
-F7C8 EE83A3
-F7C9 EE83A4
-F7CA EE83A5
-F7CB EE83A6
-F7CC EE83A7
-F7CD EE83A8
-F7CE EE83A9
-F7CF EE83AA
-F7D0 EE83AB
-F7D1 EE83AC
-F7D2 EE83AD
-F7D3 EE83AE
-F7D4 EE83AF
-F7D5 EE83B0
-F7D6 EE83B1
-F7D7 EE83B2
-F7D8 EE83B3
-F7D9 EE83B4
-F7DA EE83B5
-F7DB EE83B6
-F7DC EE83B7
-F7DD EE83B8
-F7DE EE83B9
-F7DF EE83BA
-F7E0 EE83BB
-F7E1 EE83BC
-F7E2 EE83BD
-F7E3 EE83BE
-F7E4 EE83BF
-F7E5 EE8480
-F7E6 EE8481
-F7E7 EE8482
-F7E8 EE8483
-F7E9 EE8484
-F7EA EE8485
-F7EB EE8486
-F7EC EE8487
-F7ED EE8488
-F7EE EE8489
-F7EF EE848A
-F7F0 EE848B
-F7F1 EE848C
-F7F2 EE848D
-F7F3 EE848E
-F7F4 EE848F
-F7F5 EE8490
-F7F6 EE8491
-F7F7 EE8492
-F7F8 EE8493
-F7F9 EE8494
-F7FA EE8495
-F7FB EE8496
-F7FC EE8497
-F7FD EE8498
-F7FE EE8499
-F8A1 EE849A
-F8A2 EE849B
-F8A3 EE849C
-F8A4 EE849D
-F8A5 EE849E
-F8A6 EE849F
-F8A7 EE84A0
-F8A8 EE84A1
-F8A9 EE84A2
-F8AA EE84A3
-F8AB EE84A4
-F8AC EE84A5
-F8AD EE84A6
-F8AE EE84A7
-F8AF EE84A8
-F8B0 EE84A9
-F8B1 EE84AA
-F8B2 EE84AB
-F8B3 EE84AC
-F8B4 EE84AD
-F8B5 EE84AE
-F8B6 EE84AF
-F8B7 EE84B0
-F8B8 EE84B1
-F8B9 EE84B2
-F8BA EE84B3
-F8BB EE84B4
-F8BC EE84B5
-F8BD EE84B6
-F8BE EE84B7
-F8BF EE84B8
-F8C0 EE84B9
-F8C1 EE84BA
-F8C2 EE84BB
-F8C3 EE84BC
-F8C4 EE84BD
-F8C5 EE84BE
-F8C6 EE84BF
-F8C7 EE8580
-F8C8 EE8581
-F8C9 EE8582
-F8CA EE8583
-F8CB EE8584
-F8CC EE8585
-F8CD EE8586
-F8CE EE8587
-F8CF EE8588
-F8D0 EE8589
-F8D1 EE858A
-F8D2 EE858B
-F8D3 EE858C
-F8D4 EE858D
-F8D5 EE858E
-F8D6 EE858F
-F8D7 EE8590
-F8D8 EE8591
-F8D9 EE8592
-F8DA EE8593
-F8DB EE8594
-F8DC EE8595
-F8DD EE8596
-F8DE EE8597
-F8DF EE8598
-F8E0 EE8599
-F8E1 EE859A
-F8E2 EE859B
-F8E3 EE859C
-F8E4 EE859D
-F8E5 EE859E
-F8E6 EE859F
-F8E7 EE85A0
-F8E8 EE85A1
-F8E9 EE85A2
-F8EA EE85A3
-F8EB EE85A4
-F8EC EE85A5
-F8ED EE85A6
-F8EE EE85A7
-F8EF EE85A8
-F8F0 EE85A9
-F8F1 EE85AA
-F8F2 EE85AB
-F8F3 EE85AC
-F8F4 EE85AD
-F8F5 EE85AE
-F8F6 EE85AF
-F8F7 EE85B0
-F8F8 EE85B1
-F8F9 EE85B2
-F8FA EE85B3
-F8FB EE85B4
-F8FC EE85B5
-F8FD EE85B6
-F8FE EE85B7
-F9A1 EE85B8
-F9A2 EE85B9
-F9A3 EE85BA
-F9A4 EE85BB
-F9A5 EE85BC
-F9A6 EE85BD
-F9A7 EE85BE
-F9A8 EE85BF
-F9A9 EE8680
-F9AA EE8681
-F9AB EE8682
-F9AC EE8683
-F9AD EE8684
-F9AE EE8685
-F9AF EE8686
-F9B0 EE8687
-F9B1 EE8688
-F9B2 EE8689
-F9B3 EE868A
-F9B4 EE868B
-F9B5 EE868C
-F9B6 EE868D
-F9B7 EE868E
-F9B8 EE868F
-F9B9 EE8690
-F9BA EE8691
-F9BB EE8692
-F9BC EE8693
-F9BD EE8694
-F9BE EE8695
-F9BF EE8696
-F9C0 EE8697
-F9C1 EE8698
-F9C2 EE8699
-F9C3 EE869A
-F9C4 EE869B
-F9C5 EE869C
-F9C6 EE869D
-F9C7 EE869E
-F9C8 EE869F
-F9C9 EE86A0
-F9CA EE86A1
-F9CB EE86A2
-F9CC EE86A3
-F9CD EE86A4
-F9CE EE86A5
-F9CF EE86A6
-F9D0 EE86A7
-F9D1 EE86A8
-F9D2 EE86A9
-F9D3 EE86AA
-F9D4 EE86AB
-F9D5 EE86AC
-F9D6 EE86AD
-F9D7 EE86AE
-F9D8 EE86AF
-F9D9 EE86B0
-F9DA EE86B1
-F9DB EE86B2
-F9DC EE86B3
-F9DD EE86B4
-F9DE EE86B5
-F9DF EE86B6
-F9E0 EE86B7
-F9E1 EE86B8
-F9E2 EE86B9
-F9E3 EE86BA
-F9E4 EE86BB
-F9E5 EE86BC
-F9E6 EE86BD
-F9E7 EE86BE
-F9E8 EE86BF
-F9E9 EE8780
-F9EA EE8781
-F9EB EE8782
-F9EC EE8783
-F9ED EE8784
-F9EE EE8785
-F9EF EE8786
-F9F0 EE8787
-F9F1 EE8788
-F9F2 EE8789
-F9F3 EE878A
-F9F4 EE878B
-F9F5 EE878C
-F9F6 EE878D
-F9F7 EE878E
-F9F8 EE878F
-F9F9 EE8790
-F9FA EE8791
-F9FB EE8792
-F9FC EE8793
-F9FD EE8794
-F9FE EE8795
-FAA1 EE8796
-FAA2 EE8797
-FAA3 EE8798
-FAA4 EE8799
-FAA5 EE879A
-FAA6 EE879B
-FAA7 EE879C
-FAA8 EE879D
-FAA9 EE879E
-FAAA EE879F
-FAAB EE87A0
-FAAC EE87A1
-FAAD EE87A2
-FAAE EE87A3
-FAAF EE87A4
-FAB0 EE87A5
-FAB1 EE87A6
-FAB2 EE87A7
-FAB3 EE87A8
-FAB4 EE87A9
-FAB5 EE87AA
-FAB6 EE87AB
-FAB7 EE87AC
-FAB8 EE87AD
-FAB9 EE87AE
-FABA EE87AF
-FABB EE87B0
-FABC EE87B1
-FABD EE87B2
-FABE EE87B3
-FABF EE87B4
-FAC0 EE87B5
-FAC1 EE87B6
-FAC2 EE87B7
-FAC3 EE87B8
-FAC4 EE87B9
-FAC5 EE87BA
-FAC6 EE87BB
-FAC7 EE87BC
-FAC8 EE87BD
-FAC9 EE87BE
-FACA EE87BF
-FACB EE8880
-FACC EE8881
-FACD EE8882
-FACE EE8883
-FACF EE8884
-FAD0 EE8885
-FAD1 EE8886
-FAD2 EE8887
-FAD3 EE8888
-FAD4 EE8889
-FAD5 EE888A
-FAD6 EE888B
-FAD7 EE888C
-FAD8 EE888D
-FAD9 EE888E
-FADA EE888F
-FADB EE8890
-FADC EE8891
-FADD EE8892
-FADE EE8893
-FADF EE8894
-FAE0 EE8895
-FAE1 EE8896
-FAE2 EE8897
-FAE3 EE8898
-FAE4 EE8899
-FAE5 EE889A
-FAE6 EE889B
-FAE7 EE889C
-FAE8 EE889D
-FAE9 EE889E
-FAEA EE889F
-FAEB EE88A0
-FAEC EE88A1
-FAED EE88A2
-FAEE EE88A3
-FAEF EE88A4
-FAF0 EE88A5
-FAF1 EE88A6
-FAF2 EE88A7
-FAF3 EE88A8
-FAF4 EE88A9
-FAF5 EE88AA
-FAF6 EE88AB
-FAF7 EE88AC
-FAF8 EE88AD
-FAF9 EE88AE
-FAFA EE88AF
-FAFB EE88B0
-FAFC EE88B1
-FAFD EE88B2
-FAFE EE88B3
-FBA1 EE88B4
-FBA2 EE88B5
-FBA3 EE88B6
-FBA4 EE88B7
-FBA5 EE88B8
-FBA6 EE88B9
-FBA7 EE88BA
-FBA8 EE88BB
-FBA9 EE88BC
-FBAA EE88BD
-FBAB EE88BE
-FBAC EE88BF
-FBAD EE8980
-FBAE EE8981
-FBAF EE8982
-FBB0 EE8983
-FBB1 EE8984
-FBB2 EE8985
-FBB3 EE8986
-FBB4 EE8987
-FBB5 EE8988
-FBB6 EE8989
-FBB7 EE898A
-FBB8 EE898B
-FBB9 EE898C
-FBBA EE898D
-FBBB EE898E
-FBBC EE898F
-FBBD EE8990
-FBBE EE8991
-FBBF EE8992
-FBC0 EE8993
-FBC1 EE8994
-FBC2 EE8995
-FBC3 EE8996
-FBC4 EE8997
-FBC5 EE8998
-FBC6 EE8999
-FBC7 EE899A
-FBC8 EE899B
-FBC9 EE899C
-FBCA EE899D
-FBCB EE899E
-FBCC EE899F
-FBCD EE89A0
-FBCE EE89A1
-FBCF EE89A2
-FBD0 EE89A3
-FBD1 EE89A4
-FBD2 EE89A5
-FBD3 EE89A6
-FBD4 EE89A7
-FBD5 EE89A8
-FBD6 EE89A9
-FBD7 EE89AA
-FBD8 EE89AB
-FBD9 EE89AC
-FBDA EE89AD
-FBDB EE89AE
-FBDC EE89AF
-FBDD EE89B0
-FBDE EE89B1
-FBDF EE89B2
-FBE0 EE89B3
-FBE1 EE89B4
-FBE2 EE89B5
-FBE3 EE89B6
-FBE4 EE89B7
-FBE5 EE89B8
-FBE6 EE89B9
-FBE7 EE89BA
-FBE8 EE89BB
-FBE9 EE89BC
-FBEA EE89BD
-FBEB EE89BE
-FBEC EE89BF
-FBED EE8A80
-FBEE EE8A81
-FBEF EE8A82
-FBF0 EE8A83
-FBF1 EE8A84
-FBF2 EE8A85
-FBF3 EE8A86
-FBF4 EE8A87
-FBF5 EE8A88
-FBF6 EE8A89
-FBF7 EE8A8A
-FBF8 EE8A8B
-FBF9 EE8A8C
-FBFA EE8A8D
-FBFB EE8A8E
-FBFC EE8A8F
-FBFD EE8A90
-FBFE EE8A91
-FCA1 EE8A92
-FCA2 EE8A93
-FCA3 EE8A94
-FCA4 EE8A95
-FCA5 EE8A96
-FCA6 EE8A97
-FCA7 EE8A98
-FCA8 EE8A99
-FCA9 EE8A9A
-FCAA EE8A9B
-FCAB EE8A9C
-FCAC EE8A9D
-FCAD EE8A9E
-FCAE EE8A9F
-FCAF EE8AA0
-FCB0 EE8AA1
-FCB1 EE8AA2
-FCB2 EE8AA3
-FCB3 EE8AA4
-FCB4 EE8AA5
-FCB5 EE8AA6
-FCB6 EE8AA7
-FCB7 EE8AA8
-FCB8 EE8AA9
-FCB9 EE8AAA
-FCBA EE8AAB
-FCBB EE8AAC
-FCBC EE8AAD
-FCBD EE8AAE
-FCBE EE8AAF
-FCBF EE8AB0
-FCC0 EE8AB1
-FCC1 EE8AB2
-FCC2 EE8AB3
-FCC3 EE8AB4
-FCC4 EE8AB5
-FCC5 EE8AB6
-FCC6 EE8AB7
-FCC7 EE8AB8
-FCC8 EE8AB9
-FCC9 EE8ABA
-FCCA EE8ABB
-FCCB EE8ABC
-FCCC EE8ABD
-FCCD EE8ABE
-FCCE EE8ABF
-FCCF EE8B80
-FCD0 EE8B81
-FCD1 EE8B82
-FCD2 EE8B83
-FCD3 EE8B84
-FCD4 EE8B85
-FCD5 EE8B86
-FCD6 EE8B87
-FCD7 EE8B88
-FCD8 EE8B89
-FCD9 EE8B8A
-FCDA EE8B8B
-FCDB EE8B8C
-FCDC EE8B8D
-FCDD EE8B8E
-FCDE EE8B8F
-FCDF EE8B90
-FCE0 EE8B91
-FCE1 EE8B92
-FCE2 EE8B93
-FCE3 EE8B94
-FCE4 EE8B95
-FCE5 EE8B96
-FCE6 EE8B97
-FCE7 EE8B98
-FCE8 EE8B99
-FCE9 EE8B9A
-FCEA EE8B9B
-FCEB EE8B9C
-FCEC EE8B9D
-FCED EE8B9E
-FCEE EE8B9F
-FCEF EE8BA0
-FCF0 EE8BA1
-FCF1 EE8BA2
-FCF2 EE8BA3
-FCF3 EE8BA4
-FCF4 EE8BA5
-FCF5 EE8BA6
-FCF6 EE8BA7
-FCF7 EE8BA8
-FCF8 EE8BA9
-FCF9 EE8BAA
-FCFA EE8BAB
-FCFB EE8BAC
-FCFC EE8BAD
-FCFD EE8BAE
-FCFE EE8BAF
-FDA1 EE8BB0
-FDA2 EE8BB1
-FDA3 EE8BB2
-FDA4 EE8BB3
-FDA5 EE8BB4
-FDA6 EE8BB5
-FDA7 EE8BB6
-FDA8 EE8BB7
-FDA9 EE8BB8
-FDAA EE8BB9
-FDAB EE8BBA
-FDAC EE8BBB
-FDAD EE8BBC
-FDAE EE8BBD
-FDAF EE8BBE
-FDB0 EE8BBF
-FDB1 EE8C80
-FDB2 EE8C81
-FDB3 EE8C82
-FDB4 EE8C83
-FDB5 EE8C84
-FDB6 EE8C85
-FDB7 EE8C86
-FDB8 EE8C87
-FDB9 EE8C88
-FDBA EE8C89
-FDBB EE8C8A
-FDBC EE8C8B
-FDBD EE8C8C
-FDBE EE8C8D
-FDBF EE8C8E
-FDC0 EE8C8F
-FDC1 EE8C90
-FDC2 EE8C91
-FDC3 EE8C92
-FDC4 EE8C93
-FDC5 EE8C94
-FDC6 EE8C95
-FDC7 EE8C96
-FDC8 EE8C97
-FDC9 EE8C98
-FDCA EE8C99
-FDCB EE8C9A
-FDCC EE8C9B
-FDCD EE8C9C
-FDCE EE8C9D
-FDCF EE8C9E
-FDD0 EE8C9F
-FDD1 EE8CA0
-FDD2 EE8CA1
-FDD3 EE8CA2
-FDD4 EE8CA3
-FDD5 EE8CA4
-FDD6 EE8CA5
-FDD7 EE8CA6
-FDD8 EE8CA7
-FDD9 EE8CA8
-FDDA EE8CA9
-FDDB EE8CAA
-FDDC EE8CAB
-FDDD EE8CAC
-FDDE EE8CAD
-FDDF EE8CAE
-FDE0 EE8CAF
-FDE1 EE8CB0
-FDE2 EE8CB1
-FDE3 EE8CB2
-FDE4 EE8CB3
-FDE5 EE8CB4
-FDE6 EE8CB5
-FDE7 EE8CB6
-FDE8 EE8CB7
-FDE9 EE8CB8
-FDEA EE8CB9
-FDEB EE8CBA
-FDEC EE8CBB
-FDED EE8CBC
-FDEE EE8CBD
-FDEF EE8CBE
-FDF0 EE8CBF
-FDF1 EE8D80
-FDF2 EE8D81
-FDF3 EE8D82
-FDF4 EE8D83
-FDF5 EE8D84
-FDF6 EE8D85
-FDF7 EE8D86
-FDF8 EE8D87
-FDF9 EE8D88
-FDFA EE8D89
-FDFB EE8D8A
-FDFC EE8D8B
-FDFD EE8D8C
-FDFE EE8D8D
-FEA1 EE8D8E
-FEA2 EE8D8F
-FEA3 EE8D90
-FEA4 EE8D91
-FEA5 EE8D92
-FEA6 EE8D93
-FEA7 EE8D94
-FEA8 EE8D95
-FEA9 EE8D96
-FEAA EE8D97
-FEAB EE8D98
-FEAC EE8D99
-FEAD EE8D9A
-FEAE EE8D9B
-FEAF EE8D9C
-FEB0 EE8D9D
-FEB1 EE8D9E
-FEB2 EE8D9F
-FEB3 EE8DA0
-FEB4 EE8DA1
-FEB5 EE8DA2
-FEB6 EE8DA3
-FEB7 EE8DA4
-FEB8 EE8DA5
-FEB9 EE8DA6
-FEBA EE8DA7
-FEBB EE8DA8
-FEBC EE8DA9
-FEBD EE8DAA
-FEBE EE8DAB
-FEBF EE8DAC
-FEC0 EE8DAD
-FEC1 EE8DAE
-FEC2 EE8DAF
-FEC3 EE8DB0
-FEC4 EE8DB1
-FEC5 EE8DB2
-FEC6 EE8DB3
-FEC7 EE8DB4
-FEC8 EE8DB5
-FEC9 EE8DB6
-FECA EE8DB7
-FECB EE8DB8
-FECC EE8DB9
-FECD EE8DBA
-FECE EE8DBB
-FECF EE8DBC
-FED0 EE8DBD
-FED1 EE8DBE
-FED2 EE8DBF
-FED3 EE8E80
-FED4 EE8E81
-FED5 EE8E82
-FED6 EE8E83
-FED7 EE8E84
-FED8 EE8E85
-FED9 EE8E86
-FEDA EE8E87
-FEDB EE8E88
-FEDC EE8E89
-FEDD EE8E8A
-FEDE EE8E8B
-FEDF EE8E8C
-FEE0 EE8E8D
-FEE1 EE8E8E
-FEE2 EE8E8F
-FEE3 EE8E90
-FEE4 EE8E91
-FEE5 EE8E92
-FEE6 EE8E93
-FEE7 EE8E94
-FEE8 EE8E95
-FEE9 EE8E96
-FEEA EE8E97
-FEEB EE8E98
-FEEC EE8E99
-FEED EE8E9A
-FEEE EE8E9B
-FEEF EE8E9C
-FEF0 EE8E9D
-FEF1 EE8E9E
-FEF2 EE8E9F
-FEF3 EE8EA0
-FEF4 EE8EA1
-FEF5 EE8EA2
-FEF6 EE8EA3
-FEF7 EE8EA4
-FEF8 EE8EA5
-FEF9 EE8EA6
-FEFA EE8EA7
-FEFB EE8EA8
-FEFC EE8EA9
-FEFD EE8EAA
-FEFE EE8EAB
-Warnings:
-Warning 1977 Cannot convert 'ujis' character 0xA2AF to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B0 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B1 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2B9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2C9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D1 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2D9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2DA to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2DB to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2EB to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2EC to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2ED to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2EE to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2EF to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2F0 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2F1 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2FA to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2FB to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2FC to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA2FD to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3A1 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3A2 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3A3 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3A4 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3A5 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3A6 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3A7 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3A8 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3A9 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3AA to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3AB to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3AC to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3AD to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3AE to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3AF to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3BA to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3BB to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3BC to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3BD to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3BE to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3BF to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3C0 to 'utf8'
-Warning 1977 Cannot convert 'ujis' character 0xA3DB to 'utf8'
-DROP TABLE t1;
-#
-# WL#3090 Japanese Character Set adjustments
-# Test Unicode->sjis conversion
-#
-CREATE TABLE t1 (a CHAR(1)) CHARACTER SET utf8;
-INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
-INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
-CREATE TEMPORARY TABLE head AS SELECT concat(b1.a, b2.a) AS head FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE tail AS SELECT concat(b1.a, b2.a) AS tail FROM t1 b1, t1 b2;
-CREATE TEMPORARY TABLE middle AS SELECT concat(b1.a, b2.a) AS middle FROM t1 b1, t1 b2;
-DROP TABLE t1;
-CREATE TABLE t1 (a varchar(1)) CHARACTER SET utf8;
-INSERT INTO t1 SELECT UNHEX(head)
-FROM head WHERE (head BETWEEN '00' AND '7F') ORDER BY head;
-INSERT INTO t1
-SELECT UNHEX(CONCAT(head,tail))
-FROM head, tail
-WHERE (head BETWEEN 'C2' AND 'DF') AND (tail BETWEEN '80' AND 'BF')
-ORDER BY head, tail;
-INSERT INTO t1
-SELECT UNHEX(CONCAT(head, middle, tail))
-FROM head, middle, tail
-WHERE (head BETWEEN 'E0' AND 'EF')
-AND (middle BETWEEN '80' AND 'BF')
-AND (tail BETWEEN '80' AND 'BF')
-AND NOT (head='E0' AND middle BETWEEN '80' AND '9F')
-ORDER BY head, middle, tail;
-SELECT count(*) FROM t1;
-count(*)
-65536
-SELECT HEX(a), HEX(CONVERT(a using sjis)) as b FROM t1 HAVING b<>'3F' ORDER BY BINARY a;
-HEX(a) b
-00 00
-01 01
-02 02
-03 03
-04 04
-05 05
-06 06
-07 07
-08 08
-09 09
-0A 0A
-0B 0B
-0C 0C
-0D 0D
-0E 0E
-0F 0F
-10 10
-11 11
-12 12
-13 13
-14 14
-15 15
-16 16
-17 17
-18 18
-19 19
-1A 1A
-1B 1B
-1C 1C
-1D 1D
-1E 1E
-1F 1F
-20 20
-21 21
-22 22
-23 23
-24 24
-25 25
-26 26
-27 27
-28 28
-29 29
-2A 2A
-2B 2B
-2C 2C
-2D 2D
-2E 2E
-2F 2F
-30 30
-31 31
-32 32
-33 33
-34 34
-35 35
-36 36
-37 37
-38 38
-39 39
-3A 3A
-3B 3B
-3C 3C
-3D 3D
-3E 3E
-40 40
-41 41
-42 42
-43 43
-44 44
-45 45
-46 46
-47 47
-48 48
-49 49
-4A 4A
-4B 4B
-4C 4C
-4D 4D
-4E 4E
-4F 4F
-50 50
-51 51
-52 52
-53 53
-54 54
-55 55
-56 56
-57 57
-58 58
-59 59
-5A 5A
-5B 5B
-5C 815F
-5D 5D
-5E 5E
-5F 5F
-60 60
-61 61
-62 62
-63 63
-64 64
-65 65
-66 66
-67 67
-68 68
-69 69
-6A 6A
-6B 6B
-6C 6C
-6D 6D
-6E 6E
-6F 6F
-70 70
-71 71
-72 72
-73 73
-74 74
-75 75
-76 76
-77 77
-78 78
-79 79
-7A 7A
-7B 7B
-7C 7C
-7D 7D
-7E 7E
-7F 7F
-C2A2 8191
-C2A3 8192
-C2A7 8198
-C2A8 814E
-C2AC 81CA
-C2B0 818B
-C2B1 817D
-C2B4 814C
-C2B6 81F7
-C397 817E
-C3B7 8180
-CE91 839F
-CE92 83A0
-CE93 83A1
-CE94 83A2
-CE95 83A3
-CE96 83A4
-CE97 83A5
-CE98 83A6
-CE99 83A7
-CE9A 83A8
-CE9B 83A9
-CE9C 83AA
-CE9D 83AB
-CE9E 83AC
-CE9F 83AD
-CEA0 83AE
-CEA1 83AF
-CEA3 83B0
-CEA4 83B1
-CEA5 83B2
-CEA6 83B3
-CEA7 83B4
-CEA8 83B5
-CEA9 83B6
-CEB1 83BF
-CEB2 83C0
-CEB3 83C1
-CEB4 83C2
-CEB5 83C3
-CEB6 83C4
-CEB7 83C5
-CEB8 83C6
-CEB9 83C7
-CEBA 83C8
-CEBB 83C9
-CEBC 83CA
-CEBD 83CB
-CEBE 83CC
-CEBF 83CD
-CF80 83CE
-CF81 83CF
-CF83 83D0
-CF84 83D1
-CF85 83D2
-CF86 83D3
-CF87 83D4
-CF88 83D5
-CF89 83D6
-D081 8446
-D090 8440
-D091 8441
-D092 8442
-D093 8443
-D094 8444
-D095 8445
-D096 8447
-D097 8448
-D098 8449
-D099 844A
-D09A 844B
-D09B 844C
-D09C 844D
-D09D 844E
-D09E 844F
-D09F 8450
-D0A0 8451
-D0A1 8452
-D0A2 8453
-D0A3 8454
-D0A4 8455
-D0A5 8456
-D0A6 8457
-D0A7 8458
-D0A8 8459
-D0A9 845A
-D0AA 845B
-D0AB 845C
-D0AC 845D
-D0AD 845E
-D0AE 845F
-D0AF 8460
-D0B0 8470
-D0B1 8471
-D0B2 8472
-D0B3 8473
-D0B4 8474
-D0B5 8475
-D0B6 8477
-D0B7 8478
-D0B8 8479
-D0B9 847A
-D0BA 847B
-D0BB 847C
-D0BC 847D
-D0BD 847E
-D0BE 8480
-D0BF 8481
-D180 8482
-D181 8483
-D182 8484
-D183 8485
-D184 8486
-D185 8487
-D186 8488
-D187 8489
-D188 848A
-D189 848B
-D18A 848C
-D18B 848D
-D18C 848E
-D18D 848F
-D18E 8490
-D18F 8491
-D191 8476
-E28090 815D
-E28095 815C
-E28096 8161
-E28098 8165
-E28099 8166
-E2809C 8167
-E2809D 8168
-E280A0 81F5
-E280A1 81F6
-E280A5 8164
-E280A6 8163
-E280B0 81F1
-E280B2 818C
-E280B3 818D
-E280BB 81A6
-E28483 818E
-E284AB 81F0
-E28690 81A9
-E28691 81AA
-E28692 81A8
-E28693 81AB
-E28792 81CB
-E28794 81CC
-E28880 81CD
-E28882 81DD
-E28883 81CE
-E28887 81DE
-E28888 81B8
-E2888B 81B9
-E28892 817C
-E2889A 81E3
-E2889D 81E5
-E2889E 8187
-E288A0 81DA
-E288A7 81C8
-E288A8 81C9
-E288A9 81BF
-E288AA 81BE
-E288AB 81E7
-E288AC 81E8
-E288B4 8188
-E288B5 81E6
-E288BD 81E4
-E28992 81E0
-E289A0 8182
-E289A1 81DF
-E289A6 8185
-E289A7 8186
-E289AA 81E1
-E289AB 81E2
-E28A82 81BC
-E28A83 81BD
-E28A86 81BA
-E28A87 81BB
-E28AA5 81DB
-E28C92 81DC
-E29480 849F
-E29481 84AA
-E29482 84A0
-E29483 84AB
-E2948C 84A1
-E2948F 84AC
-E29490 84A2
-E29493 84AD
-E29494 84A4
-E29497 84AF
-E29498 84A3
-E2949B 84AE
-E2949C 84A5
-E2949D 84BA
-E294A0 84B5
-E294A3 84B0
-E294A4 84A7
-E294A5 84BC
-E294A8 84B7
-E294AB 84B2
-E294AC 84A6
-E294AF 84B6
-E294B0 84BB
-E294B3 84B1
-E294B4 84A8
-E294B7 84B8
-E294B8 84BD
-E294BB 84B3
-E294BC 84A9
-E294BF 84B9
-E29582 84BE
-E2958B 84B4
-E296A0 81A1
-E296A1 81A0
-E296B2 81A3
-E296B3 81A2
-E296BC 81A5
-E296BD 81A4
-E29786 819F
-E29787 819E
-E2978B 819B
-E2978E 819D
-E2978F 819C
-E297AF 81FC
-E29885 819A
-E29886 8199
-E29980 818A
-E29982 8189
-E299AA 81F4
-E299AD 81F3
-E299AF 81F2
-E38080 8140
-E38081 8141
-E38082 8142
-E38083 8156
-E38085 8158
-E38086 8159
-E38087 815A
-E38088 8171
-E38089 8172
-E3808A 8173
-E3808B 8174
-E3808C 8175
-E3808D 8176
-E3808E 8177
-E3808F 8178
-E38090 8179
-E38091 817A
-E38092 81A7
-E38093 81AC
-E38094 816B
-E38095 816C
-E3809C 8160
-E38181 829F
-E38182 82A0
-E38183 82A1
-E38184 82A2
-E38185 82A3
-E38186 82A4
-E38187 82A5
-E38188 82A6
-E38189 82A7
-E3818A 82A8
-E3818B 82A9
-E3818C 82AA
-E3818D 82AB
-E3818E 82AC
-E3818F 82AD
-E38190 82AE
-E38191 82AF
-E38192 82B0
-E38193 82B1
-E38194 82B2
-E38195 82B3
-E38196 82B4
-E38197 82B5
-E38198 82B6
-E38199 82B7
-E3819A 82B8
-E3819B 82B9
-E3819C 82BA
-E3819D 82BB
-E3819E 82BC
-E3819F 82BD
-E381A0 82BE
-E381A1 82BF
-E381A2 82C0
-E381A3 82C1
-E381A4 82C2
-E381A5 82C3
-E381A6 82C4
-E381A7 82C5
-E381A8 82C6
-E381A9 82C7
-E381AA 82C8
-E381AB 82C9
-E381AC 82CA
-E381AD 82CB
-E381AE 82CC
-E381AF 82CD
-E381B0 82CE
-E381B1 82CF
-E381B2 82D0
-E381B3 82D1
-E381B4 82D2
-E381B5 82D3
-E381B6 82D4
-E381B7 82D5
-E381B8 82D6
-E381B9 82D7
-E381BA 82D8
-E381BB 82D9
-E381BC 82DA
-E381BD 82DB
-E381BE 82DC
-E381BF 82DD
-E38280 82DE
-E38281 82DF
-E38282 82E0
-E38283 82E1
-E38284 82E2
-E38285 82E3
-E38286 82E4
-E38287 82E5
-E38288 82E6
-E38289 82E7
-E3828A 82E8
-E3828B 82E9
-E3828C 82EA
-E3828D 82EB
-E3828E 82EC
-E3828F 82ED
-E38290 82EE
-E38291 82EF
-E38292 82F0
-E38293 82F1
-E3829B 814A
-E3829C 814B
-E3829D 8154
-E3829E 8155
-E382A1 8340
-E382A2 8341
-E382A3 8342
-E382A4 8343
-E382A5 8344
-E382A6 8345
-E382A7 8346
-E382A8 8347
-E382A9 8348
-E382AA 8349
-E382AB 834A
-E382AC 834B
-E382AD 834C
-E382AE 834D
-E382AF 834E
-E382B0 834F
-E382B1 8350
-E382B2 8351
-E382B3 8352
-E382B4 8353
-E382B5 8354
-E382B6 8355
-E382B7 8356
-E382B8 8357
-E382B9 8358
-E382BA 8359
-E382BB 835A
-E382BC 835B
-E382BD 835C
-E382BE 835D
-E382BF 835E
-E38380 835F
-E38381 8360
-E38382 8361
-E38383 8362
-E38384 8363
-E38385 8364
-E38386 8365
-E38387 8366
-E38388 8367
-E38389 8368
-E3838A 8369
-E3838B 836A
-E3838C 836B
-E3838D 836C
-E3838E 836D
-E3838F 836E
-E38390 836F
-E38391 8370
-E38392 8371
-E38393 8372
-E38394 8373
-E38395 8374
-E38396 8375
-E38397 8376
-E38398 8377
-E38399 8378
-E3839A 8379
-E3839B 837A
-E3839C 837B
-E3839D 837C
-E3839E 837D
-E3839F 837E
-E383A0 8380
-E383A1 8381
-E383A2 8382
-E383A3 8383
-E383A4 8384
-E383A5 8385
-E383A6 8386
-E383A7 8387
-E383A8 8388
-E383A9 8389
-E383AA 838A
-E383AB 838B
-E383AC 838C
-E383AD 838D
-E383AE 838E
-E383AF 838F
-E383B0 8390
-E383B1 8391
-E383B2 8392
-E383B3 8393
-E383B4 8394
-E383B5 8395
-E383B6 8396
-E383BB 8145
-E383BC 815B
-E383BD 8152
-E383BE 8153
-E4B880 88EA
-E4B881 929A
-E4B883 8EB5
-E4B887 969C
-E4B888 8FE4
-E4B889 8E4F
-E4B88A 8FE3
-E4B88B 89BA
-E4B88D 9573
-E4B88E 975E
-E4B890 98A0
-E4B891 894E
-E4B894 8A8E
-E4B895 98A1
-E4B896 90A2
-E4B897 99C0
-E4B898 8B75
-E4B899 95B8
-E4B89E 8FE5
-E4B8A1 97BC
-E4B8A6 95C0
-E4B8AA 98A2
-E4B8AD 9286
-E4B8B1 98A3
-E4B8B2 8BF8
-E4B8B6 98A4
-E4B8B8 8ADB
-E4B8B9 924F
-E4B8BB 8EE5
-E4B8BC 98A5
-E4B8BF 98A6
-E4B982 98A7
-E4B983 9454
-E4B985 8B76
-E4B98B 9456
-E4B98D 93E1
-E4B98E 8CC1
-E4B98F 9652
-E4B995 E568
-E4B996 98A8
-E4B997 8FE6
-E4B998 98A9
-E4B999 89B3
-E4B99D 8BE3
-E4B99E 8CEE
-E4B99F 96E7
-E4B9A2 9BA4
-E4B9B1 9790
-E4B9B3 93FB
-E4B9BE 8AA3
-E4BA80 8B54
-E4BA82 98AA
-E4BA85 98AB
-E4BA86 97B9
-E4BA88 975C
-E4BA89 9188
-E4BA8A 98AD
-E4BA8B 8E96
-E4BA8C 93F1
-E4BA8E 98B0
-E4BA91 895D
-E4BA92 8CDD
-E4BA94 8CDC
-E4BA95 88E4
-E4BA98 986A
-E4BA99 9869
-E4BA9B 8DB1
-E4BA9C 889F
-E4BA9E 98B1
-E4BA9F 98B2
-E4BAA0 98B3
-E4BAA1 9653
-E4BAA2 98B4
-E4BAA4 8CF0
-E4BAA5 88E5
-E4BAA6 9692
-E4BAA8 8B9C
-E4BAAB 8B9D
-E4BAAC 8B9E
-E4BAAD 92E0
-E4BAAE 97BA
-E4BAB0 98B5
-E4BAB3 98B6
-E4BAB6 98B7
-E4BABA 906C
-E4BB80 8F59
-E4BB81 906D
-E4BB82 98BC
-E4BB84 98BA
-E4BB86 98BB
-E4BB87 8B77
-E4BB8A 8DA1
-E4BB8B 89EE
-E4BB8D 98B9
-E4BB8E 98B8
-E4BB8F 95A7
-E4BB94 8E65
-E4BB95 8E64
-E4BB96 91BC
-E4BB97 98BD
-E4BB98 9574
-E4BB99 90E5
-E4BB9D 8157
-E4BB9E 98BE
-E4BB9F 98C0
-E4BBA3 91E3
-E4BBA4 97DF
-E4BBA5 88C8
-E4BBAD 98BF
-E4BBAE 89BC
-E4BBB0 8BC2
-E4BBB2 9287
-E4BBB6 8C8F
-E4BBB7 98C1
-E4BBBB 9443
-E4BC81 8AE9
-E4BC89 98C2
-E4BC8A 88C9
-E4BC8D 8CDE
-E4BC8E 8AEA
-E4BC8F 959A
-E4BC90 94B0
-E4BC91 8B78
-E4BC9A 89EF
-E4BC9C 98E5
-E4BC9D 9360
-E4BCAF 948C
-E4BCB0 98C4
-E4BCB4 94BA
-E4BCB6 97E0
-E4BCB8 904C
-E4BCBA 8E66
-E4BCBC 8E97
-E4BCBD 89BE
-E4BD83 92CF
-E4BD86 9241
-E4BD87 98C8
-E4BD8D 88CA
-E4BD8E 92E1
-E4BD8F 8F5A
-E4BD90 8DB2
-E4BD91 9743
-E4BD93 91CC
-E4BD95 89BD
-E4BD97 98C7
-E4BD99 975D
-E4BD9A 98C3
-E4BD9B 98C5
-E4BD9C 8DEC
-E4BD9D 98C6
-E4BD9E 9B43
-E4BDA9 98CE
-E4BDAF 98D1
-E4BDB0 98CF
-E4BDB3 89C0
-E4BDB5 95B9
-E4BDB6 98C9
-E4BDBB 98CD
-E4BDBC 8CF1
-E4BDBF 8E67
-E4BE83 8AA4
-E4BE86 98D2
-E4BE88 98CA
-E4BE8B 97E1
-E4BE8D 8E98
-E4BE8F 98CB
-E4BE91 98D0
-E4BE96 98D3
-E4BE98 98CC
-E4BE9B 8B9F
-E4BE9D 88CB
-E4BEA0 8BA0
-E4BEA1 89BF
-E4BEAB 9B44
-E4BEAD 9699
-E4BEAE 958E
-E4BEAF 8CF2
-E4BEB5 904E
-E4BEB6 97B5
-E4BEBF 95D6
-E4BF82 8C57
-E4BF83 91A3
-E4BF84 89E2
-E4BF8A 8F72
-E4BF8E 98D7
-E4BF90 98DC
-E4BF91 98DA
-E4BF94 98D5
-E4BF97 91AD
-E4BF98 98D8
-E4BF9A 98DB
-E4BF9B 98D9
-E4BF9D 95DB
-E4BF9F 98D6
-E4BFA1 904D
-E4BFA3 9693
-E4BFA4 98DD
-E4BFA5 98DE
-E4BFAE 8F43
-E4BFAF 98EB
-E4BFB3 946F
-E4BFB5 9555
-E4BFB6 98E6
-E4BFB8 95EE
-E4BFBA 89B4
-E4BFBE 98EA
-E58085 98E4
-E58086 98ED
-E58089 9171
-E5808B 8CC2
-E5808D 947B
-E5808F E0C5
-E58091 98EC
-E58092 937C
-E58094 98E1
-E58096 8CF4
-E58099 8CF3
-E5809A 98DF
-E5809F 8ED8
-E580A1 98E7
-E580A3 95ED
-E580A4 926C
-E580A5 98E3
-E580A6 8C91
-E580A8 98E0
-E580A9 98E8
-E580AA 98E2
-E580AB 97CF
-E580AC 98E9
-E580AD 9860
-E580B6 8BE4
-E580B9 8C90
-E58183 98EE
-E58187 98EF
-E58188 98F3
-E58189 88CC
-E5818F 95CE
-E58190 98F2
-E58195 98F1
-E58196 98F5
-E5819A 98F4
-E5819C 92E2
-E581A5 8C92
-E581AC 98F6
-E581B2 8EC3
-E581B4 91A4
-E581B5 92E3
-E581B6 8BF4
-E581B8 98F7
-E581BD 8B55
-E58280 98F8
-E58285 98FA
-E5828D 9654
-E58291 8C86
-E58298 8E50
-E58299 94F5
-E5829A 98F9
-E582AC 8DC3
-E582AD 9762
-E582B2 98FC
-E582B3 9942
-E582B4 98FB
-E582B5 8DC2
-E582B7 8F9D
-E582BE 8C58
-E58382 9943
-E58385 8BCD
-E58389 9940
-E5838A 9941
-E5838D 93AD
-E5838F 919C
-E58391 8BA1
-E58395 966C
-E58396 9944
-E5839A 97BB
-E5839E 9945
-E583A3 9948
-E583A5 9946
-E583A7 916D
-E583AD 9947
-E583AE 9949
-E583B5 994B
-E583B9 994A
-E583BB 95C6
-E58480 8B56
-E58481 994D
-E58482 994E
-E58484 89AD
-E58489 994C
-E58492 8EF2
-E58494 9951
-E58495 9950
-E58496 994F
-E58498 98D4
-E5849A 9952
-E5849F 8F9E
-E584A1 9953
-E584AA 9744
-E584B2 96D7
-E584B7 9955
-E584BA 9954
-E584BB 9957
-E584BC 9956
-E584BF 9958
-E58580 9959
-E58581 88F2
-E58583 8CB3
-E58584 8C5A
-E58585 8F5B
-E58586 929B
-E58587 8BA2
-E58588 90E6
-E58589 8CF5
-E5858B 8D8E
-E5858C 995B
-E5858D 96C6
-E5858E 9365
-E58590 8E99
-E58592 995A
-E58594 995C
-E5859A 937D
-E5859C 8A95
-E585A2 995D
-E585A5 93FC
-E585A8 9153
-E585A9 995F
-E585AA 9960
-E585AB 94AA
-E585AC 8CF6
-E585AD 985A
-E585AE 9961
-E585B1 8BA4
-E585B5 95BA
-E585B6 91B4
-E585B7 8BEF
-E585B8 9354
-E585BC 8C93
-E58680 9962
-E58682 9963
-E58685 93E0
-E58686 897E
-E58689 9966
-E5868A 8DFB
-E5868C 9965
-E5868D 8DC4
-E5868F 9967
-E58690 E3EC
-E58691 9968
-E58692 9660
-E58693 9969
-E58695 996A
-E58696 996B
-E58697 8FE7
-E58699 8ECA
-E586A0 8AA5
-E586A2 996E
-E586A4 996C
-E586A5 96BB
-E586A6 996D
-E586A8 9579
-E586A9 996F
-E586AA 9970
-E586AB 9971
-E586AC 937E
-E586B0 9975
-E586B1 9973
-E586B2 9974
-E586B3 9972
-E586B4 8DE1
-E586B5 9976
-E586B6 96E8
-E586B7 97E2
-E586BD 9977
-E58784 90A6
-E58785 9978
-E58786 8F79
-E58789 9979
-E5878B 929C
-E5878C 97BD
-E5878D 9380
-E58796 99C3
-E5879B 997A
-E5879C EAA3
-E5879D 8BC3
-E587A0 997B
-E587A1 967D
-E587A6 8F88
-E587A7 91FA
-E587A9 997D
-E587AA 93E2
-E587AD 997E
-E587B0 9980
-E587B1 8A4D
-E587B5 9981
-E587B6 8BA5
-E587B8 93CA
-E587B9 899A
-E587BA 8F6F
-E587BD 949F
-E587BE 9982
-E58880 9381
-E58883 906E
-E58884 9983
-E58886 95AA
-E58887 90D8
-E58888 8AA0
-E5888A 8AA7
-E5888B 9984
-E5888E 9986
-E58891 8C59
-E58894 9985
-E58897 97F1
-E5889D 8F89
-E588A4 94BB
-E588A5 95CA
-E588A7 9987
-E588A9 9798
-E588AA 9988
-E588AE 9989
-E588B0 939E
-E588B3 998A
-E588B6 90A7
-E588B7 8DFC
-E588B8 8C94
-E588B9 998B
-E588BA 8E68
-E588BB 8D8F
-E58983 92E4
-E58984 998D
-E58987 91A5
-E5898A 8DED
-E5898B 998E
-E5898C 998F
-E5898D 914F
-E5898F 998C
-E58994 9991
-E58996 9655
-E5899B 8D84
-E5899E 9990
-E589A3 8C95
-E589A4 8DDC
-E589A5 948D
-E589A9 9994
-E589AA 9992
-E589AF 959B
-E589B0 8FE8
-E589B1 999B
-E589B2 8A84
-E589B3 9995
-E589B4 9993
-E589B5 916E
-E589BD 9997
-E589BF 9996
-E58A83 8A63
-E58A87 8C80
-E58A88 999C
-E58A89 97AB
-E58A8D 9998
-E58A91 999D
-E58A92 999A
-E58A94 9999
-E58A9B 97CD
-E58A9F 8CF7
-E58AA0 89C1
-E58AA3 97F2
-E58AA9 8F95
-E58AAA 9377
-E58AAB 8D85
-E58AAC 99A0
-E58AAD 99A1
-E58AB1 97E3
-E58AB4 984A
-E58AB5 99A3
-E58AB9 8CF8
-E58ABC 99A2
-E58ABE 8A4E
-E58B81 99A4
-E58B83 9675
-E58B85 92BA
-E58B87 9745
-E58B89 95D7
-E58B8D 99A5
-E58B92 E8D3
-E58B95 93AE
-E58B97 99A6
-E58B98 8AA8
-E58B99 96B1
-E58B9D 8F9F
-E58B9E 99A7
-E58B9F 95E5
-E58BA0 99AB
-E58BA2 90A8
-E58BA3 99A8
-E58BA4 8BCE
-E58BA6 99A9
-E58BA7 8AA9
-E58BB2 8C4D
-E58BB3 99AC
-E58BB5 99AD
-E58BB8 99AE
-E58BB9 99AF
-E58BBA 8ED9
-E58BBE 8CF9
-E58BBF 96DC
-E58C81 96E6
-E58C82 93F5
-E58C85 95EF
-E58C86 99B0
-E58C88 99B1
-E58C8D 99B3
-E58C8F 99B5
-E58C90 99B4
-E58C95 99B6
-E58C96 89BB
-E58C97 966B
-E58C99 8DFA
-E58C9A 99B7
-E58C9D 9178
-E58CA0 8FA0
-E58CA1 8BA7
-E58CA3 99B8
-E58CAA 94D9
-E58CAF 99B9
-E58CB1 99BA
-E58CB3 99BB
-E58CB8 99BC
-E58CB9 9543
-E58CBA 8BE6
-E58CBB 88E3
-E58CBF 93BD
-E58D80 99BD
-E58D81 8F5C
-E58D83 90E7
-E58D85 99BF
-E58D86 99BE
-E58D87 8FA1
-E58D88 8CDF
-E58D89 99C1
-E58D8A 94BC
-E58D8D 99C2
-E58D91 94DA
-E58D92 91B2
-E58D93 91EC
-E58D94 8BA6
-E58D97 93EC
-E58D98 9250
-E58D9A 948E
-E58D9C 966D
-E58D9E 99C4
-E58DA0 90E8
-E58DA6 8C54
-E58DA9 99C5
-E58DAE 99C6
-E58DAF 894B
-E58DB0 88F3
-E58DB1 8AEB
-E58DB3 91A6
-E58DB4 8B70
-E58DB5 9791
-E58DB7 99C9
-E58DB8 89B5
-E58DBB 99C8
-E58DBF 8BA8
-E58E82 99CA
-E58E84 96EF
-E58E96 99CB
-E58E98 97D0
-E58E9A 8CFA
-E58E9F 8CB4
-E58EA0 99CC
-E58EA5 99CE
-E58EA6 99CD
-E58EA8 907E
-E58EA9 8958
-E58EAD 897D
-E58EAE 99CF
-E58EB0 99D0
-E58EB3 8CB5
-E58EB6 99D1
-E58EBB 8B8E
-E58F82 8E51
-E58F83 99D2
-E58F88 9694
-E58F89 8DB3
-E58F8A 8B79
-E58F8B 9746
-E58F8C 916F
-E58F8D 94BD
-E58F8E 8EFB
-E58F94 8F66
-E58F96 8EE6
-E58F97 8EF3
-E58F99 8F96
-E58F9B 94BE
-E58F9F 99D5
-E58FA1 8962
-E58FA2 9170
-E58FA3 8CFB
-E58FA4 8CC3
-E58FA5 8BE5
-E58FA8 99D9
-E58FA9 9240
-E58FAA 91FC
-E58FAB 8BA9
-E58FAC 8FA2
-E58FAD 99DA
-E58FAE 99D8
-E58FAF 89C2
-E58FB0 91E4
-E58FB1 8EB6
-E58FB2 8E6A
-E58FB3 8945
-E58FB6 8A90
-E58FB7 8D86
-E58FB8 8E69
-E58FBA 99DB
-E59081 99DC
-E59083 8B68
-E59084 8A65
-E59088 8D87
-E59089 8B67
-E5908A 92DD
-E5908B 8944
-E5908C 93AF
-E5908D 96BC
-E5908E 8D40
-E5908F 9799
-E59090 9366
-E59091 8CFC
-E5909B 8C4E
-E5909D 99E5
-E5909F 8BE1
-E590A0 9669
-E590A6 94DB
-E590A9 99E4
-E590AB 8ADC
-E590AC 99DF
-E590AD 99E0
-E590AE 99E2
-E590B6 99E3
-E590B8 8B7A
-E590B9 9081
-E590BB 95AB
-E590BC 99E1
-E590BD 99DD
-E590BE 8CE1
-E59180 99DE
-E59182 9843
-E59186 95F0
-E59188 92E6
-E59189 8CE0
-E5918A 8D90
-E5918E 99E6
-E59191 93DB
-E5919F 99EA
-E591A8 8EFC
-E591AA 8EF4
-E591B0 99ED
-E591B1 99EB
-E591B3 96A1
-E591B5 99E8
-E591B6 99F1
-E591B7 99EC
-E591BB 99EF
-E591BC 8CC4
-E591BD 96BD
-E59280 99F0
-E59284 99F2
-E59286 99F4
-E5928B 8DEE
-E5928C 9861
-E5928E 99E9
-E5928F 99E7
-E59290 99F3
-E59292 99EE
-E592A2 99F6
-E592A4 9A42
-E592A5 99F8
-E592A8 99FC
-E592AB 9A40
-E592AC 99F9
-E592AF 9A5D
-E592B2 8DE7
-E592B3 8A50
-E592B8 99F7
-E592BC 9A44
-E592BD 88F4
-E592BE 9A43
-E59380 88A3
-E59381 9569
-E59382 9A41
-E59384 99FA
-E59387 99F5
-E59388 99FB
-E59389 8DC6
-E59398 9A45
-E593A1 88F5
-E593A2 9A4E
-E593A5 9A46
-E593A6 9A47
-E593A8 8FA3
-E593A9 9689
-E593AD 9A4C
-E593AE 9A4B
-E593B2 934E
-E593BA 9A4D
-E593BD 9A4A
-E59484 8953
-E59486 8DB4
-E59487 904F
-E5948F 9A48
-E59490 9382
-E59494 9A49
-E59496 88A0
-E594AE 9A53
-E594AF 9742
-E594B1 8FA5
-E594B3 9A59
-E594B8 9A58
-E594B9 9A4F
-E594BE 91C1
-E59580 9A50
-E59584 91ED
-E59585 9A55
-E59586 8FA4
-E5958C 9A52
-E5958F 96E2
-E59593 8C5B
-E59596 9A56
-E59597 9A57
-E5959C 9A54
-E5959D 9A5A
-E595A3 9A51
-E595BB 9A60
-E595BC 9A65
-E595BE 9A61
-E59680 9A5C
-E59683 9A66
-E59684 9150
-E59687 9A68
-E59689 8D41
-E5968A 9A5E
-E5968B 929D
-E59698 9A62
-E59699 9A5B
-E5969A 8AAB
-E5969C 8AEC
-E5969D 8A85
-E5969E 9A63
-E5969F 9A5F
-E596A7 8C96
-E596A8 9A69
-E596A9 9A67
-E596AA 9172
-E596AB 8B69
-E596AC 8BAA
-E596AE 9A64
-E596B0 8BF2
-E596B6 8963
-E59784 9A6D
-E59785 9A6B
-E59787 9AA5
-E59794 9A70
-E5979A 9A6A
-E5979C 9A6E
-E5979F 9A6C
-E597A3 8E6B
-E597A4 9A6F
-E597B7 9A72
-E597B9 9A77
-E597BD 9A75
-E597BE 9A74
-E59886 9251
-E59889 89C3
-E59894 9A71
-E59896 9A73
-E59897 8FA6
-E59898 8952
-E5989B 9A76
-E598A9 89DC
-E598AF 9A82
-E598B1 8FFA
-E598B2 9A7D
-E598B4 9A7B
-E598B6 9A7C
-E598B8 9A7E
-E59982 895C
-E5998C 9158
-E5998E 9A78
-E59990 9A79
-E5999B 8A9A
-E599A4 9A81
-E599A8 8AED
-E599AA 9A84
-E599AB 9A80
-E599AC 9A83
-E599B4 95AC
-E599B8 93D3
-E599BA 94B6
-E59A80 9A86
-E59A86 9A85
-E59A87 8A64
-E59A8A 9A87
-E59A8F 9A8A
-E59A94 9A89
-E59AA0 9A88
-E59AA2 9458
-E59AA5 9A8B
-E59AAE 9A8C
-E59AB4 9A8E
-E59AB6 9A8D
-E59ABC 9A90
-E59B80 9A93
-E59B81 9A91
-E59B82 9A8F
-E59B83 9A92
-E59B88 9A94
-E59B8E 9A95
-E59B91 9A96
-E59B93 9A97
-E59B97 9A98
-E59B98 9964
-E59B9A 8EFA
-E59B9B 8E6C
-E59B9E 89F1
-E59BA0 88F6
-E59BA3 9263
-E59BAE 9A99
-E59BB0 8DA2
-E59BB2 88CD
-E59BB3 907D
-E59BB9 9A9A
-E59BBA 8CC5
-E59BBD 8D91
-E59BBF 9A9C
-E59C80 9A9B
-E59C83 95DE
-E59C84 9A9D
-E59C88 9A9F
-E59C89 9A9E
-E59C8B 9AA0
-E59C8D 9AA1
-E59C8F 8C97
-E59C92 8980
-E59C93 9AA2
-E59C96 9AA4
-E59C98 9AA3
-E59C9C 9AA6
-E59C9F 9379
-E59CA6 9AA7
-E59CA7 88B3
-E59CA8 8DDD
-E59CAD 8C5C
-E59CB0 926E
-E59CB7 9AA8
-E59CB8 9AA9
-E59CBB 9AAB
-E59D80 9AAC
-E59D82 8DE2
-E59D87 8BCF
-E59D8A 9656
-E59D8E 9AAA
-E59D8F 9AAD
-E59D90 8DBF
-E59D91 8D42
-E59DA1 9AB1
-E59DA4 8DA3
-E59DA6 9252
-E59DA9 9AAE
-E59DAA 92D8
-E59DBF 9AB2
-E59E82 9082
-E59E88 9AB0
-E59E89 9AB3
-E59E8B 8C5E
-E59E93 9AB4
-E59EA0 9AB5
-E59EA2 8D43
-E59EA3 8A5F
-E59EA4 9AB7
-E59EAA 9AB8
-E59EB0 9AB9
-E59EB3 9AB6
-E59F80 9AAF
-E59F83 9ABA
-E59F86 9ABB
-E59F8B 9684
-E59F8E 8FE9
-E59F92 9ABD
-E59F93 9ABE
-E59F94 9ABC
-E59F96 9AC0
-E59F9C 9457
-E59F9F 88E6
-E59FA0 9575
-E59FA3 9AC1
-E59FB4 8FFB
-E59FB7 8EB7
-E59FB9 947C
-E59FBA 8AEE
-E59FBC 8DE9
-E5A080 9678
-E5A082 93B0
-E5A085 8C98
-E5A086 91CD
-E5A08A 9ABF
-E5A08B 9AC2
-E5A095 91C2
-E5A099 9AC3
-E5A09D 9AC4
-E5A0A1 9AC6
-E5A0A4 92E7
-E5A0AA 8AAC
-E5A0AF EA9F
-E5A0B0 8981
-E5A0B1 95F1
-E5A0B4 8FEA
-E5A0B5 9367
-E5A0BA 8DE4
-E5A0BD 9ACC
-E5A180 95BB
-E5A181 97DB
-E5A18A 89F2
-E5A18B 9AC8
-E5A191 9159
-E5A192 9ACB
-E5A194 9383
-E5A197 9368
-E5A198 9384
-E5A199 94B7
-E5A19A 92CB
-E5A19E 8DC7
-E5A1A2 9AC7
-E5A1A9 8996
-E5A1AB 9355
-E5A1B0 9AC9
-E5A1B2 9AC5
-E5A1B5 906F
-E5A1B9 9ACD
-E5A1BE 8F6D
-E5A283 8BAB
-E5A285 9ACE
-E5A293 95E6
-E5A297 919D
-E5A29C 92C4
-E5A29F 9AD0
-E5A2A8 966E
-E5A2AB 9AD1
-E5A2AE 9AD6
-E5A2B3 95AD
-E5A2B8 9AD5
-E5A2B9 9ACF
-E5A2BA 9AD2
-E5A2BB 9AD4
-E5A2BE 8DA4
-E5A381 95C7
-E5A385 9AD7
-E5A387 9264
-E5A38A 89F3
-E5A38C 8FEB
-E5A391 9AD9
-E5A393 9AD8
-E5A395 8D88
-E5A397 9ADA
-E5A398 9ADC
-E5A399 9ADB
-E5A39C 9ADE
-E5A39E 9AD3
-E5A39F 9AE0
-E5A3A4 9ADF
-E5A3A5 9ADD
-E5A3AB 8E6D
-E5A3AC 9070
-E5A3AE 9173
-E5A3AF 9AE1
-E5A3B0 90BA
-E5A3B1 88EB
-E5A3B2 9484
-E5A3B7 92D9
-E5A3B9 9AE3
-E5A3BA 9AE2
-E5A3BB 9AE4
-E5A3BC 9AE5
-E5A3BD 9AE6
-E5A482 9AE7
-E5A489 95CF
-E5A48A 9AE8
-E5A48F 89C4
-E5A490 9AE9
-E5A495 975B
-E5A496 8A4F
-E5A498 99C7
-E5A499 8F67
-E5A49A 91BD
-E5A49B 9AEA
-E5A49C 96E9
-E5A4A2 96B2
-E5A4A5 9AEC
-E5A4A7 91E5
-E5A4A9 9356
-E5A4AA 91BE
-E5A4AB 9576
-E5A4AC 9AED
-E5A4AD 9AEE
-E5A4AE 899B
-E5A4B1 8EB8
-E5A4B2 9AEF
-E5A4B7 88CE
-E5A4B8 9AF0
-E5A4BE 9AF1
-E5A584 8982
-E5A587 8AEF
-E5A588 93DE
-E5A589 95F2
-E5A58E 9AF5
-E5A58F 9174
-E5A590 9AF4
-E5A591 8C5F
-E5A594 967A
-E5A595 9AF3
-E5A597 9385
-E5A598 9AF7
-E5A59A 9AF6
-E5A5A0 9AF9
-E5A5A2 9AF8
-E5A5A5 899C
-E5A5A7 9AFA
-E5A5A8 8FA7
-E5A5A9 9AFC
-E5A5AA 9244
-E5A5AC 9AFB
-E5A5AE 95B1
-E5A5B3 8F97
-E5A5B4 937A
-E5A5B8 9B40
-E5A5BD 8D44
-E5A681 9B41
-E5A682 9440
-E5A683 94DC
-E5A684 96CF
-E5A68A 9444
-E5A68D 9B4A
-E5A693 8B57
-E5A696 9764
-E5A699 96AD
-E5A69B 9BAA
-E5A69D 9B42
-E5A6A3 9B45
-E5A6A5 91C3
-E5A6A8 9657
-E5A6AC 9369
-E5A6B2 9B46
-E5A6B9 9685
-E5A6BB 8DC8
-E5A6BE 8FA8
-E5A786 9B47
-E5A789 8E6F
-E5A78B 8E6E
-E5A790 88B7
-E5A791 8CC6
-E5A793 90A9
-E5A794 88CF
-E5A799 9B4B
-E5A79A 9B4C
-E5A79C 9B49
-E5A7A5 8957
-E5A7A6 8AAD
-E5A7A8 9B48
-E5A7AA 96C3
-E5A7AB 9550
-E5A7B6 88A6
-E5A7BB 88F7
-E5A7BF 8E70
-E5A881 88D0
-E5A883 88A1
-E5A889 9B51
-E5A891 9B4F
-E5A898 96BA
-E5A89A 9B52
-E5A89C 9B50
-E5A89F 9B4E
-E5A8A0 9050
-E5A8A5 9B4D
-E5A8A9 95D8
-E5A8AF 8CE2
-E5A8B5 9B56
-E5A8B6 9B57
-E5A8BC 8FA9
-E5A980 9B53
-E5A981 984B
-E5A986 946B
-E5A989 9B55
-E5A99A 8DA5
-E5A9A2 9B58
-E5A9A6 9577
-E5A9AA 9B59
-E5A9AC 9B54
-E5A9BF 96B9
-E5AA92 947D
-E5AA9A 9B5A
-E5AA9B 9551
-E5AABC 9B5B
-E5AABD 9B5F
-E5AABE 9B5C
-E5AB81 89C5
-E5AB82 9B5E
-E5AB89 8EB9
-E5AB8B 9B5D
-E5AB8C 8C99
-E5AB90 9B6B
-E5AB96 9B64
-E5AB97 9B61
-E5ABA1 9284
-E5ABA3 9B60
-E5ABA6 9B62
-E5ABA9 9B63
-E5ABBA 9B65
-E5ABBB 9B66
-E5AC89 8AF0
-E5AC8B 9B68
-E5AC8C 9B67
-E5AC96 9B69
-E5ACA2 8FEC
-E5ACAA 9B6C
-E5ACAC 92DA
-E5ACB0 8964
-E5ACB2 9B6A
-E5ACB6 9B6D
-E5ACBE 9B6E
-E5AD80 9B71
-E5AD83 9B6F
-E5AD85 9B70
-E5AD90 8E71
-E5AD91 9B72
-E5AD94 8D45
-E5AD95 9B73
-E5AD97 8E9A
-E5AD98 91B6
-E5AD9A 9B74
-E5AD9B 9B75
-E5AD9C 8E79
-E5AD9D 8D46
-E5AD9F 96D0
-E5ADA3 8B47
-E5ADA4 8CC7
-E5ADA5 9B76
-E5ADA6 8A77
-E5ADA9 9B77
-E5ADAB 91B7
-E5ADB0 9B78
-E5ADB1 9BA1
-E5ADB3 9B79
-E5ADB5 9B7A
-E5ADB8 9B7B
-E5ADBA 9B7D
-E5AE80 9B7E
-E5AE83 9B80
-E5AE85 91EE
-E5AE87 8946
-E5AE88 8EE7
-E5AE89 88C0
-E5AE8B 9176
-E5AE8C 8AAE
-E5AE8D 8EB3
-E5AE8F 8D47
-E5AE95 9386
-E5AE97 8F40
-E5AE98 8AAF
-E5AE99 9288
-E5AE9A 92E8
-E5AE9B 88B6
-E5AE9C 8B58
-E5AE9D 95F3
-E5AE9F 8EC0
-E5AEA2 8B71
-E5AEA3 90E9
-E5AEA4 8EBA
-E5AEA5 9747
-E5AEA6 9B81
-E5AEAE 8B7B
-E5AEB0 8DC9
-E5AEB3 8A51
-E5AEB4 8983
-E5AEB5 8FAA
-E5AEB6 89C6
-E5AEB8 9B82
-E5AEB9 9765
-E5AEBF 8F68
-E5AF82 8EE2
-E5AF83 9B83
-E5AF84 8AF1
-E5AF85 93D0
-E5AF86 96A7
-E5AF87 9B84
-E5AF89 9B85
-E5AF8C 9578
-E5AF90 9B87
-E5AF92 8AA6
-E5AF93 8BF5
-E5AF94 9B86
-E5AF9B 8AB0
-E5AF9D 9051
-E5AF9E 9B8B
-E5AF9F 8E40
-E5AFA1 89C7
-E5AFA2 9B8A
-E5AFA4 9B88
-E5AFA5 9B8C
-E5AFA6 9B89
-E5AFA7 944A
-E5AFA8 9ECB
-E5AFA9 9052
-E5AFAB 9B8D
-E5AFAE 97BE
-E5AFB0 9B8E
-E5AFB3 9B90
-E5AFB5 929E
-E5AFB6 9B8F
-E5AFB8 90A1
-E5AFBA 8E9B
-E5AFBE 91CE
-E5AFBF 8EF5
-E5B081 9595
-E5B082 90EA
-E5B084 8ECB
-E5B085 9B91
-E5B086 8FAB
-E5B087 9B92
-E5B088 9B93
-E5B089 88D1
-E5B08A 91B8
-E5B08B 9071
-E5B08D 9B94
-E5B08E 93B1
-E5B08F 8FAC
-E5B091 8FAD
-E5B093 9B95
-E5B096 90EB
-E5B09A 8FAE
-E5B0A0 9B96
-E5B0A2 9B97
-E5B0A4 96DE
-E5B0A8 9B98
-E5B0AD 8BC4
-E5B0B1 8F41
-E5B0B8 9B99
-E5B0B9 9B9A
-E5B0BA 8EDA
-E5B0BB 904B
-E5B0BC 93F2
-E5B0BD 9073
-E5B0BE 94F6
-E5B0BF 9441
-E5B180 8BC7
-E5B181 9B9B
-E5B185 8B8F
-E5B186 9B9C
-E5B188 8BFC
-E5B18A 93CD
-E5B18B 89AE
-E5B18D 8E72
-E5B18E 9B9D
-E5B18F 9BA0
-E5B190 9B9F
-E5B191 8BFB
-E5B193 9B9E
-E5B195 9357
-E5B19E 91AE
-E5B1A0 936A
-E5B1A1 8EC6
-E5B1A4 9177
-E5B1A5 979A
-E5B1AC 9BA2
-E5B1AE 9BA3
-E5B1AF 93D4
-E5B1B1 8E52
-E5B1B6 9BA5
-E5B1B9 9BA6
-E5B28C 9BA7
-E5B290 8AF2
-E5B291 9BA8
-E5B294 9BA9
-E5B2A1 89AA
-E5B2A8 915A
-E5B2A9 8AE2
-E5B2AB 9BAB
-E5B2AC 96A6
-E5B2B1 91D0
-E5B2B3 8A78
-E5B2B6 9BAD
-E5B2B7 9BAF
-E5B2B8 8ADD
-E5B2BB 9BAC
-E5B2BC 9BAE
-E5B2BE 9BB1
-E5B385 9BB0
-E5B387 9BB2
-E5B399 9BB3
-E5B3A0 93BB
-E5B3A1 8BAC
-E5B3A8 89E3
-E5B3A9 9BB4
-E5B3AA 9BB9
-E5B3AD 9BB7
-E5B3AF 95F5
-E5B3B0 95F4
-E5B3B6 9387
-E5B3BA 9BB6
-E5B3BB 8F73
-E5B3BD 9BB5
-E5B487 9092
-E5B48B 9BBA
-E5B48E 8DE8
-E5B491 9BC0
-E5B494 9BC1
-E5B495 9BBB
-E5B496 8A52
-E5B497 9BBC
-E5B498 9BC5
-E5B499 9BC4
-E5B49A 9BC3
-E5B49B 9BBF
-E5B49F 9BBE
-E5B4A2 9BC2
-E5B4A9 95F6
-E5B58B 9BC9
-E5B58C 9BC6
-E5B58E 9BC8
-E5B590 9792
-E5B592 9BC7
-E5B59C 9BBD
-E5B5A9 9093
-E5B5AC 9BCA
-E5B5AF 8DB5
-E5B5B3 9BCB
-E5B5B6 9BCC
-E5B682 9BCF
-E5B684 9BCE
-E5B687 9BCD
-E5B68B 9388
-E5B68C 9BB8
-E5B690 9BD5
-E5B69D 9BD1
-E5B6A2 9BD0
-E5B6AC 9BD2
-E5B6AE 9BD3
-E5B6B7 9BD6
-E5B6BA 97E4
-E5B6BC 9BD7
-E5B6BD 9BD4
-E5B789 9BD8
-E5B78C 8ADE
-E5B78D 9BD9
-E5B792 9BDB
-E5B793 9BDA
-E5B796 9BDC
-E5B79B 9BDD
-E5B79D 90EC
-E5B79E 8F42
-E5B7A1 8F84
-E5B7A3 9183
-E5B7A5 8D48
-E5B7A6 8DB6
-E5B7A7 8D49
-E5B7A8 8B90
-E5B7AB 9BDE
-E5B7AE 8DB7
-E5B7B1 8CC8
-E5B7B2 9BDF
-E5B7B3 96A4
-E5B7B4 9462
-E5B7B5 9BE0
-E5B7B7 8D4A
-E5B7BB 8AAA
-E5B7BD 9246
-E5B7BE 8BD0
-E5B882 8E73
-E5B883 957A
-E5B886 94BF
-E5B88B 9BE1
-E5B88C 8AF3
-E5B891 9BE4
-E5B896 929F
-E5B899 9BE3
-E5B89A 9BE2
-E5B89B 9BE5
-E5B89D 92E9
-E5B8A5 9083
-E5B8AB 8E74
-E5B8AD 90C8
-E5B8AF 91D1
-E5B8B0 8B41
-E5B8B3 92A0
-E5B8B6 9BE6
-E5B8B7 9BE7
-E5B8B8 8FED
-E5B8BD 9658
-E5B980 9BEA
-E5B983 9BE9
-E5B984 9BE8
-E5B985 959D
-E5B987 9BF1
-E5B98C 9679
-E5B98E 9BEB
-E5B994 9BED
-E5B995 968B
-E5B997 9BEC
-E5B99F 9BEE
-E5B9A1 94A6
-E5B9A2 9BEF
-E5B9A3 95BC
-E5B9A4 9BF0
-E5B9B2 8AB1
-E5B9B3 95BD
-E5B9B4 944E
-E5B9B5 9BF2
-E5B9B6 9BF3
-E5B9B8 8D4B
-E5B9B9 8AB2
-E5B9BA 9BF4
-E5B9BB 8CB6
-E5B9BC 9763
-E5B9BD 9748
-E5B9BE 8AF4
-E5B9BF 9BF6
-E5BA81 92A1
-E5BA83 8D4C
-E5BA84 8FAF
-E5BA87 94DD
-E5BA8A 8FB0
-E5BA8F 8F98
-E5BA95 92EA
-E5BA96 95F7
-E5BA97 9358
-E5BA9A 8D4D
-E5BA9C 957B
-E5BAA0 9BF7
-E5BAA6 9378
-E5BAA7 8DC0
-E5BAAB 8CC9
-E5BAAD 92EB
-E5BAB5 88C1
-E5BAB6 8F8E
-E5BAB7 8D4E
-E5BAB8 9766
-E5BB81 9BF8
-E5BB82 9BF9
-E5BB83 9470
-E5BB88 9BFA
-E5BB89 97F5
-E5BB8A 984C
-E5BB8F 9BFC
-E5BB90 9BFB
-E5BB93 8A66
-E5BB96 9C40
-E5BB9A 9C43
-E5BB9B 9C44
-E5BB9D 9C42
-E5BB9F 955F
-E5BBA0 8FB1
-E5BBA1 9C46
-E5BBA2 9C45
-E5BBA3 9C41
-E5BBA8 9C47
-E5BBA9 9C48
-E5BBAC 9C49
-E5BBB0 9C4C
-E5BBB1 9C4A
-E5BBB3 9C4B
-E5BBB4 9C4D
-E5BBB6 8984
-E5BBB7 92EC
-E5BBB8 9C4E
-E5BBBA 8C9A
-E5BBBB 89F4
-E5BBBC 9455
-E5BBBE 9C4F
-E5BBBF 93F9
-E5BC81 95D9
-E5BC83 9C50
-E5BC84 984D
-E5BC89 9C51
-E5BC8A 95BE
-E5BC8B 9C54
-E5BC8C 989F
-E5BC8D 98AF
-E5BC8F 8EAE
-E5BC90 93F3
-E5BC91 9C55
-E5BC93 8B7C
-E5BC94 92A2
-E5BC95 88F8
-E5BC96 9C56
-E5BC97 95A4
-E5BC98 8D4F
-E5BC9B 926F
-E5BC9F 92ED
-E5BCA5 96ED
-E5BCA6 8CB7
-E5BCA7 8CCA
-E5BCA9 9C57
-E5BCAD 9C58
-E5BCAF 9C5E
-E5BCB1 8EE3
-E5BCB5 92A3
-E5BCB7 8BAD
-E5BCB8 9C59
-E5BCBC 954A
-E5BCBE 9265
-E5BD81 9C5A
-E5BD88 9C5B
-E5BD8A 8BAE
-E5BD8C 9C5C
-E5BD8E 9C5D
-E5BD91 9C5F
-E5BD93 9396
-E5BD96 9C60
-E5BD97 9C61
-E5BD99 9C62
-E5BD9C 9C53
-E5BD9D 9C52
-E5BDA1 9C63
-E5BDA2 8C60
-E5BDA6 9546
-E5BDA9 8DCA
-E5BDAA 9556
-E5BDAB 92A4
-E5BDAC 956A
-E5BDAD 9C64
-E5BDB0 8FB2
-E5BDB1 8965
-E5BDB3 9C65
-E5BDB7 9C66
-E5BDB9 96F0
-E5BDBC 94DE
-E5BDBF 9C69
-E5BE80 899D
-E5BE81 90AA
-E5BE82 9C68
-E5BE83 9C67
-E5BE84 8C61
-E5BE85 91D2
-E5BE87 9C6D
-E5BE88 9C6B
-E5BE8A 9C6A
-E5BE8B 97A5
-E5BE8C 8CE3
-E5BE90 8F99
-E5BE91 9C6C
-E5BE92 936B
-E5BE93 8F5D
-E5BE97 93BE
-E5BE98 9C70
-E5BE99 9C6F
-E5BE9E 9C6E
-E5BEA0 9C71
-E5BEA1 8CE4
-E5BEA8 9C72
-E5BEA9 959C
-E5BEAA 8F7A
-E5BEAD 9C73
-E5BEAE 94F7
-E5BEB3 93BF
-E5BEB4 92A5
-E5BEB9 934F
-E5BEBC 9C74
-E5BEBD 8B4A
-E5BF83 9053
-E5BF85 954B
-E5BF8C 8AF5
-E5BF8D 9445
-E5BF96 9C75
-E5BF97 8E75
-E5BF98 9659
-E5BF99 965A
-E5BF9C 899E
-E5BF9D 9C7A
-E5BFA0 9289
-E5BFA4 9C77
-E5BFAB 89F5
-E5BFB0 9CAB
-E5BFB1 9C79
-E5BFB5 944F
-E5BFB8 9C78
-E5BFBB 9C76
-E5BFBD 8D9A
-E5BFBF 9C7C
-E6808E 9C83
-E6808F 9C89
-E68090 9C81
-E68092 937B
-E68095 9C86
-E68096 957C
-E68099 9C80
-E6809B 9C85
-E6809C 97E5
-E6809D 8E76
-E680A0 91D3
-E680A1 9C7D
-E680A5 8B7D
-E680A6 9C88
-E680A7 90AB
-E680A8 8985
-E680A9 9C82
-E680AA 89F6
-E680AB 9C87
-E680AF 8BAF
-E680B1 9C84
-E680BA 9C8A
-E68181 9C8C
-E68182 9C96
-E68183 9C94
-E68186 9C91
-E6818A 9C90
-E6818B 97F6
-E6818D 9C92
-E68190 8BB0
-E68192 8D50
-E68195 8F9A
-E68199 9C99
-E6819A 9C8B
-E6819F 9C8F
-E681A0 9C7E
-E681A2 89F8
-E681A3 9C93
-E681A4 9C95
-E681A5 9270
-E681A8 8DA6
-E681A9 89B6
-E681AA 9C8D
-E681AB 9C98
-E681AC 9C97
-E681AD 8BB1
-E681AF 91A7
-E681B0 8A86
-E681B5 8C62
-E681B7 9C8E
-E68281 9C9A
-E68283 9C9D
-E68284 9C9F
-E68289 8EBB
-E6828B 9CA5
-E6828C 92EE
-E6828D 9C9B
-E68292 9CA3
-E68294 89F7
-E68296 9CA1
-E68297 9CA2
-E6829A 9C9E
-E6829B 9CA0
-E6829F 8CE5
-E682A0 9749
-E682A3 8AB3
-E682A6 8978
-E682A7 9CA4
-E682A9 9459
-E682AA 88AB
-E682B2 94DF
-E682B3 9C7B
-E682B4 9CAA
-E682B5 9CAE
-E682B6 96E3
-E682B8 9CA7
-E682BC 9389
-E682BD 9CAC
-E68385 8FEE
-E68386 9CAD
-E68387 93D5
-E68391 9866
-E68393 9CA9
-E68398 9CAF
-E6839A 8D9B
-E6839C 90C9
-E6839F 88D2
-E683A0 9CA8
-E683A1 9CA6
-E683A3 9179
-E683A7 9C9C
-E683A8 8E53
-E683B0 91C4
-E683B1 9CBB
-E683B3 917A
-E683B4 9CB6
-E683B6 9CB3
-E683B7 9CB4
-E683B9 8EE4
-E683BA 9CB7
-E683BB 9CBA
-E68480 9CB5
-E68481 8F44
-E68483 9CB8
-E68486 9CB2
-E68488 96FA
-E68489 96F9
-E6848D 9CBC
-E6848E 9CBD
-E6848F 88D3
-E68495 9CB1
-E6849A 8BF0
-E6849B 88A4
-E6849F 8AB4
-E684A1 9CB9
-E684A7 9CC1
-E684A8 9CC0
-E684AC 9CC5
-E684B4 9CC6
-E684BC 9CC4
-E684BD 9CC7
-E684BE 9CBF
-E684BF 9CC3
-E68582 9CC8
-E68584 9CC9
-E68587 9CBE
-E68588 8E9C
-E6858A 9CC2
-E6858B 91D4
-E6858C 8D51
-E6858D 9CB0
-E6858E 9054
-E68593 9CD6
-E68595 95E7
-E68598 9CCC
-E68599 9CCD
-E6859A 9CCE
-E6859D 9CD5
-E6859F 9CD4
-E685A2 969D
-E685A3 8AB5
-E685A5 9CD2
-E685A7 8C64
-E685A8 8A53
-E685AB 9CCF
-E685AE 97B6
-E685AF 9CD1
-E685B0 88D4
-E685B1 9CD3
-E685B3 9CCA
-E685B4 9CD0
-E685B5 9CD7
-E685B6 8C63
-E685B7 9CCB
-E685BE 977C
-E68682 974A
-E68687 9CDA
-E6868A 9CDE
-E6868E 919E
-E68690 97F7
-E68691 9CDF
-E68694 9CDC
-E68696 9CD9
-E68699 9CD8
-E6869A 9CDD
-E686A4 95AE
-E686A7 93B2
-E686A9 8C65
-E686AB 9CE0
-E686AC 9CDB
-E686AE 9CE1
-E686B2 8C9B
-E686B6 89AF
-E686BA 9CE9
-E686BE 8AB6
-E68783 9CE7
-E68786 9CE8
-E68787 8DA7
-E68788 9CE6
-E68789 9CE4
-E6878A 9CE3
-E6878B 9CEA
-E6878C 9CE2
-E6878D 9CEC
-E68790 89F9
-E687A3 9CEE
-E687A6 9CED
-E687B2 92A6
-E687B4 9CF1
-E687B6 9CEF
-E687B7 9CE5
-E687B8 8C9C
-E687BA 9CF0
-E687BC 9CF4
-E687BD 9CF3
-E687BE 9CF5
-E687BF 9CF2
-E68880 9CF6
-E68888 9CF7
-E68889 9CF8
-E6888A 95E8
-E6888C 9CFA
-E6888D 9CF9
-E6888E 8F5E
-E68890 90AC
-E68891 89E4
-E68892 89FA
-E68894 9CFB
-E68896 88BD
-E6889A 90CA
-E6889B 9CFC
-E6889D E6C1
-E6889E 9D40
-E6889F 8C81
-E688A1 9D41
-E688A6 90ED
-E688AA 9D42
-E688AE 9D43
-E688AF 8B59
-E688B0 9D44
-E688B2 9D45
-E688B3 9D46
-E688B4 91D5
-E688B8 8CCB
-E688BB 96DF
-E688BF 965B
-E68980 8F8A
-E68981 9D47
-E68987 90EE
-E68988 E7BB
-E68989 94E0
-E6898B 8EE8
-E6898D 8DCB
-E6898E 9D48
-E68993 91C5
-E68995 95A5
-E68998 91EF
-E6899B 9D4B
-E6899E 9D49
-E689A0 9D4C
-E689A3 9D4A
-E689A8 9D4D
-E689AE 95AF
-E689B1 88B5
-E689B6 957D
-E689B9 94E1
-E689BC 9D4E
-E689BE 9D51
-E689BF 8FB3
-E68A80 8B5A
-E68A82 9D4F
-E68A83 9D56
-E68A84 8FB4
-E68A89 9D50
-E68A8A 9463
-E68A91 977D
-E68A92 9D52
-E68A93 9D53
-E68A94 9D57
-E68A95 938A
-E68A96 9D54
-E68A97 8D52
-E68A98 90DC
-E68A9B 9D65
-E68A9C 94B2
-E68A9E 91F0
-E68AAB 94E2
-E68AAC 9DAB
-E68AB1 95F8
-E68AB5 92EF
-E68AB9 9695
-E68ABB 9D5A
-E68ABC 899F
-E68ABD 928A
-E68B82 9D63
-E68B85 9253
-E68B86 9D5D
-E68B87 9D64
-E68B88 9D5F
-E68B89 9D66
-E68B8A 9D62
-E68B8C 9D61
-E68B8D 948F
-E68B8F 9D5B
-E68B90 89FB
-E68B91 9D59
-E68B92 8B91
-E68B93 91F1
-E68B94 9D55
-E68B97 9D58
-E68B98 8D53
-E68B99 90D9
-E68B9B 8FB5
-E68B9C 9D60
-E68B9D 9471
-E68BA0 8B92
-E68BA1 8A67
-E68BAC 8A87
-E68BAD 9040
-E68BAE 9D68
-E68BAF 9D6D
-E68BB1 9D69
-E68BB3 8C9D
-E68BB5 9D6E
-E68BB6 8E41
-E68BB7 8D89
-E68BBE 8F45
-E68BBF 9D5C
-E68C81 8E9D
-E68C82 9D6B
-E68C87 8E77
-E68C88 9D6C
-E68C89 88C2
-E68C8C 9D67
-E68C91 92A7
-E68C99 8B93
-E68C9F 8BB2
-E68CA7 9D6A
-E68CA8 88A5
-E68CAB 8DC1
-E68CAF 9055
-E68CBA 92F0
-E68CBD 94D2
-E68CBE 9D70
-E68CBF 917D
-E68D89 91A8
-E68D8C 8E4A
-E68D8D 9D71
-E68D8F 9D73
-E68D90 9D6F
-E68D95 95DF
-E68D97 92BB
-E68D9C 917B
-E68DA7 95F9
-E68DA8 8ECC
-E68DA9 9D80
-E68DAB 9D7E
-E68DAE 9098
-E68DB2 8C9E
-E68DB6 9D78
-E68DB7 8FB7
-E68DBA 93E6
-E68DBB 9450
-E68E80 9D76
-E68E83 917C
-E68E88 8EF6
-E68E89 9D7B
-E68E8C 8FB6
-E68E8E 9D75
-E68E8F 9D7A
-E68E92 9472
-E68E96 9D74
-E68E98 8C40
-E68E9B 8A7C
-E68E9F 9D7C
-E68EA0 97A9
-E68EA1 8DCC
-E68EA2 9254
-E68EA3 9D79
-E68EA5 90DA
-E68EA7 8D54
-E68EA8 9084
-E68EA9 8986
-E68EAA 915B
-E68EAB 9D77
-E68EAC 8B64
-E68EB2 8C66
-E68EB4 92CD
-E68EB5 9D7D
-E68EBB 917E
-E68EBE 9D81
-E68F80 9D83
-E68F83 91B5
-E68F84 9D89
-E68F86 9D84
-E68F89 9D86
-E68F8F 9560
-E68F90 92F1
-E68F92 9D87
-E68F96 974B
-E68F9A 9767
-E68F9B 8AB7
-E68FA1 88AC
-E68FA3 9D85
-E68FA9 9D82
-E68FAE 8AF6
-E68FB4 8987
-E68FB6 9D88
-E68FBA 9768
-E69086 9D8C
-E6908D 91B9
-E6908F 9D93
-E69093 9D8D
-E69096 9D8A
-E69097 9D91
-E6909C 9D72
-E690A6 9D8E
-E690A8 9D92
-E690AC 94C0
-E690AD 938B
-E690B4 9D8B
-E690B6 9D8F
-E690BA 8C67
-E690BE 8DEF
-E69182 90DB
-E6918E 9D97
-E69198 9345
-E691A7 9D94
-E691A9 9680
-E691AF 9D95
-E691B6 9D96
-E691B8 96CC
-E691BA 90A0
-E69283 8C82
-E69288 9D9D
-E69292 8E54
-E69293 9D9A
-E69295 9D99
-E6929A 9451
-E6929E 93B3
-E692A4 9350
-E692A5 9D9B
-E692A9 9D9C
-E692AB 958F
-E692AD 9464
-E692AE 8E42
-E692B0 90EF
-E692B2 966F
-E692B9 8A68
-E692BB 9DA3
-E692BC 9D9E
-E69381 9769
-E69382 9DA5
-E69385 9DA1
-E69387 9DA2
-E6938D 9180
-E69392 9DA0
-E69394 9D5E
-E69398 9DA4
-E6939A 9D9F
-E693A0 9DA9
-E693A1 9DAA
-E693A2 9346
-E693A3 9DAC
-E693A6 8E43
-E693A7 9DA7
-E693AC 8B5B
-E693AF 9DAD
-E693B1 9DA6
-E693B2 9DB1
-E693B4 9DB0
-E693B6 9DAF
-E693BA 9DB2
-E693BD 9DB4
-E693BE 8FEF
-E69480 9DB3
-E69485 9DB7
-E69498 9DB5
-E6949C 9DB6
-E6949D 9D90
-E694A3 9DB9
-E694A4 9DB8
-E694AA 9D98
-E694AB 9DBA
-E694AC 9DAE
-E694AF 8E78
-E694B4 9DBB
-E694B5 9DBC
-E694B6 9DBE
-E694B7 9DBD
-E694B8 9DBF
-E694B9 89FC
-E694BB 8D55
-E694BE 95FA
-E694BF 90AD
-E69585 8CCC
-E69588 9DC1
-E6958D 9DC4
-E6958F 9571
-E69591 8B7E
-E69595 9DC3
-E69596 9DC2
-E69597 9473
-E69598 9DC5
-E69599 8BB3
-E6959D 9DC7
-E6959E 9DC6
-E695A2 8AB8
-E695A3 8E55
-E695A6 93D6
-E695AC 8C68
-E695B0 9094
-E695B2 9DC8
-E695B4 90AE
-E695B5 9347
-E695B7 957E
-E695B8 9DC9
-E69682 9DCA
-E69683 9DCB
-E69687 95B6
-E69688 9B7C
-E69689 90C4
-E6968C 956B
-E6968E 8DD6
-E69690 94E3
-E69691 94C1
-E69697 936C
-E69699 97BF
-E6969B 9DCD
-E6969C 8ECE
-E6969F 9DCE
-E696A1 88B4
-E696A4 8BD2
-E696A5 90CB
-E696A7 9580
-E696AB 9DCF
-E696AC 8E61
-E696AD 9266
-E696AF 8E7A
-E696B0 9056
-E696B7 9DD0
-E696B9 95FB
-E696BC 8997
-E696BD 8E7B
-E69781 9DD3
-E69783 9DD1
-E69784 9DD4
-E69785 97B7
-E69786 9DD2
-E6978B 90F9
-E6978C 9DD5
-E6978F 91B0
-E69792 9DD6
-E69797 8AF8
-E69799 9DD8
-E6979B 9DD7
-E697A0 9DD9
-E697A1 9DDA
-E697A2 8AF9
-E697A5 93FA
-E697A6 9255
-E697A7 8B8C
-E697A8 8E7C
-E697A9 9181
-E697AC 8F7B
-E697AD 88AE
-E697B1 9DDB
-E697BA 89A0
-E697BB 9DDF
-E69882 8D56
-E69883 9DDE
-E69886 8DA9
-E69887 8FB8
-E6988A 9DDD
-E6988C 8FB9
-E6988E 96BE
-E6988F 8DA8
-E69893 88D5
-E69894 90CC
-E6989C 9DE4
-E6989F 90AF
-E698A0 8966
-E698A5 8F74
-E698A7 9686
-E698A8 8DF0
-E698AD 8FBA
-E698AF 90A5
-E698B4 9DE3
-E698B5 9DE1
-E698B6 9DE2
-E698BC 928B
-E698BF 9E45
-E69981 9DE8
-E69982 8E9E
-E69983 8D57
-E69984 9DE6
-E69989 9DE7
-E6998B 9057
-E6998F 9DE5
-E69992 8E4E
-E6999D 9DEA
-E6999E 9DE9
-E6999F 9DEE
-E699A2 9DEF
-E699A4 9DEB
-E699A6 8A41
-E699A7 9DEC
-E699A8 9DED
-E699A9 94D3
-E699AE 9581
-E699AF 8C69
-E699B0 9DF0
-E699B4 90B0
-E699B6 8FBB
-E699BA 9271
-E69A81 8BC5
-E69A83 9DF1
-E69A84 9DF5
-E69A87 89C9
-E69A88 9DF2
-E69A89 9DF4
-E69A8E 9DF3
-E69A91 8F8B
-E69A96 9267
-E69A97 88C3
-E69A98 9DF6
-E69A9D 9DF7
-E69AA2 92A8
-E69AA6 97EF
-E69AAB 8E62
-E69AAE 95E9
-E69AB4 965C
-E69AB8 9E41
-E69AB9 9DF9
-E69ABC 9DFC
-E69ABE 9DFB
-E69B81 9DF8
-E69B84 9E40
-E69B87 93DC
-E69B89 9DFA
-E69B96 9E42
-E69B99 8F8C
-E69B9A 9E43
-E69B9C 976A
-E69B9D 9498
-E69BA0 9E44
-E69BA6 9E46
-E69BA9 9E47
-E69BB0 9E48
-E69BB2 8BC8
-E69BB3 8967
-E69BB4 8D58
-E69BB5 9E49
-E69BB7 9E4A
-E69BB8 8F91
-E69BB9 9182
-E69BBC 99D6
-E69BBD 915D
-E69BBE 915C
-E69BBF 91D6
-E69C80 8DC5
-E69C83 98F0
-E69C88 8C8E
-E69C89 974C
-E69C8B 95FC
-E69C8D 959E
-E69C8F 9E4B
-E69C94 8DF1
-E69C95 92BD
-E69C96 9E4C
-E69C97 984E
-E69C9B 965D
-E69C9D 92A9
-E69C9E 9E4D
-E69C9F 8AFA
-E69CA6 9E4E
-E69CA7 9E4F
-E69CA8 96D8
-E69CAA 96A2
-E69CAB 9696
-E69CAC 967B
-E69CAD 8E44
-E69CAE 9E51
-E69CB1 8EE9
-E69CB4 9670
-E69CB6 9E53
-E69CB7 9E56
-E69CB8 9E55
-E69CBA 8AF7
-E69CBD 8B80
-E69CBF 9E52
-E69D81 9E54
-E69D86 9E57
-E69D89 9099
-E69D8E 979B
-E69D8F 88C7
-E69D90 8DDE
-E69D91 91BA
-E69D93 8EDB
-E69D96 8FF1
-E69D99 9E5A
-E69D9C 936D
-E69D9E 9E58
-E69D9F 91A9
-E69DA0 9E59
-E69DA1 8FF0
-E69DA2 96DB
-E69DA3 9E5B
-E69DA4 9E5C
-E69DA5 9788
-E69DAA 9E61
-E69DAD 8D59
-E69DAF 9474
-E69DB0 9E5E
-E69DB1 938C
-E69DB2 9DDC
-E69DB3 9DE0
-E69DB5 8B6E
-E69DB7 9466
-E69DBC 9E60
-E69DBE 8FBC
-E69DBF 94C2
-E69E85 9E66
-E69E87 94F8
-E69E89 9E5D
-E69E8B 9E63
-E69E8C 9E62
-E69E90 90CD
-E69E95 968D
-E69E97 97D1
-E69E9A 9687
-E69E9C 89CA
-E69E9D 8E7D
-E69EA0 9867
-E69EA1 9E65
-E69EA2 9095
-E69EA6 9E64
-E69EA9 9E5F
-E69EAF 8CCD
-E69EB3 9E6B
-E69EB4 9E69
-E69EB6 89CB
-E69EB7 9E67
-E69EB8 9E6D
-E69EB9 9E73
-E69F81 91C6
-E69F84 95BF
-E69F86 9E75
-E69F8A 9541
-E69F8E 9E74
-E69F8F 9490
-E69F90 965E
-E69F91 8AB9
-E69F93 90F5
-E69F94 8F5F
-E69F98 92D1
-E69F9A 974D
-E69F9D 9E70
-E69F9E 9E6F
-E69FA2 9E71
-E69FA4 9E6E
-E69FA7 9E76
-E69FA9 9E6C
-E69FAC 9E6A
-E69FAE 9E72
-E69FAF 9E68
-E69FB1 928C
-E69FB3 96F6
-E69FB4 8EC4
-E69FB5 8DF2
-E69FBB 8DB8
-E69FBE 968F
-E69FBF 8A60
-E6A082 92CC
-E6A083 93C8
-E6A084 8968
-E6A093 90F0
-E6A096 90B2
-E6A097 8C49
-E6A09E 9E78
-E6A0A1 8D5A
-E6A0A2 8A9C
-E6A0A9 9E7A
-E6A0AA 8A94
-E6A0AB 9E81
-E6A0B2 9E7D
-E6A0B4 90F1
-E6A0B8 8A6A
-E6A0B9 8DAA
-E6A0BC 8A69
-E6A0BD 8DCD
-E6A180 9E7B
-E6A181 8C85
-E6A182 8C6A
-E6A183 938D
-E6A186 9E79
-E6A188 88C4
-E6A18D 9E7C
-E6A18E 9E7E
-E6A190 8BCB
-E6A191 8C4B
-E6A193 8ABA
-E6A194 8B6A
-E6A199 9E82
-E6A19C 8DF7
-E6A19D 9691
-E6A19F 8E56
-E6A1A3 9E83
-E6A1A7 954F
-E6A1B4 9E8F
-E6A1B6 89B1
-E6A1B7 9E84
-E6A1BE 9E95
-E6A1BF 9E85
-E6A281 97C0
-E6A283 9E8C
-E6A285 947E
-E6A28D 9E94
-E6A28F 9E87
-E6A293 88B2
-E6A294 9E89
-E6A297 8D5B
-E6A29B 9E8B
-E6A29D 9E8A
-E6A29F 9E86
-E6A2A0 9E91
-E6A2A2 8FBD
-E6A2A6 9AEB
-E6A2A7 8CE6
-E6A2A8 979C
-E6A2AD 9E88
-E6A2AF 92F2
-E6A2B0 8A42
-E6A2B1 8DAB
-E6A2B3 9E80
-E6A2B5 9E90
-E6A2B6 8A81
-E6A2B9 9E8E
-E6A2BA 9E92
-E6A2BC 938E
-E6A384 8AFC
-E6A386 9EB0
-E6A389 96C7
-E6A38A 9E97
-E6A38B 8AFB
-E6A38D 9E9E
-E6A392 965F
-E6A394 9E9F
-E6A395 9EA1
-E6A397 9EA5
-E6A398 9E99
-E6A39A 9249
-E6A39F 938F
-E6A3A0 9EA9
-E6A3A1 9E9C
-E6A3A3 9EA6
-E6A3A7 9EA0
-E6A3AE 9058
-E6A3AF 9EAA
-E6A3B2 90B1
-E6A3B9 9EA8
-E6A3BA 8ABB
-E6A480 986F
-E6A481 9E96
-E6A484 9EA4
-E6A485 88D6
-E6A488 9E98
-E6A48B 96B8
-E6A48C 9E9D
-E6A48D 9041
-E6A48E 92C5
-E6A48F 9E93
-E6A492 9EA3
-E6A499 909A
-E6A49A 9EAD
-E6A49B 8A91
-E6A49C 8C9F
-E6A4A1 9EAF
-E6A4A2 9E9A
-E6A4A3 9EAE
-E6A4A5 9EA7
-E6A4A6 9E9B
-E6A4A8 9EAB
-E6A4AA 9EAC
-E6A4B0 9EBD
-E6A4B4 93CC
-E6A4B6 9EA2
-E6A4B9 9EB9
-E6A4BD 9EBB
-E6A4BF 92D6
-E6A58A 976B
-E6A593 9596
-E6A594 9EB6
-E6A595 91C8
-E6A599 9EBC
-E6A59A 915E
-E6A59C 9EB3
-E6A59D 9EC0
-E6A59E 9EBF
-E6A5A0 93ED
-E6A5A1 9EBE
-E6A5A2 93E8
-E6A5AA 9EC2
-E6A5AB 9EB5
-E6A5AD 8BC6
-E6A5AE 9EB8
-E6A5AF 8F7C
-E6A5B3 9480
-E6A5B4 9EBA
-E6A5B5 8BC9
-E6A5B7 9EB2
-E6A5B8 9EB4
-E6A5B9 9EB1
-E6A5BC 984F
-E6A5BD 8A79
-E6A5BE 9EB7
-E6A681 9EC1
-E6A682 8A54
-E6A68A 8DE5
-E6A68E 897C
-E6A691 9ED2
-E6A694 9850
-E6A695 9ED5
-E6A69B 9059
-E6A69C 9ED4
-E6A6A0 9ED3
-E6A6A7 9ED0
-E6A6AE 9EC4
-E6A6B1 9EE1
-E6A6B2 9EC3
-E6A6B4 9ED6
-E6A6BB 9ECE
-E6A6BE 9EC9
-E6A6BF 9EC6
-E6A781 9EC7
-E6A783 9ECF
-E6A787 EAA0
-E6A78A 9ECC
-E6A78B 8D5C
-E6A78C 92C6
-E6A78D 9184
-E6A78E 9ECA
-E6A790 9EC5
-E6A793 9EC8
-E6A798 976C
-E6A799 968A
-E6A79D 9ECD
-E6A79E 9ED7
-E6A7A7 9EDF
-E6A7A8 9ED8
-E6A7AB 9EE5
-E6A7AD 9EE3
-E6A7B2 9EDE
-E6A7B9 9EDD
-E6A7BB 92CE
-E6A7BD 9185
-E6A7BF 9EDB
-E6A882 9ED9
-E6A885 9EE0
-E6A88A 9EE6
-E6A88B 94F3
-E6A88C 9EEC
-E6A892 9EE7
-E6A893 9EEA
-E6A894 9EE4
-E6A897 9294
-E6A899 9557
-E6A89B 9EDA
-E6A89E 9EE2
-E6A89F 8FBE
-E6A8A1 96CD
-E6A8A2 9EF6
-E6A8A3 9EE9
-E6A8A9 8CA0
-E6A8AA 89A1
-E6A8AB 8A7E
-E6A8AE 9ED1
-E6A8B5 8FBF
-E6A8B6 9EEE
-E6A8B8 9EF5
-E6A8B9 8EF7
-E6A8BA 8A92
-E6A8BD 924D
-E6A984 9EEB
-E6A987 9EF0
-E6A988 9EF4
-E6A98B 8BB4
-E6A998 8B6B
-E6A999 9EF2
-E6A99F 8B40
-E6A9A1 93C9
-E6A9A2 9EF1
-E6A9A6 9EF3
-E6A9B2 9EED
-E6A9B8 9EEF
-E6A9BF 8A80
-E6AA80 9268
-E6AA84 9EFA
-E6AA8D 9EF8
-E6AA8E 8CE7
-E6AA90 9EF7
-E6AA97 9F40
-E6AA9C 9E77
-E6AAA0 9EF9
-E6AAA2 9EFB
-E6AAA3 9EFC
-E6AAAA 9F4B
-E6AAAC 9F47
-E6AAAE 9E8D
-E6AAB3 9F46
-E6AAB8 9F45
-E6AABB 9F42
-E6AB81 9EE8
-E6AB82 9F44
-E6AB83 9F43
-E6AB91 9F49
-E6AB93 9845
-E6AB9A 9F4C
-E6AB9B 8BF9
-E6AB9E 9F48
-E6AB9F 9F4A
-E6ABA8 94A5
-E6ABAA 9F4D
-E6ABBA 9F51
-E6ABBB 9F4E
-E6AC84 9793
-E6AC85 9F4F
-E6AC8A 9EDC
-E6AC92 9F52
-E6AC96 9F53
-E6AC9D 8954
-E6AC9F 9F55
-E6ACA0 8C87
-E6ACA1 8E9F
-E6ACA3 8BD3
-E6ACA7 89A2
-E6ACB2 977E
-E6ACB7 9F57
-E6ACB8 9F56
-E6ACB9 9F59
-E6ACBA 8B5C
-E6ACBD 8BD4
-E6ACBE 8ABC
-E6AD83 9F5C
-E6AD87 9F5B
-E6AD89 9F5D
-E6AD8C 89CC
-E6AD8E 9256
-E6AD90 9F5E
-E6AD93 8ABD
-E6AD94 9F60
-E6AD99 9F5F
-E6AD9B 9F61
-E6AD9F 9F62
-E6ADA1 9F63
-E6ADA2 8E7E
-E6ADA3 90B3
-E6ADA4 8D9F
-E6ADA6 9590
-E6ADA9 95E0
-E6ADAA 9863
-E6ADAF 8E95
-E6ADB3 8DCE
-E6ADB4 97F0
-E6ADB8 9F64
-E6ADB9 9F65
-E6ADBB 8E80
-E6ADBF 9F66
-E6AE80 9F67
-E6AE83 9F69
-E6AE84 9F68
-E6AE86 9677
-E6AE89 8F7D
-E6AE8A 8EEA
-E6AE8B 8E63
-E6AE8D 9F6A
-E6AE95 9F6C
-E6AE96 9042
-E6AE98 9F6B
-E6AE9E 9F6D
-E6AEA4 9F6E
-E6AEAA 9F6F
-E6AEAB 9F70
-E6AEAF 9F71
-E6AEB1 9F73
-E6AEB2 9F72
-E6AEB3 9F74
-E6AEB4 89A3
-E6AEB5 9269
-E6AEB7 9F75
-E6AEBA 8E45
-E6AEBB 8A6B
-E6AEBC 9F76
-E6AEBF 9361
-E6AF80 9ACA
-E6AF85 8B42
-E6AF86 9F77
-E6AF8B 9F78
-E6AF8D 95EA
-E6AF8E 9688
-E6AF92 93C5
-E6AF93 9F79
-E6AF94 94E4
-E6AF98 94F9
-E6AF9B 96D1
-E6AF9F 9F7A
-E6AFAB 9F7C
-E6AFAC 9F7B
-E6AFAF 9F7E
-E6AFB3 9F7D
-E6B088 9F81
-E6B08F 8E81
-E6B091 96AF
-E6B093 9F82
-E6B094 9F83
-E6B097 8B43
-E6B09B 9F84
-E6B0A3 9F86
-E6B0A4 9F85
-E6B0B4 9085
-E6B0B7 9558
-E6B0B8 8969
-E6B0BE 94C3
-E6B180 92F3
-E6B181 8F60
-E6B182 8B81
-E6B18E 94C4
-E6B190 8EAC
-E6B195 9F88
-E6B197 8ABE
-E6B19A 8998
-E6B19D 93F0
-E6B19E 9F87
-E6B19F 8D5D
-E6B1A0 9272
-E6B1A2 9F89
-E6B1A8 9F91
-E6B1AA 9F8A
-E6B1B0 91BF
-E6B1B2 8B82
-E6B1B3 9F92
-E6B1BA 8C88
-E6B1BD 8B44
-E6B1BE 9F90
-E6B281 9F8E
-E6B282 9F8B
-E6B283 9780
-E6B288 92BE
-E6B28C 93D7
-E6B28D 9F8C
-E6B290 9F94
-E6B292 9F93
-E6B293 8C42
-E6B296 89AB
-E6B299 8DB9
-E6B29A 9F8D
-E6B29B 9F8F
-E6B2A1 9676
-E6B2A2 91F2
-E6B2AB 9697
-E6B2AE 9F9C
-E6B2B1 9F9D
-E6B2B3 89CD
-E6B2B8 95A6
-E6B2B9 96FB
-E6B2BA 9F9F
-E6B2BB 8EA1
-E6B2BC 8FC0
-E6B2BD 9F98
-E6B2BE 9F9E
-E6B2BF 8988
-E6B381 8BB5
-E6B384 9F95
-E6B385 9F9A
-E6B389 90F2
-E6B38A 9491
-E6B38C 94E5
-E6B393 9F97
-E6B395 9640
-E6B397 9F99
-E6B399 9FA2
-E6B39B 9FA0
-E6B39D 9F9B
-E6B3A1 9641
-E6B3A2 9467
-E6B3A3 8B83
-E6B3A5 9344
-E6B3A8 928D
-E6B3AA 9FA3
-E6B3AF 9FA1
-E6B3B0 91D7
-E6B3B1 9F96
-E6B3B3 896A
-E6B48B 976D
-E6B48C 9FAE
-E6B492 9FAD
-E6B497 90F4
-E6B499 9FAA
-E6B49B 978C
-E6B49E 93B4
-E6B49F 9FA4
-E6B4A5 92C3
-E6B4A9 896B
-E6B4AA 8D5E
-E6B4AB 9FA7
-E6B4B2 8F46
-E6B4B3 9FAC
-E6B4B5 9FAB
-E6B4B6 9FA6
-E6B4B8 9FA9
-E6B4BB 8A88
-E6B4BD 9FA8
-E6B4BE 9468
-E6B581 97AC
-E6B584 8FF2
-E6B585 90F3
-E6B599 9FB4
-E6B59A 9FB2
-E6B59C 956C
-E6B5A3 9FAF
-E6B5A4 9FB1
-E6B5A6 8959
-E6B5A9 8D5F
-E6B5AA 9851
-E6B5AC 8A5C
-E6B5AE 9582
-E6B5B4 9781
-E6B5B7 8A43
-E6B5B8 905A
-E6B5B9 9FB3
-E6B685 9FB8
-E6B688 8FC1
-E6B68C 974F
-E6B68E 9FB5
-E6B693 9FB0
-E6B695 9FB6
-E6B699 97DC
-E6B69B 9393
-E6B69C 93C0
-E6B6AF 8A55
-E6B6B2 8974
-E6B6B5 9FBC
-E6B6B8 9FBF
-E6B6BC 97C1
-E6B780 9784
-E6B785 9FC6
-E6B786 9FC0
-E6B787 9FBD
-E6B78B 97D2
-E6B78C 9FC3
-E6B791 8F69
-E6B792 9FC5
-E6B795 9FCA
-E6B798 9391
-E6B799 9FC8
-E6B79E 9FC2
-E6B7A1 9257
-E6B7A4 9FC9
-E6B7A6 9FBE
-E6B7A8 9FC4
-E6B7AA 9FCB
-E6B7AB 88FA
-E6B7AC 9FC1
-E6B7AE 9FCC
-E6B7B1 905B
-E6B7B3 8F7E
-E6B7B5 95A3
-E6B7B7 8DAC
-E6B7B9 9FB9
-E6B7BA 9FC7
-E6B7BB 9359
-E6B885 90B4
-E6B887 8A89
-E6B888 8DCF
-E6B889 8FC2
-E6B88A 9FBB
-E6B88B 8F61
-E6B893 8C6B
-E6B895 9FBA
-E6B899 9FD0
-E6B89A 8F8D
-E6B89B 8CB8
-E6B89D 9FDF
-E6B89F 9FD9
-E6B8A0 8B94
-E6B8A1 936E
-E6B8A3 9FD4
-E6B8A4 9FDD
-E6B8A5 88AD
-E6B8A6 8951
-E6B8A9 89B7
-E6B8AB 9FD6
-E6B8AC 91AA
-E6B8AD 9FCD
-E6B8AE 9FCF
-E6B8AF 8D60
-E6B8B8 9FE0
-E6B8BA 9FDB
-E6B8BE 9FD3
-E6B983 9FDA
-E6B98A 96A9
-E6B98D 9FD8
-E6B98E 9FDC
-E6B996 8CCE
-E6B998 8FC3
-E6B99B 9258
-E6B99F 9FD2
-E6B9A7 974E
-E6B9AB 9FD5
-E6B9AE 9FCE
-E6B9AF 9392
-E6B9B2 9FD1
-E6B9B6 9FD7
-E6B9BE 9870
-E6B9BF 8EBC
-E6BA80 969E
-E6BA82 9FE1
-E6BA8C 94AC
-E6BA8F 9FED
-E6BA90 8CB9
-E6BA96 8F80
-E6BA98 9FE3
-E6BA9C 97AD
-E6BA9D 8D61
-E6BA9F 9FF0
-E6BAA2 88EC
-E6BAA5 9FEE
-E6BAAA 9FE2
-E6BAAF 9FE8
-E6BAB2 9FEA
-E6BAB6 976E
-E6BAB7 9FE5
-E6BABA 934D
-E6BABD 9FE7
-E6BB82 9FEF
-E6BB84 9FE9
-E6BB85 96C5
-E6BB89 9FE4
-E6BB8B 8EA0
-E6BB8C 9FFC
-E6BB91 8A8A
-E6BB93 9FE6
-E6BB94 9FEB
-E6BB95 9FEC
-E6BB9D 91EA
-E6BB9E 91D8
-E6BBAC 9FF4
-E6BBAF 9FFA
-E6BBB2 9FF8
-E6BBB4 9348
-E6BBB7 E042
-E6BBB8 9FF5
-E6BBBE 9FF6
-E6BBBF 9FDE
-E6BC81 8B99
-E6BC82 9559
-E6BC86 8EBD
-E6BC89 8D97
-E6BC8F 9852
-E6BC91 9FF2
-E6BC93 E041
-E6BC94 8989
-E6BC95 9186
-E6BCA0 9499
-E6BCA2 8ABF
-E6BCA3 97F8
-E6BCAB 969F
-E6BCAC 92D0
-E6BCB1 9FF9
-E6BCB2 9FFB
-E6BCB8 9151
-E6BCBE E040
-E6BCBF 9FF7
-E6BD81 9FF1
-E6BD85 8AC1
-E6BD94 8C89
-E6BD98 E04E
-E6BD9B E049
-E6BD9C 90F6
-E6BD9F 8A83
-E6BDA4 8F81
-E6BDA6 E052
-E6BDAD E04B
-E6BDAE 92AA
-E6BDAF E048
-E6BDB0 92D7
-E6BDB4 E06B
-E6BDB8 E045
-E6BDBA E044
-E6BDBC E04D
-E6BE80 E047
-E6BE81 E046
-E6BE82 E04C
-E6BE84 909F
-E6BE86 E043
-E6BE8E E04F
-E6BE91 E050
-E6BE97 8AC0
-E6BEA1 E055
-E6BEA3 E054
-E6BEA4 E056
-E6BEAA E059
-E6BEB1 9362
-E6BEB3 E053
-E6BEB9 E057
-E6BF80 8C83
-E6BF81 91F7
-E6BF82 E051
-E6BF83 945A
-E6BF86 E058
-E6BF94 E05D
-E6BF95 E05B
-E6BF98 E05E
-E6BF9B E061
-E6BF9F E05A
-E6BFA0 8D8A
-E6BFA1 9447
-E6BFA4 9FB7
-E6BFAB 9794
-E6BFAC E05C
-E6BFAE E060
-E6BFAF 91F3
-E6BFB1 E05F
-E6BFB3 E04A
-E6BFB6 E889
-E6BFBA E064
-E6BFBE E068
-E78081 E066
-E78089 E062
-E7808B E063
-E7808F E067
-E78091 E065
-E78095 956D
-E78098 E06D
-E7809A E06A
-E7809B E069
-E7809D E06C
-E7809E 93D2
-E7809F E06E
-E780A6 9295
-E780A7 91EB
-E780AC 90A3
-E780B0 E06F
-E780B2 E071
-E780BE E070
-E7818C 9FF3
-E78191 E072
-E78198 93E5
-E781A3 E073
-E781AB 89CE
-E781AF 9394
-E781B0 8A44
-E781B8 8B84
-E781BC 8EDC
-E781BD 8DD0
-E78289 9846
-E7828A 9086
-E7828E 898A
-E78292 E075
-E78299 E074
-E782AC E078
-E782AD 9259
-E782AE E07B
-E782AF E076
-E782B3 E07A
-E782B8 E079
-E782B9 935F
-E782BA 88D7
-E78388 97F3
-E7838B E07D
-E7838F 8947
-E78399 E080
-E7839D E07E
-E7839F E07C
-E783B1 E077
-E783B9 9642
-E783BD E082
-E78489 E081
-E78494 898B
-E78499 E084
-E7849A 95B0
-E7849C E083
-E784A1 96B3
-E784A6 8FC5
-E784B6 9152
-E784BC 8FC4
-E78589 97F9
-E7858C E08A
-E7858E 90F7
-E78595 E086
-E78596 E08B
-E78599 898C
-E785A2 E089
-E785A4 9481
-E785A5 E085
-E785A6 E088
-E785A7 8FC6
-E785A9 94CF
-E785AC E08C
-E785AE 8ECF
-E785BD 90F8
-E78684 E08F
-E78688 E087
-E7868A 8C46
-E7868F E08D
-E78694 976F
-E78695 E090
-E78699 EAA4
-E7869F 8F6E
-E786A8 E091
-E786AC E092
-E786B1 944D
-E786B9 E094
-E786BE E095
-E78783 9452
-E78788 9395
-E78789 E097
-E7878E E099
-E78790 97D3
-E78792 E096
-E78794 E098
-E78795 898D
-E78797 E093
-E7879F 9A7A
-E787A0 E09A
-E787A5 9187
-E787A6 8E57
-E787A7 E09C
-E787AC E09B
-E787AD 9043
-E787AE 99D7
-E787B5 E09D
-E787B9 E09F
-E787BB E08E
-E787BC E09E
-E787BF E0A0
-E78886 949A
-E7888D E0A1
-E78890 E0A2
-E7889B E0A3
-E788A8 E0A4
-E788AA 92DC
-E788AC E0A6
-E788AD E0A5
-E788B0 E0A7
-E788B2 E0A8
-E788B5 8EDD
-E788B6 9583
-E788BA 96EA
-E788BB E0A9
-E788BC E0AA
-E788BD 9175
-E788BE 8EA2
-E788BF E0AB
-E78980 E0AC
-E78986 E0AD
-E78987 95D0
-E78988 94C5
-E7898B E0AE
-E7898C 9476
-E78992 92AB
-E78998 E0AF
-E78999 89E5
-E7899B 8B8D
-E7899D 96C4
-E7899F 96B4
-E789A1 89B2
-E789A2 9853
-E789A7 9671
-E789A9 95A8
-E789B2 90B5
-E789B4 E0B0
-E789B9 93C1
-E789BD 8CA1
-E789BE E0B1
-E78A80 8DD2
-E78A81 E0B3
-E78A82 E0B2
-E78A87 E0B4
-E78A92 E0B5
-E78A96 E0B6
-E78AA0 8B5D
-E78AA2 E0B7
-E78AA7 E0B8
-E78AAC 8CA2
-E78AAF 94C6
-E78AB2 E0BA
-E78AB6 8FF3
-E78AB9 E0B9
-E78B82 8BB6
-E78B83 E0BB
-E78B84 E0BD
-E78B86 E0BC
-E78B8E E0BE
-E78B90 8CCF
-E78B92 E0BF
-E78B97 8BE7
-E78B99 915F
-E78B9B 8D9D
-E78BA0 E0C1
-E78BA1 E0C2
-E78BA2 E0C0
-E78BA9 8EEB
-E78BAC 93C6
-E78BAD 8BB7
-E78BB7 E0C4
-E78BB8 924B
-E78BB9 E0C3
-E78BBC 9854
-E78BBD 9482
-E78C8A E0C7
-E78C96 E0C9
-E78C97 E0C6
-E78C9B 96D2
-E78C9C E0C8
-E78C9D E0CA
-E78C9F 97C2
-E78CA5 E0CE
-E78CA9 E0CD
-E78CAA 9296
-E78CAB 944C
-E78CAE 8CA3
-E78CAF E0CC
-E78CB4 E0CB
-E78CB6 9750
-E78CB7 9751
-E78CBE E0CF
-E78CBF 898E
-E78D84 8D96
-E78D85 8E82
-E78D8E E0D0
-E78D8F E0D1
-E78D97 E0D3
-E78DA3 8F62
-E78DA8 E0D5
-E78DAA E0D4
-E78DB0 E0D6
-E78DB2 8A6C
-E78DB5 E0D8
-E78DB8 E0D7
-E78DBA E0DA
-E78DBB E0D9
-E78E84 8CBA
-E78E87 97A6
-E78E89 8BCA
-E78E8B 89A4
-E78E96 8BE8
-E78EA9 8ADF
-E78EB2 97E6
-E78EB3 E0DC
-E78EBB E0DE
-E78F80 E0DF
-E78F82 89CF
-E78F88 E0DB
-E78F8A 8E58
-E78F8D 92BF
-E78F8E E0DD
-E78F9E E0E2
-E78FA0 8EEC
-E78FA5 E0E0
-E78FAA 8C5D
-E78FAD 94C7
-E78FAE E0E1
-E78FB1 E0FC
-E78FB8 E0E7
-E78FBE 8CBB
-E79083 8B85
-E79085 E0E4
-E79086 979D
-E79089 97AE
-E790A2 91F4
-E790A5 E0E6
-E790B2 E0E8
-E790B3 97D4
-E790B4 8BD5
-E790B5 94FA
-E790B6 9469
-E790BA E0E9
-E790BF E0EB
-E79181 E0EE
-E79195 E0EA
-E79199 E0ED
-E7919A 8CE8
-E7919B 896C
-E7919C E0EF
-E7919E 9090
-E7919F E0EC
-E791A0 97DA
-E791A3 E0F2
-E791A4 EAA2
-E791A9 E0F0
-E791AA E0F3
-E791AF E0E5
-E791B0 E0F1
-E791B3 8DBA
-E791B6 E0F4
-E791BE E0F5
-E79283 979E
-E7928B E0F6
-E7929E E0F7
-E792A2 E0E3
-E792A7 E0F8
-E792B0 8AC2
-E792BD 8EA3
-E7938A E0F9
-E7938F E0FA
-E79394 E0FB
-E7939C 895A
-E793A0 E140
-E793A2 955A
-E793A3 E141
-E793A6 8AA2
-E793A7 E142
-E793A9 E143
-E793AE E144
-E793B0 E146
-E793B1 E147
-E793B2 E145
-E793B6 9572
-E793B7 E149
-E793B8 E148
-E79483 E14B
-E79484 E14A
-E79485 E14C
-E7948C E14D
-E7948D E14F
-E7948E E14E
-E79491 8D99
-E79493 E151
-E79495 E150
-E79498 8AC3
-E7949A 9072
-E7949C 935B
-E7949E E152
-E7949F 90B6
-E794A3 8E59
-E794A5 8999
-E794A6 E153
-E794A8 9770
-E794AB 95E1
-E794AC E154
-E794B0 9363
-E794B1 9752
-E794B2 8D62
-E794B3 905C
-E794B7 926A
-E794B8 99B2
-E794BA 92AC
-E794BB 89E6
-E794BC E155
-E79584 E156
-E79586 E15B
-E79589 E159
-E7958A E158
-E7958B 9DC0
-E7958C 8A45
-E7958D E157
-E7958F 88D8
-E79591 94A8
-E79594 94C8
-E79599 97AF
-E7959A E15C
-E7959B E15A
-E7959C 927B
-E7959D 90A4
-E795A0 94A9
-E795A2 954C
-E795A4 E15E
-E795A5 97AA
-E795A6 8C6C
-E795A7 E15F
-E795A9 E15D
-E795AA 94D4
-E795AB E160
-E795AD E161
-E795B0 88D9
-E795B3 8FF4
-E795B4 E166
-E795B6 E163
-E795B7 93EB
-E795B8 E162
-E795BF 8B45
-E79682 E169
-E79686 E164
-E79687 E165
-E79689 E168
-E7968A E167
-E7968B 9544
-E7968E 9161
-E7968F 9160
-E79691 8B5E
-E79694 E16A
-E7969A E16B
-E7969D E16C
-E796A3 E16E
-E796A5 E16D
-E796AB 8975
-E796B1 E176
-E796B2 94E6
-E796B3 E170
-E796B5 E172
-E796B8 E174
-E796B9 905D
-E796BC E175
-E796BD E173
-E796BE 8EBE
-E79782 E16F
-E79783 E171
-E79785 9561
-E79787 8FC7
-E7978A E178
-E7978D E177
-E79792 E179
-E79794 8EA4
-E79795 8DAD
-E79798 9397
-E79799 E17A
-E7979B 92C9
-E7979E E17C
-E797A2 979F
-E797A3 E17B
-E797A9 9189
-E797B0 E182
-E797B2 E184
-E797B3 E185
-E797B4 9273
-E797BA E183
-E797BC E180
-E797BE E17D
-E797BF E17E
-E79881 E181
-E79889 E188
-E7988B E186
-E7988D E187
-E7989F E189
-E798A0 E18B
-E798A1 E18C
-E798A2 E18D
-E798A4 E18E
-E798A7 E18A
-E798B0 E190
-E798B4 E18F
-E798BB E191
-E79982 97C3
-E79986 E194
-E79987 E192
-E79988 E193
-E7998C 8AE0
-E79992 96FC
-E79996 95C8
-E79998 E196
-E7999C E195
-E799A1 E197
-E799A2 E198
-E799A7 E19C
-E799A8 E199
-E799A9 E19A
-E799AA E19B
-E799AC E19D
-E799B0 E19E
-E799B2 E19F
-E799B6 E1A0
-E799B8 E1A1
-E799BA 94AD
-E799BB 936F
-E799BC E1A2
-E799BD 9492
-E799BE 9553
-E79A80 E1A3
-E79A83 E1A4
-E79A84 9349
-E79A86 8A46
-E79A87 8D63
-E79A88 E1A5
-E79A8B E1A6
-E79A8E E1A7
-E79A90 8E48
-E79A93 E1A9
-E79A96 E1A8
-E79A99 E1AA
-E79A9A E1AB
-E79AAE 94E7
-E79AB0 E1AC
-E79AB4 E1AD
-E79AB7 EA89
-E79AB8 E1AE
-E79AB9 E1AF
-E79ABA E1B0
-E79ABF 8E4D
-E79B82 E1B1
-E79B83 9475
-E79B86 967E
-E79B88 896D
-E79B8A 8976
-E79B8D E1B2
-E79B92 E1B4
-E79B96 E1B3
-E79B97 9390
-E79B9B 90B7
-E79B9C 9F58
-E79B9E E1B5
-E79B9F 96BF
-E79BA1 E1B6
-E79BA3 8AC4
-E79BA4 94D5
-E79BA5 E1B7
-E79BA7 E1B8
-E79BAA E1B9
-E79BAE 96DA
-E79BB2 96D3
-E79BB4 92BC
-E79BB8 918A
-E79BBB E1BB
-E79BBE 8F82
-E79C81 8FC8
-E79C84 E1BE
-E79C87 E1BD
-E79C88 E1BC
-E79C89 94FB
-E79C8B 8AC5
-E79C8C 8CA7
-E79C9B E1C4
-E79C9E E1C1
-E79C9F 905E
-E79CA0 96B0
-E79CA4 E1C0
-E79CA5 E1C2
-E79CA6 E1C3
-E79CA9 E1BF
-E79CB7 E1C5
-E79CB8 E1C6
-E79CBA 92AD
-E79CBC 8AE1
-E79D80 9285
-E79D87 E1C7
-E79D9A E1C8
-E79D9B E1CB
-E79DA1 9087
-E79DA3 93C2
-E79DA5 E1CC
-E79DA6 9672
-E79DA8 E1C9
-E79DAB E1CA
-E79DB9 E1CF
-E79DBE E1CE
-E79DBF E1CD
-E79E8B E1D1
-E79E8E E1D0
-E79E91 E1D2
-E79E9E E1D4
-E79EA0 E1D3
-E79EA5 95CB
-E79EAC 8F75
-E79EAD 97C4
-E79EB0 E1D5
-E79EB3 93B5
-E79EB6 E1D6
-E79EB9 E1D7
-E79EBB E1DB
-E79EBC E1D9
-E79EBD E1DA
-E79EBF E1D8
-E79F87 E1DC
-E79F8D E1DD
-E79F97 E1DE
-E79F9A E1DF
-E79F9B 96B5
-E79F9C E1E0
-E79FA2 96EE
-E79FA3 E1E1
-E79FA5 926D
-E79FA7 948A
-E79FA9 8BE9
-E79FAD 925A
-E79FAE E1E2
-E79FAF 8BB8
-E79FB3 90CE
-E79FBC E1E3
-E7A082 8DBB
-E7A08C E1E4
-E7A092 E1E5
-E7A094 8CA4
-E7A095 8DD3
-E7A0A0 E1E7
-E7A0A5 9375
-E7A0A6 8DD4
-E7A0A7 8B6D
-E7A0B2 9643
-E7A0B4 946A
-E7A0BA 9376
-E7A0BF 8D7B
-E7A185 E1E9
-E7A19D 8FC9
-E7A1AB 97B0
-E7A1AC 8D64
-E7A1AF 8CA5
-E7A1B2 94A1
-E7A1B4 E1EB
-E7A1BC E1ED
-E7A281 8CE9
-E7A286 E1EC
-E7A287 92F4
-E7A28C E1EF
-E7A28D 8A56
-E7A28E E1EA
-E7A291 94E8
-E7A293 894F
-E7A295 8DEA
-E7A297 9871
-E7A29A E1EE
-E7A2A3 E1F0
-E7A2A7 95C9
-E7A2A9 90D7
-E7A2AA E1F2
-E7A2AF E1F3
-E7A2B5 E1F1
-E7A2BA 8A6D
-E7A2BC E1F9
-E7A2BE E1F8
-E7A381 8EA5
-E7A385 E1FA
-E7A386 E1F5
-E7A38A E1FB
-E7A38B E1F6
-E7A390 94D6
-E7A391 E1F4
-E7A394 E1F7
-E7A39A E241
-E7A3A7 E240
-E7A3A8 9681
-E7A3AC E1FC
-E7A3AF 88E9
-E7A3B4 E243
-E7A3BD E242
-E7A481 8FCA
-E7A487 E244
-E7A48E 9162
-E7A491 E246
-E7A492 E245
-E7A499 E247
-E7A4A6 E1E6
-E7A4AA E1E8
-E7A4AB E249
-E7A4AC E248
-E7A4BA 8EA6
-E7A4BC 97E7
-E7A4BE 8ED0
-E7A580 E24A
-E7A581 8C56
-E7A587 8B5F
-E7A588 8B46
-E7A589 8E83
-E7A590 9753
-E7A593 E250
-E7A595 E24F
-E7A596 9163
-E7A597 E24C
-E7A59A E24E
-E7A59D 8F6A
-E7A59E 905F
-E7A59F E24D
-E7A5A0 E24B
-E7A5A2 9449
-E7A5A5 8FCB
-E7A5A8 955B
-E7A5AD 8DD5
-E7A5B7 9398
-E7A5BA E251
-E7A5BF E252
-E7A680 E268
-E7A681 8BD6
-E7A684 985C
-E7A685 9154
-E7A68A E253
-E7A68D 89D0
-E7A68E 92F5
-E7A68F 959F
-E7A69D E254
-E7A6A6 8B9A
-E7A6A7 E255
-E7A6AA E257
-E7A6AE E258
-E7A6B0 9448
-E7A6B3 E259
-E7A6B9 E25A
-E7A6BA E25B
-E7A6BD 8BD7
-E7A6BE 89D1
-E7A6BF 93C3
-E7A780 8F47
-E7A781 8E84
-E7A789 E25C
-E7A78B 8F48
-E7A791 89C8
-E7A792 9562
-E7A795 E25D
-E7A798 94E9
-E7A79F 9164
-E7A7A1 E260
-E7A7A3 E261
-E7A7A4 9489
-E7A7A6 9060
-E7A7A7 E25E
-E7A7A9 9281
-E7A7AC E25F
-E7A7B0 8FCC
-E7A7BB 88DA
-E7A880 8B48
-E7A888 E262
-E7A88B 92F6
-E7A88D E263
-E7A88E 90C5
-E7A894 96AB
-E7A897 9542
-E7A898 E264
-E7A899 E265
-E7A89A 9274
-E7A89C 97C5
-E7A89F E267
-E7A8A0 E266
-E7A8AE 8EED
-E7A8B1 E269
-E7A8B2 88EE
-E7A8B7 E26C
-E7A8BB E26A
-E7A8BC 89D2
-E7A8BD 8C6D
-E7A8BE E26B
-E7A8BF 8D65
-E7A980 8D92
-E7A982 95E4
-E7A983 E26D
-E7A986 9673
-E7A989 E26F
-E7A98D 90CF
-E7A98E 896E
-E7A98F 89B8
-E7A990 88AA
-E7A997 E26E
-E7A9A1 E270
-E7A9A2 E271
-E7A9A3 8FF5
-E7A9A9 E272
-E7A9AB 8A6E
-E7A9B0 E274
-E7A9B4 8C8A
-E7A9B6 8B86
-E7A9B9 E275
-E7A9BA 8BF3
-E7A9BD E276
-E7A9BF 90FA
-E7AA81 93CB
-E7AA83 90DE
-E7AA84 8DF3
-E7AA88 E277
-E7AA92 9282
-E7AA93 918B
-E7AA95 E279
-E7AA96 E27B
-E7AA97 E278
-E7AA98 E27A
-E7AA9F 8C41
-E7AAA9 E27C
-E7AAAA 8C45
-E7AAAE 8B87
-E7AAAF 9771
-E7AAB0 E27E
-E7AAB6 E280
-E7AABA 894D
-E7AABF E283
-E7AB83 8A96
-E7AB84 E282
-E7AB85 E281
-E7AB87 E285
-E7AB88 E27D
-E7AB8A E286
-E7AB8B 97A7
-E7AB8D E287
-E7AB8F E288
-E7AB92 9AF2
-E7AB93 E28A
-E7AB95 E289
-E7AB99 E28B
-E7AB9A E28C
-E7AB9C 97B3
-E7AB9D E28D
-E7AB9F E8ED
-E7ABA0 8FCD
-E7ABA1 E28E
-E7ABA2 E28F
-E7ABA3 8F76
-E7ABA5 93B6
-E7ABA6 E290
-E7ABAA 9247
-E7ABAD E291
-E7ABAF 925B
-E7ABB0 E292
-E7ABB6 8BA3
-E7ABB8 995E
-E7ABB9 927C
-E7ABBA 8EB1
-E7ABBF 8AC6
-E7AC82 E293
-E7AC84 E2A0
-E7AC86 E296
-E7AC88 8B88
-E7AC8A E295
-E7AC8B E2A2
-E7AC8F E294
-E7AC91 8FCE
-E7AC98 E298
-E7AC99 E299
-E7AC9B 934A
-E7AC9E E29A
-E7ACA0 8A7D
-E7ACA5 9079
-E7ACA6 9584
-E7ACA8 E29C
-E7ACAC 91E6
-E7ACB3 E297
-E7ACB5 E29B
-E7ACB6 E29D
-E7ACB9 8DF9
-E7AD85 E2A4
-E7AD86 954D
-E7AD88 94A4
-E7AD89 9399
-E7AD8B 8BD8
-E7AD8C E2A3
-E7AD8D E2A1
-E7AD8F 94B3
-E7AD90 E29E
-E7AD91 927D
-E7AD92 939B
-E7AD94 939A
-E7AD96 8DF4
-E7AD9D E2B6
-E7ADA5 E2A6
-E7ADA7 E2A8
-E7ADAC E2AB
-E7ADAE E2AC
-E7ADB0 E2A9
-E7ADB1 E2AA
-E7ADB4 E2A7
-E7ADB5 E2A5
-E7ADBA E29F
-E7AE86 95CD
-E7AE87 89D3
-E7AE8B E2B3
-E7AE8D E2B0
-E7AE8F E2B5
-E7AE92 E2B4
-E7AE94 9493
-E7AE95 96A5
-E7AE97 8E5A
-E7AE98 E2AE
-E7AE99 E2B7
-E7AE9A E2B2
-E7AE9C E2B1
-E7AE9D E2AD
-E7AE9F E2AF
-E7AEA1 8AC7
-E7AEAA 925C
-E7AEAD 90FB
-E7AEB1 94A0
-E7AEB4 E2BC
-E7AEB8 94A2
-E7AF80 90DF
-E7AF81 E2B9
-E7AF84 94CD
-E7AF86 E2BD
-E7AF87 95D1
-E7AF89 927A
-E7AF8B E2B8
-E7AF8C E2BA
-E7AF8F E2BB
-E7AF9D E2BE
-E7AFA0 8EC2
-E7AFA4 93C4
-E7AFA5 E2C3
-E7AFA6 E2C2
-E7AFA9 E2BF
-E7AFAD 9855
-E7AFB3 E2C8
-E7AFB6 E2CC
-E7AFB7 E2C9
-E7B080 E2C5
-E7B087 E2C6
-E7B08D E2CB
-E7B091 E2C0
-E7B092 99D3
-E7B093 E2C7
-E7B094 E2C1
-E7B097 E2CA
-E7B09F E2D0
-E7B0A1 8AC8
-E7B0A3 E2CD
-E7B0A7 E2CE
-E7B0AA E2CF
-E7B0AB E2D2
-E7B0B7 E2D1
-E7B0B8 94F4
-E7B0BD E2D3
-E7B0BE 97FA
-E7B0BF 95EB
-E7B180 E2D8
-E7B183 E2D5
-E7B18C E2D4
-E7B18D 90D0
-E7B18F E2D7
-E7B190 E2D9
-E7B194 E2D6
-E7B196 E2DD
-E7B198 E2DA
-E7B19F E2DB
-E7B1A0 E2C4
-E7B1A4 E2DC
-E7B1A5 E2DE
-E7B1AC E2DF
-E7B1B3 95C4
-E7B1B5 E2E0
-E7B1BE 96E0
-E7B281 8BCC
-E7B282 8C48
-E7B283 E2E1
-E7B289 95B2
-E7B28B 9088
-E7B28D 96AE
-E7B290 E2E2
-E7B292 97B1
-E7B295 9494
-E7B297 9165
-E7B298 9453
-E7B29B 8F6C
-E7B29F 88BE
-E7B2A1 E2E7
-E7B2A2 E2E5
-E7B2A4 E2E3
-E7B2A5 8A9F
-E7B2A7 8FCF
-E7B2A8 E2E8
-E7B2AB E2E6
-E7B2AD E2E4
-E7B2AE E2EC
-E7B2B1 E2EB
-E7B2B2 E2EA
-E7B2B3 E2E9
-E7B2B9 E2ED
-E7B2BD E2EE
-E7B2BE 90B8
-E7B380 E2EF
-E7B382 E2F1
-E7B385 E2F0
-E7B38A 8CD0
-E7B38E 9157
-E7B392 E2F3
-E7B396 939C
-E7B398 E2F2
-E7B39C E2F4
-E7B39E 95B3
-E7B39F 918C
-E7B3A0 8D66
-E7B3A2 E2F5
-E7B3A7 97C6
-E7B3AF E2F7
-E7B3B2 E2F8
-E7B3B4 E2F9
-E7B3B6 E2FA
-E7B3B8 8E85
-E7B3BA E2FB
-E7B3BB 8C6E
-E7B3BE 8B8A
-E7B480 8B49
-E7B482 E340
-E7B484 96F1
-E7B485 8D67
-E7B486 E2FC
-E7B48A E343
-E7B48B 96E4
-E7B48D 945B
-E7B490 9552
-E7B494 8F83
-E7B495 E342
-E7B497 8ED1
-E7B498 8D68
-E7B499 8E86
-E7B49A 8B89
-E7B49B 95B4
-E7B49C E341
-E7B4A0 9166
-E7B4A1 9661
-E7B4A2 8DF5
-E7B4AB 8E87
-E7B4AC 92DB
-E7B4AE E346
-E7B4AF 97DD
-E7B4B0 8DD7
-E7B4B2 E347
-E7B4B3 9061
-E7B4B5 E349
-E7B4B9 8FD0
-E7B4BA 8DAE
-E7B4BF E348
-E7B582 8F49
-E7B583 8CBC
-E7B584 9167
-E7B585 E344
-E7B586 E34A
-E7B58B E345
-E7B58C 8C6F
-E7B58E E34D
-E7B58F E351
-E7B590 8C8B
-E7B596 E34C
-E7B59B E355
-E7B59E 8D69
-E7B5A1 978D
-E7B5A2 88BA
-E7B5A3 E352
-E7B5A6 8B8B
-E7B5A8 E34F
-E7B5AE E350
-E7B5B1 939D
-E7B5B2 E34E
-E7B5B3 E34B
-E7B5B5 8A47
-E7B5B6 90E2
-E7B5B9 8CA6
-E7B5BD E357
-E7B689 E354
-E7B68F E356
-E7B693 E353
-E7B699 8C70
-E7B69A 91B1
-E7B69B E358
-E7B69C 918E
-E7B69F E365
-E7B6A2 E361
-E7B6A3 E35B
-E7B6AB E35F
-E7B6AC 8EF8
-E7B6AD 88DB
-E7B6AE E35A
-E7B6AF E362
-E7B6B0 E366
-E7B6B1 8D6A
-E7B6B2 96D4
-E7B6B4 92D4
-E7B6B5 E35C
-E7B6B8 E364
-E7B6BA E359
-E7B6BB 925D
-E7B6BD E35E
-E7B6BE 88BB
-E7B6BF 96C8
-E7B787 E35D
-E7B78A 8BD9
-E7B78B 94EA
-E7B78F 918D
-E7B791 97CE
-E7B792 8F8F
-E7B795 E38E
-E7B798 E367
-E7B79A 90FC
-E7B79C E363
-E7B79D E368
-E7B79E E36A
-E7B7A0 92F7
-E7B7A1 E36D
-E7B7A4 E369
-E7B7A8 95D2
-E7B7A9 8AC9
-E7B7AC 96C9
-E7B7AF 88DC
-E7B7B2 E36C
-E7B7B4 97FB
-E7B7BB E36B
-E7B881 898F
-E7B884 93EA
-E7B885 E36E
-E7B889 E375
-E7B88A E36F
-E7B88B E376
-E7B892 E372
-E7B89B 949B
-E7B89E 8EC8
-E7B89F E374
-E7B8A1 E371
-E7B8A2 E377
-E7B8A3 E370
-E7B8A6 8F63
-E7B8AB 9644
-E7B8AE 8F6B
-E7B8B1 E373
-E7B8B2 E380
-E7B8B5 E37B
-E7B8B7 E37E
-E7B8B9 E37C
-E7B8BA E381
-E7B8BB E37A
-E7B8BD E360
-E7B8BE 90D1
-E7B981 94C9
-E7B983 E37D
-E7B986 E378
-E7B98A 9140
-E7B98B 8C71
-E7B98D 8F4A
-E7B994 9044
-E7B995 9155
-E7B996 E384
-E7B999 E386
-E7B99A E387
-E7B99D E383
-E7B99E E385
-E7B9A6 E379
-E7B9A7 E382
-E7B9A9 E38A
-E7B9AA E389
-E7B9AD 969A
-E7B9B0 8C4A
-E7B9B9 E388
-E7B9BB E38C
-E7B9BC E38B
-E7B9BD E38F
-E7B9BF E391
-E7BA82 8E5B
-E7BA83 E38D
-E7BA88 E392
-E7BA89 E393
-E7BA8C E394
-E7BA8E E39A
-E7BA8F 935A
-E7BA90 E396
-E7BA92 E395
-E7BA93 E397
-E7BA94 E398
-E7BA96 E399
-E7BA9B E39B
-E7BA9C E39C
-E7BCB6 8ACA
-E7BCB8 E39D
-E7BCBA E39E
-E7BD85 E39F
-E7BD8C E3A0
-E7BD8D E3A1
-E7BD8E E3A2
-E7BD90 E3A3
-E7BD91 E3A4
-E7BD94 E3A6
-E7BD95 E3A5
-E7BD98 E3A7
-E7BD9F E3A8
-E7BDA0 E3A9
-E7BDA7 E3AC
-E7BDA8 E3AA
-E7BDA9 E3AB
-E7BDAA 8DDF
-E7BDAB 8C72
-E7BDAE 9275
-E7BDB0 94B1
-E7BDB2 8F90
-E7BDB5 946C
-E7BDB7 94EB
-E7BDB8 E3AD
-E7BDB9 9CEB
-E7BE82 E3AE
-E7BE83 E3B0
-E7BE85 9785
-E7BE86 E3AF
-E7BE87 E3B2
-E7BE88 E3B1
-E7BE8A 9772
-E7BE8C E3B3
-E7BE8E 94FC
-E7BE94 E3B4
-E7BE9A E3B7
-E7BE9D E3B6
-E7BE9E E3B5
-E7BEA3 E3B8
-E7BEA4 8C51
-E7BEA8 9141
-E7BEA9 8B60
-E7BEAE E3BC
-E7BEAF E3B9
-E7BEB2 E3BA
-E7BEB6 E3BD
-E7BEB8 E3BE
-E7BEB9 E3BB
-E7BEBD 8948
-E7BF81 89A5
-E7BF85 E3C0
-E7BF86 E3C1
-E7BF8A E3C2
-E7BF8C 9782
-E7BF92 8F4B
-E7BF94 E3C4
-E7BF95 E3C3
-E7BFA0 9089
-E7BFA1 E3C5
-E7BFA6 E3C6
-E7BFA9 E3C7
-E7BFAB 8AE3
-E7BFB0 8ACB
-E7BFB3 E3C8
-E7BFB9 E3C9
-E7BFBB 967C
-E7BFBC 9783
-E88080 9773
-E88081 9856
-E88083 8D6C
-E88084 E3CC
-E88085 8ED2
-E88086 E3CB
-E8808B E3CD
-E8808C 8EA7
-E88090 91CF
-E88092 E3CE
-E88095 8D6B
-E88097 96D5
-E88098 E3CF
-E88099 E3D0
-E8809C E3D1
-E880A1 E3D2
-E880A8 E3D3
-E880B3 8EA8
-E880B6 96EB
-E880BB E3D5
-E880BD 925E
-E880BF E3D4
-E88186 E3D7
-E8818A E3D6
-E88192 E3D8
-E88196 90B9
-E88198 E3D9
-E8819A E3DA
-E8819E 95B7
-E8819F E3DB
-E881A1 918F
-E881A2 E3DC
-E881A8 E3DD
-E881AF 97FC
-E881B0 E3E0
-E881B2 E3DF
-E881B3 E3DE
-E881B4 92AE
-E881B6 E3E1
-E881B7 9045
-E881B9 E3E2
-E881BD E3E3
-E881BE 9857
-E881BF E3E4
-E88284 E3E5
-E88285 E3E7
-E88286 E3E6
-E88287 94A3
-E88289 93F7
-E8828B 985D
-E8828C 94A7
-E88293 E3E9
-E88296 8FD1
-E88298 9549
-E8829A E3EA
-E8829B E3E8
-E8829D 8ACC
-E882A1 8CD2
-E882A2 8E88
-E882A5 94EC
-E882A9 8CA8
-E882AA 9662
-E882AC E3ED
-E882AD E3EB
-E882AF 8D6D
-E882B1 8D6E
-E882B2 88E7
-E882B4 8DE6
-E882BA 9478
-E88383 88DD
-E88384 E3F2
-E88386 925F
-E8838C 9477
-E8838E 91D9
-E88396 E3F4
-E88399 E3F0
-E8839A E3F3
-E8839B E3EE
-E8839D E3F1
-E8839E 9645
-E883A1 8CD3
-E883A4 88FB
-E883A5 E3EF
-E883AF E3F6
-E883B1 E3F7
-E883B4 93B7
-E883B8 8BB9
-E883BC E445
-E883BD 945C
-E88482 8E89
-E88485 8BBA
-E88486 90C6
-E88487 9865
-E88488 96AC
-E88489 E3F5
-E8848A 90D2
-E8849A 8B72
-E8849B E3F8
-E884A3 E3FA
-E884A9 E3F9
-E884AF E3FB
-E884B1 9245
-E884B3 945D
-E884B9 92AF
-E884BE E442
-E88586 E441
-E8858B E3FC
-E8858E 9074
-E88590 9585
-E88591 E444
-E88593 E443
-E88594 8D6F
-E88595 9872
-E8859F E454
-E885A5 E448
-E885A6 E449
-E885AB 8EEE
-E885AE E447
-E885B0 8D98
-E885B1 E446
-E885B4 E44A
-E885B8 92B0
-E885B9 95A0
-E885BA 9142
-E885BF 91DA
-E88680 E44E
-E88682 E44F
-E88683 E44B
-E88688 E44C
-E8868A E44D
-E8868F 8D70
-E88693 E455
-E88695 E451
-E8869A 9586
-E8869C 968C
-E8869D 9547
-E886A0 E450
-E886A3 E453
-E886A4 E452
-E886A8 9663
-E886A9 E456
-E886B0 E457
-E886B3 9156
-E886B5 E458
-E886B8 E45A
-E886BA E45E
-E886BD E45B
-E886BE E459
-E886BF 945E
-E88780 E45C
-E88782 E45D
-E88786 89B0
-E88788 E464
-E88789 E45F
-E8878D E460
-E88791 E461
-E88793 919F
-E88798 E463
-E88799 E462
-E8879A E465
-E8879F E466
-E887A0 E467
-E887A3 9062
-E887A5 89E7
-E887A7 E468
-E887A8 97D5
-E887AA 8EA9
-E887AD 8F4C
-E887B3 8E8A
-E887B4 9276
-E887BA E469
-E887BB E46A
-E887BC 8950
-E887BE E46B
-E88881 E46C
-E88882 E46D
-E88885 E46E
-E88887 E46F
-E88888 8BBB
-E88889 9DA8
-E8888A E470
-E8888C 90E3
-E8888D E471
-E8888E 8EC9
-E88890 E472
-E88892 98AE
-E88896 E473
-E88897 95DC
-E88898 8ADA
-E8889B 9143
-E8889C 8F77
-E8889E 9591
-E8889F 8F4D
-E888A9 E474
-E888AA 8D71
-E888AB E475
-E888AC 94CA
-E888AE E484
-E888B3 E477
-E888B5 91C7
-E888B6 9495
-E888B7 8CBD
-E888B8 E476
-E888B9 9144
-E88980 E478
-E88987 92F8
-E88998 E47A
-E88999 E479
-E8899A E47C
-E8899D E47B
-E8899F E47D
-E889A2 E480
-E889A4 E47E
-E889A6 8ACD
-E889A8 E481
-E889AA E482
-E889AB E483
-E889AE 8DAF
-E889AF 97C7
-E889B1 E485
-E889B2 9046
-E889B6 8990
-E889B7 E486
-E889B8 E487
-E889BE E488
-E88A8B 88F0
-E88A8D E489
-E88A92 E48A
-E88A99 9587
-E88A9D 8EC5
-E88A9F E48C
-E88AA5 8A48
-E88AA6 88B0
-E88AAB E48B
-E88AAC E48E
-E88AAD 946D
-E88AAF 9063
-E88AB1 89D4
-E88AB3 9646
-E88AB8 8C7C
-E88AB9 8BDA
-E88ABB E48D
-E88ABD 89E8
-E88B85 8AA1
-E88B91 8991
-E88B92 E492
-E88B93 97E8
-E88B94 91DB
-E88B97 9563
-E88B99 E49E
-E88B9B 89D5
-E88B9C E49C
-E88B9E E49A
-E88B9F E491
-E88BA1 E48F
-E88BA3 E490
-E88BA5 8EE1
-E88BA6 8BEA
-E88BA7 9297
-E88BAB 93CF
-E88BB1 8970
-E88BB3 E494
-E88BB4 E493
-E88BB9 E499
-E88BBA E495
-E88BBB E498
-E88C82 96CE
-E88C83 E497
-E88C84 89D6
-E88C85 8A9D
-E88C86 E49B
-E88C89 E49D
-E88C8E 8C73
-E88C96 E4A1
-E88C97 E4AA
-E88C98 E4AB
-E88C9C 88A9
-E88CA3 E4B2
-E88CA8 88EF
-E88CAB E4A9
-E88CAF E4A8
-E88CB1 E4A3
-E88CB2 E4A2
-E88CB4 E4A0
-E88CB5 E49F
-E88CB6 9283
-E88CB8 91F9
-E88CB9 E4A5
-E88D80 E4A4
-E88D85 E4A7
-E88D89 9190
-E88D8A 8C74
-E88D8F 8960
-E88D90 E4A6
-E88D92 8D72
-E88D98 9191
-E88DB3 E4B8
-E88DB5 E4B9
-E88DB7 89D7
-E88DBB 89AC
-E88DBC E4B6
-E88E85 E4AC
-E88E87 E4B4
-E88E89 E4BB
-E88E8A E4B5
-E88E8E E4B3
-E88E93 E496
-E88E96 E4B1
-E88E9A E4AD
-E88E9E 8ACE
-E88E9F E4AF
-E88EA0 E4BA
-E88EA2 E4B0
-E88EA8 E4BC
-E88EAA E4AE
-E88EAB 949C
-E88EB1 9789
-E88EB5 E4B7
-E88EBD E4CD
-E88F81 E4C5
-E88F85 909B
-E88F8A 8B65
-E88F8C 8BDB
-E88F8E E4C0
-E88F93 89D9
-E88F96 8FD2
-E88F98 E4C3
-E88F9C 8DD8
-E88F9F 9370
-E88FA0 E4C8
-E88FA9 95EC
-E88FAB E4BF
-E88FAF 89D8
-E88FB0 8CD4
-E88FB1 9548
-E88FB2 E4C9
-E88FB4 E4BD
-E88FB7 E4C6
-E88FBB E4D0
-E88FBD E4C1
-E89083 E4C2
-E89084 93B8
-E89087 E4C7
-E8908B E4C4
-E8908C 9647
-E8908D E4CA
-E8908E 88DE
-E89093 E4BE
-E890A0 E4CC
-E890A2 E4CB
-E890A9 948B
-E890AA E4D2
-E890AC E4DD
-E890B1 8A9E
-E890B5 E4E0
-E890B8 E4CE
-E890BC E4D3
-E890BD 978E
-E89186 E4DC
-E89189 9774
-E8918E 97A8
-E89197 9298
-E8919B 8A8B
-E891A1 9592
-E891A2 E4E2
-E891A3 939F
-E891A6 88AF
-E891A9 E4DB
-E891AB E4D7
-E891AC 9192
-E891AD E4D1
-E891AE E4D9
-E891AF E4DE
-E891B1 944B
-E891B5 88A8
-E891B7 E4D6
-E891B9 E4DF
-E891BA 9598
-E89282 E4DA
-E89284 E4D5
-E8928B 8FD3
-E89290 8F4E
-E89294 8EAA
-E89299 96D6
-E8929C 9566
-E8929F E4E5
-E892A1 E4EE
-E892AD E4D8
-E892B2 8A97
-E892B8 8FF6
-E892B9 E4E3
-E892BB E4E8
-E892BC 9193
-E892BF E4E4
-E89381 E4EB
-E89384 927E
-E89386 E4EC
-E89389 9775
-E8938A E4E1
-E8938B 8A57
-E8938D E4E7
-E89390 E4EA
-E89391 96AA
-E89396 E4ED
-E89399 E4E6
-E8939A E4E9
-E893AC 9648
-E893AE 9840
-E893B4 E4F1
-E893BC E4F8
-E893BF E4F0
-E89480 8EC1
-E89486 E4CF
-E89491 95CC
-E89493 96A0
-E89494 E4F7
-E89495 E4F6
-E89497 E4F2
-E89498 E4F3
-E8949A 8955
-E8949F E4F5
-E894A1 E4EF
-E894A6 92D3
-E894AC E4F4
-E894AD 88FC
-E894B5 91A0
-E894BD 95C1
-E89580 E4F9
-E89581 E540
-E89583 94D7
-E89588 E4FC
-E89589 8FD4
-E8958A 8EC7
-E8958B E542
-E8958E 8BBC
-E89595 E543
-E89597 9599
-E89598 E4FB
-E8959A E4D4
-E895A3 E4FA
-E895A8 986E
-E895A9 93A0
-E895AA 9593
-E895AD E54A
-E895B7 E550
-E895BE E551
-E89680 E544
-E89684 9496
-E89687 E54E
-E89688 E546
-E8968A E548
-E89690 E552
-E89691 E547
-E89694 E54B
-E89697 8992
-E89699 93E3
-E8969B E54C
-E8969C E54F
-E896A4 E545
-E896A6 9145
-E896A8 E549
-E896A9 8E46
-E896AA 9064
-E896AB 8C4F
-E896AC 96F2
-E896AE 96F7
-E896AF 8F92
-E896B9 E556
-E896BA E554
-E89781 986D
-E89789 E553
-E8978D 9795
-E8978F E555
-E89790 E557
-E89795 E558
-E8979C E55B
-E8979D E559
-E897A4 93A1
-E897A5 E55A
-E897A9 94CB
-E897AA E54D
-E897B7 8F93
-E897B9 E55C
-E897BA E561
-E897BB 9194
-E897BE E560
-E89882 E541
-E89886 E562
-E89887 9168
-E8988A E55D
-E8988B E55F
-E89893 E55E
-E89896 9F50
-E89897 9F41
-E8989A E564
-E898A2 E563
-E898AD 9796
-E898AF E1BA
-E898B0 E565
-E898BF E566
-E8998D E567
-E8998E 8CD5
-E89990 8B73
-E89994 E569
-E89995 997C
-E8999A 8B95
-E8999C 97B8
-E8999E 8BF1
-E8999F E56A
-E899A7 E56B
-E899AB 928E
-E899B1 E56C
-E899B9 93F8
-E899BB 88B8
-E89A8A 89E1
-E89A8B E571
-E89A8C E572
-E89A93 E56D
-E89A95 8E5C
-E89AA3 E56E
-E89AA4 9461
-E89AA9 E56F
-E89AAA E570
-E89AAB E57A
-E89AAF E574
-E89AB0 E577
-E89AB6 E573
-E89B84 E575
-E89B86 E576
-E89B87 8ED6
-E89B89 E578
-E89B8B 9260
-E89B8D 8C75
-E89B8E 8A61
-E89B94 E57B
-E89B99 8A5E
-E89B9B E581
-E89B9E E57C
-E89B9F E580
-E89BA4 94B8
-E89BA9 E57D
-E89BAC E57E
-E89BAD 9567
-E89BAE 94D8
-E89BAF E582
-E89BB8 91FB
-E89BB9 E58C
-E89BBB E588
-E89BBE 89E9
-E89C80 E586
-E89C82 9649
-E89C83 E587
-E89C86 E584
-E89C88 E585
-E89C89 E58A
-E89C8A E58D
-E89C8D E58B
-E89C91 E589
-E89C92 E583
-E89C98 9277
-E89C9A E594
-E89C9C 96A8
-E89CA5 E592
-E89CA9 E593
-E89CB4 E58E
-E89CB7 E590
-E89CBB E591
-E89CBF E58F
-E89D89 90E4
-E89D8B 9858
-E89D8C E598
-E89D8E E599
-E89D93 E59F
-E89D95 9049
-E89D97 E59B
-E89D99 E59E
-E89D9F E596
-E89DA0 E595
-E89DA3 E5A0
-E89DA6 89DA
-E89DA8 E59C
-E89DAA E5A1
-E89DAE E59D
-E89DB4 E59A
-E89DB6 92B1
-E89DB8 E597
-E89DBF 9488
-E89E82 E5A5
-E89E8D 975A
-E89E9F E5A4
-E89EA2 E5A3
-E89EAB E5AC
-E89EAF E5A6
-E89EB3 E5AE
-E89EBA 9786
-E89EBB E5B1
-E89EBD E5A8
-E89F80 E5A9
-E89F84 E5AD
-E89F86 E5B0
-E89F87 E5AF
-E89F8B E5A7
-E89F90 E5AA
-E89F92 E5BB
-E89FA0 E5B4
-E89FAF E5B2
-E89FB2 E5B3
-E89FB6 E5B8
-E89FB7 E5B9
-E89FB9 8A49
-E89FBB 8B61
-E89FBE E5B7
-E8A085 E5A2
-E8A08D E5B6
-E8A08E E5BA
-E8A08F E5B5
-E8A091 E5BC
-E8A095 E5BE
-E8A096 E5BD
-E8A0A1 E5C0
-E8A0A2 E5BF
-E8A0A3 E579
-E8A0A7 E5C4
-E8A0B1 E5C1
-E8A0B6 E5C2
-E8A0B9 E5C3
-E8A0BB E5C5
-E8A180 8C8C
-E8A182 E5C7
-E8A184 E5C6
-E8A186 8F4F
-E8A18C 8D73
-E8A18D 9FA5
-E8A192 E5C8
-E8A193 8F70
-E8A197 8A58
-E8A199 E5C9
-E8A19B 8971
-E8A19D 8FD5
-E8A19E E5CA
-E8A1A1 8D74
-E8A1A2 E5CB
-E8A1A3 88DF
-E8A1A8 955C
-E8A1AB E5CC
-E8A1B0 908A
-E8A1B2 E5D3
-E8A1B5 E5D0
-E8A1B7 928F
-E8A1BD E5D1
-E8A1BE E5CE
-E8A1BF 8BDC
-E8A281 E5CD
-E8A282 E5D4
-E8A288 8C55
-E8A28B 91DC
-E8A28D E5DA
-E8A292 E5D6
-E8A296 91B3
-E8A297 E5D5
-E8A299 E5D8
-E8A29E E5CF
-E8A2A2 E5D9
-E8A2A4 E5DB
-E8A2AB 94ED
-E8A2AE E5D7
-E8A2B0 E5DC
-E8A2B1 E5DE
-E8A2B4 8CD1
-E8A2B5 E5D2
-E8A2B7 88BF
-E8A2BF E5DD
-E8A381 8DD9
-E8A382 97F4
-E8A383 E5DF
-E8A384 E5E0
-E8A385 9195
-E8A38F 97A0
-E8A394 E5E1
-E8A395 9754
-E8A398 E5E2
-E8A399 E5E3
-E8A39C 95E2
-E8A39D E5E4
-E8A39F 8DBE
-E8A3A1 97A1
-E8A3A8 E5E9
-E8A3B2 E5EA
-E8A3B3 8FD6
-E8A3B4 E5E8
-E8A3B8 9787
-E8A3B9 E5E5
-E8A3BC E5E7
-E8A3BD 90BB
-E8A3BE 909E
-E8A482 E5E6
-E8A484 E5EB
-E8A487 95A1
-E8A48A E5ED
-E8A48C E5EC
-E8A490 8A8C
-E8A492 964A
-E8A493 E5EE
-E8A49D E5FA
-E8A49E E5F0
-E8A4A5 E5F1
-E8A4AA E5F2
-E8A4AB E5F3
-E8A4B6 E5F7
-E8A4B8 E5F8
-E8A4BB E5F6
-E8A581 E5F4
-E8A583 E5EF
-E8A584 E5F5
-E8A58C E5F9
-E8A58D E8B5
-E8A596 89A6
-E8A59E E5FC
-E8A59F 8BDD
-E8A5A0 E5FB
-E8A5A4 E641
-E8A5A6 E640
-E8A5AA E643
-E8A5AD E642
-E8A5AF E644
-E8A5B2 8F50
-E8A5B4 E645
-E8A5B7 E646
-E8A5BE E647
-E8A5BF 90BC
-E8A681 9776
-E8A683 E648
-E8A686 95A2
-E8A687 9465
-E8A688 E649
-E8A68A E64A
-E8A68B 8CA9
-E8A68F 8B4B
-E8A693 E64B
-E8A696 8E8B
-E8A697 9460
-E8A698 E64C
-E8A69A 8A6F
-E8A6A1 E64D
-E8A6A6 E64F
-E8A6A7 9797
-E8A6A9 E64E
-E8A6AA 9065
-E8A6AC E650
-E8A6AF E651
-E8A6B2 E652
-E8A6B3 8ACF
-E8A6BA E653
-E8A6BD E654
-E8A6BF E655
-E8A780 E656
-E8A792 8A70
-E8A79A E657
-E8A79C E658
-E8A79D E659
-E8A7A3 89F0
-E8A7A6 9047
-E8A7A7 E65A
-E8A7B4 E65B
-E8A7B8 E65C
-E8A880 8CBE
-E8A882 92F9
-E8A883 E65D
-E8A888 8C76
-E8A88A 9075
-E8A88C E660
-E8A88E 93A2
-E8A890 E65F
-E8A893 8C50
-E8A896 E65E
-E8A897 91F5
-E8A898 8B4C
-E8A89B E661
-E8A89D E662
-E8A89F 8FD7
-E8A8A3 8C8D
-E8A8A5 E663
-E8A8AA 964B
-E8A8AD 90DD
-E8A8B1 8B96
-E8A8B3 96F3
-E8A8B4 9169
-E8A8B6 E664
-E8A8BA 9066
-E8A8BB 9290
-E8A8BC 8FD8
-E8A981 E665
-E8A986 E668
-E8A988 E669
-E8A990 8DBC
-E8A991 91C0
-E8A992 E667
-E8A994 8FD9
-E8A995 955D
-E8A99B E666
-E8A99E 8E8C
-E8A9A0 8972
-E8A9A2 E66D
-E8A9A3 8C77
-E8A9A6 8E8E
-E8A9A9 8E8D
-E8A9AB 986C
-E8A9AC E66C
-E8A9AD E66B
-E8A9AE 9146
-E8A9B0 8B6C
-E8A9B1 9862
-E8A9B2 8A59
-E8A9B3 8FDA
-E8A9BC E66A
-E8AA82 E66F
-E8AA84 E670
-E8AA85 E66E
-E8AA87 8CD6
-E8AA89 975F
-E8AA8C 8E8F
-E8AA8D 9446
-E8AA91 E673
-E8AA93 90BE
-E8AA95 9261
-E8AA98 9755
-E8AA9A E676
-E8AA9E 8CEA
-E8AAA0 90BD
-E8AAA1 E672
-E8AAA3 E677
-E8AAA4 8CEB
-E8AAA5 E674
-E8AAA6 E675
-E8AAA8 E671
-E8AAAC 90E0
-E8AAAD 93C7
-E8AAB0 924E
-E8AAB2 89DB
-E8AAB9 94EE
-E8AABC 8B62
-E8AABF 92B2
-E8AB82 E67A
-E8AB84 E678
-E8AB87 926B
-E8AB8B 90BF
-E8AB8C 8AD0
-E8AB8D E679
-E8AB8F 907A
-E8AB92 97C8
-E8AB96 985F
-E8AB9A E67B
-E8AB9B E687
-E8AB9C 92B3
-E8AB9E E686
-E8ABA0 E683
-E8ABA1 E68B
-E8ABA2 E684
-E8ABA4 E680
-E8ABA6 92FA
-E8ABA7 E67E
-E8ABAB E67C
-E8ABAD 9740
-E8ABAE 8E90
-E8ABB1 E681
-E8ABB3 E67D
-E8ABB7 E685
-E8ABB8 8F94
-E8ABBA 8CBF
-E8ABBE 91F8
-E8AC80 9664
-E8AC81 8979
-E8AC82 88E0
-E8AC84 93A3
-E8AC87 E689
-E8AC8C E688
-E8AC8E 93E4
-E8AC90 E68D
-E8AC94 E682
-E8AC96 E68C
-E8AC97 E68E
-E8AC99 8CAA
-E8AC9A E68A
-E8AC9B 8D75
-E8AC9D 8ED3
-E8ACA0 E68F
-E8ACA1 9777
-E8ACA6 E692
-E8ACA8 E695
-E8ACAB E693
-E8ACAC 9554
-E8ACB3 E690
-E8ACB9 8BDE
-E8ACBE E694
-E8AD81 E696
-E8AD89 E69A
-E8AD8C E697
-E8AD8E E699
-E8AD8F E698
-E8AD96 E69B
-E8AD98 8EAF
-E8AD9A E69D
-E8AD9B E69C
-E8AD9C 9588
-E8AD9F E69F
-E8ADA6 8C78
-E8ADAB E69E
-E8ADAC E6A0
-E8ADAF E6A1
-E8ADB0 8B63
-E8ADB1 E3BF
-E8ADB2 8FF7
-E8ADB4 E6A2
-E8ADB7 8CEC
-E8ADBD E6A3
-E8AE80 E6A4
-E8AE83 8E5D
-E8AE8A 9DCC
-E8AE8C E6A5
-E8AE8E E6A6
-E8AE90 8F51
-E8AE92 E6A7
-E8AE93 E6A8
-E8AE96 E6A9
-E8AE99 E6AA
-E8AE9A E6AB
-E8B0B7 924A
-E8B0BA E6AC
-E8B0BF E6AE
-E8B181 E6AD
-E8B186 93A4
-E8B188 E6AF
-E8B18A 964C
-E8B18C E6B0
-E8B18E E6B1
-E8B190 E6B2
-E8B195 E6B3
-E8B19A 93D8
-E8B1A1 8FDB
-E8B1A2 E6B4
-E8B1AA 8D8B
-E8B1AB 98AC
-E8B1AC E6B5
-E8B1B8 E6B6
-E8B1B9 955E
-E8B1BA E6B7
-E8B1BC E6BF
-E8B282 E6B8
-E8B285 E6BA
-E8B289 E6B9
-E8B28A E6BB
-E8B28C 9665
-E8B28D E6BC
-E8B28E E6BD
-E8B294 E6BE
-E8B298 E6C0
-E8B29D 8A4C
-E8B29E 92E5
-E8B2A0 9589
-E8B2A1 8DE0
-E8B2A2 8D76
-E8B2A7 956E
-E8B2A8 89DD
-E8B2A9 94CC
-E8B2AA E6C3
-E8B2AB 8AD1
-E8B2AC 90D3
-E8B2AD E6C2
-E8B2AE E6C7
-E8B2AF 9299
-E8B2B0 96E1
-E8B2B2 E6C5
-E8B2B3 E6C6
-E8B2B4 8B4D
-E8B2B6 E6C8
-E8B2B7 9483
-E8B2B8 91DD
-E8B2BB 94EF
-E8B2BC 935C
-E8B2BD E6C4
-E8B2BF 9666
-E8B380 89EA
-E8B381 E6CA
-E8B382 9847
-E8B383 92C0
-E8B384 9864
-E8B387 8E91
-E8B388 E6C9
-E8B38A 91AF
-E8B38D E6DA
-E8B38E 9147
-E8B391 93F6
-E8B393 956F
-E8B39A E6CD
-E8B39B 8E5E
-E8B39C 8E92
-E8B39E 8FDC
-E8B3A0 9485
-E8B3A2 8CAB
-E8B3A3 E6CC
-E8B3A4 E6CB
-E8B3A6 958A
-E8B3AA 8EBF
-E8B3AD 9371
-E8B3BA E6CF
-E8B3BB E6D0
-E8B3BC 8D77
-E8B3BD E6CE
-E8B484 E6D1
-E8B485 E6D2
-E8B487 E6D4
-E8B488 91A1
-E8B48A E6D3
-E8B48B 8AE4
-E8B48D E6D6
-E8B48F E6D5
-E8B490 E6D7
-E8B493 E6D9
-E8B494 E6DB
-E8B496 E6DC
-E8B5A4 90D4
-E8B5A6 8ECD
-E8B5A7 E6DD
-E8B5AB 8A71
-E8B5AD E6DE
-E8B5B0 9196
-E8B5B1 E6DF
-E8B5B3 E6E0
-E8B5B4 958B
-E8B5B7 8B4E
-E8B681 E6E1
-E8B685 92B4
-E8B68A 897A
-E8B699 E6E2
-E8B6A3 8EEF
-E8B6A8 9096
-E8B6B3 91AB
-E8B6BA E6E5
-E8B6BE E6E4
-E8B782 E6E3
-E8B78B E6EB
-E8B78C E6E9
-E8B78F E6E6
-E8B796 E6E8
-E8B79A E6E7
-E8B79B E6EA
-E8B79D 8B97
-E8B79F E6EE
-E8B7A1 90D5
-E8B7A3 E6EF
-E8B7A8 8CD7
-E8B7AA E6EC
-E8B7AB E6ED
-E8B7AF 9848
-E8B7B3 92B5
-E8B7B5 9148
-E8B7BC E6F0
-E8B7BF E6F3
-E8B888 E6F1
-E8B889 E6F2
-E8B88A 9778
-E8B88F 93A5
-E8B890 E6F6
-E8B89D E6F4
-E8B89E E6F5
-E8B89F E6F7
-E8B8AA E748
-E8B8B0 E6FA
-E8B8B4 E6FB
-E8B8B5 E6F9
-E8B982 E6F8
-E8B984 92FB
-E8B987 E740
-E8B988 E744
-E8B989 E741
-E8B98A E6FC
-E8B98C E742
-E8B990 E743
-E8B995 E74A
-E8B999 E745
-E8B99F 90D6
-E8B9A0 E747
-E8B9A3 E749
-E8B9A4 E746
-E8B9B2 E74C
-E8B9B4 8F52
-E8B9B6 E74B
-E8B9BC E74D
-E8BA81 E74E
-E8BA84 E751
-E8BA85 E750
-E8BA87 E74F
-E8BA8A E753
-E8BA8B E752
-E8BA8D 96F4
-E8BA91 E755
-E8BA93 E754
-E8BA94 E756
-E8BA99 E757
-E8BAA1 E759
-E8BAAA E758
-E8BAAB 9067
-E8BAAC E75A
-E8BAAF 8BEB
-E8BAB0 E75B
-E8BAB1 E75D
-E8BABE E75E
-E8BB85 E75F
-E8BB86 E75C
-E8BB88 E760
-E8BB8A 8ED4
-E8BB8B E761
-E8BB8C 8B4F
-E8BB8D 8C52
-E8BB92 8CAC
-E8BB9B E762
-E8BB9F 93EE
-E8BBA2 935D
-E8BBA3 E763
-E8BBAB E766
-E8BBB8 8EB2
-E8BBBB E765
-E8BBBC E764
-E8BBBD 8C79
-E8BBBE E767
-E8BC83 8A72
-E8BC85 E769
-E8BC89 8DDA
-E8BC8A E768
-E8BC8C E771
-E8BC92 E76B
-E8BC93 E76D
-E8BC94 95E3
-E8BC95 E76A
-E8BC99 E76C
-E8BC9B E770
-E8BC9C E76E
-E8BC9D 8B50
-E8BC9F E76F
-E8BCA6 E772
-E8BCA9 9479
-E8BCAA 97D6
-E8BCAF 8F53
-E8BCB3 E773
-E8BCB8 9741
-E8BCB9 E775
-E8BCBB E774
-E8BCBE E778
-E8BCBF 9760
-E8BD82 E777
-E8BD84 8A8D
-E8BD85 E776
-E8BD86 E77B
-E8BD89 E77A
-E8BD8C E779
-E8BD8D 9351
-E8BD8E E77C
-E8BD97 E77D
-E8BD9C E77E
-E8BD9F 8D8C
-E8BDA1 8C44
-E8BDA2 E780
-E8BDA3 E781
-E8BDA4 E782
-E8BE9B 9068
-E8BE9C E783
-E8BE9E 8EAB
-E8BE9F E784
-E8BEA3 E785
-E8BEA7 999F
-E8BEA8 999E
-E8BEAD E786
-E8BEAE E390
-E8BEAF E787
-E8BEB0 9243
-E8BEB1 904A
-E8BEB2 945F
-E8BEB7 E788
-E8BEBA 95D3
-E8BEBB 92D2
-E8BEBC 8D9E
-E8BEBF 9248
-E8BF82 8949
-E8BF84 9698
-E8BF85 9076
-E8BF8E 8C7D
-E8BF91 8BDF
-E8BF94 95D4
-E8BF9A E789
-E8BFA2 E78B
-E8BFA5 E78A
-E8BFA6 89DE
-E8BFA9 93F4
-E8BFAA E78C
-E8BFAB 9497
-E8BFAD 9352
-E8BFAF E78D
-E8BFB0 8F71
-E8BFB4 E78F
-E8BFB7 96C0
-E8BFB8 E79E
-E8BFB9 E791
-E8BFBA E792
-E8BFBD 92C7
-E98080 91DE
-E98081 9197
-E98083 93A6
-E98085 E790
-E98086 8B74
-E9808B E799
-E9808D E796
-E9808E E7A3
-E9808F 93A7
-E98090 9280
-E98091 E793
-E98093 92FC
-E98094 9372
-E98095 E794
-E98096 E798
-E98097 9080
-E98099 9487
-E9809A 92CA
-E9809D 90C0
-E9809E E797
-E9809F 91AC
-E980A0 91A2
-E980A1 E795
-E980A2 88A7
-E980A3 9841
-E980A7 E79A
-E980AE 91DF
-E980B1 8F54
-E980B2 9069
-E980B5 E79C
-E980B6 E79B
-E980B8 88ED
-E980B9 E79D
-E980BC 954E
-E980BE E7A5
-E98181 93D9
-E98182 908B
-E98185 9278
-E98187 8BF6
-E98189 E7A4
-E9818A 9756
-E9818B 895E
-E9818D 95D5
-E9818E 89DF
-E9818F E79F
-E98190 E7A0
-E98191 E7A1
-E98192 E7A2
-E98193 93B9
-E98194 9242
-E98195 88E1
-E98196 E7A6
-E98198 E7A7
-E98199 EAA1
-E9819C 91BB
-E9819E E7A8
-E981A0 8993
-E981A1 916B
-E981A3 8CAD
-E981A5 9779
-E981A8 E7A9
-E981A9 934B
-E981AD 9198
-E981AE 8ED5
-E981AF E7AA
-E981B2 E7AD
-E981B5 8F85
-E981B6 E7AB
-E981B7 914A
-E981B8 9149
-E981BA 88E2
-E981BC 97C9
-E981BD E7AF
-E981BF 94F0
-E98280 E7B1
-E98281 E7B0
-E98282 E7AE
-E98283 E284
-E98284 8AD2
-E98287 E78E
-E98289 E7B3
-E9828A E7B2
-E9828F E7B4
-E98291 9757
-E982A3 93DF
-E982A6 964D
-E982A8 E7B5
-E982AA 8ED7
-E982AF E7B6
-E982B1 E7B7
-E982B5 E7B8
-E982B8 9340
-E98381 88E8
-E9838A 8D78
-E9838E 9859
-E9839B E7BC
-E983A1 8C53
-E983A2 E7B9
-E983A4 E7BA
-E983A8 9594
-E983AD 8A73
-E983B5 9758
-E983B7 8BBD
-E983BD 9373
-E98482 E7BD
-E98492 E7BE
-E98499 E7BF
-E984AD 9341
-E984B0 E7C1
-E984B2 E7C0
-E98589 93D1
-E9858A E7C2
-E9858B 8F55
-E9858C 8EDE
-E9858D 947A
-E9858E 9291
-E98592 8EF0
-E98594 908C
-E98596 E7C3
-E98598 E7C4
-E985A2 907C
-E985A3 E7C5
-E985A5 E7C6
-E985A9 E7C7
-E985AA 978F
-E985AC 8F56
-E985B2 E7C9
-E985B3 E7C8
-E985B5 8D79
-E985B7 8D93
-E985B8 8E5F
-E98682 E7CC
-E98687 8F86
-E98689 E7CB
-E9868B E7CA
-E9868D 91E7
-E98690 8CED
-E98692 90C1
-E98697 94AE
-E9869C 8F58
-E986A2 E7CD
-E986A4 8FDD
-E986AA E7D0
-E986AB E7CE
-E986AF E7CF
-E986B4 E7D2
-E986B5 E7D1
-E986B8 8FF8
-E986BA E7D3
-E98780 E7D4
-E98781 E7D5
-E98786 94CE
-E98787 8DD1
-E98788 8EDF
-E98789 E7D6
-E9878B E7D7
-E9878C 97A2
-E9878D 8F64
-E9878E 96EC
-E9878F 97CA
-E98790 E7D8
-E98791 8BE0
-E98796 E7D9
-E98798 9342
-E9879B E7DC
-E9879C 8A98
-E9879D 906A
-E9879F E7DA
-E987A1 E7DB
-E987A3 92DE
-E987A6 9674
-E987A7 8BFA
-E987B5 E7DE
-E987B6 E7DF
-E987BC E7DD
-E987BF E7E1
-E9888D 93DD
-E9888E 8A62
-E98891 E7E5
-E98894 E7E2
-E98895 E7E4
-E9889E E7E0
-E988A9 E86E
-E988AC E7E3
-E988B4 97E9
-E988B7 8CD8
-E988BF E7ED
-E98984 9353
-E98985 E7E8
-E98988 E7EB
-E98989 E7E9
-E9898B E7EE
-E98990 E7EF
-E98997 E7E7
-E9899A E7F4
-E9899B 8994
-E9899E E7E6
-E989A2 94AB
-E989A4 E7EA
-E989A6 8FDE
-E989B1 8D7A
-E989BE 9667
-E98A80 8BE2
-E98A83 8F65
-E98A85 93BA
-E98A91 914C
-E98A93 E7F2
-E98A95 E7EC
-E98A96 E7F1
-E98A98 96C1
-E98A9A 92B6
-E98A9B E7F3
-E98A9C E7F0
-E98AAD 914B
-E98AB7 E7F7
-E98AB9 E7F6
-E98B8F E7F5
-E98B92 964E
-E98BA4 8F9B
-E98BA9 E7F8
-E98BAA 95DD
-E98BAD 8973
-E98BB2 9565
-E98BB3 9292
-E98BB8 8B98
-E98BBA E7FA
-E98BBC 8D7C
-E98C86 8E4B
-E98C8F E7F9
-E98C90 908D
-E98C98 908E
-E98C99 E840
-E98C9A E842
-E98CA0 8FF9
-E98CA2 E841
-E98CA3 E843
-E98CA6 8BD1
-E98CA8 9564
-E98CAB 8EE0
-E98CAC 9842
-E98CAE E7FC
-E98CAF 8DF6
-E98CB2 985E
-E98CB5 E845
-E98CBA E844
-E98CBB E846
-E98D84 E7FB
-E98D8B 93E7
-E98D8D 9374
-E98D94 92D5
-E98D96 E84B
-E98D9B 9262
-E98D9C E847
-E98DA0 E848
-E98DAC 8C4C
-E98DAE E84A
-E98DB5 8CAE
-E98DBC E849
-E98DBE 8FDF
-E98E8C 8A99
-E98E94 E84F
-E98E96 8DBD
-E98E97 9199
-E98E9A 92C8
-E98EA7 8A5A
-E98EAC E84D
-E98EAD E84E
-E98EAE 92C1
-E98EB0 E84C
-E98EB9 E850
-E98F83 E856
-E98F88 E859
-E98F90 E858
-E98F91 934C
-E98F96 E851
-E98F97 E852
-E98F98 E855
-E98F9D E857
-E98FA1 8BBE
-E98FA4 E85A
-E98FA5 E854
-E98FA8 E853
-E99083 E85E
-E99087 E85F
-E99090 E860
-E99093 E85D
-E99094 E85C
-E99098 8FE0
-E99099 93A8
-E9909A E85B
-E990A1 E864
-E990AB E862
-E990B5 E863
-E990B6 E861
-E990B8 91F6
-E990BA E865
-E99181 E866
-E99184 E868
-E99191 8AD3
-E99192 E867
-E99193 96F8
-E9919A E873
-E9919B E869
-E9919E E86C
-E991A0 E86A
-E991A2 E86B
-E991AA E86D
-E991B0 E86F
-E991B5 E870
-E991B7 E871
-E991BC E874
-E991BD E872
-E991BE E875
-E991BF E877
-E99281 E876
-E995B7 92B7
-E99680 96E5
-E99682 E878
-E99683 914D
-E99687 E879
-E99689 95C2
-E9968A E87A
-E9968B 8A4A
-E9968F 895B
-E99691 8AD5
-E99693 8AD4
-E99694 E87B
-E99696 E87C
-E99698 E87D
-E99699 E87E
-E996A0 E880
-E996A2 8AD6
-E996A3 8A74
-E996A4 8D7D
-E996A5 94B4
-E996A7 E882
-E996A8 E881
-E996AD E883
-E996B2 897B
-E996B9 E886
-E996BB E885
-E996BC E884
-E996BE E887
-E99783 E88A
-E99787 88C5
-E9978A E888
-E9978C E88C
-E9978D E88B
-E99794 E88E
-E99795 E88D
-E99796 E88F
-E99798 93AC
-E9979C E890
-E997A1 E891
-E997A2 E893
-E997A5 E892
-E9989C 958C
-E998A1 E894
-E998A8 E895
-E998AA 8DE3
-E998AE E896
-E998AF E897
-E998B2 9668
-E998BB 916A
-E998BF 88A2
-E99980 91C9
-E99982 E898
-E99984 958D
-E9998B E89B
-E9998C E899
-E9998D 8D7E
-E9998F E89A
-E99990 8CC0
-E9999B 95C3
-E9999C E89D
-E9999D E89F
-E9999E E89E
-E9999F E8A0
-E999A2 8940
-E999A3 9077
-E999A4 8F9C
-E999A5 8AD7
-E999A6 E8A1
-E999AA 9486
-E999AC E8A3
-E999B0 8941
-E999B2 E8A2
-E999B3 92C2
-E999B5 97CB
-E999B6 93A9
-E999B7 E89C
-E999B8 97A4
-E999BA 8CAF
-E999BD 977A
-E99A85 8BF7
-E99A86 97B2
-E99A88 8C47
-E99A8A 91E0
-E99A8B E440
-E99A8D E8A4
-E99A8E 8A4B
-E99A8F 908F
-E99A94 8A75
-E99A95 E8A6
-E99A97 E8A7
-E99A98 E8A5
-E99A99 8C84
-E99A9B 8DDB
-E99A9C 8FE1
-E99AA0 8942
-E99AA3 97D7
-E99AA7 E8A9
-E99AA8 E7AC
-E99AAA E8A8
-E99AB0 E8AC
-E99AB1 E8AA
-E99AB2 E8AB
-E99AB4 E8AD
-E99AB6 E8AE
-E99AB7 97EA
-E99AB8 E8AF
-E99AB9 E8B0
-E99ABB 90C7
-E99ABC 94B9
-E99B80 909D
-E99B81 8AE5
-E99B84 9759
-E99B85 89EB
-E99B86 8F57
-E99B87 8CD9
-E99B89 E8B3
-E99B8B E8B2
-E99B8C 8E93
-E99B8D E8B4
-E99B8E E8B1
-E99B91 8E47
-E99B95 E8B8
-E99B96 E5AB
-E99B99 99D4
-E99B9B 9097
-E99B9C E8B6
-E99BA2 97A3
-E99BA3 93EF
-E99BA8 894A
-E99BAA 90E1
-E99BAB 8EB4
-E99BB0 95B5
-E99BB2 895F
-E99BB6 97EB
-E99BB7 978B
-E99BB9 E8B9
-E99BBB 9364
-E99C80 8EF9
-E99C84 E8BA
-E99C86 E8BB
-E99C87 906B
-E99C88 E8BC
-E99C8A 97EC
-E99C8D E8B7
-E99C8E E8BE
-E99C8F E8C0
-E99C91 E8BF
-E99C93 E8BD
-E99C96 E8C1
-E99C99 E8C2
-E99C9C 919A
-E99C9E 89E0
-E99CA4 E8C3
-E99CA7 96B6
-E99CAA E8C4
-E99CB0 E8C5
-E99CB2 9849
-E99CB8 9E50
-E99CB9 E8C6
-E99CBD E8C7
-E99CBE E8C8
-E99D82 E8CC
-E99D84 E8C9
-E99D86 E8CA
-E99D88 E8CB
-E99D89 E8CD
-E99D92 90C2
-E99D96 96F5
-E99D99 90C3
-E99D9C E8CE
-E99D9E 94F1
-E99DA0 E8CF
-E99DA1 EA72
-E99DA2 96CA
-E99DA4 E8D0
-E99DA6 E8D1
-E99DA8 E8D2
-E99DA9 8A76
-E99DAB E8D4
-E99DAD 9078
-E99DB1 E8D5
-E99DB4 8C43
-E99DB9 E8D6
-E99DBA E8DA
-E99DBC E8D8
-E99E81 E8D9
-E99E84 8A93
-E99E85 E8D7
-E99E86 E8DB
-E99E8B E8DC
-E99E8D 88C6
-E99E8F E8DD
-E99E90 E8DE
-E99E98 8FE2
-E99E9C E8DF
-E99EA0 8B66
-E99EA3 E8E2
-E99EA6 E8E1
-E99EA8 E8E0
-E99EAB E691
-E99EAD 95DA
-E99EB3 E8E3
-E99EB4 E8E4
-E99F83 E8E5
-E99F86 E8E6
-E99F88 E8E7
-E99F8B E8E8
-E99F93 8AD8
-E99F9C E8E9
-E99FAD E8EA
-E99FAE 9442
-E99FB2 E8EC
-E99FB3 89B9
-E99FB5 E8EF
-E99FB6 E8EE
-E99FBB 8943
-E99FBF 8BBF
-E9A081 95C5
-E9A082 92B8
-E9A083 8DA0
-E9A085 8D80
-E9A086 8F87
-E9A088 907B
-E9A08C E8F1
-E9A08F E8F0
-E9A090 9761
-E9A091 8AE6
-E9A092 94D0
-E9A093 93DA
-E9A097 909C
-E9A098 97CC
-E9A09A 8C7A
-E9A0A1 E8F4
-E9A0A4 E8F3
-E9A0AC 966A
-E9A0AD 93AA
-E9A0B4 896F
-E9A0B7 E8F5
-E9A0B8 E8F2
-E9A0BB 9570
-E9A0BC 978A
-E9A0BD E8F6
-E9A186 E8F7
-E9A18B E8F9
-E9A18C 91E8
-E9A18D 8A7A
-E9A18E 8A7B
-E9A18F E8F8
-E9A194 8AE7
-E9A195 8CB0
-E9A198 8AE8
-E9A19B 935E
-E9A19E 97DE
-E9A1A7 8CDA
-E9A1AB E8FA
-E9A1AF E8FB
-E9A1B0 E8FC
-E9A1B1 E940
-E9A1B3 E942
-E9A1B4 E941
-E9A2A8 9597
-E9A2AA E943
-E9A2AF E944
-E9A2B1 E945
-E9A2B6 E946
-E9A383 E948
-E9A384 E947
-E9A386 E949
-E9A39B 94F2
-E9A39C E3CA
-E9A39F 9048
-E9A3A2 8B51
-E9A3A9 E94A
-E9A3AB E94B
-E9A3AD 99AA
-E9A3AE 9F5A
-E9A3AF 94D1
-E9A3B2 88F9
-E9A3B4 88B9
-E9A3BC 8E94
-E9A3BD 964F
-E9A3BE 8FFC
-E9A483 E94C
-E9A485 96DD
-E9A489 E94D
-E9A48A 977B
-E9A48C 8961
-E9A490 8E60
-E9A492 E94E
-E9A493 89EC
-E9A494 E94F
-E9A498 E950
-E9A49D E952
-E9A49E E953
-E9A4A0 E955
-E9A4A1 E951
-E9A4A4 E954
-E9A4A8 8AD9
-E9A4AC E956
-E9A4AE E957
-E9A4BD E958
-E9A4BE E959
-E9A582 E95A
-E9A585 E95C
-E9A589 E95B
-E9A58B E95E
-E9A58C E961
-E9A590 E95D
-E9A591 E95F
-E9A592 E960
-E9A595 E962
-E9A597 8BC0
-E9A696 8EF1
-E9A697 E963
-E9A698 E964
-E9A699 8D81
-E9A6A5 E965
-E9A6A8 8A5D
-E9A6AC 946E
-E9A6AD E966
-E9A6AE E967
-E9A6B3 9279
-E9A6B4 93E9
-E9A6BC E968
-E9A781 949D
-E9A784 91CA
-E9A785 8977
-E9A786 8BEC
-E9A788 8BED
-E9A790 9293
-E9A791 E96D
-E9A792 8BEE
-E9A795 89ED
-E9A798 E96C
-E9A79B E96A
-E9A79D E96B
-E9A79F E969
-E9A7A2 E977
-E9A7AD E96E
-E9A7AE E96F
-E9A7B1 E970
-E9A7B2 E971
-E9A7B8 E973
-E9A7BB E972
-E9A7BF 8F78
-E9A881 E974
-E9A885 E976
-E9A88E 8B52
-E9A88F E975
-E9A892 919B
-E9A893 8CB1
-E9A899 E978
-E9A8A8 91CB
-E9A8AB E979
-E9A8B0 93AB
-E9A8B7 E97A
-E9A8BE E980
-E9A980 E97D
-E9A982 E97C
-E9A983 E97E
-E9A985 E97B
-E9A98D E982
-E9A995 E981
-E9A997 E984
-E9A99A 8BC1
-E9A99B E983
-E9A99F E985
-E9A9A2 E986
-E9A9A4 E988
-E9A9A5 E987
-E9A9A9 E989
-E9A9AA E98B
-E9A9AB E98A
-E9AAA8 8D9C
-E9AAAD E98C
-E9AAB0 E98D
-E9AAB8 8A5B
-E9AABC E98E
-E9AB80 E98F
-E9AB84 9091
-E9AB8F E990
-E9AB91 E991
-E9AB93 E992
-E9AB94 E993
-E9AB98 8D82
-E9AB9E E994
-E9AB9F E995
-E9ABA2 E996
-E9ABA3 E997
-E9ABA6 E998
-E9ABAA 94AF
-E9ABAB E99A
-E9ABAD 9545
-E9ABAE E99B
-E9ABAF E999
-E9ABB1 E99D
-E9ABB4 E99C
-E9ABB7 E99E
-E9ABBB E99F
-E9AC86 E9A0
-E9AC98 E9A1
-E9AC9A E9A2
-E9AC9F E9A3
-E9ACA2 E9A4
-E9ACA3 E9A5
-E9ACA5 E9A6
-E9ACA7 E9A7
-E9ACA8 E9A8
-E9ACA9 E9A9
-E9ACAA E9AA
-E9ACAE E9AB
-E9ACAF E9AC
-E9ACB1 9F54
-E9ACB2 E9AD
-E9ACBB E2F6
-E9ACBC 8B53
-E9AD81 8A40
-E9AD82 8DB0
-E9AD83 E9AF
-E9AD84 E9AE
-E9AD85 96A3
-E9AD8D E9B1
-E9AD8E E9B2
-E9AD8F E9B0
-E9AD91 E9B3
-E9AD94 9682
-E9AD98 E9B4
-E9AD9A 8B9B
-E9ADAF 9844
-E9ADB4 E9B5
-E9AE83 E9B7
-E9AE8E 88BC
-E9AE91 E9B8
-E9AE92 95A9
-E9AE93 E9B6
-E9AE96 E9B9
-E9AE97 E9BA
-E9AE9F E9BB
-E9AEA0 E9BC
-E9AEA8 E9BD
-E9AEAA 968E
-E9AEAB 8E4C
-E9AEAD 8DF8
-E9AEAE 914E
-E9AEB4 E9BE
-E9AEB9 E9C1
-E9AF80 E9BF
-E9AF86 E9C2
-E9AF89 8CEF
-E9AF8A E9C0
-E9AF8F E9C3
-E9AF91 E9C4
-E9AF92 E9C5
-E9AF94 E9C9
-E9AF96 8E49
-E9AF9B 91E2
-E9AFA1 E9CA
-E9AFA2 E9C7
-E9AFA3 E9C6
-E9AFA4 E9C8
-E9AFA8 8C7E
-E9AFB0 E9CE
-E9AFB1 E9CD
-E9AFB2 E9CC
-E9AFB5 88B1
-E9B084 E9D8
-E9B086 E9D4
-E9B088 E9D5
-E9B089 E9D1
-E9B08A E9D7
-E9B08C E9D3
-E9B08D 8A82
-E9B090 986B
-E9B092 E9D6
-E9B093 E9D2
-E9B094 E9D0
-E9B095 E9CF
-E9B09B E9DA
-E9B0A1 E9DD
-E9B0A4 E9DC
-E9B0A5 E9DB
-E9B0AD 9568
-E9B0AE E9D9
-E9B0AF 88F1
-E9B0B0 E9DE
-E9B0B2 E9E0
-E9B0B9 8A8F
-E9B0BA E9CB
-E9B0BB 8956
-E9B0BE E9E2
-E9B186 E9E1
-E9B187 E9DF
-E9B188 924C
-E9B192 9690
-E9B197 97D8
-E9B19A E9E3
-E9B1A0 E9E4
-E9B1A7 E9E5
-E9B1B6 E9E6
-E9B1B8 E9E7
-E9B3A5 92B9
-E9B3A7 E9E8
-E9B3A9 94B5
-E9B3AB E9ED
-E9B3AC E9E9
-E9B3B0 E9EA
-E9B3B3 9650
-E9B3B4 96C2
-E9B3B6 93CE
-E9B483 E9EE
-E9B486 E9EF
-E9B487 93BC
-E9B488 E9EC
-E9B489 E9EB
-E9B48E 89A8
-E9B492 E9F7
-E9B495 E9F6
-E9B49B 8995
-E9B49F E9F4
-E9B4A3 E9F3
-E9B4A6 E9F1
-E9B4A8 8A9B
-E9B4AA E9F0
-E9B4AB 8EB0
-E9B4AC 89A7
-E9B4BB 8D83
-E9B4BE E9FA
-E9B4BF E9F9
-E9B581 E9F8
-E9B584 E9F5
-E9B586 E9FB
-E9B588 E9FC
-E9B590 EA44
-E9B591 EA43
-E9B599 EA45
-E9B59C 894C
-E9B59D EA40
-E9B59E EA41
-E9B5A0 8D94
-E9B5A1 96B7
-E9B5A4 EA42
-E9B5AC 9651
-E9B5AF EA4A
-E9B5B2 EA46
-E9B5BA EA4B
-E9B687 EA48
-E9B689 EA47
-E9B68F 8C7B
-E9B69A EA4C
-E9B6A4 EA4D
-E9B6A9 EA4E
-E9B6AB EA49
-E9B6AF E9F2
-E9B6B2 EA4F
-E9B6B4 92DF
-E9B6B8 EA53
-E9B6BA EA54
-E9B6BB EA52
-E9B781 EA51
-E9B782 EA57
-E9B784 EA50
-E9B786 EA55
-E9B78F EA56
-E9B793 EA59
-E9B799 EA58
-E9B7A6 EA5B
-E9B7AD EA5C
-E9B7AF EA5D
-E9B7B2 9868
-E9B7B8 EA5A
-E9B7B9 91E9
-E9B7BA 8DEB
-E9B7BD EA5E
-E9B89A EA5F
-E9B89B EA60
-E9B89E EA61
-E9B9B5 EA62
-E9B9B8 8CB2
-E9B9B9 EA63
-E9B9BD EA64
-E9B9BF 8EAD
-E9BA81 EA65
-E9BA88 EA66
-E9BA8B EA67
-E9BA8C EA68
-E9BA91 EA6B
-E9BA92 EA69
-E9BA93 985B
-E9BA95 EA6A
-E9BA97 97ED
-E9BA9D EA6C
-E9BA9F 97D9
-E9BAA5 EA6D
-E9BAA6 949E
-E9BAA9 EA6E
-E9BAAA EA70
-E9BAAD EA71
-E9BAB8 EA6F
-E9BAB9 8D8D
-E9BABA 96CB
-E9BABB 9683
-E9BABC 9BF5
-E9BABE 9F80
-E9BABF 969B
-E9BB84 89A9
-E9BB8C EA73
-E9BB8D 8B6F
-E9BB8E EA74
-E9BB8F EA75
-E9BB90 EA76
-E9BB92 8D95
-E9BB94 EA77
-E9BB98 E0D2
-E9BB99 96D9
-E9BB9B 91E1
-E9BB9C EA78
-E9BB9D EA7A
-E9BB9E EA79
-E9BBA0 EA7B
-E9BBA5 EA7C
-E9BBA8 EA7D
-E9BBAF EA7E
-E9BBB4 EA80
-E9BBB6 EA81
-E9BBB7 EA82
-E9BBB9 EA83
-E9BBBB EA84
-E9BBBC EA85
-E9BBBD EA86
-E9BC87 EA87
-E9BC88 EA88
-E9BC8E 9343
-E9BC93 8CDB
-E9BC95 EA8A
-E9BCA0 916C
-E9BCA1 EA8B
-E9BCAC EA8C
-E9BCBB 9540
-E9BCBE EA8D
-E9BD8A EA8E
-E9BD8B E256
-E9BD8E E6D8
-E9BD8F E8EB
-E9BD92 EA8F
-E9BD94 EA90
-E9BD9F EA92
-E9BDA0 EA93
-E9BDA1 EA94
-E9BDA2 97EE
-E9BDA3 EA91
-E9BDA6 EA95
-E9BDA7 EA96
-E9BDAA EA98
-E9BDAC EA97
-E9BDB2 EA9A
-E9BDB6 EA9B
-E9BDB7 EA99
-E9BE8D 97B4
-E9BE95 EA9C
-E9BE9C EA9D
-E9BE9D E273
-E9BEA0 EA9E
-EFBC81 8149
-EFBC83 8194
-EFBC84 8190
-EFBC85 8193
-EFBC86 8195
-EFBC88 8169
-EFBC89 816A
-EFBC8A 8196
-EFBC8B 817B
-EFBC8C 8143
-EFBC8E 8144
-EFBC8F 815E
-EFBC90 824F
-EFBC91 8250
-EFBC92 8251
-EFBC93 8252
-EFBC94 8253
-EFBC95 8254
-EFBC96 8255
-EFBC97 8256
-EFBC98 8257
-EFBC99 8258
-EFBC9A 8146
-EFBC9B 8147
-EFBC9C 8183
-EFBC9D 8181
-EFBC9E 8184
-EFBC9F 8148
-EFBCA0 8197
-EFBCA1 8260
-EFBCA2 8261
-EFBCA3 8262
-EFBCA4 8263
-EFBCA5 8264
-EFBCA6 8265
-EFBCA7 8266
-EFBCA8 8267
-EFBCA9 8268
-EFBCAA 8269
-EFBCAB 826A
-EFBCAC 826B
-EFBCAD 826C
-EFBCAE 826D
-EFBCAF 826E
-EFBCB0 826F
-EFBCB1 8270
-EFBCB2 8271
-EFBCB3 8272
-EFBCB4 8273
-EFBCB5 8274
-EFBCB6 8275
-EFBCB7 8276
-EFBCB8 8277
-EFBCB9 8278
-EFBCBA 8279
-EFBCBB 816D
-EFBCBD 816E
-EFBCBE 814F
-EFBCBF 8151
-EFBD80 814D
-EFBD81 8281
-EFBD82 8282
-EFBD83 8283
-EFBD84 8284
-EFBD85 8285
-EFBD86 8286
-EFBD87 8287
-EFBD88 8288
-EFBD89 8289
-EFBD8A 828A
-EFBD8B 828B
-EFBD8C 828C
-EFBD8D 828D
-EFBD8E 828E
-EFBD8F 828F
-EFBD90 8290
-EFBD91 8291
-EFBD92 8292
-EFBD93 8293
-EFBD94 8294
-EFBD95 8295
-EFBD96 8296
-EFBD97 8297
-EFBD98 8298
-EFBD99 8299
-EFBD9A 829A
-EFBD9B 816F
-EFBD9C 8162
-EFBD9D 8170
-EFBDA1 A1
-EFBDA2 A2
-EFBDA3 A3
-EFBDA4 A4
-EFBDA5 A5
-EFBDA6 A6
-EFBDA7 A7
-EFBDA8 A8
-EFBDA9 A9
-EFBDAA AA
-EFBDAB AB
-EFBDAC AC
-EFBDAD AD
-EFBDAE AE
-EFBDAF AF
-EFBDB0 B0
-EFBDB1 B1
-EFBDB2 B2
-EFBDB3 B3
-EFBDB4 B4
-EFBDB5 B5
-EFBDB6 B6
-EFBDB7 B7
-EFBDB8 B8
-EFBDB9 B9
-EFBDBA BA
-EFBDBB BB
-EFBDBC BC
-EFBDBD BD
-EFBDBE BE
-EFBDBF BF
-EFBE80 C0
-EFBE81 C1
-EFBE82 C2
-EFBE83 C3
-EFBE84 C4
-EFBE85 C5
-EFBE86 C6
-EFBE87 C7
-EFBE88 C8
-EFBE89 C9
-EFBE8A CA
-EFBE8B CB
-EFBE8C CC
-EFBE8D CD
-EFBE8E CE
-EFBE8F CF
-EFBE90 D0
-EFBE91 D1
-EFBE92 D2
-EFBE93 D3
-EFBE94 D4
-EFBE95 D5
-EFBE96 D6
-EFBE97 D7
-EFBE98 D8
-EFBE99 D9
-EFBE9A DA
-EFBE9B DB
-EFBE9C DC
-EFBE9D DD
-EFBE9E DE
-EFBE9F DF
-EFBFA3 8150
-EFBFA5 818F
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set names ujis;
-select @@collation_connection;
-@@collation_connection
-ujis_japanese_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET ujis NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-41
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET ujis DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(15) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-4141414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-4141414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-414141
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-414141
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41414141412020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-41414141412020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-41
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-414243
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-4142
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-414243
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-4142432020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-41
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-4142
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-414220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-41422020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-4142202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-41422020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-41
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-4142
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-414243
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-41424320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-41
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-4142
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-414243
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-41424320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-4142432020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-41424320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-ujis_japanese_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-41
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-414243
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-4142
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-414243
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-4142432020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020434241
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-BEBDBCDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDFBCBDBE
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-ujis_japanese_ci
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-4141
-select hex(weight_string(cast(0xA1A1 as char)));
-hex(weight_string(cast(0xA1A1 as char)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1 as char) as char(3)))
-A1A12020
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)))
-A1A1A1A120
-select hex(weight_string(cast(0x40A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1 as char) as char(3)))
-40A1A120
-select hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)))
-4040A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0))
-A1A1A1A120
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0))
-A1A1A1A1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-ujis_japanese_ci
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-4141
-select hex(weight_string(cast(0x8EA1 as char)));
-hex(weight_string(cast(0x8EA1 as char)))
-8EA1
-select hex(weight_string(cast(0x8EA1 as char) as char(1)));
-hex(weight_string(cast(0x8EA1 as char) as char(1)))
-8EA1
-select hex(weight_string(cast(0x8EA18EA1 as char) as char(1)));
-hex(weight_string(cast(0x8EA18EA1 as char) as char(1)))
-8EA1
-select hex(weight_string(cast(0x8EA1 as char) as char(3)));
-hex(weight_string(cast(0x8EA1 as char) as char(3)))
-8EA12020
-select hex(weight_string(cast(0x8EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x8EA18EA1 as char) as char(3)))
-8EA18EA120
-select hex(weight_string(cast(0x408EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA1 as char) as char(3)))
-408EA120
-select hex(weight_string(cast(0x408EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA18EA1 as char) as char(3)))
-408EA18EA1
-select hex(weight_string(cast(0x408EA18EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA18EA18EA1 as char) as char(3)))
-408EA18EA1
-select hex(weight_string(cast(0x40408EA18EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x40408EA18EA18EA1 as char) as char(3)))
-40408EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 2, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 2, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 2, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 2, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 2, 0xC0))
-8EA18EA120
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 2, 0xC0))
-8EA18EA1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 3, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 3, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 3, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 3, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 3, 0xC0))
-8EA18EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 3, 0xC0))
-8EA18EA18EA120202020202020202020202020202020202020
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 4, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 4, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 4, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 4, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 4, 0xC0))
-8EA18EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 4, 0xC0))
-8EA18EA18EA120202020202020202020202020202020202020
-select collation(cast(0x8FA2C3 as char));
-collation(cast(0x8FA2C3 as char))
-ujis_japanese_ci
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-4141
-select hex(weight_string(cast(0x8FA2C3 as char)));
-hex(weight_string(cast(0x8FA2C3 as char)))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C3 as char) as char(1)));
-hex(weight_string(cast(0x8FA2C3 as char) as char(1)))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(1)));
-hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(1)))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x8FA2C3 as char) as char(3)))
-8FA2C32020
-select hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(3)))
-8FA2C38FA2C320
-select hex(weight_string(cast(0x408FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x408FA2C3 as char) as char(3)))
-408FA2C320
-select hex(weight_string(cast(0x408FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x408FA2C38FA2C3 as char) as char(3)))
-408FA2C38FA2C3
-select hex(weight_string(cast(0x408FA2C38FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x408FA2C38FA2C38FA2C3 as char) as char(3)))
-408FA2C38FA2C3
-select hex(weight_string(cast(0x40408FA2C38FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x40408FA2C38FA2C38FA2C3 as char) as char(3)))
-40408FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 2, 0xC0))
-8F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 2, 0xC0))
-8FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 2, 0xC0))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 2, 0xC0))
-8FA2C38F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 2, 0xC0))
-8FA2C38FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 2, 0xC0))
-8FA2C38FA2C320202020202020202020202020202020202020
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 3, 0xC0))
-8F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 3, 0xC0))
-8FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 3, 0xC0))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 3, 0xC0))
-8FA2C38F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 3, 0xC0))
-8FA2C38FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 3, 0xC0))
-8FA2C38FA2C38FA2C320202020202020202020202020202020
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 4, 0xC0))
-8F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 4, 0xC0))
-8FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 4, 0xC0))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 4, 0xC0))
-8FA2C38F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 4, 0xC0))
-8FA2C38FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 4, 0xC0))
-8FA2C38FA2C38FA2C320202020202020202020202020202020
-set collation_connection=ujis_bin;
-select @@collation_connection;
-@@collation_connection
-ujis_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET ujis COLLATE ujis_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-61
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET ujis COLLATE ujis_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(15) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-6161616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-6161616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-616161
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-616161
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61616161612020202020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-61616161612020202020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-61
-select hex(weight_string('A'));
-hex(weight_string('A'))
-41
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-616263
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-6162
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-616263
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-6162632020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-61
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-6162
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-616220
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-61622020
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-6162202020
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-61622020202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-61
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-6162
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-616263
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-61626320202020202020202020202020202020202020202020
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-61
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-6162
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-616263
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-61626320
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-6162632020
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-61626320202020202020202020202020202020202020202020
-select @@collation_connection;
-@@collation_connection
-ujis_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-61
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-41
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-616263
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-6162
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-616263
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-6162632020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-2020636261
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-9E9D9CDFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFDF9C9D9E
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-ujis_bin
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-6141
-select hex(weight_string(cast(0xA1A1 as char)));
-hex(weight_string(cast(0xA1A1 as char)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(1)))
-A1A1
-select hex(weight_string(cast(0xA1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1 as char) as char(3)))
-A1A12020
-select hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0xA1A1A1A1 as char) as char(3)))
-A1A1A1A120
-select hex(weight_string(cast(0x40A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1 as char) as char(3)))
-40A1A120
-select hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3)))
-40A1A1A1A1
-select hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)));
-hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3)))
-4040A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0))
-A1A1A1A120
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0))
-A1A1A1A1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0))
-A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0))
-A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0))
-A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0))
-A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0))
-A1A1A1A1A1
-select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0))
-A1A1A1A1A1A120202020202020202020202020202020202020
-select collation(cast(0xA1A1 as char));
-collation(cast(0xA1A1 as char))
-ujis_bin
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-6141
-select hex(weight_string(cast(0x8EA1 as char)));
-hex(weight_string(cast(0x8EA1 as char)))
-8EA1
-select hex(weight_string(cast(0x8EA1 as char) as char(1)));
-hex(weight_string(cast(0x8EA1 as char) as char(1)))
-8EA1
-select hex(weight_string(cast(0x8EA18EA1 as char) as char(1)));
-hex(weight_string(cast(0x8EA18EA1 as char) as char(1)))
-8EA1
-select hex(weight_string(cast(0x8EA1 as char) as char(3)));
-hex(weight_string(cast(0x8EA1 as char) as char(3)))
-8EA12020
-select hex(weight_string(cast(0x8EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x8EA18EA1 as char) as char(3)))
-8EA18EA120
-select hex(weight_string(cast(0x408EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA1 as char) as char(3)))
-408EA120
-select hex(weight_string(cast(0x408EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA18EA1 as char) as char(3)))
-408EA18EA1
-select hex(weight_string(cast(0x408EA18EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x408EA18EA18EA1 as char) as char(3)))
-408EA18EA1
-select hex(weight_string(cast(0x40408EA18EA18EA1 as char) as char(3)));
-hex(weight_string(cast(0x40408EA18EA18EA1 as char) as char(3)))
-40408EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 2, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 2, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 2, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 2, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 2, 0xC0))
-8EA18EA120
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 2, 0xC0))
-8EA18EA1202020202020202020202020202020202020202020
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 3, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 3, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 3, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 3, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 3, 0xC0))
-8EA18EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 3, 0xC0))
-8EA18EA18EA120202020202020202020202020202020202020
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 1, 4, 0xC0))
-8E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 2, 4, 0xC0))
-8EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 3, 4, 0xC0))
-8EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 4, 4, 0xC0))
-8EA18EA1
-select hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char), 5, 4, 0xC0))
-8EA18EA18E
-select hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x8EA18EA18EA1 as char),25, 4, 0xC0))
-8EA18EA18EA120202020202020202020202020202020202020
-select collation(cast(0x8FA2C3 as char));
-collation(cast(0x8FA2C3 as char))
-ujis_bin
-select hex(weight_string(cast(0x6141 as char)));
-hex(weight_string(cast(0x6141 as char)))
-6141
-select hex(weight_string(cast(0x8FA2C3 as char)));
-hex(weight_string(cast(0x8FA2C3 as char)))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C3 as char) as char(1)));
-hex(weight_string(cast(0x8FA2C3 as char) as char(1)))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(1)));
-hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(1)))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x8FA2C3 as char) as char(3)))
-8FA2C32020
-select hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x8FA2C38FA2C3 as char) as char(3)))
-8FA2C38FA2C320
-select hex(weight_string(cast(0x408FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x408FA2C3 as char) as char(3)))
-408FA2C320
-select hex(weight_string(cast(0x408FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x408FA2C38FA2C3 as char) as char(3)))
-408FA2C38FA2C3
-select hex(weight_string(cast(0x408FA2C38FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x408FA2C38FA2C38FA2C3 as char) as char(3)))
-408FA2C38FA2C3
-select hex(weight_string(cast(0x40408FA2C38FA2C38FA2C3 as char) as char(3)));
-hex(weight_string(cast(0x40408FA2C38FA2C38FA2C3 as char) as char(3)))
-40408FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 2, 0xC0))
-8F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 2, 0xC0))
-8FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 2, 0xC0))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 2, 0xC0))
-8FA2C38F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 2, 0xC0))
-8FA2C38FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 2, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 2, 0xC0))
-8FA2C38FA2C320202020202020202020202020202020202020
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 3, 0xC0))
-8F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 3, 0xC0))
-8FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 3, 0xC0))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 3, 0xC0))
-8FA2C38F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 3, 0xC0))
-8FA2C38FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 3, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 3, 0xC0))
-8FA2C38FA2C38FA2C320202020202020202020202020202020
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 1, 4, 0xC0))
-8F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 2, 4, 0xC0))
-8FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 3, 4, 0xC0))
-8FA2C3
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 4, 4, 0xC0))
-8FA2C38F
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char), 5, 4, 0xC0))
-8FA2C38FA2
-select hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 4, 0xC0));
-hex(weight_string(cast(0x8FA2C38FA2C38FA2C3 as char),25, 4, 0xC0))
-8FA2C38FA2C38FA2C320202020202020202020202020202020
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-6776 ujis and eucjmps erroneously accept 0x8EA0 as a valid byte sequence
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET ujis);
-INSERT IGNORE INTO t1 VALUES (0x8EA0);
-SELECT HEX(a), CHAR_LENGTH(a) FROM t1;
-HEX(a) CHAR_LENGTH(a)
-3F3F 2
-DROP TABLE t1;
-SELECT _ujis 0x8EA0;
-ERROR HY000: Invalid ujis character string: '8EA0'
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8215 Asian MB3 charsets: compare broken bytes as "greater than any non-broken character"
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET ujis, KEY(a));
-INSERT INTO t1 VALUES ('a'),(0x7F);
-INSERT INTO t1 VALUES (0x8EA1),(0x8EDF);
-INSERT INTO t1 VALUES (0x8FA1A1),(0x8FFEFE);
-INSERT INTO t1 VALUES (0xA1A1),(0xDEDE),(0xDFDF),(0xE0E0),(0xFEFE);
-SELECT HEX(a) FROM t1 ORDER BY a;
-HEX(a)
-61
-7F
-8EA1
-8EDF
-8FA1A1
-8FFEFE
-A1A1
-DEDE
-DFDF
-E0E0
-FEFE
-ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET ujis COLLATE ujis_bin;
-SELECT HEX(a) FROM t1 ORDER BY a;
-HEX(a)
-61
-7F
-8EA1
-8EDF
-8FA1A1
-8FFEFE
-A1A1
-DEDE
-DFDF
-E0E0
-FEFE
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9842 LOAD DATA INFILE does not work well with a TEXT column when using sjis
-#
-CREATE TABLE t1 (a TEXT CHARACTER SET ujis);
-LOAD DATA INFILE '../../std_data/loaddata/mdev9823.ujis.txt' IGNORE INTO TABLE t1 CHARACTER SET ujis IGNORE 4 LINES;
-SELECT HEX(a) FROM t1;
-HEX(a)
-3F
-78787831
-3F3F
-78787832
-8FA1A1
-78787833
-3F3F
-DROP TABLE t1;
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=ujis;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ujis_japanese_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ujis_japanese_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=ujis COLLATE=ujis_japanese_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ujis_japanese_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ujis_japanese_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ujis_japanese_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ujis_japanese_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ujis_japanese_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ujis_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ujis_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ujis_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ujis_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ujis_japanese_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ujis_japanese_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'ujis_japanese_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ujis_japanese_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ujis_japanese_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_japanese_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ujis_japanese_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_japanese_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ujis_japanese_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ujis_japanese_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=ujis COLLATE=ujis_japanese_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ujis_japanese_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ujis_japanese_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ujis_japanese_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-41000000000000000000
-41202000000000000000
-20410000000000000000
-20412000000000000000
-41202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ujis_japanese_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ujis_japanese_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ujis_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ujis_japanese_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ujis_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ujis_japanese_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ujis_japanese_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ujis_japanese_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'ujis_japanese_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ujis_japanese_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ujis_japanese_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_japanese_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ujis_japanese_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_japanese_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_japanese_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ujis_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ujis_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=ujis COLLATE=ujis_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ujis_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ujis_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ujis_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ujis_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ujis_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ujis_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ujis_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ujis_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ujis_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ujis_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ujis_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'ujis_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ujis_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ujis_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ujis_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'ujis_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE ujis_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=ujis COLLATE=ujis_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'ujis_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ujis_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'ujis_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-61000000000000000000
-61202000000000000000
-20610000000000000000
-20612000000000000000
-61202020000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'ujis_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'ujis_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'ujis_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'ujis_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'ujis_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'ujis_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'ujis_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'ujis_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'ujis_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'ujis_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'ujis_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'ujis_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'ujis_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_ujis_ucs2.result b/mysql-test/r/ctype_ujis_ucs2.result
deleted file mode 100644
index 77961046346..00000000000
--- a/mysql-test/r/ctype_ujis_ucs2.result
+++ /dev/null
@@ -1,19159 +0,0 @@
-drop table if exists t1, t2;
-create table t2 (code binary(1));
-insert into t2 values (0xA1),(0xA2),(0xA3),(0xA4),(0xA5),(0xA6),(0xA7);
-insert into t2 values (0xA8),(0xA9),(0xAA),(0xAB),(0xAC),(0xAD),(0xAE),(0xAF);
-insert into t2 values (0xB0),(0xB1),(0xB2),(0xB3),(0xB4),(0xB5),(0xB6),(0xB7);
-insert into t2 values (0xB8),(0xB9),(0xBA),(0xBB),(0xBC),(0xBD),(0xBE),(0xBF);
-insert into t2 values (0xC0),(0xC1),(0xC2),(0xC3),(0xC4),(0xC5),(0xC6),(0xC7);
-insert into t2 values (0xC8),(0xC9),(0xCA),(0xCB),(0xCC),(0xCD),(0xCE),(0xCF);
-insert into t2 values (0xD0),(0xD1),(0xD2),(0xD3),(0xD4),(0xD5),(0xD6),(0xD7);
-insert into t2 values (0xD8),(0xD9),(0xDA),(0xDB),(0xDC),(0xDD),(0xDE),(0xDF);
-insert into t2 values (0xE0),(0xE1),(0xE2),(0xE3),(0xE4),(0xE5),(0xE6),(0xE7);
-insert into t2 values (0xE8),(0xE9),(0xEA),(0xEB),(0xEC),(0xED),(0xEE),(0xEF);
-insert into t2 values (0xF0),(0xF1),(0xF2),(0xF3),(0xF4),(0xF5),(0xF6),(0xF7);
-insert into t2 values (0xF8),(0xF9),(0xFA),(0xFB),(0xFC),(0xFD),(0xFE);
-create table t1
-(
-ujis varchar(1) character set ujis collate ujis_bin primary key,
-ucs2 varchar(1) character set ucs2 not null default '',
-ujis2 varchar(1) character set ujis not null default '',
-name varchar(64) character set ujis not null default ''
-);
-insert into t1 set ujis=0x00, name='U+0000 NULL';
-insert into t1 set ujis=0x01, name='U+0001 START OF HEADING';
-insert into t1 set ujis=0x02, name='U+0002 START OF TEXT';
-insert into t1 set ujis=0x03, name='U+0003 END OF TEXT';
-insert into t1 set ujis=0x04, name='U+0004 END OF TRANSMISSION';
-insert into t1 set ujis=0x05, name='U+0005 ENQUIRY';
-insert into t1 set ujis=0x06, name='U+0006 ACKNOWLEDGE';
-insert into t1 set ujis=0x07, name='U+0007 BELL';
-insert into t1 set ujis=0x08, name='U+0008 BACKSPACE';
-insert into t1 set ujis=0x09, name='U+0009 HORIZONTAL TABULATION';
-insert into t1 set ujis=0x0A, name='U+000A LINE FEED';
-insert into t1 set ujis=0x0B, name='U+000B VERTICAL TABULATION';
-insert into t1 set ujis=0x0C, name='U+000C FORM FEED';
-insert into t1 set ujis=0x0D, name='U+000D CARRIAGE RETURN';
-insert into t1 set ujis=0x0E, name='U+000E SHIFT OUT';
-insert into t1 set ujis=0x0F, name='U+000F SHIFT IN';
-insert into t1 set ujis=0x10, name='U+0010 DATA LINK ESCAPE';
-insert into t1 set ujis=0x11, name='U+0011 DEVICE CONTROL ONE';
-insert into t1 set ujis=0x12, name='U+0012 DEVICE CONTROL TWO';
-insert into t1 set ujis=0x13, name='U+0013 DEVICE CONTROL THREE';
-insert into t1 set ujis=0x14, name='U+0014 DEVICE CONTROL FOUR';
-insert into t1 set ujis=0x15, name='U+0015 NEGATIVE ACKNOWLEDGE';
-insert into t1 set ujis=0x16, name='U+0016 SYNCHRONOUS IDLE';
-insert into t1 set ujis=0x17, name='U+0017 END OF TRANSMISSION BLOCK';
-insert into t1 set ujis=0x18, name='U+0018 CANCEL';
-insert into t1 set ujis=0x19, name='U+0019 END OF MEDIUM';
-insert into t1 set ujis=0x1A, name='U+001A SUBSTITUTE';
-insert into t1 set ujis=0x1B, name='U+001B ESCAPE';
-insert into t1 set ujis=0x1C, name='U+001C FILE SEPARATOR';
-insert into t1 set ujis=0x1D, name='U+001D GROUP SEPARATOR';
-insert into t1 set ujis=0x1E, name='U+001E RECORD SEPARATOR';
-insert into t1 set ujis=0x1F, name='U+001F UNIT SEPARATOR';
-insert into t1 set ujis=0x20, name='U+0020 SPACE';
-insert into t1 set ujis=0x21, name='U+0021 EXCLAMATION MARK';
-insert into t1 set ujis=0x22, name='U+0022 QUOTATION MARK';
-insert into t1 set ujis=0x23, name='U+0023 NUMBER SIGN';
-insert into t1 set ujis=0x24, name='U+0024 DOLLAR SIGN';
-insert into t1 set ujis=0x25, name='U+0025 PERCENT SIGN';
-insert into t1 set ujis=0x26, name='U+0026 AMPERSAND';
-insert into t1 set ujis=0x27, name='U+0027 APOSTROPHE';
-insert into t1 set ujis=0x28, name='U+0028 LEFT PARENTHESIS';
-insert into t1 set ujis=0x29, name='U+0029 RIGHT PARENTHESIS';
-insert into t1 set ujis=0x2A, name='U+002A ASTERISK';
-insert into t1 set ujis=0x2B, name='U+002B PLUS SIGN';
-insert into t1 set ujis=0x2C, name='U+002C COMMA';
-insert into t1 set ujis=0x2D, name='U+002D HYPHEN-MINUS';
-insert into t1 set ujis=0x2E, name='U+002E FULL STOP';
-insert into t1 set ujis=0x2F, name='U+002F SOLIDUS';
-insert into t1 set ujis=0x30, name='U+0030 DIGIT ZERO';
-insert into t1 set ujis=0x31, name='U+0031 DIGIT ONE';
-insert into t1 set ujis=0x32, name='U+0032 DIGIT TWO';
-insert into t1 set ujis=0x33, name='U+0033 DIGIT THREE';
-insert into t1 set ujis=0x34, name='U+0034 DIGIT FOUR';
-insert into t1 set ujis=0x35, name='U+0035 DIGIT FIVE';
-insert into t1 set ujis=0x36, name='U+0036 DIGIT SIX';
-insert into t1 set ujis=0x37, name='U+0037 DIGIT SEVEN';
-insert into t1 set ujis=0x38, name='U+0038 DIGIT EIGHT';
-insert into t1 set ujis=0x39, name='U+0039 DIGIT NINE';
-insert into t1 set ujis=0x3A, name='U+003A COLON';
-insert into t1 set ujis=0x3B, name='U+003B SEMICOLON';
-insert into t1 set ujis=0x3C, name='U+003C LESS-THAN SIGN';
-insert into t1 set ujis=0x3D, name='U+003D EQUALS SIGN';
-insert into t1 set ujis=0x3E, name='U+003E GREATER-THAN SIGN';
-insert into t1 set ujis=0x3F, name='U+003F QUESTION MARK';
-insert into t1 set ujis=0x40, name='U+0040 COMMERCIAL AT';
-insert into t1 set ujis=0x41, name='U+0041 LATIN CAPITAL LETTER A';
-insert into t1 set ujis=0x42, name='U+0042 LATIN CAPITAL LETTER B';
-insert into t1 set ujis=0x43, name='U+0043 LATIN CAPITAL LETTER C';
-insert into t1 set ujis=0x44, name='U+0044 LATIN CAPITAL LETTER D';
-insert into t1 set ujis=0x45, name='U+0045 LATIN CAPITAL LETTER E';
-insert into t1 set ujis=0x46, name='U+0046 LATIN CAPITAL LETTER F';
-insert into t1 set ujis=0x47, name='U+0047 LATIN CAPITAL LETTER G';
-insert into t1 set ujis=0x48, name='U+0048 LATIN CAPITAL LETTER H';
-insert into t1 set ujis=0x49, name='U+0049 LATIN CAPITAL LETTER I';
-insert into t1 set ujis=0x4A, name='U+004A LATIN CAPITAL LETTER J';
-insert into t1 set ujis=0x4B, name='U+004B LATIN CAPITAL LETTER K';
-insert into t1 set ujis=0x4C, name='U+004C LATIN CAPITAL LETTER L';
-insert into t1 set ujis=0x4D, name='U+004D LATIN CAPITAL LETTER M';
-insert into t1 set ujis=0x4E, name='U+004E LATIN CAPITAL LETTER N';
-insert into t1 set ujis=0x4F, name='U+004F LATIN CAPITAL LETTER O';
-insert into t1 set ujis=0x50, name='U+0050 LATIN CAPITAL LETTER P';
-insert into t1 set ujis=0x51, name='U+0051 LATIN CAPITAL LETTER Q';
-insert into t1 set ujis=0x52, name='U+0052 LATIN CAPITAL LETTER R';
-insert into t1 set ujis=0x53, name='U+0053 LATIN CAPITAL LETTER S';
-insert into t1 set ujis=0x54, name='U+0054 LATIN CAPITAL LETTER T';
-insert into t1 set ujis=0x55, name='U+0055 LATIN CAPITAL LETTER U';
-insert into t1 set ujis=0x56, name='U+0056 LATIN CAPITAL LETTER V';
-insert into t1 set ujis=0x57, name='U+0057 LATIN CAPITAL LETTER W';
-insert into t1 set ujis=0x58, name='U+0058 LATIN CAPITAL LETTER X';
-insert into t1 set ujis=0x59, name='U+0059 LATIN CAPITAL LETTER Y';
-insert into t1 set ujis=0x5A, name='U+005A LATIN CAPITAL LETTER Z';
-insert into t1 set ujis=0x5B, name='U+005B LEFT SQUARE BRACKET';
-insert into t1 set ujis=0x5C, name='U+005C REVERSE SOLIDUS';
-insert into t1 set ujis=0x5D, name='U+005D RIGHT SQUARE BRACKET';
-insert into t1 set ujis=0x5E, name='U+005E CIRCUMFLEX ACCENT';
-insert into t1 set ujis=0x5F, name='U+005F LOW LINE';
-insert into t1 set ujis=0x60, name='U+0060 GRAVE ACCENT';
-insert into t1 set ujis=0x61, name='U+0061 LATIN SMALL LETTER A';
-insert into t1 set ujis=0x62, name='U+0062 LATIN SMALL LETTER B';
-insert into t1 set ujis=0x63, name='U+0063 LATIN SMALL LETTER C';
-insert into t1 set ujis=0x64, name='U+0064 LATIN SMALL LETTER D';
-insert into t1 set ujis=0x65, name='U+0065 LATIN SMALL LETTER E';
-insert into t1 set ujis=0x66, name='U+0066 LATIN SMALL LETTER F';
-insert into t1 set ujis=0x67, name='U+0067 LATIN SMALL LETTER G';
-insert into t1 set ujis=0x68, name='U+0068 LATIN SMALL LETTER H';
-insert into t1 set ujis=0x69, name='U+0069 LATIN SMALL LETTER I';
-insert into t1 set ujis=0x6A, name='U+006A LATIN SMALL LETTER J';
-insert into t1 set ujis=0x6B, name='U+006B LATIN SMALL LETTER K';
-insert into t1 set ujis=0x6C, name='U+006C LATIN SMALL LETTER L';
-insert into t1 set ujis=0x6D, name='U+006D LATIN SMALL LETTER M';
-insert into t1 set ujis=0x6E, name='U+006E LATIN SMALL LETTER N';
-insert into t1 set ujis=0x6F, name='U+006F LATIN SMALL LETTER O';
-insert into t1 set ujis=0x70, name='U+0070 LATIN SMALL LETTER P';
-insert into t1 set ujis=0x71, name='U+0071 LATIN SMALL LETTER Q';
-insert into t1 set ujis=0x72, name='U+0072 LATIN SMALL LETTER R';
-insert into t1 set ujis=0x73, name='U+0073 LATIN SMALL LETTER S';
-insert into t1 set ujis=0x74, name='U+0074 LATIN SMALL LETTER T';
-insert into t1 set ujis=0x75, name='U+0075 LATIN SMALL LETTER U';
-insert into t1 set ujis=0x76, name='U+0076 LATIN SMALL LETTER V';
-insert into t1 set ujis=0x77, name='U+0077 LATIN SMALL LETTER W';
-insert into t1 set ujis=0x78, name='U+0078 LATIN SMALL LETTER X';
-insert into t1 set ujis=0x79, name='U+0079 LATIN SMALL LETTER Y';
-insert into t1 set ujis=0x7A, name='U+007A LATIN SMALL LETTER Z';
-insert into t1 set ujis=0x7B, name='U+007B LEFT CURLY BRACKET';
-insert into t1 set ujis=0x7C, name='U+007C VERTICAL LINE';
-insert into t1 set ujis=0x7D, name='U+007D RIGHT CURLY BRACKET';
-insert into t1 set ujis=0x7E, name='U+007E TILDE';
-insert into t1 set ujis=0x7F, name='U+007F DELETE';
-insert into t1 (ujis) select concat(t21.code,t22.code) from t2 t21, t2 t22 order by 1;
-update t1 set name='U+3000 IDEOGRAPHIC SPACE' where ujis=0xA1A1;
-update t1 set name='U+3001 IDEOGRAPHIC COMMA' where ujis=0xA1A2;
-update t1 set name='U+3002 IDEOGRAPHIC FULL STOP' where ujis=0xA1A3;
-update t1 set name='U+FF0C FULLWIDTH COMMA' where ujis=0xA1A4;
-update t1 set name='U+FF0E FULLWIDTH FULL STOP' where ujis=0xA1A5;
-update t1 set name='U+30FB KATAKANA MIDDLE DOT' where ujis=0xA1A6;
-update t1 set name='U+FF1A FULLWIDTH COLON' where ujis=0xA1A7;
-update t1 set name='U+FF1B FULLWIDTH SEMICOLON' where ujis=0xA1A8;
-update t1 set name='U+FF1F FULLWIDTH QUESTION MARK' where ujis=0xA1A9;
-update t1 set name='U+FF01 FULLWIDTH EXCLAMATION MARK' where ujis=0xA1AA;
-update t1 set name='U+309B KATAKANA-HIRAGANA VOICED SOUND MARK' where ujis=0xA1AB;
-update t1 set name='U+309C KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK' where ujis=0xA1AC;
-update t1 set name='U+00B4 ACUTE ACCENT' where ujis=0xA1AD;
-update t1 set name='U+FF40 FULLWIDTH GRAVE ACCENT' where ujis=0xA1AE;
-update t1 set name='U+00A8 DIAERESIS' where ujis=0xA1AF;
-update t1 set name='U+FF3E FULLWIDTH CIRCUMFLEX ACCENT' where ujis=0xA1B0;
-update t1 set name='U+FFE3 FULLWIDTH MACRON' where ujis=0xA1B1;
-update t1 set name='U+FF3F FULLWIDTH LOW LINE' where ujis=0xA1B2;
-update t1 set name='U+30FD KATAKANA ITERATION MARK' where ujis=0xA1B3;
-update t1 set name='U+30FE KATAKANA VOICED ITERATION MARK' where ujis=0xA1B4;
-update t1 set name='U+309D HIRAGANA ITERATION MARK' where ujis=0xA1B5;
-update t1 set name='U+309E HIRAGANA VOICED ITERATION MARK' where ujis=0xA1B6;
-update t1 set name='U+3003 DITTO MARK' where ujis=0xA1B7;
-update t1 set name='U+4EDD <CJK>' where ujis=0xA1B8;
-update t1 set name='U+3005 IDEOGRAPHIC ITERATION MARK' where ujis=0xA1B9;
-update t1 set name='U+3006 IDEOGRAPHIC CLOSING MARK' where ujis=0xA1BA;
-update t1 set name='U+3007 IDEOGRAPHIC NUMBER ZERO' where ujis=0xA1BB;
-update t1 set name='U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK' where ujis=0xA1BC;
-update t1 set name='U+2015 HORIZONTAL BAR' where ujis=0xA1BD;
-update t1 set name='U+2010 HYPHEN' where ujis=0xA1BE;
-update t1 set name='U+FF0F FULLWIDTH SOLIDUS' where ujis=0xA1BF;
-update t1 set name='U+005C REVERSE SOLIDUS' where ujis=0xA1C0;
-update t1 set name='U+301C WAVE DASH' where ujis=0xA1C1;
-update t1 set name='U+2016 DOUBLE VERTICAL LINE' where ujis=0xA1C2;
-update t1 set name='U+FF5C FULLWIDTH VERTICAL LINE' where ujis=0xA1C3;
-update t1 set name='U+2026 HORIZONTAL ELLIPSIS' where ujis=0xA1C4;
-update t1 set name='U+2025 TWO DOT LEADER' where ujis=0xA1C5;
-update t1 set name='U+2018 LEFT SINGLE QUOTATION MARK' where ujis=0xA1C6;
-update t1 set name='U+2019 RIGHT SINGLE QUOTATION MARK' where ujis=0xA1C7;
-update t1 set name='U+201C LEFT DOUBLE QUOTATION MARK' where ujis=0xA1C8;
-update t1 set name='U+201D RIGHT DOUBLE QUOTATION MARK' where ujis=0xA1C9;
-update t1 set name='U+FF08 FULLWIDTH LEFT PARENTHESIS' where ujis=0xA1CA;
-update t1 set name='U+FF09 FULLWIDTH RIGHT PARENTHESIS' where ujis=0xA1CB;
-update t1 set name='U+3014 LEFT TORTOISE SHELL BRACKET' where ujis=0xA1CC;
-update t1 set name='U+3015 RIGHT TORTOISE SHELL BRACKET' where ujis=0xA1CD;
-update t1 set name='U+FF3B FULLWIDTH LEFT SQUARE BRACKET' where ujis=0xA1CE;
-update t1 set name='U+FF3D FULLWIDTH RIGHT SQUARE BRACKET' where ujis=0xA1CF;
-update t1 set name='U+FF5B FULLWIDTH LEFT CURLY BRACKET' where ujis=0xA1D0;
-update t1 set name='U+FF5D FULLWIDTH RIGHT CURLY BRACKET' where ujis=0xA1D1;
-update t1 set name='U+3008 LEFT ANGLE BRACKET' where ujis=0xA1D2;
-update t1 set name='U+3009 RIGHT ANGLE BRACKET' where ujis=0xA1D3;
-update t1 set name='U+300A LEFT DOUBLE ANGLE BRACKET' where ujis=0xA1D4;
-update t1 set name='U+300B RIGHT DOUBLE ANGLE BRACKET' where ujis=0xA1D5;
-update t1 set name='U+300C LEFT CORNER BRACKET' where ujis=0xA1D6;
-update t1 set name='U+300D RIGHT CORNER BRACKET' where ujis=0xA1D7;
-update t1 set name='U+300E LEFT WHITE CORNER BRACKET' where ujis=0xA1D8;
-update t1 set name='U+300F RIGHT WHITE CORNER BRACKET' where ujis=0xA1D9;
-update t1 set name='U+3010 LEFT BLACK LENTICULAR BRACKET' where ujis=0xA1DA;
-update t1 set name='U+3011 RIGHT BLACK LENTICULAR BRACKET' where ujis=0xA1DB;
-update t1 set name='U+FF0B FULLWIDTH PLUS SIGN' where ujis=0xA1DC;
-update t1 set name='U+2212 MINUS SIGN' where ujis=0xA1DD;
-update t1 set name='U+00B1 PLUS-MINUS SIGN' where ujis=0xA1DE;
-update t1 set name='U+00D7 MULTIPLICATION SIGN' where ujis=0xA1DF;
-update t1 set name='U+00F7 DIVISION SIGN' where ujis=0xA1E0;
-update t1 set name='U+FF1D FULLWIDTH EQUALS SIGN' where ujis=0xA1E1;
-update t1 set name='U+2260 NOT EQUAL TO' where ujis=0xA1E2;
-update t1 set name='U+FF1C FULLWIDTH LESS-THAN SIGN' where ujis=0xA1E3;
-update t1 set name='U+FF1E FULLWIDTH GREATER-THAN SIGN' where ujis=0xA1E4;
-update t1 set name='U+2266 LESS-THAN OVER EQUAL TO' where ujis=0xA1E5;
-update t1 set name='U+2267 GREATER-THAN OVER EQUAL TO' where ujis=0xA1E6;
-update t1 set name='U+221E INFINITY' where ujis=0xA1E7;
-update t1 set name='U+2234 THEREFORE' where ujis=0xA1E8;
-update t1 set name='U+2642 MALE SIGN' where ujis=0xA1E9;
-update t1 set name='U+2640 FEMALE SIGN' where ujis=0xA1EA;
-update t1 set name='U+00B0 DEGREE SIGN' where ujis=0xA1EB;
-update t1 set name='U+2032 PRIME' where ujis=0xA1EC;
-update t1 set name='U+2033 DOUBLE PRIME' where ujis=0xA1ED;
-update t1 set name='U+2103 DEGREE CELSIUS' where ujis=0xA1EE;
-update t1 set name='U+FFE5 FULLWIDTH YEN SIGN' where ujis=0xA1EF;
-update t1 set name='U+FF04 FULLWIDTH DOLLAR SIGN' where ujis=0xA1F0;
-update t1 set name='U+00A2 CENT SIGN' where ujis=0xA1F1;
-update t1 set name='U+00A3 POUND SIGN' where ujis=0xA1F2;
-update t1 set name='U+FF05 FULLWIDTH PERCENT SIGN' where ujis=0xA1F3;
-update t1 set name='U+FF03 FULLWIDTH NUMBER SIGN' where ujis=0xA1F4;
-update t1 set name='U+FF06 FULLWIDTH AMPERSAND' where ujis=0xA1F5;
-update t1 set name='U+FF0A FULLWIDTH ASTERISK' where ujis=0xA1F6;
-update t1 set name='U+FF20 FULLWIDTH COMMERCIAL AT' where ujis=0xA1F7;
-update t1 set name='U+00A7 SECTION SIGN' where ujis=0xA1F8;
-update t1 set name='U+2606 WHITE STAR' where ujis=0xA1F9;
-update t1 set name='U+2605 BLACK STAR' where ujis=0xA1FA;
-update t1 set name='U+25CB WHITE CIRCLE' where ujis=0xA1FB;
-update t1 set name='U+25CF BLACK CIRCLE' where ujis=0xA1FC;
-update t1 set name='U+25CE BULLSEYE' where ujis=0xA1FD;
-update t1 set name='U+25C7 WHITE DIAMOND' where ujis=0xA1FE;
-update t1 set name='U+25C6 BLACK DIAMOND' where ujis=0xA2A1;
-update t1 set name='U+25A1 WHITE SQUARE' where ujis=0xA2A2;
-update t1 set name='U+25A0 BLACK SQUARE' where ujis=0xA2A3;
-update t1 set name='U+25B3 WHITE UP-POINTING TRIANGLE' where ujis=0xA2A4;
-update t1 set name='U+25B2 BLACK UP-POINTING TRIANGLE' where ujis=0xA2A5;
-update t1 set name='U+25BD WHITE DOWN-POINTING TRIANGLE' where ujis=0xA2A6;
-update t1 set name='U+25BC BLACK DOWN-POINTING TRIANGLE' where ujis=0xA2A7;
-update t1 set name='U+203B REFERENCE MARK' where ujis=0xA2A8;
-update t1 set name='U+3012 POSTAL MARK' where ujis=0xA2A9;
-update t1 set name='U+2192 RIGHTWARDS ARROW' where ujis=0xA2AA;
-update t1 set name='U+2190 LEFTWARDS ARROW' where ujis=0xA2AB;
-update t1 set name='U+2191 UPWARDS ARROW' where ujis=0xA2AC;
-update t1 set name='U+2193 DOWNWARDS ARROW' where ujis=0xA2AD;
-update t1 set name='U+3013 GETA MARK' where ujis=0xA2AE;
-update t1 set name='U+2208 ELEMENT OF' where ujis=0xA2BA;
-update t1 set name='U+220B CONTAINS AS MEMBER' where ujis=0xA2BB;
-update t1 set name='U+2286 SUBset OF OR EQUAL TO' where ujis=0xA2BC;
-update t1 set name='U+2287 SUPERset OF OR EQUAL TO' where ujis=0xA2BD;
-update t1 set name='U+2282 SUBset OF' where ujis=0xA2BE;
-update t1 set name='U+2283 SUPERset OF' where ujis=0xA2BF;
-update t1 set name='U+222A UNION' where ujis=0xA2C0;
-update t1 set name='U+2229 INTERSECTION' where ujis=0xA2C1;
-update t1 set name='U+2227 LOGICAL AND' where ujis=0xA2CA;
-update t1 set name='U+2228 LOGICAL OR' where ujis=0xA2CB;
-update t1 set name='U+00AC NOT SIGN' where ujis=0xA2CC;
-update t1 set name='U+21D2 RIGHTWARDS DOUBLE ARROW' where ujis=0xA2CD;
-update t1 set name='U+21D4 LEFT RIGHT DOUBLE ARROW' where ujis=0xA2CE;
-update t1 set name='U+2200 FOR ALL' where ujis=0xA2CF;
-update t1 set name='U+2203 THERE EXISTS' where ujis=0xA2D0;
-update t1 set name='U+2220 ANGLE' where ujis=0xA2DC;
-update t1 set name='U+22A5 UP TACK' where ujis=0xA2DD;
-update t1 set name='U+2312 ARC' where ujis=0xA2DE;
-update t1 set name='U+2202 PARTIAL DIFFERENTIAL' where ujis=0xA2DF;
-update t1 set name='U+2207 NABLA' where ujis=0xA2E0;
-update t1 set name='U+2261 IDENTICAL TO' where ujis=0xA2E1;
-update t1 set name='U+2252 APPROXIMATELY EQUAL TO OR THE IMAGE OF' where ujis=0xA2E2;
-update t1 set name='U+226A MUCH LESS-THAN' where ujis=0xA2E3;
-update t1 set name='U+226B MUCH GREATER-THAN' where ujis=0xA2E4;
-update t1 set name='U+221A SQUARE ROOT' where ujis=0xA2E5;
-update t1 set name='U+223D REVERSED TILDE' where ujis=0xA2E6;
-update t1 set name='U+221D PROPORTIONAL TO' where ujis=0xA2E7;
-update t1 set name='U+2235 BECAUSE' where ujis=0xA2E8;
-update t1 set name='U+222B INTEGRAL' where ujis=0xA2E9;
-update t1 set name='U+222C DOUBLE INTEGRAL' where ujis=0xA2EA;
-update t1 set name='U+212B ANGSTROM SIGN' where ujis=0xA2F2;
-update t1 set name='U+2030 PER MILLE SIGN' where ujis=0xA2F3;
-update t1 set name='U+266F MUSIC SHARP SIGN' where ujis=0xA2F4;
-update t1 set name='U+266D MUSIC FLAT SIGN' where ujis=0xA2F5;
-update t1 set name='U+266A EIGHTH NOTE' where ujis=0xA2F6;
-update t1 set name='U+2020 DAGGER' where ujis=0xA2F7;
-update t1 set name='U+2021 DOUBLE DAGGER' where ujis=0xA2F8;
-update t1 set name='U+00B6 PILCROW SIGN' where ujis=0xA2F9;
-update t1 set name='U+25EF LARGE CIRCLE' where ujis=0xA2FE;
-update t1 set name='U+FF10 FULLWIDTH DIGIT ZERO' where ujis=0xA3B0;
-update t1 set name='U+FF11 FULLWIDTH DIGIT ONE' where ujis=0xA3B1;
-update t1 set name='U+FF12 FULLWIDTH DIGIT TWO' where ujis=0xA3B2;
-update t1 set name='U+FF13 FULLWIDTH DIGIT THREE' where ujis=0xA3B3;
-update t1 set name='U+FF14 FULLWIDTH DIGIT FOUR' where ujis=0xA3B4;
-update t1 set name='U+FF15 FULLWIDTH DIGIT FIVE' where ujis=0xA3B5;
-update t1 set name='U+FF16 FULLWIDTH DIGIT SIX' where ujis=0xA3B6;
-update t1 set name='U+FF17 FULLWIDTH DIGIT SEVEN' where ujis=0xA3B7;
-update t1 set name='U+FF18 FULLWIDTH DIGIT EIGHT' where ujis=0xA3B8;
-update t1 set name='U+FF19 FULLWIDTH DIGIT NINE' where ujis=0xA3B9;
-update t1 set name='U+FF21 FULLWIDTH LATIN CAPITAL LETTER A' where ujis=0xA3C1;
-update t1 set name='U+FF22 FULLWIDTH LATIN CAPITAL LETTER B' where ujis=0xA3C2;
-update t1 set name='U+FF23 FULLWIDTH LATIN CAPITAL LETTER C' where ujis=0xA3C3;
-update t1 set name='U+FF24 FULLWIDTH LATIN CAPITAL LETTER D' where ujis=0xA3C4;
-update t1 set name='U+FF25 FULLWIDTH LATIN CAPITAL LETTER E' where ujis=0xA3C5;
-update t1 set name='U+FF26 FULLWIDTH LATIN CAPITAL LETTER F' where ujis=0xA3C6;
-update t1 set name='U+FF27 FULLWIDTH LATIN CAPITAL LETTER G' where ujis=0xA3C7;
-update t1 set name='U+FF28 FULLWIDTH LATIN CAPITAL LETTER H' where ujis=0xA3C8;
-update t1 set name='U+FF29 FULLWIDTH LATIN CAPITAL LETTER I' where ujis=0xA3C9;
-update t1 set name='U+FF2A FULLWIDTH LATIN CAPITAL LETTER J' where ujis=0xA3CA;
-update t1 set name='U+FF2B FULLWIDTH LATIN CAPITAL LETTER K' where ujis=0xA3CB;
-update t1 set name='U+FF2C FULLWIDTH LATIN CAPITAL LETTER L' where ujis=0xA3CC;
-update t1 set name='U+FF2D FULLWIDTH LATIN CAPITAL LETTER M' where ujis=0xA3CD;
-update t1 set name='U+FF2E FULLWIDTH LATIN CAPITAL LETTER N' where ujis=0xA3CE;
-update t1 set name='U+FF2F FULLWIDTH LATIN CAPITAL LETTER O' where ujis=0xA3CF;
-update t1 set name='U+FF30 FULLWIDTH LATIN CAPITAL LETTER P' where ujis=0xA3D0;
-update t1 set name='U+FF31 FULLWIDTH LATIN CAPITAL LETTER Q' where ujis=0xA3D1;
-update t1 set name='U+FF32 FULLWIDTH LATIN CAPITAL LETTER R' where ujis=0xA3D2;
-update t1 set name='U+FF33 FULLWIDTH LATIN CAPITAL LETTER S' where ujis=0xA3D3;
-update t1 set name='U+FF34 FULLWIDTH LATIN CAPITAL LETTER T' where ujis=0xA3D4;
-update t1 set name='U+FF35 FULLWIDTH LATIN CAPITAL LETTER U' where ujis=0xA3D5;
-update t1 set name='U+FF36 FULLWIDTH LATIN CAPITAL LETTER V' where ujis=0xA3D6;
-update t1 set name='U+FF37 FULLWIDTH LATIN CAPITAL LETTER W' where ujis=0xA3D7;
-update t1 set name='U+FF38 FULLWIDTH LATIN CAPITAL LETTER X' where ujis=0xA3D8;
-update t1 set name='U+FF39 FULLWIDTH LATIN CAPITAL LETTER Y' where ujis=0xA3D9;
-update t1 set name='U+FF3A FULLWIDTH LATIN CAPITAL LETTER Z' where ujis=0xA3DA;
-update t1 set name='U+FF41 FULLWIDTH LATIN SMALL LETTER A' where ujis=0xA3E1;
-update t1 set name='U+FF42 FULLWIDTH LATIN SMALL LETTER B' where ujis=0xA3E2;
-update t1 set name='U+FF43 FULLWIDTH LATIN SMALL LETTER C' where ujis=0xA3E3;
-update t1 set name='U+FF44 FULLWIDTH LATIN SMALL LETTER D' where ujis=0xA3E4;
-update t1 set name='U+FF45 FULLWIDTH LATIN SMALL LETTER E' where ujis=0xA3E5;
-update t1 set name='U+FF46 FULLWIDTH LATIN SMALL LETTER F' where ujis=0xA3E6;
-update t1 set name='U+FF47 FULLWIDTH LATIN SMALL LETTER G' where ujis=0xA3E7;
-update t1 set name='U+FF48 FULLWIDTH LATIN SMALL LETTER H' where ujis=0xA3E8;
-update t1 set name='U+FF49 FULLWIDTH LATIN SMALL LETTER I' where ujis=0xA3E9;
-update t1 set name='U+FF4A FULLWIDTH LATIN SMALL LETTER J' where ujis=0xA3EA;
-update t1 set name='U+FF4B FULLWIDTH LATIN SMALL LETTER K' where ujis=0xA3EB;
-update t1 set name='U+FF4C FULLWIDTH LATIN SMALL LETTER L' where ujis=0xA3EC;
-update t1 set name='U+FF4D FULLWIDTH LATIN SMALL LETTER M' where ujis=0xA3ED;
-update t1 set name='U+FF4E FULLWIDTH LATIN SMALL LETTER N' where ujis=0xA3EE;
-update t1 set name='U+FF4F FULLWIDTH LATIN SMALL LETTER O' where ujis=0xA3EF;
-update t1 set name='U+FF50 FULLWIDTH LATIN SMALL LETTER P' where ujis=0xA3F0;
-update t1 set name='U+FF51 FULLWIDTH LATIN SMALL LETTER Q' where ujis=0xA3F1;
-update t1 set name='U+FF52 FULLWIDTH LATIN SMALL LETTER R' where ujis=0xA3F2;
-update t1 set name='U+FF53 FULLWIDTH LATIN SMALL LETTER S' where ujis=0xA3F3;
-update t1 set name='U+FF54 FULLWIDTH LATIN SMALL LETTER T' where ujis=0xA3F4;
-update t1 set name='U+FF55 FULLWIDTH LATIN SMALL LETTER U' where ujis=0xA3F5;
-update t1 set name='U+FF56 FULLWIDTH LATIN SMALL LETTER V' where ujis=0xA3F6;
-update t1 set name='U+FF57 FULLWIDTH LATIN SMALL LETTER W' where ujis=0xA3F7;
-update t1 set name='U+FF58 FULLWIDTH LATIN SMALL LETTER X' where ujis=0xA3F8;
-update t1 set name='U+FF59 FULLWIDTH LATIN SMALL LETTER Y' where ujis=0xA3F9;
-update t1 set name='U+FF5A FULLWIDTH LATIN SMALL LETTER Z' where ujis=0xA3FA;
-update t1 set name='U+3041 HIRAGANA LETTER SMALL A' where ujis=0xA4A1;
-update t1 set name='U+3042 HIRAGANA LETTER A' where ujis=0xA4A2;
-update t1 set name='U+3043 HIRAGANA LETTER SMALL I' where ujis=0xA4A3;
-update t1 set name='U+3044 HIRAGANA LETTER I' where ujis=0xA4A4;
-update t1 set name='U+3045 HIRAGANA LETTER SMALL U' where ujis=0xA4A5;
-update t1 set name='U+3046 HIRAGANA LETTER U' where ujis=0xA4A6;
-update t1 set name='U+3047 HIRAGANA LETTER SMALL E' where ujis=0xA4A7;
-update t1 set name='U+3048 HIRAGANA LETTER E' where ujis=0xA4A8;
-update t1 set name='U+3049 HIRAGANA LETTER SMALL O' where ujis=0xA4A9;
-update t1 set name='U+304A HIRAGANA LETTER O' where ujis=0xA4AA;
-update t1 set name='U+304B HIRAGANA LETTER KA' where ujis=0xA4AB;
-update t1 set name='U+304C HIRAGANA LETTER GA' where ujis=0xA4AC;
-update t1 set name='U+304D HIRAGANA LETTER KI' where ujis=0xA4AD;
-update t1 set name='U+304E HIRAGANA LETTER GI' where ujis=0xA4AE;
-update t1 set name='U+304F HIRAGANA LETTER KU' where ujis=0xA4AF;
-update t1 set name='U+3050 HIRAGANA LETTER GU' where ujis=0xA4B0;
-update t1 set name='U+3051 HIRAGANA LETTER KE' where ujis=0xA4B1;
-update t1 set name='U+3052 HIRAGANA LETTER GE' where ujis=0xA4B2;
-update t1 set name='U+3053 HIRAGANA LETTER KO' where ujis=0xA4B3;
-update t1 set name='U+3054 HIRAGANA LETTER GO' where ujis=0xA4B4;
-update t1 set name='U+3055 HIRAGANA LETTER SA' where ujis=0xA4B5;
-update t1 set name='U+3056 HIRAGANA LETTER ZA' where ujis=0xA4B6;
-update t1 set name='U+3057 HIRAGANA LETTER SI' where ujis=0xA4B7;
-update t1 set name='U+3058 HIRAGANA LETTER ZI' where ujis=0xA4B8;
-update t1 set name='U+3059 HIRAGANA LETTER SU' where ujis=0xA4B9;
-update t1 set name='U+305A HIRAGANA LETTER ZU' where ujis=0xA4BA;
-update t1 set name='U+305B HIRAGANA LETTER SE' where ujis=0xA4BB;
-update t1 set name='U+305C HIRAGANA LETTER ZE' where ujis=0xA4BC;
-update t1 set name='U+305D HIRAGANA LETTER SO' where ujis=0xA4BD;
-update t1 set name='U+305E HIRAGANA LETTER ZO' where ujis=0xA4BE;
-update t1 set name='U+305F HIRAGANA LETTER TA' where ujis=0xA4BF;
-update t1 set name='U+3060 HIRAGANA LETTER DA' where ujis=0xA4C0;
-update t1 set name='U+3061 HIRAGANA LETTER TI' where ujis=0xA4C1;
-update t1 set name='U+3062 HIRAGANA LETTER DI' where ujis=0xA4C2;
-update t1 set name='U+3063 HIRAGANA LETTER SMALL TU' where ujis=0xA4C3;
-update t1 set name='U+3064 HIRAGANA LETTER TU' where ujis=0xA4C4;
-update t1 set name='U+3065 HIRAGANA LETTER DU' where ujis=0xA4C5;
-update t1 set name='U+3066 HIRAGANA LETTER TE' where ujis=0xA4C6;
-update t1 set name='U+3067 HIRAGANA LETTER DE' where ujis=0xA4C7;
-update t1 set name='U+3068 HIRAGANA LETTER TO' where ujis=0xA4C8;
-update t1 set name='U+3069 HIRAGANA LETTER DO' where ujis=0xA4C9;
-update t1 set name='U+306A HIRAGANA LETTER NA' where ujis=0xA4CA;
-update t1 set name='U+306B HIRAGANA LETTER NI' where ujis=0xA4CB;
-update t1 set name='U+306C HIRAGANA LETTER NU' where ujis=0xA4CC;
-update t1 set name='U+306D HIRAGANA LETTER NE' where ujis=0xA4CD;
-update t1 set name='U+306E HIRAGANA LETTER NO' where ujis=0xA4CE;
-update t1 set name='U+306F HIRAGANA LETTER HA' where ujis=0xA4CF;
-update t1 set name='U+3070 HIRAGANA LETTER BA' where ujis=0xA4D0;
-update t1 set name='U+3071 HIRAGANA LETTER PA' where ujis=0xA4D1;
-update t1 set name='U+3072 HIRAGANA LETTER HI' where ujis=0xA4D2;
-update t1 set name='U+3073 HIRAGANA LETTER BI' where ujis=0xA4D3;
-update t1 set name='U+3074 HIRAGANA LETTER PI' where ujis=0xA4D4;
-update t1 set name='U+3075 HIRAGANA LETTER HU' where ujis=0xA4D5;
-update t1 set name='U+3076 HIRAGANA LETTER BU' where ujis=0xA4D6;
-update t1 set name='U+3077 HIRAGANA LETTER PU' where ujis=0xA4D7;
-update t1 set name='U+3078 HIRAGANA LETTER HE' where ujis=0xA4D8;
-update t1 set name='U+3079 HIRAGANA LETTER BE' where ujis=0xA4D9;
-update t1 set name='U+307A HIRAGANA LETTER PE' where ujis=0xA4DA;
-update t1 set name='U+307B HIRAGANA LETTER HO' where ujis=0xA4DB;
-update t1 set name='U+307C HIRAGANA LETTER BO' where ujis=0xA4DC;
-update t1 set name='U+307D HIRAGANA LETTER PO' where ujis=0xA4DD;
-update t1 set name='U+307E HIRAGANA LETTER MA' where ujis=0xA4DE;
-update t1 set name='U+307F HIRAGANA LETTER MI' where ujis=0xA4DF;
-update t1 set name='U+3080 HIRAGANA LETTER MU' where ujis=0xA4E0;
-update t1 set name='U+3081 HIRAGANA LETTER ME' where ujis=0xA4E1;
-update t1 set name='U+3082 HIRAGANA LETTER MO' where ujis=0xA4E2;
-update t1 set name='U+3083 HIRAGANA LETTER SMALL YA' where ujis=0xA4E3;
-update t1 set name='U+3084 HIRAGANA LETTER YA' where ujis=0xA4E4;
-update t1 set name='U+3085 HIRAGANA LETTER SMALL YU' where ujis=0xA4E5;
-update t1 set name='U+3086 HIRAGANA LETTER YU' where ujis=0xA4E6;
-update t1 set name='U+3087 HIRAGANA LETTER SMALL YO' where ujis=0xA4E7;
-update t1 set name='U+3088 HIRAGANA LETTER YO' where ujis=0xA4E8;
-update t1 set name='U+3089 HIRAGANA LETTER RA' where ujis=0xA4E9;
-update t1 set name='U+308A HIRAGANA LETTER RI' where ujis=0xA4EA;
-update t1 set name='U+308B HIRAGANA LETTER RU' where ujis=0xA4EB;
-update t1 set name='U+308C HIRAGANA LETTER RE' where ujis=0xA4EC;
-update t1 set name='U+308D HIRAGANA LETTER RO' where ujis=0xA4ED;
-update t1 set name='U+308E HIRAGANA LETTER SMALL WA' where ujis=0xA4EE;
-update t1 set name='U+308F HIRAGANA LETTER WA' where ujis=0xA4EF;
-update t1 set name='U+3090 HIRAGANA LETTER WI' where ujis=0xA4F0;
-update t1 set name='U+3091 HIRAGANA LETTER WE' where ujis=0xA4F1;
-update t1 set name='U+3092 HIRAGANA LETTER WO' where ujis=0xA4F2;
-update t1 set name='U+3093 HIRAGANA LETTER N' where ujis=0xA4F3;
-update t1 set name='U+30A1 KATAKANA LETTER SMALL A' where ujis=0xA5A1;
-update t1 set name='U+30A2 KATAKANA LETTER A' where ujis=0xA5A2;
-update t1 set name='U+30A3 KATAKANA LETTER SMALL I' where ujis=0xA5A3;
-update t1 set name='U+30A4 KATAKANA LETTER I' where ujis=0xA5A4;
-update t1 set name='U+30A5 KATAKANA LETTER SMALL U' where ujis=0xA5A5;
-update t1 set name='U+30A6 KATAKANA LETTER U' where ujis=0xA5A6;
-update t1 set name='U+30A7 KATAKANA LETTER SMALL E' where ujis=0xA5A7;
-update t1 set name='U+30A8 KATAKANA LETTER E' where ujis=0xA5A8;
-update t1 set name='U+30A9 KATAKANA LETTER SMALL O' where ujis=0xA5A9;
-update t1 set name='U+30AA KATAKANA LETTER O' where ujis=0xA5AA;
-update t1 set name='U+30AB KATAKANA LETTER KA' where ujis=0xA5AB;
-update t1 set name='U+30AC KATAKANA LETTER GA' where ujis=0xA5AC;
-update t1 set name='U+30AD KATAKANA LETTER KI' where ujis=0xA5AD;
-update t1 set name='U+30AE KATAKANA LETTER GI' where ujis=0xA5AE;
-update t1 set name='U+30AF KATAKANA LETTER KU' where ujis=0xA5AF;
-update t1 set name='U+30B0 KATAKANA LETTER GU' where ujis=0xA5B0;
-update t1 set name='U+30B1 KATAKANA LETTER KE' where ujis=0xA5B1;
-update t1 set name='U+30B2 KATAKANA LETTER GE' where ujis=0xA5B2;
-update t1 set name='U+30B3 KATAKANA LETTER KO' where ujis=0xA5B3;
-update t1 set name='U+30B4 KATAKANA LETTER GO' where ujis=0xA5B4;
-update t1 set name='U+30B5 KATAKANA LETTER SA' where ujis=0xA5B5;
-update t1 set name='U+30B6 KATAKANA LETTER ZA' where ujis=0xA5B6;
-update t1 set name='U+30B7 KATAKANA LETTER SI' where ujis=0xA5B7;
-update t1 set name='U+30B8 KATAKANA LETTER ZI' where ujis=0xA5B8;
-update t1 set name='U+30B9 KATAKANA LETTER SU' where ujis=0xA5B9;
-update t1 set name='U+30BA KATAKANA LETTER ZU' where ujis=0xA5BA;
-update t1 set name='U+30BB KATAKANA LETTER SE' where ujis=0xA5BB;
-update t1 set name='U+30BC KATAKANA LETTER ZE' where ujis=0xA5BC;
-update t1 set name='U+30BD KATAKANA LETTER SO' where ujis=0xA5BD;
-update t1 set name='U+30BE KATAKANA LETTER ZO' where ujis=0xA5BE;
-update t1 set name='U+30BF KATAKANA LETTER TA' where ujis=0xA5BF;
-update t1 set name='U+30C0 KATAKANA LETTER DA' where ujis=0xA5C0;
-update t1 set name='U+30C1 KATAKANA LETTER TI' where ujis=0xA5C1;
-update t1 set name='U+30C2 KATAKANA LETTER DI' where ujis=0xA5C2;
-update t1 set name='U+30C3 KATAKANA LETTER SMALL TU' where ujis=0xA5C3;
-update t1 set name='U+30C4 KATAKANA LETTER TU' where ujis=0xA5C4;
-update t1 set name='U+30C5 KATAKANA LETTER DU' where ujis=0xA5C5;
-update t1 set name='U+30C6 KATAKANA LETTER TE' where ujis=0xA5C6;
-update t1 set name='U+30C7 KATAKANA LETTER DE' where ujis=0xA5C7;
-update t1 set name='U+30C8 KATAKANA LETTER TO' where ujis=0xA5C8;
-update t1 set name='U+30C9 KATAKANA LETTER DO' where ujis=0xA5C9;
-update t1 set name='U+30CA KATAKANA LETTER NA' where ujis=0xA5CA;
-update t1 set name='U+30CB KATAKANA LETTER NI' where ujis=0xA5CB;
-update t1 set name='U+30CC KATAKANA LETTER NU' where ujis=0xA5CC;
-update t1 set name='U+30CD KATAKANA LETTER NE' where ujis=0xA5CD;
-update t1 set name='U+30CE KATAKANA LETTER NO' where ujis=0xA5CE;
-update t1 set name='U+30CF KATAKANA LETTER HA' where ujis=0xA5CF;
-update t1 set name='U+30D0 KATAKANA LETTER BA' where ujis=0xA5D0;
-update t1 set name='U+30D1 KATAKANA LETTER PA' where ujis=0xA5D1;
-update t1 set name='U+30D2 KATAKANA LETTER HI' where ujis=0xA5D2;
-update t1 set name='U+30D3 KATAKANA LETTER BI' where ujis=0xA5D3;
-update t1 set name='U+30D4 KATAKANA LETTER PI' where ujis=0xA5D4;
-update t1 set name='U+30D5 KATAKANA LETTER HU' where ujis=0xA5D5;
-update t1 set name='U+30D6 KATAKANA LETTER BU' where ujis=0xA5D6;
-update t1 set name='U+30D7 KATAKANA LETTER PU' where ujis=0xA5D7;
-update t1 set name='U+30D8 KATAKANA LETTER HE' where ujis=0xA5D8;
-update t1 set name='U+30D9 KATAKANA LETTER BE' where ujis=0xA5D9;
-update t1 set name='U+30DA KATAKANA LETTER PE' where ujis=0xA5DA;
-update t1 set name='U+30DB KATAKANA LETTER HO' where ujis=0xA5DB;
-update t1 set name='U+30DC KATAKANA LETTER BO' where ujis=0xA5DC;
-update t1 set name='U+30DD KATAKANA LETTER PO' where ujis=0xA5DD;
-update t1 set name='U+30DE KATAKANA LETTER MA' where ujis=0xA5DE;
-update t1 set name='U+30DF KATAKANA LETTER MI' where ujis=0xA5DF;
-update t1 set name='U+30E0 KATAKANA LETTER MU' where ujis=0xA5E0;
-update t1 set name='U+30E1 KATAKANA LETTER ME' where ujis=0xA5E1;
-update t1 set name='U+30E2 KATAKANA LETTER MO' where ujis=0xA5E2;
-update t1 set name='U+30E3 KATAKANA LETTER SMALL YA' where ujis=0xA5E3;
-update t1 set name='U+30E4 KATAKANA LETTER YA' where ujis=0xA5E4;
-update t1 set name='U+30E5 KATAKANA LETTER SMALL YU' where ujis=0xA5E5;
-update t1 set name='U+30E6 KATAKANA LETTER YU' where ujis=0xA5E6;
-update t1 set name='U+30E7 KATAKANA LETTER SMALL YO' where ujis=0xA5E7;
-update t1 set name='U+30E8 KATAKANA LETTER YO' where ujis=0xA5E8;
-update t1 set name='U+30E9 KATAKANA LETTER RA' where ujis=0xA5E9;
-update t1 set name='U+30EA KATAKANA LETTER RI' where ujis=0xA5EA;
-update t1 set name='U+30EB KATAKANA LETTER RU' where ujis=0xA5EB;
-update t1 set name='U+30EC KATAKANA LETTER RE' where ujis=0xA5EC;
-update t1 set name='U+30ED KATAKANA LETTER RO' where ujis=0xA5ED;
-update t1 set name='U+30EE KATAKANA LETTER SMALL WA' where ujis=0xA5EE;
-update t1 set name='U+30EF KATAKANA LETTER WA' where ujis=0xA5EF;
-update t1 set name='U+30F0 KATAKANA LETTER WI' where ujis=0xA5F0;
-update t1 set name='U+30F1 KATAKANA LETTER WE' where ujis=0xA5F1;
-update t1 set name='U+30F2 KATAKANA LETTER WO' where ujis=0xA5F2;
-update t1 set name='U+30F3 KATAKANA LETTER N' where ujis=0xA5F3;
-update t1 set name='U+30F4 KATAKANA LETTER VU' where ujis=0xA5F4;
-update t1 set name='U+30F5 KATAKANA LETTER SMALL KA' where ujis=0xA5F5;
-update t1 set name='U+30F6 KATAKANA LETTER SMALL KE' where ujis=0xA5F6;
-update t1 set name='U+0391 GREEK CAPITAL LETTER ALPHA' where ujis=0xA6A1;
-update t1 set name='U+0392 GREEK CAPITAL LETTER BETA' where ujis=0xA6A2;
-update t1 set name='U+0393 GREEK CAPITAL LETTER GAMMA' where ujis=0xA6A3;
-update t1 set name='U+0394 GREEK CAPITAL LETTER DELTA' where ujis=0xA6A4;
-update t1 set name='U+0395 GREEK CAPITAL LETTER EPSILON' where ujis=0xA6A5;
-update t1 set name='U+0396 GREEK CAPITAL LETTER ZETA' where ujis=0xA6A6;
-update t1 set name='U+0397 GREEK CAPITAL LETTER ETA' where ujis=0xA6A7;
-update t1 set name='U+0398 GREEK CAPITAL LETTER THETA' where ujis=0xA6A8;
-update t1 set name='U+0399 GREEK CAPITAL LETTER IOTA' where ujis=0xA6A9;
-update t1 set name='U+039A GREEK CAPITAL LETTER KAPPA' where ujis=0xA6AA;
-update t1 set name='U+039B GREEK CAPITAL LETTER LAMDA' where ujis=0xA6AB;
-update t1 set name='U+039C GREEK CAPITAL LETTER MU' where ujis=0xA6AC;
-update t1 set name='U+039D GREEK CAPITAL LETTER NU' where ujis=0xA6AD;
-update t1 set name='U+039E GREEK CAPITAL LETTER XI' where ujis=0xA6AE;
-update t1 set name='U+039F GREEK CAPITAL LETTER OMICRON' where ujis=0xA6AF;
-update t1 set name='U+03A0 GREEK CAPITAL LETTER PI' where ujis=0xA6B0;
-update t1 set name='U+03A1 GREEK CAPITAL LETTER RHO' where ujis=0xA6B1;
-update t1 set name='U+03A3 GREEK CAPITAL LETTER SIGMA' where ujis=0xA6B2;
-update t1 set name='U+03A4 GREEK CAPITAL LETTER TAU' where ujis=0xA6B3;
-update t1 set name='U+03A5 GREEK CAPITAL LETTER UPSILON' where ujis=0xA6B4;
-update t1 set name='U+03A6 GREEK CAPITAL LETTER PHI' where ujis=0xA6B5;
-update t1 set name='U+03A7 GREEK CAPITAL LETTER CHI' where ujis=0xA6B6;
-update t1 set name='U+03A8 GREEK CAPITAL LETTER PSI' where ujis=0xA6B7;
-update t1 set name='U+03A9 GREEK CAPITAL LETTER OMEGA' where ujis=0xA6B8;
-update t1 set name='U+03B1 GREEK SMALL LETTER ALPHA' where ujis=0xA6C1;
-update t1 set name='U+03B2 GREEK SMALL LETTER BETA' where ujis=0xA6C2;
-update t1 set name='U+03B3 GREEK SMALL LETTER GAMMA' where ujis=0xA6C3;
-update t1 set name='U+03B4 GREEK SMALL LETTER DELTA' where ujis=0xA6C4;
-update t1 set name='U+03B5 GREEK SMALL LETTER EPSILON' where ujis=0xA6C5;
-update t1 set name='U+03B6 GREEK SMALL LETTER ZETA' where ujis=0xA6C6;
-update t1 set name='U+03B7 GREEK SMALL LETTER ETA' where ujis=0xA6C7;
-update t1 set name='U+03B8 GREEK SMALL LETTER THETA' where ujis=0xA6C8;
-update t1 set name='U+03B9 GREEK SMALL LETTER IOTA' where ujis=0xA6C9;
-update t1 set name='U+03BA GREEK SMALL LETTER KAPPA' where ujis=0xA6CA;
-update t1 set name='U+03BB GREEK SMALL LETTER LAMDA' where ujis=0xA6CB;
-update t1 set name='U+03BC GREEK SMALL LETTER MU' where ujis=0xA6CC;
-update t1 set name='U+03BD GREEK SMALL LETTER NU' where ujis=0xA6CD;
-update t1 set name='U+03BE GREEK SMALL LETTER XI' where ujis=0xA6CE;
-update t1 set name='U+03BF GREEK SMALL LETTER OMICRON' where ujis=0xA6CF;
-update t1 set name='U+03C0 GREEK SMALL LETTER PI' where ujis=0xA6D0;
-update t1 set name='U+03C1 GREEK SMALL LETTER RHO' where ujis=0xA6D1;
-update t1 set name='U+03C3 GREEK SMALL LETTER SIGMA' where ujis=0xA6D2;
-update t1 set name='U+03C4 GREEK SMALL LETTER TAU' where ujis=0xA6D3;
-update t1 set name='U+03C5 GREEK SMALL LETTER UPSILON' where ujis=0xA6D4;
-update t1 set name='U+03C6 GREEK SMALL LETTER PHI' where ujis=0xA6D5;
-update t1 set name='U+03C7 GREEK SMALL LETTER CHI' where ujis=0xA6D6;
-update t1 set name='U+03C8 GREEK SMALL LETTER PSI' where ujis=0xA6D7;
-update t1 set name='U+03C9 GREEK SMALL LETTER OMEGA' where ujis=0xA6D8;
-update t1 set name='U+0410 CYRILLIC CAPITAL LETTER A' where ujis=0xA7A1;
-update t1 set name='U+0411 CYRILLIC CAPITAL LETTER BE' where ujis=0xA7A2;
-update t1 set name='U+0412 CYRILLIC CAPITAL LETTER VE' where ujis=0xA7A3;
-update t1 set name='U+0413 CYRILLIC CAPITAL LETTER GHE' where ujis=0xA7A4;
-update t1 set name='U+0414 CYRILLIC CAPITAL LETTER DE' where ujis=0xA7A5;
-update t1 set name='U+0415 CYRILLIC CAPITAL LETTER IE' where ujis=0xA7A6;
-update t1 set name='U+0401 CYRILLIC CAPITAL LETTER IO' where ujis=0xA7A7;
-update t1 set name='U+0416 CYRILLIC CAPITAL LETTER ZHE' where ujis=0xA7A8;
-update t1 set name='U+0417 CYRILLIC CAPITAL LETTER ZE' where ujis=0xA7A9;
-update t1 set name='U+0418 CYRILLIC CAPITAL LETTER I' where ujis=0xA7AA;
-update t1 set name='U+0419 CYRILLIC CAPITAL LETTER SHORT I' where ujis=0xA7AB;
-update t1 set name='U+041A CYRILLIC CAPITAL LETTER KA' where ujis=0xA7AC;
-update t1 set name='U+041B CYRILLIC CAPITAL LETTER EL' where ujis=0xA7AD;
-update t1 set name='U+041C CYRILLIC CAPITAL LETTER EM' where ujis=0xA7AE;
-update t1 set name='U+041D CYRILLIC CAPITAL LETTER EN' where ujis=0xA7AF;
-update t1 set name='U+041E CYRILLIC CAPITAL LETTER O' where ujis=0xA7B0;
-update t1 set name='U+041F CYRILLIC CAPITAL LETTER PE' where ujis=0xA7B1;
-update t1 set name='U+0420 CYRILLIC CAPITAL LETTER ER' where ujis=0xA7B2;
-update t1 set name='U+0421 CYRILLIC CAPITAL LETTER ES' where ujis=0xA7B3;
-update t1 set name='U+0422 CYRILLIC CAPITAL LETTER TE' where ujis=0xA7B4;
-update t1 set name='U+0423 CYRILLIC CAPITAL LETTER U' where ujis=0xA7B5;
-update t1 set name='U+0424 CYRILLIC CAPITAL LETTER EF' where ujis=0xA7B6;
-update t1 set name='U+0425 CYRILLIC CAPITAL LETTER HA' where ujis=0xA7B7;
-update t1 set name='U+0426 CYRILLIC CAPITAL LETTER TSE' where ujis=0xA7B8;
-update t1 set name='U+0427 CYRILLIC CAPITAL LETTER CHE' where ujis=0xA7B9;
-update t1 set name='U+0428 CYRILLIC CAPITAL LETTER SHA' where ujis=0xA7BA;
-update t1 set name='U+0429 CYRILLIC CAPITAL LETTER SHCHA' where ujis=0xA7BB;
-update t1 set name='U+042A CYRILLIC CAPITAL LETTER HARD SIGN' where ujis=0xA7BC;
-update t1 set name='U+042B CYRILLIC CAPITAL LETTER YERU' where ujis=0xA7BD;
-update t1 set name='U+042C CYRILLIC CAPITAL LETTER SOFT SIGN' where ujis=0xA7BE;
-update t1 set name='U+042D CYRILLIC CAPITAL LETTER E' where ujis=0xA7BF;
-update t1 set name='U+042E CYRILLIC CAPITAL LETTER YU' where ujis=0xA7C0;
-update t1 set name='U+042F CYRILLIC CAPITAL LETTER YA' where ujis=0xA7C1;
-update t1 set name='U+0430 CYRILLIC SMALL LETTER A' where ujis=0xA7D1;
-update t1 set name='U+0431 CYRILLIC SMALL LETTER BE' where ujis=0xA7D2;
-update t1 set name='U+0432 CYRILLIC SMALL LETTER VE' where ujis=0xA7D3;
-update t1 set name='U+0433 CYRILLIC SMALL LETTER GHE' where ujis=0xA7D4;
-update t1 set name='U+0434 CYRILLIC SMALL LETTER DE' where ujis=0xA7D5;
-update t1 set name='U+0435 CYRILLIC SMALL LETTER IE' where ujis=0xA7D6;
-update t1 set name='U+0451 CYRILLIC SMALL LETTER IO' where ujis=0xA7D7;
-update t1 set name='U+0436 CYRILLIC SMALL LETTER ZHE' where ujis=0xA7D8;
-update t1 set name='U+0437 CYRILLIC SMALL LETTER ZE' where ujis=0xA7D9;
-update t1 set name='U+0438 CYRILLIC SMALL LETTER I' where ujis=0xA7DA;
-update t1 set name='U+0439 CYRILLIC SMALL LETTER SHORT I' where ujis=0xA7DB;
-update t1 set name='U+043A CYRILLIC SMALL LETTER KA' where ujis=0xA7DC;
-update t1 set name='U+043B CYRILLIC SMALL LETTER EL' where ujis=0xA7DD;
-update t1 set name='U+043C CYRILLIC SMALL LETTER EM' where ujis=0xA7DE;
-update t1 set name='U+043D CYRILLIC SMALL LETTER EN' where ujis=0xA7DF;
-update t1 set name='U+043E CYRILLIC SMALL LETTER O' where ujis=0xA7E0;
-update t1 set name='U+043F CYRILLIC SMALL LETTER PE' where ujis=0xA7E1;
-update t1 set name='U+0440 CYRILLIC SMALL LETTER ER' where ujis=0xA7E2;
-update t1 set name='U+0441 CYRILLIC SMALL LETTER ES' where ujis=0xA7E3;
-update t1 set name='U+0442 CYRILLIC SMALL LETTER TE' where ujis=0xA7E4;
-update t1 set name='U+0443 CYRILLIC SMALL LETTER U' where ujis=0xA7E5;
-update t1 set name='U+0444 CYRILLIC SMALL LETTER EF' where ujis=0xA7E6;
-update t1 set name='U+0445 CYRILLIC SMALL LETTER HA' where ujis=0xA7E7;
-update t1 set name='U+0446 CYRILLIC SMALL LETTER TSE' where ujis=0xA7E8;
-update t1 set name='U+0447 CYRILLIC SMALL LETTER CHE' where ujis=0xA7E9;
-update t1 set name='U+0448 CYRILLIC SMALL LETTER SHA' where ujis=0xA7EA;
-update t1 set name='U+0449 CYRILLIC SMALL LETTER SHCHA' where ujis=0xA7EB;
-update t1 set name='U+044A CYRILLIC SMALL LETTER HARD SIGN' where ujis=0xA7EC;
-update t1 set name='U+044B CYRILLIC SMALL LETTER YERU' where ujis=0xA7ED;
-update t1 set name='U+044C CYRILLIC SMALL LETTER SOFT SIGN' where ujis=0xA7EE;
-update t1 set name='U+044D CYRILLIC SMALL LETTER E' where ujis=0xA7EF;
-update t1 set name='U+044E CYRILLIC SMALL LETTER YU' where ujis=0xA7F0;
-update t1 set name='U+044F CYRILLIC SMALL LETTER YA' where ujis=0xA7F1;
-update t1 set name='U+2500 BOX DRAWINGS LIGHT HORIZONTAL' where ujis=0xA8A1;
-update t1 set name='U+2502 BOX DRAWINGS LIGHT VERTICAL' where ujis=0xA8A2;
-update t1 set name='U+250C BOX DRAWINGS LIGHT DOWN AND RIGHT' where ujis=0xA8A3;
-update t1 set name='U+2510 BOX DRAWINGS LIGHT DOWN AND LEFT' where ujis=0xA8A4;
-update t1 set name='U+2518 BOX DRAWINGS LIGHT UP AND LEFT' where ujis=0xA8A5;
-update t1 set name='U+2514 BOX DRAWINGS LIGHT UP AND RIGHT' where ujis=0xA8A6;
-update t1 set name='U+251C BOX DRAWINGS LIGHT VERTICAL AND RIGHT' where ujis=0xA8A7;
-update t1 set name='U+252C BOX DRAWINGS LIGHT DOWN AND HORIZONTAL' where ujis=0xA8A8;
-update t1 set name='U+2524 BOX DRAWINGS LIGHT VERTICAL AND LEFT' where ujis=0xA8A9;
-update t1 set name='U+2534 BOX DRAWINGS LIGHT UP AND HORIZONTAL' where ujis=0xA8AA;
-update t1 set name='U+253C BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL' where ujis=0xA8AB;
-update t1 set name='U+2501 BOX DRAWINGS HEAVY HORIZONTAL' where ujis=0xA8AC;
-update t1 set name='U+2503 BOX DRAWINGS HEAVY VERTICAL' where ujis=0xA8AD;
-update t1 set name='U+250F BOX DRAWINGS HEAVY DOWN AND RIGHT' where ujis=0xA8AE;
-update t1 set name='U+2513 BOX DRAWINGS HEAVY DOWN AND LEFT' where ujis=0xA8AF;
-update t1 set name='U+251B BOX DRAWINGS HEAVY UP AND LEFT' where ujis=0xA8B0;
-update t1 set name='U+2517 BOX DRAWINGS HEAVY UP AND RIGHT' where ujis=0xA8B1;
-update t1 set name='U+2523 BOX DRAWINGS HEAVY VERTICAL AND RIGHT' where ujis=0xA8B2;
-update t1 set name='U+2533 BOX DRAWINGS HEAVY DOWN AND HORIZONTAL' where ujis=0xA8B3;
-update t1 set name='U+252B BOX DRAWINGS HEAVY VERTICAL AND LEFT' where ujis=0xA8B4;
-update t1 set name='U+253B BOX DRAWINGS HEAVY UP AND HORIZONTAL' where ujis=0xA8B5;
-update t1 set name='U+254B BOX DRAWINGS HEAVY VERTICAL AND HORIZONTAL' where ujis=0xA8B6;
-update t1 set name='U+2520 BOX DRAWINGS VERTICAL HEAVY AND RIGHT LIGHT' where ujis=0xA8B7;
-update t1 set name='U+252F BOX DRAWINGS DOWN LIGHT AND HORIZONTAL HEAVY' where ujis=0xA8B8;
-update t1 set name='U+2528 BOX DRAWINGS VERTICAL HEAVY AND LEFT LIGHT' where ujis=0xA8B9;
-update t1 set name='U+2537 BOX DRAWINGS UP LIGHT AND HORIZONTAL HEAVY' where ujis=0xA8BA;
-update t1 set name='U+253F BOX DRAWINGS VERTICAL LIGHT AND HORIZONTAL HEAVY' where ujis=0xA8BB;
-update t1 set name='U+251D BOX DRAWINGS VERTICAL LIGHT AND RIGHT HEAVY' where ujis=0xA8BC;
-update t1 set name='U+2530 BOX DRAWINGS DOWN HEAVY AND HORIZONTAL LIGHT' where ujis=0xA8BD;
-update t1 set name='U+2525 BOX DRAWINGS VERTICAL LIGHT AND LEFT HEAVY' where ujis=0xA8BE;
-update t1 set name='U+2538 BOX DRAWINGS UP HEAVY AND HORIZONTAL LIGHT' where ujis=0xA8BF;
-update t1 set name='U+2542 BOX DRAWINGS VERTICAL HEAVY AND HORIZONTAL LIGHT' where ujis=0xA8C0;
-update t1 set name='<CJK>' where ujis >= 0xB0A1 AND ujis <= 0xBFFE;
-update t1 set name='<CJK>' where ujis >= 0xC0A1 AND ujis <= 0xCEFE;
-update t1 set name='U+84EE <CJK>' where ujis=0xCFA1;
-update t1 set name='U+9023 <CJK>' where ujis=0xCFA2;
-update t1 set name='U+932C <CJK>' where ujis=0xCFA3;
-update t1 set name='U+5442 <CJK>' where ujis=0xCFA4;
-update t1 set name='U+9B6F <CJK>' where ujis=0xCFA5;
-update t1 set name='U+6AD3 <CJK>' where ujis=0xCFA6;
-update t1 set name='U+7089 <CJK>' where ujis=0xCFA7;
-update t1 set name='U+8CC2 <CJK>' where ujis=0xCFA8;
-update t1 set name='U+8DEF <CJK>' where ujis=0xCFA9;
-update t1 set name='U+9732 <CJK>' where ujis=0xCFAA;
-update t1 set name='U+52B4 <CJK>' where ujis=0xCFAB;
-update t1 set name='U+5A41 <CJK>' where ujis=0xCFAC;
-update t1 set name='U+5ECA <CJK>' where ujis=0xCFAD;
-update t1 set name='U+5F04 <CJK>' where ujis=0xCFAE;
-update t1 set name='U+6717 <CJK>' where ujis=0xCFAF;
-update t1 set name='U+697C <CJK>' where ujis=0xCFB0;
-update t1 set name='U+6994 <CJK>' where ujis=0xCFB1;
-update t1 set name='U+6D6A <CJK>' where ujis=0xCFB2;
-update t1 set name='U+6F0F <CJK>' where ujis=0xCFB3;
-update t1 set name='U+7262 <CJK>' where ujis=0xCFB4;
-update t1 set name='U+72FC <CJK>' where ujis=0xCFB5;
-update t1 set name='U+7BED <CJK>' where ujis=0xCFB6;
-update t1 set name='U+8001 <CJK>' where ujis=0xCFB7;
-update t1 set name='U+807E <CJK>' where ujis=0xCFB8;
-update t1 set name='U+874B <CJK>' where ujis=0xCFB9;
-update t1 set name='U+90CE <CJK>' where ujis=0xCFBA;
-update t1 set name='U+516D <CJK>' where ujis=0xCFBB;
-update t1 set name='U+9E93 <CJK>' where ujis=0xCFBC;
-update t1 set name='U+7984 <CJK>' where ujis=0xCFBD;
-update t1 set name='U+808B <CJK>' where ujis=0xCFBE;
-update t1 set name='U+9332 <CJK>' where ujis=0xCFBF;
-update t1 set name='U+8AD6 <CJK>' where ujis=0xCFC0;
-update t1 set name='U+502D <CJK>' where ujis=0xCFC1;
-update t1 set name='U+548C <CJK>' where ujis=0xCFC2;
-update t1 set name='U+8A71 <CJK>' where ujis=0xCFC3;
-update t1 set name='U+6B6A <CJK>' where ujis=0xCFC4;
-update t1 set name='U+8CC4 <CJK>' where ujis=0xCFC5;
-update t1 set name='U+8107 <CJK>' where ujis=0xCFC6;
-update t1 set name='U+60D1 <CJK>' where ujis=0xCFC7;
-update t1 set name='U+67A0 <CJK>' where ujis=0xCFC8;
-update t1 set name='U+9DF2 <CJK>' where ujis=0xCFC9;
-update t1 set name='U+4E99 <CJK>' where ujis=0xCFCA;
-update t1 set name='U+4E98 <CJK>' where ujis=0xCFCB;
-update t1 set name='U+9C10 <CJK>' where ujis=0xCFCC;
-update t1 set name='U+8A6B <CJK>' where ujis=0xCFCD;
-update t1 set name='U+85C1 <CJK>' where ujis=0xCFCE;
-update t1 set name='U+8568 <CJK>' where ujis=0xCFCF;
-update t1 set name='U+6900 <CJK>' where ujis=0xCFD0;
-update t1 set name='U+6E7E <CJK>' where ujis=0xCFD1;
-update t1 set name='U+7897 <CJK>' where ujis=0xCFD2;
-update t1 set name='U+8155 <CJK>' where ujis=0xCFD3;
-update t1 set name='<CJK>' where ujis >= 0xD0A1 AND ujis <= 0xDFFE;
-update t1 set name='<CJK>' where ujis >= 0xE0A1 AND ujis <= 0xEFFE;
-update t1 set name='<CJK>' where ujis >= 0xF0A1 AND ujis <= 0xF3FE;
-update t1 set name='U+582F <CJK>' where ujis=0xF4A1;
-update t1 set name='U+69C7 <CJK>' where ujis=0xF4A2;
-update t1 set name='U+9059 <CJK>' where ujis=0xF4A3;
-update t1 set name='U+7464 <CJK>' where ujis=0xF4A4;
-update t1 set name='U+51DC <CJK>' where ujis=0xF4A5;
-update t1 set name='U+7199 <CJK>' where ujis=0xF4A6;
-update t1 set name='User defined range #1' where ujis >= 0xF5A1 AND ujis <= 0xFEFE;
-insert into t1 (ujis,name) values (0x8EA1,'U+FF61 HALFWIDTH IDEOGRAPHIC FULL STOP');
-insert into t1 (ujis,name) values (0x8EA2,'U+FF62 HALFWIDTH LEFT CORNER BRACKET');
-insert into t1 (ujis,name) values (0x8EA3,'U+FF63 HALFWIDTH RIGHT CORNER BRACKET');
-insert into t1 (ujis,name) values (0x8EA4,'U+FF64 HALFWIDTH IDEOGRAPHIC COMMA');
-insert into t1 (ujis,name) values (0x8EA5,'U+FF65 HALFWIDTH KATAKANA MIDDLE DOT');
-insert into t1 (ujis,name) values (0x8EA6,'U+FF66 HALFWIDTH KATAKANA LETTER WO');
-insert into t1 (ujis,name) values (0x8EA7,'U+FF67 HALFWIDTH KATAKANA LETTER SMALL A');
-insert into t1 (ujis,name) values (0x8EA8,'U+FF68 HALFWIDTH KATAKANA LETTER SMALL I');
-insert into t1 (ujis,name) values (0x8EA9,'U+FF69 HALFWIDTH KATAKANA LETTER SMALL U');
-insert into t1 (ujis,name) values (0x8EAA,'U+FF6A HALFWIDTH KATAKANA LETTER SMALL E');
-insert into t1 (ujis,name) values (0x8EAB,'U+FF6B HALFWIDTH KATAKANA LETTER SMALL O');
-insert into t1 (ujis,name) values (0x8EAC,'U+FF6C HALFWIDTH KATAKANA LETTER SMALL YA');
-insert into t1 (ujis,name) values (0x8EAD,'U+FF6D HALFWIDTH KATAKANA LETTER SMALL YU');
-insert into t1 (ujis,name) values (0x8EAE,'U+FF6E HALFWIDTH KATAKANA LETTER SMALL YO');
-insert into t1 (ujis,name) values (0x8EAF,'U+FF6F HALFWIDTH KATAKANA LETTER SMALL TU');
-insert into t1 (ujis,name) values (0x8EB0,'U+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK');
-insert into t1 (ujis,name) values (0x8EB1,'U+FF71 HALFWIDTH KATAKANA LETTER A');
-insert into t1 (ujis,name) values (0x8EB2,'U+FF72 HALFWIDTH KATAKANA LETTER I');
-insert into t1 (ujis,name) values (0x8EB3,'U+FF73 HALFWIDTH KATAKANA LETTER U');
-insert into t1 (ujis,name) values (0x8EB4,'U+FF74 HALFWIDTH KATAKANA LETTER E');
-insert into t1 (ujis,name) values (0x8EB5,'U+FF75 HALFWIDTH KATAKANA LETTER O');
-insert into t1 (ujis,name) values (0x8EB6,'U+FF76 HALFWIDTH KATAKANA LETTER KA');
-insert into t1 (ujis,name) values (0x8EB7,'U+FF77 HALFWIDTH KATAKANA LETTER KI');
-insert into t1 (ujis,name) values (0x8EB8,'U+FF78 HALFWIDTH KATAKANA LETTER KU');
-insert into t1 (ujis,name) values (0x8EB9,'U+FF79 HALFWIDTH KATAKANA LETTER KE');
-insert into t1 (ujis,name) values (0x8EBA,'U+FF7A HALFWIDTH KATAKANA LETTER KO');
-insert into t1 (ujis,name) values (0x8EBB,'U+FF7B HALFWIDTH KATAKANA LETTER SA');
-insert into t1 (ujis,name) values (0x8EBC,'U+FF7C HALFWIDTH KATAKANA LETTER SI');
-insert into t1 (ujis,name) values (0x8EBD,'U+FF7D HALFWIDTH KATAKANA LETTER SU');
-insert into t1 (ujis,name) values (0x8EBE,'U+FF7E HALFWIDTH KATAKANA LETTER SE');
-insert into t1 (ujis,name) values (0x8EBF,'U+FF7F HALFWIDTH KATAKANA LETTER SO');
-insert into t1 (ujis,name) values (0x8EC0,'U+FF80 HALFWIDTH KATAKANA LETTER TA');
-insert into t1 (ujis,name) values (0x8EC1,'U+FF81 HALFWIDTH KATAKANA LETTER TI');
-insert into t1 (ujis,name) values (0x8EC2,'U+FF82 HALFWIDTH KATAKANA LETTER TU');
-insert into t1 (ujis,name) values (0x8EC3,'U+FF83 HALFWIDTH KATAKANA LETTER TE');
-insert into t1 (ujis,name) values (0x8EC4,'U+FF84 HALFWIDTH KATAKANA LETTER TO');
-insert into t1 (ujis,name) values (0x8EC5,'U+FF85 HALFWIDTH KATAKANA LETTER NA');
-insert into t1 (ujis,name) values (0x8EC6,'U+FF86 HALFWIDTH KATAKANA LETTER NI');
-insert into t1 (ujis,name) values (0x8EC7,'U+FF87 HALFWIDTH KATAKANA LETTER NU');
-insert into t1 (ujis,name) values (0x8EC8,'U+FF88 HALFWIDTH KATAKANA LETTER NE');
-insert into t1 (ujis,name) values (0x8EC9,'U+FF89 HALFWIDTH KATAKANA LETTER NO');
-insert into t1 (ujis,name) values (0x8ECA,'U+FF8A HALFWIDTH KATAKANA LETTER HA');
-insert into t1 (ujis,name) values (0x8ECB,'U+FF8B HALFWIDTH KATAKANA LETTER HI');
-insert into t1 (ujis,name) values (0x8ECC,'U+FF8C HALFWIDTH KATAKANA LETTER HU');
-insert into t1 (ujis,name) values (0x8ECD,'U+FF8D HALFWIDTH KATAKANA LETTER HE');
-insert into t1 (ujis,name) values (0x8ECE,'U+FF8E HALFWIDTH KATAKANA LETTER HO');
-insert into t1 (ujis,name) values (0x8ECF,'U+FF8F HALFWIDTH KATAKANA LETTER MA');
-insert into t1 (ujis,name) values (0x8ED0,'U+FF90 HALFWIDTH KATAKANA LETTER MI');
-insert into t1 (ujis,name) values (0x8ED1,'U+FF91 HALFWIDTH KATAKANA LETTER MU');
-insert into t1 (ujis,name) values (0x8ED2,'U+FF92 HALFWIDTH KATAKANA LETTER ME');
-insert into t1 (ujis,name) values (0x8ED3,'U+FF93 HALFWIDTH KATAKANA LETTER MO');
-insert into t1 (ujis,name) values (0x8ED4,'U+FF94 HALFWIDTH KATAKANA LETTER YA');
-insert into t1 (ujis,name) values (0x8ED5,'U+FF95 HALFWIDTH KATAKANA LETTER YU');
-insert into t1 (ujis,name) values (0x8ED6,'U+FF96 HALFWIDTH KATAKANA LETTER YO');
-insert into t1 (ujis,name) values (0x8ED7,'U+FF97 HALFWIDTH KATAKANA LETTER RA');
-insert into t1 (ujis,name) values (0x8ED8,'U+FF98 HALFWIDTH KATAKANA LETTER RI');
-insert into t1 (ujis,name) values (0x8ED9,'U+FF99 HALFWIDTH KATAKANA LETTER RU');
-insert into t1 (ujis,name) values (0x8EDA,'U+FF9A HALFWIDTH KATAKANA LETTER RE');
-insert into t1 (ujis,name) values (0x8EDB,'U+FF9B HALFWIDTH KATAKANA LETTER RO');
-insert into t1 (ujis,name) values (0x8EDC,'U+FF9C HALFWIDTH KATAKANA LETTER WA');
-insert into t1 (ujis,name) values (0x8EDD,'U+FF9D HALFWIDTH KATAKANA LETTER N');
-insert into t1 (ujis,name) values (0x8EDE,'U+FF9E HALFWIDTH KATAKANA VOICED SOUND MARK');
-insert into t1 (ujis,name) values (0x8EDF,'U+FF9F HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK');
-insert into t1 (ujis) select concat(0x8F,t21.code,t22.code) from t2 t21, t2 t22 order by 1;
-update t1 set name='U+02D8 BREVE' where ujis=0x8FA2AF;
-update t1 set name='U+02C7 CARON (Mandarin Chinese third tone)' where ujis=0x8FA2B0;
-update t1 set name='U+00B8 CEDILLA' where ujis=0x8FA2B1;
-update t1 set name='U+02D9 DOT ABOVE (Mandarin Chinese light tone)' where ujis=0x8FA2B2;
-update t1 set name='U+02DD DOUBLE ACUTE ACCENT' where ujis=0x8FA2B3;
-update t1 set name='U+00AF MACRON' where ujis=0x8FA2B4;
-update t1 set name='U+02DB OGONEK' where ujis=0x8FA2B5;
-update t1 set name='U+02DA RING ABOVE' where ujis=0x8FA2B6;
-update t1 set name='U+007E TILDE' where ujis=0x8FA2B7;
-update t1 set name='U+0384 GREEK TONOS' where ujis=0x8FA2B8;
-update t1 set name='U+0385 GREEK DIALYTIKA TONOS' where ujis=0x8FA2B9;
-update t1 set name='U+00A1 INVERTED EXCLAMATION MARK' where ujis=0x8FA2C2;
-update t1 set name='U+00A6 BROKEN BAR' where ujis=0x8FA2C3;
-update t1 set name='U+00BF INVERTED QUESTION MARK' where ujis=0x8FA2C4;
-update t1 set name='U+00BA MASCULINE ORDINAL INDICATOR' where ujis=0x8FA2EB;
-update t1 set name='U+00AA FEMININE ORDINAL INDICATOR' where ujis=0x8FA2EC;
-update t1 set name='U+00A9 COPYRIGHT SIGN' where ujis=0x8FA2ED;
-update t1 set name='U+00AE REGISTERED SIGN' where ujis=0x8FA2EE;
-update t1 set name='U+2122 TRADE MARK SIGN' where ujis=0x8FA2EF;
-update t1 set name='U+00A4 CURRENCY SIGN' where ujis=0x8FA2F0;
-update t1 set name='U+2116 NUMERO SIGN' where ujis=0x8FA2F1;
-update t1 set name='U+0386 GREEK CAPITAL LETTER ALPHA WITH TONOS' where ujis=0x8FA6E1;
-update t1 set name='U+0388 GREEK CAPITAL LETTER EPSILON WITH TONOS' where ujis=0x8FA6E2;
-update t1 set name='U+0389 GREEK CAPITAL LETTER ETA WITH TONOS' where ujis=0x8FA6E3;
-update t1 set name='U+038A GREEK CAPITAL LETTER IOTA WITH TONOS' where ujis=0x8FA6E4;
-update t1 set name='U+03AA GREEK CAPITAL LETTER IOTA WITH DIALYTIKA' where ujis=0x8FA6E5;
-update t1 set name='U+038C GREEK CAPITAL LETTER OMICRON WITH TONOS' where ujis=0x8FA6E7;
-update t1 set name='U+038E GREEK CAPITAL LETTER UPSILON WITH TONOS' where ujis=0x8FA6E9;
-update t1 set name='U+03AB GREEK CAPITAL LETTER UPSILON WITH DIALYTIKA' where ujis=0x8FA6EA;
-update t1 set name='U+038F GREEK CAPITAL LETTER OMEGA WITH TONOS' where ujis=0x8FA6EC;
-update t1 set name='U+03AC GREEK SMALL LETTER ALPHA WITH TONOS' where ujis=0x8FA6F1;
-update t1 set name='U+03AD GREEK SMALL LETTER EPSILON WITH TONOS' where ujis=0x8FA6F2;
-update t1 set name='U+03AE GREEK SMALL LETTER ETA WITH TONOS' where ujis=0x8FA6F3;
-update t1 set name='U+03AF GREEK SMALL LETTER IOTA WITH TONOS' where ujis=0x8FA6F4;
-update t1 set name='U+03CA GREEK SMALL LETTER IOTA WITH DIALYTIKA' where ujis=0x8FA6F5;
-update t1 set name='U+0390 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS' where ujis=0x8FA6F6;
-update t1 set name='U+03CC GREEK SMALL LETTER OMICRON WITH TONOS' where ujis=0x8FA6F7;
-update t1 set name='U+03C2 GREEK SMALL LETTER FINAL SIGMA' where ujis=0x8FA6F8;
-update t1 set name='U+03CD GREEK SMALL LETTER UPSILON WITH TONOS' where ujis=0x8FA6F9;
-update t1 set name='U+03CB GREEK SMALL LETTER UPSILON WITH DIALYTIKA' where ujis=0x8FA6FA;
-update t1 set name='U+03B0 GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS' where ujis=0x8FA6FB;
-update t1 set name='U+03CE GREEK SMALL LETTER OMEGA WITH TONOS' where ujis=0x8FA6FC;
-update t1 set name='U+0402 CYRILLIC CAPITAL LETTER DJE' where ujis=0x8FA7C2;
-update t1 set name='U+0403 CYRILLIC CAPITAL LETTER GJE' where ujis=0x8FA7C3;
-update t1 set name='U+0404 CYRILLIC CAPITAL LETTER UKRAINIAN IE' where ujis=0x8FA7C4;
-update t1 set name='U+0405 CYRILLIC CAPITAL LETTER DZE' where ujis=0x8FA7C5;
-update t1 set name='U+0406 CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I' where ujis=0x8FA7C6;
-update t1 set name='U+0407 CYRILLIC CAPITAL LETTER YI' where ujis=0x8FA7C7;
-update t1 set name='U+0408 CYRILLIC CAPITAL LETTER JE' where ujis=0x8FA7C8;
-update t1 set name='U+0409 CYRILLIC CAPITAL LETTER LJE' where ujis=0x8FA7C9;
-update t1 set name='U+040A CYRILLIC CAPITAL LETTER NJE' where ujis=0x8FA7CA;
-update t1 set name='U+040B CYRILLIC CAPITAL LETTER TSHE' where ujis=0x8FA7CB;
-update t1 set name='U+040C CYRILLIC CAPITAL LETTER KJE' where ujis=0x8FA7CC;
-update t1 set name='U+040E CYRILLIC CAPITAL LETTER SHORT U' where ujis=0x8FA7CD;
-update t1 set name='U+040F CYRILLIC CAPITAL LETTER DZHE' where ujis=0x8FA7CE;
-update t1 set name='U+0452 CYRILLIC SMALL LETTER DJE' where ujis=0x8FA7F2;
-update t1 set name='U+0453 CYRILLIC SMALL LETTER GJE' where ujis=0x8FA7F3;
-update t1 set name='U+0454 CYRILLIC SMALL LETTER UKRAINIAN IE' where ujis=0x8FA7F4;
-update t1 set name='U+0455 CYRILLIC SMALL LETTER DZE' where ujis=0x8FA7F5;
-update t1 set name='U+0456 CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I' where ujis=0x8FA7F6;
-update t1 set name='U+0457 CYRILLIC SMALL LETTER YI' where ujis=0x8FA7F7;
-update t1 set name='U+0458 CYRILLIC SMALL LETTER JE' where ujis=0x8FA7F8;
-update t1 set name='U+0459 CYRILLIC SMALL LETTER LJE' where ujis=0x8FA7F9;
-update t1 set name='U+045A CYRILLIC SMALL LETTER NJE' where ujis=0x8FA7FA;
-update t1 set name='U+045B CYRILLIC SMALL LETTER TSHE' where ujis=0x8FA7FB;
-update t1 set name='U+045C CYRILLIC SMALL LETTER KJE' where ujis=0x8FA7FC;
-update t1 set name='U+045E CYRILLIC SMALL LETTER SHORT U' where ujis=0x8FA7FD;
-update t1 set name='U+045F CYRILLIC SMALL LETTER DZHE' where ujis=0x8FA7FE;
-update t1 set name='U+00C6 LATIN CAPITAL LIGATURE AE' where ujis=0x8FA9A1;
-update t1 set name='U+0110 LATIN CAPITAL LETTER D WITH STROKE' where ujis=0x8FA9A2;
-update t1 set name='U+0126 LATIN CAPITAL LETTER H WITH STROKE' where ujis=0x8FA9A4;
-update t1 set name='U+0132 LATIN CAPITAL LIGATURE IJ' where ujis=0x8FA9A6;
-update t1 set name='U+0141 LATIN CAPITAL LETTER L WITH STROKE' where ujis=0x8FA9A8;
-update t1 set name='U+013F LATIN CAPITAL LETTER L WITH MIDDLE DOT' where ujis=0x8FA9A9;
-update t1 set name='U+014A LATIN CAPITAL LETTER ENG' where ujis=0x8FA9AB;
-update t1 set name='U+00D8 LATIN CAPITAL LETTER O WITH STROKE' where ujis=0x8FA9AC;
-update t1 set name='U+0152 LATIN CAPITAL LIGATURE OE' where ujis=0x8FA9AD;
-update t1 set name='U+0166 LATIN CAPITAL LETTER T WITH STROKE' where ujis=0x8FA9AF;
-update t1 set name='U+00DE LATIN CAPITAL LETTER THORN' where ujis=0x8FA9B0;
-update t1 set name='U+00E6 LATIN SMALL LIGATURE AE' where ujis=0x8FA9C1;
-update t1 set name='U+0111 LATIN SMALL LETTER D WITH STROKE' where ujis=0x8FA9C2;
-update t1 set name='U+00F0 LATIN SMALL LETTER ETH' where ujis=0x8FA9C3;
-update t1 set name='U+0127 LATIN SMALL LETTER H WITH STROKE' where ujis=0x8FA9C4;
-update t1 set name='U+0131 LATIN SMALL LETTER DOTLESS I' where ujis=0x8FA9C5;
-update t1 set name='U+0133 LATIN SMALL LIGATURE IJ' where ujis=0x8FA9C6;
-update t1 set name='U+0138 LATIN SMALL LETTER KRA' where ujis=0x8FA9C7;
-update t1 set name='U+0142 LATIN SMALL LETTER L WITH STROKE' where ujis=0x8FA9C8;
-update t1 set name='U+0140 LATIN SMALL LETTER L WITH MIDDLE DOT' where ujis=0x8FA9C9;
-update t1 set name='U+0149 LATIN SMALL LETTER N PRECEDED BY APOSTROPHE' where ujis=0x8FA9CA;
-update t1 set name='U+014B LATIN SMALL LETTER ENG' where ujis=0x8FA9CB;
-update t1 set name='U+00F8 LATIN SMALL LETTER O WITH STROKE' where ujis=0x8FA9CC;
-update t1 set name='U+0153 LATIN SMALL LIGATURE OE' where ujis=0x8FA9CD;
-update t1 set name='U+00DF LATIN SMALL LETTER SHARP S' where ujis=0x8FA9CE;
-update t1 set name='U+0167 LATIN SMALL LETTER T WITH STROKE' where ujis=0x8FA9CF;
-update t1 set name='U+00FE LATIN SMALL LETTER THORN' where ujis=0x8FA9D0;
-update t1 set name='U+00C1 LATIN CAPITAL LETTER A WITH ACUTE' where ujis=0x8FAAA1;
-update t1 set name='U+00C0 LATIN CAPITAL LETTER A WITH GRAVE' where ujis=0x8FAAA2;
-update t1 set name='U+00C4 LATIN CAPITAL LETTER A WITH DIAERESIS' where ujis=0x8FAAA3;
-update t1 set name='U+00C2 LATIN CAPITAL LETTER A WITH CIRCUMFLEX' where ujis=0x8FAAA4;
-update t1 set name='U+0102 LATIN CAPITAL LETTER A WITH BREVE' where ujis=0x8FAAA5;
-update t1 set name='U+01CD LATIN CAPITAL LETTER A WITH CARON' where ujis=0x8FAAA6;
-update t1 set name='U+0100 LATIN CAPITAL LETTER A WITH MACRON' where ujis=0x8FAAA7;
-update t1 set name='U+0104 LATIN CAPITAL LETTER A WITH OGONEK' where ujis=0x8FAAA8;
-update t1 set name='U+00C5 LATIN CAPITAL LETTER A WITH RING ABOVE' where ujis=0x8FAAA9;
-update t1 set name='U+00C3 LATIN CAPITAL LETTER A WITH TILDE' where ujis=0x8FAAAA;
-update t1 set name='U+0106 LATIN CAPITAL LETTER C WITH ACUTE' where ujis=0x8FAAAB;
-update t1 set name='U+0108 LATIN CAPITAL LETTER C WITH CIRCUMFLEX' where ujis=0x8FAAAC;
-update t1 set name='U+010C LATIN CAPITAL LETTER C WITH CARON' where ujis=0x8FAAAD;
-update t1 set name='U+00C7 LATIN CAPITAL LETTER C WITH CEDILLA' where ujis=0x8FAAAE;
-update t1 set name='U+010A LATIN CAPITAL LETTER C WITH DOT ABOVE' where ujis=0x8FAAAF;
-update t1 set name='U+010E LATIN CAPITAL LETTER D WITH CARON' where ujis=0x8FAAB0;
-update t1 set name='U+00C9 LATIN CAPITAL LETTER E WITH ACUTE' where ujis=0x8FAAB1;
-update t1 set name='U+00C8 LATIN CAPITAL LETTER E WITH GRAVE' where ujis=0x8FAAB2;
-update t1 set name='U+00CB LATIN CAPITAL LETTER E WITH DIAERESIS' where ujis=0x8FAAB3;
-update t1 set name='U+00CA LATIN CAPITAL LETTER E WITH CIRCUMFLEX' where ujis=0x8FAAB4;
-update t1 set name='U+011A LATIN CAPITAL LETTER E WITH CARON' where ujis=0x8FAAB5;
-update t1 set name='U+0116 LATIN CAPITAL LETTER E WITH DOT ABOVE' where ujis=0x8FAAB6;
-update t1 set name='U+0112 LATIN CAPITAL LETTER E WITH MACRON' where ujis=0x8FAAB7;
-update t1 set name='U+0118 LATIN CAPITAL LETTER E WITH OGONEK' where ujis=0x8FAAB8;
-update t1 set name='U+011C LATIN CAPITAL LETTER G WITH CIRCUMFLEX' where ujis=0x8FAABA;
-update t1 set name='U+011E LATIN CAPITAL LETTER G WITH BREVE' where ujis=0x8FAABB;
-update t1 set name='U+0122 LATIN CAPITAL LETTER G WITH CEDILLA' where ujis=0x8FAABC;
-update t1 set name='U+0120 LATIN CAPITAL LETTER G WITH DOT ABOVE' where ujis=0x8FAABD;
-update t1 set name='U+0124 LATIN CAPITAL LETTER H WITH CIRCUMFLEX' where ujis=0x8FAABE;
-update t1 set name='U+00CD LATIN CAPITAL LETTER I WITH ACUTE' where ujis=0x8FAABF;
-update t1 set name='U+00CC LATIN CAPITAL LETTER I WITH GRAVE' where ujis=0x8FAAC0;
-update t1 set name='U+00CF LATIN CAPITAL LETTER I WITH DIAERESIS' where ujis=0x8FAAC1;
-update t1 set name='U+00CE LATIN CAPITAL LETTER I WITH CIRCUMFLEX' where ujis=0x8FAAC2;
-update t1 set name='U+01CF LATIN CAPITAL LETTER I WITH CARON' where ujis=0x8FAAC3;
-update t1 set name='U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE' where ujis=0x8FAAC4;
-update t1 set name='U+012A LATIN CAPITAL LETTER I WITH MACRON' where ujis=0x8FAAC5;
-update t1 set name='U+012E LATIN CAPITAL LETTER I WITH OGONEK' where ujis=0x8FAAC6;
-update t1 set name='U+0128 LATIN CAPITAL LETTER I WITH TILDE' where ujis=0x8FAAC7;
-update t1 set name='U+0134 LATIN CAPITAL LETTER J WITH CIRCUMFLEX' where ujis=0x8FAAC8;
-update t1 set name='U+0136 LATIN CAPITAL LETTER K WITH CEDILLA' where ujis=0x8FAAC9;
-update t1 set name='U+0139 LATIN CAPITAL LETTER L WITH ACUTE' where ujis=0x8FAACA;
-update t1 set name='U+013D LATIN CAPITAL LETTER L WITH CARON' where ujis=0x8FAACB;
-update t1 set name='U+013B LATIN CAPITAL LETTER L WITH CEDILLA' where ujis=0x8FAACC;
-update t1 set name='U+0143 LATIN CAPITAL LETTER N WITH ACUTE' where ujis=0x8FAACD;
-update t1 set name='U+0147 LATIN CAPITAL LETTER N WITH CARON' where ujis=0x8FAACE;
-update t1 set name='U+0145 LATIN CAPITAL LETTER N WITH CEDILLA' where ujis=0x8FAACF;
-update t1 set name='U+00D1 LATIN CAPITAL LETTER N WITH TILDE' where ujis=0x8FAAD0;
-update t1 set name='U+00D3 LATIN CAPITAL LETTER O WITH ACUTE' where ujis=0x8FAAD1;
-update t1 set name='U+00D2 LATIN CAPITAL LETTER O WITH GRAVE' where ujis=0x8FAAD2;
-update t1 set name='U+00D6 LATIN CAPITAL LETTER O WITH DIAERESIS' where ujis=0x8FAAD3;
-update t1 set name='U+00D4 LATIN CAPITAL LETTER O WITH CIRCUMFLEX' where ujis=0x8FAAD4;
-update t1 set name='U+01D1 LATIN CAPITAL LETTER O WITH CARON' where ujis=0x8FAAD5;
-update t1 set name='U+0150 LATIN CAPITAL LETTER O WITH DOUBLE ACUTE' where ujis=0x8FAAD6;
-update t1 set name='U+014C LATIN CAPITAL LETTER O WITH MACRON' where ujis=0x8FAAD7;
-update t1 set name='U+00D5 LATIN CAPITAL LETTER O WITH TILDE' where ujis=0x8FAAD8;
-update t1 set name='U+0154 LATIN CAPITAL LETTER R WITH ACUTE' where ujis=0x8FAAD9;
-update t1 set name='U+0158 LATIN CAPITAL LETTER R WITH CARON' where ujis=0x8FAADA;
-update t1 set name='U+0156 LATIN CAPITAL LETTER R WITH CEDILLA' where ujis=0x8FAADB;
-update t1 set name='U+015A LATIN CAPITAL LETTER S WITH ACUTE' where ujis=0x8FAADC;
-update t1 set name='U+015C LATIN CAPITAL LETTER S WITH CIRCUMFLEX' where ujis=0x8FAADD;
-update t1 set name='U+0160 LATIN CAPITAL LETTER S WITH CARON' where ujis=0x8FAADE;
-update t1 set name='U+015E LATIN CAPITAL LETTER S WITH CEDILLA' where ujis=0x8FAADF;
-update t1 set name='U+0164 LATIN CAPITAL LETTER T WITH CARON' where ujis=0x8FAAE0;
-update t1 set name='U+0162 LATIN CAPITAL LETTER T WITH CEDILLA' where ujis=0x8FAAE1;
-update t1 set name='U+00DA LATIN CAPITAL LETTER U WITH ACUTE' where ujis=0x8FAAE2;
-update t1 set name='U+00D9 LATIN CAPITAL LETTER U WITH GRAVE' where ujis=0x8FAAE3;
-update t1 set name='U+00DC LATIN CAPITAL LETTER U WITH DIAERESIS' where ujis=0x8FAAE4;
-update t1 set name='U+00DB LATIN CAPITAL LETTER U WITH CIRCUMFLEX' where ujis=0x8FAAE5;
-update t1 set name='U+016C LATIN CAPITAL LETTER U WITH BREVE' where ujis=0x8FAAE6;
-update t1 set name='U+01D3 LATIN CAPITAL LETTER U WITH CARON' where ujis=0x8FAAE7;
-update t1 set name='U+0170 LATIN CAPITAL LETTER U WITH DOUBLE ACUTE' where ujis=0x8FAAE8;
-update t1 set name='U+016A LATIN CAPITAL LETTER U WITH MACRON' where ujis=0x8FAAE9;
-update t1 set name='U+0172 LATIN CAPITAL LETTER U WITH OGONEK' where ujis=0x8FAAEA;
-update t1 set name='U+016E LATIN CAPITAL LETTER U WITH RING ABOVE' where ujis=0x8FAAEB;
-update t1 set name='U+0168 LATIN CAPITAL LETTER U WITH TILDE' where ujis=0x8FAAEC;
-update t1 set name='U+01D7 LATIN CAPITAL LETTER U WITH DIAERESIS AND ACUTE' where ujis=0x8FAAED;
-update t1 set name='U+01DB LATIN CAPITAL LETTER U WITH DIAERESIS AND GRAVE' where ujis=0x8FAAEE;
-update t1 set name='U+01D9 LATIN CAPITAL LETTER U WITH DIAERESIS AND CARON' where ujis=0x8FAAEF;
-update t1 set name='U+01D5 LATIN CAPITAL LETTER U WITH DIAERESIS AND MACRON' where ujis=0x8FAAF0;
-update t1 set name='U+0174 LATIN CAPITAL LETTER W WITH CIRCUMFLEX' where ujis=0x8FAAF1;
-update t1 set name='U+00DD LATIN CAPITAL LETTER Y WITH ACUTE' where ujis=0x8FAAF2;
-update t1 set name='U+0178 LATIN CAPITAL LETTER Y WITH DIAERESIS' where ujis=0x8FAAF3;
-update t1 set name='U+0176 LATIN CAPITAL LETTER Y WITH CIRCUMFLEX' where ujis=0x8FAAF4;
-update t1 set name='U+0179 LATIN CAPITAL LETTER Z WITH ACUTE' where ujis=0x8FAAF5;
-update t1 set name='U+017D LATIN CAPITAL LETTER Z WITH CARON' where ujis=0x8FAAF6;
-update t1 set name='U+017B LATIN CAPITAL LETTER Z WITH DOT ABOVE' where ujis=0x8FAAF7;
-update t1 set name='U+00E1 LATIN SMALL LETTER A WITH ACUTE' where ujis=0x8FABA1;
-update t1 set name='U+00E0 LATIN SMALL LETTER A WITH GRAVE' where ujis=0x8FABA2;
-update t1 set name='U+00E4 LATIN SMALL LETTER A WITH DIAERESIS' where ujis=0x8FABA3;
-update t1 set name='U+00E2 LATIN SMALL LETTER A WITH CIRCUMFLEX' where ujis=0x8FABA4;
-update t1 set name='U+0103 LATIN SMALL LETTER A WITH BREVE' where ujis=0x8FABA5;
-update t1 set name='U+01CE LATIN SMALL LETTER A WITH CARON' where ujis=0x8FABA6;
-update t1 set name='U+0101 LATIN SMALL LETTER A WITH MACRON' where ujis=0x8FABA7;
-update t1 set name='U+0105 LATIN SMALL LETTER A WITH OGONEK' where ujis=0x8FABA8;
-update t1 set name='U+00E5 LATIN SMALL LETTER A WITH RING ABOVE' where ujis=0x8FABA9;
-update t1 set name='U+00E3 LATIN SMALL LETTER A WITH TILDE' where ujis=0x8FABAA;
-update t1 set name='U+0107 LATIN SMALL LETTER C WITH ACUTE' where ujis=0x8FABAB;
-update t1 set name='U+0109 LATIN SMALL LETTER C WITH CIRCUMFLEX' where ujis=0x8FABAC;
-update t1 set name='U+010D LATIN SMALL LETTER C WITH CARON' where ujis=0x8FABAD;
-update t1 set name='U+00E7 LATIN SMALL LETTER C WITH CEDILLA' where ujis=0x8FABAE;
-update t1 set name='U+010B LATIN SMALL LETTER C WITH DOT ABOVE' where ujis=0x8FABAF;
-update t1 set name='U+010F LATIN SMALL LETTER D WITH CARON' where ujis=0x8FABB0;
-update t1 set name='U+00E9 LATIN SMALL LETTER E WITH ACUTE' where ujis=0x8FABB1;
-update t1 set name='U+00E8 LATIN SMALL LETTER E WITH GRAVE' where ujis=0x8FABB2;
-update t1 set name='U+00EB LATIN SMALL LETTER E WITH DIAERESIS' where ujis=0x8FABB3;
-update t1 set name='U+00EA LATIN SMALL LETTER E WITH CIRCUMFLEX' where ujis=0x8FABB4;
-update t1 set name='U+011B LATIN SMALL LETTER E WITH CARON' where ujis=0x8FABB5;
-update t1 set name='U+0117 LATIN SMALL LETTER E WITH DOT ABOVE' where ujis=0x8FABB6;
-update t1 set name='U+0113 LATIN SMALL LETTER E WITH MACRON' where ujis=0x8FABB7;
-update t1 set name='U+0119 LATIN SMALL LETTER E WITH OGONEK' where ujis=0x8FABB8;
-update t1 set name='U+01F5 LATIN SMALL LETTER G WITH ACUTE' where ujis=0x8FABB9;
-update t1 set name='U+011D LATIN SMALL LETTER G WITH CIRCUMFLEX' where ujis=0x8FABBA;
-update t1 set name='U+011F LATIN SMALL LETTER G WITH BREVE' where ujis=0x8FABBB;
-update t1 set name='U+0121 LATIN SMALL LETTER G WITH DOT ABOVE' where ujis=0x8FABBD;
-update t1 set name='U+0125 LATIN SMALL LETTER H WITH CIRCUMFLEX' where ujis=0x8FABBE;
-update t1 set name='U+00ED LATIN SMALL LETTER I WITH ACUTE' where ujis=0x8FABBF;
-update t1 set name='U+00EC LATIN SMALL LETTER I WITH GRAVE' where ujis=0x8FABC0;
-update t1 set name='U+00EF LATIN SMALL LETTER I WITH DIAERESIS' where ujis=0x8FABC1;
-update t1 set name='U+00EE LATIN SMALL LETTER I WITH CIRCUMFLEX' where ujis=0x8FABC2;
-update t1 set name='U+01D0 LATIN SMALL LETTER I WITH CARON' where ujis=0x8FABC3;
-update t1 set name='U+012B LATIN SMALL LETTER I WITH MACRON' where ujis=0x8FABC5;
-update t1 set name='U+012F LATIN SMALL LETTER I WITH OGONEK' where ujis=0x8FABC6;
-update t1 set name='U+0129 LATIN SMALL LETTER I WITH TILDE' where ujis=0x8FABC7;
-update t1 set name='U+0135 LATIN SMALL LETTER J WITH CIRCUMFLEX' where ujis=0x8FABC8;
-update t1 set name='U+0137 LATIN SMALL LETTER K WITH CEDILLA' where ujis=0x8FABC9;
-update t1 set name='U+013A LATIN SMALL LETTER L WITH ACUTE' where ujis=0x8FABCA;
-update t1 set name='U+013E LATIN SMALL LETTER L WITH CARON' where ujis=0x8FABCB;
-update t1 set name='U+013C LATIN SMALL LETTER L WITH CEDILLA' where ujis=0x8FABCC;
-update t1 set name='U+0144 LATIN SMALL LETTER N WITH ACUTE' where ujis=0x8FABCD;
-update t1 set name='U+0148 LATIN SMALL LETTER N WITH CARON' where ujis=0x8FABCE;
-update t1 set name='U+0146 LATIN SMALL LETTER N WITH CEDILLA' where ujis=0x8FABCF;
-update t1 set name='U+00F1 LATIN SMALL LETTER N WITH TILDE' where ujis=0x8FABD0;
-update t1 set name='U+00F3 LATIN SMALL LETTER O WITH ACUTE' where ujis=0x8FABD1;
-update t1 set name='U+00F2 LATIN SMALL LETTER O WITH GRAVE' where ujis=0x8FABD2;
-update t1 set name='U+00F6 LATIN SMALL LETTER O WITH DIAERESIS' where ujis=0x8FABD3;
-update t1 set name='U+00F4 LATIN SMALL LETTER O WITH CIRCUMFLEX' where ujis=0x8FABD4;
-update t1 set name='U+01D2 LATIN SMALL LETTER O WITH CARON' where ujis=0x8FABD5;
-update t1 set name='U+0151 LATIN SMALL LETTER O WITH DOUBLE ACUTE' where ujis=0x8FABD6;
-update t1 set name='U+014D LATIN SMALL LETTER O WITH MACRON' where ujis=0x8FABD7;
-update t1 set name='U+00F5 LATIN SMALL LETTER O WITH TILDE' where ujis=0x8FABD8;
-update t1 set name='U+0155 LATIN SMALL LETTER R WITH ACUTE' where ujis=0x8FABD9;
-update t1 set name='U+0159 LATIN SMALL LETTER R WITH CARON' where ujis=0x8FABDA;
-update t1 set name='U+0157 LATIN SMALL LETTER R WITH CEDILLA' where ujis=0x8FABDB;
-update t1 set name='U+015B LATIN SMALL LETTER S WITH ACUTE' where ujis=0x8FABDC;
-update t1 set name='U+015D LATIN SMALL LETTER S WITH CIRCUMFLEX' where ujis=0x8FABDD;
-update t1 set name='U+0161 LATIN SMALL LETTER S WITH CARON' where ujis=0x8FABDE;
-update t1 set name='U+015F LATIN SMALL LETTER S WITH CEDILLA' where ujis=0x8FABDF;
-update t1 set name='U+0165 LATIN SMALL LETTER T WITH CARON' where ujis=0x8FABE0;
-update t1 set name='U+0163 LATIN SMALL LETTER T WITH CEDILLA' where ujis=0x8FABE1;
-update t1 set name='U+00FA LATIN SMALL LETTER U WITH ACUTE' where ujis=0x8FABE2;
-update t1 set name='U+00F9 LATIN SMALL LETTER U WITH GRAVE' where ujis=0x8FABE3;
-update t1 set name='U+00FC LATIN SMALL LETTER U WITH DIAERESIS' where ujis=0x8FABE4;
-update t1 set name='U+00FB LATIN SMALL LETTER U WITH CIRCUMFLEX' where ujis=0x8FABE5;
-update t1 set name='U+016D LATIN SMALL LETTER U WITH BREVE' where ujis=0x8FABE6;
-update t1 set name='U+01D4 LATIN SMALL LETTER U WITH CARON' where ujis=0x8FABE7;
-update t1 set name='U+0171 LATIN SMALL LETTER U WITH DOUBLE ACUTE' where ujis=0x8FABE8;
-update t1 set name='U+016B LATIN SMALL LETTER U WITH MACRON' where ujis=0x8FABE9;
-update t1 set name='U+0173 LATIN SMALL LETTER U WITH OGONEK' where ujis=0x8FABEA;
-update t1 set name='U+016F LATIN SMALL LETTER U WITH RING ABOVE' where ujis=0x8FABEB;
-update t1 set name='U+0169 LATIN SMALL LETTER U WITH TILDE' where ujis=0x8FABEC;
-update t1 set name='U+01D8 LATIN SMALL LETTER U WITH DIAERESIS AND ACUTE' where ujis=0x8FABED;
-update t1 set name='U+01DC LATIN SMALL LETTER U WITH DIAERESIS AND GRAVE' where ujis=0x8FABEE;
-update t1 set name='U+01DA LATIN SMALL LETTER U WITH DIAERESIS AND CARON' where ujis=0x8FABEF;
-update t1 set name='U+01D6 LATIN SMALL LETTER U WITH DIAERESIS AND MACRON' where ujis=0x8FABF0;
-update t1 set name='U+0175 LATIN SMALL LETTER W WITH CIRCUMFLEX' where ujis=0x8FABF1;
-update t1 set name='U+00FD LATIN SMALL LETTER Y WITH ACUTE' where ujis=0x8FABF2;
-update t1 set name='U+00FF LATIN SMALL LETTER Y WITH DIAERESIS' where ujis=0x8FABF3;
-update t1 set name='U+0177 LATIN SMALL LETTER Y WITH CIRCUMFLEX' where ujis=0x8FABF4;
-update t1 set name='U+017A LATIN SMALL LETTER Z WITH ACUTE' where ujis=0x8FABF5;
-update t1 set name='U+017E LATIN SMALL LETTER Z WITH CARON' where ujis=0x8FABF6;
-update t1 set name='U+017C LATIN SMALL LETTER Z WITH DOT ABOVE' where ujis=0x8FABF7;
-update t1 set name='<CJK>' where ujis >= 0x8FB0A1 AND ujis <= 0x8FBFFE;
-update t1 set name='<CJK>' where ujis >= 0x8FC0A1 AND ujis <= 0x8FCFFE;
-update t1 set name='<CJK>' where ujis >= 0x8FD0A1 AND ujis <= 0x8FDFFE;
-update t1 set name='<CJK>' where ujis >= 0x8FE0A1 AND ujis <= 0x8FECFE;
-update t1 set name='U+9EF8 <CJK>' where ujis=0x8FEDA1;
-update t1 set name='U+9EFF <CJK>' where ujis=0x8FEDA2;
-update t1 set name='U+9F02 <CJK>' where ujis=0x8FEDA3;
-update t1 set name='U+9F03 <CJK>' where ujis=0x8FEDA4;
-update t1 set name='U+9F09 <CJK>' where ujis=0x8FEDA5;
-update t1 set name='U+9F0F <CJK>' where ujis=0x8FEDA6;
-update t1 set name='U+9F10 <CJK>' where ujis=0x8FEDA7;
-update t1 set name='U+9F11 <CJK>' where ujis=0x8FEDA8;
-update t1 set name='U+9F12 <CJK>' where ujis=0x8FEDA9;
-update t1 set name='U+9F14 <CJK>' where ujis=0x8FEDAA;
-update t1 set name='U+9F16 <CJK>' where ujis=0x8FEDAB;
-update t1 set name='U+9F17 <CJK>' where ujis=0x8FEDAC;
-update t1 set name='U+9F19 <CJK>' where ujis=0x8FEDAD;
-update t1 set name='U+9F1A <CJK>' where ujis=0x8FEDAE;
-update t1 set name='U+9F1B <CJK>' where ujis=0x8FEDAF;
-update t1 set name='U+9F1F <CJK>' where ujis=0x8FEDB0;
-update t1 set name='U+9F22 <CJK>' where ujis=0x8FEDB1;
-update t1 set name='U+9F26 <CJK>' where ujis=0x8FEDB2;
-update t1 set name='U+9F2A <CJK>' where ujis=0x8FEDB3;
-update t1 set name='U+9F2B <CJK>' where ujis=0x8FEDB4;
-update t1 set name='U+9F2F <CJK>' where ujis=0x8FEDB5;
-update t1 set name='U+9F31 <CJK>' where ujis=0x8FEDB6;
-update t1 set name='U+9F32 <CJK>' where ujis=0x8FEDB7;
-update t1 set name='U+9F34 <CJK>' where ujis=0x8FEDB8;
-update t1 set name='U+9F37 <CJK>' where ujis=0x8FEDB9;
-update t1 set name='U+9F39 <CJK>' where ujis=0x8FEDBA;
-update t1 set name='U+9F3A <CJK>' where ujis=0x8FEDBB;
-update t1 set name='U+9F3C <CJK>' where ujis=0x8FEDBC;
-update t1 set name='U+9F3D <CJK>' where ujis=0x8FEDBD;
-update t1 set name='U+9F3F <CJK>' where ujis=0x8FEDBE;
-update t1 set name='U+9F41 <CJK>' where ujis=0x8FEDBF;
-update t1 set name='U+9F43 <CJK>' where ujis=0x8FEDC0;
-update t1 set name='U+9F44 <CJK>' where ujis=0x8FEDC1;
-update t1 set name='U+9F45 <CJK>' where ujis=0x8FEDC2;
-update t1 set name='U+9F46 <CJK>' where ujis=0x8FEDC3;
-update t1 set name='U+9F47 <CJK>' where ujis=0x8FEDC4;
-update t1 set name='U+9F53 <CJK>' where ujis=0x8FEDC5;
-update t1 set name='U+9F55 <CJK>' where ujis=0x8FEDC6;
-update t1 set name='U+9F56 <CJK>' where ujis=0x8FEDC7;
-update t1 set name='U+9F57 <CJK>' where ujis=0x8FEDC8;
-update t1 set name='U+9F58 <CJK>' where ujis=0x8FEDC9;
-update t1 set name='U+9F5A <CJK>' where ujis=0x8FEDCA;
-update t1 set name='U+9F5D <CJK>' where ujis=0x8FEDCB;
-update t1 set name='U+9F5E <CJK>' where ujis=0x8FEDCC;
-update t1 set name='U+9F68 <CJK>' where ujis=0x8FEDCD;
-update t1 set name='U+9F69 <CJK>' where ujis=0x8FEDCE;
-update t1 set name='U+9F6D <CJK>' where ujis=0x8FEDCF;
-update t1 set name='U+9F6E <CJK>' where ujis=0x8FEDD0;
-update t1 set name='U+9F6F <CJK>' where ujis=0x8FEDD1;
-update t1 set name='U+9F70 <CJK>' where ujis=0x8FEDD2;
-update t1 set name='U+9F71 <CJK>' where ujis=0x8FEDD3;
-update t1 set name='U+9F73 <CJK>' where ujis=0x8FEDD4;
-update t1 set name='U+9F75 <CJK>' where ujis=0x8FEDD5;
-update t1 set name='U+9F7A <CJK>' where ujis=0x8FEDD6;
-update t1 set name='U+9F7D <CJK>' where ujis=0x8FEDD7;
-update t1 set name='U+9F8F <CJK>' where ujis=0x8FEDD8;
-update t1 set name='U+9F90 <CJK>' where ujis=0x8FEDD9;
-update t1 set name='U+9F91 <CJK>' where ujis=0x8FEDDA;
-update t1 set name='U+9F92 <CJK>' where ujis=0x8FEDDB;
-update t1 set name='U+9F94 <CJK>' where ujis=0x8FEDDC;
-update t1 set name='U+9F96 <CJK>' where ujis=0x8FEDDD;
-update t1 set name='U+9F97 <CJK>' where ujis=0x8FEDDE;
-update t1 set name='U+9F9E <CJK>' where ujis=0x8FEDDF;
-update t1 set name='U+9FA1 <CJK>' where ujis=0x8FEDE0;
-update t1 set name='U+9FA2 <CJK>' where ujis=0x8FEDE1;
-update t1 set name='U+9FA3 <CJK>' where ujis=0x8FEDE2;
-update t1 set name='U+9FA5 <CJK>' where ujis=0x8FEDE3;
-update t1 set name='User defined range #2' where ujis >= 0x8FF5A1 and ujis <= 0x8FFEFE;
-update t1 set name='UNASSIGNED' where name='';
-update ignore t1 set ucs2=ujis, ujis2=ucs2;
-Warnings:
-Warning 1366 Incorrect string value: '\xA2\xAF' for column 'ucs2' at row 237
-Warning 1366 Incorrect string value: '\xA2\xB0' for column 'ucs2' at row 238
-Warning 1366 Incorrect string value: '\xA2\xB1' for column 'ucs2' at row 239
-Warning 1366 Incorrect string value: '\xA2\xB2' for column 'ucs2' at row 240
-Warning 1366 Incorrect string value: '\xA2\xB3' for column 'ucs2' at row 241
-Warning 1366 Incorrect string value: '\xA2\xB4' for column 'ucs2' at row 242
-Warning 1366 Incorrect string value: '\xA2\xB5' for column 'ucs2' at row 243
-Warning 1366 Incorrect string value: '\xA2\xB6' for column 'ucs2' at row 244
-Warning 1366 Incorrect string value: '\xA2\xB7' for column 'ucs2' at row 245
-Warning 1366 Incorrect string value: '\xA2\xB8' for column 'ucs2' at row 246
-Warning 1366 Incorrect string value: '\xA2\xB9' for column 'ucs2' at row 247
-Warning 1366 Incorrect string value: '\xA2\xC2' for column 'ucs2' at row 256
-Warning 1366 Incorrect string value: '\xA2\xC3' for column 'ucs2' at row 257
-Warning 1366 Incorrect string value: '\xA2\xC4' for column 'ucs2' at row 258
-Warning 1366 Incorrect string value: '\xA2\xC5' for column 'ucs2' at row 259
-Warning 1366 Incorrect string value: '\xA2\xC6' for column 'ucs2' at row 260
-Warning 1366 Incorrect string value: '\xA2\xC7' for column 'ucs2' at row 261
-Warning 1366 Incorrect string value: '\xA2\xC8' for column 'ucs2' at row 262
-Warning 1366 Incorrect string value: '\xA2\xC9' for column 'ucs2' at row 263
-Warning 1366 Incorrect string value: '\xA2\xD1' for column 'ucs2' at row 271
-Warning 1366 Incorrect string value: '\xA2\xD2' for column 'ucs2' at row 272
-Warning 1366 Incorrect string value: '\xA2\xD3' for column 'ucs2' at row 273
-Warning 1366 Incorrect string value: '\xA2\xD4' for column 'ucs2' at row 274
-Warning 1366 Incorrect string value: '\xA2\xD5' for column 'ucs2' at row 275
-Warning 1366 Incorrect string value: '\xA2\xD6' for column 'ucs2' at row 276
-Warning 1366 Incorrect string value: '\xA2\xD7' for column 'ucs2' at row 277
-Warning 1366 Incorrect string value: '\xA2\xD8' for column 'ucs2' at row 278
-Warning 1366 Incorrect string value: '\xA2\xD9' for column 'ucs2' at row 279
-Warning 1366 Incorrect string value: '\xA2\xDA' for column 'ucs2' at row 280
-Warning 1366 Incorrect string value: '\xA2\xDB' for column 'ucs2' at row 281
-Warning 1366 Incorrect string value: '\xA2\xEB' for column 'ucs2' at row 297
-Warning 1366 Incorrect string value: '\xA2\xEC' for column 'ucs2' at row 298
-Warning 1366 Incorrect string value: '\xA2\xED' for column 'ucs2' at row 299
-Warning 1366 Incorrect string value: '\xA2\xEE' for column 'ucs2' at row 300
-Warning 1366 Incorrect string value: '\xA2\xEF' for column 'ucs2' at row 301
-Warning 1366 Incorrect string value: '\xA2\xF0' for column 'ucs2' at row 302
-Warning 1366 Incorrect string value: '\xA2\xF1' for column 'ucs2' at row 303
-Warning 1366 Incorrect string value: '\xA2\xFA' for column 'ucs2' at row 312
-Warning 1366 Incorrect string value: '\xA2\xFB' for column 'ucs2' at row 313
-Warning 1366 Incorrect string value: '\xA2\xFC' for column 'ucs2' at row 314
-Warning 1366 Incorrect string value: '\xA2\xFD' for column 'ucs2' at row 315
-Warning 1366 Incorrect string value: '\xA3\xA1' for column 'ucs2' at row 317
-Warning 1366 Incorrect string value: '\xA3\xA2' for column 'ucs2' at row 318
-Warning 1366 Incorrect string value: '\xA3\xA3' for column 'ucs2' at row 319
-Warning 1366 Incorrect string value: '\xA3\xA4' for column 'ucs2' at row 320
-Warning 1366 Incorrect string value: '\xA3\xA5' for column 'ucs2' at row 321
-Warning 1366 Incorrect string value: '\xA3\xA6' for column 'ucs2' at row 322
-Warning 1366 Incorrect string value: '\xA3\xA7' for column 'ucs2' at row 323
-Warning 1366 Incorrect string value: '\xA3\xA8' for column 'ucs2' at row 324
-Warning 1366 Incorrect string value: '\xA3\xA9' for column 'ucs2' at row 325
-Warning 1366 Incorrect string value: '\xA3\xAA' for column 'ucs2' at row 326
-Warning 1366 Incorrect string value: '\xA3\xAB' for column 'ucs2' at row 327
-Warning 1366 Incorrect string value: '\xA3\xAC' for column 'ucs2' at row 328
-Warning 1366 Incorrect string value: '\xA3\xAD' for column 'ucs2' at row 329
-Warning 1366 Incorrect string value: '\xA3\xAE' for column 'ucs2' at row 330
-Warning 1366 Incorrect string value: '\xA3\xAF' for column 'ucs2' at row 331
-Warning 1366 Incorrect string value: '\xA3\xBA' for column 'ucs2' at row 342
-Warning 1366 Incorrect string value: '\xA3\xBB' for column 'ucs2' at row 343
-Warning 1366 Incorrect string value: '\xA3\xBC' for column 'ucs2' at row 344
-Warning 1366 Incorrect string value: '\xA3\xBD' for column 'ucs2' at row 345
-Warning 1366 Incorrect string value: '\xA3\xBE' for column 'ucs2' at row 346
-Warning 1366 Incorrect string value: '\xA3\xBF' for column 'ucs2' at row 347
-Warning 1366 Incorrect string value: '\xA3\xC0' for column 'ucs2' at row 348
-Warning 1366 Incorrect string value: '\xA3\xDB' for column 'ucs2' at row 375
-Characters with safe Unicode round trip
-select hex(ujis), hex(ucs2), hex(ujis2), name from t1 where ujis=ujis2 order by ujis;
-hex(ujis) hex(ucs2) hex(ujis2) name
-00 0000 00 U+0000 NULL
-01 0001 01 U+0001 START OF HEADING
-02 0002 02 U+0002 START OF TEXT
-03 0003 03 U+0003 END OF TEXT
-04 0004 04 U+0004 END OF TRANSMISSION
-05 0005 05 U+0005 ENQUIRY
-06 0006 06 U+0006 ACKNOWLEDGE
-07 0007 07 U+0007 BELL
-08 0008 08 U+0008 BACKSPACE
-09 0009 09 U+0009 HORIZONTAL TABULATION
-0A 000A 0A U+000A LINE FEED
-0B 000B 0B U+000B VERTICAL TABULATION
-0C 000C 0C U+000C FORM FEED
-0D 000D 0D U+000D CARRIAGE RETURN
-0E 000E 0E U+000E SHIFT OUT
-0F 000F 0F U+000F SHIFT IN
-10 0010 10 U+0010 DATA LINK ESCAPE
-11 0011 11 U+0011 DEVICE CONTROL ONE
-12 0012 12 U+0012 DEVICE CONTROL TWO
-13 0013 13 U+0013 DEVICE CONTROL THREE
-14 0014 14 U+0014 DEVICE CONTROL FOUR
-15 0015 15 U+0015 NEGATIVE ACKNOWLEDGE
-16 0016 16 U+0016 SYNCHRONOUS IDLE
-17 0017 17 U+0017 END OF TRANSMISSION BLOCK
-18 0018 18 U+0018 CANCEL
-19 0019 19 U+0019 END OF MEDIUM
-1A 001A 1A U+001A SUBSTITUTE
-1B 001B 1B U+001B ESCAPE
-1C 001C 1C U+001C FILE SEPARATOR
-1D 001D 1D U+001D GROUP SEPARATOR
-1E 001E 1E U+001E RECORD SEPARATOR
-1F 001F 1F U+001F UNIT SEPARATOR
-20 0020 20 U+0020 SPACE
-21 0021 21 U+0021 EXCLAMATION MARK
-22 0022 22 U+0022 QUOTATION MARK
-23 0023 23 U+0023 NUMBER SIGN
-24 0024 24 U+0024 DOLLAR SIGN
-25 0025 25 U+0025 PERCENT SIGN
-26 0026 26 U+0026 AMPERSAND
-27 0027 27 U+0027 APOSTROPHE
-28 0028 28 U+0028 LEFT PARENTHESIS
-29 0029 29 U+0029 RIGHT PARENTHESIS
-2A 002A 2A U+002A ASTERISK
-2B 002B 2B U+002B PLUS SIGN
-2C 002C 2C U+002C COMMA
-2D 002D 2D U+002D HYPHEN-MINUS
-2E 002E 2E U+002E FULL STOP
-2F 002F 2F U+002F SOLIDUS
-30 0030 30 U+0030 DIGIT ZERO
-31 0031 31 U+0031 DIGIT ONE
-32 0032 32 U+0032 DIGIT TWO
-33 0033 33 U+0033 DIGIT THREE
-34 0034 34 U+0034 DIGIT FOUR
-35 0035 35 U+0035 DIGIT FIVE
-36 0036 36 U+0036 DIGIT SIX
-37 0037 37 U+0037 DIGIT SEVEN
-38 0038 38 U+0038 DIGIT EIGHT
-39 0039 39 U+0039 DIGIT NINE
-3A 003A 3A U+003A COLON
-3B 003B 3B U+003B SEMICOLON
-3C 003C 3C U+003C LESS-THAN SIGN
-3D 003D 3D U+003D EQUALS SIGN
-3E 003E 3E U+003E GREATER-THAN SIGN
-3F 003F 3F U+003F QUESTION MARK
-40 0040 40 U+0040 COMMERCIAL AT
-41 0041 41 U+0041 LATIN CAPITAL LETTER A
-42 0042 42 U+0042 LATIN CAPITAL LETTER B
-43 0043 43 U+0043 LATIN CAPITAL LETTER C
-44 0044 44 U+0044 LATIN CAPITAL LETTER D
-45 0045 45 U+0045 LATIN CAPITAL LETTER E
-46 0046 46 U+0046 LATIN CAPITAL LETTER F
-47 0047 47 U+0047 LATIN CAPITAL LETTER G
-48 0048 48 U+0048 LATIN CAPITAL LETTER H
-49 0049 49 U+0049 LATIN CAPITAL LETTER I
-4A 004A 4A U+004A LATIN CAPITAL LETTER J
-4B 004B 4B U+004B LATIN CAPITAL LETTER K
-4C 004C 4C U+004C LATIN CAPITAL LETTER L
-4D 004D 4D U+004D LATIN CAPITAL LETTER M
-4E 004E 4E U+004E LATIN CAPITAL LETTER N
-4F 004F 4F U+004F LATIN CAPITAL LETTER O
-50 0050 50 U+0050 LATIN CAPITAL LETTER P
-51 0051 51 U+0051 LATIN CAPITAL LETTER Q
-52 0052 52 U+0052 LATIN CAPITAL LETTER R
-53 0053 53 U+0053 LATIN CAPITAL LETTER S
-54 0054 54 U+0054 LATIN CAPITAL LETTER T
-55 0055 55 U+0055 LATIN CAPITAL LETTER U
-56 0056 56 U+0056 LATIN CAPITAL LETTER V
-57 0057 57 U+0057 LATIN CAPITAL LETTER W
-58 0058 58 U+0058 LATIN CAPITAL LETTER X
-59 0059 59 U+0059 LATIN CAPITAL LETTER Y
-5A 005A 5A U+005A LATIN CAPITAL LETTER Z
-5B 005B 5B U+005B LEFT SQUARE BRACKET
-5C 005C 5C U+005C REVERSE SOLIDUS
-5D 005D 5D U+005D RIGHT SQUARE BRACKET
-5E 005E 5E U+005E CIRCUMFLEX ACCENT
-5F 005F 5F U+005F LOW LINE
-60 0060 60 U+0060 GRAVE ACCENT
-61 0061 61 U+0061 LATIN SMALL LETTER A
-62 0062 62 U+0062 LATIN SMALL LETTER B
-63 0063 63 U+0063 LATIN SMALL LETTER C
-64 0064 64 U+0064 LATIN SMALL LETTER D
-65 0065 65 U+0065 LATIN SMALL LETTER E
-66 0066 66 U+0066 LATIN SMALL LETTER F
-67 0067 67 U+0067 LATIN SMALL LETTER G
-68 0068 68 U+0068 LATIN SMALL LETTER H
-69 0069 69 U+0069 LATIN SMALL LETTER I
-6A 006A 6A U+006A LATIN SMALL LETTER J
-6B 006B 6B U+006B LATIN SMALL LETTER K
-6C 006C 6C U+006C LATIN SMALL LETTER L
-6D 006D 6D U+006D LATIN SMALL LETTER M
-6E 006E 6E U+006E LATIN SMALL LETTER N
-6F 006F 6F U+006F LATIN SMALL LETTER O
-70 0070 70 U+0070 LATIN SMALL LETTER P
-71 0071 71 U+0071 LATIN SMALL LETTER Q
-72 0072 72 U+0072 LATIN SMALL LETTER R
-73 0073 73 U+0073 LATIN SMALL LETTER S
-74 0074 74 U+0074 LATIN SMALL LETTER T
-75 0075 75 U+0075 LATIN SMALL LETTER U
-76 0076 76 U+0076 LATIN SMALL LETTER V
-77 0077 77 U+0077 LATIN SMALL LETTER W
-78 0078 78 U+0078 LATIN SMALL LETTER X
-79 0079 79 U+0079 LATIN SMALL LETTER Y
-7A 007A 7A U+007A LATIN SMALL LETTER Z
-7B 007B 7B U+007B LEFT CURLY BRACKET
-7C 007C 7C U+007C VERTICAL LINE
-7D 007D 7D U+007D RIGHT CURLY BRACKET
-7E 007E 7E U+007E TILDE
-7F 007F 7F U+007F DELETE
-8EA1 FF61 8EA1 U+FF61 HALFWIDTH IDEOGRAPHIC FULL STOP
-8EA2 FF62 8EA2 U+FF62 HALFWIDTH LEFT CORNER BRACKET
-8EA3 FF63 8EA3 U+FF63 HALFWIDTH RIGHT CORNER BRACKET
-8EA4 FF64 8EA4 U+FF64 HALFWIDTH IDEOGRAPHIC COMMA
-8EA5 FF65 8EA5 U+FF65 HALFWIDTH KATAKANA MIDDLE DOT
-8EA6 FF66 8EA6 U+FF66 HALFWIDTH KATAKANA LETTER WO
-8EA7 FF67 8EA7 U+FF67 HALFWIDTH KATAKANA LETTER SMALL A
-8EA8 FF68 8EA8 U+FF68 HALFWIDTH KATAKANA LETTER SMALL I
-8EA9 FF69 8EA9 U+FF69 HALFWIDTH KATAKANA LETTER SMALL U
-8EAA FF6A 8EAA U+FF6A HALFWIDTH KATAKANA LETTER SMALL E
-8EAB FF6B 8EAB U+FF6B HALFWIDTH KATAKANA LETTER SMALL O
-8EAC FF6C 8EAC U+FF6C HALFWIDTH KATAKANA LETTER SMALL YA
-8EAD FF6D 8EAD U+FF6D HALFWIDTH KATAKANA LETTER SMALL YU
-8EAE FF6E 8EAE U+FF6E HALFWIDTH KATAKANA LETTER SMALL YO
-8EAF FF6F 8EAF U+FF6F HALFWIDTH KATAKANA LETTER SMALL TU
-8EB0 FF70 8EB0 U+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK
-8EB1 FF71 8EB1 U+FF71 HALFWIDTH KATAKANA LETTER A
-8EB2 FF72 8EB2 U+FF72 HALFWIDTH KATAKANA LETTER I
-8EB3 FF73 8EB3 U+FF73 HALFWIDTH KATAKANA LETTER U
-8EB4 FF74 8EB4 U+FF74 HALFWIDTH KATAKANA LETTER E
-8EB5 FF75 8EB5 U+FF75 HALFWIDTH KATAKANA LETTER O
-8EB6 FF76 8EB6 U+FF76 HALFWIDTH KATAKANA LETTER KA
-8EB7 FF77 8EB7 U+FF77 HALFWIDTH KATAKANA LETTER KI
-8EB8 FF78 8EB8 U+FF78 HALFWIDTH KATAKANA LETTER KU
-8EB9 FF79 8EB9 U+FF79 HALFWIDTH KATAKANA LETTER KE
-8EBA FF7A 8EBA U+FF7A HALFWIDTH KATAKANA LETTER KO
-8EBB FF7B 8EBB U+FF7B HALFWIDTH KATAKANA LETTER SA
-8EBC FF7C 8EBC U+FF7C HALFWIDTH KATAKANA LETTER SI
-8EBD FF7D 8EBD U+FF7D HALFWIDTH KATAKANA LETTER SU
-8EBE FF7E 8EBE U+FF7E HALFWIDTH KATAKANA LETTER SE
-8EBF FF7F 8EBF U+FF7F HALFWIDTH KATAKANA LETTER SO
-8EC0 FF80 8EC0 U+FF80 HALFWIDTH KATAKANA LETTER TA
-8EC1 FF81 8EC1 U+FF81 HALFWIDTH KATAKANA LETTER TI
-8EC2 FF82 8EC2 U+FF82 HALFWIDTH KATAKANA LETTER TU
-8EC3 FF83 8EC3 U+FF83 HALFWIDTH KATAKANA LETTER TE
-8EC4 FF84 8EC4 U+FF84 HALFWIDTH KATAKANA LETTER TO
-8EC5 FF85 8EC5 U+FF85 HALFWIDTH KATAKANA LETTER NA
-8EC6 FF86 8EC6 U+FF86 HALFWIDTH KATAKANA LETTER NI
-8EC7 FF87 8EC7 U+FF87 HALFWIDTH KATAKANA LETTER NU
-8EC8 FF88 8EC8 U+FF88 HALFWIDTH KATAKANA LETTER NE
-8EC9 FF89 8EC9 U+FF89 HALFWIDTH KATAKANA LETTER NO
-8ECA FF8A 8ECA U+FF8A HALFWIDTH KATAKANA LETTER HA
-8ECB FF8B 8ECB U+FF8B HALFWIDTH KATAKANA LETTER HI
-8ECC FF8C 8ECC U+FF8C HALFWIDTH KATAKANA LETTER HU
-8ECD FF8D 8ECD U+FF8D HALFWIDTH KATAKANA LETTER HE
-8ECE FF8E 8ECE U+FF8E HALFWIDTH KATAKANA LETTER HO
-8ECF FF8F 8ECF U+FF8F HALFWIDTH KATAKANA LETTER MA
-8ED0 FF90 8ED0 U+FF90 HALFWIDTH KATAKANA LETTER MI
-8ED1 FF91 8ED1 U+FF91 HALFWIDTH KATAKANA LETTER MU
-8ED2 FF92 8ED2 U+FF92 HALFWIDTH KATAKANA LETTER ME
-8ED3 FF93 8ED3 U+FF93 HALFWIDTH KATAKANA LETTER MO
-8ED4 FF94 8ED4 U+FF94 HALFWIDTH KATAKANA LETTER YA
-8ED5 FF95 8ED5 U+FF95 HALFWIDTH KATAKANA LETTER YU
-8ED6 FF96 8ED6 U+FF96 HALFWIDTH KATAKANA LETTER YO
-8ED7 FF97 8ED7 U+FF97 HALFWIDTH KATAKANA LETTER RA
-8ED8 FF98 8ED8 U+FF98 HALFWIDTH KATAKANA LETTER RI
-8ED9 FF99 8ED9 U+FF99 HALFWIDTH KATAKANA LETTER RU
-8EDA FF9A 8EDA U+FF9A HALFWIDTH KATAKANA LETTER RE
-8EDB FF9B 8EDB U+FF9B HALFWIDTH KATAKANA LETTER RO
-8EDC FF9C 8EDC U+FF9C HALFWIDTH KATAKANA LETTER WA
-8EDD FF9D 8EDD U+FF9D HALFWIDTH KATAKANA LETTER N
-8EDE FF9E 8EDE U+FF9E HALFWIDTH KATAKANA VOICED SOUND MARK
-8EDF FF9F 8EDF U+FF9F HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK
-8FA2AF 02D8 8FA2AF U+02D8 BREVE
-8FA2B0 02C7 8FA2B0 U+02C7 CARON (Mandarin Chinese third tone)
-8FA2B1 00B8 8FA2B1 U+00B8 CEDILLA
-8FA2B2 02D9 8FA2B2 U+02D9 DOT ABOVE (Mandarin Chinese light tone)
-8FA2B3 02DD 8FA2B3 U+02DD DOUBLE ACUTE ACCENT
-8FA2B4 00AF 8FA2B4 U+00AF MACRON
-8FA2B5 02DB 8FA2B5 U+02DB OGONEK
-8FA2B6 02DA 8FA2B6 U+02DA RING ABOVE
-8FA2B8 0384 8FA2B8 U+0384 GREEK TONOS
-8FA2B9 0385 8FA2B9 U+0385 GREEK DIALYTIKA TONOS
-8FA2C2 00A1 8FA2C2 U+00A1 INVERTED EXCLAMATION MARK
-8FA2C3 00A6 8FA2C3 U+00A6 BROKEN BAR
-8FA2C4 00BF 8FA2C4 U+00BF INVERTED QUESTION MARK
-8FA2EB 00BA 8FA2EB U+00BA MASCULINE ORDINAL INDICATOR
-8FA2EC 00AA 8FA2EC U+00AA FEMININE ORDINAL INDICATOR
-8FA2ED 00A9 8FA2ED U+00A9 COPYRIGHT SIGN
-8FA2EE 00AE 8FA2EE U+00AE REGISTERED SIGN
-8FA2EF 2122 8FA2EF U+2122 TRADE MARK SIGN
-8FA2F0 00A4 8FA2F0 U+00A4 CURRENCY SIGN
-8FA2F1 2116 8FA2F1 U+2116 NUMERO SIGN
-8FA6E1 0386 8FA6E1 U+0386 GREEK CAPITAL LETTER ALPHA WITH TONOS
-8FA6E2 0388 8FA6E2 U+0388 GREEK CAPITAL LETTER EPSILON WITH TONOS
-8FA6E3 0389 8FA6E3 U+0389 GREEK CAPITAL LETTER ETA WITH TONOS
-8FA6E4 038A 8FA6E4 U+038A GREEK CAPITAL LETTER IOTA WITH TONOS
-8FA6E5 03AA 8FA6E5 U+03AA GREEK CAPITAL LETTER IOTA WITH DIALYTIKA
-8FA6E7 038C 8FA6E7 U+038C GREEK CAPITAL LETTER OMICRON WITH TONOS
-8FA6E9 038E 8FA6E9 U+038E GREEK CAPITAL LETTER UPSILON WITH TONOS
-8FA6EA 03AB 8FA6EA U+03AB GREEK CAPITAL LETTER UPSILON WITH DIALYTIKA
-8FA6EC 038F 8FA6EC U+038F GREEK CAPITAL LETTER OMEGA WITH TONOS
-8FA6F1 03AC 8FA6F1 U+03AC GREEK SMALL LETTER ALPHA WITH TONOS
-8FA6F2 03AD 8FA6F2 U+03AD GREEK SMALL LETTER EPSILON WITH TONOS
-8FA6F3 03AE 8FA6F3 U+03AE GREEK SMALL LETTER ETA WITH TONOS
-8FA6F4 03AF 8FA6F4 U+03AF GREEK SMALL LETTER IOTA WITH TONOS
-8FA6F5 03CA 8FA6F5 U+03CA GREEK SMALL LETTER IOTA WITH DIALYTIKA
-8FA6F6 0390 8FA6F6 U+0390 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS
-8FA6F7 03CC 8FA6F7 U+03CC GREEK SMALL LETTER OMICRON WITH TONOS
-8FA6F8 03C2 8FA6F8 U+03C2 GREEK SMALL LETTER FINAL SIGMA
-8FA6F9 03CD 8FA6F9 U+03CD GREEK SMALL LETTER UPSILON WITH TONOS
-8FA6FA 03CB 8FA6FA U+03CB GREEK SMALL LETTER UPSILON WITH DIALYTIKA
-8FA6FB 03B0 8FA6FB U+03B0 GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS
-8FA6FC 03CE 8FA6FC U+03CE GREEK SMALL LETTER OMEGA WITH TONOS
-8FA7C2 0402 8FA7C2 U+0402 CYRILLIC CAPITAL LETTER DJE
-8FA7C3 0403 8FA7C3 U+0403 CYRILLIC CAPITAL LETTER GJE
-8FA7C4 0404 8FA7C4 U+0404 CYRILLIC CAPITAL LETTER UKRAINIAN IE
-8FA7C5 0405 8FA7C5 U+0405 CYRILLIC CAPITAL LETTER DZE
-8FA7C6 0406 8FA7C6 U+0406 CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I
-8FA7C7 0407 8FA7C7 U+0407 CYRILLIC CAPITAL LETTER YI
-8FA7C8 0408 8FA7C8 U+0408 CYRILLIC CAPITAL LETTER JE
-8FA7C9 0409 8FA7C9 U+0409 CYRILLIC CAPITAL LETTER LJE
-8FA7CA 040A 8FA7CA U+040A CYRILLIC CAPITAL LETTER NJE
-8FA7CB 040B 8FA7CB U+040B CYRILLIC CAPITAL LETTER TSHE
-8FA7CC 040C 8FA7CC U+040C CYRILLIC CAPITAL LETTER KJE
-8FA7CD 040E 8FA7CD U+040E CYRILLIC CAPITAL LETTER SHORT U
-8FA7CE 040F 8FA7CE U+040F CYRILLIC CAPITAL LETTER DZHE
-8FA7F2 0452 8FA7F2 U+0452 CYRILLIC SMALL LETTER DJE
-8FA7F3 0453 8FA7F3 U+0453 CYRILLIC SMALL LETTER GJE
-8FA7F4 0454 8FA7F4 U+0454 CYRILLIC SMALL LETTER UKRAINIAN IE
-8FA7F5 0455 8FA7F5 U+0455 CYRILLIC SMALL LETTER DZE
-8FA7F6 0456 8FA7F6 U+0456 CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
-8FA7F7 0457 8FA7F7 U+0457 CYRILLIC SMALL LETTER YI
-8FA7F8 0458 8FA7F8 U+0458 CYRILLIC SMALL LETTER JE
-8FA7F9 0459 8FA7F9 U+0459 CYRILLIC SMALL LETTER LJE
-8FA7FA 045A 8FA7FA U+045A CYRILLIC SMALL LETTER NJE
-8FA7FB 045B 8FA7FB U+045B CYRILLIC SMALL LETTER TSHE
-8FA7FC 045C 8FA7FC U+045C CYRILLIC SMALL LETTER KJE
-8FA7FD 045E 8FA7FD U+045E CYRILLIC SMALL LETTER SHORT U
-8FA7FE 045F 8FA7FE U+045F CYRILLIC SMALL LETTER DZHE
-8FA9A1 00C6 8FA9A1 U+00C6 LATIN CAPITAL LIGATURE AE
-8FA9A2 0110 8FA9A2 U+0110 LATIN CAPITAL LETTER D WITH STROKE
-8FA9A4 0126 8FA9A4 U+0126 LATIN CAPITAL LETTER H WITH STROKE
-8FA9A6 0132 8FA9A6 U+0132 LATIN CAPITAL LIGATURE IJ
-8FA9A8 0141 8FA9A8 U+0141 LATIN CAPITAL LETTER L WITH STROKE
-8FA9A9 013F 8FA9A9 U+013F LATIN CAPITAL LETTER L WITH MIDDLE DOT
-8FA9AB 014A 8FA9AB U+014A LATIN CAPITAL LETTER ENG
-8FA9AC 00D8 8FA9AC U+00D8 LATIN CAPITAL LETTER O WITH STROKE
-8FA9AD 0152 8FA9AD U+0152 LATIN CAPITAL LIGATURE OE
-8FA9AF 0166 8FA9AF U+0166 LATIN CAPITAL LETTER T WITH STROKE
-8FA9B0 00DE 8FA9B0 U+00DE LATIN CAPITAL LETTER THORN
-8FA9C1 00E6 8FA9C1 U+00E6 LATIN SMALL LIGATURE AE
-8FA9C2 0111 8FA9C2 U+0111 LATIN SMALL LETTER D WITH STROKE
-8FA9C3 00F0 8FA9C3 U+00F0 LATIN SMALL LETTER ETH
-8FA9C4 0127 8FA9C4 U+0127 LATIN SMALL LETTER H WITH STROKE
-8FA9C5 0131 8FA9C5 U+0131 LATIN SMALL LETTER DOTLESS I
-8FA9C6 0133 8FA9C6 U+0133 LATIN SMALL LIGATURE IJ
-8FA9C7 0138 8FA9C7 U+0138 LATIN SMALL LETTER KRA
-8FA9C8 0142 8FA9C8 U+0142 LATIN SMALL LETTER L WITH STROKE
-8FA9C9 0140 8FA9C9 U+0140 LATIN SMALL LETTER L WITH MIDDLE DOT
-8FA9CA 0149 8FA9CA U+0149 LATIN SMALL LETTER N PRECEDED BY APOSTROPHE
-8FA9CB 014B 8FA9CB U+014B LATIN SMALL LETTER ENG
-8FA9CC 00F8 8FA9CC U+00F8 LATIN SMALL LETTER O WITH STROKE
-8FA9CD 0153 8FA9CD U+0153 LATIN SMALL LIGATURE OE
-8FA9CE 00DF 8FA9CE U+00DF LATIN SMALL LETTER SHARP S
-8FA9CF 0167 8FA9CF U+0167 LATIN SMALL LETTER T WITH STROKE
-8FA9D0 00FE 8FA9D0 U+00FE LATIN SMALL LETTER THORN
-8FAAA1 00C1 8FAAA1 U+00C1 LATIN CAPITAL LETTER A WITH ACUTE
-8FAAA2 00C0 8FAAA2 U+00C0 LATIN CAPITAL LETTER A WITH GRAVE
-8FAAA3 00C4 8FAAA3 U+00C4 LATIN CAPITAL LETTER A WITH DIAERESIS
-8FAAA4 00C2 8FAAA4 U+00C2 LATIN CAPITAL LETTER A WITH CIRCUMFLEX
-8FAAA5 0102 8FAAA5 U+0102 LATIN CAPITAL LETTER A WITH BREVE
-8FAAA6 01CD 8FAAA6 U+01CD LATIN CAPITAL LETTER A WITH CARON
-8FAAA7 0100 8FAAA7 U+0100 LATIN CAPITAL LETTER A WITH MACRON
-8FAAA8 0104 8FAAA8 U+0104 LATIN CAPITAL LETTER A WITH OGONEK
-8FAAA9 00C5 8FAAA9 U+00C5 LATIN CAPITAL LETTER A WITH RING ABOVE
-8FAAAA 00C3 8FAAAA U+00C3 LATIN CAPITAL LETTER A WITH TILDE
-8FAAAB 0106 8FAAAB U+0106 LATIN CAPITAL LETTER C WITH ACUTE
-8FAAAC 0108 8FAAAC U+0108 LATIN CAPITAL LETTER C WITH CIRCUMFLEX
-8FAAAD 010C 8FAAAD U+010C LATIN CAPITAL LETTER C WITH CARON
-8FAAAE 00C7 8FAAAE U+00C7 LATIN CAPITAL LETTER C WITH CEDILLA
-8FAAAF 010A 8FAAAF U+010A LATIN CAPITAL LETTER C WITH DOT ABOVE
-8FAAB0 010E 8FAAB0 U+010E LATIN CAPITAL LETTER D WITH CARON
-8FAAB1 00C9 8FAAB1 U+00C9 LATIN CAPITAL LETTER E WITH ACUTE
-8FAAB2 00C8 8FAAB2 U+00C8 LATIN CAPITAL LETTER E WITH GRAVE
-8FAAB3 00CB 8FAAB3 U+00CB LATIN CAPITAL LETTER E WITH DIAERESIS
-8FAAB4 00CA 8FAAB4 U+00CA LATIN CAPITAL LETTER E WITH CIRCUMFLEX
-8FAAB5 011A 8FAAB5 U+011A LATIN CAPITAL LETTER E WITH CARON
-8FAAB6 0116 8FAAB6 U+0116 LATIN CAPITAL LETTER E WITH DOT ABOVE
-8FAAB7 0112 8FAAB7 U+0112 LATIN CAPITAL LETTER E WITH MACRON
-8FAAB8 0118 8FAAB8 U+0118 LATIN CAPITAL LETTER E WITH OGONEK
-8FAABA 011C 8FAABA U+011C LATIN CAPITAL LETTER G WITH CIRCUMFLEX
-8FAABB 011E 8FAABB U+011E LATIN CAPITAL LETTER G WITH BREVE
-8FAABC 0122 8FAABC U+0122 LATIN CAPITAL LETTER G WITH CEDILLA
-8FAABD 0120 8FAABD U+0120 LATIN CAPITAL LETTER G WITH DOT ABOVE
-8FAABE 0124 8FAABE U+0124 LATIN CAPITAL LETTER H WITH CIRCUMFLEX
-8FAABF 00CD 8FAABF U+00CD LATIN CAPITAL LETTER I WITH ACUTE
-8FAAC0 00CC 8FAAC0 U+00CC LATIN CAPITAL LETTER I WITH GRAVE
-8FAAC1 00CF 8FAAC1 U+00CF LATIN CAPITAL LETTER I WITH DIAERESIS
-8FAAC2 00CE 8FAAC2 U+00CE LATIN CAPITAL LETTER I WITH CIRCUMFLEX
-8FAAC3 01CF 8FAAC3 U+01CF LATIN CAPITAL LETTER I WITH CARON
-8FAAC4 0130 8FAAC4 U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE
-8FAAC5 012A 8FAAC5 U+012A LATIN CAPITAL LETTER I WITH MACRON
-8FAAC6 012E 8FAAC6 U+012E LATIN CAPITAL LETTER I WITH OGONEK
-8FAAC7 0128 8FAAC7 U+0128 LATIN CAPITAL LETTER I WITH TILDE
-8FAAC8 0134 8FAAC8 U+0134 LATIN CAPITAL LETTER J WITH CIRCUMFLEX
-8FAAC9 0136 8FAAC9 U+0136 LATIN CAPITAL LETTER K WITH CEDILLA
-8FAACA 0139 8FAACA U+0139 LATIN CAPITAL LETTER L WITH ACUTE
-8FAACB 013D 8FAACB U+013D LATIN CAPITAL LETTER L WITH CARON
-8FAACC 013B 8FAACC U+013B LATIN CAPITAL LETTER L WITH CEDILLA
-8FAACD 0143 8FAACD U+0143 LATIN CAPITAL LETTER N WITH ACUTE
-8FAACE 0147 8FAACE U+0147 LATIN CAPITAL LETTER N WITH CARON
-8FAACF 0145 8FAACF U+0145 LATIN CAPITAL LETTER N WITH CEDILLA
-8FAAD0 00D1 8FAAD0 U+00D1 LATIN CAPITAL LETTER N WITH TILDE
-8FAAD1 00D3 8FAAD1 U+00D3 LATIN CAPITAL LETTER O WITH ACUTE
-8FAAD2 00D2 8FAAD2 U+00D2 LATIN CAPITAL LETTER O WITH GRAVE
-8FAAD3 00D6 8FAAD3 U+00D6 LATIN CAPITAL LETTER O WITH DIAERESIS
-8FAAD4 00D4 8FAAD4 U+00D4 LATIN CAPITAL LETTER O WITH CIRCUMFLEX
-8FAAD5 01D1 8FAAD5 U+01D1 LATIN CAPITAL LETTER O WITH CARON
-8FAAD6 0150 8FAAD6 U+0150 LATIN CAPITAL LETTER O WITH DOUBLE ACUTE
-8FAAD7 014C 8FAAD7 U+014C LATIN CAPITAL LETTER O WITH MACRON
-8FAAD8 00D5 8FAAD8 U+00D5 LATIN CAPITAL LETTER O WITH TILDE
-8FAAD9 0154 8FAAD9 U+0154 LATIN CAPITAL LETTER R WITH ACUTE
-8FAADA 0158 8FAADA U+0158 LATIN CAPITAL LETTER R WITH CARON
-8FAADB 0156 8FAADB U+0156 LATIN CAPITAL LETTER R WITH CEDILLA
-8FAADC 015A 8FAADC U+015A LATIN CAPITAL LETTER S WITH ACUTE
-8FAADD 015C 8FAADD U+015C LATIN CAPITAL LETTER S WITH CIRCUMFLEX
-8FAADE 0160 8FAADE U+0160 LATIN CAPITAL LETTER S WITH CARON
-8FAADF 015E 8FAADF U+015E LATIN CAPITAL LETTER S WITH CEDILLA
-8FAAE0 0164 8FAAE0 U+0164 LATIN CAPITAL LETTER T WITH CARON
-8FAAE1 0162 8FAAE1 U+0162 LATIN CAPITAL LETTER T WITH CEDILLA
-8FAAE2 00DA 8FAAE2 U+00DA LATIN CAPITAL LETTER U WITH ACUTE
-8FAAE3 00D9 8FAAE3 U+00D9 LATIN CAPITAL LETTER U WITH GRAVE
-8FAAE4 00DC 8FAAE4 U+00DC LATIN CAPITAL LETTER U WITH DIAERESIS
-8FAAE5 00DB 8FAAE5 U+00DB LATIN CAPITAL LETTER U WITH CIRCUMFLEX
-8FAAE6 016C 8FAAE6 U+016C LATIN CAPITAL LETTER U WITH BREVE
-8FAAE7 01D3 8FAAE7 U+01D3 LATIN CAPITAL LETTER U WITH CARON
-8FAAE8 0170 8FAAE8 U+0170 LATIN CAPITAL LETTER U WITH DOUBLE ACUTE
-8FAAE9 016A 8FAAE9 U+016A LATIN CAPITAL LETTER U WITH MACRON
-8FAAEA 0172 8FAAEA U+0172 LATIN CAPITAL LETTER U WITH OGONEK
-8FAAEB 016E 8FAAEB U+016E LATIN CAPITAL LETTER U WITH RING ABOVE
-8FAAEC 0168 8FAAEC U+0168 LATIN CAPITAL LETTER U WITH TILDE
-8FAAED 01D7 8FAAED U+01D7 LATIN CAPITAL LETTER U WITH DIAERESIS AND ACUTE
-8FAAEE 01DB 8FAAEE U+01DB LATIN CAPITAL LETTER U WITH DIAERESIS AND GRAVE
-8FAAEF 01D9 8FAAEF U+01D9 LATIN CAPITAL LETTER U WITH DIAERESIS AND CARON
-8FAAF0 01D5 8FAAF0 U+01D5 LATIN CAPITAL LETTER U WITH DIAERESIS AND MACRON
-8FAAF1 0174 8FAAF1 U+0174 LATIN CAPITAL LETTER W WITH CIRCUMFLEX
-8FAAF2 00DD 8FAAF2 U+00DD LATIN CAPITAL LETTER Y WITH ACUTE
-8FAAF3 0178 8FAAF3 U+0178 LATIN CAPITAL LETTER Y WITH DIAERESIS
-8FAAF4 0176 8FAAF4 U+0176 LATIN CAPITAL LETTER Y WITH CIRCUMFLEX
-8FAAF5 0179 8FAAF5 U+0179 LATIN CAPITAL LETTER Z WITH ACUTE
-8FAAF6 017D 8FAAF6 U+017D LATIN CAPITAL LETTER Z WITH CARON
-8FAAF7 017B 8FAAF7 U+017B LATIN CAPITAL LETTER Z WITH DOT ABOVE
-8FABA1 00E1 8FABA1 U+00E1 LATIN SMALL LETTER A WITH ACUTE
-8FABA2 00E0 8FABA2 U+00E0 LATIN SMALL LETTER A WITH GRAVE
-8FABA3 00E4 8FABA3 U+00E4 LATIN SMALL LETTER A WITH DIAERESIS
-8FABA4 00E2 8FABA4 U+00E2 LATIN SMALL LETTER A WITH CIRCUMFLEX
-8FABA5 0103 8FABA5 U+0103 LATIN SMALL LETTER A WITH BREVE
-8FABA6 01CE 8FABA6 U+01CE LATIN SMALL LETTER A WITH CARON
-8FABA7 0101 8FABA7 U+0101 LATIN SMALL LETTER A WITH MACRON
-8FABA8 0105 8FABA8 U+0105 LATIN SMALL LETTER A WITH OGONEK
-8FABA9 00E5 8FABA9 U+00E5 LATIN SMALL LETTER A WITH RING ABOVE
-8FABAA 00E3 8FABAA U+00E3 LATIN SMALL LETTER A WITH TILDE
-8FABAB 0107 8FABAB U+0107 LATIN SMALL LETTER C WITH ACUTE
-8FABAC 0109 8FABAC U+0109 LATIN SMALL LETTER C WITH CIRCUMFLEX
-8FABAD 010D 8FABAD U+010D LATIN SMALL LETTER C WITH CARON
-8FABAE 00E7 8FABAE U+00E7 LATIN SMALL LETTER C WITH CEDILLA
-8FABAF 010B 8FABAF U+010B LATIN SMALL LETTER C WITH DOT ABOVE
-8FABB0 010F 8FABB0 U+010F LATIN SMALL LETTER D WITH CARON
-8FABB1 00E9 8FABB1 U+00E9 LATIN SMALL LETTER E WITH ACUTE
-8FABB2 00E8 8FABB2 U+00E8 LATIN SMALL LETTER E WITH GRAVE
-8FABB3 00EB 8FABB3 U+00EB LATIN SMALL LETTER E WITH DIAERESIS
-8FABB4 00EA 8FABB4 U+00EA LATIN SMALL LETTER E WITH CIRCUMFLEX
-8FABB5 011B 8FABB5 U+011B LATIN SMALL LETTER E WITH CARON
-8FABB6 0117 8FABB6 U+0117 LATIN SMALL LETTER E WITH DOT ABOVE
-8FABB7 0113 8FABB7 U+0113 LATIN SMALL LETTER E WITH MACRON
-8FABB8 0119 8FABB8 U+0119 LATIN SMALL LETTER E WITH OGONEK
-8FABB9 01F5 8FABB9 U+01F5 LATIN SMALL LETTER G WITH ACUTE
-8FABBA 011D 8FABBA U+011D LATIN SMALL LETTER G WITH CIRCUMFLEX
-8FABBB 011F 8FABBB U+011F LATIN SMALL LETTER G WITH BREVE
-8FABBD 0121 8FABBD U+0121 LATIN SMALL LETTER G WITH DOT ABOVE
-8FABBE 0125 8FABBE U+0125 LATIN SMALL LETTER H WITH CIRCUMFLEX
-8FABBF 00ED 8FABBF U+00ED LATIN SMALL LETTER I WITH ACUTE
-8FABC0 00EC 8FABC0 U+00EC LATIN SMALL LETTER I WITH GRAVE
-8FABC1 00EF 8FABC1 U+00EF LATIN SMALL LETTER I WITH DIAERESIS
-8FABC2 00EE 8FABC2 U+00EE LATIN SMALL LETTER I WITH CIRCUMFLEX
-8FABC3 01D0 8FABC3 U+01D0 LATIN SMALL LETTER I WITH CARON
-8FABC5 012B 8FABC5 U+012B LATIN SMALL LETTER I WITH MACRON
-8FABC6 012F 8FABC6 U+012F LATIN SMALL LETTER I WITH OGONEK
-8FABC7 0129 8FABC7 U+0129 LATIN SMALL LETTER I WITH TILDE
-8FABC8 0135 8FABC8 U+0135 LATIN SMALL LETTER J WITH CIRCUMFLEX
-8FABC9 0137 8FABC9 U+0137 LATIN SMALL LETTER K WITH CEDILLA
-8FABCA 013A 8FABCA U+013A LATIN SMALL LETTER L WITH ACUTE
-8FABCB 013E 8FABCB U+013E LATIN SMALL LETTER L WITH CARON
-8FABCC 013C 8FABCC U+013C LATIN SMALL LETTER L WITH CEDILLA
-8FABCD 0144 8FABCD U+0144 LATIN SMALL LETTER N WITH ACUTE
-8FABCE 0148 8FABCE U+0148 LATIN SMALL LETTER N WITH CARON
-8FABCF 0146 8FABCF U+0146 LATIN SMALL LETTER N WITH CEDILLA
-8FABD0 00F1 8FABD0 U+00F1 LATIN SMALL LETTER N WITH TILDE
-8FABD1 00F3 8FABD1 U+00F3 LATIN SMALL LETTER O WITH ACUTE
-8FABD2 00F2 8FABD2 U+00F2 LATIN SMALL LETTER O WITH GRAVE
-8FABD3 00F6 8FABD3 U+00F6 LATIN SMALL LETTER O WITH DIAERESIS
-8FABD4 00F4 8FABD4 U+00F4 LATIN SMALL LETTER O WITH CIRCUMFLEX
-8FABD5 01D2 8FABD5 U+01D2 LATIN SMALL LETTER O WITH CARON
-8FABD6 0151 8FABD6 U+0151 LATIN SMALL LETTER O WITH DOUBLE ACUTE
-8FABD7 014D 8FABD7 U+014D LATIN SMALL LETTER O WITH MACRON
-8FABD8 00F5 8FABD8 U+00F5 LATIN SMALL LETTER O WITH TILDE
-8FABD9 0155 8FABD9 U+0155 LATIN SMALL LETTER R WITH ACUTE
-8FABDA 0159 8FABDA U+0159 LATIN SMALL LETTER R WITH CARON
-8FABDB 0157 8FABDB U+0157 LATIN SMALL LETTER R WITH CEDILLA
-8FABDC 015B 8FABDC U+015B LATIN SMALL LETTER S WITH ACUTE
-8FABDD 015D 8FABDD U+015D LATIN SMALL LETTER S WITH CIRCUMFLEX
-8FABDE 0161 8FABDE U+0161 LATIN SMALL LETTER S WITH CARON
-8FABDF 015F 8FABDF U+015F LATIN SMALL LETTER S WITH CEDILLA
-8FABE0 0165 8FABE0 U+0165 LATIN SMALL LETTER T WITH CARON
-8FABE1 0163 8FABE1 U+0163 LATIN SMALL LETTER T WITH CEDILLA
-8FABE2 00FA 8FABE2 U+00FA LATIN SMALL LETTER U WITH ACUTE
-8FABE3 00F9 8FABE3 U+00F9 LATIN SMALL LETTER U WITH GRAVE
-8FABE4 00FC 8FABE4 U+00FC LATIN SMALL LETTER U WITH DIAERESIS
-8FABE5 00FB 8FABE5 U+00FB LATIN SMALL LETTER U WITH CIRCUMFLEX
-8FABE6 016D 8FABE6 U+016D LATIN SMALL LETTER U WITH BREVE
-8FABE7 01D4 8FABE7 U+01D4 LATIN SMALL LETTER U WITH CARON
-8FABE8 0171 8FABE8 U+0171 LATIN SMALL LETTER U WITH DOUBLE ACUTE
-8FABE9 016B 8FABE9 U+016B LATIN SMALL LETTER U WITH MACRON
-8FABEA 0173 8FABEA U+0173 LATIN SMALL LETTER U WITH OGONEK
-8FABEB 016F 8FABEB U+016F LATIN SMALL LETTER U WITH RING ABOVE
-8FABEC 0169 8FABEC U+0169 LATIN SMALL LETTER U WITH TILDE
-8FABED 01D8 8FABED U+01D8 LATIN SMALL LETTER U WITH DIAERESIS AND ACUTE
-8FABEE 01DC 8FABEE U+01DC LATIN SMALL LETTER U WITH DIAERESIS AND GRAVE
-8FABEF 01DA 8FABEF U+01DA LATIN SMALL LETTER U WITH DIAERESIS AND CARON
-8FABF0 01D6 8FABF0 U+01D6 LATIN SMALL LETTER U WITH DIAERESIS AND MACRON
-8FABF1 0175 8FABF1 U+0175 LATIN SMALL LETTER W WITH CIRCUMFLEX
-8FABF2 00FD 8FABF2 U+00FD LATIN SMALL LETTER Y WITH ACUTE
-8FABF3 00FF 8FABF3 U+00FF LATIN SMALL LETTER Y WITH DIAERESIS
-8FABF4 0177 8FABF4 U+0177 LATIN SMALL LETTER Y WITH CIRCUMFLEX
-8FABF5 017A 8FABF5 U+017A LATIN SMALL LETTER Z WITH ACUTE
-8FABF6 017E 8FABF6 U+017E LATIN SMALL LETTER Z WITH CARON
-8FABF7 017C 8FABF7 U+017C LATIN SMALL LETTER Z WITH DOT ABOVE
-8FB0A1 4E02 8FB0A1 <CJK>
-8FB0A2 4E04 8FB0A2 <CJK>
-8FB0A3 4E05 8FB0A3 <CJK>
-8FB0A4 4E0C 8FB0A4 <CJK>
-8FB0A5 4E12 8FB0A5 <CJK>
-8FB0A6 4E1F 8FB0A6 <CJK>
-8FB0A7 4E23 8FB0A7 <CJK>
-8FB0A8 4E24 8FB0A8 <CJK>
-8FB0A9 4E28 8FB0A9 <CJK>
-8FB0AA 4E2B 8FB0AA <CJK>
-8FB0AB 4E2E 8FB0AB <CJK>
-8FB0AC 4E2F 8FB0AC <CJK>
-8FB0AD 4E30 8FB0AD <CJK>
-8FB0AE 4E35 8FB0AE <CJK>
-8FB0AF 4E40 8FB0AF <CJK>
-8FB0B0 4E41 8FB0B0 <CJK>
-8FB0B1 4E44 8FB0B1 <CJK>
-8FB0B2 4E47 8FB0B2 <CJK>
-8FB0B3 4E51 8FB0B3 <CJK>
-8FB0B4 4E5A 8FB0B4 <CJK>
-8FB0B5 4E5C 8FB0B5 <CJK>
-8FB0B6 4E63 8FB0B6 <CJK>
-8FB0B7 4E68 8FB0B7 <CJK>
-8FB0B8 4E69 8FB0B8 <CJK>
-8FB0B9 4E74 8FB0B9 <CJK>
-8FB0BA 4E75 8FB0BA <CJK>
-8FB0BB 4E79 8FB0BB <CJK>
-8FB0BC 4E7F 8FB0BC <CJK>
-8FB0BD 4E8D 8FB0BD <CJK>
-8FB0BE 4E96 8FB0BE <CJK>
-8FB0BF 4E97 8FB0BF <CJK>
-8FB0C0 4E9D 8FB0C0 <CJK>
-8FB0C1 4EAF 8FB0C1 <CJK>
-8FB0C2 4EB9 8FB0C2 <CJK>
-8FB0C3 4EC3 8FB0C3 <CJK>
-8FB0C4 4ED0 8FB0C4 <CJK>
-8FB0C5 4EDA 8FB0C5 <CJK>
-8FB0C6 4EDB 8FB0C6 <CJK>
-8FB0C7 4EE0 8FB0C7 <CJK>
-8FB0C8 4EE1 8FB0C8 <CJK>
-8FB0C9 4EE2 8FB0C9 <CJK>
-8FB0CA 4EE8 8FB0CA <CJK>
-8FB0CB 4EEF 8FB0CB <CJK>
-8FB0CC 4EF1 8FB0CC <CJK>
-8FB0CD 4EF3 8FB0CD <CJK>
-8FB0CE 4EF5 8FB0CE <CJK>
-8FB0CF 4EFD 8FB0CF <CJK>
-8FB0D0 4EFE 8FB0D0 <CJK>
-8FB0D1 4EFF 8FB0D1 <CJK>
-8FB0D2 4F00 8FB0D2 <CJK>
-8FB0D3 4F02 8FB0D3 <CJK>
-8FB0D4 4F03 8FB0D4 <CJK>
-8FB0D5 4F08 8FB0D5 <CJK>
-8FB0D6 4F0B 8FB0D6 <CJK>
-8FB0D7 4F0C 8FB0D7 <CJK>
-8FB0D8 4F12 8FB0D8 <CJK>
-8FB0D9 4F15 8FB0D9 <CJK>
-8FB0DA 4F16 8FB0DA <CJK>
-8FB0DB 4F17 8FB0DB <CJK>
-8FB0DC 4F19 8FB0DC <CJK>
-8FB0DD 4F2E 8FB0DD <CJK>
-8FB0DE 4F31 8FB0DE <CJK>
-8FB0DF 4F60 8FB0DF <CJK>
-8FB0E0 4F33 8FB0E0 <CJK>
-8FB0E1 4F35 8FB0E1 <CJK>
-8FB0E2 4F37 8FB0E2 <CJK>
-8FB0E3 4F39 8FB0E3 <CJK>
-8FB0E4 4F3B 8FB0E4 <CJK>
-8FB0E5 4F3E 8FB0E5 <CJK>
-8FB0E6 4F40 8FB0E6 <CJK>
-8FB0E7 4F42 8FB0E7 <CJK>
-8FB0E8 4F48 8FB0E8 <CJK>
-8FB0E9 4F49 8FB0E9 <CJK>
-8FB0EA 4F4B 8FB0EA <CJK>
-8FB0EB 4F4C 8FB0EB <CJK>
-8FB0EC 4F52 8FB0EC <CJK>
-8FB0ED 4F54 8FB0ED <CJK>
-8FB0EE 4F56 8FB0EE <CJK>
-8FB0EF 4F58 8FB0EF <CJK>
-8FB0F0 4F5F 8FB0F0 <CJK>
-8FB0F1 4F63 8FB0F1 <CJK>
-8FB0F2 4F6A 8FB0F2 <CJK>
-8FB0F3 4F6C 8FB0F3 <CJK>
-8FB0F4 4F6E 8FB0F4 <CJK>
-8FB0F5 4F71 8FB0F5 <CJK>
-8FB0F6 4F77 8FB0F6 <CJK>
-8FB0F7 4F78 8FB0F7 <CJK>
-8FB0F8 4F79 8FB0F8 <CJK>
-8FB0F9 4F7A 8FB0F9 <CJK>
-8FB0FA 4F7D 8FB0FA <CJK>
-8FB0FB 4F7E 8FB0FB <CJK>
-8FB0FC 4F81 8FB0FC <CJK>
-8FB0FD 4F82 8FB0FD <CJK>
-8FB0FE 4F84 8FB0FE <CJK>
-8FB1A1 4F85 8FB1A1 <CJK>
-8FB1A2 4F89 8FB1A2 <CJK>
-8FB1A3 4F8A 8FB1A3 <CJK>
-8FB1A4 4F8C 8FB1A4 <CJK>
-8FB1A5 4F8E 8FB1A5 <CJK>
-8FB1A6 4F90 8FB1A6 <CJK>
-8FB1A7 4F92 8FB1A7 <CJK>
-8FB1A8 4F93 8FB1A8 <CJK>
-8FB1A9 4F94 8FB1A9 <CJK>
-8FB1AA 4F97 8FB1AA <CJK>
-8FB1AB 4F99 8FB1AB <CJK>
-8FB1AC 4F9A 8FB1AC <CJK>
-8FB1AD 4F9E 8FB1AD <CJK>
-8FB1AE 4F9F 8FB1AE <CJK>
-8FB1AF 4FB2 8FB1AF <CJK>
-8FB1B0 4FB7 8FB1B0 <CJK>
-8FB1B1 4FB9 8FB1B1 <CJK>
-8FB1B2 4FBB 8FB1B2 <CJK>
-8FB1B3 4FBC 8FB1B3 <CJK>
-8FB1B4 4FBD 8FB1B4 <CJK>
-8FB1B5 4FBE 8FB1B5 <CJK>
-8FB1B6 4FC0 8FB1B6 <CJK>
-8FB1B7 4FC1 8FB1B7 <CJK>
-8FB1B8 4FC5 8FB1B8 <CJK>
-8FB1B9 4FC6 8FB1B9 <CJK>
-8FB1BA 4FC8 8FB1BA <CJK>
-8FB1BB 4FC9 8FB1BB <CJK>
-8FB1BC 4FCB 8FB1BC <CJK>
-8FB1BD 4FCC 8FB1BD <CJK>
-8FB1BE 4FCD 8FB1BE <CJK>
-8FB1BF 4FCF 8FB1BF <CJK>
-8FB1C0 4FD2 8FB1C0 <CJK>
-8FB1C1 4FDC 8FB1C1 <CJK>
-8FB1C2 4FE0 8FB1C2 <CJK>
-8FB1C3 4FE2 8FB1C3 <CJK>
-8FB1C4 4FF0 8FB1C4 <CJK>
-8FB1C5 4FF2 8FB1C5 <CJK>
-8FB1C6 4FFC 8FB1C6 <CJK>
-8FB1C7 4FFD 8FB1C7 <CJK>
-8FB1C8 4FFF 8FB1C8 <CJK>
-8FB1C9 5000 8FB1C9 <CJK>
-8FB1CA 5001 8FB1CA <CJK>
-8FB1CB 5004 8FB1CB <CJK>
-8FB1CC 5007 8FB1CC <CJK>
-8FB1CD 500A 8FB1CD <CJK>
-8FB1CE 500C 8FB1CE <CJK>
-8FB1CF 500E 8FB1CF <CJK>
-8FB1D0 5010 8FB1D0 <CJK>
-8FB1D1 5013 8FB1D1 <CJK>
-8FB1D2 5017 8FB1D2 <CJK>
-8FB1D3 5018 8FB1D3 <CJK>
-8FB1D4 501B 8FB1D4 <CJK>
-8FB1D5 501C 8FB1D5 <CJK>
-8FB1D6 501D 8FB1D6 <CJK>
-8FB1D7 501E 8FB1D7 <CJK>
-8FB1D8 5022 8FB1D8 <CJK>
-8FB1D9 5027 8FB1D9 <CJK>
-8FB1DA 502E 8FB1DA <CJK>
-8FB1DB 5030 8FB1DB <CJK>
-8FB1DC 5032 8FB1DC <CJK>
-8FB1DD 5033 8FB1DD <CJK>
-8FB1DE 5035 8FB1DE <CJK>
-8FB1DF 5040 8FB1DF <CJK>
-8FB1E0 5041 8FB1E0 <CJK>
-8FB1E1 5042 8FB1E1 <CJK>
-8FB1E2 5045 8FB1E2 <CJK>
-8FB1E3 5046 8FB1E3 <CJK>
-8FB1E4 504A 8FB1E4 <CJK>
-8FB1E5 504C 8FB1E5 <CJK>
-8FB1E6 504E 8FB1E6 <CJK>
-8FB1E7 5051 8FB1E7 <CJK>
-8FB1E8 5052 8FB1E8 <CJK>
-8FB1E9 5053 8FB1E9 <CJK>
-8FB1EA 5057 8FB1EA <CJK>
-8FB1EB 5059 8FB1EB <CJK>
-8FB1EC 505F 8FB1EC <CJK>
-8FB1ED 5060 8FB1ED <CJK>
-8FB1EE 5062 8FB1EE <CJK>
-8FB1EF 5063 8FB1EF <CJK>
-8FB1F0 5066 8FB1F0 <CJK>
-8FB1F1 5067 8FB1F1 <CJK>
-8FB1F2 506A 8FB1F2 <CJK>
-8FB1F3 506D 8FB1F3 <CJK>
-8FB1F4 5070 8FB1F4 <CJK>
-8FB1F5 5071 8FB1F5 <CJK>
-8FB1F6 503B 8FB1F6 <CJK>
-8FB1F7 5081 8FB1F7 <CJK>
-8FB1F8 5083 8FB1F8 <CJK>
-8FB1F9 5084 8FB1F9 <CJK>
-8FB1FA 5086 8FB1FA <CJK>
-8FB1FB 508A 8FB1FB <CJK>
-8FB1FC 508E 8FB1FC <CJK>
-8FB1FD 508F 8FB1FD <CJK>
-8FB1FE 5090 8FB1FE <CJK>
-8FB2A1 5092 8FB2A1 <CJK>
-8FB2A2 5093 8FB2A2 <CJK>
-8FB2A3 5094 8FB2A3 <CJK>
-8FB2A4 5096 8FB2A4 <CJK>
-8FB2A5 509B 8FB2A5 <CJK>
-8FB2A6 509C 8FB2A6 <CJK>
-8FB2A7 509E 8FB2A7 <CJK>
-8FB2A8 509F 8FB2A8 <CJK>
-8FB2A9 50A0 8FB2A9 <CJK>
-8FB2AA 50A1 8FB2AA <CJK>
-8FB2AB 50A2 8FB2AB <CJK>
-8FB2AC 50AA 8FB2AC <CJK>
-8FB2AD 50AF 8FB2AD <CJK>
-8FB2AE 50B0 8FB2AE <CJK>
-8FB2AF 50B9 8FB2AF <CJK>
-8FB2B0 50BA 8FB2B0 <CJK>
-8FB2B1 50BD 8FB2B1 <CJK>
-8FB2B2 50C0 8FB2B2 <CJK>
-8FB2B3 50C3 8FB2B3 <CJK>
-8FB2B4 50C4 8FB2B4 <CJK>
-8FB2B5 50C7 8FB2B5 <CJK>
-8FB2B6 50CC 8FB2B6 <CJK>
-8FB2B7 50CE 8FB2B7 <CJK>
-8FB2B8 50D0 8FB2B8 <CJK>
-8FB2B9 50D3 8FB2B9 <CJK>
-8FB2BA 50D4 8FB2BA <CJK>
-8FB2BB 50D8 8FB2BB <CJK>
-8FB2BC 50DC 8FB2BC <CJK>
-8FB2BD 50DD 8FB2BD <CJK>
-8FB2BE 50DF 8FB2BE <CJK>
-8FB2BF 50E2 8FB2BF <CJK>
-8FB2C0 50E4 8FB2C0 <CJK>
-8FB2C1 50E6 8FB2C1 <CJK>
-8FB2C2 50E8 8FB2C2 <CJK>
-8FB2C3 50E9 8FB2C3 <CJK>
-8FB2C4 50EF 8FB2C4 <CJK>
-8FB2C5 50F1 8FB2C5 <CJK>
-8FB2C6 50F6 8FB2C6 <CJK>
-8FB2C7 50FA 8FB2C7 <CJK>
-8FB2C8 50FE 8FB2C8 <CJK>
-8FB2C9 5103 8FB2C9 <CJK>
-8FB2CA 5106 8FB2CA <CJK>
-8FB2CB 5107 8FB2CB <CJK>
-8FB2CC 5108 8FB2CC <CJK>
-8FB2CD 510B 8FB2CD <CJK>
-8FB2CE 510C 8FB2CE <CJK>
-8FB2CF 510D 8FB2CF <CJK>
-8FB2D0 510E 8FB2D0 <CJK>
-8FB2D1 50F2 8FB2D1 <CJK>
-8FB2D2 5110 8FB2D2 <CJK>
-8FB2D3 5117 8FB2D3 <CJK>
-8FB2D4 5119 8FB2D4 <CJK>
-8FB2D5 511B 8FB2D5 <CJK>
-8FB2D6 511C 8FB2D6 <CJK>
-8FB2D7 511D 8FB2D7 <CJK>
-8FB2D8 511E 8FB2D8 <CJK>
-8FB2D9 5123 8FB2D9 <CJK>
-8FB2DA 5127 8FB2DA <CJK>
-8FB2DB 5128 8FB2DB <CJK>
-8FB2DC 512C 8FB2DC <CJK>
-8FB2DD 512D 8FB2DD <CJK>
-8FB2DE 512F 8FB2DE <CJK>
-8FB2DF 5131 8FB2DF <CJK>
-8FB2E0 5133 8FB2E0 <CJK>
-8FB2E1 5134 8FB2E1 <CJK>
-8FB2E2 5135 8FB2E2 <CJK>
-8FB2E3 5138 8FB2E3 <CJK>
-8FB2E4 5139 8FB2E4 <CJK>
-8FB2E5 5142 8FB2E5 <CJK>
-8FB2E6 514A 8FB2E6 <CJK>
-8FB2E7 514F 8FB2E7 <CJK>
-8FB2E8 5153 8FB2E8 <CJK>
-8FB2E9 5155 8FB2E9 <CJK>
-8FB2EA 5157 8FB2EA <CJK>
-8FB2EB 5158 8FB2EB <CJK>
-8FB2EC 515F 8FB2EC <CJK>
-8FB2ED 5164 8FB2ED <CJK>
-8FB2EE 5166 8FB2EE <CJK>
-8FB2EF 517E 8FB2EF <CJK>
-8FB2F0 5183 8FB2F0 <CJK>
-8FB2F1 5184 8FB2F1 <CJK>
-8FB2F2 518B 8FB2F2 <CJK>
-8FB2F3 518E 8FB2F3 <CJK>
-8FB2F4 5198 8FB2F4 <CJK>
-8FB2F5 519D 8FB2F5 <CJK>
-8FB2F6 51A1 8FB2F6 <CJK>
-8FB2F7 51A3 8FB2F7 <CJK>
-8FB2F8 51AD 8FB2F8 <CJK>
-8FB2F9 51B8 8FB2F9 <CJK>
-8FB2FA 51BA 8FB2FA <CJK>
-8FB2FB 51BC 8FB2FB <CJK>
-8FB2FC 51BE 8FB2FC <CJK>
-8FB2FD 51BF 8FB2FD <CJK>
-8FB2FE 51C2 8FB2FE <CJK>
-8FB3A1 51C8 8FB3A1 <CJK>
-8FB3A2 51CF 8FB3A2 <CJK>
-8FB3A3 51D1 8FB3A3 <CJK>
-8FB3A4 51D2 8FB3A4 <CJK>
-8FB3A5 51D3 8FB3A5 <CJK>
-8FB3A6 51D5 8FB3A6 <CJK>
-8FB3A7 51D8 8FB3A7 <CJK>
-8FB3A8 51DE 8FB3A8 <CJK>
-8FB3A9 51E2 8FB3A9 <CJK>
-8FB3AA 51E5 8FB3AA <CJK>
-8FB3AB 51EE 8FB3AB <CJK>
-8FB3AC 51F2 8FB3AC <CJK>
-8FB3AD 51F3 8FB3AD <CJK>
-8FB3AE 51F4 8FB3AE <CJK>
-8FB3AF 51F7 8FB3AF <CJK>
-8FB3B0 5201 8FB3B0 <CJK>
-8FB3B1 5202 8FB3B1 <CJK>
-8FB3B2 5205 8FB3B2 <CJK>
-8FB3B3 5212 8FB3B3 <CJK>
-8FB3B4 5213 8FB3B4 <CJK>
-8FB3B5 5215 8FB3B5 <CJK>
-8FB3B6 5216 8FB3B6 <CJK>
-8FB3B7 5218 8FB3B7 <CJK>
-8FB3B8 5222 8FB3B8 <CJK>
-8FB3B9 5228 8FB3B9 <CJK>
-8FB3BA 5231 8FB3BA <CJK>
-8FB3BB 5232 8FB3BB <CJK>
-8FB3BC 5235 8FB3BC <CJK>
-8FB3BD 523C 8FB3BD <CJK>
-8FB3BE 5245 8FB3BE <CJK>
-8FB3BF 5249 8FB3BF <CJK>
-8FB3C0 5255 8FB3C0 <CJK>
-8FB3C1 5257 8FB3C1 <CJK>
-8FB3C2 5258 8FB3C2 <CJK>
-8FB3C3 525A 8FB3C3 <CJK>
-8FB3C4 525C 8FB3C4 <CJK>
-8FB3C5 525F 8FB3C5 <CJK>
-8FB3C6 5260 8FB3C6 <CJK>
-8FB3C7 5261 8FB3C7 <CJK>
-8FB3C8 5266 8FB3C8 <CJK>
-8FB3C9 526E 8FB3C9 <CJK>
-8FB3CA 5277 8FB3CA <CJK>
-8FB3CB 5278 8FB3CB <CJK>
-8FB3CC 5279 8FB3CC <CJK>
-8FB3CD 5280 8FB3CD <CJK>
-8FB3CE 5282 8FB3CE <CJK>
-8FB3CF 5285 8FB3CF <CJK>
-8FB3D0 528A 8FB3D0 <CJK>
-8FB3D1 528C 8FB3D1 <CJK>
-8FB3D2 5293 8FB3D2 <CJK>
-8FB3D3 5295 8FB3D3 <CJK>
-8FB3D4 5296 8FB3D4 <CJK>
-8FB3D5 5297 8FB3D5 <CJK>
-8FB3D6 5298 8FB3D6 <CJK>
-8FB3D7 529A 8FB3D7 <CJK>
-8FB3D8 529C 8FB3D8 <CJK>
-8FB3D9 52A4 8FB3D9 <CJK>
-8FB3DA 52A5 8FB3DA <CJK>
-8FB3DB 52A6 8FB3DB <CJK>
-8FB3DC 52A7 8FB3DC <CJK>
-8FB3DD 52AF 8FB3DD <CJK>
-8FB3DE 52B0 8FB3DE <CJK>
-8FB3DF 52B6 8FB3DF <CJK>
-8FB3E0 52B7 8FB3E0 <CJK>
-8FB3E1 52B8 8FB3E1 <CJK>
-8FB3E2 52BA 8FB3E2 <CJK>
-8FB3E3 52BB 8FB3E3 <CJK>
-8FB3E4 52BD 8FB3E4 <CJK>
-8FB3E5 52C0 8FB3E5 <CJK>
-8FB3E6 52C4 8FB3E6 <CJK>
-8FB3E7 52C6 8FB3E7 <CJK>
-8FB3E8 52C8 8FB3E8 <CJK>
-8FB3E9 52CC 8FB3E9 <CJK>
-8FB3EA 52CF 8FB3EA <CJK>
-8FB3EB 52D1 8FB3EB <CJK>
-8FB3EC 52D4 8FB3EC <CJK>
-8FB3ED 52D6 8FB3ED <CJK>
-8FB3EE 52DB 8FB3EE <CJK>
-8FB3EF 52DC 8FB3EF <CJK>
-8FB3F0 52E1 8FB3F0 <CJK>
-8FB3F1 52E5 8FB3F1 <CJK>
-8FB3F2 52E8 8FB3F2 <CJK>
-8FB3F3 52E9 8FB3F3 <CJK>
-8FB3F4 52EA 8FB3F4 <CJK>
-8FB3F5 52EC 8FB3F5 <CJK>
-8FB3F6 52F0 8FB3F6 <CJK>
-8FB3F7 52F1 8FB3F7 <CJK>
-8FB3F8 52F4 8FB3F8 <CJK>
-8FB3F9 52F6 8FB3F9 <CJK>
-8FB3FA 52F7 8FB3FA <CJK>
-8FB3FB 5300 8FB3FB <CJK>
-8FB3FC 5303 8FB3FC <CJK>
-8FB3FD 530A 8FB3FD <CJK>
-8FB3FE 530B 8FB3FE <CJK>
-8FB4A1 530C 8FB4A1 <CJK>
-8FB4A2 5311 8FB4A2 <CJK>
-8FB4A3 5313 8FB4A3 <CJK>
-8FB4A4 5318 8FB4A4 <CJK>
-8FB4A5 531B 8FB4A5 <CJK>
-8FB4A6 531C 8FB4A6 <CJK>
-8FB4A7 531E 8FB4A7 <CJK>
-8FB4A8 531F 8FB4A8 <CJK>
-8FB4A9 5325 8FB4A9 <CJK>
-8FB4AA 5327 8FB4AA <CJK>
-8FB4AB 5328 8FB4AB <CJK>
-8FB4AC 5329 8FB4AC <CJK>
-8FB4AD 532B 8FB4AD <CJK>
-8FB4AE 532C 8FB4AE <CJK>
-8FB4AF 532D 8FB4AF <CJK>
-8FB4B0 5330 8FB4B0 <CJK>
-8FB4B1 5332 8FB4B1 <CJK>
-8FB4B2 5335 8FB4B2 <CJK>
-8FB4B3 533C 8FB4B3 <CJK>
-8FB4B4 533D 8FB4B4 <CJK>
-8FB4B5 533E 8FB4B5 <CJK>
-8FB4B6 5342 8FB4B6 <CJK>
-8FB4B7 534C 8FB4B7 <CJK>
-8FB4B8 534B 8FB4B8 <CJK>
-8FB4B9 5359 8FB4B9 <CJK>
-8FB4BA 535B 8FB4BA <CJK>
-8FB4BB 5361 8FB4BB <CJK>
-8FB4BC 5363 8FB4BC <CJK>
-8FB4BD 5365 8FB4BD <CJK>
-8FB4BE 536C 8FB4BE <CJK>
-8FB4BF 536D 8FB4BF <CJK>
-8FB4C0 5372 8FB4C0 <CJK>
-8FB4C1 5379 8FB4C1 <CJK>
-8FB4C2 537E 8FB4C2 <CJK>
-8FB4C3 5383 8FB4C3 <CJK>
-8FB4C4 5387 8FB4C4 <CJK>
-8FB4C5 5388 8FB4C5 <CJK>
-8FB4C6 538E 8FB4C6 <CJK>
-8FB4C7 5393 8FB4C7 <CJK>
-8FB4C8 5394 8FB4C8 <CJK>
-8FB4C9 5399 8FB4C9 <CJK>
-8FB4CA 539D 8FB4CA <CJK>
-8FB4CB 53A1 8FB4CB <CJK>
-8FB4CC 53A4 8FB4CC <CJK>
-8FB4CD 53AA 8FB4CD <CJK>
-8FB4CE 53AB 8FB4CE <CJK>
-8FB4CF 53AF 8FB4CF <CJK>
-8FB4D0 53B2 8FB4D0 <CJK>
-8FB4D1 53B4 8FB4D1 <CJK>
-8FB4D2 53B5 8FB4D2 <CJK>
-8FB4D3 53B7 8FB4D3 <CJK>
-8FB4D4 53B8 8FB4D4 <CJK>
-8FB4D5 53BA 8FB4D5 <CJK>
-8FB4D6 53BD 8FB4D6 <CJK>
-8FB4D7 53C0 8FB4D7 <CJK>
-8FB4D8 53C5 8FB4D8 <CJK>
-8FB4D9 53CF 8FB4D9 <CJK>
-8FB4DA 53D2 8FB4DA <CJK>
-8FB4DB 53D3 8FB4DB <CJK>
-8FB4DC 53D5 8FB4DC <CJK>
-8FB4DD 53DA 8FB4DD <CJK>
-8FB4DE 53DD 8FB4DE <CJK>
-8FB4DF 53DE 8FB4DF <CJK>
-8FB4E0 53E0 8FB4E0 <CJK>
-8FB4E1 53E6 8FB4E1 <CJK>
-8FB4E2 53E7 8FB4E2 <CJK>
-8FB4E3 53F5 8FB4E3 <CJK>
-8FB4E4 5402 8FB4E4 <CJK>
-8FB4E5 5413 8FB4E5 <CJK>
-8FB4E6 541A 8FB4E6 <CJK>
-8FB4E7 5421 8FB4E7 <CJK>
-8FB4E8 5427 8FB4E8 <CJK>
-8FB4E9 5428 8FB4E9 <CJK>
-8FB4EA 542A 8FB4EA <CJK>
-8FB4EB 542F 8FB4EB <CJK>
-8FB4EC 5431 8FB4EC <CJK>
-8FB4ED 5434 8FB4ED <CJK>
-8FB4EE 5435 8FB4EE <CJK>
-8FB4EF 5443 8FB4EF <CJK>
-8FB4F0 5444 8FB4F0 <CJK>
-8FB4F1 5447 8FB4F1 <CJK>
-8FB4F2 544D 8FB4F2 <CJK>
-8FB4F3 544F 8FB4F3 <CJK>
-8FB4F4 545E 8FB4F4 <CJK>
-8FB4F5 5462 8FB4F5 <CJK>
-8FB4F6 5464 8FB4F6 <CJK>
-8FB4F7 5466 8FB4F7 <CJK>
-8FB4F8 5467 8FB4F8 <CJK>
-8FB4F9 5469 8FB4F9 <CJK>
-8FB4FA 546B 8FB4FA <CJK>
-8FB4FB 546D 8FB4FB <CJK>
-8FB4FC 546E 8FB4FC <CJK>
-8FB4FD 5474 8FB4FD <CJK>
-8FB4FE 547F 8FB4FE <CJK>
-8FB5A1 5481 8FB5A1 <CJK>
-8FB5A2 5483 8FB5A2 <CJK>
-8FB5A3 5485 8FB5A3 <CJK>
-8FB5A4 5488 8FB5A4 <CJK>
-8FB5A5 5489 8FB5A5 <CJK>
-8FB5A6 548D 8FB5A6 <CJK>
-8FB5A7 5491 8FB5A7 <CJK>
-8FB5A8 5495 8FB5A8 <CJK>
-8FB5A9 5496 8FB5A9 <CJK>
-8FB5AA 549C 8FB5AA <CJK>
-8FB5AB 549F 8FB5AB <CJK>
-8FB5AC 54A1 8FB5AC <CJK>
-8FB5AD 54A6 8FB5AD <CJK>
-8FB5AE 54A7 8FB5AE <CJK>
-8FB5AF 54A9 8FB5AF <CJK>
-8FB5B0 54AA 8FB5B0 <CJK>
-8FB5B1 54AD 8FB5B1 <CJK>
-8FB5B2 54AE 8FB5B2 <CJK>
-8FB5B3 54B1 8FB5B3 <CJK>
-8FB5B4 54B7 8FB5B4 <CJK>
-8FB5B5 54B9 8FB5B5 <CJK>
-8FB5B6 54BA 8FB5B6 <CJK>
-8FB5B7 54BB 8FB5B7 <CJK>
-8FB5B8 54BF 8FB5B8 <CJK>
-8FB5B9 54C6 8FB5B9 <CJK>
-8FB5BA 54CA 8FB5BA <CJK>
-8FB5BB 54CD 8FB5BB <CJK>
-8FB5BC 54CE 8FB5BC <CJK>
-8FB5BD 54E0 8FB5BD <CJK>
-8FB5BE 54EA 8FB5BE <CJK>
-8FB5BF 54EC 8FB5BF <CJK>
-8FB5C0 54EF 8FB5C0 <CJK>
-8FB5C1 54F6 8FB5C1 <CJK>
-8FB5C2 54FC 8FB5C2 <CJK>
-8FB5C3 54FE 8FB5C3 <CJK>
-8FB5C4 54FF 8FB5C4 <CJK>
-8FB5C5 5500 8FB5C5 <CJK>
-8FB5C6 5501 8FB5C6 <CJK>
-8FB5C7 5505 8FB5C7 <CJK>
-8FB5C8 5508 8FB5C8 <CJK>
-8FB5C9 5509 8FB5C9 <CJK>
-8FB5CA 550C 8FB5CA <CJK>
-8FB5CB 550D 8FB5CB <CJK>
-8FB5CC 550E 8FB5CC <CJK>
-8FB5CD 5515 8FB5CD <CJK>
-8FB5CE 552A 8FB5CE <CJK>
-8FB5CF 552B 8FB5CF <CJK>
-8FB5D0 5532 8FB5D0 <CJK>
-8FB5D1 5535 8FB5D1 <CJK>
-8FB5D2 5536 8FB5D2 <CJK>
-8FB5D3 553B 8FB5D3 <CJK>
-8FB5D4 553C 8FB5D4 <CJK>
-8FB5D5 553D 8FB5D5 <CJK>
-8FB5D6 5541 8FB5D6 <CJK>
-8FB5D7 5547 8FB5D7 <CJK>
-8FB5D8 5549 8FB5D8 <CJK>
-8FB5D9 554A 8FB5D9 <CJK>
-8FB5DA 554D 8FB5DA <CJK>
-8FB5DB 5550 8FB5DB <CJK>
-8FB5DC 5551 8FB5DC <CJK>
-8FB5DD 5558 8FB5DD <CJK>
-8FB5DE 555A 8FB5DE <CJK>
-8FB5DF 555B 8FB5DF <CJK>
-8FB5E0 555E 8FB5E0 <CJK>
-8FB5E1 5560 8FB5E1 <CJK>
-8FB5E2 5561 8FB5E2 <CJK>
-8FB5E3 5564 8FB5E3 <CJK>
-8FB5E4 5566 8FB5E4 <CJK>
-8FB5E5 557F 8FB5E5 <CJK>
-8FB5E6 5581 8FB5E6 <CJK>
-8FB5E7 5582 8FB5E7 <CJK>
-8FB5E8 5586 8FB5E8 <CJK>
-8FB5E9 5588 8FB5E9 <CJK>
-8FB5EA 558E 8FB5EA <CJK>
-8FB5EB 558F 8FB5EB <CJK>
-8FB5EC 5591 8FB5EC <CJK>
-8FB5ED 5592 8FB5ED <CJK>
-8FB5EE 5593 8FB5EE <CJK>
-8FB5EF 5594 8FB5EF <CJK>
-8FB5F0 5597 8FB5F0 <CJK>
-8FB5F1 55A3 8FB5F1 <CJK>
-8FB5F2 55A4 8FB5F2 <CJK>
-8FB5F3 55AD 8FB5F3 <CJK>
-8FB5F4 55B2 8FB5F4 <CJK>
-8FB5F5 55BF 8FB5F5 <CJK>
-8FB5F6 55C1 8FB5F6 <CJK>
-8FB5F7 55C3 8FB5F7 <CJK>
-8FB5F8 55C6 8FB5F8 <CJK>
-8FB5F9 55C9 8FB5F9 <CJK>
-8FB5FA 55CB 8FB5FA <CJK>
-8FB5FB 55CC 8FB5FB <CJK>
-8FB5FC 55CE 8FB5FC <CJK>
-8FB5FD 55D1 8FB5FD <CJK>
-8FB5FE 55D2 8FB5FE <CJK>
-8FB6A1 55D3 8FB6A1 <CJK>
-8FB6A2 55D7 8FB6A2 <CJK>
-8FB6A3 55D8 8FB6A3 <CJK>
-8FB6A4 55DB 8FB6A4 <CJK>
-8FB6A5 55DE 8FB6A5 <CJK>
-8FB6A6 55E2 8FB6A6 <CJK>
-8FB6A7 55E9 8FB6A7 <CJK>
-8FB6A8 55F6 8FB6A8 <CJK>
-8FB6A9 55FF 8FB6A9 <CJK>
-8FB6AA 5605 8FB6AA <CJK>
-8FB6AB 5608 8FB6AB <CJK>
-8FB6AC 560A 8FB6AC <CJK>
-8FB6AD 560D 8FB6AD <CJK>
-8FB6AE 560E 8FB6AE <CJK>
-8FB6AF 560F 8FB6AF <CJK>
-8FB6B0 5610 8FB6B0 <CJK>
-8FB6B1 5611 8FB6B1 <CJK>
-8FB6B2 5612 8FB6B2 <CJK>
-8FB6B3 5619 8FB6B3 <CJK>
-8FB6B4 562C 8FB6B4 <CJK>
-8FB6B5 5630 8FB6B5 <CJK>
-8FB6B6 5633 8FB6B6 <CJK>
-8FB6B7 5635 8FB6B7 <CJK>
-8FB6B8 5637 8FB6B8 <CJK>
-8FB6B9 5639 8FB6B9 <CJK>
-8FB6BA 563B 8FB6BA <CJK>
-8FB6BB 563C 8FB6BB <CJK>
-8FB6BC 563D 8FB6BC <CJK>
-8FB6BD 563F 8FB6BD <CJK>
-8FB6BE 5640 8FB6BE <CJK>
-8FB6BF 5641 8FB6BF <CJK>
-8FB6C0 5643 8FB6C0 <CJK>
-8FB6C1 5644 8FB6C1 <CJK>
-8FB6C2 5646 8FB6C2 <CJK>
-8FB6C3 5649 8FB6C3 <CJK>
-8FB6C4 564B 8FB6C4 <CJK>
-8FB6C5 564D 8FB6C5 <CJK>
-8FB6C6 564F 8FB6C6 <CJK>
-8FB6C7 5654 8FB6C7 <CJK>
-8FB6C8 565E 8FB6C8 <CJK>
-8FB6C9 5660 8FB6C9 <CJK>
-8FB6CA 5661 8FB6CA <CJK>
-8FB6CB 5662 8FB6CB <CJK>
-8FB6CC 5663 8FB6CC <CJK>
-8FB6CD 5666 8FB6CD <CJK>
-8FB6CE 5669 8FB6CE <CJK>
-8FB6CF 566D 8FB6CF <CJK>
-8FB6D0 566F 8FB6D0 <CJK>
-8FB6D1 5671 8FB6D1 <CJK>
-8FB6D2 5672 8FB6D2 <CJK>
-8FB6D3 5675 8FB6D3 <CJK>
-8FB6D4 5684 8FB6D4 <CJK>
-8FB6D5 5685 8FB6D5 <CJK>
-8FB6D6 5688 8FB6D6 <CJK>
-8FB6D7 568B 8FB6D7 <CJK>
-8FB6D8 568C 8FB6D8 <CJK>
-8FB6D9 5695 8FB6D9 <CJK>
-8FB6DA 5699 8FB6DA <CJK>
-8FB6DB 569A 8FB6DB <CJK>
-8FB6DC 569D 8FB6DC <CJK>
-8FB6DD 569E 8FB6DD <CJK>
-8FB6DE 569F 8FB6DE <CJK>
-8FB6DF 56A6 8FB6DF <CJK>
-8FB6E0 56A7 8FB6E0 <CJK>
-8FB6E1 56A8 8FB6E1 <CJK>
-8FB6E2 56A9 8FB6E2 <CJK>
-8FB6E3 56AB 8FB6E3 <CJK>
-8FB6E4 56AC 8FB6E4 <CJK>
-8FB6E5 56AD 8FB6E5 <CJK>
-8FB6E6 56B1 8FB6E6 <CJK>
-8FB6E7 56B3 8FB6E7 <CJK>
-8FB6E8 56B7 8FB6E8 <CJK>
-8FB6E9 56BE 8FB6E9 <CJK>
-8FB6EA 56C5 8FB6EA <CJK>
-8FB6EB 56C9 8FB6EB <CJK>
-8FB6EC 56CA 8FB6EC <CJK>
-8FB6ED 56CB 8FB6ED <CJK>
-8FB6EE 56CF 8FB6EE <CJK>
-8FB6EF 56D0 8FB6EF <CJK>
-8FB6F0 56CC 8FB6F0 <CJK>
-8FB6F1 56CD 8FB6F1 <CJK>
-8FB6F2 56D9 8FB6F2 <CJK>
-8FB6F3 56DC 8FB6F3 <CJK>
-8FB6F4 56DD 8FB6F4 <CJK>
-8FB6F5 56DF 8FB6F5 <CJK>
-8FB6F6 56E1 8FB6F6 <CJK>
-8FB6F7 56E4 8FB6F7 <CJK>
-8FB6F8 56E5 8FB6F8 <CJK>
-8FB6F9 56E6 8FB6F9 <CJK>
-8FB6FA 56E7 8FB6FA <CJK>
-8FB6FB 56E8 8FB6FB <CJK>
-8FB6FC 56F1 8FB6FC <CJK>
-8FB6FD 56EB 8FB6FD <CJK>
-8FB6FE 56ED 8FB6FE <CJK>
-8FB7A1 56F6 8FB7A1 <CJK>
-8FB7A2 56F7 8FB7A2 <CJK>
-8FB7A3 5701 8FB7A3 <CJK>
-8FB7A4 5702 8FB7A4 <CJK>
-8FB7A5 5707 8FB7A5 <CJK>
-8FB7A6 570A 8FB7A6 <CJK>
-8FB7A7 570C 8FB7A7 <CJK>
-8FB7A8 5711 8FB7A8 <CJK>
-8FB7A9 5715 8FB7A9 <CJK>
-8FB7AA 571A 8FB7AA <CJK>
-8FB7AB 571B 8FB7AB <CJK>
-8FB7AC 571D 8FB7AC <CJK>
-8FB7AD 5720 8FB7AD <CJK>
-8FB7AE 5722 8FB7AE <CJK>
-8FB7AF 5723 8FB7AF <CJK>
-8FB7B0 5724 8FB7B0 <CJK>
-8FB7B1 5725 8FB7B1 <CJK>
-8FB7B2 5729 8FB7B2 <CJK>
-8FB7B3 572A 8FB7B3 <CJK>
-8FB7B4 572C 8FB7B4 <CJK>
-8FB7B5 572E 8FB7B5 <CJK>
-8FB7B6 572F 8FB7B6 <CJK>
-8FB7B7 5733 8FB7B7 <CJK>
-8FB7B8 5734 8FB7B8 <CJK>
-8FB7B9 573D 8FB7B9 <CJK>
-8FB7BA 573E 8FB7BA <CJK>
-8FB7BB 573F 8FB7BB <CJK>
-8FB7BC 5745 8FB7BC <CJK>
-8FB7BD 5746 8FB7BD <CJK>
-8FB7BE 574C 8FB7BE <CJK>
-8FB7BF 574D 8FB7BF <CJK>
-8FB7C0 5752 8FB7C0 <CJK>
-8FB7C1 5762 8FB7C1 <CJK>
-8FB7C2 5765 8FB7C2 <CJK>
-8FB7C3 5767 8FB7C3 <CJK>
-8FB7C4 5768 8FB7C4 <CJK>
-8FB7C5 576B 8FB7C5 <CJK>
-8FB7C6 576D 8FB7C6 <CJK>
-8FB7C7 576E 8FB7C7 <CJK>
-8FB7C8 576F 8FB7C8 <CJK>
-8FB7C9 5770 8FB7C9 <CJK>
-8FB7CA 5771 8FB7CA <CJK>
-8FB7CB 5773 8FB7CB <CJK>
-8FB7CC 5774 8FB7CC <CJK>
-8FB7CD 5775 8FB7CD <CJK>
-8FB7CE 5777 8FB7CE <CJK>
-8FB7CF 5779 8FB7CF <CJK>
-8FB7D0 577A 8FB7D0 <CJK>
-8FB7D1 577B 8FB7D1 <CJK>
-8FB7D2 577C 8FB7D2 <CJK>
-8FB7D3 577E 8FB7D3 <CJK>
-8FB7D4 5781 8FB7D4 <CJK>
-8FB7D5 5783 8FB7D5 <CJK>
-8FB7D6 578C 8FB7D6 <CJK>
-8FB7D7 5794 8FB7D7 <CJK>
-8FB7D8 5797 8FB7D8 <CJK>
-8FB7D9 5799 8FB7D9 <CJK>
-8FB7DA 579A 8FB7DA <CJK>
-8FB7DB 579C 8FB7DB <CJK>
-8FB7DC 579D 8FB7DC <CJK>
-8FB7DD 579E 8FB7DD <CJK>
-8FB7DE 579F 8FB7DE <CJK>
-8FB7DF 57A1 8FB7DF <CJK>
-8FB7E0 5795 8FB7E0 <CJK>
-8FB7E1 57A7 8FB7E1 <CJK>
-8FB7E2 57A8 8FB7E2 <CJK>
-8FB7E3 57A9 8FB7E3 <CJK>
-8FB7E4 57AC 8FB7E4 <CJK>
-8FB7E5 57B8 8FB7E5 <CJK>
-8FB7E6 57BD 8FB7E6 <CJK>
-8FB7E7 57C7 8FB7E7 <CJK>
-8FB7E8 57C8 8FB7E8 <CJK>
-8FB7E9 57CC 8FB7E9 <CJK>
-8FB7EA 57CF 8FB7EA <CJK>
-8FB7EB 57D5 8FB7EB <CJK>
-8FB7EC 57DD 8FB7EC <CJK>
-8FB7ED 57DE 8FB7ED <CJK>
-8FB7EE 57E4 8FB7EE <CJK>
-8FB7EF 57E6 8FB7EF <CJK>
-8FB7F0 57E7 8FB7F0 <CJK>
-8FB7F1 57E9 8FB7F1 <CJK>
-8FB7F2 57ED 8FB7F2 <CJK>
-8FB7F3 57F0 8FB7F3 <CJK>
-8FB7F4 57F5 8FB7F4 <CJK>
-8FB7F5 57F6 8FB7F5 <CJK>
-8FB7F6 57F8 8FB7F6 <CJK>
-8FB7F7 57FD 8FB7F7 <CJK>
-8FB7F8 57FE 8FB7F8 <CJK>
-8FB7F9 57FF 8FB7F9 <CJK>
-8FB7FA 5803 8FB7FA <CJK>
-8FB7FB 5804 8FB7FB <CJK>
-8FB7FC 5808 8FB7FC <CJK>
-8FB7FD 5809 8FB7FD <CJK>
-8FB7FE 57E1 8FB7FE <CJK>
-8FB8A1 580C 8FB8A1 <CJK>
-8FB8A2 580D 8FB8A2 <CJK>
-8FB8A3 581B 8FB8A3 <CJK>
-8FB8A4 581E 8FB8A4 <CJK>
-8FB8A5 581F 8FB8A5 <CJK>
-8FB8A6 5820 8FB8A6 <CJK>
-8FB8A7 5826 8FB8A7 <CJK>
-8FB8A8 5827 8FB8A8 <CJK>
-8FB8A9 582D 8FB8A9 <CJK>
-8FB8AA 5832 8FB8AA <CJK>
-8FB8AB 5839 8FB8AB <CJK>
-8FB8AC 583F 8FB8AC <CJK>
-8FB8AD 5849 8FB8AD <CJK>
-8FB8AE 584C 8FB8AE <CJK>
-8FB8AF 584D 8FB8AF <CJK>
-8FB8B0 584F 8FB8B0 <CJK>
-8FB8B1 5850 8FB8B1 <CJK>
-8FB8B2 5855 8FB8B2 <CJK>
-8FB8B3 585F 8FB8B3 <CJK>
-8FB8B4 5861 8FB8B4 <CJK>
-8FB8B5 5864 8FB8B5 <CJK>
-8FB8B6 5867 8FB8B6 <CJK>
-8FB8B7 5868 8FB8B7 <CJK>
-8FB8B8 5878 8FB8B8 <CJK>
-8FB8B9 587C 8FB8B9 <CJK>
-8FB8BA 587F 8FB8BA <CJK>
-8FB8BB 5880 8FB8BB <CJK>
-8FB8BC 5881 8FB8BC <CJK>
-8FB8BD 5887 8FB8BD <CJK>
-8FB8BE 5888 8FB8BE <CJK>
-8FB8BF 5889 8FB8BF <CJK>
-8FB8C0 588A 8FB8C0 <CJK>
-8FB8C1 588C 8FB8C1 <CJK>
-8FB8C2 588D 8FB8C2 <CJK>
-8FB8C3 588F 8FB8C3 <CJK>
-8FB8C4 5890 8FB8C4 <CJK>
-8FB8C5 5894 8FB8C5 <CJK>
-8FB8C6 5896 8FB8C6 <CJK>
-8FB8C7 589D 8FB8C7 <CJK>
-8FB8C8 58A0 8FB8C8 <CJK>
-8FB8C9 58A1 8FB8C9 <CJK>
-8FB8CA 58A2 8FB8CA <CJK>
-8FB8CB 58A6 8FB8CB <CJK>
-8FB8CC 58A9 8FB8CC <CJK>
-8FB8CD 58B1 8FB8CD <CJK>
-8FB8CE 58B2 8FB8CE <CJK>
-8FB8CF 58C4 8FB8CF <CJK>
-8FB8D0 58BC 8FB8D0 <CJK>
-8FB8D1 58C2 8FB8D1 <CJK>
-8FB8D2 58C8 8FB8D2 <CJK>
-8FB8D3 58CD 8FB8D3 <CJK>
-8FB8D4 58CE 8FB8D4 <CJK>
-8FB8D5 58D0 8FB8D5 <CJK>
-8FB8D6 58D2 8FB8D6 <CJK>
-8FB8D7 58D4 8FB8D7 <CJK>
-8FB8D8 58D6 8FB8D8 <CJK>
-8FB8D9 58DA 8FB8D9 <CJK>
-8FB8DA 58DD 8FB8DA <CJK>
-8FB8DB 58E1 8FB8DB <CJK>
-8FB8DC 58E2 8FB8DC <CJK>
-8FB8DD 58E9 8FB8DD <CJK>
-8FB8DE 58F3 8FB8DE <CJK>
-8FB8DF 5905 8FB8DF <CJK>
-8FB8E0 5906 8FB8E0 <CJK>
-8FB8E1 590B 8FB8E1 <CJK>
-8FB8E2 590C 8FB8E2 <CJK>
-8FB8E3 5912 8FB8E3 <CJK>
-8FB8E4 5913 8FB8E4 <CJK>
-8FB8E5 5914 8FB8E5 <CJK>
-8FB8E6 8641 8FB8E6 <CJK>
-8FB8E7 591D 8FB8E7 <CJK>
-8FB8E8 5921 8FB8E8 <CJK>
-8FB8E9 5923 8FB8E9 <CJK>
-8FB8EA 5924 8FB8EA <CJK>
-8FB8EB 5928 8FB8EB <CJK>
-8FB8EC 592F 8FB8EC <CJK>
-8FB8ED 5930 8FB8ED <CJK>
-8FB8EE 5933 8FB8EE <CJK>
-8FB8EF 5935 8FB8EF <CJK>
-8FB8F0 5936 8FB8F0 <CJK>
-8FB8F1 593F 8FB8F1 <CJK>
-8FB8F2 5943 8FB8F2 <CJK>
-8FB8F3 5946 8FB8F3 <CJK>
-8FB8F4 5952 8FB8F4 <CJK>
-8FB8F5 5953 8FB8F5 <CJK>
-8FB8F6 5959 8FB8F6 <CJK>
-8FB8F7 595B 8FB8F7 <CJK>
-8FB8F8 595D 8FB8F8 <CJK>
-8FB8F9 595E 8FB8F9 <CJK>
-8FB8FA 595F 8FB8FA <CJK>
-8FB8FB 5961 8FB8FB <CJK>
-8FB8FC 5963 8FB8FC <CJK>
-8FB8FD 596B 8FB8FD <CJK>
-8FB8FE 596D 8FB8FE <CJK>
-8FB9A1 596F 8FB9A1 <CJK>
-8FB9A2 5972 8FB9A2 <CJK>
-8FB9A3 5975 8FB9A3 <CJK>
-8FB9A4 5976 8FB9A4 <CJK>
-8FB9A5 5979 8FB9A5 <CJK>
-8FB9A6 597B 8FB9A6 <CJK>
-8FB9A7 597C 8FB9A7 <CJK>
-8FB9A8 598B 8FB9A8 <CJK>
-8FB9A9 598C 8FB9A9 <CJK>
-8FB9AA 598E 8FB9AA <CJK>
-8FB9AB 5992 8FB9AB <CJK>
-8FB9AC 5995 8FB9AC <CJK>
-8FB9AD 5997 8FB9AD <CJK>
-8FB9AE 599F 8FB9AE <CJK>
-8FB9AF 59A4 8FB9AF <CJK>
-8FB9B0 59A7 8FB9B0 <CJK>
-8FB9B1 59AD 8FB9B1 <CJK>
-8FB9B2 59AE 8FB9B2 <CJK>
-8FB9B3 59AF 8FB9B3 <CJK>
-8FB9B4 59B0 8FB9B4 <CJK>
-8FB9B5 59B3 8FB9B5 <CJK>
-8FB9B6 59B7 8FB9B6 <CJK>
-8FB9B7 59BA 8FB9B7 <CJK>
-8FB9B8 59BC 8FB9B8 <CJK>
-8FB9B9 59C1 8FB9B9 <CJK>
-8FB9BA 59C3 8FB9BA <CJK>
-8FB9BB 59C4 8FB9BB <CJK>
-8FB9BC 59C8 8FB9BC <CJK>
-8FB9BD 59CA 8FB9BD <CJK>
-8FB9BE 59CD 8FB9BE <CJK>
-8FB9BF 59D2 8FB9BF <CJK>
-8FB9C0 59DD 8FB9C0 <CJK>
-8FB9C1 59DE 8FB9C1 <CJK>
-8FB9C2 59DF 8FB9C2 <CJK>
-8FB9C3 59E3 8FB9C3 <CJK>
-8FB9C4 59E4 8FB9C4 <CJK>
-8FB9C5 59E7 8FB9C5 <CJK>
-8FB9C6 59EE 8FB9C6 <CJK>
-8FB9C7 59EF 8FB9C7 <CJK>
-8FB9C8 59F1 8FB9C8 <CJK>
-8FB9C9 59F2 8FB9C9 <CJK>
-8FB9CA 59F4 8FB9CA <CJK>
-8FB9CB 59F7 8FB9CB <CJK>
-8FB9CC 5A00 8FB9CC <CJK>
-8FB9CD 5A04 8FB9CD <CJK>
-8FB9CE 5A0C 8FB9CE <CJK>
-8FB9CF 5A0D 8FB9CF <CJK>
-8FB9D0 5A0E 8FB9D0 <CJK>
-8FB9D1 5A12 8FB9D1 <CJK>
-8FB9D2 5A13 8FB9D2 <CJK>
-8FB9D3 5A1E 8FB9D3 <CJK>
-8FB9D4 5A23 8FB9D4 <CJK>
-8FB9D5 5A24 8FB9D5 <CJK>
-8FB9D6 5A27 8FB9D6 <CJK>
-8FB9D7 5A28 8FB9D7 <CJK>
-8FB9D8 5A2A 8FB9D8 <CJK>
-8FB9D9 5A2D 8FB9D9 <CJK>
-8FB9DA 5A30 8FB9DA <CJK>
-8FB9DB 5A44 8FB9DB <CJK>
-8FB9DC 5A45 8FB9DC <CJK>
-8FB9DD 5A47 8FB9DD <CJK>
-8FB9DE 5A48 8FB9DE <CJK>
-8FB9DF 5A4C 8FB9DF <CJK>
-8FB9E0 5A50 8FB9E0 <CJK>
-8FB9E1 5A55 8FB9E1 <CJK>
-8FB9E2 5A5E 8FB9E2 <CJK>
-8FB9E3 5A63 8FB9E3 <CJK>
-8FB9E4 5A65 8FB9E4 <CJK>
-8FB9E5 5A67 8FB9E5 <CJK>
-8FB9E6 5A6D 8FB9E6 <CJK>
-8FB9E7 5A77 8FB9E7 <CJK>
-8FB9E8 5A7A 8FB9E8 <CJK>
-8FB9E9 5A7B 8FB9E9 <CJK>
-8FB9EA 5A7E 8FB9EA <CJK>
-8FB9EB 5A8B 8FB9EB <CJK>
-8FB9EC 5A90 8FB9EC <CJK>
-8FB9ED 5A93 8FB9ED <CJK>
-8FB9EE 5A96 8FB9EE <CJK>
-8FB9EF 5A99 8FB9EF <CJK>
-8FB9F0 5A9C 8FB9F0 <CJK>
-8FB9F1 5A9E 8FB9F1 <CJK>
-8FB9F2 5A9F 8FB9F2 <CJK>
-8FB9F3 5AA0 8FB9F3 <CJK>
-8FB9F4 5AA2 8FB9F4 <CJK>
-8FB9F5 5AA7 8FB9F5 <CJK>
-8FB9F6 5AAC 8FB9F6 <CJK>
-8FB9F7 5AB1 8FB9F7 <CJK>
-8FB9F8 5AB2 8FB9F8 <CJK>
-8FB9F9 5AB3 8FB9F9 <CJK>
-8FB9FA 5AB5 8FB9FA <CJK>
-8FB9FB 5AB8 8FB9FB <CJK>
-8FB9FC 5ABA 8FB9FC <CJK>
-8FB9FD 5ABB 8FB9FD <CJK>
-8FB9FE 5ABF 8FB9FE <CJK>
-8FBAA1 5AC4 8FBAA1 <CJK>
-8FBAA2 5AC6 8FBAA2 <CJK>
-8FBAA3 5AC8 8FBAA3 <CJK>
-8FBAA4 5ACF 8FBAA4 <CJK>
-8FBAA5 5ADA 8FBAA5 <CJK>
-8FBAA6 5ADC 8FBAA6 <CJK>
-8FBAA7 5AE0 8FBAA7 <CJK>
-8FBAA8 5AE5 8FBAA8 <CJK>
-8FBAA9 5AEA 8FBAA9 <CJK>
-8FBAAA 5AEE 8FBAAA <CJK>
-8FBAAB 5AF5 8FBAAB <CJK>
-8FBAAC 5AF6 8FBAAC <CJK>
-8FBAAD 5AFD 8FBAAD <CJK>
-8FBAAE 5B00 8FBAAE <CJK>
-8FBAAF 5B01 8FBAAF <CJK>
-8FBAB0 5B08 8FBAB0 <CJK>
-8FBAB1 5B17 8FBAB1 <CJK>
-8FBAB2 5B34 8FBAB2 <CJK>
-8FBAB3 5B19 8FBAB3 <CJK>
-8FBAB4 5B1B 8FBAB4 <CJK>
-8FBAB5 5B1D 8FBAB5 <CJK>
-8FBAB6 5B21 8FBAB6 <CJK>
-8FBAB7 5B25 8FBAB7 <CJK>
-8FBAB8 5B2D 8FBAB8 <CJK>
-8FBAB9 5B38 8FBAB9 <CJK>
-8FBABA 5B41 8FBABA <CJK>
-8FBABB 5B4B 8FBABB <CJK>
-8FBABC 5B4C 8FBABC <CJK>
-8FBABD 5B52 8FBABD <CJK>
-8FBABE 5B56 8FBABE <CJK>
-8FBABF 5B5E 8FBABF <CJK>
-8FBAC0 5B68 8FBAC0 <CJK>
-8FBAC1 5B6E 8FBAC1 <CJK>
-8FBAC2 5B6F 8FBAC2 <CJK>
-8FBAC3 5B7C 8FBAC3 <CJK>
-8FBAC4 5B7D 8FBAC4 <CJK>
-8FBAC5 5B7E 8FBAC5 <CJK>
-8FBAC6 5B7F 8FBAC6 <CJK>
-8FBAC7 5B81 8FBAC7 <CJK>
-8FBAC8 5B84 8FBAC8 <CJK>
-8FBAC9 5B86 8FBAC9 <CJK>
-8FBACA 5B8A 8FBACA <CJK>
-8FBACB 5B8E 8FBACB <CJK>
-8FBACC 5B90 8FBACC <CJK>
-8FBACD 5B91 8FBACD <CJK>
-8FBACE 5B93 8FBACE <CJK>
-8FBACF 5B94 8FBACF <CJK>
-8FBAD0 5B96 8FBAD0 <CJK>
-8FBAD1 5BA8 8FBAD1 <CJK>
-8FBAD2 5BA9 8FBAD2 <CJK>
-8FBAD3 5BAC 8FBAD3 <CJK>
-8FBAD4 5BAD 8FBAD4 <CJK>
-8FBAD5 5BAF 8FBAD5 <CJK>
-8FBAD6 5BB1 8FBAD6 <CJK>
-8FBAD7 5BB2 8FBAD7 <CJK>
-8FBAD8 5BB7 8FBAD8 <CJK>
-8FBAD9 5BBA 8FBAD9 <CJK>
-8FBADA 5BBC 8FBADA <CJK>
-8FBADB 5BC0 8FBADB <CJK>
-8FBADC 5BC1 8FBADC <CJK>
-8FBADD 5BCD 8FBADD <CJK>
-8FBADE 5BCF 8FBADE <CJK>
-8FBADF 5BD6 8FBADF <CJK>
-8FBAE0 5BD7 8FBAE0 <CJK>
-8FBAE1 5BD8 8FBAE1 <CJK>
-8FBAE2 5BD9 8FBAE2 <CJK>
-8FBAE3 5BDA 8FBAE3 <CJK>
-8FBAE4 5BE0 8FBAE4 <CJK>
-8FBAE5 5BEF 8FBAE5 <CJK>
-8FBAE6 5BF1 8FBAE6 <CJK>
-8FBAE7 5BF4 8FBAE7 <CJK>
-8FBAE8 5BFD 8FBAE8 <CJK>
-8FBAE9 5C0C 8FBAE9 <CJK>
-8FBAEA 5C17 8FBAEA <CJK>
-8FBAEB 5C1E 8FBAEB <CJK>
-8FBAEC 5C1F 8FBAEC <CJK>
-8FBAED 5C23 8FBAED <CJK>
-8FBAEE 5C26 8FBAEE <CJK>
-8FBAEF 5C29 8FBAEF <CJK>
-8FBAF0 5C2B 8FBAF0 <CJK>
-8FBAF1 5C2C 8FBAF1 <CJK>
-8FBAF2 5C2E 8FBAF2 <CJK>
-8FBAF3 5C30 8FBAF3 <CJK>
-8FBAF4 5C32 8FBAF4 <CJK>
-8FBAF5 5C35 8FBAF5 <CJK>
-8FBAF6 5C36 8FBAF6 <CJK>
-8FBAF7 5C59 8FBAF7 <CJK>
-8FBAF8 5C5A 8FBAF8 <CJK>
-8FBAF9 5C5C 8FBAF9 <CJK>
-8FBAFA 5C62 8FBAFA <CJK>
-8FBAFB 5C63 8FBAFB <CJK>
-8FBAFC 5C67 8FBAFC <CJK>
-8FBAFD 5C68 8FBAFD <CJK>
-8FBAFE 5C69 8FBAFE <CJK>
-8FBBA1 5C6D 8FBBA1 <CJK>
-8FBBA2 5C70 8FBBA2 <CJK>
-8FBBA3 5C74 8FBBA3 <CJK>
-8FBBA4 5C75 8FBBA4 <CJK>
-8FBBA5 5C7A 8FBBA5 <CJK>
-8FBBA6 5C7B 8FBBA6 <CJK>
-8FBBA7 5C7C 8FBBA7 <CJK>
-8FBBA8 5C7D 8FBBA8 <CJK>
-8FBBA9 5C87 8FBBA9 <CJK>
-8FBBAA 5C88 8FBBAA <CJK>
-8FBBAB 5C8A 8FBBAB <CJK>
-8FBBAC 5C8F 8FBBAC <CJK>
-8FBBAD 5C92 8FBBAD <CJK>
-8FBBAE 5C9D 8FBBAE <CJK>
-8FBBAF 5C9F 8FBBAF <CJK>
-8FBBB0 5CA0 8FBBB0 <CJK>
-8FBBB1 5CA2 8FBBB1 <CJK>
-8FBBB2 5CA3 8FBBB2 <CJK>
-8FBBB3 5CA6 8FBBB3 <CJK>
-8FBBB4 5CAA 8FBBB4 <CJK>
-8FBBB5 5CB2 8FBBB5 <CJK>
-8FBBB6 5CB4 8FBBB6 <CJK>
-8FBBB7 5CB5 8FBBB7 <CJK>
-8FBBB8 5CBA 8FBBB8 <CJK>
-8FBBB9 5CC9 8FBBB9 <CJK>
-8FBBBA 5CCB 8FBBBA <CJK>
-8FBBBB 5CD2 8FBBBB <CJK>
-8FBBBC 5CDD 8FBBBC <CJK>
-8FBBBD 5CD7 8FBBBD <CJK>
-8FBBBE 5CEE 8FBBBE <CJK>
-8FBBBF 5CF1 8FBBBF <CJK>
-8FBBC0 5CF2 8FBBC0 <CJK>
-8FBBC1 5CF4 8FBBC1 <CJK>
-8FBBC2 5D01 8FBBC2 <CJK>
-8FBBC3 5D06 8FBBC3 <CJK>
-8FBBC4 5D0D 8FBBC4 <CJK>
-8FBBC5 5D12 8FBBC5 <CJK>
-8FBBC6 5D2B 8FBBC6 <CJK>
-8FBBC7 5D23 8FBBC7 <CJK>
-8FBBC8 5D24 8FBBC8 <CJK>
-8FBBC9 5D26 8FBBC9 <CJK>
-8FBBCA 5D27 8FBBCA <CJK>
-8FBBCB 5D31 8FBBCB <CJK>
-8FBBCC 5D34 8FBBCC <CJK>
-8FBBCD 5D39 8FBBCD <CJK>
-8FBBCE 5D3D 8FBBCE <CJK>
-8FBBCF 5D3F 8FBBCF <CJK>
-8FBBD0 5D42 8FBBD0 <CJK>
-8FBBD1 5D43 8FBBD1 <CJK>
-8FBBD2 5D46 8FBBD2 <CJK>
-8FBBD3 5D48 8FBBD3 <CJK>
-8FBBD4 5D55 8FBBD4 <CJK>
-8FBBD5 5D51 8FBBD5 <CJK>
-8FBBD6 5D59 8FBBD6 <CJK>
-8FBBD7 5D4A 8FBBD7 <CJK>
-8FBBD8 5D5F 8FBBD8 <CJK>
-8FBBD9 5D60 8FBBD9 <CJK>
-8FBBDA 5D61 8FBBDA <CJK>
-8FBBDB 5D62 8FBBDB <CJK>
-8FBBDC 5D64 8FBBDC <CJK>
-8FBBDD 5D6A 8FBBDD <CJK>
-8FBBDE 5D6D 8FBBDE <CJK>
-8FBBDF 5D70 8FBBDF <CJK>
-8FBBE0 5D79 8FBBE0 <CJK>
-8FBBE1 5D7A 8FBBE1 <CJK>
-8FBBE2 5D7E 8FBBE2 <CJK>
-8FBBE3 5D7F 8FBBE3 <CJK>
-8FBBE4 5D81 8FBBE4 <CJK>
-8FBBE5 5D83 8FBBE5 <CJK>
-8FBBE6 5D88 8FBBE6 <CJK>
-8FBBE7 5D8A 8FBBE7 <CJK>
-8FBBE8 5D92 8FBBE8 <CJK>
-8FBBE9 5D93 8FBBE9 <CJK>
-8FBBEA 5D94 8FBBEA <CJK>
-8FBBEB 5D95 8FBBEB <CJK>
-8FBBEC 5D99 8FBBEC <CJK>
-8FBBED 5D9B 8FBBED <CJK>
-8FBBEE 5D9F 8FBBEE <CJK>
-8FBBEF 5DA0 8FBBEF <CJK>
-8FBBF0 5DA7 8FBBF0 <CJK>
-8FBBF1 5DAB 8FBBF1 <CJK>
-8FBBF2 5DB0 8FBBF2 <CJK>
-8FBBF3 5DB4 8FBBF3 <CJK>
-8FBBF4 5DB8 8FBBF4 <CJK>
-8FBBF5 5DB9 8FBBF5 <CJK>
-8FBBF6 5DC3 8FBBF6 <CJK>
-8FBBF7 5DC7 8FBBF7 <CJK>
-8FBBF8 5DCB 8FBBF8 <CJK>
-8FBBF9 5DD0 8FBBF9 <CJK>
-8FBBFA 5DCE 8FBBFA <CJK>
-8FBBFB 5DD8 8FBBFB <CJK>
-8FBBFC 5DD9 8FBBFC <CJK>
-8FBBFD 5DE0 8FBBFD <CJK>
-8FBBFE 5DE4 8FBBFE <CJK>
-8FBCA1 5DE9 8FBCA1 <CJK>
-8FBCA2 5DF8 8FBCA2 <CJK>
-8FBCA3 5DF9 8FBCA3 <CJK>
-8FBCA4 5E00 8FBCA4 <CJK>
-8FBCA5 5E07 8FBCA5 <CJK>
-8FBCA6 5E0D 8FBCA6 <CJK>
-8FBCA7 5E12 8FBCA7 <CJK>
-8FBCA8 5E14 8FBCA8 <CJK>
-8FBCA9 5E15 8FBCA9 <CJK>
-8FBCAA 5E18 8FBCAA <CJK>
-8FBCAB 5E1F 8FBCAB <CJK>
-8FBCAC 5E20 8FBCAC <CJK>
-8FBCAD 5E2E 8FBCAD <CJK>
-8FBCAE 5E28 8FBCAE <CJK>
-8FBCAF 5E32 8FBCAF <CJK>
-8FBCB0 5E35 8FBCB0 <CJK>
-8FBCB1 5E3E 8FBCB1 <CJK>
-8FBCB2 5E4B 8FBCB2 <CJK>
-8FBCB3 5E50 8FBCB3 <CJK>
-8FBCB4 5E49 8FBCB4 <CJK>
-8FBCB5 5E51 8FBCB5 <CJK>
-8FBCB6 5E56 8FBCB6 <CJK>
-8FBCB7 5E58 8FBCB7 <CJK>
-8FBCB8 5E5B 8FBCB8 <CJK>
-8FBCB9 5E5C 8FBCB9 <CJK>
-8FBCBA 5E5E 8FBCBA <CJK>
-8FBCBB 5E68 8FBCBB <CJK>
-8FBCBC 5E6A 8FBCBC <CJK>
-8FBCBD 5E6B 8FBCBD <CJK>
-8FBCBE 5E6C 8FBCBE <CJK>
-8FBCBF 5E6D 8FBCBF <CJK>
-8FBCC0 5E6E 8FBCC0 <CJK>
-8FBCC1 5E70 8FBCC1 <CJK>
-8FBCC2 5E80 8FBCC2 <CJK>
-8FBCC3 5E8B 8FBCC3 <CJK>
-8FBCC4 5E8E 8FBCC4 <CJK>
-8FBCC5 5EA2 8FBCC5 <CJK>
-8FBCC6 5EA4 8FBCC6 <CJK>
-8FBCC7 5EA5 8FBCC7 <CJK>
-8FBCC8 5EA8 8FBCC8 <CJK>
-8FBCC9 5EAA 8FBCC9 <CJK>
-8FBCCA 5EAC 8FBCCA <CJK>
-8FBCCB 5EB1 8FBCCB <CJK>
-8FBCCC 5EB3 8FBCCC <CJK>
-8FBCCD 5EBD 8FBCCD <CJK>
-8FBCCE 5EBE 8FBCCE <CJK>
-8FBCCF 5EBF 8FBCCF <CJK>
-8FBCD0 5EC6 8FBCD0 <CJK>
-8FBCD1 5ECC 8FBCD1 <CJK>
-8FBCD2 5ECB 8FBCD2 <CJK>
-8FBCD3 5ECE 8FBCD3 <CJK>
-8FBCD4 5ED1 8FBCD4 <CJK>
-8FBCD5 5ED2 8FBCD5 <CJK>
-8FBCD6 5ED4 8FBCD6 <CJK>
-8FBCD7 5ED5 8FBCD7 <CJK>
-8FBCD8 5EDC 8FBCD8 <CJK>
-8FBCD9 5EDE 8FBCD9 <CJK>
-8FBCDA 5EE5 8FBCDA <CJK>
-8FBCDB 5EEB 8FBCDB <CJK>
-8FBCDC 5F02 8FBCDC <CJK>
-8FBCDD 5F06 8FBCDD <CJK>
-8FBCDE 5F07 8FBCDE <CJK>
-8FBCDF 5F08 8FBCDF <CJK>
-8FBCE0 5F0E 8FBCE0 <CJK>
-8FBCE1 5F19 8FBCE1 <CJK>
-8FBCE2 5F1C 8FBCE2 <CJK>
-8FBCE3 5F1D 8FBCE3 <CJK>
-8FBCE4 5F21 8FBCE4 <CJK>
-8FBCE5 5F22 8FBCE5 <CJK>
-8FBCE6 5F23 8FBCE6 <CJK>
-8FBCE7 5F24 8FBCE7 <CJK>
-8FBCE8 5F28 8FBCE8 <CJK>
-8FBCE9 5F2B 8FBCE9 <CJK>
-8FBCEA 5F2C 8FBCEA <CJK>
-8FBCEB 5F2E 8FBCEB <CJK>
-8FBCEC 5F30 8FBCEC <CJK>
-8FBCED 5F34 8FBCED <CJK>
-8FBCEE 5F36 8FBCEE <CJK>
-8FBCEF 5F3B 8FBCEF <CJK>
-8FBCF0 5F3D 8FBCF0 <CJK>
-8FBCF1 5F3F 8FBCF1 <CJK>
-8FBCF2 5F40 8FBCF2 <CJK>
-8FBCF3 5F44 8FBCF3 <CJK>
-8FBCF4 5F45 8FBCF4 <CJK>
-8FBCF5 5F47 8FBCF5 <CJK>
-8FBCF6 5F4D 8FBCF6 <CJK>
-8FBCF7 5F50 8FBCF7 <CJK>
-8FBCF8 5F54 8FBCF8 <CJK>
-8FBCF9 5F58 8FBCF9 <CJK>
-8FBCFA 5F5B 8FBCFA <CJK>
-8FBCFB 5F60 8FBCFB <CJK>
-8FBCFC 5F63 8FBCFC <CJK>
-8FBCFD 5F64 8FBCFD <CJK>
-8FBCFE 5F67 8FBCFE <CJK>
-8FBDA1 5F6F 8FBDA1 <CJK>
-8FBDA2 5F72 8FBDA2 <CJK>
-8FBDA3 5F74 8FBDA3 <CJK>
-8FBDA4 5F75 8FBDA4 <CJK>
-8FBDA5 5F78 8FBDA5 <CJK>
-8FBDA6 5F7A 8FBDA6 <CJK>
-8FBDA7 5F7D 8FBDA7 <CJK>
-8FBDA8 5F7E 8FBDA8 <CJK>
-8FBDA9 5F89 8FBDA9 <CJK>
-8FBDAA 5F8D 8FBDAA <CJK>
-8FBDAB 5F8F 8FBDAB <CJK>
-8FBDAC 5F96 8FBDAC <CJK>
-8FBDAD 5F9C 8FBDAD <CJK>
-8FBDAE 5F9D 8FBDAE <CJK>
-8FBDAF 5FA2 8FBDAF <CJK>
-8FBDB0 5FA7 8FBDB0 <CJK>
-8FBDB1 5FAB 8FBDB1 <CJK>
-8FBDB2 5FA4 8FBDB2 <CJK>
-8FBDB3 5FAC 8FBDB3 <CJK>
-8FBDB4 5FAF 8FBDB4 <CJK>
-8FBDB5 5FB0 8FBDB5 <CJK>
-8FBDB6 5FB1 8FBDB6 <CJK>
-8FBDB7 5FB8 8FBDB7 <CJK>
-8FBDB8 5FC4 8FBDB8 <CJK>
-8FBDB9 5FC7 8FBDB9 <CJK>
-8FBDBA 5FC8 8FBDBA <CJK>
-8FBDBB 5FC9 8FBDBB <CJK>
-8FBDBC 5FCB 8FBDBC <CJK>
-8FBDBD 5FD0 8FBDBD <CJK>
-8FBDBE 5FD1 8FBDBE <CJK>
-8FBDBF 5FD2 8FBDBF <CJK>
-8FBDC0 5FD3 8FBDC0 <CJK>
-8FBDC1 5FD4 8FBDC1 <CJK>
-8FBDC2 5FDE 8FBDC2 <CJK>
-8FBDC3 5FE1 8FBDC3 <CJK>
-8FBDC4 5FE2 8FBDC4 <CJK>
-8FBDC5 5FE8 8FBDC5 <CJK>
-8FBDC6 5FE9 8FBDC6 <CJK>
-8FBDC7 5FEA 8FBDC7 <CJK>
-8FBDC8 5FEC 8FBDC8 <CJK>
-8FBDC9 5FED 8FBDC9 <CJK>
-8FBDCA 5FEE 8FBDCA <CJK>
-8FBDCB 5FEF 8FBDCB <CJK>
-8FBDCC 5FF2 8FBDCC <CJK>
-8FBDCD 5FF3 8FBDCD <CJK>
-8FBDCE 5FF6 8FBDCE <CJK>
-8FBDCF 5FFA 8FBDCF <CJK>
-8FBDD0 5FFC 8FBDD0 <CJK>
-8FBDD1 6007 8FBDD1 <CJK>
-8FBDD2 600A 8FBDD2 <CJK>
-8FBDD3 600D 8FBDD3 <CJK>
-8FBDD4 6013 8FBDD4 <CJK>
-8FBDD5 6014 8FBDD5 <CJK>
-8FBDD6 6017 8FBDD6 <CJK>
-8FBDD7 6018 8FBDD7 <CJK>
-8FBDD8 601A 8FBDD8 <CJK>
-8FBDD9 601F 8FBDD9 <CJK>
-8FBDDA 6024 8FBDDA <CJK>
-8FBDDB 602D 8FBDDB <CJK>
-8FBDDC 6033 8FBDDC <CJK>
-8FBDDD 6035 8FBDDD <CJK>
-8FBDDE 6040 8FBDDE <CJK>
-8FBDDF 6047 8FBDDF <CJK>
-8FBDE0 6048 8FBDE0 <CJK>
-8FBDE1 6049 8FBDE1 <CJK>
-8FBDE2 604C 8FBDE2 <CJK>
-8FBDE3 6051 8FBDE3 <CJK>
-8FBDE4 6054 8FBDE4 <CJK>
-8FBDE5 6056 8FBDE5 <CJK>
-8FBDE6 6057 8FBDE6 <CJK>
-8FBDE7 605D 8FBDE7 <CJK>
-8FBDE8 6061 8FBDE8 <CJK>
-8FBDE9 6067 8FBDE9 <CJK>
-8FBDEA 6071 8FBDEA <CJK>
-8FBDEB 607E 8FBDEB <CJK>
-8FBDEC 607F 8FBDEC <CJK>
-8FBDED 6082 8FBDED <CJK>
-8FBDEE 6086 8FBDEE <CJK>
-8FBDEF 6088 8FBDEF <CJK>
-8FBDF0 608A 8FBDF0 <CJK>
-8FBDF1 608E 8FBDF1 <CJK>
-8FBDF2 6091 8FBDF2 <CJK>
-8FBDF3 6093 8FBDF3 <CJK>
-8FBDF4 6095 8FBDF4 <CJK>
-8FBDF5 6098 8FBDF5 <CJK>
-8FBDF6 609D 8FBDF6 <CJK>
-8FBDF7 609E 8FBDF7 <CJK>
-8FBDF8 60A2 8FBDF8 <CJK>
-8FBDF9 60A4 8FBDF9 <CJK>
-8FBDFA 60A5 8FBDFA <CJK>
-8FBDFB 60A8 8FBDFB <CJK>
-8FBDFC 60B0 8FBDFC <CJK>
-8FBDFD 60B1 8FBDFD <CJK>
-8FBDFE 60B7 8FBDFE <CJK>
-8FBEA1 60BB 8FBEA1 <CJK>
-8FBEA2 60BE 8FBEA2 <CJK>
-8FBEA3 60C2 8FBEA3 <CJK>
-8FBEA4 60C4 8FBEA4 <CJK>
-8FBEA5 60C8 8FBEA5 <CJK>
-8FBEA6 60C9 8FBEA6 <CJK>
-8FBEA7 60CA 8FBEA7 <CJK>
-8FBEA8 60CB 8FBEA8 <CJK>
-8FBEA9 60CE 8FBEA9 <CJK>
-8FBEAA 60CF 8FBEAA <CJK>
-8FBEAB 60D4 8FBEAB <CJK>
-8FBEAC 60D5 8FBEAC <CJK>
-8FBEAD 60D9 8FBEAD <CJK>
-8FBEAE 60DB 8FBEAE <CJK>
-8FBEAF 60DD 8FBEAF <CJK>
-8FBEB0 60DE 8FBEB0 <CJK>
-8FBEB1 60E2 8FBEB1 <CJK>
-8FBEB2 60E5 8FBEB2 <CJK>
-8FBEB3 60F2 8FBEB3 <CJK>
-8FBEB4 60F5 8FBEB4 <CJK>
-8FBEB5 60F8 8FBEB5 <CJK>
-8FBEB6 60FC 8FBEB6 <CJK>
-8FBEB7 60FD 8FBEB7 <CJK>
-8FBEB8 6102 8FBEB8 <CJK>
-8FBEB9 6107 8FBEB9 <CJK>
-8FBEBA 610A 8FBEBA <CJK>
-8FBEBB 610C 8FBEBB <CJK>
-8FBEBC 6110 8FBEBC <CJK>
-8FBEBD 6111 8FBEBD <CJK>
-8FBEBE 6112 8FBEBE <CJK>
-8FBEBF 6113 8FBEBF <CJK>
-8FBEC0 6114 8FBEC0 <CJK>
-8FBEC1 6116 8FBEC1 <CJK>
-8FBEC2 6117 8FBEC2 <CJK>
-8FBEC3 6119 8FBEC3 <CJK>
-8FBEC4 611C 8FBEC4 <CJK>
-8FBEC5 611E 8FBEC5 <CJK>
-8FBEC6 6122 8FBEC6 <CJK>
-8FBEC7 612A 8FBEC7 <CJK>
-8FBEC8 612B 8FBEC8 <CJK>
-8FBEC9 6130 8FBEC9 <CJK>
-8FBECA 6131 8FBECA <CJK>
-8FBECB 6135 8FBECB <CJK>
-8FBECC 6136 8FBECC <CJK>
-8FBECD 6137 8FBECD <CJK>
-8FBECE 6139 8FBECE <CJK>
-8FBECF 6141 8FBECF <CJK>
-8FBED0 6145 8FBED0 <CJK>
-8FBED1 6146 8FBED1 <CJK>
-8FBED2 6149 8FBED2 <CJK>
-8FBED3 615E 8FBED3 <CJK>
-8FBED4 6160 8FBED4 <CJK>
-8FBED5 616C 8FBED5 <CJK>
-8FBED6 6172 8FBED6 <CJK>
-8FBED7 6178 8FBED7 <CJK>
-8FBED8 617B 8FBED8 <CJK>
-8FBED9 617C 8FBED9 <CJK>
-8FBEDA 617F 8FBEDA <CJK>
-8FBEDB 6180 8FBEDB <CJK>
-8FBEDC 6181 8FBEDC <CJK>
-8FBEDD 6183 8FBEDD <CJK>
-8FBEDE 6184 8FBEDE <CJK>
-8FBEDF 618B 8FBEDF <CJK>
-8FBEE0 618D 8FBEE0 <CJK>
-8FBEE1 6192 8FBEE1 <CJK>
-8FBEE2 6193 8FBEE2 <CJK>
-8FBEE3 6197 8FBEE3 <CJK>
-8FBEE4 6198 8FBEE4 <CJK>
-8FBEE5 619C 8FBEE5 <CJK>
-8FBEE6 619D 8FBEE6 <CJK>
-8FBEE7 619F 8FBEE7 <CJK>
-8FBEE8 61A0 8FBEE8 <CJK>
-8FBEE9 61A5 8FBEE9 <CJK>
-8FBEEA 61A8 8FBEEA <CJK>
-8FBEEB 61AA 8FBEEB <CJK>
-8FBEEC 61AD 8FBEEC <CJK>
-8FBEED 61B8 8FBEED <CJK>
-8FBEEE 61B9 8FBEEE <CJK>
-8FBEEF 61BC 8FBEEF <CJK>
-8FBEF0 61C0 8FBEF0 <CJK>
-8FBEF1 61C1 8FBEF1 <CJK>
-8FBEF2 61C2 8FBEF2 <CJK>
-8FBEF3 61CE 8FBEF3 <CJK>
-8FBEF4 61CF 8FBEF4 <CJK>
-8FBEF5 61D5 8FBEF5 <CJK>
-8FBEF6 61DC 8FBEF6 <CJK>
-8FBEF7 61DD 8FBEF7 <CJK>
-8FBEF8 61DE 8FBEF8 <CJK>
-8FBEF9 61DF 8FBEF9 <CJK>
-8FBEFA 61E1 8FBEFA <CJK>
-8FBEFB 61E2 8FBEFB <CJK>
-8FBEFC 61E7 8FBEFC <CJK>
-8FBEFD 61E9 8FBEFD <CJK>
-8FBEFE 61E5 8FBEFE <CJK>
-8FBFA1 61EC 8FBFA1 <CJK>
-8FBFA2 61ED 8FBFA2 <CJK>
-8FBFA3 61EF 8FBFA3 <CJK>
-8FBFA4 6201 8FBFA4 <CJK>
-8FBFA5 6203 8FBFA5 <CJK>
-8FBFA6 6204 8FBFA6 <CJK>
-8FBFA7 6207 8FBFA7 <CJK>
-8FBFA8 6213 8FBFA8 <CJK>
-8FBFA9 6215 8FBFA9 <CJK>
-8FBFAA 621C 8FBFAA <CJK>
-8FBFAB 6220 8FBFAB <CJK>
-8FBFAC 6222 8FBFAC <CJK>
-8FBFAD 6223 8FBFAD <CJK>
-8FBFAE 6227 8FBFAE <CJK>
-8FBFAF 6229 8FBFAF <CJK>
-8FBFB0 622B 8FBFB0 <CJK>
-8FBFB1 6239 8FBFB1 <CJK>
-8FBFB2 623D 8FBFB2 <CJK>
-8FBFB3 6242 8FBFB3 <CJK>
-8FBFB4 6243 8FBFB4 <CJK>
-8FBFB5 6244 8FBFB5 <CJK>
-8FBFB6 6246 8FBFB6 <CJK>
-8FBFB7 624C 8FBFB7 <CJK>
-8FBFB8 6250 8FBFB8 <CJK>
-8FBFB9 6251 8FBFB9 <CJK>
-8FBFBA 6252 8FBFBA <CJK>
-8FBFBB 6254 8FBFBB <CJK>
-8FBFBC 6256 8FBFBC <CJK>
-8FBFBD 625A 8FBFBD <CJK>
-8FBFBE 625C 8FBFBE <CJK>
-8FBFBF 6264 8FBFBF <CJK>
-8FBFC0 626D 8FBFC0 <CJK>
-8FBFC1 626F 8FBFC1 <CJK>
-8FBFC2 6273 8FBFC2 <CJK>
-8FBFC3 627A 8FBFC3 <CJK>
-8FBFC4 627D 8FBFC4 <CJK>
-8FBFC5 628D 8FBFC5 <CJK>
-8FBFC6 628E 8FBFC6 <CJK>
-8FBFC7 628F 8FBFC7 <CJK>
-8FBFC8 6290 8FBFC8 <CJK>
-8FBFC9 62A6 8FBFC9 <CJK>
-8FBFCA 62A8 8FBFCA <CJK>
-8FBFCB 62B3 8FBFCB <CJK>
-8FBFCC 62B6 8FBFCC <CJK>
-8FBFCD 62B7 8FBFCD <CJK>
-8FBFCE 62BA 8FBFCE <CJK>
-8FBFCF 62BE 8FBFCF <CJK>
-8FBFD0 62BF 8FBFD0 <CJK>
-8FBFD1 62C4 8FBFD1 <CJK>
-8FBFD2 62CE 8FBFD2 <CJK>
-8FBFD3 62D5 8FBFD3 <CJK>
-8FBFD4 62D6 8FBFD4 <CJK>
-8FBFD5 62DA 8FBFD5 <CJK>
-8FBFD6 62EA 8FBFD6 <CJK>
-8FBFD7 62F2 8FBFD7 <CJK>
-8FBFD8 62F4 8FBFD8 <CJK>
-8FBFD9 62FC 8FBFD9 <CJK>
-8FBFDA 62FD 8FBFDA <CJK>
-8FBFDB 6303 8FBFDB <CJK>
-8FBFDC 6304 8FBFDC <CJK>
-8FBFDD 630A 8FBFDD <CJK>
-8FBFDE 630B 8FBFDE <CJK>
-8FBFDF 630D 8FBFDF <CJK>
-8FBFE0 6310 8FBFE0 <CJK>
-8FBFE1 6313 8FBFE1 <CJK>
-8FBFE2 6316 8FBFE2 <CJK>
-8FBFE3 6318 8FBFE3 <CJK>
-8FBFE4 6329 8FBFE4 <CJK>
-8FBFE5 632A 8FBFE5 <CJK>
-8FBFE6 632D 8FBFE6 <CJK>
-8FBFE7 6335 8FBFE7 <CJK>
-8FBFE8 6336 8FBFE8 <CJK>
-8FBFE9 6339 8FBFE9 <CJK>
-8FBFEA 633C 8FBFEA <CJK>
-8FBFEB 6341 8FBFEB <CJK>
-8FBFEC 6342 8FBFEC <CJK>
-8FBFED 6343 8FBFED <CJK>
-8FBFEE 6344 8FBFEE <CJK>
-8FBFEF 6346 8FBFEF <CJK>
-8FBFF0 634A 8FBFF0 <CJK>
-8FBFF1 634B 8FBFF1 <CJK>
-8FBFF2 634E 8FBFF2 <CJK>
-8FBFF3 6352 8FBFF3 <CJK>
-8FBFF4 6353 8FBFF4 <CJK>
-8FBFF5 6354 8FBFF5 <CJK>
-8FBFF6 6358 8FBFF6 <CJK>
-8FBFF7 635B 8FBFF7 <CJK>
-8FBFF8 6365 8FBFF8 <CJK>
-8FBFF9 6366 8FBFF9 <CJK>
-8FBFFA 636C 8FBFFA <CJK>
-8FBFFB 636D 8FBFFB <CJK>
-8FBFFC 6371 8FBFFC <CJK>
-8FBFFD 6374 8FBFFD <CJK>
-8FBFFE 6375 8FBFFE <CJK>
-8FC0A1 6378 8FC0A1 <CJK>
-8FC0A2 637C 8FC0A2 <CJK>
-8FC0A3 637D 8FC0A3 <CJK>
-8FC0A4 637F 8FC0A4 <CJK>
-8FC0A5 6382 8FC0A5 <CJK>
-8FC0A6 6384 8FC0A6 <CJK>
-8FC0A7 6387 8FC0A7 <CJK>
-8FC0A8 638A 8FC0A8 <CJK>
-8FC0A9 6390 8FC0A9 <CJK>
-8FC0AA 6394 8FC0AA <CJK>
-8FC0AB 6395 8FC0AB <CJK>
-8FC0AC 6399 8FC0AC <CJK>
-8FC0AD 639A 8FC0AD <CJK>
-8FC0AE 639E 8FC0AE <CJK>
-8FC0AF 63A4 8FC0AF <CJK>
-8FC0B0 63A6 8FC0B0 <CJK>
-8FC0B1 63AD 8FC0B1 <CJK>
-8FC0B2 63AE 8FC0B2 <CJK>
-8FC0B3 63AF 8FC0B3 <CJK>
-8FC0B4 63BD 8FC0B4 <CJK>
-8FC0B5 63C1 8FC0B5 <CJK>
-8FC0B6 63C5 8FC0B6 <CJK>
-8FC0B7 63C8 8FC0B7 <CJK>
-8FC0B8 63CE 8FC0B8 <CJK>
-8FC0B9 63D1 8FC0B9 <CJK>
-8FC0BA 63D3 8FC0BA <CJK>
-8FC0BB 63D4 8FC0BB <CJK>
-8FC0BC 63D5 8FC0BC <CJK>
-8FC0BD 63DC 8FC0BD <CJK>
-8FC0BE 63E0 8FC0BE <CJK>
-8FC0BF 63E5 8FC0BF <CJK>
-8FC0C0 63EA 8FC0C0 <CJK>
-8FC0C1 63EC 8FC0C1 <CJK>
-8FC0C2 63F2 8FC0C2 <CJK>
-8FC0C3 63F3 8FC0C3 <CJK>
-8FC0C4 63F5 8FC0C4 <CJK>
-8FC0C5 63F8 8FC0C5 <CJK>
-8FC0C6 63F9 8FC0C6 <CJK>
-8FC0C7 6409 8FC0C7 <CJK>
-8FC0C8 640A 8FC0C8 <CJK>
-8FC0C9 6410 8FC0C9 <CJK>
-8FC0CA 6412 8FC0CA <CJK>
-8FC0CB 6414 8FC0CB <CJK>
-8FC0CC 6418 8FC0CC <CJK>
-8FC0CD 641E 8FC0CD <CJK>
-8FC0CE 6420 8FC0CE <CJK>
-8FC0CF 6422 8FC0CF <CJK>
-8FC0D0 6424 8FC0D0 <CJK>
-8FC0D1 6425 8FC0D1 <CJK>
-8FC0D2 6429 8FC0D2 <CJK>
-8FC0D3 642A 8FC0D3 <CJK>
-8FC0D4 642F 8FC0D4 <CJK>
-8FC0D5 6430 8FC0D5 <CJK>
-8FC0D6 6435 8FC0D6 <CJK>
-8FC0D7 643D 8FC0D7 <CJK>
-8FC0D8 643F 8FC0D8 <CJK>
-8FC0D9 644B 8FC0D9 <CJK>
-8FC0DA 644F 8FC0DA <CJK>
-8FC0DB 6451 8FC0DB <CJK>
-8FC0DC 6452 8FC0DC <CJK>
-8FC0DD 6453 8FC0DD <CJK>
-8FC0DE 6454 8FC0DE <CJK>
-8FC0DF 645A 8FC0DF <CJK>
-8FC0E0 645B 8FC0E0 <CJK>
-8FC0E1 645C 8FC0E1 <CJK>
-8FC0E2 645D 8FC0E2 <CJK>
-8FC0E3 645F 8FC0E3 <CJK>
-8FC0E4 6460 8FC0E4 <CJK>
-8FC0E5 6461 8FC0E5 <CJK>
-8FC0E6 6463 8FC0E6 <CJK>
-8FC0E7 646D 8FC0E7 <CJK>
-8FC0E8 6473 8FC0E8 <CJK>
-8FC0E9 6474 8FC0E9 <CJK>
-8FC0EA 647B 8FC0EA <CJK>
-8FC0EB 647D 8FC0EB <CJK>
-8FC0EC 6485 8FC0EC <CJK>
-8FC0ED 6487 8FC0ED <CJK>
-8FC0EE 648F 8FC0EE <CJK>
-8FC0EF 6490 8FC0EF <CJK>
-8FC0F0 6491 8FC0F0 <CJK>
-8FC0F1 6498 8FC0F1 <CJK>
-8FC0F2 6499 8FC0F2 <CJK>
-8FC0F3 649B 8FC0F3 <CJK>
-8FC0F4 649D 8FC0F4 <CJK>
-8FC0F5 649F 8FC0F5 <CJK>
-8FC0F6 64A1 8FC0F6 <CJK>
-8FC0F7 64A3 8FC0F7 <CJK>
-8FC0F8 64A6 8FC0F8 <CJK>
-8FC0F9 64A8 8FC0F9 <CJK>
-8FC0FA 64AC 8FC0FA <CJK>
-8FC0FB 64B3 8FC0FB <CJK>
-8FC0FC 64BD 8FC0FC <CJK>
-8FC0FD 64BE 8FC0FD <CJK>
-8FC0FE 64BF 8FC0FE <CJK>
-8FC1A1 64C4 8FC1A1 <CJK>
-8FC1A2 64C9 8FC1A2 <CJK>
-8FC1A3 64CA 8FC1A3 <CJK>
-8FC1A4 64CB 8FC1A4 <CJK>
-8FC1A5 64CC 8FC1A5 <CJK>
-8FC1A6 64CE 8FC1A6 <CJK>
-8FC1A7 64D0 8FC1A7 <CJK>
-8FC1A8 64D1 8FC1A8 <CJK>
-8FC1A9 64D5 8FC1A9 <CJK>
-8FC1AA 64D7 8FC1AA <CJK>
-8FC1AB 64E4 8FC1AB <CJK>
-8FC1AC 64E5 8FC1AC <CJK>
-8FC1AD 64E9 8FC1AD <CJK>
-8FC1AE 64EA 8FC1AE <CJK>
-8FC1AF 64ED 8FC1AF <CJK>
-8FC1B0 64F0 8FC1B0 <CJK>
-8FC1B1 64F5 8FC1B1 <CJK>
-8FC1B2 64F7 8FC1B2 <CJK>
-8FC1B3 64FB 8FC1B3 <CJK>
-8FC1B4 64FF 8FC1B4 <CJK>
-8FC1B5 6501 8FC1B5 <CJK>
-8FC1B6 6504 8FC1B6 <CJK>
-8FC1B7 6508 8FC1B7 <CJK>
-8FC1B8 6509 8FC1B8 <CJK>
-8FC1B9 650A 8FC1B9 <CJK>
-8FC1BA 650F 8FC1BA <CJK>
-8FC1BB 6513 8FC1BB <CJK>
-8FC1BC 6514 8FC1BC <CJK>
-8FC1BD 6516 8FC1BD <CJK>
-8FC1BE 6519 8FC1BE <CJK>
-8FC1BF 651B 8FC1BF <CJK>
-8FC1C0 651E 8FC1C0 <CJK>
-8FC1C1 651F 8FC1C1 <CJK>
-8FC1C2 6522 8FC1C2 <CJK>
-8FC1C3 6526 8FC1C3 <CJK>
-8FC1C4 6529 8FC1C4 <CJK>
-8FC1C5 652E 8FC1C5 <CJK>
-8FC1C6 6531 8FC1C6 <CJK>
-8FC1C7 653A 8FC1C7 <CJK>
-8FC1C8 653C 8FC1C8 <CJK>
-8FC1C9 653D 8FC1C9 <CJK>
-8FC1CA 6543 8FC1CA <CJK>
-8FC1CB 6547 8FC1CB <CJK>
-8FC1CC 6549 8FC1CC <CJK>
-8FC1CD 6550 8FC1CD <CJK>
-8FC1CE 6552 8FC1CE <CJK>
-8FC1CF 6554 8FC1CF <CJK>
-8FC1D0 655F 8FC1D0 <CJK>
-8FC1D1 6560 8FC1D1 <CJK>
-8FC1D2 6567 8FC1D2 <CJK>
-8FC1D3 656B 8FC1D3 <CJK>
-8FC1D4 657A 8FC1D4 <CJK>
-8FC1D5 657D 8FC1D5 <CJK>
-8FC1D6 6581 8FC1D6 <CJK>
-8FC1D7 6585 8FC1D7 <CJK>
-8FC1D8 658A 8FC1D8 <CJK>
-8FC1D9 6592 8FC1D9 <CJK>
-8FC1DA 6595 8FC1DA <CJK>
-8FC1DB 6598 8FC1DB <CJK>
-8FC1DC 659D 8FC1DC <CJK>
-8FC1DD 65A0 8FC1DD <CJK>
-8FC1DE 65A3 8FC1DE <CJK>
-8FC1DF 65A6 8FC1DF <CJK>
-8FC1E0 65AE 8FC1E0 <CJK>
-8FC1E1 65B2 8FC1E1 <CJK>
-8FC1E2 65B3 8FC1E2 <CJK>
-8FC1E3 65B4 8FC1E3 <CJK>
-8FC1E4 65BF 8FC1E4 <CJK>
-8FC1E5 65C2 8FC1E5 <CJK>
-8FC1E6 65C8 8FC1E6 <CJK>
-8FC1E7 65C9 8FC1E7 <CJK>
-8FC1E8 65CE 8FC1E8 <CJK>
-8FC1E9 65D0 8FC1E9 <CJK>
-8FC1EA 65D4 8FC1EA <CJK>
-8FC1EB 65D6 8FC1EB <CJK>
-8FC1EC 65D8 8FC1EC <CJK>
-8FC1ED 65DF 8FC1ED <CJK>
-8FC1EE 65F0 8FC1EE <CJK>
-8FC1EF 65F2 8FC1EF <CJK>
-8FC1F0 65F4 8FC1F0 <CJK>
-8FC1F1 65F5 8FC1F1 <CJK>
-8FC1F2 65F9 8FC1F2 <CJK>
-8FC1F3 65FE 8FC1F3 <CJK>
-8FC1F4 65FF 8FC1F4 <CJK>
-8FC1F5 6600 8FC1F5 <CJK>
-8FC1F6 6604 8FC1F6 <CJK>
-8FC1F7 6608 8FC1F7 <CJK>
-8FC1F8 6609 8FC1F8 <CJK>
-8FC1F9 660D 8FC1F9 <CJK>
-8FC1FA 6611 8FC1FA <CJK>
-8FC1FB 6612 8FC1FB <CJK>
-8FC1FC 6615 8FC1FC <CJK>
-8FC1FD 6616 8FC1FD <CJK>
-8FC1FE 661D 8FC1FE <CJK>
-8FC2A1 661E 8FC2A1 <CJK>
-8FC2A2 6621 8FC2A2 <CJK>
-8FC2A3 6622 8FC2A3 <CJK>
-8FC2A4 6623 8FC2A4 <CJK>
-8FC2A5 6624 8FC2A5 <CJK>
-8FC2A6 6626 8FC2A6 <CJK>
-8FC2A7 6629 8FC2A7 <CJK>
-8FC2A8 662A 8FC2A8 <CJK>
-8FC2A9 662B 8FC2A9 <CJK>
-8FC2AA 662C 8FC2AA <CJK>
-8FC2AB 662E 8FC2AB <CJK>
-8FC2AC 6630 8FC2AC <CJK>
-8FC2AD 6631 8FC2AD <CJK>
-8FC2AE 6633 8FC2AE <CJK>
-8FC2AF 6639 8FC2AF <CJK>
-8FC2B0 6637 8FC2B0 <CJK>
-8FC2B1 6640 8FC2B1 <CJK>
-8FC2B2 6645 8FC2B2 <CJK>
-8FC2B3 6646 8FC2B3 <CJK>
-8FC2B4 664A 8FC2B4 <CJK>
-8FC2B5 664C 8FC2B5 <CJK>
-8FC2B6 6651 8FC2B6 <CJK>
-8FC2B7 664E 8FC2B7 <CJK>
-8FC2B8 6657 8FC2B8 <CJK>
-8FC2B9 6658 8FC2B9 <CJK>
-8FC2BA 6659 8FC2BA <CJK>
-8FC2BB 665B 8FC2BB <CJK>
-8FC2BC 665C 8FC2BC <CJK>
-8FC2BD 6660 8FC2BD <CJK>
-8FC2BE 6661 8FC2BE <CJK>
-8FC2BF 66FB 8FC2BF <CJK>
-8FC2C0 666A 8FC2C0 <CJK>
-8FC2C1 666B 8FC2C1 <CJK>
-8FC2C2 666C 8FC2C2 <CJK>
-8FC2C3 667E 8FC2C3 <CJK>
-8FC2C4 6673 8FC2C4 <CJK>
-8FC2C5 6675 8FC2C5 <CJK>
-8FC2C6 667F 8FC2C6 <CJK>
-8FC2C7 6677 8FC2C7 <CJK>
-8FC2C8 6678 8FC2C8 <CJK>
-8FC2C9 6679 8FC2C9 <CJK>
-8FC2CA 667B 8FC2CA <CJK>
-8FC2CB 6680 8FC2CB <CJK>
-8FC2CC 667C 8FC2CC <CJK>
-8FC2CD 668B 8FC2CD <CJK>
-8FC2CE 668C 8FC2CE <CJK>
-8FC2CF 668D 8FC2CF <CJK>
-8FC2D0 6690 8FC2D0 <CJK>
-8FC2D1 6692 8FC2D1 <CJK>
-8FC2D2 6699 8FC2D2 <CJK>
-8FC2D3 669A 8FC2D3 <CJK>
-8FC2D4 669B 8FC2D4 <CJK>
-8FC2D5 669C 8FC2D5 <CJK>
-8FC2D6 669F 8FC2D6 <CJK>
-8FC2D7 66A0 8FC2D7 <CJK>
-8FC2D8 66A4 8FC2D8 <CJK>
-8FC2D9 66AD 8FC2D9 <CJK>
-8FC2DA 66B1 8FC2DA <CJK>
-8FC2DB 66B2 8FC2DB <CJK>
-8FC2DC 66B5 8FC2DC <CJK>
-8FC2DD 66BB 8FC2DD <CJK>
-8FC2DE 66BF 8FC2DE <CJK>
-8FC2DF 66C0 8FC2DF <CJK>
-8FC2E0 66C2 8FC2E0 <CJK>
-8FC2E1 66C3 8FC2E1 <CJK>
-8FC2E2 66C8 8FC2E2 <CJK>
-8FC2E3 66CC 8FC2E3 <CJK>
-8FC2E4 66CE 8FC2E4 <CJK>
-8FC2E5 66CF 8FC2E5 <CJK>
-8FC2E6 66D4 8FC2E6 <CJK>
-8FC2E7 66DB 8FC2E7 <CJK>
-8FC2E8 66DF 8FC2E8 <CJK>
-8FC2E9 66E8 8FC2E9 <CJK>
-8FC2EA 66EB 8FC2EA <CJK>
-8FC2EB 66EC 8FC2EB <CJK>
-8FC2EC 66EE 8FC2EC <CJK>
-8FC2ED 66FA 8FC2ED <CJK>
-8FC2EE 6705 8FC2EE <CJK>
-8FC2EF 6707 8FC2EF <CJK>
-8FC2F0 670E 8FC2F0 <CJK>
-8FC2F1 6713 8FC2F1 <CJK>
-8FC2F2 6719 8FC2F2 <CJK>
-8FC2F3 671C 8FC2F3 <CJK>
-8FC2F4 6720 8FC2F4 <CJK>
-8FC2F5 6722 8FC2F5 <CJK>
-8FC2F6 6733 8FC2F6 <CJK>
-8FC2F7 673E 8FC2F7 <CJK>
-8FC2F8 6745 8FC2F8 <CJK>
-8FC2F9 6747 8FC2F9 <CJK>
-8FC2FA 6748 8FC2FA <CJK>
-8FC2FB 674C 8FC2FB <CJK>
-8FC2FC 6754 8FC2FC <CJK>
-8FC2FD 6755 8FC2FD <CJK>
-8FC2FE 675D 8FC2FE <CJK>
-8FC3A1 6766 8FC3A1 <CJK>
-8FC3A2 676C 8FC3A2 <CJK>
-8FC3A3 676E 8FC3A3 <CJK>
-8FC3A4 6774 8FC3A4 <CJK>
-8FC3A5 6776 8FC3A5 <CJK>
-8FC3A6 677B 8FC3A6 <CJK>
-8FC3A7 6781 8FC3A7 <CJK>
-8FC3A8 6784 8FC3A8 <CJK>
-8FC3A9 678E 8FC3A9 <CJK>
-8FC3AA 678F 8FC3AA <CJK>
-8FC3AB 6791 8FC3AB <CJK>
-8FC3AC 6793 8FC3AC <CJK>
-8FC3AD 6796 8FC3AD <CJK>
-8FC3AE 6798 8FC3AE <CJK>
-8FC3AF 6799 8FC3AF <CJK>
-8FC3B0 679B 8FC3B0 <CJK>
-8FC3B1 67B0 8FC3B1 <CJK>
-8FC3B2 67B1 8FC3B2 <CJK>
-8FC3B3 67B2 8FC3B3 <CJK>
-8FC3B4 67B5 8FC3B4 <CJK>
-8FC3B5 67BB 8FC3B5 <CJK>
-8FC3B6 67BC 8FC3B6 <CJK>
-8FC3B7 67BD 8FC3B7 <CJK>
-8FC3B8 67F9 8FC3B8 <CJK>
-8FC3B9 67C0 8FC3B9 <CJK>
-8FC3BA 67C2 8FC3BA <CJK>
-8FC3BB 67C3 8FC3BB <CJK>
-8FC3BC 67C5 8FC3BC <CJK>
-8FC3BD 67C8 8FC3BD <CJK>
-8FC3BE 67C9 8FC3BE <CJK>
-8FC3BF 67D2 8FC3BF <CJK>
-8FC3C0 67D7 8FC3C0 <CJK>
-8FC3C1 67D9 8FC3C1 <CJK>
-8FC3C2 67DC 8FC3C2 <CJK>
-8FC3C3 67E1 8FC3C3 <CJK>
-8FC3C4 67E6 8FC3C4 <CJK>
-8FC3C5 67F0 8FC3C5 <CJK>
-8FC3C6 67F2 8FC3C6 <CJK>
-8FC3C7 67F6 8FC3C7 <CJK>
-8FC3C8 67F7 8FC3C8 <CJK>
-8FC3C9 6852 8FC3C9 <CJK>
-8FC3CA 6814 8FC3CA <CJK>
-8FC3CB 6819 8FC3CB <CJK>
-8FC3CC 681D 8FC3CC <CJK>
-8FC3CD 681F 8FC3CD <CJK>
-8FC3CE 6828 8FC3CE <CJK>
-8FC3CF 6827 8FC3CF <CJK>
-8FC3D0 682C 8FC3D0 <CJK>
-8FC3D1 682D 8FC3D1 <CJK>
-8FC3D2 682F 8FC3D2 <CJK>
-8FC3D3 6830 8FC3D3 <CJK>
-8FC3D4 6831 8FC3D4 <CJK>
-8FC3D5 6833 8FC3D5 <CJK>
-8FC3D6 683B 8FC3D6 <CJK>
-8FC3D7 683F 8FC3D7 <CJK>
-8FC3D8 6844 8FC3D8 <CJK>
-8FC3D9 6845 8FC3D9 <CJK>
-8FC3DA 684A 8FC3DA <CJK>
-8FC3DB 684C 8FC3DB <CJK>
-8FC3DC 6855 8FC3DC <CJK>
-8FC3DD 6857 8FC3DD <CJK>
-8FC3DE 6858 8FC3DE <CJK>
-8FC3DF 685B 8FC3DF <CJK>
-8FC3E0 686B 8FC3E0 <CJK>
-8FC3E1 686E 8FC3E1 <CJK>
-8FC3E2 686F 8FC3E2 <CJK>
-8FC3E3 6870 8FC3E3 <CJK>
-8FC3E4 6871 8FC3E4 <CJK>
-8FC3E5 6872 8FC3E5 <CJK>
-8FC3E6 6875 8FC3E6 <CJK>
-8FC3E7 6879 8FC3E7 <CJK>
-8FC3E8 687A 8FC3E8 <CJK>
-8FC3E9 687B 8FC3E9 <CJK>
-8FC3EA 687C 8FC3EA <CJK>
-8FC3EB 6882 8FC3EB <CJK>
-8FC3EC 6884 8FC3EC <CJK>
-8FC3ED 6886 8FC3ED <CJK>
-8FC3EE 6888 8FC3EE <CJK>
-8FC3EF 6896 8FC3EF <CJK>
-8FC3F0 6898 8FC3F0 <CJK>
-8FC3F1 689A 8FC3F1 <CJK>
-8FC3F2 689C 8FC3F2 <CJK>
-8FC3F3 68A1 8FC3F3 <CJK>
-8FC3F4 68A3 8FC3F4 <CJK>
-8FC3F5 68A5 8FC3F5 <CJK>
-8FC3F6 68A9 8FC3F6 <CJK>
-8FC3F7 68AA 8FC3F7 <CJK>
-8FC3F8 68AE 8FC3F8 <CJK>
-8FC3F9 68B2 8FC3F9 <CJK>
-8FC3FA 68BB 8FC3FA <CJK>
-8FC3FB 68C5 8FC3FB <CJK>
-8FC3FC 68C8 8FC3FC <CJK>
-8FC3FD 68CC 8FC3FD <CJK>
-8FC3FE 68CF 8FC3FE <CJK>
-8FC4A1 68D0 8FC4A1 <CJK>
-8FC4A2 68D1 8FC4A2 <CJK>
-8FC4A3 68D3 8FC4A3 <CJK>
-8FC4A4 68D6 8FC4A4 <CJK>
-8FC4A5 68D9 8FC4A5 <CJK>
-8FC4A6 68DC 8FC4A6 <CJK>
-8FC4A7 68DD 8FC4A7 <CJK>
-8FC4A8 68E5 8FC4A8 <CJK>
-8FC4A9 68E8 8FC4A9 <CJK>
-8FC4AA 68EA 8FC4AA <CJK>
-8FC4AB 68EB 8FC4AB <CJK>
-8FC4AC 68EC 8FC4AC <CJK>
-8FC4AD 68ED 8FC4AD <CJK>
-8FC4AE 68F0 8FC4AE <CJK>
-8FC4AF 68F1 8FC4AF <CJK>
-8FC4B0 68F5 8FC4B0 <CJK>
-8FC4B1 68F6 8FC4B1 <CJK>
-8FC4B2 68FB 8FC4B2 <CJK>
-8FC4B3 68FC 8FC4B3 <CJK>
-8FC4B4 68FD 8FC4B4 <CJK>
-8FC4B5 6906 8FC4B5 <CJK>
-8FC4B6 6909 8FC4B6 <CJK>
-8FC4B7 690A 8FC4B7 <CJK>
-8FC4B8 6910 8FC4B8 <CJK>
-8FC4B9 6911 8FC4B9 <CJK>
-8FC4BA 6913 8FC4BA <CJK>
-8FC4BB 6916 8FC4BB <CJK>
-8FC4BC 6917 8FC4BC <CJK>
-8FC4BD 6931 8FC4BD <CJK>
-8FC4BE 6933 8FC4BE <CJK>
-8FC4BF 6935 8FC4BF <CJK>
-8FC4C0 6938 8FC4C0 <CJK>
-8FC4C1 693B 8FC4C1 <CJK>
-8FC4C2 6942 8FC4C2 <CJK>
-8FC4C3 6945 8FC4C3 <CJK>
-8FC4C4 6949 8FC4C4 <CJK>
-8FC4C5 694E 8FC4C5 <CJK>
-8FC4C6 6957 8FC4C6 <CJK>
-8FC4C7 695B 8FC4C7 <CJK>
-8FC4C8 6963 8FC4C8 <CJK>
-8FC4C9 6964 8FC4C9 <CJK>
-8FC4CA 6965 8FC4CA <CJK>
-8FC4CB 6966 8FC4CB <CJK>
-8FC4CC 6968 8FC4CC <CJK>
-8FC4CD 6969 8FC4CD <CJK>
-8FC4CE 696C 8FC4CE <CJK>
-8FC4CF 6970 8FC4CF <CJK>
-8FC4D0 6971 8FC4D0 <CJK>
-8FC4D1 6972 8FC4D1 <CJK>
-8FC4D2 697A 8FC4D2 <CJK>
-8FC4D3 697B 8FC4D3 <CJK>
-8FC4D4 697F 8FC4D4 <CJK>
-8FC4D5 6980 8FC4D5 <CJK>
-8FC4D6 698D 8FC4D6 <CJK>
-8FC4D7 6992 8FC4D7 <CJK>
-8FC4D8 6996 8FC4D8 <CJK>
-8FC4D9 6998 8FC4D9 <CJK>
-8FC4DA 69A1 8FC4DA <CJK>
-8FC4DB 69A5 8FC4DB <CJK>
-8FC4DC 69A6 8FC4DC <CJK>
-8FC4DD 69A8 8FC4DD <CJK>
-8FC4DE 69AB 8FC4DE <CJK>
-8FC4DF 69AD 8FC4DF <CJK>
-8FC4E0 69AF 8FC4E0 <CJK>
-8FC4E1 69B7 8FC4E1 <CJK>
-8FC4E2 69B8 8FC4E2 <CJK>
-8FC4E3 69BA 8FC4E3 <CJK>
-8FC4E4 69BC 8FC4E4 <CJK>
-8FC4E5 69C5 8FC4E5 <CJK>
-8FC4E6 69C8 8FC4E6 <CJK>
-8FC4E7 69D1 8FC4E7 <CJK>
-8FC4E8 69D6 8FC4E8 <CJK>
-8FC4E9 69D7 8FC4E9 <CJK>
-8FC4EA 69E2 8FC4EA <CJK>
-8FC4EB 69E5 8FC4EB <CJK>
-8FC4EC 69EE 8FC4EC <CJK>
-8FC4ED 69EF 8FC4ED <CJK>
-8FC4EE 69F1 8FC4EE <CJK>
-8FC4EF 69F3 8FC4EF <CJK>
-8FC4F0 69F5 8FC4F0 <CJK>
-8FC4F1 69FE 8FC4F1 <CJK>
-8FC4F2 6A00 8FC4F2 <CJK>
-8FC4F3 6A01 8FC4F3 <CJK>
-8FC4F4 6A03 8FC4F4 <CJK>
-8FC4F5 6A0F 8FC4F5 <CJK>
-8FC4F6 6A11 8FC4F6 <CJK>
-8FC4F7 6A15 8FC4F7 <CJK>
-8FC4F8 6A1A 8FC4F8 <CJK>
-8FC4F9 6A1D 8FC4F9 <CJK>
-8FC4FA 6A20 8FC4FA <CJK>
-8FC4FB 6A24 8FC4FB <CJK>
-8FC4FC 6A28 8FC4FC <CJK>
-8FC4FD 6A30 8FC4FD <CJK>
-8FC4FE 6A32 8FC4FE <CJK>
-8FC5A1 6A34 8FC5A1 <CJK>
-8FC5A2 6A37 8FC5A2 <CJK>
-8FC5A3 6A3B 8FC5A3 <CJK>
-8FC5A4 6A3E 8FC5A4 <CJK>
-8FC5A5 6A3F 8FC5A5 <CJK>
-8FC5A6 6A45 8FC5A6 <CJK>
-8FC5A7 6A46 8FC5A7 <CJK>
-8FC5A8 6A49 8FC5A8 <CJK>
-8FC5A9 6A4A 8FC5A9 <CJK>
-8FC5AA 6A4E 8FC5AA <CJK>
-8FC5AB 6A50 8FC5AB <CJK>
-8FC5AC 6A51 8FC5AC <CJK>
-8FC5AD 6A52 8FC5AD <CJK>
-8FC5AE 6A55 8FC5AE <CJK>
-8FC5AF 6A56 8FC5AF <CJK>
-8FC5B0 6A5B 8FC5B0 <CJK>
-8FC5B1 6A64 8FC5B1 <CJK>
-8FC5B2 6A67 8FC5B2 <CJK>
-8FC5B3 6A6A 8FC5B3 <CJK>
-8FC5B4 6A71 8FC5B4 <CJK>
-8FC5B5 6A73 8FC5B5 <CJK>
-8FC5B6 6A7E 8FC5B6 <CJK>
-8FC5B7 6A81 8FC5B7 <CJK>
-8FC5B8 6A83 8FC5B8 <CJK>
-8FC5B9 6A86 8FC5B9 <CJK>
-8FC5BA 6A87 8FC5BA <CJK>
-8FC5BB 6A89 8FC5BB <CJK>
-8FC5BC 6A8B 8FC5BC <CJK>
-8FC5BD 6A91 8FC5BD <CJK>
-8FC5BE 6A9B 8FC5BE <CJK>
-8FC5BF 6A9D 8FC5BF <CJK>
-8FC5C0 6A9E 8FC5C0 <CJK>
-8FC5C1 6A9F 8FC5C1 <CJK>
-8FC5C2 6AA5 8FC5C2 <CJK>
-8FC5C3 6AAB 8FC5C3 <CJK>
-8FC5C4 6AAF 8FC5C4 <CJK>
-8FC5C5 6AB0 8FC5C5 <CJK>
-8FC5C6 6AB1 8FC5C6 <CJK>
-8FC5C7 6AB4 8FC5C7 <CJK>
-8FC5C8 6ABD 8FC5C8 <CJK>
-8FC5C9 6ABE 8FC5C9 <CJK>
-8FC5CA 6ABF 8FC5CA <CJK>
-8FC5CB 6AC6 8FC5CB <CJK>
-8FC5CC 6AC9 8FC5CC <CJK>
-8FC5CD 6AC8 8FC5CD <CJK>
-8FC5CE 6ACC 8FC5CE <CJK>
-8FC5CF 6AD0 8FC5CF <CJK>
-8FC5D0 6AD4 8FC5D0 <CJK>
-8FC5D1 6AD5 8FC5D1 <CJK>
-8FC5D2 6AD6 8FC5D2 <CJK>
-8FC5D3 6ADC 8FC5D3 <CJK>
-8FC5D4 6ADD 8FC5D4 <CJK>
-8FC5D5 6AE4 8FC5D5 <CJK>
-8FC5D6 6AE7 8FC5D6 <CJK>
-8FC5D7 6AEC 8FC5D7 <CJK>
-8FC5D8 6AF0 8FC5D8 <CJK>
-8FC5D9 6AF1 8FC5D9 <CJK>
-8FC5DA 6AF2 8FC5DA <CJK>
-8FC5DB 6AFC 8FC5DB <CJK>
-8FC5DC 6AFD 8FC5DC <CJK>
-8FC5DD 6B02 8FC5DD <CJK>
-8FC5DE 6B03 8FC5DE <CJK>
-8FC5DF 6B06 8FC5DF <CJK>
-8FC5E0 6B07 8FC5E0 <CJK>
-8FC5E1 6B09 8FC5E1 <CJK>
-8FC5E2 6B0F 8FC5E2 <CJK>
-8FC5E3 6B10 8FC5E3 <CJK>
-8FC5E4 6B11 8FC5E4 <CJK>
-8FC5E5 6B17 8FC5E5 <CJK>
-8FC5E6 6B1B 8FC5E6 <CJK>
-8FC5E7 6B1E 8FC5E7 <CJK>
-8FC5E8 6B24 8FC5E8 <CJK>
-8FC5E9 6B28 8FC5E9 <CJK>
-8FC5EA 6B2B 8FC5EA <CJK>
-8FC5EB 6B2C 8FC5EB <CJK>
-8FC5EC 6B2F 8FC5EC <CJK>
-8FC5ED 6B35 8FC5ED <CJK>
-8FC5EE 6B36 8FC5EE <CJK>
-8FC5EF 6B3B 8FC5EF <CJK>
-8FC5F0 6B3F 8FC5F0 <CJK>
-8FC5F1 6B46 8FC5F1 <CJK>
-8FC5F2 6B4A 8FC5F2 <CJK>
-8FC5F3 6B4D 8FC5F3 <CJK>
-8FC5F4 6B52 8FC5F4 <CJK>
-8FC5F5 6B56 8FC5F5 <CJK>
-8FC5F6 6B58 8FC5F6 <CJK>
-8FC5F7 6B5D 8FC5F7 <CJK>
-8FC5F8 6B60 8FC5F8 <CJK>
-8FC5F9 6B67 8FC5F9 <CJK>
-8FC5FA 6B6B 8FC5FA <CJK>
-8FC5FB 6B6E 8FC5FB <CJK>
-8FC5FC 6B70 8FC5FC <CJK>
-8FC5FD 6B75 8FC5FD <CJK>
-8FC5FE 6B7D 8FC5FE <CJK>
-8FC6A1 6B7E 8FC6A1 <CJK>
-8FC6A2 6B82 8FC6A2 <CJK>
-8FC6A3 6B85 8FC6A3 <CJK>
-8FC6A4 6B97 8FC6A4 <CJK>
-8FC6A5 6B9B 8FC6A5 <CJK>
-8FC6A6 6B9F 8FC6A6 <CJK>
-8FC6A7 6BA0 8FC6A7 <CJK>
-8FC6A8 6BA2 8FC6A8 <CJK>
-8FC6A9 6BA3 8FC6A9 <CJK>
-8FC6AA 6BA8 8FC6AA <CJK>
-8FC6AB 6BA9 8FC6AB <CJK>
-8FC6AC 6BAC 8FC6AC <CJK>
-8FC6AD 6BAD 8FC6AD <CJK>
-8FC6AE 6BAE 8FC6AE <CJK>
-8FC6AF 6BB0 8FC6AF <CJK>
-8FC6B0 6BB8 8FC6B0 <CJK>
-8FC6B1 6BB9 8FC6B1 <CJK>
-8FC6B2 6BBD 8FC6B2 <CJK>
-8FC6B3 6BBE 8FC6B3 <CJK>
-8FC6B4 6BC3 8FC6B4 <CJK>
-8FC6B5 6BC4 8FC6B5 <CJK>
-8FC6B6 6BC9 8FC6B6 <CJK>
-8FC6B7 6BCC 8FC6B7 <CJK>
-8FC6B8 6BD6 8FC6B8 <CJK>
-8FC6B9 6BDA 8FC6B9 <CJK>
-8FC6BA 6BE1 8FC6BA <CJK>
-8FC6BB 6BE3 8FC6BB <CJK>
-8FC6BC 6BE6 8FC6BC <CJK>
-8FC6BD 6BE7 8FC6BD <CJK>
-8FC6BE 6BEE 8FC6BE <CJK>
-8FC6BF 6BF1 8FC6BF <CJK>
-8FC6C0 6BF7 8FC6C0 <CJK>
-8FC6C1 6BF9 8FC6C1 <CJK>
-8FC6C2 6BFF 8FC6C2 <CJK>
-8FC6C3 6C02 8FC6C3 <CJK>
-8FC6C4 6C04 8FC6C4 <CJK>
-8FC6C5 6C05 8FC6C5 <CJK>
-8FC6C6 6C09 8FC6C6 <CJK>
-8FC6C7 6C0D 8FC6C7 <CJK>
-8FC6C8 6C0E 8FC6C8 <CJK>
-8FC6C9 6C10 8FC6C9 <CJK>
-8FC6CA 6C12 8FC6CA <CJK>
-8FC6CB 6C19 8FC6CB <CJK>
-8FC6CC 6C1F 8FC6CC <CJK>
-8FC6CD 6C26 8FC6CD <CJK>
-8FC6CE 6C27 8FC6CE <CJK>
-8FC6CF 6C28 8FC6CF <CJK>
-8FC6D0 6C2C 8FC6D0 <CJK>
-8FC6D1 6C2E 8FC6D1 <CJK>
-8FC6D2 6C33 8FC6D2 <CJK>
-8FC6D3 6C35 8FC6D3 <CJK>
-8FC6D4 6C36 8FC6D4 <CJK>
-8FC6D5 6C3A 8FC6D5 <CJK>
-8FC6D6 6C3B 8FC6D6 <CJK>
-8FC6D7 6C3F 8FC6D7 <CJK>
-8FC6D8 6C4A 8FC6D8 <CJK>
-8FC6D9 6C4B 8FC6D9 <CJK>
-8FC6DA 6C4D 8FC6DA <CJK>
-8FC6DB 6C4F 8FC6DB <CJK>
-8FC6DC 6C52 8FC6DC <CJK>
-8FC6DD 6C54 8FC6DD <CJK>
-8FC6DE 6C59 8FC6DE <CJK>
-8FC6DF 6C5B 8FC6DF <CJK>
-8FC6E0 6C5C 8FC6E0 <CJK>
-8FC6E1 6C6B 8FC6E1 <CJK>
-8FC6E2 6C6D 8FC6E2 <CJK>
-8FC6E3 6C6F 8FC6E3 <CJK>
-8FC6E4 6C74 8FC6E4 <CJK>
-8FC6E5 6C76 8FC6E5 <CJK>
-8FC6E6 6C78 8FC6E6 <CJK>
-8FC6E7 6C79 8FC6E7 <CJK>
-8FC6E8 6C7B 8FC6E8 <CJK>
-8FC6E9 6C85 8FC6E9 <CJK>
-8FC6EA 6C86 8FC6EA <CJK>
-8FC6EB 6C87 8FC6EB <CJK>
-8FC6EC 6C89 8FC6EC <CJK>
-8FC6ED 6C94 8FC6ED <CJK>
-8FC6EE 6C95 8FC6EE <CJK>
-8FC6EF 6C97 8FC6EF <CJK>
-8FC6F0 6C98 8FC6F0 <CJK>
-8FC6F1 6C9C 8FC6F1 <CJK>
-8FC6F2 6C9F 8FC6F2 <CJK>
-8FC6F3 6CB0 8FC6F3 <CJK>
-8FC6F4 6CB2 8FC6F4 <CJK>
-8FC6F5 6CB4 8FC6F5 <CJK>
-8FC6F6 6CC2 8FC6F6 <CJK>
-8FC6F7 6CC6 8FC6F7 <CJK>
-8FC6F8 6CCD 8FC6F8 <CJK>
-8FC6F9 6CCF 8FC6F9 <CJK>
-8FC6FA 6CD0 8FC6FA <CJK>
-8FC6FB 6CD1 8FC6FB <CJK>
-8FC6FC 6CD2 8FC6FC <CJK>
-8FC6FD 6CD4 8FC6FD <CJK>
-8FC6FE 6CD6 8FC6FE <CJK>
-8FC7A1 6CDA 8FC7A1 <CJK>
-8FC7A2 6CDC 8FC7A2 <CJK>
-8FC7A3 6CE0 8FC7A3 <CJK>
-8FC7A4 6CE7 8FC7A4 <CJK>
-8FC7A5 6CE9 8FC7A5 <CJK>
-8FC7A6 6CEB 8FC7A6 <CJK>
-8FC7A7 6CEC 8FC7A7 <CJK>
-8FC7A8 6CEE 8FC7A8 <CJK>
-8FC7A9 6CF2 8FC7A9 <CJK>
-8FC7AA 6CF4 8FC7AA <CJK>
-8FC7AB 6D04 8FC7AB <CJK>
-8FC7AC 6D07 8FC7AC <CJK>
-8FC7AD 6D0A 8FC7AD <CJK>
-8FC7AE 6D0E 8FC7AE <CJK>
-8FC7AF 6D0F 8FC7AF <CJK>
-8FC7B0 6D11 8FC7B0 <CJK>
-8FC7B1 6D13 8FC7B1 <CJK>
-8FC7B2 6D1A 8FC7B2 <CJK>
-8FC7B3 6D26 8FC7B3 <CJK>
-8FC7B4 6D27 8FC7B4 <CJK>
-8FC7B5 6D28 8FC7B5 <CJK>
-8FC7B6 6C67 8FC7B6 <CJK>
-8FC7B7 6D2E 8FC7B7 <CJK>
-8FC7B8 6D2F 8FC7B8 <CJK>
-8FC7B9 6D31 8FC7B9 <CJK>
-8FC7BA 6D39 8FC7BA <CJK>
-8FC7BB 6D3C 8FC7BB <CJK>
-8FC7BC 6D3F 8FC7BC <CJK>
-8FC7BD 6D57 8FC7BD <CJK>
-8FC7BE 6D5E 8FC7BE <CJK>
-8FC7BF 6D5F 8FC7BF <CJK>
-8FC7C0 6D61 8FC7C0 <CJK>
-8FC7C1 6D65 8FC7C1 <CJK>
-8FC7C2 6D67 8FC7C2 <CJK>
-8FC7C3 6D6F 8FC7C3 <CJK>
-8FC7C4 6D70 8FC7C4 <CJK>
-8FC7C5 6D7C 8FC7C5 <CJK>
-8FC7C6 6D82 8FC7C6 <CJK>
-8FC7C7 6D87 8FC7C7 <CJK>
-8FC7C8 6D91 8FC7C8 <CJK>
-8FC7C9 6D92 8FC7C9 <CJK>
-8FC7CA 6D94 8FC7CA <CJK>
-8FC7CB 6D96 8FC7CB <CJK>
-8FC7CC 6D97 8FC7CC <CJK>
-8FC7CD 6D98 8FC7CD <CJK>
-8FC7CE 6DAA 8FC7CE <CJK>
-8FC7CF 6DAC 8FC7CF <CJK>
-8FC7D0 6DB4 8FC7D0 <CJK>
-8FC7D1 6DB7 8FC7D1 <CJK>
-8FC7D2 6DB9 8FC7D2 <CJK>
-8FC7D3 6DBD 8FC7D3 <CJK>
-8FC7D4 6DBF 8FC7D4 <CJK>
-8FC7D5 6DC4 8FC7D5 <CJK>
-8FC7D6 6DC8 8FC7D6 <CJK>
-8FC7D7 6DCA 8FC7D7 <CJK>
-8FC7D8 6DCE 8FC7D8 <CJK>
-8FC7D9 6DCF 8FC7D9 <CJK>
-8FC7DA 6DD6 8FC7DA <CJK>
-8FC7DB 6DDB 8FC7DB <CJK>
-8FC7DC 6DDD 8FC7DC <CJK>
-8FC7DD 6DDF 8FC7DD <CJK>
-8FC7DE 6DE0 8FC7DE <CJK>
-8FC7DF 6DE2 8FC7DF <CJK>
-8FC7E0 6DE5 8FC7E0 <CJK>
-8FC7E1 6DE9 8FC7E1 <CJK>
-8FC7E2 6DEF 8FC7E2 <CJK>
-8FC7E3 6DF0 8FC7E3 <CJK>
-8FC7E4 6DF4 8FC7E4 <CJK>
-8FC7E5 6DF6 8FC7E5 <CJK>
-8FC7E6 6DFC 8FC7E6 <CJK>
-8FC7E7 6E00 8FC7E7 <CJK>
-8FC7E8 6E04 8FC7E8 <CJK>
-8FC7E9 6E1E 8FC7E9 <CJK>
-8FC7EA 6E22 8FC7EA <CJK>
-8FC7EB 6E27 8FC7EB <CJK>
-8FC7EC 6E32 8FC7EC <CJK>
-8FC7ED 6E36 8FC7ED <CJK>
-8FC7EE 6E39 8FC7EE <CJK>
-8FC7EF 6E3B 8FC7EF <CJK>
-8FC7F0 6E3C 8FC7F0 <CJK>
-8FC7F1 6E44 8FC7F1 <CJK>
-8FC7F2 6E45 8FC7F2 <CJK>
-8FC7F3 6E48 8FC7F3 <CJK>
-8FC7F4 6E49 8FC7F4 <CJK>
-8FC7F5 6E4B 8FC7F5 <CJK>
-8FC7F6 6E4F 8FC7F6 <CJK>
-8FC7F7 6E51 8FC7F7 <CJK>
-8FC7F8 6E52 8FC7F8 <CJK>
-8FC7F9 6E53 8FC7F9 <CJK>
-8FC7FA 6E54 8FC7FA <CJK>
-8FC7FB 6E57 8FC7FB <CJK>
-8FC7FC 6E5C 8FC7FC <CJK>
-8FC7FD 6E5D 8FC7FD <CJK>
-8FC7FE 6E5E 8FC7FE <CJK>
-8FC8A1 6E62 8FC8A1 <CJK>
-8FC8A2 6E63 8FC8A2 <CJK>
-8FC8A3 6E68 8FC8A3 <CJK>
-8FC8A4 6E73 8FC8A4 <CJK>
-8FC8A5 6E7B 8FC8A5 <CJK>
-8FC8A6 6E7D 8FC8A6 <CJK>
-8FC8A7 6E8D 8FC8A7 <CJK>
-8FC8A8 6E93 8FC8A8 <CJK>
-8FC8A9 6E99 8FC8A9 <CJK>
-8FC8AA 6EA0 8FC8AA <CJK>
-8FC8AB 6EA7 8FC8AB <CJK>
-8FC8AC 6EAD 8FC8AC <CJK>
-8FC8AD 6EAE 8FC8AD <CJK>
-8FC8AE 6EB1 8FC8AE <CJK>
-8FC8AF 6EB3 8FC8AF <CJK>
-8FC8B0 6EBB 8FC8B0 <CJK>
-8FC8B1 6EBF 8FC8B1 <CJK>
-8FC8B2 6EC0 8FC8B2 <CJK>
-8FC8B3 6EC1 8FC8B3 <CJK>
-8FC8B4 6EC3 8FC8B4 <CJK>
-8FC8B5 6EC7 8FC8B5 <CJK>
-8FC8B6 6EC8 8FC8B6 <CJK>
-8FC8B7 6ECA 8FC8B7 <CJK>
-8FC8B8 6ECD 8FC8B8 <CJK>
-8FC8B9 6ECE 8FC8B9 <CJK>
-8FC8BA 6ECF 8FC8BA <CJK>
-8FC8BB 6EEB 8FC8BB <CJK>
-8FC8BC 6EED 8FC8BC <CJK>
-8FC8BD 6EEE 8FC8BD <CJK>
-8FC8BE 6EF9 8FC8BE <CJK>
-8FC8BF 6EFB 8FC8BF <CJK>
-8FC8C0 6EFD 8FC8C0 <CJK>
-8FC8C1 6F04 8FC8C1 <CJK>
-8FC8C2 6F08 8FC8C2 <CJK>
-8FC8C3 6F0A 8FC8C3 <CJK>
-8FC8C4 6F0C 8FC8C4 <CJK>
-8FC8C5 6F0D 8FC8C5 <CJK>
-8FC8C6 6F16 8FC8C6 <CJK>
-8FC8C7 6F18 8FC8C7 <CJK>
-8FC8C8 6F1A 8FC8C8 <CJK>
-8FC8C9 6F1B 8FC8C9 <CJK>
-8FC8CA 6F26 8FC8CA <CJK>
-8FC8CB 6F29 8FC8CB <CJK>
-8FC8CC 6F2A 8FC8CC <CJK>
-8FC8CD 6F2F 8FC8CD <CJK>
-8FC8CE 6F30 8FC8CE <CJK>
-8FC8CF 6F33 8FC8CF <CJK>
-8FC8D0 6F36 8FC8D0 <CJK>
-8FC8D1 6F3B 8FC8D1 <CJK>
-8FC8D2 6F3C 8FC8D2 <CJK>
-8FC8D3 6F2D 8FC8D3 <CJK>
-8FC8D4 6F4F 8FC8D4 <CJK>
-8FC8D5 6F51 8FC8D5 <CJK>
-8FC8D6 6F52 8FC8D6 <CJK>
-8FC8D7 6F53 8FC8D7 <CJK>
-8FC8D8 6F57 8FC8D8 <CJK>
-8FC8D9 6F59 8FC8D9 <CJK>
-8FC8DA 6F5A 8FC8DA <CJK>
-8FC8DB 6F5D 8FC8DB <CJK>
-8FC8DC 6F5E 8FC8DC <CJK>
-8FC8DD 6F61 8FC8DD <CJK>
-8FC8DE 6F62 8FC8DE <CJK>
-8FC8DF 6F68 8FC8DF <CJK>
-8FC8E0 6F6C 8FC8E0 <CJK>
-8FC8E1 6F7D 8FC8E1 <CJK>
-8FC8E2 6F7E 8FC8E2 <CJK>
-8FC8E3 6F83 8FC8E3 <CJK>
-8FC8E4 6F87 8FC8E4 <CJK>
-8FC8E5 6F88 8FC8E5 <CJK>
-8FC8E6 6F8B 8FC8E6 <CJK>
-8FC8E7 6F8C 8FC8E7 <CJK>
-8FC8E8 6F8D 8FC8E8 <CJK>
-8FC8E9 6F90 8FC8E9 <CJK>
-8FC8EA 6F92 8FC8EA <CJK>
-8FC8EB 6F93 8FC8EB <CJK>
-8FC8EC 6F94 8FC8EC <CJK>
-8FC8ED 6F96 8FC8ED <CJK>
-8FC8EE 6F9A 8FC8EE <CJK>
-8FC8EF 6F9F 8FC8EF <CJK>
-8FC8F0 6FA0 8FC8F0 <CJK>
-8FC8F1 6FA5 8FC8F1 <CJK>
-8FC8F2 6FA6 8FC8F2 <CJK>
-8FC8F3 6FA7 8FC8F3 <CJK>
-8FC8F4 6FA8 8FC8F4 <CJK>
-8FC8F5 6FAE 8FC8F5 <CJK>
-8FC8F6 6FAF 8FC8F6 <CJK>
-8FC8F7 6FB0 8FC8F7 <CJK>
-8FC8F8 6FB5 8FC8F8 <CJK>
-8FC8F9 6FB6 8FC8F9 <CJK>
-8FC8FA 6FBC 8FC8FA <CJK>
-8FC8FB 6FC5 8FC8FB <CJK>
-8FC8FC 6FC7 8FC8FC <CJK>
-8FC8FD 6FC8 8FC8FD <CJK>
-8FC8FE 6FCA 8FC8FE <CJK>
-8FC9A1 6FDA 8FC9A1 <CJK>
-8FC9A2 6FDE 8FC9A2 <CJK>
-8FC9A3 6FE8 8FC9A3 <CJK>
-8FC9A4 6FE9 8FC9A4 <CJK>
-8FC9A5 6FF0 8FC9A5 <CJK>
-8FC9A6 6FF5 8FC9A6 <CJK>
-8FC9A7 6FF9 8FC9A7 <CJK>
-8FC9A8 6FFC 8FC9A8 <CJK>
-8FC9A9 6FFD 8FC9A9 <CJK>
-8FC9AA 7000 8FC9AA <CJK>
-8FC9AB 7005 8FC9AB <CJK>
-8FC9AC 7006 8FC9AC <CJK>
-8FC9AD 7007 8FC9AD <CJK>
-8FC9AE 700D 8FC9AE <CJK>
-8FC9AF 7017 8FC9AF <CJK>
-8FC9B0 7020 8FC9B0 <CJK>
-8FC9B1 7023 8FC9B1 <CJK>
-8FC9B2 702F 8FC9B2 <CJK>
-8FC9B3 7034 8FC9B3 <CJK>
-8FC9B4 7037 8FC9B4 <CJK>
-8FC9B5 7039 8FC9B5 <CJK>
-8FC9B6 703C 8FC9B6 <CJK>
-8FC9B7 7043 8FC9B7 <CJK>
-8FC9B8 7044 8FC9B8 <CJK>
-8FC9B9 7048 8FC9B9 <CJK>
-8FC9BA 7049 8FC9BA <CJK>
-8FC9BB 704A 8FC9BB <CJK>
-8FC9BC 704B 8FC9BC <CJK>
-8FC9BD 7054 8FC9BD <CJK>
-8FC9BE 7055 8FC9BE <CJK>
-8FC9BF 705D 8FC9BF <CJK>
-8FC9C0 705E 8FC9C0 <CJK>
-8FC9C1 704E 8FC9C1 <CJK>
-8FC9C2 7064 8FC9C2 <CJK>
-8FC9C3 7065 8FC9C3 <CJK>
-8FC9C4 706C 8FC9C4 <CJK>
-8FC9C5 706E 8FC9C5 <CJK>
-8FC9C6 7075 8FC9C6 <CJK>
-8FC9C7 7076 8FC9C7 <CJK>
-8FC9C8 707E 8FC9C8 <CJK>
-8FC9C9 7081 8FC9C9 <CJK>
-8FC9CA 7085 8FC9CA <CJK>
-8FC9CB 7086 8FC9CB <CJK>
-8FC9CC 7094 8FC9CC <CJK>
-8FC9CD 7095 8FC9CD <CJK>
-8FC9CE 7096 8FC9CE <CJK>
-8FC9CF 7097 8FC9CF <CJK>
-8FC9D0 7098 8FC9D0 <CJK>
-8FC9D1 709B 8FC9D1 <CJK>
-8FC9D2 70A4 8FC9D2 <CJK>
-8FC9D3 70AB 8FC9D3 <CJK>
-8FC9D4 70B0 8FC9D4 <CJK>
-8FC9D5 70B1 8FC9D5 <CJK>
-8FC9D6 70B4 8FC9D6 <CJK>
-8FC9D7 70B7 8FC9D7 <CJK>
-8FC9D8 70CA 8FC9D8 <CJK>
-8FC9D9 70D1 8FC9D9 <CJK>
-8FC9DA 70D3 8FC9DA <CJK>
-8FC9DB 70D4 8FC9DB <CJK>
-8FC9DC 70D5 8FC9DC <CJK>
-8FC9DD 70D6 8FC9DD <CJK>
-8FC9DE 70D8 8FC9DE <CJK>
-8FC9DF 70DC 8FC9DF <CJK>
-8FC9E0 70E4 8FC9E0 <CJK>
-8FC9E1 70FA 8FC9E1 <CJK>
-8FC9E2 7103 8FC9E2 <CJK>
-8FC9E3 7104 8FC9E3 <CJK>
-8FC9E4 7105 8FC9E4 <CJK>
-8FC9E5 7106 8FC9E5 <CJK>
-8FC9E6 7107 8FC9E6 <CJK>
-8FC9E7 710B 8FC9E7 <CJK>
-8FC9E8 710C 8FC9E8 <CJK>
-8FC9E9 710F 8FC9E9 <CJK>
-8FC9EA 711E 8FC9EA <CJK>
-8FC9EB 7120 8FC9EB <CJK>
-8FC9EC 712B 8FC9EC <CJK>
-8FC9ED 712D 8FC9ED <CJK>
-8FC9EE 712F 8FC9EE <CJK>
-8FC9EF 7130 8FC9EF <CJK>
-8FC9F0 7131 8FC9F0 <CJK>
-8FC9F1 7138 8FC9F1 <CJK>
-8FC9F2 7141 8FC9F2 <CJK>
-8FC9F3 7145 8FC9F3 <CJK>
-8FC9F4 7146 8FC9F4 <CJK>
-8FC9F5 7147 8FC9F5 <CJK>
-8FC9F6 714A 8FC9F6 <CJK>
-8FC9F7 714B 8FC9F7 <CJK>
-8FC9F8 7150 8FC9F8 <CJK>
-8FC9F9 7152 8FC9F9 <CJK>
-8FC9FA 7157 8FC9FA <CJK>
-8FC9FB 715A 8FC9FB <CJK>
-8FC9FC 715C 8FC9FC <CJK>
-8FC9FD 715E 8FC9FD <CJK>
-8FC9FE 7160 8FC9FE <CJK>
-8FCAA1 7168 8FCAA1 <CJK>
-8FCAA2 7179 8FCAA2 <CJK>
-8FCAA3 7180 8FCAA3 <CJK>
-8FCAA4 7185 8FCAA4 <CJK>
-8FCAA5 7187 8FCAA5 <CJK>
-8FCAA6 718C 8FCAA6 <CJK>
-8FCAA7 7192 8FCAA7 <CJK>
-8FCAA8 719A 8FCAA8 <CJK>
-8FCAA9 719B 8FCAA9 <CJK>
-8FCAAA 71A0 8FCAAA <CJK>
-8FCAAB 71A2 8FCAAB <CJK>
-8FCAAC 71AF 8FCAAC <CJK>
-8FCAAD 71B0 8FCAAD <CJK>
-8FCAAE 71B2 8FCAAE <CJK>
-8FCAAF 71B3 8FCAAF <CJK>
-8FCAB0 71BA 8FCAB0 <CJK>
-8FCAB1 71BF 8FCAB1 <CJK>
-8FCAB2 71C0 8FCAB2 <CJK>
-8FCAB3 71C1 8FCAB3 <CJK>
-8FCAB4 71C4 8FCAB4 <CJK>
-8FCAB5 71CB 8FCAB5 <CJK>
-8FCAB6 71CC 8FCAB6 <CJK>
-8FCAB7 71D3 8FCAB7 <CJK>
-8FCAB8 71D6 8FCAB8 <CJK>
-8FCAB9 71D9 8FCAB9 <CJK>
-8FCABA 71DA 8FCABA <CJK>
-8FCABB 71DC 8FCABB <CJK>
-8FCABC 71F8 8FCABC <CJK>
-8FCABD 71FE 8FCABD <CJK>
-8FCABE 7200 8FCABE <CJK>
-8FCABF 7207 8FCABF <CJK>
-8FCAC0 7208 8FCAC0 <CJK>
-8FCAC1 7209 8FCAC1 <CJK>
-8FCAC2 7213 8FCAC2 <CJK>
-8FCAC3 7217 8FCAC3 <CJK>
-8FCAC4 721A 8FCAC4 <CJK>
-8FCAC5 721D 8FCAC5 <CJK>
-8FCAC6 721F 8FCAC6 <CJK>
-8FCAC7 7224 8FCAC7 <CJK>
-8FCAC8 722B 8FCAC8 <CJK>
-8FCAC9 722F 8FCAC9 <CJK>
-8FCACA 7234 8FCACA <CJK>
-8FCACB 7238 8FCACB <CJK>
-8FCACC 7239 8FCACC <CJK>
-8FCACD 7241 8FCACD <CJK>
-8FCACE 7242 8FCACE <CJK>
-8FCACF 7243 8FCACF <CJK>
-8FCAD0 7245 8FCAD0 <CJK>
-8FCAD1 724E 8FCAD1 <CJK>
-8FCAD2 724F 8FCAD2 <CJK>
-8FCAD3 7250 8FCAD3 <CJK>
-8FCAD4 7253 8FCAD4 <CJK>
-8FCAD5 7255 8FCAD5 <CJK>
-8FCAD6 7256 8FCAD6 <CJK>
-8FCAD7 725A 8FCAD7 <CJK>
-8FCAD8 725C 8FCAD8 <CJK>
-8FCAD9 725E 8FCAD9 <CJK>
-8FCADA 7260 8FCADA <CJK>
-8FCADB 7263 8FCADB <CJK>
-8FCADC 7268 8FCADC <CJK>
-8FCADD 726B 8FCADD <CJK>
-8FCADE 726E 8FCADE <CJK>
-8FCADF 726F 8FCADF <CJK>
-8FCAE0 7271 8FCAE0 <CJK>
-8FCAE1 7277 8FCAE1 <CJK>
-8FCAE2 7278 8FCAE2 <CJK>
-8FCAE3 727B 8FCAE3 <CJK>
-8FCAE4 727C 8FCAE4 <CJK>
-8FCAE5 727F 8FCAE5 <CJK>
-8FCAE6 7284 8FCAE6 <CJK>
-8FCAE7 7289 8FCAE7 <CJK>
-8FCAE8 728D 8FCAE8 <CJK>
-8FCAE9 728E 8FCAE9 <CJK>
-8FCAEA 7293 8FCAEA <CJK>
-8FCAEB 729B 8FCAEB <CJK>
-8FCAEC 72A8 8FCAEC <CJK>
-8FCAED 72AD 8FCAED <CJK>
-8FCAEE 72AE 8FCAEE <CJK>
-8FCAEF 72B1 8FCAEF <CJK>
-8FCAF0 72B4 8FCAF0 <CJK>
-8FCAF1 72BE 8FCAF1 <CJK>
-8FCAF2 72C1 8FCAF2 <CJK>
-8FCAF3 72C7 8FCAF3 <CJK>
-8FCAF4 72C9 8FCAF4 <CJK>
-8FCAF5 72CC 8FCAF5 <CJK>
-8FCAF6 72D5 8FCAF6 <CJK>
-8FCAF7 72D6 8FCAF7 <CJK>
-8FCAF8 72D8 8FCAF8 <CJK>
-8FCAF9 72DF 8FCAF9 <CJK>
-8FCAFA 72E5 8FCAFA <CJK>
-8FCAFB 72F3 8FCAFB <CJK>
-8FCAFC 72F4 8FCAFC <CJK>
-8FCAFD 72FA 8FCAFD <CJK>
-8FCAFE 72FB 8FCAFE <CJK>
-8FCBA1 72FE 8FCBA1 <CJK>
-8FCBA2 7302 8FCBA2 <CJK>
-8FCBA3 7304 8FCBA3 <CJK>
-8FCBA4 7305 8FCBA4 <CJK>
-8FCBA5 7307 8FCBA5 <CJK>
-8FCBA6 730B 8FCBA6 <CJK>
-8FCBA7 730D 8FCBA7 <CJK>
-8FCBA8 7312 8FCBA8 <CJK>
-8FCBA9 7313 8FCBA9 <CJK>
-8FCBAA 7318 8FCBAA <CJK>
-8FCBAB 7319 8FCBAB <CJK>
-8FCBAC 731E 8FCBAC <CJK>
-8FCBAD 7322 8FCBAD <CJK>
-8FCBAE 7324 8FCBAE <CJK>
-8FCBAF 7327 8FCBAF <CJK>
-8FCBB0 7328 8FCBB0 <CJK>
-8FCBB1 732C 8FCBB1 <CJK>
-8FCBB2 7331 8FCBB2 <CJK>
-8FCBB3 7332 8FCBB3 <CJK>
-8FCBB4 7335 8FCBB4 <CJK>
-8FCBB5 733A 8FCBB5 <CJK>
-8FCBB6 733B 8FCBB6 <CJK>
-8FCBB7 733D 8FCBB7 <CJK>
-8FCBB8 7343 8FCBB8 <CJK>
-8FCBB9 734D 8FCBB9 <CJK>
-8FCBBA 7350 8FCBBA <CJK>
-8FCBBB 7352 8FCBBB <CJK>
-8FCBBC 7356 8FCBBC <CJK>
-8FCBBD 7358 8FCBBD <CJK>
-8FCBBE 735D 8FCBBE <CJK>
-8FCBBF 735E 8FCBBF <CJK>
-8FCBC0 735F 8FCBC0 <CJK>
-8FCBC1 7360 8FCBC1 <CJK>
-8FCBC2 7366 8FCBC2 <CJK>
-8FCBC3 7367 8FCBC3 <CJK>
-8FCBC4 7369 8FCBC4 <CJK>
-8FCBC5 736B 8FCBC5 <CJK>
-8FCBC6 736C 8FCBC6 <CJK>
-8FCBC7 736E 8FCBC7 <CJK>
-8FCBC8 736F 8FCBC8 <CJK>
-8FCBC9 7371 8FCBC9 <CJK>
-8FCBCA 7377 8FCBCA <CJK>
-8FCBCB 7379 8FCBCB <CJK>
-8FCBCC 737C 8FCBCC <CJK>
-8FCBCD 7380 8FCBCD <CJK>
-8FCBCE 7381 8FCBCE <CJK>
-8FCBCF 7383 8FCBCF <CJK>
-8FCBD0 7385 8FCBD0 <CJK>
-8FCBD1 7386 8FCBD1 <CJK>
-8FCBD2 738E 8FCBD2 <CJK>
-8FCBD3 7390 8FCBD3 <CJK>
-8FCBD4 7393 8FCBD4 <CJK>
-8FCBD5 7395 8FCBD5 <CJK>
-8FCBD6 7397 8FCBD6 <CJK>
-8FCBD7 7398 8FCBD7 <CJK>
-8FCBD8 739C 8FCBD8 <CJK>
-8FCBD9 739E 8FCBD9 <CJK>
-8FCBDA 739F 8FCBDA <CJK>
-8FCBDB 73A0 8FCBDB <CJK>
-8FCBDC 73A2 8FCBDC <CJK>
-8FCBDD 73A5 8FCBDD <CJK>
-8FCBDE 73A6 8FCBDE <CJK>
-8FCBDF 73AA 8FCBDF <CJK>
-8FCBE0 73AB 8FCBE0 <CJK>
-8FCBE1 73AD 8FCBE1 <CJK>
-8FCBE2 73B5 8FCBE2 <CJK>
-8FCBE3 73B7 8FCBE3 <CJK>
-8FCBE4 73B9 8FCBE4 <CJK>
-8FCBE5 73BC 8FCBE5 <CJK>
-8FCBE6 73BD 8FCBE6 <CJK>
-8FCBE7 73BF 8FCBE7 <CJK>
-8FCBE8 73C5 8FCBE8 <CJK>
-8FCBE9 73C6 8FCBE9 <CJK>
-8FCBEA 73C9 8FCBEA <CJK>
-8FCBEB 73CB 8FCBEB <CJK>
-8FCBEC 73CC 8FCBEC <CJK>
-8FCBED 73CF 8FCBED <CJK>
-8FCBEE 73D2 8FCBEE <CJK>
-8FCBEF 73D3 8FCBEF <CJK>
-8FCBF0 73D6 8FCBF0 <CJK>
-8FCBF1 73D9 8FCBF1 <CJK>
-8FCBF2 73DD 8FCBF2 <CJK>
-8FCBF3 73E1 8FCBF3 <CJK>
-8FCBF4 73E3 8FCBF4 <CJK>
-8FCBF5 73E6 8FCBF5 <CJK>
-8FCBF6 73E7 8FCBF6 <CJK>
-8FCBF7 73E9 8FCBF7 <CJK>
-8FCBF8 73F4 8FCBF8 <CJK>
-8FCBF9 73F5 8FCBF9 <CJK>
-8FCBFA 73F7 8FCBFA <CJK>
-8FCBFB 73F9 8FCBFB <CJK>
-8FCBFC 73FA 8FCBFC <CJK>
-8FCBFD 73FB 8FCBFD <CJK>
-8FCBFE 73FD 8FCBFE <CJK>
-8FCCA1 73FF 8FCCA1 <CJK>
-8FCCA2 7400 8FCCA2 <CJK>
-8FCCA3 7401 8FCCA3 <CJK>
-8FCCA4 7404 8FCCA4 <CJK>
-8FCCA5 7407 8FCCA5 <CJK>
-8FCCA6 740A 8FCCA6 <CJK>
-8FCCA7 7411 8FCCA7 <CJK>
-8FCCA8 741A 8FCCA8 <CJK>
-8FCCA9 741B 8FCCA9 <CJK>
-8FCCAA 7424 8FCCAA <CJK>
-8FCCAB 7426 8FCCAB <CJK>
-8FCCAC 7428 8FCCAC <CJK>
-8FCCAD 7429 8FCCAD <CJK>
-8FCCAE 742A 8FCCAE <CJK>
-8FCCAF 742B 8FCCAF <CJK>
-8FCCB0 742C 8FCCB0 <CJK>
-8FCCB1 742D 8FCCB1 <CJK>
-8FCCB2 742E 8FCCB2 <CJK>
-8FCCB3 742F 8FCCB3 <CJK>
-8FCCB4 7430 8FCCB4 <CJK>
-8FCCB5 7431 8FCCB5 <CJK>
-8FCCB6 7439 8FCCB6 <CJK>
-8FCCB7 7440 8FCCB7 <CJK>
-8FCCB8 7443 8FCCB8 <CJK>
-8FCCB9 7444 8FCCB9 <CJK>
-8FCCBA 7446 8FCCBA <CJK>
-8FCCBB 7447 8FCCBB <CJK>
-8FCCBC 744B 8FCCBC <CJK>
-8FCCBD 744D 8FCCBD <CJK>
-8FCCBE 7451 8FCCBE <CJK>
-8FCCBF 7452 8FCCBF <CJK>
-8FCCC0 7457 8FCCC0 <CJK>
-8FCCC1 745D 8FCCC1 <CJK>
-8FCCC2 7462 8FCCC2 <CJK>
-8FCCC3 7466 8FCCC3 <CJK>
-8FCCC4 7467 8FCCC4 <CJK>
-8FCCC5 7468 8FCCC5 <CJK>
-8FCCC6 746B 8FCCC6 <CJK>
-8FCCC7 746D 8FCCC7 <CJK>
-8FCCC8 746E 8FCCC8 <CJK>
-8FCCC9 7471 8FCCC9 <CJK>
-8FCCCA 7472 8FCCCA <CJK>
-8FCCCB 7480 8FCCCB <CJK>
-8FCCCC 7481 8FCCCC <CJK>
-8FCCCD 7485 8FCCCD <CJK>
-8FCCCE 7486 8FCCCE <CJK>
-8FCCCF 7487 8FCCCF <CJK>
-8FCCD0 7489 8FCCD0 <CJK>
-8FCCD1 748F 8FCCD1 <CJK>
-8FCCD2 7490 8FCCD2 <CJK>
-8FCCD3 7491 8FCCD3 <CJK>
-8FCCD4 7492 8FCCD4 <CJK>
-8FCCD5 7498 8FCCD5 <CJK>
-8FCCD6 7499 8FCCD6 <CJK>
-8FCCD7 749A 8FCCD7 <CJK>
-8FCCD8 749C 8FCCD8 <CJK>
-8FCCD9 749F 8FCCD9 <CJK>
-8FCCDA 74A0 8FCCDA <CJK>
-8FCCDB 74A1 8FCCDB <CJK>
-8FCCDC 74A3 8FCCDC <CJK>
-8FCCDD 74A6 8FCCDD <CJK>
-8FCCDE 74A8 8FCCDE <CJK>
-8FCCDF 74A9 8FCCDF <CJK>
-8FCCE0 74AA 8FCCE0 <CJK>
-8FCCE1 74AB 8FCCE1 <CJK>
-8FCCE2 74AE 8FCCE2 <CJK>
-8FCCE3 74AF 8FCCE3 <CJK>
-8FCCE4 74B1 8FCCE4 <CJK>
-8FCCE5 74B2 8FCCE5 <CJK>
-8FCCE6 74B5 8FCCE6 <CJK>
-8FCCE7 74B9 8FCCE7 <CJK>
-8FCCE8 74BB 8FCCE8 <CJK>
-8FCCE9 74BF 8FCCE9 <CJK>
-8FCCEA 74C8 8FCCEA <CJK>
-8FCCEB 74C9 8FCCEB <CJK>
-8FCCEC 74CC 8FCCEC <CJK>
-8FCCED 74D0 8FCCED <CJK>
-8FCCEE 74D3 8FCCEE <CJK>
-8FCCEF 74D8 8FCCEF <CJK>
-8FCCF0 74DA 8FCCF0 <CJK>
-8FCCF1 74DB 8FCCF1 <CJK>
-8FCCF2 74DE 8FCCF2 <CJK>
-8FCCF3 74DF 8FCCF3 <CJK>
-8FCCF4 74E4 8FCCF4 <CJK>
-8FCCF5 74E8 8FCCF5 <CJK>
-8FCCF6 74EA 8FCCF6 <CJK>
-8FCCF7 74EB 8FCCF7 <CJK>
-8FCCF8 74EF 8FCCF8 <CJK>
-8FCCF9 74F4 8FCCF9 <CJK>
-8FCCFA 74FA 8FCCFA <CJK>
-8FCCFB 74FB 8FCCFB <CJK>
-8FCCFC 74FC 8FCCFC <CJK>
-8FCCFD 74FF 8FCCFD <CJK>
-8FCCFE 7506 8FCCFE <CJK>
-8FCDA1 7512 8FCDA1 <CJK>
-8FCDA2 7516 8FCDA2 <CJK>
-8FCDA3 7517 8FCDA3 <CJK>
-8FCDA4 7520 8FCDA4 <CJK>
-8FCDA5 7521 8FCDA5 <CJK>
-8FCDA6 7524 8FCDA6 <CJK>
-8FCDA7 7527 8FCDA7 <CJK>
-8FCDA8 7529 8FCDA8 <CJK>
-8FCDA9 752A 8FCDA9 <CJK>
-8FCDAA 752F 8FCDAA <CJK>
-8FCDAB 7536 8FCDAB <CJK>
-8FCDAC 7539 8FCDAC <CJK>
-8FCDAD 753D 8FCDAD <CJK>
-8FCDAE 753E 8FCDAE <CJK>
-8FCDAF 753F 8FCDAF <CJK>
-8FCDB0 7540 8FCDB0 <CJK>
-8FCDB1 7543 8FCDB1 <CJK>
-8FCDB2 7547 8FCDB2 <CJK>
-8FCDB3 7548 8FCDB3 <CJK>
-8FCDB4 754E 8FCDB4 <CJK>
-8FCDB5 7550 8FCDB5 <CJK>
-8FCDB6 7552 8FCDB6 <CJK>
-8FCDB7 7557 8FCDB7 <CJK>
-8FCDB8 755E 8FCDB8 <CJK>
-8FCDB9 755F 8FCDB9 <CJK>
-8FCDBA 7561 8FCDBA <CJK>
-8FCDBB 756F 8FCDBB <CJK>
-8FCDBC 7571 8FCDBC <CJK>
-8FCDBD 7579 8FCDBD <CJK>
-8FCDBE 757A 8FCDBE <CJK>
-8FCDBF 757B 8FCDBF <CJK>
-8FCDC0 757C 8FCDC0 <CJK>
-8FCDC1 757D 8FCDC1 <CJK>
-8FCDC2 757E 8FCDC2 <CJK>
-8FCDC3 7581 8FCDC3 <CJK>
-8FCDC4 7585 8FCDC4 <CJK>
-8FCDC5 7590 8FCDC5 <CJK>
-8FCDC6 7592 8FCDC6 <CJK>
-8FCDC7 7593 8FCDC7 <CJK>
-8FCDC8 7595 8FCDC8 <CJK>
-8FCDC9 7599 8FCDC9 <CJK>
-8FCDCA 759C 8FCDCA <CJK>
-8FCDCB 75A2 8FCDCB <CJK>
-8FCDCC 75A4 8FCDCC <CJK>
-8FCDCD 75B4 8FCDCD <CJK>
-8FCDCE 75BA 8FCDCE <CJK>
-8FCDCF 75BF 8FCDCF <CJK>
-8FCDD0 75C0 8FCDD0 <CJK>
-8FCDD1 75C1 8FCDD1 <CJK>
-8FCDD2 75C4 8FCDD2 <CJK>
-8FCDD3 75C6 8FCDD3 <CJK>
-8FCDD4 75CC 8FCDD4 <CJK>
-8FCDD5 75CE 8FCDD5 <CJK>
-8FCDD6 75CF 8FCDD6 <CJK>
-8FCDD7 75D7 8FCDD7 <CJK>
-8FCDD8 75DC 8FCDD8 <CJK>
-8FCDD9 75DF 8FCDD9 <CJK>
-8FCDDA 75E0 8FCDDA <CJK>
-8FCDDB 75E1 8FCDDB <CJK>
-8FCDDC 75E4 8FCDDC <CJK>
-8FCDDD 75E7 8FCDDD <CJK>
-8FCDDE 75EC 8FCDDE <CJK>
-8FCDDF 75EE 8FCDDF <CJK>
-8FCDE0 75EF 8FCDE0 <CJK>
-8FCDE1 75F1 8FCDE1 <CJK>
-8FCDE2 75F9 8FCDE2 <CJK>
-8FCDE3 7600 8FCDE3 <CJK>
-8FCDE4 7602 8FCDE4 <CJK>
-8FCDE5 7603 8FCDE5 <CJK>
-8FCDE6 7604 8FCDE6 <CJK>
-8FCDE7 7607 8FCDE7 <CJK>
-8FCDE8 7608 8FCDE8 <CJK>
-8FCDE9 760A 8FCDE9 <CJK>
-8FCDEA 760C 8FCDEA <CJK>
-8FCDEB 760F 8FCDEB <CJK>
-8FCDEC 7612 8FCDEC <CJK>
-8FCDED 7613 8FCDED <CJK>
-8FCDEE 7615 8FCDEE <CJK>
-8FCDEF 7616 8FCDEF <CJK>
-8FCDF0 7619 8FCDF0 <CJK>
-8FCDF1 761B 8FCDF1 <CJK>
-8FCDF2 761C 8FCDF2 <CJK>
-8FCDF3 761D 8FCDF3 <CJK>
-8FCDF4 761E 8FCDF4 <CJK>
-8FCDF5 7623 8FCDF5 <CJK>
-8FCDF6 7625 8FCDF6 <CJK>
-8FCDF7 7626 8FCDF7 <CJK>
-8FCDF8 7629 8FCDF8 <CJK>
-8FCDF9 762D 8FCDF9 <CJK>
-8FCDFA 7632 8FCDFA <CJK>
-8FCDFB 7633 8FCDFB <CJK>
-8FCDFC 7635 8FCDFC <CJK>
-8FCDFD 7638 8FCDFD <CJK>
-8FCDFE 7639 8FCDFE <CJK>
-8FCEA1 763A 8FCEA1 <CJK>
-8FCEA2 763C 8FCEA2 <CJK>
-8FCEA3 764A 8FCEA3 <CJK>
-8FCEA4 7640 8FCEA4 <CJK>
-8FCEA5 7641 8FCEA5 <CJK>
-8FCEA6 7643 8FCEA6 <CJK>
-8FCEA7 7644 8FCEA7 <CJK>
-8FCEA8 7645 8FCEA8 <CJK>
-8FCEA9 7649 8FCEA9 <CJK>
-8FCEAA 764B 8FCEAA <CJK>
-8FCEAB 7655 8FCEAB <CJK>
-8FCEAC 7659 8FCEAC <CJK>
-8FCEAD 765F 8FCEAD <CJK>
-8FCEAE 7664 8FCEAE <CJK>
-8FCEAF 7665 8FCEAF <CJK>
-8FCEB0 766D 8FCEB0 <CJK>
-8FCEB1 766E 8FCEB1 <CJK>
-8FCEB2 766F 8FCEB2 <CJK>
-8FCEB3 7671 8FCEB3 <CJK>
-8FCEB4 7674 8FCEB4 <CJK>
-8FCEB5 7681 8FCEB5 <CJK>
-8FCEB6 7685 8FCEB6 <CJK>
-8FCEB7 768C 8FCEB7 <CJK>
-8FCEB8 768D 8FCEB8 <CJK>
-8FCEB9 7695 8FCEB9 <CJK>
-8FCEBA 769B 8FCEBA <CJK>
-8FCEBB 769C 8FCEBB <CJK>
-8FCEBC 769D 8FCEBC <CJK>
-8FCEBD 769F 8FCEBD <CJK>
-8FCEBE 76A0 8FCEBE <CJK>
-8FCEBF 76A2 8FCEBF <CJK>
-8FCEC0 76A3 8FCEC0 <CJK>
-8FCEC1 76A4 8FCEC1 <CJK>
-8FCEC2 76A5 8FCEC2 <CJK>
-8FCEC3 76A6 8FCEC3 <CJK>
-8FCEC4 76A7 8FCEC4 <CJK>
-8FCEC5 76A8 8FCEC5 <CJK>
-8FCEC6 76AA 8FCEC6 <CJK>
-8FCEC7 76AD 8FCEC7 <CJK>
-8FCEC8 76BD 8FCEC8 <CJK>
-8FCEC9 76C1 8FCEC9 <CJK>
-8FCECA 76C5 8FCECA <CJK>
-8FCECB 76C9 8FCECB <CJK>
-8FCECC 76CB 8FCECC <CJK>
-8FCECD 76CC 8FCECD <CJK>
-8FCECE 76CE 8FCECE <CJK>
-8FCECF 76D4 8FCECF <CJK>
-8FCED0 76D9 8FCED0 <CJK>
-8FCED1 76E0 8FCED1 <CJK>
-8FCED2 76E6 8FCED2 <CJK>
-8FCED3 76E8 8FCED3 <CJK>
-8FCED4 76EC 8FCED4 <CJK>
-8FCED5 76F0 8FCED5 <CJK>
-8FCED6 76F1 8FCED6 <CJK>
-8FCED7 76F6 8FCED7 <CJK>
-8FCED8 76F9 8FCED8 <CJK>
-8FCED9 76FC 8FCED9 <CJK>
-8FCEDA 7700 8FCEDA <CJK>
-8FCEDB 7706 8FCEDB <CJK>
-8FCEDC 770A 8FCEDC <CJK>
-8FCEDD 770E 8FCEDD <CJK>
-8FCEDE 7712 8FCEDE <CJK>
-8FCEDF 7714 8FCEDF <CJK>
-8FCEE0 7715 8FCEE0 <CJK>
-8FCEE1 7717 8FCEE1 <CJK>
-8FCEE2 7719 8FCEE2 <CJK>
-8FCEE3 771A 8FCEE3 <CJK>
-8FCEE4 771C 8FCEE4 <CJK>
-8FCEE5 7722 8FCEE5 <CJK>
-8FCEE6 7728 8FCEE6 <CJK>
-8FCEE7 772D 8FCEE7 <CJK>
-8FCEE8 772E 8FCEE8 <CJK>
-8FCEE9 772F 8FCEE9 <CJK>
-8FCEEA 7734 8FCEEA <CJK>
-8FCEEB 7735 8FCEEB <CJK>
-8FCEEC 7736 8FCEEC <CJK>
-8FCEED 7739 8FCEED <CJK>
-8FCEEE 773D 8FCEEE <CJK>
-8FCEEF 773E 8FCEEF <CJK>
-8FCEF0 7742 8FCEF0 <CJK>
-8FCEF1 7745 8FCEF1 <CJK>
-8FCEF2 7746 8FCEF2 <CJK>
-8FCEF3 774A 8FCEF3 <CJK>
-8FCEF4 774D 8FCEF4 <CJK>
-8FCEF5 774E 8FCEF5 <CJK>
-8FCEF6 774F 8FCEF6 <CJK>
-8FCEF7 7752 8FCEF7 <CJK>
-8FCEF8 7756 8FCEF8 <CJK>
-8FCEF9 7757 8FCEF9 <CJK>
-8FCEFA 775C 8FCEFA <CJK>
-8FCEFB 775E 8FCEFB <CJK>
-8FCEFC 775F 8FCEFC <CJK>
-8FCEFD 7760 8FCEFD <CJK>
-8FCEFE 7762 8FCEFE <CJK>
-8FCFA1 7764 8FCFA1 <CJK>
-8FCFA2 7767 8FCFA2 <CJK>
-8FCFA3 776A 8FCFA3 <CJK>
-8FCFA4 776C 8FCFA4 <CJK>
-8FCFA5 7770 8FCFA5 <CJK>
-8FCFA6 7772 8FCFA6 <CJK>
-8FCFA7 7773 8FCFA7 <CJK>
-8FCFA8 7774 8FCFA8 <CJK>
-8FCFA9 777A 8FCFA9 <CJK>
-8FCFAA 777D 8FCFAA <CJK>
-8FCFAB 7780 8FCFAB <CJK>
-8FCFAC 7784 8FCFAC <CJK>
-8FCFAD 778C 8FCFAD <CJK>
-8FCFAE 778D 8FCFAE <CJK>
-8FCFAF 7794 8FCFAF <CJK>
-8FCFB0 7795 8FCFB0 <CJK>
-8FCFB1 7796 8FCFB1 <CJK>
-8FCFB2 779A 8FCFB2 <CJK>
-8FCFB3 779F 8FCFB3 <CJK>
-8FCFB4 77A2 8FCFB4 <CJK>
-8FCFB5 77A7 8FCFB5 <CJK>
-8FCFB6 77AA 8FCFB6 <CJK>
-8FCFB7 77AE 8FCFB7 <CJK>
-8FCFB8 77AF 8FCFB8 <CJK>
-8FCFB9 77B1 8FCFB9 <CJK>
-8FCFBA 77B5 8FCFBA <CJK>
-8FCFBB 77BE 8FCFBB <CJK>
-8FCFBC 77C3 8FCFBC <CJK>
-8FCFBD 77C9 8FCFBD <CJK>
-8FCFBE 77D1 8FCFBE <CJK>
-8FCFBF 77D2 8FCFBF <CJK>
-8FCFC0 77D5 8FCFC0 <CJK>
-8FCFC1 77D9 8FCFC1 <CJK>
-8FCFC2 77DE 8FCFC2 <CJK>
-8FCFC3 77DF 8FCFC3 <CJK>
-8FCFC4 77E0 8FCFC4 <CJK>
-8FCFC5 77E4 8FCFC5 <CJK>
-8FCFC6 77E6 8FCFC6 <CJK>
-8FCFC7 77EA 8FCFC7 <CJK>
-8FCFC8 77EC 8FCFC8 <CJK>
-8FCFC9 77F0 8FCFC9 <CJK>
-8FCFCA 77F1 8FCFCA <CJK>
-8FCFCB 77F4 8FCFCB <CJK>
-8FCFCC 77F8 8FCFCC <CJK>
-8FCFCD 77FB 8FCFCD <CJK>
-8FCFCE 7805 8FCFCE <CJK>
-8FCFCF 7806 8FCFCF <CJK>
-8FCFD0 7809 8FCFD0 <CJK>
-8FCFD1 780D 8FCFD1 <CJK>
-8FCFD2 780E 8FCFD2 <CJK>
-8FCFD3 7811 8FCFD3 <CJK>
-8FCFD4 781D 8FCFD4 <CJK>
-8FCFD5 7821 8FCFD5 <CJK>
-8FCFD6 7822 8FCFD6 <CJK>
-8FCFD7 7823 8FCFD7 <CJK>
-8FCFD8 782D 8FCFD8 <CJK>
-8FCFD9 782E 8FCFD9 <CJK>
-8FCFDA 7830 8FCFDA <CJK>
-8FCFDB 7835 8FCFDB <CJK>
-8FCFDC 7837 8FCFDC <CJK>
-8FCFDD 7843 8FCFDD <CJK>
-8FCFDE 7844 8FCFDE <CJK>
-8FCFDF 7847 8FCFDF <CJK>
-8FCFE0 7848 8FCFE0 <CJK>
-8FCFE1 784C 8FCFE1 <CJK>
-8FCFE2 784E 8FCFE2 <CJK>
-8FCFE3 7852 8FCFE3 <CJK>
-8FCFE4 785C 8FCFE4 <CJK>
-8FCFE5 785E 8FCFE5 <CJK>
-8FCFE6 7860 8FCFE6 <CJK>
-8FCFE7 7861 8FCFE7 <CJK>
-8FCFE8 7863 8FCFE8 <CJK>
-8FCFE9 7864 8FCFE9 <CJK>
-8FCFEA 7868 8FCFEA <CJK>
-8FCFEB 786A 8FCFEB <CJK>
-8FCFEC 786E 8FCFEC <CJK>
-8FCFED 787A 8FCFED <CJK>
-8FCFEE 787E 8FCFEE <CJK>
-8FCFEF 788A 8FCFEF <CJK>
-8FCFF0 788F 8FCFF0 <CJK>
-8FCFF1 7894 8FCFF1 <CJK>
-8FCFF2 7898 8FCFF2 <CJK>
-8FCFF3 78A1 8FCFF3 <CJK>
-8FCFF4 789D 8FCFF4 <CJK>
-8FCFF5 789E 8FCFF5 <CJK>
-8FCFF6 789F 8FCFF6 <CJK>
-8FCFF7 78A4 8FCFF7 <CJK>
-8FCFF8 78A8 8FCFF8 <CJK>
-8FCFF9 78AC 8FCFF9 <CJK>
-8FCFFA 78AD 8FCFFA <CJK>
-8FCFFB 78B0 8FCFFB <CJK>
-8FCFFC 78B1 8FCFFC <CJK>
-8FCFFD 78B2 8FCFFD <CJK>
-8FCFFE 78B3 8FCFFE <CJK>
-8FD0A1 78BB 8FD0A1 <CJK>
-8FD0A2 78BD 8FD0A2 <CJK>
-8FD0A3 78BF 8FD0A3 <CJK>
-8FD0A4 78C7 8FD0A4 <CJK>
-8FD0A5 78C8 8FD0A5 <CJK>
-8FD0A6 78C9 8FD0A6 <CJK>
-8FD0A7 78CC 8FD0A7 <CJK>
-8FD0A8 78CE 8FD0A8 <CJK>
-8FD0A9 78D2 8FD0A9 <CJK>
-8FD0AA 78D3 8FD0AA <CJK>
-8FD0AB 78D5 8FD0AB <CJK>
-8FD0AC 78D6 8FD0AC <CJK>
-8FD0AD 78E4 8FD0AD <CJK>
-8FD0AE 78DB 8FD0AE <CJK>
-8FD0AF 78DF 8FD0AF <CJK>
-8FD0B0 78E0 8FD0B0 <CJK>
-8FD0B1 78E1 8FD0B1 <CJK>
-8FD0B2 78E6 8FD0B2 <CJK>
-8FD0B3 78EA 8FD0B3 <CJK>
-8FD0B4 78F2 8FD0B4 <CJK>
-8FD0B5 78F3 8FD0B5 <CJK>
-8FD0B6 7900 8FD0B6 <CJK>
-8FD0B7 78F6 8FD0B7 <CJK>
-8FD0B8 78F7 8FD0B8 <CJK>
-8FD0B9 78FA 8FD0B9 <CJK>
-8FD0BA 78FB 8FD0BA <CJK>
-8FD0BB 78FF 8FD0BB <CJK>
-8FD0BC 7906 8FD0BC <CJK>
-8FD0BD 790C 8FD0BD <CJK>
-8FD0BE 7910 8FD0BE <CJK>
-8FD0BF 791A 8FD0BF <CJK>
-8FD0C0 791C 8FD0C0 <CJK>
-8FD0C1 791E 8FD0C1 <CJK>
-8FD0C2 791F 8FD0C2 <CJK>
-8FD0C3 7920 8FD0C3 <CJK>
-8FD0C4 7925 8FD0C4 <CJK>
-8FD0C5 7927 8FD0C5 <CJK>
-8FD0C6 7929 8FD0C6 <CJK>
-8FD0C7 792D 8FD0C7 <CJK>
-8FD0C8 7931 8FD0C8 <CJK>
-8FD0C9 7934 8FD0C9 <CJK>
-8FD0CA 7935 8FD0CA <CJK>
-8FD0CB 793B 8FD0CB <CJK>
-8FD0CC 793D 8FD0CC <CJK>
-8FD0CD 793F 8FD0CD <CJK>
-8FD0CE 7944 8FD0CE <CJK>
-8FD0CF 7945 8FD0CF <CJK>
-8FD0D0 7946 8FD0D0 <CJK>
-8FD0D1 794A 8FD0D1 <CJK>
-8FD0D2 794B 8FD0D2 <CJK>
-8FD0D3 794F 8FD0D3 <CJK>
-8FD0D4 7951 8FD0D4 <CJK>
-8FD0D5 7954 8FD0D5 <CJK>
-8FD0D6 7958 8FD0D6 <CJK>
-8FD0D7 795B 8FD0D7 <CJK>
-8FD0D8 795C 8FD0D8 <CJK>
-8FD0D9 7967 8FD0D9 <CJK>
-8FD0DA 7969 8FD0DA <CJK>
-8FD0DB 796B 8FD0DB <CJK>
-8FD0DC 7972 8FD0DC <CJK>
-8FD0DD 7979 8FD0DD <CJK>
-8FD0DE 797B 8FD0DE <CJK>
-8FD0DF 797C 8FD0DF <CJK>
-8FD0E0 797E 8FD0E0 <CJK>
-8FD0E1 798B 8FD0E1 <CJK>
-8FD0E2 798C 8FD0E2 <CJK>
-8FD0E3 7991 8FD0E3 <CJK>
-8FD0E4 7993 8FD0E4 <CJK>
-8FD0E5 7994 8FD0E5 <CJK>
-8FD0E6 7995 8FD0E6 <CJK>
-8FD0E7 7996 8FD0E7 <CJK>
-8FD0E8 7998 8FD0E8 <CJK>
-8FD0E9 799B 8FD0E9 <CJK>
-8FD0EA 799C 8FD0EA <CJK>
-8FD0EB 79A1 8FD0EB <CJK>
-8FD0EC 79A8 8FD0EC <CJK>
-8FD0ED 79A9 8FD0ED <CJK>
-8FD0EE 79AB 8FD0EE <CJK>
-8FD0EF 79AF 8FD0EF <CJK>
-8FD0F0 79B1 8FD0F0 <CJK>
-8FD0F1 79B4 8FD0F1 <CJK>
-8FD0F2 79B8 8FD0F2 <CJK>
-8FD0F3 79BB 8FD0F3 <CJK>
-8FD0F4 79C2 8FD0F4 <CJK>
-8FD0F5 79C4 8FD0F5 <CJK>
-8FD0F6 79C7 8FD0F6 <CJK>
-8FD0F7 79C8 8FD0F7 <CJK>
-8FD0F8 79CA 8FD0F8 <CJK>
-8FD0F9 79CF 8FD0F9 <CJK>
-8FD0FA 79D4 8FD0FA <CJK>
-8FD0FB 79D6 8FD0FB <CJK>
-8FD0FC 79DA 8FD0FC <CJK>
-8FD0FD 79DD 8FD0FD <CJK>
-8FD0FE 79DE 8FD0FE <CJK>
-8FD1A1 79E0 8FD1A1 <CJK>
-8FD1A2 79E2 8FD1A2 <CJK>
-8FD1A3 79E5 8FD1A3 <CJK>
-8FD1A4 79EA 8FD1A4 <CJK>
-8FD1A5 79EB 8FD1A5 <CJK>
-8FD1A6 79ED 8FD1A6 <CJK>
-8FD1A7 79F1 8FD1A7 <CJK>
-8FD1A8 79F8 8FD1A8 <CJK>
-8FD1A9 79FC 8FD1A9 <CJK>
-8FD1AA 7A02 8FD1AA <CJK>
-8FD1AB 7A03 8FD1AB <CJK>
-8FD1AC 7A07 8FD1AC <CJK>
-8FD1AD 7A09 8FD1AD <CJK>
-8FD1AE 7A0A 8FD1AE <CJK>
-8FD1AF 7A0C 8FD1AF <CJK>
-8FD1B0 7A11 8FD1B0 <CJK>
-8FD1B1 7A15 8FD1B1 <CJK>
-8FD1B2 7A1B 8FD1B2 <CJK>
-8FD1B3 7A1E 8FD1B3 <CJK>
-8FD1B4 7A21 8FD1B4 <CJK>
-8FD1B5 7A27 8FD1B5 <CJK>
-8FD1B6 7A2B 8FD1B6 <CJK>
-8FD1B7 7A2D 8FD1B7 <CJK>
-8FD1B8 7A2F 8FD1B8 <CJK>
-8FD1B9 7A30 8FD1B9 <CJK>
-8FD1BA 7A34 8FD1BA <CJK>
-8FD1BB 7A35 8FD1BB <CJK>
-8FD1BC 7A38 8FD1BC <CJK>
-8FD1BD 7A39 8FD1BD <CJK>
-8FD1BE 7A3A 8FD1BE <CJK>
-8FD1BF 7A44 8FD1BF <CJK>
-8FD1C0 7A45 8FD1C0 <CJK>
-8FD1C1 7A47 8FD1C1 <CJK>
-8FD1C2 7A48 8FD1C2 <CJK>
-8FD1C3 7A4C 8FD1C3 <CJK>
-8FD1C4 7A55 8FD1C4 <CJK>
-8FD1C5 7A56 8FD1C5 <CJK>
-8FD1C6 7A59 8FD1C6 <CJK>
-8FD1C7 7A5C 8FD1C7 <CJK>
-8FD1C8 7A5D 8FD1C8 <CJK>
-8FD1C9 7A5F 8FD1C9 <CJK>
-8FD1CA 7A60 8FD1CA <CJK>
-8FD1CB 7A65 8FD1CB <CJK>
-8FD1CC 7A67 8FD1CC <CJK>
-8FD1CD 7A6A 8FD1CD <CJK>
-8FD1CE 7A6D 8FD1CE <CJK>
-8FD1CF 7A75 8FD1CF <CJK>
-8FD1D0 7A78 8FD1D0 <CJK>
-8FD1D1 7A7E 8FD1D1 <CJK>
-8FD1D2 7A80 8FD1D2 <CJK>
-8FD1D3 7A82 8FD1D3 <CJK>
-8FD1D4 7A85 8FD1D4 <CJK>
-8FD1D5 7A86 8FD1D5 <CJK>
-8FD1D6 7A8A 8FD1D6 <CJK>
-8FD1D7 7A8B 8FD1D7 <CJK>
-8FD1D8 7A90 8FD1D8 <CJK>
-8FD1D9 7A91 8FD1D9 <CJK>
-8FD1DA 7A94 8FD1DA <CJK>
-8FD1DB 7A9E 8FD1DB <CJK>
-8FD1DC 7AA0 8FD1DC <CJK>
-8FD1DD 7AA3 8FD1DD <CJK>
-8FD1DE 7AAC 8FD1DE <CJK>
-8FD1DF 7AB3 8FD1DF <CJK>
-8FD1E0 7AB5 8FD1E0 <CJK>
-8FD1E1 7AB9 8FD1E1 <CJK>
-8FD1E2 7ABB 8FD1E2 <CJK>
-8FD1E3 7ABC 8FD1E3 <CJK>
-8FD1E4 7AC6 8FD1E4 <CJK>
-8FD1E5 7AC9 8FD1E5 <CJK>
-8FD1E6 7ACC 8FD1E6 <CJK>
-8FD1E7 7ACE 8FD1E7 <CJK>
-8FD1E8 7AD1 8FD1E8 <CJK>
-8FD1E9 7ADB 8FD1E9 <CJK>
-8FD1EA 7AE8 8FD1EA <CJK>
-8FD1EB 7AE9 8FD1EB <CJK>
-8FD1EC 7AEB 8FD1EC <CJK>
-8FD1ED 7AEC 8FD1ED <CJK>
-8FD1EE 7AF1 8FD1EE <CJK>
-8FD1EF 7AF4 8FD1EF <CJK>
-8FD1F0 7AFB 8FD1F0 <CJK>
-8FD1F1 7AFD 8FD1F1 <CJK>
-8FD1F2 7AFE 8FD1F2 <CJK>
-8FD1F3 7B07 8FD1F3 <CJK>
-8FD1F4 7B14 8FD1F4 <CJK>
-8FD1F5 7B1F 8FD1F5 <CJK>
-8FD1F6 7B23 8FD1F6 <CJK>
-8FD1F7 7B27 8FD1F7 <CJK>
-8FD1F8 7B29 8FD1F8 <CJK>
-8FD1F9 7B2A 8FD1F9 <CJK>
-8FD1FA 7B2B 8FD1FA <CJK>
-8FD1FB 7B2D 8FD1FB <CJK>
-8FD1FC 7B2E 8FD1FC <CJK>
-8FD1FD 7B2F 8FD1FD <CJK>
-8FD1FE 7B30 8FD1FE <CJK>
-8FD2A1 7B31 8FD2A1 <CJK>
-8FD2A2 7B34 8FD2A2 <CJK>
-8FD2A3 7B3D 8FD2A3 <CJK>
-8FD2A4 7B3F 8FD2A4 <CJK>
-8FD2A5 7B40 8FD2A5 <CJK>
-8FD2A6 7B41 8FD2A6 <CJK>
-8FD2A7 7B47 8FD2A7 <CJK>
-8FD2A8 7B4E 8FD2A8 <CJK>
-8FD2A9 7B55 8FD2A9 <CJK>
-8FD2AA 7B60 8FD2AA <CJK>
-8FD2AB 7B64 8FD2AB <CJK>
-8FD2AC 7B66 8FD2AC <CJK>
-8FD2AD 7B69 8FD2AD <CJK>
-8FD2AE 7B6A 8FD2AE <CJK>
-8FD2AF 7B6D 8FD2AF <CJK>
-8FD2B0 7B6F 8FD2B0 <CJK>
-8FD2B1 7B72 8FD2B1 <CJK>
-8FD2B2 7B73 8FD2B2 <CJK>
-8FD2B3 7B77 8FD2B3 <CJK>
-8FD2B4 7B84 8FD2B4 <CJK>
-8FD2B5 7B89 8FD2B5 <CJK>
-8FD2B6 7B8E 8FD2B6 <CJK>
-8FD2B7 7B90 8FD2B7 <CJK>
-8FD2B8 7B91 8FD2B8 <CJK>
-8FD2B9 7B96 8FD2B9 <CJK>
-8FD2BA 7B9B 8FD2BA <CJK>
-8FD2BB 7B9E 8FD2BB <CJK>
-8FD2BC 7BA0 8FD2BC <CJK>
-8FD2BD 7BA5 8FD2BD <CJK>
-8FD2BE 7BAC 8FD2BE <CJK>
-8FD2BF 7BAF 8FD2BF <CJK>
-8FD2C0 7BB0 8FD2C0 <CJK>
-8FD2C1 7BB2 8FD2C1 <CJK>
-8FD2C2 7BB5 8FD2C2 <CJK>
-8FD2C3 7BB6 8FD2C3 <CJK>
-8FD2C4 7BBA 8FD2C4 <CJK>
-8FD2C5 7BBB 8FD2C5 <CJK>
-8FD2C6 7BBC 8FD2C6 <CJK>
-8FD2C7 7BBD 8FD2C7 <CJK>
-8FD2C8 7BC2 8FD2C8 <CJK>
-8FD2C9 7BC5 8FD2C9 <CJK>
-8FD2CA 7BC8 8FD2CA <CJK>
-8FD2CB 7BCA 8FD2CB <CJK>
-8FD2CC 7BD4 8FD2CC <CJK>
-8FD2CD 7BD6 8FD2CD <CJK>
-8FD2CE 7BD7 8FD2CE <CJK>
-8FD2CF 7BD9 8FD2CF <CJK>
-8FD2D0 7BDA 8FD2D0 <CJK>
-8FD2D1 7BDB 8FD2D1 <CJK>
-8FD2D2 7BE8 8FD2D2 <CJK>
-8FD2D3 7BEA 8FD2D3 <CJK>
-8FD2D4 7BF2 8FD2D4 <CJK>
-8FD2D5 7BF4 8FD2D5 <CJK>
-8FD2D6 7BF5 8FD2D6 <CJK>
-8FD2D7 7BF8 8FD2D7 <CJK>
-8FD2D8 7BF9 8FD2D8 <CJK>
-8FD2D9 7BFA 8FD2D9 <CJK>
-8FD2DA 7BFC 8FD2DA <CJK>
-8FD2DB 7BFE 8FD2DB <CJK>
-8FD2DC 7C01 8FD2DC <CJK>
-8FD2DD 7C02 8FD2DD <CJK>
-8FD2DE 7C03 8FD2DE <CJK>
-8FD2DF 7C04 8FD2DF <CJK>
-8FD2E0 7C06 8FD2E0 <CJK>
-8FD2E1 7C09 8FD2E1 <CJK>
-8FD2E2 7C0B 8FD2E2 <CJK>
-8FD2E3 7C0C 8FD2E3 <CJK>
-8FD2E4 7C0E 8FD2E4 <CJK>
-8FD2E5 7C0F 8FD2E5 <CJK>
-8FD2E6 7C19 8FD2E6 <CJK>
-8FD2E7 7C1B 8FD2E7 <CJK>
-8FD2E8 7C20 8FD2E8 <CJK>
-8FD2E9 7C25 8FD2E9 <CJK>
-8FD2EA 7C26 8FD2EA <CJK>
-8FD2EB 7C28 8FD2EB <CJK>
-8FD2EC 7C2C 8FD2EC <CJK>
-8FD2ED 7C31 8FD2ED <CJK>
-8FD2EE 7C33 8FD2EE <CJK>
-8FD2EF 7C34 8FD2EF <CJK>
-8FD2F0 7C36 8FD2F0 <CJK>
-8FD2F1 7C39 8FD2F1 <CJK>
-8FD2F2 7C3A 8FD2F2 <CJK>
-8FD2F3 7C46 8FD2F3 <CJK>
-8FD2F4 7C4A 8FD2F4 <CJK>
-8FD2F5 7C55 8FD2F5 <CJK>
-8FD2F6 7C51 8FD2F6 <CJK>
-8FD2F7 7C52 8FD2F7 <CJK>
-8FD2F8 7C53 8FD2F8 <CJK>
-8FD2F9 7C59 8FD2F9 <CJK>
-8FD2FA 7C5A 8FD2FA <CJK>
-8FD2FB 7C5B 8FD2FB <CJK>
-8FD2FC 7C5C 8FD2FC <CJK>
-8FD2FD 7C5D 8FD2FD <CJK>
-8FD2FE 7C5E 8FD2FE <CJK>
-8FD3A1 7C61 8FD3A1 <CJK>
-8FD3A2 7C63 8FD3A2 <CJK>
-8FD3A3 7C67 8FD3A3 <CJK>
-8FD3A4 7C69 8FD3A4 <CJK>
-8FD3A5 7C6D 8FD3A5 <CJK>
-8FD3A6 7C6E 8FD3A6 <CJK>
-8FD3A7 7C70 8FD3A7 <CJK>
-8FD3A8 7C72 8FD3A8 <CJK>
-8FD3A9 7C79 8FD3A9 <CJK>
-8FD3AA 7C7C 8FD3AA <CJK>
-8FD3AB 7C7D 8FD3AB <CJK>
-8FD3AC 7C86 8FD3AC <CJK>
-8FD3AD 7C87 8FD3AD <CJK>
-8FD3AE 7C8F 8FD3AE <CJK>
-8FD3AF 7C94 8FD3AF <CJK>
-8FD3B0 7C9E 8FD3B0 <CJK>
-8FD3B1 7CA0 8FD3B1 <CJK>
-8FD3B2 7CA6 8FD3B2 <CJK>
-8FD3B3 7CB0 8FD3B3 <CJK>
-8FD3B4 7CB6 8FD3B4 <CJK>
-8FD3B5 7CB7 8FD3B5 <CJK>
-8FD3B6 7CBA 8FD3B6 <CJK>
-8FD3B7 7CBB 8FD3B7 <CJK>
-8FD3B8 7CBC 8FD3B8 <CJK>
-8FD3B9 7CBF 8FD3B9 <CJK>
-8FD3BA 7CC4 8FD3BA <CJK>
-8FD3BB 7CC7 8FD3BB <CJK>
-8FD3BC 7CC8 8FD3BC <CJK>
-8FD3BD 7CC9 8FD3BD <CJK>
-8FD3BE 7CCD 8FD3BE <CJK>
-8FD3BF 7CCF 8FD3BF <CJK>
-8FD3C0 7CD3 8FD3C0 <CJK>
-8FD3C1 7CD4 8FD3C1 <CJK>
-8FD3C2 7CD5 8FD3C2 <CJK>
-8FD3C3 7CD7 8FD3C3 <CJK>
-8FD3C4 7CD9 8FD3C4 <CJK>
-8FD3C5 7CDA 8FD3C5 <CJK>
-8FD3C6 7CDD 8FD3C6 <CJK>
-8FD3C7 7CE6 8FD3C7 <CJK>
-8FD3C8 7CE9 8FD3C8 <CJK>
-8FD3C9 7CEB 8FD3C9 <CJK>
-8FD3CA 7CF5 8FD3CA <CJK>
-8FD3CB 7D03 8FD3CB <CJK>
-8FD3CC 7D07 8FD3CC <CJK>
-8FD3CD 7D08 8FD3CD <CJK>
-8FD3CE 7D09 8FD3CE <CJK>
-8FD3CF 7D0F 8FD3CF <CJK>
-8FD3D0 7D11 8FD3D0 <CJK>
-8FD3D1 7D12 8FD3D1 <CJK>
-8FD3D2 7D13 8FD3D2 <CJK>
-8FD3D3 7D16 8FD3D3 <CJK>
-8FD3D4 7D1D 8FD3D4 <CJK>
-8FD3D5 7D1E 8FD3D5 <CJK>
-8FD3D6 7D23 8FD3D6 <CJK>
-8FD3D7 7D26 8FD3D7 <CJK>
-8FD3D8 7D2A 8FD3D8 <CJK>
-8FD3D9 7D2D 8FD3D9 <CJK>
-8FD3DA 7D31 8FD3DA <CJK>
-8FD3DB 7D3C 8FD3DB <CJK>
-8FD3DC 7D3D 8FD3DC <CJK>
-8FD3DD 7D3E 8FD3DD <CJK>
-8FD3DE 7D40 8FD3DE <CJK>
-8FD3DF 7D41 8FD3DF <CJK>
-8FD3E0 7D47 8FD3E0 <CJK>
-8FD3E1 7D48 8FD3E1 <CJK>
-8FD3E2 7D4D 8FD3E2 <CJK>
-8FD3E3 7D51 8FD3E3 <CJK>
-8FD3E4 7D53 8FD3E4 <CJK>
-8FD3E5 7D57 8FD3E5 <CJK>
-8FD3E6 7D59 8FD3E6 <CJK>
-8FD3E7 7D5A 8FD3E7 <CJK>
-8FD3E8 7D5C 8FD3E8 <CJK>
-8FD3E9 7D5D 8FD3E9 <CJK>
-8FD3EA 7D65 8FD3EA <CJK>
-8FD3EB 7D67 8FD3EB <CJK>
-8FD3EC 7D6A 8FD3EC <CJK>
-8FD3ED 7D70 8FD3ED <CJK>
-8FD3EE 7D78 8FD3EE <CJK>
-8FD3EF 7D7A 8FD3EF <CJK>
-8FD3F0 7D7B 8FD3F0 <CJK>
-8FD3F1 7D7F 8FD3F1 <CJK>
-8FD3F2 7D81 8FD3F2 <CJK>
-8FD3F3 7D82 8FD3F3 <CJK>
-8FD3F4 7D83 8FD3F4 <CJK>
-8FD3F5 7D85 8FD3F5 <CJK>
-8FD3F6 7D86 8FD3F6 <CJK>
-8FD3F7 7D88 8FD3F7 <CJK>
-8FD3F8 7D8B 8FD3F8 <CJK>
-8FD3F9 7D8C 8FD3F9 <CJK>
-8FD3FA 7D8D 8FD3FA <CJK>
-8FD3FB 7D91 8FD3FB <CJK>
-8FD3FC 7D96 8FD3FC <CJK>
-8FD3FD 7D97 8FD3FD <CJK>
-8FD3FE 7D9D 8FD3FE <CJK>
-8FD4A1 7D9E 8FD4A1 <CJK>
-8FD4A2 7DA6 8FD4A2 <CJK>
-8FD4A3 7DA7 8FD4A3 <CJK>
-8FD4A4 7DAA 8FD4A4 <CJK>
-8FD4A5 7DB3 8FD4A5 <CJK>
-8FD4A6 7DB6 8FD4A6 <CJK>
-8FD4A7 7DB7 8FD4A7 <CJK>
-8FD4A8 7DB9 8FD4A8 <CJK>
-8FD4A9 7DC2 8FD4A9 <CJK>
-8FD4AA 7DC3 8FD4AA <CJK>
-8FD4AB 7DC4 8FD4AB <CJK>
-8FD4AC 7DC5 8FD4AC <CJK>
-8FD4AD 7DC6 8FD4AD <CJK>
-8FD4AE 7DCC 8FD4AE <CJK>
-8FD4AF 7DCD 8FD4AF <CJK>
-8FD4B0 7DCE 8FD4B0 <CJK>
-8FD4B1 7DD7 8FD4B1 <CJK>
-8FD4B2 7DD9 8FD4B2 <CJK>
-8FD4B3 7E00 8FD4B3 <CJK>
-8FD4B4 7DE2 8FD4B4 <CJK>
-8FD4B5 7DE5 8FD4B5 <CJK>
-8FD4B6 7DE6 8FD4B6 <CJK>
-8FD4B7 7DEA 8FD4B7 <CJK>
-8FD4B8 7DEB 8FD4B8 <CJK>
-8FD4B9 7DED 8FD4B9 <CJK>
-8FD4BA 7DF1 8FD4BA <CJK>
-8FD4BB 7DF5 8FD4BB <CJK>
-8FD4BC 7DF6 8FD4BC <CJK>
-8FD4BD 7DF9 8FD4BD <CJK>
-8FD4BE 7DFA 8FD4BE <CJK>
-8FD4BF 7E08 8FD4BF <CJK>
-8FD4C0 7E10 8FD4C0 <CJK>
-8FD4C1 7E11 8FD4C1 <CJK>
-8FD4C2 7E15 8FD4C2 <CJK>
-8FD4C3 7E17 8FD4C3 <CJK>
-8FD4C4 7E1C 8FD4C4 <CJK>
-8FD4C5 7E1D 8FD4C5 <CJK>
-8FD4C6 7E20 8FD4C6 <CJK>
-8FD4C7 7E27 8FD4C7 <CJK>
-8FD4C8 7E28 8FD4C8 <CJK>
-8FD4C9 7E2C 8FD4C9 <CJK>
-8FD4CA 7E2D 8FD4CA <CJK>
-8FD4CB 7E2F 8FD4CB <CJK>
-8FD4CC 7E33 8FD4CC <CJK>
-8FD4CD 7E36 8FD4CD <CJK>
-8FD4CE 7E3F 8FD4CE <CJK>
-8FD4CF 7E44 8FD4CF <CJK>
-8FD4D0 7E45 8FD4D0 <CJK>
-8FD4D1 7E47 8FD4D1 <CJK>
-8FD4D2 7E4E 8FD4D2 <CJK>
-8FD4D3 7E50 8FD4D3 <CJK>
-8FD4D4 7E52 8FD4D4 <CJK>
-8FD4D5 7E58 8FD4D5 <CJK>
-8FD4D6 7E5F 8FD4D6 <CJK>
-8FD4D7 7E61 8FD4D7 <CJK>
-8FD4D8 7E62 8FD4D8 <CJK>
-8FD4D9 7E65 8FD4D9 <CJK>
-8FD4DA 7E6B 8FD4DA <CJK>
-8FD4DB 7E6E 8FD4DB <CJK>
-8FD4DC 7E6F 8FD4DC <CJK>
-8FD4DD 7E73 8FD4DD <CJK>
-8FD4DE 7E78 8FD4DE <CJK>
-8FD4DF 7E7E 8FD4DF <CJK>
-8FD4E0 7E81 8FD4E0 <CJK>
-8FD4E1 7E86 8FD4E1 <CJK>
-8FD4E2 7E87 8FD4E2 <CJK>
-8FD4E3 7E8A 8FD4E3 <CJK>
-8FD4E4 7E8D 8FD4E4 <CJK>
-8FD4E5 7E91 8FD4E5 <CJK>
-8FD4E6 7E95 8FD4E6 <CJK>
-8FD4E7 7E98 8FD4E7 <CJK>
-8FD4E8 7E9A 8FD4E8 <CJK>
-8FD4E9 7E9D 8FD4E9 <CJK>
-8FD4EA 7E9E 8FD4EA <CJK>
-8FD4EB 7F3C 8FD4EB <CJK>
-8FD4EC 7F3B 8FD4EC <CJK>
-8FD4ED 7F3D 8FD4ED <CJK>
-8FD4EE 7F3E 8FD4EE <CJK>
-8FD4EF 7F3F 8FD4EF <CJK>
-8FD4F0 7F43 8FD4F0 <CJK>
-8FD4F1 7F44 8FD4F1 <CJK>
-8FD4F2 7F47 8FD4F2 <CJK>
-8FD4F3 7F4F 8FD4F3 <CJK>
-8FD4F4 7F52 8FD4F4 <CJK>
-8FD4F5 7F53 8FD4F5 <CJK>
-8FD4F6 7F5B 8FD4F6 <CJK>
-8FD4F7 7F5C 8FD4F7 <CJK>
-8FD4F8 7F5D 8FD4F8 <CJK>
-8FD4F9 7F61 8FD4F9 <CJK>
-8FD4FA 7F63 8FD4FA <CJK>
-8FD4FB 7F64 8FD4FB <CJK>
-8FD4FC 7F65 8FD4FC <CJK>
-8FD4FD 7F66 8FD4FD <CJK>
-8FD4FE 7F6D 8FD4FE <CJK>
-8FD5A1 7F71 8FD5A1 <CJK>
-8FD5A2 7F7D 8FD5A2 <CJK>
-8FD5A3 7F7E 8FD5A3 <CJK>
-8FD5A4 7F7F 8FD5A4 <CJK>
-8FD5A5 7F80 8FD5A5 <CJK>
-8FD5A6 7F8B 8FD5A6 <CJK>
-8FD5A7 7F8D 8FD5A7 <CJK>
-8FD5A8 7F8F 8FD5A8 <CJK>
-8FD5A9 7F90 8FD5A9 <CJK>
-8FD5AA 7F91 8FD5AA <CJK>
-8FD5AB 7F96 8FD5AB <CJK>
-8FD5AC 7F97 8FD5AC <CJK>
-8FD5AD 7F9C 8FD5AD <CJK>
-8FD5AE 7FA1 8FD5AE <CJK>
-8FD5AF 7FA2 8FD5AF <CJK>
-8FD5B0 7FA6 8FD5B0 <CJK>
-8FD5B1 7FAA 8FD5B1 <CJK>
-8FD5B2 7FAD 8FD5B2 <CJK>
-8FD5B3 7FB4 8FD5B3 <CJK>
-8FD5B4 7FBC 8FD5B4 <CJK>
-8FD5B5 7FBF 8FD5B5 <CJK>
-8FD5B6 7FC0 8FD5B6 <CJK>
-8FD5B7 7FC3 8FD5B7 <CJK>
-8FD5B8 7FC8 8FD5B8 <CJK>
-8FD5B9 7FCE 8FD5B9 <CJK>
-8FD5BA 7FCF 8FD5BA <CJK>
-8FD5BB 7FDB 8FD5BB <CJK>
-8FD5BC 7FDF 8FD5BC <CJK>
-8FD5BD 7FE3 8FD5BD <CJK>
-8FD5BE 7FE5 8FD5BE <CJK>
-8FD5BF 7FE8 8FD5BF <CJK>
-8FD5C0 7FEC 8FD5C0 <CJK>
-8FD5C1 7FEE 8FD5C1 <CJK>
-8FD5C2 7FEF 8FD5C2 <CJK>
-8FD5C3 7FF2 8FD5C3 <CJK>
-8FD5C4 7FFA 8FD5C4 <CJK>
-8FD5C5 7FFD 8FD5C5 <CJK>
-8FD5C6 7FFE 8FD5C6 <CJK>
-8FD5C7 7FFF 8FD5C7 <CJK>
-8FD5C8 8007 8FD5C8 <CJK>
-8FD5C9 8008 8FD5C9 <CJK>
-8FD5CA 800A 8FD5CA <CJK>
-8FD5CB 800D 8FD5CB <CJK>
-8FD5CC 800E 8FD5CC <CJK>
-8FD5CD 800F 8FD5CD <CJK>
-8FD5CE 8011 8FD5CE <CJK>
-8FD5CF 8013 8FD5CF <CJK>
-8FD5D0 8014 8FD5D0 <CJK>
-8FD5D1 8016 8FD5D1 <CJK>
-8FD5D2 801D 8FD5D2 <CJK>
-8FD5D3 801E 8FD5D3 <CJK>
-8FD5D4 801F 8FD5D4 <CJK>
-8FD5D5 8020 8FD5D5 <CJK>
-8FD5D6 8024 8FD5D6 <CJK>
-8FD5D7 8026 8FD5D7 <CJK>
-8FD5D8 802C 8FD5D8 <CJK>
-8FD5D9 802E 8FD5D9 <CJK>
-8FD5DA 8030 8FD5DA <CJK>
-8FD5DB 8034 8FD5DB <CJK>
-8FD5DC 8035 8FD5DC <CJK>
-8FD5DD 8037 8FD5DD <CJK>
-8FD5DE 8039 8FD5DE <CJK>
-8FD5DF 803A 8FD5DF <CJK>
-8FD5E0 803C 8FD5E0 <CJK>
-8FD5E1 803E 8FD5E1 <CJK>
-8FD5E2 8040 8FD5E2 <CJK>
-8FD5E3 8044 8FD5E3 <CJK>
-8FD5E4 8060 8FD5E4 <CJK>
-8FD5E5 8064 8FD5E5 <CJK>
-8FD5E6 8066 8FD5E6 <CJK>
-8FD5E7 806D 8FD5E7 <CJK>
-8FD5E8 8071 8FD5E8 <CJK>
-8FD5E9 8075 8FD5E9 <CJK>
-8FD5EA 8081 8FD5EA <CJK>
-8FD5EB 8088 8FD5EB <CJK>
-8FD5EC 808E 8FD5EC <CJK>
-8FD5ED 809C 8FD5ED <CJK>
-8FD5EE 809E 8FD5EE <CJK>
-8FD5EF 80A6 8FD5EF <CJK>
-8FD5F0 80A7 8FD5F0 <CJK>
-8FD5F1 80AB 8FD5F1 <CJK>
-8FD5F2 80B8 8FD5F2 <CJK>
-8FD5F3 80B9 8FD5F3 <CJK>
-8FD5F4 80C8 8FD5F4 <CJK>
-8FD5F5 80CD 8FD5F5 <CJK>
-8FD5F6 80CF 8FD5F6 <CJK>
-8FD5F7 80D2 8FD5F7 <CJK>
-8FD5F8 80D4 8FD5F8 <CJK>
-8FD5F9 80D5 8FD5F9 <CJK>
-8FD5FA 80D7 8FD5FA <CJK>
-8FD5FB 80D8 8FD5FB <CJK>
-8FD5FC 80E0 8FD5FC <CJK>
-8FD5FD 80ED 8FD5FD <CJK>
-8FD5FE 80EE 8FD5FE <CJK>
-8FD6A1 80F0 8FD6A1 <CJK>
-8FD6A2 80F2 8FD6A2 <CJK>
-8FD6A3 80F3 8FD6A3 <CJK>
-8FD6A4 80F6 8FD6A4 <CJK>
-8FD6A5 80F9 8FD6A5 <CJK>
-8FD6A6 80FA 8FD6A6 <CJK>
-8FD6A7 80FE 8FD6A7 <CJK>
-8FD6A8 8103 8FD6A8 <CJK>
-8FD6A9 810B 8FD6A9 <CJK>
-8FD6AA 8116 8FD6AA <CJK>
-8FD6AB 8117 8FD6AB <CJK>
-8FD6AC 8118 8FD6AC <CJK>
-8FD6AD 811C 8FD6AD <CJK>
-8FD6AE 811E 8FD6AE <CJK>
-8FD6AF 8120 8FD6AF <CJK>
-8FD6B0 8124 8FD6B0 <CJK>
-8FD6B1 8127 8FD6B1 <CJK>
-8FD6B2 812C 8FD6B2 <CJK>
-8FD6B3 8130 8FD6B3 <CJK>
-8FD6B4 8135 8FD6B4 <CJK>
-8FD6B5 813A 8FD6B5 <CJK>
-8FD6B6 813C 8FD6B6 <CJK>
-8FD6B7 8145 8FD6B7 <CJK>
-8FD6B8 8147 8FD6B8 <CJK>
-8FD6B9 814A 8FD6B9 <CJK>
-8FD6BA 814C 8FD6BA <CJK>
-8FD6BB 8152 8FD6BB <CJK>
-8FD6BC 8157 8FD6BC <CJK>
-8FD6BD 8160 8FD6BD <CJK>
-8FD6BE 8161 8FD6BE <CJK>
-8FD6BF 8167 8FD6BF <CJK>
-8FD6C0 8168 8FD6C0 <CJK>
-8FD6C1 8169 8FD6C1 <CJK>
-8FD6C2 816D 8FD6C2 <CJK>
-8FD6C3 816F 8FD6C3 <CJK>
-8FD6C4 8177 8FD6C4 <CJK>
-8FD6C5 8181 8FD6C5 <CJK>
-8FD6C6 8190 8FD6C6 <CJK>
-8FD6C7 8184 8FD6C7 <CJK>
-8FD6C8 8185 8FD6C8 <CJK>
-8FD6C9 8186 8FD6C9 <CJK>
-8FD6CA 818B 8FD6CA <CJK>
-8FD6CB 818E 8FD6CB <CJK>
-8FD6CC 8196 8FD6CC <CJK>
-8FD6CD 8198 8FD6CD <CJK>
-8FD6CE 819B 8FD6CE <CJK>
-8FD6CF 819E 8FD6CF <CJK>
-8FD6D0 81A2 8FD6D0 <CJK>
-8FD6D1 81AE 8FD6D1 <CJK>
-8FD6D2 81B2 8FD6D2 <CJK>
-8FD6D3 81B4 8FD6D3 <CJK>
-8FD6D4 81BB 8FD6D4 <CJK>
-8FD6D5 81CB 8FD6D5 <CJK>
-8FD6D6 81C3 8FD6D6 <CJK>
-8FD6D7 81C5 8FD6D7 <CJK>
-8FD6D8 81CA 8FD6D8 <CJK>
-8FD6D9 81CE 8FD6D9 <CJK>
-8FD6DA 81CF 8FD6DA <CJK>
-8FD6DB 81D5 8FD6DB <CJK>
-8FD6DC 81D7 8FD6DC <CJK>
-8FD6DD 81DB 8FD6DD <CJK>
-8FD6DE 81DD 8FD6DE <CJK>
-8FD6DF 81DE 8FD6DF <CJK>
-8FD6E0 81E1 8FD6E0 <CJK>
-8FD6E1 81E4 8FD6E1 <CJK>
-8FD6E2 81EB 8FD6E2 <CJK>
-8FD6E3 81EC 8FD6E3 <CJK>
-8FD6E4 81F0 8FD6E4 <CJK>
-8FD6E5 81F1 8FD6E5 <CJK>
-8FD6E6 81F2 8FD6E6 <CJK>
-8FD6E7 81F5 8FD6E7 <CJK>
-8FD6E8 81F6 8FD6E8 <CJK>
-8FD6E9 81F8 8FD6E9 <CJK>
-8FD6EA 81F9 8FD6EA <CJK>
-8FD6EB 81FD 8FD6EB <CJK>
-8FD6EC 81FF 8FD6EC <CJK>
-8FD6ED 8200 8FD6ED <CJK>
-8FD6EE 8203 8FD6EE <CJK>
-8FD6EF 820F 8FD6EF <CJK>
-8FD6F0 8213 8FD6F0 <CJK>
-8FD6F1 8214 8FD6F1 <CJK>
-8FD6F2 8219 8FD6F2 <CJK>
-8FD6F3 821A 8FD6F3 <CJK>
-8FD6F4 821D 8FD6F4 <CJK>
-8FD6F5 8221 8FD6F5 <CJK>
-8FD6F6 8222 8FD6F6 <CJK>
-8FD6F7 8228 8FD6F7 <CJK>
-8FD6F8 8232 8FD6F8 <CJK>
-8FD6F9 8234 8FD6F9 <CJK>
-8FD6FA 823A 8FD6FA <CJK>
-8FD6FB 8243 8FD6FB <CJK>
-8FD6FC 8244 8FD6FC <CJK>
-8FD6FD 8245 8FD6FD <CJK>
-8FD6FE 8246 8FD6FE <CJK>
-8FD7A1 824B 8FD7A1 <CJK>
-8FD7A2 824E 8FD7A2 <CJK>
-8FD7A3 824F 8FD7A3 <CJK>
-8FD7A4 8251 8FD7A4 <CJK>
-8FD7A5 8256 8FD7A5 <CJK>
-8FD7A6 825C 8FD7A6 <CJK>
-8FD7A7 8260 8FD7A7 <CJK>
-8FD7A8 8263 8FD7A8 <CJK>
-8FD7A9 8267 8FD7A9 <CJK>
-8FD7AA 826D 8FD7AA <CJK>
-8FD7AB 8274 8FD7AB <CJK>
-8FD7AC 827B 8FD7AC <CJK>
-8FD7AD 827D 8FD7AD <CJK>
-8FD7AE 827F 8FD7AE <CJK>
-8FD7AF 8280 8FD7AF <CJK>
-8FD7B0 8281 8FD7B0 <CJK>
-8FD7B1 8283 8FD7B1 <CJK>
-8FD7B2 8284 8FD7B2 <CJK>
-8FD7B3 8287 8FD7B3 <CJK>
-8FD7B4 8289 8FD7B4 <CJK>
-8FD7B5 828A 8FD7B5 <CJK>
-8FD7B6 828E 8FD7B6 <CJK>
-8FD7B7 8291 8FD7B7 <CJK>
-8FD7B8 8294 8FD7B8 <CJK>
-8FD7B9 8296 8FD7B9 <CJK>
-8FD7BA 8298 8FD7BA <CJK>
-8FD7BB 829A 8FD7BB <CJK>
-8FD7BC 829B 8FD7BC <CJK>
-8FD7BD 82A0 8FD7BD <CJK>
-8FD7BE 82A1 8FD7BE <CJK>
-8FD7BF 82A3 8FD7BF <CJK>
-8FD7C0 82A4 8FD7C0 <CJK>
-8FD7C1 82A7 8FD7C1 <CJK>
-8FD7C2 82A8 8FD7C2 <CJK>
-8FD7C3 82A9 8FD7C3 <CJK>
-8FD7C4 82AA 8FD7C4 <CJK>
-8FD7C5 82AE 8FD7C5 <CJK>
-8FD7C6 82B0 8FD7C6 <CJK>
-8FD7C7 82B2 8FD7C7 <CJK>
-8FD7C8 82B4 8FD7C8 <CJK>
-8FD7C9 82B7 8FD7C9 <CJK>
-8FD7CA 82BA 8FD7CA <CJK>
-8FD7CB 82BC 8FD7CB <CJK>
-8FD7CC 82BE 8FD7CC <CJK>
-8FD7CD 82BF 8FD7CD <CJK>
-8FD7CE 82C6 8FD7CE <CJK>
-8FD7CF 82D0 8FD7CF <CJK>
-8FD7D0 82D5 8FD7D0 <CJK>
-8FD7D1 82DA 8FD7D1 <CJK>
-8FD7D2 82E0 8FD7D2 <CJK>
-8FD7D3 82E2 8FD7D3 <CJK>
-8FD7D4 82E4 8FD7D4 <CJK>
-8FD7D5 82E8 8FD7D5 <CJK>
-8FD7D6 82EA 8FD7D6 <CJK>
-8FD7D7 82ED 8FD7D7 <CJK>
-8FD7D8 82EF 8FD7D8 <CJK>
-8FD7D9 82F6 8FD7D9 <CJK>
-8FD7DA 82F7 8FD7DA <CJK>
-8FD7DB 82FD 8FD7DB <CJK>
-8FD7DC 82FE 8FD7DC <CJK>
-8FD7DD 8300 8FD7DD <CJK>
-8FD7DE 8301 8FD7DE <CJK>
-8FD7DF 8307 8FD7DF <CJK>
-8FD7E0 8308 8FD7E0 <CJK>
-8FD7E1 830A 8FD7E1 <CJK>
-8FD7E2 830B 8FD7E2 <CJK>
-8FD7E3 8354 8FD7E3 <CJK>
-8FD7E4 831B 8FD7E4 <CJK>
-8FD7E5 831D 8FD7E5 <CJK>
-8FD7E6 831E 8FD7E6 <CJK>
-8FD7E7 831F 8FD7E7 <CJK>
-8FD7E8 8321 8FD7E8 <CJK>
-8FD7E9 8322 8FD7E9 <CJK>
-8FD7EA 832C 8FD7EA <CJK>
-8FD7EB 832D 8FD7EB <CJK>
-8FD7EC 832E 8FD7EC <CJK>
-8FD7ED 8330 8FD7ED <CJK>
-8FD7EE 8333 8FD7EE <CJK>
-8FD7EF 8337 8FD7EF <CJK>
-8FD7F0 833A 8FD7F0 <CJK>
-8FD7F1 833C 8FD7F1 <CJK>
-8FD7F2 833D 8FD7F2 <CJK>
-8FD7F3 8342 8FD7F3 <CJK>
-8FD7F4 8343 8FD7F4 <CJK>
-8FD7F5 8344 8FD7F5 <CJK>
-8FD7F6 8347 8FD7F6 <CJK>
-8FD7F7 834D 8FD7F7 <CJK>
-8FD7F8 834E 8FD7F8 <CJK>
-8FD7F9 8351 8FD7F9 <CJK>
-8FD7FA 8355 8FD7FA <CJK>
-8FD7FB 8356 8FD7FB <CJK>
-8FD7FC 8357 8FD7FC <CJK>
-8FD7FD 8370 8FD7FD <CJK>
-8FD7FE 8378 8FD7FE <CJK>
-8FD8A1 837D 8FD8A1 <CJK>
-8FD8A2 837F 8FD8A2 <CJK>
-8FD8A3 8380 8FD8A3 <CJK>
-8FD8A4 8382 8FD8A4 <CJK>
-8FD8A5 8384 8FD8A5 <CJK>
-8FD8A6 8386 8FD8A6 <CJK>
-8FD8A7 838D 8FD8A7 <CJK>
-8FD8A8 8392 8FD8A8 <CJK>
-8FD8A9 8394 8FD8A9 <CJK>
-8FD8AA 8395 8FD8AA <CJK>
-8FD8AB 8398 8FD8AB <CJK>
-8FD8AC 8399 8FD8AC <CJK>
-8FD8AD 839B 8FD8AD <CJK>
-8FD8AE 839C 8FD8AE <CJK>
-8FD8AF 839D 8FD8AF <CJK>
-8FD8B0 83A6 8FD8B0 <CJK>
-8FD8B1 83A7 8FD8B1 <CJK>
-8FD8B2 83A9 8FD8B2 <CJK>
-8FD8B3 83AC 8FD8B3 <CJK>
-8FD8B4 83BE 8FD8B4 <CJK>
-8FD8B5 83BF 8FD8B5 <CJK>
-8FD8B6 83C0 8FD8B6 <CJK>
-8FD8B7 83C7 8FD8B7 <CJK>
-8FD8B8 83C9 8FD8B8 <CJK>
-8FD8B9 83CF 8FD8B9 <CJK>
-8FD8BA 83D0 8FD8BA <CJK>
-8FD8BB 83D1 8FD8BB <CJK>
-8FD8BC 83D4 8FD8BC <CJK>
-8FD8BD 83DD 8FD8BD <CJK>
-8FD8BE 8353 8FD8BE <CJK>
-8FD8BF 83E8 8FD8BF <CJK>
-8FD8C0 83EA 8FD8C0 <CJK>
-8FD8C1 83F6 8FD8C1 <CJK>
-8FD8C2 83F8 8FD8C2 <CJK>
-8FD8C3 83F9 8FD8C3 <CJK>
-8FD8C4 83FC 8FD8C4 <CJK>
-8FD8C5 8401 8FD8C5 <CJK>
-8FD8C6 8406 8FD8C6 <CJK>
-8FD8C7 840A 8FD8C7 <CJK>
-8FD8C8 840F 8FD8C8 <CJK>
-8FD8C9 8411 8FD8C9 <CJK>
-8FD8CA 8415 8FD8CA <CJK>
-8FD8CB 8419 8FD8CB <CJK>
-8FD8CC 83AD 8FD8CC <CJK>
-8FD8CD 842F 8FD8CD <CJK>
-8FD8CE 8439 8FD8CE <CJK>
-8FD8CF 8445 8FD8CF <CJK>
-8FD8D0 8447 8FD8D0 <CJK>
-8FD8D1 8448 8FD8D1 <CJK>
-8FD8D2 844A 8FD8D2 <CJK>
-8FD8D3 844D 8FD8D3 <CJK>
-8FD8D4 844F 8FD8D4 <CJK>
-8FD8D5 8451 8FD8D5 <CJK>
-8FD8D6 8452 8FD8D6 <CJK>
-8FD8D7 8456 8FD8D7 <CJK>
-8FD8D8 8458 8FD8D8 <CJK>
-8FD8D9 8459 8FD8D9 <CJK>
-8FD8DA 845A 8FD8DA <CJK>
-8FD8DB 845C 8FD8DB <CJK>
-8FD8DC 8460 8FD8DC <CJK>
-8FD8DD 8464 8FD8DD <CJK>
-8FD8DE 8465 8FD8DE <CJK>
-8FD8DF 8467 8FD8DF <CJK>
-8FD8E0 846A 8FD8E0 <CJK>
-8FD8E1 8470 8FD8E1 <CJK>
-8FD8E2 8473 8FD8E2 <CJK>
-8FD8E3 8474 8FD8E3 <CJK>
-8FD8E4 8476 8FD8E4 <CJK>
-8FD8E5 8478 8FD8E5 <CJK>
-8FD8E6 847C 8FD8E6 <CJK>
-8FD8E7 847D 8FD8E7 <CJK>
-8FD8E8 8481 8FD8E8 <CJK>
-8FD8E9 8485 8FD8E9 <CJK>
-8FD8EA 8492 8FD8EA <CJK>
-8FD8EB 8493 8FD8EB <CJK>
-8FD8EC 8495 8FD8EC <CJK>
-8FD8ED 849E 8FD8ED <CJK>
-8FD8EE 84A6 8FD8EE <CJK>
-8FD8EF 84A8 8FD8EF <CJK>
-8FD8F0 84A9 8FD8F0 <CJK>
-8FD8F1 84AA 8FD8F1 <CJK>
-8FD8F2 84AF 8FD8F2 <CJK>
-8FD8F3 84B1 8FD8F3 <CJK>
-8FD8F4 84B4 8FD8F4 <CJK>
-8FD8F5 84BA 8FD8F5 <CJK>
-8FD8F6 84BD 8FD8F6 <CJK>
-8FD8F7 84BE 8FD8F7 <CJK>
-8FD8F8 84C0 8FD8F8 <CJK>
-8FD8F9 84C2 8FD8F9 <CJK>
-8FD8FA 84C7 8FD8FA <CJK>
-8FD8FB 84C8 8FD8FB <CJK>
-8FD8FC 84CC 8FD8FC <CJK>
-8FD8FD 84CF 8FD8FD <CJK>
-8FD8FE 84D3 8FD8FE <CJK>
-8FD9A1 84DC 8FD9A1 <CJK>
-8FD9A2 84E7 8FD9A2 <CJK>
-8FD9A3 84EA 8FD9A3 <CJK>
-8FD9A4 84EF 8FD9A4 <CJK>
-8FD9A5 84F0 8FD9A5 <CJK>
-8FD9A6 84F1 8FD9A6 <CJK>
-8FD9A7 84F2 8FD9A7 <CJK>
-8FD9A8 84F7 8FD9A8 <CJK>
-8FD9A9 8532 8FD9A9 <CJK>
-8FD9AA 84FA 8FD9AA <CJK>
-8FD9AB 84FB 8FD9AB <CJK>
-8FD9AC 84FD 8FD9AC <CJK>
-8FD9AD 8502 8FD9AD <CJK>
-8FD9AE 8503 8FD9AE <CJK>
-8FD9AF 8507 8FD9AF <CJK>
-8FD9B0 850C 8FD9B0 <CJK>
-8FD9B1 850E 8FD9B1 <CJK>
-8FD9B2 8510 8FD9B2 <CJK>
-8FD9B3 851C 8FD9B3 <CJK>
-8FD9B4 851E 8FD9B4 <CJK>
-8FD9B5 8522 8FD9B5 <CJK>
-8FD9B6 8523 8FD9B6 <CJK>
-8FD9B7 8524 8FD9B7 <CJK>
-8FD9B8 8525 8FD9B8 <CJK>
-8FD9B9 8527 8FD9B9 <CJK>
-8FD9BA 852A 8FD9BA <CJK>
-8FD9BB 852B 8FD9BB <CJK>
-8FD9BC 852F 8FD9BC <CJK>
-8FD9BD 8533 8FD9BD <CJK>
-8FD9BE 8534 8FD9BE <CJK>
-8FD9BF 8536 8FD9BF <CJK>
-8FD9C0 853F 8FD9C0 <CJK>
-8FD9C1 8546 8FD9C1 <CJK>
-8FD9C2 854F 8FD9C2 <CJK>
-8FD9C3 8550 8FD9C3 <CJK>
-8FD9C4 8551 8FD9C4 <CJK>
-8FD9C5 8552 8FD9C5 <CJK>
-8FD9C6 8553 8FD9C6 <CJK>
-8FD9C7 8556 8FD9C7 <CJK>
-8FD9C8 8559 8FD9C8 <CJK>
-8FD9C9 855C 8FD9C9 <CJK>
-8FD9CA 855D 8FD9CA <CJK>
-8FD9CB 855E 8FD9CB <CJK>
-8FD9CC 855F 8FD9CC <CJK>
-8FD9CD 8560 8FD9CD <CJK>
-8FD9CE 8561 8FD9CE <CJK>
-8FD9CF 8562 8FD9CF <CJK>
-8FD9D0 8564 8FD9D0 <CJK>
-8FD9D1 856B 8FD9D1 <CJK>
-8FD9D2 856F 8FD9D2 <CJK>
-8FD9D3 8579 8FD9D3 <CJK>
-8FD9D4 857A 8FD9D4 <CJK>
-8FD9D5 857B 8FD9D5 <CJK>
-8FD9D6 857D 8FD9D6 <CJK>
-8FD9D7 857F 8FD9D7 <CJK>
-8FD9D8 8581 8FD9D8 <CJK>
-8FD9D9 8585 8FD9D9 <CJK>
-8FD9DA 8586 8FD9DA <CJK>
-8FD9DB 8589 8FD9DB <CJK>
-8FD9DC 858B 8FD9DC <CJK>
-8FD9DD 858C 8FD9DD <CJK>
-8FD9DE 858F 8FD9DE <CJK>
-8FD9DF 8593 8FD9DF <CJK>
-8FD9E0 8598 8FD9E0 <CJK>
-8FD9E1 859D 8FD9E1 <CJK>
-8FD9E2 859F 8FD9E2 <CJK>
-8FD9E3 85A0 8FD9E3 <CJK>
-8FD9E4 85A2 8FD9E4 <CJK>
-8FD9E5 85A5 8FD9E5 <CJK>
-8FD9E6 85A7 8FD9E6 <CJK>
-8FD9E7 85B4 8FD9E7 <CJK>
-8FD9E8 85B6 8FD9E8 <CJK>
-8FD9E9 85B7 8FD9E9 <CJK>
-8FD9EA 85B8 8FD9EA <CJK>
-8FD9EB 85BC 8FD9EB <CJK>
-8FD9EC 85BD 8FD9EC <CJK>
-8FD9ED 85BE 8FD9ED <CJK>
-8FD9EE 85BF 8FD9EE <CJK>
-8FD9EF 85C2 8FD9EF <CJK>
-8FD9F0 85C7 8FD9F0 <CJK>
-8FD9F1 85CA 8FD9F1 <CJK>
-8FD9F2 85CB 8FD9F2 <CJK>
-8FD9F3 85CE 8FD9F3 <CJK>
-8FD9F4 85AD 8FD9F4 <CJK>
-8FD9F5 85D8 8FD9F5 <CJK>
-8FD9F6 85DA 8FD9F6 <CJK>
-8FD9F7 85DF 8FD9F7 <CJK>
-8FD9F8 85E0 8FD9F8 <CJK>
-8FD9F9 85E6 8FD9F9 <CJK>
-8FD9FA 85E8 8FD9FA <CJK>
-8FD9FB 85ED 8FD9FB <CJK>
-8FD9FC 85F3 8FD9FC <CJK>
-8FD9FD 85F6 8FD9FD <CJK>
-8FD9FE 85FC 8FD9FE <CJK>
-8FDAA1 85FF 8FDAA1 <CJK>
-8FDAA2 8600 8FDAA2 <CJK>
-8FDAA3 8604 8FDAA3 <CJK>
-8FDAA4 8605 8FDAA4 <CJK>
-8FDAA5 860D 8FDAA5 <CJK>
-8FDAA6 860E 8FDAA6 <CJK>
-8FDAA7 8610 8FDAA7 <CJK>
-8FDAA8 8611 8FDAA8 <CJK>
-8FDAA9 8612 8FDAA9 <CJK>
-8FDAAA 8618 8FDAAA <CJK>
-8FDAAB 8619 8FDAAB <CJK>
-8FDAAC 861B 8FDAAC <CJK>
-8FDAAD 861E 8FDAAD <CJK>
-8FDAAE 8621 8FDAAE <CJK>
-8FDAAF 8627 8FDAAF <CJK>
-8FDAB0 8629 8FDAB0 <CJK>
-8FDAB1 8636 8FDAB1 <CJK>
-8FDAB2 8638 8FDAB2 <CJK>
-8FDAB3 863A 8FDAB3 <CJK>
-8FDAB4 863C 8FDAB4 <CJK>
-8FDAB5 863D 8FDAB5 <CJK>
-8FDAB6 8640 8FDAB6 <CJK>
-8FDAB7 8642 8FDAB7 <CJK>
-8FDAB8 8646 8FDAB8 <CJK>
-8FDAB9 8652 8FDAB9 <CJK>
-8FDABA 8653 8FDABA <CJK>
-8FDABB 8656 8FDABB <CJK>
-8FDABC 8657 8FDABC <CJK>
-8FDABD 8658 8FDABD <CJK>
-8FDABE 8659 8FDABE <CJK>
-8FDABF 865D 8FDABF <CJK>
-8FDAC0 8660 8FDAC0 <CJK>
-8FDAC1 8661 8FDAC1 <CJK>
-8FDAC2 8662 8FDAC2 <CJK>
-8FDAC3 8663 8FDAC3 <CJK>
-8FDAC4 8664 8FDAC4 <CJK>
-8FDAC5 8669 8FDAC5 <CJK>
-8FDAC6 866C 8FDAC6 <CJK>
-8FDAC7 866F 8FDAC7 <CJK>
-8FDAC8 8675 8FDAC8 <CJK>
-8FDAC9 8676 8FDAC9 <CJK>
-8FDACA 8677 8FDACA <CJK>
-8FDACB 867A 8FDACB <CJK>
-8FDACC 868D 8FDACC <CJK>
-8FDACD 8691 8FDACD <CJK>
-8FDACE 8696 8FDACE <CJK>
-8FDACF 8698 8FDACF <CJK>
-8FDAD0 869A 8FDAD0 <CJK>
-8FDAD1 869C 8FDAD1 <CJK>
-8FDAD2 86A1 8FDAD2 <CJK>
-8FDAD3 86A6 8FDAD3 <CJK>
-8FDAD4 86A7 8FDAD4 <CJK>
-8FDAD5 86A8 8FDAD5 <CJK>
-8FDAD6 86AD 8FDAD6 <CJK>
-8FDAD7 86B1 8FDAD7 <CJK>
-8FDAD8 86B3 8FDAD8 <CJK>
-8FDAD9 86B4 8FDAD9 <CJK>
-8FDADA 86B5 8FDADA <CJK>
-8FDADB 86B7 8FDADB <CJK>
-8FDADC 86B8 8FDADC <CJK>
-8FDADD 86B9 8FDADD <CJK>
-8FDADE 86BF 8FDADE <CJK>
-8FDADF 86C0 8FDADF <CJK>
-8FDAE0 86C1 8FDAE0 <CJK>
-8FDAE1 86C3 8FDAE1 <CJK>
-8FDAE2 86C5 8FDAE2 <CJK>
-8FDAE3 86D1 8FDAE3 <CJK>
-8FDAE4 86D2 8FDAE4 <CJK>
-8FDAE5 86D5 8FDAE5 <CJK>
-8FDAE6 86D7 8FDAE6 <CJK>
-8FDAE7 86DA 8FDAE7 <CJK>
-8FDAE8 86DC 8FDAE8 <CJK>
-8FDAE9 86E0 8FDAE9 <CJK>
-8FDAEA 86E3 8FDAEA <CJK>
-8FDAEB 86E5 8FDAEB <CJK>
-8FDAEC 86E7 8FDAEC <CJK>
-8FDAED 8688 8FDAED <CJK>
-8FDAEE 86FA 8FDAEE <CJK>
-8FDAEF 86FC 8FDAEF <CJK>
-8FDAF0 86FD 8FDAF0 <CJK>
-8FDAF1 8704 8FDAF1 <CJK>
-8FDAF2 8705 8FDAF2 <CJK>
-8FDAF3 8707 8FDAF3 <CJK>
-8FDAF4 870B 8FDAF4 <CJK>
-8FDAF5 870E 8FDAF5 <CJK>
-8FDAF6 870F 8FDAF6 <CJK>
-8FDAF7 8710 8FDAF7 <CJK>
-8FDAF8 8713 8FDAF8 <CJK>
-8FDAF9 8714 8FDAF9 <CJK>
-8FDAFA 8719 8FDAFA <CJK>
-8FDAFB 871E 8FDAFB <CJK>
-8FDAFC 871F 8FDAFC <CJK>
-8FDAFD 8721 8FDAFD <CJK>
-8FDAFE 8723 8FDAFE <CJK>
-8FDBA1 8728 8FDBA1 <CJK>
-8FDBA2 872E 8FDBA2 <CJK>
-8FDBA3 872F 8FDBA3 <CJK>
-8FDBA4 8731 8FDBA4 <CJK>
-8FDBA5 8732 8FDBA5 <CJK>
-8FDBA6 8739 8FDBA6 <CJK>
-8FDBA7 873A 8FDBA7 <CJK>
-8FDBA8 873C 8FDBA8 <CJK>
-8FDBA9 873D 8FDBA9 <CJK>
-8FDBAA 873E 8FDBAA <CJK>
-8FDBAB 8740 8FDBAB <CJK>
-8FDBAC 8743 8FDBAC <CJK>
-8FDBAD 8745 8FDBAD <CJK>
-8FDBAE 874D 8FDBAE <CJK>
-8FDBAF 8758 8FDBAF <CJK>
-8FDBB0 875D 8FDBB0 <CJK>
-8FDBB1 8761 8FDBB1 <CJK>
-8FDBB2 8764 8FDBB2 <CJK>
-8FDBB3 8765 8FDBB3 <CJK>
-8FDBB4 876F 8FDBB4 <CJK>
-8FDBB5 8771 8FDBB5 <CJK>
-8FDBB6 8772 8FDBB6 <CJK>
-8FDBB7 877B 8FDBB7 <CJK>
-8FDBB8 8783 8FDBB8 <CJK>
-8FDBB9 8784 8FDBB9 <CJK>
-8FDBBA 8785 8FDBBA <CJK>
-8FDBBB 8786 8FDBBB <CJK>
-8FDBBC 8787 8FDBBC <CJK>
-8FDBBD 8788 8FDBBD <CJK>
-8FDBBE 8789 8FDBBE <CJK>
-8FDBBF 878B 8FDBBF <CJK>
-8FDBC0 878C 8FDBC0 <CJK>
-8FDBC1 8790 8FDBC1 <CJK>
-8FDBC2 8793 8FDBC2 <CJK>
-8FDBC3 8795 8FDBC3 <CJK>
-8FDBC4 8797 8FDBC4 <CJK>
-8FDBC5 8798 8FDBC5 <CJK>
-8FDBC6 8799 8FDBC6 <CJK>
-8FDBC7 879E 8FDBC7 <CJK>
-8FDBC8 87A0 8FDBC8 <CJK>
-8FDBC9 87A3 8FDBC9 <CJK>
-8FDBCA 87A7 8FDBCA <CJK>
-8FDBCB 87AC 8FDBCB <CJK>
-8FDBCC 87AD 8FDBCC <CJK>
-8FDBCD 87AE 8FDBCD <CJK>
-8FDBCE 87B1 8FDBCE <CJK>
-8FDBCF 87B5 8FDBCF <CJK>
-8FDBD0 87BE 8FDBD0 <CJK>
-8FDBD1 87BF 8FDBD1 <CJK>
-8FDBD2 87C1 8FDBD2 <CJK>
-8FDBD3 87C8 8FDBD3 <CJK>
-8FDBD4 87C9 8FDBD4 <CJK>
-8FDBD5 87CA 8FDBD5 <CJK>
-8FDBD6 87CE 8FDBD6 <CJK>
-8FDBD7 87D5 8FDBD7 <CJK>
-8FDBD8 87D6 8FDBD8 <CJK>
-8FDBD9 87D9 8FDBD9 <CJK>
-8FDBDA 87DA 8FDBDA <CJK>
-8FDBDB 87DC 8FDBDB <CJK>
-8FDBDC 87DF 8FDBDC <CJK>
-8FDBDD 87E2 8FDBDD <CJK>
-8FDBDE 87E3 8FDBDE <CJK>
-8FDBDF 87E4 8FDBDF <CJK>
-8FDBE0 87EA 8FDBE0 <CJK>
-8FDBE1 87EB 8FDBE1 <CJK>
-8FDBE2 87ED 8FDBE2 <CJK>
-8FDBE3 87F1 8FDBE3 <CJK>
-8FDBE4 87F3 8FDBE4 <CJK>
-8FDBE5 87F8 8FDBE5 <CJK>
-8FDBE6 87FA 8FDBE6 <CJK>
-8FDBE7 87FF 8FDBE7 <CJK>
-8FDBE8 8801 8FDBE8 <CJK>
-8FDBE9 8803 8FDBE9 <CJK>
-8FDBEA 8806 8FDBEA <CJK>
-8FDBEB 8809 8FDBEB <CJK>
-8FDBEC 880A 8FDBEC <CJK>
-8FDBED 880B 8FDBED <CJK>
-8FDBEE 8810 8FDBEE <CJK>
-8FDBEF 8819 8FDBEF <CJK>
-8FDBF0 8812 8FDBF0 <CJK>
-8FDBF1 8813 8FDBF1 <CJK>
-8FDBF2 8814 8FDBF2 <CJK>
-8FDBF3 8818 8FDBF3 <CJK>
-8FDBF4 881A 8FDBF4 <CJK>
-8FDBF5 881B 8FDBF5 <CJK>
-8FDBF6 881C 8FDBF6 <CJK>
-8FDBF7 881E 8FDBF7 <CJK>
-8FDBF8 881F 8FDBF8 <CJK>
-8FDBF9 8828 8FDBF9 <CJK>
-8FDBFA 882D 8FDBFA <CJK>
-8FDBFB 882E 8FDBFB <CJK>
-8FDBFC 8830 8FDBFC <CJK>
-8FDBFD 8832 8FDBFD <CJK>
-8FDBFE 8835 8FDBFE <CJK>
-8FDCA1 883A 8FDCA1 <CJK>
-8FDCA2 883C 8FDCA2 <CJK>
-8FDCA3 8841 8FDCA3 <CJK>
-8FDCA4 8843 8FDCA4 <CJK>
-8FDCA5 8845 8FDCA5 <CJK>
-8FDCA6 8848 8FDCA6 <CJK>
-8FDCA7 8849 8FDCA7 <CJK>
-8FDCA8 884A 8FDCA8 <CJK>
-8FDCA9 884B 8FDCA9 <CJK>
-8FDCAA 884E 8FDCAA <CJK>
-8FDCAB 8851 8FDCAB <CJK>
-8FDCAC 8855 8FDCAC <CJK>
-8FDCAD 8856 8FDCAD <CJK>
-8FDCAE 8858 8FDCAE <CJK>
-8FDCAF 885A 8FDCAF <CJK>
-8FDCB0 885C 8FDCB0 <CJK>
-8FDCB1 885F 8FDCB1 <CJK>
-8FDCB2 8860 8FDCB2 <CJK>
-8FDCB3 8864 8FDCB3 <CJK>
-8FDCB4 8869 8FDCB4 <CJK>
-8FDCB5 8871 8FDCB5 <CJK>
-8FDCB6 8879 8FDCB6 <CJK>
-8FDCB7 887B 8FDCB7 <CJK>
-8FDCB8 8880 8FDCB8 <CJK>
-8FDCB9 8898 8FDCB9 <CJK>
-8FDCBA 889A 8FDCBA <CJK>
-8FDCBB 889B 8FDCBB <CJK>
-8FDCBC 889C 8FDCBC <CJK>
-8FDCBD 889F 8FDCBD <CJK>
-8FDCBE 88A0 8FDCBE <CJK>
-8FDCBF 88A8 8FDCBF <CJK>
-8FDCC0 88AA 8FDCC0 <CJK>
-8FDCC1 88BA 8FDCC1 <CJK>
-8FDCC2 88BD 8FDCC2 <CJK>
-8FDCC3 88BE 8FDCC3 <CJK>
-8FDCC4 88C0 8FDCC4 <CJK>
-8FDCC5 88CA 8FDCC5 <CJK>
-8FDCC6 88CB 8FDCC6 <CJK>
-8FDCC7 88CC 8FDCC7 <CJK>
-8FDCC8 88CD 8FDCC8 <CJK>
-8FDCC9 88CE 8FDCC9 <CJK>
-8FDCCA 88D1 8FDCCA <CJK>
-8FDCCB 88D2 8FDCCB <CJK>
-8FDCCC 88D3 8FDCCC <CJK>
-8FDCCD 88DB 8FDCCD <CJK>
-8FDCCE 88DE 8FDCCE <CJK>
-8FDCCF 88E7 8FDCCF <CJK>
-8FDCD0 88EF 8FDCD0 <CJK>
-8FDCD1 88F0 8FDCD1 <CJK>
-8FDCD2 88F1 8FDCD2 <CJK>
-8FDCD3 88F5 8FDCD3 <CJK>
-8FDCD4 88F7 8FDCD4 <CJK>
-8FDCD5 8901 8FDCD5 <CJK>
-8FDCD6 8906 8FDCD6 <CJK>
-8FDCD7 890D 8FDCD7 <CJK>
-8FDCD8 890E 8FDCD8 <CJK>
-8FDCD9 890F 8FDCD9 <CJK>
-8FDCDA 8915 8FDCDA <CJK>
-8FDCDB 8916 8FDCDB <CJK>
-8FDCDC 8918 8FDCDC <CJK>
-8FDCDD 8919 8FDCDD <CJK>
-8FDCDE 891A 8FDCDE <CJK>
-8FDCDF 891C 8FDCDF <CJK>
-8FDCE0 8920 8FDCE0 <CJK>
-8FDCE1 8926 8FDCE1 <CJK>
-8FDCE2 8927 8FDCE2 <CJK>
-8FDCE3 8928 8FDCE3 <CJK>
-8FDCE4 8930 8FDCE4 <CJK>
-8FDCE5 8931 8FDCE5 <CJK>
-8FDCE6 8932 8FDCE6 <CJK>
-8FDCE7 8935 8FDCE7 <CJK>
-8FDCE8 8939 8FDCE8 <CJK>
-8FDCE9 893A 8FDCE9 <CJK>
-8FDCEA 893E 8FDCEA <CJK>
-8FDCEB 8940 8FDCEB <CJK>
-8FDCEC 8942 8FDCEC <CJK>
-8FDCED 8945 8FDCED <CJK>
-8FDCEE 8946 8FDCEE <CJK>
-8FDCEF 8949 8FDCEF <CJK>
-8FDCF0 894F 8FDCF0 <CJK>
-8FDCF1 8952 8FDCF1 <CJK>
-8FDCF2 8957 8FDCF2 <CJK>
-8FDCF3 895A 8FDCF3 <CJK>
-8FDCF4 895B 8FDCF4 <CJK>
-8FDCF5 895C 8FDCF5 <CJK>
-8FDCF6 8961 8FDCF6 <CJK>
-8FDCF7 8962 8FDCF7 <CJK>
-8FDCF8 8963 8FDCF8 <CJK>
-8FDCF9 896B 8FDCF9 <CJK>
-8FDCFA 896E 8FDCFA <CJK>
-8FDCFB 8970 8FDCFB <CJK>
-8FDCFC 8973 8FDCFC <CJK>
-8FDCFD 8975 8FDCFD <CJK>
-8FDCFE 897A 8FDCFE <CJK>
-8FDDA1 897B 8FDDA1 <CJK>
-8FDDA2 897C 8FDDA2 <CJK>
-8FDDA3 897D 8FDDA3 <CJK>
-8FDDA4 8989 8FDDA4 <CJK>
-8FDDA5 898D 8FDDA5 <CJK>
-8FDDA6 8990 8FDDA6 <CJK>
-8FDDA7 8994 8FDDA7 <CJK>
-8FDDA8 8995 8FDDA8 <CJK>
-8FDDA9 899B 8FDDA9 <CJK>
-8FDDAA 899C 8FDDAA <CJK>
-8FDDAB 899F 8FDDAB <CJK>
-8FDDAC 89A0 8FDDAC <CJK>
-8FDDAD 89A5 8FDDAD <CJK>
-8FDDAE 89B0 8FDDAE <CJK>
-8FDDAF 89B4 8FDDAF <CJK>
-8FDDB0 89B5 8FDDB0 <CJK>
-8FDDB1 89B6 8FDDB1 <CJK>
-8FDDB2 89B7 8FDDB2 <CJK>
-8FDDB3 89BC 8FDDB3 <CJK>
-8FDDB4 89D4 8FDDB4 <CJK>
-8FDDB5 89D5 8FDDB5 <CJK>
-8FDDB6 89D6 8FDDB6 <CJK>
-8FDDB7 89D7 8FDDB7 <CJK>
-8FDDB8 89D8 8FDDB8 <CJK>
-8FDDB9 89E5 8FDDB9 <CJK>
-8FDDBA 89E9 8FDDBA <CJK>
-8FDDBB 89EB 8FDDBB <CJK>
-8FDDBC 89ED 8FDDBC <CJK>
-8FDDBD 89F1 8FDDBD <CJK>
-8FDDBE 89F3 8FDDBE <CJK>
-8FDDBF 89F6 8FDDBF <CJK>
-8FDDC0 89F9 8FDDC0 <CJK>
-8FDDC1 89FD 8FDDC1 <CJK>
-8FDDC2 89FF 8FDDC2 <CJK>
-8FDDC3 8A04 8FDDC3 <CJK>
-8FDDC4 8A05 8FDDC4 <CJK>
-8FDDC5 8A07 8FDDC5 <CJK>
-8FDDC6 8A0F 8FDDC6 <CJK>
-8FDDC7 8A11 8FDDC7 <CJK>
-8FDDC8 8A12 8FDDC8 <CJK>
-8FDDC9 8A14 8FDDC9 <CJK>
-8FDDCA 8A15 8FDDCA <CJK>
-8FDDCB 8A1E 8FDDCB <CJK>
-8FDDCC 8A20 8FDDCC <CJK>
-8FDDCD 8A22 8FDDCD <CJK>
-8FDDCE 8A24 8FDDCE <CJK>
-8FDDCF 8A26 8FDDCF <CJK>
-8FDDD0 8A2B 8FDDD0 <CJK>
-8FDDD1 8A2C 8FDDD1 <CJK>
-8FDDD2 8A2F 8FDDD2 <CJK>
-8FDDD3 8A35 8FDDD3 <CJK>
-8FDDD4 8A37 8FDDD4 <CJK>
-8FDDD5 8A3D 8FDDD5 <CJK>
-8FDDD6 8A3E 8FDDD6 <CJK>
-8FDDD7 8A40 8FDDD7 <CJK>
-8FDDD8 8A43 8FDDD8 <CJK>
-8FDDD9 8A45 8FDDD9 <CJK>
-8FDDDA 8A47 8FDDDA <CJK>
-8FDDDB 8A49 8FDDDB <CJK>
-8FDDDC 8A4D 8FDDDC <CJK>
-8FDDDD 8A4E 8FDDDD <CJK>
-8FDDDE 8A53 8FDDDE <CJK>
-8FDDDF 8A56 8FDDDF <CJK>
-8FDDE0 8A57 8FDDE0 <CJK>
-8FDDE1 8A58 8FDDE1 <CJK>
-8FDDE2 8A5C 8FDDE2 <CJK>
-8FDDE3 8A5D 8FDDE3 <CJK>
-8FDDE4 8A61 8FDDE4 <CJK>
-8FDDE5 8A65 8FDDE5 <CJK>
-8FDDE6 8A67 8FDDE6 <CJK>
-8FDDE7 8A75 8FDDE7 <CJK>
-8FDDE8 8A76 8FDDE8 <CJK>
-8FDDE9 8A77 8FDDE9 <CJK>
-8FDDEA 8A79 8FDDEA <CJK>
-8FDDEB 8A7A 8FDDEB <CJK>
-8FDDEC 8A7B 8FDDEC <CJK>
-8FDDED 8A7E 8FDDED <CJK>
-8FDDEE 8A7F 8FDDEE <CJK>
-8FDDEF 8A80 8FDDEF <CJK>
-8FDDF0 8A83 8FDDF0 <CJK>
-8FDDF1 8A86 8FDDF1 <CJK>
-8FDDF2 8A8B 8FDDF2 <CJK>
-8FDDF3 8A8F 8FDDF3 <CJK>
-8FDDF4 8A90 8FDDF4 <CJK>
-8FDDF5 8A92 8FDDF5 <CJK>
-8FDDF6 8A96 8FDDF6 <CJK>
-8FDDF7 8A97 8FDDF7 <CJK>
-8FDDF8 8A99 8FDDF8 <CJK>
-8FDDF9 8A9F 8FDDF9 <CJK>
-8FDDFA 8AA7 8FDDFA <CJK>
-8FDDFB 8AA9 8FDDFB <CJK>
-8FDDFC 8AAE 8FDDFC <CJK>
-8FDDFD 8AAF 8FDDFD <CJK>
-8FDDFE 8AB3 8FDDFE <CJK>
-8FDEA1 8AB6 8FDEA1 <CJK>
-8FDEA2 8AB7 8FDEA2 <CJK>
-8FDEA3 8ABB 8FDEA3 <CJK>
-8FDEA4 8ABE 8FDEA4 <CJK>
-8FDEA5 8AC3 8FDEA5 <CJK>
-8FDEA6 8AC6 8FDEA6 <CJK>
-8FDEA7 8AC8 8FDEA7 <CJK>
-8FDEA8 8AC9 8FDEA8 <CJK>
-8FDEA9 8ACA 8FDEA9 <CJK>
-8FDEAA 8AD1 8FDEAA <CJK>
-8FDEAB 8AD3 8FDEAB <CJK>
-8FDEAC 8AD4 8FDEAC <CJK>
-8FDEAD 8AD5 8FDEAD <CJK>
-8FDEAE 8AD7 8FDEAE <CJK>
-8FDEAF 8ADD 8FDEAF <CJK>
-8FDEB0 8ADF 8FDEB0 <CJK>
-8FDEB1 8AEC 8FDEB1 <CJK>
-8FDEB2 8AF0 8FDEB2 <CJK>
-8FDEB3 8AF4 8FDEB3 <CJK>
-8FDEB4 8AF5 8FDEB4 <CJK>
-8FDEB5 8AF6 8FDEB5 <CJK>
-8FDEB6 8AFC 8FDEB6 <CJK>
-8FDEB7 8AFF 8FDEB7 <CJK>
-8FDEB8 8B05 8FDEB8 <CJK>
-8FDEB9 8B06 8FDEB9 <CJK>
-8FDEBA 8B0B 8FDEBA <CJK>
-8FDEBB 8B11 8FDEBB <CJK>
-8FDEBC 8B1C 8FDEBC <CJK>
-8FDEBD 8B1E 8FDEBD <CJK>
-8FDEBE 8B1F 8FDEBE <CJK>
-8FDEBF 8B0A 8FDEBF <CJK>
-8FDEC0 8B2D 8FDEC0 <CJK>
-8FDEC1 8B30 8FDEC1 <CJK>
-8FDEC2 8B37 8FDEC2 <CJK>
-8FDEC3 8B3C 8FDEC3 <CJK>
-8FDEC4 8B42 8FDEC4 <CJK>
-8FDEC5 8B43 8FDEC5 <CJK>
-8FDEC6 8B44 8FDEC6 <CJK>
-8FDEC7 8B45 8FDEC7 <CJK>
-8FDEC8 8B46 8FDEC8 <CJK>
-8FDEC9 8B48 8FDEC9 <CJK>
-8FDECA 8B52 8FDECA <CJK>
-8FDECB 8B53 8FDECB <CJK>
-8FDECC 8B54 8FDECC <CJK>
-8FDECD 8B59 8FDECD <CJK>
-8FDECE 8B4D 8FDECE <CJK>
-8FDECF 8B5E 8FDECF <CJK>
-8FDED0 8B63 8FDED0 <CJK>
-8FDED1 8B6D 8FDED1 <CJK>
-8FDED2 8B76 8FDED2 <CJK>
-8FDED3 8B78 8FDED3 <CJK>
-8FDED4 8B79 8FDED4 <CJK>
-8FDED5 8B7C 8FDED5 <CJK>
-8FDED6 8B7E 8FDED6 <CJK>
-8FDED7 8B81 8FDED7 <CJK>
-8FDED8 8B84 8FDED8 <CJK>
-8FDED9 8B85 8FDED9 <CJK>
-8FDEDA 8B8B 8FDEDA <CJK>
-8FDEDB 8B8D 8FDEDB <CJK>
-8FDEDC 8B8F 8FDEDC <CJK>
-8FDEDD 8B94 8FDEDD <CJK>
-8FDEDE 8B95 8FDEDE <CJK>
-8FDEDF 8B9C 8FDEDF <CJK>
-8FDEE0 8B9E 8FDEE0 <CJK>
-8FDEE1 8B9F 8FDEE1 <CJK>
-8FDEE2 8C38 8FDEE2 <CJK>
-8FDEE3 8C39 8FDEE3 <CJK>
-8FDEE4 8C3D 8FDEE4 <CJK>
-8FDEE5 8C3E 8FDEE5 <CJK>
-8FDEE6 8C45 8FDEE6 <CJK>
-8FDEE7 8C47 8FDEE7 <CJK>
-8FDEE8 8C49 8FDEE8 <CJK>
-8FDEE9 8C4B 8FDEE9 <CJK>
-8FDEEA 8C4F 8FDEEA <CJK>
-8FDEEB 8C51 8FDEEB <CJK>
-8FDEEC 8C53 8FDEEC <CJK>
-8FDEED 8C54 8FDEED <CJK>
-8FDEEE 8C57 8FDEEE <CJK>
-8FDEEF 8C58 8FDEEF <CJK>
-8FDEF0 8C5B 8FDEF0 <CJK>
-8FDEF1 8C5D 8FDEF1 <CJK>
-8FDEF2 8C59 8FDEF2 <CJK>
-8FDEF3 8C63 8FDEF3 <CJK>
-8FDEF4 8C64 8FDEF4 <CJK>
-8FDEF5 8C66 8FDEF5 <CJK>
-8FDEF6 8C68 8FDEF6 <CJK>
-8FDEF7 8C69 8FDEF7 <CJK>
-8FDEF8 8C6D 8FDEF8 <CJK>
-8FDEF9 8C73 8FDEF9 <CJK>
-8FDEFA 8C75 8FDEFA <CJK>
-8FDEFB 8C76 8FDEFB <CJK>
-8FDEFC 8C7B 8FDEFC <CJK>
-8FDEFD 8C7E 8FDEFD <CJK>
-8FDEFE 8C86 8FDEFE <CJK>
-8FDFA1 8C87 8FDFA1 <CJK>
-8FDFA2 8C8B 8FDFA2 <CJK>
-8FDFA3 8C90 8FDFA3 <CJK>
-8FDFA4 8C92 8FDFA4 <CJK>
-8FDFA5 8C93 8FDFA5 <CJK>
-8FDFA6 8C99 8FDFA6 <CJK>
-8FDFA7 8C9B 8FDFA7 <CJK>
-8FDFA8 8C9C 8FDFA8 <CJK>
-8FDFA9 8CA4 8FDFA9 <CJK>
-8FDFAA 8CB9 8FDFAA <CJK>
-8FDFAB 8CBA 8FDFAB <CJK>
-8FDFAC 8CC5 8FDFAC <CJK>
-8FDFAD 8CC6 8FDFAD <CJK>
-8FDFAE 8CC9 8FDFAE <CJK>
-8FDFAF 8CCB 8FDFAF <CJK>
-8FDFB0 8CCF 8FDFB0 <CJK>
-8FDFB1 8CD6 8FDFB1 <CJK>
-8FDFB2 8CD5 8FDFB2 <CJK>
-8FDFB3 8CD9 8FDFB3 <CJK>
-8FDFB4 8CDD 8FDFB4 <CJK>
-8FDFB5 8CE1 8FDFB5 <CJK>
-8FDFB6 8CE8 8FDFB6 <CJK>
-8FDFB7 8CEC 8FDFB7 <CJK>
-8FDFB8 8CEF 8FDFB8 <CJK>
-8FDFB9 8CF0 8FDFB9 <CJK>
-8FDFBA 8CF2 8FDFBA <CJK>
-8FDFBB 8CF5 8FDFBB <CJK>
-8FDFBC 8CF7 8FDFBC <CJK>
-8FDFBD 8CF8 8FDFBD <CJK>
-8FDFBE 8CFE 8FDFBE <CJK>
-8FDFBF 8CFF 8FDFBF <CJK>
-8FDFC0 8D01 8FDFC0 <CJK>
-8FDFC1 8D03 8FDFC1 <CJK>
-8FDFC2 8D09 8FDFC2 <CJK>
-8FDFC3 8D12 8FDFC3 <CJK>
-8FDFC4 8D17 8FDFC4 <CJK>
-8FDFC5 8D1B 8FDFC5 <CJK>
-8FDFC6 8D65 8FDFC6 <CJK>
-8FDFC7 8D69 8FDFC7 <CJK>
-8FDFC8 8D6C 8FDFC8 <CJK>
-8FDFC9 8D6E 8FDFC9 <CJK>
-8FDFCA 8D7F 8FDFCA <CJK>
-8FDFCB 8D82 8FDFCB <CJK>
-8FDFCC 8D84 8FDFCC <CJK>
-8FDFCD 8D88 8FDFCD <CJK>
-8FDFCE 8D8D 8FDFCE <CJK>
-8FDFCF 8D90 8FDFCF <CJK>
-8FDFD0 8D91 8FDFD0 <CJK>
-8FDFD1 8D95 8FDFD1 <CJK>
-8FDFD2 8D9E 8FDFD2 <CJK>
-8FDFD3 8D9F 8FDFD3 <CJK>
-8FDFD4 8DA0 8FDFD4 <CJK>
-8FDFD5 8DA6 8FDFD5 <CJK>
-8FDFD6 8DAB 8FDFD6 <CJK>
-8FDFD7 8DAC 8FDFD7 <CJK>
-8FDFD8 8DAF 8FDFD8 <CJK>
-8FDFD9 8DB2 8FDFD9 <CJK>
-8FDFDA 8DB5 8FDFDA <CJK>
-8FDFDB 8DB7 8FDFDB <CJK>
-8FDFDC 8DB9 8FDFDC <CJK>
-8FDFDD 8DBB 8FDFDD <CJK>
-8FDFDE 8DC0 8FDFDE <CJK>
-8FDFDF 8DC5 8FDFDF <CJK>
-8FDFE0 8DC6 8FDFE0 <CJK>
-8FDFE1 8DC7 8FDFE1 <CJK>
-8FDFE2 8DC8 8FDFE2 <CJK>
-8FDFE3 8DCA 8FDFE3 <CJK>
-8FDFE4 8DCE 8FDFE4 <CJK>
-8FDFE5 8DD1 8FDFE5 <CJK>
-8FDFE6 8DD4 8FDFE6 <CJK>
-8FDFE7 8DD5 8FDFE7 <CJK>
-8FDFE8 8DD7 8FDFE8 <CJK>
-8FDFE9 8DD9 8FDFE9 <CJK>
-8FDFEA 8DE4 8FDFEA <CJK>
-8FDFEB 8DE5 8FDFEB <CJK>
-8FDFEC 8DE7 8FDFEC <CJK>
-8FDFED 8DEC 8FDFED <CJK>
-8FDFEE 8DF0 8FDFEE <CJK>
-8FDFEF 8DBC 8FDFEF <CJK>
-8FDFF0 8DF1 8FDFF0 <CJK>
-8FDFF1 8DF2 8FDFF1 <CJK>
-8FDFF2 8DF4 8FDFF2 <CJK>
-8FDFF3 8DFD 8FDFF3 <CJK>
-8FDFF4 8E01 8FDFF4 <CJK>
-8FDFF5 8E04 8FDFF5 <CJK>
-8FDFF6 8E05 8FDFF6 <CJK>
-8FDFF7 8E06 8FDFF7 <CJK>
-8FDFF8 8E0B 8FDFF8 <CJK>
-8FDFF9 8E11 8FDFF9 <CJK>
-8FDFFA 8E14 8FDFFA <CJK>
-8FDFFB 8E16 8FDFFB <CJK>
-8FDFFC 8E20 8FDFFC <CJK>
-8FDFFD 8E21 8FDFFD <CJK>
-8FDFFE 8E22 8FDFFE <CJK>
-8FE0A1 8E23 8FE0A1 <CJK>
-8FE0A2 8E26 8FE0A2 <CJK>
-8FE0A3 8E27 8FE0A3 <CJK>
-8FE0A4 8E31 8FE0A4 <CJK>
-8FE0A5 8E33 8FE0A5 <CJK>
-8FE0A6 8E36 8FE0A6 <CJK>
-8FE0A7 8E37 8FE0A7 <CJK>
-8FE0A8 8E38 8FE0A8 <CJK>
-8FE0A9 8E39 8FE0A9 <CJK>
-8FE0AA 8E3D 8FE0AA <CJK>
-8FE0AB 8E40 8FE0AB <CJK>
-8FE0AC 8E41 8FE0AC <CJK>
-8FE0AD 8E4B 8FE0AD <CJK>
-8FE0AE 8E4D 8FE0AE <CJK>
-8FE0AF 8E4E 8FE0AF <CJK>
-8FE0B0 8E4F 8FE0B0 <CJK>
-8FE0B1 8E54 8FE0B1 <CJK>
-8FE0B2 8E5B 8FE0B2 <CJK>
-8FE0B3 8E5C 8FE0B3 <CJK>
-8FE0B4 8E5D 8FE0B4 <CJK>
-8FE0B5 8E5E 8FE0B5 <CJK>
-8FE0B6 8E61 8FE0B6 <CJK>
-8FE0B7 8E62 8FE0B7 <CJK>
-8FE0B8 8E69 8FE0B8 <CJK>
-8FE0B9 8E6C 8FE0B9 <CJK>
-8FE0BA 8E6D 8FE0BA <CJK>
-8FE0BB 8E6F 8FE0BB <CJK>
-8FE0BC 8E70 8FE0BC <CJK>
-8FE0BD 8E71 8FE0BD <CJK>
-8FE0BE 8E79 8FE0BE <CJK>
-8FE0BF 8E7A 8FE0BF <CJK>
-8FE0C0 8E7B 8FE0C0 <CJK>
-8FE0C1 8E82 8FE0C1 <CJK>
-8FE0C2 8E83 8FE0C2 <CJK>
-8FE0C3 8E89 8FE0C3 <CJK>
-8FE0C4 8E90 8FE0C4 <CJK>
-8FE0C5 8E92 8FE0C5 <CJK>
-8FE0C6 8E95 8FE0C6 <CJK>
-8FE0C7 8E9A 8FE0C7 <CJK>
-8FE0C8 8E9B 8FE0C8 <CJK>
-8FE0C9 8E9D 8FE0C9 <CJK>
-8FE0CA 8E9E 8FE0CA <CJK>
-8FE0CB 8EA2 8FE0CB <CJK>
-8FE0CC 8EA7 8FE0CC <CJK>
-8FE0CD 8EA9 8FE0CD <CJK>
-8FE0CE 8EAD 8FE0CE <CJK>
-8FE0CF 8EAE 8FE0CF <CJK>
-8FE0D0 8EB3 8FE0D0 <CJK>
-8FE0D1 8EB5 8FE0D1 <CJK>
-8FE0D2 8EBA 8FE0D2 <CJK>
-8FE0D3 8EBB 8FE0D3 <CJK>
-8FE0D4 8EC0 8FE0D4 <CJK>
-8FE0D5 8EC1 8FE0D5 <CJK>
-8FE0D6 8EC3 8FE0D6 <CJK>
-8FE0D7 8EC4 8FE0D7 <CJK>
-8FE0D8 8EC7 8FE0D8 <CJK>
-8FE0D9 8ECF 8FE0D9 <CJK>
-8FE0DA 8ED1 8FE0DA <CJK>
-8FE0DB 8ED4 8FE0DB <CJK>
-8FE0DC 8EDC 8FE0DC <CJK>
-8FE0DD 8EE8 8FE0DD <CJK>
-8FE0DE 8EEE 8FE0DE <CJK>
-8FE0DF 8EF0 8FE0DF <CJK>
-8FE0E0 8EF1 8FE0E0 <CJK>
-8FE0E1 8EF7 8FE0E1 <CJK>
-8FE0E2 8EF9 8FE0E2 <CJK>
-8FE0E3 8EFA 8FE0E3 <CJK>
-8FE0E4 8EED 8FE0E4 <CJK>
-8FE0E5 8F00 8FE0E5 <CJK>
-8FE0E6 8F02 8FE0E6 <CJK>
-8FE0E7 8F07 8FE0E7 <CJK>
-8FE0E8 8F08 8FE0E8 <CJK>
-8FE0E9 8F0F 8FE0E9 <CJK>
-8FE0EA 8F10 8FE0EA <CJK>
-8FE0EB 8F16 8FE0EB <CJK>
-8FE0EC 8F17 8FE0EC <CJK>
-8FE0ED 8F18 8FE0ED <CJK>
-8FE0EE 8F1E 8FE0EE <CJK>
-8FE0EF 8F20 8FE0EF <CJK>
-8FE0F0 8F21 8FE0F0 <CJK>
-8FE0F1 8F23 8FE0F1 <CJK>
-8FE0F2 8F25 8FE0F2 <CJK>
-8FE0F3 8F27 8FE0F3 <CJK>
-8FE0F4 8F28 8FE0F4 <CJK>
-8FE0F5 8F2C 8FE0F5 <CJK>
-8FE0F6 8F2D 8FE0F6 <CJK>
-8FE0F7 8F2E 8FE0F7 <CJK>
-8FE0F8 8F34 8FE0F8 <CJK>
-8FE0F9 8F35 8FE0F9 <CJK>
-8FE0FA 8F36 8FE0FA <CJK>
-8FE0FB 8F37 8FE0FB <CJK>
-8FE0FC 8F3A 8FE0FC <CJK>
-8FE0FD 8F40 8FE0FD <CJK>
-8FE0FE 8F41 8FE0FE <CJK>
-8FE1A1 8F43 8FE1A1 <CJK>
-8FE1A2 8F47 8FE1A2 <CJK>
-8FE1A3 8F4F 8FE1A3 <CJK>
-8FE1A4 8F51 8FE1A4 <CJK>
-8FE1A5 8F52 8FE1A5 <CJK>
-8FE1A6 8F53 8FE1A6 <CJK>
-8FE1A7 8F54 8FE1A7 <CJK>
-8FE1A8 8F55 8FE1A8 <CJK>
-8FE1A9 8F58 8FE1A9 <CJK>
-8FE1AA 8F5D 8FE1AA <CJK>
-8FE1AB 8F5E 8FE1AB <CJK>
-8FE1AC 8F65 8FE1AC <CJK>
-8FE1AD 8F9D 8FE1AD <CJK>
-8FE1AE 8FA0 8FE1AE <CJK>
-8FE1AF 8FA1 8FE1AF <CJK>
-8FE1B0 8FA4 8FE1B0 <CJK>
-8FE1B1 8FA5 8FE1B1 <CJK>
-8FE1B2 8FA6 8FE1B2 <CJK>
-8FE1B3 8FB5 8FE1B3 <CJK>
-8FE1B4 8FB6 8FE1B4 <CJK>
-8FE1B5 8FB8 8FE1B5 <CJK>
-8FE1B6 8FBE 8FE1B6 <CJK>
-8FE1B7 8FC0 8FE1B7 <CJK>
-8FE1B8 8FC1 8FE1B8 <CJK>
-8FE1B9 8FC6 8FE1B9 <CJK>
-8FE1BA 8FCA 8FE1BA <CJK>
-8FE1BB 8FCB 8FE1BB <CJK>
-8FE1BC 8FCD 8FE1BC <CJK>
-8FE1BD 8FD0 8FE1BD <CJK>
-8FE1BE 8FD2 8FE1BE <CJK>
-8FE1BF 8FD3 8FE1BF <CJK>
-8FE1C0 8FD5 8FE1C0 <CJK>
-8FE1C1 8FE0 8FE1C1 <CJK>
-8FE1C2 8FE3 8FE1C2 <CJK>
-8FE1C3 8FE4 8FE1C3 <CJK>
-8FE1C4 8FE8 8FE1C4 <CJK>
-8FE1C5 8FEE 8FE1C5 <CJK>
-8FE1C6 8FF1 8FE1C6 <CJK>
-8FE1C7 8FF5 8FE1C7 <CJK>
-8FE1C8 8FF6 8FE1C8 <CJK>
-8FE1C9 8FFB 8FE1C9 <CJK>
-8FE1CA 8FFE 8FE1CA <CJK>
-8FE1CB 9002 8FE1CB <CJK>
-8FE1CC 9004 8FE1CC <CJK>
-8FE1CD 9008 8FE1CD <CJK>
-8FE1CE 900C 8FE1CE <CJK>
-8FE1CF 9018 8FE1CF <CJK>
-8FE1D0 901B 8FE1D0 <CJK>
-8FE1D1 9028 8FE1D1 <CJK>
-8FE1D2 9029 8FE1D2 <CJK>
-8FE1D3 902F 8FE1D3 <CJK>
-8FE1D4 902A 8FE1D4 <CJK>
-8FE1D5 902C 8FE1D5 <CJK>
-8FE1D6 902D 8FE1D6 <CJK>
-8FE1D7 9033 8FE1D7 <CJK>
-8FE1D8 9034 8FE1D8 <CJK>
-8FE1D9 9037 8FE1D9 <CJK>
-8FE1DA 903F 8FE1DA <CJK>
-8FE1DB 9043 8FE1DB <CJK>
-8FE1DC 9044 8FE1DC <CJK>
-8FE1DD 904C 8FE1DD <CJK>
-8FE1DE 905B 8FE1DE <CJK>
-8FE1DF 905D 8FE1DF <CJK>
-8FE1E0 9062 8FE1E0 <CJK>
-8FE1E1 9066 8FE1E1 <CJK>
-8FE1E2 9067 8FE1E2 <CJK>
-8FE1E3 906C 8FE1E3 <CJK>
-8FE1E4 9070 8FE1E4 <CJK>
-8FE1E5 9074 8FE1E5 <CJK>
-8FE1E6 9079 8FE1E6 <CJK>
-8FE1E7 9085 8FE1E7 <CJK>
-8FE1E8 9088 8FE1E8 <CJK>
-8FE1E9 908B 8FE1E9 <CJK>
-8FE1EA 908C 8FE1EA <CJK>
-8FE1EB 908E 8FE1EB <CJK>
-8FE1EC 9090 8FE1EC <CJK>
-8FE1ED 9095 8FE1ED <CJK>
-8FE1EE 9097 8FE1EE <CJK>
-8FE1EF 9098 8FE1EF <CJK>
-8FE1F0 9099 8FE1F0 <CJK>
-8FE1F1 909B 8FE1F1 <CJK>
-8FE1F2 90A0 8FE1F2 <CJK>
-8FE1F3 90A1 8FE1F3 <CJK>
-8FE1F4 90A2 8FE1F4 <CJK>
-8FE1F5 90A5 8FE1F5 <CJK>
-8FE1F6 90B0 8FE1F6 <CJK>
-8FE1F7 90B2 8FE1F7 <CJK>
-8FE1F8 90B3 8FE1F8 <CJK>
-8FE1F9 90B4 8FE1F9 <CJK>
-8FE1FA 90B6 8FE1FA <CJK>
-8FE1FB 90BD 8FE1FB <CJK>
-8FE1FC 90CC 8FE1FC <CJK>
-8FE1FD 90BE 8FE1FD <CJK>
-8FE1FE 90C3 8FE1FE <CJK>
-8FE2A1 90C4 8FE2A1 <CJK>
-8FE2A2 90C5 8FE2A2 <CJK>
-8FE2A3 90C7 8FE2A3 <CJK>
-8FE2A4 90C8 8FE2A4 <CJK>
-8FE2A5 90D5 8FE2A5 <CJK>
-8FE2A6 90D7 8FE2A6 <CJK>
-8FE2A7 90D8 8FE2A7 <CJK>
-8FE2A8 90D9 8FE2A8 <CJK>
-8FE2A9 90DC 8FE2A9 <CJK>
-8FE2AA 90DD 8FE2AA <CJK>
-8FE2AB 90DF 8FE2AB <CJK>
-8FE2AC 90E5 8FE2AC <CJK>
-8FE2AD 90D2 8FE2AD <CJK>
-8FE2AE 90F6 8FE2AE <CJK>
-8FE2AF 90EB 8FE2AF <CJK>
-8FE2B0 90EF 8FE2B0 <CJK>
-8FE2B1 90F0 8FE2B1 <CJK>
-8FE2B2 90F4 8FE2B2 <CJK>
-8FE2B3 90FE 8FE2B3 <CJK>
-8FE2B4 90FF 8FE2B4 <CJK>
-8FE2B5 9100 8FE2B5 <CJK>
-8FE2B6 9104 8FE2B6 <CJK>
-8FE2B7 9105 8FE2B7 <CJK>
-8FE2B8 9106 8FE2B8 <CJK>
-8FE2B9 9108 8FE2B9 <CJK>
-8FE2BA 910D 8FE2BA <CJK>
-8FE2BB 9110 8FE2BB <CJK>
-8FE2BC 9114 8FE2BC <CJK>
-8FE2BD 9116 8FE2BD <CJK>
-8FE2BE 9117 8FE2BE <CJK>
-8FE2BF 9118 8FE2BF <CJK>
-8FE2C0 911A 8FE2C0 <CJK>
-8FE2C1 911C 8FE2C1 <CJK>
-8FE2C2 911E 8FE2C2 <CJK>
-8FE2C3 9120 8FE2C3 <CJK>
-8FE2C4 9125 8FE2C4 <CJK>
-8FE2C5 9122 8FE2C5 <CJK>
-8FE2C6 9123 8FE2C6 <CJK>
-8FE2C7 9127 8FE2C7 <CJK>
-8FE2C8 9129 8FE2C8 <CJK>
-8FE2C9 912E 8FE2C9 <CJK>
-8FE2CA 912F 8FE2CA <CJK>
-8FE2CB 9131 8FE2CB <CJK>
-8FE2CC 9134 8FE2CC <CJK>
-8FE2CD 9136 8FE2CD <CJK>
-8FE2CE 9137 8FE2CE <CJK>
-8FE2CF 9139 8FE2CF <CJK>
-8FE2D0 913A 8FE2D0 <CJK>
-8FE2D1 913C 8FE2D1 <CJK>
-8FE2D2 913D 8FE2D2 <CJK>
-8FE2D3 9143 8FE2D3 <CJK>
-8FE2D4 9147 8FE2D4 <CJK>
-8FE2D5 9148 8FE2D5 <CJK>
-8FE2D6 914F 8FE2D6 <CJK>
-8FE2D7 9153 8FE2D7 <CJK>
-8FE2D8 9157 8FE2D8 <CJK>
-8FE2D9 9159 8FE2D9 <CJK>
-8FE2DA 915A 8FE2DA <CJK>
-8FE2DB 915B 8FE2DB <CJK>
-8FE2DC 9161 8FE2DC <CJK>
-8FE2DD 9164 8FE2DD <CJK>
-8FE2DE 9167 8FE2DE <CJK>
-8FE2DF 916D 8FE2DF <CJK>
-8FE2E0 9174 8FE2E0 <CJK>
-8FE2E1 9179 8FE2E1 <CJK>
-8FE2E2 917A 8FE2E2 <CJK>
-8FE2E3 917B 8FE2E3 <CJK>
-8FE2E4 9181 8FE2E4 <CJK>
-8FE2E5 9183 8FE2E5 <CJK>
-8FE2E6 9185 8FE2E6 <CJK>
-8FE2E7 9186 8FE2E7 <CJK>
-8FE2E8 918A 8FE2E8 <CJK>
-8FE2E9 918E 8FE2E9 <CJK>
-8FE2EA 9191 8FE2EA <CJK>
-8FE2EB 9193 8FE2EB <CJK>
-8FE2EC 9194 8FE2EC <CJK>
-8FE2ED 9195 8FE2ED <CJK>
-8FE2EE 9198 8FE2EE <CJK>
-8FE2EF 919E 8FE2EF <CJK>
-8FE2F0 91A1 8FE2F0 <CJK>
-8FE2F1 91A6 8FE2F1 <CJK>
-8FE2F2 91A8 8FE2F2 <CJK>
-8FE2F3 91AC 8FE2F3 <CJK>
-8FE2F4 91AD 8FE2F4 <CJK>
-8FE2F5 91AE 8FE2F5 <CJK>
-8FE2F6 91B0 8FE2F6 <CJK>
-8FE2F7 91B1 8FE2F7 <CJK>
-8FE2F8 91B2 8FE2F8 <CJK>
-8FE2F9 91B3 8FE2F9 <CJK>
-8FE2FA 91B6 8FE2FA <CJK>
-8FE2FB 91BB 8FE2FB <CJK>
-8FE2FC 91BC 8FE2FC <CJK>
-8FE2FD 91BD 8FE2FD <CJK>
-8FE2FE 91BF 8FE2FE <CJK>
-8FE3A1 91C2 8FE3A1 <CJK>
-8FE3A2 91C3 8FE3A2 <CJK>
-8FE3A3 91C5 8FE3A3 <CJK>
-8FE3A4 91D3 8FE3A4 <CJK>
-8FE3A5 91D4 8FE3A5 <CJK>
-8FE3A6 91D7 8FE3A6 <CJK>
-8FE3A7 91D9 8FE3A7 <CJK>
-8FE3A8 91DA 8FE3A8 <CJK>
-8FE3A9 91DE 8FE3A9 <CJK>
-8FE3AA 91E4 8FE3AA <CJK>
-8FE3AB 91E5 8FE3AB <CJK>
-8FE3AC 91E9 8FE3AC <CJK>
-8FE3AD 91EA 8FE3AD <CJK>
-8FE3AE 91EC 8FE3AE <CJK>
-8FE3AF 91ED 8FE3AF <CJK>
-8FE3B0 91EE 8FE3B0 <CJK>
-8FE3B1 91EF 8FE3B1 <CJK>
-8FE3B2 91F0 8FE3B2 <CJK>
-8FE3B3 91F1 8FE3B3 <CJK>
-8FE3B4 91F7 8FE3B4 <CJK>
-8FE3B5 91F9 8FE3B5 <CJK>
-8FE3B6 91FB 8FE3B6 <CJK>
-8FE3B7 91FD 8FE3B7 <CJK>
-8FE3B8 9200 8FE3B8 <CJK>
-8FE3B9 9201 8FE3B9 <CJK>
-8FE3BA 9204 8FE3BA <CJK>
-8FE3BB 9205 8FE3BB <CJK>
-8FE3BC 9206 8FE3BC <CJK>
-8FE3BD 9207 8FE3BD <CJK>
-8FE3BE 9209 8FE3BE <CJK>
-8FE3BF 920A 8FE3BF <CJK>
-8FE3C0 920C 8FE3C0 <CJK>
-8FE3C1 9210 8FE3C1 <CJK>
-8FE3C2 9212 8FE3C2 <CJK>
-8FE3C3 9213 8FE3C3 <CJK>
-8FE3C4 9216 8FE3C4 <CJK>
-8FE3C5 9218 8FE3C5 <CJK>
-8FE3C6 921C 8FE3C6 <CJK>
-8FE3C7 921D 8FE3C7 <CJK>
-8FE3C8 9223 8FE3C8 <CJK>
-8FE3C9 9224 8FE3C9 <CJK>
-8FE3CA 9225 8FE3CA <CJK>
-8FE3CB 9226 8FE3CB <CJK>
-8FE3CC 9228 8FE3CC <CJK>
-8FE3CD 922E 8FE3CD <CJK>
-8FE3CE 922F 8FE3CE <CJK>
-8FE3CF 9230 8FE3CF <CJK>
-8FE3D0 9233 8FE3D0 <CJK>
-8FE3D1 9235 8FE3D1 <CJK>
-8FE3D2 9236 8FE3D2 <CJK>
-8FE3D3 9238 8FE3D3 <CJK>
-8FE3D4 9239 8FE3D4 <CJK>
-8FE3D5 923A 8FE3D5 <CJK>
-8FE3D6 923C 8FE3D6 <CJK>
-8FE3D7 923E 8FE3D7 <CJK>
-8FE3D8 9240 8FE3D8 <CJK>
-8FE3D9 9242 8FE3D9 <CJK>
-8FE3DA 9243 8FE3DA <CJK>
-8FE3DB 9246 8FE3DB <CJK>
-8FE3DC 9247 8FE3DC <CJK>
-8FE3DD 924A 8FE3DD <CJK>
-8FE3DE 924D 8FE3DE <CJK>
-8FE3DF 924E 8FE3DF <CJK>
-8FE3E0 924F 8FE3E0 <CJK>
-8FE3E1 9251 8FE3E1 <CJK>
-8FE3E2 9258 8FE3E2 <CJK>
-8FE3E3 9259 8FE3E3 <CJK>
-8FE3E4 925C 8FE3E4 <CJK>
-8FE3E5 925D 8FE3E5 <CJK>
-8FE3E6 9260 8FE3E6 <CJK>
-8FE3E7 9261 8FE3E7 <CJK>
-8FE3E8 9265 8FE3E8 <CJK>
-8FE3E9 9267 8FE3E9 <CJK>
-8FE3EA 9268 8FE3EA <CJK>
-8FE3EB 9269 8FE3EB <CJK>
-8FE3EC 926E 8FE3EC <CJK>
-8FE3ED 926F 8FE3ED <CJK>
-8FE3EE 9270 8FE3EE <CJK>
-8FE3EF 9275 8FE3EF <CJK>
-8FE3F0 9276 8FE3F0 <CJK>
-8FE3F1 9277 8FE3F1 <CJK>
-8FE3F2 9278 8FE3F2 <CJK>
-8FE3F3 9279 8FE3F3 <CJK>
-8FE3F4 927B 8FE3F4 <CJK>
-8FE3F5 927C 8FE3F5 <CJK>
-8FE3F6 927D 8FE3F6 <CJK>
-8FE3F7 927F 8FE3F7 <CJK>
-8FE3F8 9288 8FE3F8 <CJK>
-8FE3F9 9289 8FE3F9 <CJK>
-8FE3FA 928A 8FE3FA <CJK>
-8FE3FB 928D 8FE3FB <CJK>
-8FE3FC 928E 8FE3FC <CJK>
-8FE3FD 9292 8FE3FD <CJK>
-8FE3FE 9297 8FE3FE <CJK>
-8FE4A1 9299 8FE4A1 <CJK>
-8FE4A2 929F 8FE4A2 <CJK>
-8FE4A3 92A0 8FE4A3 <CJK>
-8FE4A4 92A4 8FE4A4 <CJK>
-8FE4A5 92A5 8FE4A5 <CJK>
-8FE4A6 92A7 8FE4A6 <CJK>
-8FE4A7 92A8 8FE4A7 <CJK>
-8FE4A8 92AB 8FE4A8 <CJK>
-8FE4A9 92AF 8FE4A9 <CJK>
-8FE4AA 92B2 8FE4AA <CJK>
-8FE4AB 92B6 8FE4AB <CJK>
-8FE4AC 92B8 8FE4AC <CJK>
-8FE4AD 92BA 8FE4AD <CJK>
-8FE4AE 92BB 8FE4AE <CJK>
-8FE4AF 92BC 8FE4AF <CJK>
-8FE4B0 92BD 8FE4B0 <CJK>
-8FE4B1 92BF 8FE4B1 <CJK>
-8FE4B2 92C0 8FE4B2 <CJK>
-8FE4B3 92C1 8FE4B3 <CJK>
-8FE4B4 92C2 8FE4B4 <CJK>
-8FE4B5 92C3 8FE4B5 <CJK>
-8FE4B6 92C5 8FE4B6 <CJK>
-8FE4B7 92C6 8FE4B7 <CJK>
-8FE4B8 92C7 8FE4B8 <CJK>
-8FE4B9 92C8 8FE4B9 <CJK>
-8FE4BA 92CB 8FE4BA <CJK>
-8FE4BB 92CC 8FE4BB <CJK>
-8FE4BC 92CD 8FE4BC <CJK>
-8FE4BD 92CE 8FE4BD <CJK>
-8FE4BE 92D0 8FE4BE <CJK>
-8FE4BF 92D3 8FE4BF <CJK>
-8FE4C0 92D5 8FE4C0 <CJK>
-8FE4C1 92D7 8FE4C1 <CJK>
-8FE4C2 92D8 8FE4C2 <CJK>
-8FE4C3 92D9 8FE4C3 <CJK>
-8FE4C4 92DC 8FE4C4 <CJK>
-8FE4C5 92DD 8FE4C5 <CJK>
-8FE4C6 92DF 8FE4C6 <CJK>
-8FE4C7 92E0 8FE4C7 <CJK>
-8FE4C8 92E1 8FE4C8 <CJK>
-8FE4C9 92E3 8FE4C9 <CJK>
-8FE4CA 92E5 8FE4CA <CJK>
-8FE4CB 92E7 8FE4CB <CJK>
-8FE4CC 92E8 8FE4CC <CJK>
-8FE4CD 92EC 8FE4CD <CJK>
-8FE4CE 92EE 8FE4CE <CJK>
-8FE4CF 92F0 8FE4CF <CJK>
-8FE4D0 92F9 8FE4D0 <CJK>
-8FE4D1 92FB 8FE4D1 <CJK>
-8FE4D2 92FF 8FE4D2 <CJK>
-8FE4D3 9300 8FE4D3 <CJK>
-8FE4D4 9302 8FE4D4 <CJK>
-8FE4D5 9308 8FE4D5 <CJK>
-8FE4D6 930D 8FE4D6 <CJK>
-8FE4D7 9311 8FE4D7 <CJK>
-8FE4D8 9314 8FE4D8 <CJK>
-8FE4D9 9315 8FE4D9 <CJK>
-8FE4DA 931C 8FE4DA <CJK>
-8FE4DB 931D 8FE4DB <CJK>
-8FE4DC 931E 8FE4DC <CJK>
-8FE4DD 931F 8FE4DD <CJK>
-8FE4DE 9321 8FE4DE <CJK>
-8FE4DF 9324 8FE4DF <CJK>
-8FE4E0 9325 8FE4E0 <CJK>
-8FE4E1 9327 8FE4E1 <CJK>
-8FE4E2 9329 8FE4E2 <CJK>
-8FE4E3 932A 8FE4E3 <CJK>
-8FE4E4 9333 8FE4E4 <CJK>
-8FE4E5 9334 8FE4E5 <CJK>
-8FE4E6 9336 8FE4E6 <CJK>
-8FE4E7 9337 8FE4E7 <CJK>
-8FE4E8 9347 8FE4E8 <CJK>
-8FE4E9 9348 8FE4E9 <CJK>
-8FE4EA 9349 8FE4EA <CJK>
-8FE4EB 9350 8FE4EB <CJK>
-8FE4EC 9351 8FE4EC <CJK>
-8FE4ED 9352 8FE4ED <CJK>
-8FE4EE 9355 8FE4EE <CJK>
-8FE4EF 9357 8FE4EF <CJK>
-8FE4F0 9358 8FE4F0 <CJK>
-8FE4F1 935A 8FE4F1 <CJK>
-8FE4F2 935E 8FE4F2 <CJK>
-8FE4F3 9364 8FE4F3 <CJK>
-8FE4F4 9365 8FE4F4 <CJK>
-8FE4F5 9367 8FE4F5 <CJK>
-8FE4F6 9369 8FE4F6 <CJK>
-8FE4F7 936A 8FE4F7 <CJK>
-8FE4F8 936D 8FE4F8 <CJK>
-8FE4F9 936F 8FE4F9 <CJK>
-8FE4FA 9370 8FE4FA <CJK>
-8FE4FB 9371 8FE4FB <CJK>
-8FE4FC 9373 8FE4FC <CJK>
-8FE4FD 9374 8FE4FD <CJK>
-8FE4FE 9376 8FE4FE <CJK>
-8FE5A1 937A 8FE5A1 <CJK>
-8FE5A2 937D 8FE5A2 <CJK>
-8FE5A3 937F 8FE5A3 <CJK>
-8FE5A4 9380 8FE5A4 <CJK>
-8FE5A5 9381 8FE5A5 <CJK>
-8FE5A6 9382 8FE5A6 <CJK>
-8FE5A7 9388 8FE5A7 <CJK>
-8FE5A8 938A 8FE5A8 <CJK>
-8FE5A9 938B 8FE5A9 <CJK>
-8FE5AA 938D 8FE5AA <CJK>
-8FE5AB 938F 8FE5AB <CJK>
-8FE5AC 9392 8FE5AC <CJK>
-8FE5AD 9395 8FE5AD <CJK>
-8FE5AE 9398 8FE5AE <CJK>
-8FE5AF 939B 8FE5AF <CJK>
-8FE5B0 939E 8FE5B0 <CJK>
-8FE5B1 93A1 8FE5B1 <CJK>
-8FE5B2 93A3 8FE5B2 <CJK>
-8FE5B3 93A4 8FE5B3 <CJK>
-8FE5B4 93A6 8FE5B4 <CJK>
-8FE5B5 93A8 8FE5B5 <CJK>
-8FE5B6 93AB 8FE5B6 <CJK>
-8FE5B7 93B4 8FE5B7 <CJK>
-8FE5B8 93B5 8FE5B8 <CJK>
-8FE5B9 93B6 8FE5B9 <CJK>
-8FE5BA 93BA 8FE5BA <CJK>
-8FE5BB 93A9 8FE5BB <CJK>
-8FE5BC 93C1 8FE5BC <CJK>
-8FE5BD 93C4 8FE5BD <CJK>
-8FE5BE 93C5 8FE5BE <CJK>
-8FE5BF 93C6 8FE5BF <CJK>
-8FE5C0 93C7 8FE5C0 <CJK>
-8FE5C1 93C9 8FE5C1 <CJK>
-8FE5C2 93CA 8FE5C2 <CJK>
-8FE5C3 93CB 8FE5C3 <CJK>
-8FE5C4 93CC 8FE5C4 <CJK>
-8FE5C5 93CD 8FE5C5 <CJK>
-8FE5C6 93D3 8FE5C6 <CJK>
-8FE5C7 93D9 8FE5C7 <CJK>
-8FE5C8 93DC 8FE5C8 <CJK>
-8FE5C9 93DE 8FE5C9 <CJK>
-8FE5CA 93DF 8FE5CA <CJK>
-8FE5CB 93E2 8FE5CB <CJK>
-8FE5CC 93E6 8FE5CC <CJK>
-8FE5CD 93E7 8FE5CD <CJK>
-8FE5CE 93F9 8FE5CE <CJK>
-8FE5CF 93F7 8FE5CF <CJK>
-8FE5D0 93F8 8FE5D0 <CJK>
-8FE5D1 93FA 8FE5D1 <CJK>
-8FE5D2 93FB 8FE5D2 <CJK>
-8FE5D3 93FD 8FE5D3 <CJK>
-8FE5D4 9401 8FE5D4 <CJK>
-8FE5D5 9402 8FE5D5 <CJK>
-8FE5D6 9404 8FE5D6 <CJK>
-8FE5D7 9408 8FE5D7 <CJK>
-8FE5D8 9409 8FE5D8 <CJK>
-8FE5D9 940D 8FE5D9 <CJK>
-8FE5DA 940E 8FE5DA <CJK>
-8FE5DB 940F 8FE5DB <CJK>
-8FE5DC 9415 8FE5DC <CJK>
-8FE5DD 9416 8FE5DD <CJK>
-8FE5DE 9417 8FE5DE <CJK>
-8FE5DF 941F 8FE5DF <CJK>
-8FE5E0 942E 8FE5E0 <CJK>
-8FE5E1 942F 8FE5E1 <CJK>
-8FE5E2 9431 8FE5E2 <CJK>
-8FE5E3 9432 8FE5E3 <CJK>
-8FE5E4 9433 8FE5E4 <CJK>
-8FE5E5 9434 8FE5E5 <CJK>
-8FE5E6 943B 8FE5E6 <CJK>
-8FE5E7 943F 8FE5E7 <CJK>
-8FE5E8 943D 8FE5E8 <CJK>
-8FE5E9 9443 8FE5E9 <CJK>
-8FE5EA 9445 8FE5EA <CJK>
-8FE5EB 9448 8FE5EB <CJK>
-8FE5EC 944A 8FE5EC <CJK>
-8FE5ED 944C 8FE5ED <CJK>
-8FE5EE 9455 8FE5EE <CJK>
-8FE5EF 9459 8FE5EF <CJK>
-8FE5F0 945C 8FE5F0 <CJK>
-8FE5F1 945F 8FE5F1 <CJK>
-8FE5F2 9461 8FE5F2 <CJK>
-8FE5F3 9463 8FE5F3 <CJK>
-8FE5F4 9468 8FE5F4 <CJK>
-8FE5F5 946B 8FE5F5 <CJK>
-8FE5F6 946D 8FE5F6 <CJK>
-8FE5F7 946E 8FE5F7 <CJK>
-8FE5F8 946F 8FE5F8 <CJK>
-8FE5F9 9471 8FE5F9 <CJK>
-8FE5FA 9472 8FE5FA <CJK>
-8FE5FB 9484 8FE5FB <CJK>
-8FE5FC 9483 8FE5FC <CJK>
-8FE5FD 9578 8FE5FD <CJK>
-8FE5FE 9579 8FE5FE <CJK>
-8FE6A1 957E 8FE6A1 <CJK>
-8FE6A2 9584 8FE6A2 <CJK>
-8FE6A3 9588 8FE6A3 <CJK>
-8FE6A4 958C 8FE6A4 <CJK>
-8FE6A5 958D 8FE6A5 <CJK>
-8FE6A6 958E 8FE6A6 <CJK>
-8FE6A7 959D 8FE6A7 <CJK>
-8FE6A8 959E 8FE6A8 <CJK>
-8FE6A9 959F 8FE6A9 <CJK>
-8FE6AA 95A1 8FE6AA <CJK>
-8FE6AB 95A6 8FE6AB <CJK>
-8FE6AC 95A9 8FE6AC <CJK>
-8FE6AD 95AB 8FE6AD <CJK>
-8FE6AE 95AC 8FE6AE <CJK>
-8FE6AF 95B4 8FE6AF <CJK>
-8FE6B0 95B6 8FE6B0 <CJK>
-8FE6B1 95BA 8FE6B1 <CJK>
-8FE6B2 95BD 8FE6B2 <CJK>
-8FE6B3 95BF 8FE6B3 <CJK>
-8FE6B4 95C6 8FE6B4 <CJK>
-8FE6B5 95C8 8FE6B5 <CJK>
-8FE6B6 95C9 8FE6B6 <CJK>
-8FE6B7 95CB 8FE6B7 <CJK>
-8FE6B8 95D0 8FE6B8 <CJK>
-8FE6B9 95D1 8FE6B9 <CJK>
-8FE6BA 95D2 8FE6BA <CJK>
-8FE6BB 95D3 8FE6BB <CJK>
-8FE6BC 95D9 8FE6BC <CJK>
-8FE6BD 95DA 8FE6BD <CJK>
-8FE6BE 95DD 8FE6BE <CJK>
-8FE6BF 95DE 8FE6BF <CJK>
-8FE6C0 95DF 8FE6C0 <CJK>
-8FE6C1 95E0 8FE6C1 <CJK>
-8FE6C2 95E4 8FE6C2 <CJK>
-8FE6C3 95E6 8FE6C3 <CJK>
-8FE6C4 961D 8FE6C4 <CJK>
-8FE6C5 961E 8FE6C5 <CJK>
-8FE6C6 9622 8FE6C6 <CJK>
-8FE6C7 9624 8FE6C7 <CJK>
-8FE6C8 9625 8FE6C8 <CJK>
-8FE6C9 9626 8FE6C9 <CJK>
-8FE6CA 962C 8FE6CA <CJK>
-8FE6CB 9631 8FE6CB <CJK>
-8FE6CC 9633 8FE6CC <CJK>
-8FE6CD 9637 8FE6CD <CJK>
-8FE6CE 9638 8FE6CE <CJK>
-8FE6CF 9639 8FE6CF <CJK>
-8FE6D0 963A 8FE6D0 <CJK>
-8FE6D1 963C 8FE6D1 <CJK>
-8FE6D2 963D 8FE6D2 <CJK>
-8FE6D3 9641 8FE6D3 <CJK>
-8FE6D4 9652 8FE6D4 <CJK>
-8FE6D5 9654 8FE6D5 <CJK>
-8FE6D6 9656 8FE6D6 <CJK>
-8FE6D7 9657 8FE6D7 <CJK>
-8FE6D8 9658 8FE6D8 <CJK>
-8FE6D9 9661 8FE6D9 <CJK>
-8FE6DA 966E 8FE6DA <CJK>
-8FE6DB 9674 8FE6DB <CJK>
-8FE6DC 967B 8FE6DC <CJK>
-8FE6DD 967C 8FE6DD <CJK>
-8FE6DE 967E 8FE6DE <CJK>
-8FE6DF 967F 8FE6DF <CJK>
-8FE6E0 9681 8FE6E0 <CJK>
-8FE6E1 9682 8FE6E1 <CJK>
-8FE6E2 9683 8FE6E2 <CJK>
-8FE6E3 9684 8FE6E3 <CJK>
-8FE6E4 9689 8FE6E4 <CJK>
-8FE6E5 9691 8FE6E5 <CJK>
-8FE6E6 9696 8FE6E6 <CJK>
-8FE6E7 969A 8FE6E7 <CJK>
-8FE6E8 969D 8FE6E8 <CJK>
-8FE6E9 969F 8FE6E9 <CJK>
-8FE6EA 96A4 8FE6EA <CJK>
-8FE6EB 96A5 8FE6EB <CJK>
-8FE6EC 96A6 8FE6EC <CJK>
-8FE6ED 96A9 8FE6ED <CJK>
-8FE6EE 96AE 8FE6EE <CJK>
-8FE6EF 96AF 8FE6EF <CJK>
-8FE6F0 96B3 8FE6F0 <CJK>
-8FE6F1 96BA 8FE6F1 <CJK>
-8FE6F2 96CA 8FE6F2 <CJK>
-8FE6F3 96D2 8FE6F3 <CJK>
-8FE6F4 5DB2 8FE6F4 <CJK>
-8FE6F5 96D8 8FE6F5 <CJK>
-8FE6F6 96DA 8FE6F6 <CJK>
-8FE6F7 96DD 8FE6F7 <CJK>
-8FE6F8 96DE 8FE6F8 <CJK>
-8FE6F9 96DF 8FE6F9 <CJK>
-8FE6FA 96E9 8FE6FA <CJK>
-8FE6FB 96EF 8FE6FB <CJK>
-8FE6FC 96F1 8FE6FC <CJK>
-8FE6FD 96FA 8FE6FD <CJK>
-8FE6FE 9702 8FE6FE <CJK>
-8FE7A1 9703 8FE7A1 <CJK>
-8FE7A2 9705 8FE7A2 <CJK>
-8FE7A3 9709 8FE7A3 <CJK>
-8FE7A4 971A 8FE7A4 <CJK>
-8FE7A5 971B 8FE7A5 <CJK>
-8FE7A6 971D 8FE7A6 <CJK>
-8FE7A7 9721 8FE7A7 <CJK>
-8FE7A8 9722 8FE7A8 <CJK>
-8FE7A9 9723 8FE7A9 <CJK>
-8FE7AA 9728 8FE7AA <CJK>
-8FE7AB 9731 8FE7AB <CJK>
-8FE7AC 9733 8FE7AC <CJK>
-8FE7AD 9741 8FE7AD <CJK>
-8FE7AE 9743 8FE7AE <CJK>
-8FE7AF 974A 8FE7AF <CJK>
-8FE7B0 974E 8FE7B0 <CJK>
-8FE7B1 974F 8FE7B1 <CJK>
-8FE7B2 9755 8FE7B2 <CJK>
-8FE7B3 9757 8FE7B3 <CJK>
-8FE7B4 9758 8FE7B4 <CJK>
-8FE7B5 975A 8FE7B5 <CJK>
-8FE7B6 975B 8FE7B6 <CJK>
-8FE7B7 9763 8FE7B7 <CJK>
-8FE7B8 9767 8FE7B8 <CJK>
-8FE7B9 976A 8FE7B9 <CJK>
-8FE7BA 976E 8FE7BA <CJK>
-8FE7BB 9773 8FE7BB <CJK>
-8FE7BC 9776 8FE7BC <CJK>
-8FE7BD 9777 8FE7BD <CJK>
-8FE7BE 9778 8FE7BE <CJK>
-8FE7BF 977B 8FE7BF <CJK>
-8FE7C0 977D 8FE7C0 <CJK>
-8FE7C1 977F 8FE7C1 <CJK>
-8FE7C2 9780 8FE7C2 <CJK>
-8FE7C3 9789 8FE7C3 <CJK>
-8FE7C4 9795 8FE7C4 <CJK>
-8FE7C5 9796 8FE7C5 <CJK>
-8FE7C6 9797 8FE7C6 <CJK>
-8FE7C7 9799 8FE7C7 <CJK>
-8FE7C8 979A 8FE7C8 <CJK>
-8FE7C9 979E 8FE7C9 <CJK>
-8FE7CA 979F 8FE7CA <CJK>
-8FE7CB 97A2 8FE7CB <CJK>
-8FE7CC 97AC 8FE7CC <CJK>
-8FE7CD 97AE 8FE7CD <CJK>
-8FE7CE 97B1 8FE7CE <CJK>
-8FE7CF 97B2 8FE7CF <CJK>
-8FE7D0 97B5 8FE7D0 <CJK>
-8FE7D1 97B6 8FE7D1 <CJK>
-8FE7D2 97B8 8FE7D2 <CJK>
-8FE7D3 97B9 8FE7D3 <CJK>
-8FE7D4 97BA 8FE7D4 <CJK>
-8FE7D5 97BC 8FE7D5 <CJK>
-8FE7D6 97BE 8FE7D6 <CJK>
-8FE7D7 97BF 8FE7D7 <CJK>
-8FE7D8 97C1 8FE7D8 <CJK>
-8FE7D9 97C4 8FE7D9 <CJK>
-8FE7DA 97C5 8FE7DA <CJK>
-8FE7DB 97C7 8FE7DB <CJK>
-8FE7DC 97C9 8FE7DC <CJK>
-8FE7DD 97CA 8FE7DD <CJK>
-8FE7DE 97CC 8FE7DE <CJK>
-8FE7DF 97CD 8FE7DF <CJK>
-8FE7E0 97CE 8FE7E0 <CJK>
-8FE7E1 97D0 8FE7E1 <CJK>
-8FE7E2 97D1 8FE7E2 <CJK>
-8FE7E3 97D4 8FE7E3 <CJK>
-8FE7E4 97D7 8FE7E4 <CJK>
-8FE7E5 97D8 8FE7E5 <CJK>
-8FE7E6 97D9 8FE7E6 <CJK>
-8FE7E7 97DD 8FE7E7 <CJK>
-8FE7E8 97DE 8FE7E8 <CJK>
-8FE7E9 97E0 8FE7E9 <CJK>
-8FE7EA 97DB 8FE7EA <CJK>
-8FE7EB 97E1 8FE7EB <CJK>
-8FE7EC 97E4 8FE7EC <CJK>
-8FE7ED 97EF 8FE7ED <CJK>
-8FE7EE 97F1 8FE7EE <CJK>
-8FE7EF 97F4 8FE7EF <CJK>
-8FE7F0 97F7 8FE7F0 <CJK>
-8FE7F1 97F8 8FE7F1 <CJK>
-8FE7F2 97FA 8FE7F2 <CJK>
-8FE7F3 9807 8FE7F3 <CJK>
-8FE7F4 980A 8FE7F4 <CJK>
-8FE7F5 9819 8FE7F5 <CJK>
-8FE7F6 980D 8FE7F6 <CJK>
-8FE7F7 980E 8FE7F7 <CJK>
-8FE7F8 9814 8FE7F8 <CJK>
-8FE7F9 9816 8FE7F9 <CJK>
-8FE7FA 981C 8FE7FA <CJK>
-8FE7FB 981E 8FE7FB <CJK>
-8FE7FC 9820 8FE7FC <CJK>
-8FE7FD 9823 8FE7FD <CJK>
-8FE7FE 9826 8FE7FE <CJK>
-8FE8A1 982B 8FE8A1 <CJK>
-8FE8A2 982E 8FE8A2 <CJK>
-8FE8A3 982F 8FE8A3 <CJK>
-8FE8A4 9830 8FE8A4 <CJK>
-8FE8A5 9832 8FE8A5 <CJK>
-8FE8A6 9833 8FE8A6 <CJK>
-8FE8A7 9835 8FE8A7 <CJK>
-8FE8A8 9825 8FE8A8 <CJK>
-8FE8A9 983E 8FE8A9 <CJK>
-8FE8AA 9844 8FE8AA <CJK>
-8FE8AB 9847 8FE8AB <CJK>
-8FE8AC 984A 8FE8AC <CJK>
-8FE8AD 9851 8FE8AD <CJK>
-8FE8AE 9852 8FE8AE <CJK>
-8FE8AF 9853 8FE8AF <CJK>
-8FE8B0 9856 8FE8B0 <CJK>
-8FE8B1 9857 8FE8B1 <CJK>
-8FE8B2 9859 8FE8B2 <CJK>
-8FE8B3 985A 8FE8B3 <CJK>
-8FE8B4 9862 8FE8B4 <CJK>
-8FE8B5 9863 8FE8B5 <CJK>
-8FE8B6 9865 8FE8B6 <CJK>
-8FE8B7 9866 8FE8B7 <CJK>
-8FE8B8 986A 8FE8B8 <CJK>
-8FE8B9 986C 8FE8B9 <CJK>
-8FE8BA 98AB 8FE8BA <CJK>
-8FE8BB 98AD 8FE8BB <CJK>
-8FE8BC 98AE 8FE8BC <CJK>
-8FE8BD 98B0 8FE8BD <CJK>
-8FE8BE 98B4 8FE8BE <CJK>
-8FE8BF 98B7 8FE8BF <CJK>
-8FE8C0 98B8 8FE8C0 <CJK>
-8FE8C1 98BA 8FE8C1 <CJK>
-8FE8C2 98BB 8FE8C2 <CJK>
-8FE8C3 98BF 8FE8C3 <CJK>
-8FE8C4 98C2 8FE8C4 <CJK>
-8FE8C5 98C5 8FE8C5 <CJK>
-8FE8C6 98C8 8FE8C6 <CJK>
-8FE8C7 98CC 8FE8C7 <CJK>
-8FE8C8 98E1 8FE8C8 <CJK>
-8FE8C9 98E3 8FE8C9 <CJK>
-8FE8CA 98E5 8FE8CA <CJK>
-8FE8CB 98E6 8FE8CB <CJK>
-8FE8CC 98E7 8FE8CC <CJK>
-8FE8CD 98EA 8FE8CD <CJK>
-8FE8CE 98F3 8FE8CE <CJK>
-8FE8CF 98F6 8FE8CF <CJK>
-8FE8D0 9902 8FE8D0 <CJK>
-8FE8D1 9907 8FE8D1 <CJK>
-8FE8D2 9908 8FE8D2 <CJK>
-8FE8D3 9911 8FE8D3 <CJK>
-8FE8D4 9915 8FE8D4 <CJK>
-8FE8D5 9916 8FE8D5 <CJK>
-8FE8D6 9917 8FE8D6 <CJK>
-8FE8D7 991A 8FE8D7 <CJK>
-8FE8D8 991B 8FE8D8 <CJK>
-8FE8D9 991C 8FE8D9 <CJK>
-8FE8DA 991F 8FE8DA <CJK>
-8FE8DB 9922 8FE8DB <CJK>
-8FE8DC 9926 8FE8DC <CJK>
-8FE8DD 9927 8FE8DD <CJK>
-8FE8DE 992B 8FE8DE <CJK>
-8FE8DF 9931 8FE8DF <CJK>
-8FE8E0 9932 8FE8E0 <CJK>
-8FE8E1 9933 8FE8E1 <CJK>
-8FE8E2 9934 8FE8E2 <CJK>
-8FE8E3 9935 8FE8E3 <CJK>
-8FE8E4 9939 8FE8E4 <CJK>
-8FE8E5 993A 8FE8E5 <CJK>
-8FE8E6 993B 8FE8E6 <CJK>
-8FE8E7 993C 8FE8E7 <CJK>
-8FE8E8 9940 8FE8E8 <CJK>
-8FE8E9 9941 8FE8E9 <CJK>
-8FE8EA 9946 8FE8EA <CJK>
-8FE8EB 9947 8FE8EB <CJK>
-8FE8EC 9948 8FE8EC <CJK>
-8FE8ED 994D 8FE8ED <CJK>
-8FE8EE 994E 8FE8EE <CJK>
-8FE8EF 9954 8FE8EF <CJK>
-8FE8F0 9958 8FE8F0 <CJK>
-8FE8F1 9959 8FE8F1 <CJK>
-8FE8F2 995B 8FE8F2 <CJK>
-8FE8F3 995C 8FE8F3 <CJK>
-8FE8F4 995E 8FE8F4 <CJK>
-8FE8F5 995F 8FE8F5 <CJK>
-8FE8F6 9960 8FE8F6 <CJK>
-8FE8F7 999B 8FE8F7 <CJK>
-8FE8F8 999D 8FE8F8 <CJK>
-8FE8F9 999F 8FE8F9 <CJK>
-8FE8FA 99A6 8FE8FA <CJK>
-8FE8FB 99B0 8FE8FB <CJK>
-8FE8FC 99B1 8FE8FC <CJK>
-8FE8FD 99B2 8FE8FD <CJK>
-8FE8FE 99B5 8FE8FE <CJK>
-8FE9A1 99B9 8FE9A1 <CJK>
-8FE9A2 99BA 8FE9A2 <CJK>
-8FE9A3 99BD 8FE9A3 <CJK>
-8FE9A4 99BF 8FE9A4 <CJK>
-8FE9A5 99C3 8FE9A5 <CJK>
-8FE9A6 99C9 8FE9A6 <CJK>
-8FE9A7 99D3 8FE9A7 <CJK>
-8FE9A8 99D4 8FE9A8 <CJK>
-8FE9A9 99D9 8FE9A9 <CJK>
-8FE9AA 99DA 8FE9AA <CJK>
-8FE9AB 99DC 8FE9AB <CJK>
-8FE9AC 99DE 8FE9AC <CJK>
-8FE9AD 99E7 8FE9AD <CJK>
-8FE9AE 99EA 8FE9AE <CJK>
-8FE9AF 99EB 8FE9AF <CJK>
-8FE9B0 99EC 8FE9B0 <CJK>
-8FE9B1 99F0 8FE9B1 <CJK>
-8FE9B2 99F4 8FE9B2 <CJK>
-8FE9B3 99F5 8FE9B3 <CJK>
-8FE9B4 99F9 8FE9B4 <CJK>
-8FE9B5 99FD 8FE9B5 <CJK>
-8FE9B6 99FE 8FE9B6 <CJK>
-8FE9B7 9A02 8FE9B7 <CJK>
-8FE9B8 9A03 8FE9B8 <CJK>
-8FE9B9 9A04 8FE9B9 <CJK>
-8FE9BA 9A0B 8FE9BA <CJK>
-8FE9BB 9A0C 8FE9BB <CJK>
-8FE9BC 9A10 8FE9BC <CJK>
-8FE9BD 9A11 8FE9BD <CJK>
-8FE9BE 9A16 8FE9BE <CJK>
-8FE9BF 9A1E 8FE9BF <CJK>
-8FE9C0 9A20 8FE9C0 <CJK>
-8FE9C1 9A22 8FE9C1 <CJK>
-8FE9C2 9A23 8FE9C2 <CJK>
-8FE9C3 9A24 8FE9C3 <CJK>
-8FE9C4 9A27 8FE9C4 <CJK>
-8FE9C5 9A2D 8FE9C5 <CJK>
-8FE9C6 9A2E 8FE9C6 <CJK>
-8FE9C7 9A33 8FE9C7 <CJK>
-8FE9C8 9A35 8FE9C8 <CJK>
-8FE9C9 9A36 8FE9C9 <CJK>
-8FE9CA 9A38 8FE9CA <CJK>
-8FE9CB 9A47 8FE9CB <CJK>
-8FE9CC 9A41 8FE9CC <CJK>
-8FE9CD 9A44 8FE9CD <CJK>
-8FE9CE 9A4A 8FE9CE <CJK>
-8FE9CF 9A4B 8FE9CF <CJK>
-8FE9D0 9A4C 8FE9D0 <CJK>
-8FE9D1 9A4E 8FE9D1 <CJK>
-8FE9D2 9A51 8FE9D2 <CJK>
-8FE9D3 9A54 8FE9D3 <CJK>
-8FE9D4 9A56 8FE9D4 <CJK>
-8FE9D5 9A5D 8FE9D5 <CJK>
-8FE9D6 9AAA 8FE9D6 <CJK>
-8FE9D7 9AAC 8FE9D7 <CJK>
-8FE9D8 9AAE 8FE9D8 <CJK>
-8FE9D9 9AAF 8FE9D9 <CJK>
-8FE9DA 9AB2 8FE9DA <CJK>
-8FE9DB 9AB4 8FE9DB <CJK>
-8FE9DC 9AB5 8FE9DC <CJK>
-8FE9DD 9AB6 8FE9DD <CJK>
-8FE9DE 9AB9 8FE9DE <CJK>
-8FE9DF 9ABB 8FE9DF <CJK>
-8FE9E0 9ABE 8FE9E0 <CJK>
-8FE9E1 9ABF 8FE9E1 <CJK>
-8FE9E2 9AC1 8FE9E2 <CJK>
-8FE9E3 9AC3 8FE9E3 <CJK>
-8FE9E4 9AC6 8FE9E4 <CJK>
-8FE9E5 9AC8 8FE9E5 <CJK>
-8FE9E6 9ACE 8FE9E6 <CJK>
-8FE9E7 9AD0 8FE9E7 <CJK>
-8FE9E8 9AD2 8FE9E8 <CJK>
-8FE9E9 9AD5 8FE9E9 <CJK>
-8FE9EA 9AD6 8FE9EA <CJK>
-8FE9EB 9AD7 8FE9EB <CJK>
-8FE9EC 9ADB 8FE9EC <CJK>
-8FE9ED 9ADC 8FE9ED <CJK>
-8FE9EE 9AE0 8FE9EE <CJK>
-8FE9EF 9AE4 8FE9EF <CJK>
-8FE9F0 9AE5 8FE9F0 <CJK>
-8FE9F1 9AE7 8FE9F1 <CJK>
-8FE9F2 9AE9 8FE9F2 <CJK>
-8FE9F3 9AEC 8FE9F3 <CJK>
-8FE9F4 9AF2 8FE9F4 <CJK>
-8FE9F5 9AF3 8FE9F5 <CJK>
-8FE9F6 9AF5 8FE9F6 <CJK>
-8FE9F7 9AF9 8FE9F7 <CJK>
-8FE9F8 9AFA 8FE9F8 <CJK>
-8FE9F9 9AFD 8FE9F9 <CJK>
-8FE9FA 9AFF 8FE9FA <CJK>
-8FE9FB 9B00 8FE9FB <CJK>
-8FE9FC 9B01 8FE9FC <CJK>
-8FE9FD 9B02 8FE9FD <CJK>
-8FE9FE 9B03 8FE9FE <CJK>
-8FEAA1 9B04 8FEAA1 <CJK>
-8FEAA2 9B05 8FEAA2 <CJK>
-8FEAA3 9B08 8FEAA3 <CJK>
-8FEAA4 9B09 8FEAA4 <CJK>
-8FEAA5 9B0B 8FEAA5 <CJK>
-8FEAA6 9B0C 8FEAA6 <CJK>
-8FEAA7 9B0D 8FEAA7 <CJK>
-8FEAA8 9B0E 8FEAA8 <CJK>
-8FEAA9 9B10 8FEAA9 <CJK>
-8FEAAA 9B12 8FEAAA <CJK>
-8FEAAB 9B16 8FEAAB <CJK>
-8FEAAC 9B19 8FEAAC <CJK>
-8FEAAD 9B1B 8FEAAD <CJK>
-8FEAAE 9B1C 8FEAAE <CJK>
-8FEAAF 9B20 8FEAAF <CJK>
-8FEAB0 9B26 8FEAB0 <CJK>
-8FEAB1 9B2B 8FEAB1 <CJK>
-8FEAB2 9B2D 8FEAB2 <CJK>
-8FEAB3 9B33 8FEAB3 <CJK>
-8FEAB4 9B34 8FEAB4 <CJK>
-8FEAB5 9B35 8FEAB5 <CJK>
-8FEAB6 9B37 8FEAB6 <CJK>
-8FEAB7 9B39 8FEAB7 <CJK>
-8FEAB8 9B3A 8FEAB8 <CJK>
-8FEAB9 9B3D 8FEAB9 <CJK>
-8FEABA 9B48 8FEABA <CJK>
-8FEABB 9B4B 8FEABB <CJK>
-8FEABC 9B4C 8FEABC <CJK>
-8FEABD 9B55 8FEABD <CJK>
-8FEABE 9B56 8FEABE <CJK>
-8FEABF 9B57 8FEABF <CJK>
-8FEAC0 9B5B 8FEAC0 <CJK>
-8FEAC1 9B5E 8FEAC1 <CJK>
-8FEAC2 9B61 8FEAC2 <CJK>
-8FEAC3 9B63 8FEAC3 <CJK>
-8FEAC4 9B65 8FEAC4 <CJK>
-8FEAC5 9B66 8FEAC5 <CJK>
-8FEAC6 9B68 8FEAC6 <CJK>
-8FEAC7 9B6A 8FEAC7 <CJK>
-8FEAC8 9B6B 8FEAC8 <CJK>
-8FEAC9 9B6C 8FEAC9 <CJK>
-8FEACA 9B6D 8FEACA <CJK>
-8FEACB 9B6E 8FEACB <CJK>
-8FEACC 9B73 8FEACC <CJK>
-8FEACD 9B75 8FEACD <CJK>
-8FEACE 9B77 8FEACE <CJK>
-8FEACF 9B78 8FEACF <CJK>
-8FEAD0 9B79 8FEAD0 <CJK>
-8FEAD1 9B7F 8FEAD1 <CJK>
-8FEAD2 9B80 8FEAD2 <CJK>
-8FEAD3 9B84 8FEAD3 <CJK>
-8FEAD4 9B85 8FEAD4 <CJK>
-8FEAD5 9B86 8FEAD5 <CJK>
-8FEAD6 9B87 8FEAD6 <CJK>
-8FEAD7 9B89 8FEAD7 <CJK>
-8FEAD8 9B8A 8FEAD8 <CJK>
-8FEAD9 9B8B 8FEAD9 <CJK>
-8FEADA 9B8D 8FEADA <CJK>
-8FEADB 9B8F 8FEADB <CJK>
-8FEADC 9B90 8FEADC <CJK>
-8FEADD 9B94 8FEADD <CJK>
-8FEADE 9B9A 8FEADE <CJK>
-8FEADF 9B9D 8FEADF <CJK>
-8FEAE0 9B9E 8FEAE0 <CJK>
-8FEAE1 9BA6 8FEAE1 <CJK>
-8FEAE2 9BA7 8FEAE2 <CJK>
-8FEAE3 9BA9 8FEAE3 <CJK>
-8FEAE4 9BAC 8FEAE4 <CJK>
-8FEAE5 9BB0 8FEAE5 <CJK>
-8FEAE6 9BB1 8FEAE6 <CJK>
-8FEAE7 9BB2 8FEAE7 <CJK>
-8FEAE8 9BB7 8FEAE8 <CJK>
-8FEAE9 9BB8 8FEAE9 <CJK>
-8FEAEA 9BBB 8FEAEA <CJK>
-8FEAEB 9BBC 8FEAEB <CJK>
-8FEAEC 9BBE 8FEAEC <CJK>
-8FEAED 9BBF 8FEAED <CJK>
-8FEAEE 9BC1 8FEAEE <CJK>
-8FEAEF 9BC7 8FEAEF <CJK>
-8FEAF0 9BC8 8FEAF0 <CJK>
-8FEAF1 9BCE 8FEAF1 <CJK>
-8FEAF2 9BD0 8FEAF2 <CJK>
-8FEAF3 9BD7 8FEAF3 <CJK>
-8FEAF4 9BD8 8FEAF4 <CJK>
-8FEAF5 9BDD 8FEAF5 <CJK>
-8FEAF6 9BDF 8FEAF6 <CJK>
-8FEAF7 9BE5 8FEAF7 <CJK>
-8FEAF8 9BE7 8FEAF8 <CJK>
-8FEAF9 9BEA 8FEAF9 <CJK>
-8FEAFA 9BEB 8FEAFA <CJK>
-8FEAFB 9BEF 8FEAFB <CJK>
-8FEAFC 9BF3 8FEAFC <CJK>
-8FEAFD 9BF7 8FEAFD <CJK>
-8FEAFE 9BF8 8FEAFE <CJK>
-8FEBA1 9BF9 8FEBA1 <CJK>
-8FEBA2 9BFA 8FEBA2 <CJK>
-8FEBA3 9BFD 8FEBA3 <CJK>
-8FEBA4 9BFF 8FEBA4 <CJK>
-8FEBA5 9C00 8FEBA5 <CJK>
-8FEBA6 9C02 8FEBA6 <CJK>
-8FEBA7 9C0B 8FEBA7 <CJK>
-8FEBA8 9C0F 8FEBA8 <CJK>
-8FEBA9 9C11 8FEBA9 <CJK>
-8FEBAA 9C16 8FEBAA <CJK>
-8FEBAB 9C18 8FEBAB <CJK>
-8FEBAC 9C19 8FEBAC <CJK>
-8FEBAD 9C1A 8FEBAD <CJK>
-8FEBAE 9C1C 8FEBAE <CJK>
-8FEBAF 9C1E 8FEBAF <CJK>
-8FEBB0 9C22 8FEBB0 <CJK>
-8FEBB1 9C23 8FEBB1 <CJK>
-8FEBB2 9C26 8FEBB2 <CJK>
-8FEBB3 9C27 8FEBB3 <CJK>
-8FEBB4 9C28 8FEBB4 <CJK>
-8FEBB5 9C29 8FEBB5 <CJK>
-8FEBB6 9C2A 8FEBB6 <CJK>
-8FEBB7 9C31 8FEBB7 <CJK>
-8FEBB8 9C35 8FEBB8 <CJK>
-8FEBB9 9C36 8FEBB9 <CJK>
-8FEBBA 9C37 8FEBBA <CJK>
-8FEBBB 9C3D 8FEBBB <CJK>
-8FEBBC 9C41 8FEBBC <CJK>
-8FEBBD 9C43 8FEBBD <CJK>
-8FEBBE 9C44 8FEBBE <CJK>
-8FEBBF 9C45 8FEBBF <CJK>
-8FEBC0 9C49 8FEBC0 <CJK>
-8FEBC1 9C4A 8FEBC1 <CJK>
-8FEBC2 9C4E 8FEBC2 <CJK>
-8FEBC3 9C4F 8FEBC3 <CJK>
-8FEBC4 9C50 8FEBC4 <CJK>
-8FEBC5 9C53 8FEBC5 <CJK>
-8FEBC6 9C54 8FEBC6 <CJK>
-8FEBC7 9C56 8FEBC7 <CJK>
-8FEBC8 9C58 8FEBC8 <CJK>
-8FEBC9 9C5B 8FEBC9 <CJK>
-8FEBCA 9C5D 8FEBCA <CJK>
-8FEBCB 9C5E 8FEBCB <CJK>
-8FEBCC 9C5F 8FEBCC <CJK>
-8FEBCD 9C63 8FEBCD <CJK>
-8FEBCE 9C69 8FEBCE <CJK>
-8FEBCF 9C6A 8FEBCF <CJK>
-8FEBD0 9C5C 8FEBD0 <CJK>
-8FEBD1 9C6B 8FEBD1 <CJK>
-8FEBD2 9C68 8FEBD2 <CJK>
-8FEBD3 9C6E 8FEBD3 <CJK>
-8FEBD4 9C70 8FEBD4 <CJK>
-8FEBD5 9C72 8FEBD5 <CJK>
-8FEBD6 9C75 8FEBD6 <CJK>
-8FEBD7 9C77 8FEBD7 <CJK>
-8FEBD8 9C7B 8FEBD8 <CJK>
-8FEBD9 9CE6 8FEBD9 <CJK>
-8FEBDA 9CF2 8FEBDA <CJK>
-8FEBDB 9CF7 8FEBDB <CJK>
-8FEBDC 9CF9 8FEBDC <CJK>
-8FEBDD 9D0B 8FEBDD <CJK>
-8FEBDE 9D02 8FEBDE <CJK>
-8FEBDF 9D11 8FEBDF <CJK>
-8FEBE0 9D17 8FEBE0 <CJK>
-8FEBE1 9D18 8FEBE1 <CJK>
-8FEBE2 9D1C 8FEBE2 <CJK>
-8FEBE3 9D1D 8FEBE3 <CJK>
-8FEBE4 9D1E 8FEBE4 <CJK>
-8FEBE5 9D2F 8FEBE5 <CJK>
-8FEBE6 9D30 8FEBE6 <CJK>
-8FEBE7 9D32 8FEBE7 <CJK>
-8FEBE8 9D33 8FEBE8 <CJK>
-8FEBE9 9D34 8FEBE9 <CJK>
-8FEBEA 9D3A 8FEBEA <CJK>
-8FEBEB 9D3C 8FEBEB <CJK>
-8FEBEC 9D45 8FEBEC <CJK>
-8FEBED 9D3D 8FEBED <CJK>
-8FEBEE 9D42 8FEBEE <CJK>
-8FEBEF 9D43 8FEBEF <CJK>
-8FEBF0 9D47 8FEBF0 <CJK>
-8FEBF1 9D4A 8FEBF1 <CJK>
-8FEBF2 9D53 8FEBF2 <CJK>
-8FEBF3 9D54 8FEBF3 <CJK>
-8FEBF4 9D5F 8FEBF4 <CJK>
-8FEBF5 9D63 8FEBF5 <CJK>
-8FEBF6 9D62 8FEBF6 <CJK>
-8FEBF7 9D65 8FEBF7 <CJK>
-8FEBF8 9D69 8FEBF8 <CJK>
-8FEBF9 9D6A 8FEBF9 <CJK>
-8FEBFA 9D6B 8FEBFA <CJK>
-8FEBFB 9D70 8FEBFB <CJK>
-8FEBFC 9D76 8FEBFC <CJK>
-8FEBFD 9D77 8FEBFD <CJK>
-8FEBFE 9D7B 8FEBFE <CJK>
-8FECA1 9D7C 8FECA1 <CJK>
-8FECA2 9D7E 8FECA2 <CJK>
-8FECA3 9D83 8FECA3 <CJK>
-8FECA4 9D84 8FECA4 <CJK>
-8FECA5 9D86 8FECA5 <CJK>
-8FECA6 9D8A 8FECA6 <CJK>
-8FECA7 9D8D 8FECA7 <CJK>
-8FECA8 9D8E 8FECA8 <CJK>
-8FECA9 9D92 8FECA9 <CJK>
-8FECAA 9D93 8FECAA <CJK>
-8FECAB 9D95 8FECAB <CJK>
-8FECAC 9D96 8FECAC <CJK>
-8FECAD 9D97 8FECAD <CJK>
-8FECAE 9D98 8FECAE <CJK>
-8FECAF 9DA1 8FECAF <CJK>
-8FECB0 9DAA 8FECB0 <CJK>
-8FECB1 9DAC 8FECB1 <CJK>
-8FECB2 9DAE 8FECB2 <CJK>
-8FECB3 9DB1 8FECB3 <CJK>
-8FECB4 9DB5 8FECB4 <CJK>
-8FECB5 9DB9 8FECB5 <CJK>
-8FECB6 9DBC 8FECB6 <CJK>
-8FECB7 9DBF 8FECB7 <CJK>
-8FECB8 9DC3 8FECB8 <CJK>
-8FECB9 9DC7 8FECB9 <CJK>
-8FECBA 9DC9 8FECBA <CJK>
-8FECBB 9DCA 8FECBB <CJK>
-8FECBC 9DD4 8FECBC <CJK>
-8FECBD 9DD5 8FECBD <CJK>
-8FECBE 9DD6 8FECBE <CJK>
-8FECBF 9DD7 8FECBF <CJK>
-8FECC0 9DDA 8FECC0 <CJK>
-8FECC1 9DDE 8FECC1 <CJK>
-8FECC2 9DDF 8FECC2 <CJK>
-8FECC3 9DE0 8FECC3 <CJK>
-8FECC4 9DE5 8FECC4 <CJK>
-8FECC5 9DE7 8FECC5 <CJK>
-8FECC6 9DE9 8FECC6 <CJK>
-8FECC7 9DEB 8FECC7 <CJK>
-8FECC8 9DEE 8FECC8 <CJK>
-8FECC9 9DF0 8FECC9 <CJK>
-8FECCA 9DF3 8FECCA <CJK>
-8FECCB 9DF4 8FECCB <CJK>
-8FECCC 9DFE 8FECCC <CJK>
-8FECCD 9E0A 8FECCD <CJK>
-8FECCE 9E02 8FECCE <CJK>
-8FECCF 9E07 8FECCF <CJK>
-8FECD0 9E0E 8FECD0 <CJK>
-8FECD1 9E10 8FECD1 <CJK>
-8FECD2 9E11 8FECD2 <CJK>
-8FECD3 9E12 8FECD3 <CJK>
-8FECD4 9E15 8FECD4 <CJK>
-8FECD5 9E16 8FECD5 <CJK>
-8FECD6 9E19 8FECD6 <CJK>
-8FECD7 9E1C 8FECD7 <CJK>
-8FECD8 9E1D 8FECD8 <CJK>
-8FECD9 9E7A 8FECD9 <CJK>
-8FECDA 9E7B 8FECDA <CJK>
-8FECDB 9E7C 8FECDB <CJK>
-8FECDC 9E80 8FECDC <CJK>
-8FECDD 9E82 8FECDD <CJK>
-8FECDE 9E83 8FECDE <CJK>
-8FECDF 9E84 8FECDF <CJK>
-8FECE0 9E85 8FECE0 <CJK>
-8FECE1 9E87 8FECE1 <CJK>
-8FECE2 9E8E 8FECE2 <CJK>
-8FECE3 9E8F 8FECE3 <CJK>
-8FECE4 9E96 8FECE4 <CJK>
-8FECE5 9E98 8FECE5 <CJK>
-8FECE6 9E9B 8FECE6 <CJK>
-8FECE7 9E9E 8FECE7 <CJK>
-8FECE8 9EA4 8FECE8 <CJK>
-8FECE9 9EA8 8FECE9 <CJK>
-8FECEA 9EAC 8FECEA <CJK>
-8FECEB 9EAE 8FECEB <CJK>
-8FECEC 9EAF 8FECEC <CJK>
-8FECED 9EB0 8FECED <CJK>
-8FECEE 9EB3 8FECEE <CJK>
-8FECEF 9EB4 8FECEF <CJK>
-8FECF0 9EB5 8FECF0 <CJK>
-8FECF1 9EC6 8FECF1 <CJK>
-8FECF2 9EC8 8FECF2 <CJK>
-8FECF3 9ECB 8FECF3 <CJK>
-8FECF4 9ED5 8FECF4 <CJK>
-8FECF5 9EDF 8FECF5 <CJK>
-8FECF6 9EE4 8FECF6 <CJK>
-8FECF7 9EE7 8FECF7 <CJK>
-8FECF8 9EEC 8FECF8 <CJK>
-8FECF9 9EED 8FECF9 <CJK>
-8FECFA 9EEE 8FECFA <CJK>
-8FECFB 9EF0 8FECFB <CJK>
-8FECFC 9EF1 8FECFC <CJK>
-8FECFD 9EF2 8FECFD <CJK>
-8FECFE 9EF5 8FECFE <CJK>
-8FEDA1 9EF8 8FEDA1 U+9EF8 <CJK>
-8FEDA2 9EFF 8FEDA2 U+9EFF <CJK>
-8FEDA3 9F02 8FEDA3 U+9F02 <CJK>
-8FEDA4 9F03 8FEDA4 U+9F03 <CJK>
-8FEDA5 9F09 8FEDA5 U+9F09 <CJK>
-8FEDA6 9F0F 8FEDA6 U+9F0F <CJK>
-8FEDA7 9F10 8FEDA7 U+9F10 <CJK>
-8FEDA8 9F11 8FEDA8 U+9F11 <CJK>
-8FEDA9 9F12 8FEDA9 U+9F12 <CJK>
-8FEDAA 9F14 8FEDAA U+9F14 <CJK>
-8FEDAB 9F16 8FEDAB U+9F16 <CJK>
-8FEDAC 9F17 8FEDAC U+9F17 <CJK>
-8FEDAD 9F19 8FEDAD U+9F19 <CJK>
-8FEDAE 9F1A 8FEDAE U+9F1A <CJK>
-8FEDAF 9F1B 8FEDAF U+9F1B <CJK>
-8FEDB0 9F1F 8FEDB0 U+9F1F <CJK>
-8FEDB1 9F22 8FEDB1 U+9F22 <CJK>
-8FEDB2 9F26 8FEDB2 U+9F26 <CJK>
-8FEDB3 9F2A 8FEDB3 U+9F2A <CJK>
-8FEDB4 9F2B 8FEDB4 U+9F2B <CJK>
-8FEDB5 9F2F 8FEDB5 U+9F2F <CJK>
-8FEDB6 9F31 8FEDB6 U+9F31 <CJK>
-8FEDB7 9F32 8FEDB7 U+9F32 <CJK>
-8FEDB8 9F34 8FEDB8 U+9F34 <CJK>
-8FEDB9 9F37 8FEDB9 U+9F37 <CJK>
-8FEDBA 9F39 8FEDBA U+9F39 <CJK>
-8FEDBB 9F3A 8FEDBB U+9F3A <CJK>
-8FEDBC 9F3C 8FEDBC U+9F3C <CJK>
-8FEDBD 9F3D 8FEDBD U+9F3D <CJK>
-8FEDBE 9F3F 8FEDBE U+9F3F <CJK>
-8FEDBF 9F41 8FEDBF U+9F41 <CJK>
-8FEDC0 9F43 8FEDC0 U+9F43 <CJK>
-8FEDC1 9F44 8FEDC1 U+9F44 <CJK>
-8FEDC2 9F45 8FEDC2 U+9F45 <CJK>
-8FEDC3 9F46 8FEDC3 U+9F46 <CJK>
-8FEDC4 9F47 8FEDC4 U+9F47 <CJK>
-8FEDC5 9F53 8FEDC5 U+9F53 <CJK>
-8FEDC6 9F55 8FEDC6 U+9F55 <CJK>
-8FEDC7 9F56 8FEDC7 U+9F56 <CJK>
-8FEDC8 9F57 8FEDC8 U+9F57 <CJK>
-8FEDC9 9F58 8FEDC9 U+9F58 <CJK>
-8FEDCA 9F5A 8FEDCA U+9F5A <CJK>
-8FEDCB 9F5D 8FEDCB U+9F5D <CJK>
-8FEDCC 9F5E 8FEDCC U+9F5E <CJK>
-8FEDCD 9F68 8FEDCD U+9F68 <CJK>
-8FEDCE 9F69 8FEDCE U+9F69 <CJK>
-8FEDCF 9F6D 8FEDCF U+9F6D <CJK>
-8FEDD0 9F6E 8FEDD0 U+9F6E <CJK>
-8FEDD1 9F6F 8FEDD1 U+9F6F <CJK>
-8FEDD2 9F70 8FEDD2 U+9F70 <CJK>
-8FEDD3 9F71 8FEDD3 U+9F71 <CJK>
-8FEDD4 9F73 8FEDD4 U+9F73 <CJK>
-8FEDD5 9F75 8FEDD5 U+9F75 <CJK>
-8FEDD6 9F7A 8FEDD6 U+9F7A <CJK>
-8FEDD7 9F7D 8FEDD7 U+9F7D <CJK>
-8FEDD8 9F8F 8FEDD8 U+9F8F <CJK>
-8FEDD9 9F90 8FEDD9 U+9F90 <CJK>
-8FEDDA 9F91 8FEDDA U+9F91 <CJK>
-8FEDDB 9F92 8FEDDB U+9F92 <CJK>
-8FEDDC 9F94 8FEDDC U+9F94 <CJK>
-8FEDDD 9F96 8FEDDD U+9F96 <CJK>
-8FEDDE 9F97 8FEDDE U+9F97 <CJK>
-8FEDDF 9F9E 8FEDDF U+9F9E <CJK>
-8FEDE0 9FA1 8FEDE0 U+9FA1 <CJK>
-8FEDE1 9FA2 8FEDE1 U+9FA2 <CJK>
-8FEDE2 9FA3 8FEDE2 U+9FA3 <CJK>
-8FEDE3 9FA5 8FEDE3 U+9FA5 <CJK>
-8FF5A1 E3AC 8FF5A1 User defined range #2
-8FF5A2 E3AD 8FF5A2 User defined range #2
-8FF5A3 E3AE 8FF5A3 User defined range #2
-8FF5A4 E3AF 8FF5A4 User defined range #2
-8FF5A5 E3B0 8FF5A5 User defined range #2
-8FF5A6 E3B1 8FF5A6 User defined range #2
-8FF5A7 E3B2 8FF5A7 User defined range #2
-8FF5A8 E3B3 8FF5A8 User defined range #2
-8FF5A9 E3B4 8FF5A9 User defined range #2
-8FF5AA E3B5 8FF5AA User defined range #2
-8FF5AB E3B6 8FF5AB User defined range #2
-8FF5AC E3B7 8FF5AC User defined range #2
-8FF5AD E3B8 8FF5AD User defined range #2
-8FF5AE E3B9 8FF5AE User defined range #2
-8FF5AF E3BA 8FF5AF User defined range #2
-8FF5B0 E3BB 8FF5B0 User defined range #2
-8FF5B1 E3BC 8FF5B1 User defined range #2
-8FF5B2 E3BD 8FF5B2 User defined range #2
-8FF5B3 E3BE 8FF5B3 User defined range #2
-8FF5B4 E3BF 8FF5B4 User defined range #2
-8FF5B5 E3C0 8FF5B5 User defined range #2
-8FF5B6 E3C1 8FF5B6 User defined range #2
-8FF5B7 E3C2 8FF5B7 User defined range #2
-8FF5B8 E3C3 8FF5B8 User defined range #2
-8FF5B9 E3C4 8FF5B9 User defined range #2
-8FF5BA E3C5 8FF5BA User defined range #2
-8FF5BB E3C6 8FF5BB User defined range #2
-8FF5BC E3C7 8FF5BC User defined range #2
-8FF5BD E3C8 8FF5BD User defined range #2
-8FF5BE E3C9 8FF5BE User defined range #2
-8FF5BF E3CA 8FF5BF User defined range #2
-8FF5C0 E3CB 8FF5C0 User defined range #2
-8FF5C1 E3CC 8FF5C1 User defined range #2
-8FF5C2 E3CD 8FF5C2 User defined range #2
-8FF5C3 E3CE 8FF5C3 User defined range #2
-8FF5C4 E3CF 8FF5C4 User defined range #2
-8FF5C5 E3D0 8FF5C5 User defined range #2
-8FF5C6 E3D1 8FF5C6 User defined range #2
-8FF5C7 E3D2 8FF5C7 User defined range #2
-8FF5C8 E3D3 8FF5C8 User defined range #2
-8FF5C9 E3D4 8FF5C9 User defined range #2
-8FF5CA E3D5 8FF5CA User defined range #2
-8FF5CB E3D6 8FF5CB User defined range #2
-8FF5CC E3D7 8FF5CC User defined range #2
-8FF5CD E3D8 8FF5CD User defined range #2
-8FF5CE E3D9 8FF5CE User defined range #2
-8FF5CF E3DA 8FF5CF User defined range #2
-8FF5D0 E3DB 8FF5D0 User defined range #2
-8FF5D1 E3DC 8FF5D1 User defined range #2
-8FF5D2 E3DD 8FF5D2 User defined range #2
-8FF5D3 E3DE 8FF5D3 User defined range #2
-8FF5D4 E3DF 8FF5D4 User defined range #2
-8FF5D5 E3E0 8FF5D5 User defined range #2
-8FF5D6 E3E1 8FF5D6 User defined range #2
-8FF5D7 E3E2 8FF5D7 User defined range #2
-8FF5D8 E3E3 8FF5D8 User defined range #2
-8FF5D9 E3E4 8FF5D9 User defined range #2
-8FF5DA E3E5 8FF5DA User defined range #2
-8FF5DB E3E6 8FF5DB User defined range #2
-8FF5DC E3E7 8FF5DC User defined range #2
-8FF5DD E3E8 8FF5DD User defined range #2
-8FF5DE E3E9 8FF5DE User defined range #2
-8FF5DF E3EA 8FF5DF User defined range #2
-8FF5E0 E3EB 8FF5E0 User defined range #2
-8FF5E1 E3EC 8FF5E1 User defined range #2
-8FF5E2 E3ED 8FF5E2 User defined range #2
-8FF5E3 E3EE 8FF5E3 User defined range #2
-8FF5E4 E3EF 8FF5E4 User defined range #2
-8FF5E5 E3F0 8FF5E5 User defined range #2
-8FF5E6 E3F1 8FF5E6 User defined range #2
-8FF5E7 E3F2 8FF5E7 User defined range #2
-8FF5E8 E3F3 8FF5E8 User defined range #2
-8FF5E9 E3F4 8FF5E9 User defined range #2
-8FF5EA E3F5 8FF5EA User defined range #2
-8FF5EB E3F6 8FF5EB User defined range #2
-8FF5EC E3F7 8FF5EC User defined range #2
-8FF5ED E3F8 8FF5ED User defined range #2
-8FF5EE E3F9 8FF5EE User defined range #2
-8FF5EF E3FA 8FF5EF User defined range #2
-8FF5F0 E3FB 8FF5F0 User defined range #2
-8FF5F1 E3FC 8FF5F1 User defined range #2
-8FF5F2 E3FD 8FF5F2 User defined range #2
-8FF5F3 E3FE 8FF5F3 User defined range #2
-8FF5F4 E3FF 8FF5F4 User defined range #2
-8FF5F5 E400 8FF5F5 User defined range #2
-8FF5F6 E401 8FF5F6 User defined range #2
-8FF5F7 E402 8FF5F7 User defined range #2
-8FF5F8 E403 8FF5F8 User defined range #2
-8FF5F9 E404 8FF5F9 User defined range #2
-8FF5FA E405 8FF5FA User defined range #2
-8FF5FB E406 8FF5FB User defined range #2
-8FF5FC E407 8FF5FC User defined range #2
-8FF5FD E408 8FF5FD User defined range #2
-8FF5FE E409 8FF5FE User defined range #2
-8FF6A1 E40A 8FF6A1 User defined range #2
-8FF6A2 E40B 8FF6A2 User defined range #2
-8FF6A3 E40C 8FF6A3 User defined range #2
-8FF6A4 E40D 8FF6A4 User defined range #2
-8FF6A5 E40E 8FF6A5 User defined range #2
-8FF6A6 E40F 8FF6A6 User defined range #2
-8FF6A7 E410 8FF6A7 User defined range #2
-8FF6A8 E411 8FF6A8 User defined range #2
-8FF6A9 E412 8FF6A9 User defined range #2
-8FF6AA E413 8FF6AA User defined range #2
-8FF6AB E414 8FF6AB User defined range #2
-8FF6AC E415 8FF6AC User defined range #2
-8FF6AD E416 8FF6AD User defined range #2
-8FF6AE E417 8FF6AE User defined range #2
-8FF6AF E418 8FF6AF User defined range #2
-8FF6B0 E419 8FF6B0 User defined range #2
-8FF6B1 E41A 8FF6B1 User defined range #2
-8FF6B2 E41B 8FF6B2 User defined range #2
-8FF6B3 E41C 8FF6B3 User defined range #2
-8FF6B4 E41D 8FF6B4 User defined range #2
-8FF6B5 E41E 8FF6B5 User defined range #2
-8FF6B6 E41F 8FF6B6 User defined range #2
-8FF6B7 E420 8FF6B7 User defined range #2
-8FF6B8 E421 8FF6B8 User defined range #2
-8FF6B9 E422 8FF6B9 User defined range #2
-8FF6BA E423 8FF6BA User defined range #2
-8FF6BB E424 8FF6BB User defined range #2
-8FF6BC E425 8FF6BC User defined range #2
-8FF6BD E426 8FF6BD User defined range #2
-8FF6BE E427 8FF6BE User defined range #2
-8FF6BF E428 8FF6BF User defined range #2
-8FF6C0 E429 8FF6C0 User defined range #2
-8FF6C1 E42A 8FF6C1 User defined range #2
-8FF6C2 E42B 8FF6C2 User defined range #2
-8FF6C3 E42C 8FF6C3 User defined range #2
-8FF6C4 E42D 8FF6C4 User defined range #2
-8FF6C5 E42E 8FF6C5 User defined range #2
-8FF6C6 E42F 8FF6C6 User defined range #2
-8FF6C7 E430 8FF6C7 User defined range #2
-8FF6C8 E431 8FF6C8 User defined range #2
-8FF6C9 E432 8FF6C9 User defined range #2
-8FF6CA E433 8FF6CA User defined range #2
-8FF6CB E434 8FF6CB User defined range #2
-8FF6CC E435 8FF6CC User defined range #2
-8FF6CD E436 8FF6CD User defined range #2
-8FF6CE E437 8FF6CE User defined range #2
-8FF6CF E438 8FF6CF User defined range #2
-8FF6D0 E439 8FF6D0 User defined range #2
-8FF6D1 E43A 8FF6D1 User defined range #2
-8FF6D2 E43B 8FF6D2 User defined range #2
-8FF6D3 E43C 8FF6D3 User defined range #2
-8FF6D4 E43D 8FF6D4 User defined range #2
-8FF6D5 E43E 8FF6D5 User defined range #2
-8FF6D6 E43F 8FF6D6 User defined range #2
-8FF6D7 E440 8FF6D7 User defined range #2
-8FF6D8 E441 8FF6D8 User defined range #2
-8FF6D9 E442 8FF6D9 User defined range #2
-8FF6DA E443 8FF6DA User defined range #2
-8FF6DB E444 8FF6DB User defined range #2
-8FF6DC E445 8FF6DC User defined range #2
-8FF6DD E446 8FF6DD User defined range #2
-8FF6DE E447 8FF6DE User defined range #2
-8FF6DF E448 8FF6DF User defined range #2
-8FF6E0 E449 8FF6E0 User defined range #2
-8FF6E1 E44A 8FF6E1 User defined range #2
-8FF6E2 E44B 8FF6E2 User defined range #2
-8FF6E3 E44C 8FF6E3 User defined range #2
-8FF6E4 E44D 8FF6E4 User defined range #2
-8FF6E5 E44E 8FF6E5 User defined range #2
-8FF6E6 E44F 8FF6E6 User defined range #2
-8FF6E7 E450 8FF6E7 User defined range #2
-8FF6E8 E451 8FF6E8 User defined range #2
-8FF6E9 E452 8FF6E9 User defined range #2
-8FF6EA E453 8FF6EA User defined range #2
-8FF6EB E454 8FF6EB User defined range #2
-8FF6EC E455 8FF6EC User defined range #2
-8FF6ED E456 8FF6ED User defined range #2
-8FF6EE E457 8FF6EE User defined range #2
-8FF6EF E458 8FF6EF User defined range #2
-8FF6F0 E459 8FF6F0 User defined range #2
-8FF6F1 E45A 8FF6F1 User defined range #2
-8FF6F2 E45B 8FF6F2 User defined range #2
-8FF6F3 E45C 8FF6F3 User defined range #2
-8FF6F4 E45D 8FF6F4 User defined range #2
-8FF6F5 E45E 8FF6F5 User defined range #2
-8FF6F6 E45F 8FF6F6 User defined range #2
-8FF6F7 E460 8FF6F7 User defined range #2
-8FF6F8 E461 8FF6F8 User defined range #2
-8FF6F9 E462 8FF6F9 User defined range #2
-8FF6FA E463 8FF6FA User defined range #2
-8FF6FB E464 8FF6FB User defined range #2
-8FF6FC E465 8FF6FC User defined range #2
-8FF6FD E466 8FF6FD User defined range #2
-8FF6FE E467 8FF6FE User defined range #2
-8FF7A1 E468 8FF7A1 User defined range #2
-8FF7A2 E469 8FF7A2 User defined range #2
-8FF7A3 E46A 8FF7A3 User defined range #2
-8FF7A4 E46B 8FF7A4 User defined range #2
-8FF7A5 E46C 8FF7A5 User defined range #2
-8FF7A6 E46D 8FF7A6 User defined range #2
-8FF7A7 E46E 8FF7A7 User defined range #2
-8FF7A8 E46F 8FF7A8 User defined range #2
-8FF7A9 E470 8FF7A9 User defined range #2
-8FF7AA E471 8FF7AA User defined range #2
-8FF7AB E472 8FF7AB User defined range #2
-8FF7AC E473 8FF7AC User defined range #2
-8FF7AD E474 8FF7AD User defined range #2
-8FF7AE E475 8FF7AE User defined range #2
-8FF7AF E476 8FF7AF User defined range #2
-8FF7B0 E477 8FF7B0 User defined range #2
-8FF7B1 E478 8FF7B1 User defined range #2
-8FF7B2 E479 8FF7B2 User defined range #2
-8FF7B3 E47A 8FF7B3 User defined range #2
-8FF7B4 E47B 8FF7B4 User defined range #2
-8FF7B5 E47C 8FF7B5 User defined range #2
-8FF7B6 E47D 8FF7B6 User defined range #2
-8FF7B7 E47E 8FF7B7 User defined range #2
-8FF7B8 E47F 8FF7B8 User defined range #2
-8FF7B9 E480 8FF7B9 User defined range #2
-8FF7BA E481 8FF7BA User defined range #2
-8FF7BB E482 8FF7BB User defined range #2
-8FF7BC E483 8FF7BC User defined range #2
-8FF7BD E484 8FF7BD User defined range #2
-8FF7BE E485 8FF7BE User defined range #2
-8FF7BF E486 8FF7BF User defined range #2
-8FF7C0 E487 8FF7C0 User defined range #2
-8FF7C1 E488 8FF7C1 User defined range #2
-8FF7C2 E489 8FF7C2 User defined range #2
-8FF7C3 E48A 8FF7C3 User defined range #2
-8FF7C4 E48B 8FF7C4 User defined range #2
-8FF7C5 E48C 8FF7C5 User defined range #2
-8FF7C6 E48D 8FF7C6 User defined range #2
-8FF7C7 E48E 8FF7C7 User defined range #2
-8FF7C8 E48F 8FF7C8 User defined range #2
-8FF7C9 E490 8FF7C9 User defined range #2
-8FF7CA E491 8FF7CA User defined range #2
-8FF7CB E492 8FF7CB User defined range #2
-8FF7CC E493 8FF7CC User defined range #2
-8FF7CD E494 8FF7CD User defined range #2
-8FF7CE E495 8FF7CE User defined range #2
-8FF7CF E496 8FF7CF User defined range #2
-8FF7D0 E497 8FF7D0 User defined range #2
-8FF7D1 E498 8FF7D1 User defined range #2
-8FF7D2 E499 8FF7D2 User defined range #2
-8FF7D3 E49A 8FF7D3 User defined range #2
-8FF7D4 E49B 8FF7D4 User defined range #2
-8FF7D5 E49C 8FF7D5 User defined range #2
-8FF7D6 E49D 8FF7D6 User defined range #2
-8FF7D7 E49E 8FF7D7 User defined range #2
-8FF7D8 E49F 8FF7D8 User defined range #2
-8FF7D9 E4A0 8FF7D9 User defined range #2
-8FF7DA E4A1 8FF7DA User defined range #2
-8FF7DB E4A2 8FF7DB User defined range #2
-8FF7DC E4A3 8FF7DC User defined range #2
-8FF7DD E4A4 8FF7DD User defined range #2
-8FF7DE E4A5 8FF7DE User defined range #2
-8FF7DF E4A6 8FF7DF User defined range #2
-8FF7E0 E4A7 8FF7E0 User defined range #2
-8FF7E1 E4A8 8FF7E1 User defined range #2
-8FF7E2 E4A9 8FF7E2 User defined range #2
-8FF7E3 E4AA 8FF7E3 User defined range #2
-8FF7E4 E4AB 8FF7E4 User defined range #2
-8FF7E5 E4AC 8FF7E5 User defined range #2
-8FF7E6 E4AD 8FF7E6 User defined range #2
-8FF7E7 E4AE 8FF7E7 User defined range #2
-8FF7E8 E4AF 8FF7E8 User defined range #2
-8FF7E9 E4B0 8FF7E9 User defined range #2
-8FF7EA E4B1 8FF7EA User defined range #2
-8FF7EB E4B2 8FF7EB User defined range #2
-8FF7EC E4B3 8FF7EC User defined range #2
-8FF7ED E4B4 8FF7ED User defined range #2
-8FF7EE E4B5 8FF7EE User defined range #2
-8FF7EF E4B6 8FF7EF User defined range #2
-8FF7F0 E4B7 8FF7F0 User defined range #2
-8FF7F1 E4B8 8FF7F1 User defined range #2
-8FF7F2 E4B9 8FF7F2 User defined range #2
-8FF7F3 E4BA 8FF7F3 User defined range #2
-8FF7F4 E4BB 8FF7F4 User defined range #2
-8FF7F5 E4BC 8FF7F5 User defined range #2
-8FF7F6 E4BD 8FF7F6 User defined range #2
-8FF7F7 E4BE 8FF7F7 User defined range #2
-8FF7F8 E4BF 8FF7F8 User defined range #2
-8FF7F9 E4C0 8FF7F9 User defined range #2
-8FF7FA E4C1 8FF7FA User defined range #2
-8FF7FB E4C2 8FF7FB User defined range #2
-8FF7FC E4C3 8FF7FC User defined range #2
-8FF7FD E4C4 8FF7FD User defined range #2
-8FF7FE E4C5 8FF7FE User defined range #2
-8FF8A1 E4C6 8FF8A1 User defined range #2
-8FF8A2 E4C7 8FF8A2 User defined range #2
-8FF8A3 E4C8 8FF8A3 User defined range #2
-8FF8A4 E4C9 8FF8A4 User defined range #2
-8FF8A5 E4CA 8FF8A5 User defined range #2
-8FF8A6 E4CB 8FF8A6 User defined range #2
-8FF8A7 E4CC 8FF8A7 User defined range #2
-8FF8A8 E4CD 8FF8A8 User defined range #2
-8FF8A9 E4CE 8FF8A9 User defined range #2
-8FF8AA E4CF 8FF8AA User defined range #2
-8FF8AB E4D0 8FF8AB User defined range #2
-8FF8AC E4D1 8FF8AC User defined range #2
-8FF8AD E4D2 8FF8AD User defined range #2
-8FF8AE E4D3 8FF8AE User defined range #2
-8FF8AF E4D4 8FF8AF User defined range #2
-8FF8B0 E4D5 8FF8B0 User defined range #2
-8FF8B1 E4D6 8FF8B1 User defined range #2
-8FF8B2 E4D7 8FF8B2 User defined range #2
-8FF8B3 E4D8 8FF8B3 User defined range #2
-8FF8B4 E4D9 8FF8B4 User defined range #2
-8FF8B5 E4DA 8FF8B5 User defined range #2
-8FF8B6 E4DB 8FF8B6 User defined range #2
-8FF8B7 E4DC 8FF8B7 User defined range #2
-8FF8B8 E4DD 8FF8B8 User defined range #2
-8FF8B9 E4DE 8FF8B9 User defined range #2
-8FF8BA E4DF 8FF8BA User defined range #2
-8FF8BB E4E0 8FF8BB User defined range #2
-8FF8BC E4E1 8FF8BC User defined range #2
-8FF8BD E4E2 8FF8BD User defined range #2
-8FF8BE E4E3 8FF8BE User defined range #2
-8FF8BF E4E4 8FF8BF User defined range #2
-8FF8C0 E4E5 8FF8C0 User defined range #2
-8FF8C1 E4E6 8FF8C1 User defined range #2
-8FF8C2 E4E7 8FF8C2 User defined range #2
-8FF8C3 E4E8 8FF8C3 User defined range #2
-8FF8C4 E4E9 8FF8C4 User defined range #2
-8FF8C5 E4EA 8FF8C5 User defined range #2
-8FF8C6 E4EB 8FF8C6 User defined range #2
-8FF8C7 E4EC 8FF8C7 User defined range #2
-8FF8C8 E4ED 8FF8C8 User defined range #2
-8FF8C9 E4EE 8FF8C9 User defined range #2
-8FF8CA E4EF 8FF8CA User defined range #2
-8FF8CB E4F0 8FF8CB User defined range #2
-8FF8CC E4F1 8FF8CC User defined range #2
-8FF8CD E4F2 8FF8CD User defined range #2
-8FF8CE E4F3 8FF8CE User defined range #2
-8FF8CF E4F4 8FF8CF User defined range #2
-8FF8D0 E4F5 8FF8D0 User defined range #2
-8FF8D1 E4F6 8FF8D1 User defined range #2
-8FF8D2 E4F7 8FF8D2 User defined range #2
-8FF8D3 E4F8 8FF8D3 User defined range #2
-8FF8D4 E4F9 8FF8D4 User defined range #2
-8FF8D5 E4FA 8FF8D5 User defined range #2
-8FF8D6 E4FB 8FF8D6 User defined range #2
-8FF8D7 E4FC 8FF8D7 User defined range #2
-8FF8D8 E4FD 8FF8D8 User defined range #2
-8FF8D9 E4FE 8FF8D9 User defined range #2
-8FF8DA E4FF 8FF8DA User defined range #2
-8FF8DB E500 8FF8DB User defined range #2
-8FF8DC E501 8FF8DC User defined range #2
-8FF8DD E502 8FF8DD User defined range #2
-8FF8DE E503 8FF8DE User defined range #2
-8FF8DF E504 8FF8DF User defined range #2
-8FF8E0 E505 8FF8E0 User defined range #2
-8FF8E1 E506 8FF8E1 User defined range #2
-8FF8E2 E507 8FF8E2 User defined range #2
-8FF8E3 E508 8FF8E3 User defined range #2
-8FF8E4 E509 8FF8E4 User defined range #2
-8FF8E5 E50A 8FF8E5 User defined range #2
-8FF8E6 E50B 8FF8E6 User defined range #2
-8FF8E7 E50C 8FF8E7 User defined range #2
-8FF8E8 E50D 8FF8E8 User defined range #2
-8FF8E9 E50E 8FF8E9 User defined range #2
-8FF8EA E50F 8FF8EA User defined range #2
-8FF8EB E510 8FF8EB User defined range #2
-8FF8EC E511 8FF8EC User defined range #2
-8FF8ED E512 8FF8ED User defined range #2
-8FF8EE E513 8FF8EE User defined range #2
-8FF8EF E514 8FF8EF User defined range #2
-8FF8F0 E515 8FF8F0 User defined range #2
-8FF8F1 E516 8FF8F1 User defined range #2
-8FF8F2 E517 8FF8F2 User defined range #2
-8FF8F3 E518 8FF8F3 User defined range #2
-8FF8F4 E519 8FF8F4 User defined range #2
-8FF8F5 E51A 8FF8F5 User defined range #2
-8FF8F6 E51B 8FF8F6 User defined range #2
-8FF8F7 E51C 8FF8F7 User defined range #2
-8FF8F8 E51D 8FF8F8 User defined range #2
-8FF8F9 E51E 8FF8F9 User defined range #2
-8FF8FA E51F 8FF8FA User defined range #2
-8FF8FB E520 8FF8FB User defined range #2
-8FF8FC E521 8FF8FC User defined range #2
-8FF8FD E522 8FF8FD User defined range #2
-8FF8FE E523 8FF8FE User defined range #2
-8FF9A1 E524 8FF9A1 User defined range #2
-8FF9A2 E525 8FF9A2 User defined range #2
-8FF9A3 E526 8FF9A3 User defined range #2
-8FF9A4 E527 8FF9A4 User defined range #2
-8FF9A5 E528 8FF9A5 User defined range #2
-8FF9A6 E529 8FF9A6 User defined range #2
-8FF9A7 E52A 8FF9A7 User defined range #2
-8FF9A8 E52B 8FF9A8 User defined range #2
-8FF9A9 E52C 8FF9A9 User defined range #2
-8FF9AA E52D 8FF9AA User defined range #2
-8FF9AB E52E 8FF9AB User defined range #2
-8FF9AC E52F 8FF9AC User defined range #2
-8FF9AD E530 8FF9AD User defined range #2
-8FF9AE E531 8FF9AE User defined range #2
-8FF9AF E532 8FF9AF User defined range #2
-8FF9B0 E533 8FF9B0 User defined range #2
-8FF9B1 E534 8FF9B1 User defined range #2
-8FF9B2 E535 8FF9B2 User defined range #2
-8FF9B3 E536 8FF9B3 User defined range #2
-8FF9B4 E537 8FF9B4 User defined range #2
-8FF9B5 E538 8FF9B5 User defined range #2
-8FF9B6 E539 8FF9B6 User defined range #2
-8FF9B7 E53A 8FF9B7 User defined range #2
-8FF9B8 E53B 8FF9B8 User defined range #2
-8FF9B9 E53C 8FF9B9 User defined range #2
-8FF9BA E53D 8FF9BA User defined range #2
-8FF9BB E53E 8FF9BB User defined range #2
-8FF9BC E53F 8FF9BC User defined range #2
-8FF9BD E540 8FF9BD User defined range #2
-8FF9BE E541 8FF9BE User defined range #2
-8FF9BF E542 8FF9BF User defined range #2
-8FF9C0 E543 8FF9C0 User defined range #2
-8FF9C1 E544 8FF9C1 User defined range #2
-8FF9C2 E545 8FF9C2 User defined range #2
-8FF9C3 E546 8FF9C3 User defined range #2
-8FF9C4 E547 8FF9C4 User defined range #2
-8FF9C5 E548 8FF9C5 User defined range #2
-8FF9C6 E549 8FF9C6 User defined range #2
-8FF9C7 E54A 8FF9C7 User defined range #2
-8FF9C8 E54B 8FF9C8 User defined range #2
-8FF9C9 E54C 8FF9C9 User defined range #2
-8FF9CA E54D 8FF9CA User defined range #2
-8FF9CB E54E 8FF9CB User defined range #2
-8FF9CC E54F 8FF9CC User defined range #2
-8FF9CD E550 8FF9CD User defined range #2
-8FF9CE E551 8FF9CE User defined range #2
-8FF9CF E552 8FF9CF User defined range #2
-8FF9D0 E553 8FF9D0 User defined range #2
-8FF9D1 E554 8FF9D1 User defined range #2
-8FF9D2 E555 8FF9D2 User defined range #2
-8FF9D3 E556 8FF9D3 User defined range #2
-8FF9D4 E557 8FF9D4 User defined range #2
-8FF9D5 E558 8FF9D5 User defined range #2
-8FF9D6 E559 8FF9D6 User defined range #2
-8FF9D7 E55A 8FF9D7 User defined range #2
-8FF9D8 E55B 8FF9D8 User defined range #2
-8FF9D9 E55C 8FF9D9 User defined range #2
-8FF9DA E55D 8FF9DA User defined range #2
-8FF9DB E55E 8FF9DB User defined range #2
-8FF9DC E55F 8FF9DC User defined range #2
-8FF9DD E560 8FF9DD User defined range #2
-8FF9DE E561 8FF9DE User defined range #2
-8FF9DF E562 8FF9DF User defined range #2
-8FF9E0 E563 8FF9E0 User defined range #2
-8FF9E1 E564 8FF9E1 User defined range #2
-8FF9E2 E565 8FF9E2 User defined range #2
-8FF9E3 E566 8FF9E3 User defined range #2
-8FF9E4 E567 8FF9E4 User defined range #2
-8FF9E5 E568 8FF9E5 User defined range #2
-8FF9E6 E569 8FF9E6 User defined range #2
-8FF9E7 E56A 8FF9E7 User defined range #2
-8FF9E8 E56B 8FF9E8 User defined range #2
-8FF9E9 E56C 8FF9E9 User defined range #2
-8FF9EA E56D 8FF9EA User defined range #2
-8FF9EB E56E 8FF9EB User defined range #2
-8FF9EC E56F 8FF9EC User defined range #2
-8FF9ED E570 8FF9ED User defined range #2
-8FF9EE E571 8FF9EE User defined range #2
-8FF9EF E572 8FF9EF User defined range #2
-8FF9F0 E573 8FF9F0 User defined range #2
-8FF9F1 E574 8FF9F1 User defined range #2
-8FF9F2 E575 8FF9F2 User defined range #2
-8FF9F3 E576 8FF9F3 User defined range #2
-8FF9F4 E577 8FF9F4 User defined range #2
-8FF9F5 E578 8FF9F5 User defined range #2
-8FF9F6 E579 8FF9F6 User defined range #2
-8FF9F7 E57A 8FF9F7 User defined range #2
-8FF9F8 E57B 8FF9F8 User defined range #2
-8FF9F9 E57C 8FF9F9 User defined range #2
-8FF9FA E57D 8FF9FA User defined range #2
-8FF9FB E57E 8FF9FB User defined range #2
-8FF9FC E57F 8FF9FC User defined range #2
-8FF9FD E580 8FF9FD User defined range #2
-8FF9FE E581 8FF9FE User defined range #2
-8FFAA1 E582 8FFAA1 User defined range #2
-8FFAA2 E583 8FFAA2 User defined range #2
-8FFAA3 E584 8FFAA3 User defined range #2
-8FFAA4 E585 8FFAA4 User defined range #2
-8FFAA5 E586 8FFAA5 User defined range #2
-8FFAA6 E587 8FFAA6 User defined range #2
-8FFAA7 E588 8FFAA7 User defined range #2
-8FFAA8 E589 8FFAA8 User defined range #2
-8FFAA9 E58A 8FFAA9 User defined range #2
-8FFAAA E58B 8FFAAA User defined range #2
-8FFAAB E58C 8FFAAB User defined range #2
-8FFAAC E58D 8FFAAC User defined range #2
-8FFAAD E58E 8FFAAD User defined range #2
-8FFAAE E58F 8FFAAE User defined range #2
-8FFAAF E590 8FFAAF User defined range #2
-8FFAB0 E591 8FFAB0 User defined range #2
-8FFAB1 E592 8FFAB1 User defined range #2
-8FFAB2 E593 8FFAB2 User defined range #2
-8FFAB3 E594 8FFAB3 User defined range #2
-8FFAB4 E595 8FFAB4 User defined range #2
-8FFAB5 E596 8FFAB5 User defined range #2
-8FFAB6 E597 8FFAB6 User defined range #2
-8FFAB7 E598 8FFAB7 User defined range #2
-8FFAB8 E599 8FFAB8 User defined range #2
-8FFAB9 E59A 8FFAB9 User defined range #2
-8FFABA E59B 8FFABA User defined range #2
-8FFABB E59C 8FFABB User defined range #2
-8FFABC E59D 8FFABC User defined range #2
-8FFABD E59E 8FFABD User defined range #2
-8FFABE E59F 8FFABE User defined range #2
-8FFABF E5A0 8FFABF User defined range #2
-8FFAC0 E5A1 8FFAC0 User defined range #2
-8FFAC1 E5A2 8FFAC1 User defined range #2
-8FFAC2 E5A3 8FFAC2 User defined range #2
-8FFAC3 E5A4 8FFAC3 User defined range #2
-8FFAC4 E5A5 8FFAC4 User defined range #2
-8FFAC5 E5A6 8FFAC5 User defined range #2
-8FFAC6 E5A7 8FFAC6 User defined range #2
-8FFAC7 E5A8 8FFAC7 User defined range #2
-8FFAC8 E5A9 8FFAC8 User defined range #2
-8FFAC9 E5AA 8FFAC9 User defined range #2
-8FFACA E5AB 8FFACA User defined range #2
-8FFACB E5AC 8FFACB User defined range #2
-8FFACC E5AD 8FFACC User defined range #2
-8FFACD E5AE 8FFACD User defined range #2
-8FFACE E5AF 8FFACE User defined range #2
-8FFACF E5B0 8FFACF User defined range #2
-8FFAD0 E5B1 8FFAD0 User defined range #2
-8FFAD1 E5B2 8FFAD1 User defined range #2
-8FFAD2 E5B3 8FFAD2 User defined range #2
-8FFAD3 E5B4 8FFAD3 User defined range #2
-8FFAD4 E5B5 8FFAD4 User defined range #2
-8FFAD5 E5B6 8FFAD5 User defined range #2
-8FFAD6 E5B7 8FFAD6 User defined range #2
-8FFAD7 E5B8 8FFAD7 User defined range #2
-8FFAD8 E5B9 8FFAD8 User defined range #2
-8FFAD9 E5BA 8FFAD9 User defined range #2
-8FFADA E5BB 8FFADA User defined range #2
-8FFADB E5BC 8FFADB User defined range #2
-8FFADC E5BD 8FFADC User defined range #2
-8FFADD E5BE 8FFADD User defined range #2
-8FFADE E5BF 8FFADE User defined range #2
-8FFADF E5C0 8FFADF User defined range #2
-8FFAE0 E5C1 8FFAE0 User defined range #2
-8FFAE1 E5C2 8FFAE1 User defined range #2
-8FFAE2 E5C3 8FFAE2 User defined range #2
-8FFAE3 E5C4 8FFAE3 User defined range #2
-8FFAE4 E5C5 8FFAE4 User defined range #2
-8FFAE5 E5C6 8FFAE5 User defined range #2
-8FFAE6 E5C7 8FFAE6 User defined range #2
-8FFAE7 E5C8 8FFAE7 User defined range #2
-8FFAE8 E5C9 8FFAE8 User defined range #2
-8FFAE9 E5CA 8FFAE9 User defined range #2
-8FFAEA E5CB 8FFAEA User defined range #2
-8FFAEB E5CC 8FFAEB User defined range #2
-8FFAEC E5CD 8FFAEC User defined range #2
-8FFAED E5CE 8FFAED User defined range #2
-8FFAEE E5CF 8FFAEE User defined range #2
-8FFAEF E5D0 8FFAEF User defined range #2
-8FFAF0 E5D1 8FFAF0 User defined range #2
-8FFAF1 E5D2 8FFAF1 User defined range #2
-8FFAF2 E5D3 8FFAF2 User defined range #2
-8FFAF3 E5D4 8FFAF3 User defined range #2
-8FFAF4 E5D5 8FFAF4 User defined range #2
-8FFAF5 E5D6 8FFAF5 User defined range #2
-8FFAF6 E5D7 8FFAF6 User defined range #2
-8FFAF7 E5D8 8FFAF7 User defined range #2
-8FFAF8 E5D9 8FFAF8 User defined range #2
-8FFAF9 E5DA 8FFAF9 User defined range #2
-8FFAFA E5DB 8FFAFA User defined range #2
-8FFAFB E5DC 8FFAFB User defined range #2
-8FFAFC E5DD 8FFAFC User defined range #2
-8FFAFD E5DE 8FFAFD User defined range #2
-8FFAFE E5DF 8FFAFE User defined range #2
-8FFBA1 E5E0 8FFBA1 User defined range #2
-8FFBA2 E5E1 8FFBA2 User defined range #2
-8FFBA3 E5E2 8FFBA3 User defined range #2
-8FFBA4 E5E3 8FFBA4 User defined range #2
-8FFBA5 E5E4 8FFBA5 User defined range #2
-8FFBA6 E5E5 8FFBA6 User defined range #2
-8FFBA7 E5E6 8FFBA7 User defined range #2
-8FFBA8 E5E7 8FFBA8 User defined range #2
-8FFBA9 E5E8 8FFBA9 User defined range #2
-8FFBAA E5E9 8FFBAA User defined range #2
-8FFBAB E5EA 8FFBAB User defined range #2
-8FFBAC E5EB 8FFBAC User defined range #2
-8FFBAD E5EC 8FFBAD User defined range #2
-8FFBAE E5ED 8FFBAE User defined range #2
-8FFBAF E5EE 8FFBAF User defined range #2
-8FFBB0 E5EF 8FFBB0 User defined range #2
-8FFBB1 E5F0 8FFBB1 User defined range #2
-8FFBB2 E5F1 8FFBB2 User defined range #2
-8FFBB3 E5F2 8FFBB3 User defined range #2
-8FFBB4 E5F3 8FFBB4 User defined range #2
-8FFBB5 E5F4 8FFBB5 User defined range #2
-8FFBB6 E5F5 8FFBB6 User defined range #2
-8FFBB7 E5F6 8FFBB7 User defined range #2
-8FFBB8 E5F7 8FFBB8 User defined range #2
-8FFBB9 E5F8 8FFBB9 User defined range #2
-8FFBBA E5F9 8FFBBA User defined range #2
-8FFBBB E5FA 8FFBBB User defined range #2
-8FFBBC E5FB 8FFBBC User defined range #2
-8FFBBD E5FC 8FFBBD User defined range #2
-8FFBBE E5FD 8FFBBE User defined range #2
-8FFBBF E5FE 8FFBBF User defined range #2
-8FFBC0 E5FF 8FFBC0 User defined range #2
-8FFBC1 E600 8FFBC1 User defined range #2
-8FFBC2 E601 8FFBC2 User defined range #2
-8FFBC3 E602 8FFBC3 User defined range #2
-8FFBC4 E603 8FFBC4 User defined range #2
-8FFBC5 E604 8FFBC5 User defined range #2
-8FFBC6 E605 8FFBC6 User defined range #2
-8FFBC7 E606 8FFBC7 User defined range #2
-8FFBC8 E607 8FFBC8 User defined range #2
-8FFBC9 E608 8FFBC9 User defined range #2
-8FFBCA E609 8FFBCA User defined range #2
-8FFBCB E60A 8FFBCB User defined range #2
-8FFBCC E60B 8FFBCC User defined range #2
-8FFBCD E60C 8FFBCD User defined range #2
-8FFBCE E60D 8FFBCE User defined range #2
-8FFBCF E60E 8FFBCF User defined range #2
-8FFBD0 E60F 8FFBD0 User defined range #2
-8FFBD1 E610 8FFBD1 User defined range #2
-8FFBD2 E611 8FFBD2 User defined range #2
-8FFBD3 E612 8FFBD3 User defined range #2
-8FFBD4 E613 8FFBD4 User defined range #2
-8FFBD5 E614 8FFBD5 User defined range #2
-8FFBD6 E615 8FFBD6 User defined range #2
-8FFBD7 E616 8FFBD7 User defined range #2
-8FFBD8 E617 8FFBD8 User defined range #2
-8FFBD9 E618 8FFBD9 User defined range #2
-8FFBDA E619 8FFBDA User defined range #2
-8FFBDB E61A 8FFBDB User defined range #2
-8FFBDC E61B 8FFBDC User defined range #2
-8FFBDD E61C 8FFBDD User defined range #2
-8FFBDE E61D 8FFBDE User defined range #2
-8FFBDF E61E 8FFBDF User defined range #2
-8FFBE0 E61F 8FFBE0 User defined range #2
-8FFBE1 E620 8FFBE1 User defined range #2
-8FFBE2 E621 8FFBE2 User defined range #2
-8FFBE3 E622 8FFBE3 User defined range #2
-8FFBE4 E623 8FFBE4 User defined range #2
-8FFBE5 E624 8FFBE5 User defined range #2
-8FFBE6 E625 8FFBE6 User defined range #2
-8FFBE7 E626 8FFBE7 User defined range #2
-8FFBE8 E627 8FFBE8 User defined range #2
-8FFBE9 E628 8FFBE9 User defined range #2
-8FFBEA E629 8FFBEA User defined range #2
-8FFBEB E62A 8FFBEB User defined range #2
-8FFBEC E62B 8FFBEC User defined range #2
-8FFBED E62C 8FFBED User defined range #2
-8FFBEE E62D 8FFBEE User defined range #2
-8FFBEF E62E 8FFBEF User defined range #2
-8FFBF0 E62F 8FFBF0 User defined range #2
-8FFBF1 E630 8FFBF1 User defined range #2
-8FFBF2 E631 8FFBF2 User defined range #2
-8FFBF3 E632 8FFBF3 User defined range #2
-8FFBF4 E633 8FFBF4 User defined range #2
-8FFBF5 E634 8FFBF5 User defined range #2
-8FFBF6 E635 8FFBF6 User defined range #2
-8FFBF7 E636 8FFBF7 User defined range #2
-8FFBF8 E637 8FFBF8 User defined range #2
-8FFBF9 E638 8FFBF9 User defined range #2
-8FFBFA E639 8FFBFA User defined range #2
-8FFBFB E63A 8FFBFB User defined range #2
-8FFBFC E63B 8FFBFC User defined range #2
-8FFBFD E63C 8FFBFD User defined range #2
-8FFBFE E63D 8FFBFE User defined range #2
-8FFCA1 E63E 8FFCA1 User defined range #2
-8FFCA2 E63F 8FFCA2 User defined range #2
-8FFCA3 E640 8FFCA3 User defined range #2
-8FFCA4 E641 8FFCA4 User defined range #2
-8FFCA5 E642 8FFCA5 User defined range #2
-8FFCA6 E643 8FFCA6 User defined range #2
-8FFCA7 E644 8FFCA7 User defined range #2
-8FFCA8 E645 8FFCA8 User defined range #2
-8FFCA9 E646 8FFCA9 User defined range #2
-8FFCAA E647 8FFCAA User defined range #2
-8FFCAB E648 8FFCAB User defined range #2
-8FFCAC E649 8FFCAC User defined range #2
-8FFCAD E64A 8FFCAD User defined range #2
-8FFCAE E64B 8FFCAE User defined range #2
-8FFCAF E64C 8FFCAF User defined range #2
-8FFCB0 E64D 8FFCB0 User defined range #2
-8FFCB1 E64E 8FFCB1 User defined range #2
-8FFCB2 E64F 8FFCB2 User defined range #2
-8FFCB3 E650 8FFCB3 User defined range #2
-8FFCB4 E651 8FFCB4 User defined range #2
-8FFCB5 E652 8FFCB5 User defined range #2
-8FFCB6 E653 8FFCB6 User defined range #2
-8FFCB7 E654 8FFCB7 User defined range #2
-8FFCB8 E655 8FFCB8 User defined range #2
-8FFCB9 E656 8FFCB9 User defined range #2
-8FFCBA E657 8FFCBA User defined range #2
-8FFCBB E658 8FFCBB User defined range #2
-8FFCBC E659 8FFCBC User defined range #2
-8FFCBD E65A 8FFCBD User defined range #2
-8FFCBE E65B 8FFCBE User defined range #2
-8FFCBF E65C 8FFCBF User defined range #2
-8FFCC0 E65D 8FFCC0 User defined range #2
-8FFCC1 E65E 8FFCC1 User defined range #2
-8FFCC2 E65F 8FFCC2 User defined range #2
-8FFCC3 E660 8FFCC3 User defined range #2
-8FFCC4 E661 8FFCC4 User defined range #2
-8FFCC5 E662 8FFCC5 User defined range #2
-8FFCC6 E663 8FFCC6 User defined range #2
-8FFCC7 E664 8FFCC7 User defined range #2
-8FFCC8 E665 8FFCC8 User defined range #2
-8FFCC9 E666 8FFCC9 User defined range #2
-8FFCCA E667 8FFCCA User defined range #2
-8FFCCB E668 8FFCCB User defined range #2
-8FFCCC E669 8FFCCC User defined range #2
-8FFCCD E66A 8FFCCD User defined range #2
-8FFCCE E66B 8FFCCE User defined range #2
-8FFCCF E66C 8FFCCF User defined range #2
-8FFCD0 E66D 8FFCD0 User defined range #2
-8FFCD1 E66E 8FFCD1 User defined range #2
-8FFCD2 E66F 8FFCD2 User defined range #2
-8FFCD3 E670 8FFCD3 User defined range #2
-8FFCD4 E671 8FFCD4 User defined range #2
-8FFCD5 E672 8FFCD5 User defined range #2
-8FFCD6 E673 8FFCD6 User defined range #2
-8FFCD7 E674 8FFCD7 User defined range #2
-8FFCD8 E675 8FFCD8 User defined range #2
-8FFCD9 E676 8FFCD9 User defined range #2
-8FFCDA E677 8FFCDA User defined range #2
-8FFCDB E678 8FFCDB User defined range #2
-8FFCDC E679 8FFCDC User defined range #2
-8FFCDD E67A 8FFCDD User defined range #2
-8FFCDE E67B 8FFCDE User defined range #2
-8FFCDF E67C 8FFCDF User defined range #2
-8FFCE0 E67D 8FFCE0 User defined range #2
-8FFCE1 E67E 8FFCE1 User defined range #2
-8FFCE2 E67F 8FFCE2 User defined range #2
-8FFCE3 E680 8FFCE3 User defined range #2
-8FFCE4 E681 8FFCE4 User defined range #2
-8FFCE5 E682 8FFCE5 User defined range #2
-8FFCE6 E683 8FFCE6 User defined range #2
-8FFCE7 E684 8FFCE7 User defined range #2
-8FFCE8 E685 8FFCE8 User defined range #2
-8FFCE9 E686 8FFCE9 User defined range #2
-8FFCEA E687 8FFCEA User defined range #2
-8FFCEB E688 8FFCEB User defined range #2
-8FFCEC E689 8FFCEC User defined range #2
-8FFCED E68A 8FFCED User defined range #2
-8FFCEE E68B 8FFCEE User defined range #2
-8FFCEF E68C 8FFCEF User defined range #2
-8FFCF0 E68D 8FFCF0 User defined range #2
-8FFCF1 E68E 8FFCF1 User defined range #2
-8FFCF2 E68F 8FFCF2 User defined range #2
-8FFCF3 E690 8FFCF3 User defined range #2
-8FFCF4 E691 8FFCF4 User defined range #2
-8FFCF5 E692 8FFCF5 User defined range #2
-8FFCF6 E693 8FFCF6 User defined range #2
-8FFCF7 E694 8FFCF7 User defined range #2
-8FFCF8 E695 8FFCF8 User defined range #2
-8FFCF9 E696 8FFCF9 User defined range #2
-8FFCFA E697 8FFCFA User defined range #2
-8FFCFB E698 8FFCFB User defined range #2
-8FFCFC E699 8FFCFC User defined range #2
-8FFCFD E69A 8FFCFD User defined range #2
-8FFCFE E69B 8FFCFE User defined range #2
-8FFDA1 E69C 8FFDA1 User defined range #2
-8FFDA2 E69D 8FFDA2 User defined range #2
-8FFDA3 E69E 8FFDA3 User defined range #2
-8FFDA4 E69F 8FFDA4 User defined range #2
-8FFDA5 E6A0 8FFDA5 User defined range #2
-8FFDA6 E6A1 8FFDA6 User defined range #2
-8FFDA7 E6A2 8FFDA7 User defined range #2
-8FFDA8 E6A3 8FFDA8 User defined range #2
-8FFDA9 E6A4 8FFDA9 User defined range #2
-8FFDAA E6A5 8FFDAA User defined range #2
-8FFDAB E6A6 8FFDAB User defined range #2
-8FFDAC E6A7 8FFDAC User defined range #2
-8FFDAD E6A8 8FFDAD User defined range #2
-8FFDAE E6A9 8FFDAE User defined range #2
-8FFDAF E6AA 8FFDAF User defined range #2
-8FFDB0 E6AB 8FFDB0 User defined range #2
-8FFDB1 E6AC 8FFDB1 User defined range #2
-8FFDB2 E6AD 8FFDB2 User defined range #2
-8FFDB3 E6AE 8FFDB3 User defined range #2
-8FFDB4 E6AF 8FFDB4 User defined range #2
-8FFDB5 E6B0 8FFDB5 User defined range #2
-8FFDB6 E6B1 8FFDB6 User defined range #2
-8FFDB7 E6B2 8FFDB7 User defined range #2
-8FFDB8 E6B3 8FFDB8 User defined range #2
-8FFDB9 E6B4 8FFDB9 User defined range #2
-8FFDBA E6B5 8FFDBA User defined range #2
-8FFDBB E6B6 8FFDBB User defined range #2
-8FFDBC E6B7 8FFDBC User defined range #2
-8FFDBD E6B8 8FFDBD User defined range #2
-8FFDBE E6B9 8FFDBE User defined range #2
-8FFDBF E6BA 8FFDBF User defined range #2
-8FFDC0 E6BB 8FFDC0 User defined range #2
-8FFDC1 E6BC 8FFDC1 User defined range #2
-8FFDC2 E6BD 8FFDC2 User defined range #2
-8FFDC3 E6BE 8FFDC3 User defined range #2
-8FFDC4 E6BF 8FFDC4 User defined range #2
-8FFDC5 E6C0 8FFDC5 User defined range #2
-8FFDC6 E6C1 8FFDC6 User defined range #2
-8FFDC7 E6C2 8FFDC7 User defined range #2
-8FFDC8 E6C3 8FFDC8 User defined range #2
-8FFDC9 E6C4 8FFDC9 User defined range #2
-8FFDCA E6C5 8FFDCA User defined range #2
-8FFDCB E6C6 8FFDCB User defined range #2
-8FFDCC E6C7 8FFDCC User defined range #2
-8FFDCD E6C8 8FFDCD User defined range #2
-8FFDCE E6C9 8FFDCE User defined range #2
-8FFDCF E6CA 8FFDCF User defined range #2
-8FFDD0 E6CB 8FFDD0 User defined range #2
-8FFDD1 E6CC 8FFDD1 User defined range #2
-8FFDD2 E6CD 8FFDD2 User defined range #2
-8FFDD3 E6CE 8FFDD3 User defined range #2
-8FFDD4 E6CF 8FFDD4 User defined range #2
-8FFDD5 E6D0 8FFDD5 User defined range #2
-8FFDD6 E6D1 8FFDD6 User defined range #2
-8FFDD7 E6D2 8FFDD7 User defined range #2
-8FFDD8 E6D3 8FFDD8 User defined range #2
-8FFDD9 E6D4 8FFDD9 User defined range #2
-8FFDDA E6D5 8FFDDA User defined range #2
-8FFDDB E6D6 8FFDDB User defined range #2
-8FFDDC E6D7 8FFDDC User defined range #2
-8FFDDD E6D8 8FFDDD User defined range #2
-8FFDDE E6D9 8FFDDE User defined range #2
-8FFDDF E6DA 8FFDDF User defined range #2
-8FFDE0 E6DB 8FFDE0 User defined range #2
-8FFDE1 E6DC 8FFDE1 User defined range #2
-8FFDE2 E6DD 8FFDE2 User defined range #2
-8FFDE3 E6DE 8FFDE3 User defined range #2
-8FFDE4 E6DF 8FFDE4 User defined range #2
-8FFDE5 E6E0 8FFDE5 User defined range #2
-8FFDE6 E6E1 8FFDE6 User defined range #2
-8FFDE7 E6E2 8FFDE7 User defined range #2
-8FFDE8 E6E3 8FFDE8 User defined range #2
-8FFDE9 E6E4 8FFDE9 User defined range #2
-8FFDEA E6E5 8FFDEA User defined range #2
-8FFDEB E6E6 8FFDEB User defined range #2
-8FFDEC E6E7 8FFDEC User defined range #2
-8FFDED E6E8 8FFDED User defined range #2
-8FFDEE E6E9 8FFDEE User defined range #2
-8FFDEF E6EA 8FFDEF User defined range #2
-8FFDF0 E6EB 8FFDF0 User defined range #2
-8FFDF1 E6EC 8FFDF1 User defined range #2
-8FFDF2 E6ED 8FFDF2 User defined range #2
-8FFDF3 E6EE 8FFDF3 User defined range #2
-8FFDF4 E6EF 8FFDF4 User defined range #2
-8FFDF5 E6F0 8FFDF5 User defined range #2
-8FFDF6 E6F1 8FFDF6 User defined range #2
-8FFDF7 E6F2 8FFDF7 User defined range #2
-8FFDF8 E6F3 8FFDF8 User defined range #2
-8FFDF9 E6F4 8FFDF9 User defined range #2
-8FFDFA E6F5 8FFDFA User defined range #2
-8FFDFB E6F6 8FFDFB User defined range #2
-8FFDFC E6F7 8FFDFC User defined range #2
-8FFDFD E6F8 8FFDFD User defined range #2
-8FFDFE E6F9 8FFDFE User defined range #2
-8FFEA1 E6FA 8FFEA1 User defined range #2
-8FFEA2 E6FB 8FFEA2 User defined range #2
-8FFEA3 E6FC 8FFEA3 User defined range #2
-8FFEA4 E6FD 8FFEA4 User defined range #2
-8FFEA5 E6FE 8FFEA5 User defined range #2
-8FFEA6 E6FF 8FFEA6 User defined range #2
-8FFEA7 E700 8FFEA7 User defined range #2
-8FFEA8 E701 8FFEA8 User defined range #2
-8FFEA9 E702 8FFEA9 User defined range #2
-8FFEAA E703 8FFEAA User defined range #2
-8FFEAB E704 8FFEAB User defined range #2
-8FFEAC E705 8FFEAC User defined range #2
-8FFEAD E706 8FFEAD User defined range #2
-8FFEAE E707 8FFEAE User defined range #2
-8FFEAF E708 8FFEAF User defined range #2
-8FFEB0 E709 8FFEB0 User defined range #2
-8FFEB1 E70A 8FFEB1 User defined range #2
-8FFEB2 E70B 8FFEB2 User defined range #2
-8FFEB3 E70C 8FFEB3 User defined range #2
-8FFEB4 E70D 8FFEB4 User defined range #2
-8FFEB5 E70E 8FFEB5 User defined range #2
-8FFEB6 E70F 8FFEB6 User defined range #2
-8FFEB7 E710 8FFEB7 User defined range #2
-8FFEB8 E711 8FFEB8 User defined range #2
-8FFEB9 E712 8FFEB9 User defined range #2
-8FFEBA E713 8FFEBA User defined range #2
-8FFEBB E714 8FFEBB User defined range #2
-8FFEBC E715 8FFEBC User defined range #2
-8FFEBD E716 8FFEBD User defined range #2
-8FFEBE E717 8FFEBE User defined range #2
-8FFEBF E718 8FFEBF User defined range #2
-8FFEC0 E719 8FFEC0 User defined range #2
-8FFEC1 E71A 8FFEC1 User defined range #2
-8FFEC2 E71B 8FFEC2 User defined range #2
-8FFEC3 E71C 8FFEC3 User defined range #2
-8FFEC4 E71D 8FFEC4 User defined range #2
-8FFEC5 E71E 8FFEC5 User defined range #2
-8FFEC6 E71F 8FFEC6 User defined range #2
-8FFEC7 E720 8FFEC7 User defined range #2
-8FFEC8 E721 8FFEC8 User defined range #2
-8FFEC9 E722 8FFEC9 User defined range #2
-8FFECA E723 8FFECA User defined range #2
-8FFECB E724 8FFECB User defined range #2
-8FFECC E725 8FFECC User defined range #2
-8FFECD E726 8FFECD User defined range #2
-8FFECE E727 8FFECE User defined range #2
-8FFECF E728 8FFECF User defined range #2
-8FFED0 E729 8FFED0 User defined range #2
-8FFED1 E72A 8FFED1 User defined range #2
-8FFED2 E72B 8FFED2 User defined range #2
-8FFED3 E72C 8FFED3 User defined range #2
-8FFED4 E72D 8FFED4 User defined range #2
-8FFED5 E72E 8FFED5 User defined range #2
-8FFED6 E72F 8FFED6 User defined range #2
-8FFED7 E730 8FFED7 User defined range #2
-8FFED8 E731 8FFED8 User defined range #2
-8FFED9 E732 8FFED9 User defined range #2
-8FFEDA E733 8FFEDA User defined range #2
-8FFEDB E734 8FFEDB User defined range #2
-8FFEDC E735 8FFEDC User defined range #2
-8FFEDD E736 8FFEDD User defined range #2
-8FFEDE E737 8FFEDE User defined range #2
-8FFEDF E738 8FFEDF User defined range #2
-8FFEE0 E739 8FFEE0 User defined range #2
-8FFEE1 E73A 8FFEE1 User defined range #2
-8FFEE2 E73B 8FFEE2 User defined range #2
-8FFEE3 E73C 8FFEE3 User defined range #2
-8FFEE4 E73D 8FFEE4 User defined range #2
-8FFEE5 E73E 8FFEE5 User defined range #2
-8FFEE6 E73F 8FFEE6 User defined range #2
-8FFEE7 E740 8FFEE7 User defined range #2
-8FFEE8 E741 8FFEE8 User defined range #2
-8FFEE9 E742 8FFEE9 User defined range #2
-8FFEEA E743 8FFEEA User defined range #2
-8FFEEB E744 8FFEEB User defined range #2
-8FFEEC E745 8FFEEC User defined range #2
-8FFEED E746 8FFEED User defined range #2
-8FFEEE E747 8FFEEE User defined range #2
-8FFEEF E748 8FFEEF User defined range #2
-8FFEF0 E749 8FFEF0 User defined range #2
-8FFEF1 E74A 8FFEF1 User defined range #2
-8FFEF2 E74B 8FFEF2 User defined range #2
-8FFEF3 E74C 8FFEF3 User defined range #2
-8FFEF4 E74D 8FFEF4 User defined range #2
-8FFEF5 E74E 8FFEF5 User defined range #2
-8FFEF6 E74F 8FFEF6 User defined range #2
-8FFEF7 E750 8FFEF7 User defined range #2
-8FFEF8 E751 8FFEF8 User defined range #2
-8FFEF9 E752 8FFEF9 User defined range #2
-8FFEFA E753 8FFEFA User defined range #2
-8FFEFB E754 8FFEFB User defined range #2
-8FFEFC E755 8FFEFC User defined range #2
-8FFEFD E756 8FFEFD User defined range #2
-8FFEFE E757 8FFEFE User defined range #2
-A1A1 3000 A1A1 U+3000 IDEOGRAPHIC SPACE
-A1A2 3001 A1A2 U+3001 IDEOGRAPHIC COMMA
-A1A3 3002 A1A3 U+3002 IDEOGRAPHIC FULL STOP
-A1A4 FF0C A1A4 U+FF0C FULLWIDTH COMMA
-A1A5 FF0E A1A5 U+FF0E FULLWIDTH FULL STOP
-A1A6 30FB A1A6 U+30FB KATAKANA MIDDLE DOT
-A1A7 FF1A A1A7 U+FF1A FULLWIDTH COLON
-A1A8 FF1B A1A8 U+FF1B FULLWIDTH SEMICOLON
-A1A9 FF1F A1A9 U+FF1F FULLWIDTH QUESTION MARK
-A1AA FF01 A1AA U+FF01 FULLWIDTH EXCLAMATION MARK
-A1AB 309B A1AB U+309B KATAKANA-HIRAGANA VOICED SOUND MARK
-A1AC 309C A1AC U+309C KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
-A1AD 00B4 A1AD U+00B4 ACUTE ACCENT
-A1AE FF40 A1AE U+FF40 FULLWIDTH GRAVE ACCENT
-A1AF 00A8 A1AF U+00A8 DIAERESIS
-A1B0 FF3E A1B0 U+FF3E FULLWIDTH CIRCUMFLEX ACCENT
-A1B1 FFE3 A1B1 U+FFE3 FULLWIDTH MACRON
-A1B2 FF3F A1B2 U+FF3F FULLWIDTH LOW LINE
-A1B3 30FD A1B3 U+30FD KATAKANA ITERATION MARK
-A1B4 30FE A1B4 U+30FE KATAKANA VOICED ITERATION MARK
-A1B5 309D A1B5 U+309D HIRAGANA ITERATION MARK
-A1B6 309E A1B6 U+309E HIRAGANA VOICED ITERATION MARK
-A1B7 3003 A1B7 U+3003 DITTO MARK
-A1B8 4EDD A1B8 U+4EDD <CJK>
-A1B9 3005 A1B9 U+3005 IDEOGRAPHIC ITERATION MARK
-A1BA 3006 A1BA U+3006 IDEOGRAPHIC CLOSING MARK
-A1BB 3007 A1BB U+3007 IDEOGRAPHIC NUMBER ZERO
-A1BC 30FC A1BC U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK
-A1BD 2015 A1BD U+2015 HORIZONTAL BAR
-A1BE 2010 A1BE U+2010 HYPHEN
-A1BF FF0F A1BF U+FF0F FULLWIDTH SOLIDUS
-A1C1 301C A1C1 U+301C WAVE DASH
-A1C2 2016 A1C2 U+2016 DOUBLE VERTICAL LINE
-A1C3 FF5C A1C3 U+FF5C FULLWIDTH VERTICAL LINE
-A1C4 2026 A1C4 U+2026 HORIZONTAL ELLIPSIS
-A1C5 2025 A1C5 U+2025 TWO DOT LEADER
-A1C6 2018 A1C6 U+2018 LEFT SINGLE QUOTATION MARK
-A1C7 2019 A1C7 U+2019 RIGHT SINGLE QUOTATION MARK
-A1C8 201C A1C8 U+201C LEFT DOUBLE QUOTATION MARK
-A1C9 201D A1C9 U+201D RIGHT DOUBLE QUOTATION MARK
-A1CA FF08 A1CA U+FF08 FULLWIDTH LEFT PARENTHESIS
-A1CB FF09 A1CB U+FF09 FULLWIDTH RIGHT PARENTHESIS
-A1CC 3014 A1CC U+3014 LEFT TORTOISE SHELL BRACKET
-A1CD 3015 A1CD U+3015 RIGHT TORTOISE SHELL BRACKET
-A1CE FF3B A1CE U+FF3B FULLWIDTH LEFT SQUARE BRACKET
-A1CF FF3D A1CF U+FF3D FULLWIDTH RIGHT SQUARE BRACKET
-A1D0 FF5B A1D0 U+FF5B FULLWIDTH LEFT CURLY BRACKET
-A1D1 FF5D A1D1 U+FF5D FULLWIDTH RIGHT CURLY BRACKET
-A1D2 3008 A1D2 U+3008 LEFT ANGLE BRACKET
-A1D3 3009 A1D3 U+3009 RIGHT ANGLE BRACKET
-A1D4 300A A1D4 U+300A LEFT DOUBLE ANGLE BRACKET
-A1D5 300B A1D5 U+300B RIGHT DOUBLE ANGLE BRACKET
-A1D6 300C A1D6 U+300C LEFT CORNER BRACKET
-A1D7 300D A1D7 U+300D RIGHT CORNER BRACKET
-A1D8 300E A1D8 U+300E LEFT WHITE CORNER BRACKET
-A1D9 300F A1D9 U+300F RIGHT WHITE CORNER BRACKET
-A1DA 3010 A1DA U+3010 LEFT BLACK LENTICULAR BRACKET
-A1DB 3011 A1DB U+3011 RIGHT BLACK LENTICULAR BRACKET
-A1DC FF0B A1DC U+FF0B FULLWIDTH PLUS SIGN
-A1DD 2212 A1DD U+2212 MINUS SIGN
-A1DE 00B1 A1DE U+00B1 PLUS-MINUS SIGN
-A1DF 00D7 A1DF U+00D7 MULTIPLICATION SIGN
-A1E0 00F7 A1E0 U+00F7 DIVISION SIGN
-A1E1 FF1D A1E1 U+FF1D FULLWIDTH EQUALS SIGN
-A1E2 2260 A1E2 U+2260 NOT EQUAL TO
-A1E3 FF1C A1E3 U+FF1C FULLWIDTH LESS-THAN SIGN
-A1E4 FF1E A1E4 U+FF1E FULLWIDTH GREATER-THAN SIGN
-A1E5 2266 A1E5 U+2266 LESS-THAN OVER EQUAL TO
-A1E6 2267 A1E6 U+2267 GREATER-THAN OVER EQUAL TO
-A1E7 221E A1E7 U+221E INFINITY
-A1E8 2234 A1E8 U+2234 THEREFORE
-A1E9 2642 A1E9 U+2642 MALE SIGN
-A1EA 2640 A1EA U+2640 FEMALE SIGN
-A1EB 00B0 A1EB U+00B0 DEGREE SIGN
-A1EC 2032 A1EC U+2032 PRIME
-A1ED 2033 A1ED U+2033 DOUBLE PRIME
-A1EE 2103 A1EE U+2103 DEGREE CELSIUS
-A1EF FFE5 A1EF U+FFE5 FULLWIDTH YEN SIGN
-A1F0 FF04 A1F0 U+FF04 FULLWIDTH DOLLAR SIGN
-A1F1 00A2 A1F1 U+00A2 CENT SIGN
-A1F2 00A3 A1F2 U+00A3 POUND SIGN
-A1F3 FF05 A1F3 U+FF05 FULLWIDTH PERCENT SIGN
-A1F4 FF03 A1F4 U+FF03 FULLWIDTH NUMBER SIGN
-A1F5 FF06 A1F5 U+FF06 FULLWIDTH AMPERSAND
-A1F6 FF0A A1F6 U+FF0A FULLWIDTH ASTERISK
-A1F7 FF20 A1F7 U+FF20 FULLWIDTH COMMERCIAL AT
-A1F8 00A7 A1F8 U+00A7 SECTION SIGN
-A1F9 2606 A1F9 U+2606 WHITE STAR
-A1FA 2605 A1FA U+2605 BLACK STAR
-A1FB 25CB A1FB U+25CB WHITE CIRCLE
-A1FC 25CF A1FC U+25CF BLACK CIRCLE
-A1FD 25CE A1FD U+25CE BULLSEYE
-A1FE 25C7 A1FE U+25C7 WHITE DIAMOND
-A2A1 25C6 A2A1 U+25C6 BLACK DIAMOND
-A2A2 25A1 A2A2 U+25A1 WHITE SQUARE
-A2A3 25A0 A2A3 U+25A0 BLACK SQUARE
-A2A4 25B3 A2A4 U+25B3 WHITE UP-POINTING TRIANGLE
-A2A5 25B2 A2A5 U+25B2 BLACK UP-POINTING TRIANGLE
-A2A6 25BD A2A6 U+25BD WHITE DOWN-POINTING TRIANGLE
-A2A7 25BC A2A7 U+25BC BLACK DOWN-POINTING TRIANGLE
-A2A8 203B A2A8 U+203B REFERENCE MARK
-A2A9 3012 A2A9 U+3012 POSTAL MARK
-A2AA 2192 A2AA U+2192 RIGHTWARDS ARROW
-A2AB 2190 A2AB U+2190 LEFTWARDS ARROW
-A2AC 2191 A2AC U+2191 UPWARDS ARROW
-A2AD 2193 A2AD U+2193 DOWNWARDS ARROW
-A2AE 3013 A2AE U+3013 GETA MARK
-A2BA 2208 A2BA U+2208 ELEMENT OF
-A2BB 220B A2BB U+220B CONTAINS AS MEMBER
-A2BC 2286 A2BC U+2286 SUBset OF OR EQUAL TO
-A2BD 2287 A2BD U+2287 SUPERset OF OR EQUAL TO
-A2BE 2282 A2BE U+2282 SUBset OF
-A2BF 2283 A2BF U+2283 SUPERset OF
-A2C0 222A A2C0 U+222A UNION
-A2C1 2229 A2C1 U+2229 INTERSECTION
-A2CA 2227 A2CA U+2227 LOGICAL AND
-A2CB 2228 A2CB U+2228 LOGICAL OR
-A2CC 00AC A2CC U+00AC NOT SIGN
-A2CD 21D2 A2CD U+21D2 RIGHTWARDS DOUBLE ARROW
-A2CE 21D4 A2CE U+21D4 LEFT RIGHT DOUBLE ARROW
-A2CF 2200 A2CF U+2200 FOR ALL
-A2D0 2203 A2D0 U+2203 THERE EXISTS
-A2DC 2220 A2DC U+2220 ANGLE
-A2DD 22A5 A2DD U+22A5 UP TACK
-A2DE 2312 A2DE U+2312 ARC
-A2DF 2202 A2DF U+2202 PARTIAL DIFFERENTIAL
-A2E0 2207 A2E0 U+2207 NABLA
-A2E1 2261 A2E1 U+2261 IDENTICAL TO
-A2E2 2252 A2E2 U+2252 APPROXIMATELY EQUAL TO OR THE IMAGE OF
-A2E3 226A A2E3 U+226A MUCH LESS-THAN
-A2E4 226B A2E4 U+226B MUCH GREATER-THAN
-A2E5 221A A2E5 U+221A SQUARE ROOT
-A2E6 223D A2E6 U+223D REVERSED TILDE
-A2E7 221D A2E7 U+221D PROPORTIONAL TO
-A2E8 2235 A2E8 U+2235 BECAUSE
-A2E9 222B A2E9 U+222B INTEGRAL
-A2EA 222C A2EA U+222C DOUBLE INTEGRAL
-A2F2 212B A2F2 U+212B ANGSTROM SIGN
-A2F3 2030 A2F3 U+2030 PER MILLE SIGN
-A2F4 266F A2F4 U+266F MUSIC SHARP SIGN
-A2F5 266D A2F5 U+266D MUSIC FLAT SIGN
-A2F6 266A A2F6 U+266A EIGHTH NOTE
-A2F7 2020 A2F7 U+2020 DAGGER
-A2F8 2021 A2F8 U+2021 DOUBLE DAGGER
-A2F9 00B6 A2F9 U+00B6 PILCROW SIGN
-A2FE 25EF A2FE U+25EF LARGE CIRCLE
-A3B0 FF10 A3B0 U+FF10 FULLWIDTH DIGIT ZERO
-A3B1 FF11 A3B1 U+FF11 FULLWIDTH DIGIT ONE
-A3B2 FF12 A3B2 U+FF12 FULLWIDTH DIGIT TWO
-A3B3 FF13 A3B3 U+FF13 FULLWIDTH DIGIT THREE
-A3B4 FF14 A3B4 U+FF14 FULLWIDTH DIGIT FOUR
-A3B5 FF15 A3B5 U+FF15 FULLWIDTH DIGIT FIVE
-A3B6 FF16 A3B6 U+FF16 FULLWIDTH DIGIT SIX
-A3B7 FF17 A3B7 U+FF17 FULLWIDTH DIGIT SEVEN
-A3B8 FF18 A3B8 U+FF18 FULLWIDTH DIGIT EIGHT
-A3B9 FF19 A3B9 U+FF19 FULLWIDTH DIGIT NINE
-A3C1 FF21 A3C1 U+FF21 FULLWIDTH LATIN CAPITAL LETTER A
-A3C2 FF22 A3C2 U+FF22 FULLWIDTH LATIN CAPITAL LETTER B
-A3C3 FF23 A3C3 U+FF23 FULLWIDTH LATIN CAPITAL LETTER C
-A3C4 FF24 A3C4 U+FF24 FULLWIDTH LATIN CAPITAL LETTER D
-A3C5 FF25 A3C5 U+FF25 FULLWIDTH LATIN CAPITAL LETTER E
-A3C6 FF26 A3C6 U+FF26 FULLWIDTH LATIN CAPITAL LETTER F
-A3C7 FF27 A3C7 U+FF27 FULLWIDTH LATIN CAPITAL LETTER G
-A3C8 FF28 A3C8 U+FF28 FULLWIDTH LATIN CAPITAL LETTER H
-A3C9 FF29 A3C9 U+FF29 FULLWIDTH LATIN CAPITAL LETTER I
-A3CA FF2A A3CA U+FF2A FULLWIDTH LATIN CAPITAL LETTER J
-A3CB FF2B A3CB U+FF2B FULLWIDTH LATIN CAPITAL LETTER K
-A3CC FF2C A3CC U+FF2C FULLWIDTH LATIN CAPITAL LETTER L
-A3CD FF2D A3CD U+FF2D FULLWIDTH LATIN CAPITAL LETTER M
-A3CE FF2E A3CE U+FF2E FULLWIDTH LATIN CAPITAL LETTER N
-A3CF FF2F A3CF U+FF2F FULLWIDTH LATIN CAPITAL LETTER O
-A3D0 FF30 A3D0 U+FF30 FULLWIDTH LATIN CAPITAL LETTER P
-A3D1 FF31 A3D1 U+FF31 FULLWIDTH LATIN CAPITAL LETTER Q
-A3D2 FF32 A3D2 U+FF32 FULLWIDTH LATIN CAPITAL LETTER R
-A3D3 FF33 A3D3 U+FF33 FULLWIDTH LATIN CAPITAL LETTER S
-A3D4 FF34 A3D4 U+FF34 FULLWIDTH LATIN CAPITAL LETTER T
-A3D5 FF35 A3D5 U+FF35 FULLWIDTH LATIN CAPITAL LETTER U
-A3D6 FF36 A3D6 U+FF36 FULLWIDTH LATIN CAPITAL LETTER V
-A3D7 FF37 A3D7 U+FF37 FULLWIDTH LATIN CAPITAL LETTER W
-A3D8 FF38 A3D8 U+FF38 FULLWIDTH LATIN CAPITAL LETTER X
-A3D9 FF39 A3D9 U+FF39 FULLWIDTH LATIN CAPITAL LETTER Y
-A3DA FF3A A3DA U+FF3A FULLWIDTH LATIN CAPITAL LETTER Z
-A3E1 FF41 A3E1 U+FF41 FULLWIDTH LATIN SMALL LETTER A
-A3E2 FF42 A3E2 U+FF42 FULLWIDTH LATIN SMALL LETTER B
-A3E3 FF43 A3E3 U+FF43 FULLWIDTH LATIN SMALL LETTER C
-A3E4 FF44 A3E4 U+FF44 FULLWIDTH LATIN SMALL LETTER D
-A3E5 FF45 A3E5 U+FF45 FULLWIDTH LATIN SMALL LETTER E
-A3E6 FF46 A3E6 U+FF46 FULLWIDTH LATIN SMALL LETTER F
-A3E7 FF47 A3E7 U+FF47 FULLWIDTH LATIN SMALL LETTER G
-A3E8 FF48 A3E8 U+FF48 FULLWIDTH LATIN SMALL LETTER H
-A3E9 FF49 A3E9 U+FF49 FULLWIDTH LATIN SMALL LETTER I
-A3EA FF4A A3EA U+FF4A FULLWIDTH LATIN SMALL LETTER J
-A3EB FF4B A3EB U+FF4B FULLWIDTH LATIN SMALL LETTER K
-A3EC FF4C A3EC U+FF4C FULLWIDTH LATIN SMALL LETTER L
-A3ED FF4D A3ED U+FF4D FULLWIDTH LATIN SMALL LETTER M
-A3EE FF4E A3EE U+FF4E FULLWIDTH LATIN SMALL LETTER N
-A3EF FF4F A3EF U+FF4F FULLWIDTH LATIN SMALL LETTER O
-A3F0 FF50 A3F0 U+FF50 FULLWIDTH LATIN SMALL LETTER P
-A3F1 FF51 A3F1 U+FF51 FULLWIDTH LATIN SMALL LETTER Q
-A3F2 FF52 A3F2 U+FF52 FULLWIDTH LATIN SMALL LETTER R
-A3F3 FF53 A3F3 U+FF53 FULLWIDTH LATIN SMALL LETTER S
-A3F4 FF54 A3F4 U+FF54 FULLWIDTH LATIN SMALL LETTER T
-A3F5 FF55 A3F5 U+FF55 FULLWIDTH LATIN SMALL LETTER U
-A3F6 FF56 A3F6 U+FF56 FULLWIDTH LATIN SMALL LETTER V
-A3F7 FF57 A3F7 U+FF57 FULLWIDTH LATIN SMALL LETTER W
-A3F8 FF58 A3F8 U+FF58 FULLWIDTH LATIN SMALL LETTER X
-A3F9 FF59 A3F9 U+FF59 FULLWIDTH LATIN SMALL LETTER Y
-A3FA FF5A A3FA U+FF5A FULLWIDTH LATIN SMALL LETTER Z
-A4A1 3041 A4A1 U+3041 HIRAGANA LETTER SMALL A
-A4A2 3042 A4A2 U+3042 HIRAGANA LETTER A
-A4A3 3043 A4A3 U+3043 HIRAGANA LETTER SMALL I
-A4A4 3044 A4A4 U+3044 HIRAGANA LETTER I
-A4A5 3045 A4A5 U+3045 HIRAGANA LETTER SMALL U
-A4A6 3046 A4A6 U+3046 HIRAGANA LETTER U
-A4A7 3047 A4A7 U+3047 HIRAGANA LETTER SMALL E
-A4A8 3048 A4A8 U+3048 HIRAGANA LETTER E
-A4A9 3049 A4A9 U+3049 HIRAGANA LETTER SMALL O
-A4AA 304A A4AA U+304A HIRAGANA LETTER O
-A4AB 304B A4AB U+304B HIRAGANA LETTER KA
-A4AC 304C A4AC U+304C HIRAGANA LETTER GA
-A4AD 304D A4AD U+304D HIRAGANA LETTER KI
-A4AE 304E A4AE U+304E HIRAGANA LETTER GI
-A4AF 304F A4AF U+304F HIRAGANA LETTER KU
-A4B0 3050 A4B0 U+3050 HIRAGANA LETTER GU
-A4B1 3051 A4B1 U+3051 HIRAGANA LETTER KE
-A4B2 3052 A4B2 U+3052 HIRAGANA LETTER GE
-A4B3 3053 A4B3 U+3053 HIRAGANA LETTER KO
-A4B4 3054 A4B4 U+3054 HIRAGANA LETTER GO
-A4B5 3055 A4B5 U+3055 HIRAGANA LETTER SA
-A4B6 3056 A4B6 U+3056 HIRAGANA LETTER ZA
-A4B7 3057 A4B7 U+3057 HIRAGANA LETTER SI
-A4B8 3058 A4B8 U+3058 HIRAGANA LETTER ZI
-A4B9 3059 A4B9 U+3059 HIRAGANA LETTER SU
-A4BA 305A A4BA U+305A HIRAGANA LETTER ZU
-A4BB 305B A4BB U+305B HIRAGANA LETTER SE
-A4BC 305C A4BC U+305C HIRAGANA LETTER ZE
-A4BD 305D A4BD U+305D HIRAGANA LETTER SO
-A4BE 305E A4BE U+305E HIRAGANA LETTER ZO
-A4BF 305F A4BF U+305F HIRAGANA LETTER TA
-A4C0 3060 A4C0 U+3060 HIRAGANA LETTER DA
-A4C1 3061 A4C1 U+3061 HIRAGANA LETTER TI
-A4C2 3062 A4C2 U+3062 HIRAGANA LETTER DI
-A4C3 3063 A4C3 U+3063 HIRAGANA LETTER SMALL TU
-A4C4 3064 A4C4 U+3064 HIRAGANA LETTER TU
-A4C5 3065 A4C5 U+3065 HIRAGANA LETTER DU
-A4C6 3066 A4C6 U+3066 HIRAGANA LETTER TE
-A4C7 3067 A4C7 U+3067 HIRAGANA LETTER DE
-A4C8 3068 A4C8 U+3068 HIRAGANA LETTER TO
-A4C9 3069 A4C9 U+3069 HIRAGANA LETTER DO
-A4CA 306A A4CA U+306A HIRAGANA LETTER NA
-A4CB 306B A4CB U+306B HIRAGANA LETTER NI
-A4CC 306C A4CC U+306C HIRAGANA LETTER NU
-A4CD 306D A4CD U+306D HIRAGANA LETTER NE
-A4CE 306E A4CE U+306E HIRAGANA LETTER NO
-A4CF 306F A4CF U+306F HIRAGANA LETTER HA
-A4D0 3070 A4D0 U+3070 HIRAGANA LETTER BA
-A4D1 3071 A4D1 U+3071 HIRAGANA LETTER PA
-A4D2 3072 A4D2 U+3072 HIRAGANA LETTER HI
-A4D3 3073 A4D3 U+3073 HIRAGANA LETTER BI
-A4D4 3074 A4D4 U+3074 HIRAGANA LETTER PI
-A4D5 3075 A4D5 U+3075 HIRAGANA LETTER HU
-A4D6 3076 A4D6 U+3076 HIRAGANA LETTER BU
-A4D7 3077 A4D7 U+3077 HIRAGANA LETTER PU
-A4D8 3078 A4D8 U+3078 HIRAGANA LETTER HE
-A4D9 3079 A4D9 U+3079 HIRAGANA LETTER BE
-A4DA 307A A4DA U+307A HIRAGANA LETTER PE
-A4DB 307B A4DB U+307B HIRAGANA LETTER HO
-A4DC 307C A4DC U+307C HIRAGANA LETTER BO
-A4DD 307D A4DD U+307D HIRAGANA LETTER PO
-A4DE 307E A4DE U+307E HIRAGANA LETTER MA
-A4DF 307F A4DF U+307F HIRAGANA LETTER MI
-A4E0 3080 A4E0 U+3080 HIRAGANA LETTER MU
-A4E1 3081 A4E1 U+3081 HIRAGANA LETTER ME
-A4E2 3082 A4E2 U+3082 HIRAGANA LETTER MO
-A4E3 3083 A4E3 U+3083 HIRAGANA LETTER SMALL YA
-A4E4 3084 A4E4 U+3084 HIRAGANA LETTER YA
-A4E5 3085 A4E5 U+3085 HIRAGANA LETTER SMALL YU
-A4E6 3086 A4E6 U+3086 HIRAGANA LETTER YU
-A4E7 3087 A4E7 U+3087 HIRAGANA LETTER SMALL YO
-A4E8 3088 A4E8 U+3088 HIRAGANA LETTER YO
-A4E9 3089 A4E9 U+3089 HIRAGANA LETTER RA
-A4EA 308A A4EA U+308A HIRAGANA LETTER RI
-A4EB 308B A4EB U+308B HIRAGANA LETTER RU
-A4EC 308C A4EC U+308C HIRAGANA LETTER RE
-A4ED 308D A4ED U+308D HIRAGANA LETTER RO
-A4EE 308E A4EE U+308E HIRAGANA LETTER SMALL WA
-A4EF 308F A4EF U+308F HIRAGANA LETTER WA
-A4F0 3090 A4F0 U+3090 HIRAGANA LETTER WI
-A4F1 3091 A4F1 U+3091 HIRAGANA LETTER WE
-A4F2 3092 A4F2 U+3092 HIRAGANA LETTER WO
-A4F3 3093 A4F3 U+3093 HIRAGANA LETTER N
-A5A1 30A1 A5A1 U+30A1 KATAKANA LETTER SMALL A
-A5A2 30A2 A5A2 U+30A2 KATAKANA LETTER A
-A5A3 30A3 A5A3 U+30A3 KATAKANA LETTER SMALL I
-A5A4 30A4 A5A4 U+30A4 KATAKANA LETTER I
-A5A5 30A5 A5A5 U+30A5 KATAKANA LETTER SMALL U
-A5A6 30A6 A5A6 U+30A6 KATAKANA LETTER U
-A5A7 30A7 A5A7 U+30A7 KATAKANA LETTER SMALL E
-A5A8 30A8 A5A8 U+30A8 KATAKANA LETTER E
-A5A9 30A9 A5A9 U+30A9 KATAKANA LETTER SMALL O
-A5AA 30AA A5AA U+30AA KATAKANA LETTER O
-A5AB 30AB A5AB U+30AB KATAKANA LETTER KA
-A5AC 30AC A5AC U+30AC KATAKANA LETTER GA
-A5AD 30AD A5AD U+30AD KATAKANA LETTER KI
-A5AE 30AE A5AE U+30AE KATAKANA LETTER GI
-A5AF 30AF A5AF U+30AF KATAKANA LETTER KU
-A5B0 30B0 A5B0 U+30B0 KATAKANA LETTER GU
-A5B1 30B1 A5B1 U+30B1 KATAKANA LETTER KE
-A5B2 30B2 A5B2 U+30B2 KATAKANA LETTER GE
-A5B3 30B3 A5B3 U+30B3 KATAKANA LETTER KO
-A5B4 30B4 A5B4 U+30B4 KATAKANA LETTER GO
-A5B5 30B5 A5B5 U+30B5 KATAKANA LETTER SA
-A5B6 30B6 A5B6 U+30B6 KATAKANA LETTER ZA
-A5B7 30B7 A5B7 U+30B7 KATAKANA LETTER SI
-A5B8 30B8 A5B8 U+30B8 KATAKANA LETTER ZI
-A5B9 30B9 A5B9 U+30B9 KATAKANA LETTER SU
-A5BA 30BA A5BA U+30BA KATAKANA LETTER ZU
-A5BB 30BB A5BB U+30BB KATAKANA LETTER SE
-A5BC 30BC A5BC U+30BC KATAKANA LETTER ZE
-A5BD 30BD A5BD U+30BD KATAKANA LETTER SO
-A5BE 30BE A5BE U+30BE KATAKANA LETTER ZO
-A5BF 30BF A5BF U+30BF KATAKANA LETTER TA
-A5C0 30C0 A5C0 U+30C0 KATAKANA LETTER DA
-A5C1 30C1 A5C1 U+30C1 KATAKANA LETTER TI
-A5C2 30C2 A5C2 U+30C2 KATAKANA LETTER DI
-A5C3 30C3 A5C3 U+30C3 KATAKANA LETTER SMALL TU
-A5C4 30C4 A5C4 U+30C4 KATAKANA LETTER TU
-A5C5 30C5 A5C5 U+30C5 KATAKANA LETTER DU
-A5C6 30C6 A5C6 U+30C6 KATAKANA LETTER TE
-A5C7 30C7 A5C7 U+30C7 KATAKANA LETTER DE
-A5C8 30C8 A5C8 U+30C8 KATAKANA LETTER TO
-A5C9 30C9 A5C9 U+30C9 KATAKANA LETTER DO
-A5CA 30CA A5CA U+30CA KATAKANA LETTER NA
-A5CB 30CB A5CB U+30CB KATAKANA LETTER NI
-A5CC 30CC A5CC U+30CC KATAKANA LETTER NU
-A5CD 30CD A5CD U+30CD KATAKANA LETTER NE
-A5CE 30CE A5CE U+30CE KATAKANA LETTER NO
-A5CF 30CF A5CF U+30CF KATAKANA LETTER HA
-A5D0 30D0 A5D0 U+30D0 KATAKANA LETTER BA
-A5D1 30D1 A5D1 U+30D1 KATAKANA LETTER PA
-A5D2 30D2 A5D2 U+30D2 KATAKANA LETTER HI
-A5D3 30D3 A5D3 U+30D3 KATAKANA LETTER BI
-A5D4 30D4 A5D4 U+30D4 KATAKANA LETTER PI
-A5D5 30D5 A5D5 U+30D5 KATAKANA LETTER HU
-A5D6 30D6 A5D6 U+30D6 KATAKANA LETTER BU
-A5D7 30D7 A5D7 U+30D7 KATAKANA LETTER PU
-A5D8 30D8 A5D8 U+30D8 KATAKANA LETTER HE
-A5D9 30D9 A5D9 U+30D9 KATAKANA LETTER BE
-A5DA 30DA A5DA U+30DA KATAKANA LETTER PE
-A5DB 30DB A5DB U+30DB KATAKANA LETTER HO
-A5DC 30DC A5DC U+30DC KATAKANA LETTER BO
-A5DD 30DD A5DD U+30DD KATAKANA LETTER PO
-A5DE 30DE A5DE U+30DE KATAKANA LETTER MA
-A5DF 30DF A5DF U+30DF KATAKANA LETTER MI
-A5E0 30E0 A5E0 U+30E0 KATAKANA LETTER MU
-A5E1 30E1 A5E1 U+30E1 KATAKANA LETTER ME
-A5E2 30E2 A5E2 U+30E2 KATAKANA LETTER MO
-A5E3 30E3 A5E3 U+30E3 KATAKANA LETTER SMALL YA
-A5E4 30E4 A5E4 U+30E4 KATAKANA LETTER YA
-A5E5 30E5 A5E5 U+30E5 KATAKANA LETTER SMALL YU
-A5E6 30E6 A5E6 U+30E6 KATAKANA LETTER YU
-A5E7 30E7 A5E7 U+30E7 KATAKANA LETTER SMALL YO
-A5E8 30E8 A5E8 U+30E8 KATAKANA LETTER YO
-A5E9 30E9 A5E9 U+30E9 KATAKANA LETTER RA
-A5EA 30EA A5EA U+30EA KATAKANA LETTER RI
-A5EB 30EB A5EB U+30EB KATAKANA LETTER RU
-A5EC 30EC A5EC U+30EC KATAKANA LETTER RE
-A5ED 30ED A5ED U+30ED KATAKANA LETTER RO
-A5EE 30EE A5EE U+30EE KATAKANA LETTER SMALL WA
-A5EF 30EF A5EF U+30EF KATAKANA LETTER WA
-A5F0 30F0 A5F0 U+30F0 KATAKANA LETTER WI
-A5F1 30F1 A5F1 U+30F1 KATAKANA LETTER WE
-A5F2 30F2 A5F2 U+30F2 KATAKANA LETTER WO
-A5F3 30F3 A5F3 U+30F3 KATAKANA LETTER N
-A5F4 30F4 A5F4 U+30F4 KATAKANA LETTER VU
-A5F5 30F5 A5F5 U+30F5 KATAKANA LETTER SMALL KA
-A5F6 30F6 A5F6 U+30F6 KATAKANA LETTER SMALL KE
-A6A1 0391 A6A1 U+0391 GREEK CAPITAL LETTER ALPHA
-A6A2 0392 A6A2 U+0392 GREEK CAPITAL LETTER BETA
-A6A3 0393 A6A3 U+0393 GREEK CAPITAL LETTER GAMMA
-A6A4 0394 A6A4 U+0394 GREEK CAPITAL LETTER DELTA
-A6A5 0395 A6A5 U+0395 GREEK CAPITAL LETTER EPSILON
-A6A6 0396 A6A6 U+0396 GREEK CAPITAL LETTER ZETA
-A6A7 0397 A6A7 U+0397 GREEK CAPITAL LETTER ETA
-A6A8 0398 A6A8 U+0398 GREEK CAPITAL LETTER THETA
-A6A9 0399 A6A9 U+0399 GREEK CAPITAL LETTER IOTA
-A6AA 039A A6AA U+039A GREEK CAPITAL LETTER KAPPA
-A6AB 039B A6AB U+039B GREEK CAPITAL LETTER LAMDA
-A6AC 039C A6AC U+039C GREEK CAPITAL LETTER MU
-A6AD 039D A6AD U+039D GREEK CAPITAL LETTER NU
-A6AE 039E A6AE U+039E GREEK CAPITAL LETTER XI
-A6AF 039F A6AF U+039F GREEK CAPITAL LETTER OMICRON
-A6B0 03A0 A6B0 U+03A0 GREEK CAPITAL LETTER PI
-A6B1 03A1 A6B1 U+03A1 GREEK CAPITAL LETTER RHO
-A6B2 03A3 A6B2 U+03A3 GREEK CAPITAL LETTER SIGMA
-A6B3 03A4 A6B3 U+03A4 GREEK CAPITAL LETTER TAU
-A6B4 03A5 A6B4 U+03A5 GREEK CAPITAL LETTER UPSILON
-A6B5 03A6 A6B5 U+03A6 GREEK CAPITAL LETTER PHI
-A6B6 03A7 A6B6 U+03A7 GREEK CAPITAL LETTER CHI
-A6B7 03A8 A6B7 U+03A8 GREEK CAPITAL LETTER PSI
-A6B8 03A9 A6B8 U+03A9 GREEK CAPITAL LETTER OMEGA
-A6C1 03B1 A6C1 U+03B1 GREEK SMALL LETTER ALPHA
-A6C2 03B2 A6C2 U+03B2 GREEK SMALL LETTER BETA
-A6C3 03B3 A6C3 U+03B3 GREEK SMALL LETTER GAMMA
-A6C4 03B4 A6C4 U+03B4 GREEK SMALL LETTER DELTA
-A6C5 03B5 A6C5 U+03B5 GREEK SMALL LETTER EPSILON
-A6C6 03B6 A6C6 U+03B6 GREEK SMALL LETTER ZETA
-A6C7 03B7 A6C7 U+03B7 GREEK SMALL LETTER ETA
-A6C8 03B8 A6C8 U+03B8 GREEK SMALL LETTER THETA
-A6C9 03B9 A6C9 U+03B9 GREEK SMALL LETTER IOTA
-A6CA 03BA A6CA U+03BA GREEK SMALL LETTER KAPPA
-A6CB 03BB A6CB U+03BB GREEK SMALL LETTER LAMDA
-A6CC 03BC A6CC U+03BC GREEK SMALL LETTER MU
-A6CD 03BD A6CD U+03BD GREEK SMALL LETTER NU
-A6CE 03BE A6CE U+03BE GREEK SMALL LETTER XI
-A6CF 03BF A6CF U+03BF GREEK SMALL LETTER OMICRON
-A6D0 03C0 A6D0 U+03C0 GREEK SMALL LETTER PI
-A6D1 03C1 A6D1 U+03C1 GREEK SMALL LETTER RHO
-A6D2 03C3 A6D2 U+03C3 GREEK SMALL LETTER SIGMA
-A6D3 03C4 A6D3 U+03C4 GREEK SMALL LETTER TAU
-A6D4 03C5 A6D4 U+03C5 GREEK SMALL LETTER UPSILON
-A6D5 03C6 A6D5 U+03C6 GREEK SMALL LETTER PHI
-A6D6 03C7 A6D6 U+03C7 GREEK SMALL LETTER CHI
-A6D7 03C8 A6D7 U+03C8 GREEK SMALL LETTER PSI
-A6D8 03C9 A6D8 U+03C9 GREEK SMALL LETTER OMEGA
-A7A1 0410 A7A1 U+0410 CYRILLIC CAPITAL LETTER A
-A7A2 0411 A7A2 U+0411 CYRILLIC CAPITAL LETTER BE
-A7A3 0412 A7A3 U+0412 CYRILLIC CAPITAL LETTER VE
-A7A4 0413 A7A4 U+0413 CYRILLIC CAPITAL LETTER GHE
-A7A5 0414 A7A5 U+0414 CYRILLIC CAPITAL LETTER DE
-A7A6 0415 A7A6 U+0415 CYRILLIC CAPITAL LETTER IE
-A7A7 0401 A7A7 U+0401 CYRILLIC CAPITAL LETTER IO
-A7A8 0416 A7A8 U+0416 CYRILLIC CAPITAL LETTER ZHE
-A7A9 0417 A7A9 U+0417 CYRILLIC CAPITAL LETTER ZE
-A7AA 0418 A7AA U+0418 CYRILLIC CAPITAL LETTER I
-A7AB 0419 A7AB U+0419 CYRILLIC CAPITAL LETTER SHORT I
-A7AC 041A A7AC U+041A CYRILLIC CAPITAL LETTER KA
-A7AD 041B A7AD U+041B CYRILLIC CAPITAL LETTER EL
-A7AE 041C A7AE U+041C CYRILLIC CAPITAL LETTER EM
-A7AF 041D A7AF U+041D CYRILLIC CAPITAL LETTER EN
-A7B0 041E A7B0 U+041E CYRILLIC CAPITAL LETTER O
-A7B1 041F A7B1 U+041F CYRILLIC CAPITAL LETTER PE
-A7B2 0420 A7B2 U+0420 CYRILLIC CAPITAL LETTER ER
-A7B3 0421 A7B3 U+0421 CYRILLIC CAPITAL LETTER ES
-A7B4 0422 A7B4 U+0422 CYRILLIC CAPITAL LETTER TE
-A7B5 0423 A7B5 U+0423 CYRILLIC CAPITAL LETTER U
-A7B6 0424 A7B6 U+0424 CYRILLIC CAPITAL LETTER EF
-A7B7 0425 A7B7 U+0425 CYRILLIC CAPITAL LETTER HA
-A7B8 0426 A7B8 U+0426 CYRILLIC CAPITAL LETTER TSE
-A7B9 0427 A7B9 U+0427 CYRILLIC CAPITAL LETTER CHE
-A7BA 0428 A7BA U+0428 CYRILLIC CAPITAL LETTER SHA
-A7BB 0429 A7BB U+0429 CYRILLIC CAPITAL LETTER SHCHA
-A7BC 042A A7BC U+042A CYRILLIC CAPITAL LETTER HARD SIGN
-A7BD 042B A7BD U+042B CYRILLIC CAPITAL LETTER YERU
-A7BE 042C A7BE U+042C CYRILLIC CAPITAL LETTER SOFT SIGN
-A7BF 042D A7BF U+042D CYRILLIC CAPITAL LETTER E
-A7C0 042E A7C0 U+042E CYRILLIC CAPITAL LETTER YU
-A7C1 042F A7C1 U+042F CYRILLIC CAPITAL LETTER YA
-A7D1 0430 A7D1 U+0430 CYRILLIC SMALL LETTER A
-A7D2 0431 A7D2 U+0431 CYRILLIC SMALL LETTER BE
-A7D3 0432 A7D3 U+0432 CYRILLIC SMALL LETTER VE
-A7D4 0433 A7D4 U+0433 CYRILLIC SMALL LETTER GHE
-A7D5 0434 A7D5 U+0434 CYRILLIC SMALL LETTER DE
-A7D6 0435 A7D6 U+0435 CYRILLIC SMALL LETTER IE
-A7D7 0451 A7D7 U+0451 CYRILLIC SMALL LETTER IO
-A7D8 0436 A7D8 U+0436 CYRILLIC SMALL LETTER ZHE
-A7D9 0437 A7D9 U+0437 CYRILLIC SMALL LETTER ZE
-A7DA 0438 A7DA U+0438 CYRILLIC SMALL LETTER I
-A7DB 0439 A7DB U+0439 CYRILLIC SMALL LETTER SHORT I
-A7DC 043A A7DC U+043A CYRILLIC SMALL LETTER KA
-A7DD 043B A7DD U+043B CYRILLIC SMALL LETTER EL
-A7DE 043C A7DE U+043C CYRILLIC SMALL LETTER EM
-A7DF 043D A7DF U+043D CYRILLIC SMALL LETTER EN
-A7E0 043E A7E0 U+043E CYRILLIC SMALL LETTER O
-A7E1 043F A7E1 U+043F CYRILLIC SMALL LETTER PE
-A7E2 0440 A7E2 U+0440 CYRILLIC SMALL LETTER ER
-A7E3 0441 A7E3 U+0441 CYRILLIC SMALL LETTER ES
-A7E4 0442 A7E4 U+0442 CYRILLIC SMALL LETTER TE
-A7E5 0443 A7E5 U+0443 CYRILLIC SMALL LETTER U
-A7E6 0444 A7E6 U+0444 CYRILLIC SMALL LETTER EF
-A7E7 0445 A7E7 U+0445 CYRILLIC SMALL LETTER HA
-A7E8 0446 A7E8 U+0446 CYRILLIC SMALL LETTER TSE
-A7E9 0447 A7E9 U+0447 CYRILLIC SMALL LETTER CHE
-A7EA 0448 A7EA U+0448 CYRILLIC SMALL LETTER SHA
-A7EB 0449 A7EB U+0449 CYRILLIC SMALL LETTER SHCHA
-A7EC 044A A7EC U+044A CYRILLIC SMALL LETTER HARD SIGN
-A7ED 044B A7ED U+044B CYRILLIC SMALL LETTER YERU
-A7EE 044C A7EE U+044C CYRILLIC SMALL LETTER SOFT SIGN
-A7EF 044D A7EF U+044D CYRILLIC SMALL LETTER E
-A7F0 044E A7F0 U+044E CYRILLIC SMALL LETTER YU
-A7F1 044F A7F1 U+044F CYRILLIC SMALL LETTER YA
-A8A1 2500 A8A1 U+2500 BOX DRAWINGS LIGHT HORIZONTAL
-A8A2 2502 A8A2 U+2502 BOX DRAWINGS LIGHT VERTICAL
-A8A3 250C A8A3 U+250C BOX DRAWINGS LIGHT DOWN AND RIGHT
-A8A4 2510 A8A4 U+2510 BOX DRAWINGS LIGHT DOWN AND LEFT
-A8A5 2518 A8A5 U+2518 BOX DRAWINGS LIGHT UP AND LEFT
-A8A6 2514 A8A6 U+2514 BOX DRAWINGS LIGHT UP AND RIGHT
-A8A7 251C A8A7 U+251C BOX DRAWINGS LIGHT VERTICAL AND RIGHT
-A8A8 252C A8A8 U+252C BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
-A8A9 2524 A8A9 U+2524 BOX DRAWINGS LIGHT VERTICAL AND LEFT
-A8AA 2534 A8AA U+2534 BOX DRAWINGS LIGHT UP AND HORIZONTAL
-A8AB 253C A8AB U+253C BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
-A8AC 2501 A8AC U+2501 BOX DRAWINGS HEAVY HORIZONTAL
-A8AD 2503 A8AD U+2503 BOX DRAWINGS HEAVY VERTICAL
-A8AE 250F A8AE U+250F BOX DRAWINGS HEAVY DOWN AND RIGHT
-A8AF 2513 A8AF U+2513 BOX DRAWINGS HEAVY DOWN AND LEFT
-A8B0 251B A8B0 U+251B BOX DRAWINGS HEAVY UP AND LEFT
-A8B1 2517 A8B1 U+2517 BOX DRAWINGS HEAVY UP AND RIGHT
-A8B2 2523 A8B2 U+2523 BOX DRAWINGS HEAVY VERTICAL AND RIGHT
-A8B3 2533 A8B3 U+2533 BOX DRAWINGS HEAVY DOWN AND HORIZONTAL
-A8B4 252B A8B4 U+252B BOX DRAWINGS HEAVY VERTICAL AND LEFT
-A8B5 253B A8B5 U+253B BOX DRAWINGS HEAVY UP AND HORIZONTAL
-A8B6 254B A8B6 U+254B BOX DRAWINGS HEAVY VERTICAL AND HORIZONTAL
-A8B7 2520 A8B7 U+2520 BOX DRAWINGS VERTICAL HEAVY AND RIGHT LIGHT
-A8B8 252F A8B8 U+252F BOX DRAWINGS DOWN LIGHT AND HORIZONTAL HEAVY
-A8B9 2528 A8B9 U+2528 BOX DRAWINGS VERTICAL HEAVY AND LEFT LIGHT
-A8BA 2537 A8BA U+2537 BOX DRAWINGS UP LIGHT AND HORIZONTAL HEAVY
-A8BB 253F A8BB U+253F BOX DRAWINGS VERTICAL LIGHT AND HORIZONTAL HEAVY
-A8BC 251D A8BC U+251D BOX DRAWINGS VERTICAL LIGHT AND RIGHT HEAVY
-A8BD 2530 A8BD U+2530 BOX DRAWINGS DOWN HEAVY AND HORIZONTAL LIGHT
-A8BE 2525 A8BE U+2525 BOX DRAWINGS VERTICAL LIGHT AND LEFT HEAVY
-A8BF 2538 A8BF U+2538 BOX DRAWINGS UP HEAVY AND HORIZONTAL LIGHT
-A8C0 2542 A8C0 U+2542 BOX DRAWINGS VERTICAL HEAVY AND HORIZONTAL LIGHT
-B0A1 4E9C B0A1 <CJK>
-B0A2 5516 B0A2 <CJK>
-B0A3 5A03 B0A3 <CJK>
-B0A4 963F B0A4 <CJK>
-B0A5 54C0 B0A5 <CJK>
-B0A6 611B B0A6 <CJK>
-B0A7 6328 B0A7 <CJK>
-B0A8 59F6 B0A8 <CJK>
-B0A9 9022 B0A9 <CJK>
-B0AA 8475 B0AA <CJK>
-B0AB 831C B0AB <CJK>
-B0AC 7A50 B0AC <CJK>
-B0AD 60AA B0AD <CJK>
-B0AE 63E1 B0AE <CJK>
-B0AF 6E25 B0AF <CJK>
-B0B0 65ED B0B0 <CJK>
-B0B1 8466 B0B1 <CJK>
-B0B2 82A6 B0B2 <CJK>
-B0B3 9BF5 B0B3 <CJK>
-B0B4 6893 B0B4 <CJK>
-B0B5 5727 B0B5 <CJK>
-B0B6 65A1 B0B6 <CJK>
-B0B7 6271 B0B7 <CJK>
-B0B8 5B9B B0B8 <CJK>
-B0B9 59D0 B0B9 <CJK>
-B0BA 867B B0BA <CJK>
-B0BB 98F4 B0BB <CJK>
-B0BC 7D62 B0BC <CJK>
-B0BD 7DBE B0BD <CJK>
-B0BE 9B8E B0BE <CJK>
-B0BF 6216 B0BF <CJK>
-B0C0 7C9F B0C0 <CJK>
-B0C1 88B7 B0C1 <CJK>
-B0C2 5B89 B0C2 <CJK>
-B0C3 5EB5 B0C3 <CJK>
-B0C4 6309 B0C4 <CJK>
-B0C5 6697 B0C5 <CJK>
-B0C6 6848 B0C6 <CJK>
-B0C7 95C7 B0C7 <CJK>
-B0C8 978D B0C8 <CJK>
-B0C9 674F B0C9 <CJK>
-B0CA 4EE5 B0CA <CJK>
-B0CB 4F0A B0CB <CJK>
-B0CC 4F4D B0CC <CJK>
-B0CD 4F9D B0CD <CJK>
-B0CE 5049 B0CE <CJK>
-B0CF 56F2 B0CF <CJK>
-B0D0 5937 B0D0 <CJK>
-B0D1 59D4 B0D1 <CJK>
-B0D2 5A01 B0D2 <CJK>
-B0D3 5C09 B0D3 <CJK>
-B0D4 60DF B0D4 <CJK>
-B0D5 610F B0D5 <CJK>
-B0D6 6170 B0D6 <CJK>
-B0D7 6613 B0D7 <CJK>
-B0D8 6905 B0D8 <CJK>
-B0D9 70BA B0D9 <CJK>
-B0DA 754F B0DA <CJK>
-B0DB 7570 B0DB <CJK>
-B0DC 79FB B0DC <CJK>
-B0DD 7DAD B0DD <CJK>
-B0DE 7DEF B0DE <CJK>
-B0DF 80C3 B0DF <CJK>
-B0E0 840E B0E0 <CJK>
-B0E1 8863 B0E1 <CJK>
-B0E2 8B02 B0E2 <CJK>
-B0E3 9055 B0E3 <CJK>
-B0E4 907A B0E4 <CJK>
-B0E5 533B B0E5 <CJK>
-B0E6 4E95 B0E6 <CJK>
-B0E7 4EA5 B0E7 <CJK>
-B0E8 57DF B0E8 <CJK>
-B0E9 80B2 B0E9 <CJK>
-B0EA 90C1 B0EA <CJK>
-B0EB 78EF B0EB <CJK>
-B0EC 4E00 B0EC <CJK>
-B0ED 58F1 B0ED <CJK>
-B0EE 6EA2 B0EE <CJK>
-B0EF 9038 B0EF <CJK>
-B0F0 7A32 B0F0 <CJK>
-B0F1 8328 B0F1 <CJK>
-B0F2 828B B0F2 <CJK>
-B0F3 9C2F B0F3 <CJK>
-B0F4 5141 B0F4 <CJK>
-B0F5 5370 B0F5 <CJK>
-B0F6 54BD B0F6 <CJK>
-B0F7 54E1 B0F7 <CJK>
-B0F8 56E0 B0F8 <CJK>
-B0F9 59FB B0F9 <CJK>
-B0FA 5F15 B0FA <CJK>
-B0FB 98F2 B0FB <CJK>
-B0FC 6DEB B0FC <CJK>
-B0FD 80E4 B0FD <CJK>
-B0FE 852D B0FE <CJK>
-B1A1 9662 B1A1 <CJK>
-B1A2 9670 B1A2 <CJK>
-B1A3 96A0 B1A3 <CJK>
-B1A4 97FB B1A4 <CJK>
-B1A5 540B B1A5 <CJK>
-B1A6 53F3 B1A6 <CJK>
-B1A7 5B87 B1A7 <CJK>
-B1A8 70CF B1A8 <CJK>
-B1A9 7FBD B1A9 <CJK>
-B1AA 8FC2 B1AA <CJK>
-B1AB 96E8 B1AB <CJK>
-B1AC 536F B1AC <CJK>
-B1AD 9D5C B1AD <CJK>
-B1AE 7ABA B1AE <CJK>
-B1AF 4E11 B1AF <CJK>
-B1B0 7893 B1B0 <CJK>
-B1B1 81FC B1B1 <CJK>
-B1B2 6E26 B1B2 <CJK>
-B1B3 5618 B1B3 <CJK>
-B1B4 5504 B1B4 <CJK>
-B1B5 6B1D B1B5 <CJK>
-B1B6 851A B1B6 <CJK>
-B1B7 9C3B B1B7 <CJK>
-B1B8 59E5 B1B8 <CJK>
-B1B9 53A9 B1B9 <CJK>
-B1BA 6D66 B1BA <CJK>
-B1BB 74DC B1BB <CJK>
-B1BC 958F B1BC <CJK>
-B1BD 5642 B1BD <CJK>
-B1BE 4E91 B1BE <CJK>
-B1BF 904B B1BF <CJK>
-B1C0 96F2 B1C0 <CJK>
-B1C1 834F B1C1 <CJK>
-B1C2 990C B1C2 <CJK>
-B1C3 53E1 B1C3 <CJK>
-B1C4 55B6 B1C4 <CJK>
-B1C5 5B30 B1C5 <CJK>
-B1C6 5F71 B1C6 <CJK>
-B1C7 6620 B1C7 <CJK>
-B1C8 66F3 B1C8 <CJK>
-B1C9 6804 B1C9 <CJK>
-B1CA 6C38 B1CA <CJK>
-B1CB 6CF3 B1CB <CJK>
-B1CC 6D29 B1CC <CJK>
-B1CD 745B B1CD <CJK>
-B1CE 76C8 B1CE <CJK>
-B1CF 7A4E B1CF <CJK>
-B1D0 9834 B1D0 <CJK>
-B1D1 82F1 B1D1 <CJK>
-B1D2 885B B1D2 <CJK>
-B1D3 8A60 B1D3 <CJK>
-B1D4 92ED B1D4 <CJK>
-B1D5 6DB2 B1D5 <CJK>
-B1D6 75AB B1D6 <CJK>
-B1D7 76CA B1D7 <CJK>
-B1D8 99C5 B1D8 <CJK>
-B1D9 60A6 B1D9 <CJK>
-B1DA 8B01 B1DA <CJK>
-B1DB 8D8A B1DB <CJK>
-B1DC 95B2 B1DC <CJK>
-B1DD 698E B1DD <CJK>
-B1DE 53AD B1DE <CJK>
-B1DF 5186 B1DF <CJK>
-B1E0 5712 B1E0 <CJK>
-B1E1 5830 B1E1 <CJK>
-B1E2 5944 B1E2 <CJK>
-B1E3 5BB4 B1E3 <CJK>
-B1E4 5EF6 B1E4 <CJK>
-B1E5 6028 B1E5 <CJK>
-B1E6 63A9 B1E6 <CJK>
-B1E7 63F4 B1E7 <CJK>
-B1E8 6CBF B1E8 <CJK>
-B1E9 6F14 B1E9 <CJK>
-B1EA 708E B1EA <CJK>
-B1EB 7114 B1EB <CJK>
-B1EC 7159 B1EC <CJK>
-B1ED 71D5 B1ED <CJK>
-B1EE 733F B1EE <CJK>
-B1EF 7E01 B1EF <CJK>
-B1F0 8276 B1F0 <CJK>
-B1F1 82D1 B1F1 <CJK>
-B1F2 8597 B1F2 <CJK>
-B1F3 9060 B1F3 <CJK>
-B1F4 925B B1F4 <CJK>
-B1F5 9D1B B1F5 <CJK>
-B1F6 5869 B1F6 <CJK>
-B1F7 65BC B1F7 <CJK>
-B1F8 6C5A B1F8 <CJK>
-B1F9 7525 B1F9 <CJK>
-B1FA 51F9 B1FA <CJK>
-B1FB 592E B1FB <CJK>
-B1FC 5965 B1FC <CJK>
-B1FD 5F80 B1FD <CJK>
-B1FE 5FDC B1FE <CJK>
-B2A1 62BC B2A1 <CJK>
-B2A2 65FA B2A2 <CJK>
-B2A3 6A2A B2A3 <CJK>
-B2A4 6B27 B2A4 <CJK>
-B2A5 6BB4 B2A5 <CJK>
-B2A6 738B B2A6 <CJK>
-B2A7 7FC1 B2A7 <CJK>
-B2A8 8956 B2A8 <CJK>
-B2A9 9D2C B2A9 <CJK>
-B2AA 9D0E B2AA <CJK>
-B2AB 9EC4 B2AB <CJK>
-B2AC 5CA1 B2AC <CJK>
-B2AD 6C96 B2AD <CJK>
-B2AE 837B B2AE <CJK>
-B2AF 5104 B2AF <CJK>
-B2B0 5C4B B2B0 <CJK>
-B2B1 61B6 B2B1 <CJK>
-B2B2 81C6 B2B2 <CJK>
-B2B3 6876 B2B3 <CJK>
-B2B4 7261 B2B4 <CJK>
-B2B5 4E59 B2B5 <CJK>
-B2B6 4FFA B2B6 <CJK>
-B2B7 5378 B2B7 <CJK>
-B2B8 6069 B2B8 <CJK>
-B2B9 6E29 B2B9 <CJK>
-B2BA 7A4F B2BA <CJK>
-B2BB 97F3 B2BB <CJK>
-B2BC 4E0B B2BC <CJK>
-B2BD 5316 B2BD <CJK>
-B2BE 4EEE B2BE <CJK>
-B2BF 4F55 B2BF <CJK>
-B2C0 4F3D B2C0 <CJK>
-B2C1 4FA1 B2C1 <CJK>
-B2C2 4F73 B2C2 <CJK>
-B2C3 52A0 B2C3 <CJK>
-B2C4 53EF B2C4 <CJK>
-B2C5 5609 B2C5 <CJK>
-B2C6 590F B2C6 <CJK>
-B2C7 5AC1 B2C7 <CJK>
-B2C8 5BB6 B2C8 <CJK>
-B2C9 5BE1 B2C9 <CJK>
-B2CA 79D1 B2CA <CJK>
-B2CB 6687 B2CB <CJK>
-B2CC 679C B2CC <CJK>
-B2CD 67B6 B2CD <CJK>
-B2CE 6B4C B2CE <CJK>
-B2CF 6CB3 B2CF <CJK>
-B2D0 706B B2D0 <CJK>
-B2D1 73C2 B2D1 <CJK>
-B2D2 798D B2D2 <CJK>
-B2D3 79BE B2D3 <CJK>
-B2D4 7A3C B2D4 <CJK>
-B2D5 7B87 B2D5 <CJK>
-B2D6 82B1 B2D6 <CJK>
-B2D7 82DB B2D7 <CJK>
-B2D8 8304 B2D8 <CJK>
-B2D9 8377 B2D9 <CJK>
-B2DA 83EF B2DA <CJK>
-B2DB 83D3 B2DB <CJK>
-B2DC 8766 B2DC <CJK>
-B2DD 8AB2 B2DD <CJK>
-B2DE 5629 B2DE <CJK>
-B2DF 8CA8 B2DF <CJK>
-B2E0 8FE6 B2E0 <CJK>
-B2E1 904E B2E1 <CJK>
-B2E2 971E B2E2 <CJK>
-B2E3 868A B2E3 <CJK>
-B2E4 4FC4 B2E4 <CJK>
-B2E5 5CE8 B2E5 <CJK>
-B2E6 6211 B2E6 <CJK>
-B2E7 7259 B2E7 <CJK>
-B2E8 753B B2E8 <CJK>
-B2E9 81E5 B2E9 <CJK>
-B2EA 82BD B2EA <CJK>
-B2EB 86FE B2EB <CJK>
-B2EC 8CC0 B2EC <CJK>
-B2ED 96C5 B2ED <CJK>
-B2EE 9913 B2EE <CJK>
-B2EF 99D5 B2EF <CJK>
-B2F0 4ECB B2F0 <CJK>
-B2F1 4F1A B2F1 <CJK>
-B2F2 89E3 B2F2 <CJK>
-B2F3 56DE B2F3 <CJK>
-B2F4 584A B2F4 <CJK>
-B2F5 58CA B2F5 <CJK>
-B2F6 5EFB B2F6 <CJK>
-B2F7 5FEB B2F7 <CJK>
-B2F8 602A B2F8 <CJK>
-B2F9 6094 B2F9 <CJK>
-B2FA 6062 B2FA <CJK>
-B2FB 61D0 B2FB <CJK>
-B2FC 6212 B2FC <CJK>
-B2FD 62D0 B2FD <CJK>
-B2FE 6539 B2FE <CJK>
-B3A1 9B41 B3A1 <CJK>
-B3A2 6666 B3A2 <CJK>
-B3A3 68B0 B3A3 <CJK>
-B3A4 6D77 B3A4 <CJK>
-B3A5 7070 B3A5 <CJK>
-B3A6 754C B3A6 <CJK>
-B3A7 7686 B3A7 <CJK>
-B3A8 7D75 B3A8 <CJK>
-B3A9 82A5 B3A9 <CJK>
-B3AA 87F9 B3AA <CJK>
-B3AB 958B B3AB <CJK>
-B3AC 968E B3AC <CJK>
-B3AD 8C9D B3AD <CJK>
-B3AE 51F1 B3AE <CJK>
-B3AF 52BE B3AF <CJK>
-B3B0 5916 B3B0 <CJK>
-B3B1 54B3 B3B1 <CJK>
-B3B2 5BB3 B3B2 <CJK>
-B3B3 5D16 B3B3 <CJK>
-B3B4 6168 B3B4 <CJK>
-B3B5 6982 B3B5 <CJK>
-B3B6 6DAF B3B6 <CJK>
-B3B7 788D B3B7 <CJK>
-B3B8 84CB B3B8 <CJK>
-B3B9 8857 B3B9 <CJK>
-B3BA 8A72 B3BA <CJK>
-B3BB 93A7 B3BB <CJK>
-B3BC 9AB8 B3BC <CJK>
-B3BD 6D6C B3BD <CJK>
-B3BE 99A8 B3BE <CJK>
-B3BF 86D9 B3BF <CJK>
-B3C0 57A3 B3C0 <CJK>
-B3C1 67FF B3C1 <CJK>
-B3C2 86CE B3C2 <CJK>
-B3C3 920E B3C3 <CJK>
-B3C4 5283 B3C4 <CJK>
-B3C5 5687 B3C5 <CJK>
-B3C6 5404 B3C6 <CJK>
-B3C7 5ED3 B3C7 <CJK>
-B3C8 62E1 B3C8 <CJK>
-B3C9 64B9 B3C9 <CJK>
-B3CA 683C B3CA <CJK>
-B3CB 6838 B3CB <CJK>
-B3CC 6BBB B3CC <CJK>
-B3CD 7372 B3CD <CJK>
-B3CE 78BA B3CE <CJK>
-B3CF 7A6B B3CF <CJK>
-B3D0 899A B3D0 <CJK>
-B3D1 89D2 B3D1 <CJK>
-B3D2 8D6B B3D2 <CJK>
-B3D3 8F03 B3D3 <CJK>
-B3D4 90ED B3D4 <CJK>
-B3D5 95A3 B3D5 <CJK>
-B3D6 9694 B3D6 <CJK>
-B3D7 9769 B3D7 <CJK>
-B3D8 5B66 B3D8 <CJK>
-B3D9 5CB3 B3D9 <CJK>
-B3DA 697D B3DA <CJK>
-B3DB 984D B3DB <CJK>
-B3DC 984E B3DC <CJK>
-B3DD 639B B3DD <CJK>
-B3DE 7B20 B3DE <CJK>
-B3DF 6A2B B3DF <CJK>
-B3E0 6A7F B3E0 <CJK>
-B3E1 68B6 B3E1 <CJK>
-B3E2 9C0D B3E2 <CJK>
-B3E3 6F5F B3E3 <CJK>
-B3E4 5272 B3E4 <CJK>
-B3E5 559D B3E5 <CJK>
-B3E6 6070 B3E6 <CJK>
-B3E7 62EC B3E7 <CJK>
-B3E8 6D3B B3E8 <CJK>
-B3E9 6E07 B3E9 <CJK>
-B3EA 6ED1 B3EA <CJK>
-B3EB 845B B3EB <CJK>
-B3EC 8910 B3EC <CJK>
-B3ED 8F44 B3ED <CJK>
-B3EE 4E14 B3EE <CJK>
-B3EF 9C39 B3EF <CJK>
-B3F0 53F6 B3F0 <CJK>
-B3F1 691B B3F1 <CJK>
-B3F2 6A3A B3F2 <CJK>
-B3F3 9784 B3F3 <CJK>
-B3F4 682A B3F4 <CJK>
-B3F5 515C B3F5 <CJK>
-B3F6 7AC3 B3F6 <CJK>
-B3F7 84B2 B3F7 <CJK>
-B3F8 91DC B3F8 <CJK>
-B3F9 938C B3F9 <CJK>
-B3FA 565B B3FA <CJK>
-B3FB 9D28 B3FB <CJK>
-B3FC 6822 B3FC <CJK>
-B3FD 8305 B3FD <CJK>
-B3FE 8431 B3FE <CJK>
-B4A1 7CA5 B4A1 <CJK>
-B4A2 5208 B4A2 <CJK>
-B4A3 82C5 B4A3 <CJK>
-B4A4 74E6 B4A4 <CJK>
-B4A5 4E7E B4A5 <CJK>
-B4A6 4F83 B4A6 <CJK>
-B4A7 51A0 B4A7 <CJK>
-B4A8 5BD2 B4A8 <CJK>
-B4A9 520A B4A9 <CJK>
-B4AA 52D8 B4AA <CJK>
-B4AB 52E7 B4AB <CJK>
-B4AC 5DFB B4AC <CJK>
-B4AD 559A B4AD <CJK>
-B4AE 582A B4AE <CJK>
-B4AF 59E6 B4AF <CJK>
-B4B0 5B8C B4B0 <CJK>
-B4B1 5B98 B4B1 <CJK>
-B4B2 5BDB B4B2 <CJK>
-B4B3 5E72 B4B3 <CJK>
-B4B4 5E79 B4B4 <CJK>
-B4B5 60A3 B4B5 <CJK>
-B4B6 611F B4B6 <CJK>
-B4B7 6163 B4B7 <CJK>
-B4B8 61BE B4B8 <CJK>
-B4B9 63DB B4B9 <CJK>
-B4BA 6562 B4BA <CJK>
-B4BB 67D1 B4BB <CJK>
-B4BC 6853 B4BC <CJK>
-B4BD 68FA B4BD <CJK>
-B4BE 6B3E B4BE <CJK>
-B4BF 6B53 B4BF <CJK>
-B4C0 6C57 B4C0 <CJK>
-B4C1 6F22 B4C1 <CJK>
-B4C2 6F97 B4C2 <CJK>
-B4C3 6F45 B4C3 <CJK>
-B4C4 74B0 B4C4 <CJK>
-B4C5 7518 B4C5 <CJK>
-B4C6 76E3 B4C6 <CJK>
-B4C7 770B B4C7 <CJK>
-B4C8 7AFF B4C8 <CJK>
-B4C9 7BA1 B4C9 <CJK>
-B4CA 7C21 B4CA <CJK>
-B4CB 7DE9 B4CB <CJK>
-B4CC 7F36 B4CC <CJK>
-B4CD 7FF0 B4CD <CJK>
-B4CE 809D B4CE <CJK>
-B4CF 8266 B4CF <CJK>
-B4D0 839E B4D0 <CJK>
-B4D1 89B3 B4D1 <CJK>
-B4D2 8ACC B4D2 <CJK>
-B4D3 8CAB B4D3 <CJK>
-B4D4 9084 B4D4 <CJK>
-B4D5 9451 B4D5 <CJK>
-B4D6 9593 B4D6 <CJK>
-B4D7 9591 B4D7 <CJK>
-B4D8 95A2 B4D8 <CJK>
-B4D9 9665 B4D9 <CJK>
-B4DA 97D3 B4DA <CJK>
-B4DB 9928 B4DB <CJK>
-B4DC 8218 B4DC <CJK>
-B4DD 4E38 B4DD <CJK>
-B4DE 542B B4DE <CJK>
-B4DF 5CB8 B4DF <CJK>
-B4E0 5DCC B4E0 <CJK>
-B4E1 73A9 B4E1 <CJK>
-B4E2 764C B4E2 <CJK>
-B4E3 773C B4E3 <CJK>
-B4E4 5CA9 B4E4 <CJK>
-B4E5 7FEB B4E5 <CJK>
-B4E6 8D0B B4E6 <CJK>
-B4E7 96C1 B4E7 <CJK>
-B4E8 9811 B4E8 <CJK>
-B4E9 9854 B4E9 <CJK>
-B4EA 9858 B4EA <CJK>
-B4EB 4F01 B4EB <CJK>
-B4EC 4F0E B4EC <CJK>
-B4ED 5371 B4ED <CJK>
-B4EE 559C B4EE <CJK>
-B4EF 5668 B4EF <CJK>
-B4F0 57FA B4F0 <CJK>
-B4F1 5947 B4F1 <CJK>
-B4F2 5B09 B4F2 <CJK>
-B4F3 5BC4 B4F3 <CJK>
-B4F4 5C90 B4F4 <CJK>
-B4F5 5E0C B4F5 <CJK>
-B4F6 5E7E B4F6 <CJK>
-B4F7 5FCC B4F7 <CJK>
-B4F8 63EE B4F8 <CJK>
-B4F9 673A B4F9 <CJK>
-B4FA 65D7 B4FA <CJK>
-B4FB 65E2 B4FB <CJK>
-B4FC 671F B4FC <CJK>
-B4FD 68CB B4FD <CJK>
-B4FE 68C4 B4FE <CJK>
-B5A1 6A5F B5A1 <CJK>
-B5A2 5E30 B5A2 <CJK>
-B5A3 6BC5 B5A3 <CJK>
-B5A4 6C17 B5A4 <CJK>
-B5A5 6C7D B5A5 <CJK>
-B5A6 757F B5A6 <CJK>
-B5A7 7948 B5A7 <CJK>
-B5A8 5B63 B5A8 <CJK>
-B5A9 7A00 B5A9 <CJK>
-B5AA 7D00 B5AA <CJK>
-B5AB 5FBD B5AB <CJK>
-B5AC 898F B5AC <CJK>
-B5AD 8A18 B5AD <CJK>
-B5AE 8CB4 B5AE <CJK>
-B5AF 8D77 B5AF <CJK>
-B5B0 8ECC B5B0 <CJK>
-B5B1 8F1D B5B1 <CJK>
-B5B2 98E2 B5B2 <CJK>
-B5B3 9A0E B5B3 <CJK>
-B5B4 9B3C B5B4 <CJK>
-B5B5 4E80 B5B5 <CJK>
-B5B6 507D B5B6 <CJK>
-B5B7 5100 B5B7 <CJK>
-B5B8 5993 B5B8 <CJK>
-B5B9 5B9C B5B9 <CJK>
-B5BA 622F B5BA <CJK>
-B5BB 6280 B5BB <CJK>
-B5BC 64EC B5BC <CJK>
-B5BD 6B3A B5BD <CJK>
-B5BE 72A0 B5BE <CJK>
-B5BF 7591 B5BF <CJK>
-B5C0 7947 B5C0 <CJK>
-B5C1 7FA9 B5C1 <CJK>
-B5C2 87FB B5C2 <CJK>
-B5C3 8ABC B5C3 <CJK>
-B5C4 8B70 B5C4 <CJK>
-B5C5 63AC B5C5 <CJK>
-B5C6 83CA B5C6 <CJK>
-B5C7 97A0 B5C7 <CJK>
-B5C8 5409 B5C8 <CJK>
-B5C9 5403 B5C9 <CJK>
-B5CA 55AB B5CA <CJK>
-B5CB 6854 B5CB <CJK>
-B5CC 6A58 B5CC <CJK>
-B5CD 8A70 B5CD <CJK>
-B5CE 7827 B5CE <CJK>
-B5CF 6775 B5CF <CJK>
-B5D0 9ECD B5D0 <CJK>
-B5D1 5374 B5D1 <CJK>
-B5D2 5BA2 B5D2 <CJK>
-B5D3 811A B5D3 <CJK>
-B5D4 8650 B5D4 <CJK>
-B5D5 9006 B5D5 <CJK>
-B5D6 4E18 B5D6 <CJK>
-B5D7 4E45 B5D7 <CJK>
-B5D8 4EC7 B5D8 <CJK>
-B5D9 4F11 B5D9 <CJK>
-B5DA 53CA B5DA <CJK>
-B5DB 5438 B5DB <CJK>
-B5DC 5BAE B5DC <CJK>
-B5DD 5F13 B5DD <CJK>
-B5DE 6025 B5DE <CJK>
-B5DF 6551 B5DF <CJK>
-B5E0 673D B5E0 <CJK>
-B5E1 6C42 B5E1 <CJK>
-B5E2 6C72 B5E2 <CJK>
-B5E3 6CE3 B5E3 <CJK>
-B5E4 7078 B5E4 <CJK>
-B5E5 7403 B5E5 <CJK>
-B5E6 7A76 B5E6 <CJK>
-B5E7 7AAE B5E7 <CJK>
-B5E8 7B08 B5E8 <CJK>
-B5E9 7D1A B5E9 <CJK>
-B5EA 7CFE B5EA <CJK>
-B5EB 7D66 B5EB <CJK>
-B5EC 65E7 B5EC <CJK>
-B5ED 725B B5ED <CJK>
-B5EE 53BB B5EE <CJK>
-B5EF 5C45 B5EF <CJK>
-B5F0 5DE8 B5F0 <CJK>
-B5F1 62D2 B5F1 <CJK>
-B5F2 62E0 B5F2 <CJK>
-B5F3 6319 B5F3 <CJK>
-B5F4 6E20 B5F4 <CJK>
-B5F5 865A B5F5 <CJK>
-B5F6 8A31 B5F6 <CJK>
-B5F7 8DDD B5F7 <CJK>
-B5F8 92F8 B5F8 <CJK>
-B5F9 6F01 B5F9 <CJK>
-B5FA 79A6 B5FA <CJK>
-B5FB 9B5A B5FB <CJK>
-B5FC 4EA8 B5FC <CJK>
-B5FD 4EAB B5FD <CJK>
-B5FE 4EAC B5FE <CJK>
-B6A1 4F9B B6A1 <CJK>
-B6A2 4FA0 B6A2 <CJK>
-B6A3 50D1 B6A3 <CJK>
-B6A4 5147 B6A4 <CJK>
-B6A5 7AF6 B6A5 <CJK>
-B6A6 5171 B6A6 <CJK>
-B6A7 51F6 B6A7 <CJK>
-B6A8 5354 B6A8 <CJK>
-B6A9 5321 B6A9 <CJK>
-B6AA 537F B6AA <CJK>
-B6AB 53EB B6AB <CJK>
-B6AC 55AC B6AC <CJK>
-B6AD 5883 B6AD <CJK>
-B6AE 5CE1 B6AE <CJK>
-B6AF 5F37 B6AF <CJK>
-B6B0 5F4A B6B0 <CJK>
-B6B1 602F B6B1 <CJK>
-B6B2 6050 B6B2 <CJK>
-B6B3 606D B6B3 <CJK>
-B6B4 631F B6B4 <CJK>
-B6B5 6559 B6B5 <CJK>
-B6B6 6A4B B6B6 <CJK>
-B6B7 6CC1 B6B7 <CJK>
-B6B8 72C2 B6B8 <CJK>
-B6B9 72ED B6B9 <CJK>
-B6BA 77EF B6BA <CJK>
-B6BB 80F8 B6BB <CJK>
-B6BC 8105 B6BC <CJK>
-B6BD 8208 B6BD <CJK>
-B6BE 854E B6BE <CJK>
-B6BF 90F7 B6BF <CJK>
-B6C0 93E1 B6C0 <CJK>
-B6C1 97FF B6C1 <CJK>
-B6C2 9957 B6C2 <CJK>
-B6C3 9A5A B6C3 <CJK>
-B6C4 4EF0 B6C4 <CJK>
-B6C5 51DD B6C5 <CJK>
-B6C6 5C2D B6C6 <CJK>
-B6C7 6681 B6C7 <CJK>
-B6C8 696D B6C8 <CJK>
-B6C9 5C40 B6C9 <CJK>
-B6CA 66F2 B6CA <CJK>
-B6CB 6975 B6CB <CJK>
-B6CC 7389 B6CC <CJK>
-B6CD 6850 B6CD <CJK>
-B6CE 7C81 B6CE <CJK>
-B6CF 50C5 B6CF <CJK>
-B6D0 52E4 B6D0 <CJK>
-B6D1 5747 B6D1 <CJK>
-B6D2 5DFE B6D2 <CJK>
-B6D3 9326 B6D3 <CJK>
-B6D4 65A4 B6D4 <CJK>
-B6D5 6B23 B6D5 <CJK>
-B6D6 6B3D B6D6 <CJK>
-B6D7 7434 B6D7 <CJK>
-B6D8 7981 B6D8 <CJK>
-B6D9 79BD B6D9 <CJK>
-B6DA 7B4B B6DA <CJK>
-B6DB 7DCA B6DB <CJK>
-B6DC 82B9 B6DC <CJK>
-B6DD 83CC B6DD <CJK>
-B6DE 887F B6DE <CJK>
-B6DF 895F B6DF <CJK>
-B6E0 8B39 B6E0 <CJK>
-B6E1 8FD1 B6E1 <CJK>
-B6E2 91D1 B6E2 <CJK>
-B6E3 541F B6E3 <CJK>
-B6E4 9280 B6E4 <CJK>
-B6E5 4E5D B6E5 <CJK>
-B6E6 5036 B6E6 <CJK>
-B6E7 53E5 B6E7 <CJK>
-B6E8 533A B6E8 <CJK>
-B6E9 72D7 B6E9 <CJK>
-B6EA 7396 B6EA <CJK>
-B6EB 77E9 B6EB <CJK>
-B6EC 82E6 B6EC <CJK>
-B6ED 8EAF B6ED <CJK>
-B6EE 99C6 B6EE <CJK>
-B6EF 99C8 B6EF <CJK>
-B6F0 99D2 B6F0 <CJK>
-B6F1 5177 B6F1 <CJK>
-B6F2 611A B6F2 <CJK>
-B6F3 865E B6F3 <CJK>
-B6F4 55B0 B6F4 <CJK>
-B6F5 7A7A B6F5 <CJK>
-B6F6 5076 B6F6 <CJK>
-B6F7 5BD3 B6F7 <CJK>
-B6F8 9047 B6F8 <CJK>
-B6F9 9685 B6F9 <CJK>
-B6FA 4E32 B6FA <CJK>
-B6FB 6ADB B6FB <CJK>
-B6FC 91E7 B6FC <CJK>
-B6FD 5C51 B6FD <CJK>
-B6FE 5C48 B6FE <CJK>
-B7A1 6398 B7A1 <CJK>
-B7A2 7A9F B7A2 <CJK>
-B7A3 6C93 B7A3 <CJK>
-B7A4 9774 B7A4 <CJK>
-B7A5 8F61 B7A5 <CJK>
-B7A6 7AAA B7A6 <CJK>
-B7A7 718A B7A7 <CJK>
-B7A8 9688 B7A8 <CJK>
-B7A9 7C82 B7A9 <CJK>
-B7AA 6817 B7AA <CJK>
-B7AB 7E70 B7AB <CJK>
-B7AC 6851 B7AC <CJK>
-B7AD 936C B7AD <CJK>
-B7AE 52F2 B7AE <CJK>
-B7AF 541B B7AF <CJK>
-B7B0 85AB B7B0 <CJK>
-B7B1 8A13 B7B1 <CJK>
-B7B2 7FA4 B7B2 <CJK>
-B7B3 8ECD B7B3 <CJK>
-B7B4 90E1 B7B4 <CJK>
-B7B5 5366 B7B5 <CJK>
-B7B6 8888 B7B6 <CJK>
-B7B7 7941 B7B7 <CJK>
-B7B8 4FC2 B7B8 <CJK>
-B7B9 50BE B7B9 <CJK>
-B7BA 5211 B7BA <CJK>
-B7BB 5144 B7BB <CJK>
-B7BC 5553 B7BC <CJK>
-B7BD 572D B7BD <CJK>
-B7BE 73EA B7BE <CJK>
-B7BF 578B B7BF <CJK>
-B7C0 5951 B7C0 <CJK>
-B7C1 5F62 B7C1 <CJK>
-B7C2 5F84 B7C2 <CJK>
-B7C3 6075 B7C3 <CJK>
-B7C4 6176 B7C4 <CJK>
-B7C5 6167 B7C5 <CJK>
-B7C6 61A9 B7C6 <CJK>
-B7C7 63B2 B7C7 <CJK>
-B7C8 643A B7C8 <CJK>
-B7C9 656C B7C9 <CJK>
-B7CA 666F B7CA <CJK>
-B7CB 6842 B7CB <CJK>
-B7CC 6E13 B7CC <CJK>
-B7CD 7566 B7CD <CJK>
-B7CE 7A3D B7CE <CJK>
-B7CF 7CFB B7CF <CJK>
-B7D0 7D4C B7D0 <CJK>
-B7D1 7D99 B7D1 <CJK>
-B7D2 7E4B B7D2 <CJK>
-B7D3 7F6B B7D3 <CJK>
-B7D4 830E B7D4 <CJK>
-B7D5 834A B7D5 <CJK>
-B7D6 86CD B7D6 <CJK>
-B7D7 8A08 B7D7 <CJK>
-B7D8 8A63 B7D8 <CJK>
-B7D9 8B66 B7D9 <CJK>
-B7DA 8EFD B7DA <CJK>
-B7DB 981A B7DB <CJK>
-B7DC 9D8F B7DC <CJK>
-B7DD 82B8 B7DD <CJK>
-B7DE 8FCE B7DE <CJK>
-B7DF 9BE8 B7DF <CJK>
-B7E0 5287 B7E0 <CJK>
-B7E1 621F B7E1 <CJK>
-B7E2 6483 B7E2 <CJK>
-B7E3 6FC0 B7E3 <CJK>
-B7E4 9699 B7E4 <CJK>
-B7E5 6841 B7E5 <CJK>
-B7E6 5091 B7E6 <CJK>
-B7E7 6B20 B7E7 <CJK>
-B7E8 6C7A B7E8 <CJK>
-B7E9 6F54 B7E9 <CJK>
-B7EA 7A74 B7EA <CJK>
-B7EB 7D50 B7EB <CJK>
-B7EC 8840 B7EC <CJK>
-B7ED 8A23 B7ED <CJK>
-B7EE 6708 B7EE <CJK>
-B7EF 4EF6 B7EF <CJK>
-B7F0 5039 B7F0 <CJK>
-B7F1 5026 B7F1 <CJK>
-B7F2 5065 B7F2 <CJK>
-B7F3 517C B7F3 <CJK>
-B7F4 5238 B7F4 <CJK>
-B7F5 5263 B7F5 <CJK>
-B7F6 55A7 B7F6 <CJK>
-B7F7 570F B7F7 <CJK>
-B7F8 5805 B7F8 <CJK>
-B7F9 5ACC B7F9 <CJK>
-B7FA 5EFA B7FA <CJK>
-B7FB 61B2 B7FB <CJK>
-B7FC 61F8 B7FC <CJK>
-B7FD 62F3 B7FD <CJK>
-B7FE 6372 B7FE <CJK>
-B8A1 691C B8A1 <CJK>
-B8A2 6A29 B8A2 <CJK>
-B8A3 727D B8A3 <CJK>
-B8A4 72AC B8A4 <CJK>
-B8A5 732E B8A5 <CJK>
-B8A6 7814 B8A6 <CJK>
-B8A7 786F B8A7 <CJK>
-B8A8 7D79 B8A8 <CJK>
-B8A9 770C B8A9 <CJK>
-B8AA 80A9 B8AA <CJK>
-B8AB 898B B8AB <CJK>
-B8AC 8B19 B8AC <CJK>
-B8AD 8CE2 B8AD <CJK>
-B8AE 8ED2 B8AE <CJK>
-B8AF 9063 B8AF <CJK>
-B8B0 9375 B8B0 <CJK>
-B8B1 967A B8B1 <CJK>
-B8B2 9855 B8B2 <CJK>
-B8B3 9A13 B8B3 <CJK>
-B8B4 9E78 B8B4 <CJK>
-B8B5 5143 B8B5 <CJK>
-B8B6 539F B8B6 <CJK>
-B8B7 53B3 B8B7 <CJK>
-B8B8 5E7B B8B8 <CJK>
-B8B9 5F26 B8B9 <CJK>
-B8BA 6E1B B8BA <CJK>
-B8BB 6E90 B8BB <CJK>
-B8BC 7384 B8BC <CJK>
-B8BD 73FE B8BD <CJK>
-B8BE 7D43 B8BE <CJK>
-B8BF 8237 B8BF <CJK>
-B8C0 8A00 B8C0 <CJK>
-B8C1 8AFA B8C1 <CJK>
-B8C2 9650 B8C2 <CJK>
-B8C3 4E4E B8C3 <CJK>
-B8C4 500B B8C4 <CJK>
-B8C5 53E4 B8C5 <CJK>
-B8C6 547C B8C6 <CJK>
-B8C7 56FA B8C7 <CJK>
-B8C8 59D1 B8C8 <CJK>
-B8C9 5B64 B8C9 <CJK>
-B8CA 5DF1 B8CA <CJK>
-B8CB 5EAB B8CB <CJK>
-B8CC 5F27 B8CC <CJK>
-B8CD 6238 B8CD <CJK>
-B8CE 6545 B8CE <CJK>
-B8CF 67AF B8CF <CJK>
-B8D0 6E56 B8D0 <CJK>
-B8D1 72D0 B8D1 <CJK>
-B8D2 7CCA B8D2 <CJK>
-B8D3 88B4 B8D3 <CJK>
-B8D4 80A1 B8D4 <CJK>
-B8D5 80E1 B8D5 <CJK>
-B8D6 83F0 B8D6 <CJK>
-B8D7 864E B8D7 <CJK>
-B8D8 8A87 B8D8 <CJK>
-B8D9 8DE8 B8D9 <CJK>
-B8DA 9237 B8DA <CJK>
-B8DB 96C7 B8DB <CJK>
-B8DC 9867 B8DC <CJK>
-B8DD 9F13 B8DD <CJK>
-B8DE 4E94 B8DE <CJK>
-B8DF 4E92 B8DF <CJK>
-B8E0 4F0D B8E0 <CJK>
-B8E1 5348 B8E1 <CJK>
-B8E2 5449 B8E2 <CJK>
-B8E3 543E B8E3 <CJK>
-B8E4 5A2F B8E4 <CJK>
-B8E5 5F8C B8E5 <CJK>
-B8E6 5FA1 B8E6 <CJK>
-B8E7 609F B8E7 <CJK>
-B8E8 68A7 B8E8 <CJK>
-B8E9 6A8E B8E9 <CJK>
-B8EA 745A B8EA <CJK>
-B8EB 7881 B8EB <CJK>
-B8EC 8A9E B8EC <CJK>
-B8ED 8AA4 B8ED <CJK>
-B8EE 8B77 B8EE <CJK>
-B8EF 9190 B8EF <CJK>
-B8F0 4E5E B8F0 <CJK>
-B8F1 9BC9 B8F1 <CJK>
-B8F2 4EA4 B8F2 <CJK>
-B8F3 4F7C B8F3 <CJK>
-B8F4 4FAF B8F4 <CJK>
-B8F5 5019 B8F5 <CJK>
-B8F6 5016 B8F6 <CJK>
-B8F7 5149 B8F7 <CJK>
-B8F8 516C B8F8 <CJK>
-B8F9 529F B8F9 <CJK>
-B8FA 52B9 B8FA <CJK>
-B8FB 52FE B8FB <CJK>
-B8FC 539A B8FC <CJK>
-B8FD 53E3 B8FD <CJK>
-B8FE 5411 B8FE <CJK>
-B9A1 540E B9A1 <CJK>
-B9A2 5589 B9A2 <CJK>
-B9A3 5751 B9A3 <CJK>
-B9A4 57A2 B9A4 <CJK>
-B9A5 597D B9A5 <CJK>
-B9A6 5B54 B9A6 <CJK>
-B9A7 5B5D B9A7 <CJK>
-B9A8 5B8F B9A8 <CJK>
-B9A9 5DE5 B9A9 <CJK>
-B9AA 5DE7 B9AA <CJK>
-B9AB 5DF7 B9AB <CJK>
-B9AC 5E78 B9AC <CJK>
-B9AD 5E83 B9AD <CJK>
-B9AE 5E9A B9AE <CJK>
-B9AF 5EB7 B9AF <CJK>
-B9B0 5F18 B9B0 <CJK>
-B9B1 6052 B9B1 <CJK>
-B9B2 614C B9B2 <CJK>
-B9B3 6297 B9B3 <CJK>
-B9B4 62D8 B9B4 <CJK>
-B9B5 63A7 B9B5 <CJK>
-B9B6 653B B9B6 <CJK>
-B9B7 6602 B9B7 <CJK>
-B9B8 6643 B9B8 <CJK>
-B9B9 66F4 B9B9 <CJK>
-B9BA 676D B9BA <CJK>
-B9BB 6821 B9BB <CJK>
-B9BC 6897 B9BC <CJK>
-B9BD 69CB B9BD <CJK>
-B9BE 6C5F B9BE <CJK>
-B9BF 6D2A B9BF <CJK>
-B9C0 6D69 B9C0 <CJK>
-B9C1 6E2F B9C1 <CJK>
-B9C2 6E9D B9C2 <CJK>
-B9C3 7532 B9C3 <CJK>
-B9C4 7687 B9C4 <CJK>
-B9C5 786C B9C5 <CJK>
-B9C6 7A3F B9C6 <CJK>
-B9C7 7CE0 B9C7 <CJK>
-B9C8 7D05 B9C8 <CJK>
-B9C9 7D18 B9C9 <CJK>
-B9CA 7D5E B9CA <CJK>
-B9CB 7DB1 B9CB <CJK>
-B9CC 8015 B9CC <CJK>
-B9CD 8003 B9CD <CJK>
-B9CE 80AF B9CE <CJK>
-B9CF 80B1 B9CF <CJK>
-B9D0 8154 B9D0 <CJK>
-B9D1 818F B9D1 <CJK>
-B9D2 822A B9D2 <CJK>
-B9D3 8352 B9D3 <CJK>
-B9D4 884C B9D4 <CJK>
-B9D5 8861 B9D5 <CJK>
-B9D6 8B1B B9D6 <CJK>
-B9D7 8CA2 B9D7 <CJK>
-B9D8 8CFC B9D8 <CJK>
-B9D9 90CA B9D9 <CJK>
-B9DA 9175 B9DA <CJK>
-B9DB 9271 B9DB <CJK>
-B9DC 783F B9DC <CJK>
-B9DD 92FC B9DD <CJK>
-B9DE 95A4 B9DE <CJK>
-B9DF 964D B9DF <CJK>
-B9E0 9805 B9E0 <CJK>
-B9E1 9999 B9E1 <CJK>
-B9E2 9AD8 B9E2 <CJK>
-B9E3 9D3B B9E3 <CJK>
-B9E4 525B B9E4 <CJK>
-B9E5 52AB B9E5 <CJK>
-B9E6 53F7 B9E6 <CJK>
-B9E7 5408 B9E7 <CJK>
-B9E8 58D5 B9E8 <CJK>
-B9E9 62F7 B9E9 <CJK>
-B9EA 6FE0 B9EA <CJK>
-B9EB 8C6A B9EB <CJK>
-B9EC 8F5F B9EC <CJK>
-B9ED 9EB9 B9ED <CJK>
-B9EE 514B B9EE <CJK>
-B9EF 523B B9EF <CJK>
-B9F0 544A B9F0 <CJK>
-B9F1 56FD B9F1 <CJK>
-B9F2 7A40 B9F2 <CJK>
-B9F3 9177 B9F3 <CJK>
-B9F4 9D60 B9F4 <CJK>
-B9F5 9ED2 B9F5 <CJK>
-B9F6 7344 B9F6 <CJK>
-B9F7 6F09 B9F7 <CJK>
-B9F8 8170 B9F8 <CJK>
-B9F9 7511 B9F9 <CJK>
-B9FA 5FFD B9FA <CJK>
-B9FB 60DA B9FB <CJK>
-B9FC 9AA8 B9FC <CJK>
-B9FD 72DB B9FD <CJK>
-B9FE 8FBC B9FE <CJK>
-BAA1 6B64 BAA1 <CJK>
-BAA2 9803 BAA2 <CJK>
-BAA3 4ECA BAA3 <CJK>
-BAA4 56F0 BAA4 <CJK>
-BAA5 5764 BAA5 <CJK>
-BAA6 58BE BAA6 <CJK>
-BAA7 5A5A BAA7 <CJK>
-BAA8 6068 BAA8 <CJK>
-BAA9 61C7 BAA9 <CJK>
-BAAA 660F BAAA <CJK>
-BAAB 6606 BAAB <CJK>
-BAAC 6839 BAAC <CJK>
-BAAD 68B1 BAAD <CJK>
-BAAE 6DF7 BAAE <CJK>
-BAAF 75D5 BAAF <CJK>
-BAB0 7D3A BAB0 <CJK>
-BAB1 826E BAB1 <CJK>
-BAB2 9B42 BAB2 <CJK>
-BAB3 4E9B BAB3 <CJK>
-BAB4 4F50 BAB4 <CJK>
-BAB5 53C9 BAB5 <CJK>
-BAB6 5506 BAB6 <CJK>
-BAB7 5D6F BAB7 <CJK>
-BAB8 5DE6 BAB8 <CJK>
-BAB9 5DEE BAB9 <CJK>
-BABA 67FB BABA <CJK>
-BABB 6C99 BABB <CJK>
-BABC 7473 BABC <CJK>
-BABD 7802 BABD <CJK>
-BABE 8A50 BABE <CJK>
-BABF 9396 BABF <CJK>
-BAC0 88DF BAC0 <CJK>
-BAC1 5750 BAC1 <CJK>
-BAC2 5EA7 BAC2 <CJK>
-BAC3 632B BAC3 <CJK>
-BAC4 50B5 BAC4 <CJK>
-BAC5 50AC BAC5 <CJK>
-BAC6 518D BAC6 <CJK>
-BAC7 6700 BAC7 <CJK>
-BAC8 54C9 BAC8 <CJK>
-BAC9 585E BAC9 <CJK>
-BACA 59BB BACA <CJK>
-BACB 5BB0 BACB <CJK>
-BACC 5F69 BACC <CJK>
-BACD 624D BACD <CJK>
-BACE 63A1 BACE <CJK>
-BACF 683D BACF <CJK>
-BAD0 6B73 BAD0 <CJK>
-BAD1 6E08 BAD1 <CJK>
-BAD2 707D BAD2 <CJK>
-BAD3 91C7 BAD3 <CJK>
-BAD4 7280 BAD4 <CJK>
-BAD5 7815 BAD5 <CJK>
-BAD6 7826 BAD6 <CJK>
-BAD7 796D BAD7 <CJK>
-BAD8 658E BAD8 <CJK>
-BAD9 7D30 BAD9 <CJK>
-BADA 83DC BADA <CJK>
-BADB 88C1 BADB <CJK>
-BADC 8F09 BADC <CJK>
-BADD 969B BADD <CJK>
-BADE 5264 BADE <CJK>
-BADF 5728 BADF <CJK>
-BAE0 6750 BAE0 <CJK>
-BAE1 7F6A BAE1 <CJK>
-BAE2 8CA1 BAE2 <CJK>
-BAE3 51B4 BAE3 <CJK>
-BAE4 5742 BAE4 <CJK>
-BAE5 962A BAE5 <CJK>
-BAE6 583A BAE6 <CJK>
-BAE7 698A BAE7 <CJK>
-BAE8 80B4 BAE8 <CJK>
-BAE9 54B2 BAE9 <CJK>
-BAEA 5D0E BAEA <CJK>
-BAEB 57FC BAEB <CJK>
-BAEC 7895 BAEC <CJK>
-BAED 9DFA BAED <CJK>
-BAEE 4F5C BAEE <CJK>
-BAEF 524A BAEF <CJK>
-BAF0 548B BAF0 <CJK>
-BAF1 643E BAF1 <CJK>
-BAF2 6628 BAF2 <CJK>
-BAF3 6714 BAF3 <CJK>
-BAF4 67F5 BAF4 <CJK>
-BAF5 7A84 BAF5 <CJK>
-BAF6 7B56 BAF6 <CJK>
-BAF7 7D22 BAF7 <CJK>
-BAF8 932F BAF8 <CJK>
-BAF9 685C BAF9 <CJK>
-BAFA 9BAD BAFA <CJK>
-BAFB 7B39 BAFB <CJK>
-BAFC 5319 BAFC <CJK>
-BAFD 518A BAFD <CJK>
-BAFE 5237 BAFE <CJK>
-BBA1 5BDF BBA1 <CJK>
-BBA2 62F6 BBA2 <CJK>
-BBA3 64AE BBA3 <CJK>
-BBA4 64E6 BBA4 <CJK>
-BBA5 672D BBA5 <CJK>
-BBA6 6BBA BBA6 <CJK>
-BBA7 85A9 BBA7 <CJK>
-BBA8 96D1 BBA8 <CJK>
-BBA9 7690 BBA9 <CJK>
-BBAA 9BD6 BBAA <CJK>
-BBAB 634C BBAB <CJK>
-BBAC 9306 BBAC <CJK>
-BBAD 9BAB BBAD <CJK>
-BBAE 76BF BBAE <CJK>
-BBAF 6652 BBAF <CJK>
-BBB0 4E09 BBB0 <CJK>
-BBB1 5098 BBB1 <CJK>
-BBB2 53C2 BBB2 <CJK>
-BBB3 5C71 BBB3 <CJK>
-BBB4 60E8 BBB4 <CJK>
-BBB5 6492 BBB5 <CJK>
-BBB6 6563 BBB6 <CJK>
-BBB7 685F BBB7 <CJK>
-BBB8 71E6 BBB8 <CJK>
-BBB9 73CA BBB9 <CJK>
-BBBA 7523 BBBA <CJK>
-BBBB 7B97 BBBB <CJK>
-BBBC 7E82 BBBC <CJK>
-BBBD 8695 BBBD <CJK>
-BBBE 8B83 BBBE <CJK>
-BBBF 8CDB BBBF <CJK>
-BBC0 9178 BBC0 <CJK>
-BBC1 9910 BBC1 <CJK>
-BBC2 65AC BBC2 <CJK>
-BBC3 66AB BBC3 <CJK>
-BBC4 6B8B BBC4 <CJK>
-BBC5 4ED5 BBC5 <CJK>
-BBC6 4ED4 BBC6 <CJK>
-BBC7 4F3A BBC7 <CJK>
-BBC8 4F7F BBC8 <CJK>
-BBC9 523A BBC9 <CJK>
-BBCA 53F8 BBCA <CJK>
-BBCB 53F2 BBCB <CJK>
-BBCC 55E3 BBCC <CJK>
-BBCD 56DB BBCD <CJK>
-BBCE 58EB BBCE <CJK>
-BBCF 59CB BBCF <CJK>
-BBD0 59C9 BBD0 <CJK>
-BBD1 59FF BBD1 <CJK>
-BBD2 5B50 BBD2 <CJK>
-BBD3 5C4D BBD3 <CJK>
-BBD4 5E02 BBD4 <CJK>
-BBD5 5E2B BBD5 <CJK>
-BBD6 5FD7 BBD6 <CJK>
-BBD7 601D BBD7 <CJK>
-BBD8 6307 BBD8 <CJK>
-BBD9 652F BBD9 <CJK>
-BBDA 5B5C BBDA <CJK>
-BBDB 65AF BBDB <CJK>
-BBDC 65BD BBDC <CJK>
-BBDD 65E8 BBDD <CJK>
-BBDE 679D BBDE <CJK>
-BBDF 6B62 BBDF <CJK>
-BBE0 6B7B BBE0 <CJK>
-BBE1 6C0F BBE1 <CJK>
-BBE2 7345 BBE2 <CJK>
-BBE3 7949 BBE3 <CJK>
-BBE4 79C1 BBE4 <CJK>
-BBE5 7CF8 BBE5 <CJK>
-BBE6 7D19 BBE6 <CJK>
-BBE7 7D2B BBE7 <CJK>
-BBE8 80A2 BBE8 <CJK>
-BBE9 8102 BBE9 <CJK>
-BBEA 81F3 BBEA <CJK>
-BBEB 8996 BBEB <CJK>
-BBEC 8A5E BBEC <CJK>
-BBED 8A69 BBED <CJK>
-BBEE 8A66 BBEE <CJK>
-BBEF 8A8C BBEF <CJK>
-BBF0 8AEE BBF0 <CJK>
-BBF1 8CC7 BBF1 <CJK>
-BBF2 8CDC BBF2 <CJK>
-BBF3 96CC BBF3 <CJK>
-BBF4 98FC BBF4 <CJK>
-BBF5 6B6F BBF5 <CJK>
-BBF6 4E8B BBF6 <CJK>
-BBF7 4F3C BBF7 <CJK>
-BBF8 4F8D BBF8 <CJK>
-BBF9 5150 BBF9 <CJK>
-BBFA 5B57 BBFA <CJK>
-BBFB 5BFA BBFB <CJK>
-BBFC 6148 BBFC <CJK>
-BBFD 6301 BBFD <CJK>
-BBFE 6642 BBFE <CJK>
-BCA1 6B21 BCA1 <CJK>
-BCA2 6ECB BCA2 <CJK>
-BCA3 6CBB BCA3 <CJK>
-BCA4 723E BCA4 <CJK>
-BCA5 74BD BCA5 <CJK>
-BCA6 75D4 BCA6 <CJK>
-BCA7 78C1 BCA7 <CJK>
-BCA8 793A BCA8 <CJK>
-BCA9 800C BCA9 <CJK>
-BCAA 8033 BCAA <CJK>
-BCAB 81EA BCAB <CJK>
-BCAC 8494 BCAC <CJK>
-BCAD 8F9E BCAD <CJK>
-BCAE 6C50 BCAE <CJK>
-BCAF 9E7F BCAF <CJK>
-BCB0 5F0F BCB0 <CJK>
-BCB1 8B58 BCB1 <CJK>
-BCB2 9D2B BCB2 <CJK>
-BCB3 7AFA BCB3 <CJK>
-BCB4 8EF8 BCB4 <CJK>
-BCB5 5B8D BCB5 <CJK>
-BCB6 96EB BCB6 <CJK>
-BCB7 4E03 BCB7 <CJK>
-BCB8 53F1 BCB8 <CJK>
-BCB9 57F7 BCB9 <CJK>
-BCBA 5931 BCBA <CJK>
-BCBB 5AC9 BCBB <CJK>
-BCBC 5BA4 BCBC <CJK>
-BCBD 6089 BCBD <CJK>
-BCBE 6E7F BCBE <CJK>
-BCBF 6F06 BCBF <CJK>
-BCC0 75BE BCC0 <CJK>
-BCC1 8CEA BCC1 <CJK>
-BCC2 5B9F BCC2 <CJK>
-BCC3 8500 BCC3 <CJK>
-BCC4 7BE0 BCC4 <CJK>
-BCC5 5072 BCC5 <CJK>
-BCC6 67F4 BCC6 <CJK>
-BCC7 829D BCC7 <CJK>
-BCC8 5C61 BCC8 <CJK>
-BCC9 854A BCC9 <CJK>
-BCCA 7E1E BCCA <CJK>
-BCCB 820E BCCB <CJK>
-BCCC 5199 BCCC <CJK>
-BCCD 5C04 BCCD <CJK>
-BCCE 6368 BCCE <CJK>
-BCCF 8D66 BCCF <CJK>
-BCD0 659C BCD0 <CJK>
-BCD1 716E BCD1 <CJK>
-BCD2 793E BCD2 <CJK>
-BCD3 7D17 BCD3 <CJK>
-BCD4 8005 BCD4 <CJK>
-BCD5 8B1D BCD5 <CJK>
-BCD6 8ECA BCD6 <CJK>
-BCD7 906E BCD7 <CJK>
-BCD8 86C7 BCD8 <CJK>
-BCD9 90AA BCD9 <CJK>
-BCDA 501F BCDA <CJK>
-BCDB 52FA BCDB <CJK>
-BCDC 5C3A BCDC <CJK>
-BCDD 6753 BCDD <CJK>
-BCDE 707C BCDE <CJK>
-BCDF 7235 BCDF <CJK>
-BCE0 914C BCE0 <CJK>
-BCE1 91C8 BCE1 <CJK>
-BCE2 932B BCE2 <CJK>
-BCE3 82E5 BCE3 <CJK>
-BCE4 5BC2 BCE4 <CJK>
-BCE5 5F31 BCE5 <CJK>
-BCE6 60F9 BCE6 <CJK>
-BCE7 4E3B BCE7 <CJK>
-BCE8 53D6 BCE8 <CJK>
-BCE9 5B88 BCE9 <CJK>
-BCEA 624B BCEA <CJK>
-BCEB 6731 BCEB <CJK>
-BCEC 6B8A BCEC <CJK>
-BCED 72E9 BCED <CJK>
-BCEE 73E0 BCEE <CJK>
-BCEF 7A2E BCEF <CJK>
-BCF0 816B BCF0 <CJK>
-BCF1 8DA3 BCF1 <CJK>
-BCF2 9152 BCF2 <CJK>
-BCF3 9996 BCF3 <CJK>
-BCF4 5112 BCF4 <CJK>
-BCF5 53D7 BCF5 <CJK>
-BCF6 546A BCF6 <CJK>
-BCF7 5BFF BCF7 <CJK>
-BCF8 6388 BCF8 <CJK>
-BCF9 6A39 BCF9 <CJK>
-BCFA 7DAC BCFA <CJK>
-BCFB 9700 BCFB <CJK>
-BCFC 56DA BCFC <CJK>
-BCFD 53CE BCFD <CJK>
-BCFE 5468 BCFE <CJK>
-BDA1 5B97 BDA1 <CJK>
-BDA2 5C31 BDA2 <CJK>
-BDA3 5DDE BDA3 <CJK>
-BDA4 4FEE BDA4 <CJK>
-BDA5 6101 BDA5 <CJK>
-BDA6 62FE BDA6 <CJK>
-BDA7 6D32 BDA7 <CJK>
-BDA8 79C0 BDA8 <CJK>
-BDA9 79CB BDA9 <CJK>
-BDAA 7D42 BDAA <CJK>
-BDAB 7E4D BDAB <CJK>
-BDAC 7FD2 BDAC <CJK>
-BDAD 81ED BDAD <CJK>
-BDAE 821F BDAE <CJK>
-BDAF 8490 BDAF <CJK>
-BDB0 8846 BDB0 <CJK>
-BDB1 8972 BDB1 <CJK>
-BDB2 8B90 BDB2 <CJK>
-BDB3 8E74 BDB3 <CJK>
-BDB4 8F2F BDB4 <CJK>
-BDB5 9031 BDB5 <CJK>
-BDB6 914B BDB6 <CJK>
-BDB7 916C BDB7 <CJK>
-BDB8 96C6 BDB8 <CJK>
-BDB9 919C BDB9 <CJK>
-BDBA 4EC0 BDBA <CJK>
-BDBB 4F4F BDBB <CJK>
-BDBC 5145 BDBC <CJK>
-BDBD 5341 BDBD <CJK>
-BDBE 5F93 BDBE <CJK>
-BDBF 620E BDBF <CJK>
-BDC0 67D4 BDC0 <CJK>
-BDC1 6C41 BDC1 <CJK>
-BDC2 6E0B BDC2 <CJK>
-BDC3 7363 BDC3 <CJK>
-BDC4 7E26 BDC4 <CJK>
-BDC5 91CD BDC5 <CJK>
-BDC6 9283 BDC6 <CJK>
-BDC7 53D4 BDC7 <CJK>
-BDC8 5919 BDC8 <CJK>
-BDC9 5BBF BDC9 <CJK>
-BDCA 6DD1 BDCA <CJK>
-BDCB 795D BDCB <CJK>
-BDCC 7E2E BDCC <CJK>
-BDCD 7C9B BDCD <CJK>
-BDCE 587E BDCE <CJK>
-BDCF 719F BDCF <CJK>
-BDD0 51FA BDD0 <CJK>
-BDD1 8853 BDD1 <CJK>
-BDD2 8FF0 BDD2 <CJK>
-BDD3 4FCA BDD3 <CJK>
-BDD4 5CFB BDD4 <CJK>
-BDD5 6625 BDD5 <CJK>
-BDD6 77AC BDD6 <CJK>
-BDD7 7AE3 BDD7 <CJK>
-BDD8 821C BDD8 <CJK>
-BDD9 99FF BDD9 <CJK>
-BDDA 51C6 BDDA <CJK>
-BDDB 5FAA BDDB <CJK>
-BDDC 65EC BDDC <CJK>
-BDDD 696F BDDD <CJK>
-BDDE 6B89 BDDE <CJK>
-BDDF 6DF3 BDDF <CJK>
-BDE0 6E96 BDE0 <CJK>
-BDE1 6F64 BDE1 <CJK>
-BDE2 76FE BDE2 <CJK>
-BDE3 7D14 BDE3 <CJK>
-BDE4 5DE1 BDE4 <CJK>
-BDE5 9075 BDE5 <CJK>
-BDE6 9187 BDE6 <CJK>
-BDE7 9806 BDE7 <CJK>
-BDE8 51E6 BDE8 <CJK>
-BDE9 521D BDE9 <CJK>
-BDEA 6240 BDEA <CJK>
-BDEB 6691 BDEB <CJK>
-BDEC 66D9 BDEC <CJK>
-BDED 6E1A BDED <CJK>
-BDEE 5EB6 BDEE <CJK>
-BDEF 7DD2 BDEF <CJK>
-BDF0 7F72 BDF0 <CJK>
-BDF1 66F8 BDF1 <CJK>
-BDF2 85AF BDF2 <CJK>
-BDF3 85F7 BDF3 <CJK>
-BDF4 8AF8 BDF4 <CJK>
-BDF5 52A9 BDF5 <CJK>
-BDF6 53D9 BDF6 <CJK>
-BDF7 5973 BDF7 <CJK>
-BDF8 5E8F BDF8 <CJK>
-BDF9 5F90 BDF9 <CJK>
-BDFA 6055 BDFA <CJK>
-BDFB 92E4 BDFB <CJK>
-BDFC 9664 BDFC <CJK>
-BDFD 50B7 BDFD <CJK>
-BDFE 511F BDFE <CJK>
-BEA1 52DD BEA1 <CJK>
-BEA2 5320 BEA2 <CJK>
-BEA3 5347 BEA3 <CJK>
-BEA4 53EC BEA4 <CJK>
-BEA5 54E8 BEA5 <CJK>
-BEA6 5546 BEA6 <CJK>
-BEA7 5531 BEA7 <CJK>
-BEA8 5617 BEA8 <CJK>
-BEA9 5968 BEA9 <CJK>
-BEAA 59BE BEAA <CJK>
-BEAB 5A3C BEAB <CJK>
-BEAC 5BB5 BEAC <CJK>
-BEAD 5C06 BEAD <CJK>
-BEAE 5C0F BEAE <CJK>
-BEAF 5C11 BEAF <CJK>
-BEB0 5C1A BEB0 <CJK>
-BEB1 5E84 BEB1 <CJK>
-BEB2 5E8A BEB2 <CJK>
-BEB3 5EE0 BEB3 <CJK>
-BEB4 5F70 BEB4 <CJK>
-BEB5 627F BEB5 <CJK>
-BEB6 6284 BEB6 <CJK>
-BEB7 62DB BEB7 <CJK>
-BEB8 638C BEB8 <CJK>
-BEB9 6377 BEB9 <CJK>
-BEBA 6607 BEBA <CJK>
-BEBB 660C BEBB <CJK>
-BEBC 662D BEBC <CJK>
-BEBD 6676 BEBD <CJK>
-BEBE 677E BEBE <CJK>
-BEBF 68A2 BEBF <CJK>
-BEC0 6A1F BEC0 <CJK>
-BEC1 6A35 BEC1 <CJK>
-BEC2 6CBC BEC2 <CJK>
-BEC3 6D88 BEC3 <CJK>
-BEC4 6E09 BEC4 <CJK>
-BEC5 6E58 BEC5 <CJK>
-BEC6 713C BEC6 <CJK>
-BEC7 7126 BEC7 <CJK>
-BEC8 7167 BEC8 <CJK>
-BEC9 75C7 BEC9 <CJK>
-BECA 7701 BECA <CJK>
-BECB 785D BECB <CJK>
-BECC 7901 BECC <CJK>
-BECD 7965 BECD <CJK>
-BECE 79F0 BECE <CJK>
-BECF 7AE0 BECF <CJK>
-BED0 7B11 BED0 <CJK>
-BED1 7CA7 BED1 <CJK>
-BED2 7D39 BED2 <CJK>
-BED3 8096 BED3 <CJK>
-BED4 83D6 BED4 <CJK>
-BED5 848B BED5 <CJK>
-BED6 8549 BED6 <CJK>
-BED7 885D BED7 <CJK>
-BED8 88F3 BED8 <CJK>
-BED9 8A1F BED9 <CJK>
-BEDA 8A3C BEDA <CJK>
-BEDB 8A54 BEDB <CJK>
-BEDC 8A73 BEDC <CJK>
-BEDD 8C61 BEDD <CJK>
-BEDE 8CDE BEDE <CJK>
-BEDF 91A4 BEDF <CJK>
-BEE0 9266 BEE0 <CJK>
-BEE1 937E BEE1 <CJK>
-BEE2 9418 BEE2 <CJK>
-BEE3 969C BEE3 <CJK>
-BEE4 9798 BEE4 <CJK>
-BEE5 4E0A BEE5 <CJK>
-BEE6 4E08 BEE6 <CJK>
-BEE7 4E1E BEE7 <CJK>
-BEE8 4E57 BEE8 <CJK>
-BEE9 5197 BEE9 <CJK>
-BEEA 5270 BEEA <CJK>
-BEEB 57CE BEEB <CJK>
-BEEC 5834 BEEC <CJK>
-BEED 58CC BEED <CJK>
-BEEE 5B22 BEEE <CJK>
-BEEF 5E38 BEEF <CJK>
-BEF0 60C5 BEF0 <CJK>
-BEF1 64FE BEF1 <CJK>
-BEF2 6761 BEF2 <CJK>
-BEF3 6756 BEF3 <CJK>
-BEF4 6D44 BEF4 <CJK>
-BEF5 72B6 BEF5 <CJK>
-BEF6 7573 BEF6 <CJK>
-BEF7 7A63 BEF7 <CJK>
-BEF8 84B8 BEF8 <CJK>
-BEF9 8B72 BEF9 <CJK>
-BEFA 91B8 BEFA <CJK>
-BEFB 9320 BEFB <CJK>
-BEFC 5631 BEFC <CJK>
-BEFD 57F4 BEFD <CJK>
-BEFE 98FE BEFE <CJK>
-BFA1 62ED BFA1 <CJK>
-BFA2 690D BFA2 <CJK>
-BFA3 6B96 BFA3 <CJK>
-BFA4 71ED BFA4 <CJK>
-BFA5 7E54 BFA5 <CJK>
-BFA6 8077 BFA6 <CJK>
-BFA7 8272 BFA7 <CJK>
-BFA8 89E6 BFA8 <CJK>
-BFA9 98DF BFA9 <CJK>
-BFAA 8755 BFAA <CJK>
-BFAB 8FB1 BFAB <CJK>
-BFAC 5C3B BFAC <CJK>
-BFAD 4F38 BFAD <CJK>
-BFAE 4FE1 BFAE <CJK>
-BFAF 4FB5 BFAF <CJK>
-BFB0 5507 BFB0 <CJK>
-BFB1 5A20 BFB1 <CJK>
-BFB2 5BDD BFB2 <CJK>
-BFB3 5BE9 BFB3 <CJK>
-BFB4 5FC3 BFB4 <CJK>
-BFB5 614E BFB5 <CJK>
-BFB6 632F BFB6 <CJK>
-BFB7 65B0 BFB7 <CJK>
-BFB8 664B BFB8 <CJK>
-BFB9 68EE BFB9 <CJK>
-BFBA 699B BFBA <CJK>
-BFBB 6D78 BFBB <CJK>
-BFBC 6DF1 BFBC <CJK>
-BFBD 7533 BFBD <CJK>
-BFBE 75B9 BFBE <CJK>
-BFBF 771F BFBF <CJK>
-BFC0 795E BFC0 <CJK>
-BFC1 79E6 BFC1 <CJK>
-BFC2 7D33 BFC2 <CJK>
-BFC3 81E3 BFC3 <CJK>
-BFC4 82AF BFC4 <CJK>
-BFC5 85AA BFC5 <CJK>
-BFC6 89AA BFC6 <CJK>
-BFC7 8A3A BFC7 <CJK>
-BFC8 8EAB BFC8 <CJK>
-BFC9 8F9B BFC9 <CJK>
-BFCA 9032 BFCA <CJK>
-BFCB 91DD BFCB <CJK>
-BFCC 9707 BFCC <CJK>
-BFCD 4EBA BFCD <CJK>
-BFCE 4EC1 BFCE <CJK>
-BFCF 5203 BFCF <CJK>
-BFD0 5875 BFD0 <CJK>
-BFD1 58EC BFD1 <CJK>
-BFD2 5C0B BFD2 <CJK>
-BFD3 751A BFD3 <CJK>
-BFD4 5C3D BFD4 <CJK>
-BFD5 814E BFD5 <CJK>
-BFD6 8A0A BFD6 <CJK>
-BFD7 8FC5 BFD7 <CJK>
-BFD8 9663 BFD8 <CJK>
-BFD9 976D BFD9 <CJK>
-BFDA 7B25 BFDA <CJK>
-BFDB 8ACF BFDB <CJK>
-BFDC 9808 BFDC <CJK>
-BFDD 9162 BFDD <CJK>
-BFDE 56F3 BFDE <CJK>
-BFDF 53A8 BFDF <CJK>
-BFE0 9017 BFE0 <CJK>
-BFE1 5439 BFE1 <CJK>
-BFE2 5782 BFE2 <CJK>
-BFE3 5E25 BFE3 <CJK>
-BFE4 63A8 BFE4 <CJK>
-BFE5 6C34 BFE5 <CJK>
-BFE6 708A BFE6 <CJK>
-BFE7 7761 BFE7 <CJK>
-BFE8 7C8B BFE8 <CJK>
-BFE9 7FE0 BFE9 <CJK>
-BFEA 8870 BFEA <CJK>
-BFEB 9042 BFEB <CJK>
-BFEC 9154 BFEC <CJK>
-BFED 9310 BFED <CJK>
-BFEE 9318 BFEE <CJK>
-BFEF 968F BFEF <CJK>
-BFF0 745E BFF0 <CJK>
-BFF1 9AC4 BFF1 <CJK>
-BFF2 5D07 BFF2 <CJK>
-BFF3 5D69 BFF3 <CJK>
-BFF4 6570 BFF4 <CJK>
-BFF5 67A2 BFF5 <CJK>
-BFF6 8DA8 BFF6 <CJK>
-BFF7 96DB BFF7 <CJK>
-BFF8 636E BFF8 <CJK>
-BFF9 6749 BFF9 <CJK>
-BFFA 6919 BFFA <CJK>
-BFFB 83C5 BFFB <CJK>
-BFFC 9817 BFFC <CJK>
-BFFD 96C0 BFFD <CJK>
-BFFE 88FE BFFE <CJK>
-C0A1 6F84 C0A1 <CJK>
-C0A2 647A C0A2 <CJK>
-C0A3 5BF8 C0A3 <CJK>
-C0A4 4E16 C0A4 <CJK>
-C0A5 702C C0A5 <CJK>
-C0A6 755D C0A6 <CJK>
-C0A7 662F C0A7 <CJK>
-C0A8 51C4 C0A8 <CJK>
-C0A9 5236 C0A9 <CJK>
-C0AA 52E2 C0AA <CJK>
-C0AB 59D3 C0AB <CJK>
-C0AC 5F81 C0AC <CJK>
-C0AD 6027 C0AD <CJK>
-C0AE 6210 C0AE <CJK>
-C0AF 653F C0AF <CJK>
-C0B0 6574 C0B0 <CJK>
-C0B1 661F C0B1 <CJK>
-C0B2 6674 C0B2 <CJK>
-C0B3 68F2 C0B3 <CJK>
-C0B4 6816 C0B4 <CJK>
-C0B5 6B63 C0B5 <CJK>
-C0B6 6E05 C0B6 <CJK>
-C0B7 7272 C0B7 <CJK>
-C0B8 751F C0B8 <CJK>
-C0B9 76DB C0B9 <CJK>
-C0BA 7CBE C0BA <CJK>
-C0BB 8056 C0BB <CJK>
-C0BC 58F0 C0BC <CJK>
-C0BD 88FD C0BD <CJK>
-C0BE 897F C0BE <CJK>
-C0BF 8AA0 C0BF <CJK>
-C0C0 8A93 C0C0 <CJK>
-C0C1 8ACB C0C1 <CJK>
-C0C2 901D C0C2 <CJK>
-C0C3 9192 C0C3 <CJK>
-C0C4 9752 C0C4 <CJK>
-C0C5 9759 C0C5 <CJK>
-C0C6 6589 C0C6 <CJK>
-C0C7 7A0E C0C7 <CJK>
-C0C8 8106 C0C8 <CJK>
-C0C9 96BB C0C9 <CJK>
-C0CA 5E2D C0CA <CJK>
-C0CB 60DC C0CB <CJK>
-C0CC 621A C0CC <CJK>
-C0CD 65A5 C0CD <CJK>
-C0CE 6614 C0CE <CJK>
-C0CF 6790 C0CF <CJK>
-C0D0 77F3 C0D0 <CJK>
-C0D1 7A4D C0D1 <CJK>
-C0D2 7C4D C0D2 <CJK>
-C0D3 7E3E C0D3 <CJK>
-C0D4 810A C0D4 <CJK>
-C0D5 8CAC C0D5 <CJK>
-C0D6 8D64 C0D6 <CJK>
-C0D7 8DE1 C0D7 <CJK>
-C0D8 8E5F C0D8 <CJK>
-C0D9 78A9 C0D9 <CJK>
-C0DA 5207 C0DA <CJK>
-C0DB 62D9 C0DB <CJK>
-C0DC 63A5 C0DC <CJK>
-C0DD 6442 C0DD <CJK>
-C0DE 6298 C0DE <CJK>
-C0DF 8A2D C0DF <CJK>
-C0E0 7A83 C0E0 <CJK>
-C0E1 7BC0 C0E1 <CJK>
-C0E2 8AAC C0E2 <CJK>
-C0E3 96EA C0E3 <CJK>
-C0E4 7D76 C0E4 <CJK>
-C0E5 820C C0E5 <CJK>
-C0E6 8749 C0E6 <CJK>
-C0E7 4ED9 C0E7 <CJK>
-C0E8 5148 C0E8 <CJK>
-C0E9 5343 C0E9 <CJK>
-C0EA 5360 C0EA <CJK>
-C0EB 5BA3 C0EB <CJK>
-C0EC 5C02 C0EC <CJK>
-C0ED 5C16 C0ED <CJK>
-C0EE 5DDD C0EE <CJK>
-C0EF 6226 C0EF <CJK>
-C0F0 6247 C0F0 <CJK>
-C0F1 64B0 C0F1 <CJK>
-C0F2 6813 C0F2 <CJK>
-C0F3 6834 C0F3 <CJK>
-C0F4 6CC9 C0F4 <CJK>
-C0F5 6D45 C0F5 <CJK>
-C0F6 6D17 C0F6 <CJK>
-C0F7 67D3 C0F7 <CJK>
-C0F8 6F5C C0F8 <CJK>
-C0F9 714E C0F9 <CJK>
-C0FA 717D C0FA <CJK>
-C0FB 65CB C0FB <CJK>
-C0FC 7A7F C0FC <CJK>
-C0FD 7BAD C0FD <CJK>
-C0FE 7DDA C0FE <CJK>
-C1A1 7E4A C1A1 <CJK>
-C1A2 7FA8 C1A2 <CJK>
-C1A3 817A C1A3 <CJK>
-C1A4 821B C1A4 <CJK>
-C1A5 8239 C1A5 <CJK>
-C1A6 85A6 C1A6 <CJK>
-C1A7 8A6E C1A7 <CJK>
-C1A8 8CCE C1A8 <CJK>
-C1A9 8DF5 C1A9 <CJK>
-C1AA 9078 C1AA <CJK>
-C1AB 9077 C1AB <CJK>
-C1AC 92AD C1AC <CJK>
-C1AD 9291 C1AD <CJK>
-C1AE 9583 C1AE <CJK>
-C1AF 9BAE C1AF <CJK>
-C1B0 524D C1B0 <CJK>
-C1B1 5584 C1B1 <CJK>
-C1B2 6F38 C1B2 <CJK>
-C1B3 7136 C1B3 <CJK>
-C1B4 5168 C1B4 <CJK>
-C1B5 7985 C1B5 <CJK>
-C1B6 7E55 C1B6 <CJK>
-C1B7 81B3 C1B7 <CJK>
-C1B8 7CCE C1B8 <CJK>
-C1B9 564C C1B9 <CJK>
-C1BA 5851 C1BA <CJK>
-C1BB 5CA8 C1BB <CJK>
-C1BC 63AA C1BC <CJK>
-C1BD 66FE C1BD <CJK>
-C1BE 66FD C1BE <CJK>
-C1BF 695A C1BF <CJK>
-C1C0 72D9 C1C0 <CJK>
-C1C1 758F C1C1 <CJK>
-C1C2 758E C1C2 <CJK>
-C1C3 790E C1C3 <CJK>
-C1C4 7956 C1C4 <CJK>
-C1C5 79DF C1C5 <CJK>
-C1C6 7C97 C1C6 <CJK>
-C1C7 7D20 C1C7 <CJK>
-C1C8 7D44 C1C8 <CJK>
-C1C9 8607 C1C9 <CJK>
-C1CA 8A34 C1CA <CJK>
-C1CB 963B C1CB <CJK>
-C1CC 9061 C1CC <CJK>
-C1CD 9F20 C1CD <CJK>
-C1CE 50E7 C1CE <CJK>
-C1CF 5275 C1CF <CJK>
-C1D0 53CC C1D0 <CJK>
-C1D1 53E2 C1D1 <CJK>
-C1D2 5009 C1D2 <CJK>
-C1D3 55AA C1D3 <CJK>
-C1D4 58EE C1D4 <CJK>
-C1D5 594F C1D5 <CJK>
-C1D6 723D C1D6 <CJK>
-C1D7 5B8B C1D7 <CJK>
-C1D8 5C64 C1D8 <CJK>
-C1D9 531D C1D9 <CJK>
-C1DA 60E3 C1DA <CJK>
-C1DB 60F3 C1DB <CJK>
-C1DC 635C C1DC <CJK>
-C1DD 6383 C1DD <CJK>
-C1DE 633F C1DE <CJK>
-C1DF 63BB C1DF <CJK>
-C1E0 64CD C1E0 <CJK>
-C1E1 65E9 C1E1 <CJK>
-C1E2 66F9 C1E2 <CJK>
-C1E3 5DE3 C1E3 <CJK>
-C1E4 69CD C1E4 <CJK>
-C1E5 69FD C1E5 <CJK>
-C1E6 6F15 C1E6 <CJK>
-C1E7 71E5 C1E7 <CJK>
-C1E8 4E89 C1E8 <CJK>
-C1E9 75E9 C1E9 <CJK>
-C1EA 76F8 C1EA <CJK>
-C1EB 7A93 C1EB <CJK>
-C1EC 7CDF C1EC <CJK>
-C1ED 7DCF C1ED <CJK>
-C1EE 7D9C C1EE <CJK>
-C1EF 8061 C1EF <CJK>
-C1F0 8349 C1F0 <CJK>
-C1F1 8358 C1F1 <CJK>
-C1F2 846C C1F2 <CJK>
-C1F3 84BC C1F3 <CJK>
-C1F4 85FB C1F4 <CJK>
-C1F5 88C5 C1F5 <CJK>
-C1F6 8D70 C1F6 <CJK>
-C1F7 9001 C1F7 <CJK>
-C1F8 906D C1F8 <CJK>
-C1F9 9397 C1F9 <CJK>
-C1FA 971C C1FA <CJK>
-C1FB 9A12 C1FB <CJK>
-C1FC 50CF C1FC <CJK>
-C1FD 5897 C1FD <CJK>
-C1FE 618E C1FE <CJK>
-C2A1 81D3 C2A1 <CJK>
-C2A2 8535 C2A2 <CJK>
-C2A3 8D08 C2A3 <CJK>
-C2A4 9020 C2A4 <CJK>
-C2A5 4FC3 C2A5 <CJK>
-C2A6 5074 C2A6 <CJK>
-C2A7 5247 C2A7 <CJK>
-C2A8 5373 C2A8 <CJK>
-C2A9 606F C2A9 <CJK>
-C2AA 6349 C2AA <CJK>
-C2AB 675F C2AB <CJK>
-C2AC 6E2C C2AC <CJK>
-C2AD 8DB3 C2AD <CJK>
-C2AE 901F C2AE <CJK>
-C2AF 4FD7 C2AF <CJK>
-C2B0 5C5E C2B0 <CJK>
-C2B1 8CCA C2B1 <CJK>
-C2B2 65CF C2B2 <CJK>
-C2B3 7D9A C2B3 <CJK>
-C2B4 5352 C2B4 <CJK>
-C2B5 8896 C2B5 <CJK>
-C2B6 5176 C2B6 <CJK>
-C2B7 63C3 C2B7 <CJK>
-C2B8 5B58 C2B8 <CJK>
-C2B9 5B6B C2B9 <CJK>
-C2BA 5C0A C2BA <CJK>
-C2BB 640D C2BB <CJK>
-C2BC 6751 C2BC <CJK>
-C2BD 905C C2BD <CJK>
-C2BE 4ED6 C2BE <CJK>
-C2BF 591A C2BF <CJK>
-C2C0 592A C2C0 <CJK>
-C2C1 6C70 C2C1 <CJK>
-C2C2 8A51 C2C2 <CJK>
-C2C3 553E C2C3 <CJK>
-C2C4 5815 C2C4 <CJK>
-C2C5 59A5 C2C5 <CJK>
-C2C6 60F0 C2C6 <CJK>
-C2C7 6253 C2C7 <CJK>
-C2C8 67C1 C2C8 <CJK>
-C2C9 8235 C2C9 <CJK>
-C2CA 6955 C2CA <CJK>
-C2CB 9640 C2CB <CJK>
-C2CC 99C4 C2CC <CJK>
-C2CD 9A28 C2CD <CJK>
-C2CE 4F53 C2CE <CJK>
-C2CF 5806 C2CF <CJK>
-C2D0 5BFE C2D0 <CJK>
-C2D1 8010 C2D1 <CJK>
-C2D2 5CB1 C2D2 <CJK>
-C2D3 5E2F C2D3 <CJK>
-C2D4 5F85 C2D4 <CJK>
-C2D5 6020 C2D5 <CJK>
-C2D6 614B C2D6 <CJK>
-C2D7 6234 C2D7 <CJK>
-C2D8 66FF C2D8 <CJK>
-C2D9 6CF0 C2D9 <CJK>
-C2DA 6EDE C2DA <CJK>
-C2DB 80CE C2DB <CJK>
-C2DC 817F C2DC <CJK>
-C2DD 82D4 C2DD <CJK>
-C2DE 888B C2DE <CJK>
-C2DF 8CB8 C2DF <CJK>
-C2E0 9000 C2E0 <CJK>
-C2E1 902E C2E1 <CJK>
-C2E2 968A C2E2 <CJK>
-C2E3 9EDB C2E3 <CJK>
-C2E4 9BDB C2E4 <CJK>
-C2E5 4EE3 C2E5 <CJK>
-C2E6 53F0 C2E6 <CJK>
-C2E7 5927 C2E7 <CJK>
-C2E8 7B2C C2E8 <CJK>
-C2E9 918D C2E9 <CJK>
-C2EA 984C C2EA <CJK>
-C2EB 9DF9 C2EB <CJK>
-C2EC 6EDD C2EC <CJK>
-C2ED 7027 C2ED <CJK>
-C2EE 5353 C2EE <CJK>
-C2EF 5544 C2EF <CJK>
-C2F0 5B85 C2F0 <CJK>
-C2F1 6258 C2F1 <CJK>
-C2F2 629E C2F2 <CJK>
-C2F3 62D3 C2F3 <CJK>
-C2F4 6CA2 C2F4 <CJK>
-C2F5 6FEF C2F5 <CJK>
-C2F6 7422 C2F6 <CJK>
-C2F7 8A17 C2F7 <CJK>
-C2F8 9438 C2F8 <CJK>
-C2F9 6FC1 C2F9 <CJK>
-C2FA 8AFE C2FA <CJK>
-C2FB 8338 C2FB <CJK>
-C2FC 51E7 C2FC <CJK>
-C2FD 86F8 C2FD <CJK>
-C2FE 53EA C2FE <CJK>
-C3A1 53E9 C3A1 <CJK>
-C3A2 4F46 C3A2 <CJK>
-C3A3 9054 C3A3 <CJK>
-C3A4 8FB0 C3A4 <CJK>
-C3A5 596A C3A5 <CJK>
-C3A6 8131 C3A6 <CJK>
-C3A7 5DFD C3A7 <CJK>
-C3A8 7AEA C3A8 <CJK>
-C3A9 8FBF C3A9 <CJK>
-C3AA 68DA C3AA <CJK>
-C3AB 8C37 C3AB <CJK>
-C3AC 72F8 C3AC <CJK>
-C3AD 9C48 C3AD <CJK>
-C3AE 6A3D C3AE <CJK>
-C3AF 8AB0 C3AF <CJK>
-C3B0 4E39 C3B0 <CJK>
-C3B1 5358 C3B1 <CJK>
-C3B2 5606 C3B2 <CJK>
-C3B3 5766 C3B3 <CJK>
-C3B4 62C5 C3B4 <CJK>
-C3B5 63A2 C3B5 <CJK>
-C3B6 65E6 C3B6 <CJK>
-C3B7 6B4E C3B7 <CJK>
-C3B8 6DE1 C3B8 <CJK>
-C3B9 6E5B C3B9 <CJK>
-C3BA 70AD C3BA <CJK>
-C3BB 77ED C3BB <CJK>
-C3BC 7AEF C3BC <CJK>
-C3BD 7BAA C3BD <CJK>
-C3BE 7DBB C3BE <CJK>
-C3BF 803D C3BF <CJK>
-C3C0 80C6 C3C0 <CJK>
-C3C1 86CB C3C1 <CJK>
-C3C2 8A95 C3C2 <CJK>
-C3C3 935B C3C3 <CJK>
-C3C4 56E3 C3C4 <CJK>
-C3C5 58C7 C3C5 <CJK>
-C3C6 5F3E C3C6 <CJK>
-C3C7 65AD C3C7 <CJK>
-C3C8 6696 C3C8 <CJK>
-C3C9 6A80 C3C9 <CJK>
-C3CA 6BB5 C3CA <CJK>
-C3CB 7537 C3CB <CJK>
-C3CC 8AC7 C3CC <CJK>
-C3CD 5024 C3CD <CJK>
-C3CE 77E5 C3CE <CJK>
-C3CF 5730 C3CF <CJK>
-C3D0 5F1B C3D0 <CJK>
-C3D1 6065 C3D1 <CJK>
-C3D2 667A C3D2 <CJK>
-C3D3 6C60 C3D3 <CJK>
-C3D4 75F4 C3D4 <CJK>
-C3D5 7A1A C3D5 <CJK>
-C3D6 7F6E C3D6 <CJK>
-C3D7 81F4 C3D7 <CJK>
-C3D8 8718 C3D8 <CJK>
-C3D9 9045 C3D9 <CJK>
-C3DA 99B3 C3DA <CJK>
-C3DB 7BC9 C3DB <CJK>
-C3DC 755C C3DC <CJK>
-C3DD 7AF9 C3DD <CJK>
-C3DE 7B51 C3DE <CJK>
-C3DF 84C4 C3DF <CJK>
-C3E0 9010 C3E0 <CJK>
-C3E1 79E9 C3E1 <CJK>
-C3E2 7A92 C3E2 <CJK>
-C3E3 8336 C3E3 <CJK>
-C3E4 5AE1 C3E4 <CJK>
-C3E5 7740 C3E5 <CJK>
-C3E6 4E2D C3E6 <CJK>
-C3E7 4EF2 C3E7 <CJK>
-C3E8 5B99 C3E8 <CJK>
-C3E9 5FE0 C3E9 <CJK>
-C3EA 62BD C3EA <CJK>
-C3EB 663C C3EB <CJK>
-C3EC 67F1 C3EC <CJK>
-C3ED 6CE8 C3ED <CJK>
-C3EE 866B C3EE <CJK>
-C3EF 8877 C3EF <CJK>
-C3F0 8A3B C3F0 <CJK>
-C3F1 914E C3F1 <CJK>
-C3F2 92F3 C3F2 <CJK>
-C3F3 99D0 C3F3 <CJK>
-C3F4 6A17 C3F4 <CJK>
-C3F5 7026 C3F5 <CJK>
-C3F6 732A C3F6 <CJK>
-C3F7 82E7 C3F7 <CJK>
-C3F8 8457 C3F8 <CJK>
-C3F9 8CAF C3F9 <CJK>
-C3FA 4E01 C3FA <CJK>
-C3FB 5146 C3FB <CJK>
-C3FC 51CB C3FC <CJK>
-C3FD 558B C3FD <CJK>
-C3FE 5BF5 C3FE <CJK>
-C4A1 5E16 C4A1 <CJK>
-C4A2 5E33 C4A2 <CJK>
-C4A3 5E81 C4A3 <CJK>
-C4A4 5F14 C4A4 <CJK>
-C4A5 5F35 C4A5 <CJK>
-C4A6 5F6B C4A6 <CJK>
-C4A7 5FB4 C4A7 <CJK>
-C4A8 61F2 C4A8 <CJK>
-C4A9 6311 C4A9 <CJK>
-C4AA 66A2 C4AA <CJK>
-C4AB 671D C4AB <CJK>
-C4AC 6F6E C4AC <CJK>
-C4AD 7252 C4AD <CJK>
-C4AE 753A C4AE <CJK>
-C4AF 773A C4AF <CJK>
-C4B0 8074 C4B0 <CJK>
-C4B1 8139 C4B1 <CJK>
-C4B2 8178 C4B2 <CJK>
-C4B3 8776 C4B3 <CJK>
-C4B4 8ABF C4B4 <CJK>
-C4B5 8ADC C4B5 <CJK>
-C4B6 8D85 C4B6 <CJK>
-C4B7 8DF3 C4B7 <CJK>
-C4B8 929A C4B8 <CJK>
-C4B9 9577 C4B9 <CJK>
-C4BA 9802 C4BA <CJK>
-C4BB 9CE5 C4BB <CJK>
-C4BC 52C5 C4BC <CJK>
-C4BD 6357 C4BD <CJK>
-C4BE 76F4 C4BE <CJK>
-C4BF 6715 C4BF <CJK>
-C4C0 6C88 C4C0 <CJK>
-C4C1 73CD C4C1 <CJK>
-C4C2 8CC3 C4C2 <CJK>
-C4C3 93AE C4C3 <CJK>
-C4C4 9673 C4C4 <CJK>
-C4C5 6D25 C4C5 <CJK>
-C4C6 589C C4C6 <CJK>
-C4C7 690E C4C7 <CJK>
-C4C8 69CC C4C8 <CJK>
-C4C9 8FFD C4C9 <CJK>
-C4CA 939A C4CA <CJK>
-C4CB 75DB C4CB <CJK>
-C4CC 901A C4CC <CJK>
-C4CD 585A C4CD <CJK>
-C4CE 6802 C4CE <CJK>
-C4CF 63B4 C4CF <CJK>
-C4D0 69FB C4D0 <CJK>
-C4D1 4F43 C4D1 <CJK>
-C4D2 6F2C C4D2 <CJK>
-C4D3 67D8 C4D3 <CJK>
-C4D4 8FBB C4D4 <CJK>
-C4D5 8526 C4D5 <CJK>
-C4D6 7DB4 C4D6 <CJK>
-C4D7 9354 C4D7 <CJK>
-C4D8 693F C4D8 <CJK>
-C4D9 6F70 C4D9 <CJK>
-C4DA 576A C4DA <CJK>
-C4DB 58F7 C4DB <CJK>
-C4DC 5B2C C4DC <CJK>
-C4DD 7D2C C4DD <CJK>
-C4DE 722A C4DE <CJK>
-C4DF 540A C4DF <CJK>
-C4E0 91E3 C4E0 <CJK>
-C4E1 9DB4 C4E1 <CJK>
-C4E2 4EAD C4E2 <CJK>
-C4E3 4F4E C4E3 <CJK>
-C4E4 505C C4E4 <CJK>
-C4E5 5075 C4E5 <CJK>
-C4E6 5243 C4E6 <CJK>
-C4E7 8C9E C4E7 <CJK>
-C4E8 5448 C4E8 <CJK>
-C4E9 5824 C4E9 <CJK>
-C4EA 5B9A C4EA <CJK>
-C4EB 5E1D C4EB <CJK>
-C4EC 5E95 C4EC <CJK>
-C4ED 5EAD C4ED <CJK>
-C4EE 5EF7 C4EE <CJK>
-C4EF 5F1F C4EF <CJK>
-C4F0 608C C4F0 <CJK>
-C4F1 62B5 C4F1 <CJK>
-C4F2 633A C4F2 <CJK>
-C4F3 63D0 C4F3 <CJK>
-C4F4 68AF C4F4 <CJK>
-C4F5 6C40 C4F5 <CJK>
-C4F6 7887 C4F6 <CJK>
-C4F7 798E C4F7 <CJK>
-C4F8 7A0B C4F8 <CJK>
-C4F9 7DE0 C4F9 <CJK>
-C4FA 8247 C4FA <CJK>
-C4FB 8A02 C4FB <CJK>
-C4FC 8AE6 C4FC <CJK>
-C4FD 8E44 C4FD <CJK>
-C4FE 9013 C4FE <CJK>
-C5A1 90B8 C5A1 <CJK>
-C5A2 912D C5A2 <CJK>
-C5A3 91D8 C5A3 <CJK>
-C5A4 9F0E C5A4 <CJK>
-C5A5 6CE5 C5A5 <CJK>
-C5A6 6458 C5A6 <CJK>
-C5A7 64E2 C5A7 <CJK>
-C5A8 6575 C5A8 <CJK>
-C5A9 6EF4 C5A9 <CJK>
-C5AA 7684 C5AA <CJK>
-C5AB 7B1B C5AB <CJK>
-C5AC 9069 C5AC <CJK>
-C5AD 93D1 C5AD <CJK>
-C5AE 6EBA C5AE <CJK>
-C5AF 54F2 C5AF <CJK>
-C5B0 5FB9 C5B0 <CJK>
-C5B1 64A4 C5B1 <CJK>
-C5B2 8F4D C5B2 <CJK>
-C5B3 8FED C5B3 <CJK>
-C5B4 9244 C5B4 <CJK>
-C5B5 5178 C5B5 <CJK>
-C5B6 586B C5B6 <CJK>
-C5B7 5929 C5B7 <CJK>
-C5B8 5C55 C5B8 <CJK>
-C5B9 5E97 C5B9 <CJK>
-C5BA 6DFB C5BA <CJK>
-C5BB 7E8F C5BB <CJK>
-C5BC 751C C5BC <CJK>
-C5BD 8CBC C5BD <CJK>
-C5BE 8EE2 C5BE <CJK>
-C5BF 985B C5BF <CJK>
-C5C0 70B9 C5C0 <CJK>
-C5C1 4F1D C5C1 <CJK>
-C5C2 6BBF C5C2 <CJK>
-C5C3 6FB1 C5C3 <CJK>
-C5C4 7530 C5C4 <CJK>
-C5C5 96FB C5C5 <CJK>
-C5C6 514E C5C6 <CJK>
-C5C7 5410 C5C7 <CJK>
-C5C8 5835 C5C8 <CJK>
-C5C9 5857 C5C9 <CJK>
-C5CA 59AC C5CA <CJK>
-C5CB 5C60 C5CB <CJK>
-C5CC 5F92 C5CC <CJK>
-C5CD 6597 C5CD <CJK>
-C5CE 675C C5CE <CJK>
-C5CF 6E21 C5CF <CJK>
-C5D0 767B C5D0 <CJK>
-C5D1 83DF C5D1 <CJK>
-C5D2 8CED C5D2 <CJK>
-C5D3 9014 C5D3 <CJK>
-C5D4 90FD C5D4 <CJK>
-C5D5 934D C5D5 <CJK>
-C5D6 7825 C5D6 <CJK>
-C5D7 783A C5D7 <CJK>
-C5D8 52AA C5D8 <CJK>
-C5D9 5EA6 C5D9 <CJK>
-C5DA 571F C5DA <CJK>
-C5DB 5974 C5DB <CJK>
-C5DC 6012 C5DC <CJK>
-C5DD 5012 C5DD <CJK>
-C5DE 515A C5DE <CJK>
-C5DF 51AC C5DF <CJK>
-C5E0 51CD C5E0 <CJK>
-C5E1 5200 C5E1 <CJK>
-C5E2 5510 C5E2 <CJK>
-C5E3 5854 C5E3 <CJK>
-C5E4 5858 C5E4 <CJK>
-C5E5 5957 C5E5 <CJK>
-C5E6 5B95 C5E6 <CJK>
-C5E7 5CF6 C5E7 <CJK>
-C5E8 5D8B C5E8 <CJK>
-C5E9 60BC C5E9 <CJK>
-C5EA 6295 C5EA <CJK>
-C5EB 642D C5EB <CJK>
-C5EC 6771 C5EC <CJK>
-C5ED 6843 C5ED <CJK>
-C5EE 68BC C5EE <CJK>
-C5EF 68DF C5EF <CJK>
-C5F0 76D7 C5F0 <CJK>
-C5F1 6DD8 C5F1 <CJK>
-C5F2 6E6F C5F2 <CJK>
-C5F3 6D9B C5F3 <CJK>
-C5F4 706F C5F4 <CJK>
-C5F5 71C8 C5F5 <CJK>
-C5F6 5F53 C5F6 <CJK>
-C5F7 75D8 C5F7 <CJK>
-C5F8 7977 C5F8 <CJK>
-C5F9 7B49 C5F9 <CJK>
-C5FA 7B54 C5FA <CJK>
-C5FB 7B52 C5FB <CJK>
-C5FC 7CD6 C5FC <CJK>
-C5FD 7D71 C5FD <CJK>
-C5FE 5230 C5FE <CJK>
-C6A1 8463 C6A1 <CJK>
-C6A2 8569 C6A2 <CJK>
-C6A3 85E4 C6A3 <CJK>
-C6A4 8A0E C6A4 <CJK>
-C6A5 8B04 C6A5 <CJK>
-C6A6 8C46 C6A6 <CJK>
-C6A7 8E0F C6A7 <CJK>
-C6A8 9003 C6A8 <CJK>
-C6A9 900F C6A9 <CJK>
-C6AA 9419 C6AA <CJK>
-C6AB 9676 C6AB <CJK>
-C6AC 982D C6AC <CJK>
-C6AD 9A30 C6AD <CJK>
-C6AE 95D8 C6AE <CJK>
-C6AF 50CD C6AF <CJK>
-C6B0 52D5 C6B0 <CJK>
-C6B1 540C C6B1 <CJK>
-C6B2 5802 C6B2 <CJK>
-C6B3 5C0E C6B3 <CJK>
-C6B4 61A7 C6B4 <CJK>
-C6B5 649E C6B5 <CJK>
-C6B6 6D1E C6B6 <CJK>
-C6B7 77B3 C6B7 <CJK>
-C6B8 7AE5 C6B8 <CJK>
-C6B9 80F4 C6B9 <CJK>
-C6BA 8404 C6BA <CJK>
-C6BB 9053 C6BB <CJK>
-C6BC 9285 C6BC <CJK>
-C6BD 5CE0 C6BD <CJK>
-C6BE 9D07 C6BE <CJK>
-C6BF 533F C6BF <CJK>
-C6C0 5F97 C6C0 <CJK>
-C6C1 5FB3 C6C1 <CJK>
-C6C2 6D9C C6C2 <CJK>
-C6C3 7279 C6C3 <CJK>
-C6C4 7763 C6C4 <CJK>
-C6C5 79BF C6C5 <CJK>
-C6C6 7BE4 C6C6 <CJK>
-C6C7 6BD2 C6C7 <CJK>
-C6C8 72EC C6C8 <CJK>
-C6C9 8AAD C6C9 <CJK>
-C6CA 6803 C6CA <CJK>
-C6CB 6A61 C6CB <CJK>
-C6CC 51F8 C6CC <CJK>
-C6CD 7A81 C6CD <CJK>
-C6CE 6934 C6CE <CJK>
-C6CF 5C4A C6CF <CJK>
-C6D0 9CF6 C6D0 <CJK>
-C6D1 82EB C6D1 <CJK>
-C6D2 5BC5 C6D2 <CJK>
-C6D3 9149 C6D3 <CJK>
-C6D4 701E C6D4 <CJK>
-C6D5 5678 C6D5 <CJK>
-C6D6 5C6F C6D6 <CJK>
-C6D7 60C7 C6D7 <CJK>
-C6D8 6566 C6D8 <CJK>
-C6D9 6C8C C6D9 <CJK>
-C6DA 8C5A C6DA <CJK>
-C6DB 9041 C6DB <CJK>
-C6DC 9813 C6DC <CJK>
-C6DD 5451 C6DD <CJK>
-C6DE 66C7 C6DE <CJK>
-C6DF 920D C6DF <CJK>
-C6E0 5948 C6E0 <CJK>
-C6E1 90A3 C6E1 <CJK>
-C6E2 5185 C6E2 <CJK>
-C6E3 4E4D C6E3 <CJK>
-C6E4 51EA C6E4 <CJK>
-C6E5 8599 C6E5 <CJK>
-C6E6 8B0E C6E6 <CJK>
-C6E7 7058 C6E7 <CJK>
-C6E8 637A C6E8 <CJK>
-C6E9 934B C6E9 <CJK>
-C6EA 6962 C6EA <CJK>
-C6EB 99B4 C6EB <CJK>
-C6EC 7E04 C6EC <CJK>
-C6ED 7577 C6ED <CJK>
-C6EE 5357 C6EE <CJK>
-C6EF 6960 C6EF <CJK>
-C6F0 8EDF C6F0 <CJK>
-C6F1 96E3 C6F1 <CJK>
-C6F2 6C5D C6F2 <CJK>
-C6F3 4E8C C6F3 <CJK>
-C6F4 5C3C C6F4 <CJK>
-C6F5 5F10 C6F5 <CJK>
-C6F6 8FE9 C6F6 <CJK>
-C6F7 5302 C6F7 <CJK>
-C6F8 8CD1 C6F8 <CJK>
-C6F9 8089 C6F9 <CJK>
-C6FA 8679 C6FA <CJK>
-C6FB 5EFF C6FB <CJK>
-C6FC 65E5 C6FC <CJK>
-C6FD 4E73 C6FD <CJK>
-C6FE 5165 C6FE <CJK>
-C7A1 5982 C7A1 <CJK>
-C7A2 5C3F C7A2 <CJK>
-C7A3 97EE C7A3 <CJK>
-C7A4 4EFB C7A4 <CJK>
-C7A5 598A C7A5 <CJK>
-C7A6 5FCD C7A6 <CJK>
-C7A7 8A8D C7A7 <CJK>
-C7A8 6FE1 C7A8 <CJK>
-C7A9 79B0 C7A9 <CJK>
-C7AA 7962 C7AA <CJK>
-C7AB 5BE7 C7AB <CJK>
-C7AC 8471 C7AC <CJK>
-C7AD 732B C7AD <CJK>
-C7AE 71B1 C7AE <CJK>
-C7AF 5E74 C7AF <CJK>
-C7B0 5FF5 C7B0 <CJK>
-C7B1 637B C7B1 <CJK>
-C7B2 649A C7B2 <CJK>
-C7B3 71C3 C7B3 <CJK>
-C7B4 7C98 C7B4 <CJK>
-C7B5 4E43 C7B5 <CJK>
-C7B6 5EFC C7B6 <CJK>
-C7B7 4E4B C7B7 <CJK>
-C7B8 57DC C7B8 <CJK>
-C7B9 56A2 C7B9 <CJK>
-C7BA 60A9 C7BA <CJK>
-C7BB 6FC3 C7BB <CJK>
-C7BC 7D0D C7BC <CJK>
-C7BD 80FD C7BD <CJK>
-C7BE 8133 C7BE <CJK>
-C7BF 81BF C7BF <CJK>
-C7C0 8FB2 C7C0 <CJK>
-C7C1 8997 C7C1 <CJK>
-C7C2 86A4 C7C2 <CJK>
-C7C3 5DF4 C7C3 <CJK>
-C7C4 628A C7C4 <CJK>
-C7C5 64AD C7C5 <CJK>
-C7C6 8987 C7C6 <CJK>
-C7C7 6777 C7C7 <CJK>
-C7C8 6CE2 C7C8 <CJK>
-C7C9 6D3E C7C9 <CJK>
-C7CA 7436 C7CA <CJK>
-C7CB 7834 C7CB <CJK>
-C7CC 5A46 C7CC <CJK>
-C7CD 7F75 C7CD <CJK>
-C7CE 82AD C7CE <CJK>
-C7CF 99AC C7CF <CJK>
-C7D0 4FF3 C7D0 <CJK>
-C7D1 5EC3 C7D1 <CJK>
-C7D2 62DD C7D2 <CJK>
-C7D3 6392 C7D3 <CJK>
-C7D4 6557 C7D4 <CJK>
-C7D5 676F C7D5 <CJK>
-C7D6 76C3 C7D6 <CJK>
-C7D7 724C C7D7 <CJK>
-C7D8 80CC C7D8 <CJK>
-C7D9 80BA C7D9 <CJK>
-C7DA 8F29 C7DA <CJK>
-C7DB 914D C7DB <CJK>
-C7DC 500D C7DC <CJK>
-C7DD 57F9 C7DD <CJK>
-C7DE 5A92 C7DE <CJK>
-C7DF 6885 C7DF <CJK>
-C7E0 6973 C7E0 <CJK>
-C7E1 7164 C7E1 <CJK>
-C7E2 72FD C7E2 <CJK>
-C7E3 8CB7 C7E3 <CJK>
-C7E4 58F2 C7E4 <CJK>
-C7E5 8CE0 C7E5 <CJK>
-C7E6 966A C7E6 <CJK>
-C7E7 9019 C7E7 <CJK>
-C7E8 877F C7E8 <CJK>
-C7E9 79E4 C7E9 <CJK>
-C7EA 77E7 C7EA <CJK>
-C7EB 8429 C7EB <CJK>
-C7EC 4F2F C7EC <CJK>
-C7ED 5265 C7ED <CJK>
-C7EE 535A C7EE <CJK>
-C7EF 62CD C7EF <CJK>
-C7F0 67CF C7F0 <CJK>
-C7F1 6CCA C7F1 <CJK>
-C7F2 767D C7F2 <CJK>
-C7F3 7B94 C7F3 <CJK>
-C7F4 7C95 C7F4 <CJK>
-C7F5 8236 C7F5 <CJK>
-C7F6 8584 C7F6 <CJK>
-C7F7 8FEB C7F7 <CJK>
-C7F8 66DD C7F8 <CJK>
-C7F9 6F20 C7F9 <CJK>
-C7FA 7206 C7FA <CJK>
-C7FB 7E1B C7FB <CJK>
-C7FC 83AB C7FC <CJK>
-C7FD 99C1 C7FD <CJK>
-C7FE 9EA6 C7FE <CJK>
-C8A1 51FD C8A1 <CJK>
-C8A2 7BB1 C8A2 <CJK>
-C8A3 7872 C8A3 <CJK>
-C8A4 7BB8 C8A4 <CJK>
-C8A5 8087 C8A5 <CJK>
-C8A6 7B48 C8A6 <CJK>
-C8A7 6AE8 C8A7 <CJK>
-C8A8 5E61 C8A8 <CJK>
-C8A9 808C C8A9 <CJK>
-C8AA 7551 C8AA <CJK>
-C8AB 7560 C8AB <CJK>
-C8AC 516B C8AC <CJK>
-C8AD 9262 C8AD <CJK>
-C8AE 6E8C C8AE <CJK>
-C8AF 767A C8AF <CJK>
-C8B0 9197 C8B0 <CJK>
-C8B1 9AEA C8B1 <CJK>
-C8B2 4F10 C8B2 <CJK>
-C8B3 7F70 C8B3 <CJK>
-C8B4 629C C8B4 <CJK>
-C8B5 7B4F C8B5 <CJK>
-C8B6 95A5 C8B6 <CJK>
-C8B7 9CE9 C8B7 <CJK>
-C8B8 567A C8B8 <CJK>
-C8B9 5859 C8B9 <CJK>
-C8BA 86E4 C8BA <CJK>
-C8BB 96BC C8BB <CJK>
-C8BC 4F34 C8BC <CJK>
-C8BD 5224 C8BD <CJK>
-C8BE 534A C8BE <CJK>
-C8BF 53CD C8BF <CJK>
-C8C0 53DB C8C0 <CJK>
-C8C1 5E06 C8C1 <CJK>
-C8C2 642C C8C2 <CJK>
-C8C3 6591 C8C3 <CJK>
-C8C4 677F C8C4 <CJK>
-C8C5 6C3E C8C5 <CJK>
-C8C6 6C4E C8C6 <CJK>
-C8C7 7248 C8C7 <CJK>
-C8C8 72AF C8C8 <CJK>
-C8C9 73ED C8C9 <CJK>
-C8CA 7554 C8CA <CJK>
-C8CB 7E41 C8CB <CJK>
-C8CC 822C C8CC <CJK>
-C8CD 85E9 C8CD <CJK>
-C8CE 8CA9 C8CE <CJK>
-C8CF 7BC4 C8CF <CJK>
-C8D0 91C6 C8D0 <CJK>
-C8D1 7169 C8D1 <CJK>
-C8D2 9812 C8D2 <CJK>
-C8D3 98EF C8D3 <CJK>
-C8D4 633D C8D4 <CJK>
-C8D5 6669 C8D5 <CJK>
-C8D6 756A C8D6 <CJK>
-C8D7 76E4 C8D7 <CJK>
-C8D8 78D0 C8D8 <CJK>
-C8D9 8543 C8D9 <CJK>
-C8DA 86EE C8DA <CJK>
-C8DB 532A C8DB <CJK>
-C8DC 5351 C8DC <CJK>
-C8DD 5426 C8DD <CJK>
-C8DE 5983 C8DE <CJK>
-C8DF 5E87 C8DF <CJK>
-C8E0 5F7C C8E0 <CJK>
-C8E1 60B2 C8E1 <CJK>
-C8E2 6249 C8E2 <CJK>
-C8E3 6279 C8E3 <CJK>
-C8E4 62AB C8E4 <CJK>
-C8E5 6590 C8E5 <CJK>
-C8E6 6BD4 C8E6 <CJK>
-C8E7 6CCC C8E7 <CJK>
-C8E8 75B2 C8E8 <CJK>
-C8E9 76AE C8E9 <CJK>
-C8EA 7891 C8EA <CJK>
-C8EB 79D8 C8EB <CJK>
-C8EC 7DCB C8EC <CJK>
-C8ED 7F77 C8ED <CJK>
-C8EE 80A5 C8EE <CJK>
-C8EF 88AB C8EF <CJK>
-C8F0 8AB9 C8F0 <CJK>
-C8F1 8CBB C8F1 <CJK>
-C8F2 907F C8F2 <CJK>
-C8F3 975E C8F3 <CJK>
-C8F4 98DB C8F4 <CJK>
-C8F5 6A0B C8F5 <CJK>
-C8F6 7C38 C8F6 <CJK>
-C8F7 5099 C8F7 <CJK>
-C8F8 5C3E C8F8 <CJK>
-C8F9 5FAE C8F9 <CJK>
-C8FA 6787 C8FA <CJK>
-C8FB 6BD8 C8FB <CJK>
-C8FC 7435 C8FC <CJK>
-C8FD 7709 C8FD <CJK>
-C8FE 7F8E C8FE <CJK>
-C9A1 9F3B C9A1 <CJK>
-C9A2 67CA C9A2 <CJK>
-C9A3 7A17 C9A3 <CJK>
-C9A4 5339 C9A4 <CJK>
-C9A5 758B C9A5 <CJK>
-C9A6 9AED C9A6 <CJK>
-C9A7 5F66 C9A7 <CJK>
-C9A8 819D C9A8 <CJK>
-C9A9 83F1 C9A9 <CJK>
-C9AA 8098 C9AA <CJK>
-C9AB 5F3C C9AB <CJK>
-C9AC 5FC5 C9AC <CJK>
-C9AD 7562 C9AD <CJK>
-C9AE 7B46 C9AE <CJK>
-C9AF 903C C9AF <CJK>
-C9B0 6867 C9B0 <CJK>
-C9B1 59EB C9B1 <CJK>
-C9B2 5A9B C9B2 <CJK>
-C9B3 7D10 C9B3 <CJK>
-C9B4 767E C9B4 <CJK>
-C9B5 8B2C C9B5 <CJK>
-C9B6 4FF5 C9B6 <CJK>
-C9B7 5F6A C9B7 <CJK>
-C9B8 6A19 C9B8 <CJK>
-C9B9 6C37 C9B9 <CJK>
-C9BA 6F02 C9BA <CJK>
-C9BB 74E2 C9BB <CJK>
-C9BC 7968 C9BC <CJK>
-C9BD 8868 C9BD <CJK>
-C9BE 8A55 C9BE <CJK>
-C9BF 8C79 C9BF <CJK>
-C9C0 5EDF C9C0 <CJK>
-C9C1 63CF C9C1 <CJK>
-C9C2 75C5 C9C2 <CJK>
-C9C3 79D2 C9C3 <CJK>
-C9C4 82D7 C9C4 <CJK>
-C9C5 9328 C9C5 <CJK>
-C9C6 92F2 C9C6 <CJK>
-C9C7 849C C9C7 <CJK>
-C9C8 86ED C9C8 <CJK>
-C9C9 9C2D C9C9 <CJK>
-C9CA 54C1 C9CA <CJK>
-C9CB 5F6C C9CB <CJK>
-C9CC 658C C9CC <CJK>
-C9CD 6D5C C9CD <CJK>
-C9CE 7015 C9CE <CJK>
-C9CF 8CA7 C9CF <CJK>
-C9D0 8CD3 C9D0 <CJK>
-C9D1 983B C9D1 <CJK>
-C9D2 654F C9D2 <CJK>
-C9D3 74F6 C9D3 <CJK>
-C9D4 4E0D C9D4 <CJK>
-C9D5 4ED8 C9D5 <CJK>
-C9D6 57E0 C9D6 <CJK>
-C9D7 592B C9D7 <CJK>
-C9D8 5A66 C9D8 <CJK>
-C9D9 5BCC C9D9 <CJK>
-C9DA 51A8 C9DA <CJK>
-C9DB 5E03 C9DB <CJK>
-C9DC 5E9C C9DC <CJK>
-C9DD 6016 C9DD <CJK>
-C9DE 6276 C9DE <CJK>
-C9DF 6577 C9DF <CJK>
-C9E0 65A7 C9E0 <CJK>
-C9E1 666E C9E1 <CJK>
-C9E2 6D6E C9E2 <CJK>
-C9E3 7236 C9E3 <CJK>
-C9E4 7B26 C9E4 <CJK>
-C9E5 8150 C9E5 <CJK>
-C9E6 819A C9E6 <CJK>
-C9E7 8299 C9E7 <CJK>
-C9E8 8B5C C9E8 <CJK>
-C9E9 8CA0 C9E9 <CJK>
-C9EA 8CE6 C9EA <CJK>
-C9EB 8D74 C9EB <CJK>
-C9EC 961C C9EC <CJK>
-C9ED 9644 C9ED <CJK>
-C9EE 4FAE C9EE <CJK>
-C9EF 64AB C9EF <CJK>
-C9F0 6B66 C9F0 <CJK>
-C9F1 821E C9F1 <CJK>
-C9F2 8461 C9F2 <CJK>
-C9F3 856A C9F3 <CJK>
-C9F4 90E8 C9F4 <CJK>
-C9F5 5C01 C9F5 <CJK>
-C9F6 6953 C9F6 <CJK>
-C9F7 98A8 C9F7 <CJK>
-C9F8 847A C9F8 <CJK>
-C9F9 8557 C9F9 <CJK>
-C9FA 4F0F C9FA <CJK>
-C9FB 526F C9FB <CJK>
-C9FC 5FA9 C9FC <CJK>
-C9FD 5E45 C9FD <CJK>
-C9FE 670D C9FE <CJK>
-CAA1 798F CAA1 <CJK>
-CAA2 8179 CAA2 <CJK>
-CAA3 8907 CAA3 <CJK>
-CAA4 8986 CAA4 <CJK>
-CAA5 6DF5 CAA5 <CJK>
-CAA6 5F17 CAA6 <CJK>
-CAA7 6255 CAA7 <CJK>
-CAA8 6CB8 CAA8 <CJK>
-CAA9 4ECF CAA9 <CJK>
-CAAA 7269 CAAA <CJK>
-CAAB 9B92 CAAB <CJK>
-CAAC 5206 CAAC <CJK>
-CAAD 543B CAAD <CJK>
-CAAE 5674 CAAE <CJK>
-CAAF 58B3 CAAF <CJK>
-CAB0 61A4 CAB0 <CJK>
-CAB1 626E CAB1 <CJK>
-CAB2 711A CAB2 <CJK>
-CAB3 596E CAB3 <CJK>
-CAB4 7C89 CAB4 <CJK>
-CAB5 7CDE CAB5 <CJK>
-CAB6 7D1B CAB6 <CJK>
-CAB7 96F0 CAB7 <CJK>
-CAB8 6587 CAB8 <CJK>
-CAB9 805E CAB9 <CJK>
-CABA 4E19 CABA <CJK>
-CABB 4F75 CABB <CJK>
-CABC 5175 CABC <CJK>
-CABD 5840 CABD <CJK>
-CABE 5E63 CABE <CJK>
-CABF 5E73 CABF <CJK>
-CAC0 5F0A CAC0 <CJK>
-CAC1 67C4 CAC1 <CJK>
-CAC2 4E26 CAC2 <CJK>
-CAC3 853D CAC3 <CJK>
-CAC4 9589 CAC4 <CJK>
-CAC5 965B CAC5 <CJK>
-CAC6 7C73 CAC6 <CJK>
-CAC7 9801 CAC7 <CJK>
-CAC8 50FB CAC8 <CJK>
-CAC9 58C1 CAC9 <CJK>
-CACA 7656 CACA <CJK>
-CACB 78A7 CACB <CJK>
-CACC 5225 CACC <CJK>
-CACD 77A5 CACD <CJK>
-CACE 8511 CACE <CJK>
-CACF 7B86 CACF <CJK>
-CAD0 504F CAD0 <CJK>
-CAD1 5909 CAD1 <CJK>
-CAD2 7247 CAD2 <CJK>
-CAD3 7BC7 CAD3 <CJK>
-CAD4 7DE8 CAD4 <CJK>
-CAD5 8FBA CAD5 <CJK>
-CAD6 8FD4 CAD6 <CJK>
-CAD7 904D CAD7 <CJK>
-CAD8 4FBF CAD8 <CJK>
-CAD9 52C9 CAD9 <CJK>
-CADA 5A29 CADA <CJK>
-CADB 5F01 CADB <CJK>
-CADC 97AD CADC <CJK>
-CADD 4FDD CADD <CJK>
-CADE 8217 CADE <CJK>
-CADF 92EA CADF <CJK>
-CAE0 5703 CAE0 <CJK>
-CAE1 6355 CAE1 <CJK>
-CAE2 6B69 CAE2 <CJK>
-CAE3 752B CAE3 <CJK>
-CAE4 88DC CAE4 <CJK>
-CAE5 8F14 CAE5 <CJK>
-CAE6 7A42 CAE6 <CJK>
-CAE7 52DF CAE7 <CJK>
-CAE8 5893 CAE8 <CJK>
-CAE9 6155 CAE9 <CJK>
-CAEA 620A CAEA <CJK>
-CAEB 66AE CAEB <CJK>
-CAEC 6BCD CAEC <CJK>
-CAED 7C3F CAED <CJK>
-CAEE 83E9 CAEE <CJK>
-CAEF 5023 CAEF <CJK>
-CAF0 4FF8 CAF0 <CJK>
-CAF1 5305 CAF1 <CJK>
-CAF2 5446 CAF2 <CJK>
-CAF3 5831 CAF3 <CJK>
-CAF4 5949 CAF4 <CJK>
-CAF5 5B9D CAF5 <CJK>
-CAF6 5CF0 CAF6 <CJK>
-CAF7 5CEF CAF7 <CJK>
-CAF8 5D29 CAF8 <CJK>
-CAF9 5E96 CAF9 <CJK>
-CAFA 62B1 CAFA <CJK>
-CAFB 6367 CAFB <CJK>
-CAFC 653E CAFC <CJK>
-CAFD 65B9 CAFD <CJK>
-CAFE 670B CAFE <CJK>
-CBA1 6CD5 CBA1 <CJK>
-CBA2 6CE1 CBA2 <CJK>
-CBA3 70F9 CBA3 <CJK>
-CBA4 7832 CBA4 <CJK>
-CBA5 7E2B CBA5 <CJK>
-CBA6 80DE CBA6 <CJK>
-CBA7 82B3 CBA7 <CJK>
-CBA8 840C CBA8 <CJK>
-CBA9 84EC CBA9 <CJK>
-CBAA 8702 CBAA <CJK>
-CBAB 8912 CBAB <CJK>
-CBAC 8A2A CBAC <CJK>
-CBAD 8C4A CBAD <CJK>
-CBAE 90A6 CBAE <CJK>
-CBAF 92D2 CBAF <CJK>
-CBB0 98FD CBB0 <CJK>
-CBB1 9CF3 CBB1 <CJK>
-CBB2 9D6C CBB2 <CJK>
-CBB3 4E4F CBB3 <CJK>
-CBB4 4EA1 CBB4 <CJK>
-CBB5 508D CBB5 <CJK>
-CBB6 5256 CBB6 <CJK>
-CBB7 574A CBB7 <CJK>
-CBB8 59A8 CBB8 <CJK>
-CBB9 5E3D CBB9 <CJK>
-CBBA 5FD8 CBBA <CJK>
-CBBB 5FD9 CBBB <CJK>
-CBBC 623F CBBC <CJK>
-CBBD 66B4 CBBD <CJK>
-CBBE 671B CBBE <CJK>
-CBBF 67D0 CBBF <CJK>
-CBC0 68D2 CBC0 <CJK>
-CBC1 5192 CBC1 <CJK>
-CBC2 7D21 CBC2 <CJK>
-CBC3 80AA CBC3 <CJK>
-CBC4 81A8 CBC4 <CJK>
-CBC5 8B00 CBC5 <CJK>
-CBC6 8C8C CBC6 <CJK>
-CBC7 8CBF CBC7 <CJK>
-CBC8 927E CBC8 <CJK>
-CBC9 9632 CBC9 <CJK>
-CBCA 5420 CBCA <CJK>
-CBCB 982C CBCB <CJK>
-CBCC 5317 CBCC <CJK>
-CBCD 50D5 CBCD <CJK>
-CBCE 535C CBCE <CJK>
-CBCF 58A8 CBCF <CJK>
-CBD0 64B2 CBD0 <CJK>
-CBD1 6734 CBD1 <CJK>
-CBD2 7267 CBD2 <CJK>
-CBD3 7766 CBD3 <CJK>
-CBD4 7A46 CBD4 <CJK>
-CBD5 91E6 CBD5 <CJK>
-CBD6 52C3 CBD6 <CJK>
-CBD7 6CA1 CBD7 <CJK>
-CBD8 6B86 CBD8 <CJK>
-CBD9 5800 CBD9 <CJK>
-CBDA 5E4C CBDA <CJK>
-CBDB 5954 CBDB <CJK>
-CBDC 672C CBDC <CJK>
-CBDD 7FFB CBDD <CJK>
-CBDE 51E1 CBDE <CJK>
-CBDF 76C6 CBDF <CJK>
-CBE0 6469 CBE0 <CJK>
-CBE1 78E8 CBE1 <CJK>
-CBE2 9B54 CBE2 <CJK>
-CBE3 9EBB CBE3 <CJK>
-CBE4 57CB CBE4 <CJK>
-CBE5 59B9 CBE5 <CJK>
-CBE6 6627 CBE6 <CJK>
-CBE7 679A CBE7 <CJK>
-CBE8 6BCE CBE8 <CJK>
-CBE9 54E9 CBE9 <CJK>
-CBEA 69D9 CBEA <CJK>
-CBEB 5E55 CBEB <CJK>
-CBEC 819C CBEC <CJK>
-CBED 6795 CBED <CJK>
-CBEE 9BAA CBEE <CJK>
-CBEF 67FE CBEF <CJK>
-CBF0 9C52 CBF0 <CJK>
-CBF1 685D CBF1 <CJK>
-CBF2 4EA6 CBF2 <CJK>
-CBF3 4FE3 CBF3 <CJK>
-CBF4 53C8 CBF4 <CJK>
-CBF5 62B9 CBF5 <CJK>
-CBF6 672B CBF6 <CJK>
-CBF7 6CAB CBF7 <CJK>
-CBF8 8FC4 CBF8 <CJK>
-CBF9 4FAD CBF9 <CJK>
-CBFA 7E6D CBFA <CJK>
-CBFB 9EBF CBFB <CJK>
-CBFC 4E07 CBFC <CJK>
-CBFD 6162 CBFD <CJK>
-CBFE 6E80 CBFE <CJK>
-CCA1 6F2B CCA1 <CJK>
-CCA2 8513 CCA2 <CJK>
-CCA3 5473 CCA3 <CJK>
-CCA4 672A CCA4 <CJK>
-CCA5 9B45 CCA5 <CJK>
-CCA6 5DF3 CCA6 <CJK>
-CCA7 7B95 CCA7 <CJK>
-CCA8 5CAC CCA8 <CJK>
-CCA9 5BC6 CCA9 <CJK>
-CCAA 871C CCAA <CJK>
-CCAB 6E4A CCAB <CJK>
-CCAC 84D1 CCAC <CJK>
-CCAD 7A14 CCAD <CJK>
-CCAE 8108 CCAE <CJK>
-CCAF 5999 CCAF <CJK>
-CCB0 7C8D CCB0 <CJK>
-CCB1 6C11 CCB1 <CJK>
-CCB2 7720 CCB2 <CJK>
-CCB3 52D9 CCB3 <CJK>
-CCB4 5922 CCB4 <CJK>
-CCB5 7121 CCB5 <CJK>
-CCB6 725F CCB6 <CJK>
-CCB7 77DB CCB7 <CJK>
-CCB8 9727 CCB8 <CJK>
-CCB9 9D61 CCB9 <CJK>
-CCBA 690B CCBA <CJK>
-CCBB 5A7F CCBB <CJK>
-CCBC 5A18 CCBC <CJK>
-CCBD 51A5 CCBD <CJK>
-CCBE 540D CCBE <CJK>
-CCBF 547D CCBF <CJK>
-CCC0 660E CCC0 <CJK>
-CCC1 76DF CCC1 <CJK>
-CCC2 8FF7 CCC2 <CJK>
-CCC3 9298 CCC3 <CJK>
-CCC4 9CF4 CCC4 <CJK>
-CCC5 59EA CCC5 <CJK>
-CCC6 725D CCC6 <CJK>
-CCC7 6EC5 CCC7 <CJK>
-CCC8 514D CCC8 <CJK>
-CCC9 68C9 CCC9 <CJK>
-CCCA 7DBF CCCA <CJK>
-CCCB 7DEC CCCB <CJK>
-CCCC 9762 CCCC <CJK>
-CCCD 9EBA CCCD <CJK>
-CCCE 6478 CCCE <CJK>
-CCCF 6A21 CCCF <CJK>
-CCD0 8302 CCD0 <CJK>
-CCD1 5984 CCD1 <CJK>
-CCD2 5B5F CCD2 <CJK>
-CCD3 6BDB CCD3 <CJK>
-CCD4 731B CCD4 <CJK>
-CCD5 76F2 CCD5 <CJK>
-CCD6 7DB2 CCD6 <CJK>
-CCD7 8017 CCD7 <CJK>
-CCD8 8499 CCD8 <CJK>
-CCD9 5132 CCD9 <CJK>
-CCDA 6728 CCDA <CJK>
-CCDB 9ED9 CCDB <CJK>
-CCDC 76EE CCDC <CJK>
-CCDD 6762 CCDD <CJK>
-CCDE 52FF CCDE <CJK>
-CCDF 9905 CCDF <CJK>
-CCE0 5C24 CCE0 <CJK>
-CCE1 623B CCE1 <CJK>
-CCE2 7C7E CCE2 <CJK>
-CCE3 8CB0 CCE3 <CJK>
-CCE4 554F CCE4 <CJK>
-CCE5 60B6 CCE5 <CJK>
-CCE6 7D0B CCE6 <CJK>
-CCE7 9580 CCE7 <CJK>
-CCE8 5301 CCE8 <CJK>
-CCE9 4E5F CCE9 <CJK>
-CCEA 51B6 CCEA <CJK>
-CCEB 591C CCEB <CJK>
-CCEC 723A CCEC <CJK>
-CCED 8036 CCED <CJK>
-CCEE 91CE CCEE <CJK>
-CCEF 5F25 CCEF <CJK>
-CCF0 77E2 CCF0 <CJK>
-CCF1 5384 CCF1 <CJK>
-CCF2 5F79 CCF2 <CJK>
-CCF3 7D04 CCF3 <CJK>
-CCF4 85AC CCF4 <CJK>
-CCF5 8A33 CCF5 <CJK>
-CCF6 8E8D CCF6 <CJK>
-CCF7 9756 CCF7 <CJK>
-CCF8 67F3 CCF8 <CJK>
-CCF9 85AE CCF9 <CJK>
-CCFA 9453 CCFA <CJK>
-CCFB 6109 CCFB <CJK>
-CCFC 6108 CCFC <CJK>
-CCFD 6CB9 CCFD <CJK>
-CCFE 7652 CCFE <CJK>
-CDA1 8AED CDA1 <CJK>
-CDA2 8F38 CDA2 <CJK>
-CDA3 552F CDA3 <CJK>
-CDA4 4F51 CDA4 <CJK>
-CDA5 512A CDA5 <CJK>
-CDA6 52C7 CDA6 <CJK>
-CDA7 53CB CDA7 <CJK>
-CDA8 5BA5 CDA8 <CJK>
-CDA9 5E7D CDA9 <CJK>
-CDAA 60A0 CDAA <CJK>
-CDAB 6182 CDAB <CJK>
-CDAC 63D6 CDAC <CJK>
-CDAD 6709 CDAD <CJK>
-CDAE 67DA CDAE <CJK>
-CDAF 6E67 CDAF <CJK>
-CDB0 6D8C CDB0 <CJK>
-CDB1 7336 CDB1 <CJK>
-CDB2 7337 CDB2 <CJK>
-CDB3 7531 CDB3 <CJK>
-CDB4 7950 CDB4 <CJK>
-CDB5 88D5 CDB5 <CJK>
-CDB6 8A98 CDB6 <CJK>
-CDB7 904A CDB7 <CJK>
-CDB8 9091 CDB8 <CJK>
-CDB9 90F5 CDB9 <CJK>
-CDBA 96C4 CDBA <CJK>
-CDBB 878D CDBB <CJK>
-CDBC 5915 CDBC <CJK>
-CDBD 4E88 CDBD <CJK>
-CDBE 4F59 CDBE <CJK>
-CDBF 4E0E CDBF <CJK>
-CDC0 8A89 CDC0 <CJK>
-CDC1 8F3F CDC1 <CJK>
-CDC2 9810 CDC2 <CJK>
-CDC3 50AD CDC3 <CJK>
-CDC4 5E7C CDC4 <CJK>
-CDC5 5996 CDC5 <CJK>
-CDC6 5BB9 CDC6 <CJK>
-CDC7 5EB8 CDC7 <CJK>
-CDC8 63DA CDC8 <CJK>
-CDC9 63FA CDC9 <CJK>
-CDCA 64C1 CDCA <CJK>
-CDCB 66DC CDCB <CJK>
-CDCC 694A CDCC <CJK>
-CDCD 69D8 CDCD <CJK>
-CDCE 6D0B CDCE <CJK>
-CDCF 6EB6 CDCF <CJK>
-CDD0 7194 CDD0 <CJK>
-CDD1 7528 CDD1 <CJK>
-CDD2 7AAF CDD2 <CJK>
-CDD3 7F8A CDD3 <CJK>
-CDD4 8000 CDD4 <CJK>
-CDD5 8449 CDD5 <CJK>
-CDD6 84C9 CDD6 <CJK>
-CDD7 8981 CDD7 <CJK>
-CDD8 8B21 CDD8 <CJK>
-CDD9 8E0A CDD9 <CJK>
-CDDA 9065 CDDA <CJK>
-CDDB 967D CDDB <CJK>
-CDDC 990A CDDC <CJK>
-CDDD 617E CDDD <CJK>
-CDDE 6291 CDDE <CJK>
-CDDF 6B32 CDDF <CJK>
-CDE0 6C83 CDE0 <CJK>
-CDE1 6D74 CDE1 <CJK>
-CDE2 7FCC CDE2 <CJK>
-CDE3 7FFC CDE3 <CJK>
-CDE4 6DC0 CDE4 <CJK>
-CDE5 7F85 CDE5 <CJK>
-CDE6 87BA CDE6 <CJK>
-CDE7 88F8 CDE7 <CJK>
-CDE8 6765 CDE8 <CJK>
-CDE9 83B1 CDE9 <CJK>
-CDEA 983C CDEA <CJK>
-CDEB 96F7 CDEB <CJK>
-CDEC 6D1B CDEC <CJK>
-CDED 7D61 CDED <CJK>
-CDEE 843D CDEE <CJK>
-CDEF 916A CDEF <CJK>
-CDF0 4E71 CDF0 <CJK>
-CDF1 5375 CDF1 <CJK>
-CDF2 5D50 CDF2 <CJK>
-CDF3 6B04 CDF3 <CJK>
-CDF4 6FEB CDF4 <CJK>
-CDF5 85CD CDF5 <CJK>
-CDF6 862D CDF6 <CJK>
-CDF7 89A7 CDF7 <CJK>
-CDF8 5229 CDF8 <CJK>
-CDF9 540F CDF9 <CJK>
-CDFA 5C65 CDFA <CJK>
-CDFB 674E CDFB <CJK>
-CDFC 68A8 CDFC <CJK>
-CDFD 7406 CDFD <CJK>
-CDFE 7483 CDFE <CJK>
-CEA1 75E2 CEA1 <CJK>
-CEA2 88CF CEA2 <CJK>
-CEA3 88E1 CEA3 <CJK>
-CEA4 91CC CEA4 <CJK>
-CEA5 96E2 CEA5 <CJK>
-CEA6 9678 CEA6 <CJK>
-CEA7 5F8B CEA7 <CJK>
-CEA8 7387 CEA8 <CJK>
-CEA9 7ACB CEA9 <CJK>
-CEAA 844E CEAA <CJK>
-CEAB 63A0 CEAB <CJK>
-CEAC 7565 CEAC <CJK>
-CEAD 5289 CEAD <CJK>
-CEAE 6D41 CEAE <CJK>
-CEAF 6E9C CEAF <CJK>
-CEB0 7409 CEB0 <CJK>
-CEB1 7559 CEB1 <CJK>
-CEB2 786B CEB2 <CJK>
-CEB3 7C92 CEB3 <CJK>
-CEB4 9686 CEB4 <CJK>
-CEB5 7ADC CEB5 <CJK>
-CEB6 9F8D CEB6 <CJK>
-CEB7 4FB6 CEB7 <CJK>
-CEB8 616E CEB8 <CJK>
-CEB9 65C5 CEB9 <CJK>
-CEBA 865C CEBA <CJK>
-CEBB 4E86 CEBB <CJK>
-CEBC 4EAE CEBC <CJK>
-CEBD 50DA CEBD <CJK>
-CEBE 4E21 CEBE <CJK>
-CEBF 51CC CEBF <CJK>
-CEC0 5BEE CEC0 <CJK>
-CEC1 6599 CEC1 <CJK>
-CEC2 6881 CEC2 <CJK>
-CEC3 6DBC CEC3 <CJK>
-CEC4 731F CEC4 <CJK>
-CEC5 7642 CEC5 <CJK>
-CEC6 77AD CEC6 <CJK>
-CEC7 7A1C CEC7 <CJK>
-CEC8 7CE7 CEC8 <CJK>
-CEC9 826F CEC9 <CJK>
-CECA 8AD2 CECA <CJK>
-CECB 907C CECB <CJK>
-CECC 91CF CECC <CJK>
-CECD 9675 CECD <CJK>
-CECE 9818 CECE <CJK>
-CECF 529B CECF <CJK>
-CED0 7DD1 CED0 <CJK>
-CED1 502B CED1 <CJK>
-CED2 5398 CED2 <CJK>
-CED3 6797 CED3 <CJK>
-CED4 6DCB CED4 <CJK>
-CED5 71D0 CED5 <CJK>
-CED6 7433 CED6 <CJK>
-CED7 81E8 CED7 <CJK>
-CED8 8F2A CED8 <CJK>
-CED9 96A3 CED9 <CJK>
-CEDA 9C57 CEDA <CJK>
-CEDB 9E9F CEDB <CJK>
-CEDC 7460 CEDC <CJK>
-CEDD 5841 CEDD <CJK>
-CEDE 6D99 CEDE <CJK>
-CEDF 7D2F CEDF <CJK>
-CEE0 985E CEE0 <CJK>
-CEE1 4EE4 CEE1 <CJK>
-CEE2 4F36 CEE2 <CJK>
-CEE3 4F8B CEE3 <CJK>
-CEE4 51B7 CEE4 <CJK>
-CEE5 52B1 CEE5 <CJK>
-CEE6 5DBA CEE6 <CJK>
-CEE7 601C CEE7 <CJK>
-CEE8 73B2 CEE8 <CJK>
-CEE9 793C CEE9 <CJK>
-CEEA 82D3 CEEA <CJK>
-CEEB 9234 CEEB <CJK>
-CEEC 96B7 CEEC <CJK>
-CEED 96F6 CEED <CJK>
-CEEE 970A CEEE <CJK>
-CEEF 9E97 CEEF <CJK>
-CEF0 9F62 CEF0 <CJK>
-CEF1 66A6 CEF1 <CJK>
-CEF2 6B74 CEF2 <CJK>
-CEF3 5217 CEF3 <CJK>
-CEF4 52A3 CEF4 <CJK>
-CEF5 70C8 CEF5 <CJK>
-CEF6 88C2 CEF6 <CJK>
-CEF7 5EC9 CEF7 <CJK>
-CEF8 604B CEF8 <CJK>
-CEF9 6190 CEF9 <CJK>
-CEFA 6F23 CEFA <CJK>
-CEFB 7149 CEFB <CJK>
-CEFC 7C3E CEFC <CJK>
-CEFD 7DF4 CEFD <CJK>
-CEFE 806F CEFE <CJK>
-CFA1 84EE CFA1 U+84EE <CJK>
-CFA2 9023 CFA2 U+9023 <CJK>
-CFA3 932C CFA3 U+932C <CJK>
-CFA4 5442 CFA4 U+5442 <CJK>
-CFA5 9B6F CFA5 U+9B6F <CJK>
-CFA6 6AD3 CFA6 U+6AD3 <CJK>
-CFA7 7089 CFA7 U+7089 <CJK>
-CFA8 8CC2 CFA8 U+8CC2 <CJK>
-CFA9 8DEF CFA9 U+8DEF <CJK>
-CFAA 9732 CFAA U+9732 <CJK>
-CFAB 52B4 CFAB U+52B4 <CJK>
-CFAC 5A41 CFAC U+5A41 <CJK>
-CFAD 5ECA CFAD U+5ECA <CJK>
-CFAE 5F04 CFAE U+5F04 <CJK>
-CFAF 6717 CFAF U+6717 <CJK>
-CFB0 697C CFB0 U+697C <CJK>
-CFB1 6994 CFB1 U+6994 <CJK>
-CFB2 6D6A CFB2 U+6D6A <CJK>
-CFB3 6F0F CFB3 U+6F0F <CJK>
-CFB4 7262 CFB4 U+7262 <CJK>
-CFB5 72FC CFB5 U+72FC <CJK>
-CFB6 7BED CFB6 U+7BED <CJK>
-CFB7 8001 CFB7 U+8001 <CJK>
-CFB8 807E CFB8 U+807E <CJK>
-CFB9 874B CFB9 U+874B <CJK>
-CFBA 90CE CFBA U+90CE <CJK>
-CFBB 516D CFBB U+516D <CJK>
-CFBC 9E93 CFBC U+9E93 <CJK>
-CFBD 7984 CFBD U+7984 <CJK>
-CFBE 808B CFBE U+808B <CJK>
-CFBF 9332 CFBF U+9332 <CJK>
-CFC0 8AD6 CFC0 U+8AD6 <CJK>
-CFC1 502D CFC1 U+502D <CJK>
-CFC2 548C CFC2 U+548C <CJK>
-CFC3 8A71 CFC3 U+8A71 <CJK>
-CFC4 6B6A CFC4 U+6B6A <CJK>
-CFC5 8CC4 CFC5 U+8CC4 <CJK>
-CFC6 8107 CFC6 U+8107 <CJK>
-CFC7 60D1 CFC7 U+60D1 <CJK>
-CFC8 67A0 CFC8 U+67A0 <CJK>
-CFC9 9DF2 CFC9 U+9DF2 <CJK>
-CFCA 4E99 CFCA U+4E99 <CJK>
-CFCB 4E98 CFCB U+4E98 <CJK>
-CFCC 9C10 CFCC U+9C10 <CJK>
-CFCD 8A6B CFCD U+8A6B <CJK>
-CFCE 85C1 CFCE U+85C1 <CJK>
-CFCF 8568 CFCF U+8568 <CJK>
-CFD0 6900 CFD0 U+6900 <CJK>
-CFD1 6E7E CFD1 U+6E7E <CJK>
-CFD2 7897 CFD2 U+7897 <CJK>
-CFD3 8155 CFD3 U+8155 <CJK>
-D0A1 5F0C D0A1 <CJK>
-D0A2 4E10 D0A2 <CJK>
-D0A3 4E15 D0A3 <CJK>
-D0A4 4E2A D0A4 <CJK>
-D0A5 4E31 D0A5 <CJK>
-D0A6 4E36 D0A6 <CJK>
-D0A7 4E3C D0A7 <CJK>
-D0A8 4E3F D0A8 <CJK>
-D0A9 4E42 D0A9 <CJK>
-D0AA 4E56 D0AA <CJK>
-D0AB 4E58 D0AB <CJK>
-D0AC 4E82 D0AC <CJK>
-D0AD 4E85 D0AD <CJK>
-D0AE 8C6B D0AE <CJK>
-D0AF 4E8A D0AF <CJK>
-D0B0 8212 D0B0 <CJK>
-D0B1 5F0D D0B1 <CJK>
-D0B2 4E8E D0B2 <CJK>
-D0B3 4E9E D0B3 <CJK>
-D0B4 4E9F D0B4 <CJK>
-D0B5 4EA0 D0B5 <CJK>
-D0B6 4EA2 D0B6 <CJK>
-D0B7 4EB0 D0B7 <CJK>
-D0B8 4EB3 D0B8 <CJK>
-D0B9 4EB6 D0B9 <CJK>
-D0BA 4ECE D0BA <CJK>
-D0BB 4ECD D0BB <CJK>
-D0BC 4EC4 D0BC <CJK>
-D0BD 4EC6 D0BD <CJK>
-D0BE 4EC2 D0BE <CJK>
-D0BF 4ED7 D0BF <CJK>
-D0C0 4EDE D0C0 <CJK>
-D0C1 4EED D0C1 <CJK>
-D0C2 4EDF D0C2 <CJK>
-D0C3 4EF7 D0C3 <CJK>
-D0C4 4F09 D0C4 <CJK>
-D0C5 4F5A D0C5 <CJK>
-D0C6 4F30 D0C6 <CJK>
-D0C7 4F5B D0C7 <CJK>
-D0C8 4F5D D0C8 <CJK>
-D0C9 4F57 D0C9 <CJK>
-D0CA 4F47 D0CA <CJK>
-D0CB 4F76 D0CB <CJK>
-D0CC 4F88 D0CC <CJK>
-D0CD 4F8F D0CD <CJK>
-D0CE 4F98 D0CE <CJK>
-D0CF 4F7B D0CF <CJK>
-D0D0 4F69 D0D0 <CJK>
-D0D1 4F70 D0D1 <CJK>
-D0D2 4F91 D0D2 <CJK>
-D0D3 4F6F D0D3 <CJK>
-D0D4 4F86 D0D4 <CJK>
-D0D5 4F96 D0D5 <CJK>
-D0D6 5118 D0D6 <CJK>
-D0D7 4FD4 D0D7 <CJK>
-D0D8 4FDF D0D8 <CJK>
-D0D9 4FCE D0D9 <CJK>
-D0DA 4FD8 D0DA <CJK>
-D0DB 4FDB D0DB <CJK>
-D0DC 4FD1 D0DC <CJK>
-D0DD 4FDA D0DD <CJK>
-D0DE 4FD0 D0DE <CJK>
-D0DF 4FE4 D0DF <CJK>
-D0E0 4FE5 D0E0 <CJK>
-D0E1 501A D0E1 <CJK>
-D0E2 5028 D0E2 <CJK>
-D0E3 5014 D0E3 <CJK>
-D0E4 502A D0E4 <CJK>
-D0E5 5025 D0E5 <CJK>
-D0E6 5005 D0E6 <CJK>
-D0E7 4F1C D0E7 <CJK>
-D0E8 4FF6 D0E8 <CJK>
-D0E9 5021 D0E9 <CJK>
-D0EA 5029 D0EA <CJK>
-D0EB 502C D0EB <CJK>
-D0EC 4FFE D0EC <CJK>
-D0ED 4FEF D0ED <CJK>
-D0EE 5011 D0EE <CJK>
-D0EF 5006 D0EF <CJK>
-D0F0 5043 D0F0 <CJK>
-D0F1 5047 D0F1 <CJK>
-D0F2 6703 D0F2 <CJK>
-D0F3 5055 D0F3 <CJK>
-D0F4 5050 D0F4 <CJK>
-D0F5 5048 D0F5 <CJK>
-D0F6 505A D0F6 <CJK>
-D0F7 5056 D0F7 <CJK>
-D0F8 506C D0F8 <CJK>
-D0F9 5078 D0F9 <CJK>
-D0FA 5080 D0FA <CJK>
-D0FB 509A D0FB <CJK>
-D0FC 5085 D0FC <CJK>
-D0FD 50B4 D0FD <CJK>
-D0FE 50B2 D0FE <CJK>
-D1A1 50C9 D1A1 <CJK>
-D1A2 50CA D1A2 <CJK>
-D1A3 50B3 D1A3 <CJK>
-D1A4 50C2 D1A4 <CJK>
-D1A5 50D6 D1A5 <CJK>
-D1A6 50DE D1A6 <CJK>
-D1A7 50E5 D1A7 <CJK>
-D1A8 50ED D1A8 <CJK>
-D1A9 50E3 D1A9 <CJK>
-D1AA 50EE D1AA <CJK>
-D1AB 50F9 D1AB <CJK>
-D1AC 50F5 D1AC <CJK>
-D1AD 5109 D1AD <CJK>
-D1AE 5101 D1AE <CJK>
-D1AF 5102 D1AF <CJK>
-D1B0 5116 D1B0 <CJK>
-D1B1 5115 D1B1 <CJK>
-D1B2 5114 D1B2 <CJK>
-D1B3 511A D1B3 <CJK>
-D1B4 5121 D1B4 <CJK>
-D1B5 513A D1B5 <CJK>
-D1B6 5137 D1B6 <CJK>
-D1B7 513C D1B7 <CJK>
-D1B8 513B D1B8 <CJK>
-D1B9 513F D1B9 <CJK>
-D1BA 5140 D1BA <CJK>
-D1BB 5152 D1BB <CJK>
-D1BC 514C D1BC <CJK>
-D1BD 5154 D1BD <CJK>
-D1BE 5162 D1BE <CJK>
-D1BF 7AF8 D1BF <CJK>
-D1C0 5169 D1C0 <CJK>
-D1C1 516A D1C1 <CJK>
-D1C2 516E D1C2 <CJK>
-D1C3 5180 D1C3 <CJK>
-D1C4 5182 D1C4 <CJK>
-D1C5 56D8 D1C5 <CJK>
-D1C6 518C D1C6 <CJK>
-D1C7 5189 D1C7 <CJK>
-D1C8 518F D1C8 <CJK>
-D1C9 5191 D1C9 <CJK>
-D1CA 5193 D1CA <CJK>
-D1CB 5195 D1CB <CJK>
-D1CC 5196 D1CC <CJK>
-D1CD 51A4 D1CD <CJK>
-D1CE 51A6 D1CE <CJK>
-D1CF 51A2 D1CF <CJK>
-D1D0 51A9 D1D0 <CJK>
-D1D1 51AA D1D1 <CJK>
-D1D2 51AB D1D2 <CJK>
-D1D3 51B3 D1D3 <CJK>
-D1D4 51B1 D1D4 <CJK>
-D1D5 51B2 D1D5 <CJK>
-D1D6 51B0 D1D6 <CJK>
-D1D7 51B5 D1D7 <CJK>
-D1D8 51BD D1D8 <CJK>
-D1D9 51C5 D1D9 <CJK>
-D1DA 51C9 D1DA <CJK>
-D1DB 51DB D1DB <CJK>
-D1DC 51E0 D1DC <CJK>
-D1DD 8655 D1DD <CJK>
-D1DE 51E9 D1DE <CJK>
-D1DF 51ED D1DF <CJK>
-D1E0 51F0 D1E0 <CJK>
-D1E1 51F5 D1E1 <CJK>
-D1E2 51FE D1E2 <CJK>
-D1E3 5204 D1E3 <CJK>
-D1E4 520B D1E4 <CJK>
-D1E5 5214 D1E5 <CJK>
-D1E6 520E D1E6 <CJK>
-D1E7 5227 D1E7 <CJK>
-D1E8 522A D1E8 <CJK>
-D1E9 522E D1E9 <CJK>
-D1EA 5233 D1EA <CJK>
-D1EB 5239 D1EB <CJK>
-D1EC 524F D1EC <CJK>
-D1ED 5244 D1ED <CJK>
-D1EE 524B D1EE <CJK>
-D1EF 524C D1EF <CJK>
-D1F0 525E D1F0 <CJK>
-D1F1 5254 D1F1 <CJK>
-D1F2 526A D1F2 <CJK>
-D1F3 5274 D1F3 <CJK>
-D1F4 5269 D1F4 <CJK>
-D1F5 5273 D1F5 <CJK>
-D1F6 527F D1F6 <CJK>
-D1F7 527D D1F7 <CJK>
-D1F8 528D D1F8 <CJK>
-D1F9 5294 D1F9 <CJK>
-D1FA 5292 D1FA <CJK>
-D1FB 5271 D1FB <CJK>
-D1FC 5288 D1FC <CJK>
-D1FD 5291 D1FD <CJK>
-D1FE 8FA8 D1FE <CJK>
-D2A1 8FA7 D2A1 <CJK>
-D2A2 52AC D2A2 <CJK>
-D2A3 52AD D2A3 <CJK>
-D2A4 52BC D2A4 <CJK>
-D2A5 52B5 D2A5 <CJK>
-D2A6 52C1 D2A6 <CJK>
-D2A7 52CD D2A7 <CJK>
-D2A8 52D7 D2A8 <CJK>
-D2A9 52DE D2A9 <CJK>
-D2AA 52E3 D2AA <CJK>
-D2AB 52E6 D2AB <CJK>
-D2AC 98ED D2AC <CJK>
-D2AD 52E0 D2AD <CJK>
-D2AE 52F3 D2AE <CJK>
-D2AF 52F5 D2AF <CJK>
-D2B0 52F8 D2B0 <CJK>
-D2B1 52F9 D2B1 <CJK>
-D2B2 5306 D2B2 <CJK>
-D2B3 5308 D2B3 <CJK>
-D2B4 7538 D2B4 <CJK>
-D2B5 530D D2B5 <CJK>
-D2B6 5310 D2B6 <CJK>
-D2B7 530F D2B7 <CJK>
-D2B8 5315 D2B8 <CJK>
-D2B9 531A D2B9 <CJK>
-D2BA 5323 D2BA <CJK>
-D2BB 532F D2BB <CJK>
-D2BC 5331 D2BC <CJK>
-D2BD 5333 D2BD <CJK>
-D2BE 5338 D2BE <CJK>
-D2BF 5340 D2BF <CJK>
-D2C0 5346 D2C0 <CJK>
-D2C1 5345 D2C1 <CJK>
-D2C2 4E17 D2C2 <CJK>
-D2C3 5349 D2C3 <CJK>
-D2C4 534D D2C4 <CJK>
-D2C5 51D6 D2C5 <CJK>
-D2C6 535E D2C6 <CJK>
-D2C7 5369 D2C7 <CJK>
-D2C8 536E D2C8 <CJK>
-D2C9 5918 D2C9 <CJK>
-D2CA 537B D2CA <CJK>
-D2CB 5377 D2CB <CJK>
-D2CC 5382 D2CC <CJK>
-D2CD 5396 D2CD <CJK>
-D2CE 53A0 D2CE <CJK>
-D2CF 53A6 D2CF <CJK>
-D2D0 53A5 D2D0 <CJK>
-D2D1 53AE D2D1 <CJK>
-D2D2 53B0 D2D2 <CJK>
-D2D3 53B6 D2D3 <CJK>
-D2D4 53C3 D2D4 <CJK>
-D2D5 7C12 D2D5 <CJK>
-D2D6 96D9 D2D6 <CJK>
-D2D7 53DF D2D7 <CJK>
-D2D8 66FC D2D8 <CJK>
-D2D9 71EE D2D9 <CJK>
-D2DA 53EE D2DA <CJK>
-D2DB 53E8 D2DB <CJK>
-D2DC 53ED D2DC <CJK>
-D2DD 53FA D2DD <CJK>
-D2DE 5401 D2DE <CJK>
-D2DF 543D D2DF <CJK>
-D2E0 5440 D2E0 <CJK>
-D2E1 542C D2E1 <CJK>
-D2E2 542D D2E2 <CJK>
-D2E3 543C D2E3 <CJK>
-D2E4 542E D2E4 <CJK>
-D2E5 5436 D2E5 <CJK>
-D2E6 5429 D2E6 <CJK>
-D2E7 541D D2E7 <CJK>
-D2E8 544E D2E8 <CJK>
-D2E9 548F D2E9 <CJK>
-D2EA 5475 D2EA <CJK>
-D2EB 548E D2EB <CJK>
-D2EC 545F D2EC <CJK>
-D2ED 5471 D2ED <CJK>
-D2EE 5477 D2EE <CJK>
-D2EF 5470 D2EF <CJK>
-D2F0 5492 D2F0 <CJK>
-D2F1 547B D2F1 <CJK>
-D2F2 5480 D2F2 <CJK>
-D2F3 5476 D2F3 <CJK>
-D2F4 5484 D2F4 <CJK>
-D2F5 5490 D2F5 <CJK>
-D2F6 5486 D2F6 <CJK>
-D2F7 54C7 D2F7 <CJK>
-D2F8 54A2 D2F8 <CJK>
-D2F9 54B8 D2F9 <CJK>
-D2FA 54A5 D2FA <CJK>
-D2FB 54AC D2FB <CJK>
-D2FC 54C4 D2FC <CJK>
-D2FD 54C8 D2FD <CJK>
-D2FE 54A8 D2FE <CJK>
-D3A1 54AB D3A1 <CJK>
-D3A2 54C2 D3A2 <CJK>
-D3A3 54A4 D3A3 <CJK>
-D3A4 54BE D3A4 <CJK>
-D3A5 54BC D3A5 <CJK>
-D3A6 54D8 D3A6 <CJK>
-D3A7 54E5 D3A7 <CJK>
-D3A8 54E6 D3A8 <CJK>
-D3A9 550F D3A9 <CJK>
-D3AA 5514 D3AA <CJK>
-D3AB 54FD D3AB <CJK>
-D3AC 54EE D3AC <CJK>
-D3AD 54ED D3AD <CJK>
-D3AE 54FA D3AE <CJK>
-D3AF 54E2 D3AF <CJK>
-D3B0 5539 D3B0 <CJK>
-D3B1 5540 D3B1 <CJK>
-D3B2 5563 D3B2 <CJK>
-D3B3 554C D3B3 <CJK>
-D3B4 552E D3B4 <CJK>
-D3B5 555C D3B5 <CJK>
-D3B6 5545 D3B6 <CJK>
-D3B7 5556 D3B7 <CJK>
-D3B8 5557 D3B8 <CJK>
-D3B9 5538 D3B9 <CJK>
-D3BA 5533 D3BA <CJK>
-D3BB 555D D3BB <CJK>
-D3BC 5599 D3BC <CJK>
-D3BD 5580 D3BD <CJK>
-D3BE 54AF D3BE <CJK>
-D3BF 558A D3BF <CJK>
-D3C0 559F D3C0 <CJK>
-D3C1 557B D3C1 <CJK>
-D3C2 557E D3C2 <CJK>
-D3C3 5598 D3C3 <CJK>
-D3C4 559E D3C4 <CJK>
-D3C5 55AE D3C5 <CJK>
-D3C6 557C D3C6 <CJK>
-D3C7 5583 D3C7 <CJK>
-D3C8 55A9 D3C8 <CJK>
-D3C9 5587 D3C9 <CJK>
-D3CA 55A8 D3CA <CJK>
-D3CB 55DA D3CB <CJK>
-D3CC 55C5 D3CC <CJK>
-D3CD 55DF D3CD <CJK>
-D3CE 55C4 D3CE <CJK>
-D3CF 55DC D3CF <CJK>
-D3D0 55E4 D3D0 <CJK>
-D3D1 55D4 D3D1 <CJK>
-D3D2 5614 D3D2 <CJK>
-D3D3 55F7 D3D3 <CJK>
-D3D4 5616 D3D4 <CJK>
-D3D5 55FE D3D5 <CJK>
-D3D6 55FD D3D6 <CJK>
-D3D7 561B D3D7 <CJK>
-D3D8 55F9 D3D8 <CJK>
-D3D9 564E D3D9 <CJK>
-D3DA 5650 D3DA <CJK>
-D3DB 71DF D3DB <CJK>
-D3DC 5634 D3DC <CJK>
-D3DD 5636 D3DD <CJK>
-D3DE 5632 D3DE <CJK>
-D3DF 5638 D3DF <CJK>
-D3E0 566B D3E0 <CJK>
-D3E1 5664 D3E1 <CJK>
-D3E2 562F D3E2 <CJK>
-D3E3 566C D3E3 <CJK>
-D3E4 566A D3E4 <CJK>
-D3E5 5686 D3E5 <CJK>
-D3E6 5680 D3E6 <CJK>
-D3E7 568A D3E7 <CJK>
-D3E8 56A0 D3E8 <CJK>
-D3E9 5694 D3E9 <CJK>
-D3EA 568F D3EA <CJK>
-D3EB 56A5 D3EB <CJK>
-D3EC 56AE D3EC <CJK>
-D3ED 56B6 D3ED <CJK>
-D3EE 56B4 D3EE <CJK>
-D3EF 56C2 D3EF <CJK>
-D3F0 56BC D3F0 <CJK>
-D3F1 56C1 D3F1 <CJK>
-D3F2 56C3 D3F2 <CJK>
-D3F3 56C0 D3F3 <CJK>
-D3F4 56C8 D3F4 <CJK>
-D3F5 56CE D3F5 <CJK>
-D3F6 56D1 D3F6 <CJK>
-D3F7 56D3 D3F7 <CJK>
-D3F8 56D7 D3F8 <CJK>
-D3F9 56EE D3F9 <CJK>
-D3FA 56F9 D3FA <CJK>
-D3FB 5700 D3FB <CJK>
-D3FC 56FF D3FC <CJK>
-D3FD 5704 D3FD <CJK>
-D3FE 5709 D3FE <CJK>
-D4A1 5708 D4A1 <CJK>
-D4A2 570B D4A2 <CJK>
-D4A3 570D D4A3 <CJK>
-D4A4 5713 D4A4 <CJK>
-D4A5 5718 D4A5 <CJK>
-D4A6 5716 D4A6 <CJK>
-D4A7 55C7 D4A7 <CJK>
-D4A8 571C D4A8 <CJK>
-D4A9 5726 D4A9 <CJK>
-D4AA 5737 D4AA <CJK>
-D4AB 5738 D4AB <CJK>
-D4AC 574E D4AC <CJK>
-D4AD 573B D4AD <CJK>
-D4AE 5740 D4AE <CJK>
-D4AF 574F D4AF <CJK>
-D4B0 5769 D4B0 <CJK>
-D4B1 57C0 D4B1 <CJK>
-D4B2 5788 D4B2 <CJK>
-D4B3 5761 D4B3 <CJK>
-D4B4 577F D4B4 <CJK>
-D4B5 5789 D4B5 <CJK>
-D4B6 5793 D4B6 <CJK>
-D4B7 57A0 D4B7 <CJK>
-D4B8 57B3 D4B8 <CJK>
-D4B9 57A4 D4B9 <CJK>
-D4BA 57AA D4BA <CJK>
-D4BB 57B0 D4BB <CJK>
-D4BC 57C3 D4BC <CJK>
-D4BD 57C6 D4BD <CJK>
-D4BE 57D4 D4BE <CJK>
-D4BF 57D2 D4BF <CJK>
-D4C0 57D3 D4C0 <CJK>
-D4C1 580A D4C1 <CJK>
-D4C2 57D6 D4C2 <CJK>
-D4C3 57E3 D4C3 <CJK>
-D4C4 580B D4C4 <CJK>
-D4C5 5819 D4C5 <CJK>
-D4C6 581D D4C6 <CJK>
-D4C7 5872 D4C7 <CJK>
-D4C8 5821 D4C8 <CJK>
-D4C9 5862 D4C9 <CJK>
-D4CA 584B D4CA <CJK>
-D4CB 5870 D4CB <CJK>
-D4CC 6BC0 D4CC <CJK>
-D4CD 5852 D4CD <CJK>
-D4CE 583D D4CE <CJK>
-D4CF 5879 D4CF <CJK>
-D4D0 5885 D4D0 <CJK>
-D4D1 58B9 D4D1 <CJK>
-D4D2 589F D4D2 <CJK>
-D4D3 58AB D4D3 <CJK>
-D4D4 58BA D4D4 <CJK>
-D4D5 58DE D4D5 <CJK>
-D4D6 58BB D4D6 <CJK>
-D4D7 58B8 D4D7 <CJK>
-D4D8 58AE D4D8 <CJK>
-D4D9 58C5 D4D9 <CJK>
-D4DA 58D3 D4DA <CJK>
-D4DB 58D1 D4DB <CJK>
-D4DC 58D7 D4DC <CJK>
-D4DD 58D9 D4DD <CJK>
-D4DE 58D8 D4DE <CJK>
-D4DF 58E5 D4DF <CJK>
-D4E0 58DC D4E0 <CJK>
-D4E1 58E4 D4E1 <CJK>
-D4E2 58DF D4E2 <CJK>
-D4E3 58EF D4E3 <CJK>
-D4E4 58FA D4E4 <CJK>
-D4E5 58F9 D4E5 <CJK>
-D4E6 58FB D4E6 <CJK>
-D4E7 58FC D4E7 <CJK>
-D4E8 58FD D4E8 <CJK>
-D4E9 5902 D4E9 <CJK>
-D4EA 590A D4EA <CJK>
-D4EB 5910 D4EB <CJK>
-D4EC 591B D4EC <CJK>
-D4ED 68A6 D4ED <CJK>
-D4EE 5925 D4EE <CJK>
-D4EF 592C D4EF <CJK>
-D4F0 592D D4F0 <CJK>
-D4F1 5932 D4F1 <CJK>
-D4F2 5938 D4F2 <CJK>
-D4F3 593E D4F3 <CJK>
-D4F4 7AD2 D4F4 <CJK>
-D4F5 5955 D4F5 <CJK>
-D4F6 5950 D4F6 <CJK>
-D4F7 594E D4F7 <CJK>
-D4F8 595A D4F8 <CJK>
-D4F9 5958 D4F9 <CJK>
-D4FA 5962 D4FA <CJK>
-D4FB 5960 D4FB <CJK>
-D4FC 5967 D4FC <CJK>
-D4FD 596C D4FD <CJK>
-D4FE 5969 D4FE <CJK>
-D5A1 5978 D5A1 <CJK>
-D5A2 5981 D5A2 <CJK>
-D5A3 599D D5A3 <CJK>
-D5A4 4F5E D5A4 <CJK>
-D5A5 4FAB D5A5 <CJK>
-D5A6 59A3 D5A6 <CJK>
-D5A7 59B2 D5A7 <CJK>
-D5A8 59C6 D5A8 <CJK>
-D5A9 59E8 D5A9 <CJK>
-D5AA 59DC D5AA <CJK>
-D5AB 598D D5AB <CJK>
-D5AC 59D9 D5AC <CJK>
-D5AD 59DA D5AD <CJK>
-D5AE 5A25 D5AE <CJK>
-D5AF 5A1F D5AF <CJK>
-D5B0 5A11 D5B0 <CJK>
-D5B1 5A1C D5B1 <CJK>
-D5B2 5A09 D5B2 <CJK>
-D5B3 5A1A D5B3 <CJK>
-D5B4 5A40 D5B4 <CJK>
-D5B5 5A6C D5B5 <CJK>
-D5B6 5A49 D5B6 <CJK>
-D5B7 5A35 D5B7 <CJK>
-D5B8 5A36 D5B8 <CJK>
-D5B9 5A62 D5B9 <CJK>
-D5BA 5A6A D5BA <CJK>
-D5BB 5A9A D5BB <CJK>
-D5BC 5ABC D5BC <CJK>
-D5BD 5ABE D5BD <CJK>
-D5BE 5ACB D5BE <CJK>
-D5BF 5AC2 D5BF <CJK>
-D5C0 5ABD D5C0 <CJK>
-D5C1 5AE3 D5C1 <CJK>
-D5C2 5AD7 D5C2 <CJK>
-D5C3 5AE6 D5C3 <CJK>
-D5C4 5AE9 D5C4 <CJK>
-D5C5 5AD6 D5C5 <CJK>
-D5C6 5AFA D5C6 <CJK>
-D5C7 5AFB D5C7 <CJK>
-D5C8 5B0C D5C8 <CJK>
-D5C9 5B0B D5C9 <CJK>
-D5CA 5B16 D5CA <CJK>
-D5CB 5B32 D5CB <CJK>
-D5CC 5AD0 D5CC <CJK>
-D5CD 5B2A D5CD <CJK>
-D5CE 5B36 D5CE <CJK>
-D5CF 5B3E D5CF <CJK>
-D5D0 5B43 D5D0 <CJK>
-D5D1 5B45 D5D1 <CJK>
-D5D2 5B40 D5D2 <CJK>
-D5D3 5B51 D5D3 <CJK>
-D5D4 5B55 D5D4 <CJK>
-D5D5 5B5A D5D5 <CJK>
-D5D6 5B5B D5D6 <CJK>
-D5D7 5B65 D5D7 <CJK>
-D5D8 5B69 D5D8 <CJK>
-D5D9 5B70 D5D9 <CJK>
-D5DA 5B73 D5DA <CJK>
-D5DB 5B75 D5DB <CJK>
-D5DC 5B78 D5DC <CJK>
-D5DD 6588 D5DD <CJK>
-D5DE 5B7A D5DE <CJK>
-D5DF 5B80 D5DF <CJK>
-D5E0 5B83 D5E0 <CJK>
-D5E1 5BA6 D5E1 <CJK>
-D5E2 5BB8 D5E2 <CJK>
-D5E3 5BC3 D5E3 <CJK>
-D5E4 5BC7 D5E4 <CJK>
-D5E5 5BC9 D5E5 <CJK>
-D5E6 5BD4 D5E6 <CJK>
-D5E7 5BD0 D5E7 <CJK>
-D5E8 5BE4 D5E8 <CJK>
-D5E9 5BE6 D5E9 <CJK>
-D5EA 5BE2 D5EA <CJK>
-D5EB 5BDE D5EB <CJK>
-D5EC 5BE5 D5EC <CJK>
-D5ED 5BEB D5ED <CJK>
-D5EE 5BF0 D5EE <CJK>
-D5EF 5BF6 D5EF <CJK>
-D5F0 5BF3 D5F0 <CJK>
-D5F1 5C05 D5F1 <CJK>
-D5F2 5C07 D5F2 <CJK>
-D5F3 5C08 D5F3 <CJK>
-D5F4 5C0D D5F4 <CJK>
-D5F5 5C13 D5F5 <CJK>
-D5F6 5C20 D5F6 <CJK>
-D5F7 5C22 D5F7 <CJK>
-D5F8 5C28 D5F8 <CJK>
-D5F9 5C38 D5F9 <CJK>
-D5FA 5C39 D5FA <CJK>
-D5FB 5C41 D5FB <CJK>
-D5FC 5C46 D5FC <CJK>
-D5FD 5C4E D5FD <CJK>
-D5FE 5C53 D5FE <CJK>
-D6A1 5C50 D6A1 <CJK>
-D6A2 5C4F D6A2 <CJK>
-D6A3 5B71 D6A3 <CJK>
-D6A4 5C6C D6A4 <CJK>
-D6A5 5C6E D6A5 <CJK>
-D6A6 4E62 D6A6 <CJK>
-D6A7 5C76 D6A7 <CJK>
-D6A8 5C79 D6A8 <CJK>
-D6A9 5C8C D6A9 <CJK>
-D6AA 5C91 D6AA <CJK>
-D6AB 5C94 D6AB <CJK>
-D6AC 599B D6AC <CJK>
-D6AD 5CAB D6AD <CJK>
-D6AE 5CBB D6AE <CJK>
-D6AF 5CB6 D6AF <CJK>
-D6B0 5CBC D6B0 <CJK>
-D6B1 5CB7 D6B1 <CJK>
-D6B2 5CC5 D6B2 <CJK>
-D6B3 5CBE D6B3 <CJK>
-D6B4 5CC7 D6B4 <CJK>
-D6B5 5CD9 D6B5 <CJK>
-D6B6 5CE9 D6B6 <CJK>
-D6B7 5CFD D6B7 <CJK>
-D6B8 5CFA D6B8 <CJK>
-D6B9 5CED D6B9 <CJK>
-D6BA 5D8C D6BA <CJK>
-D6BB 5CEA D6BB <CJK>
-D6BC 5D0B D6BC <CJK>
-D6BD 5D15 D6BD <CJK>
-D6BE 5D17 D6BE <CJK>
-D6BF 5D5C D6BF <CJK>
-D6C0 5D1F D6C0 <CJK>
-D6C1 5D1B D6C1 <CJK>
-D6C2 5D11 D6C2 <CJK>
-D6C3 5D14 D6C3 <CJK>
-D6C4 5D22 D6C4 <CJK>
-D6C5 5D1A D6C5 <CJK>
-D6C6 5D19 D6C6 <CJK>
-D6C7 5D18 D6C7 <CJK>
-D6C8 5D4C D6C8 <CJK>
-D6C9 5D52 D6C9 <CJK>
-D6CA 5D4E D6CA <CJK>
-D6CB 5D4B D6CB <CJK>
-D6CC 5D6C D6CC <CJK>
-D6CD 5D73 D6CD <CJK>
-D6CE 5D76 D6CE <CJK>
-D6CF 5D87 D6CF <CJK>
-D6D0 5D84 D6D0 <CJK>
-D6D1 5D82 D6D1 <CJK>
-D6D2 5DA2 D6D2 <CJK>
-D6D3 5D9D D6D3 <CJK>
-D6D4 5DAC D6D4 <CJK>
-D6D5 5DAE D6D5 <CJK>
-D6D6 5DBD D6D6 <CJK>
-D6D7 5D90 D6D7 <CJK>
-D6D8 5DB7 D6D8 <CJK>
-D6D9 5DBC D6D9 <CJK>
-D6DA 5DC9 D6DA <CJK>
-D6DB 5DCD D6DB <CJK>
-D6DC 5DD3 D6DC <CJK>
-D6DD 5DD2 D6DD <CJK>
-D6DE 5DD6 D6DE <CJK>
-D6DF 5DDB D6DF <CJK>
-D6E0 5DEB D6E0 <CJK>
-D6E1 5DF2 D6E1 <CJK>
-D6E2 5DF5 D6E2 <CJK>
-D6E3 5E0B D6E3 <CJK>
-D6E4 5E1A D6E4 <CJK>
-D6E5 5E19 D6E5 <CJK>
-D6E6 5E11 D6E6 <CJK>
-D6E7 5E1B D6E7 <CJK>
-D6E8 5E36 D6E8 <CJK>
-D6E9 5E37 D6E9 <CJK>
-D6EA 5E44 D6EA <CJK>
-D6EB 5E43 D6EB <CJK>
-D6EC 5E40 D6EC <CJK>
-D6ED 5E4E D6ED <CJK>
-D6EE 5E57 D6EE <CJK>
-D6EF 5E54 D6EF <CJK>
-D6F0 5E5F D6F0 <CJK>
-D6F1 5E62 D6F1 <CJK>
-D6F2 5E64 D6F2 <CJK>
-D6F3 5E47 D6F3 <CJK>
-D6F4 5E75 D6F4 <CJK>
-D6F5 5E76 D6F5 <CJK>
-D6F6 5E7A D6F6 <CJK>
-D6F7 9EBC D6F7 <CJK>
-D6F8 5E7F D6F8 <CJK>
-D6F9 5EA0 D6F9 <CJK>
-D6FA 5EC1 D6FA <CJK>
-D6FB 5EC2 D6FB <CJK>
-D6FC 5EC8 D6FC <CJK>
-D6FD 5ED0 D6FD <CJK>
-D6FE 5ECF D6FE <CJK>
-D7A1 5ED6 D7A1 <CJK>
-D7A2 5EE3 D7A2 <CJK>
-D7A3 5EDD D7A3 <CJK>
-D7A4 5EDA D7A4 <CJK>
-D7A5 5EDB D7A5 <CJK>
-D7A6 5EE2 D7A6 <CJK>
-D7A7 5EE1 D7A7 <CJK>
-D7A8 5EE8 D7A8 <CJK>
-D7A9 5EE9 D7A9 <CJK>
-D7AA 5EEC D7AA <CJK>
-D7AB 5EF1 D7AB <CJK>
-D7AC 5EF3 D7AC <CJK>
-D7AD 5EF0 D7AD <CJK>
-D7AE 5EF4 D7AE <CJK>
-D7AF 5EF8 D7AF <CJK>
-D7B0 5EFE D7B0 <CJK>
-D7B1 5F03 D7B1 <CJK>
-D7B2 5F09 D7B2 <CJK>
-D7B3 5F5D D7B3 <CJK>
-D7B4 5F5C D7B4 <CJK>
-D7B5 5F0B D7B5 <CJK>
-D7B6 5F11 D7B6 <CJK>
-D7B7 5F16 D7B7 <CJK>
-D7B8 5F29 D7B8 <CJK>
-D7B9 5F2D D7B9 <CJK>
-D7BA 5F38 D7BA <CJK>
-D7BB 5F41 D7BB <CJK>
-D7BC 5F48 D7BC <CJK>
-D7BD 5F4C D7BD <CJK>
-D7BE 5F4E D7BE <CJK>
-D7BF 5F2F D7BF <CJK>
-D7C0 5F51 D7C0 <CJK>
-D7C1 5F56 D7C1 <CJK>
-D7C2 5F57 D7C2 <CJK>
-D7C3 5F59 D7C3 <CJK>
-D7C4 5F61 D7C4 <CJK>
-D7C5 5F6D D7C5 <CJK>
-D7C6 5F73 D7C6 <CJK>
-D7C7 5F77 D7C7 <CJK>
-D7C8 5F83 D7C8 <CJK>
-D7C9 5F82 D7C9 <CJK>
-D7CA 5F7F D7CA <CJK>
-D7CB 5F8A D7CB <CJK>
-D7CC 5F88 D7CC <CJK>
-D7CD 5F91 D7CD <CJK>
-D7CE 5F87 D7CE <CJK>
-D7CF 5F9E D7CF <CJK>
-D7D0 5F99 D7D0 <CJK>
-D7D1 5F98 D7D1 <CJK>
-D7D2 5FA0 D7D2 <CJK>
-D7D3 5FA8 D7D3 <CJK>
-D7D4 5FAD D7D4 <CJK>
-D7D5 5FBC D7D5 <CJK>
-D7D6 5FD6 D7D6 <CJK>
-D7D7 5FFB D7D7 <CJK>
-D7D8 5FE4 D7D8 <CJK>
-D7D9 5FF8 D7D9 <CJK>
-D7DA 5FF1 D7DA <CJK>
-D7DB 5FDD D7DB <CJK>
-D7DC 60B3 D7DC <CJK>
-D7DD 5FFF D7DD <CJK>
-D7DE 6021 D7DE <CJK>
-D7DF 6060 D7DF <CJK>
-D7E0 6019 D7E0 <CJK>
-D7E1 6010 D7E1 <CJK>
-D7E2 6029 D7E2 <CJK>
-D7E3 600E D7E3 <CJK>
-D7E4 6031 D7E4 <CJK>
-D7E5 601B D7E5 <CJK>
-D7E6 6015 D7E6 <CJK>
-D7E7 602B D7E7 <CJK>
-D7E8 6026 D7E8 <CJK>
-D7E9 600F D7E9 <CJK>
-D7EA 603A D7EA <CJK>
-D7EB 605A D7EB <CJK>
-D7EC 6041 D7EC <CJK>
-D7ED 606A D7ED <CJK>
-D7EE 6077 D7EE <CJK>
-D7EF 605F D7EF <CJK>
-D7F0 604A D7F0 <CJK>
-D7F1 6046 D7F1 <CJK>
-D7F2 604D D7F2 <CJK>
-D7F3 6063 D7F3 <CJK>
-D7F4 6043 D7F4 <CJK>
-D7F5 6064 D7F5 <CJK>
-D7F6 6042 D7F6 <CJK>
-D7F7 606C D7F7 <CJK>
-D7F8 606B D7F8 <CJK>
-D7F9 6059 D7F9 <CJK>
-D7FA 6081 D7FA <CJK>
-D7FB 608D D7FB <CJK>
-D7FC 60E7 D7FC <CJK>
-D7FD 6083 D7FD <CJK>
-D7FE 609A D7FE <CJK>
-D8A1 6084 D8A1 <CJK>
-D8A2 609B D8A2 <CJK>
-D8A3 6096 D8A3 <CJK>
-D8A4 6097 D8A4 <CJK>
-D8A5 6092 D8A5 <CJK>
-D8A6 60A7 D8A6 <CJK>
-D8A7 608B D8A7 <CJK>
-D8A8 60E1 D8A8 <CJK>
-D8A9 60B8 D8A9 <CJK>
-D8AA 60E0 D8AA <CJK>
-D8AB 60D3 D8AB <CJK>
-D8AC 60B4 D8AC <CJK>
-D8AD 5FF0 D8AD <CJK>
-D8AE 60BD D8AE <CJK>
-D8AF 60C6 D8AF <CJK>
-D8B0 60B5 D8B0 <CJK>
-D8B1 60D8 D8B1 <CJK>
-D8B2 614D D8B2 <CJK>
-D8B3 6115 D8B3 <CJK>
-D8B4 6106 D8B4 <CJK>
-D8B5 60F6 D8B5 <CJK>
-D8B6 60F7 D8B6 <CJK>
-D8B7 6100 D8B7 <CJK>
-D8B8 60F4 D8B8 <CJK>
-D8B9 60FA D8B9 <CJK>
-D8BA 6103 D8BA <CJK>
-D8BB 6121 D8BB <CJK>
-D8BC 60FB D8BC <CJK>
-D8BD 60F1 D8BD <CJK>
-D8BE 610D D8BE <CJK>
-D8BF 610E D8BF <CJK>
-D8C0 6147 D8C0 <CJK>
-D8C1 613E D8C1 <CJK>
-D8C2 6128 D8C2 <CJK>
-D8C3 6127 D8C3 <CJK>
-D8C4 614A D8C4 <CJK>
-D8C5 613F D8C5 <CJK>
-D8C6 613C D8C6 <CJK>
-D8C7 612C D8C7 <CJK>
-D8C8 6134 D8C8 <CJK>
-D8C9 613D D8C9 <CJK>
-D8CA 6142 D8CA <CJK>
-D8CB 6144 D8CB <CJK>
-D8CC 6173 D8CC <CJK>
-D8CD 6177 D8CD <CJK>
-D8CE 6158 D8CE <CJK>
-D8CF 6159 D8CF <CJK>
-D8D0 615A D8D0 <CJK>
-D8D1 616B D8D1 <CJK>
-D8D2 6174 D8D2 <CJK>
-D8D3 616F D8D3 <CJK>
-D8D4 6165 D8D4 <CJK>
-D8D5 6171 D8D5 <CJK>
-D8D6 615F D8D6 <CJK>
-D8D7 615D D8D7 <CJK>
-D8D8 6153 D8D8 <CJK>
-D8D9 6175 D8D9 <CJK>
-D8DA 6199 D8DA <CJK>
-D8DB 6196 D8DB <CJK>
-D8DC 6187 D8DC <CJK>
-D8DD 61AC D8DD <CJK>
-D8DE 6194 D8DE <CJK>
-D8DF 619A D8DF <CJK>
-D8E0 618A D8E0 <CJK>
-D8E1 6191 D8E1 <CJK>
-D8E2 61AB D8E2 <CJK>
-D8E3 61AE D8E3 <CJK>
-D8E4 61CC D8E4 <CJK>
-D8E5 61CA D8E5 <CJK>
-D8E6 61C9 D8E6 <CJK>
-D8E7 61F7 D8E7 <CJK>
-D8E8 61C8 D8E8 <CJK>
-D8E9 61C3 D8E9 <CJK>
-D8EA 61C6 D8EA <CJK>
-D8EB 61BA D8EB <CJK>
-D8EC 61CB D8EC <CJK>
-D8ED 7F79 D8ED <CJK>
-D8EE 61CD D8EE <CJK>
-D8EF 61E6 D8EF <CJK>
-D8F0 61E3 D8F0 <CJK>
-D8F1 61F6 D8F1 <CJK>
-D8F2 61FA D8F2 <CJK>
-D8F3 61F4 D8F3 <CJK>
-D8F4 61FF D8F4 <CJK>
-D8F5 61FD D8F5 <CJK>
-D8F6 61FC D8F6 <CJK>
-D8F7 61FE D8F7 <CJK>
-D8F8 6200 D8F8 <CJK>
-D8F9 6208 D8F9 <CJK>
-D8FA 6209 D8FA <CJK>
-D8FB 620D D8FB <CJK>
-D8FC 620C D8FC <CJK>
-D8FD 6214 D8FD <CJK>
-D8FE 621B D8FE <CJK>
-D9A1 621E D9A1 <CJK>
-D9A2 6221 D9A2 <CJK>
-D9A3 622A D9A3 <CJK>
-D9A4 622E D9A4 <CJK>
-D9A5 6230 D9A5 <CJK>
-D9A6 6232 D9A6 <CJK>
-D9A7 6233 D9A7 <CJK>
-D9A8 6241 D9A8 <CJK>
-D9A9 624E D9A9 <CJK>
-D9AA 625E D9AA <CJK>
-D9AB 6263 D9AB <CJK>
-D9AC 625B D9AC <CJK>
-D9AD 6260 D9AD <CJK>
-D9AE 6268 D9AE <CJK>
-D9AF 627C D9AF <CJK>
-D9B0 6282 D9B0 <CJK>
-D9B1 6289 D9B1 <CJK>
-D9B2 627E D9B2 <CJK>
-D9B3 6292 D9B3 <CJK>
-D9B4 6293 D9B4 <CJK>
-D9B5 6296 D9B5 <CJK>
-D9B6 62D4 D9B6 <CJK>
-D9B7 6283 D9B7 <CJK>
-D9B8 6294 D9B8 <CJK>
-D9B9 62D7 D9B9 <CJK>
-D9BA 62D1 D9BA <CJK>
-D9BB 62BB D9BB <CJK>
-D9BC 62CF D9BC <CJK>
-D9BD 62FF D9BD <CJK>
-D9BE 62C6 D9BE <CJK>
-D9BF 64D4 D9BF <CJK>
-D9C0 62C8 D9C0 <CJK>
-D9C1 62DC D9C1 <CJK>
-D9C2 62CC D9C2 <CJK>
-D9C3 62CA D9C3 <CJK>
-D9C4 62C2 D9C4 <CJK>
-D9C5 62C7 D9C5 <CJK>
-D9C6 629B D9C6 <CJK>
-D9C7 62C9 D9C7 <CJK>
-D9C8 630C D9C8 <CJK>
-D9C9 62EE D9C9 <CJK>
-D9CA 62F1 D9CA <CJK>
-D9CB 6327 D9CB <CJK>
-D9CC 6302 D9CC <CJK>
-D9CD 6308 D9CD <CJK>
-D9CE 62EF D9CE <CJK>
-D9CF 62F5 D9CF <CJK>
-D9D0 6350 D9D0 <CJK>
-D9D1 633E D9D1 <CJK>
-D9D2 634D D9D2 <CJK>
-D9D3 641C D9D3 <CJK>
-D9D4 634F D9D4 <CJK>
-D9D5 6396 D9D5 <CJK>
-D9D6 638E D9D6 <CJK>
-D9D7 6380 D9D7 <CJK>
-D9D8 63AB D9D8 <CJK>
-D9D9 6376 D9D9 <CJK>
-D9DA 63A3 D9DA <CJK>
-D9DB 638F D9DB <CJK>
-D9DC 6389 D9DC <CJK>
-D9DD 639F D9DD <CJK>
-D9DE 63B5 D9DE <CJK>
-D9DF 636B D9DF <CJK>
-D9E0 6369 D9E0 <CJK>
-D9E1 63BE D9E1 <CJK>
-D9E2 63E9 D9E2 <CJK>
-D9E3 63C0 D9E3 <CJK>
-D9E4 63C6 D9E4 <CJK>
-D9E5 63E3 D9E5 <CJK>
-D9E6 63C9 D9E6 <CJK>
-D9E7 63D2 D9E7 <CJK>
-D9E8 63F6 D9E8 <CJK>
-D9E9 63C4 D9E9 <CJK>
-D9EA 6416 D9EA <CJK>
-D9EB 6434 D9EB <CJK>
-D9EC 6406 D9EC <CJK>
-D9ED 6413 D9ED <CJK>
-D9EE 6426 D9EE <CJK>
-D9EF 6436 D9EF <CJK>
-D9F0 651D D9F0 <CJK>
-D9F1 6417 D9F1 <CJK>
-D9F2 6428 D9F2 <CJK>
-D9F3 640F D9F3 <CJK>
-D9F4 6467 D9F4 <CJK>
-D9F5 646F D9F5 <CJK>
-D9F6 6476 D9F6 <CJK>
-D9F7 644E D9F7 <CJK>
-D9F8 652A D9F8 <CJK>
-D9F9 6495 D9F9 <CJK>
-D9FA 6493 D9FA <CJK>
-D9FB 64A5 D9FB <CJK>
-D9FC 64A9 D9FC <CJK>
-D9FD 6488 D9FD <CJK>
-D9FE 64BC D9FE <CJK>
-DAA1 64DA DAA1 <CJK>
-DAA2 64D2 DAA2 <CJK>
-DAA3 64C5 DAA3 <CJK>
-DAA4 64C7 DAA4 <CJK>
-DAA5 64BB DAA5 <CJK>
-DAA6 64D8 DAA6 <CJK>
-DAA7 64C2 DAA7 <CJK>
-DAA8 64F1 DAA8 <CJK>
-DAA9 64E7 DAA9 <CJK>
-DAAA 8209 DAAA <CJK>
-DAAB 64E0 DAAB <CJK>
-DAAC 64E1 DAAC <CJK>
-DAAD 62AC DAAD <CJK>
-DAAE 64E3 DAAE <CJK>
-DAAF 64EF DAAF <CJK>
-DAB0 652C DAB0 <CJK>
-DAB1 64F6 DAB1 <CJK>
-DAB2 64F4 DAB2 <CJK>
-DAB3 64F2 DAB3 <CJK>
-DAB4 64FA DAB4 <CJK>
-DAB5 6500 DAB5 <CJK>
-DAB6 64FD DAB6 <CJK>
-DAB7 6518 DAB7 <CJK>
-DAB8 651C DAB8 <CJK>
-DAB9 6505 DAB9 <CJK>
-DABA 6524 DABA <CJK>
-DABB 6523 DABB <CJK>
-DABC 652B DABC <CJK>
-DABD 6534 DABD <CJK>
-DABE 6535 DABE <CJK>
-DABF 6537 DABF <CJK>
-DAC0 6536 DAC0 <CJK>
-DAC1 6538 DAC1 <CJK>
-DAC2 754B DAC2 <CJK>
-DAC3 6548 DAC3 <CJK>
-DAC4 6556 DAC4 <CJK>
-DAC5 6555 DAC5 <CJK>
-DAC6 654D DAC6 <CJK>
-DAC7 6558 DAC7 <CJK>
-DAC8 655E DAC8 <CJK>
-DAC9 655D DAC9 <CJK>
-DACA 6572 DACA <CJK>
-DACB 6578 DACB <CJK>
-DACC 6582 DACC <CJK>
-DACD 6583 DACD <CJK>
-DACE 8B8A DACE <CJK>
-DACF 659B DACF <CJK>
-DAD0 659F DAD0 <CJK>
-DAD1 65AB DAD1 <CJK>
-DAD2 65B7 DAD2 <CJK>
-DAD3 65C3 DAD3 <CJK>
-DAD4 65C6 DAD4 <CJK>
-DAD5 65C1 DAD5 <CJK>
-DAD6 65C4 DAD6 <CJK>
-DAD7 65CC DAD7 <CJK>
-DAD8 65D2 DAD8 <CJK>
-DAD9 65DB DAD9 <CJK>
-DADA 65D9 DADA <CJK>
-DADB 65E0 DADB <CJK>
-DADC 65E1 DADC <CJK>
-DADD 65F1 DADD <CJK>
-DADE 6772 DADE <CJK>
-DADF 660A DADF <CJK>
-DAE0 6603 DAE0 <CJK>
-DAE1 65FB DAE1 <CJK>
-DAE2 6773 DAE2 <CJK>
-DAE3 6635 DAE3 <CJK>
-DAE4 6636 DAE4 <CJK>
-DAE5 6634 DAE5 <CJK>
-DAE6 661C DAE6 <CJK>
-DAE7 664F DAE7 <CJK>
-DAE8 6644 DAE8 <CJK>
-DAE9 6649 DAE9 <CJK>
-DAEA 6641 DAEA <CJK>
-DAEB 665E DAEB <CJK>
-DAEC 665D DAEC <CJK>
-DAED 6664 DAED <CJK>
-DAEE 6667 DAEE <CJK>
-DAEF 6668 DAEF <CJK>
-DAF0 665F DAF0 <CJK>
-DAF1 6662 DAF1 <CJK>
-DAF2 6670 DAF2 <CJK>
-DAF3 6683 DAF3 <CJK>
-DAF4 6688 DAF4 <CJK>
-DAF5 668E DAF5 <CJK>
-DAF6 6689 DAF6 <CJK>
-DAF7 6684 DAF7 <CJK>
-DAF8 6698 DAF8 <CJK>
-DAF9 669D DAF9 <CJK>
-DAFA 66C1 DAFA <CJK>
-DAFB 66B9 DAFB <CJK>
-DAFC 66C9 DAFC <CJK>
-DAFD 66BE DAFD <CJK>
-DAFE 66BC DAFE <CJK>
-DBA1 66C4 DBA1 <CJK>
-DBA2 66B8 DBA2 <CJK>
-DBA3 66D6 DBA3 <CJK>
-DBA4 66DA DBA4 <CJK>
-DBA5 66E0 DBA5 <CJK>
-DBA6 663F DBA6 <CJK>
-DBA7 66E6 DBA7 <CJK>
-DBA8 66E9 DBA8 <CJK>
-DBA9 66F0 DBA9 <CJK>
-DBAA 66F5 DBAA <CJK>
-DBAB 66F7 DBAB <CJK>
-DBAC 670F DBAC <CJK>
-DBAD 6716 DBAD <CJK>
-DBAE 671E DBAE <CJK>
-DBAF 6726 DBAF <CJK>
-DBB0 6727 DBB0 <CJK>
-DBB1 9738 DBB1 <CJK>
-DBB2 672E DBB2 <CJK>
-DBB3 673F DBB3 <CJK>
-DBB4 6736 DBB4 <CJK>
-DBB5 6741 DBB5 <CJK>
-DBB6 6738 DBB6 <CJK>
-DBB7 6737 DBB7 <CJK>
-DBB8 6746 DBB8 <CJK>
-DBB9 675E DBB9 <CJK>
-DBBA 6760 DBBA <CJK>
-DBBB 6759 DBBB <CJK>
-DBBC 6763 DBBC <CJK>
-DBBD 6764 DBBD <CJK>
-DBBE 6789 DBBE <CJK>
-DBBF 6770 DBBF <CJK>
-DBC0 67A9 DBC0 <CJK>
-DBC1 677C DBC1 <CJK>
-DBC2 676A DBC2 <CJK>
-DBC3 678C DBC3 <CJK>
-DBC4 678B DBC4 <CJK>
-DBC5 67A6 DBC5 <CJK>
-DBC6 67A1 DBC6 <CJK>
-DBC7 6785 DBC7 <CJK>
-DBC8 67B7 DBC8 <CJK>
-DBC9 67EF DBC9 <CJK>
-DBCA 67B4 DBCA <CJK>
-DBCB 67EC DBCB <CJK>
-DBCC 67B3 DBCC <CJK>
-DBCD 67E9 DBCD <CJK>
-DBCE 67B8 DBCE <CJK>
-DBCF 67E4 DBCF <CJK>
-DBD0 67DE DBD0 <CJK>
-DBD1 67DD DBD1 <CJK>
-DBD2 67E2 DBD2 <CJK>
-DBD3 67EE DBD3 <CJK>
-DBD4 67B9 DBD4 <CJK>
-DBD5 67CE DBD5 <CJK>
-DBD6 67C6 DBD6 <CJK>
-DBD7 67E7 DBD7 <CJK>
-DBD8 6A9C DBD8 <CJK>
-DBD9 681E DBD9 <CJK>
-DBDA 6846 DBDA <CJK>
-DBDB 6829 DBDB <CJK>
-DBDC 6840 DBDC <CJK>
-DBDD 684D DBDD <CJK>
-DBDE 6832 DBDE <CJK>
-DBDF 684E DBDF <CJK>
-DBE0 68B3 DBE0 <CJK>
-DBE1 682B DBE1 <CJK>
-DBE2 6859 DBE2 <CJK>
-DBE3 6863 DBE3 <CJK>
-DBE4 6877 DBE4 <CJK>
-DBE5 687F DBE5 <CJK>
-DBE6 689F DBE6 <CJK>
-DBE7 688F DBE7 <CJK>
-DBE8 68AD DBE8 <CJK>
-DBE9 6894 DBE9 <CJK>
-DBEA 689D DBEA <CJK>
-DBEB 689B DBEB <CJK>
-DBEC 6883 DBEC <CJK>
-DBED 6AAE DBED <CJK>
-DBEE 68B9 DBEE <CJK>
-DBEF 6874 DBEF <CJK>
-DBF0 68B5 DBF0 <CJK>
-DBF1 68A0 DBF1 <CJK>
-DBF2 68BA DBF2 <CJK>
-DBF3 690F DBF3 <CJK>
-DBF4 688D DBF4 <CJK>
-DBF5 687E DBF5 <CJK>
-DBF6 6901 DBF6 <CJK>
-DBF7 68CA DBF7 <CJK>
-DBF8 6908 DBF8 <CJK>
-DBF9 68D8 DBF9 <CJK>
-DBFA 6922 DBFA <CJK>
-DBFB 6926 DBFB <CJK>
-DBFC 68E1 DBFC <CJK>
-DBFD 690C DBFD <CJK>
-DBFE 68CD DBFE <CJK>
-DCA1 68D4 DCA1 <CJK>
-DCA2 68E7 DCA2 <CJK>
-DCA3 68D5 DCA3 <CJK>
-DCA4 6936 DCA4 <CJK>
-DCA5 6912 DCA5 <CJK>
-DCA6 6904 DCA6 <CJK>
-DCA7 68D7 DCA7 <CJK>
-DCA8 68E3 DCA8 <CJK>
-DCA9 6925 DCA9 <CJK>
-DCAA 68F9 DCAA <CJK>
-DCAB 68E0 DCAB <CJK>
-DCAC 68EF DCAC <CJK>
-DCAD 6928 DCAD <CJK>
-DCAE 692A DCAE <CJK>
-DCAF 691A DCAF <CJK>
-DCB0 6923 DCB0 <CJK>
-DCB1 6921 DCB1 <CJK>
-DCB2 68C6 DCB2 <CJK>
-DCB3 6979 DCB3 <CJK>
-DCB4 6977 DCB4 <CJK>
-DCB5 695C DCB5 <CJK>
-DCB6 6978 DCB6 <CJK>
-DCB7 696B DCB7 <CJK>
-DCB8 6954 DCB8 <CJK>
-DCB9 697E DCB9 <CJK>
-DCBA 696E DCBA <CJK>
-DCBB 6939 DCBB <CJK>
-DCBC 6974 DCBC <CJK>
-DCBD 693D DCBD <CJK>
-DCBE 6959 DCBE <CJK>
-DCBF 6930 DCBF <CJK>
-DCC0 6961 DCC0 <CJK>
-DCC1 695E DCC1 <CJK>
-DCC2 695D DCC2 <CJK>
-DCC3 6981 DCC3 <CJK>
-DCC4 696A DCC4 <CJK>
-DCC5 69B2 DCC5 <CJK>
-DCC6 69AE DCC6 <CJK>
-DCC7 69D0 DCC7 <CJK>
-DCC8 69BF DCC8 <CJK>
-DCC9 69C1 DCC9 <CJK>
-DCCA 69D3 DCCA <CJK>
-DCCB 69BE DCCB <CJK>
-DCCC 69CE DCCC <CJK>
-DCCD 5BE8 DCCD <CJK>
-DCCE 69CA DCCE <CJK>
-DCCF 69DD DCCF <CJK>
-DCD0 69BB DCD0 <CJK>
-DCD1 69C3 DCD1 <CJK>
-DCD2 69A7 DCD2 <CJK>
-DCD3 6A2E DCD3 <CJK>
-DCD4 6991 DCD4 <CJK>
-DCD5 69A0 DCD5 <CJK>
-DCD6 699C DCD6 <CJK>
-DCD7 6995 DCD7 <CJK>
-DCD8 69B4 DCD8 <CJK>
-DCD9 69DE DCD9 <CJK>
-DCDA 69E8 DCDA <CJK>
-DCDB 6A02 DCDB <CJK>
-DCDC 6A1B DCDC <CJK>
-DCDD 69FF DCDD <CJK>
-DCDE 6B0A DCDE <CJK>
-DCDF 69F9 DCDF <CJK>
-DCE0 69F2 DCE0 <CJK>
-DCE1 69E7 DCE1 <CJK>
-DCE2 6A05 DCE2 <CJK>
-DCE3 69B1 DCE3 <CJK>
-DCE4 6A1E DCE4 <CJK>
-DCE5 69ED DCE5 <CJK>
-DCE6 6A14 DCE6 <CJK>
-DCE7 69EB DCE7 <CJK>
-DCE8 6A0A DCE8 <CJK>
-DCE9 6A12 DCE9 <CJK>
-DCEA 6AC1 DCEA <CJK>
-DCEB 6A23 DCEB <CJK>
-DCEC 6A13 DCEC <CJK>
-DCED 6A44 DCED <CJK>
-DCEE 6A0C DCEE <CJK>
-DCEF 6A72 DCEF <CJK>
-DCF0 6A36 DCF0 <CJK>
-DCF1 6A78 DCF1 <CJK>
-DCF2 6A47 DCF2 <CJK>
-DCF3 6A62 DCF3 <CJK>
-DCF4 6A59 DCF4 <CJK>
-DCF5 6A66 DCF5 <CJK>
-DCF6 6A48 DCF6 <CJK>
-DCF7 6A38 DCF7 <CJK>
-DCF8 6A22 DCF8 <CJK>
-DCF9 6A90 DCF9 <CJK>
-DCFA 6A8D DCFA <CJK>
-DCFB 6AA0 DCFB <CJK>
-DCFC 6A84 DCFC <CJK>
-DCFD 6AA2 DCFD <CJK>
-DCFE 6AA3 DCFE <CJK>
-DDA1 6A97 DDA1 <CJK>
-DDA2 8617 DDA2 <CJK>
-DDA3 6ABB DDA3 <CJK>
-DDA4 6AC3 DDA4 <CJK>
-DDA5 6AC2 DDA5 <CJK>
-DDA6 6AB8 DDA6 <CJK>
-DDA7 6AB3 DDA7 <CJK>
-DDA8 6AAC DDA8 <CJK>
-DDA9 6ADE DDA9 <CJK>
-DDAA 6AD1 DDAA <CJK>
-DDAB 6ADF DDAB <CJK>
-DDAC 6AAA DDAC <CJK>
-DDAD 6ADA DDAD <CJK>
-DDAE 6AEA DDAE <CJK>
-DDAF 6AFB DDAF <CJK>
-DDB0 6B05 DDB0 <CJK>
-DDB1 8616 DDB1 <CJK>
-DDB2 6AFA DDB2 <CJK>
-DDB3 6B12 DDB3 <CJK>
-DDB4 6B16 DDB4 <CJK>
-DDB5 9B31 DDB5 <CJK>
-DDB6 6B1F DDB6 <CJK>
-DDB7 6B38 DDB7 <CJK>
-DDB8 6B37 DDB8 <CJK>
-DDB9 76DC DDB9 <CJK>
-DDBA 6B39 DDBA <CJK>
-DDBB 98EE DDBB <CJK>
-DDBC 6B47 DDBC <CJK>
-DDBD 6B43 DDBD <CJK>
-DDBE 6B49 DDBE <CJK>
-DDBF 6B50 DDBF <CJK>
-DDC0 6B59 DDC0 <CJK>
-DDC1 6B54 DDC1 <CJK>
-DDC2 6B5B DDC2 <CJK>
-DDC3 6B5F DDC3 <CJK>
-DDC4 6B61 DDC4 <CJK>
-DDC5 6B78 DDC5 <CJK>
-DDC6 6B79 DDC6 <CJK>
-DDC7 6B7F DDC7 <CJK>
-DDC8 6B80 DDC8 <CJK>
-DDC9 6B84 DDC9 <CJK>
-DDCA 6B83 DDCA <CJK>
-DDCB 6B8D DDCB <CJK>
-DDCC 6B98 DDCC <CJK>
-DDCD 6B95 DDCD <CJK>
-DDCE 6B9E DDCE <CJK>
-DDCF 6BA4 DDCF <CJK>
-DDD0 6BAA DDD0 <CJK>
-DDD1 6BAB DDD1 <CJK>
-DDD2 6BAF DDD2 <CJK>
-DDD3 6BB2 DDD3 <CJK>
-DDD4 6BB1 DDD4 <CJK>
-DDD5 6BB3 DDD5 <CJK>
-DDD6 6BB7 DDD6 <CJK>
-DDD7 6BBC DDD7 <CJK>
-DDD8 6BC6 DDD8 <CJK>
-DDD9 6BCB DDD9 <CJK>
-DDDA 6BD3 DDDA <CJK>
-DDDB 6BDF DDDB <CJK>
-DDDC 6BEC DDDC <CJK>
-DDDD 6BEB DDDD <CJK>
-DDDE 6BF3 DDDE <CJK>
-DDDF 6BEF DDDF <CJK>
-DDE0 9EBE DDE0 <CJK>
-DDE1 6C08 DDE1 <CJK>
-DDE2 6C13 DDE2 <CJK>
-DDE3 6C14 DDE3 <CJK>
-DDE4 6C1B DDE4 <CJK>
-DDE5 6C24 DDE5 <CJK>
-DDE6 6C23 DDE6 <CJK>
-DDE7 6C5E DDE7 <CJK>
-DDE8 6C55 DDE8 <CJK>
-DDE9 6C62 DDE9 <CJK>
-DDEA 6C6A DDEA <CJK>
-DDEB 6C82 DDEB <CJK>
-DDEC 6C8D DDEC <CJK>
-DDED 6C9A DDED <CJK>
-DDEE 6C81 DDEE <CJK>
-DDEF 6C9B DDEF <CJK>
-DDF0 6C7E DDF0 <CJK>
-DDF1 6C68 DDF1 <CJK>
-DDF2 6C73 DDF2 <CJK>
-DDF3 6C92 DDF3 <CJK>
-DDF4 6C90 DDF4 <CJK>
-DDF5 6CC4 DDF5 <CJK>
-DDF6 6CF1 DDF6 <CJK>
-DDF7 6CD3 DDF7 <CJK>
-DDF8 6CBD DDF8 <CJK>
-DDF9 6CD7 DDF9 <CJK>
-DDFA 6CC5 DDFA <CJK>
-DDFB 6CDD DDFB <CJK>
-DDFC 6CAE DDFC <CJK>
-DDFD 6CB1 DDFD <CJK>
-DDFE 6CBE DDFE <CJK>
-DEA1 6CBA DEA1 <CJK>
-DEA2 6CDB DEA2 <CJK>
-DEA3 6CEF DEA3 <CJK>
-DEA4 6CD9 DEA4 <CJK>
-DEA5 6CEA DEA5 <CJK>
-DEA6 6D1F DEA6 <CJK>
-DEA7 884D DEA7 <CJK>
-DEA8 6D36 DEA8 <CJK>
-DEA9 6D2B DEA9 <CJK>
-DEAA 6D3D DEAA <CJK>
-DEAB 6D38 DEAB <CJK>
-DEAC 6D19 DEAC <CJK>
-DEAD 6D35 DEAD <CJK>
-DEAE 6D33 DEAE <CJK>
-DEAF 6D12 DEAF <CJK>
-DEB0 6D0C DEB0 <CJK>
-DEB1 6D63 DEB1 <CJK>
-DEB2 6D93 DEB2 <CJK>
-DEB3 6D64 DEB3 <CJK>
-DEB4 6D5A DEB4 <CJK>
-DEB5 6D79 DEB5 <CJK>
-DEB6 6D59 DEB6 <CJK>
-DEB7 6D8E DEB7 <CJK>
-DEB8 6D95 DEB8 <CJK>
-DEB9 6FE4 DEB9 <CJK>
-DEBA 6D85 DEBA <CJK>
-DEBB 6DF9 DEBB <CJK>
-DEBC 6E15 DEBC <CJK>
-DEBD 6E0A DEBD <CJK>
-DEBE 6DB5 DEBE <CJK>
-DEBF 6DC7 DEBF <CJK>
-DEC0 6DE6 DEC0 <CJK>
-DEC1 6DB8 DEC1 <CJK>
-DEC2 6DC6 DEC2 <CJK>
-DEC3 6DEC DEC3 <CJK>
-DEC4 6DDE DEC4 <CJK>
-DEC5 6DCC DEC5 <CJK>
-DEC6 6DE8 DEC6 <CJK>
-DEC7 6DD2 DEC7 <CJK>
-DEC8 6DC5 DEC8 <CJK>
-DEC9 6DFA DEC9 <CJK>
-DECA 6DD9 DECA <CJK>
-DECB 6DE4 DECB <CJK>
-DECC 6DD5 DECC <CJK>
-DECD 6DEA DECD <CJK>
-DECE 6DEE DECE <CJK>
-DECF 6E2D DECF <CJK>
-DED0 6E6E DED0 <CJK>
-DED1 6E2E DED1 <CJK>
-DED2 6E19 DED2 <CJK>
-DED3 6E72 DED3 <CJK>
-DED4 6E5F DED4 <CJK>
-DED5 6E3E DED5 <CJK>
-DED6 6E23 DED6 <CJK>
-DED7 6E6B DED7 <CJK>
-DED8 6E2B DED8 <CJK>
-DED9 6E76 DED9 <CJK>
-DEDA 6E4D DEDA <CJK>
-DEDB 6E1F DEDB <CJK>
-DEDC 6E43 DEDC <CJK>
-DEDD 6E3A DEDD <CJK>
-DEDE 6E4E DEDE <CJK>
-DEDF 6E24 DEDF <CJK>
-DEE0 6EFF DEE0 <CJK>
-DEE1 6E1D DEE1 <CJK>
-DEE2 6E38 DEE2 <CJK>
-DEE3 6E82 DEE3 <CJK>
-DEE4 6EAA DEE4 <CJK>
-DEE5 6E98 DEE5 <CJK>
-DEE6 6EC9 DEE6 <CJK>
-DEE7 6EB7 DEE7 <CJK>
-DEE8 6ED3 DEE8 <CJK>
-DEE9 6EBD DEE9 <CJK>
-DEEA 6EAF DEEA <CJK>
-DEEB 6EC4 DEEB <CJK>
-DEEC 6EB2 DEEC <CJK>
-DEED 6ED4 DEED <CJK>
-DEEE 6ED5 DEEE <CJK>
-DEEF 6E8F DEEF <CJK>
-DEF0 6EA5 DEF0 <CJK>
-DEF1 6EC2 DEF1 <CJK>
-DEF2 6E9F DEF2 <CJK>
-DEF3 6F41 DEF3 <CJK>
-DEF4 6F11 DEF4 <CJK>
-DEF5 704C DEF5 <CJK>
-DEF6 6EEC DEF6 <CJK>
-DEF7 6EF8 DEF7 <CJK>
-DEF8 6EFE DEF8 <CJK>
-DEF9 6F3F DEF9 <CJK>
-DEFA 6EF2 DEFA <CJK>
-DEFB 6F31 DEFB <CJK>
-DEFC 6EEF DEFC <CJK>
-DEFD 6F32 DEFD <CJK>
-DEFE 6ECC DEFE <CJK>
-DFA1 6F3E DFA1 <CJK>
-DFA2 6F13 DFA2 <CJK>
-DFA3 6EF7 DFA3 <CJK>
-DFA4 6F86 DFA4 <CJK>
-DFA5 6F7A DFA5 <CJK>
-DFA6 6F78 DFA6 <CJK>
-DFA7 6F81 DFA7 <CJK>
-DFA8 6F80 DFA8 <CJK>
-DFA9 6F6F DFA9 <CJK>
-DFAA 6F5B DFAA <CJK>
-DFAB 6FF3 DFAB <CJK>
-DFAC 6F6D DFAC <CJK>
-DFAD 6F82 DFAD <CJK>
-DFAE 6F7C DFAE <CJK>
-DFAF 6F58 DFAF <CJK>
-DFB0 6F8E DFB0 <CJK>
-DFB1 6F91 DFB1 <CJK>
-DFB2 6FC2 DFB2 <CJK>
-DFB3 6F66 DFB3 <CJK>
-DFB4 6FB3 DFB4 <CJK>
-DFB5 6FA3 DFB5 <CJK>
-DFB6 6FA1 DFB6 <CJK>
-DFB7 6FA4 DFB7 <CJK>
-DFB8 6FB9 DFB8 <CJK>
-DFB9 6FC6 DFB9 <CJK>
-DFBA 6FAA DFBA <CJK>
-DFBB 6FDF DFBB <CJK>
-DFBC 6FD5 DFBC <CJK>
-DFBD 6FEC DFBD <CJK>
-DFBE 6FD4 DFBE <CJK>
-DFBF 6FD8 DFBF <CJK>
-DFC0 6FF1 DFC0 <CJK>
-DFC1 6FEE DFC1 <CJK>
-DFC2 6FDB DFC2 <CJK>
-DFC3 7009 DFC3 <CJK>
-DFC4 700B DFC4 <CJK>
-DFC5 6FFA DFC5 <CJK>
-DFC6 7011 DFC6 <CJK>
-DFC7 7001 DFC7 <CJK>
-DFC8 700F DFC8 <CJK>
-DFC9 6FFE DFC9 <CJK>
-DFCA 701B DFCA <CJK>
-DFCB 701A DFCB <CJK>
-DFCC 6F74 DFCC <CJK>
-DFCD 701D DFCD <CJK>
-DFCE 7018 DFCE <CJK>
-DFCF 701F DFCF <CJK>
-DFD0 7030 DFD0 <CJK>
-DFD1 703E DFD1 <CJK>
-DFD2 7032 DFD2 <CJK>
-DFD3 7051 DFD3 <CJK>
-DFD4 7063 DFD4 <CJK>
-DFD5 7099 DFD5 <CJK>
-DFD6 7092 DFD6 <CJK>
-DFD7 70AF DFD7 <CJK>
-DFD8 70F1 DFD8 <CJK>
-DFD9 70AC DFD9 <CJK>
-DFDA 70B8 DFDA <CJK>
-DFDB 70B3 DFDB <CJK>
-DFDC 70AE DFDC <CJK>
-DFDD 70DF DFDD <CJK>
-DFDE 70CB DFDE <CJK>
-DFDF 70DD DFDF <CJK>
-DFE0 70D9 DFE0 <CJK>
-DFE1 7109 DFE1 <CJK>
-DFE2 70FD DFE2 <CJK>
-DFE3 711C DFE3 <CJK>
-DFE4 7119 DFE4 <CJK>
-DFE5 7165 DFE5 <CJK>
-DFE6 7155 DFE6 <CJK>
-DFE7 7188 DFE7 <CJK>
-DFE8 7166 DFE8 <CJK>
-DFE9 7162 DFE9 <CJK>
-DFEA 714C DFEA <CJK>
-DFEB 7156 DFEB <CJK>
-DFEC 716C DFEC <CJK>
-DFED 718F DFED <CJK>
-DFEE 71FB DFEE <CJK>
-DFEF 7184 DFEF <CJK>
-DFF0 7195 DFF0 <CJK>
-DFF1 71A8 DFF1 <CJK>
-DFF2 71AC DFF2 <CJK>
-DFF3 71D7 DFF3 <CJK>
-DFF4 71B9 DFF4 <CJK>
-DFF5 71BE DFF5 <CJK>
-DFF6 71D2 DFF6 <CJK>
-DFF7 71C9 DFF7 <CJK>
-DFF8 71D4 DFF8 <CJK>
-DFF9 71CE DFF9 <CJK>
-DFFA 71E0 DFFA <CJK>
-DFFB 71EC DFFB <CJK>
-DFFC 71E7 DFFC <CJK>
-DFFD 71F5 DFFD <CJK>
-DFFE 71FC DFFE <CJK>
-E0A1 71F9 E0A1 <CJK>
-E0A2 71FF E0A2 <CJK>
-E0A3 720D E0A3 <CJK>
-E0A4 7210 E0A4 <CJK>
-E0A5 721B E0A5 <CJK>
-E0A6 7228 E0A6 <CJK>
-E0A7 722D E0A7 <CJK>
-E0A8 722C E0A8 <CJK>
-E0A9 7230 E0A9 <CJK>
-E0AA 7232 E0AA <CJK>
-E0AB 723B E0AB <CJK>
-E0AC 723C E0AC <CJK>
-E0AD 723F E0AD <CJK>
-E0AE 7240 E0AE <CJK>
-E0AF 7246 E0AF <CJK>
-E0B0 724B E0B0 <CJK>
-E0B1 7258 E0B1 <CJK>
-E0B2 7274 E0B2 <CJK>
-E0B3 727E E0B3 <CJK>
-E0B4 7282 E0B4 <CJK>
-E0B5 7281 E0B5 <CJK>
-E0B6 7287 E0B6 <CJK>
-E0B7 7292 E0B7 <CJK>
-E0B8 7296 E0B8 <CJK>
-E0B9 72A2 E0B9 <CJK>
-E0BA 72A7 E0BA <CJK>
-E0BB 72B9 E0BB <CJK>
-E0BC 72B2 E0BC <CJK>
-E0BD 72C3 E0BD <CJK>
-E0BE 72C6 E0BE <CJK>
-E0BF 72C4 E0BF <CJK>
-E0C0 72CE E0C0 <CJK>
-E0C1 72D2 E0C1 <CJK>
-E0C2 72E2 E0C2 <CJK>
-E0C3 72E0 E0C3 <CJK>
-E0C4 72E1 E0C4 <CJK>
-E0C5 72F9 E0C5 <CJK>
-E0C6 72F7 E0C6 <CJK>
-E0C7 500F E0C7 <CJK>
-E0C8 7317 E0C8 <CJK>
-E0C9 730A E0C9 <CJK>
-E0CA 731C E0CA <CJK>
-E0CB 7316 E0CB <CJK>
-E0CC 731D E0CC <CJK>
-E0CD 7334 E0CD <CJK>
-E0CE 732F E0CE <CJK>
-E0CF 7329 E0CF <CJK>
-E0D0 7325 E0D0 <CJK>
-E0D1 733E E0D1 <CJK>
-E0D2 734E E0D2 <CJK>
-E0D3 734F E0D3 <CJK>
-E0D4 9ED8 E0D4 <CJK>
-E0D5 7357 E0D5 <CJK>
-E0D6 736A E0D6 <CJK>
-E0D7 7368 E0D7 <CJK>
-E0D8 7370 E0D8 <CJK>
-E0D9 7378 E0D9 <CJK>
-E0DA 7375 E0DA <CJK>
-E0DB 737B E0DB <CJK>
-E0DC 737A E0DC <CJK>
-E0DD 73C8 E0DD <CJK>
-E0DE 73B3 E0DE <CJK>
-E0DF 73CE E0DF <CJK>
-E0E0 73BB E0E0 <CJK>
-E0E1 73C0 E0E1 <CJK>
-E0E2 73E5 E0E2 <CJK>
-E0E3 73EE E0E3 <CJK>
-E0E4 73DE E0E4 <CJK>
-E0E5 74A2 E0E5 <CJK>
-E0E6 7405 E0E6 <CJK>
-E0E7 746F E0E7 <CJK>
-E0E8 7425 E0E8 <CJK>
-E0E9 73F8 E0E9 <CJK>
-E0EA 7432 E0EA <CJK>
-E0EB 743A E0EB <CJK>
-E0EC 7455 E0EC <CJK>
-E0ED 743F E0ED <CJK>
-E0EE 745F E0EE <CJK>
-E0EF 7459 E0EF <CJK>
-E0F0 7441 E0F0 <CJK>
-E0F1 745C E0F1 <CJK>
-E0F2 7469 E0F2 <CJK>
-E0F3 7470 E0F3 <CJK>
-E0F4 7463 E0F4 <CJK>
-E0F5 746A E0F5 <CJK>
-E0F6 7476 E0F6 <CJK>
-E0F7 747E E0F7 <CJK>
-E0F8 748B E0F8 <CJK>
-E0F9 749E E0F9 <CJK>
-E0FA 74A7 E0FA <CJK>
-E0FB 74CA E0FB <CJK>
-E0FC 74CF E0FC <CJK>
-E0FD 74D4 E0FD <CJK>
-E0FE 73F1 E0FE <CJK>
-E1A1 74E0 E1A1 <CJK>
-E1A2 74E3 E1A2 <CJK>
-E1A3 74E7 E1A3 <CJK>
-E1A4 74E9 E1A4 <CJK>
-E1A5 74EE E1A5 <CJK>
-E1A6 74F2 E1A6 <CJK>
-E1A7 74F0 E1A7 <CJK>
-E1A8 74F1 E1A8 <CJK>
-E1A9 74F8 E1A9 <CJK>
-E1AA 74F7 E1AA <CJK>
-E1AB 7504 E1AB <CJK>
-E1AC 7503 E1AC <CJK>
-E1AD 7505 E1AD <CJK>
-E1AE 750C E1AE <CJK>
-E1AF 750E E1AF <CJK>
-E1B0 750D E1B0 <CJK>
-E1B1 7515 E1B1 <CJK>
-E1B2 7513 E1B2 <CJK>
-E1B3 751E E1B3 <CJK>
-E1B4 7526 E1B4 <CJK>
-E1B5 752C E1B5 <CJK>
-E1B6 753C E1B6 <CJK>
-E1B7 7544 E1B7 <CJK>
-E1B8 754D E1B8 <CJK>
-E1B9 754A E1B9 <CJK>
-E1BA 7549 E1BA <CJK>
-E1BB 755B E1BB <CJK>
-E1BC 7546 E1BC <CJK>
-E1BD 755A E1BD <CJK>
-E1BE 7569 E1BE <CJK>
-E1BF 7564 E1BF <CJK>
-E1C0 7567 E1C0 <CJK>
-E1C1 756B E1C1 <CJK>
-E1C2 756D E1C2 <CJK>
-E1C3 7578 E1C3 <CJK>
-E1C4 7576 E1C4 <CJK>
-E1C5 7586 E1C5 <CJK>
-E1C6 7587 E1C6 <CJK>
-E1C7 7574 E1C7 <CJK>
-E1C8 758A E1C8 <CJK>
-E1C9 7589 E1C9 <CJK>
-E1CA 7582 E1CA <CJK>
-E1CB 7594 E1CB <CJK>
-E1CC 759A E1CC <CJK>
-E1CD 759D E1CD <CJK>
-E1CE 75A5 E1CE <CJK>
-E1CF 75A3 E1CF <CJK>
-E1D0 75C2 E1D0 <CJK>
-E1D1 75B3 E1D1 <CJK>
-E1D2 75C3 E1D2 <CJK>
-E1D3 75B5 E1D3 <CJK>
-E1D4 75BD E1D4 <CJK>
-E1D5 75B8 E1D5 <CJK>
-E1D6 75BC E1D6 <CJK>
-E1D7 75B1 E1D7 <CJK>
-E1D8 75CD E1D8 <CJK>
-E1D9 75CA E1D9 <CJK>
-E1DA 75D2 E1DA <CJK>
-E1DB 75D9 E1DB <CJK>
-E1DC 75E3 E1DC <CJK>
-E1DD 75DE E1DD <CJK>
-E1DE 75FE E1DE <CJK>
-E1DF 75FF E1DF <CJK>
-E1E0 75FC E1E0 <CJK>
-E1E1 7601 E1E1 <CJK>
-E1E2 75F0 E1E2 <CJK>
-E1E3 75FA E1E3 <CJK>
-E1E4 75F2 E1E4 <CJK>
-E1E5 75F3 E1E5 <CJK>
-E1E6 760B E1E6 <CJK>
-E1E7 760D E1E7 <CJK>
-E1E8 7609 E1E8 <CJK>
-E1E9 761F E1E9 <CJK>
-E1EA 7627 E1EA <CJK>
-E1EB 7620 E1EB <CJK>
-E1EC 7621 E1EC <CJK>
-E1ED 7622 E1ED <CJK>
-E1EE 7624 E1EE <CJK>
-E1EF 7634 E1EF <CJK>
-E1F0 7630 E1F0 <CJK>
-E1F1 763B E1F1 <CJK>
-E1F2 7647 E1F2 <CJK>
-E1F3 7648 E1F3 <CJK>
-E1F4 7646 E1F4 <CJK>
-E1F5 765C E1F5 <CJK>
-E1F6 7658 E1F6 <CJK>
-E1F7 7661 E1F7 <CJK>
-E1F8 7662 E1F8 <CJK>
-E1F9 7668 E1F9 <CJK>
-E1FA 7669 E1FA <CJK>
-E1FB 766A E1FB <CJK>
-E1FC 7667 E1FC <CJK>
-E1FD 766C E1FD <CJK>
-E1FE 7670 E1FE <CJK>
-E2A1 7672 E2A1 <CJK>
-E2A2 7676 E2A2 <CJK>
-E2A3 7678 E2A3 <CJK>
-E2A4 767C E2A4 <CJK>
-E2A5 7680 E2A5 <CJK>
-E2A6 7683 E2A6 <CJK>
-E2A7 7688 E2A7 <CJK>
-E2A8 768B E2A8 <CJK>
-E2A9 768E E2A9 <CJK>
-E2AA 7696 E2AA <CJK>
-E2AB 7693 E2AB <CJK>
-E2AC 7699 E2AC <CJK>
-E2AD 769A E2AD <CJK>
-E2AE 76B0 E2AE <CJK>
-E2AF 76B4 E2AF <CJK>
-E2B0 76B8 E2B0 <CJK>
-E2B1 76B9 E2B1 <CJK>
-E2B2 76BA E2B2 <CJK>
-E2B3 76C2 E2B3 <CJK>
-E2B4 76CD E2B4 <CJK>
-E2B5 76D6 E2B5 <CJK>
-E2B6 76D2 E2B6 <CJK>
-E2B7 76DE E2B7 <CJK>
-E2B8 76E1 E2B8 <CJK>
-E2B9 76E5 E2B9 <CJK>
-E2BA 76E7 E2BA <CJK>
-E2BB 76EA E2BB <CJK>
-E2BC 862F E2BC <CJK>
-E2BD 76FB E2BD <CJK>
-E2BE 7708 E2BE <CJK>
-E2BF 7707 E2BF <CJK>
-E2C0 7704 E2C0 <CJK>
-E2C1 7729 E2C1 <CJK>
-E2C2 7724 E2C2 <CJK>
-E2C3 771E E2C3 <CJK>
-E2C4 7725 E2C4 <CJK>
-E2C5 7726 E2C5 <CJK>
-E2C6 771B E2C6 <CJK>
-E2C7 7737 E2C7 <CJK>
-E2C8 7738 E2C8 <CJK>
-E2C9 7747 E2C9 <CJK>
-E2CA 775A E2CA <CJK>
-E2CB 7768 E2CB <CJK>
-E2CC 776B E2CC <CJK>
-E2CD 775B E2CD <CJK>
-E2CE 7765 E2CE <CJK>
-E2CF 777F E2CF <CJK>
-E2D0 777E E2D0 <CJK>
-E2D1 7779 E2D1 <CJK>
-E2D2 778E E2D2 <CJK>
-E2D3 778B E2D3 <CJK>
-E2D4 7791 E2D4 <CJK>
-E2D5 77A0 E2D5 <CJK>
-E2D6 779E E2D6 <CJK>
-E2D7 77B0 E2D7 <CJK>
-E2D8 77B6 E2D8 <CJK>
-E2D9 77B9 E2D9 <CJK>
-E2DA 77BF E2DA <CJK>
-E2DB 77BC E2DB <CJK>
-E2DC 77BD E2DC <CJK>
-E2DD 77BB E2DD <CJK>
-E2DE 77C7 E2DE <CJK>
-E2DF 77CD E2DF <CJK>
-E2E0 77D7 E2E0 <CJK>
-E2E1 77DA E2E1 <CJK>
-E2E2 77DC E2E2 <CJK>
-E2E3 77E3 E2E3 <CJK>
-E2E4 77EE E2E4 <CJK>
-E2E5 77FC E2E5 <CJK>
-E2E6 780C E2E6 <CJK>
-E2E7 7812 E2E7 <CJK>
-E2E8 7926 E2E8 <CJK>
-E2E9 7820 E2E9 <CJK>
-E2EA 792A E2EA <CJK>
-E2EB 7845 E2EB <CJK>
-E2EC 788E E2EC <CJK>
-E2ED 7874 E2ED <CJK>
-E2EE 7886 E2EE <CJK>
-E2EF 787C E2EF <CJK>
-E2F0 789A E2F0 <CJK>
-E2F1 788C E2F1 <CJK>
-E2F2 78A3 E2F2 <CJK>
-E2F3 78B5 E2F3 <CJK>
-E2F4 78AA E2F4 <CJK>
-E2F5 78AF E2F5 <CJK>
-E2F6 78D1 E2F6 <CJK>
-E2F7 78C6 E2F7 <CJK>
-E2F8 78CB E2F8 <CJK>
-E2F9 78D4 E2F9 <CJK>
-E2FA 78BE E2FA <CJK>
-E2FB 78BC E2FB <CJK>
-E2FC 78C5 E2FC <CJK>
-E2FD 78CA E2FD <CJK>
-E2FE 78EC E2FE <CJK>
-E3A1 78E7 E3A1 <CJK>
-E3A2 78DA E3A2 <CJK>
-E3A3 78FD E3A3 <CJK>
-E3A4 78F4 E3A4 <CJK>
-E3A5 7907 E3A5 <CJK>
-E3A6 7912 E3A6 <CJK>
-E3A7 7911 E3A7 <CJK>
-E3A8 7919 E3A8 <CJK>
-E3A9 792C E3A9 <CJK>
-E3AA 792B E3AA <CJK>
-E3AB 7940 E3AB <CJK>
-E3AC 7960 E3AC <CJK>
-E3AD 7957 E3AD <CJK>
-E3AE 795F E3AE <CJK>
-E3AF 795A E3AF <CJK>
-E3B0 7955 E3B0 <CJK>
-E3B1 7953 E3B1 <CJK>
-E3B2 797A E3B2 <CJK>
-E3B3 797F E3B3 <CJK>
-E3B4 798A E3B4 <CJK>
-E3B5 799D E3B5 <CJK>
-E3B6 79A7 E3B6 <CJK>
-E3B7 9F4B E3B7 <CJK>
-E3B8 79AA E3B8 <CJK>
-E3B9 79AE E3B9 <CJK>
-E3BA 79B3 E3BA <CJK>
-E3BB 79B9 E3BB <CJK>
-E3BC 79BA E3BC <CJK>
-E3BD 79C9 E3BD <CJK>
-E3BE 79D5 E3BE <CJK>
-E3BF 79E7 E3BF <CJK>
-E3C0 79EC E3C0 <CJK>
-E3C1 79E1 E3C1 <CJK>
-E3C2 79E3 E3C2 <CJK>
-E3C3 7A08 E3C3 <CJK>
-E3C4 7A0D E3C4 <CJK>
-E3C5 7A18 E3C5 <CJK>
-E3C6 7A19 E3C6 <CJK>
-E3C7 7A20 E3C7 <CJK>
-E3C8 7A1F E3C8 <CJK>
-E3C9 7980 E3C9 <CJK>
-E3CA 7A31 E3CA <CJK>
-E3CB 7A3B E3CB <CJK>
-E3CC 7A3E E3CC <CJK>
-E3CD 7A37 E3CD <CJK>
-E3CE 7A43 E3CE <CJK>
-E3CF 7A57 E3CF <CJK>
-E3D0 7A49 E3D0 <CJK>
-E3D1 7A61 E3D1 <CJK>
-E3D2 7A62 E3D2 <CJK>
-E3D3 7A69 E3D3 <CJK>
-E3D4 9F9D E3D4 <CJK>
-E3D5 7A70 E3D5 <CJK>
-E3D6 7A79 E3D6 <CJK>
-E3D7 7A7D E3D7 <CJK>
-E3D8 7A88 E3D8 <CJK>
-E3D9 7A97 E3D9 <CJK>
-E3DA 7A95 E3DA <CJK>
-E3DB 7A98 E3DB <CJK>
-E3DC 7A96 E3DC <CJK>
-E3DD 7AA9 E3DD <CJK>
-E3DE 7AC8 E3DE <CJK>
-E3DF 7AB0 E3DF <CJK>
-E3E0 7AB6 E3E0 <CJK>
-E3E1 7AC5 E3E1 <CJK>
-E3E2 7AC4 E3E2 <CJK>
-E3E3 7ABF E3E3 <CJK>
-E3E4 9083 E3E4 <CJK>
-E3E5 7AC7 E3E5 <CJK>
-E3E6 7ACA E3E6 <CJK>
-E3E7 7ACD E3E7 <CJK>
-E3E8 7ACF E3E8 <CJK>
-E3E9 7AD5 E3E9 <CJK>
-E3EA 7AD3 E3EA <CJK>
-E3EB 7AD9 E3EB <CJK>
-E3EC 7ADA E3EC <CJK>
-E3ED 7ADD E3ED <CJK>
-E3EE 7AE1 E3EE <CJK>
-E3EF 7AE2 E3EF <CJK>
-E3F0 7AE6 E3F0 <CJK>
-E3F1 7AED E3F1 <CJK>
-E3F2 7AF0 E3F2 <CJK>
-E3F3 7B02 E3F3 <CJK>
-E3F4 7B0F E3F4 <CJK>
-E3F5 7B0A E3F5 <CJK>
-E3F6 7B06 E3F6 <CJK>
-E3F7 7B33 E3F7 <CJK>
-E3F8 7B18 E3F8 <CJK>
-E3F9 7B19 E3F9 <CJK>
-E3FA 7B1E E3FA <CJK>
-E3FB 7B35 E3FB <CJK>
-E3FC 7B28 E3FC <CJK>
-E3FD 7B36 E3FD <CJK>
-E3FE 7B50 E3FE <CJK>
-E4A1 7B7A E4A1 <CJK>
-E4A2 7B04 E4A2 <CJK>
-E4A3 7B4D E4A3 <CJK>
-E4A4 7B0B E4A4 <CJK>
-E4A5 7B4C E4A5 <CJK>
-E4A6 7B45 E4A6 <CJK>
-E4A7 7B75 E4A7 <CJK>
-E4A8 7B65 E4A8 <CJK>
-E4A9 7B74 E4A9 <CJK>
-E4AA 7B67 E4AA <CJK>
-E4AB 7B70 E4AB <CJK>
-E4AC 7B71 E4AC <CJK>
-E4AD 7B6C E4AD <CJK>
-E4AE 7B6E E4AE <CJK>
-E4AF 7B9D E4AF <CJK>
-E4B0 7B98 E4B0 <CJK>
-E4B1 7B9F E4B1 <CJK>
-E4B2 7B8D E4B2 <CJK>
-E4B3 7B9C E4B3 <CJK>
-E4B4 7B9A E4B4 <CJK>
-E4B5 7B8B E4B5 <CJK>
-E4B6 7B92 E4B6 <CJK>
-E4B7 7B8F E4B7 <CJK>
-E4B8 7B5D E4B8 <CJK>
-E4B9 7B99 E4B9 <CJK>
-E4BA 7BCB E4BA <CJK>
-E4BB 7BC1 E4BB <CJK>
-E4BC 7BCC E4BC <CJK>
-E4BD 7BCF E4BD <CJK>
-E4BE 7BB4 E4BE <CJK>
-E4BF 7BC6 E4BF <CJK>
-E4C0 7BDD E4C0 <CJK>
-E4C1 7BE9 E4C1 <CJK>
-E4C2 7C11 E4C2 <CJK>
-E4C3 7C14 E4C3 <CJK>
-E4C4 7BE6 E4C4 <CJK>
-E4C5 7BE5 E4C5 <CJK>
-E4C6 7C60 E4C6 <CJK>
-E4C7 7C00 E4C7 <CJK>
-E4C8 7C07 E4C8 <CJK>
-E4C9 7C13 E4C9 <CJK>
-E4CA 7BF3 E4CA <CJK>
-E4CB 7BF7 E4CB <CJK>
-E4CC 7C17 E4CC <CJK>
-E4CD 7C0D E4CD <CJK>
-E4CE 7BF6 E4CE <CJK>
-E4CF 7C23 E4CF <CJK>
-E4D0 7C27 E4D0 <CJK>
-E4D1 7C2A E4D1 <CJK>
-E4D2 7C1F E4D2 <CJK>
-E4D3 7C37 E4D3 <CJK>
-E4D4 7C2B E4D4 <CJK>
-E4D5 7C3D E4D5 <CJK>
-E4D6 7C4C E4D6 <CJK>
-E4D7 7C43 E4D7 <CJK>
-E4D8 7C54 E4D8 <CJK>
-E4D9 7C4F E4D9 <CJK>
-E4DA 7C40 E4DA <CJK>
-E4DB 7C50 E4DB <CJK>
-E4DC 7C58 E4DC <CJK>
-E4DD 7C5F E4DD <CJK>
-E4DE 7C64 E4DE <CJK>
-E4DF 7C56 E4DF <CJK>
-E4E0 7C65 E4E0 <CJK>
-E4E1 7C6C E4E1 <CJK>
-E4E2 7C75 E4E2 <CJK>
-E4E3 7C83 E4E3 <CJK>
-E4E4 7C90 E4E4 <CJK>
-E4E5 7CA4 E4E5 <CJK>
-E4E6 7CAD E4E6 <CJK>
-E4E7 7CA2 E4E7 <CJK>
-E4E8 7CAB E4E8 <CJK>
-E4E9 7CA1 E4E9 <CJK>
-E4EA 7CA8 E4EA <CJK>
-E4EB 7CB3 E4EB <CJK>
-E4EC 7CB2 E4EC <CJK>
-E4ED 7CB1 E4ED <CJK>
-E4EE 7CAE E4EE <CJK>
-E4EF 7CB9 E4EF <CJK>
-E4F0 7CBD E4F0 <CJK>
-E4F1 7CC0 E4F1 <CJK>
-E4F2 7CC5 E4F2 <CJK>
-E4F3 7CC2 E4F3 <CJK>
-E4F4 7CD8 E4F4 <CJK>
-E4F5 7CD2 E4F5 <CJK>
-E4F6 7CDC E4F6 <CJK>
-E4F7 7CE2 E4F7 <CJK>
-E4F8 9B3B E4F8 <CJK>
-E4F9 7CEF E4F9 <CJK>
-E4FA 7CF2 E4FA <CJK>
-E4FB 7CF4 E4FB <CJK>
-E4FC 7CF6 E4FC <CJK>
-E4FD 7CFA E4FD <CJK>
-E4FE 7D06 E4FE <CJK>
-E5A1 7D02 E5A1 <CJK>
-E5A2 7D1C E5A2 <CJK>
-E5A3 7D15 E5A3 <CJK>
-E5A4 7D0A E5A4 <CJK>
-E5A5 7D45 E5A5 <CJK>
-E5A6 7D4B E5A6 <CJK>
-E5A7 7D2E E5A7 <CJK>
-E5A8 7D32 E5A8 <CJK>
-E5A9 7D3F E5A9 <CJK>
-E5AA 7D35 E5AA <CJK>
-E5AB 7D46 E5AB <CJK>
-E5AC 7D73 E5AC <CJK>
-E5AD 7D56 E5AD <CJK>
-E5AE 7D4E E5AE <CJK>
-E5AF 7D72 E5AF <CJK>
-E5B0 7D68 E5B0 <CJK>
-E5B1 7D6E E5B1 <CJK>
-E5B2 7D4F E5B2 <CJK>
-E5B3 7D63 E5B3 <CJK>
-E5B4 7D93 E5B4 <CJK>
-E5B5 7D89 E5B5 <CJK>
-E5B6 7D5B E5B6 <CJK>
-E5B7 7D8F E5B7 <CJK>
-E5B8 7D7D E5B8 <CJK>
-E5B9 7D9B E5B9 <CJK>
-E5BA 7DBA E5BA <CJK>
-E5BB 7DAE E5BB <CJK>
-E5BC 7DA3 E5BC <CJK>
-E5BD 7DB5 E5BD <CJK>
-E5BE 7DC7 E5BE <CJK>
-E5BF 7DBD E5BF <CJK>
-E5C0 7DAB E5C0 <CJK>
-E5C1 7E3D E5C1 <CJK>
-E5C2 7DA2 E5C2 <CJK>
-E5C3 7DAF E5C3 <CJK>
-E5C4 7DDC E5C4 <CJK>
-E5C5 7DB8 E5C5 <CJK>
-E5C6 7D9F E5C6 <CJK>
-E5C7 7DB0 E5C7 <CJK>
-E5C8 7DD8 E5C8 <CJK>
-E5C9 7DDD E5C9 <CJK>
-E5CA 7DE4 E5CA <CJK>
-E5CB 7DDE E5CB <CJK>
-E5CC 7DFB E5CC <CJK>
-E5CD 7DF2 E5CD <CJK>
-E5CE 7DE1 E5CE <CJK>
-E5CF 7E05 E5CF <CJK>
-E5D0 7E0A E5D0 <CJK>
-E5D1 7E23 E5D1 <CJK>
-E5D2 7E21 E5D2 <CJK>
-E5D3 7E12 E5D3 <CJK>
-E5D4 7E31 E5D4 <CJK>
-E5D5 7E1F E5D5 <CJK>
-E5D6 7E09 E5D6 <CJK>
-E5D7 7E0B E5D7 <CJK>
-E5D8 7E22 E5D8 <CJK>
-E5D9 7E46 E5D9 <CJK>
-E5DA 7E66 E5DA <CJK>
-E5DB 7E3B E5DB <CJK>
-E5DC 7E35 E5DC <CJK>
-E5DD 7E39 E5DD <CJK>
-E5DE 7E43 E5DE <CJK>
-E5DF 7E37 E5DF <CJK>
-E5E0 7E32 E5E0 <CJK>
-E5E1 7E3A E5E1 <CJK>
-E5E2 7E67 E5E2 <CJK>
-E5E3 7E5D E5E3 <CJK>
-E5E4 7E56 E5E4 <CJK>
-E5E5 7E5E E5E5 <CJK>
-E5E6 7E59 E5E6 <CJK>
-E5E7 7E5A E5E7 <CJK>
-E5E8 7E79 E5E8 <CJK>
-E5E9 7E6A E5E9 <CJK>
-E5EA 7E69 E5EA <CJK>
-E5EB 7E7C E5EB <CJK>
-E5EC 7E7B E5EC <CJK>
-E5ED 7E83 E5ED <CJK>
-E5EE 7DD5 E5EE <CJK>
-E5EF 7E7D E5EF <CJK>
-E5F0 8FAE E5F0 <CJK>
-E5F1 7E7F E5F1 <CJK>
-E5F2 7E88 E5F2 <CJK>
-E5F3 7E89 E5F3 <CJK>
-E5F4 7E8C E5F4 <CJK>
-E5F5 7E92 E5F5 <CJK>
-E5F6 7E90 E5F6 <CJK>
-E5F7 7E93 E5F7 <CJK>
-E5F8 7E94 E5F8 <CJK>
-E5F9 7E96 E5F9 <CJK>
-E5FA 7E8E E5FA <CJK>
-E5FB 7E9B E5FB <CJK>
-E5FC 7E9C E5FC <CJK>
-E5FD 7F38 E5FD <CJK>
-E5FE 7F3A E5FE <CJK>
-E6A1 7F45 E6A1 <CJK>
-E6A2 7F4C E6A2 <CJK>
-E6A3 7F4D E6A3 <CJK>
-E6A4 7F4E E6A4 <CJK>
-E6A5 7F50 E6A5 <CJK>
-E6A6 7F51 E6A6 <CJK>
-E6A7 7F55 E6A7 <CJK>
-E6A8 7F54 E6A8 <CJK>
-E6A9 7F58 E6A9 <CJK>
-E6AA 7F5F E6AA <CJK>
-E6AB 7F60 E6AB <CJK>
-E6AC 7F68 E6AC <CJK>
-E6AD 7F69 E6AD <CJK>
-E6AE 7F67 E6AE <CJK>
-E6AF 7F78 E6AF <CJK>
-E6B0 7F82 E6B0 <CJK>
-E6B1 7F86 E6B1 <CJK>
-E6B2 7F83 E6B2 <CJK>
-E6B3 7F88 E6B3 <CJK>
-E6B4 7F87 E6B4 <CJK>
-E6B5 7F8C E6B5 <CJK>
-E6B6 7F94 E6B6 <CJK>
-E6B7 7F9E E6B7 <CJK>
-E6B8 7F9D E6B8 <CJK>
-E6B9 7F9A E6B9 <CJK>
-E6BA 7FA3 E6BA <CJK>
-E6BB 7FAF E6BB <CJK>
-E6BC 7FB2 E6BC <CJK>
-E6BD 7FB9 E6BD <CJK>
-E6BE 7FAE E6BE <CJK>
-E6BF 7FB6 E6BF <CJK>
-E6C0 7FB8 E6C0 <CJK>
-E6C1 8B71 E6C1 <CJK>
-E6C2 7FC5 E6C2 <CJK>
-E6C3 7FC6 E6C3 <CJK>
-E6C4 7FCA E6C4 <CJK>
-E6C5 7FD5 E6C5 <CJK>
-E6C6 7FD4 E6C6 <CJK>
-E6C7 7FE1 E6C7 <CJK>
-E6C8 7FE6 E6C8 <CJK>
-E6C9 7FE9 E6C9 <CJK>
-E6CA 7FF3 E6CA <CJK>
-E6CB 7FF9 E6CB <CJK>
-E6CC 98DC E6CC <CJK>
-E6CD 8006 E6CD <CJK>
-E6CE 8004 E6CE <CJK>
-E6CF 800B E6CF <CJK>
-E6D0 8012 E6D0 <CJK>
-E6D1 8018 E6D1 <CJK>
-E6D2 8019 E6D2 <CJK>
-E6D3 801C E6D3 <CJK>
-E6D4 8021 E6D4 <CJK>
-E6D5 8028 E6D5 <CJK>
-E6D6 803F E6D6 <CJK>
-E6D7 803B E6D7 <CJK>
-E6D8 804A E6D8 <CJK>
-E6D9 8046 E6D9 <CJK>
-E6DA 8052 E6DA <CJK>
-E6DB 8058 E6DB <CJK>
-E6DC 805A E6DC <CJK>
-E6DD 805F E6DD <CJK>
-E6DE 8062 E6DE <CJK>
-E6DF 8068 E6DF <CJK>
-E6E0 8073 E6E0 <CJK>
-E6E1 8072 E6E1 <CJK>
-E6E2 8070 E6E2 <CJK>
-E6E3 8076 E6E3 <CJK>
-E6E4 8079 E6E4 <CJK>
-E6E5 807D E6E5 <CJK>
-E6E6 807F E6E6 <CJK>
-E6E7 8084 E6E7 <CJK>
-E6E8 8086 E6E8 <CJK>
-E6E9 8085 E6E9 <CJK>
-E6EA 809B E6EA <CJK>
-E6EB 8093 E6EB <CJK>
-E6EC 809A E6EC <CJK>
-E6ED 80AD E6ED <CJK>
-E6EE 5190 E6EE <CJK>
-E6EF 80AC E6EF <CJK>
-E6F0 80DB E6F0 <CJK>
-E6F1 80E5 E6F1 <CJK>
-E6F2 80D9 E6F2 <CJK>
-E6F3 80DD E6F3 <CJK>
-E6F4 80C4 E6F4 <CJK>
-E6F5 80DA E6F5 <CJK>
-E6F6 80D6 E6F6 <CJK>
-E6F7 8109 E6F7 <CJK>
-E6F8 80EF E6F8 <CJK>
-E6F9 80F1 E6F9 <CJK>
-E6FA 811B E6FA <CJK>
-E6FB 8129 E6FB <CJK>
-E6FC 8123 E6FC <CJK>
-E6FD 812F E6FD <CJK>
-E6FE 814B E6FE <CJK>
-E7A1 968B E7A1 <CJK>
-E7A2 8146 E7A2 <CJK>
-E7A3 813E E7A3 <CJK>
-E7A4 8153 E7A4 <CJK>
-E7A5 8151 E7A5 <CJK>
-E7A6 80FC E7A6 <CJK>
-E7A7 8171 E7A7 <CJK>
-E7A8 816E E7A8 <CJK>
-E7A9 8165 E7A9 <CJK>
-E7AA 8166 E7AA <CJK>
-E7AB 8174 E7AB <CJK>
-E7AC 8183 E7AC <CJK>
-E7AD 8188 E7AD <CJK>
-E7AE 818A E7AE <CJK>
-E7AF 8180 E7AF <CJK>
-E7B0 8182 E7B0 <CJK>
-E7B1 81A0 E7B1 <CJK>
-E7B2 8195 E7B2 <CJK>
-E7B3 81A4 E7B3 <CJK>
-E7B4 81A3 E7B4 <CJK>
-E7B5 815F E7B5 <CJK>
-E7B6 8193 E7B6 <CJK>
-E7B7 81A9 E7B7 <CJK>
-E7B8 81B0 E7B8 <CJK>
-E7B9 81B5 E7B9 <CJK>
-E7BA 81BE E7BA <CJK>
-E7BB 81B8 E7BB <CJK>
-E7BC 81BD E7BC <CJK>
-E7BD 81C0 E7BD <CJK>
-E7BE 81C2 E7BE <CJK>
-E7BF 81BA E7BF <CJK>
-E7C0 81C9 E7C0 <CJK>
-E7C1 81CD E7C1 <CJK>
-E7C2 81D1 E7C2 <CJK>
-E7C3 81D9 E7C3 <CJK>
-E7C4 81D8 E7C4 <CJK>
-E7C5 81C8 E7C5 <CJK>
-E7C6 81DA E7C6 <CJK>
-E7C7 81DF E7C7 <CJK>
-E7C8 81E0 E7C8 <CJK>
-E7C9 81E7 E7C9 <CJK>
-E7CA 81FA E7CA <CJK>
-E7CB 81FB E7CB <CJK>
-E7CC 81FE E7CC <CJK>
-E7CD 8201 E7CD <CJK>
-E7CE 8202 E7CE <CJK>
-E7CF 8205 E7CF <CJK>
-E7D0 8207 E7D0 <CJK>
-E7D1 820A E7D1 <CJK>
-E7D2 820D E7D2 <CJK>
-E7D3 8210 E7D3 <CJK>
-E7D4 8216 E7D4 <CJK>
-E7D5 8229 E7D5 <CJK>
-E7D6 822B E7D6 <CJK>
-E7D7 8238 E7D7 <CJK>
-E7D8 8233 E7D8 <CJK>
-E7D9 8240 E7D9 <CJK>
-E7DA 8259 E7DA <CJK>
-E7DB 8258 E7DB <CJK>
-E7DC 825D E7DC <CJK>
-E7DD 825A E7DD <CJK>
-E7DE 825F E7DE <CJK>
-E7DF 8264 E7DF <CJK>
-E7E0 8262 E7E0 <CJK>
-E7E1 8268 E7E1 <CJK>
-E7E2 826A E7E2 <CJK>
-E7E3 826B E7E3 <CJK>
-E7E4 822E E7E4 <CJK>
-E7E5 8271 E7E5 <CJK>
-E7E6 8277 E7E6 <CJK>
-E7E7 8278 E7E7 <CJK>
-E7E8 827E E7E8 <CJK>
-E7E9 828D E7E9 <CJK>
-E7EA 8292 E7EA <CJK>
-E7EB 82AB E7EB <CJK>
-E7EC 829F E7EC <CJK>
-E7ED 82BB E7ED <CJK>
-E7EE 82AC E7EE <CJK>
-E7EF 82E1 E7EF <CJK>
-E7F0 82E3 E7F0 <CJK>
-E7F1 82DF E7F1 <CJK>
-E7F2 82D2 E7F2 <CJK>
-E7F3 82F4 E7F3 <CJK>
-E7F4 82F3 E7F4 <CJK>
-E7F5 82FA E7F5 <CJK>
-E7F6 8393 E7F6 <CJK>
-E7F7 8303 E7F7 <CJK>
-E7F8 82FB E7F8 <CJK>
-E7F9 82F9 E7F9 <CJK>
-E7FA 82DE E7FA <CJK>
-E7FB 8306 E7FB <CJK>
-E7FC 82DC E7FC <CJK>
-E7FD 8309 E7FD <CJK>
-E7FE 82D9 E7FE <CJK>
-E8A1 8335 E8A1 <CJK>
-E8A2 8334 E8A2 <CJK>
-E8A3 8316 E8A3 <CJK>
-E8A4 8332 E8A4 <CJK>
-E8A5 8331 E8A5 <CJK>
-E8A6 8340 E8A6 <CJK>
-E8A7 8339 E8A7 <CJK>
-E8A8 8350 E8A8 <CJK>
-E8A9 8345 E8A9 <CJK>
-E8AA 832F E8AA <CJK>
-E8AB 832B E8AB <CJK>
-E8AC 8317 E8AC <CJK>
-E8AD 8318 E8AD <CJK>
-E8AE 8385 E8AE <CJK>
-E8AF 839A E8AF <CJK>
-E8B0 83AA E8B0 <CJK>
-E8B1 839F E8B1 <CJK>
-E8B2 83A2 E8B2 <CJK>
-E8B3 8396 E8B3 <CJK>
-E8B4 8323 E8B4 <CJK>
-E8B5 838E E8B5 <CJK>
-E8B6 8387 E8B6 <CJK>
-E8B7 838A E8B7 <CJK>
-E8B8 837C E8B8 <CJK>
-E8B9 83B5 E8B9 <CJK>
-E8BA 8373 E8BA <CJK>
-E8BB 8375 E8BB <CJK>
-E8BC 83A0 E8BC <CJK>
-E8BD 8389 E8BD <CJK>
-E8BE 83A8 E8BE <CJK>
-E8BF 83F4 E8BF <CJK>
-E8C0 8413 E8C0 <CJK>
-E8C1 83EB E8C1 <CJK>
-E8C2 83CE E8C2 <CJK>
-E8C3 83FD E8C3 <CJK>
-E8C4 8403 E8C4 <CJK>
-E8C5 83D8 E8C5 <CJK>
-E8C6 840B E8C6 <CJK>
-E8C7 83C1 E8C7 <CJK>
-E8C8 83F7 E8C8 <CJK>
-E8C9 8407 E8C9 <CJK>
-E8CA 83E0 E8CA <CJK>
-E8CB 83F2 E8CB <CJK>
-E8CC 840D E8CC <CJK>
-E8CD 8422 E8CD <CJK>
-E8CE 8420 E8CE <CJK>
-E8CF 83BD E8CF <CJK>
-E8D0 8438 E8D0 <CJK>
-E8D1 8506 E8D1 <CJK>
-E8D2 83FB E8D2 <CJK>
-E8D3 846D E8D3 <CJK>
-E8D4 842A E8D4 <CJK>
-E8D5 843C E8D5 <CJK>
-E8D6 855A E8D6 <CJK>
-E8D7 8484 E8D7 <CJK>
-E8D8 8477 E8D8 <CJK>
-E8D9 846B E8D9 <CJK>
-E8DA 84AD E8DA <CJK>
-E8DB 846E E8DB <CJK>
-E8DC 8482 E8DC <CJK>
-E8DD 8469 E8DD <CJK>
-E8DE 8446 E8DE <CJK>
-E8DF 842C E8DF <CJK>
-E8E0 846F E8E0 <CJK>
-E8E1 8479 E8E1 <CJK>
-E8E2 8435 E8E2 <CJK>
-E8E3 84CA E8E3 <CJK>
-E8E4 8462 E8E4 <CJK>
-E8E5 84B9 E8E5 <CJK>
-E8E6 84BF E8E6 <CJK>
-E8E7 849F E8E7 <CJK>
-E8E8 84D9 E8E8 <CJK>
-E8E9 84CD E8E9 <CJK>
-E8EA 84BB E8EA <CJK>
-E8EB 84DA E8EB <CJK>
-E8EC 84D0 E8EC <CJK>
-E8ED 84C1 E8ED <CJK>
-E8EE 84C6 E8EE <CJK>
-E8EF 84D6 E8EF <CJK>
-E8F0 84A1 E8F0 <CJK>
-E8F1 8521 E8F1 <CJK>
-E8F2 84FF E8F2 <CJK>
-E8F3 84F4 E8F3 <CJK>
-E8F4 8517 E8F4 <CJK>
-E8F5 8518 E8F5 <CJK>
-E8F6 852C E8F6 <CJK>
-E8F7 851F E8F7 <CJK>
-E8F8 8515 E8F8 <CJK>
-E8F9 8514 E8F9 <CJK>
-E8FA 84FC E8FA <CJK>
-E8FB 8540 E8FB <CJK>
-E8FC 8563 E8FC <CJK>
-E8FD 8558 E8FD <CJK>
-E8FE 8548 E8FE <CJK>
-E9A1 8541 E9A1 <CJK>
-E9A2 8602 E9A2 <CJK>
-E9A3 854B E9A3 <CJK>
-E9A4 8555 E9A4 <CJK>
-E9A5 8580 E9A5 <CJK>
-E9A6 85A4 E9A6 <CJK>
-E9A7 8588 E9A7 <CJK>
-E9A8 8591 E9A8 <CJK>
-E9A9 858A E9A9 <CJK>
-E9AA 85A8 E9AA <CJK>
-E9AB 856D E9AB <CJK>
-E9AC 8594 E9AC <CJK>
-E9AD 859B E9AD <CJK>
-E9AE 85EA E9AE <CJK>
-E9AF 8587 E9AF <CJK>
-E9B0 859C E9B0 <CJK>
-E9B1 8577 E9B1 <CJK>
-E9B2 857E E9B2 <CJK>
-E9B3 8590 E9B3 <CJK>
-E9B4 85C9 E9B4 <CJK>
-E9B5 85BA E9B5 <CJK>
-E9B6 85CF E9B6 <CJK>
-E9B7 85B9 E9B7 <CJK>
-E9B8 85D0 E9B8 <CJK>
-E9B9 85D5 E9B9 <CJK>
-E9BA 85DD E9BA <CJK>
-E9BB 85E5 E9BB <CJK>
-E9BC 85DC E9BC <CJK>
-E9BD 85F9 E9BD <CJK>
-E9BE 860A E9BE <CJK>
-E9BF 8613 E9BF <CJK>
-E9C0 860B E9C0 <CJK>
-E9C1 85FE E9C1 <CJK>
-E9C2 85FA E9C2 <CJK>
-E9C3 8606 E9C3 <CJK>
-E9C4 8622 E9C4 <CJK>
-E9C5 861A E9C5 <CJK>
-E9C6 8630 E9C6 <CJK>
-E9C7 863F E9C7 <CJK>
-E9C8 864D E9C8 <CJK>
-E9C9 4E55 E9C9 <CJK>
-E9CA 8654 E9CA <CJK>
-E9CB 865F E9CB <CJK>
-E9CC 8667 E9CC <CJK>
-E9CD 8671 E9CD <CJK>
-E9CE 8693 E9CE <CJK>
-E9CF 86A3 E9CF <CJK>
-E9D0 86A9 E9D0 <CJK>
-E9D1 86AA E9D1 <CJK>
-E9D2 868B E9D2 <CJK>
-E9D3 868C E9D3 <CJK>
-E9D4 86B6 E9D4 <CJK>
-E9D5 86AF E9D5 <CJK>
-E9D6 86C4 E9D6 <CJK>
-E9D7 86C6 E9D7 <CJK>
-E9D8 86B0 E9D8 <CJK>
-E9D9 86C9 E9D9 <CJK>
-E9DA 8823 E9DA <CJK>
-E9DB 86AB E9DB <CJK>
-E9DC 86D4 E9DC <CJK>
-E9DD 86DE E9DD <CJK>
-E9DE 86E9 E9DE <CJK>
-E9DF 86EC E9DF <CJK>
-E9E0 86DF E9E0 <CJK>
-E9E1 86DB E9E1 <CJK>
-E9E2 86EF E9E2 <CJK>
-E9E3 8712 E9E3 <CJK>
-E9E4 8706 E9E4 <CJK>
-E9E5 8708 E9E5 <CJK>
-E9E6 8700 E9E6 <CJK>
-E9E7 8703 E9E7 <CJK>
-E9E8 86FB E9E8 <CJK>
-E9E9 8711 E9E9 <CJK>
-E9EA 8709 E9EA <CJK>
-E9EB 870D E9EB <CJK>
-E9EC 86F9 E9EC <CJK>
-E9ED 870A E9ED <CJK>
-E9EE 8734 E9EE <CJK>
-E9EF 873F E9EF <CJK>
-E9F0 8737 E9F0 <CJK>
-E9F1 873B E9F1 <CJK>
-E9F2 8725 E9F2 <CJK>
-E9F3 8729 E9F3 <CJK>
-E9F4 871A E9F4 <CJK>
-E9F5 8760 E9F5 <CJK>
-E9F6 875F E9F6 <CJK>
-E9F7 8778 E9F7 <CJK>
-E9F8 874C E9F8 <CJK>
-E9F9 874E E9F9 <CJK>
-E9FA 8774 E9FA <CJK>
-E9FB 8757 E9FB <CJK>
-E9FC 8768 E9FC <CJK>
-E9FD 876E E9FD <CJK>
-E9FE 8759 E9FE <CJK>
-EAA1 8753 EAA1 <CJK>
-EAA2 8763 EAA2 <CJK>
-EAA3 876A EAA3 <CJK>
-EAA4 8805 EAA4 <CJK>
-EAA5 87A2 EAA5 <CJK>
-EAA6 879F EAA6 <CJK>
-EAA7 8782 EAA7 <CJK>
-EAA8 87AF EAA8 <CJK>
-EAA9 87CB EAA9 <CJK>
-EAAA 87BD EAAA <CJK>
-EAAB 87C0 EAAB <CJK>
-EAAC 87D0 EAAC <CJK>
-EAAD 96D6 EAAD <CJK>
-EAAE 87AB EAAE <CJK>
-EAAF 87C4 EAAF <CJK>
-EAB0 87B3 EAB0 <CJK>
-EAB1 87C7 EAB1 <CJK>
-EAB2 87C6 EAB2 <CJK>
-EAB3 87BB EAB3 <CJK>
-EAB4 87EF EAB4 <CJK>
-EAB5 87F2 EAB5 <CJK>
-EAB6 87E0 EAB6 <CJK>
-EAB7 880F EAB7 <CJK>
-EAB8 880D EAB8 <CJK>
-EAB9 87FE EAB9 <CJK>
-EABA 87F6 EABA <CJK>
-EABB 87F7 EABB <CJK>
-EABC 880E EABC <CJK>
-EABD 87D2 EABD <CJK>
-EABE 8811 EABE <CJK>
-EABF 8816 EABF <CJK>
-EAC0 8815 EAC0 <CJK>
-EAC1 8822 EAC1 <CJK>
-EAC2 8821 EAC2 <CJK>
-EAC3 8831 EAC3 <CJK>
-EAC4 8836 EAC4 <CJK>
-EAC5 8839 EAC5 <CJK>
-EAC6 8827 EAC6 <CJK>
-EAC7 883B EAC7 <CJK>
-EAC8 8844 EAC8 <CJK>
-EAC9 8842 EAC9 <CJK>
-EACA 8852 EACA <CJK>
-EACB 8859 EACB <CJK>
-EACC 885E EACC <CJK>
-EACD 8862 EACD <CJK>
-EACE 886B EACE <CJK>
-EACF 8881 EACF <CJK>
-EAD0 887E EAD0 <CJK>
-EAD1 889E EAD1 <CJK>
-EAD2 8875 EAD2 <CJK>
-EAD3 887D EAD3 <CJK>
-EAD4 88B5 EAD4 <CJK>
-EAD5 8872 EAD5 <CJK>
-EAD6 8882 EAD6 <CJK>
-EAD7 8897 EAD7 <CJK>
-EAD8 8892 EAD8 <CJK>
-EAD9 88AE EAD9 <CJK>
-EADA 8899 EADA <CJK>
-EADB 88A2 EADB <CJK>
-EADC 888D EADC <CJK>
-EADD 88A4 EADD <CJK>
-EADE 88B0 EADE <CJK>
-EADF 88BF EADF <CJK>
-EAE0 88B1 EAE0 <CJK>
-EAE1 88C3 EAE1 <CJK>
-EAE2 88C4 EAE2 <CJK>
-EAE3 88D4 EAE3 <CJK>
-EAE4 88D8 EAE4 <CJK>
-EAE5 88D9 EAE5 <CJK>
-EAE6 88DD EAE6 <CJK>
-EAE7 88F9 EAE7 <CJK>
-EAE8 8902 EAE8 <CJK>
-EAE9 88FC EAE9 <CJK>
-EAEA 88F4 EAEA <CJK>
-EAEB 88E8 EAEB <CJK>
-EAEC 88F2 EAEC <CJK>
-EAED 8904 EAED <CJK>
-EAEE 890C EAEE <CJK>
-EAEF 890A EAEF <CJK>
-EAF0 8913 EAF0 <CJK>
-EAF1 8943 EAF1 <CJK>
-EAF2 891E EAF2 <CJK>
-EAF3 8925 EAF3 <CJK>
-EAF4 892A EAF4 <CJK>
-EAF5 892B EAF5 <CJK>
-EAF6 8941 EAF6 <CJK>
-EAF7 8944 EAF7 <CJK>
-EAF8 893B EAF8 <CJK>
-EAF9 8936 EAF9 <CJK>
-EAFA 8938 EAFA <CJK>
-EAFB 894C EAFB <CJK>
-EAFC 891D EAFC <CJK>
-EAFD 8960 EAFD <CJK>
-EAFE 895E EAFE <CJK>
-EBA1 8966 EBA1 <CJK>
-EBA2 8964 EBA2 <CJK>
-EBA3 896D EBA3 <CJK>
-EBA4 896A EBA4 <CJK>
-EBA5 896F EBA5 <CJK>
-EBA6 8974 EBA6 <CJK>
-EBA7 8977 EBA7 <CJK>
-EBA8 897E EBA8 <CJK>
-EBA9 8983 EBA9 <CJK>
-EBAA 8988 EBAA <CJK>
-EBAB 898A EBAB <CJK>
-EBAC 8993 EBAC <CJK>
-EBAD 8998 EBAD <CJK>
-EBAE 89A1 EBAE <CJK>
-EBAF 89A9 EBAF <CJK>
-EBB0 89A6 EBB0 <CJK>
-EBB1 89AC EBB1 <CJK>
-EBB2 89AF EBB2 <CJK>
-EBB3 89B2 EBB3 <CJK>
-EBB4 89BA EBB4 <CJK>
-EBB5 89BD EBB5 <CJK>
-EBB6 89BF EBB6 <CJK>
-EBB7 89C0 EBB7 <CJK>
-EBB8 89DA EBB8 <CJK>
-EBB9 89DC EBB9 <CJK>
-EBBA 89DD EBBA <CJK>
-EBBB 89E7 EBBB <CJK>
-EBBC 89F4 EBBC <CJK>
-EBBD 89F8 EBBD <CJK>
-EBBE 8A03 EBBE <CJK>
-EBBF 8A16 EBBF <CJK>
-EBC0 8A10 EBC0 <CJK>
-EBC1 8A0C EBC1 <CJK>
-EBC2 8A1B EBC2 <CJK>
-EBC3 8A1D EBC3 <CJK>
-EBC4 8A25 EBC4 <CJK>
-EBC5 8A36 EBC5 <CJK>
-EBC6 8A41 EBC6 <CJK>
-EBC7 8A5B EBC7 <CJK>
-EBC8 8A52 EBC8 <CJK>
-EBC9 8A46 EBC9 <CJK>
-EBCA 8A48 EBCA <CJK>
-EBCB 8A7C EBCB <CJK>
-EBCC 8A6D EBCC <CJK>
-EBCD 8A6C EBCD <CJK>
-EBCE 8A62 EBCE <CJK>
-EBCF 8A85 EBCF <CJK>
-EBD0 8A82 EBD0 <CJK>
-EBD1 8A84 EBD1 <CJK>
-EBD2 8AA8 EBD2 <CJK>
-EBD3 8AA1 EBD3 <CJK>
-EBD4 8A91 EBD4 <CJK>
-EBD5 8AA5 EBD5 <CJK>
-EBD6 8AA6 EBD6 <CJK>
-EBD7 8A9A EBD7 <CJK>
-EBD8 8AA3 EBD8 <CJK>
-EBD9 8AC4 EBD9 <CJK>
-EBDA 8ACD EBDA <CJK>
-EBDB 8AC2 EBDB <CJK>
-EBDC 8ADA EBDC <CJK>
-EBDD 8AEB EBDD <CJK>
-EBDE 8AF3 EBDE <CJK>
-EBDF 8AE7 EBDF <CJK>
-EBE0 8AE4 EBE0 <CJK>
-EBE1 8AF1 EBE1 <CJK>
-EBE2 8B14 EBE2 <CJK>
-EBE3 8AE0 EBE3 <CJK>
-EBE4 8AE2 EBE4 <CJK>
-EBE5 8AF7 EBE5 <CJK>
-EBE6 8ADE EBE6 <CJK>
-EBE7 8ADB EBE7 <CJK>
-EBE8 8B0C EBE8 <CJK>
-EBE9 8B07 EBE9 <CJK>
-EBEA 8B1A EBEA <CJK>
-EBEB 8AE1 EBEB <CJK>
-EBEC 8B16 EBEC <CJK>
-EBED 8B10 EBED <CJK>
-EBEE 8B17 EBEE <CJK>
-EBEF 8B20 EBEF <CJK>
-EBF0 8B33 EBF0 <CJK>
-EBF1 97AB EBF1 <CJK>
-EBF2 8B26 EBF2 <CJK>
-EBF3 8B2B EBF3 <CJK>
-EBF4 8B3E EBF4 <CJK>
-EBF5 8B28 EBF5 <CJK>
-EBF6 8B41 EBF6 <CJK>
-EBF7 8B4C EBF7 <CJK>
-EBF8 8B4F EBF8 <CJK>
-EBF9 8B4E EBF9 <CJK>
-EBFA 8B49 EBFA <CJK>
-EBFB 8B56 EBFB <CJK>
-EBFC 8B5B EBFC <CJK>
-EBFD 8B5A EBFD <CJK>
-EBFE 8B6B EBFE <CJK>
-ECA1 8B5F ECA1 <CJK>
-ECA2 8B6C ECA2 <CJK>
-ECA3 8B6F ECA3 <CJK>
-ECA4 8B74 ECA4 <CJK>
-ECA5 8B7D ECA5 <CJK>
-ECA6 8B80 ECA6 <CJK>
-ECA7 8B8C ECA7 <CJK>
-ECA8 8B8E ECA8 <CJK>
-ECA9 8B92 ECA9 <CJK>
-ECAA 8B93 ECAA <CJK>
-ECAB 8B96 ECAB <CJK>
-ECAC 8B99 ECAC <CJK>
-ECAD 8B9A ECAD <CJK>
-ECAE 8C3A ECAE <CJK>
-ECAF 8C41 ECAF <CJK>
-ECB0 8C3F ECB0 <CJK>
-ECB1 8C48 ECB1 <CJK>
-ECB2 8C4C ECB2 <CJK>
-ECB3 8C4E ECB3 <CJK>
-ECB4 8C50 ECB4 <CJK>
-ECB5 8C55 ECB5 <CJK>
-ECB6 8C62 ECB6 <CJK>
-ECB7 8C6C ECB7 <CJK>
-ECB8 8C78 ECB8 <CJK>
-ECB9 8C7A ECB9 <CJK>
-ECBA 8C82 ECBA <CJK>
-ECBB 8C89 ECBB <CJK>
-ECBC 8C85 ECBC <CJK>
-ECBD 8C8A ECBD <CJK>
-ECBE 8C8D ECBE <CJK>
-ECBF 8C8E ECBF <CJK>
-ECC0 8C94 ECC0 <CJK>
-ECC1 8C7C ECC1 <CJK>
-ECC2 8C98 ECC2 <CJK>
-ECC3 621D ECC3 <CJK>
-ECC4 8CAD ECC4 <CJK>
-ECC5 8CAA ECC5 <CJK>
-ECC6 8CBD ECC6 <CJK>
-ECC7 8CB2 ECC7 <CJK>
-ECC8 8CB3 ECC8 <CJK>
-ECC9 8CAE ECC9 <CJK>
-ECCA 8CB6 ECCA <CJK>
-ECCB 8CC8 ECCB <CJK>
-ECCC 8CC1 ECCC <CJK>
-ECCD 8CE4 ECCD <CJK>
-ECCE 8CE3 ECCE <CJK>
-ECCF 8CDA ECCF <CJK>
-ECD0 8CFD ECD0 <CJK>
-ECD1 8CFA ECD1 <CJK>
-ECD2 8CFB ECD2 <CJK>
-ECD3 8D04 ECD3 <CJK>
-ECD4 8D05 ECD4 <CJK>
-ECD5 8D0A ECD5 <CJK>
-ECD6 8D07 ECD6 <CJK>
-ECD7 8D0F ECD7 <CJK>
-ECD8 8D0D ECD8 <CJK>
-ECD9 8D10 ECD9 <CJK>
-ECDA 9F4E ECDA <CJK>
-ECDB 8D13 ECDB <CJK>
-ECDC 8CCD ECDC <CJK>
-ECDD 8D14 ECDD <CJK>
-ECDE 8D16 ECDE <CJK>
-ECDF 8D67 ECDF <CJK>
-ECE0 8D6D ECE0 <CJK>
-ECE1 8D71 ECE1 <CJK>
-ECE2 8D73 ECE2 <CJK>
-ECE3 8D81 ECE3 <CJK>
-ECE4 8D99 ECE4 <CJK>
-ECE5 8DC2 ECE5 <CJK>
-ECE6 8DBE ECE6 <CJK>
-ECE7 8DBA ECE7 <CJK>
-ECE8 8DCF ECE8 <CJK>
-ECE9 8DDA ECE9 <CJK>
-ECEA 8DD6 ECEA <CJK>
-ECEB 8DCC ECEB <CJK>
-ECEC 8DDB ECEC <CJK>
-ECED 8DCB ECED <CJK>
-ECEE 8DEA ECEE <CJK>
-ECEF 8DEB ECEF <CJK>
-ECF0 8DDF ECF0 <CJK>
-ECF1 8DE3 ECF1 <CJK>
-ECF2 8DFC ECF2 <CJK>
-ECF3 8E08 ECF3 <CJK>
-ECF4 8E09 ECF4 <CJK>
-ECF5 8DFF ECF5 <CJK>
-ECF6 8E1D ECF6 <CJK>
-ECF7 8E1E ECF7 <CJK>
-ECF8 8E10 ECF8 <CJK>
-ECF9 8E1F ECF9 <CJK>
-ECFA 8E42 ECFA <CJK>
-ECFB 8E35 ECFB <CJK>
-ECFC 8E30 ECFC <CJK>
-ECFD 8E34 ECFD <CJK>
-ECFE 8E4A ECFE <CJK>
-EDA1 8E47 EDA1 <CJK>
-EDA2 8E49 EDA2 <CJK>
-EDA3 8E4C EDA3 <CJK>
-EDA4 8E50 EDA4 <CJK>
-EDA5 8E48 EDA5 <CJK>
-EDA6 8E59 EDA6 <CJK>
-EDA7 8E64 EDA7 <CJK>
-EDA8 8E60 EDA8 <CJK>
-EDA9 8E2A EDA9 <CJK>
-EDAA 8E63 EDAA <CJK>
-EDAB 8E55 EDAB <CJK>
-EDAC 8E76 EDAC <CJK>
-EDAD 8E72 EDAD <CJK>
-EDAE 8E7C EDAE <CJK>
-EDAF 8E81 EDAF <CJK>
-EDB0 8E87 EDB0 <CJK>
-EDB1 8E85 EDB1 <CJK>
-EDB2 8E84 EDB2 <CJK>
-EDB3 8E8B EDB3 <CJK>
-EDB4 8E8A EDB4 <CJK>
-EDB5 8E93 EDB5 <CJK>
-EDB6 8E91 EDB6 <CJK>
-EDB7 8E94 EDB7 <CJK>
-EDB8 8E99 EDB8 <CJK>
-EDB9 8EAA EDB9 <CJK>
-EDBA 8EA1 EDBA <CJK>
-EDBB 8EAC EDBB <CJK>
-EDBC 8EB0 EDBC <CJK>
-EDBD 8EC6 EDBD <CJK>
-EDBE 8EB1 EDBE <CJK>
-EDBF 8EBE EDBF <CJK>
-EDC0 8EC5 EDC0 <CJK>
-EDC1 8EC8 EDC1 <CJK>
-EDC2 8ECB EDC2 <CJK>
-EDC3 8EDB EDC3 <CJK>
-EDC4 8EE3 EDC4 <CJK>
-EDC5 8EFC EDC5 <CJK>
-EDC6 8EFB EDC6 <CJK>
-EDC7 8EEB EDC7 <CJK>
-EDC8 8EFE EDC8 <CJK>
-EDC9 8F0A EDC9 <CJK>
-EDCA 8F05 EDCA <CJK>
-EDCB 8F15 EDCB <CJK>
-EDCC 8F12 EDCC <CJK>
-EDCD 8F19 EDCD <CJK>
-EDCE 8F13 EDCE <CJK>
-EDCF 8F1C EDCF <CJK>
-EDD0 8F1F EDD0 <CJK>
-EDD1 8F1B EDD1 <CJK>
-EDD2 8F0C EDD2 <CJK>
-EDD3 8F26 EDD3 <CJK>
-EDD4 8F33 EDD4 <CJK>
-EDD5 8F3B EDD5 <CJK>
-EDD6 8F39 EDD6 <CJK>
-EDD7 8F45 EDD7 <CJK>
-EDD8 8F42 EDD8 <CJK>
-EDD9 8F3E EDD9 <CJK>
-EDDA 8F4C EDDA <CJK>
-EDDB 8F49 EDDB <CJK>
-EDDC 8F46 EDDC <CJK>
-EDDD 8F4E EDDD <CJK>
-EDDE 8F57 EDDE <CJK>
-EDDF 8F5C EDDF <CJK>
-EDE0 8F62 EDE0 <CJK>
-EDE1 8F63 EDE1 <CJK>
-EDE2 8F64 EDE2 <CJK>
-EDE3 8F9C EDE3 <CJK>
-EDE4 8F9F EDE4 <CJK>
-EDE5 8FA3 EDE5 <CJK>
-EDE6 8FAD EDE6 <CJK>
-EDE7 8FAF EDE7 <CJK>
-EDE8 8FB7 EDE8 <CJK>
-EDE9 8FDA EDE9 <CJK>
-EDEA 8FE5 EDEA <CJK>
-EDEB 8FE2 EDEB <CJK>
-EDEC 8FEA EDEC <CJK>
-EDED 8FEF EDED <CJK>
-EDEE 9087 EDEE <CJK>
-EDEF 8FF4 EDEF <CJK>
-EDF0 9005 EDF0 <CJK>
-EDF1 8FF9 EDF1 <CJK>
-EDF2 8FFA EDF2 <CJK>
-EDF3 9011 EDF3 <CJK>
-EDF4 9015 EDF4 <CJK>
-EDF5 9021 EDF5 <CJK>
-EDF6 900D EDF6 <CJK>
-EDF7 901E EDF7 <CJK>
-EDF8 9016 EDF8 <CJK>
-EDF9 900B EDF9 <CJK>
-EDFA 9027 EDFA <CJK>
-EDFB 9036 EDFB <CJK>
-EDFC 9035 EDFC <CJK>
-EDFD 9039 EDFD <CJK>
-EDFE 8FF8 EDFE <CJK>
-EEA1 904F EEA1 <CJK>
-EEA2 9050 EEA2 <CJK>
-EEA3 9051 EEA3 <CJK>
-EEA4 9052 EEA4 <CJK>
-EEA5 900E EEA5 <CJK>
-EEA6 9049 EEA6 <CJK>
-EEA7 903E EEA7 <CJK>
-EEA8 9056 EEA8 <CJK>
-EEA9 9058 EEA9 <CJK>
-EEAA 905E EEAA <CJK>
-EEAB 9068 EEAB <CJK>
-EEAC 906F EEAC <CJK>
-EEAD 9076 EEAD <CJK>
-EEAE 96A8 EEAE <CJK>
-EEAF 9072 EEAF <CJK>
-EEB0 9082 EEB0 <CJK>
-EEB1 907D EEB1 <CJK>
-EEB2 9081 EEB2 <CJK>
-EEB3 9080 EEB3 <CJK>
-EEB4 908A EEB4 <CJK>
-EEB5 9089 EEB5 <CJK>
-EEB6 908F EEB6 <CJK>
-EEB7 90A8 EEB7 <CJK>
-EEB8 90AF EEB8 <CJK>
-EEB9 90B1 EEB9 <CJK>
-EEBA 90B5 EEBA <CJK>
-EEBB 90E2 EEBB <CJK>
-EEBC 90E4 EEBC <CJK>
-EEBD 6248 EEBD <CJK>
-EEBE 90DB EEBE <CJK>
-EEBF 9102 EEBF <CJK>
-EEC0 9112 EEC0 <CJK>
-EEC1 9119 EEC1 <CJK>
-EEC2 9132 EEC2 <CJK>
-EEC3 9130 EEC3 <CJK>
-EEC4 914A EEC4 <CJK>
-EEC5 9156 EEC5 <CJK>
-EEC6 9158 EEC6 <CJK>
-EEC7 9163 EEC7 <CJK>
-EEC8 9165 EEC8 <CJK>
-EEC9 9169 EEC9 <CJK>
-EECA 9173 EECA <CJK>
-EECB 9172 EECB <CJK>
-EECC 918B EECC <CJK>
-EECD 9189 EECD <CJK>
-EECE 9182 EECE <CJK>
-EECF 91A2 EECF <CJK>
-EED0 91AB EED0 <CJK>
-EED1 91AF EED1 <CJK>
-EED2 91AA EED2 <CJK>
-EED3 91B5 EED3 <CJK>
-EED4 91B4 EED4 <CJK>
-EED5 91BA EED5 <CJK>
-EED6 91C0 EED6 <CJK>
-EED7 91C1 EED7 <CJK>
-EED8 91C9 EED8 <CJK>
-EED9 91CB EED9 <CJK>
-EEDA 91D0 EEDA <CJK>
-EEDB 91D6 EEDB <CJK>
-EEDC 91DF EEDC <CJK>
-EEDD 91E1 EEDD <CJK>
-EEDE 91DB EEDE <CJK>
-EEDF 91FC EEDF <CJK>
-EEE0 91F5 EEE0 <CJK>
-EEE1 91F6 EEE1 <CJK>
-EEE2 921E EEE2 <CJK>
-EEE3 91FF EEE3 <CJK>
-EEE4 9214 EEE4 <CJK>
-EEE5 922C EEE5 <CJK>
-EEE6 9215 EEE6 <CJK>
-EEE7 9211 EEE7 <CJK>
-EEE8 925E EEE8 <CJK>
-EEE9 9257 EEE9 <CJK>
-EEEA 9245 EEEA <CJK>
-EEEB 9249 EEEB <CJK>
-EEEC 9264 EEEC <CJK>
-EEED 9248 EEED <CJK>
-EEEE 9295 EEEE <CJK>
-EEEF 923F EEEF <CJK>
-EEF0 924B EEF0 <CJK>
-EEF1 9250 EEF1 <CJK>
-EEF2 929C EEF2 <CJK>
-EEF3 9296 EEF3 <CJK>
-EEF4 9293 EEF4 <CJK>
-EEF5 929B EEF5 <CJK>
-EEF6 925A EEF6 <CJK>
-EEF7 92CF EEF7 <CJK>
-EEF8 92B9 EEF8 <CJK>
-EEF9 92B7 EEF9 <CJK>
-EEFA 92E9 EEFA <CJK>
-EEFB 930F EEFB <CJK>
-EEFC 92FA EEFC <CJK>
-EEFD 9344 EEFD <CJK>
-EEFE 932E EEFE <CJK>
-EFA1 9319 EFA1 <CJK>
-EFA2 9322 EFA2 <CJK>
-EFA3 931A EFA3 <CJK>
-EFA4 9323 EFA4 <CJK>
-EFA5 933A EFA5 <CJK>
-EFA6 9335 EFA6 <CJK>
-EFA7 933B EFA7 <CJK>
-EFA8 935C EFA8 <CJK>
-EFA9 9360 EFA9 <CJK>
-EFAA 937C EFAA <CJK>
-EFAB 936E EFAB <CJK>
-EFAC 9356 EFAC <CJK>
-EFAD 93B0 EFAD <CJK>
-EFAE 93AC EFAE <CJK>
-EFAF 93AD EFAF <CJK>
-EFB0 9394 EFB0 <CJK>
-EFB1 93B9 EFB1 <CJK>
-EFB2 93D6 EFB2 <CJK>
-EFB3 93D7 EFB3 <CJK>
-EFB4 93E8 EFB4 <CJK>
-EFB5 93E5 EFB5 <CJK>
-EFB6 93D8 EFB6 <CJK>
-EFB7 93C3 EFB7 <CJK>
-EFB8 93DD EFB8 <CJK>
-EFB9 93D0 EFB9 <CJK>
-EFBA 93C8 EFBA <CJK>
-EFBB 93E4 EFBB <CJK>
-EFBC 941A EFBC <CJK>
-EFBD 9414 EFBD <CJK>
-EFBE 9413 EFBE <CJK>
-EFBF 9403 EFBF <CJK>
-EFC0 9407 EFC0 <CJK>
-EFC1 9410 EFC1 <CJK>
-EFC2 9436 EFC2 <CJK>
-EFC3 942B EFC3 <CJK>
-EFC4 9435 EFC4 <CJK>
-EFC5 9421 EFC5 <CJK>
-EFC6 943A EFC6 <CJK>
-EFC7 9441 EFC7 <CJK>
-EFC8 9452 EFC8 <CJK>
-EFC9 9444 EFC9 <CJK>
-EFCA 945B EFCA <CJK>
-EFCB 9460 EFCB <CJK>
-EFCC 9462 EFCC <CJK>
-EFCD 945E EFCD <CJK>
-EFCE 946A EFCE <CJK>
-EFCF 9229 EFCF <CJK>
-EFD0 9470 EFD0 <CJK>
-EFD1 9475 EFD1 <CJK>
-EFD2 9477 EFD2 <CJK>
-EFD3 947D EFD3 <CJK>
-EFD4 945A EFD4 <CJK>
-EFD5 947C EFD5 <CJK>
-EFD6 947E EFD6 <CJK>
-EFD7 9481 EFD7 <CJK>
-EFD8 947F EFD8 <CJK>
-EFD9 9582 EFD9 <CJK>
-EFDA 9587 EFDA <CJK>
-EFDB 958A EFDB <CJK>
-EFDC 9594 EFDC <CJK>
-EFDD 9596 EFDD <CJK>
-EFDE 9598 EFDE <CJK>
-EFDF 9599 EFDF <CJK>
-EFE0 95A0 EFE0 <CJK>
-EFE1 95A8 EFE1 <CJK>
-EFE2 95A7 EFE2 <CJK>
-EFE3 95AD EFE3 <CJK>
-EFE4 95BC EFE4 <CJK>
-EFE5 95BB EFE5 <CJK>
-EFE6 95B9 EFE6 <CJK>
-EFE7 95BE EFE7 <CJK>
-EFE8 95CA EFE8 <CJK>
-EFE9 6FF6 EFE9 <CJK>
-EFEA 95C3 EFEA <CJK>
-EFEB 95CD EFEB <CJK>
-EFEC 95CC EFEC <CJK>
-EFED 95D5 EFED <CJK>
-EFEE 95D4 EFEE <CJK>
-EFEF 95D6 EFEF <CJK>
-EFF0 95DC EFF0 <CJK>
-EFF1 95E1 EFF1 <CJK>
-EFF2 95E5 EFF2 <CJK>
-EFF3 95E2 EFF3 <CJK>
-EFF4 9621 EFF4 <CJK>
-EFF5 9628 EFF5 <CJK>
-EFF6 962E EFF6 <CJK>
-EFF7 962F EFF7 <CJK>
-EFF8 9642 EFF8 <CJK>
-EFF9 964C EFF9 <CJK>
-EFFA 964F EFFA <CJK>
-EFFB 964B EFFB <CJK>
-EFFC 9677 EFFC <CJK>
-EFFD 965C EFFD <CJK>
-EFFE 965E EFFE <CJK>
-F0A1 965D F0A1 <CJK>
-F0A2 965F F0A2 <CJK>
-F0A3 9666 F0A3 <CJK>
-F0A4 9672 F0A4 <CJK>
-F0A5 966C F0A5 <CJK>
-F0A6 968D F0A6 <CJK>
-F0A7 9698 F0A7 <CJK>
-F0A8 9695 F0A8 <CJK>
-F0A9 9697 F0A9 <CJK>
-F0AA 96AA F0AA <CJK>
-F0AB 96A7 F0AB <CJK>
-F0AC 96B1 F0AC <CJK>
-F0AD 96B2 F0AD <CJK>
-F0AE 96B0 F0AE <CJK>
-F0AF 96B4 F0AF <CJK>
-F0B0 96B6 F0B0 <CJK>
-F0B1 96B8 F0B1 <CJK>
-F0B2 96B9 F0B2 <CJK>
-F0B3 96CE F0B3 <CJK>
-F0B4 96CB F0B4 <CJK>
-F0B5 96C9 F0B5 <CJK>
-F0B6 96CD F0B6 <CJK>
-F0B7 894D F0B7 <CJK>
-F0B8 96DC F0B8 <CJK>
-F0B9 970D F0B9 <CJK>
-F0BA 96D5 F0BA <CJK>
-F0BB 96F9 F0BB <CJK>
-F0BC 9704 F0BC <CJK>
-F0BD 9706 F0BD <CJK>
-F0BE 9708 F0BE <CJK>
-F0BF 9713 F0BF <CJK>
-F0C0 970E F0C0 <CJK>
-F0C1 9711 F0C1 <CJK>
-F0C2 970F F0C2 <CJK>
-F0C3 9716 F0C3 <CJK>
-F0C4 9719 F0C4 <CJK>
-F0C5 9724 F0C5 <CJK>
-F0C6 972A F0C6 <CJK>
-F0C7 9730 F0C7 <CJK>
-F0C8 9739 F0C8 <CJK>
-F0C9 973D F0C9 <CJK>
-F0CA 973E F0CA <CJK>
-F0CB 9744 F0CB <CJK>
-F0CC 9746 F0CC <CJK>
-F0CD 9748 F0CD <CJK>
-F0CE 9742 F0CE <CJK>
-F0CF 9749 F0CF <CJK>
-F0D0 975C F0D0 <CJK>
-F0D1 9760 F0D1 <CJK>
-F0D2 9764 F0D2 <CJK>
-F0D3 9766 F0D3 <CJK>
-F0D4 9768 F0D4 <CJK>
-F0D5 52D2 F0D5 <CJK>
-F0D6 976B F0D6 <CJK>
-F0D7 9771 F0D7 <CJK>
-F0D8 9779 F0D8 <CJK>
-F0D9 9785 F0D9 <CJK>
-F0DA 977C F0DA <CJK>
-F0DB 9781 F0DB <CJK>
-F0DC 977A F0DC <CJK>
-F0DD 9786 F0DD <CJK>
-F0DE 978B F0DE <CJK>
-F0DF 978F F0DF <CJK>
-F0E0 9790 F0E0 <CJK>
-F0E1 979C F0E1 <CJK>
-F0E2 97A8 F0E2 <CJK>
-F0E3 97A6 F0E3 <CJK>
-F0E4 97A3 F0E4 <CJK>
-F0E5 97B3 F0E5 <CJK>
-F0E6 97B4 F0E6 <CJK>
-F0E7 97C3 F0E7 <CJK>
-F0E8 97C6 F0E8 <CJK>
-F0E9 97C8 F0E9 <CJK>
-F0EA 97CB F0EA <CJK>
-F0EB 97DC F0EB <CJK>
-F0EC 97ED F0EC <CJK>
-F0ED 9F4F F0ED <CJK>
-F0EE 97F2 F0EE <CJK>
-F0EF 7ADF F0EF <CJK>
-F0F0 97F6 F0F0 <CJK>
-F0F1 97F5 F0F1 <CJK>
-F0F2 980F F0F2 <CJK>
-F0F3 980C F0F3 <CJK>
-F0F4 9838 F0F4 <CJK>
-F0F5 9824 F0F5 <CJK>
-F0F6 9821 F0F6 <CJK>
-F0F7 9837 F0F7 <CJK>
-F0F8 983D F0F8 <CJK>
-F0F9 9846 F0F9 <CJK>
-F0FA 984F F0FA <CJK>
-F0FB 984B F0FB <CJK>
-F0FC 986B F0FC <CJK>
-F0FD 986F F0FD <CJK>
-F0FE 9870 F0FE <CJK>
-F1A1 9871 F1A1 <CJK>
-F1A2 9874 F1A2 <CJK>
-F1A3 9873 F1A3 <CJK>
-F1A4 98AA F1A4 <CJK>
-F1A5 98AF F1A5 <CJK>
-F1A6 98B1 F1A6 <CJK>
-F1A7 98B6 F1A7 <CJK>
-F1A8 98C4 F1A8 <CJK>
-F1A9 98C3 F1A9 <CJK>
-F1AA 98C6 F1AA <CJK>
-F1AB 98E9 F1AB <CJK>
-F1AC 98EB F1AC <CJK>
-F1AD 9903 F1AD <CJK>
-F1AE 9909 F1AE <CJK>
-F1AF 9912 F1AF <CJK>
-F1B0 9914 F1B0 <CJK>
-F1B1 9918 F1B1 <CJK>
-F1B2 9921 F1B2 <CJK>
-F1B3 991D F1B3 <CJK>
-F1B4 991E F1B4 <CJK>
-F1B5 9924 F1B5 <CJK>
-F1B6 9920 F1B6 <CJK>
-F1B7 992C F1B7 <CJK>
-F1B8 992E F1B8 <CJK>
-F1B9 993D F1B9 <CJK>
-F1BA 993E F1BA <CJK>
-F1BB 9942 F1BB <CJK>
-F1BC 9949 F1BC <CJK>
-F1BD 9945 F1BD <CJK>
-F1BE 9950 F1BE <CJK>
-F1BF 994B F1BF <CJK>
-F1C0 9951 F1C0 <CJK>
-F1C1 9952 F1C1 <CJK>
-F1C2 994C F1C2 <CJK>
-F1C3 9955 F1C3 <CJK>
-F1C4 9997 F1C4 <CJK>
-F1C5 9998 F1C5 <CJK>
-F1C6 99A5 F1C6 <CJK>
-F1C7 99AD F1C7 <CJK>
-F1C8 99AE F1C8 <CJK>
-F1C9 99BC F1C9 <CJK>
-F1CA 99DF F1CA <CJK>
-F1CB 99DB F1CB <CJK>
-F1CC 99DD F1CC <CJK>
-F1CD 99D8 F1CD <CJK>
-F1CE 99D1 F1CE <CJK>
-F1CF 99ED F1CF <CJK>
-F1D0 99EE F1D0 <CJK>
-F1D1 99F1 F1D1 <CJK>
-F1D2 99F2 F1D2 <CJK>
-F1D3 99FB F1D3 <CJK>
-F1D4 99F8 F1D4 <CJK>
-F1D5 9A01 F1D5 <CJK>
-F1D6 9A0F F1D6 <CJK>
-F1D7 9A05 F1D7 <CJK>
-F1D8 99E2 F1D8 <CJK>
-F1D9 9A19 F1D9 <CJK>
-F1DA 9A2B F1DA <CJK>
-F1DB 9A37 F1DB <CJK>
-F1DC 9A45 F1DC <CJK>
-F1DD 9A42 F1DD <CJK>
-F1DE 9A40 F1DE <CJK>
-F1DF 9A43 F1DF <CJK>
-F1E0 9A3E F1E0 <CJK>
-F1E1 9A55 F1E1 <CJK>
-F1E2 9A4D F1E2 <CJK>
-F1E3 9A5B F1E3 <CJK>
-F1E4 9A57 F1E4 <CJK>
-F1E5 9A5F F1E5 <CJK>
-F1E6 9A62 F1E6 <CJK>
-F1E7 9A65 F1E7 <CJK>
-F1E8 9A64 F1E8 <CJK>
-F1E9 9A69 F1E9 <CJK>
-F1EA 9A6B F1EA <CJK>
-F1EB 9A6A F1EB <CJK>
-F1EC 9AAD F1EC <CJK>
-F1ED 9AB0 F1ED <CJK>
-F1EE 9ABC F1EE <CJK>
-F1EF 9AC0 F1EF <CJK>
-F1F0 9ACF F1F0 <CJK>
-F1F1 9AD1 F1F1 <CJK>
-F1F2 9AD3 F1F2 <CJK>
-F1F3 9AD4 F1F3 <CJK>
-F1F4 9ADE F1F4 <CJK>
-F1F5 9ADF F1F5 <CJK>
-F1F6 9AE2 F1F6 <CJK>
-F1F7 9AE3 F1F7 <CJK>
-F1F8 9AE6 F1F8 <CJK>
-F1F9 9AEF F1F9 <CJK>
-F1FA 9AEB F1FA <CJK>
-F1FB 9AEE F1FB <CJK>
-F1FC 9AF4 F1FC <CJK>
-F1FD 9AF1 F1FD <CJK>
-F1FE 9AF7 F1FE <CJK>
-F2A1 9AFB F2A1 <CJK>
-F2A2 9B06 F2A2 <CJK>
-F2A3 9B18 F2A3 <CJK>
-F2A4 9B1A F2A4 <CJK>
-F2A5 9B1F F2A5 <CJK>
-F2A6 9B22 F2A6 <CJK>
-F2A7 9B23 F2A7 <CJK>
-F2A8 9B25 F2A8 <CJK>
-F2A9 9B27 F2A9 <CJK>
-F2AA 9B28 F2AA <CJK>
-F2AB 9B29 F2AB <CJK>
-F2AC 9B2A F2AC <CJK>
-F2AD 9B2E F2AD <CJK>
-F2AE 9B2F F2AE <CJK>
-F2AF 9B32 F2AF <CJK>
-F2B0 9B44 F2B0 <CJK>
-F2B1 9B43 F2B1 <CJK>
-F2B2 9B4F F2B2 <CJK>
-F2B3 9B4D F2B3 <CJK>
-F2B4 9B4E F2B4 <CJK>
-F2B5 9B51 F2B5 <CJK>
-F2B6 9B58 F2B6 <CJK>
-F2B7 9B74 F2B7 <CJK>
-F2B8 9B93 F2B8 <CJK>
-F2B9 9B83 F2B9 <CJK>
-F2BA 9B91 F2BA <CJK>
-F2BB 9B96 F2BB <CJK>
-F2BC 9B97 F2BC <CJK>
-F2BD 9B9F F2BD <CJK>
-F2BE 9BA0 F2BE <CJK>
-F2BF 9BA8 F2BF <CJK>
-F2C0 9BB4 F2C0 <CJK>
-F2C1 9BC0 F2C1 <CJK>
-F2C2 9BCA F2C2 <CJK>
-F2C3 9BB9 F2C3 <CJK>
-F2C4 9BC6 F2C4 <CJK>
-F2C5 9BCF F2C5 <CJK>
-F2C6 9BD1 F2C6 <CJK>
-F2C7 9BD2 F2C7 <CJK>
-F2C8 9BE3 F2C8 <CJK>
-F2C9 9BE2 F2C9 <CJK>
-F2CA 9BE4 F2CA <CJK>
-F2CB 9BD4 F2CB <CJK>
-F2CC 9BE1 F2CC <CJK>
-F2CD 9C3A F2CD <CJK>
-F2CE 9BF2 F2CE <CJK>
-F2CF 9BF1 F2CF <CJK>
-F2D0 9BF0 F2D0 <CJK>
-F2D1 9C15 F2D1 <CJK>
-F2D2 9C14 F2D2 <CJK>
-F2D3 9C09 F2D3 <CJK>
-F2D4 9C13 F2D4 <CJK>
-F2D5 9C0C F2D5 <CJK>
-F2D6 9C06 F2D6 <CJK>
-F2D7 9C08 F2D7 <CJK>
-F2D8 9C12 F2D8 <CJK>
-F2D9 9C0A F2D9 <CJK>
-F2DA 9C04 F2DA <CJK>
-F2DB 9C2E F2DB <CJK>
-F2DC 9C1B F2DC <CJK>
-F2DD 9C25 F2DD <CJK>
-F2DE 9C24 F2DE <CJK>
-F2DF 9C21 F2DF <CJK>
-F2E0 9C30 F2E0 <CJK>
-F2E1 9C47 F2E1 <CJK>
-F2E2 9C32 F2E2 <CJK>
-F2E3 9C46 F2E3 <CJK>
-F2E4 9C3E F2E4 <CJK>
-F2E5 9C5A F2E5 <CJK>
-F2E6 9C60 F2E6 <CJK>
-F2E7 9C67 F2E7 <CJK>
-F2E8 9C76 F2E8 <CJK>
-F2E9 9C78 F2E9 <CJK>
-F2EA 9CE7 F2EA <CJK>
-F2EB 9CEC F2EB <CJK>
-F2EC 9CF0 F2EC <CJK>
-F2ED 9D09 F2ED <CJK>
-F2EE 9D08 F2EE <CJK>
-F2EF 9CEB F2EF <CJK>
-F2F0 9D03 F2F0 <CJK>
-F2F1 9D06 F2F1 <CJK>
-F2F2 9D2A F2F2 <CJK>
-F2F3 9D26 F2F3 <CJK>
-F2F4 9DAF F2F4 <CJK>
-F2F5 9D23 F2F5 <CJK>
-F2F6 9D1F F2F6 <CJK>
-F2F7 9D44 F2F7 <CJK>
-F2F8 9D15 F2F8 <CJK>
-F2F9 9D12 F2F9 <CJK>
-F2FA 9D41 F2FA <CJK>
-F2FB 9D3F F2FB <CJK>
-F2FC 9D3E F2FC <CJK>
-F2FD 9D46 F2FD <CJK>
-F2FE 9D48 F2FE <CJK>
-F3A1 9D5D F3A1 <CJK>
-F3A2 9D5E F3A2 <CJK>
-F3A3 9D64 F3A3 <CJK>
-F3A4 9D51 F3A4 <CJK>
-F3A5 9D50 F3A5 <CJK>
-F3A6 9D59 F3A6 <CJK>
-F3A7 9D72 F3A7 <CJK>
-F3A8 9D89 F3A8 <CJK>
-F3A9 9D87 F3A9 <CJK>
-F3AA 9DAB F3AA <CJK>
-F3AB 9D6F F3AB <CJK>
-F3AC 9D7A F3AC <CJK>
-F3AD 9D9A F3AD <CJK>
-F3AE 9DA4 F3AE <CJK>
-F3AF 9DA9 F3AF <CJK>
-F3B0 9DB2 F3B0 <CJK>
-F3B1 9DC4 F3B1 <CJK>
-F3B2 9DC1 F3B2 <CJK>
-F3B3 9DBB F3B3 <CJK>
-F3B4 9DB8 F3B4 <CJK>
-F3B5 9DBA F3B5 <CJK>
-F3B6 9DC6 F3B6 <CJK>
-F3B7 9DCF F3B7 <CJK>
-F3B8 9DC2 F3B8 <CJK>
-F3B9 9DD9 F3B9 <CJK>
-F3BA 9DD3 F3BA <CJK>
-F3BB 9DF8 F3BB <CJK>
-F3BC 9DE6 F3BC <CJK>
-F3BD 9DED F3BD <CJK>
-F3BE 9DEF F3BE <CJK>
-F3BF 9DFD F3BF <CJK>
-F3C0 9E1A F3C0 <CJK>
-F3C1 9E1B F3C1 <CJK>
-F3C2 9E1E F3C2 <CJK>
-F3C3 9E75 F3C3 <CJK>
-F3C4 9E79 F3C4 <CJK>
-F3C5 9E7D F3C5 <CJK>
-F3C6 9E81 F3C6 <CJK>
-F3C7 9E88 F3C7 <CJK>
-F3C8 9E8B F3C8 <CJK>
-F3C9 9E8C F3C9 <CJK>
-F3CA 9E92 F3CA <CJK>
-F3CB 9E95 F3CB <CJK>
-F3CC 9E91 F3CC <CJK>
-F3CD 9E9D F3CD <CJK>
-F3CE 9EA5 F3CE <CJK>
-F3CF 9EA9 F3CF <CJK>
-F3D0 9EB8 F3D0 <CJK>
-F3D1 9EAA F3D1 <CJK>
-F3D2 9EAD F3D2 <CJK>
-F3D3 9761 F3D3 <CJK>
-F3D4 9ECC F3D4 <CJK>
-F3D5 9ECE F3D5 <CJK>
-F3D6 9ECF F3D6 <CJK>
-F3D7 9ED0 F3D7 <CJK>
-F3D8 9ED4 F3D8 <CJK>
-F3D9 9EDC F3D9 <CJK>
-F3DA 9EDE F3DA <CJK>
-F3DB 9EDD F3DB <CJK>
-F3DC 9EE0 F3DC <CJK>
-F3DD 9EE5 F3DD <CJK>
-F3DE 9EE8 F3DE <CJK>
-F3DF 9EEF F3DF <CJK>
-F3E0 9EF4 F3E0 <CJK>
-F3E1 9EF6 F3E1 <CJK>
-F3E2 9EF7 F3E2 <CJK>
-F3E3 9EF9 F3E3 <CJK>
-F3E4 9EFB F3E4 <CJK>
-F3E5 9EFC F3E5 <CJK>
-F3E6 9EFD F3E6 <CJK>
-F3E7 9F07 F3E7 <CJK>
-F3E8 9F08 F3E8 <CJK>
-F3E9 76B7 F3E9 <CJK>
-F3EA 9F15 F3EA <CJK>
-F3EB 9F21 F3EB <CJK>
-F3EC 9F2C F3EC <CJK>
-F3ED 9F3E F3ED <CJK>
-F3EE 9F4A F3EE <CJK>
-F3EF 9F52 F3EF <CJK>
-F3F0 9F54 F3F0 <CJK>
-F3F1 9F63 F3F1 <CJK>
-F3F2 9F5F F3F2 <CJK>
-F3F3 9F60 F3F3 <CJK>
-F3F4 9F61 F3F4 <CJK>
-F3F5 9F66 F3F5 <CJK>
-F3F6 9F67 F3F6 <CJK>
-F3F7 9F6C F3F7 <CJK>
-F3F8 9F6A F3F8 <CJK>
-F3F9 9F77 F3F9 <CJK>
-F3FA 9F72 F3FA <CJK>
-F3FB 9F76 F3FB <CJK>
-F3FC 9F95 F3FC <CJK>
-F3FD 9F9C F3FD <CJK>
-F3FE 9FA0 F3FE <CJK>
-F4A1 582F F4A1 U+582F <CJK>
-F4A2 69C7 F4A2 U+69C7 <CJK>
-F4A3 9059 F4A3 U+9059 <CJK>
-F4A4 7464 F4A4 U+7464 <CJK>
-F4A5 51DC F4A5 U+51DC <CJK>
-F4A6 7199 F4A6 U+7199 <CJK>
-F5A1 E000 F5A1 User defined range #1
-F5A2 E001 F5A2 User defined range #1
-F5A3 E002 F5A3 User defined range #1
-F5A4 E003 F5A4 User defined range #1
-F5A5 E004 F5A5 User defined range #1
-F5A6 E005 F5A6 User defined range #1
-F5A7 E006 F5A7 User defined range #1
-F5A8 E007 F5A8 User defined range #1
-F5A9 E008 F5A9 User defined range #1
-F5AA E009 F5AA User defined range #1
-F5AB E00A F5AB User defined range #1
-F5AC E00B F5AC User defined range #1
-F5AD E00C F5AD User defined range #1
-F5AE E00D F5AE User defined range #1
-F5AF E00E F5AF User defined range #1
-F5B0 E00F F5B0 User defined range #1
-F5B1 E010 F5B1 User defined range #1
-F5B2 E011 F5B2 User defined range #1
-F5B3 E012 F5B3 User defined range #1
-F5B4 E013 F5B4 User defined range #1
-F5B5 E014 F5B5 User defined range #1
-F5B6 E015 F5B6 User defined range #1
-F5B7 E016 F5B7 User defined range #1
-F5B8 E017 F5B8 User defined range #1
-F5B9 E018 F5B9 User defined range #1
-F5BA E019 F5BA User defined range #1
-F5BB E01A F5BB User defined range #1
-F5BC E01B F5BC User defined range #1
-F5BD E01C F5BD User defined range #1
-F5BE E01D F5BE User defined range #1
-F5BF E01E F5BF User defined range #1
-F5C0 E01F F5C0 User defined range #1
-F5C1 E020 F5C1 User defined range #1
-F5C2 E021 F5C2 User defined range #1
-F5C3 E022 F5C3 User defined range #1
-F5C4 E023 F5C4 User defined range #1
-F5C5 E024 F5C5 User defined range #1
-F5C6 E025 F5C6 User defined range #1
-F5C7 E026 F5C7 User defined range #1
-F5C8 E027 F5C8 User defined range #1
-F5C9 E028 F5C9 User defined range #1
-F5CA E029 F5CA User defined range #1
-F5CB E02A F5CB User defined range #1
-F5CC E02B F5CC User defined range #1
-F5CD E02C F5CD User defined range #1
-F5CE E02D F5CE User defined range #1
-F5CF E02E F5CF User defined range #1
-F5D0 E02F F5D0 User defined range #1
-F5D1 E030 F5D1 User defined range #1
-F5D2 E031 F5D2 User defined range #1
-F5D3 E032 F5D3 User defined range #1
-F5D4 E033 F5D4 User defined range #1
-F5D5 E034 F5D5 User defined range #1
-F5D6 E035 F5D6 User defined range #1
-F5D7 E036 F5D7 User defined range #1
-F5D8 E037 F5D8 User defined range #1
-F5D9 E038 F5D9 User defined range #1
-F5DA E039 F5DA User defined range #1
-F5DB E03A F5DB User defined range #1
-F5DC E03B F5DC User defined range #1
-F5DD E03C F5DD User defined range #1
-F5DE E03D F5DE User defined range #1
-F5DF E03E F5DF User defined range #1
-F5E0 E03F F5E0 User defined range #1
-F5E1 E040 F5E1 User defined range #1
-F5E2 E041 F5E2 User defined range #1
-F5E3 E042 F5E3 User defined range #1
-F5E4 E043 F5E4 User defined range #1
-F5E5 E044 F5E5 User defined range #1
-F5E6 E045 F5E6 User defined range #1
-F5E7 E046 F5E7 User defined range #1
-F5E8 E047 F5E8 User defined range #1
-F5E9 E048 F5E9 User defined range #1
-F5EA E049 F5EA User defined range #1
-F5EB E04A F5EB User defined range #1
-F5EC E04B F5EC User defined range #1
-F5ED E04C F5ED User defined range #1
-F5EE E04D F5EE User defined range #1
-F5EF E04E F5EF User defined range #1
-F5F0 E04F F5F0 User defined range #1
-F5F1 E050 F5F1 User defined range #1
-F5F2 E051 F5F2 User defined range #1
-F5F3 E052 F5F3 User defined range #1
-F5F4 E053 F5F4 User defined range #1
-F5F5 E054 F5F5 User defined range #1
-F5F6 E055 F5F6 User defined range #1
-F5F7 E056 F5F7 User defined range #1
-F5F8 E057 F5F8 User defined range #1
-F5F9 E058 F5F9 User defined range #1
-F5FA E059 F5FA User defined range #1
-F5FB E05A F5FB User defined range #1
-F5FC E05B F5FC User defined range #1
-F5FD E05C F5FD User defined range #1
-F5FE E05D F5FE User defined range #1
-F6A1 E05E F6A1 User defined range #1
-F6A2 E05F F6A2 User defined range #1
-F6A3 E060 F6A3 User defined range #1
-F6A4 E061 F6A4 User defined range #1
-F6A5 E062 F6A5 User defined range #1
-F6A6 E063 F6A6 User defined range #1
-F6A7 E064 F6A7 User defined range #1
-F6A8 E065 F6A8 User defined range #1
-F6A9 E066 F6A9 User defined range #1
-F6AA E067 F6AA User defined range #1
-F6AB E068 F6AB User defined range #1
-F6AC E069 F6AC User defined range #1
-F6AD E06A F6AD User defined range #1
-F6AE E06B F6AE User defined range #1
-F6AF E06C F6AF User defined range #1
-F6B0 E06D F6B0 User defined range #1
-F6B1 E06E F6B1 User defined range #1
-F6B2 E06F F6B2 User defined range #1
-F6B3 E070 F6B3 User defined range #1
-F6B4 E071 F6B4 User defined range #1
-F6B5 E072 F6B5 User defined range #1
-F6B6 E073 F6B6 User defined range #1
-F6B7 E074 F6B7 User defined range #1
-F6B8 E075 F6B8 User defined range #1
-F6B9 E076 F6B9 User defined range #1
-F6BA E077 F6BA User defined range #1
-F6BB E078 F6BB User defined range #1
-F6BC E079 F6BC User defined range #1
-F6BD E07A F6BD User defined range #1
-F6BE E07B F6BE User defined range #1
-F6BF E07C F6BF User defined range #1
-F6C0 E07D F6C0 User defined range #1
-F6C1 E07E F6C1 User defined range #1
-F6C2 E07F F6C2 User defined range #1
-F6C3 E080 F6C3 User defined range #1
-F6C4 E081 F6C4 User defined range #1
-F6C5 E082 F6C5 User defined range #1
-F6C6 E083 F6C6 User defined range #1
-F6C7 E084 F6C7 User defined range #1
-F6C8 E085 F6C8 User defined range #1
-F6C9 E086 F6C9 User defined range #1
-F6CA E087 F6CA User defined range #1
-F6CB E088 F6CB User defined range #1
-F6CC E089 F6CC User defined range #1
-F6CD E08A F6CD User defined range #1
-F6CE E08B F6CE User defined range #1
-F6CF E08C F6CF User defined range #1
-F6D0 E08D F6D0 User defined range #1
-F6D1 E08E F6D1 User defined range #1
-F6D2 E08F F6D2 User defined range #1
-F6D3 E090 F6D3 User defined range #1
-F6D4 E091 F6D4 User defined range #1
-F6D5 E092 F6D5 User defined range #1
-F6D6 E093 F6D6 User defined range #1
-F6D7 E094 F6D7 User defined range #1
-F6D8 E095 F6D8 User defined range #1
-F6D9 E096 F6D9 User defined range #1
-F6DA E097 F6DA User defined range #1
-F6DB E098 F6DB User defined range #1
-F6DC E099 F6DC User defined range #1
-F6DD E09A F6DD User defined range #1
-F6DE E09B F6DE User defined range #1
-F6DF E09C F6DF User defined range #1
-F6E0 E09D F6E0 User defined range #1
-F6E1 E09E F6E1 User defined range #1
-F6E2 E09F F6E2 User defined range #1
-F6E3 E0A0 F6E3 User defined range #1
-F6E4 E0A1 F6E4 User defined range #1
-F6E5 E0A2 F6E5 User defined range #1
-F6E6 E0A3 F6E6 User defined range #1
-F6E7 E0A4 F6E7 User defined range #1
-F6E8 E0A5 F6E8 User defined range #1
-F6E9 E0A6 F6E9 User defined range #1
-F6EA E0A7 F6EA User defined range #1
-F6EB E0A8 F6EB User defined range #1
-F6EC E0A9 F6EC User defined range #1
-F6ED E0AA F6ED User defined range #1
-F6EE E0AB F6EE User defined range #1
-F6EF E0AC F6EF User defined range #1
-F6F0 E0AD F6F0 User defined range #1
-F6F1 E0AE F6F1 User defined range #1
-F6F2 E0AF F6F2 User defined range #1
-F6F3 E0B0 F6F3 User defined range #1
-F6F4 E0B1 F6F4 User defined range #1
-F6F5 E0B2 F6F5 User defined range #1
-F6F6 E0B3 F6F6 User defined range #1
-F6F7 E0B4 F6F7 User defined range #1
-F6F8 E0B5 F6F8 User defined range #1
-F6F9 E0B6 F6F9 User defined range #1
-F6FA E0B7 F6FA User defined range #1
-F6FB E0B8 F6FB User defined range #1
-F6FC E0B9 F6FC User defined range #1
-F6FD E0BA F6FD User defined range #1
-F6FE E0BB F6FE User defined range #1
-F7A1 E0BC F7A1 User defined range #1
-F7A2 E0BD F7A2 User defined range #1
-F7A3 E0BE F7A3 User defined range #1
-F7A4 E0BF F7A4 User defined range #1
-F7A5 E0C0 F7A5 User defined range #1
-F7A6 E0C1 F7A6 User defined range #1
-F7A7 E0C2 F7A7 User defined range #1
-F7A8 E0C3 F7A8 User defined range #1
-F7A9 E0C4 F7A9 User defined range #1
-F7AA E0C5 F7AA User defined range #1
-F7AB E0C6 F7AB User defined range #1
-F7AC E0C7 F7AC User defined range #1
-F7AD E0C8 F7AD User defined range #1
-F7AE E0C9 F7AE User defined range #1
-F7AF E0CA F7AF User defined range #1
-F7B0 E0CB F7B0 User defined range #1
-F7B1 E0CC F7B1 User defined range #1
-F7B2 E0CD F7B2 User defined range #1
-F7B3 E0CE F7B3 User defined range #1
-F7B4 E0CF F7B4 User defined range #1
-F7B5 E0D0 F7B5 User defined range #1
-F7B6 E0D1 F7B6 User defined range #1
-F7B7 E0D2 F7B7 User defined range #1
-F7B8 E0D3 F7B8 User defined range #1
-F7B9 E0D4 F7B9 User defined range #1
-F7BA E0D5 F7BA User defined range #1
-F7BB E0D6 F7BB User defined range #1
-F7BC E0D7 F7BC User defined range #1
-F7BD E0D8 F7BD User defined range #1
-F7BE E0D9 F7BE User defined range #1
-F7BF E0DA F7BF User defined range #1
-F7C0 E0DB F7C0 User defined range #1
-F7C1 E0DC F7C1 User defined range #1
-F7C2 E0DD F7C2 User defined range #1
-F7C3 E0DE F7C3 User defined range #1
-F7C4 E0DF F7C4 User defined range #1
-F7C5 E0E0 F7C5 User defined range #1
-F7C6 E0E1 F7C6 User defined range #1
-F7C7 E0E2 F7C7 User defined range #1
-F7C8 E0E3 F7C8 User defined range #1
-F7C9 E0E4 F7C9 User defined range #1
-F7CA E0E5 F7CA User defined range #1
-F7CB E0E6 F7CB User defined range #1
-F7CC E0E7 F7CC User defined range #1
-F7CD E0E8 F7CD User defined range #1
-F7CE E0E9 F7CE User defined range #1
-F7CF E0EA F7CF User defined range #1
-F7D0 E0EB F7D0 User defined range #1
-F7D1 E0EC F7D1 User defined range #1
-F7D2 E0ED F7D2 User defined range #1
-F7D3 E0EE F7D3 User defined range #1
-F7D4 E0EF F7D4 User defined range #1
-F7D5 E0F0 F7D5 User defined range #1
-F7D6 E0F1 F7D6 User defined range #1
-F7D7 E0F2 F7D7 User defined range #1
-F7D8 E0F3 F7D8 User defined range #1
-F7D9 E0F4 F7D9 User defined range #1
-F7DA E0F5 F7DA User defined range #1
-F7DB E0F6 F7DB User defined range #1
-F7DC E0F7 F7DC User defined range #1
-F7DD E0F8 F7DD User defined range #1
-F7DE E0F9 F7DE User defined range #1
-F7DF E0FA F7DF User defined range #1
-F7E0 E0FB F7E0 User defined range #1
-F7E1 E0FC F7E1 User defined range #1
-F7E2 E0FD F7E2 User defined range #1
-F7E3 E0FE F7E3 User defined range #1
-F7E4 E0FF F7E4 User defined range #1
-F7E5 E100 F7E5 User defined range #1
-F7E6 E101 F7E6 User defined range #1
-F7E7 E102 F7E7 User defined range #1
-F7E8 E103 F7E8 User defined range #1
-F7E9 E104 F7E9 User defined range #1
-F7EA E105 F7EA User defined range #1
-F7EB E106 F7EB User defined range #1
-F7EC E107 F7EC User defined range #1
-F7ED E108 F7ED User defined range #1
-F7EE E109 F7EE User defined range #1
-F7EF E10A F7EF User defined range #1
-F7F0 E10B F7F0 User defined range #1
-F7F1 E10C F7F1 User defined range #1
-F7F2 E10D F7F2 User defined range #1
-F7F3 E10E F7F3 User defined range #1
-F7F4 E10F F7F4 User defined range #1
-F7F5 E110 F7F5 User defined range #1
-F7F6 E111 F7F6 User defined range #1
-F7F7 E112 F7F7 User defined range #1
-F7F8 E113 F7F8 User defined range #1
-F7F9 E114 F7F9 User defined range #1
-F7FA E115 F7FA User defined range #1
-F7FB E116 F7FB User defined range #1
-F7FC E117 F7FC User defined range #1
-F7FD E118 F7FD User defined range #1
-F7FE E119 F7FE User defined range #1
-F8A1 E11A F8A1 User defined range #1
-F8A2 E11B F8A2 User defined range #1
-F8A3 E11C F8A3 User defined range #1
-F8A4 E11D F8A4 User defined range #1
-F8A5 E11E F8A5 User defined range #1
-F8A6 E11F F8A6 User defined range #1
-F8A7 E120 F8A7 User defined range #1
-F8A8 E121 F8A8 User defined range #1
-F8A9 E122 F8A9 User defined range #1
-F8AA E123 F8AA User defined range #1
-F8AB E124 F8AB User defined range #1
-F8AC E125 F8AC User defined range #1
-F8AD E126 F8AD User defined range #1
-F8AE E127 F8AE User defined range #1
-F8AF E128 F8AF User defined range #1
-F8B0 E129 F8B0 User defined range #1
-F8B1 E12A F8B1 User defined range #1
-F8B2 E12B F8B2 User defined range #1
-F8B3 E12C F8B3 User defined range #1
-F8B4 E12D F8B4 User defined range #1
-F8B5 E12E F8B5 User defined range #1
-F8B6 E12F F8B6 User defined range #1
-F8B7 E130 F8B7 User defined range #1
-F8B8 E131 F8B8 User defined range #1
-F8B9 E132 F8B9 User defined range #1
-F8BA E133 F8BA User defined range #1
-F8BB E134 F8BB User defined range #1
-F8BC E135 F8BC User defined range #1
-F8BD E136 F8BD User defined range #1
-F8BE E137 F8BE User defined range #1
-F8BF E138 F8BF User defined range #1
-F8C0 E139 F8C0 User defined range #1
-F8C1 E13A F8C1 User defined range #1
-F8C2 E13B F8C2 User defined range #1
-F8C3 E13C F8C3 User defined range #1
-F8C4 E13D F8C4 User defined range #1
-F8C5 E13E F8C5 User defined range #1
-F8C6 E13F F8C6 User defined range #1
-F8C7 E140 F8C7 User defined range #1
-F8C8 E141 F8C8 User defined range #1
-F8C9 E142 F8C9 User defined range #1
-F8CA E143 F8CA User defined range #1
-F8CB E144 F8CB User defined range #1
-F8CC E145 F8CC User defined range #1
-F8CD E146 F8CD User defined range #1
-F8CE E147 F8CE User defined range #1
-F8CF E148 F8CF User defined range #1
-F8D0 E149 F8D0 User defined range #1
-F8D1 E14A F8D1 User defined range #1
-F8D2 E14B F8D2 User defined range #1
-F8D3 E14C F8D3 User defined range #1
-F8D4 E14D F8D4 User defined range #1
-F8D5 E14E F8D5 User defined range #1
-F8D6 E14F F8D6 User defined range #1
-F8D7 E150 F8D7 User defined range #1
-F8D8 E151 F8D8 User defined range #1
-F8D9 E152 F8D9 User defined range #1
-F8DA E153 F8DA User defined range #1
-F8DB E154 F8DB User defined range #1
-F8DC E155 F8DC User defined range #1
-F8DD E156 F8DD User defined range #1
-F8DE E157 F8DE User defined range #1
-F8DF E158 F8DF User defined range #1
-F8E0 E159 F8E0 User defined range #1
-F8E1 E15A F8E1 User defined range #1
-F8E2 E15B F8E2 User defined range #1
-F8E3 E15C F8E3 User defined range #1
-F8E4 E15D F8E4 User defined range #1
-F8E5 E15E F8E5 User defined range #1
-F8E6 E15F F8E6 User defined range #1
-F8E7 E160 F8E7 User defined range #1
-F8E8 E161 F8E8 User defined range #1
-F8E9 E162 F8E9 User defined range #1
-F8EA E163 F8EA User defined range #1
-F8EB E164 F8EB User defined range #1
-F8EC E165 F8EC User defined range #1
-F8ED E166 F8ED User defined range #1
-F8EE E167 F8EE User defined range #1
-F8EF E168 F8EF User defined range #1
-F8F0 E169 F8F0 User defined range #1
-F8F1 E16A F8F1 User defined range #1
-F8F2 E16B F8F2 User defined range #1
-F8F3 E16C F8F3 User defined range #1
-F8F4 E16D F8F4 User defined range #1
-F8F5 E16E F8F5 User defined range #1
-F8F6 E16F F8F6 User defined range #1
-F8F7 E170 F8F7 User defined range #1
-F8F8 E171 F8F8 User defined range #1
-F8F9 E172 F8F9 User defined range #1
-F8FA E173 F8FA User defined range #1
-F8FB E174 F8FB User defined range #1
-F8FC E175 F8FC User defined range #1
-F8FD E176 F8FD User defined range #1
-F8FE E177 F8FE User defined range #1
-F9A1 E178 F9A1 User defined range #1
-F9A2 E179 F9A2 User defined range #1
-F9A3 E17A F9A3 User defined range #1
-F9A4 E17B F9A4 User defined range #1
-F9A5 E17C F9A5 User defined range #1
-F9A6 E17D F9A6 User defined range #1
-F9A7 E17E F9A7 User defined range #1
-F9A8 E17F F9A8 User defined range #1
-F9A9 E180 F9A9 User defined range #1
-F9AA E181 F9AA User defined range #1
-F9AB E182 F9AB User defined range #1
-F9AC E183 F9AC User defined range #1
-F9AD E184 F9AD User defined range #1
-F9AE E185 F9AE User defined range #1
-F9AF E186 F9AF User defined range #1
-F9B0 E187 F9B0 User defined range #1
-F9B1 E188 F9B1 User defined range #1
-F9B2 E189 F9B2 User defined range #1
-F9B3 E18A F9B3 User defined range #1
-F9B4 E18B F9B4 User defined range #1
-F9B5 E18C F9B5 User defined range #1
-F9B6 E18D F9B6 User defined range #1
-F9B7 E18E F9B7 User defined range #1
-F9B8 E18F F9B8 User defined range #1
-F9B9 E190 F9B9 User defined range #1
-F9BA E191 F9BA User defined range #1
-F9BB E192 F9BB User defined range #1
-F9BC E193 F9BC User defined range #1
-F9BD E194 F9BD User defined range #1
-F9BE E195 F9BE User defined range #1
-F9BF E196 F9BF User defined range #1
-F9C0 E197 F9C0 User defined range #1
-F9C1 E198 F9C1 User defined range #1
-F9C2 E199 F9C2 User defined range #1
-F9C3 E19A F9C3 User defined range #1
-F9C4 E19B F9C4 User defined range #1
-F9C5 E19C F9C5 User defined range #1
-F9C6 E19D F9C6 User defined range #1
-F9C7 E19E F9C7 User defined range #1
-F9C8 E19F F9C8 User defined range #1
-F9C9 E1A0 F9C9 User defined range #1
-F9CA E1A1 F9CA User defined range #1
-F9CB E1A2 F9CB User defined range #1
-F9CC E1A3 F9CC User defined range #1
-F9CD E1A4 F9CD User defined range #1
-F9CE E1A5 F9CE User defined range #1
-F9CF E1A6 F9CF User defined range #1
-F9D0 E1A7 F9D0 User defined range #1
-F9D1 E1A8 F9D1 User defined range #1
-F9D2 E1A9 F9D2 User defined range #1
-F9D3 E1AA F9D3 User defined range #1
-F9D4 E1AB F9D4 User defined range #1
-F9D5 E1AC F9D5 User defined range #1
-F9D6 E1AD F9D6 User defined range #1
-F9D7 E1AE F9D7 User defined range #1
-F9D8 E1AF F9D8 User defined range #1
-F9D9 E1B0 F9D9 User defined range #1
-F9DA E1B1 F9DA User defined range #1
-F9DB E1B2 F9DB User defined range #1
-F9DC E1B3 F9DC User defined range #1
-F9DD E1B4 F9DD User defined range #1
-F9DE E1B5 F9DE User defined range #1
-F9DF E1B6 F9DF User defined range #1
-F9E0 E1B7 F9E0 User defined range #1
-F9E1 E1B8 F9E1 User defined range #1
-F9E2 E1B9 F9E2 User defined range #1
-F9E3 E1BA F9E3 User defined range #1
-F9E4 E1BB F9E4 User defined range #1
-F9E5 E1BC F9E5 User defined range #1
-F9E6 E1BD F9E6 User defined range #1
-F9E7 E1BE F9E7 User defined range #1
-F9E8 E1BF F9E8 User defined range #1
-F9E9 E1C0 F9E9 User defined range #1
-F9EA E1C1 F9EA User defined range #1
-F9EB E1C2 F9EB User defined range #1
-F9EC E1C3 F9EC User defined range #1
-F9ED E1C4 F9ED User defined range #1
-F9EE E1C5 F9EE User defined range #1
-F9EF E1C6 F9EF User defined range #1
-F9F0 E1C7 F9F0 User defined range #1
-F9F1 E1C8 F9F1 User defined range #1
-F9F2 E1C9 F9F2 User defined range #1
-F9F3 E1CA F9F3 User defined range #1
-F9F4 E1CB F9F4 User defined range #1
-F9F5 E1CC F9F5 User defined range #1
-F9F6 E1CD F9F6 User defined range #1
-F9F7 E1CE F9F7 User defined range #1
-F9F8 E1CF F9F8 User defined range #1
-F9F9 E1D0 F9F9 User defined range #1
-F9FA E1D1 F9FA User defined range #1
-F9FB E1D2 F9FB User defined range #1
-F9FC E1D3 F9FC User defined range #1
-F9FD E1D4 F9FD User defined range #1
-F9FE E1D5 F9FE User defined range #1
-FAA1 E1D6 FAA1 User defined range #1
-FAA2 E1D7 FAA2 User defined range #1
-FAA3 E1D8 FAA3 User defined range #1
-FAA4 E1D9 FAA4 User defined range #1
-FAA5 E1DA FAA5 User defined range #1
-FAA6 E1DB FAA6 User defined range #1
-FAA7 E1DC FAA7 User defined range #1
-FAA8 E1DD FAA8 User defined range #1
-FAA9 E1DE FAA9 User defined range #1
-FAAA E1DF FAAA User defined range #1
-FAAB E1E0 FAAB User defined range #1
-FAAC E1E1 FAAC User defined range #1
-FAAD E1E2 FAAD User defined range #1
-FAAE E1E3 FAAE User defined range #1
-FAAF E1E4 FAAF User defined range #1
-FAB0 E1E5 FAB0 User defined range #1
-FAB1 E1E6 FAB1 User defined range #1
-FAB2 E1E7 FAB2 User defined range #1
-FAB3 E1E8 FAB3 User defined range #1
-FAB4 E1E9 FAB4 User defined range #1
-FAB5 E1EA FAB5 User defined range #1
-FAB6 E1EB FAB6 User defined range #1
-FAB7 E1EC FAB7 User defined range #1
-FAB8 E1ED FAB8 User defined range #1
-FAB9 E1EE FAB9 User defined range #1
-FABA E1EF FABA User defined range #1
-FABB E1F0 FABB User defined range #1
-FABC E1F1 FABC User defined range #1
-FABD E1F2 FABD User defined range #1
-FABE E1F3 FABE User defined range #1
-FABF E1F4 FABF User defined range #1
-FAC0 E1F5 FAC0 User defined range #1
-FAC1 E1F6 FAC1 User defined range #1
-FAC2 E1F7 FAC2 User defined range #1
-FAC3 E1F8 FAC3 User defined range #1
-FAC4 E1F9 FAC4 User defined range #1
-FAC5 E1FA FAC5 User defined range #1
-FAC6 E1FB FAC6 User defined range #1
-FAC7 E1FC FAC7 User defined range #1
-FAC8 E1FD FAC8 User defined range #1
-FAC9 E1FE FAC9 User defined range #1
-FACA E1FF FACA User defined range #1
-FACB E200 FACB User defined range #1
-FACC E201 FACC User defined range #1
-FACD E202 FACD User defined range #1
-FACE E203 FACE User defined range #1
-FACF E204 FACF User defined range #1
-FAD0 E205 FAD0 User defined range #1
-FAD1 E206 FAD1 User defined range #1
-FAD2 E207 FAD2 User defined range #1
-FAD3 E208 FAD3 User defined range #1
-FAD4 E209 FAD4 User defined range #1
-FAD5 E20A FAD5 User defined range #1
-FAD6 E20B FAD6 User defined range #1
-FAD7 E20C FAD7 User defined range #1
-FAD8 E20D FAD8 User defined range #1
-FAD9 E20E FAD9 User defined range #1
-FADA E20F FADA User defined range #1
-FADB E210 FADB User defined range #1
-FADC E211 FADC User defined range #1
-FADD E212 FADD User defined range #1
-FADE E213 FADE User defined range #1
-FADF E214 FADF User defined range #1
-FAE0 E215 FAE0 User defined range #1
-FAE1 E216 FAE1 User defined range #1
-FAE2 E217 FAE2 User defined range #1
-FAE3 E218 FAE3 User defined range #1
-FAE4 E219 FAE4 User defined range #1
-FAE5 E21A FAE5 User defined range #1
-FAE6 E21B FAE6 User defined range #1
-FAE7 E21C FAE7 User defined range #1
-FAE8 E21D FAE8 User defined range #1
-FAE9 E21E FAE9 User defined range #1
-FAEA E21F FAEA User defined range #1
-FAEB E220 FAEB User defined range #1
-FAEC E221 FAEC User defined range #1
-FAED E222 FAED User defined range #1
-FAEE E223 FAEE User defined range #1
-FAEF E224 FAEF User defined range #1
-FAF0 E225 FAF0 User defined range #1
-FAF1 E226 FAF1 User defined range #1
-FAF2 E227 FAF2 User defined range #1
-FAF3 E228 FAF3 User defined range #1
-FAF4 E229 FAF4 User defined range #1
-FAF5 E22A FAF5 User defined range #1
-FAF6 E22B FAF6 User defined range #1
-FAF7 E22C FAF7 User defined range #1
-FAF8 E22D FAF8 User defined range #1
-FAF9 E22E FAF9 User defined range #1
-FAFA E22F FAFA User defined range #1
-FAFB E230 FAFB User defined range #1
-FAFC E231 FAFC User defined range #1
-FAFD E232 FAFD User defined range #1
-FAFE E233 FAFE User defined range #1
-FBA1 E234 FBA1 User defined range #1
-FBA2 E235 FBA2 User defined range #1
-FBA3 E236 FBA3 User defined range #1
-FBA4 E237 FBA4 User defined range #1
-FBA5 E238 FBA5 User defined range #1
-FBA6 E239 FBA6 User defined range #1
-FBA7 E23A FBA7 User defined range #1
-FBA8 E23B FBA8 User defined range #1
-FBA9 E23C FBA9 User defined range #1
-FBAA E23D FBAA User defined range #1
-FBAB E23E FBAB User defined range #1
-FBAC E23F FBAC User defined range #1
-FBAD E240 FBAD User defined range #1
-FBAE E241 FBAE User defined range #1
-FBAF E242 FBAF User defined range #1
-FBB0 E243 FBB0 User defined range #1
-FBB1 E244 FBB1 User defined range #1
-FBB2 E245 FBB2 User defined range #1
-FBB3 E246 FBB3 User defined range #1
-FBB4 E247 FBB4 User defined range #1
-FBB5 E248 FBB5 User defined range #1
-FBB6 E249 FBB6 User defined range #1
-FBB7 E24A FBB7 User defined range #1
-FBB8 E24B FBB8 User defined range #1
-FBB9 E24C FBB9 User defined range #1
-FBBA E24D FBBA User defined range #1
-FBBB E24E FBBB User defined range #1
-FBBC E24F FBBC User defined range #1
-FBBD E250 FBBD User defined range #1
-FBBE E251 FBBE User defined range #1
-FBBF E252 FBBF User defined range #1
-FBC0 E253 FBC0 User defined range #1
-FBC1 E254 FBC1 User defined range #1
-FBC2 E255 FBC2 User defined range #1
-FBC3 E256 FBC3 User defined range #1
-FBC4 E257 FBC4 User defined range #1
-FBC5 E258 FBC5 User defined range #1
-FBC6 E259 FBC6 User defined range #1
-FBC7 E25A FBC7 User defined range #1
-FBC8 E25B FBC8 User defined range #1
-FBC9 E25C FBC9 User defined range #1
-FBCA E25D FBCA User defined range #1
-FBCB E25E FBCB User defined range #1
-FBCC E25F FBCC User defined range #1
-FBCD E260 FBCD User defined range #1
-FBCE E261 FBCE User defined range #1
-FBCF E262 FBCF User defined range #1
-FBD0 E263 FBD0 User defined range #1
-FBD1 E264 FBD1 User defined range #1
-FBD2 E265 FBD2 User defined range #1
-FBD3 E266 FBD3 User defined range #1
-FBD4 E267 FBD4 User defined range #1
-FBD5 E268 FBD5 User defined range #1
-FBD6 E269 FBD6 User defined range #1
-FBD7 E26A FBD7 User defined range #1
-FBD8 E26B FBD8 User defined range #1
-FBD9 E26C FBD9 User defined range #1
-FBDA E26D FBDA User defined range #1
-FBDB E26E FBDB User defined range #1
-FBDC E26F FBDC User defined range #1
-FBDD E270 FBDD User defined range #1
-FBDE E271 FBDE User defined range #1
-FBDF E272 FBDF User defined range #1
-FBE0 E273 FBE0 User defined range #1
-FBE1 E274 FBE1 User defined range #1
-FBE2 E275 FBE2 User defined range #1
-FBE3 E276 FBE3 User defined range #1
-FBE4 E277 FBE4 User defined range #1
-FBE5 E278 FBE5 User defined range #1
-FBE6 E279 FBE6 User defined range #1
-FBE7 E27A FBE7 User defined range #1
-FBE8 E27B FBE8 User defined range #1
-FBE9 E27C FBE9 User defined range #1
-FBEA E27D FBEA User defined range #1
-FBEB E27E FBEB User defined range #1
-FBEC E27F FBEC User defined range #1
-FBED E280 FBED User defined range #1
-FBEE E281 FBEE User defined range #1
-FBEF E282 FBEF User defined range #1
-FBF0 E283 FBF0 User defined range #1
-FBF1 E284 FBF1 User defined range #1
-FBF2 E285 FBF2 User defined range #1
-FBF3 E286 FBF3 User defined range #1
-FBF4 E287 FBF4 User defined range #1
-FBF5 E288 FBF5 User defined range #1
-FBF6 E289 FBF6 User defined range #1
-FBF7 E28A FBF7 User defined range #1
-FBF8 E28B FBF8 User defined range #1
-FBF9 E28C FBF9 User defined range #1
-FBFA E28D FBFA User defined range #1
-FBFB E28E FBFB User defined range #1
-FBFC E28F FBFC User defined range #1
-FBFD E290 FBFD User defined range #1
-FBFE E291 FBFE User defined range #1
-FCA1 E292 FCA1 User defined range #1
-FCA2 E293 FCA2 User defined range #1
-FCA3 E294 FCA3 User defined range #1
-FCA4 E295 FCA4 User defined range #1
-FCA5 E296 FCA5 User defined range #1
-FCA6 E297 FCA6 User defined range #1
-FCA7 E298 FCA7 User defined range #1
-FCA8 E299 FCA8 User defined range #1
-FCA9 E29A FCA9 User defined range #1
-FCAA E29B FCAA User defined range #1
-FCAB E29C FCAB User defined range #1
-FCAC E29D FCAC User defined range #1
-FCAD E29E FCAD User defined range #1
-FCAE E29F FCAE User defined range #1
-FCAF E2A0 FCAF User defined range #1
-FCB0 E2A1 FCB0 User defined range #1
-FCB1 E2A2 FCB1 User defined range #1
-FCB2 E2A3 FCB2 User defined range #1
-FCB3 E2A4 FCB3 User defined range #1
-FCB4 E2A5 FCB4 User defined range #1
-FCB5 E2A6 FCB5 User defined range #1
-FCB6 E2A7 FCB6 User defined range #1
-FCB7 E2A8 FCB7 User defined range #1
-FCB8 E2A9 FCB8 User defined range #1
-FCB9 E2AA FCB9 User defined range #1
-FCBA E2AB FCBA User defined range #1
-FCBB E2AC FCBB User defined range #1
-FCBC E2AD FCBC User defined range #1
-FCBD E2AE FCBD User defined range #1
-FCBE E2AF FCBE User defined range #1
-FCBF E2B0 FCBF User defined range #1
-FCC0 E2B1 FCC0 User defined range #1
-FCC1 E2B2 FCC1 User defined range #1
-FCC2 E2B3 FCC2 User defined range #1
-FCC3 E2B4 FCC3 User defined range #1
-FCC4 E2B5 FCC4 User defined range #1
-FCC5 E2B6 FCC5 User defined range #1
-FCC6 E2B7 FCC6 User defined range #1
-FCC7 E2B8 FCC7 User defined range #1
-FCC8 E2B9 FCC8 User defined range #1
-FCC9 E2BA FCC9 User defined range #1
-FCCA E2BB FCCA User defined range #1
-FCCB E2BC FCCB User defined range #1
-FCCC E2BD FCCC User defined range #1
-FCCD E2BE FCCD User defined range #1
-FCCE E2BF FCCE User defined range #1
-FCCF E2C0 FCCF User defined range #1
-FCD0 E2C1 FCD0 User defined range #1
-FCD1 E2C2 FCD1 User defined range #1
-FCD2 E2C3 FCD2 User defined range #1
-FCD3 E2C4 FCD3 User defined range #1
-FCD4 E2C5 FCD4 User defined range #1
-FCD5 E2C6 FCD5 User defined range #1
-FCD6 E2C7 FCD6 User defined range #1
-FCD7 E2C8 FCD7 User defined range #1
-FCD8 E2C9 FCD8 User defined range #1
-FCD9 E2CA FCD9 User defined range #1
-FCDA E2CB FCDA User defined range #1
-FCDB E2CC FCDB User defined range #1
-FCDC E2CD FCDC User defined range #1
-FCDD E2CE FCDD User defined range #1
-FCDE E2CF FCDE User defined range #1
-FCDF E2D0 FCDF User defined range #1
-FCE0 E2D1 FCE0 User defined range #1
-FCE1 E2D2 FCE1 User defined range #1
-FCE2 E2D3 FCE2 User defined range #1
-FCE3 E2D4 FCE3 User defined range #1
-FCE4 E2D5 FCE4 User defined range #1
-FCE5 E2D6 FCE5 User defined range #1
-FCE6 E2D7 FCE6 User defined range #1
-FCE7 E2D8 FCE7 User defined range #1
-FCE8 E2D9 FCE8 User defined range #1
-FCE9 E2DA FCE9 User defined range #1
-FCEA E2DB FCEA User defined range #1
-FCEB E2DC FCEB User defined range #1
-FCEC E2DD FCEC User defined range #1
-FCED E2DE FCED User defined range #1
-FCEE E2DF FCEE User defined range #1
-FCEF E2E0 FCEF User defined range #1
-FCF0 E2E1 FCF0 User defined range #1
-FCF1 E2E2 FCF1 User defined range #1
-FCF2 E2E3 FCF2 User defined range #1
-FCF3 E2E4 FCF3 User defined range #1
-FCF4 E2E5 FCF4 User defined range #1
-FCF5 E2E6 FCF5 User defined range #1
-FCF6 E2E7 FCF6 User defined range #1
-FCF7 E2E8 FCF7 User defined range #1
-FCF8 E2E9 FCF8 User defined range #1
-FCF9 E2EA FCF9 User defined range #1
-FCFA E2EB FCFA User defined range #1
-FCFB E2EC FCFB User defined range #1
-FCFC E2ED FCFC User defined range #1
-FCFD E2EE FCFD User defined range #1
-FCFE E2EF FCFE User defined range #1
-FDA1 E2F0 FDA1 User defined range #1
-FDA2 E2F1 FDA2 User defined range #1
-FDA3 E2F2 FDA3 User defined range #1
-FDA4 E2F3 FDA4 User defined range #1
-FDA5 E2F4 FDA5 User defined range #1
-FDA6 E2F5 FDA6 User defined range #1
-FDA7 E2F6 FDA7 User defined range #1
-FDA8 E2F7 FDA8 User defined range #1
-FDA9 E2F8 FDA9 User defined range #1
-FDAA E2F9 FDAA User defined range #1
-FDAB E2FA FDAB User defined range #1
-FDAC E2FB FDAC User defined range #1
-FDAD E2FC FDAD User defined range #1
-FDAE E2FD FDAE User defined range #1
-FDAF E2FE FDAF User defined range #1
-FDB0 E2FF FDB0 User defined range #1
-FDB1 E300 FDB1 User defined range #1
-FDB2 E301 FDB2 User defined range #1
-FDB3 E302 FDB3 User defined range #1
-FDB4 E303 FDB4 User defined range #1
-FDB5 E304 FDB5 User defined range #1
-FDB6 E305 FDB6 User defined range #1
-FDB7 E306 FDB7 User defined range #1
-FDB8 E307 FDB8 User defined range #1
-FDB9 E308 FDB9 User defined range #1
-FDBA E309 FDBA User defined range #1
-FDBB E30A FDBB User defined range #1
-FDBC E30B FDBC User defined range #1
-FDBD E30C FDBD User defined range #1
-FDBE E30D FDBE User defined range #1
-FDBF E30E FDBF User defined range #1
-FDC0 E30F FDC0 User defined range #1
-FDC1 E310 FDC1 User defined range #1
-FDC2 E311 FDC2 User defined range #1
-FDC3 E312 FDC3 User defined range #1
-FDC4 E313 FDC4 User defined range #1
-FDC5 E314 FDC5 User defined range #1
-FDC6 E315 FDC6 User defined range #1
-FDC7 E316 FDC7 User defined range #1
-FDC8 E317 FDC8 User defined range #1
-FDC9 E318 FDC9 User defined range #1
-FDCA E319 FDCA User defined range #1
-FDCB E31A FDCB User defined range #1
-FDCC E31B FDCC User defined range #1
-FDCD E31C FDCD User defined range #1
-FDCE E31D FDCE User defined range #1
-FDCF E31E FDCF User defined range #1
-FDD0 E31F FDD0 User defined range #1
-FDD1 E320 FDD1 User defined range #1
-FDD2 E321 FDD2 User defined range #1
-FDD3 E322 FDD3 User defined range #1
-FDD4 E323 FDD4 User defined range #1
-FDD5 E324 FDD5 User defined range #1
-FDD6 E325 FDD6 User defined range #1
-FDD7 E326 FDD7 User defined range #1
-FDD8 E327 FDD8 User defined range #1
-FDD9 E328 FDD9 User defined range #1
-FDDA E329 FDDA User defined range #1
-FDDB E32A FDDB User defined range #1
-FDDC E32B FDDC User defined range #1
-FDDD E32C FDDD User defined range #1
-FDDE E32D FDDE User defined range #1
-FDDF E32E FDDF User defined range #1
-FDE0 E32F FDE0 User defined range #1
-FDE1 E330 FDE1 User defined range #1
-FDE2 E331 FDE2 User defined range #1
-FDE3 E332 FDE3 User defined range #1
-FDE4 E333 FDE4 User defined range #1
-FDE5 E334 FDE5 User defined range #1
-FDE6 E335 FDE6 User defined range #1
-FDE7 E336 FDE7 User defined range #1
-FDE8 E337 FDE8 User defined range #1
-FDE9 E338 FDE9 User defined range #1
-FDEA E339 FDEA User defined range #1
-FDEB E33A FDEB User defined range #1
-FDEC E33B FDEC User defined range #1
-FDED E33C FDED User defined range #1
-FDEE E33D FDEE User defined range #1
-FDEF E33E FDEF User defined range #1
-FDF0 E33F FDF0 User defined range #1
-FDF1 E340 FDF1 User defined range #1
-FDF2 E341 FDF2 User defined range #1
-FDF3 E342 FDF3 User defined range #1
-FDF4 E343 FDF4 User defined range #1
-FDF5 E344 FDF5 User defined range #1
-FDF6 E345 FDF6 User defined range #1
-FDF7 E346 FDF7 User defined range #1
-FDF8 E347 FDF8 User defined range #1
-FDF9 E348 FDF9 User defined range #1
-FDFA E349 FDFA User defined range #1
-FDFB E34A FDFB User defined range #1
-FDFC E34B FDFC User defined range #1
-FDFD E34C FDFD User defined range #1
-FDFE E34D FDFE User defined range #1
-FEA1 E34E FEA1 User defined range #1
-FEA2 E34F FEA2 User defined range #1
-FEA3 E350 FEA3 User defined range #1
-FEA4 E351 FEA4 User defined range #1
-FEA5 E352 FEA5 User defined range #1
-FEA6 E353 FEA6 User defined range #1
-FEA7 E354 FEA7 User defined range #1
-FEA8 E355 FEA8 User defined range #1
-FEA9 E356 FEA9 User defined range #1
-FEAA E357 FEAA User defined range #1
-FEAB E358 FEAB User defined range #1
-FEAC E359 FEAC User defined range #1
-FEAD E35A FEAD User defined range #1
-FEAE E35B FEAE User defined range #1
-FEAF E35C FEAF User defined range #1
-FEB0 E35D FEB0 User defined range #1
-FEB1 E35E FEB1 User defined range #1
-FEB2 E35F FEB2 User defined range #1
-FEB3 E360 FEB3 User defined range #1
-FEB4 E361 FEB4 User defined range #1
-FEB5 E362 FEB5 User defined range #1
-FEB6 E363 FEB6 User defined range #1
-FEB7 E364 FEB7 User defined range #1
-FEB8 E365 FEB8 User defined range #1
-FEB9 E366 FEB9 User defined range #1
-FEBA E367 FEBA User defined range #1
-FEBB E368 FEBB User defined range #1
-FEBC E369 FEBC User defined range #1
-FEBD E36A FEBD User defined range #1
-FEBE E36B FEBE User defined range #1
-FEBF E36C FEBF User defined range #1
-FEC0 E36D FEC0 User defined range #1
-FEC1 E36E FEC1 User defined range #1
-FEC2 E36F FEC2 User defined range #1
-FEC3 E370 FEC3 User defined range #1
-FEC4 E371 FEC4 User defined range #1
-FEC5 E372 FEC5 User defined range #1
-FEC6 E373 FEC6 User defined range #1
-FEC7 E374 FEC7 User defined range #1
-FEC8 E375 FEC8 User defined range #1
-FEC9 E376 FEC9 User defined range #1
-FECA E377 FECA User defined range #1
-FECB E378 FECB User defined range #1
-FECC E379 FECC User defined range #1
-FECD E37A FECD User defined range #1
-FECE E37B FECE User defined range #1
-FECF E37C FECF User defined range #1
-FED0 E37D FED0 User defined range #1
-FED1 E37E FED1 User defined range #1
-FED2 E37F FED2 User defined range #1
-FED3 E380 FED3 User defined range #1
-FED4 E381 FED4 User defined range #1
-FED5 E382 FED5 User defined range #1
-FED6 E383 FED6 User defined range #1
-FED7 E384 FED7 User defined range #1
-FED8 E385 FED8 User defined range #1
-FED9 E386 FED9 User defined range #1
-FEDA E387 FEDA User defined range #1
-FEDB E388 FEDB User defined range #1
-FEDC E389 FEDC User defined range #1
-FEDD E38A FEDD User defined range #1
-FEDE E38B FEDE User defined range #1
-FEDF E38C FEDF User defined range #1
-FEE0 E38D FEE0 User defined range #1
-FEE1 E38E FEE1 User defined range #1
-FEE2 E38F FEE2 User defined range #1
-FEE3 E390 FEE3 User defined range #1
-FEE4 E391 FEE4 User defined range #1
-FEE5 E392 FEE5 User defined range #1
-FEE6 E393 FEE6 User defined range #1
-FEE7 E394 FEE7 User defined range #1
-FEE8 E395 FEE8 User defined range #1
-FEE9 E396 FEE9 User defined range #1
-FEEA E397 FEEA User defined range #1
-FEEB E398 FEEB User defined range #1
-FEEC E399 FEEC User defined range #1
-FEED E39A FEED User defined range #1
-FEEE E39B FEEE User defined range #1
-FEEF E39C FEEF User defined range #1
-FEF0 E39D FEF0 User defined range #1
-FEF1 E39E FEF1 User defined range #1
-FEF2 E39F FEF2 User defined range #1
-FEF3 E3A0 FEF3 User defined range #1
-FEF4 E3A1 FEF4 User defined range #1
-FEF5 E3A2 FEF5 User defined range #1
-FEF6 E3A3 FEF6 User defined range #1
-FEF7 E3A4 FEF7 User defined range #1
-FEF8 E3A5 FEF8 User defined range #1
-FEF9 E3A6 FEF9 User defined range #1
-FEFA E3A7 FEFA User defined range #1
-FEFB E3A8 FEFB User defined range #1
-FEFC E3A9 FEFC User defined range #1
-FEFD E3AA FEFD User defined range #1
-FEFE E3AB FEFE User defined range #1
-Characters with unsafe Unicode round trip
-select hex(ujis), hex(ucs2), hex(ujis2), name from t1 where ujis<>ujis2 order by ujis;
-hex(ujis) hex(ucs2) hex(ujis2) name
-8FA1A1 003F 3F UNASSIGNED
-8FA1A2 003F 3F UNASSIGNED
-8FA1A3 003F 3F UNASSIGNED
-8FA1A4 003F 3F UNASSIGNED
-8FA1A5 003F 3F UNASSIGNED
-8FA1A6 003F 3F UNASSIGNED
-8FA1A7 003F 3F UNASSIGNED
-8FA1A8 003F 3F UNASSIGNED
-8FA1A9 003F 3F UNASSIGNED
-8FA1AA 003F 3F UNASSIGNED
-8FA1AB 003F 3F UNASSIGNED
-8FA1AC 003F 3F UNASSIGNED
-8FA1AD 003F 3F UNASSIGNED
-8FA1AE 003F 3F UNASSIGNED
-8FA1AF 003F 3F UNASSIGNED
-8FA1B0 003F 3F UNASSIGNED
-8FA1B1 003F 3F UNASSIGNED
-8FA1B2 003F 3F UNASSIGNED
-8FA1B3 003F 3F UNASSIGNED
-8FA1B4 003F 3F UNASSIGNED
-8FA1B5 003F 3F UNASSIGNED
-8FA1B6 003F 3F UNASSIGNED
-8FA1B7 003F 3F UNASSIGNED
-8FA1B8 003F 3F UNASSIGNED
-8FA1B9 003F 3F UNASSIGNED
-8FA1BA 003F 3F UNASSIGNED
-8FA1BB 003F 3F UNASSIGNED
-8FA1BC 003F 3F UNASSIGNED
-8FA1BD 003F 3F UNASSIGNED
-8FA1BE 003F 3F UNASSIGNED
-8FA1BF 003F 3F UNASSIGNED
-8FA1C0 003F 3F UNASSIGNED
-8FA1C1 003F 3F UNASSIGNED
-8FA1C2 003F 3F UNASSIGNED
-8FA1C3 003F 3F UNASSIGNED
-8FA1C4 003F 3F UNASSIGNED
-8FA1C5 003F 3F UNASSIGNED
-8FA1C6 003F 3F UNASSIGNED
-8FA1C7 003F 3F UNASSIGNED
-8FA1C8 003F 3F UNASSIGNED
-8FA1C9 003F 3F UNASSIGNED
-8FA1CA 003F 3F UNASSIGNED
-8FA1CB 003F 3F UNASSIGNED
-8FA1CC 003F 3F UNASSIGNED
-8FA1CD 003F 3F UNASSIGNED
-8FA1CE 003F 3F UNASSIGNED
-8FA1CF 003F 3F UNASSIGNED
-8FA1D0 003F 3F UNASSIGNED
-8FA1D1 003F 3F UNASSIGNED
-8FA1D2 003F 3F UNASSIGNED
-8FA1D3 003F 3F UNASSIGNED
-8FA1D4 003F 3F UNASSIGNED
-8FA1D5 003F 3F UNASSIGNED
-8FA1D6 003F 3F UNASSIGNED
-8FA1D7 003F 3F UNASSIGNED
-8FA1D8 003F 3F UNASSIGNED
-8FA1D9 003F 3F UNASSIGNED
-8FA1DA 003F 3F UNASSIGNED
-8FA1DB 003F 3F UNASSIGNED
-8FA1DC 003F 3F UNASSIGNED
-8FA1DD 003F 3F UNASSIGNED
-8FA1DE 003F 3F UNASSIGNED
-8FA1DF 003F 3F UNASSIGNED
-8FA1E0 003F 3F UNASSIGNED
-8FA1E1 003F 3F UNASSIGNED
-8FA1E2 003F 3F UNASSIGNED
-8FA1E3 003F 3F UNASSIGNED
-8FA1E4 003F 3F UNASSIGNED
-8FA1E5 003F 3F UNASSIGNED
-8FA1E6 003F 3F UNASSIGNED
-8FA1E7 003F 3F UNASSIGNED
-8FA1E8 003F 3F UNASSIGNED
-8FA1E9 003F 3F UNASSIGNED
-8FA1EA 003F 3F UNASSIGNED
-8FA1EB 003F 3F UNASSIGNED
-8FA1EC 003F 3F UNASSIGNED
-8FA1ED 003F 3F UNASSIGNED
-8FA1EE 003F 3F UNASSIGNED
-8FA1EF 003F 3F UNASSIGNED
-8FA1F0 003F 3F UNASSIGNED
-8FA1F1 003F 3F UNASSIGNED
-8FA1F2 003F 3F UNASSIGNED
-8FA1F3 003F 3F UNASSIGNED
-8FA1F4 003F 3F UNASSIGNED
-8FA1F5 003F 3F UNASSIGNED
-8FA1F6 003F 3F UNASSIGNED
-8FA1F7 003F 3F UNASSIGNED
-8FA1F8 003F 3F UNASSIGNED
-8FA1F9 003F 3F UNASSIGNED
-8FA1FA 003F 3F UNASSIGNED
-8FA1FB 003F 3F UNASSIGNED
-8FA1FC 003F 3F UNASSIGNED
-8FA1FD 003F 3F UNASSIGNED
-8FA1FE 003F 3F UNASSIGNED
-8FA2A1 003F 3F UNASSIGNED
-8FA2A2 003F 3F UNASSIGNED
-8FA2A3 003F 3F UNASSIGNED
-8FA2A4 003F 3F UNASSIGNED
-8FA2A5 003F 3F UNASSIGNED
-8FA2A6 003F 3F UNASSIGNED
-8FA2A7 003F 3F UNASSIGNED
-8FA2A8 003F 3F UNASSIGNED
-8FA2A9 003F 3F UNASSIGNED
-8FA2AA 003F 3F UNASSIGNED
-8FA2AB 003F 3F UNASSIGNED
-8FA2AC 003F 3F UNASSIGNED
-8FA2AD 003F 3F UNASSIGNED
-8FA2AE 003F 3F UNASSIGNED
-8FA2B7 007E 7E U+007E TILDE
-8FA2BA 003F 3F UNASSIGNED
-8FA2BB 003F 3F UNASSIGNED
-8FA2BC 003F 3F UNASSIGNED
-8FA2BD 003F 3F UNASSIGNED
-8FA2BE 003F 3F UNASSIGNED
-8FA2BF 003F 3F UNASSIGNED
-8FA2C0 003F 3F UNASSIGNED
-8FA2C1 003F 3F UNASSIGNED
-8FA2C5 003F 3F UNASSIGNED
-8FA2C6 003F 3F UNASSIGNED
-8FA2C7 003F 3F UNASSIGNED
-8FA2C8 003F 3F UNASSIGNED
-8FA2C9 003F 3F UNASSIGNED
-8FA2CA 003F 3F UNASSIGNED
-8FA2CB 003F 3F UNASSIGNED
-8FA2CC 003F 3F UNASSIGNED
-8FA2CD 003F 3F UNASSIGNED
-8FA2CE 003F 3F UNASSIGNED
-8FA2CF 003F 3F UNASSIGNED
-8FA2D0 003F 3F UNASSIGNED
-8FA2D1 003F 3F UNASSIGNED
-8FA2D2 003F 3F UNASSIGNED
-8FA2D3 003F 3F UNASSIGNED
-8FA2D4 003F 3F UNASSIGNED
-8FA2D5 003F 3F UNASSIGNED
-8FA2D6 003F 3F UNASSIGNED
-8FA2D7 003F 3F UNASSIGNED
-8FA2D8 003F 3F UNASSIGNED
-8FA2D9 003F 3F UNASSIGNED
-8FA2DA 003F 3F UNASSIGNED
-8FA2DB 003F 3F UNASSIGNED
-8FA2DC 003F 3F UNASSIGNED
-8FA2DD 003F 3F UNASSIGNED
-8FA2DE 003F 3F UNASSIGNED
-8FA2DF 003F 3F UNASSIGNED
-8FA2E0 003F 3F UNASSIGNED
-8FA2E1 003F 3F UNASSIGNED
-8FA2E2 003F 3F UNASSIGNED
-8FA2E3 003F 3F UNASSIGNED
-8FA2E4 003F 3F UNASSIGNED
-8FA2E5 003F 3F UNASSIGNED
-8FA2E6 003F 3F UNASSIGNED
-8FA2E7 003F 3F UNASSIGNED
-8FA2E8 003F 3F UNASSIGNED
-8FA2E9 003F 3F UNASSIGNED
-8FA2EA 003F 3F UNASSIGNED
-8FA2F2 003F 3F UNASSIGNED
-8FA2F3 003F 3F UNASSIGNED
-8FA2F4 003F 3F UNASSIGNED
-8FA2F5 003F 3F UNASSIGNED
-8FA2F6 003F 3F UNASSIGNED
-8FA2F7 003F 3F UNASSIGNED
-8FA2F8 003F 3F UNASSIGNED
-8FA2F9 003F 3F UNASSIGNED
-8FA2FA 003F 3F UNASSIGNED
-8FA2FB 003F 3F UNASSIGNED
-8FA2FC 003F 3F UNASSIGNED
-8FA2FD 003F 3F UNASSIGNED
-8FA2FE 003F 3F UNASSIGNED
-8FA3A1 003F 3F UNASSIGNED
-8FA3A2 003F 3F UNASSIGNED
-8FA3A3 003F 3F UNASSIGNED
-8FA3A4 003F 3F UNASSIGNED
-8FA3A5 003F 3F UNASSIGNED
-8FA3A6 003F 3F UNASSIGNED
-8FA3A7 003F 3F UNASSIGNED
-8FA3A8 003F 3F UNASSIGNED
-8FA3A9 003F 3F UNASSIGNED
-8FA3AA 003F 3F UNASSIGNED
-8FA3AB 003F 3F UNASSIGNED
-8FA3AC 003F 3F UNASSIGNED
-8FA3AD 003F 3F UNASSIGNED
-8FA3AE 003F 3F UNASSIGNED
-8FA3AF 003F 3F UNASSIGNED
-8FA3B0 003F 3F UNASSIGNED
-8FA3B1 003F 3F UNASSIGNED
-8FA3B2 003F 3F UNASSIGNED
-8FA3B3 003F 3F UNASSIGNED
-8FA3B4 003F 3F UNASSIGNED
-8FA3B5 003F 3F UNASSIGNED
-8FA3B6 003F 3F UNASSIGNED
-8FA3B7 003F 3F UNASSIGNED
-8FA3B8 003F 3F UNASSIGNED
-8FA3B9 003F 3F UNASSIGNED
-8FA3BA 003F 3F UNASSIGNED
-8FA3BB 003F 3F UNASSIGNED
-8FA3BC 003F 3F UNASSIGNED
-8FA3BD 003F 3F UNASSIGNED
-8FA3BE 003F 3F UNASSIGNED
-8FA3BF 003F 3F UNASSIGNED
-8FA3C0 003F 3F UNASSIGNED
-8FA3C1 003F 3F UNASSIGNED
-8FA3C2 003F 3F UNASSIGNED
-8FA3C3 003F 3F UNASSIGNED
-8FA3C4 003F 3F UNASSIGNED
-8FA3C5 003F 3F UNASSIGNED
-8FA3C6 003F 3F UNASSIGNED
-8FA3C7 003F 3F UNASSIGNED
-8FA3C8 003F 3F UNASSIGNED
-8FA3C9 003F 3F UNASSIGNED
-8FA3CA 003F 3F UNASSIGNED
-8FA3CB 003F 3F UNASSIGNED
-8FA3CC 003F 3F UNASSIGNED
-8FA3CD 003F 3F UNASSIGNED
-8FA3CE 003F 3F UNASSIGNED
-8FA3CF 003F 3F UNASSIGNED
-8FA3D0 003F 3F UNASSIGNED
-8FA3D1 003F 3F UNASSIGNED
-8FA3D2 003F 3F UNASSIGNED
-8FA3D3 003F 3F UNASSIGNED
-8FA3D4 003F 3F UNASSIGNED
-8FA3D5 003F 3F UNASSIGNED
-8FA3D6 003F 3F UNASSIGNED
-8FA3D7 003F 3F UNASSIGNED
-8FA3D8 003F 3F UNASSIGNED
-8FA3D9 003F 3F UNASSIGNED
-8FA3DA 003F 3F UNASSIGNED
-8FA3DB 003F 3F UNASSIGNED
-8FA3DC 003F 3F UNASSIGNED
-8FA3DD 003F 3F UNASSIGNED
-8FA3DE 003F 3F UNASSIGNED
-8FA3DF 003F 3F UNASSIGNED
-8FA3E0 003F 3F UNASSIGNED
-8FA3E1 003F 3F UNASSIGNED
-8FA3E2 003F 3F UNASSIGNED
-8FA3E3 003F 3F UNASSIGNED
-8FA3E4 003F 3F UNASSIGNED
-8FA3E5 003F 3F UNASSIGNED
-8FA3E6 003F 3F UNASSIGNED
-8FA3E7 003F 3F UNASSIGNED
-8FA3E8 003F 3F UNASSIGNED
-8FA3E9 003F 3F UNASSIGNED
-8FA3EA 003F 3F UNASSIGNED
-8FA3EB 003F 3F UNASSIGNED
-8FA3EC 003F 3F UNASSIGNED
-8FA3ED 003F 3F UNASSIGNED
-8FA3EE 003F 3F UNASSIGNED
-8FA3EF 003F 3F UNASSIGNED
-8FA3F0 003F 3F UNASSIGNED
-8FA3F1 003F 3F UNASSIGNED
-8FA3F2 003F 3F UNASSIGNED
-8FA3F3 003F 3F UNASSIGNED
-8FA3F4 003F 3F UNASSIGNED
-8FA3F5 003F 3F UNASSIGNED
-8FA3F6 003F 3F UNASSIGNED
-8FA3F7 003F 3F UNASSIGNED
-8FA3F8 003F 3F UNASSIGNED
-8FA3F9 003F 3F UNASSIGNED
-8FA3FA 003F 3F UNASSIGNED
-8FA3FB 003F 3F UNASSIGNED
-8FA3FC 003F 3F UNASSIGNED
-8FA3FD 003F 3F UNASSIGNED
-8FA3FE 003F 3F UNASSIGNED
-8FA4A1 003F 3F UNASSIGNED
-8FA4A2 003F 3F UNASSIGNED
-8FA4A3 003F 3F UNASSIGNED
-8FA4A4 003F 3F UNASSIGNED
-8FA4A5 003F 3F UNASSIGNED
-8FA4A6 003F 3F UNASSIGNED
-8FA4A7 003F 3F UNASSIGNED
-8FA4A8 003F 3F UNASSIGNED
-8FA4A9 003F 3F UNASSIGNED
-8FA4AA 003F 3F UNASSIGNED
-8FA4AB 003F 3F UNASSIGNED
-8FA4AC 003F 3F UNASSIGNED
-8FA4AD 003F 3F UNASSIGNED
-8FA4AE 003F 3F UNASSIGNED
-8FA4AF 003F 3F UNASSIGNED
-8FA4B0 003F 3F UNASSIGNED
-8FA4B1 003F 3F UNASSIGNED
-8FA4B2 003F 3F UNASSIGNED
-8FA4B3 003F 3F UNASSIGNED
-8FA4B4 003F 3F UNASSIGNED
-8FA4B5 003F 3F UNASSIGNED
-8FA4B6 003F 3F UNASSIGNED
-8FA4B7 003F 3F UNASSIGNED
-8FA4B8 003F 3F UNASSIGNED
-8FA4B9 003F 3F UNASSIGNED
-8FA4BA 003F 3F UNASSIGNED
-8FA4BB 003F 3F UNASSIGNED
-8FA4BC 003F 3F UNASSIGNED
-8FA4BD 003F 3F UNASSIGNED
-8FA4BE 003F 3F UNASSIGNED
-8FA4BF 003F 3F UNASSIGNED
-8FA4C0 003F 3F UNASSIGNED
-8FA4C1 003F 3F UNASSIGNED
-8FA4C2 003F 3F UNASSIGNED
-8FA4C3 003F 3F UNASSIGNED
-8FA4C4 003F 3F UNASSIGNED
-8FA4C5 003F 3F UNASSIGNED
-8FA4C6 003F 3F UNASSIGNED
-8FA4C7 003F 3F UNASSIGNED
-8FA4C8 003F 3F UNASSIGNED
-8FA4C9 003F 3F UNASSIGNED
-8FA4CA 003F 3F UNASSIGNED
-8FA4CB 003F 3F UNASSIGNED
-8FA4CC 003F 3F UNASSIGNED
-8FA4CD 003F 3F UNASSIGNED
-8FA4CE 003F 3F UNASSIGNED
-8FA4CF 003F 3F UNASSIGNED
-8FA4D0 003F 3F UNASSIGNED
-8FA4D1 003F 3F UNASSIGNED
-8FA4D2 003F 3F UNASSIGNED
-8FA4D3 003F 3F UNASSIGNED
-8FA4D4 003F 3F UNASSIGNED
-8FA4D5 003F 3F UNASSIGNED
-8FA4D6 003F 3F UNASSIGNED
-8FA4D7 003F 3F UNASSIGNED
-8FA4D8 003F 3F UNASSIGNED
-8FA4D9 003F 3F UNASSIGNED
-8FA4DA 003F 3F UNASSIGNED
-8FA4DB 003F 3F UNASSIGNED
-8FA4DC 003F 3F UNASSIGNED
-8FA4DD 003F 3F UNASSIGNED
-8FA4DE 003F 3F UNASSIGNED
-8FA4DF 003F 3F UNASSIGNED
-8FA4E0 003F 3F UNASSIGNED
-8FA4E1 003F 3F UNASSIGNED
-8FA4E2 003F 3F UNASSIGNED
-8FA4E3 003F 3F UNASSIGNED
-8FA4E4 003F 3F UNASSIGNED
-8FA4E5 003F 3F UNASSIGNED
-8FA4E6 003F 3F UNASSIGNED
-8FA4E7 003F 3F UNASSIGNED
-8FA4E8 003F 3F UNASSIGNED
-8FA4E9 003F 3F UNASSIGNED
-8FA4EA 003F 3F UNASSIGNED
-8FA4EB 003F 3F UNASSIGNED
-8FA4EC 003F 3F UNASSIGNED
-8FA4ED 003F 3F UNASSIGNED
-8FA4EE 003F 3F UNASSIGNED
-8FA4EF 003F 3F UNASSIGNED
-8FA4F0 003F 3F UNASSIGNED
-8FA4F1 003F 3F UNASSIGNED
-8FA4F2 003F 3F UNASSIGNED
-8FA4F3 003F 3F UNASSIGNED
-8FA4F4 003F 3F UNASSIGNED
-8FA4F5 003F 3F UNASSIGNED
-8FA4F6 003F 3F UNASSIGNED
-8FA4F7 003F 3F UNASSIGNED
-8FA4F8 003F 3F UNASSIGNED
-8FA4F9 003F 3F UNASSIGNED
-8FA4FA 003F 3F UNASSIGNED
-8FA4FB 003F 3F UNASSIGNED
-8FA4FC 003F 3F UNASSIGNED
-8FA4FD 003F 3F UNASSIGNED
-8FA4FE 003F 3F UNASSIGNED
-8FA5A1 003F 3F UNASSIGNED
-8FA5A2 003F 3F UNASSIGNED
-8FA5A3 003F 3F UNASSIGNED
-8FA5A4 003F 3F UNASSIGNED
-8FA5A5 003F 3F UNASSIGNED
-8FA5A6 003F 3F UNASSIGNED
-8FA5A7 003F 3F UNASSIGNED
-8FA5A8 003F 3F UNASSIGNED
-8FA5A9 003F 3F UNASSIGNED
-8FA5AA 003F 3F UNASSIGNED
-8FA5AB 003F 3F UNASSIGNED
-8FA5AC 003F 3F UNASSIGNED
-8FA5AD 003F 3F UNASSIGNED
-8FA5AE 003F 3F UNASSIGNED
-8FA5AF 003F 3F UNASSIGNED
-8FA5B0 003F 3F UNASSIGNED
-8FA5B1 003F 3F UNASSIGNED
-8FA5B2 003F 3F UNASSIGNED
-8FA5B3 003F 3F UNASSIGNED
-8FA5B4 003F 3F UNASSIGNED
-8FA5B5 003F 3F UNASSIGNED
-8FA5B6 003F 3F UNASSIGNED
-8FA5B7 003F 3F UNASSIGNED
-8FA5B8 003F 3F UNASSIGNED
-8FA5B9 003F 3F UNASSIGNED
-8FA5BA 003F 3F UNASSIGNED
-8FA5BB 003F 3F UNASSIGNED
-8FA5BC 003F 3F UNASSIGNED
-8FA5BD 003F 3F UNASSIGNED
-8FA5BE 003F 3F UNASSIGNED
-8FA5BF 003F 3F UNASSIGNED
-8FA5C0 003F 3F UNASSIGNED
-8FA5C1 003F 3F UNASSIGNED
-8FA5C2 003F 3F UNASSIGNED
-8FA5C3 003F 3F UNASSIGNED
-8FA5C4 003F 3F UNASSIGNED
-8FA5C5 003F 3F UNASSIGNED
-8FA5C6 003F 3F UNASSIGNED
-8FA5C7 003F 3F UNASSIGNED
-8FA5C8 003F 3F UNASSIGNED
-8FA5C9 003F 3F UNASSIGNED
-8FA5CA 003F 3F UNASSIGNED
-8FA5CB 003F 3F UNASSIGNED
-8FA5CC 003F 3F UNASSIGNED
-8FA5CD 003F 3F UNASSIGNED
-8FA5CE 003F 3F UNASSIGNED
-8FA5CF 003F 3F UNASSIGNED
-8FA5D0 003F 3F UNASSIGNED
-8FA5D1 003F 3F UNASSIGNED
-8FA5D2 003F 3F UNASSIGNED
-8FA5D3 003F 3F UNASSIGNED
-8FA5D4 003F 3F UNASSIGNED
-8FA5D5 003F 3F UNASSIGNED
-8FA5D6 003F 3F UNASSIGNED
-8FA5D7 003F 3F UNASSIGNED
-8FA5D8 003F 3F UNASSIGNED
-8FA5D9 003F 3F UNASSIGNED
-8FA5DA 003F 3F UNASSIGNED
-8FA5DB 003F 3F UNASSIGNED
-8FA5DC 003F 3F UNASSIGNED
-8FA5DD 003F 3F UNASSIGNED
-8FA5DE 003F 3F UNASSIGNED
-8FA5DF 003F 3F UNASSIGNED
-8FA5E0 003F 3F UNASSIGNED
-8FA5E1 003F 3F UNASSIGNED
-8FA5E2 003F 3F UNASSIGNED
-8FA5E3 003F 3F UNASSIGNED
-8FA5E4 003F 3F UNASSIGNED
-8FA5E5 003F 3F UNASSIGNED
-8FA5E6 003F 3F UNASSIGNED
-8FA5E7 003F 3F UNASSIGNED
-8FA5E8 003F 3F UNASSIGNED
-8FA5E9 003F 3F UNASSIGNED
-8FA5EA 003F 3F UNASSIGNED
-8FA5EB 003F 3F UNASSIGNED
-8FA5EC 003F 3F UNASSIGNED
-8FA5ED 003F 3F UNASSIGNED
-8FA5EE 003F 3F UNASSIGNED
-8FA5EF 003F 3F UNASSIGNED
-8FA5F0 003F 3F UNASSIGNED
-8FA5F1 003F 3F UNASSIGNED
-8FA5F2 003F 3F UNASSIGNED
-8FA5F3 003F 3F UNASSIGNED
-8FA5F4 003F 3F UNASSIGNED
-8FA5F5 003F 3F UNASSIGNED
-8FA5F6 003F 3F UNASSIGNED
-8FA5F7 003F 3F UNASSIGNED
-8FA5F8 003F 3F UNASSIGNED
-8FA5F9 003F 3F UNASSIGNED
-8FA5FA 003F 3F UNASSIGNED
-8FA5FB 003F 3F UNASSIGNED
-8FA5FC 003F 3F UNASSIGNED
-8FA5FD 003F 3F UNASSIGNED
-8FA5FE 003F 3F UNASSIGNED
-8FA6A1 003F 3F UNASSIGNED
-8FA6A2 003F 3F UNASSIGNED
-8FA6A3 003F 3F UNASSIGNED
-8FA6A4 003F 3F UNASSIGNED
-8FA6A5 003F 3F UNASSIGNED
-8FA6A6 003F 3F UNASSIGNED
-8FA6A7 003F 3F UNASSIGNED
-8FA6A8 003F 3F UNASSIGNED
-8FA6A9 003F 3F UNASSIGNED
-8FA6AA 003F 3F UNASSIGNED
-8FA6AB 003F 3F UNASSIGNED
-8FA6AC 003F 3F UNASSIGNED
-8FA6AD 003F 3F UNASSIGNED
-8FA6AE 003F 3F UNASSIGNED
-8FA6AF 003F 3F UNASSIGNED
-8FA6B0 003F 3F UNASSIGNED
-8FA6B1 003F 3F UNASSIGNED
-8FA6B2 003F 3F UNASSIGNED
-8FA6B3 003F 3F UNASSIGNED
-8FA6B4 003F 3F UNASSIGNED
-8FA6B5 003F 3F UNASSIGNED
-8FA6B6 003F 3F UNASSIGNED
-8FA6B7 003F 3F UNASSIGNED
-8FA6B8 003F 3F UNASSIGNED
-8FA6B9 003F 3F UNASSIGNED
-8FA6BA 003F 3F UNASSIGNED
-8FA6BB 003F 3F UNASSIGNED
-8FA6BC 003F 3F UNASSIGNED
-8FA6BD 003F 3F UNASSIGNED
-8FA6BE 003F 3F UNASSIGNED
-8FA6BF 003F 3F UNASSIGNED
-8FA6C0 003F 3F UNASSIGNED
-8FA6C1 003F 3F UNASSIGNED
-8FA6C2 003F 3F UNASSIGNED
-8FA6C3 003F 3F UNASSIGNED
-8FA6C4 003F 3F UNASSIGNED
-8FA6C5 003F 3F UNASSIGNED
-8FA6C6 003F 3F UNASSIGNED
-8FA6C7 003F 3F UNASSIGNED
-8FA6C8 003F 3F UNASSIGNED
-8FA6C9 003F 3F UNASSIGNED
-8FA6CA 003F 3F UNASSIGNED
-8FA6CB 003F 3F UNASSIGNED
-8FA6CC 003F 3F UNASSIGNED
-8FA6CD 003F 3F UNASSIGNED
-8FA6CE 003F 3F UNASSIGNED
-8FA6CF 003F 3F UNASSIGNED
-8FA6D0 003F 3F UNASSIGNED
-8FA6D1 003F 3F UNASSIGNED
-8FA6D2 003F 3F UNASSIGNED
-8FA6D3 003F 3F UNASSIGNED
-8FA6D4 003F 3F UNASSIGNED
-8FA6D5 003F 3F UNASSIGNED
-8FA6D6 003F 3F UNASSIGNED
-8FA6D7 003F 3F UNASSIGNED
-8FA6D8 003F 3F UNASSIGNED
-8FA6D9 003F 3F UNASSIGNED
-8FA6DA 003F 3F UNASSIGNED
-8FA6DB 003F 3F UNASSIGNED
-8FA6DC 003F 3F UNASSIGNED
-8FA6DD 003F 3F UNASSIGNED
-8FA6DE 003F 3F UNASSIGNED
-8FA6DF 003F 3F UNASSIGNED
-8FA6E0 003F 3F UNASSIGNED
-8FA6E6 003F 3F UNASSIGNED
-8FA6E8 003F 3F UNASSIGNED
-8FA6EB 003F 3F UNASSIGNED
-8FA6ED 003F 3F UNASSIGNED
-8FA6EE 003F 3F UNASSIGNED
-8FA6EF 003F 3F UNASSIGNED
-8FA6F0 003F 3F UNASSIGNED
-8FA6FD 003F 3F UNASSIGNED
-8FA6FE 003F 3F UNASSIGNED
-8FA7A1 003F 3F UNASSIGNED
-8FA7A2 003F 3F UNASSIGNED
-8FA7A3 003F 3F UNASSIGNED
-8FA7A4 003F 3F UNASSIGNED
-8FA7A5 003F 3F UNASSIGNED
-8FA7A6 003F 3F UNASSIGNED
-8FA7A7 003F 3F UNASSIGNED
-8FA7A8 003F 3F UNASSIGNED
-8FA7A9 003F 3F UNASSIGNED
-8FA7AA 003F 3F UNASSIGNED
-8FA7AB 003F 3F UNASSIGNED
-8FA7AC 003F 3F UNASSIGNED
-8FA7AD 003F 3F UNASSIGNED
-8FA7AE 003F 3F UNASSIGNED
-8FA7AF 003F 3F UNASSIGNED
-8FA7B0 003F 3F UNASSIGNED
-8FA7B1 003F 3F UNASSIGNED
-8FA7B2 003F 3F UNASSIGNED
-8FA7B3 003F 3F UNASSIGNED
-8FA7B4 003F 3F UNASSIGNED
-8FA7B5 003F 3F UNASSIGNED
-8FA7B6 003F 3F UNASSIGNED
-8FA7B7 003F 3F UNASSIGNED
-8FA7B8 003F 3F UNASSIGNED
-8FA7B9 003F 3F UNASSIGNED
-8FA7BA 003F 3F UNASSIGNED
-8FA7BB 003F 3F UNASSIGNED
-8FA7BC 003F 3F UNASSIGNED
-8FA7BD 003F 3F UNASSIGNED
-8FA7BE 003F 3F UNASSIGNED
-8FA7BF 003F 3F UNASSIGNED
-8FA7C0 003F 3F UNASSIGNED
-8FA7C1 003F 3F UNASSIGNED
-8FA7CF 003F 3F UNASSIGNED
-8FA7D0 003F 3F UNASSIGNED
-8FA7D1 003F 3F UNASSIGNED
-8FA7D2 003F 3F UNASSIGNED
-8FA7D3 003F 3F UNASSIGNED
-8FA7D4 003F 3F UNASSIGNED
-8FA7D5 003F 3F UNASSIGNED
-8FA7D6 003F 3F UNASSIGNED
-8FA7D7 003F 3F UNASSIGNED
-8FA7D8 003F 3F UNASSIGNED
-8FA7D9 003F 3F UNASSIGNED
-8FA7DA 003F 3F UNASSIGNED
-8FA7DB 003F 3F UNASSIGNED
-8FA7DC 003F 3F UNASSIGNED
-8FA7DD 003F 3F UNASSIGNED
-8FA7DE 003F 3F UNASSIGNED
-8FA7DF 003F 3F UNASSIGNED
-8FA7E0 003F 3F UNASSIGNED
-8FA7E1 003F 3F UNASSIGNED
-8FA7E2 003F 3F UNASSIGNED
-8FA7E3 003F 3F UNASSIGNED
-8FA7E4 003F 3F UNASSIGNED
-8FA7E5 003F 3F UNASSIGNED
-8FA7E6 003F 3F UNASSIGNED
-8FA7E7 003F 3F UNASSIGNED
-8FA7E8 003F 3F UNASSIGNED
-8FA7E9 003F 3F UNASSIGNED
-8FA7EA 003F 3F UNASSIGNED
-8FA7EB 003F 3F UNASSIGNED
-8FA7EC 003F 3F UNASSIGNED
-8FA7ED 003F 3F UNASSIGNED
-8FA7EE 003F 3F UNASSIGNED
-8FA7EF 003F 3F UNASSIGNED
-8FA7F0 003F 3F UNASSIGNED
-8FA7F1 003F 3F UNASSIGNED
-8FA8A1 003F 3F UNASSIGNED
-8FA8A2 003F 3F UNASSIGNED
-8FA8A3 003F 3F UNASSIGNED
-8FA8A4 003F 3F UNASSIGNED
-8FA8A5 003F 3F UNASSIGNED
-8FA8A6 003F 3F UNASSIGNED
-8FA8A7 003F 3F UNASSIGNED
-8FA8A8 003F 3F UNASSIGNED
-8FA8A9 003F 3F UNASSIGNED
-8FA8AA 003F 3F UNASSIGNED
-8FA8AB 003F 3F UNASSIGNED
-8FA8AC 003F 3F UNASSIGNED
-8FA8AD 003F 3F UNASSIGNED
-8FA8AE 003F 3F UNASSIGNED
-8FA8AF 003F 3F UNASSIGNED
-8FA8B0 003F 3F UNASSIGNED
-8FA8B1 003F 3F UNASSIGNED
-8FA8B2 003F 3F UNASSIGNED
-8FA8B3 003F 3F UNASSIGNED
-8FA8B4 003F 3F UNASSIGNED
-8FA8B5 003F 3F UNASSIGNED
-8FA8B6 003F 3F UNASSIGNED
-8FA8B7 003F 3F UNASSIGNED
-8FA8B8 003F 3F UNASSIGNED
-8FA8B9 003F 3F UNASSIGNED
-8FA8BA 003F 3F UNASSIGNED
-8FA8BB 003F 3F UNASSIGNED
-8FA8BC 003F 3F UNASSIGNED
-8FA8BD 003F 3F UNASSIGNED
-8FA8BE 003F 3F UNASSIGNED
-8FA8BF 003F 3F UNASSIGNED
-8FA8C0 003F 3F UNASSIGNED
-8FA8C1 003F 3F UNASSIGNED
-8FA8C2 003F 3F UNASSIGNED
-8FA8C3 003F 3F UNASSIGNED
-8FA8C4 003F 3F UNASSIGNED
-8FA8C5 003F 3F UNASSIGNED
-8FA8C6 003F 3F UNASSIGNED
-8FA8C7 003F 3F UNASSIGNED
-8FA8C8 003F 3F UNASSIGNED
-8FA8C9 003F 3F UNASSIGNED
-8FA8CA 003F 3F UNASSIGNED
-8FA8CB 003F 3F UNASSIGNED
-8FA8CC 003F 3F UNASSIGNED
-8FA8CD 003F 3F UNASSIGNED
-8FA8CE 003F 3F UNASSIGNED
-8FA8CF 003F 3F UNASSIGNED
-8FA8D0 003F 3F UNASSIGNED
-8FA8D1 003F 3F UNASSIGNED
-8FA8D2 003F 3F UNASSIGNED
-8FA8D3 003F 3F UNASSIGNED
-8FA8D4 003F 3F UNASSIGNED
-8FA8D5 003F 3F UNASSIGNED
-8FA8D6 003F 3F UNASSIGNED
-8FA8D7 003F 3F UNASSIGNED
-8FA8D8 003F 3F UNASSIGNED
-8FA8D9 003F 3F UNASSIGNED
-8FA8DA 003F 3F UNASSIGNED
-8FA8DB 003F 3F UNASSIGNED
-8FA8DC 003F 3F UNASSIGNED
-8FA8DD 003F 3F UNASSIGNED
-8FA8DE 003F 3F UNASSIGNED
-8FA8DF 003F 3F UNASSIGNED
-8FA8E0 003F 3F UNASSIGNED
-8FA8E1 003F 3F UNASSIGNED
-8FA8E2 003F 3F UNASSIGNED
-8FA8E3 003F 3F UNASSIGNED
-8FA8E4 003F 3F UNASSIGNED
-8FA8E5 003F 3F UNASSIGNED
-8FA8E6 003F 3F UNASSIGNED
-8FA8E7 003F 3F UNASSIGNED
-8FA8E8 003F 3F UNASSIGNED
-8FA8E9 003F 3F UNASSIGNED
-8FA8EA 003F 3F UNASSIGNED
-8FA8EB 003F 3F UNASSIGNED
-8FA8EC 003F 3F UNASSIGNED
-8FA8ED 003F 3F UNASSIGNED
-8FA8EE 003F 3F UNASSIGNED
-8FA8EF 003F 3F UNASSIGNED
-8FA8F0 003F 3F UNASSIGNED
-8FA8F1 003F 3F UNASSIGNED
-8FA8F2 003F 3F UNASSIGNED
-8FA8F3 003F 3F UNASSIGNED
-8FA8F4 003F 3F UNASSIGNED
-8FA8F5 003F 3F UNASSIGNED
-8FA8F6 003F 3F UNASSIGNED
-8FA8F7 003F 3F UNASSIGNED
-8FA8F8 003F 3F UNASSIGNED
-8FA8F9 003F 3F UNASSIGNED
-8FA8FA 003F 3F UNASSIGNED
-8FA8FB 003F 3F UNASSIGNED
-8FA8FC 003F 3F UNASSIGNED
-8FA8FD 003F 3F UNASSIGNED
-8FA8FE 003F 3F UNASSIGNED
-8FA9A3 003F 3F UNASSIGNED
-8FA9A5 003F 3F UNASSIGNED
-8FA9A7 003F 3F UNASSIGNED
-8FA9AA 003F 3F UNASSIGNED
-8FA9AE 003F 3F UNASSIGNED
-8FA9B1 003F 3F UNASSIGNED
-8FA9B2 003F 3F UNASSIGNED
-8FA9B3 003F 3F UNASSIGNED
-8FA9B4 003F 3F UNASSIGNED
-8FA9B5 003F 3F UNASSIGNED
-8FA9B6 003F 3F UNASSIGNED
-8FA9B7 003F 3F UNASSIGNED
-8FA9B8 003F 3F UNASSIGNED
-8FA9B9 003F 3F UNASSIGNED
-8FA9BA 003F 3F UNASSIGNED
-8FA9BB 003F 3F UNASSIGNED
-8FA9BC 003F 3F UNASSIGNED
-8FA9BD 003F 3F UNASSIGNED
-8FA9BE 003F 3F UNASSIGNED
-8FA9BF 003F 3F UNASSIGNED
-8FA9C0 003F 3F UNASSIGNED
-8FA9D1 003F 3F UNASSIGNED
-8FA9D2 003F 3F UNASSIGNED
-8FA9D3 003F 3F UNASSIGNED
-8FA9D4 003F 3F UNASSIGNED
-8FA9D5 003F 3F UNASSIGNED
-8FA9D6 003F 3F UNASSIGNED
-8FA9D7 003F 3F UNASSIGNED
-8FA9D8 003F 3F UNASSIGNED
-8FA9D9 003F 3F UNASSIGNED
-8FA9DA 003F 3F UNASSIGNED
-8FA9DB 003F 3F UNASSIGNED
-8FA9DC 003F 3F UNASSIGNED
-8FA9DD 003F 3F UNASSIGNED
-8FA9DE 003F 3F UNASSIGNED
-8FA9DF 003F 3F UNASSIGNED
-8FA9E0 003F 3F UNASSIGNED
-8FA9E1 003F 3F UNASSIGNED
-8FA9E2 003F 3F UNASSIGNED
-8FA9E3 003F 3F UNASSIGNED
-8FA9E4 003F 3F UNASSIGNED
-8FA9E5 003F 3F UNASSIGNED
-8FA9E6 003F 3F UNASSIGNED
-8FA9E7 003F 3F UNASSIGNED
-8FA9E8 003F 3F UNASSIGNED
-8FA9E9 003F 3F UNASSIGNED
-8FA9EA 003F 3F UNASSIGNED
-8FA9EB 003F 3F UNASSIGNED
-8FA9EC 003F 3F UNASSIGNED
-8FA9ED 003F 3F UNASSIGNED
-8FA9EE 003F 3F UNASSIGNED
-8FA9EF 003F 3F UNASSIGNED
-8FA9F0 003F 3F UNASSIGNED
-8FA9F1 003F 3F UNASSIGNED
-8FA9F2 003F 3F UNASSIGNED
-8FA9F3 003F 3F UNASSIGNED
-8FA9F4 003F 3F UNASSIGNED
-8FA9F5 003F 3F UNASSIGNED
-8FA9F6 003F 3F UNASSIGNED
-8FA9F7 003F 3F UNASSIGNED
-8FA9F8 003F 3F UNASSIGNED
-8FA9F9 003F 3F UNASSIGNED
-8FA9FA 003F 3F UNASSIGNED
-8FA9FB 003F 3F UNASSIGNED
-8FA9FC 003F 3F UNASSIGNED
-8FA9FD 003F 3F UNASSIGNED
-8FA9FE 003F 3F UNASSIGNED
-8FAAB9 003F 3F UNASSIGNED
-8FAAF8 003F 3F UNASSIGNED
-8FAAF9 003F 3F UNASSIGNED
-8FAAFA 003F 3F UNASSIGNED
-8FAAFB 003F 3F UNASSIGNED
-8FAAFC 003F 3F UNASSIGNED
-8FAAFD 003F 3F UNASSIGNED
-8FAAFE 003F 3F UNASSIGNED
-8FABBC 003F 3F UNASSIGNED
-8FABC4 003F 3F UNASSIGNED
-8FABF8 003F 3F UNASSIGNED
-8FABF9 003F 3F UNASSIGNED
-8FABFA 003F 3F UNASSIGNED
-8FABFB 003F 3F UNASSIGNED
-8FABFC 003F 3F UNASSIGNED
-8FABFD 003F 3F UNASSIGNED
-8FABFE 003F 3F UNASSIGNED
-8FACA1 003F 3F UNASSIGNED
-8FACA2 003F 3F UNASSIGNED
-8FACA3 003F 3F UNASSIGNED
-8FACA4 003F 3F UNASSIGNED
-8FACA5 003F 3F UNASSIGNED
-8FACA6 003F 3F UNASSIGNED
-8FACA7 003F 3F UNASSIGNED
-8FACA8 003F 3F UNASSIGNED
-8FACA9 003F 3F UNASSIGNED
-8FACAA 003F 3F UNASSIGNED
-8FACAB 003F 3F UNASSIGNED
-8FACAC 003F 3F UNASSIGNED
-8FACAD 003F 3F UNASSIGNED
-8FACAE 003F 3F UNASSIGNED
-8FACAF 003F 3F UNASSIGNED
-8FACB0 003F 3F UNASSIGNED
-8FACB1 003F 3F UNASSIGNED
-8FACB2 003F 3F UNASSIGNED
-8FACB3 003F 3F UNASSIGNED
-8FACB4 003F 3F UNASSIGNED
-8FACB5 003F 3F UNASSIGNED
-8FACB6 003F 3F UNASSIGNED
-8FACB7 003F 3F UNASSIGNED
-8FACB8 003F 3F UNASSIGNED
-8FACB9 003F 3F UNASSIGNED
-8FACBA 003F 3F UNASSIGNED
-8FACBB 003F 3F UNASSIGNED
-8FACBC 003F 3F UNASSIGNED
-8FACBD 003F 3F UNASSIGNED
-8FACBE 003F 3F UNASSIGNED
-8FACBF 003F 3F UNASSIGNED
-8FACC0 003F 3F UNASSIGNED
-8FACC1 003F 3F UNASSIGNED
-8FACC2 003F 3F UNASSIGNED
-8FACC3 003F 3F UNASSIGNED
-8FACC4 003F 3F UNASSIGNED
-8FACC5 003F 3F UNASSIGNED
-8FACC6 003F 3F UNASSIGNED
-8FACC7 003F 3F UNASSIGNED
-8FACC8 003F 3F UNASSIGNED
-8FACC9 003F 3F UNASSIGNED
-8FACCA 003F 3F UNASSIGNED
-8FACCB 003F 3F UNASSIGNED
-8FACCC 003F 3F UNASSIGNED
-8FACCD 003F 3F UNASSIGNED
-8FACCE 003F 3F UNASSIGNED
-8FACCF 003F 3F UNASSIGNED
-8FACD0 003F 3F UNASSIGNED
-8FACD1 003F 3F UNASSIGNED
-8FACD2 003F 3F UNASSIGNED
-8FACD3 003F 3F UNASSIGNED
-8FACD4 003F 3F UNASSIGNED
-8FACD5 003F 3F UNASSIGNED
-8FACD6 003F 3F UNASSIGNED
-8FACD7 003F 3F UNASSIGNED
-8FACD8 003F 3F UNASSIGNED
-8FACD9 003F 3F UNASSIGNED
-8FACDA 003F 3F UNASSIGNED
-8FACDB 003F 3F UNASSIGNED
-8FACDC 003F 3F UNASSIGNED
-8FACDD 003F 3F UNASSIGNED
-8FACDE 003F 3F UNASSIGNED
-8FACDF 003F 3F UNASSIGNED
-8FACE0 003F 3F UNASSIGNED
-8FACE1 003F 3F UNASSIGNED
-8FACE2 003F 3F UNASSIGNED
-8FACE3 003F 3F UNASSIGNED
-8FACE4 003F 3F UNASSIGNED
-8FACE5 003F 3F UNASSIGNED
-8FACE6 003F 3F UNASSIGNED
-8FACE7 003F 3F UNASSIGNED
-8FACE8 003F 3F UNASSIGNED
-8FACE9 003F 3F UNASSIGNED
-8FACEA 003F 3F UNASSIGNED
-8FACEB 003F 3F UNASSIGNED
-8FACEC 003F 3F UNASSIGNED
-8FACED 003F 3F UNASSIGNED
-8FACEE 003F 3F UNASSIGNED
-8FACEF 003F 3F UNASSIGNED
-8FACF0 003F 3F UNASSIGNED
-8FACF1 003F 3F UNASSIGNED
-8FACF2 003F 3F UNASSIGNED
-8FACF3 003F 3F UNASSIGNED
-8FACF4 003F 3F UNASSIGNED
-8FACF5 003F 3F UNASSIGNED
-8FACF6 003F 3F UNASSIGNED
-8FACF7 003F 3F UNASSIGNED
-8FACF8 003F 3F UNASSIGNED
-8FACF9 003F 3F UNASSIGNED
-8FACFA 003F 3F UNASSIGNED
-8FACFB 003F 3F UNASSIGNED
-8FACFC 003F 3F UNASSIGNED
-8FACFD 003F 3F UNASSIGNED
-8FACFE 003F 3F UNASSIGNED
-8FADA1 003F 3F UNASSIGNED
-8FADA2 003F 3F UNASSIGNED
-8FADA3 003F 3F UNASSIGNED
-8FADA4 003F 3F UNASSIGNED
-8FADA5 003F 3F UNASSIGNED
-8FADA6 003F 3F UNASSIGNED
-8FADA7 003F 3F UNASSIGNED
-8FADA8 003F 3F UNASSIGNED
-8FADA9 003F 3F UNASSIGNED
-8FADAA 003F 3F UNASSIGNED
-8FADAB 003F 3F UNASSIGNED
-8FADAC 003F 3F UNASSIGNED
-8FADAD 003F 3F UNASSIGNED
-8FADAE 003F 3F UNASSIGNED
-8FADAF 003F 3F UNASSIGNED
-8FADB0 003F 3F UNASSIGNED
-8FADB1 003F 3F UNASSIGNED
-8FADB2 003F 3F UNASSIGNED
-8FADB3 003F 3F UNASSIGNED
-8FADB4 003F 3F UNASSIGNED
-8FADB5 003F 3F UNASSIGNED
-8FADB6 003F 3F UNASSIGNED
-8FADB7 003F 3F UNASSIGNED
-8FADB8 003F 3F UNASSIGNED
-8FADB9 003F 3F UNASSIGNED
-8FADBA 003F 3F UNASSIGNED
-8FADBB 003F 3F UNASSIGNED
-8FADBC 003F 3F UNASSIGNED
-8FADBD 003F 3F UNASSIGNED
-8FADBE 003F 3F UNASSIGNED
-8FADBF 003F 3F UNASSIGNED
-8FADC0 003F 3F UNASSIGNED
-8FADC1 003F 3F UNASSIGNED
-8FADC2 003F 3F UNASSIGNED
-8FADC3 003F 3F UNASSIGNED
-8FADC4 003F 3F UNASSIGNED
-8FADC5 003F 3F UNASSIGNED
-8FADC6 003F 3F UNASSIGNED
-8FADC7 003F 3F UNASSIGNED
-8FADC8 003F 3F UNASSIGNED
-8FADC9 003F 3F UNASSIGNED
-8FADCA 003F 3F UNASSIGNED
-8FADCB 003F 3F UNASSIGNED
-8FADCC 003F 3F UNASSIGNED
-8FADCD 003F 3F UNASSIGNED
-8FADCE 003F 3F UNASSIGNED
-8FADCF 003F 3F UNASSIGNED
-8FADD0 003F 3F UNASSIGNED
-8FADD1 003F 3F UNASSIGNED
-8FADD2 003F 3F UNASSIGNED
-8FADD3 003F 3F UNASSIGNED
-8FADD4 003F 3F UNASSIGNED
-8FADD5 003F 3F UNASSIGNED
-8FADD6 003F 3F UNASSIGNED
-8FADD7 003F 3F UNASSIGNED
-8FADD8 003F 3F UNASSIGNED
-8FADD9 003F 3F UNASSIGNED
-8FADDA 003F 3F UNASSIGNED
-8FADDB 003F 3F UNASSIGNED
-8FADDC 003F 3F UNASSIGNED
-8FADDD 003F 3F UNASSIGNED
-8FADDE 003F 3F UNASSIGNED
-8FADDF 003F 3F UNASSIGNED
-8FADE0 003F 3F UNASSIGNED
-8FADE1 003F 3F UNASSIGNED
-8FADE2 003F 3F UNASSIGNED
-8FADE3 003F 3F UNASSIGNED
-8FADE4 003F 3F UNASSIGNED
-8FADE5 003F 3F UNASSIGNED
-8FADE6 003F 3F UNASSIGNED
-8FADE7 003F 3F UNASSIGNED
-8FADE8 003F 3F UNASSIGNED
-8FADE9 003F 3F UNASSIGNED
-8FADEA 003F 3F UNASSIGNED
-8FADEB 003F 3F UNASSIGNED
-8FADEC 003F 3F UNASSIGNED
-8FADED 003F 3F UNASSIGNED
-8FADEE 003F 3F UNASSIGNED
-8FADEF 003F 3F UNASSIGNED
-8FADF0 003F 3F UNASSIGNED
-8FADF1 003F 3F UNASSIGNED
-8FADF2 003F 3F UNASSIGNED
-8FADF3 003F 3F UNASSIGNED
-8FADF4 003F 3F UNASSIGNED
-8FADF5 003F 3F UNASSIGNED
-8FADF6 003F 3F UNASSIGNED
-8FADF7 003F 3F UNASSIGNED
-8FADF8 003F 3F UNASSIGNED
-8FADF9 003F 3F UNASSIGNED
-8FADFA 003F 3F UNASSIGNED
-8FADFB 003F 3F UNASSIGNED
-8FADFC 003F 3F UNASSIGNED
-8FADFD 003F 3F UNASSIGNED
-8FADFE 003F 3F UNASSIGNED
-8FAEA1 003F 3F UNASSIGNED
-8FAEA2 003F 3F UNASSIGNED
-8FAEA3 003F 3F UNASSIGNED
-8FAEA4 003F 3F UNASSIGNED
-8FAEA5 003F 3F UNASSIGNED
-8FAEA6 003F 3F UNASSIGNED
-8FAEA7 003F 3F UNASSIGNED
-8FAEA8 003F 3F UNASSIGNED
-8FAEA9 003F 3F UNASSIGNED
-8FAEAA 003F 3F UNASSIGNED
-8FAEAB 003F 3F UNASSIGNED
-8FAEAC 003F 3F UNASSIGNED
-8FAEAD 003F 3F UNASSIGNED
-8FAEAE 003F 3F UNASSIGNED
-8FAEAF 003F 3F UNASSIGNED
-8FAEB0 003F 3F UNASSIGNED
-8FAEB1 003F 3F UNASSIGNED
-8FAEB2 003F 3F UNASSIGNED
-8FAEB3 003F 3F UNASSIGNED
-8FAEB4 003F 3F UNASSIGNED
-8FAEB5 003F 3F UNASSIGNED
-8FAEB6 003F 3F UNASSIGNED
-8FAEB7 003F 3F UNASSIGNED
-8FAEB8 003F 3F UNASSIGNED
-8FAEB9 003F 3F UNASSIGNED
-8FAEBA 003F 3F UNASSIGNED
-8FAEBB 003F 3F UNASSIGNED
-8FAEBC 003F 3F UNASSIGNED
-8FAEBD 003F 3F UNASSIGNED
-8FAEBE 003F 3F UNASSIGNED
-8FAEBF 003F 3F UNASSIGNED
-8FAEC0 003F 3F UNASSIGNED
-8FAEC1 003F 3F UNASSIGNED
-8FAEC2 003F 3F UNASSIGNED
-8FAEC3 003F 3F UNASSIGNED
-8FAEC4 003F 3F UNASSIGNED
-8FAEC5 003F 3F UNASSIGNED
-8FAEC6 003F 3F UNASSIGNED
-8FAEC7 003F 3F UNASSIGNED
-8FAEC8 003F 3F UNASSIGNED
-8FAEC9 003F 3F UNASSIGNED
-8FAECA 003F 3F UNASSIGNED
-8FAECB 003F 3F UNASSIGNED
-8FAECC 003F 3F UNASSIGNED
-8FAECD 003F 3F UNASSIGNED
-8FAECE 003F 3F UNASSIGNED
-8FAECF 003F 3F UNASSIGNED
-8FAED0 003F 3F UNASSIGNED
-8FAED1 003F 3F UNASSIGNED
-8FAED2 003F 3F UNASSIGNED
-8FAED3 003F 3F UNASSIGNED
-8FAED4 003F 3F UNASSIGNED
-8FAED5 003F 3F UNASSIGNED
-8FAED6 003F 3F UNASSIGNED
-8FAED7 003F 3F UNASSIGNED
-8FAED8 003F 3F UNASSIGNED
-8FAED9 003F 3F UNASSIGNED
-8FAEDA 003F 3F UNASSIGNED
-8FAEDB 003F 3F UNASSIGNED
-8FAEDC 003F 3F UNASSIGNED
-8FAEDD 003F 3F UNASSIGNED
-8FAEDE 003F 3F UNASSIGNED
-8FAEDF 003F 3F UNASSIGNED
-8FAEE0 003F 3F UNASSIGNED
-8FAEE1 003F 3F UNASSIGNED
-8FAEE2 003F 3F UNASSIGNED
-8FAEE3 003F 3F UNASSIGNED
-8FAEE4 003F 3F UNASSIGNED
-8FAEE5 003F 3F UNASSIGNED
-8FAEE6 003F 3F UNASSIGNED
-8FAEE7 003F 3F UNASSIGNED
-8FAEE8 003F 3F UNASSIGNED
-8FAEE9 003F 3F UNASSIGNED
-8FAEEA 003F 3F UNASSIGNED
-8FAEEB 003F 3F UNASSIGNED
-8FAEEC 003F 3F UNASSIGNED
-8FAEED 003F 3F UNASSIGNED
-8FAEEE 003F 3F UNASSIGNED
-8FAEEF 003F 3F UNASSIGNED
-8FAEF0 003F 3F UNASSIGNED
-8FAEF1 003F 3F UNASSIGNED
-8FAEF2 003F 3F UNASSIGNED
-8FAEF3 003F 3F UNASSIGNED
-8FAEF4 003F 3F UNASSIGNED
-8FAEF5 003F 3F UNASSIGNED
-8FAEF6 003F 3F UNASSIGNED
-8FAEF7 003F 3F UNASSIGNED
-8FAEF8 003F 3F UNASSIGNED
-8FAEF9 003F 3F UNASSIGNED
-8FAEFA 003F 3F UNASSIGNED
-8FAEFB 003F 3F UNASSIGNED
-8FAEFC 003F 3F UNASSIGNED
-8FAEFD 003F 3F UNASSIGNED
-8FAEFE 003F 3F UNASSIGNED
-8FAFA1 003F 3F UNASSIGNED
-8FAFA2 003F 3F UNASSIGNED
-8FAFA3 003F 3F UNASSIGNED
-8FAFA4 003F 3F UNASSIGNED
-8FAFA5 003F 3F UNASSIGNED
-8FAFA6 003F 3F UNASSIGNED
-8FAFA7 003F 3F UNASSIGNED
-8FAFA8 003F 3F UNASSIGNED
-8FAFA9 003F 3F UNASSIGNED
-8FAFAA 003F 3F UNASSIGNED
-8FAFAB 003F 3F UNASSIGNED
-8FAFAC 003F 3F UNASSIGNED
-8FAFAD 003F 3F UNASSIGNED
-8FAFAE 003F 3F UNASSIGNED
-8FAFAF 003F 3F UNASSIGNED
-8FAFB0 003F 3F UNASSIGNED
-8FAFB1 003F 3F UNASSIGNED
-8FAFB2 003F 3F UNASSIGNED
-8FAFB3 003F 3F UNASSIGNED
-8FAFB4 003F 3F UNASSIGNED
-8FAFB5 003F 3F UNASSIGNED
-8FAFB6 003F 3F UNASSIGNED
-8FAFB7 003F 3F UNASSIGNED
-8FAFB8 003F 3F UNASSIGNED
-8FAFB9 003F 3F UNASSIGNED
-8FAFBA 003F 3F UNASSIGNED
-8FAFBB 003F 3F UNASSIGNED
-8FAFBC 003F 3F UNASSIGNED
-8FAFBD 003F 3F UNASSIGNED
-8FAFBE 003F 3F UNASSIGNED
-8FAFBF 003F 3F UNASSIGNED
-8FAFC0 003F 3F UNASSIGNED
-8FAFC1 003F 3F UNASSIGNED
-8FAFC2 003F 3F UNASSIGNED
-8FAFC3 003F 3F UNASSIGNED
-8FAFC4 003F 3F UNASSIGNED
-8FAFC5 003F 3F UNASSIGNED
-8FAFC6 003F 3F UNASSIGNED
-8FAFC7 003F 3F UNASSIGNED
-8FAFC8 003F 3F UNASSIGNED
-8FAFC9 003F 3F UNASSIGNED
-8FAFCA 003F 3F UNASSIGNED
-8FAFCB 003F 3F UNASSIGNED
-8FAFCC 003F 3F UNASSIGNED
-8FAFCD 003F 3F UNASSIGNED
-8FAFCE 003F 3F UNASSIGNED
-8FAFCF 003F 3F UNASSIGNED
-8FAFD0 003F 3F UNASSIGNED
-8FAFD1 003F 3F UNASSIGNED
-8FAFD2 003F 3F UNASSIGNED
-8FAFD3 003F 3F UNASSIGNED
-8FAFD4 003F 3F UNASSIGNED
-8FAFD5 003F 3F UNASSIGNED
-8FAFD6 003F 3F UNASSIGNED
-8FAFD7 003F 3F UNASSIGNED
-8FAFD8 003F 3F UNASSIGNED
-8FAFD9 003F 3F UNASSIGNED
-8FAFDA 003F 3F UNASSIGNED
-8FAFDB 003F 3F UNASSIGNED
-8FAFDC 003F 3F UNASSIGNED
-8FAFDD 003F 3F UNASSIGNED
-8FAFDE 003F 3F UNASSIGNED
-8FAFDF 003F 3F UNASSIGNED
-8FAFE0 003F 3F UNASSIGNED
-8FAFE1 003F 3F UNASSIGNED
-8FAFE2 003F 3F UNASSIGNED
-8FAFE3 003F 3F UNASSIGNED
-8FAFE4 003F 3F UNASSIGNED
-8FAFE5 003F 3F UNASSIGNED
-8FAFE6 003F 3F UNASSIGNED
-8FAFE7 003F 3F UNASSIGNED
-8FAFE8 003F 3F UNASSIGNED
-8FAFE9 003F 3F UNASSIGNED
-8FAFEA 003F 3F UNASSIGNED
-8FAFEB 003F 3F UNASSIGNED
-8FAFEC 003F 3F UNASSIGNED
-8FAFED 003F 3F UNASSIGNED
-8FAFEE 003F 3F UNASSIGNED
-8FAFEF 003F 3F UNASSIGNED
-8FAFF0 003F 3F UNASSIGNED
-8FAFF1 003F 3F UNASSIGNED
-8FAFF2 003F 3F UNASSIGNED
-8FAFF3 003F 3F UNASSIGNED
-8FAFF4 003F 3F UNASSIGNED
-8FAFF5 003F 3F UNASSIGNED
-8FAFF6 003F 3F UNASSIGNED
-8FAFF7 003F 3F UNASSIGNED
-8FAFF8 003F 3F UNASSIGNED
-8FAFF9 003F 3F UNASSIGNED
-8FAFFA 003F 3F UNASSIGNED
-8FAFFB 003F 3F UNASSIGNED
-8FAFFC 003F 3F UNASSIGNED
-8FAFFD 003F 3F UNASSIGNED
-8FAFFE 003F 3F UNASSIGNED
-8FEDE4 003F 3F UNASSIGNED
-8FEDE5 003F 3F UNASSIGNED
-8FEDE6 003F 3F UNASSIGNED
-8FEDE7 003F 3F UNASSIGNED
-8FEDE8 003F 3F UNASSIGNED
-8FEDE9 003F 3F UNASSIGNED
-8FEDEA 003F 3F UNASSIGNED
-8FEDEB 003F 3F UNASSIGNED
-8FEDEC 003F 3F UNASSIGNED
-8FEDED 003F 3F UNASSIGNED
-8FEDEE 003F 3F UNASSIGNED
-8FEDEF 003F 3F UNASSIGNED
-8FEDF0 003F 3F UNASSIGNED
-8FEDF1 003F 3F UNASSIGNED
-8FEDF2 003F 3F UNASSIGNED
-8FEDF3 003F 3F UNASSIGNED
-8FEDF4 003F 3F UNASSIGNED
-8FEDF5 003F 3F UNASSIGNED
-8FEDF6 003F 3F UNASSIGNED
-8FEDF7 003F 3F UNASSIGNED
-8FEDF8 003F 3F UNASSIGNED
-8FEDF9 003F 3F UNASSIGNED
-8FEDFA 003F 3F UNASSIGNED
-8FEDFB 003F 3F UNASSIGNED
-8FEDFC 003F 3F UNASSIGNED
-8FEDFD 003F 3F UNASSIGNED
-8FEDFE 003F 3F UNASSIGNED
-8FEEA1 003F 3F UNASSIGNED
-8FEEA2 003F 3F UNASSIGNED
-8FEEA3 003F 3F UNASSIGNED
-8FEEA4 003F 3F UNASSIGNED
-8FEEA5 003F 3F UNASSIGNED
-8FEEA6 003F 3F UNASSIGNED
-8FEEA7 003F 3F UNASSIGNED
-8FEEA8 003F 3F UNASSIGNED
-8FEEA9 003F 3F UNASSIGNED
-8FEEAA 003F 3F UNASSIGNED
-8FEEAB 003F 3F UNASSIGNED
-8FEEAC 003F 3F UNASSIGNED
-8FEEAD 003F 3F UNASSIGNED
-8FEEAE 003F 3F UNASSIGNED
-8FEEAF 003F 3F UNASSIGNED
-8FEEB0 003F 3F UNASSIGNED
-8FEEB1 003F 3F UNASSIGNED
-8FEEB2 003F 3F UNASSIGNED
-8FEEB3 003F 3F UNASSIGNED
-8FEEB4 003F 3F UNASSIGNED
-8FEEB5 003F 3F UNASSIGNED
-8FEEB6 003F 3F UNASSIGNED
-8FEEB7 003F 3F UNASSIGNED
-8FEEB8 003F 3F UNASSIGNED
-8FEEB9 003F 3F UNASSIGNED
-8FEEBA 003F 3F UNASSIGNED
-8FEEBB 003F 3F UNASSIGNED
-8FEEBC 003F 3F UNASSIGNED
-8FEEBD 003F 3F UNASSIGNED
-8FEEBE 003F 3F UNASSIGNED
-8FEEBF 003F 3F UNASSIGNED
-8FEEC0 003F 3F UNASSIGNED
-8FEEC1 003F 3F UNASSIGNED
-8FEEC2 003F 3F UNASSIGNED
-8FEEC3 003F 3F UNASSIGNED
-8FEEC4 003F 3F UNASSIGNED
-8FEEC5 003F 3F UNASSIGNED
-8FEEC6 003F 3F UNASSIGNED
-8FEEC7 003F 3F UNASSIGNED
-8FEEC8 003F 3F UNASSIGNED
-8FEEC9 003F 3F UNASSIGNED
-8FEECA 003F 3F UNASSIGNED
-8FEECB 003F 3F UNASSIGNED
-8FEECC 003F 3F UNASSIGNED
-8FEECD 003F 3F UNASSIGNED
-8FEECE 003F 3F UNASSIGNED
-8FEECF 003F 3F UNASSIGNED
-8FEED0 003F 3F UNASSIGNED
-8FEED1 003F 3F UNASSIGNED
-8FEED2 003F 3F UNASSIGNED
-8FEED3 003F 3F UNASSIGNED
-8FEED4 003F 3F UNASSIGNED
-8FEED5 003F 3F UNASSIGNED
-8FEED6 003F 3F UNASSIGNED
-8FEED7 003F 3F UNASSIGNED
-8FEED8 003F 3F UNASSIGNED
-8FEED9 003F 3F UNASSIGNED
-8FEEDA 003F 3F UNASSIGNED
-8FEEDB 003F 3F UNASSIGNED
-8FEEDC 003F 3F UNASSIGNED
-8FEEDD 003F 3F UNASSIGNED
-8FEEDE 003F 3F UNASSIGNED
-8FEEDF 003F 3F UNASSIGNED
-8FEEE0 003F 3F UNASSIGNED
-8FEEE1 003F 3F UNASSIGNED
-8FEEE2 003F 3F UNASSIGNED
-8FEEE3 003F 3F UNASSIGNED
-8FEEE4 003F 3F UNASSIGNED
-8FEEE5 003F 3F UNASSIGNED
-8FEEE6 003F 3F UNASSIGNED
-8FEEE7 003F 3F UNASSIGNED
-8FEEE8 003F 3F UNASSIGNED
-8FEEE9 003F 3F UNASSIGNED
-8FEEEA 003F 3F UNASSIGNED
-8FEEEB 003F 3F UNASSIGNED
-8FEEEC 003F 3F UNASSIGNED
-8FEEED 003F 3F UNASSIGNED
-8FEEEE 003F 3F UNASSIGNED
-8FEEEF 003F 3F UNASSIGNED
-8FEEF0 003F 3F UNASSIGNED
-8FEEF1 003F 3F UNASSIGNED
-8FEEF2 003F 3F UNASSIGNED
-8FEEF3 003F 3F UNASSIGNED
-8FEEF4 003F 3F UNASSIGNED
-8FEEF5 003F 3F UNASSIGNED
-8FEEF6 003F 3F UNASSIGNED
-8FEEF7 003F 3F UNASSIGNED
-8FEEF8 003F 3F UNASSIGNED
-8FEEF9 003F 3F UNASSIGNED
-8FEEFA 003F 3F UNASSIGNED
-8FEEFB 003F 3F UNASSIGNED
-8FEEFC 003F 3F UNASSIGNED
-8FEEFD 003F 3F UNASSIGNED
-8FEEFE 003F 3F UNASSIGNED
-8FEFA1 003F 3F UNASSIGNED
-8FEFA2 003F 3F UNASSIGNED
-8FEFA3 003F 3F UNASSIGNED
-8FEFA4 003F 3F UNASSIGNED
-8FEFA5 003F 3F UNASSIGNED
-8FEFA6 003F 3F UNASSIGNED
-8FEFA7 003F 3F UNASSIGNED
-8FEFA8 003F 3F UNASSIGNED
-8FEFA9 003F 3F UNASSIGNED
-8FEFAA 003F 3F UNASSIGNED
-8FEFAB 003F 3F UNASSIGNED
-8FEFAC 003F 3F UNASSIGNED
-8FEFAD 003F 3F UNASSIGNED
-8FEFAE 003F 3F UNASSIGNED
-8FEFAF 003F 3F UNASSIGNED
-8FEFB0 003F 3F UNASSIGNED
-8FEFB1 003F 3F UNASSIGNED
-8FEFB2 003F 3F UNASSIGNED
-8FEFB3 003F 3F UNASSIGNED
-8FEFB4 003F 3F UNASSIGNED
-8FEFB5 003F 3F UNASSIGNED
-8FEFB6 003F 3F UNASSIGNED
-8FEFB7 003F 3F UNASSIGNED
-8FEFB8 003F 3F UNASSIGNED
-8FEFB9 003F 3F UNASSIGNED
-8FEFBA 003F 3F UNASSIGNED
-8FEFBB 003F 3F UNASSIGNED
-8FEFBC 003F 3F UNASSIGNED
-8FEFBD 003F 3F UNASSIGNED
-8FEFBE 003F 3F UNASSIGNED
-8FEFBF 003F 3F UNASSIGNED
-8FEFC0 003F 3F UNASSIGNED
-8FEFC1 003F 3F UNASSIGNED
-8FEFC2 003F 3F UNASSIGNED
-8FEFC3 003F 3F UNASSIGNED
-8FEFC4 003F 3F UNASSIGNED
-8FEFC5 003F 3F UNASSIGNED
-8FEFC6 003F 3F UNASSIGNED
-8FEFC7 003F 3F UNASSIGNED
-8FEFC8 003F 3F UNASSIGNED
-8FEFC9 003F 3F UNASSIGNED
-8FEFCA 003F 3F UNASSIGNED
-8FEFCB 003F 3F UNASSIGNED
-8FEFCC 003F 3F UNASSIGNED
-8FEFCD 003F 3F UNASSIGNED
-8FEFCE 003F 3F UNASSIGNED
-8FEFCF 003F 3F UNASSIGNED
-8FEFD0 003F 3F UNASSIGNED
-8FEFD1 003F 3F UNASSIGNED
-8FEFD2 003F 3F UNASSIGNED
-8FEFD3 003F 3F UNASSIGNED
-8FEFD4 003F 3F UNASSIGNED
-8FEFD5 003F 3F UNASSIGNED
-8FEFD6 003F 3F UNASSIGNED
-8FEFD7 003F 3F UNASSIGNED
-8FEFD8 003F 3F UNASSIGNED
-8FEFD9 003F 3F UNASSIGNED
-8FEFDA 003F 3F UNASSIGNED
-8FEFDB 003F 3F UNASSIGNED
-8FEFDC 003F 3F UNASSIGNED
-8FEFDD 003F 3F UNASSIGNED
-8FEFDE 003F 3F UNASSIGNED
-8FEFDF 003F 3F UNASSIGNED
-8FEFE0 003F 3F UNASSIGNED
-8FEFE1 003F 3F UNASSIGNED
-8FEFE2 003F 3F UNASSIGNED
-8FEFE3 003F 3F UNASSIGNED
-8FEFE4 003F 3F UNASSIGNED
-8FEFE5 003F 3F UNASSIGNED
-8FEFE6 003F 3F UNASSIGNED
-8FEFE7 003F 3F UNASSIGNED
-8FEFE8 003F 3F UNASSIGNED
-8FEFE9 003F 3F UNASSIGNED
-8FEFEA 003F 3F UNASSIGNED
-8FEFEB 003F 3F UNASSIGNED
-8FEFEC 003F 3F UNASSIGNED
-8FEFED 003F 3F UNASSIGNED
-8FEFEE 003F 3F UNASSIGNED
-8FEFEF 003F 3F UNASSIGNED
-8FEFF0 003F 3F UNASSIGNED
-8FEFF1 003F 3F UNASSIGNED
-8FEFF2 003F 3F UNASSIGNED
-8FEFF3 003F 3F UNASSIGNED
-8FEFF4 003F 3F UNASSIGNED
-8FEFF5 003F 3F UNASSIGNED
-8FEFF6 003F 3F UNASSIGNED
-8FEFF7 003F 3F UNASSIGNED
-8FEFF8 003F 3F UNASSIGNED
-8FEFF9 003F 3F UNASSIGNED
-8FEFFA 003F 3F UNASSIGNED
-8FEFFB 003F 3F UNASSIGNED
-8FEFFC 003F 3F UNASSIGNED
-8FEFFD 003F 3F UNASSIGNED
-8FEFFE 003F 3F UNASSIGNED
-8FF0A1 003F 3F UNASSIGNED
-8FF0A2 003F 3F UNASSIGNED
-8FF0A3 003F 3F UNASSIGNED
-8FF0A4 003F 3F UNASSIGNED
-8FF0A5 003F 3F UNASSIGNED
-8FF0A6 003F 3F UNASSIGNED
-8FF0A7 003F 3F UNASSIGNED
-8FF0A8 003F 3F UNASSIGNED
-8FF0A9 003F 3F UNASSIGNED
-8FF0AA 003F 3F UNASSIGNED
-8FF0AB 003F 3F UNASSIGNED
-8FF0AC 003F 3F UNASSIGNED
-8FF0AD 003F 3F UNASSIGNED
-8FF0AE 003F 3F UNASSIGNED
-8FF0AF 003F 3F UNASSIGNED
-8FF0B0 003F 3F UNASSIGNED
-8FF0B1 003F 3F UNASSIGNED
-8FF0B2 003F 3F UNASSIGNED
-8FF0B3 003F 3F UNASSIGNED
-8FF0B4 003F 3F UNASSIGNED
-8FF0B5 003F 3F UNASSIGNED
-8FF0B6 003F 3F UNASSIGNED
-8FF0B7 003F 3F UNASSIGNED
-8FF0B8 003F 3F UNASSIGNED
-8FF0B9 003F 3F UNASSIGNED
-8FF0BA 003F 3F UNASSIGNED
-8FF0BB 003F 3F UNASSIGNED
-8FF0BC 003F 3F UNASSIGNED
-8FF0BD 003F 3F UNASSIGNED
-8FF0BE 003F 3F UNASSIGNED
-8FF0BF 003F 3F UNASSIGNED
-8FF0C0 003F 3F UNASSIGNED
-8FF0C1 003F 3F UNASSIGNED
-8FF0C2 003F 3F UNASSIGNED
-8FF0C3 003F 3F UNASSIGNED
-8FF0C4 003F 3F UNASSIGNED
-8FF0C5 003F 3F UNASSIGNED
-8FF0C6 003F 3F UNASSIGNED
-8FF0C7 003F 3F UNASSIGNED
-8FF0C8 003F 3F UNASSIGNED
-8FF0C9 003F 3F UNASSIGNED
-8FF0CA 003F 3F UNASSIGNED
-8FF0CB 003F 3F UNASSIGNED
-8FF0CC 003F 3F UNASSIGNED
-8FF0CD 003F 3F UNASSIGNED
-8FF0CE 003F 3F UNASSIGNED
-8FF0CF 003F 3F UNASSIGNED
-8FF0D0 003F 3F UNASSIGNED
-8FF0D1 003F 3F UNASSIGNED
-8FF0D2 003F 3F UNASSIGNED
-8FF0D3 003F 3F UNASSIGNED
-8FF0D4 003F 3F UNASSIGNED
-8FF0D5 003F 3F UNASSIGNED
-8FF0D6 003F 3F UNASSIGNED
-8FF0D7 003F 3F UNASSIGNED
-8FF0D8 003F 3F UNASSIGNED
-8FF0D9 003F 3F UNASSIGNED
-8FF0DA 003F 3F UNASSIGNED
-8FF0DB 003F 3F UNASSIGNED
-8FF0DC 003F 3F UNASSIGNED
-8FF0DD 003F 3F UNASSIGNED
-8FF0DE 003F 3F UNASSIGNED
-8FF0DF 003F 3F UNASSIGNED
-8FF0E0 003F 3F UNASSIGNED
-8FF0E1 003F 3F UNASSIGNED
-8FF0E2 003F 3F UNASSIGNED
-8FF0E3 003F 3F UNASSIGNED
-8FF0E4 003F 3F UNASSIGNED
-8FF0E5 003F 3F UNASSIGNED
-8FF0E6 003F 3F UNASSIGNED
-8FF0E7 003F 3F UNASSIGNED
-8FF0E8 003F 3F UNASSIGNED
-8FF0E9 003F 3F UNASSIGNED
-8FF0EA 003F 3F UNASSIGNED
-8FF0EB 003F 3F UNASSIGNED
-8FF0EC 003F 3F UNASSIGNED
-8FF0ED 003F 3F UNASSIGNED
-8FF0EE 003F 3F UNASSIGNED
-8FF0EF 003F 3F UNASSIGNED
-8FF0F0 003F 3F UNASSIGNED
-8FF0F1 003F 3F UNASSIGNED
-8FF0F2 003F 3F UNASSIGNED
-8FF0F3 003F 3F UNASSIGNED
-8FF0F4 003F 3F UNASSIGNED
-8FF0F5 003F 3F UNASSIGNED
-8FF0F6 003F 3F UNASSIGNED
-8FF0F7 003F 3F UNASSIGNED
-8FF0F8 003F 3F UNASSIGNED
-8FF0F9 003F 3F UNASSIGNED
-8FF0FA 003F 3F UNASSIGNED
-8FF0FB 003F 3F UNASSIGNED
-8FF0FC 003F 3F UNASSIGNED
-8FF0FD 003F 3F UNASSIGNED
-8FF0FE 003F 3F UNASSIGNED
-8FF1A1 003F 3F UNASSIGNED
-8FF1A2 003F 3F UNASSIGNED
-8FF1A3 003F 3F UNASSIGNED
-8FF1A4 003F 3F UNASSIGNED
-8FF1A5 003F 3F UNASSIGNED
-8FF1A6 003F 3F UNASSIGNED
-8FF1A7 003F 3F UNASSIGNED
-8FF1A8 003F 3F UNASSIGNED
-8FF1A9 003F 3F UNASSIGNED
-8FF1AA 003F 3F UNASSIGNED
-8FF1AB 003F 3F UNASSIGNED
-8FF1AC 003F 3F UNASSIGNED
-8FF1AD 003F 3F UNASSIGNED
-8FF1AE 003F 3F UNASSIGNED
-8FF1AF 003F 3F UNASSIGNED
-8FF1B0 003F 3F UNASSIGNED
-8FF1B1 003F 3F UNASSIGNED
-8FF1B2 003F 3F UNASSIGNED
-8FF1B3 003F 3F UNASSIGNED
-8FF1B4 003F 3F UNASSIGNED
-8FF1B5 003F 3F UNASSIGNED
-8FF1B6 003F 3F UNASSIGNED
-8FF1B7 003F 3F UNASSIGNED
-8FF1B8 003F 3F UNASSIGNED
-8FF1B9 003F 3F UNASSIGNED
-8FF1BA 003F 3F UNASSIGNED
-8FF1BB 003F 3F UNASSIGNED
-8FF1BC 003F 3F UNASSIGNED
-8FF1BD 003F 3F UNASSIGNED
-8FF1BE 003F 3F UNASSIGNED
-8FF1BF 003F 3F UNASSIGNED
-8FF1C0 003F 3F UNASSIGNED
-8FF1C1 003F 3F UNASSIGNED
-8FF1C2 003F 3F UNASSIGNED
-8FF1C3 003F 3F UNASSIGNED
-8FF1C4 003F 3F UNASSIGNED
-8FF1C5 003F 3F UNASSIGNED
-8FF1C6 003F 3F UNASSIGNED
-8FF1C7 003F 3F UNASSIGNED
-8FF1C8 003F 3F UNASSIGNED
-8FF1C9 003F 3F UNASSIGNED
-8FF1CA 003F 3F UNASSIGNED
-8FF1CB 003F 3F UNASSIGNED
-8FF1CC 003F 3F UNASSIGNED
-8FF1CD 003F 3F UNASSIGNED
-8FF1CE 003F 3F UNASSIGNED
-8FF1CF 003F 3F UNASSIGNED
-8FF1D0 003F 3F UNASSIGNED
-8FF1D1 003F 3F UNASSIGNED
-8FF1D2 003F 3F UNASSIGNED
-8FF1D3 003F 3F UNASSIGNED
-8FF1D4 003F 3F UNASSIGNED
-8FF1D5 003F 3F UNASSIGNED
-8FF1D6 003F 3F UNASSIGNED
-8FF1D7 003F 3F UNASSIGNED
-8FF1D8 003F 3F UNASSIGNED
-8FF1D9 003F 3F UNASSIGNED
-8FF1DA 003F 3F UNASSIGNED
-8FF1DB 003F 3F UNASSIGNED
-8FF1DC 003F 3F UNASSIGNED
-8FF1DD 003F 3F UNASSIGNED
-8FF1DE 003F 3F UNASSIGNED
-8FF1DF 003F 3F UNASSIGNED
-8FF1E0 003F 3F UNASSIGNED
-8FF1E1 003F 3F UNASSIGNED
-8FF1E2 003F 3F UNASSIGNED
-8FF1E3 003F 3F UNASSIGNED
-8FF1E4 003F 3F UNASSIGNED
-8FF1E5 003F 3F UNASSIGNED
-8FF1E6 003F 3F UNASSIGNED
-8FF1E7 003F 3F UNASSIGNED
-8FF1E8 003F 3F UNASSIGNED
-8FF1E9 003F 3F UNASSIGNED
-8FF1EA 003F 3F UNASSIGNED
-8FF1EB 003F 3F UNASSIGNED
-8FF1EC 003F 3F UNASSIGNED
-8FF1ED 003F 3F UNASSIGNED
-8FF1EE 003F 3F UNASSIGNED
-8FF1EF 003F 3F UNASSIGNED
-8FF1F0 003F 3F UNASSIGNED
-8FF1F1 003F 3F UNASSIGNED
-8FF1F2 003F 3F UNASSIGNED
-8FF1F3 003F 3F UNASSIGNED
-8FF1F4 003F 3F UNASSIGNED
-8FF1F5 003F 3F UNASSIGNED
-8FF1F6 003F 3F UNASSIGNED
-8FF1F7 003F 3F UNASSIGNED
-8FF1F8 003F 3F UNASSIGNED
-8FF1F9 003F 3F UNASSIGNED
-8FF1FA 003F 3F UNASSIGNED
-8FF1FB 003F 3F UNASSIGNED
-8FF1FC 003F 3F UNASSIGNED
-8FF1FD 003F 3F UNASSIGNED
-8FF1FE 003F 3F UNASSIGNED
-8FF2A1 003F 3F UNASSIGNED
-8FF2A2 003F 3F UNASSIGNED
-8FF2A3 003F 3F UNASSIGNED
-8FF2A4 003F 3F UNASSIGNED
-8FF2A5 003F 3F UNASSIGNED
-8FF2A6 003F 3F UNASSIGNED
-8FF2A7 003F 3F UNASSIGNED
-8FF2A8 003F 3F UNASSIGNED
-8FF2A9 003F 3F UNASSIGNED
-8FF2AA 003F 3F UNASSIGNED
-8FF2AB 003F 3F UNASSIGNED
-8FF2AC 003F 3F UNASSIGNED
-8FF2AD 003F 3F UNASSIGNED
-8FF2AE 003F 3F UNASSIGNED
-8FF2AF 003F 3F UNASSIGNED
-8FF2B0 003F 3F UNASSIGNED
-8FF2B1 003F 3F UNASSIGNED
-8FF2B2 003F 3F UNASSIGNED
-8FF2B3 003F 3F UNASSIGNED
-8FF2B4 003F 3F UNASSIGNED
-8FF2B5 003F 3F UNASSIGNED
-8FF2B6 003F 3F UNASSIGNED
-8FF2B7 003F 3F UNASSIGNED
-8FF2B8 003F 3F UNASSIGNED
-8FF2B9 003F 3F UNASSIGNED
-8FF2BA 003F 3F UNASSIGNED
-8FF2BB 003F 3F UNASSIGNED
-8FF2BC 003F 3F UNASSIGNED
-8FF2BD 003F 3F UNASSIGNED
-8FF2BE 003F 3F UNASSIGNED
-8FF2BF 003F 3F UNASSIGNED
-8FF2C0 003F 3F UNASSIGNED
-8FF2C1 003F 3F UNASSIGNED
-8FF2C2 003F 3F UNASSIGNED
-8FF2C3 003F 3F UNASSIGNED
-8FF2C4 003F 3F UNASSIGNED
-8FF2C5 003F 3F UNASSIGNED
-8FF2C6 003F 3F UNASSIGNED
-8FF2C7 003F 3F UNASSIGNED
-8FF2C8 003F 3F UNASSIGNED
-8FF2C9 003F 3F UNASSIGNED
-8FF2CA 003F 3F UNASSIGNED
-8FF2CB 003F 3F UNASSIGNED
-8FF2CC 003F 3F UNASSIGNED
-8FF2CD 003F 3F UNASSIGNED
-8FF2CE 003F 3F UNASSIGNED
-8FF2CF 003F 3F UNASSIGNED
-8FF2D0 003F 3F UNASSIGNED
-8FF2D1 003F 3F UNASSIGNED
-8FF2D2 003F 3F UNASSIGNED
-8FF2D3 003F 3F UNASSIGNED
-8FF2D4 003F 3F UNASSIGNED
-8FF2D5 003F 3F UNASSIGNED
-8FF2D6 003F 3F UNASSIGNED
-8FF2D7 003F 3F UNASSIGNED
-8FF2D8 003F 3F UNASSIGNED
-8FF2D9 003F 3F UNASSIGNED
-8FF2DA 003F 3F UNASSIGNED
-8FF2DB 003F 3F UNASSIGNED
-8FF2DC 003F 3F UNASSIGNED
-8FF2DD 003F 3F UNASSIGNED
-8FF2DE 003F 3F UNASSIGNED
-8FF2DF 003F 3F UNASSIGNED
-8FF2E0 003F 3F UNASSIGNED
-8FF2E1 003F 3F UNASSIGNED
-8FF2E2 003F 3F UNASSIGNED
-8FF2E3 003F 3F UNASSIGNED
-8FF2E4 003F 3F UNASSIGNED
-8FF2E5 003F 3F UNASSIGNED
-8FF2E6 003F 3F UNASSIGNED
-8FF2E7 003F 3F UNASSIGNED
-8FF2E8 003F 3F UNASSIGNED
-8FF2E9 003F 3F UNASSIGNED
-8FF2EA 003F 3F UNASSIGNED
-8FF2EB 003F 3F UNASSIGNED
-8FF2EC 003F 3F UNASSIGNED
-8FF2ED 003F 3F UNASSIGNED
-8FF2EE 003F 3F UNASSIGNED
-8FF2EF 003F 3F UNASSIGNED
-8FF2F0 003F 3F UNASSIGNED
-8FF2F1 003F 3F UNASSIGNED
-8FF2F2 003F 3F UNASSIGNED
-8FF2F3 003F 3F UNASSIGNED
-8FF2F4 003F 3F UNASSIGNED
-8FF2F5 003F 3F UNASSIGNED
-8FF2F6 003F 3F UNASSIGNED
-8FF2F7 003F 3F UNASSIGNED
-8FF2F8 003F 3F UNASSIGNED
-8FF2F9 003F 3F UNASSIGNED
-8FF2FA 003F 3F UNASSIGNED
-8FF2FB 003F 3F UNASSIGNED
-8FF2FC 003F 3F UNASSIGNED
-8FF2FD 003F 3F UNASSIGNED
-8FF2FE 003F 3F UNASSIGNED
-8FF3A1 003F 3F UNASSIGNED
-8FF3A2 003F 3F UNASSIGNED
-8FF3A3 003F 3F UNASSIGNED
-8FF3A4 003F 3F UNASSIGNED
-8FF3A5 003F 3F UNASSIGNED
-8FF3A6 003F 3F UNASSIGNED
-8FF3A7 003F 3F UNASSIGNED
-8FF3A8 003F 3F UNASSIGNED
-8FF3A9 003F 3F UNASSIGNED
-8FF3AA 003F 3F UNASSIGNED
-8FF3AB 003F 3F UNASSIGNED
-8FF3AC 003F 3F UNASSIGNED
-8FF3AD 003F 3F UNASSIGNED
-8FF3AE 003F 3F UNASSIGNED
-8FF3AF 003F 3F UNASSIGNED
-8FF3B0 003F 3F UNASSIGNED
-8FF3B1 003F 3F UNASSIGNED
-8FF3B2 003F 3F UNASSIGNED
-8FF3B3 003F 3F UNASSIGNED
-8FF3B4 003F 3F UNASSIGNED
-8FF3B5 003F 3F UNASSIGNED
-8FF3B6 003F 3F UNASSIGNED
-8FF3B7 003F 3F UNASSIGNED
-8FF3B8 003F 3F UNASSIGNED
-8FF3B9 003F 3F UNASSIGNED
-8FF3BA 003F 3F UNASSIGNED
-8FF3BB 003F 3F UNASSIGNED
-8FF3BC 003F 3F UNASSIGNED
-8FF3BD 003F 3F UNASSIGNED
-8FF3BE 003F 3F UNASSIGNED
-8FF3BF 003F 3F UNASSIGNED
-8FF3C0 003F 3F UNASSIGNED
-8FF3C1 003F 3F UNASSIGNED
-8FF3C2 003F 3F UNASSIGNED
-8FF3C3 003F 3F UNASSIGNED
-8FF3C4 003F 3F UNASSIGNED
-8FF3C5 003F 3F UNASSIGNED
-8FF3C6 003F 3F UNASSIGNED
-8FF3C7 003F 3F UNASSIGNED
-8FF3C8 003F 3F UNASSIGNED
-8FF3C9 003F 3F UNASSIGNED
-8FF3CA 003F 3F UNASSIGNED
-8FF3CB 003F 3F UNASSIGNED
-8FF3CC 003F 3F UNASSIGNED
-8FF3CD 003F 3F UNASSIGNED
-8FF3CE 003F 3F UNASSIGNED
-8FF3CF 003F 3F UNASSIGNED
-8FF3D0 003F 3F UNASSIGNED
-8FF3D1 003F 3F UNASSIGNED
-8FF3D2 003F 3F UNASSIGNED
-8FF3D3 003F 3F UNASSIGNED
-8FF3D4 003F 3F UNASSIGNED
-8FF3D5 003F 3F UNASSIGNED
-8FF3D6 003F 3F UNASSIGNED
-8FF3D7 003F 3F UNASSIGNED
-8FF3D8 003F 3F UNASSIGNED
-8FF3D9 003F 3F UNASSIGNED
-8FF3DA 003F 3F UNASSIGNED
-8FF3DB 003F 3F UNASSIGNED
-8FF3DC 003F 3F UNASSIGNED
-8FF3DD 003F 3F UNASSIGNED
-8FF3DE 003F 3F UNASSIGNED
-8FF3DF 003F 3F UNASSIGNED
-8FF3E0 003F 3F UNASSIGNED
-8FF3E1 003F 3F UNASSIGNED
-8FF3E2 003F 3F UNASSIGNED
-8FF3E3 003F 3F UNASSIGNED
-8FF3E4 003F 3F UNASSIGNED
-8FF3E5 003F 3F UNASSIGNED
-8FF3E6 003F 3F UNASSIGNED
-8FF3E7 003F 3F UNASSIGNED
-8FF3E8 003F 3F UNASSIGNED
-8FF3E9 003F 3F UNASSIGNED
-8FF3EA 003F 3F UNASSIGNED
-8FF3EB 003F 3F UNASSIGNED
-8FF3EC 003F 3F UNASSIGNED
-8FF3ED 003F 3F UNASSIGNED
-8FF3EE 003F 3F UNASSIGNED
-8FF3EF 003F 3F UNASSIGNED
-8FF3F0 003F 3F UNASSIGNED
-8FF3F1 003F 3F UNASSIGNED
-8FF3F2 003F 3F UNASSIGNED
-8FF3F3 003F 3F UNASSIGNED
-8FF3F4 003F 3F UNASSIGNED
-8FF3F5 003F 3F UNASSIGNED
-8FF3F6 003F 3F UNASSIGNED
-8FF3F7 003F 3F UNASSIGNED
-8FF3F8 003F 3F UNASSIGNED
-8FF3F9 003F 3F UNASSIGNED
-8FF3FA 003F 3F UNASSIGNED
-8FF3FB 003F 3F UNASSIGNED
-8FF3FC 003F 3F UNASSIGNED
-8FF3FD 003F 3F UNASSIGNED
-8FF3FE 003F 3F UNASSIGNED
-8FF4A1 003F 3F UNASSIGNED
-8FF4A2 003F 3F UNASSIGNED
-8FF4A3 003F 3F UNASSIGNED
-8FF4A4 003F 3F UNASSIGNED
-8FF4A5 003F 3F UNASSIGNED
-8FF4A6 003F 3F UNASSIGNED
-8FF4A7 003F 3F UNASSIGNED
-8FF4A8 003F 3F UNASSIGNED
-8FF4A9 003F 3F UNASSIGNED
-8FF4AA 003F 3F UNASSIGNED
-8FF4AB 003F 3F UNASSIGNED
-8FF4AC 003F 3F UNASSIGNED
-8FF4AD 003F 3F UNASSIGNED
-8FF4AE 003F 3F UNASSIGNED
-8FF4AF 003F 3F UNASSIGNED
-8FF4B0 003F 3F UNASSIGNED
-8FF4B1 003F 3F UNASSIGNED
-8FF4B2 003F 3F UNASSIGNED
-8FF4B3 003F 3F UNASSIGNED
-8FF4B4 003F 3F UNASSIGNED
-8FF4B5 003F 3F UNASSIGNED
-8FF4B6 003F 3F UNASSIGNED
-8FF4B7 003F 3F UNASSIGNED
-8FF4B8 003F 3F UNASSIGNED
-8FF4B9 003F 3F UNASSIGNED
-8FF4BA 003F 3F UNASSIGNED
-8FF4BB 003F 3F UNASSIGNED
-8FF4BC 003F 3F UNASSIGNED
-8FF4BD 003F 3F UNASSIGNED
-8FF4BE 003F 3F UNASSIGNED
-8FF4BF 003F 3F UNASSIGNED
-8FF4C0 003F 3F UNASSIGNED
-8FF4C1 003F 3F UNASSIGNED
-8FF4C2 003F 3F UNASSIGNED
-8FF4C3 003F 3F UNASSIGNED
-8FF4C4 003F 3F UNASSIGNED
-8FF4C5 003F 3F UNASSIGNED
-8FF4C6 003F 3F UNASSIGNED
-8FF4C7 003F 3F UNASSIGNED
-8FF4C8 003F 3F UNASSIGNED
-8FF4C9 003F 3F UNASSIGNED
-8FF4CA 003F 3F UNASSIGNED
-8FF4CB 003F 3F UNASSIGNED
-8FF4CC 003F 3F UNASSIGNED
-8FF4CD 003F 3F UNASSIGNED
-8FF4CE 003F 3F UNASSIGNED
-8FF4CF 003F 3F UNASSIGNED
-8FF4D0 003F 3F UNASSIGNED
-8FF4D1 003F 3F UNASSIGNED
-8FF4D2 003F 3F UNASSIGNED
-8FF4D3 003F 3F UNASSIGNED
-8FF4D4 003F 3F UNASSIGNED
-8FF4D5 003F 3F UNASSIGNED
-8FF4D6 003F 3F UNASSIGNED
-8FF4D7 003F 3F UNASSIGNED
-8FF4D8 003F 3F UNASSIGNED
-8FF4D9 003F 3F UNASSIGNED
-8FF4DA 003F 3F UNASSIGNED
-8FF4DB 003F 3F UNASSIGNED
-8FF4DC 003F 3F UNASSIGNED
-8FF4DD 003F 3F UNASSIGNED
-8FF4DE 003F 3F UNASSIGNED
-8FF4DF 003F 3F UNASSIGNED
-8FF4E0 003F 3F UNASSIGNED
-8FF4E1 003F 3F UNASSIGNED
-8FF4E2 003F 3F UNASSIGNED
-8FF4E3 003F 3F UNASSIGNED
-8FF4E4 003F 3F UNASSIGNED
-8FF4E5 003F 3F UNASSIGNED
-8FF4E6 003F 3F UNASSIGNED
-8FF4E7 003F 3F UNASSIGNED
-8FF4E8 003F 3F UNASSIGNED
-8FF4E9 003F 3F UNASSIGNED
-8FF4EA 003F 3F UNASSIGNED
-8FF4EB 003F 3F UNASSIGNED
-8FF4EC 003F 3F UNASSIGNED
-8FF4ED 003F 3F UNASSIGNED
-8FF4EE 003F 3F UNASSIGNED
-8FF4EF 003F 3F UNASSIGNED
-8FF4F0 003F 3F UNASSIGNED
-8FF4F1 003F 3F UNASSIGNED
-8FF4F2 003F 3F UNASSIGNED
-8FF4F3 003F 3F UNASSIGNED
-8FF4F4 003F 3F UNASSIGNED
-8FF4F5 003F 3F UNASSIGNED
-8FF4F6 003F 3F UNASSIGNED
-8FF4F7 003F 3F UNASSIGNED
-8FF4F8 003F 3F UNASSIGNED
-8FF4F9 003F 3F UNASSIGNED
-8FF4FA 003F 3F UNASSIGNED
-8FF4FB 003F 3F UNASSIGNED
-8FF4FC 003F 3F UNASSIGNED
-8FF4FD 003F 3F UNASSIGNED
-8FF4FE 003F 3F UNASSIGNED
-A1C0 005C 5C U+005C REVERSE SOLIDUS
-A2AF 003F 3F UNASSIGNED
-A2B0 003F 3F UNASSIGNED
-A2B1 003F 3F UNASSIGNED
-A2B2 003F 3F UNASSIGNED
-A2B3 003F 3F UNASSIGNED
-A2B4 003F 3F UNASSIGNED
-A2B5 003F 3F UNASSIGNED
-A2B6 003F 3F UNASSIGNED
-A2B7 003F 3F UNASSIGNED
-A2B8 003F 3F UNASSIGNED
-A2B9 003F 3F UNASSIGNED
-A2C2 003F 3F UNASSIGNED
-A2C3 003F 3F UNASSIGNED
-A2C4 003F 3F UNASSIGNED
-A2C5 003F 3F UNASSIGNED
-A2C6 003F 3F UNASSIGNED
-A2C7 003F 3F UNASSIGNED
-A2C8 003F 3F UNASSIGNED
-A2C9 003F 3F UNASSIGNED
-A2D1 003F 3F UNASSIGNED
-A2D2 003F 3F UNASSIGNED
-A2D3 003F 3F UNASSIGNED
-A2D4 003F 3F UNASSIGNED
-A2D5 003F 3F UNASSIGNED
-A2D6 003F 3F UNASSIGNED
-A2D7 003F 3F UNASSIGNED
-A2D8 003F 3F UNASSIGNED
-A2D9 003F 3F UNASSIGNED
-A2DA 003F 3F UNASSIGNED
-A2DB 003F 3F UNASSIGNED
-A2EB 003F 3F UNASSIGNED
-A2EC 003F 3F UNASSIGNED
-A2ED 003F 3F UNASSIGNED
-A2EE 003F 3F UNASSIGNED
-A2EF 003F 3F UNASSIGNED
-A2F0 003F 3F UNASSIGNED
-A2F1 003F 3F UNASSIGNED
-A2FA 003F 3F UNASSIGNED
-A2FB 003F 3F UNASSIGNED
-A2FC 003F 3F UNASSIGNED
-A2FD 003F 3F UNASSIGNED
-A3A1 003F 3F UNASSIGNED
-A3A2 003F 3F UNASSIGNED
-A3A3 003F 3F UNASSIGNED
-A3A4 003F 3F UNASSIGNED
-A3A5 003F 3F UNASSIGNED
-A3A6 003F 3F UNASSIGNED
-A3A7 003F 3F UNASSIGNED
-A3A8 003F 3F UNASSIGNED
-A3A9 003F 3F UNASSIGNED
-A3AA 003F 3F UNASSIGNED
-A3AB 003F 3F UNASSIGNED
-A3AC 003F 3F UNASSIGNED
-A3AD 003F 3F UNASSIGNED
-A3AE 003F 3F UNASSIGNED
-A3AF 003F 3F UNASSIGNED
-A3BA 003F 3F UNASSIGNED
-A3BB 003F 3F UNASSIGNED
-A3BC 003F 3F UNASSIGNED
-A3BD 003F 3F UNASSIGNED
-A3BE 003F 3F UNASSIGNED
-A3BF 003F 3F UNASSIGNED
-A3C0 003F 3F UNASSIGNED
-A3DB 003F 3F UNASSIGNED
-A3DC 003F 3F UNASSIGNED
-A3DD 003F 3F UNASSIGNED
-A3DE 003F 3F UNASSIGNED
-A3DF 003F 3F UNASSIGNED
-A3E0 003F 3F UNASSIGNED
-A3FB 003F 3F UNASSIGNED
-A3FC 003F 3F UNASSIGNED
-A3FD 003F 3F UNASSIGNED
-A3FE 003F 3F UNASSIGNED
-A4F4 003F 3F UNASSIGNED
-A4F5 003F 3F UNASSIGNED
-A4F6 003F 3F UNASSIGNED
-A4F7 003F 3F UNASSIGNED
-A4F8 003F 3F UNASSIGNED
-A4F9 003F 3F UNASSIGNED
-A4FA 003F 3F UNASSIGNED
-A4FB 003F 3F UNASSIGNED
-A4FC 003F 3F UNASSIGNED
-A4FD 003F 3F UNASSIGNED
-A4FE 003F 3F UNASSIGNED
-A5F7 003F 3F UNASSIGNED
-A5F8 003F 3F UNASSIGNED
-A5F9 003F 3F UNASSIGNED
-A5FA 003F 3F UNASSIGNED
-A5FB 003F 3F UNASSIGNED
-A5FC 003F 3F UNASSIGNED
-A5FD 003F 3F UNASSIGNED
-A5FE 003F 3F UNASSIGNED
-A6B9 003F 3F UNASSIGNED
-A6BA 003F 3F UNASSIGNED
-A6BB 003F 3F UNASSIGNED
-A6BC 003F 3F UNASSIGNED
-A6BD 003F 3F UNASSIGNED
-A6BE 003F 3F UNASSIGNED
-A6BF 003F 3F UNASSIGNED
-A6C0 003F 3F UNASSIGNED
-A6D9 003F 3F UNASSIGNED
-A6DA 003F 3F UNASSIGNED
-A6DB 003F 3F UNASSIGNED
-A6DC 003F 3F UNASSIGNED
-A6DD 003F 3F UNASSIGNED
-A6DE 003F 3F UNASSIGNED
-A6DF 003F 3F UNASSIGNED
-A6E0 003F 3F UNASSIGNED
-A6E1 003F 3F UNASSIGNED
-A6E2 003F 3F UNASSIGNED
-A6E3 003F 3F UNASSIGNED
-A6E4 003F 3F UNASSIGNED
-A6E5 003F 3F UNASSIGNED
-A6E6 003F 3F UNASSIGNED
-A6E7 003F 3F UNASSIGNED
-A6E8 003F 3F UNASSIGNED
-A6E9 003F 3F UNASSIGNED
-A6EA 003F 3F UNASSIGNED
-A6EB 003F 3F UNASSIGNED
-A6EC 003F 3F UNASSIGNED
-A6ED 003F 3F UNASSIGNED
-A6EE 003F 3F UNASSIGNED
-A6EF 003F 3F UNASSIGNED
-A6F0 003F 3F UNASSIGNED
-A6F1 003F 3F UNASSIGNED
-A6F2 003F 3F UNASSIGNED
-A6F3 003F 3F UNASSIGNED
-A6F4 003F 3F UNASSIGNED
-A6F5 003F 3F UNASSIGNED
-A6F6 003F 3F UNASSIGNED
-A6F7 003F 3F UNASSIGNED
-A6F8 003F 3F UNASSIGNED
-A6F9 003F 3F UNASSIGNED
-A6FA 003F 3F UNASSIGNED
-A6FB 003F 3F UNASSIGNED
-A6FC 003F 3F UNASSIGNED
-A6FD 003F 3F UNASSIGNED
-A6FE 003F 3F UNASSIGNED
-A7C2 003F 3F UNASSIGNED
-A7C3 003F 3F UNASSIGNED
-A7C4 003F 3F UNASSIGNED
-A7C5 003F 3F UNASSIGNED
-A7C6 003F 3F UNASSIGNED
-A7C7 003F 3F UNASSIGNED
-A7C8 003F 3F UNASSIGNED
-A7C9 003F 3F UNASSIGNED
-A7CA 003F 3F UNASSIGNED
-A7CB 003F 3F UNASSIGNED
-A7CC 003F 3F UNASSIGNED
-A7CD 003F 3F UNASSIGNED
-A7CE 003F 3F UNASSIGNED
-A7CF 003F 3F UNASSIGNED
-A7D0 003F 3F UNASSIGNED
-A7F2 003F 3F UNASSIGNED
-A7F3 003F 3F UNASSIGNED
-A7F4 003F 3F UNASSIGNED
-A7F5 003F 3F UNASSIGNED
-A7F6 003F 3F UNASSIGNED
-A7F7 003F 3F UNASSIGNED
-A7F8 003F 3F UNASSIGNED
-A7F9 003F 3F UNASSIGNED
-A7FA 003F 3F UNASSIGNED
-A7FB 003F 3F UNASSIGNED
-A7FC 003F 3F UNASSIGNED
-A7FD 003F 3F UNASSIGNED
-A7FE 003F 3F UNASSIGNED
-A8C1 003F 3F UNASSIGNED
-A8C2 003F 3F UNASSIGNED
-A8C3 003F 3F UNASSIGNED
-A8C4 003F 3F UNASSIGNED
-A8C5 003F 3F UNASSIGNED
-A8C6 003F 3F UNASSIGNED
-A8C7 003F 3F UNASSIGNED
-A8C8 003F 3F UNASSIGNED
-A8C9 003F 3F UNASSIGNED
-A8CA 003F 3F UNASSIGNED
-A8CB 003F 3F UNASSIGNED
-A8CC 003F 3F UNASSIGNED
-A8CD 003F 3F UNASSIGNED
-A8CE 003F 3F UNASSIGNED
-A8CF 003F 3F UNASSIGNED
-A8D0 003F 3F UNASSIGNED
-A8D1 003F 3F UNASSIGNED
-A8D2 003F 3F UNASSIGNED
-A8D3 003F 3F UNASSIGNED
-A8D4 003F 3F UNASSIGNED
-A8D5 003F 3F UNASSIGNED
-A8D6 003F 3F UNASSIGNED
-A8D7 003F 3F UNASSIGNED
-A8D8 003F 3F UNASSIGNED
-A8D9 003F 3F UNASSIGNED
-A8DA 003F 3F UNASSIGNED
-A8DB 003F 3F UNASSIGNED
-A8DC 003F 3F UNASSIGNED
-A8DD 003F 3F UNASSIGNED
-A8DE 003F 3F UNASSIGNED
-A8DF 003F 3F UNASSIGNED
-A8E0 003F 3F UNASSIGNED
-A8E1 003F 3F UNASSIGNED
-A8E2 003F 3F UNASSIGNED
-A8E3 003F 3F UNASSIGNED
-A8E4 003F 3F UNASSIGNED
-A8E5 003F 3F UNASSIGNED
-A8E6 003F 3F UNASSIGNED
-A8E7 003F 3F UNASSIGNED
-A8E8 003F 3F UNASSIGNED
-A8E9 003F 3F UNASSIGNED
-A8EA 003F 3F UNASSIGNED
-A8EB 003F 3F UNASSIGNED
-A8EC 003F 3F UNASSIGNED
-A8ED 003F 3F UNASSIGNED
-A8EE 003F 3F UNASSIGNED
-A8EF 003F 3F UNASSIGNED
-A8F0 003F 3F UNASSIGNED
-A8F1 003F 3F UNASSIGNED
-A8F2 003F 3F UNASSIGNED
-A8F3 003F 3F UNASSIGNED
-A8F4 003F 3F UNASSIGNED
-A8F5 003F 3F UNASSIGNED
-A8F6 003F 3F UNASSIGNED
-A8F7 003F 3F UNASSIGNED
-A8F8 003F 3F UNASSIGNED
-A8F9 003F 3F UNASSIGNED
-A8FA 003F 3F UNASSIGNED
-A8FB 003F 3F UNASSIGNED
-A8FC 003F 3F UNASSIGNED
-A8FD 003F 3F UNASSIGNED
-A8FE 003F 3F UNASSIGNED
-A9A1 003F 3F UNASSIGNED
-A9A2 003F 3F UNASSIGNED
-A9A3 003F 3F UNASSIGNED
-A9A4 003F 3F UNASSIGNED
-A9A5 003F 3F UNASSIGNED
-A9A6 003F 3F UNASSIGNED
-A9A7 003F 3F UNASSIGNED
-A9A8 003F 3F UNASSIGNED
-A9A9 003F 3F UNASSIGNED
-A9AA 003F 3F UNASSIGNED
-A9AB 003F 3F UNASSIGNED
-A9AC 003F 3F UNASSIGNED
-A9AD 003F 3F UNASSIGNED
-A9AE 003F 3F UNASSIGNED
-A9AF 003F 3F UNASSIGNED
-A9B0 003F 3F UNASSIGNED
-A9B1 003F 3F UNASSIGNED
-A9B2 003F 3F UNASSIGNED
-A9B3 003F 3F UNASSIGNED
-A9B4 003F 3F UNASSIGNED
-A9B5 003F 3F UNASSIGNED
-A9B6 003F 3F UNASSIGNED
-A9B7 003F 3F UNASSIGNED
-A9B8 003F 3F UNASSIGNED
-A9B9 003F 3F UNASSIGNED
-A9BA 003F 3F UNASSIGNED
-A9BB 003F 3F UNASSIGNED
-A9BC 003F 3F UNASSIGNED
-A9BD 003F 3F UNASSIGNED
-A9BE 003F 3F UNASSIGNED
-A9BF 003F 3F UNASSIGNED
-A9C0 003F 3F UNASSIGNED
-A9C1 003F 3F UNASSIGNED
-A9C2 003F 3F UNASSIGNED
-A9C3 003F 3F UNASSIGNED
-A9C4 003F 3F UNASSIGNED
-A9C5 003F 3F UNASSIGNED
-A9C6 003F 3F UNASSIGNED
-A9C7 003F 3F UNASSIGNED
-A9C8 003F 3F UNASSIGNED
-A9C9 003F 3F UNASSIGNED
-A9CA 003F 3F UNASSIGNED
-A9CB 003F 3F UNASSIGNED
-A9CC 003F 3F UNASSIGNED
-A9CD 003F 3F UNASSIGNED
-A9CE 003F 3F UNASSIGNED
-A9CF 003F 3F UNASSIGNED
-A9D0 003F 3F UNASSIGNED
-A9D1 003F 3F UNASSIGNED
-A9D2 003F 3F UNASSIGNED
-A9D3 003F 3F UNASSIGNED
-A9D4 003F 3F UNASSIGNED
-A9D5 003F 3F UNASSIGNED
-A9D6 003F 3F UNASSIGNED
-A9D7 003F 3F UNASSIGNED
-A9D8 003F 3F UNASSIGNED
-A9D9 003F 3F UNASSIGNED
-A9DA 003F 3F UNASSIGNED
-A9DB 003F 3F UNASSIGNED
-A9DC 003F 3F UNASSIGNED
-A9DD 003F 3F UNASSIGNED
-A9DE 003F 3F UNASSIGNED
-A9DF 003F 3F UNASSIGNED
-A9E0 003F 3F UNASSIGNED
-A9E1 003F 3F UNASSIGNED
-A9E2 003F 3F UNASSIGNED
-A9E3 003F 3F UNASSIGNED
-A9E4 003F 3F UNASSIGNED
-A9E5 003F 3F UNASSIGNED
-A9E6 003F 3F UNASSIGNED
-A9E7 003F 3F UNASSIGNED
-A9E8 003F 3F UNASSIGNED
-A9E9 003F 3F UNASSIGNED
-A9EA 003F 3F UNASSIGNED
-A9EB 003F 3F UNASSIGNED
-A9EC 003F 3F UNASSIGNED
-A9ED 003F 3F UNASSIGNED
-A9EE 003F 3F UNASSIGNED
-A9EF 003F 3F UNASSIGNED
-A9F0 003F 3F UNASSIGNED
-A9F1 003F 3F UNASSIGNED
-A9F2 003F 3F UNASSIGNED
-A9F3 003F 3F UNASSIGNED
-A9F4 003F 3F UNASSIGNED
-A9F5 003F 3F UNASSIGNED
-A9F6 003F 3F UNASSIGNED
-A9F7 003F 3F UNASSIGNED
-A9F8 003F 3F UNASSIGNED
-A9F9 003F 3F UNASSIGNED
-A9FA 003F 3F UNASSIGNED
-A9FB 003F 3F UNASSIGNED
-A9FC 003F 3F UNASSIGNED
-A9FD 003F 3F UNASSIGNED
-A9FE 003F 3F UNASSIGNED
-AAA1 003F 3F UNASSIGNED
-AAA2 003F 3F UNASSIGNED
-AAA3 003F 3F UNASSIGNED
-AAA4 003F 3F UNASSIGNED
-AAA5 003F 3F UNASSIGNED
-AAA6 003F 3F UNASSIGNED
-AAA7 003F 3F UNASSIGNED
-AAA8 003F 3F UNASSIGNED
-AAA9 003F 3F UNASSIGNED
-AAAA 003F 3F UNASSIGNED
-AAAB 003F 3F UNASSIGNED
-AAAC 003F 3F UNASSIGNED
-AAAD 003F 3F UNASSIGNED
-AAAE 003F 3F UNASSIGNED
-AAAF 003F 3F UNASSIGNED
-AAB0 003F 3F UNASSIGNED
-AAB1 003F 3F UNASSIGNED
-AAB2 003F 3F UNASSIGNED
-AAB3 003F 3F UNASSIGNED
-AAB4 003F 3F UNASSIGNED
-AAB5 003F 3F UNASSIGNED
-AAB6 003F 3F UNASSIGNED
-AAB7 003F 3F UNASSIGNED
-AAB8 003F 3F UNASSIGNED
-AAB9 003F 3F UNASSIGNED
-AABA 003F 3F UNASSIGNED
-AABB 003F 3F UNASSIGNED
-AABC 003F 3F UNASSIGNED
-AABD 003F 3F UNASSIGNED
-AABE 003F 3F UNASSIGNED
-AABF 003F 3F UNASSIGNED
-AAC0 003F 3F UNASSIGNED
-AAC1 003F 3F UNASSIGNED
-AAC2 003F 3F UNASSIGNED
-AAC3 003F 3F UNASSIGNED
-AAC4 003F 3F UNASSIGNED
-AAC5 003F 3F UNASSIGNED
-AAC6 003F 3F UNASSIGNED
-AAC7 003F 3F UNASSIGNED
-AAC8 003F 3F UNASSIGNED
-AAC9 003F 3F UNASSIGNED
-AACA 003F 3F UNASSIGNED
-AACB 003F 3F UNASSIGNED
-AACC 003F 3F UNASSIGNED
-AACD 003F 3F UNASSIGNED
-AACE 003F 3F UNASSIGNED
-AACF 003F 3F UNASSIGNED
-AAD0 003F 3F UNASSIGNED
-AAD1 003F 3F UNASSIGNED
-AAD2 003F 3F UNASSIGNED
-AAD3 003F 3F UNASSIGNED
-AAD4 003F 3F UNASSIGNED
-AAD5 003F 3F UNASSIGNED
-AAD6 003F 3F UNASSIGNED
-AAD7 003F 3F UNASSIGNED
-AAD8 003F 3F UNASSIGNED
-AAD9 003F 3F UNASSIGNED
-AADA 003F 3F UNASSIGNED
-AADB 003F 3F UNASSIGNED
-AADC 003F 3F UNASSIGNED
-AADD 003F 3F UNASSIGNED
-AADE 003F 3F UNASSIGNED
-AADF 003F 3F UNASSIGNED
-AAE0 003F 3F UNASSIGNED
-AAE1 003F 3F UNASSIGNED
-AAE2 003F 3F UNASSIGNED
-AAE3 003F 3F UNASSIGNED
-AAE4 003F 3F UNASSIGNED
-AAE5 003F 3F UNASSIGNED
-AAE6 003F 3F UNASSIGNED
-AAE7 003F 3F UNASSIGNED
-AAE8 003F 3F UNASSIGNED
-AAE9 003F 3F UNASSIGNED
-AAEA 003F 3F UNASSIGNED
-AAEB 003F 3F UNASSIGNED
-AAEC 003F 3F UNASSIGNED
-AAED 003F 3F UNASSIGNED
-AAEE 003F 3F UNASSIGNED
-AAEF 003F 3F UNASSIGNED
-AAF0 003F 3F UNASSIGNED
-AAF1 003F 3F UNASSIGNED
-AAF2 003F 3F UNASSIGNED
-AAF3 003F 3F UNASSIGNED
-AAF4 003F 3F UNASSIGNED
-AAF5 003F 3F UNASSIGNED
-AAF6 003F 3F UNASSIGNED
-AAF7 003F 3F UNASSIGNED
-AAF8 003F 3F UNASSIGNED
-AAF9 003F 3F UNASSIGNED
-AAFA 003F 3F UNASSIGNED
-AAFB 003F 3F UNASSIGNED
-AAFC 003F 3F UNASSIGNED
-AAFD 003F 3F UNASSIGNED
-AAFE 003F 3F UNASSIGNED
-ABA1 003F 3F UNASSIGNED
-ABA2 003F 3F UNASSIGNED
-ABA3 003F 3F UNASSIGNED
-ABA4 003F 3F UNASSIGNED
-ABA5 003F 3F UNASSIGNED
-ABA6 003F 3F UNASSIGNED
-ABA7 003F 3F UNASSIGNED
-ABA8 003F 3F UNASSIGNED
-ABA9 003F 3F UNASSIGNED
-ABAA 003F 3F UNASSIGNED
-ABAB 003F 3F UNASSIGNED
-ABAC 003F 3F UNASSIGNED
-ABAD 003F 3F UNASSIGNED
-ABAE 003F 3F UNASSIGNED
-ABAF 003F 3F UNASSIGNED
-ABB0 003F 3F UNASSIGNED
-ABB1 003F 3F UNASSIGNED
-ABB2 003F 3F UNASSIGNED
-ABB3 003F 3F UNASSIGNED
-ABB4 003F 3F UNASSIGNED
-ABB5 003F 3F UNASSIGNED
-ABB6 003F 3F UNASSIGNED
-ABB7 003F 3F UNASSIGNED
-ABB8 003F 3F UNASSIGNED
-ABB9 003F 3F UNASSIGNED
-ABBA 003F 3F UNASSIGNED
-ABBB 003F 3F UNASSIGNED
-ABBC 003F 3F UNASSIGNED
-ABBD 003F 3F UNASSIGNED
-ABBE 003F 3F UNASSIGNED
-ABBF 003F 3F UNASSIGNED
-ABC0 003F 3F UNASSIGNED
-ABC1 003F 3F UNASSIGNED
-ABC2 003F 3F UNASSIGNED
-ABC3 003F 3F UNASSIGNED
-ABC4 003F 3F UNASSIGNED
-ABC5 003F 3F UNASSIGNED
-ABC6 003F 3F UNASSIGNED
-ABC7 003F 3F UNASSIGNED
-ABC8 003F 3F UNASSIGNED
-ABC9 003F 3F UNASSIGNED
-ABCA 003F 3F UNASSIGNED
-ABCB 003F 3F UNASSIGNED
-ABCC 003F 3F UNASSIGNED
-ABCD 003F 3F UNASSIGNED
-ABCE 003F 3F UNASSIGNED
-ABCF 003F 3F UNASSIGNED
-ABD0 003F 3F UNASSIGNED
-ABD1 003F 3F UNASSIGNED
-ABD2 003F 3F UNASSIGNED
-ABD3 003F 3F UNASSIGNED
-ABD4 003F 3F UNASSIGNED
-ABD5 003F 3F UNASSIGNED
-ABD6 003F 3F UNASSIGNED
-ABD7 003F 3F UNASSIGNED
-ABD8 003F 3F UNASSIGNED
-ABD9 003F 3F UNASSIGNED
-ABDA 003F 3F UNASSIGNED
-ABDB 003F 3F UNASSIGNED
-ABDC 003F 3F UNASSIGNED
-ABDD 003F 3F UNASSIGNED
-ABDE 003F 3F UNASSIGNED
-ABDF 003F 3F UNASSIGNED
-ABE0 003F 3F UNASSIGNED
-ABE1 003F 3F UNASSIGNED
-ABE2 003F 3F UNASSIGNED
-ABE3 003F 3F UNASSIGNED
-ABE4 003F 3F UNASSIGNED
-ABE5 003F 3F UNASSIGNED
-ABE6 003F 3F UNASSIGNED
-ABE7 003F 3F UNASSIGNED
-ABE8 003F 3F UNASSIGNED
-ABE9 003F 3F UNASSIGNED
-ABEA 003F 3F UNASSIGNED
-ABEB 003F 3F UNASSIGNED
-ABEC 003F 3F UNASSIGNED
-ABED 003F 3F UNASSIGNED
-ABEE 003F 3F UNASSIGNED
-ABEF 003F 3F UNASSIGNED
-ABF0 003F 3F UNASSIGNED
-ABF1 003F 3F UNASSIGNED
-ABF2 003F 3F UNASSIGNED
-ABF3 003F 3F UNASSIGNED
-ABF4 003F 3F UNASSIGNED
-ABF5 003F 3F UNASSIGNED
-ABF6 003F 3F UNASSIGNED
-ABF7 003F 3F UNASSIGNED
-ABF8 003F 3F UNASSIGNED
-ABF9 003F 3F UNASSIGNED
-ABFA 003F 3F UNASSIGNED
-ABFB 003F 3F UNASSIGNED
-ABFC 003F 3F UNASSIGNED
-ABFD 003F 3F UNASSIGNED
-ABFE 003F 3F UNASSIGNED
-ACA1 003F 3F UNASSIGNED
-ACA2 003F 3F UNASSIGNED
-ACA3 003F 3F UNASSIGNED
-ACA4 003F 3F UNASSIGNED
-ACA5 003F 3F UNASSIGNED
-ACA6 003F 3F UNASSIGNED
-ACA7 003F 3F UNASSIGNED
-ACA8 003F 3F UNASSIGNED
-ACA9 003F 3F UNASSIGNED
-ACAA 003F 3F UNASSIGNED
-ACAB 003F 3F UNASSIGNED
-ACAC 003F 3F UNASSIGNED
-ACAD 003F 3F UNASSIGNED
-ACAE 003F 3F UNASSIGNED
-ACAF 003F 3F UNASSIGNED
-ACB0 003F 3F UNASSIGNED
-ACB1 003F 3F UNASSIGNED
-ACB2 003F 3F UNASSIGNED
-ACB3 003F 3F UNASSIGNED
-ACB4 003F 3F UNASSIGNED
-ACB5 003F 3F UNASSIGNED
-ACB6 003F 3F UNASSIGNED
-ACB7 003F 3F UNASSIGNED
-ACB8 003F 3F UNASSIGNED
-ACB9 003F 3F UNASSIGNED
-ACBA 003F 3F UNASSIGNED
-ACBB 003F 3F UNASSIGNED
-ACBC 003F 3F UNASSIGNED
-ACBD 003F 3F UNASSIGNED
-ACBE 003F 3F UNASSIGNED
-ACBF 003F 3F UNASSIGNED
-ACC0 003F 3F UNASSIGNED
-ACC1 003F 3F UNASSIGNED
-ACC2 003F 3F UNASSIGNED
-ACC3 003F 3F UNASSIGNED
-ACC4 003F 3F UNASSIGNED
-ACC5 003F 3F UNASSIGNED
-ACC6 003F 3F UNASSIGNED
-ACC7 003F 3F UNASSIGNED
-ACC8 003F 3F UNASSIGNED
-ACC9 003F 3F UNASSIGNED
-ACCA 003F 3F UNASSIGNED
-ACCB 003F 3F UNASSIGNED
-ACCC 003F 3F UNASSIGNED
-ACCD 003F 3F UNASSIGNED
-ACCE 003F 3F UNASSIGNED
-ACCF 003F 3F UNASSIGNED
-ACD0 003F 3F UNASSIGNED
-ACD1 003F 3F UNASSIGNED
-ACD2 003F 3F UNASSIGNED
-ACD3 003F 3F UNASSIGNED
-ACD4 003F 3F UNASSIGNED
-ACD5 003F 3F UNASSIGNED
-ACD6 003F 3F UNASSIGNED
-ACD7 003F 3F UNASSIGNED
-ACD8 003F 3F UNASSIGNED
-ACD9 003F 3F UNASSIGNED
-ACDA 003F 3F UNASSIGNED
-ACDB 003F 3F UNASSIGNED
-ACDC 003F 3F UNASSIGNED
-ACDD 003F 3F UNASSIGNED
-ACDE 003F 3F UNASSIGNED
-ACDF 003F 3F UNASSIGNED
-ACE0 003F 3F UNASSIGNED
-ACE1 003F 3F UNASSIGNED
-ACE2 003F 3F UNASSIGNED
-ACE3 003F 3F UNASSIGNED
-ACE4 003F 3F UNASSIGNED
-ACE5 003F 3F UNASSIGNED
-ACE6 003F 3F UNASSIGNED
-ACE7 003F 3F UNASSIGNED
-ACE8 003F 3F UNASSIGNED
-ACE9 003F 3F UNASSIGNED
-ACEA 003F 3F UNASSIGNED
-ACEB 003F 3F UNASSIGNED
-ACEC 003F 3F UNASSIGNED
-ACED 003F 3F UNASSIGNED
-ACEE 003F 3F UNASSIGNED
-ACEF 003F 3F UNASSIGNED
-ACF0 003F 3F UNASSIGNED
-ACF1 003F 3F UNASSIGNED
-ACF2 003F 3F UNASSIGNED
-ACF3 003F 3F UNASSIGNED
-ACF4 003F 3F UNASSIGNED
-ACF5 003F 3F UNASSIGNED
-ACF6 003F 3F UNASSIGNED
-ACF7 003F 3F UNASSIGNED
-ACF8 003F 3F UNASSIGNED
-ACF9 003F 3F UNASSIGNED
-ACFA 003F 3F UNASSIGNED
-ACFB 003F 3F UNASSIGNED
-ACFC 003F 3F UNASSIGNED
-ACFD 003F 3F UNASSIGNED
-ACFE 003F 3F UNASSIGNED
-ADA1 003F 3F UNASSIGNED
-ADA2 003F 3F UNASSIGNED
-ADA3 003F 3F UNASSIGNED
-ADA4 003F 3F UNASSIGNED
-ADA5 003F 3F UNASSIGNED
-ADA6 003F 3F UNASSIGNED
-ADA7 003F 3F UNASSIGNED
-ADA8 003F 3F UNASSIGNED
-ADA9 003F 3F UNASSIGNED
-ADAA 003F 3F UNASSIGNED
-ADAB 003F 3F UNASSIGNED
-ADAC 003F 3F UNASSIGNED
-ADAD 003F 3F UNASSIGNED
-ADAE 003F 3F UNASSIGNED
-ADAF 003F 3F UNASSIGNED
-ADB0 003F 3F UNASSIGNED
-ADB1 003F 3F UNASSIGNED
-ADB2 003F 3F UNASSIGNED
-ADB3 003F 3F UNASSIGNED
-ADB4 003F 3F UNASSIGNED
-ADB5 003F 3F UNASSIGNED
-ADB6 003F 3F UNASSIGNED
-ADB7 003F 3F UNASSIGNED
-ADB8 003F 3F UNASSIGNED
-ADB9 003F 3F UNASSIGNED
-ADBA 003F 3F UNASSIGNED
-ADBB 003F 3F UNASSIGNED
-ADBC 003F 3F UNASSIGNED
-ADBD 003F 3F UNASSIGNED
-ADBE 003F 3F UNASSIGNED
-ADBF 003F 3F UNASSIGNED
-ADC0 003F 3F UNASSIGNED
-ADC1 003F 3F UNASSIGNED
-ADC2 003F 3F UNASSIGNED
-ADC3 003F 3F UNASSIGNED
-ADC4 003F 3F UNASSIGNED
-ADC5 003F 3F UNASSIGNED
-ADC6 003F 3F UNASSIGNED
-ADC7 003F 3F UNASSIGNED
-ADC8 003F 3F UNASSIGNED
-ADC9 003F 3F UNASSIGNED
-ADCA 003F 3F UNASSIGNED
-ADCB 003F 3F UNASSIGNED
-ADCC 003F 3F UNASSIGNED
-ADCD 003F 3F UNASSIGNED
-ADCE 003F 3F UNASSIGNED
-ADCF 003F 3F UNASSIGNED
-ADD0 003F 3F UNASSIGNED
-ADD1 003F 3F UNASSIGNED
-ADD2 003F 3F UNASSIGNED
-ADD3 003F 3F UNASSIGNED
-ADD4 003F 3F UNASSIGNED
-ADD5 003F 3F UNASSIGNED
-ADD6 003F 3F UNASSIGNED
-ADD7 003F 3F UNASSIGNED
-ADD8 003F 3F UNASSIGNED
-ADD9 003F 3F UNASSIGNED
-ADDA 003F 3F UNASSIGNED
-ADDB 003F 3F UNASSIGNED
-ADDC 003F 3F UNASSIGNED
-ADDD 003F 3F UNASSIGNED
-ADDE 003F 3F UNASSIGNED
-ADDF 003F 3F UNASSIGNED
-ADE0 003F 3F UNASSIGNED
-ADE1 003F 3F UNASSIGNED
-ADE2 003F 3F UNASSIGNED
-ADE3 003F 3F UNASSIGNED
-ADE4 003F 3F UNASSIGNED
-ADE5 003F 3F UNASSIGNED
-ADE6 003F 3F UNASSIGNED
-ADE7 003F 3F UNASSIGNED
-ADE8 003F 3F UNASSIGNED
-ADE9 003F 3F UNASSIGNED
-ADEA 003F 3F UNASSIGNED
-ADEB 003F 3F UNASSIGNED
-ADEC 003F 3F UNASSIGNED
-ADED 003F 3F UNASSIGNED
-ADEE 003F 3F UNASSIGNED
-ADEF 003F 3F UNASSIGNED
-ADF0 003F 3F UNASSIGNED
-ADF1 003F 3F UNASSIGNED
-ADF2 003F 3F UNASSIGNED
-ADF3 003F 3F UNASSIGNED
-ADF4 003F 3F UNASSIGNED
-ADF5 003F 3F UNASSIGNED
-ADF6 003F 3F UNASSIGNED
-ADF7 003F 3F UNASSIGNED
-ADF8 003F 3F UNASSIGNED
-ADF9 003F 3F UNASSIGNED
-ADFA 003F 3F UNASSIGNED
-ADFB 003F 3F UNASSIGNED
-ADFC 003F 3F UNASSIGNED
-ADFD 003F 3F UNASSIGNED
-ADFE 003F 3F UNASSIGNED
-AEA1 003F 3F UNASSIGNED
-AEA2 003F 3F UNASSIGNED
-AEA3 003F 3F UNASSIGNED
-AEA4 003F 3F UNASSIGNED
-AEA5 003F 3F UNASSIGNED
-AEA6 003F 3F UNASSIGNED
-AEA7 003F 3F UNASSIGNED
-AEA8 003F 3F UNASSIGNED
-AEA9 003F 3F UNASSIGNED
-AEAA 003F 3F UNASSIGNED
-AEAB 003F 3F UNASSIGNED
-AEAC 003F 3F UNASSIGNED
-AEAD 003F 3F UNASSIGNED
-AEAE 003F 3F UNASSIGNED
-AEAF 003F 3F UNASSIGNED
-AEB0 003F 3F UNASSIGNED
-AEB1 003F 3F UNASSIGNED
-AEB2 003F 3F UNASSIGNED
-AEB3 003F 3F UNASSIGNED
-AEB4 003F 3F UNASSIGNED
-AEB5 003F 3F UNASSIGNED
-AEB6 003F 3F UNASSIGNED
-AEB7 003F 3F UNASSIGNED
-AEB8 003F 3F UNASSIGNED
-AEB9 003F 3F UNASSIGNED
-AEBA 003F 3F UNASSIGNED
-AEBB 003F 3F UNASSIGNED
-AEBC 003F 3F UNASSIGNED
-AEBD 003F 3F UNASSIGNED
-AEBE 003F 3F UNASSIGNED
-AEBF 003F 3F UNASSIGNED
-AEC0 003F 3F UNASSIGNED
-AEC1 003F 3F UNASSIGNED
-AEC2 003F 3F UNASSIGNED
-AEC3 003F 3F UNASSIGNED
-AEC4 003F 3F UNASSIGNED
-AEC5 003F 3F UNASSIGNED
-AEC6 003F 3F UNASSIGNED
-AEC7 003F 3F UNASSIGNED
-AEC8 003F 3F UNASSIGNED
-AEC9 003F 3F UNASSIGNED
-AECA 003F 3F UNASSIGNED
-AECB 003F 3F UNASSIGNED
-AECC 003F 3F UNASSIGNED
-AECD 003F 3F UNASSIGNED
-AECE 003F 3F UNASSIGNED
-AECF 003F 3F UNASSIGNED
-AED0 003F 3F UNASSIGNED
-AED1 003F 3F UNASSIGNED
-AED2 003F 3F UNASSIGNED
-AED3 003F 3F UNASSIGNED
-AED4 003F 3F UNASSIGNED
-AED5 003F 3F UNASSIGNED
-AED6 003F 3F UNASSIGNED
-AED7 003F 3F UNASSIGNED
-AED8 003F 3F UNASSIGNED
-AED9 003F 3F UNASSIGNED
-AEDA 003F 3F UNASSIGNED
-AEDB 003F 3F UNASSIGNED
-AEDC 003F 3F UNASSIGNED
-AEDD 003F 3F UNASSIGNED
-AEDE 003F 3F UNASSIGNED
-AEDF 003F 3F UNASSIGNED
-AEE0 003F 3F UNASSIGNED
-AEE1 003F 3F UNASSIGNED
-AEE2 003F 3F UNASSIGNED
-AEE3 003F 3F UNASSIGNED
-AEE4 003F 3F UNASSIGNED
-AEE5 003F 3F UNASSIGNED
-AEE6 003F 3F UNASSIGNED
-AEE7 003F 3F UNASSIGNED
-AEE8 003F 3F UNASSIGNED
-AEE9 003F 3F UNASSIGNED
-AEEA 003F 3F UNASSIGNED
-AEEB 003F 3F UNASSIGNED
-AEEC 003F 3F UNASSIGNED
-AEED 003F 3F UNASSIGNED
-AEEE 003F 3F UNASSIGNED
-AEEF 003F 3F UNASSIGNED
-AEF0 003F 3F UNASSIGNED
-AEF1 003F 3F UNASSIGNED
-AEF2 003F 3F UNASSIGNED
-AEF3 003F 3F UNASSIGNED
-AEF4 003F 3F UNASSIGNED
-AEF5 003F 3F UNASSIGNED
-AEF6 003F 3F UNASSIGNED
-AEF7 003F 3F UNASSIGNED
-AEF8 003F 3F UNASSIGNED
-AEF9 003F 3F UNASSIGNED
-AEFA 003F 3F UNASSIGNED
-AEFB 003F 3F UNASSIGNED
-AEFC 003F 3F UNASSIGNED
-AEFD 003F 3F UNASSIGNED
-AEFE 003F 3F UNASSIGNED
-AFA1 003F 3F UNASSIGNED
-AFA2 003F 3F UNASSIGNED
-AFA3 003F 3F UNASSIGNED
-AFA4 003F 3F UNASSIGNED
-AFA5 003F 3F UNASSIGNED
-AFA6 003F 3F UNASSIGNED
-AFA7 003F 3F UNASSIGNED
-AFA8 003F 3F UNASSIGNED
-AFA9 003F 3F UNASSIGNED
-AFAA 003F 3F UNASSIGNED
-AFAB 003F 3F UNASSIGNED
-AFAC 003F 3F UNASSIGNED
-AFAD 003F 3F UNASSIGNED
-AFAE 003F 3F UNASSIGNED
-AFAF 003F 3F UNASSIGNED
-AFB0 003F 3F UNASSIGNED
-AFB1 003F 3F UNASSIGNED
-AFB2 003F 3F UNASSIGNED
-AFB3 003F 3F UNASSIGNED
-AFB4 003F 3F UNASSIGNED
-AFB5 003F 3F UNASSIGNED
-AFB6 003F 3F UNASSIGNED
-AFB7 003F 3F UNASSIGNED
-AFB8 003F 3F UNASSIGNED
-AFB9 003F 3F UNASSIGNED
-AFBA 003F 3F UNASSIGNED
-AFBB 003F 3F UNASSIGNED
-AFBC 003F 3F UNASSIGNED
-AFBD 003F 3F UNASSIGNED
-AFBE 003F 3F UNASSIGNED
-AFBF 003F 3F UNASSIGNED
-AFC0 003F 3F UNASSIGNED
-AFC1 003F 3F UNASSIGNED
-AFC2 003F 3F UNASSIGNED
-AFC3 003F 3F UNASSIGNED
-AFC4 003F 3F UNASSIGNED
-AFC5 003F 3F UNASSIGNED
-AFC6 003F 3F UNASSIGNED
-AFC7 003F 3F UNASSIGNED
-AFC8 003F 3F UNASSIGNED
-AFC9 003F 3F UNASSIGNED
-AFCA 003F 3F UNASSIGNED
-AFCB 003F 3F UNASSIGNED
-AFCC 003F 3F UNASSIGNED
-AFCD 003F 3F UNASSIGNED
-AFCE 003F 3F UNASSIGNED
-AFCF 003F 3F UNASSIGNED
-AFD0 003F 3F UNASSIGNED
-AFD1 003F 3F UNASSIGNED
-AFD2 003F 3F UNASSIGNED
-AFD3 003F 3F UNASSIGNED
-AFD4 003F 3F UNASSIGNED
-AFD5 003F 3F UNASSIGNED
-AFD6 003F 3F UNASSIGNED
-AFD7 003F 3F UNASSIGNED
-AFD8 003F 3F UNASSIGNED
-AFD9 003F 3F UNASSIGNED
-AFDA 003F 3F UNASSIGNED
-AFDB 003F 3F UNASSIGNED
-AFDC 003F 3F UNASSIGNED
-AFDD 003F 3F UNASSIGNED
-AFDE 003F 3F UNASSIGNED
-AFDF 003F 3F UNASSIGNED
-AFE0 003F 3F UNASSIGNED
-AFE1 003F 3F UNASSIGNED
-AFE2 003F 3F UNASSIGNED
-AFE3 003F 3F UNASSIGNED
-AFE4 003F 3F UNASSIGNED
-AFE5 003F 3F UNASSIGNED
-AFE6 003F 3F UNASSIGNED
-AFE7 003F 3F UNASSIGNED
-AFE8 003F 3F UNASSIGNED
-AFE9 003F 3F UNASSIGNED
-AFEA 003F 3F UNASSIGNED
-AFEB 003F 3F UNASSIGNED
-AFEC 003F 3F UNASSIGNED
-AFED 003F 3F UNASSIGNED
-AFEE 003F 3F UNASSIGNED
-AFEF 003F 3F UNASSIGNED
-AFF0 003F 3F UNASSIGNED
-AFF1 003F 3F UNASSIGNED
-AFF2 003F 3F UNASSIGNED
-AFF3 003F 3F UNASSIGNED
-AFF4 003F 3F UNASSIGNED
-AFF5 003F 3F UNASSIGNED
-AFF6 003F 3F UNASSIGNED
-AFF7 003F 3F UNASSIGNED
-AFF8 003F 3F UNASSIGNED
-AFF9 003F 3F UNASSIGNED
-AFFA 003F 3F UNASSIGNED
-AFFB 003F 3F UNASSIGNED
-AFFC 003F 3F UNASSIGNED
-AFFD 003F 3F UNASSIGNED
-AFFE 003F 3F UNASSIGNED
-CFD4 003F 3F UNASSIGNED
-CFD5 003F 3F UNASSIGNED
-CFD6 003F 3F UNASSIGNED
-CFD7 003F 3F UNASSIGNED
-CFD8 003F 3F UNASSIGNED
-CFD9 003F 3F UNASSIGNED
-CFDA 003F 3F UNASSIGNED
-CFDB 003F 3F UNASSIGNED
-CFDC 003F 3F UNASSIGNED
-CFDD 003F 3F UNASSIGNED
-CFDE 003F 3F UNASSIGNED
-CFDF 003F 3F UNASSIGNED
-CFE0 003F 3F UNASSIGNED
-CFE1 003F 3F UNASSIGNED
-CFE2 003F 3F UNASSIGNED
-CFE3 003F 3F UNASSIGNED
-CFE4 003F 3F UNASSIGNED
-CFE5 003F 3F UNASSIGNED
-CFE6 003F 3F UNASSIGNED
-CFE7 003F 3F UNASSIGNED
-CFE8 003F 3F UNASSIGNED
-CFE9 003F 3F UNASSIGNED
-CFEA 003F 3F UNASSIGNED
-CFEB 003F 3F UNASSIGNED
-CFEC 003F 3F UNASSIGNED
-CFED 003F 3F UNASSIGNED
-CFEE 003F 3F UNASSIGNED
-CFEF 003F 3F UNASSIGNED
-CFF0 003F 3F UNASSIGNED
-CFF1 003F 3F UNASSIGNED
-CFF2 003F 3F UNASSIGNED
-CFF3 003F 3F UNASSIGNED
-CFF4 003F 3F UNASSIGNED
-CFF5 003F 3F UNASSIGNED
-CFF6 003F 3F UNASSIGNED
-CFF7 003F 3F UNASSIGNED
-CFF8 003F 3F UNASSIGNED
-CFF9 003F 3F UNASSIGNED
-CFFA 003F 3F UNASSIGNED
-CFFB 003F 3F UNASSIGNED
-CFFC 003F 3F UNASSIGNED
-CFFD 003F 3F UNASSIGNED
-CFFE 003F 3F UNASSIGNED
-F4A7 003F 3F UNASSIGNED
-F4A8 003F 3F UNASSIGNED
-F4A9 003F 3F UNASSIGNED
-F4AA 003F 3F UNASSIGNED
-F4AB 003F 3F UNASSIGNED
-F4AC 003F 3F UNASSIGNED
-F4AD 003F 3F UNASSIGNED
-F4AE 003F 3F UNASSIGNED
-F4AF 003F 3F UNASSIGNED
-F4B0 003F 3F UNASSIGNED
-F4B1 003F 3F UNASSIGNED
-F4B2 003F 3F UNASSIGNED
-F4B3 003F 3F UNASSIGNED
-F4B4 003F 3F UNASSIGNED
-F4B5 003F 3F UNASSIGNED
-F4B6 003F 3F UNASSIGNED
-F4B7 003F 3F UNASSIGNED
-F4B8 003F 3F UNASSIGNED
-F4B9 003F 3F UNASSIGNED
-F4BA 003F 3F UNASSIGNED
-F4BB 003F 3F UNASSIGNED
-F4BC 003F 3F UNASSIGNED
-F4BD 003F 3F UNASSIGNED
-F4BE 003F 3F UNASSIGNED
-F4BF 003F 3F UNASSIGNED
-F4C0 003F 3F UNASSIGNED
-F4C1 003F 3F UNASSIGNED
-F4C2 003F 3F UNASSIGNED
-F4C3 003F 3F UNASSIGNED
-F4C4 003F 3F UNASSIGNED
-F4C5 003F 3F UNASSIGNED
-F4C6 003F 3F UNASSIGNED
-F4C7 003F 3F UNASSIGNED
-F4C8 003F 3F UNASSIGNED
-F4C9 003F 3F UNASSIGNED
-F4CA 003F 3F UNASSIGNED
-F4CB 003F 3F UNASSIGNED
-F4CC 003F 3F UNASSIGNED
-F4CD 003F 3F UNASSIGNED
-F4CE 003F 3F UNASSIGNED
-F4CF 003F 3F UNASSIGNED
-F4D0 003F 3F UNASSIGNED
-F4D1 003F 3F UNASSIGNED
-F4D2 003F 3F UNASSIGNED
-F4D3 003F 3F UNASSIGNED
-F4D4 003F 3F UNASSIGNED
-F4D5 003F 3F UNASSIGNED
-F4D6 003F 3F UNASSIGNED
-F4D7 003F 3F UNASSIGNED
-F4D8 003F 3F UNASSIGNED
-F4D9 003F 3F UNASSIGNED
-F4DA 003F 3F UNASSIGNED
-F4DB 003F 3F UNASSIGNED
-F4DC 003F 3F UNASSIGNED
-F4DD 003F 3F UNASSIGNED
-F4DE 003F 3F UNASSIGNED
-F4DF 003F 3F UNASSIGNED
-F4E0 003F 3F UNASSIGNED
-F4E1 003F 3F UNASSIGNED
-F4E2 003F 3F UNASSIGNED
-F4E3 003F 3F UNASSIGNED
-F4E4 003F 3F UNASSIGNED
-F4E5 003F 3F UNASSIGNED
-F4E6 003F 3F UNASSIGNED
-F4E7 003F 3F UNASSIGNED
-F4E8 003F 3F UNASSIGNED
-F4E9 003F 3F UNASSIGNED
-F4EA 003F 3F UNASSIGNED
-F4EB 003F 3F UNASSIGNED
-F4EC 003F 3F UNASSIGNED
-F4ED 003F 3F UNASSIGNED
-F4EE 003F 3F UNASSIGNED
-F4EF 003F 3F UNASSIGNED
-F4F0 003F 3F UNASSIGNED
-F4F1 003F 3F UNASSIGNED
-F4F2 003F 3F UNASSIGNED
-F4F3 003F 3F UNASSIGNED
-F4F4 003F 3F UNASSIGNED
-F4F5 003F 3F UNASSIGNED
-F4F6 003F 3F UNASSIGNED
-F4F7 003F 3F UNASSIGNED
-F4F8 003F 3F UNASSIGNED
-F4F9 003F 3F UNASSIGNED
-F4FA 003F 3F UNASSIGNED
-F4FB 003F 3F UNASSIGNED
-F4FC 003F 3F UNASSIGNED
-F4FD 003F 3F UNASSIGNED
-F4FE 003F 3F UNASSIGNED
-drop table t1;
-drop table t2;
-create table t1 (
-ujis varchar(1) character set ujis,
-name varchar(64),
-ucs2 varchar(1) character set ucs2,
-ujis2 varchar(1) character set ujis
-);
-insert into t1 (ujis,name) values (0x5C, 'U+005C REVERSE SOLIDUS');
-insert into t1 (ujis,name) values (0x7E, 'U+007E TILDE');
-insert into t1 (ujis,name) values (0xA1B1, 'U+FFE3 FULLWIDTH MACRON');
-insert into t1 (ujis,name) values (0xA1BD, 'U+2015 HORIZONTAL BAR');
-insert into t1 (ujis,name) values (0xA1C0, 'U+005C REVERSE SOLIDUS');
-insert into t1 (ujis,name) values (0xA1C1, 'U+301C WAVE DASH');
-insert into t1 (ujis,name) values (0xA1C2, 'U+2016 DOUBLE VERTICAL LINE');
-insert into t1 (ujis,name) values (0xA1DD, 'U+2212 MINUS SIGN');
-insert into t1 (ujis,name) values (0xA1F1, 'U+00A2 CENT SIGN');
-insert into t1 (ujis,name) values (0xA1F2, 'U+00A3 POUND SIGN');
-insert into t1 (ujis,name) values (0xA1EF, 'U+FFE5 FULLWIDTH YEN SIGN');
-insert into t1 (ujis,name) values (0xA2CC, 'U+00AC NOT SIGN');
-insert into t1 (ujis,name) values (0x8FA2B7, 'U+007E TILDE');
-insert into t1 (ujis,name) values (0x8FA2C3, 'U+00A6 BROKEN BAR');
-update t1 set ucs2=ujis, ujis2=ucs2;
-select hex(ujis), hex(ucs2), hex(ujis2), name from t1;
-hex(ujis) hex(ucs2) hex(ujis2) name
-5C 005C 5C U+005C REVERSE SOLIDUS
-7E 007E 7E U+007E TILDE
-A1B1 FFE3 A1B1 U+FFE3 FULLWIDTH MACRON
-A1BD 2015 A1BD U+2015 HORIZONTAL BAR
-A1C0 005C 5C U+005C REVERSE SOLIDUS
-A1C1 301C A1C1 U+301C WAVE DASH
-A1C2 2016 A1C2 U+2016 DOUBLE VERTICAL LINE
-A1DD 2212 A1DD U+2212 MINUS SIGN
-A1F1 00A2 A1F1 U+00A2 CENT SIGN
-A1F2 00A3 A1F2 U+00A3 POUND SIGN
-A1EF FFE5 A1EF U+FFE5 FULLWIDTH YEN SIGN
-A2CC 00AC A2CC U+00AC NOT SIGN
-8FA2B7 007E 7E U+007E TILDE
-8FA2C3 00A6 8FA2C3 U+00A6 BROKEN BAR
-drop table t1;
-create table t1 (
-ujis char(1) character set ujis,
-ucs2 char(1) character set ucs2,
-name char(64)
-);
-insert into t1 (ucs2,name) values (0x00A5,'U+00A5 YEN SIGN');
-insert into t1 (ucs2,name) values (0x2014,'U+2014 EM DASH');
-insert into t1 (ucs2,name) values (0x203E,'U+203E OVERLINE');
-insert into t1 (ucs2,name) values (0x2225,'U+2225 PARALLEL TO');
-insert into t1 (ucs2,name) values (0xFF0D,'U+FF0D FULLWIDTH HYPHEN-MINUS');
-insert into t1 (ucs2,name) values (0xFF3C,'U+FF3C FULLWIDTH REVERSE SOLIDUS');
-insert into t1 (ucs2,name) values (0xFF5E,'U+FF5E FULLWIDTH TILDE');
-insert into t1 (ucs2,name) values (0xFFE0,'U+FFE0 FULLWIDTH CENT SIGN');
-insert into t1 (ucs2,name) values (0xFFE1,'U+FFE1 FULLWIDTH POUND SIGN');
-insert into t1 (ucs2,name) values (0xFFE2,'U+FFE2 FULLWIDTH NOT SIGN');
-insert into t1 (ucs2,name) values (0xFFE4,'U+FFE4 FULLWIDTH BROKEN BAR');
-update ignore t1 set ujis=ucs2;
-Warnings:
-Warning 1366 Incorrect string value: '\x00\xA5' for column 'ujis' at row 1
-Warning 1366 Incorrect string value: '\x20\x14' for column 'ujis' at row 2
-Warning 1366 Incorrect string value: '\x20\x3E' for column 'ujis' at row 3
-Warning 1366 Incorrect string value: '\x22\x25' for column 'ujis' at row 4
-Warning 1366 Incorrect string value: '\xFF\x0D' for column 'ujis' at row 5
-Warning 1366 Incorrect string value: '\xFF\x3C' for column 'ujis' at row 6
-Warning 1366 Incorrect string value: '\xFF\x5E' for column 'ujis' at row 7
-Warning 1366 Incorrect string value: '\xFF\xE0' for column 'ujis' at row 8
-Warning 1366 Incorrect string value: '\xFF\xE1' for column 'ujis' at row 9
-Warning 1366 Incorrect string value: '\xFF\xE2' for column 'ujis' at row 10
-Warning 1366 Incorrect string value: '\xFF\xE4' for column 'ujis' at row 11
-select hex(ucs2),hex(ujis),name from t1 order by name;
-hex(ucs2) hex(ujis) name
-00A5 3F U+00A5 YEN SIGN
-2014 3F U+2014 EM DASH
-203E 3F U+203E OVERLINE
-2225 3F U+2225 PARALLEL TO
-FF0D 3F U+FF0D FULLWIDTH HYPHEN-MINUS
-FF3C 3F U+FF3C FULLWIDTH REVERSE SOLIDUS
-FF5E 3F U+FF5E FULLWIDTH TILDE
-FFE0 3F U+FFE0 FULLWIDTH CENT SIGN
-FFE1 3F U+FFE1 FULLWIDTH POUND SIGN
-FFE2 3F U+FFE2 FULLWIDTH NOT SIGN
-FFE4 3F U+FFE4 FULLWIDTH BROKEN BAR
-drop table t1;
-End of 5.1 tests
diff --git a/mysql-test/r/ctype_upgrade.result b/mysql-test/r/ctype_upgrade.result
deleted file mode 100644
index 5f0be66f8fb..00000000000
--- a/mysql-test/r/ctype_upgrade.result
+++ /dev/null
@@ -1,401 +0,0 @@
-call mtr.add_suppression("Table rebuild required");
-#
-# Upgrade from Maria-5.3.13:
-# Checking utf8_croatian_ci in a VARCHAR column
-#
-# Copying maria050313_utf8_croatian_ci.* to MYSQLD_DATADIR
-CHECK TABLE maria050313_utf8_croatian_ci FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.maria050313_utf8_croatian_ci check error Upgrade required. Please do "REPAIR TABLE `maria050313_utf8_croatian_ci`" or dump/reload to fix it!
-SHOW CREATE TABLE maria050313_utf8_croatian_ci;
-ERROR HY000: Table rebuild required. Please do "ALTER TABLE `test.maria050313_utf8_croatian_ci` FORCE" or dump/reload to fix it!
-REPAIR TABLE maria050313_utf8_croatian_ci;
-Table Op Msg_type Msg_text
-test.maria050313_utf8_croatian_ci repair status OK
-CHECK TABLE maria050313_utf8_croatian_ci FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.maria050313_utf8_croatian_ci check status OK
-SHOW CREATE TABLE maria050313_utf8_croatian_ci;
-Table Create Table
-maria050313_utf8_croatian_ci CREATE TABLE `maria050313_utf8_croatian_ci` (
- `a` varchar(10) CHARACTER SET utf8 COLLATE utf8_croatian_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT count(*) FROM maria050313_utf8_croatian_ci;
-count(*)
-4
-DROP TABLE maria050313_utf8_croatian_ci;
-# Copying maria050313_utf8_croatian_ci.* to MYSQLD_DATADIR
-ALTER TABLE maria050313_utf8_croatian_ci FORCE;
-SHOW CREATE TABLE maria050313_utf8_croatian_ci;
-Table Create Table
-maria050313_utf8_croatian_ci CREATE TABLE `maria050313_utf8_croatian_ci` (
- `a` varchar(10) CHARACTER SET utf8 COLLATE utf8_croatian_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT GROUP_CONCAT(a ORDER BY BINARY a) FROM maria050313_utf8_croatian_ci GROUP BY a;
-GROUP_CONCAT(a ORDER BY BINARY a)
-nJ
-NJ,Nj,nj
-DROP TABLE maria050313_utf8_croatian_ci;
-#
-# Upgrade from Maria-5.3.13:
-# Checking ucs2_croatian_ci in the table default collation
-#
-# Copying maria050313_ucs2_croatian_ci.* to MYSQLD_DATADIR
-CHECK TABLE maria050313_ucs2_croatian_ci_def FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.maria050313_ucs2_croatian_ci_def check error Upgrade required. Please do "REPAIR TABLE `maria050313_ucs2_croatian_ci_def`" or dump/reload to fix it!
-SELECT count(*) FROM maria050313_ucs2_croatian_ci_def;
-ERROR HY000: Table rebuild required. Please do "ALTER TABLE `test.maria050313_ucs2_croatian_ci_def` FORCE" or dump/reload to fix it!
-REPAIR TABLE maria050313_ucs2_croatian_ci_def;
-Table Op Msg_type Msg_text
-test.maria050313_ucs2_croatian_ci_def repair status OK
-SHOW CREATE TABLE maria050313_ucs2_croatian_ci_def;
-Table Create Table
-maria050313_ucs2_croatian_ci_def CREATE TABLE `maria050313_ucs2_croatian_ci_def` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_croatian_ci
-DROP TABLE maria050313_ucs2_croatian_ci_def;
-# Copying maria050313_ucs2_croatian_ci.* to MYSQLD_DATADIR
-CHECK TABLE maria050313_ucs2_croatian_ci_def;
-Table Op Msg_type Msg_text
-test.maria050313_ucs2_croatian_ci_def check error Upgrade required. Please do "REPAIR TABLE `maria050313_ucs2_croatian_ci_def`" or dump/reload to fix it!
-REPAIR TABLE maria050313_ucs2_croatian_ci_def;
-Table Op Msg_type Msg_text
-test.maria050313_ucs2_croatian_ci_def repair status OK
-CHECK TABLE maria050313_ucs2_croatian_ci_def;
-Table Op Msg_type Msg_text
-test.maria050313_ucs2_croatian_ci_def check status OK
-SHOW CREATE TABLE maria050313_ucs2_croatian_ci_def;
-Table Create Table
-maria050313_ucs2_croatian_ci_def CREATE TABLE `maria050313_ucs2_croatian_ci_def` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_croatian_ci
-SELECT * FROM maria050313_ucs2_croatian_ci_def ORDER BY a;
-a
-1
-2
-3
-DROP TABLE maria050313_ucs2_croatian_ci_def;
-#
-# Upgrade from Maria-5.5.33
-# Checking utf8_croatian_ci, utf8mb4_croatian_ci, ucs2_croatian_ci,
-# utf16_croatian_ci, utf32_croatian_ci
-#
-# Copying maria050533_xxx_croatian_ci.* to MYSQLD_DATADIR
-CHECK TABLE maria050533_xxx_croatian_ci FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.maria050533_xxx_croatian_ci check error Upgrade required. Please do "REPAIR TABLE `maria050533_xxx_croatian_ci`" or dump/reload to fix it!
-REPAIR TABLE maria050533_xxx_croatian_ci;
-Table Op Msg_type Msg_text
-test.maria050533_xxx_croatian_ci repair status OK
-SHOW CREATE TABLE maria050533_xxx_croatian_ci;
-Table Create Table
-maria050533_xxx_croatian_ci CREATE TABLE `maria050533_xxx_croatian_ci` (
- `a` varchar(10) CHARACTER SET utf8 COLLATE utf8_croatian_ci DEFAULT NULL,
- `b` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_croatian_ci DEFAULT NULL,
- `c` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_croatian_ci DEFAULT NULL,
- `d` varchar(10) CHARACTER SET utf16 COLLATE utf16_croatian_ci DEFAULT NULL,
- `e` varchar(10) CHARACTER SET utf32 COLLATE utf32_croatian_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT count(*) FROM maria050533_xxx_croatian_ci;
-count(*)
-4
-DROP TABLE maria050533_xxx_croatian_ci;
-# Copying maria050533_xxx_croatian_ci.* to MYSQLD_DATADIR
-ALTER TABLE maria050533_xxx_croatian_ci FORCE;
-SHOW CREATE TABLE maria050533_xxx_croatian_ci;
-Table Create Table
-maria050533_xxx_croatian_ci CREATE TABLE `maria050533_xxx_croatian_ci` (
- `a` varchar(10) CHARACTER SET utf8 COLLATE utf8_croatian_ci DEFAULT NULL,
- `b` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_croatian_ci DEFAULT NULL,
- `c` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_croatian_ci DEFAULT NULL,
- `d` varchar(10) CHARACTER SET utf16 COLLATE utf16_croatian_ci DEFAULT NULL,
- `e` varchar(10) CHARACTER SET utf32 COLLATE utf32_croatian_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT GROUP_CONCAT(a ORDER BY BINARY a) FROM maria050533_xxx_croatian_ci GROUP BY a;
-GROUP_CONCAT(a ORDER BY BINARY a)
-nJ
-NJ,Nj,nj
-SELECT GROUP_CONCAT(b ORDER BY BINARY b) FROM maria050533_xxx_croatian_ci GROUP BY b;
-GROUP_CONCAT(b ORDER BY BINARY b)
-nJ
-NJ,Nj,nj
-SELECT GROUP_CONCAT(c ORDER BY BINARY c) FROM maria050533_xxx_croatian_ci GROUP BY c;
-GROUP_CONCAT(c ORDER BY BINARY c)
-nJ
-NJ,Nj,nj
-SELECT GROUP_CONCAT(d ORDER BY BINARY d) FROM maria050533_xxx_croatian_ci GROUP BY d;
-GROUP_CONCAT(d ORDER BY BINARY d)
-nJ
-NJ,Nj,nj
-SELECT GROUP_CONCAT(e ORDER BY BINARY e) FROM maria050533_xxx_croatian_ci GROUP BY e;
-GROUP_CONCAT(e ORDER BY BINARY e)
-nJ
-NJ,Nj,nj
-DROP TABLE maria050533_xxx_croatian_ci;
-#
-# Upgrade from Maria-10.0.4
-# Checking utf8_croatian_ci, utf8mb4_croatian_ci, ucs2_croatian_ci,
-# utf16_croatian_ci, utf32_croatian_ci
-#
-# Copying maria100004_xxx_croatian_ci.* to MYSQLD_DATADIR
-CHECK TABLE maria100004_xxx_croatian_ci FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.maria100004_xxx_croatian_ci check error Upgrade required. Please do "REPAIR TABLE `maria100004_xxx_croatian_ci`" or dump/reload to fix it!
-SELECT count(*) FROM maria100004_xxx_croatian_ci;
-ERROR HY000: Table rebuild required. Please do "ALTER TABLE `test.maria100004_xxx_croatian_ci` FORCE" or dump/reload to fix it!
-REPAIR TABLE maria100004_xxx_croatian_ci;
-Table Op Msg_type Msg_text
-test.maria100004_xxx_croatian_ci repair status OK
-SHOW CREATE TABLE maria100004_xxx_croatian_ci;
-Table Create Table
-maria100004_xxx_croatian_ci CREATE TABLE `maria100004_xxx_croatian_ci` (
- `a` varchar(10) COLLATE utf8_croatian_ci DEFAULT NULL,
- `b` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_croatian_ci DEFAULT NULL,
- `c` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_croatian_ci DEFAULT NULL,
- `d` varchar(10) CHARACTER SET utf16 COLLATE utf16_croatian_ci DEFAULT NULL,
- `e` varchar(10) CHARACTER SET utf32 COLLATE utf32_croatian_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_croatian_ci
-DROP TABLE maria100004_xxx_croatian_ci;
-# Copying maria100004_xxx_croatian_ci.* to MYSQLD_DATADIR
-ALTER TABLE maria100004_xxx_croatian_ci FORCE;
-SHOW CREATE TABLE maria100004_xxx_croatian_ci;
-Table Create Table
-maria100004_xxx_croatian_ci CREATE TABLE `maria100004_xxx_croatian_ci` (
- `a` varchar(10) COLLATE utf8_croatian_ci DEFAULT NULL,
- `b` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_croatian_ci DEFAULT NULL,
- `c` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_croatian_ci DEFAULT NULL,
- `d` varchar(10) CHARACTER SET utf16 COLLATE utf16_croatian_ci DEFAULT NULL,
- `e` varchar(10) CHARACTER SET utf32 COLLATE utf32_croatian_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_croatian_ci
-SELECT GROUP_CONCAT(a ORDER BY BINARY a) FROM maria100004_xxx_croatian_ci GROUP BY a;
-GROUP_CONCAT(a ORDER BY BINARY a)
-nJ
-NJ,Nj,nj
-SELECT GROUP_CONCAT(b ORDER BY BINARY b) FROM maria100004_xxx_croatian_ci GROUP BY b;
-GROUP_CONCAT(b ORDER BY BINARY b)
-nJ
-NJ,Nj,nj
-SELECT GROUP_CONCAT(c ORDER BY BINARY c) FROM maria100004_xxx_croatian_ci GROUP BY c;
-GROUP_CONCAT(c ORDER BY BINARY c)
-nJ
-NJ,Nj,nj
-SELECT GROUP_CONCAT(d ORDER BY BINARY d) FROM maria100004_xxx_croatian_ci GROUP BY d;
-GROUP_CONCAT(d ORDER BY BINARY d)
-nJ
-NJ,Nj,nj
-SELECT GROUP_CONCAT(e ORDER BY BINARY e) FROM maria100004_xxx_croatian_ci GROUP BY e;
-GROUP_CONCAT(e ORDER BY BINARY e)
-nJ
-NJ,Nj,nj
-DROP TABLE maria100004_xxx_croatian_ci;
-#
-# Upgrade from MySQL-5.6.14
-# Checking utf8_croatian_ci, utf8mb4_croatian_ci, ucs2_croatian_ci,
-# utf16_croatian_ci, utf32_croatian_ci
-#
-# Copying mysql050614_xxx_croatian_ci.* to MYSQLD_DATADIR
-CHECK TABLE mysql050614_xxx_croatian_ci FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.mysql050614_xxx_croatian_ci check status OK
-SHOW CREATE TABLE mysql050614_xxx_croatian_ci;
-Table Create Table
-mysql050614_xxx_croatian_ci CREATE TABLE `mysql050614_xxx_croatian_ci` (
- `a` varchar(10) COLLATE utf8_croatian_mysql561_ci DEFAULT NULL,
- `b` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_croatian_mysql561_ci DEFAULT NULL,
- `c` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_croatian_mysql561_ci DEFAULT NULL,
- `d` varchar(10) CHARACTER SET utf16 COLLATE utf16_croatian_mysql561_ci DEFAULT NULL,
- `e` varchar(10) CHARACTER SET utf32 COLLATE utf32_croatian_mysql561_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_croatian_mysql561_ci
-SELECT GROUP_CONCAT(a ORDER BY BINARY a) FROM mysql050614_xxx_croatian_ci GROUP BY a;
-GROUP_CONCAT(a ORDER BY BINARY a)
-NJ,Nj,nJ,nj
-SELECT GROUP_CONCAT(b ORDER BY BINARY b) FROM mysql050614_xxx_croatian_ci GROUP BY b;
-GROUP_CONCAT(b ORDER BY BINARY b)
-NJ,Nj,nJ,nj
-SELECT GROUP_CONCAT(c ORDER BY BINARY c) FROM mysql050614_xxx_croatian_ci GROUP BY c;
-GROUP_CONCAT(c ORDER BY BINARY c)
-NJ,Nj,nJ,nj
-SELECT GROUP_CONCAT(d ORDER BY BINARY d) FROM mysql050614_xxx_croatian_ci GROUP BY d;
-GROUP_CONCAT(d ORDER BY BINARY d)
-NJ,Nj,nJ,nj
-SELECT GROUP_CONCAT(e ORDER BY BINARY e) FROM mysql050614_xxx_croatian_ci GROUP BY e;
-GROUP_CONCAT(e ORDER BY BINARY e)
-NJ,Nj,nJ,nj
-DROP TABLE mysql050614_xxx_croatian_ci;
-#
-# Checking mysql_upgrade
-#
-# Running mysql_upgrade
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-test.maria050313_ucs2_croatian_ci_def Needs upgrade
-test.maria050313_utf8_croatian_ci Needs upgrade
-test.maria050533_xxx_croatian_ci Needs upgrade
-test.maria100004_xxx_croatian_ci Needs upgrade
-test.mysql050614_xxx_croatian_ci OK
-
-Repairing tables
-test.maria050313_ucs2_croatian_ci_def OK
-test.maria050313_utf8_croatian_ci OK
-test.maria050533_xxx_croatian_ci OK
-test.maria100004_xxx_croatian_ci OK
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-# Running mysql_upgrade for the second time
-# This should report OK for all tables
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-test.maria050313_ucs2_croatian_ci_def OK
-test.maria050313_utf8_croatian_ci OK
-test.maria050533_xxx_croatian_ci OK
-test.maria100004_xxx_croatian_ci OK
-test.mysql050614_xxx_croatian_ci OK
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-SHOW CREATE TABLE maria050313_ucs2_croatian_ci_def;
-Table Create Table
-maria050313_ucs2_croatian_ci_def CREATE TABLE `maria050313_ucs2_croatian_ci_def` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_croatian_ci
-SELECT * FROM maria050313_ucs2_croatian_ci_def ORDER BY a;
-a
-1
-2
-3
-SHOW CREATE TABLE maria050313_utf8_croatian_ci;
-Table Create Table
-maria050313_utf8_croatian_ci CREATE TABLE `maria050313_utf8_croatian_ci` (
- `a` varchar(10) CHARACTER SET utf8 COLLATE utf8_croatian_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT GROUP_CONCAT(a ORDER BY BINARY a) FROM maria050313_utf8_croatian_ci GROUP BY a;
-GROUP_CONCAT(a ORDER BY BINARY a)
-nJ
-NJ,Nj,nj
-SHOW CREATE TABLE maria050533_xxx_croatian_ci;
-Table Create Table
-maria050533_xxx_croatian_ci CREATE TABLE `maria050533_xxx_croatian_ci` (
- `a` varchar(10) CHARACTER SET utf8 COLLATE utf8_croatian_ci DEFAULT NULL,
- `b` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_croatian_ci DEFAULT NULL,
- `c` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_croatian_ci DEFAULT NULL,
- `d` varchar(10) CHARACTER SET utf16 COLLATE utf16_croatian_ci DEFAULT NULL,
- `e` varchar(10) CHARACTER SET utf32 COLLATE utf32_croatian_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT GROUP_CONCAT(a ORDER BY BINARY a) FROM maria050533_xxx_croatian_ci GROUP BY a;
-GROUP_CONCAT(a ORDER BY BINARY a)
-nJ
-NJ,Nj,nj
-SHOW CREATE TABLE maria100004_xxx_croatian_ci;
-Table Create Table
-maria100004_xxx_croatian_ci CREATE TABLE `maria100004_xxx_croatian_ci` (
- `a` varchar(10) COLLATE utf8_croatian_ci DEFAULT NULL,
- `b` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_croatian_ci DEFAULT NULL,
- `c` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_croatian_ci DEFAULT NULL,
- `d` varchar(10) CHARACTER SET utf16 COLLATE utf16_croatian_ci DEFAULT NULL,
- `e` varchar(10) CHARACTER SET utf32 COLLATE utf32_croatian_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_croatian_ci
-SELECT GROUP_CONCAT(a ORDER BY BINARY a) FROM maria100004_xxx_croatian_ci GROUP BY a;
-GROUP_CONCAT(a ORDER BY BINARY a)
-nJ
-NJ,Nj,nj
-SHOW CREATE TABLE mysql050614_xxx_croatian_ci;
-Table Create Table
-mysql050614_xxx_croatian_ci CREATE TABLE `mysql050614_xxx_croatian_ci` (
- `a` varchar(10) COLLATE utf8_croatian_mysql561_ci DEFAULT NULL,
- `b` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_croatian_mysql561_ci DEFAULT NULL,
- `c` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_croatian_mysql561_ci DEFAULT NULL,
- `d` varchar(10) CHARACTER SET utf16 COLLATE utf16_croatian_mysql561_ci DEFAULT NULL,
- `e` varchar(10) CHARACTER SET utf32 COLLATE utf32_croatian_mysql561_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_croatian_mysql561_ci
-SELECT GROUP_CONCAT(a ORDER BY BINARY a) FROM mysql050614_xxx_croatian_ci GROUP BY a;
-GROUP_CONCAT(a ORDER BY BINARY a)
-NJ,Nj,nJ,nj
-DROP TABLE maria050313_ucs2_croatian_ci_def;
-DROP TABLE maria050313_utf8_croatian_ci;
-DROP TABLE maria050533_xxx_croatian_ci;
-DROP TABLE maria100004_xxx_croatian_ci;
-DROP TABLE mysql050614_xxx_croatian_ci;
diff --git a/mysql-test/r/ctype_utf16.result b/mysql-test/r/ctype_utf16.result
deleted file mode 100644
index 8de21a14bd9..00000000000
--- a/mysql-test/r/ctype_utf16.result
+++ /dev/null
@@ -1,2781 +0,0 @@
-SET TIME_ZONE='+03:00';
-DROP TABLE IF EXISTS t1;
-#
-# Start of 5.5 tests
-#
-SET NAMES latin1;
-SET character_set_connection=utf16;
-select hex('a'), hex('a ');
-hex('a') hex('a ')
-0061 00610020
-select 'a' = 'a', 'a' = 'a ', 'a ' = 'a';
-'a' = 'a' 'a' = 'a ' 'a ' = 'a'
-1 1 1
-select 'a\0' = 'a', 'a\0' < 'a', 'a\0' > 'a';
-'a\0' = 'a' 'a\0' < 'a' 'a\0' > 'a'
-0 1 0
-select 'a' = 'a\0', 'a' < 'a\0', 'a' > 'a\0';
-'a' = 'a\0' 'a' < 'a\0' 'a' > 'a\0'
-0 0 1
-select 'a\0' = 'a ', 'a\0' < 'a ', 'a\0' > 'a ';
-'a\0' = 'a ' 'a\0' < 'a ' 'a\0' > 'a '
-0 1 0
-select 'a ' = 'a\0', 'a ' < 'a\0', 'a ' > 'a\0';
-'a ' = 'a\0' 'a ' < 'a\0' 'a ' > 'a\0'
-0 0 1
-select 'a a' > 'a', 'a \0' < 'a';
-'a a' > 'a' 'a \0' < 'a'
-1 1
-select binary 'a a' > 'a', binary 'a \0' > 'a', binary 'a\0' > 'a';
-binary 'a a' > 'a' binary 'a \0' > 'a' binary 'a\0' > 'a'
-1 1 1
-select hex(_utf16 0x44);
-hex(_utf16 0x44)
-0044
-select hex(_utf16 0x3344);
-hex(_utf16 0x3344)
-3344
-select hex(_utf16 0x113344);
-hex(_utf16 0x113344)
-00113344
-CREATE TABLE t1 (word VARCHAR(64), word2 CHAR(64)) CHARACTER SET utf16;
-INSERT INTO t1 VALUES (_koi8r 0xF2, _koi8r 0xF2), (X'2004',X'2004');
-SELECT hex(word) FROM t1 ORDER BY word;
-hex(word)
-0420
-2004
-SELECT hex(word2) FROM t1 ORDER BY word2;
-hex(word2)
-0420
-2004
-DELETE FROM t1;
-INSERT INTO t1 VALUES (X'042000200020',X'042000200020'), (X'200400200020', X'200400200020');
-SELECT hex(word) FROM t1 ORDER BY word;
-hex(word)
-042000200020
-200400200020
-SELECT hex(word2) FROM t1 ORDER BY word2;
-hex(word2)
-0420
-2004
-DROP TABLE t1;
-SELECT hex(LPAD(_utf16 X'0420',10,_utf16 X'0421'));
-hex(LPAD(_utf16 X'0420',10,_utf16 X'0421'))
-0421042104210421042104210421042104210420
-SELECT hex(LPAD(_utf16 X'0420',10,_utf16 X'04210422'));
-hex(LPAD(_utf16 X'0420',10,_utf16 X'04210422'))
-0421042204210422042104220421042204210420
-SELECT hex(LPAD(_utf16 X'0420',10,_utf16 X'042104220423'));
-hex(LPAD(_utf16 X'0420',10,_utf16 X'042104220423'))
-0421042204230421042204230421042204230420
-SELECT hex(LPAD(_utf16 X'0420042104220423042404250426042704280429042A042B',10,_utf16 X'042104220423'));
-hex(LPAD(_utf16 X'0420042104220423042404250426042704280429042A042B',10,_utf16 X'042104220423'))
-0420042104220423042404250426042704280429
-SELECT hex(LPAD(_utf16 X'D800DC00', 10, _utf16 X'0421'));
-hex(LPAD(_utf16 X'D800DC00', 10, _utf16 X'0421'))
-042104210421042104210421042104210421D800DC00
-SELECT hex(LPAD(_utf16 X'0421', 10, _utf16 X'D800DC00'));
-hex(LPAD(_utf16 X'0421', 10, _utf16 X'D800DC00'))
-D800DC00D800DC00D800DC00D800DC00D800DC00D800DC00D800DC00D800DC00D800DC000421
-SELECT hex(RPAD(_utf16 X'0420',10,_utf16 X'0421'));
-hex(RPAD(_utf16 X'0420',10,_utf16 X'0421'))
-0420042104210421042104210421042104210421
-SELECT hex(RPAD(_utf16 X'0420',10,_utf16 X'04210422'));
-hex(RPAD(_utf16 X'0420',10,_utf16 X'04210422'))
-0420042104220421042204210422042104220421
-SELECT hex(RPAD(_utf16 X'0420',10,_utf16 X'042104220423'));
-hex(RPAD(_utf16 X'0420',10,_utf16 X'042104220423'))
-0420042104220423042104220423042104220423
-SELECT hex(RPAD(_utf16 X'0420042104220423042404250426042704280429042A042B',10,_utf16 X'042104220423'));
-hex(RPAD(_utf16 X'0420042104220423042404250426042704280429042A042B',10,_utf16 X'042104220423'))
-0420042104220423042404250426042704280429
-SELECT hex(RPAD(_utf16 X'D800DC00', 10, _utf16 X'0421'));
-hex(RPAD(_utf16 X'D800DC00', 10, _utf16 X'0421'))
-D800DC00042104210421042104210421042104210421
-SELECT hex(RPAD(_utf16 X'0421', 10, _utf16 X'D800DC00'));
-hex(RPAD(_utf16 X'0421', 10, _utf16 X'D800DC00'))
-0421D800DC00D800DC00D800DC00D800DC00D800DC00D800DC00D800DC00D800DC00D800DC00
-CREATE TABLE t1 SELECT
-LPAD(_utf16 X'0420',10,_utf16 X'0421') l,
-RPAD(_utf16 X'0420',10,_utf16 X'0421') r;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `l` varchar(10) CHARACTER SET utf16 DEFAULT NULL,
- `r` varchar(10) CHARACTER SET utf16 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(l), hex(r) from t1;
-hex(l) hex(r)
-0421042104210421042104210421042104210420 0420042104210421042104210421042104210421
-DROP TABLE t1;
-create table t1 (f1 char(30));
-insert into t1 values ("103000"), ("22720000"), ("3401200"), ("78000");
-select lpad(f1, 12, "-o-/") from t1;
-lpad(f1, 12, "-o-/")
--o-/-o103000
--o-/22720000
--o-/-3401200
--o-/-o-78000
-drop table t1;
-SET NAMES latin1;
-SET character_set_connection=utf16;
-select @@collation_connection;
-@@collation_connection
-utf16_general_ci
-create table t1 as select repeat(' ',10) as a union select null;
-alter table t1 add key(a);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf16 DEFAULT NULL,
- KEY `a` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
-explain select * from t1 where a like 'abc%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 43 NULL 1 Using where; Using index
-explain select * from t1 where a like concat('abc','%');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 43 NULL 1 Using where; Using index
-select * from t1 where a like "abc%";
-a
-abc
-abcd
-select * from t1 where a like concat("abc","%");
-a
-abc
-abcd
-select * from t1 where a like "ABC%";
-a
-abc
-abcd
-select * from t1 where a like "test%";
-a
-test
-select * from t1 where a like "te_t";
-a
-test
-select * from t1 where a like "%a%";
-a
-a
-abc
-abcd
-select * from t1 where a like "%abcd%";
-a
-abcd
-select * from t1 where a like "%abc\d%";
-a
-abcd
-drop table t1;
-select 'AA' like 'AA';
-'AA' like 'AA'
-1
-select 'AA' like 'A%A';
-'AA' like 'A%A'
-1
-select 'AA' like 'A%%A';
-'AA' like 'A%%A'
-1
-select 'AA' like 'AA%';
-'AA' like 'AA%'
-1
-select 'AA' like '%AA%';
-'AA' like '%AA%'
-1
-select 'AA' like '%A';
-'AA' like '%A'
-1
-select 'AA' like '%AA';
-'AA' like '%AA'
-1
-select 'AA' like 'A%A%';
-'AA' like 'A%A%'
-1
-select 'AA' like '_%_%';
-'AA' like '_%_%'
-1
-select 'AA' like '%A%A';
-'AA' like '%A%A'
-1
-select 'AAA'like 'A%A%A';
-'AAA'like 'A%A%A'
-1
-select 'AZ' like 'AZ';
-'AZ' like 'AZ'
-1
-select 'AZ' like 'A%Z';
-'AZ' like 'A%Z'
-1
-select 'AZ' like 'A%%Z';
-'AZ' like 'A%%Z'
-1
-select 'AZ' like 'AZ%';
-'AZ' like 'AZ%'
-1
-select 'AZ' like '%AZ%';
-'AZ' like '%AZ%'
-1
-select 'AZ' like '%Z';
-'AZ' like '%Z'
-1
-select 'AZ' like '%AZ';
-'AZ' like '%AZ'
-1
-select 'AZ' like 'A%Z%';
-'AZ' like 'A%Z%'
-1
-select 'AZ' like '_%_%';
-'AZ' like '_%_%'
-1
-select 'AZ' like '%A%Z';
-'AZ' like '%A%Z'
-1
-select 'AZ' like 'A_';
-'AZ' like 'A_'
-1
-select 'AZ' like '_Z';
-'AZ' like '_Z'
-1
-select 'AMZ'like 'A%M%Z';
-'AMZ'like 'A%M%Z'
-1
-SET NAMES utf8;
-SET character_set_connection=utf16;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf16);
-INSERT INTO t1 VALUES ('фыва'),('Фыва'),('фЫва'),('фыВа'),('фывÐ'),('ФЫВÐ');
-INSERT INTO t1 VALUES ('фывапролдж'),('Фывапролдж'),('фЫвапролдж'),('фыВапролдж');
-INSERT INTO t1 VALUES ('фывÐпролдж'),('фываПролдж'),('фывапРолдж'),('фывапрОлдж');
-INSERT INTO t1 VALUES ('фывапроЛдж'),('фывапролДж'),('фывапролдЖ'),('ФЫВÐПРОЛДЖ');
-SELECT * FROM t1 WHERE a LIKE '%фЫва%' ORDER BY BINARY a;
-a
-ФЫВÐ
-ФЫВÐПРОЛДЖ
-Фыва
-Фывапролдж
-фЫва
-фЫвапролдж
-фыВа
-фыВапролдж
-фывÐ
-фывÐпролдж
-фыва
-фываПролдж
-фывапРолдж
-фывапрОлдж
-фывапроЛдж
-фывапролДж
-фывапролдЖ
-фывапролдж
-SELECT * FROM t1 WHERE a LIKE '%фЫв%' ORDER BY BINARY a;
-a
-ФЫВÐ
-ФЫВÐПРОЛДЖ
-Фыва
-Фывапролдж
-фЫва
-фЫвапролдж
-фыВа
-фыВапролдж
-фывÐ
-фывÐпролдж
-фыва
-фываПролдж
-фывапРолдж
-фывапрОлдж
-фывапроЛдж
-фывапролДж
-фывапролдЖ
-фывапролдж
-SELECT * FROM t1 WHERE a LIKE 'фЫва%' ORDER BY BINARY a;
-a
-ФЫВÐ
-ФЫВÐПРОЛДЖ
-Фыва
-Фывапролдж
-фЫва
-фЫвапролдж
-фыВа
-фыВапролдж
-фывÐ
-фывÐпролдж
-фыва
-фываПролдж
-фывапРолдж
-фывапрОлдж
-фывапроЛдж
-фывапролДж
-фывапролдЖ
-фывапролдж
-SELECT * FROM t1 WHERE a LIKE 'фЫва%' COLLATE utf16_bin ORDER BY BINARY a;
-a
-фЫва
-фЫвапролдж
-DROP TABLE t1;
-CREATE TABLE t1 (word varchar(64) NOT NULL, PRIMARY KEY (word))
-ENGINE=MyISAM CHARACTER SET utf16;
-INSERT INTO t1 (word) VALUES ("cat");
-SELECT * FROM t1 WHERE word LIKE "c%";
-word
-cat
-SELECT * FROM t1 WHERE word LIKE "ca_";
-word
-cat
-SELECT * FROM t1 WHERE word LIKE "cat";
-word
-cat
-SELECT * FROM t1 WHERE word LIKE _utf16 x'00630025';
-word
-cat
-SELECT * FROM t1 WHERE word LIKE _utf16 x'00630061005F';
-word
-cat
-DROP TABLE t1;
-select insert(_utf16 0x006100620063,10,2,_utf16 0x006400650066);
-insert(_utf16 0x006100620063,10,2,_utf16 0x006400650066)
-abc
-select insert(_utf16 0x006100620063,1,2,_utf16 0x006400650066);
-insert(_utf16 0x006100620063,1,2,_utf16 0x006400650066)
-defc
-SET NAMES latin1;
-CREATE TABLE t1 (
-word VARCHAR(64),
-bar INT(11) default 0,
-PRIMARY KEY (word))
-ENGINE=MyISAM
-CHARSET utf16
-COLLATE utf16_general_ci ;
-INSERT INTO t1 (word) VALUES ("aar");
-INSERT INTO t1 (word) VALUES ("a");
-INSERT INTO t1 (word) VALUES ("aardvar");
-INSERT INTO t1 (word) VALUES ("aardvark");
-INSERT INTO t1 (word) VALUES ("aardvara");
-INSERT INTO t1 (word) VALUES ("aardvarz");
-EXPLAIN SELECT * FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort
-SELECT * FROM t1 ORDER BY word;
-word bar
-a 0
-aar 0
-aardvar 0
-aardvara 0
-aardvark 0
-aardvarz 0
-EXPLAIN SELECT word FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 258 NULL 6 Using index
-SELECT word FROM t1 ORDER by word;
-word
-a
-aar
-aardvar
-aardvara
-aardvark
-aardvarz
-DROP TABLE t1;
-CREATE TABLE t1 (
-word VARCHAR(64) ,
-PRIMARY KEY (word))
-ENGINE=MyISAM
-CHARSET utf16
-COLLATE utf16_general_ci;
-INSERT INTO t1 (word) VALUES ("aar");
-INSERT INTO t1 (word) VALUES ("a");
-INSERT INTO t1 (word) VALUES ("aardvar");
-INSERT INTO t1 (word) VALUES ("aardvark");
-INSERT INTO t1 (word) VALUES ("aardvara");
-INSERT INTO t1 (word) VALUES ("aardvarz");
-EXPLAIN SELECT * FROM t1 ORDER BY WORD;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 258 NULL 6 Using index
-SELECT * FROM t1 ORDER BY word;
-word
-a
-aar
-aardvar
-aardvara
-aardvark
-aardvarz
-DROP TABLE t1;
-CREATE TABLE t1 (
-word TEXT,
-bar INT(11) AUTO_INCREMENT,
-PRIMARY KEY (bar))
-ENGINE=MyISAM
-CHARSET utf16
-COLLATE utf16_general_ci ;
-INSERT INTO t1 (word) VALUES ("aar");
-INSERT INTO t1 (word) VALUES ("a" );
-INSERT INTO t1 (word) VALUES ("aardvar");
-INSERT INTO t1 (word) VALUES ("aardvark");
-INSERT INTO t1 (word) VALUES ("aardvara");
-INSERT INTO t1 (word) VALUES ("aardvarz");
-EXPLAIN SELECT * FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort
-SELECT * FROM t1 ORDER BY word;
-word bar
-a 2
-aar 1
-aardvar 3
-aardvara 5
-aardvark 4
-aardvarz 6
-EXPLAIN SELECT word FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort
-SELECT word FROM t1 ORDER BY word;
-word
-a
-aar
-aardvar
-aardvara
-aardvark
-aardvarz
-DROP TABLE t1;
-SELECT hex(cast(0xAA as char character set utf16));
-hex(cast(0xAA as char character set utf16))
-00AA
-SELECT hex(convert(0xAA using utf16));
-hex(convert(0xAA using utf16))
-00AA
-CREATE TABLE t1 (a char(10) character set utf16);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-0001
-0011
-0111
-1111
-00011111
-DROP TABLE t1;
-CREATE TABLE t1 (a varchar(10) character set utf16);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-0001
-0011
-0111
-1111
-00011111
-DROP TABLE t1;
-CREATE TABLE t1 (a text character set utf16);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-0001
-0011
-0111
-1111
-00011111
-DROP TABLE t1;
-CREATE TABLE t1 (a mediumtext character set utf16);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-0001
-0011
-0111
-1111
-00011111
-DROP TABLE t1;
-CREATE TABLE t1 (a longtext character set utf16);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-0001
-0011
-0111
-1111
-00011111
-DROP TABLE t1;
-create table t1(a char(1)) default charset utf16;
-insert into t1 values ('a'),('b'),('c');
-alter table t1 modify a char(5);
-select a, hex(a) from t1;
-a hex(a)
-a 0061
-b 0062
-c 0063
-drop table t1;
-set @ivar= 1234;
-set @str1 = 'select ?';
-set @str2 = convert(@str1 using utf16);
-prepare stmt1 from @str2;
-execute stmt1 using @ivar;
-?
-1234
-set names utf8;
-create table t1 (a enum('x','y','z') character set utf16);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('x','y','z') CHARACTER SET utf16 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('x');
-insert into t1 values ('y');
-insert into t1 values ('z');
-select a, hex(a) from t1 order by a;
-a hex(a)
-x 0078
-y 0079
-z 007A
-alter table t1 change a a enum('x','y','z','d','e','ä','ö','ü') character set utf16;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('x','y','z','d','e','ä','ö','ü') CHARACTER SET utf16 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('D');
-insert into t1 values ('E ');
-insert into t1 values ('ä');
-insert into t1 values ('ö');
-insert into t1 values ('ü');
-select a, hex(a) from t1 order by a;
-a hex(a)
-x 0078
-y 0079
-z 007A
-d 0064
-e 0065
-ä 00E4
-ö 00F6
-ü 00FC
-drop table t1;
-create table t1 (a set ('x','y','z','ä','ö','ü') character set utf16);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` set('x','y','z','ä','ö','ü') CHARACTER SET utf16 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('x');
-insert into t1 values ('y');
-insert into t1 values ('z');
-insert into t1 values ('x,y');
-insert into t1 values ('x,y,z,ä,ö,ü');
-select a, hex(a) from t1 order by a;
-a hex(a)
-x 0078
-y 0079
-x,y 0078002C0079
-z 007A
-x,y,z,ä,ö,ü 0078002C0079002C007A002C00E4002C00F6002C00FC
-drop table t1;
-create table t1(a enum('a','b','c')) default character set utf16;
-insert into t1 values('a'),('b'),('c');
-alter table t1 add b char(1);
-show warnings;
-Level Code Message
-select * from t1 order by a;
-a b
-a NULL
-b NULL
-c NULL
-drop table t1;
-SET NAMES latin1;
-SET collation_connection='utf16_general_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf16_general_ci 00610009
-utf16_general_ci 0061
-utf16_general_ci 00610020
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf16_general_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf16_general_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf16_general_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-SET NAMES latin1;
-SET collation_connection='utf16_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf16_bin 00610009
-utf16_bin 0061
-utf16_bin 00610020
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf16_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf16_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-#
-# Bug#55980 Character sets: supplementary character _bin ordering is wrong
-#
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf16 COLLATE utf16_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_utf8mb4 0xEFBE9D),(_utf8mb4 0xF0908E84);
-INSERT INTO t1 VALUES (_utf8mb4 0xCE85),(_utf8mb4 0xF4808080);
-SELECT HEX(a), HEX(CONVERT(a USING utf8mb4)) FROM t1 ORDER BY a;
-HEX(a) HEX(CONVERT(a USING utf8mb4))
-0385 CE85
-FF9D EFBE9D
-D800DF84 F0908E84
-DBC0DC00 F4808080
-ALTER TABLE t1 ADD KEY(a);
-SELECT HEX(a), HEX(CONVERT(a USING utf8mb4)) FROM t1 ORDER BY a;
-HEX(a) HEX(CONVERT(a USING utf8mb4))
-0385 CE85
-FF9D EFBE9D
-D800DF84 F0908E84
-DBC0DC00 F4808080
-DROP TABLE IF EXISTS t1;
-#
-# BUG#16691598 - ORDER BY LOWER(COLUMN) PRODUCES
-# OUT-OF-ORDER RESULTS
-#
-CREATE TABLE t1 SELECT ('a a') as n;
-INSERT INTO t1 VALUES('a b');
-SELECT * FROM t1 ORDER BY LOWER(n) ASC;
-n
-a a
-a b
-SELECT * FROM t1 ORDER BY LOWER(n) DESC;
-n
-a b
-a a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf16_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-select hex(substr(_utf16 0x00e400e50068,1));
-hex(substr(_utf16 0x00e400e50068,1))
-00E400E50068
-select hex(substr(_utf16 0x00e400e50068,2));
-hex(substr(_utf16 0x00e400e50068,2))
-00E50068
-select hex(substr(_utf16 0x00e400e50068,3));
-hex(substr(_utf16 0x00e400e50068,3))
-0068
-select hex(substr(_utf16 0x00e400e50068,-1));
-hex(substr(_utf16 0x00e400e50068,-1))
-0068
-select hex(substr(_utf16 0x00e400e50068,-2));
-hex(substr(_utf16 0x00e400e50068,-2))
-00E50068
-select hex(substr(_utf16 0x00e400e50068,-3));
-hex(substr(_utf16 0x00e400e50068,-3))
-00E400E50068
-select hex(substr(_utf16 0x00e400e5D800DC00,1));
-hex(substr(_utf16 0x00e400e5D800DC00,1))
-00E400E5D800DC00
-select hex(substr(_utf16 0x00e400e5D800DC00,2));
-hex(substr(_utf16 0x00e400e5D800DC00,2))
-00E5D800DC00
-select hex(substr(_utf16 0x00e400e5D800DC00,3));
-hex(substr(_utf16 0x00e400e5D800DC00,3))
-D800DC00
-select hex(substr(_utf16 0x00e400e5D800DC00,-1));
-hex(substr(_utf16 0x00e400e5D800DC00,-1))
-D800DC00
-select hex(substr(_utf16 0x00e400e5D800DC00,-2));
-hex(substr(_utf16 0x00e400e5D800DC00,-2))
-00E5D800DC00
-select hex(substr(_utf16 0x00e400e5D800DC00,-3));
-hex(substr(_utf16 0x00e400e5D800DC00,-3))
-00E400E5D800DC00
-SET NAMES latin1;
-create table t1 (utext varchar(20) character set utf16);
-insert into t1 values ("lily");
-insert into t1 values ("river");
-prepare stmt from 'select utext from t1 where utext like ?';
-set @param1='%%';
-execute stmt using @param1;
-utext
-lily
-river
-execute stmt using @param1;
-utext
-lily
-river
-select utext from t1 where utext like '%%';
-utext
-lily
-river
-drop table t1;
-deallocate prepare stmt;
-create table t1 (
-a char(10) character set utf16 not null,
-index a (a)
-) engine=myisam;
-insert into t1 values (repeat(0x201f, 10));
-insert into t1 values (repeat(0x2020, 10));
-insert into t1 values (repeat(0x2021, 10));
-explain select hex(a) from t1 order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 40 NULL 3 Using index
-select hex(a) from t1 order by a;
-hex(a)
-201F201F201F201F201F201F201F201F201F201F
-2020202020202020202020202020202020202020
-2021202120212021202120212021202120212021
-alter table t1 drop index a;
-select hex(a) from t1 order by a;
-hex(a)
-201F201F201F201F201F201F201F201F201F201F
-2020202020202020202020202020202020202020
-2021202120212021202120212021202120212021
-drop table t1;
-CREATE TABLE t1 (
-status enum('active','passive') character set utf16 collate utf16_general_ci
-NOT NULL default 'passive'
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `status` enum('active','passive') CHARACTER SET utf16 NOT NULL DEFAULT 'passive'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 ADD a int NOT NULL AFTER status;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `status` enum('active','passive') CHARACTER SET utf16 NOT NULL DEFAULT 'passive',
- `a` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-End of 4.1 tests
-CREATE TABLE t1 (a varchar(64) character set utf16, b decimal(10,3));
-INSERT INTO t1 VALUES ("1.1", 0), ("2.1", 0);
-update t1 set b=a;
-SELECT *, hex(a) FROM t1;
-a b hex(a)
-1.1 1.100 0031002E0031
-2.1 2.100 0032002E0031
-DROP TABLE t1;
-create table t1 (utext varchar(20) character set utf16);
-insert into t1 values ("lily");
-insert into t1 values ("river");
-prepare stmt from 'select utext from t1 where utext like ?';
-set @param1='%%';
-execute stmt using @param1;
-utext
-lily
-river
-execute stmt using @param1;
-utext
-lily
-river
-select utext from t1 where utext like '%%';
-utext
-lily
-river
-drop table t1;
-deallocate prepare stmt;
-set names latin1;
-set character_set_connection=utf16;
-select soundex(''),soundex('he'),soundex('hello all folks'),soundex('#3556 in bugdb');
-soundex('') soundex('he') soundex('hello all folks') soundex('#3556 in bugdb')
- H000 H4142 I51231
-select hex(soundex('')),hex(soundex('he')),hex(soundex('hello all folks')),hex(soundex('#3556 in bugdb'));
-hex(soundex('')) hex(soundex('he')) hex(soundex('hello all folks')) hex(soundex('#3556 in bugdb'))
- 0048003000300030 00480034003100340032 004900350031003200330031
-select 'mood' sounds like 'mud';
-'mood' sounds like 'mud'
-1
-select hex(soundex(_utf16 0x041004110412));
-hex(soundex(_utf16 0x041004110412))
-0410003000300030
-select hex(soundex(_utf16 0x00BF00C0));
-hex(soundex(_utf16 0x00BF00C0))
-00C0003000300030
-set names latin1;
-create table t1(a blob, b text charset utf16);
-select data_type, character_octet_length, character_maximum_length
-from information_schema.columns where table_name='t1';
-data_type character_octet_length character_maximum_length
-blob 65535 65535
-text 65535 32767
-drop table t1;
-set names latin1;
-set collation_connection=utf16_general_ci;
-select position('bb' in 'abba');
-position('bb' in 'abba')
-2
-create table t1 (a varchar(10) character set utf16) engine=heap;
-insert into t1 values ('a'),('A'),('b'),('B');
-select * from t1 where a='a' order by binary a;
-a
-A
-a
-select hex(min(binary a)),count(*) from t1 group by a;
-hex(min(binary a)) count(*)
-0041 2
-0042 2
-drop table t1;
-select char_length('abcd'), octet_length('abcd');
-char_length('abcd') octet_length('abcd')
-4 8
-select char_length(_utf16 0xD800DC00), octet_length(_utf16 0xD800DC00);
-char_length(_utf16 0xD800DC00) octet_length(_utf16 0xD800DC00)
-1 4
-select char_length(_utf16 0xD87FDFFF), octet_length(_utf16 0xD87FDFFF);
-char_length(_utf16 0xD87FDFFF) octet_length(_utf16 0xD87FDFFF)
-1 4
-select left('abcd',2);
-left('abcd',2)
-ab
-select hex(left(_utf16 0xD800DC00D87FDFFF, 1));
-hex(left(_utf16 0xD800DC00D87FDFFF, 1))
-D800DC00
-select hex(right(_utf16 0xD800DC00D87FDFFF, 1));
-hex(right(_utf16 0xD800DC00D87FDFFF, 1))
-D87FDFFF
-create table t1 (a varchar(10) character set utf16);
-insert into t1 values (_utf16 0xD800);
-ERROR HY000: Invalid utf16 character string: 'D800'
-insert into t1 values (_utf16 0xDC00);
-ERROR HY000: Invalid utf16 character string: 'DC00'
-insert into t1 values (_utf16 0xD800D800);
-ERROR HY000: Invalid utf16 character string: 'D800D8'
-insert into t1 values (_utf16 0xD800E800);
-ERROR HY000: Invalid utf16 character string: 'D800E8'
-insert into t1 values (_utf16 0xD8000800);
-ERROR HY000: Invalid utf16 character string: 'D80008'
-insert into t1 values (_utf16 0xD800DC00);
-insert into t1 values (_utf16 0xD800DCFF);
-insert into t1 values (_utf16 0xDBFFDC00);
-insert into t1 values (_utf16 0xDBFFDCFF);
-select hex(a) from t1;
-hex(a)
-D800DC00
-D800DCFF
-DBFFDC00
-DBFFDCFF
-drop table t1;
-create table t1 (s1 varchar(50) character set ucs2);
-insert into t1 values (0xdf84);
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 modify column s1 varchar(50) character set utf16;
-Warnings:
-Warning 1366 Incorrect string value: '\xDF\x84' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-003F
-drop table t1;
-create table t1 (s1 varchar(5) character set ucs2, s2 varchar(5) character set utf16);
-insert into t1 (s1) values (0xdf84);
-update ignore t1 set s2 = s1;
-Warnings:
-Warning 1366 Incorrect string value: '\xDF\x84' for column 's2' at row 1
-select hex(s2) from t1;
-hex(s2)
-003F
-drop table t1;
-create table t1 (a char(10)) character set utf16;
-insert into t1 values ('a ');
-select hex(a) from t1;
-hex(a)
-0061
-drop table t1;
-select upper('abcd'), lower('ABCD');
-upper('abcd') lower('ABCD')
-ABCD abcd
-create table t1 (a varchar(10) character set utf16);
-insert into t1 values (123456);
-select a, hex(a) from t1;
-a hex(a)
-123456 003100320033003400350036
-drop table t1;
-select hex(soundex('a'));
-hex(soundex('a'))
-0041003000300030
-create table t1 (a enum ('a','b','c')) character set utf16;
-insert into t1 values ('1');
-select * from t1;
-a
-a
-drop table t1;
-set names latin1;
-select hex(conv(convert('123' using utf16), -10, 16));
-hex(conv(convert('123' using utf16), -10, 16))
-3742
-select hex(conv(convert('123' using utf16), 10, 16));
-hex(conv(convert('123' using utf16), 10, 16))
-3742
-set names latin1;
-set character_set_connection=utf16;
-select 1.1 + '1.2';
-1.1 + '1.2'
-2.3
-select 1.1 + '1.2xxx';
-1.1 + '1.2xxx'
-2.3
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1.2xxx'
-select left('aaa','1');
-left('aaa','1')
-a
-#
-# Testing cs->cset->strtoll10()
-#
-SELECT @@character_set_connection;
-@@character_set_connection
-utf16
-SELECT CAST('1' AS UNSIGNED);
-CAST('1' AS UNSIGNED)
-1
-SELECT CAST('12' AS UNSIGNED);
-CAST('12' AS UNSIGNED)
-12
-SELECT CAST('123' AS UNSIGNED);
-CAST('123' AS UNSIGNED)
-123
-SELECT CAST('1234' AS UNSIGNED);
-CAST('1234' AS UNSIGNED)
-1234
-SELECT CAST('12345' AS UNSIGNED);
-CAST('12345' AS UNSIGNED)
-12345
-SELECT CAST('123456' AS UNSIGNED);
-CAST('123456' AS UNSIGNED)
-123456
-SELECT CAST('1234567' AS UNSIGNED);
-CAST('1234567' AS UNSIGNED)
-1234567
-SELECT CAST('12345678' AS UNSIGNED);
-CAST('12345678' AS UNSIGNED)
-12345678
-SELECT CAST('123456789' AS UNSIGNED);
-CAST('123456789' AS UNSIGNED)
-123456789
-SELECT CAST('1234567891' AS UNSIGNED);
-CAST('1234567891' AS UNSIGNED)
-1234567891
-SELECT CAST('12345678912' AS UNSIGNED);
-CAST('12345678912' AS UNSIGNED)
-12345678912
-SELECT CAST('123456789123' AS UNSIGNED);
-CAST('123456789123' AS UNSIGNED)
-123456789123
-SELECT CAST('1234567891234' AS UNSIGNED);
-CAST('1234567891234' AS UNSIGNED)
-1234567891234
-SELECT CAST('12345678912345' AS UNSIGNED);
-CAST('12345678912345' AS UNSIGNED)
-12345678912345
-SELECT CAST('123456789123456' AS UNSIGNED);
-CAST('123456789123456' AS UNSIGNED)
-123456789123456
-SELECT CAST('1234567891234567' AS UNSIGNED);
-CAST('1234567891234567' AS UNSIGNED)
-1234567891234567
-SELECT CAST('12345678912345678' AS UNSIGNED);
-CAST('12345678912345678' AS UNSIGNED)
-12345678912345678
-SELECT CAST('123456789123456789' AS UNSIGNED);
-CAST('123456789123456789' AS UNSIGNED)
-123456789123456789
-SELECT CAST('1234567891234567891' AS UNSIGNED);
-CAST('1234567891234567891' AS UNSIGNED)
-1234567891234567891
-SELECT CAST('12345678912345678912' AS UNSIGNED);
-CAST('12345678912345678912' AS UNSIGNED)
-12345678912345678912
-SELECT CAST('123456789123456789123' AS UNSIGNED);
-CAST('123456789123456789123' AS UNSIGNED)
-18446744073709551615
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123456789123'
-SELECT CAST('1x' AS UNSIGNED);
-CAST('1x' AS UNSIGNED)
-1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1x'
-SELECT CAST('12x' AS UNSIGNED);
-CAST('12x' AS UNSIGNED)
-12
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12x'
-SELECT CAST('123x' AS UNSIGNED);
-CAST('123x' AS UNSIGNED)
-123
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123x'
-SELECT CAST('1234x' AS UNSIGNED);
-CAST('1234x' AS UNSIGNED)
-1234
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234x'
-SELECT CAST('12345x' AS UNSIGNED);
-CAST('12345x' AS UNSIGNED)
-12345
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345x'
-SELECT CAST('123456x' AS UNSIGNED);
-CAST('123456x' AS UNSIGNED)
-123456
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456x'
-SELECT CAST('1234567x' AS UNSIGNED);
-CAST('1234567x' AS UNSIGNED)
-1234567
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567x'
-SELECT CAST('12345678x' AS UNSIGNED);
-CAST('12345678x' AS UNSIGNED)
-12345678
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678x'
-SELECT CAST('123456789x' AS UNSIGNED);
-CAST('123456789x' AS UNSIGNED)
-123456789
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789x'
-SELECT CAST('1234567891x' AS UNSIGNED);
-CAST('1234567891x' AS UNSIGNED)
-1234567891
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567891x'
-SELECT CAST('12345678912x' AS UNSIGNED);
-CAST('12345678912x' AS UNSIGNED)
-12345678912
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678912x'
-SELECT CAST('123456789123x' AS UNSIGNED);
-CAST('123456789123x' AS UNSIGNED)
-123456789123
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123x'
-SELECT CAST('1234567891234x' AS UNSIGNED);
-CAST('1234567891234x' AS UNSIGNED)
-1234567891234
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567891234x'
-SELECT CAST('12345678912345x' AS UNSIGNED);
-CAST('12345678912345x' AS UNSIGNED)
-12345678912345
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678912345x'
-SELECT CAST('123456789123456x' AS UNSIGNED);
-CAST('123456789123456x' AS UNSIGNED)
-123456789123456
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123456x'
-SELECT CAST('1234567891234567x' AS UNSIGNED);
-CAST('1234567891234567x' AS UNSIGNED)
-1234567891234567
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567891234567x'
-SELECT CAST('12345678912345678x' AS UNSIGNED);
-CAST('12345678912345678x' AS UNSIGNED)
-12345678912345678
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678912345678x'
-SELECT CAST('123456789123456789x' AS UNSIGNED);
-CAST('123456789123456789x' AS UNSIGNED)
-123456789123456789
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123456789x'
-SELECT CAST('1234567891234567891x' AS UNSIGNED);
-CAST('1234567891234567891x' AS UNSIGNED)
-1234567891234567891
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567891234567891x'
-SELECT CAST('12345678912345678912x' AS UNSIGNED);
-CAST('12345678912345678912x' AS UNSIGNED)
-12345678912345678912
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678912345678912x'
-SELECT CAST('123456789123456789123x' AS UNSIGNED);
-CAST('123456789123456789123x' AS UNSIGNED)
-18446744073709551615
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123456789123x'
-create table t1 (a int);
-insert into t1 values ('-1234.1e2');
-insert ignore into t1 values ('-1234.1e2xxxx');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-insert into t1 values ('-1234.1e2 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
--123410
--123410
--123410
-drop table t1;
-create table t1 (a int);
-insert into t1 values ('1 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-insert ignore into t1 values ('1 x');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-1
-1
-drop table t1;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1 (a varchar(17000) character set utf16);
-Warnings:
-Note 1246 Converting column 'a' from VARCHAR to TEXT
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` mediumtext CHARACTER SET utf16 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a varchar(250) character set utf16 primary key);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(250) CHARACTER SET utf16 NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a varchar(334) character set utf16 primary key);
-ERROR 42000: Specified key was too long; max key length is 1000 bytes
-create table t1 (a char(1) character set utf16);
-insert into t1 values (0xD800DC00),(0xD800DCFF),(0xDB7FDC00),(0xDB7FDCFF);
-insert into t1 values (0x00C0), (0x00FF),(0xE000), (0xFFFF);
-select hex(a), hex(@a:=convert(a using utf8mb4)), hex(convert(@a using utf16)) from t1;
-hex(a) hex(@a:=convert(a using utf8mb4)) hex(convert(@a using utf16))
-D800DC00 F0908080 D800DC00
-D800DCFF F09083BF D800DCFF
-DB7FDC00 F3AFB080 DB7FDC00
-DB7FDCFF F3AFB3BF DB7FDCFF
-00C0 C380 00C0
-00FF C3BF 00FF
-E000 EE8080 E000
-FFFF EFBFBF FFFF
-drop table t1;
-set collation_connection=utf16_general_ci;
-drop table if exists t1;
-create table t1 as
-select repeat(' ', 64) as s1, repeat(' ',64) as s2
-union
-select null, null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(64) CHARACTER SET utf16 DEFAULT NULL,
- `s2` varchar(64) CHARACTER SET utf16 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-delete from t1;
-insert into t1 values('aaa','aaa');
-insert into t1 values('aaa|qqq','qqq');
-insert into t1 values('gheis','^[^a-dXYZ]+$');
-insert into t1 values('aab','^aa?b');
-insert into t1 values('Baaan','^Ba*n');
-insert into t1 values('aaa','qqq|aaa');
-insert into t1 values('qqq','qqq|aaa');
-insert into t1 values('bbb','qqq|aaa');
-insert into t1 values('bbb','qqq');
-insert into t1 values('aaa','aba');
-insert into t1 values(null,'abc');
-insert into t1 values('def',null);
-insert into t1 values(null,null);
-insert into t1 values('ghi','ghi[');
-select HIGH_PRIORITY s1 regexp s2 from t1;
-s1 regexp s2
-0
-0
-0
-1
-1
-1
-1
-1
-1
-1
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-set names latin1;
-SET collation_connection=utf16_general_ci;
-#
-# Bug#32390 Character sets: casting utf32 to/from date doesn't work
-#
-CREATE TABLE t1 AS SELECT repeat('a',20) AS s1 LIMIT 0;
-SET time_zone=_latin1'+03:00';
-SET timestamp=1216359724;
-INSERT INTO t1 VALUES (current_date);
-INSERT INTO t1 VALUES (current_time);
-INSERT INTO t1 VALUES (current_timestamp);
-SELECT s1, hex(s1) FROM t1;
-s1 hex(s1)
-2008-07-18 0032003000300038002D00300037002D00310038
-08:42:04 00300038003A00340032003A00300034
-2008-07-18 08:42:04 0032003000300038002D00300037002D00310038002000300038003A00340032003A00300034
-DROP TABLE t1;
-SET timestamp=0;
-SET time_zone=default;
-#
-# MDEV-5298 Illegal mix of collations on timestamp
-#
-SELECT CHARSET('2013-11-15 00:41:28' - INTERVAL 7 DAY);
-CHARSET('2013-11-15 00:41:28' - INTERVAL 7 DAY)
-utf16
-SELECT COERCIBILITY('2013-11-15 00:41:28' - INTERVAL 7 DAY);
-COERCIBILITY('2013-11-15 00:41:28' - INTERVAL 7 DAY)
-4
-SELECT CHARSET(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY);
-CHARSET(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY)
-binary
-SELECT COERCIBILITY(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY);
-COERCIBILITY(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY)
-5
-SELECT CHARSET(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY));
-CHARSET(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY))
-utf16
-SELECT COERCIBILITY(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY))
-4
-SELECT CHARSET(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY));
-CHARSET(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY))
-utf16
-SELECT COERCIBILITY(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY))
-4
-SELECT CHARSET(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-CHARSET(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-utf16
-SELECT COERCIBILITY(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-4
-SELECT HEX(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-HEX(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-0032003000300031002D00300031002D00300031002000300030003A00300030003A00300030
-SELECT CHARSET(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-CHARSET(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-utf16
-SELECT COERCIBILITY(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-4
-SELECT HEX(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-HEX(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-0032003000300031002D00300031002D00300031002000300030003A00300030003A00300030
-CREATE TABLE t1 AS SELECT REPEAT('a', 64) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(64) CHARACTER SET utf16 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('');
-SELECT CHARSET(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-CHARSET(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-utf16
-SELECT COERCIBILITY(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-COERCIBILITY(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-2
-SELECT HEX(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-HEX(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-0032003000300031002D00300031002D00300031002000300030003A00300030003A00300030
-SELECT CHARSET(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-CHARSET(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-utf16
-SELECT COERCIBILITY(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-COERCIBILITY(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-2
-SELECT HEX(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-HEX(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-0032003000300031002D00300031002D00300031002000300030003A00300030003A00300030
-DROP TABLE t1;
-CREATE TABLE t1 (t TIMESTAMP NOT NULL);
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00');
-SELECT * FROM t1 WHERE t < '2013-11-15 00:41:28' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = '2001-01-08 00:00:00' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t < CONCAT('2013-11-15 00:41:28',LEFT(RAND(),0)) - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = CONCAT('2001-01-08 00:00:00',LEFT(RAND(),0)) - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t < TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-DROP TABLE t1;
-SET NAMES latin1;
-SET collation_connection=utf16_general_ci;
-CREATE TABLE t1 AS SELECT repeat('a',2) as s1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(2) CHARACTER SET utf16 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('ab'),('AE'),('ab'),('AE');
-SELECT * FROM t1 ORDER BY s1;
-s1
-ab
-ab
-AE
-AE
-SET max_sort_length=4;
-SELECT * FROM t1 ORDER BY s1;
-s1
-ab
-ab
-AE
-AE
-DROP TABLE t1;
-SET max_sort_length=DEFAULT;
-SET NAMES latin1;
-#
-# Bug#52520 Difference in tinytext utf column metadata
-#
-CREATE TABLE t1 (
-s1 TINYTEXT CHARACTER SET utf16,
-s2 TEXT CHARACTER SET utf16,
-s3 MEDIUMTEXT CHARACTER SET utf16,
-s4 LONGTEXT CHARACTER SET utf16
-);
-SET NAMES utf8, @@character_set_results=NULL;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 255 0 Y 16 0 54
-def test t1 t1 s2 s2 252 65535 0 Y 16 0 54
-def test t1 t1 s3 s3 252 16777215 0 Y 16 0 54
-def test t1 t1 s4 s4 252 4294967295 0 Y 16 0 54
-def HEX(s1) 253 6120 0 Y 0 0 33
-s1 s2 s3 s4 HEX(s1)
-SET NAMES latin1;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 127 0 Y 16 0 8
-def test t1 t1 s2 s2 252 32767 0 Y 16 0 8
-def test t1 t1 s3 s3 252 8388607 0 Y 16 0 8
-def test t1 t1 s4 s4 252 2147483647 0 Y 16 0 8
-def HEX(s1) 253 2040 0 Y 0 0 8
-s1 s2 s3 s4 HEX(s1)
-SET NAMES utf8;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 381 0 Y 16 0 33
-def test t1 t1 s2 s2 252 98301 0 Y 16 0 33
-def test t1 t1 s3 s3 252 25165821 0 Y 16 0 33
-def test t1 t1 s4 s4 252 4294967295 0 Y 16 0 33
-def HEX(s1) 253 6120 0 Y 0 0 33
-s1 s2 s3 s4 HEX(s1)
-CREATE TABLE t2 AS SELECT CONCAT(s1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT(s1)` varchar(255) CHARACTER SET utf16 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1, t2;
-#
-# Bug#11753363 (Bug#44793) Character sets: case clause, ucs2 or utf32, failure
-#
-SELECT CASE _latin1'a' WHEN _utf16'a' THEN 'A' END;
-CASE _latin1'a' WHEN _utf16'a' THEN 'A' END
-A
-SELECT CASE _utf16'a' WHEN _latin1'a' THEN 'A' END;
-CASE _utf16'a' WHEN _latin1'a' THEN 'A' END
-A
-CREATE TABLE t1 (s1 CHAR(5) CHARACTER SET utf16);
-INSERT INTO t1 VALUES ('a');
-SELECT CASE s1 WHEN 'a' THEN 'b' ELSE 'c' END FROM t1;
-CASE s1 WHEN 'a' THEN 'b' ELSE 'c' END
-b
-DROP TABLE t1;
-#
-# Bug#12340997
-# DATE_ADD/DATE_SUB WITH INTERVAL CRASHES IN GET_INTERVAL_VALUE()
-#
-SELECT space(date_add(101, INTERVAL CHAR('1' USING utf16) hour_second));
-space(date_add(101, INTERVAL CHAR('1' USING utf16) hour_second))
-NULL
-Warnings:
-Warning 1301 Result of space() was larger than max_allowed_packet (16777216) - truncated
-#
-# Bug#11750518 41090: ORDER BY TRUNCATES GROUP_CONCAT RESULT
-#
-SET NAMES utf8, @@character_set_connection=utf16;
-SET STATEMENT group_concat_max_len=1024 FOR
-SELECT id, CHAR_LENGTH(GROUP_CONCAT(body)) AS l
-FROM (SELECT 'a' AS id, REPEAT('foo bar', 100) AS body
-UNION ALL
-SELECT 'a' AS id, REPEAT('bla bla', 100) AS body) t1
-GROUP BY id
-ORDER BY l DESC;
-id l
-a 512
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-SET STATEMENT group_concat_max_len=1024 FOR
-SELECT id, CHAR_LENGTH(GROUP_CONCAT(body)) AS l
-FROM (SELECT 'a' AS id, REPEAT('foo bar', 100) AS body
-UNION ALL
-SELECT 'a' AS id, REPEAT('bla bla', 100) AS body) t1;
-id l
-a 512
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-#
-# MDEV-6865 Merge Bug#18935421 RPAD DIES WITH CERTAIN PADSTR INTPUTS..
-#
-DO RPAD(_utf16 0x0061 COLLATE utf16_unicode_ci, 10000, 0x0061DE989999);
-ERROR HY000: Invalid utf16 character string: 'DE9899'
-DO LPAD(_utf16 0x0061 COLLATE utf16_unicode_ci, 10000, 0x0061DE989999);
-ERROR HY000: Invalid utf16 character string: 'DE9899'
-#
-# MDEV-11685: sql_mode can't be set with non-ascii connection charset
-#
-SET character_set_connection=utf16;
-SET sql_mode='NO_ENGINE_SUBSTITUTION';
-SELECT @@sql_mode;
-@@sql_mode
-NO_ENGINE_SUBSTITUTION
-SET sql_mode=DEFAULT;
-SET NAMES utf8;
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set collation_connection=utf16_general_ci;
-select @@collation_connection;
-@@collation_connection
-utf16_general_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf16 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0041
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET utf16 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-00410041004100410041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-00410041004100410041
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-004100410041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-004100410041
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041004100410041004100200020002000200020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0041004100410041004100200020002000200020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-0041
-select hex(weight_string('A'));
-hex(weight_string('A'))
-0041
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-004100420043
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-00410042
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-004100420043
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-00410042004300200020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-00
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0041
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-004100
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-00410042002000200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-00
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0041
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-004100
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-00410042004300200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-00
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0041
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-004100
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-00410042004300200020002000200020002000200020002000
-select @@collation_connection;
-@@collation_connection
-utf16_general_ci
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-20AC20AC20AC00200020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-20AC20AC00
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-20AC20AC002000200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select hex(weight_string(_utf16 0xD800DC00));
-hex(weight_string(_utf16 0xD800DC00))
-FFFD
-select hex(weight_string(_utf16 0xD800DC01));
-hex(weight_string(_utf16 0xD800DC01))
-FFFD
-select @@collation_connection;
-@@collation_connection
-utf16_general_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-0041
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-0041
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-004100420043
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-00410042
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-004100420043
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-00410042004300200020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-20002000430042004100
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-FFBEFFBDFFBCFFDFFFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFFFDFFFBCFFBDFFBEFF
-set collation_connection=utf16_bin;
-select @@collation_connection;
-@@collation_connection
-utf16_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-000061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET utf16 COLLATE utf16_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(15) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-000061000061000061000061000061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061000061000061000061000061
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-000061000061000061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061000061000061
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-000061000061000061000061000061000020000020000020000020000020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061000061000061000061000061000020000020000020000020000020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-000061
-select hex(weight_string('A'));
-hex(weight_string('A'))
-000041
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-000061000062000063
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-000061000062
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-000061000062000063
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-000061000062000063000020000020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-00
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0000
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-000061
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-00006100
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0000610000
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-00006100006200002000002000002000002000002000002000
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-00
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0000
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-000061
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-00006100
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0000610000
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-00006100006200006300002000002000002000002000002000
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-00
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0000
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-000061
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-00006100
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0000610000
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-00006100006200006300002000002000002000002000002000
-select @@collation_connection;
-@@collation_connection
-utf16_bin
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-0020AC0020AC0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-0020AC0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-0020AC0020AC0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-0020AC0020AC0020AC000020000020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-00
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-0020
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-0020AC00
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-0020AC0020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-0020AC0020AC00002000002000002000002000002000002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-00
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-0020
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-0020AC00
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-0020AC0020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-0020AC0020AC0020AC00002000002000002000002000002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-00
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-0020
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-0020AC00
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-0020AC0020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-0020AC0020AC0020AC00002000002000002000002000002000
-select @@collation_connection;
-@@collation_connection
-utf16_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-000061
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-000041
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-000061000062000063
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-000061000062
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-000061000062000063
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-000061000062000063000020000020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-200000200000630000620000610000
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-FFFF9EFFFF9DFFFF9CFFFFDFFFFFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFFFFFDFFFFF9CFFFF9DFFFF9EFFFF
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-6661 PI() does not work well in UCS2/UTF16/UTF32 context
-#
-SELECT CONCAT(CONVERT('pi=' USING utf16),PI()) AS PI;
-PI
-pi=3.141593
-#
-# MDEV-6666 Malformed result for CONCAT(utf8_column, binary_string)
-#
-SET NAMES utf8mb4;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf16);
-INSERT INTO t1 VALUES ('a');
-SELECT CONCAT(a,0xD800) FROM t1;
-ERROR HY000: Invalid utf16 character string: 'D800'
-SELECT CONCAT(a,0xD800DC00) FROM t1;
-CONCAT(a,0xD800DC00)
-að€€
-SELECT CONCAT(a,0x00FF) FROM t1;
-CONCAT(a,0x00FF)
-aÿ
-DROP TABLE t1;
-SELECT CONCAT(_utf16'a' COLLATE utf16_unicode_ci, _binary 0xD800);
-ERROR HY000: Invalid utf16 character string: 'D800'
-PREPARE stmt FROM "SELECT CONCAT(_utf16'a' COLLATE utf16_unicode_ci, ?)";
-SET @arg00=_binary 0xD800;
-EXECUTE stmt USING @arg00;
-ERROR HY000: Invalid utf16 character string: 'D800'
-SET @arg00=_binary 0xD800DC00;
-EXECUTE stmt USING @arg00;
-CONCAT(_utf16'a' COLLATE utf16_unicode_ci, ?)
-að€€
-SET @arg00=_binary 0x00FF;
-EXECUTE stmt USING @arg00;
-CONCAT(_utf16'a' COLLATE utf16_unicode_ci, ?)
-aÿ
-DEALLOCATE PREPARE stmt;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8417 utf8mb4: compare broken bytes as "greater than any non-broken character"
-#
-CREATE TABLE t1 (
-id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-a VARCHAR(10) CHARACTER SET utf16, KEY(a,id)
-);
-INSERT INTO t1 (a) VALUES (_utf8mb4 0x61);
-INSERT INTO t1 (a) VALUES (_utf8mb4 0xC280),(_utf8mb4 0xDFBF);
-INSERT INTO t1 (a) VALUES (_utf8mb4 0xE0A080),(_utf8mb4 0xEFBFBF);
-INSERT INTO t1 (a) VALUES (_utf8mb4 0xF0908080),(_utf8mb4 0xF48FBFBF);
-SELECT id,HEX(a) FROM t1 ORDER BY a,id;
-id HEX(a)
-1 0061
-2 0080
-3 07FF
-4 0800
-6 D800DC00
-7 DBFFDFFF
-5 FFFF
-SELECT id,HEX(a) FROM t1 ORDER BY a DESC,id DESC;
-id HEX(a)
-5 FFFF
-7 DBFFDFFF
-6 D800DC00
-4 0800
-3 07FF
-2 0080
-1 0061
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-6
-ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET utf16 COLLATE utf16_bin;
-SELECT id,HEX(a) FROM t1 ORDER BY a;
-id HEX(a)
-1 0061
-2 0080
-3 07FF
-4 0800
-5 FFFF
-6 D800DC00
-7 DBFFDFFF
-SELECT id,HEX(a) FROM t1 ORDER BY a DESC,id DESC;
-id HEX(a)
-7 DBFFDFFF
-6 D800DC00
-5 FFFF
-4 0800
-3 07FF
-2 0080
-1 0061
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-7
-DROP TABLE t1;
-#
-# MDEV-9178 Wrong result for CAST(CONVERT('1IJ3' USING utf16) AS SIGNED)
-#
-SET NAMES utf8;
-SELECT CAST(CONVERT('1IJ3' USING utf16) AS SIGNED);
-CAST(CONVERT('1IJ3' USING utf16) AS SIGNED)
-1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1IJ3'
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=utf16;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf16_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf16_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf16 COLLATE=utf16_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf16_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf16_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041000000000000000000000000000000000000
-0041002000200000000000000000000000000000
-0020004100000000000000000000000000000000
-0020004100200000000000000000000000000000
-0041002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf16_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf16_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf16_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf16_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf16_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf16_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf16_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf16_general_nopad_ci', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf16_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf16_general_nopad_ci', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf16_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf16_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf16_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf16 COLLATE=utf16_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf16_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf16_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041000000000000000000000000000000000000
-0041002000200000000000000000000000000000
-0020004100000000000000000000000000000000
-0020004100200000000000000000000000000000
-0041002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf16_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf16_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf16_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf16_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf16_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf16_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf16_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf16_general_nopad_ci', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf16_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf16_general_nopad_ci', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf16_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf16_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf16_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf16 COLLATE=utf16_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf16_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf16_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-000061000000000000000000000000000000000000000000000000000000
-000061000020000020000000000000000000000000000000000000000000
-000020000061000000000000000000000000000000000000000000000000
-000020000061000020000000000000000000000000000000000000000000
-000061000020000020000020000000000000000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf16_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf16_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf16_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf16_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf16_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf16_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf16_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf16_nopad_bin', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf16_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf16_nopad_bin', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf16_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf16_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf16_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf16 COLLATE=utf16_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf16_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf16_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-000061000000000000000000000000000000000000000000000000000000
-000061000020000020000000000000000000000000000000000000000000
-000020000061000000000000000000000000000000000000000000000000
-000020000061000020000000000000000000000000000000000000000000
-000061000020000020000020000000000000000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf16_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf16_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf16_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf16_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf16_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf16_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf16_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf16_nopad_bin', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf16_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf16_nopad_bin', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf16_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_utf16_def.result b/mysql-test/r/ctype_utf16_def.result
deleted file mode 100644
index 98b6f7d913d..00000000000
--- a/mysql-test/r/ctype_utf16_def.result
+++ /dev/null
@@ -1,10 +0,0 @@
-call mtr.add_suppression("'utf16' can not be used as client character set");
-SHOW VARIABLES LIKE 'collation_server';
-Variable_name Value
-collation_server utf16_general_ci
-SHOW VARIABLES LIKE 'character_set_server';
-Variable_name Value
-character_set_server utf16
-SHOW VARIABLES LIKE 'ft_stopword_file';
-Variable_name Value
-ft_stopword_file (built-in)
diff --git a/mysql-test/r/ctype_utf16_uca.result b/mysql-test/r/ctype_utf16_uca.result
deleted file mode 100644
index 0cb9c4c74c1..00000000000
--- a/mysql-test/r/ctype_utf16_uca.result
+++ /dev/null
@@ -1,7897 +0,0 @@
-DROP TABLE IF EXISTS t1;
-#
-# Start of 5.5 tests
-#
-set names utf8;
-set collation_connection=utf16_unicode_ci;
-select hex('a'), hex('a ');
-hex('a') hex('a ')
-0061 00610020
-select 'a' = 'a', 'a' = 'a ', 'a ' = 'a';
-'a' = 'a' 'a' = 'a ' 'a ' = 'a'
-1 1 1
-select 'a\0' = 'a', 'a\0' < 'a', 'a\0' > 'a';
-'a\0' = 'a' 'a\0' < 'a' 'a\0' > 'a'
-1 0 0
-select 'a' = 'a\0', 'a' < 'a\0', 'a' > 'a\0';
-'a' = 'a\0' 'a' < 'a\0' 'a' > 'a\0'
-1 0 0
-select 'a\0' = 'a ', 'a\0' < 'a ', 'a\0' > 'a ';
-'a\0' = 'a ' 'a\0' < 'a ' 'a\0' > 'a '
-1 0 0
-select 'a ' = 'a\0', 'a ' < 'a\0', 'a ' > 'a\0';
-'a ' = 'a\0' 'a ' < 'a\0' 'a ' > 'a\0'
-1 0 0
-select 'a a' > 'a', 'a \0' < 'a';
-'a a' > 'a' 'a \0' < 'a'
-1 0
-select binary 'a a' > 'a', binary 'a \0' > 'a', binary 'a\0' > 'a';
-binary 'a a' > 'a' binary 'a \0' > 'a' binary 'a\0' > 'a'
-1 1 1
-select 'c' like '\_' as want0;
-want0
-0
-CREATE TABLE t (
-c char(20) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARACTER SET utf16 COLLATE utf16_unicode_ci;
-INSERT INTO t VALUES ('a'),('ab'),('aba');
-ALTER TABLE t ADD INDEX (c);
-SELECT c FROM t WHERE c LIKE 'a%';
-c
-a
-ab
-aba
-DROP TABLE t;
-create table t1 (c1 char(10) character set utf16 collate utf16_bin);
-insert into t1 values ('A'),('a');
-insert into t1 values ('B'),('b');
-insert into t1 values ('C'),('c');
-insert into t1 values ('D'),('d');
-insert into t1 values ('E'),('e');
-insert into t1 values ('F'),('f');
-insert into t1 values ('G'),('g');
-insert into t1 values ('H'),('h');
-insert into t1 values ('I'),('i');
-insert into t1 values ('J'),('j');
-insert into t1 values ('K'),('k');
-insert into t1 values ('L'),('l');
-insert into t1 values ('M'),('m');
-insert into t1 values ('N'),('n');
-insert into t1 values ('O'),('o');
-insert into t1 values ('P'),('p');
-insert into t1 values ('Q'),('q');
-insert into t1 values ('R'),('r');
-insert into t1 values ('S'),('s');
-insert into t1 values ('T'),('t');
-insert into t1 values ('U'),('u');
-insert into t1 values ('V'),('v');
-insert into t1 values ('W'),('w');
-insert into t1 values ('X'),('x');
-insert into t1 values ('Y'),('y');
-insert into t1 values ('Z'),('z');
-insert into t1 values (_ucs2 0x00e0),(_ucs2 0x00c0);
-insert into t1 values (_ucs2 0x00e1),(_ucs2 0x00c1);
-insert into t1 values (_ucs2 0x00e2),(_ucs2 0x00c2);
-insert into t1 values (_ucs2 0x00e3),(_ucs2 0x00c3);
-insert into t1 values (_ucs2 0x00e4),(_ucs2 0x00c4);
-insert into t1 values (_ucs2 0x00e5),(_ucs2 0x00c5);
-insert into t1 values (_ucs2 0x00e6),(_ucs2 0x00c6);
-insert into t1 values (_ucs2 0x00e7),(_ucs2 0x00c7);
-insert into t1 values (_ucs2 0x00e8),(_ucs2 0x00c8);
-insert into t1 values (_ucs2 0x00e9),(_ucs2 0x00c9);
-insert into t1 values (_ucs2 0x00ea),(_ucs2 0x00ca);
-insert into t1 values (_ucs2 0x00eb),(_ucs2 0x00cb);
-insert into t1 values (_ucs2 0x00ec),(_ucs2 0x00cc);
-insert into t1 values (_ucs2 0x00ed),(_ucs2 0x00cd);
-insert into t1 values (_ucs2 0x00ee),(_ucs2 0x00ce);
-insert into t1 values (_ucs2 0x00ef),(_ucs2 0x00cf);
-insert into t1 values (_ucs2 0x00f0),(_ucs2 0x00d0);
-insert into t1 values (_ucs2 0x00f1),(_ucs2 0x00d1);
-insert into t1 values (_ucs2 0x00f2),(_ucs2 0x00d2);
-insert into t1 values (_ucs2 0x00f3),(_ucs2 0x00d3);
-insert into t1 values (_ucs2 0x00f4),(_ucs2 0x00d4);
-insert into t1 values (_ucs2 0x00f5),(_ucs2 0x00d5);
-insert into t1 values (_ucs2 0x00f6),(_ucs2 0x00d6);
-insert into t1 values (_ucs2 0x00f7),(_ucs2 0x00d7);
-insert into t1 values (_ucs2 0x00f8),(_ucs2 0x00d8);
-insert into t1 values (_ucs2 0x00f9),(_ucs2 0x00d9);
-insert into t1 values (_ucs2 0x00fa),(_ucs2 0x00da);
-insert into t1 values (_ucs2 0x00fb),(_ucs2 0x00db);
-insert into t1 values (_ucs2 0x00fc),(_ucs2 0x00dc);
-insert into t1 values (_ucs2 0x00fd),(_ucs2 0x00dd);
-insert into t1 values (_ucs2 0x00fe),(_ucs2 0x00de);
-insert into t1 values (_ucs2 0x00ff),(_ucs2 0x00df);
-insert into t1 values (_ucs2 0x0100),(_ucs2 0x0101),(_ucs2 0x0102),(_ucs2 0x0103);
-insert into t1 values (_ucs2 0x0104),(_ucs2 0x0105),(_ucs2 0x0106),(_ucs2 0x0107);
-insert into t1 values (_ucs2 0x0108),(_ucs2 0x0109),(_ucs2 0x010a),(_ucs2 0x010b);
-insert into t1 values (_ucs2 0x010c),(_ucs2 0x010d),(_ucs2 0x010e),(_ucs2 0x010f);
-insert into t1 values (_ucs2 0x0110),(_ucs2 0x0111),(_ucs2 0x0112),(_ucs2 0x0113);
-insert into t1 values (_ucs2 0x0114),(_ucs2 0x0115),(_ucs2 0x0116),(_ucs2 0x0117);
-insert into t1 values (_ucs2 0x0118),(_ucs2 0x0119),(_ucs2 0x011a),(_ucs2 0x011b);
-insert into t1 values (_ucs2 0x011c),(_ucs2 0x011d),(_ucs2 0x011e),(_ucs2 0x011f);
-insert into t1 values (_ucs2 0x0120),(_ucs2 0x0121),(_ucs2 0x0122),(_ucs2 0x0123);
-insert into t1 values (_ucs2 0x0124),(_ucs2 0x0125),(_ucs2 0x0126),(_ucs2 0x0127);
-insert into t1 values (_ucs2 0x0128),(_ucs2 0x0129),(_ucs2 0x012a),(_ucs2 0x012b);
-insert into t1 values (_ucs2 0x012c),(_ucs2 0x012d),(_ucs2 0x012e),(_ucs2 0x012f);
-insert into t1 values (_ucs2 0x0130),(_ucs2 0x0131),(_ucs2 0x0132),(_ucs2 0x0133);
-insert into t1 values (_ucs2 0x0134),(_ucs2 0x0135),(_ucs2 0x0136),(_ucs2 0x0137);
-insert into t1 values (_ucs2 0x0138),(_ucs2 0x0139),(_ucs2 0x013a),(_ucs2 0x013b);
-insert into t1 values (_ucs2 0x013c),(_ucs2 0x013d),(_ucs2 0x013e),(_ucs2 0x013f);
-insert into t1 values (_ucs2 0x0140),(_ucs2 0x0141),(_ucs2 0x0142),(_ucs2 0x0143);
-insert into t1 values (_ucs2 0x0144),(_ucs2 0x0145),(_ucs2 0x0146),(_ucs2 0x0147);
-insert into t1 values (_ucs2 0x0148),(_ucs2 0x0149),(_ucs2 0x014a),(_ucs2 0x014b);
-insert into t1 values (_ucs2 0x014c),(_ucs2 0x014d),(_ucs2 0x014e),(_ucs2 0x014f);
-insert into t1 values (_ucs2 0x0150),(_ucs2 0x0151),(_ucs2 0x0152),(_ucs2 0x0153);
-insert into t1 values (_ucs2 0x0154),(_ucs2 0x0155),(_ucs2 0x0156),(_ucs2 0x0157);
-insert into t1 values (_ucs2 0x0158),(_ucs2 0x0159),(_ucs2 0x015a),(_ucs2 0x015b);
-insert into t1 values (_ucs2 0x015c),(_ucs2 0x015d),(_ucs2 0x015e),(_ucs2 0x015f);
-insert into t1 values (_ucs2 0x0160),(_ucs2 0x0161),(_ucs2 0x0162),(_ucs2 0x0163);
-insert into t1 values (_ucs2 0x0164),(_ucs2 0x0165),(_ucs2 0x0166),(_ucs2 0x0167);
-insert into t1 values (_ucs2 0x0168),(_ucs2 0x0169),(_ucs2 0x016a),(_ucs2 0x016b);
-insert into t1 values (_ucs2 0x016c),(_ucs2 0x016d),(_ucs2 0x016e),(_ucs2 0x016f);
-insert into t1 values (_ucs2 0x0170),(_ucs2 0x0171),(_ucs2 0x0172),(_ucs2 0x0173);
-insert into t1 values (_ucs2 0x0174),(_ucs2 0x0175),(_ucs2 0x0176),(_ucs2 0x0177);
-insert into t1 values (_ucs2 0x0178),(_ucs2 0x0179),(_ucs2 0x017a),(_ucs2 0x017b);
-insert into t1 values (_ucs2 0x017c),(_ucs2 0x017d),(_ucs2 0x017e),(_ucs2 0x017f);
-insert into t1 values (_ucs2 0x0180),(_ucs2 0x0181),(_ucs2 0x0182),(_ucs2 0x0183);
-insert into t1 values (_ucs2 0x0184),(_ucs2 0x0185),(_ucs2 0x0186),(_ucs2 0x0187);
-insert into t1 values (_ucs2 0x0188),(_ucs2 0x0189),(_ucs2 0x018a),(_ucs2 0x018b);
-insert into t1 values (_ucs2 0x018c),(_ucs2 0x018d),(_ucs2 0x018e),(_ucs2 0x018f);
-insert into t1 values (_ucs2 0x0190),(_ucs2 0x0191),(_ucs2 0x0192),(_ucs2 0x0193);
-insert into t1 values (_ucs2 0x0194),(_ucs2 0x0195),(_ucs2 0x0196),(_ucs2 0x0197);
-insert into t1 values (_ucs2 0x0198),(_ucs2 0x0199),(_ucs2 0x019a),(_ucs2 0x019b);
-insert into t1 values (_ucs2 0x019c),(_ucs2 0x019d),(_ucs2 0x019e),(_ucs2 0x019f);
-insert into t1 values (_ucs2 0x01a0),(_ucs2 0x01a1),(_ucs2 0x01a2),(_ucs2 0x01a3);
-insert into t1 values (_ucs2 0x01a4),(_ucs2 0x01a5),(_ucs2 0x01a6),(_ucs2 0x01a7);
-insert into t1 values (_ucs2 0x01a8),(_ucs2 0x01a9),(_ucs2 0x01aa),(_ucs2 0x01ab);
-insert into t1 values (_ucs2 0x01ac),(_ucs2 0x01ad),(_ucs2 0x01ae),(_ucs2 0x01af);
-insert into t1 values (_ucs2 0x01b0),(_ucs2 0x01b1),(_ucs2 0x01b2),(_ucs2 0x01b3);
-insert into t1 values (_ucs2 0x01b4),(_ucs2 0x01b5),(_ucs2 0x01b6),(_ucs2 0x01b7);
-insert into t1 values (_ucs2 0x01b8),(_ucs2 0x01b9),(_ucs2 0x01ba),(_ucs2 0x01bb);
-insert into t1 values (_ucs2 0x01bc),(_ucs2 0x01bd),(_ucs2 0x01be),(_ucs2 0x01bf);
-insert into t1 values (_ucs2 0x01c0),(_ucs2 0x01c1),(_ucs2 0x01c2),(_ucs2 0x01c3);
-insert into t1 values (_ucs2 0x01c4),(_ucs2 0x01c5),(_ucs2 0x01c6),(_ucs2 0x01c7);
-insert into t1 values (_ucs2 0x01c8),(_ucs2 0x01c9),(_ucs2 0x01ca),(_ucs2 0x01cb);
-insert into t1 values (_ucs2 0x01cc),(_ucs2 0x01cd),(_ucs2 0x01ce),(_ucs2 0x01cf);
-insert into t1 values (_ucs2 0x01d0),(_ucs2 0x01d1),(_ucs2 0x01d2),(_ucs2 0x01d3);
-insert into t1 values (_ucs2 0x01d4),(_ucs2 0x01d5),(_ucs2 0x01d6),(_ucs2 0x01d7);
-insert into t1 values (_ucs2 0x01d8),(_ucs2 0x01d9),(_ucs2 0x01da),(_ucs2 0x01db);
-insert into t1 values (_ucs2 0x01dc),(_ucs2 0x01dd),(_ucs2 0x01de),(_ucs2 0x01df);
-insert into t1 values (_ucs2 0x01e0),(_ucs2 0x01e1),(_ucs2 0x01e2),(_ucs2 0x01e3);
-insert into t1 values (_ucs2 0x01e4),(_ucs2 0x01e5),(_ucs2 0x01e6),(_ucs2 0x01e7);
-insert into t1 values (_ucs2 0x01e8),(_ucs2 0x01e9),(_ucs2 0x01ea),(_ucs2 0x01eb);
-insert into t1 values (_ucs2 0x01ec),(_ucs2 0x01ed),(_ucs2 0x01ee),(_ucs2 0x01ef);
-insert into t1 values (_ucs2 0x01f0),(_ucs2 0x01f1),(_ucs2 0x01f2),(_ucs2 0x01f3);
-insert into t1 values (_ucs2 0x01f4),(_ucs2 0x01f5),(_ucs2 0x01f6),(_ucs2 0x01f7);
-insert into t1 values (_ucs2 0x01f8),(_ucs2 0x01f9),(_ucs2 0x01fa),(_ucs2 0x01fb);
-insert into t1 values (_ucs2 0x01fc),(_ucs2 0x01fd),(_ucs2 0x01fe),(_ucs2 0x01ff);
-INSERT INTO t1 VALUES (_ucs2 0x1EA0),(_ucs2 0x1EA1),(_ucs2 0x1EA2),(_ucs2 0x1EA3);
-INSERT INTO t1 VALUES (_ucs2 0x1EA4),(_ucs2 0x1EA5),(_ucs2 0x1EA6),(_ucs2 0x1EA7);
-INSERT INTO t1 VALUES (_ucs2 0x1EA8),(_ucs2 0x1EA9),(_ucs2 0x1EAA),(_ucs2 0x1EAB);
-INSERT INTO t1 VALUES (_ucs2 0x1EAC),(_ucs2 0x1EAD),(_ucs2 0x1EAE),(_ucs2 0x1EAF);
-INSERT INTO t1 VALUES (_ucs2 0x1EB0),(_ucs2 0x1EB1),(_ucs2 0x1EB2),(_ucs2 0x1EB3);
-INSERT INTO t1 VALUES (_ucs2 0x1EB4),(_ucs2 0x1EB5),(_ucs2 0x1EB6),(_ucs2 0x1EB7);
-INSERT INTO t1 VALUES (_ucs2 0x1EB8),(_ucs2 0x1EB9),(_ucs2 0x1EBA),(_ucs2 0x1EBB);
-INSERT INTO t1 VALUES (_ucs2 0x1EBC),(_ucs2 0x1EBD),(_ucs2 0x1EBE),(_ucs2 0x1EBF);
-INSERT INTO t1 VALUES (_ucs2 0x1EC0),(_ucs2 0x1EC1),(_ucs2 0x1EC2),(_ucs2 0x1EC3);
-INSERT INTO t1 VALUES (_ucs2 0x1EC4),(_ucs2 0x1EC5),(_ucs2 0x1EC6),(_ucs2 0x1EC7);
-INSERT INTO t1 VALUES (_ucs2 0x1EC8),(_ucs2 0x1EC9),(_ucs2 0x1ECA),(_ucs2 0x1ECB);
-INSERT INTO t1 VALUES (_ucs2 0x1ECC),(_ucs2 0x1ECD),(_ucs2 0x1ECE),(_ucs2 0x1ECF);
-INSERT INTO t1 VALUES (_ucs2 0x1ED0),(_ucs2 0x1ED1),(_ucs2 0x1ED2),(_ucs2 0x1ED3);
-INSERT INTO t1 VALUES (_ucs2 0x1ED4),(_ucs2 0x1ED5),(_ucs2 0x1ED6),(_ucs2 0x1ED7);
-INSERT INTO t1 VALUES (_ucs2 0x1ED8),(_ucs2 0x1ED9),(_ucs2 0x1EDA),(_ucs2 0x1EDB);
-INSERT INTO t1 VALUES (_ucs2 0x1EDC),(_ucs2 0x1EDD),(_ucs2 0x1EDE),(_ucs2 0x1EDF);
-INSERT INTO t1 VALUES (_ucs2 0x1EE0),(_ucs2 0x1EE1),(_ucs2 0x1EE2),(_ucs2 0x1EE3);
-INSERT INTO t1 VALUES (_ucs2 0x1EE4),(_ucs2 0x1EE5),(_ucs2 0x1EE6),(_ucs2 0x1EE7);
-INSERT INTO t1 VALUES (_ucs2 0x1EE8),(_ucs2 0x1EE9),(_ucs2 0x1EEA),(_ucs2 0x1EEB);
-INSERT INTO t1 VALUES (_ucs2 0x1EEC),(_ucs2 0x1EED),(_ucs2 0x1EEE),(_ucs2 0x1EEF);
-INSERT INTO t1 VALUES (_ucs2 0x1EF0),(_ucs2 0x1EF1);
-insert into t1 values ('AA'),('Aa'),('aa'),('aA');
-insert into t1 values ('AE'),('Ae'),('ae'),('aE');
-insert into t1 values ('CH'),('Ch'),('ch'),('cH');
-insert into t1 values ('DZ'),('Dz'),('dz'),('dZ');
-insert into t1 values ('DŽ'),('Dž'),('dž'),('dŽ');
-insert into t1 values ('IJ'),('Ij'),('ij'),('iJ');
-insert into t1 values ('LJ'),('Lj'),('lj'),('lJ');
-insert into t1 values ('LL'),('Ll'),('ll'),('lL');
-insert into t1 values ('NJ'),('Nj'),('nj'),('nJ');
-insert into t1 values ('OE'),('Oe'),('oe'),('oE');
-insert into t1 values ('SS'),('Ss'),('ss'),('sS');
-insert into t1 values ('RR'),('Rr'),('rr'),('rR');
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_unicode_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_icelandic_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÂÃàâãĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-Ãá
-ǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-Ãð
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-EeÈÊËèêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-Éé
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÌÎÃìîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-Ãí
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÔÕòôõŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Óó
-Ǿǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÛÜùûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Úú
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÿŶŷŸ
-Ãý
-Ƴƴ
-ZzŹźŻżŽž
-Þþ
-ÄÆäæ
-ÖØöø
-Ã…Ã¥
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_latvian_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċ
-CHChcHch
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġǦǧǴǵ
-Ģģ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-Yy
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkǨǩ
-Ķķ
-Ƙƙ
-LlĹ弾
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-Ļļ
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŇňǸǹ
-NJNjnJnjNJNjnj
-Ņņ
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŘř
-RRRrrRrr
-Å–Å—
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-ÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_romanian_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÃÄÅàáãäåĀÄÄ„Ä…ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-Ăă
-Ââ
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃìíïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-Îî
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅÅ Å¡Å¿
-SSSssSssß
-Şş
-Æ©
-ƪ
-TtŤť
-ƾ
-Ţţ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_slovenian_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċ
-CHChcHch
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_polish_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂăÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-Ä„Ä…
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĈĉĊċČÄ
-CHChcHch
-Ćć
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-Ęę
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Ńń
-Æž
-ÅŠÅ‹
-OoÒÔÕÖòôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Óó
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsÅœÅŞşŠšſ
-SSSssSssß
-Śś
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŽž
-Źź
-Żż
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_estonian_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÅàáâãåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzdZdz
-DŽDždŽdž
-DŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔòóôŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Zz
-Žž
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Õõ
-Ää
-Öö
-Üü
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ŹźŻż
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_spanish_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Ññ
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_swedish_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃàáâãĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Ǿǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃœÃüýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ã…Ã¥
-ÄÆäæ
-ÖØöø
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_turkish_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcĆćĈĉĊċČÄ
-CHChcHch
-Çç
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĠġĢģǦǧǴǵ
-Ğğ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-Iı
-IJIj
-ƕǶ
-Ħħ
-iÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-iJijIJij
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Öö
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅÅ Å¡Å¿
-SSSssSssß
-Şş
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Üü
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_czech_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċ
-cH
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-CHChch
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗ
-RRRrrRrr
-Řř
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_danish_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃàáâãĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-aA
-AEAeaEae
-ǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Ǿǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃœÃüýÿŰűŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-ÄÆäæ
-ÖØöøÅÅ‘
-AAAaaaÃ…Ã¥
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_lithuanian_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CCHChcchÇçĆćĈĉĊċ
-cH
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IYiyÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-ÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_slovak_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÅàáâãåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-Ää
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċ
-cH
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-CHChch
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÕÖòóõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Ôô
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_spanish2_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-cH
-CHChch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-lL
-LLLlll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Ññ
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_roman_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IJijÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJij
-IJij
-ı
-Æ—
-Æ–
-Ĵĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJlj
-LJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnj
-NJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-ÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-UVuv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_esperanto_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĊċČÄ
-CHChcHch
-Ĉĉ
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgĞğĠġĢģǦǧǴǵ
-ÄœÄ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-Hh
-Ĥĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjÇ°
-Ĵĵ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŞşŠšſ
-SSSssSssß
-ÅœÅ
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ŭŭ
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_hungarian_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ÖöÅÅ‘
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-ÜüŰű
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_croatian_mysql561_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĈĉĊċ
-CHChcHch
-ÄŒÄ
-Ćć
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDZDzdz
-DŽDždŽdžDŽDždž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LLLllLll
-LJLjlJljLJLjlj
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_croatian_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĈĉĊċ
-CHChcHch
-ÄŒÄ
-Ćć
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDZDzdz
-dŽ
-DŽDždžDŽDždž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-lJ
-LLLllLll
-LJLjljLJLjlj
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-nJ
-NJNjnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_german2_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÅàáâãåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEaeÄÆäæ
-ǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÖöŒœ
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Üü
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_unicode_520_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEaeÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÃðĎÄÄÄ‘
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-Ɖ
-ÆŠ
-Ƌƌ
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥĦħ
-ƕǶ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľĿŀÅÅ‚
-LJLjlJljLJLjlj
-LLLllLll
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖØòóôõöøŌÅÅŽÅÅőƠơǑǒǪǫǬǭǾǿỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf16_vietnamese_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÃÄÅàáãäåĀÄÄ„Ä…ÇǎǞǟǠǡǺǻẠạẢả
-AAAaaAaa
-AEAeaEae
-ĂăẮắẰằẲẳẴẵẶặ
-ÂâẤấẦầẨẩẪẫẬậ
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉËèéëĒēĔĕĖėĘęĚěẸẹẺẻẼẽ
-ÊêẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÕÖòóõöŌÅÅŽÅÅőǑǒǪǫǬǭỌá»á»Žá»
-OEOeoEoeÅ’Å“
-Ôôá»á»‘ỒồỔổỖỗỘộ
-ƠơỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųǓǔǕǖǗǘǙǚǛǜỤụỦủ
-ƯưỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-drop table t1;
-SET NAMES utf8;
-CREATE TABLE t1 (c varchar(200) CHARACTER SET utf16 COLLATE utf16_general_ci NOT NULL, INDEX (c));
-INSERT INTO t1 VALUES (0x039C03C903B403B11F770308);
-SELECT * FROM t1 WHERE c LIKE _utf16 0x039C0025 COLLATE utf16_general_ci;
-c
-Μωδαί̈
-INSERT INTO t1 VALUES (0x039C03C903B4);
-SELECT * FROM t1 WHERE c LIKE _utf16 0x039C0025
-COLLATE utf16_general_ci ORDER BY c;
-c
-Μωδ
-Μωδαί̈
-DROP TABLE t1;
-CREATE TABLE t1 (c varchar(200) CHARACTER SET utf16 COLLATE utf16_unicode_ci NOT NULL, INDEX (c));
-INSERT INTO t1 VALUES (0x039C03C903B403B11F770308);
-SELECT * FROM t1 WHERE c LIKE _utf16 0x039C0025 COLLATE utf16_unicode_ci;
-c
-Μωδαί̈
-INSERT INTO t1 VALUES (0x039C03C903B4);
-SELECT * FROM t1 WHERE c LIKE _utf16 0x039C0025
-COLLATE utf16_unicode_ci ORDER BY c;
-c
-Μωδ
-Μωδαί̈
-DROP TABLE t1;
-CREATE TABLE t1 (c varchar(200) CHARACTER SET utf16 COLLATE utf16_unicode_ci NOT NULL, INDEX (c));
-INSERT INTO t1 VALUES (0x039C03C903B403B11F770308);
-SELECT * FROM t1 WHERE c LIKE _utf16 0x039C0025 COLLATE utf16_unicode_ci;
-c
-Μωδαί̈
-INSERT INTO t1 VALUES (0x039C03C903B4);
-SELECT * FROM t1 WHERE c LIKE _utf16 0x039C0025
-COLLATE utf16_unicode_ci ORDER BY c;
-c
-Μωδ
-Μωδαί̈
-DROP TABLE t1;
-SET NAMES utf8;
-SET @test_character_set='utf16';
-SET @test_collation='utf16_swedish_ci';
-SET @safe_character_set_server= @@character_set_server;
-SET @safe_collation_server= @@collation_server;
-SET @safe_character_set_client= @@character_set_client;
-SET @safe_character_set_results= @@character_set_results;
-SET character_set_server= @test_character_set;
-SET collation_server= @test_collation;
-CREATE DATABASE d1;
-USE d1;
-CREATE TABLE t1 (c CHAR(10), KEY(c));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c char(10) utf16_swedish_ci YES MUL NULL
-INSERT INTO t1 VALUES ('aaa'),('aaaa'),('aaaaa');
-SELECT c as want3results FROM t1 WHERE c LIKE 'aaa%';
-want3results
-aaa
-aaaa
-aaaaa
-DROP TABLE t1;
-CREATE TABLE t1 (c1 varchar(15), KEY c1 (c1(2)));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c1 varchar(15) utf16_swedish_ci YES MUL NULL
-INSERT INTO t1 VALUES ('location'),('loberge'),('lotre'),('boabab');
-SELECT c1 as want3results from t1 where c1 like 'l%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want3results from t1 where c1 like 'lo%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want1result from t1 where c1 like 'loc%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'loca%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locat%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locati%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locatio%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'location%';
-want1result
-location
-DROP TABLE t1;
-create table t1 (a set('a') not null);
-insert ignore into t1 values (),();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-select cast(a as char(1)) from t1;
-cast(a as char(1))
-
-
-select a sounds like a from t1;
-a sounds like a
-1
-1
-select 1 from t1 order by cast(a as char(1));
-1
-1
-1
-drop table t1;
-#
-# MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found
-#
-SET character_set_client=latin1;
-SET character_set_connection= @test_character_set;
-SET collation_connection= @test_collation;
-SELECT COLLATION('.'), SUBSTRING_INDEX('.wwwmysqlcom', '.', -2) AS c1;
-COLLATION('.') c1
-utf16_swedish_ci .wwwmysqlcom
-set names utf8;
-create table t1 (
-name varchar(10),
-level smallint unsigned);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `name` varchar(10) COLLATE utf16_swedish_ci DEFAULT NULL,
- `level` smallint(5) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf16 COLLATE=utf16_swedish_ci
-insert into t1 values ('string',1);
-select concat(name,space(level)), concat(name, repeat(' ',level)) from t1;
-concat(name,space(level)) concat(name, repeat(' ',level))
-string string
-drop table t1;
-DROP DATABASE d1;
-USE test;
-SET character_set_server= @safe_character_set_server;
-SET collation_server= @safe_collation_server;
-SET character_set_client= @safe_character_set_client;
-SET character_set_results= @safe_character_set_results;
-SET collation_connection='utf16_unicode_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf16_unicode_ci 00610009
-utf16_unicode_ci 0061
-utf16_unicode_ci 00610020
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf16_unicode_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf16_unicode_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf16_unicode_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-"BEGIN ctype_german.inc"
-drop table if exists t1;
-create table t1 as select repeat(' ', 64) as s1;
-select collation(s1) from t1;
-collation(s1)
-utf16_unicode_ci
-delete from t1;
-INSERT INTO t1 VALUES ('ud'),('uf');
-INSERT INTO t1 VALUES ('od'),('of');
-INSERT INTO t1 VALUES ('e');
-INSERT INTO t1 VALUES ('ad'),('af');
-insert into t1 values ('a'),('ae'),(_latin1 0xE4);
-insert into t1 values ('o'),('oe'),(_latin1 0xF6);
-insert into t1 values ('s'),('ss'),(_latin1 0xDF);
-insert into t1 values ('u'),('ue'),(_latin1 0xFC);
-INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
-INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
-select s1, hex(s1) from t1 order by s1, binary s1;
-s1 hex(s1)
-a 0061
-ä 00E4
-ad 00610064
-ae 00610065
-af 00610066
-Æ 00C6
-æ 00E6
-e 0065
-o 006F
-ö 00F6
-od 006F0064
-oe 006F0065
-Å’ 0152
-Å“ 0153
-of 006F0066
-s 0073
-ss 00730073
-ß 00DF
-u 0075
-ü 00FC
-ud 00750064
-ue 00750065
-uf 00750066
-select group_concat(s1 order by binary s1) from t1 group by s1;
-group_concat(s1 order by binary s1)
-a,ä
-ad
-ae
-af
-Æ,æ
-e
-o,ö
-od
-oe,Å’,Å“
-of
-s
-ss,ß
-u,ü
-ud
-ue
-uf
-SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
-s1 hex(s1) hex(weight_string(s1))
-a 0061 0E33
-ä 00E4 0E33
-ad 00610064 0E330E6D
-ae 00610065 0E330E8B
-af 00610066 0E330EB9
-Æ 00C6 0E38
-æ 00E6 0E38
-e 0065 0E8B
-o 006F 0F82
-ö 00F6 0F82
-od 006F0064 0F820E6D
-oe 006F0065 0F820E8B
-Å’ 0152 0F820E8B
-Å“ 0153 0F820E8B
-of 006F0066 0F820EB9
-s 0073 0FEA
-ss 00730073 0FEA0FEA
-ß 00DF 0FEA0FEA
-u 0075 101F
-ü 00FC 101F
-ud 00750064 101F0E6D
-ue 00750065 101F0E8B
-uf 00750066 101F0EB9
-SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
-s1 hex(s1)
-ae 00610065
-drop table t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf16 COLLATE utf16_unicode_ci DEFAULT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('s',0),(_latin1 0xDF,1);
-SELECT * FROM t1 ORDER BY a, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY a DESC, b;
-a b
-ß 1
-s 0
-SELECT * FROM t1 ORDER BY CONCAT(a), b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
-a b
-ß 1
-s 0
-DROP TABLE t1;
-"END ctype_german.inc"
-End of 4.1 tests
-CREATE TABLE t1 (id int, a varchar(30) character set utf16);
-INSERT INTO t1 VALUES (1, 0x01310069), (2, 0x01310131);
-INSERT INTO t1 VALUES (3, 0x00690069), (4, 0x01300049);
-INSERT INTO t1 VALUES (5, 0x01300130), (6, 0x00490049);
-SELECT a, length(a) la, @l:=lower(a) l, length(@l) ll, @u:=upper(a) u, length(@u) lu
-FROM t1 ORDER BY id;
-a la l ll u lu
-ıi 4 ıi 4 II 4
-ıı 4 ıı 4 II 4
-ii 4 ii 4 II 4
-Ä°I 4 ii 4 Ä°I 4
-Ä°Ä° 4 ii 4 Ä°Ä° 4
-II 4 ii 4 II 4
-ALTER TABLE t1 MODIFY a VARCHAR(30) character set utf16 collate utf16_turkish_ci;
-SELECT a, length(a) la, @l:=lower(a) l, length(@l) ll, @u:=upper(a) u, length(@u) lu
-FROM t1 ORDER BY id;
-a la l ll u lu
-ıi 4 ıi 4 Iİ 4
-ıı 4 ıı 4 II 4
-ii 4 ii 4 Ä°Ä° 4
-İI 4 iı 4 İI 4
-Ä°Ä° 4 ii 4 Ä°Ä° 4
-II 4 ıı 4 II 4
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 text character set utf16 collate utf16_polish_ci NOT NULL
-) ENGINE=MyISAM;
-insert into t1 values (''),('a');
-SELECT COUNT(*), c1 FROM t1 GROUP BY c1;
-COUNT(*) c1
-1
-1 a
-DROP TABLE IF EXISTS t1;
-set collation_connection=utf16_unicode_ci;
-drop table if exists t1;
-create table t1 as
-select repeat(' ', 64) as s1, repeat(' ',64) as s2
-union
-select null, null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(64) CHARACTER SET utf16 COLLATE utf16_unicode_ci DEFAULT NULL,
- `s2` varchar(64) CHARACTER SET utf16 COLLATE utf16_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-delete from t1;
-insert into t1 values('aaa','aaa');
-insert into t1 values('aaa|qqq','qqq');
-insert into t1 values('gheis','^[^a-dXYZ]+$');
-insert into t1 values('aab','^aa?b');
-insert into t1 values('Baaan','^Ba*n');
-insert into t1 values('aaa','qqq|aaa');
-insert into t1 values('qqq','qqq|aaa');
-insert into t1 values('bbb','qqq|aaa');
-insert into t1 values('bbb','qqq');
-insert into t1 values('aaa','aba');
-insert into t1 values(null,'abc');
-insert into t1 values('def',null);
-insert into t1 values(null,null);
-insert into t1 values('ghi','ghi[');
-select HIGH_PRIORITY s1 regexp s2 from t1;
-s1 regexp s2
-0
-0
-0
-1
-1
-1
-1
-1
-1
-1
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-SET collation_connection=utf16_czech_ci;
-SELECT @@collation_connection;
-@@collation_connection
-utf16_czech_ci
-#
-# Bug#57737 Character sets: search fails with like, contraction, index
-#
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS s1 LIMIT 0;
-INSERT INTO t1 VALUES ('c'),('ce'),('cé'),('ch');
-SELECT * FROM t1 WHERE s1 LIKE 'c%';
-s1
-c
-ce
-cé
-ch
-ALTER TABLE t1 ADD KEY s1 (s1);
-SELECT * FROM t1 WHERE s1 LIKE 'c%';
-s1
-c
-ce
-cé
-ch
-ALTER TABLE t1 DROP KEY s1, ADD KEY(s1(1));
-SELECT * FROM t1 WHERE s1 LIKE 'ch';
-s1
-ch
-DROP TABLE t1;
-SELECT @@collation_connection;
-@@collation_connection
-utf16_czech_ci
-#
-# Bug#57737 Character sets: search fails with like, contraction, index
-# Part#2 - ignorable characters
-#
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS s1 LIMIT 0;
-INSERT INTO t1 VALUES ('a\0\0\0\0\0\t'),('a'),('b'),('c'),('d'),('e');
-SELECT HEX(s1) FROM t1 WHERE s1 LIKE 'a%';
-HEX(s1)
-0061000000000000000000000009
-0061
-ALTER TABLE t1 ADD KEY s1 (s1);
-SELECT HEX(s1) FROM t1 WHERE s1 LIKE 'a%';
-HEX(s1)
-0061000000000000000000000009
-0061
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set collation_connection=utf16_unicode_ci;
-select @@collation_connection;
-@@collation_connection
-utf16_unicode_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf16 COLLATE utf16_unicode_ci NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(16) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0E33
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E33
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET utf16 COLLATE utf16_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(80) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0E330E330E330E330E33
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E330E330E330E330E33
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(48) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-0E330E330E33
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E330E330E33
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(160) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0E330E330E330E330E3302090209020902090209
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E330E330E330E330E3302090209020902090209
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-0E33
-select hex(weight_string('A'));
-hex(weight_string('A'))
-0E33
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-0E330E4A0E60
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-0E330E4A
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-0E330E4A0E60
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-0E330E4A0E6002090209
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-0E
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0E33
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-0E330E
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-0E330E4A
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0E330E4A02
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-0E330E4A020902090209020902090209020902090209020902
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-0E
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0E33
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-0E330E
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-0E330E4A
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0E330E4A0E
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-0E330E4A0E6002090209020902090209020902090209020902
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-0E
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0E33
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-0E330E
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-0E330E4A
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0E330E4A0E
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-0E330E4A0E6002090209020902090209020902090209020902
-select @@collation_connection;
-@@collation_connection
-utf16_unicode_ci
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-0E230E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-0E230E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-0E230E230E2302090209
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-0E230E
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-0E230E2302
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-0E230E23020902090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-0E230E
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-0E230E230E
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-0E230E230E2302090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-0E230E
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-0E230E230E
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-0E230E230E2302090209020902090209020902090209020902
-select hex(weight_string(_utf16 0xD800DC00 collate utf16_unicode_ci));
-hex(weight_string(_utf16 0xD800DC00 collate utf16_unicode_ci))
-FFFD
-select hex(weight_string(_utf16 0xD800DC01 collate utf16_unicode_ci));
-hex(weight_string(_utf16 0xD800DC01 collate utf16_unicode_ci))
-FFFD
-select @@collation_connection;
-@@collation_connection
-utf16_unicode_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-0E33
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-0E33
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-0E330E4A0E60
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-0E330E4A
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-0E330E4A0E60
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-0E330E4A0E6002090209
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-09020902600E4A0E330E
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-F1CCF1B5F19FFDF6FDF6
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-F6FDF6FD9FF1B5F1CCF1
-set @@collation_connection=utf16_czech_ci;
-select @@collation_connection;
-@@collation_connection
-utf16_czech_ci
-select collation(cast(_latin1 0xDF as char));
-collation(cast(_latin1 0xDF as char))
-utf16_czech_ci
-select hex(weight_string('s'));
-hex(weight_string('s'))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF as char)));
-hex(weight_string(cast(_latin1 0xDF as char)))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF as char) as char(1)));
-hex(weight_string(cast(_latin1 0xDF as char) as char(1)))
-0FEA
-select hex(weight_string('c'));
-hex(weight_string('c'))
-0E60
-select hex(weight_string('h'));
-hex(weight_string('h'))
-0EE1
-select hex(weight_string('ch'));
-hex(weight_string('ch'))
-0EE2
-select hex(weight_string('i'));
-hex(weight_string('i'))
-0EFB
-select hex(weight_string(cast(_latin1 0x6368DF as char)));
-hex(weight_string(cast(_latin1 0x6368DF as char)))
-0EE20FEA0FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(1)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(1)))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(2)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(2)))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(3)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(3)))
-0EE20FEA0FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(4)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(4)))
-0EE20FEA0FEA0209
-select hex(weight_string(cast(_latin1 0xDF6368 as char)));
-hex(weight_string(cast(_latin1 0xDF6368 as char)))
-0FEA0FEA0EE2
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(1)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(1)))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(2)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(2)))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(3)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(3)))
-0FEA0FEA0EE2
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(4)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(4)))
-0FEA0FEA0EE20209
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 2, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 2, 0xC0))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 2, 0xC0))
-0EE20F
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 2, 0xC0))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 2, 0xC0))
-0EE20FEA020902090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 3, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 3, 0xC0))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 3, 0xC0))
-0EE20F
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 3, 0xC0))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 3, 0xC0))
-0EE20FEA0FEA02090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 4, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 4, 0xC0))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 4, 0xC0))
-0EE20F
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 4, 0xC0))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 4, 0xC0))
-0EE20FEA0FEA02090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 2,0xC0))
-0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 2,0xC0))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 2,0xC0))
-0FEA0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 2,0xC0))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 2,0xC0))
-0FEA0FEA020902090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 3,0xC0))
-0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 3,0xC0))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 3,0xC0))
-0FEA0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 3,0xC0))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 3,0xC0))
-0FEA0FEA0EE202090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 4,0xC0))
-0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 4,0xC0))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 4,0xC0))
-0FEA0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 4,0xC0))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 4,0xC0))
-0FEA0FEA0EE202090209020902090209020902090209020902
-SET NAMES utf8;
-SET collation_connection=utf16_german2_ci;
-"BEGIN ctype_german.inc"
-drop table if exists t1;
-create table t1 as select repeat(' ', 64) as s1;
-select collation(s1) from t1;
-collation(s1)
-utf16_german2_ci
-delete from t1;
-INSERT INTO t1 VALUES ('ud'),('uf');
-INSERT INTO t1 VALUES ('od'),('of');
-INSERT INTO t1 VALUES ('e');
-INSERT INTO t1 VALUES ('ad'),('af');
-insert into t1 values ('a'),('ae'),(_latin1 0xE4);
-insert into t1 values ('o'),('oe'),(_latin1 0xF6);
-insert into t1 values ('s'),('ss'),(_latin1 0xDF);
-insert into t1 values ('u'),('ue'),(_latin1 0xFC);
-INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
-INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
-select s1, hex(s1) from t1 order by s1, binary s1;
-s1 hex(s1)
-a 0061
-ad 00610064
-ae 00610065
-Æ 00C6
-ä 00E4
-æ 00E6
-af 00610066
-e 0065
-o 006F
-od 006F0064
-oe 006F0065
-ö 00F6
-Å’ 0152
-Å“ 0153
-of 006F0066
-s 0073
-ss 00730073
-ß 00DF
-u 0075
-ud 00750064
-ue 00750065
-ü 00FC
-uf 00750066
-select group_concat(s1 order by binary s1) from t1 group by s1;
-group_concat(s1 order by binary s1)
-a
-ad
-ae,Æ,ä,æ
-af
-e
-o
-od
-oe,ö,Œ,œ
-of
-s
-ss,ß
-u
-ud
-ue,ü
-uf
-SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
-s1 hex(s1) hex(weight_string(s1))
-a 0061 0E33
-ad 00610064 0E330E6D
-ae 00610065 0E330E8B
-Æ 00C6 0E330E8B
-ä 00E4 0E330E8B
-æ 00E6 0E330E8B
-af 00610066 0E330EB9
-e 0065 0E8B
-o 006F 0F82
-od 006F0064 0F820E6D
-oe 006F0065 0F820E8B
-ö 00F6 0F820E8B
-Å’ 0152 0F820E8B
-Å“ 0153 0F820E8B
-of 006F0066 0F820EB9
-s 0073 0FEA
-ss 00730073 0FEA0FEA
-ß 00DF 0FEA0FEA
-u 0075 101F
-ud 00750064 101F0E6D
-ue 00750065 101F0E8B
-ü 00FC 101F0E8B
-uf 00750066 101F0EB9
-SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
-s1 hex(s1)
-ae 00610065
-Æ 00C6
-ä 00E4
-æ 00E6
-drop table t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf16 COLLATE utf16_german2_ci DEFAULT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('s',0),(_latin1 0xDF,1);
-SELECT * FROM t1 ORDER BY a, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY a DESC, b;
-a b
-ß 1
-s 0
-SELECT * FROM t1 ORDER BY CONCAT(a), b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
-a b
-ß 1
-s 0
-DROP TABLE t1;
-"END ctype_german.inc"
-#
-# WL#2673 Unicode Collation Algorithm new version
-#
-SET NAMES utf8mb4;
-SET collation_connection=utf16_unicode_520_ci;
-CREATE TABLE t1 AS SELECT repeat('a', 10) as c LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` varchar(10) CHARACTER SET utf16 COLLATE utf16_unicode_520_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_utf32 0x0180),(_utf32 0x023A);
-INSERT INTO t1 VALUES (_utf32 0x023B),(_utf32 0x023C);
-INSERT INTO t1 VALUES (_utf32 0x023D),(_utf32 0x023E);
-INSERT INTO t1 VALUES (_utf32 0x0241),(_utf32 0x0242);
-INSERT INTO t1 VALUES (_utf32 0x0243),(_utf32 0x0244);
-INSERT INTO t1 VALUES (_utf32 0x0245),(_utf32 0x0246);
-INSERT INTO t1 VALUES (_utf32 0x0247),(_utf32 0x0248);
-INSERT INTO t1 VALUES (_utf32 0x0249),(_utf32 0x024A);
-INSERT INTO t1 VALUES (_utf32 0x024B),(_utf32 0x024C);
-INSERT INTO t1 VALUES (_utf32 0x024D),(_utf32 0x024E);
-INSERT INTO t1 VALUES (_utf32 0x024F),(_utf32 0x026B);
-INSERT INTO t1 VALUES (_utf32 0x027D),(_utf32 0x0289);
-INSERT INTO t1 VALUES (_utf32 0x028C);
-INSERT INTO t1 VALUES (_utf32 0x037B), (_utf32 0x037C);
-INSERT INTO t1 VALUES (_utf32 0x037D), (_utf32 0x03FD);
-INSERT INTO t1 VALUES (_utf32 0x03FE), (_utf32 0x03FF);
-INSERT INTO t1 VALUES (_utf32 0x04C0), (_utf32 0x04CF);
-INSERT INTO t1 VALUES (_utf32 0x04F6), (_utf32 0x04F7);
-INSERT INTO t1 VALUES (_utf32 0x04FA), (_utf32 0x04FB);
-INSERT INTO t1 VALUES (_utf32 0x04FC), (_utf32 0x04FD);
-INSERT INTO t1 VALUES (_utf32 0x04FE), (_utf32 0x04FF);
-INSERT INTO t1 VALUES (_utf32 0x0510), (_utf32 0x0511);
-INSERT INTO t1 VALUES (_utf32 0x0512), (_utf32 0x0513);
-INSERT INTO t1 VALUES (_utf32 0x10A0), (_utf32 0x10A1);
-INSERT INTO t1 VALUES (_utf32 0x10A2), (_utf32 0x10A3);
-INSERT INTO t1 VALUES (_utf32 0x10A4), (_utf32 0x10A5);
-INSERT INTO t1 VALUES (_utf32 0x10A6), (_utf32 0x10A7);
-INSERT INTO t1 VALUES (_utf32 0x2D00), (_utf32 0x2D01);
-INSERT INTO t1 VALUES (_utf32 0x2D02), (_utf32 0x2D03);
-INSERT INTO t1 VALUES (_utf32 0x2D04), (_utf32 0x2D05);
-INSERT INTO t1 VALUES (_utf32 0x2D06), (_utf32 0x2D07);
-INSERT INTO t1 VALUES (_utf32 0x1D7D);
-INSERT INTO t1 VALUES (_utf32 0x2132),(_utf32 0x214E);
-INSERT INTO t1 VALUES (_utf32 0x2183),(_utf32 0x2184);
-INSERT INTO t1 VALUES (_utf32 0x2C80), (_utf32 0x2C81);
-INSERT INTO t1 VALUES (_utf32 0x2C82), (_utf32 0x2C83);
-INSERT INTO t1 VALUES (_utf32 0x2C84), (_utf32 0x2C85);
-INSERT INTO t1 VALUES (_utf32 0x2C86), (_utf32 0x2C87);
-INSERT INTO t1 VALUES (_utf32 0x2C88), (_utf32 0x2C89);
-INSERT INTO t1 VALUES (_utf32 0x2C8A), (_utf32 0x2C8B);
-INSERT INTO t1 VALUES (_utf32 0x2C8C), (_utf32 0x2C8D);
-INSERT INTO t1 VALUES (_utf32 0x2C8E), (_utf32 0x2C8F);
-INSERT INTO t1 VALUES (_utf32 0x2C60), (_utf32 0x2C61);
-INSERT INTO t1 VALUES (_utf32 0x2C62), (_utf32 0x2C63);
-INSERT INTO t1 VALUES (_utf32 0x2C64), (_utf32 0x2C65);
-INSERT INTO t1 VALUES (_utf32 0x2C66), (_utf32 0x2C67);
-INSERT INTO t1 VALUES (_utf32 0x2C68), (_utf32 0x2C69);
-INSERT INTO t1 VALUES (_utf32 0x2C6A), (_utf32 0x2C6B);
-INSERT INTO t1 VALUES (_utf32 0x2C6C), (_utf32 0x2C75);
-INSERT INTO t1 VALUES (_utf32 0x2C76);
-INSERT INTO t1 VALUES (_utf32 0x2C00), (_utf32 0x2C01);
-INSERT INTO t1 VALUES (_utf32 0x2C02), (_utf32 0x2C03);
-INSERT INTO t1 VALUES (_utf32 0x2C04), (_utf32 0x2C05);
-INSERT INTO t1 VALUES (_utf32 0x2C06), (_utf32 0x2C07);
-INSERT INTO t1 VALUES (_utf32 0x2C30), (_utf32 0x2C31);
-INSERT INTO t1 VALUES (_utf32 0x2C32), (_utf32 0x2C33);
-INSERT INTO t1 VALUES (_utf32 0x2C34), (_utf32 0x2C35);
-INSERT INTO t1 VALUES (_utf32 0x2C36), (_utf32 0x2C37);
-INSERT INTO t1 VALUES (_utf32 0x10400), (_utf32 0x10401);
-INSERT INTO t1 VALUES (_utf32 0x10402), (_utf32 0x10403);
-INSERT INTO t1 VALUES (_utf32 0x10404), (_utf32 0x10405);
-INSERT INTO t1 VALUES (_utf32 0x10406), (_utf32 0x10407);
-INSERT INTO t1 VALUES (_utf32 0x10428), (_utf32 0x10429);
-INSERT INTO t1 VALUES (_utf32 0x1042A), (_utf32 0x1042B);
-INSERT INTO t1 VALUES (_utf32 0x1042C), (_utf32 0x1042D);
-INSERT INTO t1 VALUES (_utf32 0x1042E), (_utf32 0x1042F);
-INSERT INTO t1 VALUES (_utf32 0x0370);
-INSERT INTO t1 VALUES (_utf32 0x0371);
-INSERT INTO t1 VALUES (_utf32 0x0372);
-INSERT INTO t1 VALUES (_utf32 0x0373);
-INSERT INTO t1 VALUES (_utf32 0x0514);
-INSERT INTO t1 VALUES (_utf32 0x0515);
-INSERT INTO t1 VALUES (_utf32 0x0516);
-INSERT INTO t1 VALUES (_utf32 0x0517);
-INSERT INTO t1 VALUES (_utf32 0xA640);
-INSERT INTO t1 VALUES (_utf32 0xA641);
-INSERT INTO t1 VALUES (_utf32 0xA642);
-INSERT INTO t1 VALUES (_utf32 0xA643);
-INSERT INTO t1 VALUES (_utf32 0xA722);
-INSERT INTO t1 VALUES (_utf32 0xA723);
-INSERT INTO t1 VALUES (_utf32 0xA724);
-INSERT INTO t1 VALUES (_utf32 0xA725);
-INSERT INTO t1 VALUES (_utf32 0xA726);
-INSERT INTO t1 VALUES (_utf32 0xA727);
-INSERT INTO t1 VALUES (_utf32 0xA728);
-INSERT INTO t1 VALUES (_utf32 0xA729);
-INSERT INTO t1 VALUES (_utf32 0xA72A);
-INSERT INTO t1 VALUES (_utf32 0xA72B);
-INSERT INTO t1 VALUES (_utf32 0x2CEB);
-INSERT INTO t1 VALUES (_utf32 0x2CEC);
-INSERT INTO t1 VALUES (_utf32 0x2CED);
-INSERT INTO t1 VALUES (_utf32 0x2CEE);
-SELECT hex(c), hex(lower(c)), hex(upper(c)), hex(weight_string(c)), c
-FROM t1 ORDER BY c, BINARY c;
-hex(c) hex(lower(c)) hex(upper(c)) hex(weight_string(c)) c
-023A 2C65 023A 1214 Ⱥ
-2C65 2C65 023A 1214 â±¥
-0180 0180 0243 122D ƀ
-0243 0180 0243 122D Ƀ
-023B 023C 023B 1242 È»
-023C 023C 023B 1242 ȼ
-2183 2184 2183 124E Ↄ
-2184 2184 2183 124E ↄ
-0246 0247 0246 1270 Ɇ
-0247 0247 0246 1270 ɇ
-2132 214E 2132 12AE Ⅎ
-214E 214E 2132 12AE â…Ž
-2C67 2C68 2C67 12E3 Ⱨ
-2C68 2C68 2C67 12E3 ⱨ
-2C75 2C76 2C75 12E4 â±µ
-2C76 2C76 2C75 12E4 ⱶ
-A726 A727 A726 12E5 Ꜧ
-A727 A727 A726 12E5 ꜧ
-0248 0249 0248 130E Ɉ
-0249 0249 0248 130E ɉ
-2C69 2C6A 2C69 1328 Ⱪ
-2C6A 2C6A 2C69 1328 ⱪ
-023D 019A 023D 133B Ƚ
-2C60 2C61 2C60 133F â± 
-2C61 2C61 2C60 133F ⱡ
-026B 026B 2C62 1340 É«
-2C62 026B 2C62 1340 â±¢
-1D7D 1D7D 2C63 13B8 áµ½
-2C63 1D7D 2C63 13B8 â±£
-024A 024B 024A 13D2 ÉŠ
-024B 024B 024A 13D2 É‹
-024C 024D 024C 13E4 Ɍ
-024D 024D 024C 13E4 É
-027D 027D 2C64 13FC ɽ
-2C64 027D 2C64 13FC Ɽ
-A728 A729 A728 143314AD Ꜩ
-A729 A729 A728 143314AD ꜩ
-023E 2C66 023E 143C Ⱦ
-2C66 2C66 023E 143C ⱦ
-0244 0289 0244 145B É„
-0289 0289 0244 145B ʉ
-0245 028C 0245 1489 É…
-028C 028C 0245 1489 ʌ
-024E 024F 024E 14A4 ÉŽ
-024F 024F 024E 14A4 É
-2C6B 2C6C 2C6B 14C8 Ⱬ
-2C6C 2C6C 2C6B 14C8 ⱬ
-A72A A72B A72A 14F3 Ꜫ
-A72B A72B A72A 14F3 ꜫ
-0241 0242 0241 1506 É
-0242 0242 0241 1506 É‚
-A722 A723 A722 150E Ꜣ
-A723 A723 A722 150E ꜣ
-A724 A725 A724 1518 Ꜥ
-A725 A725 A724 1518 ꜥ
-0370 0371 0370 154F Í°
-0371 0371 0370 154F ͱ
-037C 037C 03FE 1564 ͼ
-03FE 037C 03FE 1564 Ͼ
-037B 037B 03FD 1565 Í»
-03FD 037B 03FD 1565 Ͻ
-037D 037D 03FF 1566 ͽ
-03FF 037D 03FF 1566 Ï¿
-0372 0373 0372 156F Ͳ
-0373 0373 0372 156F ͳ
-2C80 2C81 2C80 1571 â²€
-2C81 2C81 2C80 1571 â²
-2C82 2C83 2C82 1572 Ⲃ
-2C83 2C83 2C82 1572 ⲃ
-2C84 2C85 2C84 1573 Ⲅ
-2C85 2C85 2C84 1573 â²…
-2C86 2C87 2C86 1574 Ⲇ
-2C87 2C87 2C86 1574 ⲇ
-2C88 2C89 2C88 1575 Ⲉ
-2C89 2C89 2C88 1575 ⲉ
-2C8A 2C8B 2C8A 1577 Ⲋ
-2C8B 2C8B 2C8A 1577 ⲋ
-2C8C 2C8D 2C8C 1578 Ⲍ
-2C8D 2C8D 2C8C 1578 â²
-2C8E 2C8F 2C8E 1579 Ⲏ
-2C8F 2C8F 2C8E 1579 â²
-2CEB 2CEC 2CEB 1591 Ⳬ
-2CEC 2CEC 2CEB 1591 ⳬ
-2CED 2CEE 2CED 15A0 â³­
-2CEE 2CEE 2CED 15A0 â³®
-04FA 04FB 04FA 15D4 Óº
-04FB 04FB 04FA 15D4 Ó»
-04F6 04F7 04F6 15DC Ó¶
-04F7 04F7 04F6 15DC Ó·
-A640 A641 A640 1611 Ꙁ
-A641 A641 A640 1611 ê™
-0510 0511 0510 1613 Ô
-0511 0511 0510 1613 Ô‘
-A642 A643 A642 1618 Ꙃ
-A643 A643 A642 1618 ꙃ
-0512 0513 0512 1666 Ô’
-0513 0513 0512 1666 Ô“
-0514 0515 0514 166E Ô”
-0515 0515 0514 166E Ô•
-0516 0517 0516 16B7 Ô–
-0517 0517 0516 16B7 Ô—
-04FC 04FD 04FC 16F9 Ó¼
-04FD 04FD 04FC 16F9 Ó½
-04FE 04FF 04FE 16FD Ó¾
-04FF 04FF 04FE 16FD Ó¿
-04C0 04CF 04C0 17B1 Ó€
-04CF 04CF 04C0 17B1 Ó
-2C00 2C30 2C00 17B5 â°€
-2C30 2C30 2C00 17B5 â°°
-2C01 2C31 2C01 17B6 â°
-2C31 2C31 2C01 17B6 â°±
-2C02 2C32 2C02 17B7 â°‚
-2C32 2C32 2C02 17B7 â°²
-2C03 2C33 2C03 17B8 â°ƒ
-2C33 2C33 2C03 17B8 â°³
-2C04 2C34 2C04 17B9 â°„
-2C34 2C34 2C04 17B9 â°´
-2C05 2C35 2C05 17BA â°…
-2C35 2C35 2C05 17BA â°µ
-2C06 2C36 2C06 17BB â°†
-2C36 2C36 2C06 17BB â°¶
-2C07 2C37 2C07 17BC â°‡
-2C37 2C37 2C07 17BC â°·
-10A0 2D00 10A0 17E5 á‚ 
-2D00 2D00 10A0 17E5 â´€
-10A1 2D01 10A1 17E7 á‚¡
-2D01 2D01 10A1 17E7 â´
-10A2 2D02 10A2 17E9 á‚¢
-2D02 2D02 10A2 17E9 â´‚
-10A3 2D03 10A3 17EB á‚£
-2D03 2D03 10A3 17EB â´ƒ
-10A4 2D04 10A4 17ED Ⴄ
-2D04 2D04 10A4 17ED â´„
-10A5 2D05 10A5 17EF á‚¥
-2D05 2D05 10A5 17EF â´…
-10A6 2D06 10A6 17F1 Ⴆ
-2D06 2D06 10A6 17F1 â´†
-10A7 2D07 10A7 17F5 Ⴇ
-2D07 2D07 10A7 17F5 â´‡
-D801DC00 D801DC28 D801DC00 30D2 ð€
-D801DC28 D801DC28 D801DC00 30D2 ð¨
-D801DC01 D801DC29 D801DC01 30D3 ð
-D801DC29 D801DC29 D801DC01 30D3 ð©
-D801DC02 D801DC2A D801DC02 30D4 ð‚
-D801DC2A D801DC2A D801DC02 30D4 ðª
-D801DC03 D801DC2B D801DC03 30D5 ðƒ
-D801DC2B D801DC2B D801DC03 30D5 ð«
-D801DC04 D801DC2C D801DC04 30D6 ð„
-D801DC2C D801DC2C D801DC04 30D6 ð¬
-D801DC05 D801DC2D D801DC05 30D7 ð…
-D801DC2D D801DC2D D801DC05 30D7 ð­
-D801DC06 D801DC2E D801DC06 30D8 ð†
-D801DC2E D801DC2E D801DC06 30D8 ð®
-D801DC07 D801DC2F D801DC07 30D9 ð‡
-D801DC2F D801DC2F D801DC07 30D9 ð¯
-INSERT INTO t1 VALUES ('a');
-INSERT INTO t1 VALUES (concat(_utf32 0x61, _utf32 0xFFFF));
-INSERT INTO t1 VALUES (concat(_utf32 0x61, _utf32 0x10FFFF));
-INSERT INTO t1 VALUES (concat(_utf32 0x61, _utf32 0x10400));
-SELECT hex(c), hex(weight_string(c)) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
-hex(c) hex(weight_string(c))
-0061 120F
-0061D801DC00 120F30D2
-0061FFFF 120FFBC1FFFF
-0061DBFFDFFF 120FFBE1FFFF
-SELECT hex(c), hex(weight_string(c)), c FROM t1 WHERE c LIKE _utf32 0x10400 ORDER BY c, BINARY c;
-hex(c) hex(weight_string(c)) c
-D801DC00 30D2 ð€
-D801DC28 30D2 ð¨
-SELECT hex(c), hex(weight_string(c)), c FROM t1 WHERE c LIKE _utf32 0x10428 ORDER BY c, BINARY c;
-hex(c) hex(weight_string(c)) c
-D801DC00 30D2 ð€
-D801DC28 30D2 ð¨
-ALTER TABLE t1 ADD KEY(c);
-EXPLAIN SELECT hex(c) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c c 43 NULL 2 Using where; Using index
-SELECT hex(c), hex(weight_string(c)) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
-hex(c) hex(weight_string(c))
-0061 120F
-0061D801DC00 120F30D2
-0061FFFF 120FFBC1FFFF
-0061DBFFDFFF 120FFBE1FFFF
-SELECT hex(c), hex(weight_string(c)), c FROM t1 WHERE c LIKE _utf32 0x10400 ORDER BY c, BINARY c;
-hex(c) hex(weight_string(c)) c
-D801DC00 30D2 ð€
-D801DC28 30D2 ð¨
-SELECT hex(c), hex(weight_string(c)), c FROM t1 WHERE c LIKE _utf32 0x10428 ORDER BY c, BINARY c;
-hex(c) hex(weight_string(c)) c
-D801DC00 30D2 ð€
-D801DC28 30D2 ð¨
-DROP TABLE t1;
-#
-# End of 5.6 tests
-#
-#
-# Start of MariaDB-10.0 tests
-#
-
-#
-# MDEV-4929 Myanmar collation
-#
-SET NAMES utf8;
-SET collation_connection=utf16_myanmar_ci;
-#
-# Start of ctype_myanmar.inc
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf16_myanmar_ci
-CREATE TABLE t1 AS SELECT 100000 AS id, REPEAT(' ', 64) AS s1 LIMIT 0;
-SELECT COLLATION(s1) FROM t1;
-COLLATION(s1)
-DELETE FROM t1;
-ALTER TABLE t1 MODIFY id INT NOT NULL AUTO_INCREMENT PRIMARY KEY;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `s1` varchar(64) CHARACTER SET utf16 COLLATE utf16_myanmar_ci DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (s1) VALUES
-(_ucs2 0x108C),
-(_ucs2 0x1037),
-(_ucs2 0x1038),
-(_ucs2 0x10371038),
-('--- Vowels'),
-(_ucs2 0x102C),
-(_ucs2 0x102B),
-(_ucs2 0x1032),
-(_ucs2 0x1031102C),
-(_ucs2 0x1031102B),
-(_ucs2 0x1031102C103A),
-(_ucs2 0x1031102B103A),
-(_ucs2 0x1034),
-(_ucs2 0x1036),
-(_ucs2 0x102D102F),
-('--- Vowels with finals'),
-(_ucs2 0x10001039),
-(_ucs2 0x1000103A),
-(_ucs2 0x102C10001039),
-(_ucs2 0x102C1000103A),
-(_ucs2 0x102B10001039),
-(_ucs2 0x102B1000103A),
-(_ucs2 0x102D10001039),
-(_ucs2 0x102D1000103A),
-(_ucs2 0x102F10001039),
-(_ucs2 0x102F1000103A),
-(_ucs2 0x103110001039),
-(_ucs2 0x10311000103A),
-(_ucs2 0x1031102C10001039),
-(_ucs2 0x1031102C1000103A),
-(_ucs2 0x1031102B10001039),
-(_ucs2 0x1031102B1000103A),
-(_ucs2 0x102D102F10001039),
-(_ucs2 0x102D102F1000103A),
-(_ucs2 0x10011039),
-(_ucs2 0x1001103A),
-(_ucs2 0x102C10011039),
-(_ucs2 0x102C1001103A),
-(_ucs2 0x102B10011039),
-(_ucs2 0x102B1001103A),
-(_ucs2 0x102D10011039),
-(_ucs2 0x102D1001103A),
-(_ucs2 0x102F10011039),
-(_ucs2 0x102F1001103A),
-(_ucs2 0x103110011039),
-(_ucs2 0x10311001103A),
-(_ucs2 0x1031102C10011039),
-(_ucs2 0x1031102C1001103A),
-(_ucs2 0x1031102B10011039),
-(_ucs2 0x1031102B1001103A),
-(_ucs2 0x102D102F10011039),
-(_ucs2 0x102D102F1001103A),
-(_ucs2 0x10021039),
-(_ucs2 0x1002103A),
-(_ucs2 0x102C10021039),
-(_ucs2 0x102C1002103A),
-(_ucs2 0x102B10021039),
-(_ucs2 0x102B1002103A),
-(_ucs2 0x102D10021039),
-(_ucs2 0x102D1002103A),
-(_ucs2 0x102F10021039),
-(_ucs2 0x102F1002103A),
-(_ucs2 0x103110021039),
-(_ucs2 0x10311002103A),
-(_ucs2 0x1031102C10021039),
-(_ucs2 0x1031102C1002103A),
-(_ucs2 0x1031102B10021039),
-(_ucs2 0x1031102B1002103A),
-(_ucs2 0x102D102F10021039),
-(_ucs2 0x102D102F1002103A),
-(_ucs2 0x10031039),
-(_ucs2 0x1003103A),
-(_ucs2 0x102C10031039),
-(_ucs2 0x102C1003103A),
-(_ucs2 0x102B10031039),
-(_ucs2 0x102B1003103A),
-(_ucs2 0x102D10031039),
-(_ucs2 0x102D1003103A),
-(_ucs2 0x102F10031039),
-(_ucs2 0x102F1003103A),
-(_ucs2 0x103110031039),
-(_ucs2 0x10311003103A),
-(_ucs2 0x1031102C10031039),
-(_ucs2 0x1031102C1003103A),
-(_ucs2 0x1031102B10031039),
-(_ucs2 0x1031102B1003103A),
-(_ucs2 0x102D102F10031039),
-(_ucs2 0x102D102F1003103A),
-(_ucs2 0x1004103A1039),
-(_ucs2 0x1004103A),
-(_ucs2 0x102C1004103A1039),
-(_ucs2 0x102C1004103A),
-(_ucs2 0x102B1004103A1039),
-(_ucs2 0x102B1004103A),
-(_ucs2 0x102D1004103A1039),
-(_ucs2 0x102D1004103A),
-(_ucs2 0x102F1004103A1039),
-(_ucs2 0x102F1004103A),
-(_ucs2 0x10311004103A1039),
-(_ucs2 0x10311004103A),
-(_ucs2 0x1031102C1004103A1039),
-(_ucs2 0x1031102C1004103A),
-(_ucs2 0x1031102B1004103A1039),
-(_ucs2 0x1031102B1004103A),
-(_ucs2 0x102D102F1004103A1039),
-(_ucs2 0x102D102F1004103A),
-(_ucs2 0x10051039),
-(_ucs2 0x1005103A),
-(_ucs2 0x102C10051039),
-(_ucs2 0x102C1005103A),
-(_ucs2 0x102B10051039),
-(_ucs2 0x102B1005103A),
-(_ucs2 0x102D10051039),
-(_ucs2 0x102D1005103A),
-(_ucs2 0x102F10051039),
-(_ucs2 0x102F1005103A),
-(_ucs2 0x103110051039),
-(_ucs2 0x10311005103A),
-(_ucs2 0x1031102C10051039),
-(_ucs2 0x1031102C1005103A),
-(_ucs2 0x1031102B10051039),
-(_ucs2 0x1031102B1005103A),
-(_ucs2 0x102D102F10051039),
-(_ucs2 0x102D102F1005103A),
-(_ucs2 0x10061039),
-(_ucs2 0x1006103A),
-(_ucs2 0x102C10061039),
-(_ucs2 0x102C1006103A),
-(_ucs2 0x102B10061039),
-(_ucs2 0x102B1006103A),
-(_ucs2 0x102D10061039),
-(_ucs2 0x102D1006103A),
-(_ucs2 0x102F10061039),
-(_ucs2 0x102F1006103A),
-(_ucs2 0x103110061039),
-(_ucs2 0x10311006103A),
-(_ucs2 0x1031102C10061039),
-(_ucs2 0x1031102C1006103A),
-(_ucs2 0x1031102B10061039),
-(_ucs2 0x1031102B1006103A),
-(_ucs2 0x102D102F10061039),
-(_ucs2 0x102D102F1006103A),
-(_ucs2 0x10071039),
-(_ucs2 0x1007103A),
-(_ucs2 0x102C10071039),
-(_ucs2 0x102C1007103A),
-(_ucs2 0x102B10071039),
-(_ucs2 0x102B1007103A),
-(_ucs2 0x102D10071039),
-(_ucs2 0x102D1007103A),
-(_ucs2 0x102F10071039),
-(_ucs2 0x102F1007103A),
-(_ucs2 0x103110071039),
-(_ucs2 0x10311007103A),
-(_ucs2 0x1031102C10071039),
-(_ucs2 0x1031102C1007103A),
-(_ucs2 0x1031102B10071039),
-(_ucs2 0x1031102B1007103A),
-(_ucs2 0x102D102F10071039),
-(_ucs2 0x102D102F1007103A),
-(_ucs2 0x1008103A),
-(_ucs2 0x102C1008103A),
-(_ucs2 0x102B1008103A),
-(_ucs2 0x102D1008103A),
-(_ucs2 0x102F1008103A),
-(_ucs2 0x10311008103A),
-(_ucs2 0x1031102C1008103A),
-(_ucs2 0x1031102B1008103A),
-(_ucs2 0x102D102F1008103A),
-(_ucs2 0x10091039),
-(_ucs2 0x1009103A),
-(_ucs2 0x102C10091039),
-(_ucs2 0x102C1009103A),
-(_ucs2 0x102B10091039),
-(_ucs2 0x102B1009103A),
-(_ucs2 0x102D10091039),
-(_ucs2 0x102D1009103A),
-(_ucs2 0x102F10091039),
-(_ucs2 0x102F1009103A),
-(_ucs2 0x103110091039),
-(_ucs2 0x10311009103A),
-(_ucs2 0x1031102C10091039),
-(_ucs2 0x1031102C1009103A),
-(_ucs2 0x1031102B10091039),
-(_ucs2 0x1031102B1009103A),
-(_ucs2 0x102D102F10091039),
-(_ucs2 0x102D102F1009103A),
-(_ucs2 0x100A1039),
-(_ucs2 0x100A103A),
-(_ucs2 0x102C100A1039),
-(_ucs2 0x102C100A103A),
-(_ucs2 0x102B100A1039),
-(_ucs2 0x102B100A103A),
-(_ucs2 0x102D100A1039),
-(_ucs2 0x102D100A103A),
-(_ucs2 0x102F100A1039),
-(_ucs2 0x102F100A103A),
-(_ucs2 0x1031100A1039),
-(_ucs2 0x1031100A103A),
-(_ucs2 0x1031102C100A1039),
-(_ucs2 0x1031102C100A103A),
-(_ucs2 0x1031102B100A1039),
-(_ucs2 0x1031102B100A103A),
-(_ucs2 0x102D102F100A1039),
-(_ucs2 0x102D102F100A103A),
-(_ucs2 0x100B1039),
-(_ucs2 0x100B103A),
-(_ucs2 0x102C100B1039),
-(_ucs2 0x102C100B103A),
-(_ucs2 0x102B100B1039),
-(_ucs2 0x102B100B103A),
-(_ucs2 0x102D100B1039),
-(_ucs2 0x102D100B103A),
-(_ucs2 0x102F100B1039),
-(_ucs2 0x102F100B103A),
-(_ucs2 0x1031100B1039),
-(_ucs2 0x1031100B103A),
-(_ucs2 0x1031102C100B1039),
-(_ucs2 0x1031102C100B103A),
-(_ucs2 0x1031102B100B1039),
-(_ucs2 0x1031102B100B103A),
-(_ucs2 0x102D102F100B1039),
-(_ucs2 0x102D102F100B103A),
-(_ucs2 0x100C1039),
-(_ucs2 0x100C103A),
-(_ucs2 0x102C100C1039),
-(_ucs2 0x102C100C103A),
-(_ucs2 0x102B100C1039),
-(_ucs2 0x102B100C103A),
-(_ucs2 0x102D100C1039),
-(_ucs2 0x102D100C103A),
-(_ucs2 0x102F100C1039),
-(_ucs2 0x102F100C103A),
-(_ucs2 0x1031100C1039),
-(_ucs2 0x1031100C103A),
-(_ucs2 0x1031102C100C1039),
-(_ucs2 0x1031102C100C103A),
-(_ucs2 0x1031102B100C1039),
-(_ucs2 0x1031102B100C103A),
-(_ucs2 0x102D102F100C1039),
-(_ucs2 0x102D102F100C103A),
-(_ucs2 0x100D1039),
-(_ucs2 0x100D103A),
-(_ucs2 0x102C100D1039),
-(_ucs2 0x102C100D103A),
-(_ucs2 0x102B100D1039),
-(_ucs2 0x102B100D103A),
-(_ucs2 0x102D100D1039),
-(_ucs2 0x102D100D103A),
-(_ucs2 0x102F100D1039),
-(_ucs2 0x102F100D103A),
-(_ucs2 0x1031100D1039),
-(_ucs2 0x1031100D103A),
-(_ucs2 0x1031102C100D1039),
-(_ucs2 0x1031102C100D103A),
-(_ucs2 0x1031102B100D1039),
-(_ucs2 0x1031102B100D103A),
-(_ucs2 0x102D102F100D1039),
-(_ucs2 0x102D102F100D103A),
-(_ucs2 0x100E1039),
-(_ucs2 0x100E103A),
-(_ucs2 0x102C100E1039),
-(_ucs2 0x102C100E103A),
-(_ucs2 0x102B100E1039),
-(_ucs2 0x102B100E103A),
-(_ucs2 0x102D100E1039),
-(_ucs2 0x102D100E103A),
-(_ucs2 0x102F100E1039),
-(_ucs2 0x102F100E103A),
-(_ucs2 0x1031100E1039),
-(_ucs2 0x1031100E103A),
-(_ucs2 0x1031102C100E1039),
-(_ucs2 0x1031102C100E103A),
-(_ucs2 0x1031102B100E1039),
-(_ucs2 0x1031102B100E103A),
-(_ucs2 0x102D102F100E1039),
-(_ucs2 0x102D102F100E103A),
-(_ucs2 0x100F1039),
-(_ucs2 0x100F103A),
-(_ucs2 0x102C100F1039),
-(_ucs2 0x102C100F103A),
-(_ucs2 0x102B100F1039),
-(_ucs2 0x102B100F103A),
-(_ucs2 0x102D100F1039),
-(_ucs2 0x102D100F103A),
-(_ucs2 0x102F100F1039),
-(_ucs2 0x102F100F103A),
-(_ucs2 0x1031100F1039),
-(_ucs2 0x1031100F103A),
-(_ucs2 0x1031102C100F1039),
-(_ucs2 0x1031102C100F103A),
-(_ucs2 0x1031102B100F1039),
-(_ucs2 0x1031102B100F103A),
-(_ucs2 0x102D102F100F1039),
-(_ucs2 0x102D102F100F103A),
-(_ucs2 0x10101039),
-(_ucs2 0x1010103A),
-(_ucs2 0x102C10101039),
-(_ucs2 0x102C1010103A),
-(_ucs2 0x102B10101039),
-(_ucs2 0x102B1010103A),
-(_ucs2 0x102D10101039),
-(_ucs2 0x102D1010103A),
-(_ucs2 0x102F10101039),
-(_ucs2 0x102F1010103A),
-(_ucs2 0x103110101039),
-(_ucs2 0x10311010103A),
-(_ucs2 0x1031102C10101039),
-(_ucs2 0x1031102C1010103A),
-(_ucs2 0x1031102B10101039),
-(_ucs2 0x1031102B1010103A),
-(_ucs2 0x102D102F10101039),
-(_ucs2 0x102D102F1010103A),
-(_ucs2 0x10111039),
-(_ucs2 0x1011103A),
-(_ucs2 0x102C10111039),
-(_ucs2 0x102C1011103A),
-(_ucs2 0x102B10111039),
-(_ucs2 0x102B1011103A),
-(_ucs2 0x102D10111039),
-(_ucs2 0x102D1011103A),
-(_ucs2 0x102F10111039),
-(_ucs2 0x102F1011103A),
-(_ucs2 0x103110111039),
-(_ucs2 0x10311011103A),
-(_ucs2 0x1031102C10111039),
-(_ucs2 0x1031102C1011103A),
-(_ucs2 0x1031102B10111039),
-(_ucs2 0x1031102B1011103A),
-(_ucs2 0x102D102F10111039),
-(_ucs2 0x102D102F1011103A),
-(_ucs2 0x10121039),
-(_ucs2 0x1012103A),
-(_ucs2 0x102C10121039),
-(_ucs2 0x102C1012103A),
-(_ucs2 0x102B10121039),
-(_ucs2 0x102B1012103A),
-(_ucs2 0x102D10121039),
-(_ucs2 0x102D1012103A),
-(_ucs2 0x102F10121039),
-(_ucs2 0x102F1012103A),
-(_ucs2 0x103110121039),
-(_ucs2 0x10311012103A),
-(_ucs2 0x1031102C10121039),
-(_ucs2 0x1031102C1012103A),
-(_ucs2 0x1031102B10121039),
-(_ucs2 0x1031102B1012103A),
-(_ucs2 0x102D102F10121039),
-(_ucs2 0x102D102F1012103A),
-(_ucs2 0x10131039),
-(_ucs2 0x1013103A),
-(_ucs2 0x102C10131039),
-(_ucs2 0x102C1013103A),
-(_ucs2 0x102B10131039),
-(_ucs2 0x102B1013103A),
-(_ucs2 0x102D10131039),
-(_ucs2 0x102D1013103A),
-(_ucs2 0x102F10131039),
-(_ucs2 0x102F1013103A),
-(_ucs2 0x103110131039),
-(_ucs2 0x10311013103A),
-(_ucs2 0x1031102C10131039),
-(_ucs2 0x1031102C1013103A),
-(_ucs2 0x1031102B10131039),
-(_ucs2 0x1031102B1013103A),
-(_ucs2 0x102D102F10131039),
-(_ucs2 0x102D102F1013103A),
-(_ucs2 0x10141039),
-(_ucs2 0x1014103A),
-(_ucs2 0x102C10141039),
-(_ucs2 0x102C1014103A),
-(_ucs2 0x102B10141039),
-(_ucs2 0x102B1014103A),
-(_ucs2 0x102D10141039),
-(_ucs2 0x102D1014103A),
-(_ucs2 0x102F10141039),
-(_ucs2 0x102F1014103A),
-(_ucs2 0x103110141039),
-(_ucs2 0x10311014103A),
-(_ucs2 0x1031102C10141039),
-(_ucs2 0x1031102C1014103A),
-(_ucs2 0x1031102B10141039),
-(_ucs2 0x1031102B1014103A),
-(_ucs2 0x102D102F10141039),
-(_ucs2 0x102D102F1014103A),
-(_ucs2 0x10151039),
-(_ucs2 0x1015103A),
-(_ucs2 0x102C10151039),
-(_ucs2 0x102C1015103A),
-(_ucs2 0x102B10151039),
-(_ucs2 0x102B1015103A),
-(_ucs2 0x102D10151039),
-(_ucs2 0x102D1015103A),
-(_ucs2 0x102F10151039),
-(_ucs2 0x102F1015103A),
-(_ucs2 0x103110151039),
-(_ucs2 0x10311015103A),
-(_ucs2 0x1031102C10151039),
-(_ucs2 0x1031102C1015103A),
-(_ucs2 0x1031102B10151039),
-(_ucs2 0x1031102B1015103A),
-(_ucs2 0x102D102F10151039),
-(_ucs2 0x102D102F1015103A),
-(_ucs2 0x10161039),
-(_ucs2 0x1016103A),
-(_ucs2 0x102C10161039),
-(_ucs2 0x102C1016103A),
-(_ucs2 0x102B10161039),
-(_ucs2 0x102B1016103A),
-(_ucs2 0x102D10161039),
-(_ucs2 0x102D1016103A),
-(_ucs2 0x102F10161039),
-(_ucs2 0x102F1016103A),
-(_ucs2 0x103110161039),
-(_ucs2 0x10311016103A),
-(_ucs2 0x1031102C10161039),
-(_ucs2 0x1031102C1016103A),
-(_ucs2 0x1031102B10161039),
-(_ucs2 0x1031102B1016103A),
-(_ucs2 0x102D102F10161039),
-(_ucs2 0x102D102F1016103A),
-(_ucs2 0x10171039),
-(_ucs2 0x1017103A),
-(_ucs2 0x102C10171039),
-(_ucs2 0x102C1017103A),
-(_ucs2 0x102B10171039),
-(_ucs2 0x102B1017103A),
-(_ucs2 0x102D10171039),
-(_ucs2 0x102D1017103A),
-(_ucs2 0x102F10171039),
-(_ucs2 0x102F1017103A),
-(_ucs2 0x103110171039),
-(_ucs2 0x10311017103A),
-(_ucs2 0x1031102C10171039),
-(_ucs2 0x1031102C1017103A),
-(_ucs2 0x1031102B10171039),
-(_ucs2 0x1031102B1017103A),
-(_ucs2 0x102D102F10171039),
-(_ucs2 0x102D102F1017103A),
-(_ucs2 0x10181039),
-(_ucs2 0x1018103A),
-(_ucs2 0x102C10181039),
-(_ucs2 0x102C1018103A),
-(_ucs2 0x102B10181039),
-(_ucs2 0x102B1018103A),
-(_ucs2 0x102D10181039),
-(_ucs2 0x102D1018103A),
-(_ucs2 0x102F10181039),
-(_ucs2 0x102F1018103A),
-(_ucs2 0x103110181039),
-(_ucs2 0x10311018103A),
-(_ucs2 0x1031102C10181039),
-(_ucs2 0x1031102C1018103A),
-(_ucs2 0x1031102B10181039),
-(_ucs2 0x1031102B1018103A),
-(_ucs2 0x102D102F10181039),
-(_ucs2 0x102D102F1018103A),
-(_ucs2 0x10191039),
-(_ucs2 0x1019103A),
-(_ucs2 0x102C10191039),
-(_ucs2 0x102C1019103A),
-(_ucs2 0x102B10191039),
-(_ucs2 0x102B1019103A),
-(_ucs2 0x102D10191039),
-(_ucs2 0x102D1019103A),
-(_ucs2 0x102F10191039),
-(_ucs2 0x102F1019103A),
-(_ucs2 0x103110191039),
-(_ucs2 0x10311019103A),
-(_ucs2 0x1031102C10191039),
-(_ucs2 0x1031102C1019103A),
-(_ucs2 0x1031102B10191039),
-(_ucs2 0x1031102B1019103A),
-(_ucs2 0x102D102F10191039),
-(_ucs2 0x102D102F1019103A),
-(_ucs2 0x101A1039),
-(_ucs2 0x101A103A),
-(_ucs2 0x102C101A1039),
-(_ucs2 0x102C101A103A),
-(_ucs2 0x102B101A1039),
-(_ucs2 0x102B101A103A),
-(_ucs2 0x102D101A1039),
-(_ucs2 0x102D101A103A),
-(_ucs2 0x102F101A1039),
-(_ucs2 0x102F101A103A),
-(_ucs2 0x1031101A1039),
-(_ucs2 0x1031101A103A),
-(_ucs2 0x1031102C101A1039),
-(_ucs2 0x1031102C101A103A),
-(_ucs2 0x1031102B101A1039),
-(_ucs2 0x1031102B101A103A),
-(_ucs2 0x102D102F101A1039),
-(_ucs2 0x102D102F101A103A),
-(_ucs2 0x101B1039),
-(_ucs2 0x101B103A),
-(_ucs2 0x102C101B1039),
-(_ucs2 0x102C101B103A),
-(_ucs2 0x102B101B1039),
-(_ucs2 0x102B101B103A),
-(_ucs2 0x102D101B1039),
-(_ucs2 0x102D101B103A),
-(_ucs2 0x102F101B1039),
-(_ucs2 0x102F101B103A),
-(_ucs2 0x1031101B1039),
-(_ucs2 0x1031101B103A),
-(_ucs2 0x1031102C101B1039),
-(_ucs2 0x1031102C101B103A),
-(_ucs2 0x1031102B101B1039),
-(_ucs2 0x1031102B101B103A),
-(_ucs2 0x102D102F101B1039),
-(_ucs2 0x102D102F101B103A),
-(_ucs2 0x101C1039),
-(_ucs2 0x101C103A),
-(_ucs2 0x102C101C1039),
-(_ucs2 0x102C101C103A),
-(_ucs2 0x102B101C1039),
-(_ucs2 0x102B101C103A),
-(_ucs2 0x102D101C1039),
-(_ucs2 0x102D101C103A),
-(_ucs2 0x102F101C1039),
-(_ucs2 0x102F101C103A),
-(_ucs2 0x1031101C1039),
-(_ucs2 0x1031101C103A),
-(_ucs2 0x1031102C101C1039),
-(_ucs2 0x1031102C101C103A),
-(_ucs2 0x1031102B101C1039),
-(_ucs2 0x1031102B101C103A),
-(_ucs2 0x102D102F101C1039),
-(_ucs2 0x102D102F101C103A),
-(_ucs2 0x101D103A),
-(_ucs2 0x102C101D103A),
-(_ucs2 0x102B101D103A),
-(_ucs2 0x102D101D103A),
-(_ucs2 0x102F101D103A),
-(_ucs2 0x1031101D103A),
-(_ucs2 0x1031102C101D103A),
-(_ucs2 0x1031102B101D103A),
-(_ucs2 0x102D102F101D103A),
-(_ucs2 0x101E1039),
-(_ucs2 0x101E103A),
-(_ucs2 0x102C101E1039),
-(_ucs2 0x102C101E103A),
-(_ucs2 0x102B101E1039),
-(_ucs2 0x102B101E103A),
-(_ucs2 0x102D101E1039),
-(_ucs2 0x102D101E103A),
-(_ucs2 0x102F101E1039),
-(_ucs2 0x102F101E103A),
-(_ucs2 0x1031101E1039),
-(_ucs2 0x1031101E103A),
-(_ucs2 0x1031102C101E1039),
-(_ucs2 0x1031102C101E103A),
-(_ucs2 0x1031102B101E1039),
-(_ucs2 0x1031102B101E103A),
-(_ucs2 0x102D102F101E1039),
-(_ucs2 0x102D102F101E103A),
-(_ucs2 0x101F1039),
-(_ucs2 0x101F103A),
-(_ucs2 0x102C101F1039),
-(_ucs2 0x102C101F103A),
-(_ucs2 0x102B101F1039),
-(_ucs2 0x102B101F103A),
-(_ucs2 0x102D101F1039),
-(_ucs2 0x102D101F103A),
-(_ucs2 0x102F101F1039),
-(_ucs2 0x102F101F103A),
-(_ucs2 0x1031101F1039),
-(_ucs2 0x1031101F103A),
-(_ucs2 0x1031102C101F1039),
-(_ucs2 0x1031102C101F103A),
-(_ucs2 0x1031102B101F1039),
-(_ucs2 0x1031102B101F103A),
-(_ucs2 0x102D102F101F1039),
-(_ucs2 0x102D102F101F103A),
-(_ucs2 0x1020103A),
-(_ucs2 0x102C1020103A),
-(_ucs2 0x102B1020103A),
-(_ucs2 0x102D1020103A),
-(_ucs2 0x102F1020103A),
-(_ucs2 0x10311020103A),
-(_ucs2 0x1031102C1020103A),
-(_ucs2 0x1031102B1020103A),
-(_ucs2 0x102D102F1020103A),
-(_ucs2 0x1021103A),
-(_ucs2 0x102C1021103A),
-(_ucs2 0x102B1021103A),
-(_ucs2 0x102D1021103A),
-(_ucs2 0x102F1021103A),
-(_ucs2 0x10311021103A),
-(_ucs2 0x1031102C1021103A),
-(_ucs2 0x1031102B1021103A),
-(_ucs2 0x102D102F1021103A),
-('--- Medials'),
-(_ucs2 0x105E),
-(_ucs2 0x105F),
-(_ucs2 0x103B),
-(_ucs2 0x103C),
-(_ucs2 0x1060),
-(_ucs2 0x103D),
-(_ucs2 0x1082),
-(_ucs2 0x103E),
-(_ucs2 0x103B103D),
-(_ucs2 0x103C103D),
-(_ucs2 0x103B103E),
-(_ucs2 0x103C103E),
-(_ucs2 0x103D103E),
-(_ucs2 0x103B103D103E),
-(_ucs2 0x103C103D103E),
-('--- Independent vowels'),
-(_ucs2 0x1021102D),
-(_ucs2 0x1023),
-(_ucs2 0x1021102E),
-(_ucs2 0x1024),
-(_ucs2 0x1021102F),
-(_ucs2 0x1025),
-(_ucs2 0x10211030),
-(_ucs2 0x1026),
-(_ucs2 0x10211031),
-(_ucs2 0x1027),
-(_ucs2 0x1028),
-(_ucs2 0x10211031102C),
-(_ucs2 0x1029),
-(_ucs2 0x10211031102C103A),
-(_ucs2 0x102A),
-(_ucs2 0x102D1019103A),
-(_ucs2 0x102D1036),
-(_ucs2 0x102D1019103A1037),
-(_ucs2 0x102D10361037),
-(_ucs2 0x102D1019103A1038),
-(_ucs2 0x102D10361038),
-(_ucs2 0x102F1019103A),
-(_ucs2 0x102F1036),
-(_ucs2 0x102F1019103A1037),
-(_ucs2 0x102F10361037),
-(_ucs2 0x102F1019103A1038),
-(_ucs2 0x102F10361038),
-(_ucs2 0x1021102F1036),
-(_ucs2 0x1025102F1036),
-('--- Independent vowels with finals'),
-(_ucs2 0x1021102D10001039),
-(_ucs2 0x102310001039),
-(_ucs2 0x1021102D1000103A),
-(_ucs2 0x10231000103A),
-(_ucs2 0x1021102F10001039),
-(_ucs2 0x102510001039),
-(_ucs2 0x1021102F1000103A),
-(_ucs2 0x10251000103A),
-(_ucs2 0x1021103110001039),
-(_ucs2 0x102710001039),
-(_ucs2 0x102110311000103A),
-(_ucs2 0x10271000103A),
-(_ucs2 0x10211031102C10001039),
-(_ucs2 0x102910001039),
-(_ucs2 0x10211031102C1000103A),
-(_ucs2 0x10291000103A),
-(_ucs2 0x10211031102C10001039),
-(_ucs2 0x10291031102C10001039),
-(_ucs2 0x10211031102C1000103A),
-(_ucs2 0x10291031102C1000103A),
-(_ucs2 0x1021102D10011039),
-(_ucs2 0x102310011039),
-(_ucs2 0x1021102D1001103A),
-(_ucs2 0x10231001103A),
-(_ucs2 0x1021102F10011039),
-(_ucs2 0x102510011039),
-(_ucs2 0x1021102F1001103A),
-(_ucs2 0x10251001103A),
-(_ucs2 0x1021103110011039),
-(_ucs2 0x102710011039),
-(_ucs2 0x102110311001103A),
-(_ucs2 0x10271001103A),
-(_ucs2 0x10211031102C10011039),
-(_ucs2 0x102910011039),
-(_ucs2 0x10211031102C1001103A),
-(_ucs2 0x10291001103A),
-(_ucs2 0x10211031102C10011039),
-(_ucs2 0x10291031102C10011039),
-(_ucs2 0x10211031102C1001103A),
-(_ucs2 0x10291031102C1001103A),
-(_ucs2 0x1021102D10021039),
-(_ucs2 0x102310021039),
-(_ucs2 0x1021102D1002103A),
-(_ucs2 0x10231002103A),
-(_ucs2 0x1021102F10021039),
-(_ucs2 0x102510021039),
-(_ucs2 0x1021102F1002103A),
-(_ucs2 0x10251002103A),
-(_ucs2 0x1021103110021039),
-(_ucs2 0x102710021039),
-(_ucs2 0x102110311002103A),
-(_ucs2 0x10271002103A),
-(_ucs2 0x10211031102C10021039),
-(_ucs2 0x102910021039),
-(_ucs2 0x10211031102C1002103A),
-(_ucs2 0x10291002103A),
-(_ucs2 0x10211031102C10021039),
-(_ucs2 0x10291031102C10021039),
-(_ucs2 0x10211031102C1002103A),
-(_ucs2 0x10291031102C1002103A),
-(_ucs2 0x1021102D10031039),
-(_ucs2 0x102310031039),
-(_ucs2 0x1021102D1003103A),
-(_ucs2 0x10231003103A),
-(_ucs2 0x1021102F10031039),
-(_ucs2 0x102510031039),
-(_ucs2 0x1021102F1003103A),
-(_ucs2 0x10251003103A),
-(_ucs2 0x1021103110031039),
-(_ucs2 0x102710031039),
-(_ucs2 0x102110311003103A),
-(_ucs2 0x10271003103A),
-(_ucs2 0x10211031102C10031039),
-(_ucs2 0x102910031039),
-(_ucs2 0x10211031102C1003103A),
-(_ucs2 0x10291003103A),
-(_ucs2 0x10211031102C10031039),
-(_ucs2 0x10291031102C10031039),
-(_ucs2 0x10211031102C1003103A),
-(_ucs2 0x10291031102C1003103A),
-(_ucs2 0x1021102D10041039),
-(_ucs2 0x102310041039),
-(_ucs2 0x1021102D1004103A),
-(_ucs2 0x10231004103A),
-(_ucs2 0x1021102F10041039),
-(_ucs2 0x102510041039),
-(_ucs2 0x1021102F1004103A),
-(_ucs2 0x10251004103A),
-(_ucs2 0x1021103110041039),
-(_ucs2 0x102710041039),
-(_ucs2 0x102110311004103A),
-(_ucs2 0x10271004103A),
-(_ucs2 0x10211031102C10041039),
-(_ucs2 0x102910041039),
-(_ucs2 0x10211031102C1004103A),
-(_ucs2 0x10291004103A),
-(_ucs2 0x10211031102C10041039),
-(_ucs2 0x10291031102C10041039),
-(_ucs2 0x10211031102C1004103A),
-(_ucs2 0x10291031102C1004103A),
-(_ucs2 0x1021102D10051039),
-(_ucs2 0x102310051039),
-(_ucs2 0x1021102D1005103A),
-(_ucs2 0x10231005103A),
-(_ucs2 0x1021102F10051039),
-(_ucs2 0x102510051039),
-(_ucs2 0x1021102F1005103A),
-(_ucs2 0x10251005103A),
-(_ucs2 0x1021103110051039),
-(_ucs2 0x102710051039),
-(_ucs2 0x102110311005103A),
-(_ucs2 0x10271005103A),
-(_ucs2 0x10211031102C10051039),
-(_ucs2 0x102910051039),
-(_ucs2 0x10211031102C1005103A),
-(_ucs2 0x10291005103A),
-(_ucs2 0x10211031102C10051039),
-(_ucs2 0x10291031102C10051039),
-(_ucs2 0x10211031102C1005103A),
-(_ucs2 0x10291031102C1005103A),
-(_ucs2 0x1021102D10061039),
-(_ucs2 0x102310061039),
-(_ucs2 0x1021102D1006103A),
-(_ucs2 0x10231006103A),
-(_ucs2 0x1021102F10061039),
-(_ucs2 0x102510061039),
-(_ucs2 0x1021102F1006103A),
-(_ucs2 0x10251006103A),
-(_ucs2 0x1021103110061039),
-(_ucs2 0x102710061039),
-(_ucs2 0x102110311006103A),
-(_ucs2 0x10271006103A),
-(_ucs2 0x10211031102C10061039),
-(_ucs2 0x102910061039),
-(_ucs2 0x10211031102C1006103A),
-(_ucs2 0x10291006103A),
-(_ucs2 0x10211031102C10061039),
-(_ucs2 0x10291031102C10061039),
-(_ucs2 0x10211031102C1006103A),
-(_ucs2 0x10291031102C1006103A),
-(_ucs2 0x1021102D10071039),
-(_ucs2 0x102310071039),
-(_ucs2 0x1021102D1007103A),
-(_ucs2 0x10231007103A),
-(_ucs2 0x1021102F10071039),
-(_ucs2 0x102510071039),
-(_ucs2 0x1021102F1007103A),
-(_ucs2 0x10251007103A),
-(_ucs2 0x1021103110071039),
-(_ucs2 0x102710071039),
-(_ucs2 0x102110311007103A),
-(_ucs2 0x10271007103A),
-(_ucs2 0x10211031102C10071039),
-(_ucs2 0x102910071039),
-(_ucs2 0x10211031102C1007103A),
-(_ucs2 0x10291007103A),
-(_ucs2 0x10211031102C10071039),
-(_ucs2 0x10291031102C10071039),
-(_ucs2 0x10211031102C1007103A),
-(_ucs2 0x10291031102C1007103A),
-(_ucs2 0x1021102D10091039),
-(_ucs2 0x102310091039),
-(_ucs2 0x1021102D1009103A),
-(_ucs2 0x10231009103A),
-(_ucs2 0x1021102F10091039),
-(_ucs2 0x102510091039),
-(_ucs2 0x1021102F1009103A),
-(_ucs2 0x10251009103A),
-(_ucs2 0x1021103110091039),
-(_ucs2 0x102710091039),
-(_ucs2 0x102110311009103A),
-(_ucs2 0x10271009103A),
-(_ucs2 0x10211031102C10091039),
-(_ucs2 0x102910091039),
-(_ucs2 0x10211031102C1009103A),
-(_ucs2 0x10291009103A),
-(_ucs2 0x10211031102C10091039),
-(_ucs2 0x10291031102C10091039),
-(_ucs2 0x10211031102C1009103A),
-(_ucs2 0x10291031102C1009103A),
-(_ucs2 0x1021102D100A1039),
-(_ucs2 0x1023100A1039),
-(_ucs2 0x1021102D100A103A),
-(_ucs2 0x1023100A103A),
-(_ucs2 0x1021102F100A1039),
-(_ucs2 0x1025100A1039),
-(_ucs2 0x1021102F100A103A),
-(_ucs2 0x1025100A103A),
-(_ucs2 0x10211031100A1039),
-(_ucs2 0x1027100A1039),
-(_ucs2 0x10211031100A103A),
-(_ucs2 0x1027100A103A),
-(_ucs2 0x10211031102C100A1039),
-(_ucs2 0x1029100A1039),
-(_ucs2 0x10211031102C100A103A),
-(_ucs2 0x1029100A103A),
-(_ucs2 0x10211031102C100A1039),
-(_ucs2 0x10291031102C100A1039),
-(_ucs2 0x10211031102C100A103A),
-(_ucs2 0x10291031102C100A103A),
-(_ucs2 0x1021102D100B1039),
-(_ucs2 0x1023100B1039),
-(_ucs2 0x1021102D100B103A),
-(_ucs2 0x1023100B103A),
-(_ucs2 0x1021102F100B1039),
-(_ucs2 0x1025100B1039),
-(_ucs2 0x1021102F100B103A),
-(_ucs2 0x1025100B103A),
-(_ucs2 0x10211031100B1039),
-(_ucs2 0x1027100B1039),
-(_ucs2 0x10211031100B103A),
-(_ucs2 0x1027100B103A),
-(_ucs2 0x10211031102C100B1039),
-(_ucs2 0x1029100B1039),
-(_ucs2 0x10211031102C100B103A),
-(_ucs2 0x1029100B103A),
-(_ucs2 0x10211031102C100B1039),
-(_ucs2 0x10291031102C100B1039),
-(_ucs2 0x10211031102C100B103A),
-(_ucs2 0x10291031102C100B103A),
-(_ucs2 0x1021102D100C1039),
-(_ucs2 0x1023100C1039),
-(_ucs2 0x1021102D100C103A),
-(_ucs2 0x1023100C103A),
-(_ucs2 0x1021102F100C1039),
-(_ucs2 0x1025100C1039),
-(_ucs2 0x1021102F100C103A),
-(_ucs2 0x1025100C103A),
-(_ucs2 0x10211031100C1039),
-(_ucs2 0x1027100C1039),
-(_ucs2 0x10211031100C103A),
-(_ucs2 0x1027100C103A),
-(_ucs2 0x10211031102C100C1039),
-(_ucs2 0x1029100C1039),
-(_ucs2 0x10211031102C100C103A),
-(_ucs2 0x1029100C103A),
-(_ucs2 0x10211031102C100C1039),
-(_ucs2 0x10291031102C100C1039),
-(_ucs2 0x10211031102C100C103A),
-(_ucs2 0x10291031102C100C103A),
-(_ucs2 0x1021102D100D1039),
-(_ucs2 0x1023100D1039),
-(_ucs2 0x1021102D100D103A),
-(_ucs2 0x1023100D103A),
-(_ucs2 0x1021102F100D1039),
-(_ucs2 0x1025100D1039),
-(_ucs2 0x1021102F100D103A),
-(_ucs2 0x1025100D103A),
-(_ucs2 0x10211031100D1039),
-(_ucs2 0x1027100D1039),
-(_ucs2 0x10211031100D103A),
-(_ucs2 0x1027100D103A),
-(_ucs2 0x10211031102C100D1039),
-(_ucs2 0x1029100D1039),
-(_ucs2 0x10211031102C100D103A),
-(_ucs2 0x1029100D103A),
-(_ucs2 0x10211031102C100D1039),
-(_ucs2 0x10291031102C100D1039),
-(_ucs2 0x10211031102C100D103A),
-(_ucs2 0x10291031102C100D103A),
-(_ucs2 0x1021102D100E1039),
-(_ucs2 0x1023100E1039),
-(_ucs2 0x1021102D100E103A),
-(_ucs2 0x1023100E103A),
-(_ucs2 0x1021102F100E1039),
-(_ucs2 0x1025100E1039),
-(_ucs2 0x1021102F100E103A),
-(_ucs2 0x1025100E103A),
-(_ucs2 0x10211031100E1039),
-(_ucs2 0x1027100E1039),
-(_ucs2 0x10211031100E103A),
-(_ucs2 0x1027100E103A),
-(_ucs2 0x10211031102C100E1039),
-(_ucs2 0x1029100E1039),
-(_ucs2 0x10211031102C100E103A),
-(_ucs2 0x1029100E103A),
-(_ucs2 0x10211031102C100E1039),
-(_ucs2 0x10291031102C100E1039),
-(_ucs2 0x10211031102C100E103A),
-(_ucs2 0x10291031102C100E103A),
-(_ucs2 0x1021102D100F1039),
-(_ucs2 0x1023100F1039),
-(_ucs2 0x1021102D100F103A),
-(_ucs2 0x1023100F103A),
-(_ucs2 0x1021102F100F1039),
-(_ucs2 0x1025100F1039),
-(_ucs2 0x1021102F100F103A),
-(_ucs2 0x1025100F103A),
-(_ucs2 0x10211031100F1039),
-(_ucs2 0x1027100F1039),
-(_ucs2 0x10211031100F103A),
-(_ucs2 0x1027100F103A),
-(_ucs2 0x10211031102C100F1039),
-(_ucs2 0x1029100F1039),
-(_ucs2 0x10211031102C100F103A),
-(_ucs2 0x1029100F103A),
-(_ucs2 0x10211031102C100F1039),
-(_ucs2 0x10291031102C100F1039),
-(_ucs2 0x10211031102C100F103A),
-(_ucs2 0x10291031102C100F103A),
-(_ucs2 0x1021102D10101039),
-(_ucs2 0x102310101039),
-(_ucs2 0x1021102D1010103A),
-(_ucs2 0x10231010103A),
-(_ucs2 0x1021102F10101039),
-(_ucs2 0x102510101039),
-(_ucs2 0x1021102F1010103A),
-(_ucs2 0x10251010103A),
-(_ucs2 0x1021103110101039),
-(_ucs2 0x102710101039),
-(_ucs2 0x102110311010103A),
-(_ucs2 0x10271010103A),
-(_ucs2 0x10211031102C10101039),
-(_ucs2 0x102910101039),
-(_ucs2 0x10211031102C1010103A),
-(_ucs2 0x10291010103A),
-(_ucs2 0x10211031102C10101039),
-(_ucs2 0x10291031102C10101039),
-(_ucs2 0x10211031102C1010103A),
-(_ucs2 0x10291031102C1010103A),
-(_ucs2 0x1021102D10111039),
-(_ucs2 0x102310111039),
-(_ucs2 0x1021102D1011103A),
-(_ucs2 0x10231011103A),
-(_ucs2 0x1021102F10111039),
-(_ucs2 0x102510111039),
-(_ucs2 0x1021102F1011103A),
-(_ucs2 0x10251011103A),
-(_ucs2 0x1021103110111039),
-(_ucs2 0x102710111039),
-(_ucs2 0x102110311011103A),
-(_ucs2 0x10271011103A),
-(_ucs2 0x10211031102C10111039),
-(_ucs2 0x102910111039),
-(_ucs2 0x10211031102C1011103A),
-(_ucs2 0x10291011103A),
-(_ucs2 0x10211031102C10111039),
-(_ucs2 0x10291031102C10111039),
-(_ucs2 0x10211031102C1011103A),
-(_ucs2 0x10291031102C1011103A),
-(_ucs2 0x1021102D10121039),
-(_ucs2 0x102310121039),
-(_ucs2 0x1021102D1012103A),
-(_ucs2 0x10231012103A),
-(_ucs2 0x1021102F10121039),
-(_ucs2 0x102510121039),
-(_ucs2 0x1021102F1012103A),
-(_ucs2 0x10251012103A),
-(_ucs2 0x1021103110121039),
-(_ucs2 0x102710121039),
-(_ucs2 0x102110311012103A),
-(_ucs2 0x10271012103A),
-(_ucs2 0x10211031102C10121039),
-(_ucs2 0x102910121039),
-(_ucs2 0x10211031102C1012103A),
-(_ucs2 0x10291012103A),
-(_ucs2 0x10211031102C10121039),
-(_ucs2 0x10291031102C10121039),
-(_ucs2 0x10211031102C1012103A),
-(_ucs2 0x10291031102C1012103A),
-(_ucs2 0x1021102D10131039),
-(_ucs2 0x102310131039),
-(_ucs2 0x1021102D1013103A),
-(_ucs2 0x10231013103A),
-(_ucs2 0x1021102F10131039),
-(_ucs2 0x102510131039),
-(_ucs2 0x1021102F1013103A),
-(_ucs2 0x10251013103A),
-(_ucs2 0x1021103110131039),
-(_ucs2 0x102710131039),
-(_ucs2 0x102110311013103A),
-(_ucs2 0x10271013103A),
-(_ucs2 0x10211031102C10131039),
-(_ucs2 0x102910131039),
-(_ucs2 0x10211031102C1013103A),
-(_ucs2 0x10291013103A),
-(_ucs2 0x10211031102C10131039),
-(_ucs2 0x10291031102C10131039),
-(_ucs2 0x10211031102C1013103A),
-(_ucs2 0x10291031102C1013103A),
-(_ucs2 0x1021102D10141039),
-(_ucs2 0x102310141039),
-(_ucs2 0x1021102D1014103A),
-(_ucs2 0x10231014103A),
-(_ucs2 0x1021102F10141039),
-(_ucs2 0x102510141039),
-(_ucs2 0x1021102F1014103A),
-(_ucs2 0x10251014103A),
-(_ucs2 0x1021103110141039),
-(_ucs2 0x102710141039),
-(_ucs2 0x102110311014103A),
-(_ucs2 0x10271014103A),
-(_ucs2 0x10211031102C10141039),
-(_ucs2 0x102910141039),
-(_ucs2 0x10211031102C1014103A),
-(_ucs2 0x10291014103A),
-(_ucs2 0x10211031102C10141039),
-(_ucs2 0x10291031102C10141039),
-(_ucs2 0x10211031102C1014103A),
-(_ucs2 0x10291031102C1014103A),
-(_ucs2 0x1021102D10151039),
-(_ucs2 0x102310151039),
-(_ucs2 0x1021102D1015103A),
-(_ucs2 0x10231015103A),
-(_ucs2 0x1021102F10151039),
-(_ucs2 0x102510151039),
-(_ucs2 0x1021102F1015103A),
-(_ucs2 0x10251015103A),
-(_ucs2 0x1021103110151039),
-(_ucs2 0x102710151039),
-(_ucs2 0x102110311015103A),
-(_ucs2 0x10271015103A),
-(_ucs2 0x10211031102C10151039),
-(_ucs2 0x102910151039),
-(_ucs2 0x10211031102C1015103A),
-(_ucs2 0x10291015103A),
-(_ucs2 0x10211031102C10151039),
-(_ucs2 0x10291031102C10151039),
-(_ucs2 0x10211031102C1015103A),
-(_ucs2 0x10291031102C1015103A),
-(_ucs2 0x1021102D10161039),
-(_ucs2 0x102310161039),
-(_ucs2 0x1021102D1016103A),
-(_ucs2 0x10231016103A),
-(_ucs2 0x1021102F10161039),
-(_ucs2 0x102510161039),
-(_ucs2 0x1021102F1016103A),
-(_ucs2 0x10251016103A),
-(_ucs2 0x1021103110161039),
-(_ucs2 0x102710161039),
-(_ucs2 0x102110311016103A),
-(_ucs2 0x10271016103A),
-(_ucs2 0x10211031102C10161039),
-(_ucs2 0x102910161039),
-(_ucs2 0x10211031102C1016103A),
-(_ucs2 0x10291016103A),
-(_ucs2 0x10211031102C10161039),
-(_ucs2 0x10291031102C10161039),
-(_ucs2 0x10211031102C1016103A),
-(_ucs2 0x10291031102C1016103A),
-(_ucs2 0x1021102D10171039),
-(_ucs2 0x102310171039),
-(_ucs2 0x1021102D1017103A),
-(_ucs2 0x10231017103A),
-(_ucs2 0x1021102F10171039),
-(_ucs2 0x102510171039),
-(_ucs2 0x1021102F1017103A),
-(_ucs2 0x10251017103A),
-(_ucs2 0x1021103110171039),
-(_ucs2 0x102710171039),
-(_ucs2 0x102110311017103A),
-(_ucs2 0x10271017103A),
-(_ucs2 0x10211031102C10171039),
-(_ucs2 0x102910171039),
-(_ucs2 0x10211031102C1017103A),
-(_ucs2 0x10291017103A),
-(_ucs2 0x10211031102C10171039),
-(_ucs2 0x10291031102C10171039),
-(_ucs2 0x10211031102C1017103A),
-(_ucs2 0x10291031102C1017103A),
-(_ucs2 0x1021102D10181039),
-(_ucs2 0x102310181039),
-(_ucs2 0x1021102D1018103A),
-(_ucs2 0x10231018103A),
-(_ucs2 0x1021102F10181039),
-(_ucs2 0x102510181039),
-(_ucs2 0x1021102F1018103A),
-(_ucs2 0x10251018103A),
-(_ucs2 0x1021103110181039),
-(_ucs2 0x102710181039),
-(_ucs2 0x102110311018103A),
-(_ucs2 0x10271018103A),
-(_ucs2 0x10211031102C10181039),
-(_ucs2 0x102910181039),
-(_ucs2 0x10211031102C1018103A),
-(_ucs2 0x10291018103A),
-(_ucs2 0x10211031102C10181039),
-(_ucs2 0x10291031102C10181039),
-(_ucs2 0x10211031102C1018103A),
-(_ucs2 0x10291031102C1018103A),
-(_ucs2 0x1021102D10191039),
-(_ucs2 0x102310191039),
-(_ucs2 0x1021102D1019103A),
-(_ucs2 0x10231019103A),
-(_ucs2 0x1021102F10191039),
-(_ucs2 0x102510191039),
-(_ucs2 0x1021102F1019103A),
-(_ucs2 0x10251019103A),
-(_ucs2 0x1021103110191039),
-(_ucs2 0x102710191039),
-(_ucs2 0x102110311019103A),
-(_ucs2 0x10271019103A),
-(_ucs2 0x10211031102C10191039),
-(_ucs2 0x102910191039),
-(_ucs2 0x10211031102C1019103A),
-(_ucs2 0x10291019103A),
-(_ucs2 0x10211031102C10191039),
-(_ucs2 0x10291031102C10191039),
-(_ucs2 0x10211031102C1019103A),
-(_ucs2 0x10291031102C1019103A),
-(_ucs2 0x1021102D101A1039),
-(_ucs2 0x1023101A1039),
-(_ucs2 0x1021102D101A103A),
-(_ucs2 0x1023101A103A),
-(_ucs2 0x1021102F101A1039),
-(_ucs2 0x1025101A1039),
-(_ucs2 0x1021102F101A103A),
-(_ucs2 0x1025101A103A),
-(_ucs2 0x10211031101A1039),
-(_ucs2 0x1027101A1039),
-(_ucs2 0x10211031101A103A),
-(_ucs2 0x1027101A103A),
-(_ucs2 0x10211031102C101A1039),
-(_ucs2 0x1029101A1039),
-(_ucs2 0x10211031102C101A103A),
-(_ucs2 0x1029101A103A),
-(_ucs2 0x10211031102C101A1039),
-(_ucs2 0x10291031102C101A1039),
-(_ucs2 0x10211031102C101A103A),
-(_ucs2 0x10291031102C101A103A),
-(_ucs2 0x1021102D101B1039),
-(_ucs2 0x1023101B1039),
-(_ucs2 0x1021102D101B103A),
-(_ucs2 0x1023101B103A),
-(_ucs2 0x1021102F101B1039),
-(_ucs2 0x1025101B1039),
-(_ucs2 0x1021102F101B103A),
-(_ucs2 0x1025101B103A),
-(_ucs2 0x10211031101B1039),
-(_ucs2 0x1027101B1039),
-(_ucs2 0x10211031101B103A),
-(_ucs2 0x1027101B103A),
-(_ucs2 0x10211031102C101B1039),
-(_ucs2 0x1029101B1039),
-(_ucs2 0x10211031102C101B103A),
-(_ucs2 0x1029101B103A),
-(_ucs2 0x10211031102C101B1039),
-(_ucs2 0x10291031102C101B1039),
-(_ucs2 0x10211031102C101B103A),
-(_ucs2 0x10291031102C101B103A),
-(_ucs2 0x1021102D101C1039),
-(_ucs2 0x1023101C1039),
-(_ucs2 0x1021102D101C103A),
-(_ucs2 0x1023101C103A),
-(_ucs2 0x1021102F101C1039),
-(_ucs2 0x1025101C1039),
-(_ucs2 0x1021102F101C103A),
-(_ucs2 0x1025101C103A),
-(_ucs2 0x10211031101C1039),
-(_ucs2 0x1027101C1039),
-(_ucs2 0x10211031101C103A),
-(_ucs2 0x1027101C103A),
-(_ucs2 0x10211031102C101C1039),
-(_ucs2 0x1029101C1039),
-(_ucs2 0x10211031102C101C103A),
-(_ucs2 0x1029101C103A),
-(_ucs2 0x10211031102C101C1039),
-(_ucs2 0x10291031102C101C1039),
-(_ucs2 0x10211031102C101C103A),
-(_ucs2 0x10291031102C101C103A),
-(_ucs2 0x1021102D101E1039),
-(_ucs2 0x1023101E1039),
-(_ucs2 0x1021102D101E103A),
-(_ucs2 0x1023101E103A),
-(_ucs2 0x1021102F101E1039),
-(_ucs2 0x1025101E1039),
-(_ucs2 0x1021102F101E103A),
-(_ucs2 0x1025101E103A),
-(_ucs2 0x10211031101E1039),
-(_ucs2 0x1027101E1039),
-(_ucs2 0x10211031101E103A),
-(_ucs2 0x1027101E103A),
-(_ucs2 0x10211031102C101E1039),
-(_ucs2 0x1029101E1039),
-(_ucs2 0x10211031102C101E103A),
-(_ucs2 0x1029101E103A),
-(_ucs2 0x10211031102C101E1039),
-(_ucs2 0x10291031102C101E1039),
-(_ucs2 0x10211031102C101E103A),
-(_ucs2 0x10291031102C101E103A),
-(_ucs2 0x1021102D101F1039),
-(_ucs2 0x1023101F1039),
-(_ucs2 0x1021102D101F103A),
-(_ucs2 0x1023101F103A),
-(_ucs2 0x1021102F101F1039),
-(_ucs2 0x1025101F1039),
-(_ucs2 0x1021102F101F103A),
-(_ucs2 0x1025101F103A),
-(_ucs2 0x10211031101F1039),
-(_ucs2 0x1027101F1039),
-(_ucs2 0x10211031101F103A),
-(_ucs2 0x1027101F103A),
-(_ucs2 0x10211031102C101F1039),
-(_ucs2 0x1029101F1039),
-(_ucs2 0x10211031102C101F103A),
-(_ucs2 0x1029101F103A),
-(_ucs2 0x10211031102C101F1039),
-(_ucs2 0x10291031102C101F1039),
-(_ucs2 0x10211031102C101F103A),
-(_ucs2 0x10291031102C101F103A),
-('--- Contractions'),
-(_ucs2 0x1031102C1000103A1000103B),
-(_ucs2 0x1031102C1000103A103B /* (suffix of) man */),
-(_ucs2 0x1014103A1014102F1015103A),
-(_ucs2 0x1014103A102F1015103A /* (suffix of) I */),
-('--- Great Sa'),
-(_ucs2 0x1031101E1039101E),
-(_ucs2 0x1031103F),
-(_ucs2 0x102D101E1039101E),
-(_ucs2 0x102D103F),
-(_ucs2 0x102F101E1039101E),
-(_ucs2 0x102F103F),
-(_ucs2 0x1021102D101E1039101E),
-(_ucs2 0x1023103F),
-(_ucs2 0x1021102F101E1039101E),
-(_ucs2 0x1025103F),
-(_ucs2 0x101E1039101E),
-(_ucs2 0x103F),
-('--- Symbols - collate as long form'),
-(_ucs2 0x1014103E102D102F1000103A),
-(_ucs2 0x104C),
-(_ucs2 0x101B103D10311037),
-(_ucs2 0x104D),
-(_ucs2 0x101C100A103A103810001031102C1004103A1038),
-(_ucs2 0x104E1004103A1038),
-(_ucs2 0x1021102D),
-(_ucs2 0x104F),
-('--- Short Forms may need to be added here'),
-(_ucs2 0x101C1000103A101A102C),
-(_ucs2 0x101C1000103A103B102C /* right hand side */),
-(_ucs2 0x101E1019102E),
-(_ucs2 0x101E10391019102E /* daughter */),
-(_ucs2 0x101110191004103A1038),
-(_ucs2 0x1011103910191004103A1038 /* cooked rice */),
-(_ucs2 0x101C1000103A10181000103A),
-(_ucs2 0x101C103910181000103A /* tea */);
-SELECT id, IF(LEFT(s1,1)='-',s1,CONCAT(HEX(WEIGHT_STRING(s1)),'\t', HEX(CONVERT(s1 USING ucs2)))) FROM t1 ORDER BY id;
-id IF(LEFT(s1,1)='-',s1,CONCAT(HEX(WEIGHT_STRING(s1)),'\t', HEX(CONVERT(s1 USING ucs2))))
-1 2259 108C
-2 22593ACB 1037
-3 22593ACC 1038
-4 22593ACD 10371038
-5 --- Vowels
-6 2232 102C
-7 2232 102B
-8 2246 1032
-9 22463ACB 1031102C
-10 22463ACB 1031102B
-11 22463ACC 1031102C103A
-12 22463ACC 1031102B103A
-13 2248 1034
-14 22483ACB 1036
-15 22483ACC 102D102F
-16 --- Vowels with finals
-17 22483ACD 10001039
-18 22483ACD 1000103A
-19 22483ACE 102C10001039
-20 22483ACE 102C1000103A
-21 22483ACE 102B10001039
-22 22483ACE 102B1000103A
-23 22483ACF 102D10001039
-24 22483ACF 102D1000103A
-25 22483AD0 102F10001039
-26 22483AD0 102F1000103A
-27 22483AD1 103110001039
-28 22483AD1 10311000103A
-29 22483AD2 1031102C10001039
-30 22483AD2 1031102C1000103A
-31 22483AD2 1031102B10001039
-32 22483AD2 1031102B1000103A
-33 22483AD3 102D102F10001039
-34 22483AD3 102D102F1000103A
-35 22483AD4 10011039
-36 22483AD4 1001103A
-37 22483AD5 102C10011039
-38 22483AD5 102C1001103A
-39 22483AD5 102B10011039
-40 22483AD5 102B1001103A
-41 22483AD6 102D10011039
-42 22483AD6 102D1001103A
-43 22483AD7 102F10011039
-44 22483AD7 102F1001103A
-45 22483AD8 103110011039
-46 22483AD8 10311001103A
-47 22483AD9 1031102C10011039
-48 22483AD9 1031102C1001103A
-49 22483AD9 1031102B10011039
-50 22483AD9 1031102B1001103A
-51 22483ADA 102D102F10011039
-52 22483ADA 102D102F1001103A
-53 22483ADB 10021039
-54 22483ADB 1002103A
-55 22483ADC 102C10021039
-56 22483ADC 102C1002103A
-57 22483ADC 102B10021039
-58 22483ADC 102B1002103A
-59 22483ADD 102D10021039
-60 22483ADD 102D1002103A
-61 22483ADE 102F10021039
-62 22483ADE 102F1002103A
-63 22483ADF 103110021039
-64 22483ADF 10311002103A
-65 22483AE0 1031102C10021039
-66 22483AE0 1031102C1002103A
-67 22483AE0 1031102B10021039
-68 22483AE0 1031102B1002103A
-69 22483AE1 102D102F10021039
-70 22483AE1 102D102F1002103A
-71 22483AE2 10031039
-72 22483AE2 1003103A
-73 22483AE3 102C10031039
-74 22483AE3 102C1003103A
-75 22483AE3 102B10031039
-76 22483AE3 102B1003103A
-77 22483AE4 102D10031039
-78 22483AE4 102D1003103A
-79 22483AE5 102F10031039
-80 22483AE5 102F1003103A
-81 22483AE6 103110031039
-82 22483AE6 10311003103A
-83 22483AE7 1031102C10031039
-84 22483AE7 1031102C1003103A
-85 22483AE7 1031102B10031039
-86 22483AE7 1031102B1003103A
-87 22483AE8 102D102F10031039
-88 22483AE8 102D102F1003103A
-89 22483AE9 1004103A1039
-90 22483AE9 1004103A
-91 22483AEA 102C1004103A1039
-92 22483AEA 102C1004103A
-93 22483AEA 102B1004103A1039
-94 22483AEA 102B1004103A
-95 22483AEB 102D1004103A1039
-96 22483AEB 102D1004103A
-97 22483AEC 102F1004103A1039
-98 22483AEC 102F1004103A
-99 22483AED 10311004103A1039
-100 22483AED 10311004103A
-101 22483AEE 1031102C1004103A1039
-102 22483AEE 1031102C1004103A
-103 22483AEE 1031102B1004103A1039
-104 22483AEE 1031102B1004103A
-105 22483AEF 102D102F1004103A1039
-106 22483AEF 102D102F1004103A
-107 22483AF0 10051039
-108 22483AF0 1005103A
-109 22483AF1 102C10051039
-110 22483AF1 102C1005103A
-111 22483AF1 102B10051039
-112 22483AF1 102B1005103A
-113 22483AF2 102D10051039
-114 22483AF2 102D1005103A
-115 22483AF3 102F10051039
-116 22483AF3 102F1005103A
-117 22483AF4 103110051039
-118 22483AF4 10311005103A
-119 22483AF5 1031102C10051039
-120 22483AF5 1031102C1005103A
-121 22483AF5 1031102B10051039
-122 22483AF5 1031102B1005103A
-123 22483AF6 102D102F10051039
-124 22483AF6 102D102F1005103A
-125 22483AF7 10061039
-126 22483AF7 1006103A
-127 22483AF8 102C10061039
-128 22483AF8 102C1006103A
-129 22483AF8 102B10061039
-130 22483AF8 102B1006103A
-131 22483AF9 102D10061039
-132 22483AF9 102D1006103A
-133 22483AFA 102F10061039
-134 22483AFA 102F1006103A
-135 22483AFB 103110061039
-136 22483AFB 10311006103A
-137 22483AFC 1031102C10061039
-138 22483AFC 1031102C1006103A
-139 22483AFC 1031102B10061039
-140 22483AFC 1031102B1006103A
-141 22483AFD 102D102F10061039
-142 22483AFD 102D102F1006103A
-143 22483AFE 10071039
-144 22483AFE 1007103A
-145 22483AFF 102C10071039
-146 22483AFF 102C1007103A
-147 22483AFF 102B10071039
-148 22483AFF 102B1007103A
-149 22483B00 102D10071039
-150 22483B00 102D1007103A
-151 22483B01 102F10071039
-152 22483B01 102F1007103A
-153 22483B02 103110071039
-154 22483B02 10311007103A
-155 22483B03 1031102C10071039
-156 22483B03 1031102C1007103A
-157 22483B03 1031102B10071039
-158 22483B03 1031102B1007103A
-159 22483B04 102D102F10071039
-160 22483B04 102D102F1007103A
-161 22483B05 1008103A
-162 22483B06 102C1008103A
-163 22483B06 102B1008103A
-164 22483B07 102D1008103A
-165 22483B08 102F1008103A
-166 22483B09 10311008103A
-167 22483B0A 1031102C1008103A
-168 22483B0A 1031102B1008103A
-169 22483B0B 102D102F1008103A
-170 22483B0C 10091039
-171 22483B0C 1009103A
-172 22483B0D 102C10091039
-173 22483B0D 102C1009103A
-174 22483B0D 102B10091039
-175 22483B0D 102B1009103A
-176 22483B0E 102D10091039
-177 22483B0E 102D1009103A
-178 22483B0F 102F10091039
-179 22483B0F 102F1009103A
-180 22483B10 103110091039
-181 22483B10 10311009103A
-182 22483B11 1031102C10091039
-183 22483B11 1031102C1009103A
-184 22483B11 1031102B10091039
-185 22483B11 1031102B1009103A
-186 22483B12 102D102F10091039
-187 22483B12 102D102F1009103A
-188 22483B13 100A1039
-189 22483B13 100A103A
-190 22483B14 102C100A1039
-191 22483B14 102C100A103A
-192 22483B14 102B100A1039
-193 22483B14 102B100A103A
-194 22483B15 102D100A1039
-195 22483B15 102D100A103A
-196 22483B16 102F100A1039
-197 22483B16 102F100A103A
-198 22483B17 1031100A1039
-199 22483B17 1031100A103A
-200 22483B18 1031102C100A1039
-201 22483B18 1031102C100A103A
-202 22483B18 1031102B100A1039
-203 22483B18 1031102B100A103A
-204 22483B19 102D102F100A1039
-205 22483B19 102D102F100A103A
-206 22483B1A 100B1039
-207 22483B1A 100B103A
-208 22483B1B 102C100B1039
-209 22483B1B 102C100B103A
-210 22483B1B 102B100B1039
-211 22483B1B 102B100B103A
-212 22483B1C 102D100B1039
-213 22483B1C 102D100B103A
-214 22483B1D 102F100B1039
-215 22483B1D 102F100B103A
-216 22483B1E 1031100B1039
-217 22483B1E 1031100B103A
-218 22483B1F 1031102C100B1039
-219 22483B1F 1031102C100B103A
-220 22483B1F 1031102B100B1039
-221 22483B1F 1031102B100B103A
-222 22483B20 102D102F100B1039
-223 22483B20 102D102F100B103A
-224 22483B21 100C1039
-225 22483B21 100C103A
-226 22483B22 102C100C1039
-227 22483B22 102C100C103A
-228 22483B22 102B100C1039
-229 22483B22 102B100C103A
-230 22483B23 102D100C1039
-231 22483B23 102D100C103A
-232 22483B24 102F100C1039
-233 22483B24 102F100C103A
-234 22483B25 1031100C1039
-235 22483B25 1031100C103A
-236 22483B26 1031102C100C1039
-237 22483B26 1031102C100C103A
-238 22483B26 1031102B100C1039
-239 22483B26 1031102B100C103A
-240 22483B27 102D102F100C1039
-241 22483B27 102D102F100C103A
-242 22483B28 100D1039
-243 22483B28 100D103A
-244 22483B29 102C100D1039
-245 22483B29 102C100D103A
-246 22483B29 102B100D1039
-247 22483B29 102B100D103A
-248 22483B2A 102D100D1039
-249 22483B2A 102D100D103A
-250 22483B2B 102F100D1039
-251 22483B2B 102F100D103A
-252 22483B2C 1031100D1039
-253 22483B2C 1031100D103A
-254 22483B2D 1031102C100D1039
-255 22483B2D 1031102C100D103A
-256 22483B2D 1031102B100D1039
-257 22483B2D 1031102B100D103A
-258 22483B2E 102D102F100D1039
-259 22483B2E 102D102F100D103A
-260 22483B2F 100E1039
-261 22483B2F 100E103A
-262 22483B30 102C100E1039
-263 22483B30 102C100E103A
-264 22483B30 102B100E1039
-265 22483B30 102B100E103A
-266 22483B31 102D100E1039
-267 22483B31 102D100E103A
-268 22483B32 102F100E1039
-269 22483B32 102F100E103A
-270 22483B33 1031100E1039
-271 22483B33 1031100E103A
-272 22483B34 1031102C100E1039
-273 22483B34 1031102C100E103A
-274 22483B34 1031102B100E1039
-275 22483B34 1031102B100E103A
-276 22483B35 102D102F100E1039
-277 22483B35 102D102F100E103A
-278 22483B36 100F1039
-279 22483B36 100F103A
-280 22483B37 102C100F1039
-281 22483B37 102C100F103A
-282 22483B37 102B100F1039
-283 22483B37 102B100F103A
-284 22483B38 102D100F1039
-285 22483B38 102D100F103A
-286 22483B39 102F100F1039
-287 22483B39 102F100F103A
-288 22483B3A 1031100F1039
-289 22483B3A 1031100F103A
-290 22483B3B 1031102C100F1039
-291 22483B3B 1031102C100F103A
-292 22483B3B 1031102B100F1039
-293 22483B3B 1031102B100F103A
-294 22483B3C 102D102F100F1039
-295 22483B3C 102D102F100F103A
-296 22483B3D 10101039
-297 22483B3D 1010103A
-298 22483B3E 102C10101039
-299 22483B3E 102C1010103A
-300 22483B3E 102B10101039
-301 22483B3E 102B1010103A
-302 22483B3F 102D10101039
-303 22483B3F 102D1010103A
-304 22483B40 102F10101039
-305 22483B40 102F1010103A
-306 22483B41 103110101039
-307 22483B41 10311010103A
-308 22483B42 1031102C10101039
-309 22483B42 1031102C1010103A
-310 22483B42 1031102B10101039
-311 22483B42 1031102B1010103A
-312 22483B43 102D102F10101039
-313 22483B43 102D102F1010103A
-314 22483B44 10111039
-315 22483B44 1011103A
-316 22483B45 102C10111039
-317 22483B45 102C1011103A
-318 22483B45 102B10111039
-319 22483B45 102B1011103A
-320 22483B46 102D10111039
-321 22483B46 102D1011103A
-322 22483B47 102F10111039
-323 22483B47 102F1011103A
-324 22483B48 103110111039
-325 22483B48 10311011103A
-326 22483B49 1031102C10111039
-327 22483B49 1031102C1011103A
-328 22483B49 1031102B10111039
-329 22483B49 1031102B1011103A
-330 22483B4A 102D102F10111039
-331 22483B4A 102D102F1011103A
-332 22483B4B 10121039
-333 22483B4B 1012103A
-334 22483B4C 102C10121039
-335 22483B4C 102C1012103A
-336 22483B4C 102B10121039
-337 22483B4C 102B1012103A
-338 22483B4D 102D10121039
-339 22483B4D 102D1012103A
-340 22483B4E 102F10121039
-341 22483B4E 102F1012103A
-342 22483B4F 103110121039
-343 22483B4F 10311012103A
-344 22483B50 1031102C10121039
-345 22483B50 1031102C1012103A
-346 22483B50 1031102B10121039
-347 22483B50 1031102B1012103A
-348 22483B51 102D102F10121039
-349 22483B51 102D102F1012103A
-350 22483B52 10131039
-351 22483B52 1013103A
-352 22483B53 102C10131039
-353 22483B53 102C1013103A
-354 22483B53 102B10131039
-355 22483B53 102B1013103A
-356 22483B54 102D10131039
-357 22483B54 102D1013103A
-358 22483B55 102F10131039
-359 22483B55 102F1013103A
-360 22483B56 103110131039
-361 22483B56 10311013103A
-362 22483B57 1031102C10131039
-363 22483B57 1031102C1013103A
-364 22483B57 1031102B10131039
-365 22483B57 1031102B1013103A
-366 22483B58 102D102F10131039
-367 22483B58 102D102F1013103A
-368 22483B59 10141039
-369 22483B59 1014103A
-370 22483B5A 102C10141039
-371 22483B5A 102C1014103A
-372 22483B5A 102B10141039
-373 22483B5A 102B1014103A
-374 22483B5B 102D10141039
-375 22483B5B 102D1014103A
-376 22483B5C 102F10141039
-377 22483B5C 102F1014103A
-378 22483B5D 103110141039
-379 22483B5D 10311014103A
-380 22483B5E 1031102C10141039
-381 22483B5E 1031102C1014103A
-382 22483B5E 1031102B10141039
-383 22483B5E 1031102B1014103A
-384 22483B5F 102D102F10141039
-385 22483B5F 102D102F1014103A
-386 22483B60 10151039
-387 22483B60 1015103A
-388 22483B61 102C10151039
-389 22483B61 102C1015103A
-390 22483B61 102B10151039
-391 22483B61 102B1015103A
-392 22483B62 102D10151039
-393 22483B62 102D1015103A
-394 22483B63 102F10151039
-395 22483B63 102F1015103A
-396 22483B64 103110151039
-397 22483B64 10311015103A
-398 22483B65 1031102C10151039
-399 22483B65 1031102C1015103A
-400 22483B65 1031102B10151039
-401 22483B65 1031102B1015103A
-402 22483B66 102D102F10151039
-403 22483B66 102D102F1015103A
-404 22483B67 10161039
-405 22483B67 1016103A
-406 22483B68 102C10161039
-407 22483B68 102C1016103A
-408 22483B68 102B10161039
-409 22483B68 102B1016103A
-410 22483B69 102D10161039
-411 22483B69 102D1016103A
-412 22483B6A 102F10161039
-413 22483B6A 102F1016103A
-414 22483B6B 103110161039
-415 22483B6B 10311016103A
-416 22483B6C 1031102C10161039
-417 22483B6C 1031102C1016103A
-418 22483B6C 1031102B10161039
-419 22483B6C 1031102B1016103A
-420 22483B6D 102D102F10161039
-421 22483B6D 102D102F1016103A
-422 22483B6E 10171039
-423 22483B6E 1017103A
-424 22483B6F 102C10171039
-425 22483B6F 102C1017103A
-426 22483B6F 102B10171039
-427 22483B6F 102B1017103A
-428 22483B70 102D10171039
-429 22483B70 102D1017103A
-430 22483B71 102F10171039
-431 22483B71 102F1017103A
-432 22483B72 103110171039
-433 22483B72 10311017103A
-434 22483B73 1031102C10171039
-435 22483B73 1031102C1017103A
-436 22483B73 1031102B10171039
-437 22483B73 1031102B1017103A
-438 22483B74 102D102F10171039
-439 22483B74 102D102F1017103A
-440 22483B75 10181039
-441 22483B75 1018103A
-442 22483B76 102C10181039
-443 22483B76 102C1018103A
-444 22483B76 102B10181039
-445 22483B76 102B1018103A
-446 22483B77 102D10181039
-447 22483B77 102D1018103A
-448 22483B78 102F10181039
-449 22483B78 102F1018103A
-450 22483B79 103110181039
-451 22483B79 10311018103A
-452 22483B7A 1031102C10181039
-453 22483B7A 1031102C1018103A
-454 22483B7A 1031102B10181039
-455 22483B7A 1031102B1018103A
-456 22483B7B 102D102F10181039
-457 22483B7B 102D102F1018103A
-458 22483B7C 10191039
-459 22483B7C 1019103A
-460 22483B7D 102C10191039
-461 22483B7D 102C1019103A
-462 22483B7D 102B10191039
-463 22483B7D 102B1019103A
-464 22483B7E 102D10191039
-465 22483B7E 102D1019103A
-466 22483B7F 102F10191039
-467 22483B7F 102F1019103A
-468 22483B80 103110191039
-469 22483B80 10311019103A
-470 22483B81 1031102C10191039
-471 22483B81 1031102C1019103A
-472 22483B81 1031102B10191039
-473 22483B81 1031102B1019103A
-474 22483B82 102D102F10191039
-475 22483B82 102D102F1019103A
-476 22483B83 101A1039
-477 22483B83 101A103A
-478 22483B84 102C101A1039
-479 22483B84 102C101A103A
-480 22483B84 102B101A1039
-481 22483B84 102B101A103A
-482 22483B85 102D101A1039
-483 22483B85 102D101A103A
-484 22483B86 102F101A1039
-485 22483B86 102F101A103A
-486 22483B87 1031101A1039
-487 22483B87 1031101A103A
-488 22483B88 1031102C101A1039
-489 22483B88 1031102C101A103A
-490 22483B88 1031102B101A1039
-491 22483B88 1031102B101A103A
-492 22483B89 102D102F101A1039
-493 22483B89 102D102F101A103A
-494 22483B8A 101B1039
-495 22483B8A 101B103A
-496 22483B8B 102C101B1039
-497 22483B8B 102C101B103A
-498 22483B8B 102B101B1039
-499 22483B8B 102B101B103A
-500 22483B8C 102D101B1039
-501 22483B8C 102D101B103A
-502 22483B8D 102F101B1039
-503 22483B8D 102F101B103A
-504 22483B8E 1031101B1039
-505 22483B8E 1031101B103A
-506 22483B8F 1031102C101B1039
-507 22483B8F 1031102C101B103A
-508 22483B8F 1031102B101B1039
-509 22483B8F 1031102B101B103A
-510 22483B90 102D102F101B1039
-511 22483B90 102D102F101B103A
-512 22483B91 101C1039
-513 22483B91 101C103A
-514 22483B92 102C101C1039
-515 22483B92 102C101C103A
-516 22483B92 102B101C1039
-517 22483B92 102B101C103A
-518 22483B93 102D101C1039
-519 22483B93 102D101C103A
-520 22483B94 102F101C1039
-521 22483B94 102F101C103A
-522 22483B95 1031101C1039
-523 22483B95 1031101C103A
-524 22483B96 1031102C101C1039
-525 22483B96 1031102C101C103A
-526 22483B96 1031102B101C1039
-527 22483B96 1031102B101C103A
-528 22483B97 102D102F101C1039
-529 22483B97 102D102F101C103A
-530 22483B98 101D103A
-531 22483B99 102C101D103A
-532 22483B99 102B101D103A
-533 22483B9A 102D101D103A
-534 22483B9B 102F101D103A
-535 22483B9C 1031101D103A
-536 22483B9D 1031102C101D103A
-537 22483B9D 1031102B101D103A
-538 22483B9E 102D102F101D103A
-539 22483B9F 101E1039
-540 22483B9F 101E103A
-541 22483BA0 102C101E1039
-542 22483BA0 102C101E103A
-543 22483BA0 102B101E1039
-544 22483BA0 102B101E103A
-545 22483BA1 102D101E1039
-546 22483BA1 102D101E103A
-547 22483BA2 102F101E1039
-548 22483BA2 102F101E103A
-549 22483BA3 1031101E1039
-550 22483BA3 1031101E103A
-551 22483BA4 1031102C101E1039
-552 22483BA4 1031102C101E103A
-553 22483BA4 1031102B101E1039
-554 22483BA4 1031102B101E103A
-555 22483BA5 102D102F101E1039
-556 22483BA5 102D102F101E103A
-557 22483BA6 101F1039
-558 22483BA6 101F103A
-559 22483BA7 102C101F1039
-560 22483BA7 102C101F103A
-561 22483BA7 102B101F1039
-562 22483BA7 102B101F103A
-563 22483BA8 102D101F1039
-564 22483BA8 102D101F103A
-565 22483BA9 102F101F1039
-566 22483BA9 102F101F103A
-567 22483BAA 1031101F1039
-568 22483BAA 1031101F103A
-569 22483BAB 1031102C101F1039
-570 22483BAB 1031102C101F103A
-571 22483BAB 1031102B101F1039
-572 22483BAB 1031102B101F103A
-573 22483BAC 102D102F101F1039
-574 22483BAC 102D102F101F103A
-575 22483BAD 1020103A
-576 22483BAE 102C1020103A
-577 22483BAE 102B1020103A
-578 22483BAF 102D1020103A
-579 22483BB0 102F1020103A
-580 22483BB1 10311020103A
-581 22483BB2 1031102C1020103A
-582 22483BB2 1031102B1020103A
-583 22483BB3 102D102F1020103A
-584 22483BB4 1021103A
-585 22483BB5 102C1021103A
-586 22483BB5 102B1021103A
-587 22483BB6 102D1021103A
-588 22483BB7 102F1021103A
-589 22483BB8 10311021103A
-590 22483BB9 1031102C1021103A
-591 22483BB9 1031102B1021103A
-592 22483BBA 102D102F1021103A
-593 --- Medials
-594 22483BBB 105E
-595 22483BBC 105F
-596 22483BBD 103B
-597 22483BBE 103C
-598 22483BBF 1060
-599 22483BC0 103D
-600 22483BC1 1082
-601 22483BC2 103E
-602 22483BC3 103B103D
-603 22483BC4 103C103D
-604 22483BC5 103B103E
-605 22483BC6 103C103E
-606 22483BC7 103D103E
-607 22483BC8 103B103D103E
-608 22483BC9 103C103D103E
-609 --- Independent vowels
-610 22242236 1021102D
-611 22242236 1023
-612 22242238 1021102E
-613 22242238 1024
-614 2224223A 1021102F
-615 2224223A 1025
-616 2224223D 10211030
-617 2224223D 1026
-618 22242242 10211031
-619 22242242 1027
-620 22242242 1028
-621 222422463ACB 10211031102C
-622 222422463ACB 1029
-623 222422463ACC 10211031102C103A
-624 222422463ACC 102A
-625 22483B7E 102D1019103A
-626 22483B7E3ACB 102D1036
-627 22483B7E3ACC 102D1019103A1037
-628 22483B7E3ACD 102D10361037
-629 22483B7E3ACE 102D1019103A1038
-630 22483B7E3ACF 102D10361038
-631 22483B7F 102F1019103A
-632 22483B7F3ACB 102F1036
-633 22483B7F3ACC 102F1019103A1037
-634 22483B7F3ACD 102F10361037
-635 22483B7F3ACE 102F1019103A1038
-636 22483B7F3ACF 102F10361038
-637 222422483B7F3ACB 1021102F1036
-638 222422483B7F3ACB 1025102F1036
-639 --- Independent vowels with finals
-640 222422483ACF 1021102D10001039
-641 222422483ACF 102310001039
-642 222422483ACF 1021102D1000103A
-643 222422483ACF 10231000103A
-644 222422483AD0 1021102F10001039
-645 222422483AD0 102510001039
-646 222422483AD0 1021102F1000103A
-647 222422483AD0 10251000103A
-648 222422483AD1 1021103110001039
-649 222422483AD1 102710001039
-650 222422483AD1 102110311000103A
-651 222422483AD1 10271000103A
-652 222422483AD2 10211031102C10001039
-653 222422483AD2 102910001039
-654 222422483AD2 10211031102C1000103A
-655 222422483AD2 10291000103A
-656 222422483AD2 10211031102C10001039
-657 222422483AD2 10291031102C10001039
-658 222422483AD2 10211031102C1000103A
-659 222422483AD2 10291031102C1000103A
-660 222422483AD6 1021102D10011039
-661 222422483AD6 102310011039
-662 222422483AD6 1021102D1001103A
-663 222422483AD6 10231001103A
-664 222422483AD7 1021102F10011039
-665 222422483AD7 102510011039
-666 222422483AD7 1021102F1001103A
-667 222422483AD7 10251001103A
-668 222422483AD8 1021103110011039
-669 222422483AD8 102710011039
-670 222422483AD8 102110311001103A
-671 222422483AD8 10271001103A
-672 222422483AD9 10211031102C10011039
-673 222422483AD9 102910011039
-674 222422483AD9 10211031102C1001103A
-675 222422483AD9 10291001103A
-676 222422483AD9 10211031102C10011039
-677 222422483AD9 10291031102C10011039
-678 222422483AD9 10211031102C1001103A
-679 222422483AD9 10291031102C1001103A
-680 222422483ADD 1021102D10021039
-681 222422483ADD 102310021039
-682 222422483ADD 1021102D1002103A
-683 222422483ADD 10231002103A
-684 222422483ADE 1021102F10021039
-685 222422483ADE 102510021039
-686 222422483ADE 1021102F1002103A
-687 222422483ADE 10251002103A
-688 222422483ADF 1021103110021039
-689 222422483ADF 102710021039
-690 222422483ADF 102110311002103A
-691 222422483ADF 10271002103A
-692 222422483AE0 10211031102C10021039
-693 222422483AE0 102910021039
-694 222422483AE0 10211031102C1002103A
-695 222422483AE0 10291002103A
-696 222422483AE0 10211031102C10021039
-697 222422483AE0 10291031102C10021039
-698 222422483AE0 10211031102C1002103A
-699 222422483AE0 10291031102C1002103A
-700 222422483AE4 1021102D10031039
-701 222422483AE4 102310031039
-702 222422483AE4 1021102D1003103A
-703 222422483AE4 10231003103A
-704 222422483AE5 1021102F10031039
-705 222422483AE5 102510031039
-706 222422483AE5 1021102F1003103A
-707 222422483AE5 10251003103A
-708 222422483AE6 1021103110031039
-709 222422483AE6 102710031039
-710 222422483AE6 102110311003103A
-711 222422483AE6 10271003103A
-712 222422483AE7 10211031102C10031039
-713 222422483AE7 102910031039
-714 222422483AE7 10211031102C1003103A
-715 222422483AE7 10291003103A
-716 222422483AE7 10211031102C10031039
-717 222422483AE7 10291031102C10031039
-718 222422483AE7 10211031102C1003103A
-719 222422483AE7 10291031102C1003103A
-720 2224223621D5224D 1021102D10041039
-721 2224223621D5224D 102310041039
-722 222422483AEB 1021102D1004103A
-723 222422483AEB 10231004103A
-724 2224223A21D5224D 1021102F10041039
-725 2224223A21D5224D 102510041039
-726 222422483AEC 1021102F1004103A
-727 222422483AEC 10251004103A
-728 2224224221D5224D 1021103110041039
-729 2224224221D5224D 102710041039
-730 222422483AED 102110311004103A
-731 222422483AED 10271004103A
-732 222422463ACB21D5224D 10211031102C10041039
-733 222422463ACB21D5224D 102910041039
-734 222422483AEE 10211031102C1004103A
-735 222422483AEE 10291004103A
-736 222422463ACB21D5224D 10211031102C10041039
-737 222422463ACB21D5224D 10291031102C10041039
-738 222422483AEE 10211031102C1004103A
-739 222422483AEE 10291031102C1004103A
-740 222422483AF2 1021102D10051039
-741 222422483AF2 102310051039
-742 222422483AF2 1021102D1005103A
-743 222422483AF2 10231005103A
-744 222422483AF3 1021102F10051039
-745 222422483AF3 102510051039
-746 222422483AF3 1021102F1005103A
-747 222422483AF3 10251005103A
-748 222422483AF4 1021103110051039
-749 222422483AF4 102710051039
-750 222422483AF4 102110311005103A
-751 222422483AF4 10271005103A
-752 222422483AF5 10211031102C10051039
-753 222422483AF5 102910051039
-754 222422483AF5 10211031102C1005103A
-755 222422483AF5 10291005103A
-756 222422483AF5 10211031102C10051039
-757 222422483AF5 10291031102C10051039
-758 222422483AF5 10211031102C1005103A
-759 222422483AF5 10291031102C1005103A
-760 222422483AF9 1021102D10061039
-761 222422483AF9 102310061039
-762 222422483AF9 1021102D1006103A
-763 222422483AF9 10231006103A
-764 222422483AFA 1021102F10061039
-765 222422483AFA 102510061039
-766 222422483AFA 1021102F1006103A
-767 222422483AFA 10251006103A
-768 222422483AFB 1021103110061039
-769 222422483AFB 102710061039
-770 222422483AFB 102110311006103A
-771 222422483AFB 10271006103A
-772 222422483AFC 10211031102C10061039
-773 222422483AFC 102910061039
-774 222422483AFC 10211031102C1006103A
-775 222422483AFC 10291006103A
-776 222422483AFC 10211031102C10061039
-777 222422483AFC 10291031102C10061039
-778 222422483AFC 10211031102C1006103A
-779 222422483AFC 10291031102C1006103A
-780 222422483B00 1021102D10071039
-781 222422483B00 102310071039
-782 222422483B00 1021102D1007103A
-783 222422483B00 10231007103A
-784 222422483B01 1021102F10071039
-785 222422483B01 102510071039
-786 222422483B01 1021102F1007103A
-787 222422483B01 10251007103A
-788 222422483B02 1021103110071039
-789 222422483B02 102710071039
-790 222422483B02 102110311007103A
-791 222422483B02 10271007103A
-792 222422483B03 10211031102C10071039
-793 222422483B03 102910071039
-794 222422483B03 10211031102C1007103A
-795 222422483B03 10291007103A
-796 222422483B03 10211031102C10071039
-797 222422483B03 10291031102C10071039
-798 222422483B03 10211031102C1007103A
-799 222422483B03 10291031102C1007103A
-800 222422483B0E 1021102D10091039
-801 222422483B0E 102310091039
-802 222422483B0E 1021102D1009103A
-803 222422483B0E 10231009103A
-804 222422483B0F 1021102F10091039
-805 222422483B0F 102510091039
-806 222422483B0F 1021102F1009103A
-807 222422483B0F 10251009103A
-808 222422483B10 1021103110091039
-809 222422483B10 102710091039
-810 222422483B10 102110311009103A
-811 222422483B10 10271009103A
-812 222422483B11 10211031102C10091039
-813 222422483B11 102910091039
-814 222422483B11 10211031102C1009103A
-815 222422483B11 10291009103A
-816 222422483B11 10211031102C10091039
-817 222422483B11 10291031102C10091039
-818 222422483B11 10211031102C1009103A
-819 222422483B11 10291031102C1009103A
-820 222422483B15 1021102D100A1039
-821 222422483B15 1023100A1039
-822 222422483B15 1021102D100A103A
-823 222422483B15 1023100A103A
-824 222422483B16 1021102F100A1039
-825 222422483B16 1025100A1039
-826 222422483B16 1021102F100A103A
-827 222422483B16 1025100A103A
-828 222422483B17 10211031100A1039
-829 222422483B17 1027100A1039
-830 222422483B17 10211031100A103A
-831 222422483B17 1027100A103A
-832 222422483B18 10211031102C100A1039
-833 222422483B18 1029100A1039
-834 222422483B18 10211031102C100A103A
-835 222422483B18 1029100A103A
-836 222422483B18 10211031102C100A1039
-837 222422483B18 10291031102C100A1039
-838 222422483B18 10211031102C100A103A
-839 222422483B18 10291031102C100A103A
-840 222422483B1C 1021102D100B1039
-841 222422483B1C 1023100B1039
-842 222422483B1C 1021102D100B103A
-843 222422483B1C 1023100B103A
-844 222422483B1D 1021102F100B1039
-845 222422483B1D 1025100B1039
-846 222422483B1D 1021102F100B103A
-847 222422483B1D 1025100B103A
-848 222422483B1E 10211031100B1039
-849 222422483B1E 1027100B1039
-850 222422483B1E 10211031100B103A
-851 222422483B1E 1027100B103A
-852 222422483B1F 10211031102C100B1039
-853 222422483B1F 1029100B1039
-854 222422483B1F 10211031102C100B103A
-855 222422483B1F 1029100B103A
-856 222422483B1F 10211031102C100B1039
-857 222422483B1F 10291031102C100B1039
-858 222422483B1F 10211031102C100B103A
-859 222422483B1F 10291031102C100B103A
-860 222422483B23 1021102D100C1039
-861 222422483B23 1023100C1039
-862 222422483B23 1021102D100C103A
-863 222422483B23 1023100C103A
-864 222422483B24 1021102F100C1039
-865 222422483B24 1025100C1039
-866 222422483B24 1021102F100C103A
-867 222422483B24 1025100C103A
-868 222422483B25 10211031100C1039
-869 222422483B25 1027100C1039
-870 222422483B25 10211031100C103A
-871 222422483B25 1027100C103A
-872 222422483B26 10211031102C100C1039
-873 222422483B26 1029100C1039
-874 222422483B26 10211031102C100C103A
-875 222422483B26 1029100C103A
-876 222422483B26 10211031102C100C1039
-877 222422483B26 10291031102C100C1039
-878 222422483B26 10211031102C100C103A
-879 222422483B26 10291031102C100C103A
-880 222422483B2A 1021102D100D1039
-881 222422483B2A 1023100D1039
-882 222422483B2A 1021102D100D103A
-883 222422483B2A 1023100D103A
-884 222422483B2B 1021102F100D1039
-885 222422483B2B 1025100D1039
-886 222422483B2B 1021102F100D103A
-887 222422483B2B 1025100D103A
-888 222422483B2C 10211031100D1039
-889 222422483B2C 1027100D1039
-890 222422483B2C 10211031100D103A
-891 222422483B2C 1027100D103A
-892 222422483B2D 10211031102C100D1039
-893 222422483B2D 1029100D1039
-894 222422483B2D 10211031102C100D103A
-895 222422483B2D 1029100D103A
-896 222422483B2D 10211031102C100D1039
-897 222422483B2D 10291031102C100D1039
-898 222422483B2D 10211031102C100D103A
-899 222422483B2D 10291031102C100D103A
-900 222422483B31 1021102D100E1039
-901 222422483B31 1023100E1039
-902 222422483B31 1021102D100E103A
-903 222422483B31 1023100E103A
-904 222422483B32 1021102F100E1039
-905 222422483B32 1025100E1039
-906 222422483B32 1021102F100E103A
-907 222422483B32 1025100E103A
-908 222422483B33 10211031100E1039
-909 222422483B33 1027100E1039
-910 222422483B33 10211031100E103A
-911 222422483B33 1027100E103A
-912 222422483B34 10211031102C100E1039
-913 222422483B34 1029100E1039
-914 222422483B34 10211031102C100E103A
-915 222422483B34 1029100E103A
-916 222422483B34 10211031102C100E1039
-917 222422483B34 10291031102C100E1039
-918 222422483B34 10211031102C100E103A
-919 222422483B34 10291031102C100E103A
-920 222422483B38 1021102D100F1039
-921 222422483B38 1023100F1039
-922 222422483B38 1021102D100F103A
-923 222422483B38 1023100F103A
-924 222422483B39 1021102F100F1039
-925 222422483B39 1025100F1039
-926 222422483B39 1021102F100F103A
-927 222422483B39 1025100F103A
-928 222422483B3A 10211031100F1039
-929 222422483B3A 1027100F1039
-930 222422483B3A 10211031100F103A
-931 222422483B3A 1027100F103A
-932 222422483B3B 10211031102C100F1039
-933 222422483B3B 1029100F1039
-934 222422483B3B 10211031102C100F103A
-935 222422483B3B 1029100F103A
-936 222422483B3B 10211031102C100F1039
-937 222422483B3B 10291031102C100F1039
-938 222422483B3B 10211031102C100F103A
-939 222422483B3B 10291031102C100F103A
-940 222422483B3F 1021102D10101039
-941 222422483B3F 102310101039
-942 222422483B3F 1021102D1010103A
-943 222422483B3F 10231010103A
-944 222422483B40 1021102F10101039
-945 222422483B40 102510101039
-946 222422483B40 1021102F1010103A
-947 222422483B40 10251010103A
-948 222422483B41 1021103110101039
-949 222422483B41 102710101039
-950 222422483B41 102110311010103A
-951 222422483B41 10271010103A
-952 222422483B42 10211031102C10101039
-953 222422483B42 102910101039
-954 222422483B42 10211031102C1010103A
-955 222422483B42 10291010103A
-956 222422483B42 10211031102C10101039
-957 222422483B42 10291031102C10101039
-958 222422483B42 10211031102C1010103A
-959 222422483B42 10291031102C1010103A
-960 222422483B46 1021102D10111039
-961 222422483B46 102310111039
-962 222422483B46 1021102D1011103A
-963 222422483B46 10231011103A
-964 222422483B47 1021102F10111039
-965 222422483B47 102510111039
-966 222422483B47 1021102F1011103A
-967 222422483B47 10251011103A
-968 222422483B48 1021103110111039
-969 222422483B48 102710111039
-970 222422483B48 102110311011103A
-971 222422483B48 10271011103A
-972 222422483B49 10211031102C10111039
-973 222422483B49 102910111039
-974 222422483B49 10211031102C1011103A
-975 222422483B49 10291011103A
-976 222422483B49 10211031102C10111039
-977 222422483B49 10291031102C10111039
-978 222422483B49 10211031102C1011103A
-979 222422483B49 10291031102C1011103A
-980 222422483B4D 1021102D10121039
-981 222422483B4D 102310121039
-982 222422483B4D 1021102D1012103A
-983 222422483B4D 10231012103A
-984 222422483B4E 1021102F10121039
-985 222422483B4E 102510121039
-986 222422483B4E 1021102F1012103A
-987 222422483B4E 10251012103A
-988 222422483B4F 1021103110121039
-989 222422483B4F 102710121039
-990 222422483B4F 102110311012103A
-991 222422483B4F 10271012103A
-992 222422483B50 10211031102C10121039
-993 222422483B50 102910121039
-994 222422483B50 10211031102C1012103A
-995 222422483B50 10291012103A
-996 222422483B50 10211031102C10121039
-997 222422483B50 10291031102C10121039
-998 222422483B50 10211031102C1012103A
-999 222422483B50 10291031102C1012103A
-1000 222422483B54 1021102D10131039
-1001 222422483B54 102310131039
-1002 222422483B54 1021102D1013103A
-1003 222422483B54 10231013103A
-1004 222422483B55 1021102F10131039
-1005 222422483B55 102510131039
-1006 222422483B55 1021102F1013103A
-1007 222422483B55 10251013103A
-1008 222422483B56 1021103110131039
-1009 222422483B56 102710131039
-1010 222422483B56 102110311013103A
-1011 222422483B56 10271013103A
-1012 222422483B57 10211031102C10131039
-1013 222422483B57 102910131039
-1014 222422483B57 10211031102C1013103A
-1015 222422483B57 10291013103A
-1016 222422483B57 10211031102C10131039
-1017 222422483B57 10291031102C10131039
-1018 222422483B57 10211031102C1013103A
-1019 222422483B57 10291031102C1013103A
-1020 222422483B5B 1021102D10141039
-1021 222422483B5B 102310141039
-1022 222422483B5B 1021102D1014103A
-1023 222422483B5B 10231014103A
-1024 222422483B5C 1021102F10141039
-1025 222422483B5C 102510141039
-1026 222422483B5C 1021102F1014103A
-1027 222422483B5C 10251014103A
-1028 222422483B5D 1021103110141039
-1029 222422483B5D 102710141039
-1030 222422483B5D 102110311014103A
-1031 222422483B5D 10271014103A
-1032 222422483B5E 10211031102C10141039
-1033 222422483B5E 102910141039
-1034 222422483B5E 10211031102C1014103A
-1035 222422483B5E 10291014103A
-1036 222422483B5E 10211031102C10141039
-1037 222422483B5E 10291031102C10141039
-1038 222422483B5E 10211031102C1014103A
-1039 222422483B5E 10291031102C1014103A
-1040 222422483B62 1021102D10151039
-1041 222422483B62 102310151039
-1042 222422483B62 1021102D1015103A
-1043 222422483B62 10231015103A
-1044 222422483B63 1021102F10151039
-1045 222422483B63 102510151039
-1046 222422483B63 1021102F1015103A
-1047 222422483B63 10251015103A
-1048 222422483B64 1021103110151039
-1049 222422483B64 102710151039
-1050 222422483B64 102110311015103A
-1051 222422483B64 10271015103A
-1052 222422483B65 10211031102C10151039
-1053 222422483B65 102910151039
-1054 222422483B65 10211031102C1015103A
-1055 222422483B65 10291015103A
-1056 222422483B65 10211031102C10151039
-1057 222422483B65 10291031102C10151039
-1058 222422483B65 10211031102C1015103A
-1059 222422483B65 10291031102C1015103A
-1060 222422483B69 1021102D10161039
-1061 222422483B69 102310161039
-1062 222422483B69 1021102D1016103A
-1063 222422483B69 10231016103A
-1064 222422483B6A 1021102F10161039
-1065 222422483B6A 102510161039
-1066 222422483B6A 1021102F1016103A
-1067 222422483B6A 10251016103A
-1068 222422483B6B 1021103110161039
-1069 222422483B6B 102710161039
-1070 222422483B6B 102110311016103A
-1071 222422483B6B 10271016103A
-1072 222422483B6C 10211031102C10161039
-1073 222422483B6C 102910161039
-1074 222422483B6C 10211031102C1016103A
-1075 222422483B6C 10291016103A
-1076 222422483B6C 10211031102C10161039
-1077 222422483B6C 10291031102C10161039
-1078 222422483B6C 10211031102C1016103A
-1079 222422483B6C 10291031102C1016103A
-1080 222422483B70 1021102D10171039
-1081 222422483B70 102310171039
-1082 222422483B70 1021102D1017103A
-1083 222422483B70 10231017103A
-1084 222422483B71 1021102F10171039
-1085 222422483B71 102510171039
-1086 222422483B71 1021102F1017103A
-1087 222422483B71 10251017103A
-1088 222422483B72 1021103110171039
-1089 222422483B72 102710171039
-1090 222422483B72 102110311017103A
-1091 222422483B72 10271017103A
-1092 222422483B73 10211031102C10171039
-1093 222422483B73 102910171039
-1094 222422483B73 10211031102C1017103A
-1095 222422483B73 10291017103A
-1096 222422483B73 10211031102C10171039
-1097 222422483B73 10291031102C10171039
-1098 222422483B73 10211031102C1017103A
-1099 222422483B73 10291031102C1017103A
-1100 222422483B77 1021102D10181039
-1101 222422483B77 102310181039
-1102 222422483B77 1021102D1018103A
-1103 222422483B77 10231018103A
-1104 222422483B78 1021102F10181039
-1105 222422483B78 102510181039
-1106 222422483B78 1021102F1018103A
-1107 222422483B78 10251018103A
-1108 222422483B79 1021103110181039
-1109 222422483B79 102710181039
-1110 222422483B79 102110311018103A
-1111 222422483B79 10271018103A
-1112 222422483B7A 10211031102C10181039
-1113 222422483B7A 102910181039
-1114 222422483B7A 10211031102C1018103A
-1115 222422483B7A 10291018103A
-1116 222422483B7A 10211031102C10181039
-1117 222422483B7A 10291031102C10181039
-1118 222422483B7A 10211031102C1018103A
-1119 222422483B7A 10291031102C1018103A
-1120 222422483B7E 1021102D10191039
-1121 222422483B7E 102310191039
-1122 222422483B7E 1021102D1019103A
-1123 222422483B7E 10231019103A
-1124 222422483B7F 1021102F10191039
-1125 222422483B7F 102510191039
-1126 222422483B7F 1021102F1019103A
-1127 222422483B7F 10251019103A
-1128 222422483B80 1021103110191039
-1129 222422483B80 102710191039
-1130 222422483B80 102110311019103A
-1131 222422483B80 10271019103A
-1132 222422483B81 10211031102C10191039
-1133 222422483B81 102910191039
-1134 222422483B81 10211031102C1019103A
-1135 222422483B81 10291019103A
-1136 222422483B81 10211031102C10191039
-1137 222422483B81 10291031102C10191039
-1138 222422483B81 10211031102C1019103A
-1139 222422483B81 10291031102C1019103A
-1140 222422483B85 1021102D101A1039
-1141 222422483B85 1023101A1039
-1142 222422483B85 1021102D101A103A
-1143 222422483B85 1023101A103A
-1144 222422483B86 1021102F101A1039
-1145 222422483B86 1025101A1039
-1146 222422483B86 1021102F101A103A
-1147 222422483B86 1025101A103A
-1148 222422483B87 10211031101A1039
-1149 222422483B87 1027101A1039
-1150 222422483B87 10211031101A103A
-1151 222422483B87 1027101A103A
-1152 222422483B88 10211031102C101A1039
-1153 222422483B88 1029101A1039
-1154 222422483B88 10211031102C101A103A
-1155 222422483B88 1029101A103A
-1156 222422483B88 10211031102C101A1039
-1157 222422483B88 10291031102C101A1039
-1158 222422483B88 10211031102C101A103A
-1159 222422483B88 10291031102C101A103A
-1160 222422483B8C 1021102D101B1039
-1161 222422483B8C 1023101B1039
-1162 222422483B8C 1021102D101B103A
-1163 222422483B8C 1023101B103A
-1164 222422483B8D 1021102F101B1039
-1165 222422483B8D 1025101B1039
-1166 222422483B8D 1021102F101B103A
-1167 222422483B8D 1025101B103A
-1168 222422483B8E 10211031101B1039
-1169 222422483B8E 1027101B1039
-1170 222422483B8E 10211031101B103A
-1171 222422483B8E 1027101B103A
-1172 222422483B8F 10211031102C101B1039
-1173 222422483B8F 1029101B1039
-1174 222422483B8F 10211031102C101B103A
-1175 222422483B8F 1029101B103A
-1176 222422483B8F 10211031102C101B1039
-1177 222422483B8F 10291031102C101B1039
-1178 222422483B8F 10211031102C101B103A
-1179 222422483B8F 10291031102C101B103A
-1180 222422483B93 1021102D101C1039
-1181 222422483B93 1023101C1039
-1182 222422483B93 1021102D101C103A
-1183 222422483B93 1023101C103A
-1184 222422483B94 1021102F101C1039
-1185 222422483B94 1025101C1039
-1186 222422483B94 1021102F101C103A
-1187 222422483B94 1025101C103A
-1188 222422483B95 10211031101C1039
-1189 222422483B95 1027101C1039
-1190 222422483B95 10211031101C103A
-1191 222422483B95 1027101C103A
-1192 222422483B96 10211031102C101C1039
-1193 222422483B96 1029101C1039
-1194 222422483B96 10211031102C101C103A
-1195 222422483B96 1029101C103A
-1196 222422483B96 10211031102C101C1039
-1197 222422483B96 10291031102C101C1039
-1198 222422483B96 10211031102C101C103A
-1199 222422483B96 10291031102C101C103A
-1200 222422483BA1 1021102D101E1039
-1201 222422483BA1 1023101E1039
-1202 222422483BA1 1021102D101E103A
-1203 222422483BA1 1023101E103A
-1204 222422483BA2 1021102F101E1039
-1205 222422483BA2 1025101E1039
-1206 222422483BA2 1021102F101E103A
-1207 222422483BA2 1025101E103A
-1208 222422483BA3 10211031101E1039
-1209 222422483BA3 1027101E1039
-1210 222422483BA3 10211031101E103A
-1211 222422483BA3 1027101E103A
-1212 222422483BA4 10211031102C101E1039
-1213 222422483BA4 1029101E1039
-1214 222422483BA4 10211031102C101E103A
-1215 222422483BA4 1029101E103A
-1216 222422483BA4 10211031102C101E1039
-1217 222422483BA4 10291031102C101E1039
-1218 222422483BA4 10211031102C101E103A
-1219 222422483BA4 10291031102C101E103A
-1220 222422483BA8 1021102D101F1039
-1221 222422483BA8 1023101F1039
-1222 222422483BA8 1021102D101F103A
-1223 222422483BA8 1023101F103A
-1224 222422483BA9 1021102F101F1039
-1225 222422483BA9 1025101F1039
-1226 222422483BA9 1021102F101F103A
-1227 222422483BA9 1025101F103A
-1228 222422483BAA 10211031101F1039
-1229 222422483BAA 1027101F1039
-1230 222422483BAA 10211031101F103A
-1231 222422483BAA 1027101F103A
-1232 222422483BAB 10211031102C101F1039
-1233 222422483BAB 1029101F1039
-1234 222422483BAB 10211031102C101F103A
-1235 222422483BAB 1029101F103A
-1236 222422483BAB 10211031102C101F1039
-1237 222422483BAB 10291031102C101F1039
-1238 222422483BAB 10211031102C101F103A
-1239 222422483BAB 10291031102C101F103A
-1240 --- Contractions
-1241 22483AD221CD22483BBD 1031102C1000103A1000103B
-1242 22483AD221CD22483BBD 1031102C1000103A103B
-1243 22483B5921F822483B63 1014103A1014102F1015103A
-1244 22483B5921F822483B63 1014103A102F1015103A
-1245 --- Great Sa
-1246 22483BA32216 1031101E1039101E
-1247 22483BA32216 1031103F
-1248 22483BA12216 102D101E1039101E
-1249 22483BA12216 102D103F
-1250 22483BA22216 102F101E1039101E
-1251 22483BA22216 102F103F
-1252 222422483BA12216 1021102D101E1039101E
-1253 222422483BA12216 1023103F
-1254 222422483BA22216 1021102F101E1039101E
-1255 222422483BA22216 1025103F
-1256 22483B9F2216 101E1039101E
-1257 22483B9F2216 103F
-1258 --- Symbols - collate as long form
-1259 21F822483BC222483AD3 1014103E102D102F1000103A
-1260 21F822483BC222483AD3 104C
-1261 220922483BC0224222593ACB 101B103D10311037
-1262 220922483BC0224222593ACB 104D
-1263 220D22483B1322593ACC21CD22483AEE22593ACC 101C100A103A103810001031102C1004103A1038
-1264 220D22483B1322593ACC21CD22483AEE22593ACC 104E1004103A1038
-1265 22242236 1021102D
-1266 22242236 104F
-1267 --- Short Forms may need to be added here
-1268 220D22483ACD22072232 101C1000103A101A102C
-1269 220D22483ACD22072232 101C1000103A103B102C
-1270 221622052238 101E1019102E
-1271 221622052238 101E10391019102E
-1272 21F3220522483AE922593ACC 101110191004103A1038
-1273 21F3220522483AE922593ACC 1011103910191004103A1038
-1274 220D22483ACD220422483ACD 101C1000103A10181000103A
-1275 220D22483ACD220422483ACD 101C103910181000103A
-DROP TABLE t1;
-#
-# END of ctype_myanmar.inc
-#
-#
-# End of MariaDB-10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-SET NAMES utf8;
-SET collation_connection=utf16_thai_520_w2;
-#
-# Start of ctype_uca_w2.inc
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf16_thai_520_w2
-SELECT ID, SORTLEN, COLLATION_NAME, CHARACTER_SET_NAME
-FROM INFORMATION_SCHEMA.COLLATIONS
-WHERE COLLATION_NAME LIKE @@collation_connection;
-ID SORTLEN COLLATION_NAME CHARACTER_SET_NAME
-674 4 utf16_thai_520_w2 utf16
-#
-# Testing strnxfrm
-#
-CREATE TABLE t1 AS SELECT SPACE(3) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(3) CHARACTER SET utf16 COLLATE utf16_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (SPACE(0)),(SPACE(1)),(SPACE(2));
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(8))) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(8)))
- 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-0020 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-00200020 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4))) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4)))
- 020A020A020A020A0020002000200020
-0020 020A020A020A020A0020002000200020
-00200020 020A020A020A020A0020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 1)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 1))
- 020A020A020A020A
-0020 020A020A020A020A
-00200020 020A020A020A020A
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 2)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 2))
- 0020002000200020
-0020 0020002000200020
-00200020 0020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 3)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 3))
- 0020002000200020
-0020 0020002000200020
-00200020 0020002000200020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf16 COLLATE utf16_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_ucs2 0x3400);
-INSERT INTO t1 VALUES (_ucs2 0xF001);
-SELECT HEX(CONVERT(a USING ucs2)) AS ucs2, HEX(a), HEX(WEIGHT_STRING(a)) FROM t1;
-ucs2 HEX(a) HEX(WEIGHT_STRING(a))
-3400 3400 FB80B4000020
-F001 F001 FBC1F0010020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf16 COLLATE utf16_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('A'),('À'),('Ã'),('Â'),('Ã'),('Ä'),('Ã…');
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-A 0020
-Ã 00200032
-À 00200035
-Â 0020003C
-Ã… 00200043
-Ä 00200047
-Ã 0020004E
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a DESC;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-Ã 0020004E
-Ä 00200047
-Ã… 00200043
-Â 0020003C
-À 00200035
-Ã 00200032
-A 0020
-SET @backup_character_set_connection=@@character_set_connection;
-SET @backup_collation_connection=@@collation_connection;
-SET NAMES utf8;
-SET @stmt= CONCAT('ALTER TABLE t1 MODIFY a CHAR(10)' COLLATE utf8_bin,
-' CHARACTER SET ', @backup_character_set_connection,
-' COLLATE ', @backup_collation_connection);
-PREPARE stmt FROM @stmt;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-SET collation_connection=@backup_collation_connection;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) CHARACTER SET utf16 COLLATE utf16_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-A 0020
-Ã 00200032
-À 00200035
-Â 0020003C
-Ã… 00200043
-Ä 00200047
-Ã 0020004E
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a DESC;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-Ã 0020004E
-Ä 00200047
-Ã… 00200043
-Â 0020003C
-À 00200035
-Ã 00200032
-A 0020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf16 COLLATE utf16_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('cota'),('cote'),('cotz');
-INSERT INTO t1 VALUES ('coté'),('côte'),('côté'),('cotë'),('côtë');
-SELECT * FROM t1 ORDER BY a;
-a
-cota
-cote
-coté
-cotë
-côte
-côté
-côtë
-cotz
-SELECT * FROM t1 ORDER BY a DESC;
-a
-cotz
-côtë
-côté
-côte
-cotë
-coté
-cote
-cota
-DROP TABLE t1;
-#
-# End of ctype_uca_w2.inc
-#
-#
-# Start of ctype_thai.inc
-#
-CREATE TABLE t1 (a VARCHAR(30) CHARACTER SET utf8 COLLATE utf8_bin);
-INSERT INTO t1 VALUES ('-à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡');
-INSERT INTO t1 VALUES ('à¸à¸');
-INSERT INTO t1 VALUES ('à¸à¸£à¸²à¸š');
-INSERT INTO t1 VALUES ('ข่าง');
-INSERT INTO t1 VALUES ('ข้าง');
-INSERT INTO t1 VALUES ('ข้างà¸à¸£à¸°à¸”าน');
-INSERT INTO t1 VALUES ('ข้างขึ้น');
-INSERT INTO t1 VALUES ('ข้างควาย');
-INSERT INTO t1 VALUES ('ข้างเงิน');
-INSERT INTO t1 VALUES ('ข้างà¹à¸£à¸¡');
-INSERT INTO t1 VALUES ('ข้างออà¸');
-INSERT INTO t1 VALUES ('ข้างๆ');
-INSERT INTO t1 VALUES ('ข้างๆ คูๆ');
-INSERT INTO t1 VALUES ('ขาง');
-INSERT INTO t1 VALUES ('à¹à¸‚็ง');
-INSERT INTO t1 VALUES ('à¹à¸‚่ง');
-INSERT INTO t1 VALUES ('à¹à¸‚่งขัน');
-INSERT INTO t1 VALUES ('à¹à¸‚้ง');
-INSERT INTO t1 VALUES ('à¹à¸‚้งขวา');
-INSERT INTO t1 VALUES ('à¹à¸‚็งขัน');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²à¸¯');
-INSERT INTO t1 VALUES ('บุà¸à¸à¸²');
-INSERT INTO t1 VALUES ('บุà¸-หลง');
-INSERT INTO t1 VALUES ('บุà¸à¸«à¸¥à¸‡');
-INSERT INTO t1 VALUES ('ป่า');
-INSERT INTO t1 VALUES ('ป่าน');
-INSERT INTO t1 VALUES ('ป้า');
-INSERT INTO t1 VALUES ('ป้าน');
-INSERT INTO t1 VALUES ('ป๊า');
-INSERT INTO t1 VALUES ('ป๊าน');
-INSERT INTO t1 VALUES ('ป๋า');
-INSERT INTO t1 VALUES ('ป๋าน');
-INSERT INTO t1 VALUES ('ปา');
-INSERT INTO t1 VALUES ('ปาน');
-INSERT INTO t1 VALUES ('à¹à¸›à¹‰à¸‡');
-INSERT INTO t1 VALUES ('พณิชย์');
-INSERT INTO t1 VALUES ('ม้า');
-INSERT INTO t1 VALUES ('ฯพณฯ');
-INSERT INTO t1 VALUES ('A');
-INSERT INTO t1 VALUES ('a');
-INSERT INTO t1 VALUES ('a\'');
-INSERT INTO t1 VALUES ('A-');
-INSERT INTO t1 VALUES ('a-');
-INSERT INTO t1 VALUES ('-a');
-INSERT INTO t1 VALUES ('A.');
-INSERT INTO t1 VALUES ('a.');
-INSERT INTO t1 VALUES ('A-1');
-INSERT INTO t1 VALUES ('aa');
-INSERT INTO t1 VALUES ('AA');
-INSERT INTO t1 VALUES ('A.A.');
-INSERT INTO t1 VALUES ('a.a.');
-INSERT INTO t1 VALUES ('AAA');
-INSERT INTO t1 VALUES ('A.A.A.');
-INSERT INTO t1 VALUES ('AAAA');
-INSERT INTO t1 VALUES ('A.A.A.L.');
-INSERT INTO t1 VALUES ('A.A.A.S.');
-INSERT INTO t1 VALUES ('Aachen');
-INSERT INTO t1 VALUES ('A.A.E.');
-INSERT INTO t1 VALUES ('A.Ae.E.');
-INSERT INTO t1 VALUES ('A.A.E.E.');
-INSERT INTO t1 VALUES ('AAES');
-INSERT INTO t1 VALUES ('AAF');
-INSERT INTO t1 VALUES ('A.Agr');
-INSERT INTO t1 VALUES ('aah');
-INSERT INTO t1 VALUES ('@@@@@');
-INSERT INTO t1 VALUES ('0000');
-INSERT INTO t1 VALUES ('9999');
-INSERT INTO t1 VALUES ('Aalborg');
-INSERT INTO t1 VALUES ('aide');
-INSERT INTO t1 VALUES ('air');
-INSERT INTO t1 VALUES ('@@@air');
-INSERT INTO t1 VALUES ('air@@@');
-INSERT INTO t1 VALUES ('C.A.F');
-INSERT INTO t1 VALUES ('Canon');
-INSERT INTO t1 VALUES ('coop');
-INSERT INTO t1 VALUES ('co-op');
-INSERT INTO t1 VALUES ('COOP');
-INSERT INTO t1 VALUES ('CO-OP');
-INSERT INTO t1 VALUES ('Copenhegen');
-INSERT INTO t1 VALUES ('McArthur');
-INSERT INTO t1 VALUES ('Mc Arthur');
-INSERT INTO t1 VALUES ('Mc Mahon');
-INSERT INTO t1 VALUES ('vice-president');
-INSERT INTO t1 VALUES ('vice versa');
-INSERT INTO t1 VALUES ('vice-versa');
-INSERT INTO t1 VALUES ('10 ลิตร');
-INSERT INTO t1 VALUES ('๑๠ลิตร');
-INSERT INTO t1 VALUES ('10 litre');
-INSERT INTO t1 VALUES ('10 litre (10 ลิตร)');
-INSERT INTO t1 VALUES ('10 ลิตร (10 litre)');
-INSERT INTO t1 VALUES ('10 litre (๑๠ลิตร)');
-INSERT INTO t1 VALUES ('๑๠ลิตร (10 litre)');
-INSERT INTO t1 VALUES ('๑๠ลิตร [10 litre]');
-INSERT INTO t1 VALUES ('๑๠ลิตร {10 litre}');
-ALTER TABLE t1 ORDER BY a;
-SET @backup_character_set_connection=@@character_set_connection;
-SET @backup_collation_connection=@@collation_connection;
-SET NAMES utf8;
-SET @stmt= CONCAT('ALTER TABLE t1 MODIFY a VARCHAR(30)',
-' CHARACTER SET ', @backup_character_set_connection,
-' COLLATE ', @backup_collation_connection,
-' , ADD id INT NOT NULL AUTO_INCREMENT PRIMARY KEY'
- ' , ADD KEY a_id (a, id)');
-PREPARE stmt FROM @stmt;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-SET collation_connection=@backup_collation_connection;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) CHARACTER SET utf16 COLLATE utf16_thai_520_w2 DEFAULT NULL,
- `id` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`),
- KEY `a_id` (`a`,`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=97 DEFAULT CHARSET=latin1
-#
-# Ascending sort, using filesort
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a, BINARY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index; Using filesort
-SELECT a FROM t1 ORDER BY a, BINARY a;
-a
--a
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
-@@@@@
-@@@air
-0000
-10 litre
-10 litre (10 ลิตร)
-10 litre (๑๠ลิตร)
-10 ลิตร
-๑๠ลิตร
-10 ลิตร (10 litre)
-๑๠ลิตร (10 litre)
-๑๠ลิตร [10 litre]
-๑๠ลิตร {10 litre}
-9999
-A
-a
-A-
-a-
-A-1
-A.
-a.
-A.A.
-a.a.
-A.A.A.
-A.A.A.L.
-A.A.A.S.
-A.A.E.
-A.A.E.E.
-A.Ae.E.
-A.Agr
-a'
-AA
-aa
-AAA
-AAAA
-Aachen
-AAES
-AAF
-aah
-Aalborg
-aide
-air
-air@@@
-C.A.F
-Canon
-CO-OP
-co-op
-COOP
-coop
-Copenhegen
-Mc Arthur
-Mc Mahon
-McArthur
-vice versa
-vice-president
-vice-versa
-à¸à¸
-à¸à¸£à¸²à¸š
-ขาง
-ข่าง
-ข้าง
-ข้างๆ
-ข้างๆ คูๆ
-ข้างà¸à¸£à¸°à¸”าน
-ข้างขึ้น
-ข้างควาย
-ข้างเงิน
-ข้างà¹à¸£à¸¡
-ข้างออà¸
-à¹à¸‚็ง
-à¹à¸‚่ง
-à¹à¸‚้ง
-à¹à¸‚้งขวา
-à¹à¸‚็งขัน
-à¹à¸‚่งขัน
-ทูลเà¸à¸¥à¹‰à¸²
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-บุà¸-หลง
-บุà¸à¸à¸²
-บุà¸à¸«à¸¥à¸‡
-ปา
-ป่า
-ป้า
-ป๊า
-ป๋า
-ปาน
-ป่าน
-ป้าน
-ป๊าน
-ป๋าน
-à¹à¸›à¹‰à¸‡
-พณิชย์
-ม้า
-ฯพณฯ
-#
-# Descending sort, using filesort
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index; Using filesort
-SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC;
-a
-ฯพณฯ
-ม้า
-พณิชย์
-à¹à¸›à¹‰à¸‡
-ป๋าน
-ป๊าน
-ป้าน
-ป่าน
-ปาน
-ป๋า
-ป๊า
-ป้า
-ป่า
-ปา
-บุà¸à¸«à¸¥à¸‡
-บุà¸à¸à¸²
-บุà¸-หลง
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²
-à¹à¸‚่งขัน
-à¹à¸‚็งขัน
-à¹à¸‚้งขวา
-à¹à¸‚้ง
-à¹à¸‚่ง
-à¹à¸‚็ง
-ข้างออà¸
-ข้างà¹à¸£à¸¡
-ข้างเงิน
-ข้างควาย
-ข้างขึ้น
-ข้างà¸à¸£à¸°à¸”าน
-ข้างๆ คูๆ
-ข้างๆ
-ข้าง
-ข่าง
-ขาง
-à¸à¸£à¸²à¸š
-à¸à¸
-vice-versa
-vice-president
-vice versa
-McArthur
-Mc Mahon
-Mc Arthur
-Copenhegen
-coop
-COOP
-co-op
-CO-OP
-Canon
-C.A.F
-air@@@
-air
-aide
-Aalborg
-aah
-AAF
-AAES
-Aachen
-AAAA
-AAA
-aa
-AA
-a'
-A.Agr
-A.Ae.E.
-A.A.E.E.
-A.A.E.
-A.A.A.S.
-A.A.A.L.
-A.A.A.
-a.a.
-A.A.
-a.
-A.
-A-1
-a-
-A-
-a
-A
-9999
-๑๠ลิตร {10 litre}
-๑๠ลิตร [10 litre]
-๑๠ลิตร (10 litre)
-10 ลิตร (10 litre)
-๑๠ลิตร
-10 ลิตร
-10 litre (๑๠ลิตร)
-10 litre (10 ลิตร)
-10 litre
-0000
-@@@air
-@@@@@
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
--a
-#
-# Ascending sort, using index
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a, id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index
-SELECT a FROM t1 ORDER BY a, id;
-a
--a
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
-@@@@@
-@@@air
-0000
-10 litre
-10 litre (10 ลิตร)
-10 litre (๑๠ลิตร)
-10 ลิตร
-๑๠ลิตร
-10 ลิตร (10 litre)
-๑๠ลิตร (10 litre)
-๑๠ลิตร [10 litre]
-๑๠ลิตร {10 litre}
-9999
-A
-a
-A-
-a-
-A-1
-A.
-a.
-A.A.
-a.a.
-A.A.A.
-A.A.A.L.
-A.A.A.S.
-A.A.E.
-A.A.E.E.
-A.Ae.E.
-A.Agr
-a'
-AA
-aa
-AAA
-AAAA
-Aachen
-AAES
-AAF
-aah
-Aalborg
-aide
-air
-air@@@
-C.A.F
-Canon
-CO-OP
-co-op
-COOP
-coop
-Copenhegen
-Mc Arthur
-Mc Mahon
-McArthur
-vice versa
-vice-president
-vice-versa
-à¸à¸
-à¸à¸£à¸²à¸š
-ขาง
-ข่าง
-ข้าง
-ข้างๆ
-ข้างๆ คูๆ
-ข้างà¸à¸£à¸°à¸”าน
-ข้างขึ้น
-ข้างควาย
-ข้างเงิน
-ข้างà¹à¸£à¸¡
-ข้างออà¸
-à¹à¸‚็ง
-à¹à¸‚่ง
-à¹à¸‚้ง
-à¹à¸‚้งขวา
-à¹à¸‚็งขัน
-à¹à¸‚่งขัน
-ทูลเà¸à¸¥à¹‰à¸²
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-บุà¸-หลง
-บุà¸à¸à¸²
-บุà¸à¸«à¸¥à¸‡
-ปา
-ป่า
-ป้า
-ป๊า
-ป๋า
-ปาน
-ป่าน
-ป้าน
-ป๊าน
-ป๋าน
-à¹à¸›à¹‰à¸‡
-พณิชย์
-ม้า
-ฯพณฯ
-#
-# Descending sort, using index
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a DESC, id DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index
-SELECT a FROM t1 ORDER BY a DESC, id DESC;
-a
-ฯพณฯ
-ม้า
-พณิชย์
-à¹à¸›à¹‰à¸‡
-ป๋าน
-ป๊าน
-ป้าน
-ป่าน
-ปาน
-ป๋า
-ป๊า
-ป้า
-ป่า
-ปา
-บุà¸à¸«à¸¥à¸‡
-บุà¸à¸à¸²
-บุà¸-หลง
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²
-à¹à¸‚่งขัน
-à¹à¸‚็งขัน
-à¹à¸‚้งขวา
-à¹à¸‚้ง
-à¹à¸‚่ง
-à¹à¸‚็ง
-ข้างออà¸
-ข้างà¹à¸£à¸¡
-ข้างเงิน
-ข้างควาย
-ข้างขึ้น
-ข้างà¸à¸£à¸°à¸”าน
-ข้างๆ คูๆ
-ข้างๆ
-ข้าง
-ข่าง
-ขาง
-à¸à¸£à¸²à¸š
-à¸à¸
-vice-versa
-vice-president
-vice versa
-McArthur
-Mc Mahon
-Mc Arthur
-Copenhegen
-coop
-COOP
-co-op
-CO-OP
-Canon
-C.A.F
-air@@@
-air
-aide
-Aalborg
-aah
-AAF
-AAES
-Aachen
-AAAA
-AAA
-aa
-AA
-a'
-A.Agr
-A.Ae.E.
-A.A.E.E.
-A.A.E.
-A.A.A.S.
-A.A.A.L.
-A.A.A.
-a.a.
-A.A.
-a.
-A.
-A-1
-a-
-A-
-a
-A
-9999
-๑๠ลิตร {10 litre}
-๑๠ลิตร [10 litre]
-๑๠ลิตร (10 litre)
-10 ลิตร (10 litre)
-๑๠ลิตร
-10 ลิตร
-10 litre (๑๠ลิตร)
-10 litre (10 ลิตร)
-10 litre
-0000
-@@@air
-@@@@@
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
--a
-DROP TABLE t1;
-#
-# End of ctype_thai.inc
-#
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10877 xxx_unicode_nopad_ci collations
-#
-SET NAMES utf8, character_set_connection=utf16;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf16_unicode_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf16_unicode_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf16_unicode_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_unicode_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf16_unicode_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0E33020002000200020002000200020002000200
-0E33020902090200020002000200020002000200
-02090E3302000200020002000200020002000200
-02090E3302090200020002000200020002000200
-0E33020902090209020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf16_unicode_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf16_unicode_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf16_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf16_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf16_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf16_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf16_unicode_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf16_unicode_nopad_ci', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf16_unicode_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf16_unicode_nopad_ci', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_unicode_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf16_unicode_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf16_unicode_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf16_unicode_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf16_unicode_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_unicode_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf16_unicode_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0E33020002000200020002000200020002000200
-0E33020902090200020002000200020002000200
-02090E3302000200020002000200020002000200
-02090E3302090200020002000200020002000200
-0E33020902090209020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf16_unicode_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf16_unicode_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf16_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf16_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf16_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf16_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf16_unicode_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf16_unicode_nopad_ci', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf16_unicode_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf16_unicode_nopad_ci', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_unicode_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf16_unicode_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf16_unicode_520_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf16_unicode_520_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_520_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf16_unicode_520_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_unicode_520_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf16_unicode_520_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-120F020002000200020002000200020002000200
-120F020A020A0200020002000200020002000200
-020A120F02000200020002000200020002000200
-020A120F020A0200020002000200020002000200
-120F020A020A020A020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf16_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf16_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf16_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf16_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf16_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf16_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf16_unicode_520_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf16_unicode_520_nopad_ci', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf16_unicode_520_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf16_unicode_520_nopad_ci', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_unicode_520_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_520_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf16_unicode_520_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_520_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf16_unicode_520_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf16_unicode_520_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_520_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-00200061 a
-002000610020 a
-0061002000200020 a
-006100620063 abc
-00610062006300200020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-00610062006300200020 abc
-006100620063 abc
-0061002000200020 a
-002000610020 a
-00200061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf16_unicode_520_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-00610020 a
-0061002000200020 a
-006100620063 abc
-0061006200630020 abc
-00610062006300200020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_unicode_520_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-00200061 a
-002000610020 a
-0061 a
-006100200020 a
-0061002000200020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-0061002000200020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf16_unicode_520_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-00610061 1
-0061006100200020 1
-00610062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-120F020002000200020002000200020002000200
-120F020A020A0200020002000200020002000200
-020A120F02000200020002000200020002000200
-020A120F020A0200020002000200020002000200
-120F020A020A020A020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf16_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf16_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf16_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf16_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf16_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf16_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf16_unicode_520_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf16_unicode_520_nopad_ci', 'abc '))
-0061006200630020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf16_unicode_520_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf16_unicode_520_nopad_ci', 'abc '))
-00610062006300200020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16_unicode_520_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_520_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf16_unicode_520_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16_unicode_520_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET NAMES utf8, collation_connection=utf16_unicode_520_nopad_ci;
-#
-# MDEV-14350 Index use with collation utf8mb4_unicode_nopad_ci on LIKE pattern with wrong results
-#
-CREATE OR REPLACE TABLE t1 AS SELECT SPACE(50) AS a, SPACE (50) AS b;
-ALTER TABLE t1 ADD KEY(a), ADD KEY(b);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(50) CHARACTER SET utf16 COLLATE utf16_unicode_520_nopad_ci DEFAULT NULL,
- `b` varchar(50) CHARACTER SET utf16 COLLATE utf16_unicode_520_nopad_ci DEFAULT NULL,
- KEY `a` (`a`),
- KEY `b` (`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('111', '111');
-INSERT INTO t1 VALUES ('222', '222');
-INSERT INTO t1 VALUES ('333', '333');
-INSERT INTO t1 VALUES ('444', '444');
-SELECT * FROM t1 WHERE a LIKE '111%';
-a b
-111 111
-SELECT * FROM t1 IGNORE INDEX (a) WHERE a LIKE '111%';
-a b
-111 111
-DROP TABLE t1;
-SET NAMES utf8;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_utf16le.result b/mysql-test/r/ctype_utf16le.result
deleted file mode 100644
index 0fedff7d3bf..00000000000
--- a/mysql-test/r/ctype_utf16le.result
+++ /dev/null
@@ -1,2961 +0,0 @@
-SET TIME_ZONE='+03:00';
-DROP TABLE IF EXISTS t1;
-#
-# Start of 5.6 tests
-#
-SET NAMES utf8mb4, collation_connection=utf16le_general_ci;
-SELECT HEX('a'), HEX('a ');
-HEX('a') HEX('a ')
-6100 61002000
-select 'a' = 'a', 'a' = 'a ', 'a ' = 'a';
-'a' = 'a' 'a' = 'a ' 'a ' = 'a'
-1 1 1
-select 'a\0' = 'a', 'a\0' < 'a', 'a\0' > 'a';
-'a\0' = 'a' 'a\0' < 'a' 'a\0' > 'a'
-0 1 0
-select 'a' = 'a\0', 'a' < 'a\0', 'a' > 'a\0';
-'a' = 'a\0' 'a' < 'a\0' 'a' > 'a\0'
-0 0 1
-select 'a\0' = 'a ', 'a\0' < 'a ', 'a\0' > 'a ';
-'a\0' = 'a ' 'a\0' < 'a ' 'a\0' > 'a '
-0 1 0
-select 'a ' = 'a\0', 'a ' < 'a\0', 'a ' > 'a\0';
-'a ' = 'a\0' 'a ' < 'a\0' 'a ' > 'a\0'
-0 0 1
-select 'a a' > 'a', 'a \0' < 'a';
-'a a' > 'a' 'a \0' < 'a'
-1 1
-select binary 'a a' > 'a', binary 'a \0' > 'a', binary 'a\0' > 'a';
-binary 'a a' > 'a' binary 'a \0' > 'a' binary 'a\0' > 'a'
-1 1 1
-#
-# Check that incomplete utf16le characters in HEX notation
-# are left-padded with zeros
-#
-SELECT HEX(_utf16le 0x44);
-HEX(_utf16le 0x44)
-0044
-SELECT HEX(_utf16le 0x3344);
-HEX(_utf16le 0x3344)
-3344
-SELECT HEX(_utf16le 0x113344);
-HEX(_utf16le 0x113344)
-00113344
-#
-# Check that 0x20 is only trimmed when it is
-# a part of real SPACE character, not just a part
-# of a multibyte sequence.
-# Note, CYRILLIC LETTER ER is used as an example, which
-# is stored as 0x0420 in utf16le, thus contains 0x20 in the
-# low byte. The second character is THREE-PER-M, U+2004,
-# which contains 0x20 in the high byte.
-#
-CREATE TABLE t1 (word VARCHAR(64), word2 CHAR(64)) CHARACTER SET utf16le;
-INSERT INTO t1 VALUES (_koi8r 0xF2, _koi8r 0xF2), (_ucs2 X'2004',_ucs2 X'2004');
-SELECT HEX(word) FROM t1 ORDER BY word;
-HEX(word)
-2004
-0420
-SELECT HEX(word2) FROM t1 ORDER BY word2;
-HEX(word2)
-2004
-0420
-DELETE FROM t1;
-#
-# Check that real spaces are correctly trimmed.
-#
-INSERT INTO t1 VALUES (_ucs2 X'042000200020', _ucs2 X'042000200020');
-INSERT INTO t1 VALUES (_ucs2 X'200400200020', _ucs2 X'200400200020');
-SELECT HEX(word) FROM t1 ORDER BY word;
-HEX(word)
-200420002000
-042020002000
-SELECT HEX(word2) FROM t1 ORDER BY word2;
-HEX(word2)
-2004
-0420
-DROP TABLE t1;
-#
-# Check LPAD/RPAD
-#
-CREATE TABLE t1 (a VARCHAR(10), pad INT, b VARCHAR(10)) CHARACTER SET utf16le;
-INSERT INTO t1 VALUES (_ucs2 X'0420', 10, _ucs2 X'0421');
-INSERT INTO t1 VALUES (_ucs2 X'0420', 10, _ucs2 X'04210422');
-INSERT INTO t1 VALUES (_ucs2 X'0420', 10, _ucs2 X'042104220423');
-INSERT IGNORE INTO t1 VALUES (_ucs2 X'0420042104220423042404250426042704280429042A042B',10,_ucs2 X'042104220423');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-INSERT INTO t1 VALUES (_utf32 X'010000', 10, _ucs2 X'0421');
-INSERT INTO t1 VALUES (_ucs2 X'0421', 10, _utf32 X'010000');
-SELECT a, pad, b, LPAD(a, pad, b), HEX(LPAD(a, pad, b)) FROM t1;
-a pad b LPAD(a, pad, b) HEX(LPAD(a, pad, b))
-Р 10 С СССССССССР 2104210421042104210421042104210421042004
-Р 10 СТ СТСТСТСТСР 2104220421042204210422042104220421042004
-Р 10 СТУ СТУСТУСТУР 2104220423042104220423042104220423042004
-РСТУФХЦЧШЩ 10 СТУ РСТУФХЦЧШЩ 2004210422042304240425042604270428042904
-ð€€ 10 С Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡ð€€ 21042104210421042104210421042104210400D800DC
-С 10 ð€€ ð€€ð€€ð€€ð€€ð€€ð€€ð€€ð€€ð€€Ð¡ 00D800DC00D800DC00D800DC00D800DC00D800DC00D800DC00D800DC00D800DC00D800DC2104
-DROP TABLE t1;
-CREATE TABLE t1 SELECT
-LPAD(_utf16le X'2004',10,_utf16le X'2104') l,
-RPAD(_utf16le X'2004',10,_utf16le X'2104') r;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `l` varchar(10) CHARACTER SET utf16le DEFAULT NULL,
- `r` varchar(10) CHARACTER SET utf16le DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(l), HEX(r) FROM t1;
-HEX(l) HEX(r)
-2104210421042104210421042104210421042004 2004210421042104210421042104210421042104
-DROP TABLE t1;
-CREATE TABLE t1 (f1 CHAR(30));
-INSERT INTO t1 VALUES ("103000"), ("22720000"), ("3401200"), ("78000");
-SELECT LPAD(f1, 12, "-o-/") FROM t1;
-LPAD(f1, 12, "-o-/")
--o-/-o103000
--o-/22720000
--o-/-3401200
--o-/-o-78000
-DROP TABLE t1;
-#
-# Testing LIKE
-#
-SET NAMES utf8, collation_connection=utf16le_general_ci;
-select @@collation_connection;
-@@collation_connection
-utf16le_general_ci
-create table t1 as select repeat(' ',10) as a union select null;
-alter table t1 add key(a);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf16le DEFAULT NULL,
- KEY `a` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
-explain select * from t1 where a like 'abc%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 43 NULL 1 Using where; Using index
-explain select * from t1 where a like concat('abc','%');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 43 NULL 1 Using where; Using index
-select * from t1 where a like "abc%";
-a
-abc
-abcd
-select * from t1 where a like concat("abc","%");
-a
-abc
-abcd
-select * from t1 where a like "ABC%";
-a
-abc
-abcd
-select * from t1 where a like "test%";
-a
-test
-select * from t1 where a like "te_t";
-a
-test
-select * from t1 where a like "%a%";
-a
-a
-abc
-abcd
-select * from t1 where a like "%abcd%";
-a
-abcd
-select * from t1 where a like "%abc\d%";
-a
-abcd
-drop table t1;
-select 'AA' like 'AA';
-'AA' like 'AA'
-1
-select 'AA' like 'A%A';
-'AA' like 'A%A'
-1
-select 'AA' like 'A%%A';
-'AA' like 'A%%A'
-1
-select 'AA' like 'AA%';
-'AA' like 'AA%'
-1
-select 'AA' like '%AA%';
-'AA' like '%AA%'
-1
-select 'AA' like '%A';
-'AA' like '%A'
-1
-select 'AA' like '%AA';
-'AA' like '%AA'
-1
-select 'AA' like 'A%A%';
-'AA' like 'A%A%'
-1
-select 'AA' like '_%_%';
-'AA' like '_%_%'
-1
-select 'AA' like '%A%A';
-'AA' like '%A%A'
-1
-select 'AAA'like 'A%A%A';
-'AAA'like 'A%A%A'
-1
-select 'AZ' like 'AZ';
-'AZ' like 'AZ'
-1
-select 'AZ' like 'A%Z';
-'AZ' like 'A%Z'
-1
-select 'AZ' like 'A%%Z';
-'AZ' like 'A%%Z'
-1
-select 'AZ' like 'AZ%';
-'AZ' like 'AZ%'
-1
-select 'AZ' like '%AZ%';
-'AZ' like '%AZ%'
-1
-select 'AZ' like '%Z';
-'AZ' like '%Z'
-1
-select 'AZ' like '%AZ';
-'AZ' like '%AZ'
-1
-select 'AZ' like 'A%Z%';
-'AZ' like 'A%Z%'
-1
-select 'AZ' like '_%_%';
-'AZ' like '_%_%'
-1
-select 'AZ' like '%A%Z';
-'AZ' like '%A%Z'
-1
-select 'AZ' like 'A_';
-'AZ' like 'A_'
-1
-select 'AZ' like '_Z';
-'AZ' like '_Z'
-1
-select 'AMZ'like 'A%M%Z';
-'AMZ'like 'A%M%Z'
-1
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf16le);
-INSERT INTO t1 VALUES ('фыва'),('Фыва'),('фЫва'),('фыВа'),('фывÐ'),('ФЫВÐ');
-INSERT INTO t1 VALUES ('фывапролдж'),('Фывапролдж'),('фЫвапролдж'),('фыВапролдж');
-INSERT INTO t1 VALUES ('фывÐпролдж'),('фываПролдж'),('фывапРолдж'),('фывапрОлдж');
-INSERT INTO t1 VALUES ('фывапроЛдж'),('фывапролДж'),('фывапролдЖ'),('ФЫВÐПРОЛДЖ');
-SELECT * FROM t1 WHERE a LIKE '%фЫва%' ORDER BY BINARY a;
-a
-ФЫВÐ
-ФЫВÐПРОЛДЖ
-Фыва
-Фывапролдж
-фЫва
-фЫвапролдж
-фыВа
-фыВапролдж
-фывÐ
-фывÐпролдж
-фыва
-фываПролдж
-фывапРолдж
-фывапрОлдж
-фывапроЛдж
-фывапролДж
-фывапролдЖ
-фывапролдж
-SELECT * FROM t1 WHERE a LIKE '%фЫв%' ORDER BY BINARY a;
-a
-ФЫВÐ
-ФЫВÐПРОЛДЖ
-Фыва
-Фывапролдж
-фЫва
-фЫвапролдж
-фыВа
-фыВапролдж
-фывÐ
-фывÐпролдж
-фыва
-фываПролдж
-фывапРолдж
-фывапрОлдж
-фывапроЛдж
-фывапролДж
-фывапролдЖ
-фывапролдж
-SELECT * FROM t1 WHERE a LIKE 'фЫва%' ORDER BY BINARY a;
-a
-ФЫВÐ
-ФЫВÐПРОЛДЖ
-Фыва
-Фывапролдж
-фЫва
-фЫвапролдж
-фыВа
-фыВапролдж
-фывÐ
-фывÐпролдж
-фыва
-фываПролдж
-фывапРолдж
-фывапрОлдж
-фывапроЛдж
-фывапролДж
-фывапролдЖ
-фывапролдж
-SELECT * FROM t1 WHERE a LIKE 'фЫва%' COLLATE utf16le_bin ORDER BY BINARY a;
-a
-фЫва
-фЫвапролдж
-DROP TABLE t1;
-CREATE TABLE t1 (word VARCHAR(64) NOT NULL, PRIMARY KEY (word))
-ENGINE=MyISAM CHARACTER SET utf16le;
-INSERT INTO t1 (word) VALUES ("cat");
-SELECT * FROM t1 WHERE word LIKE "c%";
-word
-cat
-SELECT * FROM t1 WHERE word LIKE "ca_";
-word
-cat
-SELECT * FROM t1 WHERE word LIKE "cat";
-word
-cat
-SELECT * FROM t1 WHERE word LIKE _ucs2 x'00630025';
-word
-cat
-SELECT * FROM t1 WHERE word LIKE _ucs2 x'00630061005F';
-word
-cat
-DROP TABLE t1;
-#
-# Check that INSERT() works fine.
-# This invokes charpos() function.
-#
-CREATE TABLE t1 (
-a VARCHAR(10) CHARACTER SET utf16le,
-b VARCHAR(10) CHARACTER SET utf16le);
-INSERT INTO t1 VALUES ('abc', 'def');
-SELECT INSERT(a, 10, 2, b) FROM t1;
-INSERT(a, 10, 2, b)
-abc
-SELECT INSERT(a, 1, 2, b) FROM t1;
-INSERT(a, 1, 2, b)
-defc
-DROP TABLE t1;
-#
-# Bug#1264
-#
-SET NAMES utf8, collation_connection=utf16le_general_ci;
-#
-# Two fields, index
-#
-CREATE TABLE t1 (
-word VARCHAR(64),
-bar INT(11) DEFAULT 0,
-PRIMARY KEY (word))
-ENGINE=MyISAM
-CHARSET utf16le
-COLLATE utf16le_general_ci ;
-INSERT INTO t1 (word) VALUES ("aar");
-INSERT INTO t1 (word) VALUES ("a");
-INSERT INTO t1 (word) VALUES ("aardvar");
-INSERT INTO t1 (word) VALUES ("aardvark");
-INSERT INTO t1 (word) VALUES ("aardvara");
-INSERT INTO t1 (word) VALUES ("aardvarz");
-EXPLAIN SELECT * FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort
-SELECT * FROM t1 ORDER BY word;
-word bar
-a 0
-aar 0
-aardvar 0
-aardvara 0
-aardvark 0
-aardvarz 0
-EXPLAIN SELECT word FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 258 NULL 6 Using index
-SELECT word FROM t1 ORDER by word;
-word
-a
-aar
-aardvar
-aardvara
-aardvark
-aardvarz
-DROP TABLE t1;
-#
-# One field, index
-#
-CREATE TABLE t1 (
-word VARCHAR(64) ,
-PRIMARY KEY (word))
-ENGINE=MyISAM
-CHARSET utf16le
-COLLATE utf16le_general_ci;
-INSERT INTO t1 (word) VALUES ("aar");
-INSERT INTO t1 (word) VALUES ("a");
-INSERT INTO t1 (word) VALUES ("aardvar");
-INSERT INTO t1 (word) VALUES ("aardvark");
-INSERT INTO t1 (word) VALUES ("aardvara");
-INSERT INTO t1 (word) VALUES ("aardvarz");
-EXPLAIN SELECT * FROM t1 ORDER BY WORD;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 258 NULL 6 Using index
-SELECT * FROM t1 ORDER BY word;
-word
-a
-aar
-aardvar
-aardvara
-aardvark
-aardvarz
-DROP TABLE t1;
-#
-# Two fields, no index
-#
-CREATE TABLE t1 (
-word TEXT,
-bar INT(11) AUTO_INCREMENT,
-PRIMARY KEY (bar))
-ENGINE=MyISAM
-CHARSET utf16le
-COLLATE utf16le_general_ci ;
-INSERT INTO t1 (word) VALUES ("aar");
-INSERT INTO t1 (word) VALUES ("a" );
-INSERT INTO t1 (word) VALUES ("aardvar");
-INSERT INTO t1 (word) VALUES ("aardvark");
-INSERT INTO t1 (word) VALUES ("aardvara");
-INSERT INTO t1 (word) VALUES ("aardvarz");
-EXPLAIN SELECT * FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort
-SELECT * FROM t1 ORDER BY word;
-word bar
-a 2
-aar 1
-aardvar 3
-aardvara 5
-aardvark 4
-aardvarz 6
-EXPLAIN SELECT word FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort
-SELECT word FROM t1 ORDER BY word;
-word
-a
-aar
-aardvar
-aardvara
-aardvark
-aardvarz
-DROP TABLE t1;
-#
-# END OF Bug 1264 test
-#
-#
-# Check alignment for from-binary-conversion with CAST and CONVERT
-#
-SELECT HEX(CAST(0xAA as char CHARACTER SET utf16le));
-HEX(CAST(0xAA as char CHARACTER SET utf16le))
-00AA
-SELECT HEX(CONVERT(0xAA USING utf16le));
-HEX(CONVERT(0xAA USING utf16le))
-00AA
-#
-# Check alignment for string types
-#
-CREATE TABLE t1 (a CHAR(10) CHARACTER SET utf16le);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-0001
-0011
-0111
-1111
-00011111
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf16le);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-0001
-0011
-0111
-1111
-00011111
-DROP TABLE t1;
-CREATE TABLE t1 (a TEXT CHARACTER SET utf16le);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-0001
-0011
-0111
-1111
-00011111
-DROP TABLE t1;
-CREATE TABLE t1 (a MEDIUMTEXT CHARACTER SET utf16le);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-0001
-0011
-0111
-1111
-00011111
-DROP TABLE t1;
-CREATE TABLE t1 (a LONGTEXT CHARACTER SET utf16le);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-0001
-0011
-0111
-1111
-00011111
-DROP TABLE t1;
-#
-# Bug#5081 : UCS2 fields are filled with '0x2020'
-# after extending field length
-#
-CREATE TABLE t1(a CHAR(1)) DEFAULT CHARSET utf16le;
-INSERT INTO t1 VALUES ('a'),('b'),('c');
-ALTER TABLE t1 MODIFY a CHAR(5);
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-a 6100
-b 6200
-c 6300
-DROP TABLE t1;
-#
-# Check prepare statement from an UTF16 string
-#
-SET NAMES latin1;
-SET @ivar= 1234;
-SET @str1 = 'SELECT ?';
-SET @str2 = CONVERT(@str1 USING utf16le);
-PREPARE stmt1 FROM @str2;
-EXECUTE stmt1 USING @ivar;
-?
-1234
-#
-# Check that utf16le works with ENUM and SET type
-#
-SET NAMES utf8, collation_connection=utf16le_general_ci;
-CREATE TABLE t1 (a ENUM('x','y','z') CHARACTER SET utf16le);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('x','y','z') CHARACTER SET utf16le DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('x');
-INSERT INTO t1 VALUES ('y');
-INSERT INTO t1 VALUES ('z');
-SELECT a, HEX(a) FROM t1 ORDER BY a;
-a HEX(a)
-x 7800
-y 7900
-z 7A00
-ALTER TABLE t1 CHANGE a a ENUM('x','y','z','d','e','ä','ö','ü') CHARACTER SET utf16le;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('x','y','z','d','e','ä','ö','ü') CHARACTER SET utf16le DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('D');
-INSERT INTO t1 VALUES ('E ');
-INSERT INTO t1 VALUES ('ä');
-INSERT INTO t1 VALUES ('ö');
-INSERT INTO t1 VALUES ('ü');
-SELECT a, HEX(a) FROM t1 ORDER BY a;
-a HEX(a)
-x 7800
-y 7900
-z 7A00
-d 6400
-e 6500
-ä E400
-ö F600
-ü FC00
-DROP TABLE t1;
-CREATE TABLE t1 (a set ('x','y','z','ä','ö','ü') CHARACTER SET utf16le);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` set('x','y','z','ä','ö','ü') CHARACTER SET utf16le DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('x');
-INSERT INTO t1 VALUES ('y');
-INSERT INTO t1 VALUES ('z');
-INSERT INTO t1 VALUES ('x,y');
-INSERT INTO t1 VALUES ('x,y,z,ä,ö,ü');
-SELECT a, HEX(a) FROM t1 ORDER BY a;
-a HEX(a)
-x 7800
-y 7900
-x,y 78002C007900
-z 7A00
-x,y,z,ä,ö,ü 78002C0079002C007A002C00E4002C00F6002C00FC00
-DROP TABLE t1;
-#
-# Bug#7302 UCS2 data in ENUM fields get truncated when new column is added
-#
-CREATE TABLE t1(a ENUM('a','b','c')) DEFAULT CHARACTER SET utf16le;
-INSERT INTO t1 VALUES('a'),('b'),('c');
-ALTER TABLE t1 ADD b CHAR(1);
-SHOW WARNINGS;
-Level Code Message
-SELECT * FROM t1 ORDER BY a;
-a b
-a NULL
-b NULL
-c NULL
-DROP TABLE t1;
-SET NAMES utf8, collation_connection='utf16le_general_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf16le_general_ci 61000900
-utf16le_general_ci 6100
-utf16le_general_ci 61002000
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf16le_general_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf16le_general_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf16le_general_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-SET NAMES utf8, collation_connection='utf16le_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf16le_bin 61000900
-utf16le_bin 6100
-utf16le_bin 61002000
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf16le_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf16le_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-#
-# Bug#55980 Character sets: supplementary character _bin ordering is wrong
-#
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf16le COLLATE utf16le_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_utf8mb4 0xEFBE9D),(_utf8mb4 0xF0908E84);
-INSERT INTO t1 VALUES (_utf8mb4 0xCE85),(_utf8mb4 0xF4808080);
-SELECT HEX(a), HEX(CONVERT(a USING utf8mb4)) FROM t1 ORDER BY a;
-HEX(a) HEX(CONVERT(a USING utf8mb4))
-8503 CE85
-9DFF EFBE9D
-00D884DF F0908E84
-C0DB00DC F4808080
-ALTER TABLE t1 ADD KEY(a);
-SELECT HEX(a), HEX(CONVERT(a USING utf8mb4)) FROM t1 ORDER BY a;
-HEX(a) HEX(CONVERT(a USING utf8mb4))
-8503 CE85
-9DFF EFBE9D
-00D884DF F0908E84
-C0DB00DC F4808080
-DROP TABLE IF EXISTS t1;
-#
-# BUG#16691598 - ORDER BY LOWER(COLUMN) PRODUCES
-# OUT-OF-ORDER RESULTS
-#
-CREATE TABLE t1 SELECT ('a a') as n;
-INSERT INTO t1 VALUES('a b');
-SELECT * FROM t1 ORDER BY LOWER(n) ASC;
-n
-a a
-a b
-SELECT * FROM t1 ORDER BY LOWER(n) DESC;
-n
-a b
-a a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf16le_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-#
-# Bug#10344 Some string functions fail for UCS2
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf16le, pos INT);
-INSERT INTO t1 VALUES (_ucs2 0x00e400e50068,1);
-INSERT INTO t1 VALUES (_ucs2 0x00e400e50068,2);
-INSERT INTO t1 VALUES (_ucs2 0x00e400e50068,3);
-INSERT INTO t1 VALUES (_ucs2 0x00e400e50068,-1);
-INSERT INTO t1 VALUES (_ucs2 0x00e400e50068,-2);
-INSERT INTO t1 VALUES (_ucs2 0x00e400e50068,-3);
-INSERT INTO t1 VALUES (_utf32 0x000000e4000000e500010000, 1);
-INSERT INTO t1 VALUES (_utf32 0x000000e4000000e500010000, 2);
-INSERT INTO t1 VALUES (_utf32 0x000000e4000000e500010000, 3);
-INSERT INTO t1 VALUES (_utf32 0x000000e4000000e500010000, -1);
-INSERT INTO t1 VALUES (_utf32 0x000000e4000000e500010000, -2);
-INSERT INTO t1 VALUES (_utf32 0x000000e4000000e500010000, -3);
-SELECT HEX(SUBSTR(a, pos)), SUBSTR(a, pos) FROM t1;
-HEX(SUBSTR(a, pos)) SUBSTR(a, pos)
-E400E5006800 äåh
-E5006800 åh
-6800 h
-6800 h
-E5006800 åh
-E400E5006800 äåh
-E400E50000D800DC äå?
-E50000D800DC å?
-00D800DC ?
-00D800DC ?
-E50000D800DC å?
-E400E50000D800DC äå?
-DROP TABLE t1;
-SET NAMES utf8, collation_connection=utf16le_general_ci;
-#
-# Bug#9442 Set parameter make query fail if column CHARACTER SET is UCS2
-#
-CREATE TABLE t1 (utext VARCHAR(20) CHARACTER SET utf16le);
-INSERT INTO t1 VALUES ("lily");
-INSERT INTO t1 VALUES ("river");
-PREPARE stmt FROM 'SELECT utext FROM t1 where utext like ?';
-SET @param1='%%';
-EXECUTE stmt USING @param1;
-utext
-lily
-river
-EXECUTE stmt USING @param1;
-utext
-lily
-river
-SELECT utext FROM t1 where utext like '%%';
-utext
-lily
-river
-DROP TABLE t1;
-DEALLOCATE PREPARE stmt;
-#
-# Bug#22052 Trailing spaces are not removed FROM UNICODE fields in an index
-#
-CREATE TABLE t1 (
-a CHAR(10) CHARACTER SET utf16le NOT NULL,
-INDEX a (a)
-) engine=myisam;
-INSERT INTO t1 VALUES (REPEAT(_ucs2 0x201f, 10));
-INSERT INTO t1 VALUES (REPEAT(_ucs2 0x2020, 10));
-INSERT INTO t1 VALUES (REPEAT(_ucs2 0x2021, 10));
-# make sure "index read" is used
-explain SELECT HEX(a) FROM t1 ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 40 NULL 3 Using index
-SELECT HEX(a) FROM t1 ORDER BY a;
-HEX(a)
-1F201F201F201F201F201F201F201F201F201F20
-2020202020202020202020202020202020202020
-2120212021202120212021202120212021202120
-ALTER TABLE t1 DROP INDEX a;
-SELECT HEX(a) FROM t1 ORDER BY a;
-HEX(a)
-1F201F201F201F201F201F201F201F201F201F20
-2020202020202020202020202020202020202020
-2120212021202120212021202120212021202120
-DROP TABLE t1;
-#
-# Bug #20108: corrupted default enum value for a ucs2 field
-#
-CREATE TABLE t1 (
-status ENUM('active','passive') CHARACTER SET utf16le COLLATE utf16le_general_ci
-NOT NULL DEFAULT 'passive'
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `status` enum('active','passive') CHARACTER SET utf16le NOT NULL DEFAULT 'passive'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 ADD a int NOT NULL AFTER status;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `status` enum('active','passive') CHARACTER SET utf16le NOT NULL DEFAULT 'passive',
- `a` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# Conversion FROM an UTF16LE string to a decimal column
-#
-CREATE TABLE t1 (a VARCHAR(64) CHARACTER SET utf16le, b DECIMAL(10,3));
-INSERT INTO t1 VALUES ("1.1", 0), ("2.1", 0);
-UPDATE t1 set b=a;
-SELECT *, HEX(a) FROM t1;
-a b HEX(a)
-1.1 1.100 31002E003100
-2.1 2.100 32002E003100
-DROP TABLE t1;
-#
-# Bug#9442 Set parameter make query fail if column CHARACTER SET is UCS2
-#
-CREATE TABLE t1 (utext VARCHAR(20) CHARACTER SET utf16le);
-INSERT INTO t1 VALUES ("lily");
-INSERT INTO t1 VALUES ("river");
-PREPARE stmt FROM 'SELECT utext FROM t1 where utext like ?';
-SET @param1='%%';
-EXECUTE stmt USING @param1;
-utext
-lily
-river
-EXECUTE stmt USING @param1;
-utext
-lily
-river
-SELECT utext FROM t1 where utext like '%%';
-utext
-lily
-river
-DROP TABLE t1;
-DEALLOCATE PREPARE stmt;
-#
-# Bug#22638 SOUNDEX broken for international characters
-#
-SET NAMES utf8, collation_connection=utf16le_general_ci;
-SELECT SOUNDEX(''),SOUNDEX('he'),SOUNDEX('hello all folks'),SOUNDEX('#3556 in bugdb');
-SOUNDEX('') SOUNDEX('he') SOUNDEX('hello all folks') SOUNDEX('#3556 in bugdb')
- H000 H4142 I51231
-SELECT HEX(SOUNDEX('')),HEX(SOUNDEX('he')),HEX(SOUNDEX('hello all folks')),HEX(SOUNDEX('#3556 in bugdb'));
-HEX(SOUNDEX('')) HEX(SOUNDEX('he')) HEX(SOUNDEX('hello all folks')) HEX(SOUNDEX('#3556 in bugdb'))
- 4800300030003000 48003400310034003200 490035003100320033003100
-SELECT 'mood' sounds like 'mud';
-'mood' sounds like 'mud'
-1
-# Cyrillic A, BE, VE
-SELECT HEX(SOUNDEX(_utf16le 0x041004110412));
-HEX(SOUNDEX(_utf16le 0x041004110412))
-0410300030003000
-# Make sure that "U+00BF INVERTED QUESTION MARK" is not considered as letter
-SELECT HEX(SOUNDEX(_utf16le 0x00BF00C0));
-HEX(SOUNDEX(_utf16le 0x00BF00C0))
-00BF300030003000
-#
-# Bug#14290: character_maximum_length for text fields
-#
-CREATE TABLE t1(a BLOB, b TEXT CHARSET utf16le);
-SELECT data_type, character_octet_length, character_maximum_length
-FROM information_schema.columns where table_name='t1';
-data_type character_octet_length character_maximum_length
-blob 65535 65535
-text 65535 32767
-DROP TABLE t1;
-SET NAMES utf8, collation_connection=utf16le_general_ci;
-#
-# Testing cs->coll->instr()
-#
-SELECT POSITION('bb' IN 'abba');
-POSITION('bb' IN 'abba')
-2
-#
-# Testing cs->coll->hash_sort()
-#
-SET NAMES utf8, collation_connection=utf16le_bin;
-#
-# Test that cs->coll->hash_sort() ignores trailing spaces
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf16le_bin
-CREATE TABLE t1 ENGINE=HEAP AS SELECT REPEAT (' ', 10) AS a LIMIT 0;
-ALTER TABLE t1 ADD KEY (a);
-CREATE TABLE t2 (a VARCHAR(10));
-INSERT INTO t2 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
-INSERT INTO t2 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
-INSERT INTO t1 SELECT CONCAT('a',t21.a,t22.a) FROM t2 t21, t2 t22 ORDER BY 1;
-DROP TABLE t2;
-INSERT INTO t1 VALUES ('a ');
-SELECT a, HEX(a) FROM t1 WHERE a='a';
-a HEX(a)
-a 61002000
-DROP TABLE t1;
-SET NAMES utf8, collation_connection=utf16le_general_ci;
-#
-# Test that cs->coll->hash_sort() ignores trailing spaces
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf16le_general_ci
-CREATE TABLE t1 ENGINE=HEAP AS SELECT REPEAT (' ', 10) AS a LIMIT 0;
-ALTER TABLE t1 ADD KEY (a);
-CREATE TABLE t2 (a VARCHAR(10));
-INSERT INTO t2 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
-INSERT INTO t2 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
-INSERT INTO t1 SELECT CONCAT('a',t21.a,t22.a) FROM t2 t21, t2 t22 ORDER BY 1;
-DROP TABLE t2;
-INSERT INTO t1 VALUES ('a ');
-SELECT a, HEX(a) FROM t1 WHERE a='a';
-a HEX(a)
-a 61002000
-DROP TABLE t1;
-#
-# Testing cs->cset->numchars()
-#
-SELECT CHAR_LENGTH('abcd'), OCTET_LENGTH('abcd');
-CHAR_LENGTH('abcd') OCTET_LENGTH('abcd')
-4 8
-SELECT CHAR_LENGTH(_utf16le 0x00D800DC), OCTET_LENGTH(_utf16le 0x00D800DC);
-CHAR_LENGTH(_utf16le 0x00D800DC) OCTET_LENGTH(_utf16le 0x00D800DC)
-1 4
-SELECT CHAR_LENGTH(_utf16le 0x7DD8FFDF), OCTET_LENGTH(_utf16le 0x7FD8DDDF);
-CHAR_LENGTH(_utf16le 0x7DD8FFDF) OCTET_LENGTH(_utf16le 0x7FD8DDDF)
-1 4
-#
-# Testing cs->cset->charpos()
-#
-SELECT LEFT('abcd',2);
-LEFT('abcd',2)
-ab
-SELECT HEX(LEFT(_utf16le 0x00D800DC7FD8FFDF, 1));
-HEX(LEFT(_utf16le 0x00D800DC7FD8FFDF, 1))
-00D800DC
-SELECT HEX(RIGHT(_utf16le 0x00D800DC7FD8FFDF, 1));
-HEX(RIGHT(_utf16le 0x00D800DC7FD8FFDF, 1))
-7FD8FFDF
-#
-# Testing cs->cset->well_formed_length()
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf16le);
-# Bad sequences
-INSERT INTO t1 VALUES (_utf16le 0x00D8);
-ERROR HY000: Invalid utf16le character string: '00D8'
-INSERT INTO t1 VALUES (_utf16le 0x00DC);
-ERROR HY000: Invalid utf16le character string: '00DC'
-INSERT INTO t1 VALUES (_utf16le 0x00D800D8);
-ERROR HY000: Invalid utf16le character string: '00D800'
-INSERT INTO t1 VALUES (_utf16le 0x00D800E8);
-ERROR HY000: Invalid utf16le character string: '00D800'
-INSERT INTO t1 VALUES (_utf16le 0x00D80008);
-ERROR HY000: Invalid utf16le character string: '00D800'
-# Good sequences
-INSERT INTO t1 VALUES (_utf16le 0x00D800DC);
-INSERT INTO t1 VALUES (_utf16le 0x00D8FFDC);
-INSERT INTO t1 VALUES (_utf16le 0xFFDB00DC);
-INSERT INTO t1 VALUES (_utf16le 0xFFDBFFDC);
-SELECT HEX(a) FROM t1;
-HEX(a)
-00D800DC
-00D8FFDC
-FFDB00DC
-FFDBFFDC
-DROP TABLE t1;
-#
-# Bug#32393 Character sets: illegal characters in utf16le columns
-#
-# Tests that cs->cset->wc_mb() doesn't accept surrogate parts
-#
-# via ALTER
-#
-CREATE TABLE t1 (s1 VARCHAR(50) CHARACTER SET ucs2);
-INSERT INTO t1 VALUES (0xDF84);
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 MODIFY column s1 VARCHAR(50) CHARACTER SET utf16le;
-Warnings:
-Warning 1366 Incorrect string value: '\xDF\x84' for column 's1' at row 1
-SELECT HEX(s1) FROM t1;
-HEX(s1)
-3F00
-DROP TABLE t1;
-#
-# via UPDATE
-#
-CREATE TABLE t1 (s1 VARCHAR(5) CHARACTER SET ucs2, s2 VARCHAR(5) CHARACTER SET utf16le);
-INSERT INTO t1 (s1) VALUES (0xdf84);
-UPDATE IGNORE t1 set s2 = s1;
-Warnings:
-Warning 1366 Incorrect string value: '\xDF\x84' for column 's2' at row 1
-SELECT HEX(s2) FROM t1;
-HEX(s2)
-3F00
-DROP TABLE t1;
-#
-# Testing cs->cset->lengthsp()
-#
-CREATE TABLE t1 (a CHAR(10)) CHARACTER SET utf16le;
-INSERT INTO t1 VALUES ('a ');
-SELECT HEX(a) FROM t1;
-HEX(a)
-6100
-DROP TABLE t1;
-#
-# Testing cs->cset->caseup() and cs->cset->casedn()
-#
-SELECT UPPER('abcd'), LOWER('ABCD');
-UPPER('abcd') LOWER('ABCD')
-ABCD abcd
-#
-# Checking str_to_datetime()
-#
-select @@collation_connection;
-@@collation_connection
-utf16le_general_ci
-CREATE TABLE t1 (a date);
-INSERT INTO t1 VALUES ('2007-09-16');
-SELECT * FROM t1;
-a
-2007-09-16
-DROP TABLE t1;
-#
-# Testing cs->cset->ll10tostr
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf16le);
-INSERT INTO t1 VALUES (123456);
-SELECT a, HEX(a) FROM t1;
-a HEX(a)
-123456 310032003300340035003600
-DROP TABLE t1;
-#
-# Testing cs->cset->fill
-# SOUNDEX fills strings with DIGIT ZERO up to four characters
-#
-SELECT SOUNDEX('a'), HEX(SOUNDEX('a'));
-SOUNDEX('a') HEX(SOUNDEX('a'))
-A000 4100300030003000
-#
-# Testing cs->cset->strntoul
-#
-CREATE TABLE t1 (a enum ('a','b','c')) CHARACTER SET utf16le;
-INSERT INTO t1 VALUES ('1');
-SELECT * FROM t1;
-a
-a
-DROP TABLE t1;
-#
-# Testing cs->cset->strntoll and cs->cset->strntoull
-#
-SET NAMES latin1;
-SELECT HEX(CONV(CONVERT('123' USING utf16le), -10, 16));
-HEX(CONV(CONVERT('123' USING utf16le), -10, 16))
-3742
-SELECT HEX(CONV(CONVERT('123' USING utf16le), 10, 16));
-HEX(CONV(CONVERT('123' USING utf16le), 10, 16))
-3742
-SET NAMES utf8, collation_connection=utf16le_general_ci;
-#
-# Testing cs->cset->strntod
-#
-SET NAMES utf8, collation_connection=utf16le_general_ci;
-SELECT 1.1 + '1.2';
-1.1 + '1.2'
-2.3
-SELECT 1.1 + '1.2xxx';
-1.1 + '1.2xxx'
-2.3
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1.2xxx'
-#
-# Testing cs->cset->strtoll10
-#
-SELECT LEFT('aaa','1');
-LEFT('aaa','1')
-a
-CREATE TABLE t1 AS SELECT REPEAT('abcd', 128) AS a;
-SELECT LEFT(a, '2') FROM t1;
-LEFT(a, '2')
-ab
-SELECT LEFT(a, ' \t \t 2') FROM t1;
-LEFT(a, ' \t \t 2')
-ab
-SELECT LEFT(a, ' \t \t +2') FROM t1;
-LEFT(a, ' \t \t +2')
-ab
-SELECT SUBSTR(a, '-2') FROM t1;
-SUBSTR(a, '-2')
-cd
-SELECT SUBSTR(a, ' \t \t -2') FROM t1;
-SUBSTR(a, ' \t \t -2')
-cd
-SELECT LEFT(a, '00002') FROM t1;
-LEFT(a, '00002')
-ab
-SELECT LEFT(a, ' \t \t 00002') FROM t1;
-LEFT(a, ' \t \t 00002')
-ab
-SELECT LEFT(a, ' \t \t +00002') FROM t1;
-LEFT(a, ' \t \t +00002')
-ab
-SELECT SUBSTR(a, '-00002') FROM t1;
-SUBSTR(a, '-00002')
-cd
-SELECT SUBSTR(a, ' \t \t -00002') FROM t1;
-SUBSTR(a, ' \t \t -00002')
-cd
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('abcd', 128) AS a LIMIT 0;
-INSERT INTO t1 VALUES ('255'), ('65535'),('16777215'),('4294967295'),
-('1099511627775'),('281474976710655'),('72057594037927935'),
-('1844674407370955161'),('18446744073709551614'), ('18446744073709551615');
-SELECT a, CAST(a AS SIGNED), CAST(a AS UNSIGNED) FROM t1;
-a CAST(a AS SIGNED) CAST(a AS UNSIGNED)
-255 255 255
-65535 65535 65535
-16777215 16777215 16777215
-4294967295 4294967295 4294967295
-1099511627775 1099511627775 1099511627775
-281474976710655 281474976710655 281474976710655
-72057594037927935 72057594037927935 72057594037927935
-1844674407370955161 1844674407370955161 1844674407370955161
-18446744073709551614 -2 18446744073709551614
-18446744073709551615 -1 18446744073709551615
-Warnings:
-Note 1105 Cast to signed converted positive out-of-range integer to it's negative complement
-Note 1105 Cast to signed converted positive out-of-range integer to it's negative complement
-UPDATE t1 SET a=CONCAT('-', a);
-SELECT a, CAST(a AS SIGNED) FROM t1;
-a CAST(a AS SIGNED)
--255 -255
--65535 -65535
--16777215 -16777215
--4294967295 -4294967295
--1099511627775 -1099511627775
--281474976710655 -281474976710655
--72057594037927935 -72057594037927935
--1844674407370955161 -1844674407370955161
--18446744073709551614 -9223372036854775808
--18446744073709551615 -9223372036854775808
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '-18446744073709551614'
-Warning 1292 Truncated incorrect INTEGER value: '-18446744073709551615'
-DROP TABLE t1;
-#
-# Testing cs->cset->strtoll10()
-#
-SELECT @@character_set_connection;
-@@character_set_connection
-utf16le
-SELECT CAST('1' AS UNSIGNED);
-CAST('1' AS UNSIGNED)
-1
-SELECT CAST('12' AS UNSIGNED);
-CAST('12' AS UNSIGNED)
-12
-SELECT CAST('123' AS UNSIGNED);
-CAST('123' AS UNSIGNED)
-123
-SELECT CAST('1234' AS UNSIGNED);
-CAST('1234' AS UNSIGNED)
-1234
-SELECT CAST('12345' AS UNSIGNED);
-CAST('12345' AS UNSIGNED)
-12345
-SELECT CAST('123456' AS UNSIGNED);
-CAST('123456' AS UNSIGNED)
-123456
-SELECT CAST('1234567' AS UNSIGNED);
-CAST('1234567' AS UNSIGNED)
-1234567
-SELECT CAST('12345678' AS UNSIGNED);
-CAST('12345678' AS UNSIGNED)
-12345678
-SELECT CAST('123456789' AS UNSIGNED);
-CAST('123456789' AS UNSIGNED)
-123456789
-SELECT CAST('1234567891' AS UNSIGNED);
-CAST('1234567891' AS UNSIGNED)
-1234567891
-SELECT CAST('12345678912' AS UNSIGNED);
-CAST('12345678912' AS UNSIGNED)
-12345678912
-SELECT CAST('123456789123' AS UNSIGNED);
-CAST('123456789123' AS UNSIGNED)
-123456789123
-SELECT CAST('1234567891234' AS UNSIGNED);
-CAST('1234567891234' AS UNSIGNED)
-1234567891234
-SELECT CAST('12345678912345' AS UNSIGNED);
-CAST('12345678912345' AS UNSIGNED)
-12345678912345
-SELECT CAST('123456789123456' AS UNSIGNED);
-CAST('123456789123456' AS UNSIGNED)
-123456789123456
-SELECT CAST('1234567891234567' AS UNSIGNED);
-CAST('1234567891234567' AS UNSIGNED)
-1234567891234567
-SELECT CAST('12345678912345678' AS UNSIGNED);
-CAST('12345678912345678' AS UNSIGNED)
-12345678912345678
-SELECT CAST('123456789123456789' AS UNSIGNED);
-CAST('123456789123456789' AS UNSIGNED)
-123456789123456789
-SELECT CAST('1234567891234567891' AS UNSIGNED);
-CAST('1234567891234567891' AS UNSIGNED)
-1234567891234567891
-SELECT CAST('12345678912345678912' AS UNSIGNED);
-CAST('12345678912345678912' AS UNSIGNED)
-12345678912345678912
-SELECT CAST('123456789123456789123' AS UNSIGNED);
-CAST('123456789123456789123' AS UNSIGNED)
-18446744073709551615
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123456789123'
-SELECT CAST('1x' AS UNSIGNED);
-CAST('1x' AS UNSIGNED)
-1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1x'
-SELECT CAST('12x' AS UNSIGNED);
-CAST('12x' AS UNSIGNED)
-12
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12x'
-SELECT CAST('123x' AS UNSIGNED);
-CAST('123x' AS UNSIGNED)
-123
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123x'
-SELECT CAST('1234x' AS UNSIGNED);
-CAST('1234x' AS UNSIGNED)
-1234
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234x'
-SELECT CAST('12345x' AS UNSIGNED);
-CAST('12345x' AS UNSIGNED)
-12345
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345x'
-SELECT CAST('123456x' AS UNSIGNED);
-CAST('123456x' AS UNSIGNED)
-123456
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456x'
-SELECT CAST('1234567x' AS UNSIGNED);
-CAST('1234567x' AS UNSIGNED)
-1234567
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567x'
-SELECT CAST('12345678x' AS UNSIGNED);
-CAST('12345678x' AS UNSIGNED)
-12345678
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678x'
-SELECT CAST('123456789x' AS UNSIGNED);
-CAST('123456789x' AS UNSIGNED)
-123456789
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789x'
-SELECT CAST('1234567891x' AS UNSIGNED);
-CAST('1234567891x' AS UNSIGNED)
-1234567891
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567891x'
-SELECT CAST('12345678912x' AS UNSIGNED);
-CAST('12345678912x' AS UNSIGNED)
-12345678912
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678912x'
-SELECT CAST('123456789123x' AS UNSIGNED);
-CAST('123456789123x' AS UNSIGNED)
-123456789123
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123x'
-SELECT CAST('1234567891234x' AS UNSIGNED);
-CAST('1234567891234x' AS UNSIGNED)
-1234567891234
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567891234x'
-SELECT CAST('12345678912345x' AS UNSIGNED);
-CAST('12345678912345x' AS UNSIGNED)
-12345678912345
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678912345x'
-SELECT CAST('123456789123456x' AS UNSIGNED);
-CAST('123456789123456x' AS UNSIGNED)
-123456789123456
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123456x'
-SELECT CAST('1234567891234567x' AS UNSIGNED);
-CAST('1234567891234567x' AS UNSIGNED)
-1234567891234567
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567891234567x'
-SELECT CAST('12345678912345678x' AS UNSIGNED);
-CAST('12345678912345678x' AS UNSIGNED)
-12345678912345678
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678912345678x'
-SELECT CAST('123456789123456789x' AS UNSIGNED);
-CAST('123456789123456789x' AS UNSIGNED)
-123456789123456789
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123456789x'
-SELECT CAST('1234567891234567891x' AS UNSIGNED);
-CAST('1234567891234567891x' AS UNSIGNED)
-1234567891234567891
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567891234567891x'
-SELECT CAST('12345678912345678912x' AS UNSIGNED);
-CAST('12345678912345678912x' AS UNSIGNED)
-12345678912345678912
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678912345678912x'
-SELECT CAST('123456789123456789123x' AS UNSIGNED);
-CAST('123456789123456789123x' AS UNSIGNED)
-18446744073709551615
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123456789123x'
-#
-# Testing cs->cset->strntoull10rnd
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES ('-1234.1e2');
-INSERT IGNORE INTO t1 VALUES ('-1234.1e2xxxx');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-INSERT INTO t1 VALUES ('-1234.1e2 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-INSERT INTO t1 VALUES ('123');
-INSERT INTO t1 VALUES ('-124');
-INSERT INTO t1 VALUES ('+125');
-INSERT INTO t1 VALUES (' \t \t 123');
-INSERT INTO t1 VALUES (' \t \t -124');
-INSERT INTO t1 VALUES (' \t \t +125');
-INSERT INTO t1 VALUES (' \t \t 000123');
-INSERT INTO t1 VALUES (' \t \t -000124');
-INSERT INTO t1 VALUES (' \t \t +000125');
-SELECT * FROM t1;
-a
--123410
--123410
--123410
-123
--124
-125
-123
--124
-125
-123
--124
-125
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT UNSIGNED);
-INSERT INTO t1 VALUES ('255'), ('65535'),('16777215'),('4294967295'),
-('1099511627775'),('281474976710655'),('72057594037927935'),
-('1844674407370955161'),('18446744073709551614'), ('18446744073709551615');
-SELECT * FROM t1;
-a
-255
-65535
-16777215
-4294967295
-1099511627775
-281474976710655
-72057594037927935
-1844674407370955161
-18446744073709551614
-18446744073709551615
-DROP TABLE t1;
-#
-# Testing cs->cset->scan
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES ('1 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-INSERT IGNORE INTO t1 VALUES ('1 x');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1;
-a
-1
-1
-DROP TABLE t1;
-#
-# Testing auto-conversion to TEXT
-#
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t1 (a VARCHAR(17000) CHARACTER SET utf16le);
-Warnings:
-Note 1246 Converting column 'a' from VARCHAR to TEXT
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` mediumtext CHARACTER SET utf16le DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# Testing that maximim possible key length is 1000 bytes
-#
-CREATE TABLE t1 (a VARCHAR(250) CHARACTER SET utf16le PRIMARY KEY);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(250) CHARACTER SET utf16le NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(334) CHARACTER SET utf16le PRIMARY KEY);
-ERROR 42000: Specified key was too long; max key length is 1000 bytes
-#
-# Conversion to utf8
-#
-CREATE TABLE t1 (a CHAR(1) CHARACTER SET utf16le);
-INSERT INTO t1 VALUES (0x00D800DC),(0x00D8FFDC),(0x7FDB00DC),(0x7FDBFFDC);
-INSERT INTO t1 VALUES (0xC000), (0xFF00),(0x00E0), (0xFFFF);
-SELECT HEX(a), HEX(@a:=CONVERT(a USING utf8mb4)), HEX(CONVERT(@a USING utf16le)) FROM t1;
-HEX(a) HEX(@a:=CONVERT(a USING utf8mb4)) HEX(CONVERT(@a USING utf16le))
-00D800DC F0908080 00D800DC
-00D8FFDC F09083BF 00D8FFDC
-7FDB00DC F3AFB080 7FDB00DC
-7FDBFFDC F3AFB3BF 7FDBFFDC
-C000 C380 C000
-FF00 C3BF FF00
-00E0 EE8080 00E0
-FFFF EFBFBF FFFF
-DROP TABLE t1;
-#
-# Test basic regex functionality
-#
-SET NAMES utf8, collation_connection=utf16le_general_ci;
-drop table if exists t1;
-create table t1 as
-select repeat(' ', 64) as s1, repeat(' ',64) as s2
-union
-select null, null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(64) CHARACTER SET utf16le DEFAULT NULL,
- `s2` varchar(64) CHARACTER SET utf16le DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-delete from t1;
-insert into t1 values('aaa','aaa');
-insert into t1 values('aaa|qqq','qqq');
-insert into t1 values('gheis','^[^a-dXYZ]+$');
-insert into t1 values('aab','^aa?b');
-insert into t1 values('Baaan','^Ba*n');
-insert into t1 values('aaa','qqq|aaa');
-insert into t1 values('qqq','qqq|aaa');
-insert into t1 values('bbb','qqq|aaa');
-insert into t1 values('bbb','qqq');
-insert into t1 values('aaa','aba');
-insert into t1 values(null,'abc');
-insert into t1 values('def',null);
-insert into t1 values(null,null);
-insert into t1 values('ghi','ghi[');
-select HIGH_PRIORITY s1 regexp s2 from t1;
-s1 regexp s2
-0
-0
-0
-1
-1
-1
-1
-1
-1
-1
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-#
-# Test how CHARACTER SET works with date/time
-#
-#
-# Bug#32390 Character sets: casting utf32 to/from date doesn't work
-#
-CREATE TABLE t1 AS SELECT repeat('a',20) AS s1 LIMIT 0;
-SET time_zone=_latin1'+03:00';
-SET timestamp=1216359724;
-INSERT INTO t1 VALUES (current_date);
-INSERT INTO t1 VALUES (current_time);
-INSERT INTO t1 VALUES (current_timestamp);
-SELECT s1, hex(s1) FROM t1;
-s1 hex(s1)
-2008-07-18 32003000300038002D00300037002D0031003800
-08:42:04 300038003A00340032003A0030003400
-2008-07-18 08:42:04 32003000300038002D00300037002D00310038002000300038003A00340032003A0030003400
-DROP TABLE t1;
-SET timestamp=0;
-SET time_zone=default;
-#
-# MDEV-5298 Illegal mix of collations on timestamp
-#
-SELECT CHARSET('2013-11-15 00:41:28' - INTERVAL 7 DAY);
-CHARSET('2013-11-15 00:41:28' - INTERVAL 7 DAY)
-utf16le
-SELECT COERCIBILITY('2013-11-15 00:41:28' - INTERVAL 7 DAY);
-COERCIBILITY('2013-11-15 00:41:28' - INTERVAL 7 DAY)
-4
-SELECT CHARSET(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY);
-CHARSET(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY)
-binary
-SELECT COERCIBILITY(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY);
-COERCIBILITY(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY)
-5
-SELECT CHARSET(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY));
-CHARSET(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY))
-utf16le
-SELECT COERCIBILITY(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY))
-4
-SELECT CHARSET(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY));
-CHARSET(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY))
-utf16le
-SELECT COERCIBILITY(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY))
-4
-SELECT CHARSET(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-CHARSET(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-utf16le
-SELECT COERCIBILITY(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-4
-SELECT HEX(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-HEX(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-32003000300031002D00300031002D00300031002000300030003A00300030003A0030003000
-SELECT CHARSET(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-CHARSET(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-utf16le
-SELECT COERCIBILITY(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-4
-SELECT HEX(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-HEX(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-32003000300031002D00300031002D00300031002000300030003A00300030003A0030003000
-CREATE TABLE t1 AS SELECT REPEAT('a', 64) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(64) CHARACTER SET utf16le DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('');
-SELECT CHARSET(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-CHARSET(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-utf16le
-SELECT COERCIBILITY(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-COERCIBILITY(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-2
-SELECT HEX(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-HEX(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-32003000300031002D00300031002D00300031002000300030003A00300030003A0030003000
-SELECT CHARSET(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-CHARSET(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-utf16le
-SELECT COERCIBILITY(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-COERCIBILITY(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-2
-SELECT HEX(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-HEX(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-32003000300031002D00300031002D00300031002000300030003A00300030003A0030003000
-DROP TABLE t1;
-CREATE TABLE t1 (t TIMESTAMP NOT NULL);
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00');
-SELECT * FROM t1 WHERE t < '2013-11-15 00:41:28' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = '2001-01-08 00:00:00' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t < CONCAT('2013-11-15 00:41:28',LEFT(RAND(),0)) - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = CONCAT('2001-01-08 00:00:00',LEFT(RAND(),0)) - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t < TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-DROP TABLE t1;
-#
-# Bug#33073 Character sets: ordering fails with utf32
-#
-SET NAMES utf8, collation_connection=utf16le_general_ci;
-CREATE TABLE t1 AS SELECT REPEAT('a',2) as s1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(2) CHARACTER SET utf16le DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('ab'),('AE'),('ab'),('AE');
-SELECT * FROM t1 ORDER BY s1;
-s1
-ab
-ab
-AE
-AE
-SET max_sort_length=4;
-SELECT * FROM t1 ORDER BY s1;
-s1
-ab
-ab
-AE
-AE
-DROP TABLE t1;
-SET max_sort_length=DEFAULT;
-#
-# Bug#52520 Difference in tinytext utf column metadata
-#
-CREATE TABLE t1 (
-s1 TINYTEXT CHARACTER SET utf16le,
-s2 TEXT CHARACTER SET utf16le,
-s3 MEDIUMTEXT CHARACTER SET utf16le,
-s4 LONGTEXT CHARACTER SET utf16le
-);
-SET NAMES utf8, @@character_set_results=NULL;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 255 0 Y 16 0 56
-def test t1 t1 s2 s2 252 65535 0 Y 16 0 56
-def test t1 t1 s3 s3 252 16777215 0 Y 16 0 56
-def test t1 t1 s4 s4 252 4294967295 0 Y 16 0 56
-def HEX(s1) 253 6120 0 Y 0 0 33
-s1 s2 s3 s4 HEX(s1)
-SET NAMES latin1;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 127 0 Y 16 0 8
-def test t1 t1 s2 s2 252 32767 0 Y 16 0 8
-def test t1 t1 s3 s3 252 8388607 0 Y 16 0 8
-def test t1 t1 s4 s4 252 2147483647 0 Y 16 0 8
-def HEX(s1) 253 2040 0 Y 0 0 8
-s1 s2 s3 s4 HEX(s1)
-SET NAMES utf8;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 381 0 Y 16 0 33
-def test t1 t1 s2 s2 252 98301 0 Y 16 0 33
-def test t1 t1 s3 s3 252 25165821 0 Y 16 0 33
-def test t1 t1 s4 s4 252 4294967295 0 Y 16 0 33
-def HEX(s1) 253 6120 0 Y 0 0 33
-s1 s2 s3 s4 HEX(s1)
-CREATE TABLE t2 AS SELECT CONCAT(s1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT(s1)` varchar(255) CHARACTER SET utf16le DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1, t2;
-#
-# Problem found by Roy during review
-# MY_CS_BINSORT was not set for utf16le_bin,
-# so filesort did not work well
-#
-SET NAMES utf8, @@collation_connection=utf16le_bin;
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) as c LIMIT 0;
-ALTER TABLE t1 ADD PRIMARY KEY(c);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` varchar(10) CHARACTER SET utf16le COLLATE utf16le_bin NOT NULL,
- PRIMARY KEY (`c`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('abc'),('zyx'),('acb');
-SELECT UPPER(c) FROM t1 ORDER BY 1 DESC;
-UPPER(c)
-ZYX
-ACB
-ABC
-DROP TABLE t1;
-#
-# WL#3664 WEIGHT_STRING
-#
-SET NAMES utf8, collation_connection=utf16le_general_ci;
-select @@collation_connection;
-@@collation_connection
-utf16le_general_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf16le NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0041
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET utf16le DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-00410041004100410041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-00410041004100410041
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-004100410041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-004100410041
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041004100410041004100200020002000200020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0041004100410041004100200020002000200020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-0041
-select hex(weight_string('A'));
-hex(weight_string('A'))
-0041
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-004100420043
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-00410042
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-004100420043
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-00410042004300200020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-00
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0041
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-004100
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-00410042002000200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-00
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0041
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-004100
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-00410042004300200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-00
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0041
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-004100
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-00410042004300200020002000200020002000200020002000
-select @@collation_connection;
-@@collation_connection
-utf16le_general_ci
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-20AC20AC20AC00200020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-20AC20AC00
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-20AC20AC002000200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-SELECT HEX(WEIGHT_STRING(_utf16le 0x00D800DC));
-HEX(WEIGHT_STRING(_utf16le 0x00D800DC))
-FFFD
-SELECT HEX(WEIGHT_STRING(_utf16le 0x00D801DC));
-HEX(WEIGHT_STRING(_utf16le 0x00D801DC))
-FFFD
-select @@collation_connection;
-@@collation_connection
-utf16le_general_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-0041
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-0041
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-004100420043
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-00410042
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-004100420043
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-00410042004300200020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-20002000430042004100
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-FFBEFFBDFFBCFFDFFFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFFFDFFFBCFFBDFFBEFF
-SET NAMES utf8, collation_connection=utf16le_bin;
-select @@collation_connection;
-@@collation_connection
-utf16le_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf16le COLLATE utf16le_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-000061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET utf16le COLLATE utf16le_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(15) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-000061000061000061000061000061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061000061000061000061000061
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-000061000061000061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061000061000061
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-000061000061000061000061000061000020000020000020000020000020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061000061000061000061000061000020000020000020000020000020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-000061
-select hex(weight_string('A'));
-hex(weight_string('A'))
-000041
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-000061000062000063
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-000061000062
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-000061000062000063
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-000061000062000063000020000020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-00
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0000
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-000061
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-00006100
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0000610000
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-00006100006200002000002000002000002000002000002000
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-00
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0000
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-000061
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-00006100
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0000610000
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-00006100006200006300002000002000002000002000002000
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-00
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0000
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-000061
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-00006100
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0000610000
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-00006100006200006300002000002000002000002000002000
-select @@collation_connection;
-@@collation_connection
-utf16le_bin
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-0020AC0020AC0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-0020AC0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-0020AC0020AC0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-0020AC0020AC0020AC000020000020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-00
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-0020
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-0020AC00
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-0020AC0020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-0020AC0020AC00002000002000002000002000002000002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-00
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-0020
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-0020AC00
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-0020AC0020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-0020AC0020AC0020AC00002000002000002000002000002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-00
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-0020
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-0020AC00
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-0020AC0020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-0020AC0020AC0020AC00002000002000002000002000002000
-select @@collation_connection;
-@@collation_connection
-utf16le_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-000061
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-000041
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-000061000062000063
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-000061000062
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-000061000062000063
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-000061000062000063000020000020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-200000200000630000620000610000
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-FFFF9EFFFF9DFFFF9CFFFFDFFFFFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFFFFFDFFFFF9CFFFF9DFFFF9EFFFF
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8417 utf8mb4: compare broken bytes as "greater than any non-broken character"
-#
-CREATE TABLE t1 (
-id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-a VARCHAR(10) CHARACTER SET utf16le, KEY(a,id)
-);
-INSERT INTO t1 (a) VALUES (_utf8mb4 0x61);
-INSERT INTO t1 (a) VALUES (_utf8mb4 0xC280),(_utf8mb4 0xDFBF);
-INSERT INTO t1 (a) VALUES (_utf8mb4 0xE0A080),(_utf8mb4 0xEFBFBF);
-INSERT INTO t1 (a) VALUES (_utf8mb4 0xF0908080),(_utf8mb4 0xF48FBFBF);
-SELECT id,HEX(a) FROM t1 ORDER BY a,id;
-id HEX(a)
-1 6100
-2 8000
-3 FF07
-4 0008
-6 00D800DC
-7 FFDBFFDF
-5 FFFF
-SELECT id,HEX(a) FROM t1 ORDER BY a DESC,id DESC;
-id HEX(a)
-5 FFFF
-7 FFDBFFDF
-6 00D800DC
-4 0008
-3 FF07
-2 8000
-1 6100
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-6
-ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET utf16le COLLATE utf16le_bin;
-SELECT id,HEX(a) FROM t1 ORDER BY a;
-id HEX(a)
-1 6100
-2 8000
-3 FF07
-4 0008
-5 FFFF
-6 00D800DC
-7 FFDBFFDF
-SELECT id,HEX(a) FROM t1 ORDER BY a DESC,id DESC;
-id HEX(a)
-7 FFDBFFDF
-6 00D800DC
-5 FFFF
-4 0008
-3 FF07
-2 8000
-1 6100
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-7
-DROP TABLE t1;
-#
-# MDEV-9178 Wrong result for CAST(CONVERT('1IJ3' USING ucs2) AS SIGNED)
-#
-SET NAMES utf8;
-SELECT CAST(CONVERT('1IJ3' USING utf16le) AS SIGNED);
-CAST(CONVERT('1IJ3' USING utf16le) AS SIGNED)
-1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1IJ3'
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=utf16le;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf16le_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf16le_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf16le COLLATE=utf16le_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-20006100 a
-200061002000 a
-6100200020002000 a
-610062006300 abc
-61006200630020002000 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-20006100 a
-200061002000 a
-6100200020002000 a
-610062006300 abc
-61006200630020002000 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-61006200630020002000 abc
-610062006300 abc
-6100200020002000 a
-200061002000 a
-20006100 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf16le_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-20006100 a
-200061002000 a
-61002000 a
-6100200020002000 a
-610062006300 abc
-6100620063002000 abc
-61006200630020002000 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16le_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-20006100 a
-200061002000 a
-6100 a
-610020002000 a
-6100200020002000 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-6100200020002000 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf16le_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-61006100 1
-6100610020002000 1
-61006200 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041000000000000000000000000000000000000
-0041002000200000000000000000000000000000
-0020004100000000000000000000000000000000
-0020004100200000000000000000000000000000
-0041002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf16le_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf16le_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf16le_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf16le_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf16le_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf16le_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf16le_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf16le_general_nopad_ci', 'abc '))
-6100620063002000
-SELECT HEX(GREATEST('abc ' COLLATE 'utf16le_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf16le_general_nopad_ci', 'abc '))
-61006200630020002000
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16le_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf16le_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf16le_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf16le_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf16le COLLATE=utf16le_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-20006100 a
-200061002000 a
-6100200020002000 a
-610062006300 abc
-61006200630020002000 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-20006100 a
-200061002000 a
-6100200020002000 a
-610062006300 abc
-61006200630020002000 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-61006200630020002000 abc
-610062006300 abc
-6100200020002000 a
-200061002000 a
-20006100 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf16le_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-20006100 a
-200061002000 a
-61002000 a
-6100200020002000 a
-610062006300 abc
-6100620063002000 abc
-61006200630020002000 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16le_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-20006100 a
-200061002000 a
-6100 a
-610020002000 a
-6100200020002000 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-6100200020002000 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf16le_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-61006100 1
-6100610020002000 1
-61006200 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041000000000000000000000000000000000000
-0041002000200000000000000000000000000000
-0020004100000000000000000000000000000000
-0020004100200000000000000000000000000000
-0041002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf16le_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf16le_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf16le_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf16le_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf16le_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf16le_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf16le_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf16le_general_nopad_ci', 'abc '))
-6100620063002000
-SELECT HEX(GREATEST('abc ' COLLATE 'utf16le_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf16le_general_nopad_ci', 'abc '))
-61006200630020002000
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16le_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf16le_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf16le_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf16le_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf16le COLLATE=utf16le_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-20006100 a
-200061002000 a
-6100200020002000 a
-610062006300 abc
-61006200630020002000 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-20006100 a
-200061002000 a
-6100200020002000 a
-610062006300 abc
-61006200630020002000 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-61006200630020002000 abc
-610062006300 abc
-6100200020002000 a
-200061002000 a
-20006100 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf16le_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-20006100 a
-200061002000 a
-61002000 a
-6100200020002000 a
-610062006300 abc
-6100620063002000 abc
-61006200630020002000 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16le_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-20006100 a
-200061002000 a
-6100 a
-610020002000 a
-6100200020002000 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-6100200020002000 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf16le_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-61006100 1
-6100610020002000 1
-61006200 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-000061000000000000000000000000000000000000000000000000000000
-000061000020000020000000000000000000000000000000000000000000
-000020000061000000000000000000000000000000000000000000000000
-000020000061000020000000000000000000000000000000000000000000
-000061000020000020000020000000000000000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf16le_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf16le_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf16le_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf16le_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf16le_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf16le_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf16le_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf16le_nopad_bin', 'abc '))
-6100620063002000
-SELECT HEX(GREATEST('abc ' COLLATE 'utf16le_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf16le_nopad_bin', 'abc '))
-61006200630020002000
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16le_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf16le_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf16le_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf16le_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf16le COLLATE=utf16le_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-20006100 a
-200061002000 a
-6100200020002000 a
-610062006300 abc
-61006200630020002000 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-20006100 a
-200061002000 a
-6100200020002000 a
-610062006300 abc
-61006200630020002000 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-61006200630020002000 abc
-610062006300 abc
-6100200020002000 a
-200061002000 a
-20006100 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf16le_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-20006100 a
-200061002000 a
-61002000 a
-6100200020002000 a
-610062006300 abc
-6100620063002000 abc
-61006200630020002000 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16le_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-20006100 a
-200061002000 a
-6100 a
-610020002000 a
-6100200020002000 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-6100200020002000 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf16le_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-61006100 1
-6100610020002000 1
-61006200 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-000061000000000000000000000000000000000000000000000000000000
-000061000020000020000000000000000000000000000000000000000000
-000020000061000000000000000000000000000000000000000000000000
-000020000061000020000000000000000000000000000000000000000000
-000061000020000020000020000000000000000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf16le_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf16le_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf16le_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf16le_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf16le_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf16le_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf16le_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf16le_nopad_bin', 'abc '))
-6100620063002000
-SELECT HEX(GREATEST('abc ' COLLATE 'utf16le_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf16le_nopad_bin', 'abc '))
-61006200630020002000
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf16le_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf16le_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf16le_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_utf32.result b/mysql-test/r/ctype_utf32.result
deleted file mode 100644
index 59ce4c2f445..00000000000
--- a/mysql-test/r/ctype_utf32.result
+++ /dev/null
@@ -1,2837 +0,0 @@
-SET TIME_ZONE = '+03:00';
-DROP TABLE IF EXISTS t1;
-#
-# Start of 5.5 tests
-#
-SET NAMES latin1;
-SET character_set_connection=utf32;
-select hex('a'), hex('a ');
-hex('a') hex('a ')
-00000061 0000006100000020
-select 'a' = 'a', 'a' = 'a ', 'a ' = 'a';
-'a' = 'a' 'a' = 'a ' 'a ' = 'a'
-1 1 1
-select 'a\0' = 'a', 'a\0' < 'a', 'a\0' > 'a';
-'a\0' = 'a' 'a\0' < 'a' 'a\0' > 'a'
-0 1 0
-select 'a' = 'a\0', 'a' < 'a\0', 'a' > 'a\0';
-'a' = 'a\0' 'a' < 'a\0' 'a' > 'a\0'
-0 0 1
-select 'a\0' = 'a ', 'a\0' < 'a ', 'a\0' > 'a ';
-'a\0' = 'a ' 'a\0' < 'a ' 'a\0' > 'a '
-0 1 0
-select 'a ' = 'a\0', 'a ' < 'a\0', 'a ' > 'a\0';
-'a ' = 'a\0' 'a ' < 'a\0' 'a ' > 'a\0'
-0 0 1
-select 'a a' > 'a', 'a \0' < 'a';
-'a a' > 'a' 'a \0' < 'a'
-1 1
-select binary 'a a' > 'a', binary 'a \0' > 'a', binary 'a\0' > 'a';
-binary 'a a' > 'a' binary 'a \0' > 'a' binary 'a\0' > 'a'
-1 1 1
-select hex(_utf32 0x44);
-hex(_utf32 0x44)
-00000044
-select hex(_utf32 0x3344);
-hex(_utf32 0x3344)
-00003344
-select hex(_utf32 0x103344);
-hex(_utf32 0x103344)
-00103344
-select hex(_utf32 X'44');
-hex(_utf32 X'44')
-00000044
-select hex(_utf32 X'3344');
-hex(_utf32 X'3344')
-00003344
-select hex(_utf32 X'103344');
-hex(_utf32 X'103344')
-00103344
-CREATE TABLE t1 (word VARCHAR(64), word2 CHAR(64)) CHARACTER SET utf32;
-INSERT INTO t1 VALUES (_koi8r 0xF2, _koi8r 0xF2), (X'2004',X'2004');
-SELECT hex(word) FROM t1 ORDER BY word;
-hex(word)
-00000420
-00002004
-SELECT hex(word2) FROM t1 ORDER BY word2;
-hex(word2)
-00000420
-00002004
-DELETE FROM t1;
-INSERT INTO t1 VALUES
-(X'000004200000002000000020',X'000004200000002000000020'),
-(X'000020040000002000000020',X'000020040000002000000020');
-SELECT hex(word) FROM t1 ORDER BY word;
-hex(word)
-000004200000002000000020
-000020040000002000000020
-SELECT hex(word2) FROM t1 ORDER BY word2;
-hex(word2)
-00000420
-00002004
-DROP TABLE t1;
-SELECT hex(LPAD(_utf32 X'0420',10,_utf32 X'0421'));
-hex(LPAD(_utf32 X'0420',10,_utf32 X'0421'))
-00000421000004210000042100000421000004210000042100000421000004210000042100000420
-SELECT hex(LPAD(_utf32 X'0420',10,_utf32 X'0000042100000422'));
-hex(LPAD(_utf32 X'0420',10,_utf32 X'0000042100000422'))
-00000421000004220000042100000422000004210000042200000421000004220000042100000420
-SELECT hex(LPAD(_utf32 X'0420',10,_utf32 X'000004210000042200000423'));
-hex(LPAD(_utf32 X'0420',10,_utf32 X'000004210000042200000423'))
-00000421000004220000042300000421000004220000042300000421000004220000042300000420
-SELECT hex(LPAD(_utf32 X'000004200000042100000422000004230000042400000425000004260000042700000428000004290000042A0000042B',10,_utf32 X'000004210000042200000423'));
-hex(LPAD(_utf32 X'000004200000042100000422000004230000042400000425000004260000042700000428000004290000042A0000042B',10,_utf32 X'000004210000042200000423'))
-00000420000004210000042200000423000004240000042500000426000004270000042800000429
-SELECT hex(RPAD(_utf32 X'0420',10,_utf32 X'0421'));
-hex(RPAD(_utf32 X'0420',10,_utf32 X'0421'))
-00000420000004210000042100000421000004210000042100000421000004210000042100000421
-SELECT hex(RPAD(_utf32 X'0420',10,_utf32 X'0000042100000422'));
-hex(RPAD(_utf32 X'0420',10,_utf32 X'0000042100000422'))
-00000420000004210000042200000421000004220000042100000422000004210000042200000421
-SELECT hex(RPAD(_utf32 X'0420',10,_utf32 X'000004210000042200000423'));
-hex(RPAD(_utf32 X'0420',10,_utf32 X'000004210000042200000423'))
-00000420000004210000042200000423000004210000042200000423000004210000042200000423
-SELECT hex(RPAD(_utf32 X'000004200000042100000422000004230000042400000425000004260000042700000428000004290000042A0000042B',10,_utf32 X'000004210000042200000423'));
-hex(RPAD(_utf32 X'000004200000042100000422000004230000042400000425000004260000042700000428000004290000042A0000042B',10,_utf32 X'000004210000042200000423'))
-00000420000004210000042200000423000004240000042500000426000004270000042800000429
-CREATE TABLE t1 SELECT
-LPAD(_utf32 X'0420',10,_utf32 X'0421') l,
-RPAD(_utf32 X'0420',10,_utf32 X'0421') r;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `l` varchar(10) CHARACTER SET utf32 DEFAULT NULL,
- `r` varchar(10) CHARACTER SET utf32 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(l), hex(r) from t1;
-hex(l) hex(r)
-00000421000004210000042100000421000004210000042100000421000004210000042100000420 00000420000004210000042100000421000004210000042100000421000004210000042100000421
-DROP TABLE t1;
-create table t1 (f1 char(30));
-insert into t1 values ("103000"), ("22720000"), ("3401200"), ("78000");
-select lpad(f1, 12, "-o-/") from t1;
-lpad(f1, 12, "-o-/")
--o-/-o103000
--o-/22720000
--o-/-3401200
--o-/-o-78000
-drop table t1;
-SET NAMES latin1;
-SET character_set_connection=utf32;
-select @@collation_connection;
-@@collation_connection
-utf32_general_ci
-create table t1 as select repeat(' ',10) as a union select null;
-alter table t1 add key(a);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf32 DEFAULT NULL,
- KEY `a` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
-explain select * from t1 where a like 'abc%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 43 NULL 1 Using where; Using index
-explain select * from t1 where a like concat('abc','%');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 43 NULL 1 Using where; Using index
-select * from t1 where a like "abc%";
-a
-abc
-abcd
-select * from t1 where a like concat("abc","%");
-a
-abc
-abcd
-select * from t1 where a like "ABC%";
-a
-abc
-abcd
-select * from t1 where a like "test%";
-a
-test
-select * from t1 where a like "te_t";
-a
-test
-select * from t1 where a like "%a%";
-a
-a
-abc
-abcd
-select * from t1 where a like "%abcd%";
-a
-abcd
-select * from t1 where a like "%abc\d%";
-a
-abcd
-drop table t1;
-select 'AA' like 'AA';
-'AA' like 'AA'
-1
-select 'AA' like 'A%A';
-'AA' like 'A%A'
-1
-select 'AA' like 'A%%A';
-'AA' like 'A%%A'
-1
-select 'AA' like 'AA%';
-'AA' like 'AA%'
-1
-select 'AA' like '%AA%';
-'AA' like '%AA%'
-1
-select 'AA' like '%A';
-'AA' like '%A'
-1
-select 'AA' like '%AA';
-'AA' like '%AA'
-1
-select 'AA' like 'A%A%';
-'AA' like 'A%A%'
-1
-select 'AA' like '_%_%';
-'AA' like '_%_%'
-1
-select 'AA' like '%A%A';
-'AA' like '%A%A'
-1
-select 'AAA'like 'A%A%A';
-'AAA'like 'A%A%A'
-1
-select 'AZ' like 'AZ';
-'AZ' like 'AZ'
-1
-select 'AZ' like 'A%Z';
-'AZ' like 'A%Z'
-1
-select 'AZ' like 'A%%Z';
-'AZ' like 'A%%Z'
-1
-select 'AZ' like 'AZ%';
-'AZ' like 'AZ%'
-1
-select 'AZ' like '%AZ%';
-'AZ' like '%AZ%'
-1
-select 'AZ' like '%Z';
-'AZ' like '%Z'
-1
-select 'AZ' like '%AZ';
-'AZ' like '%AZ'
-1
-select 'AZ' like 'A%Z%';
-'AZ' like 'A%Z%'
-1
-select 'AZ' like '_%_%';
-'AZ' like '_%_%'
-1
-select 'AZ' like '%A%Z';
-'AZ' like '%A%Z'
-1
-select 'AZ' like 'A_';
-'AZ' like 'A_'
-1
-select 'AZ' like '_Z';
-'AZ' like '_Z'
-1
-select 'AMZ'like 'A%M%Z';
-'AMZ'like 'A%M%Z'
-1
-SET NAMES utf8;
-SET character_set_connection=utf32;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf32);
-INSERT INTO t1 VALUES ('фыва'),('Фыва'),('фЫва'),('фыВа'),('фывÐ'),('ФЫВÐ');
-INSERT INTO t1 VALUES ('фывапролдж'),('Фывапролдж'),('фЫвапролдж'),('фыВапролдж');
-INSERT INTO t1 VALUES ('фывÐпролдж'),('фываПролдж'),('фывапРолдж'),('фывапрОлдж');
-INSERT INTO t1 VALUES ('фывапроЛдж'),('фывапролДж'),('фывапролдЖ'),('ФЫВÐПРОЛДЖ');
-SELECT * FROM t1 WHERE a LIKE '%фЫва%' ORDER BY BINARY a;
-a
-ФЫВÐ
-ФЫВÐПРОЛДЖ
-Фыва
-Фывапролдж
-фЫва
-фЫвапролдж
-фыВа
-фыВапролдж
-фывÐ
-фывÐпролдж
-фыва
-фываПролдж
-фывапРолдж
-фывапрОлдж
-фывапроЛдж
-фывапролДж
-фывапролдЖ
-фывапролдж
-SELECT * FROM t1 WHERE a LIKE '%фЫв%' ORDER BY BINARY a;
-a
-ФЫВÐ
-ФЫВÐПРОЛДЖ
-Фыва
-Фывапролдж
-фЫва
-фЫвапролдж
-фыВа
-фыВапролдж
-фывÐ
-фывÐпролдж
-фыва
-фываПролдж
-фывапРолдж
-фывапрОлдж
-фывапроЛдж
-фывапролДж
-фывапролдЖ
-фывапролдж
-SELECT * FROM t1 WHERE a LIKE 'фЫва%' ORDER BY BINARY a;
-a
-ФЫВÐ
-ФЫВÐПРОЛДЖ
-Фыва
-Фывапролдж
-фЫва
-фЫвапролдж
-фыВа
-фыВапролдж
-фывÐ
-фывÐпролдж
-фыва
-фываПролдж
-фывапРолдж
-фывапрОлдж
-фывапроЛдж
-фывапролДж
-фывапролдЖ
-фывапролдж
-SELECT * FROM t1 WHERE a LIKE 'фЫва%' COLLATE utf32_bin ORDER BY BINARY a;
-a
-фЫва
-фЫвапролдж
-DROP TABLE t1;
-CREATE TABLE t1 (word varchar(64) NOT NULL, PRIMARY KEY (word))
-ENGINE=MyISAM CHARACTER SET utf32;
-INSERT INTO t1 (word) VALUES ("cat");
-SELECT * FROM t1 WHERE word LIKE "c%";
-word
-cat
-SELECT * FROM t1 WHERE word LIKE "ca_";
-word
-cat
-SELECT * FROM t1 WHERE word LIKE "cat";
-word
-cat
-SELECT * FROM t1 WHERE word LIKE _utf32 x'0000006300000025';
-word
-cat
-SELECT * FROM t1 WHERE word LIKE _utf32 x'00000063000000610000005F';
-word
-cat
-DROP TABLE t1;
-select insert(_utf32 0x000000610000006200000063,10,2,_utf32 0x000000640000006500000066);
-insert(_utf32 0x000000610000006200000063,10,2,_utf32 0x000000640000006500000066)
-abc
-select insert(_utf32 0x000000610000006200000063,1,2,_utf32 0x000000640000006500000066);
-insert(_utf32 0x000000610000006200000063,1,2,_utf32 0x000000640000006500000066)
-defc
-SET NAMES latin1;
-CREATE TABLE t1 (
-word VARCHAR(64),
-bar INT(11) default 0,
-PRIMARY KEY (word))
-ENGINE=MyISAM
-CHARSET utf32
-COLLATE utf32_general_ci ;
-INSERT INTO t1 (word) VALUES ("aar");
-INSERT INTO t1 (word) VALUES ("a");
-INSERT INTO t1 (word) VALUES ("aardvar");
-INSERT INTO t1 (word) VALUES ("aardvark");
-INSERT INTO t1 (word) VALUES ("aardvara");
-INSERT INTO t1 (word) VALUES ("aardvarz");
-EXPLAIN SELECT * FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort
-SELECT * FROM t1 ORDER BY word;
-word bar
-a 0
-aar 0
-aardvar 0
-aardvara 0
-aardvark 0
-aardvarz 0
-EXPLAIN SELECT word FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 258 NULL 6 Using index
-SELECT word FROM t1 ORDER by word;
-word
-a
-aar
-aardvar
-aardvara
-aardvark
-aardvarz
-DROP TABLE t1;
-CREATE TABLE t1 (
-word VARCHAR(64) ,
-PRIMARY KEY (word))
-ENGINE=MyISAM
-CHARSET utf32
-COLLATE utf32_general_ci;
-INSERT INTO t1 (word) VALUES ("aar");
-INSERT INTO t1 (word) VALUES ("a");
-INSERT INTO t1 (word) VALUES ("aardvar");
-INSERT INTO t1 (word) VALUES ("aardvark");
-INSERT INTO t1 (word) VALUES ("aardvara");
-INSERT INTO t1 (word) VALUES ("aardvarz");
-EXPLAIN SELECT * FROM t1 ORDER BY WORD;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 258 NULL 6 Using index
-SELECT * FROM t1 ORDER BY word;
-word
-a
-aar
-aardvar
-aardvara
-aardvark
-aardvarz
-DROP TABLE t1;
-CREATE TABLE t1 (
-word TEXT,
-bar INT(11) AUTO_INCREMENT,
-PRIMARY KEY (bar))
-ENGINE=MyISAM
-CHARSET utf32
-COLLATE utf32_general_ci ;
-INSERT INTO t1 (word) VALUES ("aar");
-INSERT INTO t1 (word) VALUES ("a" );
-INSERT INTO t1 (word) VALUES ("aardvar");
-INSERT INTO t1 (word) VALUES ("aardvark");
-INSERT INTO t1 (word) VALUES ("aardvara");
-INSERT INTO t1 (word) VALUES ("aardvarz");
-EXPLAIN SELECT * FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort
-SELECT * FROM t1 ORDER BY word;
-word bar
-a 2
-aar 1
-aardvar 3
-aardvara 5
-aardvark 4
-aardvarz 6
-EXPLAIN SELECT word FROM t1 ORDER BY word;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort
-SELECT word FROM t1 ORDER BY word;
-word
-a
-aar
-aardvar
-aardvara
-aardvark
-aardvarz
-DROP TABLE t1;
-SELECT hex(cast(0xAA as char character set utf32));
-hex(cast(0xAA as char character set utf32))
-000000AA
-SELECT hex(convert(0xAA using utf32));
-hex(convert(0xAA using utf32))
-000000AA
-CREATE TABLE t1 (a char(10) character set utf32);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-00000001
-00000011
-00000111
-00001111
-00011111
-DROP TABLE t1;
-CREATE TABLE t1 (a varchar(10) character set utf32);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-00000001
-00000011
-00000111
-00001111
-00011111
-DROP TABLE t1;
-CREATE TABLE t1 (a text character set utf32);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-00000001
-00000011
-00000111
-00001111
-00011111
-DROP TABLE t1;
-CREATE TABLE t1 (a mediumtext character set utf32);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-00000001
-00000011
-00000111
-00001111
-00011111
-DROP TABLE t1;
-CREATE TABLE t1 (a longtext character set utf32);
-INSERT INTO t1 VALUES (0x1),(0x11),(0x111),(0x1111),(0x11111);
-SELECT HEX(a) FROM t1;
-HEX(a)
-00000001
-00000011
-00000111
-00001111
-00011111
-DROP TABLE t1;
-create table t1(a char(1)) default charset utf32;
-insert into t1 values ('a'),('b'),('c');
-alter table t1 modify a char(5);
-select a, hex(a) from t1;
-a hex(a)
-a 00000061
-b 00000062
-c 00000063
-drop table t1;
-set @ivar= 1234;
-set @str1 = 'select ?';
-set @str2 = convert(@str1 using utf32);
-prepare stmt1 from @str2;
-execute stmt1 using @ivar;
-?
-1234
-set names utf8;
-create table t1 (a enum('x','y','z') character set utf32);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('x','y','z') CHARACTER SET utf32 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('x');
-insert into t1 values ('y');
-insert into t1 values ('z');
-select a, hex(a) from t1 order by a;
-a hex(a)
-x 00000078
-y 00000079
-z 0000007A
-alter table t1 change a a enum('x','y','z','d','e','ä','ö','ü') character set utf32;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('x','y','z','d','e','ä','ö','ü') CHARACTER SET utf32 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('D');
-insert into t1 values ('E ');
-insert into t1 values ('ä');
-insert into t1 values ('ö');
-insert into t1 values ('ü');
-select a, hex(a) from t1 order by a;
-a hex(a)
-x 00000078
-y 00000079
-z 0000007A
-d 00000064
-e 00000065
-ä 000000E4
-ö 000000F6
-ü 000000FC
-drop table t1;
-create table t1 (a set ('x','y','z','ä','ö','ü') character set utf32);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` set('x','y','z','ä','ö','ü') CHARACTER SET utf32 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('x');
-insert into t1 values ('y');
-insert into t1 values ('z');
-insert into t1 values ('x,y');
-insert into t1 values ('x,y,z,ä,ö,ü');
-select a, hex(a) from t1 order by a;
-a hex(a)
-x 00000078
-y 00000079
-x,y 000000780000002C00000079
-z 0000007A
-x,y,z,ä,ö,ü 000000780000002C000000790000002C0000007A0000002C000000E40000002C000000F60000002C000000FC
-drop table t1;
-create table t1(a enum('a','b','c')) default character set utf32;
-insert into t1 values('a'),('b'),('c');
-alter table t1 add b char(1);
-show warnings;
-Level Code Message
-select * from t1 order by a;
-a b
-a NULL
-b NULL
-c NULL
-drop table t1;
-SET NAMES latin1;
-SET collation_connection='utf32_general_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf32_general_ci 0000006100000009
-utf32_general_ci 00000061
-utf32_general_ci 0000006100000020
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf32_general_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf32_general_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf32_general_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-SET NAMES latin1;
-SET collation_connection='utf32_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf32_bin 0000006100000009
-utf32_bin 00000061
-utf32_bin 0000006100000020
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf32_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf32_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-#
-# Bug#55980 Character sets: supplementary character _bin ordering is wrong
-#
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf32 COLLATE utf32_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_utf8mb4 0xEFBE9D),(_utf8mb4 0xF0908E84);
-INSERT INTO t1 VALUES (_utf8mb4 0xCE85),(_utf8mb4 0xF4808080);
-SELECT HEX(a), HEX(CONVERT(a USING utf8mb4)) FROM t1 ORDER BY a;
-HEX(a) HEX(CONVERT(a USING utf8mb4))
-00000385 CE85
-0000FF9D EFBE9D
-00010384 F0908E84
-00100000 F4808080
-ALTER TABLE t1 ADD KEY(a);
-SELECT HEX(a), HEX(CONVERT(a USING utf8mb4)) FROM t1 ORDER BY a;
-HEX(a) HEX(CONVERT(a USING utf8mb4))
-00000385 CE85
-0000FF9D EFBE9D
-00010384 F0908E84
-00100000 F4808080
-DROP TABLE IF EXISTS t1;
-#
-# BUG#16691598 - ORDER BY LOWER(COLUMN) PRODUCES
-# OUT-OF-ORDER RESULTS
-#
-CREATE TABLE t1 SELECT ('a a') as n;
-INSERT INTO t1 VALUES('a b');
-SELECT * FROM t1 ORDER BY LOWER(n) ASC;
-n
-a a
-a b
-SELECT * FROM t1 ORDER BY LOWER(n) DESC;
-n
-a b
-a a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf32_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-select hex(substr(_utf32 0x000000e4000000e500000068,1));
-hex(substr(_utf32 0x000000e4000000e500000068,1))
-000000E4000000E500000068
-select hex(substr(_utf32 0x000000e4000000e500000068,2));
-hex(substr(_utf32 0x000000e4000000e500000068,2))
-000000E500000068
-select hex(substr(_utf32 0x000000e4000000e500000068,3));
-hex(substr(_utf32 0x000000e4000000e500000068,3))
-00000068
-select hex(substr(_utf32 0x000000e4000000e500000068,-1));
-hex(substr(_utf32 0x000000e4000000e500000068,-1))
-00000068
-select hex(substr(_utf32 0x000000e4000000e500000068,-2));
-hex(substr(_utf32 0x000000e4000000e500000068,-2))
-000000E500000068
-select hex(substr(_utf32 0x000000e4000000e500000068,-3));
-hex(substr(_utf32 0x000000e4000000e500000068,-3))
-000000E4000000E500000068
-CREATE TABLE t1 (
-a varchar(250) NOT NULL default '',
-KEY a (a)
-) ENGINE=MyISAM DEFAULT CHARSET=utf32 COLLATE utf32_general_ci;
-insert into t1 values (0x803d);
-insert into t1 values (0x005b);
-select hex(a) from t1;
-hex(a)
-0000005B
-0000803D
-drop table t1;
-create table t1 (utext varchar(20) character set utf32);
-insert into t1 values ("lily");
-insert into t1 values ("river");
-prepare stmt from 'select utext from t1 where utext like ?';
-set @param1='%%';
-execute stmt using @param1;
-utext
-lily
-river
-execute stmt using @param1;
-utext
-lily
-river
-select utext from t1 where utext like '%%';
-utext
-lily
-river
-drop table t1;
-deallocate prepare stmt;
-create table t1 (
-a char(10) character set utf32 not null,
-index a (a)
-) engine=myisam;
-insert into t1 values (repeat(0x0000201f, 10));
-insert into t1 values (repeat(0x00002020, 10));
-insert into t1 values (repeat(0x00002021, 10));
-explain select hex(a) from t1 order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 40 NULL 3 Using index
-select hex(a) from t1 order by a;
-hex(a)
-0000201F0000201F0000201F0000201F0000201F0000201F0000201F0000201F0000201F0000201F
-00002020000020200000202000002020000020200000202000002020000020200000202000002020
-00002021000020210000202100002021000020210000202100002021000020210000202100002021
-alter table t1 drop index a;
-select hex(a) from t1 order by a;
-hex(a)
-0000201F0000201F0000201F0000201F0000201F0000201F0000201F0000201F0000201F0000201F
-00002020000020200000202000002020000020200000202000002020000020200000202000002020
-00002021000020210000202100002021000020210000202100002021000020210000202100002021
-drop table t1;
-CREATE TABLE t1 (
-status enum('active','passive') character set utf32 collate utf32_general_ci
-NOT NULL default 'passive'
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `status` enum('active','passive') CHARACTER SET utf32 NOT NULL DEFAULT 'passive'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 ADD a int NOT NULL AFTER status;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `status` enum('active','passive') CHARACTER SET utf32 NOT NULL DEFAULT 'passive',
- `a` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-End of 4.1 tests
-CREATE TABLE t1 (a varchar(64) character set utf32, b decimal(10,3));
-INSERT INTO t1 VALUES ("1.1", 0), ("2.1", 0);
-update t1 set b=a;
-SELECT *, hex(a) FROM t1;
-a b hex(a)
-1.1 1.100 000000310000002E00000031
-2.1 2.100 000000320000002E00000031
-DROP TABLE t1;
-create table t1 (utext varchar(20) character set utf32);
-insert into t1 values ("lily");
-insert into t1 values ("river");
-prepare stmt from 'select utext from t1 where utext like ?';
-set @param1='%%';
-execute stmt using @param1;
-utext
-lily
-river
-execute stmt using @param1;
-utext
-lily
-river
-select utext from t1 where utext like '%%';
-utext
-lily
-river
-drop table t1;
-deallocate prepare stmt;
-set names latin1;
-set character_set_connection=utf32;
-select soundex(''),soundex('he'),soundex('hello all folks'),soundex('#3556 in bugdb');
-soundex('') soundex('he') soundex('hello all folks') soundex('#3556 in bugdb')
- H000 H4142 I51231
-select hex(soundex('')),hex(soundex('he')),hex(soundex('hello all folks')),hex(soundex('#3556 in bugdb'));
-hex(soundex('')) hex(soundex('he')) hex(soundex('hello all folks')) hex(soundex('#3556 in bugdb'))
- 00000048000000300000003000000030 0000004800000034000000310000003400000032 000000490000003500000031000000320000003300000031
-select 'mood' sounds like 'mud';
-'mood' sounds like 'mud'
-1
-select hex(soundex(_utf32 0x000004100000041100000412));
-hex(soundex(_utf32 0x000004100000041100000412))
-00000410000000300000003000000030
-select hex(soundex(_utf32 0x000000BF000000C0));
-hex(soundex(_utf32 0x000000BF000000C0))
-000000C0000000300000003000000030
-set names latin1;
-create table t1(a blob, b text charset utf32);
-select data_type, character_octet_length, character_maximum_length
-from information_schema.columns where table_name='t1';
-data_type character_octet_length character_maximum_length
-blob 65535 65535
-text 65535 16383
-drop table t1;
-set names latin1;
-set collation_connection=utf32_general_ci;
-select position('bb' in 'abba');
-position('bb' in 'abba')
-2
-create table t1 (a varchar(10) character set utf32) engine=heap;
-insert into t1 values ('a'),('A'),('b'),('B');
-select * from t1 where a='a' order by binary a;
-a
-A
-a
-select hex(min(binary a)),count(*) from t1 group by a;
-hex(min(binary a)) count(*)
-00000041 2
-00000042 2
-drop table t1;
-select char_length('abcd'), octet_length('abcd');
-char_length('abcd') octet_length('abcd')
-4 16
-select left('abcd',2);
-left('abcd',2)
-ab
-create table t1 (a varchar(10) character set utf32);
-insert into t1 values (_utf32 0x0010FFFF);
-insert into t1 values (_utf32 0x00110000);
-ERROR HY000: Invalid utf32 character string: '001100'
-insert into t1 values (_utf32 0x00110101);
-ERROR HY000: Invalid utf32 character string: '001101'
-insert into t1 values (_utf32 0x01000101);
-ERROR HY000: Invalid utf32 character string: '010001'
-insert into t1 values (_utf32 0x11000101);
-ERROR HY000: Invalid utf32 character string: '110001'
-select hex(a) from t1;
-hex(a)
-0010FFFF
-drop table t1;
-create table t1 (utf32 varchar(2) character set utf32);
-Wrong character with pad
-insert ignore into t1 values (0x110000);
-Warnings:
-Warning 1366 Incorrect string value: '\x11\x00\x00' for column 'utf32' at row 1
-Wrong chsaracter without pad
-insert ignore into t1 values (0x00110000);
-Warnings:
-Warning 1366 Incorrect string value: '\x00\x11\x00\x00' for column 'utf32' at row 1
-Wrong character with pad followed by another wrong character
-insert ignore into t1 values (0x11000000110000);
-Warnings:
-Warning 1366 Incorrect string value: '\x11\x00\x00\x00\x11\x00...' for column 'utf32' at row 1
-Good character with pad followed by bad character
-insert ignore into t1 values (0x10000000110000);
-Warnings:
-Warning 1366 Incorrect string value: '\x00\x11\x00\x00' for column 'utf32' at row 1
-Good character without pad followed by bad character
-insert ignore into t1 values (0x0010000000110000);
-Warnings:
-Warning 1366 Incorrect string value: '\x00\x11\x00\x00' for column 'utf32' at row 1
-Wrong character with the second byte higher than 0x10
-insert ignore into t1 values (0x00800037);
-Warnings:
-Warning 1366 Incorrect string value: '\x00\x80\x007' for column 'utf32' at row 1
-Wrong character with pad with the second byte higher than 0x10
-insert ignore into t1 values (0x00800037);
-Warnings:
-Warning 1366 Incorrect string value: '\x00\x80\x007' for column 'utf32' at row 1
-drop table t1;
-select _utf32'a' collate utf32_general_ci = 0xfffd;
-_utf32'a' collate utf32_general_ci = 0xfffd
-0
-select hex(concat(_utf32 0x0410 collate utf32_general_ci, 0x61));
-hex(concat(_utf32 0x0410 collate utf32_general_ci, 0x61))
-0000041000000061
-create table t1 (s1 varchar(5) character set utf32);
-insert into t1 values (0xfffd);
-select case when s1 = 0xfffd then 1 else 0 end from t1;
-case when s1 = 0xfffd then 1 else 0 end
-1
-select hex(s1) from t1 where s1 = 0xfffd;
-hex(s1)
-0000FFFD
-drop table t1;
-create table t1 (a char(10)) character set utf32;
-insert into t1 values ('a ');
-select hex(a) from t1;
-hex(a)
-00000061
-drop table t1;
-select upper('abcd'), lower('ABCD');
-upper('abcd') lower('ABCD')
-ABCD abcd
-create table t1 (a varchar(10) character set utf32);
-insert into t1 values (123456);
-select a, hex(a) from t1;
-a hex(a)
-123456 000000310000003200000033000000340000003500000036
-drop table t1;
-select hex(soundex('a'));
-hex(soundex('a'))
-00000041000000300000003000000030
-create table t1 (a enum ('a','b','c')) character set utf32;
-insert into t1 values ('1');
-select * from t1;
-a
-a
-drop table t1;
-set names latin1;
-select hex(conv(convert('123' using utf32), -10, 16));
-hex(conv(convert('123' using utf32), -10, 16))
-3742
-select hex(conv(convert('123' using utf32), 10, 16));
-hex(conv(convert('123' using utf32), 10, 16))
-3742
-set names latin1;
-set character_set_connection=utf32;
-select 1.1 + '1.2';
-1.1 + '1.2'
-2.3
-select 1.1 + '1.2xxx';
-1.1 + '1.2xxx'
-2.3
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1.2xxx'
-select left('aaa','1');
-left('aaa','1')
-a
-#
-# Testing cs->cset->strtoll10()
-#
-SELECT @@character_set_connection;
-@@character_set_connection
-utf32
-SELECT CAST('1' AS UNSIGNED);
-CAST('1' AS UNSIGNED)
-1
-SELECT CAST('12' AS UNSIGNED);
-CAST('12' AS UNSIGNED)
-12
-SELECT CAST('123' AS UNSIGNED);
-CAST('123' AS UNSIGNED)
-123
-SELECT CAST('1234' AS UNSIGNED);
-CAST('1234' AS UNSIGNED)
-1234
-SELECT CAST('12345' AS UNSIGNED);
-CAST('12345' AS UNSIGNED)
-12345
-SELECT CAST('123456' AS UNSIGNED);
-CAST('123456' AS UNSIGNED)
-123456
-SELECT CAST('1234567' AS UNSIGNED);
-CAST('1234567' AS UNSIGNED)
-1234567
-SELECT CAST('12345678' AS UNSIGNED);
-CAST('12345678' AS UNSIGNED)
-12345678
-SELECT CAST('123456789' AS UNSIGNED);
-CAST('123456789' AS UNSIGNED)
-123456789
-SELECT CAST('1234567891' AS UNSIGNED);
-CAST('1234567891' AS UNSIGNED)
-1234567891
-SELECT CAST('12345678912' AS UNSIGNED);
-CAST('12345678912' AS UNSIGNED)
-12345678912
-SELECT CAST('123456789123' AS UNSIGNED);
-CAST('123456789123' AS UNSIGNED)
-123456789123
-SELECT CAST('1234567891234' AS UNSIGNED);
-CAST('1234567891234' AS UNSIGNED)
-1234567891234
-SELECT CAST('12345678912345' AS UNSIGNED);
-CAST('12345678912345' AS UNSIGNED)
-12345678912345
-SELECT CAST('123456789123456' AS UNSIGNED);
-CAST('123456789123456' AS UNSIGNED)
-123456789123456
-SELECT CAST('1234567891234567' AS UNSIGNED);
-CAST('1234567891234567' AS UNSIGNED)
-1234567891234567
-SELECT CAST('12345678912345678' AS UNSIGNED);
-CAST('12345678912345678' AS UNSIGNED)
-12345678912345678
-SELECT CAST('123456789123456789' AS UNSIGNED);
-CAST('123456789123456789' AS UNSIGNED)
-123456789123456789
-SELECT CAST('1234567891234567891' AS UNSIGNED);
-CAST('1234567891234567891' AS UNSIGNED)
-1234567891234567891
-SELECT CAST('12345678912345678912' AS UNSIGNED);
-CAST('12345678912345678912' AS UNSIGNED)
-12345678912345678912
-SELECT CAST('123456789123456789123' AS UNSIGNED);
-CAST('123456789123456789123' AS UNSIGNED)
-18446744073709551615
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123456789123'
-SELECT CAST('1x' AS UNSIGNED);
-CAST('1x' AS UNSIGNED)
-1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1x'
-SELECT CAST('12x' AS UNSIGNED);
-CAST('12x' AS UNSIGNED)
-12
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12x'
-SELECT CAST('123x' AS UNSIGNED);
-CAST('123x' AS UNSIGNED)
-123
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123x'
-SELECT CAST('1234x' AS UNSIGNED);
-CAST('1234x' AS UNSIGNED)
-1234
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234x'
-SELECT CAST('12345x' AS UNSIGNED);
-CAST('12345x' AS UNSIGNED)
-12345
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345x'
-SELECT CAST('123456x' AS UNSIGNED);
-CAST('123456x' AS UNSIGNED)
-123456
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456x'
-SELECT CAST('1234567x' AS UNSIGNED);
-CAST('1234567x' AS UNSIGNED)
-1234567
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567x'
-SELECT CAST('12345678x' AS UNSIGNED);
-CAST('12345678x' AS UNSIGNED)
-12345678
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678x'
-SELECT CAST('123456789x' AS UNSIGNED);
-CAST('123456789x' AS UNSIGNED)
-123456789
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789x'
-SELECT CAST('1234567891x' AS UNSIGNED);
-CAST('1234567891x' AS UNSIGNED)
-1234567891
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567891x'
-SELECT CAST('12345678912x' AS UNSIGNED);
-CAST('12345678912x' AS UNSIGNED)
-12345678912
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678912x'
-SELECT CAST('123456789123x' AS UNSIGNED);
-CAST('123456789123x' AS UNSIGNED)
-123456789123
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123x'
-SELECT CAST('1234567891234x' AS UNSIGNED);
-CAST('1234567891234x' AS UNSIGNED)
-1234567891234
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567891234x'
-SELECT CAST('12345678912345x' AS UNSIGNED);
-CAST('12345678912345x' AS UNSIGNED)
-12345678912345
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678912345x'
-SELECT CAST('123456789123456x' AS UNSIGNED);
-CAST('123456789123456x' AS UNSIGNED)
-123456789123456
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123456x'
-SELECT CAST('1234567891234567x' AS UNSIGNED);
-CAST('1234567891234567x' AS UNSIGNED)
-1234567891234567
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567891234567x'
-SELECT CAST('12345678912345678x' AS UNSIGNED);
-CAST('12345678912345678x' AS UNSIGNED)
-12345678912345678
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678912345678x'
-SELECT CAST('123456789123456789x' AS UNSIGNED);
-CAST('123456789123456789x' AS UNSIGNED)
-123456789123456789
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123456789x'
-SELECT CAST('1234567891234567891x' AS UNSIGNED);
-CAST('1234567891234567891x' AS UNSIGNED)
-1234567891234567891
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1234567891234567891x'
-SELECT CAST('12345678912345678912x' AS UNSIGNED);
-CAST('12345678912345678912x' AS UNSIGNED)
-12345678912345678912
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '12345678912345678912x'
-SELECT CAST('123456789123456789123x' AS UNSIGNED);
-CAST('123456789123456789123x' AS UNSIGNED)
-18446744073709551615
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '123456789123456789123x'
-create table t1 (a int);
-insert into t1 values ('-1234.1e2');
-insert ignore into t1 values ('-1234.1e2xxxx');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-insert into t1 values ('-1234.1e2 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
--123410
--123410
--123410
-drop table t1;
-create table t1 (a int);
-insert into t1 values ('1 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-insert ignore into t1 values ('1 x');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-1
-1
-drop table t1;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1 (a varchar(17000) character set utf32);
-Warnings:
-Note 1246 Converting column 'a' from VARCHAR to TEXT
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` mediumtext CHARACTER SET utf32 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a varchar(250) character set utf32 primary key);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(250) CHARACTER SET utf32 NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a varchar(334) character set utf32 primary key);
-ERROR 42000: Specified key was too long; max key length is 1000 bytes
-create table t1 (a varchar(333) character set utf32, key(a));
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-insert into t1 values (repeat('a',333)), (repeat('b',333));
-flush tables;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-SET collation_connection=utf32_general_ci;
-#
-# Bug#32390 Character sets: casting utf32 to/from date doesn't work
-#
-CREATE TABLE t1 AS SELECT repeat('a',20) AS s1 LIMIT 0;
-SET time_zone=_latin1'+03:00';
-SET timestamp=1216359724;
-INSERT INTO t1 VALUES (current_date);
-INSERT INTO t1 VALUES (current_time);
-INSERT INTO t1 VALUES (current_timestamp);
-SELECT s1, hex(s1) FROM t1;
-s1 hex(s1)
-2008-07-18 000000320000003000000030000000380000002D00000030000000370000002D0000003100000038
-08:42:04 00000030000000380000003A00000034000000320000003A0000003000000034
-2008-07-18 08:42:04 000000320000003000000030000000380000002D00000030000000370000002D00000031000000380000002000000030000000380000003A00000034000000320000003A0000003000000034
-DROP TABLE t1;
-SET timestamp=0;
-SET time_zone=default;
-#
-# MDEV-5298 Illegal mix of collations on timestamp
-#
-SELECT CHARSET('2013-11-15 00:41:28' - INTERVAL 7 DAY);
-CHARSET('2013-11-15 00:41:28' - INTERVAL 7 DAY)
-utf32
-SELECT COERCIBILITY('2013-11-15 00:41:28' - INTERVAL 7 DAY);
-COERCIBILITY('2013-11-15 00:41:28' - INTERVAL 7 DAY)
-4
-SELECT CHARSET(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY);
-CHARSET(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY)
-binary
-SELECT COERCIBILITY(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY);
-COERCIBILITY(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY)
-5
-SELECT CHARSET(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY));
-CHARSET(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY))
-utf32
-SELECT COERCIBILITY(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('2013-11-15 00:41:28' - INTERVAL 7 DAY))
-4
-SELECT CHARSET(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY));
-CHARSET(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY))
-utf32
-SELECT COERCIBILITY(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY))
-4
-SELECT CHARSET(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-CHARSET(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-utf32
-SELECT COERCIBILITY(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-4
-SELECT HEX(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY));
-HEX(CONCAT('','2001-01-08 00:00:00' - INTERVAL 7 DAY))
-000000320000003000000030000000310000002D00000030000000310000002D00000030000000310000002000000030000000300000003A00000030000000300000003A0000003000000030
-SELECT CHARSET(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-CHARSET(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-utf32
-SELECT COERCIBILITY(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-COERCIBILITY(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-4
-SELECT HEX(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY));
-HEX(CONCAT('',TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-000000320000003000000030000000310000002D00000030000000310000002D00000030000000310000002000000030000000300000003A00000030000000300000003A0000003000000030
-CREATE TABLE t1 AS SELECT REPEAT('a', 64) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(64) CHARACTER SET utf32 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('');
-SELECT CHARSET(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-CHARSET(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-utf32
-SELECT COERCIBILITY(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-COERCIBILITY(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-2
-SELECT HEX(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-HEX(CONCAT(a,'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-000000320000003000000030000000310000002D00000030000000310000002D00000030000000310000002000000030000000300000003A00000030000000300000003A0000003000000030
-SELECT CHARSET(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-CHARSET(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-utf32
-SELECT COERCIBILITY(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-COERCIBILITY(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-2
-SELECT HEX(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY)) FROM t1;
-HEX(CONCAT(a,TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY))
-000000320000003000000030000000310000002D00000030000000310000002D00000030000000310000002000000030000000300000003A00000030000000300000003A0000003000000030
-DROP TABLE t1;
-CREATE TABLE t1 (t TIMESTAMP NOT NULL);
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00');
-SELECT * FROM t1 WHERE t < '2013-11-15 00:41:28' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = '2001-01-08 00:00:00' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t < CONCAT('2013-11-15 00:41:28',LEFT(RAND(),0)) - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = CONCAT('2001-01-08 00:00:00',LEFT(RAND(),0)) - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t < TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE t = TIMESTAMP'2001-01-08 00:00:00' - INTERVAL 7 DAY;
-t
-2001-01-01 00:00:00
-DROP TABLE t1;
-SET NAMES latin1;
-set collation_connection=utf32_general_ci;
-drop table if exists t1;
-create table t1 as
-select repeat(' ', 64) as s1, repeat(' ',64) as s2
-union
-select null, null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(64) CHARACTER SET utf32 DEFAULT NULL,
- `s2` varchar(64) CHARACTER SET utf32 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-delete from t1;
-insert into t1 values('aaa','aaa');
-insert into t1 values('aaa|qqq','qqq');
-insert into t1 values('gheis','^[^a-dXYZ]+$');
-insert into t1 values('aab','^aa?b');
-insert into t1 values('Baaan','^Ba*n');
-insert into t1 values('aaa','qqq|aaa');
-insert into t1 values('qqq','qqq|aaa');
-insert into t1 values('bbb','qqq|aaa');
-insert into t1 values('bbb','qqq');
-insert into t1 values('aaa','aba');
-insert into t1 values(null,'abc');
-insert into t1 values('def',null);
-insert into t1 values(null,null);
-insert into t1 values('ghi','ghi[');
-select HIGH_PRIORITY s1 regexp s2 from t1;
-s1 regexp s2
-0
-0
-0
-1
-1
-1
-1
-1
-1
-1
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-set names latin1;
-select hex(char(0x01 using utf32));
-hex(char(0x01 using utf32))
-00000001
-select hex(char(0x0102 using utf32));
-hex(char(0x0102 using utf32))
-00000102
-select hex(char(0x010203 using utf32));
-hex(char(0x010203 using utf32))
-00010203
-select hex(char(0x01020304 using utf32));
-hex(char(0x01020304 using utf32))
-NULL
-Warnings:
-Warning 1300 Invalid utf32 character string: '010203'
-create table t1 (s1 varchar(1) character set utf32, s2 text character set utf32);
-create index i on t1 (s1);
-insert into t1 values (char(256 using utf32), char(256 using utf32));
-select hex(s1), hex(s2) from t1;
-hex(s1) hex(s2)
-00000100 00000100
-drop table t1;
-SET collation_connection=utf32_general_ci;
-CREATE TABLE t1 AS SELECT repeat('a',2) as s1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(2) CHARACTER SET utf32 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('ab'),('AE'),('ab'),('AE');
-SELECT * FROM t1 ORDER BY s1;
-s1
-ab
-ab
-AE
-AE
-SET max_sort_length=4;
-SELECT * FROM t1 ORDER BY s1;
-s1
-ab
-ab
-AE
-AE
-DROP TABLE t1;
-SET max_sort_length=DEFAULT;
-SET NAMES latin1;
-#
-# Bug#52520 Difference in tinytext utf column metadata
-#
-CREATE TABLE t1 (
-s1 TINYTEXT CHARACTER SET utf32,
-s2 TEXT CHARACTER SET utf32,
-s3 MEDIUMTEXT CHARACTER SET utf32,
-s4 LONGTEXT CHARACTER SET utf32
-);
-SET NAMES utf8mb4, @@character_set_results=NULL;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 255 0 Y 16 0 60
-def test t1 t1 s2 s2 252 65535 0 Y 16 0 60
-def test t1 t1 s3 s3 252 16777215 0 Y 16 0 60
-def test t1 t1 s4 s4 252 4294967295 0 Y 16 0 60
-def HEX(s1) 253 8160 0 Y 0 0 45
-s1 s2 s3 s4 HEX(s1)
-SET NAMES latin1;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 63 0 Y 16 0 8
-def test t1 t1 s2 s2 252 16383 0 Y 16 0 8
-def test t1 t1 s3 s3 252 4194303 0 Y 16 0 8
-def test t1 t1 s4 s4 252 1073741823 0 Y 16 0 8
-def HEX(s1) 253 2040 0 Y 0 0 8
-s1 s2 s3 s4 HEX(s1)
-SET NAMES utf8mb4;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 252 0 Y 16 0 45
-def test t1 t1 s2 s2 252 65532 0 Y 16 0 45
-def test t1 t1 s3 s3 252 16777212 0 Y 16 0 45
-def test t1 t1 s4 s4 252 4294967292 0 Y 16 0 45
-def HEX(s1) 253 8160 0 Y 0 0 45
-s1 s2 s3 s4 HEX(s1)
-CREATE TABLE t2 AS SELECT CONCAT(s1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT(s1)` varchar(255) CHARACTER SET utf32 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1, t2;
-#
-# Bug#45263 utf32_general_ci, bad effects around CREATE TABLE AS SELECT
-#
-SET collation_connection=utf32_general_ci;
-CREATE TABLE t1 AS SELECT HEX(0x00) AS my_col;
-SELECT * FROM t1;
-my_col
-00
-DROP TABLE t1;
-#
-# Bug#32859 Character sets: no warning with non-fitting chariot wheel
-#
-CREATE TABLE t1 (utf32 CHAR(5) CHARACTER SET utf32, latin1 CHAR(5) CHARACTER SET latin1);
-INSERT INTO t1 (utf32) VALUES (0xc581);
-UPDATE IGNORE t1 SET latin1 = utf32;
-Warnings:
-Warning 1366 Incorrect string value: '\x00\x00\xC5\x81' for column 'latin1' at row 1
-DELETE FROM t1;
-INSERT INTO t1 (utf32) VALUES (0x100cc);
-UPDATE IGNORE t1 SET latin1 = utf32;
-Warnings:
-Warning 1366 Incorrect string value: '\x00\x01\x00\xCC' for column 'latin1' at row 1
-DROP TABLE t1;
-#
-# Bug#55912 FORMAT with locale set fails for numbers < 1000
-#
-SET collation_connection=utf32_general_ci;
-CREATE TABLE t1 AS SELECT format(123,2,'no_NO');
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `format(123,2,'no_NO')` varchar(45) CHARACTER SET utf32 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-format(123,2,'no_NO')
-123,00
-DROP TABLE t1;
-#
-# Bug#42511 mysqld: ctype-ucs2.c:2044: my_strnncollsp_utf32: Assertion (tlen % 4) == 0' faied
-#
-CREATE TABLE t1 (
-b char(250) CHARACTER SET utf32,
-key (b)
-) ENGINE=MYISAM;
-INSERT INTO t1 VALUES ('d'),('f');
-SELECT * FROM t1 WHERE b BETWEEN 'a' AND 'z';
-b
-d
-f
-DROP TABLE t1;
-#
-# Bug#11753363 (Bug#44793) Character sets: case clause, ucs2 or utf32, failure
-#
-SELECT CASE _latin1'a' WHEN _utf32'a' THEN 'A' END;
-CASE _latin1'a' WHEN _utf32'a' THEN 'A' END
-A
-SELECT CASE _utf32'a' WHEN _latin1'a' THEN 'A' END;
-CASE _utf32'a' WHEN _latin1'a' THEN 'A' END
-A
-CREATE TABLE t1 (s1 CHAR(5) CHARACTER SET utf32);
-INSERT INTO t1 VALUES ('a');
-SELECT CASE s1 WHEN 'a' THEN 'b' ELSE 'c' END FROM t1;
-CASE s1 WHEN 'a' THEN 'b' ELSE 'c' END
-b
-DROP TABLE t1;
-#
-# Bug#11750518 41090: ORDER BY TRUNCATES GROUP_CONCAT RESULT
-#
-SET NAMES utf8, @@character_set_connection=utf32;
-SET STATEMENT group_concat_max_len=1024 FOR
-SELECT id, CHAR_LENGTH(GROUP_CONCAT(body)) AS l
-FROM (SELECT 'a' AS id, REPEAT('foo bar', 100) AS body
-UNION ALL
-SELECT 'a' AS id, REPEAT('bla bla', 100) AS body) t1
-GROUP BY id
-ORDER BY l DESC;
-id l
-a 256
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-#
-# incorrect charset for val_str_ascii
-#
-SELECT '2010-10-10 10:10:10' + INTERVAL GeometryType(GeomFromText('POINT(1 1)')) hour_second;
-'2010-10-10 10:10:10' + INTERVAL GeometryType(GeomFromText('POINT(1 1)')) hour_second
-2010-10-10 10:10:10
-#
-# MDEV-5745 analyze MySQL fix for bug#12368495
-#
-SELECT CHAR_LENGTH(TRIM(LEADING 0x0000000000 FROM _utf32 0x00000061));
-CHAR_LENGTH(TRIM(LEADING 0x0000000000 FROM _utf32 0x00000061))
-4
-SELECT CHAR_LENGTH(TRIM(LEADING 0x0001 FROM _utf32 0x00000061));
-CHAR_LENGTH(TRIM(LEADING 0x0001 FROM _utf32 0x00000061))
-4
-SELECT CHAR_LENGTH(TRIM(LEADING 0x00 FROM _utf32 0x00000061));
-CHAR_LENGTH(TRIM(LEADING 0x00 FROM _utf32 0x00000061))
-1
-SELECT CHAR_LENGTH(TRIM(TRAILING 0x0000000000 FROM _utf32 0x00000061));
-CHAR_LENGTH(TRIM(TRAILING 0x0000000000 FROM _utf32 0x00000061))
-4
-SELECT CHAR_LENGTH(TRIM(TRAILING 0x0001 FROM _utf32 0x00000061));
-CHAR_LENGTH(TRIM(TRAILING 0x0001 FROM _utf32 0x00000061))
-4
-SELECT CHAR_LENGTH(TRIM(TRAILING 0x61 FROM _utf32 0x00000061));
-CHAR_LENGTH(TRIM(TRAILING 0x61 FROM _utf32 0x00000061))
-3
-SELECT CHAR_LENGTH(TRIM(BOTH 0x0000000000 FROM _utf32 0x00000061));
-CHAR_LENGTH(TRIM(BOTH 0x0000000000 FROM _utf32 0x00000061))
-4
-SELECT CHAR_LENGTH(TRIM(BOTH 0x0001 FROM _utf32 0x00000061));
-CHAR_LENGTH(TRIM(BOTH 0x0001 FROM _utf32 0x00000061))
-4
-SELECT CHAR_LENGTH(TRIM(BOTH 0x61 FROM _utf32 0x00000061));
-CHAR_LENGTH(TRIM(BOTH 0x61 FROM _utf32 0x00000061))
-3
-SELECT CHAR_LENGTH(TRIM(BOTH 0x00 FROM _utf32 0x00000061));
-CHAR_LENGTH(TRIM(BOTH 0x00 FROM _utf32 0x00000061))
-1
-select hex(lower(cast(0xffff0000 as char character set utf32))) as c;
-c
-0000003F0000003F0000003F0000003F
-Warnings:
-Warning 1300 Invalid utf32 character string: '\xFF\xFF\x00\x00'
-#
-# MDEV-11685: sql_mode can't be set with non-ascii connection charset
-#
-SET character_set_connection=utf32;
-SET sql_mode='NO_ENGINE_SUBSTITUTION';
-SELECT @@sql_mode;
-@@sql_mode
-NO_ENGINE_SUBSTITUTION
-SET sql_mode=DEFAULT;
-SET NAMES utf8;
-#
-# MDEV-13530 VARBINARY doesn't convert to to BLOB for sizes 65533, 65534 and 65535
-#
-set sql_mode='';
-CREATE TABLE t1 (c1 VARCHAR(16383) CHARACTER SET utf32);
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 varchar(16383) YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(16384) CHARACTER SET utf32);
-Warnings:
-Note 1246 Converting column 'c1' from VARCHAR to TEXT
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 mediumtext YES NULL
-DROP TABLE t1;
-set sql_mode=default;
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set collation_connection=utf32_general_ci;
-select @@collation_connection;
-@@collation_connection
-utf32_general_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf32 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0041
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET utf32 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-00410041004100410041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-00410041004100410041
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-004100410041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-004100410041
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041004100410041004100200020002000200020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0041004100410041004100200020002000200020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-0041
-select hex(weight_string('A'));
-hex(weight_string('A'))
-0041
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-004100420043
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-00410042
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-004100420043
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-00410042004300200020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-00
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0041
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-004100
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-00410042002000200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-00
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0041
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-004100
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-00410042004300200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-00
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0041
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-004100
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-00410042004300200020002000200020002000200020002000
-select @@collation_connection;
-@@collation_connection
-utf32_general_ci
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-20AC20AC20AC00200020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-20AC20AC00
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-20AC20AC002000200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select hex(weight_string(_utf32 0x10000));
-hex(weight_string(_utf32 0x10000))
-FFFD
-select hex(weight_string(_utf32 0x10001));
-hex(weight_string(_utf32 0x10001))
-FFFD
-select @@collation_connection;
-@@collation_connection
-utf32_general_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-0041
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-0041
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-004100420043
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-00410042
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-004100420043
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-00410042004300200020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-20002000430042004100
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-FFBEFFBDFFBCFFDFFFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFFFDFFFBCFFBDFFBEFF
-set collation_connection=utf32_bin;
-select @@collation_connection;
-@@collation_connection
-utf32_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf32 COLLATE utf32_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-000061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET utf32 COLLATE utf32_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(15) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-000061000061000061000061000061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061000061000061000061000061
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-000061000061000061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061000061000061
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-000061000061000061000061000061000020000020000020000020000020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061000061000061000061000061000020000020000020000020000020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-000061
-select hex(weight_string('A'));
-hex(weight_string('A'))
-000041
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-000061000062000063
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-000061000062
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-000061000062000063
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-000061000062000063000020000020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-00
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0000
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-000061
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-00006100
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0000610000
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-00006100006200002000002000002000002000002000002000
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-00
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0000
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-000061
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-00006100
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0000610000
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-00006100006200006300002000002000002000002000002000
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-00
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0000
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-000061
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-00006100
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0000610000
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-00006100006200006300002000002000002000002000002000
-select @@collation_connection;
-@@collation_connection
-utf32_bin
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-0020AC0020AC0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-0020AC0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-0020AC0020AC0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-0020AC0020AC0020AC000020000020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-00
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-0020
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-0020AC00
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-0020AC0020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-0020AC0020AC00002000002000002000002000002000002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-00
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-0020
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-0020AC00
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-0020AC0020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-0020AC0020AC0020AC00002000002000002000002000002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-00
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-0020
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-0020AC00
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-0020AC0020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-0020AC0020AC0020AC00002000002000002000002000002000
-select @@collation_connection;
-@@collation_connection
-utf32_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-000061
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-000041
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-000061000062000063
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-000061000062
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-000061000062000063
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-000061000062000063000020000020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-200000200000630000620000610000
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-FFFF9EFFFF9DFFFF9CFFFFDFFFFFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFFFFFDFFFFF9CFFFF9DFFFF9EFFFF
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-6661 PI() does not work well in UCS2/UTF16/UTF32 context
-#
-SELECT CONCAT(CONVERT('pi=' USING utf32),PI()) AS PI;
-PI
-pi=3.141593
-#
-# MDEV-6666 Malformed result for CONCAT(utf8_column, binary_string)
-#
-SET NAMES utf8mb4;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf32);
-INSERT INTO t1 VALUES ('a');
-SELECT CONCAT(a,0x20FFFF) FROM t1;
-ERROR HY000: Invalid utf32 character string: '0020FF'
-SELECT CONCAT(a,0x010000) FROM t1;
-CONCAT(a,0x010000)
-að€€
-SELECT CONCAT(a,0x00FF) FROM t1;
-CONCAT(a,0x00FF)
-aÿ
-DROP TABLE t1;
-SELECT CONCAT(_utf32'a' COLLATE utf32_unicode_ci, _binary 0x20FFFF);
-ERROR HY000: Invalid utf32 character string: '0020FF'
-PREPARE stmt FROM "SELECT CONCAT(_utf32'a' COLLATE utf32_unicode_ci, ?)";
-SET @arg00=_binary 0x20FFFF;
-EXECUTE stmt USING @arg00;
-ERROR HY000: Invalid utf32 character string: '0020FF'
-SET @arg00=_binary 0x010000;
-EXECUTE stmt USING @arg00;
-CONCAT(_utf32'a' COLLATE utf32_unicode_ci, ?)
-að€€
-SET @arg00=_binary 0x00FF;
-EXECUTE stmt USING @arg00;
-CONCAT(_utf32'a' COLLATE utf32_unicode_ci, ?)
-aÿ
-DEALLOCATE PREPARE stmt;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8419 utf32: compare broken bytes as "greater than any non-broken character"
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf32, KEY(a));
-INSERT INTO t1 VALUES (0x10000),(0x10001),(0x10002);
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-1
-DROP TABLE t1;
-SELECT _utf32 0x10001=_utf32 0x10002;
-_utf32 0x10001=_utf32 0x10002
-1
-#
-# MDEV-9178 Wrong result for CAST(CONVERT('1IJ3' USING ucs2) AS SIGNED)
-#
-SET NAMES utf8;
-SELECT CAST(CONVERT('1IJ3' USING utf32) AS SIGNED);
-CAST(CONVERT('1IJ3' USING utf32) AS SIGNED)
-1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1IJ3'
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET character_set_connection=utf32;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf32_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf32_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf32 COLLATE=utf32_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-0000006100000062000000630000002000000020 abc
-000000610000006200000063 abc
-00000061000000200000002000000020 a
-000000200000006100000020 a
-0000002000000061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf32_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-0000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-00000061000000620000006300000020 abc
-0000006100000062000000630000002000000020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061 a
-000000610000002000000020 a
-00000061000000200000002000000020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-00000061000000200000002000000020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf32_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-0000006100000061 1
-00000061000000610000002000000020 1
-0000006100000062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041000000000000000000000000000000000000
-0041002000200000000000000000000000000000
-0020004100000000000000000000000000000000
-0020004100200000000000000000000000000000
-0041002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf32_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf32_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf32_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf32_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf32_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf32_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf32_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf32_general_nopad_ci', 'abc '))
-00000061000000620000006300000020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf32_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf32_general_nopad_ci', 'abc '))
-0000006100000062000000630000002000000020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf32_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf32_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf32_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf32 COLLATE=utf32_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-0000006100000062000000630000002000000020 abc
-000000610000006200000063 abc
-00000061000000200000002000000020 a
-000000200000006100000020 a
-0000002000000061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf32_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-0000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-00000061000000620000006300000020 abc
-0000006100000062000000630000002000000020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061 a
-000000610000002000000020 a
-00000061000000200000002000000020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-00000061000000200000002000000020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf32_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-0000006100000061 1
-00000061000000610000002000000020 1
-0000006100000062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041000000000000000000000000000000000000
-0041002000200000000000000000000000000000
-0020004100000000000000000000000000000000
-0020004100200000000000000000000000000000
-0041002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf32_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf32_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf32_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf32_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf32_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf32_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf32_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf32_general_nopad_ci', 'abc '))
-00000061000000620000006300000020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf32_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf32_general_nopad_ci', 'abc '))
-0000006100000062000000630000002000000020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf32_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf32_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf32_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf32 COLLATE=utf32_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-0000006100000062000000630000002000000020 abc
-000000610000006200000063 abc
-00000061000000200000002000000020 a
-000000200000006100000020 a
-0000002000000061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf32_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-0000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-00000061000000620000006300000020 abc
-0000006100000062000000630000002000000020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061 a
-000000610000002000000020 a
-00000061000000200000002000000020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-00000061000000200000002000000020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf32_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-0000006100000061 1
-00000061000000610000002000000020 1
-0000006100000062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-000061000000000000000000000000000000000000000000000000000000
-000061000020000020000000000000000000000000000000000000000000
-000020000061000000000000000000000000000000000000000000000000
-000020000061000020000000000000000000000000000000000000000000
-000061000020000020000020000000000000000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf32_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf32_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf32_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf32_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf32_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf32_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf32_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf32_nopad_bin', 'abc '))
-00000061000000620000006300000020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf32_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf32_nopad_bin', 'abc '))
-0000006100000062000000630000002000000020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf32_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf32_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf32_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf32 COLLATE=utf32_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-0000006100000062000000630000002000000020 abc
-000000610000006200000063 abc
-00000061000000200000002000000020 a
-000000200000006100000020 a
-0000002000000061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf32_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-0000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-00000061000000620000006300000020 abc
-0000006100000062000000630000002000000020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061 a
-000000610000002000000020 a
-00000061000000200000002000000020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-00000061000000200000002000000020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf32_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-0000006100000061 1
-00000061000000610000002000000020 1
-0000006100000062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-000061000000000000000000000000000000000000000000000000000000
-000061000020000020000000000000000000000000000000000000000000
-000020000061000000000000000000000000000000000000000000000000
-000020000061000020000000000000000000000000000000000000000000
-000061000020000020000020000000000000000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf32_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf32_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf32_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf32_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf32_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf32_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf32_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf32_nopad_bin', 'abc '))
-00000061000000620000006300000020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf32_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf32_nopad_bin', 'abc '))
-0000006100000062000000630000002000000020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf32_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_utf32_uca.result b/mysql-test/r/ctype_utf32_uca.result
deleted file mode 100644
index a112918c0c3..00000000000
--- a/mysql-test/r/ctype_utf32_uca.result
+++ /dev/null
@@ -1,7917 +0,0 @@
-DROP TABLE IF EXISTS t1;
-#
-# Start of 5.5 tests
-#
-set names utf8;
-set collation_connection=utf32_unicode_ci;
-select hex('a'), hex('a ');
-hex('a') hex('a ')
-00000061 0000006100000020
-select 'a' = 'a', 'a' = 'a ', 'a ' = 'a';
-'a' = 'a' 'a' = 'a ' 'a ' = 'a'
-1 1 1
-select 'a\0' = 'a', 'a\0' < 'a', 'a\0' > 'a';
-'a\0' = 'a' 'a\0' < 'a' 'a\0' > 'a'
-1 0 0
-select 'a' = 'a\0', 'a' < 'a\0', 'a' > 'a\0';
-'a' = 'a\0' 'a' < 'a\0' 'a' > 'a\0'
-1 0 0
-select 'a\0' = 'a ', 'a\0' < 'a ', 'a\0' > 'a ';
-'a\0' = 'a ' 'a\0' < 'a ' 'a\0' > 'a '
-1 0 0
-select 'a ' = 'a\0', 'a ' < 'a\0', 'a ' > 'a\0';
-'a ' = 'a\0' 'a ' < 'a\0' 'a ' > 'a\0'
-1 0 0
-select 'a a' > 'a', 'a \0' < 'a';
-'a a' > 'a' 'a \0' < 'a'
-1 0
-select binary 'a a' > 'a', binary 'a \0' > 'a', binary 'a\0' > 'a';
-binary 'a a' > 'a' binary 'a \0' > 'a' binary 'a\0' > 'a'
-1 1 1
-select 'c' like '\_' as want0;
-want0
-0
-CREATE TABLE t (
-c char(20) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARACTER SET utf32 COLLATE=utf32_unicode_ci;
-INSERT INTO t VALUES ('a'),('ab'),('aba');
-ALTER TABLE t ADD INDEX (c);
-SELECT c FROM t WHERE c LIKE 'a%';
-c
-a
-ab
-aba
-DROP TABLE t;
-create table t1 (c1 char(10) character set utf32 collate utf32_bin);
-insert into t1 values ('A'),('a');
-insert into t1 values ('B'),('b');
-insert into t1 values ('C'),('c');
-insert into t1 values ('D'),('d');
-insert into t1 values ('E'),('e');
-insert into t1 values ('F'),('f');
-insert into t1 values ('G'),('g');
-insert into t1 values ('H'),('h');
-insert into t1 values ('I'),('i');
-insert into t1 values ('J'),('j');
-insert into t1 values ('K'),('k');
-insert into t1 values ('L'),('l');
-insert into t1 values ('M'),('m');
-insert into t1 values ('N'),('n');
-insert into t1 values ('O'),('o');
-insert into t1 values ('P'),('p');
-insert into t1 values ('Q'),('q');
-insert into t1 values ('R'),('r');
-insert into t1 values ('S'),('s');
-insert into t1 values ('T'),('t');
-insert into t1 values ('U'),('u');
-insert into t1 values ('V'),('v');
-insert into t1 values ('W'),('w');
-insert into t1 values ('X'),('x');
-insert into t1 values ('Y'),('y');
-insert into t1 values ('Z'),('z');
-insert into t1 values (_ucs2 0x00e0),(_ucs2 0x00c0);
-insert into t1 values (_ucs2 0x00e1),(_ucs2 0x00c1);
-insert into t1 values (_ucs2 0x00e2),(_ucs2 0x00c2);
-insert into t1 values (_ucs2 0x00e3),(_ucs2 0x00c3);
-insert into t1 values (_ucs2 0x00e4),(_ucs2 0x00c4);
-insert into t1 values (_ucs2 0x00e5),(_ucs2 0x00c5);
-insert into t1 values (_ucs2 0x00e6),(_ucs2 0x00c6);
-insert into t1 values (_ucs2 0x00e7),(_ucs2 0x00c7);
-insert into t1 values (_ucs2 0x00e8),(_ucs2 0x00c8);
-insert into t1 values (_ucs2 0x00e9),(_ucs2 0x00c9);
-insert into t1 values (_ucs2 0x00ea),(_ucs2 0x00ca);
-insert into t1 values (_ucs2 0x00eb),(_ucs2 0x00cb);
-insert into t1 values (_ucs2 0x00ec),(_ucs2 0x00cc);
-insert into t1 values (_ucs2 0x00ed),(_ucs2 0x00cd);
-insert into t1 values (_ucs2 0x00ee),(_ucs2 0x00ce);
-insert into t1 values (_ucs2 0x00ef),(_ucs2 0x00cf);
-insert into t1 values (_ucs2 0x00f0),(_ucs2 0x00d0);
-insert into t1 values (_ucs2 0x00f1),(_ucs2 0x00d1);
-insert into t1 values (_ucs2 0x00f2),(_ucs2 0x00d2);
-insert into t1 values (_ucs2 0x00f3),(_ucs2 0x00d3);
-insert into t1 values (_ucs2 0x00f4),(_ucs2 0x00d4);
-insert into t1 values (_ucs2 0x00f5),(_ucs2 0x00d5);
-insert into t1 values (_ucs2 0x00f6),(_ucs2 0x00d6);
-insert into t1 values (_ucs2 0x00f7),(_ucs2 0x00d7);
-insert into t1 values (_ucs2 0x00f8),(_ucs2 0x00d8);
-insert into t1 values (_ucs2 0x00f9),(_ucs2 0x00d9);
-insert into t1 values (_ucs2 0x00fa),(_ucs2 0x00da);
-insert into t1 values (_ucs2 0x00fb),(_ucs2 0x00db);
-insert into t1 values (_ucs2 0x00fc),(_ucs2 0x00dc);
-insert into t1 values (_ucs2 0x00fd),(_ucs2 0x00dd);
-insert into t1 values (_ucs2 0x00fe),(_ucs2 0x00de);
-insert into t1 values (_ucs2 0x00ff),(_ucs2 0x00df);
-insert into t1 values (_ucs2 0x0100),(_ucs2 0x0101),(_ucs2 0x0102),(_ucs2 0x0103);
-insert into t1 values (_ucs2 0x0104),(_ucs2 0x0105),(_ucs2 0x0106),(_ucs2 0x0107);
-insert into t1 values (_ucs2 0x0108),(_ucs2 0x0109),(_ucs2 0x010a),(_ucs2 0x010b);
-insert into t1 values (_ucs2 0x010c),(_ucs2 0x010d),(_ucs2 0x010e),(_ucs2 0x010f);
-insert into t1 values (_ucs2 0x0110),(_ucs2 0x0111),(_ucs2 0x0112),(_ucs2 0x0113);
-insert into t1 values (_ucs2 0x0114),(_ucs2 0x0115),(_ucs2 0x0116),(_ucs2 0x0117);
-insert into t1 values (_ucs2 0x0118),(_ucs2 0x0119),(_ucs2 0x011a),(_ucs2 0x011b);
-insert into t1 values (_ucs2 0x011c),(_ucs2 0x011d),(_ucs2 0x011e),(_ucs2 0x011f);
-insert into t1 values (_ucs2 0x0120),(_ucs2 0x0121),(_ucs2 0x0122),(_ucs2 0x0123);
-insert into t1 values (_ucs2 0x0124),(_ucs2 0x0125),(_ucs2 0x0126),(_ucs2 0x0127);
-insert into t1 values (_ucs2 0x0128),(_ucs2 0x0129),(_ucs2 0x012a),(_ucs2 0x012b);
-insert into t1 values (_ucs2 0x012c),(_ucs2 0x012d),(_ucs2 0x012e),(_ucs2 0x012f);
-insert into t1 values (_ucs2 0x0130),(_ucs2 0x0131),(_ucs2 0x0132),(_ucs2 0x0133);
-insert into t1 values (_ucs2 0x0134),(_ucs2 0x0135),(_ucs2 0x0136),(_ucs2 0x0137);
-insert into t1 values (_ucs2 0x0138),(_ucs2 0x0139),(_ucs2 0x013a),(_ucs2 0x013b);
-insert into t1 values (_ucs2 0x013c),(_ucs2 0x013d),(_ucs2 0x013e),(_ucs2 0x013f);
-insert into t1 values (_ucs2 0x0140),(_ucs2 0x0141),(_ucs2 0x0142),(_ucs2 0x0143);
-insert into t1 values (_ucs2 0x0144),(_ucs2 0x0145),(_ucs2 0x0146),(_ucs2 0x0147);
-insert into t1 values (_ucs2 0x0148),(_ucs2 0x0149),(_ucs2 0x014a),(_ucs2 0x014b);
-insert into t1 values (_ucs2 0x014c),(_ucs2 0x014d),(_ucs2 0x014e),(_ucs2 0x014f);
-insert into t1 values (_ucs2 0x0150),(_ucs2 0x0151),(_ucs2 0x0152),(_ucs2 0x0153);
-insert into t1 values (_ucs2 0x0154),(_ucs2 0x0155),(_ucs2 0x0156),(_ucs2 0x0157);
-insert into t1 values (_ucs2 0x0158),(_ucs2 0x0159),(_ucs2 0x015a),(_ucs2 0x015b);
-insert into t1 values (_ucs2 0x015c),(_ucs2 0x015d),(_ucs2 0x015e),(_ucs2 0x015f);
-insert into t1 values (_ucs2 0x0160),(_ucs2 0x0161),(_ucs2 0x0162),(_ucs2 0x0163);
-insert into t1 values (_ucs2 0x0164),(_ucs2 0x0165),(_ucs2 0x0166),(_ucs2 0x0167);
-insert into t1 values (_ucs2 0x0168),(_ucs2 0x0169),(_ucs2 0x016a),(_ucs2 0x016b);
-insert into t1 values (_ucs2 0x016c),(_ucs2 0x016d),(_ucs2 0x016e),(_ucs2 0x016f);
-insert into t1 values (_ucs2 0x0170),(_ucs2 0x0171),(_ucs2 0x0172),(_ucs2 0x0173);
-insert into t1 values (_ucs2 0x0174),(_ucs2 0x0175),(_ucs2 0x0176),(_ucs2 0x0177);
-insert into t1 values (_ucs2 0x0178),(_ucs2 0x0179),(_ucs2 0x017a),(_ucs2 0x017b);
-insert into t1 values (_ucs2 0x017c),(_ucs2 0x017d),(_ucs2 0x017e),(_ucs2 0x017f);
-insert into t1 values (_ucs2 0x0180),(_ucs2 0x0181),(_ucs2 0x0182),(_ucs2 0x0183);
-insert into t1 values (_ucs2 0x0184),(_ucs2 0x0185),(_ucs2 0x0186),(_ucs2 0x0187);
-insert into t1 values (_ucs2 0x0188),(_ucs2 0x0189),(_ucs2 0x018a),(_ucs2 0x018b);
-insert into t1 values (_ucs2 0x018c),(_ucs2 0x018d),(_ucs2 0x018e),(_ucs2 0x018f);
-insert into t1 values (_ucs2 0x0190),(_ucs2 0x0191),(_ucs2 0x0192),(_ucs2 0x0193);
-insert into t1 values (_ucs2 0x0194),(_ucs2 0x0195),(_ucs2 0x0196),(_ucs2 0x0197);
-insert into t1 values (_ucs2 0x0198),(_ucs2 0x0199),(_ucs2 0x019a),(_ucs2 0x019b);
-insert into t1 values (_ucs2 0x019c),(_ucs2 0x019d),(_ucs2 0x019e),(_ucs2 0x019f);
-insert into t1 values (_ucs2 0x01a0),(_ucs2 0x01a1),(_ucs2 0x01a2),(_ucs2 0x01a3);
-insert into t1 values (_ucs2 0x01a4),(_ucs2 0x01a5),(_ucs2 0x01a6),(_ucs2 0x01a7);
-insert into t1 values (_ucs2 0x01a8),(_ucs2 0x01a9),(_ucs2 0x01aa),(_ucs2 0x01ab);
-insert into t1 values (_ucs2 0x01ac),(_ucs2 0x01ad),(_ucs2 0x01ae),(_ucs2 0x01af);
-insert into t1 values (_ucs2 0x01b0),(_ucs2 0x01b1),(_ucs2 0x01b2),(_ucs2 0x01b3);
-insert into t1 values (_ucs2 0x01b4),(_ucs2 0x01b5),(_ucs2 0x01b6),(_ucs2 0x01b7);
-insert into t1 values (_ucs2 0x01b8),(_ucs2 0x01b9),(_ucs2 0x01ba),(_ucs2 0x01bb);
-insert into t1 values (_ucs2 0x01bc),(_ucs2 0x01bd),(_ucs2 0x01be),(_ucs2 0x01bf);
-insert into t1 values (_ucs2 0x01c0),(_ucs2 0x01c1),(_ucs2 0x01c2),(_ucs2 0x01c3);
-insert into t1 values (_ucs2 0x01c4),(_ucs2 0x01c5),(_ucs2 0x01c6),(_ucs2 0x01c7);
-insert into t1 values (_ucs2 0x01c8),(_ucs2 0x01c9),(_ucs2 0x01ca),(_ucs2 0x01cb);
-insert into t1 values (_ucs2 0x01cc),(_ucs2 0x01cd),(_ucs2 0x01ce),(_ucs2 0x01cf);
-insert into t1 values (_ucs2 0x01d0),(_ucs2 0x01d1),(_ucs2 0x01d2),(_ucs2 0x01d3);
-insert into t1 values (_ucs2 0x01d4),(_ucs2 0x01d5),(_ucs2 0x01d6),(_ucs2 0x01d7);
-insert into t1 values (_ucs2 0x01d8),(_ucs2 0x01d9),(_ucs2 0x01da),(_ucs2 0x01db);
-insert into t1 values (_ucs2 0x01dc),(_ucs2 0x01dd),(_ucs2 0x01de),(_ucs2 0x01df);
-insert into t1 values (_ucs2 0x01e0),(_ucs2 0x01e1),(_ucs2 0x01e2),(_ucs2 0x01e3);
-insert into t1 values (_ucs2 0x01e4),(_ucs2 0x01e5),(_ucs2 0x01e6),(_ucs2 0x01e7);
-insert into t1 values (_ucs2 0x01e8),(_ucs2 0x01e9),(_ucs2 0x01ea),(_ucs2 0x01eb);
-insert into t1 values (_ucs2 0x01ec),(_ucs2 0x01ed),(_ucs2 0x01ee),(_ucs2 0x01ef);
-insert into t1 values (_ucs2 0x01f0),(_ucs2 0x01f1),(_ucs2 0x01f2),(_ucs2 0x01f3);
-insert into t1 values (_ucs2 0x01f4),(_ucs2 0x01f5),(_ucs2 0x01f6),(_ucs2 0x01f7);
-insert into t1 values (_ucs2 0x01f8),(_ucs2 0x01f9),(_ucs2 0x01fa),(_ucs2 0x01fb);
-insert into t1 values (_ucs2 0x01fc),(_ucs2 0x01fd),(_ucs2 0x01fe),(_ucs2 0x01ff);
-INSERT INTO t1 VALUES (_ucs2 0x1EA0),(_ucs2 0x1EA1),(_ucs2 0x1EA2),(_ucs2 0x1EA3);
-INSERT INTO t1 VALUES (_ucs2 0x1EA4),(_ucs2 0x1EA5),(_ucs2 0x1EA6),(_ucs2 0x1EA7);
-INSERT INTO t1 VALUES (_ucs2 0x1EA8),(_ucs2 0x1EA9),(_ucs2 0x1EAA),(_ucs2 0x1EAB);
-INSERT INTO t1 VALUES (_ucs2 0x1EAC),(_ucs2 0x1EAD),(_ucs2 0x1EAE),(_ucs2 0x1EAF);
-INSERT INTO t1 VALUES (_ucs2 0x1EB0),(_ucs2 0x1EB1),(_ucs2 0x1EB2),(_ucs2 0x1EB3);
-INSERT INTO t1 VALUES (_ucs2 0x1EB4),(_ucs2 0x1EB5),(_ucs2 0x1EB6),(_ucs2 0x1EB7);
-INSERT INTO t1 VALUES (_ucs2 0x1EB8),(_ucs2 0x1EB9),(_ucs2 0x1EBA),(_ucs2 0x1EBB);
-INSERT INTO t1 VALUES (_ucs2 0x1EBC),(_ucs2 0x1EBD),(_ucs2 0x1EBE),(_ucs2 0x1EBF);
-INSERT INTO t1 VALUES (_ucs2 0x1EC0),(_ucs2 0x1EC1),(_ucs2 0x1EC2),(_ucs2 0x1EC3);
-INSERT INTO t1 VALUES (_ucs2 0x1EC4),(_ucs2 0x1EC5),(_ucs2 0x1EC6),(_ucs2 0x1EC7);
-INSERT INTO t1 VALUES (_ucs2 0x1EC8),(_ucs2 0x1EC9),(_ucs2 0x1ECA),(_ucs2 0x1ECB);
-INSERT INTO t1 VALUES (_ucs2 0x1ECC),(_ucs2 0x1ECD),(_ucs2 0x1ECE),(_ucs2 0x1ECF);
-INSERT INTO t1 VALUES (_ucs2 0x1ED0),(_ucs2 0x1ED1),(_ucs2 0x1ED2),(_ucs2 0x1ED3);
-INSERT INTO t1 VALUES (_ucs2 0x1ED4),(_ucs2 0x1ED5),(_ucs2 0x1ED6),(_ucs2 0x1ED7);
-INSERT INTO t1 VALUES (_ucs2 0x1ED8),(_ucs2 0x1ED9),(_ucs2 0x1EDA),(_ucs2 0x1EDB);
-INSERT INTO t1 VALUES (_ucs2 0x1EDC),(_ucs2 0x1EDD),(_ucs2 0x1EDE),(_ucs2 0x1EDF);
-INSERT INTO t1 VALUES (_ucs2 0x1EE0),(_ucs2 0x1EE1),(_ucs2 0x1EE2),(_ucs2 0x1EE3);
-INSERT INTO t1 VALUES (_ucs2 0x1EE4),(_ucs2 0x1EE5),(_ucs2 0x1EE6),(_ucs2 0x1EE7);
-INSERT INTO t1 VALUES (_ucs2 0x1EE8),(_ucs2 0x1EE9),(_ucs2 0x1EEA),(_ucs2 0x1EEB);
-INSERT INTO t1 VALUES (_ucs2 0x1EEC),(_ucs2 0x1EED),(_ucs2 0x1EEE),(_ucs2 0x1EEF);
-INSERT INTO t1 VALUES (_ucs2 0x1EF0),(_ucs2 0x1EF1);
-insert into t1 values ('AA'),('Aa'),('aa'),('aA');
-insert into t1 values ('AE'),('Ae'),('ae'),('aE');
-insert into t1 values ('CH'),('Ch'),('ch'),('cH');
-insert into t1 values ('DZ'),('Dz'),('dz'),('dZ');
-insert into t1 values ('DŽ'),('Dž'),('dž'),('dŽ');
-insert into t1 values ('IJ'),('Ij'),('ij'),('iJ');
-insert into t1 values ('LJ'),('Lj'),('lj'),('lJ');
-insert into t1 values ('LL'),('Ll'),('ll'),('lL');
-insert into t1 values ('NJ'),('Nj'),('nj'),('nJ');
-insert into t1 values ('OE'),('Oe'),('oe'),('oE');
-insert into t1 values ('SS'),('Ss'),('ss'),('sS');
-insert into t1 values ('RR'),('Rr'),('rr'),('rR');
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_unicode_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_icelandic_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÂÃàâãĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-Ãá
-ǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-Ãð
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-EeÈÊËèêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-Éé
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÌÎÃìîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-Ãí
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÔÕòôõŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Óó
-Ǿǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÛÜùûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Úú
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÿŶŷŸ
-Ãý
-Ƴƴ
-ZzŹźŻżŽž
-Þþ
-ÄÆäæ
-ÖØöø
-Ã…Ã¥
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_latvian_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċ
-CHChcHch
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġǦǧǴǵ
-Ģģ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-Yy
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkǨǩ
-Ķķ
-Ƙƙ
-LlĹ弾
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-Ļļ
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŇňǸǹ
-NJNjnJnjNJNjnj
-Ņņ
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŘř
-RRRrrRrr
-Å–Å—
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-ÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_romanian_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÃÄÅàáãäåĀÄÄ„Ä…ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-Ăă
-Ââ
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃìíïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-Îî
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅÅ Å¡Å¿
-SSSssSssß
-Şş
-Æ©
-ƪ
-TtŤť
-ƾ
-Ţţ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_slovenian_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċ
-CHChcHch
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_polish_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂăÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-Ä„Ä…
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĈĉĊċČÄ
-CHChcHch
-Ćć
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-Ęę
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Ńń
-Æž
-ÅŠÅ‹
-OoÒÔÕÖòôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Óó
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsÅœÅŞşŠšſ
-SSSssSssß
-Śś
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŽž
-Źź
-Żż
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_estonian_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÅàáâãåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzdZdz
-DŽDždŽdž
-DŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔòóôŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Zz
-Žž
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Õõ
-Ää
-Öö
-Üü
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ŹźŻż
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_spanish_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Ññ
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_swedish_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃàáâãĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Ǿǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃœÃüýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ã…Ã¥
-ÄÆäæ
-ÖØöø
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_turkish_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcĆćĈĉĊċČÄ
-CHChcHch
-Çç
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĠġĢģǦǧǴǵ
-Ğğ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-Iı
-IJIj
-ƕǶ
-Ħħ
-iÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-iJijIJij
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Öö
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅÅ Å¡Å¿
-SSSssSssß
-Şş
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Üü
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_czech_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċ
-cH
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-CHChch
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗ
-RRRrrRrr
-Řř
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_danish_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃàáâãĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-aA
-AEAeaEae
-ǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Ǿǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃœÃüýÿŰűŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-ÄÆäæ
-ÖØöøÅÅ‘
-AAAaaaÃ…Ã¥
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_lithuanian_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CCHChcchÇçĆćĈĉĊċ
-cH
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IYiyÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-ÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_slovak_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÅàáâãåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-Ää
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċ
-cH
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-CHChch
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÕÖòóõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Ôô
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_spanish2_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-cH
-CHChch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-lL
-LLLlll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Ññ
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_roman_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IJijÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJij
-IJij
-ı
-Æ—
-Æ–
-Ĵĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJlj
-LJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnj
-NJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-ÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-UVuv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_esperanto_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĊċČÄ
-CHChcHch
-Ĉĉ
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgĞğĠġĢģǦǧǴǵ
-ÄœÄ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-Hh
-Ĥĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjÇ°
-Ĵĵ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŞşŠšſ
-SSSssSssß
-ÅœÅ
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ŭŭ
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_hungarian_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ÖöÅÅ‘
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-ÜüŰű
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_croatian_mysql561_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĈĉĊċ
-CHChcHch
-ÄŒÄ
-Ćć
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDZDzdz
-DŽDždŽdžDŽDždž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LLLllLll
-LJLjlJljLJLjlj
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_croatian_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĈĉĊċ
-CHChcHch
-ÄŒÄ
-Ćć
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDZDzdz
-dŽ
-DŽDždžDŽDždž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-lJ
-LLLllLll
-LJLjljLJLjlj
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-nJ
-NJNjnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_german2_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÅàáâãåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEaeÄÆäæ
-ǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÖöŒœ
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Üü
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_unicode_520_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEaeÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÃðĎÄÄÄ‘
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-Ɖ
-ÆŠ
-Ƌƌ
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥĦħ
-ƕǶ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľĿŀÅÅ‚
-LJLjlJljLJLjlj
-LLLllLll
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖØòóôõöøŌÅÅŽÅÅőƠơǑǒǪǫǬǭǾǿỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-select group_concat(c1 order by binary c1 separator '') from t1 group by c1 collate utf32_vietnamese_ci;
-group_concat(c1 order by binary c1 separator '')
-÷
-×
-AaÀÃÃÄÅàáãäåĀÄÄ„Ä…ÇǎǞǟǠǡǺǻẠạẢả
-AAAaaAaa
-AEAeaEae
-ĂăẮắẰằẲẳẴẵẶặ
-ÂâẤấẦầẨẩẪẫẬậ
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉËèéëĒēĔĕĖėĘęĚěẸẹẺẻẼẽ
-ÊêẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÕÖòóõöŌÅÅŽÅÅőǑǒǪǫǬǭỌá»á»Žá»
-OEOeoEoeÅ’Å“
-Ôôá»á»‘ỒồỔổỖỗỘộ
-ƠơỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųǓǔǕǖǗǘǙǚǛǜỤụỦủ
-ƯưỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-drop table t1;
-SET NAMES utf8;
-CREATE TABLE t1 (c varchar(200) CHARACTER SET utf32 COLLATE utf32_general_ci NOT NULL, INDEX (c));
-INSERT INTO t1 VALUES (_ucs2 0x039C03C903B403B11F770308);
-SELECT * FROM t1 WHERE c LIKE _utf32 0x0000039C00000025 COLLATE utf32_general_ci;
-c
-Μωδαί̈
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x039C03C903B4 USING utf8));
-SELECT * FROM t1 WHERE c LIKE _utf32 0x0000039C00000025
-COLLATE utf32_general_ci ORDER BY c;
-c
-Μωδ
-Μωδαί̈
-DROP TABLE t1;
-CREATE TABLE t1 (c varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, INDEX (c));
-INSERT INTO t1 VALUES (_ucs2 0x039C03C903B403B11F770308);
-SELECT * FROM t1 WHERE c LIKE _utf32 0x0000039C00000025 COLLATE utf32_unicode_ci;
-c
-Μωδαί̈
-INSERT INTO t1 VALUES (_ucs2 0x039C03C903B4);
-SELECT * FROM t1 WHERE c LIKE _utf32 0x0000039C00000025
-COLLATE utf32_unicode_ci ORDER BY c;
-c
-Μωδ
-Μωδαί̈
-DROP TABLE t1;
-CREATE TABLE t1 (c varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, INDEX (c));
-INSERT INTO t1 VALUES (_ucs2 0x039C03C903B403B11F770308);
-SELECT * FROM t1 WHERE c LIKE CONVERT(_ucs2 0x039C0025 USING utf32) COLLATE utf32_unicode_ci;
-c
-Μωδαί̈
-INSERT INTO t1 VALUES (CONVERT(_ucs2 0x039C03C903B4 USING utf8));
-SELECT * FROM t1 WHERE c LIKE CONVERT(_ucs2 0x039C0025 USING utf32)
-COLLATE utf32_unicode_ci ORDER BY c;
-c
-Μωδ
-Μωδαί̈
-DROP TABLE t1;
-SET NAMES utf8;
-SET @test_character_set='utf32';
-SET @test_collation='utf32_swedish_ci';
-SET @safe_character_set_server= @@character_set_server;
-SET @safe_collation_server= @@collation_server;
-SET @safe_character_set_client= @@character_set_client;
-SET @safe_character_set_results= @@character_set_results;
-SET character_set_server= @test_character_set;
-SET collation_server= @test_collation;
-CREATE DATABASE d1;
-USE d1;
-CREATE TABLE t1 (c CHAR(10), KEY(c));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c char(10) utf32_swedish_ci YES MUL NULL
-INSERT INTO t1 VALUES ('aaa'),('aaaa'),('aaaaa');
-SELECT c as want3results FROM t1 WHERE c LIKE 'aaa%';
-want3results
-aaa
-aaaa
-aaaaa
-DROP TABLE t1;
-CREATE TABLE t1 (c1 varchar(15), KEY c1 (c1(2)));
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c1 varchar(15) utf32_swedish_ci YES MUL NULL
-INSERT INTO t1 VALUES ('location'),('loberge'),('lotre'),('boabab');
-SELECT c1 as want3results from t1 where c1 like 'l%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want3results from t1 where c1 like 'lo%';
-want3results
-location
-loberge
-lotre
-SELECT c1 as want1result from t1 where c1 like 'loc%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'loca%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locat%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locati%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'locatio%';
-want1result
-location
-SELECT c1 as want1result from t1 where c1 like 'location%';
-want1result
-location
-DROP TABLE t1;
-create table t1 (a set('a') not null);
-insert ignore into t1 values (),();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-select cast(a as char(1)) from t1;
-cast(a as char(1))
-
-
-select a sounds like a from t1;
-a sounds like a
-1
-1
-select 1 from t1 order by cast(a as char(1));
-1
-1
-1
-drop table t1;
-#
-# MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found
-#
-SET character_set_client=latin1;
-SET character_set_connection= @test_character_set;
-SET collation_connection= @test_collation;
-SELECT COLLATION('.'), SUBSTRING_INDEX('.wwwmysqlcom', '.', -2) AS c1;
-COLLATION('.') c1
-utf32_swedish_ci .wwwmysqlcom
-set names utf8;
-create table t1 (
-name varchar(10),
-level smallint unsigned);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `name` varchar(10) COLLATE utf32_swedish_ci DEFAULT NULL,
- `level` smallint(5) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf32 COLLATE=utf32_swedish_ci
-insert into t1 values ('string',1);
-select concat(name,space(level)), concat(name, repeat(' ',level)) from t1;
-concat(name,space(level)) concat(name, repeat(' ',level))
-string string
-drop table t1;
-DROP DATABASE d1;
-USE test;
-SET character_set_server= @safe_character_set_server;
-SET collation_server= @safe_collation_server;
-SET character_set_client= @safe_character_set_client;
-SET character_set_results= @safe_character_set_results;
-SET collation_connection='utf32_unicode_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf32_unicode_ci 0000006100000009
-utf32_unicode_ci 00000061
-utf32_unicode_ci 0000006100000020
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf32_unicode_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf32_unicode_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf32_unicode_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-"BEGIN ctype_german.inc"
-drop table if exists t1;
-create table t1 as select repeat(' ', 64) as s1;
-select collation(s1) from t1;
-collation(s1)
-utf32_unicode_ci
-delete from t1;
-INSERT INTO t1 VALUES ('ud'),('uf');
-INSERT INTO t1 VALUES ('od'),('of');
-INSERT INTO t1 VALUES ('e');
-INSERT INTO t1 VALUES ('ad'),('af');
-insert into t1 values ('a'),('ae'),(_latin1 0xE4);
-insert into t1 values ('o'),('oe'),(_latin1 0xF6);
-insert into t1 values ('s'),('ss'),(_latin1 0xDF);
-insert into t1 values ('u'),('ue'),(_latin1 0xFC);
-INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
-INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
-select s1, hex(s1) from t1 order by s1, binary s1;
-s1 hex(s1)
-a 00000061
-ä 000000E4
-ad 0000006100000064
-ae 0000006100000065
-af 0000006100000066
-Æ 000000C6
-æ 000000E6
-e 00000065
-o 0000006F
-ö 000000F6
-od 0000006F00000064
-oe 0000006F00000065
-Å’ 00000152
-Å“ 00000153
-of 0000006F00000066
-s 00000073
-ss 0000007300000073
-ß 000000DF
-u 00000075
-ü 000000FC
-ud 0000007500000064
-ue 0000007500000065
-uf 0000007500000066
-select group_concat(s1 order by binary s1) from t1 group by s1;
-group_concat(s1 order by binary s1)
-a,ä
-ad
-ae
-af
-Æ,æ
-e
-o,ö
-od
-oe,Å’,Å“
-of
-s
-ss,ß
-u,ü
-ud
-ue
-uf
-SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
-s1 hex(s1) hex(weight_string(s1))
-a 00000061 0E33
-ä 000000E4 0E33
-ad 0000006100000064 0E330E6D
-ae 0000006100000065 0E330E8B
-af 0000006100000066 0E330EB9
-Æ 000000C6 0E38
-æ 000000E6 0E38
-e 00000065 0E8B
-o 0000006F 0F82
-ö 000000F6 0F82
-od 0000006F00000064 0F820E6D
-oe 0000006F00000065 0F820E8B
-Å’ 00000152 0F820E8B
-Å“ 00000153 0F820E8B
-of 0000006F00000066 0F820EB9
-s 00000073 0FEA
-ss 0000007300000073 0FEA0FEA
-ß 000000DF 0FEA0FEA
-u 00000075 101F
-ü 000000FC 101F
-ud 0000007500000064 101F0E6D
-ue 0000007500000065 101F0E8B
-uf 0000007500000066 101F0EB9
-SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
-s1 hex(s1)
-ae 0000006100000065
-drop table t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('s',0),(_latin1 0xDF,1);
-SELECT * FROM t1 ORDER BY a, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY a DESC, b;
-a b
-ß 1
-s 0
-SELECT * FROM t1 ORDER BY CONCAT(a), b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
-a b
-ß 1
-s 0
-DROP TABLE t1;
-"END ctype_german.inc"
-End of 4.1 tests
-CREATE TABLE t1 (id int, a varchar(30) character set utf32);
-INSERT INTO t1 VALUES (1, _ucs2 0x01310069), (2, _ucs2 0x01310131);
-INSERT INTO t1 VALUES (3, _ucs2 0x00690069), (4, _ucs2 0x01300049);
-INSERT INTO t1 VALUES (5, _ucs2 0x01300130), (6, _ucs2 0x00490049);
-SELECT a, length(a) la, @l:=lower(a) l, length(@l) ll, @u:=upper(a) u, length(@u) lu
-FROM t1 ORDER BY id;
-a la l ll u lu
-ıi 8 ıi 8 II 8
-ıı 8 ıı 8 II 8
-ii 8 ii 8 II 8
-Ä°I 8 ii 8 Ä°I 8
-Ä°Ä° 8 ii 8 Ä°Ä° 8
-II 8 ii 8 II 8
-ALTER TABLE t1 MODIFY a VARCHAR(30) character set utf32 collate utf32_turkish_ci;
-SELECT a, length(a) la, @l:=lower(a) l, length(@l) ll, @u:=upper(a) u, length(@u) lu
-FROM t1 ORDER BY id;
-a la l ll u lu
-ıi 8 ıi 8 Iİ 8
-ıı 8 ıı 8 II 8
-ii 8 ii 8 Ä°Ä° 8
-İI 8 iı 8 İI 8
-Ä°Ä° 8 ii 8 Ä°Ä° 8
-II 8 ıı 8 II 8
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 text character set utf32 collate utf32_polish_ci NOT NULL
-) ENGINE=MyISAM;
-insert into t1 values (''),('a');
-SELECT COUNT(*), c1 FROM t1 GROUP BY c1;
-COUNT(*) c1
-1
-1 a
-DROP TABLE IF EXISTS t1;
-set collation_connection=utf32_unicode_ci;
-drop table if exists t1;
-create table t1 as
-select repeat(' ', 64) as s1, repeat(' ',64) as s2
-union
-select null, null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(64) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,
- `s2` varchar(64) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-delete from t1;
-insert into t1 values('aaa','aaa');
-insert into t1 values('aaa|qqq','qqq');
-insert into t1 values('gheis','^[^a-dXYZ]+$');
-insert into t1 values('aab','^aa?b');
-insert into t1 values('Baaan','^Ba*n');
-insert into t1 values('aaa','qqq|aaa');
-insert into t1 values('qqq','qqq|aaa');
-insert into t1 values('bbb','qqq|aaa');
-insert into t1 values('bbb','qqq');
-insert into t1 values('aaa','aba');
-insert into t1 values(null,'abc');
-insert into t1 values('def',null);
-insert into t1 values(null,null);
-insert into t1 values('ghi','ghi[');
-select HIGH_PRIORITY s1 regexp s2 from t1;
-s1 regexp s2
-0
-0
-0
-1
-1
-1
-1
-1
-1
-1
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-SET collation_connection=utf32_czech_ci;
-SELECT @@collation_connection;
-@@collation_connection
-utf32_czech_ci
-#
-# Bug#57737 Character sets: search fails with like, contraction, index
-#
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS s1 LIMIT 0;
-INSERT INTO t1 VALUES ('c'),('ce'),('cé'),('ch');
-SELECT * FROM t1 WHERE s1 LIKE 'c%';
-s1
-c
-ce
-cé
-ch
-ALTER TABLE t1 ADD KEY s1 (s1);
-SELECT * FROM t1 WHERE s1 LIKE 'c%';
-s1
-c
-ce
-cé
-ch
-ALTER TABLE t1 DROP KEY s1, ADD KEY(s1(1));
-SELECT * FROM t1 WHERE s1 LIKE 'ch';
-s1
-ch
-DROP TABLE t1;
-SELECT @@collation_connection;
-@@collation_connection
-utf32_czech_ci
-#
-# Bug#57737 Character sets: search fails with like, contraction, index
-# Part#2 - ignorable characters
-#
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS s1 LIMIT 0;
-INSERT INTO t1 VALUES ('a\0\0\0\0\0\t'),('a'),('b'),('c'),('d'),('e');
-SELECT HEX(s1) FROM t1 WHERE s1 LIKE 'a%';
-HEX(s1)
-00000061000000000000000000000000000000000000000000000009
-00000061
-ALTER TABLE t1 ADD KEY s1 (s1);
-SELECT HEX(s1) FROM t1 WHERE s1 LIKE 'a%';
-HEX(s1)
-00000061000000000000000000000000000000000000000000000009
-00000061
-DROP TABLE t1;
-#
-# Bug #12319710 : INVALID MEMORY READ AND/OR CRASH IN
-# MY_UCA_CHARCMP WITH UTF32
-#
-SET collation_connection=utf32_unicode_ci;
-CREATE TABLE t1 (a TEXT CHARACTER SET utf32 COLLATE utf32_turkish_ci NOT NULL);
-INSERT INTO t1 VALUES ('a'), ('b');
-CREATE TABLE t2 (b VARBINARY(5) NOT NULL);
-#insert chars outside of BMP
-INSERT INTO t2 VALUEs (0x082837),(0x082837);
-#test for read-out-of-bounds with non-BMP chars as a LIKE pattern
-SELECT * FROM t1,t2 WHERE a LIKE b;
-a b
-#test the original statement
-SELECT 1 FROM t1 AS t1_0 NATURAL LEFT OUTER JOIN t2 AS t2_0
-RIGHT JOIN t1 AS t1_1 ON t1_0.a LIKE t2_0.b;
-1
-1
-1
-DROP TABLE t1,t2;
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set collation_connection=utf32_unicode_ci;
-select @@collation_connection;
-@@collation_connection
-utf32_unicode_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(16) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0E33
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E33
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(80) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0E330E330E330E330E33
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E330E330E330E330E33
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(48) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-0E330E330E33
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E330E330E33
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(160) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0E330E330E330E330E3302090209020902090209
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0E330E330E330E330E3302090209020902090209
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-0E33
-select hex(weight_string('A'));
-hex(weight_string('A'))
-0E33
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-0E330E4A0E60
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-0E330E4A
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-0E330E4A0E60
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-0E330E4A0E6002090209
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-0E
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0E33
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-0E330E
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-0E330E4A
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0E330E4A02
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-0E330E4A020902090209020902090209020902090209020902
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-0E
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0E33
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-0E330E
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-0E330E4A
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0E330E4A0E
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-0E330E4A0E6002090209020902090209020902090209020902
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-0E
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0E33
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-0E330E
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-0E330E4A
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0E330E4A0E
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-0E330E4A0E6002090209020902090209020902090209020902
-select @@collation_connection;
-@@collation_connection
-utf32_unicode_ci
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-0E230E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-0E230E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-0E230E230E2302090209
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-0E230E
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-0E230E2302
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-0E230E23020902090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-0E230E
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-0E230E230E
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-0E230E230E2302090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-0E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-0E230E
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-0E230E23
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-0E230E230E
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-0E230E230E2302090209020902090209020902090209020902
-select hex(weight_string(_utf32 0x10000 collate utf32_unicode_ci));
-hex(weight_string(_utf32 0x10000 collate utf32_unicode_ci))
-FFFD
-select hex(weight_string(_utf32 0x10001 collate utf32_unicode_ci));
-hex(weight_string(_utf32 0x10001 collate utf32_unicode_ci))
-FFFD
-select @@collation_connection;
-@@collation_connection
-utf32_unicode_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-0E33
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-0E33
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-0E330E4A0E60
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-0E330E4A
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-0E330E4A0E60
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-0E330E4A0E6002090209
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-09020902600E4A0E330E
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-F1CCF1B5F19FFDF6FDF6
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-F6FDF6FD9FF1B5F1CCF1
-set @@collation_connection=utf32_czech_ci;
-select @@collation_connection;
-@@collation_connection
-utf32_czech_ci
-select collation(cast(_latin1 0xDF as char));
-collation(cast(_latin1 0xDF as char))
-utf32_czech_ci
-select hex(weight_string('s'));
-hex(weight_string('s'))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF as char)));
-hex(weight_string(cast(_latin1 0xDF as char)))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF as char) as char(1)));
-hex(weight_string(cast(_latin1 0xDF as char) as char(1)))
-0FEA
-select hex(weight_string('c'));
-hex(weight_string('c'))
-0E60
-select hex(weight_string('h'));
-hex(weight_string('h'))
-0EE1
-select hex(weight_string('ch'));
-hex(weight_string('ch'))
-0EE2
-select hex(weight_string('i'));
-hex(weight_string('i'))
-0EFB
-select hex(weight_string(cast(_latin1 0x6368DF as char)));
-hex(weight_string(cast(_latin1 0x6368DF as char)))
-0EE20FEA0FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(1)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(1)))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(2)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(2)))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(3)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(3)))
-0EE20FEA0FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char) as char(4)));
-hex(weight_string(cast(_latin1 0x6368DF as char) as char(4)))
-0EE20FEA0FEA0209
-select hex(weight_string(cast(_latin1 0xDF6368 as char)));
-hex(weight_string(cast(_latin1 0xDF6368 as char)))
-0FEA0FEA0EE2
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(1)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(1)))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(2)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(2)))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(3)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(3)))
-0FEA0FEA0EE2
-select hex(weight_string(cast(_latin1 0xDF6368 as char) as char(4)));
-hex(weight_string(cast(_latin1 0xDF6368 as char) as char(4)))
-0FEA0FEA0EE20209
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 2, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 2, 0xC0))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 2, 0xC0))
-0EE20F
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 2, 0xC0))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 2, 0xC0))
-0EE20FEA020902090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 3, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 3, 0xC0))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 3, 0xC0))
-0EE20F
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 3, 0xC0))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 3, 0xC0))
-0EE20FEA0FEA02090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0x6368DF as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 1, 4, 0xC0))
-0E
-select hex(weight_string(cast(_latin1 0x6368DF as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 2, 4, 0xC0))
-0EE2
-select hex(weight_string(cast(_latin1 0x6368DF as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 3, 4, 0xC0))
-0EE20F
-select hex(weight_string(cast(_latin1 0x6368DF as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char), 4, 4, 0xC0))
-0EE20FEA
-select hex(weight_string(cast(_latin1 0x6368DF as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x6368DF as char),25, 4, 0xC0))
-0EE20FEA0FEA02090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 2,0xC0))
-0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 2,0xC0))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 2,0xC0))
-0FEA0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 2,0xC0))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 2,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 2,0xC0))
-0FEA0FEA020902090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 3,0xC0))
-0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 3,0xC0))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 3,0xC0))
-0FEA0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 3,0xC0))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 3,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 3,0xC0))
-0FEA0FEA0EE202090209020902090209020902090209020902
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 1, 4,0xC0))
-0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 2, 4,0xC0))
-0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 3, 4,0xC0))
-0FEA0F
-select hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char), 4, 4,0xC0))
-0FEA0FEA
-select hex(weight_string(cast(_latin1 0xDF6368 as char),25, 4,0xC0));
-hex(weight_string(cast(_latin1 0xDF6368 as char),25, 4,0xC0))
-0FEA0FEA0EE202090209020902090209020902090209020902
-SET NAMES utf8;
-SET collation_connection=utf32_german2_ci;
-"BEGIN ctype_german.inc"
-drop table if exists t1;
-create table t1 as select repeat(' ', 64) as s1;
-select collation(s1) from t1;
-collation(s1)
-utf32_german2_ci
-delete from t1;
-INSERT INTO t1 VALUES ('ud'),('uf');
-INSERT INTO t1 VALUES ('od'),('of');
-INSERT INTO t1 VALUES ('e');
-INSERT INTO t1 VALUES ('ad'),('af');
-insert into t1 values ('a'),('ae'),(_latin1 0xE4);
-insert into t1 values ('o'),('oe'),(_latin1 0xF6);
-insert into t1 values ('s'),('ss'),(_latin1 0xDF);
-insert into t1 values ('u'),('ue'),(_latin1 0xFC);
-INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
-INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
-select s1, hex(s1) from t1 order by s1, binary s1;
-s1 hex(s1)
-a 00000061
-ad 0000006100000064
-ae 0000006100000065
-Æ 000000C6
-ä 000000E4
-æ 000000E6
-af 0000006100000066
-e 00000065
-o 0000006F
-od 0000006F00000064
-oe 0000006F00000065
-ö 000000F6
-Å’ 00000152
-Å“ 00000153
-of 0000006F00000066
-s 00000073
-ss 0000007300000073
-ß 000000DF
-u 00000075
-ud 0000007500000064
-ue 0000007500000065
-ü 000000FC
-uf 0000007500000066
-select group_concat(s1 order by binary s1) from t1 group by s1;
-group_concat(s1 order by binary s1)
-a
-ad
-ae,Æ,ä,æ
-af
-e
-o
-od
-oe,ö,Œ,œ
-of
-s
-ss,ß
-u
-ud
-ue,ü
-uf
-SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
-s1 hex(s1) hex(weight_string(s1))
-a 00000061 0E33
-ad 0000006100000064 0E330E6D
-ae 0000006100000065 0E330E8B
-Æ 000000C6 0E330E8B
-ä 000000E4 0E330E8B
-æ 000000E6 0E330E8B
-af 0000006100000066 0E330EB9
-e 00000065 0E8B
-o 0000006F 0F82
-od 0000006F00000064 0F820E6D
-oe 0000006F00000065 0F820E8B
-ö 000000F6 0F820E8B
-Å’ 00000152 0F820E8B
-Å“ 00000153 0F820E8B
-of 0000006F00000066 0F820EB9
-s 00000073 0FEA
-ss 0000007300000073 0FEA0FEA
-ß 000000DF 0FEA0FEA
-u 00000075 101F
-ud 0000007500000064 101F0E6D
-ue 0000007500000065 101F0E8B
-ü 000000FC 101F0E8B
-uf 0000007500000066 101F0EB9
-SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
-s1 hex(s1)
-ae 0000006100000065
-Æ 000000C6
-ä 000000E4
-æ 000000E6
-drop table t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf32 COLLATE utf32_german2_ci DEFAULT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('s',0),(_latin1 0xDF,1);
-SELECT * FROM t1 ORDER BY a, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY a DESC, b;
-a b
-ß 1
-s 0
-SELECT * FROM t1 ORDER BY CONCAT(a), b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
-a b
-ß 1
-s 0
-DROP TABLE t1;
-"END ctype_german.inc"
-#
-# WL#2673 Unicode Collation Algorithm new version
-#
-SET NAMES utf8mb4;
-SET collation_connection=utf32_unicode_520_ci;
-CREATE TABLE t1 AS SELECT repeat('a', 10) as c LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` varchar(10) CHARACTER SET utf32 COLLATE utf32_unicode_520_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_utf32 0x0180),(_utf32 0x023A);
-INSERT INTO t1 VALUES (_utf32 0x023B),(_utf32 0x023C);
-INSERT INTO t1 VALUES (_utf32 0x023D),(_utf32 0x023E);
-INSERT INTO t1 VALUES (_utf32 0x0241),(_utf32 0x0242);
-INSERT INTO t1 VALUES (_utf32 0x0243),(_utf32 0x0244);
-INSERT INTO t1 VALUES (_utf32 0x0245),(_utf32 0x0246);
-INSERT INTO t1 VALUES (_utf32 0x0247),(_utf32 0x0248);
-INSERT INTO t1 VALUES (_utf32 0x0249),(_utf32 0x024A);
-INSERT INTO t1 VALUES (_utf32 0x024B),(_utf32 0x024C);
-INSERT INTO t1 VALUES (_utf32 0x024D),(_utf32 0x024E);
-INSERT INTO t1 VALUES (_utf32 0x024F),(_utf32 0x026B);
-INSERT INTO t1 VALUES (_utf32 0x027D),(_utf32 0x0289);
-INSERT INTO t1 VALUES (_utf32 0x028C);
-INSERT INTO t1 VALUES (_utf32 0x037B), (_utf32 0x037C);
-INSERT INTO t1 VALUES (_utf32 0x037D), (_utf32 0x03FD);
-INSERT INTO t1 VALUES (_utf32 0x03FE), (_utf32 0x03FF);
-INSERT INTO t1 VALUES (_utf32 0x04C0), (_utf32 0x04CF);
-INSERT INTO t1 VALUES (_utf32 0x04F6), (_utf32 0x04F7);
-INSERT INTO t1 VALUES (_utf32 0x04FA), (_utf32 0x04FB);
-INSERT INTO t1 VALUES (_utf32 0x04FC), (_utf32 0x04FD);
-INSERT INTO t1 VALUES (_utf32 0x04FE), (_utf32 0x04FF);
-INSERT INTO t1 VALUES (_utf32 0x0510), (_utf32 0x0511);
-INSERT INTO t1 VALUES (_utf32 0x0512), (_utf32 0x0513);
-INSERT INTO t1 VALUES (_utf32 0x10A0), (_utf32 0x10A1);
-INSERT INTO t1 VALUES (_utf32 0x10A2), (_utf32 0x10A3);
-INSERT INTO t1 VALUES (_utf32 0x10A4), (_utf32 0x10A5);
-INSERT INTO t1 VALUES (_utf32 0x10A6), (_utf32 0x10A7);
-INSERT INTO t1 VALUES (_utf32 0x2D00), (_utf32 0x2D01);
-INSERT INTO t1 VALUES (_utf32 0x2D02), (_utf32 0x2D03);
-INSERT INTO t1 VALUES (_utf32 0x2D04), (_utf32 0x2D05);
-INSERT INTO t1 VALUES (_utf32 0x2D06), (_utf32 0x2D07);
-INSERT INTO t1 VALUES (_utf32 0x1D7D);
-INSERT INTO t1 VALUES (_utf32 0x2132),(_utf32 0x214E);
-INSERT INTO t1 VALUES (_utf32 0x2183),(_utf32 0x2184);
-INSERT INTO t1 VALUES (_utf32 0x2C80), (_utf32 0x2C81);
-INSERT INTO t1 VALUES (_utf32 0x2C82), (_utf32 0x2C83);
-INSERT INTO t1 VALUES (_utf32 0x2C84), (_utf32 0x2C85);
-INSERT INTO t1 VALUES (_utf32 0x2C86), (_utf32 0x2C87);
-INSERT INTO t1 VALUES (_utf32 0x2C88), (_utf32 0x2C89);
-INSERT INTO t1 VALUES (_utf32 0x2C8A), (_utf32 0x2C8B);
-INSERT INTO t1 VALUES (_utf32 0x2C8C), (_utf32 0x2C8D);
-INSERT INTO t1 VALUES (_utf32 0x2C8E), (_utf32 0x2C8F);
-INSERT INTO t1 VALUES (_utf32 0x2C60), (_utf32 0x2C61);
-INSERT INTO t1 VALUES (_utf32 0x2C62), (_utf32 0x2C63);
-INSERT INTO t1 VALUES (_utf32 0x2C64), (_utf32 0x2C65);
-INSERT INTO t1 VALUES (_utf32 0x2C66), (_utf32 0x2C67);
-INSERT INTO t1 VALUES (_utf32 0x2C68), (_utf32 0x2C69);
-INSERT INTO t1 VALUES (_utf32 0x2C6A), (_utf32 0x2C6B);
-INSERT INTO t1 VALUES (_utf32 0x2C6C), (_utf32 0x2C75);
-INSERT INTO t1 VALUES (_utf32 0x2C76);
-INSERT INTO t1 VALUES (_utf32 0x2C00), (_utf32 0x2C01);
-INSERT INTO t1 VALUES (_utf32 0x2C02), (_utf32 0x2C03);
-INSERT INTO t1 VALUES (_utf32 0x2C04), (_utf32 0x2C05);
-INSERT INTO t1 VALUES (_utf32 0x2C06), (_utf32 0x2C07);
-INSERT INTO t1 VALUES (_utf32 0x2C30), (_utf32 0x2C31);
-INSERT INTO t1 VALUES (_utf32 0x2C32), (_utf32 0x2C33);
-INSERT INTO t1 VALUES (_utf32 0x2C34), (_utf32 0x2C35);
-INSERT INTO t1 VALUES (_utf32 0x2C36), (_utf32 0x2C37);
-INSERT INTO t1 VALUES (_utf32 0x10400), (_utf32 0x10401);
-INSERT INTO t1 VALUES (_utf32 0x10402), (_utf32 0x10403);
-INSERT INTO t1 VALUES (_utf32 0x10404), (_utf32 0x10405);
-INSERT INTO t1 VALUES (_utf32 0x10406), (_utf32 0x10407);
-INSERT INTO t1 VALUES (_utf32 0x10428), (_utf32 0x10429);
-INSERT INTO t1 VALUES (_utf32 0x1042A), (_utf32 0x1042B);
-INSERT INTO t1 VALUES (_utf32 0x1042C), (_utf32 0x1042D);
-INSERT INTO t1 VALUES (_utf32 0x1042E), (_utf32 0x1042F);
-INSERT INTO t1 VALUES (_utf32 0x0370);
-INSERT INTO t1 VALUES (_utf32 0x0371);
-INSERT INTO t1 VALUES (_utf32 0x0372);
-INSERT INTO t1 VALUES (_utf32 0x0373);
-INSERT INTO t1 VALUES (_utf32 0x0514);
-INSERT INTO t1 VALUES (_utf32 0x0515);
-INSERT INTO t1 VALUES (_utf32 0x0516);
-INSERT INTO t1 VALUES (_utf32 0x0517);
-INSERT INTO t1 VALUES (_utf32 0xA640);
-INSERT INTO t1 VALUES (_utf32 0xA641);
-INSERT INTO t1 VALUES (_utf32 0xA642);
-INSERT INTO t1 VALUES (_utf32 0xA643);
-INSERT INTO t1 VALUES (_utf32 0xA722);
-INSERT INTO t1 VALUES (_utf32 0xA723);
-INSERT INTO t1 VALUES (_utf32 0xA724);
-INSERT INTO t1 VALUES (_utf32 0xA725);
-INSERT INTO t1 VALUES (_utf32 0xA726);
-INSERT INTO t1 VALUES (_utf32 0xA727);
-INSERT INTO t1 VALUES (_utf32 0xA728);
-INSERT INTO t1 VALUES (_utf32 0xA729);
-INSERT INTO t1 VALUES (_utf32 0xA72A);
-INSERT INTO t1 VALUES (_utf32 0xA72B);
-INSERT INTO t1 VALUES (_utf32 0x2CEB);
-INSERT INTO t1 VALUES (_utf32 0x2CEC);
-INSERT INTO t1 VALUES (_utf32 0x2CED);
-INSERT INTO t1 VALUES (_utf32 0x2CEE);
-SELECT hex(c), hex(lower(c)), hex(upper(c)), hex(weight_string(c)), c
-FROM t1 ORDER BY c, BINARY c;
-hex(c) hex(lower(c)) hex(upper(c)) hex(weight_string(c)) c
-0000023A 00002C65 0000023A 1214 Ⱥ
-00002C65 00002C65 0000023A 1214 â±¥
-00000180 00000180 00000243 122D ƀ
-00000243 00000180 00000243 122D Ƀ
-0000023B 0000023C 0000023B 1242 È»
-0000023C 0000023C 0000023B 1242 ȼ
-00002183 00002184 00002183 124E Ↄ
-00002184 00002184 00002183 124E ↄ
-00000246 00000247 00000246 1270 Ɇ
-00000247 00000247 00000246 1270 ɇ
-00002132 0000214E 00002132 12AE Ⅎ
-0000214E 0000214E 00002132 12AE â…Ž
-00002C67 00002C68 00002C67 12E3 Ⱨ
-00002C68 00002C68 00002C67 12E3 ⱨ
-00002C75 00002C76 00002C75 12E4 â±µ
-00002C76 00002C76 00002C75 12E4 ⱶ
-0000A726 0000A727 0000A726 12E5 Ꜧ
-0000A727 0000A727 0000A726 12E5 ꜧ
-00000248 00000249 00000248 130E Ɉ
-00000249 00000249 00000248 130E ɉ
-00002C69 00002C6A 00002C69 1328 Ⱪ
-00002C6A 00002C6A 00002C69 1328 ⱪ
-0000023D 0000019A 0000023D 133B Ƚ
-00002C60 00002C61 00002C60 133F â± 
-00002C61 00002C61 00002C60 133F ⱡ
-0000026B 0000026B 00002C62 1340 É«
-00002C62 0000026B 00002C62 1340 â±¢
-00001D7D 00001D7D 00002C63 13B8 áµ½
-00002C63 00001D7D 00002C63 13B8 â±£
-0000024A 0000024B 0000024A 13D2 ÉŠ
-0000024B 0000024B 0000024A 13D2 É‹
-0000024C 0000024D 0000024C 13E4 Ɍ
-0000024D 0000024D 0000024C 13E4 É
-0000027D 0000027D 00002C64 13FC ɽ
-00002C64 0000027D 00002C64 13FC Ɽ
-0000A728 0000A729 0000A728 143314AD Ꜩ
-0000A729 0000A729 0000A728 143314AD ꜩ
-0000023E 00002C66 0000023E 143C Ⱦ
-00002C66 00002C66 0000023E 143C ⱦ
-00000244 00000289 00000244 145B É„
-00000289 00000289 00000244 145B ʉ
-00000245 0000028C 00000245 1489 É…
-0000028C 0000028C 00000245 1489 ʌ
-0000024E 0000024F 0000024E 14A4 ÉŽ
-0000024F 0000024F 0000024E 14A4 É
-00002C6B 00002C6C 00002C6B 14C8 Ⱬ
-00002C6C 00002C6C 00002C6B 14C8 ⱬ
-0000A72A 0000A72B 0000A72A 14F3 Ꜫ
-0000A72B 0000A72B 0000A72A 14F3 ꜫ
-00000241 00000242 00000241 1506 É
-00000242 00000242 00000241 1506 É‚
-0000A722 0000A723 0000A722 150E Ꜣ
-0000A723 0000A723 0000A722 150E ꜣ
-0000A724 0000A725 0000A724 1518 Ꜥ
-0000A725 0000A725 0000A724 1518 ꜥ
-00000370 00000371 00000370 154F Í°
-00000371 00000371 00000370 154F ͱ
-0000037C 0000037C 000003FE 1564 ͼ
-000003FE 0000037C 000003FE 1564 Ͼ
-0000037B 0000037B 000003FD 1565 Í»
-000003FD 0000037B 000003FD 1565 Ͻ
-0000037D 0000037D 000003FF 1566 ͽ
-000003FF 0000037D 000003FF 1566 Ï¿
-00000372 00000373 00000372 156F Ͳ
-00000373 00000373 00000372 156F ͳ
-00002C80 00002C81 00002C80 1571 â²€
-00002C81 00002C81 00002C80 1571 â²
-00002C82 00002C83 00002C82 1572 Ⲃ
-00002C83 00002C83 00002C82 1572 ⲃ
-00002C84 00002C85 00002C84 1573 Ⲅ
-00002C85 00002C85 00002C84 1573 â²…
-00002C86 00002C87 00002C86 1574 Ⲇ
-00002C87 00002C87 00002C86 1574 ⲇ
-00002C88 00002C89 00002C88 1575 Ⲉ
-00002C89 00002C89 00002C88 1575 ⲉ
-00002C8A 00002C8B 00002C8A 1577 Ⲋ
-00002C8B 00002C8B 00002C8A 1577 ⲋ
-00002C8C 00002C8D 00002C8C 1578 Ⲍ
-00002C8D 00002C8D 00002C8C 1578 â²
-00002C8E 00002C8F 00002C8E 1579 Ⲏ
-00002C8F 00002C8F 00002C8E 1579 â²
-00002CEB 00002CEC 00002CEB 1591 Ⳬ
-00002CEC 00002CEC 00002CEB 1591 ⳬ
-00002CED 00002CEE 00002CED 15A0 â³­
-00002CEE 00002CEE 00002CED 15A0 â³®
-000004FA 000004FB 000004FA 15D4 Óº
-000004FB 000004FB 000004FA 15D4 Ó»
-000004F6 000004F7 000004F6 15DC Ó¶
-000004F7 000004F7 000004F6 15DC Ó·
-0000A640 0000A641 0000A640 1611 Ꙁ
-0000A641 0000A641 0000A640 1611 ê™
-00000510 00000511 00000510 1613 Ô
-00000511 00000511 00000510 1613 Ô‘
-0000A642 0000A643 0000A642 1618 Ꙃ
-0000A643 0000A643 0000A642 1618 ꙃ
-00000512 00000513 00000512 1666 Ô’
-00000513 00000513 00000512 1666 Ô“
-00000514 00000515 00000514 166E Ô”
-00000515 00000515 00000514 166E Ô•
-00000516 00000517 00000516 16B7 Ô–
-00000517 00000517 00000516 16B7 Ô—
-000004FC 000004FD 000004FC 16F9 Ó¼
-000004FD 000004FD 000004FC 16F9 Ó½
-000004FE 000004FF 000004FE 16FD Ó¾
-000004FF 000004FF 000004FE 16FD Ó¿
-000004C0 000004CF 000004C0 17B1 Ó€
-000004CF 000004CF 000004C0 17B1 Ó
-00002C00 00002C30 00002C00 17B5 â°€
-00002C30 00002C30 00002C00 17B5 â°°
-00002C01 00002C31 00002C01 17B6 â°
-00002C31 00002C31 00002C01 17B6 â°±
-00002C02 00002C32 00002C02 17B7 â°‚
-00002C32 00002C32 00002C02 17B7 â°²
-00002C03 00002C33 00002C03 17B8 â°ƒ
-00002C33 00002C33 00002C03 17B8 â°³
-00002C04 00002C34 00002C04 17B9 â°„
-00002C34 00002C34 00002C04 17B9 â°´
-00002C05 00002C35 00002C05 17BA â°…
-00002C35 00002C35 00002C05 17BA â°µ
-00002C06 00002C36 00002C06 17BB â°†
-00002C36 00002C36 00002C06 17BB â°¶
-00002C07 00002C37 00002C07 17BC â°‡
-00002C37 00002C37 00002C07 17BC â°·
-000010A0 00002D00 000010A0 17E5 á‚ 
-00002D00 00002D00 000010A0 17E5 â´€
-000010A1 00002D01 000010A1 17E7 á‚¡
-00002D01 00002D01 000010A1 17E7 â´
-000010A2 00002D02 000010A2 17E9 á‚¢
-00002D02 00002D02 000010A2 17E9 â´‚
-000010A3 00002D03 000010A3 17EB á‚£
-00002D03 00002D03 000010A3 17EB â´ƒ
-000010A4 00002D04 000010A4 17ED Ⴄ
-00002D04 00002D04 000010A4 17ED â´„
-000010A5 00002D05 000010A5 17EF á‚¥
-00002D05 00002D05 000010A5 17EF â´…
-000010A6 00002D06 000010A6 17F1 Ⴆ
-00002D06 00002D06 000010A6 17F1 â´†
-000010A7 00002D07 000010A7 17F5 Ⴇ
-00002D07 00002D07 000010A7 17F5 â´‡
-00010400 00010428 00010400 30D2 ð€
-00010428 00010428 00010400 30D2 ð¨
-00010401 00010429 00010401 30D3 ð
-00010429 00010429 00010401 30D3 ð©
-00010402 0001042A 00010402 30D4 ð‚
-0001042A 0001042A 00010402 30D4 ðª
-00010403 0001042B 00010403 30D5 ðƒ
-0001042B 0001042B 00010403 30D5 ð«
-00010404 0001042C 00010404 30D6 ð„
-0001042C 0001042C 00010404 30D6 ð¬
-00010405 0001042D 00010405 30D7 ð…
-0001042D 0001042D 00010405 30D7 ð­
-00010406 0001042E 00010406 30D8 ð†
-0001042E 0001042E 00010406 30D8 ð®
-00010407 0001042F 00010407 30D9 ð‡
-0001042F 0001042F 00010407 30D9 ð¯
-INSERT INTO t1 VALUES ('a');
-INSERT INTO t1 VALUES (concat(_utf32 0x61, _utf32 0xFFFF));
-INSERT INTO t1 VALUES (concat(_utf32 0x61, _utf32 0x10FFFF));
-INSERT INTO t1 VALUES (concat(_utf32 0x61, _utf32 0x10400));
-SELECT hex(c), hex(weight_string(c)) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
-hex(c) hex(weight_string(c))
-00000061 120F
-0000006100010400 120F30D2
-000000610000FFFF 120FFBC1FFFF
-000000610010FFFF 120FFBE1FFFF
-SELECT hex(c), hex(weight_string(c)), c FROM t1 WHERE c LIKE _utf32 0x10400 ORDER BY c, BINARY c;
-hex(c) hex(weight_string(c)) c
-00010400 30D2 ð€
-00010428 30D2 ð¨
-SELECT hex(c), hex(weight_string(c)), c FROM t1 WHERE c LIKE _utf32 0x10428 ORDER BY c, BINARY c;
-hex(c) hex(weight_string(c)) c
-00010400 30D2 ð€
-00010428 30D2 ð¨
-ALTER TABLE t1 ADD KEY(c);
-EXPLAIN SELECT hex(c) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c c 43 NULL 2 Using where; Using index
-SELECT hex(c), hex(weight_string(c)) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
-hex(c) hex(weight_string(c))
-00000061 120F
-0000006100010400 120F30D2
-000000610000FFFF 120FFBC1FFFF
-000000610010FFFF 120FFBE1FFFF
-SELECT hex(c), hex(weight_string(c)), c FROM t1 WHERE c LIKE _utf32 0x10400 ORDER BY c, BINARY c;
-hex(c) hex(weight_string(c)) c
-00010400 30D2 ð€
-00010428 30D2 ð¨
-SELECT hex(c), hex(weight_string(c)), c FROM t1 WHERE c LIKE _utf32 0x10428 ORDER BY c, BINARY c;
-hex(c) hex(weight_string(c)) c
-00010400 30D2 ð€
-00010428 30D2 ð¨
-DROP TABLE t1;
-#
-# End of 5.6 tests
-#
-#
-# Start of MariaDB-10.0 tests
-#
-
-#
-# MDEV-4929 Myanmar collation
-#
-SET NAMES utf8;
-SET collation_connection=utf32_myanmar_ci;
-#
-# Start of ctype_myanmar.inc
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf32_myanmar_ci
-CREATE TABLE t1 AS SELECT 100000 AS id, REPEAT(' ', 64) AS s1 LIMIT 0;
-SELECT COLLATION(s1) FROM t1;
-COLLATION(s1)
-DELETE FROM t1;
-ALTER TABLE t1 MODIFY id INT NOT NULL AUTO_INCREMENT PRIMARY KEY;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `s1` varchar(64) CHARACTER SET utf32 COLLATE utf32_myanmar_ci DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (s1) VALUES
-(_ucs2 0x108C),
-(_ucs2 0x1037),
-(_ucs2 0x1038),
-(_ucs2 0x10371038),
-('--- Vowels'),
-(_ucs2 0x102C),
-(_ucs2 0x102B),
-(_ucs2 0x1032),
-(_ucs2 0x1031102C),
-(_ucs2 0x1031102B),
-(_ucs2 0x1031102C103A),
-(_ucs2 0x1031102B103A),
-(_ucs2 0x1034),
-(_ucs2 0x1036),
-(_ucs2 0x102D102F),
-('--- Vowels with finals'),
-(_ucs2 0x10001039),
-(_ucs2 0x1000103A),
-(_ucs2 0x102C10001039),
-(_ucs2 0x102C1000103A),
-(_ucs2 0x102B10001039),
-(_ucs2 0x102B1000103A),
-(_ucs2 0x102D10001039),
-(_ucs2 0x102D1000103A),
-(_ucs2 0x102F10001039),
-(_ucs2 0x102F1000103A),
-(_ucs2 0x103110001039),
-(_ucs2 0x10311000103A),
-(_ucs2 0x1031102C10001039),
-(_ucs2 0x1031102C1000103A),
-(_ucs2 0x1031102B10001039),
-(_ucs2 0x1031102B1000103A),
-(_ucs2 0x102D102F10001039),
-(_ucs2 0x102D102F1000103A),
-(_ucs2 0x10011039),
-(_ucs2 0x1001103A),
-(_ucs2 0x102C10011039),
-(_ucs2 0x102C1001103A),
-(_ucs2 0x102B10011039),
-(_ucs2 0x102B1001103A),
-(_ucs2 0x102D10011039),
-(_ucs2 0x102D1001103A),
-(_ucs2 0x102F10011039),
-(_ucs2 0x102F1001103A),
-(_ucs2 0x103110011039),
-(_ucs2 0x10311001103A),
-(_ucs2 0x1031102C10011039),
-(_ucs2 0x1031102C1001103A),
-(_ucs2 0x1031102B10011039),
-(_ucs2 0x1031102B1001103A),
-(_ucs2 0x102D102F10011039),
-(_ucs2 0x102D102F1001103A),
-(_ucs2 0x10021039),
-(_ucs2 0x1002103A),
-(_ucs2 0x102C10021039),
-(_ucs2 0x102C1002103A),
-(_ucs2 0x102B10021039),
-(_ucs2 0x102B1002103A),
-(_ucs2 0x102D10021039),
-(_ucs2 0x102D1002103A),
-(_ucs2 0x102F10021039),
-(_ucs2 0x102F1002103A),
-(_ucs2 0x103110021039),
-(_ucs2 0x10311002103A),
-(_ucs2 0x1031102C10021039),
-(_ucs2 0x1031102C1002103A),
-(_ucs2 0x1031102B10021039),
-(_ucs2 0x1031102B1002103A),
-(_ucs2 0x102D102F10021039),
-(_ucs2 0x102D102F1002103A),
-(_ucs2 0x10031039),
-(_ucs2 0x1003103A),
-(_ucs2 0x102C10031039),
-(_ucs2 0x102C1003103A),
-(_ucs2 0x102B10031039),
-(_ucs2 0x102B1003103A),
-(_ucs2 0x102D10031039),
-(_ucs2 0x102D1003103A),
-(_ucs2 0x102F10031039),
-(_ucs2 0x102F1003103A),
-(_ucs2 0x103110031039),
-(_ucs2 0x10311003103A),
-(_ucs2 0x1031102C10031039),
-(_ucs2 0x1031102C1003103A),
-(_ucs2 0x1031102B10031039),
-(_ucs2 0x1031102B1003103A),
-(_ucs2 0x102D102F10031039),
-(_ucs2 0x102D102F1003103A),
-(_ucs2 0x1004103A1039),
-(_ucs2 0x1004103A),
-(_ucs2 0x102C1004103A1039),
-(_ucs2 0x102C1004103A),
-(_ucs2 0x102B1004103A1039),
-(_ucs2 0x102B1004103A),
-(_ucs2 0x102D1004103A1039),
-(_ucs2 0x102D1004103A),
-(_ucs2 0x102F1004103A1039),
-(_ucs2 0x102F1004103A),
-(_ucs2 0x10311004103A1039),
-(_ucs2 0x10311004103A),
-(_ucs2 0x1031102C1004103A1039),
-(_ucs2 0x1031102C1004103A),
-(_ucs2 0x1031102B1004103A1039),
-(_ucs2 0x1031102B1004103A),
-(_ucs2 0x102D102F1004103A1039),
-(_ucs2 0x102D102F1004103A),
-(_ucs2 0x10051039),
-(_ucs2 0x1005103A),
-(_ucs2 0x102C10051039),
-(_ucs2 0x102C1005103A),
-(_ucs2 0x102B10051039),
-(_ucs2 0x102B1005103A),
-(_ucs2 0x102D10051039),
-(_ucs2 0x102D1005103A),
-(_ucs2 0x102F10051039),
-(_ucs2 0x102F1005103A),
-(_ucs2 0x103110051039),
-(_ucs2 0x10311005103A),
-(_ucs2 0x1031102C10051039),
-(_ucs2 0x1031102C1005103A),
-(_ucs2 0x1031102B10051039),
-(_ucs2 0x1031102B1005103A),
-(_ucs2 0x102D102F10051039),
-(_ucs2 0x102D102F1005103A),
-(_ucs2 0x10061039),
-(_ucs2 0x1006103A),
-(_ucs2 0x102C10061039),
-(_ucs2 0x102C1006103A),
-(_ucs2 0x102B10061039),
-(_ucs2 0x102B1006103A),
-(_ucs2 0x102D10061039),
-(_ucs2 0x102D1006103A),
-(_ucs2 0x102F10061039),
-(_ucs2 0x102F1006103A),
-(_ucs2 0x103110061039),
-(_ucs2 0x10311006103A),
-(_ucs2 0x1031102C10061039),
-(_ucs2 0x1031102C1006103A),
-(_ucs2 0x1031102B10061039),
-(_ucs2 0x1031102B1006103A),
-(_ucs2 0x102D102F10061039),
-(_ucs2 0x102D102F1006103A),
-(_ucs2 0x10071039),
-(_ucs2 0x1007103A),
-(_ucs2 0x102C10071039),
-(_ucs2 0x102C1007103A),
-(_ucs2 0x102B10071039),
-(_ucs2 0x102B1007103A),
-(_ucs2 0x102D10071039),
-(_ucs2 0x102D1007103A),
-(_ucs2 0x102F10071039),
-(_ucs2 0x102F1007103A),
-(_ucs2 0x103110071039),
-(_ucs2 0x10311007103A),
-(_ucs2 0x1031102C10071039),
-(_ucs2 0x1031102C1007103A),
-(_ucs2 0x1031102B10071039),
-(_ucs2 0x1031102B1007103A),
-(_ucs2 0x102D102F10071039),
-(_ucs2 0x102D102F1007103A),
-(_ucs2 0x1008103A),
-(_ucs2 0x102C1008103A),
-(_ucs2 0x102B1008103A),
-(_ucs2 0x102D1008103A),
-(_ucs2 0x102F1008103A),
-(_ucs2 0x10311008103A),
-(_ucs2 0x1031102C1008103A),
-(_ucs2 0x1031102B1008103A),
-(_ucs2 0x102D102F1008103A),
-(_ucs2 0x10091039),
-(_ucs2 0x1009103A),
-(_ucs2 0x102C10091039),
-(_ucs2 0x102C1009103A),
-(_ucs2 0x102B10091039),
-(_ucs2 0x102B1009103A),
-(_ucs2 0x102D10091039),
-(_ucs2 0x102D1009103A),
-(_ucs2 0x102F10091039),
-(_ucs2 0x102F1009103A),
-(_ucs2 0x103110091039),
-(_ucs2 0x10311009103A),
-(_ucs2 0x1031102C10091039),
-(_ucs2 0x1031102C1009103A),
-(_ucs2 0x1031102B10091039),
-(_ucs2 0x1031102B1009103A),
-(_ucs2 0x102D102F10091039),
-(_ucs2 0x102D102F1009103A),
-(_ucs2 0x100A1039),
-(_ucs2 0x100A103A),
-(_ucs2 0x102C100A1039),
-(_ucs2 0x102C100A103A),
-(_ucs2 0x102B100A1039),
-(_ucs2 0x102B100A103A),
-(_ucs2 0x102D100A1039),
-(_ucs2 0x102D100A103A),
-(_ucs2 0x102F100A1039),
-(_ucs2 0x102F100A103A),
-(_ucs2 0x1031100A1039),
-(_ucs2 0x1031100A103A),
-(_ucs2 0x1031102C100A1039),
-(_ucs2 0x1031102C100A103A),
-(_ucs2 0x1031102B100A1039),
-(_ucs2 0x1031102B100A103A),
-(_ucs2 0x102D102F100A1039),
-(_ucs2 0x102D102F100A103A),
-(_ucs2 0x100B1039),
-(_ucs2 0x100B103A),
-(_ucs2 0x102C100B1039),
-(_ucs2 0x102C100B103A),
-(_ucs2 0x102B100B1039),
-(_ucs2 0x102B100B103A),
-(_ucs2 0x102D100B1039),
-(_ucs2 0x102D100B103A),
-(_ucs2 0x102F100B1039),
-(_ucs2 0x102F100B103A),
-(_ucs2 0x1031100B1039),
-(_ucs2 0x1031100B103A),
-(_ucs2 0x1031102C100B1039),
-(_ucs2 0x1031102C100B103A),
-(_ucs2 0x1031102B100B1039),
-(_ucs2 0x1031102B100B103A),
-(_ucs2 0x102D102F100B1039),
-(_ucs2 0x102D102F100B103A),
-(_ucs2 0x100C1039),
-(_ucs2 0x100C103A),
-(_ucs2 0x102C100C1039),
-(_ucs2 0x102C100C103A),
-(_ucs2 0x102B100C1039),
-(_ucs2 0x102B100C103A),
-(_ucs2 0x102D100C1039),
-(_ucs2 0x102D100C103A),
-(_ucs2 0x102F100C1039),
-(_ucs2 0x102F100C103A),
-(_ucs2 0x1031100C1039),
-(_ucs2 0x1031100C103A),
-(_ucs2 0x1031102C100C1039),
-(_ucs2 0x1031102C100C103A),
-(_ucs2 0x1031102B100C1039),
-(_ucs2 0x1031102B100C103A),
-(_ucs2 0x102D102F100C1039),
-(_ucs2 0x102D102F100C103A),
-(_ucs2 0x100D1039),
-(_ucs2 0x100D103A),
-(_ucs2 0x102C100D1039),
-(_ucs2 0x102C100D103A),
-(_ucs2 0x102B100D1039),
-(_ucs2 0x102B100D103A),
-(_ucs2 0x102D100D1039),
-(_ucs2 0x102D100D103A),
-(_ucs2 0x102F100D1039),
-(_ucs2 0x102F100D103A),
-(_ucs2 0x1031100D1039),
-(_ucs2 0x1031100D103A),
-(_ucs2 0x1031102C100D1039),
-(_ucs2 0x1031102C100D103A),
-(_ucs2 0x1031102B100D1039),
-(_ucs2 0x1031102B100D103A),
-(_ucs2 0x102D102F100D1039),
-(_ucs2 0x102D102F100D103A),
-(_ucs2 0x100E1039),
-(_ucs2 0x100E103A),
-(_ucs2 0x102C100E1039),
-(_ucs2 0x102C100E103A),
-(_ucs2 0x102B100E1039),
-(_ucs2 0x102B100E103A),
-(_ucs2 0x102D100E1039),
-(_ucs2 0x102D100E103A),
-(_ucs2 0x102F100E1039),
-(_ucs2 0x102F100E103A),
-(_ucs2 0x1031100E1039),
-(_ucs2 0x1031100E103A),
-(_ucs2 0x1031102C100E1039),
-(_ucs2 0x1031102C100E103A),
-(_ucs2 0x1031102B100E1039),
-(_ucs2 0x1031102B100E103A),
-(_ucs2 0x102D102F100E1039),
-(_ucs2 0x102D102F100E103A),
-(_ucs2 0x100F1039),
-(_ucs2 0x100F103A),
-(_ucs2 0x102C100F1039),
-(_ucs2 0x102C100F103A),
-(_ucs2 0x102B100F1039),
-(_ucs2 0x102B100F103A),
-(_ucs2 0x102D100F1039),
-(_ucs2 0x102D100F103A),
-(_ucs2 0x102F100F1039),
-(_ucs2 0x102F100F103A),
-(_ucs2 0x1031100F1039),
-(_ucs2 0x1031100F103A),
-(_ucs2 0x1031102C100F1039),
-(_ucs2 0x1031102C100F103A),
-(_ucs2 0x1031102B100F1039),
-(_ucs2 0x1031102B100F103A),
-(_ucs2 0x102D102F100F1039),
-(_ucs2 0x102D102F100F103A),
-(_ucs2 0x10101039),
-(_ucs2 0x1010103A),
-(_ucs2 0x102C10101039),
-(_ucs2 0x102C1010103A),
-(_ucs2 0x102B10101039),
-(_ucs2 0x102B1010103A),
-(_ucs2 0x102D10101039),
-(_ucs2 0x102D1010103A),
-(_ucs2 0x102F10101039),
-(_ucs2 0x102F1010103A),
-(_ucs2 0x103110101039),
-(_ucs2 0x10311010103A),
-(_ucs2 0x1031102C10101039),
-(_ucs2 0x1031102C1010103A),
-(_ucs2 0x1031102B10101039),
-(_ucs2 0x1031102B1010103A),
-(_ucs2 0x102D102F10101039),
-(_ucs2 0x102D102F1010103A),
-(_ucs2 0x10111039),
-(_ucs2 0x1011103A),
-(_ucs2 0x102C10111039),
-(_ucs2 0x102C1011103A),
-(_ucs2 0x102B10111039),
-(_ucs2 0x102B1011103A),
-(_ucs2 0x102D10111039),
-(_ucs2 0x102D1011103A),
-(_ucs2 0x102F10111039),
-(_ucs2 0x102F1011103A),
-(_ucs2 0x103110111039),
-(_ucs2 0x10311011103A),
-(_ucs2 0x1031102C10111039),
-(_ucs2 0x1031102C1011103A),
-(_ucs2 0x1031102B10111039),
-(_ucs2 0x1031102B1011103A),
-(_ucs2 0x102D102F10111039),
-(_ucs2 0x102D102F1011103A),
-(_ucs2 0x10121039),
-(_ucs2 0x1012103A),
-(_ucs2 0x102C10121039),
-(_ucs2 0x102C1012103A),
-(_ucs2 0x102B10121039),
-(_ucs2 0x102B1012103A),
-(_ucs2 0x102D10121039),
-(_ucs2 0x102D1012103A),
-(_ucs2 0x102F10121039),
-(_ucs2 0x102F1012103A),
-(_ucs2 0x103110121039),
-(_ucs2 0x10311012103A),
-(_ucs2 0x1031102C10121039),
-(_ucs2 0x1031102C1012103A),
-(_ucs2 0x1031102B10121039),
-(_ucs2 0x1031102B1012103A),
-(_ucs2 0x102D102F10121039),
-(_ucs2 0x102D102F1012103A),
-(_ucs2 0x10131039),
-(_ucs2 0x1013103A),
-(_ucs2 0x102C10131039),
-(_ucs2 0x102C1013103A),
-(_ucs2 0x102B10131039),
-(_ucs2 0x102B1013103A),
-(_ucs2 0x102D10131039),
-(_ucs2 0x102D1013103A),
-(_ucs2 0x102F10131039),
-(_ucs2 0x102F1013103A),
-(_ucs2 0x103110131039),
-(_ucs2 0x10311013103A),
-(_ucs2 0x1031102C10131039),
-(_ucs2 0x1031102C1013103A),
-(_ucs2 0x1031102B10131039),
-(_ucs2 0x1031102B1013103A),
-(_ucs2 0x102D102F10131039),
-(_ucs2 0x102D102F1013103A),
-(_ucs2 0x10141039),
-(_ucs2 0x1014103A),
-(_ucs2 0x102C10141039),
-(_ucs2 0x102C1014103A),
-(_ucs2 0x102B10141039),
-(_ucs2 0x102B1014103A),
-(_ucs2 0x102D10141039),
-(_ucs2 0x102D1014103A),
-(_ucs2 0x102F10141039),
-(_ucs2 0x102F1014103A),
-(_ucs2 0x103110141039),
-(_ucs2 0x10311014103A),
-(_ucs2 0x1031102C10141039),
-(_ucs2 0x1031102C1014103A),
-(_ucs2 0x1031102B10141039),
-(_ucs2 0x1031102B1014103A),
-(_ucs2 0x102D102F10141039),
-(_ucs2 0x102D102F1014103A),
-(_ucs2 0x10151039),
-(_ucs2 0x1015103A),
-(_ucs2 0x102C10151039),
-(_ucs2 0x102C1015103A),
-(_ucs2 0x102B10151039),
-(_ucs2 0x102B1015103A),
-(_ucs2 0x102D10151039),
-(_ucs2 0x102D1015103A),
-(_ucs2 0x102F10151039),
-(_ucs2 0x102F1015103A),
-(_ucs2 0x103110151039),
-(_ucs2 0x10311015103A),
-(_ucs2 0x1031102C10151039),
-(_ucs2 0x1031102C1015103A),
-(_ucs2 0x1031102B10151039),
-(_ucs2 0x1031102B1015103A),
-(_ucs2 0x102D102F10151039),
-(_ucs2 0x102D102F1015103A),
-(_ucs2 0x10161039),
-(_ucs2 0x1016103A),
-(_ucs2 0x102C10161039),
-(_ucs2 0x102C1016103A),
-(_ucs2 0x102B10161039),
-(_ucs2 0x102B1016103A),
-(_ucs2 0x102D10161039),
-(_ucs2 0x102D1016103A),
-(_ucs2 0x102F10161039),
-(_ucs2 0x102F1016103A),
-(_ucs2 0x103110161039),
-(_ucs2 0x10311016103A),
-(_ucs2 0x1031102C10161039),
-(_ucs2 0x1031102C1016103A),
-(_ucs2 0x1031102B10161039),
-(_ucs2 0x1031102B1016103A),
-(_ucs2 0x102D102F10161039),
-(_ucs2 0x102D102F1016103A),
-(_ucs2 0x10171039),
-(_ucs2 0x1017103A),
-(_ucs2 0x102C10171039),
-(_ucs2 0x102C1017103A),
-(_ucs2 0x102B10171039),
-(_ucs2 0x102B1017103A),
-(_ucs2 0x102D10171039),
-(_ucs2 0x102D1017103A),
-(_ucs2 0x102F10171039),
-(_ucs2 0x102F1017103A),
-(_ucs2 0x103110171039),
-(_ucs2 0x10311017103A),
-(_ucs2 0x1031102C10171039),
-(_ucs2 0x1031102C1017103A),
-(_ucs2 0x1031102B10171039),
-(_ucs2 0x1031102B1017103A),
-(_ucs2 0x102D102F10171039),
-(_ucs2 0x102D102F1017103A),
-(_ucs2 0x10181039),
-(_ucs2 0x1018103A),
-(_ucs2 0x102C10181039),
-(_ucs2 0x102C1018103A),
-(_ucs2 0x102B10181039),
-(_ucs2 0x102B1018103A),
-(_ucs2 0x102D10181039),
-(_ucs2 0x102D1018103A),
-(_ucs2 0x102F10181039),
-(_ucs2 0x102F1018103A),
-(_ucs2 0x103110181039),
-(_ucs2 0x10311018103A),
-(_ucs2 0x1031102C10181039),
-(_ucs2 0x1031102C1018103A),
-(_ucs2 0x1031102B10181039),
-(_ucs2 0x1031102B1018103A),
-(_ucs2 0x102D102F10181039),
-(_ucs2 0x102D102F1018103A),
-(_ucs2 0x10191039),
-(_ucs2 0x1019103A),
-(_ucs2 0x102C10191039),
-(_ucs2 0x102C1019103A),
-(_ucs2 0x102B10191039),
-(_ucs2 0x102B1019103A),
-(_ucs2 0x102D10191039),
-(_ucs2 0x102D1019103A),
-(_ucs2 0x102F10191039),
-(_ucs2 0x102F1019103A),
-(_ucs2 0x103110191039),
-(_ucs2 0x10311019103A),
-(_ucs2 0x1031102C10191039),
-(_ucs2 0x1031102C1019103A),
-(_ucs2 0x1031102B10191039),
-(_ucs2 0x1031102B1019103A),
-(_ucs2 0x102D102F10191039),
-(_ucs2 0x102D102F1019103A),
-(_ucs2 0x101A1039),
-(_ucs2 0x101A103A),
-(_ucs2 0x102C101A1039),
-(_ucs2 0x102C101A103A),
-(_ucs2 0x102B101A1039),
-(_ucs2 0x102B101A103A),
-(_ucs2 0x102D101A1039),
-(_ucs2 0x102D101A103A),
-(_ucs2 0x102F101A1039),
-(_ucs2 0x102F101A103A),
-(_ucs2 0x1031101A1039),
-(_ucs2 0x1031101A103A),
-(_ucs2 0x1031102C101A1039),
-(_ucs2 0x1031102C101A103A),
-(_ucs2 0x1031102B101A1039),
-(_ucs2 0x1031102B101A103A),
-(_ucs2 0x102D102F101A1039),
-(_ucs2 0x102D102F101A103A),
-(_ucs2 0x101B1039),
-(_ucs2 0x101B103A),
-(_ucs2 0x102C101B1039),
-(_ucs2 0x102C101B103A),
-(_ucs2 0x102B101B1039),
-(_ucs2 0x102B101B103A),
-(_ucs2 0x102D101B1039),
-(_ucs2 0x102D101B103A),
-(_ucs2 0x102F101B1039),
-(_ucs2 0x102F101B103A),
-(_ucs2 0x1031101B1039),
-(_ucs2 0x1031101B103A),
-(_ucs2 0x1031102C101B1039),
-(_ucs2 0x1031102C101B103A),
-(_ucs2 0x1031102B101B1039),
-(_ucs2 0x1031102B101B103A),
-(_ucs2 0x102D102F101B1039),
-(_ucs2 0x102D102F101B103A),
-(_ucs2 0x101C1039),
-(_ucs2 0x101C103A),
-(_ucs2 0x102C101C1039),
-(_ucs2 0x102C101C103A),
-(_ucs2 0x102B101C1039),
-(_ucs2 0x102B101C103A),
-(_ucs2 0x102D101C1039),
-(_ucs2 0x102D101C103A),
-(_ucs2 0x102F101C1039),
-(_ucs2 0x102F101C103A),
-(_ucs2 0x1031101C1039),
-(_ucs2 0x1031101C103A),
-(_ucs2 0x1031102C101C1039),
-(_ucs2 0x1031102C101C103A),
-(_ucs2 0x1031102B101C1039),
-(_ucs2 0x1031102B101C103A),
-(_ucs2 0x102D102F101C1039),
-(_ucs2 0x102D102F101C103A),
-(_ucs2 0x101D103A),
-(_ucs2 0x102C101D103A),
-(_ucs2 0x102B101D103A),
-(_ucs2 0x102D101D103A),
-(_ucs2 0x102F101D103A),
-(_ucs2 0x1031101D103A),
-(_ucs2 0x1031102C101D103A),
-(_ucs2 0x1031102B101D103A),
-(_ucs2 0x102D102F101D103A),
-(_ucs2 0x101E1039),
-(_ucs2 0x101E103A),
-(_ucs2 0x102C101E1039),
-(_ucs2 0x102C101E103A),
-(_ucs2 0x102B101E1039),
-(_ucs2 0x102B101E103A),
-(_ucs2 0x102D101E1039),
-(_ucs2 0x102D101E103A),
-(_ucs2 0x102F101E1039),
-(_ucs2 0x102F101E103A),
-(_ucs2 0x1031101E1039),
-(_ucs2 0x1031101E103A),
-(_ucs2 0x1031102C101E1039),
-(_ucs2 0x1031102C101E103A),
-(_ucs2 0x1031102B101E1039),
-(_ucs2 0x1031102B101E103A),
-(_ucs2 0x102D102F101E1039),
-(_ucs2 0x102D102F101E103A),
-(_ucs2 0x101F1039),
-(_ucs2 0x101F103A),
-(_ucs2 0x102C101F1039),
-(_ucs2 0x102C101F103A),
-(_ucs2 0x102B101F1039),
-(_ucs2 0x102B101F103A),
-(_ucs2 0x102D101F1039),
-(_ucs2 0x102D101F103A),
-(_ucs2 0x102F101F1039),
-(_ucs2 0x102F101F103A),
-(_ucs2 0x1031101F1039),
-(_ucs2 0x1031101F103A),
-(_ucs2 0x1031102C101F1039),
-(_ucs2 0x1031102C101F103A),
-(_ucs2 0x1031102B101F1039),
-(_ucs2 0x1031102B101F103A),
-(_ucs2 0x102D102F101F1039),
-(_ucs2 0x102D102F101F103A),
-(_ucs2 0x1020103A),
-(_ucs2 0x102C1020103A),
-(_ucs2 0x102B1020103A),
-(_ucs2 0x102D1020103A),
-(_ucs2 0x102F1020103A),
-(_ucs2 0x10311020103A),
-(_ucs2 0x1031102C1020103A),
-(_ucs2 0x1031102B1020103A),
-(_ucs2 0x102D102F1020103A),
-(_ucs2 0x1021103A),
-(_ucs2 0x102C1021103A),
-(_ucs2 0x102B1021103A),
-(_ucs2 0x102D1021103A),
-(_ucs2 0x102F1021103A),
-(_ucs2 0x10311021103A),
-(_ucs2 0x1031102C1021103A),
-(_ucs2 0x1031102B1021103A),
-(_ucs2 0x102D102F1021103A),
-('--- Medials'),
-(_ucs2 0x105E),
-(_ucs2 0x105F),
-(_ucs2 0x103B),
-(_ucs2 0x103C),
-(_ucs2 0x1060),
-(_ucs2 0x103D),
-(_ucs2 0x1082),
-(_ucs2 0x103E),
-(_ucs2 0x103B103D),
-(_ucs2 0x103C103D),
-(_ucs2 0x103B103E),
-(_ucs2 0x103C103E),
-(_ucs2 0x103D103E),
-(_ucs2 0x103B103D103E),
-(_ucs2 0x103C103D103E),
-('--- Independent vowels'),
-(_ucs2 0x1021102D),
-(_ucs2 0x1023),
-(_ucs2 0x1021102E),
-(_ucs2 0x1024),
-(_ucs2 0x1021102F),
-(_ucs2 0x1025),
-(_ucs2 0x10211030),
-(_ucs2 0x1026),
-(_ucs2 0x10211031),
-(_ucs2 0x1027),
-(_ucs2 0x1028),
-(_ucs2 0x10211031102C),
-(_ucs2 0x1029),
-(_ucs2 0x10211031102C103A),
-(_ucs2 0x102A),
-(_ucs2 0x102D1019103A),
-(_ucs2 0x102D1036),
-(_ucs2 0x102D1019103A1037),
-(_ucs2 0x102D10361037),
-(_ucs2 0x102D1019103A1038),
-(_ucs2 0x102D10361038),
-(_ucs2 0x102F1019103A),
-(_ucs2 0x102F1036),
-(_ucs2 0x102F1019103A1037),
-(_ucs2 0x102F10361037),
-(_ucs2 0x102F1019103A1038),
-(_ucs2 0x102F10361038),
-(_ucs2 0x1021102F1036),
-(_ucs2 0x1025102F1036),
-('--- Independent vowels with finals'),
-(_ucs2 0x1021102D10001039),
-(_ucs2 0x102310001039),
-(_ucs2 0x1021102D1000103A),
-(_ucs2 0x10231000103A),
-(_ucs2 0x1021102F10001039),
-(_ucs2 0x102510001039),
-(_ucs2 0x1021102F1000103A),
-(_ucs2 0x10251000103A),
-(_ucs2 0x1021103110001039),
-(_ucs2 0x102710001039),
-(_ucs2 0x102110311000103A),
-(_ucs2 0x10271000103A),
-(_ucs2 0x10211031102C10001039),
-(_ucs2 0x102910001039),
-(_ucs2 0x10211031102C1000103A),
-(_ucs2 0x10291000103A),
-(_ucs2 0x10211031102C10001039),
-(_ucs2 0x10291031102C10001039),
-(_ucs2 0x10211031102C1000103A),
-(_ucs2 0x10291031102C1000103A),
-(_ucs2 0x1021102D10011039),
-(_ucs2 0x102310011039),
-(_ucs2 0x1021102D1001103A),
-(_ucs2 0x10231001103A),
-(_ucs2 0x1021102F10011039),
-(_ucs2 0x102510011039),
-(_ucs2 0x1021102F1001103A),
-(_ucs2 0x10251001103A),
-(_ucs2 0x1021103110011039),
-(_ucs2 0x102710011039),
-(_ucs2 0x102110311001103A),
-(_ucs2 0x10271001103A),
-(_ucs2 0x10211031102C10011039),
-(_ucs2 0x102910011039),
-(_ucs2 0x10211031102C1001103A),
-(_ucs2 0x10291001103A),
-(_ucs2 0x10211031102C10011039),
-(_ucs2 0x10291031102C10011039),
-(_ucs2 0x10211031102C1001103A),
-(_ucs2 0x10291031102C1001103A),
-(_ucs2 0x1021102D10021039),
-(_ucs2 0x102310021039),
-(_ucs2 0x1021102D1002103A),
-(_ucs2 0x10231002103A),
-(_ucs2 0x1021102F10021039),
-(_ucs2 0x102510021039),
-(_ucs2 0x1021102F1002103A),
-(_ucs2 0x10251002103A),
-(_ucs2 0x1021103110021039),
-(_ucs2 0x102710021039),
-(_ucs2 0x102110311002103A),
-(_ucs2 0x10271002103A),
-(_ucs2 0x10211031102C10021039),
-(_ucs2 0x102910021039),
-(_ucs2 0x10211031102C1002103A),
-(_ucs2 0x10291002103A),
-(_ucs2 0x10211031102C10021039),
-(_ucs2 0x10291031102C10021039),
-(_ucs2 0x10211031102C1002103A),
-(_ucs2 0x10291031102C1002103A),
-(_ucs2 0x1021102D10031039),
-(_ucs2 0x102310031039),
-(_ucs2 0x1021102D1003103A),
-(_ucs2 0x10231003103A),
-(_ucs2 0x1021102F10031039),
-(_ucs2 0x102510031039),
-(_ucs2 0x1021102F1003103A),
-(_ucs2 0x10251003103A),
-(_ucs2 0x1021103110031039),
-(_ucs2 0x102710031039),
-(_ucs2 0x102110311003103A),
-(_ucs2 0x10271003103A),
-(_ucs2 0x10211031102C10031039),
-(_ucs2 0x102910031039),
-(_ucs2 0x10211031102C1003103A),
-(_ucs2 0x10291003103A),
-(_ucs2 0x10211031102C10031039),
-(_ucs2 0x10291031102C10031039),
-(_ucs2 0x10211031102C1003103A),
-(_ucs2 0x10291031102C1003103A),
-(_ucs2 0x1021102D10041039),
-(_ucs2 0x102310041039),
-(_ucs2 0x1021102D1004103A),
-(_ucs2 0x10231004103A),
-(_ucs2 0x1021102F10041039),
-(_ucs2 0x102510041039),
-(_ucs2 0x1021102F1004103A),
-(_ucs2 0x10251004103A),
-(_ucs2 0x1021103110041039),
-(_ucs2 0x102710041039),
-(_ucs2 0x102110311004103A),
-(_ucs2 0x10271004103A),
-(_ucs2 0x10211031102C10041039),
-(_ucs2 0x102910041039),
-(_ucs2 0x10211031102C1004103A),
-(_ucs2 0x10291004103A),
-(_ucs2 0x10211031102C10041039),
-(_ucs2 0x10291031102C10041039),
-(_ucs2 0x10211031102C1004103A),
-(_ucs2 0x10291031102C1004103A),
-(_ucs2 0x1021102D10051039),
-(_ucs2 0x102310051039),
-(_ucs2 0x1021102D1005103A),
-(_ucs2 0x10231005103A),
-(_ucs2 0x1021102F10051039),
-(_ucs2 0x102510051039),
-(_ucs2 0x1021102F1005103A),
-(_ucs2 0x10251005103A),
-(_ucs2 0x1021103110051039),
-(_ucs2 0x102710051039),
-(_ucs2 0x102110311005103A),
-(_ucs2 0x10271005103A),
-(_ucs2 0x10211031102C10051039),
-(_ucs2 0x102910051039),
-(_ucs2 0x10211031102C1005103A),
-(_ucs2 0x10291005103A),
-(_ucs2 0x10211031102C10051039),
-(_ucs2 0x10291031102C10051039),
-(_ucs2 0x10211031102C1005103A),
-(_ucs2 0x10291031102C1005103A),
-(_ucs2 0x1021102D10061039),
-(_ucs2 0x102310061039),
-(_ucs2 0x1021102D1006103A),
-(_ucs2 0x10231006103A),
-(_ucs2 0x1021102F10061039),
-(_ucs2 0x102510061039),
-(_ucs2 0x1021102F1006103A),
-(_ucs2 0x10251006103A),
-(_ucs2 0x1021103110061039),
-(_ucs2 0x102710061039),
-(_ucs2 0x102110311006103A),
-(_ucs2 0x10271006103A),
-(_ucs2 0x10211031102C10061039),
-(_ucs2 0x102910061039),
-(_ucs2 0x10211031102C1006103A),
-(_ucs2 0x10291006103A),
-(_ucs2 0x10211031102C10061039),
-(_ucs2 0x10291031102C10061039),
-(_ucs2 0x10211031102C1006103A),
-(_ucs2 0x10291031102C1006103A),
-(_ucs2 0x1021102D10071039),
-(_ucs2 0x102310071039),
-(_ucs2 0x1021102D1007103A),
-(_ucs2 0x10231007103A),
-(_ucs2 0x1021102F10071039),
-(_ucs2 0x102510071039),
-(_ucs2 0x1021102F1007103A),
-(_ucs2 0x10251007103A),
-(_ucs2 0x1021103110071039),
-(_ucs2 0x102710071039),
-(_ucs2 0x102110311007103A),
-(_ucs2 0x10271007103A),
-(_ucs2 0x10211031102C10071039),
-(_ucs2 0x102910071039),
-(_ucs2 0x10211031102C1007103A),
-(_ucs2 0x10291007103A),
-(_ucs2 0x10211031102C10071039),
-(_ucs2 0x10291031102C10071039),
-(_ucs2 0x10211031102C1007103A),
-(_ucs2 0x10291031102C1007103A),
-(_ucs2 0x1021102D10091039),
-(_ucs2 0x102310091039),
-(_ucs2 0x1021102D1009103A),
-(_ucs2 0x10231009103A),
-(_ucs2 0x1021102F10091039),
-(_ucs2 0x102510091039),
-(_ucs2 0x1021102F1009103A),
-(_ucs2 0x10251009103A),
-(_ucs2 0x1021103110091039),
-(_ucs2 0x102710091039),
-(_ucs2 0x102110311009103A),
-(_ucs2 0x10271009103A),
-(_ucs2 0x10211031102C10091039),
-(_ucs2 0x102910091039),
-(_ucs2 0x10211031102C1009103A),
-(_ucs2 0x10291009103A),
-(_ucs2 0x10211031102C10091039),
-(_ucs2 0x10291031102C10091039),
-(_ucs2 0x10211031102C1009103A),
-(_ucs2 0x10291031102C1009103A),
-(_ucs2 0x1021102D100A1039),
-(_ucs2 0x1023100A1039),
-(_ucs2 0x1021102D100A103A),
-(_ucs2 0x1023100A103A),
-(_ucs2 0x1021102F100A1039),
-(_ucs2 0x1025100A1039),
-(_ucs2 0x1021102F100A103A),
-(_ucs2 0x1025100A103A),
-(_ucs2 0x10211031100A1039),
-(_ucs2 0x1027100A1039),
-(_ucs2 0x10211031100A103A),
-(_ucs2 0x1027100A103A),
-(_ucs2 0x10211031102C100A1039),
-(_ucs2 0x1029100A1039),
-(_ucs2 0x10211031102C100A103A),
-(_ucs2 0x1029100A103A),
-(_ucs2 0x10211031102C100A1039),
-(_ucs2 0x10291031102C100A1039),
-(_ucs2 0x10211031102C100A103A),
-(_ucs2 0x10291031102C100A103A),
-(_ucs2 0x1021102D100B1039),
-(_ucs2 0x1023100B1039),
-(_ucs2 0x1021102D100B103A),
-(_ucs2 0x1023100B103A),
-(_ucs2 0x1021102F100B1039),
-(_ucs2 0x1025100B1039),
-(_ucs2 0x1021102F100B103A),
-(_ucs2 0x1025100B103A),
-(_ucs2 0x10211031100B1039),
-(_ucs2 0x1027100B1039),
-(_ucs2 0x10211031100B103A),
-(_ucs2 0x1027100B103A),
-(_ucs2 0x10211031102C100B1039),
-(_ucs2 0x1029100B1039),
-(_ucs2 0x10211031102C100B103A),
-(_ucs2 0x1029100B103A),
-(_ucs2 0x10211031102C100B1039),
-(_ucs2 0x10291031102C100B1039),
-(_ucs2 0x10211031102C100B103A),
-(_ucs2 0x10291031102C100B103A),
-(_ucs2 0x1021102D100C1039),
-(_ucs2 0x1023100C1039),
-(_ucs2 0x1021102D100C103A),
-(_ucs2 0x1023100C103A),
-(_ucs2 0x1021102F100C1039),
-(_ucs2 0x1025100C1039),
-(_ucs2 0x1021102F100C103A),
-(_ucs2 0x1025100C103A),
-(_ucs2 0x10211031100C1039),
-(_ucs2 0x1027100C1039),
-(_ucs2 0x10211031100C103A),
-(_ucs2 0x1027100C103A),
-(_ucs2 0x10211031102C100C1039),
-(_ucs2 0x1029100C1039),
-(_ucs2 0x10211031102C100C103A),
-(_ucs2 0x1029100C103A),
-(_ucs2 0x10211031102C100C1039),
-(_ucs2 0x10291031102C100C1039),
-(_ucs2 0x10211031102C100C103A),
-(_ucs2 0x10291031102C100C103A),
-(_ucs2 0x1021102D100D1039),
-(_ucs2 0x1023100D1039),
-(_ucs2 0x1021102D100D103A),
-(_ucs2 0x1023100D103A),
-(_ucs2 0x1021102F100D1039),
-(_ucs2 0x1025100D1039),
-(_ucs2 0x1021102F100D103A),
-(_ucs2 0x1025100D103A),
-(_ucs2 0x10211031100D1039),
-(_ucs2 0x1027100D1039),
-(_ucs2 0x10211031100D103A),
-(_ucs2 0x1027100D103A),
-(_ucs2 0x10211031102C100D1039),
-(_ucs2 0x1029100D1039),
-(_ucs2 0x10211031102C100D103A),
-(_ucs2 0x1029100D103A),
-(_ucs2 0x10211031102C100D1039),
-(_ucs2 0x10291031102C100D1039),
-(_ucs2 0x10211031102C100D103A),
-(_ucs2 0x10291031102C100D103A),
-(_ucs2 0x1021102D100E1039),
-(_ucs2 0x1023100E1039),
-(_ucs2 0x1021102D100E103A),
-(_ucs2 0x1023100E103A),
-(_ucs2 0x1021102F100E1039),
-(_ucs2 0x1025100E1039),
-(_ucs2 0x1021102F100E103A),
-(_ucs2 0x1025100E103A),
-(_ucs2 0x10211031100E1039),
-(_ucs2 0x1027100E1039),
-(_ucs2 0x10211031100E103A),
-(_ucs2 0x1027100E103A),
-(_ucs2 0x10211031102C100E1039),
-(_ucs2 0x1029100E1039),
-(_ucs2 0x10211031102C100E103A),
-(_ucs2 0x1029100E103A),
-(_ucs2 0x10211031102C100E1039),
-(_ucs2 0x10291031102C100E1039),
-(_ucs2 0x10211031102C100E103A),
-(_ucs2 0x10291031102C100E103A),
-(_ucs2 0x1021102D100F1039),
-(_ucs2 0x1023100F1039),
-(_ucs2 0x1021102D100F103A),
-(_ucs2 0x1023100F103A),
-(_ucs2 0x1021102F100F1039),
-(_ucs2 0x1025100F1039),
-(_ucs2 0x1021102F100F103A),
-(_ucs2 0x1025100F103A),
-(_ucs2 0x10211031100F1039),
-(_ucs2 0x1027100F1039),
-(_ucs2 0x10211031100F103A),
-(_ucs2 0x1027100F103A),
-(_ucs2 0x10211031102C100F1039),
-(_ucs2 0x1029100F1039),
-(_ucs2 0x10211031102C100F103A),
-(_ucs2 0x1029100F103A),
-(_ucs2 0x10211031102C100F1039),
-(_ucs2 0x10291031102C100F1039),
-(_ucs2 0x10211031102C100F103A),
-(_ucs2 0x10291031102C100F103A),
-(_ucs2 0x1021102D10101039),
-(_ucs2 0x102310101039),
-(_ucs2 0x1021102D1010103A),
-(_ucs2 0x10231010103A),
-(_ucs2 0x1021102F10101039),
-(_ucs2 0x102510101039),
-(_ucs2 0x1021102F1010103A),
-(_ucs2 0x10251010103A),
-(_ucs2 0x1021103110101039),
-(_ucs2 0x102710101039),
-(_ucs2 0x102110311010103A),
-(_ucs2 0x10271010103A),
-(_ucs2 0x10211031102C10101039),
-(_ucs2 0x102910101039),
-(_ucs2 0x10211031102C1010103A),
-(_ucs2 0x10291010103A),
-(_ucs2 0x10211031102C10101039),
-(_ucs2 0x10291031102C10101039),
-(_ucs2 0x10211031102C1010103A),
-(_ucs2 0x10291031102C1010103A),
-(_ucs2 0x1021102D10111039),
-(_ucs2 0x102310111039),
-(_ucs2 0x1021102D1011103A),
-(_ucs2 0x10231011103A),
-(_ucs2 0x1021102F10111039),
-(_ucs2 0x102510111039),
-(_ucs2 0x1021102F1011103A),
-(_ucs2 0x10251011103A),
-(_ucs2 0x1021103110111039),
-(_ucs2 0x102710111039),
-(_ucs2 0x102110311011103A),
-(_ucs2 0x10271011103A),
-(_ucs2 0x10211031102C10111039),
-(_ucs2 0x102910111039),
-(_ucs2 0x10211031102C1011103A),
-(_ucs2 0x10291011103A),
-(_ucs2 0x10211031102C10111039),
-(_ucs2 0x10291031102C10111039),
-(_ucs2 0x10211031102C1011103A),
-(_ucs2 0x10291031102C1011103A),
-(_ucs2 0x1021102D10121039),
-(_ucs2 0x102310121039),
-(_ucs2 0x1021102D1012103A),
-(_ucs2 0x10231012103A),
-(_ucs2 0x1021102F10121039),
-(_ucs2 0x102510121039),
-(_ucs2 0x1021102F1012103A),
-(_ucs2 0x10251012103A),
-(_ucs2 0x1021103110121039),
-(_ucs2 0x102710121039),
-(_ucs2 0x102110311012103A),
-(_ucs2 0x10271012103A),
-(_ucs2 0x10211031102C10121039),
-(_ucs2 0x102910121039),
-(_ucs2 0x10211031102C1012103A),
-(_ucs2 0x10291012103A),
-(_ucs2 0x10211031102C10121039),
-(_ucs2 0x10291031102C10121039),
-(_ucs2 0x10211031102C1012103A),
-(_ucs2 0x10291031102C1012103A),
-(_ucs2 0x1021102D10131039),
-(_ucs2 0x102310131039),
-(_ucs2 0x1021102D1013103A),
-(_ucs2 0x10231013103A),
-(_ucs2 0x1021102F10131039),
-(_ucs2 0x102510131039),
-(_ucs2 0x1021102F1013103A),
-(_ucs2 0x10251013103A),
-(_ucs2 0x1021103110131039),
-(_ucs2 0x102710131039),
-(_ucs2 0x102110311013103A),
-(_ucs2 0x10271013103A),
-(_ucs2 0x10211031102C10131039),
-(_ucs2 0x102910131039),
-(_ucs2 0x10211031102C1013103A),
-(_ucs2 0x10291013103A),
-(_ucs2 0x10211031102C10131039),
-(_ucs2 0x10291031102C10131039),
-(_ucs2 0x10211031102C1013103A),
-(_ucs2 0x10291031102C1013103A),
-(_ucs2 0x1021102D10141039),
-(_ucs2 0x102310141039),
-(_ucs2 0x1021102D1014103A),
-(_ucs2 0x10231014103A),
-(_ucs2 0x1021102F10141039),
-(_ucs2 0x102510141039),
-(_ucs2 0x1021102F1014103A),
-(_ucs2 0x10251014103A),
-(_ucs2 0x1021103110141039),
-(_ucs2 0x102710141039),
-(_ucs2 0x102110311014103A),
-(_ucs2 0x10271014103A),
-(_ucs2 0x10211031102C10141039),
-(_ucs2 0x102910141039),
-(_ucs2 0x10211031102C1014103A),
-(_ucs2 0x10291014103A),
-(_ucs2 0x10211031102C10141039),
-(_ucs2 0x10291031102C10141039),
-(_ucs2 0x10211031102C1014103A),
-(_ucs2 0x10291031102C1014103A),
-(_ucs2 0x1021102D10151039),
-(_ucs2 0x102310151039),
-(_ucs2 0x1021102D1015103A),
-(_ucs2 0x10231015103A),
-(_ucs2 0x1021102F10151039),
-(_ucs2 0x102510151039),
-(_ucs2 0x1021102F1015103A),
-(_ucs2 0x10251015103A),
-(_ucs2 0x1021103110151039),
-(_ucs2 0x102710151039),
-(_ucs2 0x102110311015103A),
-(_ucs2 0x10271015103A),
-(_ucs2 0x10211031102C10151039),
-(_ucs2 0x102910151039),
-(_ucs2 0x10211031102C1015103A),
-(_ucs2 0x10291015103A),
-(_ucs2 0x10211031102C10151039),
-(_ucs2 0x10291031102C10151039),
-(_ucs2 0x10211031102C1015103A),
-(_ucs2 0x10291031102C1015103A),
-(_ucs2 0x1021102D10161039),
-(_ucs2 0x102310161039),
-(_ucs2 0x1021102D1016103A),
-(_ucs2 0x10231016103A),
-(_ucs2 0x1021102F10161039),
-(_ucs2 0x102510161039),
-(_ucs2 0x1021102F1016103A),
-(_ucs2 0x10251016103A),
-(_ucs2 0x1021103110161039),
-(_ucs2 0x102710161039),
-(_ucs2 0x102110311016103A),
-(_ucs2 0x10271016103A),
-(_ucs2 0x10211031102C10161039),
-(_ucs2 0x102910161039),
-(_ucs2 0x10211031102C1016103A),
-(_ucs2 0x10291016103A),
-(_ucs2 0x10211031102C10161039),
-(_ucs2 0x10291031102C10161039),
-(_ucs2 0x10211031102C1016103A),
-(_ucs2 0x10291031102C1016103A),
-(_ucs2 0x1021102D10171039),
-(_ucs2 0x102310171039),
-(_ucs2 0x1021102D1017103A),
-(_ucs2 0x10231017103A),
-(_ucs2 0x1021102F10171039),
-(_ucs2 0x102510171039),
-(_ucs2 0x1021102F1017103A),
-(_ucs2 0x10251017103A),
-(_ucs2 0x1021103110171039),
-(_ucs2 0x102710171039),
-(_ucs2 0x102110311017103A),
-(_ucs2 0x10271017103A),
-(_ucs2 0x10211031102C10171039),
-(_ucs2 0x102910171039),
-(_ucs2 0x10211031102C1017103A),
-(_ucs2 0x10291017103A),
-(_ucs2 0x10211031102C10171039),
-(_ucs2 0x10291031102C10171039),
-(_ucs2 0x10211031102C1017103A),
-(_ucs2 0x10291031102C1017103A),
-(_ucs2 0x1021102D10181039),
-(_ucs2 0x102310181039),
-(_ucs2 0x1021102D1018103A),
-(_ucs2 0x10231018103A),
-(_ucs2 0x1021102F10181039),
-(_ucs2 0x102510181039),
-(_ucs2 0x1021102F1018103A),
-(_ucs2 0x10251018103A),
-(_ucs2 0x1021103110181039),
-(_ucs2 0x102710181039),
-(_ucs2 0x102110311018103A),
-(_ucs2 0x10271018103A),
-(_ucs2 0x10211031102C10181039),
-(_ucs2 0x102910181039),
-(_ucs2 0x10211031102C1018103A),
-(_ucs2 0x10291018103A),
-(_ucs2 0x10211031102C10181039),
-(_ucs2 0x10291031102C10181039),
-(_ucs2 0x10211031102C1018103A),
-(_ucs2 0x10291031102C1018103A),
-(_ucs2 0x1021102D10191039),
-(_ucs2 0x102310191039),
-(_ucs2 0x1021102D1019103A),
-(_ucs2 0x10231019103A),
-(_ucs2 0x1021102F10191039),
-(_ucs2 0x102510191039),
-(_ucs2 0x1021102F1019103A),
-(_ucs2 0x10251019103A),
-(_ucs2 0x1021103110191039),
-(_ucs2 0x102710191039),
-(_ucs2 0x102110311019103A),
-(_ucs2 0x10271019103A),
-(_ucs2 0x10211031102C10191039),
-(_ucs2 0x102910191039),
-(_ucs2 0x10211031102C1019103A),
-(_ucs2 0x10291019103A),
-(_ucs2 0x10211031102C10191039),
-(_ucs2 0x10291031102C10191039),
-(_ucs2 0x10211031102C1019103A),
-(_ucs2 0x10291031102C1019103A),
-(_ucs2 0x1021102D101A1039),
-(_ucs2 0x1023101A1039),
-(_ucs2 0x1021102D101A103A),
-(_ucs2 0x1023101A103A),
-(_ucs2 0x1021102F101A1039),
-(_ucs2 0x1025101A1039),
-(_ucs2 0x1021102F101A103A),
-(_ucs2 0x1025101A103A),
-(_ucs2 0x10211031101A1039),
-(_ucs2 0x1027101A1039),
-(_ucs2 0x10211031101A103A),
-(_ucs2 0x1027101A103A),
-(_ucs2 0x10211031102C101A1039),
-(_ucs2 0x1029101A1039),
-(_ucs2 0x10211031102C101A103A),
-(_ucs2 0x1029101A103A),
-(_ucs2 0x10211031102C101A1039),
-(_ucs2 0x10291031102C101A1039),
-(_ucs2 0x10211031102C101A103A),
-(_ucs2 0x10291031102C101A103A),
-(_ucs2 0x1021102D101B1039),
-(_ucs2 0x1023101B1039),
-(_ucs2 0x1021102D101B103A),
-(_ucs2 0x1023101B103A),
-(_ucs2 0x1021102F101B1039),
-(_ucs2 0x1025101B1039),
-(_ucs2 0x1021102F101B103A),
-(_ucs2 0x1025101B103A),
-(_ucs2 0x10211031101B1039),
-(_ucs2 0x1027101B1039),
-(_ucs2 0x10211031101B103A),
-(_ucs2 0x1027101B103A),
-(_ucs2 0x10211031102C101B1039),
-(_ucs2 0x1029101B1039),
-(_ucs2 0x10211031102C101B103A),
-(_ucs2 0x1029101B103A),
-(_ucs2 0x10211031102C101B1039),
-(_ucs2 0x10291031102C101B1039),
-(_ucs2 0x10211031102C101B103A),
-(_ucs2 0x10291031102C101B103A),
-(_ucs2 0x1021102D101C1039),
-(_ucs2 0x1023101C1039),
-(_ucs2 0x1021102D101C103A),
-(_ucs2 0x1023101C103A),
-(_ucs2 0x1021102F101C1039),
-(_ucs2 0x1025101C1039),
-(_ucs2 0x1021102F101C103A),
-(_ucs2 0x1025101C103A),
-(_ucs2 0x10211031101C1039),
-(_ucs2 0x1027101C1039),
-(_ucs2 0x10211031101C103A),
-(_ucs2 0x1027101C103A),
-(_ucs2 0x10211031102C101C1039),
-(_ucs2 0x1029101C1039),
-(_ucs2 0x10211031102C101C103A),
-(_ucs2 0x1029101C103A),
-(_ucs2 0x10211031102C101C1039),
-(_ucs2 0x10291031102C101C1039),
-(_ucs2 0x10211031102C101C103A),
-(_ucs2 0x10291031102C101C103A),
-(_ucs2 0x1021102D101E1039),
-(_ucs2 0x1023101E1039),
-(_ucs2 0x1021102D101E103A),
-(_ucs2 0x1023101E103A),
-(_ucs2 0x1021102F101E1039),
-(_ucs2 0x1025101E1039),
-(_ucs2 0x1021102F101E103A),
-(_ucs2 0x1025101E103A),
-(_ucs2 0x10211031101E1039),
-(_ucs2 0x1027101E1039),
-(_ucs2 0x10211031101E103A),
-(_ucs2 0x1027101E103A),
-(_ucs2 0x10211031102C101E1039),
-(_ucs2 0x1029101E1039),
-(_ucs2 0x10211031102C101E103A),
-(_ucs2 0x1029101E103A),
-(_ucs2 0x10211031102C101E1039),
-(_ucs2 0x10291031102C101E1039),
-(_ucs2 0x10211031102C101E103A),
-(_ucs2 0x10291031102C101E103A),
-(_ucs2 0x1021102D101F1039),
-(_ucs2 0x1023101F1039),
-(_ucs2 0x1021102D101F103A),
-(_ucs2 0x1023101F103A),
-(_ucs2 0x1021102F101F1039),
-(_ucs2 0x1025101F1039),
-(_ucs2 0x1021102F101F103A),
-(_ucs2 0x1025101F103A),
-(_ucs2 0x10211031101F1039),
-(_ucs2 0x1027101F1039),
-(_ucs2 0x10211031101F103A),
-(_ucs2 0x1027101F103A),
-(_ucs2 0x10211031102C101F1039),
-(_ucs2 0x1029101F1039),
-(_ucs2 0x10211031102C101F103A),
-(_ucs2 0x1029101F103A),
-(_ucs2 0x10211031102C101F1039),
-(_ucs2 0x10291031102C101F1039),
-(_ucs2 0x10211031102C101F103A),
-(_ucs2 0x10291031102C101F103A),
-('--- Contractions'),
-(_ucs2 0x1031102C1000103A1000103B),
-(_ucs2 0x1031102C1000103A103B /* (suffix of) man */),
-(_ucs2 0x1014103A1014102F1015103A),
-(_ucs2 0x1014103A102F1015103A /* (suffix of) I */),
-('--- Great Sa'),
-(_ucs2 0x1031101E1039101E),
-(_ucs2 0x1031103F),
-(_ucs2 0x102D101E1039101E),
-(_ucs2 0x102D103F),
-(_ucs2 0x102F101E1039101E),
-(_ucs2 0x102F103F),
-(_ucs2 0x1021102D101E1039101E),
-(_ucs2 0x1023103F),
-(_ucs2 0x1021102F101E1039101E),
-(_ucs2 0x1025103F),
-(_ucs2 0x101E1039101E),
-(_ucs2 0x103F),
-('--- Symbols - collate as long form'),
-(_ucs2 0x1014103E102D102F1000103A),
-(_ucs2 0x104C),
-(_ucs2 0x101B103D10311037),
-(_ucs2 0x104D),
-(_ucs2 0x101C100A103A103810001031102C1004103A1038),
-(_ucs2 0x104E1004103A1038),
-(_ucs2 0x1021102D),
-(_ucs2 0x104F),
-('--- Short Forms may need to be added here'),
-(_ucs2 0x101C1000103A101A102C),
-(_ucs2 0x101C1000103A103B102C /* right hand side */),
-(_ucs2 0x101E1019102E),
-(_ucs2 0x101E10391019102E /* daughter */),
-(_ucs2 0x101110191004103A1038),
-(_ucs2 0x1011103910191004103A1038 /* cooked rice */),
-(_ucs2 0x101C1000103A10181000103A),
-(_ucs2 0x101C103910181000103A /* tea */);
-SELECT id, IF(LEFT(s1,1)='-',s1,CONCAT(HEX(WEIGHT_STRING(s1)),'\t', HEX(CONVERT(s1 USING ucs2)))) FROM t1 ORDER BY id;
-id IF(LEFT(s1,1)='-',s1,CONCAT(HEX(WEIGHT_STRING(s1)),'\t', HEX(CONVERT(s1 USING ucs2))))
-1 2259 108C
-2 22593ACB 1037
-3 22593ACC 1038
-4 22593ACD 10371038
-5 --- Vowels
-6 2232 102C
-7 2232 102B
-8 2246 1032
-9 22463ACB 1031102C
-10 22463ACB 1031102B
-11 22463ACC 1031102C103A
-12 22463ACC 1031102B103A
-13 2248 1034
-14 22483ACB 1036
-15 22483ACC 102D102F
-16 --- Vowels with finals
-17 22483ACD 10001039
-18 22483ACD 1000103A
-19 22483ACE 102C10001039
-20 22483ACE 102C1000103A
-21 22483ACE 102B10001039
-22 22483ACE 102B1000103A
-23 22483ACF 102D10001039
-24 22483ACF 102D1000103A
-25 22483AD0 102F10001039
-26 22483AD0 102F1000103A
-27 22483AD1 103110001039
-28 22483AD1 10311000103A
-29 22483AD2 1031102C10001039
-30 22483AD2 1031102C1000103A
-31 22483AD2 1031102B10001039
-32 22483AD2 1031102B1000103A
-33 22483AD3 102D102F10001039
-34 22483AD3 102D102F1000103A
-35 22483AD4 10011039
-36 22483AD4 1001103A
-37 22483AD5 102C10011039
-38 22483AD5 102C1001103A
-39 22483AD5 102B10011039
-40 22483AD5 102B1001103A
-41 22483AD6 102D10011039
-42 22483AD6 102D1001103A
-43 22483AD7 102F10011039
-44 22483AD7 102F1001103A
-45 22483AD8 103110011039
-46 22483AD8 10311001103A
-47 22483AD9 1031102C10011039
-48 22483AD9 1031102C1001103A
-49 22483AD9 1031102B10011039
-50 22483AD9 1031102B1001103A
-51 22483ADA 102D102F10011039
-52 22483ADA 102D102F1001103A
-53 22483ADB 10021039
-54 22483ADB 1002103A
-55 22483ADC 102C10021039
-56 22483ADC 102C1002103A
-57 22483ADC 102B10021039
-58 22483ADC 102B1002103A
-59 22483ADD 102D10021039
-60 22483ADD 102D1002103A
-61 22483ADE 102F10021039
-62 22483ADE 102F1002103A
-63 22483ADF 103110021039
-64 22483ADF 10311002103A
-65 22483AE0 1031102C10021039
-66 22483AE0 1031102C1002103A
-67 22483AE0 1031102B10021039
-68 22483AE0 1031102B1002103A
-69 22483AE1 102D102F10021039
-70 22483AE1 102D102F1002103A
-71 22483AE2 10031039
-72 22483AE2 1003103A
-73 22483AE3 102C10031039
-74 22483AE3 102C1003103A
-75 22483AE3 102B10031039
-76 22483AE3 102B1003103A
-77 22483AE4 102D10031039
-78 22483AE4 102D1003103A
-79 22483AE5 102F10031039
-80 22483AE5 102F1003103A
-81 22483AE6 103110031039
-82 22483AE6 10311003103A
-83 22483AE7 1031102C10031039
-84 22483AE7 1031102C1003103A
-85 22483AE7 1031102B10031039
-86 22483AE7 1031102B1003103A
-87 22483AE8 102D102F10031039
-88 22483AE8 102D102F1003103A
-89 22483AE9 1004103A1039
-90 22483AE9 1004103A
-91 22483AEA 102C1004103A1039
-92 22483AEA 102C1004103A
-93 22483AEA 102B1004103A1039
-94 22483AEA 102B1004103A
-95 22483AEB 102D1004103A1039
-96 22483AEB 102D1004103A
-97 22483AEC 102F1004103A1039
-98 22483AEC 102F1004103A
-99 22483AED 10311004103A1039
-100 22483AED 10311004103A
-101 22483AEE 1031102C1004103A1039
-102 22483AEE 1031102C1004103A
-103 22483AEE 1031102B1004103A1039
-104 22483AEE 1031102B1004103A
-105 22483AEF 102D102F1004103A1039
-106 22483AEF 102D102F1004103A
-107 22483AF0 10051039
-108 22483AF0 1005103A
-109 22483AF1 102C10051039
-110 22483AF1 102C1005103A
-111 22483AF1 102B10051039
-112 22483AF1 102B1005103A
-113 22483AF2 102D10051039
-114 22483AF2 102D1005103A
-115 22483AF3 102F10051039
-116 22483AF3 102F1005103A
-117 22483AF4 103110051039
-118 22483AF4 10311005103A
-119 22483AF5 1031102C10051039
-120 22483AF5 1031102C1005103A
-121 22483AF5 1031102B10051039
-122 22483AF5 1031102B1005103A
-123 22483AF6 102D102F10051039
-124 22483AF6 102D102F1005103A
-125 22483AF7 10061039
-126 22483AF7 1006103A
-127 22483AF8 102C10061039
-128 22483AF8 102C1006103A
-129 22483AF8 102B10061039
-130 22483AF8 102B1006103A
-131 22483AF9 102D10061039
-132 22483AF9 102D1006103A
-133 22483AFA 102F10061039
-134 22483AFA 102F1006103A
-135 22483AFB 103110061039
-136 22483AFB 10311006103A
-137 22483AFC 1031102C10061039
-138 22483AFC 1031102C1006103A
-139 22483AFC 1031102B10061039
-140 22483AFC 1031102B1006103A
-141 22483AFD 102D102F10061039
-142 22483AFD 102D102F1006103A
-143 22483AFE 10071039
-144 22483AFE 1007103A
-145 22483AFF 102C10071039
-146 22483AFF 102C1007103A
-147 22483AFF 102B10071039
-148 22483AFF 102B1007103A
-149 22483B00 102D10071039
-150 22483B00 102D1007103A
-151 22483B01 102F10071039
-152 22483B01 102F1007103A
-153 22483B02 103110071039
-154 22483B02 10311007103A
-155 22483B03 1031102C10071039
-156 22483B03 1031102C1007103A
-157 22483B03 1031102B10071039
-158 22483B03 1031102B1007103A
-159 22483B04 102D102F10071039
-160 22483B04 102D102F1007103A
-161 22483B05 1008103A
-162 22483B06 102C1008103A
-163 22483B06 102B1008103A
-164 22483B07 102D1008103A
-165 22483B08 102F1008103A
-166 22483B09 10311008103A
-167 22483B0A 1031102C1008103A
-168 22483B0A 1031102B1008103A
-169 22483B0B 102D102F1008103A
-170 22483B0C 10091039
-171 22483B0C 1009103A
-172 22483B0D 102C10091039
-173 22483B0D 102C1009103A
-174 22483B0D 102B10091039
-175 22483B0D 102B1009103A
-176 22483B0E 102D10091039
-177 22483B0E 102D1009103A
-178 22483B0F 102F10091039
-179 22483B0F 102F1009103A
-180 22483B10 103110091039
-181 22483B10 10311009103A
-182 22483B11 1031102C10091039
-183 22483B11 1031102C1009103A
-184 22483B11 1031102B10091039
-185 22483B11 1031102B1009103A
-186 22483B12 102D102F10091039
-187 22483B12 102D102F1009103A
-188 22483B13 100A1039
-189 22483B13 100A103A
-190 22483B14 102C100A1039
-191 22483B14 102C100A103A
-192 22483B14 102B100A1039
-193 22483B14 102B100A103A
-194 22483B15 102D100A1039
-195 22483B15 102D100A103A
-196 22483B16 102F100A1039
-197 22483B16 102F100A103A
-198 22483B17 1031100A1039
-199 22483B17 1031100A103A
-200 22483B18 1031102C100A1039
-201 22483B18 1031102C100A103A
-202 22483B18 1031102B100A1039
-203 22483B18 1031102B100A103A
-204 22483B19 102D102F100A1039
-205 22483B19 102D102F100A103A
-206 22483B1A 100B1039
-207 22483B1A 100B103A
-208 22483B1B 102C100B1039
-209 22483B1B 102C100B103A
-210 22483B1B 102B100B1039
-211 22483B1B 102B100B103A
-212 22483B1C 102D100B1039
-213 22483B1C 102D100B103A
-214 22483B1D 102F100B1039
-215 22483B1D 102F100B103A
-216 22483B1E 1031100B1039
-217 22483B1E 1031100B103A
-218 22483B1F 1031102C100B1039
-219 22483B1F 1031102C100B103A
-220 22483B1F 1031102B100B1039
-221 22483B1F 1031102B100B103A
-222 22483B20 102D102F100B1039
-223 22483B20 102D102F100B103A
-224 22483B21 100C1039
-225 22483B21 100C103A
-226 22483B22 102C100C1039
-227 22483B22 102C100C103A
-228 22483B22 102B100C1039
-229 22483B22 102B100C103A
-230 22483B23 102D100C1039
-231 22483B23 102D100C103A
-232 22483B24 102F100C1039
-233 22483B24 102F100C103A
-234 22483B25 1031100C1039
-235 22483B25 1031100C103A
-236 22483B26 1031102C100C1039
-237 22483B26 1031102C100C103A
-238 22483B26 1031102B100C1039
-239 22483B26 1031102B100C103A
-240 22483B27 102D102F100C1039
-241 22483B27 102D102F100C103A
-242 22483B28 100D1039
-243 22483B28 100D103A
-244 22483B29 102C100D1039
-245 22483B29 102C100D103A
-246 22483B29 102B100D1039
-247 22483B29 102B100D103A
-248 22483B2A 102D100D1039
-249 22483B2A 102D100D103A
-250 22483B2B 102F100D1039
-251 22483B2B 102F100D103A
-252 22483B2C 1031100D1039
-253 22483B2C 1031100D103A
-254 22483B2D 1031102C100D1039
-255 22483B2D 1031102C100D103A
-256 22483B2D 1031102B100D1039
-257 22483B2D 1031102B100D103A
-258 22483B2E 102D102F100D1039
-259 22483B2E 102D102F100D103A
-260 22483B2F 100E1039
-261 22483B2F 100E103A
-262 22483B30 102C100E1039
-263 22483B30 102C100E103A
-264 22483B30 102B100E1039
-265 22483B30 102B100E103A
-266 22483B31 102D100E1039
-267 22483B31 102D100E103A
-268 22483B32 102F100E1039
-269 22483B32 102F100E103A
-270 22483B33 1031100E1039
-271 22483B33 1031100E103A
-272 22483B34 1031102C100E1039
-273 22483B34 1031102C100E103A
-274 22483B34 1031102B100E1039
-275 22483B34 1031102B100E103A
-276 22483B35 102D102F100E1039
-277 22483B35 102D102F100E103A
-278 22483B36 100F1039
-279 22483B36 100F103A
-280 22483B37 102C100F1039
-281 22483B37 102C100F103A
-282 22483B37 102B100F1039
-283 22483B37 102B100F103A
-284 22483B38 102D100F1039
-285 22483B38 102D100F103A
-286 22483B39 102F100F1039
-287 22483B39 102F100F103A
-288 22483B3A 1031100F1039
-289 22483B3A 1031100F103A
-290 22483B3B 1031102C100F1039
-291 22483B3B 1031102C100F103A
-292 22483B3B 1031102B100F1039
-293 22483B3B 1031102B100F103A
-294 22483B3C 102D102F100F1039
-295 22483B3C 102D102F100F103A
-296 22483B3D 10101039
-297 22483B3D 1010103A
-298 22483B3E 102C10101039
-299 22483B3E 102C1010103A
-300 22483B3E 102B10101039
-301 22483B3E 102B1010103A
-302 22483B3F 102D10101039
-303 22483B3F 102D1010103A
-304 22483B40 102F10101039
-305 22483B40 102F1010103A
-306 22483B41 103110101039
-307 22483B41 10311010103A
-308 22483B42 1031102C10101039
-309 22483B42 1031102C1010103A
-310 22483B42 1031102B10101039
-311 22483B42 1031102B1010103A
-312 22483B43 102D102F10101039
-313 22483B43 102D102F1010103A
-314 22483B44 10111039
-315 22483B44 1011103A
-316 22483B45 102C10111039
-317 22483B45 102C1011103A
-318 22483B45 102B10111039
-319 22483B45 102B1011103A
-320 22483B46 102D10111039
-321 22483B46 102D1011103A
-322 22483B47 102F10111039
-323 22483B47 102F1011103A
-324 22483B48 103110111039
-325 22483B48 10311011103A
-326 22483B49 1031102C10111039
-327 22483B49 1031102C1011103A
-328 22483B49 1031102B10111039
-329 22483B49 1031102B1011103A
-330 22483B4A 102D102F10111039
-331 22483B4A 102D102F1011103A
-332 22483B4B 10121039
-333 22483B4B 1012103A
-334 22483B4C 102C10121039
-335 22483B4C 102C1012103A
-336 22483B4C 102B10121039
-337 22483B4C 102B1012103A
-338 22483B4D 102D10121039
-339 22483B4D 102D1012103A
-340 22483B4E 102F10121039
-341 22483B4E 102F1012103A
-342 22483B4F 103110121039
-343 22483B4F 10311012103A
-344 22483B50 1031102C10121039
-345 22483B50 1031102C1012103A
-346 22483B50 1031102B10121039
-347 22483B50 1031102B1012103A
-348 22483B51 102D102F10121039
-349 22483B51 102D102F1012103A
-350 22483B52 10131039
-351 22483B52 1013103A
-352 22483B53 102C10131039
-353 22483B53 102C1013103A
-354 22483B53 102B10131039
-355 22483B53 102B1013103A
-356 22483B54 102D10131039
-357 22483B54 102D1013103A
-358 22483B55 102F10131039
-359 22483B55 102F1013103A
-360 22483B56 103110131039
-361 22483B56 10311013103A
-362 22483B57 1031102C10131039
-363 22483B57 1031102C1013103A
-364 22483B57 1031102B10131039
-365 22483B57 1031102B1013103A
-366 22483B58 102D102F10131039
-367 22483B58 102D102F1013103A
-368 22483B59 10141039
-369 22483B59 1014103A
-370 22483B5A 102C10141039
-371 22483B5A 102C1014103A
-372 22483B5A 102B10141039
-373 22483B5A 102B1014103A
-374 22483B5B 102D10141039
-375 22483B5B 102D1014103A
-376 22483B5C 102F10141039
-377 22483B5C 102F1014103A
-378 22483B5D 103110141039
-379 22483B5D 10311014103A
-380 22483B5E 1031102C10141039
-381 22483B5E 1031102C1014103A
-382 22483B5E 1031102B10141039
-383 22483B5E 1031102B1014103A
-384 22483B5F 102D102F10141039
-385 22483B5F 102D102F1014103A
-386 22483B60 10151039
-387 22483B60 1015103A
-388 22483B61 102C10151039
-389 22483B61 102C1015103A
-390 22483B61 102B10151039
-391 22483B61 102B1015103A
-392 22483B62 102D10151039
-393 22483B62 102D1015103A
-394 22483B63 102F10151039
-395 22483B63 102F1015103A
-396 22483B64 103110151039
-397 22483B64 10311015103A
-398 22483B65 1031102C10151039
-399 22483B65 1031102C1015103A
-400 22483B65 1031102B10151039
-401 22483B65 1031102B1015103A
-402 22483B66 102D102F10151039
-403 22483B66 102D102F1015103A
-404 22483B67 10161039
-405 22483B67 1016103A
-406 22483B68 102C10161039
-407 22483B68 102C1016103A
-408 22483B68 102B10161039
-409 22483B68 102B1016103A
-410 22483B69 102D10161039
-411 22483B69 102D1016103A
-412 22483B6A 102F10161039
-413 22483B6A 102F1016103A
-414 22483B6B 103110161039
-415 22483B6B 10311016103A
-416 22483B6C 1031102C10161039
-417 22483B6C 1031102C1016103A
-418 22483B6C 1031102B10161039
-419 22483B6C 1031102B1016103A
-420 22483B6D 102D102F10161039
-421 22483B6D 102D102F1016103A
-422 22483B6E 10171039
-423 22483B6E 1017103A
-424 22483B6F 102C10171039
-425 22483B6F 102C1017103A
-426 22483B6F 102B10171039
-427 22483B6F 102B1017103A
-428 22483B70 102D10171039
-429 22483B70 102D1017103A
-430 22483B71 102F10171039
-431 22483B71 102F1017103A
-432 22483B72 103110171039
-433 22483B72 10311017103A
-434 22483B73 1031102C10171039
-435 22483B73 1031102C1017103A
-436 22483B73 1031102B10171039
-437 22483B73 1031102B1017103A
-438 22483B74 102D102F10171039
-439 22483B74 102D102F1017103A
-440 22483B75 10181039
-441 22483B75 1018103A
-442 22483B76 102C10181039
-443 22483B76 102C1018103A
-444 22483B76 102B10181039
-445 22483B76 102B1018103A
-446 22483B77 102D10181039
-447 22483B77 102D1018103A
-448 22483B78 102F10181039
-449 22483B78 102F1018103A
-450 22483B79 103110181039
-451 22483B79 10311018103A
-452 22483B7A 1031102C10181039
-453 22483B7A 1031102C1018103A
-454 22483B7A 1031102B10181039
-455 22483B7A 1031102B1018103A
-456 22483B7B 102D102F10181039
-457 22483B7B 102D102F1018103A
-458 22483B7C 10191039
-459 22483B7C 1019103A
-460 22483B7D 102C10191039
-461 22483B7D 102C1019103A
-462 22483B7D 102B10191039
-463 22483B7D 102B1019103A
-464 22483B7E 102D10191039
-465 22483B7E 102D1019103A
-466 22483B7F 102F10191039
-467 22483B7F 102F1019103A
-468 22483B80 103110191039
-469 22483B80 10311019103A
-470 22483B81 1031102C10191039
-471 22483B81 1031102C1019103A
-472 22483B81 1031102B10191039
-473 22483B81 1031102B1019103A
-474 22483B82 102D102F10191039
-475 22483B82 102D102F1019103A
-476 22483B83 101A1039
-477 22483B83 101A103A
-478 22483B84 102C101A1039
-479 22483B84 102C101A103A
-480 22483B84 102B101A1039
-481 22483B84 102B101A103A
-482 22483B85 102D101A1039
-483 22483B85 102D101A103A
-484 22483B86 102F101A1039
-485 22483B86 102F101A103A
-486 22483B87 1031101A1039
-487 22483B87 1031101A103A
-488 22483B88 1031102C101A1039
-489 22483B88 1031102C101A103A
-490 22483B88 1031102B101A1039
-491 22483B88 1031102B101A103A
-492 22483B89 102D102F101A1039
-493 22483B89 102D102F101A103A
-494 22483B8A 101B1039
-495 22483B8A 101B103A
-496 22483B8B 102C101B1039
-497 22483B8B 102C101B103A
-498 22483B8B 102B101B1039
-499 22483B8B 102B101B103A
-500 22483B8C 102D101B1039
-501 22483B8C 102D101B103A
-502 22483B8D 102F101B1039
-503 22483B8D 102F101B103A
-504 22483B8E 1031101B1039
-505 22483B8E 1031101B103A
-506 22483B8F 1031102C101B1039
-507 22483B8F 1031102C101B103A
-508 22483B8F 1031102B101B1039
-509 22483B8F 1031102B101B103A
-510 22483B90 102D102F101B1039
-511 22483B90 102D102F101B103A
-512 22483B91 101C1039
-513 22483B91 101C103A
-514 22483B92 102C101C1039
-515 22483B92 102C101C103A
-516 22483B92 102B101C1039
-517 22483B92 102B101C103A
-518 22483B93 102D101C1039
-519 22483B93 102D101C103A
-520 22483B94 102F101C1039
-521 22483B94 102F101C103A
-522 22483B95 1031101C1039
-523 22483B95 1031101C103A
-524 22483B96 1031102C101C1039
-525 22483B96 1031102C101C103A
-526 22483B96 1031102B101C1039
-527 22483B96 1031102B101C103A
-528 22483B97 102D102F101C1039
-529 22483B97 102D102F101C103A
-530 22483B98 101D103A
-531 22483B99 102C101D103A
-532 22483B99 102B101D103A
-533 22483B9A 102D101D103A
-534 22483B9B 102F101D103A
-535 22483B9C 1031101D103A
-536 22483B9D 1031102C101D103A
-537 22483B9D 1031102B101D103A
-538 22483B9E 102D102F101D103A
-539 22483B9F 101E1039
-540 22483B9F 101E103A
-541 22483BA0 102C101E1039
-542 22483BA0 102C101E103A
-543 22483BA0 102B101E1039
-544 22483BA0 102B101E103A
-545 22483BA1 102D101E1039
-546 22483BA1 102D101E103A
-547 22483BA2 102F101E1039
-548 22483BA2 102F101E103A
-549 22483BA3 1031101E1039
-550 22483BA3 1031101E103A
-551 22483BA4 1031102C101E1039
-552 22483BA4 1031102C101E103A
-553 22483BA4 1031102B101E1039
-554 22483BA4 1031102B101E103A
-555 22483BA5 102D102F101E1039
-556 22483BA5 102D102F101E103A
-557 22483BA6 101F1039
-558 22483BA6 101F103A
-559 22483BA7 102C101F1039
-560 22483BA7 102C101F103A
-561 22483BA7 102B101F1039
-562 22483BA7 102B101F103A
-563 22483BA8 102D101F1039
-564 22483BA8 102D101F103A
-565 22483BA9 102F101F1039
-566 22483BA9 102F101F103A
-567 22483BAA 1031101F1039
-568 22483BAA 1031101F103A
-569 22483BAB 1031102C101F1039
-570 22483BAB 1031102C101F103A
-571 22483BAB 1031102B101F1039
-572 22483BAB 1031102B101F103A
-573 22483BAC 102D102F101F1039
-574 22483BAC 102D102F101F103A
-575 22483BAD 1020103A
-576 22483BAE 102C1020103A
-577 22483BAE 102B1020103A
-578 22483BAF 102D1020103A
-579 22483BB0 102F1020103A
-580 22483BB1 10311020103A
-581 22483BB2 1031102C1020103A
-582 22483BB2 1031102B1020103A
-583 22483BB3 102D102F1020103A
-584 22483BB4 1021103A
-585 22483BB5 102C1021103A
-586 22483BB5 102B1021103A
-587 22483BB6 102D1021103A
-588 22483BB7 102F1021103A
-589 22483BB8 10311021103A
-590 22483BB9 1031102C1021103A
-591 22483BB9 1031102B1021103A
-592 22483BBA 102D102F1021103A
-593 --- Medials
-594 22483BBB 105E
-595 22483BBC 105F
-596 22483BBD 103B
-597 22483BBE 103C
-598 22483BBF 1060
-599 22483BC0 103D
-600 22483BC1 1082
-601 22483BC2 103E
-602 22483BC3 103B103D
-603 22483BC4 103C103D
-604 22483BC5 103B103E
-605 22483BC6 103C103E
-606 22483BC7 103D103E
-607 22483BC8 103B103D103E
-608 22483BC9 103C103D103E
-609 --- Independent vowels
-610 22242236 1021102D
-611 22242236 1023
-612 22242238 1021102E
-613 22242238 1024
-614 2224223A 1021102F
-615 2224223A 1025
-616 2224223D 10211030
-617 2224223D 1026
-618 22242242 10211031
-619 22242242 1027
-620 22242242 1028
-621 222422463ACB 10211031102C
-622 222422463ACB 1029
-623 222422463ACC 10211031102C103A
-624 222422463ACC 102A
-625 22483B7E 102D1019103A
-626 22483B7E3ACB 102D1036
-627 22483B7E3ACC 102D1019103A1037
-628 22483B7E3ACD 102D10361037
-629 22483B7E3ACE 102D1019103A1038
-630 22483B7E3ACF 102D10361038
-631 22483B7F 102F1019103A
-632 22483B7F3ACB 102F1036
-633 22483B7F3ACC 102F1019103A1037
-634 22483B7F3ACD 102F10361037
-635 22483B7F3ACE 102F1019103A1038
-636 22483B7F3ACF 102F10361038
-637 222422483B7F3ACB 1021102F1036
-638 222422483B7F3ACB 1025102F1036
-639 --- Independent vowels with finals
-640 222422483ACF 1021102D10001039
-641 222422483ACF 102310001039
-642 222422483ACF 1021102D1000103A
-643 222422483ACF 10231000103A
-644 222422483AD0 1021102F10001039
-645 222422483AD0 102510001039
-646 222422483AD0 1021102F1000103A
-647 222422483AD0 10251000103A
-648 222422483AD1 1021103110001039
-649 222422483AD1 102710001039
-650 222422483AD1 102110311000103A
-651 222422483AD1 10271000103A
-652 222422483AD2 10211031102C10001039
-653 222422483AD2 102910001039
-654 222422483AD2 10211031102C1000103A
-655 222422483AD2 10291000103A
-656 222422483AD2 10211031102C10001039
-657 222422483AD2 10291031102C10001039
-658 222422483AD2 10211031102C1000103A
-659 222422483AD2 10291031102C1000103A
-660 222422483AD6 1021102D10011039
-661 222422483AD6 102310011039
-662 222422483AD6 1021102D1001103A
-663 222422483AD6 10231001103A
-664 222422483AD7 1021102F10011039
-665 222422483AD7 102510011039
-666 222422483AD7 1021102F1001103A
-667 222422483AD7 10251001103A
-668 222422483AD8 1021103110011039
-669 222422483AD8 102710011039
-670 222422483AD8 102110311001103A
-671 222422483AD8 10271001103A
-672 222422483AD9 10211031102C10011039
-673 222422483AD9 102910011039
-674 222422483AD9 10211031102C1001103A
-675 222422483AD9 10291001103A
-676 222422483AD9 10211031102C10011039
-677 222422483AD9 10291031102C10011039
-678 222422483AD9 10211031102C1001103A
-679 222422483AD9 10291031102C1001103A
-680 222422483ADD 1021102D10021039
-681 222422483ADD 102310021039
-682 222422483ADD 1021102D1002103A
-683 222422483ADD 10231002103A
-684 222422483ADE 1021102F10021039
-685 222422483ADE 102510021039
-686 222422483ADE 1021102F1002103A
-687 222422483ADE 10251002103A
-688 222422483ADF 1021103110021039
-689 222422483ADF 102710021039
-690 222422483ADF 102110311002103A
-691 222422483ADF 10271002103A
-692 222422483AE0 10211031102C10021039
-693 222422483AE0 102910021039
-694 222422483AE0 10211031102C1002103A
-695 222422483AE0 10291002103A
-696 222422483AE0 10211031102C10021039
-697 222422483AE0 10291031102C10021039
-698 222422483AE0 10211031102C1002103A
-699 222422483AE0 10291031102C1002103A
-700 222422483AE4 1021102D10031039
-701 222422483AE4 102310031039
-702 222422483AE4 1021102D1003103A
-703 222422483AE4 10231003103A
-704 222422483AE5 1021102F10031039
-705 222422483AE5 102510031039
-706 222422483AE5 1021102F1003103A
-707 222422483AE5 10251003103A
-708 222422483AE6 1021103110031039
-709 222422483AE6 102710031039
-710 222422483AE6 102110311003103A
-711 222422483AE6 10271003103A
-712 222422483AE7 10211031102C10031039
-713 222422483AE7 102910031039
-714 222422483AE7 10211031102C1003103A
-715 222422483AE7 10291003103A
-716 222422483AE7 10211031102C10031039
-717 222422483AE7 10291031102C10031039
-718 222422483AE7 10211031102C1003103A
-719 222422483AE7 10291031102C1003103A
-720 2224223621D5224D 1021102D10041039
-721 2224223621D5224D 102310041039
-722 222422483AEB 1021102D1004103A
-723 222422483AEB 10231004103A
-724 2224223A21D5224D 1021102F10041039
-725 2224223A21D5224D 102510041039
-726 222422483AEC 1021102F1004103A
-727 222422483AEC 10251004103A
-728 2224224221D5224D 1021103110041039
-729 2224224221D5224D 102710041039
-730 222422483AED 102110311004103A
-731 222422483AED 10271004103A
-732 222422463ACB21D5224D 10211031102C10041039
-733 222422463ACB21D5224D 102910041039
-734 222422483AEE 10211031102C1004103A
-735 222422483AEE 10291004103A
-736 222422463ACB21D5224D 10211031102C10041039
-737 222422463ACB21D5224D 10291031102C10041039
-738 222422483AEE 10211031102C1004103A
-739 222422483AEE 10291031102C1004103A
-740 222422483AF2 1021102D10051039
-741 222422483AF2 102310051039
-742 222422483AF2 1021102D1005103A
-743 222422483AF2 10231005103A
-744 222422483AF3 1021102F10051039
-745 222422483AF3 102510051039
-746 222422483AF3 1021102F1005103A
-747 222422483AF3 10251005103A
-748 222422483AF4 1021103110051039
-749 222422483AF4 102710051039
-750 222422483AF4 102110311005103A
-751 222422483AF4 10271005103A
-752 222422483AF5 10211031102C10051039
-753 222422483AF5 102910051039
-754 222422483AF5 10211031102C1005103A
-755 222422483AF5 10291005103A
-756 222422483AF5 10211031102C10051039
-757 222422483AF5 10291031102C10051039
-758 222422483AF5 10211031102C1005103A
-759 222422483AF5 10291031102C1005103A
-760 222422483AF9 1021102D10061039
-761 222422483AF9 102310061039
-762 222422483AF9 1021102D1006103A
-763 222422483AF9 10231006103A
-764 222422483AFA 1021102F10061039
-765 222422483AFA 102510061039
-766 222422483AFA 1021102F1006103A
-767 222422483AFA 10251006103A
-768 222422483AFB 1021103110061039
-769 222422483AFB 102710061039
-770 222422483AFB 102110311006103A
-771 222422483AFB 10271006103A
-772 222422483AFC 10211031102C10061039
-773 222422483AFC 102910061039
-774 222422483AFC 10211031102C1006103A
-775 222422483AFC 10291006103A
-776 222422483AFC 10211031102C10061039
-777 222422483AFC 10291031102C10061039
-778 222422483AFC 10211031102C1006103A
-779 222422483AFC 10291031102C1006103A
-780 222422483B00 1021102D10071039
-781 222422483B00 102310071039
-782 222422483B00 1021102D1007103A
-783 222422483B00 10231007103A
-784 222422483B01 1021102F10071039
-785 222422483B01 102510071039
-786 222422483B01 1021102F1007103A
-787 222422483B01 10251007103A
-788 222422483B02 1021103110071039
-789 222422483B02 102710071039
-790 222422483B02 102110311007103A
-791 222422483B02 10271007103A
-792 222422483B03 10211031102C10071039
-793 222422483B03 102910071039
-794 222422483B03 10211031102C1007103A
-795 222422483B03 10291007103A
-796 222422483B03 10211031102C10071039
-797 222422483B03 10291031102C10071039
-798 222422483B03 10211031102C1007103A
-799 222422483B03 10291031102C1007103A
-800 222422483B0E 1021102D10091039
-801 222422483B0E 102310091039
-802 222422483B0E 1021102D1009103A
-803 222422483B0E 10231009103A
-804 222422483B0F 1021102F10091039
-805 222422483B0F 102510091039
-806 222422483B0F 1021102F1009103A
-807 222422483B0F 10251009103A
-808 222422483B10 1021103110091039
-809 222422483B10 102710091039
-810 222422483B10 102110311009103A
-811 222422483B10 10271009103A
-812 222422483B11 10211031102C10091039
-813 222422483B11 102910091039
-814 222422483B11 10211031102C1009103A
-815 222422483B11 10291009103A
-816 222422483B11 10211031102C10091039
-817 222422483B11 10291031102C10091039
-818 222422483B11 10211031102C1009103A
-819 222422483B11 10291031102C1009103A
-820 222422483B15 1021102D100A1039
-821 222422483B15 1023100A1039
-822 222422483B15 1021102D100A103A
-823 222422483B15 1023100A103A
-824 222422483B16 1021102F100A1039
-825 222422483B16 1025100A1039
-826 222422483B16 1021102F100A103A
-827 222422483B16 1025100A103A
-828 222422483B17 10211031100A1039
-829 222422483B17 1027100A1039
-830 222422483B17 10211031100A103A
-831 222422483B17 1027100A103A
-832 222422483B18 10211031102C100A1039
-833 222422483B18 1029100A1039
-834 222422483B18 10211031102C100A103A
-835 222422483B18 1029100A103A
-836 222422483B18 10211031102C100A1039
-837 222422483B18 10291031102C100A1039
-838 222422483B18 10211031102C100A103A
-839 222422483B18 10291031102C100A103A
-840 222422483B1C 1021102D100B1039
-841 222422483B1C 1023100B1039
-842 222422483B1C 1021102D100B103A
-843 222422483B1C 1023100B103A
-844 222422483B1D 1021102F100B1039
-845 222422483B1D 1025100B1039
-846 222422483B1D 1021102F100B103A
-847 222422483B1D 1025100B103A
-848 222422483B1E 10211031100B1039
-849 222422483B1E 1027100B1039
-850 222422483B1E 10211031100B103A
-851 222422483B1E 1027100B103A
-852 222422483B1F 10211031102C100B1039
-853 222422483B1F 1029100B1039
-854 222422483B1F 10211031102C100B103A
-855 222422483B1F 1029100B103A
-856 222422483B1F 10211031102C100B1039
-857 222422483B1F 10291031102C100B1039
-858 222422483B1F 10211031102C100B103A
-859 222422483B1F 10291031102C100B103A
-860 222422483B23 1021102D100C1039
-861 222422483B23 1023100C1039
-862 222422483B23 1021102D100C103A
-863 222422483B23 1023100C103A
-864 222422483B24 1021102F100C1039
-865 222422483B24 1025100C1039
-866 222422483B24 1021102F100C103A
-867 222422483B24 1025100C103A
-868 222422483B25 10211031100C1039
-869 222422483B25 1027100C1039
-870 222422483B25 10211031100C103A
-871 222422483B25 1027100C103A
-872 222422483B26 10211031102C100C1039
-873 222422483B26 1029100C1039
-874 222422483B26 10211031102C100C103A
-875 222422483B26 1029100C103A
-876 222422483B26 10211031102C100C1039
-877 222422483B26 10291031102C100C1039
-878 222422483B26 10211031102C100C103A
-879 222422483B26 10291031102C100C103A
-880 222422483B2A 1021102D100D1039
-881 222422483B2A 1023100D1039
-882 222422483B2A 1021102D100D103A
-883 222422483B2A 1023100D103A
-884 222422483B2B 1021102F100D1039
-885 222422483B2B 1025100D1039
-886 222422483B2B 1021102F100D103A
-887 222422483B2B 1025100D103A
-888 222422483B2C 10211031100D1039
-889 222422483B2C 1027100D1039
-890 222422483B2C 10211031100D103A
-891 222422483B2C 1027100D103A
-892 222422483B2D 10211031102C100D1039
-893 222422483B2D 1029100D1039
-894 222422483B2D 10211031102C100D103A
-895 222422483B2D 1029100D103A
-896 222422483B2D 10211031102C100D1039
-897 222422483B2D 10291031102C100D1039
-898 222422483B2D 10211031102C100D103A
-899 222422483B2D 10291031102C100D103A
-900 222422483B31 1021102D100E1039
-901 222422483B31 1023100E1039
-902 222422483B31 1021102D100E103A
-903 222422483B31 1023100E103A
-904 222422483B32 1021102F100E1039
-905 222422483B32 1025100E1039
-906 222422483B32 1021102F100E103A
-907 222422483B32 1025100E103A
-908 222422483B33 10211031100E1039
-909 222422483B33 1027100E1039
-910 222422483B33 10211031100E103A
-911 222422483B33 1027100E103A
-912 222422483B34 10211031102C100E1039
-913 222422483B34 1029100E1039
-914 222422483B34 10211031102C100E103A
-915 222422483B34 1029100E103A
-916 222422483B34 10211031102C100E1039
-917 222422483B34 10291031102C100E1039
-918 222422483B34 10211031102C100E103A
-919 222422483B34 10291031102C100E103A
-920 222422483B38 1021102D100F1039
-921 222422483B38 1023100F1039
-922 222422483B38 1021102D100F103A
-923 222422483B38 1023100F103A
-924 222422483B39 1021102F100F1039
-925 222422483B39 1025100F1039
-926 222422483B39 1021102F100F103A
-927 222422483B39 1025100F103A
-928 222422483B3A 10211031100F1039
-929 222422483B3A 1027100F1039
-930 222422483B3A 10211031100F103A
-931 222422483B3A 1027100F103A
-932 222422483B3B 10211031102C100F1039
-933 222422483B3B 1029100F1039
-934 222422483B3B 10211031102C100F103A
-935 222422483B3B 1029100F103A
-936 222422483B3B 10211031102C100F1039
-937 222422483B3B 10291031102C100F1039
-938 222422483B3B 10211031102C100F103A
-939 222422483B3B 10291031102C100F103A
-940 222422483B3F 1021102D10101039
-941 222422483B3F 102310101039
-942 222422483B3F 1021102D1010103A
-943 222422483B3F 10231010103A
-944 222422483B40 1021102F10101039
-945 222422483B40 102510101039
-946 222422483B40 1021102F1010103A
-947 222422483B40 10251010103A
-948 222422483B41 1021103110101039
-949 222422483B41 102710101039
-950 222422483B41 102110311010103A
-951 222422483B41 10271010103A
-952 222422483B42 10211031102C10101039
-953 222422483B42 102910101039
-954 222422483B42 10211031102C1010103A
-955 222422483B42 10291010103A
-956 222422483B42 10211031102C10101039
-957 222422483B42 10291031102C10101039
-958 222422483B42 10211031102C1010103A
-959 222422483B42 10291031102C1010103A
-960 222422483B46 1021102D10111039
-961 222422483B46 102310111039
-962 222422483B46 1021102D1011103A
-963 222422483B46 10231011103A
-964 222422483B47 1021102F10111039
-965 222422483B47 102510111039
-966 222422483B47 1021102F1011103A
-967 222422483B47 10251011103A
-968 222422483B48 1021103110111039
-969 222422483B48 102710111039
-970 222422483B48 102110311011103A
-971 222422483B48 10271011103A
-972 222422483B49 10211031102C10111039
-973 222422483B49 102910111039
-974 222422483B49 10211031102C1011103A
-975 222422483B49 10291011103A
-976 222422483B49 10211031102C10111039
-977 222422483B49 10291031102C10111039
-978 222422483B49 10211031102C1011103A
-979 222422483B49 10291031102C1011103A
-980 222422483B4D 1021102D10121039
-981 222422483B4D 102310121039
-982 222422483B4D 1021102D1012103A
-983 222422483B4D 10231012103A
-984 222422483B4E 1021102F10121039
-985 222422483B4E 102510121039
-986 222422483B4E 1021102F1012103A
-987 222422483B4E 10251012103A
-988 222422483B4F 1021103110121039
-989 222422483B4F 102710121039
-990 222422483B4F 102110311012103A
-991 222422483B4F 10271012103A
-992 222422483B50 10211031102C10121039
-993 222422483B50 102910121039
-994 222422483B50 10211031102C1012103A
-995 222422483B50 10291012103A
-996 222422483B50 10211031102C10121039
-997 222422483B50 10291031102C10121039
-998 222422483B50 10211031102C1012103A
-999 222422483B50 10291031102C1012103A
-1000 222422483B54 1021102D10131039
-1001 222422483B54 102310131039
-1002 222422483B54 1021102D1013103A
-1003 222422483B54 10231013103A
-1004 222422483B55 1021102F10131039
-1005 222422483B55 102510131039
-1006 222422483B55 1021102F1013103A
-1007 222422483B55 10251013103A
-1008 222422483B56 1021103110131039
-1009 222422483B56 102710131039
-1010 222422483B56 102110311013103A
-1011 222422483B56 10271013103A
-1012 222422483B57 10211031102C10131039
-1013 222422483B57 102910131039
-1014 222422483B57 10211031102C1013103A
-1015 222422483B57 10291013103A
-1016 222422483B57 10211031102C10131039
-1017 222422483B57 10291031102C10131039
-1018 222422483B57 10211031102C1013103A
-1019 222422483B57 10291031102C1013103A
-1020 222422483B5B 1021102D10141039
-1021 222422483B5B 102310141039
-1022 222422483B5B 1021102D1014103A
-1023 222422483B5B 10231014103A
-1024 222422483B5C 1021102F10141039
-1025 222422483B5C 102510141039
-1026 222422483B5C 1021102F1014103A
-1027 222422483B5C 10251014103A
-1028 222422483B5D 1021103110141039
-1029 222422483B5D 102710141039
-1030 222422483B5D 102110311014103A
-1031 222422483B5D 10271014103A
-1032 222422483B5E 10211031102C10141039
-1033 222422483B5E 102910141039
-1034 222422483B5E 10211031102C1014103A
-1035 222422483B5E 10291014103A
-1036 222422483B5E 10211031102C10141039
-1037 222422483B5E 10291031102C10141039
-1038 222422483B5E 10211031102C1014103A
-1039 222422483B5E 10291031102C1014103A
-1040 222422483B62 1021102D10151039
-1041 222422483B62 102310151039
-1042 222422483B62 1021102D1015103A
-1043 222422483B62 10231015103A
-1044 222422483B63 1021102F10151039
-1045 222422483B63 102510151039
-1046 222422483B63 1021102F1015103A
-1047 222422483B63 10251015103A
-1048 222422483B64 1021103110151039
-1049 222422483B64 102710151039
-1050 222422483B64 102110311015103A
-1051 222422483B64 10271015103A
-1052 222422483B65 10211031102C10151039
-1053 222422483B65 102910151039
-1054 222422483B65 10211031102C1015103A
-1055 222422483B65 10291015103A
-1056 222422483B65 10211031102C10151039
-1057 222422483B65 10291031102C10151039
-1058 222422483B65 10211031102C1015103A
-1059 222422483B65 10291031102C1015103A
-1060 222422483B69 1021102D10161039
-1061 222422483B69 102310161039
-1062 222422483B69 1021102D1016103A
-1063 222422483B69 10231016103A
-1064 222422483B6A 1021102F10161039
-1065 222422483B6A 102510161039
-1066 222422483B6A 1021102F1016103A
-1067 222422483B6A 10251016103A
-1068 222422483B6B 1021103110161039
-1069 222422483B6B 102710161039
-1070 222422483B6B 102110311016103A
-1071 222422483B6B 10271016103A
-1072 222422483B6C 10211031102C10161039
-1073 222422483B6C 102910161039
-1074 222422483B6C 10211031102C1016103A
-1075 222422483B6C 10291016103A
-1076 222422483B6C 10211031102C10161039
-1077 222422483B6C 10291031102C10161039
-1078 222422483B6C 10211031102C1016103A
-1079 222422483B6C 10291031102C1016103A
-1080 222422483B70 1021102D10171039
-1081 222422483B70 102310171039
-1082 222422483B70 1021102D1017103A
-1083 222422483B70 10231017103A
-1084 222422483B71 1021102F10171039
-1085 222422483B71 102510171039
-1086 222422483B71 1021102F1017103A
-1087 222422483B71 10251017103A
-1088 222422483B72 1021103110171039
-1089 222422483B72 102710171039
-1090 222422483B72 102110311017103A
-1091 222422483B72 10271017103A
-1092 222422483B73 10211031102C10171039
-1093 222422483B73 102910171039
-1094 222422483B73 10211031102C1017103A
-1095 222422483B73 10291017103A
-1096 222422483B73 10211031102C10171039
-1097 222422483B73 10291031102C10171039
-1098 222422483B73 10211031102C1017103A
-1099 222422483B73 10291031102C1017103A
-1100 222422483B77 1021102D10181039
-1101 222422483B77 102310181039
-1102 222422483B77 1021102D1018103A
-1103 222422483B77 10231018103A
-1104 222422483B78 1021102F10181039
-1105 222422483B78 102510181039
-1106 222422483B78 1021102F1018103A
-1107 222422483B78 10251018103A
-1108 222422483B79 1021103110181039
-1109 222422483B79 102710181039
-1110 222422483B79 102110311018103A
-1111 222422483B79 10271018103A
-1112 222422483B7A 10211031102C10181039
-1113 222422483B7A 102910181039
-1114 222422483B7A 10211031102C1018103A
-1115 222422483B7A 10291018103A
-1116 222422483B7A 10211031102C10181039
-1117 222422483B7A 10291031102C10181039
-1118 222422483B7A 10211031102C1018103A
-1119 222422483B7A 10291031102C1018103A
-1120 222422483B7E 1021102D10191039
-1121 222422483B7E 102310191039
-1122 222422483B7E 1021102D1019103A
-1123 222422483B7E 10231019103A
-1124 222422483B7F 1021102F10191039
-1125 222422483B7F 102510191039
-1126 222422483B7F 1021102F1019103A
-1127 222422483B7F 10251019103A
-1128 222422483B80 1021103110191039
-1129 222422483B80 102710191039
-1130 222422483B80 102110311019103A
-1131 222422483B80 10271019103A
-1132 222422483B81 10211031102C10191039
-1133 222422483B81 102910191039
-1134 222422483B81 10211031102C1019103A
-1135 222422483B81 10291019103A
-1136 222422483B81 10211031102C10191039
-1137 222422483B81 10291031102C10191039
-1138 222422483B81 10211031102C1019103A
-1139 222422483B81 10291031102C1019103A
-1140 222422483B85 1021102D101A1039
-1141 222422483B85 1023101A1039
-1142 222422483B85 1021102D101A103A
-1143 222422483B85 1023101A103A
-1144 222422483B86 1021102F101A1039
-1145 222422483B86 1025101A1039
-1146 222422483B86 1021102F101A103A
-1147 222422483B86 1025101A103A
-1148 222422483B87 10211031101A1039
-1149 222422483B87 1027101A1039
-1150 222422483B87 10211031101A103A
-1151 222422483B87 1027101A103A
-1152 222422483B88 10211031102C101A1039
-1153 222422483B88 1029101A1039
-1154 222422483B88 10211031102C101A103A
-1155 222422483B88 1029101A103A
-1156 222422483B88 10211031102C101A1039
-1157 222422483B88 10291031102C101A1039
-1158 222422483B88 10211031102C101A103A
-1159 222422483B88 10291031102C101A103A
-1160 222422483B8C 1021102D101B1039
-1161 222422483B8C 1023101B1039
-1162 222422483B8C 1021102D101B103A
-1163 222422483B8C 1023101B103A
-1164 222422483B8D 1021102F101B1039
-1165 222422483B8D 1025101B1039
-1166 222422483B8D 1021102F101B103A
-1167 222422483B8D 1025101B103A
-1168 222422483B8E 10211031101B1039
-1169 222422483B8E 1027101B1039
-1170 222422483B8E 10211031101B103A
-1171 222422483B8E 1027101B103A
-1172 222422483B8F 10211031102C101B1039
-1173 222422483B8F 1029101B1039
-1174 222422483B8F 10211031102C101B103A
-1175 222422483B8F 1029101B103A
-1176 222422483B8F 10211031102C101B1039
-1177 222422483B8F 10291031102C101B1039
-1178 222422483B8F 10211031102C101B103A
-1179 222422483B8F 10291031102C101B103A
-1180 222422483B93 1021102D101C1039
-1181 222422483B93 1023101C1039
-1182 222422483B93 1021102D101C103A
-1183 222422483B93 1023101C103A
-1184 222422483B94 1021102F101C1039
-1185 222422483B94 1025101C1039
-1186 222422483B94 1021102F101C103A
-1187 222422483B94 1025101C103A
-1188 222422483B95 10211031101C1039
-1189 222422483B95 1027101C1039
-1190 222422483B95 10211031101C103A
-1191 222422483B95 1027101C103A
-1192 222422483B96 10211031102C101C1039
-1193 222422483B96 1029101C1039
-1194 222422483B96 10211031102C101C103A
-1195 222422483B96 1029101C103A
-1196 222422483B96 10211031102C101C1039
-1197 222422483B96 10291031102C101C1039
-1198 222422483B96 10211031102C101C103A
-1199 222422483B96 10291031102C101C103A
-1200 222422483BA1 1021102D101E1039
-1201 222422483BA1 1023101E1039
-1202 222422483BA1 1021102D101E103A
-1203 222422483BA1 1023101E103A
-1204 222422483BA2 1021102F101E1039
-1205 222422483BA2 1025101E1039
-1206 222422483BA2 1021102F101E103A
-1207 222422483BA2 1025101E103A
-1208 222422483BA3 10211031101E1039
-1209 222422483BA3 1027101E1039
-1210 222422483BA3 10211031101E103A
-1211 222422483BA3 1027101E103A
-1212 222422483BA4 10211031102C101E1039
-1213 222422483BA4 1029101E1039
-1214 222422483BA4 10211031102C101E103A
-1215 222422483BA4 1029101E103A
-1216 222422483BA4 10211031102C101E1039
-1217 222422483BA4 10291031102C101E1039
-1218 222422483BA4 10211031102C101E103A
-1219 222422483BA4 10291031102C101E103A
-1220 222422483BA8 1021102D101F1039
-1221 222422483BA8 1023101F1039
-1222 222422483BA8 1021102D101F103A
-1223 222422483BA8 1023101F103A
-1224 222422483BA9 1021102F101F1039
-1225 222422483BA9 1025101F1039
-1226 222422483BA9 1021102F101F103A
-1227 222422483BA9 1025101F103A
-1228 222422483BAA 10211031101F1039
-1229 222422483BAA 1027101F1039
-1230 222422483BAA 10211031101F103A
-1231 222422483BAA 1027101F103A
-1232 222422483BAB 10211031102C101F1039
-1233 222422483BAB 1029101F1039
-1234 222422483BAB 10211031102C101F103A
-1235 222422483BAB 1029101F103A
-1236 222422483BAB 10211031102C101F1039
-1237 222422483BAB 10291031102C101F1039
-1238 222422483BAB 10211031102C101F103A
-1239 222422483BAB 10291031102C101F103A
-1240 --- Contractions
-1241 22483AD221CD22483BBD 1031102C1000103A1000103B
-1242 22483AD221CD22483BBD 1031102C1000103A103B
-1243 22483B5921F822483B63 1014103A1014102F1015103A
-1244 22483B5921F822483B63 1014103A102F1015103A
-1245 --- Great Sa
-1246 22483BA32216 1031101E1039101E
-1247 22483BA32216 1031103F
-1248 22483BA12216 102D101E1039101E
-1249 22483BA12216 102D103F
-1250 22483BA22216 102F101E1039101E
-1251 22483BA22216 102F103F
-1252 222422483BA12216 1021102D101E1039101E
-1253 222422483BA12216 1023103F
-1254 222422483BA22216 1021102F101E1039101E
-1255 222422483BA22216 1025103F
-1256 22483B9F2216 101E1039101E
-1257 22483B9F2216 103F
-1258 --- Symbols - collate as long form
-1259 21F822483BC222483AD3 1014103E102D102F1000103A
-1260 21F822483BC222483AD3 104C
-1261 220922483BC0224222593ACB 101B103D10311037
-1262 220922483BC0224222593ACB 104D
-1263 220D22483B1322593ACC21CD22483AEE22593ACC 101C100A103A103810001031102C1004103A1038
-1264 220D22483B1322593ACC21CD22483AEE22593ACC 104E1004103A1038
-1265 22242236 1021102D
-1266 22242236 104F
-1267 --- Short Forms may need to be added here
-1268 220D22483ACD22072232 101C1000103A101A102C
-1269 220D22483ACD22072232 101C1000103A103B102C
-1270 221622052238 101E1019102E
-1271 221622052238 101E10391019102E
-1272 21F3220522483AE922593ACC 101110191004103A1038
-1273 21F3220522483AE922593ACC 1011103910191004103A1038
-1274 220D22483ACD220422483ACD 101C1000103A10181000103A
-1275 220D22483ACD220422483ACD 101C103910181000103A
-DROP TABLE t1;
-#
-# END of ctype_myanmar.inc
-#
-#
-# End of MariaDB-10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-SET NAMES utf8;
-SET collation_connection=utf32_thai_520_w2;
-#
-# Start of ctype_uca_w2.inc
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf32_thai_520_w2
-SELECT ID, SORTLEN, COLLATION_NAME, CHARACTER_SET_NAME
-FROM INFORMATION_SCHEMA.COLLATIONS
-WHERE COLLATION_NAME LIKE @@collation_connection;
-ID SORTLEN COLLATION_NAME CHARACTER_SET_NAME
-738 4 utf32_thai_520_w2 utf32
-#
-# Testing strnxfrm
-#
-CREATE TABLE t1 AS SELECT SPACE(3) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(3) CHARACTER SET utf32 COLLATE utf32_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (SPACE(0)),(SPACE(1)),(SPACE(2));
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(8))) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(8)))
- 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-00000020 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-0000002000000020 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4))) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4)))
- 020A020A020A020A0020002000200020
-00000020 020A020A020A020A0020002000200020
-0000002000000020 020A020A020A020A0020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 1)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 1))
- 020A020A020A020A
-00000020 020A020A020A020A
-0000002000000020 020A020A020A020A
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 2)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 2))
- 0020002000200020
-00000020 0020002000200020
-0000002000000020 0020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 3)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 3))
- 0020002000200020
-00000020 0020002000200020
-0000002000000020 0020002000200020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf32 COLLATE utf32_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_ucs2 0x3400);
-INSERT INTO t1 VALUES (_ucs2 0xF001);
-SELECT HEX(CONVERT(a USING ucs2)) AS ucs2, HEX(a), HEX(WEIGHT_STRING(a)) FROM t1;
-ucs2 HEX(a) HEX(WEIGHT_STRING(a))
-3400 00003400 FB80B4000020
-F001 0000F001 FBC1F0010020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf32 COLLATE utf32_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('A'),('À'),('Ã'),('Â'),('Ã'),('Ä'),('Ã…');
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-A 0020
-Ã 00200032
-À 00200035
-Â 0020003C
-Ã… 00200043
-Ä 00200047
-Ã 0020004E
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a DESC;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-Ã 0020004E
-Ä 00200047
-Ã… 00200043
-Â 0020003C
-À 00200035
-Ã 00200032
-A 0020
-SET @backup_character_set_connection=@@character_set_connection;
-SET @backup_collation_connection=@@collation_connection;
-SET NAMES utf8;
-SET @stmt= CONCAT('ALTER TABLE t1 MODIFY a CHAR(10)' COLLATE utf8_bin,
-' CHARACTER SET ', @backup_character_set_connection,
-' COLLATE ', @backup_collation_connection);
-PREPARE stmt FROM @stmt;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-SET collation_connection=@backup_collation_connection;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) CHARACTER SET utf32 COLLATE utf32_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-A 0020
-Ã 00200032
-À 00200035
-Â 0020003C
-Ã… 00200043
-Ä 00200047
-Ã 0020004E
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a DESC;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-Ã 0020004E
-Ä 00200047
-Ã… 00200043
-Â 0020003C
-À 00200035
-Ã 00200032
-A 0020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf32 COLLATE utf32_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('cota'),('cote'),('cotz');
-INSERT INTO t1 VALUES ('coté'),('côte'),('côté'),('cotë'),('côtë');
-SELECT * FROM t1 ORDER BY a;
-a
-cota
-cote
-coté
-cotë
-côte
-côté
-côtë
-cotz
-SELECT * FROM t1 ORDER BY a DESC;
-a
-cotz
-côtë
-côté
-côte
-cotë
-coté
-cote
-cota
-DROP TABLE t1;
-#
-# End of ctype_uca_w2.inc
-#
-#
-# Start of ctype_thai.inc
-#
-CREATE TABLE t1 (a VARCHAR(30) CHARACTER SET utf8 COLLATE utf8_bin);
-INSERT INTO t1 VALUES ('-à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡');
-INSERT INTO t1 VALUES ('à¸à¸');
-INSERT INTO t1 VALUES ('à¸à¸£à¸²à¸š');
-INSERT INTO t1 VALUES ('ข่าง');
-INSERT INTO t1 VALUES ('ข้าง');
-INSERT INTO t1 VALUES ('ข้างà¸à¸£à¸°à¸”าน');
-INSERT INTO t1 VALUES ('ข้างขึ้น');
-INSERT INTO t1 VALUES ('ข้างควาย');
-INSERT INTO t1 VALUES ('ข้างเงิน');
-INSERT INTO t1 VALUES ('ข้างà¹à¸£à¸¡');
-INSERT INTO t1 VALUES ('ข้างออà¸');
-INSERT INTO t1 VALUES ('ข้างๆ');
-INSERT INTO t1 VALUES ('ข้างๆ คูๆ');
-INSERT INTO t1 VALUES ('ขาง');
-INSERT INTO t1 VALUES ('à¹à¸‚็ง');
-INSERT INTO t1 VALUES ('à¹à¸‚่ง');
-INSERT INTO t1 VALUES ('à¹à¸‚่งขัน');
-INSERT INTO t1 VALUES ('à¹à¸‚้ง');
-INSERT INTO t1 VALUES ('à¹à¸‚้งขวา');
-INSERT INTO t1 VALUES ('à¹à¸‚็งขัน');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²à¸¯');
-INSERT INTO t1 VALUES ('บุà¸à¸à¸²');
-INSERT INTO t1 VALUES ('บุà¸-หลง');
-INSERT INTO t1 VALUES ('บุà¸à¸«à¸¥à¸‡');
-INSERT INTO t1 VALUES ('ป่า');
-INSERT INTO t1 VALUES ('ป่าน');
-INSERT INTO t1 VALUES ('ป้า');
-INSERT INTO t1 VALUES ('ป้าน');
-INSERT INTO t1 VALUES ('ป๊า');
-INSERT INTO t1 VALUES ('ป๊าน');
-INSERT INTO t1 VALUES ('ป๋า');
-INSERT INTO t1 VALUES ('ป๋าน');
-INSERT INTO t1 VALUES ('ปา');
-INSERT INTO t1 VALUES ('ปาน');
-INSERT INTO t1 VALUES ('à¹à¸›à¹‰à¸‡');
-INSERT INTO t1 VALUES ('พณิชย์');
-INSERT INTO t1 VALUES ('ม้า');
-INSERT INTO t1 VALUES ('ฯพณฯ');
-INSERT INTO t1 VALUES ('A');
-INSERT INTO t1 VALUES ('a');
-INSERT INTO t1 VALUES ('a\'');
-INSERT INTO t1 VALUES ('A-');
-INSERT INTO t1 VALUES ('a-');
-INSERT INTO t1 VALUES ('-a');
-INSERT INTO t1 VALUES ('A.');
-INSERT INTO t1 VALUES ('a.');
-INSERT INTO t1 VALUES ('A-1');
-INSERT INTO t1 VALUES ('aa');
-INSERT INTO t1 VALUES ('AA');
-INSERT INTO t1 VALUES ('A.A.');
-INSERT INTO t1 VALUES ('a.a.');
-INSERT INTO t1 VALUES ('AAA');
-INSERT INTO t1 VALUES ('A.A.A.');
-INSERT INTO t1 VALUES ('AAAA');
-INSERT INTO t1 VALUES ('A.A.A.L.');
-INSERT INTO t1 VALUES ('A.A.A.S.');
-INSERT INTO t1 VALUES ('Aachen');
-INSERT INTO t1 VALUES ('A.A.E.');
-INSERT INTO t1 VALUES ('A.Ae.E.');
-INSERT INTO t1 VALUES ('A.A.E.E.');
-INSERT INTO t1 VALUES ('AAES');
-INSERT INTO t1 VALUES ('AAF');
-INSERT INTO t1 VALUES ('A.Agr');
-INSERT INTO t1 VALUES ('aah');
-INSERT INTO t1 VALUES ('@@@@@');
-INSERT INTO t1 VALUES ('0000');
-INSERT INTO t1 VALUES ('9999');
-INSERT INTO t1 VALUES ('Aalborg');
-INSERT INTO t1 VALUES ('aide');
-INSERT INTO t1 VALUES ('air');
-INSERT INTO t1 VALUES ('@@@air');
-INSERT INTO t1 VALUES ('air@@@');
-INSERT INTO t1 VALUES ('C.A.F');
-INSERT INTO t1 VALUES ('Canon');
-INSERT INTO t1 VALUES ('coop');
-INSERT INTO t1 VALUES ('co-op');
-INSERT INTO t1 VALUES ('COOP');
-INSERT INTO t1 VALUES ('CO-OP');
-INSERT INTO t1 VALUES ('Copenhegen');
-INSERT INTO t1 VALUES ('McArthur');
-INSERT INTO t1 VALUES ('Mc Arthur');
-INSERT INTO t1 VALUES ('Mc Mahon');
-INSERT INTO t1 VALUES ('vice-president');
-INSERT INTO t1 VALUES ('vice versa');
-INSERT INTO t1 VALUES ('vice-versa');
-INSERT INTO t1 VALUES ('10 ลิตร');
-INSERT INTO t1 VALUES ('๑๠ลิตร');
-INSERT INTO t1 VALUES ('10 litre');
-INSERT INTO t1 VALUES ('10 litre (10 ลิตร)');
-INSERT INTO t1 VALUES ('10 ลิตร (10 litre)');
-INSERT INTO t1 VALUES ('10 litre (๑๠ลิตร)');
-INSERT INTO t1 VALUES ('๑๠ลิตร (10 litre)');
-INSERT INTO t1 VALUES ('๑๠ลิตร [10 litre]');
-INSERT INTO t1 VALUES ('๑๠ลิตร {10 litre}');
-ALTER TABLE t1 ORDER BY a;
-SET @backup_character_set_connection=@@character_set_connection;
-SET @backup_collation_connection=@@collation_connection;
-SET NAMES utf8;
-SET @stmt= CONCAT('ALTER TABLE t1 MODIFY a VARCHAR(30)',
-' CHARACTER SET ', @backup_character_set_connection,
-' COLLATE ', @backup_collation_connection,
-' , ADD id INT NOT NULL AUTO_INCREMENT PRIMARY KEY'
- ' , ADD KEY a_id (a, id)');
-PREPARE stmt FROM @stmt;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-SET collation_connection=@backup_collation_connection;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) CHARACTER SET utf32 COLLATE utf32_thai_520_w2 DEFAULT NULL,
- `id` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`),
- KEY `a_id` (`a`,`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=97 DEFAULT CHARSET=latin1
-#
-# Ascending sort, using filesort
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a, BINARY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index; Using filesort
-SELECT a FROM t1 ORDER BY a, BINARY a;
-a
--a
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
-@@@@@
-@@@air
-0000
-10 litre
-10 litre (10 ลิตร)
-10 litre (๑๠ลิตร)
-10 ลิตร
-๑๠ลิตร
-10 ลิตร (10 litre)
-๑๠ลิตร (10 litre)
-๑๠ลิตร [10 litre]
-๑๠ลิตร {10 litre}
-9999
-A
-a
-A-
-a-
-A-1
-A.
-a.
-A.A.
-a.a.
-A.A.A.
-A.A.A.L.
-A.A.A.S.
-A.A.E.
-A.A.E.E.
-A.Ae.E.
-A.Agr
-a'
-AA
-aa
-AAA
-AAAA
-Aachen
-AAES
-AAF
-aah
-Aalborg
-aide
-air
-air@@@
-C.A.F
-Canon
-CO-OP
-co-op
-COOP
-coop
-Copenhegen
-Mc Arthur
-Mc Mahon
-McArthur
-vice versa
-vice-president
-vice-versa
-à¸à¸
-à¸à¸£à¸²à¸š
-ขาง
-ข่าง
-ข้าง
-ข้างๆ
-ข้างๆ คูๆ
-ข้างà¸à¸£à¸°à¸”าน
-ข้างขึ้น
-ข้างควาย
-ข้างเงิน
-ข้างà¹à¸£à¸¡
-ข้างออà¸
-à¹à¸‚็ง
-à¹à¸‚่ง
-à¹à¸‚้ง
-à¹à¸‚้งขวา
-à¹à¸‚็งขัน
-à¹à¸‚่งขัน
-ทูลเà¸à¸¥à¹‰à¸²
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-บุà¸-หลง
-บุà¸à¸à¸²
-บุà¸à¸«à¸¥à¸‡
-ปา
-ป่า
-ป้า
-ป๊า
-ป๋า
-ปาน
-ป่าน
-ป้าน
-ป๊าน
-ป๋าน
-à¹à¸›à¹‰à¸‡
-พณิชย์
-ม้า
-ฯพณฯ
-#
-# Descending sort, using filesort
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index; Using filesort
-SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC;
-a
-ฯพณฯ
-ม้า
-พณิชย์
-à¹à¸›à¹‰à¸‡
-ป๋าน
-ป๊าน
-ป้าน
-ป่าน
-ปาน
-ป๋า
-ป๊า
-ป้า
-ป่า
-ปา
-บุà¸à¸«à¸¥à¸‡
-บุà¸à¸à¸²
-บุà¸-หลง
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²
-à¹à¸‚่งขัน
-à¹à¸‚็งขัน
-à¹à¸‚้งขวา
-à¹à¸‚้ง
-à¹à¸‚่ง
-à¹à¸‚็ง
-ข้างออà¸
-ข้างà¹à¸£à¸¡
-ข้างเงิน
-ข้างควาย
-ข้างขึ้น
-ข้างà¸à¸£à¸°à¸”าน
-ข้างๆ คูๆ
-ข้างๆ
-ข้าง
-ข่าง
-ขาง
-à¸à¸£à¸²à¸š
-à¸à¸
-vice-versa
-vice-president
-vice versa
-McArthur
-Mc Mahon
-Mc Arthur
-Copenhegen
-coop
-COOP
-co-op
-CO-OP
-Canon
-C.A.F
-air@@@
-air
-aide
-Aalborg
-aah
-AAF
-AAES
-Aachen
-AAAA
-AAA
-aa
-AA
-a'
-A.Agr
-A.Ae.E.
-A.A.E.E.
-A.A.E.
-A.A.A.S.
-A.A.A.L.
-A.A.A.
-a.a.
-A.A.
-a.
-A.
-A-1
-a-
-A-
-a
-A
-9999
-๑๠ลิตร {10 litre}
-๑๠ลิตร [10 litre]
-๑๠ลิตร (10 litre)
-10 ลิตร (10 litre)
-๑๠ลิตร
-10 ลิตร
-10 litre (๑๠ลิตร)
-10 litre (10 ลิตร)
-10 litre
-0000
-@@@air
-@@@@@
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
--a
-#
-# Ascending sort, using index
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a, id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index
-SELECT a FROM t1 ORDER BY a, id;
-a
--a
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
-@@@@@
-@@@air
-0000
-10 litre
-10 litre (10 ลิตร)
-10 litre (๑๠ลิตร)
-10 ลิตร
-๑๠ลิตร
-10 ลิตร (10 litre)
-๑๠ลิตร (10 litre)
-๑๠ลิตร [10 litre]
-๑๠ลิตร {10 litre}
-9999
-A
-a
-A-
-a-
-A-1
-A.
-a.
-A.A.
-a.a.
-A.A.A.
-A.A.A.L.
-A.A.A.S.
-A.A.E.
-A.A.E.E.
-A.Ae.E.
-A.Agr
-a'
-AA
-aa
-AAA
-AAAA
-Aachen
-AAES
-AAF
-aah
-Aalborg
-aide
-air
-air@@@
-C.A.F
-Canon
-CO-OP
-co-op
-COOP
-coop
-Copenhegen
-Mc Arthur
-Mc Mahon
-McArthur
-vice versa
-vice-president
-vice-versa
-à¸à¸
-à¸à¸£à¸²à¸š
-ขาง
-ข่าง
-ข้าง
-ข้างๆ
-ข้างๆ คูๆ
-ข้างà¸à¸£à¸°à¸”าน
-ข้างขึ้น
-ข้างควาย
-ข้างเงิน
-ข้างà¹à¸£à¸¡
-ข้างออà¸
-à¹à¸‚็ง
-à¹à¸‚่ง
-à¹à¸‚้ง
-à¹à¸‚้งขวา
-à¹à¸‚็งขัน
-à¹à¸‚่งขัน
-ทูลเà¸à¸¥à¹‰à¸²
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-บุà¸-หลง
-บุà¸à¸à¸²
-บุà¸à¸«à¸¥à¸‡
-ปา
-ป่า
-ป้า
-ป๊า
-ป๋า
-ปาน
-ป่าน
-ป้าน
-ป๊าน
-ป๋าน
-à¹à¸›à¹‰à¸‡
-พณิชย์
-ม้า
-ฯพณฯ
-#
-# Descending sort, using index
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a DESC, id DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index
-SELECT a FROM t1 ORDER BY a DESC, id DESC;
-a
-ฯพณฯ
-ม้า
-พณิชย์
-à¹à¸›à¹‰à¸‡
-ป๋าน
-ป๊าน
-ป้าน
-ป่าน
-ปาน
-ป๋า
-ป๊า
-ป้า
-ป่า
-ปา
-บุà¸à¸«à¸¥à¸‡
-บุà¸à¸à¸²
-บุà¸-หลง
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²
-à¹à¸‚่งขัน
-à¹à¸‚็งขัน
-à¹à¸‚้งขวา
-à¹à¸‚้ง
-à¹à¸‚่ง
-à¹à¸‚็ง
-ข้างออà¸
-ข้างà¹à¸£à¸¡
-ข้างเงิน
-ข้างควาย
-ข้างขึ้น
-ข้างà¸à¸£à¸°à¸”าน
-ข้างๆ คูๆ
-ข้างๆ
-ข้าง
-ข่าง
-ขาง
-à¸à¸£à¸²à¸š
-à¸à¸
-vice-versa
-vice-president
-vice versa
-McArthur
-Mc Mahon
-Mc Arthur
-Copenhegen
-coop
-COOP
-co-op
-CO-OP
-Canon
-C.A.F
-air@@@
-air
-aide
-Aalborg
-aah
-AAF
-AAES
-Aachen
-AAAA
-AAA
-aa
-AA
-a'
-A.Agr
-A.Ae.E.
-A.A.E.E.
-A.A.E.
-A.A.A.S.
-A.A.A.L.
-A.A.A.
-a.a.
-A.A.
-a.
-A.
-A-1
-a-
-A-
-a
-A
-9999
-๑๠ลิตร {10 litre}
-๑๠ลิตร [10 litre]
-๑๠ลิตร (10 litre)
-10 ลิตร (10 litre)
-๑๠ลิตร
-10 ลิตร
-10 litre (๑๠ลิตร)
-10 litre (10 ลิตร)
-10 litre
-0000
-@@@air
-@@@@@
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
--a
-DROP TABLE t1;
-#
-# End of ctype_thai.inc
-#
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10877 xxx_unicode_nopad_ci collations
-#
-SET NAMES utf8, character_set_connection=utf32;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf32_unicode_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf32_unicode_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-0000006100000062000000630000002000000020 abc
-000000610000006200000063 abc
-00000061000000200000002000000020 a
-000000200000006100000020 a
-0000002000000061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf32_unicode_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-0000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-00000061000000620000006300000020 abc
-0000006100000062000000630000002000000020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_unicode_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061 a
-000000610000002000000020 a
-00000061000000200000002000000020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-00000061000000200000002000000020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf32_unicode_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-0000006100000061 1
-00000061000000610000002000000020 1
-0000006100000062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0E33020002000200020002000200020002000200
-0E33020902090200020002000200020002000200
-02090E3302000200020002000200020002000200
-02090E3302090200020002000200020002000200
-0E33020902090209020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf32_unicode_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf32_unicode_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf32_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf32_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf32_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf32_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf32_unicode_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf32_unicode_nopad_ci', 'abc '))
-00000061000000620000006300000020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf32_unicode_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf32_unicode_nopad_ci', 'abc '))
-0000006100000062000000630000002000000020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_unicode_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf32_unicode_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf32_unicode_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf32_unicode_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-0000006100000062000000630000002000000020 abc
-000000610000006200000063 abc
-00000061000000200000002000000020 a
-000000200000006100000020 a
-0000002000000061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf32_unicode_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-0000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-00000061000000620000006300000020 abc
-0000006100000062000000630000002000000020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_unicode_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061 a
-000000610000002000000020 a
-00000061000000200000002000000020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-00000061000000200000002000000020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf32_unicode_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-0000006100000061 1
-00000061000000610000002000000020 1
-0000006100000062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0E33020002000200020002000200020002000200
-0E33020902090200020002000200020002000200
-02090E3302000200020002000200020002000200
-02090E3302090200020002000200020002000200
-0E33020902090209020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf32_unicode_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf32_unicode_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf32_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf32_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf32_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf32_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf32_unicode_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf32_unicode_nopad_ci', 'abc '))
-00000061000000620000006300000020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf32_unicode_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf32_unicode_nopad_ci', 'abc '))
-0000006100000062000000630000002000000020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_unicode_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf32_unicode_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf32_unicode_520_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf32_unicode_520_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_520_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-0000006100000062000000630000002000000020 abc
-000000610000006200000063 abc
-00000061000000200000002000000020 a
-000000200000006100000020 a
-0000002000000061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf32_unicode_520_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-0000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-00000061000000620000006300000020 abc
-0000006100000062000000630000002000000020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_unicode_520_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061 a
-000000610000002000000020 a
-00000061000000200000002000000020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-00000061000000200000002000000020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf32_unicode_520_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-0000006100000061 1
-00000061000000610000002000000020 1
-0000006100000062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-120F020002000200020002000200020002000200
-120F020A020A0200020002000200020002000200
-020A120F02000200020002000200020002000200
-020A120F020A0200020002000200020002000200
-120F020A020A020A020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf32_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf32_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf32_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf32_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf32_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf32_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf32_unicode_520_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf32_unicode_520_nopad_ci', 'abc '))
-00000061000000620000006300000020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf32_unicode_520_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf32_unicode_520_nopad_ci', 'abc '))
-0000006100000062000000630000002000000020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_unicode_520_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_520_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf32_unicode_520_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_520_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf32_unicode_520_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf32_unicode_520_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_520_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-0000006100000062000000630000002000000020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-0000006100000062000000630000002000000020 abc
-000000610000006200000063 abc
-00000061000000200000002000000020 a
-000000200000006100000020 a
-0000002000000061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf32_unicode_520_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-0000006100000020 a
-00000061000000200000002000000020 a
-000000610000006200000063 abc
-00000061000000620000006300000020 abc
-0000006100000062000000630000002000000020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_unicode_520_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-0000002000000061 a
-000000200000006100000020 a
-00000061 a
-000000610000002000000020 a
-00000061000000200000002000000020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-00000061000000200000002000000020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf32_unicode_520_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-0000006100000061 1
-00000061000000610000002000000020 1
-0000006100000062 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-120F020002000200020002000200020002000200
-120F020A020A0200020002000200020002000200
-020A120F02000200020002000200020002000200
-020A120F020A0200020002000200020002000200
-120F020A020A020A020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf32_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf32_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf32_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf32_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf32_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf32_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf32_unicode_520_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf32_unicode_520_nopad_ci', 'abc '))
-00000061000000620000006300000020
-SELECT HEX(GREATEST('abc ' COLLATE 'utf32_unicode_520_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf32_unicode_520_nopad_ci', 'abc '))
-0000006100000062000000630000002000000020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf32_unicode_520_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_520_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf32_unicode_520_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf32_unicode_520_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET NAMES utf8, collation_connection=utf32_unicode_520_nopad_ci;
-#
-# MDEV-14350 Index use with collation utf8mb4_unicode_nopad_ci on LIKE pattern with wrong results
-#
-CREATE OR REPLACE TABLE t1 AS SELECT SPACE(50) AS a, SPACE (50) AS b;
-ALTER TABLE t1 ADD KEY(a), ADD KEY(b);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_520_nopad_ci DEFAULT NULL,
- `b` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_520_nopad_ci DEFAULT NULL,
- KEY `a` (`a`),
- KEY `b` (`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('111', '111');
-INSERT INTO t1 VALUES ('222', '222');
-INSERT INTO t1 VALUES ('333', '333');
-INSERT INTO t1 VALUES ('444', '444');
-SELECT * FROM t1 WHERE a LIKE '111%';
-a b
-111 111
-SELECT * FROM t1 IGNORE INDEX (a) WHERE a LIKE '111%';
-a b
-111 111
-DROP TABLE t1;
-SET NAMES utf8;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_utf8.result b/mysql-test/r/ctype_utf8.result
deleted file mode 100644
index 10d0efeff3c..00000000000
--- a/mysql-test/r/ctype_utf8.result
+++ /dev/null
@@ -1,11281 +0,0 @@
-SET TIME_ZONE='+03:00';
-drop table if exists t1,t2,t3,t4;
-drop database if exists mysqltest;
-drop table if exists t1,t2;
-set names utf8;
-select left(_utf8 0xD0B0D0B1D0B2,1);
-left(_utf8 0xD0B0D0B1D0B2,1)
-а
-select right(_utf8 0xD0B0D0B2D0B2,1);
-right(_utf8 0xD0B0D0B2D0B2,1)
-в
-select locate('he','hello');
-locate('he','hello')
-1
-select locate('he','hello',2);
-locate('he','hello',2)
-0
-select locate('lo','hello',2);
-locate('lo','hello',2)
-4
-select locate('HE','hello');
-locate('HE','hello')
-1
-select locate('HE','hello',2);
-locate('HE','hello',2)
-0
-select locate('LO','hello',2);
-locate('LO','hello',2)
-4
-select locate('HE','hello' collate utf8_bin);
-locate('HE','hello' collate utf8_bin)
-0
-select locate('HE','hello' collate utf8_bin,2);
-locate('HE','hello' collate utf8_bin,2)
-0
-select locate('LO','hello' collate utf8_bin,2);
-locate('LO','hello' collate utf8_bin,2)
-0
-select locate(_utf8 0xD0B1, _utf8 0xD0B0D0B1D0B2);
-locate(_utf8 0xD0B1, _utf8 0xD0B0D0B1D0B2)
-2
-select locate(_utf8 0xD091, _utf8 0xD0B0D0B1D0B2);
-locate(_utf8 0xD091, _utf8 0xD0B0D0B1D0B2)
-2
-select locate(_utf8 0xD0B1, _utf8 0xD0B0D091D0B2);
-locate(_utf8 0xD0B1, _utf8 0xD0B0D091D0B2)
-2
-select locate(_utf8 0xD091, _utf8 0xD0B0D0B1D0B2 collate utf8_bin);
-locate(_utf8 0xD091, _utf8 0xD0B0D0B1D0B2 collate utf8_bin)
-0
-select locate(_utf8 0xD0B1, _utf8 0xD0B0D091D0B2 collate utf8_bin);
-locate(_utf8 0xD0B1, _utf8 0xD0B0D091D0B2 collate utf8_bin)
-0
-select length(_utf8 0xD0B1), bit_length(_utf8 0xD0B1), char_length(_utf8 0xD0B1);
-length(_utf8 0xD0B1) bit_length(_utf8 0xD0B1) char_length(_utf8 0xD0B1)
-2 16 1
-select 'a' like 'a';
-'a' like 'a'
-1
-select 'A' like 'a';
-'A' like 'a'
-1
-select 'A' like 'a' collate utf8_bin;
-'A' like 'a' collate utf8_bin
-0
-select _utf8 0xD0B0D0B1D0B2 like concat(_utf8'%',_utf8 0xD0B1,_utf8 '%');
-_utf8 0xD0B0D0B1D0B2 like concat(_utf8'%',_utf8 0xD0B1,_utf8 '%')
-1
-select convert(_latin1'Günter André' using utf8) like CONVERT(_latin1'GÜNTER%' USING utf8);
-convert(_latin1'Günter André' using utf8) like CONVERT(_latin1'GÜNTER%' USING utf8)
-1
-select CONVERT(_koi8r'×ÁÓÑ' USING utf8) LIKE CONVERT(_koi8r'÷áóñ' USING utf8);
-CONVERT(_koi8r'×ÁÓÑ' USING utf8) LIKE CONVERT(_koi8r'÷áóñ' USING utf8)
-1
-select CONVERT(_koi8r'÷áóñ' USING utf8) LIKE CONVERT(_koi8r'×ÁÓÑ' USING utf8);
-CONVERT(_koi8r'÷áóñ' USING utf8) LIKE CONVERT(_koi8r'×ÁÓÑ' USING utf8)
-1
-SELECT 'a' = 'a ';
-'a' = 'a '
-1
-SELECT 'a\0' < 'a';
-'a\0' < 'a'
-1
-SELECT 'a\0' < 'a ';
-'a\0' < 'a '
-1
-SELECT 'a\t' < 'a';
-'a\t' < 'a'
-1
-SELECT 'a\t' < 'a ';
-'a\t' < 'a '
-1
-SELECT 'a' = 'a ' collate utf8_bin;
-'a' = 'a ' collate utf8_bin
-1
-SELECT 'a\0' < 'a' collate utf8_bin;
-'a\0' < 'a' collate utf8_bin
-1
-SELECT 'a\0' < 'a ' collate utf8_bin;
-'a\0' < 'a ' collate utf8_bin
-1
-SELECT 'a\t' < 'a' collate utf8_bin;
-'a\t' < 'a' collate utf8_bin
-1
-SELECT 'a\t' < 'a ' collate utf8_bin;
-'a\t' < 'a ' collate utf8_bin
-1
-CREATE TABLE t1 (a char(10) character set utf8 not null);
-INSERT INTO t1 VALUES ('a'),('a\0'),('a\t'),('a ');
-SELECT hex(a),STRCMP(a,'a'), STRCMP(a,'a ') FROM t1;
-hex(a) STRCMP(a,'a') STRCMP(a,'a ')
-61 0 0
-6100 -1 -1
-6109 -1 -1
-61 0 0
-DROP TABLE t1;
-select insert('txs',2,1,'hi'),insert('is ',4,0,'a'),insert('txxxxt',2,4,'es');
-insert('txs',2,1,'hi') insert('is ',4,0,'a') insert('txxxxt',2,4,'es')
-this is test
-select insert("aa",100,1,"b"),insert("aa",1,3,"b");
-insert("aa",100,1,"b") insert("aa",1,3,"b")
-aa b
-select char_length(left(@a:='теÑÑ‚',5)), length(@a), @a;
-char_length(left(@a:='теÑÑ‚',5)) length(@a) @a
-4 8 теÑÑ‚
-create table t1 select date_format("2004-01-19 10:10:10", "%Y-%m-%d");
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `date_format("2004-01-19 10:10:10", "%Y-%m-%d")` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-date_format("2004-01-19 10:10:10", "%Y-%m-%d")
-2004-01-19
-drop table t1;
-set names utf8;
-set LC_TIME_NAMES='fr_FR';
-create table t1 (s1 char(20) character set latin1);
-insert into t1 values (date_format('2004-02-02','%M'));
-select hex(s1) from t1;
-hex(s1)
-66E97672696572
-drop table t1;
-create table t1 (s1 char(20) character set koi8r);
-set LC_TIME_NAMES='ru_RU';
-insert into t1 values (date_format('2004-02-02','%M'));
-insert into t1 values (date_format('2004-02-02','%b'));
-insert into t1 values (date_format('2004-02-02','%W'));
-insert into t1 values (date_format('2004-02-02','%a'));
-select hex(s1), s1 from t1;
-hex(s1) s1
-E6C5D7D2C1CCD1 ФевралÑ
-E6C5D7 Фев
-F0CFCEC5C4C5CCD8CEC9CB Понедельник
-F0CEC4 Пнд
-drop table t1;
-set LC_TIME_NAMES='en_US';
-set names koi8r;
-create table t1 (s1 char(1) character set utf8);
-insert ignore into t1 values (_koi8r'ÁÂ');
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select s1,hex(s1),char_length(s1),octet_length(s1) from t1;
-s1 hex(s1) char_length(s1) octet_length(s1)
-Á D0B0 1 2
-drop table t1;
-create table t1 (s1 tinytext character set utf8);
-insert ignore into t1 select repeat('a',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ñ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('aÑ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ña',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('ÑÑ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161
-D18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18F
-61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F
-D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61
-D18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18F
-select length(s1),char_length(s1) from t1;
-length(s1) char_length(s1)
-255 255
-254 127
-255 170
-255 170
-254 127
-drop table t1;
-create table t1 (s1 text character set utf8);
-insert ignore into t1 select repeat('a',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ñ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('aÑ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ña',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('ÑÑ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select length(s1),char_length(s1) from t1;
-length(s1) char_length(s1)
-65535 65535
-65534 32767
-65535 43690
-65535 43690
-65534 32767
-drop table t1;
-create table t1 (s1 char(10) character set utf8);
-insert ignore into t1 values (0x41FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-413F
-drop table t1;
-create table t1 (s1 varchar(10) character set utf8);
-insert ignore into t1 values (0x41FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-413F
-drop table t1;
-create table t1 (s1 text character set utf8);
-insert ignore into t1 values (0x41FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-413F
-drop table t1;
-create table t1 (a text character set utf8, primary key(a(371)));
-ERROR 42000: Specified key was too long; max key length is 1000 bytes
-CREATE TABLE t1 ( a varchar(10) ) CHARACTER SET utf8;
-INSERT INTO t1 VALUES ( 'test' );
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = b.a;
-a a
-test test
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = 'test' and b.a = 'test';
-a a
-test test
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = b.a and a.a = 'test';
-a a
-test test
-DROP TABLE t1;
-create table t1 (a char(255) character set utf8);
-insert into t1 values('b'),('b');
-select * from t1 where a = 'b';
-a
-b
-b
-select * from t1 where a = 'b' and a = 'b';
-a
-b
-b
-select * from t1 where a = 'b' and a != 'b';
-a
-drop table t1;
-set names utf8;
-drop table if exists t1;
-create table t1 as
-select repeat(' ', 64) as s1, repeat(' ',64) as s2
-union
-select null, null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(64) CHARACTER SET utf8 DEFAULT NULL,
- `s2` varchar(64) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-delete from t1;
-insert into t1 values('aaa','aaa');
-insert into t1 values('aaa|qqq','qqq');
-insert into t1 values('gheis','^[^a-dXYZ]+$');
-insert into t1 values('aab','^aa?b');
-insert into t1 values('Baaan','^Ba*n');
-insert into t1 values('aaa','qqq|aaa');
-insert into t1 values('qqq','qqq|aaa');
-insert into t1 values('bbb','qqq|aaa');
-insert into t1 values('bbb','qqq');
-insert into t1 values('aaa','aba');
-insert into t1 values(null,'abc');
-insert into t1 values('def',null);
-insert into t1 values(null,null);
-insert into t1 values('ghi','ghi[');
-select HIGH_PRIORITY s1 regexp s2 from t1;
-s1 regexp s2
-0
-0
-0
-1
-1
-1
-1
-1
-1
-1
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-SELECT @@character_set_client, @@collation_connection;
-@@character_set_client @@collation_connection
-utf8 utf8_general_ci
-select 'ваÑÑ' rlike '\\bваÑÑ\\b';
-'ваÑÑ' rlike '\\bваÑÑ\\b'
-1
-select 'ваÑÑ ' rlike '\\bваÑÑ\\b';
-'ваÑÑ ' rlike '\\bваÑÑ\\b'
-1
-select ' ваÑÑ' rlike '\\bваÑÑ\\b';
-' ваÑÑ' rlike '\\bваÑÑ\\b'
-1
-select ' ваÑÑ ' rlike '\\bваÑÑ\\b';
-' ваÑÑ ' rlike '\\bваÑÑ\\b'
-1
-select 'ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select 'ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select ' ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-' ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select ' ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-' ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select 'ваÑÑz' rlike '\\bваÑÑ\\b';
-'ваÑÑz' rlike '\\bваÑÑ\\b'
-0
-select 'zваÑÑ' rlike '\\bваÑÑ\\b';
-'zваÑÑ' rlike '\\bваÑÑ\\b'
-0
-select 'zваÑÑz' rlike '\\bваÑÑ\\b';
-'zваÑÑz' rlike '\\bваÑÑ\\b'
-0
-select 'ваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-select 'zваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'zваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-select 'zваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'zваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-CREATE TABLE t1 (a enum ('Y', 'N') DEFAULT 'N' COLLATE utf8_unicode_ci);
-ALTER TABLE t1 ADD COLUMN b CHAR(20);
-DROP TABLE t1;
-set names utf8;
-create table t1 (a enum('aaaa','проба') character set utf8);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('aaaa','проба') CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('проба');
-select * from t1;
-a
-проба
-create table t2 select ifnull(a,a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ifnull(a,a)` varchar(5) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t2;
-ifnull(a,a)
-проба
-drop table t1;
-drop table t2;
-create table t1 (c varchar(30) character set utf8, unique(c(10)));
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c varchar(30) character set utf8, unique(c(10))) engine=innodb;
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c char(3) character set utf8, unique (c(2)));
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (c char(3) character set utf8, unique (c(2))) engine=innodb;
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (
-c char(10) character set utf8,
-unique key a using hash (c(1))
-) engine=heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8 DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING HASH
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8,
-unique key a using btree (c(1))
-) engine=heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8 DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING BTREE
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8,
-unique key a (c(1))
-) engine=innodb;
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (c varchar(30) character set utf8 collate utf8_bin, unique(c(10)));
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c char(3) character set utf8 collate utf8_bin, unique (c(2)));
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (
-c char(10) character set utf8 collate utf8_bin,
-unique key a using hash (c(1))
-) engine=heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING HASH
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8 collate utf8_bin,
-unique key a using btree (c(1))
-) engine=heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING BTREE
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8 collate utf8_bin,
-unique key a (c(1))
-) engine=innodb;
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8 not null,
-key str (str(2))
-) engine=myisam;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8 not null,
-key str (str(2))
-) engine=innodb;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8 not null,
-key str using btree (str(2))
-) engine=heap;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8 not null,
-key str using hash (str(2))
-) engine=heap;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8 not null,
-key str (str(2))
-) engine=innodb;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-CREATE TABLE t1 (a varchar(32) BINARY) CHARACTER SET utf8;
-INSERT INTO t1 VALUES ('test');
-SELECT a FROM t1 WHERE a LIKE '%te';
-a
-DROP TABLE t1;
-SET NAMES utf8;
-CREATE TABLE t1 (
-subject varchar(255) character set utf8 collate utf8_unicode_ci,
-p varchar(15) character set utf8
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES ('è°·å·ä¿ŠäºŒã¨ç”³ã—ã¾ã™ãŒã€ã‚¤ãƒ³ã‚¿ãƒ¼ãƒãƒƒãƒˆäºˆç´„ã®ä¼šå“¡ç™»éŒ²ã‚’ã—ã¾ã—ãŸã¨ã“ã‚ã€ãƒ¡ãƒ¼ãƒ«ã‚¢ãƒ‰ãƒ¬ã‚¹ã‚’é–“é•ãˆã¦ã—ã¾ã„会員IDãŒå—ã‘å–ã‚‹ã“ã¨ãŒå‡ºæ¥ã¾ã›ã‚“ã§ã—ãŸã€‚é–“é•ãˆã‚¢ãƒ‰ãƒ¬ã‚¹ã¯tani-shun@n.vodafone.ne.jpを書ãè¾¼ã¿ã¾ã—ãŸã€‚ã©ã†ã™ã‚Œã°ã‚ˆã„ã§ã™ã‹ï¼Ÿ ãã®ä»–ã€ä½æ‰€ç­‰ã¯é–“é•ãˆã‚ã‚Šã¾ã›ã‚“。連絡ãã ã•ã„。よã‚ã—ããŠé¡˜ã„ã—ã¾ã™ã€‚m(__)m','040312-000057');
-INSERT INTO t1 VALUES ('aaa','bbb');
-SELECT length(subject) FROM t1;
-length(subject)
-432
-3
-SELECT length(subject) FROM t1 ORDER BY 1;
-length(subject)
-3
-432
-DROP TABLE t1;
-CREATE TABLE t1 (
-id int unsigned NOT NULL auto_increment,
-list_id smallint unsigned NOT NULL,
-term TEXT NOT NULL,
-PRIMARY KEY(id),
-INDEX(list_id, term(4))
-) ENGINE=MYISAM CHARSET=utf8;
-INSERT INTO t1 SET list_id = 1, term = "letterc";
-INSERT INTO t1 SET list_id = 1, term = "letterb";
-INSERT INTO t1 SET list_id = 1, term = "lettera";
-INSERT INTO t1 SET list_id = 1, term = "letterd";
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterc");
-id
-1
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterb");
-id
-2
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "lettera");
-id
-3
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterd");
-id
-4
-DROP TABLE t1;
-SET NAMES latin1;
-CREATE TABLE t1 (
-id int unsigned NOT NULL auto_increment,
-list_id smallint unsigned NOT NULL,
-term text NOT NULL,
-PRIMARY KEY(id),
-INDEX(list_id, term(19))
-) ENGINE=MyISAM CHARSET=utf8;
-INSERT INTO t1 set list_id = 1, term = "testétest";
-INSERT INTO t1 set list_id = 1, term = "testetest";
-INSERT INTO t1 set list_id = 1, term = "testètest";
-SELECT id, term FROM t1 where (list_id = 1) AND (term = "testétest");
-id term
-1 testétest
-2 testetest
-3 testètest
-SELECT id, term FROM t1 where (list_id = 1) AND (term = "testetest");
-id term
-1 testétest
-2 testetest
-3 testètest
-SELECT id, term FROM t1 where (list_id = 1) AND (term = "testètest");
-id term
-1 testétest
-2 testetest
-3 testètest
-DROP TABLE t1;
-set names utf8;
-create table t1 (
-a int primary key,
-b varchar(6),
-index b3(b(3))
-) engine=innodb character set=utf8;
-insert into t1 values(1,'foo'),(2,'foobar');
-select * from t1 where b like 'foob%';
-a b
-2 foobar
-alter table t1 engine=innodb;
-select * from t1 where b like 'foob%';
-a b
-2 foobar
-drop table t1;
-create table t1 (
-a enum('петÑ','ваÑÑ','анюта') character set utf8 not null default 'анюта',
-b set('петÑ','ваÑÑ','анюта') character set utf8 not null default 'анюта'
-);
-create table t2 select concat(a,_utf8'') as a, concat(b,_utf8'')as b from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(5) CHARACTER SET utf8 DEFAULT NULL,
- `b` varchar(15) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t2;
-drop table t1;
-select 'c' like '\_' as want0;
-want0
-0
-SELECT SUBSTR('ваÑÑ',-2);
-SUBSTR('ваÑÑ',-2)
-ÑÑ
-create table t1 (id integer, a varchar(100) character set utf8 collate utf8_unicode_ci);
-insert into t1 values (1, 'Test');
-select * from t1 where soundex(a) = soundex('Test');
-id a
-1 Test
-select * from t1 where soundex(a) = soundex('TEST');
-id a
-1 Test
-select * from t1 where soundex(a) = soundex('test');
-id a
-1 Test
-drop table t1;
-select soundex(_utf8 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB);
-soundex(_utf8 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB)
-阅000
-select hex(soundex(_utf8 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB));
-hex(soundex(_utf8 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB))
-E99885303030
-select soundex(_utf8 0xD091D092D093);
-soundex(_utf8 0xD091D092D093)
-Б000
-select hex(soundex(_utf8 0xD091D092D093));
-hex(soundex(_utf8 0xD091D092D093))
-D091303030
-SET collation_connection='utf8_general_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf8_general_ci 6109
-utf8_general_ci 61
-utf8_general_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8_general_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8_general_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf8_general_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-"BEGIN ctype_german.inc"
-drop table if exists t1;
-create table t1 as select repeat(' ', 64) as s1;
-select collation(s1) from t1;
-collation(s1)
-utf8_general_ci
-delete from t1;
-INSERT INTO t1 VALUES ('ud'),('uf');
-INSERT INTO t1 VALUES ('od'),('of');
-INSERT INTO t1 VALUES ('e');
-INSERT INTO t1 VALUES ('ad'),('af');
-insert into t1 values ('a'),('ae'),(_latin1 0xE4);
-insert into t1 values ('o'),('oe'),(_latin1 0xF6);
-insert into t1 values ('s'),('ss'),(_latin1 0xDF);
-insert into t1 values ('u'),('ue'),(_latin1 0xFC);
-INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
-INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
-select s1, hex(s1) from t1 order by s1, binary s1;
-s1 hex(s1)
-a 61
-ä C3A4
-ad 6164
-ae 6165
-af 6166
-e 65
-o 6F
-ö C3B6
-od 6F64
-oe 6F65
-of 6F66
-s 73
-ß C39F
-ss 7373
-u 75
-ü C3BC
-ud 7564
-ue 7565
-uf 7566
-Æ C386
-æ C3A6
-Å’ C592
-Å“ C593
-select group_concat(s1 order by binary s1) from t1 group by s1;
-group_concat(s1 order by binary s1)
-a,ä
-ad
-ae
-af
-e
-o,ö
-od
-oe
-of
-s,ß
-ss
-u,ü
-ud
-ue
-uf
-Æ,æ
-Å’,Å“
-SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
-s1 hex(s1) hex(weight_string(s1))
-a 61 0041
-ä C3A4 0041
-ad 6164 00410044
-ae 6165 00410045
-af 6166 00410046
-e 65 0045
-o 6F 004F
-ö C3B6 004F
-od 6F64 004F0044
-oe 6F65 004F0045
-of 6F66 004F0046
-s 73 0053
-ß C39F 0053
-ss 7373 00530053
-u 75 0055
-ü C3BC 0055
-ud 7564 00550044
-ue 7565 00550045
-uf 7566 00550046
-Æ C386 00C6
-æ C3A6 00C6
-Å’ C592 0152
-Å“ C593 0152
-SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
-s1 hex(s1)
-ae 6165
-drop table t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf8 DEFAULT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('s',0),(_latin1 0xDF,1);
-SELECT * FROM t1 ORDER BY a, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY a DESC, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a), b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
-a b
-s 0
-ß 1
-DROP TABLE t1;
-"END ctype_german.inc"
-#
-# MDEV-4842 STR_TO_DATE does not work with UCS2/UTF16/UTF32
-#
-SELECT @@character_set_connection, HEX(CAST(_utf8'÷' AS CHAR));
-@@character_set_connection HEX(CAST(_utf8'÷' AS CHAR))
-utf8 C3B7
-SELECT STR_TO_DATE(CAST(_utf8'2001÷01÷01' AS CHAR),CAST(_utf8'%Y÷%m÷%d' AS CHAR));
-STR_TO_DATE(CAST(_utf8'2001÷01÷01' AS CHAR),CAST(_utf8'%Y÷%m÷%d' AS CHAR))
-2001-01-01
-CREATE TABLE t1 AS SELECT REPEAT(' ', 64) AS subject, REPEAT(' ',64) AS pattern LIMIT 0;
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-subject varchar(64) YES NULL
-pattern varchar(64) YES NULL
-INSERT INTO t1 VALUES (_utf8'2001÷01÷01',_utf8'%Y÷%m÷%d');
-SELECT HEX(subject),HEX(pattern),STR_TO_DATE(subject, pattern) FROM t1;
-HEX(subject) HEX(pattern) STR_TO_DATE(subject, pattern)
-32303031C3B73031C3B73031 2559C3B7256DC3B72564 2001-01-01 00:00:00.000000
-DROP TABLE t1;
-SET collation_connection='utf8_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf8_bin 6109
-utf8_bin 61
-utf8_bin 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf8_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 (
-user varchar(255) NOT NULL default ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES ('one'),('two');
-SELECT CHARSET('a');
-CHARSET('a')
-utf8
-SELECT user, CONCAT('<', user, '>') AS c FROM t1;
-user c
-one <one>
-two <two>
-DROP TABLE t1;
-create table t1 (f1 varchar(1) not null) default charset utf8;
-insert into t1 values (''), ('');
-select concat(concat(_latin1'->',f1),_latin1'<-') from t1;
-concat(concat(_latin1'->',f1),_latin1'<-')
--><-
--><-
-drop table t1;
-select convert(_koi8r'É' using utf8) < convert(_koi8r'Ê' using utf8);
-convert(_koi8r'É' using utf8) < convert(_koi8r'Ê' using utf8)
-1
-set names latin1;
-create table t1 (a varchar(10)) character set utf8;
-insert into t1 values ('test');
-select ifnull(a,'') from t1;
-ifnull(a,'')
-test
-drop table t1;
-select repeat(_utf8'+',3) as h union select NULL;
-h
-+++
-NULL
-select ifnull(NULL, _utf8'string');
-ifnull(NULL, _utf8'string')
-string
-set names utf8;
-create table t1 (s1 char(5) character set utf8 collate utf8_lithuanian_ci);
-insert into t1 values ('I'),('K'),('Y');
-select * from t1 where s1 < 'K' and s1 = 'Y';
-s1
-I
-Y
-select * from t1 where 'K' > s1 and s1 = 'Y';
-s1
-I
-Y
-drop table t1;
-create table t1 (s1 char(5) character set utf8 collate utf8_czech_ci);
-insert into t1 values ('c'),('d'),('h'),('ch'),('CH'),('cH'),('Ch'),('i');
-select * from t1 where s1 > 'd' and s1 = 'CH';
-s1
-ch
-CH
-Ch
-select * from t1 where 'd' < s1 and s1 = 'CH';
-s1
-ch
-CH
-Ch
-select * from t1 where s1 = 'cH' and s1 <> 'ch';
-s1
-cH
-select * from t1 where 'cH' = s1 and s1 <> 'ch';
-s1
-cH
-drop table t1;
-create table t1 (a varchar(255)) default character set utf8;
-insert into t1 values (1.0);
-drop table t1;
-create table t1 (
-id int not null,
-city varchar(20) not null,
-key (city(7),id)
-) character set=utf8;
-insert into t1 values (1,'Durban North');
-insert into t1 values (2,'Durban');
-select * from t1 where city = 'Durban';
-id city
-2 Durban
-select * from t1 where city = 'Durban ';
-id city
-2 Durban
-drop table t1;
-create table t1 (x set('A', 'B') default 0) character set utf8;
-ERROR 42000: Invalid default value for 'x'
-create table t1 (x enum('A', 'B') default 0) character set utf8;
-ERROR 42000: Invalid default value for 'x'
-SET NAMES UTF8;
-CREATE TABLE t1 (
-`id` int(20) NOT NULL auto_increment,
-`country` varchar(100) NOT NULL default '',
-`shortcode` varchar(100) NOT NULL default '',
-`operator` varchar(100) NOT NULL default '',
-`momid` varchar(30) NOT NULL default '',
-`keyword` varchar(160) NOT NULL default '',
-`content` varchar(160) NOT NULL default '',
-`second_token` varchar(160) default NULL,
-`gateway_id` int(11) NOT NULL default '0',
-`created` datetime NOT NULL default '0000-00-00 00:00:00',
-`msisdn` varchar(15) NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `MSCCSPK_20030521130957121` (`momid`),
-KEY `IX_mobile_originated_message_keyword` (`keyword`),
-KEY `IX_mobile_originated_message_created` (`created`),
-KEY `IX_mobile_originated_message_support` (`msisdn`,`momid`,`keyword`,`gateway_id`,`created`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-INSERT INTO t1 VALUES
-(1,'blah','464','aaa','fkc1c9ilc20x0hgae7lx6j09','ERR','ERR Имри.Ðфимим.Ðеимимримдмримрмрирор имримримримр имридм ирбднримрфмририримрфмфмим.Ðд.Д имдимримрад.Ðдимримримрмдиримримримр м.Дадимфшьмримд им.Ðдимимрн имадми','ИМРИ.ÐФИМИМ.ÐЕИМИМРИМДМРИМРМРИРОР',3,'2005-06-01 17:30:43','1234567890'),
-(2,'blah','464','aaa','haxpl2ilc20x00bj4tt2m5ti','11','11 g','G',3,'2005-06-02 22:43:10','1234567890');
-CREATE TABLE t2 (
-`msisdn` varchar(15) NOT NULL default '',
-`operator_id` int(11) NOT NULL default '0',
-`created` datetime NOT NULL default '0000-00-00 00:00:00',
-UNIQUE KEY `PK_user` (`msisdn`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO t2 VALUES ('1234567890',2,'2005-05-24 13:53:25');
-SELECT content, t2.msisdn FROM t1, t2 WHERE t1.msisdn = '1234567890';
-content msisdn
-ERR Имри.Ðфимим.Ðеимимримдмримрмрирор имримримримр имридм ирбднримрфмририримрфмфмим.Ðд.Д имдимримрад.Ðдимримримрмдиримримримр м.Дадимфшьмримд им.Ðдимимрн имадми 1234567890
-11 g 1234567890
-DROP TABLE t1,t2;
-create table t1 (a char(20) character set utf8);
-insert into t1 values ('123456'),('андрей');
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 modify a char(2) character set utf8;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-Warning 1265 Data truncated for column 'a' at row 2
-select char_length(a), length(a), a from t1 order by a;
-char_length(a) length(a) a
-2 2 12
-2 4 ан
-drop table t1;
-set names utf8;
-select 'andre%' like 'andreñ%' escape 'ñ';
-'andre%' like 'andreñ%' escape 'ñ'
-1
-set names utf8;
-select 'a\\' like 'a\\';
-'a\\' like 'a\\'
-1
-select 'aa\\' like 'a%\\';
-'aa\\' like 'a%\\'
-1
-create table t1 (a char(10), key(a)) character set utf8;
-insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
-select * from t1 where a like "abc%";
-a
-abc
-abcd
-select * from t1 where a like concat("abc","%");
-a
-abc
-abcd
-select * from t1 where a like "ABC%";
-a
-abc
-abcd
-select * from t1 where a like "test%";
-a
-test
-select * from t1 where a like "te_t";
-a
-test
-select * from t1 where a like "%a%";
-a
-a
-abc
-abcd
-select * from t1 where a like "%abcd%";
-a
-abcd
-select * from t1 where a like "%abc\d%";
-a
-abcd
-drop table t1;
-CREATE TABLE t1 (
-a varchar(255) NOT NULL default '',
-KEY a (a)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_general_ci;
-insert into t1 values (_utf8 0xe880bd);
-insert into t1 values (_utf8 0x5b);
-select hex(a) from t1;
-hex(a)
-5B
-E880BD
-drop table t1;
-set names 'latin1';
-create table t1 (a varchar(255)) default charset=utf8;
-select * from t1 where find_in_set('-1', a);
-a
-drop table t1;
-create table t1 (a int);
-insert into t1 values (48),(49),(50);
-set names utf8;
-select distinct char(a) from t1;
-char(a)
-0
-1
-2
-drop table t1;
-CREATE TABLE t1 (t TINYTEXT CHARACTER SET utf8);
-INSERT INTO t1 VALUES(REPEAT('a', 100));
-CREATE TEMPORARY TABLE t2 SELECT COALESCE(t) AS bug FROM t1;
-SELECT LENGTH(bug) FROM t2;
-LENGTH(bug)
-100
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (item varchar(255)) default character set utf8;
-INSERT INTO t1 VALUES (N'\\');
-INSERT INTO t1 VALUES (_utf8'\\');
-INSERT INTO t1 VALUES (N'Cote d\'Ivoire');
-INSERT INTO t1 VALUES (_utf8'Cote d\'Ivoire');
-SELECT item FROM t1 ORDER BY item;
-item
-Cote d'Ivoire
-Cote d'Ivoire
-\
-\
-DROP TABLE t1;
-SET NAMES utf8;
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1(a VARCHAR(255), KEY(a)) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
-INSERT INTO t1 VALUES('uu');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uU');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uu');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('UuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-alter table t1 add b int;
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',1);
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',2);
-delete from t1 where b=1;
-INSERT INTO t1 VALUES('UUABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',1);
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',3);
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',4);
-delete from t1 where b=3;
-INSERT INTO t1 VALUES('uUABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',3);
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-set names utf8;
-create table t1 (s1 char(5) character set utf8);
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_general_ci from t1 where s1 like 'ペテ%';
-before_delete_general_ci
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_general_ci from t1 where s1 like 'ペテ%';
-after_delete_general_ci
-ペテルグル
-drop table t1;
-set names utf8;
-create table t1 (s1 char(5) character set utf8 collate utf8_unicode_ci);
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_unicode_ci from t1 where s1 like 'ペテ%';
-before_delete_unicode_ci
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_unicode_ci from t1 where s1 like 'ペテ%';
-after_delete_unicode_ci
-ペテルグル
-drop table t1;
-set names utf8;
-create table t1 (s1 char(5) character set utf8 collate utf8_bin);
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_bin from t1 where s1 like 'ペテ%';
-before_delete_bin
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_bin from t1 where s1 like 'ペテ%';
-after_delete_bin
-ペテルグル
-drop table t1;
-set names utf8;
-create table t1 (a varchar(30) not null primary key)
-engine=innodb default character set utf8 collate utf8_general_ci;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as gci1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-gci1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as gci2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-gci2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-set names utf8;
-create table t1 (a varchar(30) not null primary key)
-engine=innodb default character set utf8 collate utf8_unicode_ci;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as uci1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-uci1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as uci2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-uci2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-set names utf8;
-create table t1 (a varchar(30) not null primary key)
-engine=innodb default character set utf8 collate utf8_bin;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as bin1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-bin1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as bin2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-bin2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-SET NAMES utf8;
-CREATE TABLE t1 (id int PRIMARY KEY,
-a varchar(16) collate utf8_unicode_ci NOT NULL default '',
-b int,
-f varchar(128) default 'XXX',
-INDEX (a(4))
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-INSERT INTO t1(id, a, b) VALUES
-(1, 'cccc', 50), (2, 'cccc', 70), (3, 'cccc', 30),
-(4, 'cccc', 30), (5, 'cccc', 20), (6, 'bbbbbb', 40),
-(7, 'dddd', 30), (8, 'aaaa', 10), (9, 'aaaa', 50),
-(10, 'eeeee', 40), (11, 'bbbbbb', 60);
-SELECT id, a, b FROM t1;
-id a b
-1 cccc 50
-2 cccc 70
-3 cccc 30
-4 cccc 30
-5 cccc 20
-6 bbbbbb 40
-7 dddd 30
-8 aaaa 10
-9 aaaa 50
-10 eeeee 40
-11 bbbbbb 60
-SELECT id, a, b FROM t1 WHERE a BETWEEN 'aaaa' AND 'bbbbbb';
-id a b
-8 aaaa 10
-9 aaaa 50
-6 bbbbbb 40
-11 bbbbbb 60
-SELECT id, a FROM t1 WHERE a='bbbbbb';
-id a
-6 bbbbbb
-11 bbbbbb
-SELECT id, a FROM t1 WHERE a='bbbbbb' ORDER BY b;
-id a
-6 bbbbbb
-11 bbbbbb
-DROP TABLE t1;
-SET NAMES utf8;
-CREATE TABLE t1 (
-a CHAR(13) DEFAULT '',
-INDEX(a)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
-INSERT INTO t1 VALUES
-('Käli Käli 2-4'), ('Käli Käli 2-4'),
-('Käli Käli 2+4'), ('Käli Käli 2+4'),
-('Käli Käli 2-6'), ('Käli Käli 2-6');
-INSERT INTO t1 SELECT * FROM t1;
-CREATE TABLE t2 (
-a CHAR(13) DEFAULT '',
-INDEX(a)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO t2 VALUES
-('Kali Kali 2-4'), ('Kali Kali 2-4'),
-('Kali Kali 2+4'), ('Kali Kali 2+4'),
-('Kali Kali 2-6'), ('Kali Kali 2-6');
-INSERT INTO t2 SELECT * FROM t2;
-SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
-a
-Käli Käli 2+4
-Käli Käli 2+4
-Käli Käli 2+4
-Käli Käli 2+4
-SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
-a
-Kali Kali 2+4
-Kali Kali 2+4
-Kali Kali 2+4
-Kali Kali 2+4
-EXPLAIN SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 40 NULL 4 Using where; Using index
-EXPLAIN SELECT a FROM t1 WHERE a = 'Käli Käli 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 40 const 4 Using where; Using index
-EXPLAIN SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 14 NULL 4 Using where; Using index
-EXPLAIN SELECT a FROM t2 WHERE a = 'Kali Kali 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref a a 14 const 4 Using where; Using index
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-a char(255) DEFAULT '',
-KEY(a(10))
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-DROP TABLE t1;
-CREATE TABLE t1 (
-a char(255) DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-ALTER TABLE t1 ADD KEY (a(10));
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-DROP TABLE t1;
-SET NAMES latin2;
-CREATE TABLE t1 (
-id int(11) NOT NULL default '0',
-tid int(11) NOT NULL default '0',
-val text NOT NULL,
-INDEX idx(tid, val(10))
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-INSERT INTO t1 VALUES
-(40988,72,'VOLNÝ ADSL'),(41009,72,'VOLNÝ ADSL'),
-(41032,72,'VOLNÝ ADSL'),(41038,72,'VOLNÝ ADSL'),
-(41063,72,'VOLNÝ ADSL'),(41537,72,'VOLNÝ ADSL Office'),
-(42141,72,'VOLNÝ ADSL'),(42565,72,'VOLNÝ ADSL Combi'),
-(42749,72,'VOLNÝ ADSL'),(44205,72,'VOLNÝ ADSL');
-SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNY ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNÝ ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-SELECT * FROM t1 WHERE tid=72 and val LIKE '%VOLNÝ ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-ALTER TABLE t1 DROP KEY idx;
-ALTER TABLE t1 ADD KEY idx (tid,val(11));
-SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNÝ ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-DROP TABLE t1;
-create table t1(a char(200) collate utf8_unicode_ci NOT NULL default '')
-default charset=utf8 collate=utf8_unicode_ci;
-insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65'));
-explain select distinct a from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary
-select distinct a from t1;
-a
-e
-explain select a from t1 group by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
-select a from t1 group by a;
-a
-e
-drop table t1;
-create table t1(a char(10)) default charset utf8;
-insert into t1 values ('123'), ('456');
-explain
-select substr(Z.a,-1), Z.a from t1 as Y join t1 as Z on Y.a=Z.a order by 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Y ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-1 SIMPLE Z ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-select substr(Z.a,-1), Z.a from t1 as Y join t1 as Z on Y.a=Z.a order by 1;
-substr(Z.a,-1) a
-3 123
-6 456
-drop table t1;
-SET CHARACTER SET utf8;
-SHOW VARIABLES LIKE 'character\_set\_%';
-Variable_name Value
-character_set_client utf8
-character_set_connection latin1
-character_set_database latin1
-character_set_filesystem binary
-character_set_results utf8
-character_set_server latin1
-character_set_system utf8
-CREATE DATABASE crashtest DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
-USE crashtest;
-CREATE TABLE crashtest (crash char(10)) DEFAULT CHARSET=utf8;
-INSERT INTO crashtest VALUES ('35'), ('36'), ('37');
-SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8);
-crash
-35
-36
-37
-INSERT INTO crashtest VALUES ('-1000');
-EXPLAIN SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE crashtest ALL NULL NULL NULL NULL 4 Using filesort
-SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8);
-crash
--1000
-35
-36
-37
-Warnings:
-Warning 1300 Invalid utf8 character string: 'FFFFFC'
-DROP TABLE crashtest;
-DROP DATABASE crashtest;
-USE test;
-SET CHARACTER SET default;
-CREATE TABLE t1(id varchar(20) NOT NULL) DEFAULT CHARSET=utf8;
-INSERT INTO t1 VALUES ('xxx'), ('aa'), ('yyy'), ('aa');
-SELECT id FROM t1;
-id
-xxx
-aa
-yyy
-aa
-SELECT DISTINCT id FROM t1;
-id
-xxx
-aa
-yyy
-SELECT DISTINCT id FROM t1 ORDER BY id;
-id
-aa
-xxx
-yyy
-DROP TABLE t1;
-create table t1 (
-a varchar(26) not null
-) default character set utf8;
-insert into t1 (a) values ('abcdefghijklmnopqrstuvwxyz');
-select * from t1;
-a
-abcdefghijklmnopqrstuvwxyz
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(20) character set utf8 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghijklmnopqrst
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a char(15) character set utf8 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghijklmno
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a char(10) character set utf8 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghij
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(5) character set utf8 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcde
-drop table t1;
-create table t1 (
-a varchar(4000) not null
-) default character set utf8;
-insert into t1 values (repeat('a',4000));
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(3000) character set utf8 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select length(a) from t1;
-length(a)
-3000
-drop table t1;
-set names utf8;
-select hex(char(1 using utf8));
-hex(char(1 using utf8))
-01
-select char(0xd1,0x8f using utf8);
-char(0xd1,0x8f using utf8)
-select char(0xd18f using utf8);
-char(0xd18f using utf8)
-select char(53647 using utf8);
-char(53647 using utf8)
-select char(0xff,0x8f using utf8);
-char(0xff,0x8f using utf8)
-NULL
-Warnings:
-Warning 1300 Invalid utf8 character string: 'FF8F'
-select convert(char(0xff,0x8f) using utf8);
-convert(char(0xff,0x8f) using utf8)
-??
-Warnings:
-Warning 1300 Invalid utf8 character string: '\xFF\x8F'
-set sql_mode=traditional;
-select char(0xff,0x8f using utf8);
-char(0xff,0x8f using utf8)
-NULL
-Warnings:
-Warning 1300 Invalid utf8 character string: 'FF8F'
-select char(195 using utf8);
-char(195 using utf8)
-NULL
-Warnings:
-Warning 1300 Invalid utf8 character string: 'C3'
-select char(196 using utf8);
-char(196 using utf8)
-NULL
-Warnings:
-Warning 1300 Invalid utf8 character string: 'C4'
-select char(2557 using utf8);
-char(2557 using utf8)
-NULL
-Warnings:
-Warning 1300 Invalid utf8 character string: 'FD'
-select convert(char(0xff,0x8f) using utf8);
-convert(char(0xff,0x8f) using utf8)
-??
-Warnings:
-Warning 1300 Invalid utf8 character string: '\xFF\x8F'
-select hex(convert(char(2557 using latin1) using utf8));
-hex(convert(char(2557 using latin1) using utf8))
-09C3BD
-select hex(char(195));
-hex(char(195))
-C3
-select hex(char(196));
-hex(char(196))
-C4
-select hex(char(2557));
-hex(char(2557))
-09FD
-set names utf8;
-create table t1 (a char(1)) default character set utf8;
-create table t2 (a char(1)) default character set utf8;
-insert into t1 values('a'),('a'),(0xE38182),(0xE38182);
-insert into t1 values('i'),('i'),(0xE38184),(0xE38184);
-select * from t1 union distinct select * from t2;
-a
-a
-ã‚
-i
-ã„
-drop table t1,t2;
-set names utf8;
-create table t1 (a char(10), b varchar(10));
-insert into t1 values ('bar','kostja');
-insert into t1 values ('kostja','bar');
-prepare my_stmt from "select * from t1 where a=?";
-set @a:='bar';
-execute my_stmt using @a;
-a b
-bar kostja
-set @a:='kostja';
-execute my_stmt using @a;
-a b
-kostja bar
-set @a:=null;
-execute my_stmt using @a;
-a b
-drop table if exists t1;
-drop table if exists t1;
-drop view if exists v1, v2;
-set names utf8;
-create table t1(col1 varchar(12) character set utf8 collate utf8_unicode_ci);
-insert into t1 values('t1_val');
-create view v1 as select 'v1_val' as col1;
-select coercibility(col1), collation(col1) from v1;
-coercibility(col1) collation(col1)
-4 utf8_general_ci
-create view v2 as select col1 from v1 union select col1 from t1;
-select coercibility(col1), collation(col1)from v2;
-coercibility(col1) collation(col1)
-2 utf8_unicode_ci
-2 utf8_unicode_ci
-drop view v1, v2;
-create view v1 as select 'v1_val' collate utf8_swedish_ci as col1;
-select coercibility(col1), collation(col1) from v1;
-coercibility(col1) collation(col1)
-0 utf8_swedish_ci
-create view v2 as select col1 from v1 union select col1 from t1;
-select coercibility(col1), collation(col1) from v2;
-coercibility(col1) collation(col1)
-0 utf8_swedish_ci
-0 utf8_swedish_ci
-drop view v1, v2;
-drop table t1;
-set names utf8;
-create table t1 (a varchar(10) character set latin1, b int);
-insert into t1 values ('a',1);
-select concat(a, if(b>10, N'x', N'y')) from t1;
-concat(a, if(b>10, N'x', N'y'))
-ay
-select concat(a, if(b>10, N'æ', N'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8;
-create table t1 (a varchar(10) character set latin1, b int);
-insert into t1 values ('a',1);
-select concat(a, if(b>10, _utf8'x', _utf8'y')) from t1;
-concat(a, if(b>10, _utf8'x', _utf8'y'))
-ay
-select concat(a, if(b>10, _utf8'æ', _utf8'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8;
-create table t1 (a varchar(10) character set latin1, b int);
-insert into t1 values ('a',1);
-select concat(a, if(b>10, _utf8 0x78, _utf8 0x79)) from t1;
-concat(a, if(b>10, _utf8 0x78, _utf8 0x79))
-ay
-select concat(a, if(b>10, _utf8 0xC3A6, _utf8 0xC3AF)) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8;
-create table t1 (a varchar(10) character set latin1, b int);
-insert into t1 values ('a',1);
-select concat(a, if(b>10, 'x' 'x', 'y' 'y')) from t1;
-concat(a, if(b>10, 'x' 'x', 'y' 'y'))
-ayy
-select concat(a, if(b>10, 'x' 'æ', 'y' 'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-CREATE TABLE t1 (
-colA int(11) NOT NULL,
-colB varchar(255) character set utf8 NOT NULL,
-PRIMARY KEY (colA)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t1 (colA, colB) VALUES (1, 'foo'), (2, 'foo bar');
-CREATE TABLE t2 (
-colA int(11) NOT NULL,
-colB varchar(255) character set utf8 NOT NULL,
-KEY bad (colA,colB(3))
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t2 (colA, colB) VALUES (1, 'foo'),(2, 'foo bar');
-SELECT * FROM t1 JOIN t2 ON t1.colA=t2.colA AND t1.colB=t2.colB
-WHERE t1.colA < 3;
-colA colB colA colB
-1 foo 1 foo
-2 foo bar 2 foo bar
-DROP TABLE t1, t2;
-SELECT 'н1234567890' UNION SELECT _binary '1';
-н1234567890
-н1234567890
-1
-SELECT 'н1234567890' UNION SELECT 1;
-н1234567890
-н1234567890
-1
-SELECT '1' UNION SELECT 'н1234567890';
-1
-1
-н1234567890
-SELECT 1 UNION SELECT 'н1234567890';
-1
-1
-н1234567890
-CREATE TABLE t1 (c VARCHAR(11)) CHARACTER SET utf8;
-CREATE TABLE t2 (b CHAR(1) CHARACTER SET binary, i INT);
-INSERT INTO t1 (c) VALUES ('н1234567890');
-INSERT INTO t2 (b, i) VALUES ('1', 1);
-SELECT c FROM t1 UNION SELECT b FROM t2;
-c
-н1234567890
-1
-SELECT c FROM t1 UNION SELECT i FROM t2;
-c
-н1234567890
-1
-SELECT b FROM t2 UNION SELECT c FROM t1;
-b
-1
-н1234567890
-SELECT i FROM t2 UNION SELECT c FROM t1;
-i
-1
-н1234567890
-DROP TABLE t1, t2;
-set sql_mode=traditional;
-select hex(char(0xFF using utf8));
-hex(char(0xFF using utf8))
-NULL
-Warnings:
-Warning 1300 Invalid utf8 character string: 'FF'
-select hex(convert(0xFF using utf8));
-hex(convert(0xFF using utf8))
-3F
-Warnings:
-Warning 1300 Invalid utf8 character string: '\xFF'
-select hex(_utf8 0x616263FF);
-ERROR HY000: Invalid utf8 character string: 'FF'
-select hex(_utf8 X'616263FF');
-ERROR HY000: Invalid utf8 character string: 'FF'
-select hex(_utf8 B'001111111111');
-ERROR HY000: Invalid utf8 character string: 'FF'
-select (_utf8 X'616263FF');
-ERROR HY000: Invalid utf8 character string: 'FF'
-set sql_mode=default;
-select hex(char(0xFF using utf8));
-hex(char(0xFF using utf8))
-NULL
-Warnings:
-Warning 1300 Invalid utf8 character string: 'FF'
-select hex(convert(0xFF using utf8));
-hex(convert(0xFF using utf8))
-3F
-Warnings:
-Warning 1300 Invalid utf8 character string: '\xFF'
-select hex(_utf8 0x616263FF);
-ERROR HY000: Invalid utf8 character string: 'FF'
-select hex(_utf8 X'616263FF');
-ERROR HY000: Invalid utf8 character string: 'FF'
-select hex(_utf8 B'001111111111');
-ERROR HY000: Invalid utf8 character string: 'FF'
-select (_utf8 X'616263FF');
-ERROR HY000: Invalid utf8 character string: 'FF'
-#
-# Bug#44131 Binary-mode "order by" returns records in incorrect order for UTF-8 strings
-#
-CREATE TABLE t1 (id int not null primary key, name varchar(10)) character set utf8;
-INSERT INTO t1 VALUES
-(2,'一二三01'),(3,'一二三09'),(4,'一二三02'),(5,'一二三08'),
-(6,'一二三11'),(7,'一二三91'),(8,'一二三21'),(9,'一二三81');
-SELECT * FROM t1 ORDER BY BINARY(name);
-id name
-2 一二三01
-4 一二三02
-5 一二三08
-3 一二三09
-6 一二三11
-8 一二三21
-9 一二三81
-7 一二三91
-DROP TABLE t1;
-CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL);
-INSERT INTO t1 VALUES (70000, 1092), (70001, 1085), (70002, 1065);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70002 1065
-70001 1085
-70000 1092
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-ALTER TABLE t1 ADD UNIQUE (b);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70002 1065
-70001 1085
-70000 1092
-DROP INDEX b ON t1;
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70002 1065
-70001 1085
-70000 1092
-ALTER TABLE t1 ADD INDEX (b);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) from t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70002 1065
-70001 1085
-70000 1092
-DROP TABLE t1;
-End of 5.0 tests
-SELECT LENGTH(RPAD(0.0115E88, 61297, _utf8'ÑÑÑŽÑ'));
-LENGTH(RPAD(0.0115E88, 61297, _utf8'ÑÑÑŽÑ'))
-122587
-SELECT LENGTH(RPAD(0.0115E88, 61297, _utf8'йцуÑ'));
-LENGTH(RPAD(0.0115E88, 61297, _utf8'йцуÑ'))
-122587
-SELECT HEX(RPAD(0x20, 2, _utf8 0xD18F));
-HEX(RPAD(0x20, 2, _utf8 0xD18F))
-20D1
-SELECT HEX(RPAD(0x20, 4, _utf8 0xD18F));
-HEX(RPAD(0x20, 4, _utf8 0xD18F))
-20D18FD1
-SELECT HEX(LPAD(0x20, 2, _utf8 0xD18F));
-HEX(LPAD(0x20, 2, _utf8 0xD18F))
-D120
-SELECT HEX(LPAD(0x20, 4, _utf8 0xD18F));
-HEX(LPAD(0x20, 4, _utf8 0xD18F))
-D18FD120
-SELECT HEX(RPAD(_utf8 0xD18F, 3, 0x20));
-HEX(RPAD(_utf8 0xD18F, 3, 0x20))
-D18F20
-SELECT HEX(LPAD(_utf8 0xD18F, 3, 0x20));
-HEX(LPAD(_utf8 0xD18F, 3, 0x20))
-20D18F
-SELECT HEX(INSERT(_utf8 0xD18F, 2, 1, 0x20));
-HEX(INSERT(_utf8 0xD18F, 2, 1, 0x20))
-D120
-SELECT HEX(INSERT(_utf8 0xD18FD18E, 2, 1, 0x20));
-HEX(INSERT(_utf8 0xD18FD18E, 2, 1, 0x20))
-D120D18E
-#
-# Bug#11752408 - 43593: DUMP/BACKUP/RESTORE/UPGRADE TOOLS FAILS BECAUSE OF UTF8_GENERAL_CI
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8 COLLATE utf8_general_mysql500_ci);
-INSERT INTO t1 VALUES ('a'),('r'),('s'),(_latin1 0xDF),(_latin1 0xF7),('t'),('z');
-SELECT * FROM t1 ORDER BY a;
-a
-a
-r
-s
-t
-z
-ß
-÷
-SELECT a, COUNT(*) FROM t1 GROUP BY a;
-a COUNT(*)
-a 1
-r 1
-s 1
-t 1
-z 1
-ß 1
-÷ 1
-DROP TABLE t1;
-End of 5.1 tests
-Start of 5.4 tests
-SET NAMES utf8mb3;
-SHOW VARIABLES LIKE 'character_set_results%';
-Variable_name Value
-character_set_results utf8
-CREATE TABLE t1 (a CHAR CHARACTER SET utf8mb3 COLLATE utf8mb3_bin);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(1) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SELECT _utf8mb3'test';
-test
-test
-CREATE TABLE t1 (
-clipid INT NOT NULL,
-Tape TINYTEXT,
-PRIMARY KEY (clipid),
-KEY tape(Tape(255))
-) CHARACTER SET=utf8;
-ALTER TABLE t1 ADD mos TINYINT DEFAULT 0 AFTER clipid;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `clipid` int(11) NOT NULL,
- `mos` tinyint(4) DEFAULT 0,
- `Tape` tinytext DEFAULT NULL,
- PRIMARY KEY (`clipid`),
- KEY `tape` (`Tape`(255))
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-predicted_order int NOT NULL,
-utf8_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8;
-INSERT INTO t1 VALUES (19, x'E0B696'), (30, x'E0B69AE0B798'), (61, x'E0B6AF'), (93, x'E0B799'), (52, x'E0B6A6'), (73, x'E0B6BBE0B78AE2808D'), (3, x'E0B686'), (56, x'E0B6AA'), (55, x'E0B6A9'), (70, x'E0B6B9'), (94, x'E0B79A'), (80, x'E0B785'), (25, x'E0B69AE0B791'), (48, x'E0B6A2'), (13, x'E0B690'), (86, x'E0B793'), (91, x'E0B79F'), (81, x'E0B786'), (79, x'E0B784'), (14, x'E0B691'), (99, x'E0B78A'), (8, x'E0B68B'), (68, x'E0B6B7'), (22, x'E0B69A'), (16, x'E0B693'), (33, x'E0B69AE0B7B3'), (38, x'E0B69AE0B79D'), (21, x'E0B683'), (11, x'E0B68E'), (77, x'E0B782'), (40, x'E0B69AE0B78A'), (101, x'E0B78AE2808DE0B6BB'), (35, x'E0B69AE0B79A'), (1, x'E0B7B4'), (9, x'E0B68C'), (96, x'E0B79C'), (6, x'E0B689'), (95, x'E0B79B'), (88, x'E0B796'), (64, x'E0B6B3'), (26, x'E0B69AE0B792'), (82, x'E0B78F'), (28, x'E0B69AE0B794'), (39, x'E0B69AE0B79E'), (97, x'E0B79D'), (2, x'E0B685'), (75, x'E0B780'), (34, x'E0B69AE0B799'), (69, x'E0B6B8'), (83, x'E0B790'), (18, x'E0B695'), (90, x'E0B7B2'), (17, x'E0B694'), (72, x'E0B6BB'), (66, x'E0B6B5'), (59, x'E0B6AD'), (44, x'E0B69E'), (15, x'E0B692'), (23, x'E0B69AE0B78F'), (65, x'E0B6B4'), (42, x'E0B69C'), (63, x'E0B6B1'), (85, x'E0B792'), (47, x'E0B6A1'), (49, x'E0B6A3'), (92, x'E0B7B3'), (78, x'E0B783'), (36, x'E0B69AE0B79B'), (4, x'E0B687'), (24, x'E0B69AE0B790'), (87, x'E0B794'), (37, x'E0B69AE0B79C'), (32, x'E0B69AE0B79F'), (29, x'E0B69AE0B796'), (43, x'E0B69D'), (62, x'E0B6B0'), (100, x'E0B78AE2808DE0B6BA'), (60, x'E0B6AE'), (45, x'E0B69F'), (12, x'E0B68F'), (46, x'E0B6A0'), (50, x'E0B6A5'), (51, x'E0B6A4'), (5, x'E0B688'), (76, x'E0B781'), (89, x'E0B798'), (74, x'E0B6BD'), (10, x'E0B68D'), (57, x'E0B6AB'), (71, x'E0B6BA'), (58, x'E0B6AC'), (27, x'E0B69AE0B793'), (54, x'E0B6A8'), (84, x'E0B791'), (31, x'E0B69AE0B7B2'), (98, x'E0B79E'), (53, x'E0B6A7'), (41, x'E0B69B'), (67, x'E0B6B6'), (7, x'E0B68A'), (20, x'E0B682');
-SELECT predicted_order, hex(utf8_encoding) FROM t1 ORDER BY utf8_encoding COLLATE utf8_sinhala_ci;
-predicted_order hex(utf8_encoding)
-1 E0B7B4
-2 E0B685
-3 E0B686
-4 E0B687
-5 E0B688
-6 E0B689
-7 E0B68A
-8 E0B68B
-9 E0B68C
-10 E0B68D
-11 E0B68E
-12 E0B68F
-13 E0B690
-14 E0B691
-15 E0B692
-16 E0B693
-17 E0B694
-18 E0B695
-19 E0B696
-20 E0B682
-21 E0B683
-22 E0B69A
-23 E0B69AE0B78F
-24 E0B69AE0B790
-25 E0B69AE0B791
-26 E0B69AE0B792
-27 E0B69AE0B793
-28 E0B69AE0B794
-29 E0B69AE0B796
-30 E0B69AE0B798
-31 E0B69AE0B7B2
-32 E0B69AE0B79F
-33 E0B69AE0B7B3
-34 E0B69AE0B799
-35 E0B69AE0B79A
-36 E0B69AE0B79B
-37 E0B69AE0B79C
-38 E0B69AE0B79D
-39 E0B69AE0B79E
-40 E0B69AE0B78A
-41 E0B69B
-42 E0B69C
-43 E0B69D
-44 E0B69E
-45 E0B69F
-46 E0B6A0
-47 E0B6A1
-48 E0B6A2
-49 E0B6A3
-50 E0B6A5
-51 E0B6A4
-52 E0B6A6
-53 E0B6A7
-54 E0B6A8
-55 E0B6A9
-56 E0B6AA
-57 E0B6AB
-58 E0B6AC
-59 E0B6AD
-60 E0B6AE
-61 E0B6AF
-62 E0B6B0
-63 E0B6B1
-64 E0B6B3
-65 E0B6B4
-66 E0B6B5
-67 E0B6B6
-68 E0B6B7
-69 E0B6B8
-70 E0B6B9
-71 E0B6BA
-72 E0B6BB
-73 E0B6BBE0B78AE2808D
-74 E0B6BD
-75 E0B780
-76 E0B781
-77 E0B782
-78 E0B783
-79 E0B784
-80 E0B785
-81 E0B786
-82 E0B78F
-83 E0B790
-84 E0B791
-85 E0B792
-86 E0B793
-87 E0B794
-88 E0B796
-89 E0B798
-90 E0B7B2
-91 E0B79F
-92 E0B7B3
-93 E0B799
-94 E0B79A
-95 E0B79B
-96 E0B79C
-97 E0B79D
-98 E0B79E
-99 E0B78A
-100 E0B78AE2808DE0B6BA
-101 E0B78AE2808DE0B6BB
-DROP TABLE t1;
-SET NAMES utf8 COLLATE utf8_sinhala_ci;
-CREATE TABLE t1 (s1 VARCHAR(10) COLLATE utf8_sinhala_ci);
-INSERT INTO t1 VALUES ('a'),('ae'),('af');
-SELECT s1,hex(s1) FROM t1 ORDER BY s1;
-s1 hex(s1)
-a 61
-ae 6165
-af 6166
-SELECT * FROM t1 ORDER BY s1;
-s1
-a
-ae
-af
-DROP TABLE t1;
-End of 5.4 tests
-#
-# Start of 5.5 tests
-#
-#
-# Bug#52520 Difference in tinytext utf column metadata
-#
-CREATE TABLE t1 (
-s1 TINYTEXT CHARACTER SET utf8,
-s2 TEXT CHARACTER SET utf8,
-s3 MEDIUMTEXT CHARACTER SET utf8,
-s4 LONGTEXT CHARACTER SET utf8
-);
-SET NAMES utf8, @@character_set_results=NULL;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 255 0 Y 16 0 33
-def test t1 t1 s2 s2 252 65535 0 Y 16 0 33
-def test t1 t1 s3 s3 252 16777215 0 Y 16 0 33
-def test t1 t1 s4 s4 252 4294967295 0 Y 16 0 33
-def HEX(s1) 253 4590 0 Y 0 0 33
-s1 s2 s3 s4 HEX(s1)
-SET NAMES latin1;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 255 0 Y 16 0 8
-def test t1 t1 s2 s2 252 65535 0 Y 16 0 8
-def test t1 t1 s3 s3 252 16777215 0 Y 16 0 8
-def test t1 t1 s4 s4 252 4294967295 0 Y 16 0 8
-def HEX(s1) 253 1530 0 Y 0 0 8
-s1 s2 s3 s4 HEX(s1)
-SET NAMES utf8;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 765 0 Y 16 0 33
-def test t1 t1 s2 s2 252 196605 0 Y 16 0 33
-def test t1 t1 s3 s3 252 50331645 0 Y 16 0 33
-def test t1 t1 s4 s4 252 4294967295 0 Y 16 0 33
-def HEX(s1) 253 4590 0 Y 0 0 33
-s1 s2 s3 s4 HEX(s1)
-CREATE TABLE t2 AS SELECT CONCAT(s1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT(s1)` varchar(255) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1, t2;
-SET NAMES utf8;
-SET TIME_ZONE = _latin1 '+03:00';
-#
-# Start of WL#2649 Number-to-string conversions
-#
-select hex(concat(1));
-hex(concat(1))
-31
-create table t1 as select concat(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-31
-drop table t1;
-select hex(concat(18446744073709551615));
-hex(concat(18446744073709551615))
-3138343436373434303733373039353531363135
-create table t1 as select concat(18446744073709551615) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-3138343436373434303733373039353531363135
-drop table t1;
-select hex(concat(1.1));
-hex(concat(1.1))
-312E31
-create table t1 as select concat(1.1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1;
-hex(c1)
-312E31
-drop table t1;
-select hex(concat('a', 1+2)), charset(concat(1+2));
-hex(concat('a', 1+2)) charset(concat(1+2))
-6133 utf8
-create table t1 as select concat(1+2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1-2));
-hex(concat(1-2))
-2D31
-create table t1 as select concat(1-2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1*2));
-hex(concat(1*2))
-32
-create table t1 as select concat(1*2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1/2));
-hex(concat(1/2))
-302E35303030
-create table t1 as select concat(1/2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(7) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1 div 2));
-hex(concat(1 div 2))
-30
-create table t1 as select concat(1 div 2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1 % 2));
-hex(concat(1 % 2))
-31
-create table t1 as select concat(1 % 2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(-1));
-hex(concat(-1))
-2D31
-create table t1 as select concat(-1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(-(1+2)));
-hex(concat(-(1+2)))
-2D33
-create table t1 as select concat(-(1+2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1|2));
-hex(concat(1|2))
-33
-create table t1 as select concat(1|2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(1&2));
-hex(concat(1&2))
-30
-create table t1 as select concat(1&2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(bit_count(12)));
-hex(concat(bit_count(12)))
-32
-create table t1 as select concat(bit_count(12)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(2<<1));
-hex(concat(2<<1))
-34
-create table t1 as select concat(2<<1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(2>>1));
-hex(concat(2>>1))
-31
-create table t1 as select concat(2>>1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(~0));
-hex(concat(~0))
-3138343436373434303733373039353531363135
-create table t1 as select concat(~0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(3^2));
-hex(concat(3^2))
-31
-create table t1 as select concat(3^2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(abs(-2)));
-hex(concat(abs(-2)))
-32
-create table t1 as select concat(abs(-2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(exp(2)),1));
-hex(left(concat(exp(2)),1))
-37
-create table t1 as select concat(exp(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log(2)),1));
-hex(left(concat(log(2)),1))
-30
-create table t1 as select concat(log(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log2(2)),1));
-hex(left(concat(log2(2)),1))
-31
-create table t1 as select concat(log2(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(log10(2)),1));
-hex(left(concat(log10(2)),1))
-30
-create table t1 as select concat(log10(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(sqrt(2)),1));
-hex(left(concat(sqrt(2)),1))
-31
-create table t1 as select concat(sqrt(2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(pow(2,2)),1));
-hex(left(concat(pow(2,2)),1))
-34
-create table t1 as select concat(pow(2,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(acos(0.5)),1));
-hex(left(concat(acos(0.5)),1))
-31
-create table t1 as select concat(acos(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(asin(0.5)),1));
-hex(left(concat(asin(0.5)),1))
-30
-create table t1 as select concat(asin(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(atan(0.5)),1));
-hex(left(concat(atan(0.5)),1))
-30
-create table t1 as select concat(atan(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(cos(0.5)),1));
-hex(left(concat(cos(0.5)),1))
-30
-create table t1 as select concat(cos(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(sin(0.5)),1));
-hex(left(concat(sin(0.5)),1))
-30
-create table t1 as select concat(sin(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(tan(0.5)),1));
-hex(left(concat(tan(0.5)),1))
-30
-create table t1 as select concat(tan(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(degrees(0)));
-hex(concat(degrees(0)))
-30
-create table t1 as select concat(degrees(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(radians(0)));
-hex(concat(radians(0)))
-30
-create table t1 as select concat(radians(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ceiling(0.5)));
-hex(concat(ceiling(0.5)))
-31
-create table t1 as select concat(ceiling(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(floor(0.5)));
-hex(concat(floor(0.5)))
-30
-create table t1 as select concat(floor(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(round(0.5)));
-hex(concat(round(0.5)))
-31
-create table t1 as select concat(round(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sign(0.5)));
-hex(concat(sign(0.5)))
-31
-create table t1 as select concat(sign(0.5)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(rand()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(length('a')));
-hex(concat(length('a')))
-31
-create table t1 as select concat(length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(char_length('a')));
-hex(concat(char_length('a')))
-31
-create table t1 as select concat(char_length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(bit_length('a')));
-hex(concat(bit_length('a')))
-38
-create table t1 as select concat(bit_length('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(11) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(coercibility('a')));
-hex(concat(coercibility('a')))
-34
-create table t1 as select concat(coercibility('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(locate('a','a')));
-hex(concat(locate('a','a')))
-31
-create table t1 as select concat(locate('a','a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(11) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(field('c','a','b','c')));
-hex(concat(field('c','a','b','c')))
-33
-create table t1 as select concat(field('c','a','b','c')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ascii(61)));
-hex(concat(ascii(61)))
-3534
-create table t1 as select concat(ascii(61)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ord(61)));
-hex(concat(ord(61)))
-3534
-create table t1 as select concat(ord(61)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(7) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(find_in_set('b','a,b,c,d')));
-hex(concat(find_in_set('b','a,b,c,d')))
-32
-create table t1 as select concat(find_in_set('b','a,b,c,d')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select md5('a'), hex(md5('a'));
-md5('a') hex(md5('a'))
-0cc175b9c0f1b6a831c399e269772661 3063633137356239633066316236613833316333393965323639373732363631
-create table t1 as select md5('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(32) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select old_password('a'), hex(old_password('a'));
-old_password('a') hex(old_password('a'))
-60671c896665c3fa 36303637316338393636363563336661
-create table t1 as select old_password('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(16) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select password('a'), hex(password('a'));
-password('a') hex(password('a'))
-*667F407DE7C6AD07358FA38DAED7828A72014B4E 2A36363746343037444537433641443037333538464133384441454437383238413732303134423445
-create table t1 as select password('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(41) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select sha('a'), hex(sha('a'));
-sha('a') hex(sha('a'))
-86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 38366637653433376661613561376663653135643164646362396561656165613337373636376238
-create table t1 as select sha('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(40) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select sha1('a'), hex(sha1('a'));
-sha1('a') hex(sha1('a'))
-86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 38366637653433376661613561376663653135643164646362396561656165613337373636376238
-create table t1 as select sha1('a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(40) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('-1' as signed)));
-hex(concat(cast('-1' as signed)))
-2D31
-create table t1 as select concat(cast('-1' as signed)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('1' as unsigned)));
-hex(concat(cast('1' as unsigned)))
-31
-create table t1 as select concat(cast('1' as unsigned)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast(1/2 as decimal(5,5))));
-hex(concat(cast(1/2 as decimal(5,5))))
-302E3530303030
-create table t1 as select concat(cast(1/2 as decimal(5,5))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(7) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(cast('2001-01-02 03:04:05' as date)));
-hex(concat(cast('2001-01-02 03:04:05' as date)))
-323030312D30312D3032
-create table t1 as select concat(cast('2001-01-02 03:04:05' as date)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2001-01-02
-drop table t1;
-select hex(concat(cast('2001-01-02 03:04:05' as time)));
-hex(concat(cast('2001-01-02 03:04:05' as time)))
-30333A30343A3035
-create table t1 as select concat(cast('2001-01-02 03:04:05' as time)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-03:04:05
-drop table t1;
-select hex(concat(cast('2001-01-02' as datetime)));
-hex(concat(cast('2001-01-02' as datetime)))
-323030312D30312D30322030303A30303A3030
-create table t1 as select concat(cast('2001-01-02' as datetime)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2001-01-02 00:00:00
-drop table t1;
-select hex(concat(least(1,2)));
-hex(concat(least(1,2)))
-31
-create table t1 as select concat(least(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(greatest(1,2)));
-hex(concat(greatest(1,2)))
-32
-create table t1 as select concat(greatest(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(case when 11 then 22 else 33 end));
-hex(concat(case when 11 then 22 else 33 end))
-3232
-create table t1 as select concat(case when 11 then 22 else 33 end) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(coalesce(1,2)));
-hex(concat(coalesce(1,2)))
-31
-create table t1 as select concat(coalesce(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat_ws(1,2,3));
-hex(concat_ws(1,2,3))
-323133
-create table t1 as select concat_ws(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(group_concat(1,2,3));
-hex(group_concat(1,2,3))
-313233
-create table t1 as select group_concat(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` mediumtext CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select 1 as c1 union select 'a';
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select hex(c1) from t1 order by c1;
-hex(c1)
-31
-61
-drop table t1;
-create table t1 as select concat(last_insert_id()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(benchmark(0,0)));
-hex(concat(benchmark(0,0)))
-30
-create table t1 as select concat(benchmark(0,0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sleep(0)));
-hex(concat(sleep(0)))
-30
-create table t1 as select concat(sleep(0)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(is_free_lock('xxxx')));
-hex(concat(is_free_lock('xxxx')))
-31
-create table t1 as select concat(is_free_lock('xxxx')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(is_used_lock('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(release_lock('a')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(crc32('')));
-hex(concat(crc32('')))
-30
-create table t1 as select concat(crc32('')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(uncompressed_length('')));
-hex(concat(uncompressed_length('')))
-30
-create table t1 as select concat(uncompressed_length('')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(connection_id()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(inet_aton('127.1.1.1')));
-hex(concat(inet_aton('127.1.1.1')))
-32313330373732323235
-create table t1 as select concat(inet_aton('127.1.1.1')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(inet_ntoa(2130772225)));
-hex(concat(inet_ntoa(2130772225)))
-3132372E312E312E31
-create table t1 as select concat(inet_ntoa(2130772225)) as c1;
-select * from t1;
-c1
-127.1.1.1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(31) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select 1;
-1
-1
-select hex(concat(row_count()));
-hex(concat(row_count()))
-2D31
-create table t1 as select concat(row_count()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(found_rows()));
-hex(concat(found_rows()))
-30
-create table t1 as select concat(found_rows()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(uuid_short()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(uuid()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(36) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select coercibility(uuid()), coercibility(cast('a' as char character set latin1));
-coercibility(uuid()) coercibility(cast('a' as char character set latin1))
-4 2
-select charset(concat(uuid(), cast('a' as char character set latin1)));
-charset(concat(uuid(), cast('a' as char character set latin1)))
-latin1
-create table t1 as select concat(uuid(), cast('a' as char character set latin1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(37) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(master_pos_wait('non-existent',0,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=1));
-hex(concat(@a1:=1))
-31
-create table t1 as select concat(@a2:=2) as c1, @a3:=3 as c2;
-select hex(c1) from t1;
-hex(c1)
-32
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL,
- `c2` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=1;
-select hex(concat(@a2));
-hex(concat(@a2))
-31
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) CHARACTER SET utf8 DEFAULT NULL,
- `c2` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=sqrt(1)));
-hex(concat(@a1:=sqrt(1)))
-31
-create table t1 as select concat(@a2:=sqrt(1)) as c1, @a3:=sqrt(1) as c2;
-select hex(c1) from t1;
-hex(c1)
-31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL,
- `c2` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=sqrt(1);
-select hex(concat(@a2));
-hex(concat(@a2))
-31
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL,
- `c2` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@a1:=1.1));
-hex(concat(@a1:=1.1))
-312E31
-create table t1 as select concat(@a2:=1.1) as c1, @a3:=1.1 as c2;
-select hex(c1) from t1;
-hex(c1)
-312E31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET utf8 DEFAULT NULL,
- `c2` decimal(2,1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a2=1.1;
-select hex(concat(@a2));
-hex(concat(@a2))
-312E31
-create table t1 as select concat(@a2) as c1, @a2 as c2;
-select hex(c1) from t1;
-hex(c1)
-312E31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(83) CHARACTER SET utf8 DEFAULT NULL,
- `c2` decimal(65,38) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(@@ft_max_word_len));
-hex(concat(@@ft_max_word_len))
-3834
-create table t1 as select concat(@@ft_max_word_len) as c1;
-select hex(c1) from t1;
-hex(c1)
-3834
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a'='a' IS TRUE));
-hex(concat('a'='a' IS TRUE))
-31
-create table t1 as select concat('a'='a' IS TRUE) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a'='a' IS NOT TRUE));
-hex(concat('a'='a' IS NOT TRUE))
-30
-create table t1 as select concat('a'='a' IS NOT TRUE) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NOT 'a'='a'));
-hex(concat(NOT 'a'='a'))
-30
-create table t1 as select concat(NOT 'a'='a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' IS NULL));
-hex(concat('a' IS NULL))
-30
-create table t1 as select concat('a' IS NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' IS NOT NULL));
-hex(concat('a' IS NOT NULL))
-31
-create table t1 as select concat('a' IS NOT NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' rlike 'a'));
-hex(concat('a' rlike 'a'))
-31
-create table t1 as select concat('a' IS NOT NULL) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(strcmp('a','b')));
-hex(concat(strcmp('a','b')))
-2D31
-create table t1 as select concat(strcmp('a','b')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' like 'a'));
-hex(concat('a' like 'a'))
-31
-create table t1 as select concat('a' like 'b') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' between 'b' and 'c'));
-hex(concat('a' between 'b' and 'c'))
-30
-create table t1 as select concat('a' between 'b' and 'c') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat('a' in ('a','b')));
-hex(concat('a' in ('a','b')))
-31
-create table t1 as select concat('a' in ('a','b')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(interval(23, 1, 15, 17, 30, 44, 200)));
-hex(concat(interval(23, 1, 15, 17, 30, 44, 200)))
-33
-create table t1 as select concat(interval(23, 1, 15, 17, 30, 44, 200)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a varchar(10), fulltext key(a));
-insert into t1 values ('a');
-select hex(concat(match (a) against ('a'))) from t1;
-hex(concat(match (a) against ('a')))
-30
-create table t2 as select concat(match (a) against ('a')) as a from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-select hex(ifnull(1,'a'));
-hex(ifnull(1,'a'))
-31
-create table t1 as select ifnull(1,'a') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ifnull(1,1)));
-hex(concat(ifnull(1,1)))
-31
-create table t1 as select concat(ifnull(1,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(ifnull(1.1,1.1)));
-hex(concat(ifnull(1.1,1.1)))
-312E31
-create table t1 as select concat(ifnull(1.1,1.1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(if(1,'b',1));
-hex(if(1,'b',1))
-62
-create table t1 as select if(1,'b',1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(if(1,1,'b'));
-hex(if(1,1,'b'))
-31
-create table t1 as select if(1,1,'b') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(if(1,1,1)));
-hex(concat(if(1,1,1)))
-31
-create table t1 as select concat(if(1,1,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(nullif(1,2)));
-hex(concat(nullif(1,2)))
-31
-create table t1 as select concat(nullif(1,2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Dimension(GeomFromText('LINESTRING(0 0,10 10)'))));
-hex(concat(Dimension(GeomFromText('LINESTRING(0 0,10 10)'))))
-31
-create table t1 as select concat(Dimension(GeomFromText('LINSTRING(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))));
-hex(concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))))
-32
-create table t1 as select concat(NumGeometries(MultiPointFromText('MULTIPOINT(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))));
-hex(concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))))
-32
-create table t1 as select concat(NumPoints(MultiPointFromText('LINESTRING(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))));
-hex(concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))))
-30
-create table t1 as select concat(SRID(MultiPointFromText('MULTIPOINT(0 0,10 10)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))));
-hex(concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))))
-31
-create table t1 as select concat(NumInteriorRings(PolygonFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsEmpty(GeomFromText('POINT(1 1)'))));
-hex(concat(IsEmpty(GeomFromText('POINT(1 1)'))))
-30
-create table t1 as select concat(IsEmpty(GeomFromText('Point(1 1)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(21) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsSimple(GeomFromText('POINT(1 1)'))));
-hex(concat(IsSimple(GeomFromText('POINT(1 1)'))))
-31
-create table t1 as select concat(IsSimple(GeomFromText('Point(1 1)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))));
-hex(concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))))
-30
-create table t1 as select concat(IsClosed(GeomFromText('LineString(1 1,2 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))));
-hex(concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))))
-31
-create table t1 as select concat(Equals(GeomFromText('Point(1 1)'),GeomFromText('Point(1 1)'))) as c1;
-drop table t1;
-select hex(concat(x(GeomFromText('Point(1 2)'))));
-hex(concat(x(GeomFromText('Point(1 2)'))))
-31
-create table t1 as select concat(x(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(y(GeomFromText('Point(1 2)'))));
-hex(concat(y(GeomFromText('Point(1 2)'))))
-32
-create table t1 as select concat(x(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(GLength(GeomFromText('LineString(1 2,2 2)'))));
-hex(concat(GLength(GeomFromText('LineString(1 2,2 2)'))))
-31
-create table t1 as select concat(GLength(GeomFromText('LineString(1 2, 2 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))));
-hex(concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))))
-31
-create table t1 as select concat(Area(GeomFromText('Polygon((0 0,1 0,1 1,0 1,0 0))'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(23) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(GeometryType(GeomFromText('Point(1 2)'))));
-hex(concat(GeometryType(GeomFromText('Point(1 2)'))))
-504F494E54
-create table t1 as select concat(GeometryType(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(AsText(GeomFromText('Point(1 2)'))));
-hex(concat(AsText(GeomFromText('Point(1 2)'))))
-504F494E542831203229
-create table t1 as select concat(AsText(GeomFromText('Point(1 2)'))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` longtext CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(period_add(200902, 2)));
-hex(concat(period_add(200902, 2)))
-323030393034
-create table t1 as select concat(period_add(200902, 2)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(period_diff(200902, 200802)));
-hex(concat(period_diff(200902, 200802)))
-3132
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1 as select concat(period_add(200902, 200802)) as c1;
-Warnings:
-Warning 1265 Data truncated for column 'c1' at row 1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET utf8 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(to_days(20090224)));
-hex(concat(to_days(20090224)))
-373333383237
-create table t1 as select concat(to_days(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofmonth(20090224)));
-hex(concat(dayofmonth(20090224)))
-3234
-create table t1 as select concat(dayofmonth(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofyear(20090224)));
-hex(concat(dayofyear(20090224)))
-3535
-create table t1 as select concat(dayofyear(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(hour('10:11:12')));
-hex(concat(hour('10:11:12')))
-3130
-create table t1 as select concat(hour('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(minute('10:11:12')));
-hex(concat(minute('10:11:12')))
-3131
-create table t1 as select concat(minute('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(second('10:11:12')));
-hex(concat(second('10:11:12')))
-3132
-create table t1 as select concat(second('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(quarter(20090224)));
-hex(concat(quarter(20090224)))
-31
-create table t1 as select concat(quarter(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(week(20090224)));
-hex(concat(week(20090224)))
-38
-create table t1 as select concat(week(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(yearweek(20090224)));
-hex(concat(yearweek(20090224)))
-323030393038
-create table t1 as select concat(yearweek(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(year(20090224)));
-hex(concat(year(20090224)))
-32303039
-create table t1 as select concat(year(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(weekday(20090224)));
-hex(concat(weekday(20090224)))
-31
-create table t1 as select concat(weekday(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(dayofweek(20090224)));
-hex(concat(dayofweek(20090224)))
-33
-create table t1 as select concat(dayofweek(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(unix_timestamp(20090224)));
-hex(concat(unix_timestamp(20090224)))
-31323335343232383030
-create table t1 as select concat(unix_timestamp(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(17) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(time_to_sec('10:11:12')));
-hex(concat(time_to_sec('10:11:12')))
-3336363732
-create table t1 as select concat(time_to_sec('10:11:12')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(17) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(extract(year from 20090702)));
-hex(concat(extract(year from 20090702)))
-32303039
-create table t1 as select concat(extract(year from 20090702)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(microsecond('12:00:00.123456')));
-hex(concat(microsecond('12:00:00.123456')))
-313233343536
-create table t1 as select concat(microsecond('12:00:00.123456')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(month(20090224)));
-hex(concat(month(20090224)))
-32
-create table t1 as select concat(month(20090224)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(last_day('2003-02-05')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2003-02-28 323030332D30322D3238
-drop table t1;
-create table t1 as select concat(from_days(730669)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2000-07-03 323030302D30372D3033
-drop table t1;
-create table t1 as select concat(curdate()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(utc_date()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(curtime()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select repeat('a',20) as c1 limit 0;
-set timestamp=1216359724;
-insert into t1 values (current_date);
-insert into t1 values (current_time);
-select c1, hex(c1) from t1;
-c1 hex(c1)
-2008-07-18 323030382D30372D3138
-08:42:04 30383A34323A3034
-drop table t1;
-create table t1 as select concat(utc_time()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(sec_to_time(2378)));
-hex(concat(sec_to_time(2378)))
-30303A33393A3338
-create table t1 as select concat(sec_to_time(2378)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')));
-hex(concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')))
-32343A30303A3030
-create table t1 as select concat(timediff('2001-01-02 00:00:00', '2001-01-01 00:00:00')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(maketime(10,11,12)));
-hex(concat(maketime(10,11,12)))
-31303A31313A3132
-create table t1 as select concat(maketime(10,11,12)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(get_format(DATE,'USA'));
-hex(get_format(DATE,'USA'))
-256D2E25642E2559
-create table t1 as select get_format(DATE,'USA') as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(17) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(concat(from_unixtime(1111885200)),4));
-hex(left(concat(from_unixtime(1111885200)),4))
-32303035
-create table t1 as select concat(from_unixtime(1111885200)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')));
-hex(concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')))
-323030332D31322D33312032303A30303A3030
-create table t1 as select concat(convert_tz('2004-01-01 12:00:00','+10:00','-6:00')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(date_add('2004-01-01 12:00:00', interval 1 day)));
-hex(concat(date_add('2004-01-01 12:00:00', interval 1 day)))
-323030342D30312D30322031323A30303A3030
-create table t1 as select concat(date_add('2004-01-01 12:00:00', interval 1 day)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2004-01-02 12:00:00
-drop table t1;
-select hex(concat(makedate(2009,1)));
-hex(concat(makedate(2009,1)))
-323030392D30312D3031
-create table t1 as select concat(makedate(2009,1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-c1
-2009-01-01
-drop table t1;
-create table t1 as select concat(now()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(utc_timestamp()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(sysdate()) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(addtime('00:00:00','11:22:33')));
-hex(concat(addtime('00:00:00','11:22:33')))
-31313A32323A3333
-create table t1 as select concat(addtime('00:00:00','11:22:33')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(26) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(concat(subtime('23:59:59','11:22:33')));
-hex(concat(subtime('23:59:59','11:22:33')))
-31323A33373A3236
-create table t1 as select concat(subtime('23:59:59','11:22:33')) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(26) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(elt(1,2,3));
-hex(elt(1,2,3))
-32
-create table t1 as select elt(1,2,3) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(export_set(1,2,3,4,2));
-hex(export_set(1,2,3,4,2))
-323433
-create table t1 as select export_set(1,2,3,4,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(127) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(insert(1133,3,0,22));
-hex(insert(1133,3,0,22))
-313132323333
-create table t1 as select insert(1133,3,0,22) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(6) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lcase(123));
-hex(lcase(123))
-313233
-create table t1 as select lcase(123) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(left(123,1));
-hex(left(123,1))
-31
-create table t1 as select left(123,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lower(123));
-hex(lower(123))
-313233
-create table t1 as select lower(123) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(lpad(1,2,0));
-hex(lpad(1,2,0))
-3031
-create table t1 as select lpad(1,2,0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(ltrim(1));
-hex(ltrim(1))
-31
-create table t1 as select ltrim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(mid(1,1,1));
-hex(mid(1,1,1))
-31
-create table t1 as select mid(1,1,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(repeat(1,2));
-hex(repeat(1,2))
-3131
-create table t1 as select repeat(1,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(replace(1,1,2));
-hex(replace(1,1,2))
-32
-create table t1 as select replace(1,1,2) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(reverse(12));
-hex(reverse(12))
-3231
-create table t1 as select reverse(12) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(right(123,1));
-hex(right(123,1))
-33
-create table t1 as select right(123,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(rpad(1,2,0));
-hex(rpad(1,2,0))
-3130
-create table t1 as select rpad(1,2,0) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(rtrim(1));
-hex(rtrim(1))
-31
-create table t1 as select rtrim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(soundex(1));
-hex(soundex(1))
-
-create table t1 as select soundex(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(4) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(substring(1,1,1));
-hex(substring(1,1,1))
-31
-create table t1 as select substring(1,1,1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(trim(1));
-hex(trim(1))
-31
-create table t1 as select trim(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(ucase(1));
-hex(ucase(1))
-31
-create table t1 as select ucase(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select hex(upper(1));
-hex(upper(1))
-31
-create table t1 as select upper(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select repeat(' ', 64) as a limit 0;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(64) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ("1.1"), ("2.1");
-select a, hex(a) from t1;
-a hex(a)
-1.1 312E31
-2.1 322E31
-update t1 set a= a + 0.1;
-select a, hex(a) from t1;
-a hex(a)
-1.2000000000000002 312E32303030303030303030303030303032
-2.2 322E32
-drop table t1;
-create table t1 (a tinyint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(4) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a tinyint zerofill);
-insert into t1 values (1), (10), (100);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-303031 001
-303130 010
-313030 100
-drop table t1;
-create table t1 (a tinyint(4) zerofill);
-insert into t1 values (1), (10), (100);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-30303031 0001
-30303130 0010
-30313030 0100
-drop table t1;
-create table t1 (a decimal(10,2));
-insert into t1 values (123.45);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3132332E3435
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(12) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a smallint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(6) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a smallint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-3030303031 00001
-3030303130 00010
-3030313030 00100
-3031303030 01000
-3130303030 10000
-drop table t1;
-create table t1 (a mediumint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(9) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a mediumint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-3030303030303031 00000001
-3030303030303130 00000010
-3030303030313030 00000100
-3030303031303030 00001000
-3030303130303030 00010000
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(11) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a int zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-30303030303030303031 0000000001
-30303030303030303130 0000000010
-30303030303030313030 0000000100
-30303030303031303030 0000001000
-30303030303130303030 0000010000
-drop table t1;
-create table t1 (a bigint);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-31
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(20) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a bigint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-3030303030303030303030303030303030303031 00000000000000000001
-3030303030303030303030303030303030303130 00000000000000000010
-3030303030303030303030303030303030313030 00000000000000000100
-3030303030303030303030303030303031303030 00000000000000001000
-3030303030303030303030303030303130303030 00000000000000010000
-drop table t1;
-create table t1 (a float);
-insert into t1 values (123.456);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3132332E343536
-select concat(a) from t1;
-concat(a)
-123.456
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(12) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a float zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-303030303030303030312E31 0000000001.1
-303030303030303031302E31 0000000010.1
-303030303030303130302E31 0000000100.1
-303030303030313030302E31 0000001000.1
-303030303031303030302E31 0000010000.1
-drop table t1;
-create table t1 (a double);
-insert into t1 values (123.456);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3132332E343536
-select concat(a) from t1;
-concat(a)
-123.456
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(22) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a double zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-select hex(concat(a)), a from t1;
-hex(concat(a)) a
-30303030303030303030303030303030303030312E31 00000000000000000001.1
-30303030303030303030303030303030303031302E31 00000000000000000010.1
-30303030303030303030303030303030303130302E31 00000000000000000100.1
-30303030303030303030303030303030313030302E31 00000000000000001000.1
-30303030303030303030303030303031303030302E31 00000000000000010000.1
-drop table t1;
-create table t1 (a year(2));
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-3031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a year);
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-32303031
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(4) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a bit(64));
-insert into t1 values (1);
-select hex(concat(a)) from t1;
-hex(concat(a))
-0000000000000001
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varbinary(64) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values (0);
-insert into t1 values (20010203040506);
-insert into t1 values (19800203040506);
-insert into t1 values ('2001-02-03 04:05:06');
-select hex(concat(a)) from t1;
-hex(concat(a))
-303030302D30302D30302030303A30303A3030
-323030312D30322D30332030343A30353A3036
-313938302D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-select concat(a) from t1;
-concat(a)
-0000-00-00 00:00:00
-2001-02-03 04:05:06
-1980-02-03 04:05:06
-2001-02-03 04:05:06
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(19) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a date);
-insert into t1 values ('2001-02-03');
-insert into t1 values (20010203);
-select hex(concat(a)) from t1;
-hex(concat(a))
-323030312D30322D3033
-323030312D30322D3033
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a time);
-insert into t1 values (1);
-insert into t1 values ('01:02:03');
-select hex(concat(a)) from t1;
-hex(concat(a))
-30303A30303A3031
-30313A30323A3033
-select concat(a) from t1;
-concat(a)
-00:00:01
-01:02:03
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a datetime);
-insert into t1 values ('2001-02-03 04:05:06');
-insert into t1 values (20010203040506);
-select hex(concat(a)) from t1;
-hex(concat(a))
-323030312D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-create table t2 as select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(19) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (a tinyint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(4) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a tinyint zerofill);
-insert into t1 values (1), (10), (100);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(3) YES NULL
-select hex(a) from v1;
-hex(a)
-303031
-303130
-313030
-drop table t1;
-drop view v1;
-create table t1 (a tinyint(30) zerofill);
-insert into t1 values (1), (10), (100);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(30) YES NULL
-select hex(a) from v1;
-hex(a)
-303030303030303030303030303030303030303030303030303030303031
-303030303030303030303030303030303030303030303030303030303130
-303030303030303030303030303030303030303030303030303030313030
-drop table t1;
-drop view v1;
-create table t1 (a decimal(10,2));
-insert into t1 values (123.45);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(12) YES NULL
-select hex(a) from v1;
-hex(a)
-3132332E3435
-drop table t1;
-drop view v1;
-create table t1 (a smallint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(6) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a smallint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(5) YES NULL
-select hex(a) from v1;
-hex(a)
-3030303031
-3030303130
-3030313030
-3031303030
-3130303030
-drop table t1;
-drop view v1;
-create table t1 (a mediumint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(9) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a mediumint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(8) YES NULL
-select hex(a) from v1;
-hex(a)
-3030303030303031
-3030303030303130
-3030303030313030
-3030303031303030
-3030303130303030
-drop table t1;
-drop view v1;
-create table t1 (a int);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(11) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a int zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(10) YES NULL
-select hex(a) from v1;
-hex(a)
-30303030303030303031
-30303030303030303130
-30303030303030313030
-30303030303031303030
-30303030303130303030
-drop table t1;
-drop view v1;
-create table t1 (a bigint);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(20) YES NULL
-select hex(a) from v1;
-hex(a)
-31
-drop table t1;
-drop view v1;
-create table t1 (a bigint zerofill);
-insert into t1 values (1), (10), (100), (1000), (10000);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(20) YES NULL
-select hex(a) from v1;
-hex(a)
-3030303030303030303030303030303030303031
-3030303030303030303030303030303030303130
-3030303030303030303030303030303030313030
-3030303030303030303030303030303031303030
-3030303030303030303030303030303130303030
-drop table t1;
-drop view v1;
-create table t1 (a float);
-insert into t1 values (123.456);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(12) YES NULL
-select hex(a) from v1;
-hex(a)
-3132332E343536
-drop table t1;
-drop view v1;
-create table t1 (a float zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(12) YES NULL
-select hex(a) from v1;
-hex(a)
-303030303030303030312E31
-303030303030303031302E31
-303030303030303130302E31
-303030303030313030302E31
-303030303031303030302E31
-drop table t1;
-drop view v1;
-create table t1 (a double);
-insert into t1 values (123.456);
-select concat(a) from t1;
-concat(a)
-123.456
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(22) YES NULL
-select hex(a) from v1;
-hex(a)
-3132332E343536
-drop table t1;
-drop view v1;
-create table t1 (a double zerofill);
-insert into t1 values (1.1), (10.1), (100.1), (1000.1), (10000.1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(22) YES NULL
-select hex(a) from v1;
-hex(a)
-30303030303030303030303030303030303030312E31
-30303030303030303030303030303030303031302E31
-30303030303030303030303030303030303130302E31
-30303030303030303030303030303030313030302E31
-30303030303030303030303030303031303030302E31
-drop table t1;
-drop view v1;
-create table t1 (a year(2));
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(2) YES NULL
-select hex(a) from v1;
-hex(a)
-3031
-drop table t1;
-drop view v1;
-create table t1 (a year);
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(4) YES NULL
-select hex(a) from v1;
-hex(a)
-32303031
-drop table t1;
-drop view v1;
-create table t1 (a bit(64));
-insert into t1 values (1);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varbinary(64) YES NULL
-select hex(a) from v1;
-hex(a)
-0000000000000001
-drop table t1;
-drop view v1;
-create table t1 (a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values (0);
-insert into t1 values (20010203040506);
-insert into t1 values (19800203040506);
-insert into t1 values ('2001-02-03 04:05:06');
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(19) YES NULL
-select hex(a) from v1;
-hex(a)
-303030302D30302D30302030303A30303A3030
-323030312D30322D30332030343A30353A3036
-313938302D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-drop table t1;
-drop view v1;
-create table t1 (a date);
-insert into t1 values ('2001-02-03');
-insert into t1 values (20010203);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(10) YES NULL
-select hex(a) from v1;
-hex(a)
-323030312D30322D3033
-323030312D30322D3033
-drop table t1;
-drop view v1;
-create table t1 (a time);
-insert into t1 values (1);
-insert into t1 values ('01:02:03');
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(10) YES NULL
-select hex(a) from v1;
-hex(a)
-30303A30303A3031
-30313A30323A3033
-drop table t1;
-drop view v1;
-create table t1 (a datetime);
-insert into t1 values ('2001-02-03 04:05:06');
-insert into t1 values (20010203040506);
-create view v1(a) as select concat(a) from t1;
-show columns from v1;
-Field Type Null Key Default Extra
-a varchar(19) YES NULL
-select hex(a) from v1;
-hex(a)
-323030312D30322D30332030343A30353A3036
-323030312D30322D30332030343A30353A3036
-drop table t1;
-drop view v1;
-create function f1 (par1 int) returns int
-begin
-return concat(par1);
-end|
-set @a= f1(1);
-select hex(@a);
-hex(@a)
-1
-select hex(concat(f1(1)));
-hex(concat(f1(1)))
-31
-create table t1 as select f1(1) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(1)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(1)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(11) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 decimal(18,2)) returns decimal(18,2)
-begin
-return concat(par1);
-end|
-set @a= f1(123.45);
-select hex(@a);
-hex(@a)
-7B
-select hex(concat(f1(123.45)));
-hex(concat(f1(123.45)))
-3132332E3435
-create table t1 as select f1(123.45) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` decimal(18,2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(123.45)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(123.45)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(20) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 float) returns float
-begin
-return concat(par1);
-end|
-set @a= f1(123.45);
-select hex(@a);
-hex(@a)
-7B
-select hex(concat(f1(123.45)));
-hex(concat(f1(123.45)))
-3132332E3435
-create table t1 as select f1(123.45) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` float DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(123.45)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(123.45)) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(12) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-create function f1 (par1 date) returns date
-begin
-return concat(par1);
-end|
-set @a= f1(cast('2001-01-02' as date));
-select hex(@a);
-hex(@a)
-323030312D30312D3032
-select hex(concat(f1(cast('2001-01-02' as date))));
-hex(concat(f1(cast('2001-01-02' as date))))
-323030312D30312D3032
-create table t1 as select f1(cast('2001-01-02' as date)) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as select concat(f1(cast('2001-01-02' as date))) as c1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create view v1 as select concat(f1(cast('2001-01-02' as date))) as c1;
-show columns from v1;
-Field Type Null Key Default Extra
-c1 varchar(10) YES NULL
-drop table t1;
-drop view v1;
-drop function f1;
-#
-# End of WL#2649 Number-to-string conversions
-#
-#
-# Bug#54668 User variable assignments get wrong type
-#
-SET @x=md5('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-utf8 utf8_general_ci
-SET @x=old_password('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-utf8 utf8_general_ci
-SET @x=password('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-utf8 utf8_general_ci
-SET @x=sha('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-utf8 utf8_general_ci
-SET @x=sha1('a');
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-utf8 utf8_general_ci
-SET @x=astext(point(1,2));
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-utf8 utf8_general_ci
-SET @x=aswkt(point(1,2));
-SELECT charset(@x), collation(@x);
-charset(@x) collation(@x)
-utf8 utf8_general_ci
-#
-# Bug#54916 GROUP_CONCAT + IFNULL truncates output
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8_general_ci
-CREATE TABLE t1 (a MEDIUMINT NULL) ENGINE=MYISAM;
-INSERT INTO t1 VALUES (1234567);
-SELECT GROUP_CONCAT(IFNULL(a,'')) FROM t1;
-GROUP_CONCAT(IFNULL(a,''))
-1234567
-SELECT GROUP_CONCAT(IF(a,a,'')) FROM t1;
-GROUP_CONCAT(IF(a,a,''))
-1234567
-SELECT GROUP_CONCAT(CASE WHEN a THEN a ELSE '' END) FROM t1;
-GROUP_CONCAT(CASE WHEN a THEN a ELSE '' END)
-1234567
-SELECT COALESCE(a,'') FROM t1 GROUP BY 1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def COALESCE(a,'') 253 27 7 Y 0 39 33
-COALESCE(a,'')
-1234567
-# All columns must be VARCHAR(9) with the same length:
-CREATE TABLE t2 AS
-SELECT
-CONCAT(a),
-IFNULL(a,''),
-IF(a,a,''),
-CASE WHEN a THEN a ELSE '' END,
-COALESCE(a,'')
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT(a)` varchar(9) CHARACTER SET utf8 DEFAULT NULL,
- `IFNULL(a,'')` varchar(9) CHARACTER SET utf8 NOT NULL,
- `IF(a,a,'')` varchar(9) CHARACTER SET utf8 DEFAULT NULL,
- `CASE WHEN a THEN a ELSE '' END` varchar(9) CHARACTER SET utf8 DEFAULT NULL,
- `COALESCE(a,'')` varchar(9) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT CONCAT_WS(1,2,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT_WS(1,2,3)` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT INSERT(1133,3,0,22) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `INSERT(1133,3,0,22)` varchar(6) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LCASE(a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LCASE(a)` varchar(9) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT UCASE(a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `UCASE(a)` varchar(9) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT REPEAT(1,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `REPEAT(1,2)` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LEFT(123,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEFT(123,2)` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT RIGHT(123,2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `RIGHT(123,2)` varchar(2) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT LTRIM(123) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LTRIM(123)` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT RTRIM(123) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `RTRIM(123)` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT ELT(1,111,222,333) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ELT(1,111,222,333)` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT REPLACE(111,2,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `REPLACE(111,2,3)` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT SUBSTRING_INDEX(111,111,1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `SUBSTRING_INDEX(111,111,1)` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT MAKE_SET(111,222,3) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `MAKE_SET(111,222,3)` varchar(5) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT SOUNDEX(1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `SOUNDEX(1)` varchar(4) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT EXPORT_SET(1,'Y','N','',8);
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `EXPORT_SET(1,'Y','N','',8)` varchar(64) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# End of Bug#54916
-#
-#
-# Bug#58190 BETWEEN no longer uses indexes for date or datetime fields
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8_general_ci
-CREATE TABLE t1 (
-id INT(11) DEFAULT NULL,
-date_column DATE DEFAULT NULL,
-KEY(date_column));
-INSERT INTO t1 VALUES (1,'2010-09-01'),(2,'2010-10-01');
-EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range date_column date_column 4 NULL 1 Using index condition
-ALTER TABLE t1 MODIFY date_column DATETIME DEFAULT NULL;
-EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range date_column date_column 6 NULL 1 Using index condition
-DROP TABLE t1;
-#
-# Bug #31384 DATE_ADD() and DATE_SUB() return binary data
-#
-SELECT @@collation_connection, @@character_set_results;
-@@collation_connection @@character_set_results
-utf8_general_ci utf8
-SELECT
-CHARSET(DATE_SUB('2007-08-03', INTERVAL 1 MINUTE)) AS field_str1,
-CHARSET(DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE)) AS field_str2,
-CHARSET(DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY)) AS field_date,
-CHARSET(DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE)) AS field_datetime;
-field_str1 field_str2 field_date field_datetime
-utf8 utf8 binary binary
-CREATE TABLE t1 AS
-SELECT
-DATE_SUB('2007-08-03', INTERVAL 1 MINUTE) AS field_str1,
-DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE) AS field1_str2,
-DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY) AS field_date,
-DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE) AS field_datetime;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `field_str1` varchar(19) CHARACTER SET utf8 DEFAULT NULL,
- `field1_str2` varchar(19) CHARACTER SET utf8 DEFAULT NULL,
- `field_date` date DEFAULT NULL,
- `field_datetime` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SELECT
-DATE_SUB('2007-08-03', INTERVAL 1 DAY) AS field_str1,
-DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE) AS field1_str2,
-DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY) AS field_date,
-DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE) AS field_datetime;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def field_str1 254 57 10 Y 0 0 33
-def field1_str2 254 57 19 Y 0 0 33
-def field_date 10 10 10 Y 128 0 63
-def field_datetime 12 19 19 Y 128 0 63
-field_str1 field1_str2 field_date field_datetime
-2007-08-02 2007-08-03 17:32:00 2007-08-02 2007-08-03 17:32:00
-SELECT
-HEX(DATE_SUB('2007-08-03', INTERVAL 1 MINUTE)) AS field_str1,
-HEX(DATE_SUB('2007-08-03 17:33:00', INTERVAL 1 MINUTE)) AS field1_str2,
-HEX(DATE_SUB(DATE('2007-08-03'), INTERVAL 1 DAY)) AS field_date,
-HEX(DATE_SUB(CAST('2007-08-03 17:33:00' AS DATETIME), INTERVAL 1 MINUTE)) AS field_datetime;
-field_str1 field1_str2 field_date field_datetime
-323030372D30382D30322032333A35393A3030 323030372D30382D30332031373A33323A3030 323030372D30382D3032 323030372D30382D30332031373A33323A3030
-#
-# MDEV-4841 Wrong character set of ADDTIME() and DATE_ADD()
-#
-SELECT @@collation_connection, @@character_set_results;
-@@collation_connection @@character_set_results
-utf8_general_ci utf8
-SELECT
-CHARSET(ADDTIME(_latin1'10:01:01',_latin1'10:00:00')) AS addtime1,
-CHARSET(ADDTIME('10:01:01','10:00:00')) AS addtime2,
-CHARSET(DATE_ADD(_latin1'2001-01-01 10:01:01',interval 10 second)) AS date_add1,
-CHARSET(DATE_ADD('2001-01-01 10:01:01',interval 10 second)) AS date_add2;
-addtime1 addtime2 date_add1 date_add2
-utf8 utf8 utf8 utf8
-CREATE TABLE t1 AS
-SELECT
-ADDTIME(_latin1'10:01:01',_latin1'10:00:00') AS addtime1,
-ADDTIME('10:01:01','10:00:00') AS addtime2,
-DATE_ADD(_latin1'2001-01-01 10:01:01',interval 10 second) AS date_add1,
-DATE_ADD('2001-01-01 10:01:01',interval 10 second) AS date_add2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `addtime1` varchar(26) CHARACTER SET utf8 DEFAULT NULL,
- `addtime2` varchar(26) CHARACTER SET utf8 DEFAULT NULL,
- `date_add1` varchar(19) CHARACTER SET utf8 DEFAULT NULL,
- `date_add2` varchar(19) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-addtime1 addtime2 date_add1 date_add2
-20:01:01 20:01:01 2001-01-01 10:01:11 2001-01-01 10:01:11
-DROP TABLE t1;
-#
-# Bug#11926811 / Bug#60625 Illegal mix of collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8_general_ci
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE v_LastPaymentDate DATETIME DEFAULT NULL;
-SELECT v_LastPaymentDate < NOW();
-EXPLAIN EXTENDED SELECT v_LastPaymentDate < NOW();
-SHOW WARNINGS;
-EXPLAIN EXTENDED SELECT CONCAT(v_LastPaymentDate, NOW());
-END//
-CALL p1;
-v_LastPaymentDate < NOW()
-NULL
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Level Code Message
-Note 1003 select v_LastPaymentDate@0 < current_timestamp() AS `v_LastPaymentDate < NOW()`
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select concat(convert(v_LastPaymentDate@0 using utf8),current_timestamp()) AS `CONCAT(v_LastPaymentDate, NOW())`
-DROP PROCEDURE p1;
-#
-# Bug#52159 returning time type from function and empty left join causes debug assertion
-#
-CREATE FUNCTION f1() RETURNS TIME RETURN 1;
-CREATE TABLE t1 (b INT);
-INSERT INTO t1 VALUES (0);
-SELECT f1() FROM t1 LEFT JOIN (SELECT 1 AS a FROM t1 LIMIT 0) AS d ON 1 GROUP BY a;
-f1()
-00:00:01
-DROP FUNCTION f1;
-DROP TABLE t1;
-#
-# MDEV-9662 Assertion `precision || !scale' failed in my_decimal_precision_to_length_no_truncation(uint, uint8, bool)
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8_general_ci
-SELECT CASE 1 WHEN 2 THEN ( - '3' ) END;
-CASE 1 WHEN 2 THEN ( - '3' ) END
-NULL
-#
-# MDEV-5702 Incorrect results are returned with NULLIF()
-#
-CREATE TABLE t1 (d DATE);
-INSERT INTO t1 VALUES ('1999-11-11'),('2014-02-04');
-SELECT DISTINCT d, CAST(d AS CHAR), NULLIF(d,"2000-01-01") AS bad, NULLIF(CAST(d AS CHAR),"2000-01-01") AS good FROM t1;
-d CAST(d AS CHAR) bad good
-1999-11-11 1999-11-11 1999-11-11 1999-11-11
-2014-02-04 2014-02-04 2014-02-04 2014-02-04
-CREATE TABLE t2 AS SELECT DISTINCT d, NULLIF(d,'2000-01-01') AS bad FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `d` date DEFAULT NULL,
- `bad` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1, t2;
-SET NAMES latin1;
-SET sql_mode='';
-CREATE TABLE t1(a char(215) CHARACTER SET utf8 NOT NULL DEFAULT '', KEY(a));
-INSERT INTO t1 VALUES ();
-SELECT maketime(`a`,`a`,`a`) FROM t1 GROUP BY 1;
-maketime(`a`,`a`,`a`)
-00:00:00.000000
-DROP TABLE t1;
-SET sql_mode=default;
-#
-# Bug#57687 crash when reporting duplicate group_key error and utf8
-# Bug#58081 Duplicate entry error when doing GROUP BY
-# MDEV-9332 Bug after upgrade to 10.1.10
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0), (0), (1), (0), (0);
-SELECT COUNT(*) FROM t1, t1 t2
-GROUP BY INSERT('', t2.a, t1.a, (@@global.max_binlog_size));
-COUNT(*)
-25
-DROP TABLE t1;
-#
-# Bug#11764503 (Bug#57341) Query in EXPLAIN EXTENDED shows wrong characters
-#
-SET NAMES latin1;
-EXPLAIN EXTENDED SELECT 'abcdÃÂÃÄÅ', _latin1'abcdÃÂÃÄÅ', _utf8'abcdÃÂÃÄÅ' AS u;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 'abcdÃÂÃÄÅ' AS `abcdÃÂÃÄÅ`,_latin1'abcd\xC3\x81\xC3\x82\xC3\x83\xC3\x84\xC3\x85' AS `abcdÃÂÃÄÅ`,_utf8'abcd\xC3\x81\xC3\x82\xC3\x83\xC3\x84\xC3\x85' AS `u`
-SET NAMES utf8;
-EXPLAIN EXTENDED SELECT 'abcdÃÂÃÄÅ', _latin1'abcdÃÂÃÄÅ', _utf8'abcdÃÂÃÄÅ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 'abcdÃÂÃÄÅ' AS `abcdÃÂÃÄÅ`,_latin1'abcd\xC3\x81\xC3\x82\xC3\x83\xC3\x84\xC3\x85' AS `abcdÃÂÂÃÄÅ`,_utf8'abcd\xC3\x81\xC3\x82\xC3\x83\xC3\x84\xC3\x85' AS `abcdÃÂÃÄÅ`
-#
-# Bug#11750518 41090: ORDER BY TRUNCATES GROUP_CONCAT RESULT
-#
-SET NAMES utf8;
-SELECT id, CHAR_LENGTH(GROUP_CONCAT(body)) AS l
-FROM (SELECT 'a' AS id, REPEAT('foo bar', 100) AS body
-UNION ALL
-SELECT 'a' AS id, REPEAT('bla bla', 100) AS body) t1
-GROUP BY id
-ORDER BY l DESC;
-id l
-a 1401
-SELECT id, CHAR_LENGTH(GROUP_CONCAT(body)) AS l
-FROM (SELECT 'a' AS id, REPEAT('foo bar', 100) AS body
-UNION ALL
-SELECT 'a' AS id, REPEAT('bla bla', 100) AS body) t1;
-id l
-a 1401
-#
-# MDEV-7814 Assertion `args[0]->fixed' fails in Item_func_conv_charset::Item_func_conv_charset
-#
-CREATE TABLE t1(a CHAR(1) CHARACTER SET latin1, b INT NOT NULL);
-CREATE TABLE t2(a CHAR(1) CHARACTER SET utf8 COLLATE utf8_general_ci, b INT NOT NULL);
-SELECT (SELECT t2.a FROM t2 WHERE t2.a=t1.a) AS aa, b, COUNT(b) FROM t1 GROUP BY aa;
-aa b COUNT(b)
-DROP TABLE t1,t2;
-#
-# MDEV-7649 wrong result when comparing utf8 column with an invalid literal
-#
-SET NAMES utf8 COLLATE utf8_general_ci;
-#
-# Start of ctype_utf8_ilseq.inc
-#
-CREATE TABLE t1 ENGINE=InnoDB AS SELECT REPEAT(' ', 60) AS ch LIMIT 0;;
-ALTER TABLE t1
-ADD id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
-ADD KEY(ch);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `ch` varchar(60) CHARACTER SET utf8 DEFAULT NULL,
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`),
- KEY `ch` (`ch`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-INSERT INTO t1 (ch) VALUES ('admin'),('admin1');
-SELECT ch FROM t1 WHERE ch='adminðŒ†';
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='adminðŒ†';
-ch
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='adminðŒ†';
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-DELETE FROM t1;
-INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????');
-INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b');
-INSERT INTO t1 (ch) VALUES ('az'),('a?z'),('a??z'),('a???z'),('a????z');
-INSERT INTO t1 (ch) VALUES ('z');
-INSERT INTO t1 (ch) VALUES (_utf8 0x61D080);
-INSERT INTO t1 (ch) VALUES (_utf8 0x61D680);
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-ch
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-ch
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-ch
-z
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-ch
-z
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-ch
-z
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-ch
-z
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-ALTER TABLE t1 DROP KEY ch;
-# 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'''');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'b''');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch<''a', 0xD1,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch>''a', 0xD1,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-z
-# 0xEA9A96 would be a good 3-byte character, 0xEA9A is an incomplete sequence
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xEA9A,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xEA9A,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-# 0x8F is a bad byte sequence (an mb2tail without mb2head)
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-# 0x8F8F is a bad byte sequence (an mb2tail without mb2head, two times)
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F8F,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F8F,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-DROP TABLE t1;
-#
-# End of ctype_utf8_ilseq.inc
-#
-#
-# Start of ctype_utf8_ilseq.inc
-#
-CREATE TABLE t1 ENGINE=MyISAM AS SELECT REPEAT(' ', 60) AS ch LIMIT 0;;
-ALTER TABLE t1
-ADD id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
-ADD KEY(ch);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `ch` varchar(60) CHARACTER SET utf8 DEFAULT NULL,
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`),
- KEY `ch` (`ch`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (ch) VALUES ('admin'),('admin1');
-SELECT ch FROM t1 WHERE ch='adminðŒ†';
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='adminðŒ†';
-ch
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='adminðŒ†';
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-DELETE FROM t1;
-INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????');
-INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b');
-INSERT INTO t1 (ch) VALUES ('az'),('a?z'),('a??z'),('a???z'),('a????z');
-INSERT INTO t1 (ch) VALUES ('z');
-INSERT INTO t1 (ch) VALUES (_utf8 0x61D080);
-INSERT INTO t1 (ch) VALUES (_utf8 0x61D680);
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-ch
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-ch
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-ch
-z
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-ch
-z
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-ch
-z
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-ch
-z
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-ALTER TABLE t1 DROP KEY ch;
-# 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'''');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'b''');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch<''a', 0xD1,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch>''a', 0xD1,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-z
-# 0xEA9A96 would be a good 3-byte character, 0xEA9A is an incomplete sequence
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xEA9A,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xEA9A,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-# 0x8F is a bad byte sequence (an mb2tail without mb2head)
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-# 0x8F8F is a bad byte sequence (an mb2tail without mb2head, two times)
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F8F,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F8F,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-DROP TABLE t1;
-#
-# End of ctype_utf8_ilseq.inc
-#
-#
-# Start of ctype_utf8_ilseq.inc
-#
-CREATE TABLE t1 ENGINE=HEAP AS SELECT REPEAT(' ', 60) AS ch LIMIT 0;;
-ALTER TABLE t1
-ADD id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
-ADD KEY(ch);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `ch` varchar(60) CHARACTER SET utf8 DEFAULT NULL,
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`),
- KEY `ch` (`ch`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-INSERT INTO t1 (ch) VALUES ('admin'),('admin1');
-SELECT ch FROM t1 WHERE ch='adminðŒ†';
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='adminðŒ†';
-ch
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='adminðŒ†';
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-DELETE FROM t1;
-INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????');
-INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b');
-INSERT INTO t1 (ch) VALUES ('az'),('a?z'),('a??z'),('a???z'),('a????z');
-INSERT INTO t1 (ch) VALUES ('z');
-INSERT INTO t1 (ch) VALUES (_utf8 0x61D080);
-INSERT INTO t1 (ch) VALUES (_utf8 0x61D680);
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-ch
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-ch
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†' ORDER BY ch;
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='aðŒ†b' ORDER BY ch;
-ch
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL ch NULL NULL NULL # Using where; Using filesort
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL ch NULL NULL NULL # Using where; Using filesort
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'aðŒ†b' ORDER BY ch;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-ch
-z
-SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-ch
-z
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL ch NULL NULL NULL # Using where; Using filesort
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†' ORDER BY ch;
-ch
-z
-EXPLAIN
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL ch NULL NULL NULL # Using where; Using filesort
-SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'aðŒ†b' ORDER BY ch;
-ch
-z
-ALTER TABLE t1 DROP KEY ch;
-# 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'''');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'b''');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch<''a', 0xD1,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-a
-a?
-a??
-a???
-a????
-a????b
-a????z
-a???b
-a???z
-a??b
-a??z
-a?b
-a?z
-ab
-az
-aЀ
-aÖ€
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch>''a', 0xD1,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-z
-# 0xEA9A96 would be a good 3-byte character, 0xEA9A is an incomplete sequence
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xEA9A,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xEA9A,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-# 0x8F is a bad byte sequence (an mb2tail without mb2head)
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-# 0x8F8F is a bad byte sequence (an mb2tail without mb2head, two times)
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F8F,''' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0x8F8F,'b'' ORDER BY ch');
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-ch
-DROP TABLE t1;
-#
-# End of ctype_utf8_ilseq.inc
-#
-#
-# MDEV-8067 correct fix for MySQL Bug # 19699237: UNINITIALIZED VARIABLE IN ITEM_FIELD::STR_RESULT
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8);
-CREATE TABLE t2 (a VARCHAR(10) CHARACTER SET latin1);
-INSERT INTO t1 VALUES ('aaa');
-INSERT INTO t2 VALUES ('aaa');
-SELECT (SELECT CONCAT(a),1 FROM t1) <=> (SELECT CONCAT(a),1 FROM t2);
-(SELECT CONCAT(a),1 FROM t1) <=> (SELECT CONCAT(a),1 FROM t2)
-1
-INSERT INTO t1 VALUES ('aaa');
-INSERT INTO t2 VALUES ('aaa');
-SELECT (SELECT CONCAT(a),1 FROM t1) <=> (SELECT CONCAT(a),1 FROM t2);
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1, t2;
-#
-# MDEV-8630 Datetime value dropped in "INSERT ... SELECT ... ON DUPLICATE KEY"
-#
-SET NAMES utf8;
-CREATE TABLE t1 (id2 int, ts timestamp);
-INSERT INTO t1 VALUES (1,'2012-06-11 15:17:34'),(2,'2012-06-11 15:18:24');
-CREATE TABLE t2 AS SELECT
-COALESCE(ts, 0) AS c0,
-GREATEST(COALESCE(ts, 0), COALESCE(ts, 0)) AS c1,
-GREATEST(CASE WHEN 1 THEN ts ELSE 0 END, CASE WHEN 1 THEN ts ELSE 0 END) AS c2,
-GREATEST(IFNULL(ts,0), IFNULL(ts,0)) AS c3,
-GREATEST(IF(1,ts,0), IF(1,ts,0)) AS c4
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c0` varchar(19) CHARACTER SET utf8 NOT NULL,
- `c1` varchar(19) CHARACTER SET utf8 NOT NULL,
- `c2` varchar(19) CHARACTER SET utf8 NOT NULL,
- `c3` varchar(19) CHARACTER SET utf8 NOT NULL,
- `c4` varchar(19) CHARACTER SET utf8 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-c0 c1 c2 c3 c4
-2012-06-11 15:17:34 2012-06-11 15:17:34 2012-06-11 15:17:34 2012-06-11 15:17:34 2012-06-11 15:17:34
-2012-06-11 15:18:24 2012-06-11 15:18:24 2012-06-11 15:18:24 2012-06-11 15:18:24 2012-06-11 15:18:24
-DROP TABLE t2, t1;
-#
-# MDEV-9319 ALTER from a bigger to a smaller blob type truncates too much data
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a TEXT CHARACTER SET utf8);
-INSERT INTO t1 VALUES (REPEAT('A',100));
-SELECT OCTET_LENGTH(a) FROM t1;
-OCTET_LENGTH(a)
-300
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 MODIFY a TINYTEXT CHARACTER SET utf8;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT OCTET_LENGTH(a),a FROM t1;
-OCTET_LENGTH(a) a
-255 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
-DROP TABLE t1;
-#
-# MDEV-8402 Bug#77473 Bug#21317406 TRUNCATED DATA WITH SUBQUERY & UTF8
-#
-#
-SET NAMES utf8;
-SELECT length(rpad(_utf8 0xD0B1, 65536, _utf8 0xD0B2)) AS data;
-data
-131072
-SELECT length(data) AS len FROM (
-SELECT rpad(_utf8 0xD0B1, 65536, _utf8 0xD0B2) AS data
-) AS sub;
-len
-131072
-SELECT length(rpad(_utf8 0xD0B1, 65535, _utf8 0xD0B2)) AS data;
-data
-131070
-SELECT length(data) AS len FROM (
-SELECT rpad(_utf8 0xD0B1, 65535, _utf8 0xD0B2) AS data
-) AS sub;
-len
-131070
-SELECT length(data) AS len FROM (SELECT REPEAT('ä', 36766) AS data) AS sub;
-len
-73532
-SELECT length(data) AS len FROM (SELECT REPEAT('ä', 36767) AS data) AS sub;
-len
-73534
-SELECT length(data) AS len FROM (SELECT REPEAT('ä', 36778) AS data) AS sub;
-len
-73556
-SELECT length(data) AS len FROM (SELECT REPEAT('ä', 65535) AS data) AS sub;
-len
-131070
-SELECT length(data) AS len FROM (SELECT REPEAT('ä', 65536) AS data) AS sub;
-len
-131072
-SELECT length(data) AS len FROM (SELECT REPEAT('ä', 65537) AS data) AS sub;
-len
-131074
-#
-# MDEV-10717 Assertion `!null_value' failed in virtual bool Item::send(Protocol*, String*)
-#
-CREATE TABLE t1 (i INT, KEY(i));
-INSERT INTO t1 VALUES (20081205),(20050327);
-SELECT HEX(i), HEX(CHAR(i USING utf8)) FROM t1;
-HEX(i) HEX(CHAR(i USING utf8))
-131F197 NULL
-1326A35 01326A35
-Warnings:
-Warning 1300 Invalid utf8 character string: 'F197'
-SET sql_mode='STRICT_ALL_TABLES';
-SELECT HEX(i), HEX(CHAR(i USING utf8)) FROM t1;
-HEX(i) HEX(CHAR(i USING utf8))
-131F197 NULL
-1326A35 01326A35
-Warnings:
-Warning 1300 Invalid utf8 character string: 'F197'
-SELECT CHAR(i USING utf8) FROM t1;
-CHAR(i USING utf8)
-###
-###
-Warnings:
-### 1300 Invalid utf8 character string: 'F197'
-SET sql_mode=DEFAULT;
-DROP TABLE t1;
-#
-# MDEV-13530 VARBINARY doesn't convert to to BLOB for sizes 65533, 65534 and 65535
-#
-SET sql_mode='';
-CREATE TABLE t1 (c1 VARCHAR(21844) CHARACTER SET utf8);
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 varchar(21844) YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(21845) CHARACTER SET utf8);
-Warnings:
-Note 1246 Converting column 'c1' from VARCHAR to TEXT
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 text YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(21846) CHARACTER SET utf8);
-Warnings:
-Note 1246 Converting column 'c1' from VARCHAR to TEXT
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 mediumtext YES NULL
-DROP TABLE t1;
-SET sql_mode=default;
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set names utf8;
-select @@collation_connection;
-@@collation_connection
-utf8_general_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf8 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0041
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-00410041004100410041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-00410041004100410041
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-004100410041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-004100410041
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041004100410041004100200020002000200020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0041004100410041004100200020002000200020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-0041
-select hex(weight_string('A'));
-hex(weight_string('A'))
-0041
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-004100420043
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-00410042
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-004100420043
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-00410042004300200020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-00
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0041
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-004100
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-00410042002000200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-00
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0041
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-004100
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-00410042004300200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-00
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0041
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-004100
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-00410042004300200020002000200020002000200020002000
-select @@collation_connection;
-@@collation_connection
-utf8_general_ci
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-20AC20AC20AC00200020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-20AC20AC00
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-20AC20AC002000200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select @@collation_connection;
-@@collation_connection
-utf8_general_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-0041
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-0041
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-004100420043
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-00410042
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-004100420043
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-00410042004300200020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-20002000430042004100
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-FFBEFFBDFFBCFFDFFFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFFFDFFFBCFFBDFFBEFF
-set @@collation_connection=utf8_bin;
-select @@collation_connection;
-@@collation_connection
-utf8_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0061
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-00610061006100610061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-00610061006100610061
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-006100610061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-006100610061
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0061006100610061006100200020002000200020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0061006100610061006100200020002000200020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-0061
-select hex(weight_string('A'));
-hex(weight_string('A'))
-0041
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-006100620063
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-00610062
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-006100620063
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-00610062006300200020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-00
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0061
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-006100
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-00610062
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0061006200
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-00610062002000200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-00
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0061
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-006100
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-00610062
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0061006200
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-00610062006300200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-00
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0061
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-006100
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-00610062
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0061006200
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-00610062006300200020002000200020002000200020002000
-select @@collation_connection;
-@@collation_connection
-utf8_bin
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-20AC20AC20AC00200020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-20AC20AC00
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-20AC20AC002000200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select @@collation_connection;
-@@collation_connection
-utf8_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-0061
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-0041
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-006100620063
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-00610062
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-006100620063
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-00610062006300200020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-20002000630062006100
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-FF9EFF9DFF9CFFDFFFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFFFDFFF9CFF9DFF9EFF
-#
-# Checking strnxfrm() with odd length
-#
-set max_sort_length=5;
-select @@max_sort_length;
-@@max_sort_length
-5
-create table t1 (a varchar(128) character set utf8 collate utf8_general_ci);
-insert into t1 values ('a'),('b'),('c');
-select * from t1 order by a;
-a
-a
-b
-c
-alter table t1 modify a varchar(128) character set utf8 collate utf8_bin;
-select * from t1 order by a;
-a
-a
-b
-c
-drop table t1;
-set max_sort_length=default;
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.0 tests
-#
-SET NAMES utf8 COLLATE utf8_bin;
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE CONCAT(c1)='a';
-c1
-a
-a
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'a ';
-c1
-a
-SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'a' and concat(`test`.`t1`.`c1`) like 'a '
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1);
-c1
-a
-a
-SELECT * FROM t1 WHERE 'a ' LIKE CONCAT(c1);
-c1
-a
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 'a' = concat(`test`.`t1`.`c1`) and 'a ' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '% '=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '% ' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '%'=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-#
-# MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a'
-#
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ';
-a LENGTH(a)
-a 1
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-a LENGTH(a)
-a 1
-EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a' and `test`.`t1`.`a` not like 'a '
-DROP TABLE t1;
-#
-# End of MDEV-8694
-#
-SET NAMES utf8;
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE CONCAT(c1)='a';
-c1
-a
-a
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'a ';
-c1
-a
-SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE 'a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'a' and concat(`test`.`t1`.`c1`) like 'a '
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1);
-c1
-a
-a
-SELECT * FROM t1 WHERE 'a ' LIKE CONCAT(c1);
-c1
-a
-SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-c1
-a
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where 'a' = concat(`test`.`t1`.`c1`) and 'a ' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '% '=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '% ' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('%'),('% ');
-SELECT * FROM t1 WHERE '%'=CONCAT(c1);
-c1
-%
-%
-SELECT * FROM t1 WHERE 'a' LIKE CONCAT(c1);
-c1
-%
-SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-c1
-%
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`)
-DROP TABLE t1;
-#
-# MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a'
-#
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ';
-a LENGTH(a)
-a 1
-SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-a LENGTH(a)
-a 1
-EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` not like 'a ' and `test`.`t1`.`a` = 'a'
-DROP TABLE t1;
-#
-# End of MDEV-8694
-#
-#
-# MDEV-7149 Constant condition propagation erroneously applied for LIKE
-#
-CREATE TABLE t1 AS SELECT REPEAT('a',10) AS c1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('ae'),('ä');
-SELECT * FROM t1 WHERE c1='ä';
-c1
-ä
-SELECT * FROM t1 WHERE c1 LIKE 'ae';
-c1
-ae
-SELECT * FROM t1 WHERE c1='ä' AND c1 LIKE 'ae';
-c1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE c1='ä' AND c1 LIKE 'ae';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where `test`.`t1`.`c1` = 'ä' and `test`.`t1`.`c1` like 'ae'
-SELECT * FROM t1 WHERE CONCAT(c1)='ä';
-c1
-ä
-SELECT * FROM t1 WHERE CONCAT(c1) LIKE 'ae';
-c1
-ae
-SELECT * FROM t1 WHERE CONCAT(c1)='ä' AND CONCAT(c1) LIKE 'ae';
-c1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='ä' AND CONCAT(c1) LIKE 'ae';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'ä' and concat(`test`.`t1`.`c1`) like 'ae'
-DROP TABLE IF EXISTS t1;
-#
-# MDEV-6666 Malformed result for CONCAT(utf8_column, binary_string)
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8);
-INSERT INTO t1 VALUES ('a');
-SELECT CONCAT(a,0xFF) FROM t1;
-ERROR HY000: Invalid utf8 character string: 'FF'
-SELECT CONCAT(a,0xC3BF) FROM t1;
-CONCAT(a,0xC3BF)
-aÿ
-DROP TABLE t1;
-SELECT CONCAT('a' COLLATE utf8_unicode_ci, _binary 0xFF);
-ERROR HY000: Invalid utf8 character string: 'FF'
-PREPARE stmt FROM "SELECT CONCAT('a' COLLATE utf8_unicode_ci, ?)";
-SET @arg00=_binary 0xFF;
-EXECUTE stmt USING @arg00;
-ERROR HY000: Invalid utf8 character string: 'FF'
-DEALLOCATE PREPARE stmt;
-SET NAMES latin1;
-PREPARE stmt FROM "SELECT CONCAT(_utf8'a' COLLATE utf8_unicode_ci, ?)";
-EXECUTE stmt USING @no_such_var;
-CONCAT(_utf8'a' COLLATE utf8_unicode_ci, ?)
-NULL
-DEALLOCATE PREPARE stmt;
-SET NAMES utf8;
-#
-# MDEV-6679 Different optimizer plan for "a BETWEEN 'string' AND ?" and "a BETWEEN ? AND 'string'"
-#
-SET NAMES utf8, collation_connection=utf8_swedish_ci;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8, b INT NOT NULL DEFAULT 0, key(a));
-INSERT INTO t1 (a) VALUES ('a'),('b'),('c'),('d'),('¢');
-SET @arg='¢';
-PREPARE stmt FROM "EXPLAIN SELECT * FROM t1 WHERE a BETWEEN _utf8'¢' and ?";
-EXECUTE stmt USING @arg;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 33 NULL 1 Using index condition
-PREPARE stmt FROM "EXPLAIN SELECT * FROM t1 WHERE a between ? and _utf8'¢'";
-EXECUTE stmt USING @arg;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 33 NULL 1 Using index condition
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# MDEV-6683 A parameter and a string literal with the same values are not recognized as equal by the optimizer
-#
-SET NAMES utf8, collation_connection=utf8_swedish_ci;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1, b INT NOT NULL DEFAULT 0, key(a));
-INSERT INTO t1 (a) VALUES ('a'),('b'),('c'),('d'),('¢');
-SET @arg='¢';
-PREPARE stmt FROM "EXPLAIN SELECT * FROM t1 WHERE a BETWEEN _utf8'¢' and ?";
-EXECUTE stmt USING @arg;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 13 const 1 Using index condition
-PREPARE stmt FROM "EXPLAIN SELECT * FROM t1 WHERE a between ? and _utf8'¢'";
-EXECUTE stmt USING @arg;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 13 const 1 Using index condition
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# MDEV-6688 Illegal mix of collation with bit string B'01100001'
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1, b INT);
-INSERT INTO t1 VALUES ('a',1);
-SELECT CONCAT(a, IF(b>10, _utf8 X'61', _utf8 X'61')) FROM t1;
-CONCAT(a, IF(b>10, _utf8 X'61', _utf8 X'61'))
-aa
-SELECT CONCAT(a, IF(b>10, _utf8 X'61', _utf8 B'01100001')) FROM t1;
-CONCAT(a, IF(b>10, _utf8 X'61', _utf8 B'01100001'))
-aa
-DROP TABLE t1;
-#
-# MDEV-6694 Illegal mix of collation with a PS parameter
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a INT, b VARCHAR(10) CHARACTER SET latin1);
-INSERT INTO t1 VALUES (1,'a');
-SELECT CONCAT(b,IF(a,'b','b')) FROM t1;
-CONCAT(b,IF(a,'b','b'))
-ab
-PREPARE stmt FROM "SELECT CONCAT(b,IF(a,?,?)) FROM t1";
-SET @b='b';
-EXECUTE stmt USING @b,@b;
-CONCAT(b,IF(a,?,?))
-ab
-SET @b='';
-EXECUTE stmt USING @b,@b;
-CONCAT(b,IF(a,?,?))
-a
-SET @b='Ñ';
-EXECUTE stmt USING @b,@b;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# MDEV-7629 Regression: Bit and hex string literals changed column names in 10.0.14
-#
-SELECT _utf8 0x7E, _utf8 X'7E', _utf8 B'01111110';
-_utf8 0x7E _utf8 X'7E' _utf8 B'01111110'
-~ ~ ~
-# Start of ctype_unescape.inc
-SET sql_mode = '';
-SET @query=_binary'SELECT CHARSET(\'test\'),@@character_set_client,@@character_set_connection';
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-CHARSET('test') @@character_set_client @@character_set_connection
-utf8 utf8 utf8
-DEALLOCATE PREPARE stmt;
-CREATE TABLE allbytes (a VARBINARY(10));
-# Using selected bytes combinations
-CREATE TABLE halfs (a INT);
-INSERT INTO halfs VALUES (0x00),(0x01),(0x02),(0x03),(0x04),(0x05),(0x06),(0x07);
-INSERT INTO halfs VALUES (0x08),(0x09),(0x0A),(0x0B),(0x0C),(0x0D),(0x0E),(0x0F);
-CREATE TEMPORARY TABLE bytes (a BINARY(1), KEY(a)) ENGINE=MyISAM;
-INSERT INTO bytes SELECT CHAR((t1.a << 4) | t2.a USING BINARY) FROM halfs t1, halfs t2;
-DROP TABLE halfs;
-CREATE TABLE selected_bytes (a VARBINARY(10));
-INSERT INTO selected_bytes (a) VALUES ('\0'),('\b'),('\t'),('\r'),('\n'),('\Z');
-INSERT INTO selected_bytes (a) VALUES ('0'),('b'),('t'),('r'),('n'),('Z');
-INSERT INTO selected_bytes (a) VALUES ('\\'),('_'),('%'),(0x22),(0x27);
-INSERT INTO selected_bytes (a) VALUES ('a');
-INSERT INTO selected_bytes (a) VALUES
-(0x3F), # 7bit
-(0x40), # 7bit mbtail
-(0x7E), # 7bit mbtail nonascii-8bit
-(0x7F), # 7bit nonascii-8bit
-(0x80), # mbtail bad-mb
-(0x81), # mbhead mbtail
-(0x9F), # mbhead mbtail bad-mb
-(0xA0), # mbhead mbtail bad-mb
-(0xA1), # mbhead mbtail nonascii-8bit
-(0xE0), # mbhead mbtai
-(0xEF), # mbhead mbtail
-(0xF9), # mbhead mbtail
-(0xFA), # mbhead mbtail bad-mb
-(0xFC), # mbhead mbtail bad-mb
-(0xFD), # mbhead mbtail bad-mb
-(0xFE), # mbhead mbtial bad-mb
-(0xFF);
-INSERT INTO allbytes (a) SELECT a FROM bytes;
-INSERT INTO allbytes (a) SELECT CONCAT(t1.a,t2.a) FROM selected_bytes t1,selected_bytes t2;
-INSERT INTO allbytes (a) SELECT CONCAT(0x5C,t1.a,t2.a) FROM selected_bytes t1,selected_bytes t2;
-INSERT INTO allbytes (a) SELECT CONCAT(0x5C,t1.a,0x5C,t2.a) FROM selected_bytes t1,selected_bytes t2;
-DROP TABLE selected_bytes;
-DELETE FROM allbytes WHERE
-OCTET_LENGTH(a)>1 AND
-LOCATE(0x5C,a)=0 AND
-a NOT LIKE '%\'%' AND
- a NOT LIKE '%"%';
-CREATE PROCEDURE p1(val VARBINARY(10))
-BEGIN
-DECLARE EXIT HANDLER FOR SQLSTATE '42000' INSERT INTO t1 (a,b) VALUES(val,NULL);
-SET @query=CONCAT(_binary"INSERT INTO t1 (a,b) VALUES (0x",HEX(val),",'",val,"')");
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-END//
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE val VARBINARY(10);
-DECLARE done INT DEFAULT FALSE;
-DECLARE stmt CURSOR FOR SELECT a FROM allbytes;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN stmt;
-read_loop1: LOOP
-FETCH stmt INTO val;
-IF done THEN
-LEAVE read_loop1;
-END IF;
-CALL p1(val);
-END LOOP;
-CLOSE stmt;
-END//
-CREATE FUNCTION iswellformed(a VARBINARY(256)) RETURNS INT RETURN a=BINARY CONVERT(a USING utf8);//
-CREATE FUNCTION unescape(a VARBINARY(256)) RETURNS VARBINARY(256)
-BEGIN
-# We need to do it in a way to avoid producing new escape sequences
-# First, enclose all known escsape sequences to '{{xx}}'
- # - Backslash not followed by a LIKE pattern characters _ and %
-# - Double escapes
-# This uses PCRE Branch Reset Groups: (?|(alt1)|(alt2)|(alt3)).
-# So '\\1' in the last argument always means the match, no matter
-# which alternative it came from.
-SET a=REGEXP_REPLACE(a,'(?|(\\\\[^_%])|(\\x{27}\\x{27}))','{{\\1}}');
-# Now unescape all enclosed standard escape sequences
-SET a=REPLACE(a,'{{\\0}}', '\0');
-SET a=REPLACE(a,'{{\\b}}', '\b');
-SET a=REPLACE(a,'{{\\t}}', '\t');
-SET a=REPLACE(a,'{{\\r}}', '\r');
-SET a=REPLACE(a,'{{\\n}}', '\n');
-SET a=REPLACE(a,'{{\\Z}}', '\Z');
-SET a=REPLACE(a,'{{\\\'}}', '\'');
-# Unescape double quotes
-SET a=REPLACE(a,'{{\'\'}}', '\'');
- # Unescape the rest: all other \x sequences mean just 'x'
- SET a=REGEXP_REPLACE(a, '{{\\\\(.|\\R)}}', '\\1');
- RETURN a;
-END//
-CREATE FUNCTION unescape_type(a VARBINARY(256),b VARBINARY(256)) RETURNS VARBINARY(256)
-BEGIN
-RETURN CASE
-WHEN b IS NULL THEN '[SyntErr]'
- WHEN a=b THEN CASE
-WHEN OCTET_LENGTH(a)=1 THEN '[Preserve]'
- WHEN a RLIKE '\\\\[_%]' THEN '[Preserve][LIKE]'
- WHEN a RLIKE '^[[:ascii:]]+$' THEN '[Preserve][ASCII]'
- ELSE '[Preserv][MB]' END
-WHEN REPLACE(a,0x5C,'')=b THEN '[Trivial]'
- WHEN UNESCAPE(a)=b THEN '[Regular]'
- ELSE '[Special]' END;
-END//
-CREATE FUNCTION wellformedness(a VARBINARY(256), b VARBINARY(256))
-RETURNS VARBINARY(256)
-BEGIN
-RETURN CASE
-WHEN b IS NULL THEN ''
- WHEN NOT iswellformed(a) AND iswellformed(b) THEN '[FIXED]'
- WHEN iswellformed(a) AND NOT iswellformed(b) THEN '[BROKE]'
- WHEN NOT iswellformed(a) AND NOT iswellformed(b) THEN '[ILSEQ]'
- ELSE ''
- END;
-END//
-CREATE FUNCTION mysql_real_escape_string_generated(a VARBINARY(256))
-RETURNS VARBINARY(256)
-BEGIN
-DECLARE a1 BINARY(1) DEFAULT SUBSTR(a,1,1);
-DECLARE a2 BINARY(1) DEFAULT SUBSTR(a,2,1);
-DECLARE a3 BINARY(1) DEFAULT SUBSTR(a,3,1);
-DECLARE a4 BINARY(1) DEFAULT SUBSTR(a,4,1);
-DECLARE a2a4 BINARY(2) DEFAULT CONCAT(a2,a4);
-RETURN CASE
-WHEN (a1=0x5C) AND
-(a3=0x5C) AND
-(a2>0x7F) AND
-(a4 NOT IN ('_','%','0','t','r','n','Z')) AND
-iswellformed(a2a4) THEN '[USER]'
- ELSE ''
- END;
-END//
-CREATE TABLE t1 (a VARBINARY(10),b VARBINARY(10));
-CALL p2();
-SELECT HEX(a),HEX(b),
-CONCAT(unescape_type(a,b),
-wellformedness(a,b),
-mysql_real_escape_string_generated(a),
-IF(UNESCAPE(a)<>b,CONCAT('[BAD',HEX(UNESCAPE(a)),']'),'')) AS comment
-FROM t1 ORDER BY LENGTH(a),a;
-HEX(a) HEX(b) comment
-00 00 [Preserve]
-01 01 [Preserve]
-02 02 [Preserve]
-03 03 [Preserve]
-04 04 [Preserve]
-05 05 [Preserve]
-06 06 [Preserve]
-07 07 [Preserve]
-08 08 [Preserve]
-09 09 [Preserve]
-0A 0A [Preserve]
-0B 0B [Preserve]
-0C 0C [Preserve]
-0D 0D [Preserve]
-0E 0E [Preserve]
-0F 0F [Preserve]
-10 10 [Preserve]
-11 11 [Preserve]
-12 12 [Preserve]
-13 13 [Preserve]
-14 14 [Preserve]
-15 15 [Preserve]
-16 16 [Preserve]
-17 17 [Preserve]
-18 18 [Preserve]
-19 19 [Preserve]
-1A 1A [Preserve]
-1B 1B [Preserve]
-1C 1C [Preserve]
-1D 1D [Preserve]
-1E 1E [Preserve]
-1F 1F [Preserve]
-20 20 [Preserve]
-21 21 [Preserve]
-22 22 [Preserve]
-23 23 [Preserve]
-24 24 [Preserve]
-25 25 [Preserve]
-26 26 [Preserve]
-27 NULL [SyntErr]
-28 28 [Preserve]
-29 29 [Preserve]
-2A 2A [Preserve]
-2B 2B [Preserve]
-2C 2C [Preserve]
-2D 2D [Preserve]
-2E 2E [Preserve]
-2F 2F [Preserve]
-30 30 [Preserve]
-31 31 [Preserve]
-32 32 [Preserve]
-33 33 [Preserve]
-34 34 [Preserve]
-35 35 [Preserve]
-36 36 [Preserve]
-37 37 [Preserve]
-38 38 [Preserve]
-39 39 [Preserve]
-3A 3A [Preserve]
-3B 3B [Preserve]
-3C 3C [Preserve]
-3D 3D [Preserve]
-3E 3E [Preserve]
-3F 3F [Preserve]
-40 40 [Preserve]
-41 41 [Preserve]
-42 42 [Preserve]
-43 43 [Preserve]
-44 44 [Preserve]
-45 45 [Preserve]
-46 46 [Preserve]
-47 47 [Preserve]
-48 48 [Preserve]
-49 49 [Preserve]
-4A 4A [Preserve]
-4B 4B [Preserve]
-4C 4C [Preserve]
-4D 4D [Preserve]
-4E 4E [Preserve]
-4F 4F [Preserve]
-50 50 [Preserve]
-51 51 [Preserve]
-52 52 [Preserve]
-53 53 [Preserve]
-54 54 [Preserve]
-55 55 [Preserve]
-56 56 [Preserve]
-57 57 [Preserve]
-58 58 [Preserve]
-59 59 [Preserve]
-5A 5A [Preserve]
-5B 5B [Preserve]
-5C NULL [SyntErr]
-5D 5D [Preserve]
-5E 5E [Preserve]
-5F 5F [Preserve]
-60 60 [Preserve]
-61 61 [Preserve]
-62 62 [Preserve]
-63 63 [Preserve]
-64 64 [Preserve]
-65 65 [Preserve]
-66 66 [Preserve]
-67 67 [Preserve]
-68 68 [Preserve]
-69 69 [Preserve]
-6A 6A [Preserve]
-6B 6B [Preserve]
-6C 6C [Preserve]
-6D 6D [Preserve]
-6E 6E [Preserve]
-6F 6F [Preserve]
-70 70 [Preserve]
-71 71 [Preserve]
-72 72 [Preserve]
-73 73 [Preserve]
-74 74 [Preserve]
-75 75 [Preserve]
-76 76 [Preserve]
-77 77 [Preserve]
-78 78 [Preserve]
-79 79 [Preserve]
-7A 7A [Preserve]
-7B 7B [Preserve]
-7C 7C [Preserve]
-7D 7D [Preserve]
-7E 7E [Preserve]
-7F 7F [Preserve]
-80 80 [Preserve][ILSEQ]
-81 81 [Preserve][ILSEQ]
-82 82 [Preserve][ILSEQ]
-83 83 [Preserve][ILSEQ]
-84 84 [Preserve][ILSEQ]
-85 85 [Preserve][ILSEQ]
-86 86 [Preserve][ILSEQ]
-87 87 [Preserve][ILSEQ]
-88 88 [Preserve][ILSEQ]
-89 89 [Preserve][ILSEQ]
-8A 8A [Preserve][ILSEQ]
-8B 8B [Preserve][ILSEQ]
-8C 8C [Preserve][ILSEQ]
-8D 8D [Preserve][ILSEQ]
-8E 8E [Preserve][ILSEQ]
-8F 8F [Preserve][ILSEQ]
-90 90 [Preserve][ILSEQ]
-91 91 [Preserve][ILSEQ]
-92 92 [Preserve][ILSEQ]
-93 93 [Preserve][ILSEQ]
-94 94 [Preserve][ILSEQ]
-95 95 [Preserve][ILSEQ]
-96 96 [Preserve][ILSEQ]
-97 97 [Preserve][ILSEQ]
-98 98 [Preserve][ILSEQ]
-99 99 [Preserve][ILSEQ]
-9A 9A [Preserve][ILSEQ]
-9B 9B [Preserve][ILSEQ]
-9C 9C [Preserve][ILSEQ]
-9D 9D [Preserve][ILSEQ]
-9E 9E [Preserve][ILSEQ]
-9F 9F [Preserve][ILSEQ]
-A0 A0 [Preserve][ILSEQ]
-A1 A1 [Preserve][ILSEQ]
-A2 A2 [Preserve][ILSEQ]
-A3 A3 [Preserve][ILSEQ]
-A4 A4 [Preserve][ILSEQ]
-A5 A5 [Preserve][ILSEQ]
-A6 A6 [Preserve][ILSEQ]
-A7 A7 [Preserve][ILSEQ]
-A8 A8 [Preserve][ILSEQ]
-A9 A9 [Preserve][ILSEQ]
-AA AA [Preserve][ILSEQ]
-AB AB [Preserve][ILSEQ]
-AC AC [Preserve][ILSEQ]
-AD AD [Preserve][ILSEQ]
-AE AE [Preserve][ILSEQ]
-AF AF [Preserve][ILSEQ]
-B0 B0 [Preserve][ILSEQ]
-B1 B1 [Preserve][ILSEQ]
-B2 B2 [Preserve][ILSEQ]
-B3 B3 [Preserve][ILSEQ]
-B4 B4 [Preserve][ILSEQ]
-B5 B5 [Preserve][ILSEQ]
-B6 B6 [Preserve][ILSEQ]
-B7 B7 [Preserve][ILSEQ]
-B8 B8 [Preserve][ILSEQ]
-B9 B9 [Preserve][ILSEQ]
-BA BA [Preserve][ILSEQ]
-BB BB [Preserve][ILSEQ]
-BC BC [Preserve][ILSEQ]
-BD BD [Preserve][ILSEQ]
-BE BE [Preserve][ILSEQ]
-BF BF [Preserve][ILSEQ]
-C0 C0 [Preserve][ILSEQ]
-C1 C1 [Preserve][ILSEQ]
-C2 C2 [Preserve][ILSEQ]
-C3 C3 [Preserve][ILSEQ]
-C4 C4 [Preserve][ILSEQ]
-C5 C5 [Preserve][ILSEQ]
-C6 C6 [Preserve][ILSEQ]
-C7 C7 [Preserve][ILSEQ]
-C8 C8 [Preserve][ILSEQ]
-C9 C9 [Preserve][ILSEQ]
-CA CA [Preserve][ILSEQ]
-CB CB [Preserve][ILSEQ]
-CC CC [Preserve][ILSEQ]
-CD CD [Preserve][ILSEQ]
-CE CE [Preserve][ILSEQ]
-CF CF [Preserve][ILSEQ]
-D0 D0 [Preserve][ILSEQ]
-D1 D1 [Preserve][ILSEQ]
-D2 D2 [Preserve][ILSEQ]
-D3 D3 [Preserve][ILSEQ]
-D4 D4 [Preserve][ILSEQ]
-D5 D5 [Preserve][ILSEQ]
-D6 D6 [Preserve][ILSEQ]
-D7 D7 [Preserve][ILSEQ]
-D8 D8 [Preserve][ILSEQ]
-D9 D9 [Preserve][ILSEQ]
-DA DA [Preserve][ILSEQ]
-DB DB [Preserve][ILSEQ]
-DC DC [Preserve][ILSEQ]
-DD DD [Preserve][ILSEQ]
-DE DE [Preserve][ILSEQ]
-DF DF [Preserve][ILSEQ]
-E0 E0 [Preserve][ILSEQ]
-E1 E1 [Preserve][ILSEQ]
-E2 E2 [Preserve][ILSEQ]
-E3 E3 [Preserve][ILSEQ]
-E4 E4 [Preserve][ILSEQ]
-E5 E5 [Preserve][ILSEQ]
-E6 E6 [Preserve][ILSEQ]
-E7 E7 [Preserve][ILSEQ]
-E8 E8 [Preserve][ILSEQ]
-E9 E9 [Preserve][ILSEQ]
-EA EA [Preserve][ILSEQ]
-EB EB [Preserve][ILSEQ]
-EC EC [Preserve][ILSEQ]
-ED ED [Preserve][ILSEQ]
-EE EE [Preserve][ILSEQ]
-EF EF [Preserve][ILSEQ]
-F0 F0 [Preserve][ILSEQ]
-F1 F1 [Preserve][ILSEQ]
-F2 F2 [Preserve][ILSEQ]
-F3 F3 [Preserve][ILSEQ]
-F4 F4 [Preserve][ILSEQ]
-F5 F5 [Preserve][ILSEQ]
-F6 F6 [Preserve][ILSEQ]
-F7 F7 [Preserve][ILSEQ]
-F8 F8 [Preserve][ILSEQ]
-F9 F9 [Preserve][ILSEQ]
-FA FA [Preserve][ILSEQ]
-FB FB [Preserve][ILSEQ]
-FC FC [Preserve][ILSEQ]
-FD FD [Preserve][ILSEQ]
-FE FE [Preserve][ILSEQ]
-FF FF [Preserve][ILSEQ]
-0022 0022 [Preserve][ASCII]
-0027 NULL [SyntErr]
-005C NULL [SyntErr]
-0822 0822 [Preserve][ASCII]
-0827 NULL [SyntErr]
-085C NULL [SyntErr]
-0922 0922 [Preserve][ASCII]
-0927 NULL [SyntErr]
-095C NULL [SyntErr]
-0A22 0A22 [Preserve][ASCII]
-0A27 NULL [SyntErr]
-0A5C NULL [SyntErr]
-0D22 0D22 [Preserve][ASCII]
-0D27 NULL [SyntErr]
-0D5C NULL [SyntErr]
-1A22 1A22 [Preserve][ASCII]
-1A27 NULL [SyntErr]
-1A5C NULL [SyntErr]
-2200 2200 [Preserve][ASCII]
-2208 2208 [Preserve][ASCII]
-2209 2209 [Preserve][ASCII]
-220A 220A [Preserve][ASCII]
-220D 220D [Preserve][ASCII]
-221A 221A [Preserve][ASCII]
-2222 2222 [Preserve][ASCII]
-2225 2225 [Preserve][ASCII]
-2227 NULL [SyntErr]
-2230 2230 [Preserve][ASCII]
-223F 223F [Preserve][ASCII]
-2240 2240 [Preserve][ASCII]
-225A 225A [Preserve][ASCII]
-225C NULL [SyntErr]
-225F 225F [Preserve][ASCII]
-2261 2261 [Preserve][ASCII]
-2262 2262 [Preserve][ASCII]
-226E 226E [Preserve][ASCII]
-2272 2272 [Preserve][ASCII]
-2274 2274 [Preserve][ASCII]
-227E 227E [Preserve][ASCII]
-227F 227F [Preserve][ASCII]
-2280 2280 [Preserv][MB][ILSEQ]
-2281 2281 [Preserv][MB][ILSEQ]
-229F 229F [Preserv][MB][ILSEQ]
-22A0 22A0 [Preserv][MB][ILSEQ]
-22A1 22A1 [Preserv][MB][ILSEQ]
-22E0 22E0 [Preserv][MB][ILSEQ]
-22EF 22EF [Preserv][MB][ILSEQ]
-22F9 22F9 [Preserv][MB][ILSEQ]
-22FA 22FA [Preserv][MB][ILSEQ]
-22FC 22FC [Preserv][MB][ILSEQ]
-22FD 22FD [Preserv][MB][ILSEQ]
-22FE 22FE [Preserv][MB][ILSEQ]
-22FF 22FF [Preserv][MB][ILSEQ]
-2522 2522 [Preserve][ASCII]
-2527 NULL [SyntErr]
-255C NULL [SyntErr]
-2700 NULL [SyntErr]
-2708 NULL [SyntErr]
-2709 NULL [SyntErr]
-270A NULL [SyntErr]
-270D NULL [SyntErr]
-271A NULL [SyntErr]
-2722 NULL [SyntErr]
-2725 NULL [SyntErr]
-2727 27 [Regular]
-2730 NULL [SyntErr]
-273F NULL [SyntErr]
-2740 NULL [SyntErr]
-275A NULL [SyntErr]
-275C NULL [SyntErr]
-275F NULL [SyntErr]
-2761 NULL [SyntErr]
-2762 NULL [SyntErr]
-276E NULL [SyntErr]
-2772 NULL [SyntErr]
-2774 NULL [SyntErr]
-277E NULL [SyntErr]
-277F NULL [SyntErr]
-2780 NULL [SyntErr]
-2781 NULL [SyntErr]
-279F NULL [SyntErr]
-27A0 NULL [SyntErr]
-27A1 NULL [SyntErr]
-27E0 NULL [SyntErr]
-27EF NULL [SyntErr]
-27F9 NULL [SyntErr]
-27FA NULL [SyntErr]
-27FC NULL [SyntErr]
-27FD NULL [SyntErr]
-27FE NULL [SyntErr]
-27FF NULL [SyntErr]
-3022 3022 [Preserve][ASCII]
-3027 NULL [SyntErr]
-305C NULL [SyntErr]
-3F22 3F22 [Preserve][ASCII]
-3F27 NULL [SyntErr]
-3F5C NULL [SyntErr]
-4022 4022 [Preserve][ASCII]
-4027 NULL [SyntErr]
-405C NULL [SyntErr]
-5A22 5A22 [Preserve][ASCII]
-5A27 NULL [SyntErr]
-5A5C NULL [SyntErr]
-5C00 00 [Trivial]
-5C08 08 [Trivial]
-5C09 09 [Trivial]
-5C0A 0A [Trivial]
-5C0D 0D [Trivial]
-5C1A 1A [Trivial]
-5C22 22 [Trivial]
-5C25 5C25 [Preserve][LIKE]
-5C27 27 [Trivial]
-5C30 00 [Regular]
-5C3F 3F [Trivial]
-5C40 40 [Trivial]
-5C5A 1A [Regular]
-5C5C 5C [Regular]
-5C5F 5C5F [Preserve][LIKE]
-5C61 61 [Trivial]
-5C62 08 [Regular]
-5C6E 0A [Regular]
-5C72 0D [Regular]
-5C74 09 [Regular]
-5C7E 7E [Trivial]
-5C7F 7F [Trivial]
-5C80 80 [Trivial][ILSEQ]
-5C81 81 [Trivial][ILSEQ]
-5C9F 9F [Trivial][ILSEQ]
-5CA0 A0 [Trivial][ILSEQ]
-5CA1 A1 [Trivial][ILSEQ]
-5CE0 E0 [Trivial][ILSEQ]
-5CEF EF [Trivial][ILSEQ]
-5CF9 F9 [Trivial][ILSEQ]
-5CFA FA [Trivial][ILSEQ]
-5CFC FC [Trivial][ILSEQ]
-5CFD FD [Trivial][ILSEQ]
-5CFE FE [Trivial][ILSEQ]
-5CFF FF [Trivial][ILSEQ]
-5F22 5F22 [Preserve][ASCII]
-5F27 NULL [SyntErr]
-5F5C NULL [SyntErr]
-6122 6122 [Preserve][ASCII]
-6127 NULL [SyntErr]
-615C NULL [SyntErr]
-6222 6222 [Preserve][ASCII]
-6227 NULL [SyntErr]
-625C NULL [SyntErr]
-6E22 6E22 [Preserve][ASCII]
-6E27 NULL [SyntErr]
-6E5C NULL [SyntErr]
-7222 7222 [Preserve][ASCII]
-7227 NULL [SyntErr]
-725C NULL [SyntErr]
-7422 7422 [Preserve][ASCII]
-7427 NULL [SyntErr]
-745C NULL [SyntErr]
-7E22 7E22 [Preserve][ASCII]
-7E27 NULL [SyntErr]
-7E5C NULL [SyntErr]
-7F22 7F22 [Preserve][ASCII]
-7F27 NULL [SyntErr]
-7F5C NULL [SyntErr]
-8022 8022 [Preserv][MB][ILSEQ]
-8027 NULL [SyntErr]
-805C NULL [SyntErr]
-8122 8122 [Preserv][MB][ILSEQ]
-8127 NULL [SyntErr]
-815C NULL [SyntErr]
-9F22 9F22 [Preserv][MB][ILSEQ]
-9F27 NULL [SyntErr]
-9F5C NULL [SyntErr]
-A022 A022 [Preserv][MB][ILSEQ]
-A027 NULL [SyntErr]
-A05C NULL [SyntErr]
-A122 A122 [Preserv][MB][ILSEQ]
-A127 NULL [SyntErr]
-A15C NULL [SyntErr]
-E022 E022 [Preserv][MB][ILSEQ]
-E027 NULL [SyntErr]
-E05C NULL [SyntErr]
-EF22 EF22 [Preserv][MB][ILSEQ]
-EF27 NULL [SyntErr]
-EF5C NULL [SyntErr]
-F922 F922 [Preserv][MB][ILSEQ]
-F927 NULL [SyntErr]
-F95C NULL [SyntErr]
-FA22 FA22 [Preserv][MB][ILSEQ]
-FA27 NULL [SyntErr]
-FA5C NULL [SyntErr]
-FC22 FC22 [Preserv][MB][ILSEQ]
-FC27 NULL [SyntErr]
-FC5C NULL [SyntErr]
-FD22 FD22 [Preserv][MB][ILSEQ]
-FD27 NULL [SyntErr]
-FD5C NULL [SyntErr]
-FE22 FE22 [Preserv][MB][ILSEQ]
-FE27 NULL [SyntErr]
-FE5C NULL [SyntErr]
-FF22 FF22 [Preserv][MB][ILSEQ]
-FF27 NULL [SyntErr]
-FF5C NULL [SyntErr]
-5C0000 0000 [Trivial]
-5C0008 0008 [Trivial]
-5C0009 0009 [Trivial]
-5C000A 000A [Trivial]
-5C000D 000D [Trivial]
-5C001A 001A [Trivial]
-5C0022 0022 [Trivial]
-5C0025 0025 [Trivial]
-5C0027 NULL [SyntErr]
-5C0030 0030 [Trivial]
-5C003F 003F [Trivial]
-5C0040 0040 [Trivial]
-5C005A 005A [Trivial]
-5C005C NULL [SyntErr]
-5C005F 005F [Trivial]
-5C0061 0061 [Trivial]
-5C0062 0062 [Trivial]
-5C006E 006E [Trivial]
-5C0072 0072 [Trivial]
-5C0074 0074 [Trivial]
-5C007E 007E [Trivial]
-5C007F 007F [Trivial]
-5C0080 0080 [Trivial][ILSEQ]
-5C0081 0081 [Trivial][ILSEQ]
-5C009F 009F [Trivial][ILSEQ]
-5C00A0 00A0 [Trivial][ILSEQ]
-5C00A1 00A1 [Trivial][ILSEQ]
-5C00E0 00E0 [Trivial][ILSEQ]
-5C00EF 00EF [Trivial][ILSEQ]
-5C00F9 00F9 [Trivial][ILSEQ]
-5C00FA 00FA [Trivial][ILSEQ]
-5C00FC 00FC [Trivial][ILSEQ]
-5C00FD 00FD [Trivial][ILSEQ]
-5C00FE 00FE [Trivial][ILSEQ]
-5C00FF 00FF [Trivial][ILSEQ]
-5C0800 0800 [Trivial]
-5C0808 0808 [Trivial]
-5C0809 0809 [Trivial]
-5C080A 080A [Trivial]
-5C080D 080D [Trivial]
-5C081A 081A [Trivial]
-5C0822 0822 [Trivial]
-5C0825 0825 [Trivial]
-5C0827 NULL [SyntErr]
-5C0830 0830 [Trivial]
-5C083F 083F [Trivial]
-5C0840 0840 [Trivial]
-5C085A 085A [Trivial]
-5C085C NULL [SyntErr]
-5C085F 085F [Trivial]
-5C0861 0861 [Trivial]
-5C0862 0862 [Trivial]
-5C086E 086E [Trivial]
-5C0872 0872 [Trivial]
-5C0874 0874 [Trivial]
-5C087E 087E [Trivial]
-5C087F 087F [Trivial]
-5C0880 0880 [Trivial][ILSEQ]
-5C0881 0881 [Trivial][ILSEQ]
-5C089F 089F [Trivial][ILSEQ]
-5C08A0 08A0 [Trivial][ILSEQ]
-5C08A1 08A1 [Trivial][ILSEQ]
-5C08E0 08E0 [Trivial][ILSEQ]
-5C08EF 08EF [Trivial][ILSEQ]
-5C08F9 08F9 [Trivial][ILSEQ]
-5C08FA 08FA [Trivial][ILSEQ]
-5C08FC 08FC [Trivial][ILSEQ]
-5C08FD 08FD [Trivial][ILSEQ]
-5C08FE 08FE [Trivial][ILSEQ]
-5C08FF 08FF [Trivial][ILSEQ]
-5C0900 0900 [Trivial]
-5C0908 0908 [Trivial]
-5C0909 0909 [Trivial]
-5C090A 090A [Trivial]
-5C090D 090D [Trivial]
-5C091A 091A [Trivial]
-5C0922 0922 [Trivial]
-5C0925 0925 [Trivial]
-5C0927 NULL [SyntErr]
-5C0930 0930 [Trivial]
-5C093F 093F [Trivial]
-5C0940 0940 [Trivial]
-5C095A 095A [Trivial]
-5C095C NULL [SyntErr]
-5C095F 095F [Trivial]
-5C0961 0961 [Trivial]
-5C0962 0962 [Trivial]
-5C096E 096E [Trivial]
-5C0972 0972 [Trivial]
-5C0974 0974 [Trivial]
-5C097E 097E [Trivial]
-5C097F 097F [Trivial]
-5C0980 0980 [Trivial][ILSEQ]
-5C0981 0981 [Trivial][ILSEQ]
-5C099F 099F [Trivial][ILSEQ]
-5C09A0 09A0 [Trivial][ILSEQ]
-5C09A1 09A1 [Trivial][ILSEQ]
-5C09E0 09E0 [Trivial][ILSEQ]
-5C09EF 09EF [Trivial][ILSEQ]
-5C09F9 09F9 [Trivial][ILSEQ]
-5C09FA 09FA [Trivial][ILSEQ]
-5C09FC 09FC [Trivial][ILSEQ]
-5C09FD 09FD [Trivial][ILSEQ]
-5C09FE 09FE [Trivial][ILSEQ]
-5C09FF 09FF [Trivial][ILSEQ]
-5C0A00 0A00 [Trivial]
-5C0A08 0A08 [Trivial]
-5C0A09 0A09 [Trivial]
-5C0A0A 0A0A [Trivial]
-5C0A0D 0A0D [Trivial]
-5C0A1A 0A1A [Trivial]
-5C0A22 0A22 [Trivial]
-5C0A25 0A25 [Trivial]
-5C0A27 NULL [SyntErr]
-5C0A30 0A30 [Trivial]
-5C0A3F 0A3F [Trivial]
-5C0A40 0A40 [Trivial]
-5C0A5A 0A5A [Trivial]
-5C0A5C NULL [SyntErr]
-5C0A5F 0A5F [Trivial]
-5C0A61 0A61 [Trivial]
-5C0A62 0A62 [Trivial]
-5C0A6E 0A6E [Trivial]
-5C0A72 0A72 [Trivial]
-5C0A74 0A74 [Trivial]
-5C0A7E 0A7E [Trivial]
-5C0A7F 0A7F [Trivial]
-5C0A80 0A80 [Trivial][ILSEQ]
-5C0A81 0A81 [Trivial][ILSEQ]
-5C0A9F 0A9F [Trivial][ILSEQ]
-5C0AA0 0AA0 [Trivial][ILSEQ]
-5C0AA1 0AA1 [Trivial][ILSEQ]
-5C0AE0 0AE0 [Trivial][ILSEQ]
-5C0AEF 0AEF [Trivial][ILSEQ]
-5C0AF9 0AF9 [Trivial][ILSEQ]
-5C0AFA 0AFA [Trivial][ILSEQ]
-5C0AFC 0AFC [Trivial][ILSEQ]
-5C0AFD 0AFD [Trivial][ILSEQ]
-5C0AFE 0AFE [Trivial][ILSEQ]
-5C0AFF 0AFF [Trivial][ILSEQ]
-5C0D00 0D00 [Trivial]
-5C0D08 0D08 [Trivial]
-5C0D09 0D09 [Trivial]
-5C0D0A 0D0A [Trivial]
-5C0D0D 0D0D [Trivial]
-5C0D1A 0D1A [Trivial]
-5C0D22 0D22 [Trivial]
-5C0D25 0D25 [Trivial]
-5C0D27 NULL [SyntErr]
-5C0D30 0D30 [Trivial]
-5C0D3F 0D3F [Trivial]
-5C0D40 0D40 [Trivial]
-5C0D5A 0D5A [Trivial]
-5C0D5C NULL [SyntErr]
-5C0D5F 0D5F [Trivial]
-5C0D61 0D61 [Trivial]
-5C0D62 0D62 [Trivial]
-5C0D6E 0D6E [Trivial]
-5C0D72 0D72 [Trivial]
-5C0D74 0D74 [Trivial]
-5C0D7E 0D7E [Trivial]
-5C0D7F 0D7F [Trivial]
-5C0D80 0D80 [Trivial][ILSEQ]
-5C0D81 0D81 [Trivial][ILSEQ]
-5C0D9F 0D9F [Trivial][ILSEQ]
-5C0DA0 0DA0 [Trivial][ILSEQ]
-5C0DA1 0DA1 [Trivial][ILSEQ]
-5C0DE0 0DE0 [Trivial][ILSEQ]
-5C0DEF 0DEF [Trivial][ILSEQ]
-5C0DF9 0DF9 [Trivial][ILSEQ]
-5C0DFA 0DFA [Trivial][ILSEQ]
-5C0DFC 0DFC [Trivial][ILSEQ]
-5C0DFD 0DFD [Trivial][ILSEQ]
-5C0DFE 0DFE [Trivial][ILSEQ]
-5C0DFF 0DFF [Trivial][ILSEQ]
-5C1A00 1A00 [Trivial]
-5C1A08 1A08 [Trivial]
-5C1A09 1A09 [Trivial]
-5C1A0A 1A0A [Trivial]
-5C1A0D 1A0D [Trivial]
-5C1A1A 1A1A [Trivial]
-5C1A22 1A22 [Trivial]
-5C1A25 1A25 [Trivial]
-5C1A27 NULL [SyntErr]
-5C1A30 1A30 [Trivial]
-5C1A3F 1A3F [Trivial]
-5C1A40 1A40 [Trivial]
-5C1A5A 1A5A [Trivial]
-5C1A5C NULL [SyntErr]
-5C1A5F 1A5F [Trivial]
-5C1A61 1A61 [Trivial]
-5C1A62 1A62 [Trivial]
-5C1A6E 1A6E [Trivial]
-5C1A72 1A72 [Trivial]
-5C1A74 1A74 [Trivial]
-5C1A7E 1A7E [Trivial]
-5C1A7F 1A7F [Trivial]
-5C1A80 1A80 [Trivial][ILSEQ]
-5C1A81 1A81 [Trivial][ILSEQ]
-5C1A9F 1A9F [Trivial][ILSEQ]
-5C1AA0 1AA0 [Trivial][ILSEQ]
-5C1AA1 1AA1 [Trivial][ILSEQ]
-5C1AE0 1AE0 [Trivial][ILSEQ]
-5C1AEF 1AEF [Trivial][ILSEQ]
-5C1AF9 1AF9 [Trivial][ILSEQ]
-5C1AFA 1AFA [Trivial][ILSEQ]
-5C1AFC 1AFC [Trivial][ILSEQ]
-5C1AFD 1AFD [Trivial][ILSEQ]
-5C1AFE 1AFE [Trivial][ILSEQ]
-5C1AFF 1AFF [Trivial][ILSEQ]
-5C2200 2200 [Trivial]
-5C2208 2208 [Trivial]
-5C2209 2209 [Trivial]
-5C220A 220A [Trivial]
-5C220D 220D [Trivial]
-5C221A 221A [Trivial]
-5C2222 2222 [Trivial]
-5C2225 2225 [Trivial]
-5C2227 NULL [SyntErr]
-5C2230 2230 [Trivial]
-5C223F 223F [Trivial]
-5C2240 2240 [Trivial]
-5C225A 225A [Trivial]
-5C225C NULL [SyntErr]
-5C225F 225F [Trivial]
-5C2261 2261 [Trivial]
-5C2262 2262 [Trivial]
-5C226E 226E [Trivial]
-5C2272 2272 [Trivial]
-5C2274 2274 [Trivial]
-5C227E 227E [Trivial]
-5C227F 227F [Trivial]
-5C2280 2280 [Trivial][ILSEQ]
-5C2281 2281 [Trivial][ILSEQ]
-5C229F 229F [Trivial][ILSEQ]
-5C22A0 22A0 [Trivial][ILSEQ]
-5C22A1 22A1 [Trivial][ILSEQ]
-5C22E0 22E0 [Trivial][ILSEQ]
-5C22EF 22EF [Trivial][ILSEQ]
-5C22F9 22F9 [Trivial][ILSEQ]
-5C22FA 22FA [Trivial][ILSEQ]
-5C22FC 22FC [Trivial][ILSEQ]
-5C22FD 22FD [Trivial][ILSEQ]
-5C22FE 22FE [Trivial][ILSEQ]
-5C22FF 22FF [Trivial][ILSEQ]
-5C2500 5C2500 [Preserve][LIKE]
-5C2508 5C2508 [Preserve][LIKE]
-5C2509 5C2509 [Preserve][LIKE]
-5C250A 5C250A [Preserve][LIKE]
-5C250D 5C250D [Preserve][LIKE]
-5C251A 5C251A [Preserve][LIKE]
-5C2522 5C2522 [Preserve][LIKE]
-5C2525 5C2525 [Preserve][LIKE]
-5C2527 NULL [SyntErr]
-5C2530 5C2530 [Preserve][LIKE]
-5C253F 5C253F [Preserve][LIKE]
-5C2540 5C2540 [Preserve][LIKE]
-5C255A 5C255A [Preserve][LIKE]
-5C255C NULL [SyntErr]
-5C255F 5C255F [Preserve][LIKE]
-5C2561 5C2561 [Preserve][LIKE]
-5C2562 5C2562 [Preserve][LIKE]
-5C256E 5C256E [Preserve][LIKE]
-5C2572 5C2572 [Preserve][LIKE]
-5C2574 5C2574 [Preserve][LIKE]
-5C257E 5C257E [Preserve][LIKE]
-5C257F 5C257F [Preserve][LIKE]
-5C2580 5C2580 [Preserve][LIKE][ILSEQ]
-5C2581 5C2581 [Preserve][LIKE][ILSEQ]
-5C259F 5C259F [Preserve][LIKE][ILSEQ]
-5C25A0 5C25A0 [Preserve][LIKE][ILSEQ]
-5C25A1 5C25A1 [Preserve][LIKE][ILSEQ]
-5C25E0 5C25E0 [Preserve][LIKE][ILSEQ]
-5C25EF 5C25EF [Preserve][LIKE][ILSEQ]
-5C25F9 5C25F9 [Preserve][LIKE][ILSEQ]
-5C25FA 5C25FA [Preserve][LIKE][ILSEQ]
-5C25FC 5C25FC [Preserve][LIKE][ILSEQ]
-5C25FD 5C25FD [Preserve][LIKE][ILSEQ]
-5C25FE 5C25FE [Preserve][LIKE][ILSEQ]
-5C25FF 5C25FF [Preserve][LIKE][ILSEQ]
-5C2700 2700 [Trivial]
-5C2708 2708 [Trivial]
-5C2709 2709 [Trivial]
-5C270A 270A [Trivial]
-5C270D 270D [Trivial]
-5C271A 271A [Trivial]
-5C2722 2722 [Trivial]
-5C2725 2725 [Trivial]
-5C2727 NULL [SyntErr]
-5C2730 2730 [Trivial]
-5C273F 273F [Trivial]
-5C2740 2740 [Trivial]
-5C275A 275A [Trivial]
-5C275C NULL [SyntErr]
-5C275F 275F [Trivial]
-5C2761 2761 [Trivial]
-5C2762 2762 [Trivial]
-5C276E 276E [Trivial]
-5C2772 2772 [Trivial]
-5C2774 2774 [Trivial]
-5C277E 277E [Trivial]
-5C277F 277F [Trivial]
-5C2780 2780 [Trivial][ILSEQ]
-5C2781 2781 [Trivial][ILSEQ]
-5C279F 279F [Trivial][ILSEQ]
-5C27A0 27A0 [Trivial][ILSEQ]
-5C27A1 27A1 [Trivial][ILSEQ]
-5C27E0 27E0 [Trivial][ILSEQ]
-5C27EF 27EF [Trivial][ILSEQ]
-5C27F9 27F9 [Trivial][ILSEQ]
-5C27FA 27FA [Trivial][ILSEQ]
-5C27FC 27FC [Trivial][ILSEQ]
-5C27FD 27FD [Trivial][ILSEQ]
-5C27FE 27FE [Trivial][ILSEQ]
-5C27FF 27FF [Trivial][ILSEQ]
-5C3000 0000 [Regular]
-5C3008 0008 [Regular]
-5C3009 0009 [Regular]
-5C300A 000A [Regular]
-5C300D 000D [Regular]
-5C301A 001A [Regular]
-5C3022 0022 [Regular]
-5C3025 0025 [Regular]
-5C3027 NULL [SyntErr]
-5C3030 0030 [Regular]
-5C303F 003F [Regular]
-5C3040 0040 [Regular]
-5C305A 005A [Regular]
-5C305C NULL [SyntErr]
-5C305F 005F [Regular]
-5C3061 0061 [Regular]
-5C3062 0062 [Regular]
-5C306E 006E [Regular]
-5C3072 0072 [Regular]
-5C3074 0074 [Regular]
-5C307E 007E [Regular]
-5C307F 007F [Regular]
-5C3080 0080 [Regular][ILSEQ]
-5C3081 0081 [Regular][ILSEQ]
-5C309F 009F [Regular][ILSEQ]
-5C30A0 00A0 [Regular][ILSEQ]
-5C30A1 00A1 [Regular][ILSEQ]
-5C30E0 00E0 [Regular][ILSEQ]
-5C30EF 00EF [Regular][ILSEQ]
-5C30F9 00F9 [Regular][ILSEQ]
-5C30FA 00FA [Regular][ILSEQ]
-5C30FC 00FC [Regular][ILSEQ]
-5C30FD 00FD [Regular][ILSEQ]
-5C30FE 00FE [Regular][ILSEQ]
-5C30FF 00FF [Regular][ILSEQ]
-5C3F00 3F00 [Trivial]
-5C3F08 3F08 [Trivial]
-5C3F09 3F09 [Trivial]
-5C3F0A 3F0A [Trivial]
-5C3F0D 3F0D [Trivial]
-5C3F1A 3F1A [Trivial]
-5C3F22 3F22 [Trivial]
-5C3F25 3F25 [Trivial]
-5C3F27 NULL [SyntErr]
-5C3F30 3F30 [Trivial]
-5C3F3F 3F3F [Trivial]
-5C3F40 3F40 [Trivial]
-5C3F5A 3F5A [Trivial]
-5C3F5C NULL [SyntErr]
-5C3F5F 3F5F [Trivial]
-5C3F61 3F61 [Trivial]
-5C3F62 3F62 [Trivial]
-5C3F6E 3F6E [Trivial]
-5C3F72 3F72 [Trivial]
-5C3F74 3F74 [Trivial]
-5C3F7E 3F7E [Trivial]
-5C3F7F 3F7F [Trivial]
-5C3F80 3F80 [Trivial][ILSEQ]
-5C3F81 3F81 [Trivial][ILSEQ]
-5C3F9F 3F9F [Trivial][ILSEQ]
-5C3FA0 3FA0 [Trivial][ILSEQ]
-5C3FA1 3FA1 [Trivial][ILSEQ]
-5C3FE0 3FE0 [Trivial][ILSEQ]
-5C3FEF 3FEF [Trivial][ILSEQ]
-5C3FF9 3FF9 [Trivial][ILSEQ]
-5C3FFA 3FFA [Trivial][ILSEQ]
-5C3FFC 3FFC [Trivial][ILSEQ]
-5C3FFD 3FFD [Trivial][ILSEQ]
-5C3FFE 3FFE [Trivial][ILSEQ]
-5C3FFF 3FFF [Trivial][ILSEQ]
-5C4000 4000 [Trivial]
-5C4008 4008 [Trivial]
-5C4009 4009 [Trivial]
-5C400A 400A [Trivial]
-5C400D 400D [Trivial]
-5C401A 401A [Trivial]
-5C4022 4022 [Trivial]
-5C4025 4025 [Trivial]
-5C4027 NULL [SyntErr]
-5C4030 4030 [Trivial]
-5C403F 403F [Trivial]
-5C4040 4040 [Trivial]
-5C405A 405A [Trivial]
-5C405C NULL [SyntErr]
-5C405F 405F [Trivial]
-5C4061 4061 [Trivial]
-5C4062 4062 [Trivial]
-5C406E 406E [Trivial]
-5C4072 4072 [Trivial]
-5C4074 4074 [Trivial]
-5C407E 407E [Trivial]
-5C407F 407F [Trivial]
-5C4080 4080 [Trivial][ILSEQ]
-5C4081 4081 [Trivial][ILSEQ]
-5C409F 409F [Trivial][ILSEQ]
-5C40A0 40A0 [Trivial][ILSEQ]
-5C40A1 40A1 [Trivial][ILSEQ]
-5C40E0 40E0 [Trivial][ILSEQ]
-5C40EF 40EF [Trivial][ILSEQ]
-5C40F9 40F9 [Trivial][ILSEQ]
-5C40FA 40FA [Trivial][ILSEQ]
-5C40FC 40FC [Trivial][ILSEQ]
-5C40FD 40FD [Trivial][ILSEQ]
-5C40FE 40FE [Trivial][ILSEQ]
-5C40FF 40FF [Trivial][ILSEQ]
-5C5A00 1A00 [Regular]
-5C5A08 1A08 [Regular]
-5C5A09 1A09 [Regular]
-5C5A0A 1A0A [Regular]
-5C5A0D 1A0D [Regular]
-5C5A1A 1A1A [Regular]
-5C5A22 1A22 [Regular]
-5C5A25 1A25 [Regular]
-5C5A27 NULL [SyntErr]
-5C5A30 1A30 [Regular]
-5C5A3F 1A3F [Regular]
-5C5A40 1A40 [Regular]
-5C5A5A 1A5A [Regular]
-5C5A5C NULL [SyntErr]
-5C5A5F 1A5F [Regular]
-5C5A61 1A61 [Regular]
-5C5A62 1A62 [Regular]
-5C5A6E 1A6E [Regular]
-5C5A72 1A72 [Regular]
-5C5A74 1A74 [Regular]
-5C5A7E 1A7E [Regular]
-5C5A7F 1A7F [Regular]
-5C5A80 1A80 [Regular][ILSEQ]
-5C5A81 1A81 [Regular][ILSEQ]
-5C5A9F 1A9F [Regular][ILSEQ]
-5C5AA0 1AA0 [Regular][ILSEQ]
-5C5AA1 1AA1 [Regular][ILSEQ]
-5C5AE0 1AE0 [Regular][ILSEQ]
-5C5AEF 1AEF [Regular][ILSEQ]
-5C5AF9 1AF9 [Regular][ILSEQ]
-5C5AFA 1AFA [Regular][ILSEQ]
-5C5AFC 1AFC [Regular][ILSEQ]
-5C5AFD 1AFD [Regular][ILSEQ]
-5C5AFE 1AFE [Regular][ILSEQ]
-5C5AFF 1AFF [Regular][ILSEQ]
-5C5C00 5C00 [Regular]
-5C5C08 5C08 [Regular]
-5C5C09 5C09 [Regular]
-5C5C0A 5C0A [Regular]
-5C5C0D 5C0D [Regular]
-5C5C1A 5C1A [Regular]
-5C5C22 5C22 [Regular]
-5C5C25 5C25 [Regular]
-5C5C27 NULL [SyntErr]
-5C5C30 5C30 [Regular]
-5C5C3F 5C3F [Regular]
-5C5C40 5C40 [Regular]
-5C5C5A 5C5A [Regular]
-5C5C5C NULL [SyntErr]
-5C5C5F 5C5F [Regular]
-5C5C61 5C61 [Regular]
-5C5C62 5C62 [Regular]
-5C5C6E 5C6E [Regular]
-5C5C72 5C72 [Regular]
-5C5C74 5C74 [Regular]
-5C5C7E 5C7E [Regular]
-5C5C7F 5C7F [Regular]
-5C5C80 5C80 [Regular][ILSEQ]
-5C5C81 5C81 [Regular][ILSEQ]
-5C5C9F 5C9F [Regular][ILSEQ]
-5C5CA0 5CA0 [Regular][ILSEQ]
-5C5CA1 5CA1 [Regular][ILSEQ]
-5C5CE0 5CE0 [Regular][ILSEQ]
-5C5CEF 5CEF [Regular][ILSEQ]
-5C5CF9 5CF9 [Regular][ILSEQ]
-5C5CFA 5CFA [Regular][ILSEQ]
-5C5CFC 5CFC [Regular][ILSEQ]
-5C5CFD 5CFD [Regular][ILSEQ]
-5C5CFE 5CFE [Regular][ILSEQ]
-5C5CFF 5CFF [Regular][ILSEQ]
-5C5F00 5C5F00 [Preserve][LIKE]
-5C5F08 5C5F08 [Preserve][LIKE]
-5C5F09 5C5F09 [Preserve][LIKE]
-5C5F0A 5C5F0A [Preserve][LIKE]
-5C5F0D 5C5F0D [Preserve][LIKE]
-5C5F1A 5C5F1A [Preserve][LIKE]
-5C5F22 5C5F22 [Preserve][LIKE]
-5C5F25 5C5F25 [Preserve][LIKE]
-5C5F27 NULL [SyntErr]
-5C5F30 5C5F30 [Preserve][LIKE]
-5C5F3F 5C5F3F [Preserve][LIKE]
-5C5F40 5C5F40 [Preserve][LIKE]
-5C5F5A 5C5F5A [Preserve][LIKE]
-5C5F5C NULL [SyntErr]
-5C5F5F 5C5F5F [Preserve][LIKE]
-5C5F61 5C5F61 [Preserve][LIKE]
-5C5F62 5C5F62 [Preserve][LIKE]
-5C5F6E 5C5F6E [Preserve][LIKE]
-5C5F72 5C5F72 [Preserve][LIKE]
-5C5F74 5C5F74 [Preserve][LIKE]
-5C5F7E 5C5F7E [Preserve][LIKE]
-5C5F7F 5C5F7F [Preserve][LIKE]
-5C5F80 5C5F80 [Preserve][LIKE][ILSEQ]
-5C5F81 5C5F81 [Preserve][LIKE][ILSEQ]
-5C5F9F 5C5F9F [Preserve][LIKE][ILSEQ]
-5C5FA0 5C5FA0 [Preserve][LIKE][ILSEQ]
-5C5FA1 5C5FA1 [Preserve][LIKE][ILSEQ]
-5C5FE0 5C5FE0 [Preserve][LIKE][ILSEQ]
-5C5FEF 5C5FEF [Preserve][LIKE][ILSEQ]
-5C5FF9 5C5FF9 [Preserve][LIKE][ILSEQ]
-5C5FFA 5C5FFA [Preserve][LIKE][ILSEQ]
-5C5FFC 5C5FFC [Preserve][LIKE][ILSEQ]
-5C5FFD 5C5FFD [Preserve][LIKE][ILSEQ]
-5C5FFE 5C5FFE [Preserve][LIKE][ILSEQ]
-5C5FFF 5C5FFF [Preserve][LIKE][ILSEQ]
-5C6100 6100 [Trivial]
-5C6108 6108 [Trivial]
-5C6109 6109 [Trivial]
-5C610A 610A [Trivial]
-5C610D 610D [Trivial]
-5C611A 611A [Trivial]
-5C6122 6122 [Trivial]
-5C6125 6125 [Trivial]
-5C6127 NULL [SyntErr]
-5C6130 6130 [Trivial]
-5C613F 613F [Trivial]
-5C6140 6140 [Trivial]
-5C615A 615A [Trivial]
-5C615C NULL [SyntErr]
-5C615F 615F [Trivial]
-5C6161 6161 [Trivial]
-5C6162 6162 [Trivial]
-5C616E 616E [Trivial]
-5C6172 6172 [Trivial]
-5C6174 6174 [Trivial]
-5C617E 617E [Trivial]
-5C617F 617F [Trivial]
-5C6180 6180 [Trivial][ILSEQ]
-5C6181 6181 [Trivial][ILSEQ]
-5C619F 619F [Trivial][ILSEQ]
-5C61A0 61A0 [Trivial][ILSEQ]
-5C61A1 61A1 [Trivial][ILSEQ]
-5C61E0 61E0 [Trivial][ILSEQ]
-5C61EF 61EF [Trivial][ILSEQ]
-5C61F9 61F9 [Trivial][ILSEQ]
-5C61FA 61FA [Trivial][ILSEQ]
-5C61FC 61FC [Trivial][ILSEQ]
-5C61FD 61FD [Trivial][ILSEQ]
-5C61FE 61FE [Trivial][ILSEQ]
-5C61FF 61FF [Trivial][ILSEQ]
-5C6200 0800 [Regular]
-5C6208 0808 [Regular]
-5C6209 0809 [Regular]
-5C620A 080A [Regular]
-5C620D 080D [Regular]
-5C621A 081A [Regular]
-5C6222 0822 [Regular]
-5C6225 0825 [Regular]
-5C6227 NULL [SyntErr]
-5C6230 0830 [Regular]
-5C623F 083F [Regular]
-5C6240 0840 [Regular]
-5C625A 085A [Regular]
-5C625C NULL [SyntErr]
-5C625F 085F [Regular]
-5C6261 0861 [Regular]
-5C6262 0862 [Regular]
-5C626E 086E [Regular]
-5C6272 0872 [Regular]
-5C6274 0874 [Regular]
-5C627E 087E [Regular]
-5C627F 087F [Regular]
-5C6280 0880 [Regular][ILSEQ]
-5C6281 0881 [Regular][ILSEQ]
-5C629F 089F [Regular][ILSEQ]
-5C62A0 08A0 [Regular][ILSEQ]
-5C62A1 08A1 [Regular][ILSEQ]
-5C62E0 08E0 [Regular][ILSEQ]
-5C62EF 08EF [Regular][ILSEQ]
-5C62F9 08F9 [Regular][ILSEQ]
-5C62FA 08FA [Regular][ILSEQ]
-5C62FC 08FC [Regular][ILSEQ]
-5C62FD 08FD [Regular][ILSEQ]
-5C62FE 08FE [Regular][ILSEQ]
-5C62FF 08FF [Regular][ILSEQ]
-5C6E00 0A00 [Regular]
-5C6E08 0A08 [Regular]
-5C6E09 0A09 [Regular]
-5C6E0A 0A0A [Regular]
-5C6E0D 0A0D [Regular]
-5C6E1A 0A1A [Regular]
-5C6E22 0A22 [Regular]
-5C6E25 0A25 [Regular]
-5C6E27 NULL [SyntErr]
-5C6E30 0A30 [Regular]
-5C6E3F 0A3F [Regular]
-5C6E40 0A40 [Regular]
-5C6E5A 0A5A [Regular]
-5C6E5C NULL [SyntErr]
-5C6E5F 0A5F [Regular]
-5C6E61 0A61 [Regular]
-5C6E62 0A62 [Regular]
-5C6E6E 0A6E [Regular]
-5C6E72 0A72 [Regular]
-5C6E74 0A74 [Regular]
-5C6E7E 0A7E [Regular]
-5C6E7F 0A7F [Regular]
-5C6E80 0A80 [Regular][ILSEQ]
-5C6E81 0A81 [Regular][ILSEQ]
-5C6E9F 0A9F [Regular][ILSEQ]
-5C6EA0 0AA0 [Regular][ILSEQ]
-5C6EA1 0AA1 [Regular][ILSEQ]
-5C6EE0 0AE0 [Regular][ILSEQ]
-5C6EEF 0AEF [Regular][ILSEQ]
-5C6EF9 0AF9 [Regular][ILSEQ]
-5C6EFA 0AFA [Regular][ILSEQ]
-5C6EFC 0AFC [Regular][ILSEQ]
-5C6EFD 0AFD [Regular][ILSEQ]
-5C6EFE 0AFE [Regular][ILSEQ]
-5C6EFF 0AFF [Regular][ILSEQ]
-5C7200 0D00 [Regular]
-5C7208 0D08 [Regular]
-5C7209 0D09 [Regular]
-5C720A 0D0A [Regular]
-5C720D 0D0D [Regular]
-5C721A 0D1A [Regular]
-5C7222 0D22 [Regular]
-5C7225 0D25 [Regular]
-5C7227 NULL [SyntErr]
-5C7230 0D30 [Regular]
-5C723F 0D3F [Regular]
-5C7240 0D40 [Regular]
-5C725A 0D5A [Regular]
-5C725C NULL [SyntErr]
-5C725F 0D5F [Regular]
-5C7261 0D61 [Regular]
-5C7262 0D62 [Regular]
-5C726E 0D6E [Regular]
-5C7272 0D72 [Regular]
-5C7274 0D74 [Regular]
-5C727E 0D7E [Regular]
-5C727F 0D7F [Regular]
-5C7280 0D80 [Regular][ILSEQ]
-5C7281 0D81 [Regular][ILSEQ]
-5C729F 0D9F [Regular][ILSEQ]
-5C72A0 0DA0 [Regular][ILSEQ]
-5C72A1 0DA1 [Regular][ILSEQ]
-5C72E0 0DE0 [Regular][ILSEQ]
-5C72EF 0DEF [Regular][ILSEQ]
-5C72F9 0DF9 [Regular][ILSEQ]
-5C72FA 0DFA [Regular][ILSEQ]
-5C72FC 0DFC [Regular][ILSEQ]
-5C72FD 0DFD [Regular][ILSEQ]
-5C72FE 0DFE [Regular][ILSEQ]
-5C72FF 0DFF [Regular][ILSEQ]
-5C7400 0900 [Regular]
-5C7408 0908 [Regular]
-5C7409 0909 [Regular]
-5C740A 090A [Regular]
-5C740D 090D [Regular]
-5C741A 091A [Regular]
-5C7422 0922 [Regular]
-5C7425 0925 [Regular]
-5C7427 NULL [SyntErr]
-5C7430 0930 [Regular]
-5C743F 093F [Regular]
-5C7440 0940 [Regular]
-5C745A 095A [Regular]
-5C745C NULL [SyntErr]
-5C745F 095F [Regular]
-5C7461 0961 [Regular]
-5C7462 0962 [Regular]
-5C746E 096E [Regular]
-5C7472 0972 [Regular]
-5C7474 0974 [Regular]
-5C747E 097E [Regular]
-5C747F 097F [Regular]
-5C7480 0980 [Regular][ILSEQ]
-5C7481 0981 [Regular][ILSEQ]
-5C749F 099F [Regular][ILSEQ]
-5C74A0 09A0 [Regular][ILSEQ]
-5C74A1 09A1 [Regular][ILSEQ]
-5C74E0 09E0 [Regular][ILSEQ]
-5C74EF 09EF [Regular][ILSEQ]
-5C74F9 09F9 [Regular][ILSEQ]
-5C74FA 09FA [Regular][ILSEQ]
-5C74FC 09FC [Regular][ILSEQ]
-5C74FD 09FD [Regular][ILSEQ]
-5C74FE 09FE [Regular][ILSEQ]
-5C74FF 09FF [Regular][ILSEQ]
-5C7E00 7E00 [Trivial]
-5C7E08 7E08 [Trivial]
-5C7E09 7E09 [Trivial]
-5C7E0A 7E0A [Trivial]
-5C7E0D 7E0D [Trivial]
-5C7E1A 7E1A [Trivial]
-5C7E22 7E22 [Trivial]
-5C7E25 7E25 [Trivial]
-5C7E27 NULL [SyntErr]
-5C7E30 7E30 [Trivial]
-5C7E3F 7E3F [Trivial]
-5C7E40 7E40 [Trivial]
-5C7E5A 7E5A [Trivial]
-5C7E5C NULL [SyntErr]
-5C7E5F 7E5F [Trivial]
-5C7E61 7E61 [Trivial]
-5C7E62 7E62 [Trivial]
-5C7E6E 7E6E [Trivial]
-5C7E72 7E72 [Trivial]
-5C7E74 7E74 [Trivial]
-5C7E7E 7E7E [Trivial]
-5C7E7F 7E7F [Trivial]
-5C7E80 7E80 [Trivial][ILSEQ]
-5C7E81 7E81 [Trivial][ILSEQ]
-5C7E9F 7E9F [Trivial][ILSEQ]
-5C7EA0 7EA0 [Trivial][ILSEQ]
-5C7EA1 7EA1 [Trivial][ILSEQ]
-5C7EE0 7EE0 [Trivial][ILSEQ]
-5C7EEF 7EEF [Trivial][ILSEQ]
-5C7EF9 7EF9 [Trivial][ILSEQ]
-5C7EFA 7EFA [Trivial][ILSEQ]
-5C7EFC 7EFC [Trivial][ILSEQ]
-5C7EFD 7EFD [Trivial][ILSEQ]
-5C7EFE 7EFE [Trivial][ILSEQ]
-5C7EFF 7EFF [Trivial][ILSEQ]
-5C7F00 7F00 [Trivial]
-5C7F08 7F08 [Trivial]
-5C7F09 7F09 [Trivial]
-5C7F0A 7F0A [Trivial]
-5C7F0D 7F0D [Trivial]
-5C7F1A 7F1A [Trivial]
-5C7F22 7F22 [Trivial]
-5C7F25 7F25 [Trivial]
-5C7F27 NULL [SyntErr]
-5C7F30 7F30 [Trivial]
-5C7F3F 7F3F [Trivial]
-5C7F40 7F40 [Trivial]
-5C7F5A 7F5A [Trivial]
-5C7F5C NULL [SyntErr]
-5C7F5F 7F5F [Trivial]
-5C7F61 7F61 [Trivial]
-5C7F62 7F62 [Trivial]
-5C7F6E 7F6E [Trivial]
-5C7F72 7F72 [Trivial]
-5C7F74 7F74 [Trivial]
-5C7F7E 7F7E [Trivial]
-5C7F7F 7F7F [Trivial]
-5C7F80 7F80 [Trivial][ILSEQ]
-5C7F81 7F81 [Trivial][ILSEQ]
-5C7F9F 7F9F [Trivial][ILSEQ]
-5C7FA0 7FA0 [Trivial][ILSEQ]
-5C7FA1 7FA1 [Trivial][ILSEQ]
-5C7FE0 7FE0 [Trivial][ILSEQ]
-5C7FEF 7FEF [Trivial][ILSEQ]
-5C7FF9 7FF9 [Trivial][ILSEQ]
-5C7FFA 7FFA [Trivial][ILSEQ]
-5C7FFC 7FFC [Trivial][ILSEQ]
-5C7FFD 7FFD [Trivial][ILSEQ]
-5C7FFE 7FFE [Trivial][ILSEQ]
-5C7FFF 7FFF [Trivial][ILSEQ]
-5C8000 8000 [Trivial][ILSEQ]
-5C8008 8008 [Trivial][ILSEQ]
-5C8009 8009 [Trivial][ILSEQ]
-5C800A 800A [Trivial][ILSEQ]
-5C800D 800D [Trivial][ILSEQ]
-5C801A 801A [Trivial][ILSEQ]
-5C8022 8022 [Trivial][ILSEQ]
-5C8025 8025 [Trivial][ILSEQ]
-5C8027 NULL [SyntErr]
-5C8030 8030 [Trivial][ILSEQ]
-5C803F 803F [Trivial][ILSEQ]
-5C8040 8040 [Trivial][ILSEQ]
-5C805A 805A [Trivial][ILSEQ]
-5C805C NULL [SyntErr]
-5C805F 805F [Trivial][ILSEQ]
-5C8061 8061 [Trivial][ILSEQ]
-5C8062 8062 [Trivial][ILSEQ]
-5C806E 806E [Trivial][ILSEQ]
-5C8072 8072 [Trivial][ILSEQ]
-5C8074 8074 [Trivial][ILSEQ]
-5C807E 807E [Trivial][ILSEQ]
-5C807F 807F [Trivial][ILSEQ]
-5C8080 8080 [Trivial][ILSEQ]
-5C8081 8081 [Trivial][ILSEQ]
-5C809F 809F [Trivial][ILSEQ]
-5C80A0 80A0 [Trivial][ILSEQ]
-5C80A1 80A1 [Trivial][ILSEQ]
-5C80E0 80E0 [Trivial][ILSEQ]
-5C80EF 80EF [Trivial][ILSEQ]
-5C80F9 80F9 [Trivial][ILSEQ]
-5C80FA 80FA [Trivial][ILSEQ]
-5C80FC 80FC [Trivial][ILSEQ]
-5C80FD 80FD [Trivial][ILSEQ]
-5C80FE 80FE [Trivial][ILSEQ]
-5C80FF 80FF [Trivial][ILSEQ]
-5C8100 8100 [Trivial][ILSEQ]
-5C8108 8108 [Trivial][ILSEQ]
-5C8109 8109 [Trivial][ILSEQ]
-5C810A 810A [Trivial][ILSEQ]
-5C810D 810D [Trivial][ILSEQ]
-5C811A 811A [Trivial][ILSEQ]
-5C8122 8122 [Trivial][ILSEQ]
-5C8125 8125 [Trivial][ILSEQ]
-5C8127 NULL [SyntErr]
-5C8130 8130 [Trivial][ILSEQ]
-5C813F 813F [Trivial][ILSEQ]
-5C8140 8140 [Trivial][ILSEQ]
-5C815A 815A [Trivial][ILSEQ]
-5C815C NULL [SyntErr]
-5C815F 815F [Trivial][ILSEQ]
-5C8161 8161 [Trivial][ILSEQ]
-5C8162 8162 [Trivial][ILSEQ]
-5C816E 816E [Trivial][ILSEQ]
-5C8172 8172 [Trivial][ILSEQ]
-5C8174 8174 [Trivial][ILSEQ]
-5C817E 817E [Trivial][ILSEQ]
-5C817F 817F [Trivial][ILSEQ]
-5C8180 8180 [Trivial][ILSEQ]
-5C8181 8181 [Trivial][ILSEQ]
-5C819F 819F [Trivial][ILSEQ]
-5C81A0 81A0 [Trivial][ILSEQ]
-5C81A1 81A1 [Trivial][ILSEQ]
-5C81E0 81E0 [Trivial][ILSEQ]
-5C81EF 81EF [Trivial][ILSEQ]
-5C81F9 81F9 [Trivial][ILSEQ]
-5C81FA 81FA [Trivial][ILSEQ]
-5C81FC 81FC [Trivial][ILSEQ]
-5C81FD 81FD [Trivial][ILSEQ]
-5C81FE 81FE [Trivial][ILSEQ]
-5C81FF 81FF [Trivial][ILSEQ]
-5C9F00 9F00 [Trivial][ILSEQ]
-5C9F08 9F08 [Trivial][ILSEQ]
-5C9F09 9F09 [Trivial][ILSEQ]
-5C9F0A 9F0A [Trivial][ILSEQ]
-5C9F0D 9F0D [Trivial][ILSEQ]
-5C9F1A 9F1A [Trivial][ILSEQ]
-5C9F22 9F22 [Trivial][ILSEQ]
-5C9F25 9F25 [Trivial][ILSEQ]
-5C9F27 NULL [SyntErr]
-5C9F30 9F30 [Trivial][ILSEQ]
-5C9F3F 9F3F [Trivial][ILSEQ]
-5C9F40 9F40 [Trivial][ILSEQ]
-5C9F5A 9F5A [Trivial][ILSEQ]
-5C9F5C NULL [SyntErr]
-5C9F5F 9F5F [Trivial][ILSEQ]
-5C9F61 9F61 [Trivial][ILSEQ]
-5C9F62 9F62 [Trivial][ILSEQ]
-5C9F6E 9F6E [Trivial][ILSEQ]
-5C9F72 9F72 [Trivial][ILSEQ]
-5C9F74 9F74 [Trivial][ILSEQ]
-5C9F7E 9F7E [Trivial][ILSEQ]
-5C9F7F 9F7F [Trivial][ILSEQ]
-5C9F80 9F80 [Trivial][ILSEQ]
-5C9F81 9F81 [Trivial][ILSEQ]
-5C9F9F 9F9F [Trivial][ILSEQ]
-5C9FA0 9FA0 [Trivial][ILSEQ]
-5C9FA1 9FA1 [Trivial][ILSEQ]
-5C9FE0 9FE0 [Trivial][ILSEQ]
-5C9FEF 9FEF [Trivial][ILSEQ]
-5C9FF9 9FF9 [Trivial][ILSEQ]
-5C9FFA 9FFA [Trivial][ILSEQ]
-5C9FFC 9FFC [Trivial][ILSEQ]
-5C9FFD 9FFD [Trivial][ILSEQ]
-5C9FFE 9FFE [Trivial][ILSEQ]
-5C9FFF 9FFF [Trivial][ILSEQ]
-5CA000 A000 [Trivial][ILSEQ]
-5CA008 A008 [Trivial][ILSEQ]
-5CA009 A009 [Trivial][ILSEQ]
-5CA00A A00A [Trivial][ILSEQ]
-5CA00D A00D [Trivial][ILSEQ]
-5CA01A A01A [Trivial][ILSEQ]
-5CA022 A022 [Trivial][ILSEQ]
-5CA025 A025 [Trivial][ILSEQ]
-5CA027 NULL [SyntErr]
-5CA030 A030 [Trivial][ILSEQ]
-5CA03F A03F [Trivial][ILSEQ]
-5CA040 A040 [Trivial][ILSEQ]
-5CA05A A05A [Trivial][ILSEQ]
-5CA05C NULL [SyntErr]
-5CA05F A05F [Trivial][ILSEQ]
-5CA061 A061 [Trivial][ILSEQ]
-5CA062 A062 [Trivial][ILSEQ]
-5CA06E A06E [Trivial][ILSEQ]
-5CA072 A072 [Trivial][ILSEQ]
-5CA074 A074 [Trivial][ILSEQ]
-5CA07E A07E [Trivial][ILSEQ]
-5CA07F A07F [Trivial][ILSEQ]
-5CA080 A080 [Trivial][ILSEQ]
-5CA081 A081 [Trivial][ILSEQ]
-5CA09F A09F [Trivial][ILSEQ]
-5CA0A0 A0A0 [Trivial][ILSEQ]
-5CA0A1 A0A1 [Trivial][ILSEQ]
-5CA0E0 A0E0 [Trivial][ILSEQ]
-5CA0EF A0EF [Trivial][ILSEQ]
-5CA0F9 A0F9 [Trivial][ILSEQ]
-5CA0FA A0FA [Trivial][ILSEQ]
-5CA0FC A0FC [Trivial][ILSEQ]
-5CA0FD A0FD [Trivial][ILSEQ]
-5CA0FE A0FE [Trivial][ILSEQ]
-5CA0FF A0FF [Trivial][ILSEQ]
-5CA100 A100 [Trivial][ILSEQ]
-5CA108 A108 [Trivial][ILSEQ]
-5CA109 A109 [Trivial][ILSEQ]
-5CA10A A10A [Trivial][ILSEQ]
-5CA10D A10D [Trivial][ILSEQ]
-5CA11A A11A [Trivial][ILSEQ]
-5CA122 A122 [Trivial][ILSEQ]
-5CA125 A125 [Trivial][ILSEQ]
-5CA127 NULL [SyntErr]
-5CA130 A130 [Trivial][ILSEQ]
-5CA13F A13F [Trivial][ILSEQ]
-5CA140 A140 [Trivial][ILSEQ]
-5CA15A A15A [Trivial][ILSEQ]
-5CA15C NULL [SyntErr]
-5CA15F A15F [Trivial][ILSEQ]
-5CA161 A161 [Trivial][ILSEQ]
-5CA162 A162 [Trivial][ILSEQ]
-5CA16E A16E [Trivial][ILSEQ]
-5CA172 A172 [Trivial][ILSEQ]
-5CA174 A174 [Trivial][ILSEQ]
-5CA17E A17E [Trivial][ILSEQ]
-5CA17F A17F [Trivial][ILSEQ]
-5CA180 A180 [Trivial][ILSEQ]
-5CA181 A181 [Trivial][ILSEQ]
-5CA19F A19F [Trivial][ILSEQ]
-5CA1A0 A1A0 [Trivial][ILSEQ]
-5CA1A1 A1A1 [Trivial][ILSEQ]
-5CA1E0 A1E0 [Trivial][ILSEQ]
-5CA1EF A1EF [Trivial][ILSEQ]
-5CA1F9 A1F9 [Trivial][ILSEQ]
-5CA1FA A1FA [Trivial][ILSEQ]
-5CA1FC A1FC [Trivial][ILSEQ]
-5CA1FD A1FD [Trivial][ILSEQ]
-5CA1FE A1FE [Trivial][ILSEQ]
-5CA1FF A1FF [Trivial][ILSEQ]
-5CE000 E000 [Trivial][ILSEQ]
-5CE008 E008 [Trivial][ILSEQ]
-5CE009 E009 [Trivial][ILSEQ]
-5CE00A E00A [Trivial][ILSEQ]
-5CE00D E00D [Trivial][ILSEQ]
-5CE01A E01A [Trivial][ILSEQ]
-5CE022 E022 [Trivial][ILSEQ]
-5CE025 E025 [Trivial][ILSEQ]
-5CE027 NULL [SyntErr]
-5CE030 E030 [Trivial][ILSEQ]
-5CE03F E03F [Trivial][ILSEQ]
-5CE040 E040 [Trivial][ILSEQ]
-5CE05A E05A [Trivial][ILSEQ]
-5CE05C NULL [SyntErr]
-5CE05F E05F [Trivial][ILSEQ]
-5CE061 E061 [Trivial][ILSEQ]
-5CE062 E062 [Trivial][ILSEQ]
-5CE06E E06E [Trivial][ILSEQ]
-5CE072 E072 [Trivial][ILSEQ]
-5CE074 E074 [Trivial][ILSEQ]
-5CE07E E07E [Trivial][ILSEQ]
-5CE07F E07F [Trivial][ILSEQ]
-5CE080 E080 [Trivial][ILSEQ]
-5CE081 E081 [Trivial][ILSEQ]
-5CE09F E09F [Trivial][ILSEQ]
-5CE0A0 E0A0 [Trivial][ILSEQ]
-5CE0A1 E0A1 [Trivial][ILSEQ]
-5CE0E0 E0E0 [Trivial][ILSEQ]
-5CE0EF E0EF [Trivial][ILSEQ]
-5CE0F9 E0F9 [Trivial][ILSEQ]
-5CE0FA E0FA [Trivial][ILSEQ]
-5CE0FC E0FC [Trivial][ILSEQ]
-5CE0FD E0FD [Trivial][ILSEQ]
-5CE0FE E0FE [Trivial][ILSEQ]
-5CE0FF E0FF [Trivial][ILSEQ]
-5CEF00 EF00 [Trivial][ILSEQ]
-5CEF08 EF08 [Trivial][ILSEQ]
-5CEF09 EF09 [Trivial][ILSEQ]
-5CEF0A EF0A [Trivial][ILSEQ]
-5CEF0D EF0D [Trivial][ILSEQ]
-5CEF1A EF1A [Trivial][ILSEQ]
-5CEF22 EF22 [Trivial][ILSEQ]
-5CEF25 EF25 [Trivial][ILSEQ]
-5CEF27 NULL [SyntErr]
-5CEF30 EF30 [Trivial][ILSEQ]
-5CEF3F EF3F [Trivial][ILSEQ]
-5CEF40 EF40 [Trivial][ILSEQ]
-5CEF5A EF5A [Trivial][ILSEQ]
-5CEF5C NULL [SyntErr]
-5CEF5F EF5F [Trivial][ILSEQ]
-5CEF61 EF61 [Trivial][ILSEQ]
-5CEF62 EF62 [Trivial][ILSEQ]
-5CEF6E EF6E [Trivial][ILSEQ]
-5CEF72 EF72 [Trivial][ILSEQ]
-5CEF74 EF74 [Trivial][ILSEQ]
-5CEF7E EF7E [Trivial][ILSEQ]
-5CEF7F EF7F [Trivial][ILSEQ]
-5CEF80 EF80 [Trivial][ILSEQ]
-5CEF81 EF81 [Trivial][ILSEQ]
-5CEF9F EF9F [Trivial][ILSEQ]
-5CEFA0 EFA0 [Trivial][ILSEQ]
-5CEFA1 EFA1 [Trivial][ILSEQ]
-5CEFE0 EFE0 [Trivial][ILSEQ]
-5CEFEF EFEF [Trivial][ILSEQ]
-5CEFF9 EFF9 [Trivial][ILSEQ]
-5CEFFA EFFA [Trivial][ILSEQ]
-5CEFFC EFFC [Trivial][ILSEQ]
-5CEFFD EFFD [Trivial][ILSEQ]
-5CEFFE EFFE [Trivial][ILSEQ]
-5CEFFF EFFF [Trivial][ILSEQ]
-5CF900 F900 [Trivial][ILSEQ]
-5CF908 F908 [Trivial][ILSEQ]
-5CF909 F909 [Trivial][ILSEQ]
-5CF90A F90A [Trivial][ILSEQ]
-5CF90D F90D [Trivial][ILSEQ]
-5CF91A F91A [Trivial][ILSEQ]
-5CF922 F922 [Trivial][ILSEQ]
-5CF925 F925 [Trivial][ILSEQ]
-5CF927 NULL [SyntErr]
-5CF930 F930 [Trivial][ILSEQ]
-5CF93F F93F [Trivial][ILSEQ]
-5CF940 F940 [Trivial][ILSEQ]
-5CF95A F95A [Trivial][ILSEQ]
-5CF95C NULL [SyntErr]
-5CF95F F95F [Trivial][ILSEQ]
-5CF961 F961 [Trivial][ILSEQ]
-5CF962 F962 [Trivial][ILSEQ]
-5CF96E F96E [Trivial][ILSEQ]
-5CF972 F972 [Trivial][ILSEQ]
-5CF974 F974 [Trivial][ILSEQ]
-5CF97E F97E [Trivial][ILSEQ]
-5CF97F F97F [Trivial][ILSEQ]
-5CF980 F980 [Trivial][ILSEQ]
-5CF981 F981 [Trivial][ILSEQ]
-5CF99F F99F [Trivial][ILSEQ]
-5CF9A0 F9A0 [Trivial][ILSEQ]
-5CF9A1 F9A1 [Trivial][ILSEQ]
-5CF9E0 F9E0 [Trivial][ILSEQ]
-5CF9EF F9EF [Trivial][ILSEQ]
-5CF9F9 F9F9 [Trivial][ILSEQ]
-5CF9FA F9FA [Trivial][ILSEQ]
-5CF9FC F9FC [Trivial][ILSEQ]
-5CF9FD F9FD [Trivial][ILSEQ]
-5CF9FE F9FE [Trivial][ILSEQ]
-5CF9FF F9FF [Trivial][ILSEQ]
-5CFA00 FA00 [Trivial][ILSEQ]
-5CFA08 FA08 [Trivial][ILSEQ]
-5CFA09 FA09 [Trivial][ILSEQ]
-5CFA0A FA0A [Trivial][ILSEQ]
-5CFA0D FA0D [Trivial][ILSEQ]
-5CFA1A FA1A [Trivial][ILSEQ]
-5CFA22 FA22 [Trivial][ILSEQ]
-5CFA25 FA25 [Trivial][ILSEQ]
-5CFA27 NULL [SyntErr]
-5CFA30 FA30 [Trivial][ILSEQ]
-5CFA3F FA3F [Trivial][ILSEQ]
-5CFA40 FA40 [Trivial][ILSEQ]
-5CFA5A FA5A [Trivial][ILSEQ]
-5CFA5C NULL [SyntErr]
-5CFA5F FA5F [Trivial][ILSEQ]
-5CFA61 FA61 [Trivial][ILSEQ]
-5CFA62 FA62 [Trivial][ILSEQ]
-5CFA6E FA6E [Trivial][ILSEQ]
-5CFA72 FA72 [Trivial][ILSEQ]
-5CFA74 FA74 [Trivial][ILSEQ]
-5CFA7E FA7E [Trivial][ILSEQ]
-5CFA7F FA7F [Trivial][ILSEQ]
-5CFA80 FA80 [Trivial][ILSEQ]
-5CFA81 FA81 [Trivial][ILSEQ]
-5CFA9F FA9F [Trivial][ILSEQ]
-5CFAA0 FAA0 [Trivial][ILSEQ]
-5CFAA1 FAA1 [Trivial][ILSEQ]
-5CFAE0 FAE0 [Trivial][ILSEQ]
-5CFAEF FAEF [Trivial][ILSEQ]
-5CFAF9 FAF9 [Trivial][ILSEQ]
-5CFAFA FAFA [Trivial][ILSEQ]
-5CFAFC FAFC [Trivial][ILSEQ]
-5CFAFD FAFD [Trivial][ILSEQ]
-5CFAFE FAFE [Trivial][ILSEQ]
-5CFAFF FAFF [Trivial][ILSEQ]
-5CFC00 FC00 [Trivial][ILSEQ]
-5CFC08 FC08 [Trivial][ILSEQ]
-5CFC09 FC09 [Trivial][ILSEQ]
-5CFC0A FC0A [Trivial][ILSEQ]
-5CFC0D FC0D [Trivial][ILSEQ]
-5CFC1A FC1A [Trivial][ILSEQ]
-5CFC22 FC22 [Trivial][ILSEQ]
-5CFC25 FC25 [Trivial][ILSEQ]
-5CFC27 NULL [SyntErr]
-5CFC30 FC30 [Trivial][ILSEQ]
-5CFC3F FC3F [Trivial][ILSEQ]
-5CFC40 FC40 [Trivial][ILSEQ]
-5CFC5A FC5A [Trivial][ILSEQ]
-5CFC5C NULL [SyntErr]
-5CFC5F FC5F [Trivial][ILSEQ]
-5CFC61 FC61 [Trivial][ILSEQ]
-5CFC62 FC62 [Trivial][ILSEQ]
-5CFC6E FC6E [Trivial][ILSEQ]
-5CFC72 FC72 [Trivial][ILSEQ]
-5CFC74 FC74 [Trivial][ILSEQ]
-5CFC7E FC7E [Trivial][ILSEQ]
-5CFC7F FC7F [Trivial][ILSEQ]
-5CFC80 FC80 [Trivial][ILSEQ]
-5CFC81 FC81 [Trivial][ILSEQ]
-5CFC9F FC9F [Trivial][ILSEQ]
-5CFCA0 FCA0 [Trivial][ILSEQ]
-5CFCA1 FCA1 [Trivial][ILSEQ]
-5CFCE0 FCE0 [Trivial][ILSEQ]
-5CFCEF FCEF [Trivial][ILSEQ]
-5CFCF9 FCF9 [Trivial][ILSEQ]
-5CFCFA FCFA [Trivial][ILSEQ]
-5CFCFC FCFC [Trivial][ILSEQ]
-5CFCFD FCFD [Trivial][ILSEQ]
-5CFCFE FCFE [Trivial][ILSEQ]
-5CFCFF FCFF [Trivial][ILSEQ]
-5CFD00 FD00 [Trivial][ILSEQ]
-5CFD08 FD08 [Trivial][ILSEQ]
-5CFD09 FD09 [Trivial][ILSEQ]
-5CFD0A FD0A [Trivial][ILSEQ]
-5CFD0D FD0D [Trivial][ILSEQ]
-5CFD1A FD1A [Trivial][ILSEQ]
-5CFD22 FD22 [Trivial][ILSEQ]
-5CFD25 FD25 [Trivial][ILSEQ]
-5CFD27 NULL [SyntErr]
-5CFD30 FD30 [Trivial][ILSEQ]
-5CFD3F FD3F [Trivial][ILSEQ]
-5CFD40 FD40 [Trivial][ILSEQ]
-5CFD5A FD5A [Trivial][ILSEQ]
-5CFD5C NULL [SyntErr]
-5CFD5F FD5F [Trivial][ILSEQ]
-5CFD61 FD61 [Trivial][ILSEQ]
-5CFD62 FD62 [Trivial][ILSEQ]
-5CFD6E FD6E [Trivial][ILSEQ]
-5CFD72 FD72 [Trivial][ILSEQ]
-5CFD74 FD74 [Trivial][ILSEQ]
-5CFD7E FD7E [Trivial][ILSEQ]
-5CFD7F FD7F [Trivial][ILSEQ]
-5CFD80 FD80 [Trivial][ILSEQ]
-5CFD81 FD81 [Trivial][ILSEQ]
-5CFD9F FD9F [Trivial][ILSEQ]
-5CFDA0 FDA0 [Trivial][ILSEQ]
-5CFDA1 FDA1 [Trivial][ILSEQ]
-5CFDE0 FDE0 [Trivial][ILSEQ]
-5CFDEF FDEF [Trivial][ILSEQ]
-5CFDF9 FDF9 [Trivial][ILSEQ]
-5CFDFA FDFA [Trivial][ILSEQ]
-5CFDFC FDFC [Trivial][ILSEQ]
-5CFDFD FDFD [Trivial][ILSEQ]
-5CFDFE FDFE [Trivial][ILSEQ]
-5CFDFF FDFF [Trivial][ILSEQ]
-5CFE00 FE00 [Trivial][ILSEQ]
-5CFE08 FE08 [Trivial][ILSEQ]
-5CFE09 FE09 [Trivial][ILSEQ]
-5CFE0A FE0A [Trivial][ILSEQ]
-5CFE0D FE0D [Trivial][ILSEQ]
-5CFE1A FE1A [Trivial][ILSEQ]
-5CFE22 FE22 [Trivial][ILSEQ]
-5CFE25 FE25 [Trivial][ILSEQ]
-5CFE27 NULL [SyntErr]
-5CFE30 FE30 [Trivial][ILSEQ]
-5CFE3F FE3F [Trivial][ILSEQ]
-5CFE40 FE40 [Trivial][ILSEQ]
-5CFE5A FE5A [Trivial][ILSEQ]
-5CFE5C NULL [SyntErr]
-5CFE5F FE5F [Trivial][ILSEQ]
-5CFE61 FE61 [Trivial][ILSEQ]
-5CFE62 FE62 [Trivial][ILSEQ]
-5CFE6E FE6E [Trivial][ILSEQ]
-5CFE72 FE72 [Trivial][ILSEQ]
-5CFE74 FE74 [Trivial][ILSEQ]
-5CFE7E FE7E [Trivial][ILSEQ]
-5CFE7F FE7F [Trivial][ILSEQ]
-5CFE80 FE80 [Trivial][ILSEQ]
-5CFE81 FE81 [Trivial][ILSEQ]
-5CFE9F FE9F [Trivial][ILSEQ]
-5CFEA0 FEA0 [Trivial][ILSEQ]
-5CFEA1 FEA1 [Trivial][ILSEQ]
-5CFEE0 FEE0 [Trivial][ILSEQ]
-5CFEEF FEEF [Trivial][ILSEQ]
-5CFEF9 FEF9 [Trivial][ILSEQ]
-5CFEFA FEFA [Trivial][ILSEQ]
-5CFEFC FEFC [Trivial][ILSEQ]
-5CFEFD FEFD [Trivial][ILSEQ]
-5CFEFE FEFE [Trivial][ILSEQ]
-5CFEFF FEFF [Trivial][ILSEQ]
-5CFF00 FF00 [Trivial][ILSEQ]
-5CFF08 FF08 [Trivial][ILSEQ]
-5CFF09 FF09 [Trivial][ILSEQ]
-5CFF0A FF0A [Trivial][ILSEQ]
-5CFF0D FF0D [Trivial][ILSEQ]
-5CFF1A FF1A [Trivial][ILSEQ]
-5CFF22 FF22 [Trivial][ILSEQ]
-5CFF25 FF25 [Trivial][ILSEQ]
-5CFF27 NULL [SyntErr]
-5CFF30 FF30 [Trivial][ILSEQ]
-5CFF3F FF3F [Trivial][ILSEQ]
-5CFF40 FF40 [Trivial][ILSEQ]
-5CFF5A FF5A [Trivial][ILSEQ]
-5CFF5C NULL [SyntErr]
-5CFF5F FF5F [Trivial][ILSEQ]
-5CFF61 FF61 [Trivial][ILSEQ]
-5CFF62 FF62 [Trivial][ILSEQ]
-5CFF6E FF6E [Trivial][ILSEQ]
-5CFF72 FF72 [Trivial][ILSEQ]
-5CFF74 FF74 [Trivial][ILSEQ]
-5CFF7E FF7E [Trivial][ILSEQ]
-5CFF7F FF7F [Trivial][ILSEQ]
-5CFF80 FF80 [Trivial][ILSEQ]
-5CFF81 FF81 [Trivial][ILSEQ]
-5CFF9F FF9F [Trivial][ILSEQ]
-5CFFA0 FFA0 [Trivial][ILSEQ]
-5CFFA1 FFA1 [Trivial][ILSEQ]
-5CFFE0 FFE0 [Trivial][ILSEQ]
-5CFFEF FFEF [Trivial][ILSEQ]
-5CFFF9 FFF9 [Trivial][ILSEQ]
-5CFFFA FFFA [Trivial][ILSEQ]
-5CFFFC FFFC [Trivial][ILSEQ]
-5CFFFD FFFD [Trivial][ILSEQ]
-5CFFFE FFFE [Trivial][ILSEQ]
-5CFFFF FFFF [Trivial][ILSEQ]
-5C005C00 0000 [Trivial]
-5C005C08 0008 [Trivial]
-5C005C09 0009 [Trivial]
-5C005C0A 000A [Trivial]
-5C005C0D 000D [Trivial]
-5C005C1A 001A [Trivial]
-5C005C22 0022 [Trivial]
-5C005C25 005C25 [Regular]
-5C005C27 0027 [Trivial]
-5C005C30 0000 [Regular]
-5C005C3F 003F [Trivial]
-5C005C40 0040 [Trivial]
-5C005C5A 001A [Regular]
-5C005C5C 005C [Regular]
-5C005C5F 005C5F [Regular]
-5C005C61 0061 [Trivial]
-5C005C62 0008 [Regular]
-5C005C6E 000A [Regular]
-5C005C72 000D [Regular]
-5C005C74 0009 [Regular]
-5C005C7E 007E [Trivial]
-5C005C7F 007F [Trivial]
-5C005C80 0080 [Trivial][ILSEQ]
-5C005C81 0081 [Trivial][ILSEQ]
-5C005C9F 009F [Trivial][ILSEQ]
-5C005CA0 00A0 [Trivial][ILSEQ]
-5C005CA1 00A1 [Trivial][ILSEQ]
-5C005CE0 00E0 [Trivial][ILSEQ]
-5C005CEF 00EF [Trivial][ILSEQ]
-5C005CF9 00F9 [Trivial][ILSEQ]
-5C005CFA 00FA [Trivial][ILSEQ]
-5C005CFC 00FC [Trivial][ILSEQ]
-5C005CFD 00FD [Trivial][ILSEQ]
-5C005CFE 00FE [Trivial][ILSEQ]
-5C005CFF 00FF [Trivial][ILSEQ]
-5C085C00 0800 [Trivial]
-5C085C08 0808 [Trivial]
-5C085C09 0809 [Trivial]
-5C085C0A 080A [Trivial]
-5C085C0D 080D [Trivial]
-5C085C1A 081A [Trivial]
-5C085C22 0822 [Trivial]
-5C085C25 085C25 [Regular]
-5C085C27 0827 [Trivial]
-5C085C30 0800 [Regular]
-5C085C3F 083F [Trivial]
-5C085C40 0840 [Trivial]
-5C085C5A 081A [Regular]
-5C085C5C 085C [Regular]
-5C085C5F 085C5F [Regular]
-5C085C61 0861 [Trivial]
-5C085C62 0808 [Regular]
-5C085C6E 080A [Regular]
-5C085C72 080D [Regular]
-5C085C74 0809 [Regular]
-5C085C7E 087E [Trivial]
-5C085C7F 087F [Trivial]
-5C085C80 0880 [Trivial][ILSEQ]
-5C085C81 0881 [Trivial][ILSEQ]
-5C085C9F 089F [Trivial][ILSEQ]
-5C085CA0 08A0 [Trivial][ILSEQ]
-5C085CA1 08A1 [Trivial][ILSEQ]
-5C085CE0 08E0 [Trivial][ILSEQ]
-5C085CEF 08EF [Trivial][ILSEQ]
-5C085CF9 08F9 [Trivial][ILSEQ]
-5C085CFA 08FA [Trivial][ILSEQ]
-5C085CFC 08FC [Trivial][ILSEQ]
-5C085CFD 08FD [Trivial][ILSEQ]
-5C085CFE 08FE [Trivial][ILSEQ]
-5C085CFF 08FF [Trivial][ILSEQ]
-5C095C00 0900 [Trivial]
-5C095C08 0908 [Trivial]
-5C095C09 0909 [Trivial]
-5C095C0A 090A [Trivial]
-5C095C0D 090D [Trivial]
-5C095C1A 091A [Trivial]
-5C095C22 0922 [Trivial]
-5C095C25 095C25 [Regular]
-5C095C27 0927 [Trivial]
-5C095C30 0900 [Regular]
-5C095C3F 093F [Trivial]
-5C095C40 0940 [Trivial]
-5C095C5A 091A [Regular]
-5C095C5C 095C [Regular]
-5C095C5F 095C5F [Regular]
-5C095C61 0961 [Trivial]
-5C095C62 0908 [Regular]
-5C095C6E 090A [Regular]
-5C095C72 090D [Regular]
-5C095C74 0909 [Regular]
-5C095C7E 097E [Trivial]
-5C095C7F 097F [Trivial]
-5C095C80 0980 [Trivial][ILSEQ]
-5C095C81 0981 [Trivial][ILSEQ]
-5C095C9F 099F [Trivial][ILSEQ]
-5C095CA0 09A0 [Trivial][ILSEQ]
-5C095CA1 09A1 [Trivial][ILSEQ]
-5C095CE0 09E0 [Trivial][ILSEQ]
-5C095CEF 09EF [Trivial][ILSEQ]
-5C095CF9 09F9 [Trivial][ILSEQ]
-5C095CFA 09FA [Trivial][ILSEQ]
-5C095CFC 09FC [Trivial][ILSEQ]
-5C095CFD 09FD [Trivial][ILSEQ]
-5C095CFE 09FE [Trivial][ILSEQ]
-5C095CFF 09FF [Trivial][ILSEQ]
-5C0A5C00 0A00 [Trivial]
-5C0A5C08 0A08 [Trivial]
-5C0A5C09 0A09 [Trivial]
-5C0A5C0A 0A0A [Trivial]
-5C0A5C0D 0A0D [Trivial]
-5C0A5C1A 0A1A [Trivial]
-5C0A5C22 0A22 [Trivial]
-5C0A5C25 0A5C25 [Regular]
-5C0A5C27 0A27 [Trivial]
-5C0A5C30 0A00 [Regular]
-5C0A5C3F 0A3F [Trivial]
-5C0A5C40 0A40 [Trivial]
-5C0A5C5A 0A1A [Regular]
-5C0A5C5C 0A5C [Regular]
-5C0A5C5F 0A5C5F [Regular]
-5C0A5C61 0A61 [Trivial]
-5C0A5C62 0A08 [Regular]
-5C0A5C6E 0A0A [Regular]
-5C0A5C72 0A0D [Regular]
-5C0A5C74 0A09 [Regular]
-5C0A5C7E 0A7E [Trivial]
-5C0A5C7F 0A7F [Trivial]
-5C0A5C80 0A80 [Trivial][ILSEQ]
-5C0A5C81 0A81 [Trivial][ILSEQ]
-5C0A5C9F 0A9F [Trivial][ILSEQ]
-5C0A5CA0 0AA0 [Trivial][ILSEQ]
-5C0A5CA1 0AA1 [Trivial][ILSEQ]
-5C0A5CE0 0AE0 [Trivial][ILSEQ]
-5C0A5CEF 0AEF [Trivial][ILSEQ]
-5C0A5CF9 0AF9 [Trivial][ILSEQ]
-5C0A5CFA 0AFA [Trivial][ILSEQ]
-5C0A5CFC 0AFC [Trivial][ILSEQ]
-5C0A5CFD 0AFD [Trivial][ILSEQ]
-5C0A5CFE 0AFE [Trivial][ILSEQ]
-5C0A5CFF 0AFF [Trivial][ILSEQ]
-5C0D5C00 0D00 [Trivial]
-5C0D5C08 0D08 [Trivial]
-5C0D5C09 0D09 [Trivial]
-5C0D5C0A 0D0A [Trivial]
-5C0D5C0D 0D0D [Trivial]
-5C0D5C1A 0D1A [Trivial]
-5C0D5C22 0D22 [Trivial]
-5C0D5C25 0D5C25 [Regular]
-5C0D5C27 0D27 [Trivial]
-5C0D5C30 0D00 [Regular]
-5C0D5C3F 0D3F [Trivial]
-5C0D5C40 0D40 [Trivial]
-5C0D5C5A 0D1A [Regular]
-5C0D5C5C 0D5C [Regular]
-5C0D5C5F 0D5C5F [Regular]
-5C0D5C61 0D61 [Trivial]
-5C0D5C62 0D08 [Regular]
-5C0D5C6E 0D0A [Regular]
-5C0D5C72 0D0D [Regular]
-5C0D5C74 0D09 [Regular]
-5C0D5C7E 0D7E [Trivial]
-5C0D5C7F 0D7F [Trivial]
-5C0D5C80 0D80 [Trivial][ILSEQ]
-5C0D5C81 0D81 [Trivial][ILSEQ]
-5C0D5C9F 0D9F [Trivial][ILSEQ]
-5C0D5CA0 0DA0 [Trivial][ILSEQ]
-5C0D5CA1 0DA1 [Trivial][ILSEQ]
-5C0D5CE0 0DE0 [Trivial][ILSEQ]
-5C0D5CEF 0DEF [Trivial][ILSEQ]
-5C0D5CF9 0DF9 [Trivial][ILSEQ]
-5C0D5CFA 0DFA [Trivial][ILSEQ]
-5C0D5CFC 0DFC [Trivial][ILSEQ]
-5C0D5CFD 0DFD [Trivial][ILSEQ]
-5C0D5CFE 0DFE [Trivial][ILSEQ]
-5C0D5CFF 0DFF [Trivial][ILSEQ]
-5C1A5C00 1A00 [Trivial]
-5C1A5C08 1A08 [Trivial]
-5C1A5C09 1A09 [Trivial]
-5C1A5C0A 1A0A [Trivial]
-5C1A5C0D 1A0D [Trivial]
-5C1A5C1A 1A1A [Trivial]
-5C1A5C22 1A22 [Trivial]
-5C1A5C25 1A5C25 [Regular]
-5C1A5C27 1A27 [Trivial]
-5C1A5C30 1A00 [Regular]
-5C1A5C3F 1A3F [Trivial]
-5C1A5C40 1A40 [Trivial]
-5C1A5C5A 1A1A [Regular]
-5C1A5C5C 1A5C [Regular]
-5C1A5C5F 1A5C5F [Regular]
-5C1A5C61 1A61 [Trivial]
-5C1A5C62 1A08 [Regular]
-5C1A5C6E 1A0A [Regular]
-5C1A5C72 1A0D [Regular]
-5C1A5C74 1A09 [Regular]
-5C1A5C7E 1A7E [Trivial]
-5C1A5C7F 1A7F [Trivial]
-5C1A5C80 1A80 [Trivial][ILSEQ]
-5C1A5C81 1A81 [Trivial][ILSEQ]
-5C1A5C9F 1A9F [Trivial][ILSEQ]
-5C1A5CA0 1AA0 [Trivial][ILSEQ]
-5C1A5CA1 1AA1 [Trivial][ILSEQ]
-5C1A5CE0 1AE0 [Trivial][ILSEQ]
-5C1A5CEF 1AEF [Trivial][ILSEQ]
-5C1A5CF9 1AF9 [Trivial][ILSEQ]
-5C1A5CFA 1AFA [Trivial][ILSEQ]
-5C1A5CFC 1AFC [Trivial][ILSEQ]
-5C1A5CFD 1AFD [Trivial][ILSEQ]
-5C1A5CFE 1AFE [Trivial][ILSEQ]
-5C1A5CFF 1AFF [Trivial][ILSEQ]
-5C225C00 2200 [Trivial]
-5C225C08 2208 [Trivial]
-5C225C09 2209 [Trivial]
-5C225C0A 220A [Trivial]
-5C225C0D 220D [Trivial]
-5C225C1A 221A [Trivial]
-5C225C22 2222 [Trivial]
-5C225C25 225C25 [Regular]
-5C225C27 2227 [Trivial]
-5C225C30 2200 [Regular]
-5C225C3F 223F [Trivial]
-5C225C40 2240 [Trivial]
-5C225C5A 221A [Regular]
-5C225C5C 225C [Regular]
-5C225C5F 225C5F [Regular]
-5C225C61 2261 [Trivial]
-5C225C62 2208 [Regular]
-5C225C6E 220A [Regular]
-5C225C72 220D [Regular]
-5C225C74 2209 [Regular]
-5C225C7E 227E [Trivial]
-5C225C7F 227F [Trivial]
-5C225C80 2280 [Trivial][ILSEQ]
-5C225C81 2281 [Trivial][ILSEQ]
-5C225C9F 229F [Trivial][ILSEQ]
-5C225CA0 22A0 [Trivial][ILSEQ]
-5C225CA1 22A1 [Trivial][ILSEQ]
-5C225CE0 22E0 [Trivial][ILSEQ]
-5C225CEF 22EF [Trivial][ILSEQ]
-5C225CF9 22F9 [Trivial][ILSEQ]
-5C225CFA 22FA [Trivial][ILSEQ]
-5C225CFC 22FC [Trivial][ILSEQ]
-5C225CFD 22FD [Trivial][ILSEQ]
-5C225CFE 22FE [Trivial][ILSEQ]
-5C225CFF 22FF [Trivial][ILSEQ]
-5C255C00 5C2500 [Regular]
-5C255C08 5C2508 [Regular]
-5C255C09 5C2509 [Regular]
-5C255C0A 5C250A [Regular]
-5C255C0D 5C250D [Regular]
-5C255C1A 5C251A [Regular]
-5C255C22 5C2522 [Regular]
-5C255C25 5C255C25 [Preserve][LIKE]
-5C255C27 5C2527 [Regular]
-5C255C30 5C2500 [Regular]
-5C255C3F 5C253F [Regular]
-5C255C40 5C2540 [Regular]
-5C255C5A 5C251A [Regular]
-5C255C5C 5C255C [Regular]
-5C255C5F 5C255C5F [Preserve][LIKE]
-5C255C61 5C2561 [Regular]
-5C255C62 5C2508 [Regular]
-5C255C6E 5C250A [Regular]
-5C255C72 5C250D [Regular]
-5C255C74 5C2509 [Regular]
-5C255C7E 5C257E [Regular]
-5C255C7F 5C257F [Regular]
-5C255C80 5C2580 [Regular][ILSEQ]
-5C255C81 5C2581 [Regular][ILSEQ]
-5C255C9F 5C259F [Regular][ILSEQ]
-5C255CA0 5C25A0 [Regular][ILSEQ]
-5C255CA1 5C25A1 [Regular][ILSEQ]
-5C255CE0 5C25E0 [Regular][ILSEQ]
-5C255CEF 5C25EF [Regular][ILSEQ]
-5C255CF9 5C25F9 [Regular][ILSEQ]
-5C255CFA 5C25FA [Regular][ILSEQ]
-5C255CFC 5C25FC [Regular][ILSEQ]
-5C255CFD 5C25FD [Regular][ILSEQ]
-5C255CFE 5C25FE [Regular][ILSEQ]
-5C255CFF 5C25FF [Regular][ILSEQ]
-5C275C00 2700 [Trivial]
-5C275C08 2708 [Trivial]
-5C275C09 2709 [Trivial]
-5C275C0A 270A [Trivial]
-5C275C0D 270D [Trivial]
-5C275C1A 271A [Trivial]
-5C275C22 2722 [Trivial]
-5C275C25 275C25 [Regular]
-5C275C27 2727 [Trivial]
-5C275C30 2700 [Regular]
-5C275C3F 273F [Trivial]
-5C275C40 2740 [Trivial]
-5C275C5A 271A [Regular]
-5C275C5C 275C [Regular]
-5C275C5F 275C5F [Regular]
-5C275C61 2761 [Trivial]
-5C275C62 2708 [Regular]
-5C275C6E 270A [Regular]
-5C275C72 270D [Regular]
-5C275C74 2709 [Regular]
-5C275C7E 277E [Trivial]
-5C275C7F 277F [Trivial]
-5C275C80 2780 [Trivial][ILSEQ]
-5C275C81 2781 [Trivial][ILSEQ]
-5C275C9F 279F [Trivial][ILSEQ]
-5C275CA0 27A0 [Trivial][ILSEQ]
-5C275CA1 27A1 [Trivial][ILSEQ]
-5C275CE0 27E0 [Trivial][ILSEQ]
-5C275CEF 27EF [Trivial][ILSEQ]
-5C275CF9 27F9 [Trivial][ILSEQ]
-5C275CFA 27FA [Trivial][ILSEQ]
-5C275CFC 27FC [Trivial][ILSEQ]
-5C275CFD 27FD [Trivial][ILSEQ]
-5C275CFE 27FE [Trivial][ILSEQ]
-5C275CFF 27FF [Trivial][ILSEQ]
-5C305C00 0000 [Regular]
-5C305C08 0008 [Regular]
-5C305C09 0009 [Regular]
-5C305C0A 000A [Regular]
-5C305C0D 000D [Regular]
-5C305C1A 001A [Regular]
-5C305C22 0022 [Regular]
-5C305C25 005C25 [Regular]
-5C305C27 0027 [Regular]
-5C305C30 0000 [Regular]
-5C305C3F 003F [Regular]
-5C305C40 0040 [Regular]
-5C305C5A 001A [Regular]
-5C305C5C 005C [Regular]
-5C305C5F 005C5F [Regular]
-5C305C61 0061 [Regular]
-5C305C62 0008 [Regular]
-5C305C6E 000A [Regular]
-5C305C72 000D [Regular]
-5C305C74 0009 [Regular]
-5C305C7E 007E [Regular]
-5C305C7F 007F [Regular]
-5C305C80 0080 [Regular][ILSEQ]
-5C305C81 0081 [Regular][ILSEQ]
-5C305C9F 009F [Regular][ILSEQ]
-5C305CA0 00A0 [Regular][ILSEQ]
-5C305CA1 00A1 [Regular][ILSEQ]
-5C305CE0 00E0 [Regular][ILSEQ]
-5C305CEF 00EF [Regular][ILSEQ]
-5C305CF9 00F9 [Regular][ILSEQ]
-5C305CFA 00FA [Regular][ILSEQ]
-5C305CFC 00FC [Regular][ILSEQ]
-5C305CFD 00FD [Regular][ILSEQ]
-5C305CFE 00FE [Regular][ILSEQ]
-5C305CFF 00FF [Regular][ILSEQ]
-5C3F5C00 3F00 [Trivial]
-5C3F5C08 3F08 [Trivial]
-5C3F5C09 3F09 [Trivial]
-5C3F5C0A 3F0A [Trivial]
-5C3F5C0D 3F0D [Trivial]
-5C3F5C1A 3F1A [Trivial]
-5C3F5C22 3F22 [Trivial]
-5C3F5C25 3F5C25 [Regular]
-5C3F5C27 3F27 [Trivial]
-5C3F5C30 3F00 [Regular]
-5C3F5C3F 3F3F [Trivial]
-5C3F5C40 3F40 [Trivial]
-5C3F5C5A 3F1A [Regular]
-5C3F5C5C 3F5C [Regular]
-5C3F5C5F 3F5C5F [Regular]
-5C3F5C61 3F61 [Trivial]
-5C3F5C62 3F08 [Regular]
-5C3F5C6E 3F0A [Regular]
-5C3F5C72 3F0D [Regular]
-5C3F5C74 3F09 [Regular]
-5C3F5C7E 3F7E [Trivial]
-5C3F5C7F 3F7F [Trivial]
-5C3F5C80 3F80 [Trivial][ILSEQ]
-5C3F5C81 3F81 [Trivial][ILSEQ]
-5C3F5C9F 3F9F [Trivial][ILSEQ]
-5C3F5CA0 3FA0 [Trivial][ILSEQ]
-5C3F5CA1 3FA1 [Trivial][ILSEQ]
-5C3F5CE0 3FE0 [Trivial][ILSEQ]
-5C3F5CEF 3FEF [Trivial][ILSEQ]
-5C3F5CF9 3FF9 [Trivial][ILSEQ]
-5C3F5CFA 3FFA [Trivial][ILSEQ]
-5C3F5CFC 3FFC [Trivial][ILSEQ]
-5C3F5CFD 3FFD [Trivial][ILSEQ]
-5C3F5CFE 3FFE [Trivial][ILSEQ]
-5C3F5CFF 3FFF [Trivial][ILSEQ]
-5C405C00 4000 [Trivial]
-5C405C08 4008 [Trivial]
-5C405C09 4009 [Trivial]
-5C405C0A 400A [Trivial]
-5C405C0D 400D [Trivial]
-5C405C1A 401A [Trivial]
-5C405C22 4022 [Trivial]
-5C405C25 405C25 [Regular]
-5C405C27 4027 [Trivial]
-5C405C30 4000 [Regular]
-5C405C3F 403F [Trivial]
-5C405C40 4040 [Trivial]
-5C405C5A 401A [Regular]
-5C405C5C 405C [Regular]
-5C405C5F 405C5F [Regular]
-5C405C61 4061 [Trivial]
-5C405C62 4008 [Regular]
-5C405C6E 400A [Regular]
-5C405C72 400D [Regular]
-5C405C74 4009 [Regular]
-5C405C7E 407E [Trivial]
-5C405C7F 407F [Trivial]
-5C405C80 4080 [Trivial][ILSEQ]
-5C405C81 4081 [Trivial][ILSEQ]
-5C405C9F 409F [Trivial][ILSEQ]
-5C405CA0 40A0 [Trivial][ILSEQ]
-5C405CA1 40A1 [Trivial][ILSEQ]
-5C405CE0 40E0 [Trivial][ILSEQ]
-5C405CEF 40EF [Trivial][ILSEQ]
-5C405CF9 40F9 [Trivial][ILSEQ]
-5C405CFA 40FA [Trivial][ILSEQ]
-5C405CFC 40FC [Trivial][ILSEQ]
-5C405CFD 40FD [Trivial][ILSEQ]
-5C405CFE 40FE [Trivial][ILSEQ]
-5C405CFF 40FF [Trivial][ILSEQ]
-5C5A5C00 1A00 [Regular]
-5C5A5C08 1A08 [Regular]
-5C5A5C09 1A09 [Regular]
-5C5A5C0A 1A0A [Regular]
-5C5A5C0D 1A0D [Regular]
-5C5A5C1A 1A1A [Regular]
-5C5A5C22 1A22 [Regular]
-5C5A5C25 1A5C25 [Regular]
-5C5A5C27 1A27 [Regular]
-5C5A5C30 1A00 [Regular]
-5C5A5C3F 1A3F [Regular]
-5C5A5C40 1A40 [Regular]
-5C5A5C5A 1A1A [Regular]
-5C5A5C5C 1A5C [Regular]
-5C5A5C5F 1A5C5F [Regular]
-5C5A5C61 1A61 [Regular]
-5C5A5C62 1A08 [Regular]
-5C5A5C6E 1A0A [Regular]
-5C5A5C72 1A0D [Regular]
-5C5A5C74 1A09 [Regular]
-5C5A5C7E 1A7E [Regular]
-5C5A5C7F 1A7F [Regular]
-5C5A5C80 1A80 [Regular][ILSEQ]
-5C5A5C81 1A81 [Regular][ILSEQ]
-5C5A5C9F 1A9F [Regular][ILSEQ]
-5C5A5CA0 1AA0 [Regular][ILSEQ]
-5C5A5CA1 1AA1 [Regular][ILSEQ]
-5C5A5CE0 1AE0 [Regular][ILSEQ]
-5C5A5CEF 1AEF [Regular][ILSEQ]
-5C5A5CF9 1AF9 [Regular][ILSEQ]
-5C5A5CFA 1AFA [Regular][ILSEQ]
-5C5A5CFC 1AFC [Regular][ILSEQ]
-5C5A5CFD 1AFD [Regular][ILSEQ]
-5C5A5CFE 1AFE [Regular][ILSEQ]
-5C5A5CFF 1AFF [Regular][ILSEQ]
-5C5C5C00 5C00 [Regular]
-5C5C5C08 5C08 [Regular]
-5C5C5C09 5C09 [Regular]
-5C5C5C0A 5C0A [Regular]
-5C5C5C0D 5C0D [Regular]
-5C5C5C1A 5C1A [Regular]
-5C5C5C22 5C22 [Regular]
-5C5C5C25 5C5C25 [Regular]
-5C5C5C27 5C27 [Regular]
-5C5C5C30 5C00 [Regular]
-5C5C5C3F 5C3F [Regular]
-5C5C5C40 5C40 [Regular]
-5C5C5C5A 5C1A [Regular]
-5C5C5C5C 5C5C [Regular]
-5C5C5C5F 5C5C5F [Regular]
-5C5C5C61 5C61 [Regular]
-5C5C5C62 5C08 [Regular]
-5C5C5C6E 5C0A [Regular]
-5C5C5C72 5C0D [Regular]
-5C5C5C74 5C09 [Regular]
-5C5C5C7E 5C7E [Regular]
-5C5C5C7F 5C7F [Regular]
-5C5C5C80 5C80 [Regular][ILSEQ]
-5C5C5C81 5C81 [Regular][ILSEQ]
-5C5C5C9F 5C9F [Regular][ILSEQ]
-5C5C5CA0 5CA0 [Regular][ILSEQ]
-5C5C5CA1 5CA1 [Regular][ILSEQ]
-5C5C5CE0 5CE0 [Regular][ILSEQ]
-5C5C5CEF 5CEF [Regular][ILSEQ]
-5C5C5CF9 5CF9 [Regular][ILSEQ]
-5C5C5CFA 5CFA [Regular][ILSEQ]
-5C5C5CFC 5CFC [Regular][ILSEQ]
-5C5C5CFD 5CFD [Regular][ILSEQ]
-5C5C5CFE 5CFE [Regular][ILSEQ]
-5C5C5CFF 5CFF [Regular][ILSEQ]
-5C5F5C00 5C5F00 [Regular]
-5C5F5C08 5C5F08 [Regular]
-5C5F5C09 5C5F09 [Regular]
-5C5F5C0A 5C5F0A [Regular]
-5C5F5C0D 5C5F0D [Regular]
-5C5F5C1A 5C5F1A [Regular]
-5C5F5C22 5C5F22 [Regular]
-5C5F5C25 5C5F5C25 [Preserve][LIKE]
-5C5F5C27 5C5F27 [Regular]
-5C5F5C30 5C5F00 [Regular]
-5C5F5C3F 5C5F3F [Regular]
-5C5F5C40 5C5F40 [Regular]
-5C5F5C5A 5C5F1A [Regular]
-5C5F5C5C 5C5F5C [Regular]
-5C5F5C5F 5C5F5C5F [Preserve][LIKE]
-5C5F5C61 5C5F61 [Regular]
-5C5F5C62 5C5F08 [Regular]
-5C5F5C6E 5C5F0A [Regular]
-5C5F5C72 5C5F0D [Regular]
-5C5F5C74 5C5F09 [Regular]
-5C5F5C7E 5C5F7E [Regular]
-5C5F5C7F 5C5F7F [Regular]
-5C5F5C80 5C5F80 [Regular][ILSEQ]
-5C5F5C81 5C5F81 [Regular][ILSEQ]
-5C5F5C9F 5C5F9F [Regular][ILSEQ]
-5C5F5CA0 5C5FA0 [Regular][ILSEQ]
-5C5F5CA1 5C5FA1 [Regular][ILSEQ]
-5C5F5CE0 5C5FE0 [Regular][ILSEQ]
-5C5F5CEF 5C5FEF [Regular][ILSEQ]
-5C5F5CF9 5C5FF9 [Regular][ILSEQ]
-5C5F5CFA 5C5FFA [Regular][ILSEQ]
-5C5F5CFC 5C5FFC [Regular][ILSEQ]
-5C5F5CFD 5C5FFD [Regular][ILSEQ]
-5C5F5CFE 5C5FFE [Regular][ILSEQ]
-5C5F5CFF 5C5FFF [Regular][ILSEQ]
-5C615C00 6100 [Trivial]
-5C615C08 6108 [Trivial]
-5C615C09 6109 [Trivial]
-5C615C0A 610A [Trivial]
-5C615C0D 610D [Trivial]
-5C615C1A 611A [Trivial]
-5C615C22 6122 [Trivial]
-5C615C25 615C25 [Regular]
-5C615C27 6127 [Trivial]
-5C615C30 6100 [Regular]
-5C615C3F 613F [Trivial]
-5C615C40 6140 [Trivial]
-5C615C5A 611A [Regular]
-5C615C5C 615C [Regular]
-5C615C5F 615C5F [Regular]
-5C615C61 6161 [Trivial]
-5C615C62 6108 [Regular]
-5C615C6E 610A [Regular]
-5C615C72 610D [Regular]
-5C615C74 6109 [Regular]
-5C615C7E 617E [Trivial]
-5C615C7F 617F [Trivial]
-5C615C80 6180 [Trivial][ILSEQ]
-5C615C81 6181 [Trivial][ILSEQ]
-5C615C9F 619F [Trivial][ILSEQ]
-5C615CA0 61A0 [Trivial][ILSEQ]
-5C615CA1 61A1 [Trivial][ILSEQ]
-5C615CE0 61E0 [Trivial][ILSEQ]
-5C615CEF 61EF [Trivial][ILSEQ]
-5C615CF9 61F9 [Trivial][ILSEQ]
-5C615CFA 61FA [Trivial][ILSEQ]
-5C615CFC 61FC [Trivial][ILSEQ]
-5C615CFD 61FD [Trivial][ILSEQ]
-5C615CFE 61FE [Trivial][ILSEQ]
-5C615CFF 61FF [Trivial][ILSEQ]
-5C625C00 0800 [Regular]
-5C625C08 0808 [Regular]
-5C625C09 0809 [Regular]
-5C625C0A 080A [Regular]
-5C625C0D 080D [Regular]
-5C625C1A 081A [Regular]
-5C625C22 0822 [Regular]
-5C625C25 085C25 [Regular]
-5C625C27 0827 [Regular]
-5C625C30 0800 [Regular]
-5C625C3F 083F [Regular]
-5C625C40 0840 [Regular]
-5C625C5A 081A [Regular]
-5C625C5C 085C [Regular]
-5C625C5F 085C5F [Regular]
-5C625C61 0861 [Regular]
-5C625C62 0808 [Regular]
-5C625C6E 080A [Regular]
-5C625C72 080D [Regular]
-5C625C74 0809 [Regular]
-5C625C7E 087E [Regular]
-5C625C7F 087F [Regular]
-5C625C80 0880 [Regular][ILSEQ]
-5C625C81 0881 [Regular][ILSEQ]
-5C625C9F 089F [Regular][ILSEQ]
-5C625CA0 08A0 [Regular][ILSEQ]
-5C625CA1 08A1 [Regular][ILSEQ]
-5C625CE0 08E0 [Regular][ILSEQ]
-5C625CEF 08EF [Regular][ILSEQ]
-5C625CF9 08F9 [Regular][ILSEQ]
-5C625CFA 08FA [Regular][ILSEQ]
-5C625CFC 08FC [Regular][ILSEQ]
-5C625CFD 08FD [Regular][ILSEQ]
-5C625CFE 08FE [Regular][ILSEQ]
-5C625CFF 08FF [Regular][ILSEQ]
-5C6E5C00 0A00 [Regular]
-5C6E5C08 0A08 [Regular]
-5C6E5C09 0A09 [Regular]
-5C6E5C0A 0A0A [Regular]
-5C6E5C0D 0A0D [Regular]
-5C6E5C1A 0A1A [Regular]
-5C6E5C22 0A22 [Regular]
-5C6E5C25 0A5C25 [Regular]
-5C6E5C27 0A27 [Regular]
-5C6E5C30 0A00 [Regular]
-5C6E5C3F 0A3F [Regular]
-5C6E5C40 0A40 [Regular]
-5C6E5C5A 0A1A [Regular]
-5C6E5C5C 0A5C [Regular]
-5C6E5C5F 0A5C5F [Regular]
-5C6E5C61 0A61 [Regular]
-5C6E5C62 0A08 [Regular]
-5C6E5C6E 0A0A [Regular]
-5C6E5C72 0A0D [Regular]
-5C6E5C74 0A09 [Regular]
-5C6E5C7E 0A7E [Regular]
-5C6E5C7F 0A7F [Regular]
-5C6E5C80 0A80 [Regular][ILSEQ]
-5C6E5C81 0A81 [Regular][ILSEQ]
-5C6E5C9F 0A9F [Regular][ILSEQ]
-5C6E5CA0 0AA0 [Regular][ILSEQ]
-5C6E5CA1 0AA1 [Regular][ILSEQ]
-5C6E5CE0 0AE0 [Regular][ILSEQ]
-5C6E5CEF 0AEF [Regular][ILSEQ]
-5C6E5CF9 0AF9 [Regular][ILSEQ]
-5C6E5CFA 0AFA [Regular][ILSEQ]
-5C6E5CFC 0AFC [Regular][ILSEQ]
-5C6E5CFD 0AFD [Regular][ILSEQ]
-5C6E5CFE 0AFE [Regular][ILSEQ]
-5C6E5CFF 0AFF [Regular][ILSEQ]
-5C725C00 0D00 [Regular]
-5C725C08 0D08 [Regular]
-5C725C09 0D09 [Regular]
-5C725C0A 0D0A [Regular]
-5C725C0D 0D0D [Regular]
-5C725C1A 0D1A [Regular]
-5C725C22 0D22 [Regular]
-5C725C25 0D5C25 [Regular]
-5C725C27 0D27 [Regular]
-5C725C30 0D00 [Regular]
-5C725C3F 0D3F [Regular]
-5C725C40 0D40 [Regular]
-5C725C5A 0D1A [Regular]
-5C725C5C 0D5C [Regular]
-5C725C5F 0D5C5F [Regular]
-5C725C61 0D61 [Regular]
-5C725C62 0D08 [Regular]
-5C725C6E 0D0A [Regular]
-5C725C72 0D0D [Regular]
-5C725C74 0D09 [Regular]
-5C725C7E 0D7E [Regular]
-5C725C7F 0D7F [Regular]
-5C725C80 0D80 [Regular][ILSEQ]
-5C725C81 0D81 [Regular][ILSEQ]
-5C725C9F 0D9F [Regular][ILSEQ]
-5C725CA0 0DA0 [Regular][ILSEQ]
-5C725CA1 0DA1 [Regular][ILSEQ]
-5C725CE0 0DE0 [Regular][ILSEQ]
-5C725CEF 0DEF [Regular][ILSEQ]
-5C725CF9 0DF9 [Regular][ILSEQ]
-5C725CFA 0DFA [Regular][ILSEQ]
-5C725CFC 0DFC [Regular][ILSEQ]
-5C725CFD 0DFD [Regular][ILSEQ]
-5C725CFE 0DFE [Regular][ILSEQ]
-5C725CFF 0DFF [Regular][ILSEQ]
-5C745C00 0900 [Regular]
-5C745C08 0908 [Regular]
-5C745C09 0909 [Regular]
-5C745C0A 090A [Regular]
-5C745C0D 090D [Regular]
-5C745C1A 091A [Regular]
-5C745C22 0922 [Regular]
-5C745C25 095C25 [Regular]
-5C745C27 0927 [Regular]
-5C745C30 0900 [Regular]
-5C745C3F 093F [Regular]
-5C745C40 0940 [Regular]
-5C745C5A 091A [Regular]
-5C745C5C 095C [Regular]
-5C745C5F 095C5F [Regular]
-5C745C61 0961 [Regular]
-5C745C62 0908 [Regular]
-5C745C6E 090A [Regular]
-5C745C72 090D [Regular]
-5C745C74 0909 [Regular]
-5C745C7E 097E [Regular]
-5C745C7F 097F [Regular]
-5C745C80 0980 [Regular][ILSEQ]
-5C745C81 0981 [Regular][ILSEQ]
-5C745C9F 099F [Regular][ILSEQ]
-5C745CA0 09A0 [Regular][ILSEQ]
-5C745CA1 09A1 [Regular][ILSEQ]
-5C745CE0 09E0 [Regular][ILSEQ]
-5C745CEF 09EF [Regular][ILSEQ]
-5C745CF9 09F9 [Regular][ILSEQ]
-5C745CFA 09FA [Regular][ILSEQ]
-5C745CFC 09FC [Regular][ILSEQ]
-5C745CFD 09FD [Regular][ILSEQ]
-5C745CFE 09FE [Regular][ILSEQ]
-5C745CFF 09FF [Regular][ILSEQ]
-5C7E5C00 7E00 [Trivial]
-5C7E5C08 7E08 [Trivial]
-5C7E5C09 7E09 [Trivial]
-5C7E5C0A 7E0A [Trivial]
-5C7E5C0D 7E0D [Trivial]
-5C7E5C1A 7E1A [Trivial]
-5C7E5C22 7E22 [Trivial]
-5C7E5C25 7E5C25 [Regular]
-5C7E5C27 7E27 [Trivial]
-5C7E5C30 7E00 [Regular]
-5C7E5C3F 7E3F [Trivial]
-5C7E5C40 7E40 [Trivial]
-5C7E5C5A 7E1A [Regular]
-5C7E5C5C 7E5C [Regular]
-5C7E5C5F 7E5C5F [Regular]
-5C7E5C61 7E61 [Trivial]
-5C7E5C62 7E08 [Regular]
-5C7E5C6E 7E0A [Regular]
-5C7E5C72 7E0D [Regular]
-5C7E5C74 7E09 [Regular]
-5C7E5C7E 7E7E [Trivial]
-5C7E5C7F 7E7F [Trivial]
-5C7E5C80 7E80 [Trivial][ILSEQ]
-5C7E5C81 7E81 [Trivial][ILSEQ]
-5C7E5C9F 7E9F [Trivial][ILSEQ]
-5C7E5CA0 7EA0 [Trivial][ILSEQ]
-5C7E5CA1 7EA1 [Trivial][ILSEQ]
-5C7E5CE0 7EE0 [Trivial][ILSEQ]
-5C7E5CEF 7EEF [Trivial][ILSEQ]
-5C7E5CF9 7EF9 [Trivial][ILSEQ]
-5C7E5CFA 7EFA [Trivial][ILSEQ]
-5C7E5CFC 7EFC [Trivial][ILSEQ]
-5C7E5CFD 7EFD [Trivial][ILSEQ]
-5C7E5CFE 7EFE [Trivial][ILSEQ]
-5C7E5CFF 7EFF [Trivial][ILSEQ]
-5C7F5C00 7F00 [Trivial]
-5C7F5C08 7F08 [Trivial]
-5C7F5C09 7F09 [Trivial]
-5C7F5C0A 7F0A [Trivial]
-5C7F5C0D 7F0D [Trivial]
-5C7F5C1A 7F1A [Trivial]
-5C7F5C22 7F22 [Trivial]
-5C7F5C25 7F5C25 [Regular]
-5C7F5C27 7F27 [Trivial]
-5C7F5C30 7F00 [Regular]
-5C7F5C3F 7F3F [Trivial]
-5C7F5C40 7F40 [Trivial]
-5C7F5C5A 7F1A [Regular]
-5C7F5C5C 7F5C [Regular]
-5C7F5C5F 7F5C5F [Regular]
-5C7F5C61 7F61 [Trivial]
-5C7F5C62 7F08 [Regular]
-5C7F5C6E 7F0A [Regular]
-5C7F5C72 7F0D [Regular]
-5C7F5C74 7F09 [Regular]
-5C7F5C7E 7F7E [Trivial]
-5C7F5C7F 7F7F [Trivial]
-5C7F5C80 7F80 [Trivial][ILSEQ]
-5C7F5C81 7F81 [Trivial][ILSEQ]
-5C7F5C9F 7F9F [Trivial][ILSEQ]
-5C7F5CA0 7FA0 [Trivial][ILSEQ]
-5C7F5CA1 7FA1 [Trivial][ILSEQ]
-5C7F5CE0 7FE0 [Trivial][ILSEQ]
-5C7F5CEF 7FEF [Trivial][ILSEQ]
-5C7F5CF9 7FF9 [Trivial][ILSEQ]
-5C7F5CFA 7FFA [Trivial][ILSEQ]
-5C7F5CFC 7FFC [Trivial][ILSEQ]
-5C7F5CFD 7FFD [Trivial][ILSEQ]
-5C7F5CFE 7FFE [Trivial][ILSEQ]
-5C7F5CFF 7FFF [Trivial][ILSEQ]
-5C805C00 8000 [Trivial][ILSEQ]
-5C805C08 8008 [Trivial][ILSEQ]
-5C805C09 8009 [Trivial][ILSEQ]
-5C805C0A 800A [Trivial][ILSEQ]
-5C805C0D 800D [Trivial][ILSEQ]
-5C805C1A 801A [Trivial][ILSEQ]
-5C805C22 8022 [Trivial][ILSEQ]
-5C805C25 805C25 [Regular][ILSEQ]
-5C805C27 8027 [Trivial][ILSEQ]
-5C805C30 8000 [Regular][ILSEQ]
-5C805C3F 803F [Trivial][ILSEQ]
-5C805C40 8040 [Trivial][ILSEQ]
-5C805C5A 801A [Regular][ILSEQ]
-5C805C5C 805C [Regular][ILSEQ]
-5C805C5F 805C5F [Regular][ILSEQ]
-5C805C61 8061 [Trivial][ILSEQ]
-5C805C62 8008 [Regular][ILSEQ]
-5C805C6E 800A [Regular][ILSEQ]
-5C805C72 800D [Regular][ILSEQ]
-5C805C74 8009 [Regular][ILSEQ]
-5C805C7E 807E [Trivial][ILSEQ]
-5C805C7F 807F [Trivial][ILSEQ]
-5C805C80 8080 [Trivial][ILSEQ]
-5C805C81 8081 [Trivial][ILSEQ]
-5C805C9F 809F [Trivial][ILSEQ]
-5C805CA0 80A0 [Trivial][ILSEQ]
-5C805CA1 80A1 [Trivial][ILSEQ]
-5C805CE0 80E0 [Trivial][ILSEQ]
-5C805CEF 80EF [Trivial][ILSEQ]
-5C805CF9 80F9 [Trivial][ILSEQ]
-5C805CFA 80FA [Trivial][ILSEQ]
-5C805CFC 80FC [Trivial][ILSEQ]
-5C805CFD 80FD [Trivial][ILSEQ]
-5C805CFE 80FE [Trivial][ILSEQ]
-5C805CFF 80FF [Trivial][ILSEQ]
-5C815C00 8100 [Trivial][ILSEQ]
-5C815C08 8108 [Trivial][ILSEQ]
-5C815C09 8109 [Trivial][ILSEQ]
-5C815C0A 810A [Trivial][ILSEQ]
-5C815C0D 810D [Trivial][ILSEQ]
-5C815C1A 811A [Trivial][ILSEQ]
-5C815C22 8122 [Trivial][ILSEQ]
-5C815C25 815C25 [Regular][ILSEQ]
-5C815C27 8127 [Trivial][ILSEQ]
-5C815C30 8100 [Regular][ILSEQ]
-5C815C3F 813F [Trivial][ILSEQ]
-5C815C40 8140 [Trivial][ILSEQ]
-5C815C5A 811A [Regular][ILSEQ]
-5C815C5C 815C [Regular][ILSEQ]
-5C815C5F 815C5F [Regular][ILSEQ]
-5C815C61 8161 [Trivial][ILSEQ]
-5C815C62 8108 [Regular][ILSEQ]
-5C815C6E 810A [Regular][ILSEQ]
-5C815C72 810D [Regular][ILSEQ]
-5C815C74 8109 [Regular][ILSEQ]
-5C815C7E 817E [Trivial][ILSEQ]
-5C815C7F 817F [Trivial][ILSEQ]
-5C815C80 8180 [Trivial][ILSEQ]
-5C815C81 8181 [Trivial][ILSEQ]
-5C815C9F 819F [Trivial][ILSEQ]
-5C815CA0 81A0 [Trivial][ILSEQ]
-5C815CA1 81A1 [Trivial][ILSEQ]
-5C815CE0 81E0 [Trivial][ILSEQ]
-5C815CEF 81EF [Trivial][ILSEQ]
-5C815CF9 81F9 [Trivial][ILSEQ]
-5C815CFA 81FA [Trivial][ILSEQ]
-5C815CFC 81FC [Trivial][ILSEQ]
-5C815CFD 81FD [Trivial][ILSEQ]
-5C815CFE 81FE [Trivial][ILSEQ]
-5C815CFF 81FF [Trivial][ILSEQ]
-5C9F5C00 9F00 [Trivial][ILSEQ]
-5C9F5C08 9F08 [Trivial][ILSEQ]
-5C9F5C09 9F09 [Trivial][ILSEQ]
-5C9F5C0A 9F0A [Trivial][ILSEQ]
-5C9F5C0D 9F0D [Trivial][ILSEQ]
-5C9F5C1A 9F1A [Trivial][ILSEQ]
-5C9F5C22 9F22 [Trivial][ILSEQ]
-5C9F5C25 9F5C25 [Regular][ILSEQ]
-5C9F5C27 9F27 [Trivial][ILSEQ]
-5C9F5C30 9F00 [Regular][ILSEQ]
-5C9F5C3F 9F3F [Trivial][ILSEQ]
-5C9F5C40 9F40 [Trivial][ILSEQ]
-5C9F5C5A 9F1A [Regular][ILSEQ]
-5C9F5C5C 9F5C [Regular][ILSEQ]
-5C9F5C5F 9F5C5F [Regular][ILSEQ]
-5C9F5C61 9F61 [Trivial][ILSEQ]
-5C9F5C62 9F08 [Regular][ILSEQ]
-5C9F5C6E 9F0A [Regular][ILSEQ]
-5C9F5C72 9F0D [Regular][ILSEQ]
-5C9F5C74 9F09 [Regular][ILSEQ]
-5C9F5C7E 9F7E [Trivial][ILSEQ]
-5C9F5C7F 9F7F [Trivial][ILSEQ]
-5C9F5C80 9F80 [Trivial][ILSEQ]
-5C9F5C81 9F81 [Trivial][ILSEQ]
-5C9F5C9F 9F9F [Trivial][ILSEQ]
-5C9F5CA0 9FA0 [Trivial][ILSEQ]
-5C9F5CA1 9FA1 [Trivial][ILSEQ]
-5C9F5CE0 9FE0 [Trivial][ILSEQ]
-5C9F5CEF 9FEF [Trivial][ILSEQ]
-5C9F5CF9 9FF9 [Trivial][ILSEQ]
-5C9F5CFA 9FFA [Trivial][ILSEQ]
-5C9F5CFC 9FFC [Trivial][ILSEQ]
-5C9F5CFD 9FFD [Trivial][ILSEQ]
-5C9F5CFE 9FFE [Trivial][ILSEQ]
-5C9F5CFF 9FFF [Trivial][ILSEQ]
-5CA05C00 A000 [Trivial][ILSEQ]
-5CA05C08 A008 [Trivial][ILSEQ]
-5CA05C09 A009 [Trivial][ILSEQ]
-5CA05C0A A00A [Trivial][ILSEQ]
-5CA05C0D A00D [Trivial][ILSEQ]
-5CA05C1A A01A [Trivial][ILSEQ]
-5CA05C22 A022 [Trivial][ILSEQ]
-5CA05C25 A05C25 [Regular][ILSEQ]
-5CA05C27 A027 [Trivial][ILSEQ]
-5CA05C30 A000 [Regular][ILSEQ]
-5CA05C3F A03F [Trivial][ILSEQ]
-5CA05C40 A040 [Trivial][ILSEQ]
-5CA05C5A A01A [Regular][ILSEQ]
-5CA05C5C A05C [Regular][ILSEQ]
-5CA05C5F A05C5F [Regular][ILSEQ]
-5CA05C61 A061 [Trivial][ILSEQ]
-5CA05C62 A008 [Regular][ILSEQ]
-5CA05C6E A00A [Regular][ILSEQ]
-5CA05C72 A00D [Regular][ILSEQ]
-5CA05C74 A009 [Regular][ILSEQ]
-5CA05C7E A07E [Trivial][ILSEQ]
-5CA05C7F A07F [Trivial][ILSEQ]
-5CA05C80 A080 [Trivial][ILSEQ]
-5CA05C81 A081 [Trivial][ILSEQ]
-5CA05C9F A09F [Trivial][ILSEQ]
-5CA05CA0 A0A0 [Trivial][ILSEQ]
-5CA05CA1 A0A1 [Trivial][ILSEQ]
-5CA05CE0 A0E0 [Trivial][ILSEQ]
-5CA05CEF A0EF [Trivial][ILSEQ]
-5CA05CF9 A0F9 [Trivial][ILSEQ]
-5CA05CFA A0FA [Trivial][ILSEQ]
-5CA05CFC A0FC [Trivial][ILSEQ]
-5CA05CFD A0FD [Trivial][ILSEQ]
-5CA05CFE A0FE [Trivial][ILSEQ]
-5CA05CFF A0FF [Trivial][ILSEQ]
-5CA15C00 A100 [Trivial][ILSEQ]
-5CA15C08 A108 [Trivial][ILSEQ]
-5CA15C09 A109 [Trivial][ILSEQ]
-5CA15C0A A10A [Trivial][ILSEQ]
-5CA15C0D A10D [Trivial][ILSEQ]
-5CA15C1A A11A [Trivial][ILSEQ]
-5CA15C22 A122 [Trivial][ILSEQ]
-5CA15C25 A15C25 [Regular][ILSEQ]
-5CA15C27 A127 [Trivial][ILSEQ]
-5CA15C30 A100 [Regular][ILSEQ]
-5CA15C3F A13F [Trivial][ILSEQ]
-5CA15C40 A140 [Trivial][ILSEQ]
-5CA15C5A A11A [Regular][ILSEQ]
-5CA15C5C A15C [Regular][ILSEQ]
-5CA15C5F A15C5F [Regular][ILSEQ]
-5CA15C61 A161 [Trivial][ILSEQ]
-5CA15C62 A108 [Regular][ILSEQ]
-5CA15C6E A10A [Regular][ILSEQ]
-5CA15C72 A10D [Regular][ILSEQ]
-5CA15C74 A109 [Regular][ILSEQ]
-5CA15C7E A17E [Trivial][ILSEQ]
-5CA15C7F A17F [Trivial][ILSEQ]
-5CA15C80 A180 [Trivial][ILSEQ]
-5CA15C81 A181 [Trivial][ILSEQ]
-5CA15C9F A19F [Trivial][ILSEQ]
-5CA15CA0 A1A0 [Trivial][ILSEQ]
-5CA15CA1 A1A1 [Trivial][ILSEQ]
-5CA15CE0 A1E0 [Trivial][ILSEQ]
-5CA15CEF A1EF [Trivial][ILSEQ]
-5CA15CF9 A1F9 [Trivial][ILSEQ]
-5CA15CFA A1FA [Trivial][ILSEQ]
-5CA15CFC A1FC [Trivial][ILSEQ]
-5CA15CFD A1FD [Trivial][ILSEQ]
-5CA15CFE A1FE [Trivial][ILSEQ]
-5CA15CFF A1FF [Trivial][ILSEQ]
-5CE05C00 E000 [Trivial][ILSEQ]
-5CE05C08 E008 [Trivial][ILSEQ]
-5CE05C09 E009 [Trivial][ILSEQ]
-5CE05C0A E00A [Trivial][ILSEQ]
-5CE05C0D E00D [Trivial][ILSEQ]
-5CE05C1A E01A [Trivial][ILSEQ]
-5CE05C22 E022 [Trivial][ILSEQ]
-5CE05C25 E05C25 [Regular][ILSEQ]
-5CE05C27 E027 [Trivial][ILSEQ]
-5CE05C30 E000 [Regular][ILSEQ]
-5CE05C3F E03F [Trivial][ILSEQ]
-5CE05C40 E040 [Trivial][ILSEQ]
-5CE05C5A E01A [Regular][ILSEQ]
-5CE05C5C E05C [Regular][ILSEQ]
-5CE05C5F E05C5F [Regular][ILSEQ]
-5CE05C61 E061 [Trivial][ILSEQ]
-5CE05C62 E008 [Regular][ILSEQ]
-5CE05C6E E00A [Regular][ILSEQ]
-5CE05C72 E00D [Regular][ILSEQ]
-5CE05C74 E009 [Regular][ILSEQ]
-5CE05C7E E07E [Trivial][ILSEQ]
-5CE05C7F E07F [Trivial][ILSEQ]
-5CE05C80 E080 [Trivial][ILSEQ]
-5CE05C81 E081 [Trivial][ILSEQ]
-5CE05C9F E09F [Trivial][ILSEQ]
-5CE05CA0 E0A0 [Trivial][ILSEQ]
-5CE05CA1 E0A1 [Trivial][ILSEQ]
-5CE05CE0 E0E0 [Trivial][ILSEQ]
-5CE05CEF E0EF [Trivial][ILSEQ]
-5CE05CF9 E0F9 [Trivial][ILSEQ]
-5CE05CFA E0FA [Trivial][ILSEQ]
-5CE05CFC E0FC [Trivial][ILSEQ]
-5CE05CFD E0FD [Trivial][ILSEQ]
-5CE05CFE E0FE [Trivial][ILSEQ]
-5CE05CFF E0FF [Trivial][ILSEQ]
-5CEF5C00 EF00 [Trivial][ILSEQ]
-5CEF5C08 EF08 [Trivial][ILSEQ]
-5CEF5C09 EF09 [Trivial][ILSEQ]
-5CEF5C0A EF0A [Trivial][ILSEQ]
-5CEF5C0D EF0D [Trivial][ILSEQ]
-5CEF5C1A EF1A [Trivial][ILSEQ]
-5CEF5C22 EF22 [Trivial][ILSEQ]
-5CEF5C25 EF5C25 [Regular][ILSEQ]
-5CEF5C27 EF27 [Trivial][ILSEQ]
-5CEF5C30 EF00 [Regular][ILSEQ]
-5CEF5C3F EF3F [Trivial][ILSEQ]
-5CEF5C40 EF40 [Trivial][ILSEQ]
-5CEF5C5A EF1A [Regular][ILSEQ]
-5CEF5C5C EF5C [Regular][ILSEQ]
-5CEF5C5F EF5C5F [Regular][ILSEQ]
-5CEF5C61 EF61 [Trivial][ILSEQ]
-5CEF5C62 EF08 [Regular][ILSEQ]
-5CEF5C6E EF0A [Regular][ILSEQ]
-5CEF5C72 EF0D [Regular][ILSEQ]
-5CEF5C74 EF09 [Regular][ILSEQ]
-5CEF5C7E EF7E [Trivial][ILSEQ]
-5CEF5C7F EF7F [Trivial][ILSEQ]
-5CEF5C80 EF80 [Trivial][ILSEQ]
-5CEF5C81 EF81 [Trivial][ILSEQ]
-5CEF5C9F EF9F [Trivial][ILSEQ]
-5CEF5CA0 EFA0 [Trivial][ILSEQ]
-5CEF5CA1 EFA1 [Trivial][ILSEQ]
-5CEF5CE0 EFE0 [Trivial][ILSEQ]
-5CEF5CEF EFEF [Trivial][ILSEQ]
-5CEF5CF9 EFF9 [Trivial][ILSEQ]
-5CEF5CFA EFFA [Trivial][ILSEQ]
-5CEF5CFC EFFC [Trivial][ILSEQ]
-5CEF5CFD EFFD [Trivial][ILSEQ]
-5CEF5CFE EFFE [Trivial][ILSEQ]
-5CEF5CFF EFFF [Trivial][ILSEQ]
-5CF95C00 F900 [Trivial][ILSEQ]
-5CF95C08 F908 [Trivial][ILSEQ]
-5CF95C09 F909 [Trivial][ILSEQ]
-5CF95C0A F90A [Trivial][ILSEQ]
-5CF95C0D F90D [Trivial][ILSEQ]
-5CF95C1A F91A [Trivial][ILSEQ]
-5CF95C22 F922 [Trivial][ILSEQ]
-5CF95C25 F95C25 [Regular][ILSEQ]
-5CF95C27 F927 [Trivial][ILSEQ]
-5CF95C30 F900 [Regular][ILSEQ]
-5CF95C3F F93F [Trivial][ILSEQ]
-5CF95C40 F940 [Trivial][ILSEQ]
-5CF95C5A F91A [Regular][ILSEQ]
-5CF95C5C F95C [Regular][ILSEQ]
-5CF95C5F F95C5F [Regular][ILSEQ]
-5CF95C61 F961 [Trivial][ILSEQ]
-5CF95C62 F908 [Regular][ILSEQ]
-5CF95C6E F90A [Regular][ILSEQ]
-5CF95C72 F90D [Regular][ILSEQ]
-5CF95C74 F909 [Regular][ILSEQ]
-5CF95C7E F97E [Trivial][ILSEQ]
-5CF95C7F F97F [Trivial][ILSEQ]
-5CF95C80 F980 [Trivial][ILSEQ]
-5CF95C81 F981 [Trivial][ILSEQ]
-5CF95C9F F99F [Trivial][ILSEQ]
-5CF95CA0 F9A0 [Trivial][ILSEQ]
-5CF95CA1 F9A1 [Trivial][ILSEQ]
-5CF95CE0 F9E0 [Trivial][ILSEQ]
-5CF95CEF F9EF [Trivial][ILSEQ]
-5CF95CF9 F9F9 [Trivial][ILSEQ]
-5CF95CFA F9FA [Trivial][ILSEQ]
-5CF95CFC F9FC [Trivial][ILSEQ]
-5CF95CFD F9FD [Trivial][ILSEQ]
-5CF95CFE F9FE [Trivial][ILSEQ]
-5CF95CFF F9FF [Trivial][ILSEQ]
-5CFA5C00 FA00 [Trivial][ILSEQ]
-5CFA5C08 FA08 [Trivial][ILSEQ]
-5CFA5C09 FA09 [Trivial][ILSEQ]
-5CFA5C0A FA0A [Trivial][ILSEQ]
-5CFA5C0D FA0D [Trivial][ILSEQ]
-5CFA5C1A FA1A [Trivial][ILSEQ]
-5CFA5C22 FA22 [Trivial][ILSEQ]
-5CFA5C25 FA5C25 [Regular][ILSEQ]
-5CFA5C27 FA27 [Trivial][ILSEQ]
-5CFA5C30 FA00 [Regular][ILSEQ]
-5CFA5C3F FA3F [Trivial][ILSEQ]
-5CFA5C40 FA40 [Trivial][ILSEQ]
-5CFA5C5A FA1A [Regular][ILSEQ]
-5CFA5C5C FA5C [Regular][ILSEQ]
-5CFA5C5F FA5C5F [Regular][ILSEQ]
-5CFA5C61 FA61 [Trivial][ILSEQ]
-5CFA5C62 FA08 [Regular][ILSEQ]
-5CFA5C6E FA0A [Regular][ILSEQ]
-5CFA5C72 FA0D [Regular][ILSEQ]
-5CFA5C74 FA09 [Regular][ILSEQ]
-5CFA5C7E FA7E [Trivial][ILSEQ]
-5CFA5C7F FA7F [Trivial][ILSEQ]
-5CFA5C80 FA80 [Trivial][ILSEQ]
-5CFA5C81 FA81 [Trivial][ILSEQ]
-5CFA5C9F FA9F [Trivial][ILSEQ]
-5CFA5CA0 FAA0 [Trivial][ILSEQ]
-5CFA5CA1 FAA1 [Trivial][ILSEQ]
-5CFA5CE0 FAE0 [Trivial][ILSEQ]
-5CFA5CEF FAEF [Trivial][ILSEQ]
-5CFA5CF9 FAF9 [Trivial][ILSEQ]
-5CFA5CFA FAFA [Trivial][ILSEQ]
-5CFA5CFC FAFC [Trivial][ILSEQ]
-5CFA5CFD FAFD [Trivial][ILSEQ]
-5CFA5CFE FAFE [Trivial][ILSEQ]
-5CFA5CFF FAFF [Trivial][ILSEQ]
-5CFC5C00 FC00 [Trivial][ILSEQ]
-5CFC5C08 FC08 [Trivial][ILSEQ]
-5CFC5C09 FC09 [Trivial][ILSEQ]
-5CFC5C0A FC0A [Trivial][ILSEQ]
-5CFC5C0D FC0D [Trivial][ILSEQ]
-5CFC5C1A FC1A [Trivial][ILSEQ]
-5CFC5C22 FC22 [Trivial][ILSEQ]
-5CFC5C25 FC5C25 [Regular][ILSEQ]
-5CFC5C27 FC27 [Trivial][ILSEQ]
-5CFC5C30 FC00 [Regular][ILSEQ]
-5CFC5C3F FC3F [Trivial][ILSEQ]
-5CFC5C40 FC40 [Trivial][ILSEQ]
-5CFC5C5A FC1A [Regular][ILSEQ]
-5CFC5C5C FC5C [Regular][ILSEQ]
-5CFC5C5F FC5C5F [Regular][ILSEQ]
-5CFC5C61 FC61 [Trivial][ILSEQ]
-5CFC5C62 FC08 [Regular][ILSEQ]
-5CFC5C6E FC0A [Regular][ILSEQ]
-5CFC5C72 FC0D [Regular][ILSEQ]
-5CFC5C74 FC09 [Regular][ILSEQ]
-5CFC5C7E FC7E [Trivial][ILSEQ]
-5CFC5C7F FC7F [Trivial][ILSEQ]
-5CFC5C80 FC80 [Trivial][ILSEQ]
-5CFC5C81 FC81 [Trivial][ILSEQ]
-5CFC5C9F FC9F [Trivial][ILSEQ]
-5CFC5CA0 FCA0 [Trivial][ILSEQ]
-5CFC5CA1 FCA1 [Trivial][ILSEQ]
-5CFC5CE0 FCE0 [Trivial][ILSEQ]
-5CFC5CEF FCEF [Trivial][ILSEQ]
-5CFC5CF9 FCF9 [Trivial][ILSEQ]
-5CFC5CFA FCFA [Trivial][ILSEQ]
-5CFC5CFC FCFC [Trivial][ILSEQ]
-5CFC5CFD FCFD [Trivial][ILSEQ]
-5CFC5CFE FCFE [Trivial][ILSEQ]
-5CFC5CFF FCFF [Trivial][ILSEQ]
-5CFD5C00 FD00 [Trivial][ILSEQ]
-5CFD5C08 FD08 [Trivial][ILSEQ]
-5CFD5C09 FD09 [Trivial][ILSEQ]
-5CFD5C0A FD0A [Trivial][ILSEQ]
-5CFD5C0D FD0D [Trivial][ILSEQ]
-5CFD5C1A FD1A [Trivial][ILSEQ]
-5CFD5C22 FD22 [Trivial][ILSEQ]
-5CFD5C25 FD5C25 [Regular][ILSEQ]
-5CFD5C27 FD27 [Trivial][ILSEQ]
-5CFD5C30 FD00 [Regular][ILSEQ]
-5CFD5C3F FD3F [Trivial][ILSEQ]
-5CFD5C40 FD40 [Trivial][ILSEQ]
-5CFD5C5A FD1A [Regular][ILSEQ]
-5CFD5C5C FD5C [Regular][ILSEQ]
-5CFD5C5F FD5C5F [Regular][ILSEQ]
-5CFD5C61 FD61 [Trivial][ILSEQ]
-5CFD5C62 FD08 [Regular][ILSEQ]
-5CFD5C6E FD0A [Regular][ILSEQ]
-5CFD5C72 FD0D [Regular][ILSEQ]
-5CFD5C74 FD09 [Regular][ILSEQ]
-5CFD5C7E FD7E [Trivial][ILSEQ]
-5CFD5C7F FD7F [Trivial][ILSEQ]
-5CFD5C80 FD80 [Trivial][ILSEQ]
-5CFD5C81 FD81 [Trivial][ILSEQ]
-5CFD5C9F FD9F [Trivial][ILSEQ]
-5CFD5CA0 FDA0 [Trivial][ILSEQ]
-5CFD5CA1 FDA1 [Trivial][ILSEQ]
-5CFD5CE0 FDE0 [Trivial][ILSEQ]
-5CFD5CEF FDEF [Trivial][ILSEQ]
-5CFD5CF9 FDF9 [Trivial][ILSEQ]
-5CFD5CFA FDFA [Trivial][ILSEQ]
-5CFD5CFC FDFC [Trivial][ILSEQ]
-5CFD5CFD FDFD [Trivial][ILSEQ]
-5CFD5CFE FDFE [Trivial][ILSEQ]
-5CFD5CFF FDFF [Trivial][ILSEQ]
-5CFE5C00 FE00 [Trivial][ILSEQ]
-5CFE5C08 FE08 [Trivial][ILSEQ]
-5CFE5C09 FE09 [Trivial][ILSEQ]
-5CFE5C0A FE0A [Trivial][ILSEQ]
-5CFE5C0D FE0D [Trivial][ILSEQ]
-5CFE5C1A FE1A [Trivial][ILSEQ]
-5CFE5C22 FE22 [Trivial][ILSEQ]
-5CFE5C25 FE5C25 [Regular][ILSEQ]
-5CFE5C27 FE27 [Trivial][ILSEQ]
-5CFE5C30 FE00 [Regular][ILSEQ]
-5CFE5C3F FE3F [Trivial][ILSEQ]
-5CFE5C40 FE40 [Trivial][ILSEQ]
-5CFE5C5A FE1A [Regular][ILSEQ]
-5CFE5C5C FE5C [Regular][ILSEQ]
-5CFE5C5F FE5C5F [Regular][ILSEQ]
-5CFE5C61 FE61 [Trivial][ILSEQ]
-5CFE5C62 FE08 [Regular][ILSEQ]
-5CFE5C6E FE0A [Regular][ILSEQ]
-5CFE5C72 FE0D [Regular][ILSEQ]
-5CFE5C74 FE09 [Regular][ILSEQ]
-5CFE5C7E FE7E [Trivial][ILSEQ]
-5CFE5C7F FE7F [Trivial][ILSEQ]
-5CFE5C80 FE80 [Trivial][ILSEQ]
-5CFE5C81 FE81 [Trivial][ILSEQ]
-5CFE5C9F FE9F [Trivial][ILSEQ]
-5CFE5CA0 FEA0 [Trivial][ILSEQ]
-5CFE5CA1 FEA1 [Trivial][ILSEQ]
-5CFE5CE0 FEE0 [Trivial][ILSEQ]
-5CFE5CEF FEEF [Trivial][ILSEQ]
-5CFE5CF9 FEF9 [Trivial][ILSEQ]
-5CFE5CFA FEFA [Trivial][ILSEQ]
-5CFE5CFC FEFC [Trivial][ILSEQ]
-5CFE5CFD FEFD [Trivial][ILSEQ]
-5CFE5CFE FEFE [Trivial][ILSEQ]
-5CFE5CFF FEFF [Trivial][ILSEQ]
-5CFF5C00 FF00 [Trivial][ILSEQ]
-5CFF5C08 FF08 [Trivial][ILSEQ]
-5CFF5C09 FF09 [Trivial][ILSEQ]
-5CFF5C0A FF0A [Trivial][ILSEQ]
-5CFF5C0D FF0D [Trivial][ILSEQ]
-5CFF5C1A FF1A [Trivial][ILSEQ]
-5CFF5C22 FF22 [Trivial][ILSEQ]
-5CFF5C25 FF5C25 [Regular][ILSEQ]
-5CFF5C27 FF27 [Trivial][ILSEQ]
-5CFF5C30 FF00 [Regular][ILSEQ]
-5CFF5C3F FF3F [Trivial][ILSEQ]
-5CFF5C40 FF40 [Trivial][ILSEQ]
-5CFF5C5A FF1A [Regular][ILSEQ]
-5CFF5C5C FF5C [Regular][ILSEQ]
-5CFF5C5F FF5C5F [Regular][ILSEQ]
-5CFF5C61 FF61 [Trivial][ILSEQ]
-5CFF5C62 FF08 [Regular][ILSEQ]
-5CFF5C6E FF0A [Regular][ILSEQ]
-5CFF5C72 FF0D [Regular][ILSEQ]
-5CFF5C74 FF09 [Regular][ILSEQ]
-5CFF5C7E FF7E [Trivial][ILSEQ]
-5CFF5C7F FF7F [Trivial][ILSEQ]
-5CFF5C80 FF80 [Trivial][ILSEQ]
-5CFF5C81 FF81 [Trivial][ILSEQ]
-5CFF5C9F FF9F [Trivial][ILSEQ]
-5CFF5CA0 FFA0 [Trivial][ILSEQ]
-5CFF5CA1 FFA1 [Trivial][ILSEQ]
-5CFF5CE0 FFE0 [Trivial][ILSEQ]
-5CFF5CEF FFEF [Trivial][ILSEQ]
-5CFF5CF9 FFF9 [Trivial][ILSEQ]
-5CFF5CFA FFFA [Trivial][ILSEQ]
-5CFF5CFC FFFC [Trivial][ILSEQ]
-5CFF5CFD FFFD [Trivial][ILSEQ]
-5CFF5CFE FFFE [Trivial][ILSEQ]
-5CFF5CFF FFFF [Trivial][ILSEQ]
-DROP TABLE t1;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP FUNCTION unescape;
-DROP FUNCTION unescape_type;
-DROP FUNCTION wellformedness;
-DROP FUNCTION mysql_real_escape_string_generated;
-DROP FUNCTION iswellformed;
-DROP TABLE allbytes;
-SET sql_mode = DEFAULT;
-# End of ctype_backslash.inc
-#
-# MDEV-12681 Wrong VIEW results for CHAR(0xDF USING latin1)
-#
-SET NAMES utf8;
-SELECT CHAR(0xDF USING latin1);
-CHAR(0xDF USING latin1)
-ß
-CREATE OR REPLACE VIEW v1 AS SELECT CHAR(0xDF USING latin1) AS c;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select char(0xdf using latin1) AS `c` utf8 utf8_general_ci
-SELECT * FROM v1;
-c
-ß
-DROP VIEW v1;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-6572 "USE dbname" with a bad sequence erroneously connects to a wrong database
-#
-SET NAMES utf8;
-SELECT * FROM `testðŸ˜ðŸ˜test`;
-ERROR HY000: Invalid utf8 character string: 'test\xF0\x9F\x98\x81\xF0\x9F\x98\x81test'
-#
-#MDEV-8256 A part of a ROW comparison is erroneously optimized away
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8);
-INSERT INTO t1 VALUES ('1e1'),('1é1');
-SELECT * FROM t1 WHERE a=10;
-a
-1e1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1é1'
-SELECT * FROM t1 WHERE a='1e1';
-a
-1e1
-1é1
-SELECT * FROM t1 WHERE a=10 AND a='1e1';
-a
-1e1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1é1'
-SELECT * FROM t1 WHERE (a,a)=(10,'1e1');
-a
-1e1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1é1'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (a,a)=(10,'1e1');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 10 and `test`.`t1`.`a` = '1e1'
-DROP TABLE t1;
-#
-# MDEV-8688 Wrong result for SELECT..WHERE varchar_column IN (1,2,3) AND varchar_column=' 1';
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1);
-INSERT INTO t1 VALUES ('1e1'),('1ë1');
-SELECT * FROM t1 WHERE a IN (1,2);
-a
-1ë1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1ë1'
-SELECT * FROM t1 WHERE a IN (1,2) AND a='1ë1';
-a
-1ë1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1ë1'
-SELECT * FROM t1 WHERE a IN (1,2,'x') AND a='1ë1';
-a
-1ë1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1ë1'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a IN (1,2) AND a='1ë1';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '1ë1' and `test`.`t1`.`a` in (1,2)
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a IN (1,2,'x') AND a='1ë1';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '1ë1' and `test`.`t1`.`a` in (1,2,'x')
-DROP TABLE IF EXISTS t1;
-#
-# MDEV-8816 Equal field propagation is not applied for WHERE varbinary_column>=_utf8'a' COLLATE utf8_swedish_ci AND varbinary_column='A';
-#
-CREATE TABLE t1 (c VARBINARY(10));
-INSERT INTO t1 VALUES ('a'),('A');
-SELECT * FROM t1 WHERE c>=_utf8'a' COLLATE utf8_general_ci AND c='A';
-c
-A
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE c>=_utf8'a' COLLATE utf8_general_ci AND c='A';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c` AS `c` from `test`.`t1` where `test`.`t1`.`c` = 'A'
-DROP TABLE t1;
-#
-# MDEV-7231 Field ROUTINE_DEFINITION in INFORMATION_SCHEMA.`ROUTINES` contains broken procedure body when used shielding quotes inside.
-#
-CREATE PROCEDURE p1()
-BEGIN
-SELECT CONCAT('ABC = ''',1,''''), CONCAT('ABC = ',2);
-SELECT '''', """", '\'', "\"";
-SELECT '<tab> <tab>\t<tab>';
-SELECT '<nl>
-<nl>\n<nl>';
-SELECT 'test';
-SELECT 'tëst';
-SELECT 'test\0';
-SELECT 'tëst\0';
-SELECT _binary'test';
-SELECT _binary'test\0';
-SELECT N'''', N"""", N'\'', N"\"";
-SELECT N'<tab> <tab>\t<tab>';
-SELECT N'<nl>
-<nl>\n<nl>';
-SELECT N'test';
-SELECT N'tëst';
-SELECT N'test\0';
-SELECT N'tëst\0';
-END$$
-SELECT ROUTINE_DEFINITION FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA='test' AND SPECIFIC_NAME ='p1';
-ROUTINE_DEFINITION
-BEGIN
-SELECT CONCAT('ABC = ''',1,''''), CONCAT('ABC = ',2);
-SELECT '''', """", '''', """";
-SELECT '<tab>\t<tab>\t<tab>';
-SELECT '<nl>\n<nl>\n<nl>';
-SELECT 'test';
-SELECT 'tëst';
-SELECT 'test\0';
-SELECT 'tëst\0';
-SELECT 'test';
-SELECT 'test\0';
-SELECT N'''', N"""", N'''', N"""";
-SELECT N'<tab>\t<tab>\t<tab>';
-SELECT N'<nl>\n<nl>\n<nl>';
-SELECT N'test';
-SELECT N'tëst';
-SELECT N'test\0';
-SELECT N'tëst\0';
-END
-SELECT body_utf8 FROM mysql.proc WHERE name='p1';
-body_utf8
-BEGIN
-SELECT CONCAT('ABC = ''',1,''''), CONCAT('ABC = ',2);
-SELECT '''', """", '''', """";
-SELECT '<tab>\t<tab>\t<tab>';
-SELECT '<nl>\n<nl>\n<nl>';
-SELECT 'test';
-SELECT 'tëst';
-SELECT 'test\0';
-SELECT 'tëst\0';
-SELECT 'test';
-SELECT 'test\0';
-SELECT N'''', N"""", N'''', N"""";
-SELECT N'<tab>\t<tab>\t<tab>';
-SELECT N'<nl>\n<nl>\n<nl>';
-SELECT N'test';
-SELECT N'tëst';
-SELECT N'test\0';
-SELECT N'tëst\0';
-END
-DROP PROCEDURE p1;
-SET @@SQL_MODE='NO_BACKSLASH_ESCAPES';
-CREATE PROCEDURE p1()
-BEGIN
-SELECT CONCAT('ABC = ''',1,''''), CONCAT('ABC = ',2);
-SELECT '''', """";
-SELECT '<tab> <tab>\t<tab>';
-SELECT '<nl>
-<nl>\n<nl>';
-SELECT 'test';
-SELECT 'tëst';
-SELECT 'test\0';
-SELECT 'tëst\0';
-SELECT _binary'test';
-SELECT _binary'test\0';
-SELECT N'''', N"""";
-SELECT N'<tab> <tab>\t<tab>';
-SELECT N'<nl>
-<nl>\n<nl>';
-SELECT N'test';
-SELECT N'tëst';
-SELECT N'test\0';
-SELECT N'tëst\0';
-END$$
-SELECT ROUTINE_DEFINITION FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA='test' AND SPECIFIC_NAME ='p1';
-ROUTINE_DEFINITION
-BEGIN
-SELECT CONCAT('ABC = ''',1,''''), CONCAT('ABC = ',2);
-SELECT '''', """";
-SELECT '<tab> <tab>\t<tab>';
-SELECT '<nl>
-<nl>\n<nl>';
-SELECT 'test';
-SELECT 'tëst';
-SELECT 'test\0';
-SELECT 'tëst\0';
-SELECT 'test';
-SELECT 'test\0';
-SELECT N'''', N"""";
-SELECT N'<tab> <tab>\t<tab>';
-SELECT N'<nl>
-<nl>\n<nl>';
-SELECT N'test';
-SELECT N'tëst';
-SELECT N'test\0';
-SELECT N'tëst\0';
-END
-SELECT body_utf8 FROM mysql.proc WHERE name='p1';
-body_utf8
-BEGIN
-SELECT CONCAT('ABC = ''',1,''''), CONCAT('ABC = ',2);
-SELECT '''', """";
-SELECT '<tab> <tab>\t<tab>';
-SELECT '<nl>
-<nl>\n<nl>';
-SELECT 'test';
-SELECT 'tëst';
-SELECT 'test\0';
-SELECT 'tëst\0';
-SELECT 'test';
-SELECT 'test\0';
-SELECT N'''', N"""";
-SELECT N'<tab> <tab>\t<tab>';
-SELECT N'<nl>
-<nl>\n<nl>';
-SELECT N'test';
-SELECT N'tëst';
-SELECT N'test\0';
-SELECT N'tëst\0';
-END
-DROP PROCEDURE p1;
-SET @@SQL_MODE=default;
-#
-# MDEV-10191 non convertible chars convert() resulted in Null instead "?" on Windows
-#
-SET sql_mode='STRICT_TRANS_TABLES';
-SELECT CONVERT(_utf8 0xC499 USING latin1);
-CONVERT(_utf8 0xC499 USING latin1)
-?
-Warnings:
-Warning 1977 Cannot convert 'utf8' character 0xC499 to 'latin1'
-SELECT CAST(_utf8 0xC499 AS CHAR CHARACTER SET latin1);
-CAST(_utf8 0xC499 AS CHAR CHARACTER SET latin1)
-?
-Warnings:
-Warning 1977 Cannot convert 'utf8' character 0xC499 to 'latin1'
-SET sql_mode=default;
-SELECT CONVERT(_utf8 0xC499 USING latin1);
-CONVERT(_utf8 0xC499 USING latin1)
-?
-Warnings:
-Warning 1977 Cannot convert 'utf8' character 0xC499 to 'latin1'
-SELECT CAST(_utf8 0xC499 AS CHAR CHARACTER SET latin1);
-CAST(_utf8 0xC499 AS CHAR CHARACTER SET latin1)
-?
-Warnings:
-Warning 1977 Cannot convert 'utf8' character 0xC499 to 'latin1'
-#
-# MDEV-15005 ASAN: stack-buffer-overflow in my_strnncollsp_simple
-#
-SET NAMES utf8;
-SELECT CONVERT(1, CHAR) IN ('100', 10, '101');
-CONVERT(1, CHAR) IN ('100', 10, '101')
-0
-SELECT CONVERT(1, CHAR) IN ('100', 10, '1');
-CONVERT(1, CHAR) IN ('100', 10, '1')
-1
-SELECT CONVERT(1, CHAR) IN ('100', '10', '1');
-CONVERT(1, CHAR) IN ('100', '10', '1')
-1
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9824 LOAD DATA does not work with multi-byte strings in LINES TERMINATED BY when IGNORE is specified
-#
-CREATE TABLE t1 (c1 VARCHAR(10) CHARACTER SET utf8);
-LOAD DATA INFILE '../../std_data/loaddata/mdev9824.txt' INTO TABLE t1 CHARACTER SET utf8 LINES TERMINATED BY 'Ñ‘Ñ‘';
-Warnings:
-Warning 1638 Non-ASCII separator arguments are not fully supported
-SELECT c1 FROM t1;
-c1
-a
-b
-c
-DELETE FROM t1;
-LOAD DATA INFILE '../../std_data/loaddata/mdev9824.txt' INTO TABLE t1 CHARACTER SET utf8 LINES TERMINATED BY 'Ñ‘Ñ‘' IGNORE 1 LINES;
-Warnings:
-Warning 1638 Non-ASCII separator arguments are not fully supported
-SELECT c1 FROM t1 ORDER BY c1;
-c1
-b
-c
-DROP TABLE t1;
-#
-# MDEV-9842 LOAD DATA INFILE does not work well with a TEXT column when using sjis
-#
-CREATE TABLE t1 (a TEXT CHARACTER SET utf8);
-LOAD DATA INFILE '../../std_data/loaddata/mdev9823.utf8mb4.txt' IGNORE INTO TABLE t1 CHARACTER SET utf8 IGNORE 4 LINES;
-Warnings:
-Warning 1366 Incorrect string value: '\xD0' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\xE1\x80' for column 'a' at row 3
-Warning 1366 Incorrect string value: '\xF0\x9F\x98' for column 'a' at row 5
-Warning 1366 Incorrect string value: '\xF0\x9F\x98\x8E' for column 'a' at row 7
-Warning 1366 Incorrect string value: '\xF0\x9F\x98' for column 'a' at row 8
-SELECT HEX(a) FROM t1;
-HEX(a)
-3F
-78787831
-3F3F
-78787832
-3F3F3F
-78787833
-3F3F3F3F
-3F3F3F
-DROP TABLE t1;
-#
-# MDEV-9874 LOAD XML INFILE does not handle well broken multi-byte characters
-#
-CREATE TABLE t1 (a TEXT CHARACTER SET utf8);
-LOAD XML INFILE '../../std_data/loaddata/mdev9874.xml' IGNORE INTO TABLE t1 CHARACTER SET utf8 ROWS IDENTIFIED BY '<row>';
-Warnings:
-Warning 1366 Incorrect string value: '\xD0' for column 'a' at row 1
-SELECT HEX(a) FROM t1;
-HEX(a)
-613F
-DROP TABLE t1;
-#
-# MDEV-10134 Add full support for DEFAULT
-#
-SET NAMES latin1;
-CREATE TABLE t1 (a VARCHAR(30) CHARACTER SET latin1 DEFAULT CONCAT('ß'));
-SET NAMES utf8;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) DEFAULT concat('ß')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT HEX(a),a FROM t1;
-HEX(a) a
-C39F ß
-SET NAMES latin1;
-ALTER TABLE t1 ADD b VARCHAR(30) CHARACTER SET latin1 DEFAULT CONCAT('ß');
-SET NAMES utf8;
-ALTER TABLE t1 ADD c VARCHAR(30) CHARACTER SET latin1 DEFAULT CONCAT('ß');
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) DEFAULT concat('ß'),
- `b` varchar(30) DEFAULT concat('ß'),
- `c` varchar(30) DEFAULT concat('ß')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DELETE FROM t1;
-INSERT INTO t1 VALUES();
-SELECT * FROM t1;
-a b c
-ß ß ß
-SET NAMES latin1;
-DELETE FROM t1;
-INSERT INTO t1 VALUES();
-SET NAMES utf8;
-SELECT * FROM t1;
-a b c
-ß ß ß
-DROP TABLE t1;
-SET NAMES latin1;
-CREATE TABLE t1 (a VARCHAR(30) CHARACTER SET utf8 DEFAULT CONCAT('ß'));
-SET NAMES utf8;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) CHARACTER SET utf8 DEFAULT concat('ß')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT HEX(a), a FROM t1;
-HEX(a) a
-C383C5B8 ß
-DROP TABLE t1;
-SET NAMES utf8;
-CREATE TABLE t1 (a VARCHAR(30) CHARACTER SET latin1 DEFAULT CONCAT('ß'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) DEFAULT concat('ß')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT HEX(a) FROM t1;
-HEX(a)
-DF
-DROP TABLE t1;
-SET NAMES utf8;
-CREATE TABLE t1 (a VARCHAR(30) CHARACTER SET utf8 DEFAULT CONCAT('ß'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) CHARACTER SET utf8 DEFAULT concat('ß')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT HEX(a) FROM t1;
-HEX(a)
-C39F
-DROP TABLE t1;
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041000000000000000000000000000000000000
-0041002000200000000000000000000000000000
-0020004100000000000000000000000000000000
-0020004100200000000000000000000000000000
-0041002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf8 COLLATE=utf8_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041000000000000000000000000000000000000
-0041002000200000000000000000000000000000
-0020004100000000000000000000000000000000
-0020004100200000000000000000000000000000
-0041002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0061000000000000000000000000000000000000
-0061002000200000000000000000000000000000
-0020006100000000000000000000000000000000
-0020006100200000000000000000000000000000
-0061002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf8 COLLATE=utf8_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0061000000000000000000000000000000000000
-0061002000200000000000000000000000000000
-0020006100000000000000000000000000000000
-0020006100200000000000000000000000000000
-0061002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# End of 10.2 tests
-#
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-11155 Bad error message when creating a SET column with comma and non-ASCII characters
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a SET('a,bü'));
-ERROR 22007: Illegal set 'a,bü' value found during parsing
-#
-# MDEV-12607 Hybrid functions create wrong VARBINARY length when mixing character and binary data
-#
-SET sql_mode='';
-SET NAMES utf8;
-CREATE OR REPLACE TABLE t1 AS SELECT COALESCE('ßa',_binary 'a');
-SELECT * FROM t1;
-COALESCE('ßa',_binary 'a')
-ßa
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `COALESCE('ßa',_binary 'a')` varbinary(6) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-#
-# End of 10.3 tests
-#
diff --git a/mysql-test/r/ctype_utf8_uca.result b/mysql-test/r/ctype_utf8_uca.result
deleted file mode 100644
index 23e9802b61a..00000000000
--- a/mysql-test/r/ctype_utf8_uca.result
+++ /dev/null
@@ -1,589 +0,0 @@
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10877 xxx_unicode_nopad_ci collations
-#
-SET NAMES utf8;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8_unicode_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8_unicode_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8_unicode_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_unicode_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8_unicode_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0E33020002000200020002000200020002000200
-0E33020902090200020002000200020002000200
-02090E3302000200020002000200020002000200
-02090E3302090200020002000200020002000200
-0E33020902090209020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8_unicode_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8_unicode_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8_unicode_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8_unicode_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8_unicode_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8_unicode_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_unicode_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8_unicode_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8_unicode_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8_unicode_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8_unicode_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_unicode_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8_unicode_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0E33020002000200020002000200020002000200
-0E33020902090200020002000200020002000200
-02090E3302000200020002000200020002000200
-02090E3302090200020002000200020002000200
-0E33020902090209020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8_unicode_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8_unicode_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8_unicode_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8_unicode_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8_unicode_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8_unicode_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_unicode_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8_unicode_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8_unicode_520_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8_unicode_520_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_520_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8_unicode_520_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_unicode_520_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8_unicode_520_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-120F020002000200020002000200020002000200
-120F020A020A0200020002000200020002000200
-020A120F02000200020002000200020002000200
-020A120F020A0200020002000200020002000200
-120F020A020A020A020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8_unicode_520_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8_unicode_520_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8_unicode_520_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8_unicode_520_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_unicode_520_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_520_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8_unicode_520_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_520_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8_unicode_520_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8_unicode_520_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_520_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8_unicode_520_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_unicode_520_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8_unicode_520_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-120F020002000200020002000200020002000200
-120F020A020A0200020002000200020002000200
-020A120F02000200020002000200020002000200
-020A120F020A0200020002000200020002000200
-120F020A020A020A020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8_unicode_520_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8_unicode_520_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8_unicode_520_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8_unicode_520_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8_unicode_520_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_520_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8_unicode_520_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8_unicode_520_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET NAMES utf8 COLLATE utf8_unicode_nopad_ci;
-#
-# MDEV-14350 Index use with collation utf8mb4_unicode_nopad_ci on LIKE pattern with wrong results
-#
-CREATE OR REPLACE TABLE t1 AS SELECT SPACE(50) AS a, SPACE (50) AS b;
-ALTER TABLE t1 ADD KEY(a), ADD KEY(b);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_nopad_ci DEFAULT NULL,
- `b` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_nopad_ci DEFAULT NULL,
- KEY `a` (`a`),
- KEY `b` (`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('111', '111');
-INSERT INTO t1 VALUES ('222', '222');
-INSERT INTO t1 VALUES ('333', '333');
-INSERT INTO t1 VALUES ('444', '444');
-SELECT * FROM t1 WHERE a LIKE '111%';
-a b
-111 111
-SELECT * FROM t1 IGNORE INDEX (a) WHERE a LIKE '111%';
-a b
-111 111
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_utf8mb4.result b/mysql-test/r/ctype_utf8mb4.result
deleted file mode 100644
index fbe95d9f44b..00000000000
--- a/mysql-test/r/ctype_utf8mb4.result
+++ /dev/null
@@ -1,4092 +0,0 @@
-drop table if exists t1,t2;
-#
-# Start of 5.5 tests
-#
-set names utf8mb4;
-select left(_utf8mb4 0xD0B0D0B1D0B2,1);
-left(_utf8mb4 0xD0B0D0B1D0B2,1)
-а
-select right(_utf8mb4 0xD0B0D0B2D0B2,1);
-right(_utf8mb4 0xD0B0D0B2D0B2,1)
-в
-select locate('he','hello');
-locate('he','hello')
-1
-select locate('he','hello',2);
-locate('he','hello',2)
-0
-select locate('lo','hello',2);
-locate('lo','hello',2)
-4
-select locate('HE','hello');
-locate('HE','hello')
-1
-select locate('HE','hello',2);
-locate('HE','hello',2)
-0
-select locate('LO','hello',2);
-locate('LO','hello',2)
-4
-select locate('HE','hello' collate utf8mb4_bin);
-locate('HE','hello' collate utf8mb4_bin)
-0
-select locate('HE','hello' collate utf8mb4_bin,2);
-locate('HE','hello' collate utf8mb4_bin,2)
-0
-select locate('LO','hello' collate utf8mb4_bin,2);
-locate('LO','hello' collate utf8mb4_bin,2)
-0
-select locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D0B1D0B2);
-locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D0B1D0B2)
-2
-select locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2);
-locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2)
-2
-select locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2);
-locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2)
-2
-select locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2 collate utf8mb4_bin);
-locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2 collate utf8mb4_bin)
-0
-select locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2 collate utf8mb4_bin);
-locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2 collate utf8mb4_bin)
-0
-select length(_utf8mb4 0xD0B1), bit_length(_utf8mb4 0xD0B1), char_length(_utf8mb4 0xD0B1);
-length(_utf8mb4 0xD0B1) bit_length(_utf8mb4 0xD0B1) char_length(_utf8mb4 0xD0B1)
-2 16 1
-select 'a' like 'a';
-'a' like 'a'
-1
-select 'A' like 'a';
-'A' like 'a'
-1
-select 'A' like 'a' collate utf8mb4_bin;
-'A' like 'a' collate utf8mb4_bin
-0
-select _utf8mb4 0xD0B0D0B1D0B2 like concat(_utf8mb4'%',_utf8mb4 0xD0B1,_utf8mb4 '%');
-_utf8mb4 0xD0B0D0B1D0B2 like concat(_utf8mb4'%',_utf8mb4 0xD0B1,_utf8mb4 '%')
-1
-select convert(_latin1'Günter André' using utf8mb4) like CONVERT(_latin1'GÜNTER%' USING utf8mb4);
-convert(_latin1'G?nter Andr?' using utf8mb4) like CONVERT(_latin1'G?NTER%' USING utf8mb4)
-1
-select CONVERT(_koi8r'×ÁÓÑ' USING utf8mb4) LIKE CONVERT(_koi8r'÷áóñ' USING utf8mb4);
-CONVERT(_koi8r'????' USING utf8mb4) LIKE CONVERT(_koi8r'????' USING utf8mb4)
-1
-select CONVERT(_koi8r'÷áóñ' USING utf8mb4) LIKE CONVERT(_koi8r'×ÁÓÑ' USING utf8mb4);
-CONVERT(_koi8r'????' USING utf8mb4) LIKE CONVERT(_koi8r'????' USING utf8mb4)
-1
-SELECT 'a' = 'a ';
-'a' = 'a '
-1
-SELECT 'a\0' < 'a';
-'a\0' < 'a'
-1
-SELECT 'a\0' < 'a ';
-'a\0' < 'a '
-1
-SELECT 'a\t' < 'a';
-'a\t' < 'a'
-1
-SELECT 'a\t' < 'a ';
-'a\t' < 'a '
-1
-SELECT 'a' = 'a ' collate utf8mb4_bin;
-'a' = 'a ' collate utf8mb4_bin
-1
-SELECT 'a\0' < 'a' collate utf8mb4_bin;
-'a\0' < 'a' collate utf8mb4_bin
-1
-SELECT 'a\0' < 'a ' collate utf8mb4_bin;
-'a\0' < 'a ' collate utf8mb4_bin
-1
-SELECT 'a\t' < 'a' collate utf8mb4_bin;
-'a\t' < 'a' collate utf8mb4_bin
-1
-SELECT 'a\t' < 'a ' collate utf8mb4_bin;
-'a\t' < 'a ' collate utf8mb4_bin
-1
-CREATE TABLE t1 (a char(10) character set utf8mb4 not null);
-INSERT INTO t1 VALUES ('a'),('a\0'),('a\t'),('a ');
-SELECT hex(a),STRCMP(a,'a'), STRCMP(a,'a ') FROM t1;
-hex(a) STRCMP(a,'a') STRCMP(a,'a ')
-61 0 0
-6100 -1 -1
-6109 -1 -1
-61 0 0
-DROP TABLE t1;
-select insert('txs',2,1,'hi'),insert('is ',4,0,'a'),insert('txxxxt',2,4,'es');
-insert('txs',2,1,'hi') insert('is ',4,0,'a') insert('txxxxt',2,4,'es')
-this is test
-select insert("aa",100,1,"b"),insert("aa",1,3,"b");
-insert("aa",100,1,"b") insert("aa",1,3,"b")
-aa b
-select char_length(left(@a:='теÑÑ‚',5)), length(@a), @a;
-char_length(left(@a:='теÑÑ‚',5)) length(@a) @a
-4 8 теÑÑ‚
-create table t1 select date_format("2004-01-19 10:10:10", "%Y-%m-%d");
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `date_format("2004-01-19 10:10:10", "%Y-%m-%d")` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-date_format("2004-01-19 10:10:10", "%Y-%m-%d")
-2004-01-19
-drop table t1;
-set names utf8mb4;
-set LC_TIME_NAMES='fr_FR';
-create table t1 (s1 char(20) character set latin1);
-insert into t1 values (date_format('2004-02-02','%M'));
-select hex(s1) from t1;
-hex(s1)
-66E97672696572
-drop table t1;
-create table t1 (s1 char(20) character set koi8r);
-set LC_TIME_NAMES='ru_RU';
-insert into t1 values (date_format('2004-02-02','%M'));
-insert into t1 values (date_format('2004-02-02','%b'));
-insert into t1 values (date_format('2004-02-02','%W'));
-insert into t1 values (date_format('2004-02-02','%a'));
-select hex(s1), s1 from t1;
-hex(s1) s1
-E6C5D7D2C1CCD1 ФевралÑ
-E6C5D7 Фев
-F0CFCEC5C4C5CCD8CEC9CB Понедельник
-F0CEC4 Пнд
-drop table t1;
-set LC_TIME_NAMES='en_US';
-set names koi8r;
-create table t1 (s1 char(1) character set utf8mb4);
-insert ignore into t1 values (_koi8r'ÁÂ');
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select s1,hex(s1),char_length(s1),octet_length(s1) from t1;
-s1 hex(s1) char_length(s1) octet_length(s1)
-Á D0B0 1 2
-drop table t1;
-create table t1 (s1 tinytext character set utf8mb4);
-insert ignore into t1 select repeat('a',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ñ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('aÑ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ña',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('ÑÑ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161
-D18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18F
-61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F
-D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61
-D18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18F
-select length(s1),char_length(s1) from t1;
-length(s1) char_length(s1)
-255 255
-254 127
-255 170
-255 170
-254 127
-drop table t1;
-create table t1 (s1 text character set utf8mb4);
-insert ignore into t1 select repeat('a',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ñ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('aÑ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ña',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('ÑÑ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select length(s1),char_length(s1) from t1;
-length(s1) char_length(s1)
-65535 65535
-65534 32767
-65535 43690
-65535 43690
-65534 32767
-drop table t1;
-create table t1 (s1 char(10) character set utf8mb4);
-insert ignore into t1 values (0x41FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-413F
-drop table t1;
-create table t1 (s1 varchar(10) character set utf8mb4);
-insert ignore into t1 values (0x41FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-413F
-drop table t1;
-create table t1 (s1 text character set utf8mb4);
-insert ignore into t1 values (0x41FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-413F
-drop table t1;
-create table t1 (a text character set utf8mb4, primary key(a(371)));
-ERROR 42000: Specified key was too long; max key length is 1000 bytes
-CREATE TABLE t1 ( a varchar(10) ) CHARACTER SET utf8mb4;
-INSERT INTO t1 VALUES ( 'test' );
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = b.a;
-a a
-test test
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = 'test' and b.a = 'test';
-a a
-test test
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = b.a and a.a = 'test';
-a a
-test test
-DROP TABLE t1;
-create table t1 (a char(255) character set utf8mb4);
-insert into t1 values('b'),('b');
-select * from t1 where a = 'b';
-a
-b
-b
-select * from t1 where a = 'b' and a = 'b';
-a
-b
-b
-select * from t1 where a = 'b' and a != 'b';
-a
-drop table t1;
-set names utf8mb4;
-drop table if exists t1;
-create table t1 as
-select repeat(' ', 64) as s1, repeat(' ',64) as s2
-union
-select null, null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL,
- `s2` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-delete from t1;
-insert into t1 values('aaa','aaa');
-insert into t1 values('aaa|qqq','qqq');
-insert into t1 values('gheis','^[^a-dXYZ]+$');
-insert into t1 values('aab','^aa?b');
-insert into t1 values('Baaan','^Ba*n');
-insert into t1 values('aaa','qqq|aaa');
-insert into t1 values('qqq','qqq|aaa');
-insert into t1 values('bbb','qqq|aaa');
-insert into t1 values('bbb','qqq');
-insert into t1 values('aaa','aba');
-insert into t1 values(null,'abc');
-insert into t1 values('def',null);
-insert into t1 values(null,null);
-insert into t1 values('ghi','ghi[');
-select HIGH_PRIORITY s1 regexp s2 from t1;
-s1 regexp s2
-0
-0
-0
-1
-1
-1
-1
-1
-1
-1
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-SELECT @@character_set_client, @@collation_connection;
-@@character_set_client @@collation_connection
-utf8mb4 utf8mb4_general_ci
-select 'ваÑÑ' rlike '\\bваÑÑ\\b';
-'ваÑÑ' rlike '\\bваÑÑ\\b'
-1
-select 'ваÑÑ ' rlike '\\bваÑÑ\\b';
-'ваÑÑ ' rlike '\\bваÑÑ\\b'
-1
-select ' ваÑÑ' rlike '\\bваÑÑ\\b';
-' ваÑÑ' rlike '\\bваÑÑ\\b'
-1
-select ' ваÑÑ ' rlike '\\bваÑÑ\\b';
-' ваÑÑ ' rlike '\\bваÑÑ\\b'
-1
-select 'ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select 'ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select ' ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-' ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select ' ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-' ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select 'ваÑÑz' rlike '\\bваÑÑ\\b';
-'ваÑÑz' rlike '\\bваÑÑ\\b'
-0
-select 'zваÑÑ' rlike '\\bваÑÑ\\b';
-'zваÑÑ' rlike '\\bваÑÑ\\b'
-0
-select 'zваÑÑz' rlike '\\bваÑÑ\\b';
-'zваÑÑz' rlike '\\bваÑÑ\\b'
-0
-select 'ваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-select 'zваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'zваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-select 'zваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'zваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-CREATE TABLE t1 (a enum ('Y', 'N') DEFAULT 'N' COLLATE utf8mb4_unicode_ci);
-ALTER TABLE t1 ADD COLUMN b CHAR(20);
-DROP TABLE t1;
-set names utf8mb4;
-create table t1 (a enum('aaaa','проба') character set utf8mb4);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('aaaa','проба') CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('проба');
-select * from t1;
-a
-проба
-create table t2 select ifnull(a,a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ifnull(a,a)` varchar(5) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t2;
-ifnull(a,a)
-проба
-drop table t1;
-drop table t2;
-create table t1 (c varchar(30) character set utf8mb4, unique(c(10)));
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c varchar(30) character set utf8mb4, unique(c(10))) engine=innodb;
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c char(3) character set utf8mb4, unique (c(2)));
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (c char(3) character set utf8mb4, unique (c(2))) engine=innodb;
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4,
-unique key a using hash (c(1))
-) engine=heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING HASH
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4,
-unique key a using btree (c(1))
-) engine=heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING BTREE
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4,
-unique key a (c(1))
-) engine=innodb;
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (c varchar(30) character set utf8mb4 collate utf8mb4_bin, unique(c(10)));
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c char(3) character set utf8mb4 collate utf8mb4_bin, unique (c(2)));
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4 collate utf8mb4_bin,
-unique key a using hash (c(1))
-) engine=heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING HASH
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4 collate utf8mb4_bin,
-unique key a using btree (c(1))
-) engine=heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING BTREE
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4 collate utf8mb4_bin,
-unique key a (c(1))
-) engine=innodb;
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str (str(2))
-) engine=myisam;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str (str(2))
-) engine=innodb;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str using btree (str(2))
-) engine=heap;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str using hash (str(2))
-) engine=heap;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str (str(2))
-) engine=innodb;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-CREATE TABLE t1 (a varchar(32) BINARY) CHARACTER SET utf8mb4;
-INSERT INTO t1 VALUES ('test');
-SELECT a FROM t1 WHERE a LIKE '%te';
-a
-DROP TABLE t1;
-SET NAMES utf8mb4;
-CREATE TABLE t1 (
-subject varchar(255) character set utf8mb4 collate utf8mb4_unicode_ci,
-p varchar(15) character set utf8mb4
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES ('è°·å·ä¿ŠäºŒã¨ç”³ã—ã¾ã™ãŒã€ã‚¤ãƒ³ã‚¿ãƒ¼ãƒãƒƒãƒˆäºˆç´„ã®ä¼šå“¡ç™»éŒ²ã‚’ã—ã¾ã—ãŸã¨ã“ã‚ã€ãƒ¡ãƒ¼ãƒ«ã‚¢ãƒ‰ãƒ¬ã‚¹ã‚’é–“é•ãˆã¦ã—ã¾ã„会員IDãŒå—ã‘å–ã‚‹ã“ã¨ãŒå‡ºæ¥ã¾ã›ã‚“ã§ã—ãŸã€‚é–“é•ãˆã‚¢ãƒ‰ãƒ¬ã‚¹ã¯tani-shun@n.vodafone.ne.jpを書ãè¾¼ã¿ã¾ã—ãŸã€‚ã©ã†ã™ã‚Œã°ã‚ˆã„ã§ã™ã‹ï¼Ÿ ãã®ä»–ã€ä½æ‰€ç­‰ã¯é–“é•ãˆã‚ã‚Šã¾ã›ã‚“。連絡ãã ã•ã„。よã‚ã—ããŠé¡˜ã„ã—ã¾ã™ã€‚m(__)m','040312-000057');
-INSERT INTO t1 VALUES ('aaa','bbb');
-SELECT length(subject) FROM t1;
-length(subject)
-432
-3
-SELECT length(subject) FROM t1 ORDER BY 1;
-length(subject)
-3
-432
-DROP TABLE t1;
-CREATE TABLE t1 (
-id int unsigned NOT NULL auto_increment,
-list_id smallint unsigned NOT NULL,
-term TEXT NOT NULL,
-PRIMARY KEY(id),
-INDEX(list_id, term(4))
-) ENGINE=MYISAM CHARSET=utf8mb4;
-INSERT INTO t1 SET list_id = 1, term = "letterc";
-INSERT INTO t1 SET list_id = 1, term = "letterb";
-INSERT INTO t1 SET list_id = 1, term = "lettera";
-INSERT INTO t1 SET list_id = 1, term = "letterd";
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterc");
-id
-1
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterb");
-id
-2
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "lettera");
-id
-3
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterd");
-id
-4
-DROP TABLE t1;
-SET NAMES latin1;
-CREATE TABLE t1 (
-id int unsigned NOT NULL auto_increment,
-list_id smallint unsigned NOT NULL,
-term text NOT NULL,
-PRIMARY KEY(id),
-INDEX(list_id, term(19))
-) ENGINE=MyISAM CHARSET=utf8mb4;
-INSERT INTO t1 set list_id = 1, term = "testétest";
-INSERT INTO t1 set list_id = 1, term = "testetest";
-INSERT INTO t1 set list_id = 1, term = "testètest";
-SELECT id, term FROM t1 where (list_id = 1) AND (term = "testétest");
-id term
-1 testétest
-2 testetest
-3 testètest
-SELECT id, term FROM t1 where (list_id = 1) AND (term = "testetest");
-id term
-1 testétest
-2 testetest
-3 testètest
-SELECT id, term FROM t1 where (list_id = 1) AND (term = "testètest");
-id term
-1 testétest
-2 testetest
-3 testètest
-DROP TABLE t1;
-set names utf8mb4;
-create table t1 (
-a int primary key,
-b varchar(6),
-index b3(b(3))
-) engine=innodb character set=utf8mb4;
-insert into t1 values(1,'foo'),(2,'foobar');
-select * from t1 where b like 'foob%';
-a b
-2 foobar
-alter table t1 engine=innodb;
-select * from t1 where b like 'foob%';
-a b
-2 foobar
-drop table t1;
-create table t1 (
-a enum('петÑ','ваÑÑ','анюта') character set utf8mb4 not null default 'анюта',
-b set('петÑ','ваÑÑ','анюта') character set utf8mb4 not null default 'анюта'
-);
-create table t2 select concat(a,_utf8mb4'') as a, concat(b,_utf8mb4'')as b from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(5) CHARACTER SET utf8mb4 DEFAULT NULL,
- `b` varchar(15) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t2;
-drop table t1;
-select 'c' like '\_' as want0;
-want0
-0
-SELECT SUBSTR('ваÑÑ',-2);
-SUBSTR('ваÑÑ',-2)
-ÑÑ
-create table t1 (id integer, a varchar(100) character set utf8mb4 collate utf8mb4_unicode_ci);
-insert into t1 values (1, 'Test');
-select * from t1 where soundex(a) = soundex('Test');
-id a
-1 Test
-select * from t1 where soundex(a) = soundex('TEST');
-id a
-1 Test
-select * from t1 where soundex(a) = soundex('test');
-id a
-1 Test
-drop table t1;
-select soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB);
-soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB)
-阅000
-select hex(soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB));
-hex(soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB))
-E99885303030
-select soundex(_utf8mb4 0xD091D092D093);
-soundex(_utf8mb4 0xD091D092D093)
-Б000
-select hex(soundex(_utf8mb4 0xD091D092D093));
-hex(soundex(_utf8mb4 0xD091D092D093))
-D091303030
-SET collation_connection='utf8mb4_general_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf8mb4_general_ci 6109
-utf8mb4_general_ci 61
-utf8mb4_general_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-"BEGIN ctype_german.inc"
-drop table if exists t1;
-create table t1 as select repeat(' ', 64) as s1;
-select collation(s1) from t1;
-collation(s1)
-utf8mb4_general_ci
-delete from t1;
-INSERT INTO t1 VALUES ('ud'),('uf');
-INSERT INTO t1 VALUES ('od'),('of');
-INSERT INTO t1 VALUES ('e');
-INSERT INTO t1 VALUES ('ad'),('af');
-insert into t1 values ('a'),('ae'),(_latin1 0xE4);
-insert into t1 values ('o'),('oe'),(_latin1 0xF6);
-insert into t1 values ('s'),('ss'),(_latin1 0xDF);
-insert into t1 values ('u'),('ue'),(_latin1 0xFC);
-INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
-INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
-select s1, hex(s1) from t1 order by s1, binary s1;
-s1 hex(s1)
-a 61
-ä C3A4
-ad 6164
-ae 6165
-af 6166
-e 65
-o 6F
-ö C3B6
-od 6F64
-oe 6F65
-of 6F66
-s 73
-ß C39F
-ss 7373
-u 75
-ü C3BC
-ud 7564
-ue 7565
-uf 7566
-Æ C386
-æ C3A6
-Å’ C592
-Å“ C593
-select group_concat(s1 order by binary s1) from t1 group by s1;
-group_concat(s1 order by binary s1)
-a,ä
-ad
-ae
-af
-e
-o,ö
-od
-oe
-of
-s,ß
-ss
-u,ü
-ud
-ue
-uf
-Æ,æ
-Å’,Å“
-SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
-s1 hex(s1) hex(weight_string(s1))
-a 61 0041
-ä C3A4 0041
-ad 6164 00410044
-ae 6165 00410045
-af 6166 00410046
-e 65 0045
-o 6F 004F
-ö C3B6 004F
-od 6F64 004F0044
-oe 6F65 004F0045
-of 6F66 004F0046
-s 73 0053
-ß C39F 0053
-ss 7373 00530053
-u 75 0055
-ü C3BC 0055
-ud 7564 00550044
-ue 7565 00550045
-uf 7566 00550046
-Æ C386 00C6
-æ C3A6 00C6
-Å’ C592 0152
-Å“ C593 0152
-SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
-s1 hex(s1)
-ae 6165
-drop table t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf8mb4 DEFAULT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('s',0),(_latin1 0xDF,1);
-SELECT * FROM t1 ORDER BY a, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY a DESC, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a), b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
-a b
-s 0
-ß 1
-DROP TABLE t1;
-"END ctype_german.inc"
-SET collation_connection='utf8mb4_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf8mb4_bin 6109
-utf8mb4_bin 61
-utf8mb4_bin 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-#
-# Bug#55980 Character sets: supplementary character _bin ordering is wrong
-#
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_utf8mb4 0xEFBE9D),(_utf8mb4 0xF0908E84);
-INSERT INTO t1 VALUES (_utf8mb4 0xCE85),(_utf8mb4 0xF4808080);
-SELECT HEX(a), HEX(CONVERT(a USING utf8mb4)) FROM t1 ORDER BY a;
-HEX(a) HEX(CONVERT(a USING utf8mb4))
-CE85 CE85
-EFBE9D EFBE9D
-F0908E84 F0908E84
-F4808080 F4808080
-ALTER TABLE t1 ADD KEY(a);
-SELECT HEX(a), HEX(CONVERT(a USING utf8mb4)) FROM t1 ORDER BY a;
-HEX(a) HEX(CONVERT(a USING utf8mb4))
-CE85 CE85
-EFBE9D EFBE9D
-F0908E84 F0908E84
-F4808080 F4808080
-DROP TABLE IF EXISTS t1;
-#
-# BUG#16691598 - ORDER BY LOWER(COLUMN) PRODUCES
-# OUT-OF-ORDER RESULTS
-#
-CREATE TABLE t1 SELECT ('a a') as n;
-INSERT INTO t1 VALUES('a b');
-SELECT * FROM t1 ORDER BY LOWER(n) ASC;
-n
-a a
-a b
-SELECT * FROM t1 ORDER BY LOWER(n) DESC;
-n
-a b
-a a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 (
-user varchar(255) NOT NULL default ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES ('one'),('two');
-SELECT CHARSET('a');
-CHARSET('a')
-utf8mb4
-SELECT user, CONCAT('<', user, '>') AS c FROM t1;
-user c
-one <one>
-two <two>
-DROP TABLE t1;
-create table t1 (f1 varchar(1) not null) default charset utf8mb4;
-insert into t1 values (''), ('');
-select concat(concat(_latin1'->',f1),_latin1'<-') from t1;
-concat(concat(_latin1'->',f1),_latin1'<-')
--><-
--><-
-drop table t1;
-select convert(_koi8r'É' using utf8mb4) < convert(_koi8r'Ê' using utf8mb4);
-convert(_koi8r'?' using utf8mb4) < convert(_koi8r'?' using utf8mb4)
-1
-set names latin1;
-create table t1 (a varchar(10)) character set utf8mb4;
-insert into t1 values ('test');
-select ifnull(a,'') from t1;
-ifnull(a,'')
-test
-drop table t1;
-select repeat(_utf8mb4'+',3) as h union select NULL;
-h
-+++
-NULL
-select ifnull(NULL, _utf8mb4'string');
-ifnull(NULL, _utf8mb4'string')
-string
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_lithuanian_ci);
-insert into t1 values ('I'),('K'),('Y');
-select * from t1 where s1 < 'K' and s1 = 'Y';
-s1
-I
-Y
-select * from t1 where 'K' > s1 and s1 = 'Y';
-s1
-I
-Y
-drop table t1;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_czech_ci);
-insert into t1 values ('c'),('d'),('h'),('ch'),('CH'),('cH'),('Ch'),('i');
-select * from t1 where s1 > 'd' and s1 = 'CH';
-s1
-ch
-CH
-Ch
-select * from t1 where 'd' < s1 and s1 = 'CH';
-s1
-ch
-CH
-Ch
-select * from t1 where s1 = 'cH' and s1 <> 'ch';
-s1
-cH
-select * from t1 where 'cH' = s1 and s1 <> 'ch';
-s1
-cH
-drop table t1;
-create table t1 (a varchar(255)) default character set utf8mb4;
-insert into t1 values (1.0);
-drop table t1;
-create table t1 (
-id int not null,
-city varchar(20) not null,
-key (city(7),id)
-) character set=utf8mb4;
-insert into t1 values (1,'Durban North');
-insert into t1 values (2,'Durban');
-select * from t1 where city = 'Durban';
-id city
-2 Durban
-select * from t1 where city = 'Durban ';
-id city
-2 Durban
-drop table t1;
-create table t1 (x set('A', 'B') default 0) character set utf8mb4;
-ERROR 42000: Invalid default value for 'x'
-create table t1 (x enum('A', 'B') default 0) character set utf8mb4;
-ERROR 42000: Invalid default value for 'x'
-SET NAMES UTF8;
-CREATE TABLE t1 (
-`id` int(20) NOT NULL auto_increment,
-`country` varchar(100) NOT NULL default '',
-`shortcode` varchar(100) NOT NULL default '',
-`operator` varchar(100) NOT NULL default '',
-`momid` varchar(30) NOT NULL default '',
-`keyword` varchar(160) NOT NULL default '',
-`content` varchar(160) NOT NULL default '',
-`second_token` varchar(160) default NULL,
-`gateway_id` int(11) NOT NULL default '0',
-`created` datetime NOT NULL default '0000-00-00 00:00:00',
-`msisdn` varchar(15) NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `MSCCSPK_20030521130957121` (`momid`),
-KEY `IX_mobile_originated_message_keyword` (`keyword`),
-KEY `IX_mobile_originated_message_created` (`created`),
-KEY `IX_mobile_originated_message_support` (`msisdn`,`momid`,`keyword`,`gateway_id`,`created`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
-INSERT INTO t1 VALUES
-(1,'blah','464','aaa','fkc1c9ilc20x0hgae7lx6j09','ERR','ERR Имри.Ðфимим.Ðеимимримдмримрмрирор имримримримр имридм ирбднримрфмририримрфмфмим.Ðд.Д имдимримрад.Ðдимримримрмдиримримримр м.Дадимфшьмримд им.Ðдимимрн имадми','ИМРИ.ÐФИМИМ.ÐЕИМИМРИМДМРИМРМРИРОР',3,'2005-06-01 17:30:43','1234567890'),
-(2,'blah','464','aaa','haxpl2ilc20x00bj4tt2m5ti','11','11 g','G',3,'2005-06-02 22:43:10','1234567890');
-CREATE TABLE t2 (
-`msisdn` varchar(15) NOT NULL default '',
-`operator_id` int(11) NOT NULL default '0',
-`created` datetime NOT NULL default '0000-00-00 00:00:00',
-UNIQUE KEY `PK_user` (`msisdn`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-INSERT INTO t2 VALUES ('1234567890',2,'2005-05-24 13:53:25');
-SELECT content, t2.msisdn FROM t1, t2 WHERE t1.msisdn = '1234567890';
-content msisdn
-ERR Имри.Ðфимим.Ðеимимримдмримрмрирор имримримримр имридм ирбднримрфмририримрфмфмим.Ðд.Д имдимримрад.Ðдимримримрмдиримримримр м.Дадимфшьмримд им.Ðдимимрн имадми 1234567890
-11 g 1234567890
-DROP TABLE t1,t2;
-create table t1 (a char(20) character set utf8mb4);
-insert into t1 values ('123456'),('андрей');
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 modify a char(2) character set utf8mb4;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-Warning 1265 Data truncated for column 'a' at row 2
-select char_length(a), length(a), a from t1 order by a;
-char_length(a) length(a) a
-2 2 12
-2 4 ан
-drop table t1;
-set names utf8mb4;
-select 'andre%' like 'andreñ%' escape 'ñ';
-'andre%' like 'andreñ%' escape 'ñ'
-1
-set names utf8mb4;
-select 'a\\' like 'a\\';
-'a\\' like 'a\\'
-1
-select 'aa\\' like 'a%\\';
-'aa\\' like 'a%\\'
-1
-create table t1 (a char(10), key(a)) character set utf8mb4;
-insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
-select * from t1 where a like "abc%";
-a
-abc
-abcd
-select * from t1 where a like concat("abc","%");
-a
-abc
-abcd
-select * from t1 where a like "ABC%";
-a
-abc
-abcd
-select * from t1 where a like "test%";
-a
-test
-select * from t1 where a like "te_t";
-a
-test
-select * from t1 where a like "%a%";
-a
-a
-abc
-abcd
-select * from t1 where a like "%abcd%";
-a
-abcd
-select * from t1 where a like "%abc\d%";
-a
-abcd
-drop table t1;
-CREATE TABLE t1 (
-a varchar(255) NOT NULL default '',
-KEY a (a)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-insert into t1 values (_utf8mb4 0xe880bd);
-insert into t1 values (_utf8mb4 0x5b);
-select hex(a) from t1;
-hex(a)
-E880BD
-5B
-drop table t1;
-set names 'latin1';
-create table t1 (a varchar(255)) default charset=utf8mb4;
-select * from t1 where find_in_set('-1', a);
-a
-drop table t1;
-create table t1 (a int);
-insert into t1 values (48),(49),(50);
-set names utf8mb4;
-select distinct char(a) from t1;
-char(a)
-0
-1
-2
-drop table t1;
-CREATE TABLE t1 (t TINYTEXT CHARACTER SET utf8mb4);
-INSERT INTO t1 VALUES(REPEAT('a', 100));
-CREATE TEMPORARY TABLE t2 SELECT COALESCE(t) AS bug FROM t1;
-SELECT LENGTH(bug) FROM t2;
-LENGTH(bug)
-100
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (item varchar(255)) default character set utf8mb4;
-INSERT INTO t1 VALUES (N'\\');
-INSERT INTO t1 VALUES (_utf8mb4'\\');
-INSERT INTO t1 VALUES (N'Cote d\'Ivoire');
-INSERT INTO t1 VALUES (_utf8mb4'Cote d\'Ivoire');
-SELECT item FROM t1 ORDER BY item;
-item
-Cote d'Ivoire
-Cote d'Ivoire
-\
-\
-DROP TABLE t1;
-SET NAMES utf8mb4;
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1(a VARCHAR(255), KEY(a)) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
-INSERT INTO t1 VALUES('uu');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uU');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uu');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('UuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-alter table t1 add b int;
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',1);
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',2);
-delete from t1 where b=1;
-INSERT INTO t1 VALUES('UUABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',1);
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',3);
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',4);
-delete from t1 where b=3;
-INSERT INTO t1 VALUES('uUABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',3);
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4);
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_general_ci from t1 where s1 like 'ペテ%';
-before_delete_general_ci
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_general_ci from t1 where s1 like 'ペテ%';
-after_delete_general_ci
-ペテルグル
-drop table t1;
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_unicode_ci);
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_unicode_ci from t1 where s1 like 'ペテ%';
-before_delete_unicode_ci
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_unicode_ci from t1 where s1 like 'ペテ%';
-after_delete_unicode_ci
-ペテルグル
-drop table t1;
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_bin);
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_bin from t1 where s1 like 'ペテ%';
-before_delete_bin
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_bin from t1 where s1 like 'ペテ%';
-after_delete_bin
-ペテルグル
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(30) not null primary key)
-engine=innodb default character set utf8mb4 collate utf8mb4_general_ci;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as gci1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-gci1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as gci2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-gci2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(30) not null primary key)
-engine=innodb default character set utf8mb4 collate utf8mb4_unicode_ci;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as uci1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-uci1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as uci2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-uci2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(30) not null primary key)
-engine=innodb default character set utf8mb4 collate utf8mb4_bin;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as bin1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-bin1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as bin2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-bin2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-SET NAMES utf8mb4;
-CREATE TABLE t1 (id int PRIMARY KEY,
-a varchar(16) collate utf8mb4_unicode_ci NOT NULL default '',
-b int,
-f varchar(128) default 'XXX',
-INDEX (a(4))
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-INSERT INTO t1(id, a, b) VALUES
-(1, 'cccc', 50), (2, 'cccc', 70), (3, 'cccc', 30),
-(4, 'cccc', 30), (5, 'cccc', 20), (6, 'bbbbbb', 40),
-(7, 'dddd', 30), (8, 'aaaa', 10), (9, 'aaaa', 50),
-(10, 'eeeee', 40), (11, 'bbbbbb', 60);
-SELECT id, a, b FROM t1;
-id a b
-1 cccc 50
-2 cccc 70
-3 cccc 30
-4 cccc 30
-5 cccc 20
-6 bbbbbb 40
-7 dddd 30
-8 aaaa 10
-9 aaaa 50
-10 eeeee 40
-11 bbbbbb 60
-SELECT id, a, b FROM t1 WHERE a BETWEEN 'aaaa' AND 'bbbbbb';
-id a b
-8 aaaa 10
-9 aaaa 50
-6 bbbbbb 40
-11 bbbbbb 60
-SELECT id, a FROM t1 WHERE a='bbbbbb';
-id a
-6 bbbbbb
-11 bbbbbb
-SELECT id, a FROM t1 WHERE a='bbbbbb' ORDER BY b;
-id a
-6 bbbbbb
-11 bbbbbb
-DROP TABLE t1;
-SET NAMES utf8mb4;
-CREATE TABLE t1 (
-a CHAR(13) DEFAULT '',
-INDEX(a)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES
-('Käli Käli 2-4'), ('Käli Käli 2-4'),
-('Käli Käli 2+4'), ('Käli Käli 2+4'),
-('Käli Käli 2-6'), ('Käli Käli 2-6');
-INSERT INTO t1 SELECT * FROM t1;
-CREATE TABLE t2 (
-a CHAR(13) DEFAULT '',
-INDEX(a)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO t2 VALUES
-('Kali Kali 2-4'), ('Kali Kali 2-4'),
-('Kali Kali 2+4'), ('Kali Kali 2+4'),
-('Kali Kali 2-6'), ('Kali Kali 2-6');
-INSERT INTO t2 SELECT * FROM t2;
-SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
-a
-Käli Käli 2+4
-Käli Käli 2+4
-Käli Käli 2+4
-Käli Käli 2+4
-SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
-a
-Kali Kali 2+4
-Kali Kali 2+4
-Kali Kali 2+4
-Kali Kali 2+4
-EXPLAIN SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 53 NULL 4 Using where; Using index
-EXPLAIN SELECT a FROM t1 WHERE a = 'Käli Käli 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 53 const 4 Using where; Using index
-EXPLAIN SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 14 NULL 4 Using where; Using index
-EXPLAIN SELECT a FROM t2 WHERE a = 'Kali Kali 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref a a 14 const 4 Using where; Using index
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-a char(255) DEFAULT '',
-KEY(a(10))
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-DROP TABLE t1;
-CREATE TABLE t1 (
-a char(255) DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-ALTER TABLE t1 ADD KEY (a(10));
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-DROP TABLE t1;
-SET NAMES latin2;
-CREATE TABLE t1 (
-id int(11) NOT NULL default '0',
-tid int(11) NOT NULL default '0',
-val text NOT NULL,
-INDEX idx(tid, val(10))
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
-INSERT INTO t1 VALUES
-(40988,72,'VOLNÝ ADSL'),(41009,72,'VOLNÝ ADSL'),
-(41032,72,'VOLNÝ ADSL'),(41038,72,'VOLNÝ ADSL'),
-(41063,72,'VOLNÝ ADSL'),(41537,72,'VOLNÝ ADSL Office'),
-(42141,72,'VOLNÝ ADSL'),(42565,72,'VOLNÝ ADSL Combi'),
-(42749,72,'VOLNÝ ADSL'),(44205,72,'VOLNÝ ADSL');
-SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNY ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNÝ ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-SELECT * FROM t1 WHERE tid=72 and val LIKE '%VOLNÝ ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-ALTER TABLE t1 DROP KEY idx;
-ALTER TABLE t1 ADD KEY idx (tid,val(11));
-SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNÝ ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-DROP TABLE t1;
-create table t1(a char(200) collate utf8mb4_unicode_ci NOT NULL default '')
-default charset=utf8mb4 collate=utf8mb4_unicode_ci;
-insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65'));
-explain select distinct a from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary
-select distinct a from t1;
-a
-e
-explain select a from t1 group by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
-select a from t1 group by a;
-a
-e
-drop table t1;
-create table t1(a char(10)) default charset utf8mb4;
-insert into t1 values ('123'), ('456');
-explain
-select substr(Z.a,-1), Z.a from t1 as Y join t1 as Z on Y.a=Z.a order by 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Y ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-1 SIMPLE Z ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-select substr(Z.a,-1), Z.a from t1 as Y join t1 as Z on Y.a=Z.a order by 1;
-substr(Z.a,-1) a
-3 123
-6 456
-drop table t1;
-SET CHARACTER SET utf8mb4;
-SHOW VARIABLES LIKE 'character\_set\_%';
-Variable_name Value
-character_set_client utf8mb4
-character_set_connection latin1
-character_set_database latin1
-character_set_filesystem binary
-character_set_results utf8mb4
-character_set_server latin1
-character_set_system utf8
-CREATE DATABASE crashtest DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
-USE crashtest;
-CREATE TABLE crashtest (crash char(10)) DEFAULT CHARSET=utf8mb4;
-INSERT INTO crashtest VALUES ('35'), ('36'), ('37');
-SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8mb4);
-crash
-35
-36
-37
-INSERT INTO crashtest VALUES ('-1000');
-EXPLAIN SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8mb4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE crashtest ALL NULL NULL NULL NULL 4 Using filesort
-SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8mb4);
-crash
--1000
-35
-36
-37
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FFFFFC'
-DROP TABLE crashtest;
-DROP DATABASE crashtest;
-USE test;
-SET CHARACTER SET default;
-CREATE TABLE t1(id varchar(20) NOT NULL) DEFAULT CHARSET=utf8mb4;
-INSERT INTO t1 VALUES ('xxx'), ('aa'), ('yyy'), ('aa');
-SELECT id FROM t1;
-id
-xxx
-aa
-yyy
-aa
-SELECT DISTINCT id FROM t1;
-id
-xxx
-aa
-yyy
-SELECT DISTINCT id FROM t1 ORDER BY id;
-id
-aa
-xxx
-yyy
-DROP TABLE t1;
-create table t1 (
-a varchar(26) not null
-) default character set utf8mb4;
-insert into t1 (a) values ('abcdefghijklmnopqrstuvwxyz');
-select * from t1;
-a
-abcdefghijklmnopqrstuvwxyz
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(20) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghijklmnopqrst
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a char(15) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghijklmno
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a char(10) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghij
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(5) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcde
-drop table t1;
-create table t1 (
-a varchar(4000) not null
-) default character set utf8mb4;
-insert into t1 values (repeat('a',4000));
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(3000) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select length(a) from t1;
-length(a)
-3000
-drop table t1;
-set names utf8mb4;
-select hex(char(1 using utf8mb4));
-hex(char(1 using utf8mb4))
-01
-select char(0xd1,0x8f using utf8mb4);
-char(0xd1,0x8f using utf8mb4)
-select char(0xd18f using utf8mb4);
-char(0xd18f using utf8mb4)
-select char(53647 using utf8mb4);
-char(53647 using utf8mb4)
-select char(0xff,0x8f using utf8mb4);
-char(0xff,0x8f using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF8F'
-select convert(char(0xff,0x8f) using utf8mb4);
-convert(char(0xff,0x8f) using utf8mb4)
-??
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF\x8F'
-set sql_mode=traditional;
-select char(0xff,0x8f using utf8mb4);
-char(0xff,0x8f using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF8F'
-select char(195 using utf8mb4);
-char(195 using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'C3'
-select char(196 using utf8mb4);
-char(196 using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'C4'
-select char(2557 using utf8mb4);
-char(2557 using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FD'
-select convert(char(0xff,0x8f) using utf8mb4);
-convert(char(0xff,0x8f) using utf8mb4)
-??
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF\x8F'
-select hex(convert(char(2557 using latin1) using utf8mb4));
-hex(convert(char(2557 using latin1) using utf8mb4))
-09C3BD
-select hex(char(195));
-hex(char(195))
-C3
-select hex(char(196));
-hex(char(196))
-C4
-select hex(char(2557));
-hex(char(2557))
-09FD
-set names utf8mb4;
-create table t1 (a char(1)) default character set utf8mb4;
-create table t2 (a char(1)) default character set utf8mb4;
-insert into t1 values('a'),('a'),(0xE38182),(0xE38182);
-insert into t1 values('i'),('i'),(0xE38184),(0xE38184);
-select * from t1 union distinct select * from t2;
-a
-a
-ã‚
-i
-ã„
-drop table t1,t2;
-set names utf8mb4;
-create table t1 (a char(10), b varchar(10));
-insert into t1 values ('bar','kostja');
-insert into t1 values ('kostja','bar');
-prepare my_stmt from "select * from t1 where a=?";
-set @a:='bar';
-execute my_stmt using @a;
-a b
-bar kostja
-set @a:='kostja';
-execute my_stmt using @a;
-a b
-kostja bar
-set @a:=null;
-execute my_stmt using @a;
-a b
-drop table if exists t1;
-drop table if exists t1;
-drop view if exists v1, v2;
-set names utf8mb4;
-create table t1(col1 varchar(12) character set utf8mb4 collate utf8mb4_unicode_ci);
-insert into t1 values('t1_val');
-create view v1 as select 'v1_val' as col1;
-select coercibility(col1), collation(col1) from v1;
-coercibility(col1) collation(col1)
-4 utf8mb4_general_ci
-create view v2 as select col1 from v1 union select col1 from t1;
-select coercibility(col1), collation(col1)from v2;
-coercibility(col1) collation(col1)
-2 utf8mb4_unicode_ci
-2 utf8mb4_unicode_ci
-drop view v1, v2;
-create view v1 as select 'v1_val' collate utf8mb4_swedish_ci as col1;
-select coercibility(col1), collation(col1) from v1;
-coercibility(col1) collation(col1)
-0 utf8mb4_swedish_ci
-create view v2 as select col1 from v1 union select col1 from t1;
-select coercibility(col1), collation(col1) from v2;
-coercibility(col1) collation(col1)
-0 utf8mb4_swedish_ci
-0 utf8mb4_swedish_ci
-drop view v1, v2;
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int);
-insert into t1 values ('a',1);
-select concat(a, if(b>10, N'x', N'y')) from t1;
-concat(a, if(b>10, N'x', N'y'))
-ay
-select concat(a, if(b>10, N'æ', N'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int);
-insert into t1 values ('a',1);
-select concat(a, if(b>10, _utf8mb4'x', _utf8mb4'y')) from t1;
-concat(a, if(b>10, _utf8mb4'x', _utf8mb4'y'))
-ay
-select concat(a, if(b>10, _utf8mb4'æ', _utf8mb4'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int);
-insert into t1 values ('a',1);
-select concat(a, if(b>10, _utf8mb4 0x78, _utf8mb4 0x79)) from t1;
-concat(a, if(b>10, _utf8mb4 0x78, _utf8mb4 0x79))
-ay
-select concat(a, if(b>10, _utf8mb4 0xC3A6, _utf8mb4 0xC3AF)) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int);
-insert into t1 values ('a',1);
-select concat(a, if(b>10, 'x' 'x', 'y' 'y')) from t1;
-concat(a, if(b>10, 'x' 'x', 'y' 'y'))
-ayy
-select concat(a, if(b>10, 'x' 'æ', 'y' 'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-CREATE TABLE t1 (
-colA int(11) NOT NULL,
-colB varchar(255) character set utf8mb4 NOT NULL,
-PRIMARY KEY (colA)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t1 (colA, colB) VALUES (1, 'foo'), (2, 'foo bar');
-CREATE TABLE t2 (
-colA int(11) NOT NULL,
-colB varchar(255) character set utf8mb4 NOT NULL,
-KEY bad (colA,colB(3))
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t2 (colA, colB) VALUES (1, 'foo'),(2, 'foo bar');
-SELECT * FROM t1 JOIN t2 ON t1.colA=t2.colA AND t1.colB=t2.colB
-WHERE t1.colA < 3;
-colA colB colA colB
-1 foo 1 foo
-2 foo bar 2 foo bar
-DROP TABLE t1, t2;
-SELECT 'н1234567890' UNION SELECT _binary '1';
-н1234567890
-н1234567890
-1
-SELECT 'н1234567890' UNION SELECT 1;
-н1234567890
-н1234567890
-1
-SELECT '1' UNION SELECT 'н1234567890';
-1
-1
-н1234567890
-SELECT 1 UNION SELECT 'н1234567890';
-1
-1
-н1234567890
-CREATE TABLE t1 (c VARCHAR(11)) CHARACTER SET utf8mb4;
-CREATE TABLE t2 (b CHAR(1) CHARACTER SET binary, i INT);
-INSERT INTO t1 (c) VALUES ('н1234567890');
-INSERT INTO t2 (b, i) VALUES ('1', 1);
-SELECT c FROM t1 UNION SELECT b FROM t2;
-c
-н1234567890
-1
-SELECT c FROM t1 UNION SELECT i FROM t2;
-c
-н1234567890
-1
-SELECT b FROM t2 UNION SELECT c FROM t1;
-b
-1
-н1234567890
-SELECT i FROM t2 UNION SELECT c FROM t1;
-i
-1
-н1234567890
-DROP TABLE t1, t2;
-set sql_mode=traditional;
-select hex(char(0xFF using utf8mb4));
-hex(char(0xFF using utf8mb4))
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF'
-select hex(convert(0xFF using utf8mb4));
-hex(convert(0xFF using utf8mb4))
-3F
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF'
-select hex(_utf8mb4 0x616263FF);
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 B'001111111111');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select (_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-set sql_mode=default;
-select hex(char(0xFF using utf8mb4));
-hex(char(0xFF using utf8mb4))
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF'
-select hex(convert(0xFF using utf8mb4));
-hex(convert(0xFF using utf8mb4))
-3F
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF'
-select hex(_utf8mb4 0x616263FF);
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 B'001111111111');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select (_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL);
-INSERT INTO t1 VALUES (70000, 1092), (70001, 1085), (70002, 1065);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70002 1065
-70001 1085
-70000 1092
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-ALTER TABLE t1 ADD UNIQUE (b);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70002 1065
-70001 1085
-70000 1092
-DROP INDEX b ON t1;
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70002 1065
-70001 1085
-70000 1092
-ALTER TABLE t1 ADD INDEX (b);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) from t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70002 1065
-70001 1085
-70000 1092
-DROP TABLE t1;
-#
-# Bug#26474: Add Sinhala script (Sri Lanka) collation to MySQL
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-predicted_order int NOT NULL,
-utf8mb4_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb4;
-INSERT INTO t1 VALUES (19, x'E0B696'), (30, x'E0B69AE0B798'), (61, x'E0B6AF'), (93, x'E0B799'), (52, x'E0B6A6'), (73, x'E0B6BBE0B78AE2808D'), (3, x'E0B686'), (56, x'E0B6AA'), (55, x'E0B6A9'), (70, x'E0B6B9'), (94, x'E0B79A'), (80, x'E0B785'), (25, x'E0B69AE0B791'), (48, x'E0B6A2'), (13, x'E0B690'), (86, x'E0B793'), (91, x'E0B79F'), (81, x'E0B786'), (79, x'E0B784'), (14, x'E0B691'), (99, x'E0B78A'), (8, x'E0B68B'), (68, x'E0B6B7'), (22, x'E0B69A'), (16, x'E0B693'), (33, x'E0B69AE0B7B3'), (38, x'E0B69AE0B79D'), (21, x'E0B683'), (11, x'E0B68E'), (77, x'E0B782'), (40, x'E0B69AE0B78A'), (101, x'E0B78AE2808DE0B6BB'), (35, x'E0B69AE0B79A'), (1, x'E0B7B4'), (9, x'E0B68C'), (96, x'E0B79C'), (6, x'E0B689'), (95, x'E0B79B'), (88, x'E0B796'), (64, x'E0B6B3'), (26, x'E0B69AE0B792'), (82, x'E0B78F'), (28, x'E0B69AE0B794'), (39, x'E0B69AE0B79E'), (97, x'E0B79D'), (2, x'E0B685'), (75, x'E0B780'), (34, x'E0B69AE0B799'), (69, x'E0B6B8'), (83, x'E0B790'), (18, x'E0B695'), (90, x'E0B7B2'), (17, x'E0B694'), (72, x'E0B6BB'), (66, x'E0B6B5'), (59, x'E0B6AD'), (44, x'E0B69E'), (15, x'E0B692'), (23, x'E0B69AE0B78F'), (65, x'E0B6B4'), (42, x'E0B69C'), (63, x'E0B6B1'), (85, x'E0B792'), (47, x'E0B6A1'), (49, x'E0B6A3'), (92, x'E0B7B3'), (78, x'E0B783'), (36, x'E0B69AE0B79B'), (4, x'E0B687'), (24, x'E0B69AE0B790'), (87, x'E0B794'), (37, x'E0B69AE0B79C'), (32, x'E0B69AE0B79F'), (29, x'E0B69AE0B796'), (43, x'E0B69D'), (62, x'E0B6B0'), (100, x'E0B78AE2808DE0B6BA'), (60, x'E0B6AE'), (45, x'E0B69F'), (12, x'E0B68F'), (46, x'E0B6A0'), (50, x'E0B6A5'), (51, x'E0B6A4'), (5, x'E0B688'), (76, x'E0B781'), (89, x'E0B798'), (74, x'E0B6BD'), (10, x'E0B68D'), (57, x'E0B6AB'), (71, x'E0B6BA'), (58, x'E0B6AC'), (27, x'E0B69AE0B793'), (54, x'E0B6A8'), (84, x'E0B791'), (31, x'E0B69AE0B7B2'), (98, x'E0B79E'), (53, x'E0B6A7'), (41, x'E0B69B'), (67, x'E0B6B6'), (7, x'E0B68A'), (20, x'E0B682');
-SELECT predicted_order, hex(utf8mb4_encoding) FROM t1 ORDER BY utf8mb4_encoding COLLATE utf8mb4_sinhala_ci;
-predicted_order hex(utf8mb4_encoding)
-1 E0B7B4
-2 E0B685
-3 E0B686
-4 E0B687
-5 E0B688
-6 E0B689
-7 E0B68A
-8 E0B68B
-9 E0B68C
-10 E0B68D
-11 E0B68E
-12 E0B68F
-13 E0B690
-14 E0B691
-15 E0B692
-16 E0B693
-17 E0B694
-18 E0B695
-19 E0B696
-20 E0B682
-21 E0B683
-22 E0B69A
-23 E0B69AE0B78F
-24 E0B69AE0B790
-25 E0B69AE0B791
-26 E0B69AE0B792
-27 E0B69AE0B793
-28 E0B69AE0B794
-29 E0B69AE0B796
-30 E0B69AE0B798
-31 E0B69AE0B7B2
-32 E0B69AE0B79F
-33 E0B69AE0B7B3
-34 E0B69AE0B799
-35 E0B69AE0B79A
-36 E0B69AE0B79B
-37 E0B69AE0B79C
-38 E0B69AE0B79D
-39 E0B69AE0B79E
-40 E0B69AE0B78A
-41 E0B69B
-42 E0B69C
-43 E0B69D
-44 E0B69E
-45 E0B69F
-46 E0B6A0
-47 E0B6A1
-48 E0B6A2
-49 E0B6A3
-50 E0B6A5
-51 E0B6A4
-52 E0B6A6
-53 E0B6A7
-54 E0B6A8
-55 E0B6A9
-56 E0B6AA
-57 E0B6AB
-58 E0B6AC
-59 E0B6AD
-60 E0B6AE
-61 E0B6AF
-62 E0B6B0
-63 E0B6B1
-64 E0B6B3
-65 E0B6B4
-66 E0B6B5
-67 E0B6B6
-68 E0B6B7
-69 E0B6B8
-70 E0B6B9
-71 E0B6BA
-72 E0B6BB
-73 E0B6BBE0B78AE2808D
-74 E0B6BD
-75 E0B780
-76 E0B781
-77 E0B782
-78 E0B783
-79 E0B784
-80 E0B785
-81 E0B786
-82 E0B78F
-83 E0B790
-84 E0B791
-85 E0B792
-86 E0B793
-87 E0B794
-88 E0B796
-89 E0B798
-90 E0B7B2
-91 E0B79F
-92 E0B7B3
-93 E0B799
-94 E0B79A
-95 E0B79B
-96 E0B79C
-97 E0B79D
-98 E0B79E
-99 E0B78A
-100 E0B78AE2808DE0B6BA
-101 E0B78AE2808DE0B6BB
-DROP TABLE t1;
-#
-# Bug#32914 Character sets: illegal characters in utf8mb4 and utf32 columns
-#
-create table t1 (utf8mb4 char(1) character set utf8mb4);
-Testing [F0][90..BF][80..BF][80..BF]
-insert into t1 values (0xF0908080);
-insert into t1 values (0xF0BFBFBF);
-insert ignore into t1 values (0xF08F8080);
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x8F\x80\x80' for column 'utf8mb4' at row 1
-select hex(utf8mb4) from t1 order by binary utf8mb4;
-hex(utf8mb4)
-3F
-F0908080
-F0BFBFBF
-delete from t1;
-Testing [F2..F3][80..BF][80..BF][80..BF]
-insert into t1 values (0xF2808080);
-insert into t1 values (0xF2BFBFBF);
-select hex(utf8mb4) from t1 order by binary utf8mb4;
-hex(utf8mb4)
-F2808080
-F2BFBFBF
-delete from t1;
-Testing [F4][80..8F][80..BF][80..BF]
-insert into t1 values (0xF4808080);
-insert into t1 values (0xF48F8080);
-insert ignore into t1 values (0xF4908080);
-Warnings:
-Warning 1366 Incorrect string value: '\xF4\x90\x80\x80' for column 'utf8mb4' at row 1
-select hex(utf8mb4) from t1 order by binary utf8mb4;
-hex(utf8mb4)
-3F
-F4808080
-F48F8080
-drop table t1;
-#
-# Check strnxfrm() with odd length
-#
-set max_sort_length=5;
-select @@max_sort_length;
-@@max_sort_length
-5
-create table t1 (a varchar(128) character set utf8mb4 collate utf8mb4_general_ci);
-insert into t1 values ('a'),('b'),('c');
-select * from t1 order by a;
-a
-a
-b
-c
-alter table t1 modify a varchar(128) character set utf8mb4 collate utf8mb4_bin;
-select * from t1 order by a;
-a
-a
-b
-c
-drop table t1;
-set max_sort_length=default;
-#
-# Bug#26180: Can't add columns to tables created with utf8mb4 text indexes
-#
-CREATE TABLE t1 (
-clipid INT NOT NULL,
-Tape TINYTEXT,
-PRIMARY KEY (clipid),
-KEY tape(Tape(255))
-) CHARACTER SET=utf8mb4;
-Warnings:
-Note 1071 Specified key was too long; max key length is 1000 bytes
-ALTER TABLE t1 ADD mos TINYINT DEFAULT 0 AFTER clipid;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `clipid` int(11) NOT NULL,
- `mos` tinyint(4) DEFAULT 0,
- `Tape` tinytext DEFAULT NULL,
- PRIMARY KEY (`clipid`),
- KEY `tape` (`Tape`(250))
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4
-DROP TABLE t1;
-#
-# Testing 4-byte values.
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-u_decimal int NOT NULL,
-utf8mb4_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb4;
-INSERT INTO t1 VALUES (119040, x'f09d8480'),
-# G CLEF
-(119070, x'f09d849e'),
-# HALF NOTE
-(119134, x'f09d859e'),
-# MUSICAL SYMBOL CROIX
-(119247, x'f09d878f'),
-# MATHEMATICAL BOLD ITALIC CAPITAL DELTA
-(120607, x'f09d9c9f'),
-# SANS-SERIF BOLD ITALIC CAPITAL PI
-(120735, x'f09d9e9f'),
-# <Plane 16 Private Use, Last> (last 4 byte character)
-(1114111, x'f48fbfbf'),
-# VARIATION SELECTOR-256
-(917999, x'f3a087af');
-INSERT INTO t1 VALUES (119070, x'f09d849ef09d859ef09d859ef09d8480f09d859ff09d859ff09d859ff09d85a0f09d85a0f09d8480');
-INSERT INTO t1 VALUES (65131, x'efb9abf09d849ef09d859ef09d859ef09d8480f09d859fefb9abefb9abf09d85a0efb9ab');
-INSERT IGNORE INTO t1 VALUES (119070, x'f09d849ef09d859ef09d859ef09d8480f09d859ff09d859ff09d859ff09d85a0f09d85a0f09d8480f09d85a0');
-Warnings:
-Warning 1265 Data truncated for column 'utf8mb4_encoding' at row 1
-SELECT u_decimal, hex(utf8mb4_encoding) FROM t1 ORDER BY utf8mb4_encoding COLLATE utf8mb4_general_ci, BINARY utf8mb4_encoding;
-u_decimal hex(utf8mb4_encoding)
-65131 EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9AB
-119040 F09D8480
-119070 F09D849E
-119134 F09D859E
-119247 F09D878F
-120607 F09D9C9F
-120735 F09D9E9F
-917999 F3A087AF
-1114111 F48FBFBF
-119070 F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480
-119070 F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480
-INSERT IGNORE INTO t1 VALUES (1114111, x'f5808080');
-Warnings:
-Warning 1366 Incorrect string value: '\xF5\x80\x80\x80' for column 'utf8mb4_encoding' at row 1
-SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
-table_name= 't1' AND column_name= 'utf8mb4_encoding';
-character_maximum_length character_octet_length
-10 40
-DROP TABLE IF EXISTS t2;
-CREATE TABLE t2 (
-u_decimal int NOT NULL,
-utf8mb3_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb3;
-INSERT INTO t2 VALUES (42856, x'ea9da8');
-INSERT INTO t2 VALUES (65131, x'efb9ab');
-INSERT IGNORE INTO t2 VALUES (1114111, x'f48fbfbf');
-Warnings:
-Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column 'utf8mb3_encoding' at row 1
-SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
-table_name= 't2' AND column_name= 'utf8mb3_encoding';
-character_maximum_length character_octet_length
-10 30
-UPDATE IGNORE t2 SET utf8mb3_encoding= x'f48fbfbd' where u_decimal= 42856;
-Warnings:
-Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBD' for column 'utf8mb3_encoding' at row 1
-UPDATE t2 SET utf8mb3_encoding= _utf8mb4 x'ea9da8' where u_decimal= 42856;
-SELECT HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) FROM t1;
-HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8'))
-F09D8480EA9DA8
-F09D849EEA9DA8
-F09D859EEA9DA8
-F09D878FEA9DA8
-F09D9C9FEA9DA8
-F09D9E9FEA9DA8
-F48FBFBFEA9DA8
-F3A087AFEA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9ABEA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-3F3F3F3FEA9DA8
-SELECT HEX(CONCAT(utf8mb4_encoding, utf8mb3_encoding)) FROM t1,t2;
-HEX(CONCAT(utf8mb4_encoding, utf8mb3_encoding))
-F09D8480EA9DA8
-F09D8480EFB9AB
-F09D84803F3F3F3F
-F09D849EEA9DA8
-F09D849EEFB9AB
-F09D849E3F3F3F3F
-F09D859EEA9DA8
-F09D859EEFB9AB
-F09D859E3F3F3F3F
-F09D878FEA9DA8
-F09D878FEFB9AB
-F09D878F3F3F3F3F
-F09D9C9FEA9DA8
-F09D9C9FEFB9AB
-F09D9C9F3F3F3F3F
-F09D9E9FEA9DA8
-F09D9E9FEFB9AB
-F09D9E9F3F3F3F3F
-F48FBFBFEA9DA8
-F48FBFBFEFB9AB
-F48FBFBF3F3F3F3F
-F3A087AFEA9DA8
-F3A087AFEFB9AB
-F3A087AF3F3F3F3F
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EFB9AB
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D84803F3F3F3F
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9ABEA9DA8
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9ABEFB9AB
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9AB3F3F3F3F
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EFB9AB
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D84803F3F3F3F
-3F3F3F3FEA9DA8
-3F3F3F3FEFB9AB
-3F3F3F3F3F3F3F3F
-SELECT count(*) FROM t1, t2
-WHERE t1.utf8mb4_encoding > t2.utf8mb3_encoding;
-count(*)
-33
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 CONVERT TO CHARACTER SET utf8;
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9D\x84\x80' for column 'utf8mb4_encoding' at row 1
-Warning 1366 Incorrect string value: '\xF0\x9D\x84\x9E' for column 'utf8mb4_encoding' at row 2
-Warning 1366 Incorrect string value: '\xF0\x9D\x85\x9E' for column 'utf8mb4_encoding' at row 3
-Warning 1366 Incorrect string value: '\xF0\x9D\x87\x8F' for column 'utf8mb4_encoding' at row 4
-Warning 1366 Incorrect string value: '\xF0\x9D\x9C\x9F' for column 'utf8mb4_encoding' at row 5
-Warning 1366 Incorrect string value: '\xF0\x9D\x9E\x9F' for column 'utf8mb4_encoding' at row 6
-Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column 'utf8mb4_encoding' at row 7
-Warning 1366 Incorrect string value: '\xF3\xA0\x87\xAF' for column 'utf8mb4_encoding' at row 8
-Warning 1366 Incorrect string value: '\xF0\x9D\x84\x9E\xF0\x9D...' for column 'utf8mb4_encoding' at row 9
-Warning 1366 Incorrect string value: '\xF0\x9D\x84\x9E\xF0\x9D...' for column 'utf8mb4_encoding' at row 10
-Warning 1366 Incorrect string value: '\xF0\x9D\x84\x9E\xF0\x9D...' for column 'utf8mb4_encoding' at row 11
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb4_encoding` varchar(10) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb4_encoding),utf8mb4_encoding FROM t1;
-u_decimal hex(utf8mb4_encoding) utf8mb4_encoding
-119040 3F ?
-119070 3F ?
-119134 3F ?
-119247 3F ?
-120607 3F ?
-120735 3F ?
-1114111 3F ?
-917999 3F ?
-119070 3F3F3F3F3F3F3F3F3F3F ??????????
-65131 EFB9AB3F3F3F3F3FEFB9ABEFB9AB3FEFB9AB ﹫?????﹫﹫?﹫
-119070 3F3F3F3F3F3F3F3F3F3F ??????????
-1114111 3F3F3F3F ????
-ALTER TABLE t2 CONVERT TO CHARACTER SET utf8mb4;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb3_encoding` varchar(10) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4
-SELECT u_decimal,hex(utf8mb3_encoding) FROM t2;
-u_decimal hex(utf8mb3_encoding)
-42856 EA9DA8
-65131 EFB9AB
-1114111 3F3F3F3F
-ALTER TABLE t2 CONVERT TO CHARACTER SET utf8mb3;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb3_encoding` varchar(10) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb3_encoding) FROM t2;
-u_decimal hex(utf8mb3_encoding)
-42856 EA9DA8
-65131 EFB9AB
-1114111 3F3F3F3F
-ALTER TABLE t1 MODIFY utf8mb4_encoding VARCHAR(10) CHARACTER SET utf8mb3;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb4_encoding` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb4_encoding) FROM t1;
-u_decimal hex(utf8mb4_encoding)
-119040 3F
-119070 3F
-119134 3F
-119247 3F
-120607 3F
-120735 3F
-1114111 3F
-917999 3F
-119070 3F3F3F3F3F3F3F3F3F3F
-65131 EFB9AB3F3F3F3F3FEFB9ABEFB9AB3FEFB9AB
-119070 3F3F3F3F3F3F3F3F3F3F
-1114111 3F3F3F3F
-ALTER TABLE t1 MODIFY utf8mb4_encoding VARCHAR(10) CHARACTER SET utf8mb4;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb4_encoding` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb4_encoding) FROM t1;
-u_decimal hex(utf8mb4_encoding)
-119040 3F
-119070 3F
-119134 3F
-119247 3F
-120607 3F
-120735 3F
-1114111 3F
-917999 3F
-119070 3F3F3F3F3F3F3F3F3F3F
-65131 EFB9AB3F3F3F3F3FEFB9ABEFB9AB3FEFB9AB
-119070 3F3F3F3F3F3F3F3F3F3F
-1114111 3F3F3F3F
-ALTER TABLE t2 MODIFY utf8mb3_encoding VARCHAR(10) CHARACTER SET utf8mb4;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb3_encoding` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb3_encoding) FROM t2;
-u_decimal hex(utf8mb3_encoding)
-42856 EA9DA8
-65131 EFB9AB
-1114111 3F3F3F3F
-DROP TABLE IF EXISTS t3;
-CREATE TABLE t3 (
-u_decimal int NOT NULL,
-utf8mb3_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8;
-INSERT INTO t3 SELECT * FROM t1;
-DROP TABLE IF EXISTS t4;
-CREATE TABLE t4 (
-u_decimal int NOT NULL,
-utf8mb4_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb4;
-INSERT INTO t3 SELECT * FROM t2;
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t3;
-DROP TABLE t4;
-#
-# Testing that mixing utf8 and utf8mb4 collations returns utf8mb4
-#
-SELECT CHARSET(CONCAT(_utf8mb4'a',_utf8'b'));
-CHARSET(CONCAT(_utf8mb4'a',_utf8'b'))
-utf8mb4
-CREATE TABLE t1 (utf8mb4 VARCHAR(10) CHARACTER SET utf8mb4 NOT NULL);
-INSERT INTO t1 VALUES (x'ea9da8'),(x'f48fbfbf');
-SELECT CONCAT(utf8mb4, _utf8 x'ea9da8') FROM t1 LIMIT 0;
-CONCAT(utf8mb4, _utf8 x'ea9da8')
-CREATE TABLE t2 (utf8mb3 VARCHAR(10) CHARACTER SET utf8mb3 NOT NULL);
-INSERT INTO t2 VALUES (x'ea9da8');
-SELECT HEX(CONCAT(utf8mb4, utf8mb3)) FROM t1,t2 ORDER BY 1;
-HEX(CONCAT(utf8mb4, utf8mb3))
-EA9DA8EA9DA8
-F48FBFBFEA9DA8
-SELECT CHARSET(CONCAT(utf8mb4, utf8mb3)) FROM t1, t2 LIMIT 1;
-CHARSET(CONCAT(utf8mb4, utf8mb3))
-utf8mb4
-CREATE TEMPORARY TABLE t3 AS SELECT *, concat(utf8mb4,utf8mb3) FROM t1, t2;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TEMPORARY TABLE `t3` (
- `utf8mb4` varchar(10) CHARACTER SET utf8mb4 NOT NULL,
- `utf8mb3` varchar(10) CHARACTER SET utf8 NOT NULL,
- `concat(utf8mb4,utf8mb3)` varchar(20) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TEMPORARY TABLE t3;
-SELECT * FROM t1, t2 WHERE t1.utf8mb4 > t2.utf8mb3;
-utf8mb4 utf8mb3
-ô¿¿ ê¨
-SELECT * FROM t1, t2 WHERE t1.utf8mb4 = t2.utf8mb3;
-utf8mb4 utf8mb3
-ê¨ ê¨
-SELECT * FROM t1, t2 WHERE t1.utf8mb4 < t2.utf8mb3;
-utf8mb4 utf8mb3
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# Check that mixing utf8mb4 with an invalid utf8 constant returns error
-#
-CREATE TABLE t1 (utf8mb4 VARCHAR(10) CHARACTER SET utf8mb4);
-INSERT INTO t1 VALUES (x'f48fbfbf');
-SELECT CONCAT(utf8mb4, _utf8 '¿') FROM t1;
-ERROR HY000: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-SELECT CONCAT('a', _utf8 '¿') FROM t1;
-ERROR HY000: Illegal mix of collations (utf8mb4_general_ci,COERCIBLE) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-DROP TABLE t1;
-#
-# Bug#51675 Server crashes on inserting 4 byte char.
-# after ALTER TABLE to 'utf8mb4'
-#
-SET NAMES utf8;
-CREATE TABLE t1 (
-subject varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci,
-p VARCHAR(15) CHARACTER SET utf8
-) DEFAULT CHARSET=latin1;
-ALTER TABLE t1 ADD INDEX (subject);
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1
-DEFAULT CHARACTER SET utf8,
-MODIFY subject varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
-MODIFY p varchar(255) CHARACTER SET utf8;
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `subject` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `p` varchar(255) DEFAULT NULL,
- KEY `subject` (`subject`(250))
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-INSERT INTO t1(subject) VALUES ('abcd');
-INSERT INTO t1(subject) VALUES(x'f0909080');
-DROP TABLE t1;
-CREATE TABLE t1 (a TEXT CHARACTER SET utf8mb4, FULLTEXT INDEX(a));
-INSERT INTO t1 VALUES (0xF0A08080 /* U+20000 */ );
-DROP TABLE t1;
-#
-# Bug #51676 Server crashes on SELECT, ORDER BY on 'utf8mb4' column
-#
-SET NAMES utf8mb4;
-CREATE TABLE t1 (
-subject varchar(255) character set utf8mb4 collate utf8mb4_unicode_ci,
-p varchar(15) character set utf8mb4
-) DEFAULT CHARSET=latin1;
-INSERT INTO t1(subject) VALUES(0xF0909080);
-INSERT INTO t1(subject) VALUES(0x616263F0909080646566);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `subject` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `p` varchar(15) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1 ORDER BY 1;
-subject p
-abcð€def NULL
-ð€ NULL
-SELECT hex(subject), length(subject), char_length(subject), octet_length(subject) FROM t1 ORDER BY 1;
-hex(subject) length(subject) char_length(subject) octet_length(subject)
-616263F0909080646566 10 7 10
-F0909080 4 1 4
-SELECT subject FROM t1 ORDER BY 1;
-subject
-abcð€def
-ð€
-DROP TABLE t1;
-#
-# Bug#52520 Difference in tinytext utf column metadata
-#
-CREATE TABLE t1 (
-s1 TINYTEXT CHARACTER SET utf8mb4,
-s2 TEXT CHARACTER SET utf8mb4,
-s3 MEDIUMTEXT CHARACTER SET utf8mb4,
-s4 LONGTEXT CHARACTER SET utf8mb4
-);
-SET NAMES utf8mb4, @@character_set_results=NULL;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 255 0 Y 16 0 45
-def test t1 t1 s2 s2 252 65535 0 Y 16 0 45
-def test t1 t1 s3 s3 252 16777215 0 Y 16 0 45
-def test t1 t1 s4 s4 252 4294967295 0 Y 16 0 45
-def HEX(s1) 253 8160 0 Y 0 0 45
-s1 s2 s3 s4 HEX(s1)
-SET NAMES latin1;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 255 0 Y 16 0 8
-def test t1 t1 s2 s2 252 65535 0 Y 16 0 8
-def test t1 t1 s3 s3 252 16777215 0 Y 16 0 8
-def test t1 t1 s4 s4 252 4294967295 0 Y 16 0 8
-def HEX(s1) 253 2040 0 Y 0 0 8
-s1 s2 s3 s4 HEX(s1)
-SET NAMES utf8mb4;
-SELECT *, HEX(s1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 s1 s1 252 1020 0 Y 16 0 45
-def test t1 t1 s2 s2 252 262140 0 Y 16 0 45
-def test t1 t1 s3 s3 252 67108860 0 Y 16 0 45
-def test t1 t1 s4 s4 252 4294967295 0 Y 16 0 45
-def HEX(s1) 253 8160 0 Y 0 0 45
-s1 s2 s3 s4 HEX(s1)
-CREATE TABLE t2 AS SELECT CONCAT(s1) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CONCAT(s1)` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1, t2;
-#
-# Bug#13581962 HIGH MEMORY USAGE ATTEMPT, THEN CRASH WITH LONGTEXT, UNION, USER VARIABLE
-# Bug#14096619 UNABLE TO RESTORE DATABASE DUMP
-#
-CREATE TABLE t1(f1 LONGTEXT CHARACTER SET utf8mb4);
-INSERT INTO t1 VALUES ('a');
-SELECT @a:= CAST(f1 AS SIGNED) FROM t1
-UNION ALL
-SELECT CAST(f1 AS SIGNED) FROM t1;
-@a:= CAST(f1 AS SIGNED)
-0
-0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'a'
-Warning 1292 Truncated incorrect INTEGER value: 'a'
-DROP TABLE t1;
-# End of test for Bug#13581962,Bug#14096619
-#
-# MDEV-9319 ALTER from a bigger to a smaller blob type truncates too much data
-#
-SET NAMES utf8mb4;
-CREATE TABLE t1 (a TEXT CHARACTER SET utf8mb4);
-INSERT INTO t1 VALUES (REPEAT('😎',100));
-SELECT OCTET_LENGTH(a) FROM t1;
-OCTET_LENGTH(a)
-400
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 MODIFY a TINYTEXT CHARACTER SET utf8mb4;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT OCTET_LENGTH(a),a FROM t1;
-OCTET_LENGTH(a) a
-252 😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎
-DROP TABLE t1;
-#
-# MDEV-8402 Bug#77473 Bug#21317406 TRUNCATED DATA WITH SUBQUERY & UTF8
-#
-#
-SET NAMES utf8mb4;
-SELECT length(repeat(_utf8mb4 0xE29883, 21844)) AS data;
-data
-65532
-SELECT length(data) AS len
-FROM ( SELECT repeat(_utf8mb4 0xE29883, 21844) AS data ) AS sub;
-len
-65532
-SELECT length(repeat(_utf8mb4 0xE29883, 21846)) AS data;
-data
-65538
-SELECT length(data) AS len
-FROM ( SELECT repeat(_utf8mb4 0xE29883, 21846) AS data ) AS sub;
-len
-65538
-SELECT LENGTH(data) AS len FROM (SELECT REPEAT('☃', 21844) AS data ) AS sub;
-len
-65532
-SELECT LENGTH(data) AS len FROM (SELECT REPEAT('☃', 21845) AS data ) AS sub;
-len
-65535
-SELECT LENGTH(data) AS len FROM (SELECT REPEAT('☃', 21846) AS data ) AS sub;
-len
-65538
-SELECT LENGTH(data) AS len FROM (SELECT REPEAT('☃', 65535) AS data ) AS sub;
-len
-196605
-SELECT LENGTH(data) AS len FROM (SELECT REPEAT('☃', 65536) AS data ) AS sub;
-len
-196608
-#
-# End of 5.5 tests
-#
-#
-# WL#3664 WEIGHT_STRING
-#
-set names utf8mb4;
-select @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf8mb4 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-0041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0041
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-00410041004100410041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-00410041004100410041
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-004100410041
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-004100410041
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041004100410041004100200020002000200020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-0041004100410041004100200020002000200020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-0041
-select hex(weight_string('A'));
-hex(weight_string('A'))
-0041
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-004100420043
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-00410042
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-004100420043
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-00410042004300200020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-00
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0041
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-004100
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-00410042002000200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-00
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0041
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-004100
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-00410042004300200020002000200020002000200020002000
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-00
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0041
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-004100
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-00410042
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0041004200
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-00410042004300200020002000200020002000200020002000
-select @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-20AC20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-20AC20AC20AC00200020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-20AC20AC00
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-20AC20AC002000200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-20
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-20AC20AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-20AC20AC20
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-20AC20AC20AC00200020002000200020002000200020002000
-select @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-0041
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-0041
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-004100420043
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-00410042
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-004100420043
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-00410042004300200020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-20002000430042004100
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-FFBEFFBDFFBCFFDFFFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFFFDFFFBCFFBDFFBEFF
-set @@collation_connection=utf8mb4_bin;
-select @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-CREATE TABLE t1 AS SELECT 'a' AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-000061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',5) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(15) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a)) FROM t1;
-HEX(WEIGHT_STRING(a))
-000061000061000061000061000061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061000061000061000061000061
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(3)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(3))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(3)))
-000061000061000061
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061000061000061
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT WEIGHT_STRING(a AS CHAR(10)) AS ws FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ws` varbinary(30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-000061000061000061000061000061000020000020000020000020000020
-SELECT HEX(ws) FROM t2;
-HEX(ws)
-000061000061000061000061000061000020000020000020000020000020
-DROP TABLE t2;
-DROP TABLE t1;
-select hex(weight_string('a'));
-hex(weight_string('a'))
-000061
-select hex(weight_string('A'));
-hex(weight_string('A'))
-000041
-select hex(weight_string('abc'));
-hex(weight_string('abc'))
-000061000062000063
-select hex(weight_string('abc' as char(2)));
-hex(weight_string('abc' as char(2)))
-000061000062
-select hex(weight_string('abc' as char(3)));
-hex(weight_string('abc' as char(3)))
-000061000062000063
-select hex(weight_string('abc' as char(5)));
-hex(weight_string('abc' as char(5)))
-000061000062000063000020000020
-select hex(weight_string('abc', 1, 2, 0xC0));
-hex(weight_string('abc', 1, 2, 0xC0))
-00
-select hex(weight_string('abc', 2, 2, 0xC0));
-hex(weight_string('abc', 2, 2, 0xC0))
-0000
-select hex(weight_string('abc', 3, 2, 0xC0));
-hex(weight_string('abc', 3, 2, 0xC0))
-000061
-select hex(weight_string('abc', 4, 2, 0xC0));
-hex(weight_string('abc', 4, 2, 0xC0))
-00006100
-select hex(weight_string('abc', 5, 2, 0xC0));
-hex(weight_string('abc', 5, 2, 0xC0))
-0000610000
-select hex(weight_string('abc',25, 2, 0xC0));
-hex(weight_string('abc',25, 2, 0xC0))
-00006100006200002000002000002000002000002000002000
-select hex(weight_string('abc', 1, 3, 0xC0));
-hex(weight_string('abc', 1, 3, 0xC0))
-00
-select hex(weight_string('abc', 2, 3, 0xC0));
-hex(weight_string('abc', 2, 3, 0xC0))
-0000
-select hex(weight_string('abc', 3, 3, 0xC0));
-hex(weight_string('abc', 3, 3, 0xC0))
-000061
-select hex(weight_string('abc', 4, 3, 0xC0));
-hex(weight_string('abc', 4, 3, 0xC0))
-00006100
-select hex(weight_string('abc', 5, 3, 0xC0));
-hex(weight_string('abc', 5, 3, 0xC0))
-0000610000
-select hex(weight_string('abc',25, 3, 0xC0));
-hex(weight_string('abc',25, 3, 0xC0))
-00006100006200006300002000002000002000002000002000
-select hex(weight_string('abc', 1, 4, 0xC0));
-hex(weight_string('abc', 1, 4, 0xC0))
-00
-select hex(weight_string('abc', 2, 4, 0xC0));
-hex(weight_string('abc', 2, 4, 0xC0))
-0000
-select hex(weight_string('abc', 3, 4, 0xC0));
-hex(weight_string('abc', 3, 4, 0xC0))
-000061
-select hex(weight_string('abc', 4, 4, 0xC0));
-hex(weight_string('abc', 4, 4, 0xC0))
-00006100
-select hex(weight_string('abc', 5, 4, 0xC0));
-hex(weight_string('abc', 5, 4, 0xC0))
-0000610000
-select hex(weight_string('abc',25, 4, 0xC0));
-hex(weight_string('abc',25, 4, 0xC0))
-00006100006200006300002000002000002000002000002000
-select @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-select hex(weight_string(cast(_latin1 0x80 as char)));
-hex(weight_string(cast(_latin1 0x80 as char)))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char)));
-hex(weight_string(cast(_latin1 0x808080 as char)))
-0020AC0020AC0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(2)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(2)))
-0020AC0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(3)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(3)))
-0020AC0020AC0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char) as char(5)));
-hex(weight_string(cast(_latin1 0x808080 as char) as char(5)))
-0020AC0020AC0020AC000020000020
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 2, 0xC0))
-00
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 2, 0xC0))
-0020
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 2, 0xC0))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 2, 0xC0))
-0020AC00
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 2, 0xC0))
-0020AC0020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 2, 0xC0))
-0020AC0020AC00002000002000002000002000002000002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 3, 0xC0))
-00
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 3, 0xC0))
-0020
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 3, 0xC0))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 3, 0xC0))
-0020AC00
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 3, 0xC0))
-0020AC0020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 3, 0xC0))
-0020AC0020AC0020AC00002000002000002000002000002000
-select hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 1, 4, 0xC0))
-00
-select hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 2, 4, 0xC0))
-0020
-select hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 3, 4, 0xC0))
-0020AC
-select hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 4, 4, 0xC0))
-0020AC00
-select hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char), 5, 4, 0xC0))
-0020AC0020
-select hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0));
-hex(weight_string(cast(_latin1 0x808080 as char),25, 4, 0xC0))
-0020AC0020AC0020AC00002000002000002000002000002000
-select @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-select hex(weight_string('a' LEVEL 1));
-hex(weight_string('a' LEVEL 1))
-000061
-select hex(weight_string('A' LEVEL 1));
-hex(weight_string('A' LEVEL 1))
-000041
-select hex(weight_string('abc' LEVEL 1));
-hex(weight_string('abc' LEVEL 1))
-000061000062000063
-select hex(weight_string('abc' as char(2) LEVEL 1));
-hex(weight_string('abc' as char(2) LEVEL 1))
-000061000062
-select hex(weight_string('abc' as char(3) LEVEL 1));
-hex(weight_string('abc' as char(3) LEVEL 1))
-000061000062000063
-select hex(weight_string('abc' as char(5) LEVEL 1));
-hex(weight_string('abc' as char(5) LEVEL 1))
-000061000062000063000020000020
-select hex(weight_string('abc' as char(5) LEVEL 1 REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 REVERSE))
-200000200000630000620000610000
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC))
-FFFF9EFFFF9DFFFF9CFFFFDFFFFFDF
-select hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE));
-hex(weight_string('abc' as char(5) LEVEL 1 DESC REVERSE))
-DFFFFFDFFFFF9CFFFF9DFFFF9EFFFF
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-11343 LOAD DATA INFILE fails to load data with an escape character followed by a multi-byte character
-#
-CREATE TABLE t1 (a TEXT CHARACTER SET utf8mb4);
-LOAD DATA INFILE '../../std_data/loaddata/mdev-11343.txt' INTO TABLE t1 CHARACTER SET utf8mb4;
-SELECT HEX(a) FROM t1;
-HEX(a)
-C3A4
-C3A478
-78C3A4
-78C3A478
-EA99A0
-EA99A078
-78EA99A0
-78EA99A078
-F09F988E
-F09F988E78
-78F09F988E
-78F09F988E78
-DROP TABLE t1;
-#
-# MDEV-6566 Different INSERT behaviour on bad bytes with and without character set conversion
-#
-#
-# This test sets session character set to 3-byte utf8,
-# but then sends a 4-byte sequence (which is wrong for 3-byte utf8).
-# It should be replaced to four question marks: '????' in both columns
-# (i.e. four unknown bytes are replaced to four question marks),
-# then the rest of the string should be stored, so we get 'a ???? b'.
-#
-SET NAMES utf8;
-CREATE TABLE t1 (
-a VARCHAR(32) CHARACTER SET utf8mb4,
-b VARCHAR(32) CHARACTER SET utf8
-);
-INSERT IGNORE INTO t1 SELECT 'a 😠b', 'a 😠b';
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81 b' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81 b' for column 'b' at row 1
-SELECT * FROM t1;
-a b
-a ???? b a ???? b
-DROP TABLE t1;
-#
-# This test sets session character set to 4-byte utf8,
-# then normally sends a 4-byte sequence.
-# It should be stored AS IS into the utf8mb4 column (a),
-# and should be replaced to a single question mark in the utf8 column (b)
-# (i.e. one character that cannot be converted is replaced to one question mark).
-#
-SET NAMES utf8mb4;
-CREATE TABLE t1 (
-a VARCHAR(32) CHARACTER SET utf8mb4,
-b VARCHAR(32) CHARACTER SET utf8
-);
-INSERT IGNORE INTO t1 SELECT 'a 😠b', 'a 😠b';
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81 b' for column 'b' at row 1
-SELECT * FROM t1;
-a b
-a 😠b a ? b
-DROP TABLE t1;
-#
-# MDEV-8949: COLUMN_CREATE unicode name breakage
-#
-SET NAMES utf8mb4;
-SELECT COLUMN_JSON(COLUMN_CREATE(_utf8mb4 0xF09F988E, 1));
-COLUMN_JSON(COLUMN_CREATE(_utf8mb4 0xF09F988E, 1))
-{"😎":1}
-SELECT COLUMN_LIST(COLUMN_CREATE(_utf8mb4 0xF09F988E, 1));
-COLUMN_LIST(COLUMN_CREATE(_utf8mb4 0xF09F988E, 1))
-`😎`
-SELECT COLUMN_GET(COLUMN_CREATE(_utf8mb4 0xF09F988E, 1), _utf8mb4 0xF09F988E
-as int);
-COLUMN_GET(COLUMN_CREATE(_utf8mb4 0xF09F988E, 1), _utf8mb4 0xF09F988E
-as int)
-1
-CREATE TABLE t1 AS SELECT
-COLUMN_LIST(COLUMN_CREATE('a',1)),
-COLUMN_JSON(COLUMN_CREATE('b',1));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `COLUMN_LIST(COLUMN_CREATE('a',1))` longtext CHARACTER SET utf8mb4 DEFAULT NULL,
- `COLUMN_JSON(COLUMN_CREATE('b',1))` longtext CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SET NAMES default;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-6572 "USE dbname" with a bad sequence erroneously connects to a wrong database
-#
-SET NAMES utf8mb4;
-SELECT * FROM `testðŸ˜ðŸ˜test`;
-ERROR HY000: Invalid utf8mb4 character string: 'test\xF0\x9F\x98\x81\xF0\x9F\x98\x81test'
-#
-# MDEV-7231 Field ROUTINE_DEFINITION in INFORMATION_SCHEMA.`ROUTINES` contains broken procedure body when used shielding quotes inside.
-#
-SET NAMES utf8mb4;
-CREATE FUNCTION f1() RETURNS TEXT CHARACTER SET utf8mb4
-RETURN CONCAT('😎','x😎','😎y','x😎y');
-SELECT ROUTINE_DEFINITION FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA='test' AND SPECIFIC_NAME ='f1';
-ROUTINE_DEFINITION
-RETURN CONCAT('?','x?','?y','x?y')
-SELECT body_utf8 FROM mysql.proc WHERE name='f1';
-body_utf8
-RETURN CONCAT('?','x?','?y','x?y')
-DROP FUNCTION f1;
-#
-# End of 10.1 tests
-#
-#
-# End of 10.2 tests
-#
-#
-# MDEV-9842 LOAD DATA INFILE does not work well with a TEXT column when using sjis
-#
-CREATE TABLE t1 (a TEXT CHARACTER SET utf8mb4);
-LOAD DATA INFILE '../../std_data/loaddata/mdev9823.utf8mb4.txt' IGNORE INTO TABLE t1 CHARACTER SET utf8mb4 IGNORE 4 LINES;
-Warnings:
-Warning 1366 Incorrect string value: '\xD0' for column 'a' at row 1
-Warning 1366 Incorrect string value: '\xE1\x80' for column 'a' at row 3
-Warning 1366 Incorrect string value: '\xF0\x9F\x98' for column 'a' at row 5
-Warning 1366 Incorrect string value: '\xF0\x9F\x98' for column 'a' at row 8
-SELECT HEX(a) FROM t1;
-HEX(a)
-3F
-78787831
-3F3F
-78787832
-3F3F3F
-78787833
-F09F988E
-3F3F3F
-DROP TABLE t1;
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8mb4_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8mb4_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8mb4_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8mb4_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041000000000000000000000000000000000000
-0041002000200000000000000000000000000000
-0020004100000000000000000000000000000000
-0020004100200000000000000000000000000000
-0041002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8mb4_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8mb4_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8mb4_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8mb4_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8mb4_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8mb4_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8mb4_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8mb4_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8mb4_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8mb4_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8mb4_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8mb4_general_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8mb4_general_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8mb4_general_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_general_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8mb4_general_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0041000000000000000000000000000000000000
-0041002000200000000000000000000000000000
-0020004100000000000000000000000000000000
-0020004100200000000000000000000000000000
-0041002000200020000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8mb4_general_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8mb4_general_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8mb4_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8mb4_general_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8mb4_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8mb4_general_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8mb4_general_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8mb4_general_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8mb4_general_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8mb4_general_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_general_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_general_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8mb4_general_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_general_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_general_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8mb4_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8mb4_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8mb4_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8mb4_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-000061000000000000000000000000000000000000000000000000000000
-000061000020000020000000000000000000000000000000000000000000
-000020000061000000000000000000000000000000000000000000000000
-000020000061000020000000000000000000000000000000000000000000
-000061000020000020000020000000000000000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8mb4_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8mb4_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8mb4_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8mb4_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8mb4_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8mb4_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8mb4_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8mb4_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8mb4_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8mb4_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8mb4_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8mb4_nopad_bin';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8mb4_nopad_bin NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_nopad_bin
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8mb4_nopad_bin';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_nopad_bin';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8mb4_nopad_bin';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-000061000000000000000000000000000000000000000000000000000000
-000061000020000020000000000000000000000000000000000000000000
-000020000061000000000000000000000000000000000000000000000000
-000020000061000020000000000000000000000000000000000000000000
-000061000020000020000020000000000000000000000000000000000000
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8mb4_nopad_bin' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8mb4_nopad_bin' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8mb4_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8mb4_nopad_bin' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8mb4_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8mb4_nopad_bin' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8mb4_nopad_bin', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8mb4_nopad_bin', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8mb4_nopad_bin', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8mb4_nopad_bin', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_bin';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_nopad_bin';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8mb4_nopad_bin';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_bin';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_nopad_bin';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-#
-# MDEV-10867 PREPARE..EXECUTE is not consistent about non-ASCII characters
-#
-SET NAMES utf8mb4;
-SELECT '😎' AS c;
-c
-😎
-SET @src='SELECT ''😎'' AS c';
-PREPARE stmt FROM @src;
-EXECUTE stmt;
-c
-😎
-EXECUTE IMMEDIATE @src;
-c
-😎
-PREPARE stmt FROM 'SELECT ''😎'' AS c';
-EXECUTE stmt;
-c
-😎
-EXECUTE IMMEDIATE 'SELECT ''😎'' AS c';
-c
-😎
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/ctype_utf8mb4_heap.result b/mysql-test/r/ctype_utf8mb4_heap.result
deleted file mode 100644
index d82ed89be9c..00000000000
--- a/mysql-test/r/ctype_utf8mb4_heap.result
+++ /dev/null
@@ -1,2567 +0,0 @@
-drop table if exists t1,t2;
-#
-# Start of 5.5 tests
-#
-set names utf8mb4;
-select left(_utf8mb4 0xD0B0D0B1D0B2,1);
-left(_utf8mb4 0xD0B0D0B1D0B2,1)
-а
-select right(_utf8mb4 0xD0B0D0B2D0B2,1);
-right(_utf8mb4 0xD0B0D0B2D0B2,1)
-в
-select locate('he','hello');
-locate('he','hello')
-1
-select locate('he','hello',2);
-locate('he','hello',2)
-0
-select locate('lo','hello',2);
-locate('lo','hello',2)
-4
-select locate('HE','hello');
-locate('HE','hello')
-1
-select locate('HE','hello',2);
-locate('HE','hello',2)
-0
-select locate('LO','hello',2);
-locate('LO','hello',2)
-4
-select locate('HE','hello' collate utf8mb4_bin);
-locate('HE','hello' collate utf8mb4_bin)
-0
-select locate('HE','hello' collate utf8mb4_bin,2);
-locate('HE','hello' collate utf8mb4_bin,2)
-0
-select locate('LO','hello' collate utf8mb4_bin,2);
-locate('LO','hello' collate utf8mb4_bin,2)
-0
-select locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D0B1D0B2);
-locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D0B1D0B2)
-2
-select locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2);
-locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2)
-2
-select locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2);
-locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2)
-2
-select locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2 collate utf8mb4_bin);
-locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2 collate utf8mb4_bin)
-0
-select locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2 collate utf8mb4_bin);
-locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2 collate utf8mb4_bin)
-0
-select length(_utf8mb4 0xD0B1), bit_length(_utf8mb4 0xD0B1), char_length(_utf8mb4 0xD0B1);
-length(_utf8mb4 0xD0B1) bit_length(_utf8mb4 0xD0B1) char_length(_utf8mb4 0xD0B1)
-2 16 1
-select 'a' like 'a';
-'a' like 'a'
-1
-select 'A' like 'a';
-'A' like 'a'
-1
-select 'A' like 'a' collate utf8mb4_bin;
-'A' like 'a' collate utf8mb4_bin
-0
-select _utf8mb4 0xD0B0D0B1D0B2 like concat(_utf8mb4'%',_utf8mb4 0xD0B1,_utf8mb4 '%');
-_utf8mb4 0xD0B0D0B1D0B2 like concat(_utf8mb4'%',_utf8mb4 0xD0B1,_utf8mb4 '%')
-1
-select convert(_latin1'Günter André' using utf8mb4) like CONVERT(_latin1'GÜNTER%' USING utf8mb4);
-convert(_latin1'G?nter Andr?' using utf8mb4) like CONVERT(_latin1'G?NTER%' USING utf8mb4)
-1
-select CONVERT(_koi8r'×ÁÓÑ' USING utf8mb4) LIKE CONVERT(_koi8r'÷áóñ' USING utf8mb4);
-CONVERT(_koi8r'????' USING utf8mb4) LIKE CONVERT(_koi8r'????' USING utf8mb4)
-1
-select CONVERT(_koi8r'÷áóñ' USING utf8mb4) LIKE CONVERT(_koi8r'×ÁÓÑ' USING utf8mb4);
-CONVERT(_koi8r'????' USING utf8mb4) LIKE CONVERT(_koi8r'????' USING utf8mb4)
-1
-SELECT 'a' = 'a ';
-'a' = 'a '
-1
-SELECT 'a\0' < 'a';
-'a\0' < 'a'
-1
-SELECT 'a\0' < 'a ';
-'a\0' < 'a '
-1
-SELECT 'a\t' < 'a';
-'a\t' < 'a'
-1
-SELECT 'a\t' < 'a ';
-'a\t' < 'a '
-1
-SELECT 'a' = 'a ' collate utf8mb4_bin;
-'a' = 'a ' collate utf8mb4_bin
-1
-SELECT 'a\0' < 'a' collate utf8mb4_bin;
-'a\0' < 'a' collate utf8mb4_bin
-1
-SELECT 'a\0' < 'a ' collate utf8mb4_bin;
-'a\0' < 'a ' collate utf8mb4_bin
-1
-SELECT 'a\t' < 'a' collate utf8mb4_bin;
-'a\t' < 'a' collate utf8mb4_bin
-1
-SELECT 'a\t' < 'a ' collate utf8mb4_bin;
-'a\t' < 'a ' collate utf8mb4_bin
-1
-CREATE TABLE t1 (a char(10) character set utf8mb4 not null) ENGINE heap;
-INSERT INTO t1 VALUES ('a'),('a\0'),('a\t'),('a ');
-SELECT hex(a),STRCMP(a,'a'), STRCMP(a,'a ') FROM t1;
-hex(a) STRCMP(a,'a') STRCMP(a,'a ')
-61 0 0
-61 0 0
-6100 -1 -1
-6109 -1 -1
-DROP TABLE t1;
-select insert('txs',2,1,'hi'),insert('is ',4,0,'a'),insert('txxxxt',2,4,'es');
-insert('txs',2,1,'hi') insert('is ',4,0,'a') insert('txxxxt',2,4,'es')
-this is test
-select insert("aa",100,1,"b"),insert("aa",1,3,"b");
-insert("aa",100,1,"b") insert("aa",1,3,"b")
-aa b
-select char_length(left(@a:='теÑÑ‚',5)), length(@a), @a;
-char_length(left(@a:='теÑÑ‚',5)) length(@a) @a
-4 8 теÑÑ‚
-create table t1 ENGINE heap select date_format("2004-01-19 10:10:10", "%Y-%m-%d");
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `date_format("2004-01-19 10:10:10", "%Y-%m-%d")` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-select * from t1;
-date_format("2004-01-19 10:10:10", "%Y-%m-%d")
-2004-01-19
-drop table t1;
-set names utf8mb4;
-set LC_TIME_NAMES='fr_FR';
-create table t1 (s1 char(20) character set latin1) engine heap;
-insert into t1 values (date_format('2004-02-02','%M'));
-select hex(s1) from t1;
-hex(s1)
-66E97672696572
-drop table t1;
-create table t1 (s1 char(20) character set koi8r) engine heap;
-set LC_TIME_NAMES='ru_RU';
-insert into t1 values (date_format('2004-02-02','%M'));
-insert into t1 values (date_format('2004-02-02','%b'));
-insert into t1 values (date_format('2004-02-02','%W'));
-insert into t1 values (date_format('2004-02-02','%a'));
-select hex(s1), s1 from t1;
-hex(s1) s1
-E6C5D7 Фев
-E6C5D7D2C1CCD1 ФевралÑ
-F0CEC4 Пнд
-F0CFCEC5C4C5CCD8CEC9CB Понедельник
-drop table t1;
-set LC_TIME_NAMES='en_US';
-set names koi8r;
-create table t1 (s1 char(1) character set utf8mb4) engine heap;
-insert ignore into t1 values (_koi8r'ÁÂ');
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select s1,hex(s1),char_length(s1),octet_length(s1) from t1;
-s1 hex(s1) char_length(s1) octet_length(s1)
-Á D0B0 1 2
-drop table t1;
-create table t1 (s1 varchar(255) character set utf8mb4) engine heap;
-insert ignore into t1 select repeat('a',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ñ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('aÑ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ña',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('ÑÑ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161
-61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61
-D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F
-D18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18F
-D18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18F
-select length(s1),char_length(s1) from t1;
-length(s1) char_length(s1)
-255 255
-382 255
-383 255
-510 255
-510 255
-drop table t1;
-create table t1 (s1 varchar(255) character set utf8mb4) engine heap;
-insert ignore into t1 select repeat('a',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ñ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('aÑ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ña',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('ÑÑ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select length(s1),char_length(s1) from t1;
-length(s1) char_length(s1)
-255 255
-382 255
-383 255
-510 255
-510 255
-drop table t1;
-create table t1 (s1 char(10) character set utf8mb4) engine heap;
-insert ignore into t1 values (0x41FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-413F
-drop table t1;
-create table t1 (s1 varchar(10) character set utf8mb4) engine heap;
-insert ignore into t1 values (0x41FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-413F
-drop table t1;
-CREATE TABLE t1 ( a varchar(10) ) CHARACTER SET utf8mb4 ENGINE heap;
-INSERT INTO t1 VALUES ( 'test' );
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = b.a;
-a a
-test test
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = 'test' and b.a = 'test';
-a a
-test test
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = b.a and a.a = 'test';
-a a
-test test
-DROP TABLE t1;
-create table t1 (a char(255) character set utf8mb4) engine heap;
-insert into t1 values('b'),('b');
-select * from t1 where a = 'b';
-a
-b
-b
-select * from t1 where a = 'b' and a = 'b';
-a
-b
-b
-select * from t1 where a = 'b' and a != 'b';
-a
-drop table t1;
-set names utf8mb4;
-drop table if exists t1;
-create table t1 as
-select repeat(' ', 64) as s1, repeat(' ',64) as s2
-union
-select null, null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL,
- `s2` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-delete from t1;
-insert into t1 values('aaa','aaa');
-insert into t1 values('aaa|qqq','qqq');
-insert into t1 values('gheis','^[^a-dXYZ]+$');
-insert into t1 values('aab','^aa?b');
-insert into t1 values('Baaan','^Ba*n');
-insert into t1 values('aaa','qqq|aaa');
-insert into t1 values('qqq','qqq|aaa');
-insert into t1 values('bbb','qqq|aaa');
-insert into t1 values('bbb','qqq');
-insert into t1 values('aaa','aba');
-insert into t1 values(null,'abc');
-insert into t1 values('def',null);
-insert into t1 values(null,null);
-insert into t1 values('ghi','ghi[');
-select HIGH_PRIORITY s1 regexp s2 from t1;
-s1 regexp s2
-0
-0
-0
-1
-1
-1
-1
-1
-1
-1
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-SELECT @@character_set_client, @@collation_connection;
-@@character_set_client @@collation_connection
-utf8mb4 utf8mb4_general_ci
-select 'ваÑÑ' rlike '\\bваÑÑ\\b';
-'ваÑÑ' rlike '\\bваÑÑ\\b'
-1
-select 'ваÑÑ ' rlike '\\bваÑÑ\\b';
-'ваÑÑ ' rlike '\\bваÑÑ\\b'
-1
-select ' ваÑÑ' rlike '\\bваÑÑ\\b';
-' ваÑÑ' rlike '\\bваÑÑ\\b'
-1
-select ' ваÑÑ ' rlike '\\bваÑÑ\\b';
-' ваÑÑ ' rlike '\\bваÑÑ\\b'
-1
-select 'ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select 'ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select ' ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-' ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select ' ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-' ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select 'ваÑÑz' rlike '\\bваÑÑ\\b';
-'ваÑÑz' rlike '\\bваÑÑ\\b'
-0
-select 'zваÑÑ' rlike '\\bваÑÑ\\b';
-'zваÑÑ' rlike '\\bваÑÑ\\b'
-0
-select 'zваÑÑz' rlike '\\bваÑÑ\\b';
-'zваÑÑz' rlike '\\bваÑÑ\\b'
-0
-select 'ваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-select 'zваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'zваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-select 'zваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'zваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-CREATE TABLE t1 (a enum ('Y', 'N') DEFAULT 'N' COLLATE utf8mb4_unicode_ci) ENGINE heap;
-ALTER TABLE t1 ADD COLUMN b CHAR(20);
-DROP TABLE t1;
-set names utf8mb4;
-create table t1 (a enum('aaaa','проба') character set utf8mb4) engine heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('aaaa','проба') CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-insert into t1 values ('проба');
-select * from t1;
-a
-проба
-create table t2 engine heap select ifnull(a,a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ifnull(a,a)` varchar(5) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-select * from t2;
-ifnull(a,a)
-проба
-drop table t1;
-drop table t2;
-create table t1 (c varchar(30) character set utf8mb4, unique(c(10))) engine heap;
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c varchar(30) character set utf8mb4, unique(c(10))) engine=heap;
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c char(3) character set utf8mb4, unique (c(2))) engine heap;
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (c char(3) character set utf8mb4, unique (c(2))) engine=heap;
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4,
-unique key a using hash (c(1))
-) engine=heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING HASH
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4,
-unique key a using btree (c(1))
-) engine=heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING BTREE
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4,
-unique key a (c(1))
-) engine=heap;
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (c varchar(30) character set utf8mb4 collate utf8mb4_bin, unique(c(10))) engine heap;
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c char(3) character set utf8mb4 collate utf8mb4_bin, unique (c(2))) engine heap;
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4 collate utf8mb4_bin,
-unique key a using hash (c(1))
-) engine=heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING HASH
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4 collate utf8mb4_bin,
-unique key a using btree (c(1))
-) engine=heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING BTREE
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4 collate utf8mb4_bin,
-unique key a (c(1))
-) engine=heap;
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str (str(2))
-) engine=heap;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str (str(2))
-) engine=heap;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str using btree (str(2))
-) engine=heap;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str using hash (str(2))
-) engine=heap;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str (str(2))
-) engine= heap;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-CREATE TABLE t1 (a varchar(32) BINARY) CHARACTER SET utf8mb4 ENGINE heap;
-INSERT INTO t1 VALUES ('test');
-SELECT a FROM t1 WHERE a LIKE '%te';
-a
-DROP TABLE t1;
-SET NAMES utf8mb4;
-CREATE TABLE t1 (
-subject varchar(255) character set utf8mb4 collate utf8mb4_unicode_ci,
-p varchar(15) character set utf8mb4
-) ENGINE= heap DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES ('è°·å·ä¿ŠäºŒã¨ç”³ã—ã¾ã™ãŒã€ã‚¤ãƒ³ã‚¿ãƒ¼ãƒãƒƒãƒˆäºˆç´„ã®ä¼šå“¡ç™»éŒ²ã‚’ã—ã¾ã—ãŸã¨ã“ã‚ã€ãƒ¡ãƒ¼ãƒ«ã‚¢ãƒ‰ãƒ¬ã‚¹ã‚’é–“é•ãˆã¦ã—ã¾ã„会員IDãŒå—ã‘å–ã‚‹ã“ã¨ãŒå‡ºæ¥ã¾ã›ã‚“ã§ã—ãŸã€‚é–“é•ãˆã‚¢ãƒ‰ãƒ¬ã‚¹ã¯tani-shun@n.vodafone.ne.jpを書ãè¾¼ã¿ã¾ã—ãŸã€‚ã©ã†ã™ã‚Œã°ã‚ˆã„ã§ã™ã‹ï¼Ÿ ãã®ä»–ã€ä½æ‰€ç­‰ã¯é–“é•ãˆã‚ã‚Šã¾ã›ã‚“。連絡ãã ã•ã„。よã‚ã—ããŠé¡˜ã„ã—ã¾ã™ã€‚m(__)m','040312-000057');
-INSERT INTO t1 VALUES ('aaa','bbb');
-SELECT length(subject) FROM t1;
-length(subject)
-3
-432
-SELECT length(subject) FROM t1 ORDER BY 1;
-length(subject)
-3
-432
-DROP TABLE t1;
-set names utf8mb4;
-create table t1 (
-a int primary key,
-b varchar(6),
-index b3(b(3))
-) engine=heap character set=utf8mb4;
-insert into t1 values(1,'foo'),(2,'foobar');
-select * from t1 where b like 'foob%';
-a b
-2 foobar
-alter table t1 engine=innodb;
-select * from t1 where b like 'foob%';
-a b
-2 foobar
-drop table t1;
-create table t1 (
-a enum('петÑ','ваÑÑ','анюта') character set utf8mb4 not null default 'анюта',
-b set('петÑ','ваÑÑ','анюта') character set utf8mb4 not null default 'анюта'
-) engine heap;
-create table t2 engine heap select concat(a,_utf8mb4'') as a, concat(b,_utf8mb4'')as b from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(5) CHARACTER SET utf8mb4 DEFAULT NULL,
- `b` varchar(15) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-drop table t2;
-drop table t1;
-select 'c' like '\_' as want0;
-want0
-0
-SELECT SUBSTR('ваÑÑ',-2);
-SUBSTR('ваÑÑ',-2)
-ÑÑ
-create table t1 (id integer, a varchar(100) character set utf8mb4 collate utf8mb4_unicode_ci) engine heap;
-insert into t1 values (1, 'Test');
-select * from t1 where soundex(a) = soundex('Test');
-id a
-1 Test
-select * from t1 where soundex(a) = soundex('TEST');
-id a
-1 Test
-select * from t1 where soundex(a) = soundex('test');
-id a
-1 Test
-drop table t1;
-select soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB);
-soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB)
-阅000
-select hex(soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB));
-hex(soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB))
-E99885303030
-select soundex(_utf8mb4 0xD091D092D093);
-soundex(_utf8mb4 0xD091D092D093)
-Б000
-select hex(soundex(_utf8mb4 0xD091D092D093));
-hex(soundex(_utf8mb4 0xD091D092D093))
-D091303030
-SET collation_connection='utf8mb4_general_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf8mb4_general_ci 6109
-utf8mb4_general_ci 61
-utf8mb4_general_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-"BEGIN ctype_german.inc"
-drop table if exists t1;
-create table t1 as select repeat(' ', 64) as s1;
-select collation(s1) from t1;
-collation(s1)
-utf8mb4_general_ci
-delete from t1;
-INSERT INTO t1 VALUES ('ud'),('uf');
-INSERT INTO t1 VALUES ('od'),('of');
-INSERT INTO t1 VALUES ('e');
-INSERT INTO t1 VALUES ('ad'),('af');
-insert into t1 values ('a'),('ae'),(_latin1 0xE4);
-insert into t1 values ('o'),('oe'),(_latin1 0xF6);
-insert into t1 values ('s'),('ss'),(_latin1 0xDF);
-insert into t1 values ('u'),('ue'),(_latin1 0xFC);
-INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
-INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
-select s1, hex(s1) from t1 order by s1, binary s1;
-s1 hex(s1)
-a 61
-ä C3A4
-ad 6164
-ae 6165
-af 6166
-e 65
-o 6F
-ö C3B6
-od 6F64
-oe 6F65
-of 6F66
-s 73
-ß C39F
-ss 7373
-u 75
-ü C3BC
-ud 7564
-ue 7565
-uf 7566
-Æ C386
-æ C3A6
-Å’ C592
-Å“ C593
-select group_concat(s1 order by binary s1) from t1 group by s1;
-group_concat(s1 order by binary s1)
-a,ä
-ad
-ae
-af
-e
-o,ö
-od
-oe
-of
-s,ß
-ss
-u,ü
-ud
-ue
-uf
-Æ,æ
-Å’,Å“
-SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
-s1 hex(s1) hex(weight_string(s1))
-a 61 0041
-ä C3A4 0041
-ad 6164 00410044
-ae 6165 00410045
-af 6166 00410046
-e 65 0045
-o 6F 004F
-ö C3B6 004F
-od 6F64 004F0044
-oe 6F65 004F0045
-of 6F66 004F0046
-s 73 0053
-ß C39F 0053
-ss 7373 00530053
-u 75 0055
-ü C3BC 0055
-ud 7564 00550044
-ue 7565 00550045
-uf 7566 00550046
-Æ C386 00C6
-æ C3A6 00C6
-Å’ C592 0152
-Å“ C593 0152
-SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
-s1 hex(s1)
-ae 6165
-drop table t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf8mb4 DEFAULT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('s',0),(_latin1 0xDF,1);
-SELECT * FROM t1 ORDER BY a, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY a DESC, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a), b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
-a b
-s 0
-ß 1
-DROP TABLE t1;
-"END ctype_german.inc"
-SET collation_connection='utf8mb4_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf8mb4_bin 6109
-utf8mb4_bin 61
-utf8mb4_bin 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 (
-user varchar(255) NOT NULL default ''
-) ENGINE=heap DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES ('one'),('two');
-SELECT CHARSET('a');
-CHARSET('a')
-utf8mb4
-SELECT user, CONCAT('<', user, '>') AS c FROM t1;
-user c
-one <one>
-two <two>
-DROP TABLE t1;
-create table t1 (f1 varchar(1) not null) default charset utf8mb4 engine heap;
-insert into t1 values (''), ('');
-select concat(concat(_latin1'->',f1),_latin1'<-') from t1;
-concat(concat(_latin1'->',f1),_latin1'<-')
--><-
--><-
-drop table t1;
-select convert(_koi8r'É' using utf8mb4) < convert(_koi8r'Ê' using utf8mb4);
-convert(_koi8r'?' using utf8mb4) < convert(_koi8r'?' using utf8mb4)
-1
-set names latin1;
-create table t1 (a varchar(10)) character set utf8mb4 engine heap;
-insert into t1 values ('test');
-select ifnull(a,'') from t1;
-ifnull(a,'')
-test
-drop table t1;
-select repeat(_utf8mb4'+',3) as h union select NULL;
-h
-+++
-NULL
-select ifnull(NULL, _utf8mb4'string');
-ifnull(NULL, _utf8mb4'string')
-string
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_lithuanian_ci) engine heap;
-insert into t1 values ('I'),('K'),('Y');
-select * from t1 where s1 < 'K' and s1 = 'Y';
-s1
-I
-Y
-select * from t1 where 'K' > s1 and s1 = 'Y';
-s1
-I
-Y
-drop table t1;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_czech_ci) engine heap;
-insert into t1 values ('c'),('d'),('h'),('ch'),('CH'),('cH'),('Ch'),('i');
-select * from t1 where s1 > 'd' and s1 = 'CH';
-s1
-CH
-Ch
-ch
-select * from t1 where 'd' < s1 and s1 = 'CH';
-s1
-CH
-Ch
-ch
-select * from t1 where s1 = 'cH' and s1 <> 'ch';
-s1
-cH
-select * from t1 where 'cH' = s1 and s1 <> 'ch';
-s1
-cH
-drop table t1;
-create table t1 (a varchar(255)) default character set utf8mb4 engine heap;
-insert into t1 values (1.0);
-drop table t1;
-create table t1 (
-id int not null,
-city varchar(20) not null,
-key (city(7),id)
-) character set=utf8mb4 engine heap;
-insert into t1 values (1,'Durban North');
-insert into t1 values (2,'Durban');
-select * from t1 where city = 'Durban';
-id city
-2 Durban
-select * from t1 where city = 'Durban ';
-id city
-2 Durban
-drop table t1;
-create table t1 (x set('A', 'B') default 0) character set utf8mb4 engine heap;
-ERROR 42000: Invalid default value for 'x'
-create table t1 (x enum('A', 'B') default 0) character set utf8mb4 engine heap;
-ERROR 42000: Invalid default value for 'x'
-SET NAMES UTF8;
-CREATE TABLE t1 (
-`id` int(20) NOT NULL auto_increment,
-`country` varchar(100) NOT NULL default '',
-`shortcode` varchar(100) NOT NULL default '',
-`operator` varchar(100) NOT NULL default '',
-`momid` varchar(30) NOT NULL default '',
-`keyword` varchar(160) NOT NULL default '',
-`content` varchar(160) NOT NULL default '',
-`second_token` varchar(160) default NULL,
-`gateway_id` int(11) NOT NULL default '0',
-`created` datetime NOT NULL default '0000-00-00 00:00:00',
-`msisdn` varchar(15) NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `MSCCSPK_20030521130957121` (`momid`),
-KEY `IX_mobile_originated_message_keyword` (`keyword`),
-KEY `IX_mobile_originated_message_created` (`created`),
-KEY `IX_mobile_originated_message_support` (`msisdn`,`momid`,`keyword`,`gateway_id`,`created`)
-) ENGINE=heap DEFAULT CHARSET=utf8mb4;
-INSERT INTO t1 VALUES
-(1,'blah','464','aaa','fkc1c9ilc20x0hgae7lx6j09','ERR','ERR Имри.Ðфимим.Ðеимимримдмримрмрирор имримримримр имридм ирбднримрфмририримрфмфмим.Ðд.Д имдимримрад.Ðдимримримрмдиримримримр м.Дадимфшьмримд им.Ðдимимрн имадми','ИМРИ.ÐФИМИМ.ÐЕИМИМРИМДМРИМРМРИРОР',3,'2005-06-01 17:30:43','1234567890'),
-(2,'blah','464','aaa','haxpl2ilc20x00bj4tt2m5ti','11','11 g','G',3,'2005-06-02 22:43:10','1234567890');
-CREATE TABLE t2 (
-`msisdn` varchar(15) NOT NULL default '',
-`operator_id` int(11) NOT NULL default '0',
-`created` datetime NOT NULL default '0000-00-00 00:00:00',
-UNIQUE KEY `PK_user` (`msisdn`)
-) ENGINE=heap DEFAULT CHARSET=utf8mb4;
-INSERT INTO t2 VALUES ('1234567890',2,'2005-05-24 13:53:25');
-SELECT content, t2.msisdn FROM t1, t2 WHERE t1.msisdn = '1234567890';
-content msisdn
-ERR Имри.Ðфимим.Ðеимимримдмримрмрирор имримримримр имридм ирбднримрфмририримрфмфмим.Ðд.Д имдимримрад.Ðдимримримрмдиримримримр м.Дадимфшьмримд им.Ðдимимрн имадми 1234567890
-11 g 1234567890
-DROP TABLE t1,t2;
-create table t1 (a char(20) character set utf8mb4) engine heap;
-insert into t1 values ('123456'),('андрей');
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 modify a char(2) character set utf8mb4;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-Warning 1265 Data truncated for column 'a' at row 2
-select char_length(a), length(a), a from t1 order by a;
-char_length(a) length(a) a
-2 2 12
-2 4 ан
-drop table t1;
-set names utf8mb4;
-select 'andre%' like 'andreñ%' escape 'ñ';
-'andre%' like 'andreñ%' escape 'ñ'
-1
-set names utf8mb4;
-select 'a\\' like 'a\\';
-'a\\' like 'a\\'
-1
-select 'aa\\' like 'a%\\';
-'aa\\' like 'a%\\'
-1
-create table t1 (a char(10), key(a)) character set utf8mb4 engine heap;
-insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
-select * from t1 where a like "abc%";
-a
-abc
-abcd
-select * from t1 where a like concat("abc","%");
-a
-abc
-abcd
-select * from t1 where a like "ABC%";
-a
-abc
-abcd
-select * from t1 where a like "test%";
-a
-test
-select * from t1 where a like "te_t";
-a
-test
-select * from t1 where a like "%a%";
-a
-a
-abc
-abcd
-select * from t1 where a like "%abcd%";
-a
-abcd
-select * from t1 where a like "%abc\d%";
-a
-abcd
-drop table t1;
-CREATE TABLE t1 (
-a varchar(255) NOT NULL default '',
-KEY a (a)
-) ENGINE=heap DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;
-insert into t1 values (_utf8mb4 0xe880bd);
-insert into t1 values (_utf8mb4 0x5b);
-select hex(a) from t1;
-hex(a)
-5B
-E880BD
-drop table t1;
-set names 'latin1';
-create table t1 (a varchar(255)) default charset=utf8mb4 engine heap;
-select * from t1 where find_in_set('-1', a);
-a
-drop table t1;
-create table t1 (a int) engine heap;
-insert into t1 values (48),(49),(50);
-set names utf8mb4;
-select distinct char(a) from t1;
-char(a)
-0
-1
-2
-drop table t1;
-CREATE TABLE t1 (item varchar(255)) default character set utf8mb4 ENGINE heap;
-INSERT INTO t1 VALUES (N'\\');
-INSERT INTO t1 VALUES (_utf8mb4'\\');
-INSERT INTO t1 VALUES (N'Cote d\'Ivoire');
-INSERT INTO t1 VALUES (_utf8mb4'Cote d\'Ivoire');
-SELECT item FROM t1 ORDER BY item;
-item
-Cote d'Ivoire
-Cote d'Ivoire
-\
-\
-DROP TABLE t1;
-SET NAMES utf8mb4;
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1(a VARCHAR(255), KEY(a)) ENGINE=heap DEFAULT CHARSET=utf8mb4;
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
-INSERT INTO t1 VALUES('uu');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check note The storage engine for the table doesn't support check
-INSERT INTO t1 VALUES('uU');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check note The storage engine for the table doesn't support check
-INSERT INTO t1 VALUES('uu');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check note The storage engine for the table doesn't support check
-INSERT INTO t1 VALUES('uuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check note The storage engine for the table doesn't support check
-INSERT INTO t1 VALUES('UuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check note The storage engine for the table doesn't support check
-INSERT INTO t1 VALUES('uuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check note The storage engine for the table doesn't support check
-alter table t1 add b int;
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',1);
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',2);
-delete from t1 where b=1;
-INSERT INTO t1 VALUES('UUABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',1);
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check note The storage engine for the table doesn't support check
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',3);
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',4);
-delete from t1 where b=3;
-INSERT INTO t1 VALUES('uUABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',3);
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check note The storage engine for the table doesn't support check
-drop table t1;
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4) engine heap;
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_general_ci from t1 where s1 like 'ペテ%';
-before_delete_general_ci
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_general_ci from t1 where s1 like 'ペテ%';
-after_delete_general_ci
-ペテルグル
-drop table t1;
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_unicode_ci) engine heap;
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_unicode_ci from t1 where s1 like 'ペテ%';
-before_delete_unicode_ci
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_unicode_ci from t1 where s1 like 'ペテ%';
-after_delete_unicode_ci
-ペテルグル
-drop table t1;
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_bin) engine heap;
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_bin from t1 where s1 like 'ペテ%';
-before_delete_bin
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_bin from t1 where s1 like 'ペテ%';
-after_delete_bin
-ペテルグル
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(30) not null primary key)
-engine=heap default character set utf8mb4 collate utf8mb4_general_ci;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as gci1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-gci1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as gci2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-gci2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(30) not null primary key)
-engine=heap default character set utf8mb4 collate utf8mb4_unicode_ci;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as uci1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-uci1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as uci2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-uci2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(30) not null primary key)
-engine=heap default character set utf8mb4 collate utf8mb4_bin;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as bin1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-bin1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as bin2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-bin2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-SET NAMES utf8mb4;
-CREATE TABLE t1 (id int PRIMARY KEY,
-a varchar(16) collate utf8mb4_unicode_ci NOT NULL default '',
-b int,
-f varchar(128) default 'XXX',
-INDEX (a(4))
-) ENGINE=heap DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-INSERT INTO t1(id, a, b) VALUES
-(1, 'cccc', 50), (2, 'cccc', 70), (3, 'cccc', 30),
-(4, 'cccc', 30), (5, 'cccc', 20), (6, 'bbbbbb', 40),
-(7, 'dddd', 30), (8, 'aaaa', 10), (9, 'aaaa', 50),
-(10, 'eeeee', 40), (11, 'bbbbbb', 60);
-SELECT id, a, b FROM t1;
-id a b
-1 cccc 50
-10 eeeee 40
-11 bbbbbb 60
-2 cccc 70
-3 cccc 30
-4 cccc 30
-5 cccc 20
-6 bbbbbb 40
-7 dddd 30
-8 aaaa 10
-9 aaaa 50
-SELECT id, a, b FROM t1 WHERE a BETWEEN 'aaaa' AND 'bbbbbb';
-id a b
-11 bbbbbb 60
-6 bbbbbb 40
-8 aaaa 10
-9 aaaa 50
-SELECT id, a FROM t1 WHERE a='bbbbbb';
-id a
-11 bbbbbb
-6 bbbbbb
-SELECT id, a FROM t1 WHERE a='bbbbbb' ORDER BY b;
-id a
-6 bbbbbb
-11 bbbbbb
-DROP TABLE t1;
-SET NAMES utf8mb4;
-CREATE TABLE t1 (
-a CHAR(13) DEFAULT '',
-INDEX(a)
-) ENGINE=heap DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES
-('Käli Käli 2-4'), ('Käli Käli 2-4'),
-('Käli Käli 2+4'), ('Käli Käli 2+4'),
-('Käli Käli 2-6'), ('Käli Käli 2-6');
-INSERT INTO t1 SELECT * FROM t1;
-CREATE TABLE t2 (
-a CHAR(13) DEFAULT '',
-INDEX(a)
-) ENGINE=heap DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO t2 VALUES
-('Kali Kali 2-4'), ('Kali Kali 2-4'),
-('Kali Kali 2+4'), ('Kali Kali 2+4'),
-('Kali Kali 2-6'), ('Kali Kali 2-6');
-INSERT INTO t2 SELECT * FROM t2;
-SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
-a
-Käli Käli 2+4
-Käli Käli 2+4
-Käli Käli 2+4
-Käli Käli 2+4
-SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
-a
-Kali Kali 2+4
-Kali Kali 2+4
-Kali Kali 2+4
-Kali Kali 2+4
-EXPLAIN SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a NULL NULL NULL 12 Using where
-EXPLAIN SELECT a FROM t1 WHERE a = 'Käli Käli 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 53 const 4 Using where
-EXPLAIN SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL a NULL NULL NULL 12 Using where
-EXPLAIN SELECT a FROM t2 WHERE a = 'Kali Kali 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref a a 14 const 4 Using where
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-a char(255) DEFAULT '',
-KEY(a(10))
-) ENGINE=heap DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-DROP TABLE t1;
-CREATE TABLE t1 (
-a char(255) DEFAULT ''
-) ENGINE=heap DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-ALTER TABLE t1 ADD KEY (a(10));
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-DROP TABLE t1;
-SET NAMES latin2;
-create table t1(a char(200) collate utf8mb4_unicode_ci NOT NULL default '')
-default charset=utf8mb4 collate=utf8mb4_unicode_ci engine heap;
-insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65'));
-explain select distinct a from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary
-SELECT COUNT(*) FROM (SELECT DISTINCT a FROM t1) AS t2;
-COUNT(*)
-1
-explain select a from t1 group by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
-SELECT COUNT(*) FROM (SELECT a FROM t1 GROUP BY a) AS t2;
-COUNT(*)
-1
-drop table t1;
-create table t1(a char(10)) default charset utf8mb4 engine heap;
-insert into t1 values ('123'), ('456');
-explain
-select substr(Z.a,-1), Z.a from t1 as Y join t1 as Z on Y.a=Z.a order by 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Y ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-1 SIMPLE Z ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-select substr(Z.a,-1), Z.a from t1 as Y join t1 as Z on Y.a=Z.a order by 1;
-substr(Z.a,-1) a
-3 123
-6 456
-drop table t1;
-SET CHARACTER SET utf8mb4;
-SHOW VARIABLES LIKE 'character\_set\_%';
-Variable_name Value
-character_set_client utf8mb4
-character_set_connection latin1
-character_set_database latin1
-character_set_filesystem binary
-character_set_results utf8mb4
-character_set_server latin1
-character_set_system utf8
-CREATE DATABASE crashtest DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
-USE crashtest;
-CREATE TABLE crashtest (crash char(10)) DEFAULT CHARSET=utf8mb4 ENGINE heap;
-INSERT INTO crashtest VALUES ('35'), ('36'), ('37');
-SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8mb4);
-crash
-35
-36
-37
-INSERT INTO crashtest VALUES ('-1000');
-EXPLAIN SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8mb4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE crashtest ALL NULL NULL NULL NULL 4 Using filesort
-SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8mb4);
-crash
--1000
-35
-36
-37
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FFFFFC'
-DROP TABLE crashtest;
-DROP DATABASE crashtest;
-USE test;
-SET CHARACTER SET default;
-CREATE TABLE t1(id varchar(20) NOT NULL) DEFAULT CHARSET=utf8mb4 ENGINE heap;
-INSERT INTO t1 VALUES ('xxx'), ('aa'), ('yyy'), ('aa');
-SELECT id FROM t1;
-id
-aa
-aa
-xxx
-yyy
-SELECT DISTINCT id FROM t1;
-id
-aa
-xxx
-yyy
-SELECT DISTINCT id FROM t1 ORDER BY id;
-id
-aa
-xxx
-yyy
-DROP TABLE t1;
-create table t1 (
-a varchar(26) not null
-) default character set utf8mb4 ENGINE heap;
-insert into t1 (a) values ('abcdefghijklmnopqrstuvwxyz');
-select * from t1;
-a
-abcdefghijklmnopqrstuvwxyz
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(20) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghijklmnopqrst
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a char(15) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghijklmno
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a char(10) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghij
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(5) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcde
-drop table t1;
-create table t1 (
-a varchar(4000) not null
-) default character set utf8mb4 engine heap;
-insert into t1 values (repeat('a',4000));
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(3000) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select length(a) from t1;
-length(a)
-3000
-drop table t1;
-set names utf8mb4;
-select hex(char(1 using utf8mb4));
-hex(char(1 using utf8mb4))
-01
-select char(0xd1,0x8f using utf8mb4);
-char(0xd1,0x8f using utf8mb4)
-select char(0xd18f using utf8mb4);
-char(0xd18f using utf8mb4)
-select char(53647 using utf8mb4);
-char(53647 using utf8mb4)
-select char(0xff,0x8f using utf8mb4);
-char(0xff,0x8f using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF8F'
-select convert(char(0xff,0x8f) using utf8mb4);
-convert(char(0xff,0x8f) using utf8mb4)
-??
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF\x8F'
-set sql_mode=traditional;
-select char(0xff,0x8f using utf8mb4);
-char(0xff,0x8f using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF8F'
-select char(195 using utf8mb4);
-char(195 using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'C3'
-select char(196 using utf8mb4);
-char(196 using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'C4'
-select char(2557 using utf8mb4);
-char(2557 using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FD'
-select convert(char(0xff,0x8f) using utf8mb4);
-convert(char(0xff,0x8f) using utf8mb4)
-??
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF\x8F'
-select hex(convert(char(2557 using latin1) using utf8mb4));
-hex(convert(char(2557 using latin1) using utf8mb4))
-09C3BD
-select hex(char(195));
-hex(char(195))
-C3
-select hex(char(196));
-hex(char(196))
-C4
-select hex(char(2557));
-hex(char(2557))
-09FD
-set names utf8mb4;
-create table t1 (a char(1)) default character set utf8mb4 engine heap;
-create table t2 (a char(1)) default character set utf8mb4 engine heap;
-insert into t1 values('a'),('a'),(0xE38182),(0xE38182);
-insert into t1 values('i'),('i'),(0xE38184),(0xE38184);
-select * from t1 union distinct select * from t2;
-a
-a
-i
-ã‚
-ã„
-drop table t1,t2;
-set names utf8mb4;
-create table t1 (a char(10), b varchar(10)) engine heap;
-insert into t1 values ('bar','kostja');
-insert into t1 values ('kostja','bar');
-prepare my_stmt from "select * from t1 where a=?";
-set @a:='bar';
-execute my_stmt using @a;
-a b
-bar kostja
-set @a:='kostja';
-execute my_stmt using @a;
-a b
-kostja bar
-set @a:=null;
-execute my_stmt using @a;
-a b
-drop table if exists t1;
-drop table if exists t1;
-drop view if exists v1, v2;
-set names utf8mb4;
-create table t1(col1 varchar(12) character set utf8mb4 collate utf8mb4_unicode_ci) engine heap;
-insert into t1 values('t1_val');
-create view v1 as select 'v1_val' as col1;
-select coercibility(col1), collation(col1) from v1;
-coercibility(col1) collation(col1)
-4 utf8mb4_general_ci
-create view v2 as select col1 from v1 union select col1 from t1;
-select coercibility(col1), collation(col1)from v2;
-coercibility(col1) collation(col1)
-2 utf8mb4_unicode_ci
-2 utf8mb4_unicode_ci
-drop view v1, v2;
-create view v1 as select 'v1_val' collate utf8mb4_swedish_ci as col1;
-select coercibility(col1), collation(col1) from v1;
-coercibility(col1) collation(col1)
-0 utf8mb4_swedish_ci
-create view v2 as select col1 from v1 union select col1 from t1;
-select coercibility(col1), collation(col1) from v2;
-coercibility(col1) collation(col1)
-0 utf8mb4_swedish_ci
-0 utf8mb4_swedish_ci
-drop view v1, v2;
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int) engine heap;
-insert into t1 values ('a',1);
-select concat(a, if(b>10, N'x', N'y')) from t1;
-concat(a, if(b>10, N'x', N'y'))
-ay
-select concat(a, if(b>10, N'æ', N'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int) engine heap;
-insert into t1 values ('a',1);
-select concat(a, if(b>10, _utf8mb4'x', _utf8mb4'y')) from t1;
-concat(a, if(b>10, _utf8mb4'x', _utf8mb4'y'))
-ay
-select concat(a, if(b>10, _utf8mb4'æ', _utf8mb4'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int) engine heap;
-insert into t1 values ('a',1);
-select concat(a, if(b>10, _utf8mb4 0x78, _utf8mb4 0x79)) from t1;
-concat(a, if(b>10, _utf8mb4 0x78, _utf8mb4 0x79))
-ay
-select concat(a, if(b>10, _utf8mb4 0xC3A6, _utf8mb4 0xC3AF)) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int) engine heap;
-insert into t1 values ('a',1);
-select concat(a, if(b>10, 'x' 'x', 'y' 'y')) from t1;
-concat(a, if(b>10, 'x' 'x', 'y' 'y'))
-ayy
-select concat(a, if(b>10, 'x' 'æ', 'y' 'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-CREATE TABLE t1 (
-colA int(11) NOT NULL,
-colB varchar(255) character set utf8mb4 NOT NULL,
-PRIMARY KEY (colA)
-) ENGINE=heap DEFAULT CHARSET=latin1;
-INSERT INTO t1 (colA, colB) VALUES (1, 'foo'), (2, 'foo bar');
-CREATE TABLE t2 (
-colA int(11) NOT NULL,
-colB varchar(255) character set utf8mb4 NOT NULL,
-KEY bad (colA,colB(3))
-) ENGINE=heap DEFAULT CHARSET=latin1;
-INSERT INTO t2 (colA, colB) VALUES (1, 'foo'),(2, 'foo bar');
-SELECT * FROM t1 JOIN t2 ON t1.colA=t2.colA AND t1.colB=t2.colB
-WHERE t1.colA < 3;
-colA colB colA colB
-1 foo 1 foo
-2 foo bar 2 foo bar
-DROP TABLE t1, t2;
-SELECT 'н1234567890' UNION SELECT _binary '1';
-н1234567890
-н1234567890
-1
-SELECT 'н1234567890' UNION SELECT 1;
-н1234567890
-н1234567890
-1
-SELECT '1' UNION SELECT 'н1234567890';
-1
-1
-н1234567890
-SELECT 1 UNION SELECT 'н1234567890';
-1
-1
-н1234567890
-CREATE TABLE t1 (c VARCHAR(11)) CHARACTER SET utf8mb4 ENGINE heap;
-CREATE TABLE t2 (b CHAR(1) CHARACTER SET binary, i INT) ENGINE heap;
-INSERT INTO t1 (c) VALUES ('н1234567890');
-INSERT INTO t2 (b, i) VALUES ('1', 1);
-SELECT c FROM t1 UNION SELECT b FROM t2;
-c
-н1234567890
-1
-SELECT c FROM t1 UNION SELECT i FROM t2;
-c
-н1234567890
-1
-SELECT b FROM t2 UNION SELECT c FROM t1;
-b
-1
-н1234567890
-SELECT i FROM t2 UNION SELECT c FROM t1;
-i
-1
-н1234567890
-DROP TABLE t1, t2;
-set sql_mode=traditional;
-select hex(char(0xFF using utf8mb4));
-hex(char(0xFF using utf8mb4))
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF'
-select hex(convert(0xFF using utf8mb4));
-hex(convert(0xFF using utf8mb4))
-3F
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF'
-select hex(_utf8mb4 0x616263FF);
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 B'001111111111');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select (_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-set sql_mode=default;
-select hex(char(0xFF using utf8mb4));
-hex(char(0xFF using utf8mb4))
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF'
-select hex(convert(0xFF using utf8mb4));
-hex(convert(0xFF using utf8mb4))
-3F
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF'
-select hex(_utf8mb4 0x616263FF);
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 B'001111111111');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select (_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL) ENGINE heap;
-INSERT INTO t1 VALUES (70000, 1092), (70001, 1085), (70002, 1065);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-ALTER TABLE t1 ADD UNIQUE (b);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-DROP INDEX b ON t1;
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-ALTER TABLE t1 ADD INDEX (b);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) from t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-DROP TABLE t1;
-#
-# Bug#26474: Add Sinhala script (Sri Lanka) collation to MySQL
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-predicted_order int NOT NULL,
-utf8mb4_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb4 ENGINE heap;
-INSERT INTO t1 VALUES (19, x'E0B696'), (30, x'E0B69AE0B798'), (61, x'E0B6AF'), (93, x'E0B799'), (52, x'E0B6A6'), (73, x'E0B6BBE0B78AE2808D'), (3, x'E0B686'), (56, x'E0B6AA'), (55, x'E0B6A9'), (70, x'E0B6B9'), (94, x'E0B79A'), (80, x'E0B785'), (25, x'E0B69AE0B791'), (48, x'E0B6A2'), (13, x'E0B690'), (86, x'E0B793'), (91, x'E0B79F'), (81, x'E0B786'), (79, x'E0B784'), (14, x'E0B691'), (99, x'E0B78A'), (8, x'E0B68B'), (68, x'E0B6B7'), (22, x'E0B69A'), (16, x'E0B693'), (33, x'E0B69AE0B7B3'), (38, x'E0B69AE0B79D'), (21, x'E0B683'), (11, x'E0B68E'), (77, x'E0B782'), (40, x'E0B69AE0B78A'), (101, x'E0B78AE2808DE0B6BB'), (35, x'E0B69AE0B79A'), (1, x'E0B7B4'), (9, x'E0B68C'), (96, x'E0B79C'), (6, x'E0B689'), (95, x'E0B79B'), (88, x'E0B796'), (64, x'E0B6B3'), (26, x'E0B69AE0B792'), (82, x'E0B78F'), (28, x'E0B69AE0B794'), (39, x'E0B69AE0B79E'), (97, x'E0B79D'), (2, x'E0B685'), (75, x'E0B780'), (34, x'E0B69AE0B799'), (69, x'E0B6B8'), (83, x'E0B790'), (18, x'E0B695'), (90, x'E0B7B2'), (17, x'E0B694'), (72, x'E0B6BB'), (66, x'E0B6B5'), (59, x'E0B6AD'), (44, x'E0B69E'), (15, x'E0B692'), (23, x'E0B69AE0B78F'), (65, x'E0B6B4'), (42, x'E0B69C'), (63, x'E0B6B1'), (85, x'E0B792'), (47, x'E0B6A1'), (49, x'E0B6A3'), (92, x'E0B7B3'), (78, x'E0B783'), (36, x'E0B69AE0B79B'), (4, x'E0B687'), (24, x'E0B69AE0B790'), (87, x'E0B794'), (37, x'E0B69AE0B79C'), (32, x'E0B69AE0B79F'), (29, x'E0B69AE0B796'), (43, x'E0B69D'), (62, x'E0B6B0'), (100, x'E0B78AE2808DE0B6BA'), (60, x'E0B6AE'), (45, x'E0B69F'), (12, x'E0B68F'), (46, x'E0B6A0'), (50, x'E0B6A5'), (51, x'E0B6A4'), (5, x'E0B688'), (76, x'E0B781'), (89, x'E0B798'), (74, x'E0B6BD'), (10, x'E0B68D'), (57, x'E0B6AB'), (71, x'E0B6BA'), (58, x'E0B6AC'), (27, x'E0B69AE0B793'), (54, x'E0B6A8'), (84, x'E0B791'), (31, x'E0B69AE0B7B2'), (98, x'E0B79E'), (53, x'E0B6A7'), (41, x'E0B69B'), (67, x'E0B6B6'), (7, x'E0B68A'), (20, x'E0B682');
-SELECT predicted_order, hex(utf8mb4_encoding) FROM t1 ORDER BY utf8mb4_encoding COLLATE utf8mb4_sinhala_ci;
-predicted_order hex(utf8mb4_encoding)
-1 E0B7B4
-2 E0B685
-3 E0B686
-4 E0B687
-5 E0B688
-6 E0B689
-7 E0B68A
-8 E0B68B
-9 E0B68C
-10 E0B68D
-11 E0B68E
-12 E0B68F
-13 E0B690
-14 E0B691
-15 E0B692
-16 E0B693
-17 E0B694
-18 E0B695
-19 E0B696
-20 E0B682
-21 E0B683
-22 E0B69A
-23 E0B69AE0B78F
-24 E0B69AE0B790
-25 E0B69AE0B791
-26 E0B69AE0B792
-27 E0B69AE0B793
-28 E0B69AE0B794
-29 E0B69AE0B796
-30 E0B69AE0B798
-31 E0B69AE0B7B2
-32 E0B69AE0B79F
-33 E0B69AE0B7B3
-34 E0B69AE0B799
-35 E0B69AE0B79A
-36 E0B69AE0B79B
-37 E0B69AE0B79C
-38 E0B69AE0B79D
-39 E0B69AE0B79E
-40 E0B69AE0B78A
-41 E0B69B
-42 E0B69C
-43 E0B69D
-44 E0B69E
-45 E0B69F
-46 E0B6A0
-47 E0B6A1
-48 E0B6A2
-49 E0B6A3
-50 E0B6A5
-51 E0B6A4
-52 E0B6A6
-53 E0B6A7
-54 E0B6A8
-55 E0B6A9
-56 E0B6AA
-57 E0B6AB
-58 E0B6AC
-59 E0B6AD
-60 E0B6AE
-61 E0B6AF
-62 E0B6B0
-63 E0B6B1
-64 E0B6B3
-65 E0B6B4
-66 E0B6B5
-67 E0B6B6
-68 E0B6B7
-69 E0B6B8
-70 E0B6B9
-71 E0B6BA
-72 E0B6BB
-73 E0B6BBE0B78AE2808D
-74 E0B6BD
-75 E0B780
-76 E0B781
-77 E0B782
-78 E0B783
-79 E0B784
-80 E0B785
-81 E0B786
-82 E0B78F
-83 E0B790
-84 E0B791
-85 E0B792
-86 E0B793
-87 E0B794
-88 E0B796
-89 E0B798
-90 E0B7B2
-91 E0B79F
-92 E0B7B3
-93 E0B799
-94 E0B79A
-95 E0B79B
-96 E0B79C
-97 E0B79D
-98 E0B79E
-99 E0B78A
-100 E0B78AE2808DE0B6BA
-101 E0B78AE2808DE0B6BB
-DROP TABLE t1;
-#
-# Bug#32914 Character sets: illegal characters in utf8mb4 and utf32 columns
-#
-create table t1 (utf8mb4 char(1) character set utf8mb4) engine heap;
-Testing [F0][90..BF][80..BF][80..BF]
-insert into t1 values (0xF0908080);
-insert into t1 values (0xF0BFBFBF);
-insert ignore into t1 values (0xF08F8080);
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x8F\x80\x80' for column 'utf8mb4' at row 1
-select hex(utf8mb4) from t1;
-hex(utf8mb4)
-3F
-F0908080
-F0BFBFBF
-delete from t1;
-Testing [F2..F3][80..BF][80..BF][80..BF]
-insert into t1 values (0xF2808080);
-insert into t1 values (0xF2BFBFBF);
-select hex(utf8mb4) from t1;
-hex(utf8mb4)
-F2808080
-F2BFBFBF
-delete from t1;
-Testing [F4][80..8F][80..BF][80..BF]
-insert into t1 values (0xF4808080);
-insert into t1 values (0xF48F8080);
-insert ignore into t1 values (0xF4908080);
-Warnings:
-Warning 1366 Incorrect string value: '\xF4\x90\x80\x80' for column 'utf8mb4' at row 1
-select hex(utf8mb4) from t1;
-hex(utf8mb4)
-3F
-F4808080
-F48F8080
-drop table t1;
-#
-# Check strnxfrm() with odd length
-#
-set max_sort_length=5;
-select @@max_sort_length;
-@@max_sort_length
-5
-create table t1 (a varchar(128) character set utf8mb4 collate utf8mb4_general_ci) engine heap;
-insert into t1 values ('a'),('b'),('c');
-select * from t1 order by a;
-a
-a
-b
-c
-alter table t1 modify a varchar(128) character set utf8mb4 collate utf8mb4_bin;
-select * from t1 order by a;
-a
-a
-b
-c
-drop table t1;
-set max_sort_length=default;
-#
-# Bug#26180: Can't add columns to tables created with utf8mb4 text indexes
-#
-#
-# Testing 4-byte values.
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-u_decimal int NOT NULL,
-utf8mb4_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb4 ENGINE heap;
-INSERT INTO t1 VALUES (119040, x'f09d8480'),
-# G CLEF
-(119070, x'f09d849e'),
-# HALF NOTE
-(119134, x'f09d859e'),
-# MUSICAL SYMBOL CROIX
-(119247, x'f09d878f'),
-# MATHEMATICAL BOLD ITALIC CAPITAL DELTA
-(120607, x'f09d9c9f'),
-# SANS-SERIF BOLD ITALIC CAPITAL PI
-(120735, x'f09d9e9f'),
-# <Plane 16 Private Use, Last> (last 4 byte character)
-(1114111, x'f48fbfbf'),
-# VARIATION SELECTOR-256
-(917999, x'f3a087af');
-INSERT INTO t1 VALUES (119070, x'f09d849ef09d859ef09d859ef09d8480f09d859ff09d859ff09d859ff09d85a0f09d85a0f09d8480');
-INSERT INTO t1 VALUES (65131, x'efb9abf09d849ef09d859ef09d859ef09d8480f09d859fefb9abefb9abf09d85a0efb9ab');
-INSERT IGNORE INTO t1 VALUES (119070, x'f09d849ef09d859ef09d859ef09d8480f09d859ff09d859ff09d859ff09d85a0f09d85a0f09d8480f09d85a0');
-Warnings:
-Warning 1265 Data truncated for column 'utf8mb4_encoding' at row 1
-SELECT u_decimal, hex(utf8mb4_encoding) FROM t1 ORDER BY utf8mb4_encoding COLLATE utf8mb4_general_ci, BINARY utf8mb4_encoding;
-u_decimal hex(utf8mb4_encoding)
-1114111 F48FBFBF
-119040 F09D8480
-119070 F09D849E
-119070 F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480
-119070 F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480
-119134 F09D859E
-119247 F09D878F
-120607 F09D9C9F
-120735 F09D9E9F
-65131 EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9AB
-917999 F3A087AF
-INSERT IGNORE INTO t1 VALUES (1114111, x'f5808080');
-Warnings:
-Warning 1366 Incorrect string value: '\xF5\x80\x80\x80' for column 'utf8mb4_encoding' at row 1
-SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
-table_name= 't1' AND column_name= 'utf8mb4_encoding';
-character_maximum_length character_octet_length
-10 40
-DROP TABLE IF EXISTS t2;
-CREATE TABLE t2 (
-u_decimal int NOT NULL,
-utf8mb3_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb3 ENGINE heap;
-INSERT INTO t2 VALUES (42856, x'ea9da8');
-INSERT INTO t2 VALUES (65131, x'efb9ab');
-INSERT IGNORE INTO t2 VALUES (1114111, x'f48fbfbf');
-Warnings:
-Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column 'utf8mb3_encoding' at row 1
-SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
-table_name= 't2' AND column_name= 'utf8mb3_encoding';
-character_maximum_length character_octet_length
-10 30
-UPDATE IGNORE t2 SET utf8mb3_encoding= x'f48fbfbd' where u_decimal= 42856;
-Warnings:
-Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBD' for column 'utf8mb3_encoding' at row 1
-UPDATE t2 SET utf8mb3_encoding= _utf8mb4 x'ea9da8' where u_decimal= 42856;
-SELECT HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) FROM t1;
-HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8'))
-3F3F3F3FEA9DA8
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9ABEA9DA8
-F09D8480EA9DA8
-F09D849EEA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-F09D859EEA9DA8
-F09D878FEA9DA8
-F09D9C9FEA9DA8
-F09D9E9FEA9DA8
-F3A087AFEA9DA8
-F48FBFBFEA9DA8
-SELECT HEX(CONCAT(utf8mb4_encoding, utf8mb3_encoding)) FROM t1,t2;
-HEX(CONCAT(utf8mb4_encoding, utf8mb3_encoding))
-3F3F3F3F3F3F3F3F
-3F3F3F3FEA9DA8
-3F3F3F3FEFB9AB
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9AB3F3F3F3F
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9ABEA9DA8
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9ABEFB9AB
-F09D84803F3F3F3F
-F09D8480EA9DA8
-F09D8480EFB9AB
-F09D849E3F3F3F3F
-F09D849EEA9DA8
-F09D849EEFB9AB
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D84803F3F3F3F
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D84803F3F3F3F
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EFB9AB
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EFB9AB
-F09D859E3F3F3F3F
-F09D859EEA9DA8
-F09D859EEFB9AB
-F09D878F3F3F3F3F
-F09D878FEA9DA8
-F09D878FEFB9AB
-F09D9C9F3F3F3F3F
-F09D9C9FEA9DA8
-F09D9C9FEFB9AB
-F09D9E9F3F3F3F3F
-F09D9E9FEA9DA8
-F09D9E9FEFB9AB
-F3A087AF3F3F3F3F
-F3A087AFEA9DA8
-F3A087AFEFB9AB
-F48FBFBF3F3F3F3F
-F48FBFBFEA9DA8
-F48FBFBFEFB9AB
-SELECT count(*) FROM t1, t2
-WHERE t1.utf8mb4_encoding > t2.utf8mb3_encoding;
-count(*)
-33
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 CONVERT TO CHARACTER SET utf8;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb4_encoding` varchar(10) NOT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb4_encoding),utf8mb4_encoding FROM t1;
-u_decimal hex(utf8mb4_encoding) utf8mb4_encoding
-1114111 3F ?
-1114111 3F3F3F3F ????
-119040 3F ?
-119070 3F ?
-119070 3F3F3F3F3F3F3F3F3F3F ??????????
-119070 3F3F3F3F3F3F3F3F3F3F ??????????
-119134 3F ?
-119247 3F ?
-120607 3F ?
-120735 3F ?
-65131 EFB9AB3F3F3F3F3FEFB9ABEFB9AB3FEFB9AB ﹫?????﹫﹫?﹫
-917999 3F ?
-ALTER TABLE t2 CONVERT TO CHARACTER SET utf8mb4;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb3_encoding` varchar(10) NOT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4
-SELECT u_decimal,hex(utf8mb3_encoding) FROM t2;
-u_decimal hex(utf8mb3_encoding)
-1114111 3F3F3F3F
-42856 EA9DA8
-65131 EFB9AB
-ALTER TABLE t2 CONVERT TO CHARACTER SET utf8mb3;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb3_encoding` varchar(10) NOT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb3_encoding) FROM t2;
-u_decimal hex(utf8mb3_encoding)
-1114111 3F3F3F3F
-42856 EA9DA8
-65131 EFB9AB
-ALTER TABLE t1 MODIFY utf8mb4_encoding VARCHAR(10) CHARACTER SET utf8mb3;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb4_encoding` varchar(10) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb4_encoding) FROM t1;
-u_decimal hex(utf8mb4_encoding)
-1114111 3F
-1114111 3F3F3F3F
-119040 3F
-119070 3F
-119070 3F3F3F3F3F3F3F3F3F3F
-119070 3F3F3F3F3F3F3F3F3F3F
-119134 3F
-119247 3F
-120607 3F
-120735 3F
-65131 EFB9AB3F3F3F3F3FEFB9ABEFB9AB3FEFB9AB
-917999 3F
-ALTER TABLE t1 MODIFY utf8mb4_encoding VARCHAR(10) CHARACTER SET utf8mb4;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb4_encoding` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb4_encoding) FROM t1;
-u_decimal hex(utf8mb4_encoding)
-1114111 3F
-1114111 3F3F3F3F
-119040 3F
-119070 3F
-119070 3F3F3F3F3F3F3F3F3F3F
-119070 3F3F3F3F3F3F3F3F3F3F
-119134 3F
-119247 3F
-120607 3F
-120735 3F
-65131 EFB9AB3F3F3F3F3FEFB9ABEFB9AB3FEFB9AB
-917999 3F
-ALTER TABLE t2 MODIFY utf8mb3_encoding VARCHAR(10) CHARACTER SET utf8mb4;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb3_encoding` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb3_encoding) FROM t2;
-u_decimal hex(utf8mb3_encoding)
-1114111 3F3F3F3F
-42856 EA9DA8
-65131 EFB9AB
-DROP TABLE IF EXISTS t3;
-CREATE TABLE t3 (
-u_decimal int NOT NULL,
-utf8mb3_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8 ENGINE heap;
-INSERT INTO t3 SELECT * FROM t1;
-DROP TABLE IF EXISTS t4;
-CREATE TABLE t4 (
-u_decimal int NOT NULL,
-utf8mb4_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb4 ENGINE heap;
-INSERT INTO t3 SELECT * FROM t2;
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t3;
-DROP TABLE t4;
-#
-# Testing that mixing utf8 and utf8mb4 collations returns utf8mb4
-#
-SELECT CHARSET(CONCAT(_utf8mb4'a',_utf8'b'));
-CHARSET(CONCAT(_utf8mb4'a',_utf8'b'))
-utf8mb4
-CREATE TABLE t1 (utf8mb4 VARCHAR(10) CHARACTER SET utf8mb4 NOT NULL) ENGINE heap;
-INSERT INTO t1 VALUES (x'ea9da8'),(x'f48fbfbf');
-SELECT CONCAT(utf8mb4, _utf8 x'ea9da8') FROM t1 LIMIT 0;
-CONCAT(utf8mb4, _utf8 x'ea9da8')
-CREATE TABLE t2 (utf8mb3 VARCHAR(10) CHARACTER SET utf8mb3 NOT NULL) ENGINE heap;
-INSERT INTO t2 VALUES (x'ea9da8');
-SELECT HEX(CONCAT(utf8mb4, utf8mb3)) FROM t1,t2 ORDER BY 1;
-HEX(CONCAT(utf8mb4, utf8mb3))
-EA9DA8EA9DA8
-F48FBFBFEA9DA8
-SELECT CHARSET(CONCAT(utf8mb4, utf8mb3)) FROM t1, t2 LIMIT 1;
-CHARSET(CONCAT(utf8mb4, utf8mb3))
-utf8mb4
-CREATE TEMPORARY TABLE t3 ENGINE heap AS SELECT *, concat(utf8mb4,utf8mb3) FROM t1, t2;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TEMPORARY TABLE `t3` (
- `utf8mb4` varchar(10) CHARACTER SET utf8mb4 NOT NULL,
- `utf8mb3` varchar(10) CHARACTER SET utf8 NOT NULL,
- `concat(utf8mb4,utf8mb3)` varchar(20) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-DROP TEMPORARY TABLE t3;
-SELECT * FROM t1, t2 WHERE t1.utf8mb4 > t2.utf8mb3;
-utf8mb4 utf8mb3
-ô¿¿ ê¨
-SELECT * FROM t1, t2 WHERE t1.utf8mb4 = t2.utf8mb3;
-utf8mb4 utf8mb3
-ê¨ ê¨
-SELECT * FROM t1, t2 WHERE t1.utf8mb4 < t2.utf8mb3;
-utf8mb4 utf8mb3
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# Check that mixing utf8mb4 with an invalid utf8 constant returns error
-#
-CREATE TABLE t1 (utf8mb4 VARCHAR(10) CHARACTER SET utf8mb4) ENGINE heap;
-INSERT INTO t1 VALUES (x'f48fbfbf');
-SELECT CONCAT(utf8mb4, _utf8 '¿') FROM t1;
-ERROR HY000: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-SELECT CONCAT('a', _utf8 '¿') FROM t1;
-ERROR HY000: Illegal mix of collations (utf8mb4_general_ci,COERCIBLE) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# ctype_utf8mb4.inc: Start of 10.1 tests
-#
-#
-# MDEV-8417 utf8mb4: compare broken bytes as "greater than any non-broken character"
-#
-CREATE TABLE t1 (
-id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-a VARCHAR(10) CHARACTER SET utf8mb4, KEY(a,id)
-);
-INSERT INTO t1 (a) VALUES (0x61);
-INSERT INTO t1 (a) VALUES (0xC280),(0xDFBF);
-INSERT INTO t1 (a) VALUES (0xE0A080),(0xEFBFBF);
-INSERT INTO t1 (a) VALUES (0xF0908080),(0xF48FBFBF);
-SELECT id,HEX(a) FROM t1 ORDER BY a,id;
-id HEX(a)
-1 61
-2 C280
-3 DFBF
-4 E0A080
-6 F0908080
-7 F48FBFBF
-5 EFBFBF
-SELECT id,HEX(a) FROM t1 ORDER BY a DESC,id DESC;
-id HEX(a)
-5 EFBFBF
-7 F48FBFBF
-6 F0908080
-4 E0A080
-3 DFBF
-2 C280
-1 61
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-6
-ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
-SELECT id,HEX(a) FROM t1 ORDER BY a;
-id HEX(a)
-1 61
-2 C280
-3 DFBF
-4 E0A080
-5 EFBFBF
-6 F0908080
-7 F48FBFBF
-SELECT id,HEX(a) FROM t1 ORDER BY a DESC,id DESC;
-id HEX(a)
-7 F48FBFBF
-6 F0908080
-5 EFBFBF
-4 E0A080
-3 DFBF
-2 C280
-1 61
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-7
-DROP TABLE t1;
-#
-# ctype_utf8mb4.inc: End of 10.1 tests
-#
-#
-# End of ctype_utf8mb4.inc
-#
diff --git a/mysql-test/r/ctype_utf8mb4_innodb.result b/mysql-test/r/ctype_utf8mb4_innodb.result
deleted file mode 100644
index 956b2f83d9e..00000000000
--- a/mysql-test/r/ctype_utf8mb4_innodb.result
+++ /dev/null
@@ -1,2710 +0,0 @@
-drop table if exists t1,t2;
-#
-# Start of 5.5 tests
-#
-set names utf8mb4;
-select left(_utf8mb4 0xD0B0D0B1D0B2,1);
-left(_utf8mb4 0xD0B0D0B1D0B2,1)
-а
-select right(_utf8mb4 0xD0B0D0B2D0B2,1);
-right(_utf8mb4 0xD0B0D0B2D0B2,1)
-в
-select locate('he','hello');
-locate('he','hello')
-1
-select locate('he','hello',2);
-locate('he','hello',2)
-0
-select locate('lo','hello',2);
-locate('lo','hello',2)
-4
-select locate('HE','hello');
-locate('HE','hello')
-1
-select locate('HE','hello',2);
-locate('HE','hello',2)
-0
-select locate('LO','hello',2);
-locate('LO','hello',2)
-4
-select locate('HE','hello' collate utf8mb4_bin);
-locate('HE','hello' collate utf8mb4_bin)
-0
-select locate('HE','hello' collate utf8mb4_bin,2);
-locate('HE','hello' collate utf8mb4_bin,2)
-0
-select locate('LO','hello' collate utf8mb4_bin,2);
-locate('LO','hello' collate utf8mb4_bin,2)
-0
-select locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D0B1D0B2);
-locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D0B1D0B2)
-2
-select locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2);
-locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2)
-2
-select locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2);
-locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2)
-2
-select locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2 collate utf8mb4_bin);
-locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2 collate utf8mb4_bin)
-0
-select locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2 collate utf8mb4_bin);
-locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2 collate utf8mb4_bin)
-0
-select length(_utf8mb4 0xD0B1), bit_length(_utf8mb4 0xD0B1), char_length(_utf8mb4 0xD0B1);
-length(_utf8mb4 0xD0B1) bit_length(_utf8mb4 0xD0B1) char_length(_utf8mb4 0xD0B1)
-2 16 1
-select 'a' like 'a';
-'a' like 'a'
-1
-select 'A' like 'a';
-'A' like 'a'
-1
-select 'A' like 'a' collate utf8mb4_bin;
-'A' like 'a' collate utf8mb4_bin
-0
-select _utf8mb4 0xD0B0D0B1D0B2 like concat(_utf8mb4'%',_utf8mb4 0xD0B1,_utf8mb4 '%');
-_utf8mb4 0xD0B0D0B1D0B2 like concat(_utf8mb4'%',_utf8mb4 0xD0B1,_utf8mb4 '%')
-1
-select convert(_latin1'Günter André' using utf8mb4) like CONVERT(_latin1'GÜNTER%' USING utf8mb4);
-convert(_latin1'G?nter Andr?' using utf8mb4) like CONVERT(_latin1'G?NTER%' USING utf8mb4)
-1
-select CONVERT(_koi8r'×ÁÓÑ' USING utf8mb4) LIKE CONVERT(_koi8r'÷áóñ' USING utf8mb4);
-CONVERT(_koi8r'????' USING utf8mb4) LIKE CONVERT(_koi8r'????' USING utf8mb4)
-1
-select CONVERT(_koi8r'÷áóñ' USING utf8mb4) LIKE CONVERT(_koi8r'×ÁÓÑ' USING utf8mb4);
-CONVERT(_koi8r'????' USING utf8mb4) LIKE CONVERT(_koi8r'????' USING utf8mb4)
-1
-SELECT 'a' = 'a ';
-'a' = 'a '
-1
-SELECT 'a\0' < 'a';
-'a\0' < 'a'
-1
-SELECT 'a\0' < 'a ';
-'a\0' < 'a '
-1
-SELECT 'a\t' < 'a';
-'a\t' < 'a'
-1
-SELECT 'a\t' < 'a ';
-'a\t' < 'a '
-1
-SELECT 'a' = 'a ' collate utf8mb4_bin;
-'a' = 'a ' collate utf8mb4_bin
-1
-SELECT 'a\0' < 'a' collate utf8mb4_bin;
-'a\0' < 'a' collate utf8mb4_bin
-1
-SELECT 'a\0' < 'a ' collate utf8mb4_bin;
-'a\0' < 'a ' collate utf8mb4_bin
-1
-SELECT 'a\t' < 'a' collate utf8mb4_bin;
-'a\t' < 'a' collate utf8mb4_bin
-1
-SELECT 'a\t' < 'a ' collate utf8mb4_bin;
-'a\t' < 'a ' collate utf8mb4_bin
-1
-CREATE TABLE t1 (a char(10) character set utf8mb4 not null) ENGINE InnoDB;
-INSERT INTO t1 VALUES ('a'),('a\0'),('a\t'),('a ');
-SELECT hex(a),STRCMP(a,'a'), STRCMP(a,'a ') FROM t1;
-hex(a) STRCMP(a,'a') STRCMP(a,'a ')
-61 0 0
-61 0 0
-6100 -1 -1
-6109 -1 -1
-DROP TABLE t1;
-select insert('txs',2,1,'hi'),insert('is ',4,0,'a'),insert('txxxxt',2,4,'es');
-insert('txs',2,1,'hi') insert('is ',4,0,'a') insert('txxxxt',2,4,'es')
-this is test
-select insert("aa",100,1,"b"),insert("aa",1,3,"b");
-insert("aa",100,1,"b") insert("aa",1,3,"b")
-aa b
-select char_length(left(@a:='теÑÑ‚',5)), length(@a), @a;
-char_length(left(@a:='теÑÑ‚',5)) length(@a) @a
-4 8 теÑÑ‚
-create table t1 ENGINE InnoDB select date_format("2004-01-19 10:10:10", "%Y-%m-%d");
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `date_format("2004-01-19 10:10:10", "%Y-%m-%d")` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-select * from t1;
-date_format("2004-01-19 10:10:10", "%Y-%m-%d")
-2004-01-19
-drop table t1;
-set names utf8mb4;
-set LC_TIME_NAMES='fr_FR';
-create table t1 (s1 char(20) character set latin1) engine InnoDB;
-insert into t1 values (date_format('2004-02-02','%M'));
-select hex(s1) from t1;
-hex(s1)
-66E97672696572
-drop table t1;
-create table t1 (s1 char(20) character set koi8r) engine InnoDB;
-set LC_TIME_NAMES='ru_RU';
-insert into t1 values (date_format('2004-02-02','%M'));
-insert into t1 values (date_format('2004-02-02','%b'));
-insert into t1 values (date_format('2004-02-02','%W'));
-insert into t1 values (date_format('2004-02-02','%a'));
-select hex(s1), s1 from t1;
-hex(s1) s1
-E6C5D7 Фев
-E6C5D7D2C1CCD1 ФевралÑ
-F0CEC4 Пнд
-F0CFCEC5C4C5CCD8CEC9CB Понедельник
-drop table t1;
-set LC_TIME_NAMES='en_US';
-set names koi8r;
-create table t1 (s1 char(1) character set utf8mb4) engine InnoDB;
-insert ignore into t1 values (_koi8r'ÁÂ');
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select s1,hex(s1),char_length(s1),octet_length(s1) from t1;
-s1 hex(s1) char_length(s1) octet_length(s1)
-Á D0B0 1 2
-drop table t1;
-create table t1 (s1 tinytext character set utf8mb4) engine InnoDB;
-insert ignore into t1 select repeat('a',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ñ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('aÑ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ña',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('ÑÑ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161
-61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F
-D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61
-D18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18F
-D18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18F
-select length(s1),char_length(s1) from t1;
-length(s1) char_length(s1)
-254 127
-254 127
-255 170
-255 170
-255 255
-drop table t1;
-create table t1 (s1 text character set utf8mb4) engine InnoDB;
-insert ignore into t1 select repeat('a',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ñ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('aÑ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ña',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('ÑÑ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select length(s1),char_length(s1) from t1;
-length(s1) char_length(s1)
-65534 32767
-65534 32767
-65535 43690
-65535 43690
-65535 65535
-drop table t1;
-create table t1 (s1 char(10) character set utf8mb4) engine InnoDB;
-insert ignore into t1 values (0x41FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-413F
-drop table t1;
-create table t1 (s1 varchar(10) character set utf8mb4) engine InnoDB;
-insert ignore into t1 values (0x41FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-413F
-drop table t1;
-create table t1 (s1 text character set utf8mb4) engine InnoDB;
-insert ignore into t1 values (0x41FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-413F
-drop table t1;
-create table t1 (a text character set utf8mb4, primary key(a(371))) engine InnoDB;
-show warnings;
-Level Code Message
-drop table if exists t1;
-CREATE TABLE t1 ( a varchar(10) ) CHARACTER SET utf8mb4 ENGINE InnoDB;
-INSERT INTO t1 VALUES ( 'test' );
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = b.a;
-a a
-test test
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = 'test' and b.a = 'test';
-a a
-test test
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = b.a and a.a = 'test';
-a a
-test test
-DROP TABLE t1;
-create table t1 (a char(255) character set utf8mb4) engine InnoDB;
-insert into t1 values('b'),('b');
-select * from t1 where a = 'b';
-a
-b
-b
-select * from t1 where a = 'b' and a = 'b';
-a
-b
-b
-select * from t1 where a = 'b' and a != 'b';
-a
-drop table t1;
-set names utf8mb4;
-drop table if exists t1;
-create table t1 as
-select repeat(' ', 64) as s1, repeat(' ',64) as s2
-union
-select null, null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL,
- `s2` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-delete from t1;
-insert into t1 values('aaa','aaa');
-insert into t1 values('aaa|qqq','qqq');
-insert into t1 values('gheis','^[^a-dXYZ]+$');
-insert into t1 values('aab','^aa?b');
-insert into t1 values('Baaan','^Ba*n');
-insert into t1 values('aaa','qqq|aaa');
-insert into t1 values('qqq','qqq|aaa');
-insert into t1 values('bbb','qqq|aaa');
-insert into t1 values('bbb','qqq');
-insert into t1 values('aaa','aba');
-insert into t1 values(null,'abc');
-insert into t1 values('def',null);
-insert into t1 values(null,null);
-insert into t1 values('ghi','ghi[');
-select HIGH_PRIORITY s1 regexp s2 from t1;
-s1 regexp s2
-0
-0
-0
-1
-1
-1
-1
-1
-1
-1
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-SELECT @@character_set_client, @@collation_connection;
-@@character_set_client @@collation_connection
-utf8mb4 utf8mb4_general_ci
-select 'ваÑÑ' rlike '\\bваÑÑ\\b';
-'ваÑÑ' rlike '\\bваÑÑ\\b'
-1
-select 'ваÑÑ ' rlike '\\bваÑÑ\\b';
-'ваÑÑ ' rlike '\\bваÑÑ\\b'
-1
-select ' ваÑÑ' rlike '\\bваÑÑ\\b';
-' ваÑÑ' rlike '\\bваÑÑ\\b'
-1
-select ' ваÑÑ ' rlike '\\bваÑÑ\\b';
-' ваÑÑ ' rlike '\\bваÑÑ\\b'
-1
-select 'ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select 'ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select ' ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-' ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select ' ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-' ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select 'ваÑÑz' rlike '\\bваÑÑ\\b';
-'ваÑÑz' rlike '\\bваÑÑ\\b'
-0
-select 'zваÑÑ' rlike '\\bваÑÑ\\b';
-'zваÑÑ' rlike '\\bваÑÑ\\b'
-0
-select 'zваÑÑz' rlike '\\bваÑÑ\\b';
-'zваÑÑz' rlike '\\bваÑÑ\\b'
-0
-select 'ваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-select 'zваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'zваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-select 'zваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'zваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-CREATE TABLE t1 (a enum ('Y', 'N') DEFAULT 'N' COLLATE utf8mb4_unicode_ci) ENGINE InnoDB;
-ALTER TABLE t1 ADD COLUMN b CHAR(20);
-DROP TABLE t1;
-set names utf8mb4;
-create table t1 (a enum('aaaa','проба') character set utf8mb4) engine InnoDB;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('aaaa','проба') CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-insert into t1 values ('проба');
-select * from t1;
-a
-проба
-create table t2 engine InnoDB select ifnull(a,a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ifnull(a,a)` varchar(5) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-select * from t2;
-ifnull(a,a)
-проба
-drop table t1;
-drop table t2;
-create table t1 (c varchar(30) character set utf8mb4, unique(c(10))) engine InnoDB;
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c varchar(30) character set utf8mb4, unique(c(10))) engine=InnoDB;
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c char(3) character set utf8mb4, unique (c(2))) engine InnoDB;
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (c char(3) character set utf8mb4, unique (c(2))) engine=InnoDB;
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4,
-unique key a using hash (c(1))
-) engine=InnoDB;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING HASH
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4,
-unique key a using btree (c(1))
-) engine=InnoDB;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4,
-unique key a (c(1))
-) engine=InnoDB;
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (c varchar(30) character set utf8mb4 collate utf8mb4_bin, unique(c(10))) engine InnoDB;
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c char(3) character set utf8mb4 collate utf8mb4_bin, unique (c(2))) engine InnoDB;
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4 collate utf8mb4_bin,
-unique key a using hash (c(1))
-) engine=InnoDB;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING HASH
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4 collate utf8mb4_bin,
-unique key a using btree (c(1))
-) engine=InnoDB;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4 collate utf8mb4_bin,
-unique key a (c(1))
-) engine=InnoDB;
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str (str(2))
-) engine=InnoDB;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str (str(2))
-) engine=InnoDB;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str using btree (str(2))
-) engine=InnoDB;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str using hash (str(2))
-) engine=InnoDB;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str (str(2))
-) engine= InnoDB;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-CREATE TABLE t1 (a varchar(32) BINARY) CHARACTER SET utf8mb4 ENGINE InnoDB;
-INSERT INTO t1 VALUES ('test');
-SELECT a FROM t1 WHERE a LIKE '%te';
-a
-DROP TABLE t1;
-SET NAMES utf8mb4;
-CREATE TABLE t1 (
-subject varchar(255) character set utf8mb4 collate utf8mb4_unicode_ci,
-p varchar(15) character set utf8mb4
-) ENGINE= InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES ('è°·å·ä¿ŠäºŒã¨ç”³ã—ã¾ã™ãŒã€ã‚¤ãƒ³ã‚¿ãƒ¼ãƒãƒƒãƒˆäºˆç´„ã®ä¼šå“¡ç™»éŒ²ã‚’ã—ã¾ã—ãŸã¨ã“ã‚ã€ãƒ¡ãƒ¼ãƒ«ã‚¢ãƒ‰ãƒ¬ã‚¹ã‚’é–“é•ãˆã¦ã—ã¾ã„会員IDãŒå—ã‘å–ã‚‹ã“ã¨ãŒå‡ºæ¥ã¾ã›ã‚“ã§ã—ãŸã€‚é–“é•ãˆã‚¢ãƒ‰ãƒ¬ã‚¹ã¯tani-shun@n.vodafone.ne.jpを書ãè¾¼ã¿ã¾ã—ãŸã€‚ã©ã†ã™ã‚Œã°ã‚ˆã„ã§ã™ã‹ï¼Ÿ ãã®ä»–ã€ä½æ‰€ç­‰ã¯é–“é•ãˆã‚ã‚Šã¾ã›ã‚“。連絡ãã ã•ã„。よã‚ã—ããŠé¡˜ã„ã—ã¾ã™ã€‚m(__)m','040312-000057');
-INSERT INTO t1 VALUES ('aaa','bbb');
-SELECT length(subject) FROM t1;
-length(subject)
-3
-432
-SELECT length(subject) FROM t1 ORDER BY 1;
-length(subject)
-3
-432
-DROP TABLE t1;
-CREATE TABLE t1 (
-id int unsigned NOT NULL auto_increment,
-list_id smallint unsigned NOT NULL,
-term TEXT NOT NULL,
-PRIMARY KEY(id),
-INDEX(list_id, term(4))
-) ENGINE=InnoDB CHARSET=utf8mb4;
-INSERT INTO t1 SET list_id = 1, term = "letterc";
-INSERT INTO t1 SET list_id = 1, term = "letterb";
-INSERT INTO t1 SET list_id = 1, term = "lettera";
-INSERT INTO t1 SET list_id = 1, term = "letterd";
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterc");
-id
-1
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterb");
-id
-2
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "lettera");
-id
-3
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterd");
-id
-4
-DROP TABLE t1;
-SET NAMES latin1;
-CREATE TABLE t1 (
-id int unsigned NOT NULL auto_increment,
-list_id smallint unsigned NOT NULL,
-term text NOT NULL,
-PRIMARY KEY(id),
-INDEX(list_id, term(19))
-) ENGINE=InnoDB CHARSET=utf8mb4;
-INSERT INTO t1 set list_id = 1, term = "testétest";
-INSERT INTO t1 set list_id = 1, term = "testetest";
-INSERT INTO t1 set list_id = 1, term = "testètest";
-SELECT id, term FROM t1 where (list_id = 1) AND (term = "testétest");
-id term
-1 testétest
-2 testetest
-3 testètest
-SELECT id, term FROM t1 where (list_id = 1) AND (term = "testetest");
-id term
-1 testétest
-2 testetest
-3 testètest
-SELECT id, term FROM t1 where (list_id = 1) AND (term = "testètest");
-id term
-1 testétest
-2 testetest
-3 testètest
-DROP TABLE t1;
-set names utf8mb4;
-create table t1 (
-a int primary key,
-b varchar(6),
-index b3(b(3))
-) engine=InnoDB character set=utf8mb4;
-insert into t1 values(1,'foo'),(2,'foobar');
-select * from t1 where b like 'foob%';
-a b
-2 foobar
-alter table t1 engine=innodb;
-select * from t1 where b like 'foob%';
-a b
-2 foobar
-drop table t1;
-create table t1 (
-a enum('петÑ','ваÑÑ','анюта') character set utf8mb4 not null default 'анюта',
-b set('петÑ','ваÑÑ','анюта') character set utf8mb4 not null default 'анюта'
-) engine InnoDB;
-create table t2 engine InnoDB select concat(a,_utf8mb4'') as a, concat(b,_utf8mb4'')as b from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(5) CHARACTER SET utf8mb4 DEFAULT NULL,
- `b` varchar(15) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-drop table t2;
-drop table t1;
-select 'c' like '\_' as want0;
-want0
-0
-SELECT SUBSTR('ваÑÑ',-2);
-SUBSTR('ваÑÑ',-2)
-ÑÑ
-create table t1 (id integer, a varchar(100) character set utf8mb4 collate utf8mb4_unicode_ci) engine InnoDB;
-insert into t1 values (1, 'Test');
-select * from t1 where soundex(a) = soundex('Test');
-id a
-1 Test
-select * from t1 where soundex(a) = soundex('TEST');
-id a
-1 Test
-select * from t1 where soundex(a) = soundex('test');
-id a
-1 Test
-drop table t1;
-select soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB);
-soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB)
-阅000
-select hex(soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB));
-hex(soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB))
-E99885303030
-select soundex(_utf8mb4 0xD091D092D093);
-soundex(_utf8mb4 0xD091D092D093)
-Б000
-select hex(soundex(_utf8mb4 0xD091D092D093));
-hex(soundex(_utf8mb4 0xD091D092D093))
-D091303030
-SET collation_connection='utf8mb4_general_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf8mb4_general_ci 6109
-utf8mb4_general_ci 61
-utf8mb4_general_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-"BEGIN ctype_german.inc"
-drop table if exists t1;
-create table t1 as select repeat(' ', 64) as s1;
-select collation(s1) from t1;
-collation(s1)
-utf8mb4_general_ci
-delete from t1;
-INSERT INTO t1 VALUES ('ud'),('uf');
-INSERT INTO t1 VALUES ('od'),('of');
-INSERT INTO t1 VALUES ('e');
-INSERT INTO t1 VALUES ('ad'),('af');
-insert into t1 values ('a'),('ae'),(_latin1 0xE4);
-insert into t1 values ('o'),('oe'),(_latin1 0xF6);
-insert into t1 values ('s'),('ss'),(_latin1 0xDF);
-insert into t1 values ('u'),('ue'),(_latin1 0xFC);
-INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
-INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
-select s1, hex(s1) from t1 order by s1, binary s1;
-s1 hex(s1)
-a 61
-ä C3A4
-ad 6164
-ae 6165
-af 6166
-e 65
-o 6F
-ö C3B6
-od 6F64
-oe 6F65
-of 6F66
-s 73
-ß C39F
-ss 7373
-u 75
-ü C3BC
-ud 7564
-ue 7565
-uf 7566
-Æ C386
-æ C3A6
-Å’ C592
-Å“ C593
-select group_concat(s1 order by binary s1) from t1 group by s1;
-group_concat(s1 order by binary s1)
-a,ä
-ad
-ae
-af
-e
-o,ö
-od
-oe
-of
-s,ß
-ss
-u,ü
-ud
-ue
-uf
-Æ,æ
-Å’,Å“
-SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
-s1 hex(s1) hex(weight_string(s1))
-a 61 0041
-ä C3A4 0041
-ad 6164 00410044
-ae 6165 00410045
-af 6166 00410046
-e 65 0045
-o 6F 004F
-ö C3B6 004F
-od 6F64 004F0044
-oe 6F65 004F0045
-of 6F66 004F0046
-s 73 0053
-ß C39F 0053
-ss 7373 00530053
-u 75 0055
-ü C3BC 0055
-ud 7564 00550044
-ue 7565 00550045
-uf 7566 00550046
-Æ C386 00C6
-æ C3A6 00C6
-Å’ C592 0152
-Å“ C593 0152
-SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
-s1 hex(s1)
-ae 6165
-drop table t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf8mb4 DEFAULT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('s',0),(_latin1 0xDF,1);
-SELECT * FROM t1 ORDER BY a, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY a DESC, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a), b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
-a b
-s 0
-ß 1
-DROP TABLE t1;
-"END ctype_german.inc"
-SET collation_connection='utf8mb4_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf8mb4_bin 6109
-utf8mb4_bin 61
-utf8mb4_bin 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 (
-user varchar(255) NOT NULL default ''
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES ('one'),('two');
-SELECT CHARSET('a');
-CHARSET('a')
-utf8mb4
-SELECT user, CONCAT('<', user, '>') AS c FROM t1;
-user c
-one <one>
-two <two>
-DROP TABLE t1;
-create table t1 (f1 varchar(1) not null) default charset utf8mb4 engine InnoDB;
-insert into t1 values (''), ('');
-select concat(concat(_latin1'->',f1),_latin1'<-') from t1;
-concat(concat(_latin1'->',f1),_latin1'<-')
--><-
--><-
-drop table t1;
-select convert(_koi8r'É' using utf8mb4) < convert(_koi8r'Ê' using utf8mb4);
-convert(_koi8r'?' using utf8mb4) < convert(_koi8r'?' using utf8mb4)
-1
-set names latin1;
-create table t1 (a varchar(10)) character set utf8mb4 engine InnoDB;
-insert into t1 values ('test');
-select ifnull(a,'') from t1;
-ifnull(a,'')
-test
-drop table t1;
-select repeat(_utf8mb4'+',3) as h union select NULL;
-h
-+++
-NULL
-select ifnull(NULL, _utf8mb4'string');
-ifnull(NULL, _utf8mb4'string')
-string
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_lithuanian_ci) engine InnoDB;
-insert into t1 values ('I'),('K'),('Y');
-select * from t1 where s1 < 'K' and s1 = 'Y';
-s1
-I
-Y
-select * from t1 where 'K' > s1 and s1 = 'Y';
-s1
-I
-Y
-drop table t1;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_czech_ci) engine InnoDB;
-insert into t1 values ('c'),('d'),('h'),('ch'),('CH'),('cH'),('Ch'),('i');
-select * from t1 where s1 > 'd' and s1 = 'CH';
-s1
-CH
-Ch
-ch
-select * from t1 where 'd' < s1 and s1 = 'CH';
-s1
-CH
-Ch
-ch
-select * from t1 where s1 = 'cH' and s1 <> 'ch';
-s1
-cH
-select * from t1 where 'cH' = s1 and s1 <> 'ch';
-s1
-cH
-drop table t1;
-create table t1 (a varchar(255)) default character set utf8mb4 engine InnoDB;
-insert into t1 values (1.0);
-drop table t1;
-create table t1 (
-id int not null,
-city varchar(20) not null,
-key (city(7),id)
-) character set=utf8mb4 engine InnoDB;
-insert into t1 values (1,'Durban North');
-insert into t1 values (2,'Durban');
-select * from t1 where city = 'Durban';
-id city
-2 Durban
-select * from t1 where city = 'Durban ';
-id city
-2 Durban
-drop table t1;
-create table t1 (x set('A', 'B') default 0) character set utf8mb4 engine InnoDB;
-ERROR 42000: Invalid default value for 'x'
-create table t1 (x enum('A', 'B') default 0) character set utf8mb4 engine InnoDB;
-ERROR 42000: Invalid default value for 'x'
-SET NAMES UTF8;
-CREATE TABLE t1 (
-`id` int(20) NOT NULL auto_increment,
-`country` varchar(100) NOT NULL default '',
-`shortcode` varchar(100) NOT NULL default '',
-`operator` varchar(100) NOT NULL default '',
-`momid` varchar(30) NOT NULL default '',
-`keyword` varchar(160) NOT NULL default '',
-`content` varchar(160) NOT NULL default '',
-`second_token` varchar(160) default NULL,
-`gateway_id` int(11) NOT NULL default '0',
-`created` datetime NOT NULL default '0000-00-00 00:00:00',
-`msisdn` varchar(15) NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `MSCCSPK_20030521130957121` (`momid`),
-KEY `IX_mobile_originated_message_keyword` (`keyword`),
-KEY `IX_mobile_originated_message_created` (`created`),
-KEY `IX_mobile_originated_message_support` (`msisdn`,`momid`,`keyword`,`gateway_id`,`created`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-INSERT INTO t1 VALUES
-(1,'blah','464','aaa','fkc1c9ilc20x0hgae7lx6j09','ERR','ERR Имри.Ðфимим.Ðеимимримдмримрмрирор имримримримр имридм ирбднримрфмририримрфмфмим.Ðд.Д имдимримрад.Ðдимримримрмдиримримримр м.Дадимфшьмримд им.Ðдимимрн имадми','ИМРИ.ÐФИМИМ.ÐЕИМИМРИМДМРИМРМРИРОР',3,'2005-06-01 17:30:43','1234567890'),
-(2,'blah','464','aaa','haxpl2ilc20x00bj4tt2m5ti','11','11 g','G',3,'2005-06-02 22:43:10','1234567890');
-CREATE TABLE t2 (
-`msisdn` varchar(15) NOT NULL default '',
-`operator_id` int(11) NOT NULL default '0',
-`created` datetime NOT NULL default '0000-00-00 00:00:00',
-UNIQUE KEY `PK_user` (`msisdn`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-INSERT INTO t2 VALUES ('1234567890',2,'2005-05-24 13:53:25');
-SELECT content, t2.msisdn FROM t1, t2 WHERE t1.msisdn = '1234567890';
-content msisdn
-ERR Имри.Ðфимим.Ðеимимримдмримрмрирор имримримримр имридм ирбднримрфмририримрфмфмим.Ðд.Д имдимримрад.Ðдимримримрмдиримримримр м.Дадимфшьмримд им.Ðдимимрн имадми 1234567890
-11 g 1234567890
-DROP TABLE t1,t2;
-create table t1 (a char(20) character set utf8mb4) engine InnoDB;
-insert into t1 values ('123456'),('андрей');
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 modify a char(2) character set utf8mb4;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-Warning 1265 Data truncated for column 'a' at row 2
-select char_length(a), length(a), a from t1 order by a;
-char_length(a) length(a) a
-2 2 12
-2 4 ан
-drop table t1;
-set names utf8mb4;
-select 'andre%' like 'andreñ%' escape 'ñ';
-'andre%' like 'andreñ%' escape 'ñ'
-1
-set names utf8mb4;
-select 'a\\' like 'a\\';
-'a\\' like 'a\\'
-1
-select 'aa\\' like 'a%\\';
-'aa\\' like 'a%\\'
-1
-create table t1 (a char(10), key(a)) character set utf8mb4 engine InnoDB;
-insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
-select * from t1 where a like "abc%";
-a
-abc
-abcd
-select * from t1 where a like concat("abc","%");
-a
-abc
-abcd
-select * from t1 where a like "ABC%";
-a
-abc
-abcd
-select * from t1 where a like "test%";
-a
-test
-select * from t1 where a like "te_t";
-a
-test
-select * from t1 where a like "%a%";
-a
-a
-abc
-abcd
-select * from t1 where a like "%abcd%";
-a
-abcd
-select * from t1 where a like "%abc\d%";
-a
-abcd
-drop table t1;
-CREATE TABLE t1 (
-a varchar(255) NOT NULL default '',
-KEY a (a)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;
-insert into t1 values (_utf8mb4 0xe880bd);
-insert into t1 values (_utf8mb4 0x5b);
-select hex(a) from t1;
-hex(a)
-5B
-E880BD
-drop table t1;
-set names 'latin1';
-create table t1 (a varchar(255)) default charset=utf8mb4 engine InnoDB;
-select * from t1 where find_in_set('-1', a);
-a
-drop table t1;
-create table t1 (a int) engine InnoDB;
-insert into t1 values (48),(49),(50);
-set names utf8mb4;
-select distinct char(a) from t1;
-char(a)
-0
-1
-2
-drop table t1;
-CREATE TABLE t1 (t TINYTEXT CHARACTER SET utf8mb4) ENGINE InnoDB;
-INSERT INTO t1 VALUES(REPEAT('a', 100));
-CREATE TEMPORARY TABLE t2 ENGINE InnoDB SELECT COALESCE(t) AS bug FROM t1;
-SELECT LENGTH(bug) FROM t2;
-LENGTH(bug)
-100
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (item varchar(255)) default character set utf8mb4 ENGINE InnoDB;
-INSERT INTO t1 VALUES (N'\\');
-INSERT INTO t1 VALUES (_utf8mb4'\\');
-INSERT INTO t1 VALUES (N'Cote d\'Ivoire');
-INSERT INTO t1 VALUES (_utf8mb4'Cote d\'Ivoire');
-SELECT item FROM t1 ORDER BY item;
-item
-Cote d'Ivoire
-Cote d'Ivoire
-\
-\
-DROP TABLE t1;
-SET NAMES utf8mb4;
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1(a VARCHAR(255), KEY(a)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
-INSERT INTO t1 VALUES('uu');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uU');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uu');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('UuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-alter table t1 add b int;
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',1);
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',2);
-delete from t1 where b=1;
-INSERT INTO t1 VALUES('UUABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',1);
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',3);
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',4);
-delete from t1 where b=3;
-INSERT INTO t1 VALUES('uUABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',3);
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4) engine InnoDB;
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_general_ci from t1 where s1 like 'ペテ%';
-before_delete_general_ci
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_general_ci from t1 where s1 like 'ペテ%';
-after_delete_general_ci
-ペテルグル
-drop table t1;
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_unicode_ci) engine InnoDB;
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_unicode_ci from t1 where s1 like 'ペテ%';
-before_delete_unicode_ci
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_unicode_ci from t1 where s1 like 'ペテ%';
-after_delete_unicode_ci
-ペテルグル
-drop table t1;
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_bin) engine InnoDB;
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_bin from t1 where s1 like 'ペテ%';
-before_delete_bin
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_bin from t1 where s1 like 'ペテ%';
-after_delete_bin
-ペテルグル
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(30) not null primary key)
-engine=InnoDB default character set utf8mb4 collate utf8mb4_general_ci;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as gci1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-gci1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as gci2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-gci2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(30) not null primary key)
-engine=InnoDB default character set utf8mb4 collate utf8mb4_unicode_ci;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as uci1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-uci1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as uci2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-uci2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(30) not null primary key)
-engine=InnoDB default character set utf8mb4 collate utf8mb4_bin;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as bin1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-bin1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as bin2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-bin2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-SET NAMES utf8mb4;
-CREATE TABLE t1 (id int PRIMARY KEY,
-a varchar(16) collate utf8mb4_unicode_ci NOT NULL default '',
-b int,
-f varchar(128) default 'XXX',
-INDEX (a(4))
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-INSERT INTO t1(id, a, b) VALUES
-(1, 'cccc', 50), (2, 'cccc', 70), (3, 'cccc', 30),
-(4, 'cccc', 30), (5, 'cccc', 20), (6, 'bbbbbb', 40),
-(7, 'dddd', 30), (8, 'aaaa', 10), (9, 'aaaa', 50),
-(10, 'eeeee', 40), (11, 'bbbbbb', 60);
-SELECT id, a, b FROM t1;
-id a b
-1 cccc 50
-10 eeeee 40
-11 bbbbbb 60
-2 cccc 70
-3 cccc 30
-4 cccc 30
-5 cccc 20
-6 bbbbbb 40
-7 dddd 30
-8 aaaa 10
-9 aaaa 50
-SELECT id, a, b FROM t1 WHERE a BETWEEN 'aaaa' AND 'bbbbbb';
-id a b
-11 bbbbbb 60
-6 bbbbbb 40
-8 aaaa 10
-9 aaaa 50
-SELECT id, a FROM t1 WHERE a='bbbbbb';
-id a
-11 bbbbbb
-6 bbbbbb
-SELECT id, a FROM t1 WHERE a='bbbbbb' ORDER BY b;
-id a
-6 bbbbbb
-11 bbbbbb
-DROP TABLE t1;
-SET NAMES utf8mb4;
-CREATE TABLE t1 (
-a CHAR(13) DEFAULT '',
-INDEX(a)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES
-('Käli Käli 2-4'), ('Käli Käli 2-4'),
-('Käli Käli 2+4'), ('Käli Käli 2+4'),
-('Käli Käli 2-6'), ('Käli Käli 2-6');
-INSERT INTO t1 SELECT * FROM t1;
-CREATE TABLE t2 (
-a CHAR(13) DEFAULT '',
-INDEX(a)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO t2 VALUES
-('Kali Kali 2-4'), ('Kali Kali 2-4'),
-('Kali Kali 2+4'), ('Kali Kali 2+4'),
-('Kali Kali 2-6'), ('Kali Kali 2-6');
-INSERT INTO t2 SELECT * FROM t2;
-SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
-a
-Käli Käli 2+4
-Käli Käli 2+4
-Käli Käli 2+4
-Käli Käli 2+4
-SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
-a
-Kali Kali 2+4
-Kali Kali 2+4
-Kali Kali 2+4
-Kali Kali 2+4
-EXPLAIN SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 53 NULL 4 Using where; Using index
-EXPLAIN SELECT a FROM t1 WHERE a = 'Käli Käli 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 53 const 4 Using where; Using index
-EXPLAIN SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 14 NULL 4 Using where; Using index
-EXPLAIN SELECT a FROM t2 WHERE a = 'Kali Kali 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref a a 14 const 4 Using where; Using index
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-a char(255) DEFAULT '',
-KEY(a(10))
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-DROP TABLE t1;
-CREATE TABLE t1 (
-a char(255) DEFAULT ''
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-ALTER TABLE t1 ADD KEY (a(10));
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-DROP TABLE t1;
-SET NAMES latin2;
-CREATE TABLE t1 (
-id int(11) NOT NULL default '0',
-tid int(11) NOT NULL default '0',
-val text NOT NULL,
-INDEX idx(tid, val(10))
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-INSERT INTO t1 VALUES
-(40988,72,'VOLNÝ ADSL'),(41009,72,'VOLNÝ ADSL'),
-(41032,72,'VOLNÝ ADSL'),(41038,72,'VOLNÝ ADSL'),
-(41063,72,'VOLNÝ ADSL'),(41537,72,'VOLNÝ ADSL Office'),
-(42141,72,'VOLNÝ ADSL'),(42565,72,'VOLNÝ ADSL Combi'),
-(42749,72,'VOLNÝ ADSL'),(44205,72,'VOLNÝ ADSL');
-SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNY ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNÝ ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-SELECT * FROM t1 WHERE tid=72 and val LIKE '%VOLNÝ ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-ALTER TABLE t1 DROP KEY idx;
-ALTER TABLE t1 ADD KEY idx (tid,val(11));
-SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNÝ ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-DROP TABLE t1;
-create table t1(a char(200) collate utf8mb4_unicode_ci NOT NULL default '')
-default charset=utf8mb4 collate=utf8mb4_unicode_ci engine InnoDB;
-insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65'));
-explain select distinct a from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary
-SELECT COUNT(*) FROM (SELECT DISTINCT a FROM t1) AS t2;
-COUNT(*)
-1
-explain select a from t1 group by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
-SELECT COUNT(*) FROM (SELECT a FROM t1 GROUP BY a) AS t2;
-COUNT(*)
-1
-drop table t1;
-create table t1(a char(10)) default charset utf8mb4 engine InnoDB;
-insert into t1 values ('123'), ('456');
-explain
-select substr(Z.a,-1), Z.a from t1 as Y join t1 as Z on Y.a=Z.a order by 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Y ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-1 SIMPLE Z ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-select substr(Z.a,-1), Z.a from t1 as Y join t1 as Z on Y.a=Z.a order by 1;
-substr(Z.a,-1) a
-3 123
-6 456
-drop table t1;
-SET CHARACTER SET utf8mb4;
-SHOW VARIABLES LIKE 'character\_set\_%';
-Variable_name Value
-character_set_client utf8mb4
-character_set_connection latin1
-character_set_database latin1
-character_set_filesystem binary
-character_set_results utf8mb4
-character_set_server latin1
-character_set_system utf8
-CREATE DATABASE crashtest DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
-USE crashtest;
-CREATE TABLE crashtest (crash char(10)) DEFAULT CHARSET=utf8mb4 ENGINE InnoDB;
-INSERT INTO crashtest VALUES ('35'), ('36'), ('37');
-SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8mb4);
-crash
-35
-36
-37
-INSERT INTO crashtest VALUES ('-1000');
-EXPLAIN SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8mb4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE crashtest ALL NULL NULL NULL NULL 4 Using filesort
-SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8mb4);
-crash
--1000
-35
-36
-37
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FFFFFC'
-DROP TABLE crashtest;
-DROP DATABASE crashtest;
-USE test;
-SET CHARACTER SET default;
-CREATE TABLE t1(id varchar(20) NOT NULL) DEFAULT CHARSET=utf8mb4 ENGINE InnoDB;
-INSERT INTO t1 VALUES ('xxx'), ('aa'), ('yyy'), ('aa');
-SELECT id FROM t1;
-id
-aa
-aa
-xxx
-yyy
-SELECT DISTINCT id FROM t1;
-id
-aa
-xxx
-yyy
-SELECT DISTINCT id FROM t1 ORDER BY id;
-id
-aa
-xxx
-yyy
-DROP TABLE t1;
-create table t1 (
-a varchar(26) not null
-) default character set utf8mb4 ENGINE InnoDB;
-insert into t1 (a) values ('abcdefghijklmnopqrstuvwxyz');
-select * from t1;
-a
-abcdefghijklmnopqrstuvwxyz
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(20) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghijklmnopqrst
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a char(15) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghijklmno
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a char(10) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghij
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(5) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcde
-drop table t1;
-create table t1 (
-a varchar(4000) not null
-) default character set utf8mb4 engine InnoDB;
-insert into t1 values (repeat('a',4000));
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(3000) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select length(a) from t1;
-length(a)
-3000
-drop table t1;
-set names utf8mb4;
-select hex(char(1 using utf8mb4));
-hex(char(1 using utf8mb4))
-01
-select char(0xd1,0x8f using utf8mb4);
-char(0xd1,0x8f using utf8mb4)
-select char(0xd18f using utf8mb4);
-char(0xd18f using utf8mb4)
-select char(53647 using utf8mb4);
-char(53647 using utf8mb4)
-select char(0xff,0x8f using utf8mb4);
-char(0xff,0x8f using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF8F'
-select convert(char(0xff,0x8f) using utf8mb4);
-convert(char(0xff,0x8f) using utf8mb4)
-??
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF\x8F'
-set sql_mode=traditional;
-select char(0xff,0x8f using utf8mb4);
-char(0xff,0x8f using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF8F'
-select char(195 using utf8mb4);
-char(195 using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'C3'
-select char(196 using utf8mb4);
-char(196 using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'C4'
-select char(2557 using utf8mb4);
-char(2557 using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FD'
-select convert(char(0xff,0x8f) using utf8mb4);
-convert(char(0xff,0x8f) using utf8mb4)
-??
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF\x8F'
-select hex(convert(char(2557 using latin1) using utf8mb4));
-hex(convert(char(2557 using latin1) using utf8mb4))
-09C3BD
-select hex(char(195));
-hex(char(195))
-C3
-select hex(char(196));
-hex(char(196))
-C4
-select hex(char(2557));
-hex(char(2557))
-09FD
-set names utf8mb4;
-create table t1 (a char(1)) default character set utf8mb4 engine InnoDB;
-create table t2 (a char(1)) default character set utf8mb4 engine InnoDB;
-insert into t1 values('a'),('a'),(0xE38182),(0xE38182);
-insert into t1 values('i'),('i'),(0xE38184),(0xE38184);
-select * from t1 union distinct select * from t2;
-a
-a
-i
-ã‚
-ã„
-drop table t1,t2;
-set names utf8mb4;
-create table t1 (a char(10), b varchar(10)) engine InnoDB;
-insert into t1 values ('bar','kostja');
-insert into t1 values ('kostja','bar');
-prepare my_stmt from "select * from t1 where a=?";
-set @a:='bar';
-execute my_stmt using @a;
-a b
-bar kostja
-set @a:='kostja';
-execute my_stmt using @a;
-a b
-kostja bar
-set @a:=null;
-execute my_stmt using @a;
-a b
-drop table if exists t1;
-drop table if exists t1;
-drop view if exists v1, v2;
-set names utf8mb4;
-create table t1(col1 varchar(12) character set utf8mb4 collate utf8mb4_unicode_ci) engine InnoDB;
-insert into t1 values('t1_val');
-create view v1 as select 'v1_val' as col1;
-select coercibility(col1), collation(col1) from v1;
-coercibility(col1) collation(col1)
-4 utf8mb4_general_ci
-create view v2 as select col1 from v1 union select col1 from t1;
-select coercibility(col1), collation(col1)from v2;
-coercibility(col1) collation(col1)
-2 utf8mb4_unicode_ci
-2 utf8mb4_unicode_ci
-drop view v1, v2;
-create view v1 as select 'v1_val' collate utf8mb4_swedish_ci as col1;
-select coercibility(col1), collation(col1) from v1;
-coercibility(col1) collation(col1)
-0 utf8mb4_swedish_ci
-create view v2 as select col1 from v1 union select col1 from t1;
-select coercibility(col1), collation(col1) from v2;
-coercibility(col1) collation(col1)
-0 utf8mb4_swedish_ci
-0 utf8mb4_swedish_ci
-drop view v1, v2;
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int) engine InnoDB;
-insert into t1 values ('a',1);
-select concat(a, if(b>10, N'x', N'y')) from t1;
-concat(a, if(b>10, N'x', N'y'))
-ay
-select concat(a, if(b>10, N'æ', N'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int) engine InnoDB;
-insert into t1 values ('a',1);
-select concat(a, if(b>10, _utf8mb4'x', _utf8mb4'y')) from t1;
-concat(a, if(b>10, _utf8mb4'x', _utf8mb4'y'))
-ay
-select concat(a, if(b>10, _utf8mb4'æ', _utf8mb4'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int) engine InnoDB;
-insert into t1 values ('a',1);
-select concat(a, if(b>10, _utf8mb4 0x78, _utf8mb4 0x79)) from t1;
-concat(a, if(b>10, _utf8mb4 0x78, _utf8mb4 0x79))
-ay
-select concat(a, if(b>10, _utf8mb4 0xC3A6, _utf8mb4 0xC3AF)) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int) engine InnoDB;
-insert into t1 values ('a',1);
-select concat(a, if(b>10, 'x' 'x', 'y' 'y')) from t1;
-concat(a, if(b>10, 'x' 'x', 'y' 'y'))
-ayy
-select concat(a, if(b>10, 'x' 'æ', 'y' 'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-CREATE TABLE t1 (
-colA int(11) NOT NULL,
-colB varchar(255) character set utf8mb4 NOT NULL,
-PRIMARY KEY (colA)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t1 (colA, colB) VALUES (1, 'foo'), (2, 'foo bar');
-CREATE TABLE t2 (
-colA int(11) NOT NULL,
-colB varchar(255) character set utf8mb4 NOT NULL,
-KEY bad (colA,colB(3))
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t2 (colA, colB) VALUES (1, 'foo'),(2, 'foo bar');
-SELECT * FROM t1 JOIN t2 ON t1.colA=t2.colA AND t1.colB=t2.colB
-WHERE t1.colA < 3;
-colA colB colA colB
-1 foo 1 foo
-2 foo bar 2 foo bar
-DROP TABLE t1, t2;
-SELECT 'н1234567890' UNION SELECT _binary '1';
-н1234567890
-н1234567890
-1
-SELECT 'н1234567890' UNION SELECT 1;
-н1234567890
-н1234567890
-1
-SELECT '1' UNION SELECT 'н1234567890';
-1
-1
-н1234567890
-SELECT 1 UNION SELECT 'н1234567890';
-1
-1
-н1234567890
-CREATE TABLE t1 (c VARCHAR(11)) CHARACTER SET utf8mb4 ENGINE InnoDB;
-CREATE TABLE t2 (b CHAR(1) CHARACTER SET binary, i INT) ENGINE InnoDB;
-INSERT INTO t1 (c) VALUES ('н1234567890');
-INSERT INTO t2 (b, i) VALUES ('1', 1);
-SELECT c FROM t1 UNION SELECT b FROM t2;
-c
-н1234567890
-1
-SELECT c FROM t1 UNION SELECT i FROM t2;
-c
-н1234567890
-1
-SELECT b FROM t2 UNION SELECT c FROM t1;
-b
-1
-н1234567890
-SELECT i FROM t2 UNION SELECT c FROM t1;
-i
-1
-н1234567890
-DROP TABLE t1, t2;
-set sql_mode=traditional;
-select hex(char(0xFF using utf8mb4));
-hex(char(0xFF using utf8mb4))
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF'
-select hex(convert(0xFF using utf8mb4));
-hex(convert(0xFF using utf8mb4))
-3F
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF'
-select hex(_utf8mb4 0x616263FF);
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 B'001111111111');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select (_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-set sql_mode=default;
-select hex(char(0xFF using utf8mb4));
-hex(char(0xFF using utf8mb4))
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF'
-select hex(convert(0xFF using utf8mb4));
-hex(convert(0xFF using utf8mb4))
-3F
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF'
-select hex(_utf8mb4 0x616263FF);
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 B'001111111111');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select (_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL) ENGINE InnoDB;
-INSERT INTO t1 VALUES (70000, 1092), (70001, 1085), (70002, 1065);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-ALTER TABLE t1 ADD UNIQUE (b);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-DROP INDEX b ON t1;
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-ALTER TABLE t1 ADD INDEX (b);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) from t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-DROP TABLE t1;
-#
-# Bug#26474: Add Sinhala script (Sri Lanka) collation to MySQL
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-predicted_order int NOT NULL,
-utf8mb4_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb4 ENGINE InnoDB;
-INSERT INTO t1 VALUES (19, x'E0B696'), (30, x'E0B69AE0B798'), (61, x'E0B6AF'), (93, x'E0B799'), (52, x'E0B6A6'), (73, x'E0B6BBE0B78AE2808D'), (3, x'E0B686'), (56, x'E0B6AA'), (55, x'E0B6A9'), (70, x'E0B6B9'), (94, x'E0B79A'), (80, x'E0B785'), (25, x'E0B69AE0B791'), (48, x'E0B6A2'), (13, x'E0B690'), (86, x'E0B793'), (91, x'E0B79F'), (81, x'E0B786'), (79, x'E0B784'), (14, x'E0B691'), (99, x'E0B78A'), (8, x'E0B68B'), (68, x'E0B6B7'), (22, x'E0B69A'), (16, x'E0B693'), (33, x'E0B69AE0B7B3'), (38, x'E0B69AE0B79D'), (21, x'E0B683'), (11, x'E0B68E'), (77, x'E0B782'), (40, x'E0B69AE0B78A'), (101, x'E0B78AE2808DE0B6BB'), (35, x'E0B69AE0B79A'), (1, x'E0B7B4'), (9, x'E0B68C'), (96, x'E0B79C'), (6, x'E0B689'), (95, x'E0B79B'), (88, x'E0B796'), (64, x'E0B6B3'), (26, x'E0B69AE0B792'), (82, x'E0B78F'), (28, x'E0B69AE0B794'), (39, x'E0B69AE0B79E'), (97, x'E0B79D'), (2, x'E0B685'), (75, x'E0B780'), (34, x'E0B69AE0B799'), (69, x'E0B6B8'), (83, x'E0B790'), (18, x'E0B695'), (90, x'E0B7B2'), (17, x'E0B694'), (72, x'E0B6BB'), (66, x'E0B6B5'), (59, x'E0B6AD'), (44, x'E0B69E'), (15, x'E0B692'), (23, x'E0B69AE0B78F'), (65, x'E0B6B4'), (42, x'E0B69C'), (63, x'E0B6B1'), (85, x'E0B792'), (47, x'E0B6A1'), (49, x'E0B6A3'), (92, x'E0B7B3'), (78, x'E0B783'), (36, x'E0B69AE0B79B'), (4, x'E0B687'), (24, x'E0B69AE0B790'), (87, x'E0B794'), (37, x'E0B69AE0B79C'), (32, x'E0B69AE0B79F'), (29, x'E0B69AE0B796'), (43, x'E0B69D'), (62, x'E0B6B0'), (100, x'E0B78AE2808DE0B6BA'), (60, x'E0B6AE'), (45, x'E0B69F'), (12, x'E0B68F'), (46, x'E0B6A0'), (50, x'E0B6A5'), (51, x'E0B6A4'), (5, x'E0B688'), (76, x'E0B781'), (89, x'E0B798'), (74, x'E0B6BD'), (10, x'E0B68D'), (57, x'E0B6AB'), (71, x'E0B6BA'), (58, x'E0B6AC'), (27, x'E0B69AE0B793'), (54, x'E0B6A8'), (84, x'E0B791'), (31, x'E0B69AE0B7B2'), (98, x'E0B79E'), (53, x'E0B6A7'), (41, x'E0B69B'), (67, x'E0B6B6'), (7, x'E0B68A'), (20, x'E0B682');
-SELECT predicted_order, hex(utf8mb4_encoding) FROM t1 ORDER BY utf8mb4_encoding COLLATE utf8mb4_sinhala_ci;
-predicted_order hex(utf8mb4_encoding)
-1 E0B7B4
-2 E0B685
-3 E0B686
-4 E0B687
-5 E0B688
-6 E0B689
-7 E0B68A
-8 E0B68B
-9 E0B68C
-10 E0B68D
-11 E0B68E
-12 E0B68F
-13 E0B690
-14 E0B691
-15 E0B692
-16 E0B693
-17 E0B694
-18 E0B695
-19 E0B696
-20 E0B682
-21 E0B683
-22 E0B69A
-23 E0B69AE0B78F
-24 E0B69AE0B790
-25 E0B69AE0B791
-26 E0B69AE0B792
-27 E0B69AE0B793
-28 E0B69AE0B794
-29 E0B69AE0B796
-30 E0B69AE0B798
-31 E0B69AE0B7B2
-32 E0B69AE0B79F
-33 E0B69AE0B7B3
-34 E0B69AE0B799
-35 E0B69AE0B79A
-36 E0B69AE0B79B
-37 E0B69AE0B79C
-38 E0B69AE0B79D
-39 E0B69AE0B79E
-40 E0B69AE0B78A
-41 E0B69B
-42 E0B69C
-43 E0B69D
-44 E0B69E
-45 E0B69F
-46 E0B6A0
-47 E0B6A1
-48 E0B6A2
-49 E0B6A3
-50 E0B6A5
-51 E0B6A4
-52 E0B6A6
-53 E0B6A7
-54 E0B6A8
-55 E0B6A9
-56 E0B6AA
-57 E0B6AB
-58 E0B6AC
-59 E0B6AD
-60 E0B6AE
-61 E0B6AF
-62 E0B6B0
-63 E0B6B1
-64 E0B6B3
-65 E0B6B4
-66 E0B6B5
-67 E0B6B6
-68 E0B6B7
-69 E0B6B8
-70 E0B6B9
-71 E0B6BA
-72 E0B6BB
-73 E0B6BBE0B78AE2808D
-74 E0B6BD
-75 E0B780
-76 E0B781
-77 E0B782
-78 E0B783
-79 E0B784
-80 E0B785
-81 E0B786
-82 E0B78F
-83 E0B790
-84 E0B791
-85 E0B792
-86 E0B793
-87 E0B794
-88 E0B796
-89 E0B798
-90 E0B7B2
-91 E0B79F
-92 E0B7B3
-93 E0B799
-94 E0B79A
-95 E0B79B
-96 E0B79C
-97 E0B79D
-98 E0B79E
-99 E0B78A
-100 E0B78AE2808DE0B6BA
-101 E0B78AE2808DE0B6BB
-DROP TABLE t1;
-#
-# Bug#32914 Character sets: illegal characters in utf8mb4 and utf32 columns
-#
-create table t1 (utf8mb4 char(1) character set utf8mb4) engine InnoDB;
-Testing [F0][90..BF][80..BF][80..BF]
-insert into t1 values (0xF0908080);
-insert into t1 values (0xF0BFBFBF);
-insert ignore into t1 values (0xF08F8080);
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x8F\x80\x80' for column 'utf8mb4' at row 1
-select hex(utf8mb4) from t1;
-hex(utf8mb4)
-3F
-F0908080
-F0BFBFBF
-delete from t1;
-Testing [F2..F3][80..BF][80..BF][80..BF]
-insert into t1 values (0xF2808080);
-insert into t1 values (0xF2BFBFBF);
-select hex(utf8mb4) from t1;
-hex(utf8mb4)
-F2808080
-F2BFBFBF
-delete from t1;
-Testing [F4][80..8F][80..BF][80..BF]
-insert into t1 values (0xF4808080);
-insert into t1 values (0xF48F8080);
-insert ignore into t1 values (0xF4908080);
-Warnings:
-Warning 1366 Incorrect string value: '\xF4\x90\x80\x80' for column 'utf8mb4' at row 1
-select hex(utf8mb4) from t1;
-hex(utf8mb4)
-3F
-F4808080
-F48F8080
-drop table t1;
-#
-# Check strnxfrm() with odd length
-#
-set max_sort_length=5;
-select @@max_sort_length;
-@@max_sort_length
-5
-create table t1 (a varchar(128) character set utf8mb4 collate utf8mb4_general_ci) engine InnoDB;
-insert into t1 values ('a'),('b'),('c');
-select * from t1 order by a;
-a
-a
-b
-c
-alter table t1 modify a varchar(128) character set utf8mb4 collate utf8mb4_bin;
-select * from t1 order by a;
-a
-a
-b
-c
-drop table t1;
-set max_sort_length=default;
-#
-# Bug#26180: Can't add columns to tables created with utf8mb4 text indexes
-#
-CREATE TABLE t1 (
-clipid INT NOT NULL,
-Tape TINYTEXT,
-PRIMARY KEY (clipid),
-KEY tape(Tape(255))
-) CHARACTER SET=utf8mb4 ENGINE InnoDB;
-ALTER TABLE t1 ADD mos TINYINT DEFAULT 0 AFTER clipid;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `clipid` int(11) NOT NULL,
- `mos` tinyint(4) DEFAULT 0,
- `Tape` tinytext DEFAULT NULL,
- PRIMARY KEY (`clipid`),
- KEY `tape` (`Tape`(255))
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
-DROP TABLE t1;
-#
-# Testing 4-byte values.
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-u_decimal int NOT NULL,
-utf8mb4_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb4 ENGINE InnoDB;
-INSERT INTO t1 VALUES (119040, x'f09d8480'),
-# G CLEF
-(119070, x'f09d849e'),
-# HALF NOTE
-(119134, x'f09d859e'),
-# MUSICAL SYMBOL CROIX
-(119247, x'f09d878f'),
-# MATHEMATICAL BOLD ITALIC CAPITAL DELTA
-(120607, x'f09d9c9f'),
-# SANS-SERIF BOLD ITALIC CAPITAL PI
-(120735, x'f09d9e9f'),
-# <Plane 16 Private Use, Last> (last 4 byte character)
-(1114111, x'f48fbfbf'),
-# VARIATION SELECTOR-256
-(917999, x'f3a087af');
-INSERT INTO t1 VALUES (119070, x'f09d849ef09d859ef09d859ef09d8480f09d859ff09d859ff09d859ff09d85a0f09d85a0f09d8480');
-INSERT INTO t1 VALUES (65131, x'efb9abf09d849ef09d859ef09d859ef09d8480f09d859fefb9abefb9abf09d85a0efb9ab');
-INSERT IGNORE INTO t1 VALUES (119070, x'f09d849ef09d859ef09d859ef09d8480f09d859ff09d859ff09d859ff09d85a0f09d85a0f09d8480f09d85a0');
-Warnings:
-Warning 1265 Data truncated for column 'utf8mb4_encoding' at row 1
-SELECT u_decimal, hex(utf8mb4_encoding) FROM t1 ORDER BY utf8mb4_encoding COLLATE utf8mb4_general_ci, BINARY utf8mb4_encoding;
-u_decimal hex(utf8mb4_encoding)
-1114111 F48FBFBF
-119040 F09D8480
-119070 F09D849E
-119070 F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480
-119070 F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480
-119134 F09D859E
-119247 F09D878F
-120607 F09D9C9F
-120735 F09D9E9F
-65131 EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9AB
-917999 F3A087AF
-INSERT IGNORE INTO t1 VALUES (1114111, x'f5808080');
-Warnings:
-Warning 1366 Incorrect string value: '\xF5\x80\x80\x80' for column 'utf8mb4_encoding' at row 1
-SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
-table_name= 't1' AND column_name= 'utf8mb4_encoding';
-character_maximum_length character_octet_length
-10 40
-DROP TABLE IF EXISTS t2;
-CREATE TABLE t2 (
-u_decimal int NOT NULL,
-utf8mb3_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb3 ENGINE InnoDB;
-INSERT INTO t2 VALUES (42856, x'ea9da8');
-INSERT INTO t2 VALUES (65131, x'efb9ab');
-INSERT IGNORE INTO t2 VALUES (1114111, x'f48fbfbf');
-Warnings:
-Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column 'utf8mb3_encoding' at row 1
-SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
-table_name= 't2' AND column_name= 'utf8mb3_encoding';
-character_maximum_length character_octet_length
-10 30
-UPDATE IGNORE t2 SET utf8mb3_encoding= x'f48fbfbd' where u_decimal= 42856;
-Warnings:
-Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBD' for column 'utf8mb3_encoding' at row 1
-UPDATE t2 SET utf8mb3_encoding= _utf8mb4 x'ea9da8' where u_decimal= 42856;
-SELECT HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) FROM t1;
-HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8'))
-3F3F3F3FEA9DA8
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9ABEA9DA8
-F09D8480EA9DA8
-F09D849EEA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-F09D859EEA9DA8
-F09D878FEA9DA8
-F09D9C9FEA9DA8
-F09D9E9FEA9DA8
-F3A087AFEA9DA8
-F48FBFBFEA9DA8
-SELECT HEX(CONCAT(utf8mb4_encoding, utf8mb3_encoding)) FROM t1,t2;
-HEX(CONCAT(utf8mb4_encoding, utf8mb3_encoding))
-3F3F3F3F3F3F3F3F
-3F3F3F3FEA9DA8
-3F3F3F3FEFB9AB
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9AB3F3F3F3F
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9ABEA9DA8
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9ABEFB9AB
-F09D84803F3F3F3F
-F09D8480EA9DA8
-F09D8480EFB9AB
-F09D849E3F3F3F3F
-F09D849EEA9DA8
-F09D849EEFB9AB
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D84803F3F3F3F
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D84803F3F3F3F
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EFB9AB
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EFB9AB
-F09D859E3F3F3F3F
-F09D859EEA9DA8
-F09D859EEFB9AB
-F09D878F3F3F3F3F
-F09D878FEA9DA8
-F09D878FEFB9AB
-F09D9C9F3F3F3F3F
-F09D9C9FEA9DA8
-F09D9C9FEFB9AB
-F09D9E9F3F3F3F3F
-F09D9E9FEA9DA8
-F09D9E9FEFB9AB
-F3A087AF3F3F3F3F
-F3A087AFEA9DA8
-F3A087AFEFB9AB
-F48FBFBF3F3F3F3F
-F48FBFBFEA9DA8
-F48FBFBFEFB9AB
-SELECT count(*) FROM t1, t2
-WHERE t1.utf8mb4_encoding > t2.utf8mb3_encoding;
-count(*)
-33
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 CONVERT TO CHARACTER SET utf8;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb4_encoding` varchar(10) NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb4_encoding),utf8mb4_encoding FROM t1;
-u_decimal hex(utf8mb4_encoding) utf8mb4_encoding
-1114111 3F ?
-1114111 3F3F3F3F ????
-119040 3F ?
-119070 3F ?
-119070 3F3F3F3F3F3F3F3F3F3F ??????????
-119070 3F3F3F3F3F3F3F3F3F3F ??????????
-119134 3F ?
-119247 3F ?
-120607 3F ?
-120735 3F ?
-65131 EFB9AB3F3F3F3F3FEFB9ABEFB9AB3FEFB9AB ﹫?????﹫﹫?﹫
-917999 3F ?
-ALTER TABLE t2 CONVERT TO CHARACTER SET utf8mb4;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb3_encoding` varchar(10) NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
-SELECT u_decimal,hex(utf8mb3_encoding) FROM t2;
-u_decimal hex(utf8mb3_encoding)
-1114111 3F3F3F3F
-42856 EA9DA8
-65131 EFB9AB
-ALTER TABLE t2 CONVERT TO CHARACTER SET utf8mb3;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb3_encoding` varchar(10) NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb3_encoding) FROM t2;
-u_decimal hex(utf8mb3_encoding)
-1114111 3F3F3F3F
-42856 EA9DA8
-65131 EFB9AB
-ALTER TABLE t1 MODIFY utf8mb4_encoding VARCHAR(10) CHARACTER SET utf8mb3;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb4_encoding` varchar(10) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb4_encoding) FROM t1;
-u_decimal hex(utf8mb4_encoding)
-1114111 3F
-1114111 3F3F3F3F
-119040 3F
-119070 3F
-119070 3F3F3F3F3F3F3F3F3F3F
-119070 3F3F3F3F3F3F3F3F3F3F
-119134 3F
-119247 3F
-120607 3F
-120735 3F
-65131 EFB9AB3F3F3F3F3FEFB9ABEFB9AB3FEFB9AB
-917999 3F
-ALTER TABLE t1 MODIFY utf8mb4_encoding VARCHAR(10) CHARACTER SET utf8mb4;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb4_encoding` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb4_encoding) FROM t1;
-u_decimal hex(utf8mb4_encoding)
-1114111 3F
-1114111 3F3F3F3F
-119040 3F
-119070 3F
-119070 3F3F3F3F3F3F3F3F3F3F
-119070 3F3F3F3F3F3F3F3F3F3F
-119134 3F
-119247 3F
-120607 3F
-120735 3F
-65131 EFB9AB3F3F3F3F3FEFB9ABEFB9AB3FEFB9AB
-917999 3F
-ALTER TABLE t2 MODIFY utf8mb3_encoding VARCHAR(10) CHARACTER SET utf8mb4;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb3_encoding` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb3_encoding) FROM t2;
-u_decimal hex(utf8mb3_encoding)
-1114111 3F3F3F3F
-42856 EA9DA8
-65131 EFB9AB
-DROP TABLE IF EXISTS t3;
-CREATE TABLE t3 (
-u_decimal int NOT NULL,
-utf8mb3_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8 ENGINE InnoDB;
-INSERT INTO t3 SELECT * FROM t1;
-DROP TABLE IF EXISTS t4;
-CREATE TABLE t4 (
-u_decimal int NOT NULL,
-utf8mb4_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb4 ENGINE InnoDB;
-INSERT INTO t3 SELECT * FROM t2;
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t3;
-DROP TABLE t4;
-#
-# Testing that mixing utf8 and utf8mb4 collations returns utf8mb4
-#
-SELECT CHARSET(CONCAT(_utf8mb4'a',_utf8'b'));
-CHARSET(CONCAT(_utf8mb4'a',_utf8'b'))
-utf8mb4
-CREATE TABLE t1 (utf8mb4 VARCHAR(10) CHARACTER SET utf8mb4 NOT NULL) ENGINE InnoDB;
-INSERT INTO t1 VALUES (x'ea9da8'),(x'f48fbfbf');
-SELECT CONCAT(utf8mb4, _utf8 x'ea9da8') FROM t1 LIMIT 0;
-CONCAT(utf8mb4, _utf8 x'ea9da8')
-CREATE TABLE t2 (utf8mb3 VARCHAR(10) CHARACTER SET utf8mb3 NOT NULL) ENGINE InnoDB;
-INSERT INTO t2 VALUES (x'ea9da8');
-SELECT HEX(CONCAT(utf8mb4, utf8mb3)) FROM t1,t2 ORDER BY 1;
-HEX(CONCAT(utf8mb4, utf8mb3))
-EA9DA8EA9DA8
-F48FBFBFEA9DA8
-SELECT CHARSET(CONCAT(utf8mb4, utf8mb3)) FROM t1, t2 LIMIT 1;
-CHARSET(CONCAT(utf8mb4, utf8mb3))
-utf8mb4
-CREATE TEMPORARY TABLE t3 ENGINE InnoDB AS SELECT *, concat(utf8mb4,utf8mb3) FROM t1, t2;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TEMPORARY TABLE `t3` (
- `utf8mb4` varchar(10) CHARACTER SET utf8mb4 NOT NULL,
- `utf8mb3` varchar(10) CHARACTER SET utf8 NOT NULL,
- `concat(utf8mb4,utf8mb3)` varchar(20) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TEMPORARY TABLE t3;
-SELECT * FROM t1, t2 WHERE t1.utf8mb4 > t2.utf8mb3;
-utf8mb4 utf8mb3
-ô¿¿ ê¨
-SELECT * FROM t1, t2 WHERE t1.utf8mb4 = t2.utf8mb3;
-utf8mb4 utf8mb3
-ê¨ ê¨
-SELECT * FROM t1, t2 WHERE t1.utf8mb4 < t2.utf8mb3;
-utf8mb4 utf8mb3
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# Check that mixing utf8mb4 with an invalid utf8 constant returns error
-#
-CREATE TABLE t1 (utf8mb4 VARCHAR(10) CHARACTER SET utf8mb4) ENGINE InnoDB;
-INSERT INTO t1 VALUES (x'f48fbfbf');
-SELECT CONCAT(utf8mb4, _utf8 '¿') FROM t1;
-ERROR HY000: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-SELECT CONCAT('a', _utf8 '¿') FROM t1;
-ERROR HY000: Illegal mix of collations (utf8mb4_general_ci,COERCIBLE) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# ctype_utf8mb4.inc: Start of 10.1 tests
-#
-#
-# MDEV-8417 utf8mb4: compare broken bytes as "greater than any non-broken character"
-#
-CREATE TABLE t1 (
-id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-a VARCHAR(10) CHARACTER SET utf8mb4, KEY(a,id)
-);
-INSERT INTO t1 (a) VALUES (0x61);
-INSERT INTO t1 (a) VALUES (0xC280),(0xDFBF);
-INSERT INTO t1 (a) VALUES (0xE0A080),(0xEFBFBF);
-INSERT INTO t1 (a) VALUES (0xF0908080),(0xF48FBFBF);
-SELECT id,HEX(a) FROM t1 ORDER BY a,id;
-id HEX(a)
-1 61
-2 C280
-3 DFBF
-4 E0A080
-6 F0908080
-7 F48FBFBF
-5 EFBFBF
-SELECT id,HEX(a) FROM t1 ORDER BY a DESC,id DESC;
-id HEX(a)
-5 EFBFBF
-7 F48FBFBF
-6 F0908080
-4 E0A080
-3 DFBF
-2 C280
-1 61
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-6
-ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
-SELECT id,HEX(a) FROM t1 ORDER BY a;
-id HEX(a)
-1 61
-2 C280
-3 DFBF
-4 E0A080
-5 EFBFBF
-6 F0908080
-7 F48FBFBF
-SELECT id,HEX(a) FROM t1 ORDER BY a DESC,id DESC;
-id HEX(a)
-7 F48FBFBF
-6 F0908080
-5 EFBFBF
-4 E0A080
-3 DFBF
-2 C280
-1 61
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-7
-DROP TABLE t1;
-#
-# ctype_utf8mb4.inc: End of 10.1 tests
-#
-#
-# End of ctype_utf8mb4.inc
-#
diff --git a/mysql-test/r/ctype_utf8mb4_myisam.result b/mysql-test/r/ctype_utf8mb4_myisam.result
deleted file mode 100644
index fd58e12542c..00000000000
--- a/mysql-test/r/ctype_utf8mb4_myisam.result
+++ /dev/null
@@ -1,2719 +0,0 @@
-drop table if exists t1,t2;
-#
-# Start of 5.5 tests
-#
-set names utf8mb4;
-select left(_utf8mb4 0xD0B0D0B1D0B2,1);
-left(_utf8mb4 0xD0B0D0B1D0B2,1)
-а
-select right(_utf8mb4 0xD0B0D0B2D0B2,1);
-right(_utf8mb4 0xD0B0D0B2D0B2,1)
-в
-select locate('he','hello');
-locate('he','hello')
-1
-select locate('he','hello',2);
-locate('he','hello',2)
-0
-select locate('lo','hello',2);
-locate('lo','hello',2)
-4
-select locate('HE','hello');
-locate('HE','hello')
-1
-select locate('HE','hello',2);
-locate('HE','hello',2)
-0
-select locate('LO','hello',2);
-locate('LO','hello',2)
-4
-select locate('HE','hello' collate utf8mb4_bin);
-locate('HE','hello' collate utf8mb4_bin)
-0
-select locate('HE','hello' collate utf8mb4_bin,2);
-locate('HE','hello' collate utf8mb4_bin,2)
-0
-select locate('LO','hello' collate utf8mb4_bin,2);
-locate('LO','hello' collate utf8mb4_bin,2)
-0
-select locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D0B1D0B2);
-locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D0B1D0B2)
-2
-select locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2);
-locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2)
-2
-select locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2);
-locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2)
-2
-select locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2 collate utf8mb4_bin);
-locate(_utf8mb4 0xD091, _utf8mb4 0xD0B0D0B1D0B2 collate utf8mb4_bin)
-0
-select locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2 collate utf8mb4_bin);
-locate(_utf8mb4 0xD0B1, _utf8mb4 0xD0B0D091D0B2 collate utf8mb4_bin)
-0
-select length(_utf8mb4 0xD0B1), bit_length(_utf8mb4 0xD0B1), char_length(_utf8mb4 0xD0B1);
-length(_utf8mb4 0xD0B1) bit_length(_utf8mb4 0xD0B1) char_length(_utf8mb4 0xD0B1)
-2 16 1
-select 'a' like 'a';
-'a' like 'a'
-1
-select 'A' like 'a';
-'A' like 'a'
-1
-select 'A' like 'a' collate utf8mb4_bin;
-'A' like 'a' collate utf8mb4_bin
-0
-select _utf8mb4 0xD0B0D0B1D0B2 like concat(_utf8mb4'%',_utf8mb4 0xD0B1,_utf8mb4 '%');
-_utf8mb4 0xD0B0D0B1D0B2 like concat(_utf8mb4'%',_utf8mb4 0xD0B1,_utf8mb4 '%')
-1
-select convert(_latin1'Günter André' using utf8mb4) like CONVERT(_latin1'GÜNTER%' USING utf8mb4);
-convert(_latin1'G?nter Andr?' using utf8mb4) like CONVERT(_latin1'G?NTER%' USING utf8mb4)
-1
-select CONVERT(_koi8r'×ÁÓÑ' USING utf8mb4) LIKE CONVERT(_koi8r'÷áóñ' USING utf8mb4);
-CONVERT(_koi8r'????' USING utf8mb4) LIKE CONVERT(_koi8r'????' USING utf8mb4)
-1
-select CONVERT(_koi8r'÷áóñ' USING utf8mb4) LIKE CONVERT(_koi8r'×ÁÓÑ' USING utf8mb4);
-CONVERT(_koi8r'????' USING utf8mb4) LIKE CONVERT(_koi8r'????' USING utf8mb4)
-1
-SELECT 'a' = 'a ';
-'a' = 'a '
-1
-SELECT 'a\0' < 'a';
-'a\0' < 'a'
-1
-SELECT 'a\0' < 'a ';
-'a\0' < 'a '
-1
-SELECT 'a\t' < 'a';
-'a\t' < 'a'
-1
-SELECT 'a\t' < 'a ';
-'a\t' < 'a '
-1
-SELECT 'a' = 'a ' collate utf8mb4_bin;
-'a' = 'a ' collate utf8mb4_bin
-1
-SELECT 'a\0' < 'a' collate utf8mb4_bin;
-'a\0' < 'a' collate utf8mb4_bin
-1
-SELECT 'a\0' < 'a ' collate utf8mb4_bin;
-'a\0' < 'a ' collate utf8mb4_bin
-1
-SELECT 'a\t' < 'a' collate utf8mb4_bin;
-'a\t' < 'a' collate utf8mb4_bin
-1
-SELECT 'a\t' < 'a ' collate utf8mb4_bin;
-'a\t' < 'a ' collate utf8mb4_bin
-1
-CREATE TABLE t1 (a char(10) character set utf8mb4 not null) ENGINE MyISAM;
-INSERT INTO t1 VALUES ('a'),('a\0'),('a\t'),('a ');
-SELECT hex(a),STRCMP(a,'a'), STRCMP(a,'a ') FROM t1;
-hex(a) STRCMP(a,'a') STRCMP(a,'a ')
-61 0 0
-61 0 0
-6100 -1 -1
-6109 -1 -1
-DROP TABLE t1;
-select insert('txs',2,1,'hi'),insert('is ',4,0,'a'),insert('txxxxt',2,4,'es');
-insert('txs',2,1,'hi') insert('is ',4,0,'a') insert('txxxxt',2,4,'es')
-this is test
-select insert("aa",100,1,"b"),insert("aa",1,3,"b");
-insert("aa",100,1,"b") insert("aa",1,3,"b")
-aa b
-select char_length(left(@a:='теÑÑ‚',5)), length(@a), @a;
-char_length(left(@a:='теÑÑ‚',5)) length(@a) @a
-4 8 теÑÑ‚
-create table t1 ENGINE MyISAM select date_format("2004-01-19 10:10:10", "%Y-%m-%d");
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `date_format("2004-01-19 10:10:10", "%Y-%m-%d")` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-date_format("2004-01-19 10:10:10", "%Y-%m-%d")
-2004-01-19
-drop table t1;
-set names utf8mb4;
-set LC_TIME_NAMES='fr_FR';
-create table t1 (s1 char(20) character set latin1) engine MyISAM;
-insert into t1 values (date_format('2004-02-02','%M'));
-select hex(s1) from t1;
-hex(s1)
-66E97672696572
-drop table t1;
-create table t1 (s1 char(20) character set koi8r) engine MyISAM;
-set LC_TIME_NAMES='ru_RU';
-insert into t1 values (date_format('2004-02-02','%M'));
-insert into t1 values (date_format('2004-02-02','%b'));
-insert into t1 values (date_format('2004-02-02','%W'));
-insert into t1 values (date_format('2004-02-02','%a'));
-select hex(s1), s1 from t1;
-hex(s1) s1
-E6C5D7 Фев
-E6C5D7D2C1CCD1 ФевралÑ
-F0CEC4 Пнд
-F0CFCEC5C4C5CCD8CEC9CB Понедельник
-drop table t1;
-set LC_TIME_NAMES='en_US';
-set names koi8r;
-create table t1 (s1 char(1) character set utf8mb4) engine MyISAM;
-insert ignore into t1 values (_koi8r'ÁÂ');
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select s1,hex(s1),char_length(s1),octet_length(s1) from t1;
-s1 hex(s1) char_length(s1) octet_length(s1)
-Á D0B0 1 2
-drop table t1;
-create table t1 (s1 tinytext character set utf8mb4) engine MyISAM;
-insert ignore into t1 select repeat('a',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ñ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('aÑ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ña',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('ÑÑ',300);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161
-61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F
-D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61D18F61
-D18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18F
-D18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18FD18F
-select length(s1),char_length(s1) from t1;
-length(s1) char_length(s1)
-254 127
-254 127
-255 170
-255 170
-255 255
-drop table t1;
-create table t1 (s1 text character set utf8mb4) engine MyISAM;
-insert ignore into t1 select repeat('a',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ñ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('aÑ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('Ña',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-insert ignore into t1 select repeat('ÑÑ',66000);
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select length(s1),char_length(s1) from t1;
-length(s1) char_length(s1)
-65534 32767
-65534 32767
-65535 43690
-65535 43690
-65535 65535
-drop table t1;
-create table t1 (s1 char(10) character set utf8mb4) engine MyISAM;
-insert ignore into t1 values (0x41FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-413F
-drop table t1;
-create table t1 (s1 varchar(10) character set utf8mb4) engine MyISAM;
-insert ignore into t1 values (0x41FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-413F
-drop table t1;
-create table t1 (s1 text character set utf8mb4) engine MyISAM;
-insert ignore into t1 values (0x41FF);
-Warnings:
-Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1
-select hex(s1) from t1;
-hex(s1)
-413F
-drop table t1;
-create table t1 (a text character set utf8mb4, primary key(a(371))) engine MyISAM;
-show warnings;
-Level Code Message
-Error 1071 Specified key was too long; max key length is 1000 bytes
-drop table if exists t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1 ( a varchar(10) ) CHARACTER SET utf8mb4 ENGINE MyISAM;
-INSERT INTO t1 VALUES ( 'test' );
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = b.a;
-a a
-test test
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = 'test' and b.a = 'test';
-a a
-test test
-SELECT a.a, b.a FROM t1 a, t1 b WHERE a.a = b.a and a.a = 'test';
-a a
-test test
-DROP TABLE t1;
-create table t1 (a char(255) character set utf8mb4) engine MyISAM;
-insert into t1 values('b'),('b');
-select * from t1 where a = 'b';
-a
-b
-b
-select * from t1 where a = 'b' and a = 'b';
-a
-b
-b
-select * from t1 where a = 'b' and a != 'b';
-a
-drop table t1;
-set names utf8mb4;
-drop table if exists t1;
-create table t1 as
-select repeat(' ', 64) as s1, repeat(' ',64) as s2
-union
-select null, null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL,
- `s2` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-delete from t1;
-insert into t1 values('aaa','aaa');
-insert into t1 values('aaa|qqq','qqq');
-insert into t1 values('gheis','^[^a-dXYZ]+$');
-insert into t1 values('aab','^aa?b');
-insert into t1 values('Baaan','^Ba*n');
-insert into t1 values('aaa','qqq|aaa');
-insert into t1 values('qqq','qqq|aaa');
-insert into t1 values('bbb','qqq|aaa');
-insert into t1 values('bbb','qqq');
-insert into t1 values('aaa','aba');
-insert into t1 values(null,'abc');
-insert into t1 values('def',null);
-insert into t1 values(null,null);
-insert into t1 values('ghi','ghi[');
-select HIGH_PRIORITY s1 regexp s2 from t1;
-s1 regexp s2
-0
-0
-0
-1
-1
-1
-1
-1
-1
-1
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-SELECT @@character_set_client, @@collation_connection;
-@@character_set_client @@collation_connection
-utf8mb4 utf8mb4_general_ci
-select 'ваÑÑ' rlike '\\bваÑÑ\\b';
-'ваÑÑ' rlike '\\bваÑÑ\\b'
-1
-select 'ваÑÑ ' rlike '\\bваÑÑ\\b';
-'ваÑÑ ' rlike '\\bваÑÑ\\b'
-1
-select ' ваÑÑ' rlike '\\bваÑÑ\\b';
-' ваÑÑ' rlike '\\bваÑÑ\\b'
-1
-select ' ваÑÑ ' rlike '\\bваÑÑ\\b';
-' ваÑÑ ' rlike '\\bваÑÑ\\b'
-1
-select 'ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select 'ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select ' ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-' ваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select ' ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-' ваÑÑ ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-1
-select 'ваÑÑz' rlike '\\bваÑÑ\\b';
-'ваÑÑz' rlike '\\bваÑÑ\\b'
-0
-select 'zваÑÑ' rlike '\\bваÑÑ\\b';
-'zваÑÑ' rlike '\\bваÑÑ\\b'
-0
-select 'zваÑÑz' rlike '\\bваÑÑ\\b';
-'zваÑÑz' rlike '\\bваÑÑ\\b'
-0
-select 'ваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'ваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-select 'zваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'zваÑÑ' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-select 'zваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]';
-'zваÑÑz' rlike '[[:<:]]ваÑÑ[[:>:]]'
-0
-CREATE TABLE t1 (a enum ('Y', 'N') DEFAULT 'N' COLLATE utf8mb4_unicode_ci) ENGINE MyISAM;
-ALTER TABLE t1 ADD COLUMN b CHAR(20);
-DROP TABLE t1;
-set names utf8mb4;
-create table t1 (a enum('aaaa','проба') character set utf8mb4) engine MyISAM;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('aaaa','проба') CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('проба');
-select * from t1;
-a
-проба
-create table t2 engine MyISAM select ifnull(a,a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ifnull(a,a)` varchar(5) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t2;
-ifnull(a,a)
-проба
-drop table t1;
-drop table t2;
-create table t1 (c varchar(30) character set utf8mb4, unique(c(10))) engine MyISAM;
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c varchar(30) character set utf8mb4, unique(c(10))) engine=MyISAM;
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c char(3) character set utf8mb4, unique (c(2))) engine MyISAM;
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (c char(3) character set utf8mb4, unique (c(2))) engine=MyISAM;
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4,
-unique key a using hash (c(1))
-) engine=MyISAM;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING HASH
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4,
-unique key a using btree (c(1))
-) engine=MyISAM;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING BTREE
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4,
-unique key a (c(1))
-) engine=MyISAM;
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (c varchar(30) character set utf8mb4 collate utf8mb4_bin, unique(c(10))) engine MyISAM;
-insert into t1 values ('1'),('2'),('3'),('x'),('y'),('z');
-insert into t1 values ('aaaaaaaaaa');
-insert into t1 values ('aaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values ('aaaaaaaaaaaa');
-ERROR 23000: Duplicate entry 'aaaaaaaaaa' for key 'c'
-insert into t1 values (repeat('b',20));
-select c c1 from t1 where c='1';
-c1
-1
-select c c2 from t1 where c='2';
-c2
-2
-select c c3 from t1 where c='3';
-c3
-3
-select c cx from t1 where c='x';
-cx
-x
-select c cy from t1 where c='y';
-cy
-y
-select c cz from t1 where c='z';
-cz
-z
-select c ca10 from t1 where c='aaaaaaaaaa';
-ca10
-aaaaaaaaaa
-select c cb20 from t1 where c=repeat('b',20);
-cb20
-bbbbbbbbbbbbbbbbbbbb
-drop table t1;
-create table t1 (c char(3) character set utf8mb4 collate utf8mb4_bin, unique (c(2))) engine MyISAM;
-insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
-insert into t1 values ('a');
-insert into t1 values ('aa');
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'aa' for key 'c'
-insert into t1 values ('b');
-insert into t1 values ('bb');
-insert into t1 values ('bbb');
-ERROR 23000: Duplicate entry 'bb' for key 'c'
-insert into t1 values ('а');
-insert into t1 values ('аа');
-insert into t1 values ('ааа');
-ERROR 23000: Duplicate entry 'аа' for key 'c'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'бб' for key 'c'
-insert into t1 values ('ꪪ');
-insert into t1 values ('ꪪꪪ');
-insert into t1 values ('ꪪꪪꪪ');
-ERROR 23000: Duplicate entry 'ꪪꪪ' for key 'c'
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4 collate utf8mb4_bin,
-unique key a using hash (c(1))
-) engine=MyISAM;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING HASH
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4 collate utf8mb4_bin,
-unique key a using btree (c(1))
-) engine=MyISAM;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
- UNIQUE KEY `a` (`c`(1)) USING BTREE
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-c char(10) character set utf8mb4 collate utf8mb4_bin,
-unique key a (c(1))
-) engine=MyISAM;
-insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
-insert into t1 values ('aa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('aaa');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-insert into t1 values ('б');
-insert into t1 values ('бб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-insert into t1 values ('ббб');
-ERROR 23000: Duplicate entry 'б' for key 'a'
-select c as c_all from t1 order by c;
-c_all
-a
-b
-c
-d
-e
-f
-б
-select c as c_a from t1 where c='a';
-c_a
-a
-select c as c_a from t1 where c='б';
-c_a
-б
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str (str(2))
-) engine=MyISAM;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str (str(2))
-) engine=MyISAM;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str using btree (str(2))
-) engine=MyISAM;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str using hash (str(2))
-) engine=MyISAM;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-create table t1 (
-str varchar(255) character set utf8mb4 not null,
-key str (str(2))
-) engine= MyISAM;
-INSERT INTO t1 VALUES ('str');
-INSERT INTO t1 VALUES ('str2');
-select * from t1 where str='str';
-str
-str
-drop table t1;
-CREATE TABLE t1 (a varchar(32) BINARY) CHARACTER SET utf8mb4 ENGINE MyISAM;
-INSERT INTO t1 VALUES ('test');
-SELECT a FROM t1 WHERE a LIKE '%te';
-a
-DROP TABLE t1;
-SET NAMES utf8mb4;
-CREATE TABLE t1 (
-subject varchar(255) character set utf8mb4 collate utf8mb4_unicode_ci,
-p varchar(15) character set utf8mb4
-) ENGINE= MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES ('è°·å·ä¿ŠäºŒã¨ç”³ã—ã¾ã™ãŒã€ã‚¤ãƒ³ã‚¿ãƒ¼ãƒãƒƒãƒˆäºˆç´„ã®ä¼šå“¡ç™»éŒ²ã‚’ã—ã¾ã—ãŸã¨ã“ã‚ã€ãƒ¡ãƒ¼ãƒ«ã‚¢ãƒ‰ãƒ¬ã‚¹ã‚’é–“é•ãˆã¦ã—ã¾ã„会員IDãŒå—ã‘å–ã‚‹ã“ã¨ãŒå‡ºæ¥ã¾ã›ã‚“ã§ã—ãŸã€‚é–“é•ãˆã‚¢ãƒ‰ãƒ¬ã‚¹ã¯tani-shun@n.vodafone.ne.jpを書ãè¾¼ã¿ã¾ã—ãŸã€‚ã©ã†ã™ã‚Œã°ã‚ˆã„ã§ã™ã‹ï¼Ÿ ãã®ä»–ã€ä½æ‰€ç­‰ã¯é–“é•ãˆã‚ã‚Šã¾ã›ã‚“。連絡ãã ã•ã„。よã‚ã—ããŠé¡˜ã„ã—ã¾ã™ã€‚m(__)m','040312-000057');
-INSERT INTO t1 VALUES ('aaa','bbb');
-SELECT length(subject) FROM t1;
-length(subject)
-3
-432
-SELECT length(subject) FROM t1 ORDER BY 1;
-length(subject)
-3
-432
-DROP TABLE t1;
-CREATE TABLE t1 (
-id int unsigned NOT NULL auto_increment,
-list_id smallint unsigned NOT NULL,
-term TEXT NOT NULL,
-PRIMARY KEY(id),
-INDEX(list_id, term(4))
-) ENGINE=MyISAM CHARSET=utf8mb4;
-INSERT INTO t1 SET list_id = 1, term = "letterc";
-INSERT INTO t1 SET list_id = 1, term = "letterb";
-INSERT INTO t1 SET list_id = 1, term = "lettera";
-INSERT INTO t1 SET list_id = 1, term = "letterd";
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterc");
-id
-1
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterb");
-id
-2
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "lettera");
-id
-3
-SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterd");
-id
-4
-DROP TABLE t1;
-SET NAMES latin1;
-CREATE TABLE t1 (
-id int unsigned NOT NULL auto_increment,
-list_id smallint unsigned NOT NULL,
-term text NOT NULL,
-PRIMARY KEY(id),
-INDEX(list_id, term(19))
-) ENGINE=MyISAM CHARSET=utf8mb4;
-INSERT INTO t1 set list_id = 1, term = "testétest";
-INSERT INTO t1 set list_id = 1, term = "testetest";
-INSERT INTO t1 set list_id = 1, term = "testètest";
-SELECT id, term FROM t1 where (list_id = 1) AND (term = "testétest");
-id term
-1 testétest
-2 testetest
-3 testètest
-SELECT id, term FROM t1 where (list_id = 1) AND (term = "testetest");
-id term
-1 testétest
-2 testetest
-3 testètest
-SELECT id, term FROM t1 where (list_id = 1) AND (term = "testètest");
-id term
-1 testétest
-2 testetest
-3 testètest
-DROP TABLE t1;
-set names utf8mb4;
-create table t1 (
-a int primary key,
-b varchar(6),
-index b3(b(3))
-) engine=MyISAM character set=utf8mb4;
-insert into t1 values(1,'foo'),(2,'foobar');
-select * from t1 where b like 'foob%';
-a b
-2 foobar
-alter table t1 engine=innodb;
-select * from t1 where b like 'foob%';
-a b
-2 foobar
-drop table t1;
-create table t1 (
-a enum('петÑ','ваÑÑ','анюта') character set utf8mb4 not null default 'анюта',
-b set('петÑ','ваÑÑ','анюта') character set utf8mb4 not null default 'анюта'
-) engine MyISAM;
-create table t2 engine MyISAM select concat(a,_utf8mb4'') as a, concat(b,_utf8mb4'')as b from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(5) CHARACTER SET utf8mb4 DEFAULT NULL,
- `b` varchar(15) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t2;
-drop table t1;
-select 'c' like '\_' as want0;
-want0
-0
-SELECT SUBSTR('ваÑÑ',-2);
-SUBSTR('ваÑÑ',-2)
-ÑÑ
-create table t1 (id integer, a varchar(100) character set utf8mb4 collate utf8mb4_unicode_ci) engine MyISAM;
-insert into t1 values (1, 'Test');
-select * from t1 where soundex(a) = soundex('Test');
-id a
-1 Test
-select * from t1 where soundex(a) = soundex('TEST');
-id a
-1 Test
-select * from t1 where soundex(a) = soundex('test');
-id a
-1 Test
-drop table t1;
-select soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB);
-soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB)
-阅000
-select hex(soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB));
-hex(soundex(_utf8mb4 0xE99885E8A788E99A8FE697B6E69BB4E696B0E79A84E696B0E997BB))
-E99885303030
-select soundex(_utf8mb4 0xD091D092D093);
-soundex(_utf8mb4 0xD091D092D093)
-Б000
-select hex(soundex(_utf8mb4 0xD091D092D093));
-hex(soundex(_utf8mb4 0xD091D092D093))
-D091303030
-SET collation_connection='utf8mb4_general_ci';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf8mb4_general_ci 6109
-utf8mb4_general_ci 61
-utf8mb4_general_ci 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf8mb4_general_ci
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-"BEGIN ctype_german.inc"
-drop table if exists t1;
-create table t1 as select repeat(' ', 64) as s1;
-select collation(s1) from t1;
-collation(s1)
-utf8mb4_general_ci
-delete from t1;
-INSERT INTO t1 VALUES ('ud'),('uf');
-INSERT INTO t1 VALUES ('od'),('of');
-INSERT INTO t1 VALUES ('e');
-INSERT INTO t1 VALUES ('ad'),('af');
-insert into t1 values ('a'),('ae'),(_latin1 0xE4);
-insert into t1 values ('o'),('oe'),(_latin1 0xF6);
-insert into t1 values ('s'),('ss'),(_latin1 0xDF);
-insert into t1 values ('u'),('ue'),(_latin1 0xFC);
-INSERT INTO t1 VALUES (_latin1 0xE6), (_latin1 0xC6);
-INSERT INTO t1 VALUES (_latin1 0x9C), (_latin1 0x8C);
-select s1, hex(s1) from t1 order by s1, binary s1;
-s1 hex(s1)
-a 61
-ä C3A4
-ad 6164
-ae 6165
-af 6166
-e 65
-o 6F
-ö C3B6
-od 6F64
-oe 6F65
-of 6F66
-s 73
-ß C39F
-ss 7373
-u 75
-ü C3BC
-ud 7564
-ue 7565
-uf 7566
-Æ C386
-æ C3A6
-Å’ C592
-Å“ C593
-select group_concat(s1 order by binary s1) from t1 group by s1;
-group_concat(s1 order by binary s1)
-a,ä
-ad
-ae
-af
-e
-o,ö
-od
-oe
-of
-s,ß
-ss
-u,ü
-ud
-ue
-uf
-Æ,æ
-Å’,Å“
-SELECT s1, hex(s1), hex(weight_string(s1)) FROM t1 ORDER BY s1, BINARY(s1);
-s1 hex(s1) hex(weight_string(s1))
-a 61 0041
-ä C3A4 0041
-ad 6164 00410044
-ae 6165 00410045
-af 6166 00410046
-e 65 0045
-o 6F 004F
-ö C3B6 004F
-od 6F64 004F0044
-oe 6F65 004F0045
-of 6F66 004F0046
-s 73 0053
-ß C39F 0053
-ss 7373 00530053
-u 75 0055
-ü C3BC 0055
-ud 7564 00550044
-ue 7565 00550045
-uf 7566 00550046
-Æ C386 00C6
-æ C3A6 00C6
-Å’ C592 0152
-Å“ C593 0152
-SELECT s1, hex(s1) FROM t1 WHERE s1='ae' ORDER BY s1, BINARY(s1);
-s1 hex(s1)
-ae 6165
-drop table t1;
-CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a, 1 AS b LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET utf8mb4 DEFAULT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('s',0),(_latin1 0xDF,1);
-SELECT * FROM t1 ORDER BY a, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY a DESC, b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a), b;
-a b
-s 0
-ß 1
-SELECT * FROM t1 ORDER BY CONCAT(a) DESC, b;
-a b
-s 0
-ß 1
-DROP TABLE t1;
-"END ctype_german.inc"
-SET collation_connection='utf8mb4_bin';
-create table t1 select repeat('a',4000) a;
-delete from t1;
-insert into t1 values ('a'), ('a '), ('a\t');
-select collation(a),hex(a) from t1 order by a;
-collation(a) hex(a)
-utf8mb4_bin 6109
-utf8mb4_bin 61
-utf8mb4_bin 6120
-drop table t1;
-#
-# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
-i
-1
-1
-SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
-i
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6170 Incorrect ordering with utf8_bin and utf8mb4_bin collations
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT('a',5) AS a LIMIT 0;
-INSERT INTO t1 (a) VALUES ("a");
-INSERT INTO t1 (a) VALUES ("b");
-INSERT INTO t1 (a) VALUES ("c");
-INSERT INTO t1 (a) VALUES ("d");
-INSERT INTO t1 (a) VALUES ("e");
-INSERT INTO t1 (a) VALUES ("f");
-INSERT INTO t1 (a) VALUES ("g");
-INSERT INTO t1 (a) VALUES ("h");
-INSERT INTO t1 (a) VALUES ("i");
-INSERT INTO t1 (a) VALUES ("j");
-INSERT INTO t1 (a) VALUES ("k");
-INSERT INTO t1 (a) VALUES ("l");
-INSERT INTO t1 (a) VALUES ("m");
-SELECT * FROM t1 ORDER BY LOWER(a);
-a
-a
-b
-c
-d
-e
-f
-g
-h
-i
-j
-k
-l
-m
-SELECT * FROM t1 ORDER BY LOWER(a) DESC;
-a
-m
-l
-k
-j
-i
-h
-g
-f
-e
-d
-c
-b
-a
-DROP TABLE t1;
-select @@collation_connection;
-@@collation_connection
-utf8mb4_bin
-create table t1 ROW_FORMAT=DYNAMIC select repeat('a',50) as c1 ;
-insert into t1 values('abcdef');
-insert into t1 values('_bcdef');
-insert into t1 values('a_cdef');
-insert into t1 values('ab_def');
-insert into t1 values('abc_ef');
-insert into t1 values('abcd_f');
-insert into t1 values('abcde_');
-select c1 as c1u from t1 where c1 like 'ab\_def';
-c1u
-ab_def
-select c1 as c2h from t1 where c1 like 'ab#_def' escape '#';
-c2h
-ab_def
-drop table t1;
-CREATE TABLE t1 (
-user varchar(255) NOT NULL default ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES ('one'),('two');
-SELECT CHARSET('a');
-CHARSET('a')
-utf8mb4
-SELECT user, CONCAT('<', user, '>') AS c FROM t1;
-user c
-one <one>
-two <two>
-DROP TABLE t1;
-create table t1 (f1 varchar(1) not null) default charset utf8mb4 engine MyISAM;
-insert into t1 values (''), ('');
-select concat(concat(_latin1'->',f1),_latin1'<-') from t1;
-concat(concat(_latin1'->',f1),_latin1'<-')
--><-
--><-
-drop table t1;
-select convert(_koi8r'É' using utf8mb4) < convert(_koi8r'Ê' using utf8mb4);
-convert(_koi8r'?' using utf8mb4) < convert(_koi8r'?' using utf8mb4)
-1
-set names latin1;
-create table t1 (a varchar(10)) character set utf8mb4 engine MyISAM;
-insert into t1 values ('test');
-select ifnull(a,'') from t1;
-ifnull(a,'')
-test
-drop table t1;
-select repeat(_utf8mb4'+',3) as h union select NULL;
-h
-+++
-NULL
-select ifnull(NULL, _utf8mb4'string');
-ifnull(NULL, _utf8mb4'string')
-string
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_lithuanian_ci) engine MyISAM;
-insert into t1 values ('I'),('K'),('Y');
-select * from t1 where s1 < 'K' and s1 = 'Y';
-s1
-I
-Y
-select * from t1 where 'K' > s1 and s1 = 'Y';
-s1
-I
-Y
-drop table t1;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_czech_ci) engine MyISAM;
-insert into t1 values ('c'),('d'),('h'),('ch'),('CH'),('cH'),('Ch'),('i');
-select * from t1 where s1 > 'd' and s1 = 'CH';
-s1
-CH
-Ch
-ch
-select * from t1 where 'd' < s1 and s1 = 'CH';
-s1
-CH
-Ch
-ch
-select * from t1 where s1 = 'cH' and s1 <> 'ch';
-s1
-cH
-select * from t1 where 'cH' = s1 and s1 <> 'ch';
-s1
-cH
-drop table t1;
-create table t1 (a varchar(255)) default character set utf8mb4 engine MyISAM;
-insert into t1 values (1.0);
-drop table t1;
-create table t1 (
-id int not null,
-city varchar(20) not null,
-key (city(7),id)
-) character set=utf8mb4 engine MyISAM;
-insert into t1 values (1,'Durban North');
-insert into t1 values (2,'Durban');
-select * from t1 where city = 'Durban';
-id city
-2 Durban
-select * from t1 where city = 'Durban ';
-id city
-2 Durban
-drop table t1;
-create table t1 (x set('A', 'B') default 0) character set utf8mb4 engine MyISAM;
-ERROR 42000: Invalid default value for 'x'
-create table t1 (x enum('A', 'B') default 0) character set utf8mb4 engine MyISAM;
-ERROR 42000: Invalid default value for 'x'
-SET NAMES UTF8;
-CREATE TABLE t1 (
-`id` int(20) NOT NULL auto_increment,
-`country` varchar(100) NOT NULL default '',
-`shortcode` varchar(100) NOT NULL default '',
-`operator` varchar(100) NOT NULL default '',
-`momid` varchar(30) NOT NULL default '',
-`keyword` varchar(160) NOT NULL default '',
-`content` varchar(160) NOT NULL default '',
-`second_token` varchar(160) default NULL,
-`gateway_id` int(11) NOT NULL default '0',
-`created` datetime NOT NULL default '0000-00-00 00:00:00',
-`msisdn` varchar(15) NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `MSCCSPK_20030521130957121` (`momid`),
-KEY `IX_mobile_originated_message_keyword` (`keyword`),
-KEY `IX_mobile_originated_message_created` (`created`),
-KEY `IX_mobile_originated_message_support` (`msisdn`,`momid`,`keyword`,`gateway_id`,`created`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
-INSERT INTO t1 VALUES
-(1,'blah','464','aaa','fkc1c9ilc20x0hgae7lx6j09','ERR','ERR Имри.Ðфимим.Ðеимимримдмримрмрирор имримримримр имридм ирбднримрфмририримрфмфмим.Ðд.Д имдимримрад.Ðдимримримрмдиримримримр м.Дадимфшьмримд им.Ðдимимрн имадми','ИМРИ.ÐФИМИМ.ÐЕИМИМРИМДМРИМРМРИРОР',3,'2005-06-01 17:30:43','1234567890'),
-(2,'blah','464','aaa','haxpl2ilc20x00bj4tt2m5ti','11','11 g','G',3,'2005-06-02 22:43:10','1234567890');
-CREATE TABLE t2 (
-`msisdn` varchar(15) NOT NULL default '',
-`operator_id` int(11) NOT NULL default '0',
-`created` datetime NOT NULL default '0000-00-00 00:00:00',
-UNIQUE KEY `PK_user` (`msisdn`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
-INSERT INTO t2 VALUES ('1234567890',2,'2005-05-24 13:53:25');
-SELECT content, t2.msisdn FROM t1, t2 WHERE t1.msisdn = '1234567890';
-content msisdn
-ERR Имри.Ðфимим.Ðеимимримдмримрмрирор имримримримр имридм ирбднримрфмририримрфмфмим.Ðд.Д имдимримрад.Ðдимримримрмдиримримримр м.Дадимфшьмримд им.Ðдимимрн имадми 1234567890
-11 g 1234567890
-DROP TABLE t1,t2;
-create table t1 (a char(20) character set utf8mb4) engine MyISAM;
-insert into t1 values ('123456'),('андрей');
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 modify a char(2) character set utf8mb4;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-Warning 1265 Data truncated for column 'a' at row 2
-select char_length(a), length(a), a from t1 order by a;
-char_length(a) length(a) a
-2 2 12
-2 4 ан
-drop table t1;
-set names utf8mb4;
-select 'andre%' like 'andreñ%' escape 'ñ';
-'andre%' like 'andreñ%' escape 'ñ'
-1
-set names utf8mb4;
-select 'a\\' like 'a\\';
-'a\\' like 'a\\'
-1
-select 'aa\\' like 'a%\\';
-'aa\\' like 'a%\\'
-1
-create table t1 (a char(10), key(a)) character set utf8mb4 engine MyISAM;
-insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
-select * from t1 where a like "abc%";
-a
-abc
-abcd
-select * from t1 where a like concat("abc","%");
-a
-abc
-abcd
-select * from t1 where a like "ABC%";
-a
-abc
-abcd
-select * from t1 where a like "test%";
-a
-test
-select * from t1 where a like "te_t";
-a
-test
-select * from t1 where a like "%a%";
-a
-a
-abc
-abcd
-select * from t1 where a like "%abcd%";
-a
-abcd
-select * from t1 where a like "%abc\d%";
-a
-abcd
-drop table t1;
-CREATE TABLE t1 (
-a varchar(255) NOT NULL default '',
-KEY a (a)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-insert into t1 values (_utf8mb4 0xe880bd);
-insert into t1 values (_utf8mb4 0x5b);
-select hex(a) from t1;
-hex(a)
-5B
-E880BD
-drop table t1;
-set names 'latin1';
-create table t1 (a varchar(255)) default charset=utf8mb4 engine MyISAM;
-select * from t1 where find_in_set('-1', a);
-a
-drop table t1;
-create table t1 (a int) engine MyISAM;
-insert into t1 values (48),(49),(50);
-set names utf8mb4;
-select distinct char(a) from t1;
-char(a)
-0
-1
-2
-drop table t1;
-CREATE TABLE t1 (t TINYTEXT CHARACTER SET utf8mb4) ENGINE MyISAM;
-INSERT INTO t1 VALUES(REPEAT('a', 100));
-CREATE TEMPORARY TABLE t2 ENGINE MyISAM SELECT COALESCE(t) AS bug FROM t1;
-SELECT LENGTH(bug) FROM t2;
-LENGTH(bug)
-100
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (item varchar(255)) default character set utf8mb4 ENGINE MyISAM;
-INSERT INTO t1 VALUES (N'\\');
-INSERT INTO t1 VALUES (_utf8mb4'\\');
-INSERT INTO t1 VALUES (N'Cote d\'Ivoire');
-INSERT INTO t1 VALUES (_utf8mb4'Cote d\'Ivoire');
-SELECT item FROM t1 ORDER BY item;
-item
-Cote d'Ivoire
-Cote d'Ivoire
-\
-\
-DROP TABLE t1;
-SET NAMES utf8mb4;
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1(a VARCHAR(255), KEY(a)) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
-INSERT INTO t1 VALUES('uu');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uU');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uu');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('UuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uuABC');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-alter table t1 add b int;
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',1);
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',2);
-delete from t1 where b=1;
-INSERT INTO t1 VALUES('UUABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',1);
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',3);
-INSERT INTO t1 VALUES('uuABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',4);
-delete from t1 where b=3;
-INSERT INTO t1 VALUES('uUABCDEFGHIGKLMNOPRSTUVWXYZ̈bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',3);
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4) engine MyISAM;
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_general_ci from t1 where s1 like 'ペテ%';
-before_delete_general_ci
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_general_ci from t1 where s1 like 'ペテ%';
-after_delete_general_ci
-ペテルグル
-drop table t1;
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_unicode_ci) engine MyISAM;
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_unicode_ci from t1 where s1 like 'ペテ%';
-before_delete_unicode_ci
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_unicode_ci from t1 where s1 like 'ペテ%';
-after_delete_unicode_ci
-ペテルグル
-drop table t1;
-set names utf8mb4;
-create table t1 (s1 char(5) character set utf8mb4 collate utf8mb4_bin) engine MyISAM;
-insert into t1 values
-('a'),('b'),(null),('ペテルグル'),('ü'),('Y');
-create index it1 on t1 (s1);
-select s1 as before_delete_bin from t1 where s1 like 'ペテ%';
-before_delete_bin
-ペテルグル
-delete from t1 where s1 = 'Y';
-select s1 as after_delete_bin from t1 where s1 like 'ペテ%';
-after_delete_bin
-ペテルグル
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(30) not null primary key)
-engine=MyISAM default character set utf8mb4 collate utf8mb4_general_ci;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as gci1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-gci1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as gci2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-gci2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(30) not null primary key)
-engine=MyISAM default character set utf8mb4 collate utf8mb4_unicode_ci;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as uci1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-uci1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as uci2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-uci2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(30) not null primary key)
-engine=MyISAM default character set utf8mb4 collate utf8mb4_bin;
-insert into t1 values ('ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã');
-insert into t1 values ('ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ');
-select a as bin1 from t1 where a like 'ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ%';
-bin1
-ã•ã—ã™ã›ãã‹ããã‘ã“ã‚ã„ã†ãˆãŠ
-select a as bin2 from t1 where a like 'ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã';
-bin2
-ã‚ã„ã†ãˆãŠã‹ããã‘ã“ã•ã—ã™ã›ã
-drop table t1;
-SET NAMES utf8mb4;
-CREATE TABLE t1 (id int PRIMARY KEY,
-a varchar(16) collate utf8mb4_unicode_ci NOT NULL default '',
-b int,
-f varchar(128) default 'XXX',
-INDEX (a(4))
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-INSERT INTO t1(id, a, b) VALUES
-(1, 'cccc', 50), (2, 'cccc', 70), (3, 'cccc', 30),
-(4, 'cccc', 30), (5, 'cccc', 20), (6, 'bbbbbb', 40),
-(7, 'dddd', 30), (8, 'aaaa', 10), (9, 'aaaa', 50),
-(10, 'eeeee', 40), (11, 'bbbbbb', 60);
-SELECT id, a, b FROM t1;
-id a b
-1 cccc 50
-10 eeeee 40
-11 bbbbbb 60
-2 cccc 70
-3 cccc 30
-4 cccc 30
-5 cccc 20
-6 bbbbbb 40
-7 dddd 30
-8 aaaa 10
-9 aaaa 50
-SELECT id, a, b FROM t1 WHERE a BETWEEN 'aaaa' AND 'bbbbbb';
-id a b
-11 bbbbbb 60
-6 bbbbbb 40
-8 aaaa 10
-9 aaaa 50
-SELECT id, a FROM t1 WHERE a='bbbbbb';
-id a
-11 bbbbbb
-6 bbbbbb
-SELECT id, a FROM t1 WHERE a='bbbbbb' ORDER BY b;
-id a
-6 bbbbbb
-11 bbbbbb
-DROP TABLE t1;
-SET NAMES utf8mb4;
-CREATE TABLE t1 (
-a CHAR(13) DEFAULT '',
-INDEX(a)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES
-('Käli Käli 2-4'), ('Käli Käli 2-4'),
-('Käli Käli 2+4'), ('Käli Käli 2+4'),
-('Käli Käli 2-6'), ('Käli Käli 2-6');
-INSERT INTO t1 SELECT * FROM t1;
-CREATE TABLE t2 (
-a CHAR(13) DEFAULT '',
-INDEX(a)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO t2 VALUES
-('Kali Kali 2-4'), ('Kali Kali 2-4'),
-('Kali Kali 2+4'), ('Kali Kali 2+4'),
-('Kali Kali 2-6'), ('Kali Kali 2-6');
-INSERT INTO t2 SELECT * FROM t2;
-SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
-a
-Käli Käli 2+4
-Käli Käli 2+4
-Käli Käli 2+4
-Käli Käli 2+4
-SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
-a
-Kali Kali 2+4
-Kali Kali 2+4
-Kali Kali 2+4
-Kali Kali 2+4
-EXPLAIN SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 53 NULL 4 Using where; Using index
-EXPLAIN SELECT a FROM t1 WHERE a = 'Käli Käli 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 53 const 4 Using where; Using index
-EXPLAIN SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 14 NULL 4 Using where; Using index
-EXPLAIN SELECT a FROM t2 WHERE a = 'Kali Kali 2+4';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref a a 14 const 4 Using where; Using index
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-a char(255) DEFAULT '',
-KEY(a(10))
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-DROP TABLE t1;
-CREATE TABLE t1 (
-a char(255) DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-INSERT INTO t1 VALUES ('Käli Käli 2-4');
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-ALTER TABLE t1 ADD KEY (a(10));
-SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
-a
-Käli Käli 2-4
-Käli Käli 2-4
-DROP TABLE t1;
-SET NAMES latin2;
-CREATE TABLE t1 (
-id int(11) NOT NULL default '0',
-tid int(11) NOT NULL default '0',
-val text NOT NULL,
-INDEX idx(tid, val(10))
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
-INSERT INTO t1 VALUES
-(40988,72,'VOLNÝ ADSL'),(41009,72,'VOLNÝ ADSL'),
-(41032,72,'VOLNÝ ADSL'),(41038,72,'VOLNÝ ADSL'),
-(41063,72,'VOLNÝ ADSL'),(41537,72,'VOLNÝ ADSL Office'),
-(42141,72,'VOLNÝ ADSL'),(42565,72,'VOLNÝ ADSL Combi'),
-(42749,72,'VOLNÝ ADSL'),(44205,72,'VOLNÝ ADSL');
-SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNY ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNÝ ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-SELECT * FROM t1 WHERE tid=72 and val LIKE '%VOLNÝ ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-ALTER TABLE t1 DROP KEY idx;
-ALTER TABLE t1 ADD KEY idx (tid,val(11));
-SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNÝ ADSL';
-id tid val
-40988 72 VOLNÝ ADSL
-41009 72 VOLNÝ ADSL
-41032 72 VOLNÝ ADSL
-41038 72 VOLNÝ ADSL
-41063 72 VOLNÝ ADSL
-42141 72 VOLNÝ ADSL
-42749 72 VOLNÝ ADSL
-44205 72 VOLNÝ ADSL
-DROP TABLE t1;
-create table t1(a char(200) collate utf8mb4_unicode_ci NOT NULL default '')
-default charset=utf8mb4 collate=utf8mb4_unicode_ci engine MyISAM;
-insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65'));
-explain select distinct a from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary
-SELECT COUNT(*) FROM (SELECT DISTINCT a FROM t1) AS t2;
-COUNT(*)
-1
-explain select a from t1 group by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
-SELECT COUNT(*) FROM (SELECT a FROM t1 GROUP BY a) AS t2;
-COUNT(*)
-1
-drop table t1;
-create table t1(a char(10)) default charset utf8mb4 engine MyISAM;
-insert into t1 values ('123'), ('456');
-explain
-select substr(Z.a,-1), Z.a from t1 as Y join t1 as Z on Y.a=Z.a order by 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Y ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-1 SIMPLE Z ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-select substr(Z.a,-1), Z.a from t1 as Y join t1 as Z on Y.a=Z.a order by 1;
-substr(Z.a,-1) a
-3 123
-6 456
-drop table t1;
-SET CHARACTER SET utf8mb4;
-SHOW VARIABLES LIKE 'character\_set\_%';
-Variable_name Value
-character_set_client utf8mb4
-character_set_connection latin1
-character_set_database latin1
-character_set_filesystem binary
-character_set_results utf8mb4
-character_set_server latin1
-character_set_system utf8
-CREATE DATABASE crashtest DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
-USE crashtest;
-CREATE TABLE crashtest (crash char(10)) DEFAULT CHARSET=utf8mb4 ENGINE MyISAM;
-INSERT INTO crashtest VALUES ('35'), ('36'), ('37');
-SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8mb4);
-crash
-35
-36
-37
-INSERT INTO crashtest VALUES ('-1000');
-EXPLAIN SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8mb4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE crashtest ALL NULL NULL NULL NULL 4 Using filesort
-SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8mb4);
-crash
--1000
-35
-36
-37
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FFFFFC'
-DROP TABLE crashtest;
-DROP DATABASE crashtest;
-USE test;
-SET CHARACTER SET default;
-CREATE TABLE t1(id varchar(20) NOT NULL) DEFAULT CHARSET=utf8mb4 ENGINE MyISAM;
-INSERT INTO t1 VALUES ('xxx'), ('aa'), ('yyy'), ('aa');
-SELECT id FROM t1;
-id
-aa
-aa
-xxx
-yyy
-SELECT DISTINCT id FROM t1;
-id
-aa
-xxx
-yyy
-SELECT DISTINCT id FROM t1 ORDER BY id;
-id
-aa
-xxx
-yyy
-DROP TABLE t1;
-create table t1 (
-a varchar(26) not null
-) default character set utf8mb4 ENGINE MyISAM;
-insert into t1 (a) values ('abcdefghijklmnopqrstuvwxyz');
-select * from t1;
-a
-abcdefghijklmnopqrstuvwxyz
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(20) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghijklmnopqrst
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a char(15) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghijklmno
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a char(10) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcdefghij
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(5) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-abcde
-drop table t1;
-create table t1 (
-a varchar(4000) not null
-) default character set utf8mb4 engine MyISAM;
-insert into t1 values (repeat('a',4000));
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change a a varchar(3000) character set utf8mb4 not null;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select length(a) from t1;
-length(a)
-3000
-drop table t1;
-set names utf8mb4;
-select hex(char(1 using utf8mb4));
-hex(char(1 using utf8mb4))
-01
-select char(0xd1,0x8f using utf8mb4);
-char(0xd1,0x8f using utf8mb4)
-select char(0xd18f using utf8mb4);
-char(0xd18f using utf8mb4)
-select char(53647 using utf8mb4);
-char(53647 using utf8mb4)
-select char(0xff,0x8f using utf8mb4);
-char(0xff,0x8f using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF8F'
-select convert(char(0xff,0x8f) using utf8mb4);
-convert(char(0xff,0x8f) using utf8mb4)
-??
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF\x8F'
-set sql_mode=traditional;
-select char(0xff,0x8f using utf8mb4);
-char(0xff,0x8f using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF8F'
-select char(195 using utf8mb4);
-char(195 using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'C3'
-select char(196 using utf8mb4);
-char(196 using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'C4'
-select char(2557 using utf8mb4);
-char(2557 using utf8mb4)
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FD'
-select convert(char(0xff,0x8f) using utf8mb4);
-convert(char(0xff,0x8f) using utf8mb4)
-??
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF\x8F'
-select hex(convert(char(2557 using latin1) using utf8mb4));
-hex(convert(char(2557 using latin1) using utf8mb4))
-09C3BD
-select hex(char(195));
-hex(char(195))
-C3
-select hex(char(196));
-hex(char(196))
-C4
-select hex(char(2557));
-hex(char(2557))
-09FD
-set names utf8mb4;
-create table t1 (a char(1)) default character set utf8mb4 engine MyISAM;
-create table t2 (a char(1)) default character set utf8mb4 engine MyISAM;
-insert into t1 values('a'),('a'),(0xE38182),(0xE38182);
-insert into t1 values('i'),('i'),(0xE38184),(0xE38184);
-select * from t1 union distinct select * from t2;
-a
-a
-i
-ã‚
-ã„
-drop table t1,t2;
-set names utf8mb4;
-create table t1 (a char(10), b varchar(10)) engine MyISAM;
-insert into t1 values ('bar','kostja');
-insert into t1 values ('kostja','bar');
-prepare my_stmt from "select * from t1 where a=?";
-set @a:='bar';
-execute my_stmt using @a;
-a b
-bar kostja
-set @a:='kostja';
-execute my_stmt using @a;
-a b
-kostja bar
-set @a:=null;
-execute my_stmt using @a;
-a b
-drop table if exists t1;
-drop table if exists t1;
-drop view if exists v1, v2;
-set names utf8mb4;
-create table t1(col1 varchar(12) character set utf8mb4 collate utf8mb4_unicode_ci) engine MyISAM;
-insert into t1 values('t1_val');
-create view v1 as select 'v1_val' as col1;
-select coercibility(col1), collation(col1) from v1;
-coercibility(col1) collation(col1)
-4 utf8mb4_general_ci
-create view v2 as select col1 from v1 union select col1 from t1;
-select coercibility(col1), collation(col1)from v2;
-coercibility(col1) collation(col1)
-2 utf8mb4_unicode_ci
-2 utf8mb4_unicode_ci
-drop view v1, v2;
-create view v1 as select 'v1_val' collate utf8mb4_swedish_ci as col1;
-select coercibility(col1), collation(col1) from v1;
-coercibility(col1) collation(col1)
-0 utf8mb4_swedish_ci
-create view v2 as select col1 from v1 union select col1 from t1;
-select coercibility(col1), collation(col1) from v2;
-coercibility(col1) collation(col1)
-0 utf8mb4_swedish_ci
-0 utf8mb4_swedish_ci
-drop view v1, v2;
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int) engine MyISAM;
-insert into t1 values ('a',1);
-select concat(a, if(b>10, N'x', N'y')) from t1;
-concat(a, if(b>10, N'x', N'y'))
-ay
-select concat(a, if(b>10, N'æ', N'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int) engine MyISAM;
-insert into t1 values ('a',1);
-select concat(a, if(b>10, _utf8mb4'x', _utf8mb4'y')) from t1;
-concat(a, if(b>10, _utf8mb4'x', _utf8mb4'y'))
-ay
-select concat(a, if(b>10, _utf8mb4'æ', _utf8mb4'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int) engine MyISAM;
-insert into t1 values ('a',1);
-select concat(a, if(b>10, _utf8mb4 0x78, _utf8mb4 0x79)) from t1;
-concat(a, if(b>10, _utf8mb4 0x78, _utf8mb4 0x79))
-ay
-select concat(a, if(b>10, _utf8mb4 0xC3A6, _utf8mb4 0xC3AF)) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-set names utf8mb4;
-create table t1 (a varchar(10) character set latin1, b int) engine MyISAM;
-insert into t1 values ('a',1);
-select concat(a, if(b>10, 'x' 'x', 'y' 'y')) from t1;
-concat(a, if(b>10, 'x' 'x', 'y' 'y'))
-ayy
-select concat(a, if(b>10, 'x' 'æ', 'y' 'ß')) from t1;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'concat'
-drop table t1;
-CREATE TABLE t1 (
-colA int(11) NOT NULL,
-colB varchar(255) character set utf8mb4 NOT NULL,
-PRIMARY KEY (colA)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t1 (colA, colB) VALUES (1, 'foo'), (2, 'foo bar');
-CREATE TABLE t2 (
-colA int(11) NOT NULL,
-colB varchar(255) character set utf8mb4 NOT NULL,
-KEY bad (colA,colB(3))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t2 (colA, colB) VALUES (1, 'foo'),(2, 'foo bar');
-SELECT * FROM t1 JOIN t2 ON t1.colA=t2.colA AND t1.colB=t2.colB
-WHERE t1.colA < 3;
-colA colB colA colB
-1 foo 1 foo
-2 foo bar 2 foo bar
-DROP TABLE t1, t2;
-SELECT 'н1234567890' UNION SELECT _binary '1';
-н1234567890
-н1234567890
-1
-SELECT 'н1234567890' UNION SELECT 1;
-н1234567890
-н1234567890
-1
-SELECT '1' UNION SELECT 'н1234567890';
-1
-1
-н1234567890
-SELECT 1 UNION SELECT 'н1234567890';
-1
-1
-н1234567890
-CREATE TABLE t1 (c VARCHAR(11)) CHARACTER SET utf8mb4 ENGINE MyISAM;
-CREATE TABLE t2 (b CHAR(1) CHARACTER SET binary, i INT) ENGINE MyISAM;
-INSERT INTO t1 (c) VALUES ('н1234567890');
-INSERT INTO t2 (b, i) VALUES ('1', 1);
-SELECT c FROM t1 UNION SELECT b FROM t2;
-c
-н1234567890
-1
-SELECT c FROM t1 UNION SELECT i FROM t2;
-c
-н1234567890
-1
-SELECT b FROM t2 UNION SELECT c FROM t1;
-b
-1
-н1234567890
-SELECT i FROM t2 UNION SELECT c FROM t1;
-i
-1
-н1234567890
-DROP TABLE t1, t2;
-set sql_mode=traditional;
-select hex(char(0xFF using utf8mb4));
-hex(char(0xFF using utf8mb4))
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF'
-select hex(convert(0xFF using utf8mb4));
-hex(convert(0xFF using utf8mb4))
-3F
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF'
-select hex(_utf8mb4 0x616263FF);
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 B'001111111111');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select (_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-set sql_mode=default;
-select hex(char(0xFF using utf8mb4));
-hex(char(0xFF using utf8mb4))
-NULL
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: 'FF'
-select hex(convert(0xFF using utf8mb4));
-hex(convert(0xFF using utf8mb4))
-3F
-Warnings:
-Warning 1300 Invalid utf8mb4 character string: '\xFF'
-select hex(_utf8mb4 0x616263FF);
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select hex(_utf8mb4 B'001111111111');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-select (_utf8mb4 X'616263FF');
-ERROR HY000: Invalid utf8mb4 character string: 'FF'
-CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL) ENGINE MyISAM;
-INSERT INTO t1 VALUES (70000, 1092), (70001, 1085), (70002, 1065);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-ALTER TABLE t1 ADD UNIQUE (b);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-DROP INDEX b ON t1;
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) FROM t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-ALTER TABLE t1 ADD INDEX (b);
-SELECT CONVERT(a, CHAR), CONVERT(b, CHAR) from t1 GROUP BY b;
-CONVERT(a, CHAR) CONVERT(b, CHAR)
-70000 1092
-70001 1085
-70002 1065
-DROP TABLE t1;
-#
-# Bug#26474: Add Sinhala script (Sri Lanka) collation to MySQL
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-predicted_order int NOT NULL,
-utf8mb4_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb4 ENGINE MyISAM;
-INSERT INTO t1 VALUES (19, x'E0B696'), (30, x'E0B69AE0B798'), (61, x'E0B6AF'), (93, x'E0B799'), (52, x'E0B6A6'), (73, x'E0B6BBE0B78AE2808D'), (3, x'E0B686'), (56, x'E0B6AA'), (55, x'E0B6A9'), (70, x'E0B6B9'), (94, x'E0B79A'), (80, x'E0B785'), (25, x'E0B69AE0B791'), (48, x'E0B6A2'), (13, x'E0B690'), (86, x'E0B793'), (91, x'E0B79F'), (81, x'E0B786'), (79, x'E0B784'), (14, x'E0B691'), (99, x'E0B78A'), (8, x'E0B68B'), (68, x'E0B6B7'), (22, x'E0B69A'), (16, x'E0B693'), (33, x'E0B69AE0B7B3'), (38, x'E0B69AE0B79D'), (21, x'E0B683'), (11, x'E0B68E'), (77, x'E0B782'), (40, x'E0B69AE0B78A'), (101, x'E0B78AE2808DE0B6BB'), (35, x'E0B69AE0B79A'), (1, x'E0B7B4'), (9, x'E0B68C'), (96, x'E0B79C'), (6, x'E0B689'), (95, x'E0B79B'), (88, x'E0B796'), (64, x'E0B6B3'), (26, x'E0B69AE0B792'), (82, x'E0B78F'), (28, x'E0B69AE0B794'), (39, x'E0B69AE0B79E'), (97, x'E0B79D'), (2, x'E0B685'), (75, x'E0B780'), (34, x'E0B69AE0B799'), (69, x'E0B6B8'), (83, x'E0B790'), (18, x'E0B695'), (90, x'E0B7B2'), (17, x'E0B694'), (72, x'E0B6BB'), (66, x'E0B6B5'), (59, x'E0B6AD'), (44, x'E0B69E'), (15, x'E0B692'), (23, x'E0B69AE0B78F'), (65, x'E0B6B4'), (42, x'E0B69C'), (63, x'E0B6B1'), (85, x'E0B792'), (47, x'E0B6A1'), (49, x'E0B6A3'), (92, x'E0B7B3'), (78, x'E0B783'), (36, x'E0B69AE0B79B'), (4, x'E0B687'), (24, x'E0B69AE0B790'), (87, x'E0B794'), (37, x'E0B69AE0B79C'), (32, x'E0B69AE0B79F'), (29, x'E0B69AE0B796'), (43, x'E0B69D'), (62, x'E0B6B0'), (100, x'E0B78AE2808DE0B6BA'), (60, x'E0B6AE'), (45, x'E0B69F'), (12, x'E0B68F'), (46, x'E0B6A0'), (50, x'E0B6A5'), (51, x'E0B6A4'), (5, x'E0B688'), (76, x'E0B781'), (89, x'E0B798'), (74, x'E0B6BD'), (10, x'E0B68D'), (57, x'E0B6AB'), (71, x'E0B6BA'), (58, x'E0B6AC'), (27, x'E0B69AE0B793'), (54, x'E0B6A8'), (84, x'E0B791'), (31, x'E0B69AE0B7B2'), (98, x'E0B79E'), (53, x'E0B6A7'), (41, x'E0B69B'), (67, x'E0B6B6'), (7, x'E0B68A'), (20, x'E0B682');
-SELECT predicted_order, hex(utf8mb4_encoding) FROM t1 ORDER BY utf8mb4_encoding COLLATE utf8mb4_sinhala_ci;
-predicted_order hex(utf8mb4_encoding)
-1 E0B7B4
-2 E0B685
-3 E0B686
-4 E0B687
-5 E0B688
-6 E0B689
-7 E0B68A
-8 E0B68B
-9 E0B68C
-10 E0B68D
-11 E0B68E
-12 E0B68F
-13 E0B690
-14 E0B691
-15 E0B692
-16 E0B693
-17 E0B694
-18 E0B695
-19 E0B696
-20 E0B682
-21 E0B683
-22 E0B69A
-23 E0B69AE0B78F
-24 E0B69AE0B790
-25 E0B69AE0B791
-26 E0B69AE0B792
-27 E0B69AE0B793
-28 E0B69AE0B794
-29 E0B69AE0B796
-30 E0B69AE0B798
-31 E0B69AE0B7B2
-32 E0B69AE0B79F
-33 E0B69AE0B7B3
-34 E0B69AE0B799
-35 E0B69AE0B79A
-36 E0B69AE0B79B
-37 E0B69AE0B79C
-38 E0B69AE0B79D
-39 E0B69AE0B79E
-40 E0B69AE0B78A
-41 E0B69B
-42 E0B69C
-43 E0B69D
-44 E0B69E
-45 E0B69F
-46 E0B6A0
-47 E0B6A1
-48 E0B6A2
-49 E0B6A3
-50 E0B6A5
-51 E0B6A4
-52 E0B6A6
-53 E0B6A7
-54 E0B6A8
-55 E0B6A9
-56 E0B6AA
-57 E0B6AB
-58 E0B6AC
-59 E0B6AD
-60 E0B6AE
-61 E0B6AF
-62 E0B6B0
-63 E0B6B1
-64 E0B6B3
-65 E0B6B4
-66 E0B6B5
-67 E0B6B6
-68 E0B6B7
-69 E0B6B8
-70 E0B6B9
-71 E0B6BA
-72 E0B6BB
-73 E0B6BBE0B78AE2808D
-74 E0B6BD
-75 E0B780
-76 E0B781
-77 E0B782
-78 E0B783
-79 E0B784
-80 E0B785
-81 E0B786
-82 E0B78F
-83 E0B790
-84 E0B791
-85 E0B792
-86 E0B793
-87 E0B794
-88 E0B796
-89 E0B798
-90 E0B7B2
-91 E0B79F
-92 E0B7B3
-93 E0B799
-94 E0B79A
-95 E0B79B
-96 E0B79C
-97 E0B79D
-98 E0B79E
-99 E0B78A
-100 E0B78AE2808DE0B6BA
-101 E0B78AE2808DE0B6BB
-DROP TABLE t1;
-#
-# Bug#32914 Character sets: illegal characters in utf8mb4 and utf32 columns
-#
-create table t1 (utf8mb4 char(1) character set utf8mb4) engine MyISAM;
-Testing [F0][90..BF][80..BF][80..BF]
-insert into t1 values (0xF0908080);
-insert into t1 values (0xF0BFBFBF);
-insert ignore into t1 values (0xF08F8080);
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x8F\x80\x80' for column 'utf8mb4' at row 1
-select hex(utf8mb4) from t1;
-hex(utf8mb4)
-3F
-F0908080
-F0BFBFBF
-delete from t1;
-Testing [F2..F3][80..BF][80..BF][80..BF]
-insert into t1 values (0xF2808080);
-insert into t1 values (0xF2BFBFBF);
-select hex(utf8mb4) from t1;
-hex(utf8mb4)
-F2808080
-F2BFBFBF
-delete from t1;
-Testing [F4][80..8F][80..BF][80..BF]
-insert into t1 values (0xF4808080);
-insert into t1 values (0xF48F8080);
-insert ignore into t1 values (0xF4908080);
-Warnings:
-Warning 1366 Incorrect string value: '\xF4\x90\x80\x80' for column 'utf8mb4' at row 1
-select hex(utf8mb4) from t1;
-hex(utf8mb4)
-3F
-F4808080
-F48F8080
-drop table t1;
-#
-# Check strnxfrm() with odd length
-#
-set max_sort_length=5;
-select @@max_sort_length;
-@@max_sort_length
-5
-create table t1 (a varchar(128) character set utf8mb4 collate utf8mb4_general_ci) engine MyISAM;
-insert into t1 values ('a'),('b'),('c');
-select * from t1 order by a;
-a
-a
-b
-c
-alter table t1 modify a varchar(128) character set utf8mb4 collate utf8mb4_bin;
-select * from t1 order by a;
-a
-a
-b
-c
-drop table t1;
-set max_sort_length=default;
-#
-# Bug#26180: Can't add columns to tables created with utf8mb4 text indexes
-#
-CREATE TABLE t1 (
-clipid INT NOT NULL,
-Tape TINYTEXT,
-PRIMARY KEY (clipid),
-KEY tape(Tape(255))
-) CHARACTER SET=utf8mb4 ENGINE MyISAM;
-Warnings:
-Note 1071 Specified key was too long; max key length is 1000 bytes
-ALTER TABLE t1 ADD mos TINYINT DEFAULT 0 AFTER clipid;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `clipid` int(11) NOT NULL,
- `mos` tinyint(4) DEFAULT 0,
- `Tape` tinytext DEFAULT NULL,
- PRIMARY KEY (`clipid`),
- KEY `tape` (`Tape`(250))
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4
-DROP TABLE t1;
-#
-# Testing 4-byte values.
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-u_decimal int NOT NULL,
-utf8mb4_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb4 ENGINE MyISAM;
-INSERT INTO t1 VALUES (119040, x'f09d8480'),
-# G CLEF
-(119070, x'f09d849e'),
-# HALF NOTE
-(119134, x'f09d859e'),
-# MUSICAL SYMBOL CROIX
-(119247, x'f09d878f'),
-# MATHEMATICAL BOLD ITALIC CAPITAL DELTA
-(120607, x'f09d9c9f'),
-# SANS-SERIF BOLD ITALIC CAPITAL PI
-(120735, x'f09d9e9f'),
-# <Plane 16 Private Use, Last> (last 4 byte character)
-(1114111, x'f48fbfbf'),
-# VARIATION SELECTOR-256
-(917999, x'f3a087af');
-INSERT INTO t1 VALUES (119070, x'f09d849ef09d859ef09d859ef09d8480f09d859ff09d859ff09d859ff09d85a0f09d85a0f09d8480');
-INSERT INTO t1 VALUES (65131, x'efb9abf09d849ef09d859ef09d859ef09d8480f09d859fefb9abefb9abf09d85a0efb9ab');
-INSERT IGNORE INTO t1 VALUES (119070, x'f09d849ef09d859ef09d859ef09d8480f09d859ff09d859ff09d859ff09d85a0f09d85a0f09d8480f09d85a0');
-Warnings:
-Warning 1265 Data truncated for column 'utf8mb4_encoding' at row 1
-SELECT u_decimal, hex(utf8mb4_encoding) FROM t1 ORDER BY utf8mb4_encoding COLLATE utf8mb4_general_ci, BINARY utf8mb4_encoding;
-u_decimal hex(utf8mb4_encoding)
-1114111 F48FBFBF
-119040 F09D8480
-119070 F09D849E
-119070 F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480
-119070 F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480
-119134 F09D859E
-119247 F09D878F
-120607 F09D9C9F
-120735 F09D9E9F
-65131 EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9AB
-917999 F3A087AF
-INSERT IGNORE INTO t1 VALUES (1114111, x'f5808080');
-Warnings:
-Warning 1366 Incorrect string value: '\xF5\x80\x80\x80' for column 'utf8mb4_encoding' at row 1
-SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
-table_name= 't1' AND column_name= 'utf8mb4_encoding';
-character_maximum_length character_octet_length
-10 40
-DROP TABLE IF EXISTS t2;
-CREATE TABLE t2 (
-u_decimal int NOT NULL,
-utf8mb3_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb3 ENGINE MyISAM;
-INSERT INTO t2 VALUES (42856, x'ea9da8');
-INSERT INTO t2 VALUES (65131, x'efb9ab');
-INSERT IGNORE INTO t2 VALUES (1114111, x'f48fbfbf');
-Warnings:
-Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column 'utf8mb3_encoding' at row 1
-SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
-table_name= 't2' AND column_name= 'utf8mb3_encoding';
-character_maximum_length character_octet_length
-10 30
-UPDATE IGNORE t2 SET utf8mb3_encoding= x'f48fbfbd' where u_decimal= 42856;
-Warnings:
-Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBD' for column 'utf8mb3_encoding' at row 1
-UPDATE t2 SET utf8mb3_encoding= _utf8mb4 x'ea9da8' where u_decimal= 42856;
-SELECT HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) FROM t1;
-HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8'))
-3F3F3F3FEA9DA8
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9ABEA9DA8
-F09D8480EA9DA8
-F09D849EEA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-F09D859EEA9DA8
-F09D878FEA9DA8
-F09D9C9FEA9DA8
-F09D9E9FEA9DA8
-F3A087AFEA9DA8
-F48FBFBFEA9DA8
-SELECT HEX(CONCAT(utf8mb4_encoding, utf8mb3_encoding)) FROM t1,t2;
-HEX(CONCAT(utf8mb4_encoding, utf8mb3_encoding))
-3F3F3F3F3F3F3F3F
-3F3F3F3FEA9DA8
-3F3F3F3FEFB9AB
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9AB3F3F3F3F
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9ABEA9DA8
-EFB9ABF09D849EF09D859EF09D859EF09D8480F09D859FEFB9ABEFB9ABF09D85A0EFB9ABEFB9AB
-F09D84803F3F3F3F
-F09D8480EA9DA8
-F09D8480EFB9AB
-F09D849E3F3F3F3F
-F09D849EEA9DA8
-F09D849EEFB9AB
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D84803F3F3F3F
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D84803F3F3F3F
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EA9DA8
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EFB9AB
-F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480EFB9AB
-F09D859E3F3F3F3F
-F09D859EEA9DA8
-F09D859EEFB9AB
-F09D878F3F3F3F3F
-F09D878FEA9DA8
-F09D878FEFB9AB
-F09D9C9F3F3F3F3F
-F09D9C9FEA9DA8
-F09D9C9FEFB9AB
-F09D9E9F3F3F3F3F
-F09D9E9FEA9DA8
-F09D9E9FEFB9AB
-F3A087AF3F3F3F3F
-F3A087AFEA9DA8
-F3A087AFEFB9AB
-F48FBFBF3F3F3F3F
-F48FBFBFEA9DA8
-F48FBFBFEFB9AB
-SELECT count(*) FROM t1, t2
-WHERE t1.utf8mb4_encoding > t2.utf8mb3_encoding;
-count(*)
-33
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 CONVERT TO CHARACTER SET utf8;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb4_encoding` varchar(10) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb4_encoding),utf8mb4_encoding FROM t1;
-u_decimal hex(utf8mb4_encoding) utf8mb4_encoding
-1114111 3F ?
-1114111 3F3F3F3F ????
-119040 3F ?
-119070 3F ?
-119070 3F3F3F3F3F3F3F3F3F3F ??????????
-119070 3F3F3F3F3F3F3F3F3F3F ??????????
-119134 3F ?
-119247 3F ?
-120607 3F ?
-120735 3F ?
-65131 EFB9AB3F3F3F3F3FEFB9ABEFB9AB3FEFB9AB ﹫?????﹫﹫?﹫
-917999 3F ?
-ALTER TABLE t2 CONVERT TO CHARACTER SET utf8mb4;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb3_encoding` varchar(10) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4
-SELECT u_decimal,hex(utf8mb3_encoding) FROM t2;
-u_decimal hex(utf8mb3_encoding)
-1114111 3F3F3F3F
-42856 EA9DA8
-65131 EFB9AB
-ALTER TABLE t2 CONVERT TO CHARACTER SET utf8mb3;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb3_encoding` varchar(10) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb3_encoding) FROM t2;
-u_decimal hex(utf8mb3_encoding)
-1114111 3F3F3F3F
-42856 EA9DA8
-65131 EFB9AB
-ALTER TABLE t1 MODIFY utf8mb4_encoding VARCHAR(10) CHARACTER SET utf8mb3;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb4_encoding` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb4_encoding) FROM t1;
-u_decimal hex(utf8mb4_encoding)
-1114111 3F
-1114111 3F3F3F3F
-119040 3F
-119070 3F
-119070 3F3F3F3F3F3F3F3F3F3F
-119070 3F3F3F3F3F3F3F3F3F3F
-119134 3F
-119247 3F
-120607 3F
-120735 3F
-65131 EFB9AB3F3F3F3F3FEFB9ABEFB9AB3FEFB9AB
-917999 3F
-ALTER TABLE t1 MODIFY utf8mb4_encoding VARCHAR(10) CHARACTER SET utf8mb4;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb4_encoding` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb4_encoding) FROM t1;
-u_decimal hex(utf8mb4_encoding)
-1114111 3F
-1114111 3F3F3F3F
-119040 3F
-119070 3F
-119070 3F3F3F3F3F3F3F3F3F3F
-119070 3F3F3F3F3F3F3F3F3F3F
-119134 3F
-119247 3F
-120607 3F
-120735 3F
-65131 EFB9AB3F3F3F3F3FEFB9ABEFB9AB3FEFB9AB
-917999 3F
-ALTER TABLE t2 MODIFY utf8mb3_encoding VARCHAR(10) CHARACTER SET utf8mb4;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `u_decimal` int(11) NOT NULL,
- `utf8mb3_encoding` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-SELECT u_decimal,hex(utf8mb3_encoding) FROM t2;
-u_decimal hex(utf8mb3_encoding)
-1114111 3F3F3F3F
-42856 EA9DA8
-65131 EFB9AB
-DROP TABLE IF EXISTS t3;
-CREATE TABLE t3 (
-u_decimal int NOT NULL,
-utf8mb3_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8 ENGINE MyISAM;
-INSERT INTO t3 SELECT * FROM t1;
-DROP TABLE IF EXISTS t4;
-CREATE TABLE t4 (
-u_decimal int NOT NULL,
-utf8mb4_encoding VARCHAR(10) NOT NULL
-) CHARACTER SET utf8mb4 ENGINE MyISAM;
-INSERT INTO t3 SELECT * FROM t2;
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t3;
-DROP TABLE t4;
-#
-# Testing that mixing utf8 and utf8mb4 collations returns utf8mb4
-#
-SELECT CHARSET(CONCAT(_utf8mb4'a',_utf8'b'));
-CHARSET(CONCAT(_utf8mb4'a',_utf8'b'))
-utf8mb4
-CREATE TABLE t1 (utf8mb4 VARCHAR(10) CHARACTER SET utf8mb4 NOT NULL) ENGINE MyISAM;
-INSERT INTO t1 VALUES (x'ea9da8'),(x'f48fbfbf');
-SELECT CONCAT(utf8mb4, _utf8 x'ea9da8') FROM t1 LIMIT 0;
-CONCAT(utf8mb4, _utf8 x'ea9da8')
-CREATE TABLE t2 (utf8mb3 VARCHAR(10) CHARACTER SET utf8mb3 NOT NULL) ENGINE MyISAM;
-INSERT INTO t2 VALUES (x'ea9da8');
-SELECT HEX(CONCAT(utf8mb4, utf8mb3)) FROM t1,t2 ORDER BY 1;
-HEX(CONCAT(utf8mb4, utf8mb3))
-EA9DA8EA9DA8
-F48FBFBFEA9DA8
-SELECT CHARSET(CONCAT(utf8mb4, utf8mb3)) FROM t1, t2 LIMIT 1;
-CHARSET(CONCAT(utf8mb4, utf8mb3))
-utf8mb4
-CREATE TEMPORARY TABLE t3 ENGINE MyISAM AS SELECT *, concat(utf8mb4,utf8mb3) FROM t1, t2;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TEMPORARY TABLE `t3` (
- `utf8mb4` varchar(10) CHARACTER SET utf8mb4 NOT NULL,
- `utf8mb3` varchar(10) CHARACTER SET utf8 NOT NULL,
- `concat(utf8mb4,utf8mb3)` varchar(20) CHARACTER SET utf8mb4 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TEMPORARY TABLE t3;
-SELECT * FROM t1, t2 WHERE t1.utf8mb4 > t2.utf8mb3;
-utf8mb4 utf8mb3
-ô¿¿ ê¨
-SELECT * FROM t1, t2 WHERE t1.utf8mb4 = t2.utf8mb3;
-utf8mb4 utf8mb3
-ê¨ ê¨
-SELECT * FROM t1, t2 WHERE t1.utf8mb4 < t2.utf8mb3;
-utf8mb4 utf8mb3
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# Check that mixing utf8mb4 with an invalid utf8 constant returns error
-#
-CREATE TABLE t1 (utf8mb4 VARCHAR(10) CHARACTER SET utf8mb4) ENGINE MyISAM;
-INSERT INTO t1 VALUES (x'f48fbfbf');
-SELECT CONCAT(utf8mb4, _utf8 '¿') FROM t1;
-ERROR HY000: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-SELECT CONCAT('a', _utf8 '¿') FROM t1;
-ERROR HY000: Illegal mix of collations (utf8mb4_general_ci,COERCIBLE) and (utf8_general_ci,COERCIBLE) for operation 'concat'
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# ctype_utf8mb4.inc: Start of 10.1 tests
-#
-#
-# MDEV-8417 utf8mb4: compare broken bytes as "greater than any non-broken character"
-#
-CREATE TABLE t1 (
-id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-a VARCHAR(10) CHARACTER SET utf8mb4, KEY(a,id)
-);
-INSERT INTO t1 (a) VALUES (0x61);
-INSERT INTO t1 (a) VALUES (0xC280),(0xDFBF);
-INSERT INTO t1 (a) VALUES (0xE0A080),(0xEFBFBF);
-INSERT INTO t1 (a) VALUES (0xF0908080),(0xF48FBFBF);
-SELECT id,HEX(a) FROM t1 ORDER BY a,id;
-id HEX(a)
-1 61
-2 C280
-3 DFBF
-4 E0A080
-6 F0908080
-7 F48FBFBF
-5 EFBFBF
-SELECT id,HEX(a) FROM t1 ORDER BY a DESC,id DESC;
-id HEX(a)
-5 EFBFBF
-7 F48FBFBF
-6 F0908080
-4 E0A080
-3 DFBF
-2 C280
-1 61
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-6
-ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
-SELECT id,HEX(a) FROM t1 ORDER BY a;
-id HEX(a)
-1 61
-2 C280
-3 DFBF
-4 E0A080
-5 EFBFBF
-6 F0908080
-7 F48FBFBF
-SELECT id,HEX(a) FROM t1 ORDER BY a DESC,id DESC;
-id HEX(a)
-7 F48FBFBF
-6 F0908080
-5 EFBFBF
-4 E0A080
-3 DFBF
-2 C280
-1 61
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-7
-DROP TABLE t1;
-#
-# ctype_utf8mb4.inc: End of 10.1 tests
-#
-#
-# End of ctype_utf8mb4.inc
-#
diff --git a/mysql-test/r/ctype_utf8mb4_uca.result b/mysql-test/r/ctype_utf8mb4_uca.result
deleted file mode 100644
index 0712ca63abd..00000000000
--- a/mysql-test/r/ctype_utf8mb4_uca.result
+++ /dev/null
@@ -1,6607 +0,0 @@
-DROP TABLE IF EXISTS t1;
-#
-# Start of 5.5 tests
-#
-SET NAMES utf8mb4;
-CREATE TABLE t1 (c1 CHAR(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin);
-insert into t1 values ('A'),('a');
-insert into t1 values ('B'),('b');
-insert into t1 values ('C'),('c');
-insert into t1 values ('D'),('d');
-insert into t1 values ('E'),('e');
-insert into t1 values ('F'),('f');
-insert into t1 values ('G'),('g');
-insert into t1 values ('H'),('h');
-insert into t1 values ('I'),('i');
-insert into t1 values ('J'),('j');
-insert into t1 values ('K'),('k');
-insert into t1 values ('L'),('l');
-insert into t1 values ('M'),('m');
-insert into t1 values ('N'),('n');
-insert into t1 values ('O'),('o');
-insert into t1 values ('P'),('p');
-insert into t1 values ('Q'),('q');
-insert into t1 values ('R'),('r');
-insert into t1 values ('S'),('s');
-insert into t1 values ('T'),('t');
-insert into t1 values ('U'),('u');
-insert into t1 values ('V'),('v');
-insert into t1 values ('W'),('w');
-insert into t1 values ('X'),('x');
-insert into t1 values ('Y'),('y');
-insert into t1 values ('Z'),('z');
-insert into t1 values (_ucs2 0x00e0),(_ucs2 0x00c0);
-insert into t1 values (_ucs2 0x00e1),(_ucs2 0x00c1);
-insert into t1 values (_ucs2 0x00e2),(_ucs2 0x00c2);
-insert into t1 values (_ucs2 0x00e3),(_ucs2 0x00c3);
-insert into t1 values (_ucs2 0x00e4),(_ucs2 0x00c4);
-insert into t1 values (_ucs2 0x00e5),(_ucs2 0x00c5);
-insert into t1 values (_ucs2 0x00e6),(_ucs2 0x00c6);
-insert into t1 values (_ucs2 0x00e7),(_ucs2 0x00c7);
-insert into t1 values (_ucs2 0x00e8),(_ucs2 0x00c8);
-insert into t1 values (_ucs2 0x00e9),(_ucs2 0x00c9);
-insert into t1 values (_ucs2 0x00ea),(_ucs2 0x00ca);
-insert into t1 values (_ucs2 0x00eb),(_ucs2 0x00cb);
-insert into t1 values (_ucs2 0x00ec),(_ucs2 0x00cc);
-insert into t1 values (_ucs2 0x00ed),(_ucs2 0x00cd);
-insert into t1 values (_ucs2 0x00ee),(_ucs2 0x00ce);
-insert into t1 values (_ucs2 0x00ef),(_ucs2 0x00cf);
-insert into t1 values (_ucs2 0x00f0),(_ucs2 0x00d0);
-insert into t1 values (_ucs2 0x00f1),(_ucs2 0x00d1);
-insert into t1 values (_ucs2 0x00f2),(_ucs2 0x00d2);
-insert into t1 values (_ucs2 0x00f3),(_ucs2 0x00d3);
-insert into t1 values (_ucs2 0x00f4),(_ucs2 0x00d4);
-insert into t1 values (_ucs2 0x00f5),(_ucs2 0x00d5);
-insert into t1 values (_ucs2 0x00f6),(_ucs2 0x00d6);
-insert into t1 values (_ucs2 0x00f7),(_ucs2 0x00d7);
-insert into t1 values (_ucs2 0x00f8),(_ucs2 0x00d8);
-insert into t1 values (_ucs2 0x00f9),(_ucs2 0x00d9);
-insert into t1 values (_ucs2 0x00fa),(_ucs2 0x00da);
-insert into t1 values (_ucs2 0x00fb),(_ucs2 0x00db);
-insert into t1 values (_ucs2 0x00fc),(_ucs2 0x00dc);
-insert into t1 values (_ucs2 0x00fd),(_ucs2 0x00dd);
-insert into t1 values (_ucs2 0x00fe),(_ucs2 0x00de);
-insert into t1 values (_ucs2 0x00ff),(_ucs2 0x00df);
-insert into t1 values (_ucs2 0x0100),(_ucs2 0x0101),(_ucs2 0x0102),(_ucs2 0x0103);
-insert into t1 values (_ucs2 0x0104),(_ucs2 0x0105),(_ucs2 0x0106),(_ucs2 0x0107);
-insert into t1 values (_ucs2 0x0108),(_ucs2 0x0109),(_ucs2 0x010a),(_ucs2 0x010b);
-insert into t1 values (_ucs2 0x010c),(_ucs2 0x010d),(_ucs2 0x010e),(_ucs2 0x010f);
-insert into t1 values (_ucs2 0x0110),(_ucs2 0x0111),(_ucs2 0x0112),(_ucs2 0x0113);
-insert into t1 values (_ucs2 0x0114),(_ucs2 0x0115),(_ucs2 0x0116),(_ucs2 0x0117);
-insert into t1 values (_ucs2 0x0118),(_ucs2 0x0119),(_ucs2 0x011a),(_ucs2 0x011b);
-insert into t1 values (_ucs2 0x011c),(_ucs2 0x011d),(_ucs2 0x011e),(_ucs2 0x011f);
-insert into t1 values (_ucs2 0x0120),(_ucs2 0x0121),(_ucs2 0x0122),(_ucs2 0x0123);
-insert into t1 values (_ucs2 0x0124),(_ucs2 0x0125),(_ucs2 0x0126),(_ucs2 0x0127);
-insert into t1 values (_ucs2 0x0128),(_ucs2 0x0129),(_ucs2 0x012a),(_ucs2 0x012b);
-insert into t1 values (_ucs2 0x012c),(_ucs2 0x012d),(_ucs2 0x012e),(_ucs2 0x012f);
-insert into t1 values (_ucs2 0x0130),(_ucs2 0x0131),(_ucs2 0x0132),(_ucs2 0x0133);
-insert into t1 values (_ucs2 0x0134),(_ucs2 0x0135),(_ucs2 0x0136),(_ucs2 0x0137);
-insert into t1 values (_ucs2 0x0138),(_ucs2 0x0139),(_ucs2 0x013a),(_ucs2 0x013b);
-insert into t1 values (_ucs2 0x013c),(_ucs2 0x013d),(_ucs2 0x013e),(_ucs2 0x013f);
-insert into t1 values (_ucs2 0x0140),(_ucs2 0x0141),(_ucs2 0x0142),(_ucs2 0x0143);
-insert into t1 values (_ucs2 0x0144),(_ucs2 0x0145),(_ucs2 0x0146),(_ucs2 0x0147);
-insert into t1 values (_ucs2 0x0148),(_ucs2 0x0149),(_ucs2 0x014a),(_ucs2 0x014b);
-insert into t1 values (_ucs2 0x014c),(_ucs2 0x014d),(_ucs2 0x014e),(_ucs2 0x014f);
-insert into t1 values (_ucs2 0x0150),(_ucs2 0x0151),(_ucs2 0x0152),(_ucs2 0x0153);
-insert into t1 values (_ucs2 0x0154),(_ucs2 0x0155),(_ucs2 0x0156),(_ucs2 0x0157);
-insert into t1 values (_ucs2 0x0158),(_ucs2 0x0159),(_ucs2 0x015a),(_ucs2 0x015b);
-insert into t1 values (_ucs2 0x015c),(_ucs2 0x015d),(_ucs2 0x015e),(_ucs2 0x015f);
-insert into t1 values (_ucs2 0x0160),(_ucs2 0x0161),(_ucs2 0x0162),(_ucs2 0x0163);
-insert into t1 values (_ucs2 0x0164),(_ucs2 0x0165),(_ucs2 0x0166),(_ucs2 0x0167);
-insert into t1 values (_ucs2 0x0168),(_ucs2 0x0169),(_ucs2 0x016a),(_ucs2 0x016b);
-insert into t1 values (_ucs2 0x016c),(_ucs2 0x016d),(_ucs2 0x016e),(_ucs2 0x016f);
-insert into t1 values (_ucs2 0x0170),(_ucs2 0x0171),(_ucs2 0x0172),(_ucs2 0x0173);
-insert into t1 values (_ucs2 0x0174),(_ucs2 0x0175),(_ucs2 0x0176),(_ucs2 0x0177);
-insert into t1 values (_ucs2 0x0178),(_ucs2 0x0179),(_ucs2 0x017a),(_ucs2 0x017b);
-insert into t1 values (_ucs2 0x017c),(_ucs2 0x017d),(_ucs2 0x017e),(_ucs2 0x017f);
-insert into t1 values (_ucs2 0x0180),(_ucs2 0x0181),(_ucs2 0x0182),(_ucs2 0x0183);
-insert into t1 values (_ucs2 0x0184),(_ucs2 0x0185),(_ucs2 0x0186),(_ucs2 0x0187);
-insert into t1 values (_ucs2 0x0188),(_ucs2 0x0189),(_ucs2 0x018a),(_ucs2 0x018b);
-insert into t1 values (_ucs2 0x018c),(_ucs2 0x018d),(_ucs2 0x018e),(_ucs2 0x018f);
-insert into t1 values (_ucs2 0x0190),(_ucs2 0x0191),(_ucs2 0x0192),(_ucs2 0x0193);
-insert into t1 values (_ucs2 0x0194),(_ucs2 0x0195),(_ucs2 0x0196),(_ucs2 0x0197);
-insert into t1 values (_ucs2 0x0198),(_ucs2 0x0199),(_ucs2 0x019a),(_ucs2 0x019b);
-insert into t1 values (_ucs2 0x019c),(_ucs2 0x019d),(_ucs2 0x019e),(_ucs2 0x019f);
-insert into t1 values (_ucs2 0x01a0),(_ucs2 0x01a1),(_ucs2 0x01a2),(_ucs2 0x01a3);
-insert into t1 values (_ucs2 0x01a4),(_ucs2 0x01a5),(_ucs2 0x01a6),(_ucs2 0x01a7);
-insert into t1 values (_ucs2 0x01a8),(_ucs2 0x01a9),(_ucs2 0x01aa),(_ucs2 0x01ab);
-insert into t1 values (_ucs2 0x01ac),(_ucs2 0x01ad),(_ucs2 0x01ae),(_ucs2 0x01af);
-insert into t1 values (_ucs2 0x01b0),(_ucs2 0x01b1),(_ucs2 0x01b2),(_ucs2 0x01b3);
-insert into t1 values (_ucs2 0x01b4),(_ucs2 0x01b5),(_ucs2 0x01b6),(_ucs2 0x01b7);
-insert into t1 values (_ucs2 0x01b8),(_ucs2 0x01b9),(_ucs2 0x01ba),(_ucs2 0x01bb);
-insert into t1 values (_ucs2 0x01bc),(_ucs2 0x01bd),(_ucs2 0x01be),(_ucs2 0x01bf);
-insert into t1 values (_ucs2 0x01c0),(_ucs2 0x01c1),(_ucs2 0x01c2),(_ucs2 0x01c3);
-insert into t1 values (_ucs2 0x01c4),(_ucs2 0x01c5),(_ucs2 0x01c6),(_ucs2 0x01c7);
-insert into t1 values (_ucs2 0x01c8),(_ucs2 0x01c9),(_ucs2 0x01ca),(_ucs2 0x01cb);
-insert into t1 values (_ucs2 0x01cc),(_ucs2 0x01cd),(_ucs2 0x01ce),(_ucs2 0x01cf);
-insert into t1 values (_ucs2 0x01d0),(_ucs2 0x01d1),(_ucs2 0x01d2),(_ucs2 0x01d3);
-insert into t1 values (_ucs2 0x01d4),(_ucs2 0x01d5),(_ucs2 0x01d6),(_ucs2 0x01d7);
-insert into t1 values (_ucs2 0x01d8),(_ucs2 0x01d9),(_ucs2 0x01da),(_ucs2 0x01db);
-insert into t1 values (_ucs2 0x01dc),(_ucs2 0x01dd),(_ucs2 0x01de),(_ucs2 0x01df);
-insert into t1 values (_ucs2 0x01e0),(_ucs2 0x01e1),(_ucs2 0x01e2),(_ucs2 0x01e3);
-insert into t1 values (_ucs2 0x01e4),(_ucs2 0x01e5),(_ucs2 0x01e6),(_ucs2 0x01e7);
-insert into t1 values (_ucs2 0x01e8),(_ucs2 0x01e9),(_ucs2 0x01ea),(_ucs2 0x01eb);
-insert into t1 values (_ucs2 0x01ec),(_ucs2 0x01ed),(_ucs2 0x01ee),(_ucs2 0x01ef);
-insert into t1 values (_ucs2 0x01f0),(_ucs2 0x01f1),(_ucs2 0x01f2),(_ucs2 0x01f3);
-insert into t1 values (_ucs2 0x01f4),(_ucs2 0x01f5),(_ucs2 0x01f6),(_ucs2 0x01f7);
-insert into t1 values (_ucs2 0x01f8),(_ucs2 0x01f9),(_ucs2 0x01fa),(_ucs2 0x01fb);
-insert into t1 values (_ucs2 0x01fc),(_ucs2 0x01fd),(_ucs2 0x01fe),(_ucs2 0x01ff);
-INSERT INTO t1 VALUES (_ucs2 0x1EA0),(_ucs2 0x1EA1),(_ucs2 0x1EA2),(_ucs2 0x1EA3);
-INSERT INTO t1 VALUES (_ucs2 0x1EA4),(_ucs2 0x1EA5),(_ucs2 0x1EA6),(_ucs2 0x1EA7);
-INSERT INTO t1 VALUES (_ucs2 0x1EA8),(_ucs2 0x1EA9),(_ucs2 0x1EAA),(_ucs2 0x1EAB);
-INSERT INTO t1 VALUES (_ucs2 0x1EAC),(_ucs2 0x1EAD),(_ucs2 0x1EAE),(_ucs2 0x1EAF);
-INSERT INTO t1 VALUES (_ucs2 0x1EB0),(_ucs2 0x1EB1),(_ucs2 0x1EB2),(_ucs2 0x1EB3);
-INSERT INTO t1 VALUES (_ucs2 0x1EB4),(_ucs2 0x1EB5),(_ucs2 0x1EB6),(_ucs2 0x1EB7);
-INSERT INTO t1 VALUES (_ucs2 0x1EB8),(_ucs2 0x1EB9),(_ucs2 0x1EBA),(_ucs2 0x1EBB);
-INSERT INTO t1 VALUES (_ucs2 0x1EBC),(_ucs2 0x1EBD),(_ucs2 0x1EBE),(_ucs2 0x1EBF);
-INSERT INTO t1 VALUES (_ucs2 0x1EC0),(_ucs2 0x1EC1),(_ucs2 0x1EC2),(_ucs2 0x1EC3);
-INSERT INTO t1 VALUES (_ucs2 0x1EC4),(_ucs2 0x1EC5),(_ucs2 0x1EC6),(_ucs2 0x1EC7);
-INSERT INTO t1 VALUES (_ucs2 0x1EC8),(_ucs2 0x1EC9),(_ucs2 0x1ECA),(_ucs2 0x1ECB);
-INSERT INTO t1 VALUES (_ucs2 0x1ECC),(_ucs2 0x1ECD),(_ucs2 0x1ECE),(_ucs2 0x1ECF);
-INSERT INTO t1 VALUES (_ucs2 0x1ED0),(_ucs2 0x1ED1),(_ucs2 0x1ED2),(_ucs2 0x1ED3);
-INSERT INTO t1 VALUES (_ucs2 0x1ED4),(_ucs2 0x1ED5),(_ucs2 0x1ED6),(_ucs2 0x1ED7);
-INSERT INTO t1 VALUES (_ucs2 0x1ED8),(_ucs2 0x1ED9),(_ucs2 0x1EDA),(_ucs2 0x1EDB);
-INSERT INTO t1 VALUES (_ucs2 0x1EDC),(_ucs2 0x1EDD),(_ucs2 0x1EDE),(_ucs2 0x1EDF);
-INSERT INTO t1 VALUES (_ucs2 0x1EE0),(_ucs2 0x1EE1),(_ucs2 0x1EE2),(_ucs2 0x1EE3);
-INSERT INTO t1 VALUES (_ucs2 0x1EE4),(_ucs2 0x1EE5),(_ucs2 0x1EE6),(_ucs2 0x1EE7);
-INSERT INTO t1 VALUES (_ucs2 0x1EE8),(_ucs2 0x1EE9),(_ucs2 0x1EEA),(_ucs2 0x1EEB);
-INSERT INTO t1 VALUES (_ucs2 0x1EEC),(_ucs2 0x1EED),(_ucs2 0x1EEE),(_ucs2 0x1EEF);
-INSERT INTO t1 VALUES (_ucs2 0x1EF0),(_ucs2 0x1EF1);
-insert into t1 values ('AA'),('Aa'),('aa'),('aA');
-insert into t1 values ('AE'),('Ae'),('ae'),('aE');
-insert into t1 values ('CH'),('Ch'),('ch'),('cH');
-insert into t1 values ('DZ'),('Dz'),('dz'),('dZ');
-insert into t1 values ('DŽ'),('Dž'),('dž'),('dŽ');
-insert into t1 values ('IJ'),('Ij'),('ij'),('iJ');
-insert into t1 values ('LJ'),('Lj'),('lj'),('lJ');
-insert into t1 values ('LL'),('Ll'),('ll'),('lL');
-insert into t1 values ('NJ'),('Nj'),('nj'),('nJ');
-insert into t1 values ('OE'),('Oe'),('oe'),('oE');
-insert into t1 values ('SS'),('Ss'),('ss'),('sS');
-insert into t1 values ('RR'),('Rr'),('rr'),('rR');
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_unicode_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_icelandic_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÂÃàâãĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-Ãá
-ǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-Ãð
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-EeÈÊËèêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-Éé
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÌÎÃìîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-Ãí
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÔÕòôõŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Óó
-Ǿǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÛÜùûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Úú
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÿŶŷŸ
-Ãý
-Ƴƴ
-ZzŹźŻżŽž
-Þþ
-ÄÆäæ
-ÖØöø
-Ã…Ã¥
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_latvian_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċ
-CHChcHch
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġǦǧǴǵ
-Ģģ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-Yy
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkǨǩ
-Ķķ
-Ƙƙ
-LlĹ弾
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-Ļļ
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŇňǸǹ
-NJNjnJnjNJNjnj
-Ņņ
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŘř
-RRRrrRrr
-Å–Å—
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-ÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_romanian_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÃÄÅàáãäåĀÄÄ„Ä…ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-Ăă
-Ââ
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃìíïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-Îî
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅÅ Å¡Å¿
-SSSssSssß
-Şş
-Æ©
-ƪ
-TtŤť
-ƾ
-Ţţ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_slovenian_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċ
-CHChcHch
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_polish_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂăÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-Ä„Ä…
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĈĉĊċČÄ
-CHChcHch
-Ćć
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-Ęę
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Ńń
-Æž
-ÅŠÅ‹
-OoÒÔÕÖòôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Óó
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsÅœÅŞşŠšſ
-SSSssSssß
-Śś
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŽž
-Źź
-Żż
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_estonian_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÅàáâãåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzdZdz
-DŽDždŽdž
-DŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔòóôŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Zz
-Žž
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Õõ
-Ää
-Öö
-Üü
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ŹźŻż
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_spanish_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Ññ
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_swedish_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃàáâãĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Ǿǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃœÃüýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ã…Ã¥
-ÄÆäæ
-ÖØöø
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_turkish_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcĆćĈĉĊċČÄ
-CHChcHch
-Çç
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĠġĢģǦǧǴǵ
-Ğğ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-Iı
-IJIj
-ƕǶ
-Ħħ
-iÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-iJijIJij
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Öö
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅÅ Å¡Å¿
-SSSssSssß
-Şş
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Üü
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_czech_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċ
-cH
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-CHChch
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗ
-RRRrrRrr
-Řř
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_danish_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃàáâãĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-aA
-AEAeaEae
-ǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Ǿǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃœÃüýÿŰűŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-ÄÆäæ
-ÖØöøÅÅ‘
-AAAaaaÃ…Ã¥
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_lithuanian_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CCHChcchÇçĆćĈĉĊċ
-cH
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IYiyÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-ÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_slovak_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÅàáâãåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-Ää
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċ
-cH
-ÄŒÄ
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDŽDždžDZDzdz
-DŽDždŽdž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-CHChch
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÕÖòóõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Ôô
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_spanish2_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-cH
-CHChch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-lL
-LLLlll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Ññ
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_roman_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IJijÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJij
-IJij
-ı
-Æ—
-Æ–
-Ĵĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJlj
-LJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnj
-NJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-ÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-UVuv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_esperanto_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĊċČÄ
-CHChcHch
-Ĉĉ
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgĞğĠġĢģǦǧǴǵ
-ÄœÄ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-Hh
-Ĥĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjÇ°
-Ĵĵ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŞşŠšſ
-SSSssSssß
-ÅœÅ
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ŭŭ
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_hungarian_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ÖöÅÅ‘
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-ÜüŰű
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_croatian_mysql561_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĈĉĊċ
-CHChcHch
-ÄŒÄ
-Ćć
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDZDzdz
-DŽDždŽdžDŽDždž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LLLllLll
-LJLjlJljLJLjlj
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_croatian_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEae
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĈĉĊċ
-CHChcHch
-ÄŒÄ
-Ćć
-Ƈƈ
-DdÄŽÄ
-DZDzdZdzDZDzdz
-dŽ
-DŽDždžDŽDždž
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-lJ
-LLLllLll
-LJLjljLJLjlj
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-nJ
-NJNjnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖòóôõöŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşſ
-SSSssSssß
-Å Å¡
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻż
-Žž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_german2_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÅàáâãåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEaeÄÆäæ
-ǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕòóôõŌÅÅŽÅÅőƠơǑǒǪǫǬǭỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÖöŒœ
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛùúûŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Üü
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_unicode_520_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÂÃÄÅàáâãäåĀÄĂ㥹ÇǎǞǟǠǡǺǻẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ
-AAAaaAaa
-AEAeaEaeÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÃðĎÄÄÄ‘
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-Ɖ
-ÆŠ
-Ƌƌ
-EeÈÉÊËèéêëĒēĔĕĖėĘęĚěẸẹẺẻẼẽẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥĦħ
-ƕǶ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľĿŀÅÅ‚
-LJLjlJljLJLjlj
-LLLllLll
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÔÕÖØòóôõöøŌÅÅŽÅÅőƠơǑǒǪǫǬǭǾǿỌá»á»Žá»á»á»‘ỒồỔổỖỗỘộỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-OEOeoEoeÅ’Å“
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜỤụỦủỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-SELECT GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '') FROM t1 GROUP BY c1 COLLATE utf8mb4_vietnamese_ci;
-GROUP_CONCAT(c1 ORDER BY c1 SEPARATOR '')
-÷
-×
-AaÀÃÃÄÅàáãäåĀÄÄ„Ä…ÇǎǞǟǠǡǺǻẠạẢả
-AAAaaAaa
-AEAeaEae
-ĂăẮắẰằẲẳẴẵẶặ
-ÂâẤấẦầẨẩẪẫẬậ
-ÆæǢǣǼǽ
-Bb
-Æ€
-Ƃƃ
-CcÇçĆćĈĉĊċČÄ
-CHChcHch
-Ƈƈ
-DdÄŽÄ
-DZDzDŽDždZdzdŽdžDŽDždžDZDzdz
-ÄÄ‘
-Ɖ
-ÆŠ
-Ƌƌ
-Ãð
-EeÈÉËèéëĒēĔĕĖėĘęĚěẸẹẺẻẼẽ
-ÊêẾếỀá»á»‚ểỄễỆệ
-ÆŽÇ
-Ff
-Æ‘Æ’
-GgÄœÄĞğĠġĢģǦǧǴǵ
-Ǥǥ
-Æ“
-Æ”
-Ƣƣ
-HhĤĥ
-ƕǶ
-Ħħ
-IiÃŒÃÃŽÃìíîïĨĩĪīĬĭĮįİÇÇỈỉỊị
-IJIjiJijIJij
-ı
-Æ—
-Æ–
-JjĴĵǰ
-KkĶķǨǩ
-Ƙƙ
-LlĹĺĻļĽľ
-Ä¿Å€
-LJLjlJljLJLjlj
-LLLllLll
-ÅÅ‚
-Æš
-Æ›
-Mm
-NnÑñŃńŅņŇňǸǹ
-NJNjnJnjNJNjnj
-Æž
-ÅŠÅ‹
-OoÒÓÕÖòóõöŌÅÅŽÅÅőǑǒǪǫǬǭỌá»á»Žá»
-OEOeoEoeÅ’Å“
-Ôôá»á»‘ỒồỔổỖỗỘộ
-ƠơỚớỜá»á»žá»Ÿá» á»¡á»¢á»£
-ØøǾǿ
-Ɔ
-ÆŸ
-Pp
-Ƥƥ
-Qq
-ĸ
-RrŔŕŖŗŘř
-RRRrrRrr
-Ʀ
-SsŚśŜÅŞşŠšſ
-SSSssSssß
-Æ©
-ƪ
-TtŢţŤť
-ƾ
-Ŧŧ
-Æ«
-Ƭƭ
-Æ®
-UuÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųǓǔǕǖǗǘǙǚǛǜỤụỦủ
-ƯưỨứỪừỬửỮữỰự
-Ɯ
-Ʊ
-Vv
-Ʋ
-WwŴŵ
-Xx
-YyÃýÿŶŷŸ
-Ƴƴ
-ZzŹźŻżŽž
-Ƶƶ
-ƷǮǯ
-Ƹƹ
-ƺ
-Þþ
-Æ¿Ç·
-Æ»
-Ƨƨ
-Ƽƽ
-Æ„Æ…
-ʼn
-Ç€
-Ç‚
-ǃ
-DROP TABLE t1;
-#
-# Start of 5.5 tests
-#
-SET collation_connection=utf8mb4_czech_ci;
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_czech_ci
-#
-# Bug#57737 Character sets: search fails with like, contraction, index
-#
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS s1 LIMIT 0;
-INSERT INTO t1 VALUES ('c'),('ce'),('cé'),('ch');
-SELECT * FROM t1 WHERE s1 LIKE 'c%';
-s1
-c
-ce
-cé
-ch
-ALTER TABLE t1 ADD KEY s1 (s1);
-SELECT * FROM t1 WHERE s1 LIKE 'c%';
-s1
-c
-ce
-cé
-ch
-ALTER TABLE t1 DROP KEY s1, ADD KEY(s1(1));
-SELECT * FROM t1 WHERE s1 LIKE 'ch';
-s1
-ch
-DROP TABLE t1;
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_czech_ci
-#
-# Bug#57737 Character sets: search fails with like, contraction, index
-# Part#2 - ignorable characters
-#
-CREATE TABLE t1 AS SELECT REPEAT(' ', 10) AS s1 LIMIT 0;
-INSERT INTO t1 VALUES ('a\0\0\0\0\0\t'),('a'),('b'),('c'),('d'),('e');
-SELECT HEX(s1) FROM t1 WHERE s1 LIKE 'a%';
-HEX(s1)
-61000000000009
-61
-ALTER TABLE t1 ADD KEY s1 (s1);
-SELECT HEX(s1) FROM t1 WHERE s1 LIKE 'a%';
-HEX(s1)
-61000000000009
-61
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# Start of MariaDB-10.0 tests
-#
-
-#
-# MDEV-4929 Myanmar collation
-#
-SET NAMES utf8mb4 COLLATE utf8mb4_myanmar_ci;
-#
-# Start of ctype_myanmar.inc
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_myanmar_ci
-CREATE TABLE t1 AS SELECT 100000 AS id, REPEAT(' ', 64) AS s1 LIMIT 0;
-SELECT COLLATION(s1) FROM t1;
-COLLATION(s1)
-DELETE FROM t1;
-ALTER TABLE t1 MODIFY id INT NOT NULL AUTO_INCREMENT PRIMARY KEY;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `s1` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_myanmar_ci DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (s1) VALUES
-(_ucs2 0x108C),
-(_ucs2 0x1037),
-(_ucs2 0x1038),
-(_ucs2 0x10371038),
-('--- Vowels'),
-(_ucs2 0x102C),
-(_ucs2 0x102B),
-(_ucs2 0x1032),
-(_ucs2 0x1031102C),
-(_ucs2 0x1031102B),
-(_ucs2 0x1031102C103A),
-(_ucs2 0x1031102B103A),
-(_ucs2 0x1034),
-(_ucs2 0x1036),
-(_ucs2 0x102D102F),
-('--- Vowels with finals'),
-(_ucs2 0x10001039),
-(_ucs2 0x1000103A),
-(_ucs2 0x102C10001039),
-(_ucs2 0x102C1000103A),
-(_ucs2 0x102B10001039),
-(_ucs2 0x102B1000103A),
-(_ucs2 0x102D10001039),
-(_ucs2 0x102D1000103A),
-(_ucs2 0x102F10001039),
-(_ucs2 0x102F1000103A),
-(_ucs2 0x103110001039),
-(_ucs2 0x10311000103A),
-(_ucs2 0x1031102C10001039),
-(_ucs2 0x1031102C1000103A),
-(_ucs2 0x1031102B10001039),
-(_ucs2 0x1031102B1000103A),
-(_ucs2 0x102D102F10001039),
-(_ucs2 0x102D102F1000103A),
-(_ucs2 0x10011039),
-(_ucs2 0x1001103A),
-(_ucs2 0x102C10011039),
-(_ucs2 0x102C1001103A),
-(_ucs2 0x102B10011039),
-(_ucs2 0x102B1001103A),
-(_ucs2 0x102D10011039),
-(_ucs2 0x102D1001103A),
-(_ucs2 0x102F10011039),
-(_ucs2 0x102F1001103A),
-(_ucs2 0x103110011039),
-(_ucs2 0x10311001103A),
-(_ucs2 0x1031102C10011039),
-(_ucs2 0x1031102C1001103A),
-(_ucs2 0x1031102B10011039),
-(_ucs2 0x1031102B1001103A),
-(_ucs2 0x102D102F10011039),
-(_ucs2 0x102D102F1001103A),
-(_ucs2 0x10021039),
-(_ucs2 0x1002103A),
-(_ucs2 0x102C10021039),
-(_ucs2 0x102C1002103A),
-(_ucs2 0x102B10021039),
-(_ucs2 0x102B1002103A),
-(_ucs2 0x102D10021039),
-(_ucs2 0x102D1002103A),
-(_ucs2 0x102F10021039),
-(_ucs2 0x102F1002103A),
-(_ucs2 0x103110021039),
-(_ucs2 0x10311002103A),
-(_ucs2 0x1031102C10021039),
-(_ucs2 0x1031102C1002103A),
-(_ucs2 0x1031102B10021039),
-(_ucs2 0x1031102B1002103A),
-(_ucs2 0x102D102F10021039),
-(_ucs2 0x102D102F1002103A),
-(_ucs2 0x10031039),
-(_ucs2 0x1003103A),
-(_ucs2 0x102C10031039),
-(_ucs2 0x102C1003103A),
-(_ucs2 0x102B10031039),
-(_ucs2 0x102B1003103A),
-(_ucs2 0x102D10031039),
-(_ucs2 0x102D1003103A),
-(_ucs2 0x102F10031039),
-(_ucs2 0x102F1003103A),
-(_ucs2 0x103110031039),
-(_ucs2 0x10311003103A),
-(_ucs2 0x1031102C10031039),
-(_ucs2 0x1031102C1003103A),
-(_ucs2 0x1031102B10031039),
-(_ucs2 0x1031102B1003103A),
-(_ucs2 0x102D102F10031039),
-(_ucs2 0x102D102F1003103A),
-(_ucs2 0x1004103A1039),
-(_ucs2 0x1004103A),
-(_ucs2 0x102C1004103A1039),
-(_ucs2 0x102C1004103A),
-(_ucs2 0x102B1004103A1039),
-(_ucs2 0x102B1004103A),
-(_ucs2 0x102D1004103A1039),
-(_ucs2 0x102D1004103A),
-(_ucs2 0x102F1004103A1039),
-(_ucs2 0x102F1004103A),
-(_ucs2 0x10311004103A1039),
-(_ucs2 0x10311004103A),
-(_ucs2 0x1031102C1004103A1039),
-(_ucs2 0x1031102C1004103A),
-(_ucs2 0x1031102B1004103A1039),
-(_ucs2 0x1031102B1004103A),
-(_ucs2 0x102D102F1004103A1039),
-(_ucs2 0x102D102F1004103A),
-(_ucs2 0x10051039),
-(_ucs2 0x1005103A),
-(_ucs2 0x102C10051039),
-(_ucs2 0x102C1005103A),
-(_ucs2 0x102B10051039),
-(_ucs2 0x102B1005103A),
-(_ucs2 0x102D10051039),
-(_ucs2 0x102D1005103A),
-(_ucs2 0x102F10051039),
-(_ucs2 0x102F1005103A),
-(_ucs2 0x103110051039),
-(_ucs2 0x10311005103A),
-(_ucs2 0x1031102C10051039),
-(_ucs2 0x1031102C1005103A),
-(_ucs2 0x1031102B10051039),
-(_ucs2 0x1031102B1005103A),
-(_ucs2 0x102D102F10051039),
-(_ucs2 0x102D102F1005103A),
-(_ucs2 0x10061039),
-(_ucs2 0x1006103A),
-(_ucs2 0x102C10061039),
-(_ucs2 0x102C1006103A),
-(_ucs2 0x102B10061039),
-(_ucs2 0x102B1006103A),
-(_ucs2 0x102D10061039),
-(_ucs2 0x102D1006103A),
-(_ucs2 0x102F10061039),
-(_ucs2 0x102F1006103A),
-(_ucs2 0x103110061039),
-(_ucs2 0x10311006103A),
-(_ucs2 0x1031102C10061039),
-(_ucs2 0x1031102C1006103A),
-(_ucs2 0x1031102B10061039),
-(_ucs2 0x1031102B1006103A),
-(_ucs2 0x102D102F10061039),
-(_ucs2 0x102D102F1006103A),
-(_ucs2 0x10071039),
-(_ucs2 0x1007103A),
-(_ucs2 0x102C10071039),
-(_ucs2 0x102C1007103A),
-(_ucs2 0x102B10071039),
-(_ucs2 0x102B1007103A),
-(_ucs2 0x102D10071039),
-(_ucs2 0x102D1007103A),
-(_ucs2 0x102F10071039),
-(_ucs2 0x102F1007103A),
-(_ucs2 0x103110071039),
-(_ucs2 0x10311007103A),
-(_ucs2 0x1031102C10071039),
-(_ucs2 0x1031102C1007103A),
-(_ucs2 0x1031102B10071039),
-(_ucs2 0x1031102B1007103A),
-(_ucs2 0x102D102F10071039),
-(_ucs2 0x102D102F1007103A),
-(_ucs2 0x1008103A),
-(_ucs2 0x102C1008103A),
-(_ucs2 0x102B1008103A),
-(_ucs2 0x102D1008103A),
-(_ucs2 0x102F1008103A),
-(_ucs2 0x10311008103A),
-(_ucs2 0x1031102C1008103A),
-(_ucs2 0x1031102B1008103A),
-(_ucs2 0x102D102F1008103A),
-(_ucs2 0x10091039),
-(_ucs2 0x1009103A),
-(_ucs2 0x102C10091039),
-(_ucs2 0x102C1009103A),
-(_ucs2 0x102B10091039),
-(_ucs2 0x102B1009103A),
-(_ucs2 0x102D10091039),
-(_ucs2 0x102D1009103A),
-(_ucs2 0x102F10091039),
-(_ucs2 0x102F1009103A),
-(_ucs2 0x103110091039),
-(_ucs2 0x10311009103A),
-(_ucs2 0x1031102C10091039),
-(_ucs2 0x1031102C1009103A),
-(_ucs2 0x1031102B10091039),
-(_ucs2 0x1031102B1009103A),
-(_ucs2 0x102D102F10091039),
-(_ucs2 0x102D102F1009103A),
-(_ucs2 0x100A1039),
-(_ucs2 0x100A103A),
-(_ucs2 0x102C100A1039),
-(_ucs2 0x102C100A103A),
-(_ucs2 0x102B100A1039),
-(_ucs2 0x102B100A103A),
-(_ucs2 0x102D100A1039),
-(_ucs2 0x102D100A103A),
-(_ucs2 0x102F100A1039),
-(_ucs2 0x102F100A103A),
-(_ucs2 0x1031100A1039),
-(_ucs2 0x1031100A103A),
-(_ucs2 0x1031102C100A1039),
-(_ucs2 0x1031102C100A103A),
-(_ucs2 0x1031102B100A1039),
-(_ucs2 0x1031102B100A103A),
-(_ucs2 0x102D102F100A1039),
-(_ucs2 0x102D102F100A103A),
-(_ucs2 0x100B1039),
-(_ucs2 0x100B103A),
-(_ucs2 0x102C100B1039),
-(_ucs2 0x102C100B103A),
-(_ucs2 0x102B100B1039),
-(_ucs2 0x102B100B103A),
-(_ucs2 0x102D100B1039),
-(_ucs2 0x102D100B103A),
-(_ucs2 0x102F100B1039),
-(_ucs2 0x102F100B103A),
-(_ucs2 0x1031100B1039),
-(_ucs2 0x1031100B103A),
-(_ucs2 0x1031102C100B1039),
-(_ucs2 0x1031102C100B103A),
-(_ucs2 0x1031102B100B1039),
-(_ucs2 0x1031102B100B103A),
-(_ucs2 0x102D102F100B1039),
-(_ucs2 0x102D102F100B103A),
-(_ucs2 0x100C1039),
-(_ucs2 0x100C103A),
-(_ucs2 0x102C100C1039),
-(_ucs2 0x102C100C103A),
-(_ucs2 0x102B100C1039),
-(_ucs2 0x102B100C103A),
-(_ucs2 0x102D100C1039),
-(_ucs2 0x102D100C103A),
-(_ucs2 0x102F100C1039),
-(_ucs2 0x102F100C103A),
-(_ucs2 0x1031100C1039),
-(_ucs2 0x1031100C103A),
-(_ucs2 0x1031102C100C1039),
-(_ucs2 0x1031102C100C103A),
-(_ucs2 0x1031102B100C1039),
-(_ucs2 0x1031102B100C103A),
-(_ucs2 0x102D102F100C1039),
-(_ucs2 0x102D102F100C103A),
-(_ucs2 0x100D1039),
-(_ucs2 0x100D103A),
-(_ucs2 0x102C100D1039),
-(_ucs2 0x102C100D103A),
-(_ucs2 0x102B100D1039),
-(_ucs2 0x102B100D103A),
-(_ucs2 0x102D100D1039),
-(_ucs2 0x102D100D103A),
-(_ucs2 0x102F100D1039),
-(_ucs2 0x102F100D103A),
-(_ucs2 0x1031100D1039),
-(_ucs2 0x1031100D103A),
-(_ucs2 0x1031102C100D1039),
-(_ucs2 0x1031102C100D103A),
-(_ucs2 0x1031102B100D1039),
-(_ucs2 0x1031102B100D103A),
-(_ucs2 0x102D102F100D1039),
-(_ucs2 0x102D102F100D103A),
-(_ucs2 0x100E1039),
-(_ucs2 0x100E103A),
-(_ucs2 0x102C100E1039),
-(_ucs2 0x102C100E103A),
-(_ucs2 0x102B100E1039),
-(_ucs2 0x102B100E103A),
-(_ucs2 0x102D100E1039),
-(_ucs2 0x102D100E103A),
-(_ucs2 0x102F100E1039),
-(_ucs2 0x102F100E103A),
-(_ucs2 0x1031100E1039),
-(_ucs2 0x1031100E103A),
-(_ucs2 0x1031102C100E1039),
-(_ucs2 0x1031102C100E103A),
-(_ucs2 0x1031102B100E1039),
-(_ucs2 0x1031102B100E103A),
-(_ucs2 0x102D102F100E1039),
-(_ucs2 0x102D102F100E103A),
-(_ucs2 0x100F1039),
-(_ucs2 0x100F103A),
-(_ucs2 0x102C100F1039),
-(_ucs2 0x102C100F103A),
-(_ucs2 0x102B100F1039),
-(_ucs2 0x102B100F103A),
-(_ucs2 0x102D100F1039),
-(_ucs2 0x102D100F103A),
-(_ucs2 0x102F100F1039),
-(_ucs2 0x102F100F103A),
-(_ucs2 0x1031100F1039),
-(_ucs2 0x1031100F103A),
-(_ucs2 0x1031102C100F1039),
-(_ucs2 0x1031102C100F103A),
-(_ucs2 0x1031102B100F1039),
-(_ucs2 0x1031102B100F103A),
-(_ucs2 0x102D102F100F1039),
-(_ucs2 0x102D102F100F103A),
-(_ucs2 0x10101039),
-(_ucs2 0x1010103A),
-(_ucs2 0x102C10101039),
-(_ucs2 0x102C1010103A),
-(_ucs2 0x102B10101039),
-(_ucs2 0x102B1010103A),
-(_ucs2 0x102D10101039),
-(_ucs2 0x102D1010103A),
-(_ucs2 0x102F10101039),
-(_ucs2 0x102F1010103A),
-(_ucs2 0x103110101039),
-(_ucs2 0x10311010103A),
-(_ucs2 0x1031102C10101039),
-(_ucs2 0x1031102C1010103A),
-(_ucs2 0x1031102B10101039),
-(_ucs2 0x1031102B1010103A),
-(_ucs2 0x102D102F10101039),
-(_ucs2 0x102D102F1010103A),
-(_ucs2 0x10111039),
-(_ucs2 0x1011103A),
-(_ucs2 0x102C10111039),
-(_ucs2 0x102C1011103A),
-(_ucs2 0x102B10111039),
-(_ucs2 0x102B1011103A),
-(_ucs2 0x102D10111039),
-(_ucs2 0x102D1011103A),
-(_ucs2 0x102F10111039),
-(_ucs2 0x102F1011103A),
-(_ucs2 0x103110111039),
-(_ucs2 0x10311011103A),
-(_ucs2 0x1031102C10111039),
-(_ucs2 0x1031102C1011103A),
-(_ucs2 0x1031102B10111039),
-(_ucs2 0x1031102B1011103A),
-(_ucs2 0x102D102F10111039),
-(_ucs2 0x102D102F1011103A),
-(_ucs2 0x10121039),
-(_ucs2 0x1012103A),
-(_ucs2 0x102C10121039),
-(_ucs2 0x102C1012103A),
-(_ucs2 0x102B10121039),
-(_ucs2 0x102B1012103A),
-(_ucs2 0x102D10121039),
-(_ucs2 0x102D1012103A),
-(_ucs2 0x102F10121039),
-(_ucs2 0x102F1012103A),
-(_ucs2 0x103110121039),
-(_ucs2 0x10311012103A),
-(_ucs2 0x1031102C10121039),
-(_ucs2 0x1031102C1012103A),
-(_ucs2 0x1031102B10121039),
-(_ucs2 0x1031102B1012103A),
-(_ucs2 0x102D102F10121039),
-(_ucs2 0x102D102F1012103A),
-(_ucs2 0x10131039),
-(_ucs2 0x1013103A),
-(_ucs2 0x102C10131039),
-(_ucs2 0x102C1013103A),
-(_ucs2 0x102B10131039),
-(_ucs2 0x102B1013103A),
-(_ucs2 0x102D10131039),
-(_ucs2 0x102D1013103A),
-(_ucs2 0x102F10131039),
-(_ucs2 0x102F1013103A),
-(_ucs2 0x103110131039),
-(_ucs2 0x10311013103A),
-(_ucs2 0x1031102C10131039),
-(_ucs2 0x1031102C1013103A),
-(_ucs2 0x1031102B10131039),
-(_ucs2 0x1031102B1013103A),
-(_ucs2 0x102D102F10131039),
-(_ucs2 0x102D102F1013103A),
-(_ucs2 0x10141039),
-(_ucs2 0x1014103A),
-(_ucs2 0x102C10141039),
-(_ucs2 0x102C1014103A),
-(_ucs2 0x102B10141039),
-(_ucs2 0x102B1014103A),
-(_ucs2 0x102D10141039),
-(_ucs2 0x102D1014103A),
-(_ucs2 0x102F10141039),
-(_ucs2 0x102F1014103A),
-(_ucs2 0x103110141039),
-(_ucs2 0x10311014103A),
-(_ucs2 0x1031102C10141039),
-(_ucs2 0x1031102C1014103A),
-(_ucs2 0x1031102B10141039),
-(_ucs2 0x1031102B1014103A),
-(_ucs2 0x102D102F10141039),
-(_ucs2 0x102D102F1014103A),
-(_ucs2 0x10151039),
-(_ucs2 0x1015103A),
-(_ucs2 0x102C10151039),
-(_ucs2 0x102C1015103A),
-(_ucs2 0x102B10151039),
-(_ucs2 0x102B1015103A),
-(_ucs2 0x102D10151039),
-(_ucs2 0x102D1015103A),
-(_ucs2 0x102F10151039),
-(_ucs2 0x102F1015103A),
-(_ucs2 0x103110151039),
-(_ucs2 0x10311015103A),
-(_ucs2 0x1031102C10151039),
-(_ucs2 0x1031102C1015103A),
-(_ucs2 0x1031102B10151039),
-(_ucs2 0x1031102B1015103A),
-(_ucs2 0x102D102F10151039),
-(_ucs2 0x102D102F1015103A),
-(_ucs2 0x10161039),
-(_ucs2 0x1016103A),
-(_ucs2 0x102C10161039),
-(_ucs2 0x102C1016103A),
-(_ucs2 0x102B10161039),
-(_ucs2 0x102B1016103A),
-(_ucs2 0x102D10161039),
-(_ucs2 0x102D1016103A),
-(_ucs2 0x102F10161039),
-(_ucs2 0x102F1016103A),
-(_ucs2 0x103110161039),
-(_ucs2 0x10311016103A),
-(_ucs2 0x1031102C10161039),
-(_ucs2 0x1031102C1016103A),
-(_ucs2 0x1031102B10161039),
-(_ucs2 0x1031102B1016103A),
-(_ucs2 0x102D102F10161039),
-(_ucs2 0x102D102F1016103A),
-(_ucs2 0x10171039),
-(_ucs2 0x1017103A),
-(_ucs2 0x102C10171039),
-(_ucs2 0x102C1017103A),
-(_ucs2 0x102B10171039),
-(_ucs2 0x102B1017103A),
-(_ucs2 0x102D10171039),
-(_ucs2 0x102D1017103A),
-(_ucs2 0x102F10171039),
-(_ucs2 0x102F1017103A),
-(_ucs2 0x103110171039),
-(_ucs2 0x10311017103A),
-(_ucs2 0x1031102C10171039),
-(_ucs2 0x1031102C1017103A),
-(_ucs2 0x1031102B10171039),
-(_ucs2 0x1031102B1017103A),
-(_ucs2 0x102D102F10171039),
-(_ucs2 0x102D102F1017103A),
-(_ucs2 0x10181039),
-(_ucs2 0x1018103A),
-(_ucs2 0x102C10181039),
-(_ucs2 0x102C1018103A),
-(_ucs2 0x102B10181039),
-(_ucs2 0x102B1018103A),
-(_ucs2 0x102D10181039),
-(_ucs2 0x102D1018103A),
-(_ucs2 0x102F10181039),
-(_ucs2 0x102F1018103A),
-(_ucs2 0x103110181039),
-(_ucs2 0x10311018103A),
-(_ucs2 0x1031102C10181039),
-(_ucs2 0x1031102C1018103A),
-(_ucs2 0x1031102B10181039),
-(_ucs2 0x1031102B1018103A),
-(_ucs2 0x102D102F10181039),
-(_ucs2 0x102D102F1018103A),
-(_ucs2 0x10191039),
-(_ucs2 0x1019103A),
-(_ucs2 0x102C10191039),
-(_ucs2 0x102C1019103A),
-(_ucs2 0x102B10191039),
-(_ucs2 0x102B1019103A),
-(_ucs2 0x102D10191039),
-(_ucs2 0x102D1019103A),
-(_ucs2 0x102F10191039),
-(_ucs2 0x102F1019103A),
-(_ucs2 0x103110191039),
-(_ucs2 0x10311019103A),
-(_ucs2 0x1031102C10191039),
-(_ucs2 0x1031102C1019103A),
-(_ucs2 0x1031102B10191039),
-(_ucs2 0x1031102B1019103A),
-(_ucs2 0x102D102F10191039),
-(_ucs2 0x102D102F1019103A),
-(_ucs2 0x101A1039),
-(_ucs2 0x101A103A),
-(_ucs2 0x102C101A1039),
-(_ucs2 0x102C101A103A),
-(_ucs2 0x102B101A1039),
-(_ucs2 0x102B101A103A),
-(_ucs2 0x102D101A1039),
-(_ucs2 0x102D101A103A),
-(_ucs2 0x102F101A1039),
-(_ucs2 0x102F101A103A),
-(_ucs2 0x1031101A1039),
-(_ucs2 0x1031101A103A),
-(_ucs2 0x1031102C101A1039),
-(_ucs2 0x1031102C101A103A),
-(_ucs2 0x1031102B101A1039),
-(_ucs2 0x1031102B101A103A),
-(_ucs2 0x102D102F101A1039),
-(_ucs2 0x102D102F101A103A),
-(_ucs2 0x101B1039),
-(_ucs2 0x101B103A),
-(_ucs2 0x102C101B1039),
-(_ucs2 0x102C101B103A),
-(_ucs2 0x102B101B1039),
-(_ucs2 0x102B101B103A),
-(_ucs2 0x102D101B1039),
-(_ucs2 0x102D101B103A),
-(_ucs2 0x102F101B1039),
-(_ucs2 0x102F101B103A),
-(_ucs2 0x1031101B1039),
-(_ucs2 0x1031101B103A),
-(_ucs2 0x1031102C101B1039),
-(_ucs2 0x1031102C101B103A),
-(_ucs2 0x1031102B101B1039),
-(_ucs2 0x1031102B101B103A),
-(_ucs2 0x102D102F101B1039),
-(_ucs2 0x102D102F101B103A),
-(_ucs2 0x101C1039),
-(_ucs2 0x101C103A),
-(_ucs2 0x102C101C1039),
-(_ucs2 0x102C101C103A),
-(_ucs2 0x102B101C1039),
-(_ucs2 0x102B101C103A),
-(_ucs2 0x102D101C1039),
-(_ucs2 0x102D101C103A),
-(_ucs2 0x102F101C1039),
-(_ucs2 0x102F101C103A),
-(_ucs2 0x1031101C1039),
-(_ucs2 0x1031101C103A),
-(_ucs2 0x1031102C101C1039),
-(_ucs2 0x1031102C101C103A),
-(_ucs2 0x1031102B101C1039),
-(_ucs2 0x1031102B101C103A),
-(_ucs2 0x102D102F101C1039),
-(_ucs2 0x102D102F101C103A),
-(_ucs2 0x101D103A),
-(_ucs2 0x102C101D103A),
-(_ucs2 0x102B101D103A),
-(_ucs2 0x102D101D103A),
-(_ucs2 0x102F101D103A),
-(_ucs2 0x1031101D103A),
-(_ucs2 0x1031102C101D103A),
-(_ucs2 0x1031102B101D103A),
-(_ucs2 0x102D102F101D103A),
-(_ucs2 0x101E1039),
-(_ucs2 0x101E103A),
-(_ucs2 0x102C101E1039),
-(_ucs2 0x102C101E103A),
-(_ucs2 0x102B101E1039),
-(_ucs2 0x102B101E103A),
-(_ucs2 0x102D101E1039),
-(_ucs2 0x102D101E103A),
-(_ucs2 0x102F101E1039),
-(_ucs2 0x102F101E103A),
-(_ucs2 0x1031101E1039),
-(_ucs2 0x1031101E103A),
-(_ucs2 0x1031102C101E1039),
-(_ucs2 0x1031102C101E103A),
-(_ucs2 0x1031102B101E1039),
-(_ucs2 0x1031102B101E103A),
-(_ucs2 0x102D102F101E1039),
-(_ucs2 0x102D102F101E103A),
-(_ucs2 0x101F1039),
-(_ucs2 0x101F103A),
-(_ucs2 0x102C101F1039),
-(_ucs2 0x102C101F103A),
-(_ucs2 0x102B101F1039),
-(_ucs2 0x102B101F103A),
-(_ucs2 0x102D101F1039),
-(_ucs2 0x102D101F103A),
-(_ucs2 0x102F101F1039),
-(_ucs2 0x102F101F103A),
-(_ucs2 0x1031101F1039),
-(_ucs2 0x1031101F103A),
-(_ucs2 0x1031102C101F1039),
-(_ucs2 0x1031102C101F103A),
-(_ucs2 0x1031102B101F1039),
-(_ucs2 0x1031102B101F103A),
-(_ucs2 0x102D102F101F1039),
-(_ucs2 0x102D102F101F103A),
-(_ucs2 0x1020103A),
-(_ucs2 0x102C1020103A),
-(_ucs2 0x102B1020103A),
-(_ucs2 0x102D1020103A),
-(_ucs2 0x102F1020103A),
-(_ucs2 0x10311020103A),
-(_ucs2 0x1031102C1020103A),
-(_ucs2 0x1031102B1020103A),
-(_ucs2 0x102D102F1020103A),
-(_ucs2 0x1021103A),
-(_ucs2 0x102C1021103A),
-(_ucs2 0x102B1021103A),
-(_ucs2 0x102D1021103A),
-(_ucs2 0x102F1021103A),
-(_ucs2 0x10311021103A),
-(_ucs2 0x1031102C1021103A),
-(_ucs2 0x1031102B1021103A),
-(_ucs2 0x102D102F1021103A),
-('--- Medials'),
-(_ucs2 0x105E),
-(_ucs2 0x105F),
-(_ucs2 0x103B),
-(_ucs2 0x103C),
-(_ucs2 0x1060),
-(_ucs2 0x103D),
-(_ucs2 0x1082),
-(_ucs2 0x103E),
-(_ucs2 0x103B103D),
-(_ucs2 0x103C103D),
-(_ucs2 0x103B103E),
-(_ucs2 0x103C103E),
-(_ucs2 0x103D103E),
-(_ucs2 0x103B103D103E),
-(_ucs2 0x103C103D103E),
-('--- Independent vowels'),
-(_ucs2 0x1021102D),
-(_ucs2 0x1023),
-(_ucs2 0x1021102E),
-(_ucs2 0x1024),
-(_ucs2 0x1021102F),
-(_ucs2 0x1025),
-(_ucs2 0x10211030),
-(_ucs2 0x1026),
-(_ucs2 0x10211031),
-(_ucs2 0x1027),
-(_ucs2 0x1028),
-(_ucs2 0x10211031102C),
-(_ucs2 0x1029),
-(_ucs2 0x10211031102C103A),
-(_ucs2 0x102A),
-(_ucs2 0x102D1019103A),
-(_ucs2 0x102D1036),
-(_ucs2 0x102D1019103A1037),
-(_ucs2 0x102D10361037),
-(_ucs2 0x102D1019103A1038),
-(_ucs2 0x102D10361038),
-(_ucs2 0x102F1019103A),
-(_ucs2 0x102F1036),
-(_ucs2 0x102F1019103A1037),
-(_ucs2 0x102F10361037),
-(_ucs2 0x102F1019103A1038),
-(_ucs2 0x102F10361038),
-(_ucs2 0x1021102F1036),
-(_ucs2 0x1025102F1036),
-('--- Independent vowels with finals'),
-(_ucs2 0x1021102D10001039),
-(_ucs2 0x102310001039),
-(_ucs2 0x1021102D1000103A),
-(_ucs2 0x10231000103A),
-(_ucs2 0x1021102F10001039),
-(_ucs2 0x102510001039),
-(_ucs2 0x1021102F1000103A),
-(_ucs2 0x10251000103A),
-(_ucs2 0x1021103110001039),
-(_ucs2 0x102710001039),
-(_ucs2 0x102110311000103A),
-(_ucs2 0x10271000103A),
-(_ucs2 0x10211031102C10001039),
-(_ucs2 0x102910001039),
-(_ucs2 0x10211031102C1000103A),
-(_ucs2 0x10291000103A),
-(_ucs2 0x10211031102C10001039),
-(_ucs2 0x10291031102C10001039),
-(_ucs2 0x10211031102C1000103A),
-(_ucs2 0x10291031102C1000103A),
-(_ucs2 0x1021102D10011039),
-(_ucs2 0x102310011039),
-(_ucs2 0x1021102D1001103A),
-(_ucs2 0x10231001103A),
-(_ucs2 0x1021102F10011039),
-(_ucs2 0x102510011039),
-(_ucs2 0x1021102F1001103A),
-(_ucs2 0x10251001103A),
-(_ucs2 0x1021103110011039),
-(_ucs2 0x102710011039),
-(_ucs2 0x102110311001103A),
-(_ucs2 0x10271001103A),
-(_ucs2 0x10211031102C10011039),
-(_ucs2 0x102910011039),
-(_ucs2 0x10211031102C1001103A),
-(_ucs2 0x10291001103A),
-(_ucs2 0x10211031102C10011039),
-(_ucs2 0x10291031102C10011039),
-(_ucs2 0x10211031102C1001103A),
-(_ucs2 0x10291031102C1001103A),
-(_ucs2 0x1021102D10021039),
-(_ucs2 0x102310021039),
-(_ucs2 0x1021102D1002103A),
-(_ucs2 0x10231002103A),
-(_ucs2 0x1021102F10021039),
-(_ucs2 0x102510021039),
-(_ucs2 0x1021102F1002103A),
-(_ucs2 0x10251002103A),
-(_ucs2 0x1021103110021039),
-(_ucs2 0x102710021039),
-(_ucs2 0x102110311002103A),
-(_ucs2 0x10271002103A),
-(_ucs2 0x10211031102C10021039),
-(_ucs2 0x102910021039),
-(_ucs2 0x10211031102C1002103A),
-(_ucs2 0x10291002103A),
-(_ucs2 0x10211031102C10021039),
-(_ucs2 0x10291031102C10021039),
-(_ucs2 0x10211031102C1002103A),
-(_ucs2 0x10291031102C1002103A),
-(_ucs2 0x1021102D10031039),
-(_ucs2 0x102310031039),
-(_ucs2 0x1021102D1003103A),
-(_ucs2 0x10231003103A),
-(_ucs2 0x1021102F10031039),
-(_ucs2 0x102510031039),
-(_ucs2 0x1021102F1003103A),
-(_ucs2 0x10251003103A),
-(_ucs2 0x1021103110031039),
-(_ucs2 0x102710031039),
-(_ucs2 0x102110311003103A),
-(_ucs2 0x10271003103A),
-(_ucs2 0x10211031102C10031039),
-(_ucs2 0x102910031039),
-(_ucs2 0x10211031102C1003103A),
-(_ucs2 0x10291003103A),
-(_ucs2 0x10211031102C10031039),
-(_ucs2 0x10291031102C10031039),
-(_ucs2 0x10211031102C1003103A),
-(_ucs2 0x10291031102C1003103A),
-(_ucs2 0x1021102D10041039),
-(_ucs2 0x102310041039),
-(_ucs2 0x1021102D1004103A),
-(_ucs2 0x10231004103A),
-(_ucs2 0x1021102F10041039),
-(_ucs2 0x102510041039),
-(_ucs2 0x1021102F1004103A),
-(_ucs2 0x10251004103A),
-(_ucs2 0x1021103110041039),
-(_ucs2 0x102710041039),
-(_ucs2 0x102110311004103A),
-(_ucs2 0x10271004103A),
-(_ucs2 0x10211031102C10041039),
-(_ucs2 0x102910041039),
-(_ucs2 0x10211031102C1004103A),
-(_ucs2 0x10291004103A),
-(_ucs2 0x10211031102C10041039),
-(_ucs2 0x10291031102C10041039),
-(_ucs2 0x10211031102C1004103A),
-(_ucs2 0x10291031102C1004103A),
-(_ucs2 0x1021102D10051039),
-(_ucs2 0x102310051039),
-(_ucs2 0x1021102D1005103A),
-(_ucs2 0x10231005103A),
-(_ucs2 0x1021102F10051039),
-(_ucs2 0x102510051039),
-(_ucs2 0x1021102F1005103A),
-(_ucs2 0x10251005103A),
-(_ucs2 0x1021103110051039),
-(_ucs2 0x102710051039),
-(_ucs2 0x102110311005103A),
-(_ucs2 0x10271005103A),
-(_ucs2 0x10211031102C10051039),
-(_ucs2 0x102910051039),
-(_ucs2 0x10211031102C1005103A),
-(_ucs2 0x10291005103A),
-(_ucs2 0x10211031102C10051039),
-(_ucs2 0x10291031102C10051039),
-(_ucs2 0x10211031102C1005103A),
-(_ucs2 0x10291031102C1005103A),
-(_ucs2 0x1021102D10061039),
-(_ucs2 0x102310061039),
-(_ucs2 0x1021102D1006103A),
-(_ucs2 0x10231006103A),
-(_ucs2 0x1021102F10061039),
-(_ucs2 0x102510061039),
-(_ucs2 0x1021102F1006103A),
-(_ucs2 0x10251006103A),
-(_ucs2 0x1021103110061039),
-(_ucs2 0x102710061039),
-(_ucs2 0x102110311006103A),
-(_ucs2 0x10271006103A),
-(_ucs2 0x10211031102C10061039),
-(_ucs2 0x102910061039),
-(_ucs2 0x10211031102C1006103A),
-(_ucs2 0x10291006103A),
-(_ucs2 0x10211031102C10061039),
-(_ucs2 0x10291031102C10061039),
-(_ucs2 0x10211031102C1006103A),
-(_ucs2 0x10291031102C1006103A),
-(_ucs2 0x1021102D10071039),
-(_ucs2 0x102310071039),
-(_ucs2 0x1021102D1007103A),
-(_ucs2 0x10231007103A),
-(_ucs2 0x1021102F10071039),
-(_ucs2 0x102510071039),
-(_ucs2 0x1021102F1007103A),
-(_ucs2 0x10251007103A),
-(_ucs2 0x1021103110071039),
-(_ucs2 0x102710071039),
-(_ucs2 0x102110311007103A),
-(_ucs2 0x10271007103A),
-(_ucs2 0x10211031102C10071039),
-(_ucs2 0x102910071039),
-(_ucs2 0x10211031102C1007103A),
-(_ucs2 0x10291007103A),
-(_ucs2 0x10211031102C10071039),
-(_ucs2 0x10291031102C10071039),
-(_ucs2 0x10211031102C1007103A),
-(_ucs2 0x10291031102C1007103A),
-(_ucs2 0x1021102D10091039),
-(_ucs2 0x102310091039),
-(_ucs2 0x1021102D1009103A),
-(_ucs2 0x10231009103A),
-(_ucs2 0x1021102F10091039),
-(_ucs2 0x102510091039),
-(_ucs2 0x1021102F1009103A),
-(_ucs2 0x10251009103A),
-(_ucs2 0x1021103110091039),
-(_ucs2 0x102710091039),
-(_ucs2 0x102110311009103A),
-(_ucs2 0x10271009103A),
-(_ucs2 0x10211031102C10091039),
-(_ucs2 0x102910091039),
-(_ucs2 0x10211031102C1009103A),
-(_ucs2 0x10291009103A),
-(_ucs2 0x10211031102C10091039),
-(_ucs2 0x10291031102C10091039),
-(_ucs2 0x10211031102C1009103A),
-(_ucs2 0x10291031102C1009103A),
-(_ucs2 0x1021102D100A1039),
-(_ucs2 0x1023100A1039),
-(_ucs2 0x1021102D100A103A),
-(_ucs2 0x1023100A103A),
-(_ucs2 0x1021102F100A1039),
-(_ucs2 0x1025100A1039),
-(_ucs2 0x1021102F100A103A),
-(_ucs2 0x1025100A103A),
-(_ucs2 0x10211031100A1039),
-(_ucs2 0x1027100A1039),
-(_ucs2 0x10211031100A103A),
-(_ucs2 0x1027100A103A),
-(_ucs2 0x10211031102C100A1039),
-(_ucs2 0x1029100A1039),
-(_ucs2 0x10211031102C100A103A),
-(_ucs2 0x1029100A103A),
-(_ucs2 0x10211031102C100A1039),
-(_ucs2 0x10291031102C100A1039),
-(_ucs2 0x10211031102C100A103A),
-(_ucs2 0x10291031102C100A103A),
-(_ucs2 0x1021102D100B1039),
-(_ucs2 0x1023100B1039),
-(_ucs2 0x1021102D100B103A),
-(_ucs2 0x1023100B103A),
-(_ucs2 0x1021102F100B1039),
-(_ucs2 0x1025100B1039),
-(_ucs2 0x1021102F100B103A),
-(_ucs2 0x1025100B103A),
-(_ucs2 0x10211031100B1039),
-(_ucs2 0x1027100B1039),
-(_ucs2 0x10211031100B103A),
-(_ucs2 0x1027100B103A),
-(_ucs2 0x10211031102C100B1039),
-(_ucs2 0x1029100B1039),
-(_ucs2 0x10211031102C100B103A),
-(_ucs2 0x1029100B103A),
-(_ucs2 0x10211031102C100B1039),
-(_ucs2 0x10291031102C100B1039),
-(_ucs2 0x10211031102C100B103A),
-(_ucs2 0x10291031102C100B103A),
-(_ucs2 0x1021102D100C1039),
-(_ucs2 0x1023100C1039),
-(_ucs2 0x1021102D100C103A),
-(_ucs2 0x1023100C103A),
-(_ucs2 0x1021102F100C1039),
-(_ucs2 0x1025100C1039),
-(_ucs2 0x1021102F100C103A),
-(_ucs2 0x1025100C103A),
-(_ucs2 0x10211031100C1039),
-(_ucs2 0x1027100C1039),
-(_ucs2 0x10211031100C103A),
-(_ucs2 0x1027100C103A),
-(_ucs2 0x10211031102C100C1039),
-(_ucs2 0x1029100C1039),
-(_ucs2 0x10211031102C100C103A),
-(_ucs2 0x1029100C103A),
-(_ucs2 0x10211031102C100C1039),
-(_ucs2 0x10291031102C100C1039),
-(_ucs2 0x10211031102C100C103A),
-(_ucs2 0x10291031102C100C103A),
-(_ucs2 0x1021102D100D1039),
-(_ucs2 0x1023100D1039),
-(_ucs2 0x1021102D100D103A),
-(_ucs2 0x1023100D103A),
-(_ucs2 0x1021102F100D1039),
-(_ucs2 0x1025100D1039),
-(_ucs2 0x1021102F100D103A),
-(_ucs2 0x1025100D103A),
-(_ucs2 0x10211031100D1039),
-(_ucs2 0x1027100D1039),
-(_ucs2 0x10211031100D103A),
-(_ucs2 0x1027100D103A),
-(_ucs2 0x10211031102C100D1039),
-(_ucs2 0x1029100D1039),
-(_ucs2 0x10211031102C100D103A),
-(_ucs2 0x1029100D103A),
-(_ucs2 0x10211031102C100D1039),
-(_ucs2 0x10291031102C100D1039),
-(_ucs2 0x10211031102C100D103A),
-(_ucs2 0x10291031102C100D103A),
-(_ucs2 0x1021102D100E1039),
-(_ucs2 0x1023100E1039),
-(_ucs2 0x1021102D100E103A),
-(_ucs2 0x1023100E103A),
-(_ucs2 0x1021102F100E1039),
-(_ucs2 0x1025100E1039),
-(_ucs2 0x1021102F100E103A),
-(_ucs2 0x1025100E103A),
-(_ucs2 0x10211031100E1039),
-(_ucs2 0x1027100E1039),
-(_ucs2 0x10211031100E103A),
-(_ucs2 0x1027100E103A),
-(_ucs2 0x10211031102C100E1039),
-(_ucs2 0x1029100E1039),
-(_ucs2 0x10211031102C100E103A),
-(_ucs2 0x1029100E103A),
-(_ucs2 0x10211031102C100E1039),
-(_ucs2 0x10291031102C100E1039),
-(_ucs2 0x10211031102C100E103A),
-(_ucs2 0x10291031102C100E103A),
-(_ucs2 0x1021102D100F1039),
-(_ucs2 0x1023100F1039),
-(_ucs2 0x1021102D100F103A),
-(_ucs2 0x1023100F103A),
-(_ucs2 0x1021102F100F1039),
-(_ucs2 0x1025100F1039),
-(_ucs2 0x1021102F100F103A),
-(_ucs2 0x1025100F103A),
-(_ucs2 0x10211031100F1039),
-(_ucs2 0x1027100F1039),
-(_ucs2 0x10211031100F103A),
-(_ucs2 0x1027100F103A),
-(_ucs2 0x10211031102C100F1039),
-(_ucs2 0x1029100F1039),
-(_ucs2 0x10211031102C100F103A),
-(_ucs2 0x1029100F103A),
-(_ucs2 0x10211031102C100F1039),
-(_ucs2 0x10291031102C100F1039),
-(_ucs2 0x10211031102C100F103A),
-(_ucs2 0x10291031102C100F103A),
-(_ucs2 0x1021102D10101039),
-(_ucs2 0x102310101039),
-(_ucs2 0x1021102D1010103A),
-(_ucs2 0x10231010103A),
-(_ucs2 0x1021102F10101039),
-(_ucs2 0x102510101039),
-(_ucs2 0x1021102F1010103A),
-(_ucs2 0x10251010103A),
-(_ucs2 0x1021103110101039),
-(_ucs2 0x102710101039),
-(_ucs2 0x102110311010103A),
-(_ucs2 0x10271010103A),
-(_ucs2 0x10211031102C10101039),
-(_ucs2 0x102910101039),
-(_ucs2 0x10211031102C1010103A),
-(_ucs2 0x10291010103A),
-(_ucs2 0x10211031102C10101039),
-(_ucs2 0x10291031102C10101039),
-(_ucs2 0x10211031102C1010103A),
-(_ucs2 0x10291031102C1010103A),
-(_ucs2 0x1021102D10111039),
-(_ucs2 0x102310111039),
-(_ucs2 0x1021102D1011103A),
-(_ucs2 0x10231011103A),
-(_ucs2 0x1021102F10111039),
-(_ucs2 0x102510111039),
-(_ucs2 0x1021102F1011103A),
-(_ucs2 0x10251011103A),
-(_ucs2 0x1021103110111039),
-(_ucs2 0x102710111039),
-(_ucs2 0x102110311011103A),
-(_ucs2 0x10271011103A),
-(_ucs2 0x10211031102C10111039),
-(_ucs2 0x102910111039),
-(_ucs2 0x10211031102C1011103A),
-(_ucs2 0x10291011103A),
-(_ucs2 0x10211031102C10111039),
-(_ucs2 0x10291031102C10111039),
-(_ucs2 0x10211031102C1011103A),
-(_ucs2 0x10291031102C1011103A),
-(_ucs2 0x1021102D10121039),
-(_ucs2 0x102310121039),
-(_ucs2 0x1021102D1012103A),
-(_ucs2 0x10231012103A),
-(_ucs2 0x1021102F10121039),
-(_ucs2 0x102510121039),
-(_ucs2 0x1021102F1012103A),
-(_ucs2 0x10251012103A),
-(_ucs2 0x1021103110121039),
-(_ucs2 0x102710121039),
-(_ucs2 0x102110311012103A),
-(_ucs2 0x10271012103A),
-(_ucs2 0x10211031102C10121039),
-(_ucs2 0x102910121039),
-(_ucs2 0x10211031102C1012103A),
-(_ucs2 0x10291012103A),
-(_ucs2 0x10211031102C10121039),
-(_ucs2 0x10291031102C10121039),
-(_ucs2 0x10211031102C1012103A),
-(_ucs2 0x10291031102C1012103A),
-(_ucs2 0x1021102D10131039),
-(_ucs2 0x102310131039),
-(_ucs2 0x1021102D1013103A),
-(_ucs2 0x10231013103A),
-(_ucs2 0x1021102F10131039),
-(_ucs2 0x102510131039),
-(_ucs2 0x1021102F1013103A),
-(_ucs2 0x10251013103A),
-(_ucs2 0x1021103110131039),
-(_ucs2 0x102710131039),
-(_ucs2 0x102110311013103A),
-(_ucs2 0x10271013103A),
-(_ucs2 0x10211031102C10131039),
-(_ucs2 0x102910131039),
-(_ucs2 0x10211031102C1013103A),
-(_ucs2 0x10291013103A),
-(_ucs2 0x10211031102C10131039),
-(_ucs2 0x10291031102C10131039),
-(_ucs2 0x10211031102C1013103A),
-(_ucs2 0x10291031102C1013103A),
-(_ucs2 0x1021102D10141039),
-(_ucs2 0x102310141039),
-(_ucs2 0x1021102D1014103A),
-(_ucs2 0x10231014103A),
-(_ucs2 0x1021102F10141039),
-(_ucs2 0x102510141039),
-(_ucs2 0x1021102F1014103A),
-(_ucs2 0x10251014103A),
-(_ucs2 0x1021103110141039),
-(_ucs2 0x102710141039),
-(_ucs2 0x102110311014103A),
-(_ucs2 0x10271014103A),
-(_ucs2 0x10211031102C10141039),
-(_ucs2 0x102910141039),
-(_ucs2 0x10211031102C1014103A),
-(_ucs2 0x10291014103A),
-(_ucs2 0x10211031102C10141039),
-(_ucs2 0x10291031102C10141039),
-(_ucs2 0x10211031102C1014103A),
-(_ucs2 0x10291031102C1014103A),
-(_ucs2 0x1021102D10151039),
-(_ucs2 0x102310151039),
-(_ucs2 0x1021102D1015103A),
-(_ucs2 0x10231015103A),
-(_ucs2 0x1021102F10151039),
-(_ucs2 0x102510151039),
-(_ucs2 0x1021102F1015103A),
-(_ucs2 0x10251015103A),
-(_ucs2 0x1021103110151039),
-(_ucs2 0x102710151039),
-(_ucs2 0x102110311015103A),
-(_ucs2 0x10271015103A),
-(_ucs2 0x10211031102C10151039),
-(_ucs2 0x102910151039),
-(_ucs2 0x10211031102C1015103A),
-(_ucs2 0x10291015103A),
-(_ucs2 0x10211031102C10151039),
-(_ucs2 0x10291031102C10151039),
-(_ucs2 0x10211031102C1015103A),
-(_ucs2 0x10291031102C1015103A),
-(_ucs2 0x1021102D10161039),
-(_ucs2 0x102310161039),
-(_ucs2 0x1021102D1016103A),
-(_ucs2 0x10231016103A),
-(_ucs2 0x1021102F10161039),
-(_ucs2 0x102510161039),
-(_ucs2 0x1021102F1016103A),
-(_ucs2 0x10251016103A),
-(_ucs2 0x1021103110161039),
-(_ucs2 0x102710161039),
-(_ucs2 0x102110311016103A),
-(_ucs2 0x10271016103A),
-(_ucs2 0x10211031102C10161039),
-(_ucs2 0x102910161039),
-(_ucs2 0x10211031102C1016103A),
-(_ucs2 0x10291016103A),
-(_ucs2 0x10211031102C10161039),
-(_ucs2 0x10291031102C10161039),
-(_ucs2 0x10211031102C1016103A),
-(_ucs2 0x10291031102C1016103A),
-(_ucs2 0x1021102D10171039),
-(_ucs2 0x102310171039),
-(_ucs2 0x1021102D1017103A),
-(_ucs2 0x10231017103A),
-(_ucs2 0x1021102F10171039),
-(_ucs2 0x102510171039),
-(_ucs2 0x1021102F1017103A),
-(_ucs2 0x10251017103A),
-(_ucs2 0x1021103110171039),
-(_ucs2 0x102710171039),
-(_ucs2 0x102110311017103A),
-(_ucs2 0x10271017103A),
-(_ucs2 0x10211031102C10171039),
-(_ucs2 0x102910171039),
-(_ucs2 0x10211031102C1017103A),
-(_ucs2 0x10291017103A),
-(_ucs2 0x10211031102C10171039),
-(_ucs2 0x10291031102C10171039),
-(_ucs2 0x10211031102C1017103A),
-(_ucs2 0x10291031102C1017103A),
-(_ucs2 0x1021102D10181039),
-(_ucs2 0x102310181039),
-(_ucs2 0x1021102D1018103A),
-(_ucs2 0x10231018103A),
-(_ucs2 0x1021102F10181039),
-(_ucs2 0x102510181039),
-(_ucs2 0x1021102F1018103A),
-(_ucs2 0x10251018103A),
-(_ucs2 0x1021103110181039),
-(_ucs2 0x102710181039),
-(_ucs2 0x102110311018103A),
-(_ucs2 0x10271018103A),
-(_ucs2 0x10211031102C10181039),
-(_ucs2 0x102910181039),
-(_ucs2 0x10211031102C1018103A),
-(_ucs2 0x10291018103A),
-(_ucs2 0x10211031102C10181039),
-(_ucs2 0x10291031102C10181039),
-(_ucs2 0x10211031102C1018103A),
-(_ucs2 0x10291031102C1018103A),
-(_ucs2 0x1021102D10191039),
-(_ucs2 0x102310191039),
-(_ucs2 0x1021102D1019103A),
-(_ucs2 0x10231019103A),
-(_ucs2 0x1021102F10191039),
-(_ucs2 0x102510191039),
-(_ucs2 0x1021102F1019103A),
-(_ucs2 0x10251019103A),
-(_ucs2 0x1021103110191039),
-(_ucs2 0x102710191039),
-(_ucs2 0x102110311019103A),
-(_ucs2 0x10271019103A),
-(_ucs2 0x10211031102C10191039),
-(_ucs2 0x102910191039),
-(_ucs2 0x10211031102C1019103A),
-(_ucs2 0x10291019103A),
-(_ucs2 0x10211031102C10191039),
-(_ucs2 0x10291031102C10191039),
-(_ucs2 0x10211031102C1019103A),
-(_ucs2 0x10291031102C1019103A),
-(_ucs2 0x1021102D101A1039),
-(_ucs2 0x1023101A1039),
-(_ucs2 0x1021102D101A103A),
-(_ucs2 0x1023101A103A),
-(_ucs2 0x1021102F101A1039),
-(_ucs2 0x1025101A1039),
-(_ucs2 0x1021102F101A103A),
-(_ucs2 0x1025101A103A),
-(_ucs2 0x10211031101A1039),
-(_ucs2 0x1027101A1039),
-(_ucs2 0x10211031101A103A),
-(_ucs2 0x1027101A103A),
-(_ucs2 0x10211031102C101A1039),
-(_ucs2 0x1029101A1039),
-(_ucs2 0x10211031102C101A103A),
-(_ucs2 0x1029101A103A),
-(_ucs2 0x10211031102C101A1039),
-(_ucs2 0x10291031102C101A1039),
-(_ucs2 0x10211031102C101A103A),
-(_ucs2 0x10291031102C101A103A),
-(_ucs2 0x1021102D101B1039),
-(_ucs2 0x1023101B1039),
-(_ucs2 0x1021102D101B103A),
-(_ucs2 0x1023101B103A),
-(_ucs2 0x1021102F101B1039),
-(_ucs2 0x1025101B1039),
-(_ucs2 0x1021102F101B103A),
-(_ucs2 0x1025101B103A),
-(_ucs2 0x10211031101B1039),
-(_ucs2 0x1027101B1039),
-(_ucs2 0x10211031101B103A),
-(_ucs2 0x1027101B103A),
-(_ucs2 0x10211031102C101B1039),
-(_ucs2 0x1029101B1039),
-(_ucs2 0x10211031102C101B103A),
-(_ucs2 0x1029101B103A),
-(_ucs2 0x10211031102C101B1039),
-(_ucs2 0x10291031102C101B1039),
-(_ucs2 0x10211031102C101B103A),
-(_ucs2 0x10291031102C101B103A),
-(_ucs2 0x1021102D101C1039),
-(_ucs2 0x1023101C1039),
-(_ucs2 0x1021102D101C103A),
-(_ucs2 0x1023101C103A),
-(_ucs2 0x1021102F101C1039),
-(_ucs2 0x1025101C1039),
-(_ucs2 0x1021102F101C103A),
-(_ucs2 0x1025101C103A),
-(_ucs2 0x10211031101C1039),
-(_ucs2 0x1027101C1039),
-(_ucs2 0x10211031101C103A),
-(_ucs2 0x1027101C103A),
-(_ucs2 0x10211031102C101C1039),
-(_ucs2 0x1029101C1039),
-(_ucs2 0x10211031102C101C103A),
-(_ucs2 0x1029101C103A),
-(_ucs2 0x10211031102C101C1039),
-(_ucs2 0x10291031102C101C1039),
-(_ucs2 0x10211031102C101C103A),
-(_ucs2 0x10291031102C101C103A),
-(_ucs2 0x1021102D101E1039),
-(_ucs2 0x1023101E1039),
-(_ucs2 0x1021102D101E103A),
-(_ucs2 0x1023101E103A),
-(_ucs2 0x1021102F101E1039),
-(_ucs2 0x1025101E1039),
-(_ucs2 0x1021102F101E103A),
-(_ucs2 0x1025101E103A),
-(_ucs2 0x10211031101E1039),
-(_ucs2 0x1027101E1039),
-(_ucs2 0x10211031101E103A),
-(_ucs2 0x1027101E103A),
-(_ucs2 0x10211031102C101E1039),
-(_ucs2 0x1029101E1039),
-(_ucs2 0x10211031102C101E103A),
-(_ucs2 0x1029101E103A),
-(_ucs2 0x10211031102C101E1039),
-(_ucs2 0x10291031102C101E1039),
-(_ucs2 0x10211031102C101E103A),
-(_ucs2 0x10291031102C101E103A),
-(_ucs2 0x1021102D101F1039),
-(_ucs2 0x1023101F1039),
-(_ucs2 0x1021102D101F103A),
-(_ucs2 0x1023101F103A),
-(_ucs2 0x1021102F101F1039),
-(_ucs2 0x1025101F1039),
-(_ucs2 0x1021102F101F103A),
-(_ucs2 0x1025101F103A),
-(_ucs2 0x10211031101F1039),
-(_ucs2 0x1027101F1039),
-(_ucs2 0x10211031101F103A),
-(_ucs2 0x1027101F103A),
-(_ucs2 0x10211031102C101F1039),
-(_ucs2 0x1029101F1039),
-(_ucs2 0x10211031102C101F103A),
-(_ucs2 0x1029101F103A),
-(_ucs2 0x10211031102C101F1039),
-(_ucs2 0x10291031102C101F1039),
-(_ucs2 0x10211031102C101F103A),
-(_ucs2 0x10291031102C101F103A),
-('--- Contractions'),
-(_ucs2 0x1031102C1000103A1000103B),
-(_ucs2 0x1031102C1000103A103B /* (suffix of) man */),
-(_ucs2 0x1014103A1014102F1015103A),
-(_ucs2 0x1014103A102F1015103A /* (suffix of) I */),
-('--- Great Sa'),
-(_ucs2 0x1031101E1039101E),
-(_ucs2 0x1031103F),
-(_ucs2 0x102D101E1039101E),
-(_ucs2 0x102D103F),
-(_ucs2 0x102F101E1039101E),
-(_ucs2 0x102F103F),
-(_ucs2 0x1021102D101E1039101E),
-(_ucs2 0x1023103F),
-(_ucs2 0x1021102F101E1039101E),
-(_ucs2 0x1025103F),
-(_ucs2 0x101E1039101E),
-(_ucs2 0x103F),
-('--- Symbols - collate as long form'),
-(_ucs2 0x1014103E102D102F1000103A),
-(_ucs2 0x104C),
-(_ucs2 0x101B103D10311037),
-(_ucs2 0x104D),
-(_ucs2 0x101C100A103A103810001031102C1004103A1038),
-(_ucs2 0x104E1004103A1038),
-(_ucs2 0x1021102D),
-(_ucs2 0x104F),
-('--- Short Forms may need to be added here'),
-(_ucs2 0x101C1000103A101A102C),
-(_ucs2 0x101C1000103A103B102C /* right hand side */),
-(_ucs2 0x101E1019102E),
-(_ucs2 0x101E10391019102E /* daughter */),
-(_ucs2 0x101110191004103A1038),
-(_ucs2 0x1011103910191004103A1038 /* cooked rice */),
-(_ucs2 0x101C1000103A10181000103A),
-(_ucs2 0x101C103910181000103A /* tea */);
-SELECT id, IF(LEFT(s1,1)='-',s1,CONCAT(HEX(WEIGHT_STRING(s1)),'\t', HEX(CONVERT(s1 USING ucs2)))) FROM t1 ORDER BY id;
-id IF(LEFT(s1,1)='-',s1,CONCAT(HEX(WEIGHT_STRING(s1)),'\t', HEX(CONVERT(s1 USING ucs2))))
-1 2259 108C
-2 22593ACB 1037
-3 22593ACC 1038
-4 22593ACD 10371038
-5 --- Vowels
-6 2232 102C
-7 2232 102B
-8 2246 1032
-9 22463ACB 1031102C
-10 22463ACB 1031102B
-11 22463ACC 1031102C103A
-12 22463ACC 1031102B103A
-13 2248 1034
-14 22483ACB 1036
-15 22483ACC 102D102F
-16 --- Vowels with finals
-17 22483ACD 10001039
-18 22483ACD 1000103A
-19 22483ACE 102C10001039
-20 22483ACE 102C1000103A
-21 22483ACE 102B10001039
-22 22483ACE 102B1000103A
-23 22483ACF 102D10001039
-24 22483ACF 102D1000103A
-25 22483AD0 102F10001039
-26 22483AD0 102F1000103A
-27 22483AD1 103110001039
-28 22483AD1 10311000103A
-29 22483AD2 1031102C10001039
-30 22483AD2 1031102C1000103A
-31 22483AD2 1031102B10001039
-32 22483AD2 1031102B1000103A
-33 22483AD3 102D102F10001039
-34 22483AD3 102D102F1000103A
-35 22483AD4 10011039
-36 22483AD4 1001103A
-37 22483AD5 102C10011039
-38 22483AD5 102C1001103A
-39 22483AD5 102B10011039
-40 22483AD5 102B1001103A
-41 22483AD6 102D10011039
-42 22483AD6 102D1001103A
-43 22483AD7 102F10011039
-44 22483AD7 102F1001103A
-45 22483AD8 103110011039
-46 22483AD8 10311001103A
-47 22483AD9 1031102C10011039
-48 22483AD9 1031102C1001103A
-49 22483AD9 1031102B10011039
-50 22483AD9 1031102B1001103A
-51 22483ADA 102D102F10011039
-52 22483ADA 102D102F1001103A
-53 22483ADB 10021039
-54 22483ADB 1002103A
-55 22483ADC 102C10021039
-56 22483ADC 102C1002103A
-57 22483ADC 102B10021039
-58 22483ADC 102B1002103A
-59 22483ADD 102D10021039
-60 22483ADD 102D1002103A
-61 22483ADE 102F10021039
-62 22483ADE 102F1002103A
-63 22483ADF 103110021039
-64 22483ADF 10311002103A
-65 22483AE0 1031102C10021039
-66 22483AE0 1031102C1002103A
-67 22483AE0 1031102B10021039
-68 22483AE0 1031102B1002103A
-69 22483AE1 102D102F10021039
-70 22483AE1 102D102F1002103A
-71 22483AE2 10031039
-72 22483AE2 1003103A
-73 22483AE3 102C10031039
-74 22483AE3 102C1003103A
-75 22483AE3 102B10031039
-76 22483AE3 102B1003103A
-77 22483AE4 102D10031039
-78 22483AE4 102D1003103A
-79 22483AE5 102F10031039
-80 22483AE5 102F1003103A
-81 22483AE6 103110031039
-82 22483AE6 10311003103A
-83 22483AE7 1031102C10031039
-84 22483AE7 1031102C1003103A
-85 22483AE7 1031102B10031039
-86 22483AE7 1031102B1003103A
-87 22483AE8 102D102F10031039
-88 22483AE8 102D102F1003103A
-89 22483AE9 1004103A1039
-90 22483AE9 1004103A
-91 22483AEA 102C1004103A1039
-92 22483AEA 102C1004103A
-93 22483AEA 102B1004103A1039
-94 22483AEA 102B1004103A
-95 22483AEB 102D1004103A1039
-96 22483AEB 102D1004103A
-97 22483AEC 102F1004103A1039
-98 22483AEC 102F1004103A
-99 22483AED 10311004103A1039
-100 22483AED 10311004103A
-101 22483AEE 1031102C1004103A1039
-102 22483AEE 1031102C1004103A
-103 22483AEE 1031102B1004103A1039
-104 22483AEE 1031102B1004103A
-105 22483AEF 102D102F1004103A1039
-106 22483AEF 102D102F1004103A
-107 22483AF0 10051039
-108 22483AF0 1005103A
-109 22483AF1 102C10051039
-110 22483AF1 102C1005103A
-111 22483AF1 102B10051039
-112 22483AF1 102B1005103A
-113 22483AF2 102D10051039
-114 22483AF2 102D1005103A
-115 22483AF3 102F10051039
-116 22483AF3 102F1005103A
-117 22483AF4 103110051039
-118 22483AF4 10311005103A
-119 22483AF5 1031102C10051039
-120 22483AF5 1031102C1005103A
-121 22483AF5 1031102B10051039
-122 22483AF5 1031102B1005103A
-123 22483AF6 102D102F10051039
-124 22483AF6 102D102F1005103A
-125 22483AF7 10061039
-126 22483AF7 1006103A
-127 22483AF8 102C10061039
-128 22483AF8 102C1006103A
-129 22483AF8 102B10061039
-130 22483AF8 102B1006103A
-131 22483AF9 102D10061039
-132 22483AF9 102D1006103A
-133 22483AFA 102F10061039
-134 22483AFA 102F1006103A
-135 22483AFB 103110061039
-136 22483AFB 10311006103A
-137 22483AFC 1031102C10061039
-138 22483AFC 1031102C1006103A
-139 22483AFC 1031102B10061039
-140 22483AFC 1031102B1006103A
-141 22483AFD 102D102F10061039
-142 22483AFD 102D102F1006103A
-143 22483AFE 10071039
-144 22483AFE 1007103A
-145 22483AFF 102C10071039
-146 22483AFF 102C1007103A
-147 22483AFF 102B10071039
-148 22483AFF 102B1007103A
-149 22483B00 102D10071039
-150 22483B00 102D1007103A
-151 22483B01 102F10071039
-152 22483B01 102F1007103A
-153 22483B02 103110071039
-154 22483B02 10311007103A
-155 22483B03 1031102C10071039
-156 22483B03 1031102C1007103A
-157 22483B03 1031102B10071039
-158 22483B03 1031102B1007103A
-159 22483B04 102D102F10071039
-160 22483B04 102D102F1007103A
-161 22483B05 1008103A
-162 22483B06 102C1008103A
-163 22483B06 102B1008103A
-164 22483B07 102D1008103A
-165 22483B08 102F1008103A
-166 22483B09 10311008103A
-167 22483B0A 1031102C1008103A
-168 22483B0A 1031102B1008103A
-169 22483B0B 102D102F1008103A
-170 22483B0C 10091039
-171 22483B0C 1009103A
-172 22483B0D 102C10091039
-173 22483B0D 102C1009103A
-174 22483B0D 102B10091039
-175 22483B0D 102B1009103A
-176 22483B0E 102D10091039
-177 22483B0E 102D1009103A
-178 22483B0F 102F10091039
-179 22483B0F 102F1009103A
-180 22483B10 103110091039
-181 22483B10 10311009103A
-182 22483B11 1031102C10091039
-183 22483B11 1031102C1009103A
-184 22483B11 1031102B10091039
-185 22483B11 1031102B1009103A
-186 22483B12 102D102F10091039
-187 22483B12 102D102F1009103A
-188 22483B13 100A1039
-189 22483B13 100A103A
-190 22483B14 102C100A1039
-191 22483B14 102C100A103A
-192 22483B14 102B100A1039
-193 22483B14 102B100A103A
-194 22483B15 102D100A1039
-195 22483B15 102D100A103A
-196 22483B16 102F100A1039
-197 22483B16 102F100A103A
-198 22483B17 1031100A1039
-199 22483B17 1031100A103A
-200 22483B18 1031102C100A1039
-201 22483B18 1031102C100A103A
-202 22483B18 1031102B100A1039
-203 22483B18 1031102B100A103A
-204 22483B19 102D102F100A1039
-205 22483B19 102D102F100A103A
-206 22483B1A 100B1039
-207 22483B1A 100B103A
-208 22483B1B 102C100B1039
-209 22483B1B 102C100B103A
-210 22483B1B 102B100B1039
-211 22483B1B 102B100B103A
-212 22483B1C 102D100B1039
-213 22483B1C 102D100B103A
-214 22483B1D 102F100B1039
-215 22483B1D 102F100B103A
-216 22483B1E 1031100B1039
-217 22483B1E 1031100B103A
-218 22483B1F 1031102C100B1039
-219 22483B1F 1031102C100B103A
-220 22483B1F 1031102B100B1039
-221 22483B1F 1031102B100B103A
-222 22483B20 102D102F100B1039
-223 22483B20 102D102F100B103A
-224 22483B21 100C1039
-225 22483B21 100C103A
-226 22483B22 102C100C1039
-227 22483B22 102C100C103A
-228 22483B22 102B100C1039
-229 22483B22 102B100C103A
-230 22483B23 102D100C1039
-231 22483B23 102D100C103A
-232 22483B24 102F100C1039
-233 22483B24 102F100C103A
-234 22483B25 1031100C1039
-235 22483B25 1031100C103A
-236 22483B26 1031102C100C1039
-237 22483B26 1031102C100C103A
-238 22483B26 1031102B100C1039
-239 22483B26 1031102B100C103A
-240 22483B27 102D102F100C1039
-241 22483B27 102D102F100C103A
-242 22483B28 100D1039
-243 22483B28 100D103A
-244 22483B29 102C100D1039
-245 22483B29 102C100D103A
-246 22483B29 102B100D1039
-247 22483B29 102B100D103A
-248 22483B2A 102D100D1039
-249 22483B2A 102D100D103A
-250 22483B2B 102F100D1039
-251 22483B2B 102F100D103A
-252 22483B2C 1031100D1039
-253 22483B2C 1031100D103A
-254 22483B2D 1031102C100D1039
-255 22483B2D 1031102C100D103A
-256 22483B2D 1031102B100D1039
-257 22483B2D 1031102B100D103A
-258 22483B2E 102D102F100D1039
-259 22483B2E 102D102F100D103A
-260 22483B2F 100E1039
-261 22483B2F 100E103A
-262 22483B30 102C100E1039
-263 22483B30 102C100E103A
-264 22483B30 102B100E1039
-265 22483B30 102B100E103A
-266 22483B31 102D100E1039
-267 22483B31 102D100E103A
-268 22483B32 102F100E1039
-269 22483B32 102F100E103A
-270 22483B33 1031100E1039
-271 22483B33 1031100E103A
-272 22483B34 1031102C100E1039
-273 22483B34 1031102C100E103A
-274 22483B34 1031102B100E1039
-275 22483B34 1031102B100E103A
-276 22483B35 102D102F100E1039
-277 22483B35 102D102F100E103A
-278 22483B36 100F1039
-279 22483B36 100F103A
-280 22483B37 102C100F1039
-281 22483B37 102C100F103A
-282 22483B37 102B100F1039
-283 22483B37 102B100F103A
-284 22483B38 102D100F1039
-285 22483B38 102D100F103A
-286 22483B39 102F100F1039
-287 22483B39 102F100F103A
-288 22483B3A 1031100F1039
-289 22483B3A 1031100F103A
-290 22483B3B 1031102C100F1039
-291 22483B3B 1031102C100F103A
-292 22483B3B 1031102B100F1039
-293 22483B3B 1031102B100F103A
-294 22483B3C 102D102F100F1039
-295 22483B3C 102D102F100F103A
-296 22483B3D 10101039
-297 22483B3D 1010103A
-298 22483B3E 102C10101039
-299 22483B3E 102C1010103A
-300 22483B3E 102B10101039
-301 22483B3E 102B1010103A
-302 22483B3F 102D10101039
-303 22483B3F 102D1010103A
-304 22483B40 102F10101039
-305 22483B40 102F1010103A
-306 22483B41 103110101039
-307 22483B41 10311010103A
-308 22483B42 1031102C10101039
-309 22483B42 1031102C1010103A
-310 22483B42 1031102B10101039
-311 22483B42 1031102B1010103A
-312 22483B43 102D102F10101039
-313 22483B43 102D102F1010103A
-314 22483B44 10111039
-315 22483B44 1011103A
-316 22483B45 102C10111039
-317 22483B45 102C1011103A
-318 22483B45 102B10111039
-319 22483B45 102B1011103A
-320 22483B46 102D10111039
-321 22483B46 102D1011103A
-322 22483B47 102F10111039
-323 22483B47 102F1011103A
-324 22483B48 103110111039
-325 22483B48 10311011103A
-326 22483B49 1031102C10111039
-327 22483B49 1031102C1011103A
-328 22483B49 1031102B10111039
-329 22483B49 1031102B1011103A
-330 22483B4A 102D102F10111039
-331 22483B4A 102D102F1011103A
-332 22483B4B 10121039
-333 22483B4B 1012103A
-334 22483B4C 102C10121039
-335 22483B4C 102C1012103A
-336 22483B4C 102B10121039
-337 22483B4C 102B1012103A
-338 22483B4D 102D10121039
-339 22483B4D 102D1012103A
-340 22483B4E 102F10121039
-341 22483B4E 102F1012103A
-342 22483B4F 103110121039
-343 22483B4F 10311012103A
-344 22483B50 1031102C10121039
-345 22483B50 1031102C1012103A
-346 22483B50 1031102B10121039
-347 22483B50 1031102B1012103A
-348 22483B51 102D102F10121039
-349 22483B51 102D102F1012103A
-350 22483B52 10131039
-351 22483B52 1013103A
-352 22483B53 102C10131039
-353 22483B53 102C1013103A
-354 22483B53 102B10131039
-355 22483B53 102B1013103A
-356 22483B54 102D10131039
-357 22483B54 102D1013103A
-358 22483B55 102F10131039
-359 22483B55 102F1013103A
-360 22483B56 103110131039
-361 22483B56 10311013103A
-362 22483B57 1031102C10131039
-363 22483B57 1031102C1013103A
-364 22483B57 1031102B10131039
-365 22483B57 1031102B1013103A
-366 22483B58 102D102F10131039
-367 22483B58 102D102F1013103A
-368 22483B59 10141039
-369 22483B59 1014103A
-370 22483B5A 102C10141039
-371 22483B5A 102C1014103A
-372 22483B5A 102B10141039
-373 22483B5A 102B1014103A
-374 22483B5B 102D10141039
-375 22483B5B 102D1014103A
-376 22483B5C 102F10141039
-377 22483B5C 102F1014103A
-378 22483B5D 103110141039
-379 22483B5D 10311014103A
-380 22483B5E 1031102C10141039
-381 22483B5E 1031102C1014103A
-382 22483B5E 1031102B10141039
-383 22483B5E 1031102B1014103A
-384 22483B5F 102D102F10141039
-385 22483B5F 102D102F1014103A
-386 22483B60 10151039
-387 22483B60 1015103A
-388 22483B61 102C10151039
-389 22483B61 102C1015103A
-390 22483B61 102B10151039
-391 22483B61 102B1015103A
-392 22483B62 102D10151039
-393 22483B62 102D1015103A
-394 22483B63 102F10151039
-395 22483B63 102F1015103A
-396 22483B64 103110151039
-397 22483B64 10311015103A
-398 22483B65 1031102C10151039
-399 22483B65 1031102C1015103A
-400 22483B65 1031102B10151039
-401 22483B65 1031102B1015103A
-402 22483B66 102D102F10151039
-403 22483B66 102D102F1015103A
-404 22483B67 10161039
-405 22483B67 1016103A
-406 22483B68 102C10161039
-407 22483B68 102C1016103A
-408 22483B68 102B10161039
-409 22483B68 102B1016103A
-410 22483B69 102D10161039
-411 22483B69 102D1016103A
-412 22483B6A 102F10161039
-413 22483B6A 102F1016103A
-414 22483B6B 103110161039
-415 22483B6B 10311016103A
-416 22483B6C 1031102C10161039
-417 22483B6C 1031102C1016103A
-418 22483B6C 1031102B10161039
-419 22483B6C 1031102B1016103A
-420 22483B6D 102D102F10161039
-421 22483B6D 102D102F1016103A
-422 22483B6E 10171039
-423 22483B6E 1017103A
-424 22483B6F 102C10171039
-425 22483B6F 102C1017103A
-426 22483B6F 102B10171039
-427 22483B6F 102B1017103A
-428 22483B70 102D10171039
-429 22483B70 102D1017103A
-430 22483B71 102F10171039
-431 22483B71 102F1017103A
-432 22483B72 103110171039
-433 22483B72 10311017103A
-434 22483B73 1031102C10171039
-435 22483B73 1031102C1017103A
-436 22483B73 1031102B10171039
-437 22483B73 1031102B1017103A
-438 22483B74 102D102F10171039
-439 22483B74 102D102F1017103A
-440 22483B75 10181039
-441 22483B75 1018103A
-442 22483B76 102C10181039
-443 22483B76 102C1018103A
-444 22483B76 102B10181039
-445 22483B76 102B1018103A
-446 22483B77 102D10181039
-447 22483B77 102D1018103A
-448 22483B78 102F10181039
-449 22483B78 102F1018103A
-450 22483B79 103110181039
-451 22483B79 10311018103A
-452 22483B7A 1031102C10181039
-453 22483B7A 1031102C1018103A
-454 22483B7A 1031102B10181039
-455 22483B7A 1031102B1018103A
-456 22483B7B 102D102F10181039
-457 22483B7B 102D102F1018103A
-458 22483B7C 10191039
-459 22483B7C 1019103A
-460 22483B7D 102C10191039
-461 22483B7D 102C1019103A
-462 22483B7D 102B10191039
-463 22483B7D 102B1019103A
-464 22483B7E 102D10191039
-465 22483B7E 102D1019103A
-466 22483B7F 102F10191039
-467 22483B7F 102F1019103A
-468 22483B80 103110191039
-469 22483B80 10311019103A
-470 22483B81 1031102C10191039
-471 22483B81 1031102C1019103A
-472 22483B81 1031102B10191039
-473 22483B81 1031102B1019103A
-474 22483B82 102D102F10191039
-475 22483B82 102D102F1019103A
-476 22483B83 101A1039
-477 22483B83 101A103A
-478 22483B84 102C101A1039
-479 22483B84 102C101A103A
-480 22483B84 102B101A1039
-481 22483B84 102B101A103A
-482 22483B85 102D101A1039
-483 22483B85 102D101A103A
-484 22483B86 102F101A1039
-485 22483B86 102F101A103A
-486 22483B87 1031101A1039
-487 22483B87 1031101A103A
-488 22483B88 1031102C101A1039
-489 22483B88 1031102C101A103A
-490 22483B88 1031102B101A1039
-491 22483B88 1031102B101A103A
-492 22483B89 102D102F101A1039
-493 22483B89 102D102F101A103A
-494 22483B8A 101B1039
-495 22483B8A 101B103A
-496 22483B8B 102C101B1039
-497 22483B8B 102C101B103A
-498 22483B8B 102B101B1039
-499 22483B8B 102B101B103A
-500 22483B8C 102D101B1039
-501 22483B8C 102D101B103A
-502 22483B8D 102F101B1039
-503 22483B8D 102F101B103A
-504 22483B8E 1031101B1039
-505 22483B8E 1031101B103A
-506 22483B8F 1031102C101B1039
-507 22483B8F 1031102C101B103A
-508 22483B8F 1031102B101B1039
-509 22483B8F 1031102B101B103A
-510 22483B90 102D102F101B1039
-511 22483B90 102D102F101B103A
-512 22483B91 101C1039
-513 22483B91 101C103A
-514 22483B92 102C101C1039
-515 22483B92 102C101C103A
-516 22483B92 102B101C1039
-517 22483B92 102B101C103A
-518 22483B93 102D101C1039
-519 22483B93 102D101C103A
-520 22483B94 102F101C1039
-521 22483B94 102F101C103A
-522 22483B95 1031101C1039
-523 22483B95 1031101C103A
-524 22483B96 1031102C101C1039
-525 22483B96 1031102C101C103A
-526 22483B96 1031102B101C1039
-527 22483B96 1031102B101C103A
-528 22483B97 102D102F101C1039
-529 22483B97 102D102F101C103A
-530 22483B98 101D103A
-531 22483B99 102C101D103A
-532 22483B99 102B101D103A
-533 22483B9A 102D101D103A
-534 22483B9B 102F101D103A
-535 22483B9C 1031101D103A
-536 22483B9D 1031102C101D103A
-537 22483B9D 1031102B101D103A
-538 22483B9E 102D102F101D103A
-539 22483B9F 101E1039
-540 22483B9F 101E103A
-541 22483BA0 102C101E1039
-542 22483BA0 102C101E103A
-543 22483BA0 102B101E1039
-544 22483BA0 102B101E103A
-545 22483BA1 102D101E1039
-546 22483BA1 102D101E103A
-547 22483BA2 102F101E1039
-548 22483BA2 102F101E103A
-549 22483BA3 1031101E1039
-550 22483BA3 1031101E103A
-551 22483BA4 1031102C101E1039
-552 22483BA4 1031102C101E103A
-553 22483BA4 1031102B101E1039
-554 22483BA4 1031102B101E103A
-555 22483BA5 102D102F101E1039
-556 22483BA5 102D102F101E103A
-557 22483BA6 101F1039
-558 22483BA6 101F103A
-559 22483BA7 102C101F1039
-560 22483BA7 102C101F103A
-561 22483BA7 102B101F1039
-562 22483BA7 102B101F103A
-563 22483BA8 102D101F1039
-564 22483BA8 102D101F103A
-565 22483BA9 102F101F1039
-566 22483BA9 102F101F103A
-567 22483BAA 1031101F1039
-568 22483BAA 1031101F103A
-569 22483BAB 1031102C101F1039
-570 22483BAB 1031102C101F103A
-571 22483BAB 1031102B101F1039
-572 22483BAB 1031102B101F103A
-573 22483BAC 102D102F101F1039
-574 22483BAC 102D102F101F103A
-575 22483BAD 1020103A
-576 22483BAE 102C1020103A
-577 22483BAE 102B1020103A
-578 22483BAF 102D1020103A
-579 22483BB0 102F1020103A
-580 22483BB1 10311020103A
-581 22483BB2 1031102C1020103A
-582 22483BB2 1031102B1020103A
-583 22483BB3 102D102F1020103A
-584 22483BB4 1021103A
-585 22483BB5 102C1021103A
-586 22483BB5 102B1021103A
-587 22483BB6 102D1021103A
-588 22483BB7 102F1021103A
-589 22483BB8 10311021103A
-590 22483BB9 1031102C1021103A
-591 22483BB9 1031102B1021103A
-592 22483BBA 102D102F1021103A
-593 --- Medials
-594 22483BBB 105E
-595 22483BBC 105F
-596 22483BBD 103B
-597 22483BBE 103C
-598 22483BBF 1060
-599 22483BC0 103D
-600 22483BC1 1082
-601 22483BC2 103E
-602 22483BC3 103B103D
-603 22483BC4 103C103D
-604 22483BC5 103B103E
-605 22483BC6 103C103E
-606 22483BC7 103D103E
-607 22483BC8 103B103D103E
-608 22483BC9 103C103D103E
-609 --- Independent vowels
-610 22242236 1021102D
-611 22242236 1023
-612 22242238 1021102E
-613 22242238 1024
-614 2224223A 1021102F
-615 2224223A 1025
-616 2224223D 10211030
-617 2224223D 1026
-618 22242242 10211031
-619 22242242 1027
-620 22242242 1028
-621 222422463ACB 10211031102C
-622 222422463ACB 1029
-623 222422463ACC 10211031102C103A
-624 222422463ACC 102A
-625 22483B7E 102D1019103A
-626 22483B7E3ACB 102D1036
-627 22483B7E3ACC 102D1019103A1037
-628 22483B7E3ACD 102D10361037
-629 22483B7E3ACE 102D1019103A1038
-630 22483B7E3ACF 102D10361038
-631 22483B7F 102F1019103A
-632 22483B7F3ACB 102F1036
-633 22483B7F3ACC 102F1019103A1037
-634 22483B7F3ACD 102F10361037
-635 22483B7F3ACE 102F1019103A1038
-636 22483B7F3ACF 102F10361038
-637 222422483B7F3ACB 1021102F1036
-638 222422483B7F3ACB 1025102F1036
-639 --- Independent vowels with finals
-640 222422483ACF 1021102D10001039
-641 222422483ACF 102310001039
-642 222422483ACF 1021102D1000103A
-643 222422483ACF 10231000103A
-644 222422483AD0 1021102F10001039
-645 222422483AD0 102510001039
-646 222422483AD0 1021102F1000103A
-647 222422483AD0 10251000103A
-648 222422483AD1 1021103110001039
-649 222422483AD1 102710001039
-650 222422483AD1 102110311000103A
-651 222422483AD1 10271000103A
-652 222422483AD2 10211031102C10001039
-653 222422483AD2 102910001039
-654 222422483AD2 10211031102C1000103A
-655 222422483AD2 10291000103A
-656 222422483AD2 10211031102C10001039
-657 222422483AD2 10291031102C10001039
-658 222422483AD2 10211031102C1000103A
-659 222422483AD2 10291031102C1000103A
-660 222422483AD6 1021102D10011039
-661 222422483AD6 102310011039
-662 222422483AD6 1021102D1001103A
-663 222422483AD6 10231001103A
-664 222422483AD7 1021102F10011039
-665 222422483AD7 102510011039
-666 222422483AD7 1021102F1001103A
-667 222422483AD7 10251001103A
-668 222422483AD8 1021103110011039
-669 222422483AD8 102710011039
-670 222422483AD8 102110311001103A
-671 222422483AD8 10271001103A
-672 222422483AD9 10211031102C10011039
-673 222422483AD9 102910011039
-674 222422483AD9 10211031102C1001103A
-675 222422483AD9 10291001103A
-676 222422483AD9 10211031102C10011039
-677 222422483AD9 10291031102C10011039
-678 222422483AD9 10211031102C1001103A
-679 222422483AD9 10291031102C1001103A
-680 222422483ADD 1021102D10021039
-681 222422483ADD 102310021039
-682 222422483ADD 1021102D1002103A
-683 222422483ADD 10231002103A
-684 222422483ADE 1021102F10021039
-685 222422483ADE 102510021039
-686 222422483ADE 1021102F1002103A
-687 222422483ADE 10251002103A
-688 222422483ADF 1021103110021039
-689 222422483ADF 102710021039
-690 222422483ADF 102110311002103A
-691 222422483ADF 10271002103A
-692 222422483AE0 10211031102C10021039
-693 222422483AE0 102910021039
-694 222422483AE0 10211031102C1002103A
-695 222422483AE0 10291002103A
-696 222422483AE0 10211031102C10021039
-697 222422483AE0 10291031102C10021039
-698 222422483AE0 10211031102C1002103A
-699 222422483AE0 10291031102C1002103A
-700 222422483AE4 1021102D10031039
-701 222422483AE4 102310031039
-702 222422483AE4 1021102D1003103A
-703 222422483AE4 10231003103A
-704 222422483AE5 1021102F10031039
-705 222422483AE5 102510031039
-706 222422483AE5 1021102F1003103A
-707 222422483AE5 10251003103A
-708 222422483AE6 1021103110031039
-709 222422483AE6 102710031039
-710 222422483AE6 102110311003103A
-711 222422483AE6 10271003103A
-712 222422483AE7 10211031102C10031039
-713 222422483AE7 102910031039
-714 222422483AE7 10211031102C1003103A
-715 222422483AE7 10291003103A
-716 222422483AE7 10211031102C10031039
-717 222422483AE7 10291031102C10031039
-718 222422483AE7 10211031102C1003103A
-719 222422483AE7 10291031102C1003103A
-720 2224223621D5224D 1021102D10041039
-721 2224223621D5224D 102310041039
-722 222422483AEB 1021102D1004103A
-723 222422483AEB 10231004103A
-724 2224223A21D5224D 1021102F10041039
-725 2224223A21D5224D 102510041039
-726 222422483AEC 1021102F1004103A
-727 222422483AEC 10251004103A
-728 2224224221D5224D 1021103110041039
-729 2224224221D5224D 102710041039
-730 222422483AED 102110311004103A
-731 222422483AED 10271004103A
-732 222422463ACB21D5224D 10211031102C10041039
-733 222422463ACB21D5224D 102910041039
-734 222422483AEE 10211031102C1004103A
-735 222422483AEE 10291004103A
-736 222422463ACB21D5224D 10211031102C10041039
-737 222422463ACB21D5224D 10291031102C10041039
-738 222422483AEE 10211031102C1004103A
-739 222422483AEE 10291031102C1004103A
-740 222422483AF2 1021102D10051039
-741 222422483AF2 102310051039
-742 222422483AF2 1021102D1005103A
-743 222422483AF2 10231005103A
-744 222422483AF3 1021102F10051039
-745 222422483AF3 102510051039
-746 222422483AF3 1021102F1005103A
-747 222422483AF3 10251005103A
-748 222422483AF4 1021103110051039
-749 222422483AF4 102710051039
-750 222422483AF4 102110311005103A
-751 222422483AF4 10271005103A
-752 222422483AF5 10211031102C10051039
-753 222422483AF5 102910051039
-754 222422483AF5 10211031102C1005103A
-755 222422483AF5 10291005103A
-756 222422483AF5 10211031102C10051039
-757 222422483AF5 10291031102C10051039
-758 222422483AF5 10211031102C1005103A
-759 222422483AF5 10291031102C1005103A
-760 222422483AF9 1021102D10061039
-761 222422483AF9 102310061039
-762 222422483AF9 1021102D1006103A
-763 222422483AF9 10231006103A
-764 222422483AFA 1021102F10061039
-765 222422483AFA 102510061039
-766 222422483AFA 1021102F1006103A
-767 222422483AFA 10251006103A
-768 222422483AFB 1021103110061039
-769 222422483AFB 102710061039
-770 222422483AFB 102110311006103A
-771 222422483AFB 10271006103A
-772 222422483AFC 10211031102C10061039
-773 222422483AFC 102910061039
-774 222422483AFC 10211031102C1006103A
-775 222422483AFC 10291006103A
-776 222422483AFC 10211031102C10061039
-777 222422483AFC 10291031102C10061039
-778 222422483AFC 10211031102C1006103A
-779 222422483AFC 10291031102C1006103A
-780 222422483B00 1021102D10071039
-781 222422483B00 102310071039
-782 222422483B00 1021102D1007103A
-783 222422483B00 10231007103A
-784 222422483B01 1021102F10071039
-785 222422483B01 102510071039
-786 222422483B01 1021102F1007103A
-787 222422483B01 10251007103A
-788 222422483B02 1021103110071039
-789 222422483B02 102710071039
-790 222422483B02 102110311007103A
-791 222422483B02 10271007103A
-792 222422483B03 10211031102C10071039
-793 222422483B03 102910071039
-794 222422483B03 10211031102C1007103A
-795 222422483B03 10291007103A
-796 222422483B03 10211031102C10071039
-797 222422483B03 10291031102C10071039
-798 222422483B03 10211031102C1007103A
-799 222422483B03 10291031102C1007103A
-800 222422483B0E 1021102D10091039
-801 222422483B0E 102310091039
-802 222422483B0E 1021102D1009103A
-803 222422483B0E 10231009103A
-804 222422483B0F 1021102F10091039
-805 222422483B0F 102510091039
-806 222422483B0F 1021102F1009103A
-807 222422483B0F 10251009103A
-808 222422483B10 1021103110091039
-809 222422483B10 102710091039
-810 222422483B10 102110311009103A
-811 222422483B10 10271009103A
-812 222422483B11 10211031102C10091039
-813 222422483B11 102910091039
-814 222422483B11 10211031102C1009103A
-815 222422483B11 10291009103A
-816 222422483B11 10211031102C10091039
-817 222422483B11 10291031102C10091039
-818 222422483B11 10211031102C1009103A
-819 222422483B11 10291031102C1009103A
-820 222422483B15 1021102D100A1039
-821 222422483B15 1023100A1039
-822 222422483B15 1021102D100A103A
-823 222422483B15 1023100A103A
-824 222422483B16 1021102F100A1039
-825 222422483B16 1025100A1039
-826 222422483B16 1021102F100A103A
-827 222422483B16 1025100A103A
-828 222422483B17 10211031100A1039
-829 222422483B17 1027100A1039
-830 222422483B17 10211031100A103A
-831 222422483B17 1027100A103A
-832 222422483B18 10211031102C100A1039
-833 222422483B18 1029100A1039
-834 222422483B18 10211031102C100A103A
-835 222422483B18 1029100A103A
-836 222422483B18 10211031102C100A1039
-837 222422483B18 10291031102C100A1039
-838 222422483B18 10211031102C100A103A
-839 222422483B18 10291031102C100A103A
-840 222422483B1C 1021102D100B1039
-841 222422483B1C 1023100B1039
-842 222422483B1C 1021102D100B103A
-843 222422483B1C 1023100B103A
-844 222422483B1D 1021102F100B1039
-845 222422483B1D 1025100B1039
-846 222422483B1D 1021102F100B103A
-847 222422483B1D 1025100B103A
-848 222422483B1E 10211031100B1039
-849 222422483B1E 1027100B1039
-850 222422483B1E 10211031100B103A
-851 222422483B1E 1027100B103A
-852 222422483B1F 10211031102C100B1039
-853 222422483B1F 1029100B1039
-854 222422483B1F 10211031102C100B103A
-855 222422483B1F 1029100B103A
-856 222422483B1F 10211031102C100B1039
-857 222422483B1F 10291031102C100B1039
-858 222422483B1F 10211031102C100B103A
-859 222422483B1F 10291031102C100B103A
-860 222422483B23 1021102D100C1039
-861 222422483B23 1023100C1039
-862 222422483B23 1021102D100C103A
-863 222422483B23 1023100C103A
-864 222422483B24 1021102F100C1039
-865 222422483B24 1025100C1039
-866 222422483B24 1021102F100C103A
-867 222422483B24 1025100C103A
-868 222422483B25 10211031100C1039
-869 222422483B25 1027100C1039
-870 222422483B25 10211031100C103A
-871 222422483B25 1027100C103A
-872 222422483B26 10211031102C100C1039
-873 222422483B26 1029100C1039
-874 222422483B26 10211031102C100C103A
-875 222422483B26 1029100C103A
-876 222422483B26 10211031102C100C1039
-877 222422483B26 10291031102C100C1039
-878 222422483B26 10211031102C100C103A
-879 222422483B26 10291031102C100C103A
-880 222422483B2A 1021102D100D1039
-881 222422483B2A 1023100D1039
-882 222422483B2A 1021102D100D103A
-883 222422483B2A 1023100D103A
-884 222422483B2B 1021102F100D1039
-885 222422483B2B 1025100D1039
-886 222422483B2B 1021102F100D103A
-887 222422483B2B 1025100D103A
-888 222422483B2C 10211031100D1039
-889 222422483B2C 1027100D1039
-890 222422483B2C 10211031100D103A
-891 222422483B2C 1027100D103A
-892 222422483B2D 10211031102C100D1039
-893 222422483B2D 1029100D1039
-894 222422483B2D 10211031102C100D103A
-895 222422483B2D 1029100D103A
-896 222422483B2D 10211031102C100D1039
-897 222422483B2D 10291031102C100D1039
-898 222422483B2D 10211031102C100D103A
-899 222422483B2D 10291031102C100D103A
-900 222422483B31 1021102D100E1039
-901 222422483B31 1023100E1039
-902 222422483B31 1021102D100E103A
-903 222422483B31 1023100E103A
-904 222422483B32 1021102F100E1039
-905 222422483B32 1025100E1039
-906 222422483B32 1021102F100E103A
-907 222422483B32 1025100E103A
-908 222422483B33 10211031100E1039
-909 222422483B33 1027100E1039
-910 222422483B33 10211031100E103A
-911 222422483B33 1027100E103A
-912 222422483B34 10211031102C100E1039
-913 222422483B34 1029100E1039
-914 222422483B34 10211031102C100E103A
-915 222422483B34 1029100E103A
-916 222422483B34 10211031102C100E1039
-917 222422483B34 10291031102C100E1039
-918 222422483B34 10211031102C100E103A
-919 222422483B34 10291031102C100E103A
-920 222422483B38 1021102D100F1039
-921 222422483B38 1023100F1039
-922 222422483B38 1021102D100F103A
-923 222422483B38 1023100F103A
-924 222422483B39 1021102F100F1039
-925 222422483B39 1025100F1039
-926 222422483B39 1021102F100F103A
-927 222422483B39 1025100F103A
-928 222422483B3A 10211031100F1039
-929 222422483B3A 1027100F1039
-930 222422483B3A 10211031100F103A
-931 222422483B3A 1027100F103A
-932 222422483B3B 10211031102C100F1039
-933 222422483B3B 1029100F1039
-934 222422483B3B 10211031102C100F103A
-935 222422483B3B 1029100F103A
-936 222422483B3B 10211031102C100F1039
-937 222422483B3B 10291031102C100F1039
-938 222422483B3B 10211031102C100F103A
-939 222422483B3B 10291031102C100F103A
-940 222422483B3F 1021102D10101039
-941 222422483B3F 102310101039
-942 222422483B3F 1021102D1010103A
-943 222422483B3F 10231010103A
-944 222422483B40 1021102F10101039
-945 222422483B40 102510101039
-946 222422483B40 1021102F1010103A
-947 222422483B40 10251010103A
-948 222422483B41 1021103110101039
-949 222422483B41 102710101039
-950 222422483B41 102110311010103A
-951 222422483B41 10271010103A
-952 222422483B42 10211031102C10101039
-953 222422483B42 102910101039
-954 222422483B42 10211031102C1010103A
-955 222422483B42 10291010103A
-956 222422483B42 10211031102C10101039
-957 222422483B42 10291031102C10101039
-958 222422483B42 10211031102C1010103A
-959 222422483B42 10291031102C1010103A
-960 222422483B46 1021102D10111039
-961 222422483B46 102310111039
-962 222422483B46 1021102D1011103A
-963 222422483B46 10231011103A
-964 222422483B47 1021102F10111039
-965 222422483B47 102510111039
-966 222422483B47 1021102F1011103A
-967 222422483B47 10251011103A
-968 222422483B48 1021103110111039
-969 222422483B48 102710111039
-970 222422483B48 102110311011103A
-971 222422483B48 10271011103A
-972 222422483B49 10211031102C10111039
-973 222422483B49 102910111039
-974 222422483B49 10211031102C1011103A
-975 222422483B49 10291011103A
-976 222422483B49 10211031102C10111039
-977 222422483B49 10291031102C10111039
-978 222422483B49 10211031102C1011103A
-979 222422483B49 10291031102C1011103A
-980 222422483B4D 1021102D10121039
-981 222422483B4D 102310121039
-982 222422483B4D 1021102D1012103A
-983 222422483B4D 10231012103A
-984 222422483B4E 1021102F10121039
-985 222422483B4E 102510121039
-986 222422483B4E 1021102F1012103A
-987 222422483B4E 10251012103A
-988 222422483B4F 1021103110121039
-989 222422483B4F 102710121039
-990 222422483B4F 102110311012103A
-991 222422483B4F 10271012103A
-992 222422483B50 10211031102C10121039
-993 222422483B50 102910121039
-994 222422483B50 10211031102C1012103A
-995 222422483B50 10291012103A
-996 222422483B50 10211031102C10121039
-997 222422483B50 10291031102C10121039
-998 222422483B50 10211031102C1012103A
-999 222422483B50 10291031102C1012103A
-1000 222422483B54 1021102D10131039
-1001 222422483B54 102310131039
-1002 222422483B54 1021102D1013103A
-1003 222422483B54 10231013103A
-1004 222422483B55 1021102F10131039
-1005 222422483B55 102510131039
-1006 222422483B55 1021102F1013103A
-1007 222422483B55 10251013103A
-1008 222422483B56 1021103110131039
-1009 222422483B56 102710131039
-1010 222422483B56 102110311013103A
-1011 222422483B56 10271013103A
-1012 222422483B57 10211031102C10131039
-1013 222422483B57 102910131039
-1014 222422483B57 10211031102C1013103A
-1015 222422483B57 10291013103A
-1016 222422483B57 10211031102C10131039
-1017 222422483B57 10291031102C10131039
-1018 222422483B57 10211031102C1013103A
-1019 222422483B57 10291031102C1013103A
-1020 222422483B5B 1021102D10141039
-1021 222422483B5B 102310141039
-1022 222422483B5B 1021102D1014103A
-1023 222422483B5B 10231014103A
-1024 222422483B5C 1021102F10141039
-1025 222422483B5C 102510141039
-1026 222422483B5C 1021102F1014103A
-1027 222422483B5C 10251014103A
-1028 222422483B5D 1021103110141039
-1029 222422483B5D 102710141039
-1030 222422483B5D 102110311014103A
-1031 222422483B5D 10271014103A
-1032 222422483B5E 10211031102C10141039
-1033 222422483B5E 102910141039
-1034 222422483B5E 10211031102C1014103A
-1035 222422483B5E 10291014103A
-1036 222422483B5E 10211031102C10141039
-1037 222422483B5E 10291031102C10141039
-1038 222422483B5E 10211031102C1014103A
-1039 222422483B5E 10291031102C1014103A
-1040 222422483B62 1021102D10151039
-1041 222422483B62 102310151039
-1042 222422483B62 1021102D1015103A
-1043 222422483B62 10231015103A
-1044 222422483B63 1021102F10151039
-1045 222422483B63 102510151039
-1046 222422483B63 1021102F1015103A
-1047 222422483B63 10251015103A
-1048 222422483B64 1021103110151039
-1049 222422483B64 102710151039
-1050 222422483B64 102110311015103A
-1051 222422483B64 10271015103A
-1052 222422483B65 10211031102C10151039
-1053 222422483B65 102910151039
-1054 222422483B65 10211031102C1015103A
-1055 222422483B65 10291015103A
-1056 222422483B65 10211031102C10151039
-1057 222422483B65 10291031102C10151039
-1058 222422483B65 10211031102C1015103A
-1059 222422483B65 10291031102C1015103A
-1060 222422483B69 1021102D10161039
-1061 222422483B69 102310161039
-1062 222422483B69 1021102D1016103A
-1063 222422483B69 10231016103A
-1064 222422483B6A 1021102F10161039
-1065 222422483B6A 102510161039
-1066 222422483B6A 1021102F1016103A
-1067 222422483B6A 10251016103A
-1068 222422483B6B 1021103110161039
-1069 222422483B6B 102710161039
-1070 222422483B6B 102110311016103A
-1071 222422483B6B 10271016103A
-1072 222422483B6C 10211031102C10161039
-1073 222422483B6C 102910161039
-1074 222422483B6C 10211031102C1016103A
-1075 222422483B6C 10291016103A
-1076 222422483B6C 10211031102C10161039
-1077 222422483B6C 10291031102C10161039
-1078 222422483B6C 10211031102C1016103A
-1079 222422483B6C 10291031102C1016103A
-1080 222422483B70 1021102D10171039
-1081 222422483B70 102310171039
-1082 222422483B70 1021102D1017103A
-1083 222422483B70 10231017103A
-1084 222422483B71 1021102F10171039
-1085 222422483B71 102510171039
-1086 222422483B71 1021102F1017103A
-1087 222422483B71 10251017103A
-1088 222422483B72 1021103110171039
-1089 222422483B72 102710171039
-1090 222422483B72 102110311017103A
-1091 222422483B72 10271017103A
-1092 222422483B73 10211031102C10171039
-1093 222422483B73 102910171039
-1094 222422483B73 10211031102C1017103A
-1095 222422483B73 10291017103A
-1096 222422483B73 10211031102C10171039
-1097 222422483B73 10291031102C10171039
-1098 222422483B73 10211031102C1017103A
-1099 222422483B73 10291031102C1017103A
-1100 222422483B77 1021102D10181039
-1101 222422483B77 102310181039
-1102 222422483B77 1021102D1018103A
-1103 222422483B77 10231018103A
-1104 222422483B78 1021102F10181039
-1105 222422483B78 102510181039
-1106 222422483B78 1021102F1018103A
-1107 222422483B78 10251018103A
-1108 222422483B79 1021103110181039
-1109 222422483B79 102710181039
-1110 222422483B79 102110311018103A
-1111 222422483B79 10271018103A
-1112 222422483B7A 10211031102C10181039
-1113 222422483B7A 102910181039
-1114 222422483B7A 10211031102C1018103A
-1115 222422483B7A 10291018103A
-1116 222422483B7A 10211031102C10181039
-1117 222422483B7A 10291031102C10181039
-1118 222422483B7A 10211031102C1018103A
-1119 222422483B7A 10291031102C1018103A
-1120 222422483B7E 1021102D10191039
-1121 222422483B7E 102310191039
-1122 222422483B7E 1021102D1019103A
-1123 222422483B7E 10231019103A
-1124 222422483B7F 1021102F10191039
-1125 222422483B7F 102510191039
-1126 222422483B7F 1021102F1019103A
-1127 222422483B7F 10251019103A
-1128 222422483B80 1021103110191039
-1129 222422483B80 102710191039
-1130 222422483B80 102110311019103A
-1131 222422483B80 10271019103A
-1132 222422483B81 10211031102C10191039
-1133 222422483B81 102910191039
-1134 222422483B81 10211031102C1019103A
-1135 222422483B81 10291019103A
-1136 222422483B81 10211031102C10191039
-1137 222422483B81 10291031102C10191039
-1138 222422483B81 10211031102C1019103A
-1139 222422483B81 10291031102C1019103A
-1140 222422483B85 1021102D101A1039
-1141 222422483B85 1023101A1039
-1142 222422483B85 1021102D101A103A
-1143 222422483B85 1023101A103A
-1144 222422483B86 1021102F101A1039
-1145 222422483B86 1025101A1039
-1146 222422483B86 1021102F101A103A
-1147 222422483B86 1025101A103A
-1148 222422483B87 10211031101A1039
-1149 222422483B87 1027101A1039
-1150 222422483B87 10211031101A103A
-1151 222422483B87 1027101A103A
-1152 222422483B88 10211031102C101A1039
-1153 222422483B88 1029101A1039
-1154 222422483B88 10211031102C101A103A
-1155 222422483B88 1029101A103A
-1156 222422483B88 10211031102C101A1039
-1157 222422483B88 10291031102C101A1039
-1158 222422483B88 10211031102C101A103A
-1159 222422483B88 10291031102C101A103A
-1160 222422483B8C 1021102D101B1039
-1161 222422483B8C 1023101B1039
-1162 222422483B8C 1021102D101B103A
-1163 222422483B8C 1023101B103A
-1164 222422483B8D 1021102F101B1039
-1165 222422483B8D 1025101B1039
-1166 222422483B8D 1021102F101B103A
-1167 222422483B8D 1025101B103A
-1168 222422483B8E 10211031101B1039
-1169 222422483B8E 1027101B1039
-1170 222422483B8E 10211031101B103A
-1171 222422483B8E 1027101B103A
-1172 222422483B8F 10211031102C101B1039
-1173 222422483B8F 1029101B1039
-1174 222422483B8F 10211031102C101B103A
-1175 222422483B8F 1029101B103A
-1176 222422483B8F 10211031102C101B1039
-1177 222422483B8F 10291031102C101B1039
-1178 222422483B8F 10211031102C101B103A
-1179 222422483B8F 10291031102C101B103A
-1180 222422483B93 1021102D101C1039
-1181 222422483B93 1023101C1039
-1182 222422483B93 1021102D101C103A
-1183 222422483B93 1023101C103A
-1184 222422483B94 1021102F101C1039
-1185 222422483B94 1025101C1039
-1186 222422483B94 1021102F101C103A
-1187 222422483B94 1025101C103A
-1188 222422483B95 10211031101C1039
-1189 222422483B95 1027101C1039
-1190 222422483B95 10211031101C103A
-1191 222422483B95 1027101C103A
-1192 222422483B96 10211031102C101C1039
-1193 222422483B96 1029101C1039
-1194 222422483B96 10211031102C101C103A
-1195 222422483B96 1029101C103A
-1196 222422483B96 10211031102C101C1039
-1197 222422483B96 10291031102C101C1039
-1198 222422483B96 10211031102C101C103A
-1199 222422483B96 10291031102C101C103A
-1200 222422483BA1 1021102D101E1039
-1201 222422483BA1 1023101E1039
-1202 222422483BA1 1021102D101E103A
-1203 222422483BA1 1023101E103A
-1204 222422483BA2 1021102F101E1039
-1205 222422483BA2 1025101E1039
-1206 222422483BA2 1021102F101E103A
-1207 222422483BA2 1025101E103A
-1208 222422483BA3 10211031101E1039
-1209 222422483BA3 1027101E1039
-1210 222422483BA3 10211031101E103A
-1211 222422483BA3 1027101E103A
-1212 222422483BA4 10211031102C101E1039
-1213 222422483BA4 1029101E1039
-1214 222422483BA4 10211031102C101E103A
-1215 222422483BA4 1029101E103A
-1216 222422483BA4 10211031102C101E1039
-1217 222422483BA4 10291031102C101E1039
-1218 222422483BA4 10211031102C101E103A
-1219 222422483BA4 10291031102C101E103A
-1220 222422483BA8 1021102D101F1039
-1221 222422483BA8 1023101F1039
-1222 222422483BA8 1021102D101F103A
-1223 222422483BA8 1023101F103A
-1224 222422483BA9 1021102F101F1039
-1225 222422483BA9 1025101F1039
-1226 222422483BA9 1021102F101F103A
-1227 222422483BA9 1025101F103A
-1228 222422483BAA 10211031101F1039
-1229 222422483BAA 1027101F1039
-1230 222422483BAA 10211031101F103A
-1231 222422483BAA 1027101F103A
-1232 222422483BAB 10211031102C101F1039
-1233 222422483BAB 1029101F1039
-1234 222422483BAB 10211031102C101F103A
-1235 222422483BAB 1029101F103A
-1236 222422483BAB 10211031102C101F1039
-1237 222422483BAB 10291031102C101F1039
-1238 222422483BAB 10211031102C101F103A
-1239 222422483BAB 10291031102C101F103A
-1240 --- Contractions
-1241 22483AD221CD22483BBD 1031102C1000103A1000103B
-1242 22483AD221CD22483BBD 1031102C1000103A103B
-1243 22483B5921F822483B63 1014103A1014102F1015103A
-1244 22483B5921F822483B63 1014103A102F1015103A
-1245 --- Great Sa
-1246 22483BA32216 1031101E1039101E
-1247 22483BA32216 1031103F
-1248 22483BA12216 102D101E1039101E
-1249 22483BA12216 102D103F
-1250 22483BA22216 102F101E1039101E
-1251 22483BA22216 102F103F
-1252 222422483BA12216 1021102D101E1039101E
-1253 222422483BA12216 1023103F
-1254 222422483BA22216 1021102F101E1039101E
-1255 222422483BA22216 1025103F
-1256 22483B9F2216 101E1039101E
-1257 22483B9F2216 103F
-1258 --- Symbols - collate as long form
-1259 21F822483BC222483AD3 1014103E102D102F1000103A
-1260 21F822483BC222483AD3 104C
-1261 220922483BC0224222593ACB 101B103D10311037
-1262 220922483BC0224222593ACB 104D
-1263 220D22483B1322593ACC21CD22483AEE22593ACC 101C100A103A103810001031102C1004103A1038
-1264 220D22483B1322593ACC21CD22483AEE22593ACC 104E1004103A1038
-1265 22242236 1021102D
-1266 22242236 104F
-1267 --- Short Forms may need to be added here
-1268 220D22483ACD22072232 101C1000103A101A102C
-1269 220D22483ACD22072232 101C1000103A103B102C
-1270 221622052238 101E1019102E
-1271 221622052238 101E10391019102E
-1272 21F3220522483AE922593ACC 101110191004103A1038
-1273 21F3220522483AE922593ACC 1011103910191004103A1038
-1274 220D22483ACD220422483ACD 101C1000103A10181000103A
-1275 220D22483ACD220422483ACD 101C103910181000103A
-DROP TABLE t1;
-#
-# END of ctype_myanmar.inc
-#
-#
-# End of MariaDB-10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-SET NAMES utf8;
-SET collation_connection=utf8mb4_thai_520_w2;
-#
-# Start of ctype_uca_w2.inc
-#
-SELECT @@collation_connection;
-@@collation_connection
-utf8mb4_thai_520_w2
-SELECT ID, SORTLEN, COLLATION_NAME, CHARACTER_SET_NAME
-FROM INFORMATION_SCHEMA.COLLATIONS
-WHERE COLLATION_NAME LIKE @@collation_connection;
-ID SORTLEN COLLATION_NAME CHARACTER_SET_NAME
-610 4 utf8mb4_thai_520_w2 utf8mb4
-#
-# Testing strnxfrm
-#
-CREATE TABLE t1 AS SELECT SPACE(3) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (SPACE(0)),(SPACE(1)),(SPACE(2));
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(8))) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(8)))
- 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-20 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-2020 020A020A020A020A020A020A020A020A00200020002000200020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4))) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4)))
- 020A020A020A020A0020002000200020
-20 020A020A020A020A0020002000200020
-2020 020A020A020A020A0020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 1)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 1))
- 020A020A020A020A
-20 020A020A020A020A
-2020 020A020A020A020A
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 2)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 2))
- 0020002000200020
-20 0020002000200020
-2020 0020002000200020
-SELECT HEX(a), HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 3)) FROM t1;
-HEX(a) HEX(WEIGHT_STRING(a AS CHAR(4) LEVEL 3))
- 0020002000200020
-20 0020002000200020
-2020 0020002000200020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (_ucs2 0x3400);
-INSERT INTO t1 VALUES (_ucs2 0xF001);
-SELECT HEX(CONVERT(a USING ucs2)) AS ucs2, HEX(a), HEX(WEIGHT_STRING(a)) FROM t1;
-ucs2 HEX(a) HEX(WEIGHT_STRING(a))
-3400 E39080 FB80B4000020
-F001 EF8081 FBC1F0010020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('A'),('À'),('Ã'),('Â'),('Ã'),('Ä'),('Ã…');
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-A 0020
-Ã 00200032
-À 00200035
-Â 0020003C
-Ã… 00200043
-Ä 00200047
-Ã 0020004E
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a DESC;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-Ã 0020004E
-Ä 00200047
-Ã… 00200043
-Â 0020003C
-À 00200035
-Ã 00200032
-A 0020
-SET @backup_character_set_connection=@@character_set_connection;
-SET @backup_collation_connection=@@collation_connection;
-SET NAMES utf8;
-SET @stmt= CONCAT('ALTER TABLE t1 MODIFY a CHAR(10)' COLLATE utf8_bin,
-' CHARACTER SET ', @backup_character_set_connection,
-' COLLATE ', @backup_collation_connection);
-PREPARE stmt FROM @stmt;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-SET collation_connection=@backup_collation_connection;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-A 0020
-Ã 00200032
-À 00200035
-Â 0020003C
-Ã… 00200043
-Ä 00200047
-Ã 0020004E
-SELECT a, HEX(WEIGHT_STRING(a LEVEL 2)) FROM t1 ORDER BY a DESC;
-a HEX(WEIGHT_STRING(a LEVEL 2))
-Ã 0020004E
-Ä 00200047
-Ã… 00200043
-Â 0020003C
-À 00200035
-Ã 00200032
-A 0020
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT SPACE(10) AS a LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_thai_520_w2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('cota'),('cote'),('cotz');
-INSERT INTO t1 VALUES ('coté'),('côte'),('côté'),('cotë'),('côtë');
-SELECT * FROM t1 ORDER BY a;
-a
-cota
-cote
-coté
-cotë
-côte
-côté
-côtë
-cotz
-SELECT * FROM t1 ORDER BY a DESC;
-a
-cotz
-côtë
-côté
-côte
-cotë
-coté
-cote
-cota
-DROP TABLE t1;
-#
-# End of ctype_uca_w2.inc
-#
-#
-# Start of ctype_thai.inc
-#
-CREATE TABLE t1 (a VARCHAR(30) CHARACTER SET utf8 COLLATE utf8_bin);
-INSERT INTO t1 VALUES ('-à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡');
-INSERT INTO t1 VALUES ('à¸à¸');
-INSERT INTO t1 VALUES ('à¸à¸£à¸²à¸š');
-INSERT INTO t1 VALUES ('ข่าง');
-INSERT INTO t1 VALUES ('ข้าง');
-INSERT INTO t1 VALUES ('ข้างà¸à¸£à¸°à¸”าน');
-INSERT INTO t1 VALUES ('ข้างขึ้น');
-INSERT INTO t1 VALUES ('ข้างควาย');
-INSERT INTO t1 VALUES ('ข้างเงิน');
-INSERT INTO t1 VALUES ('ข้างà¹à¸£à¸¡');
-INSERT INTO t1 VALUES ('ข้างออà¸');
-INSERT INTO t1 VALUES ('ข้างๆ');
-INSERT INTO t1 VALUES ('ข้างๆ คูๆ');
-INSERT INTO t1 VALUES ('ขาง');
-INSERT INTO t1 VALUES ('à¹à¸‚็ง');
-INSERT INTO t1 VALUES ('à¹à¸‚่ง');
-INSERT INTO t1 VALUES ('à¹à¸‚่งขัน');
-INSERT INTO t1 VALUES ('à¹à¸‚้ง');
-INSERT INTO t1 VALUES ('à¹à¸‚้งขวา');
-INSERT INTO t1 VALUES ('à¹à¸‚็งขัน');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡');
-INSERT INTO t1 VALUES ('ทูลเà¸à¸¥à¹‰à¸²à¸¯');
-INSERT INTO t1 VALUES ('บุà¸à¸à¸²');
-INSERT INTO t1 VALUES ('บุà¸-หลง');
-INSERT INTO t1 VALUES ('บุà¸à¸«à¸¥à¸‡');
-INSERT INTO t1 VALUES ('ป่า');
-INSERT INTO t1 VALUES ('ป่าน');
-INSERT INTO t1 VALUES ('ป้า');
-INSERT INTO t1 VALUES ('ป้าน');
-INSERT INTO t1 VALUES ('ป๊า');
-INSERT INTO t1 VALUES ('ป๊าน');
-INSERT INTO t1 VALUES ('ป๋า');
-INSERT INTO t1 VALUES ('ป๋าน');
-INSERT INTO t1 VALUES ('ปา');
-INSERT INTO t1 VALUES ('ปาน');
-INSERT INTO t1 VALUES ('à¹à¸›à¹‰à¸‡');
-INSERT INTO t1 VALUES ('พณิชย์');
-INSERT INTO t1 VALUES ('ม้า');
-INSERT INTO t1 VALUES ('ฯพณฯ');
-INSERT INTO t1 VALUES ('A');
-INSERT INTO t1 VALUES ('a');
-INSERT INTO t1 VALUES ('a\'');
-INSERT INTO t1 VALUES ('A-');
-INSERT INTO t1 VALUES ('a-');
-INSERT INTO t1 VALUES ('-a');
-INSERT INTO t1 VALUES ('A.');
-INSERT INTO t1 VALUES ('a.');
-INSERT INTO t1 VALUES ('A-1');
-INSERT INTO t1 VALUES ('aa');
-INSERT INTO t1 VALUES ('AA');
-INSERT INTO t1 VALUES ('A.A.');
-INSERT INTO t1 VALUES ('a.a.');
-INSERT INTO t1 VALUES ('AAA');
-INSERT INTO t1 VALUES ('A.A.A.');
-INSERT INTO t1 VALUES ('AAAA');
-INSERT INTO t1 VALUES ('A.A.A.L.');
-INSERT INTO t1 VALUES ('A.A.A.S.');
-INSERT INTO t1 VALUES ('Aachen');
-INSERT INTO t1 VALUES ('A.A.E.');
-INSERT INTO t1 VALUES ('A.Ae.E.');
-INSERT INTO t1 VALUES ('A.A.E.E.');
-INSERT INTO t1 VALUES ('AAES');
-INSERT INTO t1 VALUES ('AAF');
-INSERT INTO t1 VALUES ('A.Agr');
-INSERT INTO t1 VALUES ('aah');
-INSERT INTO t1 VALUES ('@@@@@');
-INSERT INTO t1 VALUES ('0000');
-INSERT INTO t1 VALUES ('9999');
-INSERT INTO t1 VALUES ('Aalborg');
-INSERT INTO t1 VALUES ('aide');
-INSERT INTO t1 VALUES ('air');
-INSERT INTO t1 VALUES ('@@@air');
-INSERT INTO t1 VALUES ('air@@@');
-INSERT INTO t1 VALUES ('C.A.F');
-INSERT INTO t1 VALUES ('Canon');
-INSERT INTO t1 VALUES ('coop');
-INSERT INTO t1 VALUES ('co-op');
-INSERT INTO t1 VALUES ('COOP');
-INSERT INTO t1 VALUES ('CO-OP');
-INSERT INTO t1 VALUES ('Copenhegen');
-INSERT INTO t1 VALUES ('McArthur');
-INSERT INTO t1 VALUES ('Mc Arthur');
-INSERT INTO t1 VALUES ('Mc Mahon');
-INSERT INTO t1 VALUES ('vice-president');
-INSERT INTO t1 VALUES ('vice versa');
-INSERT INTO t1 VALUES ('vice-versa');
-INSERT INTO t1 VALUES ('10 ลิตร');
-INSERT INTO t1 VALUES ('๑๠ลิตร');
-INSERT INTO t1 VALUES ('10 litre');
-INSERT INTO t1 VALUES ('10 litre (10 ลิตร)');
-INSERT INTO t1 VALUES ('10 ลิตร (10 litre)');
-INSERT INTO t1 VALUES ('10 litre (๑๠ลิตร)');
-INSERT INTO t1 VALUES ('๑๠ลิตร (10 litre)');
-INSERT INTO t1 VALUES ('๑๠ลิตร [10 litre]');
-INSERT INTO t1 VALUES ('๑๠ลิตร {10 litre}');
-ALTER TABLE t1 ORDER BY a;
-SET @backup_character_set_connection=@@character_set_connection;
-SET @backup_collation_connection=@@collation_connection;
-SET NAMES utf8;
-SET @stmt= CONCAT('ALTER TABLE t1 MODIFY a VARCHAR(30)',
-' CHARACTER SET ', @backup_character_set_connection,
-' COLLATE ', @backup_collation_connection,
-' , ADD id INT NOT NULL AUTO_INCREMENT PRIMARY KEY'
- ' , ADD KEY a_id (a, id)');
-PREPARE stmt FROM @stmt;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-SET collation_connection=@backup_collation_connection;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_thai_520_w2 DEFAULT NULL,
- `id` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`),
- KEY `a_id` (`a`,`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=97 DEFAULT CHARSET=latin1
-#
-# Ascending sort, using filesort
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a, BINARY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index; Using filesort
-SELECT a FROM t1 ORDER BY a, BINARY a;
-a
--a
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
-@@@@@
-@@@air
-0000
-10 litre
-10 litre (10 ลิตร)
-10 litre (๑๠ลิตร)
-10 ลิตร
-๑๠ลิตร
-10 ลิตร (10 litre)
-๑๠ลิตร (10 litre)
-๑๠ลิตร [10 litre]
-๑๠ลิตร {10 litre}
-9999
-A
-a
-A-
-a-
-A-1
-A.
-a.
-A.A.
-a.a.
-A.A.A.
-A.A.A.L.
-A.A.A.S.
-A.A.E.
-A.A.E.E.
-A.Ae.E.
-A.Agr
-a'
-AA
-aa
-AAA
-AAAA
-Aachen
-AAES
-AAF
-aah
-Aalborg
-aide
-air
-air@@@
-C.A.F
-Canon
-CO-OP
-co-op
-COOP
-coop
-Copenhegen
-Mc Arthur
-Mc Mahon
-McArthur
-vice versa
-vice-president
-vice-versa
-à¸à¸
-à¸à¸£à¸²à¸š
-ขาง
-ข่าง
-ข้าง
-ข้างๆ
-ข้างๆ คูๆ
-ข้างà¸à¸£à¸°à¸”าน
-ข้างขึ้น
-ข้างควาย
-ข้างเงิน
-ข้างà¹à¸£à¸¡
-ข้างออà¸
-à¹à¸‚็ง
-à¹à¸‚่ง
-à¹à¸‚้ง
-à¹à¸‚้งขวา
-à¹à¸‚็งขัน
-à¹à¸‚่งขัน
-ทูลเà¸à¸¥à¹‰à¸²
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-บุà¸-หลง
-บุà¸à¸à¸²
-บุà¸à¸«à¸¥à¸‡
-ปา
-ป่า
-ป้า
-ป๊า
-ป๋า
-ปาน
-ป่าน
-ป้าน
-ป๊าน
-ป๋าน
-à¹à¸›à¹‰à¸‡
-พณิชย์
-ม้า
-ฯพณฯ
-#
-# Descending sort, using filesort
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index; Using filesort
-SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC;
-a
-ฯพณฯ
-ม้า
-พณิชย์
-à¹à¸›à¹‰à¸‡
-ป๋าน
-ป๊าน
-ป้าน
-ป่าน
-ปาน
-ป๋า
-ป๊า
-ป้า
-ป่า
-ปา
-บุà¸à¸«à¸¥à¸‡
-บุà¸à¸à¸²
-บุà¸-หลง
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²
-à¹à¸‚่งขัน
-à¹à¸‚็งขัน
-à¹à¸‚้งขวา
-à¹à¸‚้ง
-à¹à¸‚่ง
-à¹à¸‚็ง
-ข้างออà¸
-ข้างà¹à¸£à¸¡
-ข้างเงิน
-ข้างควาย
-ข้างขึ้น
-ข้างà¸à¸£à¸°à¸”าน
-ข้างๆ คูๆ
-ข้างๆ
-ข้าง
-ข่าง
-ขาง
-à¸à¸£à¸²à¸š
-à¸à¸
-vice-versa
-vice-president
-vice versa
-McArthur
-Mc Mahon
-Mc Arthur
-Copenhegen
-coop
-COOP
-co-op
-CO-OP
-Canon
-C.A.F
-air@@@
-air
-aide
-Aalborg
-aah
-AAF
-AAES
-Aachen
-AAAA
-AAA
-aa
-AA
-a'
-A.Agr
-A.Ae.E.
-A.A.E.E.
-A.A.E.
-A.A.A.S.
-A.A.A.L.
-A.A.A.
-a.a.
-A.A.
-a.
-A.
-A-1
-a-
-A-
-a
-A
-9999
-๑๠ลิตร {10 litre}
-๑๠ลิตร [10 litre]
-๑๠ลิตร (10 litre)
-10 ลิตร (10 litre)
-๑๠ลิตร
-10 ลิตร
-10 litre (๑๠ลิตร)
-10 litre (10 ลิตร)
-10 litre
-0000
-@@@air
-@@@@@
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
--a
-#
-# Ascending sort, using index
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a, id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index
-SELECT a FROM t1 ORDER BY a, id;
-a
--a
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
-@@@@@
-@@@air
-0000
-10 litre
-10 litre (10 ลิตร)
-10 litre (๑๠ลิตร)
-10 ลิตร
-๑๠ลิตร
-10 ลิตร (10 litre)
-๑๠ลิตร (10 litre)
-๑๠ลิตร [10 litre]
-๑๠ลิตร {10 litre}
-9999
-A
-a
-A-
-a-
-A-1
-A.
-a.
-A.A.
-a.a.
-A.A.A.
-A.A.A.L.
-A.A.A.S.
-A.A.E.
-A.A.E.E.
-A.Ae.E.
-A.Agr
-a'
-AA
-aa
-AAA
-AAAA
-Aachen
-AAES
-AAF
-aah
-Aalborg
-aide
-air
-air@@@
-C.A.F
-Canon
-CO-OP
-co-op
-COOP
-coop
-Copenhegen
-Mc Arthur
-Mc Mahon
-McArthur
-vice versa
-vice-president
-vice-versa
-à¸à¸
-à¸à¸£à¸²à¸š
-ขาง
-ข่าง
-ข้าง
-ข้างๆ
-ข้างๆ คูๆ
-ข้างà¸à¸£à¸°à¸”าน
-ข้างขึ้น
-ข้างควาย
-ข้างเงิน
-ข้างà¹à¸£à¸¡
-ข้างออà¸
-à¹à¸‚็ง
-à¹à¸‚่ง
-à¹à¸‚้ง
-à¹à¸‚้งขวา
-à¹à¸‚็งขัน
-à¹à¸‚่งขัน
-ทูลเà¸à¸¥à¹‰à¸²
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-บุà¸-หลง
-บุà¸à¸à¸²
-บุà¸à¸«à¸¥à¸‡
-ปา
-ป่า
-ป้า
-ป๊า
-ป๋า
-ปาน
-ป่าน
-ป้าน
-ป๊าน
-ป๋าน
-à¹à¸›à¹‰à¸‡
-พณิชย์
-ม้า
-ฯพณฯ
-#
-# Descending sort, using index
-#
-EXPLAIN SELECT a FROM t1 ORDER BY a DESC, id DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index
-SELECT a FROM t1 ORDER BY a DESC, id DESC;
-a
-ฯพณฯ
-ม้า
-พณิชย์
-à¹à¸›à¹‰à¸‡
-ป๋าน
-ป๊าน
-ป้าน
-ป่าน
-ปาน
-ป๋า
-ป๊า
-ป้า
-ป่า
-ปา
-บุà¸à¸«à¸¥à¸‡
-บุà¸à¸à¸²
-บุà¸-หลง
-ทูลเà¸à¸¥à¹‰à¸²à¸¯
-ทูลเà¸à¸¥à¹‰à¸²à¸—ูลà¸à¸£à¸°à¸«à¸¡à¹ˆà¸­à¸¡
-ทูลเà¸à¸¥à¹‰à¸²
-à¹à¸‚่งขัน
-à¹à¸‚็งขัน
-à¹à¸‚้งขวา
-à¹à¸‚้ง
-à¹à¸‚่ง
-à¹à¸‚็ง
-ข้างออà¸
-ข้างà¹à¸£à¸¡
-ข้างเงิน
-ข้างควาย
-ข้างขึ้น
-ข้างà¸à¸£à¸°à¸”าน
-ข้างๆ คูๆ
-ข้างๆ
-ข้าง
-ข่าง
-ขาง
-à¸à¸£à¸²à¸š
-à¸à¸
-vice-versa
-vice-president
-vice versa
-McArthur
-Mc Mahon
-Mc Arthur
-Copenhegen
-coop
-COOP
-co-op
-CO-OP
-Canon
-C.A.F
-air@@@
-air
-aide
-Aalborg
-aah
-AAF
-AAES
-Aachen
-AAAA
-AAA
-aa
-AA
-a'
-A.Agr
-A.Ae.E.
-A.A.E.E.
-A.A.E.
-A.A.A.S.
-A.A.A.L.
-A.A.A.
-a.a.
-A.A.
-a.
-A.
-A-1
-a-
-A-
-a
-A
-9999
-๑๠ลิตร {10 litre}
-๑๠ลิตร [10 litre]
-๑๠ลิตร (10 litre)
-10 ลิตร (10 litre)
-๑๠ลิตร
-10 ลิตร
-10 litre (๑๠ลิตร)
-10 litre (10 ลิตร)
-10 litre
-0000
-@@@air
-@@@@@
--à¸à¸£à¸°à¹à¸¢à¹ˆà¸‡
--a
-DROP TABLE t1;
-#
-# End of ctype_thai.inc
-#
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9711 NO PAD Collatons
-#
-SET NAMES utf8mb4;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8mb4_unicode_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8mb4_unicode_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8mb4_unicode_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_unicode_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8mb4_unicode_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0E33020002000200020002000200020002000200
-0E33020902090200020002000200020002000200
-02090E3302000200020002000200020002000200
-02090E3302090200020002000200020002000200
-0E33020902090209020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8mb4_unicode_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8mb4_unicode_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8mb4_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8mb4_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8mb4_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8mb4_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8mb4_unicode_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8mb4_unicode_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8mb4_unicode_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8mb4_unicode_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_unicode_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8mb4_unicode_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8mb4_unicode_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8mb4_unicode_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8mb4_unicode_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_unicode_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8mb4_unicode_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-0E33020002000200020002000200020002000200
-0E33020902090200020002000200020002000200
-02090E3302000200020002000200020002000200
-02090E3302090200020002000200020002000200
-0E33020902090209020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8mb4_unicode_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8mb4_unicode_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8mb4_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8mb4_unicode_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8mb4_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8mb4_unicode_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8mb4_unicode_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8mb4_unicode_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8mb4_unicode_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8mb4_unicode_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_unicode_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8mb4_unicode_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET STORAGE_ENGINE=MyISAM;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8mb4_unicode_520_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8mb4_unicode_520_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8mb4_unicode_520_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_unicode_520_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8mb4_unicode_520_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-120F020002000200020002000200020002000200
-120F020A020A0200020002000200020002000200
-020A120F02000200020002000200020002000200
-020A120F020A0200020002000200020002000200
-120F020A020A020A020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8mb4_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8mb4_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8mb4_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8mb4_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8mb4_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8mb4_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8mb4_unicode_520_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8mb4_unicode_520_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8mb4_unicode_520_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8mb4_unicode_520_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_unicode_520_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_520_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8mb4_unicode_520_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_520_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=HEAP;
-#
-# Start of ctype_pad.inc
-#
-#
-# Unique indexes
-#
-CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) COLLATE 'utf8mb4_unicode_520_nopad_ci';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) COLLATE utf8mb4_unicode_520_nopad_ci NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_nopad_ci
-INSERT INTO t1 VALUES ('abc'),('abc '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM t1 ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a;
-HEX(a) a
-2061 a
-206120 a
-61202020 a
-616263 abc
-6162632020 abc
-SELECT HEX(a), a FROM t1 IGNORE INDEX(PRIMARY) ORDER BY a DESC;
-HEX(a) a
-6162632020 abc
-616263 abc
-61202020 a
-206120 a
-2061 a
-#
-# UNION
-#
-CREATE TABLE t2 (a VARCHAR(10)) COLLATE 'utf8mb4_unicode_520_nopad_ci';
-INSERT INTO t2 VALUES ('abc '),('abc '),(' a'),('a ');
-SELECT HEX(a),a FROM (SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-6120 a
-61202020 a
-616263 abc
-61626320 abc
-6162632020 abc
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# DISTINCT, COUNT, MAX
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_unicode_520_nopad_ci';
-INSERT INTO t1 VALUES ('a'),('a '),(' a'),(' a '),('a ');
-SELECT HEX(a), a FROM (SELECT DISTINCT a FROM t1 ORDER BY a) td;
-HEX(a) a
-2061 a
-206120 a
-61 a
-612020 a
-61202020 a
-SELECT COUNT(DISTINCT a) FROM t1 ORDER BY a;
-COUNT(DISTINCT a)
-5
-SELECT HEX(MAX(a)), MAX(a) FROM t1;
-HEX(MAX(a)) MAX(a)
-61202020 a
-#
-# GROUP BY
-#
-CREATE TABLE t2 (a VARCHAR(10), b int, c varchar(10)) COLLATE 'utf8mb4_unicode_520_nopad_ci';
-INSERT t2 values('ab', 12, 'cd'), ('ab', 2, 'ed'), ('aa', 20, 'er'), ('aa ', 0, 'er ');
-SELECT HEX(a), cnt FROM (SELECT a, COUNT(a) AS cnt FROM t2 GROUP BY a ORDER BY a) AS td;
-HEX(a) cnt
-6161 1
-61612020 1
-6162 2
-DROP TABLE t2;
-#
-# Weights
-#
-SELECT HEX(WEIGHT_STRING(a AS CHAR(10))) FROM t1;
-HEX(WEIGHT_STRING(a AS CHAR(10)))
-120F020002000200020002000200020002000200
-120F020A020A0200020002000200020002000200
-020A120F02000200020002000200020002000200
-020A120F020A0200020002000200020002000200
-120F020A020A020A020002000200020002000200
-DROP TABLE t1;
-#
-# IF, CASE, LEAST
-#
-SELECT IF('abc' COLLATE 'utf8mb4_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad');
-IF('abc' COLLATE 'utf8mb4_unicode_520_nopad_ci' = 'abc ', 'pad', 'nopad')
-nopad
-SELECT CASE 'abc' COLLATE 'utf8mb4_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE 'abc' COLLATE 'utf8mb4_unicode_520_nopad_ci' WHEN 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT CASE WHEN 'abc' COLLATE 'utf8mb4_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END;
-CASE WHEN 'abc' COLLATE 'utf8mb4_unicode_520_nopad_ci' = 'abc ' THEN 'pad' ELSE 'nopad' END
-nopad
-SELECT HEX(LEAST('abc ' COLLATE 'utf8mb4_unicode_520_nopad_ci', 'abc '));
-HEX(LEAST('abc ' COLLATE 'utf8mb4_unicode_520_nopad_ci', 'abc '))
-61626320
-SELECT HEX(GREATEST('abc ' COLLATE 'utf8mb4_unicode_520_nopad_ci', 'abc '));
-HEX(GREATEST('abc ' COLLATE 'utf8mb4_unicode_520_nopad_ci', 'abc '))
-6162632020
-#
-# Collation mix
-#
-CREATE TABLE t1 (a VARCHAR(10)) COLLATE 'utf8mb4_unicode_520_ci';
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_520_nopad_ci';
-COUNT(*)
-1
-ALTER TABLE t1 MODIFY a VARCHAR(10) COLLATE 'utf8mb4_unicode_520_nopad_ci';
-SELECT COUNT(*) FROM t1 WHERE a='a';
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_520_ci';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 WHERE a='a' COLLATE 'utf8mb4_unicode_520_nopad_ci';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# End of ctype_pad.inc
-#
-SET STORAGE_ENGINE=Default;
-SET NAMES utf8mb4 COLLATE utf8mb4_unicode_520_nopad_ci;
-#
-# MDEV-14350 Index use with collation utf8mb4_unicode_nopad_ci on LIKE pattern with wrong results
-#
-CREATE OR REPLACE TABLE t1 AS SELECT SPACE(50) AS a, SPACE (50) AS b;
-ALTER TABLE t1 ADD KEY(a), ADD KEY(b);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_nopad_ci DEFAULT NULL,
- `b` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_nopad_ci DEFAULT NULL,
- KEY `a` (`a`),
- KEY `b` (`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('111', '111');
-INSERT INTO t1 VALUES ('222', '222');
-INSERT INTO t1 VALUES ('333', '333');
-INSERT INTO t1 VALUES ('444', '444');
-SELECT * FROM t1 WHERE a LIKE '111%';
-a b
-111 111
-SELECT * FROM t1 IGNORE INDEX (a) WHERE a LIKE '111%';
-a b
-111 111
-DROP TABLE t1;
-SET NAMES utf8mb4;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/custom_aggregate_functions.result b/mysql-test/r/custom_aggregate_functions.result
deleted file mode 100644
index 67be44c43f7..00000000000
--- a/mysql-test/r/custom_aggregate_functions.result
+++ /dev/null
@@ -1,949 +0,0 @@
-create table t2 (sal int(10));
-create aggregate function f1(x INT) returns int
-begin
-declare continue handler for not found return 0;
-loop
-fetch group next row;
-insert into t2 (sal) values (x);
-end loop;
-end|
-create table t1 (sal int(10),id int(10));
-INSERT INTO t1 (sal,id) VALUES (5000,1);
-INSERT INTO t1 (sal,id) VALUES (2000,1);
-INSERT INTO t1 (sal,id) VALUES (1000,1);
-select f1(sal) from t1 where id>= 1;
-f1(sal)
-0
-Warnings:
-Note 4094 At line 5 in test.f1
-Note 4094 At line 5 in test.f1
-Note 4094 At line 5 in test.f1
-select * from t2;
-sal
-5000
-2000
-1000
-drop table t2;
-drop function f1;
-create aggregate function f1(x INT) returns INT
-begin
-insert into t1(sal) values (x);
-return x;
-end|
-ERROR HY000: Aggregate specific instruction(FETCH GROUP NEXT ROW) missing from the aggregate function
-create function f1(x INT) returns INT
-begin
-set x=5;
-fetch group next row;
-return x+1;
-end |
-ERROR HY000: Non-aggregate function contains aggregate specific instructions: (FETCH GROUP NEXT ROW)
-create aggregate function f1(x INT) returns INT
-begin
-declare continue handler for not found return x;
-loop
-fetch group next row;
-end loop;
-end |
-select f1(1);
-f1(1)
-1
-show create function f1;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-f1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` AGGREGATE FUNCTION `f1`(x INT) RETURNS int(11)
-begin
-declare continue handler for not found return x;
-loop
-fetch group next row;
-end loop;
-end latin1 latin1_swedish_ci latin1_swedish_ci
-alter function f1 aggregate none;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'aggregate none' at line 1
-show create function f1;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-f1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` AGGREGATE FUNCTION `f1`(x INT) RETURNS int(11)
-begin
-declare continue handler for not found return x;
-loop
-fetch group next row;
-end loop;
-end latin1 latin1_swedish_ci latin1_swedish_ci
-select f1(1);
-f1(1)
-1
-drop function f1;
-create aggregate function f2(i int) returns int
-begin
-FEtCH GROUP NEXT ROW;
-if i <= 0 then
-return 0;
-elseif i = 1 then
-return (select count(*) from t1 where id = i);
-else
-return (select count(*) + f2( i - 1) from t1 where id = i);
-end if;
-end|
-select f2(1)|
-f2(1)
-3
-select f2(2)|
-ERROR HY000: Recursive stored functions and triggers are not allowed
-select f2(3)|
-ERROR HY000: Recursive stored functions and triggers are not allowed
-drop function f2|
-create aggregate function f1(x int) returns int
-begin
-declare mini int default 0;
-declare continue handler for not found return mini;
-loop
-fetch group next row;
-set mini= mini+x;
-fetch group next row;
-end loop;
-end|
-select f1(10);
-f1(10)
-10
-select f1(sal) from t1;
-f1(sal)
-6000
-select f1(sal) from t1 where 1=0;
-f1(sal)
-NULL
-drop function f1;
-create aggregate function f1(x int) returns int
-begin
-declare mini int default 0;
-LOOP
-FETCH GROUP NEXT ROW;
-set mini = mini + x;
-END LOOP;
-end|
-ERROR 42000: No RETURN found in FUNCTION test.f1
-create aggregate function f1(x int) returns int
-begin
-declare mini int default 0;
-LOOP
-FETCH GROUP NEXT ROW;
-set mini = mini + x;
-END LOOP;
-return -1;
-end|
-select f1(sal) from t1|
-ERROR 02000: No data - zero rows fetched, selected, or processed
-drop function f1|
-create aggregate function f1(x int) returns int
-begin
-declare mini int default 0;
-declare continue handler for not found return mini;
-FETCH GROUP NEXT ROW;
-set mini = mini + x;
-end|
-select f1(sal) from t1|
-ERROR 2F005: FUNCTION f1 ended without RETURN
-drop function f1|
-create aggregate function f1(x int) returns int
-begin
-declare mini int default 0;
-declare continue handler for not found set mini=-1;
-LOOP
-FETCH GROUP NEXT ROW;
-set mini = mini + x;
-END LOOP;
-return 0;
-end|
-select f1(sal) from t1|
-ERROR 2F005: FUNCTION f1 ended without RETURN
-drop function f1|
-drop table t1|
-create table t1 (sal int, id int, val int, counter int, primary key(id));
-INSERT INTO t1 (sal, id, val, counter) VALUES (1000, 1, 10, 2);
-INSERT INTO t1 (sal, id, val, counter) VALUES (2000, 2, 16, 2);
-INSERT INTO t1 (sal, id, val, counter) VALUES (6000, 3, 18, 1);
-INSERT INTO t1 (sal, id, val, counter) VALUES (5000, 4, 15, 3);
-INSERT INTO t1 (sal, id, val, counter) VALUES (3000, 5, 11, 5);
-create aggregate function f1(x INT) returns double
-begin
-declare z double default 0;
-declare continue handler for not found return z;
-loop
-fetch group next row;
-set z= z+x;
-end loop;
-end|
-select id, f1(sal) from t1 where id>= 1 group by counter order by val;
-id f1(sal)
-1 3000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1;
-id f1(sal)
-1 17000
-select id, f1(sal) from t1 where id>= 1;
-id f1(sal)
-1 17000
-select id, f1(sal) from t1 where id>= 1 group by counter;
-id f1(sal)
-1 3000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by id;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by val;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by counter order by counter;
-id f1(sal)
-1 3000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by counter order by val;
-id f1(sal)
-1 3000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by counter order by id;
-id f1(sal)
-1 3000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by val order by counter;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by val order by id;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by val order by val;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-drop table t1;
-create table t1 (sal int, id int, val int, counter int, primary key(id), unique key(val));
-INSERT INTO t1 (sal, id, val, counter) VALUES (1000, 1, 10, 2);
-INSERT INTO t1 (sal, id, val, counter) VALUES (2000, 2, NULL, 2);
-INSERT INTO t1 (sal, id, val, counter) VALUES (6000, 3, 18, 1);
-INSERT INTO t1 (sal, id, val, counter) VALUES (5000, 4, 15, 3);
-INSERT INTO t1 (sal, id, val, counter) VALUES (3000, 5, 11, 5);
-select id, f1(sal) from t1;
-id f1(sal)
-1 17000
-select id, f1(sal) from t1 where id>= 1;
-id f1(sal)
-1 17000
-select id, f1(sal) from t1 where id>= 1 group by counter;
-id f1(sal)
-1 3000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by id;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by val;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by counter order by counter;
-id f1(sal)
-1 3000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by counter order by val;
-id f1(sal)
-1 3000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by counter order by id;
-id f1(sal)
-1 3000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by val order by counter;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by val order by id;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by val order by val;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-drop table t1;
-create table t1 (sal int, id int, val int, counter int, primary key(id), INDEX name (val,counter));
-INSERT INTO t1 (sal, id, val, counter) VALUES (1000, 1, 10, 2);
-INSERT INTO t1 (sal, id, val, counter) VALUES (2000, 2, 10, 4);
-INSERT INTO t1 (sal, id, val, counter) VALUES (6000, 3, 18, 1);
-INSERT INTO t1 (sal, id, val, counter) VALUES (5000, 4, 11, 3);
-INSERT INTO t1 (sal, id, val, counter) VALUES (3000, 5, 11, 5);
-select id, f1(sal) from t1;
-id f1(sal)
-1 17000
-select id, f1(sal) from t1 where id>= 1;
-id f1(sal)
-1 17000
-select id, f1(sal) from t1 where id>= 1 group by counter;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by id;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by val;
-id f1(sal)
-1 3000
-3 6000
-4 8000
-select id, f1(sal) from t1 where id>= 1 group by counter order by counter;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by counter order by val;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by counter order by id;
-id f1(sal)
-1 1000
-2 2000
-3 6000
-4 5000
-5 3000
-select id, f1(sal) from t1 where id>= 1 group by val order by counter;
-id f1(sal)
-1 3000
-3 6000
-4 8000
-select id, f1(sal) from t1 where id>= 1 group by val order by id;
-id f1(sal)
-1 3000
-3 6000
-4 8000
-select id, f1(sal) from t1 where id>= 1 group by val order by val;
-id f1(sal)
-1 3000
-3 6000
-4 8000
-drop table t1;
-drop function f1;
-create aggregate function f1(x INT) returns double
-begin
-declare z double default 0;
-declare continue handler for not found return z;
-loop
-fetch group next row;
-set z= z+x;
-end loop;
-end|
-create aggregate function f2() returns double
-begin
-declare z int default 0;
-declare continue handler for not found return z;
-loop
-fetch group next row;
-set z = z+1;
-end loop;
-end|
-create table t1 (sal int, id int, val int, counter int);
-INSERT INTO t1 (sal, id, val, counter) VALUES (1000, 2, 10, 2);
-INSERT INTO t1 (sal, id, val, counter) VALUES (2000, 1, 16, 5);
-INSERT INTO t1 (sal, id, val, counter) VALUES (6000, 2, 18, 1);
-INSERT INTO t1 (sal, id, val, counter) VALUES (5000, 3, 15, 3);
-INSERT INTO t1 (sal, id, val, counter) VALUES (3000, 4, 11, 4);
-prepare test from "select f2() from t1 where id>= ?";
-set @param= 2;
-execute test using @param;
-f2()
-4
-execute test using @param;
-f2()
-4
-execute test using @param;
-f2()
-4
-execute test using @param;
-f2()
-4
-set @param= 1;
-execute test using @param;
-f2()
-5
-set @param= 3;
-execute test using @param;
-f2()
-2
-set @param= 4;
-execute test using @param;
-f2()
-1
-deallocate prepare test;
-prepare test from "select f1(sal) from t1 where id>= ?";
-set @param= 2;
-execute test using @param;
-f1(sal)
-15000
-execute test using @param;
-f1(sal)
-15000
-execute test using @param;
-f1(sal)
-15000
-execute test using @param;
-f1(sal)
-15000
-set @param= 1;
-execute test using @param;
-f1(sal)
-17000
-set @param= 3;
-execute test using @param;
-f1(sal)
-8000
-set @param= 4;
-execute test using @param;
-f1(sal)
-3000
-set @param= 5;
-execute test using @param;
-f1(sal)
-NULL
-deallocate prepare test;
-drop function f2;
-prepare test from "select f1(sal) from t1 where id>= ?";
-set @param= 2;
-execute test using @param;
-f1(sal)
-15000
-drop function f1;
-create function f1(x int) returns int
-return -1;
-execute test using @param;
-f1(sal)
--1
--1
--1
--1
-drop function f1;
-create aggregate function f1(x INT) returns double
-begin
-declare z double default 0;
-declare continue handler for not found return z;
-loop
-fetch group next row;
-set z= z+x;
-end loop;
-end|
-execute test using @param;
-f1(sal)
-15000
-deallocate prepare test;
-drop table t1;
-drop function f1;
-create table t1 (sal int, id int, val varchar(10), counter int);
-INSERT INTO t1 (sal, id, val, counter) VALUES (1000, 2, 'ab', 2);
-INSERT INTO t1 (sal, id, val, counter) VALUES (1000, 1, 'cd', 5);
-INSERT INTO t1 (sal, id, val, counter) VALUES (1000, 2, 'ef', 1);
-INSERT INTO t1 (sal, id, val, counter) VALUES (1000, 3, 'gh', 3);
-INSERT INTO t1 (sal, id, val, counter) VALUES (1000, 4, 'ij', 4);
-create table t2 (sal int, id int, val int, counter int);
-INSERT INTO t2 (sal, id, val, counter) VALUES (1000, 2, 10, 2);
-INSERT INTO t2 (sal, id, val, counter) VALUES (2000, 1, 16, 5);
-INSERT INTO t2 (sal, id, val, counter) VALUES (6000, 2, 18, 1);
-INSERT INTO t2 (sal, id, val, counter) VALUES (5000, 3, 15, 3);
-INSERT INTO t2 (sal, id, val, counter) VALUES (3000, 4, 11, 4);
-create aggregate function f1(x double) returns double
-begin
-declare z double default 0;
-declare continue handler for not found return z;
-loop
-fetch group next row;
-set z= z+x;
-end loop;
-end|
-create aggregate function f2(x INT) returns CHAR(10)
-begin
-declare mini INT default 0;
-declare continue handler for not found return mini;
-loop
-fetch group next row;
-set mini= mini + x;
-end loop;
-end|
-create aggregate function f3(x INT) returns CHAR(10)
-begin
-declare mini INT default 0;
-declare continue handler for not found return mini;
-loop
-fetch group next row;
-set mini= mini + x;
-fetch group next row;
-set mini= mini - x;
-end loop;
-end|
-create aggregate function f4(x INT, y varchar(10)) returns varchar(1000)
-begin
-declare str varchar(1000) default '';
-declare continue handler for not found return str;
-loop
-fetch group next row;
-set str= concat(str,y);
-end loop;
-end|
-create aggregate function f5(x INT) returns varchar(1000)
-begin
-declare z int default 0;
-DECLARE cur1 CURSOR FOR SELECT sal FROM test.t2;
-declare continue handler for not found return 0;
-loop
-fetch group next row;
-set z = z+x;
-end loop;
-end|
-create function f6(x int) returns int
-return (select f1(sal) from t1)|
-select f1(sal) from t1;
-f1(sal)
-5000
-select f1(sal) from t1 where id>= 1 group by counter;
-f1(sal)
-1000
-1000
-1000
-1000
-1000
-select f3(sal) from t1;
-f3(sal)
-1000
-select f2(val) from t1;
-ERROR 22007: Incorrect integer value: 'ab' for column 'x' at row 1
-select val, id, c from (select f1(sal) as c from t2) as t1, t2;
-val id c
-10 2 17000
-11 4 17000
-15 3 17000
-16 1 17000
-18 2 17000
-select f1(sal),f1(val), f1(id), f1(sal) from t2;
-f1(sal) f1(val) f1(id) f1(sal)
-17000 70 12 17000
-select f4(sal, val) from t1;
-f4(sal, val)
-abcdefghij
-select c from (select f1(sal) as c from t2) as t1;
-c
-17000
-select f1((select val from t2 where 0 > 1)) from t1;
-f1((select val from t2 where 0 > 1))
-NULL
-select f1((select val from t2 where id= 1)) from t1;
-f1((select val from t2 where id= 1))
-80
-select f5(sal) from t1;
-f5(sal)
-0
-SELECT f1(sal)*f1(sal) FROM t1;
-f1(sal)*f1(sal)
-25000000
-SELECT (SELECT f1(sal) FROM t1) FROM t2;
-(SELECT f1(sal) FROM t1)
-5000
-5000
-5000
-5000
-5000
-select id, f1(sal) from t1;
-id f1(sal)
-2 5000
-select id, f1(sal) from t1 where id>= 1;
-id f1(sal)
-2 5000
-select f1(sal), f1(sal) from t1 where id>= 1 group by counter;
-f1(sal) f1(sal)
-1000 1000
-1000 1000
-1000 1000
-1000 1000
-1000 1000
-select f1(sal), f1(sal) from t1 where id>= 1 group by id ;
-f1(sal) f1(sal)
-1000 1000
-1000 1000
-1000 1000
-2000 2000
-select f1(sal) from t1 where id>= 1 group by id ;
-f1(sal)
-1000
-1000
-1000
-2000
-select f1(sal) from t1 where id>= 1 order by counter;
-f1(sal)
-5000
-select f1(sal) from t1 where id>= 1 group by id order by counter;
-f1(sal)
-2000
-1000
-1000
-1000
-select counter, id, f1(sal) from t1 where id>= 1 group by id order by counter;
-counter id f1(sal)
-2 2 2000
-3 3 1000
-4 4 1000
-5 1 1000
-select id, f1(sal) from t1 where id>= 1 group by id order by counter;
-id f1(sal)
-2 2000
-3 1000
-4 1000
-1 1000
-drop table t1;
-drop table t2;
-drop function f1;
-drop function f2;
-drop function f3;
-drop function f4;
-drop function f5;
-drop function f6;
-create aggregate function f1(x INT) returns INT
-begin
-declare z double default 1000;
-declare continue handler for not found return z;
-loop
-fetch group next row;
-set z= (z&x);
-end loop;
-end|
-create table t1 (sal int, id int, val int, counter int);
-INSERT INTO t1 (sal, id, val, counter) VALUES (1000, 2, 10, 2);
-INSERT INTO t1 (sal, id, val, counter) VALUES (7000, 1, 16, 5);
-INSERT INTO t1 (sal, id, val, counter) VALUES (6000, 2, 18, 1);
-INSERT INTO t1 (sal, id, val, counter) VALUES (5000, 3, 15, 3);
-INSERT INTO t1 (sal, id, val, counter) VALUES (3000, 4, 11, 4);
-INSERT INTO t1 (sal, id, val, counter) VALUES (2000, 5, 10, 7);
-INSERT INTO t1 (sal, id, val, counter) VALUES (5000, 7, 13, 8);
-INSERT INTO t1 (sal, id, val, counter) VALUES (6000, 6, 19, 9);
-INSERT INTO t1 (sal, id, val, counter) VALUES (7000, 7, 12, 0);
-INSERT INTO t1 (sal, id, val, counter) VALUES (4000, 6, 14, 1);
-INSERT INTO t1 (sal, id, val, counter) VALUES (8000, 5, 19, 3);
-INSERT INTO t1 (sal, id, val, counter) VALUES (9000, 4, 11, 4);
-INSERT INTO t1 (sal, id, val, counter) VALUES (1000, 3, 11, 2);
-select f1(sal) from t1 where id>= 1;
-f1(sal)
-768
-drop function f1;
-create aggregate function f1(x INT) returns double
-begin
-declare z double default 0;
-declare count double default 0;
-declare continue handler for not found return z/count;
-loop
-fetch group next row;
-set z= z+x;
-set count= count+1;
-end loop;
-end|
-select f1(sal) from t1 where id>= 1;
-f1(sal)
-4923.076923076923
-drop function f1;
-create aggregate function f1(x INT) returns INT
-begin
-declare maxi INT default -1;
-declare continue handler for not found return maxi;
-loop
-fetch group next row;
-if maxi < x then
-set maxi= x;
-end if;
-end loop;
-end|
-select f1(sal) from t1 where id>= 1;
-f1(sal)
-9000
-drop function f1;
-create aggregate function f1(x INT) returns double
-begin
-declare mini INT default 100000;
-declare continue handler for not found return mini;
-loop
-fetch group next row;
-if mini > x then
-set mini = x;
-end if;
-end loop;
-end|
-select f1(sal) from t1 where id>= 1;
-f1(sal)
-1000
-drop function f1;
-create aggregate function f1(x INT) returns double
-begin
-declare z double default 0;
-declare continue handler for not found return z;
-loop
-fetch group next row;
-set z= z^x;
-end loop;
-end|
-select f1(sal) from t1 where id>= 1;
-f1(sal)
-16288
-drop function f1;
-create aggregate function f1(x INT) returns INT
-begin
-declare z int default 0;
-declare continue handler for not found return z;
-loop
-fetch group next row;
-set z= z+x;
-end loop;
-end|
-select f1(sal) from t1 where id>= 1;
-f1(sal)
-64000
-create aggregate function f2() returns INT
-begin
-declare z double default 0;
-declare continue handler for not found return z;
-loop
-fetch group next row;
-set z= z+1;
-end loop;
-end|
-select f2() from t1;
-f2()
-13
-create table t2 (sal int, id int);
-INSERT INTO t2 (sal, id) VALUES (NULL, 1);
-INSERT INTO t2 (sal, id) VALUES (2000, 1);
-INSERT INTO t2 (sal, id) VALUES (3000, 1);
-select f1(sal) from t2;
-f1(sal)
-NULL
-select f1(1);
-f1(1)
-1
-create function f3() returns int
-return (select f1(sal) from t1);
-select f3();
-f3()
-64000
-create function f4() returns INT
-return 1;
-create aggregate function f5() returns INT
-begin
-declare z double default 0;
-declare continue handler for not found return z;
-loop
-fetch group next row;
-set z= z+f3();
-end loop;
-end|
-select f5() from t2;
-f5()
-192000
-Warnings:
-Note 4094 At line 6 in test.f5
-Note 4094 At line 6 in test.f5
-Note 4094 At line 6 in test.f5
-create aggregate function f6(x INT) returns INT
-begin
-declare z int default 0;
-declare continue handler for not found return z;
-loop
-fetch group next row;
-if x then
-set z= z+(select f1(sal) from t1);
-end if;
-end loop;
-end|
-select f6(sal) from t2;
-f6(sal)
-128000
-Warnings:
-Note 4094 At line 6 in test.f6
-Note 4094 At line 6 in test.f6
-select id, f1(sal) from t1 where id>= 1 group by id;
-id f1(sal)
-1 7000
-2 7000
-3 6000
-4 12000
-5 10000
-6 10000
-7 12000
-select counter, f1(sal) from t1 where id>= 1 group by counter;
-counter f1(sal)
-0 7000
-1 10000
-2 2000
-3 13000
-4 12000
-5 7000
-7 2000
-8 5000
-9 6000
-select val, f1(sal) from t1 where id>= 1 group by val;
-val f1(sal)
-10 3000
-11 13000
-12 7000
-13 5000
-14 4000
-15 5000
-16 7000
-18 6000
-19 14000
-select counter, f1(sal) from t1 where id>= 1 group by id order by counter;
-counter f1(sal)
-0 12000
-2 6000
-2 7000
-4 12000
-5 7000
-7 10000
-9 10000
-select counter, id, f1(sal), f1(sal) from t1 where id>= 1 group by id order by counter;
-counter id f1(sal) f1(sal)
-0 7 12000 12000
-2 2 7000 7000
-2 3 6000 6000
-4 4 12000 12000
-5 1 7000 7000
-7 5 10000 10000
-9 6 10000 10000
-select counter, id, f1(sal), sum(distinct sal) from t1 where id>= 1 group by id order by counter desc;
-counter id f1(sal) sum(distinct sal)
-0 7 12000 12000
-2 2 7000 7000
-2 3 6000 6000
-4 4 12000 12000
-5 1 7000 7000
-7 5 10000 10000
-9 6 10000 10000
-create table t3 (i int);
-INSERT INTO t3 (i) select f1(sal) from t1;
-select * from t3;
-i
-64000
-create aggregate function f7(x INT) returns INT
-begin
-declare z int default 0;
-DECLARE done BOOLEAN DEFAULT FALSE;
-DECLARE a,b,c INT;
-DECLARE cur1 CURSOR FOR SELECT id FROM test.t2;
-declare continue handler for not found return z;
-outer_loop: LOOP
-FETCH GROUP NEXT ROW;
-set z= z+x;
-inner_block: begin
-DECLARE cur2 CURSOR FOR SELECT id FROM test.t2;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
-OPEN cur2;
-read_loop: LOOP
-FETCH cur2 INTO a;
-IF done THEN
-CLOSE cur2;
-LEAVE read_loop;
-END IF;
-END LOOP read_loop;
-end inner_block;
-END LOOP outer_loop;
-end|
-select f7(sal) from t1;
-f7(sal)
-64000
-Warnings:
-Note 4094 At line 9 in test.f7
-Note 4094 At line 9 in test.f7
-Note 4094 At line 9 in test.f7
-Note 4094 At line 9 in test.f7
-Note 4094 At line 9 in test.f7
-Note 4094 At line 9 in test.f7
-Note 4094 At line 9 in test.f7
-Note 4094 At line 9 in test.f7
-Note 4094 At line 9 in test.f7
-Note 4094 At line 9 in test.f7
-Note 4094 At line 9 in test.f7
-Note 4094 At line 9 in test.f7
-Note 4094 At line 9 in test.f7
-drop table t1;
-drop table t2;
-drop table t3;
-drop function f1;
-drop function f2;
-drop function f3;
-drop function f4;
-drop function f5;
-drop function f6;
-drop function f7;
-create aggregate function f1(x date) returns date
-begin
-declare continue handler for not found return x;
-loop
-fetch group next row;
-end loop;
-end|
-select f1('2001-01-01'),cast(f1('2001-01-01') as time);
-f1('2001-01-01') cast(f1('2001-01-01') as time)
-2001-01-01 00:00:00
-drop function f1;
diff --git a/mysql-test/r/date_formats.result b/mysql-test/r/date_formats.result
deleted file mode 100644
index 16dbdf7969c..00000000000
--- a/mysql-test/r/date_formats.result
+++ /dev/null
@@ -1,575 +0,0 @@
-drop table if exists t1;
-SELECT variable_name, variable_value
-FROM information_schema.global_variables
-WHERE variable_name IN ('date_format', 'datetime_format', 'time_format')
-ORDER BY variable_name;
-variable_name variable_value
-DATETIME_FORMAT %Y-%m-%d %H:%i:%s
-DATE_FORMAT %d.%m.%Y
-TIME_FORMAT %H.%i.%s
-SELECT variable_name, variable_value
-FROM information_schema.session_variables
-WHERE variable_name IN ('date_format', 'datetime_format', 'time_format')
-ORDER BY variable_name;
-variable_name variable_value
-DATETIME_FORMAT %Y-%m-%d %H:%i:%s
-DATE_FORMAT %d.%m.%Y
-TIME_FORMAT %H.%i.%s
-select str_to_date(concat('15-01-2001',' 2:59:58.999'),
-concat('%d-%m-%Y',' ','%H:%i:%s.%f'));
-str_to_date(concat('15-01-2001',' 2:59:58.999'),
-concat('%d-%m-%Y',' ','%H:%i:%s.%f'))
-2001-01-15 02:59:58.999000
-select STR_TO_DATE('2004.12.12 22.30.61','%Y.%m.%d %T');
-STR_TO_DATE('2004.12.12 22.30.61','%Y.%m.%d %T')
-NULL
-Warnings:
-Warning 1411 Incorrect time value: '22.30.61' for function str_to_date
-create table t1 (date char(30), format char(30) not null);
-insert into t1 values
-('2003-01-02 10:11:12', '%Y-%m-%d %H:%i:%S'),
-('03-01-02 8:11:2.123456', '%y-%m-%d %H:%i:%S.%#'),
-('0003-01-02 8:11:2.123456', '%Y-%m-%d %H:%i:%S.%#'),
-('03-01-02 8:11:2.123456', '%Y-%m-%d %H:%i:%S.%#'),
-('2003-01-02 10:11:12 PM', '%Y-%m-%d %h:%i:%S %p'),
-('2003-01-02 01:11:12.12345AM', '%Y-%m-%d %h:%i:%S.%f%p'),
-('2003-01-02 02:11:12.12345AM', '%Y-%m-%d %h:%i:%S.%f %p'),
-('2003-01-02 12:11:12.12345 am', '%Y-%m-%d %h:%i:%S.%f%p'),
-('2003-01-02 11:11:12Pm', '%Y-%m-%d %h:%i:%S%p'),
-('10:20:10', '%H:%i:%s'),
-('10:20:10', '%h:%i:%s.%f'),
-('10:20:10', '%T'),
-('10:20:10AM', '%h:%i:%s%p'),
-('10:20:10AM', '%r'),
-('10:20:10.44AM', '%h:%i:%s.%f%p'),
-('15-01-2001 12:59:58', '%d-%m-%Y %H:%i:%S'),
-('15 September 2001', '%d %M %Y'),
-('15 SEPTEMB 2001', '%d %M %Y'),
-('15 MAY 2001', '%d %b %Y'),
-('15th May 2001', '%D %b %Y'),
-('Sunday 15 MAY 2001', '%W %d %b %Y'),
-('Sund 15 MAY 2001', '%W %d %b %Y'),
-('Tuesday 00 2002', '%W %U %Y'),
-('Thursday 53 1998', '%W %u %Y'),
-('Sunday 01 2001', '%W %v %x'),
-('Tuesday 52 2001', '%W %V %X'),
-('060 2004', '%j %Y'),
-('4 53 1998', '%w %u %Y'),
-('15-01-2001', '%d-%m-%Y %H:%i:%S'),
-('15-01-20', '%d-%m-%y'),
-('15-2001-1', '%d-%Y-%c');
-select date,format,str_to_date(date, format) as str_to_date from t1;
-date format str_to_date
-2003-01-02 10:11:12 %Y-%m-%d %H:%i:%S 2003-01-02 10:11:12.000000
-03-01-02 8:11:2.123456 %y-%m-%d %H:%i:%S.%# 2003-01-02 08:11:02.000000
-0003-01-02 8:11:2.123456 %Y-%m-%d %H:%i:%S.%# 0003-01-02 08:11:02.000000
-03-01-02 8:11:2.123456 %Y-%m-%d %H:%i:%S.%# 2003-01-02 08:11:02.000000
-2003-01-02 10:11:12 PM %Y-%m-%d %h:%i:%S %p 2003-01-02 22:11:12.000000
-2003-01-02 01:11:12.12345AM %Y-%m-%d %h:%i:%S.%f%p 2003-01-02 01:11:12.123450
-2003-01-02 02:11:12.12345AM %Y-%m-%d %h:%i:%S.%f %p 2003-01-02 02:11:12.123450
-2003-01-02 12:11:12.12345 am %Y-%m-%d %h:%i:%S.%f%p 2003-01-02 00:11:12.123450
-2003-01-02 11:11:12Pm %Y-%m-%d %h:%i:%S%p 2003-01-02 23:11:12.000000
-10:20:10 %H:%i:%s 0000-00-00 10:20:10.000000
-10:20:10 %h:%i:%s.%f 0000-00-00 10:20:10.000000
-10:20:10 %T 0000-00-00 10:20:10.000000
-10:20:10AM %h:%i:%s%p 0000-00-00 10:20:10.000000
-10:20:10AM %r 0000-00-00 10:20:10.000000
-10:20:10.44AM %h:%i:%s.%f%p 0000-00-00 10:20:10.440000
-15-01-2001 12:59:58 %d-%m-%Y %H:%i:%S 2001-01-15 12:59:58.000000
-15 September 2001 %d %M %Y 2001-09-15 00:00:00.000000
-15 SEPTEMB 2001 %d %M %Y 2001-09-15 00:00:00.000000
-15 MAY 2001 %d %b %Y 2001-05-15 00:00:00.000000
-15th May 2001 %D %b %Y 2001-05-15 00:00:00.000000
-Sunday 15 MAY 2001 %W %d %b %Y 2001-05-15 00:00:00.000000
-Sund 15 MAY 2001 %W %d %b %Y 2001-05-15 00:00:00.000000
-Tuesday 00 2002 %W %U %Y 2002-01-01 00:00:00.000000
-Thursday 53 1998 %W %u %Y 1998-12-31 00:00:00.000000
-Sunday 01 2001 %W %v %x 2001-01-07 00:00:00.000000
-Tuesday 52 2001 %W %V %X 2002-01-01 00:00:00.000000
-060 2004 %j %Y 2004-02-29 00:00:00.000000
-4 53 1998 %w %u %Y 1998-12-31 00:00:00.000000
-15-01-2001 %d-%m-%Y %H:%i:%S 2001-01-15 00:00:00.000000
-15-01-20 %d-%m-%y 2020-01-15 00:00:00.000000
-15-2001-1 %d-%Y-%c 2001-01-15 00:00:00.000000
-select date,format,concat('',str_to_date(date, format)) as con from t1;
-date format con
-2003-01-02 10:11:12 %Y-%m-%d %H:%i:%S 2003-01-02 10:11:12.000000
-03-01-02 8:11:2.123456 %y-%m-%d %H:%i:%S.%# 2003-01-02 08:11:02.000000
-0003-01-02 8:11:2.123456 %Y-%m-%d %H:%i:%S.%# 0003-01-02 08:11:02.000000
-03-01-02 8:11:2.123456 %Y-%m-%d %H:%i:%S.%# 2003-01-02 08:11:02.000000
-2003-01-02 10:11:12 PM %Y-%m-%d %h:%i:%S %p 2003-01-02 22:11:12.000000
-2003-01-02 01:11:12.12345AM %Y-%m-%d %h:%i:%S.%f%p 2003-01-02 01:11:12.123450
-2003-01-02 02:11:12.12345AM %Y-%m-%d %h:%i:%S.%f %p 2003-01-02 02:11:12.123450
-2003-01-02 12:11:12.12345 am %Y-%m-%d %h:%i:%S.%f%p 2003-01-02 00:11:12.123450
-2003-01-02 11:11:12Pm %Y-%m-%d %h:%i:%S%p 2003-01-02 23:11:12.000000
-10:20:10 %H:%i:%s 0000-00-00 10:20:10.000000
-10:20:10 %h:%i:%s.%f 0000-00-00 10:20:10.000000
-10:20:10 %T 0000-00-00 10:20:10.000000
-10:20:10AM %h:%i:%s%p 0000-00-00 10:20:10.000000
-10:20:10AM %r 0000-00-00 10:20:10.000000
-10:20:10.44AM %h:%i:%s.%f%p 0000-00-00 10:20:10.440000
-15-01-2001 12:59:58 %d-%m-%Y %H:%i:%S 2001-01-15 12:59:58.000000
-15 September 2001 %d %M %Y 2001-09-15 00:00:00.000000
-15 SEPTEMB 2001 %d %M %Y 2001-09-15 00:00:00.000000
-15 MAY 2001 %d %b %Y 2001-05-15 00:00:00.000000
-15th May 2001 %D %b %Y 2001-05-15 00:00:00.000000
-Sunday 15 MAY 2001 %W %d %b %Y 2001-05-15 00:00:00.000000
-Sund 15 MAY 2001 %W %d %b %Y 2001-05-15 00:00:00.000000
-Tuesday 00 2002 %W %U %Y 2002-01-01 00:00:00.000000
-Thursday 53 1998 %W %u %Y 1998-12-31 00:00:00.000000
-Sunday 01 2001 %W %v %x 2001-01-07 00:00:00.000000
-Tuesday 52 2001 %W %V %X 2002-01-01 00:00:00.000000
-060 2004 %j %Y 2004-02-29 00:00:00.000000
-4 53 1998 %w %u %Y 1998-12-31 00:00:00.000000
-15-01-2001 %d-%m-%Y %H:%i:%S 2001-01-15 00:00:00.000000
-15-01-20 %d-%m-%y 2020-01-15 00:00:00.000000
-15-2001-1 %d-%Y-%c 2001-01-15 00:00:00.000000
-select date,format,cast(str_to_date(date, format) as datetime) as datetime from t1;
-date format datetime
-2003-01-02 10:11:12 %Y-%m-%d %H:%i:%S 2003-01-02 10:11:12
-03-01-02 8:11:2.123456 %y-%m-%d %H:%i:%S.%# 2003-01-02 08:11:02
-0003-01-02 8:11:2.123456 %Y-%m-%d %H:%i:%S.%# 0003-01-02 08:11:02
-03-01-02 8:11:2.123456 %Y-%m-%d %H:%i:%S.%# 2003-01-02 08:11:02
-2003-01-02 10:11:12 PM %Y-%m-%d %h:%i:%S %p 2003-01-02 22:11:12
-2003-01-02 01:11:12.12345AM %Y-%m-%d %h:%i:%S.%f%p 2003-01-02 01:11:12
-2003-01-02 02:11:12.12345AM %Y-%m-%d %h:%i:%S.%f %p 2003-01-02 02:11:12
-2003-01-02 12:11:12.12345 am %Y-%m-%d %h:%i:%S.%f%p 2003-01-02 00:11:12
-2003-01-02 11:11:12Pm %Y-%m-%d %h:%i:%S%p 2003-01-02 23:11:12
-10:20:10 %H:%i:%s 0000-00-00 10:20:10
-10:20:10 %h:%i:%s.%f 0000-00-00 10:20:10
-10:20:10 %T 0000-00-00 10:20:10
-10:20:10AM %h:%i:%s%p 0000-00-00 10:20:10
-10:20:10AM %r 0000-00-00 10:20:10
-10:20:10.44AM %h:%i:%s.%f%p 0000-00-00 10:20:10
-15-01-2001 12:59:58 %d-%m-%Y %H:%i:%S 2001-01-15 12:59:58
-15 September 2001 %d %M %Y 2001-09-15 00:00:00
-15 SEPTEMB 2001 %d %M %Y 2001-09-15 00:00:00
-15 MAY 2001 %d %b %Y 2001-05-15 00:00:00
-15th May 2001 %D %b %Y 2001-05-15 00:00:00
-Sunday 15 MAY 2001 %W %d %b %Y 2001-05-15 00:00:00
-Sund 15 MAY 2001 %W %d %b %Y 2001-05-15 00:00:00
-Tuesday 00 2002 %W %U %Y 2002-01-01 00:00:00
-Thursday 53 1998 %W %u %Y 1998-12-31 00:00:00
-Sunday 01 2001 %W %v %x 2001-01-07 00:00:00
-Tuesday 52 2001 %W %V %X 2002-01-01 00:00:00
-060 2004 %j %Y 2004-02-29 00:00:00
-4 53 1998 %w %u %Y 1998-12-31 00:00:00
-15-01-2001 %d-%m-%Y %H:%i:%S 2001-01-15 00:00:00
-15-01-20 %d-%m-%y 2020-01-15 00:00:00
-15-2001-1 %d-%Y-%c 2001-01-15 00:00:00
-select date,format,DATE(str_to_date(date, format)) as date2 from t1;
-date format date2
-2003-01-02 10:11:12 %Y-%m-%d %H:%i:%S 2003-01-02
-03-01-02 8:11:2.123456 %y-%m-%d %H:%i:%S.%# 2003-01-02
-0003-01-02 8:11:2.123456 %Y-%m-%d %H:%i:%S.%# 0003-01-02
-03-01-02 8:11:2.123456 %Y-%m-%d %H:%i:%S.%# 2003-01-02
-2003-01-02 10:11:12 PM %Y-%m-%d %h:%i:%S %p 2003-01-02
-2003-01-02 01:11:12.12345AM %Y-%m-%d %h:%i:%S.%f%p 2003-01-02
-2003-01-02 02:11:12.12345AM %Y-%m-%d %h:%i:%S.%f %p 2003-01-02
-2003-01-02 12:11:12.12345 am %Y-%m-%d %h:%i:%S.%f%p 2003-01-02
-2003-01-02 11:11:12Pm %Y-%m-%d %h:%i:%S%p 2003-01-02
-10:20:10 %H:%i:%s 0000-00-00
-10:20:10 %h:%i:%s.%f 0000-00-00
-10:20:10 %T 0000-00-00
-10:20:10AM %h:%i:%s%p 0000-00-00
-10:20:10AM %r 0000-00-00
-10:20:10.44AM %h:%i:%s.%f%p 0000-00-00
-15-01-2001 12:59:58 %d-%m-%Y %H:%i:%S 2001-01-15
-15 September 2001 %d %M %Y 2001-09-15
-15 SEPTEMB 2001 %d %M %Y 2001-09-15
-15 MAY 2001 %d %b %Y 2001-05-15
-15th May 2001 %D %b %Y 2001-05-15
-Sunday 15 MAY 2001 %W %d %b %Y 2001-05-15
-Sund 15 MAY 2001 %W %d %b %Y 2001-05-15
-Tuesday 00 2002 %W %U %Y 2002-01-01
-Thursday 53 1998 %W %u %Y 1998-12-31
-Sunday 01 2001 %W %v %x 2001-01-07
-Tuesday 52 2001 %W %V %X 2002-01-01
-060 2004 %j %Y 2004-02-29
-4 53 1998 %w %u %Y 1998-12-31
-15-01-2001 %d-%m-%Y %H:%i:%S 2001-01-15
-15-01-20 %d-%m-%y 2020-01-15
-15-2001-1 %d-%Y-%c 2001-01-15
-select date,format,TIME(str_to_date(date, format)) as time from t1;
-date format time
-2003-01-02 10:11:12 %Y-%m-%d %H:%i:%S 10:11:12.000000
-03-01-02 8:11:2.123456 %y-%m-%d %H:%i:%S.%# 08:11:02.000000
-0003-01-02 8:11:2.123456 %Y-%m-%d %H:%i:%S.%# 08:11:02.000000
-03-01-02 8:11:2.123456 %Y-%m-%d %H:%i:%S.%# 08:11:02.000000
-2003-01-02 10:11:12 PM %Y-%m-%d %h:%i:%S %p 22:11:12.000000
-2003-01-02 01:11:12.12345AM %Y-%m-%d %h:%i:%S.%f%p 01:11:12.123450
-2003-01-02 02:11:12.12345AM %Y-%m-%d %h:%i:%S.%f %p 02:11:12.123450
-2003-01-02 12:11:12.12345 am %Y-%m-%d %h:%i:%S.%f%p 00:11:12.123450
-2003-01-02 11:11:12Pm %Y-%m-%d %h:%i:%S%p 23:11:12.000000
-10:20:10 %H:%i:%s 10:20:10.000000
-10:20:10 %h:%i:%s.%f 10:20:10.000000
-10:20:10 %T 10:20:10.000000
-10:20:10AM %h:%i:%s%p 10:20:10.000000
-10:20:10AM %r 10:20:10.000000
-10:20:10.44AM %h:%i:%s.%f%p 10:20:10.440000
-15-01-2001 12:59:58 %d-%m-%Y %H:%i:%S 12:59:58.000000
-15 September 2001 %d %M %Y 00:00:00.000000
-15 SEPTEMB 2001 %d %M %Y 00:00:00.000000
-15 MAY 2001 %d %b %Y 00:00:00.000000
-15th May 2001 %D %b %Y 00:00:00.000000
-Sunday 15 MAY 2001 %W %d %b %Y 00:00:00.000000
-Sund 15 MAY 2001 %W %d %b %Y 00:00:00.000000
-Tuesday 00 2002 %W %U %Y 00:00:00.000000
-Thursday 53 1998 %W %u %Y 00:00:00.000000
-Sunday 01 2001 %W %v %x 00:00:00.000000
-Tuesday 52 2001 %W %V %X 00:00:00.000000
-060 2004 %j %Y 00:00:00.000000
-4 53 1998 %w %u %Y 00:00:00.000000
-15-01-2001 %d-%m-%Y %H:%i:%S 00:00:00.000000
-15-01-20 %d-%m-%y 00:00:00.000000
-15-2001-1 %d-%Y-%c 00:00:00.000000
-select date,format,concat(TIME(str_to_date(date, format))) as time2 from t1;
-date format time2
-2003-01-02 10:11:12 %Y-%m-%d %H:%i:%S 10:11:12.000000
-03-01-02 8:11:2.123456 %y-%m-%d %H:%i:%S.%# 08:11:02.000000
-0003-01-02 8:11:2.123456 %Y-%m-%d %H:%i:%S.%# 08:11:02.000000
-03-01-02 8:11:2.123456 %Y-%m-%d %H:%i:%S.%# 08:11:02.000000
-2003-01-02 10:11:12 PM %Y-%m-%d %h:%i:%S %p 22:11:12.000000
-2003-01-02 01:11:12.12345AM %Y-%m-%d %h:%i:%S.%f%p 01:11:12.123450
-2003-01-02 02:11:12.12345AM %Y-%m-%d %h:%i:%S.%f %p 02:11:12.123450
-2003-01-02 12:11:12.12345 am %Y-%m-%d %h:%i:%S.%f%p 00:11:12.123450
-2003-01-02 11:11:12Pm %Y-%m-%d %h:%i:%S%p 23:11:12.000000
-10:20:10 %H:%i:%s 10:20:10.000000
-10:20:10 %h:%i:%s.%f 10:20:10.000000
-10:20:10 %T 10:20:10.000000
-10:20:10AM %h:%i:%s%p 10:20:10.000000
-10:20:10AM %r 10:20:10.000000
-10:20:10.44AM %h:%i:%s.%f%p 10:20:10.440000
-15-01-2001 12:59:58 %d-%m-%Y %H:%i:%S 12:59:58.000000
-15 September 2001 %d %M %Y 00:00:00.000000
-15 SEPTEMB 2001 %d %M %Y 00:00:00.000000
-15 MAY 2001 %d %b %Y 00:00:00.000000
-15th May 2001 %D %b %Y 00:00:00.000000
-Sunday 15 MAY 2001 %W %d %b %Y 00:00:00.000000
-Sund 15 MAY 2001 %W %d %b %Y 00:00:00.000000
-Tuesday 00 2002 %W %U %Y 00:00:00.000000
-Thursday 53 1998 %W %u %Y 00:00:00.000000
-Sunday 01 2001 %W %v %x 00:00:00.000000
-Tuesday 52 2001 %W %V %X 00:00:00.000000
-060 2004 %j %Y 00:00:00.000000
-4 53 1998 %w %u %Y 00:00:00.000000
-15-01-2001 %d-%m-%Y %H:%i:%S 00:00:00.000000
-15-01-20 %d-%m-%y 00:00:00.000000
-15-2001-1 %d-%Y-%c 00:00:00.000000
-select concat('',str_to_date('8:11:2.123456 03-01-02','%H:%i:%S.%f %y-%m-%d'));
-concat('',str_to_date('8:11:2.123456 03-01-02','%H:%i:%S.%f %y-%m-%d'))
-2003-01-02 08:11:02.123456
-truncate table t1;
-insert into t1 values
-('2003-01-02 10:11:12 PM', '%Y-%m-%d %H:%i:%S %p'),
-('2003-01-02 10:11:12.123456', '%Y-%m-%d %h:%i:%S %p'),
-('2003-01-02 10:11:12AM', '%Y-%m-%d %h:%i:%S.%f %p'),
-('2003-01-02 10:11:12AN', '%Y-%m-%d %h:%i:%S%p'),
-('2003-01-02 10:11:12 PM', '%y-%m-%d %H:%i:%S %p'),
-('10:20:10AM', '%H:%i:%s%p'),
-('15 Septembei 2001', '%d %M %Y'),
-('15 Ju 2001', '%d %M %Y'),
-('Sund 15 MA', '%W %d %b %Y'),
-('Thursdai 12 1998', '%W %u %Y'),
-('Sunday 01 2001', '%W %v %X'),
-('Tuesday 52 2001', '%W %V %x'),
-('Tuesday 52 2001', '%W %V %Y'),
-('Tuesday 52 2001', '%W %u %x'),
-('7 53 1998', '%w %u %Y'),
-(NULL, get_format(DATE,'USA'));
-select date,format,str_to_date(date, format) as str_to_date from t1;
-date format str_to_date
-2003-01-02 10:11:12 PM %Y-%m-%d %H:%i:%S %p NULL
-2003-01-02 10:11:12.123456 %Y-%m-%d %h:%i:%S %p NULL
-2003-01-02 10:11:12AM %Y-%m-%d %h:%i:%S.%f %p NULL
-2003-01-02 10:11:12AN %Y-%m-%d %h:%i:%S%p NULL
-2003-01-02 10:11:12 PM %y-%m-%d %H:%i:%S %p NULL
-10:20:10AM %H:%i:%s%p NULL
-15 Septembei 2001 %d %M %Y NULL
-15 Ju 2001 %d %M %Y NULL
-Sund 15 MA %W %d %b %Y NULL
-Thursdai 12 1998 %W %u %Y NULL
-Sunday 01 2001 %W %v %X NULL
-Tuesday 52 2001 %W %V %x NULL
-Tuesday 52 2001 %W %V %Y NULL
-Tuesday 52 2001 %W %u %x NULL
-7 53 1998 %w %u %Y NULL
-NULL %m.%d.%Y NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2003-01-02 10:11:12 PM' for function str_to_date
-Warning 1411 Incorrect datetime value: '2003-01-02 10:11:12.123456' for function str_to_date
-Warning 1411 Incorrect datetime value: '2003-01-02 10:11:12AM' for function str_to_date
-Warning 1411 Incorrect datetime value: '2003-01-02 10:11:12AN' for function str_to_date
-Warning 1411 Incorrect datetime value: '2003-01-02 10:11:12 PM' for function str_to_date
-Warning 1411 Incorrect datetime value: '10:20:10AM' for function str_to_date
-Warning 1411 Incorrect datetime value: '15 Septembei 2001' for function str_to_date
-Warning 1411 Incorrect datetime value: '15 Ju 2001' for function str_to_date
-Warning 1411 Incorrect datetime value: 'Sund 15 MA' for function str_to_date
-Warning 1411 Incorrect datetime value: 'Thursdai 12 1998' for function str_to_date
-Warning 1411 Incorrect datetime value: 'Sunday 01 2001' for function str_to_date
-Warning 1411 Incorrect datetime value: 'Tuesday 52 2001' for function str_to_date
-Warning 1411 Incorrect datetime value: 'Tuesday 52 2001' for function str_to_date
-Warning 1411 Incorrect datetime value: 'Tuesday 52 2001' for function str_to_date
-Warning 1411 Incorrect datetime value: '7 53 1998' for function str_to_date
-select date,format,concat(str_to_date(date, format),'') as con from t1;
-date format con
-2003-01-02 10:11:12 PM %Y-%m-%d %H:%i:%S %p NULL
-2003-01-02 10:11:12.123456 %Y-%m-%d %h:%i:%S %p NULL
-2003-01-02 10:11:12AM %Y-%m-%d %h:%i:%S.%f %p NULL
-2003-01-02 10:11:12AN %Y-%m-%d %h:%i:%S%p NULL
-2003-01-02 10:11:12 PM %y-%m-%d %H:%i:%S %p NULL
-10:20:10AM %H:%i:%s%p NULL
-15 Septembei 2001 %d %M %Y NULL
-15 Ju 2001 %d %M %Y NULL
-Sund 15 MA %W %d %b %Y NULL
-Thursdai 12 1998 %W %u %Y NULL
-Sunday 01 2001 %W %v %X NULL
-Tuesday 52 2001 %W %V %x NULL
-Tuesday 52 2001 %W %V %Y NULL
-Tuesday 52 2001 %W %u %x NULL
-7 53 1998 %w %u %Y NULL
-NULL %m.%d.%Y NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2003-01-02 10:11:12 PM' for function str_to_date
-Warning 1411 Incorrect datetime value: '2003-01-02 10:11:12.123456' for function str_to_date
-Warning 1411 Incorrect datetime value: '2003-01-02 10:11:12AM' for function str_to_date
-Warning 1411 Incorrect datetime value: '2003-01-02 10:11:12AN' for function str_to_date
-Warning 1411 Incorrect datetime value: '2003-01-02 10:11:12 PM' for function str_to_date
-Warning 1411 Incorrect datetime value: '10:20:10AM' for function str_to_date
-Warning 1411 Incorrect datetime value: '15 Septembei 2001' for function str_to_date
-Warning 1411 Incorrect datetime value: '15 Ju 2001' for function str_to_date
-Warning 1411 Incorrect datetime value: 'Sund 15 MA' for function str_to_date
-Warning 1411 Incorrect datetime value: 'Thursdai 12 1998' for function str_to_date
-Warning 1411 Incorrect datetime value: 'Sunday 01 2001' for function str_to_date
-Warning 1411 Incorrect datetime value: 'Tuesday 52 2001' for function str_to_date
-Warning 1411 Incorrect datetime value: 'Tuesday 52 2001' for function str_to_date
-Warning 1411 Incorrect datetime value: 'Tuesday 52 2001' for function str_to_date
-Warning 1411 Incorrect datetime value: '7 53 1998' for function str_to_date
-truncate table t1;
-insert into t1 values
-('10:20:10AM', '%h:%i:%s'),
-('2003-01-02 10:11:12', '%Y-%m-%d %h:%i:%S'),
-('03-01-02 10:11:12 PM', '%Y-%m-%d %h:%i:%S %p');
-select date,format,str_to_date(date, format) as str_to_date from t1;
-date format str_to_date
-10:20:10AM %h:%i:%s 0000-00-00 10:20:10.000000
-2003-01-02 10:11:12 %Y-%m-%d %h:%i:%S 2003-01-02 10:11:12.000000
-03-01-02 10:11:12 PM %Y-%m-%d %h:%i:%S %p 2003-01-02 22:11:12.000000
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '10:20:10AM'
-select date,format,concat(str_to_date(date, format),'') as con from t1;
-date format con
-10:20:10AM %h:%i:%s 0000-00-00 10:20:10.000000
-2003-01-02 10:11:12 %Y-%m-%d %h:%i:%S 2003-01-02 10:11:12.000000
-03-01-02 10:11:12 PM %Y-%m-%d %h:%i:%S %p 2003-01-02 22:11:12.000000
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '10:20:10AM'
-drop table t1;
-select get_format(DATE, 'USA') as a;
-a
-%m.%d.%Y
-select get_format(TIME, 'internal') as a;
-a
-%H%i%s
-select get_format(DATETIME, 'eur') as a;
-a
-%Y-%m-%d %H.%i.%s
-select get_format(TIMESTAMP, 'eur') as a;
-a
-%Y-%m-%d %H.%i.%s
-select get_format(DATE, 'TEST') as a;
-a
-NULL
-select str_to_date('15-01-2001 12:59:59', GET_FORMAT(DATE,'USA'));
-str_to_date('15-01-2001 12:59:59', GET_FORMAT(DATE,'USA'))
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '15-01-2001 12:59:59' for function str_to_date
-explain extended select makedate(1997,1), addtime("31.12.97 11.59.59.999999 PM", "1 1.1.1.000002"),subtime("31.12.97 11.59.59.999999 PM", "1 1.1.1.000002"),timediff("01.01.97 11:59:59.000001 PM","31.12.95 11:59:59.000002 PM"),cast(str_to_date("15-01-2001 12:59:59", "%d-%m-%Y %H:%i:%S") as TIME), maketime(23,11,12),microsecond("1997-12-31 23:59:59.000001");
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select makedate(1997,1) AS `makedate(1997,1)`,addtime('31.12.97 11.59.59.999999 PM','1 1.1.1.000002') AS `addtime("31.12.97 11.59.59.999999 PM", "1 1.1.1.000002")`,subtime('31.12.97 11.59.59.999999 PM','1 1.1.1.000002') AS `subtime("31.12.97 11.59.59.999999 PM", "1 1.1.1.000002")`,timediff('01.01.97 11:59:59.000001 PM','31.12.95 11:59:59.000002 PM') AS `timediff("01.01.97 11:59:59.000001 PM","31.12.95 11:59:59.000002 PM")`,cast(str_to_date('15-01-2001 12:59:59','%d-%m-%Y %H:%i:%S') as time) AS `cast(str_to_date("15-01-2001 12:59:59", "%d-%m-%Y %H:%i:%S") as TIME)`,maketime(23,11,12) AS `maketime(23,11,12)`,microsecond('1997-12-31 23:59:59.000001') AS `microsecond("1997-12-31 23:59:59.000001")`
-create table t1 (d date);
-insert into t1 values ('2004-07-14'),('2005-07-14');
-select date_format(d,"%d") from t1 order by 1;
-date_format(d,"%d")
-14
-14
-drop table t1;
-select str_to_date("2003-....01ABCD-02 10:11:12.0012", "%Y-%.%m%@-%d %H:%i:%S.%f") as a;
-a
-2003-01-02 10:11:12.001200
-create table t1 select str_to_date("2003-01-02 10:11:12.0012", "%Y-%m-%d %H:%i:%S.%f") as f1,
-str_to_date("10:11:12.0012", "%H:%i:%S.%f") as f2,
-str_to_date("2003-01-02", "%Y-%m-%d") as f3,
-str_to_date("02", "%d") as f4, str_to_date("02 10", "%d %H") as f5;
-describe t1;
-Field Type Null Key Default Extra
-f1 datetime(6) YES NULL
-f2 time(6) YES NULL
-f3 date YES NULL
-f4 date YES NULL
-f5 time YES NULL
-select * from t1;
-f1 f2 f3 f4 f5
-2003-01-02 10:11:12.001200 10:11:12.001200 2003-01-02 0000-00-02 58:00:00
-drop table t1;
-create table t1 select "02 10" as a, "%d %H" as b;
-select str_to_date(a,b) from t1;
-str_to_date(a,b)
-0000-00-02 10:00:00.000000
-create table t2 select str_to_date(a,b) from t1;
-describe t2;
-Field Type Null Key Default Extra
-str_to_date(a,b) datetime(6) YES NULL
-select str_to_date("2003-01-02 10:11:12.0012", "%Y-%m-%d %H:%i:%S.%f") as f1,
-str_to_date("2003-01-02 10:11:12.0012", "%Y-%m-%d %H:%i:%S") as f2,
-str_to_date("2003-01-02", "%Y-%m-%d") as f3,
-str_to_date("02 10:11:12", "%d %H:%i:%S.%f") as f4,
-str_to_date("02 10:11:12", "%d %H:%i:%S") as f5,
-str_to_date("02 10", "%d %f") as f6;
-f1 f2 f3 f4 f5 f6
-2003-01-02 10:11:12.001200 2003-01-02 10:11:12 2003-01-02 58:11:12.000000 58:11:12 48:00:00.100000
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2003-01-02 10:11:12.0012'
-drop table t1, t2;
-select str_to_date("2003-01-02 10:11:12.0012ABCD", "%Y-%m-%d %H:%i:%S.%f") as f1,
-addtime("-01:01:01.01 GGG", "-23:59:59.1") as f2,
-microsecond("1997-12-31 23:59:59.01XXXX") as f3;
-f1 f2 f3
-2003-01-02 10:11:12.001200 -25:01:00.110000 10000
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2003-01-02 10:11:12.0012ABCD'
-Warning 1292 Truncated incorrect time value: '-01:01:01.01 GGG'
-Warning 1292 Truncated incorrect time value: '1997-12-31 23:59:59.01XXXX'
-select str_to_date("2003-04-05 g", "%Y-%m-%d") as f1,
-str_to_date("2003-04-05 10:11:12.101010234567", "%Y-%m-%d %H:%i:%S.%f") as f2;
-f1 f2
-2003-04-05 2003-04-05 10:11:12.101010
-Warnings:
-Warning 1292 Truncated incorrect date value: '2003-04-05 g'
-Warning 1292 Truncated incorrect datetime value: '2003-04-05 10:11:12.101010234567'
-set names latin1;
-select date_format('2004-01-01','%W (%a), %e %M (%b) %Y');
-date_format('2004-01-01','%W (%a), %e %M (%b) %Y')
-Thursday (Thu), 1 January (Jan) 2004
-set lc_time_names=ru_RU;
-set names koi8r;
-select date_format('2004-01-01','%W (%a), %e %M (%b) %Y');
-date_format('2004-01-01','%W (%a), %e %M (%b) %Y')
-þÅÔ×ÅÒÇ (þÔ×), 1 ñÎ×ÁÒÑ (ñÎ×) 2004
-set lc_time_names=de_DE;
-set names latin1;
-select date_format('2004-01-01','%W (%a), %e %M (%b) %Y');
-date_format('2004-01-01','%W (%a), %e %M (%b) %Y')
-Donnerstag (Do), 1 Januar (Jan) 2004
-set names latin1;
-set lc_time_names=en_US;
-create table t1 (f1 datetime);
-insert into t1 (f1) values ("2005-01-01");
-insert into t1 (f1) values ("2005-02-01");
-select date_format(f1, "%m") as d1, date_format(f1, "%M") as d2 from t1 order by date_format(f1, "%M");
-d1 d2
-02 February
-01 January
-drop table t1;
-select str_to_date( 1, NULL );
-str_to_date( 1, NULL )
-NULL
-select str_to_date( NULL, 1 );
-str_to_date( NULL, 1 )
-NULL
-select str_to_date( 1, IF(1=1,NULL,NULL) );
-str_to_date( 1, IF(1=1,NULL,NULL) )
-NULL
-SELECT TIME_FORMAT("24:00:00", '%r');
-TIME_FORMAT("24:00:00", '%r')
-12:00:00 AM
-SELECT TIME_FORMAT("00:00:00", '%r');
-TIME_FORMAT("00:00:00", '%r')
-12:00:00 AM
-SELECT TIME_FORMAT("12:00:00", '%r');
-TIME_FORMAT("12:00:00", '%r')
-12:00:00 PM
-SELECT TIME_FORMAT("15:00:00", '%r');
-TIME_FORMAT("15:00:00", '%r')
-03:00:00 PM
-SELECT TIME_FORMAT("01:00:00", '%r');
-TIME_FORMAT("01:00:00", '%r')
-01:00:00 AM
-SELECT TIME_FORMAT("25:00:00", '%r');
-TIME_FORMAT("25:00:00", '%r')
-01:00:00 AM
-SELECT TIME_FORMAT("00:00:00", '%l %p');
-TIME_FORMAT("00:00:00", '%l %p')
-12 AM
-SELECT TIME_FORMAT("01:00:00", '%l %p');
-TIME_FORMAT("01:00:00", '%l %p')
-1 AM
-SELECT TIME_FORMAT("12:00:00", '%l %p');
-TIME_FORMAT("12:00:00", '%l %p')
-12 PM
-SELECT TIME_FORMAT("23:00:00", '%l %p');
-TIME_FORMAT("23:00:00", '%l %p')
-11 PM
-SELECT TIME_FORMAT("24:00:00", '%l %p');
-TIME_FORMAT("24:00:00", '%l %p')
-12 AM
-SELECT TIME_FORMAT("25:00:00", '%l %p');
-TIME_FORMAT("25:00:00", '%l %p')
-1 AM
-SELECT DATE_FORMAT('%Y-%m-%d %H:%i:%s', 1151414896);
-DATE_FORMAT('%Y-%m-%d %H:%i:%s', 1151414896)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '%Y-%m-%d %H:%i:%s'
-select str_to_date('04 /30/2004', '%m /%d/%Y');
-str_to_date('04 /30/2004', '%m /%d/%Y')
-2004-04-30
-select str_to_date('04/30 /2004', '%m /%d /%Y');
-str_to_date('04/30 /2004', '%m /%d /%Y')
-2004-04-30
-select str_to_date('04/30/2004 ', '%m/%d/%Y ');
-str_to_date('04/30/2004 ', '%m/%d/%Y ')
-2004-04-30
-"End of 4.1 tests"
-SELECT DATE_FORMAT("0000-01-01",'%W %d %M %Y') as valid_date;
-valid_date
-Sunday 01 January 0000
-SELECT DATE_FORMAT("0000-02-28",'%W %d %M %Y') as valid_date;
-valid_date
-Tuesday 28 February 0000
-SELECT DATE_FORMAT("2009-01-01",'%W %d %M %Y') as valid_date;
-valid_date
-Thursday 01 January 2009
-"End of 5.0 tests"
-#
-# Start of 5.1 tests
-#
-#
-# Bug#58005 utf8 + get_format causes failed assertion: !str || str != Ptr'
-#
-SET NAMES utf8;
-SELECT LEAST('%', GET_FORMAT(datetime, 'eur'), CAST(GET_FORMAT(datetime, 'eur') AS CHAR(65535)));
-LEAST('%', GET_FORMAT(datetime, 'eur'), CAST(GET_FORMAT(datetime, 'eur') AS CHAR(65535)))
-%
-SET NAMES latin1;
-#
-# End of 5.1 tests
-#
-select time_format('2001-01-01 02:02:02', '%d.%m.%Y');
-time_format('2001-01-01 02:02:02', '%d.%m.%Y')
-NULL
-select time_format('2001-01-01 02:02:02', '%d %T');
-time_format('2001-01-01 02:02:02', '%d %T')
-NULL
-select time_format('01 02:02:02', '%d %T');
-time_format('01 02:02:02', '%d %T')
-NULL
-select time_format('01 02:02:02', '%T');
-time_format('01 02:02:02', '%T')
-26:02:02
-select time_format('2001-01-01 02:02:02', '%T');
-time_format('2001-01-01 02:02:02', '%T')
-02:02:02
diff --git a/mysql-test/r/datetime_456.result b/mysql-test/r/datetime_456.result
deleted file mode 100644
index 44351a821bc..00000000000
--- a/mysql-test/r/datetime_456.result
+++ /dev/null
@@ -1,8 +0,0 @@
-create table t1 (d datetime);
-insert t1 values (addtime('9999-12-31 23:59:59', '00:00:01')),
-(from_days(3652499));
-select * from t1;
-d
-NULL
-0000-00-00 00:00:00
-drop table t1;
diff --git a/mysql-test/r/ddl_i18n_koi8r.result b/mysql-test/r/ddl_i18n_koi8r.result
deleted file mode 100644
index ba43c1c867f..00000000000
--- a/mysql-test/r/ddl_i18n_koi8r.result
+++ /dev/null
@@ -1,2834 +0,0 @@
-set sql_mode="";
-set names koi8r;
-
--------------------------------------------------------------------
-Views
--------------------------------------------------------------------
-
-DROP DATABASE IF EXISTS mysqltest1|
-CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-use mysqltest1|
-CREATE TABLE t1(ËÏÌ INT)|
-INSERT INTO t1 VALUES(1)|
-
-CREATE VIEW v1 AS
-SELECT 'ÔÅÓÔ' AS c1, ËÏÌ AS c2
-FROM t1|
-
-CREATE VIEW v2 AS SELECT _utf8'теÑÑ‚' as c1|
-
-CREATE VIEW v3 AS SELECT _utf8'теÑÑ‚'|
-
-
-
-SHOW CREATE VIEW v1|
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 'ÔÅÓÔ' AS `c1`,`t1`.`ËÏÌ` AS `c2` from `t1` koi8r koi8r_general_ci
-
-SHOW CREATE VIEW v2|
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select _utf8'теÑÑ‚' AS `c1` koi8r koi8r_general_ci
-
-SHOW CREATE VIEW v3|
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select _utf8'теÑÑ‚' AS `ÔÅÓÔ` koi8r koi8r_general_ci
-
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v1'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v1 select 'ÔÅÓÔ' AS `c1`,`mysqltest1`.`t1`.`ËÏÌ` AS `c2` from `mysqltest1`.`t1` NONE YES root@localhost DEFINER koi8r koi8r_general_ci UNDEFINED
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v2'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v2 select 'ÔÅÓÔ' AS `c1` NONE NO root@localhost DEFINER koi8r koi8r_general_ci UNDEFINED
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v3'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v3 select 'ÔÅÓÔ' AS `ÔÅÓÔ` NONE NO root@localhost DEFINER koi8r koi8r_general_ci UNDEFINED
-
-
-SELECT COLLATION(c1), COLLATION(c2) FROM v1|
-COLLATION(c1) COLLATION(c2)
-koi8r_general_ci binary
-
-SELECT COLLATION(c1) FROM v2|
-COLLATION(c1)
-utf8_general_ci
-
-SELECT * FROM v3|
-ÔÅÓÔ
-ÔÅÓÔ
-
-
-ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
-connect con2,localhost,root,,;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-SELECT * FROM mysqltest1.v1|
-SELECT * FROM mysqltest1.v2|
-SELECT * FROM mysqltest1.v3|
-use mysqltest1|
-set names koi8r|
-
-
-SHOW CREATE VIEW v1|
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 'ÔÅÓÔ' AS `c1`,`t1`.`ËÏÌ` AS `c2` from `t1` koi8r koi8r_general_ci
-
-SHOW CREATE VIEW v2|
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select _utf8'теÑÑ‚' AS `c1` koi8r koi8r_general_ci
-
-SHOW CREATE VIEW v3|
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select _utf8'теÑÑ‚' AS `ÔÅÓÔ` koi8r koi8r_general_ci
-
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v1'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v1 select 'ÔÅÓÔ' AS `c1`,`mysqltest1`.`t1`.`ËÏÌ` AS `c2` from `mysqltest1`.`t1` NONE YES root@localhost DEFINER koi8r koi8r_general_ci UNDEFINED
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v2'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v2 select 'ÔÅÓÔ' AS `c1` NONE NO root@localhost DEFINER koi8r koi8r_general_ci UNDEFINED
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v3'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v3 select 'ÔÅÓÔ' AS `ÔÅÓÔ` NONE NO root@localhost DEFINER koi8r koi8r_general_ci UNDEFINED
-
-
-SELECT COLLATION(c1), COLLATION(c2) FROM v1|
-COLLATION(c1) COLLATION(c2)
-koi8r_general_ci binary
-
-SELECT COLLATION(c1) FROM v2|
-COLLATION(c1)
-utf8_general_ci
-
-SELECT * FROM v3|
-ÔÅÓÔ
-ÔÅÓÔ
-
----> Dumping mysqltest1 to ddl_i18n_koi8r.views.mysqltest1.sql
-
-
-DROP DATABASE mysqltest1|
-
-
----> Restoring mysqltest1...
-connect con3,localhost,root,,;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-SELECT * FROM mysqltest1.v1|
-SELECT * FROM mysqltest1.v2|
-SELECT * FROM mysqltest1.v3|
-use mysqltest1|
-set names koi8r|
-
-
-SHOW CREATE VIEW v1|
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 'ÔÅÓÔ' AS `c1`,`t1`.`ËÏÌ` AS `c2` from `t1` koi8r koi8r_general_ci
-
-SHOW CREATE VIEW v2|
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select _utf8'теÑÑ‚' AS `c1` koi8r koi8r_general_ci
-
-SHOW CREATE VIEW v3|
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select _utf8'теÑÑ‚' AS `ÔÅÓÔ` koi8r koi8r_general_ci
-
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v1'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v1 select 'ÔÅÓÔ' AS `c1`,`mysqltest1`.`t1`.`ËÏÌ` AS `c2` from `mysqltest1`.`t1` NONE YES root@localhost DEFINER koi8r koi8r_general_ci UNDEFINED
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v2'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v2 select 'ÔÅÓÔ' AS `c1` NONE NO root@localhost DEFINER koi8r koi8r_general_ci UNDEFINED
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v3'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v3 select 'ÔÅÓÔ' AS `ÔÅÓÔ` NONE NO root@localhost DEFINER koi8r koi8r_general_ci UNDEFINED
-
-
-SELECT COLLATION(c1), COLLATION(c2) FROM v1|
-COLLATION(c1) COLLATION(c2)
-koi8r_general_ci binary
-
-SELECT COLLATION(c1) FROM v2|
-COLLATION(c1)
-utf8_general_ci
-
-SELECT * FROM v3|
-ÔÅÓÔ
-ÔÅÓÔ
-connection default;
-disconnect con2;
-disconnect con3;
-use test|
-DROP DATABASE mysqltest1|
-
--------------------------------------------------------------------
-Stored procedures/functions
--------------------------------------------------------------------
-
-DROP DATABASE IF EXISTS mysqltest1|
-DROP DATABASE IF EXISTS mysqltest2|
-CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-use mysqltest1|
-
-CREATE PROCEDURE p1(
-INOUT ÐÁÒÁÍ1 CHAR(10),
-OUT ÐÁÒÁÍ2 CHAR(10))
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END|
-
-CREATE PROCEDURE p2(
-INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,
-OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END|
-
-CREATE PROCEDURE mysqltest2.p3(
-INOUT ÐÁÒÁÍ1 CHAR(10),
-OUT ÐÁÒÁÍ2 CHAR(10))
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END|
-
-CREATE PROCEDURE mysqltest2.p4(
-INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,
-OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END|
-
-
-SHOW CREATE PROCEDURE p1|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p1 CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
-INOUT ÐÁÒÁÍ1 CHAR(10),
-OUT ÐÁÒÁÍ2 CHAR(10))
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE p2|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p2 CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
-INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,
-OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE mysqltest2.p3|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p3 CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
-INOUT ÐÁÒÁÍ1 CHAR(10),
-OUT ÐÁÒÁÍ2 CHAR(10))
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE mysqltest2.p4|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p4 CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
-INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,
-OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SHOW PROCEDURE STATUS LIKE 'p1'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest1 p1 PROCEDURE root@localhost MODIFIED CREATED DEFINER koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p2'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest1 p2 PROCEDURE root@localhost MODIFIED CREATED DEFINER koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p3'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest2 p3 PROCEDURE root@localhost MODIFIED CREATED DEFINER koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p4'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest2 p4 PROCEDURE root@localhost MODIFIED CREATED DEFINER koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p1'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p1 def mysqltest1 p1 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION( 'ÔÅËÓÔ') AS c5,
-COLLATION( 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p2'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p2 def mysqltest1 p2 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION( 'ÔÅËÓÔ') AS c5,
-COLLATION( 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p3'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p3 def mysqltest2 p3 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION( 'ÔÅËÓÔ') AS c5,
-COLLATION( 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p4'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p4 def mysqltest2 p4 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION( 'ÔÅËÓÔ') AS c5,
-COLLATION( 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SET @a = '1'|
-SET @b = '2'|
-
-
-CALL p1(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_unicode_ci utf8_unicode_ci
-
-CALL p2(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_general_ci utf8_general_ci
-
-CALL mysqltest2.p3(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_unicode_ci utf8_unicode_ci
-
-CALL mysqltest2.p4(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_general_ci utf8_general_ci
-
-
-ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
-ALTER DATABASE mysqltest2 COLLATE cp866_general_ci|
-connect con2,localhost,root,,mysqltest1;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-CALL p1(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-CALL p2(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-CALL mysqltest2.p3(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-CALL mysqltest2.p4(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-set names koi8r|
-
-
-SHOW CREATE PROCEDURE p1|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p1 CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
-INOUT ÐÁÒÁÍ1 CHAR(10),
-OUT ÐÁÒÁÍ2 CHAR(10))
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE p2|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p2 CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
-INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,
-OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE mysqltest2.p3|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p3 CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
-INOUT ÐÁÒÁÍ1 CHAR(10),
-OUT ÐÁÒÁÍ2 CHAR(10))
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE mysqltest2.p4|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p4 CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
-INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,
-OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SHOW PROCEDURE STATUS LIKE 'p1'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest1 p1 PROCEDURE root@localhost MODIFIED CREATED DEFINER koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p2'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest1 p2 PROCEDURE root@localhost MODIFIED CREATED DEFINER koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p3'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest2 p3 PROCEDURE root@localhost MODIFIED CREATED DEFINER koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p4'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest2 p4 PROCEDURE root@localhost MODIFIED CREATED DEFINER koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p1'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p1 def mysqltest1 p1 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION( 'ÔÅËÓÔ') AS c5,
-COLLATION( 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p2'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p2 def mysqltest1 p2 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION( 'ÔÅËÓÔ') AS c5,
-COLLATION( 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p3'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p3 def mysqltest2 p3 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION( 'ÔÅËÓÔ') AS c5,
-COLLATION( 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p4'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p4 def mysqltest2 p4 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION( 'ÔÅËÓÔ') AS c5,
-COLLATION( 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SET @a = '1'|
-SET @b = '2'|
-
-
-CALL p1(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_unicode_ci utf8_unicode_ci
-
-CALL p2(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_general_ci utf8_general_ci
-
-CALL mysqltest2.p3(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_unicode_ci utf8_unicode_ci
-
-CALL mysqltest2.p4(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_general_ci utf8_general_ci
-
----> Dump of mysqltest1
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest1` /*!40100 DEFAULT CHARACTER SET cp866 */;
-
-USE `mysqltest1`;
-ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = koi8r */ ;
-/*!50003 SET character_set_results = koi8r */ ;
-/*!50003 SET collation_connection = koi8r_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
-INOUT ÐÁÒÁÍ1 CHAR(10),
-OUT ÐÁÒÁÍ2 CHAR(10))
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest1` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = koi8r */ ;
-/*!50003 SET character_set_results = koi8r */ ;
-/*!50003 SET collation_connection = koi8r_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
-INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,
-OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest1` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-
----> Dumping mysqltest1 to ddl_i18n_koi8r.sp.mysqltest1.sql
-
----> Dump of mysqltest2
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest2` /*!40100 DEFAULT CHARACTER SET cp866 */;
-
-USE `mysqltest2`;
-ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = koi8r */ ;
-/*!50003 SET character_set_results = koi8r */ ;
-/*!50003 SET collation_connection = koi8r_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
-INOUT ÐÁÒÁÍ1 CHAR(10),
-OUT ÐÁÒÁÍ2 CHAR(10))
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest2` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = koi8r */ ;
-/*!50003 SET character_set_results = koi8r */ ;
-/*!50003 SET collation_connection = koi8r_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
-INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,
-OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest2` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-
----> Dumping mysqltest2 to ddl_i18n_koi8r.sp.mysqltest2.sql
-
-
-DROP DATABASE mysqltest1|
-DROP DATABASE mysqltest2|
-
-
----> Restoring mysqltest1...
----> Restoring mysqltest2...
-connect con3,localhost,root,,mysqltest1;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-CALL p1(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-CALL p2(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-CALL mysqltest2.p3(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-CALL mysqltest2.p4(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-set names koi8r|
-
-
-SHOW CREATE PROCEDURE p1|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p1 CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
-INOUT ÐÁÒÁÍ1 CHAR(10),
-OUT ÐÁÒÁÍ2 CHAR(10))
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE p2|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p2 CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
-INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,
-OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE mysqltest2.p3|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p3 CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
-INOUT ÐÁÒÁÍ1 CHAR(10),
-OUT ÐÁÒÁÍ2 CHAR(10))
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE mysqltest2.p4|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p4 CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
-INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,
-OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c5,
-COLLATION(_utf8 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SHOW PROCEDURE STATUS LIKE 'p1'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest1 p1 PROCEDURE root@localhost MODIFIED CREATED DEFINER koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p2'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest1 p2 PROCEDURE root@localhost MODIFIED CREATED DEFINER koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p3'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest2 p3 PROCEDURE root@localhost MODIFIED CREATED DEFINER koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p4'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest2 p4 PROCEDURE root@localhost MODIFIED CREATED DEFINER koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p1'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p1 def mysqltest1 p1 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION( 'ÔÅËÓÔ') AS c5,
-COLLATION( 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p2'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p2 def mysqltest1 p2 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION( 'ÔÅËÓÔ') AS c5,
-COLLATION( 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p3'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p3 def mysqltest2 p3 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION( 'ÔÅËÓÔ') AS c5,
-COLLATION( 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p4'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p4 def mysqltest2 p4 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION(ÐÁÒÁÍ1) AS c2,
-COLLATION(ÐÁÒÁÍ2) AS c3;
-SELECT
-COLLATION('ÔÅËÓÔ') AS c4,
-COLLATION( 'ÔÅËÓÔ') AS c5,
-COLLATION( 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET ÐÁÒÁÍ1 = 'a';
-SET ÐÁÒÁÍ2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SET @a = '1'|
-SET @b = '2'|
-
-
-CALL p1(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_unicode_ci utf8_unicode_ci
-
-CALL p2(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_general_ci utf8_general_ci
-
-CALL mysqltest2.p3(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_unicode_ci utf8_unicode_ci
-
-CALL mysqltest2.p4(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_general_ci utf8_general_ci
-connection default;
-disconnect con2;
-disconnect con3;
-use test|
-DROP DATABASE mysqltest1|
-DROP DATABASE mysqltest2|
-
--------------------------------------------------------------------
-Triggers
--------------------------------------------------------------------
-
-DROP DATABASE IF EXISTS mysqltest1|
-DROP DATABASE IF EXISTS mysqltest2|
-CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-use mysqltest1|
-CREATE TABLE t1(c INT)|
-CREATE TABLE mysqltest2.t1(c INT)|
-CREATE TABLE log(msg VARCHAR(255))|
-CREATE TABLE mysqltest2.log(msg VARCHAR(255))|
-
-CREATE TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = _koi8r 'ÔÅËÓÔ';
-SET @a2 = _utf8 'текÑÑ‚';
-END|
-
-CREATE TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = _koi8r 'ÔÅËÓÔ';
-SET @b2 = _utf8 'текÑÑ‚';
-END|
-
-CREATE TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = _koi8r 'ÔÅËÓÔ';
-SET @a2 = _utf8 'текÑÑ‚';
-END|
-
-CREATE TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = _koi8r 'ÔÅËÓÔ';
-SET @b2 = _utf8 'текÑÑ‚';
-END|
-
-
-
-SHOW CREATE TRIGGER trg1|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg1 CREATE DEFINER=`root`@`localhost` TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = _koi8r 'ÔÅËÓÔ';
-SET @a2 = _utf8 'текÑÑ‚';
-END koi8r koi8r_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER trg2|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg2 CREATE DEFINER=`root`@`localhost` TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = _koi8r 'ÔÅËÓÔ';
-SET @b2 = _utf8 'текÑÑ‚';
-END koi8r koi8r_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER mysqltest2.trg3|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg3 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = _koi8r 'ÔÅËÓÔ';
-SET @a2 = _utf8 'текÑÑ‚';
-END koi8r koi8r_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER mysqltest2.trg4|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg4 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = _koi8r 'ÔÅËÓÔ';
-SET @b2 = _utf8 'текÑÑ‚';
-END koi8r koi8r_general_ci utf8_unicode_ci #
-
-
-SHOW TRIGGERS|
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg1 INSERT t1 BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = 'ÔÅËÓÔ';
-SET @a2 = 'ÔÅËÓÔ';
-END BEFORE # root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-trg2 INSERT t1 BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = 'ÔÅËÓÔ';
-SET @b2 = 'ÔÅËÓÔ';
-END AFTER # root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-use mysqltest2|
-
-SHOW TRIGGERS|
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg3 INSERT t1 BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = 'ÔÅËÓÔ';
-SET @a2 = 'ÔÅËÓÔ';
-END BEFORE # root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-trg4 INSERT t1 BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = 'ÔÅËÓÔ';
-SET @b2 = 'ÔÅËÓÔ';
-END AFTER # root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-use mysqltest1|
-
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg1'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 trg1 INSERT def mysqltest1 t1 1 NULL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = 'ÔÅËÓÔ';
-SET @a2 = 'ÔÅËÓÔ';
-END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg2'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 trg2 INSERT def mysqltest1 t1 1 NULL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = 'ÔÅËÓÔ';
-SET @b2 = 'ÔÅËÓÔ';
-END ROW AFTER NULL NULL OLD NEW CREATED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg3'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 trg3 INSERT def mysqltest2 t1 1 NULL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = 'ÔÅËÓÔ';
-SET @a2 = 'ÔÅËÓÔ';
-END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg4'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 trg4 INSERT def mysqltest2 t1 1 NULL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = 'ÔÅËÓÔ';
-SET @b2 = 'ÔÅËÓÔ';
-END ROW AFTER NULL NULL OLD NEW CREATED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SET @a1 = '1'|
-SET @a2 = '1'|
-SET @a3 = '1'|
-SET @b1 = '2'|
-SET @b2 = '2'|
-SET @b3 = '2'|
-
-
-INSERT INTO t1 VALUES(1)|
-
----> Log:
-SELECT msg FROM log|
-msg
-koi8r
-koi8r
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_unicode_ci
-
-SELECT
-COLLATION(@a1) AS ca1,
-COLLATION(@a2) AS ca2,
-COLLATION(@a3) AS ca3,
-COLLATION(@b1) AS cb1,
-COLLATION(@b2) AS cb2,
-COLLATION(@b3) AS cb3|
-ca1 ca2 ca3 cb1 cb2 cb3
-koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci
-
-DELETE FROM log|
-
-
-INSERT INTO mysqltest2.t1 VALUES(1)|
-
----> Log:
-SELECT msg FROM mysqltest2.log|
-msg
-koi8r
-koi8r
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_unicode_ci
-
-SELECT
-COLLATION(@a1) AS ca1,
-COLLATION(@a2) AS ca2,
-COLLATION(@a3) AS ca3,
-COLLATION(@b1) AS cb1,
-COLLATION(@b2) AS cb2,
-COLLATION(@b3) AS cb3|
-ca1 ca2 ca3 cb1 cb2 cb3
-koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci
-
-DELETE FROM mysqltest2.log|
-
-
-ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
-ALTER DATABASE mysqltest2 COLLATE cp866_general_ci|
-ALTER TABLE t1 ADD COLUMN fake INT|
-ALTER TABLE t1 DROP COLUMN fake|
-ALTER TABLE mysqltest2.t1 ADD COLUMN fake INT|
-ALTER TABLE mysqltest2.t1 DROP COLUMN fake|
-connect con2,localhost,root,,;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-INSERT INTO mysqltest1.t1 VALUES(0)|
-INSERT INTO mysqltest2.t1 VALUES(0)|
-DELETE FROM mysqltest1.log|
-DELETE FROM mysqltest2.log|
-set names koi8r|
-use mysqltest1|
-
-
-SHOW CREATE TRIGGER trg1|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg1 CREATE DEFINER=`root`@`localhost` TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = _koi8r 'ÔÅËÓÔ';
-SET @a2 = _utf8 'текÑÑ‚';
-END koi8r koi8r_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER trg2|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg2 CREATE DEFINER=`root`@`localhost` TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = _koi8r 'ÔÅËÓÔ';
-SET @b2 = _utf8 'текÑÑ‚';
-END koi8r koi8r_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER mysqltest2.trg3|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg3 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = _koi8r 'ÔÅËÓÔ';
-SET @a2 = _utf8 'текÑÑ‚';
-END koi8r koi8r_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER mysqltest2.trg4|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg4 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = _koi8r 'ÔÅËÓÔ';
-SET @b2 = _utf8 'текÑÑ‚';
-END koi8r koi8r_general_ci utf8_unicode_ci #
-
-
-SHOW TRIGGERS|
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg1 INSERT t1 BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = 'ÔÅËÓÔ';
-SET @a2 = 'ÔÅËÓÔ';
-END BEFORE # root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-trg2 INSERT t1 BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = 'ÔÅËÓÔ';
-SET @b2 = 'ÔÅËÓÔ';
-END AFTER # root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-use mysqltest2|
-
-SHOW TRIGGERS|
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg3 INSERT t1 BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = 'ÔÅËÓÔ';
-SET @a2 = 'ÔÅËÓÔ';
-END BEFORE # root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-trg4 INSERT t1 BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = 'ÔÅËÓÔ';
-SET @b2 = 'ÔÅËÓÔ';
-END AFTER # root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-use mysqltest1|
-
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg1'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 trg1 INSERT def mysqltest1 t1 1 NULL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = 'ÔÅËÓÔ';
-SET @a2 = 'ÔÅËÓÔ';
-END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg2'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 trg2 INSERT def mysqltest1 t1 1 NULL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = 'ÔÅËÓÔ';
-SET @b2 = 'ÔÅËÓÔ';
-END ROW AFTER NULL NULL OLD NEW CREATED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg3'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 trg3 INSERT def mysqltest2 t1 1 NULL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = 'ÔÅËÓÔ';
-SET @a2 = 'ÔÅËÓÔ';
-END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg4'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 trg4 INSERT def mysqltest2 t1 1 NULL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = 'ÔÅËÓÔ';
-SET @b2 = 'ÔÅËÓÔ';
-END ROW AFTER NULL NULL OLD NEW CREATED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SET @a1 = '1'|
-SET @a2 = '1'|
-SET @a3 = '1'|
-SET @b1 = '2'|
-SET @b2 = '2'|
-SET @b3 = '2'|
-
-
-INSERT INTO t1 VALUES(1)|
-
----> Log:
-SELECT msg FROM log|
-msg
-koi8r
-koi8r
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_unicode_ci
-
-SELECT
-COLLATION(@a1) AS ca1,
-COLLATION(@a2) AS ca2,
-COLLATION(@a3) AS ca3,
-COLLATION(@b1) AS cb1,
-COLLATION(@b2) AS cb2,
-COLLATION(@b3) AS cb3|
-ca1 ca2 ca3 cb1 cb2 cb3
-koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci
-
-DELETE FROM log|
-
-
-INSERT INTO mysqltest2.t1 VALUES(1)|
-
----> Log:
-SELECT msg FROM mysqltest2.log|
-msg
-koi8r
-koi8r
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_unicode_ci
-
-SELECT
-COLLATION(@a1) AS ca1,
-COLLATION(@a2) AS ca2,
-COLLATION(@a3) AS ca3,
-COLLATION(@b1) AS cb1,
-COLLATION(@b2) AS cb2,
-COLLATION(@b3) AS cb3|
-ca1 ca2 ca3 cb1 cb2 cb3
-koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci
-
-DELETE FROM mysqltest2.log|
-
----> Dump of mysqltest1
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest1` /*!40100 DEFAULT CHARACTER SET cp866 */;
-
-USE `mysqltest1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `log` (
- `msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `c` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t1` VALUES (1),(0),(1);
-ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = koi8r */ ;
-/*!50003 SET character_set_results = koi8r */ ;
-/*!50003 SET collation_connection = koi8r_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = _koi8r 'ÔÅËÓÔ';
-SET @a2 = _utf8 'текÑÑ‚';
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest1` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = koi8r */ ;
-/*!50003 SET character_set_results = koi8r */ ;
-/*!50003 SET collation_connection = koi8r_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = _koi8r 'ÔÅËÓÔ';
-SET @b2 = _utf8 'текÑÑ‚';
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest1` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-
----> Dumping mysqltest1 to ddl_i18n_koi8r.triggers.mysqltest1.sql
-
----> Dump of mysqltest2
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest2` /*!40100 DEFAULT CHARACTER SET cp866 */;
-
-USE `mysqltest2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `log` (
- `msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `c` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t1` VALUES (1),(0),(1);
-ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = koi8r */ ;
-/*!50003 SET character_set_results = koi8r */ ;
-/*!50003 SET collation_connection = koi8r_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = _koi8r 'ÔÅËÓÔ';
-SET @a2 = _utf8 'текÑÑ‚';
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest2` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = koi8r */ ;
-/*!50003 SET character_set_results = koi8r */ ;
-/*!50003 SET collation_connection = koi8r_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = _koi8r 'ÔÅËÓÔ';
-SET @b2 = _utf8 'текÑÑ‚';
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest2` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-
----> Dumping mysqltest2 to ddl_i18n_koi8r.triggers.mysqltest2.sql
-
-
-DROP DATABASE mysqltest1|
-DROP DATABASE mysqltest2|
-
-
----> Restoring mysqltest1...
----> Restoring mysqltest2...
-ALTER TABLE mysqltest1.t1 ADD COLUMN fake INT|
-ALTER TABLE mysqltest1.t1 DROP COLUMN fake|
-ALTER TABLE mysqltest2.t1 ADD COLUMN fake INT|
-ALTER TABLE mysqltest2.t1 DROP COLUMN fake|
-connect con3,localhost,root,,;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-INSERT INTO mysqltest1.t1 VALUES(0)|
-INSERT INTO mysqltest2.t1 VALUES(0)|
-DELETE FROM mysqltest1.log|
-DELETE FROM mysqltest2.log|
-set names koi8r|
-use mysqltest1|
-
-
-SHOW CREATE TRIGGER trg1|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg1 CREATE DEFINER=`root`@`localhost` TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = _koi8r 'ÔÅËÓÔ';
-SET @a2 = _utf8 'текÑÑ‚';
-END koi8r koi8r_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER trg2|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg2 CREATE DEFINER=`root`@`localhost` TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = _koi8r 'ÔÅËÓÔ';
-SET @b2 = _utf8 'текÑÑ‚';
-END koi8r koi8r_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER mysqltest2.trg3|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg3 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = _koi8r 'ÔÅËÓÔ';
-SET @a2 = _utf8 'текÑÑ‚';
-END koi8r koi8r_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER mysqltest2.trg4|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg4 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = _koi8r 'ÔÅËÓÔ';
-SET @b2 = _utf8 'текÑÑ‚';
-END koi8r koi8r_general_ci utf8_unicode_ci #
-
-
-SHOW TRIGGERS|
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg1 INSERT t1 BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = 'ÔÅËÓÔ';
-SET @a2 = 'ÔÅËÓÔ';
-END BEFORE # root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-trg2 INSERT t1 BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = 'ÔÅËÓÔ';
-SET @b2 = 'ÔÅËÓÔ';
-END AFTER # root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-use mysqltest2|
-
-SHOW TRIGGERS|
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg3 INSERT t1 BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = 'ÔÅËÓÔ';
-SET @a2 = 'ÔÅËÓÔ';
-END BEFORE # root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-trg4 INSERT t1 BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = 'ÔÅËÓÔ';
-SET @b2 = 'ÔÅËÓÔ';
-END AFTER # root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-use mysqltest1|
-
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg1'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 trg1 INSERT def mysqltest1 t1 1 NULL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = 'ÔÅËÓÔ';
-SET @a2 = 'ÔÅËÓÔ';
-END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg2'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 trg2 INSERT def mysqltest1 t1 1 NULL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = 'ÔÅËÓÔ';
-SET @b2 = 'ÔÅËÓÔ';
-END ROW AFTER NULL NULL OLD NEW CREATED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg3'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 trg3 INSERT def mysqltest2 t1 1 NULL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'ÔÅËÓÔ';
-SET @a1 = 'ÔÅËÓÔ';
-SET @a2 = 'ÔÅËÓÔ';
-END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg4'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 trg4 INSERT def mysqltest2 t1 1 NULL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(ÐÅÒÅÍ1));
-INSERT INTO log VALUES(COLLATION('ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(COLLATION( 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'ÔÅËÓÔ';
-SET @b1 = 'ÔÅËÓÔ';
-SET @b2 = 'ÔÅËÓÔ';
-END ROW AFTER NULL NULL OLD NEW CREATED root@localhost koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SET @a1 = '1'|
-SET @a2 = '1'|
-SET @a3 = '1'|
-SET @b1 = '2'|
-SET @b2 = '2'|
-SET @b3 = '2'|
-
-
-INSERT INTO t1 VALUES(1)|
-
----> Log:
-SELECT msg FROM log|
-msg
-koi8r
-koi8r
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_unicode_ci
-
-SELECT
-COLLATION(@a1) AS ca1,
-COLLATION(@a2) AS ca2,
-COLLATION(@a3) AS ca3,
-COLLATION(@b1) AS cb1,
-COLLATION(@b2) AS cb2,
-COLLATION(@b3) AS cb3|
-ca1 ca2 ca3 cb1 cb2 cb3
-koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci
-
-DELETE FROM log|
-
-
-INSERT INTO mysqltest2.t1 VALUES(1)|
-
----> Log:
-SELECT msg FROM mysqltest2.log|
-msg
-koi8r
-koi8r
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-koi8r_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_unicode_ci
-
-SELECT
-COLLATION(@a1) AS ca1,
-COLLATION(@a2) AS ca2,
-COLLATION(@a3) AS ca3,
-COLLATION(@b1) AS cb1,
-COLLATION(@b2) AS cb2,
-COLLATION(@b3) AS cb3|
-ca1 ca2 ca3 cb1 cb2 cb3
-koi8r_general_ci utf8_general_ci koi8r_general_ci koi8r_general_ci utf8_general_ci koi8r_general_ci
-
-DELETE FROM mysqltest2.log|
-connection default;
-disconnect con2;
-disconnect con3;
-use test|
-DROP DATABASE mysqltest1|
-DROP DATABASE mysqltest2|
-
--------------------------------------------------------------------
-Events
--------------------------------------------------------------------
-
-DROP DATABASE IF EXISTS mysqltest1|
-DROP DATABASE IF EXISTS mysqltest2|
-CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-use mysqltest1|
-
-CREATE EVENT ev1 ON SCHEDULE AT '2030-01-01 00:00:00' DO
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END|
-
-CREATE EVENT ev2 ON SCHEDULE AT '2030-01-01 00:00:00' DO
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END|
-
-CREATE EVENT mysqltest2.ev3 ON SCHEDULE AT '2030-01-01 00:00:00' DO
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END|
-
-CREATE EVENT mysqltest2.ev4 ON SCHEDULE AT '2030-01-01 00:00:00' DO
-BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END|
-
-
-
-SHOW CREATE EVENT ev1|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT ev2|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT mysqltest2.ev3|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT mysqltest2.ev3|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SHOW EVENTS LIKE 'ev1'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW EVENTS LIKE 'ev2'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW EVENTS LIKE 'ev3'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-
-SHOW EVENTS LIKE 'ev4'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev1'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 ev1 root@localhost SYSTEM SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION( 'ÔÅËÓÔ') AS c3,
-COLLATION( 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 ev2 root@localhost SYSTEM SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION( 'ÔÅËÓÔ') AS c3,
-COLLATION( 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 ev3 root@localhost SYSTEM SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION( 'ÔÅËÓÔ') AS c3,
-COLLATION( 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 ev4 root@localhost SYSTEM SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION( 'ÔÅËÓÔ') AS c3,
-COLLATION( 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-
-ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
-ALTER DATABASE mysqltest2 COLLATE cp866_general_ci|
-connect con2,localhost,root,,mysqltest1;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-SHOW CREATE EVENT ev1|
-SHOW CREATE EVENT ev2|
-SHOW CREATE EVENT mysqltest2.ev3|
-SHOW CREATE EVENT mysqltest2.ev4|
-set names koi8r|
-
-
-SHOW CREATE EVENT ev1|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT ev2|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT mysqltest2.ev3|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT mysqltest2.ev3|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SHOW EVENTS LIKE 'ev1'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW EVENTS LIKE 'ev2'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW EVENTS LIKE 'ev3'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-
-SHOW EVENTS LIKE 'ev4'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev1'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 ev1 root@localhost SYSTEM SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION( 'ÔÅËÓÔ') AS c3,
-COLLATION( 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 ev2 root@localhost SYSTEM SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION( 'ÔÅËÓÔ') AS c3,
-COLLATION( 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 ev3 root@localhost SYSTEM SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION( 'ÔÅËÓÔ') AS c3,
-COLLATION( 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 ev4 root@localhost SYSTEM SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION( 'ÔÅËÓÔ') AS c3,
-COLLATION( 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
-
----> Dump of mysqltest1
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest1` /*!40100 DEFAULT CHARACTER SET cp866 */;
-
-USE `mysqltest1`;
-/*!50106 SET @save_time_zone= @@TIME_ZONE */ ;
-DELIMITER ;;
-ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;;
-/*!50003 SET character_set_client = koi8r */ ;;
-/*!50003 SET character_set_results = koi8r */ ;;
-/*!50003 SET collation_connection = koi8r_general_ci */ ;;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
-/*!50003 SET sql_mode = '' */ ;;
-/*!50003 SET @saved_time_zone = @@time_zone */ ;;
-/*!50003 SET time_zone = 'SYSTEM' */ ;;
-/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END */ ;;
-/*!50003 SET time_zone = @saved_time_zone */ ;;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;;
-/*!50003 SET character_set_client = @saved_cs_client */ ;;
-/*!50003 SET character_set_results = @saved_cs_results */ ;;
-/*!50003 SET collation_connection = @saved_col_connection */ ;;
-ALTER DATABASE `mysqltest1` CHARACTER SET cp866 COLLATE cp866_general_ci ;;
-DELIMITER ;;
-ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;;
-/*!50003 SET character_set_client = koi8r */ ;;
-/*!50003 SET character_set_results = koi8r */ ;;
-/*!50003 SET collation_connection = koi8r_general_ci */ ;;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
-/*!50003 SET sql_mode = '' */ ;;
-/*!50003 SET @saved_time_zone = @@time_zone */ ;;
-/*!50003 SET time_zone = 'SYSTEM' */ ;;
-/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END */ ;;
-/*!50003 SET time_zone = @saved_time_zone */ ;;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;;
-/*!50003 SET character_set_client = @saved_cs_client */ ;;
-/*!50003 SET character_set_results = @saved_cs_results */ ;;
-/*!50003 SET collation_connection = @saved_col_connection */ ;;
-ALTER DATABASE `mysqltest1` CHARACTER SET cp866 COLLATE cp866_general_ci ;;
-DELIMITER ;
-/*!50106 SET TIME_ZONE= @save_time_zone */ ;
-
----> Dumping mysqltest1 to ddl_i18n_koi8r.events.mysqltest1.sql
-
----> Dump of mysqltest2
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest2` /*!40100 DEFAULT CHARACTER SET cp866 */;
-
-USE `mysqltest2`;
-/*!50106 SET @save_time_zone= @@TIME_ZONE */ ;
-DELIMITER ;;
-ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;;
-/*!50003 SET character_set_client = koi8r */ ;;
-/*!50003 SET character_set_results = koi8r */ ;;
-/*!50003 SET collation_connection = koi8r_general_ci */ ;;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
-/*!50003 SET sql_mode = '' */ ;;
-/*!50003 SET @saved_time_zone = @@time_zone */ ;;
-/*!50003 SET time_zone = 'SYSTEM' */ ;;
-/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END */ ;;
-/*!50003 SET time_zone = @saved_time_zone */ ;;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;;
-/*!50003 SET character_set_client = @saved_cs_client */ ;;
-/*!50003 SET character_set_results = @saved_cs_results */ ;;
-/*!50003 SET collation_connection = @saved_col_connection */ ;;
-ALTER DATABASE `mysqltest2` CHARACTER SET cp866 COLLATE cp866_general_ci ;;
-DELIMITER ;;
-ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;;
-/*!50003 SET character_set_client = koi8r */ ;;
-/*!50003 SET character_set_results = koi8r */ ;;
-/*!50003 SET collation_connection = koi8r_general_ci */ ;;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
-/*!50003 SET sql_mode = '' */ ;;
-/*!50003 SET @saved_time_zone = @@time_zone */ ;;
-/*!50003 SET time_zone = 'SYSTEM' */ ;;
-/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev4` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END */ ;;
-/*!50003 SET time_zone = @saved_time_zone */ ;;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;;
-/*!50003 SET character_set_client = @saved_cs_client */ ;;
-/*!50003 SET character_set_results = @saved_cs_results */ ;;
-/*!50003 SET collation_connection = @saved_col_connection */ ;;
-ALTER DATABASE `mysqltest2` CHARACTER SET cp866 COLLATE cp866_general_ci ;;
-DELIMITER ;
-/*!50106 SET TIME_ZONE= @save_time_zone */ ;
-
----> Dumping mysqltest2 to ddl_i18n_koi8r.events.mysqltest2.sql
-
-
-DROP DATABASE mysqltest1|
-DROP DATABASE mysqltest2|
-
-
----> Restoring mysqltest1...
----> Restoring mysqltest2...
-connect con3,localhost,root,,mysqltest1;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-SHOW CREATE EVENT ev1|
-SHOW CREATE EVENT ev2|
-SHOW CREATE EVENT mysqltest2.ev3|
-SHOW CREATE EVENT mysqltest2.ev4|
-set names koi8r|
-
-
-SHOW CREATE EVENT ev1|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT ev2|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT mysqltest2.ev3|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT mysqltest2.ev3|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c3,
-COLLATION(_utf8 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END koi8r koi8r_general_ci utf8_unicode_ci
-
-
-SHOW EVENTS LIKE 'ev1'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW EVENTS LIKE 'ev2'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SHOW EVENTS LIKE 'ev3'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-
-SHOW EVENTS LIKE 'ev4'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev1'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 ev1 root@localhost SYSTEM SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10);
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION( 'ÔÅËÓÔ') AS c3,
-COLLATION( 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 ev2 root@localhost SYSTEM SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION( 'ÔÅËÓÔ') AS c3,
-COLLATION( 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 ev3 root@localhost SYSTEM SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION( 'ÔÅËÓÔ') AS c3,
-COLLATION( 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 ev4 root@localhost SYSTEM SQL BEGIN
-DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(ÐÅÒÅÍ1) AS c1,
-COLLATION('ÔÅËÓÔ') AS c2,
-COLLATION( 'ÔÅËÓÔ') AS c3,
-COLLATION( 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
-
--------------------------------------------------------------------
-DDL statements within stored routine.
--------------------------------------------------------------------
-
-DROP DATABASE IF EXISTS mysqltest1|
-DROP DATABASE IF EXISTS mysqltest2|
-CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-use mysqltest1|
-
-CREATE PROCEDURE p1()
-BEGIN
-CREATE TABLE t1(col1 VARCHAR(10));
-SHOW CREATE TABLE t1;
-END|
-
-CREATE PROCEDURE mysqltest2.p2()
-BEGIN
-CREATE TABLE t2(col1 VARCHAR(10));
-SHOW CREATE TABLE t2;
-END|
-
-CALL p1()|
-Table Create Table
-t1 CREATE TABLE `t1` (
- `col1` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
-
-SHOW CREATE TABLE t1|
-Table Create Table
-t1 CREATE TABLE `t1` (
- `col1` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
-
-
-CALL mysqltest2.p2()|
-Table Create Table
-t2 CREATE TABLE `t2` (
- `col1` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
-
-SHOW CREATE TABLE mysqltest2.t2|
-Table Create Table
-t2 CREATE TABLE `t2` (
- `col1` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
-
-ALTER DATABASE mysqltest1 COLLATE cp1251_general_cs|
-ALTER DATABASE mysqltest2 COLLATE cp1251_general_cs|
-DROP TABLE t1|
-DROP TABLE mysqltest2.t2|
-
-CALL p1()|
-Table Create Table
-t1 CREATE TABLE `t1` (
- `col1` varchar(10) COLLATE cp1251_general_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_general_cs
-
-SHOW CREATE TABLE t1|
-Table Create Table
-t1 CREATE TABLE `t1` (
- `col1` varchar(10) COLLATE cp1251_general_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_general_cs
-
-
-CALL mysqltest2.p2()|
-Table Create Table
-t2 CREATE TABLE `t2` (
- `col1` varchar(10) COLLATE cp1251_general_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_general_cs
-
-SHOW CREATE TABLE mysqltest2.t2|
-Table Create Table
-t2 CREATE TABLE `t2` (
- `col1` varchar(10) COLLATE cp1251_general_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_general_cs
-connection con2;
-disconnect con2;
-connection con3;
-disconnect con3;
-connection default;
-USE test;
-DROP DATABASE mysqltest1;
-DROP DATABASE mysqltest2;
diff --git a/mysql-test/r/ddl_i18n_utf8.result b/mysql-test/r/ddl_i18n_utf8.result
deleted file mode 100644
index 47786196037..00000000000
--- a/mysql-test/r/ddl_i18n_utf8.result
+++ /dev/null
@@ -1,2834 +0,0 @@
-set sql_mode="";
-set names utf8;
-
--------------------------------------------------------------------
-Views
--------------------------------------------------------------------
-
-DROP DATABASE IF EXISTS mysqltest1|
-CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-use mysqltest1|
-CREATE TABLE t1(кол INT)|
-INSERT INTO t1 VALUES(1)|
-
-CREATE VIEW v1 AS
-SELECT 'теÑÑ‚' AS c1, кол AS c2
-FROM t1|
-
-CREATE VIEW v2 AS SELECT _koi8r'ÔÅÓÔ' as c1|
-
-CREATE VIEW v3 AS SELECT _koi8r'ÔÅÓÔ'|
-
-
-
-SHOW CREATE VIEW v1|
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 'теÑÑ‚' AS `c1`,`t1`.`кол` AS `c2` from `t1` utf8 utf8_general_ci
-
-SHOW CREATE VIEW v2|
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select _koi8r'ÔÅÓÔ' AS `c1` utf8 utf8_general_ci
-
-SHOW CREATE VIEW v3|
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select _koi8r'ÔÅÓÔ' AS `теÑÑ‚` utf8 utf8_general_ci
-
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v1'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v1 select 'теÑÑ‚' AS `c1`,`mysqltest1`.`t1`.`кол` AS `c2` from `mysqltest1`.`t1` NONE YES root@localhost DEFINER utf8 utf8_general_ci UNDEFINED
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v2'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v2 select 'теÑÑ‚' AS `c1` NONE NO root@localhost DEFINER utf8 utf8_general_ci UNDEFINED
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v3'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v3 select 'теÑÑ‚' AS `теÑÑ‚` NONE NO root@localhost DEFINER utf8 utf8_general_ci UNDEFINED
-
-
-SELECT COLLATION(c1), COLLATION(c2) FROM v1|
-COLLATION(c1) COLLATION(c2)
-utf8_general_ci binary
-
-SELECT COLLATION(c1) FROM v2|
-COLLATION(c1)
-koi8r_general_ci
-
-SELECT * FROM v3|
-теÑÑ‚
-теÑÑ‚
-
-
-ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
-connect con2,localhost,root,,;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-SELECT * FROM mysqltest1.v1|
-SELECT * FROM mysqltest1.v2|
-SELECT * FROM mysqltest1.v3|
-use mysqltest1|
-set names utf8|
-
-
-SHOW CREATE VIEW v1|
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 'теÑÑ‚' AS `c1`,`t1`.`кол` AS `c2` from `t1` utf8 utf8_general_ci
-
-SHOW CREATE VIEW v2|
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select _koi8r'ÔÅÓÔ' AS `c1` utf8 utf8_general_ci
-
-SHOW CREATE VIEW v3|
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select _koi8r'ÔÅÓÔ' AS `теÑÑ‚` utf8 utf8_general_ci
-
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v1'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v1 select 'теÑÑ‚' AS `c1`,`mysqltest1`.`t1`.`кол` AS `c2` from `mysqltest1`.`t1` NONE YES root@localhost DEFINER utf8 utf8_general_ci UNDEFINED
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v2'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v2 select 'теÑÑ‚' AS `c1` NONE NO root@localhost DEFINER utf8 utf8_general_ci UNDEFINED
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v3'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v3 select 'теÑÑ‚' AS `теÑÑ‚` NONE NO root@localhost DEFINER utf8 utf8_general_ci UNDEFINED
-
-
-SELECT COLLATION(c1), COLLATION(c2) FROM v1|
-COLLATION(c1) COLLATION(c2)
-utf8_general_ci binary
-
-SELECT COLLATION(c1) FROM v2|
-COLLATION(c1)
-koi8r_general_ci
-
-SELECT * FROM v3|
-теÑÑ‚
-теÑÑ‚
-
----> Dumping mysqltest1 to ddl_i18n_utf8views.mysqltest1.sql
-
-
-DROP DATABASE mysqltest1|
-
-
----> Restoring mysqltest1...
-connect con3,localhost,root,,;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-SELECT * FROM mysqltest1.v1|
-SELECT * FROM mysqltest1.v2|
-SELECT * FROM mysqltest1.v3|
-use mysqltest1|
-set names utf8|
-
-
-SHOW CREATE VIEW v1|
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 'теÑÑ‚' AS `c1`,`t1`.`кол` AS `c2` from `t1` utf8 utf8_general_ci
-
-SHOW CREATE VIEW v2|
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select _koi8r'ÔÅÓÔ' AS `c1` utf8 utf8_general_ci
-
-SHOW CREATE VIEW v3|
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select _koi8r'ÔÅÓÔ' AS `теÑÑ‚` utf8 utf8_general_ci
-
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v1'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v1 select 'теÑÑ‚' AS `c1`,`mysqltest1`.`t1`.`кол` AS `c2` from `mysqltest1`.`t1` NONE YES root@localhost DEFINER utf8 utf8_general_ci UNDEFINED
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v2'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v2 select 'теÑÑ‚' AS `c1` NONE NO root@localhost DEFINER utf8 utf8_general_ci UNDEFINED
-
-SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v3'|
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def mysqltest1 v3 select 'теÑÑ‚' AS `теÑÑ‚` NONE NO root@localhost DEFINER utf8 utf8_general_ci UNDEFINED
-
-
-SELECT COLLATION(c1), COLLATION(c2) FROM v1|
-COLLATION(c1) COLLATION(c2)
-utf8_general_ci binary
-
-SELECT COLLATION(c1) FROM v2|
-COLLATION(c1)
-koi8r_general_ci
-
-SELECT * FROM v3|
-теÑÑ‚
-теÑÑ‚
-connection default;
-disconnect con2;
-disconnect con3;
-use test|
-DROP DATABASE mysqltest1|
-
--------------------------------------------------------------------
-Stored procedures/functions
--------------------------------------------------------------------
-
-DROP DATABASE IF EXISTS mysqltest1|
-DROP DATABASE IF EXISTS mysqltest2|
-CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-use mysqltest1|
-
-CREATE PROCEDURE p1(
-INOUT парам1 CHAR(10),
-OUT парам2 CHAR(10))
-BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END|
-
-CREATE PROCEDURE p2(
-INOUT парам1 CHAR(10) CHARACTER SET utf8,
-OUT парам2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END|
-
-CREATE PROCEDURE mysqltest2.p3(
-INOUT парам1 CHAR(10),
-OUT парам2 CHAR(10))
-BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END|
-
-CREATE PROCEDURE mysqltest2.p4(
-INOUT парам1 CHAR(10) CHARACTER SET utf8,
-OUT парам2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END|
-
-
-SHOW CREATE PROCEDURE p1|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p1 CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
-INOUT парам1 CHAR(10),
-OUT парам2 CHAR(10))
-BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE p2|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p2 CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
-INOUT парам1 CHAR(10) CHARACTER SET utf8,
-OUT парам2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE mysqltest2.p3|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p3 CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
-INOUT парам1 CHAR(10),
-OUT парам2 CHAR(10))
-BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE mysqltest2.p4|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p4 CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
-INOUT парам1 CHAR(10) CHARACTER SET utf8,
-OUT парам2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END utf8 utf8_general_ci utf8_unicode_ci
-
-
-SHOW PROCEDURE STATUS LIKE 'p1'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest1 p1 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p2'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest1 p2 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p3'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest2 p3 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p4'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest2 p4 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
-
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p1'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p1 def mysqltest1 p1 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION( 'текÑÑ‚') AS c5,
-COLLATION( 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p2'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p2 def mysqltest1 p2 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION( 'текÑÑ‚') AS c5,
-COLLATION( 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p3'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p3 def mysqltest2 p3 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION( 'текÑÑ‚') AS c5,
-COLLATION( 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p4'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p4 def mysqltest2 p4 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION( 'текÑÑ‚') AS c5,
-COLLATION( 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-
-SET @a = '1'|
-SET @b = '2'|
-
-
-CALL p1(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_unicode_ci utf8_unicode_ci
-
-CALL p2(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_general_ci utf8_general_ci
-
-CALL mysqltest2.p3(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_unicode_ci utf8_unicode_ci
-
-CALL mysqltest2.p4(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_general_ci utf8_general_ci
-
-
-ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
-ALTER DATABASE mysqltest2 COLLATE cp866_general_ci|
-connect con2,localhost,root,,mysqltest1;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-CALL p1(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-CALL p2(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-CALL mysqltest2.p3(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-CALL mysqltest2.p4(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-set names utf8|
-
-
-SHOW CREATE PROCEDURE p1|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p1 CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
-INOUT парам1 CHAR(10),
-OUT парам2 CHAR(10))
-BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE p2|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p2 CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
-INOUT парам1 CHAR(10) CHARACTER SET utf8,
-OUT парам2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE mysqltest2.p3|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p3 CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
-INOUT парам1 CHAR(10),
-OUT парам2 CHAR(10))
-BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE mysqltest2.p4|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p4 CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
-INOUT парам1 CHAR(10) CHARACTER SET utf8,
-OUT парам2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END utf8 utf8_general_ci utf8_unicode_ci
-
-
-SHOW PROCEDURE STATUS LIKE 'p1'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest1 p1 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p2'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest1 p2 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p3'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest2 p3 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p4'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest2 p4 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
-
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p1'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p1 def mysqltest1 p1 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION( 'текÑÑ‚') AS c5,
-COLLATION( 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p2'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p2 def mysqltest1 p2 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION( 'текÑÑ‚') AS c5,
-COLLATION( 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p3'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p3 def mysqltest2 p3 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION( 'текÑÑ‚') AS c5,
-COLLATION( 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p4'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p4 def mysqltest2 p4 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION( 'текÑÑ‚') AS c5,
-COLLATION( 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-
-SET @a = '1'|
-SET @b = '2'|
-
-
-CALL p1(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_unicode_ci utf8_unicode_ci
-
-CALL p2(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_general_ci utf8_general_ci
-
-CALL mysqltest2.p3(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_unicode_ci utf8_unicode_ci
-
-CALL mysqltest2.p4(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_general_ci utf8_general_ci
-
----> Dump of mysqltest1
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest1` /*!40100 DEFAULT CHARACTER SET cp866 */;
-
-USE `mysqltest1`;
-ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8 */ ;
-/*!50003 SET character_set_results = utf8 */ ;
-/*!50003 SET collation_connection = utf8_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
-INOUT парам1 CHAR(10),
-OUT парам2 CHAR(10))
-BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest1` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8 */ ;
-/*!50003 SET character_set_results = utf8 */ ;
-/*!50003 SET collation_connection = utf8_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
-INOUT парам1 CHAR(10) CHARACTER SET utf8,
-OUT парам2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest1` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-
----> Dumping mysqltest1 to ddl_i18n_utf8sp.mysqltest1.sql
-
----> Dump of mysqltest2
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest2` /*!40100 DEFAULT CHARACTER SET cp866 */;
-
-USE `mysqltest2`;
-ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8 */ ;
-/*!50003 SET character_set_results = utf8 */ ;
-/*!50003 SET collation_connection = utf8_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
-INOUT парам1 CHAR(10),
-OUT парам2 CHAR(10))
-BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest2` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8 */ ;
-/*!50003 SET character_set_results = utf8 */ ;
-/*!50003 SET collation_connection = utf8_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
-INOUT парам1 CHAR(10) CHARACTER SET utf8,
-OUT парам2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest2` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-
----> Dumping mysqltest2 to ddl_i18n_utf8sp.mysqltest2.sql
-
-
-DROP DATABASE mysqltest1|
-DROP DATABASE mysqltest2|
-
-
----> Restoring mysqltest1...
----> Restoring mysqltest2...
-connect con3,localhost,root,,mysqltest1;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-CALL p1(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-CALL p2(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-CALL mysqltest2.p3(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-CALL mysqltest2.p4(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-set names utf8|
-
-
-SHOW CREATE PROCEDURE p1|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p1 CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
-INOUT парам1 CHAR(10),
-OUT парам2 CHAR(10))
-BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE p2|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p2 CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
-INOUT парам1 CHAR(10) CHARACTER SET utf8,
-OUT парам2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE mysqltest2.p3|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p3 CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
-INOUT парам1 CHAR(10),
-OUT парам2 CHAR(10))
-BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE PROCEDURE mysqltest2.p4|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p4 CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
-INOUT парам1 CHAR(10) CHARACTER SET utf8,
-OUT парам2 CHAR(10) CHARACTER SET utf8)
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION(_utf8 'текÑÑ‚') AS c5,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END utf8 utf8_general_ci utf8_unicode_ci
-
-
-SHOW PROCEDURE STATUS LIKE 'p1'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest1 p1 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p2'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest1 p2 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p3'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest2 p3 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW PROCEDURE STATUS LIKE 'p4'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest2 p4 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
-
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p1'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p1 def mysqltest1 p1 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION( 'текÑÑ‚') AS c5,
-COLLATION( 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p2'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p2 def mysqltest1 p2 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION( 'текÑÑ‚') AS c5,
-COLLATION( 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p3'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p3 def mysqltest2 p3 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION( 'текÑÑ‚') AS c5,
-COLLATION( 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p4'|
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-p4 def mysqltest2 p4 PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION(парам1) AS c2,
-COLLATION(парам2) AS c3;
-SELECT
-COLLATION('текÑÑ‚') AS c4,
-COLLATION( 'текÑÑ‚') AS c5,
-COLLATION( 'текÑÑ‚') AS c6,
-@@collation_connection AS c7,
-@@character_set_client AS c8;
-SET парам1 = 'a';
-SET парам2 = 'b';
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-
-SET @a = '1'|
-SET @b = '2'|
-
-
-CALL p1(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_unicode_ci utf8_unicode_ci
-
-CALL p2(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_general_ci utf8_general_ci
-
-CALL mysqltest2.p3(@a, @b)|
-c1 c2 c3
-utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_unicode_ci utf8_unicode_ci
-
-CALL mysqltest2.p4(@a, @b)|
-c1 c2 c3
-utf8_general_ci utf8_general_ci utf8_general_ci
-c4 c5 c6 c7 c8
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
-SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
-ca cb
-utf8_general_ci utf8_general_ci
-connection default;
-disconnect con2;
-disconnect con3;
-use test|
-DROP DATABASE mysqltest1|
-DROP DATABASE mysqltest2|
-
--------------------------------------------------------------------
-Triggers
--------------------------------------------------------------------
-
-DROP DATABASE IF EXISTS mysqltest1|
-DROP DATABASE IF EXISTS mysqltest2|
-CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-use mysqltest1|
-CREATE TABLE t1(c INT)|
-CREATE TABLE mysqltest2.t1(c INT)|
-CREATE TABLE log(msg VARCHAR(255))|
-CREATE TABLE mysqltest2.log(msg VARCHAR(255))|
-
-CREATE TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = _utf8 'текÑÑ‚';
-SET @a3 = _koi8r 'ÔÅËÓÔ';
-END|
-
-CREATE TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = _utf8 'текÑÑ‚';
-SET @b3 = _koi8r 'ÔÅËÓÔ';
-END|
-
-CREATE TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = _utf8 'текÑÑ‚';
-SET @a3 = _koi8r 'ÔÅËÓÔ';
-END|
-
-CREATE TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = _utf8 'текÑÑ‚';
-SET @b3 = _koi8r 'ÔÅËÓÔ';
-END|
-
-
-
-SHOW CREATE TRIGGER trg1|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg1 CREATE DEFINER=`root`@`localhost` TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = _utf8 'текÑÑ‚';
-SET @a3 = _koi8r 'ÔÅËÓÔ';
-END utf8 utf8_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER trg2|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg2 CREATE DEFINER=`root`@`localhost` TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = _utf8 'текÑÑ‚';
-SET @b3 = _koi8r 'ÔÅËÓÔ';
-END utf8 utf8_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER mysqltest2.trg3|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg3 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = _utf8 'текÑÑ‚';
-SET @a3 = _koi8r 'ÔÅËÓÔ';
-END utf8 utf8_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER mysqltest2.trg4|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg4 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = _utf8 'текÑÑ‚';
-SET @b3 = _koi8r 'ÔÅËÓÔ';
-END utf8 utf8_general_ci utf8_unicode_ci #
-
-
-SHOW TRIGGERS|
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg1 INSERT t1 BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = 'текÑÑ‚';
-SET @a3 = 'текÑÑ‚';
-END BEFORE # root@localhost utf8 utf8_general_ci utf8_unicode_ci
-trg2 INSERT t1 BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = 'текÑÑ‚';
-SET @b3 = 'текÑÑ‚';
-END AFTER # root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-use mysqltest2|
-
-SHOW TRIGGERS|
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg3 INSERT t1 BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = 'текÑÑ‚';
-SET @a3 = 'текÑÑ‚';
-END BEFORE # root@localhost utf8 utf8_general_ci utf8_unicode_ci
-trg4 INSERT t1 BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = 'текÑÑ‚';
-SET @b3 = 'текÑÑ‚';
-END AFTER # root@localhost utf8 utf8_general_ci utf8_unicode_ci
-use mysqltest1|
-
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg1'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 trg1 INSERT def mysqltest1 t1 1 NULL BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = 'текÑÑ‚';
-SET @a3 = 'текÑÑ‚';
-END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg2'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 trg2 INSERT def mysqltest1 t1 1 NULL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = 'текÑÑ‚';
-SET @b3 = 'текÑÑ‚';
-END ROW AFTER NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg3'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 trg3 INSERT def mysqltest2 t1 1 NULL BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = 'текÑÑ‚';
-SET @a3 = 'текÑÑ‚';
-END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg4'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 trg4 INSERT def mysqltest2 t1 1 NULL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = 'текÑÑ‚';
-SET @b3 = 'текÑÑ‚';
-END ROW AFTER NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-
-SET @a1 = '1'|
-SET @a2 = '1'|
-SET @a3 = '1'|
-SET @b1 = '2'|
-SET @b2 = '2'|
-SET @b3 = '2'|
-
-
-INSERT INTO t1 VALUES(1)|
-
----> Log:
-SELECT msg FROM log|
-msg
-koi8r_general_ci
-koi8r_general_ci
-utf8
-utf8
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_unicode_ci
-
-SELECT
-COLLATION(@a1) AS ca1,
-COLLATION(@a2) AS ca2,
-COLLATION(@a3) AS ca3,
-COLLATION(@b1) AS cb1,
-COLLATION(@b2) AS cb2,
-COLLATION(@b3) AS cb3|
-ca1 ca2 ca3 cb1 cb2 cb3
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8_general_ci koi8r_general_ci
-
-DELETE FROM log|
-
-
-INSERT INTO mysqltest2.t1 VALUES(1)|
-
----> Log:
-SELECT msg FROM mysqltest2.log|
-msg
-koi8r_general_ci
-koi8r_general_ci
-utf8
-utf8
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_unicode_ci
-
-SELECT
-COLLATION(@a1) AS ca1,
-COLLATION(@a2) AS ca2,
-COLLATION(@a3) AS ca3,
-COLLATION(@b1) AS cb1,
-COLLATION(@b2) AS cb2,
-COLLATION(@b3) AS cb3|
-ca1 ca2 ca3 cb1 cb2 cb3
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8_general_ci koi8r_general_ci
-
-DELETE FROM mysqltest2.log|
-
-
-ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
-ALTER DATABASE mysqltest2 COLLATE cp866_general_ci|
-ALTER TABLE t1 ADD COLUMN fake INT|
-ALTER TABLE t1 DROP COLUMN fake|
-ALTER TABLE mysqltest2.t1 ADD COLUMN fake INT|
-ALTER TABLE mysqltest2.t1 DROP COLUMN fake|
-connect con2,localhost,root,,;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-INSERT INTO mysqltest1.t1 VALUES(0)|
-INSERT INTO mysqltest2.t1 VALUES(0)|
-DELETE FROM mysqltest1.log|
-DELETE FROM mysqltest2.log|
-set names utf8|
-use mysqltest1|
-
-
-SHOW CREATE TRIGGER trg1|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg1 CREATE DEFINER=`root`@`localhost` TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = _utf8 'текÑÑ‚';
-SET @a3 = _koi8r 'ÔÅËÓÔ';
-END utf8 utf8_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER trg2|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg2 CREATE DEFINER=`root`@`localhost` TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = _utf8 'текÑÑ‚';
-SET @b3 = _koi8r 'ÔÅËÓÔ';
-END utf8 utf8_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER mysqltest2.trg3|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg3 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = _utf8 'текÑÑ‚';
-SET @a3 = _koi8r 'ÔÅËÓÔ';
-END utf8 utf8_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER mysqltest2.trg4|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg4 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = _utf8 'текÑÑ‚';
-SET @b3 = _koi8r 'ÔÅËÓÔ';
-END utf8 utf8_general_ci utf8_unicode_ci #
-
-
-SHOW TRIGGERS|
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg1 INSERT t1 BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = 'текÑÑ‚';
-SET @a3 = 'текÑÑ‚';
-END BEFORE # root@localhost utf8 utf8_general_ci utf8_unicode_ci
-trg2 INSERT t1 BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = 'текÑÑ‚';
-SET @b3 = 'текÑÑ‚';
-END AFTER # root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-use mysqltest2|
-
-SHOW TRIGGERS|
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg3 INSERT t1 BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = 'текÑÑ‚';
-SET @a3 = 'текÑÑ‚';
-END BEFORE # root@localhost utf8 utf8_general_ci utf8_unicode_ci
-trg4 INSERT t1 BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = 'текÑÑ‚';
-SET @b3 = 'текÑÑ‚';
-END AFTER # root@localhost utf8 utf8_general_ci utf8_unicode_ci
-use mysqltest1|
-
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg1'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 trg1 INSERT def mysqltest1 t1 1 NULL BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = 'текÑÑ‚';
-SET @a3 = 'текÑÑ‚';
-END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg2'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 trg2 INSERT def mysqltest1 t1 1 NULL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = 'текÑÑ‚';
-SET @b3 = 'текÑÑ‚';
-END ROW AFTER NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg3'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 trg3 INSERT def mysqltest2 t1 1 NULL BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = 'текÑÑ‚';
-SET @a3 = 'текÑÑ‚';
-END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg4'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 trg4 INSERT def mysqltest2 t1 1 NULL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = 'текÑÑ‚';
-SET @b3 = 'текÑÑ‚';
-END ROW AFTER NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-
-SET @a1 = '1'|
-SET @a2 = '1'|
-SET @a3 = '1'|
-SET @b1 = '2'|
-SET @b2 = '2'|
-SET @b3 = '2'|
-
-
-INSERT INTO t1 VALUES(1)|
-
----> Log:
-SELECT msg FROM log|
-msg
-koi8r_general_ci
-koi8r_general_ci
-utf8
-utf8
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_unicode_ci
-
-SELECT
-COLLATION(@a1) AS ca1,
-COLLATION(@a2) AS ca2,
-COLLATION(@a3) AS ca3,
-COLLATION(@b1) AS cb1,
-COLLATION(@b2) AS cb2,
-COLLATION(@b3) AS cb3|
-ca1 ca2 ca3 cb1 cb2 cb3
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8_general_ci koi8r_general_ci
-
-DELETE FROM log|
-
-
-INSERT INTO mysqltest2.t1 VALUES(1)|
-
----> Log:
-SELECT msg FROM mysqltest2.log|
-msg
-koi8r_general_ci
-koi8r_general_ci
-utf8
-utf8
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_unicode_ci
-
-SELECT
-COLLATION(@a1) AS ca1,
-COLLATION(@a2) AS ca2,
-COLLATION(@a3) AS ca3,
-COLLATION(@b1) AS cb1,
-COLLATION(@b2) AS cb2,
-COLLATION(@b3) AS cb3|
-ca1 ca2 ca3 cb1 cb2 cb3
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8_general_ci koi8r_general_ci
-
-DELETE FROM mysqltest2.log|
-
----> Dump of mysqltest1
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest1` /*!40100 DEFAULT CHARACTER SET cp866 */;
-
-USE `mysqltest1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `log` (
- `msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `c` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t1` VALUES (1),(0),(1);
-ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8 */ ;
-/*!50003 SET character_set_results = utf8 */ ;
-/*!50003 SET collation_connection = utf8_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = _utf8 'текÑÑ‚';
-SET @a3 = _koi8r 'ÔÅËÓÔ';
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest1` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8 */ ;
-/*!50003 SET character_set_results = utf8 */ ;
-/*!50003 SET collation_connection = utf8_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = _utf8 'текÑÑ‚';
-SET @b3 = _koi8r 'ÔÅËÓÔ';
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest1` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-
----> Dumping mysqltest1 to ddl_i18n_utf8triggers.mysqltest1.sql
-
----> Dump of mysqltest2
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest2` /*!40100 DEFAULT CHARACTER SET cp866 */;
-
-USE `mysqltest2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `log` (
- `msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `c` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t1` VALUES (1),(0),(1);
-ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8 */ ;
-/*!50003 SET character_set_results = utf8 */ ;
-/*!50003 SET collation_connection = utf8_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = _utf8 'текÑÑ‚';
-SET @a3 = _koi8r 'ÔÅËÓÔ';
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest2` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8 */ ;
-/*!50003 SET character_set_results = utf8 */ ;
-/*!50003 SET collation_connection = utf8_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = _utf8 'текÑÑ‚';
-SET @b3 = _koi8r 'ÔÅËÓÔ';
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `mysqltest2` CHARACTER SET cp866 COLLATE cp866_general_ci ;
-
----> Dumping mysqltest2 to ddl_i18n_utf8triggers.mysqltest2.sql
-
-
-DROP DATABASE mysqltest1|
-DROP DATABASE mysqltest2|
-
-
----> Restoring mysqltest1...
----> Restoring mysqltest2...
-ALTER TABLE mysqltest1.t1 ADD COLUMN fake INT|
-ALTER TABLE mysqltest1.t1 DROP COLUMN fake|
-ALTER TABLE mysqltest2.t1 ADD COLUMN fake INT|
-ALTER TABLE mysqltest2.t1 DROP COLUMN fake|
-connect con3,localhost,root,,;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-INSERT INTO mysqltest1.t1 VALUES(0)|
-INSERT INTO mysqltest2.t1 VALUES(0)|
-DELETE FROM mysqltest1.log|
-DELETE FROM mysqltest2.log|
-set names utf8|
-use mysqltest1|
-
-
-SHOW CREATE TRIGGER trg1|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg1 CREATE DEFINER=`root`@`localhost` TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = _utf8 'текÑÑ‚';
-SET @a3 = _koi8r 'ÔÅËÓÔ';
-END utf8 utf8_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER trg2|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg2 CREATE DEFINER=`root`@`localhost` TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = _utf8 'текÑÑ‚';
-SET @b3 = _koi8r 'ÔÅËÓÔ';
-END utf8 utf8_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER mysqltest2.trg3|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg3 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = _utf8 'текÑÑ‚';
-SET @a3 = _koi8r 'ÔÅËÓÔ';
-END utf8 utf8_general_ci utf8_unicode_ci #
-
-SHOW CREATE TRIGGER mysqltest2.trg4|
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-trg4 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_utf8 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION(_koi8r 'ÔÅËÓÔ'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = _utf8 'текÑÑ‚';
-SET @b3 = _koi8r 'ÔÅËÓÔ';
-END utf8 utf8_general_ci utf8_unicode_ci #
-
-
-SHOW TRIGGERS|
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg1 INSERT t1 BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = 'текÑÑ‚';
-SET @a3 = 'текÑÑ‚';
-END BEFORE # root@localhost utf8 utf8_general_ci utf8_unicode_ci
-trg2 INSERT t1 BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = 'текÑÑ‚';
-SET @b3 = 'текÑÑ‚';
-END AFTER # root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-use mysqltest2|
-
-SHOW TRIGGERS|
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg3 INSERT t1 BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = 'текÑÑ‚';
-SET @a3 = 'текÑÑ‚';
-END BEFORE # root@localhost utf8 utf8_general_ci utf8_unicode_ci
-trg4 INSERT t1 BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = 'текÑÑ‚';
-SET @b3 = 'текÑÑ‚';
-END AFTER # root@localhost utf8 utf8_general_ci utf8_unicode_ci
-use mysqltest1|
-
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg1'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 trg1 INSERT def mysqltest1 t1 1 NULL BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = 'текÑÑ‚';
-SET @a3 = 'текÑÑ‚';
-END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg2'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 trg2 INSERT def mysqltest1 t1 1 NULL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = 'текÑÑ‚';
-SET @b3 = 'текÑÑ‚';
-END ROW AFTER NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg3'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 trg3 INSERT def mysqltest2 t1 1 NULL BEGIN
-DECLARE перем1 CHAR(10);
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @a1 = 'текÑÑ‚';
-SET @a2 = 'текÑÑ‚';
-SET @a3 = 'текÑÑ‚';
-END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg4'|
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 trg4 INSERT def mysqltest2 t1 1 NULL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-INSERT INTO log VALUES(COLLATION(перем1));
-INSERT INTO log VALUES(COLLATION('текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(COLLATION( 'текÑÑ‚'));
-INSERT INTO log VALUES(@@collation_connection);
-INSERT INTO log VALUES(@@character_set_client);
-SET @b1 = 'текÑÑ‚';
-SET @b2 = 'текÑÑ‚';
-SET @b3 = 'текÑÑ‚';
-END ROW AFTER NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
-
-
-SET @a1 = '1'|
-SET @a2 = '1'|
-SET @a3 = '1'|
-SET @b1 = '2'|
-SET @b2 = '2'|
-SET @b3 = '2'|
-
-
-INSERT INTO t1 VALUES(1)|
-
----> Log:
-SELECT msg FROM log|
-msg
-koi8r_general_ci
-koi8r_general_ci
-utf8
-utf8
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_unicode_ci
-
-SELECT
-COLLATION(@a1) AS ca1,
-COLLATION(@a2) AS ca2,
-COLLATION(@a3) AS ca3,
-COLLATION(@b1) AS cb1,
-COLLATION(@b2) AS cb2,
-COLLATION(@b3) AS cb3|
-ca1 ca2 ca3 cb1 cb2 cb3
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8_general_ci koi8r_general_ci
-
-DELETE FROM log|
-
-
-INSERT INTO mysqltest2.t1 VALUES(1)|
-
----> Log:
-SELECT msg FROM mysqltest2.log|
-msg
-koi8r_general_ci
-koi8r_general_ci
-utf8
-utf8
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_general_ci
-utf8_unicode_ci
-
-SELECT
-COLLATION(@a1) AS ca1,
-COLLATION(@a2) AS ca2,
-COLLATION(@a3) AS ca3,
-COLLATION(@b1) AS cb1,
-COLLATION(@b2) AS cb2,
-COLLATION(@b3) AS cb3|
-ca1 ca2 ca3 cb1 cb2 cb3
-utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8_general_ci koi8r_general_ci
-
-DELETE FROM mysqltest2.log|
-connection default;
-disconnect con2;
-disconnect con3;
-use test|
-DROP DATABASE mysqltest1|
-DROP DATABASE mysqltest2|
-
--------------------------------------------------------------------
-Events
--------------------------------------------------------------------
-
-DROP DATABASE IF EXISTS mysqltest1|
-DROP DATABASE IF EXISTS mysqltest2|
-CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-use mysqltest1|
-
-CREATE EVENT ev1 ON SCHEDULE AT '2030-01-01 00:00:00' DO
-BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END|
-
-CREATE EVENT ev2 ON SCHEDULE AT '2030-01-01 00:00:00' DO
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END|
-
-CREATE EVENT mysqltest2.ev3 ON SCHEDULE AT '2030-01-01 00:00:00' DO
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END|
-
-CREATE EVENT mysqltest2.ev4 ON SCHEDULE AT '2030-01-01 00:00:00' DO
-BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END|
-
-
-
-SHOW CREATE EVENT ev1|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT ev2|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT mysqltest2.ev3|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT mysqltest2.ev3|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END utf8 utf8_general_ci utf8_unicode_ci
-
-
-SHOW EVENTS LIKE 'ev1'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW EVENTS LIKE 'ev2'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW EVENTS LIKE 'ev3'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-
-SHOW EVENTS LIKE 'ev4'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev1'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 ev1 root@localhost SYSTEM SQL BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION( 'текÑÑ‚') AS c3,
-COLLATION( 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 ev2 root@localhost SYSTEM SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION( 'текÑÑ‚') AS c3,
-COLLATION( 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 ev3 root@localhost SYSTEM SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION( 'текÑÑ‚') AS c3,
-COLLATION( 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 ev4 root@localhost SYSTEM SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION( 'текÑÑ‚') AS c3,
-COLLATION( 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
-
-
-ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
-ALTER DATABASE mysqltest2 COLLATE cp866_general_ci|
-connect con2,localhost,root,,mysqltest1;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-SHOW CREATE EVENT ev1|
-SHOW CREATE EVENT ev2|
-SHOW CREATE EVENT mysqltest2.ev3|
-SHOW CREATE EVENT mysqltest2.ev4|
-set names utf8|
-
-
-SHOW CREATE EVENT ev1|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT ev2|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT mysqltest2.ev3|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT mysqltest2.ev3|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END utf8 utf8_general_ci utf8_unicode_ci
-
-
-SHOW EVENTS LIKE 'ev1'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW EVENTS LIKE 'ev2'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW EVENTS LIKE 'ev3'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-
-SHOW EVENTS LIKE 'ev4'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev1'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 ev1 root@localhost SYSTEM SQL BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION( 'текÑÑ‚') AS c3,
-COLLATION( 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 ev2 root@localhost SYSTEM SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION( 'текÑÑ‚') AS c3,
-COLLATION( 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 ev3 root@localhost SYSTEM SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION( 'текÑÑ‚') AS c3,
-COLLATION( 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 ev4 root@localhost SYSTEM SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION( 'текÑÑ‚') AS c3,
-COLLATION( 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
-
----> Dump of mysqltest1
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest1` /*!40100 DEFAULT CHARACTER SET cp866 */;
-
-USE `mysqltest1`;
-/*!50106 SET @save_time_zone= @@TIME_ZONE */ ;
-DELIMITER ;;
-ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;;
-/*!50003 SET character_set_client = utf8 */ ;;
-/*!50003 SET character_set_results = utf8 */ ;;
-/*!50003 SET collation_connection = utf8_general_ci */ ;;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
-/*!50003 SET sql_mode = '' */ ;;
-/*!50003 SET @saved_time_zone = @@time_zone */ ;;
-/*!50003 SET time_zone = 'SYSTEM' */ ;;
-/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END */ ;;
-/*!50003 SET time_zone = @saved_time_zone */ ;;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;;
-/*!50003 SET character_set_client = @saved_cs_client */ ;;
-/*!50003 SET character_set_results = @saved_cs_results */ ;;
-/*!50003 SET collation_connection = @saved_col_connection */ ;;
-ALTER DATABASE `mysqltest1` CHARACTER SET cp866 COLLATE cp866_general_ci ;;
-DELIMITER ;;
-ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;;
-/*!50003 SET character_set_client = utf8 */ ;;
-/*!50003 SET character_set_results = utf8 */ ;;
-/*!50003 SET collation_connection = utf8_general_ci */ ;;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
-/*!50003 SET sql_mode = '' */ ;;
-/*!50003 SET @saved_time_zone = @@time_zone */ ;;
-/*!50003 SET time_zone = 'SYSTEM' */ ;;
-/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END */ ;;
-/*!50003 SET time_zone = @saved_time_zone */ ;;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;;
-/*!50003 SET character_set_client = @saved_cs_client */ ;;
-/*!50003 SET character_set_results = @saved_cs_results */ ;;
-/*!50003 SET collation_connection = @saved_col_connection */ ;;
-ALTER DATABASE `mysqltest1` CHARACTER SET cp866 COLLATE cp866_general_ci ;;
-DELIMITER ;
-/*!50106 SET TIME_ZONE= @save_time_zone */ ;
-
----> Dumping mysqltest1 to ddl_i18n_utf8events.mysqltest1.sql
-
----> Dump of mysqltest2
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest2` /*!40100 DEFAULT CHARACTER SET cp866 */;
-
-USE `mysqltest2`;
-/*!50106 SET @save_time_zone= @@TIME_ZONE */ ;
-DELIMITER ;;
-ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;;
-/*!50003 SET character_set_client = utf8 */ ;;
-/*!50003 SET character_set_results = utf8 */ ;;
-/*!50003 SET collation_connection = utf8_general_ci */ ;;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
-/*!50003 SET sql_mode = '' */ ;;
-/*!50003 SET @saved_time_zone = @@time_zone */ ;;
-/*!50003 SET time_zone = 'SYSTEM' */ ;;
-/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END */ ;;
-/*!50003 SET time_zone = @saved_time_zone */ ;;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;;
-/*!50003 SET character_set_client = @saved_cs_client */ ;;
-/*!50003 SET character_set_results = @saved_cs_results */ ;;
-/*!50003 SET collation_connection = @saved_col_connection */ ;;
-ALTER DATABASE `mysqltest2` CHARACTER SET cp866 COLLATE cp866_general_ci ;;
-DELIMITER ;;
-ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;;
-/*!50003 SET character_set_client = utf8 */ ;;
-/*!50003 SET character_set_results = utf8 */ ;;
-/*!50003 SET collation_connection = utf8_general_ci */ ;;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
-/*!50003 SET sql_mode = '' */ ;;
-/*!50003 SET @saved_time_zone = @@time_zone */ ;;
-/*!50003 SET time_zone = 'SYSTEM' */ ;;
-/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev4` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END */ ;;
-/*!50003 SET time_zone = @saved_time_zone */ ;;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;;
-/*!50003 SET character_set_client = @saved_cs_client */ ;;
-/*!50003 SET character_set_results = @saved_cs_results */ ;;
-/*!50003 SET collation_connection = @saved_col_connection */ ;;
-ALTER DATABASE `mysqltest2` CHARACTER SET cp866 COLLATE cp866_general_ci ;;
-DELIMITER ;
-/*!50106 SET TIME_ZONE= @save_time_zone */ ;
-
----> Dumping mysqltest2 to ddl_i18n_utf8events.mysqltest2.sql
-
-
-DROP DATABASE mysqltest1|
-DROP DATABASE mysqltest2|
-
-
----> Restoring mysqltest1...
----> Restoring mysqltest2...
-connect con3,localhost,root,,mysqltest1;
-SET @@character_set_client= cp1251|
-SET @@character_set_results= cp1251|
-SET @@collation_connection= cp1251_general_ci|
-SHOW CREATE EVENT ev1|
-SHOW CREATE EVENT ev2|
-SHOW CREATE EVENT mysqltest2.ev3|
-SHOW CREATE EVENT mysqltest2.ev4|
-set names utf8|
-
-
-SHOW CREATE EVENT ev1|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT ev2|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT mysqltest2.ev3|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW CREATE EVENT mysqltest2.ev3|
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION(_utf8 'текÑÑ‚') AS c3,
-COLLATION(_koi8r 'ÔÅËÓÔ') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END utf8 utf8_general_ci utf8_unicode_ci
-
-
-SHOW EVENTS LIKE 'ev1'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW EVENTS LIKE 'ev2'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SHOW EVENTS LIKE 'ev3'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-
-SHOW EVENTS LIKE 'ev4'|
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev1'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 ev1 root@localhost SYSTEM SQL BEGIN
-DECLARE перем1 CHAR(10);
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION( 'текÑÑ‚') AS c3,
-COLLATION( 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest1 ev2 root@localhost SYSTEM SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION( 'текÑÑ‚') AS c3,
-COLLATION( 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 ev3 root@localhost SYSTEM SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION( 'текÑÑ‚') AS c3,
-COLLATION( 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
-
-SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest2 ev4 root@localhost SYSTEM SQL BEGIN
-DECLARE перем1 CHAR(10) CHARACTER SET utf8;
-SELECT
-COLLATION(перем1) AS c1,
-COLLATION('текÑÑ‚') AS c2,
-COLLATION( 'текÑÑ‚') AS c3,
-COLLATION( 'текÑÑ‚') AS c4,
-@@collation_connection AS c5,
-@@character_set_client AS c6;
-END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
-
--------------------------------------------------------------------
-DDL statements within stored routine.
--------------------------------------------------------------------
-
-DROP DATABASE IF EXISTS mysqltest1|
-DROP DATABASE IF EXISTS mysqltest2|
-CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
-use mysqltest1|
-
-CREATE PROCEDURE p1()
-BEGIN
-CREATE TABLE t1(col1 VARCHAR(10));
-SHOW CREATE TABLE t1;
-END|
-
-CREATE PROCEDURE mysqltest2.p2()
-BEGIN
-CREATE TABLE t2(col1 VARCHAR(10));
-SHOW CREATE TABLE t2;
-END|
-
-CALL p1()|
-Table Create Table
-t1 CREATE TABLE `t1` (
- `col1` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
-
-SHOW CREATE TABLE t1|
-Table Create Table
-t1 CREATE TABLE `t1` (
- `col1` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
-
-
-CALL mysqltest2.p2()|
-Table Create Table
-t2 CREATE TABLE `t2` (
- `col1` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
-
-SHOW CREATE TABLE mysqltest2.t2|
-Table Create Table
-t2 CREATE TABLE `t2` (
- `col1` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
-
-ALTER DATABASE mysqltest1 COLLATE cp1251_general_cs|
-ALTER DATABASE mysqltest2 COLLATE cp1251_general_cs|
-DROP TABLE t1|
-DROP TABLE mysqltest2.t2|
-
-CALL p1()|
-Table Create Table
-t1 CREATE TABLE `t1` (
- `col1` varchar(10) COLLATE cp1251_general_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_general_cs
-
-SHOW CREATE TABLE t1|
-Table Create Table
-t1 CREATE TABLE `t1` (
- `col1` varchar(10) COLLATE cp1251_general_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_general_cs
-
-
-CALL mysqltest2.p2()|
-Table Create Table
-t2 CREATE TABLE `t2` (
- `col1` varchar(10) COLLATE cp1251_general_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_general_cs
-
-SHOW CREATE TABLE mysqltest2.t2|
-Table Create Table
-t2 CREATE TABLE `t2` (
- `col1` varchar(10) COLLATE cp1251_general_cs DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_general_cs
-connection con2;
-disconnect con2;
-connection con3;
-disconnect con3;
-connection default;
-USE test;
-DROP DATABASE mysqltest1;
-DROP DATABASE mysqltest2;
diff --git a/mysql-test/r/deadlock_innodb.result b/mysql-test/r/deadlock_innodb.result
deleted file mode 100644
index af78a6aa9d5..00000000000
--- a/mysql-test/r/deadlock_innodb.result
+++ /dev/null
@@ -1,127 +0,0 @@
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-drop table if exists t1,t2;
-connection con1;
-create table t1 (id integer, x integer) engine = InnoDB;
-insert into t1 values(0, 0);
-set autocommit=0;
-SELECT * from t1 where id = 0 FOR UPDATE;
-id x
-0 0
-connection con2;
-set autocommit=0;
-update t1 set x=2 where id = 0;
-connection con1;
-update t1 set x=1 where id = 0;
-select * from t1;
-id x
-0 1
-commit;
-connection con2;
-commit;
-connection con1;
-select * from t1;
-id x
-0 2
-commit;
-drop table t1;
-connection con1;
-create table t1 (id integer, x integer) engine = InnoDB;
-create table t2 (b integer, a integer) engine = InnoDB;
-insert into t1 values(0, 0), (300, 300);
-insert into t2 values(0, 10), (1, 20), (2, 30);
-commit;
-set autocommit=0;
-select * from t2;
-b a
-0 10
-1 20
-2 30
-update t2 set a=100 where b=(SELECT x from t1 where id = b FOR UPDATE);
-select * from t2;
-b a
-0 100
-1 20
-2 30
-select * from t1;
-id x
-0 0
-300 300
-connection con2;
-set autocommit=0;
-update t1 set x=2 where id = 0;
-connection con1;
-update t1 set x=1 where id = 0;
-select * from t1;
-id x
-0 1
-300 300
-commit;
-connection con2;
-commit;
-connection con1;
-select * from t1;
-id x
-0 2
-300 300
-commit;
-drop table t1, t2;
-create table t1 (id integer, x integer) engine = InnoDB;
-create table t2 (b integer, a integer) engine = InnoDB;
-insert into t1 values(0, 0), (300, 300);
-insert into t2 values(0, 0), (1, 20), (2, 30);
-commit;
-connection con1;
-select a,b from t2 UNION SELECT id, x from t1 FOR UPDATE;
-a b
-0 0
-20 1
-30 2
-300 300
-select * from t2;
-b a
-0 0
-1 20
-2 30
-select * from t1;
-id x
-0 0
-300 300
-connection con2;
-update t2 set a=2 where b = 0;
-select * from t2;
-b a
-0 2
-1 20
-2 30
-update t1 set x=2 where id = 0;
-connection con1;
-update t1 set x=1 where id = 0;
-select * from t1;
-id x
-0 1
-300 300
-commit;
-connection con2;
-commit;
-connection con1;
-select * from t1;
-id x
-0 2
-300 300
-commit;
-connection default;
-disconnect con1;
-disconnect con2;
-drop table t1, t2;
-End of 4.1 tests
-set storage_engine=innodb;
-drop table if exists a;
-drop table if exists A;
-create table A (c int);
-insert into A (c) values (0);
-create table a as select * from A;
-drop table A;
-drop table if exists a;
-set storage_engine=default;
-End of 5.0 tests.
diff --git a/mysql-test/r/debug_sync.result b/mysql-test/r/debug_sync.result
deleted file mode 100644
index bb9ae1a417d..00000000000
--- a/mysql-test/r/debug_sync.result
+++ /dev/null
@@ -1,295 +0,0 @@
-SET DEBUG_SYNC= 'RESET';
-DROP TABLE IF EXISTS t1;
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: ''
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOR s2 TIMEOUT 6 EXECUTE 2 HIT_LIMIT 3';
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOR s2 TIMEOUT 6 EXECUTE 2';
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOR s2 TIMEOUT 6 HIT_LIMIT 3';
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOR s2 TIMEOUT 6';
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOR s2 EXECUTE 2 HIT_LIMIT 3';
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOR s2 EXECUTE 2';
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOR s2 HIT_LIMIT 3';
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOR s2';
-SET DEBUG_SYNC='p0 SIGNAL s1 EXECUTE 2 HIT_LIMIT 3';
-SET DEBUG_SYNC='p0 SIGNAL s1 EXECUTE 2';
-SET DEBUG_SYNC='p0 SIGNAL s1 HIT_LIMIT 3';
-SET DEBUG_SYNC='p0 SIGNAL s1';
-SET DEBUG_SYNC='p0 WAIT_FOR s2 TIMEOUT 6 EXECUTE 2 HIT_LIMIT 3';
-SET DEBUG_SYNC='p0 WAIT_FOR s2 TIMEOUT 6 EXECUTE 2';
-SET DEBUG_SYNC='p0 WAIT_FOR s2 TIMEOUT 6 HIT_LIMIT 3';
-SET DEBUG_SYNC='p0 WAIT_FOR s2 TIMEOUT 6';
-SET DEBUG_SYNC='p0 WAIT_FOR s2 EXECUTE 2 HIT_LIMIT 3';
-SET DEBUG_SYNC='p0 WAIT_FOR s2 EXECUTE 2';
-SET DEBUG_SYNC='p0 WAIT_FOR s2 HIT_LIMIT 3';
-SET DEBUG_SYNC='p0 WAIT_FOR s2';
-SET DEBUG_SYNC='p0 HIT_LIMIT 3';
-SET DEBUG_SYNC='p0 CLEAR';
-SET DEBUG_SYNC='p0 TEST';
-SET DEBUG_SYNC='RESET';
-set debug_sync='p0 signal s1 wait_for s2 timeout 6 execute 2 hit_limit 3';
-set debug_sync='p0 signal s1 wait_for s2 timeout 6 execute 2';
-set debug_sync='p0 signal s1 wait_for s2 timeout 6 hit_limit 3';
-set debug_sync='p0 signal s1 wait_for s2 timeout 6';
-set debug_sync='p0 signal s1 wait_for s2 execute 2 hit_limit 3';
-set debug_sync='p0 signal s1 wait_for s2 execute 2';
-set debug_sync='p0 signal s1 wait_for s2 hit_limit 3';
-set debug_sync='p0 signal s1 wait_for s2';
-set debug_sync='p0 signal s1 execute 2 hit_limit 3';
-set debug_sync='p0 signal s1 execute 2';
-set debug_sync='p0 signal s1 hit_limit 3';
-set debug_sync='p0 signal s1';
-set debug_sync='p0 wait_for s2 timeout 6 execute 2 hit_limit 3';
-set debug_sync='p0 wait_for s2 timeout 6 execute 2';
-set debug_sync='p0 wait_for s2 timeout 6 hit_limit 3';
-set debug_sync='p0 wait_for s2 timeout 6';
-set debug_sync='p0 wait_for s2 execute 2 hit_limit 3';
-set debug_sync='p0 wait_for s2 execute 2';
-set debug_sync='p0 wait_for s2 hit_limit 3';
-set debug_sync='p0 wait_for s2';
-set debug_sync='p0 hit_limit 3';
-set debug_sync='p0 clear';
-set debug_sync='p0 test';
-set debug_sync='reset';
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOR s2 TIMEOUT 6
- EXECUTE 2 HIT_LIMIT 3';
-SET DEBUG_SYNC=' p0 SIGNAL s1 WAIT_FOR s2';
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOR s2';
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOR s2 ';
-SET DEBUG_SYNC=' p0 SIGNAL s1 WAIT_FOR s2 ';
-SET DEBUG_SYNC=' p0 SIGNAL s1 WAIT_FOR s2 ';
-SET DEBUG_SYNC='';
-ERROR 42000: Missing synchronization point name
-SET DEBUG_SYNC=' ';
-ERROR 42000: Missing synchronization point name
-SET DEBUG_SYNC='p0';
-ERROR 42000: Missing action after synchronization point name 'p0'
-SET DEBUG_SYNC='p0 EXECUTE 2';
-ERROR 42000: Missing action before EXECUTE
-SET DEBUG_SYNC='p0 TIMEOUT 6 EXECUTE 2';
-ERROR 42000: Illegal or out of order stuff: 'TIMEOUT'
-SET DEBUG_SYNC='p0 TIMEOUT 6';
-ERROR 42000: Illegal or out of order stuff: 'TIMEOUT'
-SET DEBUG_SYNC='p0 WAIT_FOR s2 SIGNAL s1';
-ERROR 42000: Illegal or out of order stuff: 'SIGNAL'
-SET DEBUG_SYNC='p0 WAIT_FOR s2 SIGNAL s1 EXECUTE 2';
-ERROR 42000: Illegal or out of order stuff: 'SIGNAL'
-SET DEBUG_SYNC='p0 WAIT_FOR s2 SIGNAL s1 TIMEOUT 6 EXECUTE 2';
-ERROR 42000: Illegal or out of order stuff: 'SIGNAL'
-SET DEBUG_SYNC='p0 WAIT_FOR s2 SIGNAL s1 TIMEOUT 6';
-ERROR 42000: Illegal or out of order stuff: 'SIGNAL'
-SET DEBUG_SYNC='p0 WAIT_FOR s2 TIMEOUT 6 SIGNAL s1 EXECUTE 2';
-ERROR 42000: Illegal or out of order stuff: 'SIGNAL'
-SET DEBUG_SYNC='p0 WAIT_FOR s2 TIMEOUT 6 SIGNAL s1';
-ERROR 42000: Illegal or out of order stuff: 'SIGNAL'
-SET DEBUG_SYNC='p0 TIMEOUT 6 WAIT_FOR s2 EXECUTE 2';
-ERROR 42000: Illegal or out of order stuff: 'TIMEOUT'
-SET DEBUG_SYNC='p0 TIMEOUT 6 WAIT_FOR s2';
-ERROR 42000: Illegal or out of order stuff: 'TIMEOUT'
-SET DEBUG_SYNC='p0 SIGNAL s1 TIMEOUT 6 EXECUTE 2';
-ERROR 42000: Illegal or out of order stuff: 'TIMEOUT'
-SET DEBUG_SYNC='p0 SIGNAL s1 TIMEOUT 6';
-ERROR 42000: Illegal or out of order stuff: 'TIMEOUT'
-SET DEBUG_SYNC='p0 EXECUTE 2 SIGNAL s1 TIMEOUT 6';
-ERROR 42000: Missing action before EXECUTE
-SET DEBUG_SYNC='p0 TIMEOUT 6 SIGNAL s1';
-ERROR 42000: Illegal or out of order stuff: 'TIMEOUT'
-SET DEBUG_SYNC='p0 EXECUTE 2 TIMEOUT 6 SIGNAL s1';
-ERROR 42000: Missing action before EXECUTE
-SET DEBUG_SYNC='p0 CLEAR HIT_LIMIT 3';
-ERROR 42000: Nothing must follow action CLEAR
-SET DEBUG_SYNC='CLEAR';
-ERROR 42000: Missing action after synchronization point name 'CLEAR'
-SET DEBUG_SYNC='p0 CLEAR p0';
-ERROR 42000: Nothing must follow action CLEAR
-SET DEBUG_SYNC='TEST';
-ERROR 42000: Missing action after synchronization point name 'TEST'
-SET DEBUG_SYNC='p0 TEST p0';
-ERROR 42000: Nothing must follow action TEST
-SET DEBUG_SYNC='p0 RESET';
-ERROR 42000: Illegal or out of order stuff: 'RESET'
-SET DEBUG_SYNC='RESET p0';
-ERROR 42000: Illegal or out of order stuff: 'p0'
-SET DEBUG_SYNC='p0 RESET p0';
-ERROR 42000: Illegal or out of order stuff: 'RESET'
-SET DEBUG_SYNC='p0 SIGNAL ';
-ERROR 42000: Missing signal name after action SIGNAL
-SET DEBUG_SYNC='p0 WAIT_FOR ';
-ERROR 42000: Missing signal name after action WAIT_FOR
-SET DEBUG_SYNC='p0 SIGNAL s1 EXECUTE ';
-ERROR 42000: Missing valid number after EXECUTE
-SET DEBUG_SYNCx='p0 SIGNAL s1 WAIT_FOR s2 TIMEOUT 6 EXECUTE 2 HIT_LIMIT 3';
-ERROR HY000: Unknown system variable 'DEBUG_SYNCx'
-SET DEBUG_SYNC='p0 SIGNAx s1 WAIT_FOR s2 TIMEOUT 6 EXECUTE 2 HIT_LIMIT 3';
-ERROR 42000: Illegal or out of order stuff: 'SIGNAx'
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOx s2 TIMEOUT 6 EXECUTE 2 HIT_LIMIT 3';
-ERROR 42000: Illegal or out of order stuff: 'WAIT_FOx'
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOR s2 TIMEOUx 0 EXECUTE 2 HIT_LIMIT 3';
-ERROR 42000: Illegal or out of order stuff: 'TIMEOUx'
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOR s2 TIMEOUT 6 EXECUTx 2 HIT_LIMIT 3';
-ERROR 42000: Illegal or out of order stuff: 'EXECUTx'
-SET DEBUG_SYNC='p0 SIGNAL s1 WAIT_FOR s2 TIMEOUT 6 EXECUTE 2 HIT_LIMIx 3';
-ERROR 42000: Illegal or out of order stuff: 'HIT_LIMIx'
-SET DEBUG_SYNC='p0 CLEARx';
-ERROR 42000: Illegal or out of order stuff: 'CLEARx'
-SET DEBUG_SYNC='p0 TESTx';
-ERROR 42000: Illegal or out of order stuff: 'TESTx'
-SET DEBUG_SYNC='RESETx';
-ERROR 42000: Missing action after synchronization point name 'RESETx'
-SET DEBUG_SYNC='p0 WAIT_FOR s2 TIMEOUT 0x6 EXECUTE 2 HIT_LIMIT 3';
-ERROR 42000: Missing valid number after TIMEOUT
-SET DEBUG_SYNC='p0 WAIT_FOR s2 TIMEOUT 6 EXECUTE 0x2 HIT_LIMIT 3';
-ERROR 42000: Missing valid number after EXECUTE
-SET DEBUG_SYNC='p0 WAIT_FOR s2 TIMEOUT 7 EXECUTE 2 HIT_LIMIT 0x3';
-ERROR 42000: Missing valid number after HIT_LIMIT
-SET DEBUG_SYNC= 7;
-ERROR 42000: Incorrect argument type to variable 'debug_sync'
-SET GLOBAL DEBUG_SYNC= 'p0 CLEAR';
-ERROR HY000: Variable 'debug_sync' is a SESSION variable and can't be used with SET GLOBAL
-SET @myvar= 'now SIGNAL from_myvar';
-SET DEBUG_SYNC= @myvar;
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: 'from_myvar'
-SET DEBUG_SYNC= LEFT('now SIGNAL from_function_cut_here', 24);
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: 'from_function'
-SET DEBUG_SYNC= 'now SIGNAL something';
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: 'something'
-SET DEBUG_SYNC= 'now WAIT_FOR nothing TIMEOUT 0';
-Warnings:
-Warning #### debug sync point wait timed out
-SET DEBUG_SYNC= 'now SIGNAL nothing';
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: 'nothing'
-SET DEBUG_SYNC= 'now WAIT_FOR nothing TIMEOUT 0';
-SET DEBUG_SYNC= 'now SIGNAL something EXECUTE 0';
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: 'nothing'
-SET DEBUG_SYNC= 'now WAIT_FOR anotherthing TIMEOUT 0 EXECUTE 0';
-SET DEBUG_SYNC= 'now HIT_LIMIT 1';
-ERROR HY000: debug sync point hit limit reached
-SET DEBUG_SYNC= 'RESET';
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: ''
-SET DEBUG_SYNC= 'p1abcd SIGNAL s1 EXECUTE 2';
-SET DEBUG_SYNC= 'p2abc SIGNAL s2 EXECUTE 2';
-SET DEBUG_SYNC= 'p9abcdef SIGNAL s9 EXECUTE 2';
-SET DEBUG_SYNC= 'p4a SIGNAL s4 EXECUTE 2';
-SET DEBUG_SYNC= 'p5abcde SIGNAL s5 EXECUTE 2';
-SET DEBUG_SYNC= 'p6ab SIGNAL s6 EXECUTE 2';
-SET DEBUG_SYNC= 'p7 SIGNAL s7 EXECUTE 2';
-SET DEBUG_SYNC= 'p8abcdef SIGNAL s8 EXECUTE 2';
-SET DEBUG_SYNC= 'p3abcdef SIGNAL s3 EXECUTE 2';
-SET DEBUG_SYNC= 'p4a TEST';
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: 's4'
-SET DEBUG_SYNC= 'p1abcd TEST';
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: 's1'
-SET DEBUG_SYNC= 'p7 TEST';
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: 's7'
-SET DEBUG_SYNC= 'p9abcdef TEST';
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: 's9'
-SET DEBUG_SYNC= 'p3abcdef TEST';
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: 's3'
-SET DEBUG_SYNC= 'p1abcd CLEAR';
-SET DEBUG_SYNC= 'p2abc CLEAR';
-SET DEBUG_SYNC= 'p5abcde CLEAR';
-SET DEBUG_SYNC= 'p6ab CLEAR';
-SET DEBUG_SYNC= 'p8abcdef CLEAR';
-SET DEBUG_SYNC= 'p9abcdef CLEAR';
-SET DEBUG_SYNC= 'p3abcdef CLEAR';
-SET DEBUG_SYNC= 'p4a CLEAR';
-SET DEBUG_SYNC= 'p7 CLEAR';
-SET DEBUG_SYNC= 'p1abcd TEST';
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: 's3'
-SET DEBUG_SYNC= 'p7 TEST';
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: 's3'
-SET DEBUG_SYNC= 'p9abcdef TEST';
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: 's3'
-SET DEBUG_SYNC= 'RESET';
-SHOW VARIABLES LIKE 'DEBUG_SYNC';
-Variable_name Value
-debug_sync ON - current signal: ''
-CREATE USER mysqltest_1@localhost;
-GRANT SUPER ON *.* TO mysqltest_1@localhost;
-connect con1,localhost,mysqltest_1,,;
-SET DEBUG_SYNC= 'RESET';
-disconnect con1;
-connection default;
-DROP USER mysqltest_1@localhost;
-CREATE USER mysqltest_2@localhost;
-GRANT ALL ON *.* TO mysqltest_2@localhost;
-REVOKE SUPER ON *.* FROM mysqltest_2@localhost;
-connect con1,localhost,mysqltest_2,,;
-SET DEBUG_SYNC= 'RESET';
-ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
-disconnect con1;
-connection default;
-DROP USER mysqltest_2@localhost;
-SET DEBUG_SYNC= 'RESET';
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (c1 INT);
-connect con1,localhost,root,,;
-SET DEBUG_SYNC= 'before_lock_tables_takes_lock
- SIGNAL opened WAIT_FOR flushed';
-INSERT INTO t1 VALUES(1);
-connection default;
-SET DEBUG_SYNC= 'now WAIT_FOR opened';
-SET DEBUG_SYNC= 'after_flush_unlock SIGNAL flushed';
-FLUSH TABLE t1;
-connection con1;
-disconnect con1;
-connection default;
-DROP TABLE t1;
-SET DEBUG_SYNC= 'RESET';
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (c1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1);
-SELECT GET_LOCK('mysqltest_lock', 100);
-GET_LOCK('mysqltest_lock', 100)
-1
-connect con1,localhost,root,,;
-# Sending:
-UPDATE t1 SET c1=GET_LOCK('mysqltest_lock', 100);;
-connect con2,localhost,root,,;
-SET DEBUG_SYNC= 'wait_for_lock SIGNAL locked EXECUTE 2';
-INSERT INTO t1 VALUES (1);
-connection default;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-SELECT RELEASE_LOCK('mysqltest_lock');
-RELEASE_LOCK('mysqltest_lock')
-1
-connection con1;
-# Reaping UPDATE
-SELECT RELEASE_LOCK('mysqltest_lock');
-RELEASE_LOCK('mysqltest_lock')
-1
-connection con2;
-retrieve INSERT result.
-disconnect con1;
-disconnect con2;
-connection default;
-DROP TABLE t1;
-SET DEBUG_SYNC= 'RESET';
diff --git a/mysql-test/r/default.result b/mysql-test/r/default.result
deleted file mode 100644
index 3b1912f4a55..00000000000
--- a/mysql-test/r/default.result
+++ /dev/null
@@ -1,3382 +0,0 @@
-drop table if exists t1,t2,t3,t4,t5,t6;
-drop database if exists mysqltest;
-set sql_mode="";
-CREATE TABLE t1 (a varchar(30) binary NOT NULL DEFAULT ' ',
-b varchar(1) binary NOT NULL DEFAULT ' ',
-c varchar(4) binary NOT NULL DEFAULT '0000',
-d tinyblob NULL,
-e tinyblob NULL,
-f tinyblob NULL,
-g tinyblob NULL,
-h tinyblob NULL,
-i tinyblob NULL,
-j tinyblob NULL,
-k tinyblob NULL,
-l tinyblob NULL,
-m tinyblob NULL,
-n tinyblob NULL,
-o tinyblob NULL,
-p tinyblob NULL,
-q varchar(30) binary NOT NULL DEFAULT ' ',
-r varchar(30) binary NOT NULL DEFAULT ' ',
-s tinyblob NULL,
-t varchar(4) binary NOT NULL DEFAULT ' ',
-u varchar(1) binary NOT NULL DEFAULT ' ',
-v varchar(30) binary NOT NULL DEFAULT ' ',
-w varchar(30) binary NOT NULL DEFAULT ' ',
-x tinyblob NULL,
-y varchar(5) binary NOT NULL DEFAULT ' ',
-z varchar(20) binary NOT NULL DEFAULT ' ',
-a1 varchar(30) binary NOT NULL DEFAULT ' ',
-b1 tinyblob NULL)
-ENGINE=InnoDB DEFAULT CHARACTER SET = latin1 COLLATE latin1_bin;
-set sql_mode=default;
-INSERT into t1 (b) values ('1');
-SHOW WARNINGS;
-Level Code Message
-SELECT * from t1;
-a b c d e f g h i j k l m n o p q r s t u v w x y z a1 b1
- 1 0000 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-CREATE TABLE t2 (a varchar(30) binary NOT NULL DEFAULT ' ',
-b varchar(1) binary NOT NULL DEFAULT ' ',
-c varchar(4) binary NOT NULL DEFAULT '0000',
-d tinyblob NULL,
-e tinyblob NULL,
-f tinyblob NULL,
-g tinyblob NULL,
-h tinyblob NULL,
-i tinyblob NULL,
-j tinyblob NULL,
-k tinyblob NULL,
-l tinyblob NULL,
-m tinyblob NULL,
-n tinyblob NULL,
-o tinyblob NULL,
-p tinyblob NULL,
-q varchar(30) binary NOT NULL DEFAULT ' ',
-r varchar(30) binary NOT NULL DEFAULT ' ',
-s tinyblob NULL,
-t varchar(4) binary NOT NULL DEFAULT ' ',
-u varchar(1) binary NOT NULL DEFAULT ' ',
-v varchar(30) binary NOT NULL DEFAULT ' ',
-w varchar(30) binary NOT NULL DEFAULT ' ',
-x tinyblob NULL,
-y varchar(5) binary NOT NULL DEFAULT ' ',
-z varchar(20) binary NOT NULL DEFAULT ' ',
-a1 varchar(30) binary NOT NULL DEFAULT ' ',
-b1 tinyblob NULL)
-ENGINE=MyISAM DEFAULT CHARACTER SET = latin1 COLLATE latin1_bin;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(30) COLLATE latin1_bin NOT NULL DEFAULT ' ',
- `b` varchar(1) COLLATE latin1_bin NOT NULL DEFAULT ' ',
- `c` varchar(4) COLLATE latin1_bin NOT NULL DEFAULT '0000',
- `d` tinyblob DEFAULT NULL,
- `e` tinyblob DEFAULT NULL,
- `f` tinyblob DEFAULT NULL,
- `g` tinyblob DEFAULT NULL,
- `h` tinyblob DEFAULT NULL,
- `i` tinyblob DEFAULT NULL,
- `j` tinyblob DEFAULT NULL,
- `k` tinyblob DEFAULT NULL,
- `l` tinyblob DEFAULT NULL,
- `m` tinyblob DEFAULT NULL,
- `n` tinyblob DEFAULT NULL,
- `o` tinyblob DEFAULT NULL,
- `p` tinyblob DEFAULT NULL,
- `q` varchar(30) COLLATE latin1_bin NOT NULL DEFAULT ' ',
- `r` varchar(30) COLLATE latin1_bin NOT NULL DEFAULT ' ',
- `s` tinyblob DEFAULT NULL,
- `t` varchar(4) COLLATE latin1_bin NOT NULL DEFAULT ' ',
- `u` varchar(1) COLLATE latin1_bin NOT NULL DEFAULT ' ',
- `v` varchar(30) COLLATE latin1_bin NOT NULL DEFAULT ' ',
- `w` varchar(30) COLLATE latin1_bin NOT NULL DEFAULT ' ',
- `x` tinyblob DEFAULT NULL,
- `y` varchar(5) COLLATE latin1_bin NOT NULL DEFAULT ' ',
- `z` varchar(20) COLLATE latin1_bin NOT NULL DEFAULT ' ',
- `a1` varchar(30) COLLATE latin1_bin NOT NULL DEFAULT ' ',
- `b1` tinyblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin
-INSERT into t2 (b) values ('1');
-SHOW WARNINGS;
-Level Code Message
-SELECT * from t2;
-a b c d e f g h i j k l m n o p q r s t u v w x y z a1 b1
- 1 0000 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-drop table t1;
-drop table t2;
-create table bug20691 (i int, d datetime NOT NULL, dn datetime not null default '0000-00-00 00:00:00');
-insert ignore into bug20691 values (1, DEFAULT, DEFAULT), (1, '1975-07-10 07:10:03', '1978-01-13 14:08:51'), (1, DEFAULT, DEFAULT);
-Warnings:
-Warning 1364 Field 'd' doesn't have a default value
-Warning 1364 Field 'd' doesn't have a default value
-insert ignore into bug20691 (i) values (2);
-Warnings:
-Warning 1364 Field 'd' doesn't have a default value
-desc bug20691;
-Field Type Null Key Default Extra
-i int(11) YES NULL
-d datetime NO NULL
-dn datetime NO 0000-00-00 00:00:00
-insert ignore into bug20691 values (3, DEFAULT, DEFAULT), (3, '1975-07-10 07:10:03', '1978-01-13 14:08:51'), (3, DEFAULT, DEFAULT);
-Warnings:
-Warning 1364 Field 'd' doesn't have a default value
-Warning 1364 Field 'd' doesn't have a default value
-insert ignore into bug20691 (i) values (4);
-Warnings:
-Warning 1364 Field 'd' doesn't have a default value
-insert ignore into bug20691 values (5, DEFAULT, DEFAULT), (5, '1975-07-10 07:10:03', '1978-01-13 14:08:51'), (5, DEFAULT, DEFAULT);
-Warnings:
-Warning 1364 Field 'd' doesn't have a default value
-Warning 1364 Field 'd' doesn't have a default value
-SET sql_mode = 'ALLOW_INVALID_DATES';
-insert into bug20691 values (6, DEFAULT, DEFAULT), (6, '1975-07-10 07:10:03', '1978-01-13 14:08:51'), (6, DEFAULT, DEFAULT);
-Warnings:
-Warning 1364 Field 'd' doesn't have a default value
-Warning 1364 Field 'd' doesn't have a default value
-SET sql_mode = 'STRICT_ALL_TABLES';
-insert into bug20691 values (7, DEFAULT, DEFAULT), (7, '1975-07-10 07:10:03', '1978-01-13 14:08:51'), (7, DEFAULT, DEFAULT);
-ERROR HY000: Field 'd' doesn't have a default value
-select * from bug20691 order by i asc;
-i d dn
-1 0000-00-00 00:00:00 0000-00-00 00:00:00
-1 1975-07-10 07:10:03 1978-01-13 14:08:51
-1 0000-00-00 00:00:00 0000-00-00 00:00:00
-2 0000-00-00 00:00:00 0000-00-00 00:00:00
-3 0000-00-00 00:00:00 0000-00-00 00:00:00
-3 1975-07-10 07:10:03 1978-01-13 14:08:51
-3 0000-00-00 00:00:00 0000-00-00 00:00:00
-4 0000-00-00 00:00:00 0000-00-00 00:00:00
-5 0000-00-00 00:00:00 0000-00-00 00:00:00
-5 1975-07-10 07:10:03 1978-01-13 14:08:51
-5 0000-00-00 00:00:00 0000-00-00 00:00:00
-6 0000-00-00 00:00:00 0000-00-00 00:00:00
-6 1975-07-10 07:10:03 1978-01-13 14:08:51
-6 0000-00-00 00:00:00 0000-00-00 00:00:00
-drop table bug20691;
-SET sql_mode = '';
-create table bug20691 (
-a set('one', 'two', 'three') not null,
-b enum('small', 'medium', 'large', 'enormous', 'ellisonego') not null,
-c time not null,
-d date not null,
-e int not null,
-f long not null,
-g blob not null,
-h datetime not null,
-i decimal not null,
-x int);
-insert into bug20691 values (2, 3, 5, '0007-01-01', 11, 13, 17, '0019-01-01 00:00:00', 23, 1);
-insert into bug20691 (x) values (2);
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-Warning 1364 Field 'c' doesn't have a default value
-Warning 1364 Field 'd' doesn't have a default value
-Warning 1364 Field 'e' doesn't have a default value
-Warning 1364 Field 'f' doesn't have a default value
-Warning 1364 Field 'g' doesn't have a default value
-Warning 1364 Field 'h' doesn't have a default value
-Warning 1364 Field 'i' doesn't have a default value
-insert into bug20691 values (2, 3, 5, '0007-01-01', 11, 13, 17, '0019-01-01 00:00:00', 23, 3);
-insert into bug20691 values (DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, 4);
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-Warning 1364 Field 'c' doesn't have a default value
-Warning 1364 Field 'd' doesn't have a default value
-Warning 1364 Field 'e' doesn't have a default value
-Warning 1364 Field 'f' doesn't have a default value
-Warning 1364 Field 'g' doesn't have a default value
-Warning 1364 Field 'h' doesn't have a default value
-Warning 1364 Field 'i' doesn't have a default value
-select * from bug20691 order by x asc;
-a b c d e f g h i x
-two large 00:00:05 0007-01-01 11 13 17 0019-01-01 00:00:00 23 1
- small 00:00:00 0000-00-00 0 0000-00-00 00:00:00 0 2
-two large 00:00:05 0007-01-01 11 13 17 0019-01-01 00:00:00 23 3
- small 00:00:00 0000-00-00 0 0000-00-00 00:00:00 0 4
-drop table bug20691;
-create table t1 (id int not null);
-insert into t1 values(default);
-Warnings:
-Warning 1364 Field 'id' doesn't have a default value
-create view v1 (c) as select id from t1;
-insert into t1 values(default);
-Warnings:
-Warning 1364 Field 'id' doesn't have a default value
-drop view v1;
-drop table t1;
-create table t1 (a int unique);
-create table t2 (b int default 10);
-insert into t1 (a) values (1);
-insert into t2 (b) values (1);
-insert into t1 (a) select b from t2 on duplicate key update a=default;
-select * from t1;
-a
-NULL
-insert into t1 (a) values (1);
-insert into t1 (a) select b from t2 on duplicate key update a=default(b);
-select * from t1;
-a
-NULL
-10
-drop table t1, t2;
-# End of 5.0 tests
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-11265 Access defied when CREATE VIIEW v1 AS SELECT DEFAULT(column) FROM t1
-#
-CREATE TABLE t1 (a INT DEFAULT 10);
-INSERT INTO t1 VALUES (11);
-CREATE VIEW v1 AS SELECT a AS a FROM t1;
-CREATE VIEW v2 AS SELECT DEFAULT(a) AS a FROM t1;
-CREATE VIEW v3 AS SELECT VALUE(a) AS a FROM t1;
-SELECT * FROM v1;
-a
-11
-SELECT * FROM v2;
-a
-10
-SELECT * FROM v3;
-a
-NULL
-UPDATE v2 SET a=123;
-ERROR HY000: Column 'a' is not updatable
-UPDATE v3 SET a=123;
-ERROR HY000: Column 'a' is not updatable
-DROP VIEW v3;
-DROP VIEW v2;
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-10780 Server crashes in in create_tmp_table
-#
-connect con1,localhost,root,,test;
-CREATE TABLE t1 (pk INT AUTO_INCREMENT PRIMARY KEY) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ();
-INSERT INTO t1 VALUES ();
-SELECT DISTINCT DEFAULT (pk) FROM t1 GROUP BY RAND() WITH ROLLUP;
-DEFAULT (pk)
-0
-disconnect con1;
-connection default;
-DROP TABLE t1;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-CREATE TABLE t1 (a INT DEFAULT 100, b INT DEFAULT NULL);
-INSERT INTO t1 VALUES ();
-SELECT * FROM t1 WHERE DEFAULT(a);
-a b
-100 NULL
-SELECT * FROM t1 WHERE DEFAULT(b);
-a b
-DROP TABLE IF EXISTS t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 10:20:30.123456');
-#
-# Check that CURRENT_TIMESTAMP works as before
-#
-CREATE or replace TABLE t1 (event_time TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `event_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE or replace TABLE t1 (event_time TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(2) ON UPDATE CURRENT_TIMESTAMP);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `event_time` timestamp(6) NOT NULL DEFAULT current_timestamp(2) ON UPDATE current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE or replace TABLE t1 (event_time TIMESTAMP(6) NOT NULL DEFAULT SYSDATE(2) ON UPDATE CURRENT_TIMESTAMP);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `event_time` timestamp(6) NOT NULL DEFAULT sysdate(2) ON UPDATE current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-#
-# Check default expressions
-#
-create or replace table t1 (a int default 1, b int default (a+1), c int default (a+b)) engine myisam;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT 1,
- `b` int(11) DEFAULT (`a` + 1),
- `c` int(11) DEFAULT (`a` + `b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ();
-insert into t1 (a) values (2);
-insert into t1 (a,b) values (10,20);
-insert into t1 (a,b,c) values (100,200,400);
-select * from t1;
-a b c
-1 2 3
-2 3 5
-10 20 30
-100 200 400
-truncate table t1;
-insert delayed into t1 values ();
-insert delayed into t1 (a) values (2);
-insert delayed into t1 (a,b) values (10,20);
-insert delayed into t1 (a,b,c) values (100,200,400);
-flush tables t1;
-select * from t1;
-a b c
-1 2 3
-2 3 5
-10 20 30
-100 200 400
-create or replace table t1 (a int, b blob default (1), c blob default "hello", t text default concat(a,b,c)) engine=myisam;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` blob DEFAULT 1,
- `c` blob DEFAULT 'hello',
- `t` text DEFAULT concat(`a`,`b`,`c`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 (a) values (2);
-insert into t1 (a,b) values (10,"test1");
-insert into t1 (a,b,c) values (10,"test2","test3");
-insert delayed into t1 (a,b) values (10,"test4");
-flush tables t1;
-select * from t1;
-a b c t
-2 1 hello 21hello
-10 test1 hello 10test1hello
-10 test2 test3 10test2test3
-10 test4 hello 10test4hello
-drop table t1;
-create or replace table t1 (a bigint default uuid_short());
-insert into t1 values();
-select a > 0 from t1;
-a > 0
-1
-drop table t1;
-create or replace table t1 (param_list int DEFAULT (1+1) NOT NULL);
-create or replace table t1 (param_list int DEFAULT 1+1 NOT NULL);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '+1 NOT NULL)' at line 1
-create or replace table t1 (param_list blob DEFAULT "" NOT NULL);
-drop table t1;
-create table t1 (a int);
-insert into t1 values(-1);
-alter table t1 add b int default 1, add c int default -1, add d int default (1+1), add e timestamp;
-select a,b,c,d,e from t1;
-a b c d e
--1 1 -1 2 2001-01-01 10:20:30
-insert into t1 values(10,10,10,10,0);
-alter table t1 add f int default (1+1+1) null, add g int default (1+1+1+1) not null,add h int default (2+2+2+2);
-select a,b,c,d,e,f,g,h from t1;
-a b c d e f g h
--1 1 -1 2 2001-01-01 10:20:30 3 4 8
-10 10 10 10 0000-00-00 00:00:00 3 4 8
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT 1,
- `c` int(11) DEFAULT -1,
- `d` int(11) DEFAULT (1 + 1),
- `e` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `f` int(11) DEFAULT (1 + 1 + 1),
- `g` int(11) NOT NULL DEFAULT (1 + 1 + 1 + 1),
- `h` int(11) DEFAULT (2 + 2 + 2 + 2)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table t2 like t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT 1,
- `c` int(11) DEFAULT -1,
- `d` int(11) DEFAULT (1 + 1),
- `e` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `f` int(11) DEFAULT (1 + 1 + 1),
- `g` int(11) NOT NULL DEFAULT (1 + 1 + 1 + 1),
- `h` int(11) DEFAULT (2 + 2 + 2 + 2)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t2 (a) values (100);
-select a,b,c,d,e,f,g,h from t2;
-a b c d e f g h
-100 1 -1 2 2001-01-01 10:20:30 3 4 8
-drop table t1,t2;
-create table t1 (a int default (1----1), b int default - 1, c int default +1, e int default (--1));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT (1 - -1),
- `b` int(11) DEFAULT -1,
- `c` int(11) DEFAULT 1,
- `e` int(11) DEFAULT 1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values();
-insert into t1 values();
-select * from t1;
-a b c e
-2 -1 1 1
-2 -1 1 1
-drop table t1;
-#
-# Create or replace can delete a table on error
-#
-create table t1 (a int);
-create or replace table t1 (a int default b, b int default a);
-ERROR 01000: Expression for field `a` is refering to uninitialized field `b`
-show create table t1;
-ERROR 42S02: Table 'test.t1' doesn't exist
-#
-# Refering to other columns
-#
-create or replace table t1 (a int default 1, b int default a);
-create or replace table t1 (a int default 1, b int as (a));
-create or replace table t1 (a int default b, b int default 1);
-create or replace table t1 (a int as (b), b int default 1);
-create or replace table t1 (a int as (b), b int default (1+1));
-create or replace table t1 (a int default 1, b int as (c), c int default (a+1));
-create or replace table t1 (a int default (1+1), b int as (c), c int default (a+1));
-create or replace table t1 (a varchar(128) default @@version);
-create or replace table t1 (a int not null, b int as (a));
-create or replace table t1 (a int not null, b int default (a+1));
-create or replace table t1 (a int default a);
-ERROR 01000: Expression for field `a` is refering to uninitialized field `a`
-create or replace table t1 (a int default b, b int default (1+1));
-create or replace table t1 (a int default 1, b int as (c), c int as (a+1));
-ERROR 01000: Expression for field `b` is refering to uninitialized field `c`
-CREATE TABLE t1 (a INT DEFAULT (DEFAULT(a)));
-ERROR 01000: Expression for field `a` is refering to uninitialized field `a`
-CREATE TABLE t1 (a INT DEFAULT(DEFAULT(b)), b INT DEFAULT(DEFAULT(a)));
-ERROR 01000: Expression for field `a` is refering to uninitialized field `b`
-CREATE TABLE t1 (a INT DEFAULT(DEFAULT(b)) NOT NULL, b INT DEFAULT(DEFAULT(a)) NOT NULL);
-ERROR 01000: Expression for field `a` is refering to uninitialized field `b`
-#
-# Allow defaults to refer to not default fields
-#
-create or replace table t1 (a int default b, b int not null);
-insert into t1 values();
-Warnings:
-Warning 1364 Field 'b' doesn't have a default value
-insert into t1 (a) values(1);
-Warnings:
-Warning 1364 Field 'b' doesn't have a default value
-insert into t1 (b) values(2);
-insert into t1 (a,b) values(3,4);
-select * from t1;
-a b
-0 0
-1 0
-2 2
-3 4
-drop table t1;
-CREATE OR REPLACE TABLE t1 (a INT DEFAULT @v);
-drop table t1;
-CREATE TABLE t1 (a INT DEFAULT @v:=1);
-drop table t1;
-#
-# Error handling
-#
-create or replace table t1 (a bigint default xxx());
-ERROR HY000: Function or expression '`xxx`()' cannot be used in the DEFAULT clause of `a`
-create or replace table t1 (a bigint default (select (1)));
-ERROR HY000: Function or expression 'select ...' cannot be used in the DEFAULT clause of `a`
-create or replace table t1 (a bigint default (1,2,3));
-ERROR 21000: Operand should contain 1 column(s)
-create or replace table t1 (a bigint default ((1,2,3)));
-ERROR 21000: Operand should contain 1 column(s)
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT a DIV b);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DIV b)' at line 1
-CREATE TABLE t1 (a INT, b INT DEFAULT -a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'a)' at line 1
-#
-# Invalid DEFAULT expressions
-#
-CREATE TABLE t1 (a INT DEFAULT ((SELECT 1)));
-ERROR HY000: Function or expression 'select ...' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT (EXISTS (SELECT 1)));
-ERROR HY000: Function or expression 'select ...' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT (1=ANY (SELECT 1)));
-ERROR HY000: Function or expression 'select ...' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT ROW(1,1));
-ERROR 21000: Operand should contain 1 column(s)
-CREATE TABLE t1 (a INT DEFAULT (1,1));
-ERROR 21000: Operand should contain 1 column(s)
-CREATE TABLE t1 (a INT DEFAULT ((1,1)));
-ERROR 21000: Operand should contain 1 column(s)
-CREATE TABLE t1 (a INT DEFAULT ?);
-Got one of the listed errors
-CREATE TABLE t1 (a INT DEFAULT(?));
-Got one of the listed errors
-CREATE TABLE t1 (a INT DEFAULT (b), b INT DEFAULT(a));
-ERROR 01000: Expression for field `a` is refering to uninitialized field `b`
-CREATE TABLE t1 (a INT DEFAULT(NAME_CONST('xxx', 'yyy'));
-ERROR HY000: Function or expression 'name_const()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT COUNT(*));
-ERROR HY000: Function or expression 'count()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT COUNT(1));
-ERROR HY000: Function or expression 'count()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT AVG(1));
-ERROR HY000: Function or expression 'avg()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT MIN(1));
-ERROR HY000: Function or expression 'min()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT GROUP_CONCAT(1));
-ERROR HY000: Function or expression 'group_concat()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT ROW_NUMBER() OVER ());
-ERROR HY000: Function or expression 'row_number()' cannot be used in the DEFAULT clause of `a`
-CREATE FUNCTION f1() RETURNS INT RETURN 1;
-CREATE TABLE t1 (a INT DEFAULT f1());
-ERROR HY000: Function or expression '`f1`()' cannot be used in the DEFAULT clause of `a`
-DROP FUNCTION f1;
-CREATE PROCEDURE p1(par INT) CREATE TABLE t1 (a INT DEFAULT par);
-ERROR HY000: Function or expression 'par' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT par);
-ERROR 42S22: Unknown column 'par' in 'DEFAULT'
-CREATE PROCEDURE p1() CREATE TABLE t1 (a INT DEFAULT par);
-CALL p1;
-ERROR 42S22: Unknown column 'par' in 'DEFAULT'
-DROP PROCEDURE p1;
-CREATE TABLE t1 (a INT DEFAULT VALUE(a));
-ERROR HY000: Function or expression 'value()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER tr1 AFTER INSERT ON t1 FOR EACH ROW CREATE TABLE t2 (a INT DEFAULT NEW.a);
-ERROR HY000: Function or expression 'NEW.a' cannot be used in the DEFAULT clause of `a`
-CREATE TRIGGER tr1 AFTER INSERT ON t1 FOR EACH ROW CREATE TEMPORARY TABLE t2 (a INT DEFAULT NEW.a);
-ERROR HY000: Function or expression 'NEW.a' cannot be used in the DEFAULT clause of `a`
-DROP TABLE t1;
-#
-# Prepared statements
-#
-PREPARE stmt FROM 'CREATE TABLE t1 (a INT DEFAULT(?))';
-set @a=1;
-execute stmt using @a;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT 1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a=-1;
-execute stmt using @a;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT -1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-DEALLOCATE PREPARE stmt;
-PREPARE stmt FROM 'CREATE TABLE t1 (a INT DEFAULT(?), b INT DEFAULT(?))';
-set @a=1, @b=2;
-execute stmt using @a,@b;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT 1,
- `b` int(11) DEFAULT 2
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-DEALLOCATE PREPARE stmt;
-prepare stmt from 'create table t1 (a int default(?+?))';
-set @a=1;
-execute stmt using @a,@a;
-deallocate prepare stmt;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT (1 + 1)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-#
-# Parenthesized Item_basic_constant
-#
-CREATE TABLE t1 (
-i01 INT DEFAULT (((1))),
-i02 INT DEFAULT (((0x3939))),
-i03 INT DEFAULT (((1.0))),
-i04 INT DEFAULT (((1e0))),
-i05 INT DEFAULT (((NULL))),
-f01 DOUBLE DEFAULT (((PI()))),
-s01 VARCHAR(10) DEFAULT (((_latin1'test'))),
-s02 VARCHAR(10) DEFAULT ((('test'))),
-s03 VARCHAR(10) DEFAULT (((0x40))),
-s04 VARCHAR(10) DEFAULT (((X'40'))),
-s05 VARCHAR(10) DEFAULT (((B'1000000'))),
-d01 TIME DEFAULT (((TIME'10:20:30'))),
-d02 DATE DEFAULT (((DATE'2001-01-01'))),
-d03 DATETIME DEFAULT (((TIMESTAMP'2001-01-01 10:20:30')))
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i01` int(11) DEFAULT 1,
- `i02` int(11) DEFAULT 14649,
- `i03` int(11) DEFAULT 1,
- `i04` int(11) DEFAULT 1,
- `i05` int(11) DEFAULT NULL,
- `f01` double DEFAULT 3.141592653589793,
- `s01` varchar(10) DEFAULT 'test',
- `s02` varchar(10) DEFAULT 'test',
- `s03` varchar(10) DEFAULT '@',
- `s04` varchar(10) DEFAULT '@',
- `s05` varchar(10) DEFAULT '@',
- `d01` time DEFAULT '10:20:30',
- `d02` date DEFAULT '2001-01-01',
- `d03` datetime DEFAULT '2001-01-01 10:20:30'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ();
-SELECT * FROM t1;
-i01 1
-i02 14649
-i03 1
-i04 1
-i05 NULL
-f01 3.141592653589793
-s01 test
-s02 test
-s03 @
-s04 @
-s05 @
-d01 10:20:30
-d02 2001-01-01
-d03 2001-01-01 10:20:30
-DROP TABLE t1;
-#
-# COALESCE(Item_basic_constant)
-#
-CREATE TABLE t1 (
-i01 INT DEFAULT COALESCE(1),
-i02 INT DEFAULT COALESCE(0x3939),
-i03 INT DEFAULT COALESCE(1.0),
-i04 INT DEFAULT COALESCE(1e0),
-i05 INT DEFAULT COALESCE(NULL),
-f01 DOUBLE DEFAULT COALESCE(PI()),
-s01 VARCHAR(10) DEFAULT COALESCE(_latin1'test'),
-s02 VARCHAR(10) DEFAULT COALESCE('test'),
-s03 VARCHAR(10) DEFAULT COALESCE(0x40),
-s04 VARCHAR(10) DEFAULT COALESCE(X'40'),
-s05 VARCHAR(10) DEFAULT COALESCE(B'1000000'),
-d01 TIME DEFAULT COALESCE(TIME'10:20:30'),
-d02 DATE DEFAULT COALESCE(DATE'2001-01-01'),
-d03 DATETIME DEFAULT COALESCE(TIMESTAMP'2001-01-01 10:20:30')
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i01` int(11) DEFAULT coalesce(1),
- `i02` int(11) DEFAULT coalesce(0x3939),
- `i03` int(11) DEFAULT coalesce(1.0),
- `i04` int(11) DEFAULT coalesce(1e0),
- `i05` int(11) DEFAULT coalesce(NULL),
- `f01` double DEFAULT coalesce(pi()),
- `s01` varchar(10) DEFAULT coalesce(_latin1'test'),
- `s02` varchar(10) DEFAULT coalesce('test'),
- `s03` varchar(10) DEFAULT coalesce(0x40),
- `s04` varchar(10) DEFAULT coalesce(X'40'),
- `s05` varchar(10) DEFAULT coalesce(0x40),
- `d01` time DEFAULT coalesce(TIME'10:20:30'),
- `d02` date DEFAULT coalesce(DATE'2001-01-01'),
- `d03` datetime DEFAULT coalesce(TIMESTAMP'2001-01-01 10:20:30')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ();
-SELECT * FROM t1;
-i01 1
-i02 99
-i03 1
-i04 1
-i05 NULL
-f01 3.141592653589793
-s01 test
-s02 test
-s03 @
-s04 @
-s05 @
-d01 10:20:30
-d02 2001-01-01
-d03 2001-01-01 10:20:30
-DROP TABLE t1;
-#
-# TINYINT: out of range
-#
-CREATE TABLE t1 (a TINYINT DEFAULT 300 NOT NULL);
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a TINYINT DEFAULT 128 NOT NULL);
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a TINYINT DEFAULT -500 NOT NULL);
-ERROR 42000: Invalid default value for 'a'
-#
-# INT: simple numeric expressions
-#
-CREATE TABLE t1 (a INT DEFAULT 1 NOT NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL DEFAULT 1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT * FROM t1;
-a
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT DEFAULT COALESCE(1) NOT NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL DEFAULT coalesce(1)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT * FROM t1;
-a
-1
-DROP TABLE t1;
-#
-# INT: simple string expressions
-#
-CREATE TABLE t1 (a INT DEFAULT '1' NOT NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL DEFAULT 1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT * FROM t1;
-a
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT DEFAULT CONCAT('1') NOT NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL DEFAULT concat('1')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT * FROM t1;
-a
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT DEFAULT COALESCE('1') NOT NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL DEFAULT coalesce('1')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT * FROM t1;
-a
-1
-DROP TABLE t1;
-#
-# INT: string expressions with garbage
-#
-CREATE TABLE t1 (a INT DEFAULT 'x');
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a INT DEFAULT CONCAT('x'));
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a INT DEFAULT COALESCE('x'));
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a INT DEFAULT (((((COALESCE('x')))))));
-ERROR 42000: Invalid default value for 'a'
-#
-# INT: string expressions with numbers + garbage
-#
-CREATE TABLE t1 (a INT DEFAULT '1x');
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a INT DEFAULT COALESCE('1x'));
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a INT DEFAULT CONCAT('1x'));
-ERROR 42000: Invalid default value for 'a'
-#
-# INT: string expressions with numbers + trailing space
-#
-CREATE TABLE t1 (a INT DEFAULT '1 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT 1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT * FROM t1;
-a
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT DEFAULT CONCAT('1 '));
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT concat('1 ')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1;
-a
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT DEFAULT COALESCE('1 '));
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT coalesce('1 ')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1;
-a
-1
-DROP TABLE t1;
-#
-# INT: a HEX value
-#
-CREATE TABLE t1 (a INT DEFAULT 0x61 NOT NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL DEFAULT 97
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT * FROM t1;
-a
-97
-DROP TABLE t1;
-#
-# VARCHAR: good defaults
-#
-CREATE TABLE t1 (a VARCHAR(30) DEFAULT 'xxx' NOT NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) NOT NULL DEFAULT 'xxx'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT * FROM t1;
-a
-xxx
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(2) DEFAULT 0x41 NOT NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(2) NOT NULL DEFAULT 'A'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(2) DEFAULT CONCAT(0x41) NOT NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(2) NOT NULL DEFAULT concat(0x41)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT * FROM t1;
-a
-A
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(2) DEFAULT COALESCE(0x41) NOT NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(2) NOT NULL DEFAULT coalesce(0x41)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT * FROM t1;
-a
-A
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(2) DEFAULT CONCAT(_utf8 0x41) NOT NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(2) NOT NULL DEFAULT concat(_utf8'A')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT * FROM t1;
-a
-A
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(2) DEFAULT CONCAT(_utf8 X'41') NOT NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(2) NOT NULL DEFAULT concat(_utf8'A')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-SELECT * FROM t1;
-a
-A
-DROP TABLE t1;
-#
-# VARCHAR: Too long default
-#
-CREATE TABLE t1 (a VARCHAR(2) DEFAULT 'xxx' NOT NULL);
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a VARCHAR(2) DEFAULT CONCAT('xxx') NOT NULL);
-ERROR 42000: Invalid default value for 'a'
-#
-# VARCHAR: Too long default with non-important data
-#
-CREATE TABLE t1 (a VARCHAR(2) DEFAULT 'xx ' NOT NULL);
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a VARCHAR(2) DEFAULT CONCAT('xx ') NOT NULL);
-ERROR 42000: Invalid default value for 'a'
-#
-# VARCHAR: conversion failures
-#
-CREATE TABLE t1 (a VARCHAR(2) CHARACTER SET latin1 DEFAULT _utf8 X'D18F' NOT NULL);
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a VARCHAR(2) CHARACTER SET latin1 DEFAULT CONCAT(_utf8 X'D18F') NOT NULL);
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a VARCHAR(2) CHARACTER SET latin1 DEFAULT CONCAT(_utf8 0xD18F) NOT NULL);
-ERROR 42000: Invalid default value for 'a'
-#
-# Field as a default value
-#
-CREATE TABLE t1 (a INT, b INT DEFAULT (a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT `a`
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (1, 1);
-INSERT INTO t1 VALUES (DEFAULT, DEFAULT);
-INSERT INTO t1 VALUES (1, DEFAULT);
-INSERT INTO t1 VALUES (DEFAULT, 1);
-SELECT * FROM t1;
-a b
-1 1
-NULL NULL
-1 1
-NULL 1
-DROP TABLE t1;
-#
-# Function DEFAULT(field)
-#
-CREATE TABLE t1 (a INT DEFAULT(DEFAULT(b)), b INT DEFAULT 1);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT default(`b`),
- `b` int(11) DEFAULT 1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT, DEFAULT);
-SELECT * FROM t1;
-a b
-1 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT DEFAULT 1, b INT DEFAULT(DEFAULT(a)));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT 1,
- `b` int(11) DEFAULT default(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT, DEFAULT);
-SELECT * FROM t1;
-a b
-1 1
-DROP TABLE t1;
-#
-# SQL Standard <datetime value function> as a <default option>
-#
-CREATE TABLE t1 (a DATETIME DEFAULT CURRENT_TIMESTAMP);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` datetime DEFAULT current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a TIME DEFAULT CURRENT_TIME);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` time DEFAULT curtime()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE DEFAULT CURRENT_DATE);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT curdate()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# DECIMAL + CURRENT_TIMESTAMP, no truncation
-#
-CREATE TABLE t1 (a DECIMAL(30,6) DEFAULT CURRENT_TIMESTAMP(6));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(30,6) DEFAULT current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ();
-SELECT * FROM t1;
-a
-20010101102030.123456
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL(30,6) DEFAULT COALESCE(CURRENT_TIMESTAMP(6)));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(30,6) DEFAULT coalesce(current_timestamp(6))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES();
-INSERT IGNORE INTO t1 VALUES();
-SET sql_mode = 'STRICT_ALL_TABLES';
-INSERT INTO t1 VALUES();
-SET sql_mode = DEFAULT;
-DROP TABLE t1;
-#
-# DECIMAL + CURRENT_TIME, no truncation
-#
-CREATE TABLE t1 (a DECIMAL(30,6) DEFAULT COALESCE(CURRENT_TIME(6)));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(30,6) DEFAULT coalesce(curtime(6))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT IGNORE INTO t1 VALUES();
-DROP TABLE t1;
-#
-# DECIMAL + CURRENT_DATE, no truncation
-#
-CREATE TABLE t1 (a DECIMAL(30,6) DEFAULT COALESCE(CURRENT_DATE));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(30,6) DEFAULT coalesce(curdate())
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT IGNORE INTO t1 VALUES();
-DROP TABLE t1;
-#
-# COALESCE for SQL Standard <datetime value function>
-#
-CREATE TABLE t1 (a TIMESTAMP DEFAULT COALESCE(CURRENT_TIMESTAMP));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp NOT NULL DEFAULT coalesce(current_timestamp())
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE DEFAULT COALESCE(CURRENT_DATE));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT coalesce(curdate())
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a TIME DEFAULT COALESCE(CURRENT_TIME));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` time DEFAULT coalesce(curtime())
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (
-a TIMESTAMP DEFAULT CURRENT_TIMESTAMP(6),
-b TIMESTAMP DEFAULT COALESCE(CURRENT_TIMESTAMP(6))
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp NOT NULL DEFAULT current_timestamp(),
- `b` timestamp NOT NULL DEFAULT coalesce(current_timestamp(6))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ();
-SELECT CURRENT_TIMESTAMP(6);
-CURRENT_TIMESTAMP(6)
-2001-01-01 10:20:30.123456
-SELECT * FROM t1;
-a b
-2001-01-01 10:20:30 2001-01-01 10:20:30
-DROP TABLE t1;
-CREATE TABLE t1 (
-a DECIMAL(30,0) DEFAULT CURRENT_TIMESTAMP(6),
-b DECIMAL(30,0) DEFAULT COALESCE(CURRENT_TIMESTAMP(6))
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(30,0) DEFAULT current_timestamp(6),
- `b` decimal(30,0) DEFAULT coalesce(current_timestamp(6))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT IGNORE INTO t1 VALUES ();
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-Note 1265 Data truncated for column 'b' at row 1
-SELECT * FROM t1;
-a b
-20010101102030 20010101102030
-DROP TABLE t1;
-#
-# Check DEFAULT() function
-#
-CREATE TABLE `t1` (`a` int(11) DEFAULT (3+3),`b` int(11) DEFAULT '1000');
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT (3 + 3),
- `b` int(11) DEFAULT 1000
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values (1,1),(2,2);
-insert into t1 values (default,default);
-select * from t1;
-a b
-1 1
-2 2
-6 1000
-select default(a),b from t1;
-default(a) b
-6 1
-6 2
-6 1000
-select a,default(b) from t1;
-a default(b)
-1 1000
-2 1000
-6 1000
-drop table t1;
-#
-# Real functions
-#
-CREATE TABLE t1 (a DECIMAL(10,1), b DOUBLE DEFAULT CAST(a AS DOUBLE));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(10,1) DEFAULT NULL,
- `b` double DEFAULT (cast(`a` as double))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (10.1, DEFAULT);
-SELECT * FROM t1;
-a b
-10.1 10.1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE, b DOUBLE DEFAULT EXP(a), c DOUBLE DEFAULT LOG(b), d DOUBLE DEFAULT LOG(4, b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` double DEFAULT NULL,
- `b` double DEFAULT exp(`a`),
- `c` double DEFAULT log(`b`),
- `d` double DEFAULT log(4,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (2, DEFAULT, DEFAULT, DEFAULT);
-SELECT * FROM t1;
-a b c d
-2 7.38905609893065 2 1.4426950408889634
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b DOUBLE DEFAULT LOG2(a), c DOUBLE DEFAULT LOG10(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` double DEFAULT log2(`a`),
- `c` double DEFAULT log10(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (4, DEFAULT, DEFAULT);
-INSERT INTO t1 VALUES (100, DEFAULT, DEFAULT);
-SELECT * FROM t1;
-a b c
-4 2 0.6020599913279624
-100 6.643856189774725 2
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE, b DOUBLE DEFAULT SQRT(a), c DOUBLE DEFAULT POW(a,3));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` double DEFAULT NULL,
- `b` double DEFAULT sqrt(`a`),
- `c` double DEFAULT pow(`a`,3)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (4, DEFAULT, DEFAULT);
-SELECT * FROM t1;
-a b c
-4 2 64
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE, b DOUBLE DEFAULT ACOS(a), c DOUBLE DEFAULT ASIN(a), d DOUBLE DEFAULT ATAN(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` double DEFAULT NULL,
- `b` double DEFAULT acos(`a`),
- `c` double DEFAULT asin(`a`),
- `d` double DEFAULT atan(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (1, DEFAULT, DEFAULT, DEFAULT);
-SELECT a, b/PI(), c/PI(), d/PI() FROM t1;
-a b/PI() c/PI() d/PI()
-1 0 0.5 0.25
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE, b DOUBLE DEFAULT COS(a), c DOUBLE DEFAULT SIN(a), d DOUBLE DEFAULT TAN(a), e DOUBLE DEFAULT COT(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` double DEFAULT NULL,
- `b` double DEFAULT cos(`a`),
- `c` double DEFAULT sin(`a`),
- `d` double DEFAULT tan(`a`),
- `e` double DEFAULT cot(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (PI()/3);
-SELECT ROUND(a,3), ROUND(b,3), ROUND(c,3), ROUND(d,3), ROUND(e,3) FROM t1;
-ROUND(a,3) ROUND(b,3) ROUND(c,3) ROUND(d,3) ROUND(e,3)
-1.047 0.500 0.866 1.732 0.577
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE DEFAULT RAND());
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` double DEFAULT rand()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT);
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE, b DOUBLE DEFAULT DEGREES(a), c DOUBLE DEFAULT RADIANS(b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` double DEFAULT NULL,
- `b` double DEFAULT degrees(`a`),
- `c` double DEFAULT radians(`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (PI(), DEFAULT, DEFAULT);
-SELECT * FROM t1;
-a b c
-3.141592653589793 180 3.141592653589793
-DROP TABLE t1;
-#
-# INT result functions
-#
-CREATE TABLE t1 (a INT, b INT DEFAULT INTERVAL(a, 10, 20, 30, 40));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT interval(`a`,10,20,30,40)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (34);
-SELECT * FROM t1;
-a b
-34 3
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT (a DIV b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT (`a` DIV `b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a, b) VALUES (13, 3);
-SELECT * FROM t1;
-a b c
-13 3 4
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT DEFAULT SIGN(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT sign(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (-10),(0), (10);
-SELECT * FROM t1;
-a b
--10 -1
-0 0
-10 1
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(30), b INT DEFAULT FIELD(a, 'Hej', 'ej', 'Heja', 'hej', 'foo'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) DEFAULT NULL,
- `b` int(11) DEFAULT field(`a`,'Hej','ej','Heja','hej','foo')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('ej');
-SELECT * FROM t1;
-a b
-ej 2
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(30), b INT DEFAULT FIND_IN_SET(a, 'Hej,ej,Heja,hej,foo'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) DEFAULT NULL,
- `b` int(11) DEFAULT find_in_set(`a`,'Hej,ej,Heja,hej,foo')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('ej');
-SELECT * FROM t1;
-a b
-ej 2
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(30), b INT DEFAULT ASCII(a), c INT DEFAULT ORD(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) DEFAULT NULL,
- `b` int(11) DEFAULT ascii(`a`),
- `c` int(11) DEFAULT ord(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('a');
-SELECT * FROM t1;
-a b c
-a 97 97
-DROP TABLE t1;
-CREATE TABLE t1 (a TEXT DEFAULT UUID_SHORT());
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text DEFAULT uuid_short()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ();
-SELECT a>0 FROM t1;
-a>0
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT DEFAULT BENCHMARK(1,1));
-ERROR HY000: Function or expression 'benchmark()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT GET_LOCK('a',1));
-ERROR HY000: Function or expression 'get_lock()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT RELEASE_LOCK('a'));
-ERROR HY000: Function or expression 'release_lock()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT IS_USED_LOCK('a'));
-ERROR HY000: Function or expression 'is_used_lock()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT IS_FREE_LOCK('a'));
-ERROR HY000: Function or expression 'is_free_lock()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT SLEEP(1));
-ERROR HY000: Function or expression 'sleep()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT ROW_COUNT());
-ERROR HY000: Function or expression 'row_count()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT FOUND_ROWS());
-ERROR HY000: Function or expression 'found_rows()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT MASTER_POS_WAIT('test',100));
-ERROR HY000: Function or expression 'master_pos_wait()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a INT DEFAULT MASTER_GTID_WAIT('test'));
-ERROR HY000: Function or expression 'master_gtid_wait()' cannot be used in the DEFAULT clause of `a`
-CREATE TABLE t1 (a VARCHAR(30), b DOUBLE DEFAULT MATCH (a) AGAINST('bbbb' IN BOOLEAN MODE));
-ERROR HY000: Function or expression 'match ... against()' cannot be used in the DEFAULT clause of `b`
-#
-# Temporal functions
-#
-# Item_temporal_hybrid_func
-CREATE TABLE t1 (a DATE, b INT, c DATE DEFAULT DATE_ADD(a, INTERVAL b DAY));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` date DEFAULT (`a` + interval `b` day)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('2001-01-01', 30, DEFAULT);
-SELECT * FROM t1;
-a b c
-2001-01-01 30 2001-01-31
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b TIME, c DATETIME DEFAULT ADDTIME(a, b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` time DEFAULT NULL,
- `c` datetime DEFAULT addtime(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('2001-01-01', '10:20:30', DEFAULT);
-SELECT * FROM t1;
-a b c
-2001-01-01 10:20:30 2001-01-01 10:20:30
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(32), b VARCHAR(32), c DATE DEFAULT STR_TO_DATE(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(32) DEFAULT NULL,
- `b` varchar(32) DEFAULT NULL,
- `c` date DEFAULT str_to_date(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('01,5,2013','%d,%m,%Y', DEFAULT);
-SELECT * FROM t1;
-a b c
-01,5,2013 %d,%m,%Y 2013-05-01
-DROP TABLE t1;
-# Item_datefunc
-SET time_zone='-10:00';
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 23:59:59');
-CREATE TABLE t1 (a DATE DEFAULT CURDATE(), b DATE DEFAULT UTC_DATE());
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT curdate(),
- `b` date DEFAULT utc_date()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ();
-SELECT * FROM t1;
-a b
-2001-01-01 2001-01-02
-DROP TABLE t1;
-SET time_zone=DEFAULT, timestamp= DEFAULT;
-CREATE TABLE t1 (a INT, b DATE DEFAULT FROM_DAYS(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` date DEFAULT from_days(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (730669, DEFAULT);
-SELECT * FROM t1;
-a b
-730669 2000-07-03
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b DATE DEFAULT LAST_DAY(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` date DEFAULT last_day(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('2003-02-05', DEFAULT);
-SELECT * FROM t1;
-a b
-2003-02-05 2003-02-28
-DROP TABLE t1;
-CREATE TABLE t1 (yy INT, yd INT, d DATE DEFAULT MAKEDATE(yy, yd));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `yy` int(11) DEFAULT NULL,
- `yd` int(11) DEFAULT NULL,
- `d` date DEFAULT makedate(`yy`,`yd`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (2011,32,DEFAULT);
-SELECT * FROM t1;
-yy yd d
-2011 32 2011-02-01
-DROP TABLE t1;
-# Item_timefunc
-SET time_zone='-10:00';
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 23:59:59');
-CREATE TABLE t1 (a TIME DEFAULT CURTIME(), b TIME DEFAULT UTC_TIME());
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` time DEFAULT curtime(),
- `b` time DEFAULT utc_time()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ();
-SELECT * FROM t1;
-a b
-23:59:59 09:59:59
-DROP TABLE t1;
-SET time_zone=DEFAULT, timestamp= DEFAULT;
-CREATE TABLE t1 (a INT, b TIME DEFAULT SEC_TO_TIME(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` time DEFAULT sec_to_time(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (2378, DEFAULT);
-SELECT * FROM t1;
-a b
-2378 00:39:38
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME, b DATETIME, c TIME DEFAULT TIMEDIFF(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` datetime DEFAULT NULL,
- `b` datetime DEFAULT NULL,
- `c` time DEFAULT timediff(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('2000:01:01 00:00:00', '2000:01:02 10:20:30', DEFAULT);
-SELECT * FROM t1;
-a b c
-2000-01-01 00:00:00 2000-01-02 10:20:30 -34:20:30
-DROP TABLE t1;
-CREATE TABLE t1 (hh INT, mm INT, ss INT, t TIME DEFAULT MAKETIME(hh,mm,ss));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `hh` int(11) DEFAULT NULL,
- `mm` int(11) DEFAULT NULL,
- `ss` int(11) DEFAULT NULL,
- `t` time DEFAULT maketime(`hh`,`mm`,`ss`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (10,20,30,DEFAULT);
-SELECT * FROM t1;
-hh mm ss t
-10 20 30 10:20:30
-DROP TABLE t1;
-# Item_datetimefunc
-SET time_zone='-10:00';
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 23:59:59');
-CREATE TABLE t1 (a TIMESTAMP DEFAULT NOW(), b TIMESTAMP DEFAULT UTC_TIMESTAMP());
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp NOT NULL DEFAULT current_timestamp(),
- `b` timestamp NOT NULL DEFAULT utc_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ();
-SELECT * FROM t1;
-a b
-2001-01-01 23:59:59 2001-01-02 09:59:59
-DROP TABLE t1;
-SET time_zone=DEFAULT, timestamp= DEFAULT;
-CREATE TABLE t1 (a TIMESTAMP(6) DEFAULT SYSDATE(6), s INT, b TIMESTAMP(6) DEFAULT SYSDATE(6));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(6) NOT NULL DEFAULT sysdate(6),
- `s` int(11) DEFAULT NULL,
- `b` timestamp(6) NOT NULL DEFAULT sysdate(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (DEFAULT(a), SLEEP(0.1), DEFAULT(b));
-SELECT b>a FROM t1;
-b>a
-1
-DROP TABLE t1;
-SET time_zone='+00:00';
-CREATE TABLE t1 (a INT, b TIMESTAMP DEFAULT FROM_UNIXTIME(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` timestamp NOT NULL DEFAULT from_unixtime(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (1447430881, DEFAULT);
-SELECT * FROM t1;
-a b
-1447430881 2015-11-13 16:08:01
-DROP TABLE t1;
-SET time_zone=DEFAULT;
-CREATE TABLE t1 (a TIMESTAMP, b TIMESTAMP DEFAULT CONVERT_TZ(a, '-10:00', '+10:00'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `b` timestamp NOT NULL DEFAULT convert_tz(`a`,'-10:00','+10:00')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('2001-01-01 10:20:30', DEFAULT);
-SELECT * FROM t1;
-a b
-2001-01-01 10:20:30 2001-01-02 06:20:30
-DROP TABLE t1;
-# Item_temporal_typecast
-CREATE TABLE t1 (a INT, b DATE DEFAULT CAST(a AS DATE));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` date DEFAULT cast(`a` as date)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (20010203, DEFAULT);
-SELECT * FROM t1;
-a b
-20010203 2001-02-03
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b TIME DEFAULT CAST(a AS TIME));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` time DEFAULT cast(`a` as time)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (102030, DEFAULT);
-SELECT * FROM t1;
-a b
-102030 10:20:30
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT, b DATETIME DEFAULT CAST(a AS DATETIME));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(20) DEFAULT NULL,
- `b` datetime DEFAULT cast(`a` as datetime)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (20010203102030, DEFAULT);
-SELECT * FROM t1;
-a b
-20010203102030 2001-02-03 10:20:30
-DROP TABLE t1;
-#
-# Functions with temporal input
-#
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT PERIOD_ADD(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT period_add(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES (200801, 2);
-SELECT * FROM t1;
-a b c
-200801 2 200803
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT PERIOD_DIFF(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT period_diff(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES (200802, 200703);
-SELECT * FROM t1;
-a b c
-200802 200703 11
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT DEFAULT TO_DAYS(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT to_days(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (950501);
-SELECT * FROM t1;
-a b
-950501 728779
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b INT DEFAULT TO_DAYS(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` int(11) DEFAULT to_days(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('2007-10-07');
-SELECT * FROM t1;
-a b
-2007-10-07 733321
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b BIGINT DEFAULT TO_SECONDS(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` bigint(20) DEFAULT to_seconds(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (950501);
-SELECT * FROM t1;
-a b
-950501 62966505600
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b BIGINT DEFAULT TO_SECONDS(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` bigint(20) DEFAULT to_seconds(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('2009-11-29');
-SELECT * FROM t1;
-a b
-2009-11-29 63426672000
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME, b BIGINT DEFAULT TO_SECONDS(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` datetime DEFAULT NULL,
- `b` bigint(20) DEFAULT to_seconds(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('2009-11-29 13:43:32');
-SELECT * FROM t1;
-a b
-2009-11-29 13:43:32 63426721412
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b BIGINT DEFAULT DAYOFMONTH(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` bigint(20) DEFAULT dayofmonth(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('2007-02-03');
-SELECT * FROM t1;
-a b
-2007-02-03 3
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b BIGINT DEFAULT DAYOFWEEK(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` bigint(20) DEFAULT dayofweek(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('2007-02-03');
-SELECT * FROM t1;
-a b
-2007-02-03 7
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b BIGINT DEFAULT DAYOFYEAR(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` bigint(20) DEFAULT dayofyear(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('2007-02-03');
-SELECT * FROM t1;
-a b
-2007-02-03 34
-DROP TABLE t1;
-CREATE TABLE t1 (a TIME, b INT DEFAULT HOUR(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` time DEFAULT NULL,
- `b` int(11) DEFAULT hour(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('10:05:03');
-SELECT * FROM t1;
-a b
-10:05:03 10
-DROP TABLE t1;
-CREATE TABLE t1 (a TIME, b INT DEFAULT MINUTE(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` time DEFAULT NULL,
- `b` int(11) DEFAULT minute(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('10:05:03');
-SELECT * FROM t1;
-a b
-10:05:03 5
-DROP TABLE t1;
-CREATE TABLE t1 (a TIME, b INT DEFAULT SECOND(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` time DEFAULT NULL,
- `b` int(11) DEFAULT second(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('10:05:03');
-SELECT * FROM t1;
-a b
-10:05:03 3
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME(6), b INT DEFAULT MICROSECOND(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` datetime(6) DEFAULT NULL,
- `b` int(11) DEFAULT microsecond(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('2009-12-31 23:59:59.000010');
-SELECT * FROM t1;
-a b
-2009-12-31 23:59:59.000010 10
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b INT DEFAULT YEAR(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` int(11) DEFAULT year(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('1987-01-01');
-SELECT * FROM t1;
-a b
-1987-01-01 1987
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b INT DEFAULT MONTH(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` int(11) DEFAULT month(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('1987-01-01');
-SELECT * FROM t1;
-a b
-1987-01-01 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b INT DEFAULT WEEK(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` int(11) DEFAULT week(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('1987-02-01');
-SELECT * FROM t1;
-a b
-1987-02-01 5
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b INT DEFAULT YEARWEEK(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` int(11) DEFAULT yearweek(`a`,0)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('2000-01-01');
-SELECT * FROM t1;
-a b
-2000-01-01 199952
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b INT DEFAULT QUARTER(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` int(11) DEFAULT quarter(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('2008-04-01');
-SELECT * FROM t1;
-a b
-2008-04-01 2
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b INT DEFAULT EXTRACT(YEAR FROM a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` int(11) DEFAULT extract(year from `a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('2009-07-02');
-SELECT * FROM t1;
-a b
-2009-07-02 2009
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME, b INT DEFAULT EXTRACT(YEAR_MONTH FROM a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` datetime DEFAULT NULL,
- `b` int(11) DEFAULT extract(year_month from `a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('2009-07-02 01:02:03');
-SELECT * FROM t1;
-a b
-2009-07-02 01:02:03 200907
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME, b INT DEFAULT EXTRACT(DAY_MINUTE FROM a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` datetime DEFAULT NULL,
- `b` int(11) DEFAULT extract(day_minute from `a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('2009-07-02 01:02:03');
-SELECT * FROM t1;
-a b
-2009-07-02 01:02:03 20102
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME(6), b INT DEFAULT EXTRACT(MICROSECOND FROM a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` datetime(6) DEFAULT NULL,
- `b` int(11) DEFAULT extract(microsecond from `a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('2009-07-02 01:02:03.000123');
-SELECT * FROM t1;
-a b
-2009-07-02 01:02:03.000123 123
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b DATE, c INT DEFAULT TIMESTAMPDIFF(MONTH,a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` date DEFAULT NULL,
- `c` int(11) DEFAULT timestampdiff(MONTH,`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES ('2003-02-01','2003-05-01');
-SELECT * FROM t1;
-a b c
-2003-02-01 2003-05-01 3
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b DATE, c INT DEFAULT TIMESTAMPDIFF(YEAR,a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` date DEFAULT NULL,
- `c` int(11) DEFAULT timestampdiff(YEAR,`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES ('2002-05-01','2001-01-01');
-SELECT * FROM t1;
-a b c
-2002-05-01 2001-01-01 -1
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b DATETIME, c INT DEFAULT TIMESTAMPDIFF(MINUTE,a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL,
- `b` datetime DEFAULT NULL,
- `c` int(11) DEFAULT timestampdiff(MINUTE,`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES ('2003-02-01','2003-05-01 12:05:55');
-SELECT * FROM t1;
-a b c
-2003-02-01 2003-05-01 12:05:55 128885
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 ( col INT DEFAULT ( 1 LIKE ( NOW() BETWEEN '2000-01-01' AND '2012-12-12' ) ) );
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `col` int(11) DEFAULT (1 like (current_timestamp() between '2000-01-01' and '2012-12-12'))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SET timestamp = UNIX_TIMESTAMP( '2004-04-04' );
-INSERT INTO t1 VALUES( DEFAULT );
-SET timestamp = DEFAULT;
-INSERT INTO t1 VALUES( DEFAULT );
-SELECT * FROM t1;
-col
-1
-0
-DROP TABLE t1;
-#
-# Hybrid type functions
-#
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT COALESCE(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT coalesce(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (NULL, 1, DEFAULT);
-SELECT * FROM t1;
-a b c
-NULL 1 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT IFNULL(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT ifnull(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (NULL, 2, DEFAULT);
-INSERT INTO t1 VALUES (1, 2, DEFAULT);
-SELECT * FROM t1;
-a b c
-NULL 2 2
-1 2 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT NULLIF(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT nullif(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (1, 1, DEFAULT);
-INSERT INTO t1 VALUES (1, 2, DEFAULT);
-SELECT * FROM t1;
-a b c
-1 1 NULL
-1 2 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT IF(a,b,2));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT if(`a`,`b`,2)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (0, 1, DEFAULT);
-INSERT INTO t1 VALUES (1, 1, DEFAULT);
-SELECT * FROM t1;
-a b c
-0 1 2
-1 1 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT CASE WHEN a THEN b ELSE 2 END);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT (case when `a` then `b` else 2 end)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (0, 1, DEFAULT);
-INSERT INTO t1 VALUES (1, 1, DEFAULT);
-SELECT * FROM t1;
-a b c
-0 1 2
-1 1 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT DEFAULT (-a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT (-`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT (-`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (10, DEFAULT);
-SELECT * FROM t1;
-a b
-10 -10
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT DEFAULT ABS(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT abs(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (-10, DEFAULT);
-SELECT * FROM t1;
-a b
--10 10
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE, b INT DEFAULT CEILING(a), c INT DEFAULT FLOOR(a), d INT DEFAULT ROUND(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` double DEFAULT NULL,
- `b` int(11) DEFAULT ceiling(`a`),
- `c` int(11) DEFAULT floor(`a`),
- `d` int(11) DEFAULT round(`a`,0)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (1.5, DEFAULT, DEFAULT, DEFAULT);
-INSERT INTO t1 VALUES (-1.5, DEFAULT, DEFAULT, DEFAULT);
-SELECT * FROM t1;
-a b c d
-1.5 2 1 2
--1.5 -1 -2 -2
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT (a+b), d INT DEFAULT (a-b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT (`a` + `b`),
- `d` int(11) DEFAULT (`a` - `b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (2, 1, DEFAULT, DEFAULT);
-SELECT * FROM t1;
-a b c d
-2 1 3 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT (a*b), d INT DEFAULT (a/b), e INT DEFAULT (a MOD b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT (`a` * `b`),
- `d` int(11) DEFAULT (`a` / `b`),
- `e` int(11) DEFAULT (`a` MOD `b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT (`a` * `b`),
- `d` int(11) DEFAULT (`a` / `b`),
- `e` int(11) DEFAULT (`a` MOD `b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (7, 3, DEFAULT, DEFAULT, DEFAULT);
-SELECT * FROM t1;
-a b c d e
-7 3 21 2 1
-DROP TABLE t1;
-SET time_zone='+00:00';
-CREATE TABLE t1 (a DATETIME, b INT DEFAULT UNIX_TIMESTAMP(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` datetime DEFAULT NULL,
- `b` int(11) DEFAULT unix_timestamp(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('2001-01-01 10:20:30', DEFAULT);
-SELECT * FROM t1;
-a b
-2001-01-01 10:20:30 978344430
-DROP TABLE t1;
-SET time_zone=DEFAULT;
-CREATE TABLE t1 (a TIME, b INT DEFAULT TIME_TO_SEC(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` time DEFAULT NULL,
- `b` int(11) DEFAULT time_to_sec(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ('22:23:00', DEFAULT);
-SELECT * FROM t1;
-a b
-22:23:00 80580
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT LEAST(a,b), d INT DEFAULT GREATEST(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT least(`a`,`b`),
- `d` int(11) DEFAULT greatest(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (0, 1, DEFAULT, DEFAULT);
-INSERT INTO t1 VALUES (1, 1, DEFAULT, DEFAULT);
-SELECT * FROM t1;
-a b c d
-0 1 0 1
-1 1 1 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT LAST_VALUE(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT last_value(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (1, 2, DEFAULT);
-SELECT * FROM t1;
-a b c
-1 2 2
-DROP TABLE t1;
-#
-# CAST
-#
-CREATE TABLE t1 (a VARCHAR(30), b DECIMAL(10,6) DEFAULT CAST(a AS DECIMAL(10,1)));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) DEFAULT NULL,
- `b` decimal(10,6) DEFAULT (cast(`a` as decimal(10,1)))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('123.456');
-SELECT * FROM t1;
-a b
-123.456 123.500000
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL(10,3),
-b VARCHAR(10) DEFAULT CAST(a AS CHAR(10)),
-c VARCHAR(10) DEFAULT CAST(a AS CHAR(4)));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(10,3) DEFAULT NULL,
- `b` varchar(10) DEFAULT (cast(`a` as char(10) charset latin1)),
- `c` varchar(10) DEFAULT (cast(`a` as char(4) charset latin1))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT IGNORE INTO t1 (a) VALUES (123.456);
-Warnings:
-Warning 1292 Truncated incorrect CHAR(4) value: '123.456'
-SELECT * FROM t1;
-a b c
-123.456 123.456 123.
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT UNSIGNED DEFAULT CAST(a AS UNSIGNED));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(10) unsigned DEFAULT (cast(`a` as unsigned))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT IGNORE INTO t1 (a) VALUES (-1);
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-Warning 1264 Out of range value for column 'b' at row 1
-SELECT * FROM t1;
-a b
--1 4294967295
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT UNSIGNED, b BIGINT SIGNED DEFAULT CAST(a AS SIGNED));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(20) unsigned DEFAULT NULL,
- `b` bigint(20) DEFAULT (cast(`a` as signed))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (0xFFFFFFFFFFFFFFFF);
-SELECT * FROM t1;
-a b
-18446744073709551615 -1
-DROP TABLE t1;
-CREATE TABLE t1 (
-a VARCHAR(10) CHARACTER SET latin1,
-b VARCHAR(10) CHARACTER SET latin1 DEFAULT a COLLATE latin1_bin,
-c VARCHAR(10) CHARACTER SET utf8 DEFAULT CONVERT(a USING utf8),
-d VARBINARY(10) DEFAULT (BINARY(a))
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT `a`,
- `c` varchar(10) CHARACTER SET utf8 DEFAULT convert(`a` using utf8),
- `d` varbinary(10) DEFAULT (cast(`a` as char charset binary))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('a');
-SELECT * FROM t1;
-a b c d
-a a a a
-DROP TABLE t1;
-#
-# Bit functions
-#
-CREATE TABLE t1 (a INT, b INT DEFAULT BIT_COUNT(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT bit_count(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (7);
-SELECT * FROM t1;
-a b
-7 3
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT (a|b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT (`a` | `b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES (1,2);
-SELECT * FROM t1;
-a b c
-1 2 3
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT (a&b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT (`a` & `b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES (5,4);
-SELECT * FROM t1;
-a b c
-5 4 4
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT (a^b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT (`a` ^ `b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES (11,3);
-SELECT * FROM t1;
-a b c
-11 3 8
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT (a&~b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT (`a` & ~`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES (5,1);
-SELECT * FROM t1;
-a b c
-5 1 4
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT (a<<b), d INT DEFAULT (a>>b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT (`a` << `b`),
- `d` int(11) DEFAULT (`a` >> `b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES (5,1);
-SELECT * FROM t1;
-a b c d
-5 1 10 2
-DROP TABLE t1;
-#
-# String functions
-#
-CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(20) DEFAULT REVERSE(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(20) DEFAULT reverse(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('abcd');
-SELECT * FROM t1;
-a b
-abcd dcba
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(10) DEFAULT UPPER(a), c VARCHAR(10) DEFAULT LOWER(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(10) DEFAULT ucase(`a`),
- `c` varchar(10) DEFAULT lcase(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('ABcd');
-SELECT * FROM t1;
-a b c
-ABcd ABCD abcd
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(10) DEFAULT LEFT(a,1), c VARCHAR(10) DEFAULT RIGHT(a,1), d VARCHAR(10) DEFAULT SUBSTR(a,2,2));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(10) DEFAULT left(`a`,1),
- `c` varchar(10) DEFAULT right(`a`,1),
- `d` varchar(10) DEFAULT substr(`a`,2,2)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('abcd');
-SELECT * FROM t1;
-a b c d
-abcd a d bc
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(20), b VARCHAR(20) DEFAULT SUBSTRING_INDEX(a,'.',2));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(20) DEFAULT NULL,
- `b` varchar(20) DEFAULT substring_index(`a`,'.',2)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('www.mariadb.org');
-SELECT * FROM t1;
-a b
-www.mariadb.org www.mariadb
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(10), c VARCHAR(20) DEFAULT CONCAT(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(10) DEFAULT NULL,
- `c` varchar(20) DEFAULT concat(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES ('a','b');
-SELECT * FROM t1;
-a b c
-a b ab
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(10), c VARCHAR(20) DEFAULT CONCAT_WS(',',a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(10) DEFAULT NULL,
- `c` varchar(20) DEFAULT concat_ws(',',`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES ('a','b');
-SELECT * FROM t1;
-a b c
-a b a,b
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(10) DEFAULT REPLACE(a,'a','A'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(10) DEFAULT replace(`a`,'a','A')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('abc');
-SELECT * FROM t1;
-a b
-abc Abc
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(10) DEFAULT REGEXP_REPLACE(a,'[0-9]','.'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(10) DEFAULT regexp_replace(`a`,'[0-9]','.')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('a1b2c');
-SELECT * FROM t1;
-a b
-a1b2c a.b.c
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(10) DEFAULT REGEXP_SUBSTR(a,'[0-9]+'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(10) DEFAULT regexp_substr(`a`,'[0-9]+')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('ab12cd');
-SELECT * FROM t1;
-a b
-ab12cd 12
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(20), b VARCHAR(20) DEFAULT SOUNDEX(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(20) DEFAULT NULL,
- `b` varchar(20) DEFAULT soundex(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('tester');
-SELECT * FROM t1;
-a b
-tester T236
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(20), b VARCHAR(20) DEFAULT QUOTE(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(20) DEFAULT NULL,
- `b` varchar(20) DEFAULT quote(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('a\'b');
-SELECT * FROM t1;
-a b
-a'b 'a\'b'
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(10) DEFAULT LPAD(a,10,'.'), c VARCHAR(10) DEFAULT RPAD(a,10,'.'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(10) DEFAULT lpad(`a`,10,'.'),
- `c` varchar(10) DEFAULT rpad(`a`,10,'.')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('ab');
-SELECT * FROM t1;
-a b c
-ab ........ab ab........
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(10) DEFAULT LTRIM(a), c VARCHAR(10) DEFAULT RTRIM(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(10) DEFAULT ltrim(`a`),
- `c` varchar(10) DEFAULT rtrim(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (' ab ');
-SELECT a, HEX(b), HEX(c) FROM t1;
-a HEX(b) HEX(c)
- ab 616220 206162
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(10) DEFAULT TRIM(BOTH 'a' FROM a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(10) DEFAULT trim(both 'a' from `a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('abba');
-SELECT a, b FROM t1;
-a b
-abba bb
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b VARCHAR(10) DEFAULT SPACE(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` varchar(10) DEFAULT space(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (3);
-SELECT a, HEX(b) FROM t1;
-a HEX(b)
-3 202020
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b VARCHAR(10), c VARCHAR(10) DEFAULT REPEAT(b,a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` varchar(10) DEFAULT NULL,
- `c` varchar(10) DEFAULT repeat(`b`,`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES (3,'x');
-SELECT a, b, c FROM t1;
-a b c
-3 x xxx
-DROP TABLE t1;
-CREATE TABLE t1 (str VARCHAR(10), pos INT, len INT, newstr VARCHAR(10), result VARCHAR(10) DEFAULT INSERT(str,pos,len,newstr));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `str` varchar(10) DEFAULT NULL,
- `pos` int(11) DEFAULT NULL,
- `len` int(11) DEFAULT NULL,
- `newstr` varchar(10) DEFAULT NULL,
- `result` varchar(10) DEFAULT insert(`str`,`pos`,`len`,`newstr`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (str,pos,len,newstr) VALUES ('Quadratic', 3, 4, 'What');
-SELECT * FROM t1;
-str pos len newstr result
-Quadratic 3 4 What QuWhattic
-DROP TABLE t1;
-CREATE TABLE t1 (n INT, res VARCHAR(10) DEFAULT ELT(n,'ej', 'Heja', 'hej', 'foo'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `n` int(11) DEFAULT NULL,
- `res` varchar(10) DEFAULT elt(`n`,'ej','Heja','hej','foo')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (n) VALUES (1);
-SELECT * FROM t1;
-n res
-1 ej
-DROP TABLE t1;
-CREATE TABLE t1 (bits INT, res VARCHAR(10) DEFAULT MAKE_SET(bits,'a','b','c','d'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `bits` int(11) DEFAULT NULL,
- `res` varchar(10) DEFAULT make_set(`bits`,'a','b','c','d')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (bits) VALUES (1|4);
-SELECT * FROM t1;
-bits res
-5 a,c
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b VARCHAR(10) DEFAULT CHAR(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` varchar(10) DEFAULT char(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (77);
-SELECT * FROM t1;
-a b
-77 M
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b VARCHAR(10) DEFAULT CONV(a,10,16));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` varchar(10) DEFAULT conv(`a`,10,16)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (64);
-SELECT * FROM t1;
-a b
-64 40
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, c VARCHAR(30) DEFAULT FORMAT(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` varchar(30) DEFAULT format(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES (10000,3);
-SELECT * FROM t1;
-a b c
-10000 3 10,000.000
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, l VARCHAR(10), c VARCHAR(30) DEFAULT FORMAT(a,b,l));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `l` varchar(10) DEFAULT NULL,
- `c` varchar(30) DEFAULT format(`a`,`b`,`l`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b,l) VALUES (10000,2,'no_NO'),(10000,2,'ru_RU'),(10000,2,'ar_BH');
-SELECT * FROM t1;
-a b l c
-10000 2 no_NO 10.000,00
-10000 2 ru_RU 10 000,00
-10000 2 ar_BH 10,000.00
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(20) DEFAULT GET_FORMAT(DATE,a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(20) DEFAULT get_format(DATE, `a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('EUR'),('USA'),('JIS'),('ISO'),('INTERNAL');
-SELECT * FROM t1;
-a b
-EUR %d.%m.%Y
-USA %m.%d.%Y
-JIS %Y-%m-%d
-ISO %Y-%m-%d
-INTERNAL %Y%m%d
-DROP TABLE t1;
-CREATE TABLE t1 (
-bits INT,
-v_on VARCHAR(10),
-v_off VARCHAR(10),
-v_separator VARCHAR(10),
-number_of_bits INT,
-x VARCHAR(30) DEFAULT EXPORT_SET(bits, v_on, v_off, v_separator, number_of_bits)
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `bits` int(11) DEFAULT NULL,
- `v_on` varchar(10) DEFAULT NULL,
- `v_off` varchar(10) DEFAULT NULL,
- `v_separator` varchar(10) DEFAULT NULL,
- `number_of_bits` int(11) DEFAULT NULL,
- `x` varchar(30) DEFAULT export_set(`bits`,`v_on`,`v_off`,`v_separator`,`number_of_bits`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT IGNORE INTO t1 VALUES (0x50006,'Y','N','',64,DEFAULT);
-Warnings:
-Warning 1265 Data truncated for column 'x' at row 1
-SELECT * FROM t1;
-bits v_on v_off v_separator number_of_bits x
-327686 Y N 64 NYYNNNNNNNNNNNNNYNYNNNNNNNNNNN
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(30), b BLOB DEFAULT LOAD_FILE(a));
-ERROR HY000: Function or expression 'load_file()' cannot be used in the DEFAULT clause of `b`
-#
-# Predicates
-#
-CREATE TABLE t1 (a INT, b INT DEFAULT (NOT a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT (`a` = 0)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (NULL),(0),(1);
-SELECT * FROM t1;
-a b
-NULL NULL
-0 1
-1 0
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, x INT DEFAULT (a XOR b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `x` int(11) DEFAULT (`a` xor `b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES (0,0),(0,1),(1,0),(1,1);
-SELECT * FROM t1;
-a b x
-0 0 0
-0 1 1
-1 0 1
-1 1 0
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT DEFAULT (a IS TRUE), c INT DEFAULT (a IS NOT TRUE));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT (`a` is true),
- `c` int(11) DEFAULT (`a` is not true)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (NULL),(0),(1);
-SELECT * FROM t1;
-a b c
-NULL 0 1
-0 0 1
-1 1 0
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT DEFAULT (a IS FALSE), c INT DEFAULT (a IS NOT FALSE));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT (`a` is false),
- `c` int(11) DEFAULT (`a` is not false)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (NULL),(0),(1);
-SELECT * FROM t1;
-a b c
-NULL 0 1
-0 1 0
-1 0 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT DEFAULT (a IS NULL), c INT DEFAULT (a IS NOT NULL));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT (`a` is null),
- `c` int(11) DEFAULT (`a` is not null)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (NULL),(0),(1);
-SELECT * FROM t1;
-a b c
-NULL 1 0
-0 0 1
-1 0 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT DEFAULT (a IS UNKNOWN), c INT DEFAULT (a IS NOT UNKNOWN));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT (`a` is null),
- `c` int(11) DEFAULT (`a` is not null)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (NULL),(0),(1);
-SELECT * FROM t1;
-a b c
-NULL 1 0
-0 0 1
-1 0 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT,
-eq INT DEFAULT (a=0), equal INT DEFAULT (a<=>0),
-ne INT DEFAULT (a<>0),
-lt INT DEFAULT (a<0), le INT DEFAULT (a<=0),
-gt INT DEFAULT (a>0), ge INT DEFAULT (a>=0));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `eq` int(11) DEFAULT (`a` = 0),
- `equal` int(11) DEFAULT (`a` <=> 0),
- `ne` int(11) DEFAULT (`a` <> 0),
- `lt` int(11) DEFAULT (`a` < 0),
- `le` int(11) DEFAULT (`a` <= 0),
- `gt` int(11) DEFAULT (`a` > 0),
- `ge` int(11) DEFAULT (`a` >= 0)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (NULL),(-1),(0),(1);
-SELECT * FROM t1;
-a eq equal ne lt le gt ge
-NULL NULL 0 NULL NULL NULL NULL NULL
--1 0 0 1 1 1 0 0
-0 1 1 0 0 1 0 1
-1 0 0 1 0 0 1 1
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b INT DEFAULT (a LIKE 'a%'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` int(11) DEFAULT (`a` like 'a%')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('AAA'),('aaa'),('bbb');
-SELECT * FROM t1;
-a b
-AAA 1
-aaa 1
-bbb 0
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b INT DEFAULT (a RLIKE 'a$'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` int(11) DEFAULT (`a` regexp 'a$')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('AAA'),('aaa'),('bbb');
-SELECT * FROM t1;
-a b
-AAA 1
-aaa 1
-bbb 0
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b INT DEFAULT (a IN ('aaa','bbb')));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` int(11) DEFAULT (`a` in ('aaa','bbb'))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('AAA'),('aaa'),('bbb'),('ccc');
-SELECT * FROM t1;
-a b
-AAA 1
-aaa 1
-bbb 1
-ccc 0
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b INT DEFAULT (a NOT IN ('aaa','bbb')));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` int(11) DEFAULT (`a` not in ('aaa','bbb'))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('AAA'),('aaa'),('bbb'),('ccc');
-SELECT * FROM t1;
-a b
-AAA 0
-aaa 0
-bbb 0
-ccc 1
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b INT DEFAULT (a BETWEEN 'aaa' AND 'bbb'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` int(11) DEFAULT (`a` between 'aaa' and 'bbb')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('AAA'),('aaa'),('bbb'),('ccc');
-SELECT * FROM t1;
-a b
-AAA 1
-aaa 1
-bbb 1
-ccc 0
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b INT DEFAULT (a NOT BETWEEN 'aaa' AND 'bbb'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` int(11) DEFAULT (`a` not between 'aaa' and 'bbb')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('AAA'),('aaa'),('bbb'),('ccc');
-SELECT * FROM t1;
-a b
-AAA 0
-aaa 0
-bbb 0
-ccc 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TEXT DEFAULT UUID());
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text DEFAULT uuid()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ();
-SELECT LENGTH(a)>0 FROM t1;
-LENGTH(a)>0
-1
-DROP TABLE t1;
-#
-# Numeric result functions with string input
-#
-CREATE TABLE t1 (a VARCHAR(10), b INT DEFAULT STRCMP(a,'b'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` int(11) DEFAULT strcmp(`a`,'b')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('A'),('a'),('B'),('b'),('C'),('c');
-SELECT * FROM t1;
-a b
-A -1
-a -1
-B 0
-b 0
-C 1
-c 1
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b INT DEFAULT LENGTH(a), c INT DEFAULT CHAR_LENGTH(a), d INT DEFAULT BIT_LENGTH(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` int(11) DEFAULT octet_length(`a`),
- `c` int(11) DEFAULT char_length(`a`),
- `d` int(11) DEFAULT bit_length(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('a'),('aa'),('aaa');
-SELECT * FROM t1;
-a b c d
-a 1 1 8
-aa 2 2 16
-aaa 3 3 24
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b INT DEFAULT LOCATE('a',a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` int(11) DEFAULT locate('a',`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('xa'),('xxa'),('xxxa');
-SELECT * FROM t1;
-a b
-xa 2
-xxa 3
-xxxa 4
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b INT DEFAULT REGEXP_INSTR(a, 'a'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` int(11) DEFAULT regexp_instr(`a`,'a')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('xa'),('xxa'),('xxxa');
-SELECT * FROM t1;
-a b
-xa 2
-xxa 3
-xxxa 4
-DROP TABLE t1;
-#
-# INT result metadata functions
-#
-CREATE TABLE t1
-(
-id SERIAL PRIMARY KEY,
-b INT DEFAULT LAST_INSERT_ID()
-);
-ERROR HY000: Function or expression 'last_insert_id()' cannot be used in the DEFAULT clause of `b`
-CREATE TABLE t1 (a INT DEFAULT CONNECTION_ID());
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT connection_id()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES();
-SELECT a>0 FROM t1;
-a>0
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b INT DEFAULT COERCIBILITY(a), c INT DEFAULT COERCIBILITY(b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` int(11) DEFAULT coercibility(`a`),
- `c` int(11) DEFAULT coercibility(`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('test');
-SELECT * FROM t1;
-a b c
-test 2 5
-DROP TABLE t1;
-#
-# String result metadata functions
-#
-CREATE TABLE t1 (
-a VARCHAR(10) CHARACTER SET latin1,
-b VARCHAR(20) DEFAULT CHARSET(a),
-c VARCHAR(20) DEFAULT COLLATION(a)
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(20) DEFAULT charset(`a`),
- `c` varchar(20) DEFAULT collation(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('test');
-SELECT * FROM t1;
-a b c
-test latin1 latin1_swedish_ci
-DROP TABLE t1;
-#
-# Hash, compression, encode/decode
-#
-CREATE TABLE t1 (a VARCHAR(10), b BIGINT DEFAULT CRC32(a), c TEXT DEFAULT MD5(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` bigint(20) DEFAULT crc32(`a`),
- `c` text DEFAULT md5(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('a');
-SELECT * FROM t1;
-a b c
-a 3904355907 0cc175b9c0f1b6a831c399e269772661
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b TEXT DEFAULT TO_BASE64(a), c TEXT DEFAULT FROM_BASE64(b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` text DEFAULT to_base64(`a`),
- `c` text DEFAULT from_base64(`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('aaaabbbb');
-SELECT * FROM t1;
-a b c
-aaaabbbb YWFhYWJiYmI= aaaabbbb
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b TEXT DEFAULT HEX(a), c TEXT DEFAULT UNHEX(b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` text DEFAULT hex(`a`),
- `c` text DEFAULT unhex(`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('aaaabbbb');
-SELECT * FROM t1;
-a b c
-aaaabbbb 6161616162626262 aaaabbbb
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10), b TEXT DEFAULT ENCODE(a,'test'), c TEXT DEFAULT DECODE(b,'test'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` text DEFAULT encode(`a`,'test'),
- `c` text DEFAULT decode(`b`,'test')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('aaaabbbb');
-SELECT a, HEX(b), c FROM t1;
-a HEX(b) c
-aaaabbbb 059AEEE33E4AF848 aaaabbbb
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(30), b TEXT DEFAULT PASSWORD(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) DEFAULT NULL,
- `b` text DEFAULT password(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('notagoodpwd');
-SELECT * FROM t1;
-a b
-notagoodpwd *3A70EE9FC6594F88CE9E959CD51C5A1C002DC937
-DROP TABLE t1;
-CREATE TABLE t1 (
-a VARCHAR(30),
-b BLOB DEFAULT AES_ENCRYPT(a, 'passwd'),
-c TEXT DEFAULT AES_DECRYPT(b, 'passwd')
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) DEFAULT NULL,
- `b` blob DEFAULT aes_encrypt(`a`,'passwd'),
- `c` text DEFAULT aes_decrypt(`b`,'passwd')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('test');
-SELECT c FROM t1;
-c
-test
-DROP TABLE t1;
-#
-# Collations
-#
-CREATE TABLE t1 (a VARCHAR(20) CHARACTER SET latin1 DEFAULT CONCAT('ö')) CHARACTER SET koi8r COLLATE koi8r_bin;
-ERROR 22007: Encountered illegal value 'ö' when converting to koi8r
-CREATE OR REPLACE TABLE t1 (a char(2) default concat('A') COLLATE utf8mb4_unicode_ci);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT concat('A')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-create table t1 (a int default 1, b int default (rand()*0+2), c int);
-insert t1 (c) values (a);
-insert t1 (c) values (b);
-select * from t1;
-a b c
-1 2 1
-1 2 NULL
-drop table t1;
-create table t1 (a int default 1, b int default (1+1), c int);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT 1,
- `b` int(11) DEFAULT (1 + 1),
- `c` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 alter a set default (2+3), alter b set default 4,
-alter c set default (-a);
-alter table t1 alter a set default 1+2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '+2' at line 1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT (2 + 3),
- `b` int(11) DEFAULT 4,
- `c` int(11) DEFAULT (-`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int default 5 check (a>10), b int default (5+5), c int as (a+b));
-create table t2 as select a, b, c from t1;
-create table t3 as select max(a), max(b), max(c) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT 5 CHECK (`a` > 10),
- `b` int(11) DEFAULT (5 + 5),
- `c` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `max(a)` int(11) DEFAULT NULL,
- `max(b)` int(11) DEFAULT NULL,
- `max(c)` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2, t3;
-# MDEV-11359: Implement IGNORE for bulk operation
-create table t1 (a int primary key default 0, b int default 3);
-insert into t1 values (1, ignore);
-insert into t1 values (2, ignore);
-replace into t1 values (2, ignore);
-replace into t1 values (3, ignore);
-replace into t1 values (4, 6);
-replace into t1 values (5, 7);
-update t1 set a=6,b=ignore where a=5;
-insert into t1 values (ignore, ignore);
-insert into t1 values (ignore, ignore);
-ERROR 23000: Duplicate entry '0' for key 'PRIMARY'
-select * from t1 order by a;
-a b
-0 3
-1 3
-2 3
-3 3
-4 6
-6 7
-delete from t1 where a < 4;
-# actually insert default instead of ignoring
-# (but REPLACE is non standard operator)
-replace into t1 values (4, ignore);
-select * from t1 order by a;
-a b
-4 3
-6 7
-drop table t1;
-create table t1 (a int default 100, b int, c varchar(60) default 'x');
-load data infile '../../std_data/rpl_loaddata.dat' into table t1 (a, @b) set b=@b+10, c=ignore;
-select * from t1;
-a b c
-NULL 20 x
-NULL 25 x
-drop table t1;
-CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY AUTO_INCREMENT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 VALUES (1),(2),(3),(2);
-INSERT INTO t1 SELECT a FROM t2 ON DUPLICATE KEY UPDATE a=DEFAULT;
-SELECT * FROM t1 order by a;
-a
-0
-1
-3
-truncate table t1;
-INSERT INTO t1 SELECT a FROM t2 ON DUPLICATE KEY UPDATE a=IGNORE;
-SELECT * FROM t1 order by a;
-a
-0
-1
-3
-DROP TABLE t1,t2;
-create table t1 (a int primary key default 0, b int default 3);
-prepare insstmt from "insert into t1 values (?, ?)";
-prepare repstmt from "replace into t1 values (?, ?)";
-prepare updstmt from "update t1 set a=6,b=? where a=5";
-execute insstmt using 1, ignore;
-execute insstmt using 2, ignore;
-execute repstmt using 2, ignore;
-execute repstmt using 3, ignore;
-execute repstmt using 4, 6;
-execute repstmt using 5, 7;
-execute updstmt using ignore;
-execute insstmt using ignore, ignore;
-execute insstmt using ignore, ignore;
-ERROR 23000: Duplicate entry '0' for key 'PRIMARY'
-select * from t1 order by a;
-a b
-0 3
-1 3
-2 3
-3 3
-4 6
-6 7
-delete from t1 where a < 4;
-execute repstmt using 4, ignore;
-select * from t1 order by a;
-a b
-4 3
-6 7
-drop table t1;
-#
-# DEVAULT & PS adoption
-#
-CREATE TABLE t1 (a INT DEFAULT 10, b INT DEFAULT NULL);
-EXECUTE IMMEDIATE 'INSERT INTO t1 VALUES (?,?)' USING IGNORE, IGNORE;
-SELECT * FROM t1;
-a b
-10 NULL
-UPDATE t1 SET a=20, b=30;
-SELECT * FROM t1;
-a b
-20 30
-EXECUTE IMMEDIATE 'UPDATE t1 SET a=?,b=?' USING IGNORE, IGNORE;
-SELECT * FROM t1;
-a b
-20 30
-DROP TABLE t1;
-CREATE TABLE t1 (a INT DEFAULT 10);
-EXECUTE IMMEDIATE 'INSERT INTO t1 VALUES (?+1)' USING IGNORE;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'INSERT INTO t1 VALUES (CONCAT(?,?))' USING IGNORE, 'test';
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-DROP TABLE t1;
-CREATE TABLE t1 (a INT DEFAULT 10);
-INSERT INTO t1 VALUES (20);
-EXECUTE IMMEDIATE 'UPDATE t1 SET a=?+1' USING IGNORE;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'UPDATE t1 SET a=CONCAT(?,?)' USING IGNORE, 'test';
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-DROP TABLE t1;
-EXECUTE IMMEDIATE 'SELECT CAST(? AS SIGNED)' USING IGNORE;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT CAST(? AS DOUBLE)' USING IGNORE;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT CAST(? AS CHAR)' USING IGNORE;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT CAST(? AS DECIMAL(10,1))' USING IGNORE;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT CAST(? AS TIME)' USING IGNORE;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT CAST(? AS DATE)' USING IGNORE;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT CAST(? AS DATETIME)' USING IGNORE;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT ?+1' USING IGNORE;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT CONCAT(?,?)' USING IGNORE,'test';
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT 1 LIMIT ?' USING IGNORE;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-CREATE TABLE t1 (a INT DEFAULT 10);
-INSERT INTO t1 VALUES (1),(2),(3);
-EXECUTE IMMEDIATE 'SELECT * FROM t1 LIMIT ?' USING IGNORE;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-DROP TABLE t1;
-# The output of this query in 'Note' is a syntactically incorrect query.
-# But as it's never logged, it's ok. It should be human readable only.
-EXECUTE IMMEDIATE 'EXPLAIN EXTENDED SELECT ?' USING IGNORE;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select ignore AS `?`
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-EXECUTE IMMEDIATE 'EXPLAIN EXTENDED SELECT * FROM t1 WHERE ?+a<=>?+a' USING DEFAULT,DEFAULT;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-DROP TABLE t1;
-#
-# MDEV-11134 Assertion `fixed' failed in Item::const_charset_converter(THD*, CHARSET_INFO*, bool, const char*)
-#
-SET NAMES utf8;
-PREPARE stmt FROM "CREATE OR REPLACE TABLE t1 (c CHAR(8) DEFAULT ?)";
-SET @a='';
-EXECUTE stmt USING @a;
-EXECUTE stmt USING @a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(8) DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SET @a='A';
-EXECUTE stmt USING @a;
-EXECUTE stmt USING @a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(8) DEFAULT 'A'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SET @a=_utf8 0xC380;
-EXECUTE stmt USING @a;
-EXECUTE stmt USING @a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(8) DEFAULT 'À'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SET @a=_utf8 0xD18F;
-EXECUTE stmt USING @a;
-ERROR 42000: Invalid default value for 'c'
-EXECUTE stmt USING @a;
-ERROR 42000: Invalid default value for 'c'
-DEALLOCATE PREPARE stmt;
-set sql_mode=ansi_quotes;
-create table t1 (a int, b int default (a+1));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE "t1" (
- "a" int(11) DEFAULT NULL,
- "b" int(11) DEFAULT ("a" + 1)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert t1 (a) values (10);
-set sql_mode='';
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT (`a` + 1)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert t1 (a) values (20);
-flush tables;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT (`a` + 1)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert t1 (a) values (30);
-select * from t1;
-a b
-10 11
-20 21
-30 31
-drop table t1;
-set sql_mode=default;
-create table t1 (a int default b, b int default 4, t text);
-insert into t1 (b, t) values (5, '1 column is omitted');
-insert into t1 values (default, 5, '2 column gets DEFAULT, keyword');
-insert into t1 values (default(a), 5, '3 column gets DEFAULT(a), expression');
-insert into t1 values (default(a)+0, 5, '4 also expression DEFAULT(0)+0');
-insert into t1 values (b, 5, '5 the value of the DEFAULT(a), that is b');
-select * from t1 order by t;
-a b t
-5 5 1 column is omitted
-5 5 2 column gets DEFAULT, keyword
-4 5 3 column gets DEFAULT(a), expression
-4 5 4 also expression DEFAULT(0)+0
-4 5 5 the value of the DEFAULT(a), that is b
-drop table t1;
-create table t1 (col1 int default(-(default(col1))));
-ERROR 01000: Expression for field `col1` is refering to uninitialized field `col1`
-create table t1 (col int default (yearweek((exp(710)))));
-ERROR 22003: DOUBLE value is out of range in 'exp(710)'
-#
-# MDEV-13707 Server in ORACLE mode crashes on ALTER with wrong DEFAULT clause
-#
-CREATE OR REPLACE TABLE t1(i int);
-ALTER TABLE t1 ADD b CHAR(255) DEFAULT `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa`;
-ERROR 42S22: Unknown column 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' in 'DEFAULT'
-DROP TABLE t1;
-# end of 10.2 test
diff --git a/mysql-test/r/default_debug.result b/mysql-test/r/default_debug.result
deleted file mode 100644
index 3f5b0b7896c..00000000000
--- a/mysql-test/r/default_debug.result
+++ /dev/null
@@ -1,21 +0,0 @@
-create table t1 (a int, b int default (a+1));
-insert t1 values (1,10), (2,20), (3,30);
-connect con1, localhost, root;
-select a,b,default(b) from t1;
-a b default(b)
-1 10 2
-2 20 3
-3 30 4
-set debug_sync='after_Item_default_value_calculate WAIT_FOR go';
-select a,b,default(b) from t1;
-connection default;
-set debug_sync='ha_write_row_start SIGNAL go';
-insert t1 values (100,default(b));
-connection con1;
-a b default(b)
-1 10 2
-2 20 3
-3 30 4
-connection default;
-drop table t1;
-set debug_sync='RESET';
diff --git a/mysql-test/r/default_session.result b/mysql-test/r/default_session.result
deleted file mode 100644
index 6c0bcad0cb3..00000000000
--- a/mysql-test/r/default_session.result
+++ /dev/null
@@ -1,94 +0,0 @@
-create database mysqltest1;
-create user ''@localhost;
-create user foo@localhost;
-create role bar;
-grant select on *.* to ''@localhost;
-grant select,insert on *.* to foo@localhost;
-grant select,insert on *.* to bar;
-grant bar to ''@localhost;
-create table t1 (n varchar(100),
-u varchar(100) default user(),
-cu varchar(100) default current_user(),
-cr varchar(100) default current_role(),
-d varchar(100) default database());
-create definer=foo@localhost view mysqltest1.v1 as select * from t1;
-create definer=bar view v2 as select * from t1;
-create view v3 as select * from v2;
-create definer=foo@localhost view mysqltest1.v4 as select default(n),default(u),default(cu),default(cr), default(d) from t1;
-create definer=bar view v5 as select default(n),default(u),default(cu),default(cr), default(d) from t1;
-create view v6 as select * from v5;
-insert t1 (n) values ('t1');
-insert mysqltest1.v1 (n) values ('v1');
-insert v2 (n) values ('v2');
-insert v3 (n) values ('v3');
-select default(n),default(u),default(cu),default(cr), default(d) from t1 limit 1;
-default(n) default(u) default(cu) default(cr) default(d)
-NULL root@localhost root@localhost NULL test
-select * from mysqltest1.v4 limit 1;
-default(n) default(u) default(cu) default(cr) default(d)
-NULL root@localhost foo@localhost NULL test
-select * from v5 limit 1;
-default(n) default(u) default(cu) default(cr) default(d)
-NULL root@localhost @ bar test
-select * from v6 limit 1;
-default(n) default(u) default(cu) default(cr) default(d)
-NULL root@localhost @ bar test
-connect conn,localhost,conn,,mysqltest1;
-set role bar;
-insert test.t1 (n) values ('t1');
-insert v1 (n) values ('v1');
-insert test.v2 (n) values ('v2');
-insert test.v3 (n) values ('v3');
-select default(n),default(u),default(cu),default(cr), default(d) from test.t1 limit 1;
-default(n) default(u) default(cu) default(cr) default(d)
-NULL conn@localhost @localhost bar mysqltest1
-select * from v4 limit 1;
-default(n) default(u) default(cu) default(cr) default(d)
-NULL conn@localhost foo@localhost NULL mysqltest1
-select * from test.v5 limit 1;
-default(n) default(u) default(cu) default(cr) default(d)
-NULL conn@localhost @ bar mysqltest1
-select * from test.v6 limit 1;
-default(n) default(u) default(cu) default(cr) default(d)
-NULL conn@localhost @ bar mysqltest1
-connection default;
-disconnect conn;
-select * from t1;
-n u cu cr d
-t1 root@localhost root@localhost NULL test
-v1 root@localhost foo@localhost NULL test
-v2 root@localhost @ bar test
-v3 root@localhost @ bar test
-t1 conn@localhost @localhost bar mysqltest1
-v1 conn@localhost foo@localhost NULL mysqltest1
-v2 conn@localhost @ bar mysqltest1
-v3 conn@localhost @ bar mysqltest1
-drop database mysqltest1;
-drop view v2, v3, v5, v6;
-drop table t1;
-drop user ''@localhost;
-drop user foo@localhost;
-drop role bar;
-create table t1 (a date,
-mn varchar(100) default monthname(a),
-dn varchar(100) default dayname(a),
-df varchar(100) default date_format(a, "%a, %b"));
-insert t1 (a) values ('2010-12-2');
-set lc_time_names=de_DE;
-insert t1 (a) values ('2010-12-2');
-set lc_time_names=default;
-select * from t1;
-a mn dn df
-2010-12-02 December Thursday Thu, Dec
-2010-12-02 Dezember Donnerstag Do, Dez
-drop table t1;
-create table t1 (a varchar(100) default @@sql_mode);
-insert t1 () values ();
-set sql_mode=ansi;
-insert t1 () values ();
-set sql_mode=default;
-select * from t1;
-a
-STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI
-drop table t1;
diff --git a/mysql-test/r/default_storage_engine.result b/mysql-test/r/default_storage_engine.result
deleted file mode 100644
index da3350c6eaf..00000000000
--- a/mysql-test/r/default_storage_engine.result
+++ /dev/null
@@ -1 +0,0 @@
-"all ok"
diff --git a/mysql-test/r/delayed.result b/mysql-test/r/delayed.result
deleted file mode 100644
index d54fa40f2da..00000000000
--- a/mysql-test/r/delayed.result
+++ /dev/null
@@ -1,512 +0,0 @@
-drop table if exists t1;
-create table t1 (a char(10), tmsp timestamp);
-insert into t1 set a = 1;
-insert delayed into t1 set a = 2;
-insert into t1 set a = 3, tmsp=NULL;
-insert delayed into t1 set a = 4;
-insert delayed into t1 set a = 5, tmsp = 19711006010203;
-insert delayed into t1 (a, tmsp) values (6, 19711006010203);
-insert delayed into t1 (a, tmsp) values (7, NULL);
-FLUSH TABLE t1;
-insert into t1 set a = 8,tmsp=19711006010203;
-select * from t1 where tmsp=0;
-a tmsp
-select * from t1 where tmsp=19711006010203;
-a tmsp
-5 1971-10-06 01:02:03
-6 1971-10-06 01:02:03
-8 1971-10-06 01:02:03
-drop table t1;
-create table t1 (a int not null auto_increment primary key, b char(10));
-insert delayed into t1 values (1,"b");
-insert delayed into t1 values (null,"c");
-insert delayed into t1 values (3,"d"),(null,"e");
-insert delayed into t1 values (3,"this will give an","error");
-ERROR 21S01: Column count doesn't match value count at row 1
-FLUSH TABLE t1;
-show status like 'not_flushed_delayed_rows';
-Variable_name Value
-Not_flushed_delayed_rows 0
-select * from t1;
-a b
-1 b
-2 c
-3 d
-4 e
-drop table t1;
-create table t1 (a int not null primary key);
-insert into t1 values (1);
-insert delayed into t1 values (1);
-select * from t1;
-a
-1
-drop table t1;
-CREATE TABLE t1 ( a int(10) NOT NULL auto_increment, PRIMARY KEY (a));
-insert delayed into t1 values(null);
-insert into t1 values(null);
-insert into t1 values(null);
-insert delayed into t1 values(null);
-insert delayed into t1 values(null);
-insert delayed into t1 values(null);
-insert into t1 values(null);
-insert into t1 values(null);
-insert into t1 values(null);
-delete from t1 where a=6;
-insert delayed into t1 values(null);
-insert delayed into t1 values(null);
-insert delayed into t1 values(null);
-insert delayed into t1 values(null);
-FLUSH TABLE t1;
-select * from t1 order by a;
-a
-1
-2
-3
-4
-5
-7
-8
-9
-10
-11
-12
-13
-DROP TABLE t1;
-SET @bug20627_old_auto_increment_offset=
-@@auto_increment_offset;
-SET @bug20627_old_auto_increment_increment=
-@@auto_increment_increment;
-SET @bug20627_old_session_auto_increment_offset=
-@@session.auto_increment_offset;
-SET @bug20627_old_session_auto_increment_increment=
-@@session.auto_increment_increment;
-SET @@auto_increment_offset= 2;
-SET @@auto_increment_increment= 3;
-SET @@session.auto_increment_offset= 4;
-SET @@session.auto_increment_increment= 5;
-CREATE TABLE t1 (
-c1 INT NOT NULL AUTO_INCREMENT,
-PRIMARY KEY (c1)
-);
-INSERT INTO t1 VALUES (NULL),(NULL),(NULL);
-SELECT * FROM t1;
-c1
-4
-9
-14
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 INT NOT NULL AUTO_INCREMENT,
-PRIMARY KEY (c1)
-);
-INSERT DELAYED INTO t1 VALUES (NULL),(NULL),(NULL);
-FLUSH TABLE t1;
-SELECT * FROM t1;
-c1
-4
-9
-14
-DROP TABLE t1;
-SET @@auto_increment_offset=
-@bug20627_old_auto_increment_offset;
-SET @@auto_increment_increment=
-@bug20627_old_auto_increment_increment;
-SET @@session.auto_increment_offset=
-@bug20627_old_session_auto_increment_offset;
-SET @@session.auto_increment_increment=
-@bug20627_old_session_auto_increment_increment;
-SET @bug20830_old_auto_increment_offset=
-@@auto_increment_offset;
-SET @bug20830_old_auto_increment_increment=
-@@auto_increment_increment;
-SET @bug20830_old_session_auto_increment_offset=
-@@session.auto_increment_offset;
-SET @bug20830_old_session_auto_increment_increment=
-@@session.auto_increment_increment;
-SET @@auto_increment_offset= 2;
-SET @@auto_increment_increment= 3;
-SET @@session.auto_increment_offset= 4;
-SET @@session.auto_increment_increment= 5;
-CREATE TABLE t1 (
-c1 INT(11) NOT NULL AUTO_INCREMENT,
-c2 INT(11) DEFAULT NULL,
-PRIMARY KEY (c1)
-);
-SET insert_id= 14;
-INSERT INTO t1 VALUES(NULL, 11), (NULL, 12), (NULL, 13);
-INSERT INTO t1 VALUES(NULL, 21), (NULL, 22), (NULL, 23);
-INSERT INTO t1 VALUES( 69, 31), (NULL, 32), (NULL, 33);
-INSERT INTO t1 VALUES(NULL, 41), (NULL, 42), (NULL, 43);
-SET insert_id= 114;
-INSERT INTO t1 VALUES(NULL, 51), (NULL, 52), (NULL, 53);
-INSERT INTO t1 VALUES(NULL, 61), (NULL, 62), (NULL, 63);
-INSERT INTO t1 VALUES( 49, 71), (NULL, 72), (NULL, 73);
-INSERT INTO t1 VALUES(NULL, 81), (NULL, 82), (NULL, 83);
-SET insert_id= 114;
-INSERT INTO t1 VALUES(NULL, 91);
-ERROR 23000: Duplicate entry '114' for key 'PRIMARY'
-INSERT INTO t1 VALUES (NULL, 92), (NULL, 93);
-SELECT * FROM t1;
-c1 c2
-14 11
-19 12
-24 13
-29 21
-34 22
-39 23
-69 31
-74 32
-79 33
-84 41
-89 42
-94 43
-114 51
-119 52
-124 53
-129 61
-134 62
-139 63
-49 71
-144 72
-149 73
-154 81
-159 82
-164 83
-169 92
-174 93
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-26
-SELECT SUM(c1) FROM t1;
-SUM(c1)
-2569
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 INT(11) NOT NULL AUTO_INCREMENT,
-c2 INT(11) DEFAULT NULL,
-PRIMARY KEY (c1)
-);
-SET insert_id= 14;
-INSERT DELAYED INTO t1 VALUES(NULL, 11), (NULL, 12), (NULL, 13);
-INSERT DELAYED INTO t1 VALUES(NULL, 21), (NULL, 22), (NULL, 23);
-INSERT DELAYED INTO t1 VALUES( 69, 31), (NULL, 32), (NULL, 33);
-INSERT DELAYED INTO t1 VALUES(NULL, 41), (NULL, 42), (NULL, 43);
-SET insert_id= 114;
-INSERT DELAYED INTO t1 VALUES(NULL, 51), (NULL, 52), (NULL, 53);
-INSERT DELAYED INTO t1 VALUES(NULL, 61), (NULL, 62), (NULL, 63);
-INSERT DELAYED INTO t1 VALUES( 49, 71), (NULL, 72), (NULL, 73);
-INSERT DELAYED INTO t1 VALUES(NULL, 81), (NULL, 82), (NULL, 83);
-SET insert_id= 114;
-INSERT DELAYED INTO t1 VALUES(NULL, 91);
-INSERT DELAYED INTO t1 VALUES (NULL, 92), (NULL, 93);
-FLUSH TABLE t1;
-SELECT * FROM t1;
-c1 c2
-14 11
-19 12
-24 13
-29 21
-34 22
-39 23
-69 31
-74 32
-79 33
-84 41
-89 42
-94 43
-114 51
-119 52
-124 53
-129 61
-134 62
-139 63
-49 71
-144 72
-149 73
-154 81
-159 82
-164 83
-169 92
-174 93
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-26
-SELECT SUM(c1) FROM t1;
-SUM(c1)
-2569
-DROP TABLE t1;
-SET @@auto_increment_offset=
-@bug20830_old_auto_increment_offset;
-SET @@auto_increment_increment=
-@bug20830_old_auto_increment_increment;
-SET @@session.auto_increment_offset=
-@bug20830_old_session_auto_increment_offset;
-SET @@session.auto_increment_increment=
-@bug20830_old_session_auto_increment_increment;
-CREATE TABLE t1(a BIT);
-INSERT DELAYED INTO t1 VALUES(1);
-FLUSH TABLE t1;
-SELECT HEX(a) FROM t1;
-HEX(a)
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT DELAYED INTO t1 SET a= b();
-ERROR 42000: FUNCTION test.b does not exist
-INSERT DELAYED INTO t1 SET b= 1;
-ERROR 42S22: Unknown column 'b' in 'field list'
-INSERT DELAYED INTO t1 SET b= b();
-ERROR 42000: FUNCTION test.b does not exist
-DROP TABLE t1;
-End of 5.0 tests
-DROP TABLE IF EXISTS t1,t2;
-SET SQL_MODE='NO_AUTO_VALUE_ON_ZERO';
-CREATE TABLE `t1` (
-`id` int(11) PRIMARY KEY auto_increment,
-`f1` varchar(10) NOT NULL UNIQUE
-);
-INSERT DELAYED INTO t1 VALUES(0,"test1");
-SELECT * FROM t1;
-id f1
-0 test1
-SET SQL_MODE='PIPES_AS_CONCAT';
-INSERT DELAYED INTO t1 VALUES(0,'a' || 'b');
-SELECT * FROM t1;
-id f1
-0 test1
-1 ab
-SET SQL_MODE='ERROR_FOR_DIVISION_BY_ZERO,STRICT_ALL_TABLES';
-INSERT DELAYED INTO t1 VALUES(mod(1,0),"test3");
-ERROR 22012: Division by 0
-CREATE TABLE t2 (
-`id` int(11) PRIMARY KEY auto_increment,
-`f1` date
-);
-SET SQL_MODE='NO_ZERO_DATE,STRICT_ALL_TABLES,NO_ZERO_IN_DATE';
-INSERT DELAYED INTO t2 VALUES (0,'0000-00-00');
-ERROR 22007: Incorrect date value: '0000-00-00' for column 'f1' at row 1
-INSERT DELAYED INTO t2 VALUES (0,'2007-00-00');
-ERROR 22007: Incorrect date value: '2007-00-00' for column 'f1' at row 1
-DROP TABLE t1,t2;
-set @old_delayed_updates = @@global.low_priority_updates;
-set global low_priority_updates = 1;
-select @@global.low_priority_updates;
-@@global.low_priority_updates
-1
-drop table if exists t1;
-create table t1 (a int, b int);
-insert into t1 values (1,1);
-lock table t1 read;
-connect update,localhost,root,,;
-connection update;
-insert delayed into t1 values (2,2);;
-connection default;
-connect select,localhost,root,,;
-select * from t1;
-a b
-1 1
-connection default;
-select * from t1;
-a b
-1 1
-connection default;
-disconnect update;
-disconnect select;
-unlock tables;
-select * from t1;
-a b
-1 1
-2 2
-drop table t1;
-set global low_priority_updates = @old_delayed_updates;
-#
-# Bug #47682 strange behaviour of INSERT DELAYED
-#
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (f1 integer);
-CREATE TABLE t2 (f1 integer);
-FLUSH TABLES WITH READ LOCK;
-LOCK TABLES t1 READ;
-INSERT DELAYED INTO t2 VALUES (1);
-Got one of the listed errors
-UNLOCK TABLES;
-DROP TABLE t1, t2;
-End of 5.1 tests
-#
-# Bug #47274 assert in open_table on CREATE TABLE <already existing>
-#
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-CREATE TABLE t1 ( f1 INTEGER AUTO_INCREMENT, PRIMARY KEY (f1));
-# The following CREATE TABLEs before gave an assert.
-INSERT DELAYED t1 VALUES (4);
-CREATE TABLE t1 AS SELECT 1 AS f1;
-ERROR 42S01: Table 't1' already exists
-REPLACE DELAYED t1 VALUES (5);
-CREATE TABLE t1 AS SELECT 1 AS f1;
-ERROR 42S01: Table 't1' already exists
-INSERT DELAYED t1 VALUES (6);
-CREATE TABLE t1 (f1 INTEGER);
-ERROR 42S01: Table 't1' already exists
-CREATE TABLE t2 (f1 INTEGER);
-INSERT DELAYED t1 VALUES (7);
-CREATE TABLE t1 LIKE t2;
-ERROR 42S01: Table 't1' already exists
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Bug#54332 Deadlock with two connections doing LOCK TABLE+INSERT DELAYED
-#
-# This test is not supposed to work under --ps-protocol since
-# INSERT DELAYED doesn't work under LOCK TABLES with this protocol.
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-CREATE TABLE t3 (a INT);
-# Test 1: Using LOCK TABLE
-connect con1, localhost, root;
-LOCK TABLE t1 WRITE;
-connection default;
-LOCK TABLE t2 WRITE;
-# Sending:
-INSERT DELAYED INTO t1 VALUES (1);
-connection con1;
-# Wait until INSERT DELAYED is blocked on table 't1'.
-INSERT DELAYED INTO t2 VALUES (1);
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-UNLOCK TABLES;
-connection default;
-# Reaping: INSERT DELAYED INTO t1 VALUES (1)
-UNLOCK TABLES;
-# Test 2: Using ALTER TABLE
-START TRANSACTION;
-SELECT * FROM t1 WHERE a=0;
-a
-connection con1;
-# Sending:
-ALTER TABLE t1 MODIFY a INT UNSIGNED;;
-connection default;
-# Wait until ALTER TABLE is blocked on table 't1'.
-INSERT DELAYED INTO t1 VALUES (3);
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-COMMIT;
-connection con1;
-# Reaping: ALTER TABLE t1 COMMENT 'test'
-# Test 3: Using RENAME TABLE
-connection default;
-START TRANSACTION;
-INSERT INTO t2 VALUES (1);
-connection con1;
-# Sending:
-RENAME TABLE t1 to t5, t2 to t4;
-connection default;
-# Wait until RENAME TABLE is blocked on table 't1'.
-INSERT DELAYED INTO t1 VALUES (4);
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-COMMIT;
-connection con1;
-# Reaping: RENAME TABLE t1 to t5, t2 to t4
-connection default;
-# Reverting the renames
-RENAME TABLE t5 to t1, t4 to t2;
-# Test 4: Two INSERT DELAYED on the same table
-START TRANSACTION;
-INSERT INTO t2 VALUES (1);
-connect con2, localhost, root;
-LOCK TABLE t1 WRITE, t2 WRITE;
-connection con1;
-# Wait until LOCK TABLE is blocked on table 't2'.
-INSERT DELAYED INTO t1 VALUES (5);
-connection default;
-# Wait until INSERT DELAYED is blocked on table 't1'.
-INSERT DELAYED INTO t1 VALUES (6);
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-COMMIT;
-connection con2;
-# Reaping: LOCK TABLE t1 WRITE, t2 WRITE
-UNLOCK TABLES;
-connection con1;
-# Reaping: INSERT DELAYED INTO t1 VALUES (5)
-connection default;
-# Test 5: LOCK TABLES + INSERT DELAYED in one connection.
-# This test has triggered some asserts in metadata locking
-# subsystem at some point in time..
-LOCK TABLE t1 WRITE;
-INSERT DELAYED INTO t2 VALUES (7);
-UNLOCK TABLES;
-SET AUTOCOMMIT= 0;
-LOCK TABLE t1 WRITE;
-INSERT DELAYED INTO t2 VALUES (8);
-UNLOCK TABLES;
-SET AUTOCOMMIT= 1;
-connection con2;
-disconnect con2;
-connection con1;
-disconnect con1;
-connection default;
-DROP TABLE t1, t2, t3;
-#
-# Test for bug #56251 "Deadlock with INSERT DELAYED and MERGE tables".
-#
-connect con1,localhost,root,,;
-connection default;
-drop table if exists t1, t2, tm;
-create table t1(a int);
-create table t2(a int);
-create table tm(a int) engine=merge union=(t1, t2);
-begin;
-select * from t1;
-a
-connection con1;
-# Sending:
-alter table t1 comment 'test';
-connection default;
-# Wait until ALTER TABLE blocks and starts waiting
-# for connection 'default'. It should wait with a
-# pending SNW lock on 't1'.
-# Attempt to perform delayed insert into 'tm' should not lead
-# to a deadlock. Instead error ER_DELAYED_NOT_SUPPORTED should
-# be emitted.
-insert delayed into tm values (1);
-ERROR HY000: DELAYED option not supported for table 'tm'
-# Unblock ALTER TABLE.
-commit;
-connection con1;
-# Reaping ALTER TABLE:
-disconnect con1;
-connection default;
-drop tables tm, t1, t2;
-#
-# MDEV-9621 INSERT DELAYED fails on insert for tables with many columns
-#
-CREATE TABLE t1 (
-a int,b int,c int,d int,e int,f int,g int,h int,i int,j int,k int,l int,m int,n int,o int,p int,q int,r int,s int,t int,u int,v int,x int,y int,z int
-) ENGINE=MyISAM;
-INSERT DELAYED INTO t1 (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,x,y,z)
-values (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1);
-INSERT DELAYED INTO t1 (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,x,y,z)
-values (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1);
-drop table t1;
-#
-# INSERT DELAYED hangs if table was crashed
-#
-create table t1 (a int, b int) engine=myisam;
-insert into t1 values (1,1);
-SET debug_dbug="d,crash_shutdown";
-shutdown;
-ERROR HY000: Lost connection to MySQL server during query
-call mtr.add_suppression(" marked as crashed and should be repaired");
-call mtr.add_suppression("Checking table");
-insert delayed into t1 values (2,2);
-Warnings:
-Error 145 Table './test/t1' is marked as crashed and should be repaired
-Error 1194 Table 't1' is marked as crashed and should be repaired
-Error 1034 1 client is using or hasn't closed the table properly
-insert delayed into t1 values (3,3);
-flush tables t1;
-select * from t1;
-a b
-1 1
-2 2
-3 3
-drop table t1;
diff --git a/mysql-test/r/delete.result b/mysql-test/r/delete.result
deleted file mode 100644
index ed3683d52f9..00000000000
--- a/mysql-test/r/delete.result
+++ /dev/null
@@ -1,527 +0,0 @@
-call mtr.add_suppression("Sort aborted.*");
-drop table if exists t1,t2,t3,t11,t12;
-CREATE TABLE t1 (a tinyint(3), b tinyint(5));
-INSERT INTO t1 VALUES (1,1);
-INSERT LOW_PRIORITY INTO t1 VALUES (1,2);
-INSERT INTO t1 VALUES (1,3);
-DELETE from t1 where a=1 limit 1;
-DELETE LOW_PRIORITY from t1 where a=1;
-INSERT INTO t1 VALUES (1,1);
-DELETE from t1;
-LOCK TABLE t1 write;
-INSERT INTO t1 VALUES (1,2);
-DELETE from t1;
-UNLOCK TABLES;
-INSERT INTO t1 VALUES (1,2);
-SET AUTOCOMMIT=0;
-DELETE from t1;
-SET AUTOCOMMIT=1;
-drop table t1;
-create table t1 (
-a bigint not null,
-b bigint not null default 0,
-c bigint not null default 0,
-d bigint not null default 0,
-e bigint not null default 0,
-f bigint not null default 0,
-g bigint not null default 0,
-h bigint not null default 0,
-i bigint not null default 0,
-j bigint not null default 0,
-primary key (a,b,c,d,e,f,g,h,i,j));
-insert into t1 (a) values (2),(4),(6),(8),(10),(12),(14),(16),(18),(20),(22),(24),(26),(23);
-delete from t1 where a=26;
-drop table t1;
-create table t1 (
-a bigint not null,
-b bigint not null default 0,
-c bigint not null default 0,
-d bigint not null default 0,
-e bigint not null default 0,
-f bigint not null default 0,
-g bigint not null default 0,
-h bigint not null default 0,
-i bigint not null default 0,
-j bigint not null default 0,
-primary key (a,b,c,d,e,f,g,h,i,j));
-insert into t1 (a) values (2),(4),(6),(8),(10),(12),(14),(16),(18),(20),(22),(24),(26),(23),(27);
-delete from t1 where a=27;
-drop table t1;
-CREATE TABLE `t1` (
-`i` int(10) NOT NULL default '0',
-`i2` int(10) NOT NULL default '0',
-PRIMARY KEY (`i`)
-);
-DELETE FROM t1 USING t1 WHERE post='1';
-ERROR 42S22: Unknown column 'post' in 'where clause'
-drop table t1;
-CREATE TABLE t1 (
-bool char(0) default NULL,
-not_null varchar(20) binary NOT NULL default '',
-misc integer not null,
-PRIMARY KEY (not_null)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (NULL,'a',4), (NULL,'b',5), (NULL,'c',6), (NULL,'d',7);
-select * from t1 where misc > 5 and bool is null;
-bool not_null misc
-NULL c 6
-NULL d 7
-delete from t1 where misc > 5 and bool is null;
-select * from t1 where misc > 5 and bool is null;
-bool not_null misc
-select count(*) from t1;
-count(*)
-2
-delete from t1 where 1 > 2;
-select count(*) from t1;
-count(*)
-2
-delete from t1 where 3 > 2;
-select count(*) from t1;
-count(*)
-0
-drop table t1;
-create table t1 (a int not null auto_increment primary key, b char(32));
-insert into t1 (b) values ('apple'), ('apple');
-select * from t1;
-a b
-1 apple
-2 apple
-delete t1 from t1, t1 as t2 where t1.b = t2.b and t1.a > t2.a;
-select * from t1;
-a b
-1 apple
-drop table t1;
-create table t11 (a int NOT NULL, b int, primary key (a));
-create table t12 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t11 values (0, 10),(1, 11),(2, 12);
-insert into t12 values (33, 10),(0, 11),(2, 12);
-insert into t2 values (1, 21),(2, 12),(3, 23);
-select * from t11;
-a b
-0 10
-1 11
-2 12
-select * from t12;
-a b
-33 10
-0 11
-2 12
-select * from t2;
-a b
-1 21
-2 12
-3 23
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b <> (select b from t2 where t11.a < t2.a);
-ERROR 21000: Subquery returns more than 1 row
-select * from t11;
-a b
-0 10
-1 11
-2 12
-select * from t12;
-a b
-33 10
-0 11
-2 12
-delete ignore t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b <> (select b from t2 where t11.a < t2.a);
-Warnings:
-Warning 1242 Subquery returns more than 1 row
-Warning 1242 Subquery returns more than 1 row
-select * from t11;
-a b
-0 10
-1 11
-select * from t12;
-a b
-33 10
-0 11
-insert into t11 values (2, 12);
-delete from t11 where t11.b <> (select b from t2 where t11.a < t2.a);
-ERROR 21000: Subquery returns more than 1 row
-select * from t11;
-a b
-0 10
-1 11
-2 12
-delete ignore from t11 where t11.b <> (select b from t2 where t11.a < t2.a);
-Warnings:
-Warning 1242 Subquery returns more than 1 row
-Warning 1242 Subquery returns more than 1 row
-select * from t11;
-a b
-0 10
-1 11
-drop table t11, t12, t2;
-create table t1 (a int, b int, unique key (a), key (b));
-insert into t1 values (3, 3), (7, 7);
-delete t1 from t1 where a = 3;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-select * from t1;
-a b
-7 7
-drop table t1;
-CREATE TABLE t1 ( a int PRIMARY KEY );
-DELETE FROM t1 WHERE t1.a > 0 ORDER BY t1.a;
-INSERT INTO t1 VALUES (0),(1),(2);
-DELETE FROM t1 WHERE t1.a > 0 ORDER BY t1.a LIMIT 1;
-SELECT * FROM t1;
-a
-0
-2
-DROP TABLE t1;
-create table t1 (a int);
-delete `4.t1` from t1 as `4.t1` where `4.t1`.a = 5;
-delete FROM `4.t1` USING t1 as `4.t1` where `4.t1`.a = 5;
-drop table t1;
-create table t1(f1 int primary key);
-insert into t1 values (4),(3),(1),(2);
-delete from t1 where (@a:= f1) order by f1 limit 1;
-select @a;
-@a
-1
-drop table t1;
-CREATE TABLE t1 (
-`date` date ,
-`time` time ,
-`seq` int(10) unsigned NOT NULL auto_increment,
-PRIMARY KEY (`seq`),
-KEY `seq` (`seq`),
-KEY `time` (`time`),
-KEY `date` (`date`)
-);
-DELETE FROM t1 ORDER BY date ASC, time ASC LIMIT 1;
-drop table t1;
-End of 4.1 tests
-CREATE TABLE t1 (a int not null,b int not null);
-CREATE TABLE t2 (a int not null, b int not null, primary key (a,b));
-CREATE TABLE t3 (a int not null, b int not null, primary key (a,b));
-insert into t1 values (1,1),(2,1),(1,3);
-insert into t2 values (1,1),(2,2),(3,3);
-insert into t3 values (1,1),(2,1),(1,3);
-select * from t1,t2,t3 where t1.a=t2.a AND t2.b=t3.a and t1.b=t3.b;
-a b a b a b
-1 1 1 1 1 1
-2 1 2 2 2 1
-1 3 1 1 1 3
-explain select * from t1,t2,t3 where t1.a=t2.a AND t2.b=t3.a and t1.b=t3.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 test.t1.a 1 Using index
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 8 test.t2.b,test.t1.b 1 Using index
-delete t2.*,t3.* from t1,t2,t3 where t1.a=t2.a AND t2.b=t3.a and t1.b=t3.b;
-select * from t3;
-a b
-drop table t1,t2,t3;
-create table t1(a date not null);
-insert into t1 values (0);
-select * from t1 where a is null;
-a
-0000-00-00
-delete from t1 where a is null;
-select count(*) from t1;
-count(*)
-0
-drop table t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1);
-DELETE FROM t1 ORDER BY x;
-ERROR 42S22: Unknown column 'x' in 'order clause'
-DELETE FROM t1 ORDER BY t2.x;
-ERROR 42S22: Unknown column 't2.x' in 'order clause'
-DELETE FROM t1 ORDER BY (SELECT x);
-ERROR 42S22: Unknown column 'x' in 'field list'
-DROP TABLE t1;
-CREATE TABLE t1 (
-a INT
-);
-CREATE TABLE t2 (
-a INT
-);
-CREATE DATABASE db1;
-CREATE TABLE db1.t1 (
-a INT
-);
-INSERT INTO db1.t1 (a) SELECT * FROM t1;
-CREATE DATABASE db2;
-CREATE TABLE db2.t1 (
-a INT
-);
-INSERT INTO db2.t1 (a) SELECT * FROM t2;
-DELETE FROM t1 alias USING t1, t2 alias WHERE t1.a = alias.a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'alias USING t1, t2 alias WHERE t1.a = alias.a' at line 1
-DELETE FROM alias USING t1, t2 alias WHERE t1.a = alias.a;
-DELETE FROM t1, alias USING t1, t2 alias WHERE t1.a = alias.a;
-DELETE FROM t1, t2 USING t1, t2 alias WHERE t1.a = alias.a;
-ERROR 42S02: Unknown table 't2' in MULTI DELETE
-DELETE FROM db1.t1 alias USING db1.t1, db2.t1 alias WHERE db1.t1.a = alias.a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'alias USING db1.t1, db2.t1 alias WHERE db1.t1.a = alias.a' at line 1
-DELETE FROM alias USING db1.t1, db2.t1 alias WHERE db1.t1.a = alias.a;
-DELETE FROM db2.alias USING db1.t1, db2.t1 alias WHERE db1.t1.a = alias.a;
-ERROR 42S02: Unknown table 'alias' in MULTI DELETE
-DELETE FROM t1 USING t1 WHERE a = 1;
-SELECT * FROM t1;
-a
-DELETE FROM t1 alias USING t1 alias WHERE a = 2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'alias USING t1 alias WHERE a = 2' at line 1
-SELECT * FROM t1;
-a
-DROP TABLE t1, t2;
-DROP DATABASE db1;
-DROP DATABASE db2;
-CREATE FUNCTION f1() RETURNS INT RETURN 1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0);
-DELETE FROM t1 ORDER BY (f1(10)) LIMIT 1;
-ERROR 42000: Incorrect number of arguments for FUNCTION test.f1; expected 0, got 1
-DROP TABLE t1;
-DROP FUNCTION f1;
-#
-# Bug #49552 : sql_buffer_result cause crash + not found records
-# in multitable delete/subquery
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-SET SESSION SQL_BUFFER_RESULT=1;
-DELETE t1 FROM (SELECT SUM(a) a FROM t1) x,t1;
-SET SESSION SQL_BUFFER_RESULT=DEFAULT;
-SELECT * FROM t1;
-a
-DROP TABLE t1;
-End of 5.0 tests
-DROP DATABASE IF EXISTS db1;
-DROP DATABASE IF EXISTS db2;
-DROP DATABASE IF EXISTS db3;
-DROP DATABASE IF EXISTS db4;
-DROP TABLE IF EXISTS t1, t2;
-DROP PROCEDURE IF EXISTS count;
-USE test;
-CREATE DATABASE db1;
-CREATE DATABASE db2;
-CREATE TABLE db1.t1 (a INT, b INT);
-INSERT INTO db1.t1 VALUES (1,1),(2,2),(3,3);
-CREATE TABLE db1.t2 AS SELECT * FROM db1.t1;
-CREATE TABLE db2.t1 AS SELECT * FROM db1.t2;
-CREATE TABLE db2.t2 AS SELECT * FROM db2.t1;
-CREATE TABLE t1 AS SELECT * FROM db2.t2;
-CREATE TABLE t2 AS SELECT * FROM t1;
-CREATE PROCEDURE count_rows()
-BEGIN
-SELECT COUNT(*) AS "COUNT(db1.t1)" FROM db1.t1;
-SELECT COUNT(*) AS "COUNT(db1.t2)" FROM db1.t2;
-SELECT COUNT(*) AS "COUNT(db2.t1)" FROM db2.t1;
-SELECT COUNT(*) AS "COUNT(db2.t2)" FROM db2.t2;
-SELECT COUNT(*) AS "COUNT(test.t1)" FROM test.t1;
-SELECT COUNT(*) AS "COUNT(test.t2)" FROM test.t2;
-END|
-CREATE DATABASE db3;
-USE db3;
-DROP DATABASE db3;
-SELECT * FROM t1;
-ERROR 3D000: No database selected
-DELETE a1,a2 FROM db1.t1, db2.t2;
-ERROR 3D000: No database selected
-DELETE a1,a2 FROM db1.t1, db2.t2;
-ERROR 3D000: No database selected
-DELETE a1,a2 FROM db1.t1 AS a1, db2.t2;
-ERROR 3D000: No database selected
-DELETE a1,a2 FROM db1.t1, db2.t2 AS a2;
-ERROR 3D000: No database selected
-DELETE a1,a2 FROM db3.t1 AS a1, db4.t2 AS a2;
-ERROR 3D000: No database selected
-DELETE a1,a2 FROM db3.t1 AS a1, db4.t2 AS a2;
-ERROR 3D000: No database selected
-DELETE FROM a1,a2 USING db1.t1, db2.t2;
-ERROR 3D000: No database selected
-DELETE FROM a1,a2 USING db1.t1, db2.t2;
-ERROR 3D000: No database selected
-DELETE FROM a1,a2 USING db1.t1 AS a1, db2.t2;
-ERROR 3D000: No database selected
-DELETE FROM a1,a2 USING db1.t1, db2.t2 AS a2;
-ERROR 3D000: No database selected
-DELETE FROM a1,a2 USING db3.t1 AS a1, db4.t2 AS a2;
-ERROR 3D000: No database selected
-DELETE FROM a1,a2 USING db3.t1 AS a1, db4.t2 AS a2;
-ERROR 3D000: No database selected
-DELETE a1 FROM db1.t1 AS a1, db2.t2 AS a1;
-ERROR 3D000: No database selected
-DELETE a1 FROM db1.a1, db2.t2 AS a1;
-ERROR 3D000: No database selected
-DELETE a1 FROM a1, db1.t1 AS a1;
-ERROR 3D000: No database selected
-DELETE t1 FROM db1.t1, db2.t1 AS a1;
-ERROR 3D000: No database selected
-DELETE t1 FROM db1.t1 AS a1, db2.t1 AS a2;
-ERROR 3D000: No database selected
-DELETE t1 FROM db1.t1, db2.t1;
-ERROR 3D000: No database selected
-USE test;
-DELETE a1,a2 FROM db1.t1, db2.t2;
-ERROR 42S02: Unknown table 'a1' in MULTI DELETE
-DELETE a1,a2 FROM db1.t1, db2.t2;
-ERROR 42S02: Unknown table 'a1' in MULTI DELETE
-DELETE a1,a2 FROM db1.t1 AS a1, db2.t2;
-ERROR 42S02: Unknown table 'a2' in MULTI DELETE
-DELETE a1,a2 FROM db1.t1, db2.t2 AS a2;
-ERROR 42S02: Unknown table 'a1' in MULTI DELETE
-DELETE a1,a2 FROM db3.t1 AS a1, db4.t2 AS a2;
-ERROR 42S02: Table 'db3.t1' doesn't exist
-DELETE a1,a2 FROM db3.t1 AS a1, db4.t2 AS a2;
-ERROR 42S02: Table 'db3.t1' doesn't exist
-DELETE FROM a1,a2 USING db1.t1, db2.t2;
-ERROR 42S02: Unknown table 'a1' in MULTI DELETE
-DELETE FROM a1,a2 USING db1.t1, db2.t2;
-ERROR 42S02: Unknown table 'a1' in MULTI DELETE
-DELETE FROM a1,a2 USING db1.t1 AS a1, db2.t2;
-ERROR 42S02: Unknown table 'a2' in MULTI DELETE
-DELETE FROM a1,a2 USING db1.t1, db2.t2 AS a2;
-ERROR 42S02: Unknown table 'a1' in MULTI DELETE
-DELETE FROM a1,a2 USING db3.t1 AS a1, db4.t2 AS a2;
-ERROR 42S02: Table 'db3.t1' doesn't exist
-DELETE FROM a1,a2 USING db3.t1 AS a1, db4.t2 AS a2;
-ERROR 42S02: Table 'db3.t1' doesn't exist
-DELETE a1 FROM db1.t1 AS a1, db2.t2 AS a1;
-ERROR 42000: Not unique table/alias: 'a1'
-DELETE a1 FROM db1.a1, db2.t2 AS a1;
-ERROR 42S02: Table 'db1.a1' doesn't exist
-DELETE a1 FROM a1, db1.t1 AS a1;
-ERROR 42000: Not unique table/alias: 'a1'
-DELETE t1 FROM db1.t1, db2.t1 AS a1;
-ERROR 42S02: Unknown table 't1' in MULTI DELETE
-DELETE t1 FROM db1.t1 AS a1, db2.t1 AS a2;
-ERROR 42S02: Unknown table 't1' in MULTI DELETE
-DELETE t1 FROM db1.t1, db2.t1;
-ERROR 42S02: Unknown table 't1' in MULTI DELETE
-DELETE t1 FROM db1.t2 AS t1, db2.t2 AS t2 WHERE t2.a = 1 AND t1.a = t2.a;
-SELECT ROW_COUNT();
-ROW_COUNT()
-1
-CALL count_rows();
-COUNT(db1.t1)
-3
-COUNT(db1.t2)
-2
-COUNT(db2.t1)
-3
-COUNT(db2.t2)
-3
-COUNT(test.t1)
-3
-COUNT(test.t2)
-3
-DELETE a1, a2 FROM db2.t1 AS a1, t2 AS a2 WHERE a1.a = 2 AND a2.a = 2;
-SELECT ROW_COUNT();
-ROW_COUNT()
-2
-CALL count_rows();
-COUNT(db1.t1)
-3
-COUNT(db1.t2)
-2
-COUNT(db2.t1)
-2
-COUNT(db2.t2)
-3
-COUNT(test.t1)
-3
-COUNT(test.t2)
-2
-DROP DATABASE db1;
-DROP DATABASE db2;
-DROP PROCEDURE count_rows;
-DROP TABLE t1, t2;
-#
-# Bug#46958: Assertion in Diagnostics_area::set_ok_status, trigger,
-# merge table
-#
-CREATE TABLE t1 ( a INT );
-CREATE TABLE t2 ( a INT );
-CREATE TABLE t3 ( a INT );
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (1), (2);
-INSERT INTO t3 VALUES (1), (2);
-CREATE TRIGGER tr1 BEFORE DELETE ON t2
-FOR EACH ROW INSERT INTO no_such_table VALUES (1);
-DELETE t1, t2, t3 FROM t1, t2, t3;
-ERROR 42S02: Table 'test.no_such_table' doesn't exist
-SELECT * FROM t1;
-a
-SELECT * FROM t2;
-a
-1
-2
-SELECT * FROM t3;
-a
-1
-2
-DROP TABLE t1, t2, t3;
-CREATE TABLE t1 ( a INT );
-CREATE TABLE t2 ( a INT );
-CREATE TABLE t3 ( a INT );
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (1), (2);
-INSERT INTO t3 VALUES (1), (2);
-CREATE TRIGGER tr1 AFTER DELETE ON t2
-FOR EACH ROW INSERT INTO no_such_table VALUES (1);
-DELETE t1, t2, t3 FROM t1, t2, t3;
-ERROR 42S02: Table 'test.no_such_table' doesn't exist
-SELECT * FROM t1;
-a
-SELECT * FROM t2;
-a
-2
-SELECT * FROM t3;
-a
-1
-2
-DROP TABLE t1, t2, t3;
-#
-# Bug #46425 crash in Diagnostics_area::set_ok_status,
-# empty statement, DELETE IGNORE
-#
-CREATE table t1 (i INTEGER);
-INSERT INTO t1 VALUES (1);
-CREATE TRIGGER tr1 AFTER DELETE ON t1 FOR EACH ROW
-BEGIN
-INSERT INTO t1 SELECT * FROM t1 AS A;
-END |
-DELETE IGNORE FROM t1;
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-DROP TABLE t1;
-#
-# Bug #53450: Crash/assertion
-# "virtual int ha_myisam::index_first(uchar*)") at assert.c:81
-#
-CREATE TABLE t1 (a INT, b INT, c INT,
-INDEX(a), INDEX(b), INDEX(c));
-INSERT INTO t1 VALUES (1,2,3), (4,5,6), (7,8,9);
-DELETE FROM t1 WHERE a = 10 OR b = 20 ORDER BY c LIMIT 1;
-DROP TABLE t1;
-#
-# Bug #53034: Multiple-table DELETE statements not accepting
-# "Access compatibility" syntax
-#
-CREATE TABLE t1 (id INT);
-CREATE TABLE t2 LIKE t1;
-CREATE TABLE t3 LIKE t1;
-DELETE FROM t1.*, test.t2.*, a.* USING t1, t2, t3 AS a;
-DROP TABLE t1, t2, t3;
-End of 5.1 tests
-#
-# Bug#51099 Assertion in mysql_multi_delete_prepare()
-#
-DROP TABLE IF EXISTS t1, t2;
-DROP VIEW IF EXISTS v1, v2;
-CREATE TABLE t1(a INT);
-CREATE TABLE t2(b INT);
-CREATE VIEW v1 AS SELECT a, b FROM t1, t2;
-CREATE VIEW v2 AS SELECT a FROM v1;
-DELETE FROM v2;
-ERROR HY000: Can not delete from join view 'test.v2'
-DELETE v2 FROM v2;
-ERROR HY000: Can not delete from join view 'test.v2'
-DROP VIEW v2, v1;
-DROP TABLE t1, t2;
diff --git a/mysql-test/r/delete_returning.result b/mysql-test/r/delete_returning.result
deleted file mode 100644
index 3a95de0cdca..00000000000
--- a/mysql-test/r/delete_returning.result
+++ /dev/null
@@ -1,213 +0,0 @@
-drop table if exists t1,t2;
-drop view if exists v1;
-drop procedure if exists p1;
-CREATE TABLE t1 (a int, b varchar(32));
-INSERT INTO t1 VALUES
-(7,'ggggggg'), (1,'a'), (3,'ccc'),
-(4,'dddd'), (1,'A'), (2,'BB'), (4,'DDDD'),
-(5,'EEEEE'), (7,'GGGGGGG'), (2,'bb');
-CREATE TABLE t1c SELECT * FROM t1;
-CREATE TABLE t2 (c int);
-INSERT INTO t2 VALUES
-(4), (5), (7), (1);
-CREATE TABLE t2c SELECT * FROM t2;
-CREATE VIEW v1 AS SELECT a, UPPER(b) FROM t1;
-DELETE FROM t1 WHERE a=2 RETURNING * ;
-a b
-2 BB
-2 bb
-SELECT * FROM t1;
-a b
-7 ggggggg
-1 a
-3 ccc
-4 dddd
-1 A
-4 DDDD
-5 EEEEE
-7 GGGGGGG
-INSERT INTO t1 VALUES (2,'BB'), (2,'bb');
-DELETE FROM t1 WHERE a=2 RETURNING b;
-b
-bb
-BB
-SELECT * FROM t1;
-a b
-7 ggggggg
-1 a
-3 ccc
-4 dddd
-1 A
-4 DDDD
-5 EEEEE
-7 GGGGGGG
-DELETE FROM t1 WHERE a=2 RETURNING c;
-ERROR 42S22: Unknown column 'c' in 'field list'
-INSERT INTO t1 VALUES (2,'BB'), (2,'bb');
-DELETE FROM t1 WHERE a=2 RETURNING a, UPPER(b);
-a UPPER(b)
-2 BB
-2 BB
-SELECT * FROM t1;
-a b
-7 ggggggg
-1 a
-3 ccc
-4 dddd
-1 A
-4 DDDD
-5 EEEEE
-7 GGGGGGG
-INSERT INTO t1 VALUES (2,'BB'), (2,'bb');
-DELETE FROM t1 WHERE a=6 RETURNING b;
-b
-SELECT * FROM t1;
-a b
-7 ggggggg
-1 a
-3 ccc
-4 dddd
-1 A
-2 bb
-4 DDDD
-5 EEEEE
-7 GGGGGGG
-2 BB
-DELETE FROM t1 WHERE a=2 RETURNING MAX(b);
-ERROR HY000: Invalid use of group function
-DELETE FROM t1 WHERE a < 5 RETURNING a, (SELECT MIN(c) FROM t2 WHERE c=a+1);
-a (SELECT MIN(c) FROM t2 WHERE c=a+1)
-1 NULL
-3 4
-4 5
-1 NULL
-2 NULL
-4 5
-2 NULL
-SELECT * FROM t1;
-a b
-7 ggggggg
-5 EEEEE
-7 GGGGGGG
-DELETE FROM t1;
-INSERT INTO t1 SELECT * FROM t1c;
-DELETE FROM t2 WHERE c < 5
-RETURNING (SELECT GROUP_CONCAT(b) FROM t1 GROUP BY a HAVING a=c);
-(SELECT GROUP_CONCAT(b) FROM t1 GROUP BY a HAVING a=c)
-dddd,DDDD
-a,A
-SELECT * FROM t2;
-c
-5
-7
-DELETE FROM t2;
-INSERT INTO t2 SELECT * FROM t2c;
-CREATE FUNCTION f(arg INT) RETURNS TEXT
-BEGIN
-RETURN (SELECT GROUP_CONCAT(b) FROM t1 WHERE a=arg);
-END|
-DELETE FROM t2 WHERE c < 5 RETURNING f(c);
-f(c)
-dddd,DDDD
-a,A
-SELECT * FROM t2;
-c
-5
-7
-DELETE FROM t2;
-INSERT INTO t2 SELECT * FROM t2c;
-DROP FUNCTION f;
-DELETE FROM v1 WHERE a < 5 RETURNING * ;
-a UPPER(b)
-1 A
-3 CCC
-4 DDDD
-1 A
-2 BB
-4 DDDD
-2 BB
-SELECT * FROM t1;
-a b
-7 ggggggg
-5 EEEEE
-7 GGGGGGG
-DELETE FROM t1;
-INSERT INTO t1 SELECT * FROM t1c;
-CREATE VIEW v11(a,c) AS SELECT a, COUNT(b) FROM t1 GROUP BY a;
-DELETE FROM v11 WHERE a < 5 RETURNING * ;
-ERROR HY000: The target table v11 of the DELETE is not updatable
-DROP VIEW v11;
-PREPARE stmt FROM
-"DELETE FROM t1 WHERE a=2 ORDER BY b LIMIT 1 RETURNING a, UPPER(b)";
-EXECUTE stmt;
-a UPPER(b)
-2 BB
-SELECT * FROM t1;
-a b
-7 ggggggg
-1 a
-3 ccc
-4 dddd
-1 A
-4 DDDD
-5 EEEEE
-7 GGGGGGG
-2 bb
-EXECUTE stmt;
-a UPPER(b)
-2 BB
-SELECT * FROM t1;
-a b
-7 ggggggg
-1 a
-3 ccc
-4 dddd
-1 A
-4 DDDD
-5 EEEEE
-7 GGGGGGG
-DEALLOCATE PREPARE stmt;
-DROP VIEW v1;
-DROP TABLE t1,t2;
-DROP TABLE t1c,t2c;
-#
-# Bug mdev-4918: DELETE ... RETURNING subquery with more than 1 row
-#
-CREATE TABLE t1 (i1 int);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (i2 int);
-INSERT INTO t2 VALUES (1),(2);
-DELETE FROM t1 ORDER BY i1 RETURNING ( SELECT i2 FROM t2 );
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1,t2;
-#
-# MDEV-4919: Packets out of order on a SELECT after calling a procedure with DELETE .. RETURNING
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE PROCEDURE p1 (a INT)
-BEGIN
-DELETE FROM t1 WHERE i = a RETURNING *;
-INSERT INTO t1 VALUES (a);
-END |
-CALL p1(1);
-i
-1
-SELECT * FROM t1;
-i
-1
-2
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# MDEV-13776: DELETE ... RETURNING with sql_mode='ONLY_FULL_GROUP_BY'
-#
-set @sql_mode_save= @@sql_mode;
-set sql_mode='ONLY_FULL_GROUP_BY';
-CREATE TABLE t1 (id INT);
-INSERT INTO t1 VALUE(1),(2),(3);
-DELETE FROM t1 WHERE id > 2 RETURNING *;
-id
-3
-set sql_mode=@sql_mode_save;
-DROP TABLE t1;
diff --git a/mysql-test/r/delete_returning_grant.result b/mysql-test/r/delete_returning_grant.result
deleted file mode 100644
index b41d48a7112..00000000000
--- a/mysql-test/r/delete_returning_grant.result
+++ /dev/null
@@ -1,83 +0,0 @@
-set GLOBAL sql_mode="";
-set LOCAL sql_mode="";
-CREATE TABLE t1 (a int(11), b varchar(32));
-INSERT INTO t1 VALUES (7,'ggggggg'),(1,'a'),(3,'ccc'),(4,'dddd'),(1,'A'),
-(2,'BB'),(4,'DDDD'),(5,'EEEEE'),(7,'GGGGGGG'),(2,'bb');
-CREATE VIEW v1 AS SELECT a, UPPER(b) FROM t1;
-connect root,localhost,root,,test;
-connection root;
-CREATE DATABASE mysqltest;
-CREATE TABLE mysqltest.t1 SELECT * FROM t1;
-GRANT DELETE ON mysqltest.* TO mysqltest_1@localhost;
-GRANT SELECT(b) ON mysqltest.t1 TO mysqltest_1@localhost;
-connect user1,localhost,mysqltest_1,,test;
-connection user1;
-DELETE FROM mysqltest.t1 WHERE a=2 RETURNING b;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'a' in table 't1'
-DELETE FROM mysqltest.t1 RETURNING b;
-b
-ggggggg
-a
-ccc
-dddd
-A
-BB
-DDDD
-EEEEE
-GGGGGGG
-bb
-connection root;
-SELECT * FROM mysqltest.t1;
-a b
-INSERT INTO mysqltest.t1 SELECT * FROM t1;
-GRANT SELECT(a) ON mysqltest.t1 TO mysqltest_1@localhost;
-DELETE FROM mysqltest.t1 WHERE a=2 RETURNING b;
-b
-bb
-BB
-SELECT * FROM mysqltest.t1;
-a b
-7 GGGGGGG
-5 EEEEE
-4 DDDD
-1 A
-4 dddd
-3 ccc
-1 a
-7 ggggggg
-INSERT INTO mysqltest.t1 SELECT * FROM t1;
-connection root;
-CREATE VIEW mysqltest.v1(a) AS SELECT a FROM mysqltest.t1;
-GRANT SELECT, INSERT ON mysqltest.t1 TO mysqltest_1@localhost;
-connection user1;
-DELETE FROM mysqltest.v1;
-SELECT * FROM mysqltest.t1;
-a b
-INSERT INTO mysqltest.t1 SELECT * FROM t1;
-DELETE FROM mysqltest.v1 RETURNING a;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'a' in table 'v1'
-connection root;
-GRANT SELECT ON mysqltest.* TO mysqltest_1@localhost;
-connection user1;
-DELETE FROM mysqltest.v1 RETURNING a;
-a
-7
-1
-3
-4
-1
-2
-4
-5
-7
-2
-SELECT * FROM mysqltest.t1;
-a b
-INSERT INTO mysqltest.t1 SELECT * FROM t1;
-connection root;
-DROP DATABASE mysqltest;
-disconnect user1;
-DROP USER mysqltest_1@localhost;
-DROP VIEW v1;
-DROP TABLE t1;
-set GLOBAL sql_mode=default;
diff --git a/mysql-test/r/delete_use_source.result b/mysql-test/r/delete_use_source.result
deleted file mode 100644
index 08da8901528..00000000000
--- a/mysql-test/r/delete_use_source.result
+++ /dev/null
@@ -1,154 +0,0 @@
-create table t1(c1 integer not null,c2 integer not null, key (c1)) engine=InnoDb;
-create view v1 as select * from t1 where c1 in (0,1);
-insert t1 select 0,seq from seq_1_to_500;
-insert t1 select 1,seq from seq_1_to_100;
-insert t1 select 2,seq from seq_1_to_50;
-insert t1 select 3,seq from seq_1_to_20;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-#
-# Delete with limit (quick select - range acces)
-#
-start transaction;
-delete from t1 where (select count(*) from t1 b where b.c1=t1.c1) = 500 limit 1;
-affected rows: 1
-delete from t1 where (select count(*) from t1 b where b.c1=t1.c1) = 500 limit 1;
-affected rows: 0
-select count(*) from v1 where c1=0;
-count(*)
-499
-rollback;
-#
-# Delete
-#
-start transaction;
-delete from t1 where (select count(*) from t1 b where b.c1=t1.c1) = 500 ;
-affected rows: 500
-rollback;
-#
-# Delete with exists
-#
-start transaction;
-select count(*) from v1 where c1=2;
-count(*)
-0
-delete from t1 where c1=2 and exists(select 'x' from t1 b where b.c2<10);
-affected rows: 50
-delete from t1 where c1=2 and exists(select 'x' from t1 b where b.c2<10);
-affected rows: 0
-select count(*) from v1 where c1=2;
-count(*)
-0
-rollback;
-#
-# Delete through a view with limit (range access)
-#
-start transaction;
-explain delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500 limit 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL c1 NULL NULL NULL 502 Using where
-2 DEPENDENT SUBQUERY b ref c1 c1 4 test.t1.c1 58 Using index
-delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500 limit 1;
-affected rows: 1
-delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500 limit 1;
-affected rows: 0
-select count(*) from v1 where c1=0;
-count(*)
-499
-rollback;
-#
-# Delete through a view (ALL access)
-#
-start transaction;
-explain delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL c1 NULL NULL NULL 502 Using where
-2 DEPENDENT SUBQUERY b ref c1 c1 4 test.t1.c1 58 Using index
-delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500 ;
-affected rows: 500
-select count(*) from v1 where c1=0;
-count(*)
-0
-rollback;
-#
-# Delete failed due to trigger
-#
-create trigger trg after delete on t1 for each row
-begin
-declare c int;
-begin
-if old.c1 = 1 then
-select count(*) into c from t1 where c1!=old.c1;
-SIGNAL SQLSTATE '45000' set table_name=c;
-end if;
-end;
-end;
-/
-start transaction;
-delete from t1 where c1=1 and (select count(*) from t1 b where b.c1=t1.c1) > 0 order by c2 asc limit 10;
-ERROR 45000: Unhandled user-defined exception condition
-rollback;
-start transaction;
-delete from t1 where (select count(*) from t1 b where b.c1=t1.c1) > 0 order by c1 desc limit 100;
-ERROR 45000: Unhandled user-defined exception condition
-select c1,count(*) from t1 group by c1;
-c1 count(*)
-0 500
-1 100
-2 50
-3 20
-rollback;
-drop trigger trg;
-#
-# Delete through a view with returning
-#
-start transaction;
-delete from t1 where (select count(*) from t1 b where b.c1=t1.c1) = 500 order by c2 asc limit 10 returning c1,c2;
-c1 c2
-0 1
-0 2
-0 3
-0 4
-0 5
-0 6
-0 7
-0 8
-0 9
-0 10
-rollback;
-start transaction;
-delete from t1 where (select count(*) from t1 b where b.c1=t1.c1) = 500 order by c2 desc limit 10 returning c1,c2;
-c1 c2
-0 491
-0 492
-0 493
-0 494
-0 495
-0 496
-0 497
-0 498
-0 499
-0 500
-rollback;
-drop view v1;
-drop table t1;
-#
-# Delete from table with more than 150000 rows
-#
-create table t1(c1 integer not null,c2 integer not null, key (c1));
-insert t1 select 0,seq from seq_1_to_128000;
-insert t1 select 1,seq from seq_1_to_25600;
-select count(*) from t1;
-count(*)
-153600
-# with a lot of memory for sort_buffer_size
-set session sort_buffer_size = 1024000;
-delete from t1 where c1=0 and exists(select 'x' from t1 b where b.c1<10);
-affected rows: 128000
-# with little memory for sort_buffer_size
-insert t1 select 0,seq from seq_1_to_128000;
-set session sort_buffer_size = 1024;
-delete from t1 where c1=0 and exists(select 'x' from t1 b where b.c1<10);
-affected rows: 128000
-drop table t1;
diff --git a/mysql-test/r/delimiter_command_case_sensitivity.result b/mysql-test/r/delimiter_command_case_sensitivity.result
deleted file mode 100644
index 6ed281c757a..00000000000
--- a/mysql-test/r/delimiter_command_case_sensitivity.result
+++ /dev/null
@@ -1,2 +0,0 @@
-1
-1
diff --git a/mysql-test/r/deprecated_features.result b/mysql-test/r/deprecated_features.result
deleted file mode 100644
index fc6c86d065d..00000000000
--- a/mysql-test/r/deprecated_features.result
+++ /dev/null
@@ -1,24 +0,0 @@
-set global log_bin_trust_routine_creators=1;
-ERROR HY000: Unknown system variable 'log_bin_trust_routine_creators'
-set table_type='MyISAM';
-ERROR HY000: Unknown system variable 'table_type'
-select @@table_type='MyISAM';
-ERROR HY000: Unknown system variable 'table_type'
-backup table t1 to 'data.txt';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'backup table t1 to 'data.txt'' at line 1
-restore table t1 from 'data.txt';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'restore table t1 from 'data.txt'' at line 1
-show plugin;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'plugin' at line 1
-load table t1 from master;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'table t1 from master' at line 1
-load data from master;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'from master' at line 1
-SHOW INNODB STATUS;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INNODB STATUS' at line 1
-create table t1 (t6 timestamp) type=myisam;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'type=myisam' at line 1
-show table types;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'types' at line 1
-show mutex status;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'mutex status' at line 1
diff --git a/mysql-test/r/derived.result b/mysql-test/r/derived.result
deleted file mode 100644
index ebbc08aa958..00000000000
--- a/mysql-test/r/derived.result
+++ /dev/null
@@ -1,1164 +0,0 @@
-drop table if exists t1,t2,t3;
-set @save_derived_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-select * from (select 2 from DUAL) b;
-2
-2
-SELECT 1 as a FROM (SELECT 1 UNION SELECT a) b;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT 1 as a FROM (SELECT a UNION SELECT 1) b;
-ERROR 42S22: Unknown column 'a' in 'field list'
-CREATE TABLE t1 (a int not null, b char (10) not null);
-insert into t1 values(1,'a'),(2,'b'),(3,'c'),(3,'c');
-CREATE TABLE t2 (a int not null, b char (10) not null);
-insert into t2 values (3,'c'),(4,'d'),(5,'f'),(6,'e');
-select t1.a,t3.y from t1,(select a as y from t2 where b='c') as t3 where t1.a = t3.y;
-a y
-3 3
-3 3
-select t1.a,t3.a from t1,(select * from t2 where b='c') as t3 where t1.a = t3.a;
-a a
-3 3
-3 3
-CREATE TABLE t3 (a int not null, b char (10) not null);
-insert into t3 values (3,'f'),(4,'y'),(5,'z'),(6,'c');
-select t1.a,t4.y from t1,(select t2.a as y from t2,(select t3.b from t3 where t3.a>3) as t5 where t2.b=t5.b) as t4 where t1.a = t4.y;
-a y
-3 3
-3 3
-SELECT a FROM (SELECT 1 FROM (SELECT 1) a HAVING a=1) b;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT a,b as a FROM (SELECT '1' as a,'2' as b) b HAVING a=1;
-ERROR 23000: Column 'a' in having clause is ambiguous
-SELECT a,2 as a FROM (SELECT '1' as a) b HAVING a=2;
-a a
-1 2
-SELECT a,2 as a FROM (SELECT '1' as a) b HAVING a=1;
-a a
-SELECT 1 FROM (SELECT 1) a WHERE a=2;
-ERROR 42S22: Unknown column 'a' in 'where clause'
-SELECT (SELECT 1) as a FROM (SELECT 1 FROM t1 HAVING a=1) as a;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-select * from t1 as x1, (select * from t1) as x2;
-a b a b
-1 a 1 a
-2 b 1 a
-3 c 1 a
-3 c 1 a
-1 a 2 b
-2 b 2 b
-3 c 2 b
-3 c 2 b
-1 a 3 c
-2 b 3 c
-3 c 3 c
-3 c 3 c
-1 a 3 c
-2 b 3 c
-3 c 3 c
-3 c 3 c
-explain select * from t1 as x1, (select * from t1) as x2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY x1 ALL NULL NULL NULL NULL 4
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4 Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 4
-drop table if exists t2,t3;
-select * from (select 1) as a;
-1
-1
-select a from (select 1 as a) as b;
-a
-1
-select 1 from (select 1) as a;
-1
-1
-select * from (select * from t1 union select * from t1) a;
-a b
-1 a
-2 b
-3 c
-select * from (select * from t1 union all select * from t1) a;
-a b
-1 a
-2 b
-3 c
-3 c
-1 a
-2 b
-3 c
-3 c
-select * from (select * from t1 union all select * from t1 limit 2) a;
-a b
-1 a
-2 b
-explain select * from (select * from t1 union select * from t1) a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 8
-2 DERIVED t1 ALL NULL NULL NULL NULL 4
-3 UNION t1 ALL NULL NULL NULL NULL 4
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-explain select * from (select * from t1 union all select * from t1) a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 8
-2 DERIVED t1 ALL NULL NULL NULL NULL 4
-3 UNION t1 ALL NULL NULL NULL NULL 4
-CREATE TABLE t2 (a int not null);
-insert into t2 values(1);
-select * from (select * from t1 where t1.a=(select a from t2 where t2.a=t1.a)) a;
-a b
-1 a
-select * from (select * from t1 where t1.a=(select t2.a from t2 where t2.a=t1.a) union select t1.a, t1.b from t1) a;
-a b
-1 a
-2 b
-3 c
-explain select * from (select t1.*, t2.a as t2a from t1,t2 where t1.a=t2.a) t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4
-2 DERIVED t2 system NULL NULL NULL NULL 1
-2 DERIVED t1 ALL NULL NULL NULL NULL 4 Using where
-drop table t1, t2;
-create table t1(a int not null, t char(8), index(a));
-SELECT * FROM (SELECT * FROM t1) as b ORDER BY a ASC LIMIT 0,20;
-a t
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 9
-10 10
-11 11
-12 12
-13 13
-14 14
-15 15
-16 16
-17 17
-18 18
-19 19
-20 20
-explain select count(*) from t1 as tt1, (select * from t1) as tt2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY tt1 index NULL a 4 NULL 10000 Using index
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 10000 Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 10000
-drop table t1;
-SELECT * FROM (SELECT (SELECT * FROM (SELECT 1 as a) as a )) as b;
-(SELECT * FROM (SELECT 1 as a) as a )
-1
-select * from (select 1 as a) b left join (select 2 as a) c using(a);
-a
-1
-SELECT * FROM (SELECT 1 UNION SELECT a) b;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT 1 as a FROM (SELECT a UNION SELECT 1) b;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT 1 as a FROM (SELECT 1 UNION SELECT a) b;
-ERROR 42S22: Unknown column 'a' in 'field list'
-select 1 from (select 2) a order by 0;
-ERROR 42S22: Unknown column '0' in 'order clause'
-create table t1 (id int);
-insert into t1 values (1),(2),(3);
-describe select * from (select * from t1 group by id) bar;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3
-2 DERIVED t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
-drop table t1;
-create table t1 (mat_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, matintnum CHAR(6) NOT NULL, test MEDIUMINT UNSIGNED NULL);
-create table t2 (mat_id MEDIUMINT UNSIGNED NOT NULL, pla_id MEDIUMINT UNSIGNED NOT NULL);
-insert into t1 values (NULL, 'a', 1), (NULL, 'b', 2), (NULL, 'c', 3), (NULL, 'd', 4), (NULL, 'e', 5), (NULL, 'f', 6), (NULL, 'g', 7), (NULL, 'h', 8), (NULL, 'i', 9);
-insert into t2 values (1, 100), (1, 101), (1, 102), (2, 100), (2, 103), (2, 104), (3, 101), (3, 102), (3, 105);
-SELECT STRAIGHT_JOIN d.pla_id, m2.mat_id FROM t1 m2 INNER JOIN (SELECT mp.pla_id, MIN(m1.matintnum) AS matintnum FROM t2 mp INNER JOIN t1 m1 ON mp.mat_id=m1.mat_id GROUP BY mp.pla_id) d ON d.matintnum=m2.matintnum;
-pla_id mat_id
-100 1
-101 1
-102 1
-103 2
-104 2
-105 3
-SELECT STRAIGHT_JOIN d.pla_id, m2.test FROM t1 m2 INNER JOIN (SELECT mp.pla_id, MIN(m1.matintnum) AS matintnum FROM t2 mp INNER JOIN t1 m1 ON mp.mat_id=m1.mat_id GROUP BY mp.pla_id) d ON d.matintnum=m2.matintnum;
-pla_id test
-100 1
-101 1
-102 1
-103 2
-104 2
-105 3
-explain SELECT STRAIGHT_JOIN d.pla_id, m2.mat_id FROM t1 m2 INNER JOIN (SELECT mp.pla_id, MIN(m1.matintnum) AS matintnum FROM t2 mp INNER JOIN t1 m1 ON mp.mat_id=m1.mat_id GROUP BY mp.pla_id) d ON d.matintnum=m2.matintnum;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY m2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 9 Using where; Using join buffer (flat, BNL join)
-2 DERIVED mp ALL NULL NULL NULL NULL 9 Using temporary; Using filesort
-2 DERIVED m1 eq_ref PRIMARY PRIMARY 3 test.mp.mat_id 1
-explain SELECT STRAIGHT_JOIN d.pla_id, m2.test FROM t1 m2 INNER JOIN (SELECT mp.pla_id, MIN(m1.matintnum) AS matintnum FROM t2 mp INNER JOIN t1 m1 ON mp.mat_id=m1.mat_id GROUP BY mp.pla_id) d ON d.matintnum=m2.matintnum;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY m2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 9 Using where; Using join buffer (flat, BNL join)
-2 DERIVED mp ALL NULL NULL NULL NULL 9 Using temporary; Using filesort
-2 DERIVED m1 eq_ref PRIMARY PRIMARY 3 test.mp.mat_id 1
-drop table t1,t2;
-SELECT a.x FROM (SELECT 1 AS x) AS a HAVING a.x = 1;
-x
-1
-create user mysqltest_1;
-create table t1 select 1 as a;
-connect con1,localhost,mysqltest_1,,*NO-ONE*,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection con1;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-select 2 as a from (select * from t1) b;
-ERROR 3D000: No database selected
-use test;
-select 2 as a from (select * from t1) b;
-a
-2
-drop table t1;
-select mail_id, if(folder.f_description!='', folder.f_description, folder.f_name) as folder_name, date, address_id, phrase, address, subject from folder, (select mail.mail_id as mail_id, date_format(mail.h_date, '%b %e, %Y %h:%i') as date, mail.folder_id, sender.address_id as address_id, sender.phrase as phrase, sender.address as address, mail.h_subject as subject from mail left join mxa as mxa_sender on mail.mail_id=mxa_sender.mail_id and mxa_sender.type='from' left join address as sender on mxa_sender.address_id=sender.address_id mxa as mxa_recipient, address as recipient, where 1 and mail.mail_id=mxa_recipient.mail_id and mxa_recipient.address_id=recipient.address_id and mxa_recipient.type='to' and match(sender.phrase, sender.address, sender.comment) against ('jeremy' in boolean mode) and match(recipient.phrase, recipient.address, recipient.comment) against ('monty' in boolean mode) order by mail.h_date desc limit 0, 25 ) as query where query.folder_id=folder.folder_id;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'mxa as mxa_recipient, address as recipient, where 1 and mail.mail_id=mxa_r' at line 1
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-update (select * from t1) as t1 set a = 5;
-ERROR HY000: The target table t1 of the UPDATE is not updatable
-delete from (select * from t1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(select * from t1)' at line 1
-insert into (select * from t1) values (5);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(select * from t1) values (5)' at line 1
-drop table t1;
-create table t1 (E1 INTEGER UNSIGNED NOT NULL, E2 INTEGER UNSIGNED NOT NULL, E3 INTEGER UNSIGNED NOT NULL, PRIMARY KEY(E1)
-);
-insert into t1 VALUES(1,1,1), (2,2,1);
-select count(*) from t1 INNER JOIN (SELECT A.E1, A.E2, A.E3 FROM t1 AS A WHERE A.E3 = (SELECT MAX(B.E3) FROM t1 AS B WHERE A.E2 = B.E2)) AS THEMAX ON t1.E1 = THEMAX.E2 AND t1.E1 = t1.E2;
-count(*)
-2
-explain select count(*) from t1 INNER JOIN (SELECT A.E1, A.E2, A.E3 FROM t1 AS A WHERE A.E3 = (SELECT MAX(B.E3) FROM t1 AS B WHERE A.E2 = B.E2)) AS THEMAX ON t1.E1 = THEMAX.E2 AND t1.E1 = t1.E2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 THEMAX.E2 1 Using where
-2 DERIVED A ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT SUBQUERY B ALL NULL NULL NULL NULL 2 Using where
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(2);
-select * from ( select * from t1 union select * from t1) a,(select * from t1 union select * from t1) b;
-a a
-1 1
-2 1
-1 2
-2 2
-explain select * from ( select * from t1 union select * from t1) a,(select * from t1 union select * from t1) b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4
-1 PRIMARY <derived4> ALL NULL NULL NULL NULL 4 Using join buffer (flat, BNL join)
-4 DERIVED t1 ALL NULL NULL NULL NULL 2
-5 UNION t1 ALL NULL NULL NULL NULL 2
-NULL UNION RESULT <union4,5> ALL NULL NULL NULL NULL NULL
-2 DERIVED t1 ALL NULL NULL NULL NULL 2
-3 UNION t1 ALL NULL NULL NULL NULL 2
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-drop table t1;
-CREATE TABLE `t1` (
-`N` int(11) unsigned NOT NULL default '0',
-`M` tinyint(1) default '0'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO `t1` (N, M) VALUES (1, 0),(1, 0),(1, 0),(2, 0),(2, 0),(3, 0);
-UPDATE `t1` AS P1 INNER JOIN (SELECT N FROM `t1` GROUP BY N HAVING Count(M) > 1) AS P2 ON P1.N = P2.N SET P1.M = 2;
-select * from t1;
-N M
-1 2
-1 2
-1 2
-2 2
-2 2
-3 0
-UPDATE `t1` AS P1 INNER JOIN (SELECT N FROM `t1` GROUP BY N HAVING Count(M) > 1) AS P2 ON P1.N = P2.N SET P1.M = 2, P2.N = 2;
-ERROR HY000: The target table P2 of the UPDATE is not updatable
-UPDATE `t1` AS P1 INNER JOIN (SELECT aaaa FROM `t1` GROUP BY N HAVING Count(M) > 1) AS P2 ON P1.N = P2.N SET P1.M = 2;
-ERROR 42S22: Unknown column 'aaaa' in 'field list'
-delete P1.* from `t1` AS P1 INNER JOIN (SELECT N FROM `t1` GROUP BY N HAVING Count(M) > 1) AS P2 ON P1.N = P2.N;
-select * from t1;
-N M
-3 0
-delete P1.*,p2.* from `t1` AS P1 INNER JOIN (SELECT N FROM `t1` GROUP BY N HAVING Count(M) > 1) AS p2 ON P1.N = p2.N;
-ERROR HY000: The target table p2 of the DELETE is not updatable
-delete P1.* from `t1` AS P1 INNER JOIN (SELECT aaa FROM `t1` GROUP BY N HAVING Count(M) > 1) AS P2 ON P1.N = P2.N;
-ERROR 42S22: Unknown column 'aaa' in 'field list'
-drop table t1;
-CREATE TABLE t1 (
-OBJECTID int(11) NOT NULL default '0',
-SORTORDER int(11) NOT NULL auto_increment,
-KEY t1_SortIndex (SORTORDER),
-KEY t1_IdIndex (OBJECTID)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-CREATE TABLE t2 (
-ID int(11) default NULL,
-PARID int(11) default NULL,
-UNIQUE KEY t2_ID_IDX (ID),
-KEY t2_PARID_IDX (PARID)
-) engine=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t2 VALUES (1000,0),(1001,0),(1002,0),(1003,0),(1008,1),(1009,1),(1010,1),(1011,1),(1016,2);
-CREATE TABLE t3 (
-ID int(11) default NULL,
-DATA decimal(10,2) default NULL,
-UNIQUE KEY t3_ID_IDX (ID)
-) engine=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t3 VALUES (1000,0.00),(1001,0.25),(1002,0.50),(1003,0.75),(1008,1.00),(1009,1.25),(1010,1.50),(1011,1.75);
-select 497, TMP.ID, NULL from (select 497 as ID, MAX(t3.DATA) as DATA from t1 join t2 on (t1.ObjectID = t2.ID) join t3 on (t1.ObjectID = t3.ID) group by t2.ParID order by DATA DESC) as TMP;
-497 ID NULL
-drop table t1, t2, t3;
-CREATE TABLE t1 (name char(1) default NULL, val int(5) default NULL);
-INSERT INTO t1 VALUES ('a',1), ('a',2), ('a',2), ('a',2), ('a',3), ('a',6), ('a',7), ('a',11), ('a',11), ('a',12), ('a',13), ('a',13), ('a',20), ('b',2), ('b',3), ('b',4), ('b',5);
-SELECT s.name, AVG(s.val) AS median FROM (SELECT x.name, x.val FROM t1 x, t1 y WHERE x.name=y.name GROUP BY x.name, x.val HAVING SUM(y.val <= x.val) >= COUNT(*)/2 AND SUM(y.val >= x.val) >= COUNT(*)/2) AS s GROUP BY s.name;
-name median
-a 7.0000
-b 3.5000
-explain SELECT s.name, AVG(s.val) AS median FROM (SELECT x.name, x.val FROM t1 x, t1 y WHERE x.name=y.name GROUP BY x.name, x.val HAVING SUM(y.val <= x.val) >= COUNT(*)/2 AND SUM(y.val >= x.val) >= COUNT(*)/2) AS s GROUP BY s.name;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 289 Using temporary; Using filesort
-2 DERIVED x ALL NULL NULL NULL NULL 17 Using temporary; Using filesort
-2 DERIVED y ALL NULL NULL NULL NULL 17 Using where; Using join buffer (flat, BNL join)
-drop table t1;
-create table t2 (a int, b int, primary key (a));
-insert into t2 values (1,7),(2,7);
-explain select a from t2 where a>1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index PRIMARY PRIMARY 4 NULL 2 Using where; Using index
-explain select a from (select a from t2 where a>1) tt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED t2 index PRIMARY PRIMARY 4 NULL 2 Using where; Using index
-drop table t2;
-CREATE TABLE `t1` ( `itemid` int(11) NOT NULL default '0', `grpid` varchar(15) NOT NULL default '', `vendor` int(11) NOT NULL default '0', `date_` date NOT NULL default '0000-00-00', `price` decimal(12,2) NOT NULL default '0.00', PRIMARY KEY (`itemid`,`grpid`,`vendor`,`date_`), KEY `itemid` (`itemid`,`vendor`), KEY `itemid_2` (`itemid`,`date_`));
-insert into t1 values (128, 'rozn', 2, curdate(), 10),
-(128, 'rozn', 1, curdate(), 10);
-SELECT MIN(price) min, MAX(price) max, AVG(price) avg FROM (SELECT SUBSTRING( MAX(concat(date_,";",price)), 12) price FROM t1 WHERE itemid=128 AND grpid='rozn' GROUP BY itemid, grpid, vendor) lastprices;
-min max avg
-10.00 10.00 10
-DROP TABLE t1;
-create table t1 (a integer, b integer);
-insert into t1 values (1,4), (2,2),(2,2), (4,1),(4,1),(4,1),(4,1);
-select distinct sum(b) from t1 group by a;
-sum(b)
-4
-select distinct sum(b) from (select a,b from t1) y group by a;
-sum(b)
-4
-drop table t1;
-CREATE TABLE t1 (a char(10), b char(10));
-INSERT INTO t1 VALUES ('root','localhost'), ('root','%');
-SELECT * FROM (SELECT (SELECT a.a FROM t1 AS a WHERE a.a = b.a) FROM t1 AS b) AS c;
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1;
-create table t1(a int);
-create table t2(a int);
-create table t3(a int);
-insert into t1 values(1),(1);
-insert into t2 values(2),(2);
-insert into t3 values(3),(3);
-select * from t1 union distinct select * from t2 union all select * from t3;
-a
-1
-2
-3
-3
-select * from (select * from t1 union distinct select * from t2 union all select * from t3) X;
-a
-1
-2
-3
-3
-drop table t1, t2, t3;
-create table t1 (a int);
-create table t2 (a int);
-select * from (select * from t1,t2) foo;
-ERROR 42S21: Duplicate column name 'a'
-drop table t1,t2;
-create table t1 (ID int unsigned not null auto_increment,
-DATA varchar(5) not null, primary key (ID));
-create table t2 (ID int unsigned not null auto_increment,
-DATA varchar(5) not null, FID int unsigned not null,
-primary key (ID));
-select A.* from (t1 inner join (select * from t2) as A on t1.ID = A.FID);
-ID DATA FID
-select t2.* from ((select * from t1) as A inner join t2 on A.ID = t2.FID);
-ID DATA FID
-select t2.* from (select * from t1) as A inner join t2 on A.ID = t2.FID;
-ID DATA FID
-drop table t1, t2;
-connection con1;
-disconnect con1;
-connection default;
-drop user mysqltest_1;
-# End of 4.1 tests
-SELECT 0 FROM
-(SELECT 0) t01, (SELECT 0) t02, (SELECT 0) t03, (SELECT 0) t04, (SELECT 0) t05,
-(SELECT 0) t06, (SELECT 0) t07, (SELECT 0) t08, (SELECT 0) t09, (SELECT 0) t10,
-(SELECT 0) t11, (SELECT 0) t12, (SELECT 0) t13, (SELECT 0) t14, (SELECT 0) t15,
-(SELECT 0) t16, (SELECT 0) t17, (SELECT 0) t18, (SELECT 0) t19, (SELECT 0) t20,
-(SELECT 0) t21, (SELECT 0) t22, (SELECT 0) t23, (SELECT 0) t24, (SELECT 0) t25,
-(SELECT 0) t26, (SELECT 0) t27, (SELECT 0) t28, (SELECT 0) t29, (SELECT 0) t30,
-(SELECT 0) t31, (SELECT 0) t32, (SELECT 0) t33, (SELECT 0) t34, (SELECT 0) t35,
-(SELECT 0) t36, (SELECT 0) t37, (SELECT 0) t38, (SELECT 0) t39, (SELECT 0) t40,
-(SELECT 0) t41, (SELECT 0) t42, (SELECT 0) t43, (SELECT 0) t44, (SELECT 0) t45,
-(SELECT 0) t46, (SELECT 0) t47, (SELECT 0) t48, (SELECT 0) t49, (SELECT 0) t50,
-(SELECT 0) t51, (SELECT 0) t52, (SELECT 0) t53, (SELECT 0) t54, (SELECT 0) t55,
-(SELECT 0) t56, (SELECT 0) t57, (SELECT 0) t58, (SELECT 0) t59, (SELECT 0) t60,
-(SELECT 0) t61;
-0
-0
-#
-# A nested materialized derived table is used before being populated.
-# (addon for bug#19077)
-#
-CREATE TABLE t1 (i INT, j BIGINT);
-INSERT INTO t1 VALUES (1, 2), (2, 2), (3, 2);
-SELECT * FROM (SELECT MIN(i) FROM t1
-WHERE j = SUBSTRING('12', (SELECT * FROM (SELECT MIN(j) FROM t1) t2))) t3;
-MIN(i)
-1
-DROP TABLE t1;
-# End of 5.0 tests
-#
-# MDEV-5005: Subquery in Procedure somehow affecting temporary table
-#
-create temporary table if not exists t1 (id int not null);
-select A.* from ( select tt.* from t1 tt ) A;
-id
-prepare stmt from "select A.* from ( select tt.* from t1 tt ) A ";
-execute stmt;
-id
-deallocate prepare stmt;
-drop temporary table t1;
-CREATE PROCEDURE p ()
-BEGIN
-select A.* from ( select tt.* from t1 tt ) A ;
-END |
-create temporary table if not exists t1 (id int not null);
-CALL p();
-id
-CALL p();
-id
-drop procedure p;
-drop temporary table t1;
-#
-# MDEV-5143: update of a joined table with a nested subquery with
-# a syntax error crashes mysqld with signal 11
-#
-create table t1 (id int(11) not null auto_increment, val varchar(100) null,primary key (id));
-create table t2 (id int(11) not null auto_increment, val varchar(100) null,primary key (id));
-insert into t1 (val) values('a');
-insert into t2 (val) values('1');
-update
-(
-select
-val
-from
-(
-select
-v.val
-from
-t2 wrong_table_alias
-) t4
-) t3
-inner join t1 on
-t1.id=t3.val
-set
-t1.val=t3.val
-;
-ERROR 42S22: Unknown column 'v.val' in 'field list'
-drop table t1, t2;
-#
-# MDEV-5353: server crash on subselect if WHERE applied to some
-# result field
-#
-SELECT * FROM
-( SELECT 100 a, subsel.b FROM ( SELECT 200 b ) subsel ) tmp
-WHERE tmp.b;
-a b
-100 200
-SELECT * FROM
-( SELECT 100 a, subsel.b FROM ( SELECT 200 b ) subsel ) tmp
-WHERE tmp.a;
-a b
-100 200
-#
-# MDEV-5356: Server crashes in Item_equal::contains on 2nd
-# execution of a PS
-#
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1,2),(3,4);
-CREATE TABLE t2 (c INT);
-INSERT INTO t2 VALUES (5),(6);
-CREATE TABLE t3 (d INT);
-INSERT INTO t3 VALUES (7),(8);
-CREATE PROCEDURE pr()
-UPDATE t3,
-(SELECT c FROM
-(SELECT 1 FROM t1 WHERE a=72 AND NOT b) sq,
-t2
-) sq2
-SET d=sq2.c;
-CALL pr();
-CALL pr();
-CALL pr();
-drop procedure pr;
-drop table t1,t2,t3;
-# End of 5.3 tests
-#
-# Bug#58730 Assertion failed: table->key_read == 0 in close_thread_table,
-# temptable views
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (b INT, KEY (b));
-INSERT INTO t1 VALUES (1),(1);
-INSERT INTO t2 VALUES (1),(1);
-CREATE algorithm=temptable VIEW v1 AS
-SELECT 1 FROM t1 LEFT JOIN t1 t3 ON 1 > (SELECT 1 FROM t1);
-CREATE algorithm=temptable VIEW v2 AS SELECT 1 FROM t2;
-EXPLAIN SELECT 1 FROM t1 JOIN v1 ON 1 > (SELECT 1 FROM v2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 4 Using join buffer (flat, BNL join)
-3 DERIVED t1 ALL NULL NULL NULL NULL 2
-3 DERIVED t3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-4 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY <derived5> ALL NULL NULL NULL NULL 2
-5 DERIVED t2 index NULL b 5 NULL 2 Using index
-SELECT 1 FROM t1 JOIN v1 ON 1 > (SELECT 1 FROM v2);
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1, t2;
-DROP VIEW v1, v2;
-create table t1 (n bigint(20) unsigned, d1 datetime, d2 datetime, key (d1));
-insert t1 values (2085,'2012-01-01 00:00:00','2013-01-01 00:00:00');
-insert t1 values (2084,'2012-02-01 00:00:00','2013-01-01 00:00:00');
-insert t1 values (2088,'2012-03-01 00:00:00','2013-01-01 00:00:00');
-select * from (
-select n, d1, d2, @result := 0 as result
-from t1
-where d1 < '2012-12-12 12:12:12' and n in (2085, 2084) order by d2 asc
-) as calculated_result;
-n d1 d2 result
-2085 2012-01-01 00:00:00 2013-01-01 00:00:00 0
-2084 2012-02-01 00:00:00 2013-01-01 00:00:00 0
-drop table t1;
-set @save_derived_optimizer_switch_bug=@@optimizer_switch;
-SET optimizer_switch = 'derived_merge=on,derived_with_keys=on,in_to_exists=on';
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (8);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1),(7);
-EXPLAIN SELECT * FROM (SELECT * FROM t1) AS table1,
-(SELECT DISTINCT * FROM t2) AS table2 WHERE b = a AND a <> ANY (SELECT 9);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY <derived3> ref key0 key0 5 const 0
-3 DERIVED t2 ALL NULL NULL NULL NULL 2 Using where; Using temporary
-Warnings:
-Note 1249 Select 4 was reduced during optimization
-DROP TABLE t1, t2;
-set optimizer_switch=@save_derived_optimizer_switch_bug;
-#
-# MDEV-6163: Error while executing an update query that has the
-# same table in a sub-query
-#
-set @save_derived_optimizer_switch_bug=@@optimizer_switch;
-SET optimizer_switch = 'derived_merge=on';
-create table t1 (balance float, accountId varchar(64), primary key (accountId));
-insert into t1 (accountId,balance) values
-('dealer-1',199354.0),('dealer-2',0),('dealer-3',0),('dealer-5',0),('FINANCE',-200000),('OPERATOR',0);
-update t1 set balance=(select sum(balance) from (SELECT balance FROM t1 where accountId like 'dealer%') AS copied) where accountId = 'OPERATOR';
-set optimizer_switch=@save_derived_optimizer_switch_bug;
-drop table t1;
-#
-# MDEV-6219:Server crashes in Bitmap<64u>::merge
-# (this=0x180, map2=...) on 2nd execution of PS with INSERT .. SELECT,
-# derived_merge
-#
-CREATE TABLE t1 (a VARCHAR(8)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo'),('bar');
-create procedure p1()
-INSERT INTO t1 SELECT * FROM (
-SELECT * FROM t1
-) AS sq
-WHERE sq.a IN ( SELECT 'baz' FROM DUAL );
-call p1();
-call p1();
-drop procedure p1;
-PREPARE stmt FROM "
- INSERT INTO t1 SELECT * FROM (
- SELECT * FROM t1
- ) AS sq
- WHERE sq.a IN ( SELECT 'baz' FROM DUAL )
-";
-EXECUTE stmt;
-EXECUTE stmt;
-deallocate prepare stmt;
-drop table t1;
-#
-# MDEV-6892: WHERE does not apply
-#
-create table t1 (id int);
-create table t2 (id int);
-insert into t1 values(1),(2),(3);
-insert into t2 values(4),(5),(6);
-select x.id, message from (select id from t1) x left join
-(select id, 1 as message from t2) y on x.id=y.id
-where coalesce(message,0) <> 0;
-id message
-drop table t1,t2;
-#
-# MDEV-7827: Assertion `!table || (!table->read_set ||
-# bitmap_is_set(table->read_set, field_index))' failed
-# in Field_long::val_str on EXPLAIN EXTENDED
-#
-CREATE TABLE t1 (f1 INT, f2 INT, KEY(f2)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (6,9);
-CREATE TABLE t2 (f3 INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (2),(0);
-EXPLAIN EXTENDED
-SELECT f1 FROM ( SELECT * FROM t1 ) AS sq
-WHERE f1 IN (
-SELECT f3 FROM t2 WHERE f2 IN (
-SELECT f3 FROM t2 HAVING f3 >= 8
-)
-);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 1 100.00
-1 PRIMARY <subquery4> eq_ref distinct_key distinct_key 4 const 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where; FirstMatch(<subquery4>); Using join buffer (flat, BNL join)
-4 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 100.00
-2 DERIVED t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1276 Field or reference 'sq.f2' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 6 AS `f1` from <materialize> (/* select#4 */ select `test`.`t2`.`f3` from `test`.`t2` having `test`.`t2`.`f3` >= 8) semi join (`test`.`t2`) where `test`.`t2`.`f3` = 6 and `<subquery4>`.`f3` = 9
-DROP TABLE t2,t1;
-#
-# MDEV-9462: Out of memory using explain on 2 empty tables
-#
-CREATE TABLE `t1` (
-`REC_GROUP` char(2) DEFAULT NULL,
-`CLIENT_INFO` text CHARACTER SET utf8,
-`NAME` text,
-`PHONE_NUMBER` text,
-`ATTENTION_NAME` text,
-`PAYMENT_TERM` text CHARACTER SET utf8,
-`CREDIT_LIMIT` decimal(12,2) DEFAULT NULL,
-`LAST_PAY_DATE` text CHARACTER SET utf8,
-`TOTAL` double DEFAULT NULL,
-`TOTAL_MCL` double DEFAULT NULL,
-`TOTAL_MFS` double DEFAULT NULL,
-`TOTAL_MIS` double DEFAULT NULL,
-`BEFORE_DUE_7_MCL` double DEFAULT NULL,
-`BEFORE_DUE_7_MFS` double DEFAULT NULL,
-`BEFORE_DUE_7_MIS` double DEFAULT NULL,
-`PER1_MCL` double DEFAULT NULL,
-`PER1_MFS` double DEFAULT NULL,
-`PER1_MIS` double DEFAULT NULL,
-`PER2_MCL` double DEFAULT NULL,
-`PER2_MFS` double DEFAULT NULL,
-`PER2_MIS` double DEFAULT NULL,
-`PER3_MCL` double DEFAULT NULL,
-`PER3_MFS` double DEFAULT NULL,
-`PER3_MIS` double DEFAULT NULL,
-`PER4_MCL` double DEFAULT NULL,
-`PER4_MFS` double DEFAULT NULL,
-`PER4_MIS` double DEFAULT NULL,
-`PER5_MCL` double DEFAULT NULL,
-`PER5_MFS` double DEFAULT NULL,
-`PER5_MIS` double DEFAULT NULL,
-`PER6_MCL` double DEFAULT NULL,
-`PER6_MFS` double DEFAULT NULL,
-`PER6_MIS` double DEFAULT NULL,
-`PER7_MCL` double DEFAULT NULL,
-`PER7_MFS` double DEFAULT NULL,
-`PER7_MIS` double DEFAULT NULL,
-`BEFORE_DUE_7` double DEFAULT NULL,
-`PER1` double DEFAULT NULL,
-`PER2` double DEFAULT NULL,
-`PER3` double DEFAULT NULL,
-`PER4` double DEFAULT NULL,
-`PER5` double DEFAULT NULL,
-`PER6` double DEFAULT NULL,
-`PER7` double DEFAULT NULL,
-`REF` varchar(30) DEFAULT NULL,
-`TYPE` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL
-);
-CREATE TABLE `t2` (
-`RECEIVABLE_GROUP` char(2) DEFAULT NULL,
-`CLIENT_NUMBER` varchar(35) DEFAULT NULL,
-`CLIENT_NAME` varchar(73) DEFAULT NULL,
-`PHONE_NUMBER` char(12) DEFAULT NULL,
-`ATTENTION_NAME` char(26) DEFAULT NULL,
-`PAYMENT_TERM` varchar(26) CHARACTER SET utf8 DEFAULT NULL,
-`CREDIT_LIMIT` decimal(12,2) DEFAULT NULL,
-`LAST_PAY_DATE` varchar(42) CHARACTER SET utf8 DEFAULT NULL,
-`TOTAL` decimal(12,2) DEFAULT NULL,
-`BEFORE_DUE_7` decimal(12,2) DEFAULT NULL,
-`PER1` decimal(12,2) DEFAULT NULL,
-`PER2` decimal(12,2) DEFAULT NULL,
-`PER3` decimal(12,2) DEFAULT NULL,
-`PER4` decimal(12,2) DEFAULT NULL,
-`PER5` decimal(12,2) DEFAULT NULL,
-`PER6` decimal(12,2) DEFAULT NULL,
-`PER7` decimal(12,2) DEFAULT NULL,
-`DIVISION` varchar(3) CHARACTER SET utf8 NOT NULL,
-`CLIENT_INFO` varchar(294) CHARACTER SET utf8 DEFAULT NULL,
-`EXCHANGE_RATE` double NOT NULL,
-`REF` varchar(30) DEFAULT NULL
-);
-explain
-SELECT A.RECEIVABLE_GROUP,A.CLIENT_INFO,A.CLIENT_NAME,A.PHONE_NUMBER,A.ATTENTION_NAME,A.PAYMENT_TERM,A.CREDIT_LIMIT,A.LAST_PAY_DATE,A.TOTAL,
-COALESCE(B.TOTAL_MCL,0) AS TOTAL_MCL,
-COALESCE(C.TOTAL_MFS,0) AS TOTAL_MFS,
-COALESCE(D.TOTAL_MIS,0) AS TOTAL_MIS,
-COALESCE(F.BEFORE_DUE_7_MCL,0) AS BEFORE_DUE_7_MCL,
-COALESCE(G.BEFORE_DUE_7_MFS,0) AS BEFORE_DUE_7_MFS,
-COALESCE(H.BEFORE_DUE_7_MIS,0) AS BEFORE_DUE_7_MIS,
-COALESCE(I.PER1_MCL,0) AS PER1_MCL,
-COALESCE(J.PER1_MFS,0) AS PER1_MFS,
-COALESCE(K.PER1_MIS,0) AS PER1_MIS,
-COALESCE(L.PER2_MCL,0) AS PER2_MCL,
-COALESCE(M.PER2_MFS,0) AS PER2_MFS,
-COALESCE(N.PER2_MIS,0) AS PER2_MIS,
-COALESCE(O.PER3_MCL,0) AS PER3_MCL,
-COALESCE(P.PER3_MFS,0) AS PER3_MFS,
-COALESCE(R.PER3_MIS,0) AS PER3_MIS,
-COALESCE(S.PER4_MCL,0) AS PER4_MCL,
-COALESCE(T.PER4_MFS,0) AS PER4_MFS,
-COALESCE(U.PER4_MIS,0) AS PER4_MIS,
-COALESCE(V.PER5_MCL,0) AS PER5_MCL,
-COALESCE(X.PER5_MFS,0) AS PER5_MFS,
-COALESCE(Z.PER5_MIS,0) AS PER5_MIS,
-COALESCE(Q.PER6_MCL,0) AS PER6_MCL,
-COALESCE(Y.PER6_MFS,0) AS PER6_MFS,
-COALESCE(W.PER6_MIS,0) AS PER6_MIS,
-COALESCE(A1.PER7_MCL,0) AS PER7_MCL,
-COALESCE(B1.PER7_MFS,0) AS PER7_MFS,
-COALESCE(C1.PER7_MIS,0) AS PER7_MIS,
-A.BEFORE_DUE_7,A.PER1,A.PER2,A.PER3,A.PER4,A.PER5,A.PER6,A.PER7,
-CONCAT(A.DIVISION,'-',A.CLIENT_NUMBER) AS REF,"2" AS TYPE FROM
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,
-GROUP_CONCAT(DISTINCT CLIENT_INFO SEPARATOR '<br>') AS CLIENT_INFO,
-GROUP_CONCAT(DISTINCT CLIENT_NAME SEPARATOR '<br>') AS CLIENT_NAME,
-GROUP_CONCAT( DISTINCT `PHONE_NUMBER` SEPARATOR '<br>' ) AS PHONE_NUMBER ,
-GROUP_CONCAT( DISTINCT `ATTENTION_NAME` SEPARATOR '<br>' ) AS ATTENTION_NAME,
-GROUP_CONCAT( DISTINCT `PAYMENT_TERM` SEPARATOR '<br>' ) AS PAYMENT_TERM,
-CREDIT_LIMIT ,
-GROUP_CONCAT( `LAST_PAY_DATE` SEPARATOR '<br>' ) AS LAST_PAY_DATE,
-SUM( `TOTAL`*EXCHANGE_RATE ) AS TOTAL,
-SUM( `BEFORE_DUE_7`*EXCHANGE_RATE ) AS BEFORE_DUE_7,
-SUM( `PER1`*EXCHANGE_RATE ) AS PER1,
-SUM( `PER2`*EXCHANGE_RATE ) AS PER2,
-SUM( `PER3`*EXCHANGE_RATE ) AS PER3,
-SUM( `PER4`*EXCHANGE_RATE ) AS PER4,
-SUM( `PER5`*EXCHANGE_RATE ) AS PER5,
-SUM( `PER6`*EXCHANGE_RATE ) AS PER6,
-SUM( `PER7`*EXCHANGE_RATE ) AS PER7
-FROM `t2`
-WHERE REF IS NULL GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS A
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( `TOTAL`*EXCHANGE_RATE ) AS TOTAL_MCL
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MCL" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS B ON A.CLIENT_NUMBER=B.CLIENT_NUMBER AND
-A.DIVISION=B.DIVISION AND A.RECEIVABLE_GROUP=B.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=B.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( `TOTAL`*EXCHANGE_RATE ) AS TOTAL_MFS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MFS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS C ON A.CLIENT_NUMBER=C.CLIENT_NUMBER
-AND
-A.DIVISION=C.DIVISION AND A.RECEIVABLE_GROUP=C.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=C.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( `TOTAL`*EXCHANGE_RATE ) AS TOTAL_MIS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MIS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS D ON A.CLIENT_NUMBER=D.CLIENT_NUMBER AND
-A.DIVISION=D.DIVISION AND A.RECEIVABLE_GROUP=D.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=D.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( BEFORE_DUE_7*EXCHANGE_RATE ) AS BEFORE_DUE_7_MCL
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MCL" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS F ON A.CLIENT_NUMBER=F.CLIENT_NUMBER AND
-A.DIVISION=F.DIVISION AND A.RECEIVABLE_GROUP=F.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=F.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( BEFORE_DUE_7*EXCHANGE_RATE ) AS BEFORE_DUE_7_MFS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MFS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS G ON A.CLIENT_NUMBER=G.CLIENT_NUMBER AND
-A.DIVISION=G.DIVISION AND A.RECEIVABLE_GROUP=G.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=G.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( BEFORE_DUE_7*EXCHANGE_RATE ) AS BEFORE_DUE_7_MIS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MIS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS H ON A.CLIENT_NUMBER=H.CLIENT_NUMBER AND
-A.DIVISION=H.DIVISION AND A.RECEIVABLE_GROUP=H.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=H.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER1*EXCHANGE_RATE ) AS PER1_MCL
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MCL" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS I ON A.CLIENT_NUMBER=I.CLIENT_NUMBER AND
-A.DIVISION=I.DIVISION AND A.RECEIVABLE_GROUP=I.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=I.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER1*EXCHANGE_RATE ) AS PER1_MFS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MFS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS J ON A.CLIENT_NUMBER=J.CLIENT_NUMBER AND
-A.DIVISION=J.DIVISION AND A.RECEIVABLE_GROUP=J.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=J.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER1*EXCHANGE_RATE ) AS PER1_MIS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MIS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS K ON A.CLIENT_NUMBER=K.CLIENT_NUMBER AND
-A.DIVISION=K.DIVISION AND A.RECEIVABLE_GROUP=K.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=K.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER2*EXCHANGE_RATE ) AS PER2_MCL
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MCL" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS L ON A.CLIENT_NUMBER=L.CLIENT_NUMBER AND
-A.DIVISION=L.DIVISION AND A.RECEIVABLE_GROUP=L.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=L.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER2*EXCHANGE_RATE ) AS PER2_MFS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MFS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS M ON A.CLIENT_NUMBER=M.CLIENT_NUMBER AND
-A.DIVISION=M.DIVISION AND A.RECEIVABLE_GROUP=M.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=M.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER2*EXCHANGE_RATE ) AS PER2_MIS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MIS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS N ON A.CLIENT_NUMBER=N.CLIENT_NUMBER AND
-A.DIVISION=N.DIVISION AND A.RECEIVABLE_GROUP=N.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=N.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER3*EXCHANGE_RATE ) AS PER3_MCL
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MCL" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS O ON A.CLIENT_NUMBER=O.CLIENT_NUMBER AND
-A.DIVISION=O.DIVISION AND A.RECEIVABLE_GROUP=O.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=O.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER3*EXCHANGE_RATE ) AS PER3_MFS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MFS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS P ON A.CLIENT_NUMBER=P.CLIENT_NUMBER AND
-A.DIVISION=P.DIVISION AND A.RECEIVABLE_GROUP=P.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=P.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER3*EXCHANGE_RATE ) AS PER3_MIS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MIS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS R ON A.CLIENT_NUMBER=R.CLIENT_NUMBER AND
-A.DIVISION=R.DIVISION AND A.RECEIVABLE_GROUP=R.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=R.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER4*EXCHANGE_RATE ) AS PER4_MCL
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MCL" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS S ON A.CLIENT_NUMBER=S.CLIENT_NUMBER AND
-A.DIVISION=S.DIVISION AND A.RECEIVABLE_GROUP=S.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=S.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER4*EXCHANGE_RATE ) AS PER4_MFS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MFS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS T ON A.CLIENT_NUMBER=T.CLIENT_NUMBER AND
-A.DIVISION=T.DIVISION AND A.RECEIVABLE_GROUP=T.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=T.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER4*EXCHANGE_RATE ) AS PER4_MIS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MIS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS U ON A.CLIENT_NUMBER=U.CLIENT_NUMBER AND
-A.DIVISION=U.DIVISION AND A.RECEIVABLE_GROUP=U.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=U.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER5*EXCHANGE_RATE ) AS PER5_MCL
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MCL" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS V ON A.CLIENT_NUMBER=V.CLIENT_NUMBER AND
-A.DIVISION=V.DIVISION AND A.RECEIVABLE_GROUP=V.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=V.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER5*EXCHANGE_RATE ) AS PER5_MFS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MFS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS X ON A.CLIENT_NUMBER=X.CLIENT_NUMBER AND
-A.DIVISION=X.DIVISION AND A.RECEIVABLE_GROUP=X.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=X.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER5*EXCHANGE_RATE ) AS PER5_MIS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MIS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS Z ON A.CLIENT_NUMBER=Z.CLIENT_NUMBER AND
-A.DIVISION=Z.DIVISION AND A.RECEIVABLE_GROUP=Z.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=Z.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER6*EXCHANGE_RATE ) AS PER6_MCL
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MCL" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS Q ON A.CLIENT_NUMBER=Q.CLIENT_NUMBER AND
-A.DIVISION=Q.DIVISION AND A.RECEIVABLE_GROUP=Q.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=Q.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER6*EXCHANGE_RATE ) AS PER6_MFS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MFS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS Y ON A.CLIENT_NUMBER=Y.CLIENT_NUMBER AND
-A.DIVISION=Y.DIVISION AND A.RECEIVABLE_GROUP=Y.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=Y.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER6*EXCHANGE_RATE ) AS PER6_MIS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MIS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS W ON A.CLIENT_NUMBER=W.CLIENT_NUMBER AND
-A.DIVISION=W.DIVISION AND A.RECEIVABLE_GROUP=W.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=W.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER7*EXCHANGE_RATE ) AS PER7_MCL
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MCL" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS A1 ON A.CLIENT_NUMBER=A1.CLIENT_NUMBER AND
-A.DIVISION=A1.DIVISION AND A.RECEIVABLE_GROUP=A1.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=A1.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER7*EXCHANGE_RATE ) AS PER7_MFS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MFS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS B1 ON A.CLIENT_NUMBER=B1.CLIENT_NUMBER AND
-A.DIVISION=B1.DIVISION AND A.RECEIVABLE_GROUP=B1.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=B1.CREDIT_LIMIT
-LEFT JOIN
-(SELECT RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT,SUM( PER7*EXCHANGE_RATE ) AS PER7_MIS
-FROM `t2`
-WHERE REF IS NULL AND DIVISION="MIS" GROUP BY RECEIVABLE_GROUP,DIVISION,CLIENT_NUMBER,CREDIT_LIMIT) AS C1 ON A.CLIENT_NUMBER=C1.CLIENT_NUMBER AND
-A.DIVISION=C1.DIVISION AND A.RECEIVABLE_GROUP=C1.RECEIVABLE_GROUP AND A.CREDIT_LIMIT=C1.CREDIT_LIMIT
-ORDER BY TOTAL DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived3> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived4> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived5> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived6> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived7> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived8> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived9> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived10> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived11> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived12> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived13> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived14> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived15> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived16> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived17> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived18> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived19> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived20> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived21> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived22> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived23> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived24> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived25> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived26> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived27> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived28> system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <derived29> system NULL NULL NULL NULL 0 Const row not found
-29 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-28 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-27 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-26 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-25 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-24 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-23 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-22 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-21 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-20 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-19 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-18 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-17 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-16 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-15 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-14 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-13 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-12 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-11 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-10 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-9 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-8 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-7 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-6 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-5 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-DROP TABLES t1,t2;
-set optimizer_switch=@save_derived_optimizer_switch;
-#
-# MDEV-10663: Use of Inline table columns in HAVING clause
-# throws 1463 Error
-#
-set @save_sql_mode = @@sql_mode;
-set sql_mode='ONLY_FULL_GROUP_BY,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
-CREATE TABLE `example1463` (
-`Customer` varchar(255) NOT NULL,
-`DeliveryStatus` varchar(255) NOT NULL,
-`OrderSize` int(11) NOT NULL
-);
-INSERT INTO example1463 VALUES ('Charlie', 'Success', 100);
-INSERT INTO example1463 VALUES ('David', 'Success', 110);
-INSERT INTO example1463 VALUES ('Charlie', 'Failed', 200);
-INSERT INTO example1463 VALUES ('David', 'Success', 100);
-INSERT INTO example1463 VALUES ('David', 'Unknown', 100);
-INSERT INTO example1463 VALUES ('Edward', 'Success', 150);
-INSERT INTO example1463 VALUES ('Edward', 'Pending', 150);
-SELECT Customer, Success, SUM(OrderSize)
-FROM (SELECT Customer,
-CASE WHEN DeliveryStatus='Success' THEN 'Yes' ELSE 'No' END AS Success,
-OrderSize
-FROM example1463) as subQ
-GROUP BY Success, Customer
-WITH ROLLUP;
-Customer Success SUM(OrderSize)
-Charlie No 200
-David No 100
-Edward No 150
-NULL No 450
-Charlie Yes 100
-David Yes 210
-Edward Yes 150
-NULL Yes 460
-NULL NULL 910
-SELECT Customer, Success, SUM(OrderSize)
-FROM (SELECT Customer,
-CASE WHEN DeliveryStatus='Success' THEN 'Yes' ELSE 'No' END AS Success,
-OrderSize
-FROM example1463) as subQ
-GROUP BY Success, Customer;
-Customer Success SUM(OrderSize)
-Charlie No 200
-David No 100
-Edward No 150
-Charlie Yes 100
-David Yes 210
-Edward Yes 150
-SELECT Customer, Success, SUM(OrderSize)
-FROM (SELECT Customer,
-CASE WHEN DeliveryStatus='Success' THEN 'Yes' ELSE 'No' END AS Success,
-OrderSize
-FROM example1463) as subQ
-GROUP BY Success, Customer
-HAVING Success IS NOT NULL;
-Customer Success SUM(OrderSize)
-Charlie No 200
-David No 100
-Edward No 150
-Charlie Yes 100
-David Yes 210
-Edward Yes 150
-DROP TABLE example1463;
-set sql_mode= @save_sql_mode;
-#
-# MDEV-9028: SELECT DISTINCT constant column of derived table
-# used as the second operand of LEFT JOIN
-#
-create table t1 (id int, data varchar(255));
-insert into t1 values (1,'yes'),(2,'yes');
-select distinct t1.id, tt.id, tt.data
-from t1
-left join
-(select t1.id, 'yes' as data from t1) as tt
-on t1.id = tt.id;
-id id data
-1 1 yes
-2 2 yes
-select distinct t1.id, tt.id, tt.data
-from t1
-left join
-(select t1.id, 'yes' as data from t1 where id > 1) as tt
-on t1.id = tt.id;
-id id data
-2 2 yes
-1 NULL NULL
-drop table t1;
-#
-# MDEV-14241: Server crash in key_copy / get_matching_chain_by_join_key
-# or valgrind warnings
-#
-CREATE TABLE t1 (a VARCHAR(10)) ENGINE=MyISAM;
-CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES ('foo'),('bar');
-CREATE TABLE t2 (b integer auto_increment primary key) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (NULL),(NULL);
-CREATE TABLE t3 (c VARCHAR(1024) CHARACTER SET utf8, d INT) ENGINE=MyISAM;
-CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v3 AS SELECT * FROM t3;
-INSERT INTO t3 VALUES ('abc',NULL),('def',4);
-SET join_cache_level= 8;
-explain
-SELECT * FROM v1, t2, v3 WHERE a = c AND b = d;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-1 PRIMARY <derived3> hash_ALL NULL #hash#$hj 3075 func 2 Using where; Using join buffer (flat, BNLH join)
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 v3.d 1 Using index
-3 DERIVED t3 ALL NULL NULL NULL NULL 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 2
-SELECT * FROM v1, t2, v3 WHERE a = c AND b = d;
-a b c d
-DROP VIEW v1, v3;
-DROP TABLE t1, t2, t3;
-#
-# MDEV-14786: Server crashes in Item_cond::transform on 2nd
-# execution of SP querying from a view
-#
-create table t1 (i int, row_start timestamp(6) not null default now(),
-row_end timestamp(6) not null default '2030-01-01 0:0:0');
-create view v1 as select i from t1 where i < 5 and (row_end =
-TIMESTAMP'2030-01-01 0:0:0' or row_end is null);
-create procedure pr(x int) select i from v1;
-call pr(1);
-i
-call pr(2);
-i
-drop procedure pr;
-drop view v1;
-drop table t1;
-# end of 5.5
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8747 Wrong result for SELECT..WHERE derived_table_column='a' AND derived_table_column<>_latin1'A' COLLATE latin1_bin
-#
-CREATE TABLE t1 (a VARCHAR(10));
-INSERT INTO t1 VALUES ('a'),('A');
-SELECT * FROM t1 WHERE a='a' AND a <> _latin1'A' COLLATE latin1_bin;
-a
-a
-SELECT * FROM (SELECT * FROM t1) AS table1 WHERE a='a' AND a <> _latin1'A' COLLATE latin1_bin;
-a
-a
-DROP TABLE t1;
-CREATE TABLE t1 (a ENUM('5','6'));
-INSERT INTO t1 VALUES ('5'),('6');
-SELECT * FROM (SELECT * FROM t1) AS table1 WHERE a='5';
-a
-5
-SELECT * FROM (SELECT * FROM t1) AS table1 WHERE a=1;
-a
-5
-SELECT * FROM (SELECT * FROM t1) AS table1 WHERE a='5' AND a=1;
-a
-5
-DROP TABLE t1;
-#
-# MDEV-8749 Wrong result for SELECT..WHERE derived_table_enum_column='number' AND derived_table_enum_column OP number2
-#
-CREATE TABLE t1 (a ENUM('5','6'));
-INSERT INTO t1 VALUES ('5'),('6');
-SELECT * FROM (SELECT * FROM t1) AS table1 WHERE a='5';
-a
-5
-SELECT * FROM (SELECT * FROM t1) AS table1 WHERE a=1;
-a
-5
-SELECT * FROM (SELECT * FROM t1) AS table1 WHERE a='5' AND a=1;
-a
-5
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# MDEV-10554: Assertion `!derived->first_select()->
-# exclude_from_table_unique_test || derived->outer_select()->
-# exclude_from_table_unique_test'
-# failed in TABLE_LIST::set_check_merged()
-#
-CREATE TABLE t1 (f INT);
-CREATE ALGORITHM = TEMPTABLE VIEW v1 AS SELECT * FROM ( SELECT * FROM t1 ) AS sq;
-PREPARE stmt FROM 'SELECT * FROM v1';
-EXECUTE stmt;
-f
-EXECUTE stmt;
-f
-drop view v1;
-drop table t1;
-#
-# MDEV-11363: Assertion `!derived->first_sel ect()->first_inner_unit() ||
-# derived->first_select()->first_inner_unit()->first_select()->
-# exclude_from_table_unique_test' failed in
-# TABLE_LIST::set_check_materialized()
-#
-CREATE TABLE t1 (f1 INT);
-CREATE TABLE t2 (f2 INT);
-CREATE TABLE t3 (f3 INT);
-CREATE VIEW v1 AS ( SELECT f1 AS f FROM t1 ) UNION ( SELECT f2 AS f FROM t2 );
-CREATE VIEW v2 AS SELECT f3 AS f FROM t3;
-CREATE VIEW v3 AS SELECT f FROM ( SELECT f3 AS f FROM v1, t3 ) AS sq;
-CREATE VIEW v4 AS SELECT COUNT(*) as f FROM v3;
-REPLACE INTO v2 ( SELECT * FROM v4 ) UNION ( SELECT f FROM v2 );
-drop view v1,v2,v3,v4;
-drop table t1,t2,t3;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/derived_cond_pushdown.result b/mysql-test/r/derived_cond_pushdown.result
deleted file mode 100644
index 32d3c88cc8d..00000000000
--- a/mysql-test/r/derived_cond_pushdown.result
+++ /dev/null
@@ -1,14947 +0,0 @@
-create table t1 (a int, b int, c int);
-create table t2 (a int, b int, c int, d decimal);
-insert into t1 values
-(1,21,345), (1,33,7), (8,33,114), (1,21,500), (1,19,107), (5,14,787),
-(8,33,123), (9,10,211), (5,16,207), (1,33,988), (5,27,132), (1,21,104),
-(6,20,309), (6,20,315), (1,21,101), (8,33,404), (9,10,800), (1,21,123),
-(7,11,708), (6,20,214);
-insert into t2 values
-(2,3,207,207.0000), (1,21,909,12.0000), (7,13,312,406.0000),
-(8,64,248,107.0000), (6,20,315,279.3333), (1,19,203,107.0000),
-(8,80,800,314.0000), (3,12,231,190.0000), (6,23,303,909.0000);
-Warnings:
-Note 1265 Data truncated for column 'd' at row 5
-create table t1_double(a int, b double, c double);
-insert into t1_double values
-(1,23.4,14.3333), (1,12.5,18.9), (3,12.5,18.9),
-(4,33.4,14.3333), (4,14.3333,13.65), (5,17.89,7.22),
-(6,33.4,14.3), (10,33.4,13.65), (11,33.4,13.65);
-create table t2_double(a int, b double, c double);
-insert into t2_double values
-(1,22.4,14.3333), (1,12.5,18.9), (2,22.4,18.9),
-(4,33.4,14.3333), (5,22.4,13.65), (7,17.89,18.9),
-(6,33.4,14.3333), (10,31.4,13.65), (12,33.4,13.65);
-create table t1_char(a char, b char(8), c int);
-insert into t1_char values
-('a','Ivan',1), ('b','Vika',2), ('b','Inga',6), ('c','Vika',7),
-('b','Ivan',7), ('a','Alex',6), ('b','Inga',5), ('d','Ron',9),
-('d','Harry',2), ('d','Hermione',3), ('c','Ivan',3), ('c','Harry',4);
-create table t2_char(a char, b char(8), c int);
-insert into t2_char values
-('b','Ivan',1), ('c','Vinny',3), ('c','Inga',9), ('a','Vika',1),
-('c','Ivan',2), ('b','Ali',6), ('c','Inga',2), ('a','Ron',9),
-('d','Harry',1), ('b','Hermes',3), ('b','Ivan',11), ('b','Harry',4);
-create table t1_decimal (a decimal(3,1), b decimal(3,1), c int);
-insert into t1_decimal values
-(1,1,23),(2,2,11),(3,3,16),
-(1,1,12),(1,1,14),(2,3,15),
-(2,1,13),(2,3,11),(3,3,16);
-create table t2_decimal (a decimal(3,1), b decimal(3,1), c int);
-insert into t2_decimal values
-(2,1,13),(2,2,11),(3,3,16),
-(1,3,22),(1,3,14),(2,2,15),
-(2,1,43),(2,3,11),(2,3,16);
-create view v1 as select a, b, max(c) as max_c, avg(c) as avg_c from t1
-group by a,b having max_c < 707;
-create view v2 as select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707;
-create view v3 as select a, b, min(c) as min_c from t1
-where t1.a<10 group by a,b having min_c > 109;
-create view v4 as
-select a, b, min(max_c) as min_c from v1
-where (v1.a<15) group by a,b;
-create view v_union as
-select a, b, min(c) as c from t1
-where t1.a<10 group by a,b having c > 109
-union
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300;
-create view v2_union as
-select a, b, min(c) as c from t1
-where t1.a<10 group by a,b having c > 109
-union
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300
-union
-select a, b, avg(c) as c from t1
-where t1.c>300 group by a,b having c < 707;
-create view v3_union as
-select a, b, (a+1) as c from t1
-where t1.a<10
-union
-select a, b, c from t1
-where t1.b>10 and t1.c>100;
-create view v4_union as
-select a, b, max(c)-100 as c from t1
-where t1.a<10 group by a,b having c > 109
-union
-select a, b, (c+100) as c from t1
-where t1.b>10;
-create view v_double as
-select a, avg(a/4) as avg_a, b, c from t1_double
-where (b>12.2) group by b,c having (avg_a<22.333);
-create view v_char as
-select a, b, max(c) as max_c from t1_char
-group by a,b having max_c < 9;
-create view v_decimal as
-select a, b, avg(c) as avg_c from t1_decimal
-group by a,b having (avg_c>12);
-# conjunctive subformula : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.max_c>214) and (t2.a>v1.a);
-a b max_c avg_c a b c d
-1 21 500 234.6000 2 3 207 207
-1 21 500 234.6000 7 13 312 406
-1 21 500 234.6000 8 64 248 107
-1 21 500 234.6000 6 20 315 279
-1 21 500 234.6000 8 80 800 314
-1 21 500 234.6000 3 12 231 190
-1 21 500 234.6000 6 23 303 909
-6 20 315 279.3333 7 13 312 406
-6 20 315 279.3333 8 64 248 107
-6 20 315 279.3333 8 80 800 314
-select * from v1,t2 where (v1.max_c>214) and (t2.a>v1.a);
-a b max_c avg_c a b c d
-1 21 500 234.6000 2 3 207 207
-1 21 500 234.6000 7 13 312 406
-1 21 500 234.6000 8 64 248 107
-1 21 500 234.6000 6 20 315 279
-1 21 500 234.6000 8 80 800 314
-1 21 500 234.6000 3 12 231 190
-1 21 500 234.6000 6 23 303 909
-6 20 315 279.3333 7 13 312 406
-6 20 315 279.3333 8 64 248 107
-6 20 315 279.3333 8 80 800 314
-explain select * from v1,t2 where (v1.max_c>214) and (t2.a>v1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,t2 where (v1.max_c>214) and (t2.a>v1.a);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.max_c > 214"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t2.a > v1.a",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and max_c > 214",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-group by a,b having max_c < 707) v1,
-t2 where (v1.a=t2.a) and (v1.max_c>300);
-a b max_c avg_c a b c d
-1 21 500 234.6000 1 21 909 12
-8 33 404 213.6667 8 64 248 107
-6 20 315 279.3333 6 20 315 279
-1 21 500 234.6000 1 19 203 107
-8 33 404 213.6667 8 80 800 314
-6 20 315 279.3333 6 23 303 909
-select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-group by a,b having max_c < 707) v1,
-t2 where (v1.a=t2.a) and (v1.max_c>300);
-a b max_c avg_c a b c d
-1 21 500 234.6000 1 21 909 12
-8 33 404 213.6667 8 64 248 107
-6 20 315 279.3333 6 20 315 279
-1 21 500 234.6000 1 19 203 107
-8 33 404 213.6667 8 80 800 314
-6 20 315 279.3333 6 23 303 909
-explain select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-group by a,b having max_c < 707) v1,
-t2 where (v1.a=t2.a) and (v1.max_c>300);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-group by a,b having max_c < 707) v1,
-t2 where (v1.a=t2.a) and (v1.max_c>300);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.max_c > 300",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and max_c > 300",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-# extracted or formula : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-((v1.max_c>400) and (t2.a>v1.a)) or ((v1.max_c<135) and (t2.a<v1.a));
-a b max_c avg_c a b c d
-1 21 500 234.6000 2 3 207 207
-1 21 500 234.6000 7 13 312 406
-1 21 500 234.6000 8 64 248 107
-1 21 500 234.6000 6 20 315 279
-1 21 500 234.6000 8 80 800 314
-1 21 500 234.6000 3 12 231 190
-1 21 500 234.6000 6 23 303 909
-5 27 132 132.0000 2 3 207 207
-5 27 132 132.0000 1 21 909 12
-5 27 132 132.0000 1 19 203 107
-5 27 132 132.0000 3 12 231 190
-select * from v1,t2 where
-((v1.max_c>400) and (t2.a>v1.a)) or ((v1.max_c<135) and (t2.a<v1.a));
-a b max_c avg_c a b c d
-1 21 500 234.6000 2 3 207 207
-1 21 500 234.6000 7 13 312 406
-1 21 500 234.6000 8 64 248 107
-1 21 500 234.6000 6 20 315 279
-1 21 500 234.6000 8 80 800 314
-1 21 500 234.6000 3 12 231 190
-1 21 500 234.6000 6 23 303 909
-5 27 132 132.0000 2 3 207 207
-5 27 132 132.0000 1 21 909 12
-5 27 132 132.0000 1 19 203 107
-5 27 132 132.0000 3 12 231 190
-explain select * from v1,t2 where
-((v1.max_c>400) and (t2.a>v1.a)) or ((v1.max_c<135) and (t2.a<v1.a));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,t2 where
-((v1.max_c>400) and (t2.a>v1.a)) or ((v1.max_c<135) and (t2.a<v1.a));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.max_c > 400 or v1.max_c < 135"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.max_c > 400 and t2.a > v1.a or v1.max_c < 135 and t2.a < v1.a",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and (max_c > 400 or max_c < 135)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-((v1.max_c>300) and (v1.avg_c>t2.d) and (v1.b=t2.b)) or
-((v1.max_c<135) and (v1.max_c<t2.c) and (v1.a=t2.a));
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 21 909 12
-1 19 107 107.0000 1 19 203 107
-1 21 500 234.6000 1 21 909 12
-6 20 315 279.3333 6 20 315 279
-select * from v1,t2 where
-((v1.max_c>300) and (v1.avg_c>t2.d) and (v1.b=t2.b)) or
-((v1.max_c<135) and (v1.max_c<t2.c) and (v1.a=t2.a));
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 21 909 12
-1 19 107 107.0000 1 19 203 107
-1 21 500 234.6000 1 21 909 12
-6 20 315 279.3333 6 20 315 279
-explain select * from v1,t2 where
-((v1.max_c>300) and (v1.avg_c>t2.d) and (v1.b=t2.b)) or
-((v1.max_c<135) and (v1.max_c<t2.c) and (v1.a=t2.a));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,t2 where
-((v1.max_c>300) and (v1.avg_c>t2.d) and (v1.b=t2.b)) or
-((v1.max_c<135) and (v1.max_c<t2.c) and (v1.a=t2.a));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.max_c > 300 or v1.max_c < 135"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.b = t2.b and v1.max_c > 300 and v1.avg_c > t2.d or v1.a = t2.a and v1.max_c < 135 and v1.max_c < t2.c",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and (max_c > 300 or max_c < 135)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-# conjunctive subformula : pushing into WHERE
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a>6) and (t2.b>v1.b);
-a b max_c avg_c a b c d
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 8 80 800 314
-select * from v1,t2 where (v1.a>6) and (t2.b>v1.b);
-a b max_c avg_c a b c d
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 8 80 800 314
-explain select * from v1,t2 where (v1.a>6) and (t2.b>v1.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,t2 where (v1.a>6) and (t2.b>v1.b);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a > 6"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t2.b > v1.b",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 6"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v2,t2 where (v2.b>25) and (t2.a<v2.a);
-a b max_c avg_c a b c d
-8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 1 21 909 12
-8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 6 23 303 909
-select * from v2,t2 where (v2.b>25) and (t2.a<v2.a);
-a b max_c avg_c a b c d
-8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 1 21 909 12
-8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 6 23 303 909
-explain select * from v2,t2 where (v2.b>25) and (t2.a<v2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v2,t2 where (v2.b>25) and (t2.a<v2.a);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v2.b > 25"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t2.a < v2.a",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5 and t1.b > 25"
- }
- }
- }
- }
- }
- }
- }
-}
-# extracted or formula : pushing into WHERE
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-((v1.a>7) and (t2.c<v1.max_c)) or ((v1.a<2) and (t2.b<v1.b));
-a b max_c avg_c a b c d
-1 19 107 107.0000 2 3 207 207
-1 19 107 107.0000 7 13 312 406
-1 19 107 107.0000 3 12 231 190
-1 21 500 234.6000 2 3 207 207
-1 21 500 234.6000 7 13 312 406
-1 21 500 234.6000 6 20 315 279
-1 21 500 234.6000 1 19 203 107
-1 21 500 234.6000 3 12 231 190
-8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 6 23 303 909
-select * from v1,t2 where
-((v1.a>7) and (t2.c<v1.max_c)) or ((v1.a<2) and (t2.b<v1.b));
-a b max_c avg_c a b c d
-1 19 107 107.0000 2 3 207 207
-1 19 107 107.0000 7 13 312 406
-1 19 107 107.0000 3 12 231 190
-1 21 500 234.6000 2 3 207 207
-1 21 500 234.6000 7 13 312 406
-1 21 500 234.6000 6 20 315 279
-1 21 500 234.6000 1 19 203 107
-1 21 500 234.6000 3 12 231 190
-8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 6 23 303 909
-explain select * from v1,t2 where
-((v1.a>7) and (t2.c<v1.max_c)) or ((v1.a<2) and (t2.b<v1.b));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,t2 where
-((v1.a>7) and (t2.c<v1.max_c)) or ((v1.a<2) and (t2.b<v1.b));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a > 7 or v1.a < 2"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.a > 7 and t2.c < v1.max_c or v1.a < 2 and t2.b < v1.b",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 7 or t1.a < 2"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v2,t2 where
-((v2.a>7) and (t2.c<v2.max_c)) or ((v2.a>5) and (t2.b<v2.b));
-a b max_c avg_c a b c d
-6 20 315 279.3333 2 3 207 207
-6 20 315 279.3333 7 13 312 406
-6 20 315 279.3333 1 19 203 107
-6 20 315 279.3333 3 12 231 190
-8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 1 21 909 12
-8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 6 23 303 909
-select * from v2,t2 where
-((v2.a>7) and (t2.c<v2.max_c)) or ((v2.a>5) and (t2.b<v2.b));
-a b max_c avg_c a b c d
-6 20 315 279.3333 2 3 207 207
-6 20 315 279.3333 7 13 312 406
-6 20 315 279.3333 1 19 203 107
-6 20 315 279.3333 3 12 231 190
-8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 1 21 909 12
-8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 6 23 303 909
-explain select * from v2,t2 where
-((v2.a>7) and (t2.c<v2.max_c)) or ((v2.a>5) and (t2.b<v2.b));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v2,t2 where
-((v2.a>7) and (t2.c<v2.max_c)) or ((v2.a>5) and (t2.b<v2.b));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v2.a > 7 or v2.a > 5"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v2.a > 7 and t2.c < v2.max_c or v2.a > 5 and t2.b < v2.b",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5 and (t1.a > 7 or t1.a > 5)"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-((v1.a>4) and (v1.b>t2.b) and (v1.max_c=t2.d)) or
-((v1.a<2) and (v1.max_c<t2.c) and (v1.max_c=t2.d));
-a b max_c avg_c a b c d
-1 19 107 107.0000 8 64 248 107
-1 19 107 107.0000 1 19 203 107
-5 16 207 207.0000 2 3 207 207
-select * from v1,t2 where
-((v1.a>4) and (v1.b>t2.b) and (v1.max_c=t2.d)) or
-((v1.a<2) and (v1.max_c<t2.c) and (v1.max_c=t2.d));
-a b max_c avg_c a b c d
-1 19 107 107.0000 8 64 248 107
-1 19 107 107.0000 1 19 203 107
-5 16 207 207.0000 2 3 207 207
-explain select * from v1,t2 where
-((v1.a>4) and (v1.b>t2.b) and (v1.max_c=t2.d)) or
-((v1.a<2) and (v1.max_c<t2.c) and (v1.max_c=t2.d));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,t2 where
-((v1.a>4) and (v1.b>t2.b) and (v1.max_c=t2.d)) or
-((v1.a<2) and (v1.max_c<t2.c) and (v1.max_c=t2.d));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a > 4 or v1.a < 2"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.a > 4 and v1.b > t2.b and v1.max_c = t2.d or v1.a < 2 and v1.max_c < t2.c and v1.max_c = t2.d",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 4 or t1.a < 2"
- }
- }
- }
- }
- }
- }
- }
-}
-# conjunctive subformulas : pushing into HAVING and WHERE
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a<2) and (v1.max_c>400) and (t2.b>v1.b);
-a b max_c avg_c a b c d
-1 21 500 234.6000 8 64 248 107
-1 21 500 234.6000 8 80 800 314
-1 21 500 234.6000 6 23 303 909
-select * from v1,t2 where (v1.a<2) and (v1.max_c>400) and (t2.b>v1.b);
-a b max_c avg_c a b c d
-1 21 500 234.6000 8 64 248 107
-1 21 500 234.6000 8 80 800 314
-1 21 500 234.6000 6 23 303 909
-explain select * from v1,t2 where (v1.a<2) and (v1.max_c>400) and (t2.b>v1.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,t2 where (v1.a<2) and (v1.max_c>400) and (t2.b>v1.b);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a < 2 and v1.max_c > 400"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t2.b > v1.b",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and max_c > 400",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 2"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v_double as v,t2_double as t where
-(v.a=t.a) and (v.avg_a>0.45) and (v.b>10);
-a avg_a b c a b c
-1 0.50000000 12.5 18.9 1 22.4 14.3333
-1 0.50000000 12.5 18.9 1 12.5 18.9
-4 1.00000000 33.4 14.3333 4 33.4 14.3333
-4 1.00000000 14.3333 13.65 4 33.4 14.3333
-5 1.25000000 17.89 7.22 5 22.4 13.65
-6 1.50000000 33.4 14.3 6 33.4 14.3333
-10 2.62500000 33.4 13.65 10 31.4 13.65
-select * from v_double as v,t2_double as t where
-(v.a=t.a) and (v.avg_a>0.45) and (v.b>10);
-a avg_a b c a b c
-1 0.50000000 12.5 18.9 1 22.4 14.3333
-1 0.50000000 12.5 18.9 1 12.5 18.9
-4 1.00000000 33.4 14.3333 4 33.4 14.3333
-4 1.00000000 14.3333 13.65 4 33.4 14.3333
-5 1.25000000 17.89 7.22 5 22.4 13.65
-6 1.50000000 33.4 14.3 6 33.4 14.3333
-10 2.62500000 33.4 13.65 10 31.4 13.65
-explain select * from v_double as v,t2_double as t where
-(v.a=t.a) and (v.avg_a>0.45) and (v.b>10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t.a 2 Using where
-2 DERIVED t1_double ALL NULL NULL NULL NULL 9 Using where; Using temporary; Using filesort
-explain format=json select * from v_double as v,t2_double as t where
-(v.a=t.a) and (v.avg_a>0.45) and (v.b>10);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v.avg_a > 0.45 and v.b > 10",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "avg_a < 22.333 and avg_a > 0.45",
- "filesort": {
- "sort_key": "t1_double.b, t1_double.c",
- "temporary_table": {
- "table": {
- "table_name": "t1_double",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t1_double.b > 12.2 and t1_double.b > 10"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v_decimal as v,t2_decimal as t where
-(v.a=t.a) and (v.avg_c>15) and (v.b>1);
-a b avg_c a b c
-3.0 3.0 16.0000 3.0 3.0 16
-select * from v_decimal as v,t2_decimal as t where
-(v.a=t.a) and (v.avg_c>15) and (v.b>1);
-a b avg_c a b c
-3.0 3.0 16.0000 3.0 3.0 16
-explain select * from v_decimal as v,t2_decimal as t where
-(v.a=t.a) and (v.avg_c>15) and (v.b>1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 3 test.t.a 2 Using where
-2 DERIVED t1_decimal ALL NULL NULL NULL NULL 9 Using where; Using temporary; Using filesort
-explain format=json select * from v_decimal as v,t2_decimal as t where
-(v.a=t.a) and (v.avg_c>15) and (v.b>1);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "3",
- "used_key_parts": ["a"],
- "ref": ["test.t.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v.avg_c > 15 and v.b > 1",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "avg_c > 12 and avg_c > 15",
- "filesort": {
- "sort_key": "t1_decimal.a, t1_decimal.b",
- "temporary_table": {
- "table": {
- "table_name": "t1_decimal",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t1_decimal.b > 1"
- }
- }
- }
- }
- }
- }
- }
-}
-# extracted or formula : pushing into HAVING and WHERE
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-((v1.a>7) and (v1.max_c>300) and (t2.c<v1.max_c)) or
-((v1.a<4) and (v1.max_c<500) and (t2.b<v1.b));
-a b max_c avg_c a b c d
-1 19 107 107.0000 2 3 207 207
-1 19 107 107.0000 7 13 312 406
-1 19 107 107.0000 3 12 231 190
-8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 6 23 303 909
-select * from v1,t2 where
-((v1.a>7) and (v1.max_c>300) and (t2.c<v1.max_c)) or
-((v1.a<4) and (v1.max_c<500) and (t2.b<v1.b));
-a b max_c avg_c a b c d
-1 19 107 107.0000 2 3 207 207
-1 19 107 107.0000 7 13 312 406
-1 19 107 107.0000 3 12 231 190
-8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 6 23 303 909
-explain select * from v1,t2 where
-((v1.a>7) and (v1.max_c>300) and (t2.c<v1.max_c)) or
-((v1.a<4) and (v1.max_c<500) and (t2.b<v1.b));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,t2 where
-((v1.a>7) and (v1.max_c>300) and (t2.c<v1.max_c)) or
-((v1.a<4) and (v1.max_c<500) and (t2.b<v1.b));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a > 7 and v1.max_c > 300 or v1.a < 4 and v1.max_c < 500"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.a > 7 and v1.max_c > 300 and t2.c < v1.max_c or v1.a < 4 and v1.max_c < 500 and t2.b < v1.b",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and (t1.a > 7 and max_c > 300 or t1.a < 4 and max_c < 500)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 7 or t1.a < 4"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where ((v1.a<2) and (v1.max_c>120)) or (v1.a>7);
-a b max_c avg_c a b c d
-1 21 500 234.6000 2 3 207 207
-1 21 500 234.6000 1 21 909 12
-1 21 500 234.6000 7 13 312 406
-1 21 500 234.6000 8 64 248 107
-1 21 500 234.6000 6 20 315 279
-1 21 500 234.6000 1 19 203 107
-1 21 500 234.6000 8 80 800 314
-1 21 500 234.6000 3 12 231 190
-1 21 500 234.6000 6 23 303 909
-8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 1 21 909 12
-8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 8 80 800 314
-8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 6 23 303 909
-select * from v1,t2 where ((v1.a<2) and (v1.max_c>120)) or (v1.a>7);
-a b max_c avg_c a b c d
-1 21 500 234.6000 2 3 207 207
-1 21 500 234.6000 1 21 909 12
-1 21 500 234.6000 7 13 312 406
-1 21 500 234.6000 8 64 248 107
-1 21 500 234.6000 6 20 315 279
-1 21 500 234.6000 1 19 203 107
-1 21 500 234.6000 8 80 800 314
-1 21 500 234.6000 3 12 231 190
-1 21 500 234.6000 6 23 303 909
-8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 1 21 909 12
-8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 8 80 800 314
-8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 6 23 303 909
-explain select * from v1,t2 where ((v1.a<2) and (v1.max_c>120)) or (v1.a>7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,t2 where ((v1.a<2) and (v1.max_c>120)) or (v1.a>7);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a < 2 and v1.max_c > 120 or v1.a > 7"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.a < 2 and v1.max_c > 120 or v1.a > 7",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and (t1.a < 2 and max_c > 120 or t1.a > 7)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 2 or t1.a > 7"
- }
- }
- }
- }
- }
- }
- }
-}
-# extracted or formulas : pushing into WHERE and HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-((v1.a<2) and (v1.max_c>120) and (v1.b=t2.b)) or (v1.a>7);
-a b max_c avg_c a b c d
-1 21 500 234.6000 1 21 909 12
-8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 1 21 909 12
-8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 8 80 800 314
-8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 6 23 303 909
-select * from v1,t2 where
-((v1.a<2) and (v1.max_c>120) and (v1.b=t2.b)) or (v1.a>7);
-a b max_c avg_c a b c d
-1 21 500 234.6000 1 21 909 12
-8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 1 21 909 12
-8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 8 80 800 314
-8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 6 23 303 909
-explain select * from v1,t2 where
-((v1.a<2) and (v1.max_c>120) and (v1.b=t2.b)) or (v1.a>7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,t2 where
-((v1.a<2) and (v1.max_c>120) and (v1.b=t2.b)) or (v1.a>7);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a < 2 and v1.max_c > 120 or v1.a > 7"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.b = t2.b and v1.a < 2 and v1.max_c > 120 or v1.a > 7",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and (t1.a < 2 and max_c > 120 or t1.a > 7)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 2 or t1.a > 7"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-((v1.a<2) and (v1.max_c<200) and (t2.c>v1.max_c) and (v1.max_c=t2.d)) or
-((v1.a>4) and (v1.max_c<500) and (t2.b<v1.b) and (v1.max_c=t2.c));
-a b max_c avg_c a b c d
-1 19 107 107.0000 8 64 248 107
-1 19 107 107.0000 1 19 203 107
-5 16 207 207.0000 2 3 207 207
-select * from v1,t2 where
-((v1.a<2) and (v1.max_c<200) and (t2.c>v1.max_c) and (v1.max_c=t2.d)) or
-((v1.a>4) and (v1.max_c<500) and (t2.b<v1.b) and (v1.max_c=t2.c));
-a b max_c avg_c a b c d
-1 19 107 107.0000 8 64 248 107
-1 19 107 107.0000 1 19 203 107
-5 16 207 207.0000 2 3 207 207
-explain select * from v1,t2 where
-((v1.a<2) and (v1.max_c<200) and (t2.c>v1.max_c) and (v1.max_c=t2.d)) or
-((v1.a>4) and (v1.max_c<500) and (t2.b<v1.b) and (v1.max_c=t2.c));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,t2 where
-((v1.a<2) and (v1.max_c<200) and (t2.c>v1.max_c) and (v1.max_c=t2.d)) or
-((v1.a>4) and (v1.max_c<500) and (t2.b<v1.b) and (v1.max_c=t2.c));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a < 2 and v1.max_c < 200 or v1.a > 4"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.a < 2 and v1.max_c < 200 and t2.c > v1.max_c and v1.max_c = t2.d or v1.max_c = t2.c and v1.a > 4 and t2.c < 500 and t2.b < v1.b",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and (t1.a < 2 and max_c < 200 or t1.a > 4 and max_c < 500)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 2 or t1.a > 4"
- }
- }
- }
- }
- }
- }
- }
-}
-# prepare of a query containing extracted or formula
-prepare stmt from "select * from v1,t2 where
- ((v1.max_c>400) and (t2.a>v1.a)) or ((v1.max_c<135) and (t2.a<v1.a));";
-execute stmt;
-a b max_c avg_c a b c d
-1 21 500 234.6000 2 3 207 207
-1 21 500 234.6000 7 13 312 406
-1 21 500 234.6000 8 64 248 107
-1 21 500 234.6000 6 20 315 279
-1 21 500 234.6000 8 80 800 314
-1 21 500 234.6000 3 12 231 190
-1 21 500 234.6000 6 23 303 909
-5 27 132 132.0000 2 3 207 207
-5 27 132 132.0000 1 21 909 12
-5 27 132 132.0000 1 19 203 107
-5 27 132 132.0000 3 12 231 190
-execute stmt;
-a b max_c avg_c a b c d
-1 21 500 234.6000 2 3 207 207
-1 21 500 234.6000 7 13 312 406
-1 21 500 234.6000 8 64 248 107
-1 21 500 234.6000 6 20 315 279
-1 21 500 234.6000 8 80 800 314
-1 21 500 234.6000 3 12 231 190
-1 21 500 234.6000 6 23 303 909
-5 27 132 132.0000 2 3 207 207
-5 27 132 132.0000 1 21 909 12
-5 27 132 132.0000 1 19 203 107
-5 27 132 132.0000 3 12 231 190
-deallocate prepare stmt;
-prepare stmt from
-"explain format=json select * from v1,t2 where
- ((v1.max_c>400) and (t2.a>v1.a)) or ((v1.max_c<135) and (t2.a<v1.a));";
-execute stmt;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.max_c > 400 or v1.max_c < 135"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.max_c > 400 and t2.a > v1.a or v1.max_c < 135 and t2.a < v1.a",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and (max_c > 400 or max_c < 135)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-execute stmt;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.max_c > 400 or v1.max_c < 135"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.max_c > 400 and t2.a > v1.a or v1.max_c < 135 and t2.a < v1.a",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and (max_c > 400 or max_c < 135)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-deallocate prepare stmt;
-# conjunctive subformula : pushing into WHERE
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (t2.a=v1.a) and (v1.b=t2.b) and (v1.a=1);
-a b max_c avg_c a b c d
-1 21 500 234.6000 1 21 909 12
-1 19 107 107.0000 1 19 203 107
-select * from v1,t2 where (t2.a=v1.a) and (v1.b=t2.b) and (v1.a=1);
-a b max_c avg_c a b c d
-1 21 500 234.6000 1 21 909 12
-1 19 107 107.0000 1 19 203 107
-explain select * from v1,t2 where (t2.a=v1.a) and (v1.b=t2.b) and (v1.a=1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.b 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,t2 where (t2.a=v1.a) and (v1.b=t2.b) and (v1.a=1);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a = 1 and t2.b is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["test.t2.b"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.a = 1",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a = 1"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=5) and (v1.max_c=t2.d);
-a b max_c avg_c a b c d
-5 16 207 207.0000 2 3 207 207
-select * from v1,t2 where (v1.a=5) and (v1.max_c=t2.d);
-a b max_c avg_c a b c d
-5 16 207 207.0000 2 3 207 207
-explain select * from v1,t2 where (v1.a=5) and (v1.max_c=t2.d);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.d 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,t2 where (v1.a=5) and (v1.max_c=t2.d);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.d is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["max_c"],
- "ref": ["test.t2.d"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.a = 5 and v1.max_c = t2.d",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a = 5"
- }
- }
- }
- }
- }
- }
- }
-}
-# conjunctive subformula : pushing into WHERE using equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (t2.a<5) and (v1.a=t2.a);
-a b max_c avg_c a b c d
-1 21 500 234.6000 1 21 909 12
-1 19 107 107.0000 1 21 909 12
-1 21 500 234.6000 1 19 203 107
-1 19 107 107.0000 1 19 203 107
-select * from v1,t2 where (t2.a<5) and (v1.a=t2.a);
-a b max_c avg_c a b c d
-1 21 500 234.6000 1 21 909 12
-1 19 107 107.0000 1 21 909 12
-1 21 500 234.6000 1 19 203 107
-1 19 107 107.0000 1 19 203 107
-explain select * from v1,t2 where (t2.a<5) and (v1.a=t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,t2 where (t2.a<5) and (v1.a=t2.a);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a < 5 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 5"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=v1.b) and (v1.a=t2.a);
-a b max_c avg_c a b c d
-select * from v1,t2 where (v1.a=v1.b) and (v1.a=t2.a);
-a b max_c avg_c a b c d
-explain select * from v1,t2 where (v1.a=v1.b) and (v1.a=t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 10 test.t2.a,test.t2.a 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,t2 where (v1.a=v1.b) and (v1.a=t2.a);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "10",
- "used_key_parts": ["a", "b"],
- "ref": ["test.t2.a", "test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b = t1.a"
- }
- }
- }
- }
- }
- }
- }
-}
-# conjunctive subformula : pushing into HAVING using equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (t2.c>150) and (v1.max_c=t2.c);
-a b max_c avg_c a b c d
-5 16 207 207.0000 2 3 207 207
-6 20 315 279.3333 6 20 315 279
-select * from v1,t2 where (t2.c>150) and (v1.max_c=t2.c);
-a b max_c avg_c a b c d
-5 16 207 207.0000 2 3 207 207
-6 20 315 279.3333 6 20 315 279
-explain select * from v1,t2 where (t2.c>150) and (v1.max_c=t2.c);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.c 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,t2 where (t2.c>150) and (v1.max_c=t2.c);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.c > 150 and t2.c is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["max_c"],
- "ref": ["test.t2.c"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and max_c > 150",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-# extracted and formula : pushing into WHERE
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=v1.b) and (v1.a=t2.a) and (v1.a=3);
-a b max_c avg_c a b c d
-select * from v1,t2 where (v1.a=v1.b) and (v1.a=t2.a) and (v1.a=3);
-a b max_c avg_c a b c d
-explain select * from v1,t2 where (v1.a=v1.b) and (v1.a=t2.a) and (v1.a=3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where
-explain format=json select * from v1,t2 where (v1.a=v1.b) and (v1.a=t2.a) and (v1.a=3);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a = 3"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a = 3 and v1.b = 3"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a = 3 and t1.b = 3"
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=1) and (v1.b=21) and (t2.a=2);
-a b max_c avg_c a b c d
-1 21 500 234.6000 2 3 207 207
-select * from v1,t2 where (v1.a=1) and (v1.b=21) and (t2.a=2);
-a b max_c avg_c a b c d
-1 21 500 234.6000 2 3 207 207
-explain select * from v1,t2 where (v1.a=1) and (v1.b=21) and (t2.a=2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where
-explain format=json select * from v1,t2 where (v1.a=1) and (v1.b=21) and (t2.a=2);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a = 2"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a = 1 and v1.b = 21"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a = 1 and t1.b = 21"
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v_char as v,t2_char as t where
-(v.a='c') and (v.b<'Hermes') and ((v.b=t.b) or (v.max_c>20));
-a b max_c a b c
-c Harry 4 d Harry 1
-c Harry 4 b Harry 4
-select * from v_char as v,t2_char as t where
-(v.a='c') and (v.b<'Hermes') and ((v.b=t.b) or (v.max_c>20));
-a b max_c a b c
-c Harry 4 d Harry 1
-c Harry 4 b Harry 4
-explain select * from v_char as v,t2_char as t where
-(v.a='c') and (v.b<'Hermes') and ((v.b=t.b) or (v.max_c>20));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 12 Using where
-1 PRIMARY t ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1_char ALL NULL NULL NULL NULL 12 Using where; Using temporary; Using filesort
-explain format=json select * from v_char as v,t2_char as t where
-(v.a='c') and (v.b<'Hermes') and ((v.b=t.b) or (v.max_c>20));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 12,
- "filtered": 100,
- "attached_condition": "v.a = 'c' and v.b < 'Hermes'",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 9",
- "filesort": {
- "sort_key": "t1_char.b",
- "temporary_table": {
- "table": {
- "table_name": "t1_char",
- "access_type": "ALL",
- "rows": 12,
- "filtered": 100,
- "attached_condition": "t1_char.a = 'c' and t1_char.b < 'Hermes'"
- }
- }
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "t",
- "access_type": "ALL",
- "rows": 12,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t.b = v.b or v.max_c > 20"
- }
- }
-}
-# extracted and formula : pushing into WHERE using equalities
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v_decimal as v,t2_decimal as t where
-(v.a=v.b) and (v.b=t.b) and ((t.b>1) or (v.a=1));
-a b avg_c a b c
-1.0 1.0 16.3333 2.0 1.0 13
-3.0 3.0 16.0000 3.0 3.0 16
-3.0 3.0 16.0000 1.0 3.0 22
-3.0 3.0 16.0000 1.0 3.0 14
-1.0 1.0 16.3333 2.0 1.0 43
-3.0 3.0 16.0000 2.0 3.0 11
-3.0 3.0 16.0000 2.0 3.0 16
-select * from v_decimal as v,t2_decimal as t where
-(v.a=v.b) and (v.b=t.b) and ((t.b>1) or (v.a=1));
-a b avg_c a b c
-1.0 1.0 16.3333 2.0 1.0 13
-3.0 3.0 16.0000 3.0 3.0 16
-3.0 3.0 16.0000 1.0 3.0 22
-3.0 3.0 16.0000 1.0 3.0 14
-1.0 1.0 16.3333 2.0 1.0 43
-3.0 3.0 16.0000 2.0 3.0 11
-3.0 3.0 16.0000 2.0 3.0 16
-explain select * from v_decimal as v,t2_decimal as t where
-(v.a=v.b) and (v.b=t.b) and ((t.b>1) or (v.a=1));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 6 test.t.b,test.t.b 2
-2 DERIVED t1_decimal ALL NULL NULL NULL NULL 9 Using where; Using temporary; Using filesort
-explain format=json select * from v_decimal as v,t2_decimal as t where
-(v.a=v.b) and (v.b=t.b) and ((t.b>1) or (v.a=1));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "(t.b > 1 or t.b = 1) and t.b is not null and t.b is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "6",
- "used_key_parts": ["a", "b"],
- "ref": ["test.t.b", "test.t.b"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "avg_c > 12",
- "filesort": {
- "sort_key": "t1_decimal.a, t1_decimal.b",
- "temporary_table": {
- "table": {
- "table_name": "t1_decimal",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t1_decimal.b = t1_decimal.a and (t1_decimal.a > 1 or t1_decimal.a = 1)"
- }
- }
- }
- }
- }
- }
- }
-}
-# extracted or formula : pushing into HAVING using equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2
-where ((t2.a<4) and (v1.a=t2.a)) or ((t2.c>150) and (v1.max_c=t2.c));
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 21 909 12
-1 19 107 107.0000 1 19 203 107
-1 21 500 234.6000 1 21 909 12
-1 21 500 234.6000 1 19 203 107
-5 16 207 207.0000 2 3 207 207
-6 20 315 279.3333 6 20 315 279
-select * from v1,t2
-where ((t2.a<4) and (v1.a=t2.a)) or ((t2.c>150) and (v1.max_c=t2.c));
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 21 909 12
-1 19 107 107.0000 1 19 203 107
-1 21 500 234.6000 1 21 909 12
-1 21 500 234.6000 1 19 203 107
-5 16 207 207.0000 2 3 207 207
-6 20 315 279.3333 6 20 315 279
-explain select * from v1,t2
-where ((t2.a<4) and (v1.a=t2.a)) or ((t2.c>150) and (v1.max_c=t2.c));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,t2
-where ((t2.a<4) and (v1.a=t2.a)) or ((t2.c>150) and (v1.max_c=t2.c));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a < 4 or t2.c > 150"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.a = t2.a and t2.a < 4 or v1.max_c = t2.c and t2.c > 150",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and (t1.a < 4 or max_c > 150)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-# conjunctive subformulas : pushing into WHERE and HAVING using equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2
-where ((t2.a>5) and (v1.a=t2.a)) and ((t2.c>250) and (v1.max_c=t2.c));
-a b max_c avg_c a b c d
-6 20 315 279.3333 6 20 315 279
-select * from v1,t2
-where ((t2.a>5) and (v1.a=t2.a)) and ((t2.c>250) and (v1.max_c=t2.c));
-a b max_c avg_c a b c d
-6 20 315 279.3333 6 20 315 279
-explain select * from v1,t2
-where ((t2.a>5) and (v1.a=t2.a)) and ((t2.c>250) and (v1.max_c=t2.c));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 10 test.t2.a,test.t2.c 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,t2
-where ((t2.a>5) and (v1.a=t2.a)) and ((t2.c>250) and (v1.max_c=t2.c));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a > 5 and t2.c > 250 and t2.a is not null and t2.c is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "10",
- "used_key_parts": ["a", "max_c"],
- "ref": ["test.t2.a", "test.t2.c"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and max_c > 250",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5"
- }
- }
- }
- }
- }
- }
- }
-}
-# conjunctive subformulas : pushing into WHERE and HAVING
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-group by a,b having max_c < 707) v1,
-t2 where (v1.a=8) and (v1.a=t2.a) and (v1.max_c=404);
-a b max_c avg_c a b c d
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 8 80 800 314
-select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-group by a,b having max_c < 707) v1,
-t2 where (v1.a=8) and (v1.a=t2.a) and (v1.max_c=404);
-a b max_c avg_c a b c d
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 8 80 800 314
-explain select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-group by a,b having max_c < 707) v1,
-t2 where (v1.a=8) and (v1.a=t2.a) and (v1.max_c=404);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-group by a,b having max_c < 707) v1,
-t2 where (v1.a=8) and (v1.a=t2.a) and (v1.max_c=404);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a = 8"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a = 8 and v1.max_c = 404"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c = 404",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a = 8"
- }
- }
- }
- }
- }
- }
- }
-}
-# conjunctive subformulas : pushing into WHERE and HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-(v1.a>3) and (v1.max_c>200) and (t2.b<v1.b) and (t2.d=v1.max_c);
-a b max_c avg_c a b c d
-5 16 207 207.0000 2 3 207 207
-select * from v1,t2 where
-(v1.a>3) and (v1.max_c>200) and (t2.b<v1.b) and (t2.d=v1.max_c);
-a b max_c avg_c a b c d
-5 16 207 207.0000 2 3 207 207
-explain select * from v1,t2 where
-(v1.a>3) and (v1.max_c>200) and (t2.b<v1.b) and (t2.d=v1.max_c);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.d 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,t2 where
-(v1.a>3) and (v1.max_c>200) and (t2.b<v1.b) and (t2.d=v1.max_c);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.d is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["max_c"],
- "ref": ["test.t2.d"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.a > 3 and v1.max_c > 200 and t2.b < v1.b and t2.d = v1.max_c",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and max_c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 3"
- }
- }
- }
- }
- }
- }
- }
-}
-# conjunctive subformula : pushing into WHERE
-# extracted or formula : pushing into HAVING using equalities
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v_double as v,t2_double as t where
-(v.b=v.c) and (v.c=t.c) and ((t.c>10) or (v.a=1));
-a avg_a b c a b c
-select * from v_double as v,t2_double as t where
-(v.b=v.c) and (v.c=t.c) and ((t.c>10) or (v.a=1));
-a avg_a b c a b c
-explain select * from v_double as v,t2_double as t where
-(v.b=v.c) and (v.c=t.c) and ((t.c>10) or (v.a=1));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 18 test.t.c,test.t.c 2 Using where
-2 DERIVED t1_double ALL NULL NULL NULL NULL 9 Using where; Using temporary; Using filesort
-explain format=json select * from v_double as v,t2_double as t where
-(v.b=v.c) and (v.c=t.c) and ((t.c>10) or (v.a=1));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t.c is not null and t.c is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "18",
- "used_key_parts": ["b", "c"],
- "ref": ["test.t.c", "test.t.c"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t.c > 10 or v.a = 1",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "avg_a < 22.333 and (t1_double.b > 10 or t1_double.a = 1)",
- "filesort": {
- "sort_key": "t1_double.b, t1_double.c",
- "temporary_table": {
- "table": {
- "table_name": "t1_double",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t1_double.c = t1_double.b and t1_double.b > 12.2"
- }
- }
- }
- }
- }
- }
- }
-}
-# conjunctive subformula : pushing into WHERE
-# extracted or formula : pushing into HAVING using equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v_double as v,t2_double as t where
-(((v.a>0.2) or (v.b<17)) or (t.c>17)) and (t.c=v.c) and (v.c>18);
-a avg_a b c a b c
-1 0.50000000 12.5 18.9 1 12.5 18.9
-1 0.50000000 12.5 18.9 2 22.4 18.9
-1 0.50000000 12.5 18.9 7 17.89 18.9
-select * from v_double as v,t2_double as t where
-(((v.a>0.2) or (v.b<17)) or (t.c>17)) and (t.c=v.c) and (v.c>18);
-a avg_a b c a b c
-1 0.50000000 12.5 18.9 1 12.5 18.9
-1 0.50000000 12.5 18.9 2 22.4 18.9
-1 0.50000000 12.5 18.9 7 17.89 18.9
-explain select * from v_double as v,t2_double as t where
-(((v.a>0.2) or (v.b<17)) or (t.c>17)) and (t.c=v.c) and (v.c>18);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 9 test.t.c 2 Using where
-2 DERIVED t1_double ALL NULL NULL NULL NULL 9 Using where; Using temporary; Using filesort
-explain format=json select * from v_double as v,t2_double as t where
-(((v.a>0.2) or (v.b<17)) or (t.c>17)) and (t.c=v.c) and (v.c>18);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t.c > 18 and t.c is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "9",
- "used_key_parts": ["c"],
- "ref": ["test.t.c"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v.a > 0.2 or v.b < 17 or t.c > 17",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "avg_a < 22.333 and (t1_double.a > 0.2 or t1_double.b < 17 or t1_double.c > 17)",
- "filesort": {
- "sort_key": "t1_double.b, t1_double.c",
- "temporary_table": {
- "table": {
- "table_name": "t1_double",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t1_double.b > 12.2 and t1_double.c > 18"
- }
- }
- }
- }
- }
- }
- }
-}
-# extracted or formula : pushing into WHERE
-# conjunctive subformula : pushing into HAVING
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v_decimal as v,t2_decimal as t where
-(((v.a>4) or (v.a=2)) or (v.b>3)) and (v.avg_c=13);
-a b avg_c a b c
-2.0 1.0 13.0000 2.0 1.0 13
-2.0 3.0 13.0000 2.0 1.0 13
-2.0 1.0 13.0000 2.0 2.0 11
-2.0 3.0 13.0000 2.0 2.0 11
-2.0 1.0 13.0000 3.0 3.0 16
-2.0 3.0 13.0000 3.0 3.0 16
-2.0 1.0 13.0000 1.0 3.0 22
-2.0 3.0 13.0000 1.0 3.0 22
-2.0 1.0 13.0000 1.0 3.0 14
-2.0 3.0 13.0000 1.0 3.0 14
-2.0 1.0 13.0000 2.0 2.0 15
-2.0 3.0 13.0000 2.0 2.0 15
-2.0 1.0 13.0000 2.0 1.0 43
-2.0 3.0 13.0000 2.0 1.0 43
-2.0 1.0 13.0000 2.0 3.0 11
-2.0 3.0 13.0000 2.0 3.0 11
-2.0 1.0 13.0000 2.0 3.0 16
-2.0 3.0 13.0000 2.0 3.0 16
-select * from v_decimal as v,t2_decimal as t where
-(((v.a>4) or (v.a=2)) or (v.b>3)) and (v.avg_c=13);
-a b avg_c a b c
-2.0 1.0 13.0000 2.0 1.0 13
-2.0 3.0 13.0000 2.0 1.0 13
-2.0 1.0 13.0000 2.0 2.0 11
-2.0 3.0 13.0000 2.0 2.0 11
-2.0 1.0 13.0000 3.0 3.0 16
-2.0 3.0 13.0000 3.0 3.0 16
-2.0 1.0 13.0000 1.0 3.0 22
-2.0 3.0 13.0000 1.0 3.0 22
-2.0 1.0 13.0000 1.0 3.0 14
-2.0 3.0 13.0000 1.0 3.0 14
-2.0 1.0 13.0000 2.0 2.0 15
-2.0 3.0 13.0000 2.0 2.0 15
-2.0 1.0 13.0000 2.0 1.0 43
-2.0 3.0 13.0000 2.0 1.0 43
-2.0 1.0 13.0000 2.0 3.0 11
-2.0 3.0 13.0000 2.0 3.0 11
-2.0 1.0 13.0000 2.0 3.0 16
-2.0 3.0 13.0000 2.0 3.0 16
-explain select * from v_decimal as v,t2_decimal as t where
-(((v.a>4) or (v.a=2)) or (v.b>3)) and (v.avg_c=13);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY t ALL NULL NULL NULL NULL 9 Using join buffer (flat, BNL join)
-2 DERIVED t1_decimal ALL NULL NULL NULL NULL 9 Using where; Using temporary; Using filesort
-explain format=json select * from v_decimal as v,t2_decimal as t where
-(((v.a>4) or (v.a=2)) or (v.b>3)) and (v.avg_c=13);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "(v.a > 4 or v.a = 2 or v.b > 3) and v.avg_c = 13",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "avg_c > 12 and avg_c = 13",
- "filesort": {
- "sort_key": "t1_decimal.a, t1_decimal.b",
- "temporary_table": {
- "table": {
- "table_name": "t1_decimal",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t1_decimal.a > 4 or t1_decimal.a = 2 or t1_decimal.b > 3"
- }
- }
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "t",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL"
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-t2 where (v1.a=t2.a) and (v1.max_c>300) and (v1.a=v1.b);
-a b max_c avg_c a b c d
-select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-t2 where (v1.a=t2.a) and (v1.max_c>300) and (v1.a=v1.b);
-a b max_c avg_c a b c d
-explain select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-t2 where (v1.a=t2.a) and (v1.max_c>300) and (v1.a=v1.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 10 test.t2.a,test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-t2 where (v1.a=t2.a) and (v1.max_c>300) and (v1.a=v1.b);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "10",
- "used_key_parts": ["a", "b"],
- "ref": ["test.t2.a", "test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.max_c > 300",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and max_c > 300",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b = t1.a and t1.a > 5"
- }
- }
- }
- }
- }
- }
- }
-}
-# nothing to push
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (t2.a<2) and (t2.c>900);
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 21 909 12
-1 21 500 234.6000 1 21 909 12
-5 16 207 207.0000 1 21 909 12
-5 27 132 132.0000 1 21 909 12
-6 20 315 279.3333 1 21 909 12
-8 33 404 213.6667 1 21 909 12
-select * from v1,t2 where (t2.a<2) and (t2.c>900);
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 21 909 12
-1 21 500 234.6000 1 21 909 12
-5 16 207 207.0000 1 21 909 12
-5 27 132 132.0000 1 21 909 12
-6 20 315 279.3333 1 21 909 12
-8 33 404 213.6667 1 21 909 12
-explain select * from v1,t2 where (t2.a<2) and (t2.c>900);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,t2 where (t2.a<2) and (t2.c>900);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a < 2 and t2.c > 900"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.b=t2.b);
-a b max_c avg_c a b c d
-1 21 500 234.6000 1 21 909 12
-6 20 315 279.3333 6 20 315 279
-1 19 107 107.0000 1 19 203 107
-select * from v1,t2 where (v1.a=t2.a) and (v1.b=t2.b);
-a b max_c avg_c a b c d
-1 21 500 234.6000 1 21 909 12
-6 20 315 279.3333 6 20 315 279
-1 19 107 107.0000 1 19 203 107
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.b=t2.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 10 test.t2.a,test.t2.b 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.b=t2.b);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null and t2.b is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "10",
- "used_key_parts": ["a", "b"],
- "ref": ["test.t2.a", "test.t2.b"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-(t2.a=v1.a) or (v1.b=t2.b) and ((v1.a=1) or (v1.a=6));
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 21 909 12
-1 19 107 107.0000 1 19 203 107
-1 21 500 234.6000 1 21 909 12
-1 21 500 234.6000 1 19 203 107
-6 20 315 279.3333 6 20 315 279
-6 20 315 279.3333 6 23 303 909
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 8 80 800 314
-select * from v1,t2 where
-(t2.a=v1.a) or (v1.b=t2.b) and ((v1.a=1) or (v1.a=6));
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 21 909 12
-1 19 107 107.0000 1 19 203 107
-1 21 500 234.6000 1 21 909 12
-1 21 500 234.6000 1 19 203 107
-6 20 315 279.3333 6 20 315 279
-6 20 315 279.3333 6 23 303 909
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 8 80 800 314
-explain select * from v1,t2 where
-(t2.a=v1.a) or (v1.b=t2.b) and ((v1.a=1) or (v1.a=6));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,t2 where
-(t2.a=v1.a) or (v1.b=t2.b) and ((v1.a=1) or (v1.a=6));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.a = t2.a or v1.b = t2.b and (v1.a = 1 or v1.a = 6)",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=1) or (v1.b=21) or (t2.a=2);
-a b max_c avg_c a b c d
-1 19 107 107.0000 2 3 207 207
-1 19 107 107.0000 1 21 909 12
-1 19 107 107.0000 7 13 312 406
-1 19 107 107.0000 8 64 248 107
-1 19 107 107.0000 6 20 315 279
-1 19 107 107.0000 1 19 203 107
-1 19 107 107.0000 8 80 800 314
-1 19 107 107.0000 3 12 231 190
-1 19 107 107.0000 6 23 303 909
-1 21 500 234.6000 2 3 207 207
-1 21 500 234.6000 1 21 909 12
-1 21 500 234.6000 7 13 312 406
-1 21 500 234.6000 8 64 248 107
-1 21 500 234.6000 6 20 315 279
-1 21 500 234.6000 1 19 203 107
-1 21 500 234.6000 8 80 800 314
-1 21 500 234.6000 3 12 231 190
-1 21 500 234.6000 6 23 303 909
-5 16 207 207.0000 2 3 207 207
-5 27 132 132.0000 2 3 207 207
-6 20 315 279.3333 2 3 207 207
-8 33 404 213.6667 2 3 207 207
-select * from v1,t2 where (v1.a=1) or (v1.b=21) or (t2.a=2);
-a b max_c avg_c a b c d
-1 19 107 107.0000 2 3 207 207
-1 19 107 107.0000 1 21 909 12
-1 19 107 107.0000 7 13 312 406
-1 19 107 107.0000 8 64 248 107
-1 19 107 107.0000 6 20 315 279
-1 19 107 107.0000 1 19 203 107
-1 19 107 107.0000 8 80 800 314
-1 19 107 107.0000 3 12 231 190
-1 19 107 107.0000 6 23 303 909
-1 21 500 234.6000 2 3 207 207
-1 21 500 234.6000 1 21 909 12
-1 21 500 234.6000 7 13 312 406
-1 21 500 234.6000 8 64 248 107
-1 21 500 234.6000 6 20 315 279
-1 21 500 234.6000 1 19 203 107
-1 21 500 234.6000 8 80 800 314
-1 21 500 234.6000 3 12 231 190
-1 21 500 234.6000 6 23 303 909
-5 16 207 207.0000 2 3 207 207
-5 27 132 132.0000 2 3 207 207
-6 20 315 279.3333 2 3 207 207
-8 33 404 213.6667 2 3 207 207
-explain select * from v1,t2 where (v1.a=1) or (v1.b=21) or (t2.a=2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,t2 where (v1.a=1) or (v1.b=21) or (t2.a=2);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.a = 1 or v1.b = 21 or t2.a = 2",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-(t2.a<2) and (t2.c>900) and ((v1.a<t2.a) or (t2.a<11));
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 21 909 12
-1 21 500 234.6000 1 21 909 12
-5 16 207 207.0000 1 21 909 12
-5 27 132 132.0000 1 21 909 12
-6 20 315 279.3333 1 21 909 12
-8 33 404 213.6667 1 21 909 12
-select * from v1,t2 where
-(t2.a<2) and (t2.c>900) and ((v1.a<t2.a) or (t2.a<11));
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 21 909 12
-1 21 500 234.6000 1 21 909 12
-5 16 207 207.0000 1 21 909 12
-5 27 132 132.0000 1 21 909 12
-6 20 315 279.3333 1 21 909 12
-8 33 404 213.6667 1 21 909 12
-explain select * from v1,t2 where
-(t2.a<2) and (t2.c>900) and ((v1.a<t2.a) or (t2.a<11));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,t2 where
-(t2.a<2) and (t2.c>900) and ((v1.a<t2.a) or (t2.a<11));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a < 2 and t2.c > 900"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.a < t2.a or t2.a < 11",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-# using several derived tables : nothing to push
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,v2,t2 where
-(v1.a=v2.a) and (v1.a=t2.a) and (v2.b<50);
-a b max_c avg_c a b max_c avg_c a b c d
-8 33 404 213.6667 8 33 404 213.6667 8 64 248 107
-6 20 315 279.3333 6 20 315 279.3333 6 20 315 279
-8 33 404 213.6667 8 33 404 213.6667 8 80 800 314
-6 20 315 279.3333 6 20 315 279.3333 6 23 303 909
-select * from v1,v2,t2 where
-(v1.a=v2.a) and (v1.a=t2.a) and (v2.b<50);
-a b max_c avg_c a b max_c avg_c a b c d
-8 33 404 213.6667 8 33 404 213.6667 8 64 248 107
-6 20 315 279.3333 6 20 315 279.3333 6 20 315 279
-8 33 404 213.6667 8 33 404 213.6667 8 80 800 314
-6 20 315 279.3333 6 20 315 279.3333 6 23 303 909
-explain select * from v1,v2,t2 where
-(v1.a=v2.a) and (v1.a=t2.a) and (v2.b<50);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key1 key1 5 test.t2.a 2
-1 PRIMARY <derived3> ref key0 key0 5 test.t2.a 2 Using where
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,v2,t2 where
-(v1.a=v2.a) and (v1.a=t2.a) and (v2.b<50);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key1"],
- "key": "key1",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived3>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v2.b < 50",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5 and t1.b < 50"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,v2,t2 where
-((v1.a=v2.a) or (v1.a=t2.a)) and (t2.b<50) and (v1.b=v2.b);
-a b max_c avg_c a b max_c avg_c a b c d
-6 20 315 279.3333 6 20 315 279.3333 2 3 207 207
-6 20 315 279.3333 6 20 315 279.3333 1 21 909 12
-6 20 315 279.3333 6 20 315 279.3333 7 13 312 406
-6 20 315 279.3333 6 20 315 279.3333 6 20 315 279
-6 20 315 279.3333 6 20 315 279.3333 1 19 203 107
-6 20 315 279.3333 6 20 315 279.3333 3 12 231 190
-6 20 315 279.3333 6 20 315 279.3333 6 23 303 909
-8 33 404 213.6667 8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 8 33 404 213.6667 1 21 909 12
-8 33 404 213.6667 8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 8 33 404 213.6667 6 23 303 909
-select * from v1,v2,t2 where
-((v1.a=v2.a) or (v1.a=t2.a)) and (t2.b<50) and (v1.b=v2.b);
-a b max_c avg_c a b max_c avg_c a b c d
-6 20 315 279.3333 6 20 315 279.3333 2 3 207 207
-6 20 315 279.3333 6 20 315 279.3333 1 21 909 12
-6 20 315 279.3333 6 20 315 279.3333 7 13 312 406
-6 20 315 279.3333 6 20 315 279.3333 6 20 315 279
-6 20 315 279.3333 6 20 315 279.3333 1 19 203 107
-6 20 315 279.3333 6 20 315 279.3333 3 12 231 190
-6 20 315 279.3333 6 20 315 279.3333 6 23 303 909
-8 33 404 213.6667 8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 8 33 404 213.6667 1 21 909 12
-8 33 404 213.6667 8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 8 33 404 213.6667 6 23 303 909
-explain select * from v1,v2,t2 where
-((v1.a=v2.a) or (v1.a=t2.a)) and (t2.b<50) and (v1.b=v2.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <derived3> ref key0 key0 5 v1.b 2 Using where
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,v2,t2 where
-((v1.a=v2.a) or (v1.a=t2.a)) and (t2.b<50) and (v1.b=v2.b);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.b < 50"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.b is not null",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived3>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["v1.b"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v2.a = v1.a or v1.a = t2.a",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,v2,t2 where
-((v1.a=v2.a) and (v1.a=t2.a)) or ((v2.b>13) and (t2.c<115));
-a b max_c avg_c a b max_c avg_c a b c d
-6 20 315 279.3333 6 20 315 279.3333 6 20 315 279
-6 20 315 279.3333 6 20 315 279.3333 6 23 303 909
-8 33 404 213.6667 8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 8 33 404 213.6667 8 80 800 314
-select * from v1,v2,t2 where
-((v1.a=v2.a) and (v1.a=t2.a)) or ((v2.b>13) and (t2.c<115));
-a b max_c avg_c a b max_c avg_c a b c d
-6 20 315 279.3333 6 20 315 279.3333 6 20 315 279
-6 20 315 279.3333 6 20 315 279.3333 6 23 303 909
-8 33 404 213.6667 8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 8 33 404 213.6667 8 80 800 314
-explain select * from v1,v2,t2 where
-((v1.a=v2.a) and (v1.a=t2.a)) or ((v2.b>13) and (t2.c<115));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,v2,t2 where
-((v1.a=v2.a) and (v1.a=t2.a)) or ((v2.b>13) and (t2.c<115));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.a = t2.a or t2.c < 115",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- },
- "buffer_type": "incremental",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.a = t2.a and v2.a = t2.a or v2.b > 13 and t2.c < 115",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5"
- }
- }
- }
- }
- }
- }
- }
-}
-# using several derived tables : pushing in all tables
-# conjunctive subformula : pushing into HAVING
-# extracted or formula : pushing into WHERE
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,v2,t2 where ((v1.a=v2.a) or (v1.a=t2.a)) and
-((v2.b<50) or (v2.b=19)) and (v1.max_c<300);
-a b max_c avg_c a b max_c avg_c a b c d
-1 19 107 107.0000 6 20 315 279.3333 1 21 909 12
-1 19 107 107.0000 6 20 315 279.3333 1 19 203 107
-1 19 107 107.0000 8 33 404 213.6667 1 21 909 12
-1 19 107 107.0000 8 33 404 213.6667 1 19 203 107
-select * from v1,v2,t2 where ((v1.a=v2.a) or (v1.a=t2.a)) and
-((v2.b<50) or (v2.b=19)) and (v1.max_c<300);
-a b max_c avg_c a b max_c avg_c a b c d
-1 19 107 107.0000 6 20 315 279.3333 1 21 909 12
-1 19 107 107.0000 6 20 315 279.3333 1 19 203 107
-1 19 107 107.0000 8 33 404 213.6667 1 21 909 12
-1 19 107 107.0000 8 33 404 213.6667 1 19 203 107
-explain select * from v1,v2,t2 where ((v1.a=v2.a) or (v1.a=t2.a)) and
-((v2.b<50) or (v2.b=19)) and (v1.max_c<300);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,v2,t2 where ((v1.a=v2.a) or (v1.a=t2.a)) and
-((v2.b<50) or (v2.b=19)) and (v1.max_c<300);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.max_c < 300"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and max_c < 300",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v2.b < 50 or v2.b = 19"
- },
- "buffer_type": "incremental",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "(v2.a = v1.a or v1.a = t2.a) and (v2.b < 50 or v2.b = 19)",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5 and (t1.b < 50 or t1.b = 19)"
- }
- }
- }
- }
- }
- }
- }
-}
-# using several derived tables : pushing only in one table
-# conjunctive subformula : pushing into WHERE
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,v2,t2 where
-(v1.a=t2.a) and (v1.a=v1.b) and (v1.a=v2.a) and (v2.max_c<300);
-a b max_c avg_c a b max_c avg_c a b c d
-select * from v1,v2,t2 where
-(v1.a=t2.a) and (v1.a=v1.b) and (v1.a=v2.a) and (v2.max_c<300);
-a b max_c avg_c a b max_c avg_c a b c d
-explain select * from v1,v2,t2 where
-(v1.a=t2.a) and (v1.a=v1.b) and (v1.a=v2.a) and (v2.max_c<300);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key1 key1 10 test.t2.a,test.t2.a 2
-1 PRIMARY <derived3> ref key0 key0 5 test.t2.a 2 Using where
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,v2,t2 where
-(v1.a=t2.a) and (v1.a=v1.b) and (v1.a=v2.a) and (v2.max_c<300);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null and t2.a is not null and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key1"],
- "key": "key1",
- "key_length": "10",
- "used_key_parts": ["a", "b"],
- "ref": ["test.t2.a", "test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b = t1.a"
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived3>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v2.max_c < 300",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707 and max_c < 300",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5"
- }
- }
- }
- }
- }
- }
- }
-}
-# using several derived tables : pushing only in one table
-# extracted and formula : pushing into WHERE
-# conjunctive subformula : pushing into WHERE using equalities
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,v2,t2 where (v1.a=1) and (v1.b>10) and (v1.b=v2.b);
-a b max_c avg_c a b max_c avg_c a b c d
-select * from v1,v2,t2 where (v1.a=1) and (v1.b>10) and (v1.b=v2.b);
-a b max_c avg_c a b max_c avg_c a b c d
-explain select * from v1,v2,t2 where (v1.a=1) and (v1.b>10) and (v1.b=v2.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <derived3> ref key0 key0 5 v1.b 2
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v1,v2,t2 where (v1.a=1) and (v1.b>10) and (v1.b=v2.b);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a = 1 and v1.b > 10"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.b is not null",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a = 1 and t1.b > 10"
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived3>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["v1.b"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5 and t1.b > 10"
- }
- }
- }
- }
- }
- }
- }
-}
-# extracted or formula : pushing into WHERE
-# conjunctive subformula : pushing into WHERE using equalities
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v_char as v,t2_char as t where
-(v.a=t.a) and (t.a='b') and ((v.b='Vika') or (v.b='Ali'));
-a b max_c a b c
-b Vika 2 b Ivan 1
-b Vika 2 b Ali 6
-b Vika 2 b Hermes 3
-b Vika 2 b Ivan 11
-b Vika 2 b Harry 4
-select * from v_char as v,t2_char as t where
-(v.a=t.a) and (t.a='b') and ((v.b='Vika') or (v.b='Ali'));
-a b max_c a b c
-b Vika 2 b Ivan 1
-b Vika 2 b Ali 6
-b Vika 2 b Hermes 3
-b Vika 2 b Ivan 11
-b Vika 2 b Harry 4
-explain select * from v_char as v,t2_char as t where
-(v.a=t.a) and (t.a='b') and ((v.b='Vika') or (v.b='Ali'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 12 Using where
-1 PRIMARY t ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1_char ALL NULL NULL NULL NULL 12 Using where; Using temporary; Using filesort
-explain format=json select * from v_char as v,t2_char as t where
-(v.a=t.a) and (t.a='b') and ((v.b='Vika') or (v.b='Ali'));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 12,
- "filtered": 100,
- "attached_condition": "v.a = 'b' and (v.b = 'Vika' or v.b = 'Ali')",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 9",
- "filesort": {
- "sort_key": "t1_char.b",
- "temporary_table": {
- "table": {
- "table_name": "t1_char",
- "access_type": "ALL",
- "rows": 12,
- "filtered": 100,
- "attached_condition": "t1_char.a = 'b' and (t1_char.b = 'Vika' or t1_char.b = 'Ali')"
- }
- }
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "t",
- "access_type": "ALL",
- "rows": 12,
- "filtered": 100,
- "attached_condition": "t.a = 'b'"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL"
- }
- }
-}
-# using several derived tables : pushing in all tables
-# extracted or formula : pushing into WHERE
-# conjunctive subformulas : pushing into HAVING
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,v2,v3,t2 where
-((v1.a=v2.a) or (v1.a=t2.a)) and ((v3.b<50) or (v3.b=33))
-and (v1.max_c<500) and (v3.a=t2.a) and (v2.max_c>300);
-a b max_c avg_c a b max_c avg_c a b min_c a b c d
-6 20 315 279.3333 6 20 315 279.3333 7 11 708 7 13 312 406
-6 20 315 279.3333 6 20 315 279.3333 8 33 114 8 64 248 107
-6 20 315 279.3333 6 20 315 279.3333 6 20 214 6 20 315 279
-6 20 315 279.3333 6 20 315 279.3333 8 33 114 8 80 800 314
-6 20 315 279.3333 6 20 315 279.3333 6 20 214 6 23 303 909
-6 20 315 279.3333 8 33 404 213.6667 6 20 214 6 20 315 279
-6 20 315 279.3333 8 33 404 213.6667 6 20 214 6 23 303 909
-8 33 404 213.6667 6 20 315 279.3333 8 33 114 8 64 248 107
-8 33 404 213.6667 6 20 315 279.3333 8 33 114 8 80 800 314
-8 33 404 213.6667 8 33 404 213.6667 7 11 708 7 13 312 406
-8 33 404 213.6667 8 33 404 213.6667 8 33 114 8 64 248 107
-8 33 404 213.6667 8 33 404 213.6667 6 20 214 6 20 315 279
-8 33 404 213.6667 8 33 404 213.6667 8 33 114 8 80 800 314
-8 33 404 213.6667 8 33 404 213.6667 6 20 214 6 23 303 909
-select * from v1,v2,v3,t2 where
-((v1.a=v2.a) or (v1.a=t2.a)) and ((v3.b<50) or (v3.b=33))
-and (v1.max_c<500) and (v3.a=t2.a) and (v2.max_c>300);
-a b max_c avg_c a b max_c avg_c a b min_c a b c d
-6 20 315 279.3333 6 20 315 279.3333 7 11 708 7 13 312 406
-6 20 315 279.3333 6 20 315 279.3333 8 33 114 8 64 248 107
-6 20 315 279.3333 6 20 315 279.3333 6 20 214 6 20 315 279
-6 20 315 279.3333 6 20 315 279.3333 8 33 114 8 80 800 314
-6 20 315 279.3333 6 20 315 279.3333 6 20 214 6 23 303 909
-6 20 315 279.3333 8 33 404 213.6667 6 20 214 6 20 315 279
-6 20 315 279.3333 8 33 404 213.6667 6 20 214 6 23 303 909
-8 33 404 213.6667 6 20 315 279.3333 8 33 114 8 64 248 107
-8 33 404 213.6667 6 20 315 279.3333 8 33 114 8 80 800 314
-8 33 404 213.6667 8 33 404 213.6667 7 11 708 7 13 312 406
-8 33 404 213.6667 8 33 404 213.6667 8 33 114 8 64 248 107
-8 33 404 213.6667 8 33 404 213.6667 6 20 214 6 20 315 279
-8 33 404 213.6667 8 33 404 213.6667 8 33 114 8 80 800 314
-8 33 404 213.6667 8 33 404 213.6667 6 20 214 6 23 303 909
-explain select * from v1,v2,v3,t2 where
-((v1.a=v2.a) or (v1.a=t2.a)) and ((v3.b<50) or (v3.b=33))
-and (v1.max_c<500) and (v3.a=t2.a) and (v2.max_c>300);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived4> ref key0 key0 5 test.t2.a 2 Using where
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-explain format=json select * from v1,v2,v3,t2 where
-((v1.a=v2.a) or (v1.a=t2.a)) and ((v3.b<50) or (v3.b=33))
-and (v1.max_c<500) and (v3.a=t2.a) and (v2.max_c>300);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "<derived4>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v3.b < 50 or v3.b = 33",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "min_c > 109",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 10 and (t1.b < 50 or t1.b = 33)"
- }
- }
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v2.max_c > 300"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707 and max_c > 300",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5"
- }
- }
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.max_c < 500"
- },
- "buffer_type": "incremental",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.a = v2.a or v1.a = t2.a",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and max_c < 500",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-# using several derived tables : pushing in all tables
-# conjunctive subformulas : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-(select a, b, min(c) as min_c from t1
-where t1.a>5 group by a,b having min_c < 707) v2,
-t2 where (v1.a=v2.a) and (v1.b=t2.b) and (v1.max_c>130) and (v2.min_c<130);
-a b max_c avg_c a b min_c a b c d
-select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-(select a, b, min(c) as min_c from t1
-where t1.a>5 group by a,b having min_c < 707) v2,
-t2 where (v1.a=v2.a) and (v1.b=t2.b) and (v1.max_c>130) and (v2.min_c<130);
-a b max_c avg_c a b min_c a b c d
-explain select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-(select a, b, min(c) as min_c from t1
-where t1.a>5 group by a,b having min_c < 707) v2,
-t2 where (v1.a=v2.a) and (v1.b=t2.b) and (v1.max_c>130) and (v2.min_c<130);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key1 key1 5 test.t2.b 2 Using where
-1 PRIMARY <derived3> ref key0 key0 5 v1.a 2 Using where
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-(select a, b, min(c) as min_c from t1
-where t1.a>5 group by a,b having min_c < 707) v2,
-t2 where (v1.a=v2.a) and (v1.b=t2.b) and (v1.max_c>130) and (v2.min_c<130);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.b is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key1"],
- "key": "key1",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["test.t2.b"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.max_c > 130 and v1.a is not null",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and max_c > 130",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5"
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived3>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["v1.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v2.min_c < 130",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "min_c < 707 and min_c < 130",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5"
- }
- }
- }
- }
- }
- }
- }
-}
-# using several derived tables : pushing in all tables
-# extracted or formulas : pushing into HAVING
-# conjunctive subformula : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-(select a, b, min(c) as min_c from t1
-where t1.a>5 group by a,b having min_c < 707) v2,
-(select a, b, avg(c) as avg_c from t1
-where t1.a<8 group by a,b) v3,
-t2 where (v1.a=v2.a) and (v1.b=v3.b) and ((v3.avg_c>170) or (v3.a<5))
-and ((v1.avg_c<400) or (v1.a>1)) and (v2.min_c<200);
-a b max_c avg_c a b min_c a b avg_c a b c d
-8 33 404 213.6667 8 33 114 1 33 497.5000 2 3 207 207
-8 33 404 213.6667 8 33 114 1 33 497.5000 1 21 909 12
-8 33 404 213.6667 8 33 114 1 33 497.5000 7 13 312 406
-8 33 404 213.6667 8 33 114 1 33 497.5000 8 64 248 107
-8 33 404 213.6667 8 33 114 1 33 497.5000 6 20 315 279
-8 33 404 213.6667 8 33 114 1 33 497.5000 1 19 203 107
-8 33 404 213.6667 8 33 114 1 33 497.5000 8 80 800 314
-8 33 404 213.6667 8 33 114 1 33 497.5000 3 12 231 190
-8 33 404 213.6667 8 33 114 1 33 497.5000 6 23 303 909
-select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-(select a, b, min(c) as min_c from t1
-where t1.a>5 group by a,b having min_c < 707) v2,
-(select a, b, avg(c) as avg_c from t1
-where t1.a<8 group by a,b) v3,
-t2 where (v1.a=v2.a) and (v1.b=v3.b) and ((v3.avg_c>170) or (v3.a<5))
-and ((v1.avg_c<400) or (v1.a>1)) and (v2.min_c<200);
-a b max_c avg_c a b min_c a b avg_c a b c d
-8 33 404 213.6667 8 33 114 1 33 497.5000 2 3 207 207
-8 33 404 213.6667 8 33 114 1 33 497.5000 1 21 909 12
-8 33 404 213.6667 8 33 114 1 33 497.5000 7 13 312 406
-8 33 404 213.6667 8 33 114 1 33 497.5000 8 64 248 107
-8 33 404 213.6667 8 33 114 1 33 497.5000 6 20 315 279
-8 33 404 213.6667 8 33 114 1 33 497.5000 1 19 203 107
-8 33 404 213.6667 8 33 114 1 33 497.5000 8 80 800 314
-8 33 404 213.6667 8 33 114 1 33 497.5000 3 12 231 190
-8 33 404 213.6667 8 33 114 1 33 497.5000 6 23 303 909
-explain select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-(select a, b, min(c) as min_c from t1
-where t1.a>5 group by a,b having min_c < 707) v2,
-(select a, b, avg(c) as avg_c from t1
-where t1.a<8 group by a,b) v3,
-t2 where (v1.a=v2.a) and (v1.b=v3.b) and ((v3.avg_c>170) or (v3.a<5))
-and ((v1.avg_c<400) or (v1.a>1)) and (v2.min_c<200);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <derived3> ref key0 key0 5 v1.a 2 Using where
-1 PRIMARY <derived4> ref key0 key0 5 v1.b 2 Using where
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-(select a, b, min(c) as min_c from t1
-where t1.a>5 group by a,b having min_c < 707) v2,
-(select a, b, avg(c) as avg_c from t1
-where t1.a<8 group by a,b) v3,
-t2 where (v1.a=v2.a) and (v1.b=v3.b) and ((v3.avg_c>170) or (v3.a<5))
-and ((v1.avg_c<400) or (v1.a>1)) and (v2.min_c<200);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.avg_c < 400 or v1.a > 1"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "(v1.avg_c < 400 or v1.a > 1) and v1.a is not null and v1.b is not null",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and (avg_c < 400 or t1.a > 1)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5"
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived3>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["v1.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v2.min_c < 200",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "min_c < 707 and min_c < 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5"
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived4>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["v1.b"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v3.avg_c > 170 or v3.a < 5",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "avg_c > 170 or t1.a < 5",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 8"
- }
- }
- }
- }
- }
- }
- }
-}
-# extracted or formula : pushing into HAVING
-# conjunctive subformula : pushing into WHERE
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-group by a,b having max_c < 707) v1,
-t2 where ((v1.a=1) or (v1.max_c<300)) and (v1.b>25);
-a b max_c avg_c a b c d
-5 27 132 132.0000 2 3 207 207
-5 27 132 132.0000 1 21 909 12
-5 27 132 132.0000 7 13 312 406
-5 27 132 132.0000 8 64 248 107
-5 27 132 132.0000 6 20 315 279
-5 27 132 132.0000 1 19 203 107
-5 27 132 132.0000 8 80 800 314
-5 27 132 132.0000 3 12 231 190
-5 27 132 132.0000 6 23 303 909
-select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-group by a,b having max_c < 707) v1,
-t2 where ((v1.a=1) or (v1.max_c<300)) and (v1.b>25);
-a b max_c avg_c a b c d
-5 27 132 132.0000 2 3 207 207
-5 27 132 132.0000 1 21 909 12
-5 27 132 132.0000 7 13 312 406
-5 27 132 132.0000 8 64 248 107
-5 27 132 132.0000 6 20 315 279
-5 27 132 132.0000 1 19 203 107
-5 27 132 132.0000 8 80 800 314
-5 27 132 132.0000 3 12 231 190
-5 27 132 132.0000 6 23 303 909
-explain select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-group by a,b having max_c < 707) v1,
-t2 where ((v1.a=1) or (v1.max_c<300)) and (v1.b>25);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-group by a,b having max_c < 707) v1,
-t2 where ((v1.a=1) or (v1.max_c<300)) and (v1.b>25);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "(v1.a = 1 or v1.max_c < 300) and v1.b > 25"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.a = 1 or v1.max_c < 300",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and (t1.a = 1 or max_c < 300)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b > 25"
- }
- }
- }
- }
- }
- }
- }
-}
-# extracted and formula : pushing into WHERE
-# conjunctive subformula : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-t2 where (v1.a=t2.a) and (v1.max_c>300) and (v1.b<30);
-a b max_c avg_c a b c d
-6 20 315 279.3333 6 20 315 279
-6 20 315 279.3333 6 23 303 909
-select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-t2 where (v1.a=t2.a) and (v1.max_c>300) and (v1.b<30);
-a b max_c avg_c a b c d
-6 20 315 279.3333 6 20 315 279
-6 20 315 279.3333 6 23 303 909
-explain select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-t2 where (v1.a=t2.a) and (v1.max_c>300) and (v1.b<30);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from
-(select a, b, max(c) as max_c, avg(c) as avg_c from t1
-where t1.a>5 group by a,b having max_c < 707) v1,
-t2 where (v1.a=t2.a) and (v1.max_c>300) and (v1.b<30);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.max_c > 300 and v1.b < 30",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 707 and max_c > 300",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5 and t1.b < 30"
- }
- }
- }
- }
- }
- }
- }
-}
-# using query with union
-# conjunctive subformula : pushing into WHERE
-# conjunctive subformulas : pushing into HAVING and WHERE
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a<5) and (v1.b=t2.b) and (t2.c>800)
-union
-select * from v1,t2 where (v1.max_c>100) and (v1.a>7) and (t2.d>800);
-a b max_c avg_c a b c d
-1 21 500 234.6000 1 21 909 12
-8 33 404 213.6667 6 23 303 909
-select * from v1,t2 where (v1.a<5) and (v1.b=t2.b) and (t2.c>800)
-union
-select * from v1,t2 where (v1.max_c>100) and (v1.a>7) and (t2.d>800);
-a b max_c avg_c a b c d
-1 21 500 234.6000 1 21 909 12
-8 33 404 213.6667 6 23 303 909
-explain select * from v1,t2 where (v1.a<5) and (v1.b=t2.b) and (t2.c>800)
-union
-select * from v1,t2 where (v1.max_c>100) and (v1.a>7) and (t2.d>800);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived3> ref key0 key0 5 test.t2.b 2 Using where
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 UNION t2 ALL NULL NULL NULL NULL 9 Using where
-2 UNION <derived4> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a<5) and (v1.b=t2.b) and (t2.c>800)
-union
-select * from v1,t2 where (v1.max_c>100) and (v1.a>7) and (t2.d>800);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.c > 800 and t2.b is not null"
- },
- "table": {
- "table_name": "<derived3>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["test.t2.b"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.a < 5",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 5"
- }
- }
- }
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.d > 800"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.max_c > 100 and v1.a > 7"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707 and max_c > 100",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 7"
- }
- }
- }
- }
- }
- }
- }
- }
- ]
- }
- }
-}
-# using query with union
-# extracted and formula : pushing into WHERE
-# extracted or formula : pushing into HAVING
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a<5) and (v1.b=t2.b) and (v1.b=19)
-union
-select * from v1,t2 where ((v1.max_c>400) or (v1.avg_c>270)) and (v1.a<t2.a);
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 19 203 107
-1 21 500 234.6000 2 3 207 207
-1 21 500 234.6000 7 13 312 406
-1 21 500 234.6000 8 64 248 107
-1 21 500 234.6000 6 20 315 279
-1 21 500 234.6000 8 80 800 314
-1 21 500 234.6000 3 12 231 190
-1 21 500 234.6000 6 23 303 909
-6 20 315 279.3333 7 13 312 406
-6 20 315 279.3333 8 64 248 107
-6 20 315 279.3333 8 80 800 314
-select * from v1,t2 where (v1.a<5) and (v1.b=t2.b) and (v1.b=19)
-union
-select * from v1,t2 where ((v1.max_c>400) or (v1.avg_c>270)) and (v1.a<t2.a);
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 19 203 107
-1 21 500 234.6000 2 3 207 207
-1 21 500 234.6000 7 13 312 406
-1 21 500 234.6000 8 64 248 107
-1 21 500 234.6000 6 20 315 279
-1 21 500 234.6000 8 80 800 314
-1 21 500 234.6000 3 12 231 190
-1 21 500 234.6000 6 23 303 909
-6 20 315 279.3333 7 13 312 406
-6 20 315 279.3333 8 64 248 107
-6 20 315 279.3333 8 80 800 314
-explain select * from v1,t2 where (v1.a<5) and (v1.b=t2.b) and (v1.b=19)
-union
-select * from v1,t2 where ((v1.max_c>400) or (v1.avg_c>270)) and (v1.a<t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 UNION t2 ALL NULL NULL NULL NULL 9
-2 UNION <derived4> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a<5) and (v1.b=t2.b) and (v1.b=19)
-union
-select * from v1,t2 where ((v1.max_c>400) or (v1.avg_c>270)) and (v1.a<t2.a);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.b = 19"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.b = 19 and v1.a < 5"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b = 19 and t1.a < 5"
- }
- }
- }
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.max_c > 400 or v1.avg_c > 270"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "(v1.max_c > 400 or v1.avg_c > 270) and v1.a < t2.a",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707 and (max_c > 400 or avg_c > 270)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
- }
- ]
- }
- }
-}
-# using query with union
-# extracted or formula : pushing into HAVING
-# extracted or formula : pushing into WHERE
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-((t2.a=v1.a) or (v1.b=t2.b)) and ((v1.a=1) or (v1.a=6))
-union
-select * from v1,t2 where ((v1.a>3) and (v1.b>27)) or (v1.max_c>550);
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 21 909 12
-1 19 107 107.0000 1 19 203 107
-1 21 500 234.6000 1 21 909 12
-1 21 500 234.6000 1 19 203 107
-6 20 315 279.3333 6 20 315 279
-6 20 315 279.3333 6 23 303 909
-8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 1 21 909 12
-8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 8 80 800 314
-8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 6 23 303 909
-select * from v1,t2 where
-((t2.a=v1.a) or (v1.b=t2.b)) and ((v1.a=1) or (v1.a=6))
-union
-select * from v1,t2 where ((v1.a>3) and (v1.b>27)) or (v1.max_c>550);
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 21 909 12
-1 19 107 107.0000 1 19 203 107
-1 21 500 234.6000 1 21 909 12
-1 21 500 234.6000 1 19 203 107
-6 20 315 279.3333 6 20 315 279
-6 20 315 279.3333 6 23 303 909
-8 33 404 213.6667 2 3 207 207
-8 33 404 213.6667 1 21 909 12
-8 33 404 213.6667 7 13 312 406
-8 33 404 213.6667 8 64 248 107
-8 33 404 213.6667 6 20 315 279
-8 33 404 213.6667 1 19 203 107
-8 33 404 213.6667 8 80 800 314
-8 33 404 213.6667 3 12 231 190
-8 33 404 213.6667 6 23 303 909
-explain select * from v1,t2 where
-((t2.a=v1.a) or (v1.b=t2.b)) and ((v1.a=1) or (v1.a=6))
-union
-select * from v1,t2 where ((v1.a>3) and (v1.b>27)) or (v1.max_c>550);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 UNION t2 ALL NULL NULL NULL NULL 9
-2 UNION <derived4> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where
-((t2.a=v1.a) or (v1.b=t2.b)) and ((v1.a=1) or (v1.a=6))
-union
-select * from v1,t2 where ((v1.a>3) and (v1.b>27)) or (v1.max_c>550);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a = 1 or v1.a = 6"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "(v1.a = t2.a or v1.b = t2.b) and (v1.a = 1 or v1.a = 6)",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a = 1 or t1.a = 6"
- }
- }
- }
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a > 3 and v1.b > 27 or v1.max_c > 550"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.a > 3 and v1.b > 27 or v1.max_c > 550",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707 and (t1.a > 3 and t1.b > 27 or max_c > 550)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
- }
- ]
- }
- }
-}
-# using query with union
-# extracted or formula : pushing into HAVING
-# conjunctive subformulas : pushing into WHERE
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-((v1.a=1) and (v1.a=t2.a)) and ((v1.max_c<500) or (v1.avg_c>500))
-union
-select * from v2,t2 where
-((v2.a<t2.b) or (v2.max_c>200)) and (v2.b>10) and (t2.a<2)
-union
-select * from v2,t2 where
-(v2.max_c=t2.c) and (v2.b<10);
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 21 909 12
-1 19 107 107.0000 1 19 203 107
-6 20 315 279.3333 1 21 909 12
-6 20 315 279.3333 1 19 203 107
-8 33 404 213.6667 1 21 909 12
-8 33 404 213.6667 1 19 203 107
-select * from v1,t2 where
-((v1.a=1) and (v1.a=t2.a)) and ((v1.max_c<500) or (v1.avg_c>500))
-union
-select * from v2,t2 where
-((v2.a<t2.b) or (v2.max_c>200)) and (v2.b>10) and (t2.a<2)
-union
-select * from v2,t2 where
-(v2.max_c=t2.c) and (v2.b<10);
-a b max_c avg_c a b c d
-1 19 107 107.0000 1 21 909 12
-1 19 107 107.0000 1 19 203 107
-6 20 315 279.3333 1 21 909 12
-6 20 315 279.3333 1 19 203 107
-8 33 404 213.6667 1 21 909 12
-8 33 404 213.6667 1 19 203 107
-explain select * from v1,t2 where
-((v1.a=1) and (v1.a=t2.a)) and ((v1.max_c<500) or (v1.avg_c>500))
-union
-select * from v2,t2 where
-((v2.a<t2.b) or (v2.max_c>200)) and (v2.b>10) and (t2.a<2)
-union
-select * from v2,t2 where
-(v2.max_c=t2.c) and (v2.b<10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived4> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 UNION t2 ALL NULL NULL NULL NULL 9 Using where
-2 UNION <derived5> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-5 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 UNION t2 ALL NULL NULL NULL NULL 9 Using where
-3 UNION <derived6> ref key0 key0 5 test.t2.c 2 Using where
-6 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-NULL UNION RESULT <union1,2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where
-((v1.a=1) and (v1.a=t2.a)) and ((v1.max_c<500) or (v1.avg_c>500))
-union
-select * from v2,t2 where
-((v2.a<t2.b) or (v2.max_c>200)) and (v2.b>10) and (t2.a<2)
-union
-select * from v2,t2 where
-(v2.max_c=t2.c) and (v2.b<10);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a = 1"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a = 1 and (v1.max_c < 500 or v1.avg_c > 500)"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.max_c < 500 or v1.avg_c > 500",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707 and (max_c < 500 or avg_c > 500)",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a = 1"
- }
- }
- }
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a < 2"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived5>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v2.b > 10"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v2.a < t2.b or v2.max_c > 200",
- "materialized": {
- "query_block": {
- "select_id": 5,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5 and t1.b > 10"
- }
- }
- }
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.c is not null"
- },
- "table": {
- "table_name": "<derived6>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["max_c"],
- "ref": ["test.t2.c"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v2.b < 10",
- "materialized": {
- "query_block": {
- "select_id": 6,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5 and t1.b < 10"
- }
- }
- }
- }
- }
- }
- }
- }
- ]
- }
- }
-}
-# using derived table with union
-# conjunctive subformulas : pushing into WHERE and HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v_union,t2 where (v_union.a<3) and (v_union.c>100);
-a b c a b c d
-1 19 107 2 3 207 207
-1 19 107 1 21 909 12
-1 19 107 7 13 312 406
-1 19 107 8 64 248 107
-1 19 107 6 20 315 279
-1 19 107 1 19 203 107
-1 19 107 8 80 800 314
-1 19 107 3 12 231 190
-1 19 107 6 23 303 909
-select * from v_union,t2 where (v_union.a<3) and (v_union.c>100);
-a b c a b c d
-1 19 107 2 3 207 207
-1 19 107 1 21 909 12
-1 19 107 7 13 312 406
-1 19 107 8 64 248 107
-1 19 107 6 20 315 279
-1 19 107 1 19 203 107
-1 19 107 8 80 800 314
-1 19 107 3 12 231 190
-1 19 107 6 23 303 909
-explain select * from v_union,t2 where (v_union.a<3) and (v_union.c>100);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 40 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 UNION t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v_union,t2 where (v_union.a<3) and (v_union.c>100);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 40,
- "filtered": 100,
- "attached_condition": "v_union.a < 3 and v_union.c > 100"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 109 and c > 100",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 10 and t1.a < 3"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "having_condition": "c < 300 and c > 100",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a < 3"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using derived table with union
-# conjunctive subformula : pushing into WHERE
-# extracted or formula : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v_union,t2 where
-((v_union.a<2) or (v_union.c>800)) and (v_union.b>12);
-a b c a b c d
-1 19 107 2 3 207 207
-1 19 107 1 21 909 12
-1 19 107 7 13 312 406
-1 19 107 8 64 248 107
-1 19 107 6 20 315 279
-1 19 107 1 19 203 107
-1 19 107 8 80 800 314
-1 19 107 3 12 231 190
-1 19 107 6 23 303 909
-select * from v_union,t2 where
-((v_union.a<2) or (v_union.c>800)) and (v_union.b>12);
-a b c a b c d
-1 19 107 2 3 207 207
-1 19 107 1 21 909 12
-1 19 107 7 13 312 406
-1 19 107 8 64 248 107
-1 19 107 6 20 315 279
-1 19 107 1 19 203 107
-1 19 107 8 80 800 314
-1 19 107 3 12 231 190
-1 19 107 6 23 303 909
-explain select * from v_union,t2 where
-((v_union.a<2) or (v_union.c>800)) and (v_union.b>12);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 40 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 UNION t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v_union,t2 where
-((v_union.a<2) or (v_union.c>800)) and (v_union.b>12);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 40,
- "filtered": 100,
- "attached_condition": "(v_union.a < 2 or v_union.c > 800) and v_union.b > 12"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v_union.a < 2 or v_union.c > 800",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 109 and (t1.a < 2 or c > 800)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 10 and t1.b > 12"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "having_condition": "c < 300 and (t1.a < 2 or c > 800)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.b > 12"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using derived table with union
-# conjunctive subformula : pushing into HAVING
-# conjunctive subformula : pushing into WHERE
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v_union,t2 where
-(v_union.a=1) and (v_union.a=t2.a) and (v_union.c<200);
-a b c a b c d
-1 19 107 1 21 909 12
-1 19 107 1 19 203 107
-select * from v_union,t2 where
-(v_union.a=1) and (v_union.a=t2.a) and (v_union.c<200);
-a b c a b c d
-1 19 107 1 21 909 12
-1 19 107 1 19 203 107
-explain select * from v_union,t2 where
-(v_union.a=1) and (v_union.a=t2.a) and (v_union.c<200);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 40 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 UNION t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v_union,t2 where
-(v_union.a=1) and (v_union.a=t2.a) and (v_union.c<200);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a = 1"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 40,
- "filtered": 100,
- "attached_condition": "v_union.a = 1 and v_union.c < 200"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 109 and c < 200",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a = 1"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "having_condition": "c < 300 and c < 200",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a = 1 and t1.b > 10"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v_char as v,t2_char as t where
-(v.a=t.a) and (v.b='Vika') and (v.max_c>2);
-a b max_c a b c
-c Vika 7 c Vinny 3
-c Vika 7 c Inga 9
-c Vika 7 c Ivan 2
-c Vika 7 c Inga 2
-select * from v_char as v,t2_char as t where
-(v.a=t.a) and (v.b='Vika') and (v.max_c>2);
-a b max_c a b c
-c Vika 7 c Vinny 3
-c Vika 7 c Inga 9
-c Vika 7 c Ivan 2
-c Vika 7 c Inga 2
-explain select * from v_char as v,t2_char as t where
-(v.a=t.a) and (v.b='Vika') and (v.max_c>2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t ALL NULL NULL NULL NULL 12 Using where
-1 PRIMARY <derived2> ref key0 key0 2 test.t.a 2 Using where
-2 DERIVED t1_char ALL NULL NULL NULL NULL 12 Using where; Using temporary; Using filesort
-explain format=json select * from v_char as v,t2_char as t where
-(v.a=t.a) and (v.b='Vika') and (v.max_c>2);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t",
- "access_type": "ALL",
- "rows": 12,
- "filtered": 100,
- "attached_condition": "t.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "2",
- "used_key_parts": ["a"],
- "ref": ["test.t.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v.b = 'Vika' and v.max_c > 2",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "max_c < 9 and max_c > 2",
- "filesort": {
- "sort_key": "t1_char.a",
- "temporary_table": {
- "table": {
- "table_name": "t1_char",
- "access_type": "ALL",
- "rows": 12,
- "filtered": 100,
- "attached_condition": "t1_char.b = 'Vika'"
- }
- }
- }
- }
- }
- }
- }
-}
-# using derived table with union
-# using several derived tables : pushing in all tables
-# conjunctive subformula : pushing into WHERE using equalities
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v_union,v1,t2 where
-(v_union.a=v1.a) and (v1.a=t2.a) and (t2.a=1)
-and ((v_union.c>800) or (v1.max_c>200));
-a b c a b max_c avg_c a b c d
-1 19 107 1 21 500 234.6000 1 21 909 12
-1 19 107 1 21 500 234.6000 1 19 203 107
-select * from v_union,v1,t2 where
-(v_union.a=v1.a) and (v1.a=t2.a) and (t2.a=1)
-and ((v_union.c>800) or (v1.max_c>200));
-a b c a b max_c avg_c a b c d
-1 19 107 1 21 500 234.6000 1 21 909 12
-1 19 107 1 21 500 234.6000 1 19 203 107
-explain select * from v_union,v1,t2 where
-(v_union.a=v1.a) and (v1.a=t2.a) and (t2.a=1)
-and ((v_union.c>800) or (v1.max_c>200));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived4> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 40 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 UNION t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v_union,v1,t2 where
-(v_union.a=v1.a) and (v1.a=t2.a) and (t2.a=1)
-and ((v_union.c>800) or (v1.max_c>200));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a = 1"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a = 1"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a = 1"
- }
- }
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 40,
- "filtered": 100,
- "attached_condition": "v_union.a = 1"
- },
- "buffer_type": "incremental",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v_union.c > 800 or v1.max_c > 200",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 109",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a = 1"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "having_condition": "c < 300",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a = 1 and t1.b > 10"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using derived table with union
-# extracted or formula : pushing into WHERE
-# conjunctive subformula : pushing into HAVING
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v2_union as v,t2 where
-((v.a=6) or (v.a=8)) and (v.c>200) and (v.a=t2.a);
-a b c a b c d
-8 33 404.0000 8 64 248 107
-6 20 312.0000 6 20 315 279
-6 20 214.0000 6 20 315 279
-8 33 404.0000 8 80 800 314
-6 20 312.0000 6 23 303 909
-6 20 214.0000 6 23 303 909
-select * from v2_union as v,t2 where
-((v.a=6) or (v.a=8)) and (v.c>200) and (v.a=t2.a);
-a b c a b c d
-8 33 404.0000 8 64 248 107
-6 20 312.0000 6 20 315 279
-6 20 214.0000 6 20 315 279
-8 33 404.0000 8 80 800 314
-6 20 312.0000 6 23 303 909
-6 20 214.0000 6 23 303 909
-explain select * from v2_union as v,t2 where
-((v.a=6) or (v.a=8)) and (v.c>200) and (v.a=t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 6 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 UNION t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-4 UNION t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-NULL UNION RESULT <union2,3,4> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v2_union as v,t2 where
-((v.a=6) or (v.a=8)) and (v.c>200) and (v.a=t2.a);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "(t2.a = 6 or t2.a = 8) and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 6,
- "filtered": 100,
- "attached_condition": "v.c > 200",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3,4>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 109 and c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 10 and (t1.a = 6 or t1.a = 8)"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "having_condition": "c < 300 and c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and (t1.a = 6 or t1.a = 8)"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 4,
- "operation": "UNION",
- "having_condition": "c < 707 and c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.c > 300 and (t1.a = 6 or t1.a = 8)"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using derived table with union of selects without aggregation
-# extracted conjunctive predicate: pushing in WHERE of both selects
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v3_union as v,t2 where (v.a=t2.a) and (v.c>6);
-a b c a b c d
-1 21 123 1 21 909 12
-1 21 101 1 21 909 12
-1 21 104 1 21 909 12
-1 33 988 1 21 909 12
-1 19 107 1 21 909 12
-1 21 500 1 21 909 12
-1 21 345 1 21 909 12
-7 11 708 7 13 312 406
-7 11 8 7 13 312 406
-8 33 404 8 64 248 107
-8 33 123 8 64 248 107
-8 33 114 8 64 248 107
-8 33 9 8 64 248 107
-6 20 214 6 20 315 279
-6 20 315 6 20 315 279
-6 20 309 6 20 315 279
-6 20 7 6 20 315 279
-1 21 123 1 19 203 107
-1 21 101 1 19 203 107
-1 21 104 1 19 203 107
-1 33 988 1 19 203 107
-1 19 107 1 19 203 107
-1 21 500 1 19 203 107
-1 21 345 1 19 203 107
-8 33 404 8 80 800 314
-8 33 123 8 80 800 314
-8 33 114 8 80 800 314
-8 33 9 8 80 800 314
-6 20 214 6 23 303 909
-6 20 315 6 23 303 909
-6 20 309 6 23 303 909
-6 20 7 6 23 303 909
-select * from v3_union as v,t2 where (v.a=t2.a) and (v.c>6);
-a b c a b c d
-1 21 123 1 21 909 12
-1 21 101 1 21 909 12
-1 21 104 1 21 909 12
-1 33 988 1 21 909 12
-1 19 107 1 21 909 12
-1 21 500 1 21 909 12
-1 21 345 1 21 909 12
-7 11 708 7 13 312 406
-7 11 8 7 13 312 406
-8 33 404 8 64 248 107
-8 33 123 8 64 248 107
-8 33 114 8 64 248 107
-8 33 9 8 64 248 107
-6 20 214 6 20 315 279
-6 20 315 6 20 315 279
-6 20 309 6 20 315 279
-6 20 7 6 20 315 279
-1 21 123 1 19 203 107
-1 21 101 1 19 203 107
-1 21 104 1 19 203 107
-1 33 988 1 19 203 107
-1 19 107 1 19 203 107
-1 21 500 1 19 203 107
-1 21 345 1 19 203 107
-8 33 404 8 80 800 314
-8 33 123 8 80 800 314
-8 33 114 8 80 800 314
-8 33 9 8 80 800 314
-6 20 214 6 23 303 909
-6 20 315 6 23 303 909
-6 20 309 6 23 303 909
-6 20 7 6 23 303 909
-explain select * from v3_union as v,t2 where (v.a=t2.a) and (v.c>6);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 4 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where
-3 UNION t1 ALL NULL NULL NULL NULL 20 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v3_union as v,t2 where (v.a=t2.a) and (v.c>6);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 4,
- "filtered": 100,
- "attached_condition": "v.c > 6",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 10 and t1.a + 1 > 6"
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.c > 100 and t1.c > 6"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using derived table with union of selects without aggregation
-# extracted conjunctive OR subformula: pushing in WHERE using equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v3_union as v,t2 where (v.a=t2.a) and ((t2.a>1) or (v.b<20));
-a b c a b c d
-1 19 107 1 21 909 12
-1 19 2 1 21 909 12
-7 11 708 7 13 312 406
-7 11 8 7 13 312 406
-8 33 404 8 64 248 107
-8 33 123 8 64 248 107
-8 33 114 8 64 248 107
-8 33 9 8 64 248 107
-6 20 214 6 20 315 279
-6 20 315 6 20 315 279
-6 20 309 6 20 315 279
-6 20 7 6 20 315 279
-1 19 107 1 19 203 107
-1 19 2 1 19 203 107
-8 33 404 8 80 800 314
-8 33 123 8 80 800 314
-8 33 114 8 80 800 314
-8 33 9 8 80 800 314
-6 20 214 6 23 303 909
-6 20 315 6 23 303 909
-6 20 309 6 23 303 909
-6 20 7 6 23 303 909
-select * from v3_union as v,t2 where (v.a=t2.a) and ((t2.a>1) or (v.b<20));
-a b c a b c d
-1 19 107 1 21 909 12
-1 19 2 1 21 909 12
-7 11 708 7 13 312 406
-7 11 8 7 13 312 406
-8 33 404 8 64 248 107
-8 33 123 8 64 248 107
-8 33 114 8 64 248 107
-8 33 9 8 64 248 107
-6 20 214 6 20 315 279
-6 20 315 6 20 315 279
-6 20 309 6 20 315 279
-6 20 7 6 20 315 279
-1 19 107 1 19 203 107
-1 19 2 1 19 203 107
-8 33 404 8 80 800 314
-8 33 123 8 80 800 314
-8 33 114 8 80 800 314
-8 33 9 8 80 800 314
-6 20 214 6 23 303 909
-6 20 315 6 23 303 909
-6 20 309 6 23 303 909
-6 20 7 6 23 303 909
-explain select * from v3_union as v,t2 where (v.a=t2.a) and ((t2.a>1) or (v.b<20));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 4 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where
-3 UNION t1 ALL NULL NULL NULL NULL 20 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v3_union as v,t2 where (v.a=t2.a) and ((t2.a>1) or (v.b<20));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 4,
- "filtered": 100,
- "attached_condition": "t2.a > 1 or v.b < 20",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 10 and (t1.a > 1 or t1.b < 20)"
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.c > 100 and (t1.a > 1 or t1.b < 20)"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using derived table with union of selects without aggregation
-# extracted the whole condition: in WHERE of both selects
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v3_union as v,t2 where
-(v.a=t2.a) and ((v.b=19) or (v.b=21)) and ((v.c<3) or (v.c>600));
-a b c a b c d
-1 19 2 1 21 909 12
-1 21 2 1 21 909 12
-1 19 2 1 19 203 107
-1 21 2 1 19 203 107
-select * from v3_union as v,t2 where
-(v.a=t2.a) and ((v.b=19) or (v.b=21)) and ((v.c<3) or (v.c>600));
-a b c a b c d
-1 19 2 1 21 909 12
-1 21 2 1 21 909 12
-1 19 2 1 19 203 107
-1 21 2 1 19 203 107
-explain select * from v3_union as v,t2 where
-(v.a=t2.a) and ((v.b=19) or (v.b=21)) and ((v.c<3) or (v.c>600));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 4 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where
-3 UNION t1 ALL NULL NULL NULL NULL 20 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v3_union as v,t2 where
-(v.a=t2.a) and ((v.b=19) or (v.b=21)) and ((v.c<3) or (v.c>600));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 4,
- "filtered": 100,
- "attached_condition": "(v.b = 19 or v.b = 21) and (v.c < 3 or v.c > 600)",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 10 and (t1.b = 19 or t1.b = 21) and (t1.a + 1 < 3 or t1.a + 1 > 600)"
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.c > 100 and (t1.b = 19 or t1.b = 21) and (t1.c < 3 or t1.c > 600)"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using derived table with union of
-# a select without aggregation and a select with aggregation
-# extracted conjunctive predicate: pushing in WHERE of both selects
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v4_union as v,t2 where (v.a=t2.a) and (v.b<20);
-a b c a b c d
-1 19 207 1 21 909 12
-7 11 808 7 13 312 406
-7 11 608 7 13 312 406
-1 19 207 1 19 203 107
-select * from v4_union as v,t2 where (v.a=t2.a) and (v.b<20);
-a b c a b c d
-1 19 207 1 21 909 12
-7 11 808 7 13 312 406
-7 11 608 7 13 312 406
-1 19 207 1 19 203 107
-explain select * from v4_union as v,t2 where (v.a=t2.a) and (v.b<20);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 4 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 UNION t1 ALL NULL NULL NULL NULL 20 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v4_union as v,t2 where (v.a=t2.a) and (v.b<20);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 4,
- "filtered": 100,
- "attached_condition": "v.b < 20",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 109",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 10 and t1.b < 20"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.b < 20"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using derived table with union of
-# a select without aggregation and a select with aggregation
-# extracted subformula: pushing in WHERE of one select
-# extracted subformula: pushing in HAVING of the other select
-# extracted sub-subformula: pushing in WHERE of the other select
-# using an equality in all pushdowns
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v4_union as v,t2 where
-(v.a=t2.a) and ((t2.a<3) or (v.b<40)) and (v.c>500);
-a b c a b c d
-1 33 1088 1 21 909 12
-1 21 600 1 21 909 12
-1 33 888 1 21 909 12
-7 11 808 7 13 312 406
-7 11 608 7 13 312 406
-8 33 504 8 64 248 107
-1 33 1088 1 19 203 107
-1 21 600 1 19 203 107
-1 33 888 1 19 203 107
-8 33 504 8 80 800 314
-select * from v4_union as v,t2 where
-(v.a=t2.a) and ((t2.a<3) or (v.b<40)) and (v.c>500);
-a b c a b c d
-1 33 1088 1 21 909 12
-1 21 600 1 21 909 12
-1 33 888 1 21 909 12
-7 11 808 7 13 312 406
-7 11 608 7 13 312 406
-8 33 504 8 64 248 107
-1 33 1088 1 19 203 107
-1 21 600 1 19 203 107
-1 33 888 1 19 203 107
-8 33 504 8 80 800 314
-explain select * from v4_union as v,t2 where
-(v.a=t2.a) and ((t2.a<3) or (v.b<40)) and (v.c>500);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 4 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 UNION t1 ALL NULL NULL NULL NULL 20 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v4_union as v,t2 where
-(v.a=t2.a) and ((t2.a<3) or (v.b<40)) and (v.c>500);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 4,
- "filtered": 100,
- "attached_condition": "(t2.a < 3 or v.b < 40) and v.c > 500",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 109 and c > 500",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 10 and (t1.a < 3 or t1.b < 40)"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and (t1.a < 3 or t1.b < 40) and t1.c + 100 > 500"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using embedded derived table : pushing the same conditions
-# using several derived tables : pushing in all tables
-# conjunctive subformula : pushing into WHERE
-# extracted and formula : pushing into WHERE
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v4,v1 where
-(v4.a<13) and (v1.a>5) and (v1.b>12);
-a b min_c a b max_c avg_c
-1 19 107 6 20 315 279.3333
-1 21 500 6 20 315 279.3333
-5 16 207 6 20 315 279.3333
-5 27 132 6 20 315 279.3333
-6 20 315 6 20 315 279.3333
-8 33 404 6 20 315 279.3333
-1 19 107 8 33 404 213.6667
-1 21 500 8 33 404 213.6667
-5 16 207 8 33 404 213.6667
-5 27 132 8 33 404 213.6667
-6 20 315 8 33 404 213.6667
-8 33 404 8 33 404 213.6667
-select * from v4,v1 where
-(v4.a<13) and (v1.a>5) and (v1.b>12);
-a b min_c a b max_c avg_c
-1 19 107 6 20 315 279.3333
-1 21 500 6 20 315 279.3333
-5 16 207 6 20 315 279.3333
-5 27 132 6 20 315 279.3333
-6 20 315 6 20 315 279.3333
-8 33 404 6 20 315 279.3333
-1 19 107 8 33 404 213.6667
-1 21 500 8 33 404 213.6667
-5 16 207 8 33 404 213.6667
-5 27 132 8 33 404 213.6667
-6 20 315 8 33 404 213.6667
-8 33 404 8 33 404 213.6667
-explain select * from v4,v1 where
-(v4.a<13) and (v1.a>5) and (v1.b>12);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where
-1 PRIMARY <derived4> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v4,v1 where
-(v4.a<13) and (v1.a>5) and (v1.b>12);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v4.a < 13",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "filesort": {
- "sort_key": "v1.a, v1.b",
- "temporary_table": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a < 15 and v1.a < 13",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 15 and t1.a < 13"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a > 5 and v1.b > 12"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5 and t1.b > 12"
- }
- }
- }
- }
- }
- }
- }
-}
-# using embedded view : nothing to push
-# using several derived tables : pushing only in one table
-# conjunctive subformula : pushing into WHERE
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v4,v1,t2 where
-(v4.a=t2.a) and (v4.a=v1.a) and (v1.b>30);
-a b min_c a b max_c avg_c a b c d
-8 33 404 8 33 404 213.6667 8 64 248 107
-8 33 404 8 33 404 213.6667 8 80 800 314
-select * from v4,v1,t2 where
-(v4.a=t2.a) and (v4.a=v1.a) and (v1.b>30);
-a b min_c a b max_c avg_c a b c d
-8 33 404 8 33 404 213.6667 8 64 248 107
-8 33 404 8 33 404 213.6667 8 80 800 314
-explain select * from v4,v1,t2 where
-(v4.a=t2.a) and (v4.a=v1.a) and (v1.b>30);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key1 key1 5 test.t2.a 2
-1 PRIMARY <derived4> ref key0 key0 5 test.t2.a 2 Using where
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v4,v1,t2 where
-(v4.a=t2.a) and (v4.a=v1.a) and (v1.b>30);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key1"],
- "key": "key1",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "filesort": {
- "sort_key": "v1.a, v1.b",
- "temporary_table": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a < 15",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 15"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived4>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.b > 30",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b > 30"
- }
- }
- }
- }
- }
- }
- }
-}
-# using embedded view : pushing different conditions
-# using several derived tables : pushing in all tables
-# conjunctive subformula : pushing into WHERE using equalities
-# extracted and formula : pushing into WHERE using equalities
-# conjunctive subformula : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v4,v1,t2 where
-(v4.a=t2.a) and (v4.a>1) and (v4.a=v1.a) and (v4.min_c>100) and (v1.b<30);
-a b min_c a b max_c avg_c a b c d
-6 20 315 6 20 315 279.3333 6 20 315 279
-6 20 315 6 20 315 279.3333 6 23 303 909
-select * from v4,v1,t2 where
-(v4.a=t2.a) and (v4.a>1) and (v4.a=v1.a) and (v4.min_c>100) and (v1.b<30);
-a b min_c a b max_c avg_c a b c d
-6 20 315 6 20 315 279.3333 6 20 315 279
-6 20 315 6 20 315 279.3333 6 23 303 909
-explain select * from v4,v1,t2 where
-(v4.a=t2.a) and (v4.a>1) and (v4.a=v1.a) and (v4.min_c>100) and (v1.b<30);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key1 key1 5 test.t2.a 2 Using where
-1 PRIMARY <derived4> ref key0 key0 5 test.t2.a 2 Using where
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v4,v1,t2 where
-(v4.a=t2.a) and (v4.a>1) and (v4.a=v1.a) and (v4.min_c>100) and (v1.b<30);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a > 1 and t2.a is not null and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key1"],
- "key": "key1",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v4.min_c > 100",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "min_c > 100",
- "filesort": {
- "sort_key": "v1.a, v1.b",
- "temporary_table": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a < 15 and v1.a > 1",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 15 and t1.a > 1"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived4>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.b < 30",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 1 and t1.b < 30"
- }
- }
- }
- }
- }
- }
- }
-}
-# using embedded view : pushing different conditions
-# using several derived tables : pushing in all tables
-# extracted or formula : pushing into WHERE
-# conjunctive subformula : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v4,v1,t2 where
-(((v4.b>10) and (v4.a>1)) or (v4.b<20)) and (v1.max_c>200) and (v1.a=v4.a);
-a b min_c a b max_c avg_c a b c d
-1 19 107 1 21 500 234.6000 2 3 207 207
-1 19 107 1 21 500 234.6000 1 21 909 12
-1 19 107 1 21 500 234.6000 7 13 312 406
-1 19 107 1 21 500 234.6000 8 64 248 107
-1 19 107 1 21 500 234.6000 6 20 315 279
-1 19 107 1 21 500 234.6000 1 19 203 107
-1 19 107 1 21 500 234.6000 8 80 800 314
-1 19 107 1 21 500 234.6000 3 12 231 190
-1 19 107 1 21 500 234.6000 6 23 303 909
-5 16 207 5 16 207 207.0000 2 3 207 207
-5 16 207 5 16 207 207.0000 1 21 909 12
-5 16 207 5 16 207 207.0000 7 13 312 406
-5 16 207 5 16 207 207.0000 8 64 248 107
-5 16 207 5 16 207 207.0000 6 20 315 279
-5 16 207 5 16 207 207.0000 1 19 203 107
-5 16 207 5 16 207 207.0000 8 80 800 314
-5 16 207 5 16 207 207.0000 3 12 231 190
-5 16 207 5 16 207 207.0000 6 23 303 909
-5 27 132 5 16 207 207.0000 2 3 207 207
-5 27 132 5 16 207 207.0000 1 21 909 12
-5 27 132 5 16 207 207.0000 7 13 312 406
-5 27 132 5 16 207 207.0000 8 64 248 107
-5 27 132 5 16 207 207.0000 6 20 315 279
-5 27 132 5 16 207 207.0000 1 19 203 107
-5 27 132 5 16 207 207.0000 8 80 800 314
-5 27 132 5 16 207 207.0000 3 12 231 190
-5 27 132 5 16 207 207.0000 6 23 303 909
-6 20 315 6 20 315 279.3333 2 3 207 207
-6 20 315 6 20 315 279.3333 1 21 909 12
-6 20 315 6 20 315 279.3333 7 13 312 406
-6 20 315 6 20 315 279.3333 8 64 248 107
-6 20 315 6 20 315 279.3333 6 20 315 279
-6 20 315 6 20 315 279.3333 1 19 203 107
-6 20 315 6 20 315 279.3333 8 80 800 314
-6 20 315 6 20 315 279.3333 3 12 231 190
-6 20 315 6 20 315 279.3333 6 23 303 909
-8 33 404 8 33 404 213.6667 2 3 207 207
-8 33 404 8 33 404 213.6667 1 21 909 12
-8 33 404 8 33 404 213.6667 7 13 312 406
-8 33 404 8 33 404 213.6667 8 64 248 107
-8 33 404 8 33 404 213.6667 6 20 315 279
-8 33 404 8 33 404 213.6667 1 19 203 107
-8 33 404 8 33 404 213.6667 8 80 800 314
-8 33 404 8 33 404 213.6667 3 12 231 190
-8 33 404 8 33 404 213.6667 6 23 303 909
-select * from v4,v1,t2 where
-(((v4.b>10) and (v4.a>1)) or (v4.b<20)) and (v1.max_c>200) and (v1.a=v4.a);
-a b min_c a b max_c avg_c a b c d
-1 19 107 1 21 500 234.6000 2 3 207 207
-1 19 107 1 21 500 234.6000 1 21 909 12
-1 19 107 1 21 500 234.6000 7 13 312 406
-1 19 107 1 21 500 234.6000 8 64 248 107
-1 19 107 1 21 500 234.6000 6 20 315 279
-1 19 107 1 21 500 234.6000 1 19 203 107
-1 19 107 1 21 500 234.6000 8 80 800 314
-1 19 107 1 21 500 234.6000 3 12 231 190
-1 19 107 1 21 500 234.6000 6 23 303 909
-5 16 207 5 16 207 207.0000 2 3 207 207
-5 16 207 5 16 207 207.0000 1 21 909 12
-5 16 207 5 16 207 207.0000 7 13 312 406
-5 16 207 5 16 207 207.0000 8 64 248 107
-5 16 207 5 16 207 207.0000 6 20 315 279
-5 16 207 5 16 207 207.0000 1 19 203 107
-5 16 207 5 16 207 207.0000 8 80 800 314
-5 16 207 5 16 207 207.0000 3 12 231 190
-5 16 207 5 16 207 207.0000 6 23 303 909
-5 27 132 5 16 207 207.0000 2 3 207 207
-5 27 132 5 16 207 207.0000 1 21 909 12
-5 27 132 5 16 207 207.0000 7 13 312 406
-5 27 132 5 16 207 207.0000 8 64 248 107
-5 27 132 5 16 207 207.0000 6 20 315 279
-5 27 132 5 16 207 207.0000 1 19 203 107
-5 27 132 5 16 207 207.0000 8 80 800 314
-5 27 132 5 16 207 207.0000 3 12 231 190
-5 27 132 5 16 207 207.0000 6 23 303 909
-6 20 315 6 20 315 279.3333 2 3 207 207
-6 20 315 6 20 315 279.3333 1 21 909 12
-6 20 315 6 20 315 279.3333 7 13 312 406
-6 20 315 6 20 315 279.3333 8 64 248 107
-6 20 315 6 20 315 279.3333 6 20 315 279
-6 20 315 6 20 315 279.3333 1 19 203 107
-6 20 315 6 20 315 279.3333 8 80 800 314
-6 20 315 6 20 315 279.3333 3 12 231 190
-6 20 315 6 20 315 279.3333 6 23 303 909
-8 33 404 8 33 404 213.6667 2 3 207 207
-8 33 404 8 33 404 213.6667 1 21 909 12
-8 33 404 8 33 404 213.6667 7 13 312 406
-8 33 404 8 33 404 213.6667 8 64 248 107
-8 33 404 8 33 404 213.6667 6 20 315 279
-8 33 404 8 33 404 213.6667 1 19 203 107
-8 33 404 8 33 404 213.6667 8 80 800 314
-8 33 404 8 33 404 213.6667 3 12 231 190
-8 33 404 8 33 404 213.6667 6 23 303 909
-explain select * from v4,v1,t2 where
-(((v4.b>10) and (v4.a>1)) or (v4.b<20)) and (v1.max_c>200) and (v1.a=v4.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <derived4> ref key0 key0 5 v4.a 2 Using where
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using temporary; Using filesort
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v4,v1,t2 where
-(((v4.b>10) and (v4.a>1)) or (v4.b<20)) and (v1.max_c>200) and (v1.a=v4.a);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v4.b > 10 and v4.a > 1 or v4.b < 20"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "(v4.b > 10 and v4.a > 1 or v4.b < 20) and v4.a is not null",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "filesort": {
- "sort_key": "v1.a, v1.b",
- "temporary_table": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a < 15 and (v1.b > 10 and v1.a > 1 or v1.b < 20)",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 15 and (t1.b > 10 and t1.a > 1 or t1.b < 20)"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived4>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["v4.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.max_c > 200",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707 and max_c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-# using embedded view : pushing different conditions
-# using several derived tables : pushing only in one table
-# extracted or formula : pushing into WHERE
-# extracted or formula : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v4,v2 where
-((v4.a>12) and (v4.min_c<300) and (v4.b>13)) or (v4.a<1);
-a b min_c a b max_c avg_c
-select * from v4,v2 where
-((v4.a>12) and (v4.min_c<300) and (v4.b>13)) or (v4.a<1);
-a b min_c a b max_c avg_c
-explain select * from v4,v2 where
-((v4.a>12) and (v4.min_c<300) and (v4.b>13)) or (v4.a<1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where
-1 PRIMARY <derived4> ALL NULL NULL NULL NULL 20 Using join buffer (flat, BNL join)
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v4,v2 where
-((v4.a>12) and (v4.min_c<300) and (v4.b>13)) or (v4.a<1);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v4.a > 12 and v4.min_c < 300 and v4.b > 13 or v4.a < 1",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "v1.a > 12 and min_c < 300 and v1.b > 13 or v1.a < 1",
- "filesort": {
- "sort_key": "v1.a, v1.b",
- "temporary_table": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a < 15 and (v1.a > 12 and v1.b > 13 or v1.a < 1)",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 15 and (t1.a > 12 and t1.b > 13 or t1.a < 1)"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5"
- }
- }
- }
- }
- }
- }
- }
-}
-# using embedded view : pushing different conditions
-# using several derived tables : pushing only in one table
-# conjunctive subformula : pushing into WHERE
-# conjunctive subformula : pushing into HAVING
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v4,v2 where
-(v4.a=v2.b) and (v4.a=v4.b) and (v4.min_c<100);
-a b min_c a b max_c avg_c
-select * from v4,v2 where
-(v4.a=v2.b) and (v4.a=v4.b) and (v4.min_c<100);
-a b min_c a b max_c avg_c
-explain select * from v4,v2 where
-(v4.a=v2.b) and (v4.a=v4.b) and (v4.min_c<100);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where
-1 PRIMARY <derived4> ref key0 key0 5 v4.a 2
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v4,v2 where
-(v4.a=v2.b) and (v4.a=v4.b) and (v4.min_c<100);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v4.b = v4.a and v4.min_c < 100 and v4.a is not null",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "min_c < 100",
- "filesort": {
- "sort_key": "v1.a, v1.b",
- "temporary_table": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.b = v1.a and v1.a < 15",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b = t1.a and t1.a < 15"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived4>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["v4.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5"
- }
- }
- }
- }
- }
- }
- }
-}
-# using embedded view : pushing the same conditions
-# using several derived tables : pushing in all tables
-# extracted and formula : pushing into WHERE using equalities
-# conjunctive subformula : pushing into WHERE
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v4,v2 where
-(v4.a=v2.b) and (v4.a=v4.b) and (v2.b<30);
-a b min_c a b max_c avg_c
-select * from v4,v2 where
-(v4.a=v2.b) and (v4.a=v4.b) and (v2.b<30);
-a b min_c a b max_c avg_c
-explain select * from v4,v2 where
-(v4.a=v2.b) and (v4.a=v4.b) and (v2.b<30);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where
-1 PRIMARY <derived4> ref key0 key0 5 v4.a 2
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v4,v2 where
-(v4.a=v2.b) and (v4.a=v4.b) and (v2.b<30);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v4.b = v4.a and v4.a < 30 and v4.a is not null",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "filesort": {
- "sort_key": "v1.a, v1.b",
- "temporary_table": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.b = v1.a and v1.a < 15 and v1.a < 30",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b = t1.a and t1.a < 15 and t1.a < 30"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived4>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["v4.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5 and t1.b < 30"
- }
- }
- }
- }
- }
- }
- }
-}
-# using embedded view : pushing the same conditions
-# using several derived tables : pushing in all tables
-# extracted or formula : pushing into WHERE using equalities
-# extracted and formula : pushing into WHERE using equalities
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v4,v2 where
-(v4.a=v2.b) and (v4.a=v4.b) and ((v2.b<30) or (v4.a>2));
-a b min_c a b max_c avg_c
-select * from v4,v2 where
-(v4.a=v2.b) and (v4.a=v4.b) and ((v2.b<30) or (v4.a>2));
-a b min_c a b max_c avg_c
-explain select * from v4,v2 where
-(v4.a=v2.b) and (v4.a=v4.b) and ((v2.b<30) or (v4.a>2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where
-1 PRIMARY <derived4> ref key0 key0 5 v4.a 2
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v4,v2 where
-(v4.a=v2.b) and (v4.a=v4.b) and ((v2.b<30) or (v4.a>2));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v4.b = v4.a and (v4.a < 30 or v4.a > 2) and v4.a is not null",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "filesort": {
- "sort_key": "v1.a, v1.b",
- "temporary_table": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.b = v1.a and v1.a < 15 and (v1.a < 30 or v1.a > 2)",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.b = t1.a and t1.a < 15 and (t1.a < 30 or t1.a > 2)"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived4>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["v4.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5 and (t1.b < 30 or t1.b > 2)"
- }
- }
- }
- }
- }
- }
- }
-}
-# using embedded view : pushing the same conditions
-# using several derived tables : pushing in all tables
-# extracted or formula : pushing into WHERE
-# conjunctive subformula : pushing into WHERE
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v4,v2 where
-(((v4.a<12) and (v4.b>13)) or (v4.a>10)) and
-(v4.min_c=v2.max_c) and (v4.min_c>100);
-a b min_c a b max_c avg_c
-6 20 315 6 20 315 279.3333
-8 33 404 8 33 404 213.6667
-select * from v4,v2 where
-(((v4.a<12) and (v4.b>13)) or (v4.a>10)) and
-(v4.min_c=v2.max_c) and (v4.min_c>100);
-a b min_c a b max_c avg_c
-6 20 315 6 20 315 279.3333
-8 33 404 8 33 404 213.6667
-explain select * from v4,v2 where
-(((v4.a<12) and (v4.b>13)) or (v4.a>10)) and
-(v4.min_c=v2.max_c) and (v4.min_c>100);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where
-1 PRIMARY <derived4> ref key0 key0 5 v4.min_c 2
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v4,v2 where
-(((v4.a<12) and (v4.b>13)) or (v4.a>10)) and
-(v4.min_c=v2.max_c) and (v4.min_c>100);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "(v4.a < 12 and v4.b > 13 or v4.a > 10) and v4.min_c > 100 and v4.min_c is not null",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "min_c > 100",
- "filesort": {
- "sort_key": "v1.a, v1.b",
- "temporary_table": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a < 15 and (v1.a < 12 and v1.b > 13 or v1.a > 10)",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 15 and (t1.a < 12 and t1.b > 13 or t1.a > 10)"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived4>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["max_c"],
- "ref": ["v4.min_c"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707 and max_c > 100",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5"
- }
- }
- }
- }
- }
- }
- }
-}
-# using embedded view : pushing the same conditions
-# using several derived tables : pushing only in one table
-# extracted or formula : pushing into WHERE
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v4,v2,t2 where
-(((v4.a<12) and (t2.b>13)) or (v4.a>10)) and
-(v4.min_c=t2.c) and (t2.c>100);
-a b min_c a b max_c avg_c a b c d
-6 20 315 6 20 315 279.3333 6 20 315 279
-6 20 315 8 33 404 213.6667 6 20 315 279
-select * from v4,v2,t2 where
-(((v4.a<12) and (t2.b>13)) or (v4.a>10)) and
-(v4.min_c=t2.c) and (t2.c>100);
-a b min_c a b max_c avg_c a b c d
-6 20 315 6 20 315 279.3333 6 20 315 279
-6 20 315 8 33 404 213.6667 6 20 315 279
-explain select * from v4,v2,t2 where
-(((v4.a<12) and (t2.b>13)) or (v4.a>10)) and
-(v4.min_c=t2.c) and (t2.c>100);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.c 2 Using where
-1 PRIMARY <derived4> ALL NULL NULL NULL NULL 20 Using join buffer (flat, BNL join)
-4 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from v4,v2,t2 where
-(((v4.a<12) and (t2.b>13)) or (v4.a>10)) and
-(v4.min_c=t2.c) and (t2.c>100);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.c > 100 and t2.c is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["min_c"],
- "ref": ["test.t2.c"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v4.a < 12 and t2.b > 13 or v4.a > 10",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "min_c > 100",
- "filesort": {
- "sort_key": "v1.a, v1.b",
- "temporary_table": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "v1.a < 15 and (v1.a < 12 or v1.a > 10)",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a < 15 and (t1.a < 12 or t1.a > 10)"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "having_condition": "max_c < 707",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t1.a > 5"
- }
- }
- }
- }
- }
- }
- }
-}
-drop view v1,v2,v3,v4;
-drop view v_union,v2_union,v3_union,v4_union;
-drop view v_double,v_char,v_decimal;
-drop table t1,t2,t1_double,t2_double,t1_char,t2_char,t1_decimal,t2_decimal;
-#
-# MDEV-14579: pushdown conditions into materialized views/derived tables
-# that are defined with EXIST or/and INTERSECT
-#
-create table t1 (a int, b int, c int);
-create table t2 (a int, b int, c int);
-insert into t1 values
-(1,21,345), (1,33,7), (8,33,114), (1,21,500), (1,19,117), (5,14,787),
-(8,33,123), (9,10,211), (5,16,207), (1,33,988), (5,27,132), (1,21,104),
-(6,20,309), (6,20,315), (1,21,101), (4,33,404), (9,10,800), (1,21,123);
-insert into t2 values
-(2,3,207), (1,16,909), (5,14,312),
-(5,33,207), (6,20,211), (1,19,132),
-(8,33,117), (3,21,231), (6,23,303);
-create view v1 as
-select a, b, min(c) as c from t1
-where t1.a<9 group by a,b having c < 300
-intersect
-select a, b, min(c) as c from t1
-where t1.b>10 group by a,b having c > 100;
-# using intersect in view definition
-# conjunctive subformulas : pushing into WHERE
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a<5);
-a b c a b c
-1 21 101 1 16 909
-1 19 117 1 16 909
-1 21 101 1 19 132
-1 19 117 1 19 132
-select * from v1,t2 where (v1.a=t2.a) and (v1.a<5);
-a b c a b c
-1 21 101 1 16 909
-1 19 117 1 16 909
-1 21 101 1 19 132
-1 19 117 1 19 132
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a<5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL INTERSECT RESULT <intersect2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a<5);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a < 5 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c < 300",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a < 5"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "having_condition": "c > 100",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a < 5"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using intersect in view definition
-# conjunctive subformulas : pushing into WHERE
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a=8);
-a b c a b c
-8 33 114 8 33 117
-select * from v1,t2 where (v1.a=t2.a) and (v1.a=8);
-a b c a b c
-8 33 114 8 33 117
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a=8);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL INTERSECT RESULT <intersect2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a=8);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a = 8"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "v1.a = 8"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c < 300",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a = 8"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "having_condition": "c > 100",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a = 8 and t1.b > 10"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using intersect in view definition
-# conjunctive subformulas : pushing into WHERE using equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (t2.a=8);
-a b c a b c
-8 33 114 8 33 117
-select * from v1,t2 where (v1.a=t2.a) and (t2.a=8);
-a b c a b c
-8 33 114 8 33 117
-explain select * from v1,t2 where (v1.a=t2.a) and (t2.a=8);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL INTERSECT RESULT <intersect2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (t2.a=8);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a = 8"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "v1.a = 8"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c < 300",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a = 8"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "having_condition": "c > 100",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a = 8 and t1.b > 10"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using intersect in view definition
-# conjunctive subformulas : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.c>200);
-a b c a b c
-5 16 207 5 14 312
-5 16 207 5 33 207
-select * from v1,t2 where (v1.a=t2.a) and (v1.c>200);
-a b c a b c
-5 16 207 5 14 312
-5 16 207 5 33 207
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.c>200);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL INTERSECT RESULT <intersect2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.c>200);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.c > 200",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c < 300 and c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "having_condition": "c > 100 and c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using intersect in view definition
-# conjunctive subformulas : pushing into WHERE
-# conjunctive subformulas : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a<5) and (v1.c>110);
-a b c a b c
-1 19 117 1 16 909
-1 19 117 1 19 132
-select * from v1,t2 where (v1.a=t2.a) and (v1.a<5) and (v1.c>110);
-a b c a b c
-1 19 117 1 16 909
-1 19 117 1 19 132
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a<5) and (v1.c>110);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL INTERSECT RESULT <intersect2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a<5) and (v1.c>110);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a < 5 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.c > 110",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c < 300 and c > 110",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a < 5"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "having_condition": "c > 100 and c > 110",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a < 5"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using intersect in view definition
-# extracted or formula : pushing into WHERE
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and ((v1.b>27) or (v1.b<19));
-a b c a b c
-5 16 207 5 14 312
-5 16 207 5 33 207
-8 33 114 8 33 117
-select * from v1,t2 where (v1.a=t2.a) and ((v1.b>27) or (v1.b<19));
-a b c a b c
-5 16 207 5 14 312
-5 16 207 5 33 207
-8 33 114 8 33 117
-explain select * from v1,t2 where (v1.a=t2.a) and ((v1.b>27) or (v1.b<19));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL INTERSECT RESULT <intersect2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and ((v1.b>27) or (v1.b<19));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.b > 27 or v1.b < 19",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c < 300",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and (t1.b > 27 or t1.b < 19)"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "having_condition": "c > 100",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and (t1.b > 27 or t1.b < 19)"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using intersect in view definition
-# extracted or formula : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-(v1.a=t2.a) and ((v1.c>200) or (v1.c<105));
-a b c a b c
-1 21 101 1 16 909
-5 16 207 5 14 312
-5 16 207 5 33 207
-1 21 101 1 19 132
-select * from v1,t2 where
-(v1.a=t2.a) and ((v1.c>200) or (v1.c<105));
-a b c a b c
-1 21 101 1 16 909
-5 16 207 5 14 312
-5 16 207 5 33 207
-1 21 101 1 19 132
-explain select * from v1,t2 where
-(v1.a=t2.a) and ((v1.c>200) or (v1.c<105));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL INTERSECT RESULT <intersect2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where
-(v1.a=t2.a) and ((v1.c>200) or (v1.c<105));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.c > 200 or v1.c < 105",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c < 300 and (c > 200 or c < 105)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "having_condition": "c > 100 and (c > 200 or c < 105)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using intersect in view definition
-# extracted or formula : pushing into WHERE
-# extracted or formula : pushing into HAVING using equalities
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-((v1.a>3) and (t2.c>110) and (v1.c=t2.c)) or
-((v1.a=1) and (v1.c<110));
-a b c a b c
-1 21 101 2 3 207
-1 21 101 1 16 909
-1 21 101 5 14 312
-1 21 101 5 33 207
-1 21 101 6 20 211
-1 21 101 1 19 132
-1 21 101 8 33 117
-1 21 101 3 21 231
-1 21 101 6 23 303
-5 16 207 2 3 207
-5 16 207 5 33 207
-5 27 132 1 19 132
-select * from v1,t2 where
-((v1.a>3) and (t2.c>110) and (v1.c=t2.c)) or
-((v1.a=1) and (v1.c<110));
-a b c a b c
-1 21 101 2 3 207
-1 21 101 1 16 909
-1 21 101 5 14 312
-1 21 101 5 33 207
-1 21 101 6 20 211
-1 21 101 1 19 132
-1 21 101 8 33 117
-1 21 101 3 21 231
-1 21 101 6 23 303
-5 16 207 2 3 207
-5 16 207 5 33 207
-5 27 132 1 19 132
-explain select * from v1,t2 where
-((v1.a>3) and (t2.c>110) and (v1.c=t2.c)) or
-((v1.a=1) and (v1.c<110));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL INTERSECT RESULT <intersect2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where
-((v1.a>3) and (t2.c>110) and (v1.c=t2.c)) or
-((v1.a=1) and (v1.c<110));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "v1.a > 3 or v1.a = 1 and v1.c < 110"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.c = t2.c and v1.a > 3 and t2.c > 110 or v1.a = 1 and v1.c < 110",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c < 300 and (t1.a > 3 and c > 110 or c < 110 and t1.a = 1)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and (t1.a > 3 or t1.a = 1)"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "having_condition": "c > 100 and (t1.a > 3 and c > 110 or c < 110 and t1.a = 1)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and (t1.a > 3 or t1.a = 1)"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using intersect in view definition
-# prepare of a query
-# conjunctive subformulas : pushing into WHERE
-# conjunctive subformulas : pushing into HAVING
-prepare stmt from "select * from v1,t2
- where (v1.a=t2.a) and (v1.a<5) and (v1.c>110);";
-execute stmt;
-a b c a b c
-1 19 117 1 16 909
-1 19 117 1 19 132
-execute stmt;
-a b c a b c
-1 19 117 1 16 909
-1 19 117 1 19 132
-deallocate prepare stmt;
-# using intersect in derived table definition
-# extracted or formula : pushing into WHERE using equalities
-# extracted or formula : pushing into HAVING
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select *
-from t2,
-(select a, b, min(c) as c from t1
-where t1.a<9 group by a,b having c < 300
-intersect
-select a, b, min(c) as c from t1
-where t1.b>10 group by a,b having c > 100) as d1
-where
-(d1.b=t2.b) and
-(((t2.b>13) and (t2.c=909)) or
-((d1.a<4) and (d1.c<200)));
-a b c a b c
-1 16 909 5 16 207
-1 19 132 1 19 117
-3 21 231 1 21 101
-select *
-from t2,
-(select a, b, min(c) as c from t1
-where t1.a<9 group by a,b having c < 300
-intersect
-select a, b, min(c) as c from t1
-where t1.b>10 group by a,b having c > 100) as d1
-where
-(d1.b=t2.b) and
-(((t2.b>13) and (t2.c=909)) or
-((d1.a<4) and (d1.c<200)));
-a b c a b c
-1 16 909 5 16 207
-1 19 132 1 19 117
-3 21 231 1 21 101
-explain select *
-from t2,
-(select a, b, min(c) as c from t1
-where t1.a<9 group by a,b having c < 300
-intersect
-select a, b, min(c) as c from t1
-where t1.b>10 group by a,b having c > 100) as d1
-where
-(d1.b=t2.b) and
-(((t2.b>13) and (t2.c=909)) or
-((d1.a<4) and (d1.c<200)));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.b 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL INTERSECT RESULT <intersect2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select *
-from t2,
-(select a, b, min(c) as c from t1
-where t1.a<9 group by a,b having c < 300
-intersect
-select a, b, min(c) as c from t1
-where t1.b>10 group by a,b having c > 100) as d1
-where
-(d1.b=t2.b) and
-(((t2.b>13) and (t2.c=909)) or
-((d1.a<4) and (d1.c<200)));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.b is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["test.t2.b"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t2.c = 909 and t2.b > 13 or d1.a < 4 and d1.c < 200",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c < 300 and (t1.b > 13 or t1.a < 4 and c < 200)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and (t1.b > 13 or t1.a < 4)"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "having_condition": "c > 100 and (t1.b > 13 or t1.a < 4 and c < 200)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and (t1.b > 13 or t1.a < 4)"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop view v1;
-create view v1 as
-select a, b, max(c) as c from t1
-where t1.a<9 group by a,b having c > 200
-except
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300;
-# using except in view definition
-# conjunctive subformulas : pushing into WHERE
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a<5);
-a b c a b c
-1 33 988 1 16 909
-1 21 500 1 16 909
-1 33 988 1 19 132
-1 21 500 1 19 132
-select * from v1,t2 where (v1.a=t2.a) and (v1.a<5);
-a b c a b c
-1 33 988 1 16 909
-1 21 500 1 16 909
-1 33 988 1 19 132
-1 21 500 1 19 132
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a<5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL EXCEPT RESULT <except2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a<5);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a < 5 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a < 5"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "having_condition": "c < 300",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a < 5"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using except in view definition
-# conjunctive subformulas : pushing into WHERE
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a=6);
-a b c a b c
-6 20 315 6 20 211
-6 20 315 6 23 303
-select * from v1,t2 where (v1.a=t2.a) and (v1.a=6);
-a b c a b c
-6 20 315 6 20 211
-6 20 315 6 23 303
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a=6);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL EXCEPT RESULT <except2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a=6);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a = 6"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "v1.a = 6"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 200",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a = 6"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "having_condition": "c < 300",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a = 6 and t1.b > 10"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using except in view definition
-# conjunctive subformulas : pushing into WHERE using equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (t2.a=6);
-a b c a b c
-6 20 315 6 20 211
-6 20 315 6 23 303
-select * from v1,t2 where (v1.a=t2.a) and (t2.a=6);
-a b c a b c
-6 20 315 6 20 211
-6 20 315 6 23 303
-explain select * from v1,t2 where (v1.a=t2.a) and (t2.a=6);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL EXCEPT RESULT <except2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (t2.a=6);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a = 6"
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "v1.a = 6"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 200",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a = 6"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "having_condition": "c < 300",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a = 6 and t1.b > 10"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using except in view definition
-# conjunctive subformulas : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.c>500);
-a b c a b c
-1 33 988 1 16 909
-5 14 787 5 14 312
-5 14 787 5 33 207
-1 33 988 1 19 132
-select * from v1,t2 where (v1.a=t2.a) and (v1.c>500);
-a b c a b c
-1 33 988 1 16 909
-5 14 787 5 14 312
-5 14 787 5 33 207
-1 33 988 1 19 132
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.c>500);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL EXCEPT RESULT <except2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.c>500);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.c > 500",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 200 and c > 500",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "having_condition": "c < 300 and c > 500",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using except in view definition
-# conjunctive subformulas : pushing into WHERE
-# conjunctive subformulas : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a<5) and (v1.c>500);
-a b c a b c
-1 33 988 1 16 909
-1 33 988 1 19 132
-select * from v1,t2 where (v1.a=t2.a) and (v1.a<5) and (v1.c>500);
-a b c a b c
-1 33 988 1 16 909
-1 33 988 1 19 132
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a<5) and (v1.c>500);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL EXCEPT RESULT <except2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a<5) and (v1.c>500);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a < 5 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.c > 500",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 200 and c > 500",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a < 5"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "having_condition": "c < 300 and c > 500",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a < 5"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using except in view definition
-# extracted or formula : pushing into WHERE
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and ((v1.b>27) or (v1.b<19));
-a b c a b c
-1 33 988 1 16 909
-5 14 787 5 14 312
-5 14 787 5 33 207
-1 33 988 1 19 132
-select * from v1,t2 where (v1.a=t2.a) and ((v1.b>27) or (v1.b<19));
-a b c a b c
-1 33 988 1 16 909
-5 14 787 5 14 312
-5 14 787 5 33 207
-1 33 988 1 19 132
-explain select * from v1,t2 where (v1.a=t2.a) and ((v1.b>27) or (v1.b<19));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL EXCEPT RESULT <except2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and ((v1.b>27) or (v1.b<19));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.b > 27 or v1.b < 19",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and (t1.b > 27 or t1.b < 19)"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "having_condition": "c < 300",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and (t1.b > 27 or t1.b < 19)"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using except in view definition
-# extracted or formula : pushing into HAVING
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-(v1.a=t2.a) and ((v1.c<400) or (v1.c>800));
-a b c a b c
-1 33 988 1 16 909
-6 20 315 6 20 211
-1 33 988 1 19 132
-6 20 315 6 23 303
-select * from v1,t2 where
-(v1.a=t2.a) and ((v1.c<400) or (v1.c>800));
-a b c a b c
-1 33 988 1 16 909
-6 20 315 6 20 211
-1 33 988 1 19 132
-6 20 315 6 23 303
-explain select * from v1,t2 where
-(v1.a=t2.a) and ((v1.c<400) or (v1.c>800));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL EXCEPT RESULT <except2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where
-(v1.a=t2.a) and ((v1.c<400) or (v1.c>800));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.c < 400 or v1.c > 800",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 200 and (c < 400 or c > 800)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "having_condition": "c < 300 and (c < 400 or c > 800)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using except in view definition
-# extracted or formula : pushing into WHERE
-# extracted or formula : pushing into HAVING using equalities
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where
-(v1.c=t2.c) and
-((v1.a>1) and (t2.c<500)) or
-((v1.a=1) and (v1.c>500));
-a b c a b c
-1 33 988 2 3 207
-1 33 988 1 16 909
-1 33 988 5 14 312
-1 33 988 5 33 207
-1 33 988 6 20 211
-1 33 988 1 19 132
-1 33 988 8 33 117
-1 33 988 3 21 231
-1 33 988 6 23 303
-select * from v1,t2 where
-(v1.c=t2.c) and
-((v1.a>1) and (t2.c<500)) or
-((v1.a=1) and (v1.c>500));
-a b c a b c
-1 33 988 2 3 207
-1 33 988 1 16 909
-1 33 988 5 14 312
-1 33 988 5 33 207
-1 33 988 6 20 211
-1 33 988 1 19 132
-1 33 988 8 33 117
-1 33 988 3 21 231
-1 33 988 6 23 303
-explain select * from v1,t2 where
-(v1.c=t2.c) and
-((v1.a>1) and (t2.c<500)) or
-((v1.a=1) and (v1.c>500));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL EXCEPT RESULT <except2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where
-(v1.c=t2.c) and
-((v1.a>1) and (t2.c<500)) or
-((v1.a=1) and (v1.c>500));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "v1.a > 1 or v1.a = 1 and v1.c > 500"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.c = t2.c and v1.a > 1 and t2.c < 500 or v1.a = 1 and v1.c > 500",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 200 and (t1.a > 1 and c < 500 or c > 500 and t1.a = 1)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and (t1.a > 1 or t1.a = 1)"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "having_condition": "c < 300 and (t1.a > 1 and c < 500 or c > 500 and t1.a = 1)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and (t1.a > 1 or t1.a = 1)"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-# using except in view definition
-# prepare of a query
-# conjunctive subformulas : pushing into WHERE
-# conjunctive subformulas : pushing into HAVING
-prepare stmt from "select * from v1,t2
- where (v1.a=t2.a) and (v1.a<5) and (v1.c>500);";
-execute stmt;
-a b c a b c
-1 33 988 1 16 909
-1 33 988 1 19 132
-execute stmt;
-a b c a b c
-1 33 988 1 16 909
-1 33 988 1 19 132
-deallocate prepare stmt;
-# using except in view definition
-# extracted or formula : pushing into WHERE using equalities
-# extracted or formula : pushing into HAVING
-# pushing equalities
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select *
-from t2,
-(select a, b, max(c) as c from t1
-where t1.a<9 group by a,b having c > 200
-except
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300) as d1
-where
-(d1.b=t2.b) and
-(((t2.b>13) and (t2.c=988)) or
-((d1.a>4) and (d1.c>500)));
-a b c a b c
-5 14 312 5 14 787
-select *
-from t2,
-(select a, b, max(c) as c from t1
-where t1.a<9 group by a,b having c > 200
-except
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300) as d1
-where
-(d1.b=t2.b) and
-(((t2.b>13) and (t2.c=988)) or
-((d1.a>4) and (d1.c>500)));
-a b c a b c
-5 14 312 5 14 787
-explain select *
-from t2,
-(select a, b, max(c) as c from t1
-where t1.a<9 group by a,b having c > 200
-except
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300) as d1
-where
-(d1.b=t2.b) and
-(((t2.b>13) and (t2.c=988)) or
-((d1.a>4) and (d1.c>500)));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.b 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL EXCEPT RESULT <except2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select *
-from t2,
-(select a, b, max(c) as c from t1
-where t1.a<9 group by a,b having c > 200
-except
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300) as d1
-where
-(d1.b=t2.b) and
-(((t2.b>13) and (t2.c=988)) or
-((d1.a>4) and (d1.c>500)));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.b is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["test.t2.b"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t2.c = 988 and t2.b > 13 or d1.a > 4 and d1.c > 500",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 200 and (t1.b > 13 or t1.a > 4 and c > 500)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and (t1.b > 13 or t1.a > 4)"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "having_condition": "c < 300 and (t1.b > 13 or t1.a > 4 and c > 500)",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and (t1.b > 13 or t1.a > 4)"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop view v1;
-# using union and intersect in view definition
-# conjunctive subformulas : pushing into WHERE and HAVING
-create view v1 as
-select a, b, min(c) as c from t1
-where t1.a<9 group by a,b having c > 200
-union
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300
-intersect
-select a, b, max(c) as c from t1
-where t1.a>3 group by a,b having c < 530;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a>5) and (v1.c>200);
-a b c a b c
-6 20 309 6 20 211
-6 20 309 6 23 303
-select * from v1,t2 where (v1.a=t2.a) and (v1.a>5) and (v1.c>200);
-a b c a b c
-6 20 309 6 20 211
-6 20 309 6 23 303
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a>5) and (v1.c>200);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 3 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 UNION <derived4> ALL NULL NULL NULL NULL 18 Using where
-4 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-5 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL INTERSECT RESULT <intersect4,5> ALL NULL NULL NULL NULL NULL
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a>5) and (v1.c>200);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a > 5 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 3,
- "filtered": 100,
- "attached_condition": "v1.c > 200",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 200 and c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a > 5"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "__3.a > 5 and __3.c > 200",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect4,5>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 4,
- "having_condition": "c < 300 and c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a > 5"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 5,
- "operation": "INTERSECT",
- "having_condition": "c < 530 and c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a > 3 and t1.a > 5"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop view v1;
-# using union and intersect in view definition
-# conjunctive subformulas : pushing into WHERE and HAVING
-create view v1 as
-select a, b, min(c) as c from t1
-where t1.a<9 group by a,b having c > 200
-intersect
-select a, b, max(c) as c from t1
-where t1.a>3 group by a,b having c < 500
-union
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<200);
-a b c a b c
-5 27 132 5 14 312
-5 27 132 5 33 207
-8 33 123 8 33 117
-select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<200);
-a b c a b c
-5 27 132 5 14 312
-5 27 132 5 33 207
-8 33 123 8 33 117
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<200);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 3 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-4 UNION t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL UNIT RESULT <unit2,3,4> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<200);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a > 4 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 3,
- "filtered": 100,
- "attached_condition": "v1.c < 200",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<unit2,3,4>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 200 and c < 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a > 4"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "having_condition": "c < 500 and c < 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a > 3 and t1.a > 4"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 4,
- "operation": "UNION",
- "having_condition": "c < 300 and c < 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a > 4"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop view v1;
-# using union and except in view definition
-# conjunctive subformulas : pushing into WHERE and HAVING
-create view v1 as
-select a, b, min(c) as c from t1
-where t1.a<9 group by a,b having c > 200
-union
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300
-except
-select a, b, max(c) as c from t1
-where t1.a>3 group by a,b having c < 530;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a>5) and (v1.c>200);
-a b c a b c
-6 20 309 6 20 211
-6 20 309 6 23 303
-select * from v1,t2 where (v1.a=t2.a) and (v1.a>5) and (v1.c>200);
-a b c a b c
-6 20 309 6 20 211
-6 20 309 6 23 303
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a>5) and (v1.c>200);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 3 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 UNION t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-4 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL UNIT RESULT <unit2,3,4> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a>5) and (v1.c>200);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a > 5 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 3,
- "filtered": 100,
- "attached_condition": "v1.c > 200",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<unit2,3,4>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 200 and c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a > 5"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "having_condition": "c < 300 and c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a > 5"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 4,
- "operation": "EXCEPT",
- "having_condition": "c < 530 and c > 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a > 3 and t1.a > 5"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop view v1;
-# using union and except in view definition
-# conjunctive subformulas : pushing into WHERE and HAVING
-create view v1 as
-select a, b, min(c) as c from t1
-where t1.a<9 group by a,b having c > 200
-except
-select a, b, max(c) as c from t1
-where t1.a>3 group by a,b having c < 500
-union
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<200);
-a b c a b c
-5 27 132 5 14 312
-5 27 132 5 33 207
-8 33 123 8 33 117
-select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<200);
-a b c a b c
-5 27 132 5 14 312
-5 27 132 5 33 207
-8 33 123 8 33 117
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<200);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 3 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-4 UNION t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL UNIT RESULT <unit2,3,4> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<200);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a > 4 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 3,
- "filtered": 100,
- "attached_condition": "v1.c < 200",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<unit2,3,4>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 200 and c < 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a > 4"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "having_condition": "c < 500 and c < 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a > 3 and t1.a > 4"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 4,
- "operation": "UNION",
- "having_condition": "c < 300 and c < 200",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a > 4"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop view v1;
-# using except and intersect in view definition
-# conjunctive subformulas : pushing into WHERE and HAVING
-create view v1 as
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300
-intersect
-select a, b, max(c) as c from t1
-where t1.a<7 group by a,b having c < 500
-except
-select a, b, max(c) as c from t1
-where t1.a<9 group by a,b having c > 150;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<150);
-a b c a b c
-5 27 132 5 14 312
-5 27 132 5 33 207
-select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<150);
-a b c a b c
-5 27 132 5 14 312
-5 27 132 5 33 207
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<150);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-4 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL UNIT RESULT <unit2,3,4> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<150);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a > 4 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.c < 150",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<unit2,3,4>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c < 300 and c < 150",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a > 4"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "having_condition": "c < 500 and c < 150",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 7 and t1.a > 4"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 4,
- "operation": "EXCEPT",
- "having_condition": "c > 150 and c < 150",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a > 4"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop view v1;
-# using except and intersect in view definition
-# conjunctive subformulas : pushing into WHERE and HAVING
-create view v1 as
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300
-except
-select a, b, max(c) as c from t1
-where t1.a<9 group by a,b having c > 150
-intersect
-select a, b, max(c) as c from t1
-where t1.a<7 group by a,b having c < 500;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<130);
-a b c a b c
-8 33 123 8 33 117
-select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<130);
-a b c a b c
-8 33 123 8 33 117
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<130);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 EXCEPT <derived4> ALL NULL NULL NULL NULL 18 Using where
-4 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-5 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL INTERSECT RESULT <intersect4,5> ALL NULL NULL NULL NULL NULL
-NULL EXCEPT RESULT <except2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<130);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a > 4 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.c < 130",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c < 300 and c < 130",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a > 4"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "__3.a > 4 and __3.c < 130",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect4,5>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 4,
- "having_condition": "c > 150 and c < 130",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a > 4"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 5,
- "operation": "INTERSECT",
- "having_condition": "c < 500 and c < 130",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 7 and t1.a > 4"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop view v1;
-# using except, intersect and union in view definition
-# conjunctive subformulas : pushing into WHERE and HAVING
-create view v1 as
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300
-except
-select a, b, max(c) as c from t1
-where t1.a<9 group by a,b having c > 150
-intersect
-select a, b, max(c) as c from t1
-where t1.a<7 group by a,b having c < 500
-union
-select a, b, max(c) as c from t1
-where t1.a<7 group by a,b having c < 120;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<130);
-a b c a b c
-8 33 123 8 33 117
-select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<130);
-a b c a b c
-8 33 123 8 33 117
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<130);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 3 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 EXCEPT <derived4> ALL NULL NULL NULL NULL 18 Using where
-4 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-5 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL INTERSECT RESULT <intersect4,5> ALL NULL NULL NULL NULL NULL
-6 UNION t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL UNIT RESULT <unit2,3,6> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.c<130);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a > 4 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 3,
- "filtered": 100,
- "attached_condition": "v1.c < 130",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<unit2,3,6>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c < 300 and c < 130",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a > 4"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "__3.a > 4 and __3.c < 130",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect4,5>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 4,
- "having_condition": "c > 150 and c < 130",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a > 4"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 5,
- "operation": "INTERSECT",
- "having_condition": "c < 500 and c < 130",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 7 and t1.a > 4"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 6,
- "operation": "UNION",
- "having_condition": "c < 120 and c < 130",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 7 and t1.a > 4"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop view v1;
-# using intersect in view definition
-# using embedded view
-# conjunctive subformulas : pushing into WHERE and HAVING
-create view v1 as
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300
-intersect
-select a, b, max(c) as c from t1
-where t1.a<9 group by a,b having c > 120;
-create view v2 as
-select a, b, max(c) as c from v1
-where v1.a<7 group by a,b;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v2,t2 where (v2.a=t2.a) and (v2.a>4) and (v2.c<150);
-a b c a b c
-5 27 132 5 14 312
-5 27 132 5 33 207
-select * from v2,t2 where (v2.a=t2.a) and (v2.a>4) and (v2.c<150);
-a b c a b c
-5 27 132 5 14 312
-5 27 132 5 33 207
-explain select * from v2,t2 where (v2.a=t2.a) and (v2.a>4) and (v2.c<150);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-4 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL INTERSECT RESULT <intersect3,4> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v2,t2 where (v2.a=t2.a) and (v2.a>4) and (v2.c<150);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a > 4 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v2.c < 150",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "c < 150",
- "filesort": {
- "sort_key": "v1.a, v1.b",
- "temporary_table": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "v1.a < 7 and v1.a > 4",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect3,4>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 3,
- "having_condition": "c < 300",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a < 7 and t1.a > 4"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 4,
- "operation": "INTERSECT",
- "having_condition": "c > 120",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a < 7 and t1.a > 4"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
-}
-drop view v1,v2;
-# using except in view definition
-# using embedded view
-# conjunctive subformulas : pushing into WHERE and HAVING
-create view v1 as
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c < 300
-except
-select a, b, max(c) as c from t1
-where t1.a<9 group by a,b having c > 150;
-create view v2 as
-select a, b, max(c) as c from v1
-where v1.a<7 group by a,b;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v2,t2 where (v2.a=t2.a) and (v2.a>4) and (v2.c<150);
-a b c a b c
-5 27 132 5 14 312
-5 27 132 5 33 207
-select * from v2,t2 where (v2.a=t2.a) and (v2.a>4) and (v2.c<150);
-a b c a b c
-5 27 132 5 14 312
-5 27 132 5 33 207
-explain select * from v2,t2 where (v2.a=t2.a) and (v2.a>4) and (v2.c<150);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-4 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL EXCEPT RESULT <except3,4> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v2,t2 where (v2.a=t2.a) and (v2.a>4) and (v2.c<150);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a > 4 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v2.c < 150",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "c < 150",
- "filesort": {
- "sort_key": "v1.a, v1.b",
- "temporary_table": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "v1.a < 7 and v1.a > 4",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except3,4>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 3,
- "having_condition": "c < 300",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a < 7 and t1.a > 4"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 4,
- "operation": "EXCEPT",
- "having_condition": "c > 150",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a < 7 and t1.a > 4"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
-}
-drop view v1,v2;
-# using intersect in view definition
-# conditions are pushed in different parts of selects
-# conjunctive subformulas : pushing into WHERE and HAVING
-create view v1 as
-select a, b, max(c) as c from t1
-where t1.a<9 group by a having c > 300
-intersect
-select a, b, max(c) as c from t1
-where t1.b<21 group by b having c > 200;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.b>12) and (v1.c<450);
-a b c a b c
-6 20 315 6 20 211
-6 20 315 6 23 303
-select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.b>12) and (v1.c<450);
-a b c a b c
-6 20 315 6 20 211
-6 20 315 6 23 303
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.b>12) and (v1.c<450);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL INTERSECT RESULT <intersect2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a>4) and (v1.b>12) and (v1.c<450);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a > 4 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.b > 12 and v1.c < 450",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 300 and t1.b > 12 and c < 450",
- "filesort": {
- "sort_key": "t1.a",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a > 4"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "having_condition": "c > 200 and t1.a > 4 and c < 450",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b < 21 and t1.b > 12"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop view v1;
-# using except in view definition
-# conditions are pushed in different parts of selects
-# conjunctive subformulas : pushing into WHERE and HAVING
-create view v1 as
-select a, b, max(c) as c from t1
-where t1.b>20 group by a having c > 300
-except
-select a, b, max(c) as c from t1
-where t1.a<7 group by b having c > 150;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a<2) and (v1.b<30) and (v1.c>450);
-a b c a b c
-1 21 988 1 16 909
-1 21 988 1 19 132
-select * from v1,t2 where (v1.a=t2.a) and (v1.a<2) and (v1.b<30) and (v1.c>450);
-a b c a b c
-1 21 988 1 16 909
-1 21 988 1 19 132
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a<2) and (v1.b<30) and (v1.c>450);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL EXCEPT RESULT <except2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a<2) and (v1.b<30) and (v1.c>450);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a < 2 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.b < 30 and v1.c > 450",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 300 and t1.b < 30 and c > 450",
- "filesort": {
- "sort_key": "t1.a",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 20 and t1.a < 2"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "having_condition": "c > 150 and t1.a < 2 and c > 450",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 7 and t1.b < 30"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop view v1;
-# using except and union in view definition
-# conditions are pushed in different parts of selects
-# conjunctive subformulas : pushing into HAVING
-# extracted or formula : pushing into WHERE
-# extracted or formula : pushing into HAVING
-create view v1 as
-select a, b, max(c) as c from t1
-where t1.b>20 group by a having c > 300
-except
-select a, b, max(c) as c from t1
-where t1.a<7 group by b having c > 150;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and ((v1.a<2) or (v1.a<5)) and (v1.c>450);
-a b c a b c
-1 21 988 1 16 909
-1 21 988 1 19 132
-select * from v1,t2 where (v1.a=t2.a) and ((v1.a<2) or (v1.a<5)) and (v1.c>450);
-a b c a b c
-1 21 988 1 16 909
-1 21 988 1 19 132
-explain select * from v1,t2 where (v1.a=t2.a) and ((v1.a<2) or (v1.a<5)) and (v1.c>450);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 EXCEPT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL EXCEPT RESULT <except2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and ((v1.a<2) or (v1.a<5)) and (v1.c>450);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "(t2.a < 2 or t2.a < 5) and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.c > 450",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 300 and c > 450",
- "filesort": {
- "sort_key": "t1.a",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 20 and (t1.a < 2 or t1.a < 5)"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "having_condition": "c > 150 and (t1.a < 2 or t1.a < 5) and c > 450",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 7"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop view v1;
-# using union and intersect in view definition
-# conditions are pushed in different parts of selects
-# conjunctive subformulas : pushing into WHERE and HAVING
-create view v1 as
-select a, b, max(c) as c from t1
-where t1.a<9 group by a having c > 100
-intersect
-select a, b, max(c) as c from t1
-where t1.a>3 group by b having c < 800
-union
-select a, b, max(c) as c from t1
-where t1.b>10 group by a,b having c > 300;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.a=t2.a) and (v1.a>1) and (v1.b > 12) and (v1.c>400);
-a b c a b c
-5 14 787 5 14 312
-5 14 787 5 33 207
-select * from v1,t2 where (v1.a=t2.a) and (v1.a>1) and (v1.b > 12) and (v1.c>400);
-a b c a b c
-5 14 787 5 14 312
-5 14 787 5 33 207
-explain select * from v1,t2 where (v1.a=t2.a) and (v1.a>1) and (v1.b > 12) and (v1.c>400);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 3 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-3 INTERSECT t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-4 UNION t1 ALL NULL NULL NULL NULL 18 Using where; Using temporary; Using filesort
-NULL UNIT RESULT <unit2,3,4> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.a=t2.a) and (v1.a>1) and (v1.b > 12) and (v1.c>400);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.a > 1 and t2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 3,
- "filtered": 100,
- "attached_condition": "v1.b > 12 and v1.c > 400",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<unit2,3,4>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "c > 100 and t1.b > 12 and c > 400",
- "filesort": {
- "sort_key": "t1.a",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a < 9 and t1.a > 1"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "having_condition": "c < 800 and t1.a > 1 and c > 400",
- "filesort": {
- "sort_key": "t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.a > 3 and t1.b > 12"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 4,
- "operation": "UNION",
- "having_condition": "c > 300 and c > 400",
- "filesort": {
- "sort_key": "t1.a, t1.b",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 18,
- "filtered": 100,
- "attached_condition": "t1.b > 10 and t1.a > 1 and t1.b > 12"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop view v1;
-create table t3 (a int, b int, c int);
-insert into t3 values
-(1,21,345), (2,33,7), (8,33,114), (3,21,500), (1,19,107), (5,14,787),
-(4,33,123), (9,10,211), (11,16,207), (10,33,988), (5,27,132), (12,21,104),
-(6,20,309), (16,20,315), (16,21,101), (18,33,404), (19,10,800), (10,21,123),
-(17,11,708), (6,20,214);
-create index i1 on t3(a);
-# conjunctive subformulas : pushing into WHERE
-# pushed condition gives range access
-create view v1 as
-select a, b, max(c) as max_c from t3
-where a>0 group by a;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.b=t2.b) and (v1.a<5);
-a b max_c a b c
-4 33 123 5 33 207
-2 33 7 5 33 207
-4 33 123 8 33 117
-2 33 7 8 33 117
-3 21 500 3 21 231
-1 21 345 3 21 231
-select * from v1,t2 where (v1.b=t2.b) and (v1.a<5);
-a b max_c a b c
-1 21 345 3 21 231
-2 33 7 5 33 207
-2 33 7 8 33 117
-3 21 500 3 21 231
-4 33 123 5 33 207
-4 33 123 8 33 117
-explain select * from v1,t2 where (v1.b=t2.b) and (v1.a<5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t3 range i1 i1 5 NULL 5 Using index condition
-explain format=json select * from v1,t2 where (v1.b=t2.b) and (v1.a<5);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 5,
- "filtered": 80,
- "attached_condition": "v1.a < 5"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "v1.b = t2.b",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t3",
- "access_type": "range",
- "possible_keys": ["i1"],
- "key": "i1",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 5,
- "filtered": 100,
- "index_condition": "t3.a > 0 and t3.a < 5"
- }
- }
- }
- }
- }
-}
-drop view v1;
-# using union in view definition
-# conjunctive subformulas : pushing into WHERE
-# pushed condition gives range access
-create view v1 as
-select a, b, max(c) as c from t3
-where t3.a>1 group by a
-union
-select a, b, max(c) as c from t3
-where t3.a>2 group by a;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.b=t2.b) and (v1.a<4);
-a b c a b c
-2 33 7 5 33 207
-2 33 7 8 33 117
-3 21 500 3 21 231
-select * from v1,t2 where (v1.b=t2.b) and (v1.a<4);
-a b c a b c
-2 33 7 5 33 207
-2 33 7 8 33 117
-3 21 500 3 21 231
-explain select * from v1,t2 where (v1.b=t2.b) and (v1.a<4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t3 range i1 i1 5 NULL 2 Using index condition
-3 UNION t3 range i1 i1 5 NULL 1 Using index condition
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.b=t2.b) and (v1.a<4);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "v1.a < 4",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t3",
- "access_type": "range",
- "possible_keys": ["i1"],
- "key": "i1",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 2,
- "filtered": 100,
- "index_condition": "t3.a > 1 and t3.a < 4"
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "table": {
- "table_name": "t3",
- "access_type": "range",
- "possible_keys": ["i1"],
- "key": "i1",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 1,
- "filtered": 100,
- "index_condition": "t3.a > 2 and t3.a < 4"
- }
- }
- }
- ]
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t2.b = v1.b"
- }
- }
-}
-drop view v1;
-# using union in view definition
-# conjunctive subformulas : pushing into WHERE
-# pushed condition gives range access in one of the selects
-create view v1 as
-select a, b, max(c) as c from t3
-where t3.a>1 group by a
-union
-select a, b, max(c) as c from t3
-where t3.b<21 group by b;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from v1,t2 where (v1.b=t2.b) and (v1.a<3);
-a b c a b c
-2 33 7 5 33 207
-1 19 107 1 19 132
-2 33 7 8 33 117
-select * from v1,t2 where (v1.b=t2.b) and (v1.a<3);
-a b c a b c
-2 33 7 5 33 207
-1 19 107 1 19 132
-2 33 7 8 33 117
-explain select * from v1,t2 where (v1.b=t2.b) and (v1.a<3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.b 2 Using where
-2 DERIVED t3 range i1 i1 5 NULL 1 Using index condition
-3 UNION t3 ALL NULL NULL NULL NULL 20 Using where; Using temporary; Using filesort
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-explain format=json select * from v1,t2 where (v1.b=t2.b) and (v1.a<3);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.b is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["test.t2.b"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.a < 3",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t3",
- "access_type": "range",
- "possible_keys": ["i1"],
- "key": "i1",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 1,
- "filtered": 100,
- "index_condition": "t3.a > 1 and t3.a < 3"
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "having_condition": "t3.a < 3",
- "filesort": {
- "sort_key": "t3.b",
- "temporary_table": {
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t3.b < 21"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-drop view v1;
-alter table t3 drop index i1;
-drop table t1,t2,t3;
-#
-# MDEV-10782: condition extracted from a multiple equality
-# pushed into HAVING
-#
-CREATE TABLE t1 (i int);
-INSERT INTO t1 VALUES (1),(2);
-EXPLAIN EXTENDED
-SELECT *
-FROM ( SELECT * FROM ( SELECT MIN(i) as f FROM t1 ) sq1 ) AS sq2
-WHERE f = 8;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 /* select#1 */ select `sq1`.`f` AS `f` from (/* select#3 */ select min(`test`.`t1`.`i`) AS `f` from `test`.`t1` having `f` = 8) `sq1` where `sq1`.`f` = 8
-SELECT *
-FROM ( SELECT * FROM ( SELECT MIN(i) as f FROM t1 ) sq1 ) AS sq2
-WHERE f = 8;
-f
-SELECT *
-FROM ( SELECT * FROM ( SELECT MIN(i) as f FROM t1 ) sq1 ) AS sq2
-WHERE f = 1;
-f
-1
-DROP TABLE t1;
-#
-# MDEV-10783: pushdown into constant view
-#
-CREATE TABLE t1 (i int) ENGINE=MyISAM;
-CREATE VIEW v AS SELECT 5;
-SELECT * FROM t1 WHERE 1 IN ( SELECT * FROM v );
-i
-DROP VIEW v;
-DROP TABLE t1;
-#
-# MDEV-10785: second execution of a query with condition
-# pushed into view
-#
-CREATE TABLE t1 (i int);
-CREATE VIEW v1 AS SELECT i FROM t1 WHERE i < 5;
-CREATE FUNCTION f (in1 int) RETURNS int RETURN in1;
-CREATE VIEW v2 AS SELECT * FROM v1 GROUP BY i;
-PREPARE stmt FROM "SELECT * FROM v2 WHERE f(0) <> 2";
-EXECUTE stmt;
-i
-EXECUTE stmt;
-i
-DROP FUNCTION f;
-DROP VIEW v2,v1;
-DROP TABLE t1;
-#
-# MDEV-10884: condition pushdown into derived specified by
-# 1. unit with SELECT containing ORDER BY ... LIMIT
-# 2. unit containing global ORDER BY ... LIMIT
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-select a from t1 order by a limit 5;
-a
-0
-1
-2
-3
-4
-set statement optimizer_switch='condition_pushdown_for_derived=off' for
-select * from (select a from t1 order by a limit 5) t where t.a not in (1,2,3);
-a
-0
-4
-set statement optimizer_switch='condition_pushdown_for_derived=on' for
-select * from (select a from t1 order by a limit 5) t where t.a not in (1,2,3);
-a
-0
-4
-select a from t1 where a < 4 union select a from t1 where a > 5
-order by a limit 5;
-a
-0
-1
-2
-3
-6
-set statement optimizer_switch='condition_pushdown_for_derived=off' for
-select * from
-(select a from t1 where a < 4 union select a from t1 where a > 5
-order by a limit 5) t where t.a not in (2,9);
-a
-0
-1
-3
-6
-set statement optimizer_switch='condition_pushdown_for_derived=on' for
-select * from
-(select a from t1 where a < 4 union select a from t1 where a > 5
-order by a limit 5) t where t.a not in (2,9);
-a
-0
-1
-3
-6
-drop table t1;
-#
-# MDEV-11072: pushdown of the condition obtained
-# after constant row substitution
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-CREATE OR REPLACE VIEW v2 AS SELECT * FROM t2;
-CREATE TABLE t3 (c INT) ENGINE=MyISAM;
-CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v3 AS SELECT * FROM t3;
-SELECT * FROM t1 WHERE a IN (
-SELECT b FROM v2 WHERE b < a OR b IN (
-SELECT c FROM v3 WHERE c = a
-)
-);
-a
-INSERT INTO t1 VALUES (2);
-INSERT INTO t2 VALUES (3), (2);
-INSERT INTO t3 VALUES (4), (1), (2), (7);
-SELECT * FROM t1 WHERE a IN (
-SELECT b FROM v2 WHERE b < a OR b IN (
-SELECT c FROM v3 WHERE c = a
-)
-);
-a
-2
-EXPLAIN FORMAT=JSON
-SELECT * FROM t1 WHERE a IN (
-SELECT b FROM v2 WHERE b < a OR b IN (
-SELECT c FROM v3 WHERE c = a
-)
-);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "const_condition": "0 or <in_optimizer>(2,<exists>(subquery#3))",
- "table": {
- "table_name": "t1",
- "access_type": "system",
- "rows": 1,
- "filtered": 100
- },
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t2.b = 2",
- "first_match": "t1"
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "<derived5>",
- "access_type": "index_subquery",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["c"],
- "ref": ["func"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 5,
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "rows": 4,
- "filtered": 100,
- "attached_condition": "t3.c = 2"
- }
- }
- }
- }
- }
- }
- ]
- }
-}
-CREATE TABLE t4 (d INT, e INT) ENGINE=MyISAM;
-INSERT INTO t4 VALUES (1,10),(3,11),(2,10),(2,20),(3,21);
-CREATE OR REPLACE VIEW v4 AS
-SELECT d, sum(e) AS s FROM t4 GROUP BY d;
-set statement optimizer_switch='condition_pushdown_for_derived=off' for SELECT * FROM t1 WHERE a IN (
-SELECT b FROM v2 WHERE b < a OR b IN (
-SELECT d FROM v4 WHERE s > a
-)
-);
-a
-2
-SELECT * FROM t1 WHERE a IN (
-SELECT b FROM v2 WHERE b < a OR b IN (
-SELECT d FROM v4 WHERE s > a
-)
-);
-a
-2
-explain SELECT * FROM t1 WHERE a IN (
-SELECT b FROM v2 WHERE b < a OR b IN (
-SELECT d FROM v4 WHERE s > a
-)
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; FirstMatch(t1)
-3 DEPENDENT SUBQUERY <derived5> index_subquery key0 key0 5 func 2 Using where
-5 DERIVED t4 ALL NULL NULL NULL NULL 5 Using temporary; Using filesort
-explain format=json SELECT * FROM t1 WHERE a IN (
-SELECT b FROM v2 WHERE b < a OR b IN (
-SELECT d FROM v4 WHERE s > a
-)
-);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "const_condition": "0 or <in_optimizer>(2,<exists>(subquery#3))",
- "table": {
- "table_name": "t1",
- "access_type": "system",
- "rows": 1,
- "filtered": 100
- },
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t2.b = 2",
- "first_match": "t1"
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "<derived5>",
- "access_type": "index_subquery",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["d"],
- "ref": ["func"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 5,
- "having_condition": "s > 2",
- "filesort": {
- "sort_key": "t4.d",
- "temporary_table": {
- "table": {
- "table_name": "t4",
- "access_type": "ALL",
- "rows": 5,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
- }
- ]
- }
-}
-DROP VIEW v2,v3,v4;
-DROP TABLE t1,t2,t3,t4;
-#
-# MDEV-10800: pushdown of the condition obtained
-# after constant row substitution
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3),(4);
-CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
-SELECT * FROM
-( SELECT * FROM t1
-WHERE EXISTS ( SELECT * FROM v2 WHERE b = a ) ) AS sq;
-a
-EXPLAIN FORMAT=JSON
-SELECT * FROM
-( SELECT * FROM t1
-WHERE EXISTS ( SELECT * FROM v2 WHERE b = a ) ) AS sq;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "const_condition": "<in_optimizer>(1,exists(subquery#3))",
- "table": {
- "table_name": "t1",
- "access_type": "system",
- "rows": 1,
- "filtered": 100
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v2.b = 1",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t2.b = 1"
- }
- }
- }
- }
- }
- }
- ]
- }
-}
-DROP VIEW v2;
-DROP TABLE t1,t2;
-#
-# MDEV-11102: condition pushdown into materialized inner table
-# of outer join is not applied as not being valid
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1),(2);
-CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
-SELECT * FROM t1 LEFT JOIN t2 ON a = b WHERE b IS NULL;
-a b
-0 NULL
-SELECT * FROM t1 LEFT JOIN v2 ON a = b WHERE b IS NULL;
-a b
-0 NULL
-EXPLAIN FORMAT=JSON
-SELECT * FROM t1 LEFT JOIN v2 ON a = b WHERE b IS NULL;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["test.t1.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "trigcond(v2.b is null) and trigcond(trigcond(t1.a is not null))",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- }
- }
- }
- }
- }
-}
-DROP VIEW v2;
-DROP TABLE t1,t2;
-#
-# MDEV-11103: pushdown condition with ANY subquery
-#
-CREATE TABLE t1 (i INT);
-CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES (1),(2);
-EXPLAIN FORMAT=JSON
-SELECT * FROM v1 WHERE i <= ANY ( SELECT 3 );
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "<nop>(v1.i <= 3)",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "<nop>(t1.i <= 3)"
- }
- }
- }
- }
- }
-}
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-SELECT * FROM v1 WHERE i <= ANY ( SELECT 3 );
-i
-1
-2
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-11315: condition with outer reference to mergeable derived
-#
-CREATE TABLE t1 (pk1 INT PRIMARY KEY, a INT, b INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (10,7,1),(11,0,2);
-CREATE TABLE t2 (pk2 INT PRIMARY KEY, c INT, d DATETIME) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-(1,4,'2008-09-27 00:34:58'),
-(2,5,'2007-05-28 00:00:00'),
-(3,6,'2009-07-25 09:21:20');
-CREATE VIEW v1 AS SELECT * FROM t1;
-CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
-SELECT * FROM v1 AS sq
-WHERE b IN ( SELECT pk2 FROM v2 WHERE c > sq.b ) OR b = 100;
-pk1 a b
-10 7 1
-11 0 2
-EXPLAIN FORMAT=JSON
-SELECT * FROM v1 AS sq
-WHERE b IN ( SELECT pk2 FROM v2 WHERE c > sq.b ) OR b = 100;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "<in_optimizer>(t1.b,<exists>(subquery#2)) or t1.b = 100"
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "<derived4>",
- "access_type": "index_subquery",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "4",
- "used_key_parts": ["pk2"],
- "ref": ["func"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 4,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- ]
- }
-}
-SELECT * FROM ( SELECT * FROM t1 ) AS sq
-WHERE b IN ( SELECT pk2 FROM v2 WHERE c > sq.b ) OR b = 100;
-pk1 a b
-10 7 1
-11 0 2
-EXPLAIN FORMAT=JSON
-SELECT * FROM ( SELECT * FROM t1 ) AS sq
-WHERE b IN ( SELECT pk2 FROM v2 WHERE c > sq.b ) OR b = 100;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "<in_optimizer>(t1.b,<exists>(subquery#3)) or t1.b = 100"
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "<derived4>",
- "access_type": "index_subquery",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "4",
- "used_key_parts": ["pk2"],
- "ref": ["func"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 4,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- ]
- }
-}
-DROP VIEW v1,v2;
-DROP TABLE t1,t2;
-#
-# MDEV-11313: pushdown of the condition obtained
-# after constant row substitution
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (50);
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-SELECT ( SELECT COUNT(*) FROM v1 WHERE a = t2.b ) AS f FROM t2 GROUP BY f;
-f
-0
-EXPLAIN FORMAT=JSON
-SELECT ( SELECT COUNT(*) FROM v1 WHERE a = t2.b ) AS f FROM t2 GROUP BY f;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "system",
- "rows": 1,
- "filtered": 100
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.a = 50",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t1.a = 50"
- }
- }
- }
- }
- }
- }
- ]
- }
-}
-CREATE TABLE t3 (a INT, b INT) ENGINE=MYISAM;
-INSERT INTO t3 VALUES (1,10),(3,11),(2,10),(2,20),(3,21);
-CREATE VIEW v2 AS SELECT a, sum(b) AS s FROM t3 GROUP BY a ;
-SELECT ( SELECT COUNT(*) FROM v2 WHERE s < t2.b ) AS f FROM t2 GROUP BY f;
-f
-3
-EXPLAIN FORMAT=JSON
-SELECT ( SELECT COUNT(*) FROM v2 WHERE s < t2.b ) AS f FROM t2 GROUP BY f;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "system",
- "rows": 1,
- "filtered": 100
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 5,
- "filtered": 100,
- "attached_condition": "v2.s < 50",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "s < 50",
- "filesort": {
- "sort_key": "t3.a",
- "temporary_table": {
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "rows": 5,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
- }
- ]
- }
-}
-DROP VIEW v1,v2;
-DROP TABLE t1,t2,t3;
-#
-# MDEV-10882: pushdown of the predicate with cached value
-#
-CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL) ENGINE=MyISAM;
-CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES (1,2),(3,4);
-CREATE TABLE t2 (c INT NOT NULL) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (5),(6);
-SELECT a, GROUP_CONCAT(b) FROM v1
-WHERE b IN ( SELECT COUNT(c) FROM t2 ) GROUP BY a;
-a GROUP_CONCAT(b)
-1 2
-EXPLAIN FORMAT=JSON
-SELECT a, GROUP_CONCAT(b) FROM v1
-WHERE b IN ( SELECT COUNT(c) FROM t2 ) GROUP BY a;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<subquery2>",
- "access_type": "system",
- "rows": 1,
- "filtered": 100,
- "materialized": {
- "unique": 1,
- "query_block": {
- "select_id": 2,
- "table": {
- "message": "Select tables optimized away"
- }
- }
- }
- },
- "read_sorted_file": {
- "filesort": {
- "sort_key": "v1.a",
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.b = 2",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t1.b = 2"
- }
- }
- }
- }
- }
- }
- }
-}
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# MDEV-10836: pushdown of the predicate with cached value
-#
-CREATE TABLE t (pk INT PRIMARY KEY, f INT) ENGINE=MyISAM;
-CREATE ALGORITHM=TEMPTABLE VIEW v AS SELECT * FROM t;
-INSERT INTO t VALUES (1,1),(3,2);
-SELECT * FROM v AS v1, v AS v2
-WHERE v2.pk > v1.f AND v1.f IN ( SELECT COUNT(pk) FROM t );
-pk f pk f
-3 2 3 2
-EXPLAIN FORMAT=JSON
-SELECT * FROM v AS v1, v AS v2
-WHERE v2.pk > v1.f AND v1.f IN ( SELECT COUNT(pk) FROM t );
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<subquery2>",
- "access_type": "system",
- "rows": 1,
- "filtered": 100,
- "materialized": {
- "unique": 1,
- "query_block": {
- "select_id": 2,
- "table": {
- "message": "Select tables optimized away"
- }
- }
- }
- },
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.f = 2",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "t",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t.f = 2"
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived4>",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v2.pk > 2"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "select_id": 4,
- "table": {
- "table_name": "t",
- "access_type": "range",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["pk"],
- "rows": 2,
- "filtered": 100,
- "index_condition": "t.pk > 2"
- }
- }
- }
- }
- }
-}
-DROP VIEW v;
-DROP TABLE t;
-#
-# MDEV-11488: pushdown of the predicate with cached value
-#
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(3),(2);
-CREATE TABLE t2 (j INT, KEY(j)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3),(4);
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-i
-3
-EXPLAIN FORMAT=JSON
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<subquery3>",
- "access_type": "system",
- "rows": 1,
- "filtered": 100,
- "materialized": {
- "unique": 1,
- "query_block": {
- "select_id": 3,
- "table": {
- "message": "Select tables optimized away"
- }
- }
- }
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "sq.i = 3",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "t1.i = 3"
- }
- }
- }
- }
- }
-}
-UPDATE t2 SET j = 2 WHERE j = 3;
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-i
-2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (i FLOAT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1.5),(3.2),(2.71);
-CREATE TABLE t2 (j FLOAT, KEY(j)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3.2),(2.71);
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-i
-2.71
-EXPLAIN FORMAT=JSON
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<subquery3>",
- "access_type": "system",
- "rows": 1,
- "filtered": 100,
- "materialized": {
- "unique": 1,
- "query_block": {
- "select_id": 3,
- "table": {
- "message": "Select tables optimized away"
- }
- }
- }
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "sq.i = 2.7100000381469727",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "t1.i = 2.7100000381469727"
- }
- }
- }
- }
- }
-}
-DROP TABLE t1,t2;
-CREATE TABLE t1 (i DECIMAL(10,2)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1.5),(3.21),(2.47);
-CREATE TABLE t2 (j DECIMAL(10,2), KEY(j)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3.21),(4.55);
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-i
-3.21
-EXPLAIN FORMAT=JSON
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<subquery3>",
- "access_type": "system",
- "rows": 1,
- "filtered": 100,
- "materialized": {
- "unique": 1,
- "query_block": {
- "select_id": 3,
- "table": {
- "message": "Select tables optimized away"
- }
- }
- }
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "sq.i = 3.21",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "t1.i = 3.21"
- }
- }
- }
- }
- }
-}
-DROP TABLE t1,t2;
-CREATE TABLE t1 (i VARCHAR(32)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('cc'),('aa'),('ddd');
-CREATE TABLE t2 (j VARCHAR(16), KEY(j)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('bbb'),('aa');
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-i
-aa
-EXPLAIN FORMAT=JSON
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<subquery3>",
- "access_type": "system",
- "rows": 1,
- "filtered": 100,
- "materialized": {
- "unique": 1,
- "query_block": {
- "select_id": 3,
- "table": {
- "message": "Select tables optimized away"
- }
- }
- }
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "sq.i = 'aa'",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "t1.i = 'aa'"
- }
- }
- }
- }
- }
-}
-DROP TABLE t1,t2;
-CREATE TABLE t1 (i DATETIME) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-('2008-09-27 00:34:58'),('2007-05-28 00:00:00'), ('2009-07-25 09:21:20');
-CREATE TABLE t2 (j DATETIME, KEY(j)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-('2007-05-28 00:00:00'), ('2010-08-25 00:00:00');
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-i
-2007-05-28 00:00:00
-EXPLAIN FORMAT=JSON
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<subquery3>",
- "access_type": "system",
- "rows": 1,
- "filtered": 100,
- "materialized": {
- "unique": 1,
- "query_block": {
- "select_id": 3,
- "table": {
- "message": "Select tables optimized away"
- }
- }
- }
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "sq.i = '2007-05-28 00:00:00'",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "t1.i = TIMESTAMP'2007-05-28 00:00:00'"
- }
- }
- }
- }
- }
-}
-DROP TABLE t1,t2;
-CREATE TABLE t1 (i DATE) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('2008-09-27'),('2007-05-28'), ('2009-07-25');
-CREATE TABLE t2 (j DATE, KEY(j)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('2007-05-28'), ('2010-08-25');
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-i
-2007-05-28
-EXPLAIN FORMAT=JSON
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<subquery3>",
- "access_type": "system",
- "rows": 1,
- "filtered": 100,
- "materialized": {
- "unique": 1,
- "query_block": {
- "select_id": 3,
- "table": {
- "message": "Select tables optimized away"
- }
- }
- }
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "sq.i = '2007-05-28'",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "t1.i = TIMESTAMP'2007-05-28 00:00:00'"
- }
- }
- }
- }
- }
-}
-DROP TABLE t1,t2;
-CREATE TABLE t1 (i TIME) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('00:34:58'),('10:00:02'), ('09:21:20');
-CREATE TABLE t2 (j TIME, KEY(j)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('10:00:02'), ('11:00:10');
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-i
-10:00:02
-EXPLAIN FORMAT=JSON
-SELECT * FROM ( SELECT DISTINCT * FROM t1 ) AS sq
-WHERE i IN ( SELECT MIN(j) FROM t2 );
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<subquery3>",
- "access_type": "system",
- "rows": 1,
- "filtered": 100,
- "materialized": {
- "unique": 1,
- "query_block": {
- "select_id": 3,
- "table": {
- "message": "Select tables optimized away"
- }
- }
- }
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "sq.i = '10:00:02'",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "t1.i = TIME'10:00:02'"
- }
- }
- }
- }
- }
-}
-DROP TABLE t1,t2;
-#
-# MDEV-11593: pushdown of condition with NULLIF
-#
-CREATE TABLE t1 (i INT);
-CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES (2), (1);
-SELECT * FROM v1 WHERE NULLIF(1, i);
-i
-2
-EXPLAIN FORMAT=JSON
-SELECT * FROM v1 WHERE NULLIF(1, i);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "nullif(1,v1.i)",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "nullif(1,t1.i)"
- }
- }
- }
- }
- }
-}
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-11608: pushdown of the predicate with cached null value
-#
-CREATE TABLE t1 (c VARCHAR(3));
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES ('foo'),('bar');
-CREATE TABLE t2 (c VARCHAR(3));
-INSERT INTO t2 VALUES ('foo'),('xyz');
-SELECT * FROM v1 WHERE v1.c IN ( SELECT MIN(c) FROM t2 WHERE 0 );
-c
-EXPLAIN FORMAT=JSON
-SELECT * FROM v1 WHERE v1.c IN ( SELECT MIN(c) FROM t2 WHERE 0 );
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<subquery2>",
- "access_type": "system",
- "rows": 1,
- "filtered": 100,
- "materialized": {
- "unique": 1,
- "query_block": {
- "select_id": 2,
- "table": {
- "message": "Impossible WHERE"
- }
- }
- }
- },
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.c = NULL",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t1.c = NULL"
- }
- }
- }
- }
- }
-}
-DROP VIEW v1;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (d DECIMAL(10,2));
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES (5.37),(1.1);
-CREATE TABLE t2 (d DECIMAL(10,2));
-INSERT INTO t2 VALUES ('1.1'),('2.23');
-SELECT * FROM v1 WHERE v1.d IN ( SELECT MIN(d) FROM t2 WHERE 0 );
-d
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# MDEV-11820: second execution of PS for query
-# with false subquery predicate in WHERE
-#
-CREATE TABLE t1 (c VARCHAR(3)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo'),('bar');
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 VALUES (3), (4);
-PREPARE stmt1 FROM
-" SELECT * FROM v1 WHERE 1 IN (SELECT a FROM t2) OR c = 'foo'";
-PREPARE stmt2 FROM
-"EXPLAIN FORMAT=JSON
- SELECT * FROM v1 WHERE 1 IN (SELECT a FROM t2) OR c = 'foo'";
-EXECUTE stmt1;
-c
-foo
-EXECUTE stmt2;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.c = 'foo'",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t1.c = 'foo'"
- }
- }
- }
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "1 = t2.a"
- }
- }
- }
- ]
- }
-}
-INSERT INTO t2 SELECT a+1 FROM t2;
-INSERT INTO t2 SELECT a+1 FROM t2;
-INSERT INTO t2 SELECT a+1 FROM t2;
-INSERT INTO t2 SELECT a+1 FROM t2;
-INSERT INTO t2 SELECT a+1 FROM t2;
-INSERT INTO t2 SELECT a+1 FROM t2;
-EXECUTE stmt1;
-c
-foo
-EXECUTE stmt2;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "<cache>(<in_optimizer>(1,<exists>(subquery#2))) or v1.c = 'foo'",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- }
- }
- }
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 128,
- "filtered": 100,
- "attached_condition": "1 = t2.a"
- }
- }
- }
- ]
- }
-}
-DEALLOCATE PREPARE stmt1;
-DEALLOCATE PREPARE stmt2;
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# MDEV-12373: pushdown into derived with side effects is prohibited
-#
-CREATE TABLE sales_documents (
-id int NOT NULL AUTO_INCREMENT,
-sale_id int NULL DEFAULT NULL,
-type tinyint unsigned NULL DEFAULT NULL,
-data text NULL DEFAULT NULL COLLATE 'utf8_unicode_ci',
-date date NULL DEFAULT NULL,
-order_number int unsigned NULL DEFAULT NULL,
-created_at int NULL DEFAULT NULL,
-updated_at int NULL DEFAULT NULL,
-generated tinyint NOT NULL DEFAULT '0',
-synced_at int NOT NULL DEFAULT '0',
-sum decimal(13,2) NOT NULL DEFAULT '0',
-PRIMARY KEY (id)
-);
-INSERT INTO sales_documents
-(id, sale_id, type, order_number, data, created_at,
-updated_at, date, generated, synced_at, sum)
-VALUES
-(555, 165, 3, 5, '{}', 1486538300, 1486722835, '2017-02-17', 0, 1486538313, 2320.00),
-(556, 165, 2, 3, '{}', 1486538304, 1486563125, '2017-02-08', 1, 1486538302, 2320.00),
-(557, 158, 2, 2, '{}', 1486538661, 1486538661, '2017-02-08', 0, 1486538660, 2320.00),
-(558, 171, 1, 3, '{}', 1486539104, 1488203405, '2017-02-08', 1, 1486539102, 23230.00),
-(559, 171, 2, 5, '{}', 1486549233, 1487146010, '2017-02-08', 1, 1486549225, 37690.00),
-(560, 172, 1, 1, '{}', 1486658260, 1488203409, '2017-02-09', 1, 1486658256, 40312.00),
-(561, 172, 2, 1, '{}', 1486711997, 1486711997, '2017-02-10', 1, 1486711996, 40312.00),
-(562, 172, 3, 1, '{}', 1486712104, 1486721395, '2017-02-10', 1, 1486712101, 40312.00),
-(563, 171, 3, 2, '{}', 1486712953, 1486720244, '2017-02-10', 1, 1486712910, 23230.00),
-(564, 170, 1, 2, '{}', 1486715948, 1488203410, '2017-02-10', 1, 1486715930, 28873.00),
-(565, 170, 3, 3, '{}', 1486716782, 1486717426, '2017-02-10', 1, 1486716779, 61948.00),
-(566, 166, 3, 4, '{}', 1486720947, 1486720947, '2017-02-10', 1, 1486720945, 4640.00),
-(567, 167, 3, 5, '{}', 1486722741, 1486722783, '2017-02-26', 0, 1486722738, 14755.00),
-(568, 165, 1, 4, '{}', 1486722849, 1486722849, '2017-02-10', 0, 1486722846, 2320.00),
-(569, 173, 2, 2, '{}', 1486723073, 1487071275, '2017-02-10', 1, 1486723071, 14282.00),
-(570, 173, 1, 4, '{}', 1486723100, 1488203412, '2017-02-10', 1, 1486723099, 14282.00),
-(571, 167, 2, 4, '{}', 1486730859, 1486730859, '2017-02-10', 1, 1486730856, 18655.00),
-(572, 167, 1, 5, '{}', 1486730883, 1488203412, '2017-02-10', 1, 1486730877, 18655.00),
-(573, 174, 2, 51, '{}', 1486731622, 1487060259, '2017-02-10', 1, 1486731620, 7140.00),
-(574, 174, 3, 5, '{}', 1486993472, 1486993472, '2017-02-13', 1, 1488216147, 28020.00),
-(575, 174, 1, 6, '{}', 1486993530, 1488203412, '2017-02-13', 1, 1486993505, 7140.00),
-(576, 173, 3, 6, '{}', 1487071425, 1487071425, '2017-02-14', 0, 1487071422, 14282.00),
-(577, 178, 2, 6, '{}', 1487327372, 1487327372, '2017-02-17', 1, 1487327370, 12321.00),
-(578, 177, 2, 7, '{}', 1487327394, 1487327394, '2017-02-17', 0, 1487327391, 4270.00),
-(579, 182, 3, 6, '{}', 1487750589, 1487751693, '2017-02-22', 1, 1487751688, 4270.00),
-(580, 182, 2, 7, '{}', 1487750601, 1487750663, '2017-02-22', 1, 1487750598, 4270.00),
-(581, 182, 1, 7, '{}', 1487750694, 1488203412, '2017-02-22', 1, 1487750692, 4270.00),
-(582, 185, 3, 7, '{}', 1487774051, 1487774051, '2017-02-22', 0, 1487774043, 8913.00),
-(583, 184, 3, 7, '{}', 1487774071, 1487774235, '2017-02-22', 0, 1487774093, 3285.00),
-(584, 184, 2, 8, '{}', 1487774074, 1487774074, '2017-02-22', 0, 1487774073, 3285.00),
-(585, 184, 1, 8, '{}', 1487774081, 1487774081, '2017-02-22', 0, 1487774075, 3285.00),
-(586, 193, 2, 8, '{}', 1487955294, 1487955318, '2017-02-24', 0, 1487955311, 4270.00),
-(587, 193, 1, 8, '{}', 1487955324, 1487955324, '2017-02-24', 0, 1487955320, 4270.00),
-(588, 193, 3, 7, '{}', 1487955341, 1487955341, '2017-02-24', 0, 1487955325, 4270.00),
-(589, 186, 1, 8, '{}', 1487957291, 1487957464, '2017-02-24', 0, 1487957459, 6960.00),
-(590, 186, 2, 8, '{}', 1487957308, 1487957468, '2017-02-24', 0, 1487957465, 6960.00),
-(591, 186, 3, 7, '{}', 1487957312, 1487957473, '2017-02-24', 0, 1487957469, 6960.00),
-(592, 194, 1, 8, '{}', 1488193293, 1488203412, '2017-02-27', 1, 1488193280, 2320.00),
-(593, 194, 2, 8, '{}', 1488193304, 1488193304, '2017-02-27', 1, 1488193303, 2320.00),
-(594, 210, 1, 9, '{}', 1488198896, 1488198896, '2017-02-27', 0, 1488198885, 4270.00),
-(595, 210, 2, 12, '{}', 1488198901, 1488198901, '2017-02-27', 1, 1488532585, 4270.00),
-(596, 210, 3, 10, '{}', 1488198904, 1488198904, '2017-02-27', 1, 1488532565, 4270.00),
-(597, 209, 2, 9, '{}', 1488200016, 1488450772, '2017-02-27', 1, 1488450449, 4270.00),
-(598, 209, 1, 9, '{}', 1488200020, 1488200063, '2017-02-27', 1, 1488200017, 4271.00),
-(599, 209, 3, 7, '{}', 1488200053, 1488200053, '2017-02-27', 0, 1488200021, 4271.00),
-(600, 211, 2, 10, '{}', 1488216265, 1489402027, '2017-02-27', 1, 1488216264, 2320.00),
-(601, 211, 3, 7, '{}', 1488216281, 1488216281, '2017-02-27', 1, 1488216276, 2320.00),
-(602, 211, 1, 10, '{}', 1488216283, 1488216283, '2017-02-27', 1, 1488216282, 2320.00),
-(603, 198, 2, 11, '{}', 1488280125, 1488280125, '2017-02-28', 0, 1488280095, 4270.00),
-(604, 198, 1, 11, '{}', 1488280160, 1488280160, '2017-02-28', 0, 1488280126, 4270.00),
-(605, 198, 3, 8, '{}', 1488280440, 1488280440, '2017-02-28', 0, 1488280435, 4270.00),
-(606, 212, 1, 12, '{}', 1488286301, 1489402168, '2017-02-28', 1, 1488286295, 13825.00),
-(607, 212, 3, 8, '{}', 1488289644, 1488289690, '2017-02-28', 1, 1488289642, 25295.00),
-(608, 212, 2, 13, '{}', 1488290350, 1488290431, '2017-02-28', 1, 1488290347, 13133.75),
-(609, 213, 1, 11, '{}', 1488529470, 1488529470, '2017-03-03', 1, 1488529461, 5660.00),
-(610, 213, 2, 11, '{}', 1488529484, 1488529484, '2017-03-03', 1, 1488529479, 5660.00),
-(611, 213, 3, 9, '{}', 1488529493, 1488529493, '2017-03-03', 1, 1488529489, 5660.00),
-(612, 197, 2, 13, '{}', 1489400715, 1489400715, '2017-03-13', 0, 1489398959, 4270.00),
-(613, 219, 3, 11, '{}', 1490084337, 1490181958, '2017-03-21', 1, 1490084334, 73526.00),
-(614, 216, 3, 11, '{}', 1490085757, 1490086717, '2017-03-21', 0, 1490085755, 5377.00);
-SELECT * FROM
-(SELECT @row := @row + 1 as row, a.* from (
-SELECT t.order_number
-FROM sales_documents t
-WHERE
-t.type = 2 AND
-t.date >= '2017-01-01' AND
-t.date <= '2017-12-31' AND
-t.order_number IS NOT NULL AND
-t.generated = 1
-GROUP BY t.order_number
-) a, (SELECT @row := 0) r) t
-WHERE row <> order_number;
-row order_number
-14 51
-DROP TABLE sales_documents;
-#
-# MDEV-12845: pushdown from merged derived using equalities
-#
-create table t1 (a int);
-insert into t1 values
-(4), (8), (5), (3), (10), (2), (7);
-create table t2 (b int, c int);
-insert into t2 values
-(2,1), (5,2), (2,2), (4,1), (4,3),
-(5,3), (2,4), (4,6), (2,1);
-create view v1 as
-select b, sum(c) as s from t2 group by b;
-create view v2 as
-select distinct b, c from t2;
-create view v3 as
-select b, max(c) as m from t2 group by b;
-select b
-from ( select t1.a, v1.b, v1.s from t1, v1 where t1.a = v1.b ) as t
-where b > 2;
-b
-4
-5
-explain format=json select b
-from ( select t1.a, v1.b, v1.s from t1, v1 where t1.a = v1.b ) as t
-where b > 2;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 7,
- "filtered": 100,
- "attached_condition": "t1.a > 2 and t1.a is not null"
- },
- "table": {
- "table_name": "<derived3>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["test.t1.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 3,
- "filesort": {
- "sort_key": "t2.b",
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.b > 2"
- }
- }
- }
- }
- }
- }
- }
-}
-select a
-from ( select t1.a, v1.b, v1.s from t1, v1 where t1.a = v1.b ) as t
-where a > 2;
-a
-4
-5
-explain format=json select a
-from ( select t1.a, v1.b, v1.s from t1, v1 where t1.a = v1.b ) as t
-where a > 2;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 7,
- "filtered": 100,
- "attached_condition": "t1.a > 2 and t1.a is not null"
- },
- "table": {
- "table_name": "<derived3>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["test.t1.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 3,
- "filesort": {
- "sort_key": "t2.b",
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.b > 2"
- }
- }
- }
- }
- }
- }
- }
-}
-select a
-from ( select t1.a, v2.b, v2.c from t1, v2 where t1.a = v2.b ) as t
-where a > 2;
-a
-4
-4
-4
-5
-5
-explain format=json select a
-from ( select t1.a, v2.b, v2.c from t1, v2 where t1.a = v2.b ) as t
-where a > 2;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 7,
- "filtered": 100,
- "attached_condition": "t1.a > 2 and t1.a is not null"
- },
- "table": {
- "table_name": "<derived3>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["b"],
- "ref": ["test.t1.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 3,
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100,
- "attached_condition": "t2.b > 2"
- }
- }
- }
- }
- }
- }
-}
-select a
-from ( select t1.a, v3.b, v3.m from t1, v3 where t1.a = v3.m ) as t
-where a > 2;
-a
-4
-3
-explain format=json select a
-from ( select t1.a, v3.b, v3.m from t1, v3 where t1.a = v3.m ) as t
-where a > 2;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 7,
- "filtered": 100,
- "attached_condition": "t1.a > 2 and t1.a is not null"
- },
- "table": {
- "table_name": "<derived3>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["m"],
- "ref": ["test.t1.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "m > 2",
- "filesort": {
- "sort_key": "t2.b",
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-drop view v1,v2,v3;
-drop table t1,t2;
-#
-# MDEV-13166: pushdown from merged derived
-#
-CREATE TABLE t1 (i int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE VIEW v1 AS SELECT MAX(i) AS f FROM t1;
-SELECT * FROM ( SELECT * FROM v1 ) AS sq WHERE f > 0;
-f
-2
-explain format=json SELECT * FROM ( SELECT * FROM v1 ) AS sq WHERE f > 0;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v1.f > 0",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "having_condition": "f > 0",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- }
- }
- }
- }
- }
-}
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-13193: pushdown of equality extracted from multiple equality
-#
-CREATE TABLE t1 (i1 int, KEY(i1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (i2 int) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (2),(4);
-CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
-SELECT * FROM t1, ( SELECT * FROM v2 ) AS sq
-WHERE i1 = 1 AND ( i1 = i2 OR i1 = 2 );
-i1 i2
-explain format=json SELECT * FROM t1, ( SELECT * FROM v2 ) AS sq
-WHERE i1 = 1 AND ( i1 = i2 OR i1 = 2 );
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ref",
- "possible_keys": ["i1"],
- "key": "i1",
- "key_length": "5",
- "used_key_parts": ["i1"],
- "ref": ["const"],
- "rows": 1,
- "filtered": 100,
- "using_index": true
- },
- "block-nl-join": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "v2.i2 = 1"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t2.i2 = 1"
- }
- }
- }
- }
- }
-}
-DROP VIEW v2;
-DROP TABLE t1,t2;
-#
-# MDEV-14237: derived with regexp_substr() in select list
-#
-create table t1 (a char(8));
-insert into t1 values ('b'), ('a'), ('xx');
-select *
-from ( select distinct regexp_substr(t1.a,'^[A-Za-z]+') as f from t1) as t
-where t.f = 'a' or t.f = 'b';
-f
-b
-a
-explain format=json select *
-from ( select distinct regexp_substr(t1.a,'^[A-Za-z]+') as f from t1) as t
-where t.f = 'a' or t.f = 'b';
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "t.f = 'a' or t.f = 'b'",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- }
- }
- }
- }
-}
-drop table t1;
-#
-# MDEV-13454: consequence of mdev-14368 fixed for 5.5
-#
-SET sql_mode = 'ONLY_FULL_GROUP_BY';
-create table t1 (id int, id2 int);
-insert into t1 values (1,1),(2,3),(3,4),(7,2);
-create table t2(id2 int);
-insert t2 values (1),(2),(3);
-SELECT * FROM t1
-LEFT OUTER JOIN
-(SELECT id2, COUNT(*) as ct FROM t2 GROUP BY id2) vc USING (id2)
-WHERE (vc.ct>0);
-id2 id ct
-1 1 1
-3 2 1
-2 7 1
-EXPLAIN FORMAT=JSON SELECT * FROM t1
-LEFT OUTER JOIN
-(SELECT id2, COUNT(*) as ct FROM t2 GROUP BY id2) vc USING (id2)
-WHERE (vc.ct>0);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100,
- "attached_condition": "vc.ct > 0",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "ct > 0",
- "filesort": {
- "sort_key": "t2.id2",
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 4,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t1.id2 = vc.id2"
- }
- }
-}
-DROP TABLE t1,t2;
-SET sql_mode = DEFAULT;
-#
-# MDEV-10855: Pushdown into derived with window functions
-#
-set @save_optimizer_switch= @@optimizer_switch;
-set optimizer_switch='split_materialized=off';
-create table t1 (a int, c varchar(16));
-insert into t1 values
-(8,'aa'), (5,'cc'), (1,'bb'), (2,'aa'), (9,'cc'),
-(7,'aa'), (2,'aa'), (7,'bb');
-create table t2 (a int, b int, c varchar(16), index idx(a,c));
-insert into t2 values
-(7,10,'cc'), (1,20,'aa'), (2,23,'bb'), (7,18,'cc'), (1,30,'bb'),
-(4,71,'xx'), (3,15,'aa'), (7,82,'bb'), (8,12,'dd'), (4,15,'aa'),
-(11,33,'yy'), (10,42,'zz'), (4,53,'xx'), (10,17,'yy'), (7,12,'bb'),
-(8,20,'dd'), (7,32,'bb'), (1,50,'aa'), (3,40,'bb'), (3,77,'aa');
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from (select a, c, sum(b) over (partition by a,c) from t2) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-a c sum(b) over (partition by a,c)
-7 cc 28
-7 cc 28
-3 aa 92
-7 bb 126
-4 aa 15
-7 bb 126
-7 bb 126
-3 bb 40
-3 aa 92
-select * from (select a, c, sum(b) over (partition by a,c) from t2) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-a c sum(b) over (partition by a,c)
-7 cc 28
-7 cc 28
-3 aa 92
-7 bb 126
-4 aa 15
-7 bb 126
-7 bb 126
-3 bb 40
-3 aa 92
-explain select * from (select a, c, sum(b) over (partition by a,c) from t2) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 16 Using where
-2 DERIVED t2 ALL idx NULL NULL NULL 20 Using where; Using temporary
-explain format=json select * from (select a, c, sum(b) over (partition by a,c) from t2) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 16,
- "filtered": 100,
- "attached_condition": "t.a > 2 and t.c in ('aa','bb','cc')",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t2.a, t2.c"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "possible_keys": ["idx"],
- "rows": 20,
- "filtered": 80,
- "attached_condition": "t2.a > 2 and t2.c in ('aa','bb','cc')"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from
-(
-select 1 as n, a, c, sum(b) over (partition by a,c) as s from t2
-union all
-select 2 as n, a, c, sum(b) over (partition by a) as s from t2
-) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-n a c s
-1 7 cc 28
-1 7 cc 28
-1 3 aa 92
-1 7 bb 126
-1 4 aa 15
-1 7 bb 126
-1 7 bb 126
-1 3 bb 40
-1 3 aa 92
-2 7 cc 154
-2 7 cc 154
-2 3 aa 132
-2 7 bb 154
-2 4 aa 139
-2 7 bb 154
-2 7 bb 154
-2 3 bb 132
-2 3 aa 132
-select * from
-(
-select 1 as n, a, c, sum(b) over (partition by a,c) as s from t2
-union all
-select 2 as n, a, c, sum(b) over (partition by a) as s from t2
-) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-n a c s
-1 7 cc 28
-1 7 cc 28
-1 3 aa 92
-1 7 bb 126
-1 4 aa 15
-1 7 bb 126
-1 7 bb 126
-1 3 bb 40
-1 3 aa 92
-2 7 cc 154
-2 7 cc 154
-2 3 aa 132
-2 7 bb 154
-2 4 aa 139
-2 7 bb 154
-2 7 bb 154
-2 3 bb 132
-2 3 aa 132
-explain select * from
-(
-select 1 as n, a, c, sum(b) over (partition by a,c) as s from t2
-union all
-select 2 as n, a, c, sum(b) over (partition by a) as s from t2
-) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 32 Using where
-2 DERIVED t2 ALL idx NULL NULL NULL 20 Using where; Using temporary
-3 UNION t2 ALL idx NULL NULL NULL 20 Using where; Using temporary
-explain format=json select * from
-(
-select 1 as n, a, c, sum(b) over (partition by a,c) as s from t2
-union all
-select 2 as n, a, c, sum(b) over (partition by a) as s from t2
-) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 32,
- "filtered": 100,
- "attached_condition": "t.a > 2 and t.c in ('aa','bb','cc')",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t2.a, t2.c"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "possible_keys": ["idx"],
- "rows": 20,
- "filtered": 80,
- "attached_condition": "t2.a > 2 and t2.c in ('aa','bb','cc')"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t2.a"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "possible_keys": ["idx"],
- "rows": 20,
- "filtered": 80,
- "attached_condition": "t2.a > 2"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select *
-from (select a, c, sum(b) over (partition by a,c) as s from t2) as t, t1
-where t1.a=t.a and t1.c=t.c and t1.c in ('aa','bb','cc');
-a c s a c
-1 bb 30 1 bb
-7 bb 126 7 bb
-7 bb 126 7 bb
-7 bb 126 7 bb
-select *
-from (select a, c, sum(b) over (partition by a,c) as s from t2) as t, t1
-where t1.a=t.a and t1.c=t.c and t1.c in ('aa','bb','cc');
-a c s a c
-1 bb 30 1 bb
-7 bb 126 7 bb
-7 bb 126 7 bb
-7 bb 126 7 bb
-explain select *
-from (select a, c, sum(b) over (partition by a,c) as s from t2) as t, t1
-where t1.a=t.a and t1.c=t.c and t1.c in ('aa','bb','cc');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where
-1 PRIMARY <derived2> ref key0 key0 24 test.t1.a,test.t1.c 2
-2 DERIVED t2 ALL NULL NULL NULL NULL 20 Using where; Using temporary
-explain format=json select *
-from (select a, c, sum(b) over (partition by a,c) as s from t2) as t, t1
-where t1.a=t.a and t1.c=t.c and t1.c in ('aa','bb','cc');
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 8,
- "filtered": 100,
- "attached_condition": "t1.c in ('aa','bb','cc') and t1.a is not null and t1.c is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "24",
- "used_key_parts": ["a", "c"],
- "ref": ["test.t1.a", "test.t1.c"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t2.a, t2.c"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t2.c in ('aa','bb','cc')"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from
-(
-select 1 as n, a, c, sum(b) over (partition by a,c) as s from t2
-union all
-select 2 as n, a, c, sum(b) over (partition by a) as s from t2
-union all
-select 3 as n, a, c, sum(b) as s from t2 group by a
-) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-n a c s
-1 7 cc 28
-1 7 cc 28
-1 3 aa 92
-1 7 bb 126
-1 4 aa 15
-1 7 bb 126
-1 7 bb 126
-1 3 bb 40
-1 3 aa 92
-2 7 cc 154
-2 7 cc 154
-2 3 aa 132
-2 7 bb 154
-2 4 aa 139
-2 7 bb 154
-2 7 bb 154
-2 3 bb 132
-2 3 aa 132
-3 3 aa 132
-3 7 cc 154
-select * from
-(
-select 1 as n, a, c, sum(b) over (partition by a,c) as s from t2
-union all
-select 2 as n, a, c, sum(b) over (partition by a) as s from t2
-union all
-select 3 as n, a, c, sum(b) as s from t2 group by a
-) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-n a c s
-1 7 cc 28
-1 7 cc 28
-1 3 aa 92
-1 7 bb 126
-1 4 aa 15
-1 7 bb 126
-1 7 bb 126
-1 3 bb 40
-1 3 aa 92
-2 7 cc 154
-2 7 cc 154
-2 3 aa 132
-2 7 bb 154
-2 4 aa 139
-2 7 bb 154
-2 7 bb 154
-2 3 bb 132
-2 3 aa 132
-3 3 aa 132
-3 7 cc 154
-explain select * from
-(
-select 1 as n, a, c, sum(b) over (partition by a,c) as s from t2
-union all
-select 2 as n, a, c, sum(b) over (partition by a) as s from t2
-union all
-select 3 as n, a, c, sum(b) as s from t2 group by a
-) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 48 Using where
-2 DERIVED t2 ALL idx NULL NULL NULL 20 Using where; Using temporary
-3 UNION t2 ALL idx NULL NULL NULL 20 Using where; Using temporary
-4 UNION t2 ALL idx NULL NULL NULL 20 Using where; Using temporary; Using filesort
-explain format=json select * from
-(
-select 1 as n, a, c, sum(b) over (partition by a,c) as s from t2
-union all
-select 2 as n, a, c, sum(b) over (partition by a) as s from t2
-union all
-select 3 as n, a, c, sum(b) as s from t2 group by a
-) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 48,
- "filtered": 100,
- "attached_condition": "t.a > 2 and t.c in ('aa','bb','cc')",
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<union2,3,4>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t2.a, t2.c"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "possible_keys": ["idx"],
- "rows": 20,
- "filtered": 80,
- "attached_condition": "t2.a > 2 and t2.c in ('aa','bb','cc')"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t2.a"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "possible_keys": ["idx"],
- "rows": 20,
- "filtered": 80,
- "attached_condition": "t2.a > 2"
- }
- }
- }
- }
- },
- {
- "query_block": {
- "select_id": 4,
- "operation": "UNION",
- "having_condition": "t2.c in ('aa','bb','cc')",
- "filesort": {
- "sort_key": "t2.a",
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "possible_keys": ["idx"],
- "rows": 20,
- "filtered": 80,
- "attached_condition": "t2.a > 2"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from (select a, c,
-sum(b) over (partition by a,c) as sum_b,
-avg(b) over (partition by a,c) as avg_b
-from t2 ) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-a c sum_b avg_b
-7 cc 28 14.0000
-7 cc 28 14.0000
-3 aa 92 46.0000
-7 bb 126 42.0000
-4 aa 15 15.0000
-7 bb 126 42.0000
-7 bb 126 42.0000
-3 bb 40 40.0000
-3 aa 92 46.0000
-select * from (select a, c,
-sum(b) over (partition by a,c) as sum_b,
-avg(b) over (partition by a,c) as avg_b
-from t2 ) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-a c sum_b avg_b
-7 cc 28 14.0000
-7 cc 28 14.0000
-3 aa 92 46.0000
-7 bb 126 42.0000
-4 aa 15 15.0000
-7 bb 126 42.0000
-7 bb 126 42.0000
-3 bb 40 40.0000
-3 aa 92 46.0000
-explain select * from (select a, c,
-sum(b) over (partition by a,c) as sum_b,
-avg(b) over (partition by a,c) as avg_b
-from t2 ) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 16 Using where
-2 DERIVED t2 ALL idx NULL NULL NULL 20 Using where; Using temporary
-explain format=json select * from (select a, c,
-sum(b) over (partition by a,c) as sum_b,
-avg(b) over (partition by a,c) as avg_b
-from t2 ) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 16,
- "filtered": 100,
- "attached_condition": "t.a > 2 and t.c in ('aa','bb','cc')",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t2.a, t2.c"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "possible_keys": ["idx"],
- "rows": 20,
- "filtered": 80,
- "attached_condition": "t2.a > 2 and t2.c in ('aa','bb','cc')"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from (select a, c,
-sum(b) over (partition by a,c) as sum_b,
-avg(b) over (partition by a) as avg_b
-from t2 ) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-a c sum_b avg_b
-7 cc 28 30.8000
-7 cc 28 30.8000
-3 aa 92 44.0000
-7 bb 126 30.8000
-4 aa 15 46.3333
-7 bb 126 30.8000
-7 bb 126 30.8000
-3 bb 40 44.0000
-3 aa 92 44.0000
-select * from (select a, c,
-sum(b) over (partition by a,c) as sum_b,
-avg(b) over (partition by a) as avg_b
-from t2 ) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-a c sum_b avg_b
-7 cc 28 30.8000
-7 cc 28 30.8000
-3 aa 92 44.0000
-7 bb 126 30.8000
-4 aa 15 46.3333
-7 bb 126 30.8000
-7 bb 126 30.8000
-3 bb 40 44.0000
-3 aa 92 44.0000
-explain select * from (select a, c,
-sum(b) over (partition by a,c) as sum_b,
-avg(b) over (partition by a) as avg_b
-from t2 ) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 16 Using where
-2 DERIVED t2 ALL idx NULL NULL NULL 20 Using where; Using temporary
-explain format=json select * from (select a, c,
-sum(b) over (partition by a,c) as sum_b,
-avg(b) over (partition by a) as avg_b
-from t2 ) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 16,
- "filtered": 100,
- "attached_condition": "t.a > 2 and t.c in ('aa','bb','cc')",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t2.a, t2.c"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "possible_keys": ["idx"],
- "rows": 20,
- "filtered": 80,
- "attached_condition": "t2.a > 2"
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from (select a, c,
-sum(b) over (partition by a,c) as sum_b,
-avg(b) over (partition by c) as avg_b
-from t2 ) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-a c sum_b avg_b
-7 cc 28 14.0000
-7 cc 28 14.0000
-3 aa 92 35.4000
-7 bb 126 36.5000
-4 aa 15 35.4000
-7 bb 126 36.5000
-7 bb 126 36.5000
-3 bb 40 36.5000
-3 aa 92 35.4000
-select * from (select a, c,
-sum(b) over (partition by a,c) as sum_b,
-avg(b) over (partition by c) as avg_b
-from t2 ) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-a c sum_b avg_b
-7 cc 28 14.0000
-7 cc 28 14.0000
-3 aa 92 35.4000
-7 bb 126 36.5000
-4 aa 15 35.4000
-7 bb 126 36.5000
-7 bb 126 36.5000
-3 bb 40 36.5000
-3 aa 92 35.4000
-explain select * from (select a, c,
-sum(b) over (partition by a,c) as sum_b,
-avg(b) over (partition by c) as avg_b
-from t2 ) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where
-2 DERIVED t2 ALL NULL NULL NULL NULL 20 Using where; Using temporary
-explain format=json select * from (select a, c,
-sum(b) over (partition by a,c) as sum_b,
-avg(b) over (partition by c) as avg_b
-from t2 ) as t
-where t.a > 2 and t.c in ('aa','bb','cc');
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t.a > 2 and t.c in ('aa','bb','cc')",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t2.a, t2.c"
- },
- "filesort": {
- "sort_key": "t2.c"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 20,
- "filtered": 100,
- "attached_condition": "t2.c in ('aa','bb','cc')"
- }
- }
- }
- }
- }
- }
- }
-}
-drop table t1,t2;
-set optimizer_switch= @save_optimizer_switch;
-#
-# MDEV-13369: Optimization for equi-joins of grouping derived tables
-# (Splitting derived tables / views with GROUP BY)
-# MDEV-13389: Optimization for equi-joins of derived tables with WF
-# (Splitting derived tables / views with window functions)
-#
-create table t1 (a int, b int, index idx_b(b)) engine=myisam;
-insert into t1 values
-(8,3), (5,7), (1,2), (2,1), (9,7), (7,5), (2,2), (7,3),
-(9,3), (8,1), (4,5), (2,3);
-create table t2 (a int, b int, c char(127), index idx_a(a)) engine=myisam;
-insert into t2 values
-(7,10,'x'), (1,20,'a'), (2,23,'b'), (7,18,'z'), (1,30,'c'),
-(4,71,'d'), (3,15,'x'), (7,82,'y'), (8,12,'t'), (4,15,'b'),
-(11,33,'a'), (10,42,'u'), (4,53,'p'), (10,17,'r'), (2,90,'x'),
-(17,10,'s'), (11,20,'v'), (12,23,'y'), (17,18,'a'), (11,30,'d'),
-(24,71,'h'), (23,15,'i'), (27,82,'k'), (28,12,'p'), (24,15,'q'),
-(31,33,'f'), (30,42,'h'), (40,53,'m'), (30,17,'o'), (21,90,'b'),
-(37,10,'e'), (31,20,'g'), (32,23,'f'), (37,18,'n'), (41,30,'l'),
-(54,71,'j'), (53,15,'w'), (57,82,'z'), (58,12,'k'), (54,15,'p'),
-(61,33,'c'), (60,42,'a'), (62,53,'x'), (67,17,'g'), (64,90,'v');
-insert into t2 select a+10, b+10, concat(c,'f') from t2;
-analyze table t1,t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-test.t2 analyze status OK
-set statement optimizer_switch='split_materialized=off' for select t1.a,t.s,t.m
-from t1 join
-(select a, sum(t2.b) as s, min(t2.c) as m from t2 group by t2.a) t
-on t1.a=t.a
-where t1.b < 3;
-a s m
-2 113 b
-8 12 t
-1 50 a
-2 113 b
-select t1.a,t.s,t.m
-from t1 join
-(select a, sum(t2.b) as s, min(t2.c) as m from t2 group by t2.a) t
-on t1.a=t.a
-where t1.b < 3;
-a s m
-2 113 b
-8 12 t
-1 50 a
-2 113 b
-explain extended select t1.a,t.s,t.m
-from t1 join
-(select a, sum(t2.b) as s, min(t2.c) as m from t2 group by t2.a) t
-on t1.a=t.a
-where t1.b < 3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 range idx_b idx_b 5 NULL 4 100.00 Using index condition; Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t1.a 2 100.00
-2 LATERAL DERIVED t2 ref idx_a idx_a 5 test.t1.a 2 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`t`.`s` AS `s`,`t`.`m` AS `m` from `test`.`t1` join (/* select#2 */ select `test`.`t2`.`a` AS `a`,sum(`test`.`t2`.`b`) AS `s`,min(`test`.`t2`.`c`) AS `m` from `test`.`t2` where `test`.`t2`.`a` = `test`.`t1`.`a` group by `test`.`t2`.`a`) `t` where `t`.`a` = `test`.`t1`.`a` and `test`.`t1`.`b` < 3
-explain format=json select t1.a,t.s,t.m
-from t1 join
-(select a, sum(t2.b) as s, min(t2.c) as m from t2 group by t2.a) t
-on t1.a=t.a
-where t1.b < 3;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx_b"],
- "key": "idx_b",
- "key_length": "5",
- "used_key_parts": ["b"],
- "rows": 4,
- "filtered": 100,
- "index_condition": "t1.b < 3",
- "attached_condition": "t1.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t1.a"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "outer_ref_condition": "t1.a is not null",
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["idx_a"],
- "key": "idx_a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t1.a"],
- "rows": 2,
- "filtered": 100
- }
- }
- }
- }
- }
-}
-prepare stmt from "select t1.a,t.s,t.m
-from t1 join
-(select a, sum(t2.b) as s, min(t2.c) as m from t2 group by t2.a) t
-on t1.a=t.a
-where t1.b < 3";
-execute stmt;
-a s m
-2 113 b
-8 12 t
-1 50 a
-2 113 b
-execute stmt;
-a s m
-2 113 b
-8 12 t
-1 50 a
-2 113 b
-deallocate prepare stmt;
-set statement optimizer_switch='split_materialized=off' for select t1.a,t.s,t.m
-from t1 join
-(select a, sum(t2.b) as s, min(t2.b) as m from t2 group by t2.a) t
-on t1.a=t.a
-where t1.b <= 5;
-a s m
-8 12 12
-1 50 20
-2 113 23
-7 110 10
-2 113 23
-7 110 10
-8 12 12
-4 139 15
-2 113 23
-select t1.a,t.s,t.m
-from t1 join
-(select a, sum(t2.b) as s, min(t2.b) as m from t2 group by t2.a) t
-on t1.a=t.a
-where t1.b <= 5;
-a s m
-8 12 12
-1 50 20
-2 113 23
-7 110 10
-2 113 23
-7 110 10
-8 12 12
-4 139 15
-2 113 23
-explain extended select t1.a,t.s,t.m
-from t1 join
-(select a, sum(t2.b) as s, min(t2.b) as m from t2 group by t2.a) t
-on t1.a=t.a
-where t1.b <= 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL idx_b NULL NULL NULL 12 75.00 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t1.a 9 100.00
-2 DERIVED t2 ALL idx_a NULL NULL NULL 90 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`t`.`s` AS `s`,`t`.`m` AS `m` from `test`.`t1` join (/* select#2 */ select `test`.`t2`.`a` AS `a`,sum(`test`.`t2`.`b`) AS `s`,min(`test`.`t2`.`b`) AS `m` from `test`.`t2` group by `test`.`t2`.`a`) `t` where `t`.`a` = `test`.`t1`.`a` and `test`.`t1`.`b` <= 5
-explain format=json select t1.a,t.s,t.m
-from t1 join
-(select a, sum(t2.b) as s, min(t2.b) as m from t2 group by t2.a) t
-on t1.a=t.a
-where t1.b <= 5;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "possible_keys": ["idx_b"],
- "rows": 12,
- "filtered": 75,
- "attached_condition": "t1.b <= 5 and t1.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t1.a"],
- "rows": 9,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "filesort": {
- "sort_key": "t2.a",
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "possible_keys": ["idx_a"],
- "rows": 90,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-prepare stmt from "select t1.a,t.s,t.m
-from t1 join
-(select a, sum(t2.b) as s, min(t2.b) as m from t2 group by t2.a) t
-on t1.a=t.a
-where t1.b <= 5";
-execute stmt;
-a s m
-8 12 12
-1 50 20
-2 113 23
-7 110 10
-2 113 23
-7 110 10
-8 12 12
-4 139 15
-2 113 23
-execute stmt;
-a s m
-8 12 12
-1 50 20
-2 113 23
-7 110 10
-2 113 23
-7 110 10
-8 12 12
-4 139 15
-2 113 23
-deallocate prepare stmt;
-delete from t1 where t1.b between 2 and 5;
-set statement optimizer_switch='split_materialized=off' for select t1.a,t.max,t.min
-from t1 left join
-(select a, max(t2.b) max, min(t2.b) min from t2 group by t2.a) t
-on t1.a=t.a;
-a max min
-5 NULL NULL
-2 90 23
-9 NULL NULL
-8 12 12
-select t1.a,t.max,t.min
-from t1 left join
-(select a, max(t2.b) max, min(t2.b) min from t2 group by t2.a) t
-on t1.a=t.a;
-a max min
-5 NULL NULL
-2 90 23
-9 NULL NULL
-8 12 12
-explain extended select t1.a,t.max,t.min
-from t1 left join
-(select a, max(t2.b) max, min(t2.b) min from t2 group by t2.a) t
-on t1.a=t.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 100.00
-1 PRIMARY <derived2> ref key0 key0 5 test.t1.a 2 100.00 Using where
-2 LATERAL DERIVED t2 ref idx_a idx_a 5 test.t1.a 2 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`t`.`max` AS `max`,`t`.`min` AS `min` from `test`.`t1` left join (/* select#2 */ select `test`.`t2`.`a` AS `a`,max(`test`.`t2`.`b`) AS `max`,min(`test`.`t2`.`b`) AS `min` from `test`.`t2` where `test`.`t2`.`a` = `test`.`t1`.`a` group by `test`.`t2`.`a`) `t` on(`t`.`a` = `test`.`t1`.`a` and `test`.`t1`.`a` is not null) where 1
-explain format=json select t1.a,t.max,t.min
-from t1 left join
-(select a, max(t2.b) max, min(t2.b) min from t2 group by t2.a) t
-on t1.a=t.a;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "const_condition": "1",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 4,
- "filtered": 100
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t1.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "trigcond(trigcond(t1.a is not null))",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "outer_ref_condition": "t1.a is not null",
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["idx_a"],
- "key": "idx_a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t1.a"],
- "rows": 2,
- "filtered": 100
- }
- }
- }
- }
- }
-}
-create table t3 (a int, b int, c char(127), index idx_b(b)) engine=myisam;
-insert into t3 values
-(8,11,'aa'), (5,15,'cc'), (1,14,'bb'), (2,12,'aa'), (7,17,'cc'),
-(7,18,'aa'), (2,11,'aa'), (7,10,'bb'), (3,11,'dd'), (4,12,'ee'),
-(5,14,'dd'), (9,12,'ee');
-create table t4 (a int, b int, c char(127), index idx(a,c)) engine=myisam;
-insert into t4 values
-(7,10,'cc'), (1,20,'aa'), (2,23,'bb'), (7,18,'cc'), (1,30,'bb'),
-(4,71,'xx'), (3,15,'aa'), (7,82,'aa'), (8,12,'dd'), (4,15,'aa'),
-(11,33,'yy'), (10,42,'zz'), (4,53,'xx'), (10,17,'yy'), (7,12,'cc'),
-(8,20,'dd'), (7,32,'bb'), (1,50,'aa'), (3,40,'bb'), (3,77,'aa');
-insert into t4 select a+10, b+10, concat(c,'f') from t4;
-analyze table t3,t4;
-Table Op Msg_type Msg_text
-test.t3 analyze status OK
-test.t4 analyze status OK
-set statement optimizer_switch='split_materialized=off' for select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by a,c) t
-on t3.a=t.a and t3.c=t.c
-where t3.b > 15;
-a c max min
-7 cc 18 10
-7 aa 82 82
-select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by a,c) t
-on t3.a=t.a and t3.c=t.c
-where t3.b > 15;
-a c max min
-7 cc 18 10
-7 aa 82 82
-explain extended select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by a,c) t
-on t3.a=t.a and t3.c=t.c
-where t3.b > 15;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 range idx_b idx_b 5 NULL 3 100.00 Using index condition; Using where
-1 PRIMARY <derived2> ref key0 key0 133 test.t3.a,test.t3.c 2 100.00
-2 LATERAL DERIVED t4 ref idx idx 133 test.t3.a,test.t3.c 1 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a`,`test`.`t3`.`c` AS `c`,`t`.`max` AS `max`,`t`.`min` AS `min` from `test`.`t3` join (/* select#2 */ select `test`.`t4`.`a` AS `a`,`test`.`t4`.`c` AS `c`,max(`test`.`t4`.`b`) AS `max`,min(`test`.`t4`.`b`) AS `min` from `test`.`t4` where `test`.`t4`.`a` = `test`.`t3`.`a` and `test`.`t4`.`c` = `test`.`t3`.`c` group by `test`.`t4`.`a`,`test`.`t4`.`c`) `t` where `t`.`a` = `test`.`t3`.`a` and `t`.`c` = `test`.`t3`.`c` and `test`.`t3`.`b` > 15
-explain format=json select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by a,c) t
-on t3.a=t.a and t3.c=t.c
-where t3.b > 15;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t3",
- "access_type": "range",
- "possible_keys": ["idx_b"],
- "key": "idx_b",
- "key_length": "5",
- "used_key_parts": ["b"],
- "rows": 3,
- "filtered": 100,
- "index_condition": "t3.b > 15",
- "attached_condition": "t3.a is not null and t3.c is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "133",
- "used_key_parts": ["a", "c"],
- "ref": ["test.t3.a", "test.t3.c"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "outer_ref_condition": "t3.a is not null and t3.c is not null",
- "table": {
- "table_name": "t4",
- "access_type": "ref",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "133",
- "used_key_parts": ["a", "c"],
- "ref": ["test.t3.a", "test.t3.c"],
- "rows": 1,
- "filtered": 100
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='split_materialized=off' for select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by a,c) t
-on t3.a=t.a and t3.c=t.c
-where t3.b <= 15;
-a c max min
-1 bb 30 30
-7 bb 32 32
-select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by a,c) t
-on t3.a=t.a and t3.c=t.c
-where t3.b <= 15;
-a c max min
-1 bb 30 30
-7 bb 32 32
-explain extended select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by a,c) t
-on t3.a=t.a and t3.c=t.c
-where t3.b <= 15;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL idx_b NULL NULL NULL 12 75.00 Using where
-1 PRIMARY <derived2> ref key0 key0 133 test.t3.a,test.t3.c 4 100.00
-2 DERIVED t4 ALL idx NULL NULL NULL 40 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a`,`test`.`t3`.`c` AS `c`,`t`.`max` AS `max`,`t`.`min` AS `min` from `test`.`t3` join (/* select#2 */ select `test`.`t4`.`a` AS `a`,`test`.`t4`.`c` AS `c`,max(`test`.`t4`.`b`) AS `max`,min(`test`.`t4`.`b`) AS `min` from `test`.`t4` group by `test`.`t4`.`a`,`test`.`t4`.`c`) `t` where `t`.`a` = `test`.`t3`.`a` and `t`.`c` = `test`.`t3`.`c` and `test`.`t3`.`b` <= 15
-explain format=json select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by a,c) t
-on t3.a=t.a and t3.c=t.c
-where t3.b <= 15;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "possible_keys": ["idx_b"],
- "rows": 12,
- "filtered": 75,
- "attached_condition": "t3.b <= 15 and t3.a is not null and t3.c is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "133",
- "used_key_parts": ["a", "c"],
- "ref": ["test.t3.a", "test.t3.c"],
- "rows": 4,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "filesort": {
- "sort_key": "t4.a, t4.c",
- "temporary_table": {
- "table": {
- "table_name": "t4",
- "access_type": "ALL",
- "possible_keys": ["idx"],
- "rows": 40,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='split_materialized=off' for select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by c,a) t
-on t3.a=t.a and t3.c=t.c
-where t3.b > 15;
-a c max min
-7 cc 18 10
-7 aa 82 82
-select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by c,a) t
-on t3.a=t.a and t3.c=t.c
-where t3.b > 15;
-a c max min
-7 cc 18 10
-7 aa 82 82
-explain extended select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by c,a) t
-on t3.a=t.a and t3.c=t.c
-where t3.b > 15;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 range idx_b idx_b 5 NULL 3 100.00 Using index condition; Using where
-1 PRIMARY <derived2> ref key0 key0 133 test.t3.a,test.t3.c 2 100.00
-2 LATERAL DERIVED t4 ref idx idx 133 test.t3.a,test.t3.c 1 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a`,`test`.`t3`.`c` AS `c`,`t`.`max` AS `max`,`t`.`min` AS `min` from `test`.`t3` join (/* select#2 */ select `test`.`t4`.`a` AS `a`,`test`.`t4`.`c` AS `c`,max(`test`.`t4`.`b`) AS `max`,min(`test`.`t4`.`b`) AS `min` from `test`.`t4` where `test`.`t4`.`a` = `test`.`t3`.`a` and `test`.`t4`.`c` = `test`.`t3`.`c` group by `test`.`t4`.`c`,`test`.`t4`.`a`) `t` where `t`.`a` = `test`.`t3`.`a` and `t`.`c` = `test`.`t3`.`c` and `test`.`t3`.`b` > 15
-explain format=json select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by c,a) t
-on t3.a=t.a and t3.c=t.c
-where t3.b > 15;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t3",
- "access_type": "range",
- "possible_keys": ["idx_b"],
- "key": "idx_b",
- "key_length": "5",
- "used_key_parts": ["b"],
- "rows": 3,
- "filtered": 100,
- "index_condition": "t3.b > 15",
- "attached_condition": "t3.a is not null and t3.c is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "133",
- "used_key_parts": ["a", "c"],
- "ref": ["test.t3.a", "test.t3.c"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "outer_ref_condition": "t3.a is not null and t3.c is not null",
- "table": {
- "table_name": "t4",
- "access_type": "ref",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "133",
- "used_key_parts": ["a", "c"],
- "ref": ["test.t3.a", "test.t3.c"],
- "rows": 1,
- "filtered": 100
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='split_materialized=off' for select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by c,a) t
-on t3.a=t.a and t3.c=t.c
-where t3.b <= 15;
-a c max min
-1 bb 30 30
-7 bb 32 32
-select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by c,a) t
-on t3.a=t.a and t3.c=t.c
-where t3.b <= 15;
-a c max min
-1 bb 30 30
-7 bb 32 32
-explain extended select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by c,a) t
-on t3.a=t.a and t3.c=t.c
-where t3.b <= 15;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL idx_b NULL NULL NULL 12 75.00 Using where
-1 PRIMARY <derived2> ref key0 key0 133 test.t3.a,test.t3.c 4 100.00
-2 DERIVED t4 ALL idx NULL NULL NULL 40 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a`,`test`.`t3`.`c` AS `c`,`t`.`max` AS `max`,`t`.`min` AS `min` from `test`.`t3` join (/* select#2 */ select `test`.`t4`.`a` AS `a`,`test`.`t4`.`c` AS `c`,max(`test`.`t4`.`b`) AS `max`,min(`test`.`t4`.`b`) AS `min` from `test`.`t4` group by `test`.`t4`.`c`,`test`.`t4`.`a`) `t` where `t`.`a` = `test`.`t3`.`a` and `t`.`c` = `test`.`t3`.`c` and `test`.`t3`.`b` <= 15
-explain format=json select t3.a,t3.c,t.max,t.min
-from t3 join
-(select a, c, max(b) max, min(b) min from t4 group by c,a) t
-on t3.a=t.a and t3.c=t.c
-where t3.b <= 15;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "possible_keys": ["idx_b"],
- "rows": 12,
- "filtered": 75,
- "attached_condition": "t3.b <= 15 and t3.a is not null and t3.c is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "133",
- "used_key_parts": ["a", "c"],
- "ref": ["test.t3.a", "test.t3.c"],
- "rows": 4,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "filesort": {
- "sort_key": "t4.c, t4.a",
- "temporary_table": {
- "table": {
- "table_name": "t4",
- "access_type": "ALL",
- "possible_keys": ["idx"],
- "rows": 40,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-drop index idx_a on t2;
-create index idx on t2(c,b);
-create index idx_a on t3(a);
-create index idx_c on t4(c);
-insert into t3 select a+10, b+10, concat(c,'f') from t3;
-insert into t3 select a+100, b+100, concat(c,'g') from t3;
-insert into t4 select a+100, b+100, concat(c,'g') from t4;
-insert into t4 select a+1000, b+1000, concat(c,'h') from t4;
-analyze table t2,t3,t4;
-Table Op Msg_type Msg_text
-test.t2 analyze status OK
-test.t3 analyze status OK
-test.t4 analyze status OK
-set statement optimizer_switch='split_materialized=off' for select t2.a,t2.b,t2.c,t.c as t_c,t.max,t.min
-from t2, t3, (select c, max(b) max, min(b) min from t4 group by c) t
-where t2.b between 80 and 85 and t2.c in ('y','z') and t2.a=t3.a and t3.c=t.c;
-a b c t_c max min
-7 82 y cc 18 10
-7 82 y aa 82 15
-7 82 y bb 40 23
-select t2.a,t2.b,t2.c,t.c as t_c,t.max,t.min
-from t2, t3, (select c, max(b) max, min(b) min from t4 group by c) t
-where t2.b between 80 and 85 and t2.c in ('y','z') and t2.a=t3.a and t3.c=t.c;
-a b c t_c max min
-7 82 y cc 18 10
-7 82 y aa 82 15
-7 82 y bb 40 23
-explain extended select t2.a,t2.b,t2.c,t.c as t_c,t.max,t.min
-from t2, t3, (select c, max(b) max, min(b) min from t4 group by c) t
-where t2.b between 80 and 85 and t2.c in ('y','z') and t2.a=t3.a and t3.c=t.c;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 range idx idx 133 NULL 2 100.00 Using index condition; Using where
-1 PRIMARY t3 ref idx_a idx_a 5 test.t2.a 2 100.00 Using where
-1 PRIMARY <derived2> ref key0 key0 128 test.t3.c 2 100.00
-2 LATERAL DERIVED t4 ref idx_c idx_c 128 test.t3.c 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`t`.`c` AS `t_c`,`t`.`max` AS `max`,`t`.`min` AS `min` from `test`.`t2` join `test`.`t3` join (/* select#2 */ select `test`.`t4`.`c` AS `c`,max(`test`.`t4`.`b`) AS `max`,min(`test`.`t4`.`b`) AS `min` from `test`.`t4` where `test`.`t4`.`c` = `test`.`t3`.`c` group by `test`.`t4`.`c`) `t` where `test`.`t3`.`a` = `test`.`t2`.`a` and `t`.`c` = `test`.`t3`.`c` and `test`.`t2`.`b` between 80 and 85 and `test`.`t2`.`c` in ('y','z')
-explain format=json select t2.a,t2.b,t2.c,t.c as t_c,t.max,t.min
-from t2, t3, (select c, max(b) max, min(b) min from t4 group by c) t
-where t2.b between 80 and 85 and t2.c in ('y','z') and t2.a=t3.a and t3.c=t.c;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "133",
- "used_key_parts": ["c", "b"],
- "rows": 2,
- "filtered": 100,
- "index_condition": "t2.b between 80 and 85 and t2.c in ('y','z')",
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "t3",
- "access_type": "ref",
- "possible_keys": ["idx_a"],
- "key": "idx_a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t3.c is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "128",
- "used_key_parts": ["c"],
- "ref": ["test.t3.c"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "outer_ref_condition": "t3.c is not null",
- "table": {
- "table_name": "t4",
- "access_type": "ref",
- "possible_keys": ["idx_c"],
- "key": "idx_c",
- "key_length": "128",
- "used_key_parts": ["c"],
- "ref": ["test.t3.c"],
- "rows": 3,
- "filtered": 100
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='split_materialized=off' for select t2.a,t2.b,t2.c,t.c as t_c,t.max,t.min
-from t2, t3, (select c, max(b) max, min(b) min from t4 group by c) t
-where t2.b < 40 and t2.a=t3.a and t3.c=t.c;
-a b c t_c max min
-7 10 x cc 18 10
-7 10 x aa 82 15
-7 10 x bb 40 23
-1 20 a bb 40 23
-2 23 b aa 82 15
-2 23 b aa 82 15
-7 18 z cc 18 10
-7 18 z aa 82 15
-7 18 z bb 40 23
-1 30 c bb 40 23
-3 15 x dd 20 12
-8 12 t aa 82 15
-11 33 a bbf 50 33
-17 10 s ccf 28 20
-17 10 s aaf 92 25
-17 10 s bbf 50 33
-11 20 v bbf 50 33
-12 23 y aaf 92 25
-12 23 y aaf 92 25
-17 18 a ccf 28 20
-17 18 a aaf 92 25
-17 18 a bbf 50 33
-11 30 d bbf 50 33
-17 20 xf ccf 28 20
-17 20 xf aaf 92 25
-17 20 xf bbf 50 33
-11 30 af bbf 50 33
-12 33 bf aaf 92 25
-12 33 bf aaf 92 25
-17 28 zf ccf 28 20
-17 28 zf aaf 92 25
-17 28 zf bbf 50 33
-13 25 xf ddf 30 22
-18 22 tf aaf 92 25
-select t2.a,t2.b,t2.c,t.c as t_c,t.max,t.min
-from t2, t3, (select c, max(b) max, min(b) min from t4 group by c) t
-where t2.b < 40 and t2.a=t3.a and t3.c=t.c;
-a b c t_c max min
-7 10 x cc 18 10
-7 10 x aa 82 15
-7 10 x bb 40 23
-1 20 a bb 40 23
-2 23 b aa 82 15
-2 23 b aa 82 15
-7 18 z cc 18 10
-7 18 z aa 82 15
-7 18 z bb 40 23
-1 30 c bb 40 23
-3 15 x dd 20 12
-8 12 t aa 82 15
-11 33 a bbf 50 33
-17 10 s ccf 28 20
-17 10 s aaf 92 25
-17 10 s bbf 50 33
-11 20 v bbf 50 33
-12 23 y aaf 92 25
-12 23 y aaf 92 25
-17 18 a ccf 28 20
-17 18 a aaf 92 25
-17 18 a bbf 50 33
-11 30 d bbf 50 33
-17 20 xf ccf 28 20
-17 20 xf aaf 92 25
-17 20 xf bbf 50 33
-11 30 af bbf 50 33
-12 33 bf aaf 92 25
-12 33 bf aaf 92 25
-17 28 zf ccf 28 20
-17 28 zf aaf 92 25
-17 28 zf bbf 50 33
-13 25 xf ddf 30 22
-18 22 tf aaf 92 25
-explain extended select t2.a,t2.b,t2.c,t.c as t_c,t.max,t.min
-from t2, t3, (select c, max(b) max, min(b) min from t4 group by c) t
-where t2.b < 40 and t2.a=t3.a and t3.c=t.c;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 90 100.00 Using where
-1 PRIMARY t3 ref idx_a idx_a 5 test.t2.a 2 100.00 Using where
-1 PRIMARY <derived2> ref key0 key0 128 test.t3.c 10 100.00
-2 DERIVED t4 ALL idx_c NULL NULL NULL 160 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`t`.`c` AS `t_c`,`t`.`max` AS `max`,`t`.`min` AS `min` from `test`.`t2` join `test`.`t3` join (/* select#2 */ select `test`.`t4`.`c` AS `c`,max(`test`.`t4`.`b`) AS `max`,min(`test`.`t4`.`b`) AS `min` from `test`.`t4` group by `test`.`t4`.`c`) `t` where `test`.`t3`.`a` = `test`.`t2`.`a` and `t`.`c` = `test`.`t3`.`c` and `test`.`t2`.`b` < 40
-explain format=json select t2.a,t2.b,t2.c,t.c as t_c,t.max,t.min
-from t2, t3, (select c, max(b) max, min(b) min from t4 group by c) t
-where t2.b < 40 and t2.a=t3.a and t3.c=t.c;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 90,
- "filtered": 100,
- "attached_condition": "t2.b < 40 and t2.a is not null"
- },
- "table": {
- "table_name": "t3",
- "access_type": "ref",
- "possible_keys": ["idx_a"],
- "key": "idx_a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t3.c is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "128",
- "used_key_parts": ["c"],
- "ref": ["test.t3.c"],
- "rows": 10,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "filesort": {
- "sort_key": "t4.c",
- "temporary_table": {
- "table": {
- "table_name": "t4",
- "access_type": "ALL",
- "possible_keys": ["idx_c"],
- "rows": 160,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='split_materialized=off' for select *
-from t2, t3, (select c, b, sum(b) over (partition by c) from t4 ) t
-where t2.b between 80 and 85 and t2.c in ('y','z') and t2.a=t3.a and t3.c=t.c;
-a b c a b c c b sum(b) over (partition by c)
-7 82 y 7 17 cc cc 12 40
-7 82 y 7 17 cc cc 18 40
-7 82 y 7 17 cc cc 10 40
-7 82 y 7 18 aa aa 77 259
-7 82 y 7 18 aa aa 50 259
-7 82 y 7 18 aa aa 15 259
-7 82 y 7 18 aa aa 82 259
-7 82 y 7 18 aa aa 15 259
-7 82 y 7 18 aa aa 20 259
-7 82 y 7 10 bb bb 40 125
-7 82 y 7 10 bb bb 32 125
-7 82 y 7 10 bb bb 30 125
-7 82 y 7 10 bb bb 23 125
-select *
-from t2, t3, (select c, b, sum(b) over (partition by c) from t4 ) t
-where t2.b between 80 and 85 and t2.c in ('y','z') and t2.a=t3.a and t3.c=t.c;
-a b c a b c c b sum(b) over (partition by c)
-7 82 y 7 17 cc cc 12 40
-7 82 y 7 17 cc cc 18 40
-7 82 y 7 17 cc cc 10 40
-7 82 y 7 18 aa aa 77 259
-7 82 y 7 18 aa aa 50 259
-7 82 y 7 18 aa aa 15 259
-7 82 y 7 18 aa aa 82 259
-7 82 y 7 18 aa aa 15 259
-7 82 y 7 18 aa aa 20 259
-7 82 y 7 10 bb bb 40 125
-7 82 y 7 10 bb bb 32 125
-7 82 y 7 10 bb bb 30 125
-7 82 y 7 10 bb bb 23 125
-explain extended select *
-from t2, t3, (select c, b, sum(b) over (partition by c) from t4 ) t
-where t2.b between 80 and 85 and t2.c in ('y','z') and t2.a=t3.a and t3.c=t.c;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 range idx idx 133 NULL 2 100.00 Using index condition; Using where
-1 PRIMARY t3 ref idx_a idx_a 5 test.t2.a 2 100.00 Using where
-1 PRIMARY <derived2> ref key0 key0 128 test.t3.c 2 100.00
-2 LATERAL DERIVED t4 ref idx_c idx_c 128 test.t3.c 3 100.00 Using temporary
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t3`.`c` AS `c`,`t`.`c` AS `c`,`t`.`b` AS `b`,`t`.`sum(b) over (partition by c)` AS `sum(b) over (partition by c)` from `test`.`t2` join `test`.`t3` join (/* select#2 */ select `test`.`t4`.`c` AS `c`,`test`.`t4`.`b` AS `b`,sum(`test`.`t4`.`b`) over ( partition by `test`.`t4`.`c`) AS `sum(b) over (partition by c)` from `test`.`t4` where `test`.`t4`.`c` = `test`.`t3`.`c`) `t` where `test`.`t3`.`a` = `test`.`t2`.`a` and `t`.`c` = `test`.`t3`.`c` and `test`.`t2`.`b` between 80 and 85 and `test`.`t2`.`c` in ('y','z')
-explain format=json select *
-from t2, t3, (select c, b, sum(b) over (partition by c) from t4 ) t
-where t2.b between 80 and 85 and t2.c in ('y','z') and t2.a=t3.a and t3.c=t.c;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "133",
- "used_key_parts": ["c", "b"],
- "rows": 2,
- "filtered": 100,
- "index_condition": "t2.b between 80 and 85 and t2.c in ('y','z')",
- "attached_condition": "t2.a is not null"
- },
- "table": {
- "table_name": "t3",
- "access_type": "ref",
- "possible_keys": ["idx_a"],
- "key": "idx_a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t3.c is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "128",
- "used_key_parts": ["c"],
- "ref": ["test.t3.c"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "outer_ref_condition": "t3.c is not null",
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t4.c"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t4",
- "access_type": "ref",
- "possible_keys": ["idx_c"],
- "key": "idx_c",
- "key_length": "128",
- "used_key_parts": ["c"],
- "ref": ["test.t3.c"],
- "rows": 3,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-set statement optimizer_switch='split_materialized=off' for select *
-from t2, t3, (select c, b, sum(b) over (partition by c) from t4 ) t
-where t2.b < 40 and t2.a=t3.a and t3.c=t.c;
-a b c a b c c b sum(b) over (partition by c)
-7 10 x 7 17 cc cc 12 40
-7 10 x 7 17 cc cc 18 40
-7 10 x 7 17 cc cc 10 40
-7 10 x 7 18 aa aa 77 259
-7 10 x 7 18 aa aa 50 259
-7 10 x 7 18 aa aa 15 259
-7 10 x 7 18 aa aa 82 259
-7 10 x 7 18 aa aa 15 259
-7 10 x 7 18 aa aa 20 259
-7 10 x 7 10 bb bb 40 125
-7 10 x 7 10 bb bb 32 125
-7 10 x 7 10 bb bb 30 125
-7 10 x 7 10 bb bb 23 125
-1 20 a 1 14 bb bb 40 125
-1 20 a 1 14 bb bb 32 125
-1 20 a 1 14 bb bb 30 125
-1 20 a 1 14 bb bb 23 125
-2 23 b 2 12 aa aa 77 259
-2 23 b 2 12 aa aa 50 259
-2 23 b 2 12 aa aa 15 259
-2 23 b 2 12 aa aa 82 259
-2 23 b 2 12 aa aa 15 259
-2 23 b 2 12 aa aa 20 259
-2 23 b 2 11 aa aa 77 259
-2 23 b 2 11 aa aa 50 259
-2 23 b 2 11 aa aa 15 259
-2 23 b 2 11 aa aa 82 259
-2 23 b 2 11 aa aa 15 259
-2 23 b 2 11 aa aa 20 259
-7 18 z 7 17 cc cc 12 40
-7 18 z 7 17 cc cc 18 40
-7 18 z 7 17 cc cc 10 40
-7 18 z 7 18 aa aa 77 259
-7 18 z 7 18 aa aa 50 259
-7 18 z 7 18 aa aa 15 259
-7 18 z 7 18 aa aa 82 259
-7 18 z 7 18 aa aa 15 259
-7 18 z 7 18 aa aa 20 259
-7 18 z 7 10 bb bb 40 125
-7 18 z 7 10 bb bb 32 125
-7 18 z 7 10 bb bb 30 125
-7 18 z 7 10 bb bb 23 125
-1 30 c 1 14 bb bb 40 125
-1 30 c 1 14 bb bb 32 125
-1 30 c 1 14 bb bb 30 125
-1 30 c 1 14 bb bb 23 125
-3 15 x 3 11 dd dd 20 32
-3 15 x 3 11 dd dd 12 32
-8 12 t 8 11 aa aa 77 259
-8 12 t 8 11 aa aa 50 259
-8 12 t 8 11 aa aa 15 259
-8 12 t 8 11 aa aa 82 259
-8 12 t 8 11 aa aa 15 259
-8 12 t 8 11 aa aa 20 259
-11 33 a 11 24 bbf bbf 50 165
-11 33 a 11 24 bbf bbf 42 165
-11 33 a 11 24 bbf bbf 40 165
-11 33 a 11 24 bbf bbf 33 165
-17 10 s 17 27 ccf ccf 22 70
-17 10 s 17 27 ccf ccf 28 70
-17 10 s 17 27 ccf ccf 20 70
-17 10 s 17 28 aaf aaf 87 319
-17 10 s 17 28 aaf aaf 60 319
-17 10 s 17 28 aaf aaf 25 319
-17 10 s 17 28 aaf aaf 92 319
-17 10 s 17 28 aaf aaf 25 319
-17 10 s 17 28 aaf aaf 30 319
-17 10 s 17 20 bbf bbf 50 165
-17 10 s 17 20 bbf bbf 42 165
-17 10 s 17 20 bbf bbf 40 165
-17 10 s 17 20 bbf bbf 33 165
-11 20 v 11 24 bbf bbf 50 165
-11 20 v 11 24 bbf bbf 42 165
-11 20 v 11 24 bbf bbf 40 165
-11 20 v 11 24 bbf bbf 33 165
-12 23 y 12 22 aaf aaf 87 319
-12 23 y 12 22 aaf aaf 60 319
-12 23 y 12 22 aaf aaf 25 319
-12 23 y 12 22 aaf aaf 92 319
-12 23 y 12 22 aaf aaf 25 319
-12 23 y 12 22 aaf aaf 30 319
-12 23 y 12 21 aaf aaf 87 319
-12 23 y 12 21 aaf aaf 60 319
-12 23 y 12 21 aaf aaf 25 319
-12 23 y 12 21 aaf aaf 92 319
-12 23 y 12 21 aaf aaf 25 319
-12 23 y 12 21 aaf aaf 30 319
-17 18 a 17 27 ccf ccf 22 70
-17 18 a 17 27 ccf ccf 28 70
-17 18 a 17 27 ccf ccf 20 70
-17 18 a 17 28 aaf aaf 87 319
-17 18 a 17 28 aaf aaf 60 319
-17 18 a 17 28 aaf aaf 25 319
-17 18 a 17 28 aaf aaf 92 319
-17 18 a 17 28 aaf aaf 25 319
-17 18 a 17 28 aaf aaf 30 319
-17 18 a 17 20 bbf bbf 50 165
-17 18 a 17 20 bbf bbf 42 165
-17 18 a 17 20 bbf bbf 40 165
-17 18 a 17 20 bbf bbf 33 165
-11 30 d 11 24 bbf bbf 50 165
-11 30 d 11 24 bbf bbf 42 165
-11 30 d 11 24 bbf bbf 40 165
-11 30 d 11 24 bbf bbf 33 165
-17 20 xf 17 27 ccf ccf 22 70
-17 20 xf 17 27 ccf ccf 28 70
-17 20 xf 17 27 ccf ccf 20 70
-17 20 xf 17 28 aaf aaf 87 319
-17 20 xf 17 28 aaf aaf 60 319
-17 20 xf 17 28 aaf aaf 25 319
-17 20 xf 17 28 aaf aaf 92 319
-17 20 xf 17 28 aaf aaf 25 319
-17 20 xf 17 28 aaf aaf 30 319
-17 20 xf 17 20 bbf bbf 50 165
-17 20 xf 17 20 bbf bbf 42 165
-17 20 xf 17 20 bbf bbf 40 165
-17 20 xf 17 20 bbf bbf 33 165
-11 30 af 11 24 bbf bbf 50 165
-11 30 af 11 24 bbf bbf 42 165
-11 30 af 11 24 bbf bbf 40 165
-11 30 af 11 24 bbf bbf 33 165
-12 33 bf 12 22 aaf aaf 87 319
-12 33 bf 12 22 aaf aaf 60 319
-12 33 bf 12 22 aaf aaf 25 319
-12 33 bf 12 22 aaf aaf 92 319
-12 33 bf 12 22 aaf aaf 25 319
-12 33 bf 12 22 aaf aaf 30 319
-12 33 bf 12 21 aaf aaf 87 319
-12 33 bf 12 21 aaf aaf 60 319
-12 33 bf 12 21 aaf aaf 25 319
-12 33 bf 12 21 aaf aaf 92 319
-12 33 bf 12 21 aaf aaf 25 319
-12 33 bf 12 21 aaf aaf 30 319
-17 28 zf 17 27 ccf ccf 22 70
-17 28 zf 17 27 ccf ccf 28 70
-17 28 zf 17 27 ccf ccf 20 70
-17 28 zf 17 28 aaf aaf 87 319
-17 28 zf 17 28 aaf aaf 60 319
-17 28 zf 17 28 aaf aaf 25 319
-17 28 zf 17 28 aaf aaf 92 319
-17 28 zf 17 28 aaf aaf 25 319
-17 28 zf 17 28 aaf aaf 30 319
-17 28 zf 17 20 bbf bbf 50 165
-17 28 zf 17 20 bbf bbf 42 165
-17 28 zf 17 20 bbf bbf 40 165
-17 28 zf 17 20 bbf bbf 33 165
-13 25 xf 13 21 ddf ddf 30 52
-13 25 xf 13 21 ddf ddf 22 52
-18 22 tf 18 21 aaf aaf 87 319
-18 22 tf 18 21 aaf aaf 60 319
-18 22 tf 18 21 aaf aaf 25 319
-18 22 tf 18 21 aaf aaf 92 319
-18 22 tf 18 21 aaf aaf 25 319
-18 22 tf 18 21 aaf aaf 30 319
-select *
-from t2, t3, (select c, b, sum(b) over (partition by c) from t4 ) t
-where t2.b < 40 and t2.a=t3.a and t3.c=t.c;
-a b c a b c c b sum(b) over (partition by c)
-7 10 x 7 17 cc cc 12 40
-7 10 x 7 17 cc cc 18 40
-7 10 x 7 17 cc cc 10 40
-7 10 x 7 18 aa aa 77 259
-7 10 x 7 18 aa aa 50 259
-7 10 x 7 18 aa aa 15 259
-7 10 x 7 18 aa aa 82 259
-7 10 x 7 18 aa aa 15 259
-7 10 x 7 18 aa aa 20 259
-7 10 x 7 10 bb bb 40 125
-7 10 x 7 10 bb bb 32 125
-7 10 x 7 10 bb bb 30 125
-7 10 x 7 10 bb bb 23 125
-1 20 a 1 14 bb bb 40 125
-1 20 a 1 14 bb bb 32 125
-1 20 a 1 14 bb bb 30 125
-1 20 a 1 14 bb bb 23 125
-2 23 b 2 12 aa aa 77 259
-2 23 b 2 12 aa aa 50 259
-2 23 b 2 12 aa aa 15 259
-2 23 b 2 12 aa aa 82 259
-2 23 b 2 12 aa aa 15 259
-2 23 b 2 12 aa aa 20 259
-2 23 b 2 11 aa aa 77 259
-2 23 b 2 11 aa aa 50 259
-2 23 b 2 11 aa aa 15 259
-2 23 b 2 11 aa aa 82 259
-2 23 b 2 11 aa aa 15 259
-2 23 b 2 11 aa aa 20 259
-7 18 z 7 17 cc cc 12 40
-7 18 z 7 17 cc cc 18 40
-7 18 z 7 17 cc cc 10 40
-7 18 z 7 18 aa aa 77 259
-7 18 z 7 18 aa aa 50 259
-7 18 z 7 18 aa aa 15 259
-7 18 z 7 18 aa aa 82 259
-7 18 z 7 18 aa aa 15 259
-7 18 z 7 18 aa aa 20 259
-7 18 z 7 10 bb bb 40 125
-7 18 z 7 10 bb bb 32 125
-7 18 z 7 10 bb bb 30 125
-7 18 z 7 10 bb bb 23 125
-1 30 c 1 14 bb bb 40 125
-1 30 c 1 14 bb bb 32 125
-1 30 c 1 14 bb bb 30 125
-1 30 c 1 14 bb bb 23 125
-3 15 x 3 11 dd dd 20 32
-3 15 x 3 11 dd dd 12 32
-8 12 t 8 11 aa aa 77 259
-8 12 t 8 11 aa aa 50 259
-8 12 t 8 11 aa aa 15 259
-8 12 t 8 11 aa aa 82 259
-8 12 t 8 11 aa aa 15 259
-8 12 t 8 11 aa aa 20 259
-11 33 a 11 24 bbf bbf 50 165
-11 33 a 11 24 bbf bbf 42 165
-11 33 a 11 24 bbf bbf 40 165
-11 33 a 11 24 bbf bbf 33 165
-17 10 s 17 27 ccf ccf 22 70
-17 10 s 17 27 ccf ccf 28 70
-17 10 s 17 27 ccf ccf 20 70
-17 10 s 17 28 aaf aaf 87 319
-17 10 s 17 28 aaf aaf 60 319
-17 10 s 17 28 aaf aaf 25 319
-17 10 s 17 28 aaf aaf 92 319
-17 10 s 17 28 aaf aaf 25 319
-17 10 s 17 28 aaf aaf 30 319
-17 10 s 17 20 bbf bbf 50 165
-17 10 s 17 20 bbf bbf 42 165
-17 10 s 17 20 bbf bbf 40 165
-17 10 s 17 20 bbf bbf 33 165
-11 20 v 11 24 bbf bbf 50 165
-11 20 v 11 24 bbf bbf 42 165
-11 20 v 11 24 bbf bbf 40 165
-11 20 v 11 24 bbf bbf 33 165
-12 23 y 12 22 aaf aaf 87 319
-12 23 y 12 22 aaf aaf 60 319
-12 23 y 12 22 aaf aaf 25 319
-12 23 y 12 22 aaf aaf 92 319
-12 23 y 12 22 aaf aaf 25 319
-12 23 y 12 22 aaf aaf 30 319
-12 23 y 12 21 aaf aaf 87 319
-12 23 y 12 21 aaf aaf 60 319
-12 23 y 12 21 aaf aaf 25 319
-12 23 y 12 21 aaf aaf 92 319
-12 23 y 12 21 aaf aaf 25 319
-12 23 y 12 21 aaf aaf 30 319
-17 18 a 17 27 ccf ccf 22 70
-17 18 a 17 27 ccf ccf 28 70
-17 18 a 17 27 ccf ccf 20 70
-17 18 a 17 28 aaf aaf 87 319
-17 18 a 17 28 aaf aaf 60 319
-17 18 a 17 28 aaf aaf 25 319
-17 18 a 17 28 aaf aaf 92 319
-17 18 a 17 28 aaf aaf 25 319
-17 18 a 17 28 aaf aaf 30 319
-17 18 a 17 20 bbf bbf 50 165
-17 18 a 17 20 bbf bbf 42 165
-17 18 a 17 20 bbf bbf 40 165
-17 18 a 17 20 bbf bbf 33 165
-11 30 d 11 24 bbf bbf 50 165
-11 30 d 11 24 bbf bbf 42 165
-11 30 d 11 24 bbf bbf 40 165
-11 30 d 11 24 bbf bbf 33 165
-17 20 xf 17 27 ccf ccf 22 70
-17 20 xf 17 27 ccf ccf 28 70
-17 20 xf 17 27 ccf ccf 20 70
-17 20 xf 17 28 aaf aaf 87 319
-17 20 xf 17 28 aaf aaf 60 319
-17 20 xf 17 28 aaf aaf 25 319
-17 20 xf 17 28 aaf aaf 92 319
-17 20 xf 17 28 aaf aaf 25 319
-17 20 xf 17 28 aaf aaf 30 319
-17 20 xf 17 20 bbf bbf 50 165
-17 20 xf 17 20 bbf bbf 42 165
-17 20 xf 17 20 bbf bbf 40 165
-17 20 xf 17 20 bbf bbf 33 165
-11 30 af 11 24 bbf bbf 50 165
-11 30 af 11 24 bbf bbf 42 165
-11 30 af 11 24 bbf bbf 40 165
-11 30 af 11 24 bbf bbf 33 165
-12 33 bf 12 22 aaf aaf 87 319
-12 33 bf 12 22 aaf aaf 60 319
-12 33 bf 12 22 aaf aaf 25 319
-12 33 bf 12 22 aaf aaf 92 319
-12 33 bf 12 22 aaf aaf 25 319
-12 33 bf 12 22 aaf aaf 30 319
-12 33 bf 12 21 aaf aaf 87 319
-12 33 bf 12 21 aaf aaf 60 319
-12 33 bf 12 21 aaf aaf 25 319
-12 33 bf 12 21 aaf aaf 92 319
-12 33 bf 12 21 aaf aaf 25 319
-12 33 bf 12 21 aaf aaf 30 319
-17 28 zf 17 27 ccf ccf 22 70
-17 28 zf 17 27 ccf ccf 28 70
-17 28 zf 17 27 ccf ccf 20 70
-17 28 zf 17 28 aaf aaf 87 319
-17 28 zf 17 28 aaf aaf 60 319
-17 28 zf 17 28 aaf aaf 25 319
-17 28 zf 17 28 aaf aaf 92 319
-17 28 zf 17 28 aaf aaf 25 319
-17 28 zf 17 28 aaf aaf 30 319
-17 28 zf 17 20 bbf bbf 50 165
-17 28 zf 17 20 bbf bbf 42 165
-17 28 zf 17 20 bbf bbf 40 165
-17 28 zf 17 20 bbf bbf 33 165
-13 25 xf 13 21 ddf ddf 30 52
-13 25 xf 13 21 ddf ddf 22 52
-18 22 tf 18 21 aaf aaf 87 319
-18 22 tf 18 21 aaf aaf 60 319
-18 22 tf 18 21 aaf aaf 25 319
-18 22 tf 18 21 aaf aaf 92 319
-18 22 tf 18 21 aaf aaf 25 319
-18 22 tf 18 21 aaf aaf 30 319
-explain extended select *
-from t2, t3, (select c, b, sum(b) over (partition by c) from t4 ) t
-where t2.b < 40 and t2.a=t3.a and t3.c=t.c;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 90 100.00 Using where
-1 PRIMARY t3 ref idx_a idx_a 5 test.t2.a 2 100.00 Using where
-1 PRIMARY <derived2> ref key0 key0 128 test.t3.c 10 100.00
-2 DERIVED t4 ALL idx_c NULL NULL NULL 160 100.00 Using temporary
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t3`.`c` AS `c`,`t`.`c` AS `c`,`t`.`b` AS `b`,`t`.`sum(b) over (partition by c)` AS `sum(b) over (partition by c)` from `test`.`t2` join `test`.`t3` join (/* select#2 */ select `test`.`t4`.`c` AS `c`,`test`.`t4`.`b` AS `b`,sum(`test`.`t4`.`b`) over ( partition by `test`.`t4`.`c`) AS `sum(b) over (partition by c)` from `test`.`t4`) `t` where `test`.`t3`.`a` = `test`.`t2`.`a` and `t`.`c` = `test`.`t3`.`c` and `test`.`t2`.`b` < 40
-explain format=json select *
-from t2, t3, (select c, b, sum(b) over (partition by c) from t4 ) t
-where t2.b < 40 and t2.a=t3.a and t3.c=t.c;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 90,
- "filtered": 100,
- "attached_condition": "t2.b < 40 and t2.a is not null"
- },
- "table": {
- "table_name": "t3",
- "access_type": "ref",
- "possible_keys": ["idx_a"],
- "key": "idx_a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t3.c is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "128",
- "used_key_parts": ["c"],
- "ref": ["test.t3.c"],
- "rows": 10,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t4.c"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t4",
- "access_type": "ALL",
- "possible_keys": ["idx_c"],
- "rows": 160,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-drop table t1,t2,t3,t4;
-#
-# MDEV-13709: Optimization for semi-joins of grouping derived tables
-# (Splitting derived tables / views with GROUP BY)
-#
-CREATE TABLE t1 (i int);
-INSERT INTO t1 VALUES (1),(9),(3);
-CREATE TABLE t2 (a int, i int);
-INSERT INTO t2 VALUES (1,9),(2,3),(3,7),(4,1);
-CREATE TABLE t3 (a int, c char(127), index(c));
-INSERT INTO t3 VALUES (1,'foo'),(3,'bar'),(4,'foo'),(2,'bar');
-INSERT INTO t3 SELECT a, concat(c,'a') FROM t3;
-CREATE TABLE t4 (a int, c char(127), index(a));
-INSERT INTO t4 VALUES
-(3,'abc'),(1,'foo'),(4,'def'),(8,'xxx'),(3,'yyy'),
-(5,'zzz'),(9,'xyz'),(2,'yxz'),(5,'zxy'),(7,'zyx') ;
-ANALYZE TABLE t1,t2,t3,t4;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-test.t2 analyze status OK
-test.t3 analyze status OK
-test.t4 analyze status OK
-CREATE VIEW v1 AS
-SELECT c FROM t3
-WHERE a IN ( SELECT t2.a FROM t1 JOIN t2 WHERE t1.i = t2.i ) GROUP BY c ;
-set statement optimizer_switch='split_materialized=off' for SELECT * FROM t4 WHERE c IN ( SELECT c FROM v1 ) and a < 2;
-a c
-1 foo
-SELECT * FROM t4 WHERE c IN ( SELECT c FROM v1 ) and a < 2;
-a c
-1 foo
-explain extended SELECT * FROM t4 WHERE c IN ( SELECT c FROM v1 ) and a < 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t4 range a a 5 NULL 1 100.00 Using index condition; Using where
-1 PRIMARY <derived3> ref key0 key0 128 test.t4.c 2 100.00 FirstMatch(t4)
-3 LATERAL DERIVED t3 ref c c 128 test.t4.c 2 100.00
-3 LATERAL DERIVED <subquery4> eq_ref distinct_key distinct_key 4 func 1 100.00
-4 MATERIALIZED t1 ALL NULL NULL NULL NULL 3 100.00
-4 MATERIALIZED t2 ALL NULL NULL NULL NULL 4 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t4`.`a` AS `a`,`test`.`t4`.`c` AS `c` from `test`.`t4` semi join (`test`.`v1`) where `v1`.`c` = `test`.`t4`.`c` and `test`.`t4`.`a` < 2
-explain format=json SELECT * FROM t4 WHERE c IN ( SELECT c FROM v1 ) and a < 2;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t4",
- "access_type": "range",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 1,
- "filtered": 100,
- "index_condition": "t4.a < 2",
- "attached_condition": "t4.c is not null"
- },
- "table": {
- "table_name": "<derived3>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "128",
- "used_key_parts": ["c"],
- "ref": ["test.t4.c"],
- "rows": 2,
- "filtered": 100,
- "first_match": "t4",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "const_condition": "1",
- "outer_ref_condition": "t4.c is not null",
- "table": {
- "table_name": "t3",
- "access_type": "ref",
- "possible_keys": ["c"],
- "key": "c",
- "key_length": "128",
- "used_key_parts": ["c"],
- "ref": ["test.t4.c"],
- "rows": 2,
- "filtered": 100
- },
- "table": {
- "table_name": "<subquery4>",
- "access_type": "eq_ref",
- "possible_keys": ["distinct_key"],
- "key": "distinct_key",
- "key_length": "4",
- "used_key_parts": ["a"],
- "ref": ["func"],
- "rows": 1,
- "filtered": 100,
- "materialized": {
- "unique": 1,
- "query_block": {
- "select_id": 4,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 4,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t2.i = t1.i and t2.i = t1.i"
- }
- }
- }
- }
- }
- }
- }
- }
-}
-DROP VIEW v1;
-DROP TABLE t1,t2,t3,t4;
-#
-# MDEV-13710: Optimization for equi-joins of grouping derived tables
-# (Splitting derived tables / views with GROUP BY) :
-# FROM list of the derived table contains constant tables
-#
-CREATE TABLE t1 (a int, INDEX(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (9),(5),(1);
-CREATE TABLE t2 (b int) ENGINE=MyISAM;
-CREATE TABLE t3 (c varchar(8), d int) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('foo',2),('bar',6);
-CREATE VIEW v1 AS SELECT a FROM t1, t2 GROUP BY a;
-SELECT * FROM t3
-WHERE d IN ( SELECT * FROM v1 ) AND c LIKE 'z%' OR c IS NULL;
-c d
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# MDEV-13734: Optimization for equi-joins of grouping derived tables
-# (Splitting derived tables / views with GROUP BY) :
-# derived table / view is empty
-#
-CREATE TABLE t1 (a int, b int, INDEX(a)) ENGINE=MyISAM;
-CREATE TABLE t2 (c int) ENGINE=MyISAM;
-CREATE VIEW v1 AS SELECT a, b FROM t1 STRAIGHT_JOIN t2;
-CREATE VIEW v2 AS SELECT a, max(b) as bmax FROM v1 GROUP BY a;
-CREATE VIEW v3 AS SELECT v2.* FROM t1 JOIN v2 ON t1.b = v2.bmax ;
-SELECT * FROM v3 JOIN t1 ON (bmax = b);
-a bmax a b
-DROP VIEW v1,v2,v3;
-DROP TABLE t1,t2;
-#
-# MDEV-14845: Impossible where for derived with GROUP BY
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY);
-INSERT INTO t1 VALUES (1),(2);
-WITH cte AS ( SELECT pk FROM t1 WHERE pk IS NULL GROUP BY pk )
-SELECT * FROM cte;
-pk
-EXPLAIN EXTENDED WITH cte AS ( SELECT pk FROM t1 WHERE pk IS NULL GROUP BY pk )
-SELECT * FROM cte;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 0 0.00 Const row not found
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 with cte as (/* select#2 */ select `test`.`t1`.`pk` AS `pk` from `test`.`t1` where 0 group by `test`.`t1`.`pk`)/* select#1 */ select NULL AS `pk` from `cte`
-DROP TABLE t1;
-#
-# MDEV-14880: assertion failure in optimizer when splitting is applied
-#
-CREATE TABLE t1 (pk1 INT PRIMARY KEY, f INT) ENGINE=Aria;
-INSERT INTO t1 VALUES (1,0),(2,0);
-CREATE TABLE t2 (pk2 INT PRIMARY KEY) ENGINE=Aria;
-INSERT INTO t2 VALUES (1),(2),(3);
-CREATE VIEW v2 AS SELECT pk2, COUNT(*) AS cnt FROM t2 GROUP BY pk2;
-SELECT * FROM t1 INNER JOIN v2 ON pk1 = pk2 WHERE f <> 5;
-pk1 f pk2 cnt
-1 0 1 1
-2 0 2 1
-EXPLAIN EXTENDED SELECT * FROM t1 INNER JOIN v2 ON pk1 = pk2 WHERE f <> 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 2 100.00 Using where
-1 PRIMARY <derived2> ref key0 key0 4 test.t1.pk1 2 100.00
-2 LATERAL DERIVED t2 eq_ref PRIMARY PRIMARY 4 test.t1.pk1 1 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`pk1` AS `pk1`,`test`.`t1`.`f` AS `f`,`v2`.`pk2` AS `pk2`,`v2`.`cnt` AS `cnt` from `test`.`t1` join `test`.`v2` where `v2`.`pk2` = `test`.`t1`.`pk1` and `test`.`t1`.`f` <> 5
-EXPLAIN FORMAT=JSON SELECT * FROM t1 INNER JOIN v2 ON pk1 = pk2 WHERE f <> 5;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "possible_keys": ["PRIMARY"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t1.f <> 5"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "4",
- "used_key_parts": ["pk2"],
- "ref": ["test.t1.pk1"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "outer_ref_condition": "t1.pk1 is not null",
- "table": {
- "table_name": "t2",
- "access_type": "eq_ref",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["pk2"],
- "ref": ["test.t1.pk1"],
- "rows": 1,
- "filtered": 100,
- "using_index": true
- }
- }
- }
- }
- }
-}
-DROP VIEW v2;
-DROP TABLE t1,t2;
-#
-# MDEV-15017: splittable table is constant table
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-CREATE TABLE t2 (pk INT, b INT, PRIMARY KEY (pk)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,2),(3,4);
-CREATE VIEW v2 AS SELECT pk, MIN(b) FROM t2 GROUP BY pk;
-SELECT * FROM t1 LEFT JOIN v2 ON (a = pk);
-a pk MIN(b)
-DROP VIEW v2;
-DROP TABLE t1,t2;
-#
-# MDEV-14994: splittable table with no rows
-#
-CREATE TABLE t1 (f INT PRIMARY KEY) ENGINE=MyISAM;
-CREATE VIEW v1 AS SELECT a.* FROM t1 AS a STRAIGHT_JOIN t1 AS b;
-CREATE VIEW v2 AS SELECT f FROM v1 GROUP BY f;
-SELECT * FROM v1 JOIN v2 ON v1.f = v2.f;
-f f
-EXPLAIN EXTENDED
-SELECT * FROM v1 JOIN v2 ON v1.f = v2.f;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-3 LATERAL DERIVED NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select NULL AS `f`,`v2`.`f` AS `f` from `test`.`t1` `a` straight_join `test`.`t1` `b` join `test`.`v2` where 0
-DROP VIEW v1,v2;
-DROP TABLE t1;
diff --git a/mysql-test/r/derived_opt.result b/mysql-test/r/derived_opt.result
deleted file mode 100644
index 6e4ea1b5d36..00000000000
--- a/mysql-test/r/derived_opt.result
+++ /dev/null
@@ -1,507 +0,0 @@
-drop table if exists t0,t1,t2,t3;
-drop database if exists test1;
-set @exit_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=on,derived_with_keys=on';
-set @save_optimizer_switch=@@optimizer_switch;
-CREATE TABLE t1 (a int not null, b char (10) not null);
-insert into t1 values(1,'a'),(2,'b'),(3,'c'),(3,'c');
-CREATE TABLE t2 (a int not null, b char (10) not null);
-insert into t2 values (3,'c'),(4,'d'),(5,'f'),(6,'e');
-CREATE TABLE t3 (a int not null, b char (10) not null);
-insert into t3 values (3,'f'),(4,'y'),(5,'z'),(6,'c');
-select * from t1 as x1, (select * from t1) as x2;
-a b a b
-1 a 1 a
-2 b 1 a
-3 c 1 a
-3 c 1 a
-1 a 2 b
-2 b 2 b
-3 c 2 b
-3 c 2 b
-1 a 3 c
-2 b 3 c
-3 c 3 c
-3 c 3 c
-1 a 3 c
-2 b 3 c
-3 c 3 c
-3 c 3 c
-explain select * from t1 as x1, (select * from t1) as x2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE x1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using join buffer (flat, BNL join)
-drop table if exists t2,t3;
-CREATE TABLE t2 (a int not null);
-insert into t2 values(1);
-select * from (select t1.*, t2.a as t2a from t1,t2 where t1.a=t2.a) t1;
-a b t2a
-1 a 1
-explain select * from (select t1.*, t2.a as t2a from t1,t2 where t1.a=t2.a) t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-drop table t1, t2;
-create table t1(a int not null, t char(8), index(a));
-SELECT * FROM (SELECT * FROM t1) as b ORDER BY a ASC LIMIT 0,20;
-a t
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 9
-10 10
-11 11
-12 12
-13 13
-14 14
-15 15
-16 16
-17 17
-18 18
-19 19
-20 20
-explain select count(*) from t1 as tt1, (select * from t1) as tt2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-drop table t1;
-create table t1 (mat_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, matintnum CHAR(6) NOT NULL, test MEDIUMINT UNSIGNED NULL);
-create table t2 (mat_id MEDIUMINT UNSIGNED NOT NULL, pla_id MEDIUMINT UNSIGNED NOT NULL);
-insert into t1 values (NULL, 'a', 1), (NULL, 'b', 2), (NULL, 'c', 3), (NULL, 'd', 4), (NULL, 'e', 5), (NULL, 'f', 6), (NULL, 'g', 7), (NULL, 'h', 8), (NULL, 'i', 9);
-insert into t2 values (1, 100), (1, 101), (1, 102), (2, 100), (2, 103), (2, 104), (3, 101), (3, 102), (3, 105);
-SELECT STRAIGHT_JOIN d.pla_id, m2.mat_id FROM t1 m2 INNER JOIN (SELECT mp.pla_id, MIN(m1.matintnum) AS matintnum FROM t2 mp INNER JOIN t1 m1 ON mp.mat_id=m1.mat_id GROUP BY mp.pla_id) d ON d.matintnum=m2.matintnum;
-pla_id mat_id
-102 1
-101 1
-100 1
-104 2
-103 2
-105 3
-SELECT STRAIGHT_JOIN d.pla_id, m2.test FROM t1 m2 INNER JOIN (SELECT mp.pla_id, MIN(m1.matintnum) AS matintnum FROM t2 mp INNER JOIN t1 m1 ON mp.mat_id=m1.mat_id GROUP BY mp.pla_id) d ON d.matintnum=m2.matintnum;
-pla_id test
-102 1
-101 1
-100 1
-104 2
-103 2
-105 3
-explain SELECT STRAIGHT_JOIN d.pla_id, m2.mat_id FROM t1 m2 INNER JOIN (SELECT mp.pla_id, MIN(m1.matintnum) AS matintnum FROM t2 mp INNER JOIN t1 m1 ON mp.mat_id=m1.mat_id GROUP BY mp.pla_id) d ON d.matintnum=m2.matintnum;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY m2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ref key0 key0 7 test.m2.matintnum 2
-2 DERIVED mp ALL NULL NULL NULL NULL 9 Using temporary; Using filesort
-2 DERIVED m1 eq_ref PRIMARY PRIMARY 3 test.mp.mat_id 1
-explain SELECT STRAIGHT_JOIN d.pla_id, m2.test FROM t1 m2 INNER JOIN (SELECT mp.pla_id, MIN(m1.matintnum) AS matintnum FROM t2 mp INNER JOIN t1 m1 ON mp.mat_id=m1.mat_id GROUP BY mp.pla_id) d ON d.matintnum=m2.matintnum;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY m2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ref key0 key0 7 test.m2.matintnum 2
-2 DERIVED mp ALL NULL NULL NULL NULL 9 Using temporary; Using filesort
-2 DERIVED m1 eq_ref PRIMARY PRIMARY 3 test.mp.mat_id 1
-drop table t1,t2;
-create table t1 (E1 INTEGER UNSIGNED NOT NULL, E2 INTEGER UNSIGNED NOT NULL, E3 INTEGER UNSIGNED NOT NULL, PRIMARY KEY(E1)
-);
-insert into t1 VALUES(1,1,1), (2,2,1);
-select count(*) from t1 INNER JOIN (SELECT A.E1, A.E2, A.E3 FROM t1 AS A WHERE A.E3 = (SELECT MAX(B.E3) FROM t1 AS B WHERE A.E2 = B.E2)) AS THEMAX ON t1.E1 = THEMAX.E2 AND t1.E1 = t1.E2;
-count(*)
-2
-explain select count(*) from t1 INNER JOIN (SELECT A.E1, A.E2, A.E3 FROM t1 AS A WHERE A.E3 = (SELECT MAX(B.E3) FROM t1 AS B WHERE A.E2 = B.E2)) AS THEMAX ON t1.E1 = THEMAX.E2 AND t1.E1 = t1.E2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.A.E2 1 Using where
-3 DEPENDENT SUBQUERY B ALL NULL NULL NULL NULL 2 Using where
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(2);
-select * from ( select * from t1 union select * from t1) a,(select * from t1 union select * from t1) b;
-a a
-1 1
-2 1
-1 2
-2 2
-explain select * from ( select * from t1 union select * from t1) a,(select * from t1 union select * from t1) b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4
-1 PRIMARY <derived4> ALL NULL NULL NULL NULL 4 Using join buffer (flat, BNL join)
-4 DERIVED t1 ALL NULL NULL NULL NULL 2
-5 UNION t1 ALL NULL NULL NULL NULL 2
-NULL UNION RESULT <union4,5> ALL NULL NULL NULL NULL NULL
-2 DERIVED t1 ALL NULL NULL NULL NULL 2
-3 UNION t1 ALL NULL NULL NULL NULL 2
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-drop table t1;
-create table t2 (a int, b int, primary key (a));
-insert into t2 values (1,7),(2,7);
-explain select a from t2 where a>1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index PRIMARY PRIMARY 4 NULL 2 Using where; Using index
-explain select a from (select a from t2 where a>1) tt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index PRIMARY PRIMARY 4 NULL 2 Using where; Using index
-drop table t2;
-create table t1
-(
-c1 tinyint, c2 smallint, c3 mediumint, c4 int,
-c5 integer, c6 bigint, c7 float, c8 double,
-c9 double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
-c13 date, c14 datetime, c15 timestamp, c16 time,
-c17 year, c18 bit, c19 bool, c20 char,
-c21 char(10), c22 varchar(30), c23 tinyblob, c24 tinytext,
-c25 blob, c26 text, c27 mediumblob, c28 mediumtext,
-c29 longblob, c30 longtext, c31 enum('one', 'two', 'three'),
-c32 set('monday', 'tuesday', 'wednesday')
-) engine = MYISAM ;
-create table t2 like t1;
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch="partial_match_rowid_merge=off,partial_match_table_scan=off";
-set @stmt= ' explain SELECT (SELECT SUM(c1 + c12 + 0.0) FROM t2 where (t1.c2 - 0e-3) = t2.c2 GROUP BY t1.c15 LIMIT 1) as scalar_s, exists (select 1.0e+0 from t2 where t2.c3 * 9.0000000000 = t1.c4) as exists_s, c5 * 4 in (select c6 + 0.3e+1 from t2) as in_s, (c7 - 4, c8 - 4) in (select c9 + 4.0, c10 + 40e-1 from t2) as in_row_s FROM t1, (select c25 x, c32 y from t2) tt WHERE x * 1 = c25 ' ;
-prepare stmt1 from @stmt ;
-execute stmt1 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-5 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-4 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-execute stmt1 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-5 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-4 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain SELECT (SELECT SUM(c1 + c12 + 0.0) FROM t2 where (t1.c2 - 0e-3) = t2.c2 GROUP BY t1.c15 LIMIT 1) as scalar_s, exists (select 1.0e+0 from t2 where t2.c3 * 9.0000000000 = t1.c4) as exists_s, c5 * 4 in (select c6 + 0.3e+1 from t2) as in_s, (c7 - 4, c8 - 4) in (select c9 + 4.0, c10 + 40e-1 from t2) as in_row_s FROM t1, (select c25 x, c32 y from t2) tt WHERE x * 1 = c25;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-5 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-4 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-deallocate prepare stmt1;
-drop tables t1,t2;
-set @@optimizer_switch=@save_optimizer_switch;
-#
-# LP bug #793436: query with a derived table for which optimizer proves
-# that it contains not more than 1 row
-#
-CREATE TABLE t1 (a int, KEY (a)) ;
-INSERT INTO t1 VALUES (3), (1);
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES (3);
-EXPLAIN
-SELECT * FROM (SELECT DISTINCT * FROM t2) t, t1 WHERE t1.a = t.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 1
-1 PRIMARY t1 ref a a 5 const 1 Using index
-2 DERIVED t2 system NULL NULL NULL NULL 1
-SELECT * FROM (SELECT DISTINCT * FROM t2) t, t1 WHERE t1.a = t.a;
-a a
-3 3
-DROP TABLE t1,t2;
-#
-# LP bug #800518: crash with a query over a derived table
-# when a min/max optimization is applied
-#
-CREATE TABLE t1 (a int, b int, c varchar(10), INDEX idx(a,b)) ;
-INSERT INTO t1 VALUES
-(100, 3, 'xxx'), (200, 7, 'yyyyyyy'), (100, 1, 't'),
-(200, 4, 'aaaa'), (100, 3, 'eee'), (100, 5, 'zzzzz');
-EXPLAIN
-SELECT MAX(b) FROM (SELECT * FROM t1) AS t WHERE a = 100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-SELECT MAX(b) FROM (SELECT * FROM t1) AS t WHERE a = 100;
-MAX(b)
-5
-DROP TABLE t1;
-#
-# LP bug #799499: query over a materialized view
-# accessed by a key
-#
-CREATE TABLE t1 (a int) ;
-INSERT INTO t1 VALUES (8);
-CREATE TABLE t2 (a int, b int) ;
-INSERT INTO t2 VALUES
-(262, NULL), (253, 190), (260, NULL), (250, 163), (188, 8),
-(257,200), (256, NULL), (255, 8), (249, NULL), (259, 7);
-CREATE VIEW v1 AS SELECT a, MIN(b) AS b FROM t2 GROUP BY a;
-EXPLAIN
-SELECT * FROM v1, t1 WHERE v1.b=t1.a ORDER BY v1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY <derived2> ref key0 key0 5 const 1 Using where; Using filesort
-2 DERIVED t2 ALL NULL NULL NULL NULL 10 Using temporary; Using filesort
-SELECT * FROM v1, t1 WHERE v1.b=t1.a ORDER BY v1.a;
-a b a
-188 8 8
-255 8 8
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# LP bug #800085: crash with a query using a simple derived table
-# (fixed by the patch for bug 798621)
-#
-CREATE TABLE t1 (f1 int, f2 varchar(32)) ;
-INSERT INTO t1 VALUES (NULL,'j'), (8,'c');
-CREATE TABLE t2 (f1 int);
-INSERT INTO t2 VALUES (1), (5);
-SELECT DISTINCT t.f1 FROM (SELECT * FROM t1) AS t, t2
-WHERE t.f2='s' AND t.f2 LIKE '%a%' OR t.f1<>0 ORDER BY t.f2;
-f1
-8
-DROP TABLE t1, t2;
-#
-# BUG##806524: Assertion `join->best_read < 1.7976931348623157e+308 with table_elimination=on and derived_merge=on
-#
-CREATE TABLE t1 ( f4 int) ;
-CREATE TABLE t2 ( f4 int) ;
-CREATE TABLE t3 ( f1 int NOT NULL , PRIMARY KEY (f1)) ;
-CREATE TABLE t4 ( f2 int, f4 int) ;
-SELECT *
-FROM ( SELECT * FROM t1 ) AS alias1
-RIGHT JOIN (
-t2 AS alias2
-LEFT JOIN (
-SELECT t4.*
-FROM ( SELECT * FROM t3 ) AS SQ1_alias1
-RIGHT JOIN t4
-ON t4.f2 = SQ1_alias1.f1
-) AS alias3
-ON alias3.f4 != 0
-) ON alias3.f4 != 0;
-f4 f4 f2 f4
-drop table t1,t2,t3,t4;
-#
-# LP BUG#910123 MariaDB 5.3.3 causes 1093 error on Drupal
-# Fix: force materialization in case of conflict
-#
-SET optimizer_switch='derived_merge=on';
-CREATE TABLE t1 ( i INT );
-INSERT INTO t1 VALUES ( (SELECT 1 FROM ( SELECT * FROM t1 ) as a) );
-drop table t1;
-set optimizer_switch=@save_optimizer_switch;
-#
-# MDEV-3801 Reproducible sub select join crash on 5.3.8 and 5.3.9
-#
-CREATE TABLE t1 (
-pk int(10) unsigned NOT NULL AUTO_INCREMENT,
-a char(2) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY a (a)
-) ENGINE=MyISAM;
-INSERT INTO t1 (a)
-VALUES (NULL),(NULL),(NULL),('AB'),(NULL),('CD'),(NULL),(NULL);
-INSERT INTO t1 SELECT NULL, a1.a FROM t1 a1, t1 a2, t1 a3, t1 a4, t1 a5;
-CREATE TABLE t2 (
-pk int(10) unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL);
-INSERT INTO t2 SELECT NULL FROM t2 a1, t2 a2, t2 a3, t2 a4, t2 a5;
-CREATE TABLE t3 (
-pk int(10) unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY
-) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL);
-INSERT INTO t3 SELECT NULL FROM t3 a1, t3 a2, t3 a3, t3 a4, t3 a5;
-CREATE TABLE t4 (
-a char(2) NOT NULL DEFAULT '',
-PRIMARY KEY (a)
-) ENGINE=MyISAM;
-INSERT INTO t4 VALUES ('CD');
-set @@tmp_table_size=8192;
-EXPLAIN
-SELECT * FROM t3 AS tx JOIN t2 AS ty ON (tx.pk = ty.pk)
-WHERE
-tx.pk IN
-(SELECT *
-FROM (SELECT DISTINCT ta.pk
-FROM t3 AS ta
-JOIN t2 AS tb ON (ta.pk = tb.pk)
-JOIN t1 AS tc ON (tb.pk = tc.pk)
-JOIN t4 AS td ON tc.a = td.a) tu)
-limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL #
-1 PRIMARY tx eq_ref PRIMARY PRIMARY 4 tu.pk # Using index
-1 PRIMARY ty eq_ref PRIMARY PRIMARY 4 tu.pk # Using index
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL #
-3 DERIVED td system PRIMARY NULL NULL NULL # Using temporary
-3 DERIVED tc ref PRIMARY,a a 3 const #
-3 DERIVED ta eq_ref PRIMARY PRIMARY 4 test.tc.pk # Using index
-3 DERIVED tb eq_ref PRIMARY PRIMARY 4 test.tc.pk # Using index; Distinct
-SELECT * FROM t3 AS tX JOIN t2 AS tY ON (tX.pk = tY.pk)
-WHERE
-tX.pk IN
-(SELECT *
-FROM (SELECT DISTINCT tA.pk
-FROM t3 AS tA
-JOIN t2 AS tB ON (tA.pk = tB.pk)
-JOIN t1 AS tC ON (tB.pk = tC.pk)
-JOIN t4 AS tD ON tC.a = tD.a) tU)
-limit 10;
-pk pk
-6 6
-16 16
-24 24
-32 32
-40 40
-48 48
-56 56
-64 64
-72 72
-80 80
-drop table t1, t2, t3, t4;
-#
-# MDEV-6888: Query spends a long time in best_extension_by_limited_search with mrr enabled
-#
-create database test1;
-use test1;
-set @tmp_jcl= @@join_cache_level;
-set @tmp_os= @@optimizer_switch;
-set join_cache_level=8;
-set optimizer_switch='mrr=on,mrr_sort_keys=on';
-CREATE TABLE t0 (
-f1 bigint(20) DEFAULT NULL,
-f2 char(50) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1;
-INSERT INTO t0 VALUES (NULL,'numeric column is NULL'),(0,NULL),(5,'five'),(1,'one'),(2,'two');
-CREATE TABLE t1 (
-f1 decimal(64,30) DEFAULT NULL,
-f2 varchar(50) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES
-(NULL,'numeric column is NULL'),
-(0.000000000000000000000000000000,NULL),
-(5.000000000000000000000000000000,'five'),
-(1.000000000000000000000000000000,'one'),
-(3.000000000000000000000000000000,'three');
-CREATE TABLE t2 (
-f1 double DEFAULT NULL,
-f2 varbinary(50) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1;
-INSERT INTO t2 VALUES (NULL,'numeric column is NULL'),(0,NULL),(5,'five'),(2,'two'),(3,'three');
-create VIEW v0 AS select f1,f2 from t1 ;
-create VIEW v1 AS select tab1_v1.f1,tab1_v1.f2 from t1 tab1_v1 join v0 tab2 on tab1_v1.f1 = tab2.f1 and tab1_v1.f2 = tab2.f2;
-create VIEW v2 AS select tab1_v2.f1,tab1_v2.f2 from t2 tab1_v2 join v1 tab2 on tab1_v2.f1 = tab2.f1 and tab1_v2.f2 = tab2.f2;
-create VIEW v3 AS select tab1_v3.f1,tab1_v3.f2 from t0 tab1_v3 join v2 tab2 on tab1_v3.f1 = tab2.f1 and tab1_v3.f2 = tab2.f2;
-create VIEW v4 AS select tab1_v4.f1,tab1_v4.f2 from t1 tab1_v4 join v3 tab2 on tab1_v4.f1 = tab2.f1 and tab1_v4.f2 = tab2.f2;
-create VIEW v5 AS select tab1_v5.f1,tab1_v5.f2 from t2 tab1_v5 join v4 tab2 on tab1_v5.f1 = tab2.f1 and tab1_v5.f2 = tab2.f2;
-create VIEW v6 AS select tab1_v6.f1,tab1_v6.f2 from t0 tab1_v6 join v5 tab2 on tab1_v6.f1 = tab2.f1 and tab1_v6.f2 = tab2.f2;
-create VIEW v7 AS select tab1_v7.f1,tab1_v7.f2 from t1 tab1_v7 join v6 tab2 on tab1_v7.f1 = tab2.f1 and tab1_v7.f2 = tab2.f2;
-create VIEW v8 AS select tab1_v8.f1,tab1_v8.f2 from t2 tab1_v8 join v7 tab2 on tab1_v8.f1 = tab2.f1 and tab1_v8.f2 = tab2.f2;
-create VIEW v9 AS select tab1_v9.f1,tab1_v9.f2 from t0 tab1_v9 join v8 tab2 on tab1_v9.f1 = tab2.f1 and tab1_v9.f2 = tab2.f2;
-create VIEW v10 AS select tab1_v10.f1,tab1_v10.f2 from t1 tab1_v10 join v9 tab2 on tab1_v10.f1 = tab2.f1 and tab1_v10.f2 = tab2.f2;
-create VIEW v11 AS select tab1_v11.f1,tab1_v11.f2 from t2 tab1_v11 join v10 tab2 on tab1_v11.f1 = tab2.f1 and tab1_v11.f2 = tab2.f2;
-create VIEW v12 AS select tab1_v12.f1,tab1_v12.f2 from t0 tab1_v12 join v11 tab2 on tab1_v12.f1 = tab2.f1 and tab1_v12.f2 = tab2.f2;
-create VIEW v13 AS select tab1_v13.f1,tab1_v13.f2 from t1 tab1_v13 join v12 tab2 on tab1_v13.f1 = tab2.f1 and tab1_v13.f2 = tab2.f2;
-create VIEW v14 AS select tab1_v14.f1,tab1_v14.f2 from t2 tab1_v14 join v13 tab2 on tab1_v14.f1 = tab2.f1 and tab1_v14.f2 = tab2.f2;
-create VIEW v15 AS select tab1_v15.f1,tab1_v15.f2 from t0 tab1_v15 join v14 tab2 on tab1_v15.f1 = tab2.f1 and tab1_v15.f2 = tab2.f2;
-create VIEW v16 AS select tab1_v16.f1,tab1_v16.f2 from t1 tab1_v16 join v15 tab2 on tab1_v16.f1 = tab2.f1 and tab1_v16.f2 = tab2.f2;
-create VIEW v17 AS select tab1_v17.f1,tab1_v17.f2 from t2 tab1_v17 join v16 tab2 on tab1_v17.f1 = tab2.f1 and tab1_v17.f2 = tab2.f2;
-create VIEW v18 AS select tab1_v18.f1,tab1_v18.f2 from t0 tab1_v18 join v17 tab2 on tab1_v18.f1 = tab2.f1 and tab1_v18.f2 = tab2.f2;
-create VIEW v19 AS select tab1_v19.f1,tab1_v19.f2 from t1 tab1_v19 join v18 tab2 on tab1_v19.f1 = tab2.f1 and tab1_v19.f2 = tab2.f2;
-create VIEW v20 AS select tab1_v20.f1,tab1_v20.f2 from t2 tab1_v20 join v19 tab2 on tab1_v20.f1 = tab2.f1 and tab1_v20.f2 = tab2.f2;
-create VIEW v21 AS select tab1_v21.f1,tab1_v21.f2 from t0 tab1_v21 join v20 tab2 on tab1_v21.f1 = tab2.f1 and tab1_v21.f2 = tab2.f2;
-create VIEW v22 AS select tab1_v22.f1,tab1_v22.f2 from t1 tab1_v22 join v21 tab2 on tab1_v22.f1 = tab2.f1 and tab1_v22.f2 = tab2.f2;
-create VIEW v23 AS select tab1_v23.f1,tab1_v23.f2 from t2 tab1_v23 join v22 tab2 on tab1_v23.f1 = tab2.f1 and tab1_v23.f2 = tab2.f2;
-create VIEW v24 AS select tab1_v24.f1,tab1_v24.f2 from t0 tab1_v24 join v23 tab2 on tab1_v24.f1 = tab2.f1 and tab1_v24.f2 = tab2.f2;
-create VIEW v25 AS select tab1_v25.f1,tab1_v25.f2 from t1 tab1_v25 join v24 tab2 on tab1_v25.f1 = tab2.f1 and tab1_v25.f2 = tab2.f2;
-create VIEW v26 AS select tab1_v26.f1,tab1_v26.f2 from t2 tab1_v26 join v25 tab2 on tab1_v26.f1 = tab2.f1 and tab1_v26.f2 = tab2.f2;
-create VIEW v27 AS select tab1_v27.f1,tab1_v27.f2 from t0 tab1_v27 join v26 tab2 on tab1_v27.f1 = tab2.f1 and tab1_v27.f2 = tab2.f2;
-EXPLAIN SELECT CAST(f1 AS SIGNED INTEGER) AS f1, CAST(f2 AS CHAR) AS f2 FROM v27;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE tab1_v27 ALL NULL NULL NULL NULL 5 Using where
-1 SIMPLE tab1_v26 hash_ALL NULL #hash#$hj 62 test1.tab1_v27.f1,test1.tab1_v27.f2 5 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE tab1_v25 hash_ALL NULL #hash#$hj 31 test1.tab1_v26.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v24 hash_ALL NULL #hash#$hj 60 test1.tab1_v25.f1,test1.tab1_v25.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v23 hash_ALL NULL #hash#$hj 62 test1.tab1_v24.f1,test1.tab1_v24.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v22 hash_ALL NULL #hash#$hj 31 test1.tab1_v23.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v21 hash_ALL NULL #hash#$hj 60 test1.tab1_v22.f1,test1.tab1_v22.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v20 hash_ALL NULL #hash#$hj 62 test1.tab1_v21.f1,test1.tab1_v21.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v19 hash_ALL NULL #hash#$hj 31 test1.tab1_v20.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v18 hash_ALL NULL #hash#$hj 60 test1.tab1_v19.f1,test1.tab1_v19.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v17 hash_ALL NULL #hash#$hj 62 test1.tab1_v18.f1,test1.tab1_v18.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v16 hash_ALL NULL #hash#$hj 31 test1.tab1_v17.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v15 hash_ALL NULL #hash#$hj 60 test1.tab1_v16.f1,test1.tab1_v16.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v14 hash_ALL NULL #hash#$hj 62 test1.tab1_v15.f1,test1.tab1_v15.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v13 hash_ALL NULL #hash#$hj 31 test1.tab1_v14.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v12 hash_ALL NULL #hash#$hj 60 test1.tab1_v13.f1,test1.tab1_v13.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v11 hash_ALL NULL #hash#$hj 62 test1.tab1_v12.f1,test1.tab1_v12.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v10 hash_ALL NULL #hash#$hj 31 test1.tab1_v11.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v9 hash_ALL NULL #hash#$hj 60 test1.tab1_v10.f1,test1.tab1_v10.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v8 hash_ALL NULL #hash#$hj 62 test1.tab1_v9.f1,test1.tab1_v9.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v7 hash_ALL NULL #hash#$hj 31 test1.tab1_v8.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v6 hash_ALL NULL #hash#$hj 60 test1.tab1_v7.f1,test1.tab1_v7.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v5 hash_ALL NULL #hash#$hj 62 test1.tab1_v6.f1,test1.tab1_v6.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v4 hash_ALL NULL #hash#$hj 31 test1.tab1_v5.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v3 hash_ALL NULL #hash#$hj 60 test1.tab1_v4.f1,test1.tab1_v4.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v2 hash_ALL NULL #hash#$hj 62 test1.tab1_v3.f1,test1.tab1_v3.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v1 hash_ALL NULL #hash#$hj 31 test1.tab1_v2.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t1 hash_ALL NULL #hash#$hj 84 test1.tab1_v1.f1,test1.tab1_v1.f2 5 Using where; Using join buffer (incremental, BNLH join)
-# This used to hang forever:
-EXPLAIN SELECT CAST(f1 AS SIGNED INTEGER) AS f1, CAST(f2 AS CHAR) AS f2 FROM v27;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE tab1_v27 ALL NULL NULL NULL NULL 5 Using where
-1 SIMPLE tab1_v26 hash_ALL NULL #hash#$hj 62 test1.tab1_v27.f1,test1.tab1_v27.f2 5 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE tab1_v25 hash_ALL NULL #hash#$hj 31 test1.tab1_v26.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v24 hash_ALL NULL #hash#$hj 60 test1.tab1_v25.f1,test1.tab1_v25.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v23 hash_ALL NULL #hash#$hj 62 test1.tab1_v24.f1,test1.tab1_v24.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v22 hash_ALL NULL #hash#$hj 31 test1.tab1_v23.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v21 hash_ALL NULL #hash#$hj 60 test1.tab1_v22.f1,test1.tab1_v22.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v20 hash_ALL NULL #hash#$hj 62 test1.tab1_v21.f1,test1.tab1_v21.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v19 hash_ALL NULL #hash#$hj 31 test1.tab1_v20.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v18 hash_ALL NULL #hash#$hj 60 test1.tab1_v19.f1,test1.tab1_v19.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v17 hash_ALL NULL #hash#$hj 62 test1.tab1_v18.f1,test1.tab1_v18.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v16 hash_ALL NULL #hash#$hj 31 test1.tab1_v17.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v15 hash_ALL NULL #hash#$hj 60 test1.tab1_v16.f1,test1.tab1_v16.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v14 hash_ALL NULL #hash#$hj 62 test1.tab1_v15.f1,test1.tab1_v15.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v13 hash_ALL NULL #hash#$hj 31 test1.tab1_v14.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v12 hash_ALL NULL #hash#$hj 60 test1.tab1_v13.f1,test1.tab1_v13.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v11 hash_ALL NULL #hash#$hj 62 test1.tab1_v12.f1,test1.tab1_v12.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v10 hash_ALL NULL #hash#$hj 31 test1.tab1_v11.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v9 hash_ALL NULL #hash#$hj 60 test1.tab1_v10.f1,test1.tab1_v10.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v8 hash_ALL NULL #hash#$hj 62 test1.tab1_v9.f1,test1.tab1_v9.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v7 hash_ALL NULL #hash#$hj 31 test1.tab1_v8.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v6 hash_ALL NULL #hash#$hj 60 test1.tab1_v7.f1,test1.tab1_v7.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v5 hash_ALL NULL #hash#$hj 62 test1.tab1_v6.f1,test1.tab1_v6.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v4 hash_ALL NULL #hash#$hj 31 test1.tab1_v5.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v3 hash_ALL NULL #hash#$hj 60 test1.tab1_v4.f1,test1.tab1_v4.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v2 hash_ALL NULL #hash#$hj 62 test1.tab1_v3.f1,test1.tab1_v3.f2 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE tab1_v1 hash_ALL NULL #hash#$hj 31 test1.tab1_v2.f1 5 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t1 hash_ALL NULL #hash#$hj 84 test1.tab1_v1.f1,test1.tab1_v1.f2 5 Using where; Using join buffer (incremental, BNLH join)
-use test;
-drop database test1;
-set join_cache_level=@tmp_jcl;
-set optimizer_switch=@tmp_os;
-#
-# MDEV-6879: Dereference of NULL primary_file->table in DsMrr_impl::get_disk_sweep_mrr_cost()
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, c text);
-insert into t2
-select
-A.a + B.a* 10,
-A.a + B.a* 10,
-'blob-data'
-from t1 A, t1 B;
-set @tmp_jcl= @@join_cache_level;
-set @tmp_os= @@optimizer_switch;
-set join_cache_level=6;
-set @@optimizer_switch='derived_merge=on,derived_with_keys=on,mrr=on';
-explain
-select * from
-t1 join
-(select * from t2 order by a limit 1000) as D1
-where
-D1.a= t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 10 Using where
-1 PRIMARY <derived2> hash_ALL key0 #hash#key0 5 test.t1.a 100 Using join buffer (flat, BNLH join)
-2 DERIVED t2 ALL NULL NULL NULL NULL 100 Using filesort
-set join_cache_level=@tmp_jcl;
-set optimizer_switch=@tmp_os;
-drop table t1, t2;
-set optimizer_switch=@exit_optimizer_switch;
diff --git a/mysql-test/r/derived_view.result b/mysql-test/r/derived_view.result
deleted file mode 100644
index 85e56ff176e..00000000000
--- a/mysql-test/r/derived_view.result
+++ /dev/null
@@ -1,2981 +0,0 @@
-drop table if exists t1,t2;
-drop view if exists v1,v2,v3,v4;
-set @exit_optimizer_switch=@@optimizer_switch;
-set @exit_join_cache_level=@@join_cache_level;
-set optimizer_switch='derived_merge=on,derived_with_keys=on';
-set @save_optimizer_switch=@@optimizer_switch;
-set join_cache_level=1;
-create table t1(f1 int, f11 int);
-create table t2(f2 int, f22 int);
-insert into t1 values(1,1),(2,2),(3,3),(5,5),(9,9),(7,7);
-insert into t1 values(17,17),(13,13),(11,11),(15,15),(19,19);
-insert into t2 values(1,1),(3,3),(2,2),(4,4),(8,8),(6,6);
-insert into t2 values(12,12),(14,14),(10,10),(18,18),(16,16);
-Tests:
-for merged derived tables
-explain for simple derived
-explain select * from (select * from t1) tt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11
-select * from (select * from t1) tt;
-f1 f11
-1 1
-2 2
-3 3
-5 5
-9 9
-7 7
-17 17
-13 13
-11 11
-15 15
-19 19
-explain for multitable derived
-explain extended select * from (select * from t1 join t2 on f1=f2) tt;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 11 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11`,`test`.`t2`.`f2` AS `f2`,`test`.`t2`.`f22` AS `f22` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`f2` = `test`.`t1`.`f1`
-select * from (select * from t1 join t2 on f1=f2) tt;
-f1 f11 f2 f22
-1 1 1 1
-3 3 3 3
-2 2 2 2
-explain for derived with where
-explain extended
-select * from (select * from t1 where f1 in (2,3)) tt where f11=2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f11` = 2 and `test`.`t1`.`f1` in (2,3)
-select * from (select * from t1 where f1 in (2,3)) tt where f11=2;
-f1 f11
-2 2
-join of derived
-explain extended
-select * from (select * from t1 where f1 in (2,3)) tt join
-(select * from t1 where f1 in (1,2)) aa on tt.f1=aa.f1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11`,`test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` join `test`.`t1` where `test`.`t1`.`f1` = `test`.`t1`.`f1` and `test`.`t1`.`f1` in (1,2) and `test`.`t1`.`f1` in (2,3)
-select * from (select * from t1 where f1 in (2,3)) tt join
-(select * from t1 where f1 in (1,2)) aa on tt.f1=aa.f1;
-f1 f11 f1 f11
-2 2 2 2
-flush status;
-explain extended
-select * from (select * from t1 where f1 in (2,3)) tt where f11=2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f11` = 2 and `test`.`t1`.`f1` in (2,3)
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-flush status;
-select * from (select * from t1 where f1 in (2,3)) tt where f11=2;
-f1 f11
-2 2
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 12
-for merged views
-create view v1 as select * from t1;
-create view v2 as select * from t1 join t2 on f1=f2;
-create view v3 as select * from t1 where f1 in (2,3);
-create view v4 as select * from t2 where f2 in (2,3);
-explain for simple views
-explain extended select * from v1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1`
-select * from v1;
-f1 f11
-1 1
-2 2
-3 3
-5 5
-9 9
-7 7
-17 17
-13 13
-11 11
-15 15
-19 19
-explain for multitable views
-explain extended select * from v2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 11 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11`,`test`.`t2`.`f2` AS `f2`,`test`.`t2`.`f22` AS `f22` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`f2` = `test`.`t1`.`f1`
-select * from v2;
-f1 f11 f2 f22
-1 1 1 1
-3 3 3 3
-2 2 2 2
-explain for views with where
-explain extended select * from v3 where f11 in (1,3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f11` in (1,3) and `test`.`t1`.`f1` in (2,3)
-select * from v3 where f11 in (1,3);
-f1 f11
-3 3
-explain for joined views
-explain extended
-select * from v3 join v4 on f1=f2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 11 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11`,`test`.`t2`.`f2` AS `f2`,`test`.`t2`.`f22` AS `f22` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`f2` = `test`.`t1`.`f1` and `test`.`t1`.`f1` in (2,3) and `test`.`t1`.`f1` in (2,3)
-select * from v3 join v4 on f1=f2;
-f1 f11 f2 f22
-3 3 3 3
-2 2 2 2
-flush status;
-explain extended select * from v4 where f2 in (1,3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 11 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`f2` AS `f2`,`test`.`t2`.`f22` AS `f22` from `test`.`t2` where `test`.`t2`.`f2` in (1,3) and `test`.`t2`.`f2` in (2,3)
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-flush status;
-select * from v4 where f2 in (1,3);
-f2 f22
-3 3
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 12
-for materialized derived tables
-explain for simple derived
-explain extended select * from (select * from t1 group by f1) tt;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 11 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `tt`.`f1` AS `f1`,`tt`.`f11` AS `f11` from (/* select#2 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` group by `test`.`t1`.`f1`) `tt`
-select * from (select * from t1 having f1=f1) tt;
-f1 f11
-1 1
-2 2
-3 3
-5 5
-9 9
-7 7
-17 17
-13 13
-11 11
-15 15
-19 19
-explain showing created indexes
-explain extended
-select * from t1 join (select * from t2 group by f2) tt on f1=f2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 11 100.00 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t1.f1 2 100.00
-2 DERIVED t2 ALL NULL NULL NULL NULL 11 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11`,`tt`.`f2` AS `f2`,`tt`.`f22` AS `f22` from `test`.`t1` join (/* select#2 */ select `test`.`t2`.`f2` AS `f2`,`test`.`t2`.`f22` AS `f22` from `test`.`t2` group by `test`.`t2`.`f2`) `tt` where `tt`.`f2` = `test`.`t1`.`f1`
-select * from t1 join (select * from t2 group by f2) tt on f1=f2;
-f1 f11 f2 f22
-1 1 1 1
-2 2 2 2
-3 3 3 3
-explain showing late materialization
-flush status;
-explain select * from t1 join (select * from t2 group by f2) tt on f1=f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 11 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t1.f1 2
-2 DERIVED t2 ALL NULL NULL NULL NULL 11 Using temporary; Using filesort
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-flush status;
-select * from t1 join (select * from t2 group by f2) tt on f1=f2;
-f1 f11 f2 f22
-1 1 1 1
-2 2 2 2
-3 3 3 3
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 11
-Handler_read_last 0
-Handler_read_next 3
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 11
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 36
-for materialized views
-drop view v1,v2,v3;
-create view v1 as select * from t1 group by f1;
-create view v2 as select * from t2 group by f2;
-create view v3 as select t1.f1,t1.f11 from t1 join t1 as t11 where t1.f1=t11.f1
-having t1.f1<100;
-explain for simple derived
-explain extended select * from v1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 11 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `v1`.`f1` AS `f1`,`v1`.`f11` AS `f11` from `test`.`v1`
-select * from v1;
-f1 f11
-1 1
-2 2
-3 3
-5 5
-7 7
-9 9
-11 11
-13 13
-15 15
-17 17
-19 19
-explain showing created indexes
-explain extended select * from t1 join v2 on f1=f2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 11 100.00 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t1.f1 2 100.00
-2 DERIVED t2 ALL NULL NULL NULL NULL 11 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11`,`v2`.`f2` AS `f2`,`v2`.`f22` AS `f22` from `test`.`t1` join `test`.`v2` where `v2`.`f2` = `test`.`t1`.`f1`
-select * from t1 join v2 on f1=f2;
-f1 f11 f2 f22
-1 1 1 1
-2 2 2 2
-3 3 3 3
-explain extended
-select * from t1,v3 as v31,v3 where t1.f1=v31.f1 and t1.f1=v3.f1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 11 100.00 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t1.f1 10 100.00
-1 PRIMARY <derived3> ref key0 key0 5 test.t1.f1 10 100.00
-3 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00
-3 DERIVED t11 ALL NULL NULL NULL NULL 11 100.00 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00
-2 DERIVED t11 ALL NULL NULL NULL NULL 11 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11`,`v31`.`f1` AS `f1`,`v31`.`f11` AS `f11`,`v3`.`f1` AS `f1`,`v3`.`f11` AS `f11` from `test`.`t1` join `test`.`v3` `v31` join `test`.`v3` where `v31`.`f1` = `test`.`t1`.`f1` and `v3`.`f1` = `test`.`t1`.`f1`
-flush status;
-select * from t1,v3 as v31,v3 where t1.f1=v31.f1 and t1.f1=v3.f1;
-f1 f11 f1 f11 f1 f11
-1 1 1 1 1 1
-2 2 2 2 2 2
-3 3 3 3 3 3
-5 5 5 5 5 5
-9 9 9 9 9 9
-7 7 7 7 7 7
-17 17 17 17 17 17
-13 13 13 13 13 13
-11 11 11 11 11 11
-15 15 15 15 15 15
-19 19 19 19 19 19
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 22
-Handler_read_last 0
-Handler_read_next 22
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 60
-explain showing late materialization
-flush status;
-explain select * from t1 join v2 on f1=f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 11 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t1.f1 2
-2 DERIVED t2 ALL NULL NULL NULL NULL 11 Using temporary; Using filesort
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-flush status;
-select * from t1 join v2 on f1=f2;
-f1 f11 f2 f22
-1 1 1 1
-2 2 2 2
-3 3 3 3
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 11
-Handler_read_last 0
-Handler_read_next 3
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 11
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 36
-explain extended select * from v1 join v4 on f1=f2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 11 100.00 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.f2 2 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `v1`.`f1` AS `f1`,`v1`.`f11` AS `f11`,`test`.`t2`.`f2` AS `f2`,`test`.`t2`.`f22` AS `f22` from `test`.`v1` join `test`.`t2` where `v1`.`f1` = `test`.`t2`.`f2` and `test`.`t2`.`f2` in (2,3)
-explain format=json select * from v1 join v4 on f1=f2;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "t2.f2 in (2,3) and t2.f2 is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["f1"],
- "ref": ["test.t2.f2"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "filesort": {
- "sort_key": "t1.f1",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "t1.f1 in (2,3)"
- }
- }
- }
- }
- }
- }
- }
-}
-select * from v1 join v4 on f1=f2;
-f1 f11 f2 f22
-3 3 3 3
-2 2 2 2
-merged derived in merged derived
-explain extended select * from (select * from
-(select * from t1 where f1 < 7) tt where f1 > 2) zz;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f1` > 2 and `test`.`t1`.`f1` < 7
-select * from (select * from
-(select * from t1 where f1 < 7) tt where f1 > 2) zz;
-f1 f11
-3 3
-5 5
-materialized derived in merged derived
-explain extended select * from (select * from
-(select * from t1 where f1 < 7 group by f1) tt where f1 > 2) zz;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 11 100.00 Using where
-3 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `tt`.`f1` AS `f1`,`tt`.`f11` AS `f11` from (/* select#3 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f1` < 7 and `test`.`t1`.`f1` > 2 group by `test`.`t1`.`f1`) `tt` where `tt`.`f1` > 2
-select * from (select * from
-(select * from t1 where f1 < 7 group by f1) tt where f1 > 2) zz;
-f1 f11
-3 3
-5 5
-merged derived in materialized derived
-explain extended select * from (select * from
-(select * from t1 where f1 < 7) tt where f1 > 2 group by f1) zz;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 11 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `zz`.`f1` AS `f1`,`zz`.`f11` AS `f11` from (/* select#2 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f1` > 2 and `test`.`t1`.`f1` < 7 group by `test`.`t1`.`f1`) `zz`
-select * from (select * from
-(select * from t1 where f1 < 7) tt where f1 > 2 group by f1) zz;
-f1 f11
-3 3
-5 5
-materialized derived in materialized derived
-explain extended select * from (select * from
-(select * from t1 where f1 < 7 group by f1) tt where f1 > 2 group by f1) zz;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 11 100.00
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 11 100.00 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `zz`.`f1` AS `f1`,`zz`.`f11` AS `f11` from (/* select#2 */ select `tt`.`f1` AS `f1`,`tt`.`f11` AS `f11` from (/* select#3 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f1` < 7 and `test`.`t1`.`f1` > 2 group by `test`.`t1`.`f1`) `tt` where `tt`.`f1` > 2 group by `tt`.`f1`) `zz`
-explain format=json select * from (select * from
-(select * from t1 where f1 < 7 group by f1) tt where f1 > 2 group by f1) zz;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 2,
- "filesort": {
- "sort_key": "tt.f1",
- "temporary_table": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "tt.f1 > 2",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "filesort": {
- "sort_key": "t1.f1",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "t1.f1 < 7 and t1.f1 > 2"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
-}
-select * from (select * from
-(select * from t1 where f1 < 7 group by f1) tt where f1 > 2 group by f1) zz;
-f1 f11
-3 3
-5 5
-mat in merged derived join mat in merged derived
-explain extended select * from
-(select * from (select * from t1 where f1 < 7 group by f1) tt where f1 > 2) x
-join
-(select * from (select * from t1 where f1 < 7 group by f1) tt where f1 > 2) z
-on x.f1 = z.f1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 11 100.00 Using where
-1 PRIMARY <derived5> ref key0 key0 5 tt.f1 2 100.00
-5 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `tt`.`f1` AS `f1`,`tt`.`f11` AS `f11`,`tt`.`f1` AS `f1`,`tt`.`f11` AS `f11` from (/* select#3 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f1` < 7 and `test`.`t1`.`f1` > 2 and `test`.`t1`.`f1` > 2 group by `test`.`t1`.`f1`) `tt` join (/* select#5 */ select `t1`.`f1` AS `f1`,`t1`.`f11` AS `f11` from `test`.`t1` where `t1`.`f1` < 7 and `t1`.`f1` > 2 and `t1`.`f1` > 2 group by `t1`.`f1`) `tt` where `tt`.`f1` = `tt`.`f1` and `tt`.`f1` > 2 and `tt`.`f1` > 2
-explain format=json select * from
-(select * from (select * from t1 where f1 < 7 group by f1) tt where f1 > 2) x
-join
-(select * from (select * from t1 where f1 < 7 group by f1) tt where f1 > 2) z
-on x.f1 = z.f1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "tt.f1 > 2 and tt.f1 > 2 and tt.f1 is not null",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "filesort": {
- "sort_key": "t1.f1",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "t1.f1 < 7 and t1.f1 > 2 and t1.f1 > 2"
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived5>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["f1"],
- "ref": ["tt.f1"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 5,
- "filesort": {
- "sort_key": "t1.f1",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "t1.f1 < 7 and t1.f1 > 2 and t1.f1 > 2"
- }
- }
- }
- }
- }
- }
- }
-}
-flush status;
-select * from
-(select * from (select * from t1 where f1 < 7 group by f1) tt where f1 > 2) x
-join
-(select * from (select * from t1 where f1 < 7 group by f1) tt where f1 > 2) z
-on x.f1 = z.f1;
-f1 f11 f1 f11
-3 3 3 3
-5 5 5 5
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 2
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 4
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 33
-flush status;
-merged in merged derived join merged in merged derived
-explain extended select * from
-(select * from
-(select * from t1 where f1 < 7 ) tt where f1 > 2 ) x
-join
-(select * from
-(select * from t1 where f1 < 7 ) tt where f1 > 2 ) z
-on x.f1 = z.f1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11`,`t1`.`f1` AS `f1`,`t1`.`f11` AS `f11` from `test`.`t1` join `test`.`t1` where `t1`.`f1` = `test`.`t1`.`f1` and `test`.`t1`.`f1` > 2 and `test`.`t1`.`f1` < 7 and `test`.`t1`.`f1` > 2 and `test`.`t1`.`f1` < 7
-select * from
-(select * from
-(select * from t1 where f1 < 7 ) tt where f1 > 2 ) x
-join
-(select * from
-(select * from t1 where f1 < 7 ) tt where f1 > 2 ) z
-on x.f1 = z.f1;
-f1 f11 f1 f11
-3 3 3 3
-5 5 5 5
-materialized in materialized derived join
-materialized in materialized derived
-explain extended select * from
-(select * from
-(select * from t1 where f1 < 7 group by f1) tt where f1 > 2 group by f1) x
-join
-(select * from
-(select * from t1 where f1 < 7 group by f1) tt where f1 > 2 group by f1) z
-on x.f1 = z.f1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 11 100.00 Using where
-1 PRIMARY <derived4> ref key0 key0 5 x.f1 2 100.00
-4 DERIVED <derived5> ALL NULL NULL NULL NULL 11 100.00 Using where; Using temporary; Using filesort
-5 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00 Using where; Using temporary; Using filesort
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 11 100.00 Using where; Using temporary; Using filesort
-3 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `x`.`f1` AS `f1`,`x`.`f11` AS `f11`,`z`.`f1` AS `f1`,`z`.`f11` AS `f11` from (/* select#2 */ select `tt`.`f1` AS `f1`,`tt`.`f11` AS `f11` from (/* select#3 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f1` < 7 and `test`.`t1`.`f1` > 2 group by `test`.`t1`.`f1`) `tt` where `tt`.`f1` > 2 group by `tt`.`f1`) `x` join (/* select#4 */ select `tt`.`f1` AS `f1`,`tt`.`f11` AS `f11` from (/* select#5 */ select `t1`.`f1` AS `f1`,`t1`.`f11` AS `f11` from `test`.`t1` where `t1`.`f1` < 7 and `t1`.`f1` > 2 group by `t1`.`f1`) `tt` where `tt`.`f1` > 2 group by `tt`.`f1`) `z` where `z`.`f1` = `x`.`f1`
-explain format=json select * from
-(select * from
-(select * from t1 where f1 < 7 group by f1) tt where f1 > 2 group by f1) x
-join
-(select * from
-(select * from t1 where f1 < 7 group by f1) tt where f1 > 2 group by f1) z
-on x.f1 = z.f1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "x.f1 is not null",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "filesort": {
- "sort_key": "tt.f1",
- "temporary_table": {
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "tt.f1 > 2",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "filesort": {
- "sort_key": "t1.f1",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "t1.f1 < 7 and t1.f1 > 2"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "table": {
- "table_name": "<derived4>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["f1"],
- "ref": ["x.f1"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 4,
- "filesort": {
- "sort_key": "tt.f1",
- "temporary_table": {
- "table": {
- "table_name": "<derived5>",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "tt.f1 > 2",
- "materialized": {
- "query_block": {
- "select_id": 5,
- "filesort": {
- "sort_key": "t1.f1",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "t1.f1 < 7 and t1.f1 > 2"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
-}
-select * from
-(select * from
-(select * from t1 where f1 < 7 group by f1) tt where f1 > 2 group by f1) x
-join
-(select * from
-(select * from t1 where f1 < 7 group by f1) tt where f1 > 2 group by f1) z
-on x.f1 = z.f1;
-f1 f11 f1 f11
-3 3 3 3
-5 5 5 5
-merged view in materialized derived
-explain extended
-select * from (select * from v4 group by 1) tt;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 11 100.00
-2 DERIVED t2 ALL NULL NULL NULL NULL 11 100.00 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `tt`.`f2` AS `f2`,`tt`.`f22` AS `f22` from (/* select#2 */ select `test`.`t2`.`f2` AS `f2`,`test`.`t2`.`f22` AS `f22` from `test`.`t2` where `test`.`t2`.`f2` in (2,3) group by 1) `tt`
-select * from (select * from v4 group by 1) tt;
-f2 f22
-2 2
-3 3
-materialized view in merged derived
-explain extended
-select * from ( select * from v1 where f1 < 7) tt;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 11 100.00 Using where
-3 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `v1`.`f1` AS `f1`,`v1`.`f11` AS `f11` from `test`.`v1` where `v1`.`f1` < 7
-explain format=json
-select * from ( select * from v1 where f1 < 7) tt;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived3>",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "v1.f1 < 7",
- "materialized": {
- "query_block": {
- "select_id": 3,
- "filesort": {
- "sort_key": "t1.f1",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "t1.f1 < 7"
- }
- }
- }
- }
- }
- }
- }
-}
-select * from ( select * from v1 where f1 < 7) tt;
-f1 f11
-1 1
-2 2
-3 3
-5 5
-merged view in a merged view in a merged derived
-create view v6 as select * from v4 where f2 < 7;
-explain extended select * from (select * from v6) tt;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 11 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`f2` AS `f2`,`test`.`t2`.`f22` AS `f22` from `test`.`t2` where `test`.`t2`.`f2` < 7 and `test`.`t2`.`f2` in (2,3)
-select * from (select * from v6) tt;
-f2 f22
-3 3
-2 2
-materialized view in a merged view in a materialized derived
-create view v7 as select * from v1;
-explain extended select * from (select * from v7 group by 1) tt;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 11 100.00
-2 DERIVED <derived4> ALL NULL NULL NULL NULL 11 100.00 Using temporary; Using filesort
-4 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `tt`.`f1` AS `f1`,`tt`.`f11` AS `f11` from (/* select#2 */ select `v1`.`f1` AS `f1`,`v1`.`f11` AS `f11` from `test`.`v1` group by 1) `tt`
-select * from (select * from v7 group by 1) tt;
-f1 f11
-1 1
-2 2
-3 3
-5 5
-7 7
-9 9
-11 11
-13 13
-15 15
-17 17
-19 19
-join of above two
-explain extended select * from v6 join v7 on f2=f1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 11 100.00 Using where
-1 PRIMARY <derived5> ref key0 key0 5 test.t2.f2 2 100.00
-5 DERIVED t1 ALL NULL NULL NULL NULL 11 100.00 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`f2` AS `f2`,`test`.`t2`.`f22` AS `f22`,`v1`.`f1` AS `f1`,`v1`.`f11` AS `f11` from `test`.`t2` join `test`.`v1` where `v1`.`f1` = `test`.`t2`.`f2` and `test`.`t2`.`f2` < 7 and `test`.`t2`.`f2` in (2,3)
-explain format=json select * from v6 join v7 on f2=f1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "t2.f2 < 7 and t2.f2 in (2,3) and t2.f2 is not null"
- },
- "table": {
- "table_name": "<derived5>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "5",
- "used_key_parts": ["f1"],
- "ref": ["test.t2.f2"],
- "rows": 2,
- "filtered": 100,
- "materialized": {
- "query_block": {
- "select_id": 5,
- "filesort": {
- "sort_key": "t1.f1",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100,
- "attached_condition": "t1.f1 < 7 and t1.f1 in (2,3)"
- }
- }
- }
- }
- }
- }
- }
-}
-select * from v6 join v7 on f2=f1;
-f2 f22 f1 f11
-3 3 3 3
-2 2 2 2
-test two keys
-explain select * from t1 join (select * from t2 group by f2) tt on t1.f1=tt.f2 join t1 xx on tt.f22=xx.f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 11 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t1.f1 2
-1 PRIMARY xx ALL NULL NULL NULL NULL 11 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t2 ALL NULL NULL NULL NULL 11 Using temporary; Using filesort
-select * from t1 join (select * from t2 group by f2) tt on t1.f1=tt.f2 join t1 xx on tt.f22=xx.f1;
-f1 f11 f2 f22 f1 f11
-1 1 1 1 1 1
-2 2 2 2 2 2
-3 3 3 3 3 3
-TODO: Add test with 64 tables mergeable view to test fall back to
-materialization on tables > MAX_TABLES merge
-drop table t1,t2;
-drop view v1,v2,v3,v4,v6,v7;
-#
-# LP bug #794909: crash when defining possible keys for
-# a materialized view/derived_table
-#
-CREATE TABLE t1 (f1 int) ;
-INSERT INTO t1 VALUES (149), (150), (224), (29);
-CREATE TABLE t2 (f1 int, KEY (f1));
-INSERT INTO t2 VALUES (149), (NULL), (224);
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-EXPLAIN
-SELECT * FROM v1 JOIN t2 ON v1.f1 = t2.f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index f1 f1 5 NULL 3 Using where; Using index
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.f1 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 4
-SELECT * FROM v1 JOIN t2 ON v1.f1 = t2.f1;
-f1 f1
-149 149
-224 224
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# LP bug #794890: abort failure on multi-update with view
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (20), (7);
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES (7), (9), (7);
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT a FROM t1;
-CREATE VIEW v2 AS SELECT t2.a FROM t2, v1 WHERE t2.a=t2.a;
-UPDATE v2 SET a = 2;
-SELECT * FROM t2;
-a
-2
-2
-2
-UPDATE t1,v2 SET t1.a = 3;
-SELECT * FROM t1;
-a
-3
-3
-DELETE t1 FROM t1,v2;
-SELECT * FROM t1;
-a
-DROP VIEW v1,v2;
-DROP TABLE t1,t2;
-#
-# LP bug #802023: MIN/MAX optimization
-# for mergeable derived tables and views
-#
-CREATE TABLE t1 (a int, b int, c varchar(32), INDEX idx(a,b));
-INSERT INTO t1 VALUES
-(7, 74, 'yyyyyyy'), (9, 97, 'aaaaaaaaa'), (2, 23, 'tt'),
-(5, 55, 'ddddd'), (2, 27, 'ss'), (7, 76, 'xxxxxxx'),
-(7, 79, 'zzzzzzz'), (9, 92, 'bbbbbbbbb'), (2, 25, 'pp'),
-(5, 53, 'eeeee'), (2, 23, 'qq'), (7, 76,'wwwwwww'),
-(7, 74, 'uuuuuuu'), (9, 92, 'ccccccccc'), (2, 25, 'oo');
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT MIN(a) FROM t1 WHERE a >= 5;
-MIN(a)
-5
-EXPLAIN
-SELECT MIN(a) FROM t1 WHERE a >= 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-SELECT MIN(a) FROM (SELECT * FROM t1) t WHERE a >= 5;
-MIN(a)
-5
-EXPLAIN
-SELECT MIN(a) FROM(SELECT * FROM t1) t WHERE a >= 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-SELECT MIN(a) FROM v1 WHERE a >= 5;
-MIN(a)
-5
-EXPLAIN
-SELECT MIN(a) FROM v1 WHERE a >= 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-SELECT MAX(b) FROM t1 WHERE a=7 AND b<75;
-MAX(b)
-74
-EXPLAIN
-SELECT MAX(b) FROM t1 WHERE a=7 AND b<75;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-SELECT MAX(b) FROM (SELECT * FROM t1) t WHERE a=7 AND b<75;
-MAX(b)
-74
-EXPLAIN
-SELECT MAX(b) FROM (SELECT * FROM t1) t WHERE a=7 AND b<75;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-SELECT MAX(b) FROM v1 WHERE a=7 AND b<75;
-MAX(b)
-74
-EXPLAIN
-SELECT MAX(b) FROM v1 WHERE a=7 AND b<75;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# LP bug #800535: GROUP BY query with nested left join
-# and a derived table in the nest
-#
-CREATE TABLE t1 (a int) ;
-INSERT INTO t1 VALUES (1), (2);
-CREATE TABLE t2 (a int NOT NULL);
-INSERT INTO t2 VALUES (1), (2);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (3,3), (4,4);
-EXPLAIN EXTENDED
-SELECT t.a FROM t1 LEFT JOIN
-(t2 t JOIN t3 ON t3.b > 5) ON t.a >= 1
-GROUP BY t.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-1 SIMPLE t ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t`.`a` AS `a` from `test`.`t1` left join (`test`.`t2` `t` join `test`.`t3`) on(`test`.`t`.`a` >= 1 and `test`.`t3`.`b` > 5) where 1 group by `test`.`t`.`a`
-SELECT t.a FROM t1 LEFT JOIN
-(t2 t JOIN t3 ON t3.b > 5) ON t.a >= 1
-GROUP BY t.a;
-a
-NULL
-EXPLAIN EXTENDED
-SELECT t.a FROM t1 LEFT JOIN
-(( SELECT * FROM t2 ) t JOIN t3 ON t3.b > 5) ON t.a >= 1
-GROUP BY t.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t1` left join (`test`.`t2` join `test`.`t3`) on(`test`.`t2`.`a` >= 1 and `test`.`t3`.`b` > 5) where 1 group by `test`.`t2`.`a`
-SELECT t.a FROM t1 LEFT JOIN
-(( SELECT * FROM t2 ) t JOIN t3 ON t3.b > 5) ON t.a >= 1
-GROUP BY t.a;
-a
-NULL
-CREATE VIEW v1 AS SELECT * FROM t2;
-EXPLAIN EXTENDED
-SELECT t.a FROM t1 LEFT JOIN
-(v1 t JOIN t3 ON t3.b > 5) ON t.a >= 1
-GROUP BY t.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t1` left join (`test`.`t2` join `test`.`t3`) on(`test`.`t2`.`a` >= 1 and `test`.`t3`.`b` > 5) where 1 group by `test`.`t2`.`a`
-SELECT t.a FROM t1 LEFT JOIN
-(v1 t JOIN t3 ON t3.b > 5) ON t.a >= 1
-GROUP BY t.a;
-a
-NULL
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #803410: materialized view/dt accessed by two-component key
-#
-CREATE TABLE t1 (a varchar(1));
-INSERT INTO t1 VALUES ('c');
-CREATE TABLE t2 (a varchar(1) , KEY (a)) ;
-INSERT INTO t2 VALUES ('c'), (NULL), ('r');
-CREATE TABLE t3 (a varchar(1), b varchar(1));
-INSERT INTO t3 VALUES
-('e', 'c'), ('c', 'c'), ('c', 'r'), ('g', 'a'), ('b', 'x'), ('b', 'y'),
-('h', 'w'), ('d', 'z'), ('k', 'v'), ('j', 's'), ('m', 'p'), ('l', 'q');
-CREATE VIEW v1 AS SELECT a, MIN(b) AS b FROM t3 GROUP BY a;
-EXPLAIN
-SELECT * FROM t1, t2, v1 WHERE t2.a=t1.a AND t2.a=v1.a AND t2.a=v1.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ref a a 4 const 1 Using index
-1 PRIMARY <derived2> ref key0 key0 8 const,const 1
-2 DERIVED t3 ALL NULL NULL NULL NULL 12 Using temporary; Using filesort
-SELECT * FROM t1, t2, v1 WHERE t2.a=t1.a AND t2.a=v1.a AND t2.a=v1.b;
-a a a b
-c c c c
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #802845: select from derived table with limit 0
-#
-SELECT * FROM (SELECT 1 LIMIT 0) t;
-1
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (7), (1), (3);
-SELECT * FROM (SELECT * FROM t1 LIMIT 0) t;
-a
-DROP TABLE t1;
-#
-# LP bug #803851: materialized view + IN->EXISTS
-#
-SET SESSION optimizer_switch='semijoin=off,derived_with_keys=on,materialization=off';
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (2,2), (3,3), (1,1);
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES (1), (2), (1);
-CREATE TABLE t3 (a int);
-INSERT INTO t3 VALUES (3), (1), (2), (1);
-CREATE VIEW v1 AS SELECT a, MAX(b) AS b FROM t1 GROUP BY a;
-EXPLAIN EXTENDED
-SELECT * FROM t3
-WHERE t3.a IN (SELECT v1.a FROM v1, t2 WHERE t2.a = v1.b);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-2 DEPENDENT SUBQUERY <derived3> ref key1 key1 5 func 2 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-3 DERIVED t1 ALL NULL NULL NULL NULL 3 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <expr_cache><`test`.`t3`.`a`>(<in_optimizer>(`test`.`t3`.`a`,<exists>(/* select#2 */ select `v1`.`a` from `test`.`v1` join `test`.`t2` where `test`.`t2`.`a` = `v1`.`b` and <cache>(`test`.`t3`.`a`) = `v1`.`a`)))
-SELECT * FROM t3
-WHERE t3.a IN (SELECT v1.a FROM v1, t2 WHERE t2.a = v1.b);
-a
-1
-2
-1
-SET SESSION optimizer_switch=@save_optimizer_switch;
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #804515: materialized derived + ORDER BY
-#
-CREATE TABLE t1 (f1 varchar(1), f2 varchar(1), KEY (f2));
-INSERT INTO t1 VALUES
-('r','x'), ('x','d'), ('x','r'), ('r','f'), ('x','x');
-CREATE TABLE t2 (f1 varchar(1), f2 varchar(1));
-INSERT INTO t2 VALUES ('s','x');
-CREATE TABLE t3 (f1 varchar(1), f2 varchar(1), KEY (f2));
-INSERT INTO t3 VALUES
-(NULL,'x'), (NULL,'f'), ('t','p'), (NULL,'j'), ('g','c');
-CREATE TABLE t4 (f1 int, f2 varchar(1), KEY (f2,f1)) ;
-INSERT INTO t4 VALUES (1,'x'), (5,'r');
-EXPLAIN
-SELECT t.f1 AS f
-FROM (SELECT DISTINCT t1.* FROM t1,t2 WHERE t2.f2 = t1.f2) t,t3,t4
-WHERE t4.f2 = t3.f2 AND t4.f2 = t.f1 ORDER BY f;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 Using where; Using filesort
-1 PRIMARY t4 ref f2 f2 4 t.f1 1 Using index
-1 PRIMARY t3 ref f2 f2 4 t.f1 2 Using index
-2 DERIVED t2 system NULL NULL NULL NULL 1 Using temporary
-2 DERIVED t1 ref f2 f2 4 const 2 Using where
-SELECT t.f1 AS f
-FROM (SELECT DISTINCT t1.* FROM t1,t2 WHERE t2.f2 = t1.f2) t,t3,t4
-WHERE t4.f2 = t3.f2 AND t4.f2 = t.f1 ORDER BY f;
-f
-x
-DROP TABLE t1,t2,t3,t4;
-#
-# LP bug #806431: join over materialized derived with key
-#
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (0,0),(3,0),(1,0);
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT a,b FROM t1 ;
-SET SESSION optimizer_switch='derived_with_keys=off';
-SELECT * FROM t1 AS t JOIN v1 AS v WHERE t.a = v.b AND t.b = v.b;
-a b a b
-0 0 0 0
-0 0 3 0
-0 0 1 0
-SET SESSION optimizer_switch='derived_with_keys=on';
-EXPLAIN
-SELECT * FROM t1 AS t JOIN v1 AS v WHERE t.a = v.b AND t.b = v.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t.a 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 3
-SELECT * FROM t1 AS t JOIN v1 AS v WHERE t.a = v.b AND t.b = v.b;
-a b a b
-0 0 1 0
-0 0 3 0
-0 0 0 0
-SET SESSION optimizer_switch=@save_optimizer_switch;
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# LP bug #806477: left join over merged join with
-# where condition containing f=f
-#
-CREATE TABLE t1 (a int NOT NULL);
-INSERT INTO t1 VALUES (1), (50), (0);
-CREATE TABLE t2 (a int);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (76,2), (1,NULL);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT t3.b, v1.a
-FROM t3 LEFT JOIN (t2, v1) ON t3.a <> 0
-WHERE v1.a = v1.a OR t3.b <> 0;
-b a
-2 NULL
-EXPLAIN EXTENDED
-SELECT t3.b, v1.a
-FROM t3 LEFT JOIN (t2, v1) ON t3.a <> 0
-WHERE v1.a = v1.a OR t3.b <> 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 0 0.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t3`.`b` AS `b`,`test`.`t1`.`a` AS `a` from `test`.`t3` left join (`test`.`t2` join `test`.`t1`) on(`test`.`t3`.`a` <> 0) where `test`.`t1`.`a` = `test`.`t1`.`a` or `test`.`t3`.`b` <> 0
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #806510: subquery with outer reference
-# to a derived_table/view
-#
-CREATE TABLE t1 (a int) ;
-INSERT INTO t1 VALUES (4), (NULL);
-CREATE TABLE t2 (a int) ;
-INSERT INTO t2 VALUES (8), (0);
-CREATE TABLE t3 (a int, b int) ;
-INSERT INTO t3 VALUES (7,8);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM t1 t
-WHERE EXISTS (SELECT t3.a FROM t3, t2
-WHERE t2.a = t3.b AND t.a != 0);
-a
-4
-EXPLAIN
-SELECT * FROM t1 t
-WHERE EXISTS (SELECT t3.a FROM t3, t2
-WHERE t2.a = t3.b AND t.a != 0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t3 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM (SELECT * FROM t1) t
-WHERE EXISTS (SELECT t3.a FROM t3, t2
-WHERE t2.a = t3.b AND t.a != 0);
-a
-4
-EXPLAIN
-SELECT * FROM (SELECT * FROM t1) t
-WHERE EXISTS (SELECT t3.a FROM t3, t2
-WHERE t2.a = t3.b AND t.a != 0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT SUBQUERY t3 system NULL NULL NULL NULL 1
-3 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM v1 t
-WHERE EXISTS (SELECT t3.a FROM t3, t2
-WHERE t2.a = t3.b AND t.a != 0);
-a
-4
-EXPLAIN
-SELECT * FROM v1 t
-WHERE EXISTS (SELECT t3.a FROM t3, t2
-WHERE t2.a = t3.b AND t.a != 0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t3 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #806097: left join over a view + DISTINCT
-#
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (252,6), (232,0), (174,232);
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES (232), (174);
-CREATE TABLE t3 (c int);
-INSERT INTO t3 VALUES (1), (2);
-CREATE VIEW v1 AS SELECT t2.a FROM t3,t2;
-SELECT v1.a FROM t1 LEFT JOIN v1 ON t1.b = 0;
-a
-NULL
-232
-174
-232
-174
-NULL
-SELECT DISTINCT t2.a FROM t1 LEFT JOIN (t3,t2) ON t1.b = 0;
-a
-NULL
-232
-174
-EXPLAIN
-SELECT DISTINCT t2.a FROM t1 LEFT JOIN (t3,t2) ON t1.b = 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2
-SELECT DISTINCT v1.a FROM t1 LEFT JOIN v1 ON t1.b = 0;
-a
-NULL
-232
-174
-EXPLAIN
-SELECT DISTINCT v1.a FROM t1 LEFT JOIN v1 ON t1.b = 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #806504: right join over a view/derived table
-#
-CREATE TABLE t1 (a int, b int) ;
-INSERT INTO t1 VALUES (0,0);
-CREATE TABLE t2 (a int) ;
-INSERT INTO t2 VALUES (0), (0);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM t2 RIGHT JOIN (SELECT * FROM t1) AS t ON t.a != 0
-WHERE t.a IN (SELECT b FROM t1);
-a a b
-NULL 0 0
-EXPLAIN EXTENDED
-SELECT * FROM t2 RIGHT JOIN (SELECT * FROM t1) AS t ON t.a != 0
-WHERE t.a IN (SELECT b FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,0 AS `a`,0 AS `b` from `test`.`t2` semi join (dual) where 1
-SELECT * FROM t2 RIGHT JOIN v1 AS t ON t.a != 0
-WHERE t.a IN (SELECT b FROM t1);
-a a b
-NULL 0 0
-EXPLAIN EXTENDED
-SELECT * FROM t2 RIGHT JOIN v1 AS t ON t.a != 0
-WHERE t.a IN (SELECT b FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,0 AS `a`,0 AS `b` from `test`.`t2` semi join (dual) where 1
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# LP bug #809206: DISTINCT in derived table / view
-#
-CREATE TABLE t1 (a int) ;
-INSERT INTO t1 VALUES (0);
-CREATE TABLE t2 (a varchar(32), b int, KEY (a)) ;
-INSERT INTO t2 VALUES
-('j',28), ('c',29), ('i',26), ('c',29), ('k',27),
-('j',28), ('c',29), ('i',25), ('d',26), ('k',27),
-('n',28), ('d',29), ('m',26), ('e',29), ('p',27),
-('w',28), ('x',29), ('y',25), ('z',26), ('s',27);
-CREATE TABLE t3 (a varchar(32));
-INSERT INTO t3 VALUES ('j'), ('c');
-CREATE VIEW v1 AS SELECT DISTINCT t2.b FROM t1,t2,t3 WHERE t3.a = t2.a;
-SELECT DISTINCT t2.b FROM t1,t2,t3 WHERE t3.a = t2.a;
-b
-28
-29
-EXPLAIN
-SELECT DISTINCT t2.b FROM t1,t2,t3 WHERE t3.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 Using temporary
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t2 ref a a 35 test.t3.a 2
-SELECT * FROM (SELECT DISTINCT t2.b FROM t1,t2,t3 WHERE t3.a = t2.a) t;
-b
-28
-29
-EXPLAIN
-SELECT * FROM (SELECT DISTINCT t2.b FROM t1,t2,t3 WHERE t3.a = t2.a) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4
-2 DERIVED t1 system NULL NULL NULL NULL 1 Using temporary
-2 DERIVED t3 ALL NULL NULL NULL NULL 2 Using where
-2 DERIVED t2 ref a a 35 test.t3.a 2
-SELECT * FROM v1;
-b
-28
-29
-EXPLAIN
-SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4
-2 DERIVED t1 system NULL NULL NULL NULL 1 Using temporary
-2 DERIVED t3 ALL NULL NULL NULL NULL 2 Using where
-2 DERIVED t2 ref a a 35 test.t3.a 2
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #809179: right join over a derived table / view
-#
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (6,5);
-CREATE TABLE t2 (a int, b int);
-INSERT INTO t2 VALUES (1,0);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (6,5);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT t.a,t.b FROM t3 RIGHT JOIN (t1 AS t, t2) ON t2.b != 0
-WHERE (t.a,t.b) NOT IN (SELECT 7, 5);
-a b
-6 5
-EXPLAIN EXTENDED
-SELECT t.a,t.b FROM t3 RIGHT JOIN (t1 AS t, t2) ON t2.b != 0
-WHERE (t.a,t.b) NOT IN (SELECT 7, 5);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t2 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t3 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select 6 AS `a`,5 AS `b` from `test`.`t3` where 1
-SELECT t.a,t.b FROM t3 RIGHT JOIN ((SELECT * FROM t1) AS t, t2) ON t2.b != 0
-WHERE (t.a,t.b) NOT IN (SELECT 7, 5);
-a b
-6 5
-EXPLAIN EXTENDED
-SELECT t.a,t.b FROM t3 RIGHT JOIN ((SELECT * FROM t1) AS t, t2) ON t2.b != 0
-WHERE (t.a,t.b) NOT IN (SELECT 7, 5);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t2 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t3 system NULL NULL NULL NULL 1 100.00
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select 6 AS `a`,5 AS `b` from `test`.`t3` where 1
-SELECT t.a,t.b FROM t3 RIGHT JOIN (v1 AS t, t2) ON t2.b != 0
-WHERE (t.a,t.b) NOT IN (SELECT 7, 5);
-a b
-6 5
-EXPLAIN EXTENDED
-SELECT t.a,t.b FROM t3 RIGHT JOIN (v1 AS t, t2) ON t2.b != 0
-WHERE (t.a,t.b) NOT IN (SELECT 7, 5);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t2 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t3 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select 6 AS `a`,5 AS `b` from `test`.`t3` where 1
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #794901: insert into a multi-table view
-#
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int);
-CREATE TABLE t3 (a int);
-CREATE VIEW v1 AS SELECT t1.a FROM t1,t2;
-CREATE VIEW v2 AS SELECT a FROM t2 GROUP BY a;
-CREATE VIEW v3 AS SELECT v1.a FROM v1,v2;
-INSERT INTO v3(a) VALUES (1);
-ERROR HY000: The target table v3 of the INSERT is not insertable-into
-DROP VIEW v1,v2,v3;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #793448: materialized view accessed by two-component key
-#
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (9,3), (2,5);
-CREATE TABLE t2 (a int, b int);
-INSERT INTO t2 VALUES (9,3), (3,7), (9,1), (2,5), (2,4), (3,8);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (10,3), (9,7), (9,1), (2,4);
-CREATE VIEW v1(a,b) AS SELECT a, MAX(b) FROM t2 GROUP BY a;
-CREATE VIEW v2(a,b) AS SELECT a,b FROM t2 UNION SELECT a,b FROM t3;
-SELECT * FROM v1;
-a b
-2 5
-3 8
-9 3
-SELECT a FROM t1 WHERE (a,b) IN (SELECT * FROM v1);
-a
-9
-2
-EXPLAIN
-SELECT a FROM t1 WHERE (a,b) IN (SELECT * FROM v1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY <derived3> ref key0 key0 10 test.t1.a,test.t1.b 2 FirstMatch(t1)
-3 DERIVED t2 ALL NULL NULL NULL NULL 6 Using temporary; Using filesort
-SELECT * FROM v2;
-a b
-9 3
-3 7
-9 1
-2 5
-2 4
-3 8
-10 3
-9 7
-SELECT a FROM t1 WHERE (a,b) IN (SELECT * FROM v2);
-a
-9
-2
-EXPLAIN
-SELECT a FROM t1 WHERE (a,b) IN (SELECT * FROM v2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY <derived3> ref key0 key0 10 test.t1.a,test.t1.b 2 FirstMatch(t1)
-3 DERIVED t2 ALL NULL NULL NULL NULL 6
-4 UNION t3 ALL NULL NULL NULL NULL 4
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL
-DROP VIEW v1,v2;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #804686: query over a derived table using a view
-# with a degenerated where condition
-#
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (0,0), (1,0), (0,0), (1,1), (1,0);
-CREATE VIEW v1 AS SELECT a,b FROM t1;
-CREATE VIEW v2 AS SELECT a, MAX(b) AS b FROM t1 GROUP BY a;
-SELECT * FROM (SELECT b FROM v1 WHERE b = 0) t WHERE b<>0;
-b
-SELECT * FROM (SELECT b FROM v2 WHERE b = 0) t WHERE b<>0;
-b
-SELECT * FROM (SELECT b FROM v1 WHERE b = 0) t WHERE b;
-b
-SELECT * FROM (SELECT b FROM v2 WHERE b = 0) t WHERE b;
-b
-EXPLAIN EXTENDED
-SELECT * FROM (SELECT b FROM v1 WHERE b = 0) t WHERE b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`b` AS `b` from `test`.`t1` where 0
-EXPLAIN EXTENDED
-SELECT * FROM (SELECT b FROM v2 WHERE b = 0) t WHERE b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-3 DERIVED t1 ALL NULL NULL NULL NULL 5 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `v2`.`b` AS `b` from `test`.`v2` where 0
-DROP VIEW v1,v2;
-DROP TABLE t1;
-#
-# LP bug #819716: crash with embedded tableless materialized derived
-# with a variable
-#
-set optimizer_switch='derived_merge=off';
-EXPLAIN
-SELECT * FROM (SELECT * FROM (SELECT @b) AS t) AS s;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 1
-2 DERIVED <derived3> system NULL NULL NULL NULL 1
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL No tables used
-SELECT * FROM (SELECT * FROM (SELECT @b) AS t) AS s;
-@b
-NULL
-set optimizer_switch='derived_merge=on';
-#
-# LP bug #823826: view over join + IS NULL in WHERE
-#
-CREATE TABLE t1 (a int) ;
-INSERT INTO t1 VALUES (1), (1);
-CREATE TABLE t2 (b int) ;
-INSERT INTO t2 VALUES (9), (NULL), (7);
-CREATE VIEW v1 AS SELECT * FROM t1,t2;
-EXPLAIN
-SELECT * FROM (SELECT * FROM t1,t2) t WHERE b IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM (SELECT * FROM t1,t2) t WHERE b IS NULL;
-a b
-1 NULL
-1 NULL
-EXPLAIN
-SELECT * FROM v1 WHERE b IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM v1 WHERE b IS NULL;
-a b
-1 NULL
-1 NULL
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# LP bug #823835: a duplicate of #823189 with derived table
-#
-CREATE TABLE t1 (a varchar(32)) ;
-INSERT INTO t1 VALUES ('r'), ('p');
-CREATE TABLE t2 (a int NOT NULL, b varchar(32)) ;
-INSERT INTO t2 VALUES (28,'j');
-CREATE TABLE t3 (a int);
-INSERT INTO t3 VALUES (0), (0);
-EXPLAIN EXTENDED
-SELECT * FROM (SELECT * FROM t1) AS t
-WHERE EXISTS (SELECT t2.a FROM t3 RIGHT JOIN t2 ON (t3.a = t2.a)
-WHERE t2.b < t.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DEPENDENT SUBQUERY t2 system NULL NULL NULL NULL 1 100.00
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 't.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where <in_optimizer>(1,<expr_cache><`test`.`t1`.`a`>(exists(/* select#3 */ select 28 from `test`.`t3` where 'j' < `test`.`t1`.`a`)))
-SELECT * FROM (SELECT * FROM t1) AS t
-WHERE EXISTS (SELECT t2.a FROM t3 RIGHT JOIN t2 ON (t3.a = t2.a)
-WHERE t2.b < t.a);
-a
-r
-p
-DROP TABLE t1,t2,t3;
-#
-# LP bug #824463: nested outer join using a merged view
-# as an inner table
-#
-CREATE TABLE t1 (b int, a int) ;
-CREATE TABLE t2 (a int) ;
-INSERT INTO t2 VALUES (5), (6);
-CREATE TABLE t3 (a int , c int) ;
-INSERT INTO t3 VALUES (22,1), (23,-1);
-CREATE TABLE t4 (a int);
-CREATE TABLE t5 (d int) ;
-INSERT INTO t5 VALUES (0), (7), (3), (5);
-CREATE VIEW v2 AS SELECT * FROM t2;
-CREATE VIEW v3 AS SELECT * FROM t3;
-EXPLAIN EXTENDED
-SELECT STRAIGHT_JOIN *
-FROM ( t2 AS s2
-JOIN
-( t3 AS s3
-LEFT JOIN
-( t4 LEFT JOIN t3 ON t4.a != 0 )
-ON s3.a != 0)
-ON s2.a != 0)
-JOIN t5 ON s3.c != 0 AND t5.d = 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE s2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE s3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 0 0.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t5 ALL NULL NULL NULL NULL 4 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select straight_join `test`.`s2`.`a` AS `a`,`test`.`s3`.`a` AS `a`,`test`.`s3`.`c` AS `c`,`test`.`t4`.`a` AS `a`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`c` AS `c`,`test`.`t5`.`d` AS `d` from `test`.`t2` `s2` join `test`.`t3` `s3` left join (`test`.`t4` left join `test`.`t3` on(`test`.`t4`.`a` <> 0)) on(`test`.`s3`.`a` <> 0) join `test`.`t5` where `test`.`t5`.`d` = 0 and `test`.`s3`.`c` <> 0 and `test`.`s2`.`a` <> 0
-SELECT STRAIGHT_JOIN *
-FROM ( t2 AS s2
-JOIN
-( t3 AS s3
-LEFT JOIN
-( t4 LEFT JOIN t3 ON t4.a != 0 )
-ON s3.a != 0)
-ON s2.a != 0)
-JOIN t5 ON s3.c != 0 AND t5.d = 0;
-a a c a a c d
-5 22 1 NULL NULL NULL 0
-6 22 1 NULL NULL NULL 0
-5 23 -1 NULL NULL NULL 0
-6 23 -1 NULL NULL NULL 0
-EXPLAIN EXTENDED
-SELECT STRAIGHT_JOIN *
-FROM t2 AS s2 , t5,
-(t3 LEFT JOIN (t4 LEFT JOIN t3 AS s3 ON t4.a != 0) ON t3.a != 0)
-WHERE s2.a != 0 AND t3.c != 0 AND t5.d = 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE s2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t5 ALL NULL NULL NULL NULL 4 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 0 0.00 Using where
-1 SIMPLE s3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select straight_join `test`.`s2`.`a` AS `a`,`test`.`t5`.`d` AS `d`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`c` AS `c`,`test`.`t4`.`a` AS `a`,`test`.`s3`.`a` AS `a`,`test`.`s3`.`c` AS `c` from `test`.`t2` `s2` join `test`.`t5` join `test`.`t3` left join (`test`.`t4` left join `test`.`t3` `s3` on(`test`.`t4`.`a` <> 0)) on(`test`.`t3`.`a` <> 0) where `test`.`t5`.`d` = 0 and `test`.`s2`.`a` <> 0 and `test`.`t3`.`c` <> 0
-SELECT STRAIGHT_JOIN *
-FROM t2 AS s2 , t5,
-(t3 LEFT JOIN (t4 LEFT JOIN t3 AS s3 ON t4.a != 0) ON t3.a != 0)
-WHERE s2.a != 0 AND t3.c != 0 AND t5.d = 0;
-a d a c a a c
-5 0 22 1 NULL NULL NULL
-6 0 22 1 NULL NULL NULL
-5 0 23 -1 NULL NULL NULL
-6 0 23 -1 NULL NULL NULL
-EXPLAIN EXTENDED
-SELECT STRAIGHT_JOIN *
-FROM v2 AS s2 , t5,
-(t3 LEFT JOIN (t4 LEFT JOIN v3 AS s3 ON t4.a != 0) ON t3.a != 0)
-WHERE s2.a != 0 AND t3.c != 0 AND t5.d = 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t5 ALL NULL NULL NULL NULL 4 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 0 0.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select straight_join `test`.`t2`.`a` AS `a`,`test`.`t5`.`d` AS `d`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`c` AS `c`,`test`.`t4`.`a` AS `a`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`c` AS `c` from `test`.`t2` join `test`.`t5` join `test`.`t3` left join (`test`.`t4` left join (`test`.`t3`) on(`test`.`t4`.`a` <> 0)) on(`test`.`t3`.`a` <> 0) where `test`.`t5`.`d` = 0 and `test`.`t2`.`a` <> 0 and `test`.`t3`.`c` <> 0
-SELECT STRAIGHT_JOIN *
-FROM v2 AS s2 , t5,
-(t3 LEFT JOIN (t4 LEFT JOIN v3 AS s3 ON t4.a != 0) ON t3.a != 0)
-WHERE s2.a != 0 AND t3.c != 0 AND t5.d = 0;
-a d a c a a c
-5 0 22 1 NULL NULL NULL
-6 0 22 1 NULL NULL NULL
-5 0 23 -1 NULL NULL NULL
-6 0 23 -1 NULL NULL NULL
-SELECT STRAIGHT_JOIN *
-FROM ( ( t2 AS s2
-LEFT JOIN
-( t3 AS s3
-LEFT JOIN
-( t4 AS s4 JOIN t3 ON s4.a != 0)
-ON s3.a != 0 )
-ON s2.a != 0)
-LEFT JOIN
-t1 AS s1
-ON s1.a != 0)
-JOIN t5 ON s3.c != 0;
-a a c a a c b a d
-5 22 1 NULL NULL NULL NULL NULL 0
-6 22 1 NULL NULL NULL NULL NULL 0
-5 23 -1 NULL NULL NULL NULL NULL 0
-6 23 -1 NULL NULL NULL NULL NULL 0
-5 22 1 NULL NULL NULL NULL NULL 7
-6 22 1 NULL NULL NULL NULL NULL 7
-5 23 -1 NULL NULL NULL NULL NULL 7
-6 23 -1 NULL NULL NULL NULL NULL 7
-5 22 1 NULL NULL NULL NULL NULL 3
-6 22 1 NULL NULL NULL NULL NULL 3
-5 23 -1 NULL NULL NULL NULL NULL 3
-6 23 -1 NULL NULL NULL NULL NULL 3
-5 22 1 NULL NULL NULL NULL NULL 5
-6 22 1 NULL NULL NULL NULL NULL 5
-5 23 -1 NULL NULL NULL NULL NULL 5
-6 23 -1 NULL NULL NULL NULL NULL 5
-SELECT STRAIGHT_JOIN *
-FROM ( ( v2 AS s2
-LEFT JOIN
-( v3 AS s3
-LEFT JOIN
-( t4 AS s4 JOIN v3 ON s4.a != 0)
-ON s3.a != 0 )
-ON s2.a != 0)
-LEFT JOIN
-t1 AS s1
-ON s1.a != 0)
-JOIN t5 ON s3.c != 0;
-a a c a a c b a d
-5 22 1 NULL NULL NULL NULL NULL 0
-6 22 1 NULL NULL NULL NULL NULL 0
-5 23 -1 NULL NULL NULL NULL NULL 0
-6 23 -1 NULL NULL NULL NULL NULL 0
-5 22 1 NULL NULL NULL NULL NULL 7
-6 22 1 NULL NULL NULL NULL NULL 7
-5 23 -1 NULL NULL NULL NULL NULL 7
-6 23 -1 NULL NULL NULL NULL NULL 7
-5 22 1 NULL NULL NULL NULL NULL 3
-6 22 1 NULL NULL NULL NULL NULL 3
-5 23 -1 NULL NULL NULL NULL NULL 3
-6 23 -1 NULL NULL NULL NULL NULL 3
-5 22 1 NULL NULL NULL NULL NULL 5
-6 22 1 NULL NULL NULL NULL NULL 5
-5 23 -1 NULL NULL NULL NULL NULL 5
-6 23 -1 NULL NULL NULL NULL NULL 5
-DROP VIEW v2,v3;
-DROP TABLE t1,t2,t3,t4,t5;
-#
-# LP bug #872735: derived used in a NOT IN subquery
-#
-CREATE TABLE t1 (b int NOT NULL);
-INSERT INTO t1 VALUES (9), (7);
-CREATE TABLE t2 (a int NOT NULL) ;
-INSERT INTO t2 VALUES (1), (2);
-CREATE TABLE t3 (
-a int NOT NULL , c int NOT NULL, d varchar(1) NOT NULL,
-KEY (c,a) , PRIMARY KEY (a)
-);
-INSERT INTO t3 VALUES
-(14,4,'a'), (15,7,'b'), (16,4,'c'), (17,1,'d'), (18,9,'e'),
-(19,4,'f'), (20,8,'g');
-SET SESSION optimizer_switch='derived_merge=on,subquery_cache=off,materialization=off';
-# The following two EXPLAINs must return the same execution plan
-EXPLAIN
-SELECT * FROM t1 , t2
-WHERE (t2.a ,t1.b) NOT IN (SELECT DISTINCT c,a FROM t3 t);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t unique_subquery PRIMARY,c PRIMARY 4 func 1 Using where
-EXPLAIN
-SELECT * FROM t1 , t2
-WHERE (t2.a ,t1.b) NOT IN (SELECT DISTINCT c,a FROM (SELECT * FROM t3) t);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t3 unique_subquery PRIMARY,c PRIMARY 4 func 1 Using where
-SELECT * FROM t1 , t2
-WHERE (t2.a ,t1.b) NOT IN (SELECT DISTINCT c,a FROM (SELECT * FROM t3) t);
-b a
-9 1
-7 1
-9 2
-7 2
-DROP TABLE t1,t2,t3;
-#
-# LP bug #874006: materialized view used in IN subquery
-#
-CREATE TABLE t3 (a int NOT NULL, b varchar(1), c varchar(1));
-INSERT INTO t3 VALUES (19,NULL,NULL), (20,'r','r');
-CREATE TABLE t1 (a int, b varchar(1) , c varchar(1));
-INSERT INTO t1 VALUES (1,NULL,NULL), (5,'r','r'), (7,'y','y');
-CREATE TABLE t2 (a int NOT NULL , b int, c varchar(1));
-INSERT INTO t2 VALUES (4,3,'r');
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='semijoin_with_cache=off';
-SET SESSION optimizer_switch='derived_with_keys=off';
-EXPLAIN
-SELECT * FROM t3
-WHERE t3.b IN (SELECT v1.b FROM v1, t2
-WHERE t2.c = v1.c AND t2.c = v1.b AND v1.b = t3.c);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 3 Using where; Start temporary; End temporary
-3 DERIVED t1 ALL NULL NULL NULL NULL 3
-SELECT * FROM t3
-WHERE t3.b IN (SELECT v1.b FROM v1, t2
-WHERE t2.c = v1.c AND t2.c = v1.b AND v1.b = t3.c);
-a b c
-20 r r
-SET SESSION optimizer_switch='derived_with_keys=on';
-EXPLAIN
-SELECT * FROM t3
-WHERE t3.b IN (SELECT v1.b FROM v1, t2
-WHERE t2.c = v1.c AND t2.c = v1.b AND v1.b = t3.c);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-1 PRIMARY <derived3> ref key1 key1 8 const,const 0 Start temporary
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where; End temporary; Using join buffer (flat, BNL join)
-3 DERIVED t1 ALL NULL NULL NULL NULL 3
-SELECT * FROM t3
-WHERE t3.b IN (SELECT v1.b FROM v1, t2
-WHERE t2.c = v1.c AND t2.c = v1.b AND v1.b = t3.c);
-a b c
-20 r r
-SET optimizer_switch=@save_optimizer_switch;
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #873263: materialized view used in correlated IN subquery
-#
-CREATE TABLE t1 (a int, b int) ;
-INSERT INTO t1 VALUES (5,4), (9,8);
-CREATE TABLE t2 (a int, b int) ;
-INSERT INTO t2 VALUES (4,5), (5,1);
-CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
-SET SESSION optimizer_switch='derived_with_keys=on';
-EXPLAIN
-SELECT * FROM t1 WHERE t1.b IN (SELECT v2.a FROM v2 WHERE v2.b = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY <derived3> ref key0 key0 10 test.t1.b,test.t1.a 2 FirstMatch(t1)
-3 DERIVED t2 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 WHERE t1.b IN (SELECT v2.a FROM v2 WHERE v2.b = t1.a);
-a b
-5 4
-DROP VIEW v2;
-DROP TABLE t1,t2;
-#
-# LP bug #877316: query over a view with correlated subquery in WHERE
-#
-CREATE TABLE t1 (a int, b int, PRIMARY KEY (a)) ;
-INSERT INTO t1 VALUES (18,2), (19,9);
-CREATE TABLE t2 (a int, b int) ;
-INSERT INTO t2 VALUES (10,8), (5,10);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT t1.a FROM t1
-WHERE EXISTS (SELECT t2.a FROM t2 WHERE t2.b < t1.b);
-a
-19
-EXPLAIN
-SELECT t1.a FROM t1
-WHERE EXISTS (SELECT t2.a FROM t2 WHERE t2.b < t1.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT v1.a FROM v1
-WHERE EXISTS (SELECT t2.a FROM t2 WHERE t2.b < v1.b);
-a
-19
-EXPLAIN
-SELECT v1.a FROM v1
-WHERE EXISTS (SELECT t2.a FROM t2 WHERE t2.b < v1.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# LP bug #878199: join of two materialized views
-#
-CREATE TABLE t1 (a int, b varchar(1)) ;
-INSERT INTO t1 VALUES (7,'c'), (3,'h'), (7,'c');
-CREATE TABLE t2 (b varchar(1)) ;
-INSERT INTO t2 VALUES ('p'), ('c'), ('j'), ('c'), ('p');
-CREATE VIEW v1 AS SELECT * FROM t1 GROUP BY a,b;
-CREATE VIEW v2 AS SELECT * FROM t2 GROUP BY b;
-SET SESSION optimizer_switch = 'derived_with_keys=on';
-SELECT v1.a FROM v1,v2 WHERE v2.b = v1.b ORDER BY 1;
-a
-7
-EXPLAIN
-SELECT v1.a FROM v1,v2 WHERE v2.b = v1.b ORDER BY 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3 Using where; Using filesort
-1 PRIMARY <derived3> ref key0 key0 4 v1.b 2
-3 DERIVED t2 ALL NULL NULL NULL NULL 5 Using temporary; Using filesort
-2 DERIVED t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
-DROP VIEW v1,v2;
-DROP TABLE t1,t2;
-#
-# Bug #743378: join over merged view employing BNL
-#
-CREATE TABLE t1 ( d varchar(1) NOT NULL) ;
-INSERT INTO t1 VALUES ('j'),('v'),('c');
-CREATE TABLE t2 (h time NOT NULL, d varchar(1) NOT NULL) ;
-INSERT INTO t2 VALUES ('05:03:03','w'),('02:59:24','d'),('00:01:58','e');
-CREATE TABLE t3 (
-b int NOT NULL, e varchar(1) NOT NULL, d varchar(1) NOT NULL, KEY (e,b)
-);
-INSERT INTO t3 VALUES (4,'x','x'),(9,'w','w'),(4,'d','d'),(8,'e','e');
-INSERT INTO t3 VALUES (14,'a','a'),(19,'b','b'),(14,'c','c'),(18,'d','d');
-CREATE TABLE t4 (i int NOT NULL, m varchar(1) NOT NULL) ;
-INSERT INTO t4 VALUES (8,'m'),(9,'d'),(2,'s'),(4,'r'),(8,'m');
-CREATE TABLE t5 (
-a int NOT NULL, c int NOT NULL, b int NOT NULL, f date NOT NULL,
-g date NOT NULL, h time NOT NULL, j time NOT NULL, k datetime NOT NULL
-);
-INSERT INTO t5 VALUES
-(1,4,0,'0000-00-00','0000-00-00','21:22:34','21:22:34','2002-02-13 17:30'),
-(2,6,8,'2004-09-18','2004-09-18','10:50:38','10:50:38','2008-09-27 00:34');
-CREATE VIEW v3 AS SELECT t3.*, t4.i FROM t3, t4, t5;
-SET SESSION join_cache_level = 1;
-SET SESSION join_buffer_size = 512;
-EXPLAIN
-SELECT t2.d FROM t1,t2,v3 WHERE v3.e = t2.d AND v3.i < 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t5 ALL NULL NULL NULL NULL 2
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 SIMPLE t3 ref e e 3 test.t2.d 1 Using index
-1 SIMPLE t4 ALL NULL NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-SELECT t2.d FROM t1,t2,v3 WHERE v3.e = t2.d AND v3.i < 3;
-d
-w
-w
-w
-w
-w
-w
-d
-d
-d
-d
-d
-d
-d
-d
-d
-d
-d
-d
-e
-e
-e
-e
-e
-e
-SET SESSION join_cache_level = DEFAULT;
-SET SESSION join_buffer_size = DEFAULT;
-DROP VIEW v3;
-DROP TABLE t1,t2,t3,t4,t5;
-#
-# Bug #879882: right join within mergeable derived table
-#
-CREATE TABLE t1 (a varchar(1));
-INSERT INTO t1 VALUES ('c'), ('a');
-CREATE TABLE t2 (a int, b int, c varchar(1));
-INSERT INTO t2 VALUES (29,8,'c'), (39,7,'b');
-CREATE TABLE t3 (b int);
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-EXPLAIN EXTENDED
-SELECT t.b, t.c, t1.a
-FROM t1, (SELECT t2.b, t2.c FROM t3 RIGHT JOIN t2 ON t2.a = t3.b) AS t
-WHERE t.b AND t.c = t1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 system NULL NULL NULL NULL 0 0.00 Const row not found
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t1`.`a` AS `a` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`c` = `test`.`t1`.`a` and `test`.`t2`.`b` <> 0
-SELECT t.b, t.c, t1.a
-FROM t1, (SELECT t2.b, t2.c FROM t3 RIGHT JOIN t2 ON t2.a = t3.b) AS t
-WHERE t.b AND t.c = t1.a;
-b c a
-8 c c
-EXPLAIN EXTENDED
-SELECT t.b, t.c, t1.a
-FROM t1, (SELECT t2.b, t2.c FROM t3 RIGHT JOIN t2 ON t2.a = t3.b) AS t
-WHERE t.b <> 0 AND t.c = t1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 system NULL NULL NULL NULL 0 0.00 Const row not found
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t1`.`a` AS `a` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`c` = `test`.`t1`.`a` and `test`.`t2`.`b` <> 0
-SELECT t.b, t.c, t1.a
-FROM t1, (SELECT t2.b, t2.c FROM t3 RIGHT JOIN t2 ON t2.a = t3.b) AS t
-WHERE t.b <> 0 AND t.c = t1.a;
-b c a
-8 c c
-INSERT INTO t3 VALUES (100), (200);
-EXPLAIN EXTENDED
-SELECT t.b, t.c, t1.a
-FROM t1, (SELECT t2.b, t2.c FROM t3 RIGHT JOIN t2 ON t2.a = t3.b) AS t
-WHERE t.b AND t.c = t1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t1`.`a` AS `a` from `test`.`t1` join `test`.`t2` left join `test`.`t3` on(`test`.`t3`.`b` = `test`.`t2`.`a`) where `test`.`t2`.`c` = `test`.`t1`.`a` and `test`.`t2`.`b` <> 0
-SELECT t.b, t.c, t1.a
-FROM t1, (SELECT t2.b, t2.c FROM t3 RIGHT JOIN t2 ON t2.a = t3.b) AS t
-WHERE t.b AND t.c = t1.a;
-b c a
-8 c c
-EXPLAIN EXTENDED
-SELECT t.b, t.c, t1.a
-FROM t1, (SELECT t2.b, t2.c FROM t3 RIGHT JOIN t2 ON t2.a = t3.b) AS t
-WHERE t.b <> 0 AND t.c = t1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t1`.`a` AS `a` from `test`.`t1` join `test`.`t2` left join `test`.`t3` on(`test`.`t3`.`b` = `test`.`t2`.`a`) where `test`.`t2`.`c` = `test`.`t1`.`a` and `test`.`t2`.`b` <> 0
-SELECT t.b, t.c, t1.a
-FROM t1, (SELECT t2.b, t2.c FROM t3 RIGHT JOIN t2 ON t2.a = t3.b) AS t
-WHERE t.b <> 0 AND t.c = t1.a;
-b c a
-8 c c
-SET optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t2,t3;
-#
-# Bug #880724: materialized const view as inner table of outer join
-#
-CREATE TABLE t1 (a int, b varchar(1));
-INSERT INTO t1 VALUES (9,NULL), (6,'r'), (7,'c');
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES (6);
-CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-SET SESSION optimizer_switch = 'derived_with_keys=on';
-SET SESSION join_cache_level = 4;
-EXPLAIN
-SELECT t1.b,v2.a FROM t1 LEFT JOIN v2 ON v2.a = t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 1 Using where
-2 DERIVED t2 system NULL NULL NULL NULL 1
-SELECT t1.b,v2.a FROM t1 LEFT JOIN v2 ON v2.a = t1.a;
-b a
-NULL NULL
-r 6
-c NULL
-CREATE TABLE t3 (a int, b varchar(1));
-INSERT INTO t3 VALUES (8,'x'), (5,'r'), (9,'y');
-EXPLAIN
-SELECT * FROM t3
-WHERE t3.b <> ANY (SELECT t1.b FROM t1 LEFT JOIN v2 ON v2.a = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 Using where
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 3 Using where
-2 DEPENDENT SUBQUERY <derived3> ALL NULL NULL NULL NULL 1 Using where
-3 DERIVED t2 system NULL NULL NULL NULL 1
-SELECT * FROM t3
-WHERE t3.b <> ANY (SELECT t1.b FROM t1 LEFT JOIN v2 ON v2.a = t1.a);
-a b
-8 x
-5 r
-9 y
-SET SESSION join_cache_level = default;
-SET optimizer_switch=@save_optimizer_switch;
-DROP VIEW v2;
-DROP TABLE t1,t2,t3;
-#
-# Bug #881449: OUTER JOIN usin a merged view within IN subquery
-#
-CREATE TABLE t1 (a varchar(1)) ;
-INSERT INTO t1 VALUES ('y'), ('x');
-CREATE TABLE t2 (a int, PRIMARY KEY (a)) ;
-INSERT INTO t2 VALUES (1), (2);
-CREATE TABLE t3 (a int, b varchar(1)) ;
-INSERT INTO t3 VALUES (1,'x');
-CREATE VIEW v3 AS SELECT * FROM t3;
-SET SESSION optimizer_switch='semijoin=on';
-EXPLAIN
-SELECT * FROM t1 WHERE a IN (SELECT v3.b FROM t2 RIGHT JOIN v3 ON v3.a = t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 system NULL NULL NULL NULL 1
-1 PRIMARY t2 const PRIMARY PRIMARY 4 const 1 Using index
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 WHERE a IN (SELECT v3.b FROM t2 RIGHT JOIN v3 ON v3.a = t2.a);
-a
-x
-set optimizer_switch= @save_optimizer_switch;
-DROP VIEW v3;
-DROP TABLE t1,t2,t3;
-#
-# Bug #874035: view as an inner table of a materialized derived
-#
-CREATE TABLE t2 (a int NOT NULL);
-INSERT INTO t2 VALUES (7), (4);
-CREATE TABLE t1 (b int NOT NULL);
-INSERT INTO t1 VALUES (5), (7);
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET SESSION optimizer_switch='derived_merge=off';
-PREPARE st1 FROM
-'SELECT * FROM (SELECT * FROM t2 LEFT JOIN v1 ON t2.a = v1.b) AS t';
-EXECUTE st1;
-a b
-7 7
-4 NULL
-EXECUTE st1;
-a b
-7 7
-4 NULL
-DEALLOCATE PREPARE st1;
-set SESSION optimizer_switch= @save_optimizer_switch;
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# LP bug #879939: assertion in ha_maria::enable_indexes
-# with derived_with_keys=on
-#
-CREATE TABLE t2 (a varchar(3));
-INSERT INTO t2 VALUES ('USA'), ('USA'), ('USA'), ('USA'), ('USA');
-CREATE TABLE t1 (a varchar(3), b varchar(35));
-INSERT INTO t1 VALUES
-('USA','Lansing'), ('USA','Laredo'), ('USA','Las Vegas'),
-('USA','Lexington-Fayett'), ('USA','Lincoln'), ('USA','Little Rock'),
-('USA','Livonia'), ('USA','Long Beach'), ('USA','Los Angeles'),
-('USA','Louisville'), ('USA','Lowell'), ('USA','Lubbock'),
-('USA','Macon'), ('USA','Madison'), ('USA','Manchester'),
-('USA','McAllen'), ('USA','Memphis'), ('USA','Mesa'),
-('USA','Mesquite'), ('USA','Metairie'), ('USA','Miami');
-CREATE TABLE t3 (a varchar(35));
-INSERT INTO t3 VALUES ('Miami');
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch = 'derived_with_keys=on';
-SET @@tmp_table_size=1024*4;
-explain SELECT * FROM (SELECT t1.* FROM t1, t2) AS t JOIN t3 ON t3.a = t.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 system NULL NULL NULL NULL 1
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5
-1 SIMPLE t1 ALL NULL NULL NULL NULL 21 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM (SELECT t1.* FROM t1, t2) AS t JOIN t3 ON t3.a = t.b;
-a b a
-USA Miami Miami
-USA Miami Miami
-USA Miami Miami
-USA Miami Miami
-USA Miami Miami
-SET @@tmp_table_size=1024*1024*16;
-SELECT * FROM (SELECT t1.* FROM t1, t2) AS t JOIN t3 ON t3.a = t.b;
-a b a
-USA Miami Miami
-USA Miami Miami
-USA Miami Miami
-USA Miami Miami
-USA Miami Miami
-SET @@tmp_table_size=default;
-set SESSION optimizer_switch= @save_optimizer_switch;
-drop table t1,t2,t3;
-#
-# BUG#882994: Crash in QUICK_RANGE_SELECT::reset with derived_with_keys
-#
-CREATE TABLE t2 (
-pk varchar(33),
-col_varchar_key varchar(3) NOT NULL,
-col_varchar_nokey varchar(52) NOT NULL);
-INSERT INTO t2 VALUES ('NICSpanish','NIC','Spanish'),
-('NERHausa','NER','Hausa'),('NGAJoruba','NGA','Joruba'),
-('NIUNiue','NIU','Niue'),('NFKEnglish','NFK','English'),
-('NORNorwegian','NOR','Norwegian'),('CIVAkan','CIV','Akan'),
-('OMNArabic','OMN','Arabic'),('PAKPunjabi','PAK','Punjabi'),
-('PLWPalau','PLW','Palau'),('PANSpanish','PAN','Spanish'),
-('PNGPapuan Langua','PNG','Papuan Languages'), ('PRYSpanish','PRY','Spanish'),
-('PERSpanish','PER','Spanish'), ('PCNPitcairnese','PCN','Pitcairnese'),
-('MNPPhilippene La','MNP','Philippene Langu'),('PRTPortuguese','PRT','Portuguese'),
-('PRISpanish','PRI','Spanish'),('POLPolish','POL','Polish'),('GNQFang','GNQ','Fang');
-CREATE TABLE t1 ( col_varchar_nokey varchar(52) NOT NULL ) ;
-INSERT INTO t1 VALUES ('Chinese'),('English'),('French'),('German'),
-('Italian'),('Japanese'),('Korean'),('Polish'),('Portuguese'),('Spanish'),
-('Tagalog'),('Vietnamese');
-CREATE TABLE t3 ( col_varchar_key varchar(52)) ;
-INSERT INTO t3 VALUES ('United States');
-set @tmp_882994= @@max_heap_table_size;
-set max_heap_table_size=1;
-SELECT *
-FROM t3 JOIN
-( SELECT t2.* FROM t1, t2 ) AS alias2
-ON ( alias2.col_varchar_nokey = t3.col_varchar_key )
-ORDER BY CONCAT(alias2.col_varchar_nokey);
-col_varchar_key pk col_varchar_key col_varchar_nokey
-set max_heap_table_size= @tmp_882994;
-drop table t1,t2,t3;
-#
-# LP bug #917990: Bad estimate of #rows for derived table with LIMIT
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES
-(8), (3), (4), (7), (9), (5), (1), (2);
-SELECT * FROM (SELECT * FROM t1 LIMIT 3) t;
-a
-8
-3
-4
-EXPLAIN
-SELECT * FROM (SELECT * FROM t1 LIMIT 3) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3
-2 DERIVED t1 ALL NULL NULL NULL NULL 8
-DROP TABLE t1;
-#
-# LP BUG#921878 incorrect check of items during columns union types
-# aggregation for merged derived tables
-#
-SET @save_optimizer_switch=@@optimizer_switch;
-SET SESSION optimizer_switch='derived_merge=on';
-CREATE TABLE t1 ( a ENUM( 'x', 'y' ) );
-insert into t1 values ('x');
-CREATE TABLE t2 LIKE t1;
-insert into t1 values ('y');
-CREATE TABLE t3 LIKE t1;
-INSERT INTO t3
-SELECT * FROM ( SELECT * FROM t1 ) AS A
-UNION SELECT * FROM t2;
-select * from t3;
-a
-x
-y
-drop table t1,t2,t3;
-set SESSION optimizer_switch= @save_optimizer_switch;
-#
-# LP BUG#944782: derived table from an information schema table
-#
-SET @save_optimizer_switch=@@optimizer_switch;
-SET SESSION optimizer_switch='derived_merge=on';
-SET SESSION optimizer_switch='derived_with_keys=on';
-CREATE TABLE t1 (c1 int PRIMARY KEY, c2 char(5));
-EXPLAIN
-SELECT COUNT(*) > 0
-FROM INFORMATION_SCHEMA.COLUMNS
-INNER JOIN
-(SELECT TABLE_SCHEMA,
-GROUP_CONCAT(COLUMN_NAME ORDER BY SEQ_IN_INDEX ASC) AS COL_NAMES
-FROM INFORMATION_SCHEMA.STATISTICS
-GROUP BY TABLE_SCHEMA) AS UNIQUES
-ON ( COLUMNS.TABLE_SCHEMA = UNIQUES.TABLE_SCHEMA);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY COLUMNS ALL NULL NULL NULL NULL NULL Open_frm_only; Scanned all databases
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-2 DERIVED STATISTICS ALL NULL NULL NULL NULL NULL Open_frm_only; Scanned all databases; Using filesort
-SELECT COUNT(*) > 0
-FROM INFORMATION_SCHEMA.COLUMNS
-INNER JOIN
-(SELECT TABLE_SCHEMA,
-GROUP_CONCAT(COLUMN_NAME ORDER BY SEQ_IN_INDEX ASC) AS COL_NAMES
-FROM INFORMATION_SCHEMA.STATISTICS
-GROUP BY TABLE_SCHEMA) AS UNIQUES
-ON ( COLUMNS.TABLE_SCHEMA = UNIQUES.TABLE_SCHEMA);
-COUNT(*) > 0
-1
-Warnings:
-Warning 1286 Unknown storage engine 'InnoDB'
-Warning 1286 Unknown storage engine 'InnoDB'
-Warning 1286 Unknown storage engine 'InnoDB'
-Warning 1286 Unknown storage engine 'InnoDB'
-Warning 1286 Unknown storage engine 'InnoDB'
-Warning 1286 Unknown storage engine 'InnoDB'
-DROP TABLE t1;
-SET SESSION optimizer_switch= @save_optimizer_switch;
-#
-# LP BUG#953649: crash when estimating the cost of a look-up
-# into a derived table to be materialized
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (132);
-CREATE TABLE t2 (b int, c varchar(256));
-INSERT INTO t2 VALUES (132,'test1'), (120,'text2'), (132,'text3');
-CREATE VIEW v AS
-SELECT b, GROUP_CONCAT(c) AS gc FROM t2 GROUP BY b;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET SESSION optimizer_switch='derived_merge=off';
-SET SESSION optimizer_switch='derived_with_keys=off';
-EXPLAIN
-SELECT * FROM t1, v WHERE a = b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3 Using where
-2 DERIVED t2 ALL NULL NULL NULL NULL 3 Using filesort
-SELECT * FROM t1, v WHERE a = b;
-a b gc
-132 132 test1,text3
-SET SESSION optimizer_switch='derived_merge=on';
-SET SESSION optimizer_switch='derived_with_keys=on';
-EXPLAIN
-SELECT * FROM t1, v WHERE a = b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY <derived2> ref key0 key0 5 const 0
-2 DERIVED t2 ALL NULL NULL NULL NULL 3 Using filesort
-SELECT * FROM t1, v WHERE a = b;
-a b gc
-132 132 test1,text3
-SET SESSION optimizer_switch= @save_optimizer_switch;
-DROP VIEW v;
-DROP TABLE t1,t2;
-#
-# LP BUG#968720 crash due to converting to materialized and
-# natural join made only once
-#
-SET @save968720_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch = 'derived_merge=on';
-CREATE TABLE t1 (a int, INDEX(a));
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (a int, INDEX(a));
-INSERT INTO t2 VALUES (1), (2);
-INSERT INTO t1 SELECT a FROM (SELECT a FROM test.t1) AS s1 NATURAL JOIN
-t2 AS s2;
-SELECT * FROM t1;
-a
-1
-1
-DELETE FROM t1;
-INSERT INTO t1 VALUES (1);
-PREPARE stmt FROM "
-INSERT INTO t1 SELECT a FROM (SELECT a FROM test.t1) AS s1 NATURAL JOIN
-t2 AS s2;
-";
-EXECUTE stmt;
-SELECT * FROM t1;
-a
-1
-1
-EXECUTE stmt;
-SELECT * FROM t1;
-a
-1
-1
-1
-1
-drop table t1,t2;
-set optimizer_switch=@save968720_optimizer_switch;
-#
-# LP BUG#978847 Server crashes in Item_ref::real_item on
-# INSERT .. SELECT with FROM subquery and derived_merge=ON
-SET @save978847_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch = 'derived_merge=on';
-CREATE TABLE t1 ( a INT, b INT );
-INSERT INTO t1 VALUES (2,1),(3,2);
-select * from t1;
-a b
-2 1
-3 2
-INSERT INTO t1 SELECT * FROM
-( SELECT * FROM t1 ) AS alias;
-select * from t1;
-a b
-2 1
-3 2
-2 1
-3 2
-prepare stmt1 from 'INSERT INTO t1 SELECT SQL_BIG_RESULT * FROM
- ( SELECT * FROM t1 ) AS alias';
-execute stmt1;
-select * from t1;
-a b
-2 1
-3 2
-2 1
-3 2
-2 1
-3 2
-2 1
-3 2
-execute stmt1;
-select * from t1;
-a b
-2 1
-3 2
-2 1
-3 2
-2 1
-3 2
-2 1
-3 2
-2 1
-3 2
-2 1
-3 2
-2 1
-3 2
-2 1
-3 2
-drop table t1;
-set optimizer_switch=@save978847_optimizer_switch;
-#
-# LP bug998516 Server hangs on INSERT .. SELECT with derived_merge,
-# FROM subquery, UNION
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (3),(4);
-INSERT INTO t1 SELECT * FROM ( SELECT * FROM t1 ) AS alias UNION SELECT * FROM t2;
-select * from t1;
-a
-1
-2
-1
-2
-3
-4
-drop table t1,t2;
-#
-# MDEV-3873: Wrong result (extra rows) with NOT IN and
-# a subquery from a MERGE view
-#
-CREATE TABLE t1 (a INT NOT NULL) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4),(7),(0);
-CREATE TABLE t2 (b INT NOT NULL) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1),(2);
-CREATE TABLE t3 (c INT NOT NULL) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (4),(6),(3);
-CREATE TABLE t4 (d INT NOT NULL) ENGINE=MyISAM;
-INSERT INTO t4 VALUES (4),(5),(3);
-CREATE TABLE tv (e INT NOT NULL) ENGINE=MyISAM;
-INSERT INTO tv VALUES (1),(3);
-CREATE ALGORITHM=TEMPTABLE VIEW v_temptable AS SELECT * FROM tv;
-CREATE ALGORITHM=MERGE VIEW v_merge AS SELECT * FROM tv;
-SELECT * FROM t1, t2
-WHERE a NOT IN ( SELECT e FROM t3 LEFT JOIN v_temptable ON (c = e) WHERE c <> b ) AND a < b;
-a b
-SELECT * FROM t1, t2
-WHERE a NOT IN ( SELECT e FROM t3 LEFT JOIN v_merge ON (c = e) WHERE c <> b ) AND a < b;
-a b
-SELECT * FROM t1, t2
-WHERE a NOT IN ( SELECT e FROM t3 LEFT JOIN (SELECT * FROM tv) as derived ON (c = e) WHERE c <> b ) AND a < b;
-a b
-drop view v_temptable, v_merge;
-drop table t1,t2,t3,t4,tv;
-#
-# MDEV-3912: Wrong result (extra rows) with FROM subquery inside
-# ALL subquery, LEFT JOIN, derived_merge.
-# (duplicate of MDEV-3873 (above))
-#
-SET @save3912_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch = 'derived_merge=on,in_to_exists=on';
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4),(8);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (7),(0);
-CREATE TABLE t3 (c INT, d INT NOT NULL) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (0,4),(8,6);
-SELECT * FROM t1
-WHERE a >= ALL (
-SELECT d FROM t2 LEFT JOIN ( SELECT * FROM t3 ) AS alias ON ( c = b )
-WHERE b >= a
-);
-a
-8
-set optimizer_switch=@save3912_optimizer_switch;
-drop table t1, t2, t3;
-#
-# MDEV-4209: equi-join on BLOB column from materialized view
-# or derived table
-#
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_with_keys=on';
-CREATE TABLE t1 (c1 text, c2 int);
-INSERT INTO t1 VALUES ('a',1), ('c',3), ('g',7), ('d',4), ('c',3);
-CREATE TABLE t2 (c1 text, c2 int);
-INSERT INTO t2 VALUES ('b',2), ('c',3);
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-EXPLAIN EXTENDED
-SELECT v1.c1, v1.c2 FROM v1, t2 WHERE v1.c1=t2.c1 AND v1.c2=t2.c2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.c2 2 100.00 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1003 /* select#1 */ select `v1`.`c1` AS `c1`,`v1`.`c2` AS `c2` from `test`.`v1` join `test`.`t2` where `v1`.`c1` = `test`.`t2`.`c1` and `v1`.`c2` = `test`.`t2`.`c2`
-SELECT v1.c1, v1.c2 FROM v1, t2 WHERE v1.c1=t2.c1 AND v1.c2=t2.c2;
-c1 c2
-c 3
-c 3
-EXPLAIN EXTENDED
-SELECT t2.c1, t2.c2 FROM (SELECT c1 g, MAX(c2) m FROM t1 GROUP BY c1) t, t2
-WHERE t.g=t2.c1 AND t.m=t2.c2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.c2 2 100.00 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 5 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`c1` AS `c1`,`test`.`t2`.`c2` AS `c2` from (/* select#2 */ select `test`.`t1`.`c1` AS `g`,max(`test`.`t1`.`c2`) AS `m` from `test`.`t1` group by `test`.`t1`.`c1`) `t` join `test`.`t2` where `t`.`g` = `test`.`t2`.`c1` and `t`.`m` = `test`.`t2`.`c2`
-SELECT t2.c1, t2.c2 FROM (SELECT c1 g, MAX(c2) m FROM t1 GROUP BY c1) t, t2
-WHERE t.g=t2.c1 AND t.m=t2.c2;
-c1 c2
-c 3
-EXPLAIN EXTENDED
-SELECT v1.c1, v1.c2, t2.c1, t2.c2 FROM v1, t2 WHERE v1.c1=t2.c1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1003 /* select#1 */ select `v1`.`c1` AS `c1`,`v1`.`c2` AS `c2`,`test`.`t2`.`c1` AS `c1`,`test`.`t2`.`c2` AS `c2` from `test`.`v1` join `test`.`t2` where `v1`.`c1` = `test`.`t2`.`c1`
-SELECT v1.c1, v1.c2, t2.c1, t2.c2 FROM v1, t2 WHERE v1.c1=t2.c1;
-c1 c2 c1 c2
-c 3 c 3
-c 3 c 3
-DROP VIEW v1;
-DROP TABLE t1,t2;
-set optimizer_switch=@save_optimizer_switch;
-#
-# mdev-5078: sum over a view/derived table
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 (a) VALUES (1), (2);
-CREATE TABLE t2 (b int(11));
-INSERT INTO t2 (b) VALUES (1), (2);
-CREATE VIEW v AS SELECT b as c FROM t2;
-SELECT a, (SELECT SUM(a + c) FROM v) FROM t1;
-a (SELECT SUM(a + c) FROM v)
-1 5
-2 7
-SELECT a, (SELECT SUM(a + c) FROM (SELECT b as c FROM t2) AS v1) FROM t1;
-a (SELECT SUM(a + c) FROM (SELECT b as c FROM t2) AS v1)
-1 5
-2 7
-DROP VIEW v;
-DROP TABLE t1,t2;
-#
-# mdev-5105: memory overwrite in multi-table update
-# using natural join with a view
-#
-create table t1(a int,b tinyint,c tinyint)engine=myisam;
-create table t2(a tinyint,b float,c int, d int, e int, f int, key (b), key(c), key(d), key(e), key(f))engine=myisam;
-create table t3(a int,b int,c int, d int, e int, f int, key(a), key(b), key(c), key(d), key(e), key(f))engine=myisam;
-create view v1 as select t2.b a, t1.b b, t2.c c, t2.d d, t2.e e, t2.f f from t1,t2 where t1.a=t2.a;
-update t3 natural join v1 set a:=1;
-drop view v1;
-drop table t1,t2,t3;
-#
-# mdev-5288: assertion failure for query over a view with ORDER BY
-#
-CREATE TABLE t1 (a int, b int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4,1);
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1;
-EXPLAIN EXTENDED SELECT a FROM v1 WHERE a > 100 ORDER BY b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 4 AS `a` from dual where 0 order by 1
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE IF NOT EXISTS `galleries` (
-`id` int(11) NOT NULL AUTO_INCREMENT,
-`name` varchar(100) NOT NULL,
-`year` int(11) DEFAULT NULL,
-PRIMARY KEY (`id`),
-UNIQUE KEY `name` (`name`)
-) DEFAULT CHARSET=utf8;
-CREATE TABLE IF NOT EXISTS `pictures` (
-`id` int(11) NOT NULL AUTO_INCREMENT,
-`name` varchar(100) NOT NULL,
-`width` float DEFAULT NULL,
-`height` float DEFAULT NULL,
-`year` int(4) DEFAULT NULL,
-`technique` varchar(50) DEFAULT NULL,
-`comment` varchar(2000) DEFAULT NULL,
-`gallery_id` int(11) NOT NULL,
-`type` int(11) NOT NULL,
-PRIMARY KEY (`id`),
-KEY `gallery_id` (`gallery_id`)
-) DEFAULT CHARSET=utf8 ;
-ALTER TABLE `pictures`
-ADD CONSTRAINT `pictures_ibfk_1` FOREIGN KEY (`gallery_id`) REFERENCES `galleries` (`id`);
-INSERT INTO `galleries` (`id`, `name`, `year`) VALUES
-(1, 'Quand le noir et blanc invite le taupe', 2013),
-(2, 'Une touche de couleur', 2012),
-(3, 'Éclats', 2011),
-(4, 'Gris béton', 2010),
-(5, 'Expression du spalter', 2010),
-(6, 'Zénitude', 2009),
-(7, 'La force du rouge', 2008),
-(8, 'Sphères', NULL),
-(9, 'Centre', 2009),
-(10, 'Nébuleuse', NULL);
-INSERT INTO `pictures` (`id`, `name`, `width`, `height`, `year`, `technique`, `comment`, `gallery_id`, `type`) VALUES
-(1, 'Éclaircie', 72.5, 100, NULL, NULL, NULL, 1, 1),
-(2, 'Architecture', 81, 100, NULL, NULL, NULL, 1, 1),
-(3, 'Nouveau souffle', 72.5, 100, NULL, NULL, NULL, 1, 1),
-(4, 'Échanges (2)', 89, 116, NULL, NULL, NULL, 1, 1),
-(5, 'Échanges', 89, 116, NULL, NULL, NULL, 1, 1),
-(6, 'Fenêtre de vie', 81, 116, NULL, NULL, NULL, 1, 1),
-(7, 'Architecture', 81, 100, NULL, NULL, NULL, 1, 1),
-(8, 'Nouveau souffle (2)', 72.5, 100, NULL, NULL, NULL, 1, 1),
-(9, 'Fluidité', 89, 116, NULL, NULL, NULL, 1, 1),
-(10, 'Nouveau Monde', 89, 125, NULL, NULL, NULL, 1, 1),
-(11, 'Mirage', 73, 100, NULL, NULL, NULL, 1, 1),
-(12, 'Équilibre', 72.5, 116, NULL, NULL, NULL, 2, 1),
-(13, 'Fusion', 72.5, 116, NULL, NULL, NULL, 2, 1),
-(14, 'Étincelles', NULL, NULL, NULL, NULL, NULL, 3, 1),
-(15, 'Régénérescence', NULL, NULL, NULL, NULL, NULL, 3, 1),
-(16, 'Chaleur', 80, 80, NULL, NULL, NULL, 4, 1),
-(17, 'Création', 90, 90, NULL, NULL, NULL, 4, 1),
-(18, 'Horizon', 92, 73, NULL, NULL, NULL, 4, 1),
-(19, 'Labyrinthe', 81, 100, NULL, NULL, NULL, 4, 1),
-(20, 'Miroir', 80, 116, NULL, NULL, NULL, 5, 1),
-(21, 'Libération', 81, 116, NULL, NULL, NULL, 5, 1),
-(22, 'Éclats', 81, 116, NULL, NULL, NULL, 5, 1),
-(23, 'Zénitude', 116, 89, NULL, NULL, NULL, 6, 1),
-(24, 'Écritures lointaines', 90, 90, NULL, NULL, NULL, 7, 1),
-(25, 'Émergence', 80, 80, NULL, NULL, NULL, 7, 1),
-(26, 'Liberté', 50, 50, NULL, NULL, NULL, 7, 1),
-(27, 'Silhouettes amérindiennes', 701, 70, NULL, NULL, NULL, 7, 1),
-(28, 'Puissance', 81, 100, NULL, NULL, NULL, 8, 1),
-(29, 'Source', 73, 116, NULL, NULL, NULL, 8, 1),
-(30, 'Comme une ville qui prend vie', 50, 100, 2008, NULL, NULL, 9, 1),
-(31, 'Suspension azur', 80, 80, NULL, NULL, NULL, 9, 1),
-(32, 'Nébuleuse', 70, 70, NULL, NULL, NULL, 10, 1),
-(33, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2),
-(34, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2),
-(35, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2),
-(36, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2),
-(37, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2),
-(38, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2);
-explain
-SELECT g.id AS gallery_id,
-g.name AS gallery_name,
-p.id AS picture_id,
-p.name AS picture_name,
-g.p_random AS r1,
-g.p_random AS r2,
-g.p_random AS r3
-FROM
-(
-SELECT gal.id,
-gal.name,
-(
-SELECT pi.id
-FROM pictures pi
-WHERE pi.gallery_id = gal.id
-ORDER BY RAND()
-LIMIT 1
-) AS p_random
-FROM galleries gal
-) g
-LEFT JOIN pictures p
-ON p.id = g.p_random
-ORDER BY gallery_name ASC
-;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 10 Using filesort
-1 PRIMARY p eq_ref PRIMARY PRIMARY 4 g.p_random 1 Using where
-2 DERIVED gal ALL NULL NULL NULL NULL 10
-3 DEPENDENT SUBQUERY pi ref gallery_id gallery_id 4 test.gal.id 4 Using temporary; Using filesort
-drop table galleries, pictures;
-#
-# MDEV-5740: Assertion
-#`!derived->first_select()->exclude_from_table_unique_test ||
-#derived->outer_select()-> exclude_from_table_unique_test'
-#failed on 2nd execution of PS with derived_merge
-#
-set @save_optimizer_switch5740=@@optimizer_switch;
-SET optimizer_switch = 'derived_merge=on';
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (3),(4);
-PREPARE stmt FROM '
- INSERT INTO t1 SELECT * FROM t2 UNION SELECT * FROM (SELECT * FROM t1) AS sq
-';
-EXECUTE stmt;
-select * from t1;
-a
-1
-2
-3
-4
-1
-2
-EXECUTE stmt;
-select * from t1;
-a
-1
-2
-3
-4
-1
-2
-3
-4
-1
-2
-deallocate prepare stmt;
-drop table t1,t2;
-set optimizer_switch=@save_optimizer_switch5740;
-#
-# Bug mdev-5721: possible long key access to a materialized derived table
-# (see also the test case for Bug#13261277 that is actually the same bug)
-#
-CREATE TABLE t1 (
-id varchar(255) NOT NULL DEFAULT '',
-familyid int(11) DEFAULT NULL,
-withdrawndate date DEFAULT NULL,
-KEY index_td_familyid_id (familyid,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-CREATE TABLE t2 (
-id int(11) NOT NULL AUTO_INCREMENT,
-activefromts datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
-shortdescription text,
-useraccessfamily varchar(512) DEFAULT NULL,
-serialized longtext,
-PRIMARY KEY (id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-insert into t1 values ('picture/89/1369722032695.pmd',89,NULL);
-insert into t1 values ('picture/90/1369832057370.pmd',90,NULL);
-insert into t2 values (38,'2013-03-04 07:49:22','desc','CODE','string');
-EXPLAIN
-SELECT * FROM t2 x,
-(SELECT t2.useraccessfamily, t2.serialized AS picturesubuser, COUNT(*)
-FROM t2, t1 GROUP BY t2.useraccessfamily, picturesubuser) y
-WHERE x.useraccessfamily = y.useraccessfamily;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY x system NULL NULL NULL NULL 1
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 Using where
-2 DERIVED t2 system NULL NULL NULL NULL 1
-2 DERIVED t1 index NULL index_td_familyid_id 772 NULL 2 Using index
-SELECT * FROM t2 x,
-(SELECT t2.useraccessfamily, t2.serialized AS picturesubuser, COUNT(*)
-FROM t2, t1 GROUP BY t2.useraccessfamily, picturesubuser) y
-WHERE x.useraccessfamily = y.useraccessfamily;
-id activefromts shortdescription useraccessfamily serialized useraccessfamily picturesubuser COUNT(*)
-38 2013-03-04 07:49:22 desc CODE string CODE string 2
-DROP TABLE t1,t2;
-#
-# Bug#13261277: Unchecked key length caused missing records.
-#
-CREATE TABLE t1 (
-col_varchar varchar(1024) CHARACTER SET utf8 DEFAULT NULL,
-stub1 varchar(1024) CHARACTER SET utf8 DEFAULT NULL,
-stub2 varchar(1024) CHARACTER SET utf8 DEFAULT NULL,
-stub3 varchar(1024) CHARACTER SET utf8 DEFAULT NULL
-);
-INSERT INTO t1 VALUES
-('d','d','l','ther'),
-(NULL,'s','NJBIQ','trzetuchv'),
-(-715390976,'coul','MYWFB','cfhtrzetu'),
-(1696792576,'f','i\'s','c'),
- (1,'i','ltpemcfhtr','gsltpemcf'),
- (-663027712,'mgsltpemcf','sa','amgsltpem'),
- (-1686700032,'JPRVK','i','vamgsltpe'),
- (NULL,'STUNB','UNVJV','u'),
- (5,'oka','qyihvamgsl','AXSMD'),
- (NULL,'tqwmqyihva','h','yntqwmqyi'),
- (3,'EGMJN','e','e');
-CREATE TABLE t2 (
-col_varchar varchar(10) DEFAULT NULL,
-col_int INT DEFAULT NULL
-);
-INSERT INTO t2 VALUES ('d',9);
-set optimizer_switch='derived_merge=off,derived_with_keys=on';
-SET @save_heap_size= @@max_heap_table_size;
-SET @@max_heap_table_size= 16384;
-SELECT t2.col_int
-FROM t2
-RIGHT JOIN ( SELECT * FROM t1 ) AS dt
-ON t2.col_varchar = dt.col_varchar
-WHERE t2.col_int IS NOT NULL ;
-col_int
-9
-# Shouldn't use auto_key0 for derived table
-EXPLAIN
-SELECT t2.col_int
-FROM t2
-RIGHT JOIN ( SELECT * FROM t1 ) AS dt
-ON t2.col_varchar = dt.col_varchar
-WHERE t2.col_int IS NOT NULL ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 11 Using where
-2 DERIVED t1 ALL NULL NULL NULL NULL 11
-SET @@max_heap_table_size= @save_heap_size;
-SET optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t2;
-#
-# end of 5.3 tests
-#
-#
-# Bug mdev-11161: The second execution of prepared statement
-# does not use generated key for materialized
-# derived table / view
-# (actually this is a 5.3 bug.)
-#
-create table t1 (
-mat_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
-matintnum CHAR(6) NOT NULL,
-test MEDIUMINT UNSIGNED NULL
-);
-create table t2 (
-mat_id MEDIUMINT UNSIGNED NOT NULL,
-pla_id MEDIUMINT UNSIGNED NOT NULL
-);
-insert into t1 values
-(NULL, 'a', 1), (NULL, 'b', 2), (NULL, 'c', 3), (NULL, 'd', 4),
-(NULL, 'e', 5), (NULL, 'f', 6), (NULL, 'g', 7), (NULL, 'h', 8),
-(NULL, 'i', 9);
-insert into t2 values
-(1, 100), (1, 101), (1, 102), (2, 100), (2, 103), (2, 104),
-(3, 101), (3, 102), (3, 105);
-explain
-SELECT STRAIGHT_JOIN d.pla_id, m2.mat_id
-FROM t1 m2
-INNER JOIN
-(SELECT mp.pla_id, MIN(m1.matintnum) AS matintnum
-FROM t2 mp INNER JOIN t1 m1 ON mp.mat_id=m1.mat_id
-GROUP BY mp.pla_id) d
-ON d.matintnum=m2.matintnum;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY m2 ALL NULL NULL NULL NULL 9
-1 PRIMARY <derived2> ref key0 key0 7 test.m2.matintnum 2
-2 DERIVED mp ALL NULL NULL NULL NULL 9 Using temporary; Using filesort
-2 DERIVED m1 eq_ref PRIMARY PRIMARY 3 test.mp.mat_id 1
-prepare stmt1 from
-"SELECT STRAIGHT_JOIN d.pla_id, m2.mat_id
- FROM t1 m2
- INNER JOIN
- (SELECT mp.pla_id, MIN(m1.matintnum) AS matintnum
- FROM t2 mp INNER JOIN t1 m1 ON mp.mat_id=m1.mat_id
- GROUP BY mp.pla_id) d
- ON d.matintnum=m2.matintnum";
-flush status;
-execute stmt1;
-pla_id mat_id
-102 1
-101 1
-100 1
-104 2
-103 2
-105 3
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 21
-Handler_read_last 0
-Handler_read_next 6
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 6
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 27
-flush status;
-execute stmt1;
-pla_id mat_id
-102 1
-101 1
-100 1
-104 2
-103 2
-105 3
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 21
-Handler_read_last 0
-Handler_read_next 6
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 6
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 27
-deallocate prepare stmt1;
-drop table t1,t2;
-#
-# Bug mdev-12670: mergeable derived / view with subqueries
-# subject to semi-join optimizations
-# (actually this is a 5.3 bug.)
-#
-create table t1 (a int) engine=myisam;
-insert into t1 values (5),(3),(2),(7),(2),(5),(1);
-create table t2 (b int, index idx(b)) engine=myisam;
-insert into t2 values (2),(3),(2),(1),(3),(4);
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-analyze table t1,t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-test.t2 analyze status OK
-explain select a from t1 where a in (select b from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 7 Using where
-1 PRIMARY t2 ref idx idx 5 test.t1.a 140 Using index; FirstMatch(t1)
-explain select * from (select a from t1 where a in (select b from t2)) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 7 Using where
-1 PRIMARY t2 ref idx idx 5 test.t1.a 140 Using index; FirstMatch(t1)
-create view v1 as select a from t1 where a in (select b from t2);
-explain select * from v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 7 Using where
-1 PRIMARY t2 ref idx idx 5 test.t1.a 140 Using index; FirstMatch(t1)
-drop view v1;
-drop table t1,t2;
-#
-# Bug mdev-12812: mergeable derived / view with subqueries
-# NOT subject to semi-join optimizations
-#
-CREATE TABLE t1 (c1 varchar(3)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo'),('foo');
-CREATE TABLE t2 (c2 varchar(3)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('bar'),('qux'),('foo');
-SELECT STRAIGHT_JOIN *
-FROM ( SELECT * FROM t1 WHERE c1 IN ( SELECT c2 FROM t2 ) ) AS sq;
-c1
-foo
-foo
-EXPLAIN EXTENDED SELECT STRAIGHT_JOIN *
-FROM ( SELECT * FROM t1 WHERE c1 IN ( SELECT c2 FROM t2 ) ) AS sq;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select straight_join `test`.`t1`.`c1` AS `c1` from `test`.`t1` where <in_optimizer>(`test`.`t1`.`c1`,<exists>(/* select#3 */ select `test`.`t2`.`c2` from `test`.`t2` where <cache>(`test`.`t1`.`c1`) = `test`.`t2`.`c2`))
-DROP TABLE t1, t2;
-set optimizer_switch=@exit_optimizer_switch;
-set join_cache_level=@exit_join_cache_level;
diff --git a/mysql-test/r/dirty_close.result b/mysql-test/r/dirty_close.result
deleted file mode 100644
index d13fdb09192..00000000000
--- a/mysql-test/r/dirty_close.result
+++ /dev/null
@@ -1,36 +0,0 @@
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection con1;
-disconnect con1;
-connection con2;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (n INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-SELECT * FROM t1;
-n
-1
-2
-3
-DROP TABLE t1;
-connection default;
-disconnect con2;
-connection default;
-SELECT GET_LOCK("dangling", 0);
-GET_LOCK("dangling", 0)
-1
-connect con1, localhost, root,,;
-connection con1;
-SELECT GET_LOCK('dangling', 3600);;
-connection default;
-disconnect con1;
-connect con1, localhost, root,,;
-SELECT GET_LOCK('dangling', 3600);;
-connection default;
-SELECT RELEASE_LOCK('dangling');
-RELEASE_LOCK('dangling')
-1
-connection con1;
-GET_LOCK('dangling', 3600)
-1
-connection default;
-disconnect con1;
diff --git a/mysql-test/r/distinct.result b/mysql-test/r/distinct.result
deleted file mode 100644
index 926dc17d0c4..00000000000
--- a/mysql-test/r/distinct.result
+++ /dev/null
@@ -1,1042 +0,0 @@
-drop table if exists t1,t2,t3;
-CREATE TABLE t1 (id int,facility char(20));
-CREATE TABLE t2 (facility char(20));
-INSERT INTO t1 VALUES (NULL,NULL);
-INSERT INTO t1 VALUES (-1,'');
-INSERT INTO t1 VALUES (0,'');
-INSERT INTO t1 VALUES (1,'/L');
-INSERT INTO t1 VALUES (2,'A01');
-INSERT INTO t1 VALUES (3,'ANC');
-INSERT INTO t1 VALUES (4,'F01');
-INSERT INTO t1 VALUES (5,'FBX');
-INSERT INTO t1 VALUES (6,'MT');
-INSERT INTO t1 VALUES (7,'P');
-INSERT INTO t1 VALUES (8,'RV');
-INSERT INTO t1 VALUES (9,'SRV');
-INSERT INTO t1 VALUES (10,'VMT');
-INSERT INTO t2 SELECT DISTINCT FACILITY FROM t1;
-select id from t1 group by id;
-id
-NULL
--1
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-select * from t1 order by id;
-id facility
-NULL NULL
--1
-0
-1 /L
-2 A01
-3 ANC
-4 F01
-5 FBX
-6 MT
-7 P
-8 RV
-9 SRV
-10 VMT
-select id-5,facility from t1 order by "id-5";
-id-5 facility
-NULL NULL
--6
--5
--4 /L
--3 A01
--2 ANC
--1 F01
-0 FBX
-1 MT
-2 P
-3 RV
-4 SRV
-5 VMT
-select id,concat(facility) from t1 group by id ;
-id concat(facility)
-NULL NULL
--1
-0
-1 /L
-2 A01
-3 ANC
-4 F01
-5 FBX
-6 MT
-7 P
-8 RV
-9 SRV
-10 VMT
-select id+0 as a,max(id),concat(facility) as b from t1 group by a order by b desc,a;
-a max(id) b
-10 10 VMT
-9 9 SRV
-8 8 RV
-7 7 P
-6 6 MT
-5 5 FBX
-4 4 F01
-3 3 ANC
-2 2 A01
-1 1 /L
--1 -1
-0 0
-NULL NULL NULL
-select id >= 0 and id <= 5 as grp,count(*) from t1 group by grp;
-grp count(*)
-NULL 1
-0 6
-1 6
-SELECT DISTINCT FACILITY FROM t1;
-FACILITY
-NULL
-
-/L
-A01
-ANC
-F01
-FBX
-MT
-P
-RV
-SRV
-VMT
-SELECT FACILITY FROM t2;
-FACILITY
-NULL
-
-/L
-A01
-ANC
-F01
-FBX
-MT
-P
-RV
-SRV
-VMT
-SELECT count(*) from t1,t2 where t1.facility=t2.facility;
-count(*)
-12
-select count(facility) from t1;
-count(facility)
-12
-select count(*) from t1;
-count(*)
-13
-select count(*) from t1 where facility IS NULL;
-count(*)
-1
-select count(*) from t1 where facility = NULL;
-count(*)
-0
-select count(*) from t1 where facility IS NOT NULL;
-count(*)
-12
-select count(*) from t1 where id IS NULL;
-count(*)
-1
-select count(*) from t1 where id IS NOT NULL;
-count(*)
-12
-drop table t1,t2;
-CREATE TABLE t1 (UserId int(11) DEFAULT '0' NOT NULL);
-INSERT INTO t1 VALUES (20);
-INSERT INTO t1 VALUES (27);
-SELECT UserId FROM t1 WHERE Userid=22;
-UserId
-SELECT UserId FROM t1 WHERE UserId=22 group by Userid;
-UserId
-SELECT DISTINCT UserId FROM t1 WHERE UserId=22 group by Userid;
-UserId
-SELECT DISTINCT UserId FROM t1 WHERE UserId=22;
-UserId
-drop table t1;
-CREATE TABLE t1 (a int(10) unsigned not null primary key,b int(10) unsigned);
-INSERT INTO t1 VALUES (1,1),(2,1),(3,1),(4,1);
-CREATE TABLE t2 (a int(10) unsigned not null, key (A));
-INSERT INTO t2 VALUES (1),(2);
-CREATE TABLE t3 (a int(10) unsigned, key(A), b text);
-INSERT INTO t3 VALUES (1,'1'),(2,'2');
-SELECT DISTINCT t3.b FROM t3,t2,t1 WHERE t3.a=t1.b AND t1.a=t2.a;
-b
-1
-INSERT INTO t2 values (1),(2),(3);
-INSERT INTO t3 VALUES (1,'1'),(2,'2'),(1,'1'),(2,'2');
-explain SELECT distinct t3.a FROM t3,t2,t1 WHERE t3.a=t1.b AND t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 4 Using where; Using temporary
-1 SIMPLE t3 ref a a 5 test.t1.b 2 Using index
-1 SIMPLE t2 index a a 4 NULL 5 Using where; Using index; Using join buffer (flat, BNL join)
-SELECT distinct t3.a FROM t3,t2,t1 WHERE t3.a=t1.b AND t1.a=t2.a;
-a
-1
-create temporary table t4 select * from t3;
-insert into t3 select * from t4;
-insert into t4 select * from t3;
-insert into t3 select * from t4;
-insert into t4 select * from t3;
-insert into t3 select * from t4;
-insert into t4 select * from t3;
-insert into t3 select * from t4;
-explain select distinct t1.a from t1,t3 where t1.a=t3.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 4 NULL 4 Using index; Using temporary
-1 SIMPLE t3 ref a a 5 test.t1.a 11 Using index; Distinct
-select distinct t1.a from t1,t3 where t1.a=t3.a;
-a
-1
-2
-select distinct 1 from t1,t3 where t1.a=t3.a;
-1
-1
-explain SELECT distinct t1.a from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 4 Using index
-explain SELECT distinct t1.a from t1 order by a desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 4 Using index
-explain SELECT t1.a from t1 group by a order by a desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 4 Using index
-explain SELECT distinct t1.a from t1 order by a desc limit 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 1 Using index
-explain SELECT distinct a from t3 order by a desc limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index NULL a 5 NULL 40 Using index
-explain SELECT distinct a,b from t3 order by a+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 204 Using temporary; Using filesort
-explain SELECT distinct a,b from t3 order by a limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index NULL a 5 NULL 2 Using temporary
-explain SELECT a,b from t3 group by a,b order by a+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 204 Using temporary; Using filesort
-drop table t1,t2,t3,t4;
-CREATE TABLE t1 (name varchar(255));
-INSERT INTO t1 VALUES ('aa'),('ab'),('ac'),('ad'),('ae');
-SELECT DISTINCT * FROM t1 LIMIT 2;
-name
-aa
-ab
-SELECT DISTINCT name FROM t1 LIMIT 2;
-name
-aa
-ab
-SELECT DISTINCT 1 FROM t1 LIMIT 2;
-1
-1
-drop table t1;
-CREATE TABLE t1 (
-ID int(11) NOT NULL auto_increment,
-NAME varchar(75) DEFAULT '' NOT NULL,
-LINK_ID int(11) DEFAULT '0' NOT NULL,
-PRIMARY KEY (ID),
-KEY NAME (NAME),
-KEY LINK_ID (LINK_ID)
-);
-INSERT INTO t1 (ID, NAME, LINK_ID) VALUES (1,'Mike',0),(2,'Jack',0),(3,'Bill',0);
-CREATE TABLE t2 (
-ID int(11) NOT NULL auto_increment,
-NAME varchar(150) DEFAULT '' NOT NULL,
-PRIMARY KEY (ID),
-KEY NAME (NAME)
-);
-SELECT DISTINCT
-t2.id AS key_link_id,
-t2.name AS link
-FROM t1
-LEFT JOIN t2 ON t1.link_id=t2.id
-GROUP BY t1.id
-ORDER BY link;
-key_link_id link
-NULL NULL
-drop table t1,t2;
-create table t1 (
-id int not null,
-name tinytext not null,
-unique (id)
-);
-create table t2 (
-id int not null,
-idx int not null,
-unique (id, idx)
-);
-create table t3 (
-id int not null,
-idx int not null,
-unique (id, idx)
-);
-insert into t1 values (1,'yes'), (2,'no');
-insert into t2 values (1,1);
-insert into t3 values (1,1);
-set @save_join_cache_level=@@join_cache_level;
-set join_cache_level=1;
-EXPLAIN
-SELECT DISTINCT
-t1.id
-from
-t1
-straight_join
-t2
-straight_join
-t3
-straight_join
-t1 as j_lj_t2 left join t2 as t2_lj
-on j_lj_t2.id=t2_lj.id
-straight_join
-t1 as j_lj_t3 left join t3 as t3_lj
-on j_lj_t3.id=t3_lj.id
-WHERE
-((t1.id=j_lj_t2.id AND t2_lj.id IS NULL) OR (t1.id=t2.id AND t2.idx=2))
-AND ((t1.id=j_lj_t3.id AND t3_lj.id IS NULL) OR (t1.id=t3.id AND t3.idx=2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index id id 4 NULL 2 Using index; Using temporary
-1 SIMPLE t2 index id id 8 NULL 1 Using index; Using join buffer (flat, BNL join)
-1 SIMPLE t3 index id id 8 NULL 1 Using index; Using join buffer (flat, BNL join)
-1 SIMPLE j_lj_t2 index id id 4 NULL 2 Using where; Using index; Using join buffer (flat, BNL join)
-1 SIMPLE t2_lj ref id id 4 test.j_lj_t2.id 1 Using where; Using index
-1 SIMPLE j_lj_t3 index id id 4 NULL 2 Using where; Using index; Using join buffer (flat, BNL join)
-1 SIMPLE t3_lj ref id id 4 test.j_lj_t3.id 1 Using where; Using index; Distinct
-SELECT DISTINCT
-t1.id
-from
-t1
-straight_join
-t2
-straight_join
-t3
-straight_join
-t1 as j_lj_t2 left join t2 as t2_lj
-on j_lj_t2.id=t2_lj.id
-straight_join
-t1 as j_lj_t3 left join t3 as t3_lj
-on j_lj_t3.id=t3_lj.id
-WHERE
-((t1.id=j_lj_t2.id AND t2_lj.id IS NULL) OR (t1.id=t2.id AND t2.idx=2))
-AND ((t1.id=j_lj_t3.id AND t3_lj.id IS NULL) OR (t1.id=t3.id AND t3.idx=2));
-id
-2
-drop table t1,t2,t3;
-set join_cache_level=@save_join_cache_level;
-create table t1 (a int not null, b int not null, t time);
-insert into t1 values (1,1,"00:06:15"),(1,2,"00:06:15"),(1,2,"00:30:15"),(1,3,"00:06:15"),(1,3,"00:30:15");
-select a,sec_to_time(sum(time_to_sec(t))) from t1 group by a,b;
-a sec_to_time(sum(time_to_sec(t)))
-1 00:06:15
-1 00:36:30
-1 00:36:30
-select distinct a,sec_to_time(sum(time_to_sec(t))) from t1 group by a,b;
-a sec_to_time(sum(time_to_sec(t)))
-1 00:06:15
-1 00:36:30
-create table t2 (a int not null primary key, b int);
-insert into t2 values (1,1),(2,2),(3,3);
-select t1.a,sec_to_time(sum(time_to_sec(t))) from t1 left join t2 on (t1.b=t2.a) group by t1.a,t2.b;
-a sec_to_time(sum(time_to_sec(t)))
-1 00:06:15
-1 00:36:30
-1 00:36:30
-select distinct t1.a,sec_to_time(sum(time_to_sec(t))) from t1 left join t2 on (t1.b=t2.a) group by t1.a,t2.b;
-a sec_to_time(sum(time_to_sec(t)))
-1 00:06:15
-1 00:36:30
-drop table t1,t2;
-create table t1 (a int not null,b char(5), c text);
-insert into t1 (a) values (1),(2),(3),(4),(1),(2),(3),(4);
-select distinct a from t1 group by b,a having a > 2 order by a desc;
-a
-4
-3
-select distinct a,c from t1 group by b,c,a having a > 2 order by a desc;
-a c
-4 NULL
-3 NULL
-drop table t1;
-create table t1 (a char(1), key(a)) engine=myisam;
-insert into t1 values('1'),('1');
-select * from t1 where a >= '1';
-a
-1
-1
-select distinct a from t1 order by a desc;
-a
-1
-select distinct a from t1 where a >= '1' order by a desc;
-a
-1
-drop table t1;
-CREATE TABLE t1 (email varchar(50), infoID BIGINT, dateentered DATETIME);
-CREATE TABLE t2 (infoID BIGINT, shipcode varchar(10));
-INSERT INTO t1 (email, infoID, dateentered) VALUES
-('test1@testdomain.com', 1, '2002-07-30 22:56:38'),
-('test1@testdomain.com', 1, '2002-07-27 22:58:16'),
-('test2@testdomain.com', 1, '2002-06-19 15:22:19'),
-('test2@testdomain.com', 2, '2002-06-18 14:23:47'),
-('test3@testdomain.com', 1, '2002-05-19 22:17:32');
-INSERT INTO t2(infoID, shipcode) VALUES
-(1, 'Z001'),
-(2, 'R002');
-SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID;
-email shipcode
-test1@testdomain.com Z001
-test2@testdomain.com Z001
-test2@testdomain.com R002
-test3@testdomain.com Z001
-SELECT DISTINCTROW email FROM t1 ORDER BY dateentered DESC;
-email
-test1@testdomain.com
-test2@testdomain.com
-test3@testdomain.com
-SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID ORDER BY dateentered DESC;
-email shipcode
-test1@testdomain.com Z001
-test2@testdomain.com Z001
-test2@testdomain.com R002
-test3@testdomain.com Z001
-drop table t1,t2;
-CREATE TABLE t1 (privatemessageid int(10) unsigned NOT NULL auto_increment, folderid smallint(6) NOT NULL default '0', userid int(10) unsigned NOT NULL default '0', touserid int(10) unsigned NOT NULL default '0', fromuserid int(10) unsigned NOT NULL default '0', title varchar(250) NOT NULL default '', message mediumtext NOT NULL, dateline int(10) unsigned NOT NULL default '0', showsignature smallint(6) NOT NULL default '0', iconid smallint(5) unsigned NOT NULL default '0', messageread smallint(6) NOT NULL default '0', readtime int(10) unsigned NOT NULL default '0', receipt smallint(6) unsigned NOT NULL default '0', deleteprompt smallint(6) unsigned NOT NULL default '0', multiplerecipients smallint(6) unsigned NOT NULL default '0', PRIMARY KEY (privatemessageid), KEY userid (userid)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (128,0,33,33,8,':D','',996121863,1,0,2,996122850,2,0,0);
-CREATE TABLE t2 (userid int(10) unsigned NOT NULL auto_increment, usergroupid smallint(5) unsigned NOT NULL default '0', username varchar(50) NOT NULL default '', password varchar(50) NOT NULL default '', email varchar(50) NOT NULL default '', styleid smallint(5) unsigned NOT NULL default '0', parentemail varchar(50) NOT NULL default '', coppauser smallint(6) NOT NULL default '0', homepage varchar(100) NOT NULL default '', icq varchar(20) NOT NULL default '', aim varchar(20) NOT NULL default '', yahoo varchar(20) NOT NULL default '', signature mediumtext NOT NULL, adminemail smallint(6) NOT NULL default '0', showemail smallint(6) NOT NULL default '0', invisible smallint(6) NOT NULL default '0', usertitle varchar(250) NOT NULL default '', customtitle smallint(6) NOT NULL default '0', joindate int(10) unsigned NOT NULL default '0', cookieuser smallint(6) NOT NULL default '0', daysprune smallint(6) NOT NULL default '0', lastvisit int(10) unsigned NOT NULL default '0', lastactivity int(10) unsigned NOT NULL default '0', lastpost int(10) unsigned NOT NULL default '0', posts smallint(5) unsigned NOT NULL default '0', timezoneoffset varchar(4) NOT NULL default '', emailnotification smallint(6) NOT NULL default '0', buddylist mediumtext NOT NULL, ignorelist mediumtext NOT NULL, pmfolders mediumtext NOT NULL, receivepm smallint(6) NOT NULL default '0', emailonpm smallint(6) NOT NULL default '0', pmpopup smallint(6) NOT NULL default '0', avatarid smallint(6) NOT NULL default '0', avatarrevision int(6) unsigned NOT NULL default '0', options smallint(6) NOT NULL default '15', birthday date NOT NULL default '0000-00-00', maxposts smallint(6) NOT NULL default '-1', startofweek smallint(6) NOT NULL default '1', ipaddress varchar(20) NOT NULL default '', referrerid int(10) unsigned NOT NULL default '0', nosessionhash smallint(6) NOT NULL default '0', autorefresh smallint(6) NOT NULL default '-1', messagepopup tinyint(2) NOT NULL default '0', inforum smallint(5) unsigned NOT NULL default '0', ratenum smallint(5) unsigned NOT NULL default '0', ratetotal smallint(5) unsigned NOT NULL default '0', allowrate smallint(5) unsigned NOT NULL default '1', PRIMARY KEY (userid), KEY usergroupid (usergroupid), KEY username (username), KEY inforum (inforum)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (33,6,'Kevin','0','kevin@stileproject.com',1,'',0,'http://www.stileproject.com','','','','',1,1,0,'Administrator',0,996120694,1,-1,1030996168,1031027028,1030599436,36,'-6',0,'','','',1,0,1,0,0,15,'0000-00-00',-1,1,'64.0.0.0',0,1,-1,0,0,4,19,1);
-SELECT DISTINCT t1.*, t2.* FROM t1 LEFT JOIN t2 ON (t2.userid = t1.touserid);
-privatemessageid folderid userid touserid fromuserid title message dateline showsignature iconid messageread readtime receipt deleteprompt multiplerecipients userid usergroupid username password email styleid parentemail coppauser homepage icq aim yahoo signature adminemail showemail invisible usertitle customtitle joindate cookieuser daysprune lastvisit lastactivity lastpost posts timezoneoffset emailnotification buddylist ignorelist pmfolders receivepm emailonpm pmpopup avatarid avatarrevision options birthday maxposts startofweek ipaddress referrerid nosessionhash autorefresh messagepopup inforum ratenum ratetotal allowrate
-128 0 33 33 8 :D 996121863 1 0 2 996122850 2 0 0 33 6 Kevin 0 kevin@stileproject.com 1 0 http://www.stileproject.com 1 1 0 Administrator 0 996120694 1 -1 1030996168 1031027028 1030599436 36 -6 0 1 0 1 0 0 15 0000-00-00 -1 1 64.0.0.0 0 1 -1 0 0 4 19 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int primary key, b int, c int);
-INSERT t1 VALUES (1,2,3);
-CREATE TABLE t2 (a int primary key, b int, c int);
-INSERT t2 VALUES (3,4,5);
-SELECT DISTINCT t1.a, t2.b FROM t1, t2 WHERE t1.a=1 ORDER BY t2.c;
-a b
-1 4
-DROP TABLE t1,t2;
-CREATE table t1 ( `id` int(11) NOT NULL auto_increment, `name` varchar(50) NOT NULL default '', PRIMARY KEY (`id`)) ENGINE=MyISAM AUTO_INCREMENT=3 ;
-INSERT INTO t1 VALUES (1, 'aaaaa');
-INSERT INTO t1 VALUES (3, 'aaaaa');
-INSERT INTO t1 VALUES (2, 'eeeeeee');
-select distinct left(name,1) as name from t1;
-name
-a
-e
-drop table t1;
-CREATE TABLE t1 (
-ID int(11) NOT NULL auto_increment,
-NAME varchar(75) DEFAULT '' NOT NULL,
-LINK_ID int(11) DEFAULT '0' NOT NULL,
-PRIMARY KEY (ID),
-KEY NAME (NAME),
-KEY LINK_ID (LINK_ID)
-);
-INSERT INTO t1 (ID, NAME, LINK_ID) VALUES (1,'Mike',0);
-INSERT INTO t1 (ID, NAME, LINK_ID) VALUES (2,'Jack',0);
-INSERT INTO t1 (ID, NAME, LINK_ID) VALUES (3,'Bill',0);
-CREATE TABLE t2 (
-ID int(11) NOT NULL auto_increment,
-NAME varchar(150) DEFAULT '' NOT NULL,
-PRIMARY KEY (ID),
-KEY NAME (NAME)
-);
-SELECT DISTINCT
-t2.id AS key_link_id,
-t2.name AS link
-FROM t1
-LEFT JOIN t2 ON t1.link_id=t2.id
-GROUP BY t1.id
-ORDER BY link;
-key_link_id link
-NULL NULL
-drop table t1,t2;
-CREATE TABLE t1 (
-html varchar(5) default NULL,
-rin int(11) default '0',
-rout int(11) default '0'
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('1',1,0);
-SELECT DISTINCT html,SUM(rout)/(SUM(rin)+1) as 'prod' FROM t1 GROUP BY rin;
-html prod
-1 0.0000
-drop table t1;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
-SELECT DISTINCT a, 1 FROM t1;
-a 1
-1 1
-2 1
-3 1
-4 1
-5 1
-SELECT DISTINCT 1, a FROM t1;
-1 a
-1 1
-1 2
-1 3
-1 4
-1 5
-CREATE TABLE t2 (a int, b int);
-INSERT INTO t2 VALUES (1,1),(2,2),(2,3),(2,4),(3,5);
-SELECT DISTINCT a, b, 2 FROM t2;
-a b 2
-1 1 2
-2 2 2
-2 3 2
-2 4 2
-3 5 2
-SELECT DISTINCT 2, a, b FROM t2;
-2 a b
-2 1 1
-2 2 2
-2 2 3
-2 2 4
-2 3 5
-SELECT DISTINCT a, 2, b FROM t2;
-a 2 b
-1 2 1
-2 2 2
-2 2 3
-2 2 4
-3 2 5
-DROP TABLE t1,t2;
-CREATE TABLE t1(a INT PRIMARY KEY, b INT);
-INSERT INTO t1 VALUES (1,1), (2,1), (3,1);
-EXPLAIN SELECT DISTINCT a FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 3 Using index
-EXPLAIN SELECT DISTINCT a,b FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1_1 ALL NULL NULL NULL NULL 3 Using temporary
-1 SIMPLE t1_2 index NULL PRIMARY 4 NULL 3 Using index; Using join buffer (flat, BNL join)
-EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2
-WHERE t1_1.a = t1_2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1_1 ALL PRIMARY NULL NULL NULL 3 Using temporary
-1 SIMPLE t1_2 eq_ref PRIMARY PRIMARY 4 test.t1_1.a 1 Using index; Distinct
-EXPLAIN SELECT a FROM t1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 3 Using index
-EXPLAIN SELECT a,b FROM t1 GROUP BY a,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using filesort
-EXPLAIN SELECT DISTINCT a,b FROM t1 GROUP BY a,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using filesort
-CREATE TABLE t2(a INT, b INT NOT NULL, c INT NOT NULL, d INT,
-PRIMARY KEY (a,b));
-INSERT INTO t2 VALUES (1,1,1,50), (1,2,3,40), (2,1,3,4);
-EXPLAIN SELECT DISTINCT a FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL PRIMARY 8 NULL 3 Using index
-EXPLAIN SELECT DISTINCT a,a FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL PRIMARY 8 NULL 3 Using index
-EXPLAIN SELECT DISTINCT b,a FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL PRIMARY 8 NULL 3 Using index
-EXPLAIN SELECT DISTINCT a,c FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using temporary
-EXPLAIN SELECT DISTINCT c,a,b FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-EXPLAIN SELECT DISTINCT a,b,d FROM t2 GROUP BY c,b,d;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
-CREATE UNIQUE INDEX c_b_unq ON t2 (c,b);
-EXPLAIN SELECT DISTINCT a,b,d FROM t2 GROUP BY c,b,d;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using filesort
-DROP TABLE t1,t2;
-create table t1 (id int, dsc varchar(50));
-insert into t1 values (1, "line number one"), (2, "line number two"), (3, "line number three");
-select distinct id, IFNULL(dsc, '-') from t1;
-id IFNULL(dsc, '-')
-1 line number one
-2 line number two
-3 line number three
-drop table t1;
-CREATE TABLE t1 (a int primary key, b int);
-INSERT INTO t1 (a,b) values (1,1), (2,3), (3,2);
-explain SELECT DISTINCT a, b FROM t1 ORDER BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using filesort
-SELECT DISTINCT a, b FROM t1 ORDER BY b;
-a b
-1 1
-3 2
-2 3
-DROP TABLE t1;
-CREATE TABLE t1 (
-ID int(11) NOT NULL auto_increment,
-x varchar(20) default NULL,
-y decimal(10,0) default NULL,
-PRIMARY KEY (ID),
-KEY (y)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES
-(1,'ba','-1'),
-(2,'ba','1150'),
-(306,'ba','-1'),
-(307,'ba','1150'),
-(611,'ba','-1'),
-(612,'ba','1150');
-select count(distinct x,y) from t1;
-count(distinct x,y)
-2
-select count(distinct concat(x,y)) from t1;
-count(distinct concat(x,y))
-2
-drop table t1;
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY (a,b));
-INSERT INTO t1 VALUES (1, 101);
-INSERT INTO t1 SELECT a + 1, a + 101 FROM t1;
-INSERT INTO t1 SELECT a + 2, a + 102 FROM t1;
-INSERT INTO t1 SELECT a + 4, a + 104 FROM t1;
-INSERT INTO t1 SELECT a + 8, a + 108 FROM t1;
-EXPLAIN SELECT DISTINCT a,a FROM t1 WHERE b < 12 ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 8 NULL 16 Using where; Using index
-SELECT DISTINCT a,a FROM t1 WHERE b < 12 ORDER BY a;
-a a
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (id INT NOT NULL, fruit_id INT NOT NULL, fruit_name varchar(20)
-default NULL);
-INSERT INTO t1 VALUES (1,1,'ORANGE');
-INSERT INTO t1 VALUES (2,2,'APPLE');
-INSERT INTO t1 VALUES (3,2,'APPLE');
-INSERT INTO t1 VALUES (4,3,'PEAR');
-SELECT DISTINCT fruit_id, fruit_name INTO @v1, @v2 FROM t1 WHERE fruit_name =
-'APPLE';
-SELECT @v1, @v2;
-@v1 @v2
-2 APPLE
-SELECT DISTINCT fruit_id, fruit_name INTO @v3, @v4 FROM t1 GROUP BY fruit_id,
-fruit_name HAVING fruit_name = 'APPLE';
-SELECT @v3, @v4;
-@v3 @v4
-2 APPLE
-SELECT DISTINCT @v5:= fruit_id, @v6:= fruit_name INTO @v7, @v8 FROM t1 WHERE
-fruit_name = 'APPLE';
-SELECT @v5, @v6, @v7, @v8;
-@v5 @v6 @v7 @v8
-2 APPLE 2 APPLE
-SELECT DISTINCT @v5 + fruit_id, CONCAT(@v6, fruit_name) INTO @v9, @v10 FROM t1
-WHERE fruit_name = 'APPLE';
-SELECT @v5, @v6, @v7, @v8, @v9, @v10;
-@v5 @v6 @v7 @v8 @v9 @v10
-2 APPLE 2 APPLE 4 APPLEAPPLE
-SELECT DISTINCT @v11:= @v5 + fruit_id, @v12:= CONCAT(@v6, fruit_name) INTO
-@v13, @v14 FROM t1 WHERE fruit_name = 'APPLE';
-SELECT @v11, @v12, @v13, @v14;
-@v11 @v12 @v13 @v14
-4 APPLEAPPLE 4 APPLEAPPLE
-SELECT DISTINCT @v13, @v14 INTO @v15, @v16 FROM t1 WHERE fruit_name = 'APPLE';
-SELECT @v15, @v16;
-@v15 @v16
-4 APPLEAPPLE
-SELECT DISTINCT 2 + 2, 'Bob' INTO @v17, @v18 FROM t1 WHERE fruit_name =
-'APPLE';
-SELECT @v17, @v18;
-@v17 @v18
-4 Bob
-DROP TABLE IF EXISTS t2;
-CREATE TABLE t2 (fruit_id INT NOT NULL, fruit_name varchar(20)
-default NULL);
-SELECT DISTINCT fruit_id, fruit_name INTO OUTFILE
-'../../tmp/data1.tmp' FROM t1 WHERE fruit_name = 'APPLE';
-LOAD DATA INFILE '../../tmp/data1.tmp' INTO TABLE t2;
-SELECT DISTINCT @v19:= fruit_id, @v20:= fruit_name INTO OUTFILE
-'../../tmp/data2.tmp' FROM t1 WHERE fruit_name = 'APPLE';
-LOAD DATA INFILE '../../tmp/data2.tmp' INTO TABLE t2;
-SELECT @v19, @v20;
-@v19 @v20
-2 APPLE
-SELECT * FROM t2;
-fruit_id fruit_name
-2 APPLE
-2 APPLE
-DROP TABLE t1;
-DROP TABLE t2;
-CREATE TABLE t1 (a CHAR(1));
-INSERT INTO t1 VALUES('A'), (0);
-SELECT a FROM t1 WHERE a=0;
-a
-A
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'A'
-SELECT DISTINCT a FROM t1 WHERE a=0;
-a
-A
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'A'
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('1972-07-29'), ('1972-02-06');
-EXPLAIN SELECT (SELECT DISTINCT a FROM t1 WHERE a = '2002-08-03');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-EXPLAIN SELECT (SELECT DISTINCT ADDDATE(a,1) FROM t1
-WHERE ADDDATE(a,1) = '2002-08-03');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-CREATE TABLE t2 (a CHAR(5) CHARACTER SET latin1 COLLATE latin1_general_ci);
-INSERT INTO t2 VALUES (0xf6);
-INSERT INTO t2 VALUES ('oe');
-SELECT COUNT(*) FROM (SELECT DISTINCT a FROM t2) dt;
-COUNT(*)
-2
-SELECT COUNT(*) FROM
-(SELECT DISTINCT a FROM t2 WHERE a='oe' COLLATE latin1_german2_ci) dt;
-COUNT(*)
-2
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a INT, UNIQUE (a));
-INSERT INTO t1 VALUES (4),(null),(2),(1),(null),(3);
-EXPLAIN SELECT DISTINCT a FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 6 Using index
-SELECT DISTINCT a FROM t1;
-a
-NULL
-1
-2
-3
-4
-EXPLAIN SELECT a FROM t1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 6 Using index
-SELECT a FROM t1 GROUP BY a;
-a
-NULL
-1
-2
-3
-4
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES(1,1),(1,2),(1,3);
-SELECT DISTINCT a, b FROM t1;
-a b
-1 1
-1 2
-1 3
-SELECT DISTINCT a, a, b FROM t1;
-a a b
-1 1 1
-1 1 2
-1 1 3
-DROP TABLE t1;
-End of 5.0 tests
-CREATE TABLE t1(a INT, b INT, c INT, d INT default 0, e INT default 0,
-PRIMARY KEY(a,b,c,d,e),
-KEY(a,b,d,c)
-);
-INSERT INTO t1(a, b, c) VALUES (1, 1, 1),
-(1, 1, 2),
-(1, 1, 3),
-(1, 2, 1),
-(1, 2, 2),
-(1, 2, 3);
-EXPLAIN SELECT DISTINCT a, b, d, c FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 16 NULL 6 Using index
-SELECT DISTINCT a, b, d, c FROM t1;
-a b d c
-1 1 0 1
-1 1 0 2
-1 1 0 3
-1 2 0 1
-1 2 0 2
-1 2 0 3
-DROP TABLE t1;
-#
-# Bug #46159: simple query that never returns
-#
-SET @old_max_heap_table_size = @@max_heap_table_size;
-SET @@max_heap_table_size = 16384;
-SET @old_sort_buffer_size = @@sort_buffer_size;
-SET @@sort_buffer_size = 32804;
-CREATE TABLE t1(c1 int, c2 VARCHAR(20));
-INSERT INTO t1 VALUES (1, '1'), (1, '1'), (2, '2'), (3, '1'), (3, '1'), (4, '4');
-INSERT INTO t1 SELECT 5 + 10000 * RAND(), '5' FROM t1;
-INSERT INTO t1 SELECT 5 + 10000 * RAND(), '5' FROM t1;
-INSERT INTO t1 SELECT 5 + 10000 * RAND(), '5' FROM t1;
-INSERT INTO t1 SELECT 5 + 10000 * RAND(), '5' FROM t1;
-INSERT INTO t1 SELECT 5 + 10000 * RAND(), '5' FROM t1;
-INSERT INTO t1 SELECT 5 + 10000 * RAND(), '5' FROM t1;
-INSERT INTO t1 SELECT 5 + 10000 * RAND(), '5' FROM t1;
-INSERT INTO t1 SELECT 5 + 10000 * RAND(), '5' FROM t1;
-SELECT c1, c2, COUNT(*) FROM t1 GROUP BY c1 LIMIT 4;
-c1 c2 COUNT(*)
-1 1 2
-2 2 1
-3 1 2
-4 4 1
-SELECT DISTINCT c2 FROM t1 GROUP BY c1 HAVING COUNT(*) > 1;
-c2
-1
-5
-DROP TABLE t1;
-SET @@sort_buffer_size = @old_sort_buffer_size;
-SET @@max_heap_table_size = @old_max_heap_table_size;
-End of 5.1 tests
-create table t1 (a varchar(100));
-insert t1 values ('2010-10-10'), ('20101010');
-select * from t1 where a = DATE('2010-10-10');
-a
-2010-10-10
-20101010
-select distinct a from t1 where a = DATE('2010-10-10');
-a
-2010-10-10
-20101010
-explain select distinct a from t1 where a = DATE('2010-10-10');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where; Using temporary
-drop table t1;
-# date = string
-create table t1 (a date);
-insert t1 values ('2010-10-10'), ('20101010');
-explain select distinct a from t1 where a = '2010-10-10';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-drop table t1;
-# double = string
-create table t1 (a double);
-insert t1 values (2), (2);
-explain select distinct a from t1 where a = '2';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-# double = int
-explain select distinct a from t1 where a = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-# string = double
-alter table t1 modify a varchar(100);
-explain select distinct a from t1 where a = 2e0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where; Using temporary
-drop table t1;
-create table t1 (f1 varchar(40));
-insert into t1 values ('2010-10-10 00:00:00.0001'),('2010-10-10 00:00:00.0002'),('2010-10-10 00:00:00.0003');
-select time(f1) from t1 ;
-time(f1)
-00:00:00.000100
-00:00:00.000200
-00:00:00.000300
-select distinct time(f1) from t1 ;
-time(f1)
-00:00:00.000100
-00:00:00.000200
-00:00:00.000300
-drop table t1;
-create table t1(i int, g int);
-insert into t1 values (null, 1), (0, 2);
-select distinct i from t1 group by g;
-i
-NULL
-0
-drop table t1;
-create table t1(i int, g blob);
-insert into t1 values (null, 1), (0, 2);
-select distinct i from t1 group by g;
-i
-NULL
-0
-drop table t1;
-create table t1 (a int) engine=myisam;
-insert into t1 values (0),(7);
-create table t2 (b int) engine=myisam;
-insert into t2 values (7),(0),(3);
-create algorithm=temptable view v as
-select distinct (select max(a) from t1 where alias.b = a) as field1 from t2 as alias group by field1;
-select * from v;
-field1
-NULL
-0
-7
-select distinct (select max(a) from t1 where alias.b = a) as field1 from t2 as alias group by field1;
-field1
-NULL
-0
-7
-drop view v;
-drop table t1, t2;
-CREATE TABLE t1 (
-id int, i1 int, i2 int DEFAULT 0,
-d1 date DEFAULT '2000-01-01', d2 date DEFAULT '2000-01-01',
-t1 time DEFAULT '00:00:00', t2 time DEFAULT '00:00:00',
-dt1 datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
-dt2 datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
-c1 varchar(1) NOT NULL, c2 varchar(1) NOT NULL
-) ENGINE=MyISAM;
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 (id,i1,c1,c2) VALUES
-(1,7,'t','t'),(2,4,'k','k'),(3,2,'e','e'),(4,0,'i','i'),(5,1,'t','t'),(6,91,'m','m'),
-(7,6,'z','z'),(8,3,'c','c'),(9,6,'i','i'),(10,8,'v','v'), (11,1,'l','l'),(12,4,'j','j'),
-(13,5,'w','w'),(14,0,'r','r'),(15,7,'o','o'),(16,9,'o','o'),(17,7,'u','u'),(18,6,'f','f'),
-(19,0,'l','l'),(20,6,'g','g'),(21,1,'e','e'),(22,7,'y','y'),(23,0,'p','p'),(24,6,'v','v'),
-(25,5,'d','d'),(26,9,'i','i'),(27,5,'z','z'),(28,2,'q','q'),(29,4,'j','j'),(30,9,'m','m'),
-(31,8,'d','d'),(32,5,'r','r'),(33,1,'r','r'),(34,1,'k','k'),(35,4,'p','p'),(36,2,'x','x'),
-(37,5,'w','w'),(38,0,'k','k'),(39,7,'y','y'),(40,4,'p','p'),(41,9,'l','l'),(42,2,'u','u'),
-(43,3,'r','r'),(44,5,'y','y'),(45,3,'u','u'),(46,9,'t','t'),(47,8,'f','f'),(48,2,'f','f'),
-(49,2,'q','q'),(50,6,'v','v'),(51,6,'u','u'),(52,0,'b','b'),(53,1,'n','n'),(54,2,'p','p'),
-(55,0,'y','y'),(56,1,'l','l'),(57,1,'c','c'),(58,0,'d','d'),(59,2,'y','y'),(60,7,'l','l'),
-(61,6,'m','m'),(62,9,'q','q'),(63,0,'j','j'),(64,3,'u','u'),(65,4,'w','w'),(66,5,'p','p'),
-(67,8,'z','z'),(68,5,'u','u'),(69,7,'b','b'),(70,0,'f','f'),(71,6,'u','u'),(72,1,'i','i'),
-(73,9,'s','s'),(74,3,'y','y'),(75,5,'s','s'),(76,8,'x','x'),(77,3,'s','s'),(78,3,'l','l'),
-(79,8,'b','b'),(80,0,'p','p'),(81,9,'m','m'),(82,5,'k','k'),(83,7,'u','u'),(84,0,'y','y'),
-(85,2,'x','x'),(86,5,'h','h'),(87,5,'j','j'),(88,5,'o','o'),(89,9,'o','o'),(90,1,'c','c'),
-(91,7,'k','k'),(92,9,'t','t'),(93,3,'h','h'),(94,6,'g','g'),(95,9,'r','r'),(96,2,'i','i');
-CREATE TABLE t2 (i INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (7),(8);
-SELECT STRAIGHT_JOIN COUNT(DISTINCT t1.id) FROM
-t1, v1, t2 WHERE v1.id = t2.i AND t1.i1 = v1.i1 AND t2.i != 3;
-COUNT(DISTINCT t1.id)
-18
-EXPLAIN EXTENDED
-SELECT STRAIGHT_JOIN DISTINCT t1.id FROM
-t1, v1, t2 WHERE v1.id = t2.i AND t1.i1 = v1.i1 AND t2.i != 3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 96 100.00 Using where; Using temporary
-1 PRIMARY <derived2> ref key0 key0 5 test.t1.i1 9 100.00 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 96 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select straight_join distinct `test`.`t1`.`id` AS `id` from `test`.`t1` join `test`.`v1` join `test`.`t2` where `test`.`t2`.`i` = `v1`.`id` and `v1`.`i1` = `test`.`t1`.`i1` and `v1`.`id` <> 3
-set join_buffer_size=1024;
-SELECT STRAIGHT_JOIN DISTINCT t1.id FROM
-t1, v1, t2 WHERE v1.id = t2.i AND t1.i1 = v1.i1 AND t2.i != 3;
-id
-18
-20
-24
-43
-45
-50
-51
-61
-64
-7
-71
-74
-77
-78
-8
-9
-93
-94
-set join_buffer_size=1024*16;
-SELECT STRAIGHT_JOIN DISTINCT t1.id FROM
-t1, v1, t2 WHERE v1.id = t2.i AND t1.i1 = v1.i1 AND t2.i != 3;
-id
-18
-20
-24
-43
-45
-50
-51
-61
-64
-7
-71
-74
-77
-78
-8
-9
-93
-94
-set join_buffer_size=default;
-SELECT STRAIGHT_JOIN DISTINCT t1.id FROM
-t1, v1, t2 WHERE v1.id = t2.i AND t1.i1 = v1.i1 AND t2.i != 3;
-id
-7
-9
-18
-20
-24
-50
-51
-61
-71
-94
-8
-43
-45
-64
-74
-77
-78
-93
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# Bug #11744875: 4082: integer lengths cause truncation with distinct concat and innodb
-#
-CREATE TABLE t1 (a INT(1), b INT(1));
-INSERT INTO t1 VALUES (1111, 2222), (3333, 4444);
-SELECT DISTINCT CONCAT(a,b) AS c FROM t1 ORDER BY 1;
-c
-11112222
-33334444
-DROP TABLE t1;
-#
-# Bug#16539979 BASIC SELECT COUNT(DISTINCT ID) IS BROKEN.
-# Bug#17867117 ERROR RESULT WHEN "COUNT + DISTINCT + CASE WHEN" NEED MERGE_WALK
-#
-SET @tmp_table_size_save= @@tmp_table_size;
-SET @@tmp_table_size= 1024;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8);
-INSERT INTO t1 SELECT a+8 FROM t1;
-INSERT INTO t1 SELECT a+16 FROM t1;
-INSERT INTO t1 SELECT a+32 FROM t1;
-INSERT INTO t1 SELECT a+64 FROM t1;
-INSERT INTO t1 VALUE(NULL);
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-128
-SELECT COUNT(DISTINCT (a+0)) FROM t1;
-COUNT(DISTINCT (a+0))
-128
-DROP TABLE t1;
-create table tb(
-id int auto_increment primary key,
-v varchar(32))
-engine=myisam charset=gbk;
-insert into tb(v) values("aaa");
-insert into tb(v) (select v from tb);
-insert into tb(v) (select v from tb);
-insert into tb(v) (select v from tb);
-insert into tb(v) (select v from tb);
-insert into tb(v) (select v from tb);
-insert into tb(v) (select v from tb);
-update tb set v=concat(v, id);
-select count(distinct case when id<=64 then id end) from tb;
-count(distinct case when id<=64 then id end)
-64
-select count(distinct case when id<=63 then id end) from tb;
-count(distinct case when id<=63 then id end)
-63
-drop table tb;
-SET @@tmp_table_size= @tmp_table_size_save;
-End of 5.5 tests
diff --git a/mysql-test/r/drop-no_root.result b/mysql-test/r/drop-no_root.result
deleted file mode 100644
index 3e1f2fe2cf0..00000000000
--- a/mysql-test/r/drop-no_root.result
+++ /dev/null
@@ -1,28 +0,0 @@
-
-# --
-# -- Bug#26704: Failing DROP DATABASE brings mysql-client out of sync.
-# --
-
-DROP DATABASE IF EXISTS mysql_test;
-
-CREATE DATABASE mysql_test;
-CREATE TABLE mysql_test.t1(c INT);
-use mysql_test;
-
-chmod 000 mysql_test/t1.frm
-
-DROP DATABASE mysql_test;
-
-SELECT DATABASE();
-DATABASE()
-mysql_test
-
-rm -f mysql_test/t1.MYD mysql_test/t1.MYI
-chmod 666 mysql_test/t1.frm
-rm -f mysql_test/t1.frm
-
-DROP DATABASE mysql_test;
-
-use test;
-
-# -- End of Bug#26704.
diff --git a/mysql-test/r/drop.result b/mysql-test/r/drop.result
deleted file mode 100644
index 88e070af88c..00000000000
--- a/mysql-test/r/drop.result
+++ /dev/null
@@ -1,232 +0,0 @@
-call mtr.add_suppression("table or database name 'abc`def'");
-drop table if exists t1;
-drop database if exists mysqltest;
-drop database if exists client_test_db;
-drop table t1;
-ERROR 42S02: Unknown table 'test.t1'
-create table t1(n int);
-insert into t1 values(1);
-create temporary table t1( n int);
-insert into t1 values(2);
-create table t1(n int);
-ERROR 42S01: Table 't1' already exists
-drop table t1;
-select * from t1;
-n
-1
-create database mysqltest;
-drop database if exists mysqltest;
-create database mysqltest;
-create table mysqltest.mysqltest (n int);
-insert into mysqltest.mysqltest values (4);
-select * from mysqltest.mysqltest;
-n
-4
-drop database if exists mysqltest;
-affected rows: 1
-create database mysqltest;
-use mysqltest;
-drop table table1, table2, table3, table4, table5, table6,
-table7, table8, table9, table10, table11, table12, table13,
-table14, table15, table16, table17, table18, table19, table20,
-table21, table22, table23, table24, table25, table26, table27,
-table28;
-ERROR 42S02: Unknown table 'mysqltest.table1,mysqltest.table2,mysqltest.table3,mysqltest.table4,mysqltest.table5,mysqltest.table'
-drop table table1, table2, table3, table4, table5, table6,
-table7, table8, table9, table10, table11, table12, table13,
-table14, table15, table16, table17, table18, table19, table20,
-table21, table22, table23, table24, table25, table26, table27,
-table28, table29, table30;
-ERROR 42S02: Unknown table 'mysqltest.table1,mysqltest.table2,mysqltest.table3,mysqltest.table4,mysqltest.table5,mysqltest.table'
-use test;
-drop database mysqltest;
-flush tables with read lock;
-create database mysqltest;
-Got one of the listed errors
-unlock tables;
-create database mysqltest;
-show databases;
-Database
-information_schema
-mtr
-mysql
-mysqltest
-performance_schema
-test
-flush tables with read lock;
-drop database mysqltest;
-Got one of the listed errors
-unlock tables;
-drop database mysqltest;
-show databases;
-Database
-information_schema
-mtr
-mysql
-performance_schema
-test
-drop database mysqltest;
-ERROR HY000: Can't drop database 'mysqltest'; database doesn't exist
-drop table t1;
-flush tables with read lock;
-create table t1(n int);
-ERROR HY000: Can't execute the query because you have a conflicting read lock
-unlock tables;
-create table t1(n int);
-show tables;
-Tables_in_test
-t1
-drop table t1;
-drop database if exists mysqltest;
-drop table if exists t1;
-create table t1 (i int);
-create database mysqltest;
-lock tables t1 read;
-connect addconroot1, localhost, root,,;
-drop table t1;
-connect addconroot2, localhost, root,,;
-show open tables;
-drop database mysqltest;
-connection default;
-select 1;
-1
-1
-unlock tables;
-connection addconroot1;
-connection addconroot2;
-disconnect addconroot2;
-connection addconroot1;
-disconnect addconroot1;
-connection default;
-drop table if exists t1,t2;
-create table t1 (a int);
-create table t2 (a int);
-lock table t1 read;
-drop table t2;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-drop table t1;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-unlock tables;
-drop table t1,t2;
-connect addconroot, localhost, root,,;
-connection default;
-create table t1 (i int);
-create table t2 (i int);
-lock tables t1 read;
-connection addconroot;
-lock tables t2 read;
-drop table t1;
-ERROR HY000: Table 't1' was not locked with LOCK TABLES
-connection default;
-drop table t1,t2;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-disconnect addconroot;
-connection default;
-unlock tables;
-drop table t1,t2;
-End of 5.0 tests
-create database mysql_test;
-create table mysql_test.t1(f1 int);
-create table mysql_test.`#sql-347f_7` (f1 int);
-create table mysql_test.`#sql-347f_8` (f1 int);
-drop table mysql_test.`#sql-347f_8`;
-drop database mysql_test;
-
-# --
-# -- Bug#29958: Weird message on DROP DATABASE if mysql.proc does not
-# -- exist.
-# --
-DROP DATABASE IF EXISTS mysql_test;
-CREATE DATABASE mysql_test;
-DROP TABLE mysql.proc;
-DROP DATABASE mysql_test;
-Warnings:
-Error 1146 Table 'mysql.proc' doesn't exist
-
-# --
-# -- End of Bug#29958.
-# --
-
-create database mysqltestbug26703;
-use mysqltestbug26703;
-create table `#mysql50#abc``def` ( id int );
-create table `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` (a int);
-ERROR 42000: Incorrect table name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
-create table `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` (a int);
-create table `#mysql50#aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1234` (a int);
-create table `#mysql50#aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa12345` (a int);
-ERROR 42000: Incorrect table name '#mysql50#aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa12345'
-show tables;
-Tables_in_mysqltestbug26703
-#mysql50#abc`def
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1234
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-use test;
-drop database mysqltestbug26703;
-End of 5.1 tests
-
-# --
-# -- Bug#37431 (DROP TABLE does not report errors correctly).
-# --
-DROP TABLE IF EXISTS t1;
-DROP TABLE t1;
-ERROR 42S02: Unknown table 'test.t1'
-SHOW WARNINGS;
-Level Code Message
-Error 1051 Unknown table 'test.t1'
-
-# --
-# -- End of Bug#37431.
-# --
-#
-# Bug#54282 Crash in MDL_context::upgrade_shared_lock_to_exclusive
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT);
-LOCK TABLE t1 WRITE;
-DROP TABLE t1, t1;
-ERROR 42000: Not unique table/alias: 't1'
-UNLOCK TABLES;
-DROP TABLE t1;
-#
-# BUG#34750: Print database name in Unknown Table error message
-#
-
-# Test error message when droping table/view
-DROP TABLE table1;
-ERROR 42S02: Unknown table 'test.table1'
-DROP TABLE table1,table2;
-ERROR 42S02: Unknown table 'test.table1,test.table2'
-DROP VIEW view1,view2,view3,view4;
-ERROR 42S02: Unknown VIEW: 'test.view1,test.view2,test.view3,test.view4'
-
-DROP TABLE IF EXISTS table1;
-Warnings:
-Note 1051 Unknown table 'test.table1'
-DROP TABLE IF EXISTS table1,table2;
-Warnings:
-Note 1051 Unknown table 'test.table1'
-Note 1051 Unknown table 'test.table2'
-DROP VIEW IF EXISTS view1,view2,view3,view4;
-Warnings:
-Note 4092 Unknown VIEW: 'test.view1'
-Note 4092 Unknown VIEW: 'test.view2'
-Note 4092 Unknown VIEW: 'test.view3'
-Note 4092 Unknown VIEW: 'test.view4'
-
-# Test error message when trigger does not find table
-CREATE TABLE table1(a int);
-CREATE TABLE table2(b int);
-CREATE TRIGGER trg1 AFTER INSERT ON table1
-FOR EACH ROW
-INSERT INTO table2 SELECT t.notable.*;
-INSERT INTO table1 VALUES (1);
-ERROR 42S02: Unknown table 't.notable'
-DROP TABLE table1,table2;
-# End BUG#34750
-#
-# MDEV-11105 Table named 'db' has weird side effect.
-#
-CREATE DATABASE mysqltest;
-CREATE TABLE mysqltest.db(id INT);
-DROP DATABASE mysqltest;
diff --git a/mysql-test/r/drop_bad_db_type.result b/mysql-test/r/drop_bad_db_type.result
deleted file mode 100644
index de22373e0fd..00000000000
--- a/mysql-test/r/drop_bad_db_type.result
+++ /dev/null
@@ -1,33 +0,0 @@
-set debug_dbug='+d,unstable_db_type';
-install soname 'ha_archive';
-create table t1 (a int) engine=archive;
-insert t1 values (1),(2),(3);
-flush tables;
-uninstall soname 'ha_archive';
-select table_schema, table_name from information_schema.tables where table_name like 't1';
-table_schema test
-table_name t1
-select table_schema, table_name, engine, version from information_schema.tables where table_name like 't1';
-table_schema test
-table_name t1
-engine ARCHIVE
-version NULL
-Warnings:
-Level Warning
-Code 1286
-Message Unknown storage engine 'ARCHIVE'
-select table_schema, table_name, engine, row_format from information_schema.tables where table_name like 't1';
-table_schema test
-table_name t1
-engine ARCHIVE
-row_format NULL
-Warnings:
-Level Warning
-Code 1286
-Message Unknown storage engine 'ARCHIVE'
-install soname 'ha_archive';
-t1.ARZ
-t1.frm
-drop table t1;
-uninstall soname 'ha_archive';
-set debug_dbug='-d,unstable_db_type';
diff --git a/mysql-test/r/dyncol.result b/mysql-test/r/dyncol.result
deleted file mode 100644
index 7a5eeac67cc..00000000000
--- a/mysql-test/r/dyncol.result
+++ /dev/null
@@ -1,1958 +0,0 @@
-#
-# column create
-#
-select hex(COLUMN_CREATE(1, NULL AS char character set utf8));
-hex(COLUMN_CREATE(1, NULL AS char character set utf8))
-000000
-select hex(COLUMN_CREATE(1, "afaf" AS char character set utf8));
-hex(COLUMN_CREATE(1, "afaf" AS char character set utf8))
-0001000100032161666166
-select hex(COLUMN_CREATE(1, 1212 AS char character set utf8));
-hex(COLUMN_CREATE(1, 1212 AS char character set utf8))
-0001000100032131323132
-select hex(COLUMN_CREATE(1, 12.12 AS char character set utf8));
-hex(COLUMN_CREATE(1, 12.12 AS char character set utf8))
-0001000100032131322E3132
-select hex(COLUMN_CREATE(1, 99999999999999999999999999999 AS char character set utf8));
-hex(COLUMN_CREATE(1, 99999999999999999999999999999 AS char character set utf8))
-000100010003213939393939393939393939393939393939393939393939393939393939
-select hex(COLUMN_CREATE(1, NULL AS unsigned int));
-hex(COLUMN_CREATE(1, NULL AS unsigned int))
-000000
-select hex(COLUMN_CREATE(1, 1212 AS unsigned int));
-hex(COLUMN_CREATE(1, 1212 AS unsigned int))
-000100010001BC04
-select hex(COLUMN_CREATE(1, 7 AS unsigned int));
-hex(COLUMN_CREATE(1, 7 AS unsigned int))
-00010001000107
-select hex(COLUMN_CREATE(1, 8 AS unsigned int));
-hex(COLUMN_CREATE(1, 8 AS unsigned int))
-00010001000108
-select hex(COLUMN_CREATE(1, 127 AS unsigned int));
-hex(COLUMN_CREATE(1, 127 AS unsigned int))
-0001000100017F
-select hex(COLUMN_CREATE(1, 128 AS unsigned int));
-hex(COLUMN_CREATE(1, 128 AS unsigned int))
-00010001000180
-select hex(COLUMN_CREATE(1, 12.12 AS unsigned int));
-hex(COLUMN_CREATE(1, 12.12 AS unsigned int))
-0001000100010C
-select hex(COLUMN_CREATE(1, ~0));
-hex(COLUMN_CREATE(1, ~0))
-000100010001FFFFFFFFFFFFFFFF
-select hex(COLUMN_CREATE(1, -1));
-hex(COLUMN_CREATE(1, -1))
-00010001000001
-select hex(COLUMN_CREATE(1, 99999999999999999999999999999 AS unsigned int));
-hex(COLUMN_CREATE(1, 99999999999999999999999999999 AS unsigned int))
-000100010001FFFFFFFFFFFFFF7F
-Warnings:
-Warning 1916 Got overflow when converting '99999999999999999999999999999' to INT. Value truncated
-select hex(COLUMN_CREATE(1, NULL AS int));
-hex(COLUMN_CREATE(1, NULL AS int))
-000000
-select hex(COLUMN_CREATE(1, 1212 AS int));
-hex(COLUMN_CREATE(1, 1212 AS int))
-0001000100007809
-select hex(COLUMN_CREATE(1, 7 AS int));
-hex(COLUMN_CREATE(1, 7 AS int))
-0001000100000E
-select hex(COLUMN_CREATE(1, 8 AS int));
-hex(COLUMN_CREATE(1, 8 AS int))
-00010001000010
-select hex(COLUMN_CREATE(1, 127 AS int));
-hex(COLUMN_CREATE(1, 127 AS int))
-000100010000FE
-select hex(COLUMN_CREATE(1, 128 AS int));
-hex(COLUMN_CREATE(1, 128 AS int))
-0001000100000001
-select hex(COLUMN_CREATE(1, 12.12 AS int));
-hex(COLUMN_CREATE(1, 12.12 AS int))
-00010001000018
-select hex(COLUMN_CREATE(1, 99999999999999999999999999999 AS int));
-hex(COLUMN_CREATE(1, 99999999999999999999999999999 AS int))
-000100010000FEFFFFFFFFFFFFFF
-Warnings:
-Warning 1916 Got overflow when converting '99999999999999999999999999999' to INT. Value truncated
-select hex(COLUMN_CREATE(1, NULL AS double));
-hex(COLUMN_CREATE(1, NULL AS double))
-000000
-select hex(COLUMN_CREATE(1, 1212 AS double));
-hex(COLUMN_CREATE(1, 1212 AS double))
-0001000100020000000000F09240
-select hex(COLUMN_CREATE(1, 12.12 AS double));
-hex(COLUMN_CREATE(1, 12.12 AS double))
-0001000100023D0AD7A3703D2840
-select hex(COLUMN_CREATE(1, 99999999999999999999999999999 AS double));
-hex(COLUMN_CREATE(1, 99999999999999999999999999999 AS double))
-00010001000221D7E6FAE031F445
-select hex(COLUMN_CREATE(1, NULL AS decimal));
-hex(COLUMN_CREATE(1, NULL AS decimal))
-000000
-select hex(COLUMN_CREATE(1, 1212 AS decimal));
-hex(COLUMN_CREATE(1, 1212 AS decimal))
-000100010004040084BC
-select hex(COLUMN_CREATE(1, 7 AS decimal));
-hex(COLUMN_CREATE(1, 7 AS decimal))
-000100010004010087
-select hex(COLUMN_CREATE(1, 8 AS decimal));
-hex(COLUMN_CREATE(1, 8 AS decimal))
-000100010004010088
-select hex(COLUMN_CREATE(1, 127 AS decimal));
-hex(COLUMN_CREATE(1, 127 AS decimal))
-0001000100040300807F
-select hex(COLUMN_CREATE(1, 128 AS decimal));
-hex(COLUMN_CREATE(1, 128 AS decimal))
-00010001000403008080
-select hex(COLUMN_CREATE(1, 12.12 AS decimal));
-hex(COLUMN_CREATE(1, 12.12 AS decimal))
-00010001000402028C0C
-select hex(COLUMN_CREATE(1, 99999999999999999999999999999 AS decimal));
-hex(COLUMN_CREATE(1, 99999999999999999999999999999 AS decimal))
-0001000100041D00E33B9AC9FF3B9AC9FF3B9AC9FF
-select hex(COLUMN_CREATE(1, NULL AS date));
-hex(COLUMN_CREATE(1, NULL AS date))
-000000
-select hex(COLUMN_CREATE(1, "2011-04-05" AS date));
-hex(COLUMN_CREATE(1, "2011-04-05" AS date))
-00010001000685B60F
-select hex(COLUMN_CREATE(1, NULL AS time));
-hex(COLUMN_CREATE(1, NULL AS time))
-000000
-select hex(COLUMN_CREATE(1, "0:45:49.000001" AS time));
-hex(COLUMN_CREATE(1, "0:45:49.000001" AS time))
-000100010007010010B70000
-select hex(COLUMN_CREATE(1, NULL AS datetime));
-hex(COLUMN_CREATE(1, NULL AS datetime))
-000000
-select hex(COLUMN_CREATE(1, "2011-04-05 0:45:49.000001" AS datetime));
-hex(COLUMN_CREATE(1, "2011-04-05 0:45:49.000001" AS datetime))
-00010001000585B60F010010B70000
-select hex(COLUMN_CREATE(1, "afaf" AS char character set utf8,
-2, 1212 AS unsigned int,
-3, 1212 AS int,
-4, 12.12 AS double,
-4+1, 12.12 AS decimal,
-6, "2011-04-05" AS date,
-7, "- 0:45:49.000001" AS time,
-8, "2011-04-05 0:45:49.000001" AS datetime));
-hex(COLUMN_CREATE(1, "afaf" AS char character set utf8,
-2, 1212 AS unsigned int,
-3, 1212 AS int,
-4, 12.12 AS double,
-4+1, 12.12 AS decimal,
-6, "2011-04-05" AS date,
-7, "- 0:45:49.000001" AS time,
-8, "2011-04-05 0:45:49.000001" AS datetime))
-01080001000300020029000300380004004A0005008C000600AE000700C7000800F5002161666166BC0478093D0AD7A3703D284002028C0C85B60F010010B7000485B60F010010B70000
-explain extended
-select hex(COLUMN_CREATE(1, "afaf" AS char character set utf8,
-2, 1212 AS unsigned int,
-3, 1212 AS int,
-4, 12.12 AS double,
-4+1, 12.12 AS decimal,
-6, "2011-04-05" AS date,
-7, "- 0:45:49.000001" AS time,
-8, "2011-04-05 0:45:49.000001" AS datetime));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select hex(column_create(1,'afaf' AS char charset utf8 ,2,1212 AS unsigned int,3,1212 AS int,4,12.12 AS double,4 + 1,12.12 AS decimal,6,'2011-04-05' AS date,7,'- 0:45:49.000001' AS time,8,'2011-04-05 0:45:49.000001' AS datetime)) AS `hex(COLUMN_CREATE(1, "afaf" AS char character set utf8,
-2, 1212 AS unsigned int,
-3, 1212 AS int,
-4, 12.12 AS double,
-4+1, 12.12 AS decimal,
-6, "2011-04-05" AS date,
-7, "- 0:45:49.000001" AS time,
-8, "2011-04-05 0:45:49.000001" AS datetime))`
-select hex(column_create(1, 0.0 AS decimal));
-hex(column_create(1, 0.0 AS decimal))
-000100010004
-select hex(column_create(1, 1.0 AS decimal));
-hex(column_create(1, 1.0 AS decimal))
-00010001000401018100
-#
-# column get uint
-#
-select column_get(column_create(1, 1212 AS unsigned int), 1 as unsigned int);
-column_get(column_create(1, 1212 AS unsigned int), 1 as unsigned int)
-1212
-explain extended
-select column_get(column_create(1, 1212 AS unsigned int), 1 as unsigned int);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select column_get(column_create(1,1212 AS unsigned int),1 as unsigned) AS `column_get(column_create(1, 1212 AS unsigned int), 1 as unsigned int)`
-explain extended
-select column_get(column_create(1, 1212 AS unsigned int), 1 as unsigned);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select column_get(column_create(1,1212 AS unsigned int),1 as unsigned) AS `column_get(column_create(1, 1212 AS unsigned int), 1 as unsigned)`
-select column_get(column_create(1, 1212 AS decimal), 1 as unsigned int);
-column_get(column_create(1, 1212 AS decimal), 1 as unsigned int)
-1212
-select column_get(column_create(1, 1212 AS double), 1 as unsigned int);
-column_get(column_create(1, 1212 AS double), 1 as unsigned int)
-1212
-select column_get(column_create(1, 1212 AS int), 1 as unsigned int);
-column_get(column_create(1, 1212 AS int), 1 as unsigned int)
-1212
-select column_get(column_create(1, "1212" AS char), 1 as unsigned int);
-column_get(column_create(1, "1212" AS char), 1 as unsigned int)
-1212
-select column_get(column_create(1, "2011-04-05" AS date), 1 as unsigned int);
-column_get(column_create(1, "2011-04-05" AS date), 1 as unsigned int)
-20110405
-select column_get(column_create(1, "8:46:06.23434" AS time), 1 as unsigned int);
-column_get(column_create(1, "8:46:06.23434" AS time), 1 as unsigned int)
-84606
-select column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as unsigned int);
-column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as unsigned int)
-20110405084606
-select column_get(column_create(1, NULL AS unsigned int), 1 as unsigned int);
-column_get(column_create(1, NULL AS unsigned int), 1 as unsigned int)
-NULL
-# column geint truncation & warnings
-select column_get(column_create(1, -1212 AS int), 1 as unsigned int);
-column_get(column_create(1, -1212 AS int), 1 as unsigned int)
-18446744073709550404
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select column_get(column_create(1, 99999999999999999999999999999 AS decimal), 1 as unsigned int);
-column_get(column_create(1, 99999999999999999999999999999 AS decimal), 1 as unsigned int)
-18446744073709551615
-Warnings:
-Warning 1916 Got overflow when converting '99999999999999999999999999999' to UNSIGNED INT. Value truncated
-select column_get(column_create(1, 999.9999999999999999 AS decimal), 1 as unsigned int);
-column_get(column_create(1, 999.9999999999999999 AS decimal), 1 as unsigned int)
-1000
-select column_get(column_create(1, -1 AS decimal), 1 as unsigned int);
-column_get(column_create(1, -1 AS decimal), 1 as unsigned int)
-0
-Warnings:
-Warning 1916 Got overflow when converting '-1' to UNSIGNED INT. Value truncated
-select column_get(column_create(1, 99999999999999999999999999999 AS double), 1 as unsigned int);
-column_get(column_create(1, 99999999999999999999999999999 AS double), 1 as unsigned int)
-18446744073709551615
-Warnings:
-Warning 1916 Got overflow when converting '1e29' to UNSIGNED INT. Value truncated
-select column_get(column_create(1, 999.9 AS double), 1 as unsigned int);
-column_get(column_create(1, 999.9 AS double), 1 as unsigned int)
-1000
-select column_get(column_create(1, -1 AS double), 1 as unsigned int);
-column_get(column_create(1, -1 AS double), 1 as unsigned int)
-0
-Warnings:
-Warning 1916 Got overflow when converting '-1' to UNSIGNED INT. Value truncated
-select column_get(column_create(1, "1212III" AS char), 1 as unsigned int);
-column_get(column_create(1, "1212III" AS char), 1 as unsigned int)
-1212
-Warnings:
-Warning 1918 Encountered illegal value '1212III' when converting to UNSIGNED INT
-#
-# column get int
-#
-select column_get(column_create(1, 1212 AS int), 1 as int);
-column_get(column_create(1, 1212 AS int), 1 as int)
-1212
-explain extended
-select column_get(column_create(1, 1212 AS int), 1 as int);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select column_get(column_create(1,1212 AS int),1 as signed) AS `column_get(column_create(1, 1212 AS int), 1 as int)`
-explain extended
-select column_get(column_create(1, 1212 AS int), 1 as signed int);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select column_get(column_create(1,1212 AS int),1 as signed) AS `column_get(column_create(1, 1212 AS int), 1 as signed int)`
-select column_get(column_create(1, -1212 AS int), 1 as int);
-column_get(column_create(1, -1212 AS int), 1 as int)
--1212
-select column_get(column_create(1, 1212 AS decimal), 1 as int);
-column_get(column_create(1, 1212 AS decimal), 1 as int)
-1212
-select column_get(column_create(1, 1212 AS double), 1 as int);
-column_get(column_create(1, 1212 AS double), 1 as int)
-1212
-select column_get(column_create(1, 1212 AS unsigned int), 1 as int);
-column_get(column_create(1, 1212 AS unsigned int), 1 as int)
-1212
-select column_get(column_create(1, "1212" AS char), 1 as int);
-column_get(column_create(1, "1212" AS char), 1 as int)
-1212
-select column_get(column_create(1, "-1212" AS char), 1 as int);
-column_get(column_create(1, "-1212" AS char), 1 as int)
--1212
-select column_get(column_create(1, "2011-04-05" AS date), 1 as int);
-column_get(column_create(1, "2011-04-05" AS date), 1 as int)
-20110405
-select column_get(column_create(1, "8:46:06.23434" AS time), 1 as int);
-column_get(column_create(1, "8:46:06.23434" AS time), 1 as int)
-84606
-select column_get(column_create(1, "8:46:06.23434" AS time(6)), 1 as int);
-column_get(column_create(1, "8:46:06.23434" AS time(6)), 1 as int)
-84606
-select column_get(column_create(1, "-808:46:06.23434" AS time(6)), 1 as int);
-column_get(column_create(1, "-808:46:06.23434" AS time(6)), 1 as int)
--8084606
-select column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime(6)), 1 as int);
-column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime(6)), 1 as int)
-20110405084606
-select column_get(column_create(1, NULL AS int), 1 as int);
-column_get(column_create(1, NULL AS int), 1 as int)
-NULL
-#column gett truncation & warnings
-select column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as int);
-column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as int)
--1
-Warnings:
-Note 1105 Cast to signed converted positive out-of-range integer to it's negative complement
-select column_get(column_create(1, 99999999999999999999999999999 AS decimal), 1 as int);
-column_get(column_create(1, 99999999999999999999999999999 AS decimal), 1 as int)
-9223372036854775807
-Warnings:
-Warning 1916 Got overflow when converting '99999999999999999999999999999' to INT. Value truncated
-select column_get(column_create(1, -99999999999999999999999999999 AS decimal), 1 as int);
-column_get(column_create(1, -99999999999999999999999999999 AS decimal), 1 as int)
--9223372036854775808
-Warnings:
-Warning 1916 Got overflow when converting '-99999999999999999999999999999' to INT. Value truncated
-select column_get(column_create(1, 999.9999999999999999 AS decimal), 1 as int);
-column_get(column_create(1, 999.9999999999999999 AS decimal), 1 as int)
-1000
-select column_get(column_create(1, 999.9 AS double), 1 as int);
-column_get(column_create(1, 999.9 AS double), 1 as int)
-1000
-select column_get(column_create(1, -99999999999999999999999999999 AS double), 1 as int);
-column_get(column_create(1, -99999999999999999999999999999 AS double), 1 as int)
--9223372036854775808
-Warnings:
-Warning 1916 Got overflow when converting '-1e29' to INT. Value truncated
-select column_get(column_create(1, "-1212III" AS char), 1 as int);
-column_get(column_create(1, "-1212III" AS char), 1 as int)
--1212
-Warnings:
-Warning 1918 Encountered illegal value '-1212III' when converting to INT
-select column_get(column_create(1, "1212III" AS char), 1 as int);
-column_get(column_create(1, "1212III" AS char), 1 as int)
-1212
-Warnings:
-Warning 1918 Encountered illegal value '1212III' when converting to INT
-select column_get(COLUMN_CREATE(1, ~0), 1 as signed);
-column_get(COLUMN_CREATE(1, ~0), 1 as signed)
--1
-Warnings:
-Note 1105 Cast to signed converted positive out-of-range integer to it's negative complement
-select column_get(COLUMN_CREATE(1, ~0), 1 as unsigned);
-column_get(COLUMN_CREATE(1, ~0), 1 as unsigned)
-18446744073709551615
-select column_get(COLUMN_CREATE(1, -1), 1 as signed);
-column_get(COLUMN_CREATE(1, -1), 1 as signed)
--1
-select column_get(COLUMN_CREATE(1, -1), 1 as unsigned);
-column_get(COLUMN_CREATE(1, -1), 1 as unsigned)
-18446744073709551615
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-#
-#column get char
-#
-select column_get(column_create(1, "1212" AS char charset utf8), 1 as char charset utf8);
-column_get(column_create(1, "1212" AS char charset utf8), 1 as char charset utf8)
-1212
-explain extended
-select column_get(column_create(1, "1212" AS char charset utf8), 1 as char charset utf8);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select column_get(column_create(1,'1212' AS char charset utf8 ),1 as char charset utf8) AS `column_get(column_create(1, "1212" AS char charset utf8), 1 as char charset utf8)`
-select column_get(column_create(1, 1212 AS unsigned int), 1 as char charset utf8);
-column_get(column_create(1, 1212 AS unsigned int), 1 as char charset utf8)
-1212
-select column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as char charset utf8);
-column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as char charset utf8)
-18446744073709551615
-select column_get(column_create(1, 1212 AS int), 1 as char charset utf8);
-column_get(column_create(1, 1212 AS int), 1 as char charset utf8)
-1212
-select column_get(column_create(1, -1212 AS int), 1 as char charset utf8);
-column_get(column_create(1, -1212 AS int), 1 as char charset utf8)
--1212
-select column_get(column_create(1, 9223372036854775807 AS int), 1 as char charset utf8);
-column_get(column_create(1, 9223372036854775807 AS int), 1 as char charset utf8)
-9223372036854775807
-select column_get(column_create(1, -9223372036854775808 AS int), 1 as char charset utf8);
-column_get(column_create(1, -9223372036854775808 AS int), 1 as char charset utf8)
--9223372036854775808
-select column_get(column_create(1, 1212.12 AS decimal), 1 as char charset utf8);
-column_get(column_create(1, 1212.12 AS decimal), 1 as char charset utf8)
-1212.12
-select column_get(column_create(1, 1212.12 AS double), 1 as char charset utf8);
-column_get(column_create(1, 1212.12 AS double), 1 as char charset utf8)
-1212.12
-select column_get(column_create(1, "2011-04-05" AS date), 1 as char charset utf8);
-column_get(column_create(1, "2011-04-05" AS date), 1 as char charset utf8)
-2011-04-05
-select column_get(column_create(1, "8:46:06.23434" AS time), 1 as char charset utf8);
-column_get(column_create(1, "8:46:06.23434" AS time), 1 as char charset utf8)
-08:46:06.234340
-select column_get(column_create(1, "8:46:06.23434" AS time(0)), 1 as char charset utf8);
-column_get(column_create(1, "8:46:06.23434" AS time(0)), 1 as char charset utf8)
-08:46:06.234340
-select column_get(column_create(1, "8:46:06.23434" AS time(6)), 1 as char charset utf8);
-column_get(column_create(1, "8:46:06.23434" AS time(6)), 1 as char charset utf8)
-08:46:06.234340
-select column_get(column_create(1, "-808:46:06.23434" AS time(6)), 1 as char charset utf8);
-column_get(column_create(1, "-808:46:06.23434" AS time(6)), 1 as char charset utf8)
--808:46:06.234340
-select column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as char charset utf8);
-column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as char charset utf8)
-2011-04-05 08:46:06.234340
-select column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime(0)), 1 as char charset utf8);
-column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime(0)), 1 as char charset utf8)
-2011-04-05 08:46:06.234340
-select column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime(6)), 1 as char charset utf8);
-column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime(6)), 1 as char charset utf8)
-2011-04-05 08:46:06.234340
-select column_get(column_create(1, NULL AS char charset utf8), 1 as char charset utf8);
-column_get(column_create(1, NULL AS char charset utf8), 1 as char charset utf8)
-NULL
-select column_get(column_create(1, "1212" AS char charset utf8), 1 as char charset binary);
-column_get(column_create(1, "1212" AS char charset utf8), 1 as char charset binary)
-1212
-explain extended
-select column_get(column_create(1, "1212" AS char charset utf8), 1 as char charset binary);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select column_get(column_create(1,'1212' AS char charset utf8 ),1 as char charset binary) AS `column_get(column_create(1, "1212" AS char charset utf8), 1 as char charset binary)`
-#
-# column get real
-#
-select column_get(column_create(1, 1212.12 AS double), 1 as double);
-column_get(column_create(1, 1212.12 AS double), 1 as double)
-1212.12
-explain extended
-select column_get(column_create(1, 1212.12 AS double), 1 as double);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select column_get(column_create(1,1212.12 AS double),1 as double) AS `column_get(column_create(1, 1212.12 AS double), 1 as double)`
-explain extended
-select column_get(column_create(1, 1212.12 AS double), 1 as double(6,2));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select column_get(column_create(1,1212.12 AS double),1 as double(6,2)) AS `column_get(column_create(1, 1212.12 AS double), 1 as double(6,2))`
-select column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as double);
-column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as double)
-1.8446744073709552e19
-select column_get(column_create(1, 9223372036854775807 AS int), 1 as double);
-column_get(column_create(1, 9223372036854775807 AS int), 1 as double)
-9.223372036854776e18
-select column_get(column_create(1, -9223372036854775808 AS int), 1 as double);
-column_get(column_create(1, -9223372036854775808 AS int), 1 as double)
--9.223372036854776e18
-select column_get(column_create(1, 99999999999999999999999999999 AS decimal), 1 as double);
-column_get(column_create(1, 99999999999999999999999999999 AS decimal), 1 as double)
-1e29
-select column_get(column_create(1, -99999999999999999999999999999 AS decimal), 1 as double);
-column_get(column_create(1, -99999999999999999999999999999 AS decimal), 1 as double)
--1e29
-select column_get(column_create(1, "2011-04-05" AS date), 1 as double);
-column_get(column_create(1, "2011-04-05" AS date), 1 as double)
-20110405
-select column_get(column_create(1, "8:46:06.23434" AS time), 1 as double);
-column_get(column_create(1, "8:46:06.23434" AS time), 1 as double)
-84606.23434
-select column_get(column_create(1, "8:46:06.23434" AS time(6)), 1 as double);
-column_get(column_create(1, "8:46:06.23434" AS time(6)), 1 as double)
-84606.23434
-select column_get(column_create(1, "-808:46:06.23434" AS time(6)), 1 as double);
-column_get(column_create(1, "-808:46:06.23434" AS time(6)), 1 as double)
--8084606.23434
-select column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as double);
-column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as double)
-20110405084606.234
-select column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime(6)), 1 as double);
-column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime(6)), 1 as double)
-20110405084606.234
-select round(column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as double(20,6)),3);
-round(column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as double(20,6)),3)
-20110405084606.234
-select column_get(column_create(1, NULL AS double), 1 as double);
-column_get(column_create(1, NULL AS double), 1 as double)
-NULL
-# column get real truncation & warnings
-select column_get(column_create(1, "1223.5aa" AS char), 1 as double);
-column_get(column_create(1, "1223.5aa" AS char), 1 as double)
-1223.5
-Warnings:
-Warning 1918 Encountered illegal value '1223.5aa' when converting to DOUBLE
-select column_get(column_create(1, "aa" AS char), 1 as double);
-column_get(column_create(1, "aa" AS char), 1 as double)
-0
-Warnings:
-Warning 1918 Encountered illegal value 'aa' when converting to DOUBLE
-select column_get(column_create(1, "1223.5555" AS double), 1 as double(5,2));
-column_get(column_create(1, "1223.5555" AS double), 1 as double(5,2))
-999.99
-Warnings:
-Warning 1264 Out of range value for column 'column_get(column_create(1, "1223.5555" AS double), 1 as double(5,2))' at row 1
-select column_get(column_create(1, "1223.5555" AS double), 1 as double(3,2));
-column_get(column_create(1, "1223.5555" AS double), 1 as double(3,2))
-9.99
-Warnings:
-Warning 1264 Out of range value for column 'column_get(column_create(1, "1223.5555" AS double), 1 as double(3,2))' at row 1
-#
-# column get decimal
-#
-select column_get(column_create(1, 1212.12 AS double), 1 as decimal);
-column_get(column_create(1, 1212.12 AS double), 1 as decimal)
-1212
-select column_get(column_create(1, 1212.12 AS double), 1 as decimal(6,2));
-column_get(column_create(1, 1212.12 AS double), 1 as decimal(6,2))
-1212.12
-explain extended
-select column_get(column_create(1, 1212.12 AS double), 1 as decimal);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select column_get(column_create(1,1212.12 AS double),1 as decimal(10,0)) AS `column_get(column_create(1, 1212.12 AS double), 1 as decimal)`
-explain extended
-select column_get(column_create(1, 1212.12 AS double), 1 as decimal(6,2));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select column_get(column_create(1,1212.12 AS double),1 as decimal(6,2)) AS `column_get(column_create(1, 1212.12 AS double), 1 as decimal(6,2))`
-select column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as decimal(20,0));
-column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as decimal(20,0))
-18446744073709551615
-select column_get(column_create(1, 9223372036854775807 AS int), 1 as decimal(32,0));
-column_get(column_create(1, 9223372036854775807 AS int), 1 as decimal(32,0))
-9223372036854775807
-select column_get(column_create(1, -9223372036854775808 AS int), 1 as decimal(32,0));
-column_get(column_create(1, -9223372036854775808 AS int), 1 as decimal(32,0))
--9223372036854775808
-select column_get(column_create(1, -99999999999999999999999999999 AS decimal), 1 as decimal(40,10));
-column_get(column_create(1, -99999999999999999999999999999 AS decimal), 1 as decimal(40,10))
--99999999999999999999999999999.0000000000
-select column_get(column_create(1, "2011-04-05" AS date), 1 as decimal(32,6));
-column_get(column_create(1, "2011-04-05" AS date), 1 as decimal(32,6))
-20110405.000000
-select column_get(column_create(1, "8:46:06.23434" AS time), 1 as decimal(32,6));
-column_get(column_create(1, "8:46:06.23434" AS time), 1 as decimal(32,6))
-84606.234340
-select column_get(column_create(1, "8:46:06.23434" AS time(6)), 1 as decimal(32,6));
-column_get(column_create(1, "8:46:06.23434" AS time(6)), 1 as decimal(32,6))
-84606.234340
-select column_get(column_create(1, "-808:46:06.23434" AS time(6)), 1 as decimal(32,6));
-column_get(column_create(1, "-808:46:06.23434" AS time(6)), 1 as decimal(32,6))
--8084606.234340
-select column_get(column_create(1, "2011-04-05 8:46:06.123456" AS datetime), 1 as decimal(32,6));
-column_get(column_create(1, "2011-04-05 8:46:06.123456" AS datetime), 1 as decimal(32,6))
-20110405084606.123456
-select column_get(column_create(1, "2011-04-05 8:46:06.123456" AS datetime(6)), 1 as decimal(32,6));
-column_get(column_create(1, "2011-04-05 8:46:06.123456" AS datetime(6)), 1 as decimal(32,6))
-20110405084606.123456
-select column_get(column_create(1, "2011-04-05 8:46:06.12345678" AS datetime(6)), 1 as decimal(32,8));
-column_get(column_create(1, "2011-04-05 8:46:06.12345678" AS datetime(6)), 1 as decimal(32,8))
-20110405084606.12345600
-Warnings:
-Note 1292 Truncated incorrect datetime value: '2011-04-05 8:46:06.12345678'
-select column_get(column_create(1, NULL as decimal), 1 as decimal(32,10));
-column_get(column_create(1, NULL as decimal), 1 as decimal(32,10))
-NULL
-select column_get(column_create(1, "1223.5555" as decimal(10,5)), 1 as decimal(6,2));
-column_get(column_create(1, "1223.5555" as decimal(10,5)), 1 as decimal(6,2))
-1223.56
-# column get decimal truncation & warnings
-select column_get(column_create(1, "1223.5aa" AS char), 1 as decimal(32,10));
-column_get(column_create(1, "1223.5aa" AS char), 1 as decimal(32,10))
-1223.5000000000
-Warnings:
-Warning 1918 Encountered illegal value '1223.5aa' when converting to DECIMAL
-select column_get(column_create(1, "aa" AS char), 1 as decimal(32,10));
-column_get(column_create(1, "aa" AS char), 1 as decimal(32,10))
-0.0000000000
-Warnings:
-Warning 1918 Encountered illegal value 'aa' when converting to DECIMAL
-select column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as decimal);
-column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as decimal)
-9999999999
-Warnings:
-Warning 1264 Out of range value for column 'column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as decimal)' at row 1
-select column_get(column_create(1, 9223372036854775807 AS int), 1 as decimal);
-column_get(column_create(1, 9223372036854775807 AS int), 1 as decimal)
-9999999999
-Warnings:
-Warning 1264 Out of range value for column 'column_get(column_create(1, 9223372036854775807 AS int), 1 as decimal)' at row 1
-select column_get(column_create(1, -9223372036854775808 AS int), 1 as decimal);
-column_get(column_create(1, -9223372036854775808 AS int), 1 as decimal)
--9999999999
-Warnings:
-Warning 1264 Out of range value for column 'column_get(column_create(1, -9223372036854775808 AS int), 1 as decimal)' at row 1
-select column_get(column_create(1, 99999999999999999999999999999 AS decimal(32,10)), 1 as decimal);
-column_get(column_create(1, 99999999999999999999999999999 AS decimal(32,10)), 1 as decimal)
-9999999999
-Warnings:
-Warning 1264 Out of range value for column 'column_get(column_create(1, 99999999999999999999999999999 AS decimal(32,10)), 1 as decimal)' at row 1
-select column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as decimal);
-column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as decimal)
-9999999999
-Warnings:
-Warning 1264 Out of range value for column 'column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as decimal)' at row 1
-select column_get(column_create(1, "1223.5555" as double), 1 as decimal(5,2));
-column_get(column_create(1, "1223.5555" as double), 1 as decimal(5,2))
-999.99
-Warnings:
-Warning 1264 Out of range value for column 'column_get(column_create(1, "1223.5555" as double), 1 as decimal(5,2))' at row 1
-select column_get(column_create(1, "-1223.5555" as double), 1 as decimal(5,2));
-column_get(column_create(1, "-1223.5555" as double), 1 as decimal(5,2))
--999.99
-Warnings:
-Warning 1264 Out of range value for column 'column_get(column_create(1, "-1223.5555" as double), 1 as decimal(5,2))' at row 1
-select column_get(column_create(1, "1223.5555" AS double), 1 as decimal(3,2));
-column_get(column_create(1, "1223.5555" AS double), 1 as decimal(3,2))
-9.99
-Warnings:
-Warning 1264 Out of range value for column 'column_get(column_create(1, "1223.5555" AS double), 1 as decimal(3,2))' at row 1
-select column_get(column_create(1, "1223.5555" AS decimal(10,5)), 1 as decimal(3,2));
-column_get(column_create(1, "1223.5555" AS decimal(10,5)), 1 as decimal(3,2))
-9.99
-Warnings:
-Warning 1264 Out of range value for column 'column_get(column_create(1, "1223.5555" AS decimal(10,5)), 1 as decimal(3,2))' at row 1
-select column_get(column_create(1, 0.0 AS decimal,2, 0.0 as decimal), 1 as decimal);
-column_get(column_create(1, 0.0 AS decimal,2, 0.0 as decimal), 1 as decimal)
-0
-#
-# column get datetime
-#
-select column_get(column_create(1, 20010203101112.121314 as double), 1 as datetime);
-column_get(column_create(1, 20010203101112.121314 as double), 1 as datetime)
-2001-02-03 10:11:12
-select column_get(column_create(1, 20010203101112.121314 as decimal), 1 as datetime);
-column_get(column_create(1, 20010203101112.121314 as decimal), 1 as datetime)
-2001-02-03 10:11:12
-select column_get(column_create(1, 20010203101112 as unsigned int), 1 as datetime);
-column_get(column_create(1, 20010203101112 as unsigned int), 1 as datetime)
-2001-02-03 10:11:12
-select column_get(column_create(1, 20010203101112 as int), 1 as datetime);
-column_get(column_create(1, 20010203101112 as int), 1 as datetime)
-2001-02-03 10:11:12
-select column_get(column_create(1, "20010203101112" as char), 1 as datetime);
-column_get(column_create(1, "20010203101112" as char), 1 as datetime)
-2001-02-03 10:11:12
-select column_get(column_create(1, "2001-02-03 10:11:12" as char), 1 as datetime);
-column_get(column_create(1, "2001-02-03 10:11:12" as char), 1 as datetime)
-2001-02-03 10:11:12
-select column_get(column_create(1, "2001-02-03 10:11:12.121314" as char), 1 as datetime);
-column_get(column_create(1, "2001-02-03 10:11:12.121314" as char), 1 as datetime)
-2001-02-03 10:11:12
-select column_get(column_create(1, "2001-02-03 10:11:12.121314"), 1 as datetime);
-column_get(column_create(1, "2001-02-03 10:11:12.121314"), 1 as datetime)
-2001-02-03 10:11:12
-select column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as datetime);
-column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as datetime)
-2011-04-05 08:46:06
-select column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as datetime(0));
-column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as datetime(0))
-2011-04-05 08:46:06
-select column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as datetime(6));
-column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as datetime(6))
-2011-04-05 08:46:06.234340
-select column_get(column_create(1, "2011-00-00 8:46:06.23434" AS CHAR), 1 as datetime);
-column_get(column_create(1, "2011-00-00 8:46:06.23434" AS CHAR), 1 as datetime)
-2011-00-00 08:46:06
-select column_get(column_create(1, "2011-00-01 8:46:06.23434" AS CHAR), 1 as datetime);
-column_get(column_create(1, "2011-00-01 8:46:06.23434" AS CHAR), 1 as datetime)
-2011-00-01 08:46:06
-select column_get(column_create(1, 20010203 as unsigned int), 1 as datetime);
-column_get(column_create(1, 20010203 as unsigned int), 1 as datetime)
-2001-02-03 00:00:00
-select column_get(column_create(1, 20010203 as int), 1 as datetime);
-column_get(column_create(1, 20010203 as int), 1 as datetime)
-2001-02-03 00:00:00
-select column_get(column_create(1, 20010203), 1 as datetime);
-column_get(column_create(1, 20010203), 1 as datetime)
-2001-02-03 00:00:00
-select column_get(column_create(1, 20010203.0), 1 as datetime);
-column_get(column_create(1, 20010203.0), 1 as datetime)
-2001-02-03 00:00:00
-select column_get(column_create(1, 20010203.0 as double), 1 as datetime);
-column_get(column_create(1, 20010203.0 as double), 1 as datetime)
-2001-02-03 00:00:00
-select column_get(column_create(1, "2001-02-03"), 1 as datetime);
-column_get(column_create(1, "2001-02-03"), 1 as datetime)
-2001-02-03 00:00:00
-select column_get(column_create(1, "20010203"), 1 as datetime);
-column_get(column_create(1, "20010203"), 1 as datetime)
-2001-02-03 00:00:00
-select column_get(column_create(1, 0), 1 as datetime);
-column_get(column_create(1, 0), 1 as datetime)
-0000-00-00 00:00:00
-select column_get(column_create(1, "2001021"), 1 as datetime);
-column_get(column_create(1, "2001021"), 1 as datetime)
-2020-01-02 01:00:00
-SET timestamp=unix_timestamp('2001-02-03 10:20:30');
-select column_get(column_create(1, "8:46:06.23434" AS time), 1 as datetime);
-column_get(column_create(1, "8:46:06.23434" AS time), 1 as datetime)
-2001-02-03 08:46:06
-select column_get(column_create(1, "-808:46:06.23434" AS time), 1 as datetime);
-column_get(column_create(1, "-808:46:06.23434" AS time), 1 as datetime)
-2000-12-31 07:13:53
-SET timestamp=DEFAULT;
-set @@sql_mode="allow_invalid_dates";
-select column_get(column_create(1, "2011-02-30 18:46:06.23434" AS CHAR), 1 as datetime);
-column_get(column_create(1, "2011-02-30 18:46:06.23434" AS CHAR), 1 as datetime)
-2011-02-30 18:46:06
-select column_get(column_create(1, "0000-00-000" AS CHAR), 1 as datetime);
-column_get(column_create(1, "0000-00-000" AS CHAR), 1 as datetime)
-0000-00-00 00:00:00
-select column_get(column_create(1, "2001-00-02" AS CHAR), 1 as datetime);
-column_get(column_create(1, "2001-00-02" AS CHAR), 1 as datetime)
-2001-00-02 00:00:00
-set @@sql_mode="";
-# column get datetime truncation & warnings
-select column_get(column_create(1, "1223.5aa" AS char), 1 as datetime);
-column_get(column_create(1, "1223.5aa" AS char), 1 as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '1223.5aa'
-select column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as datetime);
-column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '1.8446744073709552e19'
-select column_get(column_create(1, 9223372036854775807 AS int), 1 as datetime);
-column_get(column_create(1, 9223372036854775807 AS int), 1 as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '9223372036854775807'
-select column_get(column_create(1, -9223372036854775808 AS int), 1 as datetime);
-column_get(column_create(1, -9223372036854775808 AS int), 1 as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '-9223372036854775808'
-select column_get(column_create(1, 99999999999999999999999999999 AS decimal(32,10)), 1 as datetime);
-column_get(column_create(1, 99999999999999999999999999999 AS decimal(32,10)), 1 as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '99999999999999999999999999999'
-select column_get(column_create(1, 99999999999999999999999999999 AS double), 1 as datetime);
-column_get(column_create(1, 99999999999999999999999999999 AS double), 1 as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '1e29'
-select column_get(column_create(1, "2011-02-32 8:46:06.23434" AS CHAR), 1 as datetime);
-column_get(column_create(1, "2011-02-32 8:46:06.23434" AS CHAR), 1 as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2011-02-32 8:46:06.23434'
-select column_get(column_create(1, "2011-13-01 8:46:06.23434" AS CHAR), 1 as datetime);
-column_get(column_create(1, "2011-13-01 8:46:06.23434" AS CHAR), 1 as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2011-13-01 8:46:06.23434'
-select column_get(column_create(1, "2011-02-30 8:46:06.23434" AS CHAR), 1 as datetime);
-column_get(column_create(1, "2011-02-30 8:46:06.23434" AS CHAR), 1 as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2011-02-30 8:46:06.23434'
-select column_get(column_create(1, "20010231"), 1 as datetime);
-column_get(column_create(1, "20010231"), 1 as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '20010231'
-select column_get(column_create(1, "0" AS CHAR), 1 as datetime);
-column_get(column_create(1, "0" AS CHAR), 1 as datetime)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0'
-#
-# column get date
-#
-select column_get(column_create(1, 20010203101112.121314 as double), 1 as date);
-column_get(column_create(1, 20010203101112.121314 as double), 1 as date)
-2001-02-03
-select column_get(column_create(1, 20010203101112.121314 as decimal), 1 as date);
-column_get(column_create(1, 20010203101112.121314 as decimal), 1 as date)
-2001-02-03
-select column_get(column_create(1, 20010203101112 as unsigned int), 1 as date);
-column_get(column_create(1, 20010203101112 as unsigned int), 1 as date)
-2001-02-03
-select column_get(column_create(1, 20010203101112 as int), 1 as date);
-column_get(column_create(1, 20010203101112 as int), 1 as date)
-2001-02-03
-select column_get(column_create(1, "20010203101112" as char), 1 as date);
-column_get(column_create(1, "20010203101112" as char), 1 as date)
-2001-02-03
-select column_get(column_create(1, "2001-02-03 10:11:12" as char), 1 as date);
-column_get(column_create(1, "2001-02-03 10:11:12" as char), 1 as date)
-2001-02-03
-select column_get(column_create(1, "2001-02-03 10:11:12.121314" as char), 1 as date);
-column_get(column_create(1, "2001-02-03 10:11:12.121314" as char), 1 as date)
-2001-02-03
-select column_get(column_create(1, "2001-02-03 10:11:12.121314"), 1 as date);
-column_get(column_create(1, "2001-02-03 10:11:12.121314"), 1 as date)
-2001-02-03
-select column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as date);
-column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as date)
-2011-04-05
-select column_get(column_create(1, "2011-00-00 8:46:06.23434" AS CHAR), 1 as date);
-column_get(column_create(1, "2011-00-00 8:46:06.23434" AS CHAR), 1 as date)
-2011-00-00
-select column_get(column_create(1, "2011-00-01 8:46:06.23434" AS CHAR), 1 as date);
-column_get(column_create(1, "2011-00-01 8:46:06.23434" AS CHAR), 1 as date)
-2011-00-01
-select column_get(column_create(1, 20010203 as unsigned int), 1 as date);
-column_get(column_create(1, 20010203 as unsigned int), 1 as date)
-2001-02-03
-select column_get(column_create(1, 20010203 as int), 1 as date);
-column_get(column_create(1, 20010203 as int), 1 as date)
-2001-02-03
-select column_get(column_create(1, 20010203), 1 as date);
-column_get(column_create(1, 20010203), 1 as date)
-2001-02-03
-select column_get(column_create(1, 20010203.0), 1 as date);
-column_get(column_create(1, 20010203.0), 1 as date)
-2001-02-03
-select column_get(column_create(1, 20010203.0 as double), 1 as date);
-column_get(column_create(1, 20010203.0 as double), 1 as date)
-2001-02-03
-select column_get(column_create(1, "2001-02-03"), 1 as date);
-column_get(column_create(1, "2001-02-03"), 1 as date)
-2001-02-03
-select column_get(column_create(1, "20010203"), 1 as date);
-column_get(column_create(1, "20010203"), 1 as date)
-2001-02-03
-select column_get(column_create(1, 0), 1 as date);
-column_get(column_create(1, 0), 1 as date)
-0000-00-00
-select column_get(column_create(1, "2001021"), 1 as date);
-column_get(column_create(1, "2001021"), 1 as date)
-2020-01-02
-set @@sql_mode="allow_invalid_dates";
-select column_get(column_create(1, "2011-02-30 18:46:06.23434" AS CHAR), 1 as date);
-column_get(column_create(1, "2011-02-30 18:46:06.23434" AS CHAR), 1 as date)
-2011-02-30
-select column_get(column_create(1, "0000-00-000" AS CHAR), 1 as date);
-column_get(column_create(1, "0000-00-000" AS CHAR), 1 as date)
-0000-00-00
-select column_get(column_create(1, "2001-00-02" AS CHAR), 1 as date);
-column_get(column_create(1, "2001-00-02" AS CHAR), 1 as date)
-2001-00-02
-set @@sql_mode="";
-# column get date truncation & warnings
-select column_get(column_create(1, "1223.5aa" AS char), 1 as date);
-column_get(column_create(1, "1223.5aa" AS char), 1 as date)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '1223.5aa'
-select column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as date);
-column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as date)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '1.8446744073709552e19'
-select column_get(column_create(1, 9223372036854775807 AS int), 1 as date);
-column_get(column_create(1, 9223372036854775807 AS int), 1 as date)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '9223372036854775807'
-select column_get(column_create(1, -9223372036854775808 AS int), 1 as date);
-column_get(column_create(1, -9223372036854775808 AS int), 1 as date)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '-9223372036854775808'
-select column_get(column_create(1, 99999999999999999999999999999 AS decimal(32,10)), 1 as date);
-column_get(column_create(1, 99999999999999999999999999999 AS decimal(32,10)), 1 as date)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '99999999999999999999999999999'
-select column_get(column_create(1, 99999999999999999999999999999 AS double), 1 as date);
-column_get(column_create(1, 99999999999999999999999999999 AS double), 1 as date)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '1e29'
-select column_get(column_create(1, "2011-02-32 8:46:06.23434" AS CHAR), 1 as date);
-column_get(column_create(1, "2011-02-32 8:46:06.23434" AS CHAR), 1 as date)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2011-02-32 8:46:06.23434'
-select column_get(column_create(1, "2011-13-01 8:46:06.23434" AS CHAR), 1 as date);
-column_get(column_create(1, "2011-13-01 8:46:06.23434" AS CHAR), 1 as date)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2011-13-01 8:46:06.23434'
-select column_get(column_create(1, "2011-02-30 8:46:06.23434" AS CHAR), 1 as date);
-column_get(column_create(1, "2011-02-30 8:46:06.23434" AS CHAR), 1 as date)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2011-02-30 8:46:06.23434'
-select column_get(column_create(1, "20010231"), 1 as date);
-column_get(column_create(1, "20010231"), 1 as date)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '20010231'
-select column_get(column_create(1, "0" AS CHAR), 1 as date);
-column_get(column_create(1, "0" AS CHAR), 1 as date)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0'
-#
-# column get time
-#
-select column_get(column_create(1, 20010203101112.121314 as double), 1 as time);
-column_get(column_create(1, 20010203101112.121314 as double), 1 as time)
-10:11:12
-select column_get(column_create(1, 20010203101112.121314 as decimal), 1 as time);
-column_get(column_create(1, 20010203101112.121314 as decimal), 1 as time)
-10:11:12
-select column_get(column_create(1, 20010203101112 as unsigned int), 1 as time);
-column_get(column_create(1, 20010203101112 as unsigned int), 1 as time)
-10:11:12
-select column_get(column_create(1, 8080102 as unsigned int), 1 as time);
-column_get(column_create(1, 8080102 as unsigned int), 1 as time)
-808:01:02
-select column_get(column_create(1, 20010203101112 as int), 1 as time);
-column_get(column_create(1, 20010203101112 as int), 1 as time)
-10:11:12
-select column_get(column_create(1, -8080102 as int), 1 as time);
-column_get(column_create(1, -8080102 as int), 1 as time)
--808:01:02
-select column_get(column_create(1, "20010203101112" as char), 1 as time);
-column_get(column_create(1, "20010203101112" as char), 1 as time)
-10:11:12
-select column_get(column_create(1, "2001-02-03 10:11:12" as char), 1 as time);
-column_get(column_create(1, "2001-02-03 10:11:12" as char), 1 as time)
-10:11:12
-select column_get(column_create(1, "2001-02-03 10:11:12.121314" as char), 1 as time);
-column_get(column_create(1, "2001-02-03 10:11:12.121314" as char), 1 as time)
-10:11:12
-select column_get(column_create(1, "2001-02-03 10:11:12.121314" as char), 1 as time(6));
-column_get(column_create(1, "2001-02-03 10:11:12.121314" as char), 1 as time(6))
-10:11:12.121314
-select column_get(column_create(1, "2001-02-03 10:11:12.121314"), 1 as time);
-column_get(column_create(1, "2001-02-03 10:11:12.121314"), 1 as time)
-10:11:12
-select column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as time(6));
-column_get(column_create(1, "2011-04-05 8:46:06.23434" AS datetime), 1 as time(6))
-08:46:06.234340
-select column_get(column_create(1, "2011-00-00 8:46:06.23434" AS CHAR), 1 as time(6));
-column_get(column_create(1, "2011-00-00 8:46:06.23434" AS CHAR), 1 as time(6))
-08:46:06.234340
-select column_get(column_create(1, "2011-00-01 8:46:06.23434" AS CHAR), 1 as time(6));
-column_get(column_create(1, "2011-00-01 8:46:06.23434" AS CHAR), 1 as time(6))
-08:46:06.234340
-select column_get(column_create(1, "830:46:06.23434" AS CHAR), 1 as time(6));
-column_get(column_create(1, "830:46:06.23434" AS CHAR), 1 as time(6))
-830:46:06.234340
-select column_get(column_create(1, "830:46:06" AS CHAR), 1 as time(6));
-column_get(column_create(1, "830:46:06" AS CHAR), 1 as time(6))
-830:46:06.000000
-select cast("-830:46:06.23434" AS time(6));
-cast("-830:46:06.23434" AS time(6))
--830:46:06.234340
-select 1,cast("-830:46:06.23434" AS time(6));
-1 cast("-830:46:06.23434" AS time(6))
-1 -830:46:06.234340
-select hex(column_create(1, "-830:46:06.23434" AS CHAR));
-hex(column_create(1, "-830:46:06.23434" AS CHAR))
-000100010003082D3833303A34363A30362E3233343334
-select column_get(column_create(1, "-830:46:06.23434" AS CHAR), 1 as time(6));
-column_get(column_create(1, "-830:46:06.23434" AS CHAR), 1 as time(6))
--830:46:06.234340
-select column_get(column_create(1, "0" AS CHAR), 1 as time);
-column_get(column_create(1, "0" AS CHAR), 1 as time)
-00:00:00
-select column_get(column_create(1, "6" AS CHAR), 1 as time);
-column_get(column_create(1, "6" AS CHAR), 1 as time)
-00:00:06
-select column_get(column_create(1, "1:6" AS CHAR), 1 as time);
-column_get(column_create(1, "1:6" AS CHAR), 1 as time)
-01:06:00
-select column_get(column_create(1, "2:1:6" AS CHAR), 1 as time);
-column_get(column_create(1, "2:1:6" AS CHAR), 1 as time)
-02:01:06
-select column_get(column_create(1, 0), 1 as time);
-column_get(column_create(1, 0), 1 as time)
-00:00:00
-select column_get(column_create(1, "2001021"), 1 as time);
-column_get(column_create(1, "2001021"), 1 as time)
-200:10:21
-set @@sql_mode="allow_invalid_dates";
-select column_get(column_create(1, "2011-02-30 18:46:06.23434" AS CHAR), 1 as time);
-column_get(column_create(1, "2011-02-30 18:46:06.23434" AS CHAR), 1 as time)
-18:46:06
-set @@sql_mode="";
-# column get date truncation & warnings
-select column_get(column_create(1, "1223.5aa" AS char), 1 as time);
-column_get(column_create(1, "1223.5aa" AS char), 1 as time)
-00:12:23
-Warnings:
-Warning 1292 Truncated incorrect time value: '1223.5aa'
-select column_get(column_create(1, "1223.5aa" AS char), 1 as time(3));
-column_get(column_create(1, "1223.5aa" AS char), 1 as time(3))
-00:12:23.500
-Warnings:
-Warning 1292 Truncated incorrect time value: '1223.5aa'
-select column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as time);
-column_get(column_create(1, 18446744073709551615 AS unsigned int), 1 as time)
-838:59:59
-Warnings:
-Warning 1292 Truncated incorrect time value: '1.8446744073709552e19'
-select column_get(column_create(1, 9223372036854775807 AS int), 1 as time);
-column_get(column_create(1, 9223372036854775807 AS int), 1 as time)
-838:59:59
-Warnings:
-Warning 1292 Truncated incorrect time value: '9223372036854775807'
-select column_get(column_create(1, -9223372036854775808 AS int), 1 as time);
-column_get(column_create(1, -9223372036854775808 AS int), 1 as time)
--838:59:59
-Warnings:
-Warning 1292 Truncated incorrect time value: '-9223372036854775808'
-select column_get(column_create(1, 99999999999999999999999999999 AS decimal(32,10)), 1 as time);
-column_get(column_create(1, 99999999999999999999999999999 AS decimal(32,10)), 1 as time)
-838:59:59
-Warnings:
-Warning 1292 Truncated incorrect time value: '99999999999999999999999999999'
-select column_get(column_create(1, 99999999999999999999999999999 AS double), 1 as time);
-column_get(column_create(1, 99999999999999999999999999999 AS double), 1 as time)
-838:59:59
-Warnings:
-Warning 1292 Truncated incorrect time value: '1e29'
-select column_get(column_create(1, "2011-02-32 8:46:06.23434" AS CHAR), 1 as time);
-column_get(column_create(1, "2011-02-32 8:46:06.23434" AS CHAR), 1 as time)
-NULL
-Warnings:
-Warning 1292 Truncated incorrect time value: '2011-02-32 8:46:06.23434'
-select column_get(column_create(1, "2011-13-01 8:46:06.23434" AS CHAR), 1 as time);
-column_get(column_create(1, "2011-13-01 8:46:06.23434" AS CHAR), 1 as time)
-NULL
-Warnings:
-Warning 1292 Truncated incorrect time value: '2011-13-01 8:46:06.23434'
-select column_get(column_create(1, "2011-02-30 8:46:06.23434" AS CHAR), 1 as time);
-column_get(column_create(1, "2011-02-30 8:46:06.23434" AS CHAR), 1 as time)
-08:46:06
-select column_get(column_create(1, "2001-02-03"), 1 as time);
-column_get(column_create(1, "2001-02-03"), 1 as time)
-00:20:01
-Warnings:
-Warning 1292 Truncated incorrect time value: '2001-02-03'
-select column_get(column_create(1, "20010203"), 1 as time);
-column_get(column_create(1, "20010203"), 1 as time)
-838:59:59
-Warnings:
-Warning 1292 Truncated incorrect time value: '20010203'
-# column add
-select hex(column_add(column_create(1, 1212 as integer), 2, 1212 as integer));
-hex(column_add(column_create(1, 1212 as integer), 2, 1212 as integer))
-00020001000002001078097809
-select hex(column_add(column_create(1, 1212 as integer), 1, 1212 as integer));
-hex(column_add(column_create(1, 1212 as integer), 1, 1212 as integer))
-0001000100007809
-select hex(column_add(column_create(1, 1212 as integer), 1, NULL as integer));
-hex(column_add(column_create(1, 1212 as integer), 1, NULL as integer))
-000000
-select hex(column_add(column_create(1, 1212 as integer), 2, NULL as integer));
-hex(column_add(column_create(1, 1212 as integer), 2, NULL as integer))
-0001000100007809
-select hex(column_add(column_create(1, 1212 as integer), 2, 1212 as integer, 1, 11 as integer));
-hex(column_add(column_create(1, 1212 as integer), 2, 1212 as integer, 1, 11 as integer))
-000200010000020008167809
-select column_get(column_add(column_create(1, 1212 as integer), 2, 1212 as integer, 1, 11 as integer), 1 as integer);
-column_get(column_add(column_create(1, 1212 as integer), 2, 1212 as integer, 1, 11 as integer), 1 as integer)
-11
-select column_get(column_add(column_create(1, 1212 as integer), 2, 1212 as integer, 1, 11 as integer), 2 as integer);
-column_get(column_add(column_create(1, 1212 as integer), 2, 1212 as integer, 1, 11 as integer), 2 as integer)
-1212
-select hex(column_add(column_create(1, 1212 as integer), 1, 1212 as integer, 2, 11 as integer));
-hex(column_add(column_create(1, 1212 as integer), 1, 1212 as integer, 2, 11 as integer))
-000200010000020010780916
-select hex(column_add(column_create(1, NULL as integer), 1, 1212 as integer, 2, 11 as integer));
-hex(column_add(column_create(1, NULL as integer), 1, 1212 as integer, 2, 11 as integer))
-000200010000020010780916
-select hex(column_add(column_create(1, 1212 as integer, 2, 1212 as integer), 1, 11 as integer));
-hex(column_add(column_create(1, 1212 as integer, 2, 1212 as integer), 1, 11 as integer))
-000200010000020008167809
-select hex(column_add(column_create(1, 1), 1, null));
-hex(column_add(column_create(1, 1), 1, null))
-000000
-select column_list(column_add(column_create(1, 1), 1, null));
-column_list(column_add(column_create(1, 1), 1, null))
-
-select column_list(column_add(column_create(1, 1), 1, ""));
-column_list(column_add(column_create(1, 1), 1, ""))
-`1`
-select hex(column_add("", 1, 1));
-hex(column_add("", 1, 1))
-00010001000002
-# column delete
-select hex(column_delete(column_create(1, 1212 as integer, 2, 1212 as integer), 1));
-hex(column_delete(column_create(1, 1212 as integer, 2, 1212 as integer), 1))
-0001000200007809
-select hex(column_delete(column_create(1, 1 as integer, 2, 2 as integer, 3, 3 as integer), 2));
-hex(column_delete(column_create(1, 1 as integer, 2, 2 as integer, 3, 3 as integer), 2))
-0002000100000300080206
-select hex(column_delete(column_create(1, 1 as integer, 2, 2 as integer, 3, 3 as integer), 3));
-hex(column_delete(column_create(1, 1 as integer, 2, 2 as integer, 3, 3 as integer), 3))
-0002000100000200080204
-select hex(column_delete(column_create(1, 1 as integer, 2, 2 as integer, 3, 3 as integer), 4));
-hex(column_delete(column_create(1, 1 as integer, 2, 2 as integer, 3, 3 as integer), 4))
-000300010000020008030010020406
-select hex(column_delete(column_create(1, 1 as integer, 2, 2 as integer, 3, 3 as integer), 2, 1));
-hex(column_delete(column_create(1, 1 as integer, 2, 2 as integer, 3, 3 as integer), 2, 1))
-00010003000006
-select hex(column_delete(column_create(1, 1 as integer, 2, 2 as integer, 3, 3 as integer), 2, 3));
-hex(column_delete(column_create(1, 1 as integer, 2, 2 as integer, 3, 3 as integer), 2, 3))
-00010001000002
-select hex(column_delete(column_create(1, 1 as integer, 2, 2 as integer, 3, 3 as integer), 1, 2, 3));
-hex(column_delete(column_create(1, 1 as integer, 2, 2 as integer, 3, 3 as integer), 1, 2, 3))
-000000
-select hex(column_delete(column_create(1, 1 as integer, 2, 2 as integer, 3, 3 as integer), 1, 2, 3, 10));
-hex(column_delete(column_create(1, 1 as integer, 2, 2 as integer, 3, 3 as integer), 1, 2, 3, 10))
-000000
-select hex(column_delete(column_create(1, 1), 1));
-hex(column_delete(column_create(1, 1), 1))
-000000
-select hex(column_delete("", 1));
-hex(column_delete("", 1))
-
-# column exists
-select column_exists(column_create(1, 1212 as integer, 2, 1212 as integer), 1);
-column_exists(column_create(1, 1212 as integer, 2, 1212 as integer), 1)
-1
-select column_exists(column_create(1, 1212 as integer, 2, 1212 as integer), 4);
-column_exists(column_create(1, 1212 as integer, 2, 1212 as integer), 4)
-0
-# column list
-select column_list(column_create(1, 1212 as integer, 2, 1212 as integer));
-column_list(column_create(1, 1212 as integer, 2, 1212 as integer))
-`1`,`2`
-select column_list(column_create(1, 1212 as integer));
-column_list(column_create(1, 1212 as integer))
-`1`
-select column_list(column_create(1, NULL as integer));
-column_list(column_create(1, NULL as integer))
-
-#
-# check error handling
-#
-select HEX(COLUMN_CREATE(1, 5, 1, 5));
-ERROR 22007: Illegal value used as argument of dynamic column function
-select HEX(COLUMN_CREATE("", 1, 5, 1, 5));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '))' at line 1
-select COLUMN_LIST("a");
-ERROR HY000: Encountered illegal format of dynamic column string
-select column_delete("a", 1);
-ERROR HY000: Encountered illegal format of dynamic column string
-select hex(column_delete("", 1));
-hex(column_delete("", 1))
-
-select hex(column_delete("", -1));
-ERROR 22007: Illegal value used as argument of dynamic column function
-select hex(column_create(-1, 1));
-ERROR 22007: Illegal value used as argument of dynamic column function
-select hex(column_create(65536, 1));
-ERROR 22007: Illegal value used as argument of dynamic column function
-select hex(column_add("", -1, 1));
-ERROR 22007: Illegal value used as argument of dynamic column function
-select hex(column_add("", 65536, 1));
-ERROR 22007: Illegal value used as argument of dynamic column function
-select hex(column_get("", -1 as int));
-hex(column_get("", -1 as int))
-NULL
-#
-# Test with table
-#
-create table t1 (id int primary key, str mediumblob);
-insert into t1 values (1, ''), (2, ''), (3, ''), (4, ''), (5, null);
-select id, str, column_get(str, 1 as int) from t1;
-id str column_get(str, 1 as int)
-1 NULL
-2 NULL
-3 NULL
-4 NULL
-5 NULL NULL
-update t1 set str=column_create(1, id, 2, "a") where id < 3;
-update t1 set str=column_add(str, 1, id, 2, "b") where id >= 4;
-select id, column_get(str, 1 as int), column_get(str, 2 as char) from t1 where column_exists(str,1) or column_exists(str,2);
-id column_get(str, 1 as int) column_get(str, 2 as char)
-1 1 a
-2 2 a
-4 4 b
-update t1 set str=column_create(1, id, 10, "test") where id = 5;
-insert into t1 values (6, column_create(10, "test2"));
-update t1 set str=column_add(str, 2, 'c', 1, column_get(str, 1 as int) + 1, 3, 100) where id > 2;
-select id, length(str), column_get(str, 1 as int), column_get(str, 2 as char), column_get(str, 3 as int) from t1;
-id length(str) column_get(str, 1 as int) column_get(str, 2 as char) column_get(str, 3 as int)
-1 12 1 a NULL
-2 12 2 a NULL
-3 12 NULL c 100
-4 16 5 c 100
-5 24 6 c 100
-6 21 NULL c 100
-select column_get(str, 2 as char), sum(column_get(str, 1 as int)) from t1 group by column_get(str, 2 as char);
-column_get(str, 2 as char) sum(column_get(str, 1 as int))
-a 3
-c 11
-select column_get(str, 2 as char), sum(column_get(str, 1 as int)) from t1 where column_exists(str, 2) <> 0 group by 1;
-column_get(str, 2 as char) sum(column_get(str, 1 as int))
-a 3
-c 11
-select sum(column_get(str, 1 as int)) from t1 group by column_get(str, 2 as char) order by sum(column_get(str, 1 as int)) desc;
-sum(column_get(str, 1 as int))
-11
-3
-select sum(column_get(str, 1 as int)) from t1 group by column_get(str, 2 as char) having sum(column_get(str, 1 as int)) > 2;
-sum(column_get(str, 1 as int))
-3
-11
-select sum(column_get(str, 1 as int)) from t1 where column_get(str, 3 as int) > 50 group by column_get(str, 2 as char);
-sum(column_get(str, 1 as int))
-11
-select id, column_list(str) from t1 where id= 5;
-id column_list(str)
-5 `1`,`2`,`3`,`10`
-update t1 set str=column_delete(str, 3, 4, 2) where id= 5;
-select id, length(str), column_list(str), column_get(str, 1 as int), column_get(str, 2 as char), column_get(str, 3 as int) from t1;
-id length(str) column_list(str) column_get(str, 1 as int) column_get(str, 2 as char) column_get(str, 3 as int)
-1 12 `1`,`2` 1 a NULL
-2 12 `1`,`2` 2 a NULL
-3 12 `2`,`3` NULL c 100
-4 16 `1`,`2`,`3` 5 c 100
-5 15 `1`,`10` 6 NULL NULL
-6 21 `2`,`3`,`10` NULL c 100
-update t1 set str=column_add(str, 4, 45 as char, 2, 'c') where id= 5;
-select id, length(str), column_list(str), column_get(str, 1 as int), column_get(str, 2 as char), column_get(str, 3 as int) from t1 where id = 5;
-id length(str) column_list(str) column_get(str, 1 as int) column_get(str, 2 as char) column_get(str, 3 as int)
-5 26 `1`,`2`,`4`,`10` 6 c NULL
-select id, length(str), column_list(str), column_exists(str, 4) from t1;
-id length(str) column_list(str) column_exists(str, 4)
-1 12 `1`,`2` 0
-2 12 `1`,`2` 0
-3 12 `2`,`3` 0
-4 16 `1`,`2`,`3` 0
-5 26 `1`,`2`,`4`,`10` 1
-6 21 `2`,`3`,`10` 0
-select sum(column_get(str, 1 as int)), column_list(str) from t1 group by 2;
-sum(column_get(str, 1 as int)) column_list(str)
-3 `1`,`2`
-5 `1`,`2`,`3`
-6 `1`,`2`,`4`,`10`
-NULL `2`,`3`
-NULL `2`,`3`,`10`
-select id, hex(str) from t1;
-id hex(str)
-1 00020001000002000B020861
-2 00020001000002000B040861
-3 0002000200030300100863C8
-4 00030001000002000B0300180A0863C8
-5 00040001000002000B04001B0A00330C08630834350874657374
-6 0003000200030300100A001B0863C8087465737432
-update t1 set str=column_add(str, 4, repeat("a", 100000)) where id=5;
-select id from t1 where column_get(str,4 as char(100000)) = repeat("a", 100000);
-id
-5
-select id from t1 where column_get(str,4 as char(100)) = repeat("a", 100);
-id
-5
-Warnings:
-Warning 1292 Truncated incorrect CHAR(100) value: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
-update t1 set str=column_add(str, 4, repeat("b", 10000)) where id=5;
-select id from t1 where column_get(str,4 as char(100000)) = repeat("b", 10000);
-id
-5
-update t1 set str=column_add(str, 4, repeat("c", 100)) where id=5;
-select id from t1 where column_get(str,4 as char(100000)) = repeat("c", 100);
-id
-5
-update t1 set str=column_add(str, 4, repeat("d", 10000)) where id=5;
-select id from t1 where column_get(str,4 as char(100000)) = repeat("d", 10000);
-id
-5
-update t1 set str=column_add(str, 4, repeat("e", 10), 5, repeat("f", 100000)) where id=5;
-select id from t1 where column_get(str,5 as char(100000)) = repeat("f", 100000);
-id
-5
-select id, column_list(str), length(str) from t1 where id=5;
-id column_list(str) length(str)
-5 `1`,`2`,`4`,`5`,`10` 100048
-update t1 set str=column_delete(str, 5) where id=5;
-select id, column_list(str), length(str) from t1 where id=5;
-id column_list(str) length(str)
-5 `1`,`2`,`4`,`10` 34
-drop table t1;
-#
-# LP#778905: Assertion `value->year <= 9999' failed in
-# dynamic_column_date_store
-#
-SELECT COLUMN_GET( 'a' , 2 AS DATE );
-ERROR HY000: Encountered illegal format of dynamic column string
-SELECT COLUMN_CREATE( 1 , COLUMN_GET( 'a' , 2 AS DATE ) );
-ERROR HY000: Encountered illegal format of dynamic column string
-#
-# LP#778912: Assertion `field_pos < field_count' failed in
-# Protocol_text::store in maria-5.3-mwl34
-#
-CREATE TABLE t1 ( f1 blob );
-INSERT INTO t1 VALUES (NULL);
-INSERT INTO t1 SET f1 = COLUMN_CREATE( 2 , 'cde' );
-SELECT HEX(COLUMN_ADD(f1, 1, 'abc')), COLUMN_LIST(f1) FROM t1;
-HEX(COLUMN_ADD(f1, 1, 'abc')) COLUMN_LIST(f1)
-NULL NULL
-0002000100030200230861626308636465 `2`
-SELECT COLUMN_ADD(f1, 1, 'abc'), COLUMN_LIST(f1) FROM t1;
-DROP TABLE t1;
-#
-# Some dynamic strings that caused crashes in the past
-#
-set @a=0x0102000200030004000F0D086B74697A6A7176746F6B687563726A746E7A746A666163726C6F7A6B62636B6B756B666779666977617369796F67756C726D62677A72756E63626D78636D7077706A6F736C6D636464696770786B6371637A6A6A6463737A6A676879716462637178646C666E6B6C726A637677696E7271746C616D646368687A6C707869786D666F666261797470616A63797673737A796D74747475666B717573687A79696E7276706F796A6E767361796A6F6D646F6378677A667074746363736A796D67746C786F697873686464616265616A7A6F7168707A6B776B6376737A6B72666C6F666C69636163686F6B666D627166786A71616F;
-select column_add(@a, 3, "a");
-ERROR HY000: Encountered illegal format of dynamic column string
-#
-# LP#781233 mysqld: decimal.c:1459: decimal_bin_size:
-# Assertion `scale >= 0 && precision > 0 && scale <= precision' ...
-#
-set @a=0x00020008000009000C2C010080;
-select COLUMN_GET(@a, 9 AS DECIMAL);
-COLUMN_GET(@a, 9 AS DECIMAL)
-0
-select hex(COLUMN_CREATE(0, COLUMN_GET(@a, 9 AS DECIMAL)));
-hex(COLUMN_CREATE(0, COLUMN_GET(@a, 9 AS DECIMAL)))
-000100000004
-select hex(COLUMN_CREATE(0, COLUMN_GET(@a, 9 AS DECIMAL(19,0))));
-hex(COLUMN_CREATE(0, COLUMN_GET(@a, 9 AS DECIMAL(19,0))))
-000100000004
-select hex(COLUMN_CREATE(0, COLUMN_GET(COLUMN_CREATE(0, 0.0 as decimal), 0 as decimal)));
-hex(COLUMN_CREATE(0, COLUMN_GET(COLUMN_CREATE(0, 0.0 as decimal), 0 as decimal)))
-000100000004
-select hex(COLUMN_CREATE(0, 0.0 as decimal));
-hex(COLUMN_CREATE(0, 0.0 as decimal))
-000100000004
-#
-# MDEV-4292: parse error when selecting on views using dynamic column
-#
-create table t1 (i int, d blob);
-create view v1 as select i, column_get(d, 1 as binary) as a from t1;
-select * from v1;
-i a
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i`,column_get(`t1`.`d`,1 as char charset binary) AS `a` from `t1` latin1 latin1_swedish_ci
-drop view v1;
-create view v1 as select i, column_get(d, 1 as int) as a from t1;
-select * from v1;
-i a
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i`,column_get(`t1`.`d`,1 as signed) AS `a` from `t1` latin1 latin1_swedish_ci
-drop view v1;
-create view v1 as select i, column_get(d, 1 as unsigned int) as a from t1;
-select * from v1;
-i a
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i`,column_get(`t1`.`d`,1 as unsigned) AS `a` from `t1` latin1 latin1_swedish_ci
-drop view v1;
-create view v1 as select i, column_get(d, 1 as date) as a from t1;
-select * from v1;
-i a
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i`,column_get(`t1`.`d`,1 as date) AS `a` from `t1` latin1 latin1_swedish_ci
-drop view v1;
-create view v1 as select i, column_get(d, 1 as time) as a from t1;
-select * from v1;
-i a
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i`,column_get(`t1`.`d`,1 as time) AS `a` from `t1` latin1 latin1_swedish_ci
-drop view v1;
-create view v1 as select i, column_get(d, 1 as datetime) as a from t1;
-select * from v1;
-i a
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i`,column_get(`t1`.`d`,1 as datetime) AS `a` from `t1` latin1 latin1_swedish_ci
-drop view v1;
-create view v1 as select i, column_get(d, 1 as decimal) as a from t1;
-select * from v1;
-i a
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i`,column_get(`t1`.`d`,1 as decimal(10,0)) AS `a` from `t1` latin1 latin1_swedish_ci
-drop view v1;
-create view v1 as select i, column_get(d, 1 as double) as a from t1;
-select * from v1;
-i a
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i`,column_get(`t1`.`d`,1 as double) AS `a` from `t1` latin1 latin1_swedish_ci
-drop view v1;
-create view v1 as select i, column_get(d, 1 as char) as a from t1;
-select * from v1;
-i a
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i`,column_get(`t1`.`d`,1 as char charset latin1) AS `a` from `t1` latin1 latin1_swedish_ci
-drop view v1;
-drop table t1;
-#
-# MDEV-4811: Assertion `offset < 0x1f' fails in type_and_offset_store
-# on COLUMN_ADD
-#
-CREATE TABLE t1 (dyn TINYBLOB) ENGINE=MyISAM;
-INSERT INTO t1 SET dyn = COLUMN_CREATE( 40, REPEAT('a', 233), 4, REPEAT('b', 322) );
-Warnings:
-Warning 1265 Data truncated for column 'dyn' at row 1
-SELECT COLUMN_ADD( dyn, 6, REPEAT('x',80), 4, REPEAT('y',215) AS INTEGER ) FROM t1;
-ERROR HY000: Encountered illegal format of dynamic column string
-delete from t1;
-#above test with 10.0 format
-INSERT INTO t1 SET dyn = COLUMN_CREATE( 'a', REPEAT('a', 250), 'b', REPEAT('b', 322) );
-Warnings:
-Warning 1265 Data truncated for column 'dyn' at row 1
-SELECT COLUMN_ADD( dyn, 'c', REPEAT('x',80), 'b', REPEAT('y',215) AS INTEGER ) FROM t1;
-ERROR HY000: Encountered illegal format of dynamic column string
-DROP table t1;
-#
-# MDEV-4812: Valgrind warnings (Invalid write) in
-# dynamic_column_update_many on COLUMN_ADD
-#
-CREATE TABLE t1 (dyncol TINYBLOB) ENGINE=MyISAM;
-INSERT INTO t1 SET dyncol = COLUMN_CREATE( 7, REPEAT('k',487), 209, REPEAT('x',464) );
-Warnings:
-Warning 1265 Data truncated for column 'dyncol' at row 1
-SELECT COLUMN_ADD( dyncol, 7, '22:22:22', 8, REPEAT('x',270) AS CHAR ) FROM t1;
-delete from t1;
-INSERT INTO t1 SET dyncol = COLUMN_CREATE( 'a', REPEAT('k',487), 'b', REPEAT('x',464) );
-Warnings:
-Warning 1265 Data truncated for column 'dyncol' at row 1
-SELECT COLUMN_ADD( dyncol, 'a', '22:22:22', 'c', REPEAT('x',270) AS CHAR ) FROM t1;
-DROP table t1;
-#
-# MDEV-4858 Wrong results for a huge unsigned value inserted into a TIME column
-#
-SELECT
-column_get(column_create(1, -999999999999999 AS int), 1 AS TIME) AS t1,
-column_get(column_create(1, -9223372036854775808 AS int), 1 AS TIME) AS t2;
-t1 t2
--838:59:59 -838:59:59
-Warnings:
-Warning 1292 Truncated incorrect time value: '-999999999999999'
-Warning 1292 Truncated incorrect time value: '-9223372036854775808'
-#
-# end of 5.3 tests
-#
-select column_get(column_create(1, "18446744073709552001" as char), 1 as int);
-column_get(column_create(1, "18446744073709552001" as char), 1 as int)
--1
-Warnings:
-Warning 1918 Encountered illegal value '18446744073709552001' when converting to INT
-Note 1105 Cast to signed converted positive out-of-range integer to it's negative complement
-#
-# MDEV-7505 - Too large scale in DECIMAL dynamic column getter crashes
-# mysqld
-#
-SELECT COLUMN_GET(`x`, 'y' AS DECIMAL(5,50));
-ERROR 42000: Too big scale 50 specified for ''y''. Maximum is 38
-#
-# test of symbolic names
-#
-# creation test (names)
-set names utf8;
-select hex(column_create("адын", 1212));
-hex(column_create("адын", 1212))
-040100080000000000D0B0D0B4D18BD0BD7809
-select hex(column_create("1212", 1212));
-hex(column_create("1212", 1212))
-040100040000000000313231327809
-select hex(column_create(1212, 2, "www", 3));
-hex(column_create(1212, 2, "www", 3))
-04020007000000000003001000777777313231320604
-select hex(column_create("1212", 2, "www", 3));
-hex(column_create("1212", 2, "www", 3))
-04020007000000000003001000777777313231320604
-select hex(column_create("1212", 2, 3, 3));
-hex(column_create("1212", 2, 3, 3))
-0402000500000000000100100033313231320604
-select hex(column_create("1212", 2, "адын", 1, 3, 3));
-hex(column_create("1212", 2, "адын", 1, 3, 3))
-0403000D000000000001001000050020003331323132D0B0D0B4D18BD0BD060402
-set names default;
-# fetching column test (names)
-set names utf8;
-select column_get(column_create("адын", 1212), "адын" as int);
-column_get(column_create("адын", 1212), "адын" as int)
-1212
-select column_get(column_create("1212", 2, "адын", 1, 3, 3), "адын" as int);
-column_get(column_create("1212", 2, "адын", 1, 3, 3), "адын" as int)
-1
-select column_get(column_create("1212", 2, "адын", 1, 3, 3), 1212 as int);
-column_get(column_create("1212", 2, "адын", 1, 3, 3), 1212 as int)
-2
-select column_get(column_create("1212", 2, "адын", 1, 3, 3), "3" as int);
-column_get(column_create("1212", 2, "адын", 1, 3, 3), "3" as int)
-3
-select column_get(column_create("1212", 2, "адын", 1, 3, 3), 3 as int);
-column_get(column_create("1212", 2, "адын", 1, 3, 3), 3 as int)
-3
-select column_get(column_create("1212", 2, "адын", 1, 3, 3), 4 as int);
-column_get(column_create("1212", 2, "адын", 1, 3, 3), 4 as int)
-NULL
-select column_get(column_create("1212", 2, "адын", 1, 3, 3), "4" as int);
-column_get(column_create("1212", 2, "адын", 1, 3, 3), "4" as int)
-NULL
-set names default;
-# column existance test (names)
-set names utf8;
-select column_exists(column_create("адын", 1212), "адын");
-column_exists(column_create("адын", 1212), "адын")
-1
-select column_exists(column_create("адын", 1212), "aады");
-column_exists(column_create("адын", 1212), "aады")
-0
-select column_exists(column_create("1212", 2, "адын", 1, 3, 3), "адын");
-column_exists(column_create("1212", 2, "адын", 1, 3, 3), "адын")
-1
-select column_exists(column_create("1212", 2, "адын", 1, 3, 3), 1212);
-column_exists(column_create("1212", 2, "адын", 1, 3, 3), 1212)
-1
-select column_exists(column_create("1212", 2, "адын", 1, 3, 3), "3");
-column_exists(column_create("1212", 2, "адын", 1, 3, 3), "3")
-1
-select column_exists(column_create("1212", 2, "адын", 1, 3, 3), 3);
-column_exists(column_create("1212", 2, "адын", 1, 3, 3), 3)
-1
-select column_exists(column_create("1212", 2, "адын", 1, 3, 3), 4);
-column_exists(column_create("1212", 2, "адын", 1, 3, 3), 4)
-0
-select column_exists(column_create("1212", 2, "адын", 1, 3, 3), "4");
-column_exists(column_create("1212", 2, "адын", 1, 3, 3), "4")
-0
-set names default;
-# column changing test (names)
-select hex(column_add(column_create(1, "AAA"), "b", "BBB"));
-hex(column_add(column_create(1, "AAA"), "b", "BBB"))
-0402000200000003000100430031620841414108424242
-select hex(column_add(column_create("1", "AAA"), "b", "BBB"));
-hex(column_add(column_create("1", "AAA"), "b", "BBB"))
-0402000200000003000100430031620841414108424242
-select column_get(column_add(column_create(1, "AAA"), "b", "BBB"), 1 as char);
-column_get(column_add(column_create(1, "AAA"), "b", "BBB"), 1 as char)
-AAA
-select column_get(column_add(column_create(1, "AAA"), "b", "BBB"), "b" as char);
-column_get(column_add(column_create(1, "AAA"), "b", "BBB"), "b" as char)
-BBB
-select hex(column_add(column_create("a", "AAA"), 1, "BBB"));
-hex(column_add(column_create("a", "AAA"), 1, "BBB"))
-0402000200000003000100430031610842424208414141
-select hex(column_add(column_create("a", "AAA"), "1", "BBB"));
-hex(column_add(column_create("a", "AAA"), "1", "BBB"))
-0402000200000003000100430031610842424208414141
-select hex(column_add(column_create("a", 1212 as integer), "b", "1212" as integer));
-hex(column_add(column_create("a", 1212 as integer), "b", "1212" as integer))
-04020002000000000001002000616278097809
-select hex(column_add(column_create("a", 1212 as integer), "a", "1212" as integer));
-hex(column_add(column_create("a", 1212 as integer), "a", "1212" as integer))
-040100010000000000617809
-select hex(column_add(column_create("a", 1212 as integer), "a", NULL as integer));
-hex(column_add(column_create("a", 1212 as integer), "a", NULL as integer))
-0400000000
-select hex(column_add(column_create("a", 1212 as integer), "b", NULL as integer));
-hex(column_add(column_create("a", 1212 as integer), "b", NULL as integer))
-040100010000000000617809
-select hex(column_add(column_create("a", 1212 as integer), "b", 1212 as integer, "a", 11 as integer));
-hex(column_add(column_create("a", 1212 as integer), "b", 1212 as integer, "a", 11 as integer))
-040200020000000000010010006162167809
-select column_get(column_add(column_create("a", 1212 as integer), "b", 1212 as integer, "a", 11 as integer), "a" as integer);
-column_get(column_add(column_create("a", 1212 as integer), "b", 1212 as integer, "a", 11 as integer), "a" as integer)
-11
-select column_get(column_add(column_create("a", 1212 as integer), "b", 1212 as integer, "a", 11 as integer), "b" as integer);
-column_get(column_add(column_create("a", 1212 as integer), "b", 1212 as integer, "a", 11 as integer), "b" as integer)
-1212
-select hex(column_add(column_create("a", 1212 as integer), "a", 1212 as integer, "b", 11 as integer));
-hex(column_add(column_create("a", 1212 as integer), "a", 1212 as integer, "b", 11 as integer))
-040200020000000000010020006162780916
-select hex(column_add(column_create("a", NULL as integer), "a", 1212 as integer, "b", 11 as integer));
-hex(column_add(column_create("a", NULL as integer), "a", 1212 as integer, "b", 11 as integer))
-040200020000000000010020006162780916
-select hex(column_add(column_create("a", 1212 as integer, "b", 1212 as integer), "a", 11 as integer));
-hex(column_add(column_create("a", 1212 as integer, "b", 1212 as integer), "a", 11 as integer))
-040200020000000000010010006162167809
-select hex(column_add(column_create("a", 1), "a", null));
-hex(column_add(column_create("a", 1), "a", null))
-0400000000
-select column_list(column_add(column_create("a", 1), "a", null));
-column_list(column_add(column_create("a", 1), "a", null))
-
-select column_list(column_add(column_create("a", 1), "a", ""));
-column_list(column_add(column_create("a", 1), "a", ""))
-`a`
-select hex(column_add("", "a", 1));
-hex(column_add("", "a", 1))
-0401000100000000006102
-# column delete (names)
-select hex(column_delete(column_create("a", 1212 as integer, "b", 1212 as integer), "a"));
-hex(column_delete(column_create("a", 1212 as integer, "b", 1212 as integer), "a"))
-040100010000000000627809
-select hex(column_delete(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer), "b"));
-hex(column_delete(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer), "b"))
-0402000200000000000100100061630206
-select hex(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer));
-hex(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer))
-0403000300000000000100100002002000616263020406
-select hex(column_delete(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer), "c"));
-hex(column_delete(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer), "c"))
-0402000200000000000100100061620204
-select hex(column_delete(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer), "d"));
-hex(column_delete(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer), "d"))
-0403000300000000000100100002002000616263020406
-select hex(column_delete(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer), "b", "a"));
-hex(column_delete(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer), "b", "a"))
-0401000100000000006306
-select hex(column_delete(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer), "b", "c"));
-hex(column_delete(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer), "b", "c"))
-0401000100000000006102
-select hex(column_delete(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer), "a", "b", "c"));
-hex(column_delete(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer), "a", "b", "c"))
-0400000000
-select hex(column_delete(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer), "a", "b", "c", "e"));
-hex(column_delete(column_create("a", 1 as integer, "b", 2 as integer, "c", 3 as integer), "a", "b", "c", "e"))
-0400000000
-select hex(column_delete(column_create("a", 1), "a"));
-hex(column_delete(column_create("a", 1), "a"))
-0400000000
-select hex(column_delete("", "a"));
-hex(column_delete("", "a"))
-
-#
-# MDEV-458 DNAMES: Server crashes on using an unquoted string
-# as a dynamic column name
-#
-select COLUMN_CREATE(color, "black");
-ERROR 42S22: Unknown column 'color' in 'field list'
-#
-# MDEV-489 Assertion `offset < 0x1f' failed in
-# type_and_offset_store on COLUMN_ADD
-#
-CREATE TABLE t1 (f1 tinyblob);
-INSERT INTO t1 VALUES (COLUMN_CREATE('col1', REPEAT('a',30)));
-select column_check(f1) from t1;
-column_check(f1)
-1
-UPDATE t1 SET f1 = COLUMN_ADD( f1, REPEAT('b',211), 'val2' );
-Warnings:
-Warning 1265 Data truncated for column 'f1' at row 1
-select column_check(f1) from t1;
-column_check(f1)
-0
-UPDATE t1 SET f1 = COLUMN_ADD( f1, REPEAT('c',211), 'val3' );
-Warnings:
-Warning 1265 Data truncated for column 'f1' at row 1
-select column_check(f1) from t1;
-column_check(f1)
-0
-drop table t1;
-#
-# MDEV-490/MDEV-491 null as arguments
-#
-SELECT COLUMN_GET( COLUMN_CREATE( 'col', 'val' ), NULL AS CHAR );
-COLUMN_GET( COLUMN_CREATE( 'col', 'val' ), NULL AS CHAR )
-NULL
-SELECT COLUMN_GET( NULL, 'col' as char );
-COLUMN_GET( NULL, 'col' as char )
-NULL
-SELECT COLUMN_EXISTS( COLUMN_CREATE( 'col', 'val' ), NULL);
-COLUMN_EXISTS( COLUMN_CREATE( 'col', 'val' ), NULL)
-NULL
-SELECT COLUMN_EXISTS( NULL, 'col');
-COLUMN_EXISTS( NULL, 'col')
-NULL
-SELECT COLUMN_CREATE( NULL, 'val' );
-COLUMN_CREATE( NULL, 'val' )
-NULL
-SELECT COLUMN_ADD( NULL, 'val', 'col');
-COLUMN_ADD( NULL, 'val', 'col')
-NULL
-#
-# MDEV-488: Assertion `column_name->length < 255' failed on a
-# column name with length 255 (precisely)
-#
-SELECT hex(COLUMN_CREATE(REPEAT('a',255),1));
-hex(COLUMN_CREATE(REPEAT('a',255),1))
-040100FF000000000061616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616102
-SELECT hex(COLUMN_CREATE(REPEAT('a',65536),1));
-ERROR 22007: Illegal value used as argument of dynamic column function
-#
-# JSON conversion
-#
-select column_json(column_create("int", -1212 as int, "uint", 12334 as unsigned int, "decimal", "23.344" as decimal, "double", 1.23444e50 as double, "string", 'gdgd\\dhdjh"dhdhd' as char, "time", "0:45:49.000001" AS time, "datetime", "2011-04-05 0:45:49.000001" AS datetime, "date", "2011-04-05" AS date));
-column_json(column_create("int", -1212 as int, "uint", 12334 as unsigned int, "decimal", "23.344" as decimal, "double", 1.23444e50 as double, "string", 'gdgd\\dhdjh"dhdhd' as char, "time", "0:45:49.000001" AS time, "datetime", "2011-04-05 0:45:49.000001"
-{"int":-1212,"date":"2011-04-05","time":"00:45:49.000001","uint":12334,"double":1.23444e50,"string":"gdgd\\dhdjh\"dhdhd","decimal":23.344,"datetime":"2011-04-05 00:45:49.000001"}
-select column_json(column_create(1, -1212 as int, 2, 12334 as unsigned int, 3, "23.344" as decimal, 4, 1.23444e50 as double, 5, 'gdgd\\dhdjh"dhdhd' as char, 6, "0:45:49.000001" AS time, 7, "2011-04-05 0:45:49.000001" AS datetime, 8, "2011-04-05" AS date));
-column_json(column_create(1, -1212 as int, 2, 12334 as unsigned int, 3, "23.344" as decimal, 4, 1.23444e50 as double, 5, 'gdgd\\dhdjh"dhdhd' as char, 6, "0:45:49.000001" AS time, 7, "2011-04-05 0:45:49.000001" AS datetime, 8, "2011-04-05" AS date))
-{"1":-1212,"2":12334,"3":23.344,"4":1.23444e50,"5":"gdgd\\dhdjh\"dhdhd","6":"00:45:49.000001","7":"2011-04-05 00:45:49.000001","8":"2011-04-05"}
-#
-# CHECK test
-#
-SELECT COLUMN_CHECK(COLUMN_CREATE(1,'a'));
-COLUMN_CHECK(COLUMN_CREATE(1,'a'))
-1
-SELECT COLUMN_CHECK('abracadabra');
-COLUMN_CHECK('abracadabra')
-0
-SELECT COLUMN_CHECK('');
-COLUMN_CHECK('')
-1
-SELECT COLUMN_CHECK(NULL);
-COLUMN_CHECK(NULL)
-NULL
-#
-# escaping check
-#
-select column_json(column_create("string", "'\"/\\`.,whatever")),hex(column_create("string", "'\"/\\`.,whatever"));
-column_json(column_create("string", "'\"/\\`.,whatever")) hex(column_create("string", "'\"/\\`.,whatever"))
-{"string":"'\"/\\`.,whatever"} 040100060000000300737472696E670827222F5C602E2C7768617465766572
-#
-# embedding test
-#
-select column_json(column_create("val", "val", "emb", column_create("val2", "val2")));
-column_json(column_create("val", "val", "emb", column_create("val2", "val2")))
-{"emb":{"val2":"val2"},"val":"val"}
-select column_json(column_create(1, "val", 2, column_create(3, "val2")));
-column_json(column_create(1, "val", 2, column_create(3, "val2")))
-{"1":"val","2":{"3":"val2"}}
-#
-# Time encoding
-#
-select hex(column_create("t", "800:46:06.23434" AS time)) as hex,
-column_json(column_create("t", "800:46:06.23434" AS time)) as js;
-hex js
-04010001000000070074649363B82003 {"t":"800:46:06.234340"}
-select hex(column_create(1, "800:46:06.23434" AS time)) as hex,
-column_json(column_create(1, "800:46:06.23434" AS time)) as js;
-hex js
-000100010007649363B82003 {"1":"800:46:06.234340"}
-select hex(column_create("t", "800:46:06" AS time)) as hex,
-column_json(column_create("t", "800:46:06" AS time)) as js;
-hex js
-04010001000000070074860B32 {"t":"800:46:06"}
-select hex(column_create(1, "800:46:06" AS time)) as hex,
-column_json(column_create(1, "800:46:06" AS time)) as js;
-hex js
-000100010007000060B82003 {"1":"800:46:06"}
-select hex(column_create("t", "2012-12-21 10:46:06.23434" AS datetime)) as hex,
-column_json(column_create("t", "2012-12-21 10:46:06.23434" AS datetime)) as js;
-hex js
-0401000100000005007495B90F649363B80A00 {"t":"2012-12-21 10:46:06.234340"}
-select hex(column_create(1, "2012-12-21 10:46:06.23434" AS datetime)) as hex,
-column_json(column_create(1, "2012-12-21 10:46:06.23434" AS datetime)) as js;
-hex js
-00010001000595B90F649363B80A00 {"1":"2012-12-21 10:46:06.234340"}
-select hex(column_create("t", "2012-12-21 10:46:06" AS datetime)) as hex,
-column_json(column_create("t", "2012-12-21 10:46:06" AS datetime)) as js;
-hex js
-0401000100000005007495B90F86AB00 {"t":"2012-12-21 10:46:06"}
-select hex(column_create(1, "2012-12-21 10:46:06" AS datetime)) as hex,
-column_json(column_create(1, "2012-12-21 10:46:06" AS datetime)) as js;
-hex js
-00010001000595B90F000060B80A00 {"1":"2012-12-21 10:46:06"}
-#
-# MDEV-4849: Out of memory error and valgrind warnings on COLUMN_ADD
-#
-CREATE TABLE t1 (dyncol tinyblob) ENGINE=MyISAM;
-INSERT INTO t1 SET dyncol = COLUMN_CREATE( 3, REPEAT('a',330), 4, 'x' );
-Warnings:
-Warning 1265 Data truncated for column 'dyncol' at row 1
-SELECT COLUMN_ADD( COLUMN_ADD( dyncol, 1, REPEAT('b',130) ), 3, 'y' ) FROM t1;
-ERROR HY000: Encountered illegal format of dynamic column string
-DROP TABLE t1;
-#
-#MDEV-5840: group_concat( column_json(dynamic_column )) return empty
-#result
-#
-create table t1 (dyn blob);
-insert into t1 values (column_create('name1','value1','name2','value2'));
-select group_concat(cast(column_json(dyn) as char)) from t1;
-group_concat(cast(column_json(dyn) as char))
-{"name1":"value1","name2":"value2"}
-drop table t1;
-#
-# MDEV-7116: Dynamic column hangs/segfaults
-#
-create table t1 (
-impressions mediumblob
-);
-insert into t1 values ("");
-update t1
-set impressions = column_add(impressions,
-'total', 12,
-'2014-10-28 16:00:00', 3,
-'2014-10-30 15:00:00', 3,
-'2014-11-04 09:00:00', 6
-);
-update t1
-set impressions = column_add(impressions,
-'total', "a12",
-'2014-10-28 16:00:00', "a3",
-'2014-10-30 15:00:00', "a3",
-'2014-11-04 09:00:00', "a6"
- );
-drop table t1;
-#
-# MDEV-8565: COLUMN_CHECK fails on valid data
-#
-SELECT COLUMN_CHECK(COLUMN_CREATE('a',0,'b','1'));
-COLUMN_CHECK(COLUMN_CREATE('a',0,'b','1'))
-1
-SELECT COLUMN_CHECK(COLUMN_CREATE('a',1,'b','1'));
-COLUMN_CHECK(COLUMN_CREATE('a',1,'b','1'))
-1
-SELECT COLUMN_JSON(COLUMN_CREATE('a',0,'b','1'));
-COLUMN_JSON(COLUMN_CREATE('a',0,'b','1'))
-{"a":0,"b":"1"}
-SELECT COLUMN_JSON(COLUMN_CREATE('a',1,'b','1'));
-COLUMN_JSON(COLUMN_CREATE('a',1,'b','1'))
-{"a":1,"b":"1"}
-#
-# MDEV-8401: COLUMN_CREATE(name, value as DOUBLE) results in string
-#
-SELECT COLUMN_JSON(
-COLUMN_CREATE(
-'one', 123.456,
-'two', 123.456 as DOUBLE
-)
-);
-COLUMN_JSON(
-COLUMN_CREATE(
-'one', 123.456,
-'two', 123.456 as DOUBLE
-)
-)
-{"one":123.456,"two":123.456}
-#
-# MDEV-8521: Drastic loss of precision in COLUMN_JSON() on DOUBLEs
-#
-select column_get(column_create('float', 1.23456789012345E+100 as double), 'float' as double);
-column_get(column_create('float', 1.23456789012345E+100 as double), 'float' as double)
-1.23456789012345e100
-select column_json(column_create('float', 1.23456789012345E+100 as double));
-column_json(column_create('float', 1.23456789012345E+100 as double))
-{"float":1.23456789012345e100}
-select column_json(column_create('float', 1.23456789012345E+10 as double));
-column_json(column_create('float', 1.23456789012345E+10 as double))
-{"float":12345678901.2345}
-#
-# MDEV-9147: Character set is ignored in Dynamic Column for saved string
-#
-SET NAMES utf8;
-SELECT COLUMN_GET(COLUMN_CREATE(1, 0xC2A2 AS CHAR CHARACTER SET latin1), 1 AS CHAR CHARACTER SET utf8) AS a;
-a
-¢
-SELECT COLUMN_GET(COLUMN_CREATE(1, 0xC2A2 AS CHAR CHARACTER SET utf8), 1 AS CHAR CHARACTER SET utf8) AS a;
-a
-¢
-#
-# MDEV-9167: COLUMN_CHECK fails on valid decimal data
-#
-SELECT COLUMN_CHECK(COLUMN_CREATE('a',0 AS DECIMAL,'b',1 AS DECIMAL));
-COLUMN_CHECK(COLUMN_CREATE('a',0 AS DECIMAL,'b',1 AS DECIMAL))
-1
-SELECT COLUMN_CHECK(COLUMN_CREATE('a',1 AS DECIMAL,'b',1 AS DECIMAL));
-COLUMN_CHECK(COLUMN_CREATE('a',1 AS DECIMAL,'b',1 AS DECIMAL))
-1
-SELECT COLUMN_JSON(COLUMN_CREATE('a',0 AS DECIMAL,'b',1 AS DECIMAL));
-COLUMN_JSON(COLUMN_CREATE('a',0 AS DECIMAL,'b',1 AS DECIMAL))
-{"a":0,"b":1}
-SELECT COLUMN_JSON(COLUMN_CREATE('a',1 AS DECIMAL,'b',1 AS DECIMAL));
-COLUMN_JSON(COLUMN_CREATE('a',1 AS DECIMAL,'b',1 AS DECIMAL))
-{"a":1,"b":1}
-#
-# MDEV-7533: COLUMN_JSON() doesn't escape control characters
-# in string values
-#
-SELECT COLUMN_JSON(COLUMN_CREATE('test','"\\\t\n\Z')) AS json;
-json
-{"test":"\"\\\u0009\u000A\u001A"}
-SELECT COLUMN_JSON(COLUMN_CREATE('test','First line\nSecond line')) AS json;
-json
-{"test":"First line\u000ASecond line"}
-#
-# MDEV-15230: column_json breaks cyrillic in 10.1.31
-#
-set names utf8;
-create table t1 (b blob);
-insert into t1 values (column_create('description',column_create('title','ОпиÑание')));
-select column_json(b) from t1;
-column_json(b)
-{"description":{"title":"ОпиÑание"}}
-drop table t1;
-#
-# end of 10.0 tests
-#
-#
-# Start of 10.2 tests
-#
-create view v1 as select column_get(column_add(column_create(1 , 'blue' as char), 2, 'ttt'), 1 as char);
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select column_get(column_add(column_create(1,'blue' AS char charset utf8 ),2,'ttt'),1 as char charset utf8) AS `Name_exp_1` utf8 utf8_general_ci
-select * from v1;
-Name_exp_1
-blue
-drop view v1;
-#
-# MDEV-10134 Add full support for DEFAULT
-#
-CREATE TABLE t1 (
-name VARCHAR(10),
-value VARCHAR(10),
-dyncol0 BLOB DEFAULT COLUMN_CREATE(name, value),
-value_dyncol0_name0 VARCHAR(10) DEFAULT COLUMN_GET(dyncol0, 'name0' AS CHAR),
-dyncol1 BLOB DEFAULT COLUMN_ADD(dyncol0, 'name1', 'value1'),
-value_dyncol1_name1 VARCHAR(10) DEFAULT COLUMN_GET(dyncol1, 'name1' AS CHAR),
-dyncol2 BLOB DEFAULT COLUMN_DELETE(dyncol1, 'name1'),
-dyncol2_exists_name0 INT DEFAULT COLUMN_EXISTS(dyncol2, 'name0'),
-dyncol2_exists_name1 INT DEFAULT COLUMN_EXISTS(dyncol2, 'name1'),
-dyncol2_check INT DEFAULT COLUMN_CHECK(dyncol2),
-dyncol1_list TEXT DEFAULT COLUMN_LIST(dyncol1),
-dyncol1_json TEXT DEFAULT COLUMN_JSON(dyncol1)
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `name` varchar(10) DEFAULT NULL,
- `value` varchar(10) DEFAULT NULL,
- `dyncol0` blob DEFAULT column_create(`name`,`value`),
- `value_dyncol0_name0` varchar(10) DEFAULT (column_get(`dyncol0`,'name0' as char charset utf8)),
- `dyncol1` blob DEFAULT column_add(`dyncol0`,'name1','value1'),
- `value_dyncol1_name1` varchar(10) DEFAULT (column_get(`dyncol1`,'name1' as char charset utf8)),
- `dyncol2` blob DEFAULT column_add(`dyncol1`,'name1',NULL AS int),
- `dyncol2_exists_name0` int(11) DEFAULT column_exists(`dyncol2`,'name0'),
- `dyncol2_exists_name1` int(11) DEFAULT column_exists(`dyncol2`,'name1'),
- `dyncol2_check` int(11) DEFAULT column_check(`dyncol2`),
- `dyncol1_list` text DEFAULT column_list(`dyncol1`),
- `dyncol1_json` text DEFAULT column_json(`dyncol1`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (name,value) VALUES ('name0', 'value0');
-SELECT value_dyncol0_name0, value_dyncol1_name1 FROM t1;
-value_dyncol0_name0 value_dyncol1_name1
-value0 value1
-SELECT dyncol2_check, dyncol2_exists_name0, dyncol2_exists_name1 FROM t1;
-dyncol2_check dyncol2_exists_name0 dyncol2_exists_name1
-1 1 0
-SELECT dyncol1_list FROM t1;
-dyncol1_list
-`name0`,`name1`
-SELECT dyncol1_json FROM t1;
-dyncol1_json
-{"name0":"value0","name1":"value1"}
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/empty_server_name-8224.result b/mysql-test/r/empty_server_name-8224.result
deleted file mode 100644
index 4bf592c8932..00000000000
--- a/mysql-test/r/empty_server_name-8224.result
+++ /dev/null
@@ -1,2 +0,0 @@
-create server '' foreign data wrapper w2 options (host '127.0.0.1');
-drop server '';
diff --git a/mysql-test/r/empty_string_literal.result b/mysql-test/r/empty_string_literal.result
deleted file mode 100644
index 2ca491a7dd8..00000000000
--- a/mysql-test/r/empty_string_literal.result
+++ /dev/null
@@ -1,181 +0,0 @@
-USE test;
-#
-# MDEV-14013 : sql_mode=EMPTY_STRING_IS_NULL
-#
-set @mode='EMPTY_STRING_IS_NULL';
-SET SESSION character_set_connection=latin2;
-SET SESSION character_set_client=cp1250;
-#
-# Test litteral
-#
-SET sql_mode=@mode;
-select @@sql_mode;
-@@sql_mode
-EMPTY_STRING_IS_NULL
-SELECT '',CHARSET(''), null, CHARSET(null), CAST(null as char(10)), CHARSET(CAST(null as char(10))), 'x', CHARSET('x');
-NULL CHARSET('') NULL CHARSET(null) CAST(null as char(10)) CHARSET(CAST(null as char(10))) x CHARSET('x')
-NULL latin2 NULL binary NULL latin2 x latin2
-SELECT CHARSET(NULLIF('','')),NULLIF('','');
-CHARSET(NULLIF('','')) NULLIF('','')
-latin2 NULL
-SET sql_mode=default;
-SELECT '',CHARSET(''), null, CHARSET(null), CAST(null as char(10)), CHARSET(CAST(null as char(10))), 'x', CHARSET('x');
- CHARSET('') NULL CHARSET(null) CAST(null as char(10)) CHARSET(CAST(null as char(10))) x CHARSET('x')
- latin2 NULL binary NULL latin2 x latin2
-SELECT CHARSET(NULLIF('','')),NULLIF('','');
-CHARSET(NULLIF('','')) NULLIF('','')
-latin2 NULL
-#
-# Test NCHAR litteral
-#
-SET sql_mode=@mode;
-SELECT N'',CHARSET(N''), N'x', CHARSET(N'x');
-NULL CHARSET(N'') x CHARSET(N'x')
-NULL utf8 x utf8
-SELECT CHARSET(NULLIF(N'',N'')),NULLIF(N'',N'');
-CHARSET(NULLIF(N'',N'')) NULLIF(N'',N'')
-utf8 NULL
-SET sql_mode=default;
-SELECT N'',CHARSET(N''), N'x', CHARSET(N'x');
- CHARSET(N'') x CHARSET(N'x')
- utf8 x utf8
-SELECT CHARSET(NULLIF(N'',N'')),NULLIF(N'',N'');
-CHARSET(NULLIF(N'',N'')) NULLIF(N'',N'')
-utf8 NULL
-#
-# Test CHARSET prefix litteral
-#
-SET sql_mode=@mode;
-SELECT _cp1250 '',CHARSET(_cp1250 ''), _cp1250 'x', CHARSET(_cp1250 'x');
-NULL CHARSET(_cp1250 '') x CHARSET(_cp1250 'x')
-NULL cp1250 x cp1250
-SELECT CHARSET(NULLIF(_cp1250 '',_cp1250 '')),NULLIF(_cp1250 '',_cp1250 '');
-CHARSET(NULLIF(_cp1250 '',_cp1250 '')) NULLIF(_cp1250 '',_cp1250 '')
-cp1250 NULL
-SET sql_mode=default;
-SELECT _cp1250 '',CHARSET(_cp1250 ''), _cp1250 'x', CHARSET(_cp1250 'x');
- CHARSET(_cp1250 '') x CHARSET(_cp1250 'x')
- cp1250 x cp1250
-SELECT CHARSET(NULLIF(_cp1250 '',_cp1250 '')),NULLIF(_cp1250 '',_cp1250 '');
-CHARSET(NULLIF(_cp1250 '',_cp1250 '')) NULLIF(_cp1250 '',_cp1250 '')
-cp1250 NULL
-SET sql_mode=@mode;
-#
-# Test litteral concat
-#
-SELECT 'a' 'b';
-a
-ab
-SELECT 'a' '';
-a
-a
-SELECT '' 'b';
-b
-b
-SELECT '' '';
-NULL
-NULL
-SELECT '' 'b' 'c';
-b
-bc
-SELECT '' '' 'c';
-c
-c
-SELECT 'a' '' 'c';
-a
-ac
-SELECT 'a' '' '';
-a
-a
-SELECT '' '' '';
-NULL
-NULL
-SELECT '' '' '',CHARSET('' '' '');
-NULL CHARSET('' '' '')
-NULL latin2
-SELECT _latin1'' '' '',CHARSET(_latin1'' '' '');
-NULL CHARSET(_latin1'' '' '')
-NULL latin1
-SELECT N'' '' '',CHARSET(N'' '' '');
-NULL CHARSET(N'' '' '')
-NULL utf8
-#
-# UNION - implicit group by
-#
-SELECT 1, null
-UNION
-SELECT 1 , ''
-ORDER BY 1;
-1 NULL
-1 NULL
-SELECT 1, null
-UNION
-SELECT 1 , N''
-ORDER BY 1;
-1 NULL
-1 NULL
-SELECT 1, null
-UNION
-SELECT 1 , _cp1250 ''
-ORDER BY 1;
-1 NULL
-1 NULL
-SELECT NULLIF(_cp1250 '',_cp1250 '')
-UNION
-SELECT NULLIF(N'',N'');
-NULLIF(_cp1250 '',_cp1250 '')
-NULL
-SELECT 1 , _latin2 ''
-UNION
-SELECT 1 , _cp1250 '';
-ERROR HY000: Illegal mix of collations (latin2_general_ci,IGNORABLE) and (cp1250_general_ci,IGNORABLE) for operation 'UNION'
-SELECT 1, null
-UNION
-SELECT 1 , ''
-UNION
-SELECT 1 , N'';
-1 NULL
-1 NULL
-CREATE TABLE t1 (c1 INT,c2 VARCHAR(10));
-INSERT INTO t1 VALUES (1,'one');
-INSERT INTO t1 VALUES (1,'');
-INSERT INTO t1 VALUES (1,null);
-#
-# Test in a view
-#
-CREATE VIEW v1
-AS SELECT c1, c2
-FROM t1
-UNION
-SELECT c1 , ''
- FROM t1
-ORDER BY 1,2;
-SELECT * FROM v1;
-c1 c2
-1 NULL
-1 one
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`c1` AS `c1`,`t1`.`c2` AS `c2` from `t1` union select `t1`.`c1` AS `c1`,NULL AS `NULL` from `t1` order by 1,2 cp1250 latin2_general_ci
-DROP VIEW v1;
-DROP TABLE t1;
-EXPLAIN EXTENDED SELECT '';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select NULL AS `NULL`
-EXPLAIN EXTENDED SELECT _latin1'';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select NULL AS `NULL`
-EXPLAIN EXTENDED SELECT N'';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select NULL AS `NULL`
-EXPLAIN EXTENDED SELECT '' '';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select NULL AS `NULL`
diff --git a/mysql-test/r/empty_table.result b/mysql-test/r/empty_table.result
deleted file mode 100644
index 2bca3e792fa..00000000000
--- a/mysql-test/r/empty_table.result
+++ /dev/null
@@ -1,18 +0,0 @@
-drop table if exists t1;
-create table t1 (nr int(5) not null auto_increment,b blob,str char(10), primary key (nr));
-select count(*) from t1;
-count(*)
-0
-select * from t1;
-nr b str
-select * from t1 limit 0;
-nr b str
-show status like "Empty_queries";
-Variable_name Value
-Empty_queries 2
-drop table t1;
-select * from t2;
-ERROR 42S02: Table 'test.t2' doesn't exist
-show status like "Empty_queries";
-Variable_name Value
-Empty_queries 2
diff --git a/mysql-test/r/empty_user_table.result b/mysql-test/r/empty_user_table.result
deleted file mode 100644
index 54a7fd4907b..00000000000
--- a/mysql-test/r/empty_user_table.result
+++ /dev/null
@@ -1,9 +0,0 @@
-create table t1 as select * from mysql.user;
-truncate table mysql.user;
-flush privileges;
-connect(localhost,u1,,test,MASTER_PORT,MASTER_SOCKET);
-connect fail,localhost,u1;
-Got one of the listed errors
-insert mysql.user select * from t1;
-drop table t1;
-flush privileges;
diff --git a/mysql-test/r/endspace.result b/mysql-test/r/endspace.result
deleted file mode 100644
index f9619db7e64..00000000000
--- a/mysql-test/r/endspace.result
+++ /dev/null
@@ -1,220 +0,0 @@
-drop table if exists t1;
-select 'a' = 'a', 'a' = 'a ', 'a ' = 'a';
-'a' = 'a' 'a' = 'a ' 'a ' = 'a'
-1 1 1
-select 'a\0' = 'a', 'a\0' < 'a', 'a\0' > 'a';
-'a\0' = 'a' 'a\0' < 'a' 'a\0' > 'a'
-0 1 0
-select 'a' = 'a\0', 'a' < 'a\0', 'a' > 'a\0';
-'a' = 'a\0' 'a' < 'a\0' 'a' > 'a\0'
-0 0 1
-select 'a\0' = 'a ', 'a\0' < 'a ', 'a\0' > 'a ';
-'a\0' = 'a ' 'a\0' < 'a ' 'a\0' > 'a '
-0 1 0
-select 'a ' = 'a\0', 'a ' < 'a\0', 'a ' > 'a\0';
-'a ' = 'a\0' 'a ' < 'a\0' 'a ' > 'a\0'
-0 0 1
-select 'a a' > 'a', 'a \0' < 'a';
-'a a' > 'a' 'a \0' < 'a'
-1 1
-select binary 'a a' > 'a', binary 'a \0' > 'a', binary 'a\0' > 'a';
-binary 'a a' > 'a' binary 'a \0' > 'a' binary 'a\0' > 'a'
-1 1 1
-create table t1 (text1 varchar(32) not NULL, KEY key1 (text1));
-insert into t1 values ('teststring'), ('nothing'), ('teststring\t');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-select * from t1 ignore key (key1) where text1='teststring' or
-text1 like 'teststring_%' ORDER BY text1;
-text1
-teststring
-teststring
-select * from t1 where text1='teststring' or text1 like 'teststring_%';
-text1
-teststring
-teststring
-select * from t1 where text1='teststring' or text1 > 'teststring\t';
-text1
-teststring
-select * from t1 order by text1;
-text1
-nothing
-teststring
-teststring
-explain select * from t1 order by text1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL key1 34 NULL 3 Using index
-alter table t1 modify text1 char(32) binary not null;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-select * from t1 ignore key (key1) where text1='teststring' or
-text1 like 'teststring_%' ORDER BY text1;
-text1
-teststring
-teststring
-select concat('|', text1, '|') as c from t1 where text1='teststring' or text1 like 'teststring_%' order by c;
-c
-|teststring |
-|teststring|
-select concat('|', text1, '|') from t1 where text1='teststring' or text1 > 'teststring\t';
-concat('|', text1, '|')
-|teststring|
-select text1, length(text1) from t1 order by text1;
-text1 length(text1)
-nothing 7
-teststring 11
-teststring 10
-select text1, length(text1) from t1 order by binary text1;
-text1 length(text1)
-nothing 7
-teststring 10
-teststring 11
-alter table t1 modify text1 blob not null, drop key key1, add key key1 (text1(20));
-insert into t1 values ('teststring ');
-select concat('|', text1, '|') from t1 order by text1;
-concat('|', text1, '|')
-|nothing|
-|teststring|
-|teststring |
-|teststring |
-select concat('|', text1, '|') from t1 where text1='teststring' or text1 > 'teststring\t';
-concat('|', text1, '|')
-|teststring|
-|teststring |
-select concat('|', text1, '|') from t1 where text1='teststring';
-concat('|', text1, '|')
-|teststring|
-select concat('|', text1, '|') from t1 where text1='teststring ';
-concat('|', text1, '|')
-|teststring |
-alter table t1 modify text1 text not null, pack_keys=1;
-select concat('|', text1, '|') from t1 where text1='teststring';
-concat('|', text1, '|')
-|teststring|
-|teststring |
-select concat('|', text1, '|') from t1 where text1='teststring ';
-concat('|', text1, '|')
-|teststring|
-|teststring |
-explain select concat('|', text1, '|') from t1 where text1='teststring ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref key1 key1 22 const 2 Using where
-select concat('|', text1, '|') from t1 where text1 like 'teststring_%';
-concat('|', text1, '|')
-|teststring |
-|teststring |
-select concat('|', text1, '|') as c from t1 where text1='teststring' or text1 like 'teststring_%' order by c;
-c
-|teststring |
-|teststring |
-|teststring|
-select concat('|', text1, '|') from t1 where text1='teststring' or text1 > 'teststring\t';
-concat('|', text1, '|')
-|teststring|
-|teststring |
-select concat('|', text1, '|') from t1 order by text1;
-concat('|', text1, '|')
-|nothing|
-|teststring |
-|teststring|
-|teststring |
-drop table t1;
-create table t1 (text1 varchar(32) not NULL, KEY key1 (text1)) pack_keys=0;
-insert into t1 values ('teststring'), ('nothing'), ('teststring\t');
-select concat('|', text1, '|') as c from t1 where text1='teststring' or text1 like 'teststring_%' order by c;
-c
-|teststring |
-|teststring|
-select concat('|', text1, '|') from t1 where text1='teststring' or text1 >= 'teststring\t';
-concat('|', text1, '|')
-|teststring |
-|teststring|
-drop table t1;
-create table t1 (text1 varchar(32) not NULL, KEY key1 using BTREE (text1)) engine=heap;
-insert into t1 values ('teststring'), ('nothing'), ('teststring\t');
-select * from t1 ignore key (key1) where text1='teststring' or
-text1 like 'teststring_%' ORDER BY text1;
-text1
-teststring
-teststring
-select * from t1 where text1='teststring' or text1 like 'teststring_%';
-text1
-teststring
-teststring
-select * from t1 where text1='teststring' or text1 >= 'teststring\t';
-text1
-teststring
-teststring
-select * from t1 order by text1;
-text1
-nothing
-teststring
-teststring
-explain select * from t1 order by text1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using filesort
-alter table t1 modify text1 char(32) binary not null;
-select * from t1 order by text1;
-text1
-nothing
-teststring
-teststring
-drop table t1;
-create table t1 (text1 varchar(32) not NULL, KEY key1 (text1)) engine=innodb;
-insert into t1 values ('teststring'), ('nothing'), ('teststring\t');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-select * from t1 where text1='teststring' or text1 like 'teststring_%';
-text1
-teststring
-teststring
-select * from t1 where text1='teststring' or text1 > 'teststring\t';
-text1
-teststring
-select * from t1 order by text1;
-text1
-nothing
-teststring
-teststring
-explain select * from t1 order by text1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL key1 34 NULL 3 Using index
-alter table t1 modify text1 char(32) binary not null;
-select * from t1 order by text1;
-text1
-nothing
-teststring
-teststring
-alter table t1 modify text1 blob not null, drop key key1, add key key1 (text1(20));
-insert into t1 values ('teststring ');
-select concat('|', text1, '|') from t1 order by text1;
-concat('|', text1, '|')
-|nothing|
-|teststring|
-|teststring |
-|teststring |
-alter table t1 modify text1 text not null, pack_keys=1;
-select * from t1 where text1 like 'teststring_%';
-text1
-teststring
-teststring
-select text1, length(text1) from t1 where text1='teststring' or text1 like 'teststring_%';
-text1 length(text1)
-teststring 11
-teststring 10
-teststring 11
-select text1, length(text1) from t1 where text1='teststring' or text1 >= 'teststring\t';
-text1 length(text1)
-teststring 11
-teststring 10
-teststring 11
-select concat('|', text1, '|') from t1 order by text1;
-concat('|', text1, '|')
-|nothing|
-|teststring |
-|teststring|
-|teststring |
-drop table t1;
diff --git a/mysql-test/r/enforce_storage_engine.result b/mysql-test/r/enforce_storage_engine.result
deleted file mode 100644
index 296ed405a72..00000000000
--- a/mysql-test/r/enforce_storage_engine.result
+++ /dev/null
@@ -1,162 +0,0 @@
-set local sql_mode="";
-set global sql_mode="";
-drop table if exists t1;
-SET SESSION enforce_storage_engine=MyISAM;
-select @@session.enforce_storage_engine;
-@@session.enforce_storage_engine
-MyISAM
-CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=Memory;
-Warnings:
-Note 1266 Using storage engine MyISAM for table 't1'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) NOT NULL AUTO_INCREMENT,
- `c2` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`c1`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) NOT NULL AUTO_INCREMENT,
- `c2` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`c1`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) NOT NULL AUTO_INCREMENT,
- `c2` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`c1`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SET SESSION sql_mode='NO_ENGINE_SUBSTITUTION';
-CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) NOT NULL AUTO_INCREMENT,
- `c2` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`c1`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 values (1,'abba');
-CREATE TABLE t2 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=Memory;
-ERROR 42000: Unknown storage engine 'MEMORY'
-SET SESSION sql_mode='';
-SET SESSION enforce_storage_engine=MyISAM;
-select @@session.enforce_storage_engine;
-@@session.enforce_storage_engine
-MyISAM
-select * from t1;
-c1 c2
-1 abba
-drop table t1;
-CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) NOT NULL AUTO_INCREMENT,
- `c2` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`c1`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SET SESSION enforce_storage_engine=FooBar;
-ERROR 42000: Unknown storage engine 'FooBar'
-select @@session.enforce_storage_engine;
-@@session.enforce_storage_engine
-MyISAM
-connect con1,localhost,user_1,,;
-connection con1;
-SET SESSION enforce_storage_engine=MyISAM;
-ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
-disconnect con1;
-connection default;
-SET SESSION enforce_storage_engine=NULL;
-SET SESSION sql_mode='NO_ENGINE_SUBSTITUTION';
-CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=Memory;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) NOT NULL AUTO_INCREMENT,
- `c2` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`c1`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) NOT NULL AUTO_INCREMENT,
- `c2` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`c1`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) NOT NULL AUTO_INCREMENT,
- `c2` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`c1`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SET GLOBAL enforce_storage_engine=Memory;
-SET SESSION sql_mode='';
-connect con1,localhost,root,,;
-connection con1;
-select @@session.enforce_storage_engine;
-@@session.enforce_storage_engine
-MEMORY
-select @@global.enforce_storage_engine;
-@@global.enforce_storage_engine
-MEMORY
-CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10));
-Warnings:
-Note 1266 Using storage engine MEMORY for table 't1'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) NOT NULL AUTO_INCREMENT,
- `c2` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`c1`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-DROP TABLE t1;
-connection default;
-disconnect con1;
-set global sql_mode=default;
-SET SESSION enforce_storage_engine=NULL;
-SET GLOBAL enforce_storage_engine=NULL;
-CREATE TABLE t3 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=MyISAM;
-INSERT INTO t3 values (NULL, 'test');
-SET SESSION enforce_storage_engine=Memory;
-ALTER TABLE t3 ENGINE=MyISAM;
-Warnings:
-Note 1266 Using storage engine MEMORY for table 't3'
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `c1` int(11) NOT NULL AUTO_INCREMENT,
- `c2` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`c1`)
-) ENGINE=MEMORY AUTO_INCREMENT=2 DEFAULT CHARSET=latin1
-DROP TABLE t3;
-SET SESSION enforce_storage_engine=NULL;
-CREATE TABLE t3 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=MyISAM;
-INSERT INTO t3 values (NULL, 'test');
-SET SESSION enforce_storage_engine=Memory;
-ALTER TABLE t3 ADD COLUMN c3 INT;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `c1` int(11) NOT NULL AUTO_INCREMENT,
- `c2` varchar(10) DEFAULT NULL,
- `c3` int(11) DEFAULT NULL,
- PRIMARY KEY (`c1`)
-) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1
-DROP TABLE t3;
-SET SESSION enforce_storage_engine=NULL;
-SET GLOBAL enforce_storage_engine=NULL;
diff --git a/mysql-test/r/enforce_storage_engine_opt.result b/mysql-test/r/enforce_storage_engine_opt.result
deleted file mode 100644
index 1b03aa281d9..00000000000
--- a/mysql-test/r/enforce_storage_engine_opt.result
+++ /dev/null
@@ -1,15 +0,0 @@
-SET SQL_MODE="";
-create table t1 (c1 int primary key auto_increment, c2 varchar(10)) engine=memory;
-Warnings:
-Note 1266 Using storage engine MyISAM for table 't1'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) NOT NULL AUTO_INCREMENT,
- `c2` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`c1`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-set session sql_mode='no_engine_substitution';
-create table t2 (c1 int primary key auto_increment, c2 varchar(10)) engine=memory;
-ERROR 42000: Unknown storage engine 'MEMORY'
-drop table t1;
diff --git a/mysql-test/r/engine_error_in_alter-8453.result b/mysql-test/r/engine_error_in_alter-8453.result
deleted file mode 100644
index c5a3375f33c..00000000000
--- a/mysql-test/r/engine_error_in_alter-8453.result
+++ /dev/null
@@ -1,6 +0,0 @@
-create table t1 (a int, b int);
-set debug_dbug='+d,external_lock_failure';
-alter table t1 add column c int;
-ERROR HY000: Got error 168 'KABOOM!' from MyISAM
-set debug_dbug='';
-drop table t1;
diff --git a/mysql-test/r/error_simulation.result b/mysql-test/r/error_simulation.result
deleted file mode 100644
index e0ec26b2d1c..00000000000
--- a/mysql-test/r/error_simulation.result
+++ /dev/null
@@ -1,132 +0,0 @@
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1 (
-a varchar(32) character set utf8 collate utf8_bin NOT NULL,
-b varchar(32) character set utf8 collate utf8_bin NOT NULL )
-ENGINE=MyISAM DEFAULT CHARSET=utf8;
-INSERT INTO t1 VALUES
-('AAAAAAAAAA','AAAAAAAAAA'), ('AAAAAAAAAB','AAAAAAAAAB '),
-('AAAAAAAAAB','AAAAAAAAAB'), ('AAAAAAAAAC','AAAAAAAAAC'),
-('AAAAAAAAAD','AAAAAAAAAD'), ('AAAAAAAAAE','AAAAAAAAAE'),
-('AAAAAAAAAF','AAAAAAAAAF'), ('AAAAAAAAAG','AAAAAAAAAG'),
-('AAAAAAAAAH','AAAAAAAAAH'), ('AAAAAAAAAI','AAAAAAAAAI'),
-('AAAAAAAAAJ','AAAAAAAAAJ'), ('AAAAAAAAAK','AAAAAAAAAK');
-set tmp_table_size=1024;
-set session debug_dbug="+d,raise_error";
-SELECT MAX(a) FROM t1 GROUP BY a,b;
-ERROR 23000: Can't write; duplicate key in table 'tmp_table'
-set tmp_table_size=default;
-DROP TABLE t1;
-#
-# Bug #50946: fast index creation still seems to copy the table
-#
-CREATE TABLE t1 (a INT(100) NOT NULL);
-INSERT INTO t1 VALUES (1), (0), (2);
-SET SESSION debug_dbug='+d,alter_table_only_index_change';
-ALTER TABLE t1 ADD INDEX a(a);
-SET SESSION debug_dbug=DEFAULT;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(100) NOT NULL,
- KEY `a` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-a
-0
-1
-2
-DROP TABLE t1;
-#
-# Bug#42064: low memory crash when importing hex strings, in Item_hex_string::Item_hex_string
-#
-CREATE TABLE t1(a BLOB);
-SET SESSION debug_dbug="+d,bug42064_simulate_oom";
-INSERT INTO t1 VALUES("");
-Got one of the listed errors
-SET SESSION debug_dbug=DEFAULT;
-DROP TABLE t1;
-#
-# Bug#41660: Sort-index_merge for non-first join table may require
-# O(#scans) memory
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0), (1), (2), (3), (4), (5), (6), (7), (8), (9);
-CREATE TABLE t2 (a INT, b INT, filler CHAR(100), KEY(a), KEY(b));
-INSERT INTO t2 SELECT 1000, 1000, 'filler' FROM t1 A, t1 B, t1 C;
-INSERT INTO t2 VALUES (1, 1, 'data');
-# the example query uses LEFT JOIN only for the sake of being able to
-# demonstrate the issue with a very small dataset. (left outer join
-# disables the use of join buffering, so we get the second table
-# re-scanned for every record in the outer table. if we used inner join,
-# we would need to have thousands of records and/or more columns in both
-# tables so that the join buffer is filled and re-scans are triggered).
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-SET SESSION debug_dbug= '+d,only_one_Unique_may_be_created';
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2 ON ( t2.a < 10 OR t2.b < 10 );
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x
-x x x x x x x x x Using sort_union(a,b); Using where
-SELECT * FROM t1 LEFT JOIN t2 ON ( t2.a < 10 OR t2.b < 10 );
-a a b filler
-0 1 1 data
-1 1 1 data
-2 1 1 data
-3 1 1 data
-4 1 1 data
-5 1 1 data
-6 1 1 data
-7 1 1 data
-8 1 1 data
-9 1 1 data
-SET SESSION debug_dbug= DEFAULT;
-SET optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1, t2;
-#
-# Bug#11747970 34660: CRASH WHEN FEDERATED TABLE LOSES CONNECTION DURING INSERT ... SELECT
-#
-CREATE TABLE t1(f1 INT, KEY(f1));
-CREATE TABLE t2(f1 INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1),(2);
-SET SESSION debug_dbug="+d,bug11747970_raise_error";
-INSERT IGNORE INTO t2 SELECT f1 FROM t1 a WHERE NOT EXISTS (SELECT 1 FROM t2 b WHERE a.f1 = b.f1);
-ERROR 70100: Query execution was interrupted
-SET SESSION debug_dbug = DEFAULT;
-DROP TABLE t1,t2;
-#
-# End of 5.1 tests
-#
-#
-# BUG#11747548:DETECT ORPHAN TEMP-POOL FILES, AND HANDLE GRACEFULLY.
-#
-#Set up.
-CREATE TABLE pid_table(pid_no INT);
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES (1), (2);
-#Create MYD and MYI files for intrinsic temp table.
-LOAD DATA LOCAL INFILE 'pid_file' INTO TABLE pid_table;
-#Reports an error since the temp file already exists.
-SELECT a FROM t1 ORDER BY rand(1);
-a
-1
-2
-#With patch, the query executes successfully.
-SELECT a FROM t1 ORDER BY rand(1);
-a
-1
-2
-#cleanup
-DROP TABLE t1, pid_table;
-#
-# MDEV-12416 OOM in create_virtual_tmp_table() makes the server crash
-#
-CREATE FUNCTION f1(a INT) RETURNS INT RETURN a;
-SET SESSION debug_dbug="+d,simulate_create_virtual_tmp_table_out_of_memory";
-SELECT f1(1);
-Got one of the listed errors
-DROP FUNCTION f1;
-SET SESSION debug_dbug=DEFAULT;
diff --git a/mysql-test/r/errors.result b/mysql-test/r/errors.result
deleted file mode 100644
index ba05a2b37d4..00000000000
--- a/mysql-test/r/errors.result
+++ /dev/null
@@ -1,184 +0,0 @@
-drop table if exists t1;
-insert into t1 values(1);
-ERROR 42S02: Table 'test.t1' doesn't exist
-delete from t1;
-ERROR 42S02: Table 'test.t1' doesn't exist
-update t1 set a=1;
-ERROR 42S02: Table 'test.t1' doesn't exist
-create table t1 (a int);
-select count(test.t1.b) from t1;
-ERROR 42S22: Unknown column 'test.t1.b' in 'field list'
-select count(not_existing_database.t1) from t1;
-ERROR 42S22: Unknown column 'not_existing_database.t1' in 'field list'
-select count(not_existing_database.t1.a) from t1;
-ERROR 42S22: Unknown column 'not_existing_database.t1.a' in 'field list'
-select count(not_existing_database.t1.a) from not_existing_database.t1;
-Got one of the listed errors
-select 1 from t1 order by 2;
-ERROR 42S22: Unknown column '2' in 'order clause'
-select 1 from t1 group by 2;
-ERROR 42S22: Unknown column '2' in 'group statement'
-select 1 from t1 order by t1.b;
-ERROR 42S22: Unknown column 't1.b' in 'order clause'
-select count(*),b from t1;
-ERROR 42S22: Unknown column 'b' in 'field list'
-drop table t1;
-create table t1 (a int(256));
-ERROR 42000: Display width out of range for 'a' (max = 255)
-set sql_mode='traditional';
-create table t1 (a varchar(66000));
-ERROR 42000: Column length too big for column 'a' (max = 65532); use BLOB or TEXT instead
-set sql_mode=default;
-CREATE TABLE t1 (a INT);
-SELECT a FROM t1 WHERE a IN(1, (SELECT IF(1=0,1,2/0)));
-a
-INSERT INTO t1 VALUES(1);
-SELECT a FROM t1 WHERE a IN(1, (SELECT IF(1=0,1,2/0)));
-a
-1
-INSERT INTO t1 VALUES(2),(3);
-SELECT a FROM t1 WHERE a IN(1, (SELECT IF(1=0,1,2/0)));
-a
-1
-Warnings:
-Warning 1365 Division by 0
-DROP TABLE t1;
-CREATE TABLE t1( a INT );
-SELECT b FROM t1;
-ERROR 42S22: Unknown column 'b' in 'field list'
-SHOW ERRORS;
-Level Code Message
-Error 1054 Unknown column 'b' in 'field list'
-CREATE TABLE t2 SELECT b FROM t1;
-ERROR 42S22: Unknown column 'b' in 'field list'
-SHOW ERRORS;
-Level Code Message
-Error 1054 Unknown column 'b' in 'field list'
-INSERT INTO t1 SELECT b FROM t1;
-ERROR 42S22: Unknown column 'b' in 'field list'
-DROP TABLE t1;
-flush status;
-drop table if exists t1, t2;
-create table t1 (a int unique);
-create table t2 (a int);
-drop function if exists f1;
-Warnings:
-Note 1305 FUNCTION test.f1 does not exist
-drop function if exists f2;
-Warnings:
-Note 1305 FUNCTION test.f2 does not exist
-create function f1() returns int
-begin
-insert into t1 (a) values (1);
-insert into t1 (a) values (1);
-return 1;
-end|
-create function f2() returns int
-begin
-insert into t2 (a) values (1);
-return 2;
-end|
-flush status;
-select f1(), f2();
-ERROR 23000: Duplicate entry '1' for key 'a'
-show status like 'Com_insert';
-Variable_name Value
-Com_insert 2
-select * from t1;
-a
-1
-select * from t2;
-a
-drop table t1;
-drop table t2;
-drop function f1;
-drop function f2;
-SET NAMES utf8;
-SET sql_quote_show_create= _binary x'5452C39C45';
-ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TR\xC3\x9CE'
-SET sql_quote_show_create= _utf8 x'5452C39C45';
-ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TRÃœE'
-SET sql_quote_show_create=_latin1 x'5452DC45';
-ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TRÃœE'
-SET sql_quote_show_create='TRÃœE';
-ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TRÃœE'
-SET sql_quote_show_create=TRÃœE;
-ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TRÃœE'
-SET NAMES latin1;
-SET sql_quote_show_create= _binary x'5452C39C45';
-ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TR\xC3\x9CE'
-SET sql_quote_show_create= _utf8 x'5452C39C45';
-ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TRÜE'
-SET sql_quote_show_create=_latin1 x'5452DC45';
-ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TRÜE'
-SET sql_quote_show_create='TRÜE';
-ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TRÜE'
-SET sql_quote_show_create=TRÜE;
-ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TRÜE'
-SET NAMES binary;
-SET sql_quote_show_create= _binary x'5452C39C45';
-ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TR\xC3\x9CE'
-SET sql_quote_show_create= _utf8 x'5452C39C45';
-ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TRÃœE'
-SET sql_quote_show_create=_latin1 x'5452DC45';
-ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TRÃœE'
-#
-# Bug#52430 Incorrect key in the error message for duplicate key error involving BINARY type
-#
-CREATE TABLE t1(c1 BINARY(10), c2 BINARY(10), c3 BINARY(10),
-PRIMARY KEY(c1,c2,c3));
-INSERT INTO t1 (c1,c2,c3) VALUES('abc','abc','abc');
-INSERT INTO t1 (c1,c2,c3) VALUES('abc','abc','abc');
-ERROR 23000: Duplicate entry 'abc-abc-abc' for key 'PRIMARY'
-DROP TABLE t1;
-CREATE TABLE t1 (f1 VARBINARY(19) PRIMARY KEY);
-INSERT INTO t1 VALUES ('abc\0\0');
-INSERT INTO t1 VALUES ('abc\0\0');
-ERROR 23000: Duplicate entry 'abc\x00\x00' for key 'PRIMARY'
-DROP TABLE t1;
-#
-# Bug#57882: Item_func_conv_charset::val_str(String*):
-# Assertion `fixed == 1' failed
-#
-SELECT (CONVERT('0' USING latin1) IN (CHAR(COT('v') USING utf8),''));
-ERROR 22003: DOUBLE value is out of range in 'cot('v')'
-SET NAMES utf8 COLLATE utf8_latvian_ci ;
-SELECT UPDATEXML(-73 * -2465717823867977728,@@global.auto_increment_increment,null);
-ERROR 22003: BIGINT value is out of range in '-73 * -2465717823867977728'
-#
-# End Bug#57882
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2(a INT PRIMARY KEY, b INT);
-SELECT '' AS b FROM t1 GROUP BY VALUE(b);
-ERROR 42S22: Unknown column '' in 'VALUES() function'
-REPLACE t2(b) SELECT '' AS b FROM t1 GROUP BY VALUE(b);
-ERROR 42S22: Unknown column '' in 'VALUES() function'
-UPDATE t2 SET a=(SELECT '' AS b FROM t1 GROUP BY VALUE(b));
-ERROR 42S22: Unknown column '' in 'VALUES() function'
-INSERT INTO t2 VALUES (1,0) ON DUPLICATE KEY UPDATE
-b=(SELECT '' AS b FROM t1 GROUP BY VALUE(b));
-ERROR 42S22: Unknown column '' in 'VALUES() function'
-INSERT INTO t2(a,b) VALUES (1,0) ON DUPLICATE KEY UPDATE
-b=(SELECT VALUE(a)+2 FROM t1);
-DROP TABLE t1, t2;
-#
-# MDEV-492: incorrect error check before sending OK in mysql_update
-#
-CREATE TABLE t1 (a CHAR(3), b BLOB);
-UPDATE t1 SET a = 'new'
-WHERE COLUMN_CREATE( 1, 'v', 1, 'w' ) IS NULL;
-ERROR 22007: Illegal value used as argument of dynamic column function
-drop table t1;
-set max_session_mem_used = 50000;
-select * from seq_1_to_1000;
-set max_session_mem_used = 8192;
-select * from seq_1_to_1000;
-#
-# MDEV-14269 errors.test fails with valgrind (Conditional jump or move depends on uninitialised value)
-#
-SET NAMES utf8;
-SELECT UPDATEXML(-73 * -2465717823867977728,@@global.auto_increment_increment,null);
-ERROR 22003: BIGINT value is out of range in '-73 * -2465717823867977728'
-SELECT UPDATEXML(-73 * -2465717823867977728,@@global.long_query_time,null);
-ERROR 22003: BIGINT value is out of range in '-73 * -2465717823867977728'
diff --git a/mysql-test/r/events_1.result b/mysql-test/r/events_1.result
deleted file mode 100644
index fc8d02e5e93..00000000000
--- a/mysql-test/r/events_1.result
+++ /dev/null
@@ -1,502 +0,0 @@
-set sql_mode="";
-call mtr.add_suppression("Column count of mysql.event is wrong. Expected .*, found .*\. The table is probably corrupted");
-drop database if exists events_test;
-drop database if exists db_x;
-drop database if exists mysqltest_db2;
-drop database if exists mysqltest_no_such_database;
-create database events_test;
-use events_test;
-CREATE USER pauline@localhost;
-CREATE DATABASE db_x;
-GRANT EVENT ON db_x.* TO pauline@localhost;
-USE db_x;
-CREATE TABLE x_table(a int);
-connect priv_conn,localhost,pauline,,db_x;
-CREATE EVENT e_x1 ON SCHEDULE EVERY 1 SECOND DO DROP DATABASE db_x;
-CREATE EVENT e_x2 ON SCHEDULE EVERY 1 SECOND DO DROP TABLE x_table;
-connection default;
-SHOW DATABASES LIKE 'db_x';
-Database (db_x)
-db_x
-SET GLOBAL event_scheduler=1;
-SHOW DATABASES LIKE 'db_x';
-Database (db_x)
-db_x
-SHOW TABLES FROM db_x;
-Tables_in_db_x
-x_table
-SET GLOBAL event_scheduler=off;
-connection priv_conn;
-DROP EVENT e_x1;
-DROP EVENT e_x2;
-disconnect priv_conn;
-connection default;
-DROP DATABASE db_x;
-DROP USER pauline@localhost;
-USE events_test;
-SET GLOBAL event_scheduler=off;
-drop event if exists event1;
-Warnings:
-Note 1305 Event event1 does not exist
-create event event1 on schedule every 15 minute starts now() ends date_add(now(), interval 5 hour) DO begin end;
-alter event event1 rename to event2 enable;
-alter event event2 disable;
-alter event event2 enable;
-alter event event2 on completion not preserve;
-alter event event2 on schedule every 1 year on completion preserve rename to event3 comment "new comment" do begin select 1; end__
-alter event event3 rename to event2;
-drop event event2;
-create event event2 on schedule every 2 second starts now() ends date_add(now(), interval 5 hour) comment "some" DO begin end;
-drop event event2;
-CREATE EVENT event_starts_test ON SCHEDULE EVERY 10 SECOND COMMENT "" DO SELECT 1;
-SELECT interval_field, interval_value, body FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
-interval_field interval_value body
-SECOND 10 SELECT 1
-SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
-execute_at IS NULL starts IS NULL ends IS NULL comment
-1 0 1
-ALTER EVENT event_starts_test ON SCHEDULE AT '2020-02-02 20:00:02';
-SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
-execute_at IS NULL starts IS NULL ends IS NULL comment
-0 1 1
-ALTER EVENT event_starts_test COMMENT "non-empty comment";
-SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
-execute_at IS NULL starts IS NULL ends IS NULL comment
-0 1 1 non-empty comment
-ALTER EVENT event_starts_test COMMENT "";
-SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
-execute_at IS NULL starts IS NULL ends IS NULL comment
-0 1 1
-DROP EVENT event_starts_test;
-CREATE EVENT event_starts_test ON SCHEDULE EVERY 20 SECOND STARTS '2020-02-02 20:00:02' ENDS '2022-02-02 20:00:02' DO SELECT 2;
-SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
-execute_at IS NULL starts IS NULL ends IS NULL comment
-1 0 0
-ALTER EVENT event_starts_test COMMENT "non-empty comment";
-SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
-execute_at IS NULL starts IS NULL ends IS NULL comment
-1 0 0 non-empty comment
-ALTER EVENT event_starts_test COMMENT "";
-SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
-execute_at IS NULL starts IS NULL ends IS NULL comment
-1 0 0
-DROP EVENT event_starts_test;
-create table test_nested(a int);
-create event e_43 on schedule every 1 second do set @a = 5;
-alter event e_43 do alter event e_43 do set @a = 4;
-ERROR HY000: Recursion of EVENT DDL statements is forbidden when body is present
-alter event e_43 do
-begin
-alter event e_43 on schedule every 5 minute;
-insert into test_nested values(1);
-end|
-set global event_scheduler = on;
-select db, name, body, status, interval_field, interval_value from mysql.event;
-db name body status interval_field interval_value
-events_test e_43 begin
-alter event e_43 on schedule every 5 minute;
-insert into test_nested values(1);
-end ENABLED MINUTE 5
-drop event e_43;
-drop table test_nested;
-"Let's check whether we can use non-qualified names"
-create table non_qualif(a int);
-create event non_qualif_ev on schedule every 10 minute do insert into non_qualif values (800219);
-select * from non_qualif;
-a
-800219
-drop event non_qualif_ev;
-drop table non_qualif;
-alter event non_existant rename to non_existant_too;
-ERROR HY000: Unknown event 'non_existant'
-set global event_scheduler = off;
-create event existant on schedule at now() + interval 1 year do select 12;
-alter event non_existant rename to existant;
-ERROR HY000: Event 'existant' already exists
-alter event existant rename to events_test.existant;
-ERROR HY000: Same old and new event name
-drop event existant;
-create table t_event3 (a int, b float);
-drop event if exists event3;
-Warnings:
-Note 1305 Event event3 does not exist
-create event event3 on schedule every 50 + 10 minute starts date_add(curdate(), interval 5 minute) ends date_add(curdate(), interval 5 day) comment "portokala_comment" DO insert into t_event3 values (unix_timestamp(), rand());
-select count(*) from t_event3;
-count(*)
-0
-drop event event3;
-drop table t_event3;
-set names utf8;
-CREATE EVENT root6 ON SCHEDULE EVERY '10:20' MINUTE_SECOND ON COMPLETION PRESERVE ENABLE COMMENT 'some comment' DO select 1;
-SHOW CREATE EVENT root6;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root6 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root6` ON SCHEDULE EVERY '10:20' MINUTE_SECOND STARTS '#' ON COMPLETION PRESERVE ENABLE COMMENT 'some comment' DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root7 on schedule every 2 year do select 1;
-SHOW CREATE EVENT root7;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root7 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root7` ON SCHEDULE EVERY 2 YEAR STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root8 on schedule every '2:5' year_month do select 1;
-SHOW CREATE EVENT root8;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root8 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root8` ON SCHEDULE EVERY '2-5' YEAR_MONTH STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root8_1 on schedule every '2:15' year_month do select 1;
-SHOW CREATE EVENT root8_1;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root8_1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root8_1` ON SCHEDULE EVERY '3-3' YEAR_MONTH STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root9 on schedule every 2 week ON COMPLETION PRESERVE DISABLE COMMENT 'коментар на кирилица' do select 1;
-SHOW CREATE EVENT root9;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root9 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root9` ON SCHEDULE EVERY 2 WEEK STARTS '#' ON COMPLETION PRESERVE DISABLE COMMENT 'коментар на кирилица' DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root10 on schedule every '20:5' day_hour do select 1;
-SHOW CREATE EVENT root10;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root10 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root10` ON SCHEDULE EVERY '20 5' DAY_HOUR STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root11 on schedule every '20:25' day_hour do select 1;
-SHOW CREATE EVENT root11;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root11 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root11` ON SCHEDULE EVERY '21 1' DAY_HOUR STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root12 on schedule every '20:25' hour_minute do select 1;
-SHOW CREATE EVENT root12;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root12 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root12` ON SCHEDULE EVERY '20:25' HOUR_MINUTE STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root13 on schedule every '25:25' hour_minute do select 1;
-SHOW CREATE EVENT root13;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root13 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root13` ON SCHEDULE EVERY '25:25' HOUR_MINUTE STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root13_1 on schedule every '11:65' hour_minute do select 1;
-SHOW CREATE EVENT root13_1;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root13_1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root13_1` ON SCHEDULE EVERY '12:5' HOUR_MINUTE STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root14 on schedule every '35:35' minute_second do select 1;
-SHOW CREATE EVENT root14;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root14 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root14` ON SCHEDULE EVERY '35:35' MINUTE_SECOND STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root15 on schedule every '35:66' minute_second do select 1;
-SHOW CREATE EVENT root15;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root15 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root15` ON SCHEDULE EVERY '36:6' MINUTE_SECOND STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root16 on schedule every '35:56' day_minute do select 1;
-SHOW CREATE EVENT root16;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root16 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root16` ON SCHEDULE EVERY '1 11:56' DAY_MINUTE STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root17 on schedule every '35:12:45' day_minute do select 1;
-SHOW CREATE EVENT root17;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root17 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root17` ON SCHEDULE EVERY '35 12:45' DAY_MINUTE STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root17_1 on schedule every '35:25:65' day_minute do select 1;
-SHOW CREATE EVENT root17_1;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root17_1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root17_1` ON SCHEDULE EVERY '36 2:5' DAY_MINUTE STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root18 on schedule every '35:12:45' hour_second do select 1;
-SHOW CREATE EVENT root18;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root18 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root18` ON SCHEDULE EVERY '35:12:45' HOUR_SECOND STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root19 on schedule every '15:59:85' hour_second do select 1;
-SHOW CREATE EVENT root19;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root19 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root19` ON SCHEDULE EVERY '16:0:25' HOUR_SECOND STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-create event root20 on schedule every '50:20:12:45' day_second do select 1;
-SHOW CREATE EVENT root20;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-root20 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `root20` ON SCHEDULE EVERY '50 20:12:45' DAY_SECOND STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-set names cp1251;
-create event ðóóò21 on schedule every '50:23:59:95' day_second COMMENT 'òîâà å 1251 êîìåíòàð' do select 1;
-SHOW CREATE EVENT ðóóò21;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ðóóò21 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `руут21` ON SCHEDULE EVERY '51 0:0:35' DAY_SECOND STARTS '#' ON COMPLETION NOT PRESERVE ENABLE COMMENT 'това е 1251 коментар' DO select 1 cp1251 cp1251_general_ci latin1_swedish_ci
-insert into mysql.event (
-db,
-name,
-body,
-definer,
-interval_value,
-interval_field,
-originator,
-character_set_client,
-collation_connection,
-db_collation,
-body_utf8)
-values (
-database(),
-"root22",
-"select 1",
-user(),
-100,
-"SECOND_MICROSECOND",
-1,
-'utf8',
-'utf8_general_ci',
-'utf8_general_ci',
-'select 1');
-show create event root22;
-ERROR 42000: This version of MariaDB doesn't yet support 'MICROSECOND'
-SHOW EVENTS;
-ERROR 42000: This version of MariaDB doesn't yet support 'MICROSECOND'
-drop event root22;
-create event root23 on schedule every -100 year do select 1;
-ERROR HY000: INTERVAL is either not positive or too big
-create event root23 on schedule every 222222222222222222222 year do select 1;
-ERROR HY000: INTERVAL is either not positive or too big
-drop event root6;
-drop event root7;
-drop event root8;
-drop event root8_1;
-drop event root9;
-drop event root10;
-drop event root11;
-drop event root12;
-drop event root13;
-drop event root13_1;
-drop event root14;
-drop event root15;
-drop event root16;
-drop event root17;
-drop event root17_1;
-drop event root18;
-drop event root19;
-drop event root20;
-drop event ðóóò21;
-set names latin1;
-Create a test event. Only event metadata is relevant,
-the actual schedule and body are not.
-CREATE EVENT intact_check ON SCHEDULE EVERY 10 HOUR DO SELECT "nothing";
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test intact_check root@localhost SYSTEM RECURRING NULL 10 # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-Try to alter mysql.event: the server should fail to load
-event information after mysql.event was tampered with.
-
-First, let's add a column to the end and check the error is emitted.
-
-ALTER TABLE mysql.event ADD dummy INT;
-SHOW EVENTS;
-ERROR HY000: Failed to open mysql.event
-SELECT event_name FROM INFORMATION_SCHEMA.events;
-ERROR HY000: Failed to open mysql.event
-SHOW CREATE EVENT intact_check;
-ERROR HY000: Failed to open mysql.event
-DROP EVENT no_such_event;
-ERROR HY000: Failed to open mysql.event
-CREATE EVENT intact_check_1 ON SCHEDULE EVERY 5 HOUR DO SELECT 5;
-ERROR HY000: Failed to open mysql.event
-ALTER EVENT intact_check_1 ON SCHEDULE EVERY 8 HOUR DO SELECT 8;
-ERROR HY000: Failed to open mysql.event
-ALTER EVENT intact_check_1 RENAME TO intact_check_2;
-ERROR HY000: Failed to open mysql.event
-DROP EVENT intact_check_1;
-ERROR HY000: Failed to open mysql.event
-DROP EVENT intact_check_2;
-ERROR HY000: Failed to open mysql.event
-DROP EVENT intact_check;
-ERROR HY000: Failed to open mysql.event
-DROP DATABASE IF EXISTS mysqltest_no_such_database;
-Warnings:
-Note 1008 Can't drop database 'mysqltest_no_such_database'; database doesn't exist
-CREATE DATABASE mysqltest_db2;
-DROP DATABASE mysqltest_db2;
-Warnings:
-Error 1545 Failed to open mysql.event
-SELECT @@event_scheduler;
-@@event_scheduler
-OFF
-SHOW VARIABLES LIKE 'event_scheduler';
-Variable_name Value
-event_scheduler OFF
-SET GLOBAL event_scheduler=OFF;
-ALTER TABLE mysql.event DROP dummy;
-DROP EVENT intact_check;
-CREATE EVENT intact_check ON SCHEDULE EVERY 10 HOUR DO SELECT "nothing";
-
-Now let's add a column to the first position: the server
-expects to see event schema name there
-
-ALTER TABLE mysql.event ADD dummy INT FIRST;
-SHOW EVENTS;
-ERROR HY000: Failed to open mysql.event
-SELECT event_name FROM INFORMATION_SCHEMA.events;
-ERROR HY000: Failed to open mysql.event
-SHOW CREATE EVENT intact_check;
-ERROR HY000: Failed to open mysql.event
-DROP EVENT no_such_event;
-ERROR HY000: Failed to open mysql.event
-CREATE EVENT intact_check_1 ON SCHEDULE EVERY 5 HOUR DO SELECT 5;
-ERROR HY000: Failed to open mysql.event
-ALTER EVENT intact_check_1 ON SCHEDULE EVERY 8 HOUR DO SELECT 8;
-ERROR HY000: Failed to open mysql.event
-ALTER EVENT intact_check_1 RENAME TO intact_check_2;
-ERROR HY000: Failed to open mysql.event
-DROP EVENT intact_check_1;
-ERROR HY000: Failed to open mysql.event
-DROP EVENT intact_check_2;
-ERROR HY000: Failed to open mysql.event
-DROP EVENT intact_check;
-ERROR HY000: Failed to open mysql.event
-DROP DATABASE IF EXISTS mysqltest_no_such_database;
-Warnings:
-Note 1008 Can't drop database 'mysqltest_no_such_database'; database doesn't exist
-CREATE DATABASE mysqltest_db2;
-DROP DATABASE mysqltest_db2;
-Warnings:
-Error 1545 Failed to open mysql.event
-SELECT @@event_scheduler;
-@@event_scheduler
-OFF
-SHOW VARIABLES LIKE 'event_scheduler';
-Variable_name Value
-event_scheduler OFF
-SET GLOBAL event_scheduler=OFF;
-Clean up
-ALTER TABLE mysql.event DROP dummy;
-DELETE FROM mysql.event;
-CREATE EVENT intact_check ON SCHEDULE EVERY 10 HOUR DO SELECT "nothing";
-Back up the table, further changes are not reversible
-CREATE TABLE event_like LIKE mysql.event;
-INSERT INTO event_like SELECT * FROM mysql.event;
-
-Drop some columns and try more checks.
-
-
-ALTER TABLE mysql.event DROP comment, DROP starts;
-SHOW EVENTS;
-ERROR HY000: Failed to open mysql.event
-SELECT event_name FROM INFORMATION_SCHEMA.EVENTS;
-ERROR HY000: Failed to open mysql.event
-SHOW CREATE EVENT intact_check;
-ERROR HY000: Failed to open mysql.event
-DROP EVENT no_such_event;
-ERROR HY000: Failed to open mysql.event
-CREATE EVENT intact_check_1 ON SCHEDULE EVERY 5 HOUR DO SELECT 5;
-ERROR HY000: Failed to open mysql.event
-ALTER EVENT intact_check_1 ON SCHEDULE EVERY 8 HOUR DO SELECT 8;
-ERROR HY000: Failed to open mysql.event
-ALTER EVENT intact_check_1 RENAME TO intact_check_2;
-ERROR HY000: Failed to open mysql.event
-DROP EVENT intact_check_1;
-ERROR HY000: Failed to open mysql.event
-DROP EVENT intact_check_2;
-ERROR HY000: Failed to open mysql.event
-DROP EVENT intact_check;
-ERROR HY000: Failed to open mysql.event
-DROP DATABASE IF EXISTS mysqltest_no_such_database;
-Warnings:
-Note 1008 Can't drop database 'mysqltest_no_such_database'; database doesn't exist
-CREATE DATABASE mysqltest_db2;
-DROP DATABASE mysqltest_db2;
-Warnings:
-Error 1545 Failed to open mysql.event
-SELECT @@event_scheduler;
-@@event_scheduler
-OFF
-SHOW VARIABLES LIKE 'event_scheduler';
-Variable_name Value
-event_scheduler OFF
-SET GLOBAL event_scheduler=OFF;
-
-Now drop the table, and test again
-
-
-DROP TABLE mysql.event;
-SHOW EVENTS;
-ERROR 42S02: Table 'mysql.event' doesn't exist
-SELECT event_name FROM INFORMATION_SCHEMA.events;
-ERROR 42S02: Table 'mysql.event' doesn't exist
-SHOW CREATE EVENT intact_check;
-ERROR 42S02: Table 'mysql.event' doesn't exist
-DROP EVENT no_such_event;
-ERROR 42S02: Table 'mysql.event' doesn't exist
-CREATE EVENT intact_check_1 ON SCHEDULE EVERY 5 HOUR DO SELECT 5;
-ERROR 42S02: Table 'mysql.event' doesn't exist
-ALTER EVENT intact_check_1 ON SCHEDULE EVERY 8 HOUR DO SELECT 8;
-ERROR 42S02: Table 'mysql.event' doesn't exist
-ALTER EVENT intact_check_1 RENAME TO intact_check_2;
-ERROR 42S02: Table 'mysql.event' doesn't exist
-DROP EVENT intact_check_1;
-ERROR 42S02: Table 'mysql.event' doesn't exist
-DROP EVENT intact_check_2;
-ERROR 42S02: Table 'mysql.event' doesn't exist
-DROP EVENT intact_check;
-ERROR 42S02: Table 'mysql.event' doesn't exist
-DROP DATABASE IF EXISTS mysqltest_no_such_database;
-Warnings:
-Note 1008 Can't drop database 'mysqltest_no_such_database'; database doesn't exist
-CREATE DATABASE mysqltest_db2;
-DROP DATABASE mysqltest_db2;
-Warnings:
-Error 1146 Table 'mysql.event' doesn't exist
-OK, there is an unnecessary warning about the non-existent table
-but it's not easy to fix and no one complained about it.
-A similar warning is printed if mysql.proc is missing.
-SHOW WARNINGS;
-Level Code Message
-Error 1146 Table 'mysql.event' doesn't exist
-SELECT @@event_scheduler;
-@@event_scheduler
-OFF
-SHOW VARIABLES LIKE 'event_scheduler';
-Variable_name Value
-event_scheduler OFF
-SET GLOBAL event_scheduler=OFF;
-Restore the original table.
-CREATE TABLE mysql.event like event_like;
-DROP TABLE event_like;
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-
-#
-# Bug#12394306: the sever may crash if mysql.event is corrupted
-#
-
-CREATE EVENT ev1 ON SCHEDULE EVERY 5 HOUR DO SELECT 5;
-ALTER EVENT ev1 ON SCHEDULE EVERY 8 HOUR DO SELECT 8;
-
-CREATE TABLE event_original LIKE mysql.event;
-INSERT INTO event_original SELECT * FROM mysql.event;
-
-ALTER TABLE mysql.event MODIFY modified CHAR(1);
-Warnings:
-Warning 1265 Data truncated for column 'modified' at row 1
-
-SHOW EVENTS;
-ERROR HY000: Failed to open mysql.event
-
-SELECT event_name, created, last_altered FROM information_schema.events;
-ERROR HY000: Failed to open mysql.event
-
-CREATE EVENT ev2 ON SCHEDULE EVERY 5 HOUR DO SELECT 5;
-ERROR HY000: Failed to open mysql.event
-
-ALTER EVENT ev1 ON SCHEDULE EVERY 9 HOUR DO SELECT 9;
-ERROR HY000: Failed to open mysql.event
-
-DROP TABLE mysql.event;
-RENAME TABLE event_original TO mysql.event;
-
-DROP EVENT ev1;
-
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-#
-# MDEV-9524 Cannot load from mysql.event when sql_mode is set to PAD_CHAR_TO_FULL_LENGTH
-#
-CREATE TABLE t1 (a INT);
-CREATE EVENT ev1 ON SCHEDULE EVERY 5 SECOND DO DELETE FROM t1;
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test ev1 root@localhost SYSTEM RECURRING NULL 5 # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SET sql_mode=PAD_CHAR_TO_FULL_LENGTH;
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test ev1 root@localhost SYSTEM RECURRING NULL 5 # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-DROP EVENT ev1;
-CREATE EVENT ev1 ON SCHEDULE EVERY 5 SECOND DO DELETE FROM t1;
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test ev1 root@localhost SYSTEM RECURRING NULL 5 # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-DROP EVENT ev1;
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-
-#
-# End of tests
-#
-drop database events_test;
diff --git a/mysql-test/r/events_2.result b/mysql-test/r/events_2.result
deleted file mode 100644
index 6d2ebda03d0..00000000000
--- a/mysql-test/r/events_2.result
+++ /dev/null
@@ -1,409 +0,0 @@
-set sql_mode="";
-drop database if exists events_test;
-create database events_test;
-use events_test;
-create event e_26 on schedule at '2037-01-01 00:00:00' disable do set @a = 5;
-select db, name, body, definer, convert_tz(execute_at, 'UTC', 'SYSTEM'), on_completion from mysql.event;
-db name body definer convert_tz(execute_at, 'UTC', 'SYSTEM') on_completion
-events_test e_26 set @a = 5 root@localhost 2037-01-01 00:00:00 DROP
-drop event e_26;
-create event e_26 on schedule at NULL disable do set @a = 5;
-ERROR HY000: Incorrect AT value: 'NULL'
-create event e_26 on schedule at 'definitely not a datetime' disable do set @a = 5;
-ERROR HY000: Incorrect AT value: 'definitely not a datetime'
-set names utf8;
-create event задачка on schedule every 123 minute starts now() ends now() + interval 1 month do select 1;
-drop event задачка;
-"DISABLE the scheduler. Testing that it does not work when the variable is 0"
-set global event_scheduler=off;
-select definer, name, db from mysql.event;
-definer name db
-select get_lock("test_lock1", 20);
-get_lock("test_lock1", 20)
-1
-create event закачка on schedule every 10 hour do select get_lock("test_lock1", 20);
-"Should return 1 row"
-select definer, name, db from mysql.event;
-definer name db
-root@localhost закачка events_test
-"Should be only 0 process"
-select /*1*/ user, host, db, command, state, info
-from information_schema.processlist
-where (user='event_scheduler')
-order by info;
-user host db command state info
-select release_lock("test_lock1");
-release_lock("test_lock1")
-1
-drop event закачка;
-"Should have 0 events"
-select count(*) from mysql.event;
-count(*)
-0
-"ENABLE the scheduler and get a lock"
-set global event_scheduler=on;
-select get_lock("test_lock2", 20);
-get_lock("test_lock2", 20)
-1
-"Create an event which tries to acquire a mutex. The event locks on the mutex"
-create event закачка on schedule every 10 hour do select get_lock("test_lock2", 20);
-"Should have only 2 processes: the scheduler and the locked event"
-select /*2*/ user, host, db, command, state, info
-from information_schema.processlist
-where (info like "select get_lock%" OR user='event_scheduler')
-order by info;
-user host db command state info
-event_scheduler localhost NULL Daemon Waiting for next activation NULL
-root localhost events_test Connect User lock select get_lock("test_lock2", 20)
-"Release the mutex, the event worker should finish."
-select release_lock("test_lock2");
-release_lock("test_lock2")
-1
-drop event закачка;
-set global event_scheduler=1;
-select get_lock("test_lock2_1", 20);
-get_lock("test_lock2_1", 20)
-1
-create event закачка21 on schedule every 10 hour do select get_lock("test_lock2_1", 20);
-"Should have only 2 processes: the scheduler and the locked event"
-select /*3*/ user, host, db, command, state, info
-from information_schema.processlist
-where (info like "select get_lock%" OR user='event_scheduler')
-order by info;
-user host db command state info
-event_scheduler localhost NULL Daemon Waiting for next activation NULL
-root localhost events_test Connect User lock select get_lock("test_lock2_1", 20)
-set global event_scheduler=off;
-"Should have only our process now:"
-select /*4*/ user, host, db, command, state, info
-from information_schema.processlist
-where (info like "select get_lock%" OR user='event_scheduler')
-order by info;
-user host db command state info
-root localhost events_test Connect User lock select get_lock("test_lock2_1", 20)
-select release_lock("test_lock2_1");
-release_lock("test_lock2_1")
-1
-drop event закачка21;
-create table t_16 (s1 int);
-create trigger t_16_bi before insert on t_16 for each row create event e_16 on schedule every 1 second do set @a=5;
-ERROR HY000: Recursion of EVENT DDL statements is forbidden when body is present
-drop table t_16;
-create event white_space
-on schedule every 10 hour
-disable
-do
-select 1;
-select event_schema, event_name, definer, event_definition from information_schema.events where event_name='white_space';
-event_schema event_name definer event_definition
-events_test white_space root@localhost select 1
-drop event white_space;
-create event white_space on schedule every 10 hour disable do
-select 2;
-select event_schema, event_name, definer, event_definition from information_schema.events where event_name='white_space';
-event_schema event_name definer event_definition
-events_test white_space root@localhost select 2
-drop event white_space;
-create event white_space on schedule every 10 hour disable do select 3;
-select event_schema, event_name, definer, event_definition from information_schema.events where event_name='white_space';
-event_schema event_name definer event_definition
-events_test white_space root@localhost select 3
-drop event white_space;
-create event e1 on schedule every 1 year do set @a = 5;
-create table t1 (s1 int);
-create trigger t1_ai after insert on t1 for each row show create event e1;
-ERROR 0A000: Not allowed to return a result set from a trigger
-drop table t1;
-drop event e1;
-SHOW EVENTS FROM aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
-ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
-SHOW EVENTS FROM ``;
-ERROR 42000: Incorrect database name ''
-SHOW EVENTS FROM `events\\test`;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-
-LOCK TABLES mode.
-
-create table t1 (a int);
-create event e1 on schedule every 10 hour do select 1;
-lock table t1 read;
-show create event e1;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-e1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `e1` ON SCHEDULE EVERY 10 HOUR STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-select event_name from information_schema.events;
-event_name
-e1
-create event e2 on schedule every 10 hour do select 1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter event e2 disable;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter event e2 rename to e3;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-drop event e2;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-drop event e1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-lock table t1 write;
-show create event e1;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-e1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `e1` ON SCHEDULE EVERY 10 HOUR STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-select event_name from information_schema.events;
-event_name
-e1
-create event e2 on schedule every 10 hour do select 1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter event e2 disable;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter event e2 rename to e3;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-drop event e2;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-drop event e1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-lock table t1 read, mysql.event read;
-show create event e1;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-e1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `e1` ON SCHEDULE EVERY 10 HOUR STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-select event_name from information_schema.events;
-event_name
-e1
-create event e2 on schedule every 10 hour do select 1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter event e2 disable;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter event e2 rename to e3;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-drop event e2;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-drop event e1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-lock table t1 write, mysql.event read;
-show create event e1;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-e1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `e1` ON SCHEDULE EVERY 10 HOUR STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-select event_name from information_schema.events;
-event_name
-e1
-create event e2 on schedule every 10 hour do select 1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter event e2 disable;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter event e2 rename to e3;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-drop event e2;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-drop event e1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-lock table t1 read, mysql.event write;
-ERROR HY000: You can't combine write-locking of system tables with other tables or lock types
-lock table t1 write, mysql.event write;
-ERROR HY000: You can't combine write-locking of system tables with other tables or lock types
-lock table mysql.event write;
-show create event e1;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-e1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `e1` ON SCHEDULE EVERY 10 HOUR STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO select 1 utf8 utf8_general_ci latin1_swedish_ci
-select event_name from information_schema.events;
-event_name
-e1
-create event e2 on schedule every 10 hour do select 1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter event e2 disable;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter event e2 rename to e3;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-drop event e3;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-drop event e1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-drop event e1;
-Make sure we have left no events
-select event_name from information_schema.events;
-event_name
-
-Events in sub-statements, events and prelocking
-
-
-create event e1 on schedule every 10 hour do select 1;
-create function f1() returns int
-begin
-show create event e1;
-return 1;
-end|
-ERROR 0A000: Not allowed to return a result set from a function
-create trigger trg before insert on t1 for each row
-begin
-show create event e1;
-end|
-ERROR 0A000: Not allowed to return a result set from a trigger
-create function f1() returns int
-begin
-select event_name from information_schema.events;
-return 1;
-end|
-ERROR 0A000: Not allowed to return a result set from a function
-create trigger trg before insert on t1 for each row
-begin
-select event_name from information_schema.events;
-end|
-ERROR 0A000: Not allowed to return a result set from a trigger
-create function f1() returns int
-begin
-create event e2 on schedule every 10 hour do select 1;
-return 1;
-end|
-ERROR HY000: Recursion of EVENT DDL statements is forbidden when body is present
-create function f1() returns int
-begin
-alter event e1 rename to e2;
-return 1;
-end|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-create function f1() returns int
-begin
-drop event e2;
-return 1;
-end|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-----------------------------------------------------------------------
-create trigger trg before insert on t1 for each row
-begin
-set new.a= f1();
-end|
-create function f1() returns int
-begin
-call p1();
-return 0;
-end|
-create procedure p1()
-begin
-select event_name from information_schema.events;
-end|
-insert into t1 (a) values (1)|
-ERROR 0A000: Not allowed to return a result set from a trigger
-drop procedure p1|
-create procedure p1()
-begin
-show create event e1;
-end|
-insert into t1 (a) values (1)|
-ERROR 0A000: Not allowed to return a result set from a trigger
-drop procedure p1|
-create procedure p1()
-begin
-create temporary table tmp select event_name from information_schema.events;
-end|
-expected to work, since we redirect the output into a tmp table
-insert into t1 (a) values (1)|
-select * from tmp|
-event_name
-e1
-drop temporary table tmp|
-drop procedure p1|
-create procedure p1()
-begin
-alter event e1 rename to e2;
-end|
-insert into t1 (a) values (1)|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-drop procedure p1|
-create procedure p1()
-begin
-drop event e1;
-end|
-insert into t1 (a) values (1)|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-drop table t1|
-drop event e1|
-set names utf8;
-create event имÑ_ÑобытиÑ_в_кодировке_утф8_длиной_больше_чем_48 on schedule every 2 year do select 1;
-select EVENT_NAME from information_schema.events
-where event_schema='test';
-EVENT_NAME
-drop event имÑ_ÑобытиÑ_в_кодировке_утф8_длиной_больше_чем_48;
-create event
-очень_очень_очень_очень_очень_очень_очень_очень_длиннаÑ_Ñтрока_66
-on schedule every 2 year do select 1;
-ERROR 42000: Identifier name 'очень_очень_очень_очень_очень_очень_очень_очень_длинна' is too long
-create event event_35981 on schedule every 6 month on completion preserve
-disable
-do
-select 1;
-The following SELECTs should all give 1
-select count(*) from information_schema.events
-where event_schema = database() and event_name = 'event_35981' and
-on_completion = 'PRESERVE';
-count(*)
-1
-alter event event_35981 enable;
-select count(*) from information_schema.events
-where event_schema = database() and event_name = 'event_35981' and
-on_completion = 'PRESERVE';
-count(*)
-1
-alter event event_35981 on completion not preserve;
-select count(*) from information_schema.events
-where event_schema = database() and event_name = 'event_35981' and
-on_completion = 'NOT PRESERVE';
-count(*)
-1
-alter event event_35981 disable;
-select count(*) from information_schema.events
-where event_schema = database() and event_name = 'event_35981' and
-on_completion = 'NOT PRESERVE';
-count(*)
-1
-alter event event_35981 on completion preserve;
-select count(*) from information_schema.events
-where event_schema = database() and event_name = 'event_35981' and
-on_completion = 'PRESERVE';
-count(*)
-1
-drop event event_35981;
-create event event_35981 on schedule every 6 month disable
-do
-select 1;
-select count(*) from information_schema.events
-where event_schema = database() and event_name = 'event_35981' and
-on_completion = 'NOT PRESERVE';
-count(*)
-1
-drop event event_35981;
-create event event_35981 on schedule every 1 hour starts current_timestamp
-on completion not preserve
-do
-select 1;
-alter event event_35981 on schedule every 1 hour starts '1999-01-01 00:00:00'
- ends '1999-01-02 00:00:00';
-ERROR HY000: Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was not changed. Specify a time in the future
-drop event event_35981;
-create event event_35981 on schedule every 1 hour starts current_timestamp
-on completion not preserve
-do
-select 1;
-alter event event_35981 on schedule every 1 hour starts '1999-01-01 00:00:00'
- ends '1999-01-02 00:00:00' on completion preserve;
-Warnings:
-Note 1544 Event execution time is in the past. Event has been disabled
-drop event event_35981;
-create event event_35981 on schedule every 1 hour starts current_timestamp
-on completion preserve
-do
-select 1;
-alter event event_35981 on schedule every 1 hour starts '1999-01-01 00:00:00'
- ends '1999-01-02 00:00:00';
-Warnings:
-Note 1544 Event execution time is in the past. Event has been disabled
-alter event event_35981 on schedule every 1 hour starts '1999-01-01 00:00:00'
- ends '1999-01-02 00:00:00' on completion not preserve;
-ERROR HY000: Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was not changed. Specify a time in the future
-alter event event_35981 on schedule every 1 hour starts '1999-01-01 00:00:00'
- ends '1999-01-02 00:00:00' on completion preserve;
-Warnings:
-Note 1544 Event execution time is in the past. Event has been disabled
-drop event event_35981;
-drop database events_test;
diff --git a/mysql-test/r/events_bugs.result b/mysql-test/r/events_bugs.result
deleted file mode 100644
index b56912dea7e..00000000000
--- a/mysql-test/r/events_bugs.result
+++ /dev/null
@@ -1,816 +0,0 @@
-SET SQL_MODE="";
-drop database if exists events_test;
-drop database if exists mysqltest_db1;
-drop database if exists mysqltest_db2;
-create database events_test;
-use events_test;
-set @concurrent_insert= @@global.concurrent_insert;
-set @@global.concurrent_insert = 0;
-select * from information_schema.global_variables where variable_name like 'event_scheduler';
-VARIABLE_NAME VARIABLE_VALUE
-EVENT_SCHEDULER ON
-SET GLOBAL event_scheduler = 'OFF';
-CREATE EVENT lower_case ON SCHEDULE EVERY 1 MINUTE DO SELECT 1;
-CREATE EVENT Lower_case ON SCHEDULE EVERY 2 MINUTE DO SELECT 2;
-ERROR HY000: Event 'Lower_case' already exists
-DROP EVENT Lower_case;
-SET NAMES cp1251;
-CREATE EVENT äîëåí_ðåãèñòúð_1251 ON SCHEDULE EVERY 1 YEAR DO SELECT 100;
-CREATE EVENT ÄîËåÍ_ðåãèñòúð_1251 ON SCHEDULE EVERY 2 YEAR DO SELECT 200;
-ERROR HY000: Event 'ÄîËåÍ_ðåãèñòúð_1251' already exists
-DROP EVENT ÄîËåÍ_ðåãèñòúð_1251;
-SET NAMES utf8;
-CREATE EVENT долен_региÑÑ‚ÑŠÑ€_утф8 ON SCHEDULE EVERY 3 YEAR DO SELECT 300;
-CREATE EVENT ДОЛЕÐ_региÑÑ‚ÑŠÑ€_утф8 ON SCHEDULE EVERY 4 YEAR DO SELECT 400;
-ERROR HY000: Event 'ДОЛЕÐ_региÑÑ‚ÑŠÑ€_утф8' already exists
-DROP EVENT ДОЛЕÐ_региÑÑ‚ÑŠÑ€_утф8;
-SET NAMES latin1;
-set @a=3;
-CREATE PROCEDURE p_16 () CREATE EVENT e_16 ON SCHEDULE EVERY @a SECOND DO SET @a=5;
-ERROR HY000: Recursion of EVENT DDL statements is forbidden when body is present
-create event e_55 on schedule at 99990101000000 do drop table t;
-ERROR HY000: Incorrect AT value: '99990101000000'
-create event e_55 on schedule every 10 hour starts 99990101000000 do drop table t;
-ERROR HY000: Incorrect STARTS value: '99990101000000'
-create event e_55 on schedule every 10 minute ends 99990101000000 do drop table t;
-ERROR HY000: ENDS is either invalid or before STARTS
-create event e_55 on schedule at 10000101000000 do drop table t;
-ERROR HY000: Incorrect AT value: '10000101000000'
-create event e_55 on schedule at 20000101000000 do drop table t;
-Warnings:
-Note 1588 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation
-show events;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-create event e_55 on schedule at 20200101000000 starts 10000101000000 do drop table t;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'starts 10000101000000 do drop table t' at line 1
-create event e_55 on schedule at 20200101000000 ends 10000101000000 do drop table t;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ends 10000101000000 do drop table t' at line 1
-create event e_55 on schedule at 20200101000000 starts 10000101000000 ends 10000101000000 do drop table t;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'starts 10000101000000 ends 10000101000000 do drop table t' at line 1
-create event e_55 on schedule every 10 hour starts 10000101000000 do drop table t;
-ERROR HY000: Incorrect STARTS value: '10000101000000'
-set global event_scheduler=off;
-delete from mysql.event;
-set global event_scheduler= on;
-set @old_sql_mode:=@@sql_mode;
-set sql_mode=ansi;
-select get_lock('test_bug16407', 60);
-get_lock('test_bug16407', 60)
-1
-create event e_16407 on schedule every 60 second do
-begin
-select get_lock('test_bug16407', 60);
-end|
-"Now if everything is fine the event has compiled and is locked"
-select /*1*/ user, host, db, info from information_schema.processlist
-where state = 'User lock' and info = 'select get_lock(\'test_bug16407\', 60)';
-user host db info
-root localhost events_test select get_lock('test_bug16407', 60)
-select release_lock('test_bug16407');
-release_lock('test_bug16407')
-1
-set global event_scheduler= off;
-select event_schema, event_name, sql_mode from information_schema.events order by event_schema, event_name;
-event_schema event_name sql_mode
-events_test e_16407 REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI
-"Let's check whether we change the sql_mode on ALTER EVENT"
-set sql_mode='traditional';
-alter event e_16407 do select 1;
-select event_schema, event_name, sql_mode from information_schema.events order by event_schema, event_name;
-event_schema event_name sql_mode
-events_test e_16407 STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-drop event e_16407;
-set sql_mode="ansi";
-select get_lock('ee_16407_2', 60);
-get_lock('ee_16407_2', 60)
-1
-set global event_scheduler= 1;
-"Another sql_mode test"
-set sql_mode="traditional";
-create table events_smode_test(ev_name char(10), a date);
-"This should never insert something"
-create event ee_16407_2 on schedule every 60 second do
-begin
-select get_lock('ee_16407_2', 60); /*ee_16407_2*/
-select release_lock('ee_16407_2');
-insert into events_test.events_smode_test values('ee_16407_2','1980-19-02');
-end|
-insert into events_test.events_smode_test values ('test','1980-19-02')|
-ERROR 22007: Incorrect date value: '1980-19-02' for column 'a' at row 1
-"This is ok"
-create event ee_16407_3 on schedule every 60 second do
-begin
-select get_lock('ee_16407_2', 60); /*ee_16407_3*/
-select release_lock('ee_16407_2');
-insert into events_test.events_smode_test values ('ee_16407_3','1980-02-19');
-insert into events_test.events_smode_test values ('ee_16407_3','1980-02-29');
-end|
-set sql_mode=""|
-"This will insert rows but they will be truncated"
-create event ee_16407_4 on schedule every 60 second do
-begin
-select get_lock('ee_16407_2', 60); /*ee_16407_4*/
-select release_lock('ee_16407_2');
-insert into events_test.events_smode_test values ('ee_16407_4','10-11-1956');
-end|
-select event_schema, event_name, sql_mode from information_schema.events order by event_schema, event_name;
-event_schema event_name sql_mode
-events_test ee_16407_2 STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-events_test ee_16407_3 STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-events_test ee_16407_4
-select /*2*/ user, host, db, info from information_schema.processlist
-where state = 'User lock' and info = 'select get_lock(\'ee_16407_2\', 60)';
-user host db info
-root localhost events_test select get_lock('ee_16407_2', 60)
-root localhost events_test select get_lock('ee_16407_2', 60)
-root localhost events_test select get_lock('ee_16407_2', 60)
-select release_lock('ee_16407_2');
-release_lock('ee_16407_2')
-1
-select /*3*/ user, host, db, info from information_schema.processlist
-where state = 'User lock' and info = 'select get_lock(\'ee_16407_2\', 60)';
-user host db info
-set global event_scheduler= off;
-select * from events_test.events_smode_test order by ev_name, a;
-ev_name a
-ee_16407_3 1980-02-19
-ee_16407_3 1980-02-29
-ee_16407_4 0000-00-00
-"OK, last check before we drop them"
-select event_schema, event_name, sql_mode from information_schema.events order by event_schema, event_name;
-event_schema event_name sql_mode
-events_test ee_16407_2 STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-events_test ee_16407_3 STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-events_test ee_16407_4
-drop event ee_16407_2;
-drop event ee_16407_3;
-drop event ee_16407_4;
-"And now one last test regarding sql_mode and call of SP from an event"
-delete from events_test.events_smode_test;
-set sql_mode='ansi';
-select get_lock('ee_16407_5', 60);
-get_lock('ee_16407_5', 60)
-1
-set global event_scheduler= on;
-set sql_mode='traditional';
-create procedure ee_16407_5_pendant() begin insert into events_test.events_smode_test values('ee_16407_5','2001-02-29'); end|
-create procedure ee_16407_6_pendant() begin insert into events_test.events_smode_test values('ee_16407_6','2004-02-29'); end|
-create event ee_16407_5 on schedule every 60 second do
-begin
-select get_lock('ee_16407_5', 60); /*ee_16407_5*/
-select release_lock('ee_16407_5');
-call events_test.ee_16407_5_pendant();
-end|
-create event ee_16407_6 on schedule every 60 second do
-begin
-select get_lock('ee_16407_5', 60); /*ee_16407_6*/
-select release_lock('ee_16407_5');
-call events_test.ee_16407_6_pendant();
-end|
-"Should have 2 locked processes"
-select /*4*/ user, host, db, info from information_schema.processlist
-where state = 'User lock' and info = 'select get_lock(\'ee_16407_5\', 60)';
-user host db info
-root localhost events_test select get_lock('ee_16407_5', 60)
-root localhost events_test select get_lock('ee_16407_5', 60)
-select release_lock('ee_16407_5');
-release_lock('ee_16407_5')
-1
-"Should have 0 processes locked"
-select /*5*/ user, host, db, info from information_schema.processlist
-where state = 'User lock' and info = 'select get_lock(\'ee_16407_5\', 60)';
-user host db info
-select * from events_test.events_smode_test order by ev_name, a;
-ev_name a
-ee_16407_6 2004-02-29
-"And here we check one more time before we drop the events"
-select event_schema, event_name, sql_mode from information_schema.events order by event_schema, event_name;
-event_schema event_name sql_mode
-events_test ee_16407_5 STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-events_test ee_16407_6 STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-drop event ee_16407_5;
-drop event ee_16407_6;
-drop procedure ee_16407_5_pendant;
-drop procedure ee_16407_6_pendant;
-set global event_scheduler= off;
-drop table events_smode_test;
-set sql_mode=@old_sql_mode;
-set global event_scheduler=off;
-delete from mysql.user where User like 'mysqltest_%';
-delete from mysql.db where User like 'mysqltest_%';
-flush privileges;
-drop database if exists mysqltest_db1;
-create user mysqltest_user1@localhost;
-create database mysqltest_db1;
-grant event on events_test.* to mysqltest_user1@localhost;
-connect conn2,localhost,mysqltest_user1,,events_test;
-create event mysqltest_user1 on schedule every 10 second do select 42;
-alter event mysqltest_user1 rename to mysqltest_db1.mysqltest_user1;
-ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db1'
-"Let's test now rename when there is no select DB"
-disconnect conn2;
-connect conn2,localhost,mysqltest_user1,,*NO-ONE*;
-select database();
-database()
-NULL
-alter event events_test.mysqltest_user1 rename to mysqltest_user1;
-ERROR 3D000: No database selected
-select event_schema, event_name, definer, event_type, status from information_schema.events;
-event_schema event_name definer event_type status
-events_test mysqltest_user1 mysqltest_user1@localhost RECURRING ENABLED
-drop event events_test.mysqltest_user1;
-disconnect conn2;
-connection default;
-drop user mysqltest_user1@localhost;
-drop database mysqltest_db1;
-create event e_53 on schedule at (select s1 from ttx) do drop table t;
-ERROR 42000: CREATE/ALTER EVENT does not support subqueries or stored functions
-create event e_53 on schedule every (select s1 from ttx) second do drop table t;
-ERROR 42000: CREATE/ALTER EVENT does not support subqueries or stored functions
-create event e_53 on schedule every 5 second starts (select s1 from ttx) do drop table t;
-ERROR 42000: CREATE/ALTER EVENT does not support subqueries or stored functions
-create event e_53 on schedule every 5 second ends (select s1 from ttx) do drop table t;
-ERROR 42000: CREATE/ALTER EVENT does not support subqueries or stored functions
-drop event if exists e_16;
-drop procedure if exists p_16;
-create event e_16 on schedule every 1 second do set @a=5;
-create procedure p_16 () alter event e_16 on schedule every @a second;
-set @a = null;
-call p_16();
-ERROR HY000: Incorrect INTERVAL value: 'NULL'
-call p_16();
-ERROR HY000: Incorrect INTERVAL value: 'NULL'
-set @a= 6;
-call p_16();
-drop procedure p_16;
-drop event e_16;
-drop function if exists f22830;
-drop event if exists e22830;
-drop event if exists e22830_1;
-drop event if exists e22830_2;
-drop event if exists e22830_3;
-drop event if exists e22830_4;
-drop table if exists t1;
-drop table if exists t2;
-create table t1 (a int);
-insert into t1 values (2);
-create table t2 (a char(20));
-insert into t2 values ("e22830_1");
-create function f22830 () returns int return 5;
-select get_lock('ee_22830', 60);
-get_lock('ee_22830', 60)
-1
-set global event_scheduler=on;
-create procedure p22830_wait()
-begin
-select get_lock('ee_22830', 60);
-select release_lock('ee_22830');
-end|
-create event e22830 on schedule every f22830() second do
-begin
-call p22830_wait();
-select 123;
-end|
-ERROR 42000: CREATE/ALTER EVENT does not support subqueries or stored functions
-create event e22830_1 on schedule every 1 hour do
-begin
-call p22830_wait();
-alter event e22830_1 on schedule every (select 8 from dual) hour;
-end|
-create event e22830_2 on schedule every 1 hour do
-begin
-call p22830_wait();
-alter event e22830_2 on schedule every (select 8 from t1) hour;
-end|
-create event e22830_3 on schedule every 1 hour do
-begin
-call p22830_wait();
-alter event e22830_3 on schedule every f22830() hour;
-end|
-create event e22830_4 on schedule every 1 hour do
-begin
-call p22830_wait();
-alter event e22830_4 on schedule every (select f22830() from dual) hour;
-end|
-"All events should be blocked in get_lock()"
-select event_name, event_definition, interval_value, interval_field from information_schema.events order by event_name;
-event_name event_definition interval_value interval_field
-e22830_1 begin
-call p22830_wait();
-alter event e22830_1 on schedule every (select 8 from dual) hour;
-end 1 HOUR
-e22830_2 begin
-call p22830_wait();
-alter event e22830_2 on schedule every (select 8 from t1) hour;
-end 1 HOUR
-e22830_3 begin
-call p22830_wait();
-alter event e22830_3 on schedule every f22830() hour;
-end 1 HOUR
-e22830_4 begin
-call p22830_wait();
-alter event e22830_4 on schedule every (select f22830() from dual) hour;
-end 1 HOUR
-select release_lock('ee_22830');
-release_lock('ee_22830')
-1
-set global event_scheduler=off;
-select event_name, event_definition, interval_value, interval_field from information_schema.events order by event_name;
-event_name event_definition interval_value interval_field
-e22830_1 begin
-call p22830_wait();
-alter event e22830_1 on schedule every (select 8 from dual) hour;
-end 8 HOUR
-e22830_2 begin
-call p22830_wait();
-alter event e22830_2 on schedule every (select 8 from t1) hour;
-end 1 HOUR
-e22830_3 begin
-call p22830_wait();
-alter event e22830_3 on schedule every f22830() hour;
-end 1 HOUR
-e22830_4 begin
-call p22830_wait();
-alter event e22830_4 on schedule every (select f22830() from dual) hour;
-end 1 HOUR
-drop procedure p22830_wait;
-drop function f22830;
-drop event (select a from t2);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(select a from t2)' at line 1
-drop event e22830_1;
-drop event e22830_2;
-drop event e22830_3;
-drop event e22830_4;
-drop table t1;
-drop table t2;
-DROP USER mysqltest_u1@localhost;
-CREATE USER mysqltest_u1@localhost;
-GRANT EVENT ON events_test.* TO mysqltest_u1@localhost;
-CREATE EVENT e1 ON SCHEDULE EVERY 1 DAY DO SELECT 1;
-SELECT event_name, definer FROM INFORMATION_SCHEMA.EVENTS;
-event_name definer
-e1 root@localhost
-DROP EVENT e1;
-CREATE DEFINER=CURRENT_USER EVENT e1 ON SCHEDULE EVERY 1 DAY DO SELECT 1;
-SELECT event_name, definer FROM INFORMATION_SCHEMA.EVENTS;
-event_name definer
-e1 root@localhost
-ALTER DEFINER=mysqltest_u1@localhost EVENT e1 ON SCHEDULE EVERY 1 HOUR;
-SELECT event_name, definer FROM INFORMATION_SCHEMA.EVENTS;
-event_name definer
-e1 mysqltest_u1@localhost
-DROP EVENT e1;
-CREATE DEFINER=CURRENT_USER() EVENT e1 ON SCHEDULE EVERY 1 DAY DO SELECT 1;
-SELECT event_name, definer FROM INFORMATION_SCHEMA.EVENTS;
-event_name definer
-e1 root@localhost
-DROP EVENT e1;
-CREATE DEFINER=mysqltest_u1@localhost EVENT e1 ON SCHEDULE EVERY 1 DAY DO
-SELECT 1;
-SELECT event_name, definer FROM INFORMATION_SCHEMA.EVENTS;
-event_name definer
-e1 mysqltest_u1@localhost
-DROP EVENT e1;
-connect conn1, localhost, mysqltest_u1, , events_test;
-CREATE EVENT e1 ON SCHEDULE EVERY 1 DAY DO SELECT 1;
-SELECT event_name, definer FROM INFORMATION_SCHEMA.EVENTS;
-event_name definer
-e1 mysqltest_u1@localhost
-DROP EVENT e1;
-CREATE DEFINER=CURRENT_USER EVENT e1 ON SCHEDULE EVERY 1 DAY DO SELECT 1;
-SELECT event_name, definer FROM INFORMATION_SCHEMA.EVENTS;
-event_name definer
-e1 mysqltest_u1@localhost
-ALTER DEFINER=root@localhost EVENT e1 ON SCHEDULE EVERY 1 HOUR;
-ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
-SELECT event_name, definer FROM INFORMATION_SCHEMA.EVENTS;
-event_name definer
-e1 mysqltest_u1@localhost
-DROP EVENT e1;
-CREATE DEFINER=CURRENT_USER() EVENT e1 ON SCHEDULE EVERY 1 DAY DO SELECT 1;
-SELECT event_name, definer FROM INFORMATION_SCHEMA.EVENTS;
-event_name definer
-e1 mysqltest_u1@localhost
-DROP EVENT e1;
-CREATE DEFINER=root@localhost EVENT e1 ON SCHEDULE EVERY 1 DAY DO SELECT 1;
-ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
-DROP EVENT e1;
-ERROR HY000: Unknown event 'e1'
-disconnect conn1;
-connection default;
-DROP USER mysqltest_u1@localhost;
-SET GLOBAL EVENT_SCHEDULER= OFF;
-SET @save_time_zone= @@TIME_ZONE;
-SET TIME_ZONE= '+00:00';
-SET TIMESTAMP= UNIX_TIMESTAMP('2005-12-31 23:58:59');
-CREATE EVENT e1 ON SCHEDULE EVERY 1 DAY DO SELECT 1;
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test e1 root@localhost +00:00 RECURRING NULL 1 DAY 2005-12-31 23:58:59 NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SET TIME_ZONE= '-01:00';
-ALTER EVENT e1 ON SCHEDULE EVERY 1 DAY STARTS '2000-01-01 00:00:00';
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test e1 root@localhost -01:00 RECURRING NULL 1 DAY 2000-01-01 00:00:00 NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SET TIME_ZONE= '+02:00';
-ALTER EVENT e1 ON SCHEDULE AT '2000-01-02 00:00:00'
- ON COMPLETION PRESERVE DISABLE;
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test e1 root@localhost +02:00 ONE TIME 2000-01-02 00:00:00 NULL NULL NULL NULL DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SET TIME_ZONE= '-03:00';
-ALTER EVENT e1 ON SCHEDULE EVERY 1 DAY ENDS '2030-01-03 00:00:00'
- ON COMPLETION PRESERVE DISABLE;
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test e1 root@localhost -03:00 RECURRING NULL 1 DAY 2005-12-31 20:58:59 2030-01-03 00:00:00 DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SET TIME_ZONE= '+04:00';
-ALTER EVENT e1 DO SELECT 2;
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test e1 root@localhost -03:00 RECURRING NULL 1 DAY 2005-12-31 20:58:59 2030-01-03 00:00:00 DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-DROP EVENT e1;
-SET TIME_ZONE='+05:00';
-CREATE EVENT e1 ON SCHEDULE EVERY 1 DAY STARTS '2006-01-01 00:00:00' DO
-SELECT 1;
-SET TIMESTAMP= @@TIMESTAMP + 1;
-SET TIME_ZONE='-05:00';
-CREATE EVENT e2 ON SCHEDULE EVERY 1 DAY STARTS '2006-01-01 00:00:00' DO
-SELECT 1;
-SET TIMESTAMP= @@TIMESTAMP + 1;
-SET TIME_ZONE='+00:00';
-CREATE EVENT e3 ON SCHEDULE EVERY 1 DAY STARTS '2006-01-01 00:00:00' DO
-SELECT 1;
-SELECT * FROM INFORMATION_SCHEMA.EVENTS ORDER BY event_name;
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def events_test e1 root@localhost +05:00 SQL SELECT 1 RECURRING NULL 1 DAY 2006-01-01 00:00:00 NULL ENABLED NOT PRESERVE 2005-12-31 23:58:59 2005-12-31 23:58:59 NULL 1 latin1 latin1_swedish_ci latin1_swedish_ci
-def events_test e2 root@localhost -05:00 SQL SELECT 1 RECURRING NULL 1 DAY 2006-01-01 00:00:00 NULL ENABLED NOT PRESERVE 2005-12-31 23:59:00 2005-12-31 23:59:00 NULL 1 latin1 latin1_swedish_ci latin1_swedish_ci
-def events_test e3 root@localhost +00:00 SQL SELECT 1 RECURRING NULL 1 DAY 2006-01-01 00:00:00 NULL ENABLED NOT PRESERVE 2005-12-31 23:59:01 2005-12-31 23:59:01 NULL 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test e1 root@localhost +05:00 RECURRING NULL 1 DAY 2006-01-01 00:00:00 NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test e2 root@localhost -05:00 RECURRING NULL 1 DAY 2006-01-01 00:00:00 NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test e3 root@localhost +00:00 RECURRING NULL 1 DAY 2006-01-01 00:00:00 NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE EVENT e1;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-e1 +05:00 CREATE DEFINER=`root`@`localhost` EVENT `e1` ON SCHEDULE EVERY 1 DAY STARTS '2006-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO SELECT 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE EVENT e2;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-e2 -05:00 CREATE DEFINER=`root`@`localhost` EVENT `e2` ON SCHEDULE EVERY 1 DAY STARTS '2006-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO SELECT 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE EVENT e3;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-e3 +00:00 CREATE DEFINER=`root`@`localhost` EVENT `e3` ON SCHEDULE EVERY 1 DAY STARTS '2006-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO SELECT 1 latin1 latin1_swedish_ci latin1_swedish_ci
-The following should fail, and nothing should be altered.
-ALTER EVENT e1 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
- ENDS '1999-01-02 00:00:00';
-ERROR HY000: Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was not changed. Specify a time in the future
-ALTER EVENT e1 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
- ENDS '1999-01-02 00:00:00' DISABLE;
-ERROR HY000: Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was not changed. Specify a time in the future
-The following should give warnings, and nothing should be created.
-CREATE EVENT e4 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
- ENDS '1999-01-02 00:00:00'
-DO
-SELECT 1;
-Warnings:
-Note 1588 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation
-CREATE EVENT e4 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
- ENDS '1999-01-02 00:00:00' DISABLE
-DO
-SELECT 1;
-Warnings:
-Note 1588 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation
-CREATE EVENT e4 ON SCHEDULE AT '1999-01-01 00:00:00' DO
-SELECT 1;
-Warnings:
-Note 1588 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation
-CREATE EVENT e4 ON SCHEDULE AT '1999-01-01 00:00:00' DISABLE
-DO
-SELECT 1;
-Warnings:
-Note 1588 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test e1 root@localhost +05:00 RECURRING NULL 1 DAY 2006-01-01 00:00:00 NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test e2 root@localhost -05:00 RECURRING NULL 1 DAY 2006-01-01 00:00:00 NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test e3 root@localhost +00:00 RECURRING NULL 1 DAY 2006-01-01 00:00:00 NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-The following should succeed giving a warning.
-ALTER EVENT e1 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
- ENDS '1999-01-02 00:00:00' ON COMPLETION PRESERVE;
-Warnings:
-Note 1544 Event execution time is in the past. Event has been disabled
-CREATE EVENT e4 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
- ENDS '1999-01-02 00:00:00' ON COMPLETION PRESERVE
-DO
-SELECT 1;
-Warnings:
-Note 1544 Event execution time is in the past. Event has been disabled
-CREATE EVENT e5 ON SCHEDULE AT '1999-01-01 00:00:00'
- ON COMPLETION PRESERVE
-DO
-SELECT 1;
-Warnings:
-Note 1544 Event execution time is in the past. Event has been disabled
-The following should succeed without warnings.
-ALTER EVENT e2 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00';
-ALTER EVENT e3 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
- ENDS '1999-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE;
-CREATE EVENT e6 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00' DO
-SELECT 1;
-CREATE EVENT e7 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
- ENDS '1999-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE
-DO
-SELECT 1;
-CREATE EVENT e8 ON SCHEDULE AT '1999-01-01 00:00:00'
- ON COMPLETION PRESERVE DISABLE
-DO
-SELECT 1;
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test e1 root@localhost +00:00 RECURRING NULL 1 HOUR 1999-01-01 00:00:00 1999-01-02 00:00:00 DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test e2 root@localhost +00:00 RECURRING NULL 1 HOUR 1999-01-01 00:00:00 NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test e3 root@localhost +00:00 RECURRING NULL 1 HOUR 1999-01-01 00:00:00 1999-01-02 00:00:00 DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test e4 root@localhost +00:00 RECURRING NULL 1 HOUR 1999-01-01 00:00:00 1999-01-02 00:00:00 DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test e5 root@localhost +00:00 ONE TIME 1999-01-01 00:00:00 NULL NULL NULL NULL DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test e6 root@localhost +00:00 RECURRING NULL 1 HOUR 1999-01-01 00:00:00 NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test e7 root@localhost +00:00 RECURRING NULL 1 HOUR 1999-01-01 00:00:00 1999-01-02 00:00:00 DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test e8 root@localhost +00:00 ONE TIME 1999-01-01 00:00:00 NULL NULL NULL NULL DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-DROP EVENT e8;
-DROP EVENT e7;
-DROP EVENT e6;
-DROP EVENT e5;
-DROP EVENT e4;
-DROP EVENT e3;
-DROP EVENT e2;
-DROP EVENT e1;
-SET TIME_ZONE=@save_time_zone;
-SET TIMESTAMP=DEFAULT;
-drop event if exists new_event;
-CREATE EVENT new_event ON SCHEDULE EVERY 0 SECOND DO SELECT 1;
-ERROR HY000: INTERVAL is either not positive or too big
-CREATE EVENT new_event ON SCHEDULE EVERY (SELECT 0) SECOND DO SELECT 1;
-ERROR HY000: INTERVAL is either not positive or too big
-CREATE EVENT new_event ON SCHEDULE EVERY "abcdef" SECOND DO SELECT 1;
-ERROR HY000: INTERVAL is either not positive or too big
-CREATE EVENT new_event ON SCHEDULE EVERY "0abcdef" SECOND DO SELECT 1;
-ERROR HY000: INTERVAL is either not positive or too big
-CREATE EVENT new_event ON SCHEDULE EVERY "a1bcdef" SECOND DO SELECT 1;
-ERROR HY000: INTERVAL is either not positive or too big
-CREATE EVENT new_event ON SCHEDULE EVERY (SELECT "abcdef" UNION SELECT "abcdef") SECOND DO SELECT 1;
-ERROR HY000: INTERVAL is either not positive or too big
-CREATE EVENT new_event ON SCHEDULE EVERY (SELECT "0abcdef") SECOND DO SELECT 1;
-ERROR HY000: INTERVAL is either not positive or too big
-CREATE EVENT new_event ON SCHEDULE EVERY (SELECT "a1bcdef") SECOND DO SELECT 1;
-ERROR HY000: INTERVAL is either not positive or too big
-CREATE EVENT new_event ON SCHEDULE AT "every day" DO SELECT 1;
-ERROR HY000: Incorrect AT value: 'every day'
-CREATE EVENT new_event ON SCHEDULE AT "0every day" DO SELECT 1;
-ERROR HY000: Incorrect AT value: '0every day'
-CREATE EVENT new_event ON SCHEDULE AT (SELECT "every day") DO SELECT 1;
-ERROR HY000: Incorrect AT value: 'every day'
-CREATE EVENT new_event ON SCHEDULE AT NOW() STARTS NOW() DO SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'STARTS NOW() DO SELECT 1' at line 1
-CREATE EVENT new_event ON SCHEDULE AT NOW() ENDS NOW() DO SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ENDS NOW() DO SELECT 1' at line 1
-CREATE EVENT new_event ON SCHEDULE AT NOW() STARTS NOW() ENDS NOW() DO SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'STARTS NOW() ENDS NOW() DO SELECT 1' at line 1
-USE test;
-SHOW GRANTS FOR CURRENT_USER;
-Grants for root@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
-GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
-SET GLOBAL event_scheduler = ON;
-CREATE TABLE events_test.event_log
-(id int KEY AUTO_INCREMENT, ev_nm char(40), ev_cnt int, ev_tm timestamp)
-ENGINE=MyISAM;
-SET autocommit=0;
-CREATE USER evtest1@localhost;
-SET PASSWORD FOR evtest1@localhost = password('ev1');
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM evtest1@localhost;
-GRANT create, insert, select, event ON events_test.* TO evtest1@localhost;
-GRANT select,insert ON test.* TO evtest1@localhost;
-SHOW GRANTS FOR evtest1@localhost;
-Grants for evtest1@localhost
-GRANT USAGE ON *.* TO 'evtest1'@'localhost' IDENTIFIED BY PASSWORD '*3170F3644E31580C25DE4A08F4C07CC9A2D40C32'
-GRANT SELECT, INSERT ON `test`.* TO 'evtest1'@'localhost'
-GRANT SELECT, INSERT, CREATE, EVENT ON `events_test`.* TO 'evtest1'@'localhost'
-connect e1,localhost,evtest1,ev1,events_test,$MASTER_MYPORT,$MASTER_MYSOCK;
-CREATE EVENT ev_sched_1823 ON SCHEDULE EVERY 2 SECOND
-DO BEGIN
-SET AUTOCOMMIT = 0;
-SET @evname = 'ev_sched_1823';
-SET @cnt = 0;
-SELECT COUNT(*) INTO @cnt FROM events_test.event_log WHERE ev_nm = @evname;
-IF @cnt < 6 THEN
-INSERT INTO events_test.event_log VALUES (NULL,@evname,@cnt+1,current_timestamp());
-COMMIT;
-END IF;
-SELECT COUNT(*) INTO @cnt FROM events_test.event_log WHERE ev_nm = @evname;
-IF @cnt < 6 THEN
-INSERT INTO events_test.event_log VALUES (NULL,@evname,@cnt+1,current_timestamp());
-ROLLBACK;
-END IF;
-END;|
-Sleep till the first INSERT into events_test.event_log occurred
-SELECT COUNT(*) > 0 AS "Expect 1" FROM events_test.event_log;
-Expect 1
-1
-connection default;
-DROP USER evtest1@localhost;
-Sleep 4 seconds
-SELECT COUNT(*) INTO @row_cnt FROM events_test.event_log;
-Sleep 4 seconds
-SELECT COUNT(*) > @row_cnt AS "Expect 0" FROM events_test.event_log;
-Expect 0
-0
-disconnect e1;
-DROP EVENT events_test.ev_sched_1823;
-DROP TABLE events_test.event_log;
-SET GLOBAL event_scheduler = OFF;
-SET GLOBAL event_scheduler= ON;
-CREATE EVENT bug28641 ON SCHEDULE AT '2038.01.18 03:00:00'
-DO BEGIN
-SELECT 1;
-END;|
-SET GLOBAL event_scheduler= OFF;
-DROP EVENT bug28641;
-
-#####################################################################
-#
-# BUG#31111: --read-only crashes MySQL (events fail to load).
-#
-#####################################################################
-
-DROP USER mysqltest_u1@localhost;
-DROP EVENT IF EXISTS e1;
-DROP EVENT IF EXISTS e2;
-
-GRANT EVENT ON *.* TO mysqltest_u1@localhost;
-
-SET GLOBAL READ_ONLY = 1;
-
-connect u1_con,localhost,mysqltest_u1,,events_test;
-
-CREATE EVENT e1 ON SCHEDULE AT '2020-01-01 00:00:00' DO SET @a = 1;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-
-ALTER EVENT e1 COMMENT 'comment';
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-
-DROP EVENT e1;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-
-connect root_con,localhost,root,,events_test;
-
-CREATE EVENT e1 ON SCHEDULE AT '2020-01-01 00:00:00' DO SET @a = 1;
-
-ALTER EVENT e1 COMMENT 'comment';
-
-DROP EVENT e1;
-
-SET GLOBAL READ_ONLY = 0;
-
-connection u1_con;
-
-CREATE EVENT e1 ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 SECOND DO SET @a = 1;
-CREATE EVENT e2 ON SCHEDULE EVERY 1 SECOND DO SET @a = 1;
-
-SELECT
-event_name,
-last_executed IS NULL,
-definer
-FROM INFORMATION_SCHEMA.EVENTS
-WHERE event_schema = 'events_test';
-event_name last_executed IS NULL definer
-e1 1 mysqltest_u1@localhost
-e2 1 mysqltest_u1@localhost
-
-connection root_con;
-
-SET GLOBAL READ_ONLY = 1;
-
-SET GLOBAL EVENT_SCHEDULER = ON;
-
-# Waiting for the event scheduler to execute and drop event e1...
-
-# Waiting for the event scheduler to execute and update event e2...
-
-SET GLOBAL EVENT_SCHEDULER = OFF;
-
-SELECT
-event_name,
-last_executed IS NULL,
-definer
-FROM INFORMATION_SCHEMA.EVENTS
-WHERE event_schema = 'events_test';
-event_name last_executed IS NULL definer
-e2 0 mysqltest_u1@localhost
-
-DROP EVENT e1;
-ERROR HY000: Unknown event 'e1'
-
-# Cleanup.
-
-DROP EVENT e2;
-
-SET GLOBAL READ_ONLY = 0;
-
-disconnect u1_con;
-disconnect root_con;
-connection default;
-
-DROP USER mysqltest_u1@localhost;
-
-#####################################################################
-#
-# End of BUG#31111.
-#
-#####################################################################
-
-drop procedure if exists p;
-set @old_mode= @@sql_mode;
-set @@sql_mode= cast(pow(2,32)-1 as unsigned integer);
-create event e1 on schedule every 1 day do select 1;
-select @@sql_mode into @full_mode;
-set @@sql_mode= @old_mode;
-select replace(@full_mode, 'ALLOW_INVALID_DATES', 'INVALID_DATES') into @full_mode;
-select name from mysql.event where name = 'e1' and sql_mode = @full_mode;
-name
-e1
-drop event e1;
-SET @old_server_id = @@GLOBAL.server_id;
-SET GLOBAL server_id = (1 << 32) - 1;
-SELECT @@GLOBAL.server_id;
-@@GLOBAL.server_id
-4294967295
-CREATE EVENT ev1 ON SCHEDULE EVERY 1 DAY DO SELECT 1;
-SELECT event_name, originator FROM INFORMATION_SCHEMA.EVENTS;
-event_name originator
-ev1 4294967295
-DROP EVENT ev1;
-SET GLOBAL server_id = @old_server_id;
-CREATE DATABASE event_test12;
-USE event_test12;
-CREATE EVENT ev1 ON SCHEDULE EVERY 1 DAY DO SELECT 1;
-CREATE DATABASE event_test1;
-USE event_test1;
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-DROP DATABASE event_test1;
-DROP DATABASE event_test12;
-#
-# Bug#12546938 (formerly known as bug#61005):
-# CREATE IF NOT EXIST EVENT WILL CREATE MULTIPLE RUNNING EVENTS
-#
-USE events_test;
-SET GLOBAL event_scheduler = ON;
-DROP TABLE IF EXISTS table_bug12546938;
-DROP EVENT IF EXISTS event_Bug12546938;
-CREATE TABLE table_bug12546938 (i INT);
-# Create an event which will be executed with a small delay
-# and won't be automatically dropped after that.
-CREATE EVENT event_Bug12546938
-ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 SECOND ON COMPLETION PRESERVE
-ENABLE DO
-BEGIN
-INSERT INTO table_bug12546938 VALUES(1);
-END
-|
-# Now try to create the same event using CREATE EVENT IF NOT EXISTS.
-# A warning should be emitted. A new event should not be created nor
-# the old event should be re-executed.
-CREATE EVENT IF NOT EXISTS event_bug12546938
-ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 SECOND ON COMPLETION PRESERVE
-ENABLE DO
-BEGIN
-INSERT INTO table_bug12546938 VALUES (1);
-END
-|
-Warnings:
-Note 1537 Event 'event_bug12546938' already exists
-# Wait until at least one instance of event is executed.
-# Check that only one instance of our event was executed.
-SELECT COUNT(*) FROM table_bug12546938;
-COUNT(*)
-1
-# Clean-up.
-DROP EVENT IF EXISTS event_Bug12546938;
-DROP TABLE table_bug12546938;
-SET GLOBAL EVENT_SCHEDULER = OFF;
-DROP DATABASE IF EXISTS event_test11764334;
-CREATE DATABASE event_test11764334;
-USE event_test11764334;
-CREATE EVENT ev1 ON SCHEDULE EVERY 3 SECOND DISABLE DO SELECT 1;
-SHOW EVENTS IN event_test11764334 WHERE NAME='ev1';
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-event_test11764334 ev1 root@localhost SYSTEM RECURRING NULL 3 SECOND # # DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-ALTER EVENT ev1 ON SCHEDULE EVERY 4 SECOND;
-SHOW EVENTS IN event_test11764334 WHERE NAME='ev1';
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-event_test11764334 ev1 root@localhost SYSTEM RECURRING NULL 4 SECOND # # DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-DROP EVENT ev1;
-DROP DATABASE event_test11764334;
-USE test;
-DROP DATABASE events_test;
-SET GLOBAL event_scheduler= 'ON';
-SET @@global.concurrent_insert= @concurrent_insert;
diff --git a/mysql-test/r/events_embedded.result b/mysql-test/r/events_embedded.result
deleted file mode 100644
index 1a02188f2df..00000000000
--- a/mysql-test/r/events_embedded.result
+++ /dev/null
@@ -1,2 +0,0 @@
-set global event_scheduler=ON;
-ERROR HY000: Unknown system variable 'event_scheduler'
diff --git a/mysql-test/r/events_grant.result b/mysql-test/r/events_grant.result
deleted file mode 100644
index 51b80742737..00000000000
--- a/mysql-test/r/events_grant.result
+++ /dev/null
@@ -1,137 +0,0 @@
-CREATE DATABASE IF NOT EXISTS events_test;
-use events_test;
-CREATE EVENT one_event ON SCHEDULE EVERY 10 SECOND DO SELECT 123;
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test one_event root@localhost SYSTEM RECURRING NULL 10 # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SELECT EVENT_CATALOG, EVENT_SCHEMA, EVENT_NAME, DEFINER, EVENT_BODY, EVENT_DEFINITION, EVENT_TYPE, EXECUTE_AT, INTERVAL_VALUE, INTERVAL_FIELD, STATUS,ON_COMPLETION, EVENT_COMMENT FROM INFORMATION_SCHEMA.EVENTS ORDER BY EVENT_SCHEMA, EVENT_NAME;
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD STATUS ON_COMPLETION EVENT_COMMENT
-def events_test one_event root@localhost SQL SELECT 123 RECURRING NULL 10 SECOND ENABLED NOT PRESERVE
-CREATE DATABASE events_test2;
-CREATE USER ev_test@localhost;
-GRANT ALL ON events_test.* to ev_test@localhost;
-GRANT ALL ON events_test2.* to ev_test@localhost;
-REVOKE EVENT ON events_test2.* FROM ev_test@localhost;
-connect ev_con1,localhost,ev_test,,events_test2;
-select "NEW CONNECTION";
-NEW CONNECTION
-NEW CONNECTION
-SELECT USER(), DATABASE();
-USER() DATABASE()
-ev_test@localhost events_test2
-SHOW GRANTS;
-Grants for ev_test@localhost
-GRANT USAGE ON *.* TO 'ev_test'@'localhost'
-GRANT ALL PRIVILEGES ON `events_test`.* TO 'ev_test'@'localhost'
-GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, TRIGGER, DELETE VERSIONING ROWS ON `events_test2`.* TO 'ev_test'@'localhost'
-"Here comes an error:";
-SHOW EVENTS;
-ERROR 42000: Access denied for user 'ev_test'@'localhost' to database 'events_test2'
-USE events_test;
-"We should see one event";
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test one_event root@localhost SYSTEM RECURRING NULL 10 # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SELECT CONCAT("Let's create some new events from the name of ", USER());
-CONCAT("Let's create some new events from the name of ", USER())
-Let's create some new events from the name of ev_test@localhost
-CREATE EVENT one_event ON SCHEDULE EVERY 20 SECOND DO SELECT 123;
-ERROR HY000: Event 'one_event' already exists
-CREATE EVENT two_event ON SCHEDULE EVERY 20 SECOND ON COMPLETION NOT PRESERVE COMMENT "two event" DO SELECT 123;
-CREATE EVENT three_event ON SCHEDULE EVERY 20 SECOND ON COMPLETION PRESERVE COMMENT "three event" DO SELECT 123;
-"Now we should see 3 events:";
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test one_event root@localhost SYSTEM RECURRING NULL 10 # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test three_event ev_test@localhost SYSTEM RECURRING NULL 20 # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test two_event ev_test@localhost SYSTEM RECURRING NULL 20 # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-"This should show us only 2 events:";
-SHOW EVENTS LIKE 't%event';
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test three_event ev_test@localhost SYSTEM RECURRING NULL 20 # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test two_event ev_test@localhost SYSTEM RECURRING NULL 20 # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-"This should show us no events:";
-SHOW EVENTS FROM test LIKE '%';
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-connection default;
-GRANT EVENT ON events_test2.* TO ev_test@localhost;
-connection ev_con1;
-USE events_test2;
-CREATE EVENT four_event ON SCHEDULE EVERY 20 SECOND DO SELECT 42;
-connection default;
-USE events_test;
-"We should see 4 events : one_event, two_event, three_event & four_event"
-SELECT EVENT_CATALOG, EVENT_SCHEMA, EVENT_NAME, DEFINER, EVENT_BODY, EVENT_DEFINITION, EVENT_TYPE, EXECUTE_AT, INTERVAL_VALUE, INTERVAL_FIELD, STATUS,ON_COMPLETION, EVENT_COMMENT FROM INFORMATION_SCHEMA.EVENTS ORDER BY EVENT_SCHEMA, EVENT_NAME;
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD STATUS ON_COMPLETION EVENT_COMMENT
-def events_test one_event root@localhost SQL SELECT 123 RECURRING NULL 10 SECOND ENABLED NOT PRESERVE
-def events_test three_event ev_test@localhost SQL SELECT 123 RECURRING NULL 20 SECOND ENABLED PRESERVE three event
-def events_test two_event ev_test@localhost SQL SELECT 123 RECURRING NULL 20 SECOND ENABLED NOT PRESERVE two event
-def events_test2 four_event ev_test@localhost SQL SELECT 42 RECURRING NULL 20 SECOND ENABLED NOT PRESERVE
-DROP DATABASE events_test2;
-"We should see 3 events : one_event, two_event, three_event"
-SELECT EVENT_CATALOG, EVENT_SCHEMA, EVENT_NAME, DEFINER, EVENT_BODY, EVENT_DEFINITION, EVENT_TYPE, EXECUTE_AT, INTERVAL_VALUE, INTERVAL_FIELD, STATUS,ON_COMPLETION, EVENT_COMMENT FROM INFORMATION_SCHEMA.EVENTS ORDER BY EVENT_SCHEMA, EVENT_NAME;
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD STATUS ON_COMPLETION EVENT_COMMENT
-def events_test one_event root@localhost SQL SELECT 123 RECURRING NULL 10 SECOND ENABLED NOT PRESERVE
-def events_test three_event ev_test@localhost SQL SELECT 123 RECURRING NULL 20 SECOND ENABLED PRESERVE three event
-def events_test two_event ev_test@localhost SQL SELECT 123 RECURRING NULL 20 SECOND ENABLED NOT PRESERVE two event
-connection default;
-CREATE DATABASE events_test2;
-USE events_test2;
-CREATE EVENT five_event ON SCHEDULE EVERY 20 SECOND DO SELECT 42;
-connection ev_con1;
-"Should see 4 events - one, two, three & five"
-SELECT EVENT_CATALOG, EVENT_SCHEMA, EVENT_NAME, DEFINER, EVENT_BODY, EVENT_DEFINITION, EVENT_TYPE, EXECUTE_AT, INTERVAL_VALUE, INTERVAL_FIELD, STATUS,ON_COMPLETION, EVENT_COMMENT FROM INFORMATION_SCHEMA.EVENTS ORDER BY EVENT_SCHEMA, EVENT_NAME;
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD STATUS ON_COMPLETION EVENT_COMMENT
-def events_test one_event root@localhost SQL SELECT 123 RECURRING NULL 10 SECOND ENABLED NOT PRESERVE
-def events_test three_event ev_test@localhost SQL SELECT 123 RECURRING NULL 20 SECOND ENABLED PRESERVE three event
-def events_test two_event ev_test@localhost SQL SELECT 123 RECURRING NULL 20 SECOND ENABLED NOT PRESERVE two event
-def events_test2 five_event root@localhost SQL SELECT 42 RECURRING NULL 20 SECOND ENABLED NOT PRESERVE
-connection default;
-REVOKE EVENT ON events_test2.* FROM ev_test@localhost;
-connection ev_con1;
-USE test;
-"Should see 3 events - one, two & three"
-SELECT EVENT_CATALOG, EVENT_SCHEMA, EVENT_NAME, DEFINER, EVENT_BODY, EVENT_DEFINITION, EVENT_TYPE, EXECUTE_AT, INTERVAL_VALUE, INTERVAL_FIELD, STATUS,ON_COMPLETION, EVENT_COMMENT FROM INFORMATION_SCHEMA.EVENTS ORDER BY EVENT_SCHEMA, EVENT_NAME;
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD STATUS ON_COMPLETION EVENT_COMMENT
-def events_test one_event root@localhost SQL SELECT 123 RECURRING NULL 10 SECOND ENABLED NOT PRESERVE
-def events_test three_event ev_test@localhost SQL SELECT 123 RECURRING NULL 20 SECOND ENABLED PRESERVE three event
-def events_test two_event ev_test@localhost SQL SELECT 123 RECURRING NULL 20 SECOND ENABLED NOT PRESERVE two event
-"Let's test ALTER EVENT which changes the definer"
-USE events_test;
-ALTER EVENT one_event ON SCHEDULE EVERY 10 SECOND;
-"The definer should be ev_test@localhost"
-SELECT EVENT_CATALOG, EVENT_SCHEMA, EVENT_NAME, DEFINER, EVENT_BODY, EVENT_DEFINITION, EVENT_TYPE, EXECUTE_AT, INTERVAL_VALUE, INTERVAL_FIELD, STATUS,ON_COMPLETION, EVENT_COMMENT FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_NAME='one_event';
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD STATUS ON_COMPLETION EVENT_COMMENT
-def events_test one_event ev_test@localhost SQL SELECT 123 RECURRING NULL 10 SECOND ENABLED NOT PRESERVE
-connection default;
-USE events_test;
-ALTER EVENT one_event COMMENT "comment";
-connection ev_con1;
-"The definer should be root@localhost"
-SELECT EVENT_CATALOG, EVENT_SCHEMA, EVENT_NAME, DEFINER, EVENT_BODY, EVENT_DEFINITION, EVENT_TYPE, EXECUTE_AT, INTERVAL_VALUE, INTERVAL_FIELD, STATUS,ON_COMPLETION, EVENT_COMMENT FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_NAME='one_event';
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD STATUS ON_COMPLETION EVENT_COMMENT
-def events_test one_event root@localhost SQL SELECT 123 RECURRING NULL 10 SECOND ENABLED NOT PRESERVE comment
-ALTER EVENT one_event DO SELECT 12;
-"The definer should be ev_test@localhost"
-SELECT EVENT_CATALOG, EVENT_SCHEMA, EVENT_NAME, DEFINER, EVENT_BODY, EVENT_DEFINITION, EVENT_TYPE, EXECUTE_AT, INTERVAL_VALUE, INTERVAL_FIELD, STATUS,ON_COMPLETION, EVENT_COMMENT FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_NAME='one_event';
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD STATUS ON_COMPLETION EVENT_COMMENT
-def events_test one_event ev_test@localhost SQL SELECT 12 RECURRING NULL 10 SECOND ENABLED NOT PRESERVE comment
-connection default;
-"make the definer again root@localhost"
-ALTER EVENT one_event COMMENT "new comment";
-connection ev_con1;
-"test DROP by another user"
-DROP EVENT one_event;
-connection default;
-"One event should not be there"
-SELECT EVENT_CATALOG, EVENT_SCHEMA, EVENT_NAME, DEFINER, EVENT_BODY, EVENT_DEFINITION, EVENT_TYPE, EXECUTE_AT, INTERVAL_VALUE, INTERVAL_FIELD, STATUS,ON_COMPLETION, EVENT_COMMENT FROM INFORMATION_SCHEMA.EVENTS ORDER BY EVENT_SCHEMA, EVENT_NAME;
-EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD STATUS ON_COMPLETION EVENT_COMMENT
-def events_test three_event ev_test@localhost SQL SELECT 123 RECURRING NULL 20 SECOND ENABLED PRESERVE three event
-def events_test two_event ev_test@localhost SQL SELECT 123 RECURRING NULL 20 SECOND ENABLED NOT PRESERVE two event
-def events_test2 five_event root@localhost SQL SELECT 42 RECURRING NULL 20 SECOND ENABLED NOT PRESERVE
-connection ev_con1;
-disconnect ev_con1;
-connection default;
-DROP USER ev_test@localhost;
-DROP DATABASE events_test2;
-DROP DATABASE events_test;
diff --git a/mysql-test/r/events_logs_tests.result b/mysql-test/r/events_logs_tests.result
deleted file mode 100644
index 9cc6e44511c..00000000000
--- a/mysql-test/r/events_logs_tests.result
+++ /dev/null
@@ -1,72 +0,0 @@
-drop database if exists events_test;
-create database if not exists events_test;
-use events_test;
-
-We use procedure here because its statements won't be
-logged into the general log. If we had used normal select
-that are logged in different ways depending on whether the
-test suite is run in normal mode or with --ps-protocol
-
-create procedure select_general_log()
-begin
-select user_host, argument from mysql.general_log
-where argument like '%events_logs_test%';
-end|
-
-Check that general query log works, but sub-statements
-of the stored procedure do not leave traces in it.
-
-truncate mysql.general_log;
-select 'events_logs_tests' as outside_event;
-outside_event
-events_logs_tests
-call select_general_log();
-user_host argument
-USER_HOST select 'events_logs_tests' as outside_event
-
-Check that unlike sub-statements of stored procedures,
-sub-statements of events are present in the general log.
-
-set global event_scheduler=on;
-truncate mysql.general_log;
-create event ev_log_general on schedule at now() on completion not preserve do select 'events_logs_test' as inside_event;
-call select_general_log();
-user_host argument
-USER_HOST create event ev_log_general on schedule at now() on completion not preserve do select 'events_logs_test' as inside_event
-USER_HOST select 'events_logs_test' as inside_event
-
-Check slow query log
-
-Ensure that slow logging is on
-show variables like 'slow_query_log';
-Variable_name Value
-slow_query_log ON
-
-Demonstrate that session value has no effect
-
-set @@session.long_query_time=1;
-set @@global.long_query_time=300;
-truncate mysql.slow_log;
-create event ev_log_general on schedule at now() on completion not preserve
-do select 'events_logs_test' as inside_event, sleep(1.5);
-
-Nothing should be logged
-
-select user_host, db, sql_text from mysql.slow_log
-where sql_text like 'select \'events_logs_test\'%';
-user_host db sql_text
-set @@global.long_query_time=1;
-truncate mysql.slow_log;
-create event ev_log_general on schedule at now() on completion not preserve
-do select 'events_logs_test' as inside_event, sleep(1.5);
-
-Event sub-statement should be logged.
-
-select user_host, db, sql_text from mysql.slow_log
-where sql_text like 'select \'events_logs_test\'%';
-user_host db sql_text
-USER_HOST events_test select 'events_logs_test' as inside_event, sleep(1.5)
-drop database events_test;
-set global event_scheduler=off;
-set @@global.long_query_time=default;
-set @@session.long_query_time=default;
diff --git a/mysql-test/r/events_microsec.result b/mysql-test/r/events_microsec.result
deleted file mode 100644
index 2a9f3587706..00000000000
--- a/mysql-test/r/events_microsec.result
+++ /dev/null
@@ -1,13 +0,0 @@
-create database if not exists events_test;
-use events_test;
-CREATE EVENT micro_test ON SCHEDULE EVERY 100 MICROSECOND DO SELECT 1;
-ERROR 42000: This version of MariaDB doesn't yet support 'MICROSECOND'
-CREATE EVENT micro_test ON SCHEDULE EVERY 100 DAY_MICROSECOND DO SELECT 1;
-ERROR 42000: This version of MariaDB doesn't yet support 'MICROSECOND'
-CREATE EVENT micro_test ON SCHEDULE EVERY 100 HOUR_MICROSECOND DO SELECT 1;
-ERROR 42000: This version of MariaDB doesn't yet support 'MICROSECOND'
-CREATE EVENT micro_test ON SCHEDULE EVERY 100 MINUTE_MICROSECOND DO SELECT 1;
-ERROR 42000: This version of MariaDB doesn't yet support 'MICROSECOND'
-CREATE EVENT micro_test ON SCHEDULE EVERY 100 SECOND_MICROSECOND DO SELECT 1;
-ERROR 42000: This version of MariaDB doesn't yet support 'MICROSECOND'
-drop database events_test;
diff --git a/mysql-test/r/events_restart.result b/mysql-test/r/events_restart.result
deleted file mode 100644
index 0caac907f64..00000000000
--- a/mysql-test/r/events_restart.result
+++ /dev/null
@@ -1,106 +0,0 @@
-call mtr.add_suppression("Column count of mysql.event is wrong. Expected .*, found .*\. The table is probably corrupted");
-set global event_scheduler=off;
-drop database if exists events_test;
-create database events_test;
-use events_test;
-create table execution_log(name char(10));
-create event abc1 on schedule every 1 second do
-insert into execution_log value('abc1');
-create event abc2 on schedule every 1 second do
-insert into execution_log value('abc2');
-create event abc3 on schedule every 1 second do
-insert into execution_log value('abc3');
-create table event_like like mysql.event;
-insert into event_like select * from mysql.event;
-alter table mysql.event
-change column body body longtext character set utf8 collate utf8_bin;
-"Now we restart the server"
-use events_test;
-select @@event_scheduler;
-@@event_scheduler
-OFF
-show events;
-ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start
-select event_name from information_schema.events;
-ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start
-show create event intact_check;
-ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start
-drop event no_such_event;
-ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start
-create event intact_check_1 on schedule every 5 hour do select 5;
-ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start
-alter event intact_check_1 on schedule every 8 hour do select 8;
-ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start
-alter event intact_check_1 rename to intact_check_2;
-ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start
-drop event intact_check_1;
-ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start
-drop event intact_check_2;
-ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start
-drop event intact_check;
-ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start
-set global event_scheduler=on;
-ERROR HY000: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
-set global event_scheduler=off;
-ERROR HY000: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
-show variables like 'event_scheduler';
-Variable_name Value
-event_scheduler OFF
-Make sure that we still can create and drop databases,
-and no warnings are produced.
-drop database if exists mysqltest_database_not_exists;
-Warnings:
-Note 1008 Can't drop database 'mysqltest_database_not_exists'; database doesn't exist
-create database mysqltest_db1;
-drop database mysqltest_db1;
-Warnings:
-Error 1545 Failed to open mysql.event
-Restore the original mysql.event table
-drop table mysql.event;
-rename table event_like to mysql.event;
-check that we can now enable events without restart
-set global event_scheduler=original;
-Warnings:
-Note 1408 Event Scheduler: Loaded 3 events
-select @@global.event_scheduler;
-@@global.event_scheduler
-ON
-set global event_scheduler=on;
-select @@global.event_scheduler;
-@@global.event_scheduler
-ON
-show events;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-events_test abc1 root@localhost SYSTEM RECURRING # 1 SECOND # # ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test abc2 root@localhost SYSTEM RECURRING # 1 SECOND # # ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-events_test abc3 root@localhost SYSTEM RECURRING # 1 SECOND # # ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-Now let's restart the server again
-use events_test;
-select @@event_scheduler;
-@@event_scheduler
-ON
-drop table execution_log;
-drop database events_test;
-#
-# Test for bug#11748899 -- EVENT SET TO DISABLED AND ON COMPLETION
-# NOT PRESERVE IS DELETED AT SERVER
-#
-SELECT @@event_scheduler;
-@@event_scheduler
-ON
-USE test;
-DROP EVENT IF EXISTS e1;
-CREATE EVENT e1 ON SCHEDULE EVERY 1 SECOND DISABLE DO SELECT 1;
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-test e1 root@localhost SYSTEM RECURRING # 1 SECOND # # DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-"Now we restart the server"
-USE test;
-SELECT @@event_scheduler;
-@@event_scheduler
-ON
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-test e1 root@localhost SYSTEM RECURRING # 1 SECOND # # DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-DROP EVENT e1;
-# end test for bug#11748899
diff --git a/mysql-test/r/events_scheduling.result b/mysql-test/r/events_scheduling.result
deleted file mode 100644
index 262caea3d7f..00000000000
--- a/mysql-test/r/events_scheduling.result
+++ /dev/null
@@ -1,105 +0,0 @@
-CREATE DATABASE IF NOT EXISTS events_test;
-USE events_test;
-SET @event_scheduler=@@global.event_scheduler;
-SET GLOBAL event_scheduler=OFF;
-Try again to make sure it's allowed
-SET GLOBAL event_scheduler=OFF;
-SHOW VARIABLES LIKE 'event_scheduler';
-Variable_name Value
-event_scheduler OFF
-SET GLOBAL event_scheduler=1;
-SHOW VARIABLES LIKE 'event_scheduler';
-Variable_name Value
-event_scheduler ON
-SET GLOBAL event_scheduler=0;
-SHOW VARIABLES LIKE 'event_scheduler';
-Variable_name Value
-event_scheduler OFF
-SET GLOBAL event_scheduler=ON;
-Try again to make sure it's allowed
-SET GLOBAL event_scheduler=ON;
-SHOW VARIABLES LIKE 'event_scheduler';
-Variable_name Value
-event_scheduler ON
-SET GLOBAL event_scheduler=DISABLED;
-ERROR 42000: Variable 'event_scheduler' can't be set to the value of 'DISABLED'
-SHOW VARIABLES LIKE 'event_scheduler';
-Variable_name Value
-event_scheduler ON
-SET GLOBAL event_scheduler=-1;
-ERROR 42000: Variable 'event_scheduler' can't be set to the value of '-1'
-SHOW VARIABLES LIKE 'event_scheduler';
-Variable_name Value
-event_scheduler ON
-SET GLOBAL event_scheduler=2;
-ERROR 42000: Variable 'event_scheduler' can't be set to the value of '2'
-SHOW VARIABLES LIKE 'event_scheduler';
-Variable_name Value
-event_scheduler ON
-SET GLOBAL event_scheduler=5;
-ERROR 42000: Variable 'event_scheduler' can't be set to the value of '5'
-SHOW VARIABLES LIKE 'event_scheduler';
-Variable_name Value
-event_scheduler ON
-CREATE TABLE table_1(a int);
-CREATE TABLE table_2(a int);
-CREATE TABLE table_3(a int);
-CREATE TABLE table_4(a int);
-SET GLOBAL event_scheduler=ON;
-CREATE EVENT event_1 ON SCHEDULE EVERY 2 SECOND
-DO
-INSERT INTO table_1 VALUES (1);
-CREATE EVENT event_2 ON SCHEDULE EVERY 1 SECOND
-ENDS NOW() + INTERVAL 6 SECOND
-ON COMPLETION PRESERVE
-DO
-INSERT INTO table_2 VALUES (1);
-CREATE EVENT event_3 ON SCHEDULE EVERY 2 SECOND ENDS NOW() + INTERVAL 1 SECOND
-ON COMPLETION NOT PRESERVE
-DO
-INSERT INTO table_3 VALUES (1);
-CREATE EVENT event_4 ON SCHEDULE EVERY 1 SECOND ENDS NOW() + INTERVAL 1 SECOND
-ON COMPLETION PRESERVE
-DO
-INSERT INTO table_4 VALUES (1);
-SELECT IF(TIME_TO_SEC(TIMEDIFF(ENDS,STARTS))=6, 'OK', 'ERROR')
-FROM INFORMATION_SCHEMA.EVENTS
-WHERE EVENT_SCHEMA=DATABASE() AND EVENT_NAME='event_2';
-IF(TIME_TO_SEC(TIMEDIFF(ENDS,STARTS))=6, 'OK', 'ERROR')
-OK
-"Already dropped because ended. Therefore an error."
-DROP EVENT event_3;
-ERROR HY000: Unknown event 'event_3'
-DROP EVENT event_1;
-"Should be preserved"
-SELECT EVENT_NAME, STATUS FROM INFORMATION_SCHEMA.EVENTS ORDER BY EVENT_NAME;
-EVENT_NAME STATUS
-event_2 DISABLED
-event_4 DISABLED
-DROP EVENT event_2;
-DROP EVENT event_4;
-DROP TABLE table_1;
-DROP TABLE table_2;
-DROP TABLE table_3;
-DROP TABLE table_4;
-
-Bug #50087 Interval arithmetic for Event_queue_element is not portable.
-
-CREATE TABLE t1(a int);
-CREATE EVENT e1 ON SCHEDULE EVERY 1 MONTH
-STARTS NOW() - INTERVAL 1 MONTH
-ENDS NOW() + INTERVAL 2 MONTH
-ON COMPLETION PRESERVE
-DO
-INSERT INTO t1 VALUES (1);
-CREATE EVENT e2 ON SCHEDULE EVERY 1 MONTH
-STARTS NOW()
-ENDS NOW() + INTERVAL 11 MONTH
-ON COMPLETION PRESERVE
-DO
-INSERT INTO t1 VALUES (1);
-DROP TABLE t1;
-DROP EVENT e1;
-DROP EVENT e2;
-DROP DATABASE events_test;
-SET GLOBAL event_scheduler=@event_scheduler;
diff --git a/mysql-test/r/events_slowlog.result b/mysql-test/r/events_slowlog.result
deleted file mode 100644
index be0a1e78d2a..00000000000
--- a/mysql-test/r/events_slowlog.result
+++ /dev/null
@@ -1,13 +0,0 @@
-set @event_scheduler_save= @@global.event_scheduler;
-set @slow_query_log_save= @@global.slow_query_log;
-set global event_scheduler= on;
-set global slow_query_log= on;
-set global long_query_time=0.2;
-create table t1 (i int);
-insert into t1 values (0);
-create event ev on schedule at CURRENT_TIMESTAMP + INTERVAL 1 second do update t1 set i=1+sleep(0.5);
-FOUND 1 /update t1 set i=1/ in mysqld-slow.log
-drop table t1;
-set global event_scheduler= @event_scheduler_save;
-set global slow_query_log= @slow_query_log_save;
-set global long_query_time= @@session.long_query_time;
diff --git a/mysql-test/r/events_stress.result b/mysql-test/r/events_stress.result
deleted file mode 100644
index 1a91ff0f528..00000000000
--- a/mysql-test/r/events_stress.result
+++ /dev/null
@@ -1,78 +0,0 @@
-CREATE DATABASE IF NOT EXISTS events_test;
-CREATE DATABASE events_conn1_test2;
-CREATE TABLE events_test.fill_it1(test_name varchar(20), occur datetime);
-CREATE TABLE events_test.fill_it2(test_name varchar(20), occur datetime);
-CREATE TABLE events_test.fill_it3(test_name varchar(20), occur datetime);
-CREATE USER event_user2@localhost;
-CREATE DATABASE events_conn2_db;
-GRANT ALL ON *.* TO event_user2@localhost;
-CREATE USER event_user3@localhost;
-CREATE DATABASE events_conn3_db;
-GRANT ALL ON *.* TO event_user3@localhost;
-connect conn2,localhost,event_user2,,events_conn2_db;
-"In the second connection we create some events which won't be dropped till the end"
-connect conn3,localhost,event_user3,,events_conn3_db;
-"In the second connection we create some events which won't be dropped till the end"
-connection default;
-USE events_conn1_test2;
-CREATE EVENT ev_drop1 ON SCHEDULE EVERY 10 MINUTE DISABLE DO SELECT 1;
-CREATE EVENT ev_drop2 ON SCHEDULE EVERY 10 MINUTE DISABLE DO SELECT 1;
-CREATE EVENT ev_drop3 ON SCHEDULE EVERY 10 MINUTE DISABLE DO SELECT 1;
-USE events_test;
-SELECT COUNT(*) FROM INFORMATION_SCHEMA.EVENTS;
-COUNT(*)
-103
-SELECT COUNT(*) FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_SCHEMA='events_conn1_test2';
-COUNT(*)
-3
-DROP DATABASE events_conn1_test2;
-SELECT COUNT(*) FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_SCHEMA='events_conn1_test2';
-COUNT(*)
-0
-"Now testing stability - dropping db -> events while they are running"
-CREATE DATABASE events_conn1_test2;
-USE events_conn1_test2;
-SELECT COUNT(*) FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_SCHEMA='events_conn1_test2';
-COUNT(*)
-50
-SET @old_event_scheduler=@@event_scheduler;
-SET GLOBAL event_scheduler=on;
-DROP DATABASE events_conn1_test2;
-SET GLOBAL event_scheduler=off;
-SELECT COUNT(*) FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_SCHEMA='events_conn1_test2';
-COUNT(*)
-0
-CREATE DATABASE events_conn1_test3;
-USE events_conn1_test3;
-SET GLOBAL event_scheduler=on;
-SELECT COUNT(*) FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_SCHEMA='events_conn1_test3';
-COUNT(*)
-50
-CREATE DATABASE events_conn1_test4;
-USE events_conn1_test4;
-CREATE DATABASE events_conn1_test2;
-USE events_conn1_test2;
-SELECT COUNT(*) FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_SCHEMA='events_conn1_test2';
-COUNT(*)
-50
-connection conn2;
-DROP DATABASE events_conn2_db;
-connection conn3;
-DROP DATABASE events_conn3_db;
-connection default;
-DROP DATABASE events_conn1_test2;
-DROP DATABASE events_conn1_test3;
-SET GLOBAL event_scheduler=off;
-DROP DATABASE events_conn1_test4;
-SET GLOBAL event_scheduler=on;
-connection conn2;
-disconnect conn2;
-connection conn3;
-disconnect conn3;
-connection default;
-USE events_test;
-DROP TABLE fill_it1;
-DROP TABLE fill_it2;
-DROP TABLE fill_it3;
-DROP DATABASE events_test;
-SET GLOBAL event_scheduler=@old_event_scheduler;
diff --git a/mysql-test/r/events_time_zone.result b/mysql-test/r/events_time_zone.result
deleted file mode 100644
index 155a9d155af..00000000000
--- a/mysql-test/r/events_time_zone.result
+++ /dev/null
@@ -1,152 +0,0 @@
-DROP DATABASE IF EXISTS mysqltest_db1;
-CREATE DATABASE mysqltest_db1;
-USE mysqltest_db1;
-SET GLOBAL EVENT_SCHEDULER= OFF;
-SET @save_time_zone= @@TIME_ZONE;
-CREATE TABLE t_step (step INT);
-INSERT INTO t_step VALUES (@step);
-CREATE FUNCTION round_to_step(i INT, n INT) RETURNS INT
-BEGIN
-DECLARE step INT;
-SELECT * INTO step FROM t_step;
-# We add 0.1 as a protection from inexact division.
-RETURN FLOOR((i % (step * n) + 0.1) / step);
-END//
-SET @step3= @step * 3;
-SET @step6= @step * 6;
-SET @unix_time= UNIX_TIMESTAMP() - 1;
-SET @unix_time= @unix_time - @unix_time % @step6;
-INSERT INTO mysql.time_zone VALUES (NULL, 'N');
-SET @tzid= LAST_INSERT_ID();
-INSERT INTO mysql.time_zone_transition_type
-VALUES (@tzid, 0, 0, 0, 'b16420_0');
-INSERT INTO mysql.time_zone_transition_type
-VALUES (@tzid, 1, @step3 - @step, 1, 'b16420_1');
-INSERT INTO mysql.time_zone_name VALUES ('<TZ_NAME_1>', @tzid);
-CREATE TABLE t1 (count INT, unix_time INT, local_time INT, comment CHAR(80));
-CREATE TABLE t2 (count INT);
-INSERT INTO t2 VALUES (1);
-CREATE FUNCTION f1(comment CHAR(80)) RETURNS INT
-BEGIN
-DECLARE orig_tz CHAR(64);
-DECLARE unix_time INT;
-DECLARE local_now DATETIME;
-DECLARE utc_now DATETIME;
-DECLARE local_time INT;
-SET unix_time= UNIX_TIMESTAMP();
-SET local_now= FROM_UNIXTIME(unix_time);
-SET orig_tz= @@TIME_ZONE;
-SET TIME_ZONE = '+00:00';
-SET utc_now= FROM_UNIXTIME(unix_time);
-SET TIME_ZONE= orig_tz;
-SET local_time = unix_time + TIMESTAMPDIFF(SECOND, utc_now, local_now);
-SET unix_time= round_to_step(unix_time, 6);
-SET local_time= round_to_step(local_time, 6);
-INSERT INTO t1 VALUES ((SELECT count FROM t2),
-unix_time, local_time, comment);
-RETURN 0;
-END//
-SET TIME_ZONE= '+00:00';
-CREATE EVENT e1 ON SCHEDULE EVERY @step SECOND
-STARTS FROM_UNIXTIME(@unix_time) DO SELECT f1("<e1>");
-SET TIME_ZONE= '<TZ_NAME_1>';
-CREATE EVENT e2 ON SCHEDULE EVERY @step SECOND
-STARTS FROM_UNIXTIME(@unix_time) DO SELECT f1("<e2>");
-SET GLOBAL EVENT_SCHEDULER= ON;
-SELECT SLEEP(@step / 2);
-SLEEP(@step / 2)
-0
-SET GLOBAL EVENT_SCHEDULER= OFF;
-SELECT * FROM t1 ORDER BY count, comment;
-count unix_time local_time comment
-1 1 1 <e1>
-1 1 3 <e2>
-1 1 3 e2 should be executed
-2 2 2 <e1>
-2 2 4 <e2>
-2 2 4 e2 should be executed
-3 3 3 <e1>
-3 3 3 Second pass after backward -2 step shift, e2 should not be executed
-4 4 4 <e1>
-4 4 4 Second pass after backward -2 step shift, e2 should not be executed
-5 5 5 <e1>
-5 5 5 <e2>
-5 5 5 e2 should be executed
-6 0 0 <e1>
-6 0 2 <e2>
-6 0 2 Forward +2 step shift, local 0, 1 are skipped, e2 should be executed
-7 1 1 <e1>
-7 1 3 <e2>
-7 1 3 e2 should be executed
-SET TIME_ZONE= @save_time_zone;
-DROP EVENT e2;
-DROP EVENT e1;
-DROP FUNCTION f1;
-DROP TABLE t1, t2;
-DELETE FROM mysql.time_zone_name WHERE time_zone_id = @tzid;
-DELETE FROM mysql.time_zone_transition_type WHERE time_zone_id = @tzid;
-DELETE FROM mysql.time_zone_transition WHERE time_zone_id = @tzid;
-DELETE FROM mysql.time_zone WHERE time_zone_id = @tzid;
-ALTER TABLE mysql.time_zone AUTO_INCREMENT = 6;
-SET TIME_ZONE= '+00:00';
-CREATE TABLE t1 (event CHAR(2), dt DATE, offset INT);
-INSERT INTO mysql.time_zone VALUES (NULL, 'N');
-SET @tzid= LAST_INSERT_ID();
-SET @now= UNIX_TIMESTAMP();
-SET @offset_month_01= UNIX_TIMESTAMP('2030-01-31 12:00:00') - @now;
-SET @offset_month_02= UNIX_TIMESTAMP('2030-02-28 12:00:00') - @now - 5*@step;
-SET @offset_month_03= UNIX_TIMESTAMP('2030-03-31 12:00:00') - @now - 5*@step;
-SET @offset_month_04= UNIX_TIMESTAMP('2030-04-30 12:00:00') - @now - 13*@step;
-INSERT INTO mysql.time_zone_transition_type
-VALUES (@tzid, 0, @offset_month_01, 0, 'b16420_0');
-INSERT INTO mysql.time_zone_transition_type
-VALUES (@tzid, 1, @offset_month_02, 1, 'b16420_1');
-INSERT INTO mysql.time_zone_transition_type
-VALUES (@tzid, 2, @offset_month_03, 1, 'b16420_2');
-INSERT INTO mysql.time_zone_transition_type
-VALUES (@tzid, 3, @offset_month_04, 1, 'b16420_3');
-INSERT INTO mysql.time_zone_transition
-VALUES (@tzid, @now, 0);
-INSERT INTO mysql.time_zone_transition
-VALUES (@tzid, @now + 3 * @step, 1);
-INSERT INTO mysql.time_zone_transition
-VALUES (@tzid, @now + 7 * @step, 2);
-INSERT INTO mysql.time_zone_transition
-VALUES (@tzid, @now + 12 * @step, 3);
-INSERT INTO mysql.time_zone_name VALUES ('<TZ_NAME_2>', @tzid);
-SET TIME_ZONE= '<TZ_NAME_2>';
-SET GLOBAL EVENT_SCHEDULER= ON;
-SET GLOBAL EVENT_SCHEDULER= OFF;
-Below we should see the following:
-- On Jan 31 only e2 is executed, because we started later than
-e1 should have been executed. Offset of e2 is 0 because of
-the late start, not 1.
-- The next execution is on Feb 28 (last day of Feb). Both events
-are executed in their times, offsets are -1 and 1.
-- The next time is Mar 31. Because the time of event
-execution was skipped over, events are executed right away,
-offsets are 2 and 2.
-- The next time is Apr 30. Events are again executed in their
-appointed times, offsets are -1 and 1.
-SELECT * FROM t1 ORDER BY dt, event;
-event dt offset
-e2 2030-01-31 0
-e1 2030-02-28 -1
-e2 2030-02-28 1
-e1 2030-03-31 2
-e2 2030-03-31 2
-e1 2030-04-30 -1
-e2 2030-04-30 1
-DROP EVENT e2;
-DROP EVENT e1;
-DROP TABLE t1;
-SET TIME_ZONE= @save_time_zone;
-DELETE FROM mysql.time_zone_name WHERE time_zone_id = @tzid;
-DELETE FROM mysql.time_zone_transition_type WHERE time_zone_id = @tzid;
-DELETE FROM mysql.time_zone_transition WHERE time_zone_id = @tzid;
-DELETE FROM mysql.time_zone WHERE time_zone_id = @tzid;
-ALTER TABLE mysql.time_zone AUTO_INCREMENT = 6;
-DROP FUNCTION round_to_step;
-DROP TABLE t_step;
-DROP DATABASE mysqltest_db1;
-End of 5.1 tests.
diff --git a/mysql-test/r/events_trans.result b/mysql-test/r/events_trans.result
deleted file mode 100644
index 873f0441089..00000000000
--- a/mysql-test/r/events_trans.result
+++ /dev/null
@@ -1,139 +0,0 @@
-set sql_mode="";
-drop database if exists events_test;
-drop database if exists mysqltest_no_such_database;
-create database events_test;
-use events_test;
-
-Test that Events DDL issue an implicit COMMIT
-
-
-set autocommit=off;
-select @@autocommit;
-@@autocommit
-0
-create table t1 (a varchar(255)) engine=innodb;
-begin work;
-insert into t1 (a) values ("OK: create event");
-create event e1 on schedule every 1 day do select 1;
-rollback work;
-select * from t1;
-a
-OK: create event
-delete from t1;
-commit work;
-begin work;
-insert into t1 (a) values ("OK: alter event");
-alter event e1 on schedule every 2 day do select 2;
-rollback work;
-select * from t1;
-a
-OK: alter event
-delete from t1;
-commit work;
-begin work;
-insert into t1 (a) values ("OK: alter event rename");
-alter event e1 rename to e2;
-rollback work;
-select * from t1;
-a
-OK: alter event rename
-delete from t1;
-commit work;
-begin work;
-insert into t1 (a) values ("OK: drop event");
-drop event e2;
-rollback work;
-select * from t1;
-a
-OK: drop event
-delete from t1;
-commit work;
-begin work;
-insert into t1 (a) values ("OK: drop event if exists");
-drop event if exists e2;
-Warnings:
-Note 1305 Event e2 does not exist
-rollback work;
-select * from t1;
-a
-OK: drop event if exists
-delete from t1;
-commit work;
-create event e1 on schedule every 1 day do select 1;
-begin work;
-insert into t1 (a) values ("OK: create event if not exists");
-create event if not exists e1 on schedule every 2 day do select 2;
-Warnings:
-Note 1537 Event 'e1' already exists
-rollback work;
-select * from t1;
-a
-OK: create event if not exists
-delete from t1;
-commit work;
-
-Now check various error conditions: make sure we issue an
-implicit commit anyway
-
-begin work;
-insert into t1 (a) values ("OK: create event: event already exists");
-create event e1 on schedule every 2 day do select 2;
-ERROR HY000: Event 'e1' already exists
-rollback work;
-select * from t1;
-a
-OK: create event: event already exists
-delete from t1;
-commit work;
-begin work;
-insert into t1 (a) values ("OK: alter event rename: rename to same name");
-alter event e1 rename to e1;
-ERROR HY000: Same old and new event name
-rollback work;
-select * from t1;
-a
-OK: alter event rename: rename to same name
-delete from t1;
-commit work;
-create event e2 on schedule every 3 day do select 3;
-begin work;
-insert into t1 (a) values ("OK: alter event rename: destination exists");
-alter event e2 rename to e1;
-ERROR HY000: Event 'e1' already exists
-rollback work;
-select * from t1;
-a
-OK: alter event rename: destination exists
-delete from t1;
-commit work;
-begin work;
-insert into t1 (a) values ("OK: create event: database does not exist");
-create event mysqltest_no_such_database.e1 on schedule every 1 day do select 1;
-ERROR 42000: Unknown database 'mysqltest_no_such_database'
-rollback work;
-select * from t1;
-a
-OK: create event: database does not exist
-delete from t1;
-commit work;
-drop database events_test;
-#
-# Bug#54105 assert in MDL_context::release_locks_stored_before
-#
-USE test;
-DROP TABLE IF EXISTS t1, t2;
-DROP EVENT IF EXISTS e1;
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-CREATE TABLE t2 (a INT);
-CREATE EVENT e1 ON SCHEDULE EVERY 1 DAY DO SELECT 1;
-START TRANSACTION;
-INSERT INTO t1 VALUES (1);
-SAVEPOINT A;
-SHOW CREATE EVENT e1;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-e1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `e1` ON SCHEDULE EVERY 1 DAY STARTS '#' ON COMPLETION NOT PRESERVE ENABLE DO SELECT 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SELECT * FROM t2;
-a
-ROLLBACK WORK TO SAVEPOINT A;
-DROP TABLE t1, t2;
-DROP EVENT e1;
diff --git a/mysql-test/r/events_trans_notembedded.result b/mysql-test/r/events_trans_notembedded.result
deleted file mode 100644
index 324e28ddb62..00000000000
--- a/mysql-test/r/events_trans_notembedded.result
+++ /dev/null
@@ -1,49 +0,0 @@
-drop database if exists events_test;
-drop database if exists mysqltest_db2;
-create database events_test;
-use events_test;
-create user mysqltest_user1@localhost;
-grant create, insert, select, delete on mysqltest_db2.*
-to mysqltest_user1@localhost;
-create database mysqltest_db2;
-connect conn1,localhost,mysqltest_user1,,mysqltest_db2;
-set autocommit=off;
-select @@autocommit;
-@@autocommit
-0
-create table t1 (a varchar(255)) engine=innodb;
-begin work;
-insert into t1 (a) values ("OK: create event: insufficient privileges");
-create event e1 on schedule every 1 day do select 1;
-ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2'
-rollback work;
-select * from t1;
-a
-OK: create event: insufficient privileges
-delete from t1;
-commit work;
-begin work;
-insert into t1 (a) values ("OK: alter event: insufficient privileges");
-alter event e1 on schedule every 1 day do select 1;
-ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2'
-rollback work;
-select * from t1;
-a
-OK: alter event: insufficient privileges
-delete from t1;
-commit work;
-begin work;
-insert into t1 (a) values ("OK: drop event: insufficient privileges");
-drop event e1;
-ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2'
-rollback work;
-select * from t1;
-a
-OK: drop event: insufficient privileges
-delete from t1;
-commit work;
-disconnect conn1;
-connection default;
-drop user mysqltest_user1@localhost;
-drop database mysqltest_db2;
-drop database events_test;
diff --git a/mysql-test/r/except.result b/mysql-test/r/except.result
deleted file mode 100644
index 594bb7118eb..00000000000
--- a/mysql-test/r/except.result
+++ /dev/null
@@ -1,537 +0,0 @@
-create table t1 (a int, b int) engine=MyISAM;
-create table t2 (c int, d int) engine=MyISAM;
-insert into t1 values (1,1),(2,2);
-insert into t2 values (2,2),(3,3);
-(select a,b from t1) except (select c,d from t2);
-a b
-1 1
-EXPLAIN (select a,b from t1) except (select c,d from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 EXCEPT t2 ALL NULL NULL NULL NULL 2
-NULL EXCEPT RESULT <except1,2> ALL NULL NULL NULL NULL NULL
-EXPLAIN extended (select a,b from t1) except (select c,d from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 EXCEPT t2 ALL NULL NULL NULL NULL 2 100.00
-NULL EXCEPT RESULT <except1,2> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 (/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1`) except (/* select#2 */ select `test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2`)
-EXPLAIN extended select * from ((select a,b from t1) except (select c,d from t2)) a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00
-3 EXCEPT t2 ALL NULL NULL NULL NULL 2 100.00
-NULL EXCEPT RESULT <except2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `a`.`a` AS `a`,`a`.`b` AS `b` from ((/* select#2 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1`) except (/* select#3 */ select `test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2`)) `a`
-EXPLAIN format=json (select a,b from t1) except (select c,d from t2);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<except1,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "EXCEPT",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- }
- }
- }
- ]
- }
- }
-}
-ANALYZE format=json (select a,b from t1) except (select c,d from t2);
-ANALYZE
-{
- "query_block": {
- "union_result": {
- "table_name": "<except1,2>",
- "access_type": "ALL",
- "r_loops": 1,
- "r_rows": 1,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "EXCEPT",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- }
- ]
- }
- }
-}
-ANALYZE format=json select * from ((select a,b from t1) except (select c,d from t2)) a;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 1,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except2,3>",
- "access_type": "ALL",
- "r_loops": 1,
- "r_rows": 1,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-select * from ((select a,b from t1) except (select c,d from t2)) a;
-a b
-1 1
-prepare stmt from "(select a,b from t1) except (select c,d from t2)";
-execute stmt;
-a b
-1 1
-execute stmt;
-a b
-1 1
-prepare stmt from "select * from ((select a,b from t1) except (select c,d from t2)) a";
-execute stmt;
-a b
-1 1
-execute stmt;
-a b
-1 1
-drop tables t1,t2;
-create table t1 (a int, b int) engine=MyISAM;
-create table t2 (c int, d int) engine=MyISAM;
-create table t3 (e int, f int) engine=MyISAM;
-create table t4 (g int, h int) engine=MyISAM;
-insert into t1 values (1,1),(2,2);
-insert into t2 values (2,2),(3,3);
-insert into t3 values (4,4),(5,5);
-insert into t4 values (4,4),(7,7);
-(select a,b,e,f from t1,t3) except (select c,d,g,h from t2,t4);
-a b e f
-1 1 4 4
-1 1 5 5
-2 2 5 5
-EXPLAIN (select a,b,e,f from t1,t3) except (select c,d,g,h from t2,t4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 EXCEPT t2 ALL NULL NULL NULL NULL 2
-2 EXCEPT t4 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-NULL EXCEPT RESULT <except1,2> ALL NULL NULL NULL NULL NULL
-EXPLAIN (select a,b,e,f from t1,t3) except (select c,d,g,h from t2,t4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 EXCEPT t2 ALL NULL NULL NULL NULL 2
-2 EXCEPT t4 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-NULL EXCEPT RESULT <except1,2> ALL NULL NULL NULL NULL NULL
-EXPLAIN extended select * from ((select a,b,e,f from t1,t3) except (select c,d,g,h from t2,t4)) a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00
-2 DERIVED t3 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (flat, BNL join)
-3 EXCEPT t2 ALL NULL NULL NULL NULL 2 100.00
-3 EXCEPT t4 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (flat, BNL join)
-NULL EXCEPT RESULT <except2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `a`.`a` AS `a`,`a`.`b` AS `b`,`a`.`e` AS `e`,`a`.`f` AS `f` from ((/* select#2 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t3`.`e` AS `e`,`test`.`t3`.`f` AS `f` from `test`.`t1` join `test`.`t3`) except (/* select#3 */ select `test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d`,`test`.`t4`.`g` AS `g`,`test`.`t4`.`h` AS `h` from `test`.`t2` join `test`.`t4`)) `a`
-EXPLAIN format=json (select a,b,e,f from t1,t3) except (select c,d,g,h from t2,t4);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<except1,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "EXCEPT",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "t4",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL"
- }
- }
- }
- ]
- }
- }
-}
-ANALYZE format=json (select a,b,e,f from t1,t3) except (select c,d,g,h from t2,t4);
-ANALYZE
-{
- "query_block": {
- "union_result": {
- "table_name": "<except1,2>",
- "access_type": "ALL",
- "r_loops": 1,
- "r_rows": 3,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "r_filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "EXCEPT",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "t4",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "r_filtered": 100
- }
- }
- }
- ]
- }
- }
-}
-ANALYZE format=json select * from ((select a,b,e,f from t1,t3) except
-(select c,d,g,h from t2,t4)) a;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 4,
- "r_rows": 3,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<except2,3>",
- "access_type": "ALL",
- "r_loops": 1,
- "r_rows": 3,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "r_filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "EXCEPT",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "t4",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "r_filtered": 100
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-select * from ((select a,b,e,f from t1,t3) except (select c,d,g,h from t2,t4)) a;
-a b e f
-1 1 4 4
-1 1 5 5
-2 2 5 5
-prepare stmt from "(select a,b,e,f from t1,t3) except (select c,d,g,h from t2,t4)";
-execute stmt;
-a b e f
-1 1 4 4
-1 1 5 5
-2 2 5 5
-execute stmt;
-a b e f
-1 1 4 4
-1 1 5 5
-2 2 5 5
-prepare stmt from "select * from ((select a,b,e,f from t1,t3) except (select c,d,g,h from t2,t4)) a";
-execute stmt;
-a b e f
-1 1 4 4
-1 1 5 5
-2 2 5 5
-execute stmt;
-a b e f
-1 1 4 4
-1 1 5 5
-2 2 5 5
-drop tables t1,t2,t3,t4;
-select 1 as a from dual except select 1 from dual;
-a
-(select 1 from dual) except (select 1 from dual);
-1
-(select 1 from dual into @v) except (select 1 from dual);
-ERROR HY000: Incorrect usage of EXCEPT and INTO
-select 1 from dual ORDER BY 1 except select 1 from dual;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'except select 1 from dual' at line 1
-select 1 as a from dual union all select 1 from dual;
-a
-1
-1
-select 1 from dual except all select 1 from dual;
-ERROR HY000: Incorrect usage of EXCEPT and ALL
-create table t1 (a int, b blob, a1 int, b1 blob) engine=MyISAM;
-create table t2 (c int, d blob, c1 int, d1 blob) engine=MyISAM;
-insert into t1 values (1,"ddd", 1, "sdfrrwwww"),(2, "fgh", 2, "dffggtt");
-insert into t2 values (2, "fgh", 2, "dffggtt"),(3, "ffggddd", 3, "dfgg");
-(select a,b,b1 from t1) except (select c,d,d1 from t2);
-a b b1
-1 ddd sdfrrwwww
-create table t3 (select a,b,b1 from t1) except (select c,d,d1 from t2);
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` int(11) DEFAULT NULL,
- `b` blob DEFAULT NULL,
- `b1` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop tables t1,t2,t3;
-#
-# MDEV-13723: Server crashes in ha_heap::find_unique_row or
-# Assertion `0' failed in st_select_lex_unit::optimize with INTERSECT
-#
-CREATE TABLE t (i INT);
-INSERT INTO t VALUES (1),(2);
-SELECT * FROM t WHERE i != ANY ( SELECT 3 EXCEPT SELECT 3 );
-i
-drop table t;
-# End of 10.3 tests
diff --git a/mysql-test/r/execution_constants.result b/mysql-test/r/execution_constants.result
deleted file mode 100644
index 86eed447b83..00000000000
--- a/mysql-test/r/execution_constants.result
+++ /dev/null
@@ -1,12 +0,0 @@
-CREATE TABLE `t_bug21476` (
-`ID_BOARD` smallint(5) unsigned NOT NULL default '0',
-`ID_MEMBER` mediumint(8) unsigned NOT NULL default '0',
-`logTime` int(10) unsigned NOT NULL default '0',
-`ID_MSG` mediumint(8) unsigned NOT NULL default '0',
-PRIMARY KEY (`ID_MEMBER`,`ID_BOARD`),
-KEY `logTime` (`logTime`)
-) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_bulgarian_ci;
-INSERT INTO `t_bug21476` VALUES (2,2,1154870939,0),(1,2,1154870957,0),(2,183,1154941362,0),(2,84,1154904301,0),(1,84,1154905867,0),(2,13,1154947484,10271),(3,84,1154880549,0),(1,6,1154892183,0),(2,25,1154947581,10271),(3,25,1154904760,0),(1,25,1154947373,10271),(1,179,1154899992,0),(2,179,1154899410,0),(5,25,1154901666,0),(2,329,1154902026,0),(3,329,1154902040,0),(1,329,1154902058,0),(1,13,1154930841,0),(3,85,1154904987,0),(1,183,1154929665,0),(3,13,1154931268,0),(1,85,1154936888,0),(1,169,1154937959,0),(2,169,1154941717,0),(3,183,1154939810,0),(3,169,1154941734,0);
-Assertion: mysql_errname ER_STACK_OVERRUN_NEED_MORE == ER_STACK_OVERRUN_NEED_MORE
-DROP TABLE `t_bug21476`;
-End of 5.0 tests.
diff --git a/mysql-test/r/explain.result b/mysql-test/r/explain.result
deleted file mode 100644
index f593e0dfaba..00000000000
--- a/mysql-test/r/explain.result
+++ /dev/null
@@ -1,409 +0,0 @@
-drop table if exists t1;
-create table t1 (id int not null, str char(10), unique(str));
-explain select * from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 Const row not found
-insert into t1 values (1, null),(2, null),(3, "foo"),(4, "bar");
-select * from t1 where str is null;
-id str
-1 NULL
-2 NULL
-select * from t1 where str="foo";
-id str
-3 foo
-explain select * from t1 where str is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref str str 11 const 1 Using index condition
-explain select * from t1 where str="foo";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const str str 11 const 1
-explain select * from t1 ignore key (str) where str="foo";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-explain select * from t1 use key (str,str) where str="foo";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const str str 11 const 1
-explain select * from t1 use key (str,str,foo) where str="foo";
-ERROR 42000: Key 'foo' doesn't exist in table 't1'
-explain select * from t1 ignore key (str,str,foo) where str="foo";
-ERROR 42000: Key 'foo' doesn't exist in table 't1'
-drop table t1;
-explain select 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-create table t1 (a int not null);
-explain select count(*) from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-insert into t1 values(1);
-explain select count(*) from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-insert into t1 values(1);
-explain select count(*) from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-drop table t1;
-set names koi8r;
-create table ÔÁÂ (ËÏÌ0 int, ËÏÌ1 int, key ÉÎÄ0 (ËÏÌ0), key ÉÎÄ01 (ËÏÌ0,ËÏÌ1));
-insert into ÔÁÂ (ËÏÌ0) values (1);
-insert into ÔÁÂ (ËÏÌ0) values (2);
-explain select ËÏÌ0 from ÔÁÂ where ËÏÌ0=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE ÔÁÂ ref ÉÎÄ0,ÉÎÄ01 ÉÎÄ0 5 const 1 Using index
-drop table ÔÁÂ;
-set names latin1;
-select 3 into @v1;
-explain select 3 into @v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-create table t1(f1 int, f2 int);
-insert into t1 values (1,1);
-create view v1 as select * from t1 where f1=1;
-explain extended select * from v1 where f2=1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select 1 AS `f1`,1 AS `f2` from dual where 1
-explain extended select * from t1 where 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2` from `test`.`t1` where 0
-explain extended select * from t1 where 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select 1 AS `f1`,1 AS `f2` from dual where 1
-explain extended select * from t1 having 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible HAVING
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2` from `test`.`t1` having 0
-explain extended select * from t1 having 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select 1 AS `f1`,1 AS `f2` from dual having 1
-drop view v1;
-drop table t1;
-CREATE TABLE t1(c INT);
-INSERT INTO t1 VALUES (),();
-CREATE TABLE t2 (b INT,
-KEY(b),KEY(b),KEY(b),KEY(b),KEY(b),
-KEY(b),KEY(b),KEY(b),KEY(b),KEY(b),
-KEY(b),KEY(b),KEY(b),KEY(b),KEY(b),
-KEY(b),KEY(b),KEY(b),KEY(b),KEY(b),
-KEY(b),KEY(b),KEY(b),KEY(b),KEY(b),
-KEY(b),KEY(b),KEY(b),KEY(b),KEY(b),
-KEY(b),KEY(b),KEY(b),KEY(b),KEY(b),
-KEY(b),KEY(b),KEY(b),KEY(b),KEY(b));
-Warnings:
-Note 1831 Duplicate index `b_2`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_3`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_4`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_5`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_6`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_7`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_8`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_9`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_10`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_11`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_12`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_13`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_14`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_15`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_16`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_17`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_18`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_19`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_20`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_21`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_22`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_23`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_24`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_25`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_26`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_27`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_28`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_29`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_30`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_31`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_32`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_33`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_34`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_35`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_36`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_37`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_38`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_39`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `b_40`. This is deprecated and will be disallowed in a future release
-INSERT INTO t2 VALUES (),(),();
-EXPLAIN SELECT 1 FROM
-(SELECT 1 FROM t2,t1 WHERE b < c GROUP BY 1 LIMIT 1) AS d2;
-id select_type table type possible_keys key key_len ref rows Extra
-X X X X X X X X X
-X X X X X X X X X
-X X X X X X X X X Range checked for each record (index map: 0xFFFFFFFFFF)
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1(a INT);
-CREATE TABLE t2(a INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1),(2);
-EXPLAIN EXTENDED SELECT 1
-FROM (SELECT COUNT(DISTINCT t1.a) FROM t1,t2 GROUP BY t1.a) AS s1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-2 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from (/* select#2 */ select count(distinct `test`.`t1`.`a`) AS `COUNT(DISTINCT t1.a)` from `test`.`t1` join `test`.`t2` group by `test`.`t1`.`a`) `s1`
-EXPLAIN EXTENDED SELECT 1
-FROM (SELECT COUNT(DISTINCT t1.a) FROM t1,t2 GROUP BY t1.a) AS s1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-2 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from (/* select#2 */ select count(distinct `test`.`t1`.`a`) AS `COUNT(DISTINCT t1.a)` from `test`.`t1` join `test`.`t2` group by `test`.`t1`.`a`) `s1`
-prepare s1 from
-'EXPLAIN EXTENDED SELECT 1
- FROM (SELECT COUNT(DISTINCT t1.a) FROM t1,t2 GROUP BY t1.a) AS s1';
-execute s1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-2 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from (/* select#2 */ select count(distinct `test`.`t1`.`a`) AS `COUNT(DISTINCT t1.a)` from `test`.`t1` join `test`.`t2` group by `test`.`t1`.`a`) `s1`
-prepare s1 from
-'EXPLAIN EXTENDED SELECT 1
- FROM (SELECT COUNT(DISTINCT t1.a) FROM t1,t2 GROUP BY t1.a) AS s1';
-execute s1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-2 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from (/* select#2 */ select count(distinct `test`.`t1`.`a`) AS `COUNT(DISTINCT t1.a)` from `test`.`t1` join `test`.`t2` group by `test`.`t1`.`a`) `s1`
-execute s1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-2 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from (/* select#2 */ select count(distinct `test`.`t1`.`a`) AS `COUNT(DISTINCT t1.a)` from `test`.`t1` join `test`.`t2` group by `test`.`t1`.`a`) `s1`
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT PRIMARY KEY);
-EXPLAIN EXTENDED SELECT COUNT(a) FROM t1 USE KEY(a);
-ERROR 42000: Key 'a' doesn't exist in table 't1'
-DROP TABLE t1;
-CREATE TABLE t1(a LONGTEXT);
-INSERT INTO t1 VALUES (repeat('a',@@global.max_allowed_packet));
-INSERT INTO t1 VALUES (repeat('b',@@global.max_allowed_packet));
-EXPLAIN SELECT DISTINCT 1 FROM t1,
-(SELECT DISTINCTROW a AS away FROM t1 GROUP BY a WITH ROLLUP) as d1
-WHERE t1.a = d1.a;
-ERROR 42S22: Unknown column 'd1.a' in 'where clause'
-DROP TABLE t1;
-#
-# Bug#48295:
-# explain extended crash with subquery and ONLY_FULL_GROUP_BY sql_mode
-#
-CREATE TABLE t1 (f1 INT not null);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-EXPLAIN EXTENDED SELECT 1 FROM t1
-WHERE f1 > ALL( SELECT t.f1 FROM t1,t1 AS t );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 SUBQUERY t system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 0
-SET SESSION sql_mode=@old_sql_mode;
-DROP TABLE t1;
-End of 5.0 tests.
-#
-# Bug#37870: Usage of uninitialized value caused failed assertion.
-#
-create table t1 (dt datetime not null, t time not null);
-create table t2 (dt datetime not null);
-insert into t1 values ('2001-01-01 1:1:1', '1:1:1'),
-('2001-01-01 1:1:1', '1:1:1');
-insert into t2 values ('2001-01-01 1:1:1'), ('2001-01-01 1:1:1');
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=0;
-flush tables;
-EXPLAIN SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN (SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.dt IS NULL );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY OUTR ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY INNR ALL NULL NULL NULL NULL 2 Using where; FirstMatch(OUTR)
-flush tables;
-SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN (SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.dt IS NULL );
-dt
-flush tables;
-EXPLAIN SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN ( SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.t < '2005-11-13 7:41:31' );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY OUTR ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY INNR ALL NULL NULL NULL NULL 2 Using where; FirstMatch(OUTR)
-flush tables;
-SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN ( SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.t < '2005-11-13 7:41:31' );
-dt
-2001-01-01 01:01:01
-2001-01-01 01:01:01
-SET join_cache_level=@save_join_cache_level;
-drop tables t1, t2;
-#
-# Bug#47669: Query showed by EXPLAIN EXTENDED gives different result from original query
-#
-CREATE TABLE t1 (c int);
-INSERT INTO t1 VALUES (NULL);
-CREATE TABLE t2 (d int);
-INSERT INTO t2 VALUES (NULL), (0);
-EXPLAIN EXTENDED SELECT (SELECT 1 FROM t2 WHERE d = c) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.c' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select (/* select#2 */ select 1 from `test`.`t2` where `test`.`t2`.`d` = NULL) AS `(SELECT 1 FROM t2 WHERE d = c)` from dual
-DROP TABLE t1, t2;
-#
-# Bug#30302: Tables that were optimized away are printed in the
-# EXPLAIN EXTENDED warning.
-#
-create table t1(f1 int);
-create table t2(f2 int);
-insert into t1 values(1);
-insert into t2 values(1),(2);
-explain extended select * from t1 where f1=1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select 1 AS `f1` from dual where 1
-explain extended select * from t1 join t2 on f1=f2 where f1=1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select 1 AS `f1`,`test`.`t2`.`f2` AS `f2` from `test`.`t2` where `test`.`t2`.`f2` = 1
-drop table t1,t2;
-#
-# Bug #48419: another explain crash..
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (b BLOB, KEY b(b(100)));
-INSERT INTO t2 VALUES ('1'), ('2'), ('3');
-FLUSH TABLES;
-EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT 1 FROM t1 t JOIN t2 WHERE b <= 1 AND t.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-DROP TABLE t1, t2;
-#
-# Bug #48573: difference of index selection between rpm binary and
-# .tar.gz, windows vs linux..
-#
-CREATE TABLE t1(c1 INT, c2 INT, c4 INT, c5 INT, KEY(c2, c5), KEY(c2, c4, c5));
-INSERT INTO t1 VALUES(4, 1, 1, 1);
-INSERT INTO t1 VALUES(3, 1, 1, 1);
-INSERT INTO t1 VALUES(2, 1, 1, 1);
-INSERT INTO t1 VALUES(1, 1, 1, 1);
-EXPLAIN SELECT c1 FROM t1 WHERE c2 = 1 AND c4 = 1 AND c5 = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref c2,c2_2 c2 10 const,const 3 Using where
-DROP TABLE t1;
-#
-# Bug#56814 Explain + subselect + fulltext crashes server
-#
-CREATE TABLE t1(f1 VARCHAR(6) NOT NULL,
-FULLTEXT KEY(f1),UNIQUE(f1));
-INSERT INTO t1 VALUES ('test');
-EXPLAIN SELECT 1 FROM t1
-WHERE 1 > ALL((SELECT t1.f1 FROM t1 JOIN t1 a ON (MATCH(t1.f1) AGAINST (""))
-WHERE t1.f1 GROUP BY t1.f1));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 SUBQUERY a system NULL NULL NULL NULL 1
-2 SUBQUERY t1 fulltext f1_2,f1 f1 0 1 Using where
-PREPARE stmt FROM
-'EXPLAIN SELECT 1 FROM t1
- WHERE 1 > ALL((SELECT t1.f1 FROM t1 RIGHT OUTER JOIN t1 a
- ON (MATCH(t1.f1) AGAINST (""))
- WHERE t1.f1 GROUP BY t1.f1))';
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 SUBQUERY a system NULL NULL NULL NULL 1
-2 SUBQUERY t1 fulltext f1_2,f1 f1 0 1 Using where
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 SUBQUERY a system NULL NULL NULL NULL 1
-2 SUBQUERY t1 fulltext f1_2,f1 f1 0 1 Using where
-DEALLOCATE PREPARE stmt;
-PREPARE stmt FROM
-'EXPLAIN SELECT 1 FROM t1
- WHERE 1 > ALL((SELECT t1.f1 FROM t1 JOIN t1 a
- ON (MATCH(t1.f1) AGAINST (""))
- WHERE t1.f1 GROUP BY t1.f1))';
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 SUBQUERY a system NULL NULL NULL NULL 1
-2 SUBQUERY t1 fulltext f1_2,f1 f1 0 1 Using where
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 SUBQUERY a system NULL NULL NULL NULL 1
-2 SUBQUERY t1 fulltext f1_2,f1 f1 0 1 Using where
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-End of 5.1 tests.
-#
-# Bug#11829785 EXPLAIN EXTENDED CRASH WITH RIGHT OUTER JOIN, SUBQUERIES
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (0), (0);
-PREPARE s FROM
-'EXPLAIN EXTENDED
-SELECT SUBSTRING(1, (SELECT 1 FROM t1 a1 RIGHT OUTER JOIN t1 ON 0)) AS d
-FROM t1 WHERE 0 > ANY (SELECT @a FROM t1)';
-EXECUTE s;
-ERROR 21000: Subquery returns more than 1 row
-DEALLOCATE PREPARE s;
-DROP TABLE t1;
-#
-# Bug#776295: EXPLAIN EXTENDED with always false multiple equality
-# in the WHERE condition of a derived table
-#
-CREATE TABLE t1 (a int) ;
-CREATE TABLE t2 (a int) ;
-INSERT INTO t2 VALUES (8);
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-EXPLAIN EXTENDED
-SELECT * FROM ( SELECT t1.a FROM t1,t2 WHERE t2.a = t1.a ) AS t;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 0 0.00 Const row not found
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select NULL AS `a` from (/* select#2 */ select NULL AS `a` from `test`.`t1` where 0) `t`
-set optimizer_switch=@tmp_optimizer_switch;
-DROP TABLE t1,t2;
-#
-# MDEV-7215: EXPLAIN REPLACE produces an error:
-# Column count doesn't match value count
-#
-create table t1 (a int);
-insert into t1 values (1);
-create table t2 (b int, c int);
-replace into t2 select 100, (select a from t1);
-explain replace into t2 select 100, (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t1 system NULL NULL NULL NULL 1
-drop table t1, t2;
-# End of 10.1 tests
diff --git a/mysql-test/r/explain_json.result b/mysql-test/r/explain_json.result
deleted file mode 100644
index ef6b70aff71..00000000000
--- a/mysql-test/r/explain_json.result
+++ /dev/null
@@ -1,1646 +0,0 @@
-drop table if exists t0,t1,t2;
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-explain format=json select * from t0;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
-}
-explain format=json select * from t0 where 1>2;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "Impossible WHERE"
- }
- }
-}
-explain format=json select * from t0 where a<3;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "t0.a < 3"
- }
- }
-}
-# Try a basic join
-create table t1 (a int, b int, filler char(32), key(a));
-insert into t1
-select
-a.a + b.a* 10 + c.a * 100,
-a.a + b.a* 10 + c.a * 100,
-'filler'
-from t0 a, t0 b, t0 c;
-explain format=json select * from t0,t1 where t1.a=t0.a;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "t0.a is not null"
- },
- "table": {
- "table_name": "t1",
- "access_type": "ref",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t0.a"],
- "rows": 1,
- "filtered": 100
- }
- }
-}
-# Try range and index_merge
-create table t2 (a1 int, a2 int, b1 int, b2 int, key(a1,a2), key(b1,b2));
-insert into t2 select a,a,a,a from t1;
-explain format=json select * from t2 where a1<5;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "range",
- "possible_keys": ["a1"],
- "key": "a1",
- "key_length": "5",
- "used_key_parts": ["a1"],
- "rows": 5,
- "filtered": 100,
- "index_condition": "t2.a1 < 5"
- }
- }
-}
-explain format=json select * from t2 where a1=1 or b1=2;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "index_merge",
- "possible_keys": ["a1", "b1"],
- "key_length": "5,5",
- "index_merge": {
- "sort_union": {
- "range": {
- "key": "a1",
- "used_key_parts": ["a1"]
- },
- "range": {
- "key": "b1",
- "used_key_parts": ["b1"]
- }
- }
- },
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t2.a1 = 1 or t2.b1 = 2"
- }
- }
-}
-explain format=json select * from t2 where a1=1 or (b1=2 and b2=3);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "index_merge",
- "possible_keys": ["a1", "b1"],
- "key_length": "5,10",
- "index_merge": {
- "sort_union": {
- "range": {
- "key": "a1",
- "used_key_parts": ["a1"]
- },
- "range": {
- "key": "b1",
- "used_key_parts": ["b1", "b2"]
- }
- }
- },
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t2.a1 = 1 or t2.b1 = 2 and t2.b2 = 3"
- }
- }
-}
-explain format=json select * from t2 where (a1=1 and a2=1) or
-(b1=2 and b2=1);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "index_merge",
- "possible_keys": ["a1", "b1"],
- "key_length": "10,10",
- "index_merge": {
- "union": {
- "range": {
- "key": "a1",
- "used_key_parts": ["a1", "a2"]
- },
- "range": {
- "key": "b1",
- "used_key_parts": ["b1", "b2"]
- }
- }
- },
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t2.a1 = 1 and t2.a2 = 1 or t2.b1 = 2 and t2.b2 = 1"
- }
- }
-}
-# Try ref access on two key components
-explain format=json select * from t0,t2 where t2.b1=t0.a and t2.b2=4;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "t0.a is not null"
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["b1"],
- "key": "b1",
- "key_length": "10",
- "used_key_parts": ["b1", "b2"],
- "ref": ["test.t0.a", "const"],
- "rows": 1,
- "filtered": 100
- }
- }
-}
-drop table t1,t2;
-#
-# Try a UNION
-#
-explain format=json select * from t0 A union select * from t0 B;
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "A",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "table_name": "B",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
- }
- ]
- }
- }
-}
-explain format=json select * from t0 A union all select * from t0 B;
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "A",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "table_name": "B",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
- }
- ]
- }
- }
-}
-#
-# Subqueries
-#
-create table t1 (a int, b int);
-insert into t1 select a,a from t0;
-explain format=json select a, a > (select max(b) from t1 where t1.b=t0.a) from t0;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- },
- "subqueries": [
- {
- "expression_cache": {
- "state": "uninitialized",
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "t1.b = t0.a"
- }
- }
- }
- }
- ]
- }
-}
-explain format=json
-select * from t0 where
-a > (select max(b) from t1 where t1.b=t0.a) or a < 3 ;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "t0.a > (subquery#2) or t0.a < 3"
- },
- "subqueries": [
- {
- "expression_cache": {
- "state": "uninitialized",
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "t1.b = t0.a"
- }
- }
- }
- }
- ]
- }
-}
-drop table t1;
-#
-# Join buffering
-#
-create table t1 (a int, b int);
-insert into t1 select tbl1.a+10*tbl2.a, tbl1.a+10*tbl2.a from t0 tbl1, t0 tbl2;
-explain format=json
-select * from t1 tbl1, t1 tbl2 where tbl1.a=tbl2.a and tbl1.b < 3 and tbl2.b < 5;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "tbl1",
- "access_type": "ALL",
- "rows": 100,
- "filtered": 100,
- "attached_condition": "tbl1.b < 3"
- },
- "block-nl-join": {
- "table": {
- "table_name": "tbl2",
- "access_type": "ALL",
- "rows": 100,
- "filtered": 100,
- "attached_condition": "tbl2.b < 5"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "tbl2.a = tbl1.a"
- }
- }
-}
-drop table t1;
-#
-# Single-table UPDATE/DELETE, INSERT
-#
-explain format=json delete from t0;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "Deleting all rows"
- }
- }
-}
-explain format=json delete from t0 where 1 > 2;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "Impossible WHERE"
- }
- }
-}
-explain format=json delete from t0 where a < 3;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "delete": 1,
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "attached_condition": "t0.a < 3"
- }
- }
-}
-explain format=json update t0 set a=3 where a in (2,3,4);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "update": 1,
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "attached_condition": "t0.a in (2,3,4)"
- }
- }
-}
-explain format=json insert into t0 values (1);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t0"
- }
- }
-}
-create table t1 like t0;
-explain format=json insert into t1 values ((select max(a) from t0));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1"
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
- }
- ]
- }
-}
-drop table t1;
-#
-# A derived table
-#
-create table t1 (a int, b int);
-insert into t1 select a,a from t0;
-explain format=json
-select * from (select a, count(*) as cnt from t1 group by a) as tbl
-where cnt>0;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "tbl.cnt > 0",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "having_condition": "cnt > 0",
- "filesort": {
- "sort_key": "t1.a",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-explain format=json
-select * from (select a, count(*) as cnt from t1 group by a) as tbl1, t1 as
-tbl2 where cnt=tbl2.a;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "tbl2",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "tbl2.a is not null"
- },
- "table": {
- "table_name": "<derived2>",
- "access_type": "ref",
- "possible_keys": ["key0"],
- "key": "key0",
- "key_length": "8",
- "used_key_parts": ["cnt"],
- "ref": ["test.tbl2.a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "tbl1.cnt = tbl2.a",
- "materialized": {
- "query_block": {
- "select_id": 2,
- "filesort": {
- "sort_key": "t1.a",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
- }
- }
- }
- }
- }
-}
-#
-# Non-merged semi-join (aka JTBM)
-#
-explain format=json
-select * from t1 where a in (select max(a) from t1 group by b);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "t1.a is not null"
- },
- "table": {
- "table_name": "<subquery2>",
- "access_type": "eq_ref",
- "possible_keys": ["distinct_key"],
- "key": "distinct_key",
- "key_length": "4",
- "used_key_parts": ["max(a)"],
- "ref": ["test.t1.a"],
- "rows": 1,
- "filtered": 100,
- "materialized": {
- "unique": 1,
- "query_block": {
- "select_id": 2,
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
- }
- }
- }
- }
-}
-#
-# Semi-join Materialization
-#
-create table t2 like t1;
-insert into t2 select * from t1;
-explain format=json
-select * from t1,t2 where t1.a in ( select a from t0);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "const_condition": "1",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- },
- "table": {
- "table_name": "<subquery2>",
- "access_type": "eq_ref",
- "possible_keys": ["distinct_key"],
- "key": "distinct_key",
- "key_length": "4",
- "used_key_parts": ["a"],
- "ref": ["func"],
- "rows": 1,
- "filtered": 100,
- "materialized": {
- "unique": 1,
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL"
- }
- }
-}
-#
-# First-Match
-#
-explain
-select * from t2 where t2.a in ( select a from t1 where t1.b=t2.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 10
-1 PRIMARY t1 ALL NULL NULL NULL NULL 10 Using where; FirstMatch(t2); Using join buffer (flat, BNL join)
-explain format=json
-select * from t2 where t2.a in ( select a from t1 where t1.b=t2.b);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "first_match": "t2"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t1.b = t2.b and t1.a = t2.a"
- }
- }
-}
-#
-# Duplicate Weedout
-#
-set @tmp= @@optimizer_switch;
-set optimizer_switch='firstmatch=off';
-explain
-select * from t2 where t2.a in ( select a from t1 where t1.b=t2.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 10
-1 PRIMARY t1 ALL NULL NULL NULL NULL 10 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-explain format=json
-select * from t2 where t2.a in ( select a from t1 where t1.b=t2.b);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- },
- "duplicates_removal": {
- "block-nl-join": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t1.b = t2.b and t1.a = t2.a"
- }
- }
- }
-}
-set optimizer_switch=@tmp;
-drop table t1,t2;
-#
-# MRR for range access (no BKA, just MRR)
-#
-create table t1 (a int, b int, key(a));
-insert into t1 select tbl1.a+10*tbl2.a, 12345 from t0 tbl1, t0 tbl2;
-set @tmp= @@optimizer_switch;
-set optimizer_switch='mrr=on,mrr_sort_keys=on';
-explain format=json select * from t1 where a < 3;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 1,
- "filtered": 100,
- "index_condition": "t1.a < 3",
- "mrr_type": "Rowid-ordered scan"
- }
- }
-}
-# 'Range checked for each record'
-set optimizer_switch=@tmp;
-explain format=json
-select * from t1 tbl1, t1 tbl2 where tbl2.a < tbl1.b;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "tbl1",
- "access_type": "ALL",
- "rows": 100,
- "filtered": 100
- },
- "range-checked-for-each-record": {
- "keys": ["a"],
- "table": {
- "table_name": "tbl2",
- "access_type": "ALL",
- "possible_keys": ["a"],
- "rows": 100,
- "filtered": 100
- }
- }
- }
-}
-drop table t1;
-drop table t0;
-#
-# MDEV-7265: "Full scan on NULL key", the join case
-#
-CREATE TABLE t1 (a INT, KEY(a));
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (3),(4);
-EXPLAIN FORMAT=JSON SELECT * FROM t1 AS outer_t1 WHERE a <> ALL ( SELECT a FROM t1, t2 WHERE b <> outer_t1.a );
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "outer_t1",
- "access_type": "index",
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "!<in_optimizer>(outer_t1.a,<exists>(subquery#2))",
- "using_index": true
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 2,
- "having_condition": "trigcond(t1.a is null)",
- "full-scan-on-null_key": {
- "table": {
- "table_name": "t1",
- "access_type": "ref_or_null",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["func"],
- "rows": 2,
- "filtered": 100,
- "attached_condition": "trigcond(<cache>(outer_t1.a) = t1.a or t1.a is null)",
- "using_index": true
- }
- },
- "block-nl-join": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "t2.b <> outer_t1.a"
- }
- }
- }
- ]
- }
-}
-DROP TABLE t1,t2;
-#
-# Join's constant expression
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int, b int);
-insert into t1 select tbl1.a+10*tbl2.a, 1234 from t0 tbl1, t0 tbl2;
-explain format=json
-select * from t0
-where
-20000 > all (select max(tbl1.a + tbl2.a)
-from t1 tbl1, t1 tbl2 where tbl1.b=tbl2.b);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "const_condition": "<not>(<in_optimizer>(20000,<max>(subquery#2) >= 20000))",
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "tbl1",
- "access_type": "ALL",
- "rows": 100,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "tbl2",
- "access_type": "ALL",
- "rows": 100,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "attached_condition": "tbl2.b = tbl1.b"
- }
- }
- }
- ]
- }
-}
-drop table t1;
-drop table t0;
-#
-# MDEV-7264: Assertion `0' failed in subselect_engine::get_identifier() on EXPLAIN JSON
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (3),(4);
-EXPLAIN FORMAT=JSON SELECT * FROM t1 WHERE a <> ALL ( SELECT b FROM t2 );
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "!<in_optimizer>(t1.a,t1.a in (subquery#2))"
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- }
- }
- }
- ]
- }
-}
-DROP TABLE t1, t2;
-#
-# MDEV-7927: Server crashes in in Time_and_counter_tracker::incr_loops
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1),(2);
-EXPLAIN SELECT * FROM t1 WHERE 3 IN ( SELECT 4 UNION SELECT 5 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-DROP TABLE t1;
-#
-# MDEV-7860: EXPLAIN FORMAT=JSON crashes for loose scan query
-#
-create table t2(a int);
-insert into t2 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b int, c int, d int, key(a,b,c));
-insert into t1 select A.a, B.a, C.a, D.a from t2 A, t2 B, t2 C, t2 D;
-explain select count(distinct b) from t1 group by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL a 10 NULL 101 Using index for group-by
-explain format=json select count(distinct b) from t1 group by a;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "key": "a",
- "key_length": "10",
- "used_key_parts": ["a", "b"],
- "rows": 101,
- "filtered": 100,
- "using_index_for_group_by": true
- }
- }
-}
-analyze format=json select count(distinct b) from t1 group by a;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "key": "a",
- "key_length": "10",
- "used_key_parts": ["a", "b"],
- "r_loops": 1,
- "rows": 101,
- "r_rows": 100,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "using_index_for_group_by": true
- }
- }
-}
-drop table t1,t2;
-#
-# Try both variants of LooseScan (data/queries borrowed from group_min_max.test)
-#
-create table t1 (
-a1 char(64), a2 char(64), b char(16), c char(16) not null, d char(16), dummy char(248) default ' '
-);
-insert into t1 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4'),
-('d','a','a','a411','xy1'),('d','a','a','b411','xy2'),('d','a','a','c411','xy3'),('d','a','a','d411','xy4'),
-('d','a','b','e412','xy1'),('d','a','b','f412','xy2'),('d','a','b','g412','xy3'),('d','a','b','h412','xy4'),
-('d','b','a','i421','xy1'),('d','b','a','j421','xy2'),('d','b','a','k421','xy3'),('d','b','a','l421','xy4'),
-('d','b','b','m422','xy1'),('d','b','b','n422','xy2'),('d','b','b','o422','xy3'),('d','b','b','p422','xy4'),
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4'),
-('d','a','a','a411','xy1'),('d','a','a','b411','xy2'),('d','a','a','c411','xy3'),('d','a','a','d411','xy4'),
-('d','a','b','e412','xy1'),('d','a','b','f412','xy2'),('d','a','b','g412','xy3'),('d','a','b','h412','xy4'),
-('d','b','a','i421','xy1'),('d','b','a','j421','xy2'),('d','b','a','k421','xy3'),('d','b','a','l421','xy4'),
-('d','b','b','m422','xy1'),('d','b','b','n422','xy2'),('d','b','b','o422','xy3'),('d','b','b','p422','xy4');
-create index idx_t1_0 on t1 (a1);
-create index idx_t1_1 on t1 (a1,a2,b,c);
-create index idx_t1_2 on t1 (a1,a2,b);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-explain select count(distinct a1,a2,b) from t1 where (a2 >= 'b') and (b = 'a');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using where; Using index for group-by
-explain select count(distinct a1,a2,b,c) from t1 where (a2 >= 'b') and (b = 'a') and (c = 'i121');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 65 Using where; Using index for group-by (scanning)
-explain format=json select count(distinct a1,a2,b) from t1 where (a2 >= 'b') and (b = 'a');
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "key": "idx_t1_1",
- "key_length": "147",
- "used_key_parts": ["a1", "a2", "b"],
- "rows": 17,
- "filtered": 100,
- "attached_condition": "t1.b = 'a' and t1.a2 >= 'b'",
- "using_index_for_group_by": true
- }
- }
-}
-explain format=json select count(distinct a1,a2,b,c) from t1 where (a2 >= 'b') and (b = 'a') and (c = 'i121');
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "key": "idx_t1_1",
- "key_length": "163",
- "used_key_parts": ["a1", "a2", "b", "c"],
- "rows": 65,
- "filtered": 100,
- "attached_condition": "t1.b = 'a' and t1.c = 'i121' and t1.a2 >= 'b'",
- "using_index_for_group_by": "scanning"
- }
- }
-}
-drop table t1;
-#
-# MDEV-8786 Wrong result for SELECT FORMAT=JSON * FROM t1 WHERE a=_latin1 0xDF
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1);
-INSERT INTO t1 VALUES ('a'),('b');
-EXPLAIN FORMAT=JSON SELECT * FROM t1 WHERE a=_latin1 0xDF;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t1.a = _latin1'\xDF'"
- }
- }
-}
-DROP TABLE t1;
-#
-# MDEV-8785 Wrong results for EXPLAIN EXTENDED...WHERE NULLIF(latin1_col, _utf8'a' COLLATE utf8_bin) IS NOT NULL
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1);
-INSERT INTO t1 VALUES ('a'),('A');
-EXPLAIN FORMAT=JSON SELECT * FROM t1 WHERE NULLIF(a,_utf8'a' COLLATE utf8_bin);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "(case when convert(t1.a using utf8) = <cache>(_utf8'a' collate utf8_bin) then NULL else t1.a end)"
- }
- }
-}
-DROP TABLE t1;
-#
-# MDEV-7970: EXPLAIN FORMAT=JSON does not print HAVING
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3);
-create table t1(a int);
-insert into t1 select A.a + B.a* 10 + C.a * 100 from t0 A, t0 B, t0 C;
-create table t2 (
-a int,
-b int,
-key (a)
-);
-insert into t2 select A.a*1000 + B.a, A.a*1000 + B.a from t0 A, t1 B;
-# normal HAVING
-explain format=json select a, max(b) as TOP from t2 group by a having TOP > a;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "having_condition": "TOP > t2.a",
- "filesort": {
- "sort_key": "t2.a",
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 256,
- "filtered": 100
- }
- }
- }
- }
-}
-# HAVING is always TRUE (not printed)
-explain format=json select a, max(b) as TOP from t2 group by a having 1<>2;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "filesort": {
- "sort_key": "t2.a",
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 256,
- "filtered": 100
- }
- }
- }
- }
-}
-# HAVING is always FALSE (intercepted by message)
-explain format=json select a, max(b) as TOP from t2 group by a having 1=2;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "Impossible HAVING"
- }
- }
-}
-# HAVING is absent
-explain format=json select a, max(b) as TOP from t2 group by a;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "filesort": {
- "sort_key": "t2.a",
- "temporary_table": {
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 256,
- "filtered": 100
- }
- }
- }
- }
-}
-drop table t0, t1, t2;
-#
-# MDEV-8829: Assertion `0' failed in Explain_table_access::tag_to_json
-#
-# Check ET_CONST_ROW_NOT_FOUND
-create table t1 (i int) engine=myisam;
-explain
-select * from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 Const row not found
-explain format=json
-select * from t1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "system",
- "rows": 0,
- "filtered": 0,
- "const_row_not_found": true
- }
- }
-}
-analyze format=json
-select * from t1;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "no matching row in const table"
- }
- }
-}
-drop table t1;
-# Check ET_IMPOSSIBLE_ON_CONDITION
-create table t1 (a int);
-create table t2 (pk int primary key);
-insert into t1 values (1),(2);
-insert into t2 values (1),(2);
-explain
-select * from t1 left join t2 on t2.pk > 10 and t2.pk < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const PRIMARY NULL NULL NULL 1 Impossible ON condition
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-explain format=json
-select * from t1 left join t2 on t2.pk > 10 and t2.pk < 0;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "const_condition": "1",
- "table": {
- "table_name": "t2",
- "access_type": "const",
- "possible_keys": ["PRIMARY"],
- "rows": 1,
- "filtered": 100,
- "impossible_on_condition": true
- },
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- }
- }
-}
-analyze format=json
-select * from t1 left join t2 on t2.pk > 10 and t2.pk < 0;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "const_condition": "1",
- "table": {
- "table_name": "t2",
- "access_type": "const",
- "possible_keys": ["PRIMARY"],
- "r_loops": 0,
- "rows": 1,
- "r_rows": null,
- "filtered": 100,
- "r_filtered": null,
- "impossible_on_condition": true
- },
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
-}
-# Check ET_NOT_EXISTS:
-explain
-select * from t1 left join t2 on t2.pk=t1.a where t2.pk is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where; Using index; Not exists
-explain format=json
-select * from t1 left join t2 on t2.pk=t1.a where t2.pk is null;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- },
- "table": {
- "table_name": "t2",
- "access_type": "eq_ref",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["pk"],
- "ref": ["test.t1.a"],
- "rows": 1,
- "filtered": 100,
- "attached_condition": "trigcond(t2.pk is null) and trigcond(trigcond(t1.a is not null))",
- "using_index": true,
- "not_exists": true
- }
- }
-}
-analyze format=json
-select * from t1 left join t2 on t2.pk=t1.a where t2.pk is null;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "table": {
- "table_name": "t2",
- "access_type": "eq_ref",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["pk"],
- "ref": ["test.t1.a"],
- "r_loops": 2,
- "rows": 1,
- "r_rows": 1,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "attached_condition": "trigcond(t2.pk is null) and trigcond(trigcond(t1.a is not null))",
- "using_index": true,
- "not_exists": true
- }
- }
-}
-# Check ET_DISTINCT
-explain
-select distinct t1.a from t1 join t2 on t2.pk=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where; Using temporary
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using index; Distinct
-explain format=json
-select distinct t1.a from t1 join t2 on t2.pk=t1.a;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100,
- "attached_condition": "t1.a is not null"
- },
- "table": {
- "table_name": "t2",
- "access_type": "eq_ref",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["pk"],
- "ref": ["test.t1.a"],
- "rows": 1,
- "filtered": 100,
- "using_index": true,
- "distinct": true
- }
- }
- }
-}
-analyze format=json
-select distinct t1.a from t1 join t2 on t2.pk=t1.a;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 2,
- "r_rows": 2,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "attached_condition": "t1.a is not null"
- },
- "table": {
- "table_name": "t2",
- "access_type": "eq_ref",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["pk"],
- "ref": ["test.t1.a"],
- "r_loops": 2,
- "rows": 1,
- "r_rows": 1,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "using_index": true,
- "distinct": true
- }
- }
- }
-}
-drop table t1,t2;
-# Check ET_USING_INDEX_CONDITION_BKA
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2(a int);
-insert into t2 select A.a + B.a* 10 + C.a * 100 from t1 A, t1 B, t1 C;
-create table t3(a int, b int);
-insert into t3 select a,a from t1;
-create table t4(a int, b int, c int, filler char(100), key (a,b));
-insert into t4 select a,a,a, 'filler-data' from t2;
-set @tmp_optimizer_switch=@@optimizer_switch;
-set @tmp_join_cache_level=@@join_cache_level;
-set optimizer_switch='mrr=on';
-set join_cache_level=6;
-explain
-select * from t3,t4 where t3.a=t4.a and (t4.b+1 <= t3.b+1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 10 Using where
-1 SIMPLE t4 ref a a 5 test.t3.a 1 Using index condition(BKA); Using join buffer (flat, BKA join); Rowid-ordered scan
-explain format=json
-select * from t3,t4 where t3.a=t4.a and (t4.b+1 <= t3.b+1);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "t3.a is not null"
- },
- "block-nl-join": {
- "table": {
- "table_name": "t4",
- "access_type": "ref",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t3.a"],
- "rows": 1,
- "filtered": 100,
- "index_condition_bka": "t4.b + 1 <= t3.b + 1"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BKA",
- "mrr_type": "Rowid-ordered scan"
- }
- }
-}
-analyze format=json
-select * from t3,t4 where t3.a=t4.a and (t4.b+1 <= t3.b+1);
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "attached_condition": "t3.a is not null"
- },
- "block-nl-join": {
- "table": {
- "table_name": "t4",
- "access_type": "ref",
- "possible_keys": ["a"],
- "key": "a",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t3.a"],
- "r_loops": 1,
- "rows": 1,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "index_condition_bka": "t4.b + 1 <= t3.b + 1"
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BKA",
- "mrr_type": "Rowid-ordered scan",
- "r_filtered": 100
- }
- }
-}
-set optimizer_switch=@tmp_optimizer_switch;
-set join_cache_level=@tmp_join_cache_level;
-drop table t1,t2,t3,t4;
-#
-# MDEV-9652: EXPLAIN FORMAT=JSON should show outer_ref_cond
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b int);
-insert into t1 select a,a from t0;
-explain format=json
-select a, (select max(a) from t1 where t0.a<5 and t1.b<t0.a) from t0;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- },
- "subqueries": [
- {
- "expression_cache": {
- "state": "uninitialized",
- "query_block": {
- "select_id": 2,
- "outer_ref_condition": "t0.a < 5",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "t1.b < t0.a"
- }
- }
- }
- }
- ]
- }
-}
-drop table t0,t1;
-#
-# MDEV-10844: EXPLAIN FORMAT=JSON doesn't show order direction for filesort
-#
-create table t1 (a int, b int);
-insert into t1 values (1,2),(3,4),(2,3);
-explain format=json select * from t1 order by a, b desc;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "read_sorted_file": {
- "filesort": {
- "sort_key": "t1.a, t1.b desc",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- }
- }
-}
-explain format=json select * from t1 order by a desc, b desc;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "read_sorted_file": {
- "filesort": {
- "sort_key": "t1.a desc, t1.b desc",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- }
- }
-}
-explain format=json select * from t1 order by a desc, b ;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "read_sorted_file": {
- "filesort": {
- "sort_key": "t1.a desc, t1.b",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- }
- }
-}
-drop table t1;
diff --git a/mysql-test/r/explain_json_format_partitions.result b/mysql-test/r/explain_json_format_partitions.result
deleted file mode 100644
index 5d7fdbc4864..00000000000
--- a/mysql-test/r/explain_json_format_partitions.result
+++ /dev/null
@@ -1,86 +0,0 @@
-create table t2(a int);
-insert into t2 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (
-a int not null
-) partition by key(a);
-insert into t1 select a from t2;
-explain partitions select * from t1 where a in (2,3,4);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 10 Using where
-explain format=json select * from t1 where a in (2,3,4);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "partitions": ["p0"],
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100,
- "attached_condition": "t1.a in (2,3,4)"
- }
- }
-}
-analyze format=json select * from t1 where a in (2,3,4);
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "partitions": ["p0"],
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 30,
- "attached_condition": "t1.a in (2,3,4)"
- }
- }
-}
-analyze format=json update t1 set a=a+10 where a in (2,3,4);
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_total_time_ms": "REPLACED",
- "buffer": {
- "table": {
- "update": 1,
- "table_name": "t1",
- "partitions": ["p0"],
- "access_type": "ALL",
- "rows": 10,
- "r_rows": 10,
- "r_filtered": 30,
- "r_total_time_ms": "REPLACED",
- "attached_condition": "t1.a in (2,3,4)"
- }
- }
- }
-}
-analyze format=json delete from t1 where a in (20,30,40);
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "delete": 1,
- "table_name": "t1",
- "partitions": ["p0"],
- "access_type": "ALL",
- "rows": 10,
- "r_rows": 10,
- "r_filtered": 0,
- "r_total_time_ms": "REPLACED",
- "attached_condition": "t1.a in (20,30,40)"
- }
- }
-}
-drop table t1,t2;
diff --git a/mysql-test/r/explain_json_innodb.result b/mysql-test/r/explain_json_innodb.result
deleted file mode 100644
index 8cec65642b4..00000000000
--- a/mysql-test/r/explain_json_innodb.result
+++ /dev/null
@@ -1,57 +0,0 @@
-drop table if exists t0,t1,t2;
-#
-# MDEV-7266: Assertion `!element_started' failed in Json_writer& Json_writer::add_member
-#
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (column_name_1 INT, column_name_2 VARCHAR(52)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (3,'United States');
-CREATE TABLE t3 (b INT, c VARCHAR(3), PRIMARY KEY (c,b)) ENGINE=InnoDB;
-INSERT INTO t3 VALUES (4,'USA'),(5,'CAN');
-EXPLAIN FORMAT=JSON SELECT * FROM t1 WHERE 0 < ALL (
-SELECT tbl_alias1.column_name_1 FROM t2 AS tbl_alias1, t3 AS tbl_alias2
-WHERE tbl_alias2.b = tbl_alias1.column_name_1 AND tbl_alias2.c = tbl_alias1.column_name_2
-);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 2,
- "filtered": 100
- },
- "subqueries": [
- {
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "tbl_alias1",
- "access_type": "ALL",
- "rows": 1,
- "filtered": 100,
- "attached_condition": "tbl_alias1.column_name_2 is not null and tbl_alias1.column_name_1 is not null"
- },
- "table": {
- "table_name": "tbl_alias2",
- "access_type": "eq_ref",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "9",
- "used_key_parts": ["c", "b"],
- "ref": [
- "test.tbl_alias1.column_name_2",
- "test.tbl_alias1.column_name_1"
- ],
- "rows": 1,
- "filtered": 100,
- "attached_condition": "tbl_alias2.c = tbl_alias1.column_name_2",
- "using_index": true
- }
- }
- }
- ]
- }
-}
-drop table t1,t2,t3;
diff --git a/mysql-test/r/explain_non_select.result b/mysql-test/r/explain_non_select.result
deleted file mode 100644
index 5a6b9f841c2..00000000000
--- a/mysql-test/r/explain_non_select.result
+++ /dev/null
@@ -1,275 +0,0 @@
-drop table if exists t0, t1;
-create table t0 (a int) engine=myisam;
-insert into t0 values (1),(2),(3),(4),(5),(6),(7),(8);
-#
-# Tests for single-table DELETE
-#
-explain select * from t0 where a=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 8 Using where
-explain delete from t0 where a=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 8 Using where
-# DELETE without WHERE is a special case:
-explain delete from t0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL 8 Deleting all rows
-create table t1 (a int, b int, filler char(100), key(a), key(b));
-insert into t1
-select A.a+10*B.a + 10*C.a, A.a+10*B.a + 10*C.a, 'filler'
-from t0 A, t0 B, t0 C;
-# This should use an index, possible_keys=NULL because there is no WHERE
-explain delete from t1 order by a limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 2
-# This should use range, possible_keys={a,b}
-explain delete from t1 where a<20 and b < 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a,b a 5 NULL 1 Using where
-# This should use ALL + filesort
-explain delete from t1 order by a+1 limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 512 Using filesort
-# This should use range + using filesort
-explain delete from t1 where a<20 order by b limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 1 Using where; Using filesort
-# Try some subqueries:
-explain delete from t1 where a < (select max(a) from t0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range a a 5 NULL 1 Using where
-2 SUBQUERY t0 ALL NULL NULL NULL NULL 8
-explain delete from t1 where a < (select max(a) from t0 where a < t1.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 512 Using where
-2 DEPENDENT SUBQUERY t0 ALL NULL NULL NULL NULL 8 Using where
-#
-# Tests for multi-table DELETE
-#
-explain delete t1 from t0, t1 where t0.a = t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 8 Using where
-1 SIMPLE t1 ref a a 5 test.t0.a 4
-drop table t0, t1;
-# ###################################################################
-# ## EXPLAIN UPDATE tests
-# ###################################################################
-create table t0 (a int) engine=myisam;
-insert into t0 values (1),(2),(3),(4),(5),(6),(7),(8);
-explain update t0 set a=3 where a=4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 8 Using where
-create table t1 (a int, b int, filler char(100), key(a), key(b));
-insert into t1
-select A.a+10*B.a + 10*C.a, A.a+10*B.a + 10*C.a, 'filler'
-from t0 A, t0 B, t0 C;
-explain update t1 set a=a+1 where 3>4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain update t1 set a=a+1 where a=3 and a=4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-# This should use an index, possible_keys=NULL because there is no WHERE
-explain update t1 set a=a+1 order by a limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 512 Using filesort
-# This should use range, possible_keys={a,b}
-explain update t1 set filler='fooo' where a<20 and b < 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a,b a 5 NULL 1 Using where
-# This should use ALL + filesort
-explain update t1 set filler='fooo' order by a+1 limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 512 Using filesort
-# This should use range + using filesort
-explain update t1 set filler='fooo' where a<20 order by b limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 1 Using where; Using filesort
-# Try some subqueries:
-explain update t1 set filler='fooo' where a < (select max(a) from t0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range a a 5 NULL 1 Using where
-2 SUBQUERY t0 ALL NULL NULL NULL NULL 8
-explain update t1 set filler='fooo' where a < (select max(a) from t0 where a < t1.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 512 Using where
-2 DEPENDENT SUBQUERY t0 ALL NULL NULL NULL NULL 8 Using where
-#
-# Tests for multi-table UPDATE
-#
-explain update t0, t1 set t1.a=t1.a+1 where t0.a = t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 8 Using where
-1 SIMPLE t1 ref a a 5 test.t0.a 4
-drop table t0, t1;
-#
-# Try DELETE ... RETURNING ...
-#
-create table t0 (a int);
-insert into t0 values (1),(2),(3),(4);
-explain delete from t0 where a=1 returning a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 4 Using where
-explain delete from t0 returning a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 4
-drop table t0;
-#
-# MDEV-5070 - EXPLAIN INSERT ... SELECT crashes on 10.0-base-explain-slowquerylog
-#
-create table t0 (a int);
-insert into t0 values (1),(2),(3),(4),(5),(6),(7),(8);
-create table t1 (a int);
-explain insert into t1 select * from t0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 8
-explain replace into t1 select * from t0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 8
-drop table t0, t1;
-#
-# MDEV-5067: Valgrind warnings (Invalid read) in QPF_table_access::print_explain
-#
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (7),(0),(9);
-SELECT * FROM t1 INNER JOIN ( SELECT DISTINCT * FROM t1 ) AS sq ON (sq.i = t1.i);
-i i
-7 7
-0 0
-9 9
-DROP TABLE t1;
-#
-# MDEV-5093, MDEV-5094: EXPLAIN PARTITIONS and EXPLAIN EXTENDED do not
-# work for EXPLAIN UPDATE.
-#
-create table t1 (i int);
-explain partitions update t1 set i = 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 NULL ALL NULL NULL NULL NULL 0
-create table t2 (a int, b int) partition by hash(a) partitions 5;
-insert into t2 values (0,0),(1,1),(2,2),(3,3),(4,4);
-explain partitions update t2 set b=3 where a in (3,4);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p3,p4 ALL NULL NULL NULL NULL 2 Using where
-explain partitions delete from t2 where a in (3,4);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p3,p4 ALL NULL NULL NULL NULL 2 Using where
-explain extended update t2 set b=3 where a in (3,4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-explain extended delete from t2 where a in (3,4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-drop table t1,t2;
-#
-# Check the special case where partition pruning removed all partitions
-#
-create table t1 (a int, b int)
-partition by range (a) (
-partition p0 values less than (10),
-partition p1 values less than (20),
-partition p2 values less than (30)
-);
-insert into t1 values (9,9), (19,19), (29,29);
-explain partitions select * from t1 where a in (32,33);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions delete from t1 where a in (32,33);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No matching rows after partition pruning
-explain partitions update t1 set b=12345 where a in (32,33);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No matching rows after partition pruning
-drop table t1;
-#
-# Tests for EXPLAIN INSERT ... VALUES
-#
-create table t1 (a int, key(a));
-explain insert into t1 values (1),(2),(3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-insert into t1 values (1),(2),(3);
-create table t2 (a int, b int);
-explain insert into t2 values
-(10, 1+(select max(a) from t1)),
-(11, 1+(select max(a+1) from t1));
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t2 ALL NULL NULL NULL NULL NULL NULL
-3 SUBQUERY t1 index NULL a 5 NULL 3 Using index
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-drop table t1,t2;
-#
-# MDEV-5122: "Commands out of sync", "Malformed packet" or client hang up on unique key violation
-#
-drop table if exists t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-drop function if exists f1;
-create table t1 (a int, unique(a));
-create function f1(x int)
-returns int
-begin
-insert into t1 values(x),(x);
-return 10;
-end|
-select f1(100);
-ERROR 23000: Duplicate entry '100' for key 'a'
-select 'OK';
-OK
-OK
-drop function f1;
-drop table t1;
-#
-# MDEV-7038: Assertion `status_var.memory_used == 0' failed in THD::~THD()
-# on disconnect after executing EXPLAIN for multi-table UPDATE
-#
-CREATE TABLE t1 (a INT);
-CREATE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES (1),(2);
-EXPLAIN UPDATE v1, mysql.user SET v1.a = v1.a + 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE user index NULL PRIMARY 420 NULL 4 Using index
-DROP TABLE t1;
-DROP VIEW v1;
-#
-# MDEV-8299: MyISAM or Aria table gets corrupted after EXPLAIN INSERT and INSERT
-#
-CREATE TABLE t1 (pk INT NOT NULL AUTO_INCREMENT PRIMARY KEY, i INT, KEY(i)) ENGINE=MyISAM;
-INSERT INTO t1 (i) VALUES (100),(200);
-CREATE TABLE t2 (j INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (10),(20);
-EXPLAIN INSERT INTO t1 (i) SELECT j FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2
-INSERT INTO t1 (i) VALUES (300);
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1, t2;
-#
-# MDEV-8321: Assertion `! is_set()' failed in Diagnostics_area::set_eof_status on EXPLAIN INSERT ... UNION
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (b INT);
-CREATE TABLE t3 (c INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (3),(4);
-INSERT INTO t3 VALUES (5),(6);
-EXPLAIN INSERT INTO t1 SELECT * FROM t2 UNION SELECT * FROM t3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-2 UNION t3 ALL NULL NULL NULL NULL 2
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-drop table t1,t2,t3;
-#
-# MDEV-6223: Assertion `! is_set()' fails in Diagnostics_area::set_eof_status on EXPLAIN INSERT executed as a PS
-#
-CREATE TABLE t1 (a INT) ENGINE = MyISAM;
-CREATE TABLE t2 (b INT) ENGINE = MyISAM;
-INSERT INTO t2 VALUES (1),(2);
-PREPARE stmt FROM 'EXPLAIN INSERT INTO t1 SELECT * FROM t2';
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2
-drop table t1,t2;
diff --git a/mysql-test/r/explain_slowquerylog.result b/mysql-test/r/explain_slowquerylog.result
deleted file mode 100644
index 2b350cf04ff..00000000000
--- a/mysql-test/r/explain_slowquerylog.result
+++ /dev/null
@@ -1,56 +0,0 @@
-drop table if exists t0,t1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-explain select * from t0 where a < 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-#
-# MDEV-5045: Server crashes in QPF_query::print_explain with log_slow_verbosity='query_plan,explain'
-#
-set autocommit=1;
-drop table t0;
-#
-# MDEV-5047 virtual THD::~THD(): Assertion `status_var.memory_used == 0' fails on disconnect
-#
-connect con1,localhost,root,,;
-ALTER TABLE nonexisting ENABLE KEYS;
-ERROR 42S02: Table 'test.nonexisting' doesn't exist
-SHOW WARNINGS;
-Level Code Message
-Error 1146 Table 'test.nonexisting' doesn't exist
-disconnect con1;
-connection default;
-SELECT 1;
-1
-1
-#
-# MDEV-5060 Server crashes on EXPLAIN EXTENDED or EXPLAIN PARTITIONS with explain in slow_log
-#
-EXPLAIN PARTITIONS SELECT 1 ;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-#
-# MDEV-5106: Server crashes in Explain_union::print_explain on ER_TOO_BIG_SELECT with explain in slow log
-#
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-(1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
-SET max_join_size = 10;
-( SELECT ta.* FROM t1 ta, t1 tb ) UNION ( SELECT * FROM t1 );
-ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
-SELECT 'Server still alive?' as 'Yes';
-Yes
-Server still alive?
-DROP TABLE t1;
-#
-# MDEV-5308 Crash when running with slow_query_log=1
-#
-SET @save1= @@log_slow_rate_limit;
-SET @save2= @@long_query_time;
-SET log_slow_rate_limit=1000;
-SET long_query_time=0.000001;
-SELECT 1;
-1
-1
-SET log_slow_rate_limit=@save1;
-SET long_query_time=@save2;
diff --git a/mysql-test/r/ext_key_noPK_6794.result b/mysql-test/r/ext_key_noPK_6794.result
deleted file mode 100644
index 59344522887..00000000000
--- a/mysql-test/r/ext_key_noPK_6794.result
+++ /dev/null
@@ -1,20 +0,0 @@
-create table t1 (c1 int not null, c2 int, unique index(c1), index (c2)) engine=innodb;
-insert into t1 (c1, c2) select 1, round(rand()*100);
-insert into t1 (c1, c2) select (select max(c1) from t1) + c1, c1*93563%100 from t1;
-insert into t1 (c1, c2) select (select max(c1) from t1) + c1, c1*93563%100 from t1;
-insert into t1 (c1, c2) select (select max(c1) from t1) + c1, c1*93563%100 from t1;
-select count(*) from t1;
-count(*)
-8
-explain select * from t1 where c2 = 1 order by c1;
-id 1
-select_type SIMPLE
-table t1
-type ref
-possible_keys c2
-key c2
-key_len 5
-ref const
-rows 1
-Extra Using where; Using index
-drop table t1;
diff --git a/mysql-test/r/failed_auth_3909.result b/mysql-test/r/failed_auth_3909.result
deleted file mode 100644
index d0fd2c41221..00000000000
--- a/mysql-test/r/failed_auth_3909.result
+++ /dev/null
@@ -1,24 +0,0 @@
-optimize table mysql.user;
-Table Op Msg_type Msg_text
-mysql.user optimize status OK
-insert ignore mysql.user (user,plugin) values ('foo','bar'),('bar','bar'),('baz','bar');
-Warnings:
-Warning 1364 Field 'ssl_cipher' doesn't have a default value
-Warning 1364 Field 'x509_issuer' doesn't have a default value
-Warning 1364 Field 'x509_subject' doesn't have a default value
-Warning 1364 Field 'authentication_string' doesn't have a default value
-flush privileges;
-connect(localhost,u1,,test,MASTER_PORT,MASTER_SOCKET);
-connect fail,localhost,u1;
-ERROR HY000: Plugin 'bar' is not loaded
-connect(localhost,u2,,test,MASTER_PORT,MASTER_SOCKET);
-connect fail,localhost,u2;
-ERROR 28000: Access denied for user 'u2'@'localhost' (using password: NO)
-connect(localhost,u2,password,test,MASTER_PORT,MASTER_SOCKET);
-connect fail,localhost,u2,password;
-ERROR 28000: Access denied for user 'u2'@'localhost' (using password: YES)
-ERROR HY000: Plugin 'bar' is not loaded
-ERROR 28000: Access denied for user 'u2'@'localhost' (using password: NO)
-ERROR 28000: Access denied for user 'u2'@'localhost' (using password: YES)
-delete from mysql.user where plugin = 'bar';
-flush privileges;
diff --git a/mysql-test/r/failed_auth_unixsocket.result b/mysql-test/r/failed_auth_unixsocket.result
deleted file mode 100644
index 680d3b48a33..00000000000
--- a/mysql-test/r/failed_auth_unixsocket.result
+++ /dev/null
@@ -1,13 +0,0 @@
-update mysql.user set plugin='unix_socket';
-flush privileges;
-connect(localhost,USER,,test,MASTER_PORT,MASTER_SOCKET);
-connect fail,localhost,$USER;
-ERROR HY000: Plugin 'unix_socket' is not loaded
-ERROR HY000: Plugin 'unix_socket' is not loaded
-install plugin unix_socket soname 'auth_socket.so';
-connect(localhost,USER,,test,MASTER_PORT,MASTER_SOCKET);
-ERROR 28000: Access denied for user 'USER'@'localhost'
-ERROR 28000: Access denied for user 'USER'@'localhost'
-update mysql.user set plugin='';
-flush privileges;
-uninstall plugin unix_socket;
diff --git a/mysql-test/r/fast_prefix_index_fetch_innodb.result b/mysql-test/r/fast_prefix_index_fetch_innodb.result
deleted file mode 100644
index c6d96389b08..00000000000
--- a/mysql-test/r/fast_prefix_index_fetch_innodb.result
+++ /dev/null
@@ -1,401 +0,0 @@
-drop table if exists prefixinno;
-set global innodb_prefix_index_cluster_optimization = ON;
-show variables like 'innodb_prefix_index_cluster_optimization';
-Variable_name Value
-innodb_prefix_index_cluster_optimization ON
-# Create a table with a large varchar field that we index the prefix
-# of and ensure we only trigger cluster lookups when we expect it.
-create table prefixinno (
-id int not null,
-fake_id int not null,
-bigfield varchar(4096),
-primary key(id),
-index bigfield_idx (bigfield(32)),
-index fake_id_bigfield_prefix (fake_id, bigfield(32))
-) engine=innodb;
-insert into prefixinno values (1, 1001, repeat('a', 1)),
-(8, 1008, repeat('b', 8)),
-(24, 1024, repeat('c', 24)),
-(31, 1031, repeat('d', 31)),
-(32, 1032, repeat('x', 32)),
-(33, 1033, repeat('y', 33)),
-(128, 1128, repeat('z', 128));
-select * from prefixinno;
-id fake_id bigfield
-1 1001 a
-8 1008 bbbbbbbb
-24 1024 cccccccccccccccccccccccc
-31 1031 ddddddddddddddddddddddddddddddd
-32 1032 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-33 1033 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
-128 1128 zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
-# Baseline sanity check: 0, 0.
-select "no-op query";
-no-op query
-no-op query
-select @cluster_lookups;
-@cluster_lookups
-0
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Eligible for optimization.
-select id, bigfield from prefixinno where bigfield = repeat('d', 31);
-id bigfield
-31 ddddddddddddddddddddddddddddddd
-select @cluster_lookups;
-@cluster_lookups
-0
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-1
-# Eligible for optimization, access via fake_id only.
-select id, bigfield from prefixinno where fake_id = 1031;
-id bigfield
-31 ddddddddddddddddddddddddddddddd
-select @cluster_lookups;
-@cluster_lookups
-0
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-1
-# Not eligible for optimization, access via fake_id of big row.
-select id, bigfield from prefixinno where fake_id = 1033;
-id bigfield
-33 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Not eligible for optimization.
-select id, bigfield from prefixinno where bigfield = repeat('x', 32);
-id bigfield
-32 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Not eligible for optimization.
-select id, bigfield from prefixinno where bigfield = repeat('y', 33);
-id bigfield
-33 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Eligible, should not increment lookup counter.
-select id, bigfield from prefixinno where bigfield = repeat('b', 8);
-id bigfield
-8 bbbbbbbb
-select @cluster_lookups;
-@cluster_lookups
-0
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-1
-# Eligible, should not increment lookup counter.
-select id, bigfield from prefixinno where bigfield = repeat('c', 24);
-id bigfield
-24 cccccccccccccccccccccccc
-select @cluster_lookups;
-@cluster_lookups
-0
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-1
-# Should increment lookup counter.
-select id, bigfield from prefixinno where bigfield = repeat('z', 128);
-id bigfield
-128 zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Disable optimization, confirm we still increment counter.
-set global innodb_prefix_index_cluster_optimization = OFF;
-select id, bigfield from prefixinno where fake_id = 1033;
-id bigfield
-33 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-drop table prefixinno;
-# Multi-byte handling case
-set global innodb_prefix_index_cluster_optimization = ON;
-SET NAMES utf8mb4;
-CREATE TABLE t1(
-f1 varchar(10) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_BIN,
-INDEX (f1(3)))ENGINE=INNODB;
-INSERT INTO t1 VALUES('a'), ('cccc'), ('až'), ('cÄc'), ('ggáµ·g'), ('¢¢');
-INSERT INTO t1 VALUES('தமிழà¯'), ('ðŸ±ðŸŒ‘'), ('🌒'), ('🌑');
-INSERT INTO t1 VALUES('😊me'), ('eu€'), ('ls¢');
-# Eligible - record length is shorter than prefix
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 = 'a';
-f1
-a
-select @cluster_lookups;
-@cluster_lookups
-0
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-1
-# Not eligible - record length longer than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 like 'c%';
-f1
-cccc
-cÄc
-select @cluster_lookups;
-@cluster_lookups
-3
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Eligible - record length shorter than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 = 'až';
-f1
-až
-select @cluster_lookups;
-@cluster_lookups
-0
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-1
-# Not eligible - record length longer than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 = 'தமிழà¯';
-f1
-தமிழà¯
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Not eligible - record length longer than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 like 'ggáµ·%';
-f1
-ggáµ·g
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Not eligible - record length longer than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 like '😊%';
-f1
-😊me
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Not eligible - record length longer than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 = 'ls¢';
-f1
-ls¢
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Eligible - record length shorter than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 like '¢¢%';
-f1
-¢¢
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-1
-# Eligible - record length shorter than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 like 'ðŸ±ðŸŒ‘%';
-f1
-ðŸ±ðŸŒ‘
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-1
-# Not eligible - record length longer than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 like '🌑%';
-f1
-🌑
-select @cluster_lookups;
-@cluster_lookups
-0
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-2
-# Not eligible - record length longer than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 like '🌒%';
-f1
-🌒
-select @cluster_lookups;
-@cluster_lookups
-0
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-2
-DROP TABLE t1;
-# Multi-byte with minimum character length > 1 bytes
-CREATE TABLE t1(
-f1 varchar(10) CHARACTER SET UTF16 COLLATE UTF16_BIN,
-INDEX (f1(3)))ENGINE=INNODB;
-INSERT INTO t1 VALUES('a'), ('cccc'), ('až'), ('cÄc'), ('ggáµ·g'), ('¢¢');
-INSERT INTO t1 VALUES('தமிழà¯'), ('ðŸ±ðŸŒ‘'), ('🌒'), ('🌑');
-INSERT INTO t1 VALUES('😊me'), ('eu€'), ('ls¢');
-# Eligible - record length is shorter than prefix
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 = 'a';
-f1
-a
-select @cluster_lookups;
-@cluster_lookups
-0
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-1
-# Not eligible - record length longer than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 like 'c%';
-f1
-cccc
-cÄc
-select @cluster_lookups;
-@cluster_lookups
-3
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Eligible - record length shorter than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 = 'až';
-f1
-až
-select @cluster_lookups;
-@cluster_lookups
-0
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-1
-# Not eligible - record length longer than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 = 'தமிழà¯';
-f1
-தமிழà¯
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Not eligible - record length longer than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 like 'ggáµ·%';
-f1
-ggáµ·g
-select @cluster_lookups;
-@cluster_lookups
-2
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Not eligible - record length longer than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 like '😊%';
-f1
-😊me
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Not eligible - record length longer than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 = 'ls¢';
-f1
-ls¢
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Eligible - record length shorter than prefix length
-SELECT f1 FROM t1 FORCE INDEX(`f1`) WHERE f1 like '¢¢%';
-f1
-¢¢
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-1
-# Eligible - record length shorter than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 like 'ðŸ±ðŸŒ‘%';
-f1
-ðŸ±ðŸŒ‘
-select @cluster_lookups;
-@cluster_lookups
-2
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-# Eligible - record length is shorter than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 like '🌑%';
-f1
-🌑
-select @cluster_lookups;
-@cluster_lookups
-0
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-2
-# Eligible - record length is shorter than prefix length
-SELECT f1 FROM t1 FORCE INDEX (`f1`) WHERE f1 like '🌒%';
-f1
-🌒
-select @cluster_lookups;
-@cluster_lookups
-1
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-1
-DROP TABLE t1;
-CREATE TABLE t1(
-col1 INT,
-col2 BLOB DEFAULT NULL,
-INDEX `idx1`(col2(4), col1))ENGINE=INNODB;
-INSERT INTO t1 VALUES (2, 'test'), (3, repeat('test1', 2000));
-INSERT INTO t1(col1) VALUES(1);
-# Eligible - record length is shorter than prefix length
-SELECT col1 FROM t1 FORCE INDEX (`idx1`) WHERE col2 is NULL;
-col1
-1
-select @cluster_lookups;
-@cluster_lookups
-0
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-1
-# Not eligible - record length longer than prefix index
-SELECT col1 FROM t1 FORCE INDEX (`idx1`) WHERE col2 like 'test1%';
-col1
-3
-select @cluster_lookups;
-@cluster_lookups
-2
-select @cluster_lookups_avoided;
-@cluster_lookups_avoided
-0
-DROP TABLE t1;
-set global innodb_prefix_index_cluster_optimization = OFF;
diff --git a/mysql-test/r/features.result b/mysql-test/r/features.result
deleted file mode 100644
index fc276e2f885..00000000000
--- a/mysql-test/r/features.result
+++ /dev/null
@@ -1,169 +0,0 @@
-drop table if exists t1;
-set sql_mode="";
-flush status;
-show status like "feature%";
-Variable_name Value
-Feature_check_constraint 0
-Feature_delay_key_write 0
-Feature_dynamic_columns 0
-Feature_fulltext 0
-Feature_gis 0
-Feature_invisible_columns 0
-Feature_locale 0
-Feature_subquery 0
-Feature_timezone 0
-Feature_trigger 0
-Feature_window_functions 0
-Feature_xml 0
-#
-# Feature GIS
-#
-CREATE TABLE t1 (g POINT);
-SHOW FIELDS FROM t1;
-Field Type Null Key Default Extra
-g point YES NULL
-INSERT INTO t1 VALUES
-(PointFromText('POINT(10 10)')),
-(PointFromText('POINT(20 10)')),
-(PointFromText('POINT(20 20)')),
-(PointFromWKB(AsWKB(PointFromText('POINT(10 20)'))));
-drop table t1;
-show status like "feature_gis";
-Variable_name Value
-Feature_gis 3
-#
-# Feature dynamic columns
-#
-set @a= COLUMN_CREATE(1, 1212 AS int);
-set @b= column_add(@a, 2, 1212 as integer);
-select column_get(@b, 2 as integer);
-column_get(@b, 2 as integer)
-1212
-show status like "feature_dynamic_columns";
-Variable_name Value
-Feature_dynamic_columns 2
-#
-# Feature fulltext
-#
-CREATE TABLE t1 (a VARCHAR(200), b TEXT, FULLTEXT (a,b)) engine=myisam;
-INSERT INTO t1 VALUES('MySQL has now support', 'for full-text search'),
-('Full-text indexes', 'are called collections'),
-('Only MyISAM tables','support collections'),
-('Function MATCH ... AGAINST()','is used to do a search'),
-('Full-text search in MySQL', 'implements vector space model');
-select * from t1 where MATCH(a,b) AGAINST ("collections");
-a b
-Only MyISAM tables support collections
-Full-text indexes are called collections
-select * from t1 where MATCH(a,b) AGAINST ("indexes");
-a b
-Full-text indexes are called collections
-drop table t1;
-show status like "feature_fulltext";
-Variable_name Value
-Feature_fulltext 2
-#
-# Feature locale
-#
-SET lc_messages=sr_RS;
-SET lc_messages=en_US;
-show status like "feature_locale";
-Variable_name Value
-Feature_locale 2
-#
-# Feature subquery
-#
-select (select 2);
-(select 2)
-2
-SELECT (SELECT 1) UNION SELECT (SELECT 2);
-(SELECT 1)
-1
-2
-create table t1 (a int);
-insert into t1 values (2);
-select (select a from t1 where t1.a=t2.a), a from t1 as t2;
-(select a from t1 where t1.a=t2.a) a
-2 2
-drop table t1;
-show status like "feature_subquery";
-Variable_name Value
-Feature_subquery 4
-#
-# Feature timezone
-#
-SELECT FROM_UNIXTIME(unix_timestamp()) > "1970-01-01";
-FROM_UNIXTIME(unix_timestamp()) > "1970-01-01"
-1
-set time_zone="+03:00";
-SELECT FROM_UNIXTIME(unix_timestamp()) > "1970-01-01";
-FROM_UNIXTIME(unix_timestamp()) > "1970-01-01"
-1
-set time_zone= @@global.time_zone;
-show status like "feature_timezone";
-Variable_name Value
-Feature_timezone 1
-#
-# Feature triggers
-#
-create table t1 (i int);
-# let us test some very simple trigger
-create trigger trg before insert on t1 for each row set @a:=1;
-set @a:=0;
-select @a;
-@a
-0
-insert into t1 values (1),(2);
-select @a;
-@a
-1
-SHOW TRIGGERS IN test like 't1';
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg INSERT t1 set @a:=1 BEFORE # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-drop trigger trg;
-drop table t1;
-show status like "%trigger%";
-Variable_name Value
-Binlog_group_commit_trigger_count 0
-Binlog_group_commit_trigger_lock_wait 0
-Binlog_group_commit_trigger_timeout 0
-Com_create_trigger 1
-Com_drop_trigger 1
-Com_show_create_trigger 0
-Com_show_triggers 1
-Executed_triggers 2
-Feature_trigger 2
-#
-# Feature xml
-#
-SET @xml='<a aa1="aa1" aa2="aa2">a1<b ba1="ba1">b1<c>c1</c>b2</b>a2</a>';
-SELECT extractValue(@xml,'/a');
-extractValue(@xml,'/a')
-a1 a2
-select updatexml('<div><div><span>1</span><span>2</span></div></div>',
-'/','<tr><td>1</td><td>2</td></tr>') as upd1;
-upd1
-<tr><td>1</td><td>2</td></tr>
-show status like "feature_xml";
-Variable_name Value
-Feature_xml 2
-#
-# Feature delayed_keys
-#
-create table t1 (a int, key(a)) engine=myisam delay_key_write=1;
-insert into t1 values(1);
-insert into t1 values(2);
-drop table t1;
-create table t1 (a int, key(a)) engine=aria delay_key_write=1;
-insert into t1 values(1);
-insert into t1 values(2);
-drop table t1;
-show status like "feature_delay_key_write";
-Variable_name Value
-Feature_delay_key_write 2
-create table t1 (a int check (a > 5));
-create table t2 (b int, constraint foo check (b < 10));
-drop table t1, t2;
-show status like "feature_check_constraint";
-Variable_name Value
-Feature_check_constraint 2
diff --git a/mysql-test/r/file_contents.result b/mysql-test/r/file_contents.result
deleted file mode 100644
index 2b5e6e6229b..00000000000
--- a/mysql-test/r/file_contents.result
+++ /dev/null
@@ -1,6 +0,0 @@
-
-Checking 'INFO_SRC' and 'INFO_BIN'
-INFO_SRC: Found MariaDB version number / Found GIT revision id
-INFO_BIN: Found 'Compiler ... used' line / Found 'Feature flags' line
-
-End of tests
diff --git a/mysql-test/r/filesort_bad_i_s-7585.result b/mysql-test/r/filesort_bad_i_s-7585.result
deleted file mode 100644
index edb1574288f..00000000000
--- a/mysql-test/r/filesort_bad_i_s-7585.result
+++ /dev/null
@@ -1,9 +0,0 @@
-SET sql_mode=STRICT_TRANS_TABLES;
-CREATE TABLE t0 (i INT) ENGINE=MyISAM;
-CREATE VIEW v1 AS SELECT * FROM t0;
-CREATE VIEW v2 AS SELECT * FROM v1;
-DROP VIEW IF EXISTS v1;
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 SELECT TABLE_ROWS FROM information_schema.tables ORDER BY TABLE_ROWS;
-DROP VIEW v2;
-DROP TABLE t1, t0;
diff --git a/mysql-test/r/filesort_debug.result b/mysql-test/r/filesort_debug.result
deleted file mode 100644
index 4aa40592be7..00000000000
--- a/mysql-test/r/filesort_debug.result
+++ /dev/null
@@ -1,81 +0,0 @@
-call mtr.add_suppression("Sort aborted.*");
-SET @old_debug= @@session.debug;
-#
-# Bug#36022 please log more information about "Sort aborted" queries
-#
-CREATE TABLE t1(f0 int auto_increment primary key, f1 int);
-INSERT INTO t1(f1) VALUES (0),(1),(2),(3),(4),(5);
-SET session debug_dbug= '+d,alloc_sort_buffer_fail';
-CALL mtr.add_suppression("Out of sort memory");
-SELECT * FROM t1 ORDER BY f1 ASC, f0;
-ERROR HY001: Out of sort memory, consider increasing server sort buffer size
-SET session debug_dbug= @old_debug;
-CREATE FUNCTION f1() RETURNS INT RETURN 1;
-DELETE FROM t1 ORDER BY (f1(10)) LIMIT 1;
-ERROR 42000: Incorrect number of arguments for FUNCTION test.f1; expected 0, got 1
-DROP TABLE t1;
-DROP FUNCTION f1;
-#
-# Bug #11747102
-# 30771: LOG MORE INFO ABOUT THREADS KILL'D AND SORT ABORTED MESSAGES
-#
-connect con1, localhost, root;
-connect con2, localhost, root;
-connection con1;
-CREATE TABLE t1(f0 int auto_increment primary key, f1 int);
-INSERT INTO t1(f1) VALUES (0),(1),(2),(3),(4),(5);
-SET DEBUG_SYNC='filesort_start SIGNAL filesort_started WAIT_FOR filesort_killed';
-# Sending: (not reaped since connection is killed later)
-SELECT * FROM t1 ORDER BY f1 ASC, f0;
-connection con2;
-SET DEBUG_SYNC='now WAIT_FOR filesort_started';
-KILL @id;
-SET DEBUG_SYNC='now SIGNAL filesort_killed';
-connection default;
-disconnect con1;
-disconnect con2;
-SET DEBUG_SYNC= "RESET";
-DROP TABLE t1;
-#
-# Bug#13832772 ASSERTION `THD->IS_ERROR() || KILL_ERRNO'
-# FAILED IN FILESORT/MYSQL_DELETE
-#
-CREATE TABLE t1 (
-c1 BLOB,
-c2 TEXT,
-c3 TEXT,
-c4 TEXT,
-c5 TEXT,
-c6 TEXT,
-c7 TEXT,
-c8 BLOB,
-c9 TEXT,
-c19 TEXT,
-pk INT,
-c20 TEXT,
-c21 BLOB,
-c22 TEXT,
-c23 TEXT,
-c24 TEXT,
-c25 TEXT,
-c26 BLOB,
-c27 TEXT,
-c28 TEXT,
-primary key (pk)
-);
-CALL mtr.add_suppression("Out of sort memory");
-DELETE IGNORE FROM t1 ORDER BY c26,c7,c23,c4,c25,c5,c20,
-c19,c21,c8,c1,c27,c28,c3,c9,c22,c24,c6,c2,pk LIMIT 2;
-ERROR HY001: Out of sort memory, consider increasing server sort buffer size
-SHOW WARNINGS;
-Level Code Message
-Error 1038 Out of sort memory, consider increasing server sort buffer size
-Error 1028 Sort aborted: Out of sort memory, consider increasing server sort buffer size
-DELETE FROM t1 ORDER BY c26,c7,c23,c4,c25,c5,c20,
-c19,c21,c8,c1,c27,c28,c3,c9,c22,c24,c6,c2,pk LIMIT 2;
-ERROR HY001: Out of sort memory, consider increasing server sort buffer size
-SHOW WARNINGS;
-Level Code Message
-Error 1038 Out of sort memory, consider increasing server sort buffer size
-Error 1028 Sort aborted: Out of sort memory, consider increasing server sort buffer size
-DROP TABLE t1;
diff --git a/mysql-test/r/fix_priv_tables.result b/mysql-test/r/fix_priv_tables.result
deleted file mode 100644
index dea1ccdbd18..00000000000
--- a/mysql-test/r/fix_priv_tables.result
+++ /dev/null
@@ -1,37 +0,0 @@
-drop table if exists t1,t1aa,t2aa;
-set sql_mode="";
-DROP DATABASE IF EXISTS testdb;
-CREATE DATABASE testdb;
-CREATE TABLE testdb.t1 (
-c1 INT,
-c3 INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
-CREATE VIEW testdb.v1 AS
-SELECT * FROM testdb.t1;
-GRANT CREATE VIEW, SHOW VIEW ON testdb.v1 TO 'show_view_tbl'@'localhost';
-SHOW GRANTS FOR 'show_view_tbl'@'localhost';
-Grants for show_view_tbl@localhost
-GRANT USAGE ON *.* TO 'show_view_tbl'@'localhost'
-GRANT CREATE VIEW, SHOW VIEW ON `testdb`.`v1` TO 'show_view_tbl'@'localhost'
-
-GRANT SELECT(c1) on testdb.v1 to 'select_only_c1'@localhost;
-SHOW GRANTS FOR 'select_only_c1'@'localhost';
-Grants for select_only_c1@localhost
-GRANT USAGE ON *.* TO 'select_only_c1'@'localhost'
-GRANT SELECT (c1) ON `testdb`.`v1` TO 'select_only_c1'@'localhost'
-
-"after fix privs"
-SHOW GRANTS FOR 'show_view_tbl'@'localhost';
-Grants for show_view_tbl@localhost
-GRANT USAGE ON *.* TO 'show_view_tbl'@'localhost'
-GRANT CREATE VIEW, SHOW VIEW ON `testdb`.`v1` TO 'show_view_tbl'@'localhost'
-
-SHOW GRANTS FOR 'select_only_c1'@'localhost';
-Grants for select_only_c1@localhost
-GRANT USAGE ON *.* TO 'select_only_c1'@'localhost'
-GRANT SELECT (c1) ON `testdb`.`v1` TO 'select_only_c1'@'localhost'
-
-DROP USER 'show_view_tbl'@'localhost';
-DROP USER 'select_only_c1'@'localhost';
-DROP VIEW testdb.v1;
-DROP TABLE testdb.t1;
-DROP DATABASE testdb;
diff --git a/mysql-test/r/flush-innodb-notembedded.result b/mysql-test/r/flush-innodb-notembedded.result
deleted file mode 100644
index 0b63a7b3519..00000000000
--- a/mysql-test/r/flush-innodb-notembedded.result
+++ /dev/null
@@ -1,40 +0,0 @@
-set sql_mode="";
-# Test 7: Check privileges required.
-#
-CREATE DATABASE db1;
-CREATE TABLE db1.t1 (a INT) engine= InnoDB;
-GRANT RELOAD, SELECT, LOCK TABLES ON *.* TO user1@localhost;
-GRANT CREATE, DROP ON *.* TO user2@localhost;
-GRANT RELOAD, SELECT ON *.* TO user3@localhost;
-GRANT SELECT, LOCK TABLES ON *.* TO user4@localhost;
-GRANT RELOAD, LOCK TABLES ON *.* TO user5@localhost;
-connect con1, localhost, user1;
-FLUSH TABLE db1.t1 FOR EXPORT;
-UNLOCK TABLES;
-disconnect con1;
-connection default;
-connect con1, localhost, user2;
-FLUSH TABLE db1.t1 FOR EXPORT;
-ERROR 42000: Access denied; you need (at least one of) the RELOAD privilege(s) for this operation
-disconnect con1;
-connection default;
-connect con1, localhost, user3;
-FLUSH TABLE db1.t1 FOR EXPORT;
-ERROR 42000: Access denied for user 'user3'@'localhost' to database 'db1'
-disconnect con1;
-connection default;
-connect con1, localhost, user4;
-FLUSH TABLE db1.t1 FOR EXPORT;
-ERROR 42000: Access denied; you need (at least one of) the RELOAD privilege(s) for this operation
-disconnect con1;
-connection default;
-connect con1, localhost, user5;
-FLUSH TABLE db1.t1 FOR EXPORT;
-ERROR 42000: SELECT command denied to user 'user5'@'localhost' for table 't1'
-disconnect con1;
-connection default;
-DROP USER user1@localhost, user2@localhost, user3@localhost,
-user4@localhost, user5@localhost;
-DROP TABLE db1.t1;
-DROP DATABASE db1;
-# End of 5.6 tests
diff --git a/mysql-test/r/flush-innodb.result b/mysql-test/r/flush-innodb.result
deleted file mode 100644
index 21e5bda7785..00000000000
--- a/mysql-test/r/flush-innodb.result
+++ /dev/null
@@ -1,305 +0,0 @@
-FLUSH TABLES WITH READ LOCK AND DISABLE CHECKPOINT;
-UNLOCK TABLES;
-CREATE TABLE t1 ( m MEDIUMTEXT ) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ( REPEAT('i',65535) );
-DROP TABLE t1;
-
-#
-# WL#6168: FLUSH TABLES ... FOR EXPORT -- parser
-#
-
-# Requires innodb_file_per_table
-SET @old_innodb_file_per_table= @@GLOBAL.innodb_file_per_table;
-SET GLOBAL innodb_file_per_table= 1;
-# new "EXPORT" keyword is a valid user variable name:
-SET @export = 10;
-# new "EXPORT" keyword is a valid SP parameter name:
-CREATE PROCEDURE p1(export INT) BEGIN END;
-DROP PROCEDURE p1;
-# new "EXPORT" keyword is a valid local variable name:
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE export INT;
-END|
-DROP PROCEDURE p1;
-# new "EXPORT" keyword is a valid SP name:
-CREATE PROCEDURE export() BEGIN END;
-DROP PROCEDURE export;
-# new FLUSH TABLES ... FOR EXPORT syntax:
-FLUSH TABLES FOR EXPORT;
-ERROR 42000: No tables used near 'FOR EXPORT' at line 1
-FLUSH TABLES WITH EXPORT;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'EXPORT' at line 1
-CREATE TABLE t1 (i INT) engine=InnoDB;
-CREATE TABLE t2 LIKE t1;
-FLUSH TABLES t1,t2 WITH EXPORT;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'EXPORT' at line 1
-FLUSH TABLES t1, t2 FOR EXPORT;
-UNLOCK TABLES;
-# case check
-FLUSH TABLES t1, t2 for ExPoRt;
-UNLOCK TABLES;
-# With LOCAL keyword
-FLUSH LOCAL TABLES t1, t2 FOR EXPORT;
-UNLOCK TABLES;
-# Tables with fully qualified names
-FLUSH LOCAL TABLES test.t1, test.t2 for ExPoRt;
-UNLOCK TABLES;
-DROP TABLES t1, t2;
-# new "EXPORT" keyword is a valid table name:
-CREATE TABLE export (i INT) engine=InnoDB;
-# it's ok to lock the "export" table for export:
-FLUSH TABLE export FOR EXPORT;
-UNLOCK TABLES;
-DROP TABLE export;
-#
-# WL#6169 FLUSH TABLES ... FOR EXPORT -- runtime
-#
-# Test 1: Views, temporary tables, non-existent tables
-#
-CREATE VIEW v1 AS SELECT 1;
-CREATE TEMPORARY TABLE t1 (a INT);
-FLUSH TABLES v1 FOR EXPORT;
-ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
-FLUSH TABLES t1 FOR EXPORT;
-ERROR 42S02: Table 'test.t1' doesn't exist
-FLUSH TABLES non_existent FOR EXPORT;
-ERROR 42S02: Table 'test.non_existent' doesn't exist
-DROP TEMPORARY TABLE t1;
-DROP VIEW v1;
-# Test 2: Blocked by update transactions, blocks updates.
-#
-CREATE TABLE t1 (a INT PRIMARY KEY, b INT) engine= InnoDB;
-CREATE TABLE t2 (a INT) engine= InnoDB;
-connect con1, localhost, root;
-START TRANSACTION;
-INSERT INTO t1 VALUES (1, 1);
-connection default;
-# Should be blocked
-# Sending:
-FLUSH TABLES t1 FOR EXPORT;
-connection con1;
-COMMIT;
-connection default;
-# Reaping: FLUSH TABLES t1 FOR EXPORT
-connection con1;
-# Should not be blocked
-INSERT INTO t2 VALUES (1);
-# Should be blocked
-# Sending:
-INSERT INTO t1 VALUES (2, 2);
-connection default;
-UNLOCK TABLES;
-connection con1;
-# Reaping: INSERT INTO t1 VALUES (2, 2);
-# Test 3: Read operations should not be affected.
-#
-START TRANSACTION;
-SELECT * FROM t1;
-a b
-1 1
-2 2
-connection default;
-# Should not be blocked
-FLUSH TABLES t1 FOR EXPORT;
-connection con1;
-COMMIT;
-# Should not be blocked
-SELECT * FROM t1;
-a b
-1 1
-2 2
-connection default;
-UNLOCK TABLES;
-# Test 4: Blocked by DDL, blocks DDL.
-#
-START TRANSACTION;
-SELECT * FROM t1;
-a b
-1 1
-2 2
-connect con2, localhost, root;
-# Sending:
-ALTER TABLE t1 ADD INDEX i1(b);
-connection con1;
-# Should be blocked
-FLUSH TABLE t1 FOR EXPORT;
-connection default;
-COMMIT;
-connection con2;
-# Reaping ALTER TABLE ...
-connection con1;
-# Reaping FLUSH TABLE t1 FOR EXPORT
-UNLOCK TABLES;
-connection default;
-FLUSH TABLE t1 FOR EXPORT;
-connection con2;
-# Should be blocked
-DROP TABLE t1;
-connection default;
-UNLOCK TABLES;
-connection con2;
-# Reaping DROP TABLE t1
-disconnect con2;
-connection default;
-DROP TABLE t2;
-# Test 5: Compatibilty with FLUSH TABLES WITH READ LOCK
-#
-CREATE TABLE t1(a INT) engine= InnoDB;
-FLUSH TABLES WITH READ LOCK;
-connection con1;
-# This should not block
-FLUSH TABLE t1 FOR EXPORT;
-UNLOCK TABLES;
-connection default;
-UNLOCK TABLES;
-DROP TABLE t1;
-# Test 6: Unsupported storage engines.
-#
-CREATE TABLE t1(a INT) engine= MEMORY;
-FLUSH TABLE t1 FOR EXPORT;
-ERROR HY000: Storage engine MEMORY of the table `test`.`t1` doesn't have this option
-DROP TABLE t1;
-connection con1;
-disconnect con1;
-connection default;
-# Test 7: Check privileges required.
-# in flush-innodb-notembedded.test
-# Test 8: FLUSH TABLE <table_list> FOR EXPORT is incompatible
-# with itself (to avoid race conditions in metadata
-# file handling).
-#
-CREATE TABLE t1 (a INT) engine= InnoDB;
-CREATE TABLE t2 (a INT) engine= InnoDB;
-connect con1, localhost, root;
-FLUSH TABLE t1 FOR EXPORT;
-connection default;
-# This should not block
-FLUSH TABLE t2 FOR EXPORT;
-UNLOCK TABLES;
-# This should block
-# Sending:
-FLUSH TABLE t1 FOR EXPORT;
-connection con1;
-UNLOCK TABLES;
-connection default;
-# Reaping: FLUSH TABLE t1 FOR EXPORT
-UNLOCK TABLES;
-# Test 9: LOCK TABLES ... READ is not affected
-#
-LOCK TABLE t1 READ;
-connection con1;
-# Should not block
-FLUSH TABLE t1 FOR EXPORT;
-UNLOCK TABLES;
-connection default;
-UNLOCK TABLES;
-FLUSH TABLE t1 FOR EXPORT;
-connection con1;
-# Should not block
-LOCK TABLE t1 READ;
-UNLOCK TABLES;
-connection default;
-UNLOCK TABLES;
-connection con1;
-disconnect con1;
-connection default;
-DROP TABLE t1, t2;
-# Test 10: Lock is released if transaction is started after doing
-# 'flush table..' in same session
-CREATE TABLE t1 ( i INT ) ENGINE = Innodb;
-FLUSH TABLE t1 FOR EXPORT;
-# error as active locks already exist
-FLUSH TABLE t1 FOR EXPORT;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-# active locks will be released due to start transaction
-START TRANSACTION;
-# passes as start transaction released ealier locks
-FLUSH TABLE t1 FOR EXPORT;
-UNLOCK TABLES;
-DROP TABLE t1;
-# Test 11: Test 'flush table with fully qualified table names
-# and with syntax local/NO_WRITE_TO_BINLOG
-connect con1, localhost, root;
-connection default;
-CREATE TABLE t1 ( i INT ) ENGINE = Innodb;
-INSERT INTO t1 VALUES (100),(200);
-FLUSH LOCAL TABLES test.t1 FOR EXPORT;
-connection con1;
-# Should be blocked
-# Sending:
-FLUSH LOCAL TABLES t1 FOR EXPORT;
-connection default;
-UNLOCK TABLE;
-connection con1;
-# Reaping: FLUSH LOCAL TABLES t1 FOR EXPORT
-SELECT * FROM t1 ORDER BY i;
-i
-100
-200
-connection default;
-# Should be blocked
-# Sending:
-FLUSH NO_WRITE_TO_BINLOG TABLES test.t1 FOR EXPORT;
-connection con1;
-UNLOCK TABLES;
-connection default;
-# Reaping: FLUSH NO_WRITE_TO_BINLOG TABLES test.t1 FOR EXPORT
-SELECT * FROM t1 ORDER BY i;
-i
-100
-200
-UNLOCK TABLE;
-DROP TABLE t1;
-# Test 12: Active transaction get committed if user execute
-# "FLUSH TABLE ... FOR EXPORT" or "LOCK TABLE.."
-connection default;
-CREATE TABLE t1 ( i INT ) ENGINE = Innodb;
-INSERT INTO t1 VALUES (100),(200);
-START TRANSACTION;
-INSERT INTO t1 VALUES (300);
-# 'flush table..' commit active transaction from same session
-FLUSH LOCAL TABLES test.t1 FOR EXPORT;
-ROLLBACK;
-SELECT * FROM t1 ORDER BY i;
-i
-100
-200
-300
-START TRANSACTION;
-INSERT INTO t1 VALUES (400);
-# 'lock table ..' commit active transaction from same session
-LOCK TABLES test.t1 READ;
-ROLLBACK;
-SELECT * FROM t1 ORDER BY i;
-i
-100
-200
-300
-400
-UNLOCK TABLES;
-DROP TABLE t1;
-# Test 13: Verify "FLUSH TABLE ... FOR EXPORT" and "LOCK TABLE.."
-# in same session
-connection default;
-CREATE TABLE t1 ( i INT ) ENGINE = Innodb;
-# Lock table
-LOCK TABLES test.t1 WRITE;
-# 'lock table ..' completes even if table lock is acquired
-# in same session using 'lock table'. Previous locks are released.
-LOCK TABLES test.t1 READ;
-# 'flush table ..' gives error if table lock is acquired
-# in same session using 'lock table ..'
-FLUSH TABLES test.t1 FOR EXPORT;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-# 'lock table ..' completes even if table lock is acquired
-# in same session using 'flush table'. Previous locks are released.
-LOCK TABLES test.t1 WRITE;
-UNLOCK TABLES;
-DROP TABLE t1;
-connection con1;
-disconnect con1;
-connection default;
-# Reset innodb_file_per_table
-SET GLOBAL innodb_file_per_table= @old_innodb_file_per_table;
-# End of 5.6 tests
diff --git a/mysql-test/r/flush.result b/mysql-test/r/flush.result
deleted file mode 100644
index 5cd4fde477d..00000000000
--- a/mysql-test/r/flush.result
+++ /dev/null
@@ -1,544 +0,0 @@
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection con1;
-drop table if exists t1,t2;
-drop database if exists mysqltest;
-create temporary table t1(n int not null primary key);
-create table t2(n int);
-insert into t2 values(3);
-connection con1;
-select * from t1;
-n
-3
-connection con2;
-flush tables with read lock and disable checkpoint;
-drop table t2;
-ERROR HY000: Can't execute the query because you have a conflicting read lock
-connection con1;
-drop table t2;
-connection con2;
-unlock tables;
-connection con1;
-connection con1;
-create database mysqltest;
-create table mysqltest.t1(n int);
-insert into mysqltest.t1 values (23);
-flush tables with read lock;
-connection con2;
-drop database mysqltest;
-connection con1;
-select * from mysqltest.t1;
-n
-23
-unlock tables;
-connection con2;
-connection con1;
-create table t1 (n int);
-flush tables with read lock;
-disconnect con1;
-connection con2;
-insert into t1 values (345);
-select * from t1;
-n
-345
-drop table t1;
-create table t1 (c1 int);
-lock table t1 write;
-flush tables with read lock;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-lock table t1 read;
-flush tables with read lock;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-flush tables with read lock;
-lock table t1 write;
-ERROR HY000: Can't execute the query because you have a conflicting read lock
-lock table t1 read;
-lock table t1 write;
-ERROR HY000: Can't execute the query because you have a conflicting read lock
-unlock tables;
-create table t2 (c1 int);
-create table t3 (c1 int);
-lock table t1 read, t2 read, t3 write;
-flush tables with read lock;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-lock table t1 read, t2 read, t3 read;
-flush tables with read lock;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-drop table t1, t2, t3;
-create table t1 (c1 int);
-create table t2 (c1 int);
-connect con1,localhost,root,,;
-connect con3,localhost,root,,;
-connection con1;
-lock table t1 write;
-connection con2;
-flush tables with read lock;
-connection con3;
-insert into t2 values(1);
-connection con1;
-unlock tables;
-disconnect con1;
-connection con2;
-disconnect con2;
-connection con3;
-disconnect con3;
-connection default;
-drop table t1, t2;
-drop table if exists t1, t2;
-set session low_priority_updates=1;
-create table t1 (a int);
-create table t2 (b int);
-lock tables t1 write;
-flush tables with read lock;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-lock tables t1 read, t2 write;
-flush tables with read lock;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-lock tables t1 read;
-flush tables with read lock;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-drop table t1, t2;
-set session low_priority_updates=default;
-connect con1,localhost,root,,;
-select benchmark(200, (select sin(1))) > 1000;
-disconnect con1;
-connection default;
-End of 5.0 tests
-set @old_general_log= @@general_log;
-set @old_read_only= @@read_only;
-set global general_log= on;
-flush tables with read lock;
-flush logs;
-unlock tables;
-set global read_only=1;
-flush logs;
-unlock tables;
-flush tables with read lock;
-flush logs;
-unlock tables;
-set global general_log= @old_general_log;
-set global read_only= @old_read_only;
-End of 5.1 tests
-#
-# Additional test for bug #51136 "Crash in pthread_rwlock_rdlock
-# on TEMPORARY + HANDLER + LOCK + SP".
-# Also see the main test for this bug in include/handler.inc.
-#
-drop tables if exists t1, t2;
-create table t1 (i int);
-create temporary table t2 (j int);
-flush tables with read lock;
-lock table t2 read;
-# This commit should not release any MDL locks.
-commit;
-# The below statement crashed before the bug fix as it
-# has attempted to release global shared metadata lock
-# which was already released by commit.
-unlock tables;
-drop tables t1, t2;
-#
-# Tests for WL#5000 FLUSH TABLES|TABLE table_list WITH READ LOCK
-#
-# I. Check the incompatible changes in the grammar.
-#
-flush tables with read lock, hosts;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' hosts' at line 1
-flush privileges, tables;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'tables' at line 1
-flush privileges, tables with read lock;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'tables with read lock' at line 1
-flush privileges, tables;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'tables' at line 1
-flush tables with read lock, tables;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' tables' at line 1
-show tables;
-Tables_in_test
-#
-# II. Check the allowed syntax.
-#
-drop table if exists t1, t2, t3;
-create table t1 (a int);
-create table t2 (a int);
-create table t3 (a int);
-lock table t1 read, t2 read;
-flush tables with read lock;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-flush tables with read lock;
-flush tables t1, t2 with read lock;
-flush tables t1, t2 with read lock;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-flush tables with read lock;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-select * from t1;
-a
-select * from t2;
-a
-select * from t3;
-ERROR HY000: Table 't3' was not locked with LOCK TABLES
-insert into t1 (a) values (1);
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-insert into t2 (a) values (1);
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-insert into t3 (a) values (1);
-ERROR HY000: Table 't3' was not locked with LOCK TABLES
-lock table no_such_table read;
-ERROR 42S02: Table 'test.no_such_table' doesn't exist
-#
-# We implicitly left the locked tables
-# mode but still have the read lock.
-#
-insert into t2 (a) values (1);
-ERROR HY000: Can't execute the query because you have a conflicting read lock
-unlock tables;
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
-flush table t1, t2 with read lock;
-select * from t1;
-a
-1
-select * from t2;
-a
-1
-select * from t3;
-ERROR HY000: Table 't3' was not locked with LOCK TABLES
-insert into t1 (a) values (2);
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-insert into t2 (a) values (2);
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-insert into t3 (a) values (2);
-ERROR HY000: Table 't3' was not locked with LOCK TABLES
-lock table no_such_table read;
-ERROR 42S02: Table 'test.no_such_table' doesn't exist
-insert into t3 (a) values (2);
-#
-# III. Concurrent tests.
-#
-connect con1,localhost,root,,;
-#
-# Check that flush tables <list> with read lock
-# does not affect non-locked tables.
-connection default;
-#
-flush tables t1 with read lock;
-connection con1;
-select * from t1;
-a
-1
-select * from t2;
-a
-1
-insert into t2 (a) values (3);
-connection default;
-unlock tables;
-#
-# Check that "FLUSH TABLES <list> WITH READ LOCK" is
-# compatible with active "FLUSH TABLES WITH READ LOCK".
-# Vice versa it is not true, since tables read-locked by
-# "FLUSH TABLES <list> WITH READ LOCK" can't be flushed.
-flush tables with read lock;
-connection con1;
-flush table t1 with read lock;
-select * from t1;
-a
-1
-unlock tables;
-connection default;
-unlock tables;
-#
-# Check that FLUSH TABLES t1 WITH READ LOCK
-# does not conflict with an existing FLUSH TABLES t2
-# WITH READ LOCK.
-#
-flush table t1 with read lock;
-connection con1;
-flush table t2 with read lock;
-unlock tables;
-connection default;
-unlock tables;
-#
-# Check that FLUSH TABLES t1 WITH READ LOCK
-# does not conflict with SET GLOBAL read_only=1.
-#
-set global read_only=1;
-connection con1;
-flush table t1 with read lock;
-unlock tables;
-connection default;
-set global read_only=0;
-#
-# Check that it's possible to read-lock
-# tables locked with FLUSH TABLE <list> WITH READ LOCK.
-#
-flush tables t1, t2 with read lock;
-connection con1;
-lock table t1 read, t2 read;
-unlock tables;
-connection default;
-unlock tables;
-connection con1;
-disconnect con1;
-connection default;
-drop table t1, t2, t3;
-#
-# Bug#51710 FLUSH TABLES <view> WITH READ LOCK kills the server
-#
-drop view if exists v1, v2, v3;
-drop table if exists t1, v1;
-create table t1 (a int);
-create view v1 as select 1;
-create view v2 as select * from t1;
-create view v3 as select * from v2;
-flush table v1, v2, v3 with read lock;
-ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
-flush table v1 with read lock;
-ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
-flush table v2 with read lock;
-ERROR HY000: 'test.v2' is not of type 'BASE TABLE'
-flush table v3 with read lock;
-ERROR HY000: 'test.v3' is not of type 'BASE TABLE'
-create temporary table v1 (a int);
-flush table v1 with read lock;
-ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
-drop view v1;
-create table v1 (a int);
-flush table v1 with read lock;
-drop temporary table v1;
-unlock tables;
-drop view v2, v3;
-drop table t1, v1;
-#
-# FLUSH TABLES <list> WITH READ LOCK and HANDLER
-#
-drop table if exists t1;
-create table t1 (a int, key a (a));
-insert into t1 (a) values (1), (2), (3);
-handler t1 open;
-handler t1 read a next;
-a
-1
-handler t1 read a next;
-a
-2
-flush tables t1 with read lock;
-handler t1 read a next;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-#
-# Sic: lost handler position.
-#
-handler t1 read a next;
-a
-1
-handler t1 close;
-drop table t1;
-#
-# Bug#52117 Pending FLUSH TALBES <list> aborts
-# transactions unnecessarily.
-#
-drop table if exists t1;
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection default;
-create table t1 (a int);
-begin;
-select * from t1;
-a
-connection con1;
-#
-# Issue a LOCK TABLE t1 READ. We could use HANDLER t1 OPEN
-# or a long-running select -- anything that
-# prevents FLUSH TABLE t1 from immediate completion would do.
-#
-lock table t1 read;
-connection con2;
-#
-# FLUSH TABLE expels the table definition from the cache.
-# Sending 'flush table t1'...
-flush table t1;
-connection default;
-# Let flush table sync in.
-select * from t1;
-connection con1;
-select * from t1;
-a
-unlock tables;
-connection con2;
-# Reaping 'flush table t1'...
-connection default;
-# Reaping 'select * from t1'...
-a
-commit;
-#
-# Repeat the same test but with FLUSH TABLES
-#
-begin;
-select * from t1;
-a
-connection con1;
-#
-# Issue a LOCK TABLE t1 READ.
-#
-lock table t1 read;
-connection con2;
-#
-# FLUSH TABLES expels the table definition from the cache.
-# Sending 'flush tables'...
-flush tables;
-connection default;
-# Let flush table sync in.
-select * from t1;
-connection con1;
-select * from t1;
-a
-unlock tables;
-connection con2;
-# Reaping 'flush tables'...
-connection default;
-# Reaping 'select * from t1'...
-a
-commit;
-# Cleanup
-connection con1;
-disconnect con1;
-connection con2;
-disconnect con2;
-connection default;
-drop table t1;
-#
-# Test for bug #55273 "FLUSH TABLE tm WITH READ LOCK for Merge table
-# causes assert failure".
-#
-drop table if exists t1, t2, tm;
-create table t1 (i int);
-create table t2 (i int);
-create table tm (i int) engine=merge union=(t1, t2);
-insert into t1 values (1), (2);
-insert into t2 values (3), (4);
-# The below statement should succeed and lock merge
-# table for read. Only merge table gets flushed and
-# not underlying tables.
-flush tables tm with read lock;
-select * from tm;
-i
-1
-2
-3
-4
-# Check that underlying tables are locked.
-select * from t1;
-i
-1
-2
-select * from t2;
-i
-3
-4
-unlock tables;
-# This statement should succeed as well and flush
-# all tables in the list.
-flush tables tm, t1, t2 with read lock;
-select * from tm;
-i
-1
-2
-3
-4
-# Naturally, underlying tables should be locked in this case too.
-select * from t1;
-i
-1
-2
-select * from t2;
-i
-3
-4
-unlock tables;
-drop tables tm, t1, t2;
-#
-# Test for bug #57006 "Deadlock between HANDLER and
-# FLUSH TABLES WITH READ LOCK".
-#
-drop table if exists t1, t2;
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection default;
-create table t1 (i int);
-create table t2 (i int);
-handler t1 open;
-connection con1;
-# Sending:
-flush tables with read lock;
-connection con2;
-# Wait until FTWRL starts waiting for 't1' to be closed.
-connection default;
-# The below statement should not cause deadlock.
-# Sending:
-insert into t2 values (1);
-connection con2;
-# Wait until INSERT starts to wait for FTWRL to go away.
-connection con1;
-# FTWRL should be able to continue now.
-# Reap FTWRL.
-unlock tables;
-connection default;
-# Reap INSERT.
-handler t1 close;
-# Cleanup.
-connection con1;
-disconnect con1;
-connection con2;
-disconnect con2;
-connection default;
-drop tables t1, t2;
-#
-# Bug#57649 FLUSH TABLES under FLUSH TABLES <list> WITH READ LOCK leads
-# to assert failure.
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT);
-FLUSH TABLES t1 WITH READ LOCK;
-FLUSH TABLES;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a= 1;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-ALTER TABLE t1 COMMENT 'test';
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-UNLOCK TABLES;
-DROP TABLE t1;
-#
-# Test for bug #12641342 - "61401: UPDATE PERFORMANCE DEGRADES
-# GRADUALLY IF A TRIGGER EXISTS".
-#
-# One of side-effects of this bug was that a transaction which
-# involved DML statements requiring prelocking blocked concurrent
-# FLUSH TABLES WITH READ LOCK for the whole its duration, while
-# correct behavior in this case is to block FTWRL only for duration
-# of individual DML statements.
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (id INT PRIMARY KEY, value INT);
-INSERT INTO t1 VALUES (1, 1);
-CREATE TRIGGER t1_au AFTER UPDATE ON t1 FOR EACH ROW SET @var = "a";
-BEGIN;
-UPDATE t1 SET value= value + 1 WHERE id = 1;
-connect con1, localhost, root;
-# The below FLUSH TABLES WITH READ LOCK should succeed and
-# should not be blocked by the transaction in default connection.
-FLUSH TABLES WITH READ LOCK;
-UNLOCK TABLES;
-disconnect con1;
-connection default;
-COMMIT;
-DROP TABLE t1;
-#
-# Test flushing slave or relay logs twice
-#
-flush relay logs,relay logs;
-ERROR HY000: Incorrect usage of FLUSH and RELAY LOGS
-flush slave,slave;
-ERROR HY000: Incorrect usage of FLUSH and SLAVE
diff --git a/mysql-test/r/flush2.result b/mysql-test/r/flush2.result
deleted file mode 100644
index a66b0d5c688..00000000000
--- a/mysql-test/r/flush2.result
+++ /dev/null
@@ -1,38 +0,0 @@
-flush logs;
-set global expire_logs_days = 3;
-show variables like 'log_bin%';
-Variable_name Value
-log_bin OFF
-log_bin_basename
-log_bin_compress OFF
-log_bin_compress_min_len 256
-log_bin_index
-log_bin_trust_function_creators ON
-show variables like 'relay_log%';
-Variable_name Value
-relay_log mysqld-relay-bin
-relay_log_basename MYSQLTEST_VARDIR/mysqld.1/data/mysqld-relay-bin
-relay_log_index MYSQLTEST_VARDIR/mysqld.1/data/mysqld-relay-bin.index
-relay_log_info_file relay-log.info
-relay_log_purge ON
-relay_log_recovery OFF
-relay_log_space_limit 0
-flush logs;
-show variables like 'log_bin%';
-Variable_name Value
-log_bin OFF
-log_bin_basename
-log_bin_compress OFF
-log_bin_compress_min_len 256
-log_bin_index
-log_bin_trust_function_creators ON
-show variables like 'relay_log%';
-Variable_name Value
-relay_log mysqld-relay-bin
-relay_log_basename MYSQLTEST_VARDIR/mysqld.1/data/mysqld-relay-bin
-relay_log_index MYSQLTEST_VARDIR/mysqld.1/data/mysqld-relay-bin.index
-relay_log_info_file relay-log.info
-relay_log_purge ON
-relay_log_recovery OFF
-relay_log_space_limit 0
-set global expire_logs_days = 0;
diff --git a/mysql-test/r/flush_block_commit.result b/mysql-test/r/flush_block_commit.result
deleted file mode 100644
index e9684e5aa46..00000000000
--- a/mysql-test/r/flush_block_commit.result
+++ /dev/null
@@ -1,68 +0,0 @@
-# Save the initial number of concurrent sessions
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connect con3,localhost,root,,;
-connection con1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT) ENGINE=innodb;
-BEGIN;
-INSERT INTO t1 VALUES(1);
-connection con2;
-FLUSH TABLES WITH READ LOCK;
-connection con1;
-# Sending:
-COMMIT;
-connection con2;
-# Wait until COMMIT gets blocked.
-# Verify that 'con1' was blocked and data did not move.
-SELECT * FROM t1;
-a
-UNLOCK TABLES;
-connection con1;
-# Reaping COMMIT
-connection con1;
-BEGIN;
-SELECT * FROM t1 FOR UPDATE;
-a
-1
-connection con2;
-BEGIN;
-SELECT * FROM t1 FOR UPDATE;
-connection con3;
-FLUSH TABLES WITH READ LOCK;
-connection con1;
-COMMIT;
-connection con2;
-a
-1
-COMMIT;
-connection con3;
-UNLOCK TABLES;
-connection con2;
-COMMIT;
-connection con1;
-BEGIN;
-INSERT INTO t1 VALUES(10);
-FLUSH TABLES WITH READ LOCK;
-connection con2;
-FLUSH TABLES WITH READ LOCK;
-UNLOCK TABLES;
-BEGIN;
-SELECT * FROM t1;
-a
-1
-10
-SHOW CREATE DATABASE test;
-Database Create Database
-test CREATE DATABASE `test` /*!40100 DEFAULT CHARACTER SET latin1 */
-COMMIT;
-# Cleanup
-connection default;
-disconnect con1;
-disconnect con2;
-disconnect con3;
-# We commit open transactions when we disconnect: only then we can
-# drop the table.
-DROP TABLE t1;
-# End of 4.1 tests
-# Wait till all disconnects are completed
diff --git a/mysql-test/r/flush_block_commit_notembedded.result b/mysql-test/r/flush_block_commit_notembedded.result
deleted file mode 100644
index 7dd6410ac70..00000000000
--- a/mysql-test/r/flush_block_commit_notembedded.result
+++ /dev/null
@@ -1,36 +0,0 @@
-# Save the initial number of concurrent sessions
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection con1;
-CREATE TABLE t1 (a INT) ENGINE=innodb;
-RESET MASTER;
-SET AUTOCOMMIT=0;
-SELECT 1;
-1
-1
-connection con2;
-FLUSH TABLES WITH READ LOCK;
-include/show_binlog_events.inc
-connection con1;
-INSERT INTO t1 VALUES (1);
-connection con2;
-include/show_binlog_events.inc
-UNLOCK TABLES;
-connection con1;
-DROP TABLE t1;
-SET AUTOCOMMIT=1;
-create table t1 (a int) engine=innodb;
-connection con1;
-flush tables with read lock;
-connection con2;
-begin;
-insert into t1 values (1);;
-connection con1;
-unlock tables;
-connection con2;
-commit;
-drop table t1;
-connection default;
-disconnect con1;
-disconnect con2;
-# Wait till all disconnects are completed
diff --git a/mysql-test/r/flush_read_lock.result b/mysql-test/r/flush_read_lock.result
deleted file mode 100644
index 55c31ae8d12..00000000000
--- a/mysql-test/r/flush_read_lock.result
+++ /dev/null
@@ -1,1679 +0,0 @@
-set global sql_mode="";
-set local sql_mode="";
-# FTWRL takes two global metadata locks -- a global shared
-# metadata lock and the commit blocker lock.
-# The first lock prevents DDL from taking place.
-# Let's say that all DDL statements that take metadata
-# locks form class #1 -- incompatible with FTWRL because
-# take incompatible MDL table locks.
-# The first global lock doesn't, however, prevent standalone
-# COMMITs (or implicit COMMITs) from taking place, since a
-# COMMIT doesn't take table locks. It doesn't prevent
-# DDL on temporary tables either, since they don't
-# take any table locks either.
-# Most DDL statements do not perform an implicit commit
-# if operate on a temporary table. Examples are CREATE
-# TEMPORARY TABLE and DROP TEMPORARY TABLE.
-# Thus, these DDL statements can go through in presence
-# of FTWRL. This is class #2 -- compatible because
-# do not take incompatible MDL locks and do not issue
-# implicit commit..
-# (Although these operations do not commit, their effects
-# cannot be rolled back either.)
-# ALTER TABLE, ANALYZE, OPTIMIZE and some others always
-# issue an implicit commit, even if its argument is a
-# temporary table.
-# *Howewer* an implicit commit is a no-op if all engines
-# used since the start of transactiona are non-
-# transactional. Thus, for non-transactional engines,
-# these operations are not blocked by FTWRL.
-# This is class #3 -- compatible because do not take
-# MDL table locks and are non-transactional.
-# On the contrary, for transactional engines, there
-# is always a commit, regardless of whether a table
-# is temporary or not. Thus, for example, ALTER TABLE
-# for a transactional engine will wait for FTWRL,
-# even if the subject table is temporary.
-# Thus ALTER TABLE <temporary> is incompatible
-# with FTWRL. This is class #4 -- incompatible
-# becuase issue implicit COMMIT which is not a no-op.
-# Finally, there are administrative statements (such as
-# RESET SLAVE) that do not take any locks and do not
-# issue COMMIT.
-# This is class #5.
-# The goal of this coverage is to test statements
-# of all classes.
-# @todo: documents the effects of @@autocommit,
-# DML and temporary transactional tables.
-# Use MyISAM engine for the most of the tables
-# used in this test in order to be able to
-# check that DDL statements on temporary tables
-# are compatible with FTRWL.
-drop tables if exists t1_base, t2_base, t3_trans;
-drop tables if exists tm_base, tm_base_temp;
-drop database if exists mysqltest1;
-# We're going to test ALTER DATABASE UPGRADE
-drop database if exists `#mysql50#mysqltest-2`;
-drop procedure if exists p1;
-drop function if exists f1;
-drop view if exists v1;
-drop procedure if exists p2;
-drop function if exists f2_base;
-drop function if exists f2_temp;
-drop event if exists e1;
-drop event if exists e2;
-create table t1_base(i int) engine=myisam;
-create table t2_base(j int) engine=myisam;
-create table t3_trans(i int) engine=innodb;
-create temporary table t1_temp(i int) engine=myisam;
-create temporary table t2_temp(j int) engine=myisam;
-create temporary table t3_temp_trans(i int) engine=innodb;
-create database mysqltest1;
-create database `#mysql50#mysqltest-2`;
-create procedure p1() begin end;
-create function f1() returns int return 0;
-create view v1 as select 1 as i;
-create procedure p2(i int) begin end;
-create function f2_base() returns int
-begin
-insert into t1_base values (1);
-return 0;
-end|
-create function f2_temp() returns int
-begin
-insert into t1_temp values (1);
-return 0;
-end|
-create event e1 on schedule every 1 minute do begin end;
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connect con3,localhost,root,,;
-connection default;
-#
-# Test compatibility of FLUSH TABLES WITH READ LOCK
-# with various statements.
-#
-# These tests don't cover some classes of statements:
-# - Replication-related - CHANGE MASTER TO, START/STOP SLAVE and etc
-# (all compatible with FTWRL).
-# - Plugin-related - INSTALL/UNINSTALL (incompatible with FTWRL,
-# require plugin support).
-#
-# 1) ALTER variants.
-#
-# 1.1) ALTER TABLE
-#
-# 1.1.a) For base table should be incompatible with FTWRL.
-#
-Success: Was not able to run 'alter table t1_base add column c1 int' under FTWRL.
-Success: 'alter table t1_base add column c1 int' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'alter table t1_base add column c1 int' is active in another connection.
-#
-# 1.1.b) For a temporary table should be compatible with FTWRL.
-#
-Success: Was able to run 'alter table t1_temp add column c1 int' under FTWRL.
-Success: Was able to run 'alter table t1_temp add column c1 int' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'alter table t1_temp add column c1 int' was active in another connection.
-#
-# 1.2) ALTER DATABASE should be incompatible with FTWRL.
-#
-Success: Was not able to run 'alter database mysqltest1 default character set utf8' under FTWRL.
-Success: 'alter database mysqltest1 default character set utf8' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'alter database mysqltest1 default character set utf8' is active in another connection.
-#
-# 1.3) ALTER DATABASE UPGRADE DATA DIRECTORY NAME should be
-# incompatible with FTWRL.
-#
-Success: Was not able to run 'alter database `#mysql50#mysqltest-2` upgrade data directory name' under FTWRL.
-Success: 'alter database `#mysql50#mysqltest-2` upgrade data directory name' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'alter database `#mysql50#mysqltest-2` upgrade data directory name' is active in another connection.
-#
-# 1.4) ALTER PROCEDURE should be incompatible with FTWRL.
-#
-Success: Was not able to run 'alter procedure p1 comment 'a'' under FTWRL.
-Success: 'alter procedure p1 comment 'a'' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'alter procedure p1 comment 'a'' is active in another connection.
-#
-# 1.5) ALTER FUNCTION should be incompatible with FTWRL.
-#
-Success: Was not able to run 'alter function f1 comment 'a'' under FTWRL.
-Success: 'alter function f1 comment 'a'' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'alter function f1 comment 'a'' is active in another connection.
-#
-# 1.6) ALTER VIEW should be incompatible with FTWRL.
-#
-Success: Was not able to run 'alter view v1 as select 2 as j' under FTWRL.
-Success: 'alter view v1 as select 2 as j' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'alter view v1 as select 2 as j' is active in another connection.
-#
-# 1.7) ALTER EVENT should be incompatible with FTWRL.
-#
-Success: Was not able to run 'alter event e1 comment 'test'' under FTWRL.
-Success: 'alter event e1 comment 'test'' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'alter event e1 comment 'test'' is active in another connection.
-#
-# 1.x) The rest of ALTER statements (ALTER TABLESPACE,
-# ALTER LOGFILE GROUP and ALTER SERVER) are too
-# special to be tested here.
-#
-#
-# 2) ANALYZE TABLE statement is compatible with FTWRL.
-# See Bug#43336 ANALYZE and OPTIMIZE do not honour
-# --read-only for a discussion why.
-#
-Success: Was able to run 'analyze table t1_base' under FTWRL.
-Success: Was able to run 'analyze table t1_base' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'analyze table t1_base' was active in another connection.
-#
-# 3) BEGIN, ROLLBACK and COMMIT statements.
-# BEGIN and ROLLBACK are compatible with FTWRL.
-# COMMIT is not.
-#
-# We need a special test for these statements as
-# FTWRL commits a transaction and because COMMIT
-# is handled in a special way.
-flush tables with read lock;
-begin;
-# ROLLBACK is allowed under FTWRL although there
-# no much sense in it. FTWRL commits any previous
-# changes and doesn't allows any DML after it.
-# So such a ROLLBACK is always a no-op.
-rollback;
-# Although COMMIT is incompatible with FTWRL in
-# other senses it is still allowed under FTWRL.
-# This fact relied upon by some versions of
-# innobackup tool.
-# Similarly to ROLLBACK it is a no-op in this situation.
-commit;
-unlock tables;
-# Check that BEGIN/ROLLBACK are not blocked and
-# COMMIT is blocked by active FTWRL in another
-# connection.
-#
-connection con1;
-flush tables with read lock;
-connection default;
-begin;
-connection con1;
-unlock tables;
-connection default;
-# Do some work so ROLLBACK is not a no-op.
-insert into t3_trans values (1);
-connection con1;
-flush tables with read lock;
-connection default;
-rollback;
-connection con1;
-unlock tables;
-connection default;
-begin;
-# Do some work so COMMIT is not a no-op.
-insert into t3_trans values (1);
-connection con1;
-flush tables with read lock;
-connection default;
-# Send:
-commit;
-connection con1;
-# Wait until COMMIT is blocked.
-unlock tables;
-connection default;
-# Reap COMMIT.
-delete from t3_trans;
-#
-# Check that COMMIT blocks FTWRL in another connection.
-begin;
-insert into t3_trans values (1);
-set debug_sync='RESET';
-set debug_sync='ha_commit_trans_after_acquire_commit_lock SIGNAL parked WAIT_FOR go';
-commit;
-connection con1;
-set debug_sync='now WAIT_FOR parked';
-flush tables with read lock;
-connection con2;
-# Wait until FTWRL is blocked.
-set debug_sync='now SIGNAL go';
-connection default;
-# Reap COMMIT.
-connection con1;
-# Reap FTWRL.
-unlock tables;
-connection default;
-delete from t3_trans;
-set debug_sync= "RESET";
-# We don't run similar test for BEGIN and ROLLBACK as
-# they release metadata locks in non-standard place.
-#
-# 4) BINLOG statement should be incompatible with FTWRL.
-#
-#
-# Provide format description BINLOG statement first.
-BINLOG '
-MfmqTA8BAAAAZwAAAGsAAAABAAQANS41LjctbTMtZGVidWctbG9nAAAAAAAAAAAAAAAAAAAAAAAA
-AAAAAAAAAAAAAAAAAAAx+apMEzgNAAgAEgAEBAQEEgAAVAAEGggAAAAICAgCAA==
-';
-# Now test compatibility for BINLOG statement which is
-# equivalent to INSERT INTO t1_base VALUES (1).
-# Skip last part of compatibility testing as this statement
-# releases metadata locks in non-standard place.
-Success: Was not able to run 'BINLOG '
-MfmqTBMBAAAALgAAAN0AAAAAACgAAAAAAAEABHRlc3QAB3QxX2Jhc2UAAQMAAQ==
-MfmqTBcBAAAAIgAAAP8AAAAAACgAAAAAAAEAAf/+AQAAAA==
-'' under FTWRL.
-Success: 'BINLOG '
-MfmqTBMBAAAALgAAAN0AAAAAACgAAAAAAAEABHRlc3QAB3QxX2Jhc2UAAQMAAQ==
-MfmqTBcBAAAAIgAAAP8AAAAAACgAAAAAAAEAAf/+AQAAAA==
-'' is blocked by FTWRL active in another connection.
-#
-# 5) CALL statement. This statement uses resources in two
-# ways: through expressions used as parameters and through
-# sub-statements. This test covers only usage through
-# parameters as sub-statements do locking individually.
-#
-# 5.a) In simple cases a parameter expression should be
-# compatible with FTWRL.
-# Skip last part of compatibility testing as this statement
-# releases metadata locks in non-standard place.
-Success: Was able to run 'call p2((select count(*) from t1_base))' under FTWRL.
-Success: Was able to run 'call p2((select count(*) from t1_base))' with FTWRL active in another connection.
-#
-# 5.b) In case when an expression uses function which updates
-# base tables CALL should be incompatible with FTWRL.
-#
-# Skip last part of compatibility testing as this statement
-# releases metadata locks in non-standard place.
-Success: Was not able to run 'call p2(f2_base())' under FTWRL.
-Success: 'call p2(f2_base())' is blocked by FTWRL active in another connection.
-#
-# 5.c) If function used as argument updates temporary tables
-# CALL statement should be compatible with FTWRL.
-#
-# Skip last part of compatibility testing as this statement
-# releases metadata locks in non-standard place.
-Success: Was able to run 'call p2(f2_temp())' under FTWRL.
-Success: Was able to run 'call p2(f2_temp())' with FTWRL active in another connection.
-#
-# 6) CHECK TABLE statement is compatible with FTWRL.
-#
-Success: Was able to run 'check table t1_base' under FTWRL.
-Success: Was able to run 'check table t1_base' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'check table t1_base' was active in another connection.
-#
-# 7) CHECKSUM TABLE statement is compatible with FTWRL.
-#
-Success: Was able to run 'checksum table t1_base' under FTWRL.
-Success: Was able to run 'checksum table t1_base' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'checksum table t1_base' was active in another connection.
-#
-# 8) CREATE variants.
-#
-# 8.1) CREATE TABLE statement.
-#
-# 8.1.a) CREATE TABLE is incompatible with FTWRL when
-# base table is created.
-Success: Was not able to run 'create table t3_base(i int)' under FTWRL.
-Success: 'create table t3_base(i int)' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'create table t3_base(i int)' is active in another connection.
-# 8.1.b) CREATE TABLE is compatible with FTWRL when
-# temporary table is created.
-Success: Was able to run 'create temporary table t3_temp(i int)' under FTWRL.
-Success: Was able to run 'create temporary table t3_temp(i int)' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'create temporary table t3_temp(i int)' was active in another connection.
-# 8.1.c) CREATE TABLE LIKE is incompatible with FTWRL when
-# base table is created.
-Success: Was not able to run 'create table t3_base like t1_temp' under FTWRL.
-Success: 'create table t3_base like t1_temp' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'create table t3_base like t1_temp' is active in another connection.
-# 8.1.d) CREATE TABLE LIKE is compatible with FTWRL when
-# temporary table is created.
-Success: Was able to run 'create temporary table t3_temp like t1_base' under FTWRL.
-Success: Was able to run 'create temporary table t3_temp like t1_base' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'create temporary table t3_temp like t1_base' was active in another connection.
-# 8.1.e) CREATE TABLE SELECT is incompatible with FTWRL when
-# base table is created.
-Success: Was not able to run 'create table t3_base select 1 as i' under FTWRL.
-Success: 'create table t3_base select 1 as i' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'create table t3_base select 1 as i' is active in another connection.
-# 8.1.f) CREATE TABLE SELECT is compatible with FTWRL when
-# temporary table is created.
-Success: Was able to run 'create temporary table t3_temp select 1 as i' under FTWRL.
-Success: Was able to run 'create temporary table t3_temp select 1 as i' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'create temporary table t3_temp select 1 as i' was active in another connection.
-# 8.2) CREATE INDEX statement.
-#
-# 8.2.a) CREATE INDEX is incompatible with FTWRL when
-# applied to base table.
-Success: Was not able to run 'create index i on t1_base (i)' under FTWRL.
-Success: 'create index i on t1_base (i)' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'create index i on t1_base (i)' is active in another connection.
-# 8.2.b) CREATE INDEX is compatible with FTWRL when
-# applied to temporary table.
-Success: Was able to run 'create index i on t1_temp (i)' under FTWRL.
-Success: Was able to run 'create index i on t1_temp (i)' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'create index i on t1_temp (i)' was active in another connection.
-#
-# 8.3) CREATE DATABASE is incompatible with FTWRL.
-#
-Success: Was not able to run 'create database mysqltest2' under FTWRL.
-Success: 'create database mysqltest2' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'create database mysqltest2' is active in another connection.
-#
-# 8.4) CREATE VIEW is incompatible with FTWRL.
-#
-Success: Was not able to run 'create view v2 as select 1 as j' under FTWRL.
-Success: 'create view v2 as select 1 as j' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'create view v2 as select 1 as j' is active in another connection.
-#
-# 8.5) CREATE TRIGGER is incompatible with FTWRL.
-#
-Success: Was not able to run 'create trigger t1_bi before insert on t1_base for each row begin end' under FTWRL.
-Success: 'create trigger t1_bi before insert on t1_base for each row begin end' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'create trigger t1_bi before insert on t1_base for each row begin end' is active in another connection.
-#
-# 8.6) CREATE FUNCTION is incompatible with FTWRL.
-#
-Success: Was not able to run 'create function f2() returns int return 0' under FTWRL.
-Success: 'create function f2() returns int return 0' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'create function f2() returns int return 0' is active in another connection.
-#
-# 8.7) CREATE PROCEDURE is incompatible with FTWRL.
-#
-Success: Was not able to run 'create procedure p3() begin end' under FTWRL.
-Success: 'create procedure p3() begin end' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'create procedure p3() begin end' is active in another connection.
-#
-# 8.8) CREATE EVENT should be incompatible with FTWRL.
-#
-Success: Was not able to run 'create event e2 on schedule every 1 minute do begin end' under FTWRL.
-Success: 'create event e2 on schedule every 1 minute do begin end' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'create event e2 on schedule every 1 minute do begin end' is active in another connection.
-#
-# 8.9) CREATE USER should be incompatible with FTWRL.
-#
-Success: Was not able to run 'create user mysqltest_u1' under FTWRL.
-Success: 'create user mysqltest_u1' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'create user mysqltest_u1' is active in another connection.
-#
-# 8.x) The rest of CREATE variants (CREATE LOGFILE GROUP,
-# CREATE TABLESPACE and CREATE SERVER) are too special
-# to test here.
-#
-#
-# 9) PREPARE, EXECUTE and DEALLOCATE PREPARE statements.
-#
-# 9.1) PREPARE statement is compatible with FTWRL as it
-# doesn't change any data.
-#
-# 9.1.a) Prepare of simple INSERT statement.
-#
-# Skip last part of compatibility testing as this statement
-# releases metadata locks in non-standard place.
-Success: Was able to run 'prepare stmt1 from 'insert into t1_base values (1)'' under FTWRL.
-Success: Was able to run 'prepare stmt1 from 'insert into t1_base values (1)'' with FTWRL active in another connection.
-#
-# 9.1.b) Prepare of multi-UPDATE. At some point such statements
-# tried to acquire thr_lock.c locks during prepare phase.
-# This no longer happens and thus it is compatible with
-# FTWRL.
-# Skip last part of compatibility testing as this statement
-# releases metadata locks in non-standard place.
-Success: Was able to run 'prepare stmt1 from 'update t1_base, t2_base set t1_base.i= 1 where t1_base.i = t2_base.j'' under FTWRL.
-Success: Was able to run 'prepare stmt1 from 'update t1_base, t2_base set t1_base.i= 1 where t1_base.i = t2_base.j'' with FTWRL active in another connection.
-#
-# 9.1.c) Prepare of multi-DELETE. Again PREPARE of such
-# statement should be compatible with FTWRL.
-# Skip last part of compatibility testing as this statement
-# releases metadata locks in non-standard place.
-Success: Was able to run 'prepare stmt1 from 'delete t1_base from t1_base, t2_base where t1_base.i = t2_base.j'' under FTWRL.
-Success: Was able to run 'prepare stmt1 from 'delete t1_base from t1_base, t2_base where t1_base.i = t2_base.j'' with FTWRL active in another connection.
-#
-# 9.2) Compatibility of EXECUTE statement depends on statement
-# to be executed.
-#
-# 9.2.a) EXECUTE for statement which is itself compatible with
-# FTWRL should be compatible.
-prepare stmt1 from 'select * from t1_base';
-Success: Was able to run 'execute stmt1' under FTWRL.
-Success: Was able to run 'execute stmt1' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'execute stmt1' was active in another connection.
-deallocate prepare stmt1;
-call mtr.add_suppression("Slave SQL.*Can.t execute the query because you have a conflicting read lock., error.* 1223");
-#
-# 9.2.b) EXECUTE for statement which is incompatible with FTWRL
-# should be also incompatible.
-#
-# Check that EXECUTE is not allowed under FTWRL.
-prepare stmt1 from 'insert into t1_base values (1)';
-flush tables with read lock;
-execute stmt1;
-ERROR HY000: Can't execute the query because you have a conflicting read lock
-unlock tables;
-# Check that active FTWRL in another connection
-# blocks EXECUTE which changes data.
-#
-connection con1;
-flush tables with read lock;
-connection default;
-execute stmt1 ;
-connection con1;
-# Check that EXECUTE is blocked.
-unlock tables;
-connection default;
-# Reap EXECUTE.
-set debug_sync='RESET';
-set debug_sync='execute_command_after_close_tables SIGNAL parked WAIT_FOR go';
-execute stmt1; ;
-connection con1;
-set debug_sync='now WAIT_FOR parked';
-flush tables with read lock;
-connection con2;
-# Wait until FTWRL is blocked.
-set debug_sync='now SIGNAL go';
-connection default;
-# Reap EXECUTE.
-connection con1;
-# Reap FTWRL.
-unlock tables;
-connection default;
-set debug_sync= "RESET";
-delete from t1_base;
-deallocate prepare stmt1;
-#
-# 9.3) DEALLOCATE PREPARE is compatible with FTWRL.
-#
-prepare stmt1 from 'insert into t1_base values (1)';
-Success: Was able to run 'deallocate prepare stmt1' under FTWRL.
-Success: Was able to run 'deallocate prepare stmt1' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'deallocate prepare stmt1' was active in another connection.
-deallocate prepare stmt1;
-#
-# 10) DELETE variations.
-#
-# 10.1) Simple DELETE.
-#
-# 10.1.a) Simple DELETE on base table is incompatible with FTWRL.
-Success: Was not able to run 'delete from t1_base' under FTWRL.
-Success: 'delete from t1_base' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'delete from t1_base' is active in another connection.
-#
-# 10.1.b) Simple DELETE on temporary table is compatible with FTWRL.
-Success: Was able to run 'delete from t1_temp' under FTWRL.
-Success: Was able to run 'delete from t1_temp' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'delete from t1_temp' was active in another connection.
-#
-# 10.2) Multi DELETE.
-#
-# 10.2.a) Multi DELETE on base tables is incompatible with FTWRL.
-Success: Was not able to run 'delete t1_base from t1_base, t2_base where t1_base.i = t2_base.j' under FTWRL.
-Success: 'delete t1_base from t1_base, t2_base where t1_base.i = t2_base.j' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'delete t1_base from t1_base, t2_base where t1_base.i = t2_base.j' is active in another connection.
-#
-# 10.2.b) Multi DELETE on temporary tables is compatible with FTWRL.
-Success: Was able to run 'delete t1_temp from t1_temp, t2_temp where t1_temp.i = t2_temp.j' under FTWRL.
-Success: Was able to run 'delete t1_temp from t1_temp, t2_temp where t1_temp.i = t2_temp.j' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'delete t1_temp from t1_temp, t2_temp where t1_temp.i = t2_temp.j' was active in another connection.
-#
-# 11) DESCRIBE should be compatible with FTWRL.
-#
-Success: Was able to run 'describe t1_base' under FTWRL.
-Success: Was able to run 'describe t1_base' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'describe t1_base' was active in another connection.
-#
-# 12) Compatibility of DO statement with FTWRL depends on its
-# expression.
-#
-# 12.a) DO with expression which does not change base table
-# should be compatible with FTWRL.
-Success: Was able to run 'do (select count(*) from t1_base)' under FTWRL.
-Success: Was able to run 'do (select count(*) from t1_base)' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'do (select count(*) from t1_base)' was active in another connection.
-#
-# 12.b) DO which calls SF updating base table should be
-# incompatible with FTWRL.
-Success: Was not able to run 'do f2_base()' under FTWRL.
-Success: 'do f2_base()' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'do f2_base()' is active in another connection.
-#
-# 12.c) DO which calls SF updating temporary table should be
-# compatible with FTWRL.
-Success: Was able to run 'do f2_temp()' under FTWRL.
-Success: Was able to run 'do f2_temp()' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'do f2_temp()' was active in another connection.
-#
-# 13) DROP variants.
-#
-# 13.1) DROP TABLES.
-#
-# 13.1.a) DROP TABLES which affects base tables is incompatible
-# with FTWRL.
-Success: Was not able to run 'drop table t2_base' under FTWRL.
-Success: 'drop table t2_base' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'drop table t2_base' is active in another connection.
-# 13.1.b) DROP TABLES which affects only temporary tables
-# is compatible with FTWRL.
-Success: Was able to run 'drop table t2_temp' under FTWRL.
-Success: Was able to run 'drop table t2_temp' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'drop table t2_temp' was active in another connection.
-#
-# 13.1.c) DROP TEMPORARY TABLES should be compatible with FTWRL.
-Success: Was able to run 'drop temporary table t2_temp' under FTWRL.
-Success: Was able to run 'drop temporary table t2_temp' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'drop temporary table t2_temp' was active in another connection.
-#
-# 13.2) DROP INDEX.
-#
-# 13.2.a) DROP INDEX on a base table is incompatible with FTWRL.
-create index i on t1_base (i);
-Success: Was not able to run 'drop index i on t1_base' under FTWRL.
-Success: 'drop index i on t1_base' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'drop index i on t1_base' is active in another connection.
-drop index i on t1_base;
-#
-# 13.2.b) DROP INDEX on a temporary table is compatible with FTWRL.
-create index i on t1_temp (i);
-Success: Was able to run 'drop index i on t1_temp' under FTWRL.
-Success: Was able to run 'drop index i on t1_temp' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'drop index i on t1_temp' was active in another connection.
-drop index i on t1_temp;
-#
-# 13.3) DROP DATABASE is incompatible with FTWRL
-#
-Success: Was not able to run 'drop database mysqltest1' under FTWRL.
-Success: 'drop database mysqltest1' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'drop database mysqltest1' is active in another connection.
-#
-# 13.4) DROP FUNCTION is incompatible with FTWRL.
-#
-Success: Was not able to run 'drop function f1' under FTWRL.
-Success: 'drop function f1' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'drop function f1' is active in another connection.
-#
-# 13.5) DROP PROCEDURE is incompatible with FTWRL.
-#
-Success: Was not able to run 'drop procedure p1' under FTWRL.
-Success: 'drop procedure p1' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'drop procedure p1' is active in another connection.
-#
-# 13.6) DROP USER should be incompatible with FTWRL.
-#
-create user mysqltest_u1;
-Success: Was not able to run 'drop user mysqltest_u1' under FTWRL.
-Success: 'drop user mysqltest_u1' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'drop user mysqltest_u1' is active in another connection.
-drop user mysqltest_u1;
-#
-# 13.7) DROP VIEW should be incompatible with FTWRL.
-#
-Success: Was not able to run 'drop view v1' under FTWRL.
-Success: 'drop view v1' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'drop view v1' is active in another connection.
-#
-# 13.8) DROP EVENT should be incompatible with FTWRL.
-#
-Success: Was not able to run 'drop event e1' under FTWRL.
-Success: 'drop event e1' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'drop event e1' is active in another connection.
-#
-# 13.9) DROP TRIGGER is incompatible with FTWRL.
-#
-create trigger t1_bi before insert on t1_base for each row begin end;
-Success: Was not able to run 'drop trigger t1_bi' under FTWRL.
-Success: 'drop trigger t1_bi' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'drop trigger t1_bi' is active in another connection.
-drop trigger t1_bi;
-#
-# 13.x) The rest of DROP variants (DROP TABLESPACE, DROP LOGFILE
-# GROUP and DROP SERVER) are too special to test here.
-#
-#
-# 14) FLUSH variants.
-#
-# Test compatibility of _some_ important FLUSH variants with FTWRL.
-#
-# 14.1) FLUSH TABLES WITH READ LOCK is compatible with itself.
-#
-# Check that FTWRL statements can be run while FTWRL
-# is active in another connection.
-#
-flush tables with read lock;
-# The second FTWRL in a row is allowed at the moment.
-# It does not make much sense as it does only flush.
-flush tables with read lock;
-unlock tables;
-connection con1;
-flush tables with read lock;
-connection default;
-flush tables with read lock;
-unlock tables;
-connection con1;
-unlock tables;
-connection default;
-#
-# 14.2) FLUSH TABLES <list> WITH READ LOCK is not blocked by
-# active FTWRL. But since the latter keeps tables open
-# FTWRL is blocked by FLUSH TABLES <list> WITH READ LOCK.
-flush tables with read lock;
-# FT <list> WRL is allowed under FTWRL at the moment.
-# It does not make much sense though.
-flush tables t1_base, t2_base with read lock;
-unlock tables;
-connection con1;
-flush tables with read lock;
-connection default;
-flush tables t1_base, t2_base with read lock;
-unlock tables;
-connection con1;
-unlock tables;
-connection default;
-flush tables t1_base, t2_base with read lock;
-connection con1;
-flush tables with read lock;
-connection con2;
-# Wait until FTWRL is blocked.
-connection default;
-unlock tables;
-connection con1;
-# Reap FTWRL.
-unlock tables;
-connection default;
-#
-# 14.3) FLUSH TABLES is compatible with FTWRL.
-Success: Was able to run 'flush tables' under FTWRL.
-Success: Was able to run 'flush tables' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'flush tables' was active in another connection.
-#
-# 14.4) FLUSH TABLES <list> is compatible with FTWRL.
-Success: Was able to run 'flush table t1_base, t2_base' under FTWRL.
-Success: Was able to run 'flush table t1_base, t2_base' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'flush table t1_base, t2_base' was active in another connection.
-#
-# 14.5) FLUSH PRIVILEGES is compatible with FTWRL.
-Success: Was able to run 'flush privileges' under FTWRL.
-Success: Was able to run 'flush privileges' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'flush privileges' was active in another connection.
-#
-# 15) GRANT statement should be incompatible with FTWRL.
-#
-Success: Was not able to run 'grant all privileges on t1_base to mysqltest_u1' under FTWRL.
-Success: 'grant all privileges on t1_base to mysqltest_u1' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'grant all privileges on t1_base to mysqltest_u1' is active in another connection.
-drop user mysqltest_u1;
-#
-# 16) All HANDLER variants are half-compatible with FTWRL.
-# I.e. they are not blocked by active FTWRL. But since open
-# HANDLER means open table instance FTWRL is blocked while
-# HANDLER is not closed.
-#
-# Check that HANDLER statements succeed under FTWRL.
-flush tables with read lock;
-handler t1_base open;
-handler t1_base read first;
-i
-handler t1_base close;
-unlock tables;
-# Check that HANDLER statements can be run while FTWRL
-# is active in another connection.
-#
-connection con1;
-flush tables with read lock;
-connection default;
-handler t1_base open;
-handler t1_base read first;
-i
-handler t1_base close;
-connection con1;
-unlock tables;
-connection default;
-#
-# 17) HELP statement is compatible with FTWRL.
-#
-Success: Was able to run 'help no_such_topic' under FTWRL.
-Success: Was able to run 'help no_such_topic' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'help no_such_topic' was active in another connection.
-#
-# 18) INSERT statement.
-#
-# 18.a) Ordinary INSERT into base table is incompatible with FTWRL.
-Success: Was not able to run 'insert into t1_base values (1)' under FTWRL.
-Success: 'insert into t1_base values (1)' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'insert into t1_base values (1)' is active in another connection.
-#
-# 18.b) Ordinary INSERT into temp table is compatible with FTWRL.
-Success: Was able to run 'insert into t1_temp values (1)' under FTWRL.
-Success: Was able to run 'insert into t1_temp values (1)' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'insert into t1_temp values (1)' was active in another connection.
-#
-# 18.c) INSERT DELAYED is incompatible with FTWRL.
-Success: Was not able to run 'insert delayed into t1_base values (1)' under FTWRL.
-Success: 'insert delayed into t1_base values (1)' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'insert delayed into t1_base values (1)' is active in another connection.
-delete from t1_base;
-#
-# 18.d) INSERT SELECT into base table is incompatible with FTWRL.
-Success: Was not able to run 'insert into t1_base select * from t1_temp' under FTWRL.
-Success: 'insert into t1_base select * from t1_temp' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'insert into t1_base select * from t1_temp' is active in another connection.
-#
-# 18.e) INSERT SELECT into temp table is compatible with FTWRL.
-Success: Was able to run 'insert into t1_temp select * from t1_base' under FTWRL.
-Success: Was able to run 'insert into t1_temp select * from t1_base' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'insert into t1_temp select * from t1_base' was active in another connection.
-#
-# 19) KILL statement is compatible with FTWRL.
-#
-# Check that KILL can be run under FTWRL.
-flush tables with read lock;
-set @id:= connection_id();
-kill query @id;
-ERROR 70100: Query execution was interrupted
-unlock tables;
-# Check that KILL statements can be run while FTWRL
-# is active in another connection.
-#
-connection con1;
-flush tables with read lock;
-connection default;
-kill query @id;
-ERROR 70100: Query execution was interrupted
-connection con1;
-unlock tables;
-connection default;
-# Finally check that KILL doesn't block FTWRL
-set debug_sync='RESET';
-set debug_sync='execute_command_after_close_tables SIGNAL parked WAIT_FOR go';
-kill query @id;
-connection con1;
-set debug_sync='now WAIT_FOR parked';
-flush tables with read lock;
-unlock tables;
-set debug_sync='now SIGNAL go';
-connection default;
-# Reap KILL.
-ERROR 70100: Query execution was interrupted
-set debug_sync='RESET';
-#
-# 20) LOAD DATA statement.
-#
-# 20.a) LOAD DATA into base table is incompatible with FTWRL.
-Success: Was not able to run 'load data infile '../../std_data/rpl_loaddata.dat' into table t1_base (@dummy, i)' under FTWRL.
-Success: 'load data infile '../../std_data/rpl_loaddata.dat' into table t1_base (@dummy, i)' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'load data infile '../../std_data/rpl_loaddata.dat' into table t1_base (@dummy, i)' is active in another connection.
-#
-# 20.b) LOAD DATA into temporary table is compatible with FTWRL.
-Success: Was able to run 'load data infile '../../std_data/rpl_loaddata.dat' into table t1_temp (@dummy, i)' under FTWRL.
-Success: Was able to run 'load data infile '../../std_data/rpl_loaddata.dat' into table t1_temp (@dummy, i)' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'load data infile '../../std_data/rpl_loaddata.dat' into table t1_temp (@dummy, i)' was active in another connection.
-#
-# 21) LOCK/UNLOCK TABLES statements.
-#
-# LOCK TABLES statement always (almost) blocks FTWRL as it
-# keeps tables open until UNLOCK TABLES.
-# Active FTWRL on the other hand blocks only those
-# LOCK TABLES which allow updating of base tables.
-#
-# 21.a) LOCK TABLES READ is allowed under FTWRL and
-# is not blocked by active FTWRL.
-flush tables with read lock;
-lock tables t1_base read;
-unlock tables;
-#
-connection con1;
-flush tables with read lock;
-connection default;
-lock tables t1_base read;
-unlock tables;
-connection con1;
-unlock tables;
-connection default;
-#
-# 21.b) LOCK TABLES WRITE on a base table is disallowed
-# under FTWRL and should be blocked by active FTWRL.
-flush tables with read lock;
-lock tables t1_base write;
-ERROR HY000: Can't execute the query because you have a conflicting read lock
-unlock tables;
-#
-connection con1;
-flush tables with read lock;
-connection default;
-lock tables t1_base write ;
-connection con1;
-# Check that LOCK TABLES WRITE is blocked.
-unlock tables;
-connection default;
-# Reap LOCK TABLES WRITE
-unlock tables;
-#
-# 21.c) LOCK TABLES WRITE on temporary table doesn't
-# make much sense but is allowed under FTWRL
-# and should not be blocked by active FTWRL.
-flush tables with read lock;
-lock tables t1_temp write;
-unlock tables;
-#
-connection con1;
-flush tables with read lock;
-connection default;
-lock tables t1_temp write;
-unlock tables;
-connection con1;
-unlock tables;
-connection default;
-#
-# 22) OPTIMIZE TABLE statement.
-#
-# 22.a) OPTIMIZE TABLE of base table is incompatible with FTWRL.
-flush tables with read lock;
-# OPTIMIZE statement returns errors as part of result-set.
-optimize table t1_base;
-Table Op Msg_type Msg_text
-test.t1_base optimize Error Can't execute the query because you have a conflicting read lock
-test.t1_base optimize error Corrupt
-unlock tables;
-#
-connection con1;
-flush tables with read lock;
-connection default;
-optimize table t1_base;
-connection con1;
-# Check that OPTIMIZE TABLE is blocked.
-unlock tables;
-connection default;
-# Reap OPTIMIZE TABLE
-Table Op Msg_type Msg_text
-test.t1_base optimize status OK
-# We don't check that active OPTIMIZE TABLE blocks
-# FTWRL as this one of statements releasing metadata
-# locks in non-standard place.
-#
-# 22.b) OPTIMIZE TABLE of temporary table is compatible with FTWRL.
-# Skip last part of compatibility testing as this statement
-# releases metadata locks in non-standard place.
-Success: Was able to run 'optimize table t1_temp' under FTWRL.
-Success: Was able to run 'optimize table t1_temp' with FTWRL active in another connection.
-#
-# 23) CACHE statement is compatible with FTWRL.
-#
-# Skip last part of compatibility testing as this statement
-# releases metadata locks in non-standard place.
-Success: Was able to run 'cache index t1_base in default' under FTWRL.
-Success: Was able to run 'cache index t1_base in default' with FTWRL active in another connection.
-#
-# 24) LOAD INDEX statement is compatible with FTWRL.
-#
-# Skip last part of compatibility testing as this statement
-# releases metadata locks in non-standard place.
-Success: Was able to run 'load index into cache t1_base' under FTWRL.
-Success: Was able to run 'load index into cache t1_base' with FTWRL active in another connection.
-#
-# 25) SAVEPOINT/RELEASE SAVEPOINT/ROLLBACK TO SAVEPOINT are
-# compatible with FTWRL.
-#
-# Since manipulations on savepoint have to be done
-# inside transaction and FTWRL commits transaction we
-# need a special test for these statements.
-flush tables with read lock;
-begin;
-savepoint sv1;
-rollback to savepoint sv1;
-release savepoint sv1;
-unlock tables;
-commit;
-# Check that these statements are not blocked by
-# active FTWRL in another connection.
-#
-connection con1;
-flush tables with read lock;
-connection default;
-begin;
-connection con1;
-unlock tables;
-connection default;
-# Do some changes to avoid SAVEPOINT and friends
-# being almost no-ops.
-insert into t3_trans values (1);
-connection con1;
-flush tables with read lock;
-connection default;
-savepoint sv1;
-connection con1;
-unlock tables;
-connection default;
-insert into t3_trans values (2);
-connection con1;
-flush tables with read lock;
-connection default;
-rollback to savepoint sv1;
-release savepoint sv1;
-connection con1;
-unlock tables;
-connection default;
-rollback;
-# Check that these statements don't block FTWRL in
-# another connection.
-begin;
-# Do some changes to avoid SAVEPOINT and friends
-# being almost no-ops.
-insert into t3_trans values (1);
-set debug_sync='RESET';
-set debug_sync='execute_command_after_close_tables SIGNAL parked WAIT_FOR go';
-savepoint sv1;
-connection con1;
-set debug_sync='now WAIT_FOR parked';
-flush tables with read lock;
-unlock tables;
-set debug_sync='now SIGNAL go';
-connection default;
-# Reap SAVEPOINT
-insert into t3_trans values (2);
-set debug_sync='execute_command_after_close_tables SIGNAL parked WAIT_FOR go';
-rollback to savepoint sv1;
-connection con1;
-set debug_sync='now WAIT_FOR parked';
-flush tables with read lock;
-unlock tables;
-set debug_sync='now SIGNAL go';
-connection default;
-# Reap ROLLBACK TO SAVEPOINT
-set debug_sync='execute_command_after_close_tables SIGNAL parked WAIT_FOR go';
-release savepoint sv1;
-connection con1;
-set debug_sync='now WAIT_FOR parked';
-flush tables with read lock;
-unlock tables;
-set debug_sync='now SIGNAL go';
-connection default;
-# Reap RELEASE SAVEPOINT
-rollback;
-set debug_sync= "RESET";
-#
-# 26) RENAME variants.
-#
-# 26.1) RENAME TABLES is incompatible with FTWRL.
-Success: Was not able to run 'rename table t1_base to t3_base' under FTWRL.
-Success: 'rename table t1_base to t3_base' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'rename table t1_base to t3_base' is active in another connection.
-#
-# 26.2) RENAME USER is incompatible with FTWRL.
-create user mysqltest_u1;
-Success: Was not able to run 'rename user mysqltest_u1 to mysqltest_u2' under FTWRL.
-Success: 'rename user mysqltest_u1 to mysqltest_u2' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'rename user mysqltest_u1 to mysqltest_u2' is active in another connection.
-drop user mysqltest_u1;
-#
-# 27) REPAIR TABLE statement.
-#
-# 27.a) REPAIR TABLE of base table is incompatible with FTWRL.
-flush tables with read lock;
-# REPAIR statement returns errors as part of result-set.
-repair table t1_base;
-Table Op Msg_type Msg_text
-test.t1_base repair Error Can't execute the query because you have a conflicting read lock
-test.t1_base repair error Corrupt
-unlock tables;
-#
-connection con1;
-flush tables with read lock;
-connection default;
-repair table t1_base;
-connection con1;
-# Check that REPAIR TABLE is blocked.
-unlock tables;
-connection default;
-# Reap REPAIR TABLE
-Table Op Msg_type Msg_text
-test.t1_base repair status OK
-# We don't check that active REPAIR TABLE blocks
-# FTWRL as this one of statements releasing metadata
-# locks in non-standard place.
-#
-# 27.b) REPAIR TABLE of temporary table is compatible with FTWRL.
-# Skip last part of compatibility testing as this statement
-# releases metadata locks in non-standard place.
-Success: Was able to run 'repair table t1_temp' under FTWRL.
-Success: Was able to run 'repair table t1_temp' with FTWRL active in another connection.
-#
-# 28) REPLACE statement.
-#
-# 28.a) Ordinary REPLACE into base table is incompatible with FTWRL.
-Success: Was not able to run 'replace into t1_base values (1)' under FTWRL.
-Success: 'replace into t1_base values (1)' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'replace into t1_base values (1)' is active in another connection.
-#
-# 28.b) Ordinary REPLACE into temp table is compatible with FTWRL.
-Success: Was able to run 'replace into t1_temp values (1)' under FTWRL.
-Success: Was able to run 'replace into t1_temp values (1)' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'replace into t1_temp values (1)' was active in another connection.
-#
-# 28.c) REPLACE SELECT into base table is incompatible with FTWRL.
-Success: Was not able to run 'replace into t1_base select * from t1_temp' under FTWRL.
-Success: 'replace into t1_base select * from t1_temp' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'replace into t1_base select * from t1_temp' is active in another connection.
-#
-# 28.d) REPLACE SELECT into temp table is compatible with FTWRL.
-Success: Was able to run 'replace into t1_temp select * from t1_base' under FTWRL.
-Success: Was able to run 'replace into t1_temp select * from t1_base' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'replace into t1_temp select * from t1_base' was active in another connection.
-#
-# 29) REVOKE variants.
-#
-# 29.1) REVOKE privileges is incompatible with FTWRL.
-grant all privileges on t1_base to mysqltest_u1;
-Success: Was not able to run 'revoke all privileges on t1_base from mysqltest_u1' under FTWRL.
-Success: 'revoke all privileges on t1_base from mysqltest_u1' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'revoke all privileges on t1_base from mysqltest_u1' is active in another connection.
-#
-# 29.2) REVOKE ALL PRIVILEGES, GRANT OPTION is incompatible with FTWRL.
-Success: Was not able to run 'revoke all privileges, grant option from mysqltest_u1' under FTWRL.
-Success: 'revoke all privileges, grant option from mysqltest_u1' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'revoke all privileges, grant option from mysqltest_u1' is active in another connection.
-drop user mysqltest_u1;
-#
-# 30) Compatibility of SELECT statement with FTWRL depends on
-# locking mode used and on functions being invoked by it.
-#
-# 30.a) Simple SELECT which does not change tables should be
-# compatible with FTWRL.
-Success: Was able to run 'select count(*) from t1_base' under FTWRL.
-Success: Was able to run 'select count(*) from t1_base' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'select count(*) from t1_base' was active in another connection.
-# 30.b) SELECT ... FOR UPDATE is incompatible with FTWRL.
-Success: Was not able to run 'select count(*) from t1_base for update' under FTWRL.
-Success: 'select count(*) from t1_base for update' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'select count(*) from t1_base for update' is active in another connection.
-# 30.c) SELECT ... LOCK IN SHARE MODE is compatible with FTWRL.
-Success: Was able to run 'select count(*) from t1_base lock in share mode' under FTWRL.
-Success: Was able to run 'select count(*) from t1_base lock in share mode' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'select count(*) from t1_base lock in share mode' was active in another connection.
-#
-# 30.d) SELECT which calls SF updating base table should be
-# incompatible with FTWRL.
-Success: Was not able to run 'select f2_base()' under FTWRL.
-Success: 'select f2_base()' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'select f2_base()' is active in another connection.
-#
-# 30.e) SELECT which calls SF updating temporary table should be
-# compatible with FTWRL.
-Success: Was able to run 'select f2_temp()' under FTWRL.
-Success: Was able to run 'select f2_temp()' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'select f2_temp()' was active in another connection.
-#
-# 31) Compatibility of SET statement with FTWRL depends on its
-# expression and on whether it is a special SET statement.
-#
-# 31.a) Ordinary SET with expression which does not
-# changes base table should be compatible with FTWRL.
-# Skip last part of compatibility testing as our helper debug
-# sync-point doesn't work for SET statements.
-Success: Was able to run 'set @a:= (select count(*) from t1_base)' under FTWRL.
-Success: Was able to run 'set @a:= (select count(*) from t1_base)' with FTWRL active in another connection.
-#
-# 31.b) Ordinary SET which calls SF updating base table should
-# be incompatible with FTWRL.
-# Skip last part of compatibility testing as our helper debug
-# sync-point doesn't work for SET statements.
-Success: Was not able to run 'set @a:= f2_base()' under FTWRL.
-Success: 'set @a:= f2_base()' is blocked by FTWRL active in another connection.
-#
-# 31.c) Ordinary SET which calls SF updating temporary table
-# should be compatible with FTWRL.
-# Skip last part of compatibility testing as our helper debug
-# sync-point doesn't work for SET statements.
-Success: Was able to run 'set @a:= f2_temp()' under FTWRL.
-Success: Was able to run 'set @a:= f2_temp()' with FTWRL active in another connection.
-#
-# 31.d) Special SET variants have different compatibility with FTWRL.
-#
-# 31.d.I) SET PASSWORD is incompatible with FTWRL as it changes data.
-create user mysqltest_u1;
-# Skip last part of compatibility testing as our helper debug
-# sync-point doesn't work for SET statements.
-Success: Was not able to run 'set password for 'mysqltest_u1' = password('')' under FTWRL.
-Success: 'set password for 'mysqltest_u1' = password('')' is blocked by FTWRL active in another connection.
-drop user mysqltest_u1;
-#
-# 31.d.II) SET READ_ONLY is compatible with FTWRL (but has no
-# effect when executed under it).
-# Skip last part of compatibility testing as our helper debug
-# sync-point doesn't work for SET statements.
-Success: Was able to run 'set global read_only= 1' under FTWRL.
-Success: Was able to run 'set global read_only= 1' with FTWRL active in another connection.
-#
-# 31.d.III) Situation with SET AUTOCOMMIT is complex.
-# Turning auto-commit off is always compatible with FTWRL.
-# Turning auto-commit on causes implicit commit and so
-# is incompatible with FTWRL if there are changes to be
-# committed.
-flush tables with read lock;
-set autocommit= 0;
-# Turning auto-commit on causes implicit commit so can
-# be incompatible with FTWRL if there is something to
-# commit. But since even in this case we allow commits
-# under active FTWRL such statement should always succeed.
-insert into t3_temp_trans values (1);
-set autocommit= 1;
-unlock tables;
-delete from t3_temp_trans;
-# Check that SET AUTOCOMMIT=0 is not blocked and
-# SET AUTOCOMMIT=1 is blocked by active FTWRL in
-# another connection.
-#
-connection con1;
-flush tables with read lock;
-connection default;
-set autocommit= 0;
-connection con1;
-unlock tables;
-connection default;
-# Do some work so implicit commit in SET AUTOCOMMIT=1
-# is not a no-op.
-insert into t3_trans values (1);
-connection con1;
-flush tables with read lock;
-connection default;
-# Send:
-set autocommit= 1;
-connection con1;
-# Wait until SET AUTOCOMMIT=1 is blocked.
-unlock tables;
-connection default;
-# Reap SET AUTOCOMMIT=1.
-delete from t3_trans;
-#
-# Check that SET AUTOCOMMIT=1 blocks FTWRL in another connection.
-set autocommit= 0;
-insert into t3_trans values (1);
-set debug_sync='RESET';
-set debug_sync='ha_commit_trans_after_acquire_commit_lock SIGNAL parked WAIT_FOR go';
-set autocommit= 1;
-connection con1;
-set debug_sync='now WAIT_FOR parked';
-flush tables with read lock;
-connection con2;
-# Wait until FTWRL is blocked.
-set debug_sync='now SIGNAL go';
-connection default;
-# Reap SET AUTOCOMMIT=1.
-connection con1;
-# Reap FTWRL.
-unlock tables;
-connection default;
-delete from t3_trans;
-set debug_sync= "RESET";
-#
-# 32) SHOW statements are compatible with FTWRL.
-# Let us test _some_ of them.
-#
-# 32.1) SHOW TABLES.
-Success: Was able to run 'show tables from test' under FTWRL.
-Success: Was able to run 'show tables from test' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'show tables from test' was active in another connection.
-#
-# 32.1) SHOW TABLES.
-Success: Was able to run 'show tables from test' under FTWRL.
-Success: Was able to run 'show tables from test' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'show tables from test' was active in another connection.
-#
-# 32.2) SHOW EVENTS.
-Success: Was able to run 'show events from test' under FTWRL.
-Success: Was able to run 'show events from test' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'show events from test' was active in another connection.
-#
-# 32.3) SHOW GRANTS.
-create user mysqltest_u1;
-Success: Was able to run 'show grants for mysqltest_u1' under FTWRL.
-Success: Was able to run 'show grants for mysqltest_u1' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'show grants for mysqltest_u1' was active in another connection.
-drop user mysqltest_u1;
-#
-# 32.4) SHOW CREATE TABLE.
-Success: Was able to run 'show create table t1_base' under FTWRL.
-Success: Was able to run 'show create table t1_base' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'show create table t1_base' was active in another connection.
-#
-# 32.5) SHOW CREATE FUNCTION.
-Success: Was able to run 'show create function f1' under FTWRL.
-Success: Was able to run 'show create function f1' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'show create function f1' was active in another connection.
-#
-# 33) SIGNAL statement is compatible with FTWRL.
-#
-# Note that we don't cover RESIGNAL as it requires
-# active handler context.
-Success: Was able to run 'signal sqlstate '01000'' under FTWRL.
-Success: Was able to run 'signal sqlstate '01000'' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'signal sqlstate '01000'' was active in another connection.
-#
-# 34) TRUNCATE TABLE statement.
-#
-# 34.a) TRUNCATE of base table is incompatible with FTWRL.
-Success: Was not able to run 'truncate table t1_base' under FTWRL.
-Success: 'truncate table t1_base' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'truncate table t1_base' is active in another connection.
-#
-# 34.b) TRUNCATE of temporary table is compatible with FTWRL.
-Success: Was able to run 'truncate table t1_temp' under FTWRL.
-Success: Was able to run 'truncate table t1_temp' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'truncate table t1_temp' was active in another connection.
-#
-# 35) UPDATE variants.
-#
-# 35.1) Simple UPDATE.
-#
-# 35.1.a) Simple UPDATE on base table is incompatible with FTWRL.
-Success: Was not able to run 'update t1_base set i= 1 where i = 0' under FTWRL.
-Success: 'update t1_base set i= 1 where i = 0' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'update t1_base set i= 1 where i = 0' is active in another connection.
-#
-# 35.1.b) Simple UPDATE on temporary table is compatible with FTWRL.
-Success: Was able to run 'update t1_temp set i= 1 where i = 0' under FTWRL.
-Success: Was able to run 'update t1_temp set i= 1 where i = 0' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'update t1_temp set i= 1 where i = 0' was active in another connection.
-#
-# 35.2) Multi UPDATE.
-#
-# 35.2.a) Multi UPDATE on base tables is incompatible with FTWRL.
-Success: Was not able to run 'update t1_base, t2_base set t1_base.i= 1 where t1_base.i = t2_base.j' under FTWRL.
-Success: 'update t1_base, t2_base set t1_base.i= 1 where t1_base.i = t2_base.j' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'update t1_base, t2_base set t1_base.i= 1 where t1_base.i = t2_base.j' is active in another connection.
-#
-# 35.2.b) Multi UPDATE on temporary tables is compatible with FTWRL.
-Success: Was able to run 'update t1_temp, t2_temp set t1_temp.i= 1 where t1_temp.i = t2_temp.j' under FTWRL.
-Success: Was able to run 'update t1_temp, t2_temp set t1_temp.i= 1 where t1_temp.i = t2_temp.j' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'update t1_temp, t2_temp set t1_temp.i= 1 where t1_temp.i = t2_temp.j' was active in another connection.
-#
-# 36) USE statement is compatible with FTWRL.
-#
-Success: Was able to run 'use mysqltest1' under FTWRL.
-Success: Was able to run 'use mysqltest1' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'use mysqltest1' was active in another connection.
-#
-# 37) XA statements.
-#
-# XA statements are similar to BEGIN/COMMIT/ROLLBACK.
-#
-# XA BEGIN, END, PREPARE, ROLLBACK and RECOVER are compatible
-# with FTWRL. XA COMMIT is not.
-flush tables with read lock;
-# Although all below statements are allowed under FTWRL they
-# are almost no-ops as FTWRL does commit and does not allows
-# any non-temporary DML under it.
-xa start 'test1';
-xa end 'test1';
-xa prepare 'test1';
-xa rollback 'test1';
-xa start 'test1';
-xa end 'test1';
-xa prepare 'test1';
-xa commit 'test1';
-xa recover;
-unlock tables;
-# Check that XA non-COMMIT statements are not and COMMIT is
-# blocked by active FTWRL in another connection
-#
-connection con1;
-flush tables with read lock;
-connection default;
-xa start 'test1';
-connection con1;
-unlock tables;
-connection default;
-insert into t3_trans values (1);
-connection con1;
-flush tables with read lock;
-connection default;
-xa end 'test1';
-xa prepare 'test1';
-xa rollback 'test1';
-connection con1;
-unlock tables;
-connection default;
-xa start 'test1';
-insert into t3_trans values (1);
-connection con1;
-flush tables with read lock;
-connection default;
-connection default;
-xa end 'test1';
-xa prepare 'test1';
-# Send:
-xa commit 'test1';;
-connection con1;
-# Wait until XA COMMIT is blocked.
-unlock tables;
-connection default;
-# Reap XA COMMIT.
-delete from t3_trans;
-#
-# Check that XA COMMIT blocks FTWRL in another connection.
-xa start 'test1';
-insert into t3_trans values (1);
-xa end 'test1';
-xa prepare 'test1';
-set debug_sync='RESET';
-set debug_sync='trans_xa_commit_after_acquire_commit_lock SIGNAL parked WAIT_FOR go';
-xa commit 'test1';
-connection con1;
-set debug_sync='now WAIT_FOR parked';
-flush tables with read lock;
-connection con2;
-# Wait until FTWRL is blocked.
-set debug_sync='now SIGNAL go';
-connection default;
-# Reap XA COMMIT.
-connection con1;
-# Reap FTWRL.
-unlock tables;
-connection default;
-delete from t3_trans;
-set debug_sync= "RESET";
-#
-# 38) Test effect of auto-commit mode for DML on transactional
-# temporary tables.
-#
-# 38.1) When auto-commit is on each such a statement ends with commit
-# of changes to temporary tables. But since transactions doing
-# such changes are considered read only [sic!/QQ] this commit
-# is compatible with FTWRL.
-#
-# Let us demostrate this fact for some common DML statements.
-Success: Was able to run 'delete from t3_temp_trans' under FTWRL.
-Success: Was able to run 'delete from t3_temp_trans' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'delete from t3_temp_trans' was active in another connection.
-Success: Was able to run 'insert into t3_temp_trans values (1)' under FTWRL.
-Success: Was able to run 'insert into t3_temp_trans values (1)' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'insert into t3_temp_trans values (1)' was active in another connection.
-Success: Was able to run 'update t3_temp_trans, t2_temp set t3_temp_trans.i= 1 where t3_temp_trans.i = t2_temp.j' under FTWRL.
-Success: Was able to run 'update t3_temp_trans, t2_temp set t3_temp_trans.i= 1 where t3_temp_trans.i = t2_temp.j' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'update t3_temp_trans, t2_temp set t3_temp_trans.i= 1 where t3_temp_trans.i = t2_temp.j' was active in another connection.
-#
-# 38.2) When auto-commit is off DML on transaction temporary tables
-# is compatible with FTWRL.
-#
-set autocommit= 0;
-Success: Was able to run 'delete from t3_temp_trans' under FTWRL.
-Success: Was able to run 'delete from t3_temp_trans' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'delete from t3_temp_trans' was active in another connection.
-Success: Was able to run 'insert into t3_temp_trans values (1)' under FTWRL.
-Success: Was able to run 'insert into t3_temp_trans values (1)' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'insert into t3_temp_trans values (1)' was active in another connection.
-Success: Was able to run 'update t3_temp_trans, t2_temp set t3_temp_trans.i= 1 where t3_temp_trans.i = t2_temp.j' under FTWRL.
-Success: Was able to run 'update t3_temp_trans, t2_temp set t3_temp_trans.i= 1 where t3_temp_trans.i = t2_temp.j' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'update t3_temp_trans, t2_temp set t3_temp_trans.i= 1 where t3_temp_trans.i = t2_temp.j' was active in another connection.
-set autocommit= 1;
-#
-# 39) Test effect of DDL on transactional tables.
-#
-# 39.1) Due to implicit commit at the end of statement some of DDL
-# statements which are compatible with FTWRL in non-transactional
-# case are not compatible in case of transactional tables.
-#
-# 39.1.a) ANALYZE TABLE for transactional table is incompatible with
-# FTWRL.
-flush tables with read lock;
-# Implicit commits are allowed under FTWRL.
-analyze table t3_trans;
-Table Op Msg_type Msg_text
-test.t3_trans analyze status OK
-unlock tables;
-#
-connection con1;
-flush tables with read lock;
-connection default;
-analyze table t3_trans;
-connection con1;
-# Check that ANALYZE TABLE is blocked.
-unlock tables;
-connection default;
-# Reap ANALYZE TABLE
-Table Op Msg_type Msg_text
-test.t3_trans analyze status OK
-#
-# 39.1.b) CHECK TABLE for transactional table is compatible with FTWRL.
-# Although it does implicit commit at the end of statement it
-# is considered to be read-only operation.
-# Skip last part of compatibility testing as this statement
-# releases metadata locks in non-standard place.
-Success: Was able to run 'check table t3_trans' under FTWRL.
-Success: Was able to run 'check table t3_trans' with FTWRL active in another connection.
-#
-# 39.2) Situation with DDL on temporary transactional tables is
-# complex.
-#
-# 39.2.a) Some statements compatible with FTWRL since they don't
-# do implicit commit.
-#
-# For example, CREATE TEMPORARY TABLE:
-Success: Was able to run 'create temporary table t4_temp_trans(i int) engine=innodb' under FTWRL.
-Success: Was able to run 'create temporary table t4_temp_trans(i int) engine=innodb' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'create temporary table t4_temp_trans(i int) engine=innodb' was active in another connection.
-#
-# Or DROP TEMPORARY TABLE:
-Success: Was able to run 'drop temporary tables t3_temp_trans' under FTWRL.
-Success: Was able to run 'drop temporary tables t3_temp_trans' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'drop temporary tables t3_temp_trans' was active in another connection.
-#
-# 39.2.b) Some statements do implicit commit but are considered
-# read-only and so are compatible with FTWRL.
-#
-# For example, REPAIR TABLE:
-Success: Was able to run 'repair table t3_temp_trans' under FTWRL.
-Success: Was able to run 'repair table t3_temp_trans' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'repair table t3_temp_trans' was active in another connection.
-#
-# And ANALYZE TABLE:
-Success: Was able to run 'analyze table t3_temp_trans' under FTWRL.
-Success: Was able to run 'analyze table t3_temp_trans' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'analyze table t3_temp_trans' was active in another connection.
-#
-# And ALTER TABLE:
-Success: Was able to run 'alter table t3_temp_trans add column c1 int' under FTWRL.
-Success: Was able to run 'alter table t3_temp_trans add column c1 int' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'alter table t3_temp_trans add column c1 int' was active in another connection.
-#
-# 40) Test effect of implicit commit for DDL which is otherwise
-# compatible with FTWRL. Implicit commit at the start of DDL
-# statement can make it incompatible with FTWRL if there are
-# some changes to be commited even in case when DDL statement
-# itself is compatible with FTWRL.
-#
-# For example CHECK TABLE for base non-transactional tables and
-# ALTER TABLE for temporary non-transactional tables are affected.
-begin;
-insert into t3_trans values (1);
-#
-connection con1;
-flush tables with read lock;
-connection default;
-check table t1_base;
-connection con1;
-# Check that CHECK TABLE is blocked.
-unlock tables;
-connection default;
-# Reap CHECK TABLE
-Table Op Msg_type Msg_text
-test.t1_base check status OK
-begin;
-delete from t3_trans;
-#
-connection con1;
-flush tables with read lock;
-connection default;
-alter table t1_temp add column c1 int;
-connection con1;
-# Check that ALTER TABLE is blocked.
-unlock tables;
-connection default;
-# Reap ALTER TABLE
-alter table t1_temp drop column c1;
-#
-# Check that FLUSH TABLES WITH READ LOCK is blocked by individual
-# statements and is not blocked in the presence of transaction which
-# has done some changes earlier but is idle now (or does only reads).
-# This allows to use this statement even on systems which has long
-# running transactions.
-#
-begin;
-insert into t1_base values (1);
-insert into t3_trans values (1);
-connection con1;
-# The below FTWRL should not be blocked by transaction in 'default'.
-flush tables with read lock;
-connection default;
-# Transaction still is able to read even with FTWRL active in another
-# connection.
-select * from t1_base;
-i
-1
-select * from t2_base;
-j
-select * from t3_trans;
-i
-1
-connection con1;
-unlock tables;
-connection default;
-commit;
-delete from t1_base;
-delete from t3_trans;
-#
-# Check that impending FTWRL blocks new DML statements and
-# so can't be starved by a constant flow of DML.
-# (a.k.a. test for bug #54673 "It takes too long to get
-# readlock for 'FLUSH TABLES WITH READ LOCK'").
-#
-set debug_sync='RESET';
-set debug_sync='execute_command_after_close_tables SIGNAL parked WAIT_FOR go';
-insert into t1_base values (1);
-connection con1;
-set debug_sync='now WAIT_FOR parked';
-flush tables with read lock;
-connection con2;
-# Wait until FTWRL is blocked.
-# Try to run another INSERT and see that it is blocked.
-insert into t2_base values (1);;
-connection con3;
-# Wait until new INSERT is blocked.
-# Unblock INSERT in the first connection.
-set debug_sync='now SIGNAL go';
-connection default;
-# Reap first INSERT.
-connection con1;
-# Reap FTWRL.
-unlock tables;
-connection con2;
-# Reap second INSERT.
-connection default;
-set debug_sync= "RESET";
-delete from t1_base;
-delete from t2_base;
-
-# Check that COMMIT thas is issued after
-# FLUSH TABLES WITH READ LOCK is not blocked by
-# FLUSH TABLES WITH READ LOCK from another connection.
-# This scenario is used in innobackup.pl. The COMMIT goes
-# through because the transaction started by FTWRL does
-# not modify any tables, and the commit blocker lock is
-# only taken when there were such modifications.
-
-flush tables with read lock;
-connection con1;
-# The below FTWRL should not be blocked by transaction in 'default'.
-flush tables with read lock;
-connection default;
-select * from t1_base;
-i
-select * from t3_trans;
-i
-commit;
-connection con1;
-select * from t1_base;
-i
-select * from t3_trans;
-i
-commit;
-unlock tables;
-connection default;
-unlock tables;
-#
-# Check how FLUSH TABLE WITH READ LOCK is handled for MERGE tables.
-# As usual there are tricky cases related to this type of tables.
-#
-#
-# 1) Most typical case - base MERGE table with base underlying tables.
-#
-# 1.a) DML statements which change data should be incompatible with FTWRL.
-create table tm_base (i int) engine=merge union=(t1_base) insert_method=last;
-Success: Was not able to run 'insert into tm_base values (1)' under FTWRL.
-Success: 'insert into tm_base values (1)' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'insert into tm_base values (1)' is active in another connection.
-#
-# 1.b) DDL statement on such table should be incompatible with FTWRL as well.
-Success: Was not able to run 'alter table tm_base insert_method=first' under FTWRL.
-Success: 'alter table tm_base insert_method=first' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'alter table tm_base insert_method=first' is active in another connection.
-drop table tm_base;
-#
-# 2) Temporary MERGE table with base underlying tables.
-#
-# 2.a) DML statements which change data should be incompatible with FTWRL
-# as they affect base tables.
-create temporary table tm_temp_base (i int) engine=merge union=(t1_base) insert_method=last;
-Success: Was not able to run 'insert into tm_temp_base values (1)' under FTWRL.
-Success: 'insert into tm_temp_base values (1)' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'insert into tm_temp_base values (1)' is active in another connection.
-#
-# 2.b) Some of DDL statements on such table can be compatible with FTWRL
-# as they don't affect base tables.
-Success: Was able to run 'drop temporary tables tm_temp_base' under FTWRL.
-Success: Was able to run 'drop temporary tables tm_temp_base' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'drop temporary tables tm_temp_base' was active in another connection.
-#
-# 2.c) ALTER statement is incompatible with FTWRL. Even though it does
-# not change data in base table it still acquires strong metadata
-# locks on them.
-Success: Was not able to run 'alter table tm_temp_base insert_method=first' under FTWRL.
-Success: 'alter table tm_temp_base insert_method=first' is blocked by FTWRL active in another connection.
-Success: FTWRL is blocked when 'alter table tm_temp_base insert_method=first' is active in another connection.
-drop table tm_temp_base;
-#
-# 3) Temporary MERGE table with temporary underlying tables.
-#
-# 3.a) DML statements should be compatible with FTWRL as
-# no base table is going to be affected.
-create temporary table tm_temp_temp (i int) engine=merge union=(t1_temp) insert_method=last;
-Success: Was able to run 'insert into tm_temp_temp values (1)' under FTWRL.
-Success: Was able to run 'insert into tm_temp_temp values (1)' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'insert into tm_temp_temp values (1)' was active in another connection.
-#
-# 3.b) DDL statements should be compatible with FTWRL as well
-# as no base table is going to be affected too.
-Success: Was able to run 'alter table tm_temp_temp union=(t1_temp) insert_method=first' under FTWRL.
-Success: Was able to run 'alter table tm_temp_temp union=(t1_temp) insert_method=first' with FTWRL active in another connection.
-Success: Was able to run FTWRL while 'alter table tm_temp_temp union=(t1_temp) insert_method=first' was active in another connection.
-drop table tm_temp_temp;
-#
-# 4) For the sake of completeness let us check that base MERGE tables
-# with temporary underlying tables are not functional.
-create table tm_base_temp (i int) engine=merge union=(t1_temp) insert_method=last;
-select * from tm_base_temp;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-drop table tm_base_temp;
-#
-# Clean-up.
-#
-drop event e1;
-drop function f2_temp;
-drop function f2_base;
-drop procedure p2;
-drop view v1;
-drop function f1;
-drop procedure p1;
-drop database `#mysql50#mysqltest-2`;
-drop database mysqltest1;
-drop temporary tables t1_temp, t2_temp;
-drop tables t1_base, t2_base, t3_trans;
-disconnect con1;
-disconnect con2;
-disconnect con3;
-set global sql_mode=default;
diff --git a/mysql-test/r/flush_read_lock_kill.result b/mysql-test/r/flush_read_lock_kill.result
deleted file mode 100644
index 05836b04524..00000000000
--- a/mysql-test/r/flush_read_lock_kill.result
+++ /dev/null
@@ -1,42 +0,0 @@
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection con1;
-DROP TABLE IF EXISTS t1;
-SET DEBUG_SYNC= 'RESET';
-CREATE TABLE t1 (kill_id INT) engine = InnoDB;
-INSERT INTO t1 VALUES(connection_id());
-connection default;
-# Start transaction.
-BEGIN;
-INSERT INTO t1 VALUES(connection_id());
-# Ensure that COMMIT will pause once it acquires protection
-# against its global read lock.
-SET DEBUG_SYNC='ha_commit_trans_after_acquire_commit_lock SIGNAL acquired WAIT_FOR go';
-# Sending:
-COMMIT;
-connection con1;
-# Wait till COMMIT acquires protection against global read
-# lock and pauses.
-SET DEBUG_SYNC='now WAIT_FOR acquired';
-# Sending:
-FLUSH TABLES WITH READ LOCK;
-connection con2;
-SELECT ((@id := kill_id) - kill_id) FROM t1 LIMIT 1;
-((@id := kill_id) - kill_id)
-0
-# Wait till FLUSH TABLES WITH READ LOCK blocks due
-# to active COMMIT
-# Kill connection 'con1'.
-KILL CONNECTION @id;
-connection con1;
-# Try to reap FLUSH TABLES WITH READ LOCK,
-# it fail due to killed statement and connection.
-Got one of the listed errors
-connection con2;
-# Resume COMMIT.
-SET DEBUG_SYNC='now SIGNAL go';
-connection default;
-# Reaping COMMIT.
-disconnect con2;
-DROP TABLE t1;
-SET DEBUG_SYNC= 'RESET';
diff --git a/mysql-test/r/flush_table.result b/mysql-test/r/flush_table.result
deleted file mode 100644
index c56d63bd849..00000000000
--- a/mysql-test/r/flush_table.result
+++ /dev/null
@@ -1,140 +0,0 @@
-drop table if exists t1,t2;
-create table t1 (a int not null auto_increment primary key);
-insert into t1 values(0);
-lock table t1 read;
-flush table t1;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-unlock tables;
-lock table t1 write;
-flush table t1;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-unlock tables;
-lock table t1 write;
-connect locker,localhost,root,,test;
-connection locker;
-lock table t1 read;
-connection default;
-flush table t1;
-select * from t1;
-a
-1
-unlock tables;
-connection locker;
-unlock tables;
-connection default;
-lock table t1 write;
-connection locker;
-lock table t1 write;
-connection default;
-flush table t1;
-select * from t1;
-a
-1
-unlock tables;
-connection locker;
-unlock tables;
-select * from t1;
-a
-1
-connection default;
-drop table t1;
-disconnect locker;
-create table t1(table_id char(20) primary key);
-create table t2(table_id char(20) primary key);
-insert into t1 values ('test.t1');
-insert into t1 values ('');
-insert into t2 values ('test.t2');
-insert into t2 values ('');
-handler t1 open as a1;
-handler t1 open as a2;
-handler t2 open;
-handler a1 read first limit 9;
-table_id
-test.t1
-
-handler a2 read first limit 9;
-table_id
-test.t1
-
-handler t2 read first limit 9;
-table_id
-test.t2
-
-flush tables;
-handler a1 read first limit 9;
-table_id
-test.t1
-
-handler a2 read first limit 9;
-table_id
-test.t1
-
-handler t2 read first limit 9;
-table_id
-test.t2
-
-handler t1 open as a1;
-ERROR 42000: Not unique table/alias: 'a1'
-handler t1 open as a2;
-ERROR 42000: Not unique table/alias: 'a2'
-handler t2 open;
-ERROR 42000: Not unique table/alias: 't2'
-handler a1 read first limit 9;
-table_id
-test.t1
-
-handler a2 read first limit 9;
-table_id
-test.t1
-
-handler t2 read first limit 9;
-table_id
-test.t2
-
-flush table t1;
-handler a1 read first limit 9;
-table_id
-test.t1
-
-handler a2 read first limit 9;
-table_id
-test.t1
-
-handler t2 read first limit 9;
-table_id
-test.t2
-
-flush table t2;
-handler t2 close;
-drop table t1;
-drop table t2;
-create table t1(table_id char(20) primary key);
-insert into t1 values ('Record-01');
-insert into t1 values ('Record-02');
-insert into t1 values ('Record-03');
-insert into t1 values ('Record-04');
-insert into t1 values ('Record-05');
-handler t1 open;
-handler t1 read first limit 1;
-table_id
-Record-01
-handler t1 read next limit 1;
-table_id
-Record-02
-handler t1 read next limit 1;
-table_id
-Record-03
-flush table t1;
-handler t1 read next limit 1;
-table_id
-Record-01
-handler t1 read next limit 1;
-table_id
-Record-02
-handler t1 close;
-drop table t1;
-FLUSH TABLES WITH READ LOCK ;
-FLUSH TABLES WITH READ LOCK ;
-UNLOCK TABLES;
diff --git a/mysql-test/r/foreign_key.result b/mysql-test/r/foreign_key.result
deleted file mode 100644
index a82151ddec0..00000000000
--- a/mysql-test/r/foreign_key.result
+++ /dev/null
@@ -1,84 +0,0 @@
-drop table if exists t1,t2;
-create table t1 (
-a int not null references t2,
-b int not null references t2 (c),
-primary key (a,b),
-foreign key (a) references t3 match full,
-foreign key (a) references t3 match partial,
-foreign key (a,b) references t3 (c,d) on delete no action
-on update no action,
-foreign key (a,b) references t3 (c,d) on update cascade,
-foreign key (a,b) references t3 (c,d) on delete set default,
-foreign key (a,b) references t3 (c,d) on update set null);
-create index a on t1 (a);
-create unique index b on t1 (a,b);
-drop table t1;
-create table t1 (id int primary key) engine = innodb;
-create table t2 (id int PRIMARY KEY, FOREIGN KEY (id) REFERENCES t1(id)) engine=innodb;
-insert into t1 values (1), (2), (3), (4), (5), (6);
-insert into t2 values (3), (5);
-delete from t1;
-ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`id`) REFERENCES `t1` (`id`))
-select * from t1;
-id
-1
-2
-3
-4
-5
-6
-delete ignore from t1;
-Warnings:
-Warning 1451 Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`id`) REFERENCES `t1` (`id`))
-Warning 1451 Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`id`) REFERENCES `t1` (`id`))
-select row_count();
-row_count()
--1
-select * from t1;
-id
-3
-5
-drop table t2;
-drop table t1;
-drop table if exists t_34455;
-create table t_34455 (
-a int not null,
-foreign key (a) references t3 (a) match full match partial);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'match partial)' at line 3
-create table t_34455 (
-a int not null,
-foreign key (a) references t3 (a) on delete set default match full);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'match full)' at line 3
-create table t_34455 (
-a int not null,
-foreign key (a) references t3 (a) on update set default match full);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'match full)' at line 3
-create table t_34455 (
-a int not null,
-foreign key (a) references t3 (a)
-on delete set default on delete set default);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'delete set default)' at line 4
-create table t_34455 (
-a int not null,
-foreign key (a) references t3 (a)
-on update set default on update set default);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'update set default)' at line 4
-create table t_34455 (a int not null);
-alter table t_34455
-add foreign key (a) references t3 (a) match full match partial);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'match partial)' at line 2
-alter table t_34455
-add foreign key (a) references t3 (a) on delete set default match full);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'match full)' at line 2
-alter table t_34455
-add foreign key (a) references t3 (a) on update set default match full);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'match full)' at line 2
-alter table t_34455
-add foreign key (a) references t3 (a)
-on delete set default on delete set default);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'delete set default)' at line 3
-alter table t_34455
-add foreign key (a) references t3 (a)
-on update set default on update set default);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'update set default)' at line 3
-drop table t_34455;
diff --git a/mysql-test/r/frm_bad_row_type-7333.result b/mysql-test/r/frm_bad_row_type-7333.result
deleted file mode 100644
index 48404b1ba97..00000000000
--- a/mysql-test/r/frm_bad_row_type-7333.result
+++ /dev/null
@@ -1,14 +0,0 @@
-call mtr.add_suppression("bad_row_type.frm: invalid value 11 for the field row_format");
-select * from bad_row_type;
-category_id category_name
-show create table bad_row_type;
-Table Create Table
-bad_row_type CREATE TABLE `bad_row_type` (
- `category_id` int(11) NOT NULL AUTO_INCREMENT,
- `category_name` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`category_id`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 /* `compression`='tokudb_zlib' */
-show table status like 'bad_row_type';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-bad_row_type MyISAM 10 Dynamic 0 0 0 281474976710655 1024 0 1 x x NULL utf8_general_ci NULL `compression`='tokudb_zlib' x N
-drop table bad_row_type;
diff --git a/mysql-test/r/fulltext.result b/mysql-test/r/fulltext.result
deleted file mode 100644
index 308d1d7fcb9..00000000000
--- a/mysql-test/r/fulltext.result
+++ /dev/null
@@ -1,778 +0,0 @@
-drop table if exists t1,t2,t3;
-CREATE TABLE t1 (a VARCHAR(200), b TEXT, FULLTEXT (a,b));
-INSERT INTO t1 VALUES('MySQL has now support', 'for full-text search'),
-('Full-text indexes', 'are called collections'),
-('Only MyISAM tables','support collections'),
-('Function MATCH ... AGAINST()','is used to do a search'),
-('Full-text search in MySQL', 'implements vector space model');
-SHOW INDEX FROM t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a NULL NULL NULL NULL YES FULLTEXT
-t1 1 a 2 b NULL NULL NULL NULL YES FULLTEXT
-select * from t1 where MATCH(a,b) AGAINST ("collections");
-a b
-Only MyISAM tables support collections
-Full-text indexes are called collections
-explain extended select * from t1 where MATCH(a,b) AGAINST ("collections");
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 fulltext a a 0 1 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (match `test`.`t1`.`a`,`test`.`t1`.`b` against ('collections'))
-select * from t1 where MATCH(a,b) AGAINST ("indexes");
-a b
-Full-text indexes are called collections
-select * from t1 where MATCH(a,b) AGAINST ("indexes collections");
-a b
-Full-text indexes are called collections
-Only MyISAM tables support collections
-select * from t1 where MATCH(a,b) AGAINST ("only");
-a b
-select * from t1 where MATCH(a,b) AGAINST ("collections" WITH QUERY EXPANSION);
-a b
-Only MyISAM tables support collections
-Full-text indexes are called collections
-MySQL has now support for full-text search
-select * from t1 where MATCH(a,b) AGAINST ("indexes" WITH QUERY EXPANSION);
-a b
-Full-text indexes are called collections
-Only MyISAM tables support collections
-select * from t1 where MATCH(a,b) AGAINST ("indexes collections" WITH QUERY EXPANSION);
-a b
-Full-text indexes are called collections
-Only MyISAM tables support collections
-MySQL has now support for full-text search
-select * from t1 where MATCH(a,b) AGAINST ("indexes" IN NATURAL LANGUAGE MODE);
-a b
-Full-text indexes are called collections
-select * from t1 where MATCH(a,b) AGAINST ("indexes" IN NATURAL LANGUAGE MODE WITH QUERY EXPANSION);
-a b
-Full-text indexes are called collections
-Only MyISAM tables support collections
-select * from t1 where MATCH(a,b) AGAINST ("indexes" IN BOOLEAN MODE WITH QUERY EXPANSION);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WITH QUERY EXPANSION)' at line 1
-explain select * from t1 where MATCH(a,b) AGAINST ("collections");
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 fulltext a a 0 1 Using where
-explain select * from t1 where MATCH(a,b) AGAINST ("collections")>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 fulltext a a 0 1 Using where
-explain select * from t1 where MATCH(a,b) AGAINST ("collections")>1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 fulltext a a 0 1 Using where
-explain select * from t1 where MATCH(a,b) AGAINST ("collections")>=0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 Using where
-explain select * from t1 where MATCH(a,b) AGAINST ("collections")>=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 fulltext a a 0 1 Using where
-explain select * from t1 where 0<MATCH(a,b) AGAINST ("collections");
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 fulltext a a 0 1 Using where
-explain select * from t1 where 1<MATCH(a,b) AGAINST ("collections");
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 fulltext a a 0 1 Using where
-explain select * from t1 where 0<=MATCH(a,b) AGAINST ("collections");
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 Using where
-explain select * from t1 where 1<=MATCH(a,b) AGAINST ("collections");
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 fulltext a a 0 1 Using where
-explain select * from t1 where MATCH(a,b) AGAINST ("collections")>0 and a like '%ll%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 fulltext a a 0 1 Using where
-select * from t1 where MATCH(a,b) AGAINST("support -collections" IN BOOLEAN MODE);
-a b
-MySQL has now support for full-text search
-explain extended select * from t1 where MATCH(a,b) AGAINST("support -collections" IN BOOLEAN MODE);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 fulltext a a 0 1 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (match `test`.`t1`.`a`,`test`.`t1`.`b` against ('support -collections' in boolean mode))
-select * from t1 where MATCH(a,b) AGAINST("support collections" IN BOOLEAN MODE);
-a b
-MySQL has now support for full-text search
-Full-text indexes are called collections
-Only MyISAM tables support collections
-select * from t1 where MATCH(a,b) AGAINST("support +collections" IN BOOLEAN MODE);
-a b
-Full-text indexes are called collections
-Only MyISAM tables support collections
-select * from t1 where MATCH(a,b) AGAINST("sear*" IN BOOLEAN MODE);
-a b
-MySQL has now support for full-text search
-Function MATCH ... AGAINST() is used to do a search
-Full-text search in MySQL implements vector space model
-select * from t1 where MATCH(a,b) AGAINST("+support +collections" IN BOOLEAN MODE);
-a b
-Only MyISAM tables support collections
-select * from t1 where MATCH(a,b) AGAINST("+search" IN BOOLEAN MODE);
-a b
-MySQL has now support for full-text search
-Function MATCH ... AGAINST() is used to do a search
-Full-text search in MySQL implements vector space model
-select * from t1 where MATCH(a,b) AGAINST("+search +(support vector)" IN BOOLEAN MODE);
-a b
-MySQL has now support for full-text search
-Full-text search in MySQL implements vector space model
-select * from t1 where MATCH(a,b) AGAINST("+search -(support vector)" IN BOOLEAN MODE);
-a b
-Function MATCH ... AGAINST() is used to do a search
-select *, MATCH(a,b) AGAINST("support collections" IN BOOLEAN MODE) as x from t1;
-a b x
-MySQL has now support for full-text search 1
-Full-text indexes are called collections 1
-Only MyISAM tables support collections 2
-Function MATCH ... AGAINST() is used to do a search 0
-Full-text search in MySQL implements vector space model 0
-select *, MATCH(a,b) AGAINST("collections support" IN BOOLEAN MODE) as x from t1;
-a b x
-MySQL has now support for full-text search 1
-Full-text indexes are called collections 1
-Only MyISAM tables support collections 2
-Function MATCH ... AGAINST() is used to do a search 0
-Full-text search in MySQL implements vector space model 0
-select * from t1 where MATCH a,b AGAINST ("+call* +coll*" IN BOOLEAN MODE);
-a b
-Full-text indexes are called collections
-select * from t1 where MATCH a,b AGAINST ('"support now"' IN BOOLEAN MODE);
-a b
-select * from t1 where MATCH a,b AGAINST ('"Now sUPPort"' IN BOOLEAN MODE);
-a b
-MySQL has now support for full-text search
-select * from t1 where MATCH a,b AGAINST ('"now support"' IN BOOLEAN MODE);
-a b
-MySQL has now support for full-text search
-select * from t1 where MATCH a,b AGAINST ('"text search" "now support"' IN BOOLEAN MODE);
-a b
-MySQL has now support for full-text search
-Full-text search in MySQL implements vector space model
-select * from t1 where MATCH a,b AGAINST ('"text search" -"now support"' IN BOOLEAN MODE);
-a b
-Full-text search in MySQL implements vector space model
-select * from t1 where MATCH a,b AGAINST ('"text search" +"now support"' IN BOOLEAN MODE);
-a b
-MySQL has now support for full-text search
-select * from t1 where MATCH a,b AGAINST ('"text i"' IN BOOLEAN MODE);
-a b
-select * from t1 where MATCH a,b AGAINST ('"xt indexes"' IN BOOLEAN MODE);
-a b
-select * from t1 where MATCH a,b AGAINST ('+(support collections) +foobar*' IN BOOLEAN MODE);
-a b
-select * from t1 where MATCH a,b AGAINST ('+(+(support collections)) +foobar*' IN BOOLEAN MODE);
-a b
-select * from t1 where MATCH a,b AGAINST ('+collections -supp* -foobar*' IN BOOLEAN MODE);
-a b
-Full-text indexes are called collections
-select * from t1 where MATCH a,b AGAINST('"space model' IN BOOLEAN MODE);
-a b
-Full-text search in MySQL implements vector space model
-select * from t1 where MATCH a AGAINST ("search" IN BOOLEAN MODE);
-a b
-Full-text search in MySQL implements vector space model
-select * from t1 where MATCH b AGAINST ("sear*" IN BOOLEAN MODE);
-a b
-MySQL has now support for full-text search
-Function MATCH ... AGAINST() is used to do a search
-select * from t1 where MATCH(a,b) AGAINST ("collections") UNION ALL select * from t1 where MATCH(a,b) AGAINST ("indexes");
-a b
-Only MyISAM tables support collections
-Full-text indexes are called collections
-Full-text indexes are called collections
-delete from t1 where a like "MySQL%";
-update t1 set a='some test foobar' where MATCH a,b AGAINST ('model');
-delete from t1 where MATCH(a,b) AGAINST ("indexes");
-select * from t1;
-a b
-Only MyISAM tables support collections
-Function MATCH ... AGAINST() is used to do a search
-some test foobar implements vector space model
-drop table t1;
-create table t1 (a varchar(200) not null, fulltext (a));
-insert t1 values ("aaa10 bbb20"), ("aaa20 bbb15"), ("aaa30 bbb10");
-select * from t1 where match a against ("+aaa* +bbb*" in boolean mode);
-a
-aaa30 bbb10
-aaa20 bbb15
-aaa10 bbb20
-select * from t1 where match a against ("+aaa* +bbb1*" in boolean mode);
-a
-aaa30 bbb10
-aaa20 bbb15
-select * from t1 where match a against ("+aaa* +ccc*" in boolean mode);
-a
-select * from t1 where match a against ("+aaa10 +(bbb*)" in boolean mode);
-a
-aaa10 bbb20
-select * from t1 where match a against ("+(+aaa* +bbb1*)" in boolean mode);
-a
-aaa30 bbb10
-aaa20 bbb15
-select * from t1 where match a against ("(+aaa* +bbb1*)" in boolean mode);
-a
-aaa30 bbb10
-aaa20 bbb15
-drop table t1;
-CREATE TABLE t1 (
-id int(11),
-ticket int(11),
-KEY ti (id),
-KEY tit (ticket)
-);
-INSERT INTO t1 VALUES (2,3),(1,2);
-CREATE TABLE t2 (
-ticket int(11),
-inhalt text,
-KEY tig (ticket),
-fulltext index tix (inhalt)
-);
-INSERT INTO t2 VALUES (1,'foo'),(2,'bar'),(3,'foobar');
-select t1.id FROM t2 as ttxt,t1,t1 as ticket2
-WHERE ticket2.id = ttxt.ticket AND t1.id = ticket2.ticket and
-match(ttxt.inhalt) against ('foobar');
-id
-select ticket2.id FROM t2 as ttxt,t2 INNER JOIN t1 as ticket2 ON
-ticket2.id = t2.ticket
-WHERE ticket2.id = ticket2.ticket and match(ttxt.inhalt) against ('foobar');
-id
-INSERT INTO t1 VALUES (3,3);
-select ticket2.id FROM t2 as ttxt,t2
-INNER JOIN t1 as ticket2 ON ticket2.id = t2.ticket
-WHERE ticket2.id = ticket2.ticket and
-match(ttxt.inhalt) against ('foobar');
-id
-3
-show keys from t2;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t2 1 tig 1 ticket A NULL NULL NULL YES BTREE
-t2 1 tix 1 inhalt NULL NULL NULL NULL YES FULLTEXT
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ticket` int(11) DEFAULT NULL,
- `inhalt` text DEFAULT NULL,
- KEY `tig` (`ticket`),
- FULLTEXT KEY `tix` (`inhalt`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t2 where MATCH inhalt AGAINST (NULL);
-ticket inhalt
-select * from t2 where MATCH inhalt AGAINST ('foobar');
-ticket inhalt
-3 foobar
-select * from t2 having MATCH inhalt AGAINST ('foobar');
-ticket inhalt
-3 foobar
-CREATE TABLE t3 (t int(11),i text,fulltext tix (t,i));
-ERROR HY000: Column 't' cannot be part of FULLTEXT index
-CREATE TABLE t3 (t int(11),i text,
-j varchar(200) CHARACTER SET latin2,
-fulltext tix (i,j));
-ERROR HY000: Column 'j' cannot be part of FULLTEXT index
-CREATE TABLE t3 (
-ticket int(11),
-inhalt text,
-KEY tig (ticket),
-fulltext index tix (inhalt)
-);
-select * from t2 where MATCH inhalt AGAINST (t2.inhalt);
-ERROR HY000: Incorrect arguments to AGAINST
-select * from t2 where MATCH ticket AGAINST ('foobar');
-ERROR HY000: Can't find FULLTEXT index matching the column list
-select * from t2,t3 where MATCH (t2.inhalt,t3.inhalt) AGAINST ('foobar');
-ERROR HY000: Incorrect arguments to MATCH
-drop table t1,t2,t3;
-CREATE TABLE t1 (
-id int(11) auto_increment,
-title varchar(100) default '',
-PRIMARY KEY (id),
-KEY ind5 (title)
-) ENGINE=MyISAM;
-CREATE FULLTEXT INDEX ft1 ON t1(title);
-insert into t1 (title) values ('this is a test');
-select * from t1 where match title against ('test' in boolean mode);
-id title
-1 this is a test
-update t1 set title='this is A test' where id=1;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-update t1 set title='this test once revealed a bug' where id=1;
-select * from t1;
-id title
-1 this test once revealed a bug
-update t1 set title=NULL where id=1;
-drop table t1;
-CREATE TABLE t1 (a int(11), b text, FULLTEXT KEY (b)) ENGINE=MyISAM;
-insert into t1 values (1,"I wonder why the fulltext index doesnt work?");
-SELECT * from t1 where MATCH (b) AGAINST ('apples');
-a b
-insert into t1 values (2,"fullaaa fullzzz");
-select * from t1 where match b against ('full*' in boolean mode);
-a b
-2 fullaaa fullzzz
-1 I wonder why the fulltext index doesnt work?
-drop table t1;
-CREATE TABLE t1 ( id int(11) NOT NULL auto_increment primary key, mytext text NOT NULL, FULLTEXT KEY mytext (mytext)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'my small mouse'),(2,'la-la-la'),(3,'It is so funny'),(4,'MySQL Tutorial');
-select 8 from t1;
-8
-8
-8
-8
-8
-drop table t1;
-create table t1 (a text, fulltext key (a));
-insert into t1 values ('aaaa');
-repair table t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-select * from t1 where match (a) against ('aaaa');
-a
-drop table t1;
-create table t1 ( ref_mag text not null, fulltext (ref_mag));
-insert into t1 values ('test');
-select ref_mag from t1 where match ref_mag against ('+test' in boolean mode);
-ref_mag
-test
-alter table t1 change ref_mag ref_mag char (255) not null;
-select ref_mag from t1 where match ref_mag against ('+test' in boolean mode);
-ref_mag
-test
-drop table t1;
-create table t1 (t1_id int(11) primary key, name varchar(32));
-insert into t1 values (1, 'data1');
-insert into t1 values (2, 'data2');
-create table t2 (t2_id int(11) primary key, t1_id int(11), name varchar(32));
-insert into t2 values (1, 1, 'xxfoo');
-insert into t2 values (2, 1, 'xxbar');
-insert into t2 values (3, 1, 'xxbuz');
-select * from t1 join t2 using(`t1_id`) where match (t1.name, t2.name) against('xxfoo' in boolean mode);
-t1_id name t2_id name
-1 data1 1 xxfoo
-select * from t2 where match name against ('*a*b*c*d*e*f*' in boolean mode);
-t2_id t1_id name
-drop table t1,t2;
-create table t1 (a text, fulltext key (a));
-insert into t1 select "xxxx yyyy zzzz";
-drop table t1;
-SET NAMES latin1;
-CREATE TABLE t1 (t text character set utf8 not null, fulltext(t));
-INSERT t1 VALUES ('Mit freundlichem Grüß'), ('aus Osnabrück');
-SET NAMES koi8r;
-INSERT t1 VALUES ("üÔÏ ÍÙ - ÏÐÉÌËÉ"),("ïÔÌÅÚØ, ÇÎÉÄÁ!"),
-("îÅ ×ÌÅÚÁÊ, ÕÂØÅÔ!"),("É ÂÕÄÅÔ ÐÒÁ×!");
-SELECT t, collation(t) FROM t1 WHERE MATCH t AGAINST ('ïðéìëé');
-t collation(t)
-üÔÏ ÍÙ - ÏÐÉÌËÉ utf8_general_ci
-SELECT t, collation(t) FROM t1 WHERE MATCH t AGAINST ('ðÒá*' IN BOOLEAN MODE);
-t collation(t)
-É ÂÕÄÅÔ ÐÒÁ×! utf8_general_ci
-SELECT * FROM t1 WHERE MATCH t AGAINST ('ÜÔÏ' IN BOOLEAN MODE);
-t
-SELECT t, collation(t) FROM t1 WHERE MATCH t AGAINST ('Osnabrück');
-t collation(t)
-SET NAMES latin1;
-SELECT t, collation(t) FROM t1 WHERE MATCH t AGAINST ('Osnabrück');
-t collation(t)
-aus Osnabrück utf8_general_ci
-SELECT t, collation(t) FROM t1 WHERE MATCH t AGAINST ('Osnabrueck');
-t collation(t)
-SELECT t, collation(t),FORMAT(MATCH t AGAINST ('Osnabruck'),6) FROM t1 WHERE MATCH t AGAINST ('Osnabruck');
-t collation(t) FORMAT(MATCH t AGAINST ('Osnabruck'),6)
-aus Osnabrück utf8_general_ci 1.591140
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 modify t varchar(200) collate latin1_german2_ci not null;
-Warnings:
-Warning 1366 Incorrect string value: '\xD0\xAD\xD1\x82\xD0\xBE...' for column 't' at row 3
-Warning 1366 Incorrect string value: '\xD0\x9E\xD1\x82\xD0\xBB...' for column 't' at row 4
-Warning 1366 Incorrect string value: '\xD0\x9D\xD0\xB5 \xD0...' for column 't' at row 5
-Warning 1366 Incorrect string value: '\xD0\xB8 \xD0\xB1\xD1...' for column 't' at row 6
-SELECT t, collation(t) FROM t1 WHERE MATCH t AGAINST ('Osnabrück');
-t collation(t)
-aus Osnabrück latin1_german2_ci
-SELECT t, collation(t) FROM t1 WHERE MATCH t AGAINST ('Osnabrueck');
-t collation(t)
-aus Osnabrück latin1_german2_ci
-DROP TABLE t1;
-CREATE TABLE t1 (s varchar(255), FULLTEXT (s)) DEFAULT CHARSET=utf8;
-insert into t1 (s) values ('pära para para'),('para para para');
-select * from t1 where match(s) against('para' in boolean mode);
-s
-pära para para
-para para para
-select * from t1 where match(s) against('par*' in boolean mode);
-s
-pära para para
-para para para
-DROP TABLE t1;
-CREATE TABLE t1 (h text, FULLTEXT (h));
-INSERT INTO t1 VALUES ('Jesses Hasse Ling and his syncopators of Swing');
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-select count(*) from t1;
-count(*)
-1
-drop table t1;
-CREATE TABLE t1 ( a TEXT, FULLTEXT (a) );
-INSERT INTO t1 VALUES ('testing ft_nlq_find_relevance');
-SELECT MATCH(a) AGAINST ('nosuchword') FROM t1;
-MATCH(a) AGAINST ('nosuchword')
-0
-DROP TABLE t1;
-create table t1 (a int primary key, b text, fulltext(b));
-create table t2 (a int, b text);
-insert t1 values (1, "aaaa"), (2, "bbbb");
-insert t2 values (10, "aaaa"), (2, "cccc");
-replace t1 select * from t2;
-drop table t1, t2;
-CREATE TABLE t1 (t VARCHAR(200) CHARACTER SET utf8 COLLATE utf8_unicode_ci, FULLTEXT (t));
-SET NAMES latin1;
-INSERT INTO t1 VALUES('Mit freundlichem Grüß aus Osnabrück');
-SELECT COUNT(*) FROM t1 WHERE MATCH(t) AGAINST ('"osnabrück"' IN BOOLEAN MODE);
-COUNT(*)
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(30), FULLTEXT(a));
-INSERT INTO t1 VALUES('bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
-SET myisam_repair_threads=2;
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-SET myisam_repair_threads=@@global.myisam_repair_threads;
-INSERT INTO t1 VALUES('testword\'\'');
-SELECT a FROM t1 WHERE MATCH a AGAINST('testword' IN BOOLEAN MODE);
-a
-testword''
-SELECT a FROM t1 WHERE MATCH a AGAINST('testword\'\'' IN BOOLEAN MODE);
-a
-testword''
-INSERT INTO t1 VALUES('test\'s');
-SELECT a FROM t1 WHERE MATCH a AGAINST('test' IN BOOLEAN MODE);
-a
-test's
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10000), FULLTEXT(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10000) DEFAULT NULL,
- FULLTEXT KEY `a` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a TEXT, FULLTEXT KEY(a));
-INSERT INTO t1 VALUES('test'),('test1'),('test');
-PREPARE stmt from "SELECT a, FORMAT(MATCH(a) AGAINST('test1 test'),6) FROM t1 WHERE MATCH(a) AGAINST('test1 test')";
-EXECUTE stmt;
-a FORMAT(MATCH(a) AGAINST('test1 test'),6)
-test1 0.685267
-EXECUTE stmt;
-a FORMAT(MATCH(a) AGAINST('test1 test'),6)
-test1 0.685267
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(255), FULLTEXT(a));
-SELECT * FROM t1 IGNORE INDEX(a) WHERE MATCH(a) AGAINST('test');
-a
-ALTER TABLE t1 DISABLE KEYS;
-SELECT * FROM t1 WHERE MATCH(a) AGAINST('test');
-ERROR HY000: Can't find FULLTEXT index matching the column list
-DROP TABLE t1;
-CREATE TABLE t1(a TEXT);
-INSERT INTO t1 VALUES(' aaaaa aaaa');
-SELECT * FROM t1 WHERE MATCH(a) AGAINST ('"aaaa"' IN BOOLEAN MODE);
-a
- aaaaa aaaa
-DROP TABLE t1;
-CREATE TABLE t1(a VARCHAR(20), FULLTEXT(a));
-INSERT INTO t1 VALUES('Offside'),('City Of God');
-SELECT a FROM t1 WHERE MATCH a AGAINST ('+city of*' IN BOOLEAN MODE);
-a
-City Of God
-SELECT a FROM t1 WHERE MATCH a AGAINST ('+city (of*)' IN BOOLEAN MODE);
-a
-City Of God
-SELECT a FROM t1 WHERE MATCH a AGAINST ('+city* of*' IN BOOLEAN MODE);
-a
-City Of God
-DROP TABLE t1;
-create table t1(a text,b date,fulltext index(a))engine=myisam;
-insert into t1 set a='water',b='2008-08-04';
-select 1 from t1 where match(a) against ('water' in boolean mode) and b>='2008-08-01';
-1
-1
-drop table t1;
-show warnings;
-Level Code Message
-CREATE TABLE t1 (a VARCHAR(255), b INT, FULLTEXT(a), KEY(b));
-INSERT INTO t1 VALUES('test', 1),('test', 1),('test', 1),('test', 1),
-('test', 1),('test', 2),('test', 3),('test', 4);
-INSERT INTO t1 VALUES('test', 5),('test', 6),('test', 7),('test', 8),
-('test', 5),('test', 6),('test', 7),('test', 8);
-EXPLAIN SELECT * FROM t1
-WHERE MATCH(a) AGAINST('test' IN BOOLEAN MODE) AND b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 fulltext b,a a 0 1 Using where
-EXPLAIN SELECT * FROM t1 USE INDEX(a)
-WHERE MATCH(a) AGAINST('test' IN BOOLEAN MODE) AND b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 fulltext a a 0 1 Using where
-EXPLAIN SELECT * FROM t1 FORCE INDEX(a)
-WHERE MATCH(a) AGAINST('test' IN BOOLEAN MODE) AND b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 fulltext a a 0 1 Using where
-EXPLAIN SELECT * FROM t1 IGNORE INDEX(a)
-WHERE MATCH(a) AGAINST('test' IN BOOLEAN MODE) AND b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref b b 5 const 5 Using where
-EXPLAIN SELECT * FROM t1 USE INDEX(b)
-WHERE MATCH(a) AGAINST('test' IN BOOLEAN MODE) AND b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref b b 5 const 5 Using where
-EXPLAIN SELECT * FROM t1 FORCE INDEX(b)
-WHERE MATCH(a) AGAINST('test' IN BOOLEAN MODE) AND b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref b b 5 const 5 Using where
-DROP TABLE t1;
-create table t1(a text,b date,fulltext index(a))engine=myisam;
-insert into t1 set a='water',b='2008-08-04';
-select 1 from t1 where match(a) against ('water' in boolean mode) and b>='2008-08-01';
-1
-1
-drop table t1;
-show warnings;
-Level Code Message
-CREATE TABLE t1(a CHAR(10));
-INSERT INTO t1 VALUES('aaa15');
-SELECT MATCH(a) AGAINST('aaa1* aaa14 aaa16' IN BOOLEAN MODE) FROM t1;
-MATCH(a) AGAINST('aaa1* aaa14 aaa16' IN BOOLEAN MODE)
-1
-SELECT MATCH(a) AGAINST('aaa1* aaa14 aaa15 aaa16' IN BOOLEAN MODE) FROM t1;
-MATCH(a) AGAINST('aaa1* aaa14 aaa15 aaa16' IN BOOLEAN MODE)
-2
-DROP TABLE t1;
-CREATE TABLE t1(a TEXT);
-SELECT GROUP_CONCAT(a) AS st FROM t1 HAVING MATCH(st) AGAINST('test' IN BOOLEAN MODE);
-ERROR HY000: Incorrect arguments to MATCH
-DROP TABLE t1;
-CREATE TABLE t1(a VARCHAR(64), FULLTEXT(a));
-INSERT INTO t1 VALUES('awrd bwrd cwrd'),('awrd bwrd cwrd'),('awrd bwrd cwrd');
-SELECT * FROM t1 WHERE MATCH(a) AGAINST('+awrd bwrd* +cwrd*' IN BOOLEAN MODE);
-a
-awrd bwrd cwrd
-awrd bwrd cwrd
-awrd bwrd cwrd
-DROP TABLE t1;
-CREATE TABLE t1 (col text, FULLTEXT KEY full_text (col));
-PREPARE s FROM
-"SELECT MATCH (col) AGAINST('findme') FROM t1 ORDER BY MATCH (col) AGAINST('findme')"
- ;
-EXECUTE s;
-MATCH (col) AGAINST('findme')
-DEALLOCATE PREPARE s;
-DROP TABLE t1;
-#
-# Bug #49250 : spatial btree index corruption and crash
-# Part two : fulltext syntax check
-#
-CREATE TABLE t1(col1 TEXT,
-FULLTEXT INDEX USING BTREE (col1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'USING BTREE (col1))' at line 2
-CREATE TABLE t2(col1 TEXT);
-CREATE FULLTEXT INDEX USING BTREE ON t2(col);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'USING BTREE ON t2(col)' at line 1
-ALTER TABLE t2 ADD FULLTEXT INDEX USING BTREE (col1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'USING BTREE (col1)' at line 1
-DROP TABLE t2;
-End of 5.0 tests
-#
-# Bug #47930: MATCH IN BOOLEAN MODE returns too many results
-# inside subquery
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-CREATE TABLE t2 (a int, b2 char(10), FULLTEXT KEY b2 (b2));
-INSERT INTO t2 VALUES (1,'Scargill');
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (1,1), (2,1);
-# t2 should use full text index
-EXPLAIN
-SELECT count(*) FROM t1 WHERE
-not exists(
-SELECT 1 FROM t2, t3
-WHERE t3.a=t1.a AND MATCH(b2) AGAINST('scargill' IN BOOLEAN MODE)
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t2 fulltext b2 b2 0 1 Using where
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 2 Using where
-# should return 0
-SELECT count(*) FROM t1 WHERE
-not exists(
-SELECT 1 FROM t2, t3
-WHERE t3.a=t1.a AND MATCH(b2) AGAINST('scargill' IN BOOLEAN MODE)
-);
-count(*)
-0
-# should return 0
-SELECT count(*) FROM t1 WHERE
-not exists(
-SELECT 1 FROM t2 IGNORE INDEX (b2), t3
-WHERE t3.a=t1.a AND MATCH(b2) AGAINST('scargill' IN BOOLEAN MODE)
-);
-count(*)
-0
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a VARCHAR(4), FULLTEXT(a));
-INSERT INTO t1 VALUES
-('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
-('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
-('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
-('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
-('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
-('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
-('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
-('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
-('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
-('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
-('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
-('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
-('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('awrd'),('cwrd'),
-('awrd');
-SELECT COUNT(*) FROM t1 WHERE MATCH(a) AGAINST("+awrd bwrd* +cwrd*" IN BOOLEAN MODE);
-COUNT(*)
-0
-DROP TABLE t1;
-#
-# Bug #49445: Assertion failed: 0, file .\item_row.cc, line 55 with
-# fulltext search and row op
-#
-CREATE TABLE t1(a CHAR(1),FULLTEXT(a));
-SELECT 1 FROM t1 WHERE MATCH(a) AGAINST ('') AND ROW(a,a) > ROW(1,1);
-1
-DROP TABLE t1;
-#
-# BUG#51866 - crash with repair by sort and fulltext keys
-#
-CREATE TABLE t1(a CHAR(4), FULLTEXT(a));
-INSERT INTO t1 VALUES('aaaa');
-SET myisam_sort_buffer_size=4;
-Warnings:
-Warning 1292 Truncated incorrect myisam_sort_buffer_size value: '4'
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-SET myisam_sort_buffer_size=@@global.myisam_sort_buffer_size;
-DROP TABLE t1;
-#
-# Bug#54484 explain + prepared statement: crash and Got error -1 from storage engine
-#
-CREATE TABLE t1(f1 VARCHAR(6) NOT NULL, FULLTEXT KEY(f1), UNIQUE(f1));
-INSERT INTO t1 VALUES ('test');
-SELECT 1 FROM t1 WHERE 1 >
-ALL((SELECT 1 FROM t1 JOIN t1 a
-ON (MATCH(t1.f1) against (""))
-WHERE t1.f1 GROUP BY t1.f1)) xor f1;
-1
-1
-PREPARE stmt FROM
-'SELECT 1 FROM t1 WHERE 1 >
- ALL((SELECT 1 FROM t1 RIGHT OUTER JOIN t1 a
- ON (MATCH(t1.f1) against (""))
- WHERE t1.f1 GROUP BY t1.f1)) xor f1';
-EXECUTE stmt;
-1
-1
-EXECUTE stmt;
-1
-1
-DEALLOCATE PREPARE stmt;
-PREPARE stmt FROM
-'SELECT 1 FROM t1 WHERE 1 >
- ALL((SELECT 1 FROM t1 JOIN t1 a
- ON (MATCH(t1.f1) against (""))
- WHERE t1.f1 GROUP BY t1.f1))';
-EXECUTE stmt;
-1
-1
-EXECUTE stmt;
-1
-1
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-End of 5.1 tests
-#
-# Start of 5.5 tests
-#
-#
-# MDEV-6146 Can't mix (latin1_swedish_ci,NUMERIC) and (utf8_unicode_ci,IMPLICIT) for MATCH
-#
-SET NAMES utf8;
-CREATE TABLE t1
-(
-txt text COLLATE utf8_unicode_ci NOT NULL,
-uid int(11) NOT NULL,
-id2 int(11) NOT NULL,
-KEY uid (uid),
-KEY id2 (id2)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-INSERT INTO t1 VALUES ('txt1',1234,5678);
-SELECT * FROM t1 WHERE MATCH (id2, uid, txt) AGAINST ('txt1' IN BOOLEAN MODE);
-txt uid id2
-txt1 1234 5678
-SELECT * FROM t1 WHERE MATCH (id2, uid, txt) AGAINST ('1234' IN BOOLEAN MODE);
-txt uid id2
-txt1 1234 5678
-SELECT * FROM t1 WHERE MATCH (id2, uid, txt) AGAINST ('5678' IN BOOLEAN MODE);
-txt uid id2
-txt1 1234 5678
-DROP TABLE t1;
-CREATE TABLE t1 (
-txt1 text COLLATE utf8_unicode_ci NOT NULL,
-txt2 text COLLATE latin1_swedish_ci NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-INSERT INTO t1 VALUES ('nnn1 x1 y1 ööö1','mmm1 ùùù1');
-INSERT INTO t1 VALUES ('nnn2 x2 y2 ööö2','mmm2 ùùù2');
-INSERT INTO t1 VALUES ('nnn3 x3 y3 ööö3','mmm3 ùùù3');
-INSERT INTO t1 VALUES ('nnn4 x4 y4 ööö4','mmm4 ùùù4');
-INSERT INTO t1 VALUES ('nnn5 x5 y5 ööö5','mmm5 ');
-SELECT * FROM t1 WHERE MATCH (txt1,txt2) AGAINST ('ööö1' IN BOOLEAN MODE);
-txt1 txt2
-nnn1 x1 y1 ööö1 mmm1 ùùù1
-SELECT * FROM t1 WHERE MATCH (txt1,txt2) AGAINST ('ùùù2' IN BOOLEAN MODE);
-txt1 txt2
-nnn2 x2 y2 ööö2 mmm2 ùùù2
-DROP TABLE t1;
-#
-# MDEV-14743: Server crashes in Item_func_match::init_search
-#
-CREATE TABLE t1 (f VARCHAR(8));
-INSERT INTO t1 VALUES ('foo'),('bar');
-SELECT 'foo' IN ( SELECT f FROM t1 GROUP BY MATCH(f) AGAINST ( 'qux' IN BOOLEAN MODE ) );
-'foo' IN ( SELECT f FROM t1 GROUP BY MATCH(f) AGAINST ( 'qux' IN BOOLEAN MODE ) )
-1
-SELECT 'foo' IN ( SELECT f FROM t1 GROUP BY MATCH(f) AGAINST ( 'qux' IN BOOLEAN MODE )) as f1, MATCH(f) AGAINST ( 'qux' IN BOOLEAN MODE ) as f2 from t1 ;
-f1 f2
-1 0
-1 0
-explain extended
-SELECT 'foo' IN ( SELECT f FROM t1 GROUP BY MATCH(f) AGAINST ( 'qux' IN BOOLEAN MODE )) as f1, MATCH(f) AGAINST ( 'qux' IN BOOLEAN MODE ) as f2 from t1 ;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select <expr_cache><'foo'>(<in_optimizer>('foo',<exists>(/* select#2 */ select `test`.`t1`.`f` from `test`.`t1` where <cache>(convert('foo' using latin1)) = `test`.`t1`.`f` or `test`.`t1`.`f` is null having `test`.`t1`.`f` is null))) AS `f1`,(match `test`.`t1`.`f` against ('qux' in boolean mode)) AS `f2` from `test`.`t1`
-drop table t1;
-#
-# End of 5.5 tests
-#
-CREATE TABLE t1 (
-id int(11) auto_increment,
-title varchar(100) default '',
-PRIMARY KEY (id),
-KEY ind5 (title)
-) ENGINE=MyISAM;
-CREATE FULLTEXT INDEX IF NOT EXISTS ft1 ON t1(title);
-CREATE FULLTEXT INDEX IF NOT EXISTS ft1 ON t1(title);
-Warnings:
-Note 1061 Duplicate key name 'ft1'
-DROP TABLE t1;
diff --git a/mysql-test/r/fulltext2.result b/mysql-test/r/fulltext2.result
deleted file mode 100644
index 7e3e25370d3..00000000000
--- a/mysql-test/r/fulltext2.result
+++ /dev/null
@@ -1,251 +0,0 @@
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-i int(10) unsigned not null auto_increment primary key,
-a varchar(255) not null,
-FULLTEXT KEY (a)
-) ENGINE=MyISAM;
-repair table t1 quick;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-select count(*) from t1 where match a against ('aaaxxx');
-count(*)
-260
-select count(*) from t1 where match a against ('aaayyy');
-count(*)
-250
-select count(*) from t1 where match a against ('aaazzz');
-count(*)
-255
-select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
-count(*)
-260
-select count(*) from t1 where match a against ('aaayyy' in boolean mode);
-count(*)
-250
-select count(*) from t1 where match a against ('aaazzz' in boolean mode);
-count(*)
-255
-select count(*) from t1 where match a against ('aaaxxx aaayyy aaazzz');
-count(*)
-765
-select count(*) from t1 where match a against ('aaaxxx aaayyy aaazzz' in boolean mode);
-count(*)
-765
-select count(*) from t1 where match a against ('aaax*' in boolean mode);
-count(*)
-260
-select count(*) from t1 where match a against ('aaay*' in boolean mode);
-count(*)
-250
-select count(*) from t1 where match a against ('aaa*' in boolean mode);
-count(*)
-765
-insert t1 (a) values ('aaaxxx'),('aaayyy');
-insert t1 (a) values ('aaazzz'),('aaazzz'),('aaazzz'),('aaazzz'),('aaazzz');
-select count(*) from t1 where match a against ('aaaxxx');
-count(*)
-261
-select count(*) from t1 where match a against ('aaayyy');
-count(*)
-251
-select count(*) from t1 where match a against ('aaazzz');
-count(*)
-260
-insert t1 (a) values ('aaaxxx 000000');
-select count(*) from t1 where match a against ('000000');
-count(*)
-1
-delete from t1 where match a against ('000000');
-select count(*) from t1 where match a against ('000000');
-count(*)
-0
-select count(*) from t1 where match a against ('aaaxxx');
-count(*)
-261
-delete from t1 where match a against ('aaazzz');
-select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
-count(*)
-261
-select count(*) from t1 where match a against ('aaayyy' in boolean mode);
-count(*)
-251
-select count(*) from t1 where match a against ('aaazzz' in boolean mode);
-count(*)
-0
-select count(*) from t1 where a = 'aaaxxx';
-count(*)
-261
-select count(*) from t1 where a = 'aaayyy';
-count(*)
-251
-select count(*) from t1 where a = 'aaazzz';
-count(*)
-0
-insert t1 (a) values ('aaaxxx 000000');
-select count(*) from t1 where match a against ('000000');
-count(*)
-1
-update t1 set a='aaazzz' where match a against ('000000');
-select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
-count(*)
-261
-select count(*) from t1 where match a against ('aaazzz' in boolean mode);
-count(*)
-1
-update t1 set a='aaazzz' where a = 'aaaxxx';
-update t1 set a='aaaxxx' where a = 'aaayyy';
-select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
-count(*)
-251
-select count(*) from t1 where match a against ('aaayyy' in boolean mode);
-count(*)
-0
-select count(*) from t1 where match a against ('aaazzz' in boolean mode);
-count(*)
-262
-drop table t1;
-CREATE TABLE t1 (
-i int(10) unsigned not null auto_increment primary key,
-a varchar(255) not null,
-FULLTEXT KEY (a)
-) ENGINE=MyISAM;
-select count(*) from t1 where match a against ('aaaxxx');
-count(*)
-260
-select count(*) from t1 where match a against ('aaayyy');
-count(*)
-250
-select count(*) from t1 where match a against ('aaazzz');
-count(*)
-255
-select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
-count(*)
-260
-select count(*) from t1 where match a against ('aaayyy' in boolean mode);
-count(*)
-250
-select count(*) from t1 where match a against ('aaazzz' in boolean mode);
-count(*)
-255
-select count(*) from t1 where match a against ('aaaxxx aaayyy aaazzz');
-count(*)
-765
-select count(*) from t1 where match a against ('aaaxxx aaayyy aaazzz' in boolean mode);
-count(*)
-765
-select count(*) from t1 where match a against ('aaax*' in boolean mode);
-count(*)
-260
-select count(*) from t1 where match a against ('aaay*' in boolean mode);
-count(*)
-250
-select count(*) from t1 where match a against ('aaa*' in boolean mode);
-count(*)
-765
-insert t1 (a) values ('aaaxxx'),('aaayyy');
-insert t1 (a) values ('aaazzz'),('aaazzz'),('aaazzz'),('aaazzz'),('aaazzz');
-select count(*) from t1 where match a against ('aaaxxx');
-count(*)
-261
-select count(*) from t1 where match a against ('aaayyy');
-count(*)
-251
-select count(*) from t1 where match a against ('aaazzz');
-count(*)
-260
-insert t1 (a) values ('aaaxxx 000000');
-select count(*) from t1 where match a against ('000000');
-count(*)
-1
-delete from t1 where match a against ('000000');
-select count(*) from t1 where match a against ('000000');
-count(*)
-0
-select count(*) from t1 where match a against ('aaaxxx');
-count(*)
-261
-delete from t1 where match a against ('aaazzz');
-select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
-count(*)
-261
-select count(*) from t1 where match a against ('aaayyy' in boolean mode);
-count(*)
-251
-select count(*) from t1 where match a against ('aaazzz' in boolean mode);
-count(*)
-0
-select count(*) from t1 where a = 'aaaxxx';
-count(*)
-261
-select count(*) from t1 where a = 'aaayyy';
-count(*)
-251
-select count(*) from t1 where a = 'aaazzz';
-count(*)
-0
-insert t1 (a) values ('aaaxxx 000000');
-select count(*) from t1 where match a against ('000000');
-count(*)
-1
-update t1 set a='aaazzz' where match a against ('000000');
-select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
-count(*)
-261
-select count(*) from t1 where match a against ('aaazzz' in boolean mode);
-count(*)
-1
-update t1 set a='aaazzz' where a = 'aaaxxx';
-update t1 set a='aaaxxx' where a = 'aaayyy';
-select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
-count(*)
-251
-select count(*) from t1 where match a against ('aaayyy' in boolean mode);
-count(*)
-0
-select count(*) from t1 where match a against ('aaazzz' in boolean mode);
-count(*)
-262
-drop table t1;
-set names utf8;
-create table t1(a text,fulltext(a)) collate=utf8_swedish_ci;
-insert into t1 values('test test '),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
-('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test');
-delete from t1 limit 1;
-truncate table t1;
-insert into t1 values('ab c d');
-update t1 set a='ab c d';
-select * from t1 where match a against('ab c' in boolean mode);
-a
-drop table t1;
-set names latin1;
-SET NAMES utf8;
-CREATE TABLE t1(a VARCHAR(255), FULLTEXT(a)) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-INSERT INTO t1 VALUES('„MySQL“');
-SELECT a FROM t1 WHERE MATCH a AGAINST('“MySQL„' IN BOOLEAN MODE);
-a
-„MySQL“
-DROP TABLE t1;
-SET NAMES latin1;
diff --git a/mysql-test/r/fulltext3.result b/mysql-test/r/fulltext3.result
deleted file mode 100644
index c0b871cd5a7..00000000000
--- a/mysql-test/r/fulltext3.result
+++ /dev/null
@@ -1,29 +0,0 @@
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a VARCHAR(255) CHARACTER SET gbk, FULLTEXT(a));
-SET NAMES utf8;
-INSERT INTO t1 VALUES(0xF043616161),(0xBEF361616197C22061616161);
-SELECT HEX(a) FROM t1 WHERE MATCH(a) AGAINST(0x97C22061616161 IN BOOLEAN MODE);
-HEX(a)
-BEF361616197C22061616161
-DELETE FROM t1 LIMIT 1;
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-SET NAMES latin1;
-DROP TABLE t1;
-CREATE TABLE t1(a VARCHAR(2) CHARACTER SET big5 COLLATE big5_chinese_ci,
-FULLTEXT(a));
-INSERT INTO t1 VALUES(0xA3C2);
-DROP TABLE t1;
-create table t1 (
-id varchar(255),
-business_name text null collate utf8mb4_unicode_ci,
-street_address text,
-fulltext index ft (business_name),
-fulltext index ft2 (street_address)
-);
-select * from t1 where match (business_name, street_address) against ('some business name and address here');
-ERROR HY000: Can't find FULLTEXT index matching the column list
-select * from t1 where match (business_name, street_address) against ('some business name and address here' in boolean mode);
-id business_name street_address
-drop table t1;
diff --git a/mysql-test/r/fulltext_cache.result b/mysql-test/r/fulltext_cache.result
deleted file mode 100644
index 80c101357c5..00000000000
--- a/mysql-test/r/fulltext_cache.result
+++ /dev/null
@@ -1,68 +0,0 @@
-drop table if exists t1, t2;
-CREATE TABLE t1 (
-id int(10) unsigned NOT NULL auto_increment,
-q varchar(255) default NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t1 VALUES (1,'aaaaaaaaa dsaass de');
-INSERT INTO t1 VALUES (2,'ssde df s fsda sad er');
-CREATE TABLE t2 (
-id int(10) unsigned NOT NULL auto_increment,
-id2 int(10) unsigned default NULL,
-item varchar(255) default NULL,
-PRIMARY KEY (id),
-FULLTEXT KEY item(item)
-);
-INSERT INTO t2 VALUES (1,1,'sushi');
-INSERT INTO t2 VALUES (2,1,'Bolo de Chocolate');
-INSERT INTO t2 VALUES (3,1,'Feijoada');
-INSERT INTO t2 VALUES (4,1,'Mousse de Chocolate');
-INSERT INTO t2 VALUES (5,2,'um copo de Vodka');
-INSERT INTO t2 VALUES (6,2,'um chocolate Snickers');
-INSERT INTO t2 VALUES (7,1,'Bife');
-INSERT INTO t2 VALUES (8,1,'Pizza de Salmao');
-SELECT t1.q, t2.item, t2.id, round(MATCH t2.item AGAINST ('sushi'),6)
-as x FROM t1, t2 WHERE (t2.id2 = t1.id) ORDER BY x DESC,t2.id;
-q item id x
-aaaaaaaaa dsaass de sushi 1 1.923787
-aaaaaaaaa dsaass de Bolo de Chocolate 2 0.000000
-aaaaaaaaa dsaass de Feijoada 3 0.000000
-aaaaaaaaa dsaass de Mousse de Chocolate 4 0.000000
-ssde df s fsda sad er um copo de Vodka 5 0.000000
-ssde df s fsda sad er um chocolate Snickers 6 0.000000
-aaaaaaaaa dsaass de Bife 7 0.000000
-aaaaaaaaa dsaass de Pizza de Salmao 8 0.000000
-SELECT t1.q, t2.item, t2.id, MATCH t2.item AGAINST ('sushi' IN BOOLEAN MODE)
-as x FROM t1, t2 WHERE (t2.id2 = t1.id) ORDER BY x DESC,t2.id;
-q item id x
-aaaaaaaaa dsaass de sushi 1 1
-aaaaaaaaa dsaass de Bolo de Chocolate 2 0
-aaaaaaaaa dsaass de Feijoada 3 0
-aaaaaaaaa dsaass de Mousse de Chocolate 4 0
-ssde df s fsda sad er um copo de Vodka 5 0
-ssde df s fsda sad er um chocolate Snickers 6 0
-aaaaaaaaa dsaass de Bife 7 0
-aaaaaaaaa dsaass de Pizza de Salmao 8 0
-SELECT t1.q, t2.item, t2.id, round(MATCH t2.item AGAINST ('sushi'),6)
-as x FROM t2, t1 WHERE (t2.id2 = t1.id) ORDER BY x DESC,t2.id;
-q item id x
-aaaaaaaaa dsaass de sushi 1 1.923787
-aaaaaaaaa dsaass de Bolo de Chocolate 2 0.000000
-aaaaaaaaa dsaass de Feijoada 3 0.000000
-aaaaaaaaa dsaass de Mousse de Chocolate 4 0.000000
-ssde df s fsda sad er um copo de Vodka 5 0.000000
-ssde df s fsda sad er um chocolate Snickers 6 0.000000
-aaaaaaaaa dsaass de Bife 7 0.000000
-aaaaaaaaa dsaass de Pizza de Salmao 8 0.000000
-SELECT t1.q, t2.item, t2.id, MATCH t2.item AGAINST ('sushi' IN BOOLEAN MODE)
-as x FROM t2, t1 WHERE (t2.id2 = t1.id) ORDER BY x DESC,t2.id;
-q item id x
-aaaaaaaaa dsaass de sushi 1 1
-aaaaaaaaa dsaass de Bolo de Chocolate 2 0
-aaaaaaaaa dsaass de Feijoada 3 0
-aaaaaaaaa dsaass de Mousse de Chocolate 4 0
-ssde df s fsda sad er um copo de Vodka 5 0
-ssde df s fsda sad er um chocolate Snickers 6 0
-aaaaaaaaa dsaass de Bife 7 0
-aaaaaaaaa dsaass de Pizza de Salmao 8 0
-drop table t1, t2;
diff --git a/mysql-test/r/fulltext_charsets.result b/mysql-test/r/fulltext_charsets.result
deleted file mode 100644
index 39ce02a3fce..00000000000
--- a/mysql-test/r/fulltext_charsets.result
+++ /dev/null
@@ -1,7 +0,0 @@
-set names utf8mb4;
-create table t1 (a int, b text, fulltext (b)) charset=utf8mb4 collate=utf8mb4_unicode_ci;
-insert t1 values (1000, 'C͓̙̯͔̩ͅͅi̩̘̜̲a̯̲̬̳̜̖̤o͕͓̜͓̺̖̗,̠̬͚ ̺T͇̲h͈̱e ̬̜DÌ–o̦̖͔̗͖̩̘c̣̼tÌ͉̫̮̗o͉̫̭r̙͎̗.͓̪̥');
-select a from t1 where match(b) against ('ciao' in boolean mode);
-a
-1000
-drop table t1;
diff --git a/mysql-test/r/fulltext_derived_4257.result b/mysql-test/r/fulltext_derived_4257.result
deleted file mode 100644
index 8479baef388..00000000000
--- a/mysql-test/r/fulltext_derived_4257.result
+++ /dev/null
@@ -1,6 +0,0 @@
-set optimizer_switch = 'derived_merge=on';
-create table t1 (c1 char(8), c2 char(8)) engine=myisam;
-insert into t1 values ('test1','test2'),('test3','test4');
-select * from (select c1 from t1 where match (c2) against ('hello' in boolean mode)) as alias;
-c1
-drop table t1;
diff --git a/mysql-test/r/fulltext_derived_4316.result b/mysql-test/r/fulltext_derived_4316.result
deleted file mode 100644
index 141202c9842..00000000000
--- a/mysql-test/r/fulltext_derived_4316.result
+++ /dev/null
@@ -1,8 +0,0 @@
-create table t1 (ft text) engine=myisam;
-insert into t1 values ('test1'),('test2');
-select distinct match(ft) against("test1" in boolean mode) from
-(select distinct ft from t1) as t;
-match(ft) against("test1" in boolean mode)
-1
-0
-drop table t1;
diff --git a/mysql-test/r/fulltext_distinct.result b/mysql-test/r/fulltext_distinct.result
deleted file mode 100644
index de0668ff28c..00000000000
--- a/mysql-test/r/fulltext_distinct.result
+++ /dev/null
@@ -1,43 +0,0 @@
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (
-id mediumint unsigned NOT NULL auto_increment,
-tag char(6) NOT NULL default '',
-value text NOT NULL default '',
-PRIMARY KEY (id),
-KEY kt(tag),
-KEY kv(value(15)),
-FULLTEXT KEY kvf(value)
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-id_t2 mediumint unsigned NOT NULL default '0',
-id_t1 mediumint unsigned NOT NULL default '0',
-field_number tinyint unsigned NOT NULL default '0',
-PRIMARY KEY (id_t2,id_t1,field_number),
-KEY id_t1(id_t1)
-) ENGINE=MyISAM;
-INSERT INTO t1 (tag,value) VALUES ('foo123','bar111');
-INSERT INTO t1 (tag,value) VALUES ('foo123','bar222');
-INSERT INTO t1 (tag,value) VALUES ('bar345','baz333 ar');
-INSERT INTO t2 VALUES (2231626,64280,0);
-INSERT INTO t2 VALUES (2231626,64281,0);
-INSERT INTO t2 VALUES (12346, 3, 1);
-SELECT * FROM t1;
-id tag value
-1 foo123 bar111
-2 foo123 bar222
-3 bar345 baz333 ar
-SELECT * FROM t2;
-id_t2 id_t1 field_number
-12346 3 1
-2231626 64280 0
-2231626 64281 0
-SELECT DISTINCT t2.id_t2 FROM t2, t1
-WHERE MATCH (t1.value) AGAINST ('baz333') AND t1.id = t2.id_t1;
-id_t2
-12346
-SELECT DISTINCT t2.id_t2 FROM t2, t1
-WHERE MATCH (t1.value) AGAINST ('baz333' IN BOOLEAN MODE)
-AND t1.id = t2.id_t1;
-id_t2
-12346
-DROP TABLE t1, t2;
diff --git a/mysql-test/r/fulltext_left_join.result b/mysql-test/r/fulltext_left_join.result
deleted file mode 100644
index d5373037538..00000000000
--- a/mysql-test/r/fulltext_left_join.result
+++ /dev/null
@@ -1,113 +0,0 @@
-drop table if exists t1, t2;
-CREATE TABLE t1 (
-id VARCHAR(255) NOT NULL PRIMARY KEY,
-sujet VARCHAR(255),
-motsclefs TEXT,
-texte MEDIUMTEXT,
-FULLTEXT(sujet, motsclefs, texte)
-);
-INSERT INTO t1 VALUES('123','toto','essai','test');
-INSERT INTO t1 VALUES('456','droit','penal','lawyer');
-INSERT INTO t1 VALUES('789','aaaaa','bbbbb','cccccc');
-CREATE TABLE t2 (
-id VARCHAR(255) NOT NULL,
-author VARCHAR(255) NOT NULL
-);
-INSERT INTO t2 VALUES('123', 'moi');
-INSERT INTO t2 VALUES('123', 'lui');
-INSERT INTO t2 VALUES('456', 'lui');
-select round(match(t1.texte,t1.sujet,t1.motsclefs) against('droit'),5)
-from t1 left join t2 on t2.id=t1.id;
-round(match(t1.texte,t1.sujet,t1.motsclefs) against('droit'),5)
-0.00000
-0.00000
-0.67003
-0.00000
-select match(t1.texte,t1.sujet,t1.motsclefs) against('droit' IN BOOLEAN MODE)
-from t1 left join t2 on t2.id=t1.id;
-match(t1.texte,t1.sujet,t1.motsclefs) against('droit' IN BOOLEAN MODE)
-0
-0
-1
-0
-drop table t1, t2;
-create table t1 (venue_id int(11) default null, venue_text varchar(255) default null, dt datetime default null) engine=myisam;
-insert into t1 (venue_id, venue_text, dt) values (1, 'a1', '2003-05-23 19:30:00'),(null, 'a2', '2003-05-23 19:30:00');
-create table t2 (name varchar(255) not null default '', entity_id int(11) not null auto_increment, primary key (entity_id), fulltext key name (name)) engine=myisam;
-insert into t2 (name, entity_id) values ('aberdeen town hall', 1), ('glasgow royal concert hall', 2), ('queen\'s hall, edinburgh', 3);
-select * from t1 left join t2 on venue_id = entity_id where match(name) against('aberdeen' in boolean mode) and dt = '2003-05-23 19:30:00';
-venue_id venue_text dt name entity_id
-1 a1 2003-05-23 19:30:00 aberdeen town hall 1
-select * from t1 left join t2 on venue_id = entity_id where match(name) against('aberdeen') and dt = '2003-05-23 19:30:00';
-venue_id venue_text dt name entity_id
-1 a1 2003-05-23 19:30:00 aberdeen town hall 1
-select * from t1 left join t2 on (venue_id = entity_id and match(name) against('aberdeen' in boolean mode)) where dt = '2003-05-23 19:30:00';
-venue_id venue_text dt name entity_id
-1 a1 2003-05-23 19:30:00 aberdeen town hall 1
-NULL a2 2003-05-23 19:30:00 NULL NULL
-select * from t1 left join t2 on (venue_id = entity_id and match(name) against('aberdeen')) where dt = '2003-05-23 19:30:00';
-venue_id venue_text dt name entity_id
-1 a1 2003-05-23 19:30:00 aberdeen town hall 1
-NULL a2 2003-05-23 19:30:00 NULL NULL
-drop table t1,t2;
-create table t1 (id int not null primary key, d char(200) not null, e char(200));
-insert into t1 values (1, 'aword', null), (2, 'aword', 'bword'), (3, 'bword', null), (4, 'bword', 'aword'), (5, 'aword and bword', null);
-select * from t1 where match(d, e) against ('+aword +bword' in boolean mode);
-id d e
-2 aword bword
-4 bword aword
-5 aword and bword NULL
-create table t2 (m_id int not null, f char(200), key (m_id));
-insert into t2 values (1, 'bword'), (3, 'aword'), (5, '');
-select * from t1 left join t2 on m_id = id where match(d, e, f) against ('+aword +bword' in boolean mode);
-id d e m_id f
-1 aword NULL 1 bword
-2 aword bword NULL NULL
-3 bword NULL 3 aword
-4 bword aword NULL NULL
-5 aword and bword NULL 5
-drop table t1,t2;
-CREATE TABLE t1 (
-id int(10) NOT NULL auto_increment,
-link int(10) default NULL,
-name mediumtext default NULL,
-PRIMARY KEY (id),
-FULLTEXT (name)
-);
-INSERT INTO t1 VALUES (1, 1, 'string');
-INSERT INTO t1 VALUES (2, 0, 'string');
-CREATE TABLE t2 (
-id int(10) NOT NULL auto_increment,
-name mediumtext default NULL,
-PRIMARY KEY (id),
-FULLTEXT (name)
-);
-INSERT INTO t2 VALUES (1, 'string');
-SELECT t1.*, MATCH(t1.name) AGAINST('string') AS relevance
-FROM t1 LEFT JOIN t2 ON t1.link = t2.id
-WHERE MATCH(t1.name, t2.name) AGAINST('string' IN BOOLEAN MODE);
-id link name relevance
-1 1 string 0
-2 0 string 0
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (b INT, c TEXT, KEY(b));
-INSERT INTO t1 VALUES(1);
-INSERT INTO t2(b,c) VALUES(2,'castle'),(3,'castle');
-SELECT * FROM t1 LEFT JOIN t2 ON a=b WHERE MATCH(c) AGAINST('+castle' IN BOOLEAN MODE);
-a b c
-DROP TABLE t1, t2;
-#
-# BUG#906357: Incorrect result with outer join and full text match
-#
-CREATE TABLE t1(f1 VARCHAR(6) NOT NULL, FULLTEXT KEY(f1), UNIQUE(f1));
-INSERT INTO t1 VALUES ('test');
-CREATE TABLE t2(f2 VARCHAR(6) NOT NULL, FULLTEXT KEY(f2), UNIQUE(f2));
-INSERT INTO t2 VALUES ('test');
-SELECT * FROM t2 LEFT OUTER JOIN t1 ON (MATCH(f1) against (""));
-f2 f1
-test NULL
-SELECT * FROM t1 RIGHT OUTER JOIN t2 ON (MATCH(f1) against (""));
-f1 f2
-NULL test
-DROP table t1,t2;
diff --git a/mysql-test/r/fulltext_multi.result b/mysql-test/r/fulltext_multi.result
deleted file mode 100644
index 289ee004395..00000000000
--- a/mysql-test/r/fulltext_multi.result
+++ /dev/null
@@ -1,29 +0,0 @@
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-a int(11) NOT NULL auto_increment,
-b text,
-c varchar(254) default NULL,
-PRIMARY KEY (a),
-FULLTEXT KEY bb(b),
-FULLTEXT KEY cc(c),
-FULLTEXT KEY a(b,c)
-);
-INSERT INTO t1 VALUES (1,'lala lolo lili','oooo aaaa pppp');
-INSERT INTO t1 VALUES (2,'asdf fdsa','lkjh fghj');
-INSERT INTO t1 VALUES (3,'qpwoei','zmxnvb');
-SELECT a, round(MATCH b AGAINST ('lala lkjh'),5) FROM t1;
-a round(MATCH b AGAINST ('lala lkjh'),5)
-1 0.67003
-2 0.00000
-3 0.00000
-SELECT a, round(MATCH c AGAINST ('lala lkjh'),5) FROM t1;
-a round(MATCH c AGAINST ('lala lkjh'),5)
-1 0.00000
-2 0.67756
-3 0.00000
-SELECT a, round(MATCH b,c AGAINST ('lala lkjh'),5) FROM t1;
-a round(MATCH b,c AGAINST ('lala lkjh'),5)
-1 0.64841
-2 0.66266
-3 0.00000
-drop table t1;
diff --git a/mysql-test/r/fulltext_order_by.result b/mysql-test/r/fulltext_order_by.result
deleted file mode 100644
index c2f57c6f9c2..00000000000
--- a/mysql-test/r/fulltext_order_by.result
+++ /dev/null
@@ -1,176 +0,0 @@
-DROP TABLE IF EXISTS t1,t2,t3;
-CREATE TABLE t1 (
-a INT AUTO_INCREMENT PRIMARY KEY,
-message CHAR(20),
-FULLTEXT(message)
-) comment = 'original testcase by sroussey@network54.com';
-INSERT INTO t1 (message) VALUES ("Testing"),("table"),("testbug"),
-("steve"),("is"),("cool"),("steve is cool");
-SELECT a, FORMAT(MATCH (message) AGAINST ('steve'),6) FROM t1 WHERE MATCH (message) AGAINST ('steve');
-a FORMAT(MATCH (message) AGAINST ('steve'),6)
-4 0.905873
-7 0.895690
-SELECT a, MATCH (message) AGAINST ('steve' IN BOOLEAN MODE) FROM t1 WHERE MATCH (message) AGAINST ('steve');
-a MATCH (message) AGAINST ('steve' IN BOOLEAN MODE)
-4 1
-7 1
-SELECT a, FORMAT(MATCH (message) AGAINST ('steve'),6) FROM t1 WHERE MATCH (message) AGAINST ('steve' IN BOOLEAN MODE);
-a FORMAT(MATCH (message) AGAINST ('steve'),6)
-4 0.905873
-7 0.895690
-SELECT a, MATCH (message) AGAINST ('steve' IN BOOLEAN MODE) FROM t1 WHERE MATCH (message) AGAINST ('steve' IN BOOLEAN MODE);
-a MATCH (message) AGAINST ('steve' IN BOOLEAN MODE)
-4 1
-7 1
-SELECT a, FORMAT(MATCH (message) AGAINST ('steve'),6) FROM t1 WHERE MATCH (message) AGAINST ('steve') ORDER BY a;
-a FORMAT(MATCH (message) AGAINST ('steve'),6)
-4 0.905873
-7 0.895690
-SELECT a, MATCH (message) AGAINST ('steve' IN BOOLEAN MODE) FROM t1 WHERE MATCH (message) AGAINST ('steve' IN BOOLEAN MODE) ORDER BY a;
-a MATCH (message) AGAINST ('steve' IN BOOLEAN MODE)
-4 1
-7 1
-SELECT a, FORMAT(MATCH (message) AGAINST ('steve'),6) FROM t1 WHERE a in (2,7,4) and MATCH (message) AGAINST ('steve') ORDER BY a DESC;
-a FORMAT(MATCH (message) AGAINST ('steve'),6)
-7 0.895690
-4 0.905873
-SELECT a, MATCH (message) AGAINST ('steve' IN BOOLEAN MODE) FROM t1 WHERE a in (2,7,4) and MATCH (message) AGAINST ('steve' IN BOOLEAN MODE) ORDER BY a DESC;
-a MATCH (message) AGAINST ('steve' IN BOOLEAN MODE)
-7 1
-4 1
-SELECT a, FORMAT(MATCH (message) AGAINST ('steve'),6) FROM t1 WHERE a=7 and MATCH (message) AGAINST ('steve') ORDER BY 1;
-a FORMAT(MATCH (message) AGAINST ('steve'),6)
-7 0.895690
-SELECT a, MATCH (message) AGAINST ('steve' IN BOOLEAN MODE) FROM t1 WHERE a=7 and MATCH (message) AGAINST ('steve' IN BOOLEAN MODE) ORDER BY 1;
-a MATCH (message) AGAINST ('steve' IN BOOLEAN MODE)
-7 1
-SELECT IF(a=7,'steve-is-cool',IF(a=4,'cool', 'other')), FORMAT(MATCH (message) AGAINST ('steve'),6) as rel FROM t1 ORDER BY rel;
-IF(a=7,'steve-is-cool',IF(a=4,'cool', 'other')) rel
-other 0.000000
-other 0.000000
-other 0.000000
-other 0.000000
-other 0.000000
-steve-is-cool 0.895690
-cool 0.905873
-SELECT IF(a=7,'match',IF(a=4,'match', 'no-match')), MATCH (message) AGAINST ('steve' IN BOOLEAN MODE) as rel FROM t1 ORDER BY rel;
-IF(a=7,'match',IF(a=4,'match', 'no-match')) rel
-no-match 0
-no-match 0
-no-match 0
-no-match 0
-no-match 0
-match 1
-match 1
-alter table t1 add key m (message);
-explain SELECT message FROM t1 WHERE MATCH (message) AGAINST ('steve') ORDER BY message;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 fulltext message message 0 1 Using where; Using filesort
-SELECT message FROM t1 WHERE MATCH (message) AGAINST ('steve') ORDER BY message desc;
-message
-steve is cool
-steve
-drop table t1;
-CREATE TABLE t1 (
-a INT AUTO_INCREMENT PRIMARY KEY,
-message CHAR(20),
-FULLTEXT(message)
-);
-INSERT INTO t1 (message) VALUES ("testbug"),("testbug foobar");
-SELECT a, MATCH (message) AGAINST ('t* f*' IN BOOLEAN MODE) as rel FROM t1;
-a rel
-1 1
-2 2
-SELECT a, MATCH (message) AGAINST ('t* f*' IN BOOLEAN MODE) as rel FROM t1 ORDER BY rel,a;
-a rel
-1 1
-2 2
-drop table t1;
-CREATE TABLE t1 (
-id int(11) NOT NULL auto_increment,
-thread int(11) NOT NULL default '0',
-beitrag longtext NOT NULL,
-PRIMARY KEY (id),
-KEY thread (thread),
-FULLTEXT KEY beitrag (beitrag)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=7923 ;
-CREATE TABLE t2 (
-id int(11) NOT NULL auto_increment,
-text varchar(100) NOT NULL default '',
-PRIMARY KEY (id),
-KEY text (text)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=63 ;
-CREATE TABLE t3 (
-id int(11) NOT NULL auto_increment,
-forum int(11) NOT NULL default '0',
-betreff varchar(70) NOT NULL default '',
-PRIMARY KEY (id),
-KEY forum (forum),
-FULLTEXT KEY betreff (betreff)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=996 ;
-select a.text, b.id, b.betreff
-from
-t2 a inner join t3 b on a.id = b.forum inner join
-t1 c on b.id = c.thread
-where
-match(b.betreff) against ('+abc' in boolean mode)
-group by a.text, b.id, b.betreff
-union
-select a.text, b.id, b.betreff
-from
-t2 a inner join t3 b on a.id = b.forum inner join
-t1 c on b.id = c.thread
-where
-match(c.beitrag) against ('+abc' in boolean mode)
-group by
-a.text, b.id, b.betreff
-order by
-match(b.betreff) against ('+abc' in boolean mode) desc;
-ERROR 42000: Table 'b' from one of the SELECTs cannot be used in field list
-select a.text, b.id, b.betreff
-from
-t2 a inner join t3 b on a.id = b.forum inner join
-t1 c on b.id = c.thread
-where
-match(b.betreff) against ('+abc' in boolean mode)
-union
-select a.text, b.id, b.betreff
-from
-t2 a inner join t3 b on a.id = b.forum inner join
-t1 c on b.id = c.thread
-where
-match(c.beitrag) against ('+abc' in boolean mode)
-order by
-match(b.betreff) against ('+abc' in boolean mode) desc;
-ERROR 42000: Table 'b' from one of the SELECTs cannot be used in field list
-select a.text, b.id, b.betreff
-from
-t2 a inner join t3 b on a.id = b.forum inner join
-t1 c on b.id = c.thread
-where
-match(b.betreff) against ('+abc' in boolean mode)
-union
-select a.text, b.id, b.betreff
-from
-t2 a inner join t3 b on a.id = b.forum inner join
-t1 c on b.id = c.thread
-where
-match(c.beitrag) against ('+abc' in boolean mode)
-order by
-match(betreff) against ('+abc' in boolean mode) desc;
-text id betreff
-(select b.id, b.betreff from t3 b) union
-(select b.id, b.betreff from t3 b)
-order by match(betreff) against ('+abc' in boolean mode) desc;
-id betreff
-(select b.id, b.betreff from t3 b) union
-(select b.id, b.betreff from t3 b)
-order by match(betreff) against ('+abc') desc;
-ERROR HY000: Can't find FULLTEXT index matching the column list
-select distinct b.id, b.betreff from t3 b
-order by match(betreff) against ('+abc' in boolean mode) desc;
-id betreff
-select b.id, b.betreff from t3 b group by b.id+1
-order by match(betreff) against ('+abc' in boolean mode) desc;
-id betreff
-drop table t1,t2,t3;
diff --git a/mysql-test/r/fulltext_update.result b/mysql-test/r/fulltext_update.result
deleted file mode 100644
index 5d3f95b318c..00000000000
--- a/mysql-test/r/fulltext_update.result
+++ /dev/null
@@ -1,22 +0,0 @@
-drop table if exists test;
-CREATE TABLE test (
-gnr INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
-url VARCHAR(80) DEFAULT '' NOT NULL,
-shortdesc VARCHAR(200) DEFAULT '' NOT NULL,
-longdesc text DEFAULT '' NOT NULL,
-description VARCHAR(80) DEFAULT '' NOT NULL,
-name VARCHAR(80) DEFAULT '' NOT NULL,
-FULLTEXT(url,description,shortdesc,longdesc),
-PRIMARY KEY(gnr)
-);
-insert into test (url,shortdesc,longdesc,description,name) VALUES
-("http:/test.at", "kurz", "lang","desc", "name");
-insert into test (url,shortdesc,longdesc,description,name) VALUES
-("http:/test.at", "kurz", "","desc", "name");
-update test set url='test', description='ddd', name='nam' where gnr=2;
-update test set url='test', shortdesc='ggg', longdesc='mmm',
-description='ddd', name='nam' where gnr=2;
-check table test;
-Table Op Msg_type Msg_text
-test.test check status OK
-drop table test;
diff --git a/mysql-test/r/fulltext_var.result b/mysql-test/r/fulltext_var.result
deleted file mode 100644
index 50afea2a500..00000000000
--- a/mysql-test/r/fulltext_var.result
+++ /dev/null
@@ -1,38 +0,0 @@
-drop table if exists t1;
-show variables like "ft\_%";
-Variable_name Value
-ft_boolean_syntax + -><()~*:""&|
-ft_max_word_len 84
-ft_min_word_len 4
-ft_query_expansion_limit 20
-ft_stopword_file (built-in)
-create table t1 (b text not null);
-insert t1 values ('aaaaaa bbbbbb cccccc');
-insert t1 values ('bbbbbb cccccc');
-insert t1 values ('aaaaaa cccccc');
-select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
-b
-aaaaaa bbbbbb cccccc
-aaaaaa cccccc
-set ft_boolean_syntax=' +-><()~*:""&|';
-ERROR HY000: Variable 'ft_boolean_syntax' is a GLOBAL variable and should be set with SET GLOBAL
-set global ft_boolean_syntax=' +-><()~*:""&|';
-select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
-b
-aaaaaa bbbbbb cccccc
-bbbbbb cccccc
-set global ft_boolean_syntax='@ -><()~*:""&|';
-select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
-b
-aaaaaa bbbbbb cccccc
-bbbbbb cccccc
-aaaaaa cccccc
-select * from t1 where match b against ('+aaaaaa @bbbbbb' in boolean mode);
-b
-aaaaaa bbbbbb cccccc
-bbbbbb cccccc
-set global ft_boolean_syntax='@ -><()~*:""@|';
-ERROR 42000: Variable 'ft_boolean_syntax' can't be set to the value of '@ -><()~*:""@|'
-set global ft_boolean_syntax='+ -><()~*:""@!|';
-ERROR 42000: Variable 'ft_boolean_syntax' can't be set to the value of '+ -><()~*:""@!|'
-drop table t1;
diff --git a/mysql-test/r/func_analyse.result b/mysql-test/r/func_analyse.result
deleted file mode 100644
index 1e78e603bca..00000000000
--- a/mysql-test/r/func_analyse.result
+++ /dev/null
@@ -1,173 +0,0 @@
-drop table if exists t1,t2;
-create table t1 (i int, j int, empty_string char(10), bool char(1), d date);
-insert into t1 values (1,2,"","Y","2002-03-03"), (3,4,"","N","2002-03-04"), (5,6,"","Y","2002-03-04"), (7,8,"","N","2002-03-05");
-select count(*) from t1 procedure analyse();
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-count(*) 4 4 1 1 0 0 4.0000 0.0000 ENUM('4') NOT NULL
-select * from t1 procedure analyse();
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-test.t1.i 1 7 1 1 0 0 4.0000 2.2361 ENUM('1','3','5','7') NOT NULL
-test.t1.j 2 8 1 1 0 0 5.0000 2.2361 ENUM('2','4','6','8') NOT NULL
-test.t1.empty_string 0 0 4 0 0.0000 NULL CHAR(0) NOT NULL
-test.t1.bool N Y 1 1 0 0 1.0000 NULL ENUM('N','Y') NOT NULL
-test.t1.d 2002-03-03 2002-03-05 10 10 0 0 10.0000 NULL ENUM('2002-03-03','2002-03-04','2002-03-05') NOT NULL
-select * from t1 procedure analyse(2);
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-test.t1.i 1 7 1 1 0 0 4.0000 2.2361 TINYINT(1) UNSIGNED NOT NULL
-test.t1.j 2 8 1 1 0 0 5.0000 2.2361 TINYINT(1) UNSIGNED NOT NULL
-test.t1.empty_string 0 0 4 0 0.0000 NULL CHAR(0) NOT NULL
-test.t1.bool N Y 1 1 0 0 1.0000 NULL ENUM('N','Y') NOT NULL
-test.t1.d 2002-03-03 2002-03-05 10 10 0 0 10.0000 NULL ENUM('2002-03-03','2002-03-04','2002-03-05') NOT NULL
-create table t2 select * from t1 procedure analyse();
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'procedure analyse()' at line 1
-drop table t1;
-EXPLAIN SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE();
-ERROR HY000: Incorrect usage of PROCEDURE and subquery
-create table t1 (v varchar(128));
-insert into t1 values ('abc'),('abc\'def\\hij\"klm\0opq'),('\''),('\"'),('\\'),('a\0'),('b\''),('c\"'),('d\\'),('\'b'),('\"c'),('\\d'),('a\0\0\0b'),('a\'\'\'\'b'),('a\"\"\"\"b'),('a\\\\\\\\b'),('\'\0\\\"'),('\'\''),('\"\"'),('\\\\'),('The\ZEnd');
-select * from t1 procedure analyse();
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-test.t1.v " \\ 1 19 0 0 3.7619 NULL ENUM('"','""','"c','\'\0\\"','\'','\'\'','\'b','a\0\0\0b','a\0','a""""b','a\'\'\'\'b','abc','abc\'def\\hij"klm\0opq','a\\\\\\\\b','b\'','c"','d\\','The\ZEnd','\\','\\d','\\\\') NOT NULL
-drop table t1;
-create table t1 (df decimal(5,1));
-insert into t1 values(1.1);
-insert into t1 values(2.2);
-select * from t1 procedure analyse();
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-test.t1.df 1.1 2.2 13 13 0 0 1.65000 0.55000 ENUM('1.1','2.2') NOT NULL
-drop table t1;
-create table t1 (d double);
-insert into t1 values (100000);
-select * from t1 procedure analyse (1,1);
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-test.t1.d 100000 100000 6 6 0 0 100000 0 MEDIUMINT(6) UNSIGNED NOT NULL
-drop table t1;
-create table t1 (product varchar(32), country_id int not null, year int,
-profit int);
-insert into t1 values ( 'Computer', 2,2000, 1200),
-( 'TV', 1, 1999, 150),
-( 'Calculator', 1, 1999,50),
-( 'Computer', 1, 1999,1500),
-( 'Computer', 1, 2000,1500),
-( 'TV', 1, 2000, 150),
-( 'TV', 2, 2000, 100),
-( 'TV', 2, 2000, 100),
-( 'Calculator', 1, 2000,75),
-( 'Calculator', 2, 2000,75),
-( 'TV', 1, 1999, 100),
-( 'Computer', 1, 1999,1200),
-( 'Computer', 2, 2000,1500),
-( 'Calculator', 2, 2000,75),
-( 'Phone', 3, 2003,10)
-;
-create table t2 (country_id int primary key, country char(20) not null);
-insert into t2 values (1, 'USA'),(2,'India'), (3,'Finland');
-select product, sum(profit),avg(profit) from t1 group by product with rollup procedure analyse();
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-test.t1.product Computer TV 2 8 0 0 4.2500 NULL ENUM('Computer','Phone','TV') NOT NULL
-sum(profit) 10 6900 11 11 0 0 1946.2500 2867.6719 ENUM('10','275','600','6900') NOT NULL
-avg(profit) 10.0000 1380.0000 16 16 0 0 394.68750000 570.20033144 ENUM('10.0000','68.7500','120.0000','1380.0000') NOT NULL
-drop table t1,t2;
-create table t1 (f1 double(10,5), f2 char(10), f3 double(10,5));
-insert into t1 values (5.999, "5.9999", 5.99999), (9.555, "9.5555", 9.55555);
-select f1 from t1 procedure analyse(1, 1);
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-test.t1.f1 5.99900 9.55500 7 7 0 0 7.77700 1.77800 FLOAT(4,3) NOT NULL
-select f2 from t1 procedure analyse(1, 1);
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-test.t1.f2 5.9999 9.5555 6 6 0 0 6.0000 NULL FLOAT(5,4) UNSIGNED NOT NULL
-select f3 from t1 procedure analyse(1, 1);
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-test.t1.f3 5.99999 9.55555 7 7 0 0 7.77777 1.77778 FLOAT(6,5) NOT NULL
-drop table t1;
-CREATE TABLE t1(a INT,b INT,c INT,d INT,e INT,f INT,g INT,h INT,i INT,j INT,k INT);
-INSERT INTO t1 VALUES ();
-SELECT * FROM (SELECT * FROM t1) d PROCEDURE ANALYSE();
-ERROR HY000: Incorrect usage of PROCEDURE and subquery
-DROP TABLE t1;
-End of 4.1 tests
-#
-# Bug #48293: crash with procedure analyse, view with > 10 columns,
-# having clause...
-#
-CREATE TABLE t1(a INT, b INT, c INT, d INT, e INT,
-f INT, g INT, h INT, i INT, j INT,k INT);
-INSERT INTO t1 VALUES (),();
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-#should have a derived table
-EXPLAIN SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 2
-#should not crash
-SELECT * FROM v1 PROCEDURE analyse();
-ERROR HY000: Incorrect usage of PROCEDURE and view
-#should not crash
-SELECT * FROM t1 a, v1, t1 b PROCEDURE analyse();
-ERROR HY000: Incorrect usage of PROCEDURE and view
-#should not crash
-SELECT * FROM (SELECT * FROM t1 having a > 1) x PROCEDURE analyse();
-ERROR HY000: Incorrect usage of PROCEDURE and subquery
-#should not crash
-SELECT * FROM t1 a, (SELECT * FROM t1 having a > 1) x, t1 b PROCEDURE analyse();
-ERROR HY000: Incorrect usage of PROCEDURE and subquery
-#should not crash
-SELECT 1 FROM t1 group by a having a > 1 order by 1 PROCEDURE analyse();
-ERROR HY000: Can't use ORDER clause with this procedure
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (1),(2);
-# should not crash
-CREATE TABLE t2 SELECT 1 FROM t1, t1 t3 GROUP BY t3.a PROCEDURE ANALYSE();
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE()' at line 1
-DROP TABLE t1;
-End of 5.0 tests
-#
-# Bug#11765202: Dbug_violation_helper::~Dbug_violation_helper(): Assertion `!_entered' failed.
-#
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1 (a VARCHAR(2) CHARSET UTF8 NOT NULL);
-INSERT INTO t1 VALUES ('e'),('e'),('e-');
-SELECT * FROM t1 PROCEDURE ANALYSE();
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-test.t1.a e e- 1 2 0 0 1.3333 NULL ENUM('e','e-') NOT NULL
-DROP TABLE t1;
-#
-# Bug#11756242 48137: PROCEDURE ANALYSE() LEAKS MEMORY WHEN RETURNING NULL
-#
-CREATE TABLE t1(f1 INT) ENGINE=MYISAM;
-CREATE TABLE t2(f2 INT) ENGINE=INNODB;
-INSERT INTO t2 VALUES (1);
-SELECT DISTINCTROW f1 FROM t1 NATURAL RIGHT OUTER JOIN t2 PROCEDURE ANALYSE();
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-test.t1.f1 NULL NULL 0 0 0 1 0.0 0.0 CHAR(0)
-SELECT * FROM t2 LIMIT 1 PROCEDURE ANALYSE();
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-test.t2.f2 1 1 1 1 0 0 1.0000 0.0000 ENUM('1') NOT NULL
-DROP TABLE t1, t2;
-End of 5.1 tests
-#
-# Start of 10.2 tests
-#
-(SELECT 1 FROM DUAL PROCEDURE ANALYSE());
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-1 1 1 1 1 0 0 1.0000 0.0000 ENUM('1') NOT NULL
-((SELECT 1 FROM DUAL PROCEDURE ANALYSE()));
-Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
-1 1 1 1 1 0 0 1.0000 0.0000 ENUM('1') NOT NULL
-SELECT * FROM t1 UNION SELECT * FROM t1 PROCEDURE analyse();
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE analyse()' at line 1
-#
-# MDEV-10030 sql_yacc.yy: Split table_expression and remove PROCEDURE from create_select, select_paren_derived, select_derived2, query_specification
-#
-SELECT * FROM (SELECT * FROM t1 PROCEDURE ANALYSE());
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE())' at line 1
-SELECT * FROM t1 NATURAL JOIN (SELECT * FROM t2 PROCEDURE ANALYSE());
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE())' at line 1
-SELECT (SELECT 1 FROM t1 PROCEDURE ANALYSE()) FROM t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE()) FROM t2' at line 1
-SELECT ((SELECT 1 FROM t1 PROCEDURE ANALYSE())) FROM t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE())) FROM t2' at line 1
diff --git a/mysql-test/r/func_compress.result b/mysql-test/r/func_compress.result
deleted file mode 100644
index 60ddd866507..00000000000
--- a/mysql-test/r/func_compress.result
+++ /dev/null
@@ -1,216 +0,0 @@
-set global max_allowed_packet=1048576;
-connect conn1,localhost,root,,;
-connection conn1;
-select @test_compress_string:='string for test compress function aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ';
-@test_compress_string:='string for test compress function aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa '
-string for test compress function aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-select length(@test_compress_string);
-length(@test_compress_string)
-117
-select uncompress(compress(@test_compress_string));
-uncompress(compress(@test_compress_string))
-string for test compress function aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-explain extended select uncompress(compress(@test_compress_string));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select uncompress(compress(@`test_compress_string`)) AS `uncompress(compress(@test_compress_string))`
-select uncompressed_length(compress(@test_compress_string))=length(@test_compress_string);
-uncompressed_length(compress(@test_compress_string))=length(@test_compress_string)
-1
-explain extended select uncompressed_length(compress(@test_compress_string))=length(@test_compress_string);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select uncompressed_length(compress(@`test_compress_string`)) = octet_length(@`test_compress_string`) AS `uncompressed_length(compress(@test_compress_string))=length(@test_compress_string)`
-select uncompressed_length(compress(@test_compress_string));
-uncompressed_length(compress(@test_compress_string))
-117
-select length(compress(@test_compress_string))<length(@test_compress_string);
-length(compress(@test_compress_string))<length(@test_compress_string)
-1
-create table t1 (a text, b char(255), c char(4)) engine=myisam;
-insert into t1 (a,b,c) values (compress(@test_compress_string),compress(@test_compress_string),'d ');
-select uncompress(a) from t1;
-uncompress(a)
-string for test compress function aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-select uncompress(b) from t1;
-uncompress(b)
-string for test compress function aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-select concat('|',c,'|') from t1;
-concat('|',c,'|')
-|d|
-drop table t1;
-select compress("");
-compress("")
-
-select uncompress("");
-uncompress("")
-
-select uncompress(compress(""));
-uncompress(compress(""))
-
-select uncompressed_length("");
-uncompressed_length("")
-0
-create table t1 (a text);
-insert t1 values (compress(null)), ('A\0\0\0BBBBBBBB'), (compress(space(50000))), (space(50000));
-select length(a) from t1;
-length(a)
-NULL
-12
-76
-50000
-select length(uncompress(a)) from t1;
-length(uncompress(a))
-NULL
-NULL
-50000
-NULL
-Warnings:
-Warning 1259 ZLIB: Input data corrupted
-Warning 1256 Uncompressed data size too large; the maximum size is 1048576 (probably, length of uncompressed data was corrupted)
-drop table t1;
-set @@global.max_allowed_packet=1048576*100;
-connect newconn, localhost, root,,;
-select compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null;
-compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: XXX
-Warning 1292 Truncated incorrect DOUBLE value: XXX
-disconnect newconn;
-connection default;
-set @@global.max_allowed_packet=default;
-create table t1(a blob);
-insert into t1 values(NULL), (compress('a'));
-select uncompress(a), uncompressed_length(a) from t1;
-uncompress(a) uncompressed_length(a)
-NULL NULL
-a 1
-drop table t1;
-create table t1(a blob);
-insert into t1 values ('0'), (NULL), ('0');
-select compress(a), compress(a) from t1;
-select compress(a) is null from t1;
-compress(a) is null
-0
-1
-0
-drop table t1;
-End of 4.1 tests
-create table t1 (a varchar(32) not null);
-insert into t1 values ('foo');
-explain select * from t1 where uncompress(a) is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-Warnings:
-Warning 1259 ZLIB: Input data corrupted
-select * from t1 where uncompress(a) is null;
-a
-foo
-Warnings:
-Warning 1259 ZLIB: Input data corrupted
-explain select *, uncompress(a) from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-select *, uncompress(a) from t1;
-a uncompress(a)
-foo NULL
-Warnings:
-Warning 1259 ZLIB: Input data corrupted
-select *, uncompress(a), uncompress(a) is null from t1;
-a uncompress(a) uncompress(a) is null
-foo NULL 1
-Warnings:
-Warning 1259 ZLIB: Input data corrupted
-Warning 1259 ZLIB: Input data corrupted
-drop table t1;
-CREATE TABLE t1 (c1 INT);
-INSERT INTO t1 VALUES (1), (1111), (11111);
-SELECT UNCOMPRESS(c1), UNCOMPRESSED_LENGTH(c1) FROM t1;
-UNCOMPRESS(c1) UNCOMPRESSED_LENGTH(c1)
-NULL NULL
-NULL NULL
-NULL 825307441
-EXPLAIN EXTENDED SELECT * FROM (SELECT UNCOMPRESSED_LENGTH(c1) FROM t1) AS s;
-DROP TABLE t1;
-End of 5.0 tests
-#
-# Start of 5.3 tests
-#
-#
-# MDEV-5783 Assertion `0' failed in make_sortkey(SORTPARAM*, uchar*, uchar*) on ORDER BY HEX(UNCOMPRESSED_LENGTH(pk))
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY);
-INSERT INTO t1 VALUES (1),(2);
-SELECT UNCOMPRESSED_LENGTH(pk) FROM t1;
-UNCOMPRESSED_LENGTH(pk)
-NULL
-NULL
-Warnings:
-Warning 1259 ZLIB: Input data corrupted
-Warning 1259 ZLIB: Input data corrupted
-SELECT * FROM t1 ORDER BY HEX(UNCOMPRESSED_LENGTH(pk));
-DROP TABLE t1;
-#
-# End of 5.3 tests
-#
-SELECT UNCOMPRESS(CAST(0 AS BINARY(5)));
-UNCOMPRESS(CAST(0 AS BINARY(5)))
-NULL
-Warnings:
-Warning 1259 ZLIB: Input data corrupted
-disconnect conn1;
-connection default;
-set global max_allowed_packet=default;
-#
-# End of 5.5 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-10864 Wrong result for WHERE .. (f2=COMPRESS('test') OR f2=COMPRESS('TEST'))
-#
-CREATE TABLE t1 (f1 VARCHAR(4), f2 VARCHAR(64), UNIQUE KEY k1 (f1,f2));
-INSERT INTO t1 VALUES ('test',compress('test')), ('TEST', compress('TEST'));
-SELECT f1,HEX(f2) FROM t1 ignore index(k1) WHERE f1='test' AND (f2= compress("test") OR f2= compress("TEST"));
-f1 HEX(f2)
-test 04000000789C2B492D2E0100045D01C1
-TEST 04000000789C0B710D0E0100031D0141
-SELECT f1,HEX(f2) FROM t1 WHERE f1='test' AND (f2= compress("test") OR f2= compress("TEST"));
-f1 HEX(f2)
-TEST 04000000789C0B710D0E0100031D0141
-test 04000000789C2B492D2E0100045D01C1
-SELECT f1,HEX(f2) FROM t1 WHERE f1='test' AND (f2= compress("TEST") OR f2= compress("test"));
-f1 HEX(f2)
-TEST 04000000789C0B710D0E0100031D0141
-test 04000000789C2B492D2E0100045D01C1
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10134 Add full support for DEFAULT
-#
-CREATE TABLE t1 (a TEXT, b BLOB DEFAULT COMPRESS(a), bl INT DEFAULT UNCOMPRESSED_LENGTH(b), a1 TEXT DEFAULT UNCOMPRESS(b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text DEFAULT NULL,
- `b` blob DEFAULT compress(`a`),
- `bl` int(11) DEFAULT uncompressed_length(`b`),
- `a1` text DEFAULT uncompress(`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (REPEAT('a',100));
-SELECT bl, a1 FROM t1;
-bl a1
-100 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/func_concat.result b/mysql-test/r/func_concat.result
deleted file mode 100644
index 9ab6f74653e..00000000000
--- a/mysql-test/r/func_concat.result
+++ /dev/null
@@ -1,270 +0,0 @@
-DROP TABLE IF EXISTS t1;
-DROP PROCEDURE IF EXISTS p1;
-CREATE TABLE t1 ( number INT NOT NULL, alpha CHAR(6) NOT NULL );
-INSERT INTO t1 VALUES (1413006,'idlfmv'),
-(1413065,'smpsfz'),(1413127,'sljrhx'),(1413304,'qerfnd');
-SELECT number, alpha, CONCAT_WS('<---->',number,alpha) AS new
-FROM t1 GROUP BY number;
-number alpha new
-1413006 idlfmv 1413006<---->idlfmv
-1413065 smpsfz 1413065<---->smpsfz
-1413127 sljrhx 1413127<---->sljrhx
-1413304 qerfnd 1413304<---->qerfnd
-SELECT CONCAT_WS('<---->',number,alpha) AS new
-FROM t1 GROUP BY new LIMIT 1;
-new
-1413006<---->idlfmv
-SELECT number, alpha, CONCAT_WS('<->',number,alpha) AS new
-FROM t1 GROUP BY new LIMIT 1;
-number alpha new
-1413006 idlfmv 1413006<->idlfmv
-SELECT number, alpha, CONCAT_WS('-',number,alpha,alpha,alpha,alpha,alpha,alpha,alpha) AS new
-FROM t1 GROUP BY new LIMIT 1;
-number alpha new
-1413006 idlfmv 1413006-idlfmv-idlfmv-idlfmv-idlfmv-idlfmv-idlfmv-idlfmv
-SELECT number, alpha, CONCAT_WS('<------------------>',number,alpha) AS new
-FROM t1 GROUP BY new LIMIT 1;
-number alpha new
-1413006 idlfmv 1413006<------------------>idlfmv
-drop table t1;
-create table t1 (a char(4), b double, c date, d tinyint(4));
-insert into t1 values ('AAAA', 105, '2003-03-01', 1);
-select * from t1 where concat(A,C,B,D) = 'AAAA2003-03-011051';
-a b c d
-AAAA 105 2003-03-01 1
-drop table t1;
-select 'a' union select concat('a', -4);
-a
-a
-a-4
-select 'a' union select concat('a', -4.5);
-a
-a
-a-4.5
-select 'a' union select concat('a', -(4 + 1));
-a
-a
-a-5
-select 'a' union select concat('a', 4 - 5);
-a
-a
-a-1
-select 'a' union select concat('a', -'3');
-a
-a
-a-3
-select 'a' union select concat('a', -concat('3',4));
-a
-a
-a-34
-select 'a' union select concat('a', -0);
-a
-a
-a0
-select 'a' union select concat('a', -0.0);
-a
-a
-a0.0
-select 'a' union select concat('a', -0.0000);
-a
-a
-a0.0000
-select concat((select x from (select 'a' as x) as t1 ),
-(select y from (select 'b' as y) as t2 )) from (select 1 union select 2 )
-as t3;
-concat((select x from (select 'a' as x) as t1 ),
-(select y from (select 'b' as y) as t2 ))
-ab
-ab
-create table t1(f1 varchar(6)) charset=utf8;
-insert into t1 values ("123456");
-select concat(f1, 2) a from t1 union select 'x' a from t1;
-a
-1234562
-x
-drop table t1;
-CREATE TABLE t1 (c1 varchar(100), c2 varchar(100));
-INSERT INTO t1 VALUES ('',''), ('','First'), ('Random','Random');
-SELECT * FROM t1 WHERE CONCAT(c1,' ',c2) REGEXP 'First.*';
-c1 c2
- First
-DROP TABLE t1;
-# End of 5.0 tests
-#
-# Bug #44743: Join in combination with concat does not always work
-#
-CREATE TABLE t1 (
-a VARCHAR(100) NOT NULL DEFAULT '0',
-b VARCHAR(2) NOT NULL DEFAULT '',
-c VARCHAR(2) NOT NULL DEFAULT '',
-d TEXT NOT NULL,
-PRIMARY KEY (a, b, c),
-KEY (a)
-) DEFAULT CHARSET=utf8;
-INSERT INTO t1 VALUES ('gui_A', 'a', 'b', 'str1'),
-('gui_AB', 'a', 'b', 'str2'), ('gui_ABC', 'a', 'b', 'str3');
-CREATE TABLE t2 (
-a VARCHAR(100) NOT NULL DEFAULT '',
-PRIMARY KEY (a)
-) DEFAULT CHARSET=latin1;
-INSERT INTO t2 VALUES ('A'), ('AB'), ('ABC');
-SELECT CONCAT('gui_', t2.a), t1.d FROM t2
-LEFT JOIN t1 ON t1.a = CONCAT('gui_', t2.a) AND t1.b = 'a' AND t1.c = 'b';
-CONCAT('gui_', t2.a) d
-gui_A str1
-gui_AB str2
-gui_ABC str3
-EXPLAIN SELECT CONCAT('gui_', t2.a), t1.d FROM t2
-LEFT JOIN t1 ON t1.a = CONCAT('gui_', t2.a) AND t1.b = 'a' AND t1.c = 'b';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL PRIMARY 102 NULL 3 Using index
-1 SIMPLE t1 eq_ref PRIMARY,a PRIMARY 318 func,const,const 1 Using where
-DROP TABLE t1, t2;
-#
-# Bug #50096: CONCAT_WS inside procedure returning wrong data
-#
-CREATE PROCEDURE p1(a varchar(255), b int, c int)
-SET @query = CONCAT_WS(",", a, b, c);
-CALL p1("abcde", "0", "1234");
-SELECT @query;
-@query
-abcde,0,1234
-DROP PROCEDURE p1;
-#
-# Bug #40625: Concat fails on DOUBLE values in a Stored Procedure,
-# while DECIMAL works
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE v1 DOUBLE(10,3);
-SET v1= 100;
-SET @s = CONCAT('########################################', 40 , v1);
-SELECT @s;
-END;//
-CALL p1();
-@s
-########################################40100.000
-CALL p1();
-@s
-########################################40100.000
-DROP PROCEDURE p1;
-# End of 5.1 tests
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-10306 Wrong results with combination of CONCAT, SUBSTR and CONVERT in subquery
-#
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='derived_merge=on';
-CREATE TABLE t1 (t VARCHAR(10) CHARSET latin1);
-INSERT INTO t1 VALUES('1234567');
-SELECT CONCAT(SUBSTR(t2, 1, 3), SUBSTR(t2, 5)) c1,
-CONCAT(SUBSTR(t2,1,3),'---',SUBSTR(t2,5)) c2
-FROM (SELECT CONVERT(t USING latin1) t2 FROM t1) sub;
-c1 c2
-123567 123---567
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT CONVERT(t USING latin1) t2 FROM t1) sub;
-c2
-1234567-1234567
-DROP TABLE t1;
-CREATE TABLE t1 (t VARCHAR(10) CHARSET latin1);
-INSERT INTO t1 VALUES('1234567');
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT CONVERT(t USING latin1) t2 FROM t1) sub;
-c2
-1234567-1234567
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT REVERSE(t) t2 FROM t1) sub;
-c2
-7654321-7654321
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT SOUNDEX(t) t2 FROM t1) sub;
-c2
--
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT TO_BASE64(t) t2 FROM t1) sub;
-c2
-MTIzNDU2Nw==-MTIzNDU2Nw==
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT WEIGHT_STRING(t) t2 FROM t1) sub;
-c2
-1234567-1234567
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT HEX(t) t2 FROM t1) sub;
-c2
-31323334353637-31323334353637
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT QUOTE(t) t2 FROM t1) sub;
-c2
-'1234567'-'1234567'
-DROP TABLE t1;
-CREATE TABLE t1 (t VARCHAR(32) CHARSET latin1);
-INSERT INTO t1 VALUES(TO_BASE64('abcdefghi'));
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT FROM_BASE64(t) t2 FROM t1) sub;
-c2
-abcdefghi-abcdefghi
-DROP TABLE t1;
-CREATE TABLE t1 (t VARCHAR(32) CHARSET latin1);
-INSERT INTO t1 VALUES(HEX('abcdefghi'));
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT UNHEX(t) t2 FROM t1) sub;
-c2
-abcdefghi-abcdefghi
-DROP TABLE t1;
-CREATE TABLE t1 (t VARCHAR(30) CHARSET latin1);
-INSERT INTO t1 VALUES('test');
-SELECT LENGTH(CONCAT(t2)) c2 FROM (SELECT AES_ENCRYPT(t,'x') t2 FROM t1) sub;
-c2
-16
-SELECT LENGTH(CONCAT(t2,'-',t2)) c2 FROM (SELECT AES_ENCRYPT(t,'x') t2 FROM t1) sub;
-c2
-33
-SELECT LENGTH(CONCAT(t2,'--',t2)) c2 FROM (SELECT AES_ENCRYPT(t,'x') t2 FROM t1) sub;
-c2
-34
-SELECT LENGTH(CONCAT(t2)) c2 FROM (SELECT AES_DECRYPT(AES_ENCRYPT(t,'x'),'x') t2 FROM t1) sub;
-c2
-4
-SELECT LENGTH(CONCAT(t2,'-',t2)) c2 FROM (SELECT AES_DECRYPT(AES_ENCRYPT(t,'x'),'x') t2 FROM t1) sub;
-c2
-9
-SELECT LENGTH(CONCAT(t2,'--',t2)) c2 FROM (SELECT AES_DECRYPT(AES_ENCRYPT(t,'x'),'x') t2 FROM t1) sub;
-c2
-10
-DROP TABLE t1;
-CREATE TABLE t1 (t VARCHAR(64) CHARSET latin1);
-INSERT INTO t1 VALUES('123456789');
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT MD5(t) t2 FROM t1) sub;
-c2
-25f9e794323b453885f5181f1b624d0b-25f9e794323b453885f5181f1b624d0b
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT FORMAT(t,2) t2 FROM t1) sub;
-c2
-123,456,789.00-123,456,789.00
-DROP TABLE t1;
-CREATE TABLE t1 (t VARCHAR(32) CHARSET latin1);
-INSERT INTO t1 VALUES('abcdefghi');
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT INSERT(t,3,4,'xxx') t2 FROM t1) sub;
-c2
-abxxxghi-abxxxghi
-DROP TABLE t1;
-CREATE TABLE t1 (t VARCHAR(10) CHARSET latin1);
-INSERT INTO t1 VALUES('abcdefghi');
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT LEFT(t,10) t2 FROM t1) sub;
-c2
-abcdefghi-abcdefghi
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT RIGHT(t,10) t2 FROM t1) sub;
-c2
-abcdefghi-abcdefghi
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT SUBSTR(t,1,10) t2 FROM t1) sub;
-c2
-abcdefghi-abcdefghi
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT LTRIM(t) t2 FROM t1) sub;
-c2
-abcdefghi-abcdefghi
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT RTRIM(t) t2 FROM t1) sub;
-c2
-abcdefghi-abcdefghi
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT TRIM(t) t2 FROM t1) sub;
-c2
-abcdefghi-abcdefghi
-DROP TABLE t1;
-SET optimizer_switch=@save_optimizer_switch;
-#
-# MDEV-13790 UNHEX() of a somewhat complicated CONCAT() returns NULL
-#
-SELECT UNHEX(CONCAT('414C2', HEX(8 + ROUND(RAND()*7)), SUBSTR(SHA(UUID()),6,33),HEX(2+ROUND(RAND()*8)))) IS NULL AS c1;
-c1
-0
diff --git a/mysql-test/r/func_crypt.result b/mysql-test/r/func_crypt.result
deleted file mode 100644
index aaa6aa61eae..00000000000
--- a/mysql-test/r/func_crypt.result
+++ /dev/null
@@ -1,216 +0,0 @@
-drop table if exists t1;
-select length(encrypt('foo', 'ff')) <> 0;
-length(encrypt('foo', 'ff')) <> 0
-1
-create table t1 (name varchar(50), pw varchar(64));
-insert into t1 values ('tom', password('my_pass'));
-set @pass='my_pass';
-select name from t1 where name='tom' and pw=password(@pass);
-name
-tom
-select name from t1 where name='tom' and pw=password(@undefined);
-name
-drop table t1;
-select password('abc');
-password('abc')
-*0D3CED9BEC10A777AEC23CCC353A8C08A633045E
-select password('');
-password('')
-
-select old_password('abc');
-old_password('abc')
-7cd2b5942be28759
-select old_password('');
-old_password('')
-
-select password('gabbagabbahey');
-password('gabbagabbahey')
-*B0F99D2963660DD7E16B751EC9EE2F17B6A68FA6
-select old_password('idkfa');
-old_password('idkfa')
-5c078dc54ca0fcca
-select length(password('1'));
-length(password('1'))
-41
-select length(encrypt('test'));
-length(encrypt('test'))
-13
-select encrypt('test','aa');
-encrypt('test','aa')
-aaqPiZY5xR5l.
-select old_password(NULL);
-old_password(NULL)
-NULL
-select password(NULL);
-password(NULL)
-
-set global old_passwords=on;
-select password('');
-password('')
-
-select old_password('');
-old_password('')
-
-select password('idkfa');
-password('idkfa')
-*B669C9DAC3AA6F2254B03CDEF8DFDD6B2D1054BA
-select old_password('idkfa');
-old_password('idkfa')
-5c078dc54ca0fcca
-set old_passwords=on;
-select password('idkfa');
-password('idkfa')
-5c078dc54ca0fcca
-select old_password('idkfa');
-old_password('idkfa')
-5c078dc54ca0fcca
-set global old_passwords=off;
-select password('idkfa');
-password('idkfa')
-5c078dc54ca0fcca
-select old_password('idkfa');
-old_password('idkfa')
-5c078dc54ca0fcca
-set old_passwords=off;
-select password('idkfa ');
-password('idkfa ')
-*2DC31D90647B4C1ABC9231563D2236E96C9A2DB2
-select password('idkfa');
-password('idkfa')
-*B669C9DAC3AA6F2254B03CDEF8DFDD6B2D1054BA
-select password(' idkfa');
-password(' idkfa')
-*12B099E56BB7FE8D43C78FD834A9D1D11178D045
-select old_password('idkfa');
-old_password('idkfa')
-5c078dc54ca0fcca
-select old_password(' i d k f a ');
-old_password(' i d k f a ')
-5c078dc54ca0fcca
-explain extended select password('idkfa '), old_password('idkfa');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select password('idkfa ') AS `password('idkfa ')`,old_password('idkfa') AS `old_password('idkfa')`
-select encrypt('1234','_.');
-encrypt('1234','_.')
-#
-#
-# Bug #44767: invalid memory reads in password() and old_password()
-# functions
-#
-CREATE TABLE t1(c1 MEDIUMBLOB);
-INSERT INTO t1 VALUES (REPEAT('a', 1024));
-SELECT OLD_PASSWORD(c1), PASSWORD(c1) FROM t1;
-OLD_PASSWORD(c1) PASSWORD(c1)
-77023ffe214c04ff *82E58A2C08AAFE72C8EB523069CD8ADB33F78F58
-DROP TABLE t1;
-# End of 5.0 tests
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-10306 Wrong results with combination of CONCAT, SUBSTR and CONVERT in subquery
-#
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='derived_merge=on';
-CREATE TABLE t1 (t VARCHAR(32) CHARSET latin1);
-INSERT INTO t1 VALUES('abcdefghi');
-SELECT CONCAT(t2,'-',t2) c2 FROM (SELECT ENCRYPT(t,'aa') t2 FROM t1) sub;
-c2
-aaHHlPHAM4sjs-aaHHlPHAM4sjs
-DROP TABLE t1;
-SET optimizer_switch=@save_optimizer_switch;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-# Start of func_str_ascii_checksum.inc
-#
-# MDEV-10850 Wrong result for WHERE .. (f2=TO_BASE64('test') OR f2=TO_BASE64('TEST'))
-#
-CREATE TABLE t1 (f1 VARCHAR(4), f2 VARCHAR(255), UNIQUE KEY k1 (f1,f2));
-INSERT INTO t1 VALUES ('test',password('test')), ('TEST', password('TEST'));
-SELECT * FROM t1 IGNORE INDEX(k1) WHERE f1='test' AND (f2= password("test") OR f2= password("TEST"));
-f1 f2
-test *94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29
-TEST *47A6B0EA08A36FAEBE4305B373FE37E3CF27C357
-SELECT * FROM t1 WHERE f1='test' AND (f2= password("test") OR f2= password("TEST"));
-f1 f2
-TEST *47A6B0EA08A36FAEBE4305B373FE37E3CF27C357
-test *94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29
-SELECT * FROM t1 WHERE f1='test' AND (f2= password("TEST") OR f2= password("test"));
-f1 f2
-TEST *47A6B0EA08A36FAEBE4305B373FE37E3CF27C357
-test *94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29
-DROP TABLE t1;
-#
-# MDEV-10425 Assertion `collation.derivation == DERIVATION_IMPLICIT' failed in Item_func_conv_charset::fix_length_and_dec()
-#
-PREPARE stmt FROM "SELECT password(CONVERT('foo' USING latin1))";
-EXECUTE stmt;
-password(CONVERT('foo' USING latin1))
-*F3A2A51A9B0F2BE2468926B4132313728C250DBF
-DEALLOCATE PREPARE stmt;
-# End of func_str_ascii_checksum.inc
-# Start of func_str_ascii_checksum.inc
-#
-# MDEV-10850 Wrong result for WHERE .. (f2=TO_BASE64('test') OR f2=TO_BASE64('TEST'))
-#
-CREATE TABLE t1 (f1 VARCHAR(4), f2 VARCHAR(255), UNIQUE KEY k1 (f1,f2));
-INSERT INTO t1 VALUES ('test',old_password('test')), ('TEST', old_password('TEST'));
-SELECT * FROM t1 IGNORE INDEX(k1) WHERE f1='test' AND (f2= old_password("test") OR f2= old_password("TEST"));
-f1 f2
-test 378b243e220ca493
-TEST 06df397e084be793
-SELECT * FROM t1 WHERE f1='test' AND (f2= old_password("test") OR f2= old_password("TEST"));
-f1 f2
-TEST 06df397e084be793
-test 378b243e220ca493
-SELECT * FROM t1 WHERE f1='test' AND (f2= old_password("TEST") OR f2= old_password("test"));
-f1 f2
-TEST 06df397e084be793
-test 378b243e220ca493
-DROP TABLE t1;
-#
-# MDEV-10425 Assertion `collation.derivation == DERIVATION_IMPLICIT' failed in Item_func_conv_charset::fix_length_and_dec()
-#
-PREPARE stmt FROM "SELECT old_password(CONVERT('foo' USING latin1))";
-EXECUTE stmt;
-old_password(CONVERT('foo' USING latin1))
-7c786c222596437b
-DEALLOCATE PREPARE stmt;
-# End of func_str_ascii_checksum.inc
-#
-# MDEV-10864 Wrong result for WHERE .. (f2=COMPRESS('test') OR f2=COMPRESS('TEST'))
-#
-CREATE TABLE t1 (f1 VARCHAR(4), f2 VARCHAR(64), UNIQUE KEY k1 (f1,f2));
-INSERT INTO t1 VALUES ('test',encrypt('test','key')), ('TEST', encrypt('TEST','key'));
-SELECT f1 FROM t1 ignore index(k1) WHERE f1='test' AND (f2= encrypt('test','key') OR f2= encrypt('TEST','key'));
-f1
-test
-TEST
-SELECT f1 FROM t1 WHERE f1='test' AND (f2= encrypt('test','key') OR f2= encrypt('TEST','key'));
-f1
-TEST
-test
-SELECT f1 FROM t1 WHERE f1='test' AND (f2= encrypt('TEST','key') OR f2= encrypt('test','key'));
-f1
-TEST
-test
-DROP TABLE t1;
-# Start of 10.2 tests
-CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(30) DEFAULT ENCRYPT(a,123));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(30) DEFAULT encrypt(`a`,123)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('hello');
-SELECT * FROM t1;
-a b
-hello 12NKz5XM5JeKI
-DROP TABLE t1;
diff --git a/mysql-test/r/func_date_add.result b/mysql-test/r/func_date_add.result
deleted file mode 100644
index a6201a3c23f..00000000000
--- a/mysql-test/r/func_date_add.result
+++ /dev/null
@@ -1,202 +0,0 @@
-drop table if exists t1;
-CREATE TABLE t1 (
-visitor_id int(10) unsigned DEFAULT '0' NOT NULL,
-group_id int(10) unsigned DEFAULT '0' NOT NULL,
-hits int(10) unsigned DEFAULT '0' NOT NULL,
-sessions int(10) unsigned DEFAULT '0' NOT NULL,
-ts timestamp,
-PRIMARY KEY (visitor_id,group_id)
-)/*! engine=MyISAM */;
-INSERT INTO t1 VALUES (465931136,7,2,2,20000318160952);
-INSERT INTO t1 VALUES (173865424,2,2,2,20000318233615);
-INSERT INTO t1 VALUES (173865424,8,2,2,20000318233615);
-INSERT INTO t1 VALUES (173865424,39,2,2,20000318233615);
-INSERT INTO t1 VALUES (173865424,7,2,2,20000318233615);
-INSERT INTO t1 VALUES (173865424,3,2,2,20000318233615);
-INSERT INTO t1 VALUES (173865424,6,2,2,20000318233615);
-INSERT INTO t1 VALUES (173865424,60,2,2,20000318233615);
-INSERT INTO t1 VALUES (173865424,1502,2,2,20000318233615);
-INSERT INTO t1 VALUES (48985536,2,2,2,20000319013932);
-INSERT INTO t1 VALUES (48985536,8,2,2,20000319013932);
-INSERT INTO t1 VALUES (48985536,39,2,2,20000319013932);
-INSERT INTO t1 VALUES (48985536,7,2,2,20000319013932);
-INSERT INTO t1 VALUES (465931136,3,2,2,20000318160951);
-INSERT INTO t1 VALUES (465931136,119,1,1,20000318160953);
-INSERT INTO t1 VALUES (465931136,2,1,1,20000318160950);
-INSERT INTO t1 VALUES (465931136,8,1,1,20000318160950);
-INSERT INTO t1 VALUES (465931136,39,1,1,20000318160950);
-INSERT INTO t1 VALUES (1092858576,14,1,1,20000319013445);
-INSERT INTO t1 VALUES (357917728,3,2,2,20000319145026);
-INSERT INTO t1 VALUES (357917728,7,2,2,20000319145027);
-select visitor_id,max(ts) as mts from t1 group by visitor_id
-having mts < DATE_SUB(NOW(),INTERVAL 3 MONTH);
-visitor_id mts
-48985536 2000-03-19 01:39:32
-173865424 2000-03-18 23:36:15
-357917728 2000-03-19 14:50:27
-465931136 2000-03-18 16:09:53
-1092858576 2000-03-19 01:34:45
-select visitor_id,max(ts) as mts from t1 group by visitor_id
-having DATE_ADD(mts,INTERVAL 3 MONTH) < NOW();
-visitor_id mts
-48985536 2000-03-19 01:39:32
-173865424 2000-03-18 23:36:15
-357917728 2000-03-19 14:50:27
-465931136 2000-03-18 16:09:53
-1092858576 2000-03-19 01:34:45
-drop table t1;
-set sql_mode='traditional';
-create table t1 (d date);
-insert into t1 (d) select date_sub('2000-01-01', INTERVAL 2001 YEAR);
-ERROR 22008: Datetime function: datetime field overflow
-insert into t1 (d) select date_add('2000-01-01',interval 8000 year);
-ERROR 22008: Datetime function: datetime field overflow
-insert into t1 values (date_add(NULL, INTERVAL 1 DAY));
-insert into t1 values (date_add('2000-01-04', INTERVAL NULL DAY));
-set sql_mode='';
-insert into t1 (d) select date_sub('2000-01-01', INTERVAL 2001 YEAR);
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-insert into t1 (d) select date_add('2000-01-01',interval 8000 year);
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-insert into t1 values (date_add(NULL, INTERVAL 1 DAY));
-insert into t1 values (date_add('2000-01-04', INTERVAL NULL DAY));
-select * from t1;
-d
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-End of 4.1 tests
-SELECT CAST('2006-09-26' AS DATE) + INTERVAL 1 DAY;
-CAST('2006-09-26' AS DATE) + INTERVAL 1 DAY
-2006-09-27
-SELECT CAST('2006-09-26' AS DATE) + INTERVAL 1 MONTH;
-CAST('2006-09-26' AS DATE) + INTERVAL 1 MONTH
-2006-10-26
-SELECT CAST('2006-09-26' AS DATE) + INTERVAL 1 YEAR;
-CAST('2006-09-26' AS DATE) + INTERVAL 1 YEAR
-2007-09-26
-SELECT CAST('2006-09-26' AS DATE) + INTERVAL 1 WEEK;
-CAST('2006-09-26' AS DATE) + INTERVAL 1 WEEK
-2006-10-03
-create table t1 (a int, b varchar(10));
-insert into t1 values (1, '2001-01-01'),(2, '2002-02-02');
-select '2007-01-01' + interval a day from t1;
-'2007-01-01' + interval a day
-2007-01-02
-2007-01-03
-select b + interval a day from t1;
-b + interval a day
-2001-01-02
-2002-02-04
-drop table t1;
-End of 5.0 tests
-create table t1 (a varchar(10));
-insert t1 values ('2000-12-03'),('2008-05-03');
-select * from t1 where case a when adddate( '2012-12-12', 7 ) then true end;
-a
-drop table t1;
-End of 5.5 tests
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-14452 Precision in INTERVAL xxx DAY_MICROSECOND parsed wrong?
-#
-SELECT
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.5' DAY_MICROSECOND) c1,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.50' DAY_MICROSECOND) c2,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.500' DAY_MICROSECOND) c3,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.5000' DAY_MICROSECOND) c4,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.50000' DAY_MICROSECOND) c5,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.500000' DAY_MICROSECOND) c6,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.5000000' DAY_MICROSECOND) c7,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.50000000' DAY_MICROSECOND) c8,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.500000000' DAY_MICROSECOND) c9,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.5000000000' DAY_MICROSECOND) c10,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.50000000000' DAY_MICROSECOND) c11,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.500000000000' DAY_MICROSECOND) c12,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.5000000000000' DAY_MICROSECOND) c13,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.50000000000000' DAY_MICROSECOND) c14,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.500000000000000' DAY_MICROSECOND) c15,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.5000000000000000' DAY_MICROSECOND) c16,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.50000000000000000' DAY_MICROSECOND) c17,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.500000000000000000' DAY_MICROSECOND) c18,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.5000000000000000000' DAY_MICROSECOND) c19,
-DATE_ADD('1000-01-01 00:00:00', INTERVAL '0 00:00:01.50000000000000000000' DAY_MICROSECOND) c20
-;
-c1 1000-01-01 00:00:01.500000
-c2 1000-01-01 00:00:01.500000
-c3 1000-01-01 00:00:01.500000
-c4 1000-01-01 00:00:01.500000
-c5 1000-01-01 00:00:01.500000
-c6 1000-01-01 00:00:01.500000
-c7 1000-01-01 00:00:01.500000
-c8 1000-01-01 00:00:01.500000
-c9 1000-01-01 00:00:01.500000
-c10 1000-01-01 00:00:01.500000
-c11 1000-01-01 00:00:01.500000
-c12 1000-01-01 00:00:01.500000
-c13 1000-01-01 00:00:01.500000
-c14 1000-01-01 00:00:01.500000
-c15 1000-01-01 00:00:01.500000
-c16 1000-01-01 00:00:01.500000
-c17 1000-01-01 00:00:01.500000
-c18 1000-01-01 00:00:01.500000
-c19 1000-01-01 00:00:01.500000
-c20 NULL
-#
-# End of 10.1 tests
-#
-create or replace view v1 as select 3 & 20010101 + interval 2 day as x;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 3 & 20010101 + interval 2 day AS `x` latin1 latin1_swedish_ci
-select 3 & 20010101 + interval 2 day, x from v1;
-3 & 20010101 + interval 2 day x
-3 3
-create or replace view v1 as select (3 & 20010101) + interval 2 day as x;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select (3 & 20010101) + interval 2 day AS `x` latin1 latin1_swedish_ci
-select (3 & 20010101) + interval 2 day, x from v1;
-(3 & 20010101) + interval 2 day x
-NULL NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-Warning 1292 Incorrect datetime value: '1'
-create or replace view v1 as select 3 & (20010101 + interval 2 day) as x;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 3 & 20010101 + interval 2 day AS `x` latin1 latin1_swedish_ci
-select 3 & (20010101 + interval 2 day), x from v1;
-3 & (20010101 + interval 2 day) x
-3 3
-create or replace view v1 as select 30 + 20010101 + interval 2 day as x;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 30 + 20010101 + interval 2 day AS `x` latin1 latin1_swedish_ci
-select 30 + 20010101 + interval 2 day, x from v1;
-30 + 20010101 + interval 2 day x
-2001-02-02 2001-02-02
-create or replace view v1 as select (30 + 20010101) + interval 2 day as x;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 30 + 20010101 + interval 2 day AS `x` latin1 latin1_swedish_ci
-select (30 + 20010101) + interval 2 day, x from v1;
-(30 + 20010101) + interval 2 day x
-2001-02-02 2001-02-02
-create or replace view v1 as select 30 + (20010101 + interval 2 day) as x;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 30 + (20010101 + interval 2 day) AS `x` latin1 latin1_swedish_ci
-select 30 + (20010101 + interval 2 day), x from v1;
-30 + (20010101 + interval 2 day) x
-20010133 20010133
-drop view v1;
-End of 10.2 tests
diff --git a/mysql-test/r/func_debug.result b/mysql-test/r/func_debug.result
deleted file mode 100644
index f1453344e0e..00000000000
--- a/mysql-test/r/func_debug.result
+++ /dev/null
@@ -1,1657 +0,0 @@
-SET SESSION debug_dbug="+d,Item_func_in";
-SET SESSION debug_dbug="+d,Predicant_to_list_comparator";
-# Constant predicant, compatible types, bisect
-SELECT 1 IN (1,2);
-1 IN (1,2)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=0 (bigint)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1 IN (1,2,NULL);
-1 IN (1,2,NULL)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=0 (bigint)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1 NOT IN (1,2);
-1 NOT IN (1,2)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=0 (bigint)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1 NOT IN (1,2,NULL);
-1 NOT IN (1,2,NULL)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=0 (bigint)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1.0 IN (1.0,2.0);
-1.0 IN (1.0,2.0)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1.0 IN (1.0,2.0,NULL);
-1.0 IN (1.0,2.0,NULL)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1.0 NOT IN (1.0,2.0);
-1.0 NOT IN (1.0,2.0)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1.0 NOT IN (1.0,2.0,NULL);
-1.0 NOT IN (1.0,2.0,NULL)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1e0 IN (1e0,2e0);
-1e0 IN (1e0,2e0)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=0 (double)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1e0 IN (1e0,2e0,NULL);
-1e0 IN (1e0,2e0,NULL)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=0 (double)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1e0 NOT IN (1e0,2e0);
-1e0 NOT IN (1e0,2e0)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=0 (double)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1e0 NOT IN (1e0,2e0,NULL);
-1e0 NOT IN (1e0,2e0,NULL)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=0 (double)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 'a' IN ('a','b');
-'a' IN ('a','b')
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 'a' IN ('a','b',NULL);
-'a' IN ('a','b',NULL)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 'a' NOT IN ('a','b');
-'a' NOT IN ('a','b')
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 'a' NOT IN ('a','b',NULL);
-'a' NOT IN ('a','b',NULL)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT TIMESTAMP'2001-01-01 10:20:30' IN ('2001-01-01 10:20:30','2001-02-02 10:20:30');
-TIMESTAMP'2001-01-01 10:20:30' IN ('2001-01-01 10:20:30','2001-02-02 10:20:30')
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (datetime)
-Note 1105 DBUG: [1] arg=2 handler=0 (datetime)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT TIMESTAMP'2001-01-01 10:20:30' IN ('2001-01-01 10:20:30','2001-02-02 10:20:30',NULL);
-TIMESTAMP'2001-01-01 10:20:30' IN ('2001-01-01 10:20:30','2001-02-02 10:20:30',NULL)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (datetime)
-Note 1105 DBUG: [1] arg=2 handler=0 (datetime)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT TIMESTAMP'2001-01-01 10:20:30' NOT IN ('2001-01-01 10:20:30','2001-02-02 10:20:30');
-TIMESTAMP'2001-01-01 10:20:30' NOT IN ('2001-01-01 10:20:30','2001-02-02 10:20:30')
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (datetime)
-Note 1105 DBUG: [1] arg=2 handler=0 (datetime)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT TIMESTAMP'2001-01-01 10:20:30' NOT IN ('2001-01-01 10:20:30','2001-02-02 10:20:30',NULL);
-TIMESTAMP'2001-01-01 10:20:30' NOT IN ('2001-01-01 10:20:30','2001-02-02 10:20:30',NULL)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (datetime)
-Note 1105 DBUG: [1] arg=2 handler=0 (datetime)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT TIME'10:20:30' IN ('10:20:30','10:20:30');
-TIME'10:20:30' IN ('10:20:30','10:20:30')
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT TIME'10:20:30' IN ('10:20:30','10:20:30',NULL);
-TIME'10:20:30' IN ('10:20:30','10:20:30',NULL)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT TIME'10:20:30' NOT IN ('10:20:30','10:20:30');
-TIME'10:20:30' NOT IN ('10:20:30','10:20:30')
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT TIME'10:20:30' NOT IN ('10:20:30','10:20:30',NULL);
-TIME'10:20:30' NOT IN ('10:20:30','10:20:30',NULL)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT DATE'2001-01-01' IN ('2001-01-01','2001-02-02');
-DATE'2001-01-01' IN ('2001-01-01','2001-02-02')
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (date)
-Note 1105 DBUG: [1] arg=2 handler=0 (date)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT DATE'2001-01-01' IN ('2001-01-01','2001-02-02',NULL);
-DATE'2001-01-01' IN ('2001-01-01','2001-02-02',NULL)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (date)
-Note 1105 DBUG: [1] arg=2 handler=0 (date)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT DATE'2001-01-01' NOT IN ('2001-01-01','2001-02-02');
-DATE'2001-01-01' NOT IN ('2001-01-01','2001-02-02')
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (date)
-Note 1105 DBUG: [1] arg=2 handler=0 (date)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT DATE'2001-01-01' NOT IN ('2001-01-01','2001-02-02',NULL);
-DATE'2001-01-01' NOT IN ('2001-01-01','2001-02-02',NULL)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (date)
-Note 1105 DBUG: [1] arg=2 handler=0 (date)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-# Column predicant, compatible types, bisect
-CREATE TABLE t1 (a INT UNSIGNED);
-SELECT a IN (1.0, 1) FROM t1;
-a IN (1.0, 1)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-SELECT a IN (1,2,3) FROM t1;
-a IN (1,2,3)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=0 (bigint)
-Note 1105 DBUG: [2] arg=3 handler=0 (bigint)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a IN (1,2,3,NULL) FROM t1;
-a IN (1,2,3,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=0 (bigint)
-Note 1105 DBUG: [2] arg=3 handler=0 (bigint)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a IN (1.0, CAST(1 AS UNSIGNED)) FROM t1;
-a IN (1.0, CAST(1 AS UNSIGNED))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a IN (1.0, CAST(1 AS UNSIGNED),NULL) FROM t1;
-a IN (1.0, CAST(1 AS UNSIGNED),NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN (1,2,3) FROM t1;
-a NOT IN (1,2,3)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=0 (bigint)
-Note 1105 DBUG: [2] arg=3 handler=0 (bigint)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN (1,2,3,NULL) FROM t1;
-a NOT IN (1,2,3,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=0 (bigint)
-Note 1105 DBUG: [2] arg=3 handler=0 (bigint)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN (1.0, CAST(1 AS UNSIGNED)) FROM t1;
-a NOT IN (1.0, CAST(1 AS UNSIGNED))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN (1.0, CAST(1 AS UNSIGNED),NULL) FROM t1;
-a NOT IN (1.0, CAST(1 AS UNSIGNED),NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-SELECT a IN (1e0,2,3.0) FROM t1;
-a IN (1e0,2,3.0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=0 (double)
-Note 1105 DBUG: [2] arg=3 handler=0 (double)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a IN (1e0,2,3.0,NULL) FROM t1;
-a IN (1e0,2,3.0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=0 (double)
-Note 1105 DBUG: [2] arg=3 handler=0 (double)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN (1e0,2,3.0) FROM t1;
-a NOT IN (1e0,2,3.0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=0 (double)
-Note 1105 DBUG: [2] arg=3 handler=0 (double)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN (1e0,2,3.0,NULL) FROM t1;
-a NOT IN (1e0,2,3.0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=0 (double)
-Note 1105 DBUG: [2] arg=3 handler=0 (double)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL(10,1));
-SELECT a IN (1,2.0,3.0) FROM t1;
-a IN (1,2.0,3.0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: [2] arg=3 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a IN (1,2.0,3.0,NULL) FROM t1;
-a IN (1,2.0,3.0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: [2] arg=3 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN (1,2.0,3.0) FROM t1;
-a NOT IN (1,2.0,3.0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: [2] arg=3 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN (1,2.0,3.0,NULL) FROM t1;
-a NOT IN (1,2.0,3.0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: [2] arg=3 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10));
-SELECT a IN ('a','b','c') FROM t1;
-a IN ('a','b','c')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=0 (longblob)
-Note 1105 DBUG: [2] arg=3 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a IN ('a','b','c',NULL) FROM t1;
-a IN ('a','b','c',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=0 (longblob)
-Note 1105 DBUG: [2] arg=3 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN ('a','b','c') FROM t1;
-a NOT IN ('a','b','c')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=0 (longblob)
-Note 1105 DBUG: [2] arg=3 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN ('a','b','c',NULL) FROM t1;
-a NOT IN ('a','b','c',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=0 (longblob)
-Note 1105 DBUG: [2] arg=3 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE);
-SELECT a IN ('2001-01-01',DATE'2001-01-02',20010102,20010102.0,20010102e0) FROM t1;
-a IN ('2001-01-01',DATE'2001-01-02',20010102,20010102.0,20010102e0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (date)
-Note 1105 DBUG: [1] arg=2 handler=0 (date)
-Note 1105 DBUG: [2] arg=3 handler=0 (date)
-Note 1105 DBUG: [3] arg=4 handler=0 (date)
-Note 1105 DBUG: [4] arg=5 handler=0 (date)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a IN ('2001-01-01',DATE'2001-01-02',20010102,20010102.0,20010102e0,NULL) FROM t1;
-a IN ('2001-01-01',DATE'2001-01-02',20010102,20010102.0,20010102e0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (date)
-Note 1105 DBUG: [1] arg=2 handler=0 (date)
-Note 1105 DBUG: [2] arg=3 handler=0 (date)
-Note 1105 DBUG: [3] arg=4 handler=0 (date)
-Note 1105 DBUG: [4] arg=5 handler=0 (date)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN ('2001-01-01',DATE'2001-01-02',20010102,20010102.0,20010102e0) FROM t1;
-a NOT IN ('2001-01-01',DATE'2001-01-02',20010102,20010102.0,20010102e0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (date)
-Note 1105 DBUG: [1] arg=2 handler=0 (date)
-Note 1105 DBUG: [2] arg=3 handler=0 (date)
-Note 1105 DBUG: [3] arg=4 handler=0 (date)
-Note 1105 DBUG: [4] arg=5 handler=0 (date)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN ('2001-01-01',DATE'2001-01-02',20010102,20010102.0,20010102e0,NULL) FROM t1;
-a NOT IN ('2001-01-01',DATE'2001-01-02',20010102,20010102.0,20010102e0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (date)
-Note 1105 DBUG: [1] arg=2 handler=0 (date)
-Note 1105 DBUG: [2] arg=3 handler=0 (date)
-Note 1105 DBUG: [3] arg=4 handler=0 (date)
-Note 1105 DBUG: [4] arg=5 handler=0 (date)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-CREATE TABLE t1 (a TIME);
-SELECT a IN ('10:20:30',TIME'10:20:30',102030,102030.0,102030e0) FROM t1;
-a IN ('10:20:30',TIME'10:20:30',102030,102030.0,102030e0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=0 (time)
-Note 1105 DBUG: [3] arg=4 handler=0 (time)
-Note 1105 DBUG: [4] arg=5 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a IN ('10:20:30',TIME'10:20:30',102030,102030.0,102030e0,NULL) FROM t1;
-a IN ('10:20:30',TIME'10:20:30',102030,102030.0,102030e0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=0 (time)
-Note 1105 DBUG: [3] arg=4 handler=0 (time)
-Note 1105 DBUG: [4] arg=5 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN ('10:20:30',TIME'10:20:30',102030,102030.0,102030e0) FROM t1;
-a NOT IN ('10:20:30',TIME'10:20:30',102030,102030.0,102030e0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=0 (time)
-Note 1105 DBUG: [3] arg=4 handler=0 (time)
-Note 1105 DBUG: [4] arg=5 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN ('10:20:30',TIME'10:20:30',102030,102030.0,102030e0,NULL) FROM t1;
-a NOT IN ('10:20:30',TIME'10:20:30',102030,102030.0,102030e0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=0 (time)
-Note 1105 DBUG: [3] arg=4 handler=0 (time)
-Note 1105 DBUG: [4] arg=5 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME);
-SELECT a IN ('2001-01-01',TIMESTAMP'2001-01-01 10:20:30',DATE'2001-01-01',TIME'10:20:30',20010101102030,20010101102030.0,20010101102030e0) FROM t1;
-a IN ('2001-01-01',TIMESTAMP'2001-01-01 10:20:30',DATE'2001-01-01',TIME'10:20:30',20010101102030,20010101102030.0,20010101102030e0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (datetime)
-Note 1105 DBUG: [1] arg=2 handler=0 (datetime)
-Note 1105 DBUG: [2] arg=3 handler=0 (datetime)
-Note 1105 DBUG: [3] arg=4 handler=0 (datetime)
-Note 1105 DBUG: [4] arg=5 handler=0 (datetime)
-Note 1105 DBUG: [5] arg=6 handler=0 (datetime)
-Note 1105 DBUG: [6] arg=7 handler=0 (datetime)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a IN ('2001-01-01',TIMESTAMP'2001-01-01 10:20:30',DATE'2001-01-01',TIME'10:20:30',20010101102030,20010101102030.0,20010101102030e0,NULL) FROM t1;
-a IN ('2001-01-01',TIMESTAMP'2001-01-01 10:20:30',DATE'2001-01-01',TIME'10:20:30',20010101102030,20010101102030.0,20010101102030e0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (datetime)
-Note 1105 DBUG: [1] arg=2 handler=0 (datetime)
-Note 1105 DBUG: [2] arg=3 handler=0 (datetime)
-Note 1105 DBUG: [3] arg=4 handler=0 (datetime)
-Note 1105 DBUG: [4] arg=5 handler=0 (datetime)
-Note 1105 DBUG: [5] arg=6 handler=0 (datetime)
-Note 1105 DBUG: [6] arg=7 handler=0 (datetime)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN ('2001-01-01',TIMESTAMP'2001-01-01 10:20:30',DATE'2001-01-01',TIME'10:20:30',20010101102030,20010101102030.0,20010101102030e0) FROM t1;
-a NOT IN ('2001-01-01',TIMESTAMP'2001-01-01 10:20:30',DATE'2001-01-01',TIME'10:20:30',20010101102030,20010101102030.0,20010101102030e0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (datetime)
-Note 1105 DBUG: [1] arg=2 handler=0 (datetime)
-Note 1105 DBUG: [2] arg=3 handler=0 (datetime)
-Note 1105 DBUG: [3] arg=4 handler=0 (datetime)
-Note 1105 DBUG: [4] arg=5 handler=0 (datetime)
-Note 1105 DBUG: [5] arg=6 handler=0 (datetime)
-Note 1105 DBUG: [6] arg=7 handler=0 (datetime)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a NOT IN ('2001-01-01',TIMESTAMP'2001-01-01 10:20:30',DATE'2001-01-01',TIME'10:20:30',20010101102030,20010101102030.0,20010101102030e0,NULL) FROM t1;
-a NOT IN ('2001-01-01',TIMESTAMP'2001-01-01 10:20:30',DATE'2001-01-01',TIME'10:20:30',20010101102030,20010101102030.0,20010101102030e0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (datetime)
-Note 1105 DBUG: [1] arg=2 handler=0 (datetime)
-Note 1105 DBUG: [2] arg=3 handler=0 (datetime)
-Note 1105 DBUG: [3] arg=4 handler=0 (datetime)
-Note 1105 DBUG: [4] arg=5 handler=0 (datetime)
-Note 1105 DBUG: [5] arg=6 handler=0 (datetime)
-Note 1105 DBUG: [6] arg=7 handler=0 (datetime)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-# Constant predicant, compatible types, no bisect
-# Bisect is not used because of non-constant expressions in the list
-CREATE TABLE t1 (a INT);
-SELECT 1 IN (a,1,2,3) FROM t1;
-1 IN (a,1,2,3)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=0 (bigint)
-Note 1105 DBUG: [2] arg=3 handler=0 (bigint)
-Note 1105 DBUG: [3] arg=4 handler=0 (bigint)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 1 IN (a,1,2,3,NULL) FROM t1;
-1 IN (a,1,2,3,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=0 (bigint)
-Note 1105 DBUG: [2] arg=3 handler=0 (bigint)
-Note 1105 DBUG: [3] arg=4 handler=0 (bigint)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 1 NOT IN (a,1,2,3) FROM t1;
-1 NOT IN (a,1,2,3)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=0 (bigint)
-Note 1105 DBUG: [2] arg=3 handler=0 (bigint)
-Note 1105 DBUG: [3] arg=4 handler=0 (bigint)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 1 NOT IN (a,1,2,3,NULL) FROM t1;
-1 NOT IN (a,1,2,3,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=0 (bigint)
-Note 1105 DBUG: [2] arg=3 handler=0 (bigint)
-Note 1105 DBUG: [3] arg=4 handler=0 (bigint)
-Note 1105 DBUG: types_compatible=yes bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-SELECT 1 IN (a,1e0,2e0,3e0) FROM t1;
-1 IN (a,1e0,2e0,3e0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=0 (double)
-Note 1105 DBUG: [2] arg=3 handler=0 (double)
-Note 1105 DBUG: [3] arg=4 handler=0 (double)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 1 IN (a,1e0,2e0,3e0,NULL) FROM t1;
-1 IN (a,1e0,2e0,3e0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=0 (double)
-Note 1105 DBUG: [2] arg=3 handler=0 (double)
-Note 1105 DBUG: [3] arg=4 handler=0 (double)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 1 NOT IN (a,1e0,2e0,3e0) FROM t1;
-1 NOT IN (a,1e0,2e0,3e0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=0 (double)
-Note 1105 DBUG: [2] arg=3 handler=0 (double)
-Note 1105 DBUG: [3] arg=4 handler=0 (double)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 1 NOT IN (a,1e0,2e0,3e0,NULL) FROM t1;
-1 NOT IN (a,1e0,2e0,3e0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=0 (double)
-Note 1105 DBUG: [2] arg=3 handler=0 (double)
-Note 1105 DBUG: [3] arg=4 handler=0 (double)
-Note 1105 DBUG: types_compatible=yes bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL(10,1));
-SELECT 1 IN (a,1.0,2.0,3.0) FROM t1;
-1 IN (a,1.0,2.0,3.0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: [2] arg=3 handler=0 (decimal)
-Note 1105 DBUG: [3] arg=4 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 1 IN (a,1.0,2.0,3.0,NULL) FROM t1;
-1 IN (a,1.0,2.0,3.0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: [2] arg=3 handler=0 (decimal)
-Note 1105 DBUG: [3] arg=4 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 1 NOT IN (a,1.0,2.0,3.0) FROM t1;
-1 NOT IN (a,1.0,2.0,3.0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: [2] arg=3 handler=0 (decimal)
-Note 1105 DBUG: [3] arg=4 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 1 NOT IN (a,1.0,2.0,3.0,NULL) FROM t1;
-1 NOT IN (a,1.0,2.0,3.0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=0 (decimal)
-Note 1105 DBUG: [2] arg=3 handler=0 (decimal)
-Note 1105 DBUG: [3] arg=4 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=yes bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10));
-SELECT 'a' IN (a,'b','c') FROM t1;
-'a' IN (a,'b','c')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=0 (longblob)
-Note 1105 DBUG: [2] arg=3 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 'a' IN (a,'b','c',NULL) FROM t1;
-'a' IN (a,'b','c',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=0 (longblob)
-Note 1105 DBUG: [2] arg=3 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 'a' NOT IN (a,'b','c') FROM t1;
-'a' NOT IN (a,'b','c')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=0 (longblob)
-Note 1105 DBUG: [2] arg=3 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 'a' NOT IN (a,'b','c',NULL) FROM t1;
-'a' NOT IN (a,'b','c',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=0 (longblob)
-Note 1105 DBUG: [2] arg=3 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE);
-SELECT DATE'2001-01-01' IN (a,'2001-01-01') FROM t1;
-DATE'2001-01-01' IN (a,'2001-01-01')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (date)
-Note 1105 DBUG: [1] arg=2 handler=0 (date)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT DATE'2001-01-01' IN (a,'2001-01-01',NULL) FROM t1;
-DATE'2001-01-01' IN (a,'2001-01-01',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (date)
-Note 1105 DBUG: [1] arg=2 handler=0 (date)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT DATE'2001-01-01' NOT IN (a,'2001-01-01') FROM t1;
-DATE'2001-01-01' NOT IN (a,'2001-01-01')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (date)
-Note 1105 DBUG: [1] arg=2 handler=0 (date)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT DATE'2001-01-01' NOT IN (a,'2001-01-01',NULL) FROM t1;
-DATE'2001-01-01' NOT IN (a,'2001-01-01',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (date)
-Note 1105 DBUG: [1] arg=2 handler=0 (date)
-Note 1105 DBUG: types_compatible=yes bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a TIME);
-SELECT TIME'10:20:30' IN (a,'10:20:30') FROM t1;
-TIME'10:20:30' IN (a,'10:20:30')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT TIME'10:20:30' IN (a,'10:20:30',NULL) FROM t1;
-TIME'10:20:30' IN (a,'10:20:30',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT TIME'10:20:30' NOT IN (a,'10:20:30') FROM t1;
-TIME'10:20:30' NOT IN (a,'10:20:30')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT TIME'10:20:30' NOT IN (a,'10:20:30',NULL) FROM t1;
-TIME'10:20:30' NOT IN (a,'10:20:30',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME);
-SELECT TIMESTAMP'2001-01-01 10:20:30' IN (a,TIMESTAMP'2001-01-01 10:20:30') FROM t1;
-TIMESTAMP'2001-01-01 10:20:30' IN (a,TIMESTAMP'2001-01-01 10:20:30')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (datetime)
-Note 1105 DBUG: [1] arg=2 handler=0 (datetime)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT TIMESTAMP'2001-01-01 10:20:30' IN (a,TIMESTAMP'2001-01-01 10:20:30',NULL) FROM t1;
-TIMESTAMP'2001-01-01 10:20:30' IN (a,TIMESTAMP'2001-01-01 10:20:30',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (datetime)
-Note 1105 DBUG: [1] arg=2 handler=0 (datetime)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT TIMESTAMP'2001-01-01 10:20:30' NOT IN (a,TIMESTAMP'2001-01-01 10:20:30') FROM t1;
-TIMESTAMP'2001-01-01 10:20:30' NOT IN (a,TIMESTAMP'2001-01-01 10:20:30')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (datetime)
-Note 1105 DBUG: [1] arg=2 handler=0 (datetime)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT TIMESTAMP'2001-01-01 10:20:30' NOT IN (a,TIMESTAMP'2001-01-01 10:20:30',NULL) FROM t1;
-TIMESTAMP'2001-01-01 10:20:30' NOT IN (a,TIMESTAMP'2001-01-01 10:20:30',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (datetime)
-Note 1105 DBUG: [1] arg=2 handler=0 (datetime)
-Note 1105 DBUG: types_compatible=yes bisect=no
-DROP TABLE t1;
-# Constant predicant, incompatible types, no bisect
-SELECT 1 IN (1,2e0);
-1 IN (1,2e0)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 1 IN (1,2e0,NULL);
-1 IN (1,2e0,NULL)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 1 NOT IN (1,2e0);
-1 NOT IN (1,2e0)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 1 NOT IN (1,2e0,NULL);
-1 NOT IN (1,2e0,NULL)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 1.0 IN (1.0,2e0);
-1.0 IN (1.0,2e0)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 1.0 IN (1.0,2e0,NULL);
-1.0 IN (1.0,2e0,NULL)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 1.0 NOT IN (1.0,2e0);
-1.0 NOT IN (1.0,2e0)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 1.0 NOT IN (1.0,2e0,NULL);
-1.0 NOT IN (1.0,2e0,NULL)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 1e0 IN (1.0,TIME'10:20:30');
-1e0 IN (1.0,TIME'10:20:30')
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 1e0 IN (1.0,TIME'10:20:30',NULL);
-1e0 IN (1.0,TIME'10:20:30',NULL)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 1e0 NOT IN (1.0,TIME'10:20:30');
-1e0 NOT IN (1.0,TIME'10:20:30')
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 1e0 NOT IN (1.0,TIME'10:20:30',NULL);
-1e0 NOT IN (1.0,TIME'10:20:30',NULL)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 'a' IN ('a',2);
-'a' IN ('a',2)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 'a' IN ('a',2,NULL);
-'a' IN ('a',2,NULL)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 'a' NOT IN ('a',2);
-'a' NOT IN ('a',2)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT 'a' NOT IN ('a',2,NULL);
-'a' NOT IN ('a',2,NULL)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT TIME'10:20:30' IN (1,TIME'10:20:30');
-TIME'10:20:30' IN (1,TIME'10:20:30')
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT TIME'10:20:30' IN (1,TIME'10:20:30',NULL);
-TIME'10:20:30' IN (1,TIME'10:20:30',NULL)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT TIME'10:20:30' IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32');
-TIME'10:20:30' IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32')
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=2 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT TIME'10:20:30' IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL);
-TIME'10:20:30' IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=2 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT TIME'10:20:30' IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32');
-TIME'10:20:30' IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32')
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=0 (time)
-Note 1105 DBUG: [3] arg=4 handler=3 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT TIME'10:20:30' IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL);
-TIME'10:20:30' IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=0 (time)
-Note 1105 DBUG: [3] arg=4 handler=3 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT TIME'10:20:30' NOT IN (1,TIME'10:20:30');
-TIME'10:20:30' NOT IN (1,TIME'10:20:30')
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT TIME'10:20:30' NOT IN (1,TIME'10:20:30',NULL);
-TIME'10:20:30' NOT IN (1,TIME'10:20:30',NULL)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT TIME'10:20:30' NOT IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32');
-TIME'10:20:30' NOT IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32')
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=2 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT TIME'10:20:30' NOT IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL);
-TIME'10:20:30' NOT IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=2 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT TIME'10:20:30' NOT IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32');
-TIME'10:20:30' NOT IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32')
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=0 (time)
-Note 1105 DBUG: [3] arg=4 handler=3 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT TIME'10:20:30' NOT IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL);
-TIME'10:20:30' NOT IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=0 (time)
-Note 1105 DBUG: [3] arg=4 handler=3 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-# Column predicant, incompatible types, no bisect
-CREATE TABLE t1 (a INT);
-SELECT a IN (1,1e0) FROM t1;
-a IN (1,1e0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,1e0,NULL) FROM t1;
-a IN (1,1e0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (CAST(1 AS SIGNED), CAST(1 AS UNSIGNED)) FROM t1;
-a IN (CAST(1 AS SIGNED), CAST(1 AS UNSIGNED))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (decimal)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (CAST(1 AS SIGNED), CAST(1 AS UNSIGNED),NULL) FROM t1;
-a IN (CAST(1 AS SIGNED), CAST(1 AS UNSIGNED),NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (decimal)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (CAST(1 AS DECIMAL),CAST(1 AS SIGNED), CAST(1 AS UNSIGNED)) FROM t1;
-a IN (CAST(1 AS DECIMAL),CAST(1 AS SIGNED), CAST(1 AS UNSIGNED))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (bigint)
-Note 1105 DBUG: [2] arg=3 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (CAST(1 AS DECIMAL),CAST(1 AS SIGNED), CAST(1 AS UNSIGNED),NULL) FROM t1;
-a IN (CAST(1 AS DECIMAL),CAST(1 AS SIGNED), CAST(1 AS UNSIGNED),NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (bigint)
-Note 1105 DBUG: [2] arg=3 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,1e0) FROM t1;
-a NOT IN (1,1e0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,1e0,NULL) FROM t1;
-a NOT IN (1,1e0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (CAST(1 AS SIGNED), CAST(1 AS UNSIGNED)) FROM t1;
-a NOT IN (CAST(1 AS SIGNED), CAST(1 AS UNSIGNED))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (decimal)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (CAST(1 AS SIGNED), CAST(1 AS UNSIGNED),NULL) FROM t1;
-a NOT IN (CAST(1 AS SIGNED), CAST(1 AS UNSIGNED),NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (decimal)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (CAST(1 AS DECIMAL),CAST(1 AS SIGNED), CAST(1 AS UNSIGNED)) FROM t1;
-a NOT IN (CAST(1 AS DECIMAL),CAST(1 AS SIGNED), CAST(1 AS UNSIGNED))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (bigint)
-Note 1105 DBUG: [2] arg=3 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (CAST(1 AS DECIMAL),CAST(1 AS SIGNED), CAST(1 AS UNSIGNED),NULL) FROM t1;
-a NOT IN (CAST(1 AS DECIMAL),CAST(1 AS SIGNED), CAST(1 AS UNSIGNED),NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (bigint)
-Note 1105 DBUG: [2] arg=3 handler=0 (decimal)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,1.0) FROM t1;
-a IN (1,1.0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (decimal)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,1.0,NULL) FROM t1;
-a IN (1,1.0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (decimal)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,1.0) FROM t1;
-a NOT IN (1,1.0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (decimal)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,1.0,NULL) FROM t1;
-a NOT IN (1,1.0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (decimal)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,'1') FROM t1;
-a IN (1,'1')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,'1',NULL) FROM t1;
-a IN (1,'1',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,'1') FROM t1;
-a NOT IN (1,'1')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,'1',NULL) FROM t1;
-a NOT IN (1,'1',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,TIME'10:20:30') FROM t1;
-a IN (1,TIME'10:20:30')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,TIME'10:20:30',NULL) FROM t1;
-a IN (1,TIME'10:20:30',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,TIME'10:20:30') FROM t1;
-a NOT IN (1,TIME'10:20:30')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,TIME'10:20:30',NULL) FROM t1;
-a NOT IN (1,TIME'10:20:30',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL(10,0));
-SELECT a IN (1,1e0) FROM t1;
-a IN (1,1e0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,1e0,NULL) FROM t1;
-a IN (1,1e0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,1e0) FROM t1;
-a NOT IN (1,1e0)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,1e0,NULL) FROM t1;
-a NOT IN (1,1e0,NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,'1') FROM t1;
-a IN (1,'1')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,'1',NULL) FROM t1;
-a IN (1,'1',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,'1') FROM t1;
-a NOT IN (1,'1')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,'1',NULL) FROM t1;
-a NOT IN (1,'1',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,TIME'10:20:30') FROM t1;
-a IN (1,TIME'10:20:30')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,TIME'10:20:30',NULL) FROM t1;
-a IN (1,TIME'10:20:30',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,TIME'10:20:30') FROM t1;
-a NOT IN (1,TIME'10:20:30')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,TIME'10:20:30',NULL) FROM t1;
-a NOT IN (1,TIME'10:20:30',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (decimal)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-SELECT a IN (1,TIME'10:20:30') FROM t1;
-a IN (1,TIME'10:20:30')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,TIME'10:20:30',NULL) FROM t1;
-a IN (1,TIME'10:20:30',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,TIME'10:20:30') FROM t1;
-a NOT IN (1,TIME'10:20:30')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,TIME'10:20:30',NULL) FROM t1;
-a NOT IN (1,TIME'10:20:30',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,DATE'2001-01-01') FROM t1;
-a IN (1,DATE'2001-01-01')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (date)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,DATE'2001-01-01',NULL) FROM t1;
-a IN (1,DATE'2001-01-01',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (date)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,DATE'2001-01-01') FROM t1;
-a NOT IN (1,DATE'2001-01-01')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (date)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,DATE'2001-01-01',NULL) FROM t1;
-a NOT IN (1,DATE'2001-01-01',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (date)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,TIMESTAMP'2001-01-01 10:20:30') FROM t1;
-a IN (1,TIMESTAMP'2001-01-01 10:20:30')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (1,TIMESTAMP'2001-01-01 10:20:30',NULL) FROM t1;
-a IN (1,TIMESTAMP'2001-01-01 10:20:30',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,TIMESTAMP'2001-01-01 10:20:30') FROM t1;
-a NOT IN (1,TIMESTAMP'2001-01-01 10:20:30')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (1,TIMESTAMP'2001-01-01 10:20:30',NULL) FROM t1;
-a NOT IN (1,TIMESTAMP'2001-01-01 10:20:30',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (double)
-Note 1105 DBUG: [1] arg=2 handler=1 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10));
-SELECT a IN ('a',1) FROM t1;
-a IN ('a',1)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN ('a',TIME'10:20:30') FROM t1;
-a IN ('a',TIME'10:20:30')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN ('a',1) FROM t1;
-a NOT IN ('a',1)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN ('a',TIME'10:20:30') FROM t1;
-a NOT IN ('a',TIME'10:20:30')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=1 (time)
-Note 1105 DBUG: types_compatible=no bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a TIME);
-SELECT a IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32') FROM t1;
-a IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=2 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL) FROM t1;
-a IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=2 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32') FROM t1;
-a IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=0 (time)
-Note 1105 DBUG: [3] arg=4 handler=3 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL) FROM t1;
-a IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=0 (time)
-Note 1105 DBUG: [3] arg=4 handler=3 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32') FROM t1;
-a NOT IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=2 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL) FROM t1;
-a NOT IN (102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=2 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32') FROM t1;
-a NOT IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32')
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=0 (time)
-Note 1105 DBUG: [3] arg=4 handler=3 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a NOT IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL) FROM t1;
-a NOT IN (102030, 102030, TIME'10:20:30',TIMESTAMP'2001-01-01 10:20:32',NULL)
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=0 (time)
-Note 1105 DBUG: [3] arg=4 handler=3 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-DROP TABLE t1;
-# Not top level, negated: cond3 is false
-CREATE TABLE t1 (a INT);
-SELECT ROW(a,a) NOT IN ((1,1),(2,NULL)) FROM t1;
-ROW(a,a) NOT IN ((1,1),(2,NULL))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT ROW(a,a) NOT IN ((1,1),(2,2)) FROM t1;
-ROW(a,a) NOT IN ((1,1),(2,2))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a INT NOT NULL, b INT);
-SELECT ROW(a,a) NOT IN ((1,1),(2,NULL)) FROM t1;
-ROW(a,a) NOT IN ((1,1),(2,NULL))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT ROW(a,a) NOT IN ((1,1),(2,2)) FROM t1;
-ROW(a,a) NOT IN ((1,1),(2,2))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-SELECT ROW(a,(a,a)) NOT IN ((1,(1,1)),(2,(2,NULL))) FROM t1;
-ROW(a,(a,a)) NOT IN ((1,(1,1)),(2,(2,NULL)))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT ROW(a,(a,a)) NOT IN ((1,(1,1)),(2,(2,2))) FROM t1;
-ROW(a,(a,a)) NOT IN ((1,(1,1)),(2,(2,2)))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a INT NOT NULL);
-SELECT ROW(a,(a,a)) NOT IN ((1,(1,1)),(2,(2,NULL))) FROM t1;
-ROW(a,(a,a)) NOT IN ((1,(1,1)),(2,(2,NULL)))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT ROW(a,(a,a)) NOT IN ((1,(1,1)),(2,(2,2))) FROM t1;
-ROW(a,(a,a)) NOT IN ((1,(1,1)),(2,(2,2)))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-# Not top level, not negated: cond3 is false
-CREATE TABLE t1 (a INT);
-SELECT ROW(a,a) IN ((1,1),(2,NULL)) FROM t1;
-ROW(a,a) IN ((1,1),(2,NULL))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT ROW(a,a) IN ((1,1),(2,2)) FROM t1;
-ROW(a,a) IN ((1,1),(2,2))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a INT NOT NULL);
-SELECT ROW(a,a) IN ((1,1),(2,NULL)) FROM t1;
-ROW(a,a) IN ((1,1),(2,NULL))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT ROW(a,a) IN ((1,1),(2,2)) FROM t1;
-ROW(a,a) IN ((1,1),(2,2))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-SELECT ROW(a,(a,a)) IN ((1,(1,1)),(2,(2,NULL))) FROM t1;
-ROW(a,(a,a)) IN ((1,(1,1)),(2,(2,NULL)))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT ROW(a,(a,a)) IN ((1,(1,1)),(2,(2,2))) FROM t1;
-ROW(a,(a,a)) IN ((1,(1,1)),(2,(2,2)))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a INT NOT NULL);
-SELECT ROW(a,(a,a)) IN ((1,(1,1)),(2,(2,NULL))) FROM t1;
-ROW(a,(a,a)) IN ((1,(1,1)),(2,(2,NULL)))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT ROW(a,(a,a)) IN ((1,(1,1)),(2,(2,2))) FROM t1;
-ROW(a,(a,a)) IN ((1,(1,1)),(2,(2,2)))
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-# Top level, negated: cond3 is false
-CREATE TABLE t1 (a INT);
-SELECT 1 FROM t1 WHERE ROW(a,a) NOT IN ((1,1),(2,NULL));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 1 FROM t1 WHERE ROW(a,a) NOT IN ((1,1),(2,2));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a INT NOT NULL);
-SELECT 1 FROM t1 WHERE ROW(a,a) NOT IN ((1,1),(2,NULL));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 1 FROM t1 WHERE ROW(a,a) NOT IN ((1,1),(2,2));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-SELECT 1 FROM t1 WHERE ROW(a,(a,a)) NOT IN ((1,(1,1)),(2,(2,NULL)));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 1 FROM t1 WHERE ROW(a,(a,a)) NOT IN ((1,(1,1)),(2,(2,2)));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-DROP TABLE t1;
-CREATE TABLE t1 (a INT NOT NULL);
-SELECT 1 FROM t1 WHERE ROW(a,(a,a)) NOT IN ((1,(1,1)),(2,(2,NULL)));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT 1 FROM t1 WHERE ROW(a,(a,a)) NOT IN ((1,(1,1)),(2,(2,2)));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-# Top level, not negated: cond3 is true
-CREATE TABLE t1 (a INT);
-SELECT 1 FROM t1 WHERE ROW(a,a) IN ((1,1),(2,NULL));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1 FROM t1 WHERE ROW(a,a) IN ((1,1),(2,2));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-CREATE TABLE t1 (a INT NOT NULL);
-SELECT 1 FROM t1 WHERE ROW(a,a) IN ((1,1),(2,NULL));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1 FROM t1 WHERE ROW(a,a) IN ((1,1),(2,2));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-SELECT 1 FROM t1 WHERE ROW(a,(a,a)) IN ((1,(1,1)),(2,(2,NULL)));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1 FROM t1 WHERE ROW(a,(a,a)) IN ((1,(1,1)),(2,(2,2)));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-CREATE TABLE t1 (a INT NOT NULL);
-SELECT 1 FROM t1 WHERE ROW(a,(a,a)) IN ((1,(1,1)),(2,(2,NULL)));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT 1 FROM t1 WHERE ROW(a,(a,a)) IN ((1,(1,1)),(2,(2,2)));
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (row)
-Note 1105 DBUG: [1] arg=2 handler=0 (row)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-#
-# MDEV-11514 IN with a mixture of TIME and DATETIME returns a wrong result
-#
-SELECT TIME'10:20:30' IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32');
-TIME'10:20:30' IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32')
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=2 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-PREPARE stmt FROM "SELECT
- TIME'10:20:30' IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32')";
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=2 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-EXECUTE stmt;
-TIME'10:20:30' IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32')
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=2 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-EXECUTE stmt;
-TIME'10:20:30' IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32')
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=2 handler=0 (time)
-Note 1105 DBUG: [2] arg=3 handler=2 (datetime)
-Note 1105 DBUG: types_compatible=no bisect=no
-DEALLOCATE PREPARE stmt;
-CREATE TABLE t1 (a VARCHAR(10));
-INSERT INTO t1 VALUES ('A'),('B'),('A');
-SELECT a,NULL AS b FROM t1 GROUP BY a HAVING 'A' IN (b,'A');
-a b
-A NULL
-B NULL
-Warnings:
-Note 1105 DBUG: [0] arg=2 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a,NULL AS b FROM t1 GROUP BY a HAVING 'A' IN ('A',b);
-a b
-A NULL
-B NULL
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT a,NULL AS b FROM t1 GROUP BY a HAVING 'A' IN (b,a);
-a b
-A NULL
-Warnings:
-Note 1105 DBUG: [0] arg=2 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT a,NULL AS b FROM t1 GROUP BY a HAVING 'A' IN (a,b);
-a b
-A NULL
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=no
-SELECT a,NULL AS b FROM t1 GROUP BY a HAVING 'A' IN (b,'A',10);
-a b
-A NULL
-B NULL
-Warnings:
-Note 1105 DBUG: [0] arg=2 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=3 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a,NULL AS b FROM t1 GROUP BY a HAVING 'A' IN ('A',b,10);
-a b
-A NULL
-B NULL
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=3 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT a,NULL AS b FROM t1 GROUP BY a HAVING 'A' IN (b,a,10);
-a b
-A NULL
-Warnings:
-Note 1105 DBUG: [0] arg=2 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=3 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-Warning 1292 Truncated incorrect DOUBLE value: 'A'
-SELECT a,NULL AS b FROM t1 GROUP BY a HAVING 'A' IN (a,b,10);
-a b
-A NULL
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=3 handler=1 (double)
-Note 1105 DBUG: types_compatible=no bisect=no
-Warning 1292 Truncated incorrect DOUBLE value: 'A'
-DROP TABLE t1;
-#
-# MDEV-11497 Wrong result for (int_expr IN (mixture of signed and unsigned expressions))
-#
-CREATE TABLE t1 (a BIGINT, b BIGINT UNSIGNED);
-INSERT INTO t1 VALUES (-9223372036854775808,18446744073709551615);
-SELECT * FROM t1 WHERE -1 IN (a,b);
-a b
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=2 handler=1 (decimal)
-Note 1105 DBUG: types_compatible=no bisect=no
-DROP TABLE t1;
-#
-# MDEV-11554 Wrong result for CASE on a mixture of signed and unsigned expressions
-#
-CREATE TABLE t1 (a BIGINT, b BIGINT UNSIGNED);
-INSERT INTO t1 VALUES (-9223372036854775808,18446744073709551615);
-SELECT
-CASE -1
-WHEN -9223372036854775808 THEN 'one'
- WHEN 18446744073709551615 THEN 'two'
- END AS c;
-c
-NULL
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (bigint)
-Note 1105 DBUG: [1] arg=3 handler=1 (decimal)
-DROP TABLE t1;
-#
-# MDEV-11555 CASE with a mixture of TIME and DATETIME returns a wrong result
-#
-SELECT
-CASE TIME'10:20:30'
- WHEN 102030 THEN 'one'
- WHEN TIME'10:20:31' THEN 'two'
- END AS good,
-CASE TIME'10:20:30'
- WHEN 102030 THEN 'one'
- WHEN TIME'10:20:31' THEN 'two'
- WHEN TIMESTAMP'2001-01-01 10:20:32' THEN 'three'
- END AS was_bad_now_good;
-good was_bad_now_good
-one one
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=3 handler=0 (time)
-Note 1105 DBUG: [0] arg=1 handler=0 (time)
-Note 1105 DBUG: [1] arg=3 handler=0 (time)
-Note 1105 DBUG: [2] arg=5 handler=2 (datetime)
-SET SESSION debug_dbug="-d,Predicant_to_list_comparator";
-SET SESSION debug_dbug="-d,Item_func_in";
diff --git a/mysql-test/r/func_default.result b/mysql-test/r/func_default.result
deleted file mode 100644
index 535be10da86..00000000000
--- a/mysql-test/r/func_default.result
+++ /dev/null
@@ -1,34 +0,0 @@
-drop table if exists t1,t2;
-create table t1(str varchar(10) default 'def',strnull varchar(10),intg int default '10',rel double default '3.14');
-insert into t1 values ('','',0,0.0);
-select default(str), default(strnull), default(intg), default(rel) from t1;
-default(str) default(strnull) default(intg) default(rel)
-def NULL 10 3.14
-explain extended select default(str), default(strnull), default(intg), default(rel) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select default('') AS `default(str)`,default('') AS `default(strnull)`,default(0) AS `default(intg)`,default(0) AS `default(rel)` from dual
-select * from t1 where str <> default(str);
-str strnull intg rel
- 0 0
-explain select * from t1 where str <> default(str);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-drop table t1;
-CREATE TABLE t1 (id int(11), s varchar(20));
-INSERT INTO t1 VALUES (1, 'one'), (2, 'two'), (3, 'three');
-SELECT s, 32 AS mi FROM t1 GROUP BY s HAVING DEFAULT(mi) IS NULL;
-ERROR HY000: Field 'mi' doesn't have a default value
-DROP TABLE t1;
-set timestamp=unix_timestamp('2001-01-01 10:20:30.123456');
-create table t1 (a int default 1, b int default (a+1),
-c varchar(100) default 'foo', d text default 'bar',
-e timestamp default now(), f timestamp(6) default now(2));
-insert t1 () values ();
-insert t1 (a) values (10);
-select default(a),default(b),default(c),default(d),default(e),default(f) from t1;
-default(a) default(b) default(c) default(d) default(e) default(f)
-1 2 foo bar 2001-01-01 10:20:30 2001-01-01 10:20:30.120000
-1 11 foo bar 2001-01-01 10:20:30 2001-01-01 10:20:30.120000
-drop table t1;
diff --git a/mysql-test/r/func_des_encrypt.result b/mysql-test/r/func_des_encrypt.result
deleted file mode 100644
index b81f96f6ef7..00000000000
--- a/mysql-test/r/func_des_encrypt.result
+++ /dev/null
@@ -1,37 +0,0 @@
-select des_encrypt('hello');
-des_encrypt('hello')
-€Ö2nV“Ø}
-#
-# Bug #11643: des_encrypt() causes server to die
-#
-CREATE TABLE t1 (des VARBINARY(200) NOT NULL DEFAULT '') ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('1234'), ('12345'), ('123456'), ('1234567');
-UPDATE t1 SET des=DES_ENCRYPT('1234');
-SELECT LENGTH(des) FROM t1;
-LENGTH(des)
-9
-9
-9
-9
-SELECT DES_DECRYPT(des) FROM t1;
-DES_DECRYPT(des)
-1234
-1234
-1234
-1234
-SELECT
-LENGTH(DES_ENCRYPT('1234')),
-LENGTH(DES_ENCRYPT('12345')),
-LENGTH(DES_ENCRYPT('123456')),
-LENGTH(DES_ENCRYPT('1234567'));
-LENGTH(DES_ENCRYPT('1234')) LENGTH(DES_ENCRYPT('12345')) LENGTH(DES_ENCRYPT('123456')) LENGTH(DES_ENCRYPT('1234567'))
-9 9 9 9
-SELECT
-DES_DECRYPT(DES_ENCRYPT('1234')),
-DES_DECRYPT(DES_ENCRYPT('12345')),
-DES_DECRYPT(DES_ENCRYPT('123456')),
-DES_DECRYPT(DES_ENCRYPT('1234567'));
-DES_DECRYPT(DES_ENCRYPT('1234')) DES_DECRYPT(DES_ENCRYPT('12345')) DES_DECRYPT(DES_ENCRYPT('123456')) DES_DECRYPT(DES_ENCRYPT('1234567'))
-1234 12345 123456 1234567
-DROP TABLE t1;
-End of 5.0 tests
diff --git a/mysql-test/r/func_digest.result b/mysql-test/r/func_digest.result
deleted file mode 100644
index 374d16ac687..00000000000
--- a/mysql-test/r/func_digest.result
+++ /dev/null
@@ -1,1483 +0,0 @@
-SELECT SHA1( x'a8' ) = '99f2aa95e36f95c2acb0eaf23998f030638f3f15' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'3000' ) = 'f944dcd635f9801f7ac90a407fbc479964dec024' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'42749e' ) = 'a444319e9b6cc1e8464c511ec0969c37d6bb2619' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'9fc3fe08' ) = '16a0ff84fcc156fd5d3ca3a744f20a232d172253' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'b5c1c6f1af' ) = 'fec9deebfcdedaf66dda525e1be43597a73a1f93' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'e47571e5022e' ) = '8ce051181f0ed5e9d0c498f6bc4caf448d20deb5' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'3e1b28839fb758' ) = '67da53837d89e03bf652ef09c369a3415937cfd3' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'a81350cbb224cb90' ) = '305e4ff9888ad855a78573cddf4c5640cce7e946' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'c243d167923dec3ce1' ) = '5902b77b3265f023f9bbc396ba1a93fa3509bde7' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'50ac18c59d6a37a29bf4' ) = 'fcade5f5d156bf6f9af97bdfa9c19bccfb4ff6ab' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'98e2b611ad3b1cccf634f6' ) = '1d20fbe00533c10e3cbd6b27088a5de0c632c4b5' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'73fe9afb68e1e8712e5d4eec' ) = '7e1b7e0f7a8f3455a9c03e9580fd63ae205a2d93' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'9e701ed7d412a9226a2a130e66' ) = '706f0677146307b20bb0e8d6311e329966884d13' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'6d3ee90413b0a7cbf69e5e6144ca' ) = 'a7241a703aaf0d53fe142f86bf2e849251fa8dff' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'fae24d56514efcb530fd4802f5e71f' ) = '400f53546916d33ad01a5e6df66822dfbdc4e9e6' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'c5a22dd6eda3fe2bdc4ddb3ce6b35fd1' ) = 'fac8ab93c1ae6c16f0311872b984f729dc928ccd' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'd98cded2adabf08fda356445c781802d95' ) = 'fba6d750c18da58f6e2aab10112b9a5ef3301b3b' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'bcc6d7087a84f00103ccb32e5f5487a751a2' ) = '29d27c2d44c205c8107f0351b05753ac708226b6' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'36ecacb1055434190dbbc556c48bafcb0feb0d' ) = 'b971bfc1ebd6f359e8d74cb7ecfe7f898d0ba845' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'5ff9edb69e8f6bbd498eb4537580b7fba7ad31d0' ) = '96d08c430094b9fcc164ad2fb6f72d0a24268f68' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'c95b441d8270822a46a798fae5defcf7b26abace36' ) = 'a287ea752a593d5209e287881a09c49fa3f0beb1' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'83104c1d8a55b28f906f1b72cb53f68cbb097b44f860' ) = 'a06c713779cbd88519ed4a585ac0cb8a5e9d612b' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'755175528d55c39c56493d697b790f099a5ce741f7754b' ) = 'bff7d52c13a3688132a1d407b1ab40f5b5ace298' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'088fc38128bbdb9fd7d65228b3184b3faac6c8715f07272f' ) = 'c7566b91d7b6f56bdfcaa9781a7b6841aacb17e9' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'a4a586eb9245a6c87e3adf1009ac8a49f46c07e14185016895' ) = 'ffa30c0b5c550ea4b1e34f8a60ec9295a1e06ac1' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'8e7c555270c006092c2a3189e2a526b873e2e269f0fb28245256' ) = '29e66ed23e914351e872aa761df6e4f1a07f4b81' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'a5f3bfa6bb0ba3b59f6b9cbdef8a558ec565e8aa3121f405e7f2f0' ) = 'b28cf5e5b806a01491d41f69bd9248765c5dc292' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'589054f0d2bd3c2c85b466bfd8ce18e6ec3e0b87d944cd093ba36469' ) = '60224fb72c46069652cd78bcd08029ef64da62f3' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'a0abb12083b5bbc78128601bf1cbdbc0fdf4b862b24d899953d8da0ff3' ) = 'b72c4a86f72608f24c05f3b9088ef92fba431df7' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'82143f4cea6fadbf998e128a8811dc75301cf1db4f079501ea568da68eeb' ) = '73779ad5d6b71b9b8328ef7220ff12eb167076ac' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'9f1231dd6df1ff7bc0b0d4f989d048672683ce35d956d2f57913046267e6f3' ) = 'a09671d4452d7cf50015c914a1e31973d20cc1a0' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'041c512b5eed791f80d3282f3a28df263bb1df95e1239a7650e5670fc2187919' ) = 'e88cdcd233d99184a6fd260b8fca1b7f7687aee0' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'17e81f6ae8c2e5579d69dafa6e070e7111461552d314b691e7a3e7a4feb3fae418' ) = '010def22850deb1168d525e8c84c28116cb8a269' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'd15976b23a1d712ad28fad04d805f572026b54dd64961fda94d5355a0cc98620cf77' ) = 'aeaa40ba1717ed5439b1e6ea901b294ba500f9ad' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'09fce4d434f6bd32a44e04b848ff50ec9f642a8a85b37a264dc73f130f22838443328f' ) = 'c6433791238795e34f080a5f1f1723f065463ca0' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'f17af27d776ec82a257d8d46d2b46b639462c56984cc1be9c1222eadb8b26594a25c709d' ) = 'e21e22b89c1bb944a32932e6b2a2f20d491982c3' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'b13ce635d6f8758143ffb114f2f601cb20b6276951416a2f94fbf4ad081779d79f4f195b22' ) = '575323a9661f5d28387964d2ba6ab92c17d05a8a' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'5498793f60916ff1c918dde572cdea76da8629ba4ead6d065de3dfb48de94d234cc1c5002910' ) = 'feb44494af72f245bfe68e86c4d7986d57c11db7' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'498a1e0b39fa49582ae688cd715c86fbaf8a81b8b11b4d1594c49c902d197c8ba8a621fd6e3be5' ) = 'cff2290b3648ba2831b98dde436a72f9ebf51eee' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'3a36ae71521f9af628b3e34dcb0d4513f84c78ee49f10416a98857150b8b15cb5c83afb4b570376e' ) = '9b4efe9d27b965905b0c3dab67b8d7c9ebacd56c' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'dcc76b40ae0ea3ba253e92ac50fcde791662c5b6c948538cffc2d95e9de99cac34dfca38910db2678f' ) = 'afedb0ff156205bcd831cbdbda43db8b0588c113' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'5b5ec6ec4fd3ad9c4906f65c747fd4233c11a1736b6b228b92e90cddabb0c7c2fcf9716d3fad261dff33' ) = '8deb1e858f88293a5e5e4d521a34b2a4efa70fc4' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'df48a37b29b1d6de4e94717d60cdb4293fcf170bba388bddf7a9035a15d433f20fd697c3e4c8b8c5f590ab' ) = '95cbdac0f74afa69cebd0e5c7defbc6faf0cbeaf' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'1f179b3b82250a65e1b0aee949e218e2f45c7a8dbfd6ba08de05c55acfc226b48c68d7f7057e5675cd96fcfc' ) = 'f0307bcb92842e5ae0cd4f4f14f3df7f877fbef2' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'ee3d72da3a44d971578972a8e6780ce64941267e0f7d0179b214fa97855e1790e888e09fbe3a70412176cb3b54' ) = '7b13bb0dbf14964bd63b133ac85e22100542ef55' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'd4d4c7843d312b30f610b3682254c8be96d5f6684503f8fbfbcd15774fc1b084d3741afb8d24aaa8ab9c104f7258' ) = 'c314d2b6cf439be678d2a74e890d96cfac1c02ed' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'32c094944f5936a190a0877fb9178a7bf60ceae36fd530671c5b38c5dbd5e6a6c0d615c2ac8ad04b213cc589541cf6' ) = '4d0be361e410b47a9d67d8ce0bb6a8e01c53c078' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'e5d3180c14bf27a5409fa12b104a8fd7e9639609bfde6ee82bbf9648be2546d29688a65e2e3f3da47a45ac14343c9c02' ) = 'e5353431ffae097f675cbf498869f6fbb6e1c9f2' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'e7b6e4b69f724327e41e1188a37f4fe38b1dba19cbf5a7311d6e32f1038e97ab506ee05aebebc1eed09fc0e357109818b9' ) = 'b8720a7068a085c018ab18961de2765aa6cd9ac4' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'bc880cb83b8ac68ef2fedc2da95e7677ce2aa18b0e2d8b322701f67af7d5e7a0d96e9e33326ccb7747cfff0852b961bfd475' ) = 'b0732181568543ba85f2b6da602b4b065d9931aa' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'235ea9c2ba7af25400f2e98a47a291b0bccdaad63faa2475721fda5510cc7dad814bce8dabb611790a6abe56030b798b75c944' ) = '9c22674cf3222c3ba921672694aafee4ce67b96b' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'07e3e29fed63104b8410f323b975fd9fba53f636af8c4e68a53fb202ca35dd9ee07cb169ec5186292e44c27e5696a967f5e67709' ) = 'd128335f4cecca9066cdae08958ce656ff0b4cfc' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'65d2a1dd60a517eb27bfbf530cf6a5458f9d5f4730058bd9814379547f34241822bf67e6335a6d8b5ed06abf8841884c636a25733f' ) = '0b67c57ac578de88a2ae055caeaec8bb9b0085a0' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'dcc86b3bd461615bab739d8daafac231c0f462e819ad29f9f14058f3ab5b75941d4241ea2f17ebb8a458831b37a9b16dead4a76a9b0e' ) = 'c766f912a89d4ccda88e0cce6a713ef5f178b596' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'4627d54f0568dc126b62a8c35fb46a9ac5024400f2995e51635636e1afc4373dbb848eb32df23914230560b82477e9c3572647a7f2bb92' ) = '9aa3925a9dcb177b15ccff9b78e70cf344858779' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'ba531affd4381168ef24d8b275a84d9254c7f5cc55fded53aa8024b2c5c5c8aa7146fe1d1b83d62b70467e9a2e2cb67b3361830adbab28d7' ) = '4811fa30042fc076acf37c8e2274d025307e5943' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'8764dcbcf89dcf4282eb644e3d568bdccb4b13508bfa7bfe0ffc05efd1390be22109969262992d377691eb4f77f3d59ea8466a74abf57b2ef4' ) = '6743018450c9730761ee2b130df9b91c1e118150' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'497d9df9ddb554f3d17870b1a31986c1be277bc44feff713544217a9f579623d18b5ffae306c25a45521d2759a72c0459b58957255ab592f3be4' ) = '71ad4a19d37d92a5e6ef3694ddbeb5aa61ada645' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'72c3c2e065aefa8d9f7a65229e818176eef05da83f835107ba90ec2e95472e73e538f783b416c04654ba8909f26a12db6e5c4e376b7615e4a25819' ) = 'a7d9dc68dacefb7d6116186048cb355cc548e11d' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'7cc9894454d0055ab5069a33984e2f712bef7e3124960d33559f5f3b81906bb66fe64da13c153ca7f5cabc89667314c32c01036d12ecaf5f9a78de98' ) = '142e429f0522ba5abf5131fa81df82d355b96909' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'74e8404d5a453c5f4d306f2cfa338ca65501c840ddab3fb82117933483afd6913c56aaf8a0a0a6b2a342fc3d9dc7599f4a850dfa15d06c61966d74ea59' ) = 'ef72db70dcbcab991e9637976c6faf00d22caae9' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'46fe5ed326c8fe376fcc92dc9e2714e2240d3253b105adfbb256ff7a19bc40975c604ad7c0071c4fd78a7cb64786e1bece548fa4833c04065fe593f6fb10' ) = 'f220a7457f4588d639dc21407c942e9843f8e26b' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'836dfa2524d621cf07c3d2908835de859e549d35030433c796b81272fd8bc0348e8ddbc7705a5ad1fdf2155b6bc48884ac0cd376925f069a37849c089c8645' ) = 'ddd2117b6e309c233ede85f962a0c2fc215e5c69' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA1( x'7e3a4c325cb9c52b88387f93d01ae86d42098f5efa7f9457388b5e74b6d28b2438d42d8b64703324d4aa25ab6aad153ae30cd2b2af4d5e5c00a8a2d0220c6116' ) = 'a3054427cdb13f164a610b348702724c808a0dcc' as NIST_SHA1_test_vector;
-NIST_SHA1_test_vector
-1
-SELECT SHA2( x'ff', 224 ) = 'e33f9d75e6ae1369dbabf81b96b4591ae46bba30b591a6b6c62542b5' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'984c', 224 ) = '2fa9df9157d9e027cfbc4c6a9df32e1adc0cbe2328ec2a63c5ae934e' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'50efd0', 224 ) = 'b5a9820413c2bf8211fbbf5df1337043b32fa4eafaf61a0c8e9ccede' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'e5e09924', 224 ) = 'fd19e74690d291467ce59f077df311638f1c3a46e510d0e49a67062d' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'21ebecb914', 224 ) = '78f4a71c21c694499ce1c7866611b14ace70d905012c356323c7c713' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'76aa302bc7bb', 224 ) = '8e0f460d8c1f9d9a850a3a0b06408becc4950a77d5e8f94dc8e86fd3' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'510db320ebc443', 224 ) = 'df4fc9bcd967feb83146fd4d2a7448d7d54119a14cb7ffc6753de703' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'17040eed0880ed95', 224 ) = '5c81df5f342d1284a08d846c223f0367ca385ba60908a7fc93470317' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'a92d4c1b971b963f65', 224 ) = 'a45eb31a2482b4581ac321b9175a386c69eb80d43191459e2de6bd0d' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'49c7e96152a2b42ab57f', 224 ) = '53953c275c4fc2f87ca044760a861920fbfc1550a4c822e47457f038' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'becc72bd1596ed064bfbdc', 224 ) = '98ec4bf49071d1b164fdbb415c67db965b7c5f191bb1801c76ea9dc1' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'635afe6c43cabe340d430b69', 224 ) = 'c3a2de40958d2a35e3775eb60aab09fb3097658ac96fe2e142d28dfc' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'c997165324078ed6160077dfea', 224 ) = '17c6235304dd830349bfd8ce7f8f1f41e52fc53bec7bb23382d2d598' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'f871896748653be45dcb64a2bd1a', 224 ) = '3ff8e241b0895a06854d6f660cd7ddfc9a6b36ca73092f2f0cf54109' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'b0ccdd6e9ed398117e1d3cd94b89c2', 224 ) = 'f38dc0dc7f1f93e95030db63f1231df91de8aaef76a39b1c08a6490b' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'0b6ea2ddda429ccbb8f5de3332ac8a00', 224 ) = 'd9f4451ec9baba4c98a9c02b41442c58e1cc3eeb1bcb6d00a2b488c1' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'9ab41a3b8c6c886dc3a57fdfad67fc655f', 224 ) = '2b82967b0e46d8cdc7ecab68a69e177dc01f665dcecc8de824f1bc2b' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'785eabb7e7ca7c476cdd9b227f015d905368', 224 ) = '5617b3824c26b7a8ed43d636ce27a8f1e65b23e307e4d05422d94b56' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'395883570fbfdbf39659bc838fb802c5cc323d', 224 ) = '4169ffec25b0c49a22cc7912f830d443ca4d3b0377ea0d22ca17f4e4' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'6e5ecbbc6f36ec985c253f7e4bb6b1f8ab6c4942', 224 ) = 'db29fe2091df09f0fb0483a11e8134ecd480a3e4ca60dd12bab1543b' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'393d8ef3671232dc6efcb3d6426fc88f730e946b5d', 224 ) = '6d34ae1f00d1d63a39209d15acb2c2420ff0899e11c3e673cd51cd24' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'f222e611d99b3728b5e308f9b9b637b9d493528c2865', 224 ) = '93552ec989b20284010fb79cc7001ba7a59754f1485f3a3c1b361d70' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'16cd2320dd785b07b681c86ad39e56549ee4d71aa9e69e', 224 ) = 'b9920881629965613c70a9b0a65eb9cd9b08945135fd2113586ba38c' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'ceef92454528483f45a6992d179abff266145f2da2d10eb1', 224 ) = 'b7c5e536233ce1c24c2ef6f502246fcedb0d746cade7c849f17d32f1' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'c2770ed3d60c1e7aa1a794818c1fbb9ad5cc5ef7329a8802b8', 224 ) = 'ec36a23fc74263583f1ae65daa968636c15a02e7ff72b0762fb7779f' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'cbf96bd642247c2dd8cf7593f3d88cf61aba22c059604751e737', 224 ) = 'db2ae7e115b8b441de017133c775496efa4a0958d5a322bab780f50e' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'be0a3d0d539017795cc9b21a6a10cd3fdc575f9303bedb4e8464b2', 224 ) = 'c2684880b50e9e8b8adcf348b71ff4fdbde66fe0c6b6b7197f87002b' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'8530e9fdb69ed9bd05466ab4639e47affb7a05c2212fb38c85f9b2bc', 224 ) = 'fa6d9af7f6f5d0da8ea58a00c3c8714673e6112a6405887fd77e56e3' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'd564b9e358cbee4766391e8679cc41c7f1f64f3713765ea151860a40cb', 224 ) = '9b93bf21dd9b587b1e7dccf3cc5df4f193a744a1a082ebf8df65c577' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'12841b7f08bf555156c996ad24ff5c6df0b23c1f25721b63f08ca1954fd1', 224 ) = '98586368ba2d17eef435c6225f3337e4ba21a8657bf3a84ae75f38a3' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'c90824f4096dcbc0a6d70cc1937c1306f501c66c85484b133689ca0e19a474', 224 ) = '735ab14d634b95c24e353ccafd4ab40fa5718e18eeb568905e79cfee' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'd28f6765c7c1e5f05c9ebd6065b9020d255f9dce6d2b932504d586b64b4b7ffe', 224 ) = '2a97b7e1e67a3e22230e51bd6d44a203ca4d3406a11e16f949b0a6c8' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'7a4464bb000276dfc851d80f73dcd7775141e8c427c48e7f30457e99616f0247f1', 224 ) = 'cc70020d59321c4ab85d60278e94b224d4d5aaa8491ab6a4bbbb04ca' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'852368eb5a59e558acd85299955c47760a17ffcebf045d8b45782dd575faad861254', 224 ) = 'f6da08d8f011b7c7b6feaa0e49a864499dfa6bd1e2da81d8c195884e' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'c90e047cf70ea40566ebd269b0e0b2cbc63245b84a06eba13975278fcde2a312a28b74', 224 ) = 'ce4e5baa8acd7653a3a8e62f0464ca286b41935864378c7667db6afc' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'887fd70602e7599169d276dfd8bf44f93fae5188b52794f40f7da3ccb1542769a4618dce', 224 ) = 'be05c2526351af82cad735f69f46ed8b3202b5c170098c932a8e9d84' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'ec1cd5fa0dfbb142e3b222664e2dbbc209d09c00e6addeea5bfb327c3ec3c43ecddd66d1f1', 224 ) = '85956e2a952ecf3b845268708ded872e1b1366b84f87e4775e668b76' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'b67734b20bbaec455be457845bf058599c33bbeaf734be122fbdd011d23298826022398eaf1c', 224 ) = 'd5ed34af21626fe43634ba7df4f569d8186d43c061e63cdb038dbc36' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'e09e7100af3ead397f9f5812a74e19a6a7571c7fb1b8b8ac69164f13eaaf760909905620dd0852', 224 ) = '41bcff813625d927814a70e78b22597d2119174f08ef28a1d9d6e654' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'1d6613e39dde0059bc3bfd6da940cd9d740a2b8dc5f31907ceb775407ed5cd5df73874354317d559', 224 ) = '675468fc5f71d5e53b913350355990a19c3677b76e0daf1dbac0aa24' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'57271ff1795bf74ef6668da1fe8ab0ccfd5050547015eb0af8c449eaace56943b4d7bb18145990c6c5', 224 ) = '6e3d10fb8d3c815636455b08fb1a732fe6ed542ab2e8325c314b6e49' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'3f91d8bf80cb744fe79360f6ecd3f482b95dc8f2dece127e46b82fd76a007fafc484767c8701f0798d35', 224 ) = '34233d574c300c57f481f0568cc43f71c07d9f25c59ef49de74ad2db' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'2408966adf5d3fba570366393882c3d68b5140dd3749a310c75a6efa6d7d038047e90cb9e28a1a00fdaf8c', 224 ) = 'ff0c34018f6c80705cacb86180f887491cd98d4a573f33c87398bb7a' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'adf2e47a62db5003a2d2893c917686cb8dc41fbbc92cd02b37eaba43ac93ea6d3feedec1f20645c0947d0746', 224 ) = 'e91f826d6b7fee1cf731fd3a47d00b17edf669e1471644f0a3bf8365' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'a8f17ae01bd749341b1cea3f73ef22c3a84e4ac38276f497c79ed23f4ae4d4f82488910d4258e8f0206be789d3', 224 ) = '026f1a48b71cdddd0335fc736cc9f6877bd67dc31e43f87cc04efb32' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'eab69fea2590a847e6046aeb81e201cf1797b8636baf7d30f09893bb27a987ad276265327df62b9f37067e573cb0', 224 ) = '7b626a24d06c3f41d458edb360bef9456fda3e90d3fcc546ad2a79cd' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'de1c468c1f27fc265a9497eb8dba257c5dfb8ff708ec27309bb6803e65bd823aab7fbd439dbefec589e120fb4f9825', 224 ) = '02fb84e794a91206437848a4449a2389343f42cbd2877a42d270d51f' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'8a01037a92ff0ba48edd3707f2533723890ade105ef3256fdddd73a236471b38027226ab29bb544e03285d81bd417c27', 224 ) = '67ab2856e368a0bd0fea2042217b31c238fdb73ff8f4ed33090edeb8' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'c9cc53bf67d6bf14d67e2ddc8e6683ef574961ff698f61cdd11e9d9c167272e61df0844f4a7702d7e8392c53cbc9121e33', 224 ) = 'ec263fa2ddfe9c7c05c2a025271176f703d487ea6067e35372d8c75f' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'6380c0a6b3439be6ba13bc10db16c212d8569eeb4567a56d3c49e341538fb32bcbc18d8f0a001e354be89e4995bb5ea6e9bb', 224 ) = 'c577e8faf9233892919ac571c2248d94d47cb7451b847d6628dfa52b' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'85f318cdefb50f71afb880ee058ad2e0b4310223b511f3da2d1006b69df7eb75581bb7a83b3e36ba98b0822e73b9d428f13c9b', 224 ) = '41b8b1081eb8571a8dd2af57f28336a77a47d0bb4d5968ee65d96ba0' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'faa67b20b0b7f00960a5681df1d18eeb0265b50e19e8195cfd0f686060d6810bc1d07ba691bbe90b95585c158b7a2a55105c6e06', 224 ) = '58757f96ba28896e079fd76a578bb1b98ac3c178af2840b327a238ab' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'b1f83a5ea85d72c9721d166b1e9c51d6cb0dd6fe6b2ac88fc728d883c4eaadf3e475882d0fa42808941ceb746b833755bded1892a5', 224 ) = '0a53a62f28cc4db2025dd9175e571912c1a8bd0b293d235f7a0c568a' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'ce2b647be7bf54ea15fe79121bb04f0a04cbc49bbf89f7f70dbe40a79d6970c674895a6d9332926ed4df7445160a684b99fa652dabdd', 224 ) = '0dd413647bb39859aa84933a49af8fc9009690be7fbfb05f7f383015' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'80d1d261afc7a40e810609b92e3617f68a2770a77f705ec2bb562354a6ef8ac69787c25f47426c0b8603f35b2c8d1ccc53e8de4cc30773', 224 ) = '1d47aa5186c55bad63f8a13f0e4543a6ef86ce6a18faade4d4d65ef7' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'3b51a4dbd579846dcadae119be589a91a7dd84a727595f6b1a0709946bf1f2222bb6d041e48b946f2a809ce174052a232aac1500ff30bea1', 224 ) = 'd9c6c0f3b8102496d408388660765ba83b601ee3bffc2d3013f095d5' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'9c76043970f3e2e1f533f85d86b41d394d8570270afe3f500fae28e88f957e051993efb16021633d3d3f26d9f7ad4a62c15e477b842ae5dfdf', 224 ) = '94a7213f15373971b135b47986b3135df4dd45589ba91562313dd70d' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'738b98206d062d99a1d1d7b43f6bed03e01875006c322ffb3bc0d6577a4aa2f6d1eb11f242a7e78e55ff736c72c315008e28fd440a1a35add7d3', 224 ) = 'c40bbb13d17298721c32ed46254a0cba547c4c2086902fadf739802b' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'88ff5518acc6aa5484d8e68c5731a04e877c692f68924a6d4e3d6ed3ea411bddd69de71d6e0e28dde2d5ac0689baaa417851f95b547c80ee6431ee', 224 ) = '9716f750b69fbf537147d5ef468b807425127d6c1df07ab085eb3fa5' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'eaf46a39648bd2baf7d240eb37d812ff9b0f8a838b097f41ba7f5265b69724debe664607d3b4f1871100387640c43ac1a7fb9ccf20df376472f70dc6', 224 ) = 'd180561849855da0369998d10c0ba2775ecd3bc7392a8da1014116f3' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'ef15b0ac7f267e7d9f4fab40b52ee9321a877fcd72443eed39bab7329f2eaba59698c39e29a681e50f04771780dbb74b47988af619ee650c251e1868ec', 224 ) = 'e75969253ec7b8caba5bdb0b024948430a217b3076fa90d4c881a8fa' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'71482c3b0c0b65470314c4028b9343cd9092579a4d3623501941ec7184dccefaa294ad8aa7a26ec7b46f66fdf1571209dcad0976e10030e52a9d2db2b855', 224 ) = 'cee2546181cf14a689f5c66a6141f171a0d2fb116e880778c13ba220' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'de38350f3fe504643d318bd131e6fb14f24e0762eaf5995170b1c4f552e0fb49b0f180d111261e7eb0971bd2177b6944efa31ce617472145f3052c910727f2', 224 ) = '7741192f3dfc1a50166dc6e6f18f6e8580bf45f098fd0559139d8adf' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'81675f6f8ac523cabf94a8a43370a91d9717826e5026e6cdcd23d49217c0c797a95e2ee483d11b8c7a633fd2d21b16900e3f5fda0717cfde3cf4060e6971c282', 224 ) = '3c699b3b62e432e10a255fa7f6a6dbfc6d4b5813d6dcae32142e09fa' as NIST_SHA224_test_vector;
-NIST_SHA224_test_vector
-1
-SELECT SHA2( x'bd', 256 ) = '68325720aabd7c82f30f554b313d0570c95accbb7dc4b5aae11204c08ffe732b' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'5fd4', 256 ) = '7c4fbf484498d21b487b9d61de8914b2eadaf2698712936d47c3ada2558f6788' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'b0bd69', 256 ) = '4096804221093ddccfbf46831490ea63e9e99414858f8d75ff7f642c7ca61803' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'c98c8e55', 256 ) = '7abc22c0ae5af26ce93dbb94433a0e0b2e119d014f8e7f65bd56c61ccccd9504' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'81a723d966', 256 ) = '7516fb8bb11350df2bf386bc3c33bd0f52cb4c67c6e4745e0488e62c2aea2605' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'c97a2db566e5', 256 ) = '0eb0281b27a4604709b0513b43ad29fdcff9a7a958554abc689d7fe35af703e4' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'f53210aa6ed72e', 256 ) = 'dee684641421d1ba5a65c71f986a117cbb3d619a052a0b3409306c629575c00f' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'0df1cd526b5a4edd', 256 ) = '47f527210d6e8f940b5082fec01b7305908fa2b49ea3ae597c19a3986097153c' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'b80233e2c53ab32cc3', 256 ) = 'c60d239cc6da3ad31f4de0c2d58a73ccf3f9279e504fa60ad55a31dcf686f3ca' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'5d54ed5b52d879aeb5dd', 256 ) = 'e0164d90dbfcf173bb88044fac596ccd03b8d247c79907aaa5701767fad7b576' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'df866ecb67ab00515f6247', 256 ) = 'dc990ef3109a7bcf626199db9ab7801213ceb0ad2ee398963b5061e39c05c7b5' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'0757de9485a2eaea51126077', 256 ) = 'c1c9a4daadcc8678835872c7f1f8824376ac7b412e1fc2285069b41afd51397e' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'7c66f5d443c11cfb39dd0aa715', 256 ) = '6840619417b4d8ecaa7902f8eaf2e82be2638dec97cb7e8fcc377007cc176718' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'329624fed35639fe54957b7d47a9', 256 ) = '0f5308ff22b828e18bd65afbc427e3c1a678962832519df5f2f803f68f55e10b' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'c34e59652acc043873ecf6a4ab1060', 256 ) = '0fdf1604ac0d717ec9587b4de5444aaade807589d90eb326eaf6acb58a051e79' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'fdf4700984ee11b70af1880d0e0fefd4', 256 ) = 'b01ae16eed3b4a770f127b98469ba26fe3d8e9f59d8a2983214afe6cff0e6b6c' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'ea40aadbefedb0e0d78d067c6cd65c2c87', 256 ) = '36157bbe61931d58a3a644953eaf131bbc2591c673a1f20353f51ca5054fc1c2' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'6d1092004670efab3af483d265d8e7b3da73', 256 ) = '67fbf35d360d72b101410794ccf197106c0e784afa9c80206a550b600dbf1f16' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'55a10148ae7b09ac4e71df438135bc70e873eb', 256 ) = 'cbe7965513af46dfd596dc5839cb82a5c6c7328034b1dd0042a9f4b71fb14430' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'a03f8fcd777bd933b4b0af8c5ce3d61308565649', 256 ) = 'ddfce4e8c7b38845e2a81b7fc27a06366467a9e111316014013f9701e2413ce0' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'8e5d6cba8d4b206381e33ca7339bec504f3d6119ba', 256 ) = '92f678a3e59d0dd3610eec3222b8c6ebd28eead530723fbd226747534da22b6c' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'96db1b62eed85f2628d0c25da534401fe80d13d09beb', 256 ) = '725bab4457c789d6a4cc4736b9c2c662cda18407150844d74d6aa4efd72dbb05' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'1c482a45dfbcda549729126b533477edfaf7476fde498f', 256 ) = '6523f24f225b996aad1a8b317e6e0f8e97673dcff3fd62a27ff9f3888ea1302d' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'0f677d8e4c6d6a057492670d99adb870adf68a36ead37919', 256 ) = '44acbbc6b48bf37ee088b9c8546fc46e5a5f0d637b5e444f628de186144087fd' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'c09056d597816542bffe4bb33e475dfb2d6293016906ddc18c', 256 ) = 'f4baeaef70588a0820d63c2401dd84f98adf7366782d196f8698d7dfd3db1c29' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'72f313fdcf52d0749c9937cc2e53f50b44d65a544876bab7d2f8', 256 ) = 'cfa67aa52fd675fca985f69f9ca58af62baead8c39723bb6bfbae8a5d4bb9beb' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'09f6fe6cbe6744149f792a4a827e4e8909627abf75301bf7bbd7f5', 256 ) = '657633891dc6274d6aeda78e7313dfb960eac9a24d29293a057b9746a18de4ec' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'9e1cfeb335bc331744247df4bbd56876a7f69298aaf6b9e7a8731889', 256 ) = '930058dd21cb48b2cf90eaca55322ddf48582687838a584928440504a2fde578' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'b8913001efb1b7f4bd975e349c5b2cbe66045bf0d2fb019b3bc0f059a4', 256 ) = 'a0eb0b7fad1d1b6de4f9096724a621720538a9c3f2f6d11134d68cb9ee52fc88' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'8f08537d50928c911a68b071d65b9e8f038264d3b62c5f33de18a484cde9', 256 ) = '10aad5cd4484387373577a881974f1a550782108bc88b4e2e8085e9c3e938bbb' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'fd846162c4da936d004ffe0cbe844d940f1c2953157cf4765dceba2a6f4c64', 256 ) = 'c13ba769aea0e478816f2f608b5cec3fe14672ea033088a8641cfe69b4ff57cb' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'8cf53d90077df9a043bf8d10b470b144784411c93a4d504556834dae3ea4a5bb', 256 ) = '56059e8cb3c2978b198208bf5ca1e1ea5659b737a506324b7cec75b5ebaf057d' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'1bbc2b15253c126e301f9f64b97be4ce13e96337687e2e78fbfd4c8daf4a5fa1cd', 256 ) = 'd973b5dcdae4cf2599f4db4068e4aa354f22d8901adc463ca3938c465578147b' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'c1bdb3bfc65dfe9a393331266c58d05fb9c8b7476bb717dadc29bc43dabd91504fc9', 256 ) = '57844e1d762e6b7bb86dbfcc5c5a59578d39cc665d1ddbe4de03a61778061af1' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'26eb621a45bd9c9c764ccbb672b99f2a8379c7bbf4fb07eec58a8b0ea4747b72196ccf', 256 ) = '73dc27bd45daccd0f811381230cf7f2a1d3ed1202e9a770af733146b1e166315' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'7e3e3986109162e0c56357048bbd86ff49b93644b7fb064e7280968650978466f02c9adf', 256 ) = '682c474799f5103252c3e2efef7f747783e514b54e93b8303b0e07ee4218f78e' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'763c1a9ea50bd72bfc516989ddf3eff2f208f64fccea3cf0ca8dba7f3d10e237c99226510f', 256 ) = '54d6cb2b09825eab064c8952113b9897a3344737cd186a8e6be0a0b258da3e57' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'e1a7ffea8417e7cd49b96e355fd44f3f7a150fab6dd8343dfba3b262eaf3a6175a3c4607552b', 256 ) = '83baa80caade404c446833ecef2e595bba6dce2cb7f7422fad2972a9fe327aca' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'692a18effad8317a11a5cddb917f7389e1be6dba34572a300e52e056047e758bc363a0be53784c', 256 ) = '0c0c6a6b27a6d7a7a5130d70db3b8bc1bd8001d103efe72f45b082cadbd03742' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'73fda1e1cb7dc9a9ece858d040d7105cc126eab153fb0bb55703f4317dfff97bd980f4523aee3a09', 256 ) = '9878f8804e00828b39261843f2b3eda19a7e9b9ff4cc2e23f7ea1f62f4491ff2' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'2321d88c19e3e6a8309a09a5428c01991e16446823f13b2f0db4ade30e9a7c3521868fb99b440f4802', 256 ) = 'f1bd3a8a74c8f0093038499ef63794d86fc6d82602a802a435718e61e7b396cc' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'b9eaebda29172b052bcc1e3a9c7f2eced43c084a86f89f61e7237425137c167aac29e4cac4071afafd3f', 256 ) = 'ea43ec91285145d8f29915b227a0e35c89f90d968f9a14332dad275cfd52d619' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'332daf07d3a6775b18572549a6e12b8a27d81b7c4abcc5bd0b2b9ff936546b0026af131cd3ecd8a10c29ab', 256 ) = 'a573959ba6b1c3bebfd6288c806b72a65650d23bd46d123816a2a6a0e47d1e66' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'30ac7eace1f2e41034c25a3d3e2db979c23dfaa7a4914b0da147625b3e1f12e9fedc1c41d8ee47dde84fb332', 256 ) = 'c0c3f40d34e711bfadf517b3a78140e379fba5f7edf2c1bc3ce82469dae4d2d5' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'02c3964c4ad9c4af97d373099302c2cd770ad06c7d8bd11c970161d861e917a854265e223da28031ee38041534', 256 ) = 'c13c622bf08a3d3cf1fd6fa5e26e505e551b1643bc5a0f59ed29541235218f77' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'b9eed82edcf0c7ba69f6f6ac5722cb61daecaf30437511582117ad36ad410ebc6582511ef6e32dce5f7a30ab543c', 256 ) = '6ac64caaeda4763d28a44b363823a6b819285410fb4162af6ca657396f6028d0' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'b574865024828bf651df070ac0cec1849aa6470901d2e30fa01dcb43862d9827344cf900f46fa9ef6d709e5e759f84', 256 ) = '4c839e8f8f373c25a9a3351257c6152258ff8e6a88dad42f30f2bbecab56c20b' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'eebcf5cd6b12c90db64ff71a0e08ccd956e170a50dad769480d6b1fb3eff4934cde90f9e9b930ee637a66285c10f4e8a', 256 ) = 'c117b9dce689c399ec99008788cd5d24d8396fab7d96315c4f3fe6d56da63bb3' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'1b7a73770d168da45bf2e512eee45153e02f4dfe3b42e50304a3d63d7826f0469562be8fdc6569b056a7dafcd53d1f597c', 256 ) = '0b42cfc3dd3d3198f06c30e087837ec6a6dd35d08e54e886c682709f8f42457a' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'0072ae2f3bda67736b9c66e2130260b3a4847bc3968e037cb6835efcc2014273336725cd5a94f592aef20a0a65b459a4415b', 256 ) = '217cf25b8b343c28336b1c1e9bed29e0c96045bc93daf426e490b608b0905c90' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'2ac748680f3bc1bf098c4be38c7194643b0d009e51c43630404cdfaf9807aa9b299094916c9466c31fe37fa630c6d3eadc9434', 256 ) = '3ea59e2e79513679a22e962f22408306f7e8f6e562c2f1f210e279fad8eaacc6' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'893d1a8863d234ee50e5a8c7650a4de047230ad03d268dde8921401ff97b79dfb97cf2426b0f782b79c7e75daa2155e1f4098ea7', 256 ) = 'f7808e03e5d5af43c2bffb66e35d1ecbd79f4d8fec44f821f73a235d17c70a89' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'cf673b96eaf241cfa3e262dc6fe65f08bcc2be56d8a2c9710eaddae212ded6859f0ff83e5e57d0e80a968b8ed24e74defeb5bbdad6', 256 ) = '9bdb7cf0492ace4620a47660acd127f951767b0738b5504451d6ed56e4fa3cbd' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'0d545be1f47b966214691c21278704e89a17d52dd96aeeeacc5325a9a1ddafdecd39407a4dfa72bd32856b4c5cc2ba838618830c8399', 256 ) = 'ad53e0db7e63211c8b00947908ce29660c4376e244e19cd30a659af65dc6f1fe' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'9eabfcd3603337df3dcd119d6287a9bc8bb94d650ef29bcf1b32e60d425adc2a35e06577d0c7ce2456cf260efee9e8d8aeeddb3d068f37', 256 ) = '83eeed2dfeb8d2604ab5ec1ac9b5dcab8cc2222518468bc5c24c16ce72e70687' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'2fc7b9e8b8dcaac64ecef4c5f91877543ac36ae494d9faf84b1d347b6cf925570db84043d6f500dcc153cef81d6f2437d913f3dbffad42d9', 256 ) = '6ef7e9f12267ebc4901267da147effdcdebcd6ec5393c7f62ec4c4f06ca72649' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'cf95929ab732f9ef5e8c3e6b4ed753852ee74e4fddf31b56c29a6ec95d23fcde2209eb7288b787f05d9036735c32ae2f01fc650d9cce4995a5', 256 ) = '3e5854169da065407fa465a4694f3fcb1d141480a8f84c970a0f63364ec8f590' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'826378013988684c40f4d917c7ed8b72aba66fd68f085d0b2eb20948ef3f349dbbc71f8e0ba845014586495a48902ee44505c673d2f76d473950', 256 ) = '5b506b823ef6658939aca22f52bbe5a4b849c31b8fa1d09139352e501137bc04' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'0cab6d38ce9849fcbd589f7235a6d2c2cb933e26e1ca6f4e78189104452c280c069b024e162769373f409d5cd0cb8160f0239418325d23ee6ad1bd', 256 ) = '92943076cda4c46718e55df64d7580e12b8fb2c2911e87851246ccf6791fa3e6' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'3fb4a8c5b57c14731179256608614c95c9725ddad5fbfa99111d4fa319d3015ad830601556e8e4c6d012d7da0e2c4f60f1605f6e4c058ec0f46988a3', 256 ) = '8e90da3eb146935264576f874fcc5a64b7a90ab6c8a36c15d855b0179f52f899' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'9050a6d002c90f6036c592b0f6b866713e7894d29645f4a19e0858b3ebd8078711c26d2601ca104d962dc6ce6ae92634ee7f3ca6baf8810e2126097a09', 256 ) = '03c516677735ae83dbe5a7e4c22c1ac1bfedcd46e7dd785f8bfe38e148eda632' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'd659ec136bacfa0b5c906aabedc93c01c5f1efa3f370a1432ea8778461703f0c67c454da12bac2da73b8abb755e5eaf10bddf52f6ca908d61bee80da0c64', 256 ) = 'fff2852957a0eeb577e73fd7d827f650261dfb9a8a65f52df4bbbc9b2d0ae50e' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'b498555658332b197bc5cb7adc5c1997aabbdcf1f7ffcc2b6b82eb0f350019d247f8e399c3559d3bb04eb049f28b344c7989c24db83f839b59028dc82fa670', 256 ) = 'bfbbf242f79bff4ae0aafb4ccf69b24fdca4342d83db1dfd1822c74a9e218e8d' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'3592ecfd1eac618fd390e7a9c24b656532509367c21a0eac1212ac83c0b20cd896eb72b801c4d212c5452bbbf09317b50c5c9fb1997553d2bbc29bb42f5748ad', 256 ) = '105a60865830ac3a371d3843324d4bb5fa8ec0e02ddaa389ad8da4f10215c454' as NIST_SHA256_test_vector;
-NIST_SHA256_test_vector
-1
-SELECT SHA2( x'ab', 384 ) = 'fb94d5be118865f6fcbc978b825da82cff188faec2f66cb84b2537d74b4938469854b0ca89e66fa2e182834736629f3d' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'7c27', 384 ) = '3d80be467df86d63abb9ea1d3f9cb39cd19890e7f2c53a6200bedc5006842b35e820dc4e0ca90ca9b97ab23ef07080fc' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'31f5ca', 384 ) = '78d54b943421fdf7ba90a7fb9637c2073aa480454bd841d39ff72f4511fc21fb67797b652c0c823229342873d3bef955' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'7bdee3f8', 384 ) = '8bdafba0777ee446c3431c2d7b1fbb631089f71d2ca417abc1d230e1aba64ec2f1c187474a6f4077d372c14ad407f99a' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'8f05604915', 384 ) = '504e414bf1db1060f14c8c799e25b1e0c4dcf1504ebbd129998f0ae283e6de86e0d3c7e879c73ec3b1836c3ee89c2649' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'665da6eda214', 384 ) = '4c022f112010908848312f8b8f1072625fd5c105399d562ea1d56130619a7eac8dfc3748fd05ee37e4b690be9daa9980' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'333b2459200d2b', 384 ) = '5dc6eb1bf26c54f2e0409f5a31aa97c37c8e168d0226e7d2764a11aff3fb76d15e9348520386d730e1998e530c59b56c' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'ad46049e0230c70e', 384 ) = 'c0bc9050670743f554a639e21a5870c864ef56ca831fceb7295b4c3050c3c20876839cfb0d1bcc11c9d64304ed008517' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'ffa6f17b0798388a71', 384 ) = '026c58cab40b45e5909bde1af1bc1ab2669af98a9e3eff10d1ba68f5e3f2adf47038c03b3cc0e07d5353b6ed4d0027e6' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'7eb8d60bf02398ffa689', 384 ) = '683c413c0bb9ecf3a0da7a88c314e85d4658ea4c7ea21b48ea5adafe66746a97e9fe40d7a3b4f1c3fd4a1fab75dcf422' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'c0cf1a3f73dfae7c114118', 384 ) = 'be9839e9ac6ac7a06dbc494823e52b43427b649d6c00d7be2a4ee1c99e75096a82aa9546f804f4c5e2d62afe3b269b06' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'ad5f06ce6e1632966e4a3bcb', 384 ) = '33e29cf43f8cf3c3680710b342126a020e72398ad4be6bae86511a7771d563bf6e76867eb8890d31fea793adb2843481' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'cb3d16ad70bf80e5a9b1113cc7', 384 ) = '64ea8d5538a7ad26c87ac68f5e30c454d150cd3311066124dfc11fd58a56b1d42339f410a09fe7478ffad037f412f992' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'842562ff1d0fc2c173825395a03a', 384 ) = '638c3239fa399faa786a12eae1acda4744cd8d65b7be4532d40de84a994096e929ac6d385d84183637cadfedf2941e86' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'cc95dd4d94b075071b31eeecbe9421', 384 ) = 'ebefdbf6230a671d7b1e31b26fd386f792074f8a897e395c5cf327b5cf9019220e661ed1edd1eb35ca5dd8fb4ba90389' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'daf8002b9394138220770bf3026ba123', 384 ) = 'ada9fb71becbea38bd3378b87d8b67906298d8a57b9c371462e88fce6528d30756dce80691c484f0ed787d4165d09aa0' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'7464d6ecd83a91466fcb1b2c671fae075c', 384 ) = '1cfc153ff54c2eb7825a8772da16b2a39f817fe2e27ec73f7393b3999102d02b480d25b22112aed7f44207d81ead5e2e' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'5520843bdf4af949ae3764b5a9c57c64f513', 384 ) = '8bbf382a606b530cae88e084c944cd32e1690139698e8c92edca1d330cc6675ecdc31c49101467737b0fca2ca71e83e9' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'b2a41b40e3b53d1dc5e37570193f9f76bb80a8', 384 ) = '78df76c6bf5f95fdce5e015eaa37a7e0782b42185c9c989903c26fd43015dd93d949c9ef1a21c858901a60633e840ce8' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'aa986e747d04b932ab8266f259f1ee18e87fd7e6', 384 ) = '81f50207238b98d4eac5907d3c61a982f0cd155a15a100659ea3cdd88cd705e282227161359cfed12ed384a82cf96bc0' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'948b333f042cc18a82cec0177f33c3bdbf185b5803', 384 ) = '5ca83aec2a89bb12ba15cd5c28bc685998f6e62de2ea2706144aa4e073b6b97be7750d0fb86e4a32499920d721a8e59b' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'57271feb9fadb6ef7c9c988258889583a7e2ed86bf7a', 384 ) = '8308f23dbd930f511998ec5cc95428870abb156729a166902b268bd6992ba335d81d9881035d4ec3509fea18015a4c4e' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'b1e6d9be83ca63c0dfd043898cf49690b30aeff093a6a7', 384 ) = '3a94cc56c3c7cc17d54a836b2920edacb0e27a93d63cc152da25010cfab7776bfbb2505af2a0528a1f0198a6375dbcd2' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'c030bb7a49275a4c0a80bc24c6c1d86f4467ca2aa1e6c900', 384 ) = 'ee66585df3f2e40a86d29f15a0f6e7674bf258d0c8dbf78698401fdf0f8b94fe45de202748024d244eb2b8d6e4bb6371' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'aead39a90fed8eaa4bbbe3b2641ef21f8e89321e94af581e78', 384 ) = '55836ec67d5b81f77b38300b7d13db81bcac7fa6b1d8839f65806965978f4fab0db69e50b74d3d1698ab9e10131fe28d' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'2b9e8d1adc0c06a4961299400245d54fd2258b6cff50314455f5', 384 ) = 'b858bf457211e1e10ceff855552eb4ce5067a7664d7008df210cb63502d04f5a03250b64acbdba78f2c30f4820204bb1' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'8e4a0b1b68b8115aee9569c4a1f33109373b790be267a8a8d5721a', 384 ) = '8e97304e6222cc6a93fedb2d526aea034c3d706ff59c1bac6b9c88c3afd15d2328c1615e94c43262d338ec89a545b855' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'300d1802549eaea76f75f4ad10b123bc55ca60afbc17353b369342d1', 384 ) = 'b9c1ea27080cffb70a36b07a44cefad77917d3e7c2429cc196175b21018c99d94e1bb125cb180d45b3241dc210536abc' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'fd628596a69e7038d31e1cf2acba11fb20f7cf9ed72b658668e23f38cd', 384 ) = '8bbb105eb0be34dfcb9b3dae06f77a3e21cce06f701339cbc3844237383295270af51ca28dc893108de65b163a75cc20' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'6d8393d6679e69244db604ea71226fdb4ad3e70e223832020f6032de245f', 384 ) = '4f200337cfa5b77032a7e5e0fa6dbd35a85e4cdba9e2d61d69f3d82dbc4d64e4ff2d029dc52cd2cff90270a0a5a016e8' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'922110e043965d39c2c124499d47877f1e9e33a27b72365b4d4812f443620f', 384 ) = '2ec96054f9d4b87ffb2b447eff8aa44d40200a099c8f6698ae7c86889d3b2beb7ba60634525c4cd3f4635191c822811a' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'b8211b7aa8ae99d26e35c06ea4b226e0a6e52172a40e7f0df5f67759ae2ee026', 384 ) = '093945494108573fbff96c4ea888181f798a022ee5e89137b688a15c5ac85c4da72b8c44558e62323b4de180962aea53' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'6966ef05235dddff26bec1853eb36840434604a79cd4d11702bff9258664b633d6', 384 ) = '8de0abf7a039124ebaf3570db07f3e7547633a5ac56f8c86f8bdcea7296033d7e19c329c381afc050002b7a7b219234c' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'11e8a909b7335c7713671d545943c7e24ec07a8d453935284dcfa67aa90c40f980c7', 384 ) = '4c07b1ac241d727cb0face5e306cbf5672f560acd8e26c7d6cf52782cafb5341733f167237ec56a8e245761c99508844' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'508d360e41e4f2d5356d6d63d1069d21ebfb2e60a0cd2e3fa0320acecd5cb973057e37', 384 ) = '5933be6cb65ba0c9aa50377f93f5b4311961739ba8de3407284974e8a659b900289da049161036278c77dc3e4f16f232' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'a382f5d82a34420b8779a3980ea138f4ea7aa5fe1074ae40760305727f455f40bae5cd4e', 384 ) = '381728f154103fc0de79131de07de5b81ab8e51a9b470e0dbf860f0f7cb6d8418cc604d00895634b2becea268c6e230a' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'63fe4a7f46ad6ebbd8644a6750c601ed00357c5f3ff602bba68f086e7f744a167ae31a8ca2', 384 ) = '1a9bf6ca1f0f435da889c59bec482755926e80b06bd46f80bbda9bf4a30a1630db22837380522146a36e5fb954a7779e' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'94d972dab4e15e51e8bf91890d2ef1a155e26ea03eb48fb7c5ff51c6d64a322208278996875a', 384 ) = '4926848163c834639686244f89c64bc90ebb2c57456a2c56705a7039dc1389fe81bfc3e4d4ac526173a53a2064604a3e' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'0c555adb19cd55039a9e27028184e89f44a8725f28cfc457bfd2a43eaf4e89c6b69cb72ceb04ac', 384 ) = 'b00119ff6f8d405608c74185121c05f76f2268a3726bfe3ffadf7b338b1df0e0557080ae533c56a31b8959037a88d69e' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'567c3828db664ac1e31624b8b5c7e344f39eebcbc43a2b0e318ca2a2d0e9219fa05d539c3543fcda', 384 ) = '636a24bf0d53cb13c27441633781005baec355c2ebd231e393df934275c404150b46d39f100b245064dd2d9f4e19f453' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'32a59e2acdff4c2aee788ab4c7cc36fd477ade2a906dd512acdc86467b6f094ff0a3f4367d6f744acc', 384 ) = '0749c3b9c115b3e29731947878fab9c9cff2286e3f9a24d62240278514c41bef220bbde040f23db4692f915ef40cc92e' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'cfc3ef84e70f9247d9c123de7be8c6e9ba4c7395dfa5556f110a707a1bac877e70c43da46cca7a40dde8', 384 ) = '2b3a9ee9aa7fdaa27d23fdecdf0a7da71d2e9b8e9948c5912f5d2d02a42f22d4e29c179b1c38a1e463569cdc9c2063cb' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'eaa144363d47bcd68c0c950be45ce1b87043c87140256fd449af1f1cad0da3f33d5df1883c640de266802b', 384 ) = '5263e9f3e8a1bb5634050ca89916a961a0ced1a92950ec20aef411e431d16cf9f77ef414b75ad922d9308f9dfe571e75' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'c63da62dc71e97de646f695b5a8c58fa6fae08e5fb622529a83a460976c2189802b5b8870771603b25a94622', 384 ) = 'f63558786f3f06cc84884f14a93a9ef96b1174af8e15296380f7057320bf21e2b5c0684b00a00d895267c3e1404142ff' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'5225b6563257ef806fb0eea5df034cc319db7a5b295f1075887861e64b3653ce9a706e6464ab32f6513dae2bf8', 384 ) = '5be5579e0bc2404523392f95cac2e3e9e59d398b11143e481594edc57cd04247355bee2fa80d0ef2e5dfc0f6f45c4fb4' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'c0b22bc12ecee79ea76f1907a8f435f657b7bb375c92ae11f2a248283e4aeca2df7b5c89c6332c704844775a7157', 384 ) = '1ea1bffd5aee1377de1af01d7c895ef5ebe1c1d72b532b43d5e264c158637414ad1416f21e9a32b194415d6e3e982906' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'0dd0f1807170ea493604c82293732648a106786e1a1df10d6021a4fcc1b9e940f9410225f878fe8ee678de8965ecf7', 384 ) = '2482561cd0e3468a5d8c75c3a1261cb36257536cb165c0f29f817d80833b6a002eee5dc778a953124d79d4d4835b12c4' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'78334108ce6261ddee5d98045bb307a6e8f3d0ee65c1d9bc7d28cd9edf3264fc9cb6e592d072e9238559616cd42eda58', 384 ) = '87feb45250c1e5b4cf701f86fb24d6a49b2c0d2de92db884e2fcdf5e323c0539c78e5a99fdaf56896eed27b897095741' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'e9d96ef05a41486b10ea2e5a9c7059e227ac4d4b61db664cbbfdb488d67c09583b0e4fcb4cdc1feb7be49042b99c4d9d31', 384 ) = 'c0d72a3a4cbee53ce48df9574b65dd0791b15b03202f7c13ada8cde3a4e8c220d9f3d00a3e37b31f44cf6fb5c7134e18' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'90413184900f9c0de1a1983e1eb348bd2c2654aa7b3e4474880d2df2a72f90afffb87f85d66b016d0f2db895f0b9c1b32994', 384 ) = '5c06fbe39a401c80f0463a485d6a32250218db63fb8ad77d1cfce824849d0a61b4acd5a36fa14b22a62beb758b780e6a' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'630fb204cedd5efd2a3c272e318e3b1b3277f8bb12d90b139203d90acf251e780f07d380bafb5620a711c5069989aaa50a8ede', 384 ) = '73e862668fab744ef2768a9bd2fc382532b99c03c4cdbd88eea4a224c56c187d48f8f9985b73d283ce03d71d49dd1c41' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'0f372d71e1c9941d7872956309db44db57108d8be1e0106859862f1a5989640052e0d874c55a3250b53dadb05c2d6efa1d50141c', 384 ) = '13712a36f85a7ff0b98838d674b058bafd11c8a3a9c5ce505bbab1eef6bd640644f94e47a73fd7cfda5a1ff30d830b2c' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'50dd69e3080e0d8a9713202b68c4e87fa2b57bdb940a39a8568c9a13adfc2a0530a7d156a93a583ebed8290cd16a561a2436dd0041', 384 ) = 'd22632b3ed8e83b528e40beb2ae4e01bdcff0e62cd0d48a35f92cd2d286ce5d72a597e0ff2cafbe9ea7eaef32ce5343d' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'ef4501c9eaca54649b6e7dea45005ec7716d7c787b37a79e5122de5178316db650d058d49853fca3349ff4662e273a3bfc1b8ef101db', 384 ) = 'a7574f6b0f1872483ee52be517172dd2193e67cf5b3994947dcbc2866274868c70391dadd8d81de7573ba658e2615871' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'9fa31c5626eee059714e363391284189666594b7ab694f6732498b637138f9a73e43c5bbd73fc13f25ffbfc742ca3eea380b4a960c4b9d', 384 ) = '055c9415e4a5c921eb9721cb32a5c0b47fb57b1af4884332557946717942615ca6251694381537f2a7edc490dfaa82f9' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'e2b76d556ee3b9475a1c54e18ebb0854c7971f543d1a25c9839bf0c7aee7dec0b9215ef828cdb23aec27f3ca87b9559a702cacc0b95f2f28', 384 ) = '6cae189d9765f9a56c825f5e24f5f5c9f60d80f57a35f788ea548e7755844e2592db2c7244a26d7c37ba9a3e5f744a3d' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'd189c6cfa4c14712cfae7fae68d66907595151886e88888bac3d5c79e5cc473289b067afbf482ee6b4db5bed33db29637766c60c3d1206bb1d', 384 ) = 'fc72b66aaead15676fea59cbbc20d39c929c8590a50a0a05d146c41fd92272da3a56f58f6cc93149fd65e91b3f1655a2' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'31981d12960c16661b3f7c7952871a7b00a975677da7557d5ed980f3523fc9e84a164999dda9edd7ea6a31b97f412a8ef924ca156de860f14757', 384 ) = 'a470316104c9828cd96f2b76886a37d01ae5c5a0e537097c4e397dda1c49c59a78d33f4c4d5dd634b7956920760eb0bf' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'44eb420655c5cb6e54645bb6d41dc4f8d5ffafcaeb61e06d9cbebb4709c30793d1a5f35832b85697713e3bc97c7c9d89cf146f8d948ee0da0e38dc', 384 ) = 'b0b028aca4364c92427c4d8edaa5f6dbe2b30e626433d20ce27e5bb74b17dc59f3e9e23e08ce9d49882cc26118e8fae1' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'0871e0c4f2885572f7847cec0629592df48515d2c3225be3248001f13ac2eb61a1a82c07afbd6ff7fad296971aaaa0f9b0f7d068a7850b41b9b68305', 384 ) = '503fb0ecc8b6bfbeff397b9fc02598651ebec429acd50e3add6a9752f576e24c5d933573ebcc23cdf06f807000370825' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'32a5984a4510ac51a9b876ef1eaed25e82a9adab45a817721dd99ae9fbbaca1f3d7e1e8625b2feb08a201d56cdf4099e0f1d019da1f6061bbc26349773', 384 ) = '0ba492631a4261465c137033eb1492ff8cdb0e06f8494e2c52fcf029b157f2127e0f4f75b5d3a10209ba70bd7eddec9d' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'3d62c78e081a996ea4ce2124d6816a62112b9c7eea5c142ecc23ba90ed2e8f6d803286be2d8e956fbe2b0b641ba624ba78b1db4fcdb6ff8486be89417c92', 384 ) = 'e6b6eb5d03c7caaca9f7a62c6cb48c0c5662686c975325d7b94878a43b64fc38a884b2c3635ba7f74df36402c974a7c8' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'78817bc3f6285eca108e54b14091d1ebb9ecb1b7555dcc5acf07cbab32153ad591a0de59f9d24852a44caafd6fc6ea788ef5f5ca7fb256243c580767b56e86', 384 ) = 'a0ed388522b9bf2737b10071c9e22c9d6db99bb3808ea3248959d075062d845b872d2eeabfa4e123b4f738a685a3c41d' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'58beabf979ab35abba29376d5dc227abb3d2ff4d90304982fc1079bc2b2880fcb0129e4fedf27898ce586a91b7681e0dba385e800e7926c0bc5afe0d9ca98650', 384 ) = 'a0888e1c4d7e80cbaaafa8bb1ca1ca912a932175c2ef982ce1f123a8c1aee9635ad75be52590a924bed3f5ec36c35690' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'd03e8048b7c387b43067b039e5b9a0f353d94824862dc485235683daac63a9c90044b1ec218157253a2cb532e114ac81993b85459b8ad8c9d6c4ad0434b9e26f1f', 384 ) = '370629f3dc8c8d4b79c3fe8f9033de2a4bd42874f7b3ffedb4b38d73e7959896c45572f08f2974c86e7a51a6117d1dbc' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'296a9a5b9a0d101f186d9fa6288c912202547cdf958569d2cbf235740eed38d10b0025dbb6de31058e98780d22149c19d4bcaf06dd7353fd91cd1f47e47f45622e14', 384 ) = '66d6336d30e32ca8ae874fd4869dc3ae94edd97484c385bc93a6384353ed358cebea55bfbda954ac16972596ea51384c' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'fe4d2ae2bd5484c7782648130e33f1e478a2deacaca1572ac1f9cb9953e55b2729249da8154d998c1c63180ed7a91faf19b7b6e3d3ceed0a346921a114147cba9281bb', 384 ) = '1df79be52e4a50b6fd14cae825139a39c30829081342b9c4de4fae59df8a0ff20c8a9fe3c498c9ff567a89a32b2e7210' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'6ff84418235fc6ab5d12c1bc6591c66a689e9f21b59e2b1d2c416929f265d2ad6a38ece7619d1c7989d2bb24294f6dd312f1aedbd557ae81338d5fbdd5e7cc3d3e30acad', 384 ) = '75df8657107143d13f309094728c3edc8e92dd36a504e0c0f5c9e8ce64bcc40af18630a1913e9f2214e6638c2bd68552' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'22817ea8761a32516e99c2c00a4d4e6290b46f3d819bcb31cb87e77e40543d87471c8fd6d25a7a5f904f4e0963a51d6a145312d246c0048ca82b4b606f4ad35c04316fd5f9', 384 ) = '51c1275486c73022fe476005a436a0f8623683d568a7e804d81329726fb30a64778b559cb2152a8a7d7889b67c77b1ce' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'd4070bd6e39c3da7751a714915e73e85b73ccb7857379044dc2c6105423da807f82af236876aadd5757a2f736975fb1b8fe540cc3ed8a328d9373e70f354e9b0b6c2b8378569', 384 ) = '87510a9917a6b12fadb3da68908606fab3c76b8e94e250eeae2817dfd4365991b1b517bcda578875fbfddcfdf1b7b142' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'f61034de4f9b0c2d203170cf0d344bd869fba4fca977bb5218175558ccea5438d8048a49c322cfd93991512a014b2cba2f643bc79ba42d139176dbe5ca00d8509b944ab76d47f9', 384 ) = '4c0e7b2409850cb0d22b8944d44876f097a40ee7a5e3cc4a7a20269516d1a3ae5b0b52b5af33d7a7cc5c839966c712ea' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'39b82498bfb4c821096255f6555e0638d06d9a7a4f62a8c83f4233e8dfa67edfad6121b81d635d8091ddad9586a69d210bdedfe178d19c2b5c1d082fb718397d6a6c39c7eb045ae8', 384 ) = '4dddda1188954064b4d134d8be7acc52207945894f97402cb0e8b2519c2b2ca449ca96a4ab4bdf078b0ef2fc9814a74d' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'2477a617791efe62db70e5592e0f815edc0dacaacb0c92928ca37b08d504e56431dcd665f67b70727735c6267c08ee0cef7f58a7d8d55db68c5e1bb5202381a724cca6138ec45f4df5', 384 ) = 'bee03bed3eaceb6d7ddfbfd5bac017fe346928f5a128b2fc0bba965d80cdcdac653af7dd433feaa6fbbe4c415d24ff3c' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'12812e2b54e6b89b199fbe3b695bbedaea02953969f5aa6cb6976983b50cf36ab241130ef52c75c1965512e09395efb3201d07943ebb85548f5937da69c7400d29ba0df5ca148a1cb665', 384 ) = '19227eb974a9f7079479e27ebd95aed4cdfed11ee12395cb5ac3ed04e384b6bbc174800ed6455c5a354f669b0ee90b62' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'e4776aff9f9176054f80f5edac658c95b0aa114a039fa08ab765ec0e350cd40877f837a9788908e6e9fba57c268a643168da6f5d3c97d3aa3458d318dcca8244ef0a91e9cb5265a723d86c', 384 ) = '37d1224bcc443bfc2d1770098da71b98fdf3256210c1eb4b489d3766de535f7aac9431a6cf37cb87dc5cebb5adf220fa' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'060e912736074954f440871c4b64d92e452ba79bb9dcad7f6510aee43cb867e30161c30c15b74d098e48ea7d888bc832c02192745f5ae6b813fb0882643fd885461b010beac67497da7915c9', 384 ) = '9f54ebcdfcf95e7acb00e6e99a8409c10eaf9cf9967266f8524f9467925b9525af07940227d2d947f9642eaab289bbc7' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'647ccd775229a0b7b1f4c4f81e58dc2963432954edc0a06981d3403d2aa4a2d276e0d2d9e15d5d7592fdab4245d48f96898d1d072b09bc2df24a7ca98c90a965c9c1a01e070ee120eed466515d', 384 ) = '938e9d2cb62164167b2d8ba8300ffcf007e0fdcc80f236ce113c304ae4bc589fcae301bff4e72a7f5179f397fe012915' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'717a756d3b651897c7dd97a926431d3277ca5d29aa2f7a3989a4245cf80d05ab7b6e5b75faa4e68ec15404e9cb221b69402337f53c94f4cbd2cc9f16516f98c2c5e5fa8fc10a7e645c279de77a22', 384 ) = '9ecf76b5e05ac4704389b2ef4f7205ace4d152ced735cdb451801eb709702b264aa02aa5efa9cb7c37b526ecd238a319' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'95530985e73134f6fef027c8c61f4b9308afd67de19ce70173d0d2efda44b8b461685cdcf6c531d5dce0b8f6a06208bf4e77ae63e474b88307bc0d3df5e40065bb152412a8b2615d013b4765f672a3', 384 ) = '5f181e9003766e88b6118b2d9bc8cf9425e34a6881a91fd87c5bba87121e6954b8599d6dbed8f2e7a74f2ea0755909ee' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'a707cfaea184546db789b53ac256c2f23563a767b1a11abed303d916513d546b45cca6b9c836ca64c3930cd7024cbd6b8a232b8b2d73d1175bb9ca053b548c4efa89d20864cadacfb138d16aa1668cac', 384 ) = '4a62f6f793b9f8c5e89498c5d45e52c50a3a004dd1c9213d9d1d0cb40f5fb0610cbe5eb261752764ff3fc35a32fd9aaa' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'9241ecb23c7fc0cd69bdfb825614de606332f0256a5ef0df4fb60d51d8bb5a98bf107c0f067fa56f8b3dc73bdc6f015b4cec5e064745bee6e2031477b62fd2b1ef18a2e6a05057ed5af82380fc3d0ae3cc', 384 ) = '9c3bdd4f0b8edd507740d4bc873e35d0963e4cafd27188cc0d63341d25dbf09912ef03903230b1f5c2d0a1c1b9e4b1c9' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'89f96eb0353730367f030d1e91b09debf27ab965570feb3ebd4e24f5b44eadfbfea2601558db1801984f665cf81986c3b2619139cddef3c83698206b12f3832c53e9b78a8997fa1dfbfbdf7df7fc435f66aa', 384 ) = 'a7ca6ca52bfa61a490b7de070ff6279ea87d816ad8754a6e529946141954aebcd9c1b1ca1d9fd39137f062c6a2eb7ddd' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'cd42b8496d6c5f23b06b440d6a17f03991e02140eeb51d1e1824477ea3c2f03995cd6f19191074e27807999344443ae9d7118725fc57d70febbe403b7b16648b93f68df5e1a2fd86cf327fa7b3f142a04604e7', 384 ) = 'f9910144685987e9500f006d3360d1c270bbe1a90fe658e2a1cf87f4aa32d9e41097cd964964b78589db448fc4de3900' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'105f9d121228137fa8138ca3c84d503d89a1d087874a2db18905fa8f616a438f147bceed3b7ea02aa908c3ba4e5b47fd5bf18770a759ae2552427970a8d63ee448492d7d85b1d61f0c18eb3fc7cf47e0020630c2', 384 ) = '8a98f8c9d86edaf0c6dc59be207cfc8ab18dc0b384d2fd9f4a358f42890a919de839eff5388327dc7b175f89e9168c55' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'd7448b7ffb746ec0bdd88106a725b84b59cccd317c21d446f8bc1687671f1c23c99a0a81796c2f83602bd90d68666ec13388b80d0eff8168209e60d8e740d2b8e6af8cb897c41025a7cf7f6b6238aed86d677ba2b3', 384 ) = 'fcfbdf092f428b59a1c51c55d0c09d68863c0d2b76368d80f106e0d24b25c4caae1f8a18de689ad0bf6327ff118295c1' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'd44bb6b3ebe582bec0c602118f430ac362547eb2ede95d78b681fe9a79f89a03caa00bb1fc94d3af4249604314668f68d4d66e7eb21b4641cde5d9f89ae3e8ee8ad9f826e7f3564bff5959e68503e7d434cf3af6b5d0', 384 ) = '4a6de936a59f5b85d03caece8be0eb1940a20afd38fcff9e83d3ca57d9da95344878528b42d4ce4931e8426a893124cd' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'9082f0080bd1030f74595b75376a5b1f7b1ffd2fa3d9751e1beb110a51976451013aa35eb6c34fc38e6914883d9ef2c3543e9a69c40d1b649d60bde61c1a2dfce5dadb668d73a1a65b9da55750ea80c064fba0a913f3ea', 384 ) = 'a3336329854e6dcac625ab1f10cce649687e431009071c9d4fe91bd9da82badc84aeb107ce4d226adb32adc39b66412b' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'14d5039c17beb28e8200a3d4a4febe87c23891c90d6fe903d00ba471eeb9c1e18c58b9b70b16123539d631f9c8d670c7ff8e7089afdbb194695c5f2dee1c6f4ce772eba0d6268ad24dd5840e5e97a4c052de9f9b9da2a4e0', 384 ) = '3af733d34b8905c0a06d8cb459e092546cc3e5b90b3e635bb090d871609932b2a219b577181edfbffa67ac7738450c84' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'95c025f86b7d76b086a8c592b2e9eca1397b0717bc837c5762a0392335c33d0fc8415a351d26392bc7cd9e324cadedb0cd76eee1e95dcdc9deb3656df1bdbd4211c0d3e6b75b990e10193ec05e47aec29c035c5260963f1706', 384 ) = '1ef611d4aa2ee16894eb7e17905f3d66bff8596811f20ef5906d71f9bd0ee3040269efa8ca4273ca43387241c624144d' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'984beb16e04ba209ff4dc567d53edda1de37eac9b8f805a5df924402bc63de4ade478f59870d3e8d6a28de1cb3a792ab4868141c4e8857a7f01d6b2c5b28a2c70dc5f1a650a5981701be05e59641f6e560cddfcc0ce28b437098', 384 ) = '47898d856fb815e3d208df5670acfec6c436eab9b0b1ec63f298a2b81e8d5d326562fbb284f3f7bc70024b5269e2ec2b' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'964c2903d33e9c10b8a7573f4ebdc7178decba00cd7971067d65f6da1794b019532e34d19c465e42c0b9a1e1eb599ba3d64bec773cae49148e7dccf6e7b78ea342bd7833ebfb560f33ca2df96895cf4d043bac8625b5eb033df9ba', 384 ) = 'b7ed21b6f2e1370febc83bc27479757bee06c4065f143d6dd93553448950361815c7ee09e961a98ed21100934a13bc23' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'00633ae4c920f41f16796c713bfd43ff92323a9b7b865350a088333a7e58cb9b215c372c2e35e6b127f2fcd0eb83f4237c708a8c05cbd8c91c63bf48443a883cb639cbf06123905b2fc8b5f68a7b90ca1fc5d4cde15bb96e514e576f', 384 ) = 'f0a86c75dab5034adf835bf62498226b9d4c5d0bf5237b371654058a024e06630c63c7d8ef8d0879e4767e9821d47599' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'6ad118436ce2e22a2b8b7118c8bc081ca9925ddb6f7a37d528983beac66a031cd1a87196586f43ee2d9fe7a7528290faaeae89d5042cca2526d9c951660d92064e7b1a3a9158d06b40c0762841552fd3fe29d9a55ade9cf2e90bc3af60', 384 ) = 'b4460710cf4d9147e9f73e26d97f039533a98ab4cd66399451318bf09a912ccf5267b39a0c8d4c2eeca1e9370a998dcb' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'330ecd4f7820328eb2d1442c9ff555c1c705cbac5f7223056e3936d32eb8bb7fb5bf0e89d4eb307a402f0e1aefb406e2c5e3a7b470c0b8ca91797ced1c3e35e70154e73a0c655e12091b72792ded8acab1385f68c09103af935a212bdb93', 384 ) = 'd8d0edefc5881544f7e72431b41b1b2fcfc198a47ae1b89d43bf118200b8529c60eab34963855283291386aadb0e67e9' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'32d5e868b0b48239a6d74799ae8046f4d98faa564f9b80233541c108d4bc8c31f7b6b3bc945e796eafbb9aa57c408c8ec4a0059889e4bd29edba758f50103839b9e1e127774fdd9f08f332223971c09e8f4fc7e5e607aa5e585af3fa60e896', 384 ) = '01817497f65899ff7dbd32c4a1c34fb0f6d1c9dc426cdaf6bc42d14c68a6e610aac9fcc47c02076162f1510777a416a5' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'57b51d10a4d2fb17ef0f204aa53cf112e1130c21d411cdf16a84176d2ae451ee5f66ae6875cfb2e6a586f233d5ee1bdab9f235513fe229722a7d812afc4f70751a3d128a2b5ef452c10cd71f3b3bb19bea0af5ff729814857319441f69298069', 384 ) = 'cb84599cf288ffa81aa50e0d1c4dfe30777e1b79d82fa05b45707a2e7dd747cd81b1af269206579cc183119f25997263' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'ca536a7bf66c8b1e451edc371699dc1afb79cfd06ea20f19bf6fa3ad510d12c7062179e4f8b1dcc86a41bac3fe3ce43228968f48e2b0a70fa17c66a988e126dcdc6173ceb9f9650c03482cd19ef4ed86e24acd8549244b226b10d2ec2dae8e3035', 384 ) = '8a740cb9d4a5432fa53d497ee3620b675b770ab29cb9c51a5a55eef75c7421b4e0dc2399f1e6bbe54690a88f8afc356b' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'bc57c2803382d1deb56a146767ac80c89183382e01990bb5aa1d3d2391168ad6eaf768fb7d738d014f92b14d7f0595306eb7441622a49800edee0134492d82320707fceba902af2e0c95fe634a85727bde6f022709a09248752db9a71941c7e75cb1', 384 ) = '33a9b367f842da5f8852a0c4c94594db7283f491ddc8b1cfcaf24681abebb912bd44abb46c18035ef2e4b6e009939228' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'cd23cfb189f7797d05244e2abb0db5d26d3ca0f0b8a5bec5ec2ff1fb1b70028970b894d6c252562169067d2051e272e74d3bc70cadee700912eb30e181f55107b7a3987bbcab7836bb5f86c811782d40a413a34c76f91ba17a233d9da67ed32b49ebc5', 384 ) = '2880eccd4926d1ccb4a364d0d2782af372dd22d2b99d3d66849aa04748687ae8e43898e01690bec09725642042442a1f' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'b85559ebc62b0b6fa87e6a8aef273808037cc5036a7e59b54753d68a21f69a79e62da39530bbf6dfc6d7415f66debf73c2455c66c8d11a44260ab3ed0eed806936e1997b24ec3e79a827755aaa6ff511255e431a74791b52cdab110b0bf37860b05983c6', 384 ) = '452ac0db3a324b2e6e566c7455e08b898ac5d87b401bef9cd5f8fcba22679a63ba70762127d44ad4c54d621dda18ca4e' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'2fa9d04bfab983c02abc09c3a30c22a4c0b086c6ae2f700b12a65d8df219118fd207dcb31d411b6dc7fc01b7312498064df3027d02c30561d220c7ceba22d5a859f96ad355caefa7fbbabe9e25482b5061dfc5a24fabd93a4bad38364c0a3a1d0ca903156a', 384 ) = 'be7f7895d6e7642f417141319ee4d2921ff385ac2821eb66f8fa4309de24d0986dee9040ec25a80f18738a7a48260374' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'beeb5575701b32d3b182bd37bb0692d7b9b2dd43cdae7bf5576f5c29752b2cefc690327e74b578cb71512c5a002b465478d16bdb448d119a2f95e5a0df82696e9e03e24e61d371e702e8800fd1ee5fe04bf32f0e296400779d3836fcd86b3190cfae2d8e3f5d', 384 ) = '4b4dc610f079c44075d6b171efc637ae14777331bfe9cb8fbc2f7c0123b37fb978ed15adab3ddcf821cd5457fb996217' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'e4a7bb1d0a354ced4b9fc7983c37002b06900ef50d920a3bcfcd132d0e0e95193130cbdfe83583a50f9622cbd5d6e7211d5d745824848ab764ed140fb91567f1c32cc81e8b242e3f69084ad7258fc5755cf1c92e25f9c24af55b663ec049f3db6141b7c43c29d6', 384 ) = 'c21e70712390ea83b033043f31e866b2c466d5371568104b00d788e6f1e66aab07a214484531e4d6293e7d38ce09539e' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'2dbf241980678ef9c529d4bdf273c2d44dc5e36bdd5a96331e0c6464f9729102f24bf15fa41ffde16a232605605e6aa48a0a2475523d28d438c80fc1c55fd02cc0fb9170a57dbc1d539454fa05e08a4a83588b4f9ae99d0dc95f6a503d899bf00098a9546dc9f035', 384 ) = '266afecf77e96fb08c2daa5f64c0da97c7791e0ae23bb22e7427226c717bcdcd5aeced0d942d5d10990a4ab37a6c6cbe' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'8bade35ccd57d6f8e2a3960cecf685c3787daf4b0f6efe360791ad219f00fe944c2b302a4d1eabf285077f148af20cb8fad802230ed88d2371c4c9ae52df7cc6b8e5049f154c8e041fca89f7db175b98faf45248696cdd0d245afc384b2bf54677e549054e68e6f855', 384 ) = 'b56d9b3094271468e18c7a59187c5eb1c29d3bf681c72941b13c30505ebddee94c004552cd766f69d734e2d82e644ab0' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'd5d4c78a18de6c9070dba887c956e407ec435936f69e228f084e96e2414fd69ce910a249ef1a715796f3c01d6b42aa1c7a33b984c11dfcfae5635998249825358be6f2e769b0a8c70376d8f489f94cdb49a0e3b5231b9c503d46f013f850653d221c606d6de73a671f2c', 384 ) = '2c8050c6f7b38754ca49ea444852d09a41d785a05844755ad6d7b731016b96a9fac81394af2bf24a4ba174d5b5f5cb13' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'2beec0efa2362159f8b84c089a0320ad88ded8e8f48d3cad0b4f18ec132bee71b6ece8099d6b10e6410cc344fe8b634d6af94d3ae4010bbc7070ca9ac2f50e9b9824a4a64dc1d928ab3ce9b60278baf476d0cab59d5c66634a701ea2a36675307a9edd0fdac2e2e7df4fa5', 384 ) = '833547cc4b44fa04763f5780be550528bc895ea70484fd53115993753236b514794a702b80bf50936b57093c5c0ffc28' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'31dad5b0ae329c30ef6c36cc1d1fadf533638b9faae39df25533f7438a64384282d60f75024efee53b485e17f08fa43dd60ae2ae40d99194fba18de4772361942814c5082c2865cd2e71e4898ae72132b248b97fd022cd9cad2d0522d1dfd446ec3bfe5174ea5850908ccf0c', 384 ) = 'df5bf69680ba0d6cbbb7fb564f13e41725c0de4bd7ec79dd01ffc138d1e9806360004fd836276b8abfa73f740dcacead' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'452faeebb6bf93bff2216f6788f66e2f2585cc300a5eec18bd3ca42eff30db90fffc57bfcdbdd05e11ce4937fde8a07f808e635bbda8e5a3bb6e91e55e877fad96724503d6261036c8f5f3d83fb67e0a6d2393fa568075a9847e22f2fc5ee3c8725921bfb9407acd7d60145234', 384 ) = '4c60377833fc16e4462001dd21a12ac0f0dd4f7f711f22595af6421f5f5f58d51e22a3b480bad1408f00868e9181eb4e' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'6a253181a99b76fd9206fe4e25fc55def54d5a217339a16e6fe1150ddcfce291d4cb9267dc4f75b068b9474ca2220d37677c401992c92d187e8b9cf1c67bb0474f7d0e3b89d4413cf1925e20db53e3746e2be511f0dd6bf0444e1540b03901b5e423ee223892a24a367a8af458f8', 384 ) = 'd1181abb0c8d93a166551accff380396e5ac90144416766108907e9dec4c514219bdc7fb3db6ae68eff12bd4d5765894' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'fc25ba418cf60566488551d34fc1e48246119bb0063739e1917aff244b047d986789a72f9f292bb228980205e57c45addb16438fe525d0faa807e0e8ca2254815f8213e1a4c35d1bf0325c7ee72ffc17f1d6fd76ebde47b51cc07db76a1cd4aecd5926e0058d42aa889c87c5bfa3b1', 384 ) = 'a4d8781fc35d998a62237b4344f8e1c26feecfba971adc0d7e09e887340cbe745778f714638571a813df1da0222e4011' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'0f44a8a890cd290806ec8fd8d502fcbed910c4cfa8e1d25c1886480f020366374548ad610d63442855f39a4eaae04d0b32494ba4eebe37403cb00ef8a0250a2dc3b0c61ebca1a4b98f796cb2f3a135d3595b899329f8c4e94f4cbd62f65fa87293653b0726f01064bd654b2d39ac7cbe', 384 ) = '0040f15059fb0fb7ad066670f88f23fb2c640459ca4682547e1d910187012c5c2dcb0c0113b049b73499cb596b0ecedd' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'7330de53e9fa3b47273102ec8b4c22841ebc8e421a6ae65ca9605362f0c6b3ce4c11f6dcdb77c79c3fa66f459eb5f7cced5b8db56f5f2a2a784f714a7775d9c333070ea3559e956b27e9af659ba381388fc271ba4ff2d3055c41c5cd6c1c57f1b17af04f5e57eddd68648af689fd06f18b', 384 ) = '95f2071081e32a72f1070ca99b9aeec8ee3a2ed9e5fa2d1cf5f16aa2bc98f5e0f9b5a6008cd2ce75e080d1b385df0782' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'95322db3ee47d16157f4508f0d52f3b1c31b1afaf2b12e7d7162d69245ea6e7bba39b547b377c5f73e4649e06b47ea505fdf0a74a43bb579c391d4f215a9a47ad69d679a7bdd5aed4575e68117931a81854359112d7e507a4a632b8786c4092f10e4ad73ef7f768a960b913cb83e6d8c5dd0', 384 ) = '21289bb824ff515e45c237d1c79891377f04c40107e71e1db95a9b83b088eaea76e7a4f3019bed4a759f236b2371b76e' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'845b92a5775471ed2fb6eae84e70bfa0c28184a8e0bb5403b7c6c2419e6912eb1005aa21ba62c382d1ae644ca9c391c484a9c0d9a85c8c04b4cfad7233302865726ec3d88ff9bc62d3c9ba5c41a104466f95f16795caa0b4e47de8f319469220519ec6101fa0c454dc0cd5603e9180ed2c4c00', 384 ) = 'a43a1e67855b8d2864e8c8b9eea2875f5ce21f33eb2ee9048e90a9665471653330df8f8b5209194125d8e12239c2d56a' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'6a34a6d3f5032aaf62f4eedfa3038eda5d0efe173fdc7b2e935dc13a12337f81fd72085769a44b3fdb110554143d35e72eb1d16ae8feb78c3f00e6a63e60ee56165ca56971cb1cff045bd1e9631e26561a4512aff92b17bfaf9574179b389bb1de7be5d3b57f8536065cbb6838ae4a6f48512baf', 384 ) = '0026006d0a5b8f44291f4a8ff8628d8dc428544eabde63c6be478fdbacb6215a4f35bc4e1dc66dacd1020d3012bb01e9' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'ba362b818e274a898553d9eb777e934416e3df2f238ea5c6e2076166cb3076b38270c4dc09117c2135e733925e3336195bc61ebaad6aa41afb7db63ebfdfca963e0f723abd903073f2928c7db9ce658b08b2850c25be782d162e9d9f5ad97d9ad6595c22126c0e89a59a0c35ee18c7a305ed3cacf1', 384 ) = '13229cc315e40b044dc9953a5c460b627113d5241885c37f26801c3aec167a3986ab60cdb4a41668c514d9df51a18405' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'17a761e66e007e550ab117c35550fc0fc34d6bccaa7986e855c4038b544b26421592ec5db90d8a9620e615f346fa83edd325d2d1edbf876751665ad2a2fe30b700f749a1ddcebba40cd71f411b398a8ae33abf865dbda2d7b808f09aa8cb2e8f005edf7a834bfac9f70c9b767c16f92f1c1698b5a37a', 384 ) = '60044682f7c4736dac3652052ab1eb5d48a24fa94e43b2a5ce55db1c9e569012a392ee690d5e17384631aba65e7533a1' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'8ae7073088b58154a7f6257657ea7e0615a7a0d834c60c7ade5cd4c5562c00b27f1a2f6fa2e382b26c0cb54e36188f048afe7d9be2da7a32b2e331d6a99d66503450924045b8cd7052fef162a0e7fd2bc14cb7845cca961f2cbade374b630d6bb16f76ccf79c2c3561b421db1cbf8f24c47797bd2afc29', 384 ) = 'bda24dcb1a3f7f52addd1baa0677918927656d7b458c11034f2166b2f8d72db2d1101e589541087ed9c72191260f8318' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'7b0f2d2f4522e57a4d9237d8778644360fead8815db49c0b796c8d3161ebac3b4963f783329f99dabe8c5e2743f969511e9b295f4a5489de31b46783c1c14812c3f34a7e68835a5225e6a64fc1945557ad0d768a931e37ae316058d46803df3890c90c6a0f558fab2aa6f99a1bdf71106349a848619a0f43', 384 ) = '5341d46e6d469718f54e0ad44e5e8cbfb091d9a156eaa1d7695764e6fd70770933f86090701b0404c0a2c9944a49c7f5' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'b98c44b9f1339dfd730270012ebcc5bc0c317aa777b4e5cb1cceb91eee342e0f6ef75c602afbe83484aae369b5e9ef27124ba4b98d85329c7e2347d6a479338966db4ac85f1189a91a057d9c1abf61fb1e9387e2a399f940a95e5f2ebad9238029a1d49a985dc886bc7b06436525625fb870eac8bfd781df25', 384 ) = '9bec1d2fd1e4ef91dc70589e4c50c06673b134720f1e0faa14a94c65fc6c3ff6c1934768b832da6d6342800b46c3a558' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'48e12a838c285b198e16f759d75ef1361c35b9316eb710d8b1861c8d4fb4b7892ee30d21dfaa6647183b40536443a1041912abc18afc71257fff09bbe2a6e306bb2c58c55fe58674e3da5c16d7b3f13231db1a1c88de3b7583165df590868168d90634f774a164a9d93b722a9a7688ca4ed72dc8ce2517d1a512', 384 ) = 'b6efc213b9396389f4ce18e2cfd22733dca2be8c611ee5b94a9a7be1e8f9c78d7736b49520d8ba9ee09ce16ab76fbba0' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'a34dbe4c6f53b1a60cba0260124ba5b3a72395bb4664bccdbf2a130a7fc10a3412152ac1e669f92e524c1e96d6c9c583a5df45046031000025fd8bc9c85210f4607ef06906c6acb6d95b05a94689621d863073146778140650c174797fd976d29672576b56d392e5aacd00c0e7f1442852006612e3a3be88485c14', 384 ) = '723f8ef0f28a234f8dda9f687ab51b2874b91a69ac7a20b107064e7b7c87c849f3ea39471e11ba43499d458e9044d4c4' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'd800e0a7cdd96a08ecf6e65dd4ca095605237cc6970932a62ce9fa5d23f3503f0ec079536638cf597eb3590bb65e9ea4f1e1bb9f493eb4c101fc0859ba8688c7eace683b8b3597bf10af4c789d22e2287710e5f8ba766d754af4aad80b2dc18a5571d6e7a29a6a438a33e82af2e07aec80f92159527905caef170a61', 384 ) = '0e1c22ae4d049d23cd7b332359a246e199d4d9b417aae5695874d5cd9ed61d76d2cde81cdb2beac9c4f1d53e00fa0c7d' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'cc8470e78492e4ed8598fd5f35ae83b4c49a37781bf066930f7ebdcedbe65f93cd8d35f43fb485f0c9e5c7f1b591b498b3f79fbdce4708b29f086fc8c1b7661585b1ea74e653f3ccbf5f4a963ba19b998dd3cbf8e2bf8b6f94a32edaa1d9b7f75bb7376c61b5560ccdcd2f56af28613ebbf662313e9e17535717a20b63', 384 ) = '3ff1a9007cb18a7e8be1e151ed4ec424bc1c813ab05a092d655d48e69a3cdcf395d204bf3979b0499b1cb18bf80bf8ce' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'30b06afaba1d3f66f8213d8f52cf3bc3727f3ebeb0739271ceba1a02e655e413a0990047a8d4930260332771d2e345cbe87746d6df8a66acf9a51abf7263a41bb6d2e4ebd11d713f2768e80c65fc8474b7a4ef483c5658ccb716c6ba8718ac89d925bdee1c3f01a4b5882969f460204947cee21eae2191586fd7c6fa0bbd', 384 ) = 'e399f9c298dffebc1ef90faca476ad2c478879705b9d988f66f320c7c8459fc6f42ac53197fddf3b1654157e3874e8ed' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'9551164bd1bcb607023b4572bd5c2e19e7bf9b4a28c08dd69d562c15cd3b5c2bdf4e908a0a35e3b84c4665535fa8b252e9b5ca8df3a31c809c64e44b0ecab7feb2ef5c14a0d4de3d5a48df61b90c2fe127349e200fd00e4292cccc337c1520eb76fd22f17de1d01e92095ea4b3cfcd4f0b04bf0a668f8aa4e7578bd4fd64bd', 384 ) = '4c41ea97b719f84239b3a19f96cd19e39daed16913d1d8767eaba572e29b0cc24bb864a4725d1f55440a5df7c35ee686' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'e06e21e2449ad75182808668167ca41150711fd4a8c64ffb51ae29f411adb5f84f58c2ea6e5cd88259c16eaa5f705d2842f3957e8a7d0e0e1f2a028217875a6bcd556628338ad00a6999d3b68ef3a8cad6ce41c3dc253a1e3a000dbd58f5858d81ef75663c2ea932d98f1d524a0e6d3d34898d6a46c7ba71cab8b06d79fe1ea4', 384 ) = 'fa707a7639a6ec82ff72db0490409ef3e8cef1cece79f11600cecd1f7ac71c13b09975f1e2a768840dab12863bc69b1c' as NIST_SHA384_test_vector;
-NIST_SHA384_test_vector
-1
-SELECT SHA2( x'8f', 512 ) = 'e4cd2d19931b5aad9c920f45f56f6ce34e3d38c6d319a6e11d0588ab8b838576d6ce6d68eea7c830de66e2bd96458bfa7aafbcbec981d4ed040498c3dd95f22a' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'e724', 512 ) = '7dbb520221a70287b23dbcf62bfc1b73136d858e86266732a7fffa875ecaa2c1b8f673b5c065d360c563a7b9539349f5f59bef8c0c593f9587e3cd50bb26a231' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'de4c90', 512 ) = '33ce98281045a5c4c9df0363d8196f1d7dfcd5ee46ac89776fd8a4344c12f123a66788af5bd41ceff1941aa5637654b4064c88c14e00465ab79a2fc6c97e1014' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'a801e94b', 512 ) = 'dadb1b5a27f9fece8d86adb2a51879beb1787ff28f4e8ce162cad7fee0f942efcabbf738bc6f797fc7cc79a3a75048cd4c82ca0757a324695bfb19a557e56e2f' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'94390d3502', 512 ) = 'b6175c4c4cccf69e0ce5f0312010886ea6b34d43673f942ae42483f9cbb7da817de4e11b5d58e25a3d9bd721a22cdffe1c40411cc45df1911fa5506129b69297' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'49297dd63e5f', 512 ) = '1fcc1e6f6870859d11649f5e5336a9cd16329c029baf04d5a6edf257889a2e9522b497dd656bb402da461307c4ee382e2e89380c8e6e6e7697f1e439f650fa94' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'c197f08557e421', 512 ) = 'ce69dec20db2e702f51c6232ab79f0890d6f82aaed54d8d0b15d8b02095957b4442a23b8d164be7b1f3669c7981b58ff6cd853149a625771bd666b19d8f0c35d' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'a90596a7112d3b9f', 512 ) = '7c42d9b5f5a215db32cfbff9e0e57716e2e4b1a7f87a7bc8121229c6d1fe5989df3dbf20fc71281dcbeb55743bfeab9346e7feeeb07e3cabfb2aaf6cfbc02bfa' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'3ae1953415660623c0', 512 ) = 'ac2501818c6d49f5f20534fbaf751f4d6f7288252298ea5a7011f2736200cd9721ff64ad6e672b08bcb2f463a251e9533c3f77465f4db3dd69be1d8b2c52937a' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'2bfc3a1b9cdf3485939b', 512 ) = '59dff49557ca098bdbb60cf9934f038890df27431b81369d0fdf92d22ccbbd3a90bc5d060ab2e974af784872e4567d4e2c42bb6375fd9a4ed3a434fc9f23a918' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'50f3b7d106cd77e9eec0d6', 512 ) = '814a68eca10f8861b7ac73d9d10a83d1d2f546dfe4c989b49fe9f17cc27d2897245b02f4bbbed4fda8d230534f0caaf2556126d69095e9bc8a4bf5eda4c351f8' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'3f08c108cce3eaa5f3bfa6bb', 512 ) = '8b7acaf0d36f877ece73f9318b20828fd79d2a3f28c71069b61ba88d455e4928e9744029bc7f12b417700fd195ee49ef337877bca76251123dd72365f10e36ae' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'1e1c81a3f9b48383e68487560f', 512 ) = 'e46861bf4c6b85af4366d6917b19f51efe66eaff16c7865a28d267125f8849244fa04b0b07f07274de2ca150a0549edb3628b87d4a5f73791de0930a702f604d' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'b48ada2484dcd78e6617c724b537', 512 ) = 'a1886c390fdd1503a6659f615403d0df814a50bc27854836ea40c90a04680a092733ea4deb7edf2d8cb6a35cef40f20d7b0f9fb0e42305087cbd813aabf599a6' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'bbd0a4de4250249c873f5b289159a7', 512 ) = '90953e45ef6c1fe975805ee62ab6431834c0934a81205d7e089068c157c9e2ddced188d869659457788f472f777273c76cb97a00807c83a769e651e11fb59f0d' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'cae35cda11064e34b54647556c105523', 512 ) = '72ee08a00931be0bf39f68575c256a1c5661a1b0ed3599c684be4d1f4412094178294773dd23a6adb8f6daebed0683f5750a59602a7244a667d5d8f74cca5b18' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'625656f0bf2e3f1dc2c9c4d310c650e016', 512 ) = '47eb9110c93ff62130fa987478cc72b403e019aee6a1c20d20a7d5122bc1ad9d97dbdc40346aa9c624054f76ac7fcefb72975ed946a4c1af04f82f5c137439d2' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'c7b15d4f0ace943eba8c3af2f51913285149', 512 ) = 'b0ce8a67c15c98176b787459fe2f1bb5fb01d505930805c0cd9f363f24f5b8dc4a16bd4c9c8ba354f726ca60cccc28bc540819ae1bbe50f6b6acfeeb86f03e88' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'62149e4dcc5b79f473d115629f2da21d8c4ad9', 512 ) = '15c77f321a179485aea271dfd0c1be284ecac543fc96a478a0ba93fb640ee708a6367c7123d35cd39be323c9beacb42c63046d7ca8f9bc749f800dde0e4d0dcf' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'5b9d847b7ef0965dd053a4d2da3b1e1637e71095', 512 ) = '9681299a52f5949e08b35563d6d35e9f72169f84ba76b9c01be6fbc81dee6000134e691a9b9bd7bc8940de1fc7e173261683b5c8ef7b0fc5bc014714971b0146' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'1b1045583ca3e8a0116521b9bcbd4dd7b613c34b1d', 512 ) = '888e6d7fea0c37b40ec32852879131cb0068c580e4280e80b74d204f9c90ea3e943fd27cf2b7ba3111340f8be68b5af89a4b5086de075de25697b9272e0c7278' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'938d2d59a18fdf52c343b632301344d6a5d9c70a07f4', 512 ) = '42d70b8a3bedcc1b23f7466f34aac87241c807a87283686cc15cdffed68a257dce74bfa708cc684f1c93142cbeab751070e9852d368a378495e6ad9f8d27e873' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'77d59ae1bbd09376bcc9f5ac46ee834bc979e07ca5e2f4', 512 ) = '9c229867a7f26055471f0174fa141f8a5e6ea6a11fc9efdc6cebac2f243467804cdc2e617be5a99e32e10a00550995f728c72c4fb25cb2b17164058ab4f7f3f6' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'370995549d249c7eab97a577c09920c3df6c545fa885f4ff', 512 ) = 'bb607aa94d04f3a81b6b48fdae601e15ba8d43805f5a0b096b843ae6a2b25ba58b8b4f78257b8110cac1e61d27c01a2c6e3738cad3a01150cbbc332b8ad42dd6' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'8a639dcf06aad53bc991d177c3d7a1661c96431876790f9d72', 512 ) = '5613c1ef219d4de9a3dd4081bb121671060616b3ec8b5cda50361c3d03a362e2c8559bd8cf421834109684adcac9bcfaf6d47e02ed3a39cd7bc2f52d0c81b329' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'9f311495c97643482637b51790bd1e3086571f05c4a173ae1605', 512 ) = 'ddc9b2687ab1d99038032deec57fed9f19e69fc2c550d9074099490d1e72751fd95cba099f5dc9c303a3b3e22b949ba8a04d26de046e14339333cc31e78f4f7e' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'69b522dae987f8b48864744dd571b39efa0051229011dc80b81989', 512 ) = 'd2f7740090d249237cd1acdbefc584b79aaccfc0e90e19a9f822f9e041e519928e5755a8ce91b4ca67c1355134e22a33fd5cad20d35f3fc58415fc12c6602acd' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'c9260d92c68ff1c5cae8f7c3e98869b66f13aa8b6cf1d5ff70ffa1fd', 512 ) = 'dcc1967130f155cfe1422048b8a7b559ce90b5182528310f9fdf93dee9b72029bda0b5a9c474c48c38ccd63915fa60197a87043fd9c399117dbc4c47a4ae5389' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'baf280aa618c46d1b4713d42a324e34fc13a8fc33e7703261534443c86', 512 ) = '40f3057c2e02fcff3915744d2a87a7cbed4d1ace0a62658694a5c0ada892dcf25202a5821f37f4842c4d631fb0b5795f3d252e6ab914556801ec99c4002c0510' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'9f91b4d09ebfef181f76596bb060085b3323185cd786460f47d6bac72188', 512 ) = 'eda1dda078e4245c51e837c2a8360b1440acfe2d58f7f32ea9a63dc2105e80ec5e162a23d8041cac382de7464c166e7162c620bbcc11d14d8e9b3cc88692b5f3' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'376549419a41ecf6e1776679cc9b87a4ddf70a9daf8880fd894a8a3233b64b', 512 ) = 'a971341f79a1081653952b717c7e18e2e2289a4551cec34eb15944f28abfffc7b23e6121ea52efdd4f5c615414d2a59df02392c4740d8f678a773f1e6cce2fe2' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'5f264a9fce6c0416c3c399c6a2912a5f33125616a24a5b3cca3e7e16b263aee9', 512 ) = 'dadd0e04ad21dee2937facaf3671e0e026b0d947b377bab623ad45e94872ee8767c2983a10f53f92072eabf9fe3b41b12211e442763274a24f553c658bdabeaa' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'6989bf1032bcbf82c96f7a140042dc9ba9cafb5d439be5c6daa69b5d28c65df600', 512 ) = '0044e76560daeedebf0b72b9be8a1437f5a9937e1f6ec8efa0bae0a490808e9d0d4babd3683b4414baf0e033c36b7748635ef9e745cd1dbab547af8e287d9644' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'4edbb49bbf3acb02ce83c5cc7f83d2c386e873ada14976712b67277cefb3c5633a10', 512 ) = 'fbe69d13bbb3b9aeb8fb67cea126302adf2984ed02168a13519dca66e56eb0b189587b3b6ca9f14efd8e0a434db7b0caf337d62b4cc0752ccb942f3ca29b4596' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'f0b1231cf60536f768e62f79dae86374660bde91a2e2fa94cff531e2536530406ace2c', 512 ) = '9bf2258b1ce68fa5982c296fec10c8343fdf5f995e82ea985b93f5437ab48e6615c7b7e9847c3c545ab909d5e54a6c3ea0166bb0bdfe838278dfd9834f5d25b0' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'785db29d4a665e802b68a406cd21dc776ea84e4daaf5a1df93a4973c03f6f75a3119ca70', 512 ) = '6e659b4a07e3aaaea4b49c211a2720f5db8fc81d9749c0a8c0ffce189de896cd3dcc1a1b6381e3d82230715840d4c6ada741d64bf76234ce98b28b2afc96ad74' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'8efcd15f3ff1156dcd64ad17bb1566c466429842f2cbb40a84941dc6b12b391037abc77deb', 512 ) = 'bfd174600f799e4a9aea0739fe5b4deb43baa809ee46ac27f59ab5e44d10f9a69c81eed24cfb1b4c6e6fd1c51925fa0b380e5d0cc9f36262d6e0c0cc1abd6331' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'807eb33d10722e025b01739f82d7494d242cdf137f510df5d888db691d19470acaa2439009af', 512 ) = 'c2c8abde43c0c73fa9392e7b262d453a3c0ee4aca293dc866defe6e07c0d717319eb3fe6a33775ca5949b20617df03152339af03bf89634d9865f7f1eff633d1' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'282cd5ebe30187854c5fdd6b1ab4e49143addc3dc0f12561900e6328ffb3dacf28211ab6b9dce1', 512 ) = 'de42e2933c0fd240d4025dfea77fa4763b55620230668acbfd2e6a6426c2d6446de71976009e77f7b3e17bac91259902f7dfe4f8142f7e65008b6ee2207268d9' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'4fb6eb7cec250c1763280b41b215f89791137212a67c758afc867478b223a800f025a72f1fa63881', 512 ) = '99ece2524110af64cf89eaed97b520343a97c859e3873860c2077b06e33337f0886af348bbdba1b41c0366d8a09db1ce2fb726d5d282525fcd1cc45aaf0e75dd' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'dbc0d771769987ed9c9a72a44a5728f929653d3d12c9efc7d1b109472962085719727b535e37b06b39', 512 ) = '1aac04e1cc461ca665bf12a578f8f32a6ebb7725686b5a6f461a5a035dad6d7565831caad2364f063ad73edcb210bb2fd04c2539c6eda849ec79baa934d7af94' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'b8c17a3fd266ed0374f61c19840f3db5f819271c9029acabc5252a1bfd2a5d03002a779eafda73cff4cb', 512 ) = '4800cbfbe54fbcd8c012180ccd82bbcc783b3413cdec87bd236786ebcb40eb3ad23f509eec53b23c2655959a0a2c53e81b5f3177e6c57883c0e09b48a09050b7' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'7ac3e7ae32d0677b28165d829a6b966b5fe032eb25f40299fe0735fd1b1134ead693ca0ef6ce88c82f3468', 512 ) = 'ebc398731a33113646c7c4dfc01fb0aa35214a2de32cbfa99f300b2feb1dbdce203fcea6625b7c2a7205ff1b08096b29b58581a2ea7326163a4f52cdbccd2b44' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'4c2645d588b606782a6f45c3725d69d31a251115e6494cad7ca80c197644d811b648c2b2f94a99dcafcd5fd9', 512 ) = '80d1d9053acc378f88f37cb828d3140a16f10810b3a515af301dcc1c7f030d752599a5f437bcde5ecf288afac9e1fb6c9a5e365c82afdf900a0eed6517d4be38' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'85ae73d64a09ac922396f80bd94d868a2359e3361bbe0fdbef3fd6e9d97f5dc05166fc2a81c64b29f93f80f4a4', 512 ) = '6a2ff2ef58640bc69dfbff046c6d8fb4a59a85dec77bf06346def8026dfa954e07992ffc364ccfe179e2949826b65db58dc53a05f61c5d6a279193203de9a2f9' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'b63a627c6923e0998c8c789f56dac741fe7c567cdb7bd4ccca52a39fd001970a005dfabb9faad32f876b6725c979', 512 ) = 'fe69011bfeb12b7987a1251b225575448d22fb46ca08e909574b96a1611433e0109619cb4c1489e101283d7d2c2dc163cac3ce2416cb06dc27820818f482b3aa' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'0261fbf7d72dfa185d1fd999c17e588ae37d6a646505e7ef03b581622228f9ccab7693b419fdc7fcd161390cb2d1eb', 512 ) = '29f146b6ca892586f198f2ba3f58c67d17199e34c19ac32e284047181d57e6bf4c176eb6ee084171ff2a96bd4bc312014351326ea3387e78e78687ee3127426a' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'7486acd86f8813a2583ce981d1cc8602864594b611ea132b1bce9f1cc4a2f6e545cbb539d4b86217c972affafe74fd51', 512 ) = '65cf4354a97b963597884f00701b8d4399e9b80612c3410bb223ef4523dd9ee19ab348e8a849128377a6c75622ef06e844b2b758c4aefa5d28c46d6e4dc7cba9' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'c33fe419b91191e51dc9fb32d40b43701e63d81d11e3918a460df9e1d2f3ea67779c5dff1caa80f07b3a09e71a0cca407c', 512 ) = 'ed5c3016c805319872023a70d900cc8a301738149ea83dc130a6ca19fc5348b2f4d7fc3b456d0cda749a72da116e6491dda0855ea7aa9b5bab9b7ce5efa423e0' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'bd50e2fe1f8f39f96e2044def04afd4c16c01bb1ed7694bab5b2610ece66813bdcbd40f023f4b96e336b9a39cafc2713f68b', 512 ) = '729c1246e155e8b36e92a6fafcdff556df95e7c131c65df68e710b5f04f6552914ee5aa2faa33e8c5827e1781c5af5320f158cebe481d7d0ac54be07c865ba39' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'5178db5a599b0664da75988433807d0a44a73d6e754220e3f948952e54c0d4b91a79c3e3fafb169bfcbdbb2d0799755ba67cc7', 512 ) = 'b3723d26e481feba3e3dbae2e36d9b29dd8636d34570d7ea3d6bbf8ce7a254ba2677107fad2decee62d8f27728d9cc433cee34e42b2c4f473153f697145684f5' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'e42a2a5e142f98e06ec42f5c78684269c4719c3317a4c5b8c90381386fe69ae6b84ddfe495756d6e9da92d56af5b9eb0d973d5ce', 512 ) = '5f51ff37bb70ceab5c1f5feb33f4f6ddcb7545d22249cff63bbe1a57be8e0ddd7d86131306b599fd8bd5a044daf9bcbb2a8c80eef2079bbd377e0b4acdd408d6' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'550495b8bf8bf10bca9a70cf0599a6cd61c1bd22da2e2def5935c753d9f7f896c9364ca7b26831c91a0afe89a83733f38979020511', 512 ) = '4cf0a13f66ac155088a8da8a344b1c4c62ef13ef0237966134345abb11dd0c456f25710ab13148510a6fd615e1863970e8277f45733b95fdf627a4321a48c595' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'b6cc4def48738118c35fe4bab82fa61ae8efb930fcf428aa7606aa34e8c577f763455a5f33fc0722c9deb07ef9c6d3c26618560f3aa4', 512 ) = 'e04a1c30b76920518af66f5db87d7642fc1ef2b903e45a8215bf1a5b6de6772427d9b576329c28b3262ff0c1802dc0e6c7b2ac21a0df26a867abf509619c8403' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'143c7d79790a56697dc803ec93e6c68f27f6761ce9b374bf6843e167e2b90e6f5ade347eec3166ac5e2cc3e6f7c9f0939445c677f82447', 512 ) = 'c9e076e1ea43672b08036e87afb175e32013da88408c92e5895165fe31a1c02d09c6246fe17e9e1696614e28b53ac0a6c50ade5f10949730b98d110c92cbd9b6' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'bb9e6086c137d0c68e6ba728f8c516a65b3ffe303d58b1593266fd51fe2e6713fab2b4dfb94aaeebeaf6245680f3335d118cc4d17c3356c8', 512 ) = '1c0294a68024d098e7fdc14490a34dd579f47a6abd96acddca73a450dc608a840cf308a873376b6917e17c237df0ab76a736105734623e72024b41504e0ebeb9' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'8dbe0cf088e68bd30156ebdcad3cb932a69bf8a11c36719948b04a7aa2f1da0e54ccbc57eede228c5bb96c5e1442fa7f93573e650bb5154c56', 512 ) = '77d81a877dab2228601a42bce6839f31b21e2b7964c308555a5462516b635e0f4d4d56b39778987c24b35f666b1667aafa4ecb3784d2ad130fd9882ecf1461b5' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'2de3f31fb5182e1cef0f982d0e001be75dda7753d3877f4fe8718530a84513ac06f7dcf87206f12dae0138f0dd4a1b52dd1a7df5d6c5f271133f', 512 ) = '588da105790cd974ecb2988ac398a72ceda9c5bcde026877b67b21443acb4434b78923a57341cb3da465b44a21717c42603bd904e2213b562c732342e26e61aa' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'c7680a02334453cf17fa4cd27cbf668e6cc12447aa0d710aa0b037ed991c2d9830cef104082e5683beb7ff011c572d899019d50bdc01f65c0e3729', 512 ) = '94829820a81040b549e89e7df9ac1d99851d57805a95cfd4044d09432f9f3abc803580a2397f38231ad391a1634c2f879e790f6e85045dd972dc080e3e7bc1b3' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'ab1d93fdd1d247ad983728157e634612c12d6d5223e204aeea3935ba2c884f9a49376817b97546f2082b80771e2ee056c4b90caf641a656c10ab30d3', 512 ) = 'e7e13c2abb76234415acaffa97ff804f22f20c9ef692044a00d4d49bf656963ab0770d19640081dbc9389d1382bad4fbc3dcd47fb1da671d0d046c34aed476bd' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'd3ad500384e30bf680afa762bbc558be9f7281ec53d51d113d4b5da5c62b92c65db44ed2be43c63474c97b7e9c7d1ab9edcea0f8f59cc134a5a78b5310', 512 ) = '54a49b06b483faa6d34a8e1ea7ff5bbc44af9bfceba30f62993093e0bef1134ddef01355b04b5b7678f8446b6cc9eb017d79723de360ff9c6a0adb3679cd03d1' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'9c542e4dd9a660850dc22a081c07453f233148f117726e00a9c59a536d7f98133c26a61ad78733a8cc03e6589e2ae253208b49c422c9fe8c4ff2b036560d', 512 ) = '8377f49071ee63696d231d960fc8f37f4a7751ece2121c4f59e00bec6a38f19148269e385a0d66b10246d3837a7eafd259dfa827fa0f961ff4baa9008bf81fcf' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'7bdee3f83c1af1cb0ffe6f1235d44f88d2436f234f211b8efd88d4dafb2c4f7159ebc14b7da65a64c6500f6d70449dc1b8dccb9c403fef87b47ab317aed319', 512 ) = 'b908c46311cf787a042a54756dc751d995ea57a76624940f70a18ae369ae82c9ce61ff819dbe95f2dab0886718055cb3a39e39a969277205290fa090d3d7fa6d' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'095c7f30824fc92858cc9347c085d578885ff3614dd38ee7ee94a0f44072c877047ee2ad166fdba0e744c3ed2c2b24c9d8a2934648dc84d3be666302110ae08f', 512 ) = 'd5cdaf83bb4a27eaad8d8f18e4bee9c25be949a761a0fd0fb2284cab143cad60beb5688734b2f81e9e2d640b425fd32ccb3d20d02d63c2c94c03ab3d9e7d9b4a' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'baf66cf83ab8a22878d02194b7c56599717cd3db4a594a8942a7fce32e3a7cf9695217b5c7c3681bca5327d0196442d92dd32fa64e1f804fbeceb81d340c5d4c8b', 512 ) = 'f63022f528910ee310028dfb0782db51b79f4b8063543f15eb008618c50f9b8721603f7381baf083b34beb01cbb8d985db3b8e1eb53854ce3bb62ce7434373b3' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'aaa20338001d524041919bbb13926d0729a099c27c599598d8ec22599bd12d4fbab8f3ce04bf690cabe7db3300c9d3b57e853ce00afcc7b2793f8eee5346f86fd6e6', 512 ) = 'af4a2fc9681166fe70d4f0fb8d219d56a1f4ce532a7db8f94c4432ac41e370295977dbb0c4e356a8d2b1d791d513029f96d144cd92f45bd4230cda84bfd04a69' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'8cf929dee0a854f7071f7062c911338e298655e0462f97a983f60455e6da77e5befa5d9f89efbc03145f7502e4cfc66bd5b912a601dfe5a4e3de3316bd06e0dd366985', 512 ) = 'f499e9f1b19c614857b63bb44c095cb19b7cf48c5d6e0a6eb15cbe0eeb61e0bdf7bf0f049cd3d146748196718698248360a174f878113305c6633f10ddff0b8f' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'47b8bae735771d17d740f537bfeeff1d4012d80379e81d238e89d1843961ff1382e4a0f5ca7dbe1c0ec7da186a008c30dcbb69b24bd42987c8a90a0a13876f1b6163cd6e', 512 ) = '6869157dbbb2117c0cadbd3402203fd7ccf22acb6a85b9efda4f3d3f54903a65b39260bcf8fae978f1559492113081171b7425bbd15b40a2a1c7d2557fe7cf44' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'eac31a21d4943d32747d63604d09b9b29a97f0a632b04024af98adb1cf2389e51bca3a1fc6fe3d77d7bd6bf48b627b00f4c1c918e77355c8156f0fd778da52bff121ae5f2f', 512 ) = '149e8b8ff19a532d22a72d9d0390d51a365f0c2fc288acffe99efa5cd21c37f9d39cd307faca020df2aab996fc6b46815133c52a87a3b1ae350833e3e6adb1ba' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'28cf2204c192776c904b1288b5b398f99c9189cd6988c4f69a334efbe7744fee6d085d9e0c5ffd0d0eab672509388aa606fb5063e26d23aef59ab011f274eb3f0e6e53496546', 512 ) = 'a6f42a3755bd9940d2f464b2efd42e26e7ad63b2ce26d39dccfe73aa7017e0d5babdc6ca8b8b0fdb27f014537863db09b92f100ea503490e4d1c7a4618372777' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'6efc3166fc8a21022171a50e793248b418dfe339c180728058b420d09a9ca4d60cf4d0ee3183679e00b63063958848b127a4bc353ace575d167fb91a77cfa9e58698ad0008d9d7', 512 ) = 'ce34cabc906f67243ccd62ea6363f7ecbb7da3c8640799ddcb5783946d54d68f98e743b4028c5800a7716d524b171920b3b3fa95b19991032622ff9ee90771d5' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'f278f968b3b8eac25ed38b4ac7d605930510bc8531c62eb06a281de11c84f0f382ba57e86af02e393986a4692e4c9ce0ebf353f731c24350eb8a48686edc026fff797a57950a082b', 512 ) = '08cfdf043c67b265027c343e05e188a78646414f7f2adbba5fe0a9409b8ce173edc93db26e0e79c191c909ee21c7307ea7c582be30d5377512088c791ea20bd6' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'816958892728429100099fbfe5512a367cd7ee2154c6fe99319f67c9a47d6350df9dcfe6c81ddf434c04113df6835f30c07bb9a2293eb227879a7a839f140c0f7371a85e5b7b841f57', 512 ) = '901313c1af212cdcb56cfdd1e2642c0387d6152368a8150cfb3ec6758b45eebced1a50dfbb473c9809accfb575e1eb653a8138080ae08fe85c7010ba8626853f' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'a2a1de6f0ea927b132bf987abdaa725b0e1e274e46830e99a2f75af608964df0dff9a99024fc6839bac5acd10202f921ac71a27fcda681aa3109ebf5f21ee3a849098ea3a551e844fae4', 512 ) = '6985aae9d3e97d29b4ba174b4aed7abc5beacc4946a00e6b0921f7978b8cd62fdf897a9ecf94ea2e053bb732f2d6b1a44c1eff9c0ce43bd5ad2aff41121aa12c' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'e17c9c1af29e6c3c10f97fdde3a35cf4d37157176fc711ef10ae42eab927b62f42c096d7b664e95af9775a47ae233c3957eccb06be8bb53995f9d9c359ca4eed7cbca791c290758aec180e', 512 ) = '07d0426622c4f5c5dadfd3978fe9edd52b90bd8a9cea32eec6dfbb5cbbaa2549bc7ff15b8568ec716bf315e28b108f35274e4d4cba1f97e7dd7d54d63f8128f4' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'45527df1eb7033e31c0733d7a384c642359a6118018ad43488a2c5faaf035d3b12a841589ca4c4ab55ab5b227ad4512dd39dbbdb4130af4097e5b119aa076eb3acdbad08b5de822ba34fc4e7', 512 ) = 'ac0fc8acd30a0c7d4e1a3f965d157af94c4c9d0fa172ad1d4e6b200cec02cf345f0318cc11aa2c9de2867f7c6768aa75548c30c6ae711a6e68ddd0b27be808e5' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'eb41a4fa67ff100792cdf1b7c3b8f88dc276ce1a2c3f9d7219dfd1defb0820d0caecc71c5e0b17641c4a31d4d4460e10eae7c26bb438015a2476e228a767e3eb4cec2db629da1a10fb06f5a50c', 512 ) = '382ce23a5bcd95acfb9dc3c9e6962a8ceac1512a0df09ce741fe4c2890e268c637826ee229869663dd8dc9cc83ca5802aba02a769a667dc0d180a24af90dec7c' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'dde16e701bf40e42cbb1ad213a84167da405963befd455b699c7e504f0481c7a81f81f72d299c04b542a0ab293531920b00430a4115a05e357c25f5d9060e3f2aeb22ba43970199e40b76b769567', 512 ) = 'd202fc7a97202fea9fdffda2f7cb874e2054c7d6747f904d198cf8d1831eadda653fe79198fe264ef88e480ec731af47165b080ea6078cb7c5bc71dc3fd4c65f' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'a530841c4cc46eafe5435317a3651d69db7aeb1ab75062092f5743c0350343f73072175aac4fce8d50f6636c10d99397a422ec2e389a27d965c9b70c605fa28971d29026a74921d0cbb984d0924d46', 512 ) = 'f7cedc950dd26e26b087940306a92f43f77ae039c34144aff8c5c2cb01214f18108f913e81d621e45a53e035a7f578fbe2d7831bf39c71ed9e7694d95d69efa5' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'd7289cfbdbb66582d93c8d1f03f9e3b4c57955c69a18622623c2d2d07afca413c42848f205040ecb3975df36a0832b3059a42279323d273abf6681eba9ee5474499ed09275c2a97d9ae6c7c80bde3e88', 512 ) = 'c527bb959f9b7314e10b83a89e22d52e9a47437050b67bf47be7805eb151e5bb08e3ecf4b78d3fbd40c115dab9ddd27fe033cae82e259a880872f74413d2945a' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'b6aa7703b126ffbcdaee16664e82ce20be9a90fa0968575a101d1b9fc6ae910586d811c8aa62d78d59a26ffda0426bb3c4445758d744ef0c8afd8f08420fea826e00ffd1178049d2b8f1368a5126db0db7', 512 ) = '0b54fd35a70ff3abc587670afba9c671c57a50bc6a2cdc2deae2a0c98495adfa4559519184f9812c844eb3dd4621facac85de88fdb2eba9fd38cbbea697923a8' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'1263458e97c49296f48ed339144f682a6fefb11b824c20807c2192953b2cdfa27690af7d3c7890519dfd469fa74a628294fd173741d148dce27ae578f5d1783c7431fb094f21ed321933a582012ce5810564', 512 ) = '4961166aacf83cba8b42614ac5e699788a995462be37019bc6d8281dc84ff07a19840d9e2e3f1fcbd995903b537de325087d81a85bee94430d96de56c2d6a275' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'caa784bf0dd2605026635e8b19db46249da32fe523fda345133afe3b592e175420e12204dd87d53990b2ca3647c7259fe3ae76d01ecee173cd397c526323f869b79984400770ee783c7b0ba36f015a59ad6de4', 512 ) = 'f6335ee270b1a6795528df400d0daec52eddfd0571a2c2c3722047fc1e08498263d43e2900150fc2d098ef1b72c6a28054a620d5f2bfde80714f0f07093cc14e' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'e1b77436f6d15a209fdc68a636d96cf38c6850d388dfe369119ddd242e9c1def6c4634a8818a27d42e2e71916a6748cbbca721b3e9b6766dcf04c709913edfb5f41f5831098961830dd4bfeb8d661219cd835a9e', 512 ) = '84067e9bd1a74088edbab9182a39a43e8fa9669a7918a5dd2b0dabe0daf2395b6d41ec828e89ae9ac5e63f54a0dbf7659c13ddc20d2d3d33f30fe5d1747ac341' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'cff920294053417495f5ba31281eda43e264ef8bad555fae2c5ff419a9ed78434fd3823299ec8f410a0154201fed531c82ffada180a037fdbd36cf662648f13f28e285971f3bfbf312959a4d9d65155c2eb4601675', 512 ) = '7a1d2a43df8e5f2521d93269d5fe069a555e460d0fb72bee3795c018d77ced248876f86f4e668756f035f2af5fb23c78529278c2a8d773eb060713c450f94559' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'03a0c0668e3984b2292d9bd4cf57051ba2240b053b9a2a5f3e9954ae316158ce8e559ed916ff174b69537463d43896cc6a44467c56c727dd6f0ce82a0ddbbe1c1b4212c76e9677be55b4de7e728c0d0ac8e14dd2144a', 512 ) = 'f1c616ce75361a068fc44e8626712dfd535dd37a0a9e8b3b1dfe9cc7b320864664b96193c3728450114c0f4093595202f82b7dd2a37d4b55f01ac24e6f108366' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'814c6906076a3a531d6cabd94025549fe78576b671bd8c785ca42212b75aea40da2b0d5854b6bf8a254e16662ea01c9ee596230e4d7c58f926629b9660c18ecbd661ec3839791d774a1907a24dc52616ba62df77355711', 512 ) = '52d5bd5dad0f1340fa3213ba2e94db95ac2bffacea3647bfb94163427fe7eebe5fe6f49160776da6cd9670a617aaab39bb73c5307424e61eb2cd03bdf186eeed' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'4edbba7c47286bdb1343da9127a036624ab9a42cec0e3412ba6a13d96f670392ed34097a8c96651eb22dc7c3a4f9c0049b1d77bd1be29d2880fea346da172a81fa83bb8fcd52b899e98e929d66c13d11efb8e1c91887d31a', 512 ) = '036b62ec6673ed63f225f6feb88933809c32edae2292925fb888181c1a0b36cae40e22aaa6db0061e92001e63e4e25886c1d5e8d49b84b928161ddcde950ad64' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'267b4d93feba7d7927ea2def7a11994cc35a8d3dc50e85607fbf130eaec7817893f1b7f5f675609a6b2a490cd4f70992278ae76e724df86e1c9688be6d1fbb0050b5749e5834765f02b2ca393afb6067203ef9bb0b054334ce', 512 ) = '7e2ecfef69de2b9fbf553e274dfdd983bf712ef581c4996c0e80590cc7e4e884842561a4690bc5e7c3b5299565f9374b0c97f8e966982a5b15699113541ba784' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'ee4ce14bfebdec4ae1b84d73bc62e143ec3098f5905a1e99478dba663be176515e0a80dff3d2d03751c70b7be330a758744651dca9a18b88cff19aa7d7ee9fde9f92040374851932d4d9ff1e78f7c6a692d9d2a9537a831ab08b', 512 ) = '3f2f168af618dc5fcafc8dd644295da4a022f975e3518ec5d1046a3e9ed16756dd5019e98fb85cdea2abf5e47c955c064f7bcdefb02d49c1f92b151c215217ea' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'e742e8c107336988161ca3343f532b59df8e6c02dceb9ce03833efa8e65f0ab6dc5bbaf6690be604c98cc292f7bc460bc2fcdf752334649cce184b6d07aa1da0b700279abf4873918c09f6f1ebac0bfe1f3a20bb3267af0b88d071', 512 ) = '745f4cbc34ca7727bf2ecd38aa24126e0566eb0ed633b5f3ddd92ecd74fea28059fd5d7b0810177f22be7d776aba3f63269328b7451b336cdfc78724c6c329b4' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'1511d4d2b955be39525983b9a9144e9f60eff6362928d3493675d1e3f1ebc259ec1df98a1b881466412f19ada882c5f9158420fffb2d5512ef0dc1e95c334aa1784df2057611ab0efedb6ea6da9787b1f2e1334e7a6b6c5a6a9f0437', 512 ) = 'd9bcfb54e8dcea3f8d6c7110e7fd397e52d6d62be2fa758e30d79c7ae89ddff0447e01414c7b9b6057fa1d70f064c27da9f5c4122d46c91ee2c1573ccc65c24c' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'5a040538682bda120fdc18b072408abd5f7627681d43f0b865051c1faee97353ae5ef8591dcacae2bc7b4cdb96e0844085f9c131f90c8147f59a91285a91765968c30c5482976ddb31fe148b6ca943b4177aa168c93828d2d2863ec97d', 512 ) = '45e61293e86f22b3a3f24f21a9297dbfda1c414d691606599030816332a0f73ca3e7f6d6cd5120e1274e91427e4305cd4599d60f8d2b3069430da6caf8fce103' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'a9abd6f42a85681483904d9a94b70dfec552f073495865bea4d0a4496a8993734a0be62b4ccd8bbd57a945ebf68c97405b72e3a1a592d3255ed5f827488db19959644f9a0492764bba54c6dfb199bbf2e4fed21c5bfceec5ac60f93bc2fc', 512 ) = '7aebcf0b69968dec55525b90722e5cfddae97e4bc0dd6630a88c24560ce7f6dc5ad365e1394c162b1fbab7dd159fac8d10e036e12da9102b36541486bf3a9273' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'55218435049cb8e9346c6e9602c3601c9fa5d2bf0c9c757d21ae8a9ed48c4a8eb80c86e8c4d98bd3566948917730b355611468553f209321337c11339d9dd2c79bb982edcc7e68dc5a038e8937ff2278a6391cd2fe3f21b9aa5ba7d875c35b', 512 ) = 'd78f40b72a42cbd0309417deea33ea3a317869e5242a6ef94aed63b96bfae036acdcd5144761e5077f8faf79d10c681a7c1144de553bdd9b742eb9aab76edd2a' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'e9a6317e3bc4d6cdd5a0833e52fb48baca16a9ba9b6c8ca469a0555763b54f04c87d4e41aa549258f30eefe5a52d2ba06657a8773b0842e094857b6d8911d6a0636280025e56356fade362b4bf4c875cc19be0c6644b447be0454dbf390eb966', 512 ) = 'b79ba8a1dabe9a89a383e8bb61750b4b84c90846671129abd1bed826345d97127c406b447664e3cf5305b5709baa29998c0f74b9f0038965be53a7620917d9c0' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'8d3108ebfbd2a6d248234e4eb76af905a899a886bcdba67e3a6d0e2eb2af8e1ce07b6a09d2b5c4244d231a7d6e7f10bc8dcb701366e56f717b5b32f9b48090b249c01a80e1305853fc69569e8e975f0beccd096dec9c72f548e3c8aa44e80f1391', 512 ) = '6d32fec68eba7bcd27a1ca2395e582add90bf74c8cc0926249dcfc333240cbec609976134c541796ff86e6c4481960339b06d00b4a4c55b423ddff52e9595be9' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'71599aa11c29f6629aacb58f1478e19988a504746cdeeb4894b7aa6a5541e08aebdd3c2e184d405f0e1145a18ff0c02953d5c34baadcc73262ada8d3eb09f123b9a25a88ea308f8e29c133dcd2502566569a02e4e22deb823bc288d9edcc4c1ea451', 512 ) = '30a38eaecdf787a4a2bc2e7e31e1c908112cea639cd882c0e88f0b3b8c131b5d791028150a3970ed79aba63421fb7735c068ccc3ef2ce500ba574f4e0515c360' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'c436115d8fa97b11dbca495353e7a37a82b0816c44e3c1647a2977f2023b8443e7486aa2d49b5e3fcf799f2f234807b59ef7dfc0fd99f8b4a553f76d9479f18296f438c6bce774150a92f54d7076479afcb907f74dcdf6f14b4d4cae15274f2f3b0023', 512 ) = '9a3bf2d701b6817baea83cd359257da3f6eb8cc34bf5169ec22a1dfc33001d6c4e7f866c2fb863dbe06106471437d0094215b9b17e7e27e90bd2eb05006e3d6a' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'5e2a3dcd2f860045cce291de5f501048a724cbacf9f1604085b4221adb4ebe42ae381f0ad7728ea29cbc1ee73309477c8231d11c29e6f32ec2e9bd9a677db3dc751dbb57906a39ebe86778c9bae84c861948f56fee5b471d3ea30849abc79ae13e40d95a', 512 ) = '2828051603cc729ddc9feede736ca9f352b69ab5a916042cf1f9f90cf1d529d7dd0577da13f11f4f7bfac4c4f2d9a327d4c9924ccc93b8c14428c6824c939a14' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'e5f4f4d833fc49da6dd083442214cb70d889efbefd2efdd820ac113b61f06bf3261ac4a51096e2d32e886b5c706ef7425e0168b0095b7e3c425fa6690b5613704bd61040c6e895c34b6918632fb1a5cdfb7331f462e42c597620558b1bc9d2e9bbf180af3b', 512 ) = 'bb66ae70b600735d0e9098f12fcd9aaac1f2141291e9bf54bb8e0013fce25ac1b878dfa5d0378814d84dd8892391da402891fbd7bcfec344ffe3272c5be7be66' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'85c2ce900c00d962f759c2091dd6c2e9211c36f7f7e348caa3aaccf444a968925208f822244e3095b51c83a5a71b446988330c2755fe5b693c7c8253a608c033758aab5a8aefd12b8bd6a071e38c83f60a3b4e51065edcff3278f6b53e0677f577b2aee048c9', 512 ) = 'ef50d18489656f7af6148e897d4ab3e631f0fd4f9fbd7f232a0ee288980b4cb10c2a1f890c77d13b4646ef133bb8816998dc8f88d5798ec7515f2c8ce607b655' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'f7f7f3bc1615653f479acd63042a0d15d636a071bdd02433d2bd156f2bccdc83ff6708490a68db91332e08ce6defbb0fdb4fda3137328a5374cff68ba2074cd713f40757bcc474b9ddc86ff4e5c86e39909ac22652f2193ef87c46968d2845d07ac6794df2d239', 512 ) = '11eb07f3a5c143026a7824197c02e2a52281fa82e15ef976a7e63941e16951f00321f206f09c2ebc0bf6fd00bb879df894952b98151b0e8cc27b34515e1bf4c0' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'd12a258ef4cc5ae35ba4e63aa23165945516f464aa098b966feb8ecf41389ef7ffa2b5f57ef972b97e4eb180dd585f530b178dd1beb6c22fe7b6967de4497c2bf7fce0cbf7997218454cc13802040b3e7f1c53f3f53bb5d67779f76124c3608ea180cd9ac7740109', 512 ) = 'a8e4b47f67f1541c7fc0f2a13c5abb33a1d4a5d733d794f22edf760b146485ac53bd03038ee76e322fcc23667c4c209f6c61287a8c9c044f0c9922752a9efc0c' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'a71a304ec61763764ad7881d54fe7d394e658e7588253ce223f23ce92fabc385102e01af2671eb19adcf3e1ee19fc1f9660bca36e8200367ff216e185521a7050ad06a8a5796545a72deee74b2b5e753f493a1653d78f0bfa13b1e0f631f32d25da871c7a2ad26a363', 512 ) = '2609ef79ea747fe6b00a50a2316c9d3ed2946adfd71cb3b1ad1262b3911add77c2bc76d121444c905ae865703e208bffd759b222b42b02cd13764c04298aab15' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'63df67c7eb2829ee72dd694949d92a24a0622c8f54ab6003089d9e4877d79a9508f415faa40c50fbc47dc67eceeb1ae7a1854f816e8a3720cb0c2e0402f50801af4747dd8aa891fa811d62340a16ff0db7abab080a251c528cc030a719afdd747e6166394603d532d046', 512 ) = '42463a62b1c92b3982dc4d666f8bf30ad5b3f383fc00ae3e65b5d4787ba0ce9f0c5e6d4d6446f1f480460fcac237dd1d82657b14dd8e4044954321ccba7f478f' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'b95900674bc78a86f4f9b2203b2950f6eac9a59665804c833b6f6e90fbb8368d4941842530b5e607baccc444becddaf8fa51eb2d6149b4fcb64220f55ae8bac263c96706ed5c558bb5422f9de4cb93b128bcc54b0950a51e7b7cde74af7761d02f7a12d22ac5c05c0ce25b', 512 ) = 'd420448ee2c6eabadfce5856fe93383ef559d144c97349bc0af48b1c19a926bb40b62d3cc9334804e6991cb073baf976dfb52ddee24b5ce36d1f6789eed83574' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'fe59b2da7c365a64901f6a132c957105844578ee0a2c955f9dfebd49fdc9dabd83d51df50fd096984127023aecb7e422c7a5d751668a22c069d48de8f46973875f8d19a22e053ec6437cf3945227ad7d96a599c9c2292fde3bda0abf847af7d3f9464ce8c11e7b77fee6e629', 512 ) = 'cc7cb1a4a616ae4806e48cbc176542a4d75a5b07c25d9324c124db13328e656ccd1cda4f946f0425c5d79c1ba165b1a12933b92f7bc3296fe98c72b15cad2d51' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'71f7ff4ba87d2bcb5ff81a1f42f47756f5189e6b5458011bff6ccaf41680c2af412d71bff4a8872af1397a980eef71a93893618cb8da75ceb5deb46ffacfde3bfae69657119bc61b0d18401fededa199e9057be6b2d9b366fae3278d37569437a40cb83c89c0b345bd7db3de69', 512 ) = '31b446c44b0aa2791cb7ab5834e4b8cdd2e3c5b4a96234b338c7b9431dab2bc532e4d71c7f84f07372c8a3f08feac37d0254cead9a9aa619d312a3c006992caa' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'52b5a7af72437136650e64a49078aa831d8d715c46364c88d0b0d543d53d9802c71a2c07b2b0a332c10e251a0497d75c70f80133285e7149fbe51acd2d5301c67a065aa7582bed237d31bf42a17defb58560de673446925488305d9ef164b9dd726277b7ec1b19b29f5e7c45ee93', 512 ) = '02bdc51f3e4e129a4b21347d835b3611165424eb6607440c816979e6806e27df12c50413740b1602da26db7ee3e55e5ab4a62a8eaae24ef1c68d1510fc824932' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'b698108304a44fda03e02fbd13bdaf3ae1c7786de61f7796312bcc6e678ce3bc0850e023f369413e2d5ebeefde4174f39ce143baec4075760648a073d9b9cda64f66d988d2a11c250ff4496ffa1295d9120c1c21e6c8806dd8b0d39a21a7b7d11541c35ba83329b6320896e86f165a', 512 ) = '131ecdf4840cdc45557516205f07cc277b7641d05afc57cb7fe534f59d9cbe611e0e6a7b6aad61f1d39fdc7559f3048ac4d0a41234ddf07423dc61dbfddb7a65' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'65f571e86f04f86dca7079e2ce8619a1f52057fed7cc9e88592a1a8c2196ccdb4d07d9cd643728868c052b78fe17fd29b8c3ae377130db99d2b88127e391125dc4adc95c9dde3b31d73e305a8dceb0863d5d619dc4ac100089cf8d12f8d6bcf732ade99c02415cf714e42d9061f35a40', 512 ) = '0cf871f3af1d3e5c9965619f479ba6b75be338afbf32b2a1fdec9361164357b2c4faebebff6e4a5af00389336434b5872285adb1e760ae99b19a812236000d22' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'188d1fc4347ad766311a74574b46be4c30886742bfd1eec90f6ac4a3b32dae8d3cf56a5d0053954d1a83cc97b29e12427f10713b894de4a734c075787a04a33e785706402c4c36cc7dc0e8cb7b0e5a98e987f213f91c22f1565e8e5667a971a5d39b3c9740cb818a61b8101c2f0060f976', 512 ) = 'b67a29b2280dae77184e2e7839a7f3b48f4054f9bd0ebf5ecf1694151966756ec4542b2285a53fa37515116c7db4f1aa492f9db0bbafa0567bdaea1bf0f26abd' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'9bae33d315dd0e4fbed1a571e7e5f902c9c027817679f46810ffaab139b92399ca6923a4c856ebe194aa0a6f61197740ebc3dd1d675c36eab58a9b2cdd8e5ac8b9274a0defb35bf5239871a86ae27342012e9ed63fc620b3c80de2e6041ea500cfb05019723d8814d2638225e88a159171c7', 512 ) = 'f3b2f66f9a9673ffc47d2c510d6de0a3ac90d59e9600f2600777b1d84446cf94588231a8b48987081209e320d62ae85acb4895731bef1710923ef0fa983340d0' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'a7d58b5cfb1841f6387ff658cfc44c2b14fbd1579f6d8276f2a38e885dc15ce81f16ce7fcef0c837f9b5ecb20b2fa83d722873ff0137537693d9a325f2c31386f777f046f216a6b14b75836c6a72bd62d589b70098a280a5ea2d9c540d7108ad7621781b2e31e34e78e741ecb4359483834625', 512 ) = '90fd55013bb36a390be5bbc34bf9ef76ab200deedf3844f79bf5128fdf6fe71332a612e5bb3c4a2bfaec1bcc5510f6f8ec8414d5e13b0ebf2a67e84ce2282d2b' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'c3bd6ef24c7c64ba3b198a8949bb824b4642b6910b72edd8af531d0efed7805226beeafcb4b75addbfc8cfc863ef5d50720a7fd465f4afb999f134f7b84c3cd7743e2afb7c12319ea887221d777682b6bcb4e090943a65fc9b83adfb6036d5001605d6f78cd511855f1f2b926e961a058e0a80ce', 512 ) = '99163db3dae57ca20c4327b88851f3c63187e5a2bbadf3c3dab341040619d2196c84c196cee861deea363f48a9f728b4816d2831033ab472f1c92e1ce748ba4f' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'9b6b821c5f536bbda82ff5036b6de56eb046a596469d9427b52aa12a74d718865c6abbc65d65151c702a0ba6cc63b4f15da16bbc724322feb69af92a614b0fb1aff497c892122f6da3226ea45f06bc0790ab677d09e9f34a96aab148334f93737c4f3eab652161b62b5d45858b1ea6b831aac26473', 512 ) = 'f65de5d478319608168bde654963b9d410b6aa5bfd8d25bf2165a94b5d2ceba0eb792a7bf132c6c189748ef16fe87e196c862a884b6e2da9804c92b60bcde824' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'616ab1a4a7782b8e1cc098b3ae4c70f7bec742fd7681a9475dba7b9f281c43b6d489f20cf117d10f4159ba8781e188318702ccaa8ddbc28fcd9083e34edb7bb1fdc41ef2ffacd7b04690416c628c9abe9a9e753b3cadae9b31caa31cd4b5a12105a39d1f783e25b953ee962af9578ee42023a4762a01', 512 ) = '43394563a74a6d0a036b1dfc206a2ff1e8a2443d8f69b63372fa959360fafd5178d8e8793b2a44116a64313797b60cea5c93cba97a1e6309c2aa9436a2815c21' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'9bf0e5967fc1359ec7093f1db06144268e176e08098ba9d085d8b50fe2b779dd66a19b1df7344d038ed86ad4e8a2c1ed7f79b107b877f6b95e91c23e4f7b0f7975c63436f84cb7b3b2cd635fe4da9ae127f2ec5ca5ece8f288943187b399d5c7b0a7db6aead01bb61d3053460ad1760b6fcc479036b127', 512 ) = 'abeb62f84f587b997e09ee255819531b986c86e2568df29ed77b68a597331f2a977203a2f66566e37cbfdacc090d0464c49839cee7a8ff569c008758b0b1172b' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'a19949a0d6340be4a91b7973b705bddb2021a0d58f04aad474e68ade940fb99bc48c5bacf126663d649505de44f03f8e5d68d4191f3667a5ead2e2878966175bfc82a3537a1118cfb68c5b2e626d4ae4f1e7a2cda2d420c2baefe76910432251cfe3ea3e78dc6ac12668410c166427056604d4991dc61e53', 512 ) = 'c7a4313191d56ef7a73064e271ac720322866a6ef82a42a2faeafdeb8d4da7df5200baaa286ee50c9464d0eb229b036c333ceae7b6a511af5c51dab79508641e' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'a949427f3fc83e578d9cc7ef6a510759f697bbe97d9739329e87b130ac7cb3c75480f16c80e547237cd9f8a9573a3bf28dabf6d6e2e7c90791554e46a6dd9fd6a9fb19317c1160fb8602a33412fc22b1f195edcd671aee5c452329e0526b4300efdf4135fbf593c7f53f51f86040c47e6c7e2837d2d8b01900', 512 ) = 'fe3347c05519b9c4a61fa289af3153c56f96d04f67041697ba09bf9722a04be2bb15ae2399170a9fe206db8d60cb9940c6d6826db99860f31fd83e9eb9f72c73' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'4157af0b3e7d291add80bdc7dac297a15861a6e66db24599e1eb1bd6331f3f63dd70a087d980a51f642810ee026d2835c2af1783c32491cff785b6c427073a5c388dc3b0ac1c920f6c8f664dc48c9d5dafb69d2255247283d213b8be39d7bcfed818de2fbe3a3a117b1d878b27073e43a6deff6b299b32def8fb', 512 ) = '6d90357d4fe398642e7b6099fa2fb2383dedb02db019e90b2ed4058dd55311156e79b8aa970035d098fd3c0e26626ca9af42af491b36eb40097c6223d21201ba' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'bc79986ccacf533b9ddbe2bcd15958c3bcd86063f325dc051007cbb8b32c70c8c764b192070dbd96c0cef1ced889fd3f0f8a42cd85057f537dbfadf3600b27ab05f80e292fc9ece157a5975cac9059d3599a4dfc06560c24a18e897e5e353abbfc9d79da4beb2942ebc79c0e5658b4a8206f49997e02cb9f06dd29', 512 ) = '1e1d4bb3839438383be702d61d60f098d70257baef0f4058260e8d300ece538a0c3133b327a7f25055916dc8c8a5c7cd419c95d0664aa53742e8be6abd4b22f5' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'0a45314284915ec9021fdd121a3c99e7c01bc73b696d26607131857abace8734975fa3b1e84e6ec686241d66e19f455de706e64128b9a8a6380c64925555e6314a44f2c9937384efc23e5cfc22d5babb998f6764d382f4ce9c5046e08e435349ed9d2670cf2929ae8016a3bc240580679e61518bb1ef933e65a6344c', 512 ) = 'f523ebd51c0f1d8e32a299f762f50826fd2341b8ae44d0c4841080bb626112ae1eafbb089b7adfd6e6668ac7ab684f78da2a23273058973e4cb660c297733912' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'8beea2e048193dfa755a594306ad9825c77659d037092ee09a6f91394a68d2364eac54042d76f9480443db08d7d73dc82582c1f3bfa1db7dda6785c762de34c391280b58c10b4f087ead1cd0e09b564f1710e12b487515b198246cbb86717ed77deb30a5a9df28810b1e8462c800cb02c7a923407a8bc5c2fc2cafde5d', 512 ) = 'a71b1ce1e582bca53d7615488335ca1ff351eb33a8c2c0105bec7ffcbd55e4533ee68209ec8b009066a2ff60b418d6b943816cca9b53b7bf64a34feaa4d63600' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'f4259473bfd39877bfe9597353d7ce8dd520c66d1fc7884e4e03b655c63a7721762dd4a35d7163304c1e23d4eecba8ea07b978e9f94eb4818cc5fbe7ee258b6df96fa955b51c44e71ec6d5c12726896ffe3ea23b92d71a46532e8ad838eb4bf50752db31d1bd82c5bb4a35e105d1ba4444190d0bf24b03c629a62dd1ac75', 512 ) = 'c8a04bf3881d0582e03563af73a675e40dc9918fcb5a138b8c6fdd057df0c11b112a6dc0664a0dff8a316c3a645ac87dd25b644d061700306bbd7dd805879b55' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'd60da691585b7c0c3714905411ae8e3515e8490dbbaf07d1b2431f501a96c7bcf4f52766d7e9b2c9e460b5cafc08303e30fce6ad78a2b055a8d31672a13d20bdc4066a33adb277171d47473a37af2c7af05dd989c134bcf09ea48e532c1628f62f8a9880417e74ffca126e2d2c6b29f23e554b29fc2cd4a77dfcae7925e784', 512 ) = 'ec83376ff6f633ee2d898d87a6a91efb0788bce188fac7d3c4c35f81ba6015640dbfad1f8584557ec210478a0cb566f1490643ce602aa5abfab63d46f7f1d4ee' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'b7d5d5f8955d1ad349b9e618c7987814f6dc7bdc6c4ee59a79902026685468d601cc74965361583bb0a8aa14f892e3c21be3094ad9e58b69cc5d6d28a9bea4afc39dc45ed065d81af04c91e5eb85a4b2bab76d774aafd8837c52811270d51a1f03300e7996cf6319128be5b328da818bde42ef8a471494919156a60d460191cc', 512 ) = '6e7fb797dfca7577432c0b339fe9003b36942a549b112d32016b257c9a866e4385e01d4e757d4378b8e61f5a8a29aa73f2daafdaab23dfe4e0b93df21374e594' as NIST_SHA512_test_vector;
-NIST_SHA512_test_vector
-1
-SELECT SHA2( x'ff', 1 );
-SHA2( x'ff', 1 )
-NULL
-Warnings:
-Warning 1583 Incorrect parameters in the call to native function 'sha2'
-SELECT SHA2( x'ff', 2 );
-SHA2( x'ff', 2 )
-NULL
-Warnings:
-Warning 1583 Incorrect parameters in the call to native function 'sha2'
-SELECT SHA2( x'ff', 223 );
-SHA2( x'ff', 223 )
-NULL
-Warnings:
-Warning 1583 Incorrect parameters in the call to native function 'sha2'
-SELECT SHA2( x'ff', 511 );
-SHA2( x'ff', 511 )
-NULL
-Warnings:
-Warning 1583 Incorrect parameters in the call to native function 'sha2'
-SELECT SHA2( x'ff', least(123, 42) );
-SHA2( x'ff', least(123, 42) )
-NULL
-Warnings:
-Warning 1583 Incorrect parameters in the call to native function 'sha2'
-SELECT SHA2( x'ff', 10000000000000 );
-SHA2( x'ff', 10000000000000 )
-NULL
-Warnings:
-Warning 1583 Incorrect parameters in the call to native function 'sha2'
-SELECT SHA2( SHA2( NULL, 224), 224 );
-SHA2( SHA2( NULL, 224), 224 )
-NULL
-SELECT SHA2( SHA2( x'ff', 224), 224 ) is not NULL;
-SHA2( SHA2( x'ff', 224), 224 ) is not NULL
-1
-SELECT SHA2( SHA2( x'ff', NULL), 224 ) is not NULL;
-SHA2( SHA2( x'ff', NULL), 224 ) is not NULL
-1
-SELECT SHA2( SHA2( x'ff', 224), NULL ) is not NULL;
-SHA2( SHA2( x'ff', 224), NULL ) is not NULL
-1
-SELECT SHA2( (select x'ff'), 224 ) is not NULL;
-SHA2( (select x'ff'), 224 ) is not NULL
-1
-SELECT SHA2( (select x'ff'), least(224, 500) ) is not NULL;
-SHA2( (select x'ff'), least(224, 500) ) is not NULL
-1
-SELECT SHA2( (select 1), NULL ) is not NULL;
-SHA2( (select 1), NULL ) is not NULL
-1
-SELECT LENGTH(SHA2( '', 224 )) / 2 * 8 = 224;
-LENGTH(SHA2( '', 224 )) / 2 * 8 = 224
-1
-SELECT LENGTH(SHA2( 'any', 256 )) / 2 * 8 = 256;
-LENGTH(SHA2( 'any', 256 )) / 2 * 8 = 256
-1
-SELECT LENGTH(SHA2( 'size', 384 )) / 2 * 8 = 384;
-LENGTH(SHA2( 'size', 384 )) / 2 * 8 = 384
-1
-SELECT LENGTH(SHA2( 'computed', 512 )) / 2 * 8 = 512;
-LENGTH(SHA2( 'computed', 512 )) / 2 * 8 = 512
-1
-#
-# Bug#54661 sha2() returns BINARY result
-#
-SET NAMES binary;
-SELECT sha2('1',224);
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def sha2('1',224) 253 56 56 Y 128 39 63
-sha2('1',224)
-e25388fde8290dc286a6164fa2d97e551b53498dcbf7bc378eb1f178
-SET NAMES utf8;
-SELECT sha2('1',224);
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def sha2('1',224) 253 168 56 Y 0 39 33
-sha2('1',224)
-e25388fde8290dc286a6164fa2d97e551b53498dcbf7bc378eb1f178
-SET NAMES latin1;
-SELECT sha2('1',224);
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def sha2('1',224) 253 56 56 Y 0 39 8
-sha2('1',224)
-e25388fde8290dc286a6164fa2d97e551b53498dcbf7bc378eb1f178
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-10850 Wrong result for WHERE .. (f2=TO_BASE64('test') OR f2=TO_BAS E64('TEST'))
-#
-CREATE TABLE t1 (f1 VARCHAR(4), f2 VARCHAR(64), UNIQUE KEY k1 (f1,f2));
-INSERT INTO t1 VALUES ('test',SHA2('test',224)), ('TEST', SHA2('TEST',224));
-SELECT * FROM t1 IGNORE INDEX(k1) WHERE f1='test' AND (f2= SHA2("test",224) OR f2= SHA2("TEST",224));
-f1 f2
-test 90a3ed9e32b2aaf4c61c410eb925426119e1a9dc53d4286ade99a809
-TEST 917ecca24f3e6ceaf52375d8083381f1f80a21e6e49fbadc40afeb8e
-SELECT * FROM t1 WHERE f1='test' AND (f2= SHA2("test",224) OR f2= SHA2("TEST",224));
-f1 f2
-test 90a3ed9e32b2aaf4c61c410eb925426119e1a9dc53d4286ade99a809
-TEST 917ecca24f3e6ceaf52375d8083381f1f80a21e6e49fbadc40afeb8e
-SELECT * FROM t1 WHERE f1='test' AND (f2= SHA2("TEST",224) OR f2= SHA2("test",224));
-f1 f2
-test 90a3ed9e32b2aaf4c61c410eb925426119e1a9dc53d4286ade99a809
-TEST 917ecca24f3e6ceaf52375d8083381f1f80a21e6e49fbadc40afeb8e
-DROP TABLE t1;
-#
-# MDEV-10425 Assertion `collation.derivation == DERIVATION_IMPLICIT' failed in Item_func_conv_charset::fix_length_and_dec()
-#
-PREPARE stmt FROM "SELECT SHA2(CONVERT('foo' USING latin1), 224)";
-EXECUTE stmt;
-SHA2(CONVERT('foo' USING latin1), 224)
-0808f64e60d58979fcb676c96ec938270dea42445aeefcd3a4e6f8db
-DEALLOCATE PREPARE stmt;
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10134 Add full support for DEFAULT
-#
-CREATE TABLE t1 (
-a VARCHAR(30),
-b TEXT DEFAULT SHA(a),
-c TEXT DEFAULT SHA2(a,224)
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) DEFAULT NULL,
- `b` text DEFAULT sha(`a`),
- `c` text DEFAULT sha2(`a`,224)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('abc');
-SELECT * FROM t1;
-a b c
-abc a9993e364706816aba3e25717850c26c9cd0d89d 23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/func_encrypt.result b/mysql-test/r/func_encrypt.result
deleted file mode 100644
index 68c44231e43..00000000000
--- a/mysql-test/r/func_encrypt.result
+++ /dev/null
@@ -1,236 +0,0 @@
-drop table if exists t1;
-create table t1 (x blob);
-insert into t1 values (des_encrypt('The quick red fox jumped over the lazy brown dog','The quick red fox jumped over the lazy brown dog'));
-insert into t1 values (des_encrypt('a','The quick red fox jumped over the lazy brown dog'));
-insert into t1 values (des_encrypt('The quick red fox jumped over the lazy brown dog','a'));
-insert into t1 values (des_encrypt('ab','The quick red fox jumped over the lazy brown dog'));
-insert into t1 values (des_encrypt('The quick red fox jumped over the lazy brown dog','ab'));
-insert into t1 values (des_encrypt('abc','The quick red fox jumped over the lazy brown dog'));
-insert into t1 values (des_encrypt('The quick red fox jumped over the lazy brown dog','abc'));
-insert into t1 values (des_encrypt('abcd','The quick red fox jumped over the lazy brown dog'));
-insert into t1 values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcd'));
-insert into t1 values (des_encrypt('abcde','The quick red fox jumped over the lazy brown dog'));
-insert into t1 values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcde'));
-insert into t1 values (des_encrypt('abcdef','The quick red fox jumped over the lazy brown dog'));
-insert into t1 values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcdef'));
-insert into t1 values (des_encrypt('abcdefg','The quick red fox jumped over the lazy brown dog'));
-insert into t1 values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcdefg'));
-insert into t1 values (des_encrypt('abcdefgh','The quick red fox jumped over the lazy brown dog'));
-insert into t1 values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcdefgh'));
-insert into t1 values (des_encrypt('abcdefghi','The quick red fox jumped over the lazy brown dog'));
-insert into t1 values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcdefghi'));
-insert into t1 values (des_encrypt('abcdefghij','The quick red fox jumped over the lazy brown dog'));
-insert into t1 values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcdefghij'));
-insert into t1 values (des_encrypt('abcdefghijk','The quick red fox jumped over the lazy brown dog'));
-insert into t1 values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcdefghijk'));
-insert into t1 values (des_encrypt('The quick red fox jumped over the lazy brown dog','sabakala'));
-insert into t1 values (des_encrypt('quick red fox jumped over the lazy brown dog','sabakala'));
-insert into t1 values (des_encrypt('red fox jumped over the lazy brown dog','sabakala'));
-insert into t1 values (des_encrypt('fox jumped over the lazy brown dog','sabakala'));
-insert into t1 values (des_encrypt('jumped over the lazy brown dog','sabakala'));
-insert into t1 values (des_encrypt('over the lazy brown dog','sabakala'));
-insert into t1 values (des_encrypt('the lazy brown dog','sabakala'));
-insert into t1 values (des_encrypt('lazy brown dog','sabakala'));
-insert into t1 values (des_encrypt('brown dog','sabakala'));
-insert into t1 values (des_encrypt('dog','sabakala'));
-insert into t1 values (des_encrypt('dog!','sabakala'));
-insert into t1 values (des_encrypt('dog!!','sabakala'));
-insert into t1 values (des_encrypt('dog!!!','sabakala'));
-insert into t1 values (des_encrypt('dog!!!!','sabakala'));
-insert into t1 values (des_encrypt('dog!!!!!','sabakala'));
-insert into t1 values (des_encrypt('jumped over the lazy brown dog','sabakala'));
-insert into t1 values (des_encrypt('jumped over the lazy brown dog','sabakala'));
-select hex(x), hex(des_decrypt(x,'sabakala')) from t1;
-hex(x) hex(des_decrypt(x,'sabakala'))
-FFA185A4656D113445E31D7A5B31BB57671A4CA9E21E63FE5D9C801E0CC7AA6190C13E269C2AE8D8060D3FB3FEA94FEC7FB006B9DCAC3E3E41 NULL
-FFC620C3B84E926A54 NULL
-FFA4F77D4220A16C980AF7CB576F8DC0A864F357825C16F329F24F66EBA775765B7C1538B90970740F853B556AEBD35AC31B962EA9B12B5AD4 NULL
-FFACFF5921BB876A90 NULL
-FFA6F18760E7CC5A4C325244B8486F692AAA11D229AF9ED4E4C9D56D7C0278C0DDA58F73E15E2B5F6C1DDD19B22B8071C454C930585449AAEB NULL
-FF3736DFEDC4B765F4 NULL
-FF598681EA5F03CD6D6AEA2B118DF4885DD78BECDFB012BBB05386E436DC403D3CB9DE3BE8D5D3BB7FD90A1F9F9A3E055BB3B4FD3F6A869473 NULL
-FF15B8B5952D630CAE NULL
-FF11EE3A400685226B76D5EC567681FA90247CE3C9DBE43341311C22F74562B1199957D80E300737791F6345BBC61AE03F28F52E5A6DCC78B2 NULL
-FF0A832AE10DC85483 NULL
-FF6F5C0BF4C5F899B4E7C091D9B1F1E92A7623B651B150CA3E7F420B4DD316D2C1BF76FCF9F9A046C000A9E21C106591E8C1930201B1750269 NULL
-FFA08D5FB849A9FC90 NULL
-FFF7331312FE153A39B1EC0D65BC1D3A0B6FCD49DA8C95D6161F53B11D297BAE142BCA6B9492DAE9A02AF455F16CA2C1CF4E1AD17297E947E2 NULL
-FFDEE60A938478E059 NULL
-FF95A729E73D5D87416A53055029E8CAA95B4F7B49F3D2D821A95D1FCE70F4B7A3226077176723F3DCC0A44D3B2EE9EFBC4D31AA87C948916C NULL
-FF1C78557F542A1FDC91943761B2EED14F NULL
-FF1E35B0775EEE512544A75BDAF58EA1655F5C899D3C5191A47263E2D11C3E688F662AB79F66D3B1DF9C75BD869EB8E04FDAE85719CB573A43 NULL
-FF1C78557F542A1FDCDC4182B5314185E5 NULL
-FF783123DCB36F98A51C39A560C92E129F1DDEEAB170825406A61260FBFBBFB0F2E48DB3282588A975C9C71E0EACA71A2B642A8C9C2E921A9F NULL
-FF1C78557F542A1FDCAC4B1B6B47206306 NULL
-FF6D9B450837017D06CA1F1C9A0E700D03DEF06A4F954527A961CA805F70320E9F3F0007636B80768A253A5F7ADABC18B78F1A2FA560CC0B21 NULL
-FF1C78557F542A1FDCE9038BD99DD43F2E NULL
-FF23FD03BA7548DD0957EBA7A8FBF7A18589762F3913E9A935BDA72F6F28202DC64572E0D633A54EA55BFD2C749E408C8632CCE36A7AE00619 NULL
-FFD8DD3C4ABCB02FCDFE1383ECC0F61E7D02CD3BA72BBAEA26384D14835796501B3DC9A2F7EC2FC1633BDA6D56464536FE12010049C53A1991 54686520717569636B2072656420666F78206A756D706564206F76657220746865206C617A792062726F776E20646F67
-FFACC5C5479575CBCA518B05778139B1BFC10F07299C98D04F580BC2F816828722D65A89C1831BD29DA626D319813BD374 717569636B2072656420666F78206A756D706564206F76657220746865206C617A792062726F776E20646F67
-FF128D5517241DEEC631ABD2A47FA66E57930001417F18204328B0B2CB13F7AD2F50B8336EFAE7DE21 72656420666F78206A756D706564206F76657220746865206C617A792062726F776E20646F67
-FF7CF971283B4DC2D050B3DB22684737B74B5B1CF12CF2FAC5A5995A298505F56D82BBFB9FC3E70059 666F78206A756D706564206F76657220746865206C617A792062726F776E20646F67
-FF8333F3DD21E4488F967E03DD12394813A49F72848BB49473D3CB1C8A1AACF220 6A756D706564206F76657220746865206C617A792062726F776E20646F67
-FFE8CB7FD80E6262C5FEB042A2DCC73B699CEEDCA6DC4458A0 6F76657220746865206C617A792062726F776E20646F67
-FFA29334D7CDB1B403DF3EB992067DD524C7D568E8D98EBFE5 746865206C617A792062726F776E20646F67
-FF4F0C5858FE2358D400E38831D5577C85 6C617A792062726F776E20646F67
-FFB370CD6BAFD1CB95974D21DCCA2DD9D7 62726F776E20646F67
-FF8F7777B28C7A459A 646F67
-FF75213A4D7D01D715 646F6721
-FF2DCAF574B173FB4D 646F672121
-FFFA775787BE776B15 646F67212121
-FF3FC2E42D7C840905 646F6721212121
-FF9723312D26D9E6DA01D01A784A64DB9D 646F672121212121
-FF8333F3DD21E4488F967E03DD12394813A49F72848BB49473D3CB1C8A1AACF220 6A756D706564206F76657220746865206C617A792062726F776E20646F67
-FF8333F3DD21E4488F967E03DD12394813A49F72848BB49473D3CB1C8A1AACF220 6A756D706564206F76657220746865206C617A792062726F776E20646F67
-select des_decrypt(x,'sabakala') as s from t1 having s like '%dog%';
-s
-The quick red fox jumped over the lazy brown dog
-quick red fox jumped over the lazy brown dog
-red fox jumped over the lazy brown dog
-fox jumped over the lazy brown dog
-jumped over the lazy brown dog
-over the lazy brown dog
-the lazy brown dog
-lazy brown dog
-brown dog
-dog
-dog!
-dog!!
-dog!!!
-dog!!!!
-dog!!!!!
-jumped over the lazy brown dog
-jumped over the lazy brown dog
-drop table t1;
-select hex(des_encrypt("hello")),des_decrypt(des_encrypt("hello"));
-hex(des_encrypt("hello")) des_decrypt(des_encrypt("hello"))
-85D6DC8859F9759BBB hello
-select des_decrypt(des_encrypt("hello",4));
-des_decrypt(des_encrypt("hello",4))
-hello
-select des_decrypt(des_encrypt("hello",'test'),'test');
-des_decrypt(des_encrypt("hello",'test'),'test')
-hello
-select hex(des_encrypt("hello")),hex(des_encrypt("hello",5)),hex(des_encrypt("hello",'default_password'));
-hex(des_encrypt("hello")) hex(des_encrypt("hello",5)) hex(des_encrypt("hello",'default_password'))
-85D6DC8859F9759BBB 85D6DC8859F9759BBB FFD6DC8859F9759BBB
-select des_decrypt(des_encrypt("hello"),'default_password');
-des_decrypt(des_encrypt("hello"),'default_password')
-hello
-select des_decrypt(des_encrypt("hello",4),'password4');
-des_decrypt(des_encrypt("hello",4),'password4')
-hello
-select des_encrypt("hello",10);
-des_encrypt("hello",10)
-NULL
-Warnings:
-Warning 1108 Incorrect parameters to procedure 'des_encrypt'
-select des_encrypt(NULL);
-des_encrypt(NULL)
-NULL
-select des_encrypt(NULL, 10);
-des_encrypt(NULL, 10)
-NULL
-select des_encrypt(NULL, NULL);
-des_encrypt(NULL, NULL)
-NULL
-select des_encrypt(10, NULL);
-des_encrypt(10, NULL)
-NULL
-Warnings:
-Warning 1108 Incorrect parameters to procedure 'des_encrypt'
-select des_encrypt("hello", NULL);
-des_encrypt("hello", NULL)
-NULL
-Warnings:
-Warning 1108 Incorrect parameters to procedure 'des_encrypt'
-select des_decrypt("hello",10);
-des_decrypt("hello",10)
-hello
-select des_decrypt(NULL);
-des_decrypt(NULL)
-NULL
-select des_decrypt(NULL, 10);
-des_decrypt(NULL, 10)
-NULL
-select des_decrypt(NULL, NULL);
-des_decrypt(NULL, NULL)
-NULL
-select des_decrypt(10, NULL);
-des_decrypt(10, NULL)
-10
-select des_decrypt("hello", NULL);
-des_decrypt("hello", NULL)
-hello
-SET @a=des_decrypt(des_encrypt("hello"));
-flush des_key_file;
-select @a = des_decrypt(des_encrypt("hello"));
-@a = des_decrypt(des_encrypt("hello"))
-1
-select hex("hello");
-hex("hello")
-68656C6C6F
-select hex(des_decrypt(des_encrypt("hello",4),'password2'));
-hex(des_decrypt(des_encrypt("hello",4),'password2'))
-NULL
-select hex(des_decrypt(des_encrypt("hello","hidden")));
-hex(des_decrypt(des_encrypt("hello","hidden")))
-NULL
-Warnings:
-Warning 1108 Incorrect parameters to procedure 'des_decrypt'
-explain extended select des_decrypt(des_encrypt("hello",4),'password2'), des_decrypt(des_encrypt("hello","hidden"));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select des_decrypt(des_encrypt('hello',4),'password2') AS `des_decrypt(des_encrypt("hello",4),'password2')`,des_decrypt(des_encrypt('hello','hidden')) AS `des_decrypt(des_encrypt("hello","hidden"))`
-drop table if exists t1;
-create table t1 (f1 smallint(6) default null, f2 mediumtext character set utf8)
-engine=myisam default charset=latin1;
-insert into t1 values (null,'contraction\'s');
-insert into t1 values (-15818,'requirement\'s');
-select encrypt(f1,f2) as a from t1,(select encrypt(f1,f2) as b from t1) a;
-drop table t1;
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8369 Unexpected impossible WHERE for a condition on a ZEROFILL field
-#
-CREATE TABLE t1 (a INT(6) ZEROFILL);
-INSERT INTO t1 VALUES (1),(2);
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a=1 AND DES_ENCRYPT('test',a)=_latin1 'abc' COLLATE latin1_bin;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1 and des_encrypt('test',`test`.`t1`.`a`) = 'abc'
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10134 Add full support for DEFAULT
-#
-CREATE TABLE t1 (
-a VARCHAR(30),
-b BLOB DEFAULT DES_ENCRYPT(a, 'passwd'),
-c TEXT DEFAULT DES_DECRYPT(b, 'passwd')
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) DEFAULT NULL,
- `b` blob DEFAULT des_encrypt(`a`,'passwd'),
- `c` text DEFAULT des_decrypt(`b`,'passwd')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('test');
-SELECT c FROM t1;
-c
-test
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/func_encrypt_nossl.result b/mysql-test/r/func_encrypt_nossl.result
deleted file mode 100644
index dd45717a22f..00000000000
--- a/mysql-test/r/func_encrypt_nossl.result
+++ /dev/null
@@ -1,98 +0,0 @@
-select des_encrypt("test", 'akeystr');
-des_encrypt("test", 'akeystr')
-NULL
-Warnings:
-Warning 1289 The 'des_encrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select des_encrypt("test", 1);
-des_encrypt("test", 1)
-NULL
-Warnings:
-Warning 1289 The 'des_encrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select des_encrypt("test", 9);
-des_encrypt("test", 9)
-NULL
-Warnings:
-Warning 1289 The 'des_encrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select des_encrypt("test", 100);
-des_encrypt("test", 100)
-NULL
-Warnings:
-Warning 1289 The 'des_encrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select des_encrypt("test", NULL);
-des_encrypt("test", NULL)
-NULL
-Warnings:
-Warning 1289 The 'des_encrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select des_encrypt(NULL, NULL);
-des_encrypt(NULL, NULL)
-NULL
-Warnings:
-Warning 1289 The 'des_encrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select des_decrypt("test", 'anotherkeystr');
-des_decrypt("test", 'anotherkeystr')
-NULL
-Warnings:
-Warning 1289 The 'des_decrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select des_decrypt(1, 1);
-des_decrypt(1, 1)
-NULL
-Warnings:
-Warning 1289 The 'des_decrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select des_decrypt(des_encrypt("test", 'thekey'));
-des_decrypt(des_encrypt("test", 'thekey'))
-NULL
-Warnings:
-Warning 1289 The 'des_decrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select hex(des_encrypt("hello")),des_decrypt(des_encrypt("hello"));
-hex(des_encrypt("hello")) des_decrypt(des_encrypt("hello"))
-NULL NULL
-Warnings:
-Warning 1289 The 'des_encrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-Warning 1289 The 'des_decrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select des_decrypt(des_encrypt("hello",4));
-des_decrypt(des_encrypt("hello",4))
-NULL
-Warnings:
-Warning 1289 The 'des_decrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select des_decrypt(des_encrypt("hello",'test'),'test');
-des_decrypt(des_encrypt("hello",'test'),'test')
-NULL
-Warnings:
-Warning 1289 The 'des_decrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select hex(des_encrypt("hello")),hex(des_encrypt("hello",5)),hex(des_encrypt("hello",'default_password'));
-hex(des_encrypt("hello")) hex(des_encrypt("hello",5)) hex(des_encrypt("hello",'default_password'))
-NULL NULL NULL
-Warnings:
-Warning 1289 The 'des_encrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-Warning 1289 The 'des_encrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-Warning 1289 The 'des_encrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select des_decrypt(des_encrypt("hello"),'default_password');
-des_decrypt(des_encrypt("hello"),'default_password')
-NULL
-Warnings:
-Warning 1289 The 'des_decrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select des_decrypt(des_encrypt("hello",4),'password4');
-des_decrypt(des_encrypt("hello",4),'password4')
-NULL
-Warnings:
-Warning 1289 The 'des_decrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-SET @a=des_decrypt(des_encrypt("hello"));
-Warnings:
-Warning 1289 The 'des_decrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-flush des_key_file;
-select @a = des_decrypt(des_encrypt("hello"));
-@a = des_decrypt(des_encrypt("hello"))
-NULL
-select hex("hello");
-hex("hello")
-68656C6C6F
-select hex(des_decrypt(des_encrypt("hello",4),'password2'));
-hex(des_decrypt(des_encrypt("hello",4),'password2'))
-NULL
-Warnings:
-Warning 1289 The 'des_decrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
-select hex(des_decrypt(des_encrypt("hello","hidden")));
-hex(des_decrypt(des_encrypt("hello","hidden")))
-NULL
-Warnings:
-Warning 1289 The 'des_decrypt' feature is disabled; you need MariaDB built with '--with-ssl' to have it working
diff --git a/mysql-test/r/func_encrypt_ucs2.result b/mysql-test/r/func_encrypt_ucs2.result
deleted file mode 100644
index 5ab3b08fb5d..00000000000
--- a/mysql-test/r/func_encrypt_ucs2.result
+++ /dev/null
@@ -1,19 +0,0 @@
-#
-# Bug#59648 my_strtoll10_mb2: Assertion `(*endptr - s) % 2 == 0' failed.
-#
-SELECT CHAR_LENGTH(DES_ENCRYPT(0, CHAR('1' USING ucs2)));
-CHAR_LENGTH(DES_ENCRYPT(0, CHAR('1' USING ucs2)))
-9
-SELECT CONVERT(DES_ENCRYPT(0, CHAR('1' USING ucs2)),UNSIGNED);
-CONVERT(DES_ENCRYPT(0, CHAR('1' USING ucs2)),UNSIGNED)
-0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '\xFFT\xDCiK\x92j\xE6\xFC'
-SELECT CHAR_LENGTH(DES_DECRYPT(0xFF0DC9FC9537CA75F4, CHAR('1' USING ucs2)));
-CHAR_LENGTH(DES_DECRYPT(0xFF0DC9FC9537CA75F4, CHAR('1' USING ucs2)))
-4
-SELECT CONVERT(DES_DECRYPT(0xFF0DC9FC9537CA75F4, CHAR('1' using ucs2)), UNSIGNED);
-CONVERT(DES_DECRYPT(0xFF0DC9FC9537CA75F4, CHAR('1' using ucs2)), UNSIGNED)
-0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'test'
diff --git a/mysql-test/r/func_equal.result b/mysql-test/r/func_equal.result
deleted file mode 100644
index f20b259191c..00000000000
--- a/mysql-test/r/func_equal.result
+++ /dev/null
@@ -1,45 +0,0 @@
-drop table if exists t1,t2;
-select 0<=>0,0.0<=>0.0,0E0=0E0,"A"<=>"A",NULL<=>NULL;
-0<=>0 0.0<=>0.0 0E0=0E0 "A"<=>"A" NULL<=>NULL
-1 1 1 1 1
-select 1<=>0,0<=>NULL,NULL<=>0;
-1<=>0 0<=>NULL NULL<=>0
-0 0 0
-select 1.0<=>0.0,0.0<=>NULL,NULL<=>0.0;
-1.0<=>0.0 0.0<=>NULL NULL<=>0.0
-0 0 0
-select "A"<=>"B","A"<=>NULL,NULL<=>"A";
-"A"<=>"B" "A"<=>NULL NULL<=>"A"
-0 0 0
-select 0<=>0.0, 0.0<=>0E0, 0E0<=>"0", 10.0<=>1E1, 10<=>10.0, 10<=>1E1;
-0<=>0.0 0.0<=>0E0 0E0<=>"0" 10.0<=>1E1 10<=>10.0 10<=>1E1
-1 1 1 1 1 1
-select 1.0<=>0E1,10<=>NULL,NULL<=>0.0, NULL<=>0E0;
-1.0<=>0E1 10<=>NULL NULL<=>0.0 NULL<=>0E0
-0 0 0 0
-create table t1 (id int, value int);
-create table t2 (id int, value int);
-insert into t1 values (1,null);
-insert into t2 values (1,null);
-select t1.*, t2.*, t1.value<=>t2.value from t1, t2 where t1.id=t2.id and t1.id=1;
-id value id value t1.value<=>t2.value
-1 NULL 1 NULL 1
-select * from t1 where id <=>id;
-id value
-1 NULL
-select * from t1 where value <=> value;
-id value
-1 NULL
-select * from t1 where id <=> value or value<=>id;
-id value
-drop table t1,t2;
-create table t1 (a bigint unsigned);
-insert into t1 values (4828532208463511553);
-select * from t1 where a = '4828532208463511553';
-a
-4828532208463511553
-select * from t1 where a in ('4828532208463511553');
-a
-4828532208463511553
-drop table t1;
-#End of 4.1 tests
diff --git a/mysql-test/r/func_gconcat.result b/mysql-test/r/func_gconcat.result
deleted file mode 100644
index 723a1952d79..00000000000
--- a/mysql-test/r/func_gconcat.result
+++ /dev/null
@@ -1,1382 +0,0 @@
-drop table if exists t1, t2;
-create table t1 (grp int, a bigint unsigned, c char(10) not null, d char(10) not null);
-insert into t1 values (1,1,"a","a");
-insert into t1 values (2,2,"b","a");
-insert into t1 values (2,3,"c","b");
-insert into t1 values (3,4,"E","a");
-insert into t1 values (3,5,"C","b");
-insert into t1 values (3,6,"D","b");
-insert into t1 values (3,7,"d","d");
-insert into t1 values (3,8,"d","d");
-insert into t1 values (3,9,"D","c");
-select grp,group_concat(c) from t1 group by grp;
-grp group_concat(c)
-1 a
-2 b,c
-3 E,C,D,d,d,D
-explain extended select grp,group_concat(c) from t1 group by grp;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 9 100.00 Using filesort
-Warnings:
-Note 1003 select `test`.`t1`.`grp` AS `grp`,group_concat(`test`.`t1`.`c` separator ',') AS `group_concat(c)` from `test`.`t1` group by `test`.`t1`.`grp`
-select grp,group_concat(a,c) from t1 group by grp;
-grp group_concat(a,c)
-1 1a
-2 2b,3c
-3 4E,5C,6D,7d,8d,9D
-select grp,group_concat("(",a,":",c,")") from t1 group by grp;
-grp group_concat("(",a,":",c,")")
-1 (1:a)
-2 (2:b),(3:c)
-3 (4:E),(5:C),(6:D),(7:d),(8:d),(9:D)
-select grp,group_concat(c separator ",") from t1 group by grp;
-grp group_concat(c separator ",")
-1 a
-2 b,c
-3 E,C,D,d,d,D
-select grp,group_concat(c separator "---->") from t1 group by grp;
-grp group_concat(c separator "---->")
-1 a
-2 b---->c
-3 E---->C---->D---->d---->d---->D
-select grp,group_concat(c order by c) from t1 group by grp;
-grp group_concat(c order by c)
-1 a
-2 b,c
-3 C,D,d,d,D,E
-select grp,group_concat(c order by c desc) from t1 group by grp;
-grp group_concat(c order by c desc)
-1 a
-2 c,b
-3 E,D,d,d,D,C
-select grp,group_concat(d order by a) from t1 group by grp;
-grp group_concat(d order by a)
-1 a
-2 a,b
-3 a,b,b,d,d,c
-select grp,group_concat(d order by a desc) from t1 group by grp;
-grp group_concat(d order by a desc)
-1 a
-2 b,a
-3 c,d,d,b,b,a
-select grp,group_concat(a order by a,d+c-ascii(c)-a) from t1 group by grp;
-grp group_concat(a order by a,d+c-ascii(c)-a)
-1 1
-2 2,3
-3 4,5,6,7,8,9
-select grp,group_concat(a order by d+c-ascii(c),a) from t1 group by grp;
-grp group_concat(a order by d+c-ascii(c),a)
-1 1
-2 3,2
-3 7,8,4,6,9,5
-select grp,group_concat(c order by 1) from t1 group by grp;
-grp group_concat(c order by 1)
-1 a
-2 b,c
-3 C,D,d,d,D,E
-select grp,group_concat(distinct c order by c) from t1 group by grp;
-grp group_concat(distinct c order by c)
-1 a
-2 b,c
-3 C,D,E
-select grp,group_concat(distinct c order by c desc) from t1 group by grp;
-grp group_concat(distinct c order by c desc)
-1 a
-2 c,b
-3 E,D,C
-explain extended select grp,group_concat(distinct c order by c desc) from t1 group by grp;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 9 100.00 Using filesort
-Warnings:
-Note 1003 select `test`.`t1`.`grp` AS `grp`,group_concat(distinct `test`.`t1`.`c` order by `test`.`t1`.`c` DESC separator ',') AS `group_concat(distinct c order by c desc)` from `test`.`t1` group by `test`.`t1`.`grp`
-select grp,group_concat(c order by c separator ",") from t1 group by grp;
-grp group_concat(c order by c separator ",")
-1 a
-2 b,c
-3 C,D,d,d,D,E
-select grp,group_concat(c order by c desc separator ",") from t1 group by grp;
-grp group_concat(c order by c desc separator ",")
-1 a
-2 c,b
-3 E,D,d,d,D,C
-select grp,group_concat(distinct c order by c separator ",") from t1 group by grp;
-grp group_concat(distinct c order by c separator ",")
-1 a
-2 b,c
-3 C,D,E
-explain extended select grp,group_concat(distinct c order by c separator ",") from t1 group by grp;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 9 100.00 Using filesort
-Warnings:
-Note 1003 select `test`.`t1`.`grp` AS `grp`,group_concat(distinct `test`.`t1`.`c` order by `test`.`t1`.`c` ASC separator ',') AS `group_concat(distinct c order by c separator ",")` from `test`.`t1` group by `test`.`t1`.`grp`
-select grp,group_concat(distinct c order by c desc separator ",") from t1 group by grp;
-grp group_concat(distinct c order by c desc separator ",")
-1 a
-2 c,b
-3 E,D,C
-select grp,group_concat(c order by grp desc) from t1 group by grp order by grp;
-grp group_concat(c order by grp desc)
-1 a
-2 c,b
-3 D,d,d,D,C,E
-select grp, group_concat(a separator "")+0 from t1 group by grp;
-grp group_concat(a separator "")+0
-1 1
-2 23
-3 456789
-select grp, group_concat(a separator "")+0.0 from t1 group by grp;
-grp group_concat(a separator "")+0.0
-1 1.0
-2 23.0
-3 456789.0
-select grp, ROUND(group_concat(a separator "")) from t1 group by grp;
-grp ROUND(group_concat(a separator ""))
-1 1
-2 23
-3 456789
-drop table t1;
-create table t1 (grp int, c char(10));
-insert into t1 values (1,NULL),(2,"b"),(2,NULL),(3,"E"),(3,NULL),(3,"D"),(3,NULL),(3,NULL),(3,"D"),(4,""),(5,NULL);
-select grp,group_concat(c order by c) from t1 group by grp;
-grp group_concat(c order by c)
-1 NULL
-2 b
-3 D,D,E
-4
-5 NULL
-set group_concat_max_len = 4;
-select grp,group_concat(c) from t1 group by grp;
-grp group_concat(c)
-1 NULL
-2 b
-3 D,D,
-4
-5 NULL
-Warnings:
-Warning 1260 Row 4 was cut by GROUP_CONCAT()
-show warnings;
-Level Code Message
-Warning 1260 Row 4 was cut by GROUP_CONCAT()
-set group_concat_max_len = 1024;
-select group_concat(sum(c)) from t1 group by grp;
-ERROR HY000: Invalid use of group function
-select grp,group_concat(c order by 2) from t1 group by grp;
-ERROR 42S22: Unknown column '2' in 'order clause'
-drop table t1;
-create table t1 ( URL_ID int(11), URL varchar(80));
-create table t2 ( REQ_ID int(11), URL_ID int(11));
-insert into t1 values (4,'www.host.com'), (5,'www.google.com'),(5,'www.help.com');
-insert into t2 values (1,4), (5,4), (5,5);
-select REQ_ID, Group_Concat(URL) as URL from t1, t2 where
-t2.URL_ID = t1.URL_ID group by REQ_ID;
-REQ_ID URL
-1 X
-5 X,X,X
-select REQ_ID, Group_Concat(URL) as URL, Min(t1.URL_ID) urll,
-Max(t1.URL_ID) urlg from t1, t2 where t2.URL_ID = t1.URL_ID group by REQ_ID;
-REQ_ID URL urll urlg
-1 X 4 4
-5 X,X,X 4 5
-drop table t1;
-drop table t2;
-create table t1 (id int, name varchar(16));
-insert into t1 values (1,'longername'),(1,'evenlongername');
-select ifnull(group_concat(concat(t1.id, ':', t1.name)), 'shortname') as 'without distinct: how it should be' from t1;
-without distinct: how it should be
-1:longername,1:evenlongername
-select distinct ifnull(group_concat(concat(t1.id, ':', t1.name)), 'shortname') as 'with distinct: cutoff at length of shortname' from t1;
-with distinct: cutoff at length of shortname
-1:longername,1:evenlongername
-drop table t1;
-create table t1(id int);
-create table t2(id int);
-insert into t1 values(0),(1);
-select group_concat(t1.id) FROM t1,t2;
-group_concat(t1.id)
-NULL
-drop table t1;
-drop table t2;
-create table t1 (bar varchar(32));
-insert into t1 values('test1'),('test2');
-select group_concat(bar order by concat(bar,bar)) from t1;
-group_concat(bar order by concat(bar,bar))
-test1,test2
-select group_concat(bar order by concat(bar,bar) desc) from t1;
-group_concat(bar order by concat(bar,bar) desc)
-test2,test1
-select bar from t1 having group_concat(bar)='';
-bar
-select bar from t1 having instr(group_concat(bar), "test") > 0;
-bar
-test1
-select bar from t1 having instr(group_concat(bar order by concat(bar,bar) desc), "test2,test1") > 0;
-bar
-test1
-drop table t1;
-create table t1 (a int, a1 varchar(10));
-create table t2 (a0 int);
-insert into t1 values (0,"a"),(0,"b"),(1,"c");
-insert into t2 values (1),(2),(3);
-select group_concat(a1 order by (t1.a IN (select a0 from t2))) from t1;
-group_concat(a1 order by (t1.a IN (select a0 from t2)))
-b,a,c
-select group_concat(a1 order by (t1.a)) from t1;
-group_concat(a1 order by (t1.a))
-b,a,c
-drop table t1, t2;
-CREATE TABLE t1 (id1 tinyint(4) NOT NULL, id2 tinyint(4) NOT NULL);
-INSERT INTO t1 VALUES (1, 1),(1, 2),(1, 3),(1, 4),(1, 5),(2, 1),(2, 2),(2, 3);
-CREATE TABLE t2 (id1 tinyint(4) NOT NULL);
-INSERT INTO t2 VALUES (1),(2),(3),(4),(5);
-SELECT t1.id1, GROUP_CONCAT(t1.id2 ORDER BY t1.id2 ASC) AS concat_id FROM t1, t2 WHERE t1.id1 = t2.id1 AND t1.id1=1 GROUP BY t1.id1;
-id1 concat_id
-1 1,2,3,4,5
-SELECT t1.id1, GROUP_CONCAT(t1.id2 ORDER BY t1.id2 ASC) AS concat_id FROM t1, t2 WHERE t1.id1 = t2.id1 GROUP BY t1.id1;
-id1 concat_id
-1 1,2,3,4,5
-2 1,2,3
-SELECT t1.id1, GROUP_CONCAT(t1.id2 ORDER BY t1.id2 DESC) AS concat_id FROM t1, t2 WHERE t1.id1 = t2.id1 GROUP BY t1.id1;
-id1 concat_id
-1 5,4,3,2,1
-2 3,2,1
-SELECT t1.id1, GROUP_CONCAT(t1.id2 ORDER BY 6-t1.id2 ASC) AS concat_id FROM t1, t2 WHERE t1.id1 = t2.id1 GROUP BY t1.id1;
-id1 concat_id
-1 5,4,3,2,1
-2 3,2,1
-SELECT t1.id1, GROUP_CONCAT(t1.id2,6-t1.id2 ORDER BY 6-t1.id2 ASC) AS concat_id FROM t1, t2 WHERE t1.id1 = t2.id1 GROUP BY t1.id1;
-id1 concat_id
-1 51,42,33,24,15
-2 33,24,15
-SELECT t1.id1, GROUP_CONCAT(t1.id2,6-t1.id2 ORDER BY 6-t1.id2 ASC) AS concat_id FROM t1, t2 WHERE t1.id1 = t2.id1 GROUP BY t1.id1;
-id1 concat_id
-1 51,42,33,24,15
-2 33,24,15
-SELECT t1.id1, GROUP_CONCAT(t1.id2,"/",6-t1.id2 ORDER BY 1+0,6-t1.id2,t1.id2 ASC) AS concat_id FROM t1, t2 WHERE t1.id1 = t2.id1 GROUP BY t1.id1;
-id1 concat_id
-1 5/1,4/2,3/3,2/4,1/5
-2 3/3,2/4,1/5
-drop table t1,t2;
-create table t1 (s1 char(10), s2 int not null);
-insert into t1 values ('a',2),('b',2),('c',1),('a',3),('b',4),('c',4);
-select distinct s1 from t1 order by s2,s1;
-s1
-c
-a
-b
-select group_concat(distinct s1) from t1;
-group_concat(distinct s1)
-a,b,c
-select group_concat(distinct s1 order by s2) from t1 where s2 < 4;
-group_concat(distinct s1 order by s2)
-c,b,a
-select group_concat(distinct s1 order by s2) from t1;
-group_concat(distinct s1 order by s2)
-c,b,a
-drop table t1;
-create table t1 (a int, c int);
-insert into t1 values (1, 2), (2, 3), (2, 4), (3, 5);
-create table t2 (a int, c int);
-insert into t2 values (1, 5), (2, 4), (3, 3), (3,3);
-select group_concat(c) from t1;
-group_concat(c)
-2,3,4,5
-select group_concat(c order by (select c from t2 where t2.a=t1.a limit 1)) as grp from t1;
-grp
-5,4,3,2
-select group_concat(c order by (select mid(group_concat(c order by a),1,5) from t2 where t2.a=t1.a)) as grp from t1;
-grp
-5,4,3,2
-select group_concat(c order by (select mid(group_concat(c order by a),1,5) from t2 where t2.a=t1.a) desc) as grp from t1;
-grp
-2,4,3,5
-select t1.a, group_concat(c order by (select c from t2 where t2.a=t1.a limit 1)) as grp from t1 group by 1;
-a grp
-1 2
-2 4,3
-3 5
-select t1.a, group_concat(c order by (select mid(group_concat(c order by a),1,5) from t2 where t2.a=t1.a)) as grp from t1 group by 1;
-a grp
-1 2
-2 4,3
-3 5
-select t1.a, group_concat(c order by (select mid(group_concat(c order by a),1,5) from t2 where t2.a=t1.a) desc) as grp from t1 group by 1;
-a grp
-1 2
-2 4,3
-3 5
-select group_concat(c order by (select concat(5-t1.c,group_concat(c order by a)) from t2 where t2.a=t1.a)) as grp from t1;
-grp
-5,4,3,2
-select group_concat(c order by (select concat(t1.c,group_concat(c)) from t2 where a=t1.a)) as grp from t1;
-grp
-2,3,4,5
-select a,c,(select group_concat(c order by a) from t2 where a=t1.a) as grp from t1 order by grp;
-a c grp
-3 5 3,3
-2 3 4
-2 4 4
-1 2 5
-drop table t1,t2;
-CREATE TABLE t1 ( a int );
-CREATE TABLE t2 ( a int );
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (1), (2);
-SELECT GROUP_CONCAT(t1.a*t2.a ORDER BY t2.a) FROM t1, t2 GROUP BY t1.a;
-GROUP_CONCAT(t1.a*t2.a ORDER BY t2.a)
-1,2
-2,4
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a char(4));
-INSERT INTO t1 VALUES ('John'), ('Anna'), ('Bill');
-SELECT GROUP_CONCAT(a SEPARATOR '||') AS names FROM t1
-HAVING names LIKE '%An%';
-names
-John||Anna||Bill
-SELECT GROUP_CONCAT(a SEPARATOR '###') AS names FROM t1
-HAVING LEFT(names, 1) ='J';
-names
-John###Anna###Bill
-DROP TABLE t1;
-CREATE TABLE t1 ( a int, b TEXT );
-INSERT INTO t1 VALUES (1,'First Row'), (2,'Second Row');
-SELECT GROUP_CONCAT(b ORDER BY b) FROM t1 GROUP BY a;
-GROUP_CONCAT(b ORDER BY b)
-First Row
-Second Row
-DROP TABLE t1;
-CREATE TABLE t1 (A_ID INT NOT NULL,A_DESC CHAR(3) NOT NULL,PRIMARY KEY (A_ID));
-INSERT INTO t1 VALUES (1,'ABC'), (2,'EFG'), (3,'HIJ');
-CREATE TABLE t2 (A_ID INT NOT NULL,B_DESC CHAR(3) NOT NULL,PRIMARY KEY (A_ID,B_DESC));
-INSERT INTO t2 VALUES (1,'A'),(1,'B'),(3,'F');
-SELECT t1.A_ID, GROUP_CONCAT(t2.B_DESC) AS B_DESC FROM t1 LEFT JOIN t2 ON t1.A_ID=t2.A_ID GROUP BY t1.A_ID ORDER BY t1.A_DESC;
-A_ID B_DESC
-1 A,B
-2 NULL
-3 F
-DROP TABLE t1;
-DROP TABLE t2;
-create table t1 (a int, b text);
-insert into t1 values (1, 'bb'), (1, 'ccc'), (1, 'a'), (1, 'bb'), (1, 'ccc');
-insert into t1 values (2, 'BB'), (2, 'CCC'), (2, 'A'), (2, 'BB'), (2, 'CCC');
-select group_concat(b) from t1 group by a;
-group_concat(b)
-bb,ccc,a,bb,ccc
-BB,CCC,A,BB,CCC
-select group_concat(distinct b) from t1 group by a;
-group_concat(distinct b)
-bb,ccc,a
-BB,CCC,A
-select group_concat(b order by b) from t1 group by a;
-group_concat(b order by b)
-a,bb,bb,ccc,ccc
-A,BB,BB,CCC,CCC
-select group_concat(distinct b order by b) from t1 group by a;
-group_concat(distinct b order by b)
-a,bb,ccc
-A,BB,CCC
-set local group_concat_max_len=4;
-select group_concat(b) from t1 group by a;
-group_concat(b)
-bb,c
-BB,C
-Warnings:
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 4 was cut by GROUP_CONCAT()
-select group_concat(distinct b) from t1 group by a;
-group_concat(distinct b)
-bb,c
-BB,C
-Warnings:
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 4 was cut by GROUP_CONCAT()
-select group_concat(b order by b) from t1 group by a;
-group_concat(b order by b)
-a,bb
-A,BB
-Warnings:
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-Warning 1260 Row 6 was cut by GROUP_CONCAT()
-select group_concat(distinct b order by b) from t1 group by a;
-group_concat(distinct b order by b)
-a,bb
-A,BB
-Warnings:
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-Warning 1260 Row 6 was cut by GROUP_CONCAT()
-insert into t1 values (1, concat(repeat('1', 300), '2')),
-(1, concat(repeat('1', 300), '2')), (1, concat(repeat('0', 300), '1')),
-(2, concat(repeat('1', 300), '2')), (2, concat(repeat('1', 300), '2')),
-(2, concat(repeat('0', 300), '1'));
-set local group_concat_max_len=1024;
-select group_concat(b) from t1 group by a;
-group_concat(b)
-bb,ccc,a,bb,ccc,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
-BB,CCC,A,BB,CCC,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
-select group_concat(distinct b) from t1 group by a;
-group_concat(distinct b)
-bb,ccc,a,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
-BB,CCC,A,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
-select group_concat(b order by b) from t1 group by a;
-group_concat(b order by b)
-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,a,bb,bb,ccc,ccc
-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,A,BB,BB,CCC,CCC
-select group_concat(distinct b order by b) from t1 group by a;
-group_concat(distinct b order by b)
-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,a,bb,ccc
-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,A,BB,CCC
-set local group_concat_max_len=400;
-select group_concat(b) from t1 group by a;
-group_concat(b)
-bb,ccc,a,bb,ccc,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,1111111111111111111111111111111111111111111111111111111111111111111111111111111111
-BB,CCC,A,BB,CCC,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,1111111111111111111111111111111111111111111111111111111111111111111111111111111111
-Warnings:
-Warning 1260 Row 7 was cut by GROUP_CONCAT()
-Warning 1260 Row 14 was cut by GROUP_CONCAT()
-select group_concat(distinct b) from t1 group by a;
-group_concat(distinct b)
-bb,ccc,a,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-BB,CCC,A,1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-Warnings:
-Warning 1260 Row 5 was cut by GROUP_CONCAT()
-Warning 1260 Row 10 was cut by GROUP_CONCAT()
-select group_concat(b order by b) from t1 group by a;
-group_concat(b order by b)
-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001,11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001,11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
-Warnings:
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 4 was cut by GROUP_CONCAT()
-select group_concat(distinct b order by b) from t1 group by a;
-group_concat(distinct b order by b)
-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001,11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001,11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
-Warnings:
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 4 was cut by GROUP_CONCAT()
-drop table t1;
-create table t1 (a varchar(255) character set cp1250 collate cp1250_general_ci,
-b varchar(255) character set koi8r);
-insert into t1 values ('xxx','yyy');
-select collation(a) from t1;
-collation(a)
-cp1250_general_ci
-select collation(group_concat(a)) from t1;
-collation(group_concat(a))
-cp1250_general_ci
-create table t2 select group_concat(a) as a from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(400) CHARACTER SET cp1250 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select collation(group_concat(a,_koi8r'test')) from t1;
-collation(group_concat(a,_koi8r'test'))
-cp1250_general_ci
-select collation(group_concat(a,_koi8r 0xC1C2)) from t1;
-ERROR HY000: Illegal mix of collations (cp1250_general_ci,IMPLICIT) and (koi8r_general_ci,COERCIBLE) for operation 'group_concat('
-select collation(group_concat(a,b)) from t1;
-ERROR HY000: Illegal mix of collations (cp1250_general_ci,IMPLICIT) and (koi8r_general_ci,IMPLICIT) for operation 'group_concat('
-drop table t1;
-drop table t2;
-CREATE TABLE t1 (a CHAR(10) CHARACTER SET cp850);
-INSERT INTO t1 VALUES ('À');
-SELECT a FROM t1;
-a
-SELECT GROUP_CONCAT(a) FROM t1;
-GROUP_CONCAT(a)
-DROP TABLE t1;
-CREATE TABLE t1 (id int);
-SELECT GROUP_CONCAT(id) AS gc FROM t1 HAVING gc IS NULL;
-gc
-NULL
-DROP TABLE t1;
-create table t2 (a int, b int);
-insert into t2 values (1,1), (2,2);
-select b x, (select group_concat(x) from t2) from t2;
-x (select group_concat(x) from t2)
-1 1,1
-2 2,2
-drop table t2;
-create table t1 (d int not null auto_increment,primary key(d), a int, b int, c int);
-insert into t1(a,b) values (1,3), (1,4), (1,2), (2,7), (1,1), (1,2), (2,3), (2,3);
-select d,a,b from t1 order by a;
-d a b
-1 1 3
-2 1 4
-3 1 2
-5 1 1
-6 1 2
-4 2 7
-7 2 3
-8 2 3
-explain select a, group_concat(b) from t1 group by a with rollup;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using filesort
-select a, group_concat(b) from t1 group by a with rollup;
-a group_concat(b)
-1 3,4,2,1,2
-2 7,3,3
-NULL 3,4,2,1,2,7,3,3
-select a, group_concat(distinct b) from t1 group by a with rollup;
-a group_concat(distinct b)
-1 3,4,2,1
-2 7,3
-NULL 3,4,2,1,7
-select a, group_concat(b order by b) from t1 group by a with rollup;
-a group_concat(b order by b)
-1 1,2,2,3,4
-2 3,3,7
-NULL 1,2,2,3,3,3,4,7
-select a, group_concat(distinct b order by b) from t1 group by a with rollup;
-a group_concat(distinct b order by b)
-1 1,2,3,4
-2 3,7
-NULL 1,2,3,4,7
-drop table t1;
-create table t1 (a char(3), b char(20), primary key (a, b));
-insert into t1 values ('ABW', 'Dutch'), ('ABW', 'English');
-select group_concat(a) from t1 group by b;
-group_concat(a)
-ABW
-ABW
-drop table t1;
-CREATE TABLE t1 (
-aID smallint(5) unsigned NOT NULL auto_increment,
-sometitle varchar(255) NOT NULL default '',
-bID smallint(5) unsigned NOT NULL,
-PRIMARY KEY (aID),
-UNIQUE KEY sometitle (sometitle)
-);
-INSERT INTO t1 SET sometitle = 'title1', bID = 1;
-INSERT INTO t1 SET sometitle = 'title2', bID = 1;
-CREATE TABLE t2 (
-bID smallint(5) unsigned NOT NULL auto_increment,
-somename varchar(255) NOT NULL default '',
-PRIMARY KEY (bID),
-UNIQUE KEY somename (somename)
-);
-INSERT INTO t2 SET somename = 'test';
-SELECT COUNT(*), GROUP_CONCAT(DISTINCT t2.somename SEPARATOR ' |')
-FROM t1 JOIN t2 ON t1.bID = t2.bID;
-COUNT(*) GROUP_CONCAT(DISTINCT t2.somename SEPARATOR ' |')
-2 test
-INSERT INTO t2 SET somename = 'test2';
-SELECT COUNT(*), GROUP_CONCAT(DISTINCT t2.somename SEPARATOR ' |')
-FROM t1 JOIN t2 ON t1.bID = t2.bID;
-COUNT(*) GROUP_CONCAT(DISTINCT t2.somename SEPARATOR ' |')
-2 test
-DELETE FROM t2 WHERE somename = 'test2';
-SELECT COUNT(*), GROUP_CONCAT(DISTINCT t2.somename SEPARATOR ' |')
-FROM t1 JOIN t2 ON t1.bID = t2.bID;
-COUNT(*) GROUP_CONCAT(DISTINCT t2.somename SEPARATOR ' |')
-2 test
-DROP TABLE t1,t2;
-select * from (select group_concat('c') from DUAL) t;
-group_concat('c')
-c
-create table t1 ( a int not null default 0);
-select * from (select group_concat(a) from t1) t2;
-group_concat(a)
-NULL
-select group_concat('x') UNION ALL select 1;
-group_concat('x')
-x
-1
-drop table t1;
-CREATE TABLE t1 (id int, a varchar(9));
-INSERT INTO t1 VALUES
-(2, ''), (1, ''), (2, 'x'), (1, 'y'), (3, 'z'), (3, '');
-SELECT GROUP_CONCAT(a) FROM t1;
-GROUP_CONCAT(a)
-,,x,y,z,
-SELECT GROUP_CONCAT(a ORDER BY a) FROM t1;
-GROUP_CONCAT(a ORDER BY a)
-,,,x,y,z
-SELECT GROUP_CONCAT(a) FROM t1 GROUP BY id;
-GROUP_CONCAT(a)
-,y
-,x
-z,
-SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY id;
-GROUP_CONCAT(a ORDER BY a)
-,y
-,x
-,z
-DROP TABLE t1;
-create table t1(f1 int);
-insert into t1 values(1),(2),(3);
-select f1, group_concat(f1+1) from t1 group by f1 with rollup;
-f1 group_concat(f1+1)
-1 2
-2 3
-3 4
-NULL 2,3,4
-select count(distinct (f1+1)) from t1 group by f1 with rollup;
-count(distinct (f1+1))
-1
-1
-1
-3
-drop table t1;
-create table t1 (f1 int unsigned, f2 varchar(255));
-insert into t1 values (1,repeat('a',255)),(2,repeat('b',255));
-select f2,group_concat(f1) from t1 group by f2;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 f2 f2 253 255 255 Y 0 0 8
-def group_concat(f1) 253 400 1 Y 0 0 8
-f2 group_concat(f1)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 1
-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 2
-drop table t1;
-set names latin1;
-create table t1 (a char, b char);
-insert into t1 values ('a', 'a'), ('a', 'b'), ('b', 'a'), ('b', 'b');
-create table t2 select group_concat(b) as a from t1 where a = 'a';
-create table t3 (select group_concat(a) as a from t1 where a = 'a') union
-(select group_concat(b) as a from t1 where a = 'b');
-select charset(a) from t2;
-charset(a)
-latin1
-select charset(a) from t3;
-charset(a)
-latin1
-latin1
-drop table t1, t2, t3;
-set names default;
-create table t1 (c1 varchar(10), c2 int);
-select charset(group_concat(c1 order by c2)) from t1;
-charset(group_concat(c1 order by c2))
-latin1
-drop table t1;
-CREATE TABLE t1 (a INT(10), b LONGTEXT, PRIMARY KEY (a));
-SET GROUP_CONCAT_MAX_LEN = 20000000;
-INSERT INTO t1 VALUES (1,REPEAT(CONCAT('A',CAST(CHAR(0) AS BINARY),'B'), 40000));
-INSERT INTO t1 SELECT a + 1, b FROM t1;
-SELECT a, CHAR_LENGTH(b) FROM t1;
-a CHAR_LENGTH(b)
-1 120000
-2 120000
-SELECT CHAR_LENGTH( GROUP_CONCAT(b) ) FROM t1;
-CHAR_LENGTH( GROUP_CONCAT(b) )
-240001
-SET GROUP_CONCAT_MAX_LEN = 1024;
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (2,1), (1,2), (2,2), (1,3);
-SELECT GROUP_CONCAT(a), x
-FROM (SELECT a, GROUP_CONCAT(b) x FROM t1 GROUP BY a) AS s
-GROUP BY x;
-GROUP_CONCAT(a) x
-2 1,2
-1 2,3
-DROP TABLE t1;
-set names utf8;
-create table t1
-(
-x text character set utf8 not null,
-y integer not null
-);
-insert into t1 values (repeat('a', 1022), 0), (repeat(_utf8 0xc3b7, 4), 0);
-set group_concat_max_len= 1022 + 10;
-select @x:=group_concat(x) from t1 group by y;
-select @@group_concat_max_len, length(@x), char_length(@x), right(@x,12), right(HEX(@x),12);
-@@group_concat_max_len length(@x) char_length(@x) right(@x,12) right(HEX(@x),12)
-1032 1031 1027 aaaaaaa,÷÷÷÷ C3B7C3B7C3B7
-set group_concat_max_len= 1022 + 9;
-select @x:=group_concat(x) from t1 group by y;
-select @@group_concat_max_len, length(@x), char_length(@x), right(@x,12), right(HEX(@x),12);
-@@group_concat_max_len length(@x) char_length(@x) right(@x,12) right(HEX(@x),12)
-1031 1031 1027 aaaaaaa,÷÷÷÷ C3B7C3B7C3B7
-set group_concat_max_len= 1022 + 8;
-select @x:=group_concat(x) from t1 group by y;
-select @@group_concat_max_len, length(@x), char_length(@x), right(@x,12), right(HEX(@x),12);
-@@group_concat_max_len length(@x) char_length(@x) right(@x,12) right(HEX(@x),12)
-1030 1029 1026 aaaaaaaa,÷÷÷ C3B7C3B7C3B7
-set group_concat_max_len= 1022 + 7;
-select @x:=group_concat(x) from t1 group by y;
-select @@group_concat_max_len, length(@x), char_length(@x), right(@x,12), right(HEX(@x),12);
-@@group_concat_max_len length(@x) char_length(@x) right(@x,12) right(HEX(@x),12)
-1029 1029 1026 aaaaaaaa,÷÷÷ C3B7C3B7C3B7
-set group_concat_max_len= 1022 + 6;
-select @x:=group_concat(x) from t1 group by y;
-select @@group_concat_max_len, length(@x), char_length(@x), right(@x,12), right(HEX(@x),12);
-@@group_concat_max_len length(@x) char_length(@x) right(@x,12) right(HEX(@x),12)
-1028 1027 1025 aaaaaaaaa,÷÷ 612CC3B7C3B7
-set group_concat_max_len= 1022 + 5;
-select @x:=group_concat(x) from t1 group by y;
-select @@group_concat_max_len, length(@x), char_length(@x), right(@x,12), right(HEX(@x),12);
-@@group_concat_max_len length(@x) char_length(@x) right(@x,12) right(HEX(@x),12)
-1027 1027 1025 aaaaaaaaa,÷÷ 612CC3B7C3B7
-set group_concat_max_len= 1022 + 4;
-select @x:=group_concat(x) from t1 group by y;
-select @@group_concat_max_len, length(@x), char_length(@x), right(@x,12), right(HEX(@x),12);
-@@group_concat_max_len length(@x) char_length(@x) right(@x,12) right(HEX(@x),12)
-1026 1025 1024 aaaaaaaaaa,÷ 6161612CC3B7
-set group_concat_max_len= 1022 + 3;
-select @x:=group_concat(x) from t1 group by y;
-select @@group_concat_max_len, length(@x), char_length(@x), right(@x,12), right(HEX(@x),12);
-@@group_concat_max_len length(@x) char_length(@x) right(@x,12) right(HEX(@x),12)
-1025 1025 1024 aaaaaaaaaa,÷ 6161612CC3B7
-set group_concat_max_len= 1022 + 2;
-select @x:=group_concat(x) from t1 group by y;
-select @@group_concat_max_len, length(@x), char_length(@x), right(@x,12), right(HEX(@x),12);
-@@group_concat_max_len length(@x) char_length(@x) right(@x,12) right(HEX(@x),12)
-1024 1023 1023 aaaaaaaaaaa, 61616161612C
-set group_concat_max_len= 1022 + 1;
-select @x:=group_concat(x) from t1 group by y;
-select @@group_concat_max_len, length(@x), char_length(@x), right(@x,12), right(HEX(@x),12);
-@@group_concat_max_len length(@x) char_length(@x) right(@x,12) right(HEX(@x),12)
-1023 1023 1023 aaaaaaaaaaa, 61616161612C
-drop table t1;
-set group_concat_max_len=1024;
-set names latin1;
-create table t1 (f1 int unsigned, f2 varchar(255));
-insert into t1 values (1,repeat('a',255)),(2,repeat('b',255));
-select f2,group_concat(f1) from t1 group by f2;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 f2 f2 253 255 255 Y 0 0 8
-def group_concat(f1) 252 1024 1 Y 0 0 8
-f2 group_concat(f1)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 1
-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 2
-drop table t1;
-CREATE TABLE t1(a TEXT, b CHAR(20));
-INSERT INTO t1 VALUES ("one.1","one.1"),("two.2","two.2"),("one.3","one.3");
-SELECT GROUP_CONCAT(DISTINCT UCASE(a)) FROM t1;
-GROUP_CONCAT(DISTINCT UCASE(a))
-ONE.1,TWO.2,ONE.3
-SELECT GROUP_CONCAT(DISTINCT UCASE(b)) FROM t1;
-GROUP_CONCAT(DISTINCT UCASE(b))
-ONE.1,TWO.2,ONE.3
-DROP TABLE t1;
-CREATE TABLE t1( a VARCHAR( 10 ), b INT );
-INSERT INTO t1 VALUES ( repeat( 'a', 10 ), 1),
-( repeat( 'b', 10 ), 2);
-SET group_concat_max_len = 20;
-SELECT GROUP_CONCAT( a ) FROM t1;
-GROUP_CONCAT( a )
-aaaaaaaaaa,bbbbbbbbb
-Warnings:
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-SELECT GROUP_CONCAT( DISTINCT a ) FROM t1;
-GROUP_CONCAT( DISTINCT a )
-aaaaaaaaaa,bbbbbbbbb
-Warnings:
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-SELECT GROUP_CONCAT( a ORDER BY b ) FROM t1;
-GROUP_CONCAT( a ORDER BY b )
-aaaaaaaaaa,bbbbbbbbb
-Warnings:
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-SELECT GROUP_CONCAT( DISTINCT a ORDER BY b ) FROM t1;
-GROUP_CONCAT( DISTINCT a ORDER BY b )
-aaaaaaaaaa,bbbbbbbbb
-Warnings:
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-SET group_concat_max_len = DEFAULT;
-DROP TABLE t1;
-SET group_concat_max_len= 65535;
-CREATE TABLE t1( a TEXT, b INTEGER );
-INSERT INTO t1 VALUES ( 'a', 0 ), ( 'b', 1 );
-SELECT GROUP_CONCAT( a ORDER BY b ) FROM t1;
-GROUP_CONCAT( a ORDER BY b )
-a,b
-SELECT GROUP_CONCAT(DISTINCT a ORDER BY b) FROM t1;
-GROUP_CONCAT(DISTINCT a ORDER BY b)
-a,b
-SELECT GROUP_CONCAT(DISTINCT a) FROM t1;
-GROUP_CONCAT(DISTINCT a)
-a,b
-SET group_concat_max_len= 10;
-SELECT GROUP_CONCAT(a ORDER BY b) FROM t1;
-GROUP_CONCAT(a ORDER BY b)
-a,b
-SELECT GROUP_CONCAT(DISTINCT a ORDER BY b) FROM t1;
-GROUP_CONCAT(DISTINCT a ORDER BY b)
-a,b
-SELECT GROUP_CONCAT(DISTINCT a) FROM t1;
-GROUP_CONCAT(DISTINCT a)
-a,b
-SET group_concat_max_len= 65535;
-CREATE TABLE t2( a TEXT );
-INSERT INTO t2 VALUES( REPEAT( 'a', 5000 ) );
-INSERT INTO t2 VALUES( REPEAT( 'b', 5000 ) );
-INSERT INTO t2 VALUES( REPEAT( 'a', 5000 ) );
-SELECT LENGTH( GROUP_CONCAT( DISTINCT a ) ) FROM t2;
-LENGTH( GROUP_CONCAT( DISTINCT a ) )
-10001
-CREATE TABLE t3( a TEXT, b INT );
-INSERT INTO t3 VALUES( REPEAT( 'a', 65534 ), 1 );
-INSERT INTO t3 VALUES( REPEAT( 'a', 65535 ), 2 );
-INSERT IGNORE INTO t3 VALUES( REPEAT( 'a', 65536 ), 3 );
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT LENGTH( GROUP_CONCAT( a ) ) FROM t3 WHERE b = 1;
-LENGTH( GROUP_CONCAT( a ) )
-65534
-SELECT LENGTH( GROUP_CONCAT( a ) ) FROM t3 WHERE b = 2;
-LENGTH( GROUP_CONCAT( a ) )
-65535
-SELECT LENGTH( GROUP_CONCAT( a ) ) FROM t3 WHERE b = 3;
-LENGTH( GROUP_CONCAT( a ) )
-65535
-SET group_concat_max_len= DEFAULT;
-DROP TABLE t1, t2, t3;
-set names latin1;
-create table t1 (id int, name varchar(20)) DEFAULT CHARSET=utf8;
-insert into t1 (id, name) values (1, "óra");
-insert into t1 (id, name) values (2, "óra");
-select b.id, group_concat(b.name) from t1 a, t1 b group by b.id;
-id group_concat(b.name)
-1 óra,óra
-2 óra,óra
-drop table t1;
-create table t1(a bit not null);
-insert ignore into t1 values (), (), ();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-select group_concat(distinct a) from t1;
-group_concat(distinct a)
-0
-select group_concat(distinct a order by a) from t1;
-group_concat(distinct a order by a)
-0
-drop table t1;
-create table t1(a bit(2) not null);
-insert into t1 values (1), (0), (0), (3), (1);
-select group_concat(distinct a) from t1;
-group_concat(distinct a)
-1,0,3
-select group_concat(distinct a order by a) from t1;
-group_concat(distinct a order by a)
-0,1,3
-select group_concat(distinct a order by a desc) from t1;
-group_concat(distinct a order by a desc)
-3,1,0
-drop table t1;
-create table t1(a bit(2), b varchar(10), c bit);
-insert into t1 values (1, 'a', 0), (0, 'b', 1), (0, 'c', 0), (3, 'd', 1),
-(1, 'e', 1), (3, 'f', 1), (0, 'g', 1);
-select group_concat(distinct a, c) from t1;
-group_concat(distinct a, c)
-10,01,00,31,11
-select group_concat(distinct a, c order by a) from t1;
-group_concat(distinct a, c order by a)
-00,01,11,10,31
-select group_concat(distinct a, c) from t1;
-group_concat(distinct a, c)
-10,01,00,31,11
-select group_concat(distinct a, c order by a, c) from t1;
-group_concat(distinct a, c order by a, c)
-00,01,10,11,31
-select group_concat(distinct a, c order by a desc, c desc) from t1;
-group_concat(distinct a, c order by a desc, c desc)
-31,11,10,01,00
-drop table t1;
-create table t1 (f1 char(20));
-insert into t1 values (''),('');
-select group_concat(distinct f1) from t1;
-group_concat(distinct f1)
-
-select group_concat(f1) from t1;
-group_concat(f1)
-,
-drop table t1;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1, 1), (2, 2), (2, 3);
-SELECT GROUP_CONCAT(DISTINCT a ORDER BY b) FROM t1;
-GROUP_CONCAT(DISTINCT a ORDER BY b)
-1,2
-SELECT GROUP_CONCAT(DISTINCT a ORDER BY b DESC) FROM t1;
-GROUP_CONCAT(DISTINCT a ORDER BY b DESC)
-2,1
-SELECT GROUP_CONCAT(DISTINCT a) FROM t1;
-GROUP_CONCAT(DISTINCT a)
-1,2
-SELECT GROUP_CONCAT(DISTINCT a + 1 ORDER BY 3 - b) FROM t1;
-GROUP_CONCAT(DISTINCT a + 1 ORDER BY 3 - b)
-3,2
-SELECT GROUP_CONCAT(DISTINCT a + 1 ORDER BY b) FROM t1;
-GROUP_CONCAT(DISTINCT a + 1 ORDER BY b)
-2,3
-SELECT GROUP_CONCAT(a ORDER BY 3 - b) FROM t1;
-GROUP_CONCAT(a ORDER BY 3 - b)
-2,2,1
-CREATE TABLE t2 (a INT, b INT, c INT, d INT);
-INSERT INTO t2 VALUES (1,1, 1,1), (1,1, 2,2), (1,2, 2,1), (2,1, 1,2);
-SELECT GROUP_CONCAT(DISTINCT a, b ORDER BY c, d) FROM t2;
-GROUP_CONCAT(DISTINCT a, b ORDER BY c, d)
-11,21,12
-SELECT GROUP_CONCAT(DISTINCT a, b ORDER BY d, c) FROM t2;
-GROUP_CONCAT(DISTINCT a, b ORDER BY d, c)
-11,12,21
-CREATE TABLE t3 (a INT, b INT, c INT);
-INSERT INTO t3 VALUES (1, 1, 1), (2, 1, 2), (3, 2, 1);
-SELECT GROUP_CONCAT(DISTINCT a, b ORDER BY b, c) FROM t3;
-GROUP_CONCAT(DISTINCT a, b ORDER BY b, c)
-11,21,32
-SELECT GROUP_CONCAT(DISTINCT a, b ORDER BY c, b) FROM t3;
-GROUP_CONCAT(DISTINCT a, b ORDER BY c, b)
-11,32,21
-SELECT GROUP_CONCAT(DISTINCT a, b ORDER BY a, b) FROM t1;
-GROUP_CONCAT(DISTINCT a, b ORDER BY a, b)
-11,22,23
-SELECT GROUP_CONCAT(DISTINCT b, a ORDER BY a, b) FROM t1;
-GROUP_CONCAT(DISTINCT b, a ORDER BY a, b)
-11,22,32
-SELECT GROUP_CONCAT(DISTINCT a, b ORDER BY b, a) FROM t1;
-GROUP_CONCAT(DISTINCT a, b ORDER BY b, a)
-11,22,23
-SELECT GROUP_CONCAT(DISTINCT b, a ORDER BY a, b) FROM t1;
-GROUP_CONCAT(DISTINCT b, a ORDER BY a, b)
-11,22,32
-SELECT GROUP_CONCAT(DISTINCT a ORDER BY a, b) FROM t1;
-GROUP_CONCAT(DISTINCT a ORDER BY a, b)
-1,2
-SELECT GROUP_CONCAT(DISTINCT b ORDER BY b, a) FROM t1;
-GROUP_CONCAT(DISTINCT b ORDER BY b, a)
-1,2,3
-SELECT GROUP_CONCAT(DISTINCT a, b ORDER BY a) FROM t1;
-GROUP_CONCAT(DISTINCT a, b ORDER BY a)
-11,23,22
-SELECT GROUP_CONCAT(DISTINCT b, a ORDER BY b) FROM t1;
-GROUP_CONCAT(DISTINCT b, a ORDER BY b)
-11,22,32
-DROP TABLE t1, t2, t3;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (),();
-SELECT s1.d1 FROM
-(
-SELECT
-t1.a as d1,
-GROUP_CONCAT(DISTINCT t1.a) AS d2
-FROM
-t1 AS t1,
-t1 AS t2
-GROUP BY 1
-) AS s1;
-d1
-NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES(1);
-SELECT GROUP_CONCAT(DISTINCT t2.a) FROM t1 LEFT JOIN t2 ON t2.a = t1.a GROUP BY t1.a;
-GROUP_CONCAT(DISTINCT t2.a)
-NULL
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a INT, KEY(a));
-CREATE TABLE t2 (b INT);
-INSERT INTO t1 VALUES (NULL), (8), (2);
-INSERT INTO t2 VALUES (4), (10);
-SELECT 1 FROM t1 WHERE t1.a NOT IN
-(
-SELECT GROUP_CONCAT(DISTINCT t1.a)
-FROM t1 WHERE t1.a IN
-(
-SELECT b FROM t2
-)
-AND NOT t1.a >= (SELECT t1.a FROM t1 LIMIT 1)
-GROUP BY t1.a
-);
-1
-1
-1
-1
-DROP TABLE t1, t2;
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES (),();
-EXPLAIN EXTENDED SELECT 1 FROM
-(SELECT DISTINCT GROUP_CONCAT(td.f1) FROM t1,t1 AS td GROUP BY td.f1) AS d,t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4 100.00 Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-2 DERIVED td ALL NULL NULL NULL NULL 2 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from (/* select#2 */ select distinct group_concat(`test`.`td`.`f1` separator ',') AS `GROUP_CONCAT(td.f1)` from `test`.`t1` join `test`.`t1` `td` group by `test`.`td`.`f1`) `d` join `test`.`t1`
-SELECT 1 FROM
-(SELECT DISTINCT GROUP_CONCAT(td.f1) FROM t1,t1 AS td GROUP BY td.f1) AS d,t1;
-1
-1
-1
-DROP TABLE t1;
-End of 5.0 tests
-#
-# Bug #52397: another crash with explain extended and group_concat
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0), (0);
-EXPLAIN EXTENDED SELECT 1 FROM
-(SELECT GROUP_CONCAT(t1.a ORDER BY t1.a ASC) FROM
-t1 t2, t1 GROUP BY t1.a) AS d;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4 100.00
-2 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from (/* select#2 */ select group_concat(`test`.`t1`.`a` order by `test`.`t1`.`a` ASC separator ',') AS `GROUP_CONCAT(t1.a ORDER BY t1.a ASC)` from `test`.`t1` `t2` join `test`.`t1` group by `test`.`t1`.`a`) `d`
-DROP TABLE t1;
-End of 5.0 tests
-#
-# Bug #54476: crash when group_concat and 'with rollup' in prepared statements
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2);
-PREPARE stmt FROM "SELECT GROUP_CONCAT(t1.a ORDER BY t1.a) FROM t1 JOIN t1 t2 GROUP BY t1.a WITH ROLLUP";
-EXECUTE stmt;
-GROUP_CONCAT(t1.a ORDER BY t1.a)
-1,1
-2,2
-1,1,2,2
-EXECUTE stmt;
-GROUP_CONCAT(t1.a ORDER BY t1.a)
-1,1
-2,2
-1,1,2,2
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# Bug#57194 group_concat cause crash and/or invalid memory reads with type errors
-#
-CREATE TABLE t1(f1 int);
-INSERT INTO t1 values (0),(0);
-SELECT POLYGON((SELECT 1 FROM (SELECT 1 IN (GROUP_CONCAT(t1.f1)) FROM t1, t1 t GROUP BY t.f1 ) d));
-ERROR HY000: Illegal parameter data type int for operation 'geometrycollection'
-DROP TABLE t1;
-#
-# Bug#58396 group_concat and explain extended are still crashy
-#
-CREATE TABLE t1(a INT);
-EXPLAIN EXTENDED SELECT UPDATEXML('1', a, '1')
-FROM t1 ORDER BY (SELECT GROUP_CONCAT(1) FROM t1);
-ERROR HY000: Only constant XPATH queries are supported
-SHOW WARNINGS;
-Level Code Message
-Error 1105 Only constant XPATH queries are supported
-DROP TABLE t1;
-End of 5.1 tests
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (a VARCHAR(6), b INT);
-CREATE TABLE t2 (a VARCHAR(6), b INT);
-INSERT INTO t1 VALUES ('111111', 1);
-INSERT INTO t1 VALUES ('222222', 2);
-INSERT INTO t1 VALUES ('333333', 3);
-INSERT INTO t1 VALUES ('444444', 4);
-INSERT INTO t1 VALUES ('555555', 5);
-SET group_concat_max_len = 5;
-SET @old_sql_mode = @@sql_mode, @@sql_mode = 'traditional';
-SELECT GROUP_CONCAT(a), b FROM t1 GROUP BY b LIMIT 3;
-GROUP_CONCAT(a) b
-11111 1
-22222 2
-33333 3
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-INSERT INTO t2 SELECT GROUP_CONCAT(a), b FROM t1 GROUP BY b;
-ERROR HY000: Row 1 was cut by GROUP_CONCAT()
-UPDATE t1 SET a = '11111' WHERE b = 1;
-UPDATE t1 SET a = '22222' WHERE b = 2;
-INSERT INTO t2 SELECT GROUP_CONCAT(a), b FROM t1 GROUP BY b;
-ERROR HY000: Row 3 was cut by GROUP_CONCAT()
-SET group_concat_max_len = DEFAULT;
-SET @@sql_mode = @old_sql_mode;
-DROP TABLE t1, t2;
-create table t1 (a char(1) character set utf8);
-insert into t1 values ('a'),('b');
-select 1 from t1 where a in (select group_concat(a) from t1);
-1
-drop table t1;
-CREATE TABLE t1 (f1 VARCHAR(10)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('a'),('b');
-CREATE TABLE t2 (f2 VARCHAR(10)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('c');
-CREATE TABLE t3 (f3 VARCHAR(10)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('d'),('e');
-SELECT GROUP_CONCAT( f2 ORDER BY ( f2 IN ( SELECT f1 FROM t1 WHERE f1 <= f2 ) ) ) AS field
-FROM ( SELECT * FROM t2 ) AS sq2, t3
-ORDER BY field;
-field
-c,c
-drop table t3, t2, t1;
-#
-# MDEV-7821 - Server crashes in Item_func_group_concat::fix_fields on 2nd
-# execution of PS
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES(1),(2);
-PREPARE stmt FROM "SELECT GROUP_CONCAT(t1a.a ORDER BY 1, t1a.a=0) FROM t1 AS t1a, t1 AS t1b GROUP BY t1a.a";
-EXECUTE stmt;
-GROUP_CONCAT(t1a.a ORDER BY 1, t1a.a=0)
-1,1
-2,2
-EXECUTE stmt;
-GROUP_CONCAT(t1a.a ORDER BY 1, t1a.a=0)
-1,1
-2,2
-DROP TABLE t1;
-#
-# WL#6098 Eliminate GROUP_CONCAT intermediate result limitation.
-# Bug#13387020 GROUP_CONCAT WITH ORDER BY RESULTS ARE TRUNCATED.
-#
-SET group_concat_max_len= 9999999;
-CREATE TABLE t1 (f1 LONGTEXT , f2 INTEGER);
-INSERT INTO t1 VALUES (REPEAT('a', 500000), 0), (REPEAT('b', 500000), 1), (REPEAT('c', 500000), 2);
-SELECT LENGTH(GROUP_CONCAT(f1 ORDER BY f2)) FROM t1;
-LENGTH(GROUP_CONCAT(f1 ORDER BY f2))
-1500002
-SELECT LENGTH(GROUP_CONCAT(DISTINCT f1 ORDER BY f1 DESC)) FROM t1;
-LENGTH(GROUP_CONCAT(DISTINCT f1 ORDER BY f1 DESC))
-1500002
-SELECT SUBSTRING(GROUP_CONCAT(DISTINCT f1 ORDER BY f1 DESC), 1, 5) FROM t1;
-SUBSTRING(GROUP_CONCAT(DISTINCT f1 ORDER BY f1 DESC), 1, 5)
-ccccc
-SELECT LENGTH(GROUP_CONCAT(DISTINCT f1)) FROM t1;
-LENGTH(GROUP_CONCAT(DISTINCT f1))
-1500002
-SELECT LENGTH(GROUP_CONCAT(UPPER(f1) ORDER BY f2)) FROM t1;
-LENGTH(GROUP_CONCAT(UPPER(f1) ORDER BY f2))
-1500002
-SELECT LENGTH(GROUP_CONCAT(DISTINCT UPPER(f1) ORDER BY f1)) FROM t1;
-LENGTH(GROUP_CONCAT(DISTINCT UPPER(f1) ORDER BY f1))
-1500002
-SELECT SUBSTRING(GROUP_CONCAT(DISTINCT UPPER(f1) ORDER BY f1), 1, 5) FROM t1;
-SUBSTRING(GROUP_CONCAT(DISTINCT UPPER(f1) ORDER BY f1), 1, 5)
-AAAAA
-SELECT LENGTH(GROUP_CONCAT(DISTINCT UPPER(f1))) FROM t1;
-LENGTH(GROUP_CONCAT(DISTINCT UPPER(f1)))
-1500002
-CREATE TABLE t2 SELECT GROUP_CONCAT(f1 order by f2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `GROUP_CONCAT(f1 order by f2)` mediumtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 SELECT GROUP_CONCAT(UPPER(f1) ORDER BY f2) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `GROUP_CONCAT(UPPER(f1) ORDER BY f2)` mediumtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET group_concat_max_len= 1024;
-SELECT LENGTH(GROUP_CONCAT(f1 ORDER BY f2)) FROM t1;
-LENGTH(GROUP_CONCAT(f1 ORDER BY f2))
-1024
-Warnings:
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-SET group_concat_max_len= 499999;
-SELECT LENGTH(GROUP_CONCAT(f1 ORDER BY f2)) FROM t1 WHERE f2 = 0;
-LENGTH(GROUP_CONCAT(f1 ORDER BY f2))
-499999
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-SELECT LENGTH(GROUP_CONCAT(f1 ORDER BY f2)) FROM t1 GROUP BY f2;
-LENGTH(GROUP_CONCAT(f1 ORDER BY f2))
-499999
-499999
-499999
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-INSERT INTO t1 VALUES (REPEAT('a', 499999), 3), (REPEAT('b', 500000), 4);
-SELECT LENGTH(GROUP_CONCAT(f1 ORDER BY f2)) FROM t1 GROUP BY f2;
-LENGTH(GROUP_CONCAT(f1 ORDER BY f2))
-499999
-499999
-499999
-499999
-499999
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-Warning 1260 Row 5 was cut by GROUP_CONCAT()
-DROP TABLE t1;
-SET group_concat_max_len= DEFAULT;
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10124 Incorrect usage of CUBE/ROLLUP and ORDER BY with GROUP_CONCAT(a ORDER BY a)
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10),(20),(30);
-SELECT a,GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP;
-a GROUP_CONCAT(a ORDER BY a)
-10 10
-20 20
-30 30
-NULL 10,20,30
-CREATE VIEW v1 AS
-SELECT a,GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP;
-SELECT * FROM v1;
-a GROUP_CONCAT(a ORDER BY a)
-10 10
-20 20
-30 30
-NULL 10,20,30
-DROP VIEW v1;
-SELECT a,GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP HAVING GROUP_CONCAT(a ORDER BY a)='10,20,30';
-a GROUP_CONCAT(a ORDER BY a)
-NULL 10,20,30
-CREATE VIEW v1 AS
-SELECT a,GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP HAVING GROUP_CONCAT(a ORDER BY a)='10,20,30';
-SELECT * FROM v1;
-a GROUP_CONCAT(a ORDER BY a)
-NULL 10,20,30
-DROP VIEW v1;
-SELECT * FROM (SELECT a,GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP HAVING GROUP_CONCAT(a ORDER BY a)='10,20,30') t1;
-a GROUP_CONCAT(a ORDER BY a)
-NULL 10,20,30
-CREATE VIEW v1 AS
-SELECT * FROM (SELECT a,GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP HAVING GROUP_CONCAT(a ORDER BY a)='10,20,30') t1;
-SELECT * FROM v1;
-a GROUP_CONCAT(a ORDER BY a)
-NULL 10,20,30
-DROP VIEW v1;
-SELECT (SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP HAVING GROUP_CONCAT(a ORDER BY a)='10,20,30');
-(SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP HAVING GROUP_CONCAT(a ORDER BY a)='10,20,30')
-10,20,30
-CREATE VIEW v1 AS
-SELECT (SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP HAVING GROUP_CONCAT(a ORDER BY a)='10,20,30');
-SELECT * FROM v1;
-Name_exp_1
-10,20,30
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
-#
-# Start of 10.3 tests
-#
-drop table if exists t1, t2;
-create table t1 (grp int, a bigint unsigned, c char(10) , d char(10) not null);
-insert into t1 values (1,1,NULL,"a");
-insert into t1 values (1,10,"b","a");
-insert into t1 values (1,11,"c","a");
-insert into t1 values (2,2,"c","a");
-insert into t1 values (2,3,"b","b");
-insert into t1 values (3,4,"E","a");
-insert into t1 values (3,5,"C","b");
-insert into t1 values (3,6,"D","c");
-insert into t1 values (3,7,"E","c");
-select grp,group_concat(c) from t1 group by grp;
-grp group_concat(c)
-1 b,c
-2 c,b
-3 E,C,D,E
-select grp,group_concat(c limit 1 ) from t1 group by grp;
-grp group_concat(c limit 1 )
-1 b
-2 c
-3 E
-select grp,group_concat(c limit 1,1 ) from t1 group by grp;
-grp group_concat(c limit 1,1 )
-1 c
-2 b
-3 C
-select grp,group_concat(c limit 1,10 ) from t1 group by grp;
-grp group_concat(c limit 1,10 )
-1 c
-2 b
-3 C,D,E
-select grp,group_concat(c limit 1000) from t1 group by grp;
-grp group_concat(c limit 1000)
-1 b,c
-2 c,b
-3 E,C,D,E
-select group_concat(grp limit 0) from t1;
-group_concat(grp limit 0)
-
-select group_concat(grp limit "sdjadjs") from t1
---error ER_PARSE_ERROR
-select grp,group_concat(c limit 5.5) from t1 group by grp ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"sdjadjs") from t1
---error ER_PARSE_ERROR
-select grp,group_concat(c limit 5.5) f' at line 1
-select grp,group_concat(distinct c limit 1,10 ) from t1 group by grp;
-grp group_concat(distinct c limit 1,10 )
-1 c
-2 b
-3 C,D
-select grp,group_concat(c order by a) from t1 group by grp;
-grp group_concat(c order by a)
-1 b,c
-2 c,b
-3 E,C,D,E
-select grp,group_concat(c order by a limit 2 ) from t1 group by grp;
-grp group_concat(c order by a limit 2 )
-1 b,c
-2 c,b
-3 E,C
-select grp,group_concat(c order by a limit 1,1 ) from t1 group by grp;
-grp group_concat(c order by a limit 1,1 )
-1 c
-2 b
-3 C
-select grp,group_concat(c order by c) from t1 group by grp;
-grp group_concat(c order by c)
-1 b,c
-2 b,c
-3 C,D,E,E
-select grp,group_concat(c order by c limit 2) from t1 group by grp;
-grp group_concat(c order by c limit 2)
-1 b,c
-2 b,c
-3 C,D
-select grp,group_concat(c order by c desc) from t1 group by grp;
-grp group_concat(c order by c desc)
-1 c,b
-2 c,b
-3 E,E,D,C
-select grp,group_concat(c order by c desc limit 2) from t1 group by grp;
-grp group_concat(c order by c desc limit 2)
-1 c,b
-2 c,b
-3 E,E
-drop table t1;
-create table t2 (a int, b varchar(10));
-insert into t2 values(1,'a'),(1,'b'),(NULL,'c'),(2,'x'),(2,'y');
-select group_concat(a,b limit 2) from t2;
-group_concat(a,b limit 2)
-1a,1b
-set @x=4;
-prepare STMT from 'select group_concat(b limit ?) from t2';
-execute STMT using @x;
-group_concat(b limit ?)
-a,b,c,x
-set @x=2;
-execute STMT using @x;
-group_concat(b limit ?)
-a,b
-set @x=1000;
-execute STMT using @x;
-group_concat(b limit ?)
-a,b,c,x,y
-set @x=0;
-execute STMT using @x;
-group_concat(b limit ?)
-
-set @x="adasfa";
-execute STMT using @x;
-ERROR HY000: Limit only accepts integer values
-set @x=-1;
-execute STMT using @x;
-ERROR HY000: Incorrect arguments to EXECUTE
-set @x=4;
-prepare STMT from 'select group_concat(a,b limit ?) from t2';
-execute STMT using @x;
-group_concat(a,b limit ?)
-1a,1b,2x,2y
-drop table t2;
-#
-# End of 10.3 tests
-#
diff --git a/mysql-test/r/func_group.result b/mysql-test/r/func_group.result
deleted file mode 100644
index 9f3928615ec..00000000000
--- a/mysql-test/r/func_group.result
+++ /dev/null
@@ -1,2491 +0,0 @@
-drop table if exists t1,t2,t3,t4,t5,t6;
-set @sav_dpi= @@div_precision_increment;
-set div_precision_increment= 5;
-show variables like 'div_precision_increment';
-Variable_name Value
-div_precision_increment 5
-create table t1 (grp int, a bigint unsigned, c char(10) not null);
-insert into t1 values (1,1,"a");
-insert into t1 values (2,2,"b");
-insert into t1 values (2,3,"c");
-insert into t1 values (3,4,"E");
-insert into t1 values (3,5,"C");
-insert into t1 values (3,6,"D");
-select a,c,sum(a) from t1 group by a;
-a c sum(a)
-1 a 1
-2 b 2
-3 c 3
-4 E 4
-5 C 5
-6 D 6
-select a,c,sum(a) from t1 where a > 10 group by a;
-a c sum(a)
-select sum(a) from t1 where a > 10;
-sum(a)
-NULL
-select a from t1 order by rand(10);
-a
-2
-6
-1
-3
-5
-4
-select distinct a from t1 order by rand(10);
-a
-2
-6
-1
-3
-5
-4
-select count(distinct a),count(distinct grp) from t1;
-count(distinct a) count(distinct grp)
-6 3
-insert into t1 values (null,null,'');
-select count(distinct a),count(distinct grp) from t1;
-count(distinct a) count(distinct grp)
-6 3
-select sum(all a),count(all a),avg(all a),std(all a),variance(all a),bit_or(all a),bit_and(all a),min(all a),max(all a),min(all c),max(all c) from t1;
-sum(all a) count(all a) avg(all a) std(all a) variance(all a) bit_or(all a) bit_and(all a) min(all a) max(all a) min(all c) max(all c)
-21 6 3.50000 1.70783 2.91667 7 0 1 6 E
-select grp, sum(a),count(a),avg(a),std(a),variance(a),bit_or(a),bit_and(a),min(a),max(a),min(c),max(c) from t1 group by grp;
-grp sum(a) count(a) avg(a) std(a) variance(a) bit_or(a) bit_and(a) min(a) max(a) min(c) max(c)
-NULL NULL 0 NULL NULL NULL 0 18446744073709551615 NULL NULL
-1 1 1 1.00000 0.00000 0.00000 1 1 1 1 a a
-2 5 2 2.50000 0.50000 0.25000 3 2 2 3 b c
-3 15 3 5.00000 0.81650 0.66667 7 4 4 6 C E
-select grp, sum(a)+count(a)+avg(a)+std(a)+variance(a)+bit_or(a)+bit_and(a)+min(a)+max(a)+min(c)+max(c) as sum from t1 group by grp;
-grp sum
-NULL NULL
-1 7
-2 20.25
-3 45.48316324759439
-create table t2 (grp int, a bigint unsigned, c char(10));
-insert into t2 select grp,max(a)+max(grp),max(c) from t1 group by grp;
-replace into t2 select grp, a, c from t1 limit 2,1;
-select * from t2;
-grp a c
-NULL NULL
-1 2 a
-2 5 c
-3 9 E
-2 3 c
-drop table t1,t2;
-CREATE TABLE t1 (id int(11),value1 float(10,2));
-INSERT INTO t1 VALUES (1,0.00),(1,1.00), (1,2.00), (2,10.00), (2,11.00), (2,12.00);
-CREATE TABLE t2 (id int(11),name char(20));
-INSERT INTO t2 VALUES (1,'Set One'),(2,'Set Two');
-select id, avg(value1), std(value1), variance(value1) from t1 group by id;
-id avg(value1) std(value1) variance(value1)
-1 1.0000000 0.816497 0.666667
-2 11.0000000 0.816497 0.666667
-select name, avg(value1), std(value1), variance(value1) from t1, t2 where t1.id = t2.id group by t1.id;
-name avg(value1) std(value1) variance(value1)
-Set One 1.0000000 0.816497 0.666667
-Set Two 11.0000000 0.816497 0.666667
-drop table t1,t2;
-create table t1 (id int not null);
-create table t2 (id int not null,rating int null);
-insert into t1 values(1),(2),(3);
-insert into t2 values(1, 3),(2, NULL),(2, NULL),(3, 2),(3, NULL);
-select t1.id, avg(rating) from t1 left join t2 on ( t1.id = t2.id ) group by t1.id;
-id avg(rating)
-1 3.00000
-2 NULL
-3 2.00000
-select sql_small_result t2.id, avg(rating) from t2 group by t2.id;
-id avg(rating)
-1 3.00000
-2 NULL
-3 2.00000
-select sql_big_result t2.id, avg(rating) from t2 group by t2.id;
-id avg(rating)
-1 3.00000
-2 NULL
-3 2.00000
-select sql_small_result t2.id, avg(rating+0.0e0) from t2 group by t2.id;
-id avg(rating+0.0e0)
-1 3
-2 NULL
-3 2
-select sql_big_result t2.id, avg(rating+0.0e0) from t2 group by t2.id;
-id avg(rating+0.0e0)
-1 3
-2 NULL
-3 2
-drop table t1,t2;
-create table t1 (a smallint(6) primary key, c char(10), b text);
-INSERT INTO t1 VALUES (1,'1','1');
-INSERT INTO t1 VALUES (2,'2','2');
-INSERT INTO t1 VALUES (4,'4','4');
-select count(*) from t1;
-count(*)
-3
-select count(*) from t1 where a = 1;
-count(*)
-1
-select count(*) from t1 where a = 100;
-count(*)
-0
-select count(*) from t1 where a >= 10;
-count(*)
-0
-select count(a) from t1 where a = 1;
-count(a)
-1
-select count(a) from t1 where a = 100;
-count(a)
-0
-select count(a) from t1 where a >= 10;
-count(a)
-0
-select count(b) from t1 where b >= 2;
-count(b)
-2
-select count(b) from t1 where b >= 10;
-count(b)
-0
-select count(c) from t1 where c = 10;
-count(c)
-0
-drop table t1;
-CREATE TABLE t1 (d DATETIME, i INT);
-INSERT INTO t1 VALUES (NOW(), 1);
-SELECT COUNT(i), i, COUNT(i)*i FROM t1 GROUP BY i;
-COUNT(i) i COUNT(i)*i
-1 1 1
-SELECT COUNT(i), (i+0), COUNT(i)*(i+0) FROM t1 GROUP BY i;
-COUNT(i) (i+0) COUNT(i)*(i+0)
-1 1 1
-DROP TABLE t1;
-create table t1 (
-num float(5,2),
-user char(20)
-);
-insert into t1 values (10.3,'nem'),(20.53,'monty'),(30.23,'sinisa');
-insert into t1 values (30.13,'nem'),(20.98,'monty'),(10.45,'sinisa');
-insert into t1 values (5.2,'nem'),(8.64,'monty'),(11.12,'sinisa');
-select sum(num) from t1;
-sum(num)
-147.58
-select sum(num) from t1 group by user;
-sum(num)
-50.15
-45.63
-51.80
-drop table t1;
-create table t1 (a1 int, a2 char(3), key k1(a1), key k2(a2));
-insert into t1 values(10,'aaa'), (10,null), (10,'bbb'), (20,'zzz');
-create table t2(a1 char(3), a2 int, a3 real, key k1(a1), key k2(a2, a1));
-select * from t1;
-a1 a2
-10 aaa
-10 NULL
-10 bbb
-20 zzz
-select min(a2) from t1;
-min(a2)
-aaa
-select max(t1.a1), max(t2.a2) from t1, t2;
-max(t1.a1) max(t2.a2)
-NULL NULL
-select max(t1.a1) from t1, t2;
-max(t1.a1)
-NULL
-select max(t2.a2), max(t1.a1) from t1, t2;
-max(t2.a2) max(t1.a1)
-NULL NULL
-explain select min(a2) from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select max(t1.a1), max(t2.a2) from t1, t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No matching min/max row
-insert into t2 values('AAA', 10, 0.5);
-insert into t2 values('BBB', 20, 1.0);
-select t1.a1, t1.a2, t2.a1, t2.a2 from t1,t2;
-a1 a2 a1 a2
-10 aaa AAA 10
-10 aaa BBB 20
-10 NULL AAA 10
-10 NULL BBB 20
-10 bbb AAA 10
-10 bbb BBB 20
-20 zzz AAA 10
-20 zzz BBB 20
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-select max(t1.a1), max(t2.a1) from t1, t2 where t2.a2=9;
-max(t1.a1) max(t2.a1)
-NULL NULL
-select max(t2.a1), max(t1.a1) from t1, t2 where t2.a2=9;
-max(t2.a1) max(t1.a1)
-NULL NULL
-select t1.a1, t1.a2, t2.a1, t2.a2 from t1 left outer join t2 on t1.a1=10;
-a1 a2 a1 a2
-10 aaa AAA 10
-10 aaa BBB 20
-10 NULL AAA 10
-10 NULL BBB 20
-10 bbb AAA 10
-10 bbb BBB 20
-20 zzz NULL NULL
-select max(t1.a2) from t1 left outer join t2 on t1.a1=10;
-max(t1.a2)
-zzz
-select max(t2.a1) from t2 left outer join t1 on t2.a2=10 where t2.a2=20;
-max(t2.a1)
-BBB
-select max(t2.a1) from t2 left outer join t1 on t2.a2=10 where t2.a2=10;
-max(t2.a1)
-AAA
-select max(t2.a1) from t1 left outer join t2 on t1.a2=t2.a1 and 1=0 where t2.a1='AAA';
-max(t2.a1)
-NULL
-select max(t1.a2),max(t2.a1) from t1 left outer join t2 on t1.a1=10;
-max(t1.a2) max(t2.a1)
-zzz BBB
-SET optimizer_switch=@save_optimizer_switch;
-drop table t1,t2;
-CREATE TABLE t1 (a int, b int);
-select count(b), sum(b), avg(b), std(b), min(b), max(b), bit_and(b), bit_or(b) from t1;
-count(b) sum(b) avg(b) std(b) min(b) max(b) bit_and(b) bit_or(b)
-0 NULL NULL NULL NULL NULL 18446744073709551615 0
-select a,count(b), sum(b), avg(b), std(b), min(b), max(b), bit_and(b), bit_or(b) from t1 group by a;
-a count(b) sum(b) avg(b) std(b) min(b) max(b) bit_and(b) bit_or(b)
-insert into t1 values (1,null);
-select a,count(b), sum(b), avg(b), std(b), min(b), max(b), bit_and(b), bit_or(b) from t1 group by a;
-a count(b) sum(b) avg(b) std(b) min(b) max(b) bit_and(b) bit_or(b)
-1 0 NULL NULL NULL NULL NULL 18446744073709551615 0
-insert into t1 values (1,null);
-insert into t1 values (2,null);
-select a,count(b), sum(b), avg(b), std(b), min(b), max(b), bit_and(b), bit_or(b) from t1 group by a;
-a count(b) sum(b) avg(b) std(b) min(b) max(b) bit_and(b) bit_or(b)
-1 0 NULL NULL NULL NULL NULL 18446744073709551615 0
-2 0 NULL NULL NULL NULL NULL 18446744073709551615 0
-select SQL_BIG_RESULT a,count(b), sum(b), avg(b), std(b), min(b), max(b), bit_and(b), bit_or(b) from t1 group by a;
-a count(b) sum(b) avg(b) std(b) min(b) max(b) bit_and(b) bit_or(b)
-1 0 NULL NULL NULL NULL NULL 18446744073709551615 0
-2 0 NULL NULL NULL NULL NULL 18446744073709551615 0
-insert into t1 values (2,1);
-select a,count(b), sum(b), avg(b), std(b), min(b), max(b), bit_and(b), bit_or(b) from t1 group by a;
-a count(b) sum(b) avg(b) std(b) min(b) max(b) bit_and(b) bit_or(b)
-1 0 NULL NULL NULL NULL NULL 18446744073709551615 0
-2 1 1 1.00000 0.00000 1 1 1 1
-select SQL_BIG_RESULT a,count(b), sum(b), avg(b), std(b), min(b), max(b), bit_and(b), bit_or(b) from t1 group by a;
-a count(b) sum(b) avg(b) std(b) min(b) max(b) bit_and(b) bit_or(b)
-1 0 NULL NULL NULL NULL NULL 18446744073709551615 0
-2 1 1 1.00000 0.00000 1 1 1 1
-insert into t1 values (3,1);
-select a,count(b), sum(b), avg(b), std(b), min(b), max(b), bit_and(b), bit_or(b) from t1 group by a;
-a count(b) sum(b) avg(b) std(b) min(b) max(b) bit_and(b) bit_or(b)
-1 0 NULL NULL NULL NULL NULL 18446744073709551615 0
-2 1 1 1.00000 0.00000 1 1 1 1
-3 1 1 1.00000 0.00000 1 1 1 1
-select SQL_BIG_RESULT a,count(b), sum(b), avg(b), std(b), min(b), max(b), bit_and(b), bit_or(b), bit_xor(b) from t1 group by a;
-a count(b) sum(b) avg(b) std(b) min(b) max(b) bit_and(b) bit_or(b) bit_xor(b)
-1 0 NULL NULL NULL NULL NULL 18446744073709551615 0 0
-2 1 1 1.00000 0.00000 1 1 1 1 1
-3 1 1 1.00000 0.00000 1 1 1 1 1
-explain extended select SQL_BIG_RESULT a,count(b), sum(b), avg(b), std(b), min(b), max(b), bit_and(b), bit_or(b), bit_xor(b) from t1 group by a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using filesort
-Warnings:
-Note 1003 select sql_big_result `test`.`t1`.`a` AS `a`,count(`test`.`t1`.`b`) AS `count(b)`,sum(`test`.`t1`.`b`) AS `sum(b)`,avg(`test`.`t1`.`b`) AS `avg(b)`,std(`test`.`t1`.`b`) AS `std(b)`,min(`test`.`t1`.`b`) AS `min(b)`,max(`test`.`t1`.`b`) AS `max(b)`,bit_and(`test`.`t1`.`b`) AS `bit_and(b)`,bit_or(`test`.`t1`.`b`) AS `bit_or(b)`,bit_xor(`test`.`t1`.`b`) AS `bit_xor(b)` from `test`.`t1` group by `test`.`t1`.`a`
-drop table t1;
-create table t1 (col int);
-insert into t1 values (-1), (-2), (-3);
-select bit_and(col), bit_or(col) from t1;
-bit_and(col) bit_or(col)
-18446744073709551612 18446744073709551615
-select SQL_BIG_RESULT bit_and(col), bit_or(col) from t1 group by col;
-bit_and(col) bit_or(col)
-18446744073709551613 18446744073709551613
-18446744073709551614 18446744073709551614
-18446744073709551615 18446744073709551615
-drop table t1;
-create table t1 (a int);
-select avg(2) from t1;
-avg(2)
-NULL
-drop table t1;
-create table t1(
-a1 char(3) primary key,
-a2 smallint,
-a3 char(3),
-a4 real,
-a5 date,
-key k1(a2,a3),
-key k2(a4 desc,a1),
-key k3(a5,a1)
-);
-create table t2(
-a1 char(3) primary key,
-a2 char(17),
-a3 char(2),
-a4 char(3),
-key k1(a3, a2),
-key k2(a4)
-);
-insert into t1 values('AME',0,'SEA',0.100,date'1942-02-19');
-insert into t1 values('HBR',1,'SEA',0.085,date'1948-03-05');
-insert into t1 values('BOT',2,'SEA',0.085,date'1951-11-29');
-insert into t1 values('BMC',3,'SEA',0.085,date'1958-09-08');
-insert into t1 values('TWU',0,'LAX',0.080,date'1969-10-05');
-insert into t1 values('BDL',0,'DEN',0.080,date'1960-11-27');
-insert into t1 values('DTX',1,'NYC',0.080,date'1961-05-04');
-insert into t1 values('PLS',1,'WDC',0.075,date'1949-01-02');
-insert into t1 values('ZAJ',2,'CHI',0.075,date'1960-06-15');
-insert into t1 values('VVV',2,'MIN',0.075,date'1959-06-28');
-insert into t1 values('GTM',3,'DAL',0.070,date'1977-09-23');
-insert into t1 values('SSJ',null,'CHI',null,date'1974-03-19');
-insert into t1 values('KKK',3,'ATL',null,null);
-insert into t1 values('XXX',null,'MIN',null,null);
-insert into t1 values('WWW',1,'LED',null,null);
-insert into t2 values('TKF','Seattle','WA','AME');
-insert into t2 values('LCC','Los Angeles','CA','TWU');
-insert into t2 values('DEN','Denver','CO','BDL');
-insert into t2 values('SDC','San Diego','CA','TWU');
-insert into t2 values('NOL','New Orleans','LA','GTM');
-insert into t2 values('LAK','Los Angeles','CA','TWU');
-insert into t2 values('AAA','AAA','AA','AME');
-select * from t1;
-a1 a2 a3 a4 a5
-AME 0 SEA 0.1 1942-02-19
-HBR 1 SEA 0.085 1948-03-05
-BOT 2 SEA 0.085 1951-11-29
-BMC 3 SEA 0.085 1958-09-08
-TWU 0 LAX 0.08 1969-10-05
-BDL 0 DEN 0.08 1960-11-27
-DTX 1 NYC 0.08 1961-05-04
-PLS 1 WDC 0.075 1949-01-02
-ZAJ 2 CHI 0.075 1960-06-15
-VVV 2 MIN 0.075 1959-06-28
-GTM 3 DAL 0.07 1977-09-23
-SSJ NULL CHI NULL 1974-03-19
-KKK 3 ATL NULL NULL
-XXX NULL MIN NULL NULL
-WWW 1 LED NULL NULL
-select * from t2;
-a1 a2 a3 a4
-TKF Seattle WA AME
-LCC Los Angeles CA TWU
-DEN Denver CO BDL
-SDC San Diego CA TWU
-NOL New Orleans LA GTM
-LAK Los Angeles CA TWU
-AAA AAA AA AME
-explain
-select min(a1) from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(a1) from t1;
-min(a1)
-AME
-explain
-select max(a4) from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select max(a4) from t1;
-max(a4)
-0.1
-explain
-select min(a5), max(a5) from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(a5), max(a5) from t1;
-min(a5) max(a5)
-1942-02-19 1977-09-23
-explain
-select min(a3) from t1 where a2 = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(a3) from t1 where a2 = 2;
-min(a3)
-CHI
-explain
-select min(a1), max(a1) from t1 where a4 = 0.080;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(a1), max(a1) from t1 where a4 = 0.080;
-min(a1) max(a1)
-BDL TWU
-explain
-select min(t1.a5), max(t2.a3) from t1, t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(t1.a5), max(t2.a3) from t1, t2;
-min(t1.a5) max(t2.a3)
-1942-02-19 WA
-explain
-select min(t1.a3), max(t2.a2) from t1, t2 where t1.a2 = 0 and t2.a3 = 'CA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(t1.a3), max(t2.a2) from t1, t2 where t1.a2 = 0 and t2.a3 = 'CA';
-min(t1.a3) max(t2.a2)
-DEN San Diego
-explain
-select min(a1) from t1 where a1 > 'KKK';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(a1) from t1 where a1 > 'KKK';
-min(a1)
-PLS
-explain
-select min(a1) from t1 where a1 >= 'KKK';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(a1) from t1 where a1 >= 'KKK';
-min(a1)
-KKK
-explain
-select max(a3) from t1 where a2 = 2 and a3 < 'SEA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select max(a3) from t1 where a2 = 2 and a3 < 'SEA';
-max(a3)
-MIN
-explain
-select max(a5) from t1 where a5 < date'1970-01-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select max(a5) from t1 where a5 < date'1970-01-01';
-max(a5)
-1969-10-05
-explain
-select max(a3) from t1 where a2 is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select max(a3) from t1 where a2 is null;
-max(a3)
-MIN
-explain
-select max(a3) from t1 where a2 = 0 and a3 between 'K' and 'Q';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select max(a3) from t1 where a2 = 0 and a3 between 'K' and 'Q';
-max(a3)
-LAX
-explain
-select min(a1), max(a1) from t1 where a1 between 'A' and 'P';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(a1), max(a1) from t1 where a1 between 'A' and 'P';
-min(a1) max(a1)
-AME KKK
-explain
-select max(a3) from t1 where a3 < 'SEA' and a2 = 2 and a3 <= 'MIN';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select max(a3) from t1 where a3 < 'SEA' and a2 = 2 and a3 <= 'MIN';
-max(a3)
-MIN
-explain
-select max(a3) from t1 where a3 = 'MIN' and a2 = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select max(a3) from t1 where a3 = 'MIN' and a2 = 2;
-max(a3)
-MIN
-explain
-select max(a3) from t1 where a3 = 'DEN' and a2 = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No matching min/max row
-select max(a3) from t1 where a3 = 'DEN' and a2 = 2;
-max(a3)
-NULL
-explain
-select max(t1.a3), min(t2.a2) from t1, t2 where t1.a2 = 2 and t1.a3 < 'MIN' and t2.a3 = 'CA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select max(t1.a3), min(t2.a2) from t1, t2 where t1.a2 = 2 and t1.a3 < 'MIN' and t2.a3 = 'CA';
-max(t1.a3) min(t2.a2)
-CHI Los Angeles
-explain
-select max(a3) from t1 where a2 is null and a2 = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-select max(a3) from t1 where a2 is null and a2 = 2;
-max(a3)
-NULL
-explain
-select max(a2) from t1 where a2 >= 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select max(a2) from t1 where a2 >= 1;
-max(a2)
-3
-explain
-select min(a3) from t1 where a2 = 2 and a3 < 'SEA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(a3) from t1 where a2 = 2 and a3 < 'SEA';
-min(a3)
-CHI
-explain
-select min(a3) from t1 where a2 = 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No matching min/max row
-select min(a3) from t1 where a2 = 4;
-min(a3)
-NULL
-explain
-select min(a3) from t1 where a2 = 2 and a3 > 'SEA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No matching min/max row
-select min(a3) from t1 where a2 = 2 and a3 > 'SEA';
-min(a3)
-NULL
-explain
-select (min(a4)+max(a4))/2 from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select (min(a4)+max(a4))/2 from t1;
-(min(a4)+max(a4))/2
-0.085
-explain
-select min(a3) from t1 where 2 = a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(a3) from t1 where 2 = a2;
-min(a3)
-CHI
-explain
-select max(a3) from t1 where a2 = 2 and 'SEA' > a3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select max(a3) from t1 where a2 = 2 and 'SEA' > a3;
-max(a3)
-MIN
-explain
-select max(a3) from t1 where a2 = 2 and 'SEA' < a3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No matching min/max row
-select max(a3) from t1 where a2 = 2 and 'SEA' < a3;
-max(a3)
-NULL
-explain
-select min(a3) from t1 where a2 = 2 and a3 >= 'CHI';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(a3) from t1 where a2 = 2 and a3 >= 'CHI';
-min(a3)
-CHI
-explain
-select min(a3) from t1 where a2 = 2 and a3 >= 'CHI' and a3 < 'SEA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(a3) from t1 where a2 = 2 and a3 >= 'CHI' and a3 < 'SEA';
-min(a3)
-CHI
-explain
-select min(a3) from t1 where a2 = 2 and a3 >= 'CHI' and a3 = 'MIN';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(a3) from t1 where a2 = 2 and a3 >= 'CHI' and a3 = 'MIN';
-min(a3)
-MIN
-explain
-select min(a3) from t1 where a2 = 2 and a3 >= 'SEA' and a3 = 'MIN';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-select min(a3) from t1 where a2 = 2 and a3 >= 'SEA' and a3 = 'MIN';
-min(a3)
-NULL
-explain
-select min(t1.a1), min(t2.a4) from t1,t2 where t1.a1 < 'KKK' and t2.a4 < 'KKK';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(t1.a1), min(t2.a4) from t1,t2 where t1.a1 < 'KKK' and t2.a4 < 'KKK';
-min(t1.a1) min(t2.a4)
-AME AME
-explain
-select min(a1) from t1 where a1 > 'KKK' or a1 < 'XXX';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 3 NULL 15 Using where; Using index
-explain
-select min(a1) from t1 where a1 != 'KKK';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 3 NULL 15 Using where; Using index
-explain
-select max(a3) from t1 where a2 < 2 and a3 < 'SEA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range k1 k1 3 NULL 6 Using where; Using index
-explain
-select max(t1.a3), min(t2.a2) from t1, t2 where t1.a2 = 2 and t1.a3 < 'MIN' and t2.a3 > 'CA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range k1 k1 7 NULL 1 Using where; Using index
-1 SIMPLE t2 range k1 k1 3 NULL 4 Using where; Using index; Using join buffer (flat, BNL join)
-explain
-select min(a4 - 0.01) from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL k2 12 NULL 15 Using index
-explain
-select max(a4 + 0.01) from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL k2 12 NULL 15 Using index
-explain
-select min(a3) from t1 where (a2 +1 ) is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL k1 7 NULL 15 Using where; Using index
-explain
-select min(a3) from t1 where (a2 + 1) = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL k1 7 NULL 15 Using where; Using index
-explain
-select min(a3) from t1 where 2 = (a2 + 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL k1 7 NULL 15 Using where; Using index
-explain
-select min(a2) from t1 where a2 < 2 * a2 - 8;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL k1 7 NULL 15 Using where; Using index
-explain
-select min(a1) from t1 where a1 between a3 and 'KKK';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 15 Using where
-explain
-select min(a4) from t1 where (a4 + 0.01) between 0.07 and 0.08;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL k2 12 NULL 15 Using where; Using index
-explain
-select concat(min(t1.a1),min(t2.a4)) from t1, t2 where t2.a4 <> 'AME';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range k2 k2 4 NULL 6 Using where; Using index
-1 SIMPLE t1 index NULL PRIMARY 3 NULL 15 Using index; Using join buffer (flat, BNL join)
-drop table t1, t2;
-create table t1 (a char(10));
-insert into t1 values ('a'),('b'),('c');
-select coercibility(max(a)) from t1;
-coercibility(max(a))
-2
-drop table t1;
-create table t1 (a char character set latin2);
-insert into t1 values ('a'),('b');
-select charset(max(a)), coercibility(max(a)),
-charset(min(a)), coercibility(min(a)) from t1;
-charset(max(a)) coercibility(max(a)) charset(min(a)) coercibility(min(a))
-latin2 2 latin2 2
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(1) CHARACTER SET latin2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table t2 select max(a),min(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `max(a)` char(1) CHARACTER SET latin2 DEFAULT NULL,
- `min(a)` char(1) CHARACTER SET latin2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t2;
-create table t2 select concat(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `concat(a)` varchar(1) CHARACTER SET latin2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t2,t1;
-create table t1 (a int);
-insert into t1 values (1);
-select max(a) as b from t1 having b=1;
-b
-1
-select a from t1 having a=1;
-a
-1
-drop table t1;
-create table t1 (a int);
-select variance(2) from t1;
-variance(2)
-NULL
-select stddev(2) from t1;
-stddev(2)
-NULL
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(2);
-prepare stmt1 from 'SELECT COUNT(*) FROM t1';
-execute stmt1;
-COUNT(*)
-2
-execute stmt1;
-COUNT(*)
-2
-execute stmt1;
-COUNT(*)
-2
-deallocate prepare stmt1;
-drop table t1;
-create table t1 (a int, primary key(a));
-insert into t1 values (1),(2);
-prepare stmt1 from 'SELECT max(a) FROM t1';
-execute stmt1;
-max(a)
-2
-execute stmt1;
-max(a)
-2
-execute stmt1;
-max(a)
-2
-deallocate prepare stmt1;
-drop table t1;
-CREATE TABLE t1 (a int primary key);
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-SELECT MAX(a) FROM t1 WHERE a > 5;
-MAX(a)
-NULL
-SELECT MIN(a) FROM t1 WHERE a < 0;
-MIN(a)
-NULL
-DROP TABLE t1;
-CREATE TABLE t1 (
-id int(10) unsigned NOT NULL auto_increment,
-val enum('one','two','three') NOT NULL default 'one',
-PRIMARY KEY (id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-INSERT INTO t1 VALUES
-(1,'one'),(2,'two'),(3,'three'),(4,'one'),(5,'two');
-select val, count(*) from t1 group by val;
-val count(*)
-one 2
-two 2
-three 1
-drop table t1;
-CREATE TABLE t1 (
-id int(10) unsigned NOT NULL auto_increment,
-val set('one','two','three') NOT NULL default 'one',
-PRIMARY KEY (id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-INSERT INTO t1 VALUES
-(1,'one'),(2,'two'),(3,'three'),(4,'one'),(5,'two');
-select val, count(*) from t1 group by val;
-val count(*)
-one 2
-two 2
-three 1
-drop table t1;
-create table t1(a int, b datetime);
-insert into t1 values (1, NOW()), (2, NOW());
-create table t2 select MAX(b) from t1 group by a;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `MAX(b)` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1(f1 datetime);
-insert into t1 values (now());
-create table t2 select f2 from (select max(now()) f2 from t1) a;
-show columns from t2;
-Field Type Null Key Default Extra
-f2 datetime YES NULL
-drop table t2;
-create table t2 select f2 from (select now() f2 from t1) a;
-show columns from t2;
-Field Type Null Key Default Extra
-f2 datetime NO NULL
-drop table t2, t1;
-CREATE TABLE t1(
-id int PRIMARY KEY,
-a int,
-b int,
-INDEX i_b_id(a,b,id),
-INDEX i_id(a,id)
-);
-INSERT INTO t1 VALUES
-(1,1,4), (2,2,1), (3,1,3), (4,2,1), (5,1,1);
-SELECT MAX(id) FROM t1 WHERE id < 3 AND a=2 AND b=6;
-MAX(id)
-NULL
-DROP TABLE t1;
-CREATE TABLE t1(
-id int PRIMARY KEY,
-a int,
-b int,
-INDEX i_id(a,id),
-INDEX i_b_id(a,b,id)
-);
-INSERT INTO t1 VALUES
-(1,1,4), (2,2,1), (3,1,3), (4,2,1), (5,1,1);
-SELECT MAX(id) FROM t1 WHERE id < 3 AND a=2 AND b=6;
-MAX(id)
-NULL
-DROP TABLE t1;
-CREATE TABLE t1 (id int PRIMARY KEY, b char(3), INDEX(b));
-INSERT INTO t1 VALUES (1,'xx'), (2,'aa');
-SELECT * FROM t1;
-id b
-1 xx
-2 aa
-SELECT MAX(b) FROM t1 WHERE b < 'ppppp';
-MAX(b)
-aa
-SHOW WARNINGS;
-Level Code Message
-SELECT MAX(b) FROM t1 WHERE b < 'pp';
-MAX(b)
-aa
-DROP TABLE t1;
-CREATE TABLE t1 (id int PRIMARY KEY, b char(16), INDEX(b(4)));
-INSERT INTO t1 VALUES (1, 'xxxxbbbb'), (2, 'xxxxaaaa');
-SELECT MAX(b) FROM t1;
-MAX(b)
-xxxxbbbb
-EXPLAIN SELECT MAX(b) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-DROP TABLE t1;
-CREATE TABLE t1 (id int , b varchar(512), INDEX(b(250))) COLLATE latin1_bin;
-INSERT INTO t1 VALUES
-(1,CONCAT(REPEAT('_', 250), "qq")), (1,CONCAT(REPEAT('_', 250), "zz")),
-(1,CONCAT(REPEAT('_', 250), "aa")), (1,CONCAT(REPEAT('_', 250), "ff"));
-SELECT MAX(b) FROM t1;
-MAX(b)
-__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________zz
-EXPLAIN SELECT MAX(b) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1,1),(1,2),(2,3);
-SELECT (SELECT COUNT(DISTINCT t1.b)) FROM t1 GROUP BY t1.a;
-(SELECT COUNT(DISTINCT t1.b))
-2
-1
-SELECT (SELECT COUNT(DISTINCT 12)) FROM t1 GROUP BY t1.a;
-(SELECT COUNT(DISTINCT 12))
-1
-1
-SELECT AVG(2), BIT_AND(2), BIT_OR(2), BIT_XOR(2), COUNT(*), COUNT(12),
-COUNT(DISTINCT 12), MIN(2),MAX(2),STD(2), VARIANCE(2),SUM(2),
-GROUP_CONCAT(2),GROUP_CONCAT(DISTINCT 2);
-AVG(2) BIT_AND(2) BIT_OR(2) BIT_XOR(2) COUNT(*) COUNT(12) COUNT(DISTINCT 12) MIN(2) MAX(2) STD(2) VARIANCE(2) SUM(2) GROUP_CONCAT(2) GROUP_CONCAT(DISTINCT 2)
-2.00000 2 2 2 1 1 1 2 2 0.00000 0.00000 2 2 2
-DROP TABLE t1;
-create table t2 (ff double);
-insert into t2 values (2.2);
-select cast(sum(distinct ff) as decimal(5,2)) from t2;
-cast(sum(distinct ff) as decimal(5,2))
-2.20
-select cast(sum(distinct ff) as signed) from t2;
-cast(sum(distinct ff) as signed)
-2
-select cast(variance(ff) as decimal(10,3)) from t2;
-cast(variance(ff) as decimal(10,3))
-0.000
-select cast(min(ff) as decimal(5,2)) from t2;
-cast(min(ff) as decimal(5,2))
-2.20
-create table t1 (df decimal(5,1));
-insert into t1 values(1.1);
-insert into t1 values(2.2);
-select cast(sum(distinct df) as signed) from t1;
-cast(sum(distinct df) as signed)
-3
-select cast(min(df) as signed) from t1;
-cast(min(df) as signed)
-1
-select 1e8 * sum(distinct df) from t1;
-1e8 * sum(distinct df)
-330000000
-select 1e8 * min(df) from t1;
-1e8 * min(df)
-110000000.00000001
-create table t3 (ifl int);
-insert into t3 values(1), (2);
-select cast(min(ifl) as decimal(5,2)) from t3;
-cast(min(ifl) as decimal(5,2))
-1.00
-drop table t1, t2, t3;
-CREATE TABLE t1 (id int(11),value1 float(10,2));
-INSERT INTO t1 VALUES (1,0.00),(1,1.00), (1,2.00), (2,10.00), (2,11.00), (2,12.00), (2,13.00);
-select id, stddev_pop(value1), var_pop(value1), stddev_samp(value1), var_samp(value1) from t1 group by id;
-id stddev_pop(value1) var_pop(value1) stddev_samp(value1) var_samp(value1)
-1 0.816497 0.666667 1.000000 1.000000
-2 1.118034 1.250000 1.290994 1.666667
-DROP TABLE t1;
-CREATE TABLE t1 (col1 decimal(16,12));
-INSERT INTO t1 VALUES (-5.00000000001),(-5.00000000002),(-5.00000000003),(-5.00000000000),(-5.00000000001),(-5.00000000002);
-insert into t1 select * from t1;
-select col1,count(col1),sum(col1),avg(col1) from t1 group by col1;
-col1 count(col1) sum(col1) avg(col1)
--5.000000000030 2 -10.000000000060 -5.00000000003000000
--5.000000000020 4 -20.000000000080 -5.00000000002000000
--5.000000000010 4 -20.000000000040 -5.00000000001000000
--5.000000000000 2 -10.000000000000 -5.00000000000000000
-DROP TABLE t1;
-create table t1 (col1 decimal(16,12));
-insert into t1 values (-5.00000000001);
-insert into t1 values (-5.00000000001);
-select col1,sum(col1),max(col1),min(col1) from t1 group by col1;
-col1 sum(col1) max(col1) min(col1)
--5.000000000010 -10.000000000020 -5.000000000010 -5.000000000010
-delete from t1;
-insert into t1 values (5.00000000001);
-insert into t1 values (5.00000000001);
-select col1,sum(col1),max(col1),min(col1) from t1 group by col1;
-col1 sum(col1) max(col1) min(col1)
-5.000000000010 10.000000000020 5.000000000010 5.000000000010
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(400));
-INSERT INTO t1 (a) VALUES ("A"), ("a"), ("a "), ("a "),
-("B"), ("b"), ("b "), ("b ");
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-2
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int, c int);
-INSERT INTO t1 (a, b, c) VALUES
-(1,1,1), (1,1,2), (1,1,3),
-(1,2,1), (1,2,2), (1,2,3),
-(1,3,1), (1,3,2), (1,3,3),
-(2,1,1), (2,1,2), (2,1,3),
-(2,2,1), (2,2,2), (2,2,3),
-(2,3,1), (2,3,2), (2,3,3),
-(3,1,1), (3,1,2), (3,1,3),
-(3,2,1), (3,2,2), (3,2,3),
-(3,3,1), (3,3,2), (3,3,3);
-SELECT b/c as v, a FROM t1 ORDER BY v;
-v a
-0.33333 3
-0.33333 1
-0.33333 2
-0.50000 1
-0.50000 2
-0.50000 3
-0.66667 2
-0.66667 1
-0.66667 3
-1.00000 3
-1.00000 2
-1.00000 3
-1.00000 1
-1.00000 2
-1.00000 3
-1.00000 2
-1.00000 1
-1.00000 1
-1.50000 3
-1.50000 2
-1.50000 1
-2.00000 1
-2.00000 3
-2.00000 2
-3.00000 3
-3.00000 2
-3.00000 1
-SELECT b/c as v, SUM(a) FROM t1 GROUP BY v;
-v SUM(a)
-0.33333 6
-0.50000 6
-0.66667 6
-1.00000 18
-1.50000 6
-2.00000 6
-3.00000 6
-SELECT SUM(a) FROM t1 GROUP BY b/c;
-SUM(a)
-6
-6
-6
-18
-6
-6
-6
-DROP TABLE t1;
-set div_precision_increment= @sav_dpi;
-CREATE TABLE t1 (a INT PRIMARY KEY, b INT);
-INSERT INTO t1 VALUES (1,1), (2,2);
-CREATE TABLE t2 (a INT PRIMARY KEY, b INT);
-INSERT INTO t2 VALUES (1,1), (3,3);
-SELECT SQL_NO_CACHE
-(SELECT SUM(c.a) FROM t1 ttt, t2 ccc
-WHERE ttt.a = ccc.b AND ttt.a = t.a GROUP BY ttt.a) AS minid
-FROM t1 t, t2 c WHERE t.a = c.b;
-minid
-1
-DROP TABLE t1,t2;
-create table t1 select variance(0);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `variance(0)` double(8,4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 select stddev(0);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `stddev(0)` double(8,4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table bug22555 (i smallint primary key auto_increment, s1 smallint, s2 smallint, e decimal(30,10), o double);
-insert into bug22555 (s1, s2, e, o) values (53, 78, 11.4276528, 6.828112), (17, 78, 5.916793, 1.8502951), (18, 76, 2.679231, 9.17975591), (31, 62, 6.07831, 0.1), (19, 41, 5.37463, 15.1), (83, 73, 14.567426, 7.959222), (92, 53, 6.10151, 13.1856852), (7, 12, 13.92272, 3.442007), (92, 35, 11.95358909, 6.01376678), (38, 84, 2.572, 7.904571);
-select std(s1/s2) from bug22555 group by i;
-std(s1/s2)
-0.00000000
-0.00000000
-0.00000000
-0.00000000
-0.00000000
-0.00000000
-0.00000000
-0.00000000
-0.00000000
-0.00000000
-select std(e) from bug22555 group by i;
-std(e)
-0.00000000000000
-0.00000000000000
-0.00000000000000
-0.00000000000000
-0.00000000000000
-0.00000000000000
-0.00000000000000
-0.00000000000000
-0.00000000000000
-0.00000000000000
-select std(o) from bug22555 group by i;
-std(o)
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-drop table bug22555;
-create table bug22555 (i smallint, s1 smallint, s2 smallint, o1 double, o2 double, e1 decimal, e2 decimal);
-insert into bug22555 values (1,53,78,53,78,53,78),(2,17,78,17,78,17,78),(3,18,76,18,76,18,76);
-select i, count(*) from bug22555 group by i;
-i count(*)
-1 1
-2 1
-3 1
-select std(s1/s2) from bug22555 where i=1;
-std(s1/s2)
-0.00000000
-select std(s1/s2) from bug22555 where i=2;
-std(s1/s2)
-0.00000000
-select std(s1/s2) from bug22555 where i=3;
-std(s1/s2)
-0.00000000
-select std(s1/s2) from bug22555 where i=1 group by i;
-std(s1/s2)
-0.00000000
-select std(s1/s2) from bug22555 where i=2 group by i;
-std(s1/s2)
-0.00000000
-select std(s1/s2) from bug22555 where i=3 group by i;
-std(s1/s2)
-0.00000000
-select std(s1/s2) from bug22555 group by i order by i;
-std(s1/s2)
-0.00000000
-0.00000000
-0.00000000
-select i, count(*), std(o1/o2) from bug22555 group by i order by i;
-i count(*) std(o1/o2)
-1 1 0
-2 1 0
-3 1 0
-select i, count(*), std(e1/e2) from bug22555 group by i order by i;
-i count(*) std(e1/e2)
-1 1 0.00000000
-2 1 0.00000000
-3 1 0.00000000
-set @saved_div_precision_increment=@@div_precision_increment;
-set div_precision_increment=19;
-select i, count(*), variance(s1/s2) from bug22555 group by i order by i;
-i count(*) variance(s1/s2)
-1 1 0.000000000000000000000000000000
-2 1 0.000000000000000000000000000000
-3 1 0.000000000000000000000000000000
-select i, count(*), variance(o1/o2) from bug22555 group by i order by i;
-i count(*) variance(o1/o2)
-1 1 0
-2 1 0
-3 1 0
-select i, count(*), variance(e1/e2) from bug22555 group by i order by i;
-i count(*) variance(e1/e2)
-1 1 0.000000000000000000000000000000
-2 1 0.000000000000000000000000000000
-3 1 0.000000000000000000000000000000
-select i, count(*), std(s1/s2) from bug22555 group by i order by i;
-i count(*) std(s1/s2)
-1 1 0.000000000000000000000000000000
-2 1 0.000000000000000000000000000000
-3 1 0.000000000000000000000000000000
-select i, count(*), std(o1/o2) from bug22555 group by i order by i;
-i count(*) std(o1/o2)
-1 1 0
-2 1 0
-3 1 0
-select i, count(*), std(e1/e2) from bug22555 group by i order by i;
-i count(*) std(e1/e2)
-1 1 0.000000000000000000000000000000
-2 1 0.000000000000000000000000000000
-3 1 0.000000000000000000000000000000
-set div_precision_increment=20;
-select i, count(*), variance(s1/s2) from bug22555 group by i order by i;
-i count(*) variance(s1/s2)
-1 1 0.000000000000000000000000000000
-2 1 0.000000000000000000000000000000
-3 1 0.000000000000000000000000000000
-select i, count(*), variance(o1/o2) from bug22555 group by i order by i;
-i count(*) variance(o1/o2)
-1 1 0
-2 1 0
-3 1 0
-select i, count(*), variance(e1/e2) from bug22555 group by i order by i;
-i count(*) variance(e1/e2)
-1 1 0.000000000000000000000000000000
-2 1 0.000000000000000000000000000000
-3 1 0.000000000000000000000000000000
-select i, count(*), std(s1/s2) from bug22555 group by i order by i;
-i count(*) std(s1/s2)
-1 1 0.000000000000000000000000000000
-2 1 0.000000000000000000000000000000
-3 1 0.000000000000000000000000000000
-select i, count(*), std(o1/o2) from bug22555 group by i order by i;
-i count(*) std(o1/o2)
-1 1 0
-2 1 0
-3 1 0
-select i, count(*), std(e1/e2) from bug22555 group by i order by i;
-i count(*) std(e1/e2)
-1 1 0.000000000000000000000000000000
-2 1 0.000000000000000000000000000000
-3 1 0.000000000000000000000000000000
-set @@div_precision_increment=@saved_div_precision_increment;
-insert into bug22555 values (1,53,78,53,78,53,78),(2,17,78,17,78,17,78),(3,18,76,18,76,18,76);
-insert into bug22555 values (1,53,78,53,78,53,78),(2,17,78,17,78,17,78),(3,18,76,18,76,18,76);
-insert into bug22555 values (1,53,78,53,78,53,78),(2,17,78,17,78,17,78),(3,18,76,18,76,18,76);
-select i, count(*), std(s1/s2) from bug22555 group by i order by i;
-i count(*) std(s1/s2)
-1 4 0.00000000
-2 4 0.00000000
-3 4 0.00000000
-select i, count(*), round(std(o1/o2), 16) from bug22555 group by i order by i;
-i count(*) round(std(o1/o2), 16)
-1 4 0.0000000000000000
-2 4 0.0000000000000000
-3 4 0.0000000000000000
-select i, count(*), std(e1/e2) from bug22555 group by i order by i;
-i count(*) std(e1/e2)
-1 4 0.00000000
-2 4 0.00000000
-3 4 0.00000000
-select std(s1/s2) from bug22555;
-std(s1/s2)
-0.21325764
-select std(o1/o2) from bug22555;
-std(o1/o2)
-0.2132576358664934
-select std(e1/e2) from bug22555;
-std(e1/e2)
-0.21325764
-set @saved_div_precision_increment=@@div_precision_increment;
-set div_precision_increment=19;
-select i, count(*), std(s1/s2) from bug22555 group by i order by i;
-i count(*) std(s1/s2)
-1 4 0.000000000000000000000000000000
-2 4 0.000000000000000000000000000000
-3 4 0.000000000000000000000000000000
-select i, count(*), round(std(o1/o2), 16) from bug22555 group by i order by i;
-i count(*) round(std(o1/o2), 16)
-1 4 0.0000000000000000
-2 4 0.0000000000000000
-3 4 0.0000000000000000
-select i, count(*), std(e1/e2) from bug22555 group by i order by i;
-i count(*) std(e1/e2)
-1 4 0.000000000000000000000000000000
-2 4 0.000000000000000000000000000000
-3 4 0.000000000000000000000000000000
-select round(std(s1/s2), 17) from bug22555;
-round(std(s1/s2), 17)
-0.21325763586649340
-select std(o1/o2) from bug22555;
-std(o1/o2)
-0.2132576358664934
-select round(std(e1/e2), 17) from bug22555;
-round(std(e1/e2), 17)
-0.21325763586649340
-set div_precision_increment=20;
-select i, count(*), std(s1/s2) from bug22555 group by i order by i;
-i count(*) std(s1/s2)
-1 4 0.000000000000000000000000000000
-2 4 0.000000000000000000000000000000
-3 4 0.000000000000000000000000000000
-select i, count(*), round(std(o1/o2), 16) from bug22555 group by i order by i;
-i count(*) round(std(o1/o2), 16)
-1 4 0.0000000000000000
-2 4 0.0000000000000000
-3 4 0.0000000000000000
-select i, count(*), std(e1/e2) from bug22555 group by i order by i;
-i count(*) std(e1/e2)
-1 4 0.000000000000000000000000000000
-2 4 0.000000000000000000000000000000
-3 4 0.000000000000000000000000000000
-select round(std(s1/s2), 17) from bug22555;
-round(std(s1/s2), 17)
-0.21325763586649340
-select std(o1/o2) from bug22555;
-std(o1/o2)
-0.2132576358664934
-select round(std(e1/e2), 17) from bug22555;
-round(std(e1/e2), 17)
-0.21325763586649340
-set @@div_precision_increment=@saved_div_precision_increment;
-drop table bug22555;
-create table bug22555 (s smallint, o double, e decimal);
-insert into bug22555 values (1,1,1),(2,2,2),(3,3,3),(6,6,6),(7,7,7);
-select var_samp(s), var_pop(s) from bug22555;
-var_samp(s) var_pop(s)
-6.7000 5.3600
-select var_samp(o), var_pop(o) from bug22555;
-var_samp(o) var_pop(o)
-6.7 5.36
-select var_samp(e), var_pop(e) from bug22555;
-var_samp(e) var_pop(e)
-6.7000 5.3600
-drop table bug22555;
-create table bug22555 (s smallint, o double, e decimal);
-insert into bug22555 values (null,null,null),(null,null,null);
-select var_samp(s) as 'null', var_pop(s) as 'null' from bug22555;
-null null
-NULL NULL
-select var_samp(o) as 'null', var_pop(o) as 'null' from bug22555;
-null null
-NULL NULL
-select var_samp(e) as 'null', var_pop(e) as 'null' from bug22555;
-null null
-NULL NULL
-insert into bug22555 values (1,1,1);
-select var_samp(s) as 'null', var_pop(s) as '0' from bug22555;
-null 0
-NULL 0.0000
-select var_samp(o) as 'null', var_pop(o) as '0' from bug22555;
-null 0
-NULL 0
-select var_samp(e) as 'null', var_pop(e) as '0' from bug22555;
-null 0
-NULL 0.0000
-insert into bug22555 values (2,2,2);
-select var_samp(s) as '0.5', var_pop(s) as '0.25' from bug22555;
-0.5 0.25
-0.5000 0.2500
-select var_samp(o) as '0.5', var_pop(o) as '0.25' from bug22555;
-0.5 0.25
-0.5 0.25
-select var_samp(e) as '0.5', var_pop(e) as '0.25' from bug22555;
-0.5 0.25
-0.5000 0.2500
-drop table bug22555;
-create table t1 (a decimal(20));
-insert into t1 values (12345678901234567890);
-select count(a) from t1;
-count(a)
-1
-select count(distinct a) from t1;
-count(distinct a)
-1
-drop table t1;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8);
-INSERT INTO t1 SELECT a, b+8 FROM t1;
-INSERT INTO t1 SELECT a, b+16 FROM t1;
-INSERT INTO t1 SELECT a, b+32 FROM t1;
-INSERT INTO t1 SELECT a, b+64 FROM t1;
-INSERT INTO t1 SELECT a, b+128 FROM t1;
-INSERT INTO t1 SELECT a, b+256 FROM t1;
-INSERT INTO t1 SELECT a, b+512 FROM t1;
-INSERT INTO t1 SELECT a, b+1024 FROM t1;
-INSERT INTO t1 SELECT a, b+2048 FROM t1;
-INSERT INTO t1 SELECT a, b+4096 FROM t1;
-INSERT INTO t1 SELECT a, b+8192 FROM t1;
-INSERT INTO t1 SELECT a, b+16384 FROM t1;
-INSERT INTO t1 SELECT a, b+32768 FROM t1;
-SELECT a,COUNT(DISTINCT b) AS cnt FROM t1 GROUP BY a HAVING cnt > 50;
-a cnt
-1 65536
-SELECT a,SUM(DISTINCT b) AS sumation FROM t1 GROUP BY a HAVING sumation > 50;
-a sumation
-1 2147516416
-SELECT a,AVG(DISTINCT b) AS average FROM t1 GROUP BY a HAVING average > 50;
-a average
-1 32768.5000
-DROP TABLE t1;
-CREATE TABLE t1 ( a INT, b INT, KEY(a) );
-INSERT INTO t1 VALUES (NULL, 1), (NULL, 2);
-EXPLAIN SELECT MIN(a), MIN(b) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-SELECT MIN(a), MIN(b) FROM t1;
-MIN(a) MIN(b)
-NULL 1
-CREATE TABLE t2( a INT, b INT, c INT, KEY(a, b) );
-INSERT INTO t2 ( a, b, c ) VALUES ( 1, NULL, 2 ), ( 1, 3, 4 ), ( 1, 4, 4 );
-EXPLAIN SELECT MIN(b), MIN(c) FROM t2 WHERE a = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref a a 5 const 2
-SELECT MIN(b), MIN(c) FROM t2 WHERE a = 1;
-MIN(b) MIN(c)
-3 2
-CREATE TABLE t3 (a INT, b INT, c int, KEY(a, b));
-INSERT INTO t3 VALUES (1, NULL, 1), (2, NULL, 2), (2, NULL, 2), (3, NULL, 3);
-EXPLAIN SELECT MIN(a), MIN(b) FROM t3 where a = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-SELECT MIN(a), MIN(b) FROM t3 where a = 2;
-MIN(a) MIN(b)
-2 NULL
-CREATE TABLE t4 (a INT, b INT, c int, KEY(a, b));
-INSERT INTO t4 VALUES (1, 1, 1), (2, NULL, 2), (2, NULL, 2), (3, 1, 3);
-EXPLAIN SELECT MIN(a), MIN(b) FROM t4 where a = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-SELECT MIN(a), MIN(b) FROM t4 where a = 2;
-MIN(a) MIN(b)
-2 NULL
-SELECT MIN(b), min(c) FROM t4 where a = 2;
-MIN(b) min(c)
-NULL 2
-CREATE TABLE t5( a INT, b INT, KEY( a, b) );
-INSERT INTO t5 VALUES( 1, 1 ), ( 1, 2 );
-EXPLAIN SELECT MIN(a), MIN(b) FROM t5 WHERE a = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-SELECT MIN(a), MIN(b) FROM t5 WHERE a = 1;
-MIN(a) MIN(b)
-1 1
-SELECT MIN(a), MIN(b) FROM t5 WHERE a = 1 and b > 1;
-MIN(a) MIN(b)
-1 2
-DROP TABLE t1, t2, t3, t4, t5;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 values (),(),();
-SELECT (SELECT SLEEP(0) FROM t1 ORDER BY AVG(DISTINCT a) ) as x FROM t1
-GROUP BY x;
-x
-0
-SELECT 1 FROM t1 GROUP BY (SELECT SLEEP(0) FROM t1 ORDER BY AVG(DISTINCT a) );
-1
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b date NOT NULL, KEY k1 (a,b));
-SELECT MIN(b) FROM t1 WHERE a=1 AND b>'2007-08-01';
-MIN(b)
-NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-SET SQL_MODE=ONLY_FULL_GROUP_BY;
-SELECT a FROM t1 HAVING COUNT(*)>2;
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT COUNT(*), a FROM t1;
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SET SQL_MODE=DEFAULT;
-SELECT a FROM t1 HAVING COUNT(*)>2;
-a
-1
-SELECT COUNT(*), a FROM t1;
-COUNT(*) a
-4 1
-DROP TABLE t1;
-set SQL_MODE=ONLY_FULL_GROUP_BY;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-CREATE VIEW v1 AS SELECT a,(a + 1) AS y FROM t1;
-EXPLAIN EXTENDED SELECT y FROM v1 GROUP BY v1.y;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 select `test`.`t1`.`a` + 1 AS `y` from `test`.`t1` group by `test`.`t1`.`a` + 1
-DROP VIEW v1;
-DROP TABLE t1;
-SET SQL_MODE=DEFAULT;
-CREATE TABLE t1(a DOUBLE);
-INSERT INTO t1 VALUES (10), (20);
-SELECT AVG(a), CAST(AVG(a) AS DECIMAL) FROM t1;
-AVG(a) CAST(AVG(a) AS DECIMAL)
-15 15
-DROP TABLE t1;
-CREATE TABLE derived1 (a bigint(21));
-INSERT INTO derived1 VALUES (2);
-CREATE TABLE D (
-pk int(11) NOT NULL AUTO_INCREMENT,
-int_nokey int(11) DEFAULT NULL,
-int_key int(11) DEFAULT NULL,
-filler blob,
-PRIMARY KEY (pk),
-KEY int_key (int_key)
-);
-INSERT INTO D VALUES
-(39,40,4,repeat(' X', 42)),
-(43,56,4,repeat(' X', 42)),
-(47,12,4,repeat(' X', 42)),
-(71,28,4,repeat(' X', 42)),
-(76,54,4,repeat(' X', 42)),
-(83,45,4,repeat(' X', 42)),
-(105,53,12,NULL);
-SELECT
-(SELECT COUNT( int_nokey )
-FROM derived1 AS X
-WHERE
-X.int_nokey < 61
-GROUP BY pk
-LIMIT 1)
-FROM D AS X
-WHERE X.int_key < 13
-GROUP BY int_nokey LIMIT 1;
-(SELECT COUNT( int_nokey )
-FROM derived1 AS X
-WHERE
-X.int_nokey < 61
-GROUP BY pk
-LIMIT 1)
-1
-DROP TABLE derived1;
-DROP TABLE D;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1,1), (1,2), (1,3);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (3),(4);
-SET SQL_MODE='ONLY_FULL_GROUP_BY';
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-3
-SELECT COUNT(*) FROM t1 where a=1;
-COUNT(*)
-3
-SELECT COUNT(*),a FROM t1;
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT COUNT(*) FROM t1 a JOIN t1 b ON a.a= b.a;
-COUNT(*)
-9
-SELECT COUNT(*), (SELECT count(*) FROM t1 inr WHERE inr.a = outr.a)
-FROM t1 outr;
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT COUNT(*) FROM t1 outr, (SELECT b, count(*) FROM t2) as t3;
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT COUNT(*) FROM t1 outr where (1,1) in (SELECT a, count(*) FROM t2);
-COUNT(*)
-0
-SELECT COUNT(*) FROM t1 a JOIN t1 outr
-ON a.a= (SELECT count(*) FROM t1 inr WHERE inr.a = outr.a);
-COUNT(*)
-0
-SELECT * FROM (SELECT a FROM t1 GROUP BY a) sq JOIN t2 ON a = b;
-a b
-SET SQL_MODE=default;
-DROP TABLE t1,t2;
-End of 5.0 tests
-#
-# BUG#47280 - strange results from count(*) with order by multiple
-# columns without where/group
-#
-#
-# Initialize test
-#
-CREATE TABLE t1 (
-pk INT NOT NULL,
-i INT,
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (1,11),(2,12),(3,13);
-#
-# Start test
-# All the following queries shall return 1 record
-#
-
-# Masking all correct values {11...13} for column i in this result.
-SELECT MAX(pk) as max, i
-FROM t1
-ORDER BY max;
-max i
-3 #
-
-EXPLAIN
-SELECT MAX(pk) as max, i
-FROM t1
-ORDER BY max;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-
-# Only 11 is correct for collumn i in this result
-SELECT MAX(pk) as max, i
-FROM t1
-WHERE pk<2
-ORDER BY max;
-max i
-1 11
-#
-# Cleanup
-#
-DROP TABLE t1;
-#
-# Bug#43668: Wrong comparison and MIN/MAX for YEAR(2)
-#
-create table t1 (f1 year(2), f2 year(4), f3 date, f4 datetime);
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-insert into t1 values
-(98,1998,19980101,"1998-01-01 00:00:00"),
-(00,2000,20000101,"2000-01-01 00:00:01"),
-(02,2002,20020101,"2002-01-01 23:59:59"),
-(60,2060,20600101,"2060-01-01 11:11:11"),
-(70,1970,19700101,"1970-11-11 22:22:22"),
-(NULL,NULL,NULL,NULL),
-(71,1971,19710101,"1971-11-11 22:22:22");
-select min(f1),max(f1) from t1;
-min(f1) max(f1)
-70 60
-select min(f2),max(f2) from t1;
-min(f2) max(f2)
-1970 2060
-select min(f3),max(f3) from t1;
-min(f3) max(f3)
-1970-01-01 2060-01-01
-select min(f4),max(f4) from t1;
-min(f4) max(f4)
-1970-11-11 22:22:22 2060-01-01 11:11:11
-select a.f1 as a, b.f1 as b, a.f1 > b.f1 as gt,
-a.f1 < b.f1 as lt, a.f1<=>b.f1 as eq
-from t1 a, t1 b;
-a b gt lt eq
-98 98 0 0 1
-00 98 1 0 0
-02 98 1 0 0
-60 98 1 0 0
-70 98 0 1 0
-NULL 98 NULL NULL 0
-71 98 0 1 0
-98 00 0 1 0
-00 00 0 0 1
-02 00 1 0 0
-60 00 1 0 0
-70 00 0 1 0
-NULL 00 NULL NULL 0
-71 00 0 1 0
-98 02 0 1 0
-00 02 0 1 0
-02 02 0 0 1
-60 02 1 0 0
-70 02 0 1 0
-NULL 02 NULL NULL 0
-71 02 0 1 0
-98 60 0 1 0
-00 60 0 1 0
-02 60 0 1 0
-60 60 0 0 1
-70 60 0 1 0
-NULL 60 NULL NULL 0
-71 60 0 1 0
-98 70 1 0 0
-00 70 1 0 0
-02 70 1 0 0
-60 70 1 0 0
-70 70 0 0 1
-NULL 70 NULL NULL 0
-71 70 1 0 0
-98 NULL NULL NULL 0
-00 NULL NULL NULL 0
-02 NULL NULL NULL 0
-60 NULL NULL NULL 0
-70 NULL NULL NULL 0
-NULL NULL NULL NULL 1
-71 NULL NULL NULL 0
-98 71 1 0 0
-00 71 1 0 0
-02 71 1 0 0
-60 71 1 0 0
-70 71 0 1 0
-NULL 71 NULL NULL 0
-71 71 0 0 1
-select a.f1 as a, b.f2 as b, a.f1 > b.f2 as gt,
-a.f1 < b.f2 as lt, a.f1<=>b.f2 as eq
-from t1 a, t1 b;
-a b gt lt eq
-98 1998 0 0 1
-00 1998 1 0 0
-02 1998 1 0 0
-60 1998 1 0 0
-70 1998 0 1 0
-NULL 1998 NULL NULL 0
-71 1998 0 1 0
-98 2000 0 1 0
-00 2000 0 0 1
-02 2000 1 0 0
-60 2000 1 0 0
-70 2000 0 1 0
-NULL 2000 NULL NULL 0
-71 2000 0 1 0
-98 2002 0 1 0
-00 2002 0 1 0
-02 2002 0 0 1
-60 2002 1 0 0
-70 2002 0 1 0
-NULL 2002 NULL NULL 0
-71 2002 0 1 0
-98 2060 0 1 0
-00 2060 0 1 0
-02 2060 0 1 0
-60 2060 0 0 1
-70 2060 0 1 0
-NULL 2060 NULL NULL 0
-71 2060 0 1 0
-98 1970 1 0 0
-00 1970 1 0 0
-02 1970 1 0 0
-60 1970 1 0 0
-70 1970 0 0 1
-NULL 1970 NULL NULL 0
-71 1970 1 0 0
-98 NULL NULL NULL 0
-00 NULL NULL NULL 0
-02 NULL NULL NULL 0
-60 NULL NULL NULL 0
-70 NULL NULL NULL 0
-NULL NULL NULL NULL 1
-71 NULL NULL NULL 0
-98 1971 1 0 0
-00 1971 1 0 0
-02 1971 1 0 0
-60 1971 1 0 0
-70 1971 0 1 0
-NULL 1971 NULL NULL 0
-71 1971 0 0 1
-select a.f1 as a, b.f3 as b, a.f1 > b.f3 as gt,
-a.f1 < b.f3 as lt, a.f1<=>b.f3 as eq
-from t1 a, t1 b;
-a b gt lt eq
-98 1998-01-01 0 1 0
-00 1998-01-01 1 0 0
-02 1998-01-01 1 0 0
-60 1998-01-01 1 0 0
-70 1998-01-01 0 1 0
-NULL 1998-01-01 NULL NULL 0
-71 1998-01-01 0 1 0
-98 2000-01-01 0 1 0
-00 2000-01-01 0 1 0
-02 2000-01-01 1 0 0
-60 2000-01-01 1 0 0
-70 2000-01-01 0 1 0
-NULL 2000-01-01 NULL NULL 0
-71 2000-01-01 0 1 0
-98 2002-01-01 0 1 0
-00 2002-01-01 0 1 0
-02 2002-01-01 0 1 0
-60 2002-01-01 1 0 0
-70 2002-01-01 0 1 0
-NULL 2002-01-01 NULL NULL 0
-71 2002-01-01 0 1 0
-98 2060-01-01 0 1 0
-00 2060-01-01 0 1 0
-02 2060-01-01 0 1 0
-60 2060-01-01 0 1 0
-70 2060-01-01 0 1 0
-NULL 2060-01-01 NULL NULL 0
-71 2060-01-01 0 1 0
-98 1970-01-01 1 0 0
-00 1970-01-01 1 0 0
-02 1970-01-01 1 0 0
-60 1970-01-01 1 0 0
-70 1970-01-01 0 1 0
-NULL 1970-01-01 NULL NULL 0
-71 1970-01-01 1 0 0
-98 NULL NULL NULL 0
-00 NULL NULL NULL 0
-02 NULL NULL NULL 0
-60 NULL NULL NULL 0
-70 NULL NULL NULL 0
-NULL NULL NULL NULL 1
-71 NULL NULL NULL 0
-98 1971-01-01 1 0 0
-00 1971-01-01 1 0 0
-02 1971-01-01 1 0 0
-60 1971-01-01 1 0 0
-70 1971-01-01 0 1 0
-NULL 1971-01-01 NULL NULL 0
-71 1971-01-01 0 1 0
-select a.f1 as a, b.f4 as b, a.f1 > b.f4 as gt,
-a.f1 < b.f4 as lt, a.f1<=>b.f4 as eq
-from t1 a, t1 b;
-a b gt lt eq
-98 1998-01-01 00:00:00 0 1 0
-00 1998-01-01 00:00:00 1 0 0
-02 1998-01-01 00:00:00 1 0 0
-60 1998-01-01 00:00:00 1 0 0
-70 1998-01-01 00:00:00 0 1 0
-NULL 1998-01-01 00:00:00 NULL NULL 0
-71 1998-01-01 00:00:00 0 1 0
-98 2000-01-01 00:00:01 0 1 0
-00 2000-01-01 00:00:01 0 1 0
-02 2000-01-01 00:00:01 1 0 0
-60 2000-01-01 00:00:01 1 0 0
-70 2000-01-01 00:00:01 0 1 0
-NULL 2000-01-01 00:00:01 NULL NULL 0
-71 2000-01-01 00:00:01 0 1 0
-98 2002-01-01 23:59:59 0 1 0
-00 2002-01-01 23:59:59 0 1 0
-02 2002-01-01 23:59:59 0 1 0
-60 2002-01-01 23:59:59 1 0 0
-70 2002-01-01 23:59:59 0 1 0
-NULL 2002-01-01 23:59:59 NULL NULL 0
-71 2002-01-01 23:59:59 0 1 0
-98 2060-01-01 11:11:11 0 1 0
-00 2060-01-01 11:11:11 0 1 0
-02 2060-01-01 11:11:11 0 1 0
-60 2060-01-01 11:11:11 0 1 0
-70 2060-01-01 11:11:11 0 1 0
-NULL 2060-01-01 11:11:11 NULL NULL 0
-71 2060-01-01 11:11:11 0 1 0
-98 1970-11-11 22:22:22 1 0 0
-00 1970-11-11 22:22:22 1 0 0
-02 1970-11-11 22:22:22 1 0 0
-60 1970-11-11 22:22:22 1 0 0
-70 1970-11-11 22:22:22 0 1 0
-NULL 1970-11-11 22:22:22 NULL NULL 0
-71 1970-11-11 22:22:22 1 0 0
-98 NULL NULL NULL 0
-00 NULL NULL NULL 0
-02 NULL NULL NULL 0
-60 NULL NULL NULL 0
-70 NULL NULL NULL 0
-NULL NULL NULL NULL 1
-71 NULL NULL NULL 0
-98 1971-11-11 22:22:22 1 0 0
-00 1971-11-11 22:22:22 1 0 0
-02 1971-11-11 22:22:22 1 0 0
-60 1971-11-11 22:22:22 1 0 0
-70 1971-11-11 22:22:22 0 1 0
-NULL 1971-11-11 22:22:22 NULL NULL 0
-71 1971-11-11 22:22:22 0 1 0
-select *, f1 = f2 from t1;
-f1 f2 f3 f4 f1 = f2
-98 1998 1998-01-01 1998-01-01 00:00:00 1
-00 2000 2000-01-01 2000-01-01 00:00:01 1
-02 2002 2002-01-01 2002-01-01 23:59:59 1
-60 2060 2060-01-01 2060-01-01 11:11:11 1
-70 1970 1970-01-01 1970-11-11 22:22:22 1
-NULL NULL NULL NULL NULL
-71 1971 1971-01-01 1971-11-11 22:22:22 1
-drop table t1;
-#
-# Bug #54465: assert: field_types == 0 || field_types[field_pos] ==
-# MYSQL_TYPE_LONGLONG
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2);
-SELECT MAX((SELECT 1 FROM t1 ORDER BY @var LIMIT 1)) m FROM t1 t2, t1
-ORDER BY t1.a;
-m
-1
-DROP TABLE t1;
-#
-# Bug#58030 crash in Item_func_geometry_from_text::val_str
-#
-SELECT MAX(TIMESTAMP(RAND(0)));
-SELECT MIN(TIMESTAMP(RAND(0)));
-#
-# Bug#58177 crash and valgrind warnings in decimal and protocol sending functions...
-#
-SELECT MIN(GET_LOCK('aaaaaaaaaaaaaaaaa',0) / '0b1111111111111111111111111111111111111111111111111111111111111111111111111' ^ (RAND()));
-SELECT MIN(GET_LOCK('aaaaaaaaaaaaaaaaa',0) / '0b1111111111111111111111111111111111111111111111111111111111111111111111111' ^ (RAND()));
-SELECT MIN(GET_LOCK('aaaaaaaaaaaaaaaaa',0) / '0b1111111111111111111111111111111111111111111111111111111111111111111111111' ^ (RAND()));
-SELECT MIN(GET_LOCK('aaaaaaaaaaaaaaaaa',0) / '0b1111111111111111111111111111111111111111111111111111111111111111111111111' ^ (RAND()));
-SELECT RELEASE_LOCK('aaaaaaaaaaaaaaaaa');
-#
-# Bug #11766094 - 59132: MIN() AND MAX() REMOVE UNSIGNEDNESS
-#
-CREATE TABLE t1 (a BIGINT UNSIGNED);
-INSERT INTO t1 VALUES (18446668621106209655);
-SELECT MAX(LENGTH(a)), LENGTH(MAX(a)), MIN(a), MAX(a), CONCAT(MIN(a)), CONCAT(MAX(a)) FROM t1;
-MAX(LENGTH(a)) LENGTH(MAX(a)) MIN(a) MAX(a) CONCAT(MIN(a)) CONCAT(MAX(a))
-20 20 18446668621106209655 18446668621106209655 18446668621106209655 18446668621106209655
-DROP TABLE t1;
-#
-# Bug #11766270 59343: YEAR(4): INCORRECT RESULT AND VALGRIND WARNINGS WITH MIN/MAX, UNION
-#
-CREATE TABLE t1(f1 YEAR(4));
-INSERT INTO t1 VALUES (0000),(2001);
-(SELECT MAX(f1) FROM t1) UNION (SELECT MAX(f1) FROM t1);
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def MAX(f1) MAX(f1) 13 4 4 Y 32864 0 63
-MAX(f1)
-2001
-DROP TABLE t1;
-#
-# LP BUG#813418 - incorrect optimisation of max/min by index for
-# negated BETWEEN
-CREATE TABLE t1 (a int, KEY (a));
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
-SELECT MAX(a) FROM t1 WHERE a NOT BETWEEN 3 AND 9;
-MAX(a)
-10
-drop table t1;
-#
-End of 5.1 tests
-#
-# Bug #904345: MIN/MAX optimization with constant FALSE condition
-#
-CREATE TABLE t1 (a int NOT NULL, KEY(a));
-INSERT INTO t1 VALUES (10), (8), (11), (7), (15), (12), (9);
-CREATE TABLE t2 (a int, b int);
-INSERT INTO t2 VALUES
-(8,2), (6,9), (8,4), (5,3), (9,1);
-EXPLAIN EXTENDED
-SELECT MAX(a) FROM t1 WHERE (1,2) IN (SELECT 3,4) AND a<10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select max(`test`.`t1`.`a`) AS `MAX(a)` from `test`.`t1` where 0
-SELECT MAX(a) FROM t1 WHERE (1,2) IN (SELECT 3,4) AND a<10;
-MAX(a)
-NULL
-EXPLAIN EXTENDED
-SELECT MAX(a) FROM t1 WHERE (1,2) IN (SELECT a,b FROM t2 WHERE b<5) and a<10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1 100.00
-1 PRIMARY t1 range a a 4 NULL 4 100.00 Using where; Using index; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select max(`test`.`t1`.`a`) AS `MAX(a)` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`a` = 1 and `test`.`t2`.`b` = 2 and `test`.`t1`.`a` < 10
-SELECT MAX(a) FROM t1 WHERE (1,2) IN (SELECT a,b FROM t2 WHERE b<5) and a<10;
-MAX(a)
-NULL
-EXPLAIN EXTENDED
-SELECT MAX(a) FROM t1 WHERE RAND()*0<>0 AND a<10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range a a 4 NULL 4 100.00 Using where; Using index
-Warnings:
-Note 1003 select max(`test`.`t1`.`a`) AS `MAX(a)` from `test`.`t1` where rand() * 0 <> 0 and `test`.`t1`.`a` < 10
-SELECT MAX(a) FROM t1 WHERE RAND()*0<>0 AND a<10;
-MAX(a)
-NULL
-DROP TABLE t1,t2;
-#
-# Bug #879860: MIN/MAX for subquery returning empty set
-#
-CREATE TABLE t1 (a int PRIMARY KEY);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (a int NOT NULL);
-INSERT INTO t2 VALUES (10);
-CREATE TABLE t3 ( a int, b int);
-INSERT INTO t3 VALUES (19,1), (20,5);
-EXPLAIN EXTENDED
-SELECT (SELECT MIN(t1.a) FROM t1,t2 WHERE t2.a = t3.b) FROM t3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-2 DEPENDENT SUBQUERY t2 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1276 Field or reference 'test.t3.b' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select <expr_cache><`test`.`t3`.`b`>((/* select#2 */ select min(1) from dual where 10 = `test`.`t3`.`b`)) AS `(SELECT MIN(t1.a) FROM t1,t2 WHERE t2.a = t3.b)` from `test`.`t3`
-SELECT (SELECT MIN(t1.a) FROM t1,t2 WHERE t2.a = t3.b) FROM t3;
-(SELECT MIN(t1.a) FROM t1,t2 WHERE t2.a = t3.b)
-NULL
-NULL
-DROP TABLE t1,t2,t3;
-#
-# Bug #884175: MIN/MAX for short varchar = long const
-#
-CREATE TABLE t1 (f1 varchar(1), f2 varchar(1), KEY (f2));
-INSERT INTO t1 VALUES ('b', 'b'), ('a','a');
-EXPLAIN
-SELECT MAX(f1) FROM t1 WHERE f1 = 'abc';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT MAX(f1) FROM t1 WHERE f1 = 'abc';
-MAX(f1)
-NULL
-EXPLAIN
-SELECT MAX(f2) FROM t1 WHERE f2 = 'abc';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref f2 f2 4 const 1 Using where; Using index
-SELECT MAX(f2) FROM t1 WHERE f2 = 'abc';
-MAX(f2)
-NULL
-EXPLAIN
-SELECT MIN(f1) FROM t1 WHERE f1 >= 'abc';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT MIN(f1) FROM t1 WHERE f1 >= 'abc';
-MIN(f1)
-b
-EXPLAIN
-SELECT MIN(f2) FROM t1 WHERE f2 >= 'abc';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index f2 f2 4 NULL 2 Using where; Using index
-SELECT MIN(f2) FROM t1 WHERE f2 >= 'abc';
-MIN(f2)
-b
-EXPLAIN
-SELECT MIN(f1) FROM t1 WHERE f1 BETWEEN 'abc' AND 'b' ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT MIN(f1) FROM t1 WHERE f1 BETWEEN 'abc' AND 'b' ;
-MIN(f1)
-b
-EXPLAIN
-SELECT MIN(f2) FROM t1 WHERE f2 BETWEEN 'abc' AND 'b' ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index f2 f2 4 NULL 2 Using where; Using index
-SELECT MIN(f2) FROM t1 WHERE f2 BETWEEN 'abc' AND 'b' ;
-MIN(f2)
-b
-DROP TABLE t1;
-End of 5.2 tests
-#
-# BUG#46680 - Assertion failed in file item_subselect.cc,
-# line 305 crashing on HAVING subquery
-#
-# Create tables
-#
-CREATE TABLE t1 (
-pk INT,
-v VARCHAR(1) DEFAULT NULL,
-PRIMARY KEY(pk)
-);
-CREATE TABLE t2 LIKE t1;
-CREATE TABLE t3 LIKE t1;
-CREATE TABLE empty1 (a int);
-INSERT INTO t1 VALUES (1,'c'),(2,NULL);
-INSERT INTO t2 VALUES (3,'m'),(4,NULL);
-INSERT INTO t3 VALUES (1,'n');
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch='materialization=on,in_to_exists=off,semijoin=off';
-
-#
-# 1) Test that subquery materialization is setup for query with
-# premature optimize() exit due to "Impossible WHERE"
-#
-SELECT MIN(t2.pk)
-FROM t2 JOIN t1 ON t1.pk=t2.pk
-WHERE 'j'
-HAVING ('m') IN (
-SELECT v
-FROM t2);
-MIN(t2.pk)
-NULL
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'j'
-Warning 1292 Truncated incorrect INTEGER value: 'j'
-
-EXPLAIN
-SELECT MIN(t2.pk)
-FROM t2 JOIN t1 ON t1.pk=t2.pk
-WHERE 'j'
-HAVING ('m') IN (
-SELECT v
-FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'j'
-Warning 1292 Truncated incorrect INTEGER value: 'j'
-
-#
-# 2) Test that subquery materialization is setup for query with
-# premature optimize() exit due to "No matching min/max row"
-#
-SELECT MIN(t2.pk)
-FROM t2
-WHERE t2.pk>10
-HAVING ('m') IN (
-SELECT v
-FROM t2);
-MIN(t2.pk)
-NULL
-
-EXPLAIN
-SELECT MIN(t2.pk)
-FROM t2
-WHERE t2.pk>10
-HAVING ('m') IN (
-SELECT v
-FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No matching min/max row
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-
-#
-# 3) Test that subquery materialization is setup for query with
-# premature optimize() exit due to "Select tables optimized away"
-#
-SELECT MIN(pk)
-FROM t1
-WHERE pk=NULL
-HAVING ('m') IN (
-SELECT v
-FROM t2);
-MIN(pk)
-NULL
-
-EXPLAIN
-SELECT MIN(pk)
-FROM t1
-WHERE pk=NULL
-HAVING ('m') IN (
-SELECT v
-FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-
-#
-# 4) Test that subquery materialization is setup for query with
-# premature optimize() exit due to "No matching row in const table"
-#
-
-SELECT MIN(a)
-FROM (SELECT a FROM empty1) tt
-HAVING ('m') IN (
-SELECT v
-FROM t2);
-MIN(a)
-NULL
-
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-EXPLAIN
-SELECT MIN(a)
-FROM (SELECT a FROM empty1) tt
-HAVING ('m') IN (
-SELECT v
-FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 0 Const row not found
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-set optimizer_switch=@tmp_optimizer_switch;
-
-#
-# 5) Test that subquery materialization is setup for query with
-# premature optimize() exit due to "Impossible WHERE noticed
-# after reading const tables"
-#
-SELECT min(t1.pk)
-FROM t1
-WHERE t1.pk IN (SELECT 1 from t3 where pk>10)
-HAVING ('m') IN (
-SELECT v
-FROM t2);
-min(t1.pk)
-NULL
-
-EXPLAIN
-SELECT min(t1.pk)
-FROM t1
-WHERE t1.pk IN (SELECT 1 from t3 where pk>10)
-HAVING ('m') IN (
-SELECT v
-FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 2 Using where; Using index
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-set @@optimizer_switch=@save_optimizer_switch;
-#
-# Cleanup for BUG#46680
-#
-DROP TABLE IF EXISTS t1,t2,t3,empty1;
-create table t1 (i int, d date);
-insert into t1 values (1, '2008-10-02'), (2, '2010-12-12');
-select avg(export_set( 3, 'y', sha(i))), group_concat(d) from t1 group by d order by i;
-avg(export_set( 3, 'y', sha(i))) group_concat(d)
-0 2008-10-02
-0 2010-12-12
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'y,y,356a192b7913b04c54574d18c28d46e6395428ab,356a192b7913b04c54574d18c28d46e6395428ab,356a192b7913b04c54574d18c28d46e6395428ab,3'
-Warning 1292 Truncated incorrect DOUBLE value: 'y,y,da4b9237bacccdf19c0760cab7aec4a8359010b0,da4b9237bacccdf19c0760cab7aec4a8359010b0,da4b9237bacccdf19c0760cab7aec4a8359010b0,d'
-drop table t1;
-#
-# MDEV-4290: crash in st_select_lex::mark_as_dependent
-#
-create table `t1`(`a` int);
-select 1 from t1 v1 right join t1 on count(*);
-ERROR HY000: Invalid use of group function
-select 1 from t1 order by
-(
-select 1 from
-(
-select 1 from t1 v1 right join t1 on count(*)
-) v
-);
-ERROR HY000: Invalid use of group function
-insert into t1 values (1),(1),(2),(2);
-select count(*) from t1;
-count(*)
-4
-select z from (select count(*) as z from t1) v;
-z
-4
-# next is how it implemented now (may be changed in case of dependent
-# derived tables)
-select z from (select count(*) as z from t1) v group by 1;
-z
-4
-drop table t1;
-CREATE TABLE t1 (i1 int, INDEX(i1));
-INSERT INTO t1 VALUES (9),(8);
-CREATE TABLE t2 (i2 int);
-INSERT INTO t2 VALUES (8),(4);
-CREATE TABLE t3 (i3 int, INDEX(i3));
-INSERT INTO t3 VALUES (9),(8);
-SELECT MAX(t3.i3) FROM t3, t2, t1 WHERE t1.i1 = t2.i2 AND ( 0 OR t3.i3 = t2.i2 );
-MAX(t3.i3)
-8
-SELECT MAX(t3.i3) FROM t3, t2, t1 WHERE t1.i1 = t2.i2 AND t3.i3 = t2.i2;
-MAX(t3.i3)
-8
-DROP TABLE t1,t2,t3;
-# end of 5.3 tests
-#
-# Bug#52123 Assertion failed: aggregator == aggr->Aggrtype(),
-# file .\item_sum.cc, line 587
-#
-CREATE TABLE t1(a int, KEY(a));
-INSERT INTO t1 VALUES (1), (2);
-SELECT 1 FROM t1 ORDER BY AVG(DISTINCT a);
-1
-1
-DROP TABLE t1;
-#
-# Bug#55648: Server crash on MIN/MAX on maximum time value
-#
-CREATE TABLE t1(c1 TIME NOT NULL);
-INSERT INTO t1 VALUES('837:59:59');
-INSERT INTO t1 VALUES('838:59:59');
-SELECT MAX(c1) FROM t1;
-MAX(c1)
-838:59:59
-DROP TABLE t1;
-# End of the bug#55648
-#
-# Bug#56120: Failed assertion on MIN/MAX on negative time value
-#
-CREATE TABLE t1(c1 TIME NOT NULL);
-INSERT INTO t1 VALUES('-00:00:01');
-SELECT MAX(c1),MIN(c1) FROM t1;
-MAX(c1) MIN(c1)
--00:00:01 -00:00:01
-DROP TABLE t1;
-# End of the bug#56120
-#
-# Bug#57932 "query with AVG(DISTINCT) returns NULL if last
-# aggregated value was NULL"
-#
-CREATE TABLE t1 (col_int_nokey int(11));
-INSERT INTO t1 VALUES (7),(8),(NULL);
-SELECT AVG(DISTINCT col_int_nokey) FROM t1;
-AVG(DISTINCT col_int_nokey)
-7.5000
-SELECT AVG(DISTINCT outr.col_int_nokey) FROM t1 AS outr LEFT JOIN t1 AS outr2 ON
-outr.col_int_nokey = outr2.col_int_nokey;
-AVG(DISTINCT outr.col_int_nokey)
-7.5000
-DROP TABLE t1;
-# End of the bug#57932
-#
-# MDEV-5257: MIN/MAX Optimization (Select tables optimized away) does not work for DateTime
-# MDEV-3855: MIN/MAX optimization doesnt work for int_col > INET_ATON
-# (correct the fix for Bug #884175)
-#
-CREATE TABLE `t1` (
-`a` int(11) NOT NULL AUTO_INCREMENT,
-`b` datetime DEFAULT NULL,
-PRIMARY KEY (`a`),
-KEY `idx_b` (`b`)
-);
-INSERT INTO `t1` (b) VALUES ('2013-01-06 23:59:59');
-INSERT INTO `t1` (b) VALUES ('2013-02-06 23:59:59');
-INSERT INTO `t1` (b) VALUES ('2013-03-06 23:59:59');
-INSERT INTO `t1` (b) VALUES ('2013-04-06 23:59:59');
-INSERT INTO `t1` (b) VALUES ('2013-05-06 23:59:59');
-INSERT INTO `t1` (b) VALUES ('2013-06-06 23:59:59');
-INSERT INTO `t1` (b) VALUES ('2013-07-06 23:59:59');
-# The following should produce "Select tables optimized away"
-EXPLAIN SELECT MIN(b) FROM t1 WHERE b <= '2013-11-06 23:59:59';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-connect con1,localhost,root,,;
-connection con1;
-set names utf8;
-# Should be the same as above:
-EXPLAIN SELECT MIN(b) FROM t1 WHERE b <= '2013-11-06 23:59:59';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-connection default;
-disconnect con1;
-DROP TABLE t1;
-CREATE TABLE `t1` (
-`a` int(11) NOT NULL AUTO_INCREMENT,
-`b` bigint(20) DEFAULT NULL,
-PRIMARY KEY (`a`),
-KEY `idx_b` (`b`)
-);
-insert into t1 (b) values (INET_ATON('192.168.0.1'));
-insert into t1 (b) values (INET_ATON('192.168.0.2'));
-insert into t1 (b) values (INET_ATON('192.168.0.3'));
-insert into t1 (b) values (INET_ATON('192.168.0.4'));
-insert into t1 (b) values (INET_ATON('192.168.200.200'));
-# should show "Select tables optimized away"
-explain select MIN(b) from t1 where b >= inet_aton('192.168.119.32');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-DROP TABLE t1;
-#
-# MDEV-6743 crash in GROUP_CONCAT(IF () ORDER BY 1)
-#
-CREATE TABLE t1 (pk INT, t2_id INT, t5_id INT, PRIMARY KEY (pk));
-INSERT INTO t1 VALUES (1,3,12),(2,3,15);
-CREATE TABLE t2 (pk INT, PRIMARY KEY (pk));
-INSERT INTO t2 VALUES (4),(5);
-CREATE TABLE t3 (t2_id INT, t4_id INT);
-INSERT INTO t3 VALUES (6,11),(7,12);
-CREATE TABLE t4 (id INT);
-INSERT INTO t4 VALUES (13),(14);
-CREATE TABLE t5 (pk INT, f VARCHAR(50), t6_id INT, PRIMARY KEY (pk));
-INSERT INTO t5 VALUES (9,'FOO',NULL);
-CREATE TABLE t6 (pk INT, f VARCHAR(120), b TINYINT(4), PRIMARY KEY (pk));
-PREPARE stmt FROM "
- SELECT t1.t2_id, GROUP_CONCAT(IF (t6.b, t6.f, t5.f) ORDER BY 1)
- FROM t1
- JOIN t2 ON t1.t2_id = t2.pk
- JOIN t3 ON t2.pk = t3.t2_id
- JOIN t4 ON t4.id = t3.t4_id
- JOIN t5 ON t1.t5_id = t5.pk
- LEFT JOIN t6 ON t6.pk = t5.t6_id
- GROUP BY t1.t2_id
-";
-EXECUTE stmt;
-t2_id GROUP_CONCAT(IF (t6.b, t6.f, t5.f) ORDER BY 1)
-EXECUTE stmt;
-t2_id GROUP_CONCAT(IF (t6.b, t6.f, t5.f) ORDER BY 1)
-EXECUTE stmt;
-t2_id GROUP_CONCAT(IF (t6.b, t6.f, t5.f) ORDER BY 1)
-DROP TABLE t1,t2,t3,t4,t5,t6;
-#
-# MDEV-10500 CASE/IF Statement returns multiple values and shifts further result values to the next column
-#
-CREATE TABLE t1 (
-id int not null AUTO_INCREMENT,
-active bool not null,
-data1 bigint,
-data2 bigint,
-data3 bigint,
-primary key (id)
-);
-INSERT INTO t1 (active,data1,data2,data3) VALUES (1,null,100,200);
-SELECT
-CASE WHEN active THEN SUM(data1) END AS C_1,
-SUM(data2) AS C_2,
-SUM(data3) AS C_3
-FROM t1;
-C_1 C_2 C_3
-NULL 100 200
-SELECT
-IF(active, SUM(data1), 5) AS C_1,
-SUM(data2) AS C_2,
-SUM(data3) AS C_3
-FROM t1;
-C_1 C_2 C_3
-NULL 100 200
-DROP TABLE t1;
-#
-# MDEV-10468 Assertion `nr >= 0.0' failed in Item_sum_std::val_real()
-#
-SELECT STDDEV_POP(f) FROM (SELECT "1e+309" AS f UNION SELECT "-1e+309" AS f) tbl;
-STDDEV_POP(f)
-1.7976931348623157e308
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e+309'
-Warning 1292 Truncated incorrect DOUBLE value: '-1e+309'
-SELECT STDDEV(f) FROM (SELECT 1.7976931348623157e+308 AS f UNION SELECT -1.7976931348623157e+308 AS f) tbl;
-STDDEV(f)
-1.7976931348623157e308
-#
-# MDEV-8852 Implicit or explicit CAST from MAX(string) to INT,DOUBLE,DECIMAL does not produce warnings
-#
-SELECT MAX('x') << 1, CAST(MAX('x') AS DOUBLE), CAST(MAX('x') AS DECIMAL);
-MAX('x') << 1 CAST(MAX('x') AS DOUBLE) CAST(MAX('x') AS DECIMAL)
-0 0 0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'x'
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-Warning 1292 Truncated incorrect DECIMAL value: 'x'
-#
-# MDEV-8918 Wrong result for CAST(AVG(a) AS SIGNED)
-#
-CREATE TABLE t1 (id INT, a BIGINT);
-INSERT INTO t1 VALUES (1,0x7FFFFFFFFFFFFFFF),(2,0x7FFFFFFFFFFFFFFF);
-SELECT id, AVG(a) AS avg, CAST(MIN(a) AS SIGNED) AS cast_min FROM t1 GROUP BY id HAVING avg!=123 ORDER BY id;
-id avg cast_min
-1 9223372036854775807.0000 9223372036854775807
-2 9223372036854775807.0000 9223372036854775807
-SELECT id, AVG(a) AS avg, CAST(AVG(a) AS SIGNED) AS cast_avg FROM t1 GROUP BY id HAVING avg!=123 ORDER BY id;
-id avg cast_avg
-1 9223372036854775807.0000 9223372036854775807
-2 9223372036854775807.0000 9223372036854775807
-DROP TABLE t1;
-#
-# MDEV-9656 Assertion `0' failed in Item_sum_field::get_tmp_table_field()
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1),(2);
-SELECT DISTINCT VAR_POP(1) FROM t1 GROUP BY @a := 's';
-VAR_POP(1)
-0.0000
-DROP TABLE t1;
-#
-# MDEV-8921 Wrong result for CAST(AVG(double_column) AS SIGNED)
-#
-CREATE TABLE t1 (id INT, a DOUBLE);
-INSERT INTO t1 VALUES (1,0x7FFFFFFFFFFFFFFF),(2,0x7FFFFFFFFFFFFFFF);
-SELECT id, AVG(a) AS avg, CAST(MIN(a) AS SIGNED) AS cast_min,CAST(AVG(a) AS SIGNED) AS cast_avg FROM t1 GROUP BY id HAVING avg!=123 ORDER BY id;
-id avg cast_min cast_avg
-1 9.223372036854776e18 9223372036854775807 9223372036854775807
-2 9.223372036854776e18 9223372036854775807 9223372036854775807
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFF);
-SELECT MIN(a), SUM(a), CAST(SUM(a) AS SIGNED), CAST(AVG(a) AS SIGNED) FROM t1;
-MIN(a) SUM(a) CAST(SUM(a) AS SIGNED) CAST(AVG(a) AS SIGNED)
-9.223372036854776e18 9.223372036854776e18 9223372036854775807 9223372036854775807
-DROP TABLE t1;
-#
-# MDEV-7195 AVG() loses precision in INT context
-#
-CREATE TABLE t1 (
-auto SERIAL,
-fld1 bigint unsigned NOT NULL,
-companynr tinyint(2) unsigned zerofill DEFAULT '00' NOT NULL,
-UNIQUE fld1 (fld1)
-);
-INSERT INTO t1 VALUES (1,0x7FFFFFFFFFFFFFFF,00);
-INSERT INTO t1 VALUES (2,0x7FFFFFFFFFFFFFFE,37);
-INSERT INTO t1 VALUES (3,0x7FFFFFFFFFFFFFFC,37);
-SELECT companynr, AVG(fld1), AVG(fld1)<<0 AS avg1, CAST(AVG(fld1) AS UNSIGNED)<<0 AS avg2 FROM t1 GROUP BY companynr;
-companynr AVG(fld1) avg1 avg2
-00 9223372036854775807.0000 9223372036854775807 9223372036854775807
-37 9223372036854775805.0000 9223372036854775805 9223372036854775805
-DROP TABLE t1;
-#
-# case where aggregate resolved in the local SELECT
-# but outer ones are checked
-#
-create table t10 (a int , b int, c int);
-insert into t10 values (0,0,0),(1,1,1);
-create table t11 as select * from t10;
-create table t12 as select * from t10;
-explain extended select a from t10 where c<3 or a in (select c from t12 union select max(t10.b) from t11 group by t11.c);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t10 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t12 ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DEPENDENT UNION t11 ALL NULL NULL NULL NULL 2 100.00 Using temporary
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1276 Field or reference 'test.t10.b' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t10`.`a` AS `a` from `test`.`t10` where `test`.`t10`.`c` < 3 or <expr_cache><`test`.`t10`.`a`,`test`.`t10`.`b`>(<in_optimizer>(`test`.`t10`.`a`,<exists>(/* select#2 */ select `test`.`t12`.`c` from `test`.`t12` where <cache>(`test`.`t10`.`a`) = `test`.`t12`.`c` union /* select#3 */ select max(`test`.`t10`.`b`) from `test`.`t11` group by `test`.`t11`.`c` having <cache>(`test`.`t10`.`a`) = <ref_null_helper>(max(`test`.`t10`.`b`)))))
-drop table t10,t11,t12;
-#
-# MDEV-10017: Get unexpected `Empty Set` for correlated subquery
-# with aggregate functions
-#
-create table t1(c1 int, c2 int, c3 int);
-insert into t1 values(1,1,1),(2,2,2),(3,3,3);
-select * from t1;
-c1 c2 c3
-1 1 1
-2 2 2
-3 3 3
-create table t2(c1 int, c2 int);
-insert into t2 values(2,2);
-select * from t2;
-c1 c2
-2 2
-explain extended
-select c1 from t1 having c1 >= (select t.c1 as c from t2 t order by (select min(t1.c1+c) from t2 tt));
-ERROR HY000: Invalid use of group function
-select c1 from t1 having c1 >= (select t.c1 as c from t2 t order by (select min(t1.c1+c) from t2 tt));
-ERROR HY000: Invalid use of group function
-explain extended
-select c1 from t1 having c1 >= (select t.c1 as c from t2 t order by (select min(t1.c1+tt.c1) from t2 tt));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-2 DEPENDENT SUBQUERY t system NULL NULL NULL NULL 1 100.00
-3 DEPENDENT SUBQUERY tt system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.c1' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`c1` AS `c1` from `test`.`t1` having `test`.`t1`.`c1` >= <expr_cache><`test`.`t1`.`c1`>((/* select#2 */ select 2 AS `c` from dual order by (/* select#3 */ select min(`test`.`t1`.`c1` + 2) from dual)))
-select c1 from t1 having c1 >= (select t.c1 as c from t2 t order by (select min(t1.c1+tt.c1) from t2 tt));
-c1
-2
-3
-drop table t1,t2;
-#
-# MDEV-10556 Assertion `0' failed in virtual void Item_sum_field::set_result_field(Field*)
-#
-CREATE TABLE t1 (i INT, KEY(i)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (10),(20),(30);
-SELECT DISTINCT STDDEV(1) FROM t1 GROUP BY i ORDER BY BENCHMARK(0, BIT_XOR(i));
-STDDEV(1)
-0.0000
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# MDEV-13064: assertion `n < m_size' fails in Item::split_sum_func2()
-#
-create table t1 (i int) engine=MyISAM;
-insert into t1 value (1),(2);
-select count(*)+sleep(0) from t1;
-count(*)+sleep(0)
-2
-drop table t1;
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-9408 CREATE TABLE SELECT MAX(int_column) creates different columns for table vs view
-#
-CREATE TABLE t1 (
-id int(11) NOT NULL PRIMARY KEY,
-country varchar(32),
-code int(11) default NULL
-);
-INSERT INTO t1 VALUES (1,'ITALY',100),(2,'ITALY',200),(3,'FRANCE',100), (4,'ITALY',100);
-CREATE VIEW v1 AS SELECT * FROM t1;
-CREATE TABLE t2 AS SELECT code, COUNT(DISTINCT country), MAX(id) FROM t1 GROUP BY code ORDER BY MAX(id);
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `code` int(11) DEFAULT NULL,
- `COUNT(DISTINCT country)` bigint(21) NOT NULL,
- `MAX(id)` int(11)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT code, COUNT(DISTINCT country), MAX(id) FROM v1 GROUP BY code ORDER BY MAX(id);
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `code` int(11) DEFAULT NULL,
- `COUNT(DISTINCT country)` bigint(21) NOT NULL,
- `MAX(id)` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP VIEW v1;
-DROP TABLE t1;
diff --git a/mysql-test/r/func_group_innodb.result b/mysql-test/r/func_group_innodb.result
deleted file mode 100644
index 27493ae710b..00000000000
--- a/mysql-test/r/func_group_innodb.result
+++ /dev/null
@@ -1,249 +0,0 @@
-create table t1 (USR_ID integer not null, MAX_REQ integer not null, constraint PK_SEA_USER primary key (USR_ID)) engine=InnoDB;
-insert into t1 values (1, 3);
-select count(*) + MAX_REQ - MAX_REQ + MAX_REQ - MAX_REQ + MAX_REQ - MAX_REQ + MAX_REQ - MAX_REQ + MAX_REQ - MAX_REQ from t1 group by MAX_REQ;
-count(*) + MAX_REQ - MAX_REQ + MAX_REQ - MAX_REQ + MAX_REQ - MAX_REQ + MAX_REQ - MAX_REQ + MAX_REQ - MAX_REQ
-1
-select Case When Count(*) < MAX_REQ Then 1 Else 0 End from t1 where t1.USR_ID = 1 group by MAX_REQ;
-Case When Count(*) < MAX_REQ Then 1 Else 0 End
-1
-drop table t1;
-create table t1m (a int) engine=myisam;
-create table t1i (a int) engine=innodb;
-create table t2m (a int) engine=myisam;
-create table t2i (a int) engine=innodb;
-insert into t2m values (5);
-insert into t2i values (5);
-select min(a) from t1m;
-min(a)
-NULL
-select min(7) from t1m;
-min(7)
-NULL
-select min(7) from DUAL;
-min(7)
-7
-explain select min(7) from t2m join t1m;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(7) from t2m join t1m;
-min(7)
-NULL
-select max(a) from t1m;
-max(a)
-NULL
-select max(7) from t1m;
-max(7)
-NULL
-select max(7) from DUAL;
-max(7)
-7
-explain select max(7) from t2m join t1m;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select max(7) from t2m join t1m;
-max(7)
-NULL
-select 1, min(a) from t1m where a=99;
-1 min(a)
-1 NULL
-select 1, min(a) from t1m where 1=99;
-1 min(a)
-1 NULL
-select 1, min(1) from t1m where a=99;
-1 min(1)
-1 NULL
-select 1, min(1) from t1m where 1=99;
-1 min(1)
-1 NULL
-select 1, max(a) from t1m where a=99;
-1 max(a)
-1 NULL
-select 1, max(a) from t1m where 1=99;
-1 max(a)
-1 NULL
-select 1, max(1) from t1m where a=99;
-1 max(1)
-1 NULL
-select 1, max(1) from t1m where 1=99;
-1 max(1)
-1 NULL
-select min(a) from t1i;
-min(a)
-NULL
-select min(7) from t1i;
-min(7)
-NULL
-select min(7) from DUAL;
-min(7)
-7
-explain select min(7) from t2i join t1i;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2i ALL NULL NULL NULL NULL 1
-1 SIMPLE t1i ALL NULL NULL NULL NULL 1 Using join buffer (flat, BNL join)
-select min(7) from t2i join t1i;
-min(7)
-NULL
-select max(a) from t1i;
-max(a)
-NULL
-select max(7) from t1i;
-max(7)
-NULL
-select max(7) from DUAL;
-max(7)
-7
-explain select max(7) from t2i join t1i;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2i ALL NULL NULL NULL NULL 1
-1 SIMPLE t1i ALL NULL NULL NULL NULL 1 Using join buffer (flat, BNL join)
-select max(7) from t2i join t1i;
-max(7)
-NULL
-select 1, min(a) from t1i where a=99;
-1 min(a)
-1 NULL
-select 1, min(a) from t1i where 1=99;
-1 min(a)
-1 NULL
-select 1, min(1) from t1i where a=99;
-1 min(1)
-1 NULL
-select 1, min(1) from t1i where 1=99;
-1 min(1)
-1 NULL
-select 1, max(a) from t1i where a=99;
-1 max(a)
-1 NULL
-select 1, max(a) from t1i where 1=99;
-1 max(a)
-1 NULL
-select 1, max(1) from t1i where a=99;
-1 max(1)
-1 NULL
-select 1, max(1) from t1i where 1=99;
-1 max(1)
-1 NULL
-explain select count(*), min(7), max(7) from t1m, t1i;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1m system NULL NULL NULL NULL 0 Const row not found
-1 SIMPLE t1i ALL NULL NULL NULL NULL 1
-select count(*), min(7), max(7) from t1m, t1i;
-count(*) min(7) max(7)
-0 NULL NULL
-explain select count(*), min(7), max(7) from t1m, t2i;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1m system NULL NULL NULL NULL 0 Const row not found
-1 SIMPLE t2i ALL NULL NULL NULL NULL 1
-select count(*), min(7), max(7) from t1m, t2i;
-count(*) min(7) max(7)
-0 NULL NULL
-explain select count(*), min(7), max(7) from t2m, t1i;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2m system NULL NULL NULL NULL 1
-1 SIMPLE t1i ALL NULL NULL NULL NULL 1
-select count(*), min(7), max(7) from t2m, t1i;
-count(*) min(7) max(7)
-0 NULL NULL
-drop table t1m, t1i, t2m, t2i;
-#
-# Bug #57954: BIT_AND function returns incorrect results when
-# semijoin=on
-CREATE TABLE c (
-pk INT,
-col_varchar_key VARCHAR(1),
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key)
-) ENGINE=InnoDB;
-INSERT INTO c VALUES (11,NULL);
-INSERT INTO c VALUES (16,'c');
-CREATE TABLE bb (
-pk INT,
-col_varchar_key VARCHAR(1),
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key)
-) ENGINE=InnoDB;
-INSERT INTO bb VALUES (10,NULL);
-SELECT straight_join BIT_AND(c.pk)
-FROM
-bb, c
-WHERE c.col_varchar_key='ABC'
-ORDER BY c.pk;
-BIT_AND(c.pk)
-18446744073709551615
-DROP TABLE c,bb;
-#
-# Bug #58050: BIT_OR and BIT_XOR return incorrect results when
-# semijoin=on
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY, b INT, c INT) ENGINE=InnoDB;
-INSERT INTO t1 VALUES(1, 1, 1);
-CREATE TABLE t2 (pk INT PRIMARY KEY, b INT, c INT) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (1, 1, NULL);
-SELECT t1.* FROM t1 JOIN t2 ON t1.c=t2.c WHERE t1.pk=1;
-pk b c
-SELECT BIT_OR(t1.b) FROM t1 JOIN t2 ON t1.c=t2.c WHERE t1.pk=1;
-BIT_OR(t1.b)
-0
-SELECT BIT_AND(t1.b) FROM t1 JOIN t2 ON t1.c=t2.c WHERE t1.pk=1;
-BIT_AND(t1.b)
-18446744073709551615
-SELECT BIT_XOR(t1.b) FROM t1 JOIN t2 ON t1.c=t2.c WHERE t1.pk=1;
-BIT_XOR(t1.b)
-0
-DROP TABLE t1, t2;
-#
-# Bug#12713907: STRANGE OPTIMIZE & WRONG RESULT UNDER ORDER BY
-# COUNT(*) LIMIT.
-#
-CREATE TABLE t1 (
-id BIGINT(20) ,
-member_id_to INT(11) ,
-r_date DATE ,
-PRIMARY KEY (id,r_date),
-KEY r_date_idx (r_date),
-KEY t1_idx01 (member_id_to)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-(107924526,518491,'2011-05-01'),
-(107924527,518491,'2011-05-01'),
-(107924534,518491,'2011-06-21'),
-(107924535,518491,'2011-06-21'),
-(107924542,1601319,'2011-06-21'),
-(107924543,1601319,'2011-06-21'),
-(107924544,1601319,'2011-06-21'),
-(107924545,1601319,'2011-06-21');
-SELECT member_id_to, COUNT(*) FROM t1 WHERE r_date =
-'2011-06-21' GROUP BY member_id_to ORDER BY 2 LIMIT 1;
-member_id_to COUNT(*)
-518491 2
-DROP TABLE t1;
-#
-# MDEV-4269: crash when grouping by values()
-#
-SELECT @@storage_engine INTO @old_engine;
-set storage_engine=innodb;
-create table y select 1 b;
-select 1 from y group by b;
-1
-1
-select 1 from y group by value(b);
-1
-1
-drop table y;
-SET storage_engine=@old_engine;
-#
-# Bug#13723054 CRASH WITH MIN/MAX AFTER QUICK_GROUP_MIN_MAX_SELECT::NEXT_MIN
-#
-CREATE TABLE t1(a BLOB, b VARCHAR(255) CHARSET LATIN1, c INT,
-KEY(b, c, a(765))) ENGINE=INNODB;
-INSERT INTO t1(a, b, c) VALUES
-('', 'a', 0), ('', 'a', null), ('', 'a', 0), ('', 'a', null), ('', 'a', 0);
-ANALYZE TABLE t1;
-SELECT MIN(c) FROM t1 GROUP BY b;
-MIN(c)
-0
-EXPLAIN SELECT MIN(c) FROM t1 GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL b 263 NULL 3 Using index for group-by
-DROP TABLE t1;
-End of 5.5 tests
diff --git a/mysql-test/r/func_hybrid_type.result b/mysql-test/r/func_hybrid_type.result
deleted file mode 100644
index 1bf8231f4dd..00000000000
--- a/mysql-test/r/func_hybrid_type.result
+++ /dev/null
@@ -1,3757 +0,0 @@
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8865 Wrong field type or metadata for COALESCE(signed_int_column, unsigned_int_column)
-#
-#
-CREATE TABLE t1 (a INT, b INT UNSIGNED);
-INSERT INTO t1 VALUES (1,1);
-INSERT INTO t1 VALUES (-1,1);
-INSERT INTO t1 VALUES (-2147483648,4294967295);
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 3 11 11 Y 32768 0 63
-def case_______a 3 11 11 Y 32896 0 63
-def case_____a_a 3 11 11 Y 32896 0 63
-def coalesce___a 3 11 11 Y 32896 0 63
-def coalesce_a_a 3 11 11 Y 32896 0 63
-def if_______a_a 3 11 11 Y 32896 0 63
-def ifnull___a_a 3 11 11 Y 32896 0 63
-def least____a_a 3 11 11 Y 32896 0 63
-def greatest_a_a 3 11 11 Y 32896 0 63
-def test t1 t1 b ___________b 3 10 10 Y 32800 0 63
-def case_______b 3 10 10 Y 32928 0 63
-def case_____b_b 3 10 10 Y 32928 0 63
-def coalesce___b 3 10 10 Y 32928 0 63
-def coalesce_b_b 3 10 10 Y 32928 0 63
-def if_______b_b 3 10 10 Y 32928 0 63
-def ifnull___b_b 3 10 10 Y 32928 0 63
-def least____b_b 3 10 10 Y 32928 0 63
-def greatest_b_b 3 10 10 Y 32928 0 63
-___________a 1
-case_______a 1
-case_____a_a 1
-coalesce___a 1
-coalesce_a_a 1
-if_______a_a 1
-ifnull___a_a 1
-least____a_a 1
-greatest_a_a 1
-___________b 1
-case_______b 1
-case_____b_b 1
-coalesce___b 1
-coalesce_b_b 1
-if_______b_b 1
-ifnull___b_b 1
-least____b_b 1
-greatest_b_b 1
-___________a -1
-case_______a -1
-case_____a_a -1
-coalesce___a -1
-coalesce_a_a -1
-if_______a_a -1
-ifnull___a_a -1
-least____a_a -1
-greatest_a_a -1
-___________b 1
-case_______b 1
-case_____b_b 1
-coalesce___b 1
-coalesce_b_b 1
-if_______b_b 1
-ifnull___b_b 1
-least____b_b 1
-greatest_b_b 1
-___________a -2147483648
-case_______a -2147483648
-case_____a_a -2147483648
-coalesce___a -2147483648
-coalesce_a_a -2147483648
-if_______a_a -2147483648
-ifnull___a_a -2147483648
-least____a_a -2147483648
-greatest_a_a -2147483648
-___________b 4294967295
-case_______b 4294967295
-case_____b_b 4294967295
-coalesce___b 4294967295
-coalesce_b_b 4294967295
-if_______b_b 4294967295
-ifnull___b_b 4294967295
-least____b_b 4294967295
-greatest_b_b 4294967295
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 246 11 11 Y 32896 0 63
-def case_____b_a 246 11 10 Y 32896 0 63
-def coalesce_a_b 246 11 11 Y 32896 0 63
-def coalesce_b_a 246 11 10 Y 32896 0 63
-def if_______a_b 246 11 10 Y 32896 0 63
-def if_______b_a 246 11 11 Y 32896 0 63
-def ifnull___a_b 246 11 11 Y 32896 0 63
-def ifnull___b_a 246 11 10 Y 32896 0 63
-def least____a_b 246 11 11 Y 32896 0 63
-def least____b_a 246 11 11 Y 32896 0 63
-def greatest_a_b 246 11 10 Y 32896 0 63
-def greatest_b_a 246 11 10 Y 32896 0 63
-case_____a_b 1
-case_____b_a 1
-coalesce_a_b 1
-coalesce_b_a 1
-if_______a_b 1
-if_______b_a 1
-ifnull___a_b 1
-ifnull___b_a 1
-least____a_b 1
-least____b_a 1
-greatest_a_b 1
-greatest_b_a 1
-case_____a_b -1
-case_____b_a 1
-coalesce_a_b -1
-coalesce_b_a 1
-if_______a_b 1
-if_______b_a -1
-ifnull___a_b -1
-ifnull___b_a 1
-least____a_b -1
-least____b_a -1
-greatest_a_b 1
-greatest_b_a 1
-case_____a_b -2147483648
-case_____b_a 4294967295
-coalesce_a_b -2147483648
-coalesce_b_a 4294967295
-if_______a_b 4294967295
-if_______b_a -2147483648
-ifnull___a_b -2147483648
-ifnull___b_a 4294967295
-least____a_b -2147483648
-least____b_a -2147483648
-greatest_a_b 4294967295
-greatest_b_a 4294967295
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` int(11) DEFAULT NULL,
- `case_______a` int(11) DEFAULT NULL,
- `case_____a_a` int(11) DEFAULT NULL,
- `coalesce___a` int(11) DEFAULT NULL,
- `coalesce_a_a` int(11) DEFAULT NULL,
- `if_______a_a` int(11) DEFAULT NULL,
- `ifnull___a_a` int(11) DEFAULT NULL,
- `least____a_a` int(11) DEFAULT NULL,
- `greatest_a_a` int(11) DEFAULT NULL,
- `___________b` int(10) unsigned DEFAULT NULL,
- `case_______b` int(10) unsigned DEFAULT NULL,
- `case_____b_b` int(10) unsigned DEFAULT NULL,
- `coalesce___b` int(10) unsigned DEFAULT NULL,
- `coalesce_b_b` int(10) unsigned DEFAULT NULL,
- `if_______b_b` int(10) unsigned DEFAULT NULL,
- `ifnull___b_b` int(10) unsigned DEFAULT NULL,
- `least____b_b` int(10) unsigned DEFAULT NULL,
- `greatest_b_b` int(10) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` decimal(10,0) DEFAULT NULL,
- `case_____b_a` decimal(10,0) DEFAULT NULL,
- `coalesce_a_b` decimal(10,0) DEFAULT NULL,
- `coalesce_b_a` decimal(10,0) DEFAULT NULL,
- `if_______a_b` decimal(10,0) DEFAULT NULL,
- `if_______b_a` decimal(10,0) DEFAULT NULL,
- `ifnull___a_b` decimal(10,0) DEFAULT NULL,
- `ifnull___b_a` decimal(10,0) DEFAULT NULL,
- `least____a_b` decimal(10,0) DEFAULT NULL,
- `least____b_a` decimal(10,0) DEFAULT NULL,
- `greatest_a_b` decimal(10,0) DEFAULT NULL,
- `greatest_b_a` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1,1);
-INSERT INTO t1 VALUES (-2147483648,2147483647);
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 3 11 11 Y 32768 0 63
-def case_______a 3 11 11 Y 32896 0 63
-def case_____a_a 3 11 11 Y 32896 0 63
-def coalesce___a 3 11 11 Y 32896 0 63
-def coalesce_a_a 3 11 11 Y 32896 0 63
-def if_______a_a 3 11 11 Y 32896 0 63
-def ifnull___a_a 3 11 11 Y 32896 0 63
-def least____a_a 3 11 11 Y 32896 0 63
-def greatest_a_a 3 11 11 Y 32896 0 63
-def test t1 t1 b ___________b 3 11 10 Y 32768 0 63
-def case_______b 3 11 10 Y 32896 0 63
-def case_____b_b 3 11 10 Y 32896 0 63
-def coalesce___b 3 11 10 Y 32896 0 63
-def coalesce_b_b 3 11 10 Y 32896 0 63
-def if_______b_b 3 11 10 Y 32896 0 63
-def ifnull___b_b 3 11 10 Y 32896 0 63
-def least____b_b 3 11 10 Y 32896 0 63
-def greatest_b_b 3 11 10 Y 32896 0 63
-___________a 1
-case_______a 1
-case_____a_a 1
-coalesce___a 1
-coalesce_a_a 1
-if_______a_a 1
-ifnull___a_a 1
-least____a_a 1
-greatest_a_a 1
-___________b 1
-case_______b 1
-case_____b_b 1
-coalesce___b 1
-coalesce_b_b 1
-if_______b_b 1
-ifnull___b_b 1
-least____b_b 1
-greatest_b_b 1
-___________a -2147483648
-case_______a -2147483648
-case_____a_a -2147483648
-coalesce___a -2147483648
-coalesce_a_a -2147483648
-if_______a_a -2147483648
-ifnull___a_a -2147483648
-least____a_a -2147483648
-greatest_a_a -2147483648
-___________b 2147483647
-case_______b 2147483647
-case_____b_b 2147483647
-coalesce___b 2147483647
-coalesce_b_b 2147483647
-if_______b_b 2147483647
-ifnull___b_b 2147483647
-least____b_b 2147483647
-greatest_b_b 2147483647
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 3 11 11 Y 32896 0 63
-def case_____b_a 3 11 10 Y 32896 0 63
-def coalesce_a_b 3 11 11 Y 32896 0 63
-def coalesce_b_a 3 11 10 Y 32896 0 63
-def if_______a_b 3 11 10 Y 32896 0 63
-def if_______b_a 3 11 11 Y 32896 0 63
-def ifnull___a_b 3 11 11 Y 32896 0 63
-def ifnull___b_a 3 11 10 Y 32896 0 63
-def least____a_b 3 11 11 Y 32896 0 63
-def least____b_a 3 11 11 Y 32896 0 63
-def greatest_a_b 3 11 10 Y 32896 0 63
-def greatest_b_a 3 11 10 Y 32896 0 63
-case_____a_b 1
-case_____b_a 1
-coalesce_a_b 1
-coalesce_b_a 1
-if_______a_b 1
-if_______b_a 1
-ifnull___a_b 1
-ifnull___b_a 1
-least____a_b 1
-least____b_a 1
-greatest_a_b 1
-greatest_b_a 1
-case_____a_b -2147483648
-case_____b_a 2147483647
-coalesce_a_b -2147483648
-coalesce_b_a 2147483647
-if_______a_b 2147483647
-if_______b_a -2147483648
-ifnull___a_b -2147483648
-ifnull___b_a 2147483647
-least____a_b -2147483648
-least____b_a -2147483648
-greatest_a_b 2147483647
-greatest_b_a 2147483647
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` int(11) DEFAULT NULL,
- `case_______a` int(11) DEFAULT NULL,
- `case_____a_a` int(11) DEFAULT NULL,
- `coalesce___a` int(11) DEFAULT NULL,
- `coalesce_a_a` int(11) DEFAULT NULL,
- `if_______a_a` int(11) DEFAULT NULL,
- `ifnull___a_a` int(11) DEFAULT NULL,
- `least____a_a` int(11) DEFAULT NULL,
- `greatest_a_a` int(11) DEFAULT NULL,
- `___________b` int(11) DEFAULT NULL,
- `case_______b` int(11) DEFAULT NULL,
- `case_____b_b` int(11) DEFAULT NULL,
- `coalesce___b` int(11) DEFAULT NULL,
- `coalesce_b_b` int(11) DEFAULT NULL,
- `if_______b_b` int(11) DEFAULT NULL,
- `ifnull___b_b` int(11) DEFAULT NULL,
- `least____b_b` int(11) DEFAULT NULL,
- `greatest_b_b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` int(11) DEFAULT NULL,
- `case_____b_a` int(11) DEFAULT NULL,
- `coalesce_a_b` int(11) DEFAULT NULL,
- `coalesce_b_a` int(11) DEFAULT NULL,
- `if_______a_b` int(11) DEFAULT NULL,
- `if_______b_a` int(11) DEFAULT NULL,
- `ifnull___a_b` int(11) DEFAULT NULL,
- `ifnull___b_a` int(11) DEFAULT NULL,
- `least____a_b` int(11) DEFAULT NULL,
- `least____b_a` int(11) DEFAULT NULL,
- `greatest_a_b` int(11) DEFAULT NULL,
- `greatest_b_a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-CREATE TABLE t1 (a BIGINT, b BIGINT UNSIGNED);
-INSERT INTO t1 VALUES (1,1);
-INSERT INTO t1 VALUES (-9223372036854775808,0xFFFFFFFFFFFFFFFF);
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 8 20 20 Y 32768 0 63
-def case_______a 8 20 20 Y 32896 0 63
-def case_____a_a 8 20 20 Y 32896 0 63
-def coalesce___a 8 20 20 Y 32896 0 63
-def coalesce_a_a 8 20 20 Y 32896 0 63
-def if_______a_a 8 20 20 Y 32896 0 63
-def ifnull___a_a 8 20 20 Y 32896 0 63
-def least____a_a 8 20 20 Y 32896 0 63
-def greatest_a_a 8 20 20 Y 32896 0 63
-def test t1 t1 b ___________b 8 20 20 Y 32800 0 63
-def case_______b 8 20 20 Y 32928 0 63
-def case_____b_b 8 20 20 Y 32928 0 63
-def coalesce___b 8 20 20 Y 32928 0 63
-def coalesce_b_b 8 20 20 Y 32928 0 63
-def if_______b_b 8 20 20 Y 32928 0 63
-def ifnull___b_b 8 20 20 Y 32928 0 63
-def least____b_b 8 20 20 Y 32928 0 63
-def greatest_b_b 8 20 20 Y 32928 0 63
-___________a 1
-case_______a 1
-case_____a_a 1
-coalesce___a 1
-coalesce_a_a 1
-if_______a_a 1
-ifnull___a_a 1
-least____a_a 1
-greatest_a_a 1
-___________b 1
-case_______b 1
-case_____b_b 1
-coalesce___b 1
-coalesce_b_b 1
-if_______b_b 1
-ifnull___b_b 1
-least____b_b 1
-greatest_b_b 1
-___________a -9223372036854775808
-case_______a -9223372036854775808
-case_____a_a -9223372036854775808
-coalesce___a -9223372036854775808
-coalesce_a_a -9223372036854775808
-if_______a_a -9223372036854775808
-ifnull___a_a -9223372036854775808
-least____a_a -9223372036854775808
-greatest_a_a -9223372036854775808
-___________b 18446744073709551615
-case_______b 18446744073709551615
-case_____b_b 18446744073709551615
-coalesce___b 18446744073709551615
-coalesce_b_b 18446744073709551615
-if_______b_b 18446744073709551615
-ifnull___b_b 18446744073709551615
-least____b_b 18446744073709551615
-greatest_b_b 18446744073709551615
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 246 21 20 Y 32896 0 63
-def case_____b_a 246 21 20 Y 32896 0 63
-def coalesce_a_b 246 21 20 Y 32896 0 63
-def coalesce_b_a 246 21 20 Y 32896 0 63
-def if_______a_b 246 21 20 Y 32896 0 63
-def if_______b_a 246 21 20 Y 32896 0 63
-def ifnull___a_b 246 21 20 Y 32896 0 63
-def ifnull___b_a 246 21 20 Y 32896 0 63
-def least____a_b 246 21 20 Y 32896 0 63
-def least____b_a 246 21 20 Y 32896 0 63
-def greatest_a_b 246 21 20 Y 32896 0 63
-def greatest_b_a 246 21 20 Y 32896 0 63
-case_____a_b 1
-case_____b_a 1
-coalesce_a_b 1
-coalesce_b_a 1
-if_______a_b 1
-if_______b_a 1
-ifnull___a_b 1
-ifnull___b_a 1
-least____a_b 1
-least____b_a 1
-greatest_a_b 1
-greatest_b_a 1
-case_____a_b -9223372036854775808
-case_____b_a 18446744073709551615
-coalesce_a_b -9223372036854775808
-coalesce_b_a 18446744073709551615
-if_______a_b 18446744073709551615
-if_______b_a -9223372036854775808
-ifnull___a_b -9223372036854775808
-ifnull___b_a 18446744073709551615
-least____a_b -9223372036854775808
-least____b_a -9223372036854775808
-greatest_a_b 18446744073709551615
-greatest_b_a 18446744073709551615
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` bigint(20) DEFAULT NULL,
- `case_______a` bigint(20) DEFAULT NULL,
- `case_____a_a` bigint(20) DEFAULT NULL,
- `coalesce___a` bigint(20) DEFAULT NULL,
- `coalesce_a_a` bigint(20) DEFAULT NULL,
- `if_______a_a` bigint(20) DEFAULT NULL,
- `ifnull___a_a` bigint(20) DEFAULT NULL,
- `least____a_a` bigint(20) DEFAULT NULL,
- `greatest_a_a` bigint(20) DEFAULT NULL,
- `___________b` bigint(20) unsigned DEFAULT NULL,
- `case_______b` bigint(20) unsigned DEFAULT NULL,
- `case_____b_b` bigint(20) unsigned DEFAULT NULL,
- `coalesce___b` bigint(20) unsigned DEFAULT NULL,
- `coalesce_b_b` bigint(20) unsigned DEFAULT NULL,
- `if_______b_b` bigint(20) unsigned DEFAULT NULL,
- `ifnull___b_b` bigint(20) unsigned DEFAULT NULL,
- `least____b_b` bigint(20) unsigned DEFAULT NULL,
- `greatest_b_b` bigint(20) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` decimal(20,0) DEFAULT NULL,
- `case_____b_a` decimal(20,0) DEFAULT NULL,
- `coalesce_a_b` decimal(20,0) DEFAULT NULL,
- `coalesce_b_a` decimal(20,0) DEFAULT NULL,
- `if_______a_b` decimal(20,0) DEFAULT NULL,
- `if_______b_a` decimal(20,0) DEFAULT NULL,
- `ifnull___a_b` decimal(20,0) DEFAULT NULL,
- `ifnull___b_a` decimal(20,0) DEFAULT NULL,
- `least____a_b` decimal(20,0) DEFAULT NULL,
- `least____b_a` decimal(20,0) DEFAULT NULL,
- `greatest_a_b` decimal(20,0) DEFAULT NULL,
- `greatest_b_a` decimal(20,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-CREATE TABLE t1 (a BIGINT, b BIGINT);
-INSERT INTO t1 VALUES (1,1);
-INSERT INTO t1 VALUES (-9223372036854775808,9223372036854775807);
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 8 20 20 Y 32768 0 63
-def case_______a 8 20 20 Y 32896 0 63
-def case_____a_a 8 20 20 Y 32896 0 63
-def coalesce___a 8 20 20 Y 32896 0 63
-def coalesce_a_a 8 20 20 Y 32896 0 63
-def if_______a_a 8 20 20 Y 32896 0 63
-def ifnull___a_a 8 20 20 Y 32896 0 63
-def least____a_a 8 20 20 Y 32896 0 63
-def greatest_a_a 8 20 20 Y 32896 0 63
-def test t1 t1 b ___________b 8 20 19 Y 32768 0 63
-def case_______b 8 20 19 Y 32896 0 63
-def case_____b_b 8 20 19 Y 32896 0 63
-def coalesce___b 8 20 19 Y 32896 0 63
-def coalesce_b_b 8 20 19 Y 32896 0 63
-def if_______b_b 8 20 19 Y 32896 0 63
-def ifnull___b_b 8 20 19 Y 32896 0 63
-def least____b_b 8 20 19 Y 32896 0 63
-def greatest_b_b 8 20 19 Y 32896 0 63
-___________a 1
-case_______a 1
-case_____a_a 1
-coalesce___a 1
-coalesce_a_a 1
-if_______a_a 1
-ifnull___a_a 1
-least____a_a 1
-greatest_a_a 1
-___________b 1
-case_______b 1
-case_____b_b 1
-coalesce___b 1
-coalesce_b_b 1
-if_______b_b 1
-ifnull___b_b 1
-least____b_b 1
-greatest_b_b 1
-___________a -9223372036854775808
-case_______a -9223372036854775808
-case_____a_a -9223372036854775808
-coalesce___a -9223372036854775808
-coalesce_a_a -9223372036854775808
-if_______a_a -9223372036854775808
-ifnull___a_a -9223372036854775808
-least____a_a -9223372036854775808
-greatest_a_a -9223372036854775808
-___________b 9223372036854775807
-case_______b 9223372036854775807
-case_____b_b 9223372036854775807
-coalesce___b 9223372036854775807
-coalesce_b_b 9223372036854775807
-if_______b_b 9223372036854775807
-ifnull___b_b 9223372036854775807
-least____b_b 9223372036854775807
-greatest_b_b 9223372036854775807
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 8 20 20 Y 32896 0 63
-def case_____b_a 8 20 19 Y 32896 0 63
-def coalesce_a_b 8 20 20 Y 32896 0 63
-def coalesce_b_a 8 20 19 Y 32896 0 63
-def if_______a_b 8 20 19 Y 32896 0 63
-def if_______b_a 8 20 20 Y 32896 0 63
-def ifnull___a_b 8 20 20 Y 32896 0 63
-def ifnull___b_a 8 20 19 Y 32896 0 63
-def least____a_b 8 20 20 Y 32896 0 63
-def least____b_a 8 20 20 Y 32896 0 63
-def greatest_a_b 8 20 19 Y 32896 0 63
-def greatest_b_a 8 20 19 Y 32896 0 63
-case_____a_b 1
-case_____b_a 1
-coalesce_a_b 1
-coalesce_b_a 1
-if_______a_b 1
-if_______b_a 1
-ifnull___a_b 1
-ifnull___b_a 1
-least____a_b 1
-least____b_a 1
-greatest_a_b 1
-greatest_b_a 1
-case_____a_b -9223372036854775808
-case_____b_a 9223372036854775807
-coalesce_a_b -9223372036854775808
-coalesce_b_a 9223372036854775807
-if_______a_b 9223372036854775807
-if_______b_a -9223372036854775808
-ifnull___a_b -9223372036854775808
-ifnull___b_a 9223372036854775807
-least____a_b -9223372036854775808
-least____b_a -9223372036854775808
-greatest_a_b 9223372036854775807
-greatest_b_a 9223372036854775807
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` bigint(20) DEFAULT NULL,
- `case_______a` bigint(20) DEFAULT NULL,
- `case_____a_a` bigint(20) DEFAULT NULL,
- `coalesce___a` bigint(20) DEFAULT NULL,
- `coalesce_a_a` bigint(20) DEFAULT NULL,
- `if_______a_a` bigint(20) DEFAULT NULL,
- `ifnull___a_a` bigint(20) DEFAULT NULL,
- `least____a_a` bigint(20) DEFAULT NULL,
- `greatest_a_a` bigint(20) DEFAULT NULL,
- `___________b` bigint(20) DEFAULT NULL,
- `case_______b` bigint(20) DEFAULT NULL,
- `case_____b_b` bigint(20) DEFAULT NULL,
- `coalesce___b` bigint(20) DEFAULT NULL,
- `coalesce_b_b` bigint(20) DEFAULT NULL,
- `if_______b_b` bigint(20) DEFAULT NULL,
- `ifnull___b_b` bigint(20) DEFAULT NULL,
- `least____b_b` bigint(20) DEFAULT NULL,
- `greatest_b_b` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` bigint(20) DEFAULT NULL,
- `case_____b_a` bigint(20) DEFAULT NULL,
- `coalesce_a_b` bigint(20) DEFAULT NULL,
- `coalesce_b_a` bigint(20) DEFAULT NULL,
- `if_______a_b` bigint(20) DEFAULT NULL,
- `if_______b_a` bigint(20) DEFAULT NULL,
- `ifnull___a_b` bigint(20) DEFAULT NULL,
- `ifnull___b_a` bigint(20) DEFAULT NULL,
- `least____a_b` bigint(20) DEFAULT NULL,
- `least____b_a` bigint(20) DEFAULT NULL,
- `greatest_a_b` bigint(20) DEFAULT NULL,
- `greatest_b_a` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-CREATE TABLE t1 (a INT, b BIT(8));
-INSERT INTO t1 VALUES (-2147483648,0x32);
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 3 11 11 Y 32768 0 63
-def case_______a 3 11 11 Y 32896 0 63
-def case_____a_a 3 11 11 Y 32896 0 63
-def coalesce___a 3 11 11 Y 32896 0 63
-def coalesce_a_a 3 11 11 Y 32896 0 63
-def if_______a_a 3 11 11 Y 32896 0 63
-def ifnull___a_a 3 11 11 Y 32896 0 63
-def least____a_a 3 11 11 Y 32896 0 63
-def greatest_a_a 3 11 11 Y 32896 0 63
-def test t1 t1 b ___________b 16 8 1 Y 32 0 63
-def case_______b 16 8 2 Y 160 0 63
-def case_____b_b 16 8 2 Y 160 0 63
-def coalesce___b 16 8 2 Y 160 0 63
-def coalesce_b_b 16 8 2 Y 160 0 63
-def if_______b_b 16 8 2 Y 160 0 63
-def ifnull___b_b 16 8 2 Y 160 0 63
-def least____b_b 16 8 2 Y 160 0 63
-def greatest_b_b 16 8 2 Y 160 0 63
-___________a -2147483648
-case_______a -2147483648
-case_____a_a -2147483648
-coalesce___a -2147483648
-coalesce_a_a -2147483648
-if_______a_a -2147483648
-ifnull___a_a -2147483648
-least____a_a -2147483648
-greatest_a_a -2147483648
-___________b 2
-case_______b 50
-case_____b_b 50
-coalesce___b 50
-coalesce_b_b 50
-if_______b_b 50
-ifnull___b_b 50
-least____b_b 50
-greatest_b_b 50
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 246 11 11 Y 32896 0 63
-def case_____b_a 246 11 2 Y 32896 0 63
-def coalesce_a_b 246 11 11 Y 32896 0 63
-def coalesce_b_a 246 11 2 Y 32896 0 63
-def if_______a_b 246 11 2 Y 32896 0 63
-def if_______b_a 246 11 11 Y 32896 0 63
-def ifnull___a_b 246 11 11 Y 32896 0 63
-def ifnull___b_a 246 11 2 Y 32896 0 63
-def least____a_b 246 11 11 Y 32896 0 63
-def least____b_a 246 11 11 Y 32896 0 63
-def greatest_a_b 246 11 2 Y 32896 0 63
-def greatest_b_a 246 11 2 Y 32896 0 63
-case_____a_b -2147483648
-case_____b_a 50
-coalesce_a_b -2147483648
-coalesce_b_a 50
-if_______a_b 50
-if_______b_a -2147483648
-ifnull___a_b -2147483648
-ifnull___b_a 50
-least____a_b -2147483648
-least____b_a -2147483648
-greatest_a_b 50
-greatest_b_a 50
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` int(11) DEFAULT NULL,
- `case_______a` int(11) DEFAULT NULL,
- `case_____a_a` int(11) DEFAULT NULL,
- `coalesce___a` int(11) DEFAULT NULL,
- `coalesce_a_a` int(11) DEFAULT NULL,
- `if_______a_a` int(11) DEFAULT NULL,
- `ifnull___a_a` int(11) DEFAULT NULL,
- `least____a_a` int(11) DEFAULT NULL,
- `greatest_a_a` int(11) DEFAULT NULL,
- `___________b` bit(8) DEFAULT NULL,
- `case_______b` bit(8) DEFAULT NULL,
- `case_____b_b` bit(8) DEFAULT NULL,
- `coalesce___b` bit(8) DEFAULT NULL,
- `coalesce_b_b` bit(8) DEFAULT NULL,
- `if_______b_b` bit(8) DEFAULT NULL,
- `ifnull___b_b` bit(8) DEFAULT NULL,
- `least____b_b` bit(8) DEFAULT NULL,
- `greatest_b_b` bit(8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` decimal(10,0) DEFAULT NULL,
- `case_____b_a` decimal(10,0) DEFAULT NULL,
- `coalesce_a_b` decimal(10,0) DEFAULT NULL,
- `coalesce_b_a` decimal(10,0) DEFAULT NULL,
- `if_______a_b` decimal(10,0) DEFAULT NULL,
- `if_______b_a` decimal(10,0) DEFAULT NULL,
- `ifnull___a_b` decimal(10,0) DEFAULT NULL,
- `ifnull___b_a` decimal(10,0) DEFAULT NULL,
- `least____a_b` decimal(10,0) DEFAULT NULL,
- `least____b_a` decimal(10,0) DEFAULT NULL,
- `greatest_a_b` decimal(10,0) DEFAULT NULL,
- `greatest_b_a` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-CREATE TABLE t1 (a INT UNSIGNED, b BIT(8));
-INSERT INTO t1 VALUES (4294967295,0x32);
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 3 10 10 Y 32800 0 63
-def case_______a 3 10 10 Y 32928 0 63
-def case_____a_a 3 10 10 Y 32928 0 63
-def coalesce___a 3 10 10 Y 32928 0 63
-def coalesce_a_a 3 10 10 Y 32928 0 63
-def if_______a_a 3 10 10 Y 32928 0 63
-def ifnull___a_a 3 10 10 Y 32928 0 63
-def least____a_a 3 10 10 Y 32928 0 63
-def greatest_a_a 3 10 10 Y 32928 0 63
-def test t1 t1 b ___________b 16 8 1 Y 32 0 63
-def case_______b 16 8 2 Y 160 0 63
-def case_____b_b 16 8 2 Y 160 0 63
-def coalesce___b 16 8 2 Y 160 0 63
-def coalesce_b_b 16 8 2 Y 160 0 63
-def if_______b_b 16 8 2 Y 160 0 63
-def ifnull___b_b 16 8 2 Y 160 0 63
-def least____b_b 16 8 2 Y 160 0 63
-def greatest_b_b 16 8 2 Y 160 0 63
-___________a 4294967295
-case_______a 4294967295
-case_____a_a 4294967295
-coalesce___a 4294967295
-coalesce_a_a 4294967295
-if_______a_a 4294967295
-ifnull___a_a 4294967295
-least____a_a 4294967295
-greatest_a_a 4294967295
-___________b 2
-case_______b 50
-case_____b_b 50
-coalesce___b 50
-coalesce_b_b 50
-if_______b_b 50
-ifnull___b_b 50
-least____b_b 50
-greatest_b_b 50
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 3 10 10 Y 32928 0 63
-def case_____b_a 3 10 2 Y 32928 0 63
-def coalesce_a_b 3 10 10 Y 32928 0 63
-def coalesce_b_a 3 10 2 Y 32928 0 63
-def if_______a_b 3 10 2 Y 32928 0 63
-def if_______b_a 3 10 10 Y 32928 0 63
-def ifnull___a_b 3 10 10 Y 32928 0 63
-def ifnull___b_a 3 10 2 Y 32928 0 63
-def least____a_b 3 10 2 Y 32928 0 63
-def least____b_a 3 10 2 Y 32928 0 63
-def greatest_a_b 3 10 10 Y 32928 0 63
-def greatest_b_a 3 10 10 Y 32928 0 63
-case_____a_b 4294967295
-case_____b_a 50
-coalesce_a_b 4294967295
-coalesce_b_a 50
-if_______a_b 50
-if_______b_a 4294967295
-ifnull___a_b 4294967295
-ifnull___b_a 50
-least____a_b 50
-least____b_a 50
-greatest_a_b 4294967295
-greatest_b_a 4294967295
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` int(10) unsigned DEFAULT NULL,
- `case_______a` int(10) unsigned DEFAULT NULL,
- `case_____a_a` int(10) unsigned DEFAULT NULL,
- `coalesce___a` int(10) unsigned DEFAULT NULL,
- `coalesce_a_a` int(10) unsigned DEFAULT NULL,
- `if_______a_a` int(10) unsigned DEFAULT NULL,
- `ifnull___a_a` int(10) unsigned DEFAULT NULL,
- `least____a_a` int(10) unsigned DEFAULT NULL,
- `greatest_a_a` int(10) unsigned DEFAULT NULL,
- `___________b` bit(8) DEFAULT NULL,
- `case_______b` bit(8) DEFAULT NULL,
- `case_____b_b` bit(8) DEFAULT NULL,
- `coalesce___b` bit(8) DEFAULT NULL,
- `coalesce_b_b` bit(8) DEFAULT NULL,
- `if_______b_b` bit(8) DEFAULT NULL,
- `ifnull___b_b` bit(8) DEFAULT NULL,
- `least____b_b` bit(8) DEFAULT NULL,
- `greatest_b_b` bit(8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` int(10) unsigned DEFAULT NULL,
- `case_____b_a` int(10) unsigned DEFAULT NULL,
- `coalesce_a_b` int(10) unsigned DEFAULT NULL,
- `coalesce_b_a` int(10) unsigned DEFAULT NULL,
- `if_______a_b` int(10) unsigned DEFAULT NULL,
- `if_______b_a` int(10) unsigned DEFAULT NULL,
- `ifnull___a_b` int(10) unsigned DEFAULT NULL,
- `ifnull___b_a` int(10) unsigned DEFAULT NULL,
- `least____a_b` int(10) unsigned DEFAULT NULL,
- `least____b_a` int(10) unsigned DEFAULT NULL,
- `greatest_a_b` int(10) unsigned DEFAULT NULL,
- `greatest_b_a` int(10) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-CREATE TABLE t1 (a BIT(7), b BIT(8));
-INSERT INTO t1 VALUES (0x32,0x32);
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 16 7 1 Y 32 0 63
-def case_______a 16 7 2 Y 160 0 63
-def case_____a_a 16 7 2 Y 160 0 63
-def coalesce___a 16 7 2 Y 160 0 63
-def coalesce_a_a 16 7 2 Y 160 0 63
-def if_______a_a 16 7 2 Y 160 0 63
-def ifnull___a_a 16 7 2 Y 160 0 63
-def least____a_a 16 7 2 Y 160 0 63
-def greatest_a_a 16 7 2 Y 160 0 63
-def test t1 t1 b ___________b 16 8 1 Y 32 0 63
-def case_______b 16 8 2 Y 160 0 63
-def case_____b_b 16 8 2 Y 160 0 63
-def coalesce___b 16 8 2 Y 160 0 63
-def coalesce_b_b 16 8 2 Y 160 0 63
-def if_______b_b 16 8 2 Y 160 0 63
-def ifnull___b_b 16 8 2 Y 160 0 63
-def least____b_b 16 8 2 Y 160 0 63
-def greatest_b_b 16 8 2 Y 160 0 63
-___________a 2
-case_______a 50
-case_____a_a 50
-coalesce___a 50
-coalesce_a_a 50
-if_______a_a 50
-ifnull___a_a 50
-least____a_a 50
-greatest_a_a 50
-___________b 2
-case_______b 50
-case_____b_b 50
-coalesce___b 50
-coalesce_b_b 50
-if_______b_b 50
-ifnull___b_b 50
-least____b_b 50
-greatest_b_b 50
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 16 8 2 Y 160 0 63
-def case_____b_a 16 8 2 Y 160 0 63
-def coalesce_a_b 16 8 2 Y 160 0 63
-def coalesce_b_a 16 8 2 Y 160 0 63
-def if_______a_b 16 8 2 Y 160 0 63
-def if_______b_a 16 8 2 Y 160 0 63
-def ifnull___a_b 16 8 2 Y 160 0 63
-def ifnull___b_a 16 8 2 Y 160 0 63
-def least____a_b 16 8 2 Y 160 0 63
-def least____b_a 16 8 2 Y 160 0 63
-def greatest_a_b 16 8 2 Y 160 0 63
-def greatest_b_a 16 8 2 Y 160 0 63
-case_____a_b 50
-case_____b_a 50
-coalesce_a_b 50
-coalesce_b_a 50
-if_______a_b 50
-if_______b_a 50
-ifnull___a_b 50
-ifnull___b_a 50
-least____a_b 50
-least____b_a 50
-greatest_a_b 50
-greatest_b_a 50
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` bit(7) DEFAULT NULL,
- `case_______a` bit(7) DEFAULT NULL,
- `case_____a_a` bit(7) DEFAULT NULL,
- `coalesce___a` bit(7) DEFAULT NULL,
- `coalesce_a_a` bit(7) DEFAULT NULL,
- `if_______a_a` bit(7) DEFAULT NULL,
- `ifnull___a_a` bit(7) DEFAULT NULL,
- `least____a_a` bit(7) DEFAULT NULL,
- `greatest_a_a` bit(7) DEFAULT NULL,
- `___________b` bit(8) DEFAULT NULL,
- `case_______b` bit(8) DEFAULT NULL,
- `case_____b_b` bit(8) DEFAULT NULL,
- `coalesce___b` bit(8) DEFAULT NULL,
- `coalesce_b_b` bit(8) DEFAULT NULL,
- `if_______b_b` bit(8) DEFAULT NULL,
- `ifnull___b_b` bit(8) DEFAULT NULL,
- `least____b_b` bit(8) DEFAULT NULL,
- `greatest_b_b` bit(8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` bit(8) DEFAULT NULL,
- `case_____b_a` bit(8) DEFAULT NULL,
- `coalesce_a_b` bit(8) DEFAULT NULL,
- `coalesce_b_a` bit(8) DEFAULT NULL,
- `if_______a_b` bit(8) DEFAULT NULL,
- `if_______b_a` bit(8) DEFAULT NULL,
- `ifnull___a_b` bit(8) DEFAULT NULL,
- `ifnull___b_a` bit(8) DEFAULT NULL,
- `least____a_b` bit(8) DEFAULT NULL,
- `least____b_a` bit(8) DEFAULT NULL,
- `greatest_a_b` bit(8) DEFAULT NULL,
- `greatest_b_a` bit(8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-CREATE TABLE t1 (a FLOAT, b SMALLINT);
-INSERT INTO t1 VALUES (1,-32678);
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 4 12 1 Y 32768 31 63
-def case_______a 4 12 1 Y 32896 31 63
-def case_____a_a 4 12 1 Y 32896 31 63
-def coalesce___a 4 12 1 Y 32896 31 63
-def coalesce_a_a 4 12 1 Y 32896 31 63
-def if_______a_a 4 12 1 Y 32896 31 63
-def ifnull___a_a 4 12 1 Y 32896 31 63
-def least____a_a 4 23 1 Y 32896 31 63
-def greatest_a_a 4 23 1 Y 32896 31 63
-def test t1 t1 b ___________b 2 6 6 Y 32768 0 63
-def case_______b 2 6 6 Y 32896 0 63
-def case_____b_b 2 6 6 Y 32896 0 63
-def coalesce___b 2 6 6 Y 32896 0 63
-def coalesce_b_b 2 6 6 Y 32896 0 63
-def if_______b_b 2 6 6 Y 32896 0 63
-def ifnull___b_b 2 6 6 Y 32896 0 63
-def least____b_b 2 6 6 Y 32896 0 63
-def greatest_b_b 2 6 6 Y 32896 0 63
-___________a 1
-case_______a 1
-case_____a_a 1
-coalesce___a 1
-coalesce_a_a 1
-if_______a_a 1
-ifnull___a_a 1
-least____a_a 1
-greatest_a_a 1
-___________b -32678
-case_______b -32678
-case_____b_b -32678
-coalesce___b -32678
-coalesce_b_b -32678
-if_______b_b -32678
-ifnull___b_b -32678
-least____b_b -32678
-greatest_b_b -32678
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 4 12 1 Y 32896 31 63
-def case_____b_a 4 12 6 Y 32896 31 63
-def coalesce_a_b 4 12 1 Y 32896 31 63
-def coalesce_b_a 4 12 6 Y 32896 31 63
-def if_______a_b 4 12 6 Y 32896 31 63
-def if_______b_a 4 12 1 Y 32896 31 63
-def ifnull___a_b 4 12 1 Y 32896 31 63
-def ifnull___b_a 4 12 6 Y 32896 31 63
-def least____a_b 5 23 6 Y 32896 31 63
-def least____b_a 5 23 6 Y 32896 31 63
-def greatest_a_b 5 23 1 Y 32896 31 63
-def greatest_b_a 5 23 1 Y 32896 31 63
-case_____a_b 1
-case_____b_a -32678
-coalesce_a_b 1
-coalesce_b_a -32678
-if_______a_b -32678
-if_______b_a 1
-ifnull___a_b 1
-ifnull___b_a -32678
-least____a_b -32678
-least____b_a -32678
-greatest_a_b 1
-greatest_b_a 1
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` float DEFAULT NULL,
- `case_______a` float DEFAULT NULL,
- `case_____a_a` float DEFAULT NULL,
- `coalesce___a` float DEFAULT NULL,
- `coalesce_a_a` float DEFAULT NULL,
- `if_______a_a` float DEFAULT NULL,
- `ifnull___a_a` float DEFAULT NULL,
- `least____a_a` float DEFAULT NULL,
- `greatest_a_a` float DEFAULT NULL,
- `___________b` smallint(6) DEFAULT NULL,
- `case_______b` smallint(6) DEFAULT NULL,
- `case_____b_b` smallint(6) DEFAULT NULL,
- `coalesce___b` smallint(6) DEFAULT NULL,
- `coalesce_b_b` smallint(6) DEFAULT NULL,
- `if_______b_b` smallint(6) DEFAULT NULL,
- `ifnull___b_b` smallint(6) DEFAULT NULL,
- `least____b_b` smallint(6) DEFAULT NULL,
- `greatest_b_b` smallint(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` float DEFAULT NULL,
- `case_____b_a` float DEFAULT NULL,
- `coalesce_a_b` float DEFAULT NULL,
- `coalesce_b_a` float DEFAULT NULL,
- `if_______a_b` float DEFAULT NULL,
- `if_______b_a` float DEFAULT NULL,
- `ifnull___a_b` float DEFAULT NULL,
- `ifnull___b_a` float DEFAULT NULL,
- `least____a_b` double DEFAULT NULL,
- `least____b_a` double DEFAULT NULL,
- `greatest_a_b` double DEFAULT NULL,
- `greatest_b_a` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-CREATE TABLE t1 (a VARCHAR(10), b ENUM('b'));
-INSERT INTO t1 VALUES ('a','b');
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 253 10 1 Y 0 0 8
-def case_______a 253 10 1 Y 0 39 8
-def case_____a_a 253 10 1 Y 0 39 8
-def coalesce___a 253 10 1 Y 0 39 8
-def coalesce_a_a 253 10 1 Y 0 39 8
-def if_______a_a 253 10 1 Y 0 39 8
-def ifnull___a_a 253 10 1 Y 0 39 8
-def least____a_a 253 10 1 Y 0 39 8
-def greatest_a_a 253 10 1 Y 0 39 8
-def test t1 t1 b ___________b 254 1 1 Y 256 0 8
-def case_______b 254 1 1 Y 0 39 8
-def case_____b_b 254 1 1 Y 0 39 8
-def coalesce___b 254 1 1 Y 0 39 8
-def coalesce_b_b 254 1 1 Y 0 39 8
-def if_______b_b 254 1 1 Y 0 39 8
-def ifnull___b_b 254 1 1 Y 0 39 8
-def least____b_b 254 1 1 Y 0 39 8
-def greatest_b_b 254 1 1 Y 0 39 8
-___________a a
-case_______a a
-case_____a_a a
-coalesce___a a
-coalesce_a_a a
-if_______a_a a
-ifnull___a_a a
-least____a_a a
-greatest_a_a a
-___________b b
-case_______b b
-case_____b_b b
-coalesce___b b
-coalesce_b_b b
-if_______b_b b
-ifnull___b_b b
-least____b_b b
-greatest_b_b b
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 253 10 1 Y 0 39 8
-def case_____b_a 253 10 1 Y 0 39 8
-def coalesce_a_b 253 10 1 Y 0 39 8
-def coalesce_b_a 253 10 1 Y 0 39 8
-def if_______a_b 253 10 1 Y 0 39 8
-def if_______b_a 253 10 1 Y 0 39 8
-def ifnull___a_b 253 10 1 Y 0 39 8
-def ifnull___b_a 253 10 1 Y 0 39 8
-def least____a_b 253 10 1 Y 0 39 8
-def least____b_a 253 10 1 Y 0 39 8
-def greatest_a_b 253 10 1 Y 0 39 8
-def greatest_b_a 253 10 1 Y 0 39 8
-case_____a_b a
-case_____b_a b
-coalesce_a_b a
-coalesce_b_a b
-if_______a_b b
-if_______b_a a
-ifnull___a_b a
-ifnull___b_a b
-least____a_b a
-least____b_a a
-greatest_a_b b
-greatest_b_a b
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` varchar(10) DEFAULT NULL,
- `case_______a` varchar(10) DEFAULT NULL,
- `case_____a_a` varchar(10) DEFAULT NULL,
- `coalesce___a` varchar(10) DEFAULT NULL,
- `coalesce_a_a` varchar(10) DEFAULT NULL,
- `if_______a_a` varchar(10) DEFAULT NULL,
- `ifnull___a_a` varchar(10) DEFAULT NULL,
- `least____a_a` varchar(10) DEFAULT NULL,
- `greatest_a_a` varchar(10) DEFAULT NULL,
- `___________b` enum('b') DEFAULT NULL,
- `case_______b` varchar(1) DEFAULT NULL,
- `case_____b_b` varchar(1) DEFAULT NULL,
- `coalesce___b` varchar(1) DEFAULT NULL,
- `coalesce_b_b` varchar(1) DEFAULT NULL,
- `if_______b_b` varchar(1) DEFAULT NULL,
- `ifnull___b_b` varchar(1) DEFAULT NULL,
- `least____b_b` varchar(1) DEFAULT NULL,
- `greatest_b_b` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` varchar(10) DEFAULT NULL,
- `case_____b_a` varchar(10) DEFAULT NULL,
- `coalesce_a_b` varchar(10) DEFAULT NULL,
- `coalesce_b_a` varchar(10) DEFAULT NULL,
- `if_______a_b` varchar(10) DEFAULT NULL,
- `if_______b_a` varchar(10) DEFAULT NULL,
- `ifnull___a_b` varchar(10) DEFAULT NULL,
- `ifnull___b_a` varchar(10) DEFAULT NULL,
- `least____a_b` varchar(10) DEFAULT NULL,
- `least____b_a` varchar(10) DEFAULT NULL,
- `greatest_a_b` varchar(10) DEFAULT NULL,
- `greatest_b_a` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-CREATE TABLE t1 (a INT, b YEAR);
-INSERT INTO t1 VALUES (-2147483648,2015);
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 3 11 11 Y 32768 0 63
-def case_______a 3 11 11 Y 32896 0 63
-def case_____a_a 3 11 11 Y 32896 0 63
-def coalesce___a 3 11 11 Y 32896 0 63
-def coalesce_a_a 3 11 11 Y 32896 0 63
-def if_______a_a 3 11 11 Y 32896 0 63
-def ifnull___a_a 3 11 11 Y 32896 0 63
-def least____a_a 3 11 11 Y 32896 0 63
-def greatest_a_a 3 11 11 Y 32896 0 63
-def test t1 t1 b ___________b 13 4 4 Y 32864 0 63
-def case_______b 13 4 4 Y 32928 0 63
-def case_____b_b 13 4 4 Y 32928 0 63
-def coalesce___b 13 4 4 Y 32928 0 63
-def coalesce_b_b 13 4 4 Y 32928 0 63
-def if_______b_b 13 4 4 Y 32928 0 63
-def ifnull___b_b 13 4 4 Y 32928 0 63
-def least____b_b 13 4 4 Y 32928 0 63
-def greatest_b_b 13 4 4 Y 32928 0 63
-___________a -2147483648
-case_______a -2147483648
-case_____a_a -2147483648
-coalesce___a -2147483648
-coalesce_a_a -2147483648
-if_______a_a -2147483648
-ifnull___a_a -2147483648
-least____a_a -2147483648
-greatest_a_a -2147483648
-___________b 2015
-case_______b 2015
-case_____b_b 2015
-coalesce___b 2015
-coalesce_b_b 2015
-if_______b_b 2015
-ifnull___b_b 2015
-least____b_b 2015
-greatest_b_b 2015
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 246 11 11 Y 32896 0 63
-def case_____b_a 246 11 4 Y 32896 0 63
-def coalesce_a_b 246 11 11 Y 32896 0 63
-def coalesce_b_a 246 11 4 Y 32896 0 63
-def if_______a_b 246 11 4 Y 32896 0 63
-def if_______b_a 246 11 11 Y 32896 0 63
-def ifnull___a_b 246 11 11 Y 32896 0 63
-def ifnull___b_a 246 11 4 Y 32896 0 63
-def least____a_b 246 11 11 Y 32896 0 63
-def least____b_a 246 11 11 Y 32896 0 63
-def greatest_a_b 246 11 4 Y 32896 0 63
-def greatest_b_a 246 11 4 Y 32896 0 63
-case_____a_b -2147483648
-case_____b_a 2015
-coalesce_a_b -2147483648
-coalesce_b_a 2015
-if_______a_b 2015
-if_______b_a -2147483648
-ifnull___a_b -2147483648
-ifnull___b_a 2015
-least____a_b -2147483648
-least____b_a -2147483648
-greatest_a_b 2015
-greatest_b_a 2015
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` int(11) DEFAULT NULL,
- `case_______a` int(11) DEFAULT NULL,
- `case_____a_a` int(11) DEFAULT NULL,
- `coalesce___a` int(11) DEFAULT NULL,
- `coalesce_a_a` int(11) DEFAULT NULL,
- `if_______a_a` int(11) DEFAULT NULL,
- `ifnull___a_a` int(11) DEFAULT NULL,
- `least____a_a` int(11) DEFAULT NULL,
- `greatest_a_a` int(11) DEFAULT NULL,
- `___________b` year(4) DEFAULT NULL,
- `case_______b` year(4) DEFAULT NULL,
- `case_____b_b` year(4) DEFAULT NULL,
- `coalesce___b` year(4) DEFAULT NULL,
- `coalesce_b_b` year(4) DEFAULT NULL,
- `if_______b_b` year(4) DEFAULT NULL,
- `ifnull___b_b` year(4) DEFAULT NULL,
- `least____b_b` year(4) DEFAULT NULL,
- `greatest_b_b` year(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` decimal(10,0) DEFAULT NULL,
- `case_____b_a` decimal(10,0) DEFAULT NULL,
- `coalesce_a_b` decimal(10,0) DEFAULT NULL,
- `coalesce_b_a` decimal(10,0) DEFAULT NULL,
- `if_______a_b` decimal(10,0) DEFAULT NULL,
- `if_______b_a` decimal(10,0) DEFAULT NULL,
- `ifnull___a_b` decimal(10,0) DEFAULT NULL,
- `ifnull___b_a` decimal(10,0) DEFAULT NULL,
- `least____a_b` decimal(10,0) DEFAULT NULL,
- `least____b_a` decimal(10,0) DEFAULT NULL,
- `greatest_a_b` decimal(10,0) DEFAULT NULL,
- `greatest_b_a` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-CREATE TABLE t1 (a INT UNSIGNED, b YEAR);
-INSERT INTO t1 VALUES (4294967295,2015);
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 3 10 10 Y 32800 0 63
-def case_______a 3 10 10 Y 32928 0 63
-def case_____a_a 3 10 10 Y 32928 0 63
-def coalesce___a 3 10 10 Y 32928 0 63
-def coalesce_a_a 3 10 10 Y 32928 0 63
-def if_______a_a 3 10 10 Y 32928 0 63
-def ifnull___a_a 3 10 10 Y 32928 0 63
-def least____a_a 3 10 10 Y 32928 0 63
-def greatest_a_a 3 10 10 Y 32928 0 63
-def test t1 t1 b ___________b 13 4 4 Y 32864 0 63
-def case_______b 13 4 4 Y 32928 0 63
-def case_____b_b 13 4 4 Y 32928 0 63
-def coalesce___b 13 4 4 Y 32928 0 63
-def coalesce_b_b 13 4 4 Y 32928 0 63
-def if_______b_b 13 4 4 Y 32928 0 63
-def ifnull___b_b 13 4 4 Y 32928 0 63
-def least____b_b 13 4 4 Y 32928 0 63
-def greatest_b_b 13 4 4 Y 32928 0 63
-___________a 4294967295
-case_______a 4294967295
-case_____a_a 4294967295
-coalesce___a 4294967295
-coalesce_a_a 4294967295
-if_______a_a 4294967295
-ifnull___a_a 4294967295
-least____a_a 4294967295
-greatest_a_a 4294967295
-___________b 2015
-case_______b 2015
-case_____b_b 2015
-coalesce___b 2015
-coalesce_b_b 2015
-if_______b_b 2015
-ifnull___b_b 2015
-least____b_b 2015
-greatest_b_b 2015
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 3 10 10 Y 32928 0 63
-def case_____b_a 3 10 4 Y 32928 0 63
-def coalesce_a_b 3 10 10 Y 32928 0 63
-def coalesce_b_a 3 10 4 Y 32928 0 63
-def if_______a_b 3 10 4 Y 32928 0 63
-def if_______b_a 3 10 10 Y 32928 0 63
-def ifnull___a_b 3 10 10 Y 32928 0 63
-def ifnull___b_a 3 10 4 Y 32928 0 63
-def least____a_b 3 10 4 Y 32928 0 63
-def least____b_a 3 10 4 Y 32928 0 63
-def greatest_a_b 3 10 10 Y 32928 0 63
-def greatest_b_a 3 10 10 Y 32928 0 63
-case_____a_b 4294967295
-case_____b_a 2015
-coalesce_a_b 4294967295
-coalesce_b_a 2015
-if_______a_b 2015
-if_______b_a 4294967295
-ifnull___a_b 4294967295
-ifnull___b_a 2015
-least____a_b 2015
-least____b_a 2015
-greatest_a_b 4294967295
-greatest_b_a 4294967295
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` int(10) unsigned DEFAULT NULL,
- `case_______a` int(10) unsigned DEFAULT NULL,
- `case_____a_a` int(10) unsigned DEFAULT NULL,
- `coalesce___a` int(10) unsigned DEFAULT NULL,
- `coalesce_a_a` int(10) unsigned DEFAULT NULL,
- `if_______a_a` int(10) unsigned DEFAULT NULL,
- `ifnull___a_a` int(10) unsigned DEFAULT NULL,
- `least____a_a` int(10) unsigned DEFAULT NULL,
- `greatest_a_a` int(10) unsigned DEFAULT NULL,
- `___________b` year(4) DEFAULT NULL,
- `case_______b` year(4) DEFAULT NULL,
- `case_____b_b` year(4) DEFAULT NULL,
- `coalesce___b` year(4) DEFAULT NULL,
- `coalesce_b_b` year(4) DEFAULT NULL,
- `if_______b_b` year(4) DEFAULT NULL,
- `ifnull___b_b` year(4) DEFAULT NULL,
- `least____b_b` year(4) DEFAULT NULL,
- `greatest_b_b` year(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` int(10) unsigned DEFAULT NULL,
- `case_____b_a` int(10) unsigned DEFAULT NULL,
- `coalesce_a_b` int(10) unsigned DEFAULT NULL,
- `coalesce_b_a` int(10) unsigned DEFAULT NULL,
- `if_______a_b` int(10) unsigned DEFAULT NULL,
- `if_______b_a` int(10) unsigned DEFAULT NULL,
- `ifnull___a_b` int(10) unsigned DEFAULT NULL,
- `ifnull___b_a` int(10) unsigned DEFAULT NULL,
- `least____a_b` int(10) unsigned DEFAULT NULL,
- `least____b_a` int(10) unsigned DEFAULT NULL,
- `greatest_a_b` int(10) unsigned DEFAULT NULL,
- `greatest_b_a` int(10) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 01:02:03');
-CREATE TABLE t1 (a DATE, b TIME);
-INSERT INTO t1 VALUES ('2010-01-01','10:20:30');
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 10 10 10 Y 128 0 63
-def case_______a 10 10 10 Y 128 0 63
-def case_____a_a 10 10 10 Y 128 0 63
-def coalesce___a 10 10 10 Y 128 0 63
-def coalesce_a_a 10 10 10 Y 128 0 63
-def if_______a_a 10 10 10 Y 128 0 63
-def ifnull___a_a 10 10 10 Y 128 0 63
-def least____a_a 10 10 10 Y 128 0 63
-def greatest_a_a 10 10 10 Y 128 0 63
-def test t1 t1 b ___________b 11 10 8 Y 128 0 63
-def case_______b 11 10 8 Y 128 0 63
-def case_____b_b 11 10 8 Y 128 0 63
-def coalesce___b 11 10 8 Y 128 0 63
-def coalesce_b_b 11 10 8 Y 128 0 63
-def if_______b_b 11 10 8 Y 128 0 63
-def ifnull___b_b 11 10 8 Y 128 0 63
-def least____b_b 11 10 8 Y 128 0 63
-def greatest_b_b 11 10 8 Y 128 0 63
-___________a 2010-01-01
-case_______a 2010-01-01
-case_____a_a 2010-01-01
-coalesce___a 2010-01-01
-coalesce_a_a 2010-01-01
-if_______a_a 2010-01-01
-ifnull___a_a 2010-01-01
-least____a_a 2010-01-01
-greatest_a_a 2010-01-01
-___________b 10:20:30
-case_______b 10:20:30
-case_____b_b 10:20:30
-coalesce___b 10:20:30
-coalesce_b_b 10:20:30
-if_______b_b 10:20:30
-ifnull___b_b 10:20:30
-least____b_b 10:20:30
-greatest_b_b 10:20:30
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 12 19 19 Y 128 0 63
-def case_____b_a 12 19 19 Y 128 0 63
-def coalesce_a_b 12 19 19 Y 128 0 63
-def coalesce_b_a 12 19 19 Y 128 0 63
-def if_______a_b 12 19 19 Y 128 0 63
-def if_______b_a 12 19 19 Y 128 0 63
-def ifnull___a_b 12 19 19 Y 128 0 63
-def ifnull___b_a 12 19 19 Y 128 0 63
-def least____a_b 12 19 19 Y 128 0 63
-def least____b_a 12 19 19 Y 128 0 63
-def greatest_a_b 12 19 19 Y 128 0 63
-def greatest_b_a 12 19 19 Y 128 0 63
-case_____a_b 2010-01-01 00:00:00
-case_____b_a 2001-01-01 10:20:30
-coalesce_a_b 2010-01-01 00:00:00
-coalesce_b_a 2001-01-01 10:20:30
-if_______a_b 2001-01-01 10:20:30
-if_______b_a 2010-01-01 00:00:00
-ifnull___a_b 2010-01-01 00:00:00
-ifnull___b_a 2001-01-01 10:20:30
-least____a_b 2001-01-01 10:20:30
-least____b_a 2001-01-01 10:20:30
-greatest_a_b 2010-01-01 00:00:00
-greatest_b_a 2010-01-01 00:00:00
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` date DEFAULT NULL,
- `case_______a` date DEFAULT NULL,
- `case_____a_a` date DEFAULT NULL,
- `coalesce___a` date DEFAULT NULL,
- `coalesce_a_a` date DEFAULT NULL,
- `if_______a_a` date DEFAULT NULL,
- `ifnull___a_a` date DEFAULT NULL,
- `least____a_a` date DEFAULT NULL,
- `greatest_a_a` date DEFAULT NULL,
- `___________b` time DEFAULT NULL,
- `case_______b` time DEFAULT NULL,
- `case_____b_b` time DEFAULT NULL,
- `coalesce___b` time DEFAULT NULL,
- `coalesce_b_b` time DEFAULT NULL,
- `if_______b_b` time DEFAULT NULL,
- `ifnull___b_b` time DEFAULT NULL,
- `least____b_b` time DEFAULT NULL,
- `greatest_b_b` time DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` datetime DEFAULT NULL,
- `case_____b_a` datetime DEFAULT NULL,
- `coalesce_a_b` datetime DEFAULT NULL,
- `coalesce_b_a` datetime DEFAULT NULL,
- `if_______a_b` datetime DEFAULT NULL,
- `if_______b_a` datetime DEFAULT NULL,
- `ifnull___a_b` datetime DEFAULT NULL,
- `ifnull___b_a` datetime DEFAULT NULL,
- `least____a_b` datetime DEFAULT NULL,
- `least____b_a` datetime DEFAULT NULL,
- `greatest_a_b` datetime DEFAULT NULL,
- `greatest_b_a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 01:02:03');
-CREATE TABLE t1 (a TIMESTAMP, b TIME);
-INSERT INTO t1 VALUES ('2010-01-01 00:00:00','10:20:30');
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 7 19 19 N 9377 0 63
-def case_______a 7 19 19 Y 128 0 63
-def case_____a_a 7 19 19 N 129 0 63
-def coalesce___a 7 19 19 N 129 0 63
-def coalesce_a_a 7 19 19 N 129 0 63
-def if_______a_a 7 19 19 N 129 0 63
-def ifnull___a_a 7 19 19 N 129 0 63
-def least____a_a 7 19 19 N 129 0 63
-def greatest_a_a 7 19 19 N 129 0 63
-def test t1 t1 b ___________b 11 10 8 Y 128 0 63
-def case_______b 11 10 8 Y 128 0 63
-def case_____b_b 11 10 8 Y 128 0 63
-def coalesce___b 11 10 8 Y 128 0 63
-def coalesce_b_b 11 10 8 Y 128 0 63
-def if_______b_b 11 10 8 Y 128 0 63
-def ifnull___b_b 11 10 8 Y 128 0 63
-def least____b_b 11 10 8 Y 128 0 63
-def greatest_b_b 11 10 8 Y 128 0 63
-___________a 2010-01-01 00:00:00
-case_______a 2010-01-01 00:00:00
-case_____a_a 2010-01-01 00:00:00
-coalesce___a 2010-01-01 00:00:00
-coalesce_a_a 2010-01-01 00:00:00
-if_______a_a 2010-01-01 00:00:00
-ifnull___a_a 2010-01-01 00:00:00
-least____a_a 2010-01-01 00:00:00
-greatest_a_a 2010-01-01 00:00:00
-___________b 10:20:30
-case_______b 10:20:30
-case_____b_b 10:20:30
-coalesce___b 10:20:30
-coalesce_b_b 10:20:30
-if_______b_b 10:20:30
-ifnull___b_b 10:20:30
-least____b_b 10:20:30
-greatest_b_b 10:20:30
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 12 19 19 Y 128 0 63
-def case_____b_a 12 19 19 Y 128 0 63
-def coalesce_a_b 12 19 19 Y 128 0 63
-def coalesce_b_a 12 19 19 Y 128 0 63
-def if_______a_b 12 19 19 Y 128 0 63
-def if_______b_a 12 19 19 Y 128 0 63
-def ifnull___a_b 12 19 19 Y 128 0 63
-def ifnull___b_a 12 19 19 N 129 0 63
-def least____a_b 12 19 19 Y 128 0 63
-def least____b_a 12 19 19 Y 128 0 63
-def greatest_a_b 12 19 19 Y 128 0 63
-def greatest_b_a 12 19 19 Y 128 0 63
-case_____a_b 2010-01-01 00:00:00
-case_____b_a 2001-01-01 10:20:30
-coalesce_a_b 2010-01-01 00:00:00
-coalesce_b_a 2001-01-01 10:20:30
-if_______a_b 2001-01-01 10:20:30
-if_______b_a 2010-01-01 00:00:00
-ifnull___a_b 2010-01-01 00:00:00
-ifnull___b_a 2001-01-01 10:20:30
-least____a_b 2001-01-01 10:20:30
-least____b_a 2001-01-01 10:20:30
-greatest_a_b 2010-01-01 00:00:00
-greatest_b_a 2010-01-01 00:00:00
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `case_______a` timestamp NULL DEFAULT NULL,
- `case_____a_a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `coalesce___a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `coalesce_a_a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `if_______a_a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `ifnull___a_a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `least____a_a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `greatest_a_a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `___________b` time DEFAULT NULL,
- `case_______b` time DEFAULT NULL,
- `case_____b_b` time DEFAULT NULL,
- `coalesce___b` time DEFAULT NULL,
- `coalesce_b_b` time DEFAULT NULL,
- `if_______b_b` time DEFAULT NULL,
- `ifnull___b_b` time DEFAULT NULL,
- `least____b_b` time DEFAULT NULL,
- `greatest_b_b` time DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` datetime DEFAULT NULL,
- `case_____b_a` datetime DEFAULT NULL,
- `coalesce_a_b` datetime DEFAULT NULL,
- `coalesce_b_a` datetime DEFAULT NULL,
- `if_______a_b` datetime DEFAULT NULL,
- `if_______b_a` datetime DEFAULT NULL,
- `ifnull___a_b` datetime DEFAULT NULL,
- `ifnull___b_a` datetime NOT NULL,
- `least____a_b` datetime DEFAULT NULL,
- `least____b_a` datetime DEFAULT NULL,
- `greatest_a_b` datetime DEFAULT NULL,
- `greatest_b_a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 01:02:03');
-CREATE TABLE t1 (a DATETIME, b TIME);
-INSERT INTO t1 VALUES ('2010-01-01 00:00:00','10:20:30');
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 12 19 19 Y 128 0 63
-def case_______a 12 19 19 Y 128 0 63
-def case_____a_a 12 19 19 Y 128 0 63
-def coalesce___a 12 19 19 Y 128 0 63
-def coalesce_a_a 12 19 19 Y 128 0 63
-def if_______a_a 12 19 19 Y 128 0 63
-def ifnull___a_a 12 19 19 Y 128 0 63
-def least____a_a 12 19 19 Y 128 0 63
-def greatest_a_a 12 19 19 Y 128 0 63
-def test t1 t1 b ___________b 11 10 8 Y 128 0 63
-def case_______b 11 10 8 Y 128 0 63
-def case_____b_b 11 10 8 Y 128 0 63
-def coalesce___b 11 10 8 Y 128 0 63
-def coalesce_b_b 11 10 8 Y 128 0 63
-def if_______b_b 11 10 8 Y 128 0 63
-def ifnull___b_b 11 10 8 Y 128 0 63
-def least____b_b 11 10 8 Y 128 0 63
-def greatest_b_b 11 10 8 Y 128 0 63
-___________a 2010-01-01 00:00:00
-case_______a 2010-01-01 00:00:00
-case_____a_a 2010-01-01 00:00:00
-coalesce___a 2010-01-01 00:00:00
-coalesce_a_a 2010-01-01 00:00:00
-if_______a_a 2010-01-01 00:00:00
-ifnull___a_a 2010-01-01 00:00:00
-least____a_a 2010-01-01 00:00:00
-greatest_a_a 2010-01-01 00:00:00
-___________b 10:20:30
-case_______b 10:20:30
-case_____b_b 10:20:30
-coalesce___b 10:20:30
-coalesce_b_b 10:20:30
-if_______b_b 10:20:30
-ifnull___b_b 10:20:30
-least____b_b 10:20:30
-greatest_b_b 10:20:30
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 12 19 19 Y 128 0 63
-def case_____b_a 12 19 19 Y 128 0 63
-def coalesce_a_b 12 19 19 Y 128 0 63
-def coalesce_b_a 12 19 19 Y 128 0 63
-def if_______a_b 12 19 19 Y 128 0 63
-def if_______b_a 12 19 19 Y 128 0 63
-def ifnull___a_b 12 19 19 Y 128 0 63
-def ifnull___b_a 12 19 19 Y 128 0 63
-def least____a_b 12 19 19 Y 128 0 63
-def least____b_a 12 19 19 Y 128 0 63
-def greatest_a_b 12 19 19 Y 128 0 63
-def greatest_b_a 12 19 19 Y 128 0 63
-case_____a_b 2010-01-01 00:00:00
-case_____b_a 2001-01-01 10:20:30
-coalesce_a_b 2010-01-01 00:00:00
-coalesce_b_a 2001-01-01 10:20:30
-if_______a_b 2001-01-01 10:20:30
-if_______b_a 2010-01-01 00:00:00
-ifnull___a_b 2010-01-01 00:00:00
-ifnull___b_a 2001-01-01 10:20:30
-least____a_b 2001-01-01 10:20:30
-least____b_a 2001-01-01 10:20:30
-greatest_a_b 2010-01-01 00:00:00
-greatest_b_a 2010-01-01 00:00:00
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` datetime DEFAULT NULL,
- `case_______a` datetime DEFAULT NULL,
- `case_____a_a` datetime DEFAULT NULL,
- `coalesce___a` datetime DEFAULT NULL,
- `coalesce_a_a` datetime DEFAULT NULL,
- `if_______a_a` datetime DEFAULT NULL,
- `ifnull___a_a` datetime DEFAULT NULL,
- `least____a_a` datetime DEFAULT NULL,
- `greatest_a_a` datetime DEFAULT NULL,
- `___________b` time DEFAULT NULL,
- `case_______b` time DEFAULT NULL,
- `case_____b_b` time DEFAULT NULL,
- `coalesce___b` time DEFAULT NULL,
- `coalesce_b_b` time DEFAULT NULL,
- `if_______b_b` time DEFAULT NULL,
- `ifnull___b_b` time DEFAULT NULL,
- `least____b_b` time DEFAULT NULL,
- `greatest_b_b` time DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` datetime DEFAULT NULL,
- `case_____b_a` datetime DEFAULT NULL,
- `coalesce_a_b` datetime DEFAULT NULL,
- `coalesce_b_a` datetime DEFAULT NULL,
- `if_______a_b` datetime DEFAULT NULL,
- `if_______b_a` datetime DEFAULT NULL,
- `ifnull___a_b` datetime DEFAULT NULL,
- `ifnull___b_a` datetime DEFAULT NULL,
- `least____a_b` datetime DEFAULT NULL,
- `least____b_a` datetime DEFAULT NULL,
- `greatest_a_b` datetime DEFAULT NULL,
- `greatest_b_a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 01:02:03');
-CREATE TABLE t1 (a DATETIME, b DATE);
-INSERT INTO t1 VALUES ('2010-01-01 10:20:30','2001-01-02');
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 12 19 19 Y 128 0 63
-def case_______a 12 19 19 Y 128 0 63
-def case_____a_a 12 19 19 Y 128 0 63
-def coalesce___a 12 19 19 Y 128 0 63
-def coalesce_a_a 12 19 19 Y 128 0 63
-def if_______a_a 12 19 19 Y 128 0 63
-def ifnull___a_a 12 19 19 Y 128 0 63
-def least____a_a 12 19 19 Y 128 0 63
-def greatest_a_a 12 19 19 Y 128 0 63
-def test t1 t1 b ___________b 10 10 10 Y 128 0 63
-def case_______b 10 10 10 Y 128 0 63
-def case_____b_b 10 10 10 Y 128 0 63
-def coalesce___b 10 10 10 Y 128 0 63
-def coalesce_b_b 10 10 10 Y 128 0 63
-def if_______b_b 10 10 10 Y 128 0 63
-def ifnull___b_b 10 10 10 Y 128 0 63
-def least____b_b 10 10 10 Y 128 0 63
-def greatest_b_b 10 10 10 Y 128 0 63
-___________a 2010-01-01 10:20:30
-case_______a 2010-01-01 10:20:30
-case_____a_a 2010-01-01 10:20:30
-coalesce___a 2010-01-01 10:20:30
-coalesce_a_a 2010-01-01 10:20:30
-if_______a_a 2010-01-01 10:20:30
-ifnull___a_a 2010-01-01 10:20:30
-least____a_a 2010-01-01 10:20:30
-greatest_a_a 2010-01-01 10:20:30
-___________b 2001-01-02
-case_______b 2001-01-02
-case_____b_b 2001-01-02
-coalesce___b 2001-01-02
-coalesce_b_b 2001-01-02
-if_______b_b 2001-01-02
-ifnull___b_b 2001-01-02
-least____b_b 2001-01-02
-greatest_b_b 2001-01-02
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 12 19 19 Y 128 0 63
-def case_____b_a 12 19 19 Y 128 0 63
-def coalesce_a_b 12 19 19 Y 128 0 63
-def coalesce_b_a 12 19 19 Y 128 0 63
-def if_______a_b 12 19 19 Y 128 0 63
-def if_______b_a 12 19 19 Y 128 0 63
-def ifnull___a_b 12 19 19 Y 128 0 63
-def ifnull___b_a 12 19 19 Y 128 0 63
-def least____a_b 12 19 19 Y 128 0 63
-def least____b_a 12 19 19 Y 128 0 63
-def greatest_a_b 12 19 19 Y 128 0 63
-def greatest_b_a 12 19 19 Y 128 0 63
-case_____a_b 2010-01-01 10:20:30
-case_____b_a 2001-01-02 00:00:00
-coalesce_a_b 2010-01-01 10:20:30
-coalesce_b_a 2001-01-02 00:00:00
-if_______a_b 2001-01-02 00:00:00
-if_______b_a 2010-01-01 10:20:30
-ifnull___a_b 2010-01-01 10:20:30
-ifnull___b_a 2001-01-02 00:00:00
-least____a_b 2001-01-02 00:00:00
-least____b_a 2001-01-02 00:00:00
-greatest_a_b 2010-01-01 10:20:30
-greatest_b_a 2010-01-01 10:20:30
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` datetime DEFAULT NULL,
- `case_______a` datetime DEFAULT NULL,
- `case_____a_a` datetime DEFAULT NULL,
- `coalesce___a` datetime DEFAULT NULL,
- `coalesce_a_a` datetime DEFAULT NULL,
- `if_______a_a` datetime DEFAULT NULL,
- `ifnull___a_a` datetime DEFAULT NULL,
- `least____a_a` datetime DEFAULT NULL,
- `greatest_a_a` datetime DEFAULT NULL,
- `___________b` date DEFAULT NULL,
- `case_______b` date DEFAULT NULL,
- `case_____b_b` date DEFAULT NULL,
- `coalesce___b` date DEFAULT NULL,
- `coalesce_b_b` date DEFAULT NULL,
- `if_______b_b` date DEFAULT NULL,
- `ifnull___b_b` date DEFAULT NULL,
- `least____b_b` date DEFAULT NULL,
- `greatest_b_b` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` datetime DEFAULT NULL,
- `case_____b_a` datetime DEFAULT NULL,
- `coalesce_a_b` datetime DEFAULT NULL,
- `coalesce_b_a` datetime DEFAULT NULL,
- `if_______a_b` datetime DEFAULT NULL,
- `if_______b_a` datetime DEFAULT NULL,
- `ifnull___a_b` datetime DEFAULT NULL,
- `ifnull___b_a` datetime DEFAULT NULL,
- `least____a_b` datetime DEFAULT NULL,
- `least____b_a` datetime DEFAULT NULL,
- `greatest_a_b` datetime DEFAULT NULL,
- `greatest_b_a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-# MDEV-8873 Wrong field type or metadata for LEAST(int_column,string_column)
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-INSERT INTO t1 VALUES (-2147483648,'100x');
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a ___________a 3 11 11 Y 32768 0 63
-def case_______a 3 11 11 Y 32896 0 63
-def case_____a_a 3 11 11 Y 32896 0 63
-def coalesce___a 3 11 11 Y 32896 0 63
-def coalesce_a_a 3 11 11 Y 32896 0 63
-def if_______a_a 3 11 11 Y 32896 0 63
-def ifnull___a_a 3 11 11 Y 32896 0 63
-def least____a_a 3 11 11 Y 32896 0 63
-def greatest_a_a 3 11 11 Y 32896 0 63
-def test t1 t1 b ___________b 253 10 4 Y 0 0 8
-def case_______b 253 10 4 Y 0 39 8
-def case_____b_b 253 10 4 Y 0 39 8
-def coalesce___b 253 10 4 Y 0 39 8
-def coalesce_b_b 253 10 4 Y 0 39 8
-def if_______b_b 253 10 4 Y 0 39 8
-def ifnull___b_b 253 10 4 Y 0 39 8
-def least____b_b 253 10 4 Y 0 39 8
-def greatest_b_b 253 10 4 Y 0 39 8
-___________a -2147483648
-case_______a -2147483648
-case_____a_a -2147483648
-coalesce___a -2147483648
-coalesce_a_a -2147483648
-if_______a_a -2147483648
-ifnull___a_a -2147483648
-least____a_a -2147483648
-greatest_a_a -2147483648
-___________b 100x
-case_______b 100x
-case_____b_b 100x
-coalesce___b 100x
-coalesce_b_b 100x
-if_______b_b 100x
-ifnull___b_b 100x
-least____b_b 100x
-greatest_b_b 100x
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def case_____a_b 253 11 11 Y 0 39 8
-def case_____b_a 253 11 4 Y 0 39 8
-def coalesce_a_b 253 11 11 Y 0 39 8
-def coalesce_b_a 253 11 4 Y 0 39 8
-def if_______a_b 253 11 4 Y 0 39 8
-def if_______b_a 253 11 11 Y 0 39 8
-def ifnull___a_b 253 11 11 Y 0 39 8
-def ifnull___b_a 253 11 4 Y 0 39 8
-def least____a_b 5 23 11 Y 32896 31 63
-def least____b_a 5 23 11 Y 32896 31 63
-def greatest_a_b 5 23 3 Y 32896 31 63
-def greatest_b_a 5 23 3 Y 32896 31 63
-case_____a_b -2147483648
-case_____b_a 100x
-coalesce_a_b -2147483648
-coalesce_b_a 100x
-if_______a_b 100x
-if_______b_a -2147483648
-ifnull___a_b -2147483648
-ifnull___b_a 100x
-least____a_b -2147483648
-least____b_a -2147483648
-greatest_a_b 100
-greatest_b_a 100
-Warnings:
-Level Warning
-Code 1292
-Message Truncated incorrect DOUBLE value: '100x'
-Level Warning
-Code 1292
-Message Truncated incorrect DOUBLE value: '100x'
-Level Warning
-Code 1292
-Message Truncated incorrect DOUBLE value: '100x'
-Level Warning
-Code 1292
-Message Truncated incorrect DOUBLE value: '100x'
-CREATE TABLE t2 AS
-SELECT
-a AS ___________a,
-CASE WHEN a IS NOT NULL THEN a END AS case_______a,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS case_____a_a,
-COALESCE(a) AS coalesce___a,
-COALESCE(a, a) AS coalesce_a_a,
-IF(a IS NULL, a, a) AS if_______a_a,
-IFNULL(a, a) AS ifnull___a_a,
-LEAST(a, a) AS least____a_a,
-GREATEST(a, a) AS greatest_a_a,
-b AS ___________b,
-CASE WHEN a IS NOT NULL THEN b END AS case_______b,
-CASE WHEN a IS NOT NULL THEN b ELSE b END AS case_____b_b,
-COALESCE(b) AS coalesce___b,
-COALESCE(b, b) AS coalesce_b_b,
-IF(a IS NULL, b, b) AS if_______b_b,
-IFNULL(b, b) AS ifnull___b_b,
-LEAST(b, b) AS least____b_b,
-GREATEST(b, b) AS greatest_b_b
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `___________a` int(11) DEFAULT NULL,
- `case_______a` int(11) DEFAULT NULL,
- `case_____a_a` int(11) DEFAULT NULL,
- `coalesce___a` int(11) DEFAULT NULL,
- `coalesce_a_a` int(11) DEFAULT NULL,
- `if_______a_a` int(11) DEFAULT NULL,
- `ifnull___a_a` int(11) DEFAULT NULL,
- `least____a_a` int(11) DEFAULT NULL,
- `greatest_a_a` int(11) DEFAULT NULL,
- `___________b` varchar(10) DEFAULT NULL,
- `case_______b` varchar(10) DEFAULT NULL,
- `case_____b_b` varchar(10) DEFAULT NULL,
- `coalesce___b` varchar(10) DEFAULT NULL,
- `coalesce_b_b` varchar(10) DEFAULT NULL,
- `if_______b_b` varchar(10) DEFAULT NULL,
- `ifnull___b_b` varchar(10) DEFAULT NULL,
- `least____b_b` varchar(10) DEFAULT NULL,
- `greatest_b_b` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS
-SELECT
-CASE WHEN a IS NOT NULL THEN a ELSE b END AS case_____a_b,
-CASE WHEN a IS NOT NULL THEN b ELSE a END AS case_____b_a,
-COALESCE(a, b) AS coalesce_a_b,
-COALESCE(b, a) AS coalesce_b_a,
-IF(a IS NULL, a, b) AS if_______a_b,
-IF(a IS NULL, b, a) AS if_______b_a,
-IFNULL(a, b) AS ifnull___a_b,
-IFNULL(b, a) AS ifnull___b_a,
-LEAST(a, b) AS least____a_b,
-LEAST(b, a) AS least____b_a,
-GREATEST(a, b) AS greatest_a_b,
-GREATEST(b, a) AS greatest_b_a
-FROM t1;
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '100x'
-Warning 1292 Truncated incorrect DOUBLE value: '100x'
-Warning 1292 Truncated incorrect DOUBLE value: '100x'
-Warning 1292 Truncated incorrect DOUBLE value: '100x'
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `case_____a_b` varchar(11) DEFAULT NULL,
- `case_____b_a` varchar(11) DEFAULT NULL,
- `coalesce_a_b` varchar(11) DEFAULT NULL,
- `coalesce_b_a` varchar(11) DEFAULT NULL,
- `if_______a_b` varchar(11) DEFAULT NULL,
- `if_______b_a` varchar(11) DEFAULT NULL,
- `ifnull___a_b` varchar(11) DEFAULT NULL,
- `ifnull___b_a` varchar(11) DEFAULT NULL,
- `least____a_b` double DEFAULT NULL,
- `least____b_a` double DEFAULT NULL,
- `greatest_a_b` double DEFAULT NULL,
- `greatest_b_a` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# MDEV-4848 Wrong metadata or column type for LEAST(1.0,'10')
-#
-SELECT LEAST(1.0,'10');
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def LEAST(1.0,'10') 5 23 1 N 32897 31 63
-LEAST(1.0,'10')
-1
-CREATE TABLE t1 AS SELECT LEAST(1.0,'10');
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `LEAST(1.0,'10')` double NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# MDEV-657 LP:873142 - GREATEST() does not always return same signness of argument types
-#
-CREATE TABLE t1 (a BIGINT(20) UNSIGNED NOT NULL PRIMARY KEY);
-INSERT INTO t1 (a) VALUES (13836376518955650385) ON DUPLICATE KEY UPDATE a=GREATEST(a,VALUES(a));
-INSERT INTO t1 (a) VALUES (13836376518955650385) ON DUPLICATE KEY UPDATE a=GREATEST(a,VALUES(a));
-SELECT * FROM t1;
-a
-13836376518955650385
-DROP TABLE t1;
-#
-# MDEV-5694 GREATEST(date, time) returns a wrong data type
-#
-SET timestamp=UNIX_TIMESTAMP('2010-01-01 01:02:03');
-SELECT GREATEST(CURRENT_TIME, CURRENT_DATE), COALESCE(CURRENT_TIME, CURRENT_DATE);
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def GREATEST(CURRENT_TIME, CURRENT_DATE) 12 19 19 N 129 0 63
-def COALESCE(CURRENT_TIME, CURRENT_DATE) 12 19 19 N 129 0 63
-GREATEST(CURRENT_TIME, CURRENT_DATE) COALESCE(CURRENT_TIME, CURRENT_DATE)
-2010-01-01 01:02:03 2010-01-01 01:02:03
-CREATE TABLE t1 (a TIMESTAMP);
-INSERT INTO t1 VALUES ('2010-01-01 10:20:30');
-SELECT GREATEST(a,a) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def GREATEST(a,a) 7 19 19 N 129 0 63
-GREATEST(a,a)
-2010-01-01 10:20:30
-SELECT COALESCE(a,a) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def COALESCE(a,a) 7 19 19 N 129 0 63
-COALESCE(a,a)
-2010-01-01 10:20:30
-DROP TABLE t1;
-CREATE TABLE t1 (a TIMESTAMP, b DATETIME);
-CREATE TABLE t2 AS SELECT LEAST(a,a),LEAST(b,b),LEAST(a,b) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEAST(a,a)` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `LEAST(b,b)` datetime DEFAULT NULL,
- `LEAST(a,b)` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-# MDEV-8910 Wrong metadata or field type for MAX(COALESCE(string_field))
-#
-CREATE TABLE t1 (c1 TINYBLOB, c2 MEDIUMBLOB, c3 BLOB, c4 LONGBLOB);
-CREATE TABLE t2 AS
-SELECT
-MAX(COALESCE(c1)) AS c1,
-MAX(COALESCE(c2)) AS c2,
-MAX(COALESCE(c3)) AS c3,
-MAX(COALESCE(c4)) AS c4
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` varbinary(255) DEFAULT NULL,
- `c2` mediumblob DEFAULT NULL,
- `c3` blob DEFAULT NULL,
- `c4` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT
-MAX(COALESCE(c1)) AS c1,
-MAX(COALESCE(c2)) AS c2,
-MAX(COALESCE(c3)) AS c3,
-MAX(COALESCE(c4)) AS c4
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 253 255 0 Y 128 39 63
-def c2 250 16777215 0 Y 128 39 63
-def c3 252 65535 0 Y 128 39 63
-def c4 251 4294967295 0 Y 128 39 63
-c1 c2 c3 c4
-NULL NULL NULL NULL
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 CHAR(1), c2 CHAR(255)) CHARACTER SET latin1;
-CREATE TABLE t2 AS
-SELECT
-MAX(COALESCE(c1)) AS c1,
-MAX(COALESCE(c2)) AS c2
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` varchar(1) DEFAULT NULL,
- `c2` varchar(255) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT
-MAX(COALESCE(c1)) AS c1,
-MAX(COALESCE(c2)) AS c2
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 253 1 0 Y 0 39 8
-def c2 253 255 0 Y 0 39 8
-c1 c2
-NULL NULL
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 CHAR(1), c2 CHAR(255)) CHARACTER SET utf8;
-CREATE TABLE t2 AS
-SELECT
-MAX(COALESCE(c1)) AS c1,
-MAX(COALESCE(c2)) AS c2
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL,
- `c2` varchar(255) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT
-MAX(COALESCE(c1)) AS c1,
-MAX(COALESCE(c2)) AS c2
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 253 1 0 Y 0 39 8
-def c2 253 255 0 Y 0 39 8
-c1 c2
-NULL NULL
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(1), c2 VARCHAR(255), c3 VARCHAR(20000)) CHARACTER SET latin1;
-CREATE TABLE t2 AS
-SELECT
-MAX(COALESCE(c1)) AS c1,
-MAX(COALESCE(c2)) AS c2,
-MAX(COALESCE(c3)) AS c3
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` varchar(1) DEFAULT NULL,
- `c2` varchar(255) DEFAULT NULL,
- `c3` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT
-MAX(COALESCE(c1)) AS c1,
-MAX(COALESCE(c2)) AS c2,
-MAX(COALESCE(c3)) AS c3
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 253 1 0 Y 0 39 8
-def c2 253 255 0 Y 0 39 8
-def c3 252 20000 0 Y 0 39 8
-c1 c2 c3
-NULL NULL NULL
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(1), c2 VARCHAR(255), c3 VARCHAR(20000)) CHARACTER SET utf8;
-CREATE TABLE t2 AS
-SELECT
-MAX(COALESCE(c1)) AS c1,
-MAX(COALESCE(c2)) AS c2,
-MAX(COALESCE(c3)) AS c3
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL,
- `c2` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
- `c3` text CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT
-MAX(COALESCE(c1)) AS c1,
-MAX(COALESCE(c2)) AS c2,
-MAX(COALESCE(c3)) AS c3
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 253 1 0 Y 0 39 8
-def c2 253 255 0 Y 0 39 8
-def c3 252 60000 0 Y 0 39 8
-c1 c2 c3
-NULL NULL NULL
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 ENUM('a')) CHARACTER SET latin1;
-CREATE TABLE t2 AS
-SELECT
-MAX(COALESCE(c1)) AS c1
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT
-MAX(COALESCE(c1)) AS c1
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 253 1 0 Y 0 39 8
-c1
-NULL
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 ENUM('a')) CHARACTER SET utf8;
-CREATE TABLE t2 AS
-SELECT
-MAX(COALESCE(c1)) AS c1
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT
-MAX(COALESCE(c1)) AS c1
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 253 1 0 Y 0 39 8
-c1
-NULL
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# MDEV-8912 Wrong metadata or type for @c:=string_or_blob_field
-#
-CREATE TABLE t1 (c1 TINYBLOB, c2 BLOB, c3 MEDIUMBLOB, c4 LONGBLOB);
-CREATE TABLE t2 AS
-SELECT
-@c1:=c1 AS c1,
-@c2:=c2 AS c2,
-@c3:=c3 AS c3,
-@c4:=c4 AS c4
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` varbinary(255) DEFAULT NULL,
- `c2` blob DEFAULT NULL,
- `c3` mediumblob DEFAULT NULL,
- `c4` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT
-@c1:=c1 AS c1,
-@c2:=c2 AS c2,
-@c3:=c3 AS c3,
-@c4:=c4 AS c4
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 253 255 0 Y 128 39 63
-def c2 252 65535 0 Y 128 39 63
-def c3 250 16777215 0 Y 128 39 63
-def c4 251 4294967295 0 Y 128 39 63
-c1 c2 c3 c4
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 CHAR(1), c2 CHAR(255)) CHARACTER SET latin1;
-CREATE TABLE t2 AS
-SELECT
-@c1:=c1 AS c1,
-@c2:=c2 AS c2
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` varchar(1) DEFAULT NULL,
- `c2` varchar(255) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT
-@c1:=c1 AS c1,
-@c2:=c2 AS c2
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 253 1 0 Y 0 39 8
-def c2 253 255 0 Y 0 39 8
-c1 c2
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 CHAR(1), c2 CHAR(255)) CHARACTER SET utf8;
-CREATE TABLE t2 AS
-SELECT
-@c1:=c1 AS c1,
-@c2:=c2 AS c2
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL,
- `c2` varchar(255) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT
-@c1:=c1 AS c1,
-@c2:=c2 AS c2
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 253 1 0 Y 0 39 8
-def c2 253 255 0 Y 0 39 8
-c1 c2
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(1), c2 VARCHAR(255), c3 VARCHAR(20000)) CHARACTER SET latin1;
-CREATE TABLE t2 AS
-SELECT
-@c:=c1 AS c1,
-@c:=c2 AS c2,
-@c:=c3 AS c3
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` varchar(1) DEFAULT NULL,
- `c2` varchar(255) DEFAULT NULL,
- `c3` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT
-@c:=c1 AS c1,
-@c:=c2 AS c2,
-@c:=c3 AS c3
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 253 1 0 Y 0 39 8
-def c2 253 255 0 Y 0 39 8
-def c3 252 20000 0 Y 0 39 8
-c1 c2 c3
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(1), c2 VARCHAR(255), c3 VARCHAR(20000)) CHARACTER SET utf8;
-CREATE TABLE t2 AS
-SELECT
-@c:=c1 AS c1,
-@c:=c2 AS c2,
-@c:=c3 AS c3
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL,
- `c2` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
- `c3` text CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT
-@c:=c1 AS c1,
-@c:=c2 AS c2,
-@c:=c3 AS c3
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 253 1 0 Y 0 39 8
-def c2 253 255 0 Y 0 39 8
-def c3 252 60000 0 Y 0 39 8
-c1 c2 c3
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 ENUM('a')) CHARACTER SET latin1;
-CREATE TABLE t2 AS
-SELECT
-@c:=c1 AS c1
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT
-@c:=c1 AS c1
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 253 1 0 Y 0 0 8
-c1
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 ENUM('a')) CHARACTER SET utf8;
-CREATE TABLE t2 AS
-SELECT
-@c:=c1 AS c1
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` varchar(1) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT
-@c:=c1 AS c1
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 253 1 0 Y 0 0 8
-c1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# MDEV-9653 Assertion `length || !scale' failed in uint my_decimal_length_to_precision(uint, uint, bool)
-#
-SELECT CASE 0 WHEN 1 THEN (CASE 2 WHEN 3 THEN NULL END) WHEN 4 THEN 5 END;
-CASE 0 WHEN 1 THEN (CASE 2 WHEN 3 THEN NULL END) WHEN 4 THEN 5 END
-NULL
-SELECT CASE 0 WHEN 1 THEN (COALESCE(NULL)) WHEN 4 THEN 5 END;
-CASE 0 WHEN 1 THEN (COALESCE(NULL)) WHEN 4 THEN 5 END
-NULL
-SELECT CASE WHEN TRUE THEN COALESCE(NULL) ELSE 4 END;
-CASE WHEN TRUE THEN COALESCE(NULL) ELSE 4 END
-NULL
-SELECT COALESCE(COALESCE(NULL), 1.1) AS c0, IF(0, COALESCE(NULL), 1.1) AS c1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c0 246 4 3 Y 32896 1 63
-def c1 246 4 3 Y 32896 1 63
-c0 c1
-1.1 1.1
-#
-# MDEV-9752 Wrong data type for COALEASCE(?,1) in prepared statements
-#
-PREPARE stmt FROM "CREATE TABLE t1 AS SELECT CONCAT(COALESCE(?,1)) AS a, CONCAT(CASE WHEN TRUE THEN ? ELSE 1 END) AS b";
-SET @a=1;
-EXECUTE stmt USING @a,@a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(20) DEFAULT NULL,
- `b` varchar(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12497 Wrong data type for LEAST(latin1_expr, utf8_expr)
-#
-CREATE TABLE t1 AS SELECT
-LEAST(_latin1'aaa',_utf8 0xC39F) AS c1,
-COALESCE(_latin1'aaa',_utf8 0xC39F) AS c2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(3) CHARACTER SET utf8 NOT NULL,
- `c2` varchar(3) CHARACTER SET utf8 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-c1 c2
-aaa aaa
-DROP TABLE t1;
-#
-# MDEV-12504 Wrong data type for LEAST(date_expr,time_expr)
-#
-CREATE TABLE t1 AS SELECT
-LEAST(DATE'2001-01-01', TIME'10:20:30') AS c1,
-CONCAT(LEAST(DATE'2001-01-01', TIME'10:20:30')) AS c2;
-SELECT * FROM t1;
-c1 c2
-2001-01-01 00:00:00 2001-01-01 00:00:00
-DROP TABLE t1;
-#
-# MDEV-12505 Wrong data type for GREATEST(bit_column, int_column)
-#
-CREATE TABLE t1 (a BIT(64),b INT);
-INSERT INTO t1 VALUES (0xFFFFFFFFFFFFFFFF,-1);
-SELECT a>b, COALESCE(a,b), GREATEST(a,b) FROM t1;
-a>b COALESCE(a,b) GREATEST(a,b)
-1 18446744073709551615 18446744073709551615
-CREATE TABLE t2 AS SELECT COALESCE(a,b),GREATEST(a,b) FROM t1;
-SELECT * FROM t2;
-COALESCE(a,b) GREATEST(a,b)
-18446744073709551615 18446744073709551615
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(a,b)` decimal(64,0) DEFAULT NULL,
- `GREATEST(a,b)` decimal(64,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# MDEV-12601 Hybrid functions create a column of an impossible type DOUBLE(256,4)
-#
-CREATE TABLE t1 (a DOUBLE(255,4),b DOUBLE(255,3));
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(a,b)` double(255,4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# MDEV-12617 CASE and CASE-alike hybrid functions do not preserve exact data types
-#
-CREATE TABLE t1 (a FLOAT(10,2));
-CREATE TABLE t2 AS SELECT COALESCE(a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(a)` float(10,2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2, t1;
-CREATE TABLE t1 (a FLOAT(10,2));
-CREATE TABLE t2 AS SELECT LEAST(a,a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEAST(a,a)` float(19,2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2, t1;
-CREATE TABLE t1 (a TINYINT(1));
-CREATE TABLE t2 AS SELECT COALESCE(a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(a)` tinyint(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2, t1;
-CREATE TABLE t1 (a TINYINT(1));
-CREATE TABLE t2 AS SELECT LEAST(a,a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEAST(a,a)` tinyint(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2, t1;
-#
-# MDEV-12875 Wrong VIEW column data type for COALESCE(int_column)
-#
-CREATE TABLE t1 (a INT);
-CREATE OR REPLACE VIEW v1 AS SELECT COALESCE(a) FROM t1;
-DESCRIBE v1;
-Field Type Null Key Default Extra
-COALESCE(a) int(11) YES NULL
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-10309 COALESCE(12345678900) makes a column of a wrong type and truncates the data
-#
-CREATE TABLE t1 AS SELECT 12345678900 AS c1, COALESCE(12345678900) AS c2;
-SELECT * FROM t1;
-c1 c2
-12345678900 12345678900
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` bigint(11) NOT NULL,
- `c2` bigint(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
-9 AS i1, COALESCE(9) AS c1,
-99 AS i2, COALESCE(99) AS c2,
-999 AS i3, COALESCE(999) AS c3,
-9999 AS i4, COALESCE(9999) AS c4,
-99999 AS i5, COALESCE(99999) AS c5,
-999999 AS i6, COALESCE(999999) AS c6,
-9999999 AS i7, COALESCE(9999999) AS c7,
-99999999 AS i8, COALESCE(99999999) AS c8,
-999999999 AS i9, COALESCE(999999999) AS c9,
-2147483647, COALESCE(2147483647),
-2147483648, COALESCE(2147483648),
-9999999999 AS i10, COALESCE(9999999999) AS c10,
-99999999999 AS i11, COALESCE(99999999999) AS c11,
-999999999999 AS i12, COALESCE(999999999999) AS c12,
-9999999999999 AS i13, COALESCE(9999999999999) AS c13,
-99999999999999 AS i14, COALESCE(99999999999999) AS c14,
-999999999999999 AS i15, COALESCE(999999999999999) AS c15,
-9999999999999999 AS i16, COALESCE(9999999999999999) AS c16,
-99999999999999999 AS i17, COALESCE(99999999999999999) AS c17,
-999999999999999999 AS i18, COALESCE(999999999999999999) AS c18,
-9223372036854775807, COALESCE(9223372036854775807),
-9223372036854775808, COALESCE(9223372036854775808),
-9999999999999999999 AS i19, COALESCE(9999999999999999999) AS c19,
-18446744073709551615, COALESCE(18446744073709551615),
-18446744073709551616, COALESCE(18446744073709551616),
-99999999999999999999 AS i20, COALESCE(99999999999999999999) AS c20,
-999999999999999999999 AS i21, COALESCE(999999999999999999999) AS c21,
-9999999999999999999999 AS i22, COALESCE(9999999999999999999999) AS c22;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i1` int(1) NOT NULL,
- `c1` int(1) NOT NULL,
- `i2` int(2) NOT NULL,
- `c2` int(2) NOT NULL,
- `i3` int(3) NOT NULL,
- `c3` int(3) NOT NULL,
- `i4` int(4) NOT NULL,
- `c4` int(4) NOT NULL,
- `i5` int(5) NOT NULL,
- `c5` int(5) NOT NULL,
- `i6` int(6) NOT NULL,
- `c6` int(6) NOT NULL,
- `i7` int(7) NOT NULL,
- `c7` int(7) NOT NULL,
- `i8` int(8) NOT NULL,
- `c8` int(8) NOT NULL,
- `i9` int(9) NOT NULL,
- `c9` int(9) NOT NULL,
- `2147483647` bigint(10) NOT NULL,
- `COALESCE(2147483647)` bigint(10) NOT NULL,
- `2147483648` bigint(10) NOT NULL,
- `COALESCE(2147483648)` bigint(10) NOT NULL,
- `i10` bigint(10) NOT NULL,
- `c10` bigint(10) NOT NULL,
- `i11` bigint(11) NOT NULL,
- `c11` bigint(11) NOT NULL,
- `i12` bigint(12) NOT NULL,
- `c12` bigint(12) NOT NULL,
- `i13` bigint(13) NOT NULL,
- `c13` bigint(13) NOT NULL,
- `i14` bigint(14) NOT NULL,
- `c14` bigint(14) NOT NULL,
- `i15` bigint(15) NOT NULL,
- `c15` bigint(15) NOT NULL,
- `i16` bigint(16) NOT NULL,
- `c16` bigint(16) NOT NULL,
- `i17` bigint(17) NOT NULL,
- `c17` bigint(17) NOT NULL,
- `i18` bigint(18) NOT NULL,
- `c18` bigint(18) NOT NULL,
- `9223372036854775807` bigint(19) NOT NULL,
- `COALESCE(9223372036854775807)` bigint(19) NOT NULL,
- `9223372036854775808` bigint(19) unsigned NOT NULL,
- `COALESCE(9223372036854775808)` bigint(19) unsigned NOT NULL,
- `i19` bigint(19) unsigned NOT NULL,
- `c19` bigint(19) unsigned NOT NULL,
- `18446744073709551615` bigint(20) unsigned NOT NULL,
- `COALESCE(18446744073709551615)` bigint(20) unsigned NOT NULL,
- `18446744073709551616` decimal(20,0) NOT NULL,
- `COALESCE(18446744073709551616)` decimal(20,0) NOT NULL,
- `i20` decimal(20,0) NOT NULL,
- `c20` decimal(20,0) NOT NULL,
- `i21` decimal(21,0) NOT NULL,
- `c21` decimal(21,0) NOT NULL,
- `i22` decimal(22,0) NOT NULL,
- `c22` decimal(22,0) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-i1 9
-c1 9
-i2 99
-c2 99
-i3 999
-c3 999
-i4 9999
-c4 9999
-i5 99999
-c5 99999
-i6 999999
-c6 999999
-i7 9999999
-c7 9999999
-i8 99999999
-c8 99999999
-i9 999999999
-c9 999999999
-2147483647 2147483647
-COALESCE(2147483647) 2147483647
-2147483648 2147483648
-COALESCE(2147483648) 2147483648
-i10 9999999999
-c10 9999999999
-i11 99999999999
-c11 99999999999
-i12 999999999999
-c12 999999999999
-i13 9999999999999
-c13 9999999999999
-i14 99999999999999
-c14 99999999999999
-i15 999999999999999
-c15 999999999999999
-i16 9999999999999999
-c16 9999999999999999
-i17 99999999999999999
-c17 99999999999999999
-i18 999999999999999999
-c18 999999999999999999
-9223372036854775807 9223372036854775807
-COALESCE(9223372036854775807) 9223372036854775807
-9223372036854775808 9223372036854775808
-COALESCE(9223372036854775808) 9223372036854775808
-i19 9999999999999999999
-c19 9999999999999999999
-18446744073709551615 18446744073709551615
-COALESCE(18446744073709551615) 18446744073709551615
-18446744073709551616 18446744073709551616
-COALESCE(18446744073709551616) 18446744073709551616
-i20 99999999999999999999
-c20 99999999999999999999
-i21 999999999999999999999
-c21 999999999999999999999
-i22 9999999999999999999999
-c22 9999999999999999999999
-DROP TABLE t1;
-#
-# MDEV-9406 CREATE TABLE..SELECT creates different columns for IFNULL() and equivalent COALESCE,CASE,IF
-#
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 AS SELECT
-IFNULL(a,a) AS c1,
-COALESCE(a,a) AS c2,
-CASE WHEN a IS NOT NULL THEN a ELSE a END AS c3,
-IF(a IS NULL,a,a) AS c4 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c1` smallint(6) DEFAULT NULL,
- `c2` smallint(6) DEFAULT NULL,
- `c3` smallint(6) DEFAULT NULL,
- `c4` smallint(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2,t1;
-CREATE TABLE t1 AS SELECT
-connection_id() AS c0,
-IFNULL(connection_id(),connection_id()) AS c1,
-COALESCE(connection_id(), connection_id()) AS c2,
-CASE WHEN 0 THEN connection_id() ELSE connection_id() END AS c3,
-IF(0,connection_id(),connection_id()) AS c4;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c0` int(10) NOT NULL,
- `c1` int(10) NOT NULL,
- `c2` int(10) NOT NULL,
- `c3` int(10) NOT NULL,
- `c4` int(10) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# End of 10.3 tests
-#
diff --git a/mysql-test/r/func_if.result b/mysql-test/r/func_if.result
deleted file mode 100644
index 09eb85d9fb6..00000000000
--- a/mysql-test/r/func_if.result
+++ /dev/null
@@ -1,250 +0,0 @@
-drop table if exists t1;
-select IF(0,"ERROR","this"),IF(1,"is","ERROR"),IF(NULL,"ERROR","a"),IF(1,2,3)|0,IF(1,2.0,3.0)+0 ;
-IF(0,"ERROR","this") IF(1,"is","ERROR") IF(NULL,"ERROR","a") IF(1,2,3)|0 IF(1,2.0,3.0)+0
-this is a 2 2.0
-CREATE TABLE t1 (st varchar(255) NOT NULL, u int(11) NOT NULL) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('a',1),('A',1),('aa',1),('AA',1),('a',1),('aaa',0),('BBB',0);
-select if(1,st,st) s from t1 order by s;
-s
-a
-A
-a
-aa
-AA
-aaa
-BBB
-select if(u=1,st,st) s from t1 order by s;
-s
-a
-A
-a
-aa
-AA
-aaa
-BBB
-select if(u=1,binary st,st) s from t1 order by s;
-s
-A
-AA
-BBB
-a
-a
-aa
-aaa
-select if(u=1,st,binary st) s from t1 where st like "%a%" order by s;
-s
-A
-AA
-a
-a
-aa
-aaa
-explain extended select if(u=1,st,binary st) s from t1 where st like "%a%" order by s;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7 100.00 Using where; Using filesort
-Warnings:
-Note 1003 select if(`test`.`t1`.`u` = 1,`test`.`t1`.`st`,cast(`test`.`t1`.`st` as char charset binary)) AS `s` from `test`.`t1` where `test`.`t1`.`st` like '%a%' order by if(`test`.`t1`.`u` = 1,`test`.`t1`.`st`,cast(`test`.`t1`.`st` as char charset binary))
-select nullif(u, 1) from t1;
-nullif(u, 1)
-NULL
-NULL
-NULL
-NULL
-NULL
-0
-0
-explain extended select nullif(u, 1) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7 100.00
-Warnings:
-Note 1003 select nullif(`test`.`t1`.`u`,1) AS `nullif(u, 1)` from `test`.`t1`
-drop table t1;
-select nullif(1,'test');
-nullif(1,'test')
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'test'
-select NULLIF(NULL,NULL), NULLIF(NULL,1), NULLIF(NULL,1.0), NULLIF(NULL,"test");
-NULLIF(NULL,NULL) NULLIF(NULL,1) NULLIF(NULL,1.0) NULLIF(NULL,"test")
-NULL NULL NULL NULL
-select NULLIF(1,NULL), NULLIF(1.0, NULL), NULLIF("test", NULL);
-NULLIF(1,NULL) NULLIF(1.0, NULL) NULLIF("test", NULL)
-1 1.0 test
-create table t1 (num double(12,2));
-insert into t1 values (144.54);
-select sum(if(num is null,0.00,num)) from t1;
-sum(if(num is null,0.00,num))
-144.54
-drop table t1;
-create table t1 (x int, y int);
-insert into t1 values (0,6),(10,16),(20,26),(30,10),(40,46),(50,56);
-select min(if(y -x > 5,y,NULL)), max(if(y - x > 5,y,NULL)) from t1;
-min(if(y -x > 5,y,NULL)) max(if(y - x > 5,y,NULL))
-6 56
-drop table t1;
-create table t1 (a int);
-insert t1 values (1),(2);
-select if(1>2,a,avg(a)) from t1;
-if(1>2,a,avg(a))
-1.5000
-drop table t1;
-SELECT NULLIF(5,5) IS NULL, NULLIF(5,5) IS NOT NULL;
-NULLIF(5,5) IS NULL NULLIF(5,5) IS NOT NULL
-1 0
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL ,
-`date` int(10) default NULL,
-`text` varchar(32) NOT NULL
-);
-INSERT INTO t1 VALUES (1,1110000000,'Day 1'),(2,1111000000,'Day 2'),(3,1112000000,'Day 3');
-SELECT id, IF(date IS NULL, '-', FROM_UNIXTIME(date, '%d-%m-%Y')) AS date_ord, text FROM t1 ORDER BY date_ord ASC;
-id date_ord text
-1 05-03-2005 Day 1
-2 16-03-2005 Day 2
-3 28-03-2005 Day 3
-SELECT id, IF(date IS NULL, '-', FROM_UNIXTIME(date, '%d-%m-%Y')) AS date_ord, text FROM t1 ORDER BY date_ord DESC;
-id date_ord text
-3 28-03-2005 Day 3
-2 16-03-2005 Day 2
-1 05-03-2005 Day 1
-DROP TABLE t1;
-CREATE TABLE t1 (a CHAR(10));
-INSERT INTO t1 VALUES ('aaa'), (NULL), (''), ('bbb');
-SELECT a, NULLIF(a,'') FROM t1;
-a NULLIF(a,'')
-aaa aaa
-NULL NULL
- NULL
-bbb bbb
-SELECT a, NULLIF(a,'') FROM t1 WHERE NULLIF(a,'') IS NULL;
-a NULLIF(a,'')
-NULL NULL
- NULL
-DROP TABLE t1;
-create table t1 (f1 int, f2 int);
-insert into t1 values(1,1),(0,0);
-select f1, f2, if(f1, 40.0, 5.00) from t1 group by f1 order by f2;
-f1 f2 if(f1, 40.0, 5.00)
-0 0 5.00
-1 1 40.00
-drop table t1;
-select if(0, 18446744073709551610, 18446744073709551610);
-if(0, 18446744073709551610, 18446744073709551610)
-18446744073709551610
-CREATE TABLE t1(a DECIMAL(10,3));
-SELECT t1.a,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,0)))))))))))))))))))))))))))))) + 1
-FROM t1;
-a IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((ROUND(t1.a,2)=1), 2,
-IF((R
-DROP TABLE t1;
-CREATE TABLE t1 (c LONGTEXT);
-INSERT INTO t1 VALUES(1), (2), (3), (4), ('1234567890123456789');
-SELECT IF(1, CAST(c AS UNSIGNED), 0) FROM t1;
-IF(1, CAST(c AS UNSIGNED), 0)
-1
-2
-3
-4
-1234567890123456789
-SELECT * FROM (SELECT MAX(IF(1, CAST(c AS UNSIGNED), 0)) FROM t1) AS te;
-MAX(IF(1, CAST(c AS UNSIGNED), 0))
-1234567890123456789
-SELECT * FROM (SELECT MAX(IFNULL(CAST(c AS UNSIGNED), 0)) FROM t1) AS te;
-MAX(IFNULL(CAST(c AS UNSIGNED), 0))
-1234567890123456789
-DROP TABLE t1;
-End of 5.0 tests
-#
-# Bug#55077: Assertion failed: width > 0 && to != ((void *)0), file .\dtoa.c
-#
-CREATE TABLE t1 (a LONGBLOB, b DOUBLE);
-INSERT INTO t1 VALUES (NULL, 0), (NULL, 1);
-SELECT IF(b, (SELECT a FROM t1 LIMIT 1), b) c FROM t1 GROUP BY c;
-c
-NULL
-0
-DROP TABLE t1;
-#
-# Bug#12532830
-# SIGFPE OR ASSERTION (PRECISION <= ((9 * 9) - 8*2)) && (DEC <= 30)
-#
-select
-sum(distinct(if('a',
-(select adddate(elt(convert(9999999999999999999999999999999999999,decimal(64,0)),count(*)),
-interval 1 day))
-, .1))) as foo;
-foo
-0.1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-#
-# LP bug#998321 Simple query with IF expression causes an
-# assertion abort (see also mysql Bug#12620084)
-#
-SELECT if(0, (SELECT min('hello')), NULL);
-if(0, (SELECT min('hello')), NULL)
-NULL
-SELECT if(1, (SELECT min('hello')), NULL);
-if(1, (SELECT min('hello')), NULL)
-hello
-SELECT if(0, NULL, (SELECT min('hello')));
-if(0, NULL, (SELECT min('hello')))
-hello
-SELECT if(1, NULL, (SELECT min('hello')));
-if(1, NULL, (SELECT min('hello')))
-NULL
-End of 5.2 tests
-#
-# MDEV-8663: IF Statement returns multiple values erroneously
-# (or Assertion `!null_value' failed in Item::send(Protocol*, String*)
-#
-CREATE TABLE `t1` (
-`datas` VARCHAR(25) NOT NULL
-) DEFAULT CHARSET=utf8;
-INSERT INTO `t1` VALUES ('1,2'), ('2,3'), ('3,4');
-SELECT IF(FIND_IN_SET('1', `datas`), 1.5, IF(FIND_IN_SET('2', `datas`), 2, NULL)) AS `First`, '1' AS `Second`, '2' AS `Third` FROM `t1`;
-First Second Third
-1.5 1 2
-2.0 1 2
-NULL 1 2
-drop table t1;
diff --git a/mysql-test/r/func_in.result b/mysql-test/r/func_in.result
deleted file mode 100644
index 65313148bf8..00000000000
--- a/mysql-test/r/func_in.result
+++ /dev/null
@@ -1,911 +0,0 @@
-drop table if exists t1, t2;
-select 1 in (1,2,3);
-1 in (1,2,3)
-1
-select 10 in (1,2,3);
-10 in (1,2,3)
-0
-select NULL in (1,2,3);
-NULL in (1,2,3)
-NULL
-select 1 in (1,NULL,3);
-1 in (1,NULL,3)
-1
-select 3 in (1,NULL,3);
-3 in (1,NULL,3)
-1
-select 10 in (1,NULL,3);
-10 in (1,NULL,3)
-NULL
-select 1.5 in (1.5,2.5,3.5);
-1.5 in (1.5,2.5,3.5)
-1
-select 10.5 in (1.5,2.5,3.5);
-10.5 in (1.5,2.5,3.5)
-0
-select NULL in (1.5,2.5,3.5);
-NULL in (1.5,2.5,3.5)
-NULL
-select 1.5 in (1.5,NULL,3.5);
-1.5 in (1.5,NULL,3.5)
-1
-select 3.5 in (1.5,NULL,3.5);
-3.5 in (1.5,NULL,3.5)
-1
-select 10.5 in (1.5,NULL,3.5);
-10.5 in (1.5,NULL,3.5)
-NULL
-CREATE TABLE t1 (a int, b int, c int);
-insert into t1 values (1,2,3), (1,NULL,3);
-select 1 in (a,b,c) from t1;
-1 in (a,b,c)
-1
-1
-select 3 in (a,b,c) from t1;
-3 in (a,b,c)
-1
-1
-select 10 in (a,b,c) from t1;
-10 in (a,b,c)
-0
-NULL
-select NULL in (a,b,c) from t1;
-NULL in (a,b,c)
-NULL
-NULL
-drop table t1;
-CREATE TABLE t1 (a float, b float, c float);
-insert into t1 values (1.5,2.5,3.5), (1.5,NULL,3.5);
-select 1.5 in (a,b,c) from t1;
-1.5 in (a,b,c)
-1
-1
-select 3.5 in (a,b,c) from t1;
-3.5 in (a,b,c)
-1
-1
-select 10.5 in (a,b,c) from t1;
-10.5 in (a,b,c)
-0
-NULL
-drop table t1;
-CREATE TABLE t1 (a varchar(10), b varchar(10), c varchar(10));
-insert into t1 values ('A','BC','EFD'), ('A',NULL,'EFD');
-select 'A' in (a,b,c) from t1;
-'A' in (a,b,c)
-1
-1
-select 'EFD' in (a,b,c) from t1;
-'EFD' in (a,b,c)
-1
-1
-select 'XSFGGHF' in (a,b,c) from t1;
-'XSFGGHF' in (a,b,c)
-0
-NULL
-drop table t1;
-CREATE TABLE t1 (field char(1));
-INSERT INTO t1 VALUES ('A'),(NULL);
-SELECT * from t1 WHERE field IN (NULL);
-field
-SELECT * from t1 WHERE field NOT IN (NULL);
-field
-SELECT * from t1 where field = field;
-field
-A
-SELECT * from t1 where field <=> field;
-field
-A
-NULL
-DELETE FROM t1 WHERE field NOT IN (NULL);
-SELECT * FROM t1;
-field
-A
-NULL
-drop table t1;
-create table t1 (id int(10) primary key);
-insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9);
-select * from t1 where id in (2,5,9);
-id
-2
-5
-9
-drop table t1;
-create table t1 (
-a char(1) character set latin1 collate latin1_general_ci,
-b char(1) character set latin1 collate latin1_swedish_ci,
-c char(1) character set latin1 collate latin1_danish_ci
-);
-insert into t1 values ('A','B','C');
-insert into t1 values ('a','c','c');
-select * from t1 where a in (b);
-ERROR HY000: Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='
-select * from t1 where a in (b,c);
-ERROR HY000: Illegal mix of collations (latin1_general_ci,IMPLICIT), (latin1_swedish_ci,IMPLICIT), (latin1_danish_ci,IMPLICIT) for operation 'in'
-select * from t1 where 'a' in (a,b,c);
-ERROR HY000: Illegal mix of collations for operation 'in'
-select * from t1 where 'a' in (a);
-a b c
-A B C
-a c c
-select * from t1 where a in ('a');
-a b c
-A B C
-a c c
-select * from t1 where 'a' collate latin1_general_ci in (a,b,c);
-a b c
-A B C
-a c c
-select * from t1 where 'a' collate latin1_bin in (a,b,c);
-a b c
-a c c
-select * from t1 where 'a' in (a,b,c collate latin1_bin);
-a b c
-a c c
-explain extended select * from t1 where 'a' in (a,b,c collate latin1_bin);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c` from `test`.`t1` where 'a' in (`test`.`t1`.`a`,`test`.`t1`.`b`,`test`.`t1`.`c` collate latin1_bin)
-drop table t1;
-set names utf8;
-create table t1 (a char(10) character set utf8 not null);
-insert into t1 values ('bbbb'),(_koi8r'ÃÃÃÃ'),(_latin1'ÄÄÄÄ');
-select a from t1 where a in ('bbbb',_koi8r'ÃÃÃÃ',_latin1'ÄÄÄÄ') order by a;
-a
-ÄÄÄÄ
-bbbb
-цццц
-drop table t1;
-create table t1 (a char(10) character set latin1 not null);
-insert into t1 values ('a'),('b'),('c');
-select a from t1 where a IN ('a','b','c') order by a;
-a
-a
-b
-c
-drop table t1;
-set names latin1;
-select '1.0' in (1,2);
-'1.0' in (1,2)
-1
-select 1 in ('1.0',2);
-1 in ('1.0',2)
-1
-select 1 in (1,'2.0');
-1 in (1,'2.0')
-1
-select 1 in ('1.0',2.0);
-1 in ('1.0',2.0)
-1
-select 1 in (1.0,'2.0');
-1 in (1.0,'2.0')
-1
-select 1 in ('1.1',2);
-1 in ('1.1',2)
-0
-select 1 in ('1.1',2.0);
-1 in ('1.1',2.0)
-0
-create table t1 (a char(2) character set binary);
-insert into t1 values ('aa'), ('bb');
-select * from t1 where a in (NULL, 'aa');
-a
-aa
-drop table t1;
-create table t1 (id int, key(id));
-insert into t1 values (1),(2),(3);
-select count(*) from t1 where id not in (1);
-count(*)
-2
-select count(*) from t1 where id not in (1,2);
-count(*)
-1
-drop table t1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 SELECT 1 IN (2, NULL);
-SELECT should return NULL.
-SELECT * FROM t1;
-1 IN (2, NULL)
-NULL
-DROP TABLE t1;
-End of 4.1 tests
-CREATE TABLE t1 (a int PRIMARY KEY);
-INSERT INTO t1 VALUES (44), (45), (46);
-SELECT * FROM t1 WHERE a IN (45);
-a
-45
-SELECT * FROM t1 WHERE a NOT IN (0, 45);
-a
-44
-46
-SELECT * FROM t1 WHERE a NOT IN (45);
-a
-44
-46
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE a NOT IN (45);
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` where `t1`.`a` <> 45 latin1 latin1_swedish_ci
-SELECT * FROM v1;
-a
-44
-46
-DROP VIEW v1;
-DROP TABLE t1;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, filler char(200), key(a));
-insert into t2 select C.a*2, 'no' from t1 A, t1 B, t1 C;
-insert into t2 select C.a*2+1, 'yes' from t1 C;
-explain
-select * from t2 where a NOT IN (0, 2,4,6,8,10,12,14,16,18);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 5 NULL 12 Using index condition
-select * from t2 where a NOT IN (0, 2,4,6,8,10,12,14,16,18);
-a filler
-1 yes
-3 yes
-5 yes
-7 yes
-9 yes
-11 yes
-13 yes
-15 yes
-17 yes
-19 yes
-explain select * from t2 force index(a) where a NOT IN (2,2,2,2,2,2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 5 NULL 912 Using index condition
-explain select * from t2 force index(a) where a <> 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 5 NULL 912 Using index condition
-drop table t2;
-create table t2 (a datetime, filler char(200), key(a));
-insert into t2 select '2006-04-25 10:00:00' + interval C.a minute,
-'no' from t1 A, t1 B, t1 C where C.a % 2 = 0;
-insert into t2 select '2006-04-25 10:00:00' + interval C.a*2+1 minute,
-'yes' from t1 C;
-explain
-select * from t2 where a NOT IN (
-'2006-04-25 10:00:00','2006-04-25 10:02:00','2006-04-25 10:04:00',
-'2006-04-25 10:06:00', '2006-04-25 10:08:00');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 6 NULL 12 Using index condition
-select * from t2 where a NOT IN (
-'2006-04-25 10:00:00','2006-04-25 10:02:00','2006-04-25 10:04:00',
-'2006-04-25 10:06:00', '2006-04-25 10:08:00');
-a filler
-2006-04-25 10:01:00 yes
-2006-04-25 10:03:00 yes
-2006-04-25 10:05:00 yes
-2006-04-25 10:07:00 yes
-2006-04-25 10:09:00 yes
-2006-04-25 10:11:00 yes
-2006-04-25 10:13:00 yes
-2006-04-25 10:15:00 yes
-2006-04-25 10:17:00 yes
-2006-04-25 10:19:00 yes
-drop table t2;
-create table t2 (a varchar(10), filler char(200), key(a));
-insert into t2 select 'foo', 'no' from t1 A, t1 B;
-insert into t2 select 'barbar', 'no' from t1 A, t1 B;
-insert into t2 select 'bazbazbaz', 'no' from t1 A, t1 B;
-insert into t2 values ('fon', '1'), ('fop','1'), ('barbaq','1'),
-('barbas','1'), ('bazbazbay', '1'),('zz','1');
-explain select * from t2 where a not in('foo','barbar', 'bazbazbaz');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 13 NULL 7 Using index condition
-drop table t2;
-create table t2 (a decimal(10,5), filler char(200), key(a));
-insert into t2 select 345.67890, 'no' from t1 A, t1 B;
-insert into t2 select 43245.34, 'no' from t1 A, t1 B;
-insert into t2 select 64224.56344, 'no' from t1 A, t1 B;
-insert into t2 values (0, '1'), (22334.123,'1'), (33333,'1'),
-(55555,'1'), (77777, '1');
-explain
-select * from t2 where a not in (345.67890, 43245.34, 64224.56344);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 7 NULL 7 Using index condition
-select * from t2 where a not in (345.67890, 43245.34, 64224.56344);
-a filler
-0.00000 1
-22334.12300 1
-33333.00000 1
-55555.00000 1
-77777.00000 1
-drop table t2;
-create table t2 (a int, key(a), b int);
-insert into t2 values (1,1),(2,2);
-set @cnt= 1;
-set @str="update t2 set b=1 where a not in (";
-select count(*) from (
-select @str:=concat(@str, @cnt:=@cnt+1, ",")
-from t1 A, t1 B, t1 C, t1 D) Z;
-count(*)
-10000
-set @str:=concat(@str, "10000)");
-select substr(@str, 1, 50);
-substr(@str, 1, 50)
-update t2 set b=1 where a not in (2,3,4,5,6,7,8,9,
-prepare s from @str;
-execute s;
-deallocate prepare s;
-set @str=NULL;
-drop table t2;
-drop table t1;
-create table t1 (
-some_id smallint(5) unsigned,
-key (some_id)
-);
-insert into t1 values (1),(2);
-select some_id from t1 where some_id not in(2,-1);
-some_id
-1
-select some_id from t1 where some_id not in(-4,-1,-4);
-some_id
-1
-2
-select some_id from t1 where some_id not in(-4,-1,3423534,2342342);
-some_id
-1
-2
-select some_id from t1 where some_id not in('-1', '0');
-some_id
-1
-2
-drop table t1;
-CREATE TABLE t1 (a int, b int, PRIMARY KEY (a));
-INSERT INTO t1 VALUES (1,1),(2,1),(3,1),(4,1),(5,1),(6,1);
-CREATE TABLE t2 (a int, b int, PRIMARY KEY (a));
-INSERT INTO t2 VALUES (3,2),(4,2),(100,100),(101,201),(102,102);
-CREATE TABLE t3 (a int PRIMARY KEY);
-INSERT INTO t3 VALUES (1),(2),(3),(4);
-CREATE TABLE t4 (a int PRIMARY KEY,b int);
-INSERT INTO t4 VALUES (1,1),(2,2),(1000,1000),(1001,1001),(1002,1002),
-(1003,1003),(1004,1004);
-EXPLAIN SELECT STRAIGHT_JOIN * FROM t3
-JOIN t1 ON t3.a=t1.a
-JOIN t2 ON t3.a=t2.a
-JOIN t4 WHERE t4.a IN (t1.b, t2.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index PRIMARY PRIMARY 4 NULL 4 Using index
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t3.a 1
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t3.a 1
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 7 Range checked for each record (index map: 0x1)
-SELECT STRAIGHT_JOIN * FROM t3
-JOIN t1 ON t3.a=t1.a
-JOIN t2 ON t3.a=t2.a
-JOIN t4 WHERE t4.a IN (t1.b, t2.b);
-a a b a b a b
-3 3 1 3 2 1 1
-3 3 1 3 2 2 2
-4 4 1 4 2 1 1
-4 4 1 4 2 2 2
-EXPLAIN SELECT STRAIGHT_JOIN
-(SELECT SUM(t4.a) FROM t4 WHERE t4.a IN (t1.b, t2.b))
-FROM t3, t1, t2
-WHERE t3.a=t1.a AND t3.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 index PRIMARY PRIMARY 4 NULL 4 Using index
-1 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.t3.a 1
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.t3.a 1
-2 DEPENDENT SUBQUERY t4 index NULL PRIMARY 4 NULL 7 Using where; Using index
-SELECT STRAIGHT_JOIN
-(SELECT SUM(t4.a) FROM t4 WHERE t4.a IN (t1.b, t2.b))
-FROM t3, t1, t2
-WHERE t3.a=t1.a AND t3.a=t2.a;
-(SELECT SUM(t4.a) FROM t4 WHERE t4.a IN (t1.b, t2.b))
-3
-3
-DROP TABLE t1,t2,t3,t4;
-CREATE TABLE t1(a BIGINT UNSIGNED);
-INSERT INTO t1 VALUES (0xFFFFFFFFFFFFFFFF);
-SELECT * FROM t1 WHERE a=-1 OR a=-2 ;
-a
-SELECT * FROM t1 WHERE a IN (-1, -2);
-a
-CREATE TABLE t2 (a BIGINT UNSIGNED);
-insert into t2 values(13491727406643098568),
-(0x7fffffefffffffff),
-(0x7ffffffeffffffff),
-(0x7fffffffefffffff),
-(0x7ffffffffeffffff),
-(0x7fffffffffefffff),
-(0x7ffffffffffeffff),
-(0x7fffffffffffefff),
-(0x7ffffffffffffeff),
-(0x7fffffffffffffef),
-(0x7ffffffffffffffe),
-(0x7fffffffffffffff),
-(0x8000000000000000),
-(0x8000000000000001),
-(0x8000000000000002),
-(0x8000000000000300),
-(0x8000000000000400),
-(0x8000000000000401),
-(0x8000000000004001),
-(0x8000000000040001),
-(0x8000000000400001),
-(0x8000000004000001),
-(0x8000000040000001),
-(0x8000000400000001),
-(0x8000004000000001),
-(0x8000040000000001);
-SELECT HEX(a) FROM t2 WHERE a IN
-(CAST(0xBB3C3E98175D33C8 AS UNSIGNED),
-42);
-HEX(a)
-BB3C3E98175D33C8
-SELECT HEX(a) FROM t2 WHERE a IN
-(CAST(0xBB3C3E98175D33C8 AS UNSIGNED),
-CAST(0x7fffffffffffffff AS UNSIGNED),
-CAST(0x8000000000000000 AS UNSIGNED),
-CAST(0x8000000000000400 AS UNSIGNED),
-CAST(0x8000000000000401 AS UNSIGNED),
-42);
-HEX(a)
-BB3C3E98175D33C8
-7FFFFFFFFFFFFFFF
-8000000000000000
-8000000000000400
-8000000000000401
-SELECT HEX(a) FROM t2 WHERE a IN
-(CAST(0x7fffffffffffffff AS UNSIGNED),
-CAST(0x8000000000000001 AS UNSIGNED));
-HEX(a)
-7FFFFFFFFFFFFFFF
-8000000000000001
-SELECT HEX(a) FROM t2 WHERE a IN
-(CAST(0x7ffffffffffffffe AS UNSIGNED),
-CAST(0x7fffffffffffffff AS UNSIGNED));
-HEX(a)
-7FFFFFFFFFFFFFFE
-7FFFFFFFFFFFFFFF
-SELECT HEX(a) FROM t2 WHERE a IN
-(0x7ffffffffffffffe,
-0x7fffffffffffffff,
-'abc');
-HEX(a)
-7FFFFFFFFFFFFFFE
-7FFFFFFFFFFFFFFF
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'abc'
-CREATE TABLE t3 (a BIGINT UNSIGNED);
-INSERT INTO t3 VALUES (9223372036854775551);
-SELECT HEX(a) FROM t3 WHERE a IN (9223372036854775807, 42);
-HEX(a)
-CREATE TABLE t4 (a DATE);
-INSERT INTO t4 VALUES ('1972-02-06'), ('1972-07-29');
-SELECT * FROM t4 WHERE a IN ('1972-02-06','19772-07-29');
-a
-1972-02-06
-Warnings:
-Warning 1292 Incorrect datetime value: '19772-07-29'
-DROP TABLE t1,t2,t3,t4;
-CREATE TABLE t1 (id int not null);
-INSERT INTO t1 VALUES (1),(2);
-SELECT id FROM t1 WHERE id IN(4564, (SELECT IF(1=0,1,1/0)) );
-id
-Warnings:
-Warning 1365 Division by 0
-DROP TABLE t1;
-End of 5.0 tests
-create table t1(f1 char(1));
-insert into t1 values ('a'),('b'),('1');
-select f1 from t1 where f1 in ('a',1);
-f1
-a
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-select f1, case f1 when 'a' then '+' when 1 then '-' end from t1;
-f1 case f1 when 'a' then '+' when 1 then '-' end
-a +
-b NULL
-1 -
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-create index t1f1_idx on t1(f1);
-select f1 from t1 where f1 in ('a',1);
-f1
-1
-a
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-explain select f1 from t1 where f1 in ('a',1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index t1f1_idx t1f1_idx 2 NULL 3 Using where; Using index
-select f1 from t1 where f1 in ('a','b');
-f1
-a
-b
-explain select f1 from t1 where f1 in ('a','b');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index t1f1_idx t1f1_idx 2 NULL 3 Using where; Using index
-select f1 from t1 where f1 in (2,1);
-f1
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-explain select f1 from t1 where f1 in (2,1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index t1f1_idx t1f1_idx 2 NULL 3 Using where; Using index
-create table t2(f2 int, index t2f2(f2));
-insert into t2 values(0),(1),(2);
-select f2 from t2 where f2 in ('a',2);
-f2
-0
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-explain select f2 from t2 where f2 in ('a',2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index t2f2 t2f2 5 NULL 3 Using where; Using index
-select f2 from t2 where f2 in ('a','b');
-f2
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-explain select f2 from t2 where f2 in ('a','b');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index t2f2 t2f2 5 NULL 3 Using where; Using index
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-select f2 from t2 where f2 in (1,'b');
-f2
-0
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-explain select f2 from t2 where f2 in (1,'b');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index t2f2 t2f2 5 NULL 3 Using where; Using index
-drop table t1, t2;
-create table t1 (a time, key(a));
-insert into t1 values (),(),(),(),(),(),(),(),(),();
-select a from t1 where a not in (a,a,a) group by a;
-a
-drop table t1;
-create table t1 (id int);
-select * from t1 where NOT id in (select null union all select 1);
-id
-select * from t1 where NOT id in (null, 1);
-id
-drop table t1;
-CREATE TABLE t1(c0 INTEGER, c1 INTEGER, c2 INTEGER);
-INSERT INTO t1 VALUES(1, 1, 1), (1, 1, 1);
-SELECT CASE AVG (c0) WHEN c1 * c2 THEN 1 END FROM t1;
-CASE AVG (c0) WHEN c1 * c2 THEN 1 END
-1
-SELECT CASE c1 * c2 WHEN SUM(c0) THEN 1 WHEN AVG(c0) THEN 2 END FROM t1;
-CASE c1 * c2 WHEN SUM(c0) THEN 1 WHEN AVG(c0) THEN 2 END
-2
-SELECT CASE c1 WHEN c1 + 1 THEN 1 END, ABS(AVG(c0)) FROM t1;
-CASE c1 WHEN c1 + 1 THEN 1 END ABS(AVG(c0))
-NULL 1.0000
-DROP TABLE t1;
-CREATE TABLE t1(a TEXT, b INT, c INT UNSIGNED, d DECIMAL(12,2), e REAL);
-INSERT INTO t1 VALUES('iynfj', 1, 1, 1, 1);
-INSERT INTO t1 VALUES('innfj', 2, 2, 2, 2);
-SELECT SUM( DISTINCT a ) FROM t1 GROUP BY a HAVING a IN ( AVG( 1 ), 1 + a);
-SUM( DISTINCT a )
-SELECT SUM( DISTINCT b ) FROM t1 GROUP BY b HAVING b IN ( AVG( 1 ), 1 + b);
-SUM( DISTINCT b )
-1
-SELECT SUM( DISTINCT c ) FROM t1 GROUP BY c HAVING c IN ( AVG( 1 ), 1 + c);
-SUM( DISTINCT c )
-1
-SELECT SUM( DISTINCT d ) FROM t1 GROUP BY d HAVING d IN ( AVG( 1 ), 1 + d);
-SUM( DISTINCT d )
-1.00
-SELECT SUM( DISTINCT e ) FROM t1 GROUP BY e HAVING e IN ( AVG( 1 ), 1 + e);
-SUM( DISTINCT e )
-1
-SELECT SUM( DISTINCT e ) FROM t1 GROUP BY b,c,d HAVING (b,c,d) IN
-((AVG( 1 ), 1 + c, 1 + d), (AVG( 1 ), 2 + c, 2 + d));
-SUM( DISTINCT e )
-DROP TABLE t1;
-#
-# Bug #44139: Table scan when NULL appears in IN clause
-#
-CREATE TABLE t1 (
-c_int INT NOT NULL,
-c_decimal DECIMAL(5,2) NOT NULL,
-c_float FLOAT(5, 2) NOT NULL,
-c_bit BIT(10) NOT NULL,
-c_date DATE NOT NULL,
-c_datetime DATETIME NOT NULL,
-c_timestamp TIMESTAMP NOT NULL,
-c_time TIME NOT NULL,
-c_year YEAR NOT NULL,
-c_char CHAR(10) NOT NULL,
-INDEX(c_int), INDEX(c_decimal), INDEX(c_float), INDEX(c_bit), INDEX(c_date),
-INDEX(c_datetime), INDEX(c_timestamp), INDEX(c_time), INDEX(c_year),
-INDEX(c_char));
-INSERT IGNORE INTO t1 (c_int) VALUES (1), (2), (3), (4), (5);
-INSERT IGNORE INTO t1 (c_int) SELECT 0 FROM t1;
-INSERT IGNORE INTO t1 (c_int) SELECT 0 FROM t1;
-EXPLAIN SELECT * FROM t1 WHERE c_int IN (1, 2, 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_int c_int 4 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_int IN (NULL, 1, 2, 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_int c_int 4 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_int IN (1, 2, 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_int c_int 4 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_int IN (1, NULL, 2, NULL, 3, NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_int c_int 4 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_int IN (NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_int IN (NULL, NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_decimal IN (1, 2, 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_decimal c_decimal 3 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_decimal IN (NULL, 1, 2, 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_decimal c_decimal 3 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_decimal IN (NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_decimal IN (NULL, NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_float IN (1, 2, 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_float c_float 4 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_float IN (NULL, 1, 2, 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_float c_float 4 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_float IN (NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_float IN (NULL, NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_bit IN (1, 2, 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_bit c_bit 2 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_bit IN (NULL, 1, 2, 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_bit c_bit 2 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_bit IN (NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_bit IN (NULL, NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_date
-IN ('2009-09-01', '2009-09-02', '2009-09-03');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_date c_date 3 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_date
-IN (NULL, '2009-09-01', '2009-09-02', '2009-09-03');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_date c_date 3 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_date IN (NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_date IN (NULL, NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_datetime
-IN ('2009-09-01 00:00:01', '2009-09-02 00:00:01', '2009-09-03 00:00:01');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_datetime c_datetime 5 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_datetime
-IN (NULL, '2009-09-01 00:00:01', '2009-09-02 00:00:01', '2009-09-03 00:00:01');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_datetime c_datetime 5 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_datetime IN (NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_datetime IN (NULL, NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_timestamp
-IN ('2009-09-01 00:00:01', '2009-09-01 00:00:02', '2009-09-01 00:00:03');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_timestamp c_timestamp 4 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_timestamp
-IN (NULL, '2009-09-01 00:00:01', '2009-09-01 00:00:02', '2009-09-01 00:00:03');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_timestamp c_timestamp 4 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_timestamp IN (NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_timestamp IN (NULL, NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_year IN (1, 2, 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_year c_year 1 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_year IN (NULL, 1, 2, 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_year c_year 1 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_year IN (NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_year IN (NULL, NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_char IN ('1', '2', '3');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_char c_char 10 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_char IN (NULL, '1', '2', '3');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c_char c_char 10 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE c_char IN (NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE c_char IN (NULL, NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-DROP TABLE t1;
-#
-# Bug#54477: Crash on IN / CASE with NULL arguments
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2);
-SELECT 1 IN (NULL, a) FROM t1;
-1 IN (NULL, a)
-1
-NULL
-SELECT a IN (a, a) FROM t1 GROUP BY a WITH ROLLUP;
-a IN (a, a)
-1
-1
-NULL
-SELECT CASE a WHEN a THEN a END FROM t1 GROUP BY a WITH ROLLUP;
-CASE a WHEN a THEN a END
-1
-2
-NULL
-DROP TABLE t1;
-#
-# Bug #11766212 59270: NOT IN (YEAR( ... ), ... ) PRODUCES MANY VALGRIND WARNINGS
-#
-SELECT 1 IN (YEAR(FROM_UNIXTIME(NULL)) ,1);
-1 IN (YEAR(FROM_UNIXTIME(NULL)) ,1)
-1
-#
-#
-# Bug#13012483: EXPLAIN EXTENDED, PREPARED STATEMENT, CRASH IN CHECK_SIMPLE_EQUALITY
-#
-CREATE TABLE t1 (a INT);
-PREPARE s FROM "SELECT 1 FROM t1 WHERE 1 < ALL (SELECT @:= (1 IN (SELECT 1 FROM t1)) FROM t1)";
-EXECUTE s;
-1
-DROP TABLE t1;
-# End of test BUG#13012483
-#
-End of 5.1 tests
-create table t1 (a bigint, b int);
-insert t1 values (1,1),(2,2),(3,3);
-select * from t1 where a in ('2.1');
-a b
-select * from t1 where b in ('2.1');
-a b
-select * from t1 where a='2.1';
-a b
-select * from t1 where b='2.1';
-a b
-select * from t1 where IF(1,a,a)='2.1';
-a b
-drop table t1;
-#
-# LP bug#992380 Crash when creating PS for a query with
-# subquery in WHERE (see also mysql bug#13012483)
-#
-CREATE TABLE t1 (a INT);
-PREPARE s FROM "SELECT 1 FROM t1 WHERE 1 < ALL (SELECT @:= (1 IN (SELECT 1 FROM t1)) FROM t1)";
-EXECUTE s;
-1
-DROP TABLE t1;
-#
-# End of 5.3 tests
-#
-create table t1 (a int);
-insert t1 values (1),(2),(3);
-select * from t1 where 1 in (a, name_const('a', null));
-a
-1
-drop table t1;
-#
-# End of 5.5 tests
-#
-#
-# MDEV-10020 InnoDB NOT IN Query Crash When One Item Is NULL
-#
-CREATE TABLE t1
-(
-a INT(11),
-b VARCHAR(10),
-KEY (b)
-);
-INSERT INTO t1 VALUES (1,'x'),(2,'y'),(3,'z');
-SELECT * FROM t1 WHERE b NOT IN (NULL, '', 'A');
-a b
-DROP TABLE t1;
-#
-# End of 10.0 tests
-#
-#
-# MDEV-8755 Equal field propagation is not performed any longer for the IN list when multiple comparison types
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-# Ok to propagate equalities into the left IN argument in case of a single comparison type
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=1 AND a IN (1,2,3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1
-# Ok to propagate equalities into IN () list, even if multiple comparison types
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=1 AND 1 IN (1,a,'3');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1
-# Not Ok to propagate equalities into the left IN argument in case of multiple comparison types
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=1 AND a IN (1,2,'3');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1 and `test`.`t1`.`a` in (1,2,'3')
-DROP TABLE t1;
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-11514 IN with a mixture of TIME and DATETIME returns a wrong result
-#
-SELECT TIME'10:20:30' IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32');
-TIME'10:20:30' IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32')
-1
-PREPARE stmt FROM "SELECT TIME'10:20:30' IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32')";
-EXECUTE stmt;
-TIME'10:20:30' IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32')
-1
-EXECUTE stmt;
-TIME'10:20:30' IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32')
-1
-DEALLOCATE PREPARE stmt;
-#
-# MDEV-11497 Wrong result for (int_expr IN (mixture of signed and unsigned expressions))
-#
-CREATE TABLE t1 (a BIGINT, b BIGINT UNSIGNED);
-INSERT INTO t1 VALUES (-9223372036854775808,18446744073709551615);
-SELECT * FROM t1 WHERE -1 IN (a,b);
-a b
-PREPARE stmt FROM 'SELECT * FROM t1 WHERE -1 IN (a,b)';
-EXECUTE stmt;
-a b
-EXECUTE stmt;
-a b
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# MDEV-15340 Wrong result HOUR(case_expression_with_time_and_datetime)
-#
-SELECT
-TIME'00:00:00'='' AS c1_true,
-TIME'00:00:00' IN ('', TIME'10:20:30') AS c2_true,
-TIME'00:00:00' NOT IN ('', TIME'10:20:30') AS c3_false;
-c1_true c2_true c3_false
-1 1 0
-Warnings:
-Warning 1292 Truncated incorrect time value: ''
-Warning 1292 Truncated incorrect time value: ''
-Warning 1292 Truncated incorrect time value: ''
diff --git a/mysql-test/r/func_int.result b/mysql-test/r/func_int.result
deleted file mode 100644
index 05573858b17..00000000000
--- a/mysql-test/r/func_int.result
+++ /dev/null
@@ -1,134 +0,0 @@
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-13965 Parameter data type control for Item_longlong_func
-#
-SELECT ROW(1,1) | 1;
-ERROR HY000: Illegal parameter data type row for operation '|'
-SELECT 1 | ROW(1,1);
-ERROR HY000: Illegal parameter data type row for operation '|'
-SELECT ROW(1,1) & 1;
-ERROR HY000: Illegal parameter data type row for operation '&'
-SELECT 1 & ROW(1,1);
-ERROR HY000: Illegal parameter data type row for operation '&'
-SELECT ROW(1,1) << 1;
-ERROR HY000: Illegal parameter data type row for operation '<<'
-SELECT 1 << ROW(1,1);
-ERROR HY000: Illegal parameter data type row for operation '<<'
-SELECT ROW(1,1) >> 1;
-ERROR HY000: Illegal parameter data type row for operation '>>'
-SELECT 1 >> ROW(1,1);
-ERROR HY000: Illegal parameter data type row for operation '>>'
-SELECT ~ROW(1,1);
-ERROR HY000: Illegal parameter data type row for operation '~'
-SELECT TO_SECONDS(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'to_seconds'
-SELECT TIMESTAMPDIFF(SECOND,ROW(1,1), 1);
-ERROR HY000: Illegal parameter data type row for operation 'timestampdiff'
-SELECT TIMESTAMPDIFF(SECOND,1, ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'timestampdiff'
-SELECT INET_ATON(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'inet_aton'
-SELECT LAST_INSERT_ID(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'last_insert_id'
-#
-# MDEV-13967 Parameter data type control for Item_long_func
-#
-SELECT STRCMP(ROW(1,1),'');
-ERROR HY000: Illegal parameter data type row for operation 'strcmp'
-SELECT STRCMP('',ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'strcmp'
-SELECT CHAR_LENGTH(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'char_length'
-SELECT OCTET_LENGTH(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'octet_length'
-SELECT UNCOMPRESSED_LENGTH(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'uncompressed_length'
-SELECT COERCIBILITY(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'coercibility'
-SELECT ASCII(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'ascii'
-SELECT CRC32(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'crc32'
-SELECT ORD(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'ord'
-SELECT SIGN(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'sign'
-SELECT LOCATE(ROW(1,1),'a',1);
-ERROR HY000: Illegal parameter data type row for operation 'locate'
-SELECT LOCATE('a',ROW(1,1),1);
-ERROR HY000: Illegal parameter data type row for operation 'locate'
-SELECT LOCATE('a','a',ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'locate'
-SELECT BIT_COUNT(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'bit_count'
-SELECT BENCHMARK(1, ROW(1,1));
-ERROR 21000: Operand should contain 1 column(s)
-SELECT BENCHMARK(ROW(1,1),'');
-ERROR HY000: Illegal parameter data type row for operation 'benchmark'
-SELECT SLEEP(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'sleep'
-SELECT GET_LOCK('x', ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'get_lock'
-SELECT GET_LOCK(ROW(1,1),'x');
-ERROR HY000: Illegal parameter data type row for operation 'get_lock'
-SELECT PERIOD_ADD(ROW(1,1),1);
-ERROR HY000: Illegal parameter data type row for operation 'period_add'
-SELECT PERIOD_ADD(1,ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'period_add'
-SELECT PERIOD_DIFF(ROW(1,1),1);
-ERROR HY000: Illegal parameter data type row for operation 'period_diff'
-SELECT PERIOD_DIFF(1,ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'period_diff'
-SELECT TO_DAYS(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'to_days'
-SELECT DAYOFMONTH(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'dayofmonth'
-SELECT DAYOFYEAR(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'dayofyear'
-SELECT QUARTER(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'quarter'
-SELECT YEAR(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'year'
-SELECT YEARWEEK(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'yearweek'
-SELECT WEEK(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'week'
-SELECT WEEK(ROW(1,1),1);
-ERROR HY000: Illegal parameter data type row for operation 'week'
-SELECT WEEK(1,ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'week'
-SELECT HOUR(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'hour'
-SELECT MINUTE(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'minute'
-SELECT SECOND(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'second'
-SELECT MICROSECOND(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'microsecond'
-SELECT JSON_DEPTH(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'json_depth'
-SELECT JSON_LENGTH(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'json_length'
-SELECT JSON_LENGTH('json', ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'json_length'
-SELECT JSON_LENGTH(ROW(1,1), ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'json_length'
-SELECT REGEXP_INSTR(ROW(1,1),'');
-ERROR HY000: Illegal parameter data type row for operation 'regexp_instr'
-SELECT REGEXP_INSTR('',ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'regexp_instr'
-SELECT FIND_IN_SET(ROW(1,1),'');
-ERROR HY000: Illegal parameter data type row for operation 'find_in_set'
-SELECT FIND_IN_SET('',ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'find_in_set'
-SELECT RELEASE_LOCK(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'release_lock'
-SELECT IS_FREE_LOCK(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'is_free_lock'
-SELECT IS_USED_LOCK(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'is_used_lock'
-#
-# End of 10.3 tests
-#
diff --git a/mysql-test/r/func_isnull.result b/mysql-test/r/func_isnull.result
deleted file mode 100644
index 15d87997e29..00000000000
--- a/mysql-test/r/func_isnull.result
+++ /dev/null
@@ -1,110 +0,0 @@
-drop table if exists t1;
-create table t1 (id int auto_increment primary key not null, mydate date not null);
-insert into t1 values (0,"2002-05-01"),(0,"2002-05-01"),(0,"2002-05-01");
-flush tables;
-select * from t1 where isnull(to_days(mydate));
-id mydate
-drop table t1;
-#
-# Bug#53933 crash when using uncacheable subquery in the having clause of outer query
-#
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES (0),(0);
-SELECT ISNULL((SELECT GET_LOCK('Bug#53933', 0) FROM t1 GROUP BY f1)) AS f2
-FROM t1 GROUP BY f1 HAVING f2 = f2;
-f2
-0
-SELECT RELEASE_LOCK('Bug#53933');
-RELEASE_LOCK('Bug#53933')
-1
-DROP TABLE t1;
-End of 5.0 tests
-CREATE TABLE t1 (id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY(id));
-INSERT INTO t1( id ) VALUES ( NULL );
-SELECT t1.id FROM t1 WHERE (id is not null and id is null );
-id
-DROP TABLE t1;
-# End of 5.1 tests
-#
-# MDEV-14911: IS NULL for field from mergeable view
-#
-CREATE TABLE t1 (d1 datetime NOT NULL);
-INSERT INTO t1 VALUES
-('0000-00-00 00:00:00'), ('0000-00-00 00:00:00'), ('1979-09-03 20:49:36');
-SELECT * FROM t1;
-d1
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-1979-09-03 20:49:36
-SELECT * FROM t1 WHERE d1 IS NULL;
-d1
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE d1 IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`d1` AS `d1` from `test`.`t1` where `test`.`t1`.`d1` = 0
-SELECT count(*) FROM t1 WHERE d1 IS NULL;
-count(*)
-2
-CREATE VIEW v1 AS (SELECT * FROM t1);
-SELECT * FROM v1;
-d1
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-1979-09-03 20:49:36
-SELECT * FROM v1 WHERE d1 IS NULL;
-d1
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-EXPLAIN EXTENDED SELECT * FROM v1 WHERE d1 IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`d1` AS `d1` from `test`.`t1` where `test`.`t1`.`d1` = 0
-SELECT count(*) FROM v1 WHERE d1 IS NULL;
-count(*)
-2
-SET @save_optimizer_switch=@@optimizer_switch;
-SET SESSION optimizer_switch='derived_merge=off';
-SELECT count(*) FROM ( SELECT * FROM t1 ) AS a1 WHERE d1 IS NULL;
-count(*)
-2
-SET SESSION optimizer_switch='derived_merge=on';
-SELECT count(*) FROM ( SELECT * FROM t1 ) AS a1 WHERE d1 IS NULL;
-count(*)
-2
-SET optimizer_switch=@save_optimizer_switch;
-CREATE TABLE t2 (d1 datetime NOT NULL);
-INSERT INTO t2 VALUES
-('1980-09-03 20:49:36'), ('0000-00-00 00:00:00'), ('1979-09-03 20:49:36');
-SELECT * FROM t2 LEFT JOIN t1 ON t2.d1=t1.d1 WHERE t1.d1 IS NULL;
-d1 d1
-0000-00-00 00:00:00 0000-00-00 00:00:00
-0000-00-00 00:00:00 0000-00-00 00:00:00
-1980-09-03 20:49:36 NULL
-EXPLAIN EXTENDED
-SELECT * FROM t2 LEFT JOIN t1 ON t2.d1=t1.d1 WHERE t1.d1 IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`d1` AS `d1`,`test`.`t1`.`d1` AS `d1` from `test`.`t2` left join `test`.`t1` on(`test`.`t1`.`d1` = `test`.`t2`.`d1`) where `test`.`t1`.`d1` = 0 or `test`.`t1`.`d1` is null
-SELECT * FROM t2 LEFT JOIN v1 ON t2.d1=v1.d1 WHERE v1.d1 IS NULL;
-d1 d1
-0000-00-00 00:00:00 0000-00-00 00:00:00
-0000-00-00 00:00:00 0000-00-00 00:00:00
-1980-09-03 20:49:36 NULL
-EXPLAIN EXTENDED
-SELECT * FROM t2 LEFT JOIN v1 ON t2.d1=v1.d1 WHERE v1.d1 IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`d1` AS `d1`,`test`.`t1`.`d1` AS `d1` from `test`.`t2` left join (`test`.`t1`) on(`test`.`t1`.`d1` = `test`.`t2`.`d1`) where `test`.`t1`.`d1` = 0 or `test`.`t1`.`d1` is null
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# End of 5.5 tests
-#
diff --git a/mysql-test/r/func_json.result b/mysql-test/r/func_json.result
deleted file mode 100644
index 9b41c1f9d61..00000000000
--- a/mysql-test/r/func_json.result
+++ /dev/null
@@ -1,770 +0,0 @@
-select json_valid('[1, 2]');
-json_valid('[1, 2]')
-1
-select json_valid('"string"}');
-json_valid('"string"}')
-0
-select json_valid('{"key1":1, "key2":[2,3]}');
-json_valid('{"key1":1, "key2":[2,3]}')
-1
-select json_valid('[false, true, null]');
-json_valid('[false, true, null]')
-1
-select json_valid(repeat('[', 1000));
-json_valid(repeat('[', 1000))
-0
-select json_valid(repeat('{"a":', 1000));
-json_valid(repeat('{"a":', 1000))
-0
-select json_value('{"key1":123}', '$.key2');
-json_value('{"key1":123}', '$.key2')
-NULL
-select json_value('{"key1":123}', '$.key1');
-json_value('{"key1":123}', '$.key1')
-123
-select json_value('{"key1":[1,2,3]}', '$.key1');
-json_value('{"key1":[1,2,3]}', '$.key1')
-NULL
-select json_value('{"key1": [1,2,3], "key1":123}', '$.key1');
-json_value('{"key1": [1,2,3], "key1":123}', '$.key1')
-123
-select JSON_VALUE('{ "x": [0,1], "y": "[0,1]", "z": "Mon\\\"t\\\"y" }','$.z');
-JSON_VALUE('{ "x": [0,1], "y": "[0,1]", "z": "Mon\\\"t\\\"y" }','$.z')
-Mon"t"y
-select json_query('{"key1":{"a":1, "b":[1,2]}}', '$.key2');
-json_query('{"key1":{"a":1, "b":[1,2]}}', '$.key2')
-NULL
-select json_query('{"key1":{"a":1, "b":[1,2]}}', '$.key1');
-json_query('{"key1":{"a":1, "b":[1,2]}}', '$.key1')
-{"a":1, "b":[1,2]}
-select json_query('{"key1": 1}', '$.key1');
-json_query('{"key1": 1}', '$.key1')
-NULL
-select json_query('{"key1":123, "key1": [1,2,3]}', '$.key1');
-json_query('{"key1":123, "key1": [1,2,3]}', '$.key1')
-[1,2,3]
-select json_query('{"key1":123, "key1": [1,2,3]}', concat('$', repeat('.k', 1000)));
-json_query('{"key1":123, "key1": [1,2,3]}', concat('$', repeat('.k', 1000)))
-NULL
-select json_array();
-json_array()
-[]
-select json_array(1);
-json_array(1)
-[1]
-select json_array(1, "text", false, null);
-json_array(1, "text", false, null)
-[1, "text", false, null]
-select json_array_append('["a", "b"]', '$', FALSE);
-json_array_append('["a", "b"]', '$', FALSE)
-["a", "b", false]
-select json_array_append('{"k1":1, "k2":["a", "b"]}', '$.k2', 2);
-json_array_append('{"k1":1, "k2":["a", "b"]}', '$.k2', 2)
-{"k1": 1, "k2": ["a", "b", 2]}
-select json_array_append('["a", ["b", "c"], "d"]', '$[0]', 2);
-json_array_append('["a", ["b", "c"], "d"]', '$[0]', 2)
-[["a", 2], ["b", "c"], "d"]
-select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1]', 'x');
-json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1]', 'x')
-["a", "x", {"b": [1, 2]}, [3, 4]]
-select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[2]', 'x');
-json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[2]', 'x')
-["a", {"b": [1, 2]}, "x", [3, 4]]
-select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[3]', 'x');
-json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[3]', 'x')
-["a", {"b": [1, 2]}, [3, 4], "x"]
-select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[4]', 'x');
-json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[4]', 'x')
-["a", {"b": [1, 2]}, [3, 4], "x"]
-select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1].b[0]', 'x');
-json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1].b[0]', 'x')
-["a", {"b": ["x", 1, 2]}, [3, 4]]
-select json_array_insert('true', '$', 1);
-json_array_insert('true', '$', 1)
-NULL
-select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[2][1]', 'y');
-json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[2][1]', 'y')
-["a", {"b": [1, 2]}, [3, "y", 4]]
-select json_contains('{"k1":123, "k2":345}', '123', '$.k1');
-json_contains('{"k1":123, "k2":345}', '123', '$.k1')
-1
-select json_contains('"you"', '"you"');
-json_contains('"you"', '"you"')
-1
-select json_contains('"youth"', '"you"');
-json_contains('"youth"', '"you"')
-0
-select json_contains('[1]', '[1]', '$', '$[0]');
-ERROR 42000: Incorrect parameter count in the call to native function 'json_contains'
-select json_contains('', '', '$');
-json_contains('', '', '$')
-NULL
-Warnings:
-Warning 4037 Unexpected end of JSON text in argument 1 to function 'json_contains'
-select json_contains('null', 'null', '$');
-json_contains('null', 'null', '$')
-1
-select json_contains('"10"', '"10"', '$');
-json_contains('"10"', '"10"', '$')
-1
-select json_contains('"10"', '10', '$');
-json_contains('"10"', '10', '$')
-0
-select json_contains('10.1', '10', '$');
-json_contains('10.1', '10', '$')
-0
-select json_contains('10.0', '10', '$');
-json_contains('10.0', '10', '$')
-1
-select json_contains('[1]', '1');
-json_contains('[1]', '1')
-1
-select json_contains('[2, 1]', '1');
-json_contains('[2, 1]', '1')
-1
-select json_contains('[2, [2, 3], 1]', '1');
-json_contains('[2, [2, 3], 1]', '1')
-1
-select json_contains('[4, [2, 3], 1]', '2');
-json_contains('[4, [2, 3], 1]', '2')
-1
-select json_contains('[2, 1]', '[1, 2]');
-json_contains('[2, 1]', '[1, 2]')
-1
-select json_contains('[2, 1]', '[1, 0, 2]');
-json_contains('[2, 1]', '[1, 0, 2]')
-0
-select json_contains('[2, 0, 3, 1]', '[1, 2]');
-json_contains('[2, 0, 3, 1]', '[1, 2]')
-1
-select json_contains('{"b":[1,2], "a":1}', '{"a":1, "b":2}');
-json_contains('{"b":[1,2], "a":1}', '{"a":1, "b":2}')
-1
-select json_contains('{"a":1}', '{}');
-json_contains('{"a":1}', '{}')
-1
-select json_contains('[1, {"a":1}]', '{}');
-json_contains('[1, {"a":1}]', '{}')
-1
-select json_contains('[1, {"a":1}]', '{"a":1}');
-json_contains('[1, {"a":1}]', '{"a":1}')
-1
-select json_contains('[{"abc":"def", "def":"abc"}]', '["foo","bar"]');
-json_contains('[{"abc":"def", "def":"abc"}]', '["foo","bar"]')
-0
-select json_contains('[{"abc":"def", "def":"abc"}, "bar"]', '["bar", {}]');
-json_contains('[{"abc":"def", "def":"abc"}, "bar"]', '["bar", {}]')
-1
-select json_contains('[{"a":"b"},{"c":"d"}]','{"c":"d"}');
-json_contains('[{"a":"b"},{"c":"d"}]','{"c":"d"}')
-1
-select json_contains_path('{"key1":1, "key2":[2,3]}', "oNE", "$.key2[1]");
-json_contains_path('{"key1":1, "key2":[2,3]}', "oNE", "$.key2[1]")
-1
-select json_contains_path('{"key1":1, "key2":[2,3]}', "oNE", "$.key2[10]");
-json_contains_path('{"key1":1, "key2":[2,3]}', "oNE", "$.key2[10]")
-0
-select json_contains_path('{"key1":1, "key2":[2,3]}', "oNE", "$.ma");
-json_contains_path('{"key1":1, "key2":[2,3]}', "oNE", "$.ma")
-0
-select json_contains_path('{"key1":1, "key2":[2,3]}', "one", "$.key1");
-json_contains_path('{"key1":1, "key2":[2,3]}', "one", "$.key1")
-1
-select json_contains_path('{"key1":1, "key2":[2,3]}', "one", "$.key1", "$.ma");
-json_contains_path('{"key1":1, "key2":[2,3]}', "one", "$.key1", "$.ma")
-1
-select json_contains_path('{"key1":1, "key2":[2,3]}', "aLl", "$.key1", "$.ma");
-json_contains_path('{"key1":1, "key2":[2,3]}', "aLl", "$.key1", "$.ma")
-0
-select json_contains_path('{"key1":1, "key2":[2,3]}', "aLl", "$.key1", "$.key2");
-json_contains_path('{"key1":1, "key2":[2,3]}', "aLl", "$.key1", "$.key2")
-1
-select json_contains_path('{ "a": true }', NULL, '$.a' );
-json_contains_path('{ "a": true }', NULL, '$.a' )
-NULL
-select json_contains_path('{ "a": true }', 'all', NULL );
-json_contains_path('{ "a": true }', 'all', NULL )
-NULL
-select json_contains_path('{"a":{"b":"c"}}', 'one', '$.a.*');
-json_contains_path('{"a":{"b":"c"}}', 'one', '$.a.*')
-1
-select json_extract('{"key1":"asd", "key2":[2,3]}', "$.key1");
-json_extract('{"key1":"asd", "key2":[2,3]}', "$.key1")
-"asd"
-select json_extract('{"key1":"asd", "key2":[2,3]}', "$.keyX", "$.keyY");
-json_extract('{"key1":"asd", "key2":[2,3]}', "$.keyX", "$.keyY")
-NULL
-select json_extract('{"key1":"asd", "key2":[2,3]}', "$.key1", "$.key2");
-json_extract('{"key1":"asd", "key2":[2,3]}', "$.key1", "$.key2")
-["asd", [2, 3]]
-select json_extract('{"key1":5, "key2":[2,3]}', "$.key1", "$.key2");
-json_extract('{"key1":5, "key2":[2,3]}', "$.key1", "$.key2")
-[5, [2, 3]]
-select json_extract('{"key0":true, "key1":"qwe"}', "$.key1");
-json_extract('{"key0":true, "key1":"qwe"}', "$.key1")
-"qwe"
-select json_extract(json_object('foo', 'foobar'),'$');
-json_extract(json_object('foo', 'foobar'),'$')
-{"foo": "foobar"}
-select json_extract('[10, 20, [30, 40]]', '$[2][*]');
-json_extract('[10, 20, [30, 40]]', '$[2][*]')
-[30, 40]
-select json_extract('[10, 20, [{"a":3}, 30, 40]]', '$[2][*]');
-json_extract('[10, 20, [{"a":3}, 30, 40]]', '$[2][*]')
-[{"a": 3}, 30, 40]
-select json_extract('1', '$');
-json_extract('1', '$')
-1
-select json_extract('[10, 20, [30, 40], 1, 10]', '$[1]');
-json_extract('[10, 20, [30, 40], 1, 10]', '$[1]')
-20
-select json_extract('[10, 20, [30, 40], 1, 10]', '$[1]', '$[25]');
-json_extract('[10, 20, [30, 40], 1, 10]', '$[1]', '$[25]')
-[20]
-select json_extract( '[{"a": [3, 4]}, {"b": 2}]', '$[0].a', '$[1].a');
-json_extract( '[{"a": [3, 4]}, {"b": 2}]', '$[0].a', '$[1].a')
-[[3, 4]]
-select json_insert('{"a":1, "b":{"c":1}, "d":[1, 2]}', '$.b.k1', 'word');
-json_insert('{"a":1, "b":{"c":1}, "d":[1, 2]}', '$.b.k1', 'word')
-{"a": 1, "b": {"c": 1, "k1": "word"}, "d": [1, 2]}
-select json_insert('{"a":1, "b":{"c":1}, "d":[1, 2]}', '$.d[3]', 3);
-json_insert('{"a":1, "b":{"c":1}, "d":[1, 2]}', '$.d[3]', 3)
-{"a": 1, "b": {"c": 1}, "d": [1, 2, 3]}
-select json_insert('{"a":1, "b":{"c":1}, "d":[1, 2]}', '$.a[2]', 2);
-json_insert('{"a":1, "b":{"c":1}, "d":[1, 2]}', '$.a[2]', 2)
-{"a": [1, 2], "b": {"c": 1}, "d": [1, 2]}
-select json_insert('{"a":1, "b":{"c":1}, "d":[1, 2]}', '$.b.c', 'word');
-json_insert('{"a":1, "b":{"c":1}, "d":[1, 2]}', '$.b.c', 'word')
-{"a": 1, "b": {"c": 1}, "d": [1, 2]}
-select json_set('{ "a": 1, "b": [2, 3]}', '$.a', 10, '$.c', '[true, false]');
-json_set('{ "a": 1, "b": [2, 3]}', '$.a', 10, '$.c', '[true, false]')
-{"a": 10, "b": [2, 3], "c": "[true, false]"}
-select json_replace('{ "a": 1, "b": [2, 3]}', '$.a', 10, '$.c', '[true, false]');
-json_replace('{ "a": 1, "b": [2, 3]}', '$.a', 10, '$.c', '[true, false]')
-{"a": 10, "b": [2, 3]}
-select json_replace('{ "a": 1, "b": [2, 3]}', '$.a', 10, '$.b', '[true, false]');
-json_replace('{ "a": 1, "b": [2, 3]}', '$.a', 10, '$.b', '[true, false]')
-{"a": 10, "b": "[true, false]"}
-set @j = '["a", ["b", "c"], "d"]';
-select json_remove(@j, '$[0]');
-json_remove(@j, '$[0]')
-[["b", "c"], "d"]
-select json_remove(@j, '$[1]');
-json_remove(@j, '$[1]')
-["a", "d"]
-select json_remove(@j, '$[2]');
-json_remove(@j, '$[2]')
-["a", ["b", "c"]]
-set @j = '{"a": 1, "b": [2, 3]}';
-select json_remove(@j, '$.b');
-json_remove(@j, '$.b')
-{"a": 1}
-select json_remove(@j, '$.a');
-json_remove(@j, '$.a')
-{"b": [2, 3]}
-select json_object();
-json_object()
-{}
-select json_object("ki", 1, "mi", "ya");
-json_object("ki", 1, "mi", "ya")
-{"ki": 1, "mi": "ya"}
-create table t1 as select json_object('id', 87, 'name', 'carrot') as f;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f` varchar(32) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-f
-{"id": 87, "name": "carrot"}
-drop table t1;
-select json_exists('{"key1":"xxxx", "key2":[1, 2, 3]}', "$.key2");
-json_exists('{"key1":"xxxx", "key2":[1, 2, 3]}', "$.key2")
-1
-select json_exists('{"key1":"xxxx", "key2":[1, 2, 3]}', "$.key2[1]");
-json_exists('{"key1":"xxxx", "key2":[1, 2, 3]}', "$.key2[1]")
-1
-select json_exists('{"key1":"xxxx", "key2":[1, 2, 3]}', "$.key2[10]");
-json_exists('{"key1":"xxxx", "key2":[1, 2, 3]}', "$.key2[10]")
-0
-select json_quote('"string"');
-json_quote('"string"')
-"\"string\""
-create table t1 as select json_quote('foo');
-select * from t1;
-json_quote('foo')
-"foo"
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `json_quote('foo')` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select json_merge('string');
-ERROR 42000: Incorrect parameter count in the call to native function 'json_merge'
-select json_merge('string', 123);
-json_merge('string', 123)
-NULL
-Warnings:
-Warning 4038 Syntax error in JSON text in argument 1 to function 'json_merge' at position 1
-select json_merge('"string"', 123);
-json_merge('"string"', 123)
-["string", 123]
-select json_merge('[1, 2]', '[true, false]');
-json_merge('[1, 2]', '[true, false]')
-[1, 2, true, false]
-select json_merge('{"1": 2}', '{"true": false}');
-json_merge('{"1": 2}', '{"true": false}')
-{"1": 2, "true": false}
-select json_merge('{"1": 2}', '{"true": false}', '{"3": 4}');
-json_merge('{"1": 2}', '{"true": false}', '{"3": 4}')
-{"1": 2, "true": false, "3": 4}
-select json_merge(NULL,json_object('foo', 1));
-json_merge(NULL,json_object('foo', 1))
-NULL
-select json_merge('a','b');
-json_merge('a','b')
-NULL
-Warnings:
-Warning 4038 Syntax error in JSON text in argument 1 to function 'json_merge' at position 1
-select json_merge('{"a":"b"}','{"c":"d"}');
-json_merge('{"a":"b"}','{"c":"d"}')
-{"a": "b", "c": "d"}
-SELECT JSON_MERGE('[1, 2]', '{"id": 47}');
-JSON_MERGE('[1, 2]', '{"id": 47}')
-[1, 2, {"id": 47}]
-select json_type('{"k1":123, "k2":345}');
-json_type('{"k1":123, "k2":345}')
-OBJECT
-select json_type('[123, "k2", 345]');
-json_type('[123, "k2", 345]')
-ARRAY
-select json_type("true");
-json_type("true")
-BOOLEAN
-select json_type('123');
-json_type('123')
-INTEGER
-select json_type('123.12');
-json_type('123.12')
-DOUBLE
-select json_keys('{"a":{"c":1, "d":2}, "b":2}');
-json_keys('{"a":{"c":1, "d":2}, "b":2}')
-["a", "b"]
-select json_keys('{"a":{"c":1, "d":2}, "b":2}', "$.a");
-json_keys('{"a":{"c":1, "d":2}, "b":2}', "$.a")
-["c", "d"]
-select json_keys('{"a":{"c":1, "d":2}, "b":2}', "$.b");
-json_keys('{"a":{"c":1, "d":2}, "b":2}', "$.b")
-NULL
-select json_keys('foo');
-json_keys('foo')
-NULL
-Warnings:
-Warning 4038 Syntax error in JSON text in argument 1 to function 'json_keys' at position 1
-select json_keys('{"a":{"c":1, "d":2}, "b":2, "c":1, "a":3, "b":1, "c":2}');
-json_keys('{"a":{"c":1, "d":2}, "b":2, "c":1, "a":3, "b":1, "c":2}')
-["a", "b", "c"]
-select json_keys('{"c1": "value 1", "c1": "value 2"}');
-json_keys('{"c1": "value 1", "c1": "value 2"}')
-["c1"]
-SET @j = '["abc", [{"k": "10"}, "def"], {"x":"abc"}, {"y":"bcd"}]';
-select json_search(@j, 'one', 'abc');
-json_search(@j, 'one', 'abc')
-"$[0]"
-select json_search(@j, 'all', 'abc');
-json_search(@j, 'all', 'abc')
-["$[0]", "$[2].x"]
-select json_search(@j, 'all', 'abc', NULL, '$[2]');
-json_search(@j, 'all', 'abc', NULL, '$[2]')
-"$[2].x"
-select json_search(@j, 'all', 'abc', NULL, '$');
-json_search(@j, 'all', 'abc', NULL, '$')
-["$[0]", "$[2].x"]
-select json_search(@j, 'all', '10', NULL, '$');
-json_search(@j, 'all', '10', NULL, '$')
-"$[1][0].k"
-select json_search(@j, 'all', '10', NULL, '$[*]');
-json_search(@j, 'all', '10', NULL, '$[*]')
-"$[1][0].k"
-select json_search(@j, 'all', '10', NULL, '$[*][0].k');
-json_search(@j, 'all', '10', NULL, '$[*][0].k')
-"$[1][0].k"
-select json_search(@j, 'all', '10', NULL, '$**.k');
-json_search(@j, 'all', '10', NULL, '$**.k')
-"$[1][0].k"
-create table t1( json_col text );
-insert into t1 values
-('{ "a": "foobar" }'),
-('{ "a": "foobar", "b": "focus", "c": [ "arm", "foot", "shoulder" ] }');
-select json_search( json_col, 'all', 'foot' ) from t1;
-json_search( json_col, 'all', 'foot' )
-NULL
-"$.c[1]"
-drop table t1;
-select json_unquote('"abc"');
-json_unquote('"abc"')
-abc
-select json_unquote('abc');
-json_unquote('abc')
-abc
-create table t1 (c VARCHAR(8)) DEFAULT CHARSET=latin1;
-insert into t1 values ('abc'),('def');
-select json_object('foo', json_unquote(json_object('bar', c)),'qux', c) as fld from t1;
-fld
-{"foo": "{\"bar\": \"abc\"}", "qux": "abc"}
-{"foo": "{\"bar\": \"def\"}", "qux": "def"}
-drop table t1;
-select json_object("a", json_object("b", "abcd"));
-json_object("a", json_object("b", "abcd"))
-{"a": {"b": "abcd"}}
-select json_object("a", '{"b": "abcd"}');
-json_object("a", '{"b": "abcd"}')
-{"a": "{\"b\": \"abcd\"}"}
-select json_object("a", json_compact('{"b": "abcd"}'));
-json_object("a", json_compact('{"b": "abcd"}'))
-{"a": {"b": "abcd"}}
-select json_compact(NULL);
-json_compact(NULL)
-NULL
-select json_depth(json_compact(NULL));
-json_depth(json_compact(NULL))
-NULL
-select json_depth('[[], {}]');
-json_depth('[[], {}]')
-2
-select json_depth('[[[1,2,3],"s"], {}, []]');
-json_depth('[[[1,2,3],"s"], {}, []]')
-4
-select json_depth('[10, {"a": 20}]');
-json_depth('[10, {"a": 20}]')
-3
-select json_length('');
-json_length('')
-NULL
-Warnings:
-Warning 4037 Unexpected end of JSON text in argument 1 to function 'json_length'
-select json_length('{}');
-json_length('{}')
-0
-select json_length('[1, 2, {"a": 3}]');
-json_length('[1, 2, {"a": 3}]')
-3
-select json_length('{"a": 1, "b": {"c": 30}}', '$.b');
-json_length('{"a": 1, "b": {"c": 30}}', '$.b')
-1
-select json_length('{"a": 1, "b": {"c": 30}}');
-json_length('{"a": 1, "b": {"c": 30}}')
-2
-select json_length('{}{');
-json_length('{}{')
-NULL
-Warnings:
-Warning 4038 Syntax error in JSON text in argument 1 to function 'json_length' at position 3
-create table json (j INT);
-show create table json;
-Table Create Table
-json CREATE TABLE `json` (
- `j` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table json;
-select json_length( '[ 1, [ 2, 3, 4 ], 5 ]', '$[2]' );
-json_length( '[ 1, [ 2, 3, 4 ], 5 ]', '$[2]' )
-1
-select json_length( '[ 1, [ 2, 3, 4 ], 5 ]', '$[2][0]' );
-json_length( '[ 1, [ 2, 3, 4 ], 5 ]', '$[2][0]' )
-1
-select json_length( '[ 1, [ 2, 3, 4 ], 5 ]', '$[2][0][0]' );
-json_length( '[ 1, [ 2, 3, 4 ], 5 ]', '$[2][0][0]' )
-1
-select json_length( '[ 1, [ 2, 3, 4 ], 5 ]', '$[2][0][0][0]' );
-json_length( '[ 1, [ 2, 3, 4 ], 5 ]', '$[2][0][0][0]' )
-1
-select json_length( '[ 1, [ 2, 3, 4 ], {"a":5, "b":6} ]', '$[2]' );
-json_length( '[ 1, [ 2, 3, 4 ], {"a":5, "b":6} ]', '$[2]' )
-2
-select json_length( '[ 1, [ 2, 3, 4 ], {"a":5, "b":6} ]', '$[2][0]' );
-json_length( '[ 1, [ 2, 3, 4 ], {"a":5, "b":6} ]', '$[2][0]' )
-2
-select json_length( '[ 1, [ 2, 3, 4 ], {"a":5, "b":6} ]', '$[2][0][0]' );
-json_length( '[ 1, [ 2, 3, 4 ], {"a":5, "b":6} ]', '$[2][0][0]' )
-2
-select json_length( '[ 1, [ 2, 3, 4 ], {"a":5, "b":6} ]', '$[2][0][0][0]' );
-json_length( '[ 1, [ 2, 3, 4 ], {"a":5, "b":6} ]', '$[2][0][0][0]' )
-2
-select json_length( '{"a":{"b":{"d":1}}, "a":{"c":{"d":1, "j":2}}}', '$.a[0][0][0].c' );
-json_length( '{"a":{"b":{"d":1}}, "a":{"c":{"d":1, "j":2}}}', '$.a[0][0][0].c' )
-2
-select json_set('1', '$[0]', 100);
-json_set('1', '$[0]', 100)
-100
-select json_set('1', '$[0][0]', 100);
-json_set('1', '$[0][0]', 100)
-100
-select json_set('1', '$[1]', 100);
-json_set('1', '$[1]', 100)
-[1, 100]
-select json_set('{"a":12}', '$[0]', 100);
-json_set('{"a":12}', '$[0]', 100)
-100
-select json_set('{"a":12}', '$[0].a', 100);
-json_set('{"a":12}', '$[0].a', 100)
-{"a": 100}
-select json_set('{"a":12}', '$[0][0].a', 100);
-json_set('{"a":12}', '$[0][0].a', 100)
-{"a": 100}
-select json_set('{"a":12}', '$[0][1].a', 100);
-json_set('{"a":12}', '$[0][1].a', 100)
-{"a": 12}
-select json_value('{"\\"key1":123}', '$."\\"key1"');
-json_value('{"\\"key1":123}', '$."\\"key1"')
-123
-select json_value('{"\\"key1\\"":123}', '$."\\"key1\\""');
-json_value('{"\\"key1\\"":123}', '$."\\"key1\\""')
-123
-select json_value('{"key 1":123}', '$."key 1"');
-json_value('{"key 1":123}', '$."key 1"')
-123
-select json_contains_path('{"a":[{"c":[1,{"a":[0,1,2]},3]}], "b":[1,2,3]}', 'one', "$**.a[2]");
-json_contains_path('{"a":[{"c":[1,{"a":[0,1,2]},3]}], "b":[1,2,3]}', 'one', "$**.a[2]")
-1
-select json_contains_path('{"a":[{"c":[1,{"a":[0,1,2]},3]}], "b":[1,2,3]}', 'one', "$**.a[3]");
-json_contains_path('{"a":[{"c":[1,{"a":[0,1,2]},3]}], "b":[1,2,3]}', 'one', "$**.a[3]")
-0
-select json_extract( '[1]', '$[0][0]' );
-json_extract( '[1]', '$[0][0]' )
-1
-select json_extract( '[1]', '$[1][0]' );
-json_extract( '[1]', '$[1][0]' )
-NULL
-select json_extract( '[1]', '$**[0]' );
-json_extract( '[1]', '$**[0]' )
-[1]
-select json_extract( '[1]', '$**[0][0]' );
-json_extract( '[1]', '$**[0][0]' )
-[1]
-select json_insert('1', '$[0]', 4);
-json_insert('1', '$[0]', 4)
-1
-select json_replace('1', '$[0]', 4);
-json_replace('1', '$[0]', 4)
-4
-select json_set('1', '$[0]', 4);
-json_set('1', '$[0]', 4)
-4
-select json_set('1', '$[1]', 4);
-json_set('1', '$[1]', 4)
-[1, 4]
-select json_replace('1', '$[1]', 4);
-json_replace('1', '$[1]', 4)
-1
-SELECT json_insert('[]', '$[0][0]', 100);
-json_insert('[]', '$[0][0]', 100)
-[]
-SELECT json_insert('1', '$[0][0]', 100);
-json_insert('1', '$[0][0]', 100)
-1
-SELECT json_replace('1', '$[0][0]', 100);
-json_replace('1', '$[0][0]', 100)
-100
-SELECT json_replace('[]', '$[0][0]', 100);
-json_replace('[]', '$[0][0]', 100)
-[]
-SELECT json_set('[]', '$[0][0]', 100);
-json_set('[]', '$[0][0]', 100)
-[]
-SELECT json_set('[]', '$[0][0][0]', 100);
-json_set('[]', '$[0][0][0]', 100)
-[]
-SELECT JSON_search( '{"": "a"}', "one", 'a');
-JSON_search( '{"": "a"}', "one", 'a')
-"$."
-select json_merge('{"a":"b"}', '{"a":"c"}') ;
-json_merge('{"a":"b"}', '{"a":"c"}')
-{"a": ["b", "c"]}
-select json_merge('{"a":{"x":"b"}}', '{"a":"c"}') ;
-json_merge('{"a":{"x":"b"}}', '{"a":"c"}')
-{"a": [{"x": "b"}, "c"]}
-select json_merge('{"a":{"u":12, "x":"b"}}', '{"a":{"x":"c"}}') ;
-json_merge('{"a":{"u":12, "x":"b"}}', '{"a":{"x":"c"}}')
-{"a": {"u": 12, "x": ["b", "c"]}}
-select json_merge('{"a":{"u":12, "x":"b", "r":1}}', '{"a":{"x":"c", "r":2}}') ;
-json_merge('{"a":{"u":12, "x":"b", "r":1}}', '{"a":{"x":"c", "r":2}}')
-{"a": {"u": 12, "x": ["b", "c"], "r": [1, 2]}}
-select json_compact('{"a":1, "b":[1,2,3], "c":{"aa":"v1", "bb": "v2"}}');
-json_compact('{"a":1, "b":[1,2,3], "c":{"aa":"v1", "bb": "v2"}}')
-{"a":1,"b":[1,2,3],"c":{"aa":"v1","bb":"v2"}}
-select json_loose('{"a":1, "b":[1,2,3], "c":{"aa":"v1", "bb": "v2"}}');
-json_loose('{"a":1, "b":[1,2,3], "c":{"aa":"v1", "bb": "v2"}}')
-{"a": 1, "b": [1, 2, 3], "c": {"aa": "v1", "bb": "v2"}}
-select json_detailed('{"a":1, "b":[1,2,3], "c":{"aa":"v1", "bb": "v2"}}');
-json_detailed('{"a":1, "b":[1,2,3], "c":{"aa":"v1", "bb": "v2"}}')
-{
- "a": 1,
- "b":
- [
- 1,
- 2,
- 3
- ],
- "c":
- {
- "aa": "v1",
- "bb": "v2"
- }
-}
-SELECT JSON_search( '{"x": "\\""}', "one", '"');
-JSON_search( '{"x": "\\""}', "one", '"')
-"$.x"
-SELECT JSON_search( '{"x": "\\""}', "one", '\\"');
-JSON_search( '{"x": "\\""}', "one", '\\"')
-"$.x"
-set @@global.net_buffer_length=1024;
-set @@global.max_allowed_packet=2048;
-connect newconn, localhost, root,,;
-show variables like 'net_buffer_length';
-Variable_name Value
-net_buffer_length 1024
-show variables like 'max_allowed_packet';
-Variable_name Value
-max_allowed_packet 2048
-select json_array(repeat('a',1024),repeat('a',1024));
-json_array(repeat('a',1024),repeat('a',1024))
-NULL
-Warnings:
-Warning 1301 Result of json_array() was larger than max_allowed_packet (2048) - truncated
-select json_object("a", repeat('a',1024),"b", repeat('a',1024));
-json_object("a", repeat('a',1024),"b", repeat('a',1024))
-NULL
-Warnings:
-Warning 1301 Result of json_object() was larger than max_allowed_packet (2048) - truncated
-connection default;
-set @@global.max_allowed_packet = default;
-set @@global.net_buffer_length = default;
-disconnect newconn;
-create table t1(j longtext, p longtext);
-insert into t1 values
-('{"a":1,"b":2,"c":3}','$.a'),
-('{"a":1,"b":2,"c":3}','$.b'),
-('{"a":1,"b":2,"c":3}','$.c');
-select j, p, json_remove(j, p) from t1;
-j p json_remove(j, p)
-{"a":1,"b":2,"c":3} $.a {"b": 2, "c": 3}
-{"a":1,"b":2,"c":3} $.b {"a": 1, "c": 3}
-{"a":1,"b":2,"c":3} $.c {"a": 1, "b": 2}
-drop table t1;
-SET @str = 'bar', @path = '$';
-SELECT JSON_SEARCH('{"foo":"bar"}', 'all' , @str, '%', @path);
-JSON_SEARCH('{"foo":"bar"}', 'all' , @str, '%', @path)
-"$.foo"
-SELECT JSON_VALUE('[{"foo": 1},"bar"]', '$[*][0]');
-JSON_VALUE('[{"foo": 1},"bar"]', '$[*][0]')
-bar
-CREATE TABLE t1 (f INT NOT NULL);
-INSERT INTO t1 VALUES (0);
-SELECT JSON_KEYS(f) FROM t1 ORDER BY 1;
-JSON_KEYS(f)
-NULL
-DROP TABLE t1;
-SELECT JSON_EXTRACT( '{"foo":"bar"}', '$[*].*' );
-JSON_EXTRACT( '{"foo":"bar"}', '$[*].*' )
-NULL
-SELECT JSON_EXTRACT( '{"foo":"bar"}', '$[*]' );
-JSON_EXTRACT( '{"foo":"bar"}', '$[*]' )
-NULL
-select JSON_EXTRACT('{"name":"value"}', '$.name') = 'value';
-JSON_EXTRACT('{"name":"value"}', '$.name') = 'value'
-1
-select JSON_EXTRACT('{\"asdf\":true}', "$.\"asdf\"") = true;
-JSON_EXTRACT('{\"asdf\":true}', "$.\"asdf\"") = true
-1
-select JSON_EXTRACT('{\"asdf\":true}', "$.\"asdf\"") = false;
-JSON_EXTRACT('{\"asdf\":true}', "$.\"asdf\"") = false
-0
-select JSON_EXTRACT('{\"asdf\":true}', "$.\"asdf\"") = 1;
-JSON_EXTRACT('{\"asdf\":true}', "$.\"asdf\"") = 1
-1
-select JSON_EXTRACT('{\"input1\":\"\\u00f6\"}', '$.\"input1\"');
-JSON_EXTRACT('{\"input1\":\"\\u00f6\"}', '$.\"input1\"')
-"\u00f6"
-select JSON_EXTRACT('{"foo": "bar" foobar foo invalid ', '$.foo');
-JSON_EXTRACT('{"foo": "bar" foobar foo invalid ', '$.foo')
-NULL
-Warnings:
-Warning 4038 Syntax error in JSON text in argument 1 to function 'json_extract' at position 15
-SELECT JSON_OBJECT('foo', '`');
-JSON_OBJECT('foo', '`')
-{"foo": "`"}
-SELECT JSON_OBJECT("foo", "bar`bar");
-JSON_OBJECT("foo", "bar`bar")
-{"foo": "bar`bar"}
-SELECT JSON_SET('{}', '$.age', 87);
-JSON_SET('{}', '$.age', 87)
-{"age": 87}
-SELECT JSON_MERGE('[]', '{"c":"d"}');
-JSON_MERGE('[]', '{"c":"d"}')
-[{"c": "d"}]
-SET @str = "{\"\\u00e4\\u00f6\":\"yes\"}";
-SET @path = "$.\"\\u00e4\\u00f6\"";
-select @str, @path, JSON_EXTRACT(@str, @path);
-@str @path JSON_EXTRACT(@str, @path)
-{"\u00e4\u00f6":"yes"} $."\u00e4\u00f6" "yes"
-SET @str = "{\"\\u00e4\":\"yes\"}";
-SET @path = "$.\"\\u00e4\"";
-select @str, @path, JSON_EXTRACT(@str, @path);
-@str @path JSON_EXTRACT(@str, @path)
-{"\u00e4":"yes"} $."\u00e4" "yes"
-select json_array(5,json_query('[1,2]','$'));
-json_array(5,json_query('[1,2]','$'))
-[5, [1,2]]
-SELECT JSON_ARRAY('1. Ä› 2. Å¡ 3. Ä 4. Å™ 5. ž 6. ý 7. á 8. í 9. é 10. ů 11. ú') AS json_data;
-json_data
-["1. Ä› 2. Å¡ 3. Ä 4. Å™ 5. ž 6. ý 7. á 8. í 9. é 10. ů 11. ú"]
-SELECT JSON_OBJECT("user","Jožko MrkviÄká") as json_data;
-json_data
-{"user": "Jožko MrkviÄká"}
-select json_contains_path('{"foo":"bar"}', 'one', '$[]');
-json_contains_path('{"foo":"bar"}', 'one', '$[]')
-NULL
-Warnings:
-Warning 4042 Syntax error in JSON path in argument 3 to function 'json_contains_path' at position 3
-select JSON_VALID(0x36f0c8dccd83c5eac156da);
-JSON_VALID(0x36f0c8dccd83c5eac156da)
-0
-create table t1(a double not null);
-insert into t1 values (2),(1);
-select 1 from t1 where json_extract(a,'$','$[81]');
-1
-drop table t1;
-select json_extract('{"test":8.437e-5}','$.test');
-json_extract('{"test":8.437e-5}','$.test')
-8.437e-5
-#
-# End of 10.2 tests
-#
-#
-# MDEV-12854 Synchronize CREATE..SELECT data type and result set metadata data type for INT functions
-#
-SELECT
-JSON_VALID('{"id": 1, "name": "Monty"}') AS json_valid,
-JSON_EXISTS('{"key1":"xxxx", "key2":[1, 2, 3]}', "$.key2") AS json_exists,
-JSON_CONTAINS('{"A": 0, "B": {"C": 1}, "D": 2}', '2', '$.A') AS ison_contains,
-JSON_CONTAINS_PATH('{"A": 1, "B": [2], "C": [3, 4]}', 'one', '$.A', '$.D') AS json_contains_path;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def json_valid 3 1 1 Y 32896 0 63
-def json_exists 3 1 1 Y 32896 0 63
-def ison_contains 3 1 1 Y 32896 0 63
-def json_contains_path 3 1 1 Y 32896 0 63
-json_valid json_exists ison_contains json_contains_path
-1 1 0 1
-SELECT
-JSON_LENGTH('{"a": 1, "b": {"c": 30}}') AS json_length,
-JSON_DEPTH('[10, {"a": 20}]') AS json_depnth;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def json_length 3 10 1 Y 32896 0 63
-def json_depnth 3 10 1 N 32897 0 63
-json_length json_depnth
-2 3
-#
-# End of 10.3 tests
-#
diff --git a/mysql-test/r/func_like.result b/mysql-test/r/func_like.result
deleted file mode 100644
index 0ba8e41f164..00000000000
--- a/mysql-test/r/func_like.result
+++ /dev/null
@@ -1,291 +0,0 @@
-drop table if exists t1;
-create table t1 (a varchar(10), key(a));
-insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
-explain extended select * from t1 where a like 'abc%';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index a a 13 NULL 5 20.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` like 'abc%'
-explain extended select * from t1 where a like concat('abc','%');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index a a 13 NULL 5 20.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` like <cache>(concat('abc','%'))
-select * from t1 where a like "abc%";
-a
-abc
-abcd
-select * from t1 where a like concat("abc","%");
-a
-abc
-abcd
-select * from t1 where a like "ABC%";
-a
-abc
-abcd
-select * from t1 where a like "test%";
-a
-test
-select * from t1 where a like "te_t";
-a
-test
-select * from t1 where a like "%a%";
-a
-a
-abc
-abcd
-select * from t1 where a like "%abcd%";
-a
-abcd
-select * from t1 where a like "%abc\d%";
-a
-abcd
-drop table t1;
-create table t1 (a varchar(10), key(a));
-insert into t1 values ('a'), ('a\\b');
-select * from t1 where a like 'a\\%' escape '#';
-a
-a\b
-select * from t1 where a like 'a\\%' escape '#' and a like 'a\\\\b';
-a
-a\b
-prepare stmt1 from 'select * from t1 where a like \'a\\%\' escape ?';
-set @esc='#';
-execute stmt1 using @esc;
-a
-a\b
-deallocate prepare stmt1;
-drop table t1;
-create table t1 (a datetime);
-insert into t1 values ('2004-03-11 12:00:21');
-select * from t1 where a like '2004-03-11 12:00:21';
-a
-2004-03-11 12:00:21
-drop table t1;
-SET NAMES koi8r;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET koi8r);
-INSERT INTO t1 VALUES ('ÆÙ×Á'),('æÙ×Á'),('Æù×Á'),('ÆÙ÷Á'),('ÆÙ×á'),('æù÷á');
-INSERT INTO t1 VALUES ('ÆÙ×ÁÐÒÏÌÄÖ'),('æÙ×ÁÐÒÏÌÄÖ'),('Æù×ÁÐÒÏÌÄÖ'),('ÆÙ÷ÁÐÒÏÌÄÖ');
-INSERT INTO t1 VALUES ('ÆÙ×áÐÒÏÌÄÖ'),('ÆÙ×ÁðÒÏÌÄÖ'),('ÆÙ×ÁÐòÏÌÄÖ'),('ÆÙ×ÁÐÒïÌÄÖ');
-INSERT INTO t1 VALUES ('ÆÙ×ÁÐÒÏìÄÖ'),('ÆÙ×ÁÐÒÏÌäÖ'),('ÆÙ×ÁÐÒÏÌÄö'),('æù÷áðòïìäö');
-SELECT * FROM t1 WHERE a LIKE '%Æù×Á%';
-a
-ÆÙ×Á
-æÙ×Á
-Æù×Á
-ÆÙ÷Á
-ÆÙ×á
-æù÷á
-ÆÙ×ÁÐÒÏÌÄÖ
-æÙ×ÁÐÒÏÌÄÖ
-Æù×ÁÐÒÏÌÄÖ
-ÆÙ÷ÁÐÒÏÌÄÖ
-ÆÙ×áÐÒÏÌÄÖ
-ÆÙ×ÁðÒÏÌÄÖ
-ÆÙ×ÁÐòÏÌÄÖ
-ÆÙ×ÁÐÒïÌÄÖ
-ÆÙ×ÁÐÒÏìÄÖ
-ÆÙ×ÁÐÒÏÌäÖ
-ÆÙ×ÁÐÒÏÌÄö
-æù÷áðòïìäö
-SELECT * FROM t1 WHERE a LIKE '%Æù×%';
-a
-ÆÙ×Á
-æÙ×Á
-Æù×Á
-ÆÙ÷Á
-ÆÙ×á
-æù÷á
-ÆÙ×ÁÐÒÏÌÄÖ
-æÙ×ÁÐÒÏÌÄÖ
-Æù×ÁÐÒÏÌÄÖ
-ÆÙ÷ÁÐÒÏÌÄÖ
-ÆÙ×áÐÒÏÌÄÖ
-ÆÙ×ÁðÒÏÌÄÖ
-ÆÙ×ÁÐòÏÌÄÖ
-ÆÙ×ÁÐÒïÌÄÖ
-ÆÙ×ÁÐÒÏìÄÖ
-ÆÙ×ÁÐÒÏÌäÖ
-ÆÙ×ÁÐÒÏÌÄö
-æù÷áðòïìäö
-SELECT * FROM t1 WHERE a LIKE 'Æù×Á%';
-a
-ÆÙ×Á
-æÙ×Á
-Æù×Á
-ÆÙ÷Á
-ÆÙ×á
-æù÷á
-ÆÙ×ÁÐÒÏÌÄÖ
-æÙ×ÁÐÒÏÌÄÖ
-Æù×ÁÐÒÏÌÄÖ
-ÆÙ÷ÁÐÒÏÌÄÖ
-ÆÙ×áÐÒÏÌÄÖ
-ÆÙ×ÁðÒÏÌÄÖ
-ÆÙ×ÁÐòÏÌÄÖ
-ÆÙ×ÁÐÒïÌÄÖ
-ÆÙ×ÁÐÒÏìÄÖ
-ÆÙ×ÁÐÒÏÌäÖ
-ÆÙ×ÁÐÒÏÌÄö
-æù÷áðòïìäö
-DROP TABLE t1;
-SET NAMES cp1250;
-CREATE TABLE t1 (a varchar(250) NOT NULL) DEFAULT CHARACTER SET=cp1250;
-INSERT INTO t1 VALUES
-('Techni Tapes Sp. z o.o.'),
-('Pojazdy Szynowe PESA Bydgoszcz SA Holding'),
-('AKAPESTER 1 P.P.H.U.'),
-('Pojazdy Szynowe PESA Bydgoszcz S A Holding'),
-('PPUH PESKA-I Maria Struniarska');
-select * from t1 where a like '%PESA%';
-a
-Pojazdy Szynowe PESA Bydgoszcz SA Holding
-Pojazdy Szynowe PESA Bydgoszcz S A Holding
-select * from t1 where a like '%PESA %';
-a
-Pojazdy Szynowe PESA Bydgoszcz SA Holding
-Pojazdy Szynowe PESA Bydgoszcz S A Holding
-select * from t1 where a like '%PES%';
-a
-Techni Tapes Sp. z o.o.
-Pojazdy Szynowe PESA Bydgoszcz SA Holding
-AKAPESTER 1 P.P.H.U.
-Pojazdy Szynowe PESA Bydgoszcz S A Holding
-PPUH PESKA-I Maria Struniarska
-select * from t1 where a like '%PESKA%';
-a
-PPUH PESKA-I Maria Struniarska
-select * from t1 where a like '%ESKA%';
-a
-PPUH PESKA-I Maria Struniarska
-DROP TABLE t1;
-select _cp866'aaaaaaaaa' like _cp866'%aaaa%' collate cp866_bin;
-_cp866'aaaaaaaaa' like _cp866'%aaaa%' collate cp866_bin
-1
-set names koi8r;
-select 'andre%' like 'andreÊ%' escape 'Ê';
-'andre%' like 'andreÊ%' escape 'Ê'
-1
-select _cp1251'andre%' like convert('andreÊ%' using cp1251) escape 'Ê';
-_cp1251'andre%' like convert('andreÊ%' using cp1251) escape 'Ê'
-1
-End of 4.1 tests
-#
-# Bug #54575: crash when joining tables with unique set column
-#
-CREATE TABLE t1(a SET('a') NOT NULL, UNIQUE KEY(a));
-CREATE TABLE t2(b INT PRIMARY KEY);
-INSERT IGNORE INTO t1 VALUES ();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-INSERT INTO t2 VALUES (1), (2), (3);
-SELECT 1 FROM t2 JOIN t1 ON 1 LIKE a GROUP BY a;
-1
-DROP TABLE t1, t2;
-#
-# Bug#59149 valgrind warnings with "like .. escape .." function
-#
-SELECT '' LIKE '1' ESCAPE COUNT(1);
-ERROR HY000: Incorrect arguments to ESCAPE
-End of 5.1 tests
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-5445 Server crashes in Item_func_like::fix_fields on LIKE ExtractValue(..)
-#
-SELECT 'a' LIKE REPEAT('',0);
-'a' LIKE REPEAT('',0)
-0
-SELECT 'a' LIKE EXTRACTVALUE('bar','qux');
-'a' LIKE EXTRACTVALUE('bar','qux')
-0
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8257 Erroneous "Impossible where" when mixing decimal comparison and LIKE
-#
-CREATE TABLE t1 (a DECIMAL(8,2));
-INSERT INTO t1 VALUES (10),(20);
-SELECT * FROM t1 WHERE a=10.0;
-a
-10.00
-SELECT * FROM t1 WHERE a LIKE 10.00;
-a
-10.00
-SELECT * FROM t1 WHERE a=10.0 AND a LIKE 10.00;
-a
-10.00
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=10.0 AND a LIKE 10.00;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 10.0 and `test`.`t1`.`a` like 10.00
-DROP TABLE t1;
-#
-# MDEV-8599 "WHERE varchar_field LIKE temporal_const" does not use range optimizer
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('00:00:00');
-INSERT INTO t1 VALUES ('00:00:01');
-INSERT INTO t1 VALUES ('00:00:02');
-INSERT INTO t1 VALUES ('00:00:03');
-INSERT INTO t1 VALUES ('00:00:04');
-INSERT INTO t1 VALUES ('00:00:05');
-INSERT INTO t1 VALUES ('00:00:06');
-INSERT INTO t1 VALUES ('00:00:07');
-EXPLAIN SELECT * FROM t1 WHERE a LIKE '00:00:00';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 13 NULL 1 Using where; Using index
-EXPLAIN SELECT * FROM t1 WHERE a LIKE TIME'00:00:00';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 13 NULL 1 Using where; Using index
-SELECT * FROM t1 WHERE a LIKE '00:00:00';
-a
-00:00:00
-SELECT * FROM t1 WHERE a LIKE TIME'00:00:00';
-a
-00:00:00
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-create view v1 as select 'foo!' like 'foo!!', 'foo!' like 'foo!!' escape '!';
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 'foo!' like 'foo!!' AS `'foo!' like 'foo!!'`,'foo!' like 'foo!!' escape '!' AS `'foo!' like 'foo!!' escape '!'` koi8r koi8r_general_ci
-select * from v1;
-'foo!' like 'foo!!' 'foo!' like 'foo!!' escape '!'
-0 1
-drop view v1;
-create table t1 (a varchar(100),
-b int default (a like '%f\\_'),
-c int default (a like '%f\\_' escape ''),
-d int default (a like '%f\\_' escape '\\'));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(100) DEFAULT NULL,
- `b` int(11) DEFAULT (`a` like '%f\\_'),
- `c` int(11) DEFAULT (`a` like '%f\\_' escape ''),
- `d` int(11) DEFAULT (`a` like '%f\\_' escape '\\')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert t1 (a) values ('1 f_'), ('1 f\\_');
-set sql_mode=no_backslash_escapes;
-insert t1 (a) values ('2 f_'), ('2 f\_');
-flush tables;
-insert t1 (a) values ('3 f_'), ('3 f\_');
-set sql_mode=default;
-select * from t1;
-a b c d
-1 f_ 1 0 1
-1 f\_ 0 1 0
-2 f_ 1 0 1
-2 f\_ 0 1 0
-3 f_ 1 0 1
-3 f\_ 0 1 0
-drop table t1;
diff --git a/mysql-test/r/func_math.result b/mysql-test/r/func_math.result
deleted file mode 100644
index 7f2ed1c2ff0..00000000000
--- a/mysql-test/r/func_math.result
+++ /dev/null
@@ -1,902 +0,0 @@
-drop table if exists t1;
-select floor(5.5),floor(-5.5);
-floor(5.5) floor(-5.5)
-5 -6
-explain extended select floor(5.5),floor(-5.5);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select floor(5.5) AS `floor(5.5)`,floor(-5.5) AS `floor(-5.5)`
-select ceiling(5.5),ceiling(-5.5);
-ceiling(5.5) ceiling(-5.5)
-6 -5
-explain extended select ceiling(5.5),ceiling(-5.5);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select ceiling(5.5) AS `ceiling(5.5)`,ceiling(-5.5) AS `ceiling(-5.5)`
-select truncate(52.64,1),truncate(52.64,2),truncate(52.64,-1),truncate(52.64,-2), truncate(-52.64,1),truncate(-52.64,-1);
-truncate(52.64,1) truncate(52.64,2) truncate(52.64,-1) truncate(52.64,-2) truncate(-52.64,1) truncate(-52.64,-1)
-52.6 52.64 50 0 -52.6 -50
-explain extended select truncate(52.64,1),truncate(52.64,2),truncate(52.64,-1),truncate(52.64,-2), truncate(-52.64,1),truncate(-52.64,-1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select truncate(52.64,1) AS `truncate(52.64,1)`,truncate(52.64,2) AS `truncate(52.64,2)`,truncate(52.64,-1) AS `truncate(52.64,-1)`,truncate(52.64,-2) AS `truncate(52.64,-2)`,truncate(-52.64,1) AS `truncate(-52.64,1)`,truncate(-52.64,-1) AS `truncate(-52.64,-1)`
-select round(5.5),round(-5.5);
-round(5.5) round(-5.5)
-6 -6
-explain extended select round(5.5),round(-5.5);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select round(5.5,0) AS `round(5.5)`,round(-5.5,0) AS `round(-5.5)`
-select round(5.64,1),round(5.64,2),round(5.64,-1),round(5.64,-2);
-round(5.64,1) round(5.64,2) round(5.64,-1) round(5.64,-2)
-5.6 5.64 10 0
-select abs(-10), sign(-5), sign(5), sign(0);
-abs(-10) sign(-5) sign(5) sign(0)
-10 -1 1 0
-explain extended select abs(-10), sign(-5), sign(5), sign(0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select abs(-10) AS `abs(-10)`,sign(-5) AS `sign(-5)`,sign(5) AS `sign(5)`,sign(0) AS `sign(0)`
-select log(exp(10)),exp(log(sqrt(10))*2),log(-1),log(NULL),log(1,1),log(3,9),log(-1,2),log(NULL,2);
-log(exp(10)) exp(log(sqrt(10))*2) log(-1) log(NULL) log(1,1) log(3,9) log(-1,2) log(NULL,2)
-10 10.000000000000002 NULL NULL NULL 2 NULL NULL
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-explain extended select log(exp(10)),exp(log(sqrt(10))*2),log(-1),log(NULL),log(1,1),log(3,9),log(-1,2),log(NULL,2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select log(exp(10)) AS `log(exp(10))`,exp(log(sqrt(10)) * 2) AS `exp(log(sqrt(10))*2)`,log(-1) AS `log(-1)`,log(NULL) AS `log(NULL)`,log(1,1) AS `log(1,1)`,log(3,9) AS `log(3,9)`,log(-1,2) AS `log(-1,2)`,log(NULL,2) AS `log(NULL,2)`
-select ln(exp(10)),exp(ln(sqrt(10))*2),ln(-1),ln(0),ln(NULL);
-ln(exp(10)) exp(ln(sqrt(10))*2) ln(-1) ln(0) ln(NULL)
-10 10.000000000000002 NULL NULL NULL
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-explain extended select ln(exp(10)),exp(ln(sqrt(10))*2),ln(-1),ln(0),ln(NULL);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select ln(exp(10)) AS `ln(exp(10))`,exp(ln(sqrt(10)) * 2) AS `exp(ln(sqrt(10))*2)`,ln(-1) AS `ln(-1)`,ln(0) AS `ln(0)`,ln(NULL) AS `ln(NULL)`
-select log2(8),log2(15),log2(-2),log2(0),log2(NULL);
-log2(8) log2(15) log2(-2) log2(0) log2(NULL)
-3 3.9068905956085187 NULL NULL NULL
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-explain extended select log2(8),log2(15),log2(-2),log2(0),log2(NULL);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select log2(8) AS `log2(8)`,log2(15) AS `log2(15)`,log2(-2) AS `log2(-2)`,log2(0) AS `log2(0)`,log2(NULL) AS `log2(NULL)`
-select log10(100),log10(18),log10(-4),log10(0),log10(NULL);
-log10(100) log10(18) log10(-4) log10(0) log10(NULL)
-2 1.255272505103306 NULL NULL NULL
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-explain extended select log10(100),log10(18),log10(-4),log10(0),log10(NULL);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select log10(100) AS `log10(100)`,log10(18) AS `log10(18)`,log10(-4) AS `log10(-4)`,log10(0) AS `log10(0)`,log10(NULL) AS `log10(NULL)`
-select pow(10,log10(10)),power(2,4);
-pow(10,log10(10)) power(2,4)
-10 16
-explain extended select pow(10,log10(10)),power(2,4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select pow(10,log10(10)) AS `pow(10,log10(10))`,pow(2,4) AS `power(2,4)`
-set @@rand_seed1=10000000,@@rand_seed2=1000000;
-select rand(999999),rand();
-rand(999999) rand()
-0.014231365187309091 0.028870999839968048
-explain extended select rand(999999),rand();
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select rand(999999) AS `rand(999999)`,rand() AS `rand()`
-select pi(),format(sin(pi()/2),6),format(cos(pi()/2),6),format(abs(tan(pi())),6),format(cot(1),6),format(asin(1),6),format(acos(0),6),format(atan(1),6);
-pi() format(sin(pi()/2),6) format(cos(pi()/2),6) format(abs(tan(pi())),6) format(cot(1),6) format(asin(1),6) format(acos(0),6) format(atan(1),6)
-3.141593 1.000000 0.000000 0.000000 0.642093 1.570796 1.570796 0.785398
-explain extended select pi(),format(sin(pi()/2),6),format(cos(pi()/2),6),format(abs(tan(pi())),6),format(cot(1),6),format(asin(1),6),format(acos(0),6),format(atan(1),6);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select pi() AS `pi()`,format(sin(pi() / 2),6) AS `format(sin(pi()/2),6)`,format(cos(pi() / 2),6) AS `format(cos(pi()/2),6)`,format(abs(tan(pi())),6) AS `format(abs(tan(pi())),6)`,format(cot(1),6) AS `format(cot(1),6)`,format(asin(1),6) AS `format(asin(1),6)`,format(acos(0),6) AS `format(acos(0),6)`,format(atan(1),6) AS `format(atan(1),6)`
-select degrees(pi()),radians(360);
-degrees(pi()) radians(360)
-180 6.283185307179586
-select format(atan(-2, 2), 6);
-format(atan(-2, 2), 6)
--0.785398
-select format(atan(pi(), 0), 6);
-format(atan(pi(), 0), 6)
-1.570796
-select format(atan2(-2, 2), 6);
-format(atan2(-2, 2), 6)
--0.785398
-select format(atan2(pi(), 0), 6);
-format(atan2(pi(), 0), 6)
-1.570796
-SELECT ACOS(1.0);
-ACOS(1.0)
-0
-SELECT ASIN(1.0);
-ASIN(1.0)
-1.5707963267948966
-SELECT ACOS(0.2*5.0);
-ACOS(0.2*5.0)
-0
-SELECT ACOS(0.5*2.0);
-ACOS(0.5*2.0)
-0
-SELECT ASIN(0.8+0.2);
-ASIN(0.8+0.2)
-1.5707963267948966
-SELECT ASIN(1.2-0.2);
-ASIN(1.2-0.2)
-1.5707963267948966
-select format(4.55, 1), format(4.551, 1);
-format(4.55, 1) format(4.551, 1)
-4.6 4.6
-explain extended select degrees(pi()),radians(360);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select degrees(pi()) AS `degrees(pi())`,radians(360) AS `radians(360)`
-select rand(rand);
-ERROR 42S22: Unknown column 'rand' in 'field list'
-create table t1 (col1 int, col2 decimal(60,30));
-insert into t1 values(1,1234567890.12345);
-select format(col2,7) from t1;
-format(col2,7)
-1,234,567,890.1234500
-select format(col2,8) from t1;
-format(col2,8)
-1,234,567,890.12345000
-insert into t1 values(7,1234567890123456.12345);
-select format(col2,6) from t1 where col1=7;
-format(col2,6)
-1,234,567,890,123,456.123450
-drop table t1;
-select ceil(0.09);
-ceil(0.09)
-1
-select ceil(0.000000000000000009);
-ceil(0.000000000000000009)
-1
-create table t1 select round(1, 6);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `round(1, 6)` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-round(1, 6)
-1
-drop table t1;
-select abs(-2) * -2;
-abs(-2) * -2
--4
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(1),(1),(2);
-SELECT CAST(RAND(2) * 1000 AS UNSIGNED), CAST(RAND(a) * 1000 AS UNSIGNED)
-FROM t1;
-CAST(RAND(2) * 1000 AS UNSIGNED) CAST(RAND(a) * 1000 AS UNSIGNED)
-656 405
-122 405
-645 405
-858 656
-SELECT CAST(RAND(2) * 1000 AS UNSIGNED), CAST(RAND(a) * 1000 AS UNSIGNED)
-FROM t1 WHERE a = 1;
-CAST(RAND(2) * 1000 AS UNSIGNED) CAST(RAND(a) * 1000 AS UNSIGNED)
-656 405
-122 405
-645 405
-INSERT INTO t1 VALUES (3);
-SELECT CAST(RAND(2) * 1000 AS UNSIGNED), CAST(RAND(a) * 1000 AS UNSIGNED)
-FROM t1;
-CAST(RAND(2) * 1000 AS UNSIGNED) CAST(RAND(a) * 1000 AS UNSIGNED)
-656 405
-122 405
-645 405
-858 656
-354 906
-SELECT CAST(RAND(2) * 1000 AS UNSIGNED), CAST(RAND(a) * 1000 AS UNSIGNED)
-FROM t1 WHERE a = 1;
-CAST(RAND(2) * 1000 AS UNSIGNED) CAST(RAND(a) * 1000 AS UNSIGNED)
-656 405
-122 405
-645 405
-PREPARE stmt FROM
-"SELECT CAST(RAND(2) * 1000 AS UNSIGNED), CAST(RAND(?) * 1000 AS UNSIGNED)
- FROM t1 WHERE a = 1";
-set @var=2;
-EXECUTE stmt USING @var;
-CAST(RAND(2) * 1000 AS UNSIGNED) CAST(RAND(?) * 1000 AS UNSIGNED)
-656 656
-122 122
-645 645
-DROP TABLE t1;
-set sql_mode="";
-create table t1 (a varchar(90), ts datetime not null, index (a)) engine=innodb default charset=utf8;
-set sql_mode=default;
-insert into t1 values ('http://www.foo.com/', now());
-select a from t1 where a='http://www.foo.com/' order by abs(timediff(ts, 0));
-a
-http://www.foo.com/
-drop table t1;
-set sql_mode='traditional';
-select ln(-1);
-ln(-1)
-NULL
-Warnings:
-Warning 1365 Division by 0
-select log10(-1);
-log10(-1)
-NULL
-Warnings:
-Warning 1365 Division by 0
-select log2(-1);
-log2(-1)
-NULL
-Warnings:
-Warning 1365 Division by 0
-select log(2,-1);
-log(2,-1)
-NULL
-Warnings:
-Warning 1365 Division by 0
-select log(-2,1);
-log(-2,1)
-NULL
-Warnings:
-Warning 1365 Division by 0
-set sql_mode='';
-select round(111,-10);
-round(111,-10)
-0
-select round(-5000111000111000155,-1);
-round(-5000111000111000155,-1)
--5000111000111000160
-select round(15000111000111000155,-1);
-round(15000111000111000155,-1)
-15000111000111000160
-select truncate(-5000111000111000155,-1);
-truncate(-5000111000111000155,-1)
--5000111000111000150
-select truncate(15000111000111000155,-1);
-truncate(15000111000111000155,-1)
-15000111000111000150
-set names utf8;
-create table t1
-(f1 varchar(32) not null,
-f2 smallint(5) unsigned not null,
-f3 int(10) unsigned not null default '0')
-engine=myisam default charset=utf8;
-insert into t1 values ('zombie',0,0),('gold',1,10000),('silver',2,10000);
-create table t2
-(f1 int(10) unsigned not null,
-f2 int(10) unsigned not null,
-f3 smallint(5) unsigned not null)
-engine=myisam default charset=utf8;
-insert into t2 values (16777216,16787215,1),(33554432,33564431,2);
-select format(t2.f2-t2.f1+1,0) from t1,t2
-where t1.f2 = t2.f3 order by t1.f1;
-format(t2.f2-t2.f1+1,0)
-10,000
-10,000
-drop table t1, t2;
-set names default;
-select cast(-2 as unsigned), 18446744073709551614, -2;
-cast(-2 as unsigned) 18446744073709551614 -2
-18446744073709551614 18446744073709551614 -2
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select abs(cast(-2 as unsigned)), abs(18446744073709551614), abs(-2);
-abs(cast(-2 as unsigned)) abs(18446744073709551614) abs(-2)
-18446744073709551614 18446744073709551614 2
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select ceiling(cast(-2 as unsigned)), ceiling(18446744073709551614), ceiling(-2);
-ceiling(cast(-2 as unsigned)) ceiling(18446744073709551614) ceiling(-2)
-18446744073709551614 18446744073709551614 -2
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select floor(cast(-2 as unsigned)), floor(18446744073709551614), floor(-2);
-floor(cast(-2 as unsigned)) floor(18446744073709551614) floor(-2)
-18446744073709551614 18446744073709551614 -2
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select format(cast(-2 as unsigned), 2), format(18446744073709551614, 2), format(-2, 2);
-format(cast(-2 as unsigned), 2) format(18446744073709551614, 2) format(-2, 2)
-18,446,744,073,709,551,614.00 18,446,744,073,709,551,614.00 -2.00
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select sqrt(cast(-2 as unsigned)), sqrt(18446744073709551614), sqrt(-2);
-sqrt(cast(-2 as unsigned)) sqrt(18446744073709551614) sqrt(-2)
-4294967296 4294967296 NULL
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select round(cast(-2 as unsigned), 1), round(18446744073709551614, 1), round(-2, 1);
-round(cast(-2 as unsigned), 1) round(18446744073709551614, 1) round(-2, 1)
-18446744073709551614 18446744073709551614 -2
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select round(4, cast(-2 as unsigned)), round(4, 18446744073709551614), round(4, -2);
-round(4, cast(-2 as unsigned)) round(4, 18446744073709551614) round(4, -2)
-4 4 0
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select truncate(cast(-2 as unsigned), 1), truncate(18446744073709551614, 1), truncate(-2, 1);
-truncate(cast(-2 as unsigned), 1) truncate(18446744073709551614, 1) truncate(-2, 1)
-18446744073709551614 18446744073709551614 -2
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select truncate(4, cast(-2 as unsigned)), truncate(4, 18446744073709551614), truncate(4, -2);
-truncate(4, cast(-2 as unsigned)) truncate(4, 18446744073709551614) truncate(4, -2)
-4 4 0
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select round(10000000000000000000, -19), truncate(10000000000000000000, -19);
-round(10000000000000000000, -19) truncate(10000000000000000000, -19)
-10000000000000000000 10000000000000000000
-select round(1e0, -309), truncate(1e0, -309);
-round(1e0, -309) truncate(1e0, -309)
-0 0
-select round(1e1,308), truncate(1e1, 308);
-round(1e1,308) truncate(1e1, 308)
-10 10
-select round(1e1, 2147483648), truncate(1e1, 2147483648);
-round(1e1, 2147483648) truncate(1e1, 2147483648)
-10 10
-select round(1.1e1, 4294967295), truncate(1.1e1, 4294967295);
-round(1.1e1, 4294967295) truncate(1.1e1, 4294967295)
-11 11
-select round(1.12e1, 4294967296), truncate(1.12e1, 4294967296);
-round(1.12e1, 4294967296) truncate(1.12e1, 4294967296)
-11.2 11.2
-select round(1.5, 2147483640), truncate(1.5, 2147483640);
-round(1.5, 2147483640) truncate(1.5, 2147483640)
-1.50000000000000000000000000000000000000 1.50000000000000000000000000000000000000
-select round(1.5, -2147483649), round(1.5, 2147483648);
-round(1.5, -2147483649) round(1.5, 2147483648)
-0 1.50000000000000000000000000000000000000
-select truncate(1.5, -2147483649), truncate(1.5, 2147483648);
-truncate(1.5, -2147483649) truncate(1.5, 2147483648)
-0 1.50000000000000000000000000000000000000
-select round(1.5, -4294967296), round(1.5, 4294967296);
-round(1.5, -4294967296) round(1.5, 4294967296)
-0 1.50000000000000000000000000000000000000
-select truncate(1.5, -4294967296), truncate(1.5, 4294967296);
-truncate(1.5, -4294967296) truncate(1.5, 4294967296)
-0 1.50000000000000000000000000000000000000
-select round(1.5, -9223372036854775808), round(1.5, 9223372036854775808);
-round(1.5, -9223372036854775808) round(1.5, 9223372036854775808)
-0 1.50000000000000000000000000000000000000
-select truncate(1.5, -9223372036854775808), truncate(1.5, 9223372036854775808);
-truncate(1.5, -9223372036854775808) truncate(1.5, 9223372036854775808)
-0 1.50000000000000000000000000000000000000
-select round(1.5, 18446744073709551615), truncate(1.5, 18446744073709551615);
-round(1.5, 18446744073709551615) truncate(1.5, 18446744073709551615)
-1.50000000000000000000000000000000000000 1.50000000000000000000000000000000000000
-select round(18446744073709551614, -1), truncate(18446744073709551614, -1);
-round(18446744073709551614, -1) truncate(18446744073709551614, -1)
-18446744073709551610 18446744073709551610
-select round(4, -4294967200), truncate(4, -4294967200);
-round(4, -4294967200) truncate(4, -4294967200)
-0 0
-select mod(cast(-2 as unsigned), 3), mod(18446744073709551614, 3), mod(-2, 3);
-mod(cast(-2 as unsigned), 3) mod(18446744073709551614, 3) mod(-2, 3)
-2 2 -2
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select mod(5, cast(-2 as unsigned)), mod(5, 18446744073709551614), mod(5, -2);
-mod(5, cast(-2 as unsigned)) mod(5, 18446744073709551614) mod(5, -2)
-5 5 1
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-select pow(cast(-2 as unsigned), 5), pow(18446744073709551614, 5), pow(-2, 5);
-pow(cast(-2 as unsigned), 5) pow(18446744073709551614, 5) pow(-2, 5)
-2.13598703592091e96 2.13598703592091e96 -32
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-CREATE TABLE t1 (a timestamp, b varchar(20), c bit(1));
-INSERT INTO t1 VALUES('1998-09-23', 'str1', 1), ('2003-03-25', 'str2', 0);
-SELECT a DIV 900 y FROM t1 GROUP BY y;
-y
-22201025555
-22255916666
-SELECT DISTINCT a DIV 900 y FROM t1;
-y
-22201025555
-22255916666
-SELECT b DIV 900 y FROM t1 GROUP BY y;
-y
-0
-Warnings:
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'str1'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'str2'
-SELECT c DIV 900 y FROM t1 GROUP BY y;
-y
-0
-DROP TABLE t1;
-CREATE TABLE t1(a LONGBLOB);
-INSERT INTO t1 VALUES('1'),('2'),('3');
-SELECT DISTINCT (a DIV 254576881) FROM t1;
-(a DIV 254576881)
-0
-SELECT (a DIV 254576881) FROM t1 UNION ALL
-SELECT (a DIV 254576881) FROM t1;
-(a DIV 254576881)
-0
-0
-0
-0
-0
-0
-DROP TABLE t1;
-CREATE TABLE t1(a SET('a','b','c'));
-INSERT INTO t1 VALUES ('a');
-SELECT a DIV 2 FROM t1 UNION SELECT a DIV 2 FROM t1;
-a DIV 2
-0
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES (-1.1), (1.1),
-(-1.5), (1.5),
-(-1.9), (1.9),
-(-2.1), (2.1),
-(-2.5), (2.5),
-(-2.9), (2.9),
-# Check numbers with absolute values > 2^53 - 1
-# (see comments for MAX_EXACT_INTEGER)
-(-1e16 - 0.5), (1e16 + 0.5),
-(-1e16 - 1.5), (1e16 + 1.5);
-SELECT a, ROUND(a) FROM t1;
-a ROUND(a)
--1.1 -1
-1.1 1
--1.5 -2
-1.5 2
--1.9 -2
-1.9 2
--2.1 -2
-2.1 2
--2.5 -2
-2.5 2
--2.9 -3
-2.9 3
--1e16 -10000000000000000
-1e16 10000000000000000
--1.0000000000000002e16 -10000000000000002
-1.0000000000000002e16 10000000000000002
-DROP TABLE t1;
-CREATE TABLE t1(f1 LONGTEXT) engine=myisam;
-INSERT INTO t1 VALUES ('a');
-SELECT 1 FROM (SELECT ROUND(f1) AS a FROM t1) AS s WHERE a LIKE 'a';
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT 1 FROM (SELECT ROUND(f1, f1) AS a FROM t1) AS s WHERE a LIKE 'a';
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect INTEGER value: 'a'
-DROP TABLE t1;
-End of 5.0 tests
-SELECT 1e308 + 1e308;
-ERROR 22003: DOUBLE value is out of range in '1e308 + 1e308'
-SELECT -1e308 - 1e308;
-ERROR 22003: DOUBLE value is out of range in '-1e308 - 1e308'
-SELECT 1e300 * 1e300;
-ERROR 22003: DOUBLE value is out of range in '1e300 * 1e300'
-SELECT 1e300 / 1e-300;
-ERROR 22003: DOUBLE value is out of range in '1e300 / 1e-300'
-SELECT EXP(750);
-ERROR 22003: DOUBLE value is out of range in 'exp(750)'
-SELECT POW(10, 309);
-ERROR 22003: DOUBLE value is out of range in 'pow(10,309)'
-#
-# Bug #44768: SIGFPE crash when selecting rand from a view
-# containing null
-#
-CREATE OR REPLACE VIEW v1 AS SELECT NULL AS a;
-SELECT RAND(a) FROM v1;
-RAND(a)
-0.15522042769493574
-DROP VIEW v1;
-SELECT RAND(a) FROM (SELECT NULL AS a) b;
-RAND(a)
-0.15522042769493574
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (NULL);
-SELECT RAND(i) FROM t1;
-RAND(i)
-0.15522042769493574
-DROP TABLE t1;
-#
-# Bug#57477 SIGFPE when dividing a huge number a negative number
-#
-SELECT -9999999999999999991 DIV -1;
-ERROR 22003: BIGINT value is out of range in '-9999999999999999991 DIV -1'
-SELECT -9223372036854775808 DIV -1;
-ERROR 22003: BIGINT value is out of range in '-9223372036854775808 DIV -1'
-SELECT -9223372036854775808 MOD -1;
--9223372036854775808 MOD -1
-0
-SELECT -9223372036854775808999 MOD -1;
--9223372036854775808999 MOD -1
-0
-select 123456789012345678901234567890.123456789012345678901234567890 div 1 as x;
-ERROR 22003: BIGINT value is out of range in '123456789012345678901234567890.123456789012345678901234567890 DIV 1'
-select "123456789012345678901234567890.123456789012345678901234567890" div 1 as x;
-ERROR 22003: BIGINT value is out of range in ''123456789012345678901234567890.123456789012345678901234567890' DIV 1'
-SHOW WARNINGS;
-Level Code Message
-Warning 1916 Got overflow when converting '123456789012345678901234567890' to INT. Value truncated
-Error 1690 BIGINT value is out of range in ''123456789012345678901234567890.123456789012345678901234567890' DIV 1'
-#
-# Bug#57810 case/when/then : Assertion failed: length || !scale
-#
-SELECT CASE(('')) WHEN (CONVERT(1, CHAR(1))) THEN (('' / 1)) END;
-CASE(('')) WHEN (CONVERT(1, CHAR(1))) THEN (('' / 1)) END
-NULL
-CREATE TABLE t1 SELECT CAST((CASE(('')) WHEN (CONVERT(1, CHAR(1))) THEN (('' / 1)) END) AS CHAR) as C;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `C` varchar(23) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# Bug#11764994 57900: CREATE TABLE .. SELECT ASSERTS SCALE >= 0 && PRECISION > 0 && SCALE <= PR
-#
-CREATE TABLE t1 SELECT CEIL(LINESTRINGFROMWKB(1) DIV NULL);
-ERROR HY000: Illegal parameter data type int for operation 'st_geometryfromwkb'
-CREATE TABLE t1 SELECT FLOOR(LINESTRINGFROMWKB(1) DIV NULL);
-ERROR HY000: Illegal parameter data type int for operation 'st_geometryfromwkb'
-#
-# Bug#11765923 58937: MANY VALGRIND ERRORS AFTER GROUPING BY RESULT OF DECIMAL COLUMN FUNCTION
-#
-CREATE TABLE t1(f1 DECIMAL(22,1));
-INSERT INTO t1 VALUES (0),(1);
-SELECT ROUND(f1, f1) FROM t1;
-ROUND(f1, f1)
-0.0
-1.0
-SELECT ROUND(f1, f1) FROM t1 GROUP BY 1;
-ROUND(f1, f1)
-0.0
-1.0
-DROP TABLE t1;
-#
-# Bug#11764671 57533: UNINITIALISED VALUES IN COPY_AND_CONVERT (SQL_STRING.CC) WITH CERTAIN CHA
-#
-SELECT ROUND(LEAST(15, -4939092, 0.2704), STDDEV('a'));
-ROUND(LEAST(15, -4939092, 0.2704), STDDEV('a'))
--4939092.0000
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-#
-# Bug#12392636 ASSERTION FAILED: SCALE >= 0 && PRECISION > 0 && SCALE <= PRECISION
-#
-SELECT SUM(DISTINCT (TRUNCATE((.1), NULL)));
-SUM(DISTINCT (TRUNCATE((.1), NULL)))
-NULL
-End of 5.1 tests
-#
-# Bug #8433: Overflow must be an error
-#
-SELECT 1e308 + 1e308;
-ERROR 22003: DOUBLE value is out of range in '1e308 + 1e308'
-SELECT -1e308 - 1e308;
-ERROR 22003: DOUBLE value is out of range in '-1e308 - 1e308'
-SELECT 1e300 * 1e300;
-ERROR 22003: DOUBLE value is out of range in '1e300 * 1e300'
-SELECT 1e300 / 1e-300;
-ERROR 22003: DOUBLE value is out of range in '1e300 / 1e-300'
-SELECT EXP(750);
-ERROR 22003: DOUBLE value is out of range in 'exp(750)'
-SELECT POW(10, 309);
-ERROR 22003: DOUBLE value is out of range in 'pow(10,309)'
-SELECT COT(0);
-ERROR 22003: DOUBLE value is out of range in 'cot(0)'
-SELECT DEGREES(1e307);
-ERROR 22003: DOUBLE value is out of range in 'degrees(1e307)'
-SELECT 9223372036854775808 + 9223372036854775808;
-ERROR 22003: BIGINT UNSIGNED value is out of range in '9223372036854775808 + 9223372036854775808'
-SELECT 18446744073709551615 + 1;
-ERROR 22003: BIGINT UNSIGNED value is out of range in '18446744073709551615 + 1'
-SELECT 1 + 18446744073709551615;
-ERROR 22003: BIGINT UNSIGNED value is out of range in '1 + 18446744073709551615'
-SELECT -2 + CAST(1 AS UNSIGNED);
-ERROR 22003: BIGINT UNSIGNED value is out of range in '-2 + cast(1 as unsigned)'
-SELECT CAST(1 AS UNSIGNED) + -2;
-ERROR 22003: BIGINT UNSIGNED value is out of range in 'cast(1 as unsigned) + -2'
-SELECT -9223372036854775808 + -9223372036854775808;
-ERROR 22003: BIGINT value is out of range in '-9223372036854775808 + -9223372036854775808'
-SELECT 9223372036854775807 + 9223372036854775807;
-ERROR 22003: BIGINT value is out of range in '9223372036854775807 + 9223372036854775807'
-SELECT CAST(0 AS UNSIGNED) - 9223372036854775809;
-ERROR 22003: BIGINT UNSIGNED value is out of range in 'cast(0 as unsigned) - 9223372036854775809'
-SELECT 9223372036854775808 - 9223372036854775809;
-ERROR 22003: BIGINT UNSIGNED value is out of range in '9223372036854775808 - 9223372036854775809'
-SELECT CAST(1 AS UNSIGNED) - 2;
-ERROR 22003: BIGINT UNSIGNED value is out of range in 'cast(1 as unsigned) - 2'
-SELECT 18446744073709551615 - (-1);
-ERROR 22003: BIGINT UNSIGNED value is out of range in '18446744073709551615 - -1'
-SELECT -1 - 9223372036854775808;
-ERROR 22003: BIGINT UNSIGNED value is out of range in '-1 - 9223372036854775808'
-SELECT -1 - CAST(1 AS UNSIGNED);
-ERROR 22003: BIGINT UNSIGNED value is out of range in '-1 - cast(1 as unsigned)'
-SELECT -9223372036854775808 - 1;
-ERROR 22003: BIGINT value is out of range in '-9223372036854775808 - 1'
-SELECT 9223372036854775807 - -9223372036854775808;
-ERROR 22003: BIGINT value is out of range in '9223372036854775807 - -9223372036854775808'
-set SQL_MODE='NO_UNSIGNED_SUBTRACTION';
-SELECT 18446744073709551615 - 1;
-ERROR 22003: BIGINT value is out of range in '18446744073709551615 - 1'
-SELECT 18446744073709551615 - CAST(1 AS UNSIGNED);
-ERROR 22003: BIGINT value is out of range in '18446744073709551615 - cast(1 as unsigned)'
-SELECT 18446744073709551614 - (-1);
-ERROR 22003: BIGINT value is out of range in '18446744073709551614 - -1'
-SELECT 9223372036854775807 - -1;
-ERROR 22003: BIGINT value is out of range in '9223372036854775807 - -1'
-set SQL_MODE=default;
-SELECT 4294967296 * 4294967296;
-ERROR 22003: BIGINT value is out of range in '4294967296 * 4294967296'
-SELECT 9223372036854775808 * 2;
-ERROR 22003: BIGINT UNSIGNED value is out of range in '9223372036854775808 * 2'
-SELECT 9223372036854775808 * 2;
-ERROR 22003: BIGINT UNSIGNED value is out of range in '9223372036854775808 * 2'
-SELECT 7158278827 * 3221225472;
-ERROR 22003: BIGINT value is out of range in '7158278827 * 3221225472'
-SELECT 9223372036854775807 * (-2);
-ERROR 22003: BIGINT value is out of range in '9223372036854775807 * -2'
-SELECT CAST(1 as UNSIGNED) * (-1);
-ERROR 22003: BIGINT UNSIGNED value is out of range in 'cast(1 as unsigned) * -1'
-SELECT 9223372036854775807 * 2;
-ERROR 22003: BIGINT value is out of range in '9223372036854775807 * 2'
-SELECT ABS(-9223372036854775808);
-ERROR 22003: BIGINT value is out of range in 'abs(-9223372036854775808)'
-SELECT -9223372036854775808 DIV -1;
-ERROR 22003: BIGINT value is out of range in '-9223372036854775808 DIV -1'
-SELECT 18446744073709551615 DIV -1;
-ERROR 22003: BIGINT UNSIGNED value is out of range in '18446744073709551615 DIV -1'
-CREATE TABLE t1(a BIGINT, b BIGINT UNSIGNED);
-INSERT INTO t1 VALUES(-9223372036854775808, 9223372036854775809);
-SELECT -a FROM t1;
-ERROR 22003: BIGINT value is out of range in '-`test`.`t1`.`a`'
-SELECT -b FROM t1;
-ERROR 22003: BIGINT value is out of range in '-`test`.`t1`.`b`'
-INSERT INTO t1 VALUES(0,0);
-SELECT -a FROM t1;
-ERROR 22003: BIGINT value is out of range in '-`test`.`t1`.`a`'
-SELECT -b FROM t1;
-ERROR 22003: BIGINT value is out of range in '-`test`.`t1`.`b`'
-DROP TABLE t1;
-SET @a:=999999999999999999999999999999999999999999999999999999999999999999999999999999999;
-SELECT @a + @a;
-ERROR 22003: DECIMAL value is out of range in '@`a` + @`a`'
-SELECT @a * @a;
-ERROR 22003: DECIMAL value is out of range in '@`a` * @`a`'
-SELECT -@a - @a;
-ERROR 22003: DECIMAL value is out of range in '-@`a` - @`a`'
-SELECT @a / 0.5;
-ERROR 22003: DECIMAL value is out of range in '@`a` / 0.5'
-SELECT COT(1/0);
-COT(1/0)
-NULL
-Warnings:
-Warning 1365 Division by 0
-SELECT -1 + 9223372036854775808;
--1 + 9223372036854775808
-9223372036854775807
-SELECT 2 DIV -2;
-2 DIV -2
--1
-SELECT -(1 DIV 0);
--(1 DIV 0)
-NULL
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-SELECT -9223372036854775808 MOD -1;
--9223372036854775808 MOD -1
-0
-#
-# Bug #57209 valgrind + Assertion failed: dst > buf
-#
-SELECT floor(log10(format(concat_ws(5445796E25, 5306463, 30837), -358821)))
-as foo;
-foo
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '53064635.445796e3130837'
-Warning 1292 Truncated incorrect DOUBLE value: '179,769,313,486,231,570,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,'
-#
-# Bug #58137 char(0) column cause:
-# my_gcvt: Assertion `width > 0 && to != ((void *)0)' failed
-#
-CREATE TABLE t1(a char(0));
-INSERT IGNORE INTO t1 (SELECT -pi());
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-DROP TABLE t1;
-#
-# Bug #59241 invalid memory read
-# in do_div_mod with doubly assigned variables
-#
-SELECT ((@a:=@b:=1.0) div (@b:=@a:=get_format(datetime, 'usa')));
-((@a:=@b:=1.0) div (@b:=@a:=get_format(datetime, 'usa')))
-NULL
-Warnings:
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1365 Division by 0
-#
-# Bug #59498 div function broken in mysql-trunk
-#
-SELECT 1 div null;
-1 div null
-NULL
-#
-# Bug #11792200 - DIVIDING LARGE NUMBERS CAUSES STACK CORRUPTIONS
-#
-select (1.175494351E-37 div 1.7976931348623157E+308);
-(1.175494351E-37 div 1.7976931348623157E+308)
-0
-Warnings:
-Warning 1916 Got overflow when converting '' to DECIMAL. Value truncated
-#
-# Bug#12744991 - DECIMAL_ROUND(X,D) GIVES WRONG RESULTS WHEN D == N*(-9)
-#
-select round(999999999, -9);
-round(999999999, -9)
-1000000000
-select round(999999999.0, -9);
-round(999999999.0, -9)
-1000000000
-select round(999999999999999999, -18);
-round(999999999999999999, -18)
-1000000000000000000
-select round(999999999999999999.0, -18);
-round(999999999999999999.0, -18)
-1000000000000000000
-#
-# Bug#12537160 ASSERTION FAILED:
-# STOP0 <= &TO->BUF[TO->LEN] WITH LARGE NUMBER.
-#
-select 999999999999999999999999999999999999999999999999999999999999999999999999999999999 % 0.1 as foo;
-foo
-0.0
-select 999999999999999999999999999999999999999999999999999999999999999999999999999999999 % 0.0 as foo;
-foo
-NULL
-Warnings:
-Warning 1365 Division by 0
-#
-# Bug#12711164 - 61676:
-# RESULT OF DIV WITH DECIMAL AND INTEGER DOES NOT MAKE SENSE
-#
-select 5 div 2;
-5 div 2
-2
-select 5.0 div 2.0;
-5.0 div 2.0
-2
-select 5.0 div 2;
-5.0 div 2
-2
-select 5 div 2.0;
-5 div 2.0
-2
-select 5.9 div 2, 1.23456789e3 DIV 2, 1.23456789e9 DIV 2, 1.23456789e19 DIV 2;
-5.9 div 2 1.23456789e3 DIV 2 1.23456789e9 DIV 2 1.23456789e19 DIV 2
-2 617 617283945 6172839450000000000
-#
-# MDEV-10467 Assertion `nr >= 0.0' failed in Item_sum_std::val_real()
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1),(2);
-SELECT STDDEV_SAMP(ROUND('0', 309)) FROM t1;
-STDDEV_SAMP(ROUND('0', 309))
-0
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# MDEV-5781 Item_sum_std::val_real(): Assertion `nr >= 0.0' fails on query with STDDEV_POP, ROUND and variable
-#
-SELECT STDDEV_POP(ROUND(0,@A:=2009)) FROM (SELECT 1 UNION SELECT 2) fake_table;
-STDDEV_POP(ROUND(0,@A:=2009))
-0.0000
-#
-# Start of 10.2 tests
-#
-# Test zero
-select 0=0, 0=-0, 0.0= -0.0, 0.0 = -(0.0), 0.0E1=-0.0E1, 0.0E1=-(0.0E1);
-0=0 0=-0 0.0= -0.0 0.0 = -(0.0) 0.0E1=-0.0E1 0.0E1=-(0.0E1)
-1 1 1 1 1 1
-#
-# CRC32 tests
-#
-select CRC32(NULL), CRC32(''), CRC32('MySQL'), CRC32('mysql'), CRC32('01234567'), CRC32('012345678');
-CRC32(NULL) CRC32('') CRC32('MySQL') CRC32('mysql') CRC32('01234567') CRC32('012345678')
-NULL 0 3259397556 2501908538 763378421 939184570
-explain extended select (3-2)+1, (3/2)*1, 3-(2+1), 3/(2*1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 3 - 2 + 1 AS `(3-2)+1`,3 / 2 * 1 AS `(3/2)*1`,3 - (2 + 1) AS `3-(2+1)`,3 / (2 * 1) AS `3/(2*1)`
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12000 ROUND(expr,const_expr_returning_NULL) creates DOUBLE(0,0)
-#
-CREATE OR REPLACE TABLE t1 AS SELECT
-ROUND(10,NULL) AS c1,
-ROUND(10.1,NULL) AS c2,
-ROUND(10e0,NULL) AS c3;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` double DEFAULT NULL,
- `c2` double DEFAULT NULL,
- `c3` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# MDEV-12857 Out-of-range errors on CREATE..SELECT 2222222222 DIV 1
-#
-SET sql_mode=STRICT_ALL_TABLES;
-CREATE OR REPLACE TABLE t1 AS SELECT
-2 DIV 1 AS d01,
-222222222 DIV 1 AS d09,
-2222222222 DIV 1 AS d10;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `d01` int(1) DEFAULT NULL,
- `d09` int(9) DEFAULT NULL,
- `d10` bigint(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-d01 2
-d09 222222222
-d10 2222222222
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-#
-# MDEV-12858 Out-of-range error for CREATE..SELECT unsigned_int_column+1
-#
-SET sql_mode=STRICT_ALL_TABLES;
-CREATE OR REPLACE TABLE t1 (a INT UNSIGNED NOT NULL);
-INSERT INTO t1 VALUES (0xFFFFFFFF);
-CREATE OR REPLACE TABLE t2 AS SELECT a+1 AS a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` bigint(11) unsigned NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT a, HEX(a) FROM t2;
-a HEX(a)
-4294967296 100000000
-DROP TABLE t2;
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
diff --git a/mysql-test/r/func_misc.result b/mysql-test/r/func_misc.result
deleted file mode 100644
index 804a563f401..00000000000
--- a/mysql-test/r/func_misc.result
+++ /dev/null
@@ -1,1553 +0,0 @@
-DROP TABLE IF EXISTS t1, t2;
-select format(1.5555,0),format(123.5555,1),format(1234.5555,2),format(12345.55555,3),format(123456.5555,4),format(1234567.5555,5),format("12345.2399",2);
-format(1.5555,0) format(123.5555,1) format(1234.5555,2) format(12345.55555,3) format(123456.5555,4) format(1234567.5555,5) format("12345.2399",2)
-2 123.6 1,234.56 12,345.556 123,456.5555 1,234,567.55550 12,345.24
-select inet_ntoa(inet_aton("255.255.255.255.255.255.255.255"));
-inet_ntoa(inet_aton("255.255.255.255.255.255.255.255"))
-NULL
-select inet_aton("255.255.255.255.255"),inet_aton("255.255.1.255"),inet_aton("0.1.255");
-inet_aton("255.255.255.255.255") inet_aton("255.255.1.255") inet_aton("0.1.255")
-1099511627775 4294902271 65791
-select inet_ntoa(1099511627775),inet_ntoa(4294902271),inet_ntoa(511);
-inet_ntoa(1099511627775) inet_ntoa(4294902271) inet_ntoa(511)
-NULL 255.255.1.255 0.0.1.255
-select hex(inet_aton('127'));
-hex(inet_aton('127'))
-7F
-select hex(inet_aton('127.1'));
-hex(inet_aton('127.1'))
-7F000001
-select hex(inet_aton('127.1.1'));
-hex(inet_aton('127.1.1'))
-7F010001
-select length(uuid()), charset(uuid()), length(unhex(replace(uuid(),_utf8'-',_utf8'')));
-length(uuid()) charset(uuid()) length(unhex(replace(uuid(),_utf8'-',_utf8'')))
-36 utf8 16
-set @a= uuid_short();
-set @b= uuid_short();
-select @b - @a;
-@b - @a
-1
-select length(format('nan', 2)) > 0;
-length(format('nan', 2)) > 0
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'nan'
-select concat("$",format(2500,2));
-concat("$",format(2500,2))
-$2,500.00
-create table t1 ( a timestamp );
-insert into t1 values ( '2004-01-06 12:34' );
-select a from t1 where left(a+0,6) in ( left(20040106,6) );
-a
-2004-01-06 12:34:00
-select a from t1 where left(a+0,6) = ( left(20040106,6) );
-a
-2004-01-06 12:34:00
-select a from t1 where right(a+0,6) in ( right(20040106123400,6) );
-a
-2004-01-06 12:34:00
-select a from t1 where right(a+0,6) = ( right(20040106123400,6) );
-a
-2004-01-06 12:34:00
-select a from t1 where mid(a+0,6,3) in ( mid(20040106123400,6,3) );
-a
-2004-01-06 12:34:00
-select a from t1 where mid(a+0,6,3) = ( mid(20040106123400,6,3) );
-a
-2004-01-06 12:34:00
-drop table t1;
-CREATE TABLE t1 (conn CHAR(7), connection_id INT);
-INSERT INTO t1 VALUES ('default', CONNECTION_ID());
-SELECT GET_LOCK('bug16501',600);
-GET_LOCK('bug16501',600)
-1
-connect con1,localhost,root,,;
-INSERT INTO t1 VALUES ('con1', CONNECTION_ID());
-SELECT IS_USED_LOCK('bug16501') = connection_id
-FROM t1
-WHERE conn = 'default';
-IS_USED_LOCK('bug16501') = connection_id
-1
-SELECT GET_LOCK('bug16501',600);
-connection default;
-SELECT IS_USED_LOCK('bug16501') = CONNECTION_ID();
-IS_USED_LOCK('bug16501') = CONNECTION_ID()
-1
-SELECT RELEASE_LOCK('bug16501');
-RELEASE_LOCK('bug16501')
-1
-connection con1;
-GET_LOCK('bug16501',600)
-1
-connection default;
-SELECT IS_USED_LOCK('bug16501') = connection_id
-FROM t1
-WHERE conn = 'con1';
-IS_USED_LOCK('bug16501') = connection_id
-1
-connection con1;
-SELECT IS_USED_LOCK('bug16501') = CONNECTION_ID();
-IS_USED_LOCK('bug16501') = CONNECTION_ID()
-1
-SELECT RELEASE_LOCK('bug16501');
-RELEASE_LOCK('bug16501')
-1
-SELECT IS_USED_LOCK('bug16501');
-IS_USED_LOCK('bug16501')
-NULL
-disconnect con1;
-connection default;
-DROP TABLE t1;
-select export_set(3, _latin1'foo', _utf8'bar', ',', 4);
-export_set(3, _latin1'foo', _utf8'bar', ',', 4)
-foo,foo,bar,bar
-End of 4.1 tests
-create table t1 as select uuid(), length(uuid());
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `uuid()` varchar(36) CHARACTER SET utf8 DEFAULT NULL,
- `length(uuid())` int(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 select INET_ATON('255.255.0.1') as `a`;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(21) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-drop table if exists table_26093;
-drop function if exists func_26093_a;
-drop function if exists func_26093_b;
-create table table_26093(a int);
-insert into table_26093 values
-(1), (2), (3), (4), (5),
-(6), (7), (8), (9), (10);
-create function func_26093_a(x int) returns int
-begin
-set @invoked := @invoked + 1;
-return x;
-end//
-create function func_26093_b(x int, y int) returns int
-begin
-set @invoked := @invoked + 1;
-return x;
-end//
-select avg(a) from table_26093;
-avg(a)
-5.5000
-select benchmark(100, (select avg(a) from table_26093));
-benchmark(100, (select avg(a) from table_26093))
-0
-set @invoked := 0;
-select benchmark(100, (select avg(func_26093_a(a)) from table_26093));
-benchmark(100, (select avg(func_26093_a(a)) from table_26093))
-0
-select @invoked;
-@invoked
-10
-set @invoked := 0;
-select benchmark(100, (select avg(func_26093_b(a, rand())) from table_26093));
-benchmark(100, (select avg(func_26093_b(a, rand())) from table_26093))
-0
-select @invoked;
-@invoked
-1000
-select benchmark(100, (select (a) from table_26093));
-ERROR 21000: Subquery returns more than 1 row
-select benchmark(100, (select 1, 1));
-ERROR 21000: Operand should contain 1 column(s)
-drop table table_26093;
-drop function func_26093_a;
-drop function func_26093_b;
-SELECT NAME_CONST('test', NOW());
-ERROR HY000: Incorrect arguments to NAME_CONST
-SELECT NAME_CONST('test', UPPER('test'));
-ERROR HY000: Incorrect arguments to NAME_CONST
-SELECT NAME_CONST('test', NULL);
-test
-NULL
-SELECT NAME_CONST('test', 1);
-test
-1
-SELECT NAME_CONST('test', -1);
-test
--1
-SELECT NAME_CONST('test', 1.0);
-test
-1.0
-SELECT NAME_CONST('test', -1.0);
-test
--1.0
-SELECT NAME_CONST('test', 'test');
-test
-test
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-SELECT NAME_CONST('flag',1) * MAX(a) FROM t1;
-NAME_CONST('flag',1) * MAX(a)
-3
-SELECT NAME_CONST('flag',1.5) * MAX(a) FROM t1;
-NAME_CONST('flag',1.5) * MAX(a)
-4.5
-SELECT NAME_CONST('flag',-1) * MAX(a) FROM t1;
-NAME_CONST('flag',-1) * MAX(a)
--3
-SELECT NAME_CONST('flag',-1.5) * MAX(a) FROM t1;
-NAME_CONST('flag',-1.5) * MAX(a)
--4.5
-SELECT NAME_CONST('flag', SQRT(4)) * MAX(a) FROM t1;
-ERROR HY000: Incorrect arguments to NAME_CONST
-SELECT NAME_CONST('flag',-SQRT(4)) * MAX(a) FROM t1;
-ERROR HY000: Incorrect arguments to NAME_CONST
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (5), (2);
-SELECT NAME_CONST(x,2) FROM (SELECT a x FROM t1) t;
-ERROR HY000: Incorrect arguments to NAME_CONST
-DROP TABLE t1;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (), (), ();
-SELECT NAME_CONST(a, '1') FROM t1;
-ERROR HY000: Incorrect arguments to NAME_CONST
-SET INSERT_ID= NAME_CONST(a, a);
-ERROR HY000: Incorrect arguments to NAME_CONST
-DROP TABLE t1;
-create table t1 (a int not null);
-insert into t1 values (-1), (-2);
-select min(a) from t1 group by inet_ntoa(a);
-min(a)
--2
-drop table t1;
-SELECT NAME_CONST('var', 'value') COLLATE latin1_general_cs;
-NAME_CONST('var', 'value') COLLATE latin1_general_cs
-value
-select @@session.time_zone into @save_tz;
-set @@session.time_zone='UTC';
-select uuid() into @my_uuid;
-select mid(@my_uuid,15,1);
-mid(@my_uuid,15,1)
-1
-select 24 * 60 * 60 * 1000 * 1000 * 10 into @my_uuid_one_day;
-select concat('0',mid(@my_uuid,16,3),mid(@my_uuid,10,4),left(@my_uuid,8)) into @my_uuidate;
-select floor(conv(@my_uuidate,16,10)/@my_uuid_one_day) into @my_uuid_date;
-select 141427 + datediff(curdate(),'1970-01-01') into @my_uuid_synthetic;
-select @my_uuid_date - @my_uuid_synthetic;
-@my_uuid_date - @my_uuid_synthetic
-0
-set @@session.time_zone=@save_tz;
-CREATE TABLE t1 (a DATE);
-SELECT * FROM t1 WHERE a = NAME_CONST('reportDate',
-_binary'2009-01-09' COLLATE 'binary');
-a
-DROP TABLE t1;
-select NAME_CONST('_id',1234) as id;
-id
-1234
-End of 5.0 tests
-select connection_id() > 0;
-connection_id() > 0
-1
-#
-# Bug #54461: crash with longblob and union or update with subquery
-#
-CREATE TABLE t1 (a INT, b LONGBLOB);
-INSERT INTO t1 VALUES (1, '2'), (2, '3'), (3, '2');
-SELECT DISTINCT LEAST(a, (SELECT b FROM t1 LIMIT 1)) FROM t1 UNION SELECT 1;
-LEAST(a, (SELECT b FROM t1 LIMIT 1))
-1
-2
-SELECT DISTINCT GREATEST(a, (SELECT b FROM t1 LIMIT 1)) FROM t1 UNION SELECT 1;
-GREATEST(a, (SELECT b FROM t1 LIMIT 1))
-2
-3
-1
-DROP TABLE t1;
-SELECT INET_NTOA(0);
-INET_NTOA(0)
-0.0.0.0
-SELECT '1' IN ('1', INET_NTOA(0));
-'1' IN ('1', INET_NTOA(0))
-1
-SELECT NAME_CONST('a', -(1 OR 2)) OR 1;
-ERROR HY000: Incorrect arguments to NAME_CONST
-SELECT NAME_CONST('a', -(1 AND 2)) AND 1;
-ERROR HY000: Incorrect arguments to NAME_CONST
-SELECT NAME_CONST('a', -(1)) OR 1;
-NAME_CONST('a', -(1)) OR 1
-1
-#
-#MDEV-5446: Assertion `!table || (!table->read_set ||
-#bitmap_is_set(table->read_set, field_index))' fails on
-#EXPLAIN EXTENDED with VALUES function
-#
-CREATE TABLE t1 (a INT, b INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,10);
-CREATE VIEW v1 AS SELECT * FROM t1;
-EXPLAIN EXTENDED SELECT VALUE(b) FROM v1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select value(10) AS `VALUE(b)` from dual
-drop view v1;
-drop table t1;
-End of 5.3 tests
-#
-# Bug #52165: Assertion failed: file .\dtoa.c, line 465
-#
-CREATE TABLE t1 (a SET('a'), b INT);
-INSERT INTO t1 VALUES ('', 0);
-SELECT COALESCE(a) = COALESCE(b) FROM t1;
-COALESCE(a) = COALESCE(b)
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-DROP TABLE t1;
-#
-# Bug #54461: crash with longblob and union or update with subquery
-#
-CREATE TABLE t1 (a INT, b LONGBLOB);
-INSERT INTO t1 VALUES (1, '2'), (2, '3'), (3, '2');
-SELECT DISTINCT LEAST(a, (SELECT b FROM t1 LIMIT 1)) FROM t1 UNION SELECT 1;
-LEAST(a, (SELECT b FROM t1 LIMIT 1))
-1
-2
-SELECT DISTINCT GREATEST(a, (SELECT b FROM t1 LIMIT 1)) FROM t1 UNION SELECT 1;
-GREATEST(a, (SELECT b FROM t1 LIMIT 1))
-2
-3
-1
-DROP TABLE t1;
-SELECT INET_NTOA(0);
-INET_NTOA(0)
-0.0.0.0
-SELECT '1' IN ('1', INET_NTOA(0));
-'1' IN ('1', INET_NTOA(0))
-1
-#
-# End of 5.1 tests
-#
-#
-# Bug #58199: name_const in the having clause crashes
-#
-CREATE TABLE t1 (a INT);
-SELECT 1 from t1 HAVING NAME_CONST('', a);
-ERROR HY000: Incorrect arguments to NAME_CONST
-DROP TABLE t1;
-#
-# Test or correct maybe_null of last_value
-#
-CREATE TABLE t1 (a char(2) not null );
-INSERT INTO t1 VALUES (4),(7),(1);
-set @optimizer_switch_save= @@optimizer_switch;
-set optimizer_switch='materialization=off';
-CREATE TABLE tv (e char(2) not null );
-INSERT INTO tv VALUES (1);
-CREATE ALGORITHM=MERGE VIEW v_merge AS SELECT * FROM tv;
-CREATE ALGORITHM=MERGE VIEW vm AS SELECT * FROM tv;
-explain extended
-select a from t1 left join v_merge on (a=e) where last_value(NULL,e) not in (select last_value(NULL,e) from vm);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY tv ALL NULL NULL NULL NULL 1 100.00 Using where; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY tv system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` left join (`test`.`tv`) on(`test`.`tv`.`e` = `test`.`t1`.`a`) where !<expr_cache><last_value(NULL,`test`.`tv`.`e`)>(<in_optimizer>(last_value(NULL,`test`.`tv`.`e`),<exists>(/* select#2 */ select last_value(NULL,'1') from dual where trigcond(<cache>(last_value(NULL,`test`.`tv`.`e`)) = last_value(NULL,'1')))))
-explain extended
-select a from t1 left join v_merge on (a=e) where e not in (select last_value(NULL,e) from vm);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY tv ALL NULL NULL NULL NULL 1 100.00 Using where; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY tv system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` left join (`test`.`tv`) on(`test`.`tv`.`e` = `test`.`t1`.`a`) where !<expr_cache><`test`.`tv`.`e`>(<in_optimizer>(`test`.`tv`.`e`,<exists>(/* select#2 */ select last_value(NULL,'1') from dual where trigcond(<cache>(`test`.`tv`.`e`) = last_value(NULL,'1')))))
-set optimizer_switch=@optimizer_switch_save;
-drop view v_merge, vm;
-drop table t1,tv;
-#
-# MDEV-4017 - GET_LOCK() with negative timeouts has strange behavior
-#
-SELECT GET_LOCK('ul1', NULL);
-GET_LOCK('ul1', NULL)
-NULL
-Warnings:
-Warning 1411 Incorrect timeout value: 'NULL' for function get_lock
-SELECT GET_LOCK('ul1', -1);
-GET_LOCK('ul1', -1)
-NULL
-Warnings:
-Warning 1411 Incorrect timeout value: '-1' for function get_lock
-#
-# MDEV-8624 MariaDB hangs on query with many logical condition
-#
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL AUTO_INCREMENT,
-`submitdate` datetime DEFAULT NULL,
-`lastpage` int(11) DEFAULT NULL,
-`startlanguage` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
-`token` varchar(36) COLLATE utf8_unicode_ci DEFAULT NULL,
-`datestamp` datetime NOT NULL,
-`startdate` datetime NOT NULL,
-`ipaddr` text COLLATE utf8_unicode_ci,
-`refurl` text COLLATE utf8_unicode_ci,
-`57813X540X1723` text COLLATE utf8_unicode_ci,
-`57813X540X1724` text COLLATE utf8_unicode_ci,
-`57813X540X1725` text COLLATE utf8_unicode_ci,
-`57813X540X1726` double DEFAULT NULL,
-`57813X540X1909` double DEFAULT NULL,
-`57813X541X17271` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X541X17272` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X541X17273` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X541X17274` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X541X17275` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X541X17276` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X541X17281` text COLLATE utf8_unicode_ci,
-`57813X541X17282` text COLLATE utf8_unicode_ci,
-`57813X541X17283` text COLLATE utf8_unicode_ci,
-`57813X541X17284` text COLLATE utf8_unicode_ci,
-`57813X541X17285` text COLLATE utf8_unicode_ci,
-`57813X541X17286` text COLLATE utf8_unicode_ci,
-`57813X542X18131` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X542X18132` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X542X18133` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X542X18134` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X542X18135` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X542X18136` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X542X18137` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X542X18138` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X542X18139` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X542X18141` text COLLATE utf8_unicode_ci,
-`57813X542X18142` text COLLATE utf8_unicode_ci,
-`57813X542X18143` text COLLATE utf8_unicode_ci,
-`57813X542X18144` text COLLATE utf8_unicode_ci,
-`57813X542X18145` text COLLATE utf8_unicode_ci,
-`57813X542X18146` text COLLATE utf8_unicode_ci,
-`57813X542X18147` text COLLATE utf8_unicode_ci,
-`57813X542X18148` text COLLATE utf8_unicode_ci,
-`57813X542X18149` text COLLATE utf8_unicode_ci,
-`57813X543X18451` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X543X18452` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X543X18453` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X543X18454` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X543X18455` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X543X18456` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X543X18461` text COLLATE utf8_unicode_ci,
-`57813X543X18462` text COLLATE utf8_unicode_ci,
-`57813X543X18463` text COLLATE utf8_unicode_ci,
-`57813X543X18464` text COLLATE utf8_unicode_ci,
-`57813X543X18465` text COLLATE utf8_unicode_ci,
-`57813X543X18466` text COLLATE utf8_unicode_ci,
-`57813X544X18711` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X544X18712` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X544X18713` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X544X18714` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X544X18715` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X544X18716` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X544X18717` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X544X18718` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X544X18721` text COLLATE utf8_unicode_ci,
-`57813X544X18722` text COLLATE utf8_unicode_ci,
-`57813X544X18723` text COLLATE utf8_unicode_ci,
-`57813X544X18724` text COLLATE utf8_unicode_ci,
-`57813X544X18725` text COLLATE utf8_unicode_ci,
-`57813X544X18726` text COLLATE utf8_unicode_ci,
-`57813X544X18727` text COLLATE utf8_unicode_ci,
-`57813X544X18728` text COLLATE utf8_unicode_ci,
-`57813X546X1902` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X546X1903` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X546X1904` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
-`57813X545X1901` varchar(1) COLLATE utf8_unicode_ci DEFAULT NULL,
-PRIMARY KEY (`id`),
-KEY `lime_survey_57813_idx` (`token`),
-KEY `57813X540X1723` (`57813X540X1723`(100)),
-KEY `57813X540X1724` (`57813X540X1724`(100)),
-KEY `57813X540X1726` (`57813X540X1726`),
-KEY `57813X540X1725` (`57813X540X1725`(100)),
-KEY `57813X546X1902` (`57813X546X1902`),
-KEY `57813X546X1903` (`57813X546X1903`),
-KEY `57813X546X1904` (`57813X546X1904`)
-);
-SELECT
-COUNT(*) as `N`,
-ROUND(
-(
-SUM(
-(
-(
-IF( 57813X541X17271 IS NOT NULL AND 57813X541X17271 != '' AND 57813X541X17271 != '99', 57813X541X17271, 0 ) +
-IF( 57813X541X17272 IS NOT NULL AND 57813X541X17272 != '' AND 57813X541X17272 != '99', 57813X541X17272, 0 ) +
-IF( 57813X541X17273 IS NOT NULL AND 57813X541X17273 != '' AND 57813X541X17273 != '99', 57813X541X17273, 0 ) +
-IF( 57813X541X17274 IS NOT NULL AND 57813X541X17274 != '' AND 57813X541X17274 != '99', 57813X541X17274, 0 ) +
-IF( 57813X541X17275 IS NOT NULL AND 57813X541X17275 != '' AND 57813X541X17275 != '99', 57813X541X17275, 0 ) +
-IF( 57813X541X17276 IS NOT NULL AND 57813X541X17276 != '' AND 57813X541X17276 != '99', 57813X541X17276, 0 ) +
-IF( 57813X542X18131 IS NOT NULL AND 57813X542X18131 != '' AND 57813X542X18131 != '99', 57813X542X18131, 0 ) +
-IF( 57813X542X18132 IS NOT NULL AND 57813X542X18132 != '' AND 57813X542X18132 != '99', 57813X542X18132, 0 ) +
-IF( 57813X542X18133 IS NOT NULL AND 57813X542X18133 != '' AND 57813X542X18133 != '99', 57813X542X18133, 0 ) +
-IF( 57813X542X18134 IS NOT NULL AND 57813X542X18134 != '' AND 57813X542X18134 != '99', 57813X542X18134, 0 ) +
-IF( 57813X542X18135 IS NOT NULL AND 57813X542X18135 != '' AND 57813X542X18135 != '99', 57813X542X18135, 0 ) +
-IF( 57813X542X18136 IS NOT NULL AND 57813X542X18136 != '' AND 57813X542X18136 != '99', 57813X542X18136, 0 ) +
-IF( 57813X542X18137 IS NOT NULL AND 57813X542X18137 != '' AND 57813X542X18137 != '99', 57813X542X18137, 0 ) +
-IF( 57813X542X18138 IS NOT NULL AND 57813X542X18138 != '' AND 57813X542X18138 != '99', 57813X542X18138, 0 ) +
-IF( 57813X542X18139 IS NOT NULL AND 57813X542X18139 != '' AND 57813X542X18139 != '99', 57813X542X18139, 0 ) +
-IF( 57813X543X18451 IS NOT NULL AND 57813X543X18451 != '' AND 57813X543X18451 != '99', 57813X543X18451, 0 ) +
-IF( 57813X543X18452 IS NOT NULL AND 57813X543X18452 != '' AND 57813X543X18452 != '99', 57813X543X18452, 0 ) +
-IF( 57813X543X18453 IS NOT NULL AND 57813X543X18453 != '' AND 57813X543X18453 != '99', 57813X543X18453, 0 ) +
-IF( 57813X543X18454 IS NOT NULL AND 57813X543X18454 != '' AND 57813X543X18454 != '99', 57813X543X18454, 0 ) +
-IF( 57813X543X18455 IS NOT NULL AND 57813X543X18455 != '' AND 57813X543X18455 != '99', 57813X543X18455, 0 ) +
-IF( 57813X543X18456 IS NOT NULL AND 57813X543X18456 != '' AND 57813X543X18456 != '99', 57813X543X18456, 0 ) +
-IF( 57813X544X18711 IS NOT NULL AND 57813X544X18711 != '' AND 57813X544X18711 != '99', 57813X544X18711, 0 ) +
-IF( 57813X544X18712 IS NOT NULL AND 57813X544X18712 != '' AND 57813X544X18712 != '99', 57813X544X18712, 0 ) +
-IF( 57813X544X18713 IS NOT NULL AND 57813X544X18713 != '' AND 57813X544X18713 != '99', 57813X544X18713, 0 ) +
-IF( 57813X544X18714 IS NOT NULL AND 57813X544X18714 != '' AND 57813X544X18714 != '99', 57813X544X18714, 0 ) +
-IF( 57813X544X18715 IS NOT NULL AND 57813X544X18715 != '' AND 57813X544X18715 != '99', 57813X544X18715, 0 ) +
-IF( 57813X544X18716 IS NOT NULL AND 57813X544X18716 != '' AND 57813X544X18716 != '99', 57813X544X18716, 0 ) +
-IF( 57813X544X18717 IS NOT NULL AND 57813X544X18717 != '' AND 57813X544X18717 != '99', 57813X544X18717, 0 ) +
-IF( 57813X544X18718 IS NOT NULL AND 57813X544X18718 != '' AND 57813X544X18718 != '99', 57813X544X18718, 0 )
-)
-/
-(
-IF( 57813X541X17271 IS NOT NULL AND 57813X541X17271 != '' AND 57813X541X17271 != '99', 1, 0 ) +
-IF( 57813X541X17272 IS NOT NULL AND 57813X541X17272 != '' AND 57813X541X17272 != '99', 1, 0 ) +
-IF( 57813X541X17273 IS NOT NULL AND 57813X541X17273 != '' AND 57813X541X17273 != '99', 1, 0 ) +
-IF( 57813X541X17274 IS NOT NULL AND 57813X541X17274 != '' AND 57813X541X17274 != '99', 1, 0 ) +
-IF( 57813X541X17275 IS NOT NULL AND 57813X541X17275 != '' AND 57813X541X17275 != '99', 1, 0 ) +
-IF( 57813X541X17276 IS NOT NULL AND 57813X541X17276 != '' AND 57813X541X17276 != '99', 1, 0 ) +
-IF( 57813X542X18131 IS NOT NULL AND 57813X542X18131 != '' AND 57813X542X18131 != '99', 1, 0 ) +
-IF( 57813X542X18132 IS NOT NULL AND 57813X542X18132 != '' AND 57813X542X18132 != '99', 1, 0 ) +
-IF( 57813X542X18133 IS NOT NULL AND 57813X542X18133 != '' AND 57813X542X18133 != '99', 1, 0 ) +
-IF( 57813X542X18134 IS NOT NULL AND 57813X542X18134 != '' AND 57813X542X18134 != '99', 1, 0 ) +
-IF( 57813X542X18135 IS NOT NULL AND 57813X542X18135 != '' AND 57813X542X18135 != '99', 1, 0 ) +
-IF( 57813X542X18136 IS NOT NULL AND 57813X542X18136 != '' AND 57813X542X18136 != '99', 1, 0 ) +
-IF( 57813X542X18137 IS NOT NULL AND 57813X542X18137 != '' AND 57813X542X18137 != '99', 1, 0 ) +
-IF( 57813X542X18138 IS NOT NULL AND 57813X542X18138 != '' AND 57813X542X18138 != '99', 1, 0 ) +
-IF( 57813X542X18139 IS NOT NULL AND 57813X542X18139 != '' AND 57813X542X18139 != '99', 1, 0 ) +
-IF( 57813X543X18451 IS NOT NULL AND 57813X543X18451 != '' AND 57813X543X18451 != '99', 1, 0 ) +
-IF( 57813X543X18452 IS NOT NULL AND 57813X543X18452 != '' AND 57813X543X18452 != '99', 1, 0 ) +
-IF( 57813X543X18453 IS NOT NULL AND 57813X543X18453 != '' AND 57813X543X18453 != '99', 1, 0 ) +
-IF( 57813X543X18454 IS NOT NULL AND 57813X543X18454 != '' AND 57813X543X18454 != '99', 1, 0 ) +
-IF( 57813X543X18455 IS NOT NULL AND 57813X543X18455 != '' AND 57813X543X18455 != '99', 1, 0 ) +
-IF( 57813X543X18456 IS NOT NULL AND 57813X543X18456 != '' AND 57813X543X18456 != '99', 1, 0 ) +
-IF( 57813X544X18711 IS NOT NULL AND 57813X544X18711 != '' AND 57813X544X18711 != '99', 1, 0 ) +
-IF( 57813X544X18712 IS NOT NULL AND 57813X544X18712 != '' AND 57813X544X18712 != '99', 1, 0 ) +
-IF( 57813X544X18713 IS NOT NULL AND 57813X544X18713 != '' AND 57813X544X18713 != '99', 1, 0 ) +
-IF( 57813X544X18714 IS NOT NULL AND 57813X544X18714 != '' AND 57813X544X18714 != '99', 1, 0 ) +
-IF( 57813X544X18715 IS NOT NULL AND 57813X544X18715 != '' AND 57813X544X18715 != '99', 1, 0 ) +
-IF( 57813X544X18716 IS NOT NULL AND 57813X544X18716 != '' AND 57813X544X18716 != '99', 1, 0 ) +
-IF( 57813X544X18717 IS NOT NULL AND 57813X544X18717 != '' AND 57813X544X18717 != '99', 1, 0 ) +
-IF( 57813X544X18718 IS NOT NULL AND 57813X544X18718 != '' AND 57813X544X18718 != '99', 1, 0 )
-)
-)
-)
-/ COUNT(*) ), 4) as `AVG`
-FROM `t1`
-WHERE `submitdate` IS NOT NULL
-AND (
-( 57813X541X17271 IS NOT NULL AND 57813X541X17271 != '' AND 57813X541X17271 != '99' ) OR
-( 57813X541X17272 IS NOT NULL AND 57813X541X17272 != '' AND 57813X541X17272 != '99' ) OR
-( 57813X541X17273 IS NOT NULL AND 57813X541X17273 != '' AND 57813X541X17273 != '99' ) OR
-( 57813X541X17274 IS NOT NULL AND 57813X541X17274 != '' AND 57813X541X17274 != '99' ) OR
-( 57813X541X17275 IS NOT NULL AND 57813X541X17275 != '' AND 57813X541X17275 != '99' ) OR
-( 57813X541X17276 IS NOT NULL AND 57813X541X17276 != '' AND 57813X541X17276 != '99' ) OR
-( 57813X542X18131 IS NOT NULL AND 57813X542X18131 != '' AND 57813X542X18131 != '99' ) OR
-( 57813X542X18132 IS NOT NULL AND 57813X542X18132 != '' AND 57813X542X18132 != '99' ) OR
-( 57813X542X18133 IS NOT NULL AND 57813X542X18133 != '' AND 57813X542X18133 != '99' ) OR
-( 57813X542X18134 IS NOT NULL AND 57813X542X18134 != '' AND 57813X542X18134 != '99' ) OR
-( 57813X542X18135 IS NOT NULL AND 57813X542X18135 != '' AND 57813X542X18135 != '99' ) OR
-( 57813X542X18136 IS NOT NULL AND 57813X542X18136 != '' AND 57813X542X18136 != '99' ) OR
-( 57813X542X18137 IS NOT NULL AND 57813X542X18137 != '' AND 57813X542X18137 != '99' ) OR
-( 57813X542X18138 IS NOT NULL AND 57813X542X18138 != '' AND 57813X542X18138 != '99' ) OR
-( 57813X542X18139 IS NOT NULL AND 57813X542X18139 != '' AND 57813X542X18139 != '99' ) OR
-( 57813X543X18451 IS NOT NULL AND 57813X543X18451 != '' AND 57813X543X18451 != '99' ) OR
-( 57813X543X18452 IS NOT NULL AND 57813X543X18452 != '' AND 57813X543X18452 != '99' ) OR
-( 57813X543X18453 IS NOT NULL AND 57813X543X18453 != '' AND 57813X543X18453 != '99' ) OR
-( 57813X543X18454 IS NOT NULL AND 57813X543X18454 != '' AND 57813X543X18454 != '99' ) OR
-( 57813X543X18455 IS NOT NULL AND 57813X543X18455 != '' AND 57813X543X18455 != '99' ) OR
-( 57813X543X18456 IS NOT NULL AND 57813X543X18456 != '' AND 57813X543X18456 != '99' ) OR
-( 57813X544X18711 IS NOT NULL AND 57813X544X18711 != '' AND 57813X544X18711 != '99' ) OR
-( 57813X544X18712 IS NOT NULL AND 57813X544X18712 != '' AND 57813X544X18712 != '99' ) OR
-( 57813X544X18713 IS NOT NULL AND 57813X544X18713 != '' AND 57813X544X18713 != '99' ) OR
-( 57813X544X18714 IS NOT NULL AND 57813X544X18714 != '' AND 57813X544X18714 != '99' ) OR
-( 57813X544X18715 IS NOT NULL AND 57813X544X18715 != '' AND 57813X544X18715 != '99' ) OR
-( 57813X544X18716 IS NOT NULL AND 57813X544X18716 != '' AND 57813X544X18716 != '99' ) OR
-( 57813X544X18717 IS NOT NULL AND 57813X544X18717 != '' AND 57813X544X18717 != '99' ) OR
-( 57813X544X18718 IS NOT NULL AND 57813X544X18718 != '' AND 57813X544X18718 != '99' ) )
-AND 57813X540X1723 = 'Test';
-N AVG
-0 NULL
-drop table t1;
-SELECT NAME_CONST('a', -(1 OR 2)) OR 1;
-ERROR HY000: Incorrect arguments to NAME_CONST
-SELECT NAME_CONST('a', -(1 AND 2)) OR 1;
-ERROR HY000: Incorrect arguments to NAME_CONST
-SELECT NAME_CONST('a', -(1)) OR 1;
-NAME_CONST('a', -(1)) OR 1
-1
-#
-# End of 5.5 tests
-#
-#
-# GET_LOCK, RELEASE_LOCK, IS_USED_LOCK functions test
-#
-# IS_USED_LOCK, IS_FREE_LOCK: the lock is not acquired
-# Note: IS_USED_LOCK returns NULL if the lock is unused
-select is_used_lock('test');
-is_used_lock('test')
-NULL
-select is_free_lock('test');
-is_free_lock('test')
-1
-# GET_LOCK returns 1 if it manages to acquire a lock
-select get_lock('test', 0);
-get_lock('test', 0)
-1
-# IS_USED_LOCK, IS_FREE_LOCK: the lock is acquired
-select is_free_lock('test');
-is_free_lock('test')
-0
-select is_used_lock('test') = connection_id();
-is_used_lock('test') = connection_id()
-1
-connect con1,localhost,root,,;
-connection con1;
-# IS_USED_LOCK, IS_FREE_LOCK: the lock is acquired in another
-# connection
-select is_used_lock('test') = connection_id();
-is_used_lock('test') = connection_id()
-0
-select is_free_lock('test');
-is_free_lock('test')
-0
-# GET_LOCK returns 0 if it can't acquire a lock (wait timeout)
-select get_lock('test', 0);
-get_lock('test', 0)
-0
-# RELEASE_LOCK returns 0 if the lock belongs to another connection
-select release_lock('test');
-release_lock('test')
-0
-connection default;
-# RELEASE_LOCK returns 1 if it successfully releases a lock
-select release_lock('test');
-release_lock('test')
-1
-# RELEASE_LOCK returns NULL if it doesn't release a lock and there is no such lock
-select release_lock('test');
-release_lock('test')
-NULL
-# Test that get_lock() returns NULL if error.
-select get_lock('test', 0);
-get_lock('test', 0)
-1
-connection con1;
-create table t1 select connection_id() as id;
-select get_lock('test', 7200);
-connection default;
-select (@id := id) - id from t1;
-(@id := id) - id
-0
-kill query @id;
-connection con1;
-get_lock('test', 7200)
-NULL
-connection default;
-# GET_LOCK() works recursively
-select get_lock('test', 0);
-get_lock('test', 0)
-1
-select get_lock('test', 0);
-get_lock('test', 0)
-1
-select get_lock('test', 0);
-get_lock('test', 0)
-1
-# RELEASE_LOCK() needs to be called recursively then, too
-select release_lock('test');
-release_lock('test')
-1
-select release_lock('test');
-release_lock('test')
-1
-select release_lock('test');
-release_lock('test')
-1
-# Once the last instance of the lock is released,
-# the next call returns NULL
-select release_lock('test');
-release_lock('test')
-1
-# Multiple locks in the same session are OK
-select get_lock('test1', 0);
-get_lock('test1', 0)
-1
-select get_lock('test2', 0);
-get_lock('test2', 0)
-1
-select get_lock('test3', 0);
-get_lock('test3', 0)
-1
-select release_lock('test1');
-release_lock('test1')
-1
-select release_lock('test2');
-release_lock('test2')
-1
-select release_lock('test3');
-release_lock('test3')
-1
-# Deadlocks are detected e.g. in case of a mutual wait
-select get_lock('test1', 0);
-get_lock('test1', 0)
-1
-connection con1;
-select get_lock('test2', 0);
-get_lock('test2', 0)
-1
-select get_lock('test1', 7200);
-connection default;
-select get_lock('test2', 7200);
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-select release_lock('test1');
-release_lock('test1')
-1
-connection con1;
-get_lock('test1', 7200)
-1
-select release_lock('test2');
-release_lock('test2')
-1
-select release_lock('test1');
-release_lock('test1')
-1
-connection default;
-# LOCK/UNLOCK TABLES works fine with a user lock.
-lock table t1 write;
-select get_lock('test', 0);
-get_lock('test', 0)
-1
-unlock tables;
-commit;
-select release_lock('test');
-release_lock('test')
-1
-# GLOBAL READ LOCK works with fine with user locks
-select get_lock('test1', 0);
-get_lock('test1', 0)
-1
-flush tables with read lock;
-select get_lock('test2', 0);
-get_lock('test2', 0)
-1
-unlock tables;
-commit;
-select release_lock('test1');
-release_lock('test1')
-1
-select release_lock('test2');
-release_lock('test2')
-1
-# BEGIN/COMMIT/ROLLBACK don't unlock user locks.
-begin;
-select get_lock('test1', 0);
-get_lock('test1', 0)
-1
-select get_lock('test2', 0);
-get_lock('test2', 0)
-1
-select count(*) from t1;
-count(*)
-1
-rollback;
-select release_lock('test1');
-release_lock('test1')
-1
-select release_lock('test2');
-release_lock('test2')
-1
-# Deadlocks between user locks and LOCK TABLES locks
-# are detected OK.
-select get_lock('test', 0);
-get_lock('test', 0)
-1
-connection con1;
-lock table t1 write;
-select get_lock('test', 7200);
-connection default;
-lock table t1 read;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-select release_lock('test');
-release_lock('test')
-1
-connection con1;
-get_lock('test', 7200)
-1
-select release_lock('test');
-release_lock('test')
-1
-unlock tables;
-# cleanup
-disconnect con1;
-connection default;
-drop table t1;
-# check too long identifier names
-select get_lock(repeat('a', 192), 0);
-get_lock(repeat('a', 192), 0)
-1
-select is_used_lock(repeat('a', 192)) = connection_id();
-is_used_lock(repeat('a', 192)) = connection_id()
-1
-select is_free_lock(repeat('a', 192));
-is_free_lock(repeat('a', 192))
-0
-select release_lock(repeat('a', 192));
-release_lock(repeat('a', 192))
-1
-select get_lock(repeat('a', 193), 0);
-ERROR 42000: Identifier name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' is too long
-select is_used_lock(repeat('a', 193));
-ERROR 42000: Identifier name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' is too long
-select is_free_lock(repeat('a', 193));
-ERROR 42000: Identifier name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' is too long
-select release_lock(repeat('a', 193));
-ERROR 42000: Identifier name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' is too long
-
-# --
-# -- WL#5787: IPv6-capable INET_ATON and INET_NTOA functions.
-# --
-
-# -- INET6_ATON: checking NULL, invalid types, out-of range values...
-
-SELECT INET6_ATON(NULL) IS NULL;
-INET6_ATON(NULL) IS NULL
-1
-SELECT INET6_ATON(123) IS NULL;
-INET6_ATON(123) IS NULL
-1
-SELECT INET6_ATON(123.45) IS NULL;
-INET6_ATON(123.45) IS NULL
-1
-SELECT INET6_ATON(NOW()) IS NULL;
-INET6_ATON(NOW()) IS NULL
-1
-SELECT INET6_ATON('1.2.3') IS NULL;
-INET6_ATON('1.2.3') IS NULL
-1
-SELECT INET6_ATON('1.2.3.') IS NULL;
-INET6_ATON('1.2.3.') IS NULL
-1
-SELECT INET6_ATON('1..3.4') IS NULL;
-INET6_ATON('1..3.4') IS NULL
-1
-SELECT INET6_ATON('-1.2.3.4') IS NULL;
-INET6_ATON('-1.2.3.4') IS NULL
-1
-SELECT INET6_ATON('1.2.3.256') IS NULL;
-INET6_ATON('1.2.3.256') IS NULL
-1
-SELECT INET6_ATON('1.2.3.4.5') IS NULL;
-INET6_ATON('1.2.3.4.5') IS NULL
-1
-SELECT INET6_ATON('0001.2.3.4') IS NULL;
-INET6_ATON('0001.2.3.4') IS NULL
-1
-SELECT INET6_ATON('0x1.2.3.4') IS NULL;
-INET6_ATON('0x1.2.3.4') IS NULL
-1
-SELECT INET6_ATON('a.2.3.4') IS NULL;
-INET6_ATON('a.2.3.4') IS NULL
-1
-SELECT INET6_ATON('1.2.3.4:80') IS NULL;
-INET6_ATON('1.2.3.4:80') IS NULL
-1
-SELECT INET6_ATON('1.2.3.4/32') IS NULL;
-INET6_ATON('1.2.3.4/32') IS NULL
-1
-SELECT INET6_ATON('mysql.com') IS NULL;
-INET6_ATON('mysql.com') IS NULL
-1
-SELECT INET6_ATON(':::') IS NULL;
-INET6_ATON(':::') IS NULL
-1
-SELECT INET6_ATON(':1:2:3') IS NULL;
-INET6_ATON(':1:2:3') IS NULL
-1
-SELECT INET6_ATON('1:2:3:') IS NULL;
-INET6_ATON('1:2:3:') IS NULL
-1
-SELECT INET6_ATON(':1::2:3') IS NULL;
-INET6_ATON(':1::2:3') IS NULL
-1
-SELECT INET6_ATON('1::2:3:') IS NULL;
-INET6_ATON('1::2:3:') IS NULL
-1
-SELECT INET6_ATON('::00001') IS NULL;
-INET6_ATON('::00001') IS NULL
-1
-SELECT INET6_ATON('::00001:2') IS NULL;
-INET6_ATON('::00001:2') IS NULL
-1
-SELECT INET6_ATON('::12345') IS NULL;
-INET6_ATON('::12345') IS NULL
-1
-SELECT INET6_ATON('1020::3040::5060') IS NULL;
-INET6_ATON('1020::3040::5060') IS NULL
-1
-SELECT INET6_ATON('::ABCZ') IS NULL;
-INET6_ATON('::ABCZ') IS NULL
-1
-SELECT INET6_ATON('::0x1.2.3.4') IS NULL;
-INET6_ATON('::0x1.2.3.4') IS NULL
-1
-SELECT INET6_ATON('::1.0x2.3.4') IS NULL;
-INET6_ATON('::1.0x2.3.4') IS NULL
-1
-SELECT INET6_ATON('::a.b.c.d') IS NULL;
-INET6_ATON('::a.b.c.d') IS NULL
-1
-SELECT INET6_ATON('::FFFF:0x1.2.3.4') IS NULL;
-INET6_ATON('::FFFF:0x1.2.3.4') IS NULL
-1
-SELECT INET6_ATON('::FFFF:1.0x2.3.4') IS NULL;
-INET6_ATON('::FFFF:1.0x2.3.4') IS NULL
-1
-SELECT INET6_ATON('::FFFF:a.b.c.d') IS NULL;
-INET6_ATON('::FFFF:a.b.c.d') IS NULL
-1
-SELECT INET6_ATON('::1.2.3.4:ABCD') IS NULL;
-INET6_ATON('::1.2.3.4:ABCD') IS NULL
-1
-# NOTE: such addresses are supported because getaddrinfo() supports them.
-# This is just to record the current behaviour.
-SELECT HEX(INET6_ATON('::ABCD:1.2.3.4'));
-HEX(INET6_ATON('::ABCD:1.2.3.4'))
-00000000000000000000ABCD01020304
-
-# -- INET6_ATON: checking binary representation...
-
-SELECT HEX(INET6_ATON('0.0.0.0'));
-HEX(INET6_ATON('0.0.0.0'))
-00000000
-SELECT HEX(INET6_ATON('00.00.00.00'));
-HEX(INET6_ATON('00.00.00.00'))
-00000000
-SELECT HEX(INET6_ATON('000.000.000.000'));
-HEX(INET6_ATON('000.000.000.000'))
-00000000
-SELECT HEX(INET6_ATON('1.2.3.4'));
-HEX(INET6_ATON('1.2.3.4'))
-01020304
-SELECT HEX(INET6_ATON('01.02.03.04'));
-HEX(INET6_ATON('01.02.03.04'))
-01020304
-SELECT HEX(INET6_ATON('001.002.003.004'));
-HEX(INET6_ATON('001.002.003.004'))
-01020304
-SELECT HEX(INET6_ATON('255.255.255.255'));
-HEX(INET6_ATON('255.255.255.255'))
-FFFFFFFF
-SELECT HEX(INET6_ATON('::'));
-HEX(INET6_ATON('::'))
-00000000000000000000000000000000
-SELECT HEX(INET6_ATON('0::0'));
-HEX(INET6_ATON('0::0'))
-00000000000000000000000000000000
-SELECT HEX(INET6_ATON('1::2'));
-HEX(INET6_ATON('1::2'))
-00010000000000000000000000000002
-SELECT HEX(INET6_ATON('0::'));
-HEX(INET6_ATON('0::'))
-00000000000000000000000000000000
-SELECT HEX(INET6_ATON('1::'));
-HEX(INET6_ATON('1::'))
-00010000000000000000000000000000
-SELECT HEX(INET6_ATON('::0'));
-HEX(INET6_ATON('::0'))
-00000000000000000000000000000000
-SELECT HEX(INET6_ATON('::1'));
-HEX(INET6_ATON('::1'))
-00000000000000000000000000000001
-SELECT HEX(INET6_ATON('1:2:3:4:5:6:7:8'));
-HEX(INET6_ATON('1:2:3:4:5:6:7:8'))
-00010002000300040005000600070008
-SELECT HEX(INET6_ATON('::2:3:4:5:6:7:8'));
-HEX(INET6_ATON('::2:3:4:5:6:7:8'))
-00000002000300040005000600070008
-SELECT HEX(INET6_ATON('1::3:4:5:6:7:8'));
-HEX(INET6_ATON('1::3:4:5:6:7:8'))
-00010000000300040005000600070008
-SELECT HEX(INET6_ATON('1:2::4:5:6:7:8'));
-HEX(INET6_ATON('1:2::4:5:6:7:8'))
-00010002000000040005000600070008
-SELECT HEX(INET6_ATON('1:2:3::5:6:7:8'));
-HEX(INET6_ATON('1:2:3::5:6:7:8'))
-00010002000300000005000600070008
-SELECT HEX(INET6_ATON('1:2:3:4::6:7:8'));
-HEX(INET6_ATON('1:2:3:4::6:7:8'))
-00010002000300040000000600070008
-SELECT HEX(INET6_ATON('1:2:3:4:5::7:8'));
-HEX(INET6_ATON('1:2:3:4:5::7:8'))
-00010002000300040005000000070008
-SELECT HEX(INET6_ATON('1:2:3:4:5:6::8'));
-HEX(INET6_ATON('1:2:3:4:5:6::8'))
-00010002000300040005000600000008
-SELECT HEX(INET6_ATON('1:2:3:4:5:6:7::'));
-HEX(INET6_ATON('1:2:3:4:5:6:7::'))
-00010002000300040005000600070000
-SELECT HEX(INET6_ATON('0000:0000::0000:0001'));
-HEX(INET6_ATON('0000:0000::0000:0001'))
-00000000000000000000000000000001
-SELECT HEX(INET6_ATON('1234:5678:9abc:def0:4321:8765:cba9:0fed'));
-HEX(INET6_ATON('1234:5678:9abc:def0:4321:8765:cba9:0fed'))
-123456789ABCDEF043218765CBA90FED
-SELECT HEX(INET6_ATON('0000:0000:0000:0000:0000:0000:0000:0001'));
-HEX(INET6_ATON('0000:0000:0000:0000:0000:0000:0000:0001'))
-00000000000000000000000000000001
-SELECT HEX(INET6_ATON('::C0A8:0102'));
-HEX(INET6_ATON('::C0A8:0102'))
-000000000000000000000000C0A80102
-SELECT HEX(INET6_ATON('::c0a8:0102'));
-HEX(INET6_ATON('::c0a8:0102'))
-000000000000000000000000C0A80102
-SELECT HEX(INET6_ATON('::192.168.1.2'));
-HEX(INET6_ATON('::192.168.1.2'))
-000000000000000000000000C0A80102
-SELECT HEX(INET6_ATON('::FfFf:C0a8:0102'));
-HEX(INET6_ATON('::FfFf:C0a8:0102'))
-00000000000000000000FFFFC0A80102
-SELECT HEX(INET6_ATON('::ffff:c0a8:0102'));
-HEX(INET6_ATON('::ffff:c0a8:0102'))
-00000000000000000000FFFFC0A80102
-SELECT HEX(INET6_ATON('::ffff:192.168.1.2'));
-HEX(INET6_ATON('::ffff:192.168.1.2'))
-00000000000000000000FFFFC0A80102
-SELECT HEX(INET6_ATON('::01.2.3.4'));
-HEX(INET6_ATON('::01.2.3.4'))
-00000000000000000000000001020304
-SELECT HEX(INET6_ATON('::1.02.3.4'));
-HEX(INET6_ATON('::1.02.3.4'))
-00000000000000000000000001020304
-SELECT HEX(INET6_ATON('::1.2.03.4'));
-HEX(INET6_ATON('::1.2.03.4'))
-00000000000000000000000001020304
-SELECT HEX(INET6_ATON('::1.2.3.04'));
-HEX(INET6_ATON('::1.2.3.04'))
-00000000000000000000000001020304
-SELECT HEX(INET6_ATON('::1.2.3.00'));
-HEX(INET6_ATON('::1.2.3.00'))
-00000000000000000000000001020300
-SELECT HEX(INET6_ATON('::FFFF:01.2.3.4'));
-HEX(INET6_ATON('::FFFF:01.2.3.4'))
-00000000000000000000FFFF01020304
-SELECT HEX(INET6_ATON('::FFFF:1.02.3.4'));
-HEX(INET6_ATON('::FFFF:1.02.3.4'))
-00000000000000000000FFFF01020304
-SELECT HEX(INET6_ATON('::FFFF:1.2.03.4'));
-HEX(INET6_ATON('::FFFF:1.2.03.4'))
-00000000000000000000FFFF01020304
-SELECT HEX(INET6_ATON('::FFFF:1.2.3.04'));
-HEX(INET6_ATON('::FFFF:1.2.3.04'))
-00000000000000000000FFFF01020304
-SELECT HEX(INET6_ATON('::FFFF:1.2.3.00'));
-HEX(INET6_ATON('::FFFF:1.2.3.00'))
-00000000000000000000FFFF01020300
-
-# -- INET6_ATON: checking the length is either 4 or 16...
-
-SELECT LENGTH(INET6_ATON('0.0.0.0'));
-LENGTH(INET6_ATON('0.0.0.0'))
-4
-SELECT LENGTH(INET6_ATON('255.255.255.255'));
-LENGTH(INET6_ATON('255.255.255.255'))
-4
-SELECT LENGTH(INET6_ATON('::'));
-LENGTH(INET6_ATON('::'))
-16
-SELECT LENGTH(INET6_ATON('1020:3040:5060:7080:90A0:B0C0:D0E0:F010'));
-LENGTH(INET6_ATON('1020:3040:5060:7080:90A0:B0C0:D0E0:F010'))
-16
-
-# -- INET6_NTOA: checking NULL, invalid types, out-of range values...
-
-SELECT INET6_NTOA(NULL);
-INET6_NTOA(NULL)
-NULL
-SELECT INET6_NTOA(123);
-INET6_NTOA(123)
-NULL
-SELECT INET6_NTOA(123.456);
-INET6_NTOA(123.456)
-NULL
-SELECT INET6_NTOA(NOW());
-INET6_NTOA(NOW())
-NULL
-SELECT INET6_NTOA(UNHEX('C0A801'));
-INET6_NTOA(UNHEX('C0A801'))
-NULL
-SELECT INET6_NTOA(UNHEX('C0A80102'));
-INET6_NTOA(UNHEX('C0A80102'))
-192.168.1.2
-SELECT INET6_NTOA(UNHEX('C0A8010203'));
-INET6_NTOA(UNHEX('C0A8010203'))
-NULL
-SELECT INET6_NTOA(UNHEX('0102030405060708090A0B0C0D0E0F'));
-INET6_NTOA(UNHEX('0102030405060708090A0B0C0D0E0F'))
-NULL
-SELECT INET6_NTOA(UNHEX('0102030405060708090A0B0C0D0E0F10'));
-INET6_NTOA(UNHEX('0102030405060708090A0B0C0D0E0F10'))
-102:304:506:708:90a:b0c:d0e:f10
-SELECT INET6_NTOA(UNHEX('0102030405060708090A0B0C0D0E0F1011'));
-INET6_NTOA(UNHEX('0102030405060708090A0B0C0D0E0F1011'))
-NULL
-SELECT INET6_NTOA('1234'), INET6_NTOA(BINARY('1234'));
-INET6_NTOA('1234') INET6_NTOA(BINARY('1234'))
-NULL 49.50.51.52
-SELECT INET6_NTOA('0123456789abcdef'), INET6_NTOA(BINARY('0123456789abcdef'));
-INET6_NTOA('0123456789abcdef') INET6_NTOA(BINARY('0123456789abcdef'))
-NULL 3031:3233:3435:3637:3839:6162:6364:6566
-
-# -- Checking double-conversion...
-
-SELECT INET6_NTOA(INET6_ATON('::'));
-INET6_NTOA(INET6_ATON('::'))
-::
-SELECT INET6_NTOA(INET6_ATON('0::0'));
-INET6_NTOA(INET6_ATON('0::0'))
-::
-SELECT INET6_NTOA(INET6_ATON('1::2'));
-INET6_NTOA(INET6_ATON('1::2'))
-1::2
-SELECT INET6_NTOA(INET6_ATON('0::'));
-INET6_NTOA(INET6_ATON('0::'))
-::
-SELECT INET6_NTOA(INET6_ATON('1::'));
-INET6_NTOA(INET6_ATON('1::'))
-1::
-SELECT INET6_NTOA(INET6_ATON('::0'));
-INET6_NTOA(INET6_ATON('::0'))
-::
-SELECT INET6_NTOA(INET6_ATON('::1'));
-INET6_NTOA(INET6_ATON('::1'))
-::1
-SELECT INET6_NTOA(INET6_ATON('1:2:3:4:5:6:7:8'));
-INET6_NTOA(INET6_ATON('1:2:3:4:5:6:7:8'))
-1:2:3:4:5:6:7:8
-SELECT INET6_NTOA(INET6_ATON('::2:3:4:5:6:7:8'));
-INET6_NTOA(INET6_ATON('::2:3:4:5:6:7:8'))
-::2:3:4:5:6:7:8
-SELECT INET6_NTOA(INET6_ATON('1::3:4:5:6:7:8'));
-INET6_NTOA(INET6_ATON('1::3:4:5:6:7:8'))
-1::3:4:5:6:7:8
-SELECT INET6_NTOA(INET6_ATON('1:2::4:5:6:7:8'));
-INET6_NTOA(INET6_ATON('1:2::4:5:6:7:8'))
-1:2::4:5:6:7:8
-SELECT INET6_NTOA(INET6_ATON('1:2:3::5:6:7:8'));
-INET6_NTOA(INET6_ATON('1:2:3::5:6:7:8'))
-1:2:3::5:6:7:8
-SELECT INET6_NTOA(INET6_ATON('1:2:3:4::6:7:8'));
-INET6_NTOA(INET6_ATON('1:2:3:4::6:7:8'))
-1:2:3:4::6:7:8
-SELECT INET6_NTOA(INET6_ATON('1:2:3:4:5::7:8'));
-INET6_NTOA(INET6_ATON('1:2:3:4:5::7:8'))
-1:2:3:4:5::7:8
-SELECT INET6_NTOA(INET6_ATON('1:2:3:4:5:6::8'));
-INET6_NTOA(INET6_ATON('1:2:3:4:5:6::8'))
-1:2:3:4:5:6::8
-SELECT INET6_NTOA(INET6_ATON('1:2:3:4:5:6:7::'));
-INET6_NTOA(INET6_ATON('1:2:3:4:5:6:7::'))
-1:2:3:4:5:6:7::
-SELECT INET6_NTOA(INET6_ATON('0000:0000::0000:0001'));
-INET6_NTOA(INET6_ATON('0000:0000::0000:0001'))
-::1
-SELECT INET6_NTOA(INET6_ATON('1234:5678:9abc:def0:4321:8765:cba9:0fed'));
-INET6_NTOA(INET6_ATON('1234:5678:9abc:def0:4321:8765:cba9:0fed'))
-1234:5678:9abc:def0:4321:8765:cba9:fed
-SELECT INET6_NTOA(INET6_ATON('0000:0000:0000:0000:0000:0000:0000:0001'));
-INET6_NTOA(INET6_ATON('0000:0000:0000:0000:0000:0000:0000:0001'))
-::1
-SELECT INET6_NTOA(INET6_ATON('::C0A8:0102'));
-INET6_NTOA(INET6_ATON('::C0A8:0102'))
-::192.168.1.2
-SELECT INET6_NTOA(INET6_ATON('::c0a8:0102'));
-INET6_NTOA(INET6_ATON('::c0a8:0102'))
-::192.168.1.2
-SELECT INET6_NTOA(INET6_ATON('::192.168.1.2'));
-INET6_NTOA(INET6_ATON('::192.168.1.2'))
-::192.168.1.2
-SELECT INET6_NTOA(INET6_ATON('::FfFf:C0a8:0102'));
-INET6_NTOA(INET6_ATON('::FfFf:C0a8:0102'))
-::ffff:192.168.1.2
-SELECT INET6_NTOA(INET6_ATON('::ffff:c0a8:0102'));
-INET6_NTOA(INET6_ATON('::ffff:c0a8:0102'))
-::ffff:192.168.1.2
-SELECT INET6_NTOA(INET6_ATON('::ffff:192.168.1.2'));
-INET6_NTOA(INET6_ATON('::ffff:192.168.1.2'))
-::ffff:192.168.1.2
-SELECT INET6_NTOA(INET6_ATON('::01.2.3.4'));
-INET6_NTOA(INET6_ATON('::01.2.3.4'))
-::1.2.3.4
-SELECT INET6_NTOA(INET6_ATON('::1.02.3.4'));
-INET6_NTOA(INET6_ATON('::1.02.3.4'))
-::1.2.3.4
-SELECT INET6_NTOA(INET6_ATON('::1.2.03.4'));
-INET6_NTOA(INET6_ATON('::1.2.03.4'))
-::1.2.3.4
-SELECT INET6_NTOA(INET6_ATON('::1.2.3.04'));
-INET6_NTOA(INET6_ATON('::1.2.3.04'))
-::1.2.3.4
-SELECT INET6_NTOA(INET6_ATON('::1.2.3.00'));
-INET6_NTOA(INET6_ATON('::1.2.3.00'))
-::1.2.3.0
-SELECT INET6_NTOA(INET6_ATON('::FFFF:01.2.3.4'));
-INET6_NTOA(INET6_ATON('::FFFF:01.2.3.4'))
-::ffff:1.2.3.4
-SELECT INET6_NTOA(INET6_ATON('::FFFF:1.02.3.4'));
-INET6_NTOA(INET6_ATON('::FFFF:1.02.3.4'))
-::ffff:1.2.3.4
-SELECT INET6_NTOA(INET6_ATON('::FFFF:1.2.03.4'));
-INET6_NTOA(INET6_ATON('::FFFF:1.2.03.4'))
-::ffff:1.2.3.4
-SELECT INET6_NTOA(INET6_ATON('::FFFF:1.2.3.04'));
-INET6_NTOA(INET6_ATON('::FFFF:1.2.3.04'))
-::ffff:1.2.3.4
-SELECT INET6_NTOA(INET6_ATON('::FFFF:1.2.3.00'));
-INET6_NTOA(INET6_ATON('::FFFF:1.2.3.00'))
-::ffff:1.2.3.0
-
-# -- Comparing INET_ATON() and INET6_ATON()...
-
-SELECT HEX(INET_ATON('192.168.1.2'));
-HEX(INET_ATON('192.168.1.2'))
-C0A80102
-SELECT HEX(INET6_ATON('192.168.1.2'));
-HEX(INET6_ATON('192.168.1.2'))
-C0A80102
-SELECT HEX(INET_ATON('255.255.255.255'));
-HEX(INET_ATON('255.255.255.255'))
-FFFFFFFF
-SELECT HEX(INET6_ATON('255.255.255.255'));
-HEX(INET6_ATON('255.255.255.255'))
-FFFFFFFF
-SELECT HEX(INET_ATON('192.168.08.2'));
-HEX(INET_ATON('192.168.08.2'))
-C0A80802
-SELECT HEX(INET6_ATON('192.168.08.2'));
-HEX(INET6_ATON('192.168.08.2'))
-C0A80802
-SELECT HEX(INET_ATON('192.168.0x8.2'));
-HEX(INET_ATON('192.168.0x8.2'))
-NULL
-SELECT HEX(INET6_ATON('192.168.0x8.2'));
-HEX(INET6_ATON('192.168.0x8.2'))
-NULL
-SELECT HEX(INET_ATON('1.2.255'));
-HEX(INET_ATON('1.2.255'))
-10200FF
-SELECT HEX(INET6_ATON('1.2.255'));
-HEX(INET6_ATON('1.2.255'))
-NULL
-SELECT HEX(INET_ATON('1.2.256'));
-HEX(INET_ATON('1.2.256'))
-NULL
-SELECT HEX(INET6_ATON('1.2.256'));
-HEX(INET6_ATON('1.2.256'))
-NULL
-SELECT HEX(INET_ATON('1.0002.3.4'));
-HEX(INET_ATON('1.0002.3.4'))
-1020304
-SELECT HEX(INET6_ATON('1.0002.3.4'));
-HEX(INET6_ATON('1.0002.3.4'))
-NULL
-SELECT HEX(INET_ATON('1.2.3.4.5'));
-HEX(INET_ATON('1.2.3.4.5'))
-102030405
-SELECT HEX(INET6_ATON('1.2.3.4.5'));
-HEX(INET6_ATON('1.2.3.4.5'))
-NULL
-
-# -- Checking mix of INET- and INET6- functions...
-
-SELECT HEX(INET6_ATON(INET_NTOA(INET_ATON('1.2.3.4')))) AS x;
-x
-01020304
-
-# -- Checking IS_IPV4() / IS_IPV6()...
-
-SELECT IS_IPV4(NULL);
-IS_IPV4(NULL)
-0
-SELECT IS_IPV4(1);
-IS_IPV4(1)
-0
-SELECT IS_IPV4(1.0);
-IS_IPV4(1.0)
-0
-SELECT IS_IPV4('1.2.3.4');
-IS_IPV4('1.2.3.4')
-1
-SELECT IS_IPV4('001.02.000.255');
-IS_IPV4('001.02.000.255')
-1
-SELECT IS_IPV4('::1.2.0.255');
-IS_IPV4('::1.2.0.255')
-0
-SELECT IS_IPV4('::1');
-IS_IPV4('::1')
-0
-SELECT IS_IPV4(BINARY('1.2.3.4'));
-IS_IPV4(BINARY('1.2.3.4'))
-1
-SELECT IS_IPV6(NULL);
-IS_IPV6(NULL)
-0
-SELECT IS_IPV6(1);
-IS_IPV6(1)
-0
-SELECT IS_IPV6(1.0);
-IS_IPV6(1.0)
-0
-SELECT IS_IPV6('1.2.3.4');
-IS_IPV6('1.2.3.4')
-0
-SELECT IS_IPV6('001.02.000.255');
-IS_IPV6('001.02.000.255')
-0
-SELECT IS_IPV6('::001.02.000.255');
-IS_IPV6('::001.02.000.255')
-1
-SELECT IS_IPV6('::1.2.0.255');
-IS_IPV6('::1.2.0.255')
-1
-SELECT IS_IPV6('::1');
-IS_IPV6('::1')
-1
-SELECT IS_IPV6('0000:0000:0000:0000:0000:0000:0000:0001');
-IS_IPV6('0000:0000:0000:0000:0000:0000:0000:0001')
-1
-SELECT IS_IPV6(BINARY('0000:0000:0000:0000:0000:0000:0000:0001'));
-IS_IPV6(BINARY('0000:0000:0000:0000:0000:0000:0000:0001'))
-1
-
-# -- Checking IS_IPV4_MAPPED() and IS_IPV4_COMPAT()...
-
-SELECT IS_IPV4_MAPPED(INET6_ATON('1.2.3.4')),
-IS_IPV4_COMPAT(INET6_ATON('1.2.3.4'));
-IS_IPV4_MAPPED(INET6_ATON('1.2.3.4')) IS_IPV4_COMPAT(INET6_ATON('1.2.3.4'))
-0 0
-SELECT IS_IPV4_MAPPED(INET6_ATON('::1.2.3.4')),
-IS_IPV4_COMPAT(INET6_ATON('::1.2.3.4'));
-IS_IPV4_MAPPED(INET6_ATON('::1.2.3.4')) IS_IPV4_COMPAT(INET6_ATON('::1.2.3.4'))
-0 1
-SELECT IS_IPV4_MAPPED(INET6_ATON('::FFFF:1.2.3.4')),
-IS_IPV4_COMPAT(INET6_ATON('::FFFF:1.2.3.4'));
-IS_IPV4_MAPPED(INET6_ATON('::FFFF:1.2.3.4')) IS_IPV4_COMPAT(INET6_ATON('::FFFF:1.2.3.4'))
-1 0
-SELECT IS_IPV4_MAPPED(INET6_ATON('::ABCD:1.2.3.4')),
-IS_IPV4_COMPAT(INET6_ATON('::ABCD:1.2.3.4'));
-IS_IPV4_MAPPED(INET6_ATON('::ABCD:1.2.3.4')) IS_IPV4_COMPAT(INET6_ATON('::ABCD:1.2.3.4'))
-0 0
-SELECT IS_IPV4_MAPPED(INET6_ATON('::1')),
-IS_IPV4_COMPAT(INET6_ATON('::1'));
-IS_IPV4_MAPPED(INET6_ATON('::1')) IS_IPV4_COMPAT(INET6_ATON('::1'))
-0 0
-SELECT IS_IPV4_MAPPED(INET6_ATON('::')),
-IS_IPV4_COMPAT(INET6_ATON('::'));
-IS_IPV4_MAPPED(INET6_ATON('::')) IS_IPV4_COMPAT(INET6_ATON('::'))
-0 0
-
-# -- Checking IS_IPV4_COMPAT()...
-
-
-# -- Working with a table...
-
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-CREATE TABLE t1(ip INT UNSIGNED);
-CREATE TABLE t2(ip VARBINARY(16));
-
-INSERT INTO t1 VALUES
-(INET_ATON('1.2.3.4')), (INET_ATON('255.255.255.255'));
-SELECT INET_NTOA(ip) FROM t1;
-INET_NTOA(ip)
-1.2.3.4
-255.255.255.255
-
-INSERT INTO t2 SELECT INET6_ATON(INET_NTOA(ip)) FROM t1;
-SELECT INET6_NTOA(ip), HEX(ip), LENGTH(ip) FROM t2;
-INET6_NTOA(ip) HEX(ip) LENGTH(ip)
-1.2.3.4 01020304 4
-255.255.255.255 FFFFFFFF 4
-DELETE FROM t2;
-
-INSERT INTO t2 VALUES
-(INET6_ATON('1.2.3.4')), (INET6_ATON('255.255.255.255')),
-(INET6_ATON('::1.2.3.4')), (INET6_ATON('::ffff:255.255.255.255')),
-(INET6_ATON('::')), (INET6_ATON('::1')),
-(INET6_ATON('1020:3040:5060:7080:90A0:B0C0:D0E0:F010'));
-SELECT INET6_NTOA(ip), HEX(ip), LENGTH(ip) FROM t2;
-INET6_NTOA(ip) HEX(ip) LENGTH(ip)
-1.2.3.4 01020304 4
-255.255.255.255 FFFFFFFF 4
-::1.2.3.4 00000000000000000000000001020304 16
-::ffff:255.255.255.255 00000000000000000000FFFFFFFFFFFF 16
-:: 00000000000000000000000000000000 16
-::1 00000000000000000000000000000001 16
-1020:3040:5060:7080:90a0:b0c0:d0e0:f010 102030405060708090A0B0C0D0E0F010 16
-
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# MDEV-4018 : Microseconds in GET_LOCK()
-#
-connection default;
-select is_used_lock('test') = connection_id();
-is_used_lock('test') = connection_id()
-NULL
-# GET_LOCK returns 1 if it manages to acquire a lock
-select get_lock('test', 0);
-get_lock('test', 0)
-1
-connect con1,localhost,root,,;
-connection con1;
-select is_used_lock('test') = connection_id();
-is_used_lock('test') = connection_id()
-0
-select get_lock('test', 0);
-get_lock('test', 0)
-0
-select get_lock('test', 1.0);
-get_lock('test', 1.0)
-0
-select get_lock('test', 1.5);
-get_lock('test', 1.5)
-0
-select get_lock('test', 0.1);
-get_lock('test', 0.1)
-0
-select get_lock('test', 0.000001);
-get_lock('test', 0.000001)
-0
-select get_lock('test', 0.0000000000000001);
-get_lock('test', 0.0000000000000001)
-0
-connection default;
-select is_used_lock('test') = connection_id();
-is_used_lock('test') = connection_id()
-1
-select release_lock('test');
-release_lock('test')
-1
-
-# -- Done.
-
-#
-# MDEV-13685 Can not replay binary log due to Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'concat'
-#
-SET NAMES utf8;
-SELECT COERCIBILITY(NAME_CONST('name','test'));
-COERCIBILITY(NAME_CONST('name','test'))
-2
-SELECT COERCIBILITY(NAME_CONST('name',TIME'00:00:00'));
-COERCIBILITY(NAME_CONST('name',TIME'00:00:00'))
-5
-SELECT COERCIBILITY(NAME_CONST('name',15));
-COERCIBILITY(NAME_CONST('name',15))
-5
-SELECT CONCAT(NAME_CONST('name',15),'오');
-CONCAT(NAME_CONST('name',15),'오')
-15오
-SET NAMES latin1;
-#
-# MDEV-14116 INET6_NTOA output is set as null to varchar(39) variable
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE ip_full_addr varchar(39) DEFAULT "";
-SELECT INET6_NTOA(UNHEX('20000000000000000000000000000000')) into ip_full_addr;
-SELECT ip_full_addr;
-END;
-$$
-CALL p1();
-ip_full_addr
-2000::
-DROP PROCEDURE p1;
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10134 Add full support for DEFAULT
-#
-CREATE TABLE t1 (
-a VARCHAR(30),
-b BIGINT DEFAULT INET_ATON(a),
-a1 VARCHAR(30) DEFAULT INET_NTOA(b),
-c INT DEFAULT IS_IPV4(a),
-d INT DEFAULT IS_IPV6(a)
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) DEFAULT NULL,
- `b` bigint(20) DEFAULT inet_aton(`a`),
- `a1` varchar(30) DEFAULT inet_ntoa(`b`),
- `c` int(11) DEFAULT is_ipv4(`a`),
- `d` int(11) DEFAULT is_ipv6(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('192.168.001.001'),('::1'),('xxx');
-SELECT * FROM t1;
-a b a1 c d
-192.168.001.001 3232235777 192.168.1.1 1 0
-::1 NULL NULL 0 1
-xxx NULL NULL 0 0
-DROP TABLE t1;
-CREATE TABLE t1 (
-str VARCHAR(128),
-addr VARBINARY(16) DEFAULT INET6_ATON(str),
-str1 VARCHAR(128) DEFAULT INET6_NTOA(addr),
-b INT DEFAULT IS_IPV4_COMPAT(addr),
-c INT DEFAULT IS_IPV4_MAPPED(addr)
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `str` varchar(128) DEFAULT NULL,
- `addr` varbinary(16) DEFAULT inet6_aton(`str`),
- `str1` varchar(128) DEFAULT inet6_ntoa(`addr`),
- `b` int(11) DEFAULT is_ipv4_compat(`addr`),
- `c` int(11) DEFAULT is_ipv4_mapped(`addr`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (str) VALUES ('::FFFF:192.168.0.1'),('::10.0.5.9');
-SELECT str, str1, b,c FROM t1;
-str str1 b c
-::FFFF:192.168.0.1 ::ffff:192.168.0.1 0 1
-::10.0.5.9 ::10.0.5.9 1 0
-DROP TABLE t1;
-#
-# MDEV-14613: Assertion `fixed == 0' failed in Item_func::fix_fields
-#
-CREATE TABLE `t1` (
-`numgtfmt` char(10) COLLATE utf8_bin NOT NULL
-) DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-create view v1(numgtfmt)
-as
-select 'x' from t1
-union
-select 'x' from t1 ;
-SELECT * FROM v1 WHERE numgtfmt = NAME_CONST('wnumgtfmt',_utf8'QEDITIONS' COLLATE 'utf8_bin');
-numgtfmt
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12854 Synchronize CREATE..SELECT data type and result set metadata data type for INT functions
-#
-SELECT INET_ATON("255.255.255.255.255.255.255.255");
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def INET_ATON("255.255.255.255.255.255.255.255") 8 21 20 Y 32928 0 63
-INET_ATON("255.255.255.255.255.255.255.255")
-18446744073709551615
diff --git a/mysql-test/r/func_op.result b/mysql-test/r/func_op.result
deleted file mode 100644
index 36fe8446638..00000000000
--- a/mysql-test/r/func_op.result
+++ /dev/null
@@ -1,51 +0,0 @@
-select 1+1,1-1,1+1*2,8/5,8%5,mod(8,5),mod(8,5)|0,-(1+1)*-2;
-1+1 1-1 1+1*2 8/5 8%5 mod(8,5) mod(8,5)|0 -(1+1)*-2
-2 0 3 1.6000 3 3 3 4
-explain extended select 1+1,1-1,1+1*2,8/5,8%5,mod(8,5),mod(8,5)|0,-(1+1)*-2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 1 + 1 AS `1+1`,1 - 1 AS `1-1`,1 + 1 * 2 AS `1+1*2`,8 / 5 AS `8/5`,8 MOD 5 AS `8%5`,8 MOD 5 AS `mod(8,5)`,8 MOD 5 | 0 AS `mod(8,5)|0`,-(1 + 1) * -2 AS `-(1+1)*-2`
-select 1 | (1+1),5 & 3,bit_count(7) ;
-1 | (1+1) 5 & 3 bit_count(7)
-3 1 3
-explain extended select 1 | (1+1),5 & 3,bit_count(7) ;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 1 | 1 + 1 AS `1 | (1+1)`,5 & 3 AS `5 & 3`,bit_count(7) AS `bit_count(7)`
-select 1 << 32,1 << 63, 1 << 64, 4 >> 2, 4 >> 63, 1<< 63 >> 60;
-1 << 32 1 << 63 1 << 64 4 >> 2 4 >> 63 1<< 63 >> 60
-4294967296 9223372036854775808 0 1 0 8
-select -1 | 0, -1 ^ 0, -1 & 0;
--1 | 0 -1 ^ 0 -1 & 0
-18446744073709551615 18446744073709551615 0
-select -1 | 1, -1 ^ 1, -1 & 1;
--1 | 1 -1 ^ 1 -1 & 1
-18446744073709551615 18446744073709551614 1
-select 1 | -1, 1 ^ -1, 1 & -1;
-1 | -1 1 ^ -1 1 & -1
-18446744073709551615 18446744073709551614 1
-select 0 | -1, 0 ^ -1, 0 & -1;
-0 | -1 0 ^ -1 0 & -1
-18446744073709551615 18446744073709551615 0
-select -1 >> 0, -1 << 0;
--1 >> 0 -1 << 0
-18446744073709551615 18446744073709551615
-select -1 >> 1, -1 << 1;
--1 >> 1 -1 << 1
-9223372036854775807 18446744073709551614
-drop table if exists t1,t2;
-create table t1(a int);
-create table t2(a int, b int);
-insert into t1 values (1), (2), (3);
-insert into t2 values (1, 7), (3, 7);
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-select t1.a, t2.a, t2.b, bit_count(t2.b) from t1 left join t2 on t1.a=t2.a;
-a a b bit_count(t2.b)
-1 1 7 3
-2 NULL NULL NULL
-3 3 7 3
-SET optimizer_switch=@save_optimizer_switch;
-drop table t1, t2;
diff --git a/mysql-test/r/func_regexp.result b/mysql-test/r/func_regexp.result
deleted file mode 100644
index 187df785f69..00000000000
--- a/mysql-test/r/func_regexp.result
+++ /dev/null
@@ -1,165 +0,0 @@
-drop table if exists t1;
-set names latin1;
-drop table if exists t1;
-create table t1 as
-select repeat(' ', 64) as s1, repeat(' ',64) as s2
-union
-select null, null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varchar(64) DEFAULT NULL,
- `s2` varchar(64) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-delete from t1;
-insert into t1 values('aaa','aaa');
-insert into t1 values('aaa|qqq','qqq');
-insert into t1 values('gheis','^[^a-dXYZ]+$');
-insert into t1 values('aab','^aa?b');
-insert into t1 values('Baaan','^Ba*n');
-insert into t1 values('aaa','qqq|aaa');
-insert into t1 values('qqq','qqq|aaa');
-insert into t1 values('bbb','qqq|aaa');
-insert into t1 values('bbb','qqq');
-insert into t1 values('aaa','aba');
-insert into t1 values(null,'abc');
-insert into t1 values('def',null);
-insert into t1 values(null,null);
-insert into t1 values('ghi','ghi[');
-select HIGH_PRIORITY s1 regexp s2 from t1;
-s1 regexp s2
-0
-0
-0
-1
-1
-1
-1
-1
-1
-1
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-create table t1 (xxx char(128));
-insert into t1 (xxx) values('this is a test of some long text to see what happens');
-select * from t1 where xxx regexp('is a test of some long text to');
-xxx
-this is a test of some long text to see what happens
-explain extended select * from t1 where xxx regexp('is a test of some long text to');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select 'this is a test of some long text to see what happens' AS `xxx` from dual where 1
-select * from t1 where xxx regexp('is a test of some long text to ');
-xxx
-this is a test of some long text to see what happens
-select * from t1 where xxx regexp('is a test of some long text to s');
-xxx
-this is a test of some long text to see what happens
-select * from t1 where xxx regexp('is a test of some long text to se');
-xxx
-this is a test of some long text to see what happens
-drop table t1;
-create table t1 (xxx char(128));
-insert into t1 (xxx) values('this is some text: to test - out.reg exp (22/45)');
-select * from t1 where xxx REGEXP '^this is some text: to test - out\\.reg exp [[(][0-9]+[/\\][0-9]+[])][ ]*$';
-xxx
-this is some text: to test - out.reg exp (22/45)
-drop table t1;
-select _latin1 0xFF regexp _latin1 '[[:lower:]]' COLLATE latin1_bin;
-_latin1 0xFF regexp _latin1 '[[:lower:]]' COLLATE latin1_bin
-1
-select _koi8r 0xFF regexp _koi8r '[[:lower:]]' COLLATE koi8r_bin;
-_koi8r 0xFF regexp _koi8r '[[:lower:]]' COLLATE koi8r_bin
-0
-select _latin1 0xFF regexp _latin1 '[[:upper:]]' COLLATE latin1_bin;
-_latin1 0xFF regexp _latin1 '[[:upper:]]' COLLATE latin1_bin
-0
-select _koi8r 0xFF regexp _koi8r '[[:upper:]]' COLLATE koi8r_bin;
-_koi8r 0xFF regexp _koi8r '[[:upper:]]' COLLATE koi8r_bin
-1
-select _latin1 0xF7 regexp _latin1 '[[:alpha:]]';
-_latin1 0xF7 regexp _latin1 '[[:alpha:]]'
-0
-select _koi8r 0xF7 regexp _koi8r '[[:alpha:]]';
-_koi8r 0xF7 regexp _koi8r '[[:alpha:]]'
-1
-select _latin1'a' regexp _latin1'A' collate latin1_general_ci;
-_latin1'a' regexp _latin1'A' collate latin1_general_ci
-1
-select _latin1'a' regexp _latin1'A' collate latin1_bin;
-_latin1'a' regexp _latin1'A' collate latin1_bin
-0
-create table t1 (a varchar(40));
-insert into t1 values ('C1'),('C2'),('R1'),('C3'),('R2'),('R3');
-prepare stmt1 from 'select a from t1 where a rlike ? order by a';
-set @a="^C.*";
-execute stmt1 using @a;
-a
-C1
-C2
-C3
-set @a="^R.*";
-execute stmt1 using @a;
-a
-R1
-R2
-R3
-deallocate prepare stmt1;
-drop table t1;
-End of 4.1 tests
-SELECT 1 REGEXP NULL;
-1 REGEXP NULL
-NULL
-SELECT '' REGEXP BINARY NULL;
-'' REGEXP BINARY NULL
-NULL
-SELECT NULL REGEXP BINARY NULL;
-NULL REGEXP BINARY NULL
-NULL
-SELECT 'A' REGEXP BINARY NULL;
-'A' REGEXP BINARY NULL
-NULL
-SELECT "ABC" REGEXP BINARY NULL;
-"ABC" REGEXP BINARY NULL
-NULL
-End of 5.0 tests
-CREATE TABLE t1(a INT, b CHAR(4));
-INSERT INTO t1 VALUES (1, '6.1'), (1, '7.0'), (1, '8.0');
-PREPARE stmt1 FROM "SELECT a FROM t1 WHERE a=1 AND '7.0' REGEXP b LIMIT 1";
-EXECUTE stmt1;
-a
-1
-EXECUTE stmt1;
-a
-1
-EXECUTE stmt1;
-a
-1
-EXECUTE stmt1;
-a
-1
-DEALLOCATE PREPARE stmt1;
-DROP TABLE t1;
-End of 5.1 tests
-SELECT ' ' REGEXP '[[:blank:]]';
-' ' REGEXP '[[:blank:]]'
-1
-SELECT '\t' REGEXP '[[:blank:]]';
-'\t' REGEXP '[[:blank:]]'
-1
-SELECT ' ' REGEXP '[[:space:]]';
-' ' REGEXP '[[:space:]]'
-1
-SELECT '\t' REGEXP '[[:space:]]';
-'\t' REGEXP '[[:space:]]'
-1
-#
-# MDEV-13967 Parameter data type control for Item_long_func
-#
-SELECT REGEXP_INSTR('111222333',2);
-REGEXP_INSTR('111222333',2)
-4
diff --git a/mysql-test/r/func_regexp_pcre.result b/mysql-test/r/func_regexp_pcre.result
deleted file mode 100644
index e030df99756..00000000000
--- a/mysql-test/r/func_regexp_pcre.result
+++ /dev/null
@@ -1,930 +0,0 @@
-SET NAMES utf8;
-#
-# MDEV-4425 REGEXP enhancements
-#
-#
-# Checking RLIKE
-#
-SELECT 'à' RLIKE '^.$';
-'à' RLIKE '^.$'
-1
-SELECT 'à' RLIKE '\\x{00E0}';
-'à' RLIKE '\\x{00E0}'
-1
-SELECT 'À' RLIKE '\\x{00E0}';
-'À' RLIKE '\\x{00E0}'
-1
-SELECT 'à' RLIKE '\\x{00C0}';
-'à' RLIKE '\\x{00C0}'
-1
-SELECT 'À' RLIKE '\\x{00C0}';
-'À' RLIKE '\\x{00C0}'
-1
-SELECT 'à' RLIKE '\\x{00E0}' COLLATE utf8_bin;
-'à' RLIKE '\\x{00E0}' COLLATE utf8_bin
-1
-SELECT 'À' RLIKE '\\x{00E0}' COLLATE utf8_bin;
-'À' RLIKE '\\x{00E0}' COLLATE utf8_bin
-0
-SELECT 'à' RLIKE '\\x{00C0}' COLLATE utf8_bin;
-'à' RLIKE '\\x{00C0}' COLLATE utf8_bin
-0
-SELECT 'À' RLIKE '\\x{00C0}' COLLATE utf8_bin;
-'À' RLIKE '\\x{00C0}' COLLATE utf8_bin
-1
-CREATE TABLE t1 (s VARCHAR(10) CHARACTER SET utf8);
-INSERT INTO t1 VALUES ('a'),('A');
-CREATE TABLE t2 (p VARCHAR(10) CHARACTER SET utf8);
-INSERT INTO t2 VALUES ('a'),('(?i)a'),('(?-i)a'),('A'),('(?i)A'),('(?-i)A');
-SELECT s,p,s RLIKE p, s COLLATE utf8_bin RLIKE p FROM t1,t2 ORDER BY BINARY s, BINARY p;
-s p s RLIKE p s COLLATE utf8_bin RLIKE p
-A (?-i)A 1 1
-A (?-i)a 0 0
-A (?i)A 1 1
-A (?i)a 1 1
-A A 1 1
-A a 1 0
-a (?-i)A 0 0
-a (?-i)a 1 1
-a (?i)A 1 1
-a (?i)a 1 1
-a A 1 0
-a a 1 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (ch VARCHAR(22)) CHARACTER SET utf8;
-CREATE TABLE t2 (class VARCHAR(32)) CHARACTER SET utf8;
-INSERT INTO t1 VALUES ('Я'),('Σ'),('A'),('À');
-INSERT INTO t1 VALUES ('Ñ'),('σ'),('a'),('à');
-INSERT INTO t1 VALUES ('ã—'),('ê°·'),('ප');
-INSERT INTO t1 VALUES ('1'),('௨');
-INSERT INTO t2 VALUES ('\\p{Cyrillic}'),('\\p{Greek}'),('\\p{Latin}');
-INSERT INTO t2 VALUES ('\\p{Han}'),('\\p{Hangul}');
-INSERT INTO t2 VALUES ('\\p{Sinhala}'), ('\\p{Tamil}');
-INSERT INTO t2 VALUES ('\\p{L}'),('\\p{Ll}'),('\\p{Lu}'),('\\p{L&}');
-INSERT INTO t2 VALUES ('[[:alpha:]]'),('[[:digit:]]');
-SELECT class, ch, ch RLIKE class FROM t1, t2 ORDER BY class, BINARY ch;
-class ch ch RLIKE class
-[[:alpha:]] 1 0
-[[:alpha:]] A 1
-[[:alpha:]] a 1
-[[:alpha:]] À 1
-[[:alpha:]] à 1
-[[:alpha:]] Σ 1
-[[:alpha:]] σ 1
-[[:alpha:]] Я 1
-[[:alpha:]] Ñ 1
-[[:alpha:]] ௨ 0
-[[:alpha:]] ප 1
-[[:alpha:]] ã— 1
-[[:alpha:]] ê°· 1
-[[:digit:]] 1 1
-[[:digit:]] A 0
-[[:digit:]] a 0
-[[:digit:]] À 0
-[[:digit:]] à 0
-[[:digit:]] Σ 0
-[[:digit:]] σ 0
-[[:digit:]] Я 0
-[[:digit:]] Ñ 0
-[[:digit:]] ௨ 1
-[[:digit:]] ප 0
-[[:digit:]] ã— 0
-[[:digit:]] ê°· 0
-\p{Cyrillic} 1 0
-\p{Cyrillic} A 0
-\p{Cyrillic} a 0
-\p{Cyrillic} À 0
-\p{Cyrillic} à 0
-\p{Cyrillic} Σ 0
-\p{Cyrillic} σ 0
-\p{Cyrillic} Я 1
-\p{Cyrillic} Ñ 1
-\p{Cyrillic} ௨ 0
-\p{Cyrillic} ප 0
-\p{Cyrillic} ã— 0
-\p{Cyrillic} ê°· 0
-\p{Greek} 1 0
-\p{Greek} A 0
-\p{Greek} a 0
-\p{Greek} À 0
-\p{Greek} à 0
-\p{Greek} Σ 1
-\p{Greek} σ 1
-\p{Greek} Я 0
-\p{Greek} Ñ 0
-\p{Greek} ௨ 0
-\p{Greek} ප 0
-\p{Greek} ã— 0
-\p{Greek} ê°· 0
-\p{Hangul} 1 0
-\p{Hangul} A 0
-\p{Hangul} a 0
-\p{Hangul} À 0
-\p{Hangul} à 0
-\p{Hangul} Σ 0
-\p{Hangul} σ 0
-\p{Hangul} Я 0
-\p{Hangul} Ñ 0
-\p{Hangul} ௨ 0
-\p{Hangul} ප 0
-\p{Hangul} ã— 0
-\p{Hangul} ê°· 1
-\p{Han} 1 0
-\p{Han} A 0
-\p{Han} a 0
-\p{Han} À 0
-\p{Han} à 0
-\p{Han} Σ 0
-\p{Han} σ 0
-\p{Han} Я 0
-\p{Han} Ñ 0
-\p{Han} ௨ 0
-\p{Han} ප 0
-\p{Han} ã— 1
-\p{Han} ê°· 0
-\p{L&} 1 0
-\p{L&} A 1
-\p{L&} a 1
-\p{L&} À 1
-\p{L&} à 1
-\p{L&} Σ 1
-\p{L&} σ 1
-\p{L&} Я 1
-\p{L&} Ñ 1
-\p{L&} ௨ 0
-\p{L&} ප 0
-\p{L&} ã— 0
-\p{L&} ê°· 0
-\p{Latin} 1 0
-\p{Latin} A 1
-\p{Latin} a 1
-\p{Latin} À 1
-\p{Latin} à 1
-\p{Latin} Σ 0
-\p{Latin} σ 0
-\p{Latin} Я 0
-\p{Latin} Ñ 0
-\p{Latin} ௨ 0
-\p{Latin} ප 0
-\p{Latin} ã— 0
-\p{Latin} ê°· 0
-\p{Ll} 1 0
-\p{Ll} A 0
-\p{Ll} a 1
-\p{Ll} À 0
-\p{Ll} à 1
-\p{Ll} Σ 0
-\p{Ll} σ 1
-\p{Ll} Я 0
-\p{Ll} Ñ 1
-\p{Ll} ௨ 0
-\p{Ll} ප 0
-\p{Ll} ã— 0
-\p{Ll} ê°· 0
-\p{Lu} 1 0
-\p{Lu} A 1
-\p{Lu} a 0
-\p{Lu} À 1
-\p{Lu} à 0
-\p{Lu} Σ 1
-\p{Lu} σ 0
-\p{Lu} Я 1
-\p{Lu} Ñ 0
-\p{Lu} ௨ 0
-\p{Lu} ප 0
-\p{Lu} ã— 0
-\p{Lu} ê°· 0
-\p{L} 1 0
-\p{L} A 1
-\p{L} a 1
-\p{L} À 1
-\p{L} à 1
-\p{L} Σ 1
-\p{L} σ 1
-\p{L} Я 1
-\p{L} Ñ 1
-\p{L} ௨ 0
-\p{L} ප 1
-\p{L} ã— 1
-\p{L} ê°· 1
-\p{Sinhala} 1 0
-\p{Sinhala} A 0
-\p{Sinhala} a 0
-\p{Sinhala} À 0
-\p{Sinhala} à 0
-\p{Sinhala} Σ 0
-\p{Sinhala} σ 0
-\p{Sinhala} Я 0
-\p{Sinhala} Ñ 0
-\p{Sinhala} ௨ 0
-\p{Sinhala} ප 1
-\p{Sinhala} ã— 0
-\p{Sinhala} ê°· 0
-\p{Tamil} 1 0
-\p{Tamil} A 0
-\p{Tamil} a 0
-\p{Tamil} À 0
-\p{Tamil} à 0
-\p{Tamil} Σ 0
-\p{Tamil} σ 0
-\p{Tamil} Я 0
-\p{Tamil} Ñ 0
-\p{Tamil} ௨ 1
-\p{Tamil} ප 0
-\p{Tamil} ã— 0
-\p{Tamil} ê°· 0
-DROP TABLE t1, t2;
-SELECT 0xFF RLIKE '\\w';
-0xFF RLIKE '\\w'
-0
-SELECT 0xFF RLIKE '(*UCP)\\w';
-0xFF RLIKE '(*UCP)\\w'
-1
-SELECT '\n' RLIKE '(*CR)';
-'\n' RLIKE '(*CR)'
-1
-SELECT '\n' RLIKE '(*LF)';
-'\n' RLIKE '(*LF)'
-1
-SELECT '\n' RLIKE '(*CRLF)';
-'\n' RLIKE '(*CRLF)'
-1
-SELECT '\n' RLIKE '(*ANYCRLF)';
-'\n' RLIKE '(*ANYCRLF)'
-1
-SELECT '\n' RLIKE '(*ANY)';
-'\n' RLIKE '(*ANY)'
-1
-SELECT 'a\nb' RLIKE '(*LF)(?m)^a$';
-'a\nb' RLIKE '(*LF)(?m)^a$'
-1
-SELECT 'a\nb' RLIKE '(*CR)(?m)^a$';
-'a\nb' RLIKE '(*CR)(?m)^a$'
-0
-SELECT 'a\nb' RLIKE '(*CRLF)(?m)^a$';
-'a\nb' RLIKE '(*CRLF)(?m)^a$'
-0
-SELECT 'a\nb' RLIKE '(*ANYCRLF)(?m)^a$';
-'a\nb' RLIKE '(*ANYCRLF)(?m)^a$'
-1
-SELECT 'a\rb' RLIKE '(*LF)(?m)^a$';
-'a\rb' RLIKE '(*LF)(?m)^a$'
-0
-SELECT 'a\rb' RLIKE '(*CR)(?m)^a$';
-'a\rb' RLIKE '(*CR)(?m)^a$'
-1
-SELECT 'a\rb' RLIKE '(*CRLF)(?m)^a$';
-'a\rb' RLIKE '(*CRLF)(?m)^a$'
-0
-SELECT 'a\rb' RLIKE '(*ANYCRLF)(?m)^a$';
-'a\rb' RLIKE '(*ANYCRLF)(?m)^a$'
-1
-SELECT 'a\r\nb' RLIKE '(*LF)(?m)^a$';
-'a\r\nb' RLIKE '(*LF)(?m)^a$'
-0
-SELECT 'a\r\nb' RLIKE '(*CR)(?m)^a$';
-'a\r\nb' RLIKE '(*CR)(?m)^a$'
-1
-SELECT 'a\r\nb' RLIKE '(*CRLF)(?m)^a$';
-'a\r\nb' RLIKE '(*CRLF)(?m)^a$'
-1
-SELECT 'a\r\nb' RLIKE '(*ANYCRLF)(?m)^a$';
-'a\r\nb' RLIKE '(*ANYCRLF)(?m)^a$'
-1
-SELECT 'aa' RLIKE '(a)\\g1';
-'aa' RLIKE '(a)\\g1'
-1
-SELECT 'aa bb' RLIKE '(a)\\g1 (b)\\g2';
-'aa bb' RLIKE '(a)\\g1 (b)\\g2'
-1
-SELECT 'aaaaa' RLIKE 'a{0,5}';
-'aaaaa' RLIKE 'a{0,5}'
-1
-SELECT 'aaaaa' RLIKE 'a{1,3}';
-'aaaaa' RLIKE 'a{1,3}'
-1
-SELECT 'aaaaa' RLIKE 'a{0,}';
-'aaaaa' RLIKE 'a{0,}'
-1
-SELECT 'aaaaa' RLIKE 'a{10,20}';
-'aaaaa' RLIKE 'a{10,20}'
-0
-SELECT 'aabb' RLIKE 'a(?R)?b';
-'aabb' RLIKE 'a(?R)?b'
-1
-SELECT 'aabb' RLIKE 'aa(?R)?bb';
-'aabb' RLIKE 'aa(?R)?bb'
-1
-SELECT 'abcc' RLIKE 'a(?>bc|b)c';
-'abcc' RLIKE 'a(?>bc|b)c'
-1
-SELECT 'abc' RLIKE 'a(?>bc|b)c';
-'abc' RLIKE 'a(?>bc|b)c'
-0
-SELECT 'ab' RLIKE 'a(?!b)';
-'ab' RLIKE 'a(?!b)'
-0
-SELECT 'ac' RLIKE 'a(?!b)';
-'ac' RLIKE 'a(?!b)'
-1
-SELECT 'ab' RLIKE 'a(?=b)';
-'ab' RLIKE 'a(?=b)'
-1
-SELECT 'ac' RLIKE 'a(?=b)';
-'ac' RLIKE 'a(?=b)'
-0
-SELECT 'ab' RLIKE '(?<!a)b';
-'ab' RLIKE '(?<!a)b'
-0
-SELECT 'cb' RLIKE '(?<!a)b';
-'cb' RLIKE '(?<!a)b'
-1
-SELECT 'ab' RLIKE '(?<=a)b';
-'ab' RLIKE '(?<=a)b'
-1
-SELECT 'cb' RLIKE '(?<=a)b';
-'cb' RLIKE '(?<=a)b'
-0
-SELECT 'aa' RLIKE '(?P<pattern>a)(?P=pattern)';
-'aa' RLIKE '(?P<pattern>a)(?P=pattern)'
-1
-SELECT 'aba' RLIKE '(?P<pattern>a)b(?P=pattern)';
-'aba' RLIKE '(?P<pattern>a)b(?P=pattern)'
-1
-SELECT 'a' RLIKE 'a(?#comment)';
-'a' RLIKE 'a(?#comment)'
-1
-SELECT 'aa' RLIKE 'a(?#comment)a';
-'aa' RLIKE 'a(?#comment)a'
-1
-SELECT 'aba' RLIKE 'a(?#b)a';
-'aba' RLIKE 'a(?#b)a'
-0
-SELECT 'aaa' RLIKE '\\W\\W\\W';
-'aaa' RLIKE '\\W\\W\\W'
-0
-SELECT '%' RLIKE '\\W';
-'%' RLIKE '\\W'
-1
-SELECT '%a$' RLIKE '\\W.\\W';
-'%a$' RLIKE '\\W.\\W'
-1
-SELECT '123' RLIKE '\\d\\d\\d';
-'123' RLIKE '\\d\\d\\d'
-1
-SELECT 'aaa' RLIKE '\\d\\d\\d';
-'aaa' RLIKE '\\d\\d\\d'
-0
-SELECT '1a3' RLIKE '\\d.\\d';
-'1a3' RLIKE '\\d.\\d'
-1
-SELECT 'a1b' RLIKE '\\d.\\d';
-'a1b' RLIKE '\\d.\\d'
-0
-SELECT '8' RLIKE '\\D';
-'8' RLIKE '\\D'
-0
-SELECT 'a' RLIKE '\\D';
-'a' RLIKE '\\D'
-1
-SELECT '%' RLIKE '\\D';
-'%' RLIKE '\\D'
-1
-SELECT 'a1' RLIKE '\\D\\d';
-'a1' RLIKE '\\D\\d'
-1
-SELECT 'a1' RLIKE '\\d\\D';
-'a1' RLIKE '\\d\\D'
-0
-SELECT '\t' RLIKE '\\s';
-'\t' RLIKE '\\s'
-1
-SELECT '\r' RLIKE '\\s';
-'\r' RLIKE '\\s'
-1
-SELECT '\n' RLIKE '\\s';
-'\n' RLIKE '\\s'
-1
-SELECT '\v' RLIKE '\\s';
-'\v' RLIKE '\\s'
-0
-SELECT 'a' RLIKE '\\S';
-'a' RLIKE '\\S'
-1
-SELECT '1' RLIKE '\\S';
-'1' RLIKE '\\S'
-1
-SELECT '!' RLIKE '\\S';
-'!' RLIKE '\\S'
-1
-SELECT '.' RLIKE '\\S';
-'.' RLIKE '\\S'
-1
-SELECT 'abc\0def' REGEXP 'def';
-'abc\0def' REGEXP 'def'
-1
-SELECT 'abc\0def' REGEXP 'abc\\x{00}def';
-'abc\0def' REGEXP 'abc\\x{00}def'
-1
-SELECT HEX(REGEXP_SUBSTR('abc\0def','abc\\x{00}def'));
-HEX(REGEXP_SUBSTR('abc\0def','abc\\x{00}def'))
-61626300646566
-#
-# Checking REGEXP_REPLACE
-#
-CREATE TABLE t1 AS SELECT REGEXP_REPLACE('abc','b','x');
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `REGEXP_REPLACE('abc','b','x')` longtext CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXPLAIN EXTENDED SELECT REGEXP_REPLACE('abc','b','x');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select regexp_replace('abc','b','x') AS `REGEXP_REPLACE('abc','b','x')`
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t1 AS SELECT REGEXP_REPLACE('abc','b','x')+0;
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'axc'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `REGEXP_REPLACE('abc','b','x')+0` double NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SELECT REGEXP_REPLACE(NULL,'b','c');
-REGEXP_REPLACE(NULL,'b','c')
-NULL
-SELECT REGEXP_REPLACE('a',NULL,'c');
-REGEXP_REPLACE('a',NULL,'c')
-NULL
-SELECT REGEXP_REPLACE('a','b',NULL);
-REGEXP_REPLACE('a','b',NULL)
-NULL
-SELECT REGEXP_REPLACE('a','x','b');
-REGEXP_REPLACE('a','x','b')
-a
-SELECT REGEXP_REPLACE('a','','b');
-REGEXP_REPLACE('a','','b')
-a
-SELECT REGEXP_REPLACE('a5b ab a5b','(?<=a)5*(?=b)','x');
-REGEXP_REPLACE('a5b ab a5b','(?<=a)5*(?=b)','x')
-axb ab a5b
-SELECT REGEXP_REPLACE('a5b a5b a5b','(?<=a)5*(?=b)','x');
-REGEXP_REPLACE('a5b a5b a5b','(?<=a)5*(?=b)','x')
-axb axb axb
-SELECT REGEXP_REPLACE('A','a','b');
-REGEXP_REPLACE('A','a','b')
-b
-SELECT REGEXP_REPLACE('a','A','b');
-REGEXP_REPLACE('a','A','b')
-b
-SELECT REGEXP_REPLACE('A' COLLATE utf8_bin,'a','b');
-REGEXP_REPLACE('A' COLLATE utf8_bin,'a','b')
-A
-SELECT REGEXP_REPLACE('a' COLLATE utf8_bin,'A','b');
-REGEXP_REPLACE('a' COLLATE utf8_bin,'A','b')
-a
-SELECT REGEXP_REPLACE('James Bond', '(.*) (.*)', '\\2, \\1 \\2');
-REGEXP_REPLACE('James Bond', '(.*) (.*)', '\\2, \\1 \\2')
-Bond, James Bond
-SELECT REGEXP_REPLACE('абвгд','в','ц');
-REGEXP_REPLACE('абвгд','в','ц')
-абцгд
-SELECT REGEXP_REPLACE('г',0xB3,0xB4);
-REGEXP_REPLACE('г',0xB3,0xB4)
-д
-SELECT REGEXP_REPLACE('aaaa','a','b');
-REGEXP_REPLACE('aaaa','a','b')
-bbbb
-SELECT REGEXP_REPLACE('aaaa','(?<=.)a','b');
-REGEXP_REPLACE('aaaa','(?<=.)a','b')
-abbb
-SELECT REGEXP_REPLACE('aaaa','a(?=.)','b');
-REGEXP_REPLACE('aaaa','a(?=.)','b')
-bbba
-SELECT REGEXP_REPLACE('aaaa','(?<=.)a(?=.)','b');
-REGEXP_REPLACE('aaaa','(?<=.)a(?=.)','b')
-abba
-SELECT REGEXP_REPLACE('a\nb','(*LF)(?m)^a$','c');
-REGEXP_REPLACE('a\nb','(*LF)(?m)^a$','c')
-c
-b
-SELECT REGEXP_REPLACE('a\nb','(*CR)(?m)^a$','c');
-REGEXP_REPLACE('a\nb','(*CR)(?m)^a$','c')
-a
-b
-SELECT REGEXP_REPLACE('a\nb','(*CRLF)(?m)^a$','c');
-REGEXP_REPLACE('a\nb','(*CRLF)(?m)^a$','c')
-a
-b
-SELECT REGEXP_REPLACE('a\nb','(*ANYCRLF)(?m)^a$','c');
-REGEXP_REPLACE('a\nb','(*ANYCRLF)(?m)^a$','c')
-c
-b
-SELECT REGEXP_REPLACE('a\rb','(*LF)(?m)^a$','c');
-REGEXP_REPLACE('a\rb','(*LF)(?m)^a$','c')
-a b
-SELECT REGEXP_REPLACE('a\rb','(*CR)(?m)^a$','c');
-REGEXP_REPLACE('a\rb','(*CR)(?m)^a$','c')
-c b
-SELECT REGEXP_REPLACE('a\rb','(*CRLF)(?m)^a$','c');
-REGEXP_REPLACE('a\rb','(*CRLF)(?m)^a$','c')
-a b
-SELECT REGEXP_REPLACE('a\rb','(*ANYCRLF)(?m)^a$','c');
-REGEXP_REPLACE('a\rb','(*ANYCRLF)(?m)^a$','c')
-c b
-SELECT REGEXP_REPLACE('a\r\nb','(*LF)(?m)^a$','c');
-REGEXP_REPLACE('a\r\nb','(*LF)(?m)^a$','c')
-a
-b
-SELECT REGEXP_REPLACE('a\r\nb','(*CR)(?m)^a$','c');
-REGEXP_REPLACE('a\r\nb','(*CR)(?m)^a$','c')
-c
-b
-SELECT REGEXP_REPLACE('a\r\nb','(*CRLF)(?m)^a$','c');
-REGEXP_REPLACE('a\r\nb','(*CRLF)(?m)^a$','c')
-c
-b
-SELECT REGEXP_REPLACE('a\r\nb','(*ANYCRLF)(?m)^a$','c');
-REGEXP_REPLACE('a\r\nb','(*ANYCRLF)(?m)^a$','c')
-c
-b
-SELECT REGEXP_REPLACE('aa','(a)\\g1','b');
-REGEXP_REPLACE('aa','(a)\\g1','b')
-b
-SELECT REGEXP_REPLACE('aa bb','(a)\\g1 (b)\\g2','c');
-REGEXP_REPLACE('aa bb','(a)\\g1 (b)\\g2','c')
-c
-SELECT REGEXP_REPLACE('aaaaa','a{1,3}','b');
-REGEXP_REPLACE('aaaaa','a{1,3}','b')
-bb
-SELECT REGEXP_REPLACE('aaaaa','a{10,20}','b');
-REGEXP_REPLACE('aaaaa','a{10,20}','b')
-aaaaa
-SELECT REGEXP_REPLACE('daabbd','a(?R)?b','c');
-REGEXP_REPLACE('daabbd','a(?R)?b','c')
-dcd
-SELECT REGEXP_REPLACE('daabbd','aa(?R)?bb','c');
-REGEXP_REPLACE('daabbd','aa(?R)?bb','c')
-dcd
-SELECT REGEXP_REPLACE('dabccd','a(?>bc|b)c','e');
-REGEXP_REPLACE('dabccd','a(?>bc|b)c','e')
-ded
-SELECT REGEXP_REPLACE('dabcd','a(?>bc|b)c','e');
-REGEXP_REPLACE('dabcd','a(?>bc|b)c','e')
-dabcd
-SELECT REGEXP_REPLACE('ab','a(?!b)','e');
-REGEXP_REPLACE('ab','a(?!b)','e')
-ab
-SELECT REGEXP_REPLACE('ac','a(?!b)','e');
-REGEXP_REPLACE('ac','a(?!b)','e')
-ec
-SELECT REGEXP_REPLACE('ab','a(?=b)','e');
-REGEXP_REPLACE('ab','a(?=b)','e')
-eb
-SELECT REGEXP_REPLACE('ac','a(?=b)','e');
-REGEXP_REPLACE('ac','a(?=b)','e')
-ac
-SELECT REGEXP_REPLACE('ab','(?<!a)b','e');
-REGEXP_REPLACE('ab','(?<!a)b','e')
-ab
-SELECT REGEXP_REPLACE('cb','(?<!a)b','e');
-REGEXP_REPLACE('cb','(?<!a)b','e')
-ce
-SELECT REGEXP_REPLACE('ab','(?<=a)b','e');
-REGEXP_REPLACE('ab','(?<=a)b','e')
-ae
-SELECT REGEXP_REPLACE('cb','(?<=a)b','e');
-REGEXP_REPLACE('cb','(?<=a)b','e')
-cb
-SELECT REGEXP_REPLACE('aa','(?P<pattern>a)(?P=pattern)','b');
-REGEXP_REPLACE('aa','(?P<pattern>a)(?P=pattern)','b')
-b
-SELECT REGEXP_REPLACE('aba','(?P<pattern>a)b(?P=pattern)','c');
-REGEXP_REPLACE('aba','(?P<pattern>a)b(?P=pattern)','c')
-c
-SELECT REGEXP_REPLACE('a','a(?#comment)','e');
-REGEXP_REPLACE('a','a(?#comment)','e')
-e
-SELECT REGEXP_REPLACE('aa','a(?#comment)a','e');
-REGEXP_REPLACE('aa','a(?#comment)a','e')
-e
-SELECT REGEXP_REPLACE('aba','a(?#b)a','e');
-REGEXP_REPLACE('aba','a(?#b)a','e')
-aba
-SELECT REGEXP_REPLACE('ddd<ab>cc</ab>eee','<.+?>','*');
-REGEXP_REPLACE('ddd<ab>cc</ab>eee','<.+?>','*')
-ddd*cc*eee
-SELECT REGEXP_REPLACE('aaa','\\W\\W\\W','e');
-REGEXP_REPLACE('aaa','\\W\\W\\W','e')
-aaa
-SELECT REGEXP_REPLACE('aaa','\\w\\w\\w','e');
-REGEXP_REPLACE('aaa','\\w\\w\\w','e')
-e
-SELECT REGEXP_REPLACE('%','\\W','e');
-REGEXP_REPLACE('%','\\W','e')
-e
-SELECT REGEXP_REPLACE('%a$','\\W.\\W','e');
-REGEXP_REPLACE('%a$','\\W.\\W','e')
-e
-SELECT REGEXP_REPLACE('%a$','\\W\\w\\W','e');
-REGEXP_REPLACE('%a$','\\W\\w\\W','e')
-e
-SELECT REGEXP_REPLACE('123','\\d\\d\\d\\d\\d\\d','e');
-REGEXP_REPLACE('123','\\d\\d\\d\\d\\d\\d','e')
-123
-SELECT REGEXP_REPLACE('123','\\d\\d\\d','e');
-REGEXP_REPLACE('123','\\d\\d\\d','e')
-e
-SELECT REGEXP_REPLACE('aaa','\\d\\d\\d','e');
-REGEXP_REPLACE('aaa','\\d\\d\\d','e')
-aaa
-SELECT REGEXP_REPLACE('1a3','\\d.\\d\\d.\\d','e');
-REGEXP_REPLACE('1a3','\\d.\\d\\d.\\d','e')
-1a3
-SELECT REGEXP_REPLACE('1a3','\\d.\\d','e');
-REGEXP_REPLACE('1a3','\\d.\\d','e')
-e
-SELECT REGEXP_REPLACE('a1b','\\d.\\d','e');
-REGEXP_REPLACE('a1b','\\d.\\d','e')
-a1b
-SELECT REGEXP_REPLACE('8','\\D','e');
-REGEXP_REPLACE('8','\\D','e')
-8
-SELECT REGEXP_REPLACE('a','\\D','e');
-REGEXP_REPLACE('a','\\D','e')
-e
-SELECT REGEXP_REPLACE('%','\\D','e');
-REGEXP_REPLACE('%','\\D','e')
-e
-SELECT REGEXP_REPLACE('a1','\\D\\d','e');
-REGEXP_REPLACE('a1','\\D\\d','e')
-e
-SELECT REGEXP_REPLACE('a1','\\d\\D','e');
-REGEXP_REPLACE('a1','\\d\\D','e')
-a1
-SELECT REGEXP_REPLACE('\t','\\s','e');
-REGEXP_REPLACE('\t','\\s','e')
-e
-SELECT REGEXP_REPLACE('\r','\\s','e');
-REGEXP_REPLACE('\r','\\s','e')
-e
-SELECT REGEXP_REPLACE('\n','\\s','e');
-REGEXP_REPLACE('\n','\\s','e')
-e
-SELECT REGEXP_REPLACE('a','\\S','e');
-REGEXP_REPLACE('a','\\S','e')
-e
-SELECT REGEXP_REPLACE('1','\\S','e');
-REGEXP_REPLACE('1','\\S','e')
-e
-SELECT REGEXP_REPLACE('!','\\S','e');
-REGEXP_REPLACE('!','\\S','e')
-e
-SELECT REGEXP_REPLACE('.','\\S','e');
-REGEXP_REPLACE('.','\\S','e')
-e
-#
-# Checking REGEXP_INSTR
-#
-SELECT REGEXP_INSTR('abcd','X');
-REGEXP_INSTR('abcd','X')
-0
-SELECT REGEXP_INSTR('abcd','a');
-REGEXP_INSTR('abcd','a')
-1
-SELECT REGEXP_INSTR('abcd','b');
-REGEXP_INSTR('abcd','b')
-2
-SELECT REGEXP_INSTR('abcd','c');
-REGEXP_INSTR('abcd','c')
-3
-SELECT REGEXP_INSTR('abcd','d');
-REGEXP_INSTR('abcd','d')
-4
-SELECT REGEXP_INSTR('aaaa','(?<=a)a');
-REGEXP_INSTR('aaaa','(?<=a)a')
-2
-SELECT REGEXP_INSTR('ваÑÑ','в');
-REGEXP_INSTR('ваÑÑ','в')
-1
-SELECT REGEXP_INSTR('ваÑÑ','а');
-REGEXP_INSTR('ваÑÑ','а')
-2
-SELECT REGEXP_INSTR('ваÑÑ','Ñ');
-REGEXP_INSTR('ваÑÑ','Ñ')
-3
-SELECT REGEXP_INSTR('ваÑÑ','Ñ');
-REGEXP_INSTR('ваÑÑ','Ñ')
-4
-SELECT REGEXP_INSTR(CONVERT('ваÑÑ' USING koi8r), CONVERT('в' USING koi8r));
-REGEXP_INSTR(CONVERT('ваÑÑ' USING koi8r), CONVERT('в' USING koi8r))
-1
-SELECT REGEXP_INSTR(CONVERT('ваÑÑ' USING koi8r), CONVERT('а' USING koi8r));
-REGEXP_INSTR(CONVERT('ваÑÑ' USING koi8r), CONVERT('а' USING koi8r))
-2
-SELECT REGEXP_INSTR(CONVERT('ваÑÑ' USING koi8r), CONVERT('Ñ' USING koi8r));
-REGEXP_INSTR(CONVERT('ваÑÑ' USING koi8r), CONVERT('Ñ' USING koi8r))
-3
-SELECT REGEXP_INSTR(CONVERT('ваÑÑ' USING koi8r), CONVERT('Ñ' USING koi8r));
-REGEXP_INSTR(CONVERT('ваÑÑ' USING koi8r), CONVERT('Ñ' USING koi8r))
-4
-#
-# Checking REGEXP_SUBSTR
-#
-CREATE TABLE t1 AS SELECT REGEXP_SUBSTR('abc','b');
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `REGEXP_SUBSTR('abc','b')` varchar(3) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXPLAIN EXTENDED SELECT REGEXP_SUBSTR('abc','b');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select regexp_substr('abc','b') AS `REGEXP_SUBSTR('abc','b')`
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t1 AS SELECT REGEXP_SUBSTR('abc','b')+0;
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `REGEXP_SUBSTR('abc','b')+0` double NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SELECT REGEXP_SUBSTR('See https://mariadb.org/en/foundation/ for details', 'https?://[^/]*');
-REGEXP_SUBSTR('See https://mariadb.org/en/foundation/ for details', 'https?://[^/]*')
-https://mariadb.org
-#
-# MDEV-6027 RLIKE: "." no longer matching new line
-#
-SELECT 'cat and\ndog' RLIKE 'cat.*dog';
-'cat and\ndog' RLIKE 'cat.*dog'
-0
-SELECT 'cat and\r\ndog' RLIKE 'cat.*dog';
-'cat and\r\ndog' RLIKE 'cat.*dog'
-0
-SELECT 'a\nb' RLIKE 'a.b';
-'a\nb' RLIKE 'a.b'
-0
-SELECT 'a\nb' RLIKE '(?-s)a.b';
-'a\nb' RLIKE '(?-s)a.b'
-0
-SET default_regex_flags='DOTALL';
-SELECT @@default_regex_flags;
-@@default_regex_flags
-DOTALL
-SELECT 'cat and\ndog' RLIKE 'cat.*dog';
-'cat and\ndog' RLIKE 'cat.*dog'
-1
-SELECT 'cat and\r\ndog' RLIKE 'cat.*dog';
-'cat and\r\ndog' RLIKE 'cat.*dog'
-1
-SELECT 'a\nb' RLIKE 'a.b';
-'a\nb' RLIKE 'a.b'
-1
-SELECT 'a\nb' RLIKE '(?-s)a.b';
-'a\nb' RLIKE '(?-s)a.b'
-0
-SET default_regex_flags=DEFAULT;
-SELECT REGEXP_SUBSTR('Monday Mon','^((?<DN>Mon|Fri|Sun)day|(?<DN>Tue)sday).*(?P=DN)$');
-ERROR 42000: Got error 'two named subpatterns have the same name at offset 29' from regexp
-SET default_regex_flags='DUPNAMES';
-SELECT REGEXP_SUBSTR('Monday Mon','^((?<DN>Mon|Fri|Sun)day|(?<DN>Tue)sday).*(?P=DN)$');
-REGEXP_SUBSTR('Monday Mon','^((?<DN>Mon|Fri|Sun)day|(?<DN>Tue)sday).*(?P=DN)$')
-Monday Mon
-SELECT REGEXP_SUBSTR('Tuesday Tue','^((?<DN>Mon|Fri|Sun)day|(?<DN>Tue)sday).*(?P=DN)$');
-REGEXP_SUBSTR('Tuesday Tue','^((?<DN>Mon|Fri|Sun)day|(?<DN>Tue)sday).*(?P=DN)$')
-Tuesday Tue
-SET default_regex_flags=DEFAULT;
-SELECT 'AB' RLIKE 'A B';
-'AB' RLIKE 'A B'
-0
-SELECT 'AB' RLIKE 'A# this is a comment\nB';
-'AB' RLIKE 'A# this is a comment\nB'
-0
-SET default_regex_flags='EXTENDED';
-SELECT 'AB' RLIKE 'A B';
-'AB' RLIKE 'A B'
-1
-SELECT 'AB' RLIKE 'A# this is a comment\nB';
-'AB' RLIKE 'A# this is a comment\nB'
-1
-SET default_regex_flags=DEFAULT;
-SELECT 'Aq' RLIKE 'A\\q';
-'Aq' RLIKE 'A\\q'
-1
-SET default_regex_flags='EXTRA';
-SELECT 'Aq' RLIKE 'A\\q';
-ERROR 42000: Got error 'unrecognized character follows \ at offset 2' from regexp
-SET default_regex_flags=DEFAULT;
-SELECT 'a\nb\nc' RLIKE '^b$';
-'a\nb\nc' RLIKE '^b$'
-0
-SET default_regex_flags='MULTILINE';
-SELECT 'a\nb\nc' RLIKE '^b$';
-'a\nb\nc' RLIKE '^b$'
-1
-SET default_regex_flags=DEFAULT;
-SELECT REGEXP_SUBSTR('abc','.+');
-REGEXP_SUBSTR('abc','.+')
-abc
-SELECT REGEXP_REPLACE('abc','^(.*)(.*)$','\\1/\\2');
-REGEXP_REPLACE('abc','^(.*)(.*)$','\\1/\\2')
-abc/
-SET default_regex_flags='UNGREEDY';
-SELECT REGEXP_SUBSTR('abc','.+');
-REGEXP_SUBSTR('abc','.+')
-a
-SELECT REGEXP_REPLACE('abc','^(.*)(.*)$','\\1/\\2');
-REGEXP_REPLACE('abc','^(.*)(.*)$','\\1/\\2')
-/abc
-SET default_regex_flags=DEFAULT;
-#
-# MDEV-6965 non-captured group \2 in regexp_replace
-#
-SELECT REGEXP_REPLACE('1 foo and bar', '(\\d+) foo and (\\d+ )?bar', '\\1 this and \\2that');
-REGEXP_REPLACE('1 foo and bar', '(\\d+) foo and (\\d+ )?bar', '\\1 this and \\2that')
-1 this and that
-#
-# MDEV-8102 REGEXP function fails to match hex values when expression is stored as a variable
-#
-# Testing a warning
-SET NAMES latin1;
-SET @regCheck= '\\xE0\\x01';
-SELECT 0xE001 REGEXP @regCheck;
-0xE001 REGEXP @regCheck
-0
-Warnings:
-Warning 1139 Got error 'pcre_exec: Invalid utf8 byte sequence in the subject string' from regexp
-# Testing workaround N1: This makes the pattern to be a binary string:
-SET NAMES latin1;
-SET @regCheck= X'E001';
-SELECT 0xE001 REGEXP @regCheck;
-0xE001 REGEXP @regCheck
-1
-# Testing workaround N2: This also makes the pattern to be a binary string, using a different syntax:
-SET NAMES latin1;
-SET @regCheck= _binary '\\xE0\\x01';
-SELECT 0xE001 REGEXP @regCheck;
-0xE001 REGEXP @regCheck
-1
-# Testing workarond N3: This makes derivation of the subject string stronger (IMLICIT instead of COERCIBLE)
-SET NAMES latin1;
-SET @regCheck= '\\xE0\\x01';
-SELECT CAST(0xE001 AS BINARY) REGEXP @regCheck;
-CAST(0xE001 AS BINARY) REGEXP @regCheck
-1
-# MDEV-12420: Testing recursion overflow
-SELECT 1 FROM dual WHERE ('Alpha,Bravo,Charlie,Delta,Echo,Foxtrot,StrataCentral,Golf,Hotel,India,Juliet,Kilo,Lima,Mike,StrataL3,November,Oscar,StrataL2,Sand,P3,P4SwitchTest,Arsys,Poppa,ExtensionMgr,Arp,Quebec,Romeo,StrataApiV2,PtReyes,Sierra,SandAcl,Arrow,Artools,BridgeTest,Tango,SandT,PAlaska,Namespace,Agent,Qos,PatchPanel,ProjectReport,Ark,Gimp,Agent,SliceAgent,Arnet,Bgp,Ale,Tommy,Central,AsicPktTestLib,Hsc,SandL3,Abuild,Pca9555,Standby,ControllerDut,CalSys,SandLib,Sb820,PointV2,BfnLib,Evpn,BfnSdk,Sflow,ManagementActive,AutoTest,GatedTest,Bgp,Sand,xinetd,BfnAgentLib,bf-utils,Hello,BfnState,Eos,Artest,Qos,Scd,ThermoMgr,Uniform,EosUtils,Eb,FanController,Central,BfnL3,BfnL2,tcp_wrappers,Victor,Environment,Route,Failover,Whiskey,Xray,Gimp,BfnFixed,Strata,SoCal,XApi,Msrp,XpProfile,tcpdump,PatchPanel,ArosTest,FhTest,Arbus,XpAcl,MacConc,XpApi,telnet,QosTest,Alpha2,BfnVlan,Stp,VxlanControllerTest,MplsAgent,Bravo2,Lanz,BfnMbb,Intf,XCtrl,Unicast,SandTunnel,L3Unicast,Ipsec,MplsTest,Rsvp,EthIntf,StageMgr,Sol,MplsUtils,Nat,Ira,P4NamespaceDut,Counters,Charlie2,Aqlc,Mlag,Power,OpenFlow,Lag,RestApi,BfdTest,strongs,Sfa,CEosUtils,Adt746,MaintenanceMode,MlagDut,EosImage,IpEth,MultiProtocol,Launcher,Max3179,Snmp,Acl,IpEthTest,PhyEee,bf-syslibs,tacc,XpL2,p4-ar-switch,p4-bf-switch,LdpTest,BfnPhy,Mirroring,Phy6,Ptp' REGEXP '^((?!\b(Strata|StrataApi|StrataApiV2)\b).)*$');
-1
-Warnings:
-Warning 1139 Got error 'pcre_exec: recursion limit of NUM exceeded' from regexp
-SELECT CONCAT(REPEAT('100,',60),'101') RLIKE '^(([1-9][0-9]*),)*[1-9][0-9]*$';
-CONCAT(REPEAT('100,',60),'101') RLIKE '^(([1-9][0-9]*),)*[1-9][0-9]*$'
-1
-SELECT CONCAT(REPEAT('100,',200),'101') RLIKE '^(([1-9][0-9]*),)*[1-9][0-9]*$';
-CONCAT(REPEAT('100,',200),'101') RLIKE '^(([1-9][0-9]*),)*[1-9][0-9]*$'
-0
-Warnings:
-Warning 1139 Got error 'pcre_exec: recursion limit of NUM exceeded' from regexp
-SELECT REGEXP_INSTR(CONCAT(REPEAT('100,',60),'101'), '^(([1-9][0-9]*),)*[1-9][0-9]*$');
-REGEXP_INSTR(CONCAT(REPEAT('100,',60),'101'), '^(([1-9][0-9]*),)*[1-9][0-9]*$')
-1
-SELECT REGEXP_INSTR(CONCAT(REPEAT('100,',200),'101'), '^(([1-9][0-9]*),)*[1-9][0-9]*$');
-REGEXP_INSTR(CONCAT(REPEAT('100,',200),'101'), '^(([1-9][0-9]*),)*[1-9][0-9]*$')
-0
-Warnings:
-Warning 1139 Got error 'pcre_exec: recursion limit of NUM exceeded' from regexp
-SELECT LENGTH(REGEXP_SUBSTR(CONCAT(REPEAT('100,',60),'101'), '^(([1-9][0-9]*),)*[1-9][0-9]*$'));
-LENGTH(REGEXP_SUBSTR(CONCAT(REPEAT('100,',60),'101'), '^(([1-9][0-9]*),)*[1-9][0-9]*$'))
-243
-SELECT LENGTH(REGEXP_SUBSTR(CONCAT(REPEAT('100,',200),'101'), '^(([1-9][0-9]*),)*[1-9][0-9]*$'));
-LENGTH(REGEXP_SUBSTR(CONCAT(REPEAT('100,',200),'101'), '^(([1-9][0-9]*),)*[1-9][0-9]*$'))
-0
-Warnings:
-Warning 1139 Got error 'pcre_exec: recursion limit of NUM exceeded' from regexp
-SELECT LENGTH(REGEXP_REPLACE(CONCAT(REPEAT('100,',60),'101'), '^(([1-9][0-9]*),)*[1-9][0-9]*$', ''));
-LENGTH(REGEXP_REPLACE(CONCAT(REPEAT('100,',60),'101'), '^(([1-9][0-9]*),)*[1-9][0-9]*$', ''))
-0
-SELECT LENGTH(REGEXP_REPLACE(CONCAT(REPEAT('100,',200),'101'), '^(([1-9][0-9]*),)*[1-9][0-9]*$', ''));
-LENGTH(REGEXP_REPLACE(CONCAT(REPEAT('100,',200),'101'), '^(([1-9][0-9]*),)*[1-9][0-9]*$', ''))
-803
-Warnings:
-Warning 1139 Got error 'pcre_exec: recursion limit of NUM exceeded' from regexp
-SELECT REGEXP_INSTR('a_kollision', 'oll');
-REGEXP_INSTR('a_kollision', 'oll')
-4
-SELECT REGEXP_INSTR('a_kollision', '(oll)');
-REGEXP_INSTR('a_kollision', '(oll)')
-4
-SELECT REGEXP_INSTR('a_kollision', 'o([lm])\\1');
-REGEXP_INSTR('a_kollision', 'o([lm])\\1')
-4
-SELECT a FROM (SELECT "aa" a) t WHERE a REGEXP '[0-9]';
-a
diff --git a/mysql-test/r/func_regexp_pcre_debug.result b/mysql-test/r/func_regexp_pcre_debug.result
deleted file mode 100644
index e44492fca72..00000000000
--- a/mysql-test/r/func_regexp_pcre_debug.result
+++ /dev/null
@@ -1,10 +0,0 @@
-SET debug_dbug='+d,pcre_exec_error_123';
-SELECT 'a' RLIKE 'a';
-'a' RLIKE 'a'
-0
-Warnings:
-Warning 1139 Got error 'pcre_exec: Internal error (-123)' from regexp
-SET debug_dbug='';
-SELECT 'a' RLIKE 'a';
-'a' RLIKE 'a'
-1
diff --git a/mysql-test/r/func_rollback.result b/mysql-test/r/func_rollback.result
deleted file mode 100644
index 91151302a06..00000000000
--- a/mysql-test/r/func_rollback.result
+++ /dev/null
@@ -1,457 +0,0 @@
-DROP TABLE IF EXISTS t1_select;
-DROP TABLE IF EXISTS t1_aux;
-DROP TABLE IF EXISTS t1_not_null;
-DROP VIEW IF EXISTS v1_not_null;
-DROP VIEW IF EXISTS v1_func;
-DROP TABLE IF EXISTS t1_fail;
-DROP FUNCTION IF EXISTS f1_simple_insert;
-DROP FUNCTION IF EXISTS f1_two_inserts;
-DROP FUNCTION IF EXISTS f1_insert_select;
-SET SESSION AUTOCOMMIT=0;
-SET SESSION sql_mode = '';
-CREATE TABLE t1_select (f1 BIGINT, f2 BIGINT) ENGINE = MEMORY;
-INSERT INTO t1_select(f1,f2) VALUES (1,-1),(2,NULL),(3,0),(4,1),(5,2);
-SELECT * FROM t1_select;
-f1 f2
-1 -1
-2 NULL
-3 0
-4 1
-5 2
-CREATE TABLE t1_not_null (f1 BIGINT, f2 BIGINT NOT NULL)
-ENGINE = <transactional_engine>;
-SELECT * FROM t1_not_null;
-f1 f2
-CREATE TABLE t1_aux (f1 BIGINT, f2 BIGINT)
-ENGINE = <transactional_engine>;
-SELECT * FROM t1_aux;
-f1 f2
-COMMIT;
-CREATE FUNCTION f1_simple_insert(my_f1 INTEGER) RETURNS INTEGER
-BEGIN
-INSERT INTO t1_not_null SET f1 = 10, f2 = my_f1;
-RETURN 1;
-END//
-
-# One f1_simple_insert execution per row, no NOT NULL violation
-SELECT f1_simple_insert(1);
-f1_simple_insert(1)
-1
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-10 1
-ROLLBACK;
-SELECT * FROM t1_not_null;
-f1 f2
-SELECT f1_simple_insert(1) FROM t1_select;
-f1_simple_insert(1)
-1
-1
-1
-1
-1
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-10 1
-10 1
-10 1
-10 1
-10 1
-ROLLBACK;
-SELECT * FROM t1_not_null;
-f1 f2
-
-# One f1_simple_insert execution per row, NOT NULL violation when the
-# SELECT processes the first row.
-SELECT f1_simple_insert(NULL);
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-SELECT f1_simple_insert(NULL) FROM t1_select;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-SELECT 1 FROM (SELECT 1 AS f1,1 AS f2 UNION ALL SELECT 1,NULL) AS t1 WHERE f1_simple_insert(NULL) = 1;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-
-# One f1_simple_insert execution per row, NOT NULL violation when the
-# SELECT processes the non first row
-SELECT f1_simple_insert(f2) FROM (SELECT 1 AS f1,1 AS f2 UNION ALL SELECT 1,NULL) AS t1;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-SELECT f1_simple_insert(f2) FROM t1_select;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-
-# Two f1_simple_insert executions per row, NOT NULL violation when the
-# SELECT processes the first row.
-SELECT f1_simple_insert(1),f1_simple_insert(NULL);
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-SELECT f1_simple_insert(NULL),f1_simple_insert(1);
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-
-# Two f1_simple_insert executions per row, NOT NULL violation when the
-# SELECT processes the non first row
-SELECT f1_simple_insert(f1),f1_simple_insert(f2) FROM (SELECT 1 AS f1,1 AS f2 UNION ALL SELECT 1,NULL) AS t1;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-SELECT f1_simple_insert(f2),f1_simple_insert(f1) FROM (SELECT 1 AS f1,1 AS f2 UNION ALL SELECT 1,NULL) AS t1;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-SELECT f1_simple_insert(f1),f1_simple_insert(f2) FROM t1_select;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-SELECT f1_simple_insert(f2),f1_simple_insert(f1) FROM t1_select;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-SELECT 1 FROM (SELECT 1 AS f1,1 AS f2 UNION ALL SELECT 1,NULL) AS t1
-WHERE 1 = f1_simple_insert(f2) AND 1 = f1_simple_insert(f1);
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-
-# Nested functions, the inner fails
-SELECT f1_simple_insert(f1_simple_insert(NULL)) FROM t1_select;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-
-# Nested functions, the outer fails
-SELECT f1_simple_insert(f1_simple_insert(1) + NULL) FROM t1_select;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-DROP FUNCTION f1_simple_insert;
-CREATE FUNCTION f1_insert_select(my_f1 INTEGER) RETURNS INTEGER
-BEGIN
-INSERT INTO t1_not_null SELECT * FROM t1_select WHERE f1 = my_f1;
-RETURN 1;
-END;
-
-# f1_insert_select(2), tries to INSERT SELECT one row containing NULL
-# The fact that
-# - SELECT f1_insert_select(2); gives any result set and
-# - t1_not_null gets a row inserted
-# is covered by the manual.
-SELECT f1_insert_select(2);
-f1_insert_select(2)
-1
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-2 0
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-DROP FUNCTION f1_insert_select;
-SET SESSION sql_mode = 'traditional';
-CREATE FUNCTION f1_insert_select(my_f1 INTEGER) RETURNS INTEGER
-BEGIN
-INSERT INTO t1_not_null SELECT * FROM t1_select WHERE f1 = my_f1;
-RETURN 1;
-END;
-SELECT f1_insert_select(2);
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-DROP FUNCTION f1_insert_select;
-SET SESSION sql_mode = '';
-
-# Function tries to
-# 1. INSERT statement: Insert one row with NULL -> NOT NULL violation
-# 2. INSERT statement: Insert one row without NULL
-CREATE FUNCTION f1_two_inserts() RETURNS INTEGER
-BEGIN
-INSERT INTO t1_not_null SET f1 = 10, f2 = NULL;
-INSERT INTO t1_not_null SET f1 = 10, f2 = 10;
-RETURN 1;
-END//
-SELECT f1_two_inserts();
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-DROP FUNCTION f1_two_inserts;
-
-# Function tries to
-# 1. INSERT statement: Insert one row without NULL
-# 2. INSERT statement: Insert one row with NULL -> NOT NULL violation
-CREATE FUNCTION f1_two_inserts() RETURNS INTEGER
-BEGIN
-INSERT INTO t1_not_null SET f1 = 10, f2 = 10;
-INSERT INTO t1_not_null SET f1 = 10, f2 = NULL;
-RETURN 1;
-END//
-SELECT f1_two_inserts();
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-
-# Function tries to
-# INSERT statement: Insert two rows
-# first row without NULL
-# second row with NULL -> NOT NULL violation
-# -> NOT NULL violation
-CREATE FUNCTION f1_insert_with_two_rows() RETURNS INTEGER
-BEGIN
-INSERT INTO t1_not_null(f1,f2) VALUES (10,10),(10,NULL);
-RETURN 1;
-END;
-# The fact that
-# - SELECT f1_insert_with_two_rows(); gives any result set and
-# - t1_not_null gets a row inserted
-# is covered by the manual.
-SELECT f1_insert_with_two_rows();
-f1_insert_with_two_rows()
-1
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-10 0
-10 10
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-DROP FUNCTION f1_insert_with_two_rows;
-SET SESSION sql_mode = 'traditional';
-CREATE FUNCTION f1_insert_with_two_rows() RETURNS INTEGER
-BEGIN
-INSERT INTO t1_not_null(f1,f2) VALUES (10,10),(10,NULL);
-RETURN 1;
-END;
-SELECT f1_insert_with_two_rows();
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-SET SESSION sql_mode = '';
-
-# FUNCTION in Correlated Subquery
-SELECT 1 FROM t1_select t1
-WHERE 1 = (SELECT f1_insert_with_two_rows() FROM t1_select t2
-WHERE t2.f1 = t1.f1);
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-
-# FUNCTION in JOIN
-SELECT 1 FROM t1_select t1, t1_select t2
-WHERE t1.f1 = t2.f1 AND t2.f1 = f1_insert_with_two_rows();
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-SELECT STRAIGHT_JOIN * FROM t1_select t2 RIGHT JOIN t1_select t1
-ON t1.f1 = t1.f1 WHERE 1 = f1_insert_with_two_rows();
-ERROR 23000: Column 'f2' cannot be null
-DROP FUNCTION f1_insert_with_two_rows;
-
-# FUNCTION in UNION
-SELECT 1
-UNION ALL
-SELECT f1_two_inserts();
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-
-# FUNCTION in INSERT
-INSERT INTO t1_aux SET f1 = 1, f2 = f1_two_inserts();
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-INSERT INTO t1_aux SELECT 1, f1_two_inserts();
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-SELECT * FROM t1_aux ORDER BY f1,f2;
-f1 f2
-INSERT INTO t1_aux VALUES(1,f1_two_inserts());
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-SELECT * FROM t1_aux ORDER BY f1,f2;
-f1 f2
-
-# FUNCTION in DELETE
-INSERT INTO t1_aux VALUES (1,1);
-COMMIT;
-DELETE FROM t1_aux WHERE f1 = f1_two_inserts();
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-SELECT * FROM t1_aux ORDER BY f1,f2;
-f1 f2
-1 1
-
-# FUNCTION in UPDATE SET
-UPDATE t1_aux SET f2 = f1_two_inserts() + 1;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-SELECT * FROM t1_aux ORDER BY f1,f2;
-f1 f2
-1 1
-
-# FUNCTION in VIEW definition
-CREATE VIEW v1_func AS SELECT f1_two_inserts() FROM t1_select;
-SELECT * FROM v1_func;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-DROP VIEW v1_func;
-
-# FUNCTION in CREATE TABLE ... AS SELECT
-CREATE TABLE t1_fail AS SELECT f1_two_inserts() FROM t1_select;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-CREATE TABLE t1_fail AS SELECT * FROM t1_select WHERE 1 = f1_two_inserts();
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-
-# FUNCTION in ORDER BY
-SELECT * FROM t1_select ORDER BY f1,f1_two_inserts();
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-
-# FUNCTION in aggregate function
-SELECT AVG(f1_two_inserts()) FROM t1_select;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-
-# FUNCTION in HAVING
-SELECT 1 FROM t1_select HAVING AVG(f1) = f1_two_inserts() + 2;
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-DROP FUNCTION f1_two_inserts;
-
-# FUNCTION modifies Updatable VIEW
-CREATE VIEW v1_not_null AS SELECT f1,f2 FROM t1_not_null WITH CHECK OPTION;
-CREATE FUNCTION f1_two_inserts_v1() RETURNS INTEGER
-BEGIN
-INSERT INTO v1_not_null SET f1 = 10, f2 = 10;
-INSERT INTO v1_not_null SET f1 = 10, f2 = NULL;
-RETURN 1;
-END//
-SELECT f1_two_inserts_v1();
-ERROR 23000: Column 'f2' cannot be null
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-ROLLBACK;
-SELECT * FROM t1_not_null ORDER BY f1,f2;
-f1 f2
-DROP FUNCTION f1_two_inserts_v1;
-DROP VIEW v1_not_null;
-
-# FUNCTION causes FOREIGN KEY constraint violation
-CREATE TABLE t1_parent (f1 BIGINT, f2 BIGINT, PRIMARY KEY(f1))
-ENGINE = InnoDB;
-INSERT INTO t1_parent VALUES (1,1);
-CREATE TABLE t1_child (f1 BIGINT, f2 BIGINT, PRIMARY KEY(f1),
-FOREIGN KEY (f1) REFERENCES t1_parent(f1))
-ENGINE = InnoDB;
-CREATE FUNCTION f1_two_inserts() RETURNS INTEGER
-BEGIN
-INSERT INTO t1_child SET f1 = 1, f2 = 1;
-INSERT INTO t1_child SET f1 = 2, f2 = 2;
-RETURN 1;
-END//
-SELECT f1_two_inserts();
-ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (`test`.`t1_child`, CONSTRAINT `t1_child_ibfk_1` FOREIGN KEY (`f1`) REFERENCES `t1_parent` (`f1`))
-SELECT * FROM t1_child;
-f1 f2
-DROP TABLE t1_child;
-DROP TABLE t1_parent;
-DROP FUNCTION f1_two_inserts;
-DROP TABLE t1_select;
-DROP TABLE t1_aux;
-DROP TABLE t1_not_null;
diff --git a/mysql-test/r/func_sapdb.result b/mysql-test/r/func_sapdb.result
deleted file mode 100644
index 5b9743fb33f..00000000000
--- a/mysql-test/r/func_sapdb.result
+++ /dev/null
@@ -1,316 +0,0 @@
-drop table if exists t1, test;
-select extract(DAY_MICROSECOND FROM "1999-01-02 10:11:12.000123");
-extract(DAY_MICROSECOND FROM "1999-01-02 10:11:12.000123")
-2101112000123
-select extract(HOUR_MICROSECOND FROM "1999-01-02 10:11:12.000123");
-extract(HOUR_MICROSECOND FROM "1999-01-02 10:11:12.000123")
-101112000123
-select extract(MINUTE_MICROSECOND FROM "1999-01-02 10:11:12.000123");
-extract(MINUTE_MICROSECOND FROM "1999-01-02 10:11:12.000123")
-1112000123
-select extract(SECOND_MICROSECOND FROM "1999-01-02 10:11:12.000123");
-extract(SECOND_MICROSECOND FROM "1999-01-02 10:11:12.000123")
-12000123
-select extract(MICROSECOND FROM "1999-01-02 10:11:12.000123");
-extract(MICROSECOND FROM "1999-01-02 10:11:12.000123")
-123
-select date_format("1997-12-31 23:59:59.000002", "%f");
-date_format("1997-12-31 23:59:59.000002", "%f")
-000002
-select date_add("1997-12-31 23:59:59.000002",INTERVAL "10000 99:99:99.999999" DAY_MICROSECOND);
-date_add("1997-12-31 23:59:59.000002",INTERVAL "10000 99:99:99.999999" DAY_MICROSECOND)
-2025-05-23 04:40:39.000001
-select date_add("1997-12-31 23:59:59.000002",INTERVAL "10000:99:99.999999" HOUR_MICROSECOND);
-date_add("1997-12-31 23:59:59.000002",INTERVAL "10000:99:99.999999" HOUR_MICROSECOND)
-1999-02-21 17:40:39.000001
-select date_add("1997-12-31 23:59:59.000002",INTERVAL "10000:99.999999" MINUTE_MICROSECOND);
-date_add("1997-12-31 23:59:59.000002",INTERVAL "10000:99.999999" MINUTE_MICROSECOND)
-1998-01-07 22:41:39.000001
-select date_add("1997-12-31 23:59:59.000002",INTERVAL "10000.999999" SECOND_MICROSECOND);
-date_add("1997-12-31 23:59:59.000002",INTERVAL "10000.999999" SECOND_MICROSECOND)
-1998-01-01 02:46:40.000001
-select date_add("1997-12-31 23:59:59.000002",INTERVAL "999999" MICROSECOND);
-date_add("1997-12-31 23:59:59.000002",INTERVAL "999999" MICROSECOND)
-1998-01-01 00:00:00.000001
-select date_sub("1998-01-01 00:00:00.000001",INTERVAL "1 1:1:1.000002" DAY_MICROSECOND);
-date_sub("1998-01-01 00:00:00.000001",INTERVAL "1 1:1:1.000002" DAY_MICROSECOND)
-1997-12-30 22:58:58.999999
-select date_sub("1998-01-01 00:00:00.000001",INTERVAL "1:1:1.000002" HOUR_MICROSECOND);
-date_sub("1998-01-01 00:00:00.000001",INTERVAL "1:1:1.000002" HOUR_MICROSECOND)
-1997-12-31 22:58:58.999999
-select date_sub("1998-01-01 00:00:00.000001",INTERVAL "1:1.000002" MINUTE_MICROSECOND);
-date_sub("1998-01-01 00:00:00.000001",INTERVAL "1:1.000002" MINUTE_MICROSECOND)
-1997-12-31 23:58:58.999999
-select date_sub("1998-01-01 00:00:00.000001",INTERVAL "1.000002" SECOND_MICROSECOND);
-date_sub("1998-01-01 00:00:00.000001",INTERVAL "1.000002" SECOND_MICROSECOND)
-1997-12-31 23:59:58.999999
-select date_sub("1998-01-01 00:00:00.000001",INTERVAL "000002" MICROSECOND);
-date_sub("1998-01-01 00:00:00.000001",INTERVAL "000002" MICROSECOND)
-1997-12-31 23:59:59.999999
-select adddate("1997-12-31 23:59:59.000001", 10);
-adddate("1997-12-31 23:59:59.000001", 10)
-1998-01-10 23:59:59.000001
-select subdate("1997-12-31 23:59:59.000001", 10);
-subdate("1997-12-31 23:59:59.000001", 10)
-1997-12-21 23:59:59.000001
-select datediff("1997-12-31 23:59:59.000001","1997-12-30");
-datediff("1997-12-31 23:59:59.000001","1997-12-30")
-1
-select datediff("1997-11-30 23:59:59.000001","1997-12-31");
-datediff("1997-11-30 23:59:59.000001","1997-12-31")
--31
-SET @@SQL_MODE="ALLOW_INVALID_DATES";
-select datediff("1997-11-31 23:59:59.000001","1997-12-31");
-datediff("1997-11-31 23:59:59.000001","1997-12-31")
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '1997-11-31 23:59:59.000001'
-SET @@SQL_MODE="";
-select datediff("1997-11-31 23:59:59.000001","1997-12-31");
-datediff("1997-11-31 23:59:59.000001","1997-12-31")
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '1997-11-31 23:59:59.000001'
-select datediff("1997-11-30 23:59:59.000001",null);
-datediff("1997-11-30 23:59:59.000001",null)
-NULL
-select weekofyear("1997-11-30 23:59:59.000001");
-weekofyear("1997-11-30 23:59:59.000001")
-48
-select makedate(03,1);
-makedate(03,1)
-2003-01-01
-select makedate('0003',1);
-makedate('0003',1)
-2003-01-01
-select makedate(1997,1);
-makedate(1997,1)
-1997-01-01
-select makedate(1997,0);
-makedate(1997,0)
-NULL
-select makedate(9999,365);
-makedate(9999,365)
-9999-12-31
-select makedate(9999,366);
-makedate(9999,366)
-NULL
-select makedate(100,1);
-makedate(100,1)
-0100-01-01
-select addtime("1997-12-31 23:59:59.999999", "1 1:1:1.000002");
-addtime("1997-12-31 23:59:59.999999", "1 1:1:1.000002")
-1998-01-02 01:01:01.000001
-select subtime("1997-12-31 23:59:59.000001", "1 1:1:1.000002");
-subtime("1997-12-31 23:59:59.000001", "1 1:1:1.000002")
-1997-12-30 22:58:57.999999
-select addtime("1997-12-31 23:59:59.999999", "1998-01-01 01:01:01.999999");
-addtime("1997-12-31 23:59:59.999999", "1998-01-01 01:01:01.999999")
-NULL
-select subtime("1997-12-31 23:59:59.999999", "1998-01-01 01:01:01.999999");
-subtime("1997-12-31 23:59:59.999999", "1998-01-01 01:01:01.999999")
-NULL
-select subtime("01:00:00.999999", "02:00:00.999998");
-subtime("01:00:00.999999", "02:00:00.999998")
--00:59:59.999999
-select subtime("02:01:01.999999", "01:01:01.999999");
-subtime("02:01:01.999999", "01:01:01.999999")
-01:00:00
-select timediff("1997-01-01 23:59:59.000001","1995-12-31 23:59:59.000002");
-timediff("1997-01-01 23:59:59.000001","1995-12-31 23:59:59.000002")
-838:59:59.999999
-Warnings:
-Warning 1292 Truncated incorrect time value: '8807:59:59.999999'
-select timediff("1997-12-31 23:59:59.000001","1997-12-30 01:01:01.000002");
-timediff("1997-12-31 23:59:59.000001","1997-12-30 01:01:01.000002")
-46:58:57.999999
-select timediff("1997-12-30 23:59:59.000001","1997-12-31 23:59:59.000002");
-timediff("1997-12-30 23:59:59.000001","1997-12-31 23:59:59.000002")
--24:00:00.000001
-select timediff("1997-12-31 23:59:59.000001","23:59:59.000001");
-timediff("1997-12-31 23:59:59.000001","23:59:59.000001")
-NULL
-select timediff("2000:01:01 00:00:00", "2000:01:01 00:00:00.000001");
-timediff("2000:01:01 00:00:00", "2000:01:01 00:00:00.000001")
--00:00:00.000001
-select timediff("2005-01-11 15:48:49.999999", "2005-01-11 15:48:50");
-timediff("2005-01-11 15:48:49.999999", "2005-01-11 15:48:50")
--00:00:00.000001
-select maketime(10,11,12);
-maketime(10,11,12)
-10:11:12
-select maketime(25,11,12);
-maketime(25,11,12)
-25:11:12
-select maketime(-25,11,12);
-maketime(-25,11,12)
--25:11:12
-select timestamp("2001-12-01", "01:01:01.999999");
-timestamp("2001-12-01", "01:01:01.999999")
-2001-12-01 01:01:01.999999
-select timestamp("2001-13-01", "01:01:01.000001");
-timestamp("2001-13-01", "01:01:01.000001")
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2001-13-01'
-select timestamp("2001-12-01", "25:01:01");
-timestamp("2001-12-01", "25:01:01")
-2001-12-02 01:01:01
-select timestamp("2001-12-01 01:01:01.000100");
-timestamp("2001-12-01 01:01:01.000100")
-2001-12-01 01:01:01.000100
-select timestamp("2001-12-01");
-timestamp("2001-12-01")
-2001-12-01 00:00:00
-select day("1997-12-31 23:59:59.000001");
-day("1997-12-31 23:59:59.000001")
-31
-select date("1997-12-31 23:59:59.000001");
-date("1997-12-31 23:59:59.000001")
-1997-12-31
-select date("1997-13-31 23:59:59.000001");
-date("1997-13-31 23:59:59.000001")
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '1997-13-31 23:59:59.000001'
-select time("1997-12-31 23:59:59.000001");
-time("1997-12-31 23:59:59.000001")
-23:59:59.000001
-select time("1997-12-31 25:59:59.000001");
-time("1997-12-31 25:59:59.000001")
-NULL
-Warnings:
-Warning 1292 Truncated incorrect time value: '1997-12-31 25:59:59.000001'
-select microsecond("1997-12-31 23:59:59.000001");
-microsecond("1997-12-31 23:59:59.000001")
-1
-create table t1
-select makedate(1997,1) as f1,
-addtime(cast("1997-12-31 23:59:59.000001" as datetime(6)), "1 1:1:1.000002") as f2,
-addtime(cast("23:59:59.999999" as time(6)) , "1 1:1:1.000002") as f3,
-timediff("1997-12-31 23:59:59.000001","1997-12-30 01:01:01.000002") as f4,
-timediff("1997-12-30 23:59:59.000001","1997-12-31 23:59:59.000002") as f5,
-maketime(10,11,12) as f6,
-timestamp(cast("2001-12-01" as date), "01:01:01") as f7,
-date("1997-12-31 23:59:59.000001") as f8,
-time("1997-12-31 23:59:59.000001") as f9;
-describe t1;
-Field Type Null Key Default Extra
-f1 date YES NULL
-f2 datetime(6) YES NULL
-f3 time(6) YES NULL
-f4 time(6) YES NULL
-f5 time(6) YES NULL
-f6 time YES NULL
-f7 datetime YES NULL
-f8 date YES NULL
-f9 time(6) YES NULL
-select * from t1;
-f1 f2 f3 f4 f5 f6 f7 f8 f9
-1997-01-01 1998-01-02 01:01:00.000003 49:01:01.000001 46:58:57.999999 -24:00:00.000001 10:11:12 2001-12-01 01:01:01 1997-12-31 23:59:59.000001
-create table test(t1 datetime, t2 time, t3 time, t4 datetime);
-insert into test values
-('2001-01-01 01:01:01', '01:01:01', null, '2001-02-01 01:01:01'),
-('2001-01-01 01:01:01', '-01:01:01', '-23:59:59', "1997-12-31 23:59:59.000001"),
-('1997-12-31 23:59:59.000001', '-23:59:59', '-01:01:01', '2001-01-01 01:01:01'),
-('2001-01-01 01:01:01', '01:01:01', '-1 01:01:01', null),
-('2001-01-01 01:01:01', '-01:01:01', '1 01:01:01', '2001-01-01 01:01:01'),
-('2001-01-01 01:01:01', null, '-1 01:01:01', null),
-(null, null, null, null),
-('2001-01-01 01:01:01', '01:01:01', '1 01:01:01', '2001-01-01 01:01:01');
-SELECT ADDTIME(t1,t2) As ttt, ADDTIME(t2, t3) As qqq from test;
-ttt qqq
-2001-01-01 02:02:02 NULL
-2001-01-01 00:00:00 -25:01:00
-1997-12-31 00:00:00 -25:01:00
-2001-01-01 02:02:02 -24:00:00
-2001-01-01 00:00:00 24:00:00
-NULL NULL
-NULL NULL
-2001-01-01 02:02:02 26:02:02
-SELECT TIMEDIFF(t1, t4) As ttt, TIMEDIFF(t2, t3) As qqq,
-TIMEDIFF(t3, t2) As eee, TIMEDIFF(t2, t4) As rrr from test;
-ttt qqq eee rrr
--744:00:00 NULL NULL NULL
-838:59:59 22:58:58 -22:58:58 NULL
--838:59:59 -22:58:58 22:58:58 NULL
-NULL 26:02:02 -26:02:02 NULL
-00:00:00 -26:02:02 26:02:02 NULL
-NULL NULL NULL NULL
-NULL NULL NULL NULL
-00:00:00 -24:00:00 24:00:00 NULL
-Warnings:
-Warning 1292 Truncated incorrect time value: '26305:01:02'
-Warning 1292 Truncated incorrect time value: '-26305:01:02'
-drop table t1, test;
-select addtime("-01:01:01.01", "-23:59:59.1") as a;
-a
--25:01:00.110000
-select microsecond("1997-12-31 23:59:59.01") as a;
-a
-10000
-select microsecond(19971231235959.01) as a;
-a
-10000
-select date_add("1997-12-31",INTERVAL "10.09" SECOND_MICROSECOND) as a;
-a
-1997-12-31 00:00:10.090000
-select str_to_date("2003-01-02 10:11:12.0012", "%Y-%m-%d %H:%i:%S.%f");
-str_to_date("2003-01-02 10:11:12.0012", "%Y-%m-%d %H:%i:%S.%f")
-2003-01-02 10:11:12.001200
-select timediff('2008-09-29 20:10:10','2008-09-30 20:10:10'),time('00:00:00');
-timediff('2008-09-29 20:10:10','2008-09-30 20:10:10') time('00:00:00')
--24:00:00 00:00:00
-select timediff('2008-09-29 20:10:10','2008-09-30 20:10:10')>time('00:00:00');
-timediff('2008-09-29 20:10:10','2008-09-30 20:10:10')>time('00:00:00')
-0
-select timediff('2008-09-29 20:10:10','2008-09-30 20:10:10')<time('00:00:00');
-timediff('2008-09-29 20:10:10','2008-09-30 20:10:10')<time('00:00:00')
-1
-SELECT CAST(time('-73:42:12') AS DECIMAL);
-CAST(time('-73:42:12') AS DECIMAL)
--734212
-SELECT TIMEDIFF(TIME('17:00:00'),TIME('17:00:00'))=TIME('00:00:00') AS 1Eq,
-TIMEDIFF(TIME('17:59:00'),TIME('17:00:00'))=TIME('00:00:00') AS 1NEq1,
-TIMEDIFF(TIME('18:00:00'),TIME('17:00:00'))=TIME('00:00:00') AS 1NEq2,
-TIMEDIFF(TIME('17:00:00'),TIME('17:00:00'))= '00:00:00' AS 2Eq,
-TIMEDIFF(TIME('17:59:00'),TIME('17:00:00'))= '00:00:00' AS 2NEq1,
-TIMEDIFF(TIME('18:00:00'),TIME('17:00:00'))= '00:00:00' AS 2NEq2,
-TIMEDIFF(TIME('17:00:00'),TIME('17:00:00'))=TIME(0) AS 3Eq,
-TIMEDIFF(TIME('17:59:00'),TIME('17:00:00'))=TIME(0) AS 3NEq1,
-TIMEDIFF(TIME('18:00:00'),TIME('17:00:00'))=TIME(0) AS 3NEq2,
-TIME(0) AS Time0, TIME('00:00:00') AS Time00, '00:00:00' AS Literal0000,
-TIMEDIFF(TIME('17:59:00'),TIME('17:00:00')),
-TIMEDIFF(TIME('17:00:00'),TIME('17:59:00'));
-1Eq 1NEq1 1NEq2 2Eq 2NEq1 2NEq2 3Eq 3NEq1 3NEq2 Time0 Time00 Literal0000 TIMEDIFF(TIME('17:59:00'),TIME('17:00:00')) TIMEDIFF(TIME('17:00:00'),TIME('17:59:00'))
-1 0 0 1 0 0 1 0 0 00:00:00 00:00:00 00:00:00 00:59:00 -00:59:00
-SELECT sec_to_time(3020399)=TIME('838:59:59');
-sec_to_time(3020399)=TIME('838:59:59')
-1
-SELECT sec_to_time(-3020399)=TIME('-838:59:59');
-sec_to_time(-3020399)=TIME('-838:59:59')
-1
-SELECT sec_to_time(-3020399)='-838:59:59';
-sec_to_time(-3020399)='-838:59:59'
-1
-SELECT time(sec_to_time(-3020399))=TIME('-838:59:59');
-time(sec_to_time(-3020399))=TIME('-838:59:59')
-1
-SELECT time(sec_to_time(-3020399))=TIME('-838:59:58');
-time(sec_to_time(-3020399))=TIME('-838:59:58')
-0
-SELECT maketime(-1,0,1)='-01:00:01';
-maketime(-1,0,1)='-01:00:01'
-1
-SELECT TIME(maketime(-1,0,1))=CAST('-01:00:01' AS TIME);
-TIME(maketime(-1,0,1))=CAST('-01:00:01' AS TIME)
-1
-SELECT maketime(-1,0,1)=CAST('-01:00:01' AS TIME);
-maketime(-1,0,1)=CAST('-01:00:01' AS TIME)
-1
-SELECT maketime(1,0,1)=CAST('01:00:01' AS TIME);
-maketime(1,0,1)=CAST('01:00:01' AS TIME)
-1
-SELECT maketime(1,0,1)=CAST('01:00:02' AS TIME);
-maketime(1,0,1)=CAST('01:00:02' AS TIME)
-0
diff --git a/mysql-test/r/func_set.result b/mysql-test/r/func_set.result
deleted file mode 100644
index 73e121f5f2b..00000000000
--- a/mysql-test/r/func_set.result
+++ /dev/null
@@ -1,231 +0,0 @@
-select interval(55,10,20,30,40,50,60,70,80,90,100),interval(3,1,1+1,1+1+1+1),field("IBM","NCA","ICL","SUN","IBM","DIGITAL"),field("A","B","C"),elt(2,"ONE","TWO","THREE"),interval(0,1,2,3,4),elt(1,1,2,3)|0,elt(1,1.1,1.2,1.3)+0;
-interval(55,10,20,30,40,50,60,70,80,90,100) interval(3,1,1+1,1+1+1+1) field("IBM","NCA","ICL","SUN","IBM","DIGITAL") field("A","B","C") elt(2,"ONE","TWO","THREE") interval(0,1,2,3,4) elt(1,1,2,3)|0 elt(1,1.1,1.2,1.3)+0
-5 2 4 0 TWO 0 1 1.1
-explain extended select INTERVAL(55,10,20,30,40,50,60,70,80,90,100),interval(3,1,1+1,1+1+1+1),field("IBM","NCA","ICL","SUN","IBM","DIGITAL"),field("A","B","C"),elt(2,"ONE","TWO","THREE"),interval(0,1,2,3,4),elt(1,1,2,3)|0,elt(1,1.1,1.2,1.3)+0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select interval(55,10,20,30,40,50,60,70,80,90,100) AS `INTERVAL(55,10,20,30,40,50,60,70,80,90,100)`,interval(3,1,1 + 1,1 + 1 + 1 + 1) AS `interval(3,1,1+1,1+1+1+1)`,field('IBM','NCA','ICL','SUN','IBM','DIGITAL') AS `field("IBM","NCA","ICL","SUN","IBM","DIGITAL")`,field('A','B','C') AS `field("A","B","C")`,elt(2,'ONE','TWO','THREE') AS `elt(2,"ONE","TWO","THREE")`,interval(0,1,2,3,4) AS `interval(0,1,2,3,4)`,elt(1,1,2,3) | 0 AS `elt(1,1,2,3)|0`,elt(1,1.1,1.2,1.3) + 0 AS `elt(1,1.1,1.2,1.3)+0`
-SELECT INTERVAL(13, 7, 14, 21, 28, 35, 42, 49, 56);
-INTERVAL(13, 7, 14, 21, 28, 35, 42, 49, 56)
-1
-SELECT INTERVAL(13, 7, 14, 21, 28, 35, 42, 49, 56, 77);
-INTERVAL(13, 7, 14, 21, 28, 35, 42, 49, 56, 77)
-1
-select find_in_set("b","a,b,c"),find_in_set("c","a,b,c"),find_in_set("dd","a,bbb,dd"),find_in_set("bbb","a,bbb,dd");
-find_in_set("b","a,b,c") find_in_set("c","a,b,c") find_in_set("dd","a,bbb,dd") find_in_set("bbb","a,bbb,dd")
-2 3 3 2
-select find_in_set("d","a,b,c"),find_in_set("dd","a,bbb,d"),find_in_set("bb","a,bbb,dd");
-find_in_set("d","a,b,c") find_in_set("dd","a,bbb,d") find_in_set("bb","a,bbb,dd")
-0 0 0
-select make_set(0,'a','b','c'),make_set(-1,'a','b','c'),make_set(1,'a','b','c'),make_set(2,'a','b','c'),make_set(1+2,concat('a','b'),'c');
-make_set(0,'a','b','c') make_set(-1,'a','b','c') make_set(1,'a','b','c') make_set(2,'a','b','c') make_set(1+2,concat('a','b'),'c')
- a,b,c a b ab,c
-select make_set(NULL,'a','b','c'),make_set(1|4,'a',NULL,'c'),make_set(1+2,'a',NULL,'c');
-make_set(NULL,'a','b','c') make_set(1|4,'a',NULL,'c') make_set(1+2,'a',NULL,'c')
-NULL a,c a
-select export_set(9,"Y","N","-",5),export_set(9,"Y","N"),export_set(9,"Y","N","");
-export_set(9,"Y","N","-",5) export_set(9,"Y","N") export_set(9,"Y","N","")
-Y-N-N-Y-N Y,N,N,Y,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N YNNYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
-select elt(2,1),field(NULL,"a","b","c");
-elt(2,1) field(NULL,"a","b","c")
-NULL 0
-select field("b","a",NULL),field(1,0,NULL)+0,field(1.0,0.0,NULL)+0.0,field(1.0e1,0.0e1,NULL)+0.0e1;
-field("b","a",NULL) field(1,0,NULL)+0 field(1.0,0.0,NULL)+0.0 field(1.0e1,0.0e1,NULL)+0.0e1
-0 0 0.0 0
-select field(NULL,"a",NULL),field(NULL,0,NULL)+0,field(NULL,0.0,NULL)+0.0,field(NULL,0.0e1,NULL)+0.0e1;
-field(NULL,"a",NULL) field(NULL,0,NULL)+0 field(NULL,0.0,NULL)+0.0 field(NULL,0.0e1,NULL)+0.0e1
-0 0 0.0 0
-select find_in_set("","a,b,c"),find_in_set("","a,b,c,"),find_in_set("",",a,b,c");
-find_in_set("","a,b,c") find_in_set("","a,b,c,") find_in_set("",",a,b,c")
-0 4 1
-select find_in_set("abc","abc"),find_in_set("ab","abc"),find_in_set("abcd","abc");
-find_in_set("abc","abc") find_in_set("ab","abc") find_in_set("abcd","abc")
-1 0 0
-select interval(null, 1, 10, 100);
-interval(null, 1, 10, 100)
--1
-drop table if exists t1,t2;
-create table t1 (id int(10) not null unique);
-create table t2 (id int(10) not null primary key, val int(10) not null);
-insert into t1 values (1),(2),(4);
-insert into t2 values (1,1),(2,1),(3,1),(4,2);
-select one.id, elt(two.val,'one','two') from t1 one, t2 two where two.id=one.id;
-id elt(two.val,'one','two')
-1 one
-2 one
-4 two
-select one.id, elt(two.val,'one','two') from t1 one, t2 two where two.id=one.id order by one.id;
-id elt(two.val,'one','two')
-1 one
-2 one
-4 two
-drop table t1,t2;
-select find_in_set(binary 'a',binary 'A,B,C');
-find_in_set(binary 'a',binary 'A,B,C')
-0
-select find_in_set('a',binary 'A,B,C');
-find_in_set('a',binary 'A,B,C')
-0
-select find_in_set(binary 'a', 'A,B,C');
-find_in_set(binary 'a', 'A,B,C')
-0
-select find_in_set('1','3,1,');
-find_in_set('1','3,1,')
-2
-End of 4.1 tests
-SELECT INTERVAL(0.0, NULL);
-INTERVAL(0.0, NULL)
-1
-SELECT INTERVAL(0.0, CAST(NULL AS DECIMAL));
-INTERVAL(0.0, CAST(NULL AS DECIMAL))
-1
-SELECT INTERVAL(0.0, CAST(DATE(NULL) AS DECIMAL));
-INTERVAL(0.0, CAST(DATE(NULL) AS DECIMAL))
-1
-SELECT INTERVAL(0.0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-INTERVAL(0.0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
-8
-SELECT INTERVAL(0.0, CAST(NULL AS DECIMAL), CAST(NULL AS DECIMAL),
-CAST(NULL AS DECIMAL), CAST(NULL AS DECIMAL), CAST(NULL AS DECIMAL),
-CAST(NULL AS DECIMAL), CAST(NULL AS DECIMAL), CAST(NULL AS DECIMAL));
-INTERVAL(0.0, CAST(NULL AS DECIMAL), CAST(NULL AS DECIMAL),
-CAST(NULL AS DECIMAL), CAST(NULL AS DECIMAL), CAST(NULL AS DECIMAL),
-CAST(NULL AS DECIMAL), CAST(NULL AS DECIMAL), CAST(NULL AS DECIMAL))
-8
-SELECT INTERVAL(0.0, CAST(DATE(NULL) AS DECIMAL), CAST(DATE(NULL) AS DECIMAL),
-CAST(DATE(NULL) AS DECIMAL), CAST(DATE(NULL) AS DECIMAL),
-CAST(DATE(NULL) AS DECIMAL), CAST(DATE(NULL) AS DECIMAL),
-CAST(DATE(NULL) AS DECIMAL), CAST(DATE(NULL) AS DECIMAL));
-INTERVAL(0.0, CAST(DATE(NULL) AS DECIMAL), CAST(DATE(NULL) AS DECIMAL),
-CAST(DATE(NULL) AS DECIMAL), CAST(DATE(NULL) AS DECIMAL),
-CAST(DATE(NULL) AS DECIMAL), CAST(DATE(NULL) AS DECIMAL),
-CAST(DATE(NULL) AS DECIMAL), CAST(DATE(NULL) AS DECIMAL))
-8
-End of 5.0 tests
-drop table if exists t1;
-create table t1 (f1 set('test1','test2','test3') character set utf8 default null)
-engine=myisam default charset=latin1;
-insert into t1 values (''),(null),(null),(''),(''),('');
-select find_in_set(f1,f1) as a from t1,(select find_in_set(f1,f1) as b from t1) a;
-a
-0
-NULL
-NULL
-0
-0
-0
-0
-NULL
-NULL
-0
-0
-0
-0
-NULL
-NULL
-0
-0
-0
-0
-NULL
-NULL
-0
-0
-0
-0
-NULL
-NULL
-0
-0
-0
-0
-NULL
-NULL
-0
-0
-0
-drop table t1;
-CREATE TABLE t1( a SET('a', 'b', 'c') );
-CREATE TABLE t2( a SET('a', 'b', 'c') );
-INSERT IGNORE INTO t1 VALUES ('d');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-INSERT INTO t2 VALUES ('');
-SELECT CONVERT( a USING latin1 ) FROM t1;
-CONVERT( a USING latin1 )
-
-SELECT CONVERT( a USING latin1 ) FROM t2;
-CONVERT( a USING latin1 )
-
-DROP TABLE t1, t2;
-#
-# Start of 5.3 tests
-#
-#
-# MDEV-4512 Valgrind warnings in my_long10_to_str_8bit on INTERVAL and DATE_ADD with incorrect types
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY);
-INSERT INTO t1 VALUES (10),(11);
-SELECT INTERVAL( 9, 1, DATE_ADD( pk, INTERVAL pk MINUTE_SECOND ), 9, 8, 3, 5, 2, 1 ) FROM t1;
-INTERVAL( 9, 1, DATE_ADD( pk, INTERVAL pk MINUTE_SECOND ), 9, 8, 3, 5, 2, 1 )
-8
-8
-Warnings:
-Warning 1292 Incorrect datetime value: '10' for column 'pk' at row 1
-Warning 1292 Incorrect datetime value: '11' for column 'pk' at row 2
-DROP TABLE t1;
-#
-# End of 5.3 tests
-#
-#
-# BUG#59405: FIND_IN_SET won't work normaly after upgrade from 5.1 to 5.5
-#
-CREATE TABLE t1(days set('1','2','3','4','5','6','7'));
-INSERT INTO t1 VALUES('1,2,3,4,5,6,7'), (NULL), ('1,2,3,4,5,6,7');
-
-SELECT * FROM t1 WHERE FIND_IN_SET(DAYOFWEEK(CURRENT_DATE()), days);
-days
-1,2,3,4,5,6,7
-1,2,3,4,5,6,7
-SELECT * FROM t1 WHERE FIND_IN_SET(DAYOFWEEK(CURRENT_DATE()), days) IS UNKNOWN;
-days
-NULL
-SELECT * FROM t1 WHERE FIND_IN_SET(DAYOFWEEK(CURRENT_DATE()), NULL);
-days
-SELECT * FROM t1 WHERE FIND_IN_SET(DAYOFWEEK(CURRENT_DATE()), NULL) IS UNKNOWN;
-days
-1,2,3,4,5,6,7
-NULL
-1,2,3,4,5,6,7
-SELECT * FROM t1 WHERE FIND_IN_SET(7, days);
-days
-1,2,3,4,5,6,7
-1,2,3,4,5,6,7
-SELECT * FROM t1 WHERE FIND_IN_SET(8, days);
-days
-SELECT * FROM t1 WHERE FIND_IN_SET(NULL, days);
-days
-SELECT * FROM t1 WHERE FIND_IN_SET(NULL, days) IS UNKNOWN;
-days
-1,2,3,4,5,6,7
-NULL
-1,2,3,4,5,6,7
-SELECT * FROM t1 WHERE FIND_IN_SET(NULL, NULL);
-days
-SELECT * FROM t1 WHERE FIND_IN_SET(NULL, NULL) IS UNKNOWN;
-days
-1,2,3,4,5,6,7
-NULL
-1,2,3,4,5,6,7
-
-DROP TABLE t1;
-#
-# MDEV-14596 Crash in INTERVAL(ROW(..),ROW(..))
-#
-SELECT INTERVAL(ROW(1,1),ROW(1,2));
-ERROR 21000: Operand should contain 1 column(s)
-SELECT INTERVAL(1,ROW(1,2));
-ERROR 21000: Operand should contain 1 column(s)
-SELECT INTERVAL(ROW(1,2),1);
-ERROR 21000: Operand should contain 1 column(s)
diff --git a/mysql-test/r/func_str.result b/mysql-test/r/func_str.result
deleted file mode 100644
index 2b376373f51..00000000000
--- a/mysql-test/r/func_str.result
+++ /dev/null
@@ -1,4926 +0,0 @@
-drop table if exists t1,t2;
-set global max_allowed_packet=1048576;
-connect conn1,localhost,root,,;
-connection conn1;
-set names latin1;
-select 'hello',"'hello'",'""hello""','''h''e''l''l''o''',"hel""lo",'hel\'lo';
-hello 'hello' ""hello"" 'h'e'l'l'o' hel"lo hel'lo
-hello 'hello' ""hello"" 'h'e'l'l'o' hel"lo hel'lo
-select 'hello' 'monty';
-hello
-hellomonty
-select length('\n\t\r\b\0\_\%\\');
-length('\n\t\r\b\0\_\%\\')
-10
-select bit_length('\n\t\r\b\0\_\%\\');
-bit_length('\n\t\r\b\0\_\%\\')
-80
-select char_length('\n\t\r\b\0\_\%\\');
-char_length('\n\t\r\b\0\_\%\\')
-10
-select length(_latin1'\n\t\n\b\0\\_\\%\\');
-length(_latin1'\n\t\n\b\0\\_\\%\\')
-10
-select concat('monty',' was here ','again'),length('hello'),char(ascii('h')),ord('h');
-concat('monty',' was here ','again') length('hello') char(ascii('h')) ord('h')
-monty was here again 5 h 104
-select hex(char(256));
-hex(char(256))
-0100
-select locate('he','hello'),locate('he','hello',2),locate('lo','hello',2) ;
-locate('he','hello') locate('he','hello',2) locate('lo','hello',2)
-1 0 4
-select instr('hello','HE'), instr('hello',binary 'HE'), instr(binary 'hello','HE');
-instr('hello','HE') instr('hello',binary 'HE') instr(binary 'hello','HE')
-1 0 0
-select position(binary 'll' in 'hello'),position('a' in binary 'hello');
-position(binary 'll' in 'hello') position('a' in binary 'hello')
-3 0
-select left('hello',null), right('hello',null);
-left('hello',null) right('hello',null)
-NULL NULL
-select left('hello',2),right('hello',2),substring('hello',2,2),mid('hello',1,5) ;
-left('hello',2) right('hello',2) substring('hello',2,2) mid('hello',1,5)
-he lo el hello
-select concat('',left(right(concat('what ',concat('is ','happening')),9),4),'',substring('monty',5,1)) ;
-concat('',left(right(concat('what ',concat('is ','happening')),9),4),'',substring('monty',5,1))
-happy
-select substring_index('www.tcx.se','.',-2),substring_index('www.tcx.se','.',1);
-substring_index('www.tcx.se','.',-2) substring_index('www.tcx.se','.',1)
-tcx.se www
-select substring_index('www.tcx.se','tcx',1),substring_index('www.tcx.se','tcx',-1);
-substring_index('www.tcx.se','tcx',1) substring_index('www.tcx.se','tcx',-1)
-www. .se
-select substring_index('.tcx.se','.',-2),substring_index('.tcx.se','.tcx',-1);
-substring_index('.tcx.se','.',-2) substring_index('.tcx.se','.tcx',-1)
-tcx.se .se
-select substring_index('aaaaaaaaa1','a',1);
-substring_index('aaaaaaaaa1','a',1)
-
-select substring_index('aaaaaaaaa1','aa',1);
-substring_index('aaaaaaaaa1','aa',1)
-
-select substring_index('aaaaaaaaa1','aa',2);
-substring_index('aaaaaaaaa1','aa',2)
-aa
-select substring_index('aaaaaaaaa1','aa',3);
-substring_index('aaaaaaaaa1','aa',3)
-aaaa
-select substring_index('aaaaaaaaa1','aa',4);
-substring_index('aaaaaaaaa1','aa',4)
-aaaaaa
-select substring_index('aaaaaaaaa1','aa',5);
-substring_index('aaaaaaaaa1','aa',5)
-aaaaaaaaa1
-select substring_index('aaaaaaaaa1','aaa',1);
-substring_index('aaaaaaaaa1','aaa',1)
-
-select substring_index('aaaaaaaaa1','aaa',2);
-substring_index('aaaaaaaaa1','aaa',2)
-aaa
-select substring_index('aaaaaaaaa1','aaa',3);
-substring_index('aaaaaaaaa1','aaa',3)
-aaaaaa
-select substring_index('aaaaaaaaa1','aaa',4);
-substring_index('aaaaaaaaa1','aaa',4)
-aaaaaaaaa1
-select substring_index('aaaaaaaaa1','aaaa',1);
-substring_index('aaaaaaaaa1','aaaa',1)
-
-select substring_index('aaaaaaaaa1','aaaa',2);
-substring_index('aaaaaaaaa1','aaaa',2)
-aaaa
-select substring_index('aaaaaaaaa1','1',1);
-substring_index('aaaaaaaaa1','1',1)
-aaaaaaaaa
-select substring_index('aaaaaaaaa1','a',-1);
-substring_index('aaaaaaaaa1','a',-1)
-1
-select substring_index('aaaaaaaaa1','aa',-1);
-substring_index('aaaaaaaaa1','aa',-1)
-1
-select substring_index('aaaaaaaaa1','aa',-2);
-substring_index('aaaaaaaaa1','aa',-2)
-aa1
-select substring_index('aaaaaaaaa1','aa',-3);
-substring_index('aaaaaaaaa1','aa',-3)
-aaaa1
-select substring_index('aaaaaaaaa1','aa',-4);
-substring_index('aaaaaaaaa1','aa',-4)
-aaaaaa1
-select substring_index('aaaaaaaaa1','aa',-5);
-substring_index('aaaaaaaaa1','aa',-5)
-aaaaaaaaa1
-select substring_index('aaaaaaaaa1','aaa',-1);
-substring_index('aaaaaaaaa1','aaa',-1)
-1
-select substring_index('aaaaaaaaa1','aaa',-2);
-substring_index('aaaaaaaaa1','aaa',-2)
-aaa1
-select substring_index('aaaaaaaaa1','aaa',-3);
-substring_index('aaaaaaaaa1','aaa',-3)
-aaaaaa1
-select substring_index('aaaaaaaaa1','aaa',-4);
-substring_index('aaaaaaaaa1','aaa',-4)
-aaaaaaaaa1
-select substring_index('the king of thethe hill','the',-2);
-substring_index('the king of thethe hill','the',-2)
-the hill
-select substring_index('the king of the the hill','the',-2);
-substring_index('the king of the the hill','the',-2)
- the hill
-select substring_index('the king of the the hill','the',-2);
-substring_index('the king of the the hill','the',-2)
- the hill
-select substring_index('the king of the the hill',' the ',-1);
-substring_index('the king of the the hill',' the ',-1)
-hill
-select substring_index('the king of the the hill',' the ',-2);
-substring_index('the king of the the hill',' the ',-2)
- the hill
-select substring_index('the king of the the hill',' ',-1);
-substring_index('the king of the the hill',' ',-1)
-hill
-select substring_index('the king of the the hill',' ',-2);
-substring_index('the king of the the hill',' ',-2)
-the hill
-select substring_index('the king of the the hill',' ',-3);
-substring_index('the king of the the hill',' ',-3)
- the hill
-select substring_index('the king of the the hill',' ',-4);
-substring_index('the king of the the hill',' ',-4)
-the the hill
-select substring_index('the king of the the hill',' ',-5);
-substring_index('the king of the the hill',' ',-5)
-of the the hill
-select substring_index('the king of the.the hill','the',-2);
-substring_index('the king of the.the hill','the',-2)
-.the hill
-select substring_index('the king of thethethe.the hill','the',-3);
-substring_index('the king of thethethe.the hill','the',-3)
-the.the hill
-select substring_index('the king of thethethe.the hill','the',-1);
-substring_index('the king of thethethe.the hill','the',-1)
- hill
-select substring_index('the king of the the hill','the',1);
-substring_index('the king of the the hill','the',1)
-
-select substring_index('the king of the the hill','the',2);
-substring_index('the king of the the hill','the',2)
-the king of
-select substring_index('the king of the the hill','the',3);
-substring_index('the king of the the hill','the',3)
-the king of the
-select concat(':',ltrim(' left '),':',rtrim(' right '),':');
-concat(':',ltrim(' left '),':',rtrim(' right '),':')
-:left : right:
-select concat(':',trim(leading from ' left '),':',trim(trailing from ' right '),':');
-concat(':',trim(leading from ' left '),':',trim(trailing from ' right '),':')
-:left : right:
-select concat(':',trim(LEADING FROM ' left'),':',trim(TRAILING FROM ' right '),':');
-concat(':',trim(LEADING FROM ' left'),':',trim(TRAILING FROM ' right '),':')
-:left: right:
-select concat(':',trim(' m '),':',trim(BOTH FROM ' y '),':',trim('*' FROM '*s*'),':');
-concat(':',trim(' m '),':',trim(BOTH FROM ' y '),':',trim('*' FROM '*s*'),':')
-:m:y:s:
-select concat(':',trim(BOTH 'ab' FROM 'ababmyabab'),':',trim(BOTH '*' FROM '***sql'),':');
-concat(':',trim(BOTH 'ab' FROM 'ababmyabab'),':',trim(BOTH '*' FROM '***sql'),':')
-:my:sql:
-select concat(':',trim(LEADING '.*' FROM '.*my'),':',trim(TRAILING '.*' FROM 'sql.*.*'),':');
-concat(':',trim(LEADING '.*' FROM '.*my'),':',trim(TRAILING '.*' FROM 'sql.*.*'),':')
-:my:sql:
-select TRIM("foo" FROM "foo"), TRIM("foo" FROM "foook"), TRIM("foo" FROM "okfoo");
-TRIM("foo" FROM "foo") TRIM("foo" FROM "foook") TRIM("foo" FROM "okfoo")
- ok ok
-select concat_ws(', ','monty','was here','again');
-concat_ws(', ','monty','was here','again')
-monty, was here, again
-select concat_ws(NULL,'a'),concat_ws(',',NULL,'');
-concat_ws(NULL,'a') concat_ws(',',NULL,'')
-NULL
-select concat_ws(',','',NULL,'a');
-concat_ws(',','',NULL,'a')
-,a
-SELECT CONCAT('"',CONCAT_WS('";"',repeat('a',60),repeat('b',60),repeat('c',60),repeat('d',100)), '"');
-CONCAT('"',CONCAT_WS('";"',repeat('a',60),repeat('b',60),repeat('c',60),repeat('d',100)), '"')
-"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb";"cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc";"dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"
-select insert('txs',2,1,'hi'),insert('is ',4,0,'a'),insert('txxxxt',2,4,'es');
-insert('txs',2,1,'hi') insert('is ',4,0,'a') insert('txxxxt',2,4,'es')
-this is test
-select replace('aaaa','a','b'),replace('aaaa','aa','b'),replace('aaaa','a','bb'),replace('aaaa','','b'),replace('bbbb','a','c');
-replace('aaaa','a','b') replace('aaaa','aa','b') replace('aaaa','a','bb') replace('aaaa','','b') replace('bbbb','a','c')
-bbbb bb bbbbbbbb aaaa bbbb
-select replace(concat(lcase(concat('THIS',' ','IS',' ','A',' ')),ucase('false'),' ','test'),'FALSE','REAL') ;
-replace(concat(lcase(concat('THIS',' ','IS',' ','A',' ')),ucase('false'),' ','test'),'FALSE','REAL')
-this is a REAL test
-select soundex(''),soundex('he'),soundex('hello all folks'),soundex('#3556 in bugdb');
-soundex('') soundex('he') soundex('hello all folks') soundex('#3556 in bugdb')
- H000 H4142 I51231
-select 'mood' sounds like 'mud';
-'mood' sounds like 'mud'
-1
-select 'Glazgo' sounds like 'Liverpool';
-'Glazgo' sounds like 'Liverpool'
-0
-select null sounds like 'null';
-null sounds like 'null'
-NULL
-select 'null' sounds like null;
-'null' sounds like null
-NULL
-select null sounds like null;
-null sounds like null
-NULL
-select md5('hello');
-md5('hello')
-5d41402abc4b2a76b9719d911017c592
-select crc32("123");
-crc32("123")
-2286445522
-select sha('abc');
-sha('abc')
-a9993e364706816aba3e25717850c26c9cd0d89d
-select sha1('abc');
-sha1('abc')
-a9993e364706816aba3e25717850c26c9cd0d89d
-select aes_decrypt(aes_encrypt('abc','1'),'1');
-aes_decrypt(aes_encrypt('abc','1'),'1')
-abc
-select aes_decrypt(aes_encrypt('abc','1'),1);
-aes_decrypt(aes_encrypt('abc','1'),1)
-abc
-select aes_encrypt(NULL,"a");
-aes_encrypt(NULL,"a")
-NULL
-select aes_encrypt("a",NULL);
-aes_encrypt("a",NULL)
-NULL
-select aes_decrypt(NULL,"a");
-aes_decrypt(NULL,"a")
-NULL
-select aes_decrypt("a",NULL);
-aes_decrypt("a",NULL)
-NULL
-select aes_decrypt("a","a");
-aes_decrypt("a","a")
-NULL
-select aes_decrypt(aes_encrypt("","a"),"a");
-aes_decrypt(aes_encrypt("","a"),"a")
-
-select aes_decrypt("", "a");
-aes_decrypt("", "a")
-NULL
-select repeat('monty',5),concat('*',space(5),'*');
-repeat('monty',5) concat('*',space(5),'*')
-montymontymontymontymonty * *
-select reverse('abc'),reverse('abcd');
-reverse('abc') reverse('abcd')
-cba dcba
-select rpad('a',4,'1'),rpad('a',4,'12'),rpad('abcd',3,'12'), rpad(11, 10 , 22), rpad("ab", 10, 22);
-rpad('a',4,'1') rpad('a',4,'12') rpad('abcd',3,'12') rpad(11, 10 , 22) rpad("ab", 10, 22)
-a111 a121 abc 1122222222 ab22222222
-select lpad('a',4,'1'),lpad('a',4,'12'),lpad('abcd',3,'12'), lpad(11, 10 , 22);
-lpad('a',4,'1') lpad('a',4,'12') lpad('abcd',3,'12') lpad(11, 10 , 22)
-111a 121a abc 2222222211
-select rpad(741653838,17,'0'),lpad(741653838,17,'0');
-rpad(741653838,17,'0') lpad(741653838,17,'0')
-74165383800000000 00000000741653838
-select rpad('abcd',7,'ab'),lpad('abcd',7,'ab');
-rpad('abcd',7,'ab') lpad('abcd',7,'ab')
-abcdaba abaabcd
-select rpad('abcd',1,'ab'),lpad('abcd',1,'ab');
-rpad('abcd',1,'ab') lpad('abcd',1,'ab')
-a a
-select rpad('STRING', 20, CONCAT('p','a','d') );
-rpad('STRING', 20, CONCAT('p','a','d') )
-STRINGpadpadpadpadpa
-select lpad('STRING', 20, CONCAT('p','a','d') );
-lpad('STRING', 20, CONCAT('p','a','d') )
-padpadpadpadpaSTRING
-select rpad('abcd',7),lpad('abcd',7);
-rpad('abcd',7) lpad('abcd',7)
-abcd abcd
-select LEAST(NULL,'HARRY','HARRIOT',NULL,'HAROLD'),GREATEST(NULL,'HARRY','HARRIOT',NULL,'HAROLD');
-LEAST(NULL,'HARRY','HARRIOT',NULL,'HAROLD') GREATEST(NULL,'HARRY','HARRIOT',NULL,'HAROLD')
-NULL NULL
-select least(1,2,3) | greatest(16,32,8), least(5,4)*1,greatest(-1.0,1.0)*1,least(3,2,1)*1.0,greatest(1,1.1,1.0),least("10",9),greatest("A","B","0");
-least(1,2,3) | greatest(16,32,8) least(5,4)*1 greatest(-1.0,1.0)*1 least(3,2,1)*1.0 greatest(1,1.1,1.0) least("10",9) greatest("A","B","0")
-33 4 1.0 1.0 1.1 9 B
-select decode(encode(repeat("a",100000),"monty"),"monty")=repeat("a",100000);
-decode(encode(repeat("a",100000),"monty"),"monty")=repeat("a",100000)
-1
-select decode(encode("abcdef","monty"),"monty")="abcdef";
-decode(encode("abcdef","monty"),"monty")="abcdef"
-1
-select quote('\'\"\\test');
-quote('\'\"\\test')
-'\'"\\test'
-select quote(concat('abc\'', '\\cba'));
-quote(concat('abc\'', '\\cba'))
-'abc\'\\cba'
-select quote(1/0), quote('\0\Z');
-quote(1/0) quote('\0\Z')
-NULL '\0\Z'
-Warnings:
-Warning 1365 Division by 0
-select length(quote(concat(char(0),"test")));
-length(quote(concat(char(0),"test")))
-8
-select hex(quote(concat(char(224),char(227),char(230),char(231),char(232),char(234),char(235))));
-hex(quote(concat(char(224),char(227),char(230),char(231),char(232),char(234),char(235))))
-27E0E3E6E7E8EAEB27
-select unhex(hex("foobar")), hex(unhex("1234567890ABCDEF")), unhex("345678"), unhex(NULL);
-unhex(hex("foobar")) hex(unhex("1234567890ABCDEF")) unhex("345678") unhex(NULL)
-foobar 1234567890ABCDEF 4Vx NULL
-select hex(unhex("1")), hex(unhex("12")), hex(unhex("123")), hex(unhex("1234")), hex(unhex("12345")), hex(unhex("123456"));
-hex(unhex("1")) hex(unhex("12")) hex(unhex("123")) hex(unhex("1234")) hex(unhex("12345")) hex(unhex("123456"))
-01 12 0123 1234 012345 123456
-select length(unhex(md5("abrakadabra")));
-length(unhex(md5("abrakadabra")))
-16
-select concat('a', quote(NULL));
-concat('a', quote(NULL))
-aNULL
-select reverse("");
-reverse("")
-
-select insert("aa",100,1,"b"),insert("aa",1,3,"b"),left("aa",-1),substring("a",1,2);
-insert("aa",100,1,"b") insert("aa",1,3,"b") left("aa",-1) substring("a",1,2)
-aa b a
-select elt(2,1),field(NULL,"a","b","c"),reverse("");
-elt(2,1) field(NULL,"a","b","c") reverse("")
-NULL 0
-select locate("a","b",2),locate("","a",1);
-locate("a","b",2) locate("","a",1)
-0 1
-select ltrim("a"),rtrim("a"),trim(BOTH "" from "a"),trim(BOTH " " from "a");
-ltrim("a") rtrim("a") trim(BOTH "" from "a") trim(BOTH " " from "a")
-a a a a
-select concat("1","2")|0,concat("1",".5")+0.0;
-concat("1","2")|0 concat("1",".5")+0.0
-12 1.5
-select substring_index("www.tcx.se","",3);
-substring_index("www.tcx.se","",3)
-
-select length(repeat("a",100000000)),length(repeat("a",1000*64));
-length(repeat("a",100000000)) length(repeat("a",1000*64))
-NULL 64000
-Warnings:
-Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
-select position("0" in "baaa" in (1)),position("0" in "1" in (1,2,3)),position("sql" in ("mysql"));
-position("0" in "baaa" in (1)) position("0" in "1" in (1,2,3)) position("sql" in ("mysql"))
-1 0 3
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'baaa'
-select position(("1" in (1,2,3)) in "01");
-position(("1" in (1,2,3)) in "01")
-2
-select length(repeat("a",65500)),length(concat(repeat("a",32000),repeat("a",32000))),length(replace("aaaaa","a",concat(repeat("a",10000)))),length(insert(repeat("a",40000),1,30000,repeat("b",50000)));
-length(repeat("a",65500)) length(concat(repeat("a",32000),repeat("a",32000))) length(replace("aaaaa","a",concat(repeat("a",10000)))) length(insert(repeat("a",40000),1,30000,repeat("b",50000)))
-65500 64000 50000 60000
-select length(repeat("a",1000000)),length(concat(repeat("a",32000),repeat("a",32000),repeat("a",32000))),length(replace("aaaaa","a",concat(repeat("a",32000)))),length(insert(repeat("a",48000),1,1000,repeat("a",48000)));
-length(repeat("a",1000000)) length(concat(repeat("a",32000),repeat("a",32000),repeat("a",32000))) length(replace("aaaaa","a",concat(repeat("a",32000)))) length(insert(repeat("a",48000),1,1000,repeat("a",48000)))
-1000000 96000 160000 95000
-create table t1 ( domain char(50) );
-insert into t1 VALUES ("hello.de" ), ("test.de" );
-select domain from t1 where concat('@', trim(leading '.' from concat('.', domain))) = '@hello.de';
-domain
-hello.de
-select domain from t1 where concat('@', trim(leading '.' from concat('.', domain))) = '@test.de';
-domain
-test.de
-drop table t1;
-CREATE TABLE t1 (
-id int(10) unsigned NOT NULL,
-title varchar(255) default NULL,
-prio int(10) unsigned default NULL,
-category int(10) unsigned default NULL,
-program int(10) unsigned default NULL,
-bugdesc text,
-created datetime default NULL,
-modified timestamp NOT NULL,
-bugstatus int(10) unsigned default NULL,
-submitter int(10) unsigned default NULL
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'Link',1,1,1,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa','2001-02-28 08:40:16',20010228084016,0,4);
-SELECT CONCAT('"',CONCAT_WS('";"',title,prio,category,program,bugdesc,created,modified+0,bugstatus,submitter), '"') FROM t1;
-CONCAT('"',CONCAT_WS('";"',title,prio,category,program,bugdesc,created,modified+0,bugstatus,submitter), '"')
-"Link";"1";"1";"1";"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";"2001-02-28 08:40:16";"20010228084016";"0";"4"
-SELECT CONCAT('"',CONCAT_WS('";"',title,prio,category,program,bugstatus,submitter), '"') FROM t1;
-CONCAT('"',CONCAT_WS('";"',title,prio,category,program,bugstatus,submitter), '"')
-"Link";"1";"1";"1";"0";"4"
-SELECT CONCAT_WS('";"',title,prio,category,program,bugdesc,created,modified+0,bugstatus,submitter) FROM t1;
-CONCAT_WS('";"',title,prio,category,program,bugdesc,created,modified+0,bugstatus,submitter)
-Link";"1";"1";"1";"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";"2001-02-28 08:40:16";"20010228084016";"0";"4
-SELECT bugdesc, REPLACE(bugdesc, 'xxxxxxxxxxxxxxxxxxxx', 'bbbbbbbbbbbbbbbbbbbb') from t1 group by bugdesc;
-bugdesc REPLACE(bugdesc, 'xxxxxxxxxxxxxxxxxxxx', 'bbbbbbbbbbbbbbbbbbbb')
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-drop table t1;
-CREATE TABLE t1 (id int(11) NOT NULL auto_increment, tmp text NOT NULL, KEY id (id)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1, 'a545f661efdd1fb66fdee3aab79945bf');
-SELECT 1 FROM t1 WHERE tmp=AES_DECRYPT(tmp,"password");
-1
-DROP TABLE t1;
-CREATE TABLE t1 (
-wid int(10) unsigned NOT NULL auto_increment,
-data_podp date default NULL,
-status_wnio enum('nowy','podp','real','arch') NOT NULL default 'nowy',
-PRIMARY KEY(wid)
-);
-INSERT INTO t1 VALUES (8,NULL,'real');
-INSERT INTO t1 VALUES (9,NULL,'nowy');
-SELECT elt(status_wnio,data_podp) FROM t1 GROUP BY wid;
-elt(status_wnio,data_podp)
-NULL
-NULL
-DROP TABLE t1;
-CREATE TABLE t1 (title text) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('Congress reconvenes in September to debate welfare and adult education');
-INSERT INTO t1 VALUES ('House passes the CAREERS bill');
-SELECT CONCAT("</a>",RPAD("",(55 - LENGTH(title)),".")) from t1;
-CONCAT("</a>",RPAD("",(55 - LENGTH(title)),"."))
-NULL
-</a>..........................
-DROP TABLE t1;
-CREATE TABLE t1 (i int, j int);
-INSERT INTO t1 VALUES (1,1),(2,2);
-SELECT DISTINCT i, ELT(j, '345', '34') FROM t1;
-i ELT(j, '345', '34')
-1 345
-2 34
-DROP TABLE t1;
-create table t1(a char(4));
-insert into t1 values ('one'),(NULL),('two'),('four');
-select a, quote(a), isnull(quote(a)), quote(a) is null, ifnull(quote(a), 'n') from t1;
-a quote(a) isnull(quote(a)) quote(a) is null ifnull(quote(a), 'n')
-one 'one' 0 0 'one'
-NULL NULL 0 0 NULL
-two 'two' 0 0 'two'
-four 'four' 0 0 'four'
-drop table t1;
-select trim(trailing 'foo' from 'foo');
-trim(trailing 'foo' from 'foo')
-
-select trim(leading 'foo' from 'foo');
-trim(leading 'foo' from 'foo')
-
-select quote(ltrim(concat(' ', 'a')));
-quote(ltrim(concat(' ', 'a')))
-'a'
-select quote(trim(concat(' ', 'a')));
-quote(trim(concat(' ', 'a')))
-'a'
-CREATE TABLE t1 SELECT 1 UNION SELECT 2 UNION SELECT 3;
-SELECT QUOTE('A') FROM t1;
-QUOTE('A')
-'A'
-'A'
-'A'
-DROP TABLE t1;
-select 1=_latin1'1';
-1=_latin1'1'
-1
-select _latin1'1'=1;
-_latin1'1'=1
-1
-select _latin2'1'=1;
-_latin2'1'=1
-1
-select 1=_latin2'1';
-1=_latin2'1'
-1
-select _latin1'1'=_latin2'1';
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (latin2_general_ci,COERCIBLE) for operation '='
-select row('a','b','c') = row('a','b','c');
-row('a','b','c') = row('a','b','c')
-1
-select row('A','b','c') = row('a','b','c');
-row('A','b','c') = row('a','b','c')
-1
-select row('A' COLLATE latin1_bin,'b','c') = row('a','b','c');
-row('A' COLLATE latin1_bin,'b','c') = row('a','b','c')
-0
-select row('A','b','c') = row('a' COLLATE latin1_bin,'b','c');
-row('A','b','c') = row('a' COLLATE latin1_bin,'b','c')
-0
-select row('A' COLLATE latin1_general_ci,'b','c') = row('a' COLLATE latin1_bin,'b','c');
-ERROR HY000: Illegal mix of collations (latin1_general_ci,EXPLICIT) and (latin1_bin,EXPLICIT) for operation '='
-select concat(_latin1'a',_latin2'a');
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (latin2_general_ci,COERCIBLE) for operation 'concat'
-select concat(_latin1'a',_latin2'a',_latin5'a');
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE), (latin2_general_ci,COERCIBLE), (latin5_turkish_ci,COERCIBLE) for operation 'concat'
-select concat(_latin1'a',_latin2'a',_latin5'a',_latin7'a');
-ERROR HY000: Illegal mix of collations for operation 'concat'
-select concat_ws(_latin1'a',_latin2'a');
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (latin2_general_ci,COERCIBLE) for operation 'concat_ws'
-select FIELD('b','A','B');
-FIELD('b','A','B')
-2
-select FIELD('B','A','B');
-FIELD('B','A','B')
-2
-select FIELD('b' COLLATE latin1_bin,'A','B');
-FIELD('b' COLLATE latin1_bin,'A','B')
-0
-select FIELD('b','A' COLLATE latin1_bin,'B');
-FIELD('b','A' COLLATE latin1_bin,'B')
-0
-select FIELD(_latin2'b','A','B');
-ERROR HY000: Illegal mix of collations (latin2_general_ci,COERCIBLE), (latin1_swedish_ci,COERCIBLE), (latin1_swedish_ci,COERCIBLE) for operation 'field'
-select FIELD('b',_latin2'A','B');
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE), (latin2_general_ci,COERCIBLE), (latin1_swedish_ci,COERCIBLE) for operation 'field'
-select FIELD('1',_latin2'3','2',1);
-FIELD('1',_latin2'3','2',1)
-3
-select POSITION(_latin1'B' IN _latin1'abcd');
-POSITION(_latin1'B' IN _latin1'abcd')
-2
-select POSITION(_latin1'B' IN _latin1'abcd' COLLATE latin1_bin);
-POSITION(_latin1'B' IN _latin1'abcd' COLLATE latin1_bin)
-0
-select POSITION(_latin1'B' COLLATE latin1_bin IN _latin1'abcd');
-POSITION(_latin1'B' COLLATE latin1_bin IN _latin1'abcd')
-0
-select POSITION(_latin1'B' COLLATE latin1_general_ci IN _latin1'abcd' COLLATE latin1_bin);
-ERROR HY000: Illegal mix of collations (latin1_bin,EXPLICIT) and (latin1_general_ci,EXPLICIT) for operation 'locate'
-select POSITION(_latin1'B' IN _latin2'abcd');
-ERROR HY000: Illegal mix of collations (latin2_general_ci,COERCIBLE) and (latin1_swedish_ci,COERCIBLE) for operation 'locate'
-select FIND_IN_SET(_latin1'B',_latin1'a,b,c,d');
-FIND_IN_SET(_latin1'B',_latin1'a,b,c,d')
-2
-select FIND_IN_SET(_latin1'B' COLLATE latin1_general_ci,_latin1'a,b,c,d' COLLATE latin1_bin);
-ERROR HY000: Illegal mix of collations (latin1_general_ci,EXPLICIT) and (latin1_bin,EXPLICIT) for operation 'find_in_set'
-select FIND_IN_SET(_latin1'B',_latin2'a,b,c,d');
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (latin2_general_ci,COERCIBLE) for operation 'find_in_set'
-select SUBSTRING_INDEX(_latin1'abcdabcdabcd',_latin1'd',2);
-SUBSTRING_INDEX(_latin1'abcdabcdabcd',_latin1'd',2)
-abcdabc
-select SUBSTRING_INDEX(_latin1'abcdabcdabcd',_latin2'd',2);
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (latin2_general_ci,COERCIBLE) for operation 'substring_index'
-select SUBSTRING_INDEX(_latin1'abcdabcdabcd' COLLATE latin1_general_ci,_latin1'd' COLLATE latin1_bin,2);
-ERROR HY000: Illegal mix of collations (latin1_general_ci,EXPLICIT) and (latin1_bin,EXPLICIT) for operation 'substring_index'
-select _latin1'B' between _latin1'a' and _latin1'c';
-_latin1'B' between _latin1'a' and _latin1'c'
-1
-select _latin1'B' collate latin1_bin between _latin1'a' and _latin1'c';
-_latin1'B' collate latin1_bin between _latin1'a' and _latin1'c'
-0
-select _latin1'B' between _latin1'a' collate latin1_bin and _latin1'c';
-_latin1'B' between _latin1'a' collate latin1_bin and _latin1'c'
-0
-select _latin1'B' between _latin1'a' and _latin1'c' collate latin1_bin;
-_latin1'B' between _latin1'a' and _latin1'c' collate latin1_bin
-0
-select _latin2'B' between _latin1'a' and _latin1'b';
-ERROR HY000: Illegal mix of collations (latin2_general_ci,COERCIBLE), (latin1_swedish_ci,COERCIBLE), (latin1_swedish_ci,COERCIBLE) for operation 'between'
-select _latin1'B' between _latin2'a' and _latin1'b';
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE), (latin2_general_ci,COERCIBLE), (latin1_swedish_ci,COERCIBLE) for operation 'between'
-select _latin1'B' between _latin1'a' and _latin2'b';
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE), (latin1_swedish_ci,COERCIBLE), (latin2_general_ci,COERCIBLE) for operation 'between'
-select _latin1'B' collate latin1_general_ci between _latin1'a' collate latin1_bin and _latin1'b';
-ERROR HY000: Illegal mix of collations (latin1_general_ci,EXPLICIT), (latin1_bin,EXPLICIT), (latin1_swedish_ci,COERCIBLE) for operation 'between'
-select _latin1'B' in (_latin1'a',_latin1'b');
-_latin1'B' in (_latin1'a',_latin1'b')
-1
-select _latin1'B' collate latin1_bin in (_latin1'a',_latin1'b');
-_latin1'B' collate latin1_bin in (_latin1'a',_latin1'b')
-0
-select _latin1'B' in (_latin1'a' collate latin1_bin,_latin1'b');
-_latin1'B' in (_latin1'a' collate latin1_bin,_latin1'b')
-0
-select _latin1'B' in (_latin1'a',_latin1'b' collate latin1_bin);
-_latin1'B' in (_latin1'a',_latin1'b' collate latin1_bin)
-0
-select _latin2'B' in (_latin1'a',_latin1'b');
-ERROR HY000: Illegal mix of collations (latin2_general_ci,COERCIBLE), (latin1_swedish_ci,COERCIBLE), (latin1_swedish_ci,COERCIBLE) for operation 'in'
-select _latin1'B' in (_latin2'a',_latin1'b');
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE), (latin2_general_ci,COERCIBLE), (latin1_swedish_ci,COERCIBLE) for operation 'in'
-select _latin1'B' in (_latin1'a',_latin2'b');
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE), (latin1_swedish_ci,COERCIBLE), (latin2_general_ci,COERCIBLE) for operation 'in'
-select _latin1'B' COLLATE latin1_general_ci in (_latin1'a' COLLATE latin1_bin,_latin1'b');
-ERROR HY000: Illegal mix of collations (latin1_general_ci,EXPLICIT), (latin1_bin,EXPLICIT), (latin1_swedish_ci,COERCIBLE) for operation 'in'
-select _latin1'B' COLLATE latin1_general_ci in (_latin1'a',_latin1'b' COLLATE latin1_bin);
-ERROR HY000: Illegal mix of collations (latin1_general_ci,EXPLICIT), (latin1_swedish_ci,COERCIBLE), (latin1_bin,EXPLICIT) for operation 'in'
-select collation(bin(130)), coercibility(bin(130));
-collation(bin(130)) coercibility(bin(130))
-latin1_swedish_ci 4
-select collation(oct(130)), coercibility(oct(130));
-collation(oct(130)) coercibility(oct(130))
-latin1_swedish_ci 4
-select collation(conv(130,16,10)), coercibility(conv(130,16,10));
-collation(conv(130,16,10)) coercibility(conv(130,16,10))
-latin1_swedish_ci 4
-select collation(hex(130)), coercibility(hex(130));
-collation(hex(130)) coercibility(hex(130))
-latin1_swedish_ci 4
-select collation(char(130)), coercibility(hex(130));
-collation(char(130)) coercibility(hex(130))
-binary 4
-select collation(format(130,10)), coercibility(format(130,10));
-collation(format(130,10)) coercibility(format(130,10))
-latin1_swedish_ci 4
-select collation(lcase(_latin2'a')), coercibility(lcase(_latin2'a'));
-collation(lcase(_latin2'a')) coercibility(lcase(_latin2'a'))
-latin2_general_ci 4
-select collation(ucase(_latin2'a')), coercibility(ucase(_latin2'a'));
-collation(ucase(_latin2'a')) coercibility(ucase(_latin2'a'))
-latin2_general_ci 4
-select collation(left(_latin2'a',1)), coercibility(left(_latin2'a',1));
-collation(left(_latin2'a',1)) coercibility(left(_latin2'a',1))
-latin2_general_ci 4
-select collation(right(_latin2'a',1)), coercibility(right(_latin2'a',1));
-collation(right(_latin2'a',1)) coercibility(right(_latin2'a',1))
-latin2_general_ci 4
-select collation(substring(_latin2'a',1,1)), coercibility(substring(_latin2'a',1,1));
-collation(substring(_latin2'a',1,1)) coercibility(substring(_latin2'a',1,1))
-latin2_general_ci 4
-select collation(concat(_latin2'a',_latin2'b')), coercibility(concat(_latin2'a',_latin2'b'));
-collation(concat(_latin2'a',_latin2'b')) coercibility(concat(_latin2'a',_latin2'b'))
-latin2_general_ci 4
-select collation(lpad(_latin2'a',4,_latin2'b')), coercibility(lpad(_latin2'a',4,_latin2'b'));
-collation(lpad(_latin2'a',4,_latin2'b')) coercibility(lpad(_latin2'a',4,_latin2'b'))
-latin2_general_ci 4
-select collation(lpad(_latin2'a',4)), coercibility(lpad(_latin2'a',4));
-collation(lpad(_latin2'a',4)) coercibility(lpad(_latin2'a',4))
-latin2_general_ci 4
-select collation(rpad(_latin2'a',4,_latin2'b')), coercibility(rpad(_latin2'a',4,_latin2'b'));
-collation(rpad(_latin2'a',4,_latin2'b')) coercibility(rpad(_latin2'a',4,_latin2'b'))
-latin2_general_ci 4
-select collation(rpad(_latin2'a',4)), coercibility(rpad(_latin2'a',4));
-collation(rpad(_latin2'a',4)) coercibility(rpad(_latin2'a',4))
-latin2_general_ci 4
-select collation(concat_ws(_latin2'a',_latin2'b')), coercibility(concat_ws(_latin2'a',_latin2'b'));
-collation(concat_ws(_latin2'a',_latin2'b')) coercibility(concat_ws(_latin2'a',_latin2'b'))
-latin2_general_ci 4
-select collation(make_set(255,_latin2'a',_latin2'b',_latin2'c')), coercibility(make_set(255,_latin2'a',_latin2'b',_latin2'c'));
-collation(make_set(255,_latin2'a',_latin2'b',_latin2'c')) coercibility(make_set(255,_latin2'a',_latin2'b',_latin2'c'))
-latin2_general_ci 4
-select collation(export_set(255,_latin2'y',_latin2'n',_latin2' ')), coercibility(export_set(255,_latin2'y',_latin2'n',_latin2' '));
-collation(export_set(255,_latin2'y',_latin2'n',_latin2' ')) coercibility(export_set(255,_latin2'y',_latin2'n',_latin2' '))
-latin2_general_ci 4
-select collation(trim(_latin2' a ')), coercibility(trim(_latin2' a '));
-collation(trim(_latin2' a ')) coercibility(trim(_latin2' a '))
-latin2_general_ci 4
-select collation(ltrim(_latin2' a ')), coercibility(ltrim(_latin2' a '));
-collation(ltrim(_latin2' a ')) coercibility(ltrim(_latin2' a '))
-latin2_general_ci 4
-select collation(rtrim(_latin2' a ')), coercibility(rtrim(_latin2' a '));
-collation(rtrim(_latin2' a ')) coercibility(rtrim(_latin2' a '))
-latin2_general_ci 4
-select collation(trim(LEADING _latin2' ' FROM _latin2'a')), coercibility(trim(LEADING _latin2'a' FROM _latin2'a'));
-collation(trim(LEADING _latin2' ' FROM _latin2'a')) coercibility(trim(LEADING _latin2'a' FROM _latin2'a'))
-latin2_general_ci 4
-select collation(trim(TRAILING _latin2' ' FROM _latin2'a')), coercibility(trim(TRAILING _latin2'a' FROM _latin2'a'));
-collation(trim(TRAILING _latin2' ' FROM _latin2'a')) coercibility(trim(TRAILING _latin2'a' FROM _latin2'a'))
-latin2_general_ci 4
-select collation(trim(BOTH _latin2' ' FROM _latin2'a')), coercibility(trim(BOTH _latin2'a' FROM _latin2'a'));
-collation(trim(BOTH _latin2' ' FROM _latin2'a')) coercibility(trim(BOTH _latin2'a' FROM _latin2'a'))
-latin2_general_ci 4
-select collation(repeat(_latin2'a',10)), coercibility(repeat(_latin2'a',10));
-collation(repeat(_latin2'a',10)) coercibility(repeat(_latin2'a',10))
-latin2_general_ci 4
-select collation(reverse(_latin2'ab')), coercibility(reverse(_latin2'ab'));
-collation(reverse(_latin2'ab')) coercibility(reverse(_latin2'ab'))
-latin2_general_ci 4
-select collation(quote(_latin2'ab')), coercibility(quote(_latin2'ab'));
-collation(quote(_latin2'ab')) coercibility(quote(_latin2'ab'))
-latin2_general_ci 4
-select collation(soundex(_latin2'ab')), coercibility(soundex(_latin2'ab'));
-collation(soundex(_latin2'ab')) coercibility(soundex(_latin2'ab'))
-latin2_general_ci 4
-select collation(substring(_latin2'ab',1)), coercibility(substring(_latin2'ab',1));
-collation(substring(_latin2'ab',1)) coercibility(substring(_latin2'ab',1))
-latin2_general_ci 4
-select collation(insert(_latin2'abcd',2,3,_latin2'ef')), coercibility(insert(_latin2'abcd',2,3,_latin2'ef'));
-collation(insert(_latin2'abcd',2,3,_latin2'ef')) coercibility(insert(_latin2'abcd',2,3,_latin2'ef'))
-latin2_general_ci 4
-select collation(replace(_latin2'abcd',_latin2'b',_latin2'B')), coercibility(replace(_latin2'abcd',_latin2'b',_latin2'B'));
-collation(replace(_latin2'abcd',_latin2'b',_latin2'B')) coercibility(replace(_latin2'abcd',_latin2'b',_latin2'B'))
-latin2_general_ci 4
-select collation(encode('abcd','ab')), coercibility(encode('abcd','ab'));
-collation(encode('abcd','ab')) coercibility(encode('abcd','ab'))
-binary 4
-create table t1
-select
-bin(130),
-oct(130),
-conv(130,16,10),
-hex(130),
-char(130),
-format(130,10),
-left(_latin2'a',1),
-right(_latin2'a',1),
-lcase(_latin2'a'),
-ucase(_latin2'a'),
-substring(_latin2'a',1,1),
-concat(_latin2'a',_latin2'b'),
-lpad(_latin2'a',4,_latin2'b'),
-rpad(_latin2'a',4,_latin2'b'),
-lpad(_latin2'a',4),
-rpad(_latin2'a',4),
-concat_ws(_latin2'a',_latin2'b'),
-make_set(255,_latin2'a',_latin2'b',_latin2'c'),
-export_set(255,_latin2'y',_latin2'n',_latin2' '),
-trim(_latin2' a '),
-ltrim(_latin2' a '),
-rtrim(_latin2' a '),
-trim(LEADING _latin2' ' FROM _latin2' a '),
-trim(TRAILING _latin2' ' FROM _latin2' a '),
-trim(BOTH _latin2' ' FROM _latin2' a '),
-repeat(_latin2'a',10),
-reverse(_latin2'ab'),
-quote(_latin2'ab'),
-soundex(_latin2'ab'),
-substring(_latin2'ab',1),
-insert(_latin2'abcd',2,3,_latin2'ef'),
-replace(_latin2'abcd',_latin2'b',_latin2'B'),
-encode('abcd','ab')
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `bin(130)` varchar(64) DEFAULT NULL,
- `oct(130)` varchar(64) DEFAULT NULL,
- `conv(130,16,10)` varchar(64) DEFAULT NULL,
- `hex(130)` varchar(6) DEFAULT NULL,
- `char(130)` varbinary(4) DEFAULT NULL,
- `format(130,10)` varchar(45) DEFAULT NULL,
- `left(_latin2'a',1)` varchar(1) CHARACTER SET latin2 DEFAULT NULL,
- `right(_latin2'a',1)` varchar(1) CHARACTER SET latin2 DEFAULT NULL,
- `lcase(_latin2'a')` varchar(1) CHARACTER SET latin2 DEFAULT NULL,
- `ucase(_latin2'a')` varchar(1) CHARACTER SET latin2 DEFAULT NULL,
- `substring(_latin2'a',1,1)` varchar(1) CHARACTER SET latin2 DEFAULT NULL,
- `concat(_latin2'a',_latin2'b')` varchar(2) CHARACTER SET latin2 DEFAULT NULL,
- `lpad(_latin2'a',4,_latin2'b')` varchar(4) CHARACTER SET latin2 DEFAULT NULL,
- `rpad(_latin2'a',4,_latin2'b')` varchar(4) CHARACTER SET latin2 DEFAULT NULL,
- `lpad(_latin2'a',4)` varchar(4) CHARACTER SET latin2 DEFAULT NULL,
- `rpad(_latin2'a',4)` varchar(4) CHARACTER SET latin2 DEFAULT NULL,
- `concat_ws(_latin2'a',_latin2'b')` varchar(1) CHARACTER SET latin2 DEFAULT NULL,
- `make_set(255,_latin2'a',_latin2'b',_latin2'c')` varchar(5) CHARACTER SET latin2 DEFAULT NULL,
- `export_set(255,_latin2'y',_latin2'n',_latin2' ')` varchar(127) CHARACTER SET latin2 DEFAULT NULL,
- `trim(_latin2' a ')` varchar(3) CHARACTER SET latin2 DEFAULT NULL,
- `ltrim(_latin2' a ')` varchar(3) CHARACTER SET latin2 DEFAULT NULL,
- `rtrim(_latin2' a ')` varchar(3) CHARACTER SET latin2 DEFAULT NULL,
- `trim(LEADING _latin2' ' FROM _latin2' a ')` varchar(3) CHARACTER SET latin2 DEFAULT NULL,
- `trim(TRAILING _latin2' ' FROM _latin2' a ')` varchar(3) CHARACTER SET latin2 DEFAULT NULL,
- `trim(BOTH _latin2' ' FROM _latin2' a ')` varchar(3) CHARACTER SET latin2 DEFAULT NULL,
- `repeat(_latin2'a',10)` varchar(10) CHARACTER SET latin2 DEFAULT NULL,
- `reverse(_latin2'ab')` varchar(2) CHARACTER SET latin2 DEFAULT NULL,
- `quote(_latin2'ab')` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `soundex(_latin2'ab')` varchar(4) CHARACTER SET latin2 DEFAULT NULL,
- `substring(_latin2'ab',1)` varchar(2) CHARACTER SET latin2 DEFAULT NULL,
- `insert(_latin2'abcd',2,3,_latin2'ef')` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `replace(_latin2'abcd',_latin2'b',_latin2'B')` varchar(4) CHARACTER SET latin2 DEFAULT NULL,
- `encode('abcd','ab')` varbinary(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a char character set latin2);
-insert into t1 values (null);
-select charset(a), collation(a), coercibility(a) from t1;
-charset(a) collation(a) coercibility(a)
-latin2 latin2_general_ci 2
-drop table t1;
-select charset(null), collation(null), coercibility(null);
-charset(null) collation(null) coercibility(null)
-binary binary 6
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (a int, b int);
-INSERT INTO t1 VALUES (1,1),(2,2);
-INSERT INTO t2 VALUES (2,2),(3,3);
-select t1.*,t2.* from t1 left join t2 on (t1.b=t2.b)
-where collation(t2.a) = _utf8'binary' order by t1.a,t2.a;
-a b a b
-1 1 NULL NULL
-2 2 2 2
-select t1.*,t2.* from t1 left join t2 on (t1.b=t2.b)
-where charset(t2.a) = _utf8'binary' order by t1.a,t2.a;
-a b a b
-1 1 NULL NULL
-2 2 2 2
-select t1.*,t2.* from t1 left join t2 on (t1.b=t2.b)
-where coercibility(t2.a) = 5 order by t1.a,t2.a;
-a b a b
-1 1 NULL NULL
-2 2 2 2
-DROP TABLE t1, t2;
-select SUBSTR('abcdefg',3,2);
-SUBSTR('abcdefg',3,2)
-cd
-select SUBSTRING('abcdefg',3,2);
-SUBSTRING('abcdefg',3,2)
-cd
-select SUBSTR('abcdefg',-3,2) FROM DUAL;
-SUBSTR('abcdefg',-3,2)
-ef
-select SUBSTR('abcdefg',-1,5) FROM DUAL;
-SUBSTR('abcdefg',-1,5)
-g
-select SUBSTR('abcdefg',0,0) FROM DUAL;
-SUBSTR('abcdefg',0,0)
-
-select SUBSTR('abcdefg',-1,-1) FROM DUAL;
-SUBSTR('abcdefg',-1,-1)
-
-select SUBSTR('abcdefg',1,-1) FROM DUAL;
-SUBSTR('abcdefg',1,-1)
-
-create table t7 (s1 char);
-select * from t7
-where concat(s1 collate latin1_general_ci,s1 collate latin1_swedish_ci) = 'AA';
-ERROR HY000: Illegal mix of collations (latin1_general_ci,EXPLICIT) and (latin1_swedish_ci,EXPLICIT) for operation 'concat'
-drop table t7;
-select substring_index("1abcd;2abcd;3abcd;4abcd", ';', 2),substring_index("1abcd;2abcd;3abcd;4abcd", ';', -2);
-substring_index("1abcd;2abcd;3abcd;4abcd", ';', 2) substring_index("1abcd;2abcd;3abcd;4abcd", ';', -2)
-1abcd;2abcd 3abcd;4abcd
-explain extended select md5('hello');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select md5('hello') AS `md5('hello')`
-explain extended select sha('abc');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select sha('abc') AS `sha('abc')`
-explain extended select sha1('abc');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select sha('abc') AS `sha1('abc')`
-explain extended select soundex('');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select soundex('') AS `soundex('')`
-explain extended select 'mood' sounds like 'mud';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select soundex('mood') = soundex('mud') AS `'mood' sounds like 'mud'`
-explain extended select aes_decrypt(aes_encrypt('abc','1'),'1');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select aes_decrypt(aes_encrypt('abc','1'),'1') AS `aes_decrypt(aes_encrypt('abc','1'),'1')`
-explain extended select concat('*',space(5),'*');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select concat('*',space(5),'*') AS `concat('*',space(5),'*')`
-explain extended select reverse('abc');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select reverse('abc') AS `reverse('abc')`
-explain extended select rpad('a',4,'1');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select rpad('a',4,'1') AS `rpad('a',4,'1')`
-explain extended select lpad('a',4,'1');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select lpad('a',4,'1') AS `lpad('a',4,'1')`
-explain extended select rpad('a',4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select rpad('a',4) AS `rpad('a',4)`
-explain extended select lpad('a',4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select lpad('a',4) AS `lpad('a',4)`
-explain extended select concat_ws(',','',NULL,'a');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select concat_ws(',','',NULL,'a') AS `concat_ws(',','',NULL,'a')`
-explain extended select make_set(255,_latin2'a', _latin2'b', _latin2'c');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select make_set(255,_latin2'a',_latin2'b',_latin2'c') AS `make_set(255,_latin2'a', _latin2'b', _latin2'c')`
-explain extended select elt(2,1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select elt(2,1) AS `elt(2,1)`
-explain extended select locate("a","b",2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select locate('a','b',2) AS `locate("a","b",2)`
-explain extended select format(130,10);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select format(130,10) AS `format(130,10)`
-explain extended select char(0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select char(0) AS `char(0)`
-explain extended select conv(130,16,10);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select conv(130,16,10) AS `conv(130,16,10)`
-explain extended select hex(130);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select hex(130) AS `hex(130)`
-explain extended select binary 'HE';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select cast('HE' as char charset binary) AS `binary 'HE'`
-explain extended select export_set(255,_latin2'y', _latin2'n', _latin2' ');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select export_set(255,_latin2'y',_latin2'n',_latin2' ') AS `export_set(255,_latin2'y', _latin2'n', _latin2' ')`
-explain extended select FIELD('b' COLLATE latin1_bin,'A','B');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select field('b' collate latin1_bin,'A','B') AS `FIELD('b' COLLATE latin1_bin,'A','B')`
-explain extended select FIND_IN_SET(_latin1'B', _latin1'a,b,c,d');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select find_in_set(_latin1'B',_latin1'a,b,c,d') AS `FIND_IN_SET(_latin1'B', _latin1'a,b,c,d')`
-explain extended select collation(conv(130,16,10));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select collation(conv(130,16,10)) AS `collation(conv(130,16,10))`
-explain extended select coercibility(conv(130,16,10));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select coercibility(conv(130,16,10)) AS `coercibility(conv(130,16,10))`
-explain extended select length('\n\t\r\b\0\_\%\\');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select octet_length('\n \r\0\\_\\%\\') AS `length('\n\t\r\b\0\_\%\\')`
-explain extended select bit_length('\n\t\r\b\0\_\%\\');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select bit_length('\n \r\0\\_\\%\\') AS `bit_length('\n\t\r\b\0\_\%\\')`
-explain extended select bit_length('\n\t\r\b\0\_\%\\');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select bit_length('\n \r\0\\_\\%\\') AS `bit_length('\n\t\r\b\0\_\%\\')`
-explain extended select concat('monty',' was here ','again');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select concat('monty',' was here ','again') AS `concat('monty',' was here ','again')`
-explain extended select length('hello');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select octet_length('hello') AS `length('hello')`
-explain extended select char(ascii('h'));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select char(ascii('h')) AS `char(ascii('h'))`
-explain extended select ord('h');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select ord('h') AS `ord('h')`
-explain extended select quote(1/0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select quote(1 / 0) AS `quote(1/0)`
-explain extended select crc32("123");
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select crc32('123') AS `crc32("123")`
-explain extended select replace('aaaa','a','b');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select replace('aaaa','a','b') AS `replace('aaaa','a','b')`
-explain extended select insert('txs',2,1,'hi');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select insert('txs',2,1,'hi') AS `insert('txs',2,1,'hi')`
-explain extended select left(_latin2'a',1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select left(_latin2'a',1) AS `left(_latin2'a',1)`
-explain extended select right(_latin2'a',1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select right(_latin2'a',1) AS `right(_latin2'a',1)`
-explain extended select lcase(_latin2'a');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select lcase(_latin2'a') AS `lcase(_latin2'a')`
-explain extended select ucase(_latin2'a');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select ucase(_latin2'a') AS `ucase(_latin2'a')`
-explain extended select SUBSTR('abcdefg',3,2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select substr('abcdefg',3,2) AS `SUBSTR('abcdefg',3,2)`
-explain extended select substring_index("1abcd;2abcd;3abcd;4abcd", ';', 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select substring_index('1abcd;2abcd;3abcd;4abcd',';',2) AS `substring_index("1abcd;2abcd;3abcd;4abcd", ';', 2)`
-explain extended select trim(_latin2' a ');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select trim(_latin2' a ') AS `trim(_latin2' a ')`
-explain extended select ltrim(_latin2' a ');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select ltrim(_latin2' a ') AS `ltrim(_latin2' a ')`
-explain extended select rtrim(_latin2' a ');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select rtrim(_latin2' a ') AS `rtrim(_latin2' a ')`
-explain extended select decode(encode(repeat("a",100000),"monty"),"monty");
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select decode(encode(repeat('a',100000),'monty'),'monty') AS `decode(encode(repeat("a",100000),"monty"),"monty")`
-SELECT lpad(12345, 5, "#");
-lpad(12345, 5, "#")
-12345
-SELECT conv(71, 10, 36), conv('1Z', 36, 10);
-conv(71, 10, 36) conv('1Z', 36, 10)
-1Z 71
-SELECT conv(71, 10, 37), conv('1Z', 37, 10), conv(0,1,10),conv(0,0,10), conv(0,-1,10);
-conv(71, 10, 37) conv('1Z', 37, 10) conv(0,1,10) conv(0,0,10) conv(0,-1,10)
-NULL NULL NULL NULL NULL
-create table t1 (id int(1), str varchar(10)) DEFAULT CHARSET=utf8;
-insert into t1 values (1,'aaaaaaaaaa'), (2,'bbbbbbbbbb');
-create table t2 (id int(1), str varchar(10)) DEFAULT CHARSET=utf8;
-insert into t2 values (1,'cccccccccc'), (2,'dddddddddd');
-select substring(concat(t1.str, t2.str), 1, 15) "name" from t1, t2
-where t2.id=t1.id order by name;
-name
-aaaaaaaaaaccccc
-bbbbbbbbbbddddd
-drop table t1, t2;
-create table t1 (c1 INT, c2 INT UNSIGNED);
-insert ignore into t1 values ('21474836461','21474836461');
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-insert ignore into t1 values ('-21474836461','-21474836461');
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-show warnings;
-Level Code Message
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-select * from t1;
-c1 c2
-2147483647 4294967295
--2147483648 0
-drop table t1;
-select left(1234, 3) + 0;
-left(1234, 3) + 0
-123
-create table t1 (a int not null primary key, b varchar(40), c datetime);
-insert into t1 (a,b,c) values (1,'Tom','2004-12-10 12:13:14'),(2,'ball games','2004-12-10 12:13:14'), (3,'Basil','2004-12-10 12:13:14'), (4,'Dean','2004-12-10 12:13:14'),(5,'Ellis','2004-12-10 12:13:14'), (6,'Serg','2004-12-10 12:13:14'), (7,'Sergei','2004-12-10 12:13:14'),(8,'Georg','2004-12-10 12:13:14'),(9,'Salle','2004-12-10 12:13:14'),(10,'Sinisa','2004-12-10 12:13:14');
-select count(*) as total, left(c,10) as reg from t1 group by reg order by reg desc limit 0,12;
-total reg
-10 2004-12-10
-drop table t1;
-select trim(null from 'kate') as "must_be_null";
-must_be_null
-NULL
-select trim('xyz' from null) as "must_be_null";
-must_be_null
-NULL
-select trim(leading NULL from 'kate') as "must_be_null";
-must_be_null
-NULL
-select trim(trailing NULL from 'xyz') as "must_be_null";
-must_be_null
-NULL
-CREATE TABLE t1 (
-id int(11) NOT NULL auto_increment,
-a bigint(20) unsigned default NULL,
-PRIMARY KEY (id)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-('0','16307858876001849059');
-SELECT CONV('e251273eb74a8ee3', 16, 10);
-CONV('e251273eb74a8ee3', 16, 10)
-16307858876001849059
-EXPLAIN
-SELECT id
-FROM t1
-WHERE a = 16307858876001849059;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-EXPLAIN
-SELECT id
-FROM t1
-WHERE a = CONV('e251273eb74a8ee3', 16, 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-DROP TABLE t1;
-SELECT CHAR(NULL,121,83,81,'76') as my_column;
-my_column
-ySQL
-SELECT CHAR_LENGTH(CHAR(NULL,121,83,81,'76')) as my_column;
-my_column
-4
-CREATE TABLE t1 (id int PRIMARY KEY, str char(255) NOT NULL);
-CREATE TABLE t2 (id int NOT NULL UNIQUE);
-INSERT INTO t2 VALUES (1),(2);
-INSERT INTO t1 VALUES (1, aes_encrypt('foo', 'bar'));
-INSERT INTO t1 VALUES (2, 'not valid');
-SELECT t1.id, aes_decrypt(str, 'bar') FROM t1, t2 WHERE t1.id = t2.id;
-id aes_decrypt(str, 'bar')
-1 foo
-2 NULL
-SELECT t1.id, aes_decrypt(str, 'bar') FROM t1, t2 WHERE t1.id = t2.id
-ORDER BY t1.id;
-id aes_decrypt(str, 'bar')
-1 foo
-2 NULL
-DROP TABLE t1, t2;
-select field(0,NULL,1,0), field("",NULL,"bar",""), field(0.0,NULL,1.0,0.0);
-field(0,NULL,1,0) field("",NULL,"bar","") field(0.0,NULL,1.0,0.0)
-3 3 3
-select field(NULL,1,2,NULL), field(NULL,1,2,0);
-field(NULL,1,2,NULL) field(NULL,1,2,0)
-0 0
-CREATE TABLE t1 (str varchar(20) PRIMARY KEY);
-CREATE TABLE t2 (num int primary key);
-INSERT INTO t1 VALUES ('notnumber');
-INSERT INTO t2 VALUES (0), (1);
-SELECT * FROM t1, t2 WHERE num=str;
-str num
-notnumber 0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'notnumber'
-SELECT * FROM t1, t2 WHERE num=substring(str from 1 for 6);
-str num
-notnumber 0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'notnum'
-DROP TABLE t1,t2;
-CREATE TABLE t1(
-id int(11) NOT NULL auto_increment,
-pc int(11) NOT NULL default '0',
-title varchar(20) default NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t1 VALUES
-(1, 0, 'Main'),
-(2, 1, 'Toys'),
-(3, 1, 'Games');
-SELECT t1.id, CONCAT_WS('->', t3.title, t2.title, t1.title) as col1
-FROM t1 LEFT JOIN t1 AS t2 ON t1.pc=t2.id
-LEFT JOIN t1 AS t3 ON t2.pc=t3.id;
-id col1
-1 Main
-2 Main->Toys
-3 Main->Games
-SELECT t1.id, CONCAT_WS('->', t3.title, t2.title, t1.title) as col1
-FROM t1 LEFT JOIN t1 AS t2 ON t1.pc=t2.id
-LEFT JOIN t1 AS t3 ON t2.pc=t3.id
-WHERE CONCAT_WS('->', t3.title, t2.title, t1.title) LIKE '%Toys%';
-id col1
-2 Main->Toys
-DROP TABLE t1;
-CREATE TABLE t1(
-trackid int(10) unsigned NOT NULL auto_increment,
-trackname varchar(100) NOT NULL default '',
-PRIMARY KEY (trackid)
-);
-CREATE TABLE t2(
-artistid int(10) unsigned NOT NULL auto_increment,
-artistname varchar(100) NOT NULL default '',
-PRIMARY KEY (artistid)
-);
-CREATE TABLE t3(
-trackid int(10) unsigned NOT NULL,
-artistid int(10) unsigned NOT NULL,
-PRIMARY KEY (trackid,artistid)
-);
-INSERT INTO t1 VALUES (1, 'April In Paris'), (2, 'Autumn In New York');
-INSERT INTO t2 VALUES (1, 'Vernon Duke');
-INSERT INTO t3 VALUES (1,1);
-SELECT CONCAT_WS(' ', trackname, artistname) trackname, artistname
-FROM t1 LEFT JOIN t3 ON t1.trackid=t3.trackid
-LEFT JOIN t2 ON t2.artistid=t3.artistid
-WHERE CONCAT_WS(' ', trackname, artistname) LIKE '%In%';
-trackname artistname
-April In Paris Vernon Duke Vernon Duke
-Autumn In New York NULL
-DROP TABLE t1,t2,t3;
-create table t1 (b varchar(5));
-insert t1 values ('ab'), ('abc'), ('abcd'), ('abcde');
-select *,substring(b,1),substring(b,-1),substring(b,-2),substring(b,-3),substring(b,-4),substring(b,-5) from t1;
-b substring(b,1) substring(b,-1) substring(b,-2) substring(b,-3) substring(b,-4) substring(b,-5)
-ab ab b ab
-abc abc c bc abc
-abcd abcd d cd bcd abcd
-abcde abcde e de cde bcde abcde
-select * from (select *,substring(b,1),substring(b,-1),substring(b,-2),substring(b,-3),substring(b,-4),substring(b,-5) from t1) t;
-b substring(b,1) substring(b,-1) substring(b,-2) substring(b,-3) substring(b,-4) substring(b,-5)
-ab ab b ab
-abc abc c bc abc
-abcd abcd d cd bcd abcd
-abcde abcde e de cde bcde abcde
-drop table t1;
-select hex(29223372036854775809), hex(-29223372036854775809);
-hex(29223372036854775809) hex(-29223372036854775809)
-FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF
-create table t1 (i int);
-insert into t1 values (1000000000),(1);
-select lpad(i, 7, ' ') as t from t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def t 253 7 7 Y 0 39 8
-t
-1000000
- 1
-select rpad(i, 7, ' ') as t from t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def t 253 7 7 Y 0 39 8
-t
-1000000
-1
-drop table t1;
-select load_file("lkjlkj");
-load_file("lkjlkj")
-NULL
-select ifnull(load_file("lkjlkj"),"it's null");
-ifnull(load_file("lkjlkj"),"it's null")
-it's null
-create table t1 (f1 varchar(4), f2 varchar(64), unique key k1 (f1,f2));
-insert into t1 values ( 'test',md5('test')), ('test', sha('test'));
-select * from t1 where f1='test' and (f2= md5("test") or f2= md5("TEST"));
-f1 f2
-test 098f6bcd4621d373cade4e832627b4f6
-select * from t1 where f1='test' and (f2= md5("TEST") or f2= md5("test"));
-f1 f2
-test 098f6bcd4621d373cade4e832627b4f6
-select * from t1 where f1='test' and (f2= sha("test") or f2= sha("TEST"));
-f1 f2
-test a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
-select * from t1 where f1='test' and (f2= sha("TEST") or f2= sha("test"));
-f1 f2
-test a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
-drop table t1;
-CREATE TABLE t1 (a varchar(10));
-INSERT INTO t1 VALUES ('abc'), ('xyz');
-SELECT a, CONCAT(a,' ',a) AS c FROM t1
-HAVING LEFT(c,LENGTH(c)-INSTR(REVERSE(c)," ")) = a;
-a c
-abc abc abc
-xyz xyz xyz
-SELECT a, CONCAT(a,' ',a) AS c FROM t1
-HAVING LEFT(CONCAT(a,' ',a),
-LENGTH(CONCAT(a,' ',a))-
-INSTR(REVERSE(CONCAT(a,' ',a))," ")) = a;
-a c
-abc abc abc
-xyz xyz xyz
-DROP TABLE t1;
-CREATE TABLE t1 (s varchar(10));
-INSERT INTO t1 VALUES ('yadda'), ('yaddy');
-EXPLAIN EXTENDED SELECT s FROM t1 WHERE TRIM(s) > 'ab';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`s` AS `s` from `test`.`t1` where trim(`test`.`t1`.`s`) > 'ab'
-EXPLAIN EXTENDED SELECT s FROM t1 WHERE TRIM('y' FROM s) > 'ab';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`s` AS `s` from `test`.`t1` where trim(both 'y' from `test`.`t1`.`s`) > 'ab'
-EXPLAIN EXTENDED SELECT s FROM t1 WHERE TRIM(LEADING 'y' FROM s) > 'ab';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`s` AS `s` from `test`.`t1` where trim(leading 'y' from `test`.`t1`.`s`) > 'ab'
-EXPLAIN EXTENDED SELECT s FROM t1 WHERE TRIM(TRAILING 'y' FROM s) > 'ab';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`s` AS `s` from `test`.`t1` where trim(trailing 'y' from `test`.`t1`.`s`) > 'ab'
-EXPLAIN EXTENDED SELECT s FROM t1 WHERE TRIM(BOTH 'y' FROM s) > 'ab';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`s` AS `s` from `test`.`t1` where trim(both 'y' from `test`.`t1`.`s`) > 'ab'
-DROP TABLE t1;
-create table t1(f1 varchar(4));
-explain extended select encode(f1,'zxcv') as 'enc' from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 select encode(NULL,'zxcv') AS `enc` from `test`.`t1`
-explain extended select decode(f1,'zxcv') as 'enc' from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 select decode(NULL,'zxcv') AS `enc` from `test`.`t1`
-drop table t1;
-create table t1 (a bigint not null)engine=myisam;
-insert into t1 set a = 1024*1024*1024*4;
-delete from t1 order by (inet_ntoa(a)) desc limit 10;
-drop table t1;
-create table t1 (a char(36) not null)engine=myisam;
-insert ignore into t1 set a = ' ';
-insert ignore into t1 set a = ' ';
-select * from t1 order by (oct(a));
-a
-
-
-drop table t1;
-End of 4.1 tests
-create table t1 (d decimal default null);
-insert into t1 values (null);
-select format(d, 2) from t1;
-format(d, 2)
-NULL
-drop table t1;
-create table t1 (c varchar(40));
-insert into t1 values ('y,abc'),('y,abc');
-select c, substring_index(lcase(c), @q:=',', -1) as res from t1;
-c res
-y,abc abc
-y,abc abc
-drop table t1;
-select cast(rtrim(' 20.06 ') as decimal(19,2));
-cast(rtrim(' 20.06 ') as decimal(19,2))
-20.06
-select cast(ltrim(' 20.06 ') as decimal(19,2));
-cast(ltrim(' 20.06 ') as decimal(19,2))
-20.06
-Warnings:
-Note 1292 Truncated incorrect DECIMAL value: '20.06 '
-select cast(rtrim(ltrim(' 20.06 ')) as decimal(19,2));
-cast(rtrim(ltrim(' 20.06 ')) as decimal(19,2))
-20.06
-select conv("18383815659218730760",10,10) + 0;
-conv("18383815659218730760",10,10) + 0
-1.838381565921873e19
-select "18383815659218730760" + 0;
-"18383815659218730760" + 0
-1.838381565921873e19
-CREATE TABLE t1 (code varchar(10));
-INSERT INTO t1 VALUES ('a12'), ('A12'), ('a13');
-SELECT ASCII(code), code FROM t1 WHERE code='A12';
-ASCII(code) code
-97 a12
-65 A12
-SELECT ASCII(code), code FROM t1 WHERE code='A12' AND ASCII(code)=65;
-ASCII(code) code
-65 A12
-INSERT INTO t1 VALUES ('a12 '), ('A12 ');
-SELECT LENGTH(code), code FROM t1 WHERE code='A12';
-LENGTH(code) code
-3 a12
-3 A12
-4 a12
-5 A12
-SELECT LENGTH(code), code FROM t1 WHERE code='A12' AND LENGTH(code)=5;
-LENGTH(code) code
-5 A12
-ALTER TABLE t1 ADD INDEX (code);
-CREATE TABLE t2 (id varchar(10) PRIMARY KEY);
-INSERT INTO t2 VALUES ('a11'), ('a12'), ('a13'), ('a14');
-SELECT * FROM t1 INNER JOIN t2 ON t1.code=t2.id
-WHERE t2.id='a12' AND (LENGTH(code)=5 OR code < 'a00');
-code id
-A12 a12
-EXPLAIN EXTENDED
-SELECT * FROM t1 INNER JOIN t2 ON code=id
-WHERE id='a12' AND (LENGTH(code)=5 OR code < 'a00');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 const PRIMARY PRIMARY 12 const 1 100.00 Using index
-1 SIMPLE t1 ref code code 13 const 3 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`code` AS `code`,'a12' AS `id` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`code` = 'a12' and octet_length(`test`.`t1`.`code`) = 5
-DROP TABLE t1,t2;
-select encode(NULL, NULL);
-encode(NULL, NULL)
-NULL
-select encode("data", NULL);
-encode("data", NULL)
-NULL
-select encode(NULL, "password");
-encode(NULL, "password")
-NULL
-select decode(NULL, NULL);
-decode(NULL, NULL)
-NULL
-select decode("data", NULL);
-decode("data", NULL)
-NULL
-select decode(NULL, "password");
-decode(NULL, "password")
-NULL
-select format(NULL, NULL);
-format(NULL, NULL)
-NULL
-select format(pi(), NULL);
-format(pi(), NULL)
-NULL
-select format(NULL, 2);
-format(NULL, 2)
-NULL
-select benchmark(NULL, NULL);
-benchmark(NULL, NULL)
-NULL
-select benchmark(0, NULL);
-benchmark(0, NULL)
-0
-select benchmark(100, NULL);
-benchmark(100, NULL)
-0
-select benchmark(NULL, 1+1);
-benchmark(NULL, 1+1)
-NULL
-select benchmark(-1, 1);
-benchmark(-1, 1)
-NULL
-Warnings:
-Warning 1411 Incorrect count value: '-1' for function benchmark
-set @password="password";
-set @my_data="clear text to encode";
-select md5(encode(@my_data, "password"));
-md5(encode(@my_data, "password"))
-44320fd2b4a0ec92faa2da2122def917
-select md5(encode(@my_data, _utf8 "password"));
-md5(encode(@my_data, _utf8 "password"))
-44320fd2b4a0ec92faa2da2122def917
-select md5(encode(@my_data, binary "password"));
-md5(encode(@my_data, binary "password"))
-44320fd2b4a0ec92faa2da2122def917
-select md5(encode(@my_data, _latin1 "password"));
-md5(encode(@my_data, _latin1 "password"))
-44320fd2b4a0ec92faa2da2122def917
-select md5(encode(@my_data, _koi8r "password"));
-md5(encode(@my_data, _koi8r "password"))
-44320fd2b4a0ec92faa2da2122def917
-select md5(encode(@my_data, (select "password" from dual)));
-md5(encode(@my_data, (select "password" from dual)))
-44320fd2b4a0ec92faa2da2122def917
-select md5(encode(@my_data, concat("pass", "word")));
-md5(encode(@my_data, concat("pass", "word")))
-44320fd2b4a0ec92faa2da2122def917
-select md5(encode(@my_data, @password));
-md5(encode(@my_data, @password))
-44320fd2b4a0ec92faa2da2122def917
-set @my_data="binary encoded data";
-select md5(decode(@my_data, "password"));
-md5(decode(@my_data, "password"))
-5bea8c394368dbc03b76684483b7756b
-select md5(decode(@my_data, _utf8 "password"));
-md5(decode(@my_data, _utf8 "password"))
-5bea8c394368dbc03b76684483b7756b
-select md5(decode(@my_data, binary "password"));
-md5(decode(@my_data, binary "password"))
-5bea8c394368dbc03b76684483b7756b
-select md5(decode(@my_data, _latin1 "password"));
-md5(decode(@my_data, _latin1 "password"))
-5bea8c394368dbc03b76684483b7756b
-select md5(decode(@my_data, _koi8r "password"));
-md5(decode(@my_data, _koi8r "password"))
-5bea8c394368dbc03b76684483b7756b
-select md5(decode(@my_data, (select "password" from dual)));
-md5(decode(@my_data, (select "password" from dual)))
-5bea8c394368dbc03b76684483b7756b
-select md5(decode(@my_data, concat("pass", "word")));
-md5(decode(@my_data, concat("pass", "word")))
-5bea8c394368dbc03b76684483b7756b
-select md5(decode(@my_data, @password));
-md5(decode(@my_data, @password))
-5bea8c394368dbc03b76684483b7756b
-set @dec=5;
-select format(pi(), (1+1));
-format(pi(), (1+1))
-3.14
-select format(pi(), (select 3 from dual));
-format(pi(), (select 3 from dual))
-3.142
-select format(pi(), @dec);
-format(pi(), @dec)
-3.14159
-set @bench_count=10;
-select benchmark(10, pi());
-benchmark(10, pi())
-0
-select benchmark(5+5, pi());
-benchmark(5+5, pi())
-0
-select benchmark((select 10 from dual), pi());
-benchmark((select 10 from dual), pi())
-0
-select benchmark(@bench_count, pi());
-benchmark(@bench_count, pi())
-0
-select locate('he','hello',-2);
-locate('he','hello',-2)
-0
-select locate('lo','hello',-4294967295);
-locate('lo','hello',-4294967295)
-0
-select locate('lo','hello',4294967295);
-locate('lo','hello',4294967295)
-0
-select locate('lo','hello',-4294967296);
-locate('lo','hello',-4294967296)
-0
-select locate('lo','hello',4294967296);
-locate('lo','hello',4294967296)
-0
-select locate('lo','hello',-4294967297);
-locate('lo','hello',-4294967297)
-0
-select locate('lo','hello',4294967297);
-locate('lo','hello',4294967297)
-0
-select locate('lo','hello',-18446744073709551615);
-locate('lo','hello',-18446744073709551615)
-0
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select locate('lo','hello',18446744073709551615);
-locate('lo','hello',18446744073709551615)
-0
-select locate('lo','hello',-18446744073709551616);
-locate('lo','hello',-18446744073709551616)
-0
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select locate('lo','hello',18446744073709551616);
-locate('lo','hello',18446744073709551616)
-0
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-select locate('lo','hello',-18446744073709551617);
-locate('lo','hello',-18446744073709551617)
-0
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select locate('lo','hello',18446744073709551617);
-locate('lo','hello',18446744073709551617)
-0
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-select left('hello', 10);
-left('hello', 10)
-hello
-select left('hello', 0);
-left('hello', 0)
-
-select left('hello', -1);
-left('hello', -1)
-
-select left('hello', -4294967295);
-left('hello', -4294967295)
-
-select left('hello', 4294967295);
-left('hello', 4294967295)
-hello
-select left('hello', -4294967296);
-left('hello', -4294967296)
-
-select left('hello', 4294967296);
-left('hello', 4294967296)
-hello
-select left('hello', -4294967297);
-left('hello', -4294967297)
-
-select left('hello', 4294967297);
-left('hello', 4294967297)
-hello
-select left('hello', -18446744073709551615);
-left('hello', -18446744073709551615)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select left('hello', 18446744073709551615);
-left('hello', 18446744073709551615)
-hello
-select left('hello', -18446744073709551616);
-left('hello', -18446744073709551616)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select left('hello', 18446744073709551616);
-left('hello', 18446744073709551616)
-hello
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-select left('hello', -18446744073709551617);
-left('hello', -18446744073709551617)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select left('hello', 18446744073709551617);
-left('hello', 18446744073709551617)
-hello
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-select right('hello', 10);
-right('hello', 10)
-hello
-select right('hello', 0);
-right('hello', 0)
-
-select right('hello', -1);
-right('hello', -1)
-
-select right('hello', -4294967295);
-right('hello', -4294967295)
-
-select right('hello', 4294967295);
-right('hello', 4294967295)
-hello
-select right('hello', -4294967296);
-right('hello', -4294967296)
-
-select right('hello', 4294967296);
-right('hello', 4294967296)
-hello
-select right('hello', -4294967297);
-right('hello', -4294967297)
-
-select right('hello', 4294967297);
-right('hello', 4294967297)
-hello
-select right('hello', -18446744073709551615);
-right('hello', -18446744073709551615)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select right('hello', 18446744073709551615);
-right('hello', 18446744073709551615)
-hello
-select right('hello', -18446744073709551616);
-right('hello', -18446744073709551616)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select right('hello', 18446744073709551616);
-right('hello', 18446744073709551616)
-hello
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-select right('hello', -18446744073709551617);
-right('hello', -18446744073709551617)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select right('hello', 18446744073709551617);
-right('hello', 18446744073709551617)
-hello
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-select substring('hello', 2, -1);
-substring('hello', 2, -1)
-
-select substring('hello', -1, 1);
-substring('hello', -1, 1)
-o
-select substring('hello', -2, 1);
-substring('hello', -2, 1)
-l
-select substring('hello', -4294967295, 1);
-substring('hello', -4294967295, 1)
-
-select substring('hello', 4294967295, 1);
-substring('hello', 4294967295, 1)
-
-select substring('hello', -4294967296, 1);
-substring('hello', -4294967296, 1)
-
-select substring('hello', 4294967296, 1);
-substring('hello', 4294967296, 1)
-
-select substring('hello', -4294967297, 1);
-substring('hello', -4294967297, 1)
-
-select substring('hello', 4294967297, 1);
-substring('hello', 4294967297, 1)
-
-select substring('hello', -18446744073709551615, 1);
-substring('hello', -18446744073709551615, 1)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select substring('hello', 18446744073709551615, 1);
-substring('hello', 18446744073709551615, 1)
-
-select substring('hello', -18446744073709551616, 1);
-substring('hello', -18446744073709551616, 1)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select substring('hello', 18446744073709551616, 1);
-substring('hello', 18446744073709551616, 1)
-
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-select substring('hello', -18446744073709551617, 1);
-substring('hello', -18446744073709551617, 1)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select substring('hello', 18446744073709551617, 1);
-substring('hello', 18446744073709551617, 1)
-
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-select substring('hello', 1, -1);
-substring('hello', 1, -1)
-
-select substring('hello', 1, -4294967295);
-substring('hello', 1, -4294967295)
-
-select substring('hello', 1, 4294967295);
-substring('hello', 1, 4294967295)
-hello
-select substring('hello', 1, -4294967296);
-substring('hello', 1, -4294967296)
-
-select substring('hello', 1, 4294967296);
-substring('hello', 1, 4294967296)
-hello
-select substring('hello', 1, -4294967297);
-substring('hello', 1, -4294967297)
-
-select substring('hello', 1, 4294967297);
-substring('hello', 1, 4294967297)
-hello
-select substring('hello', 1, -18446744073709551615);
-substring('hello', 1, -18446744073709551615)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select substring('hello', 1, 18446744073709551615);
-substring('hello', 1, 18446744073709551615)
-hello
-select substring('hello', 1, -18446744073709551616);
-substring('hello', 1, -18446744073709551616)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select substring('hello', 1, 18446744073709551616);
-substring('hello', 1, 18446744073709551616)
-hello
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-select substring('hello', 1, -18446744073709551617);
-substring('hello', 1, -18446744073709551617)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select substring('hello', 1, 18446744073709551617);
-substring('hello', 1, 18446744073709551617)
-hello
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-select substring('hello', -1, -1);
-substring('hello', -1, -1)
-
-select substring('hello', -4294967295, -4294967295);
-substring('hello', -4294967295, -4294967295)
-
-select substring('hello', 4294967295, 4294967295);
-substring('hello', 4294967295, 4294967295)
-
-select substring('hello', -4294967296, -4294967296);
-substring('hello', -4294967296, -4294967296)
-
-select substring('hello', 4294967296, 4294967296);
-substring('hello', 4294967296, 4294967296)
-
-select substring('hello', -4294967297, -4294967297);
-substring('hello', -4294967297, -4294967297)
-
-select substring('hello', 4294967297, 4294967297);
-substring('hello', 4294967297, 4294967297)
-
-select substring('hello', -18446744073709551615, -18446744073709551615);
-substring('hello', -18446744073709551615, -18446744073709551615)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select substring('hello', 18446744073709551615, 18446744073709551615);
-substring('hello', 18446744073709551615, 18446744073709551615)
-
-select substring('hello', -18446744073709551616, -18446744073709551616);
-substring('hello', -18446744073709551616, -18446744073709551616)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select substring('hello', 18446744073709551616, 18446744073709551616);
-substring('hello', 18446744073709551616, 18446744073709551616)
-
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-select substring('hello', -18446744073709551617, -18446744073709551617);
-substring('hello', -18446744073709551617, -18446744073709551617)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select substring('hello', 18446744073709551617, 18446744073709551617);
-substring('hello', 18446744073709551617, 18446744073709551617)
-
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-select insert('hello', -1, 1, 'hi');
-insert('hello', -1, 1, 'hi')
-hello
-select insert('hello', -4294967295, 1, 'hi');
-insert('hello', -4294967295, 1, 'hi')
-hello
-select insert('hello', 4294967295, 1, 'hi');
-insert('hello', 4294967295, 1, 'hi')
-hello
-select insert('hello', -4294967296, 1, 'hi');
-insert('hello', -4294967296, 1, 'hi')
-hello
-select insert('hello', 4294967296, 1, 'hi');
-insert('hello', 4294967296, 1, 'hi')
-hello
-select insert('hello', -4294967297, 1, 'hi');
-insert('hello', -4294967297, 1, 'hi')
-hello
-select insert('hello', 4294967297, 1, 'hi');
-insert('hello', 4294967297, 1, 'hi')
-hello
-select insert('hello', -18446744073709551615, 1, 'hi');
-insert('hello', -18446744073709551615, 1, 'hi')
-hello
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select insert('hello', 18446744073709551615, 1, 'hi');
-insert('hello', 18446744073709551615, 1, 'hi')
-hello
-select insert('hello', -18446744073709551616, 1, 'hi');
-insert('hello', -18446744073709551616, 1, 'hi')
-hello
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select insert('hello', 18446744073709551616, 1, 'hi');
-insert('hello', 18446744073709551616, 1, 'hi')
-hello
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-select insert('hello', -18446744073709551617, 1, 'hi');
-insert('hello', -18446744073709551617, 1, 'hi')
-hello
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select insert('hello', 18446744073709551617, 1, 'hi');
-insert('hello', 18446744073709551617, 1, 'hi')
-hello
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-select insert('hello', 1, -1, 'hi');
-insert('hello', 1, -1, 'hi')
-hi
-select insert('hello', 1, -4294967295, 'hi');
-insert('hello', 1, -4294967295, 'hi')
-hi
-select insert('hello', 1, 4294967295, 'hi');
-insert('hello', 1, 4294967295, 'hi')
-hi
-select insert('hello', 1, -4294967296, 'hi');
-insert('hello', 1, -4294967296, 'hi')
-hi
-select insert('hello', 1, 4294967296, 'hi');
-insert('hello', 1, 4294967296, 'hi')
-hi
-select insert('hello', 1, -4294967297, 'hi');
-insert('hello', 1, -4294967297, 'hi')
-hi
-select insert('hello', 1, 4294967297, 'hi');
-insert('hello', 1, 4294967297, 'hi')
-hi
-select insert('hello', 1, -18446744073709551615, 'hi');
-insert('hello', 1, -18446744073709551615, 'hi')
-hi
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select insert('hello', 1, 18446744073709551615, 'hi');
-insert('hello', 1, 18446744073709551615, 'hi')
-hi
-select insert('hello', 1, -18446744073709551616, 'hi');
-insert('hello', 1, -18446744073709551616, 'hi')
-hi
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select insert('hello', 1, 18446744073709551616, 'hi');
-insert('hello', 1, 18446744073709551616, 'hi')
-hi
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-select insert('hello', 1, -18446744073709551617, 'hi');
-insert('hello', 1, -18446744073709551617, 'hi')
-hi
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select insert('hello', 1, 18446744073709551617, 'hi');
-insert('hello', 1, 18446744073709551617, 'hi')
-hi
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-select insert('hello', -1, -1, 'hi');
-insert('hello', -1, -1, 'hi')
-hello
-select insert('hello', -4294967295, -4294967295, 'hi');
-insert('hello', -4294967295, -4294967295, 'hi')
-hello
-select insert('hello', 4294967295, 4294967295, 'hi');
-insert('hello', 4294967295, 4294967295, 'hi')
-hello
-select insert('hello', -4294967296, -4294967296, 'hi');
-insert('hello', -4294967296, -4294967296, 'hi')
-hello
-select insert('hello', 4294967296, 4294967296, 'hi');
-insert('hello', 4294967296, 4294967296, 'hi')
-hello
-select insert('hello', -4294967297, -4294967297, 'hi');
-insert('hello', -4294967297, -4294967297, 'hi')
-hello
-select insert('hello', 4294967297, 4294967297, 'hi');
-insert('hello', 4294967297, 4294967297, 'hi')
-hello
-select insert('hello', -18446744073709551615, -18446744073709551615, 'hi');
-insert('hello', -18446744073709551615, -18446744073709551615, 'hi')
-hello
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select insert('hello', 18446744073709551615, 18446744073709551615, 'hi');
-insert('hello', 18446744073709551615, 18446744073709551615, 'hi')
-hello
-select insert('hello', -18446744073709551616, -18446744073709551616, 'hi');
-insert('hello', -18446744073709551616, -18446744073709551616, 'hi')
-hello
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select insert('hello', 18446744073709551616, 18446744073709551616, 'hi');
-insert('hello', 18446744073709551616, 18446744073709551616, 'hi')
-hello
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-select insert('hello', -18446744073709551617, -18446744073709551617, 'hi');
-insert('hello', -18446744073709551617, -18446744073709551617, 'hi')
-hello
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select insert('hello', 18446744073709551617, 18446744073709551617, 'hi');
-insert('hello', 18446744073709551617, 18446744073709551617, 'hi')
-hello
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-select repeat('hello', -1);
-repeat('hello', -1)
-
-select repeat('hello', -4294967295);
-repeat('hello', -4294967295)
-
-select repeat('hello', 4294967295);
-repeat('hello', 4294967295)
-NULL
-Warnings:
-Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
-select repeat('hello', -4294967296);
-repeat('hello', -4294967296)
-
-select repeat('hello', 4294967296);
-repeat('hello', 4294967296)
-NULL
-Warnings:
-Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
-select repeat('hello', -4294967297);
-repeat('hello', -4294967297)
-
-select repeat('hello', 4294967297);
-repeat('hello', 4294967297)
-NULL
-Warnings:
-Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
-select repeat('hello', -18446744073709551615);
-repeat('hello', -18446744073709551615)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select repeat('hello', 18446744073709551615);
-repeat('hello', 18446744073709551615)
-NULL
-Warnings:
-Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
-select repeat('hello', -18446744073709551616);
-repeat('hello', -18446744073709551616)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select repeat('hello', 18446744073709551616);
-repeat('hello', 18446744073709551616)
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
-select repeat('hello', -18446744073709551617);
-repeat('hello', -18446744073709551617)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select repeat('hello', 18446744073709551617);
-repeat('hello', 18446744073709551617)
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
-select space(-1);
-space(-1)
-
-select space(-4294967295);
-space(-4294967295)
-
-select space(4294967295);
-space(4294967295)
-NULL
-Warnings:
-Warning 1301 Result of space() was larger than max_allowed_packet (1048576) - truncated
-select space(-4294967296);
-space(-4294967296)
-
-select space(4294967296);
-space(4294967296)
-NULL
-Warnings:
-Warning 1301 Result of space() was larger than max_allowed_packet (1048576) - truncated
-select space(-4294967297);
-space(-4294967297)
-
-select space(4294967297);
-space(4294967297)
-NULL
-Warnings:
-Warning 1301 Result of space() was larger than max_allowed_packet (1048576) - truncated
-select space(-18446744073709551615);
-space(-18446744073709551615)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select space(18446744073709551615);
-space(18446744073709551615)
-NULL
-Warnings:
-Warning 1301 Result of space() was larger than max_allowed_packet (1048576) - truncated
-select space(-18446744073709551616);
-space(-18446744073709551616)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select space(18446744073709551616);
-space(18446744073709551616)
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1301 Result of space() was larger than max_allowed_packet (1048576) - truncated
-select space(-18446744073709551617);
-space(-18446744073709551617)
-
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select space(18446744073709551617);
-space(18446744073709551617)
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1301 Result of space() was larger than max_allowed_packet (1048576) - truncated
-select rpad('hello', -1, '1');
-rpad('hello', -1, '1')
-NULL
-select rpad('hello', -4294967295, '1');
-rpad('hello', -4294967295, '1')
-NULL
-select rpad('hello', 4294967295, '1');
-rpad('hello', 4294967295, '1')
-NULL
-Warnings:
-Warning 1301 Result of rpad() was larger than max_allowed_packet (1048576) - truncated
-select rpad('hello', -4294967296, '1');
-rpad('hello', -4294967296, '1')
-NULL
-select rpad('hello', 4294967296, '1');
-rpad('hello', 4294967296, '1')
-NULL
-Warnings:
-Warning 1301 Result of rpad() was larger than max_allowed_packet (1048576) - truncated
-select rpad('hello', -4294967297, '1');
-rpad('hello', -4294967297, '1')
-NULL
-select rpad('hello', 4294967297, '1');
-rpad('hello', 4294967297, '1')
-NULL
-Warnings:
-Warning 1301 Result of rpad() was larger than max_allowed_packet (1048576) - truncated
-select rpad('hello', -18446744073709551615, '1');
-rpad('hello', -18446744073709551615, '1')
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select rpad('hello', 18446744073709551615, '1');
-rpad('hello', 18446744073709551615, '1')
-NULL
-Warnings:
-Warning 1301 Result of rpad() was larger than max_allowed_packet (1048576) - truncated
-select rpad('hello', -18446744073709551616, '1');
-rpad('hello', -18446744073709551616, '1')
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select rpad('hello', 18446744073709551616, '1');
-rpad('hello', 18446744073709551616, '1')
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1301 Result of rpad() was larger than max_allowed_packet (1048576) - truncated
-select rpad('hello', -18446744073709551617, '1');
-rpad('hello', -18446744073709551617, '1')
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select rpad('hello', 18446744073709551617, '1');
-rpad('hello', 18446744073709551617, '1')
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1301 Result of rpad() was larger than max_allowed_packet (1048576) - truncated
-select rpad('hello', -1);
-rpad('hello', -1)
-NULL
-select rpad('hello', -4294967295);
-rpad('hello', -4294967295)
-NULL
-select rpad('hello', 4294967295);
-rpad('hello', 4294967295)
-NULL
-Warnings:
-Warning 1301 Result of rpad() was larger than max_allowed_packet (1048576) - truncated
-select rpad('hello', -4294967296);
-rpad('hello', -4294967296)
-NULL
-select rpad('hello', 4294967296);
-rpad('hello', 4294967296)
-NULL
-Warnings:
-Warning 1301 Result of rpad() was larger than max_allowed_packet (1048576) - truncated
-select rpad('hello', -4294967297);
-rpad('hello', -4294967297)
-NULL
-select rpad('hello', 4294967297);
-rpad('hello', 4294967297)
-NULL
-Warnings:
-Warning 1301 Result of rpad() was larger than max_allowed_packet (1048576) - truncated
-select rpad('hello', -18446744073709551615);
-rpad('hello', -18446744073709551615)
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select rpad('hello', 18446744073709551615);
-rpad('hello', 18446744073709551615)
-NULL
-Warnings:
-Warning 1301 Result of rpad() was larger than max_allowed_packet (1048576) - truncated
-select rpad('hello', -18446744073709551616);
-rpad('hello', -18446744073709551616)
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select rpad('hello', 18446744073709551616);
-rpad('hello', 18446744073709551616)
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1301 Result of rpad() was larger than max_allowed_packet (1048576) - truncated
-select rpad('hello', -18446744073709551617);
-rpad('hello', -18446744073709551617)
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select rpad('hello', 18446744073709551617);
-rpad('hello', 18446744073709551617)
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1301 Result of rpad() was larger than max_allowed_packet (1048576) - truncated
-select rpad('hello', 0, 'x');
-rpad('hello', 0, 'x')
-
-select rpad('hello', 0);
-rpad('hello', 0)
-
-select lpad('hello', -1, '1');
-lpad('hello', -1, '1')
-NULL
-select lpad('hello', -4294967295, '1');
-lpad('hello', -4294967295, '1')
-NULL
-select lpad('hello', 4294967295, '1');
-lpad('hello', 4294967295, '1')
-NULL
-Warnings:
-Warning 1301 Result of lpad() was larger than max_allowed_packet (1048576) - truncated
-select lpad('hello', -4294967296, '1');
-lpad('hello', -4294967296, '1')
-NULL
-select lpad('hello', 4294967296, '1');
-lpad('hello', 4294967296, '1')
-NULL
-Warnings:
-Warning 1301 Result of lpad() was larger than max_allowed_packet (1048576) - truncated
-select lpad('hello', -4294967297, '1');
-lpad('hello', -4294967297, '1')
-NULL
-select lpad('hello', 4294967297, '1');
-lpad('hello', 4294967297, '1')
-NULL
-Warnings:
-Warning 1301 Result of lpad() was larger than max_allowed_packet (1048576) - truncated
-select lpad('hello', -18446744073709551615, '1');
-lpad('hello', -18446744073709551615, '1')
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select lpad('hello', 18446744073709551615, '1');
-lpad('hello', 18446744073709551615, '1')
-NULL
-Warnings:
-Warning 1301 Result of lpad() was larger than max_allowed_packet (1048576) - truncated
-select lpad('hello', -18446744073709551616, '1');
-lpad('hello', -18446744073709551616, '1')
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select lpad('hello', 18446744073709551616, '1');
-lpad('hello', 18446744073709551616, '1')
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1301 Result of lpad() was larger than max_allowed_packet (1048576) - truncated
-select lpad('hello', -18446744073709551617, '1');
-lpad('hello', -18446744073709551617, '1')
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select lpad('hello', 18446744073709551617, '1');
-lpad('hello', 18446744073709551617, '1')
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1301 Result of lpad() was larger than max_allowed_packet (1048576) - truncated
-select lpad('hello', -1);
-lpad('hello', -1)
-NULL
-select lpad('hello', -4294967295);
-lpad('hello', -4294967295)
-NULL
-select lpad('hello', 4294967295);
-lpad('hello', 4294967295)
-NULL
-Warnings:
-Warning 1301 Result of lpad() was larger than max_allowed_packet (1048576) - truncated
-select lpad('hello', -4294967296);
-lpad('hello', -4294967296)
-NULL
-select lpad('hello', 4294967296);
-lpad('hello', 4294967296)
-NULL
-Warnings:
-Warning 1301 Result of lpad() was larger than max_allowed_packet (1048576) - truncated
-select lpad('hello', -4294967297);
-lpad('hello', -4294967297)
-NULL
-select lpad('hello', 4294967297);
-lpad('hello', 4294967297)
-NULL
-Warnings:
-Warning 1301 Result of lpad() was larger than max_allowed_packet (1048576) - truncated
-select lpad('hello', -18446744073709551615);
-lpad('hello', -18446744073709551615)
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
-select lpad('hello', 18446744073709551615);
-lpad('hello', 18446744073709551615)
-NULL
-Warnings:
-Warning 1301 Result of lpad() was larger than max_allowed_packet (1048576) - truncated
-select lpad('hello', -18446744073709551616);
-lpad('hello', -18446744073709551616)
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
-select lpad('hello', 18446744073709551616);
-lpad('hello', 18446744073709551616)
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
-Warning 1301 Result of lpad() was larger than max_allowed_packet (1048576) - truncated
-select lpad('hello', -18446744073709551617);
-lpad('hello', -18446744073709551617)
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
-select lpad('hello', 18446744073709551617);
-lpad('hello', 18446744073709551617)
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
-Warning 1301 Result of lpad() was larger than max_allowed_packet (1048576) - truncated
-select lpad('hello', 0, 'x');
-lpad('hello', 0, 'x')
-
-select lpad('hello', 0);
-lpad('hello', 0)
-
-Check parameters count rpad / lpad
-select rpad('x');
-ERROR 42000: Incorrect parameter count in the call to native function 'rpad'
-select rpad('x',2,'.','z');
-ERROR 42000: Incorrect parameter count in the call to native function 'rpad'
-select lpad('x');
-ERROR 42000: Incorrect parameter count in the call to native function 'lpad'
-select lpad('x',2,'.','z');
-ERROR 42000: Incorrect parameter count in the call to native function 'lpad'
-SET @orig_sql_mode = @@SQL_MODE;
-SET SQL_MODE=traditional;
-SELECT CHAR(0xff,0x8f USING utf8);
-CHAR(0xff,0x8f USING utf8)
-NULL
-Warnings:
-Warning 1300 Invalid utf8 character string: 'FF8F'
-SELECT CHAR(0xff,0x8f USING utf8) IS NULL;
-CHAR(0xff,0x8f USING utf8) IS NULL
-1
-Warnings:
-Warning 1300 Invalid utf8 character string: 'FF8F'
-SET SQL_MODE=@orig_sql_mode;
-select substring('abc', cast(2 as unsigned int));
-substring('abc', cast(2 as unsigned int))
-bc
-select repeat('a', cast(2 as unsigned int));
-repeat('a', cast(2 as unsigned int))
-aa
-select rpad('abc', cast(5 as unsigned integer), 'x');
-rpad('abc', cast(5 as unsigned integer), 'x')
-abcxx
-select lpad('abc', cast(5 as unsigned integer), 'x');
-lpad('abc', cast(5 as unsigned integer), 'x')
-xxabc
-select rpad('abc', cast(5 as unsigned integer));
-rpad('abc', cast(5 as unsigned integer))
-abc
-select lpad('abc', cast(5 as unsigned integer));
-lpad('abc', cast(5 as unsigned integer))
- abc
-create table t1(f1 longtext);
-insert into t1 values ("123"),("456");
-select substring(f1,1,1) from t1 group by 1;
-substring(f1,1,1)
-1
-4
-create table t2(f1 varchar(3));
-insert into t1 values ("123"),("456");
-select substring(f1,4,1), substring(f1,-4,1) from t2;
-substring(f1,4,1) substring(f1,-4,1)
-drop table t1,t2;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE `t1` (
-`id` varchar(20) NOT NULL,
-`tire` tinyint(3) unsigned NOT NULL,
-PRIMARY KEY (`id`)
-);
-INSERT INTO `t1` (`id`, `tire`) VALUES ('A', 0), ('B', 1),('C', 2);
-SELECT REPEAT( '#', tire ) AS A,
-REPEAT( '#', tire % 999 ) AS B, tire FROM `t1`;
-A B tire
- 0
-# # 1
-## ## 2
-SELECT REPEAT('0', CAST(0 AS UNSIGNED));
-REPEAT('0', CAST(0 AS UNSIGNED))
-
-SELECT REPEAT('0', -2);
-REPEAT('0', -2)
-
-SELECT REPEAT('0', 2);
-REPEAT('0', 2)
-00
-DROP TABLE t1;
-SELECT UNHEX('G');
-UNHEX('G')
-NULL
-SELECT UNHEX('G') IS NULL;
-UNHEX('G') IS NULL
-1
-SELECT INSERT('abc', 3, 3, '1234');
-INSERT('abc', 3, 3, '1234')
-ab1234
-SELECT INSERT('abc', 4, 3, '1234');
-INSERT('abc', 4, 3, '1234')
-abc
-SELECT INSERT('abc', 5, 3, '1234');
-INSERT('abc', 5, 3, '1234')
-abc
-SELECT INSERT('abc', 6, 3, '1234');
-INSERT('abc', 6, 3, '1234')
-abc
-CREATE TABLE t1 (a INT);
-CREATE VIEW v1 AS SELECT CRC32(a) AS C FROM t1;
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
-SELECT CRC32(a), COUNT(*) FROM t1 GROUP BY 1;
-CRC32(a) COUNT(*)
-450215437 1
-498629140 1
-1790921346 1
-1842515611 1
-2212294583 1
-2226203566 1
-2366072709 1
-2707236321 1
-4088798008 1
-4194326291 1
-SELECT CRC32(a), COUNT(*) FROM t1 GROUP BY 1 ORDER BY 1;
-CRC32(a) COUNT(*)
-450215437 1
-498629140 1
-1790921346 1
-1842515611 1
-2212294583 1
-2226203566 1
-2366072709 1
-2707236321 1
-4088798008 1
-4194326291 1
-SELECT * FROM (SELECT CRC32(a) FROM t1) t2;
-CRC32(a)
-2212294583
-450215437
-1842515611
-4088798008
-2226203566
-498629140
-1790921346
-4194326291
-2366072709
-2707236321
-CREATE TABLE t2 SELECT CRC32(a) FROM t1;
-desc t2;
-Field Type Null Key Default Extra
-CRC32(a) int(10) unsigned YES NULL
-SELECT * FROM v1;
-C
-2212294583
-450215437
-1842515611
-4088798008
-2226203566
-498629140
-1790921346
-4194326291
-2366072709
-2707236321
-SELECT * FROM (SELECT * FROM v1) x;
-C
-2212294583
-450215437
-1842515611
-4088798008
-2226203566
-498629140
-1790921346
-4194326291
-2366072709
-2707236321
-DROP TABLE t1, t2;
-DROP VIEW v1;
-SELECT LOCATE('foo', NULL) FROM DUAL;
-LOCATE('foo', NULL)
-NULL
-SELECT LOCATE(NULL, 'o') FROM DUAL;
-LOCATE(NULL, 'o')
-NULL
-SELECT LOCATE(NULL, NULL) FROM DUAL;
-LOCATE(NULL, NULL)
-NULL
-SELECT LOCATE('foo', NULL) IS NULL FROM DUAL;
-LOCATE('foo', NULL) IS NULL
-1
-SELECT LOCATE(NULL, 'o') IS NULL FROM DUAL;
-LOCATE(NULL, 'o') IS NULL
-1
-SELECT LOCATE(NULL, NULL) IS NULL FROM DUAL;
-LOCATE(NULL, NULL) IS NULL
-1
-SELECT ISNULL(LOCATE('foo', NULL)) FROM DUAL;
-ISNULL(LOCATE('foo', NULL))
-1
-SELECT ISNULL(LOCATE(NULL, 'o')) FROM DUAL;
-ISNULL(LOCATE(NULL, 'o'))
-1
-SELECT ISNULL(LOCATE(NULL, NULL)) FROM DUAL;
-ISNULL(LOCATE(NULL, NULL))
-1
-SELECT LOCATE('foo', NULL) <=> NULL FROM DUAL;
-LOCATE('foo', NULL) <=> NULL
-1
-SELECT LOCATE(NULL, 'o') <=> NULL FROM DUAL;
-LOCATE(NULL, 'o') <=> NULL
-1
-SELECT LOCATE(NULL, NULL) <=> NULL FROM DUAL;
-LOCATE(NULL, NULL) <=> NULL
-1
-CREATE TABLE t1 (id int NOT NULL PRIMARY KEY, a varchar(10), p varchar(10));
-INSERT INTO t1 VALUES (1, 'foo', 'o');
-INSERT INTO t1 VALUES (2, 'foo', NULL);
-INSERT INTO t1 VALUES (3, NULL, 'o');
-INSERT INTO t1 VALUES (4, NULL, NULL);
-SELECT id, LOCATE(a,p) FROM t1;
-id LOCATE(a,p)
-1 0
-2 NULL
-3 NULL
-4 NULL
-SELECT id, LOCATE(a,p) IS NULL FROM t1;
-id LOCATE(a,p) IS NULL
-1 0
-2 1
-3 1
-4 1
-SELECT id, ISNULL(LOCATE(a,p)) FROM t1;
-id ISNULL(LOCATE(a,p))
-1 0
-2 1
-3 1
-4 1
-SELECT id, LOCATE(a,p) <=> NULL FROM t1;
-id LOCATE(a,p) <=> NULL
-1 0
-2 1
-3 1
-4 1
-SELECT id FROM t1 WHERE LOCATE(a,p) IS NULL;
-id
-2
-3
-4
-SELECT id FROM t1 WHERE LOCATE(a,p) <=> NULL;
-id
-2
-3
-4
-DROP TABLE t1;
-SELECT SUBSTR('foo',1,0) FROM DUAL;
-SUBSTR('foo',1,0)
-
-SELECT SUBSTR('foo',1,CAST(0 AS SIGNED)) FROM DUAL;
-SUBSTR('foo',1,CAST(0 AS SIGNED))
-
-SELECT SUBSTR('foo',1,CAST(0 AS UNSIGNED)) FROM DUAL;
-SUBSTR('foo',1,CAST(0 AS UNSIGNED))
-
-CREATE TABLE t1 (a varchar(10), len int unsigned);
-INSERT INTO t1 VALUES ('bar', 2), ('foo', 0);
-SELECT SUBSTR(a,1,len) FROM t1;
-SUBSTR(a,1,len)
-ba
-
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT CHAR(0x414243) as c1;
-SELECT HEX(c1) from t1;
-HEX(c1)
-414243
-DROP TABLE t1;
-CREATE VIEW v1 AS SELECT CHAR(0x414243) as c1;
-SELECT HEX(c1) from v1;
-HEX(c1)
-414243
-DROP VIEW v1;
-create table t1(a float);
-insert into t1 values (1.33);
-select format(a, 2) from t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def format(a, 2) 253 57 4 Y 0 39 8
-format(a, 2)
-1.33
-drop table t1;
-CREATE TABLE t1 (c DATE, aa VARCHAR(30));
-INSERT INTO t1 VALUES ('2008-12-31','aaaaaa');
-SELECT DATE_FORMAT(c, GET_FORMAT(DATE, 'eur')) h, CONCAT(UPPER(aa),', ', aa) i FROM t1;
-h i
-31.12.2008 AAAAAA, aaaaaa
-DROP TABLE t1;
-#
-# BUG#44774: load_file function produces valgrind warnings
-#
-CREATE TABLE t1 (a TINYBLOB);
-INSERT INTO t1 VALUES ('aaaaaaaa');
-SELECT LOAD_FILE(a) FROM t1;
-LOAD_FILE(a)
-NULL
-DROP TABLE t1;
-CREATE TABLE t1 (f2 VARCHAR(20));
-CREATE TABLE t2 (f2 VARCHAR(20));
-INSERT INTO t1 VALUES ('MIN'),('MAX');
-INSERT INTO t2 VALUES ('LOAD');
-SELECT CONCAT_WS('_', (SELECT t2.f2 FROM t2), t1.f2) AS concat_name FROM t1;
-concat_name
-LOAD_MIN
-LOAD_MAX
-DROP TABLE t1, t2;
-End of 5.0 tests
-drop table if exists t1;
-create table t1(f1 tinyint default null)engine=myisam;
-insert into t1 values (-1),(null);
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-explain select 1 as a from t1,(select decode(f1,f1) as b from t1) a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 2
-explain select 1 as a from t1,(select encode(f1,f1) as b from t1) a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 2
-set optimizer_switch=@tmp_optimizer_switch;
-drop table t1;
-#
-# Bug#49141: Encode function is significantly slower in 5.1 compared to 5.0
-#
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (a VARCHAR(20), b INT);
-CREATE TABLE t2 (a VARCHAR(20), b INT);
-INSERT INTO t1 VALUES ('ABC', 1);
-INSERT INTO t2 VALUES ('ABC', 1);
-SELECT DECODE((SELECT ENCODE('secret', t1.a) FROM t1,t2 WHERE t1.a = t2.a GROUP BY t1.b), t2.a)
-FROM t1,t2 WHERE t1.b = t1.b > 0 GROUP BY t2.b;
-DECODE((SELECT ENCODE('secret', t1.a) FROM t1,t2 WHERE t1.a = t2.a GROUP BY t1.b), t2.a)
-secret
-SELECT DECODE((SELECT ENCODE('secret', 'ABC') FROM t1,t2 WHERE t1.a = t2.a GROUP BY t1.b), t2.a)
-FROM t1,t2 WHERE t1.b = t1.b > 0 GROUP BY t2.b;
-DECODE((SELECT ENCODE('secret', 'ABC') FROM t1,t2 WHERE t1.a = t2.a GROUP BY t1.b), t2.a)
-secret
-SELECT DECODE((SELECT ENCODE('secret', t1.a) FROM t1,t2 WHERE t1.a = t2.a GROUP BY t1.b), 'ABC')
-FROM t1,t2 WHERE t1.b = t1.b > 0 GROUP BY t2.b;
-DECODE((SELECT ENCODE('secret', t1.a) FROM t1,t2 WHERE t1.a = t2.a GROUP BY t1.b), 'ABC')
-secret
-TRUNCATE TABLE t1;
-TRUNCATE TABLE t2;
-INSERT INTO t1 VALUES ('EDF', 3), ('BCD', 2), ('ABC', 1);
-INSERT INTO t2 VALUES ('EDF', 3), ('BCD', 2), ('ABC', 1);
-SELECT DECODE((SELECT ENCODE('secret', t1.a) FROM t1,t2 WHERE t1.a = t2.a GROUP BY t1.b LIMIT 1), t2.a)
-FROM t2 WHERE t2.b = 1 GROUP BY t2.b;
-DECODE((SELECT ENCODE('secret', t1.a) FROM t1,t2 WHERE t1.a = t2.a GROUP BY t1.b LIMIT 1), t2.a)
-secret
-DROP TABLE t1, t2;
-#
-# Bug#52164 Assertion failed: param.sort_length, file .\filesort.cc, line 149
-#
-CREATE TABLE t1 (a LONGBLOB NOT NULL);
-INSERT INTO t1 VALUES (''),('');
-SELECT 1 FROM t1, t1 t2
-ORDER BY QUOTE(t1.a);
-1
-1
-1
-1
-1
-DROP TABLE t1;
-#
-# Bug#57913 large negative number to string conversion functions crash
-# Bug#57810 case/when/then : Assertion failed: length || !scale
-#
-SELECT '1' IN ('1', SUBSTRING(-9223372036854775809, 1));
-'1' IN ('1', SUBSTRING(-9223372036854775809, 1))
-1
-SELECT CONVERT(('' IN (REVERSE(CAST(('') AS DECIMAL)), '')), CHAR(3));
-CONVERT(('' IN (REVERSE(CAST(('') AS DECIMAL)), '')), CHAR(3))
-1
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: ''
-#
-# Bug#58165: "my_empty_string" gets modified and causes LOAD DATA to fail
-# and other crashes
-#
-CREATE TABLE t1 ( a TEXT );
-SELECT 'aaaaaaaaaaaaaa' INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug58165.txt';;
-SELECT insert( substring_index( 'a', 'a', 'b' ), 1, 0, 'x' );
-insert( substring_index( 'a', 'a', 'b' ), 1, 0, 'x' )
-
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'b'
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug58165.txt' INTO TABLE t1;;
-SELECT * FROM t1;
-a
-aaaaaaaaaaaaaa
-DROP TABLE t1;
-SELECT SUBSTRING('1', DAY(FROM_UNIXTIME(-1)));
-SUBSTRING('1', DAY(FROM_UNIXTIME(-1)))
-NULL
-SELECT LEFT('1', DAY(FROM_UNIXTIME(-1)));
-LEFT('1', DAY(FROM_UNIXTIME(-1)))
-NULL
-SELECT RIGHT('1', DAY(FROM_UNIXTIME(-1)));
-RIGHT('1', DAY(FROM_UNIXTIME(-1)))
-NULL
-SELECT REPEAT('1', DAY(FROM_UNIXTIME(-1)));
-REPEAT('1', DAY(FROM_UNIXTIME(-1)))
-NULL
-SELECT RPAD('hi', DAY(FROM_UNIXTIME(-1)),'?');
-RPAD('hi', DAY(FROM_UNIXTIME(-1)),'?')
-NULL
-SELECT LPAD('hi', DAY(FROM_UNIXTIME(-1)),'?');
-LPAD('hi', DAY(FROM_UNIXTIME(-1)),'?')
-NULL
-SELECT RPAD('hi', DAY(FROM_UNIXTIME(-1)));
-RPAD('hi', DAY(FROM_UNIXTIME(-1)))
-NULL
-SELECT LPAD('hi', DAY(FROM_UNIXTIME(-1)));
-LPAD('hi', DAY(FROM_UNIXTIME(-1)))
-NULL
-create table t1 (i int);
-insert into t1 values (null),(8);
-select group_concat( i ), make_set( i, 'a', 'b' ) field from t1 group by field;
-group_concat( i ) field
-NULL NULL
-8
-drop table t1;
-#
-# Bug#11766684 59851: UNINITIALISED VALUE IN ITEM_FUNC_LIKE::SELECT_OPTIMIZE WITH SUBQUERY AND
-#
-CREATE TABLE t2(a INT, KEY(a));
-INSERT INTO t2 VALUES (1),(2);
-CREATE TABLE t1(b INT, PRIMARY KEY(b));
-INSERT INTO t1 VALUES (0),(254);
-SELECT 1 FROM t2 WHERE a LIKE
-(SELECT EXPORT_SET(1, b, b, b, b) FROM t1 LIMIT 1);
-1
-DROP TABLE t1, t2;
-End of 5.1 tests
-#
-# Start of 5.3 tests
-#
-#
-# Bug#11829861: SUBSTRING_INDEX() RESULTS IN MISSING CHARACTERS WHEN USED
-# INSIDE LOWER()
-#
-SET @user_at_host = 'root@mytinyhost-PC.local';
-SELECT LOWER(SUBSTRING_INDEX(@user_at_host, '@', -1));
-LOWER(SUBSTRING_INDEX(@user_at_host, '@', -1))
-mytinyhost-pc.local
-# End of test BUG#11829861
-#
-# Bug#42404: SUBSTRING_INDEX() RESULTS ARE INCONSISTENT
-#
-CREATE TABLE t (i INT NOT NULL, c CHAR(255) NOT NULL);
-INSERT INTO t VALUES (0,'.www.mysql.com'),(1,'.wwwmysqlcom');
-SELECT i, SUBSTRING_INDEX(c, '.', -2) FROM t WHERE i = 1;
-i SUBSTRING_INDEX(c, '.', -2)
-1 .wwwmysqlcom
-SELECT i, SUBSTRING_INDEX(c, '.', -2) FROM t;
-i SUBSTRING_INDEX(c, '.', -2)
-0 mysql.com
-1 .wwwmysqlcom
-DROP TABLE t;
-# End of test BUG#42404
-#
-# End of 5.3 tests
-#
-Start of 5.4 tests
-SELECT format(12345678901234567890.123, 3);
-format(12345678901234567890.123, 3)
-12,345,678,901,234,567,890.123
-SELECT format(12345678901234567890.123, 3, NULL);
-format(12345678901234567890.123, 3, NULL)
-12,345,678,901,234,567,890.123
-Warnings:
-Warning 1649 Unknown locale: 'NULL'
-SELECT format(12345678901234567890.123, 3, 'ar_AE');
-format(12345678901234567890.123, 3, 'ar_AE')
-12,345,678,901,234,567,890.123
-SELECT format(12345678901234567890.123, 3, 'ar_SA');
-format(12345678901234567890.123, 3, 'ar_SA')
-12345678901234567890.123
-SELECT format(12345678901234567890.123, 3, 'be_BY');
-format(12345678901234567890.123, 3, 'be_BY')
-12.345.678.901.234.567.890,123
-SELECT format(12345678901234567890.123, 3, 'de_DE');
-format(12345678901234567890.123, 3, 'de_DE')
-12.345.678.901.234.567.890,123
-SELECT format(12345678901234567890.123, 3, 'en_IN');
-format(12345678901234567890.123, 3, 'en_IN')
-1,23,45,67,89,01,23,45,67,890.123
-SELECT format(12345678901234567890.123, 3, 'en_US');
-format(12345678901234567890.123, 3, 'en_US')
-12,345,678,901,234,567,890.123
-SELECT format(12345678901234567890.123, 3, 'it_CH');
-format(12345678901234567890.123, 3, 'it_CH')
-12'345'678'901'234'567'890,123
-SELECT format(12345678901234567890.123, 3, 'ru_RU');
-format(12345678901234567890.123, 3, 'ru_RU')
-12 345 678 901 234 567 890,123
-SELECT format(12345678901234567890.123, 3, 'ta_IN');
-format(12345678901234567890.123, 3, 'ta_IN')
-1,23,45,67,89,01,23,45,67,890.123
-CREATE TABLE t1 (fmt CHAR(5) NOT NULL);
-INSERT INTO t1 VALUES ('ar_AE');
-INSERT INTO t1 VALUES ('ar_SA');
-INSERT INTO t1 VALUES ('be_BY');
-INSERT INTO t1 VALUES ('de_DE');
-INSERT INTO t1 VALUES ('en_IN');
-INSERT INTO t1 VALUES ('en_US');
-INSERT INTO t1 VALUES ('it_CH');
-INSERT INTO t1 VALUES ('ru_RU');
-INSERT INTO t1 VALUES ('ta_IN');
-SELECT fmt, format(12345678901234567890.123, 3, fmt) FROM t1 ORDER BY fmt;
-fmt format(12345678901234567890.123, 3, fmt)
-ar_AE 12,345,678,901,234,567,890.123
-ar_SA 12345678901234567890.123
-be_BY 12.345.678.901.234.567.890,123
-de_DE 12.345.678.901.234.567.890,123
-en_IN 1,23,45,67,89,01,23,45,67,890.123
-en_US 12,345,678,901,234,567,890.123
-it_CH 12'345'678'901'234'567'890,123
-ru_RU 12 345 678 901 234 567 890,123
-ta_IN 1,23,45,67,89,01,23,45,67,890.123
-SELECT fmt, format(12345678901234567890.123, 0, fmt) FROM t1 ORDER BY fmt;
-fmt format(12345678901234567890.123, 0, fmt)
-ar_AE 12,345,678,901,234,567,890
-ar_SA 12345678901234567890
-be_BY 12.345.678.901.234.567.890
-de_DE 12.345.678.901.234.567.890
-en_IN 1,23,45,67,89,01,23,45,67,890
-en_US 12,345,678,901,234,567,890
-it_CH 12'345'678'901'234'567'890
-ru_RU 12 345 678 901 234 567 890
-ta_IN 1,23,45,67,89,01,23,45,67,890
-SELECT fmt, format(12345678901234567890, 3, fmt) FROM t1 ORDER BY fmt;
-fmt format(12345678901234567890, 3, fmt)
-ar_AE 12,345,678,901,234,567,890.000
-ar_SA 12345678901234567890.000
-be_BY 12.345.678.901.234.567.890,000
-de_DE 12.345.678.901.234.567.890,000
-en_IN 1,23,45,67,89,01,23,45,67,890.000
-en_US 12,345,678,901,234,567,890.000
-it_CH 12'345'678'901'234'567'890,000
-ru_RU 12 345 678 901 234 567 890,000
-ta_IN 1,23,45,67,89,01,23,45,67,890.000
-SELECT fmt, format(-12345678901234567890, 3, fmt) FROM t1 ORDER BY fmt;
-fmt format(-12345678901234567890, 3, fmt)
-ar_AE -12,345,678,901,234,567,890.000
-ar_SA -12345678901234567890.000
-be_BY -12.345.678.901.234.567.890,000
-de_DE -12.345.678.901.234.567.890,000
-en_IN -1,23,45,67,89,01,23,45,67,890.000
-en_US -12,345,678,901,234,567,890.000
-it_CH -12'345'678'901'234'567'890,000
-ru_RU -12 345 678 901 234 567 890,000
-ta_IN -1,23,45,67,89,01,23,45,67,890.000
-SELECT fmt, format(-02345678901234567890, 3, fmt) FROM t1 ORDER BY fmt;
-fmt format(-02345678901234567890, 3, fmt)
-ar_AE -2,345,678,901,234,567,890.000
-ar_SA -2345678901234567890.000
-be_BY -2.345.678.901.234.567.890,000
-de_DE -2.345.678.901.234.567.890,000
-en_IN -23,45,67,89,01,23,45,67,890.000
-en_US -2,345,678,901,234,567,890.000
-it_CH -2'345'678'901'234'567'890,000
-ru_RU -2 345 678 901 234 567 890,000
-ta_IN -23,45,67,89,01,23,45,67,890.000
-SELECT fmt, format(-00345678901234567890, 3, fmt) FROM t1 ORDER BY fmt;
-fmt format(-00345678901234567890, 3, fmt)
-ar_AE -345,678,901,234,567,890.000
-ar_SA -345678901234567890.000
-be_BY -345.678.901.234.567.890,000
-de_DE -345.678.901.234.567.890,000
-en_IN -3,45,67,89,01,23,45,67,890.000
-en_US -345,678,901,234,567,890.000
-it_CH -345'678'901'234'567'890,000
-ru_RU -345 678 901 234 567 890,000
-ta_IN -3,45,67,89,01,23,45,67,890.000
-SELECT fmt, format(-00045678901234567890, 3, fmt) FROM t1 ORDER BY fmt;
-fmt format(-00045678901234567890, 3, fmt)
-ar_AE -45,678,901,234,567,890.000
-ar_SA -45678901234567890.000
-be_BY -45.678.901.234.567.890,000
-de_DE -45.678.901.234.567.890,000
-en_IN -45,67,89,01,23,45,67,890.000
-en_US -45,678,901,234,567,890.000
-it_CH -45'678'901'234'567'890,000
-ru_RU -45 678 901 234 567 890,000
-ta_IN -45,67,89,01,23,45,67,890.000
-DROP TABLE t1;
-SELECT format(123, 1, 'Non-existent-locale');
-format(123, 1, 'Non-existent-locale')
-123.0
-Warnings:
-Warning 1649 Unknown locale: 'Non-existent-locale'
-End of 5.4 tests
-#
-# Start of 5.5 tests
-#
-#
-# Bug#55912 FORMAT with locale set fails for numbers < 1000
-#
-SELECT FORMAT(123.33, 2, 'no_NO'), FORMAT(1123.33, 2, 'no_NO');
-FORMAT(123.33, 2, 'no_NO') FORMAT(1123.33, 2, 'no_NO')
-123,33 1.123,33
-SELECT FORMAT(12333e-2, 2, 'no_NO'), FORMAT(112333e-2, 2, 'no_NO');
-FORMAT(12333e-2, 2, 'no_NO') FORMAT(112333e-2, 2, 'no_NO')
-123,33 1.123,33
-CREATE TABLE t1 AS SELECT format(123,2,'no_NO');
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `format(123,2,'no_NO')` varchar(45) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-format(123,2,'no_NO')
-123,00
-DROP TABLE t1;
-#
-# Bug#11764310 conv function crashes, negative argument to memcpy
-#
-SELECT CONV(1,-2147483648,-2147483648);
-CONV(1,-2147483648,-2147483648)
-NULL
-#
-# Bug#12985030 SIMPLE QUERY WITH DECIMAL NUMBERS LEAKS MEMORY
-#
-SELECT (rpad(1.0,2048,1)) IS NOT FALSE;
-(rpad(1.0,2048,1)) IS NOT FALSE
-1
-SELECT ((+0) IN
-((0b111111111111111111111111111111111111111111111111111),(rpad(1.0,2048,1)),
-(32767.1)));
-((+0) IN
-((0b111111111111111111111111111111111111111111111111111),(rpad(1.0,2048,1)),
-(32767.1)))
-0
-SELECT ((rpad(1.0,2048,1)) = ('4(') ^ (0.1));
-((rpad(1.0,2048,1)) = ('4(') ^ (0.1))
-0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '4('
-SELECT
-pow((rpad(10.0,2048,1)),(b'1111111111111111111111111111111111111111111'));
-ERROR 22003: DOUBLE value is out of range in 'pow(rpad(10.0,2048,1),0x07ffffffffff)'
-SELECT ((rpad(1.0,2048,1)) + (0) ^ ('../'));
-((rpad(1.0,2048,1)) + (0) ^ ('../'))
-1.011111111111111
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '../'
-SELECT stddev_samp(rpad(1.0,2048,1));
-stddev_samp(rpad(1.0,2048,1))
-NULL
-SELECT ((127.1) not in ((rpad(1.0,2048,1)),(''),(-1.1)));
-((127.1) not in ((rpad(1.0,2048,1)),(''),(-1.1)))
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT ((0xf3) * (rpad(1.0,2048,1)) << (0xcc));
-((0xf3) * (rpad(1.0,2048,1)) << (0xcc))
-0
-#
-# Bug#13359121 LARGE NUMBERS, /STRINGS/DTOA.C:662:
-# BALLOC: ASSERTION `K <= 15' FAILED.
-# Bug#12985021 SIMPLE QUERY WITH DECIMAL NUMBERS TAKE AN
-# EXTRAORDINARY LONG TIME TO EXECUTE
-SELECT @tmp_max:= @@global.max_allowed_packet;
-@tmp_max:= @@global.max_allowed_packet
-1048576
-SET @@global.max_allowed_packet=1024*1024*1024;
-connect newconn, localhost, root,,;
-SELECT @@global.max_allowed_packet;
-@@global.max_allowed_packet
-1073741824
-do
-format(rpad('111111111.1',
-1111111,
-'999999999999999999999999999999999999999999'),0,'be_BY')
-;
-SELECT
-round(
-concat( (
-coalesce( (
-linefromwkb('2147483648',
--b'1111111111111111111111111111111111111111111')),
-( convert('[.DC2.]',decimal(30,30)) ),
-bit_count('')
-) ),
-( lpad( ( elt('01','}:K5')),
-sha1('P'),
-( ( select '-9223372036854775808.1' > all (select '')))
-)
-)
-)
-) AS r;
-ERROR HY000: Illegal parameter data type varchar for operation 'st_geometryfromwkb'
-connection conn1;
-SET @@global.max_allowed_packet:= @tmp_max;
-disconnect newconn;
-SELECT @tmp_max:= @@global.max_allowed_packet;
-@tmp_max:= @@global.max_allowed_packet
-1048576
-SET @@global.max_allowed_packet=1024*1024*1024;
-SELECT @@global.max_allowed_packet;
-@@global.max_allowed_packet
-1073741824
-SELECT CHAR_LENGTH(EXPORT_SET(1,1,1,REPEAT(1,100000000)));
-CHAR_LENGTH(EXPORT_SET(1,1,1,REPEAT(1,100000000)))
-NULL
-Warnings:
-Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
-SET @@global.max_allowed_packet:= @tmp_max;
-#
-# MDEV-4272: DIV operator crashes in Item_func_int_div::val_int
-# (incorrect NULL value handling by convert)
-#
-create table t1(a int) select null;
-select 1 div convert(a using utf8) from t1;
-1 div convert(a using utf8)
-NULL
-drop table t1;
-create table t1 (a int);
-create table t2 (a int);
-create procedure foo (var char(100))
-select replace(var, '00000000', table_name)
-from information_schema.tables where table_schema='test';
-call foo('(( 00000000 ++ 00000000 ))');
-replace(var, '00000000', table_name)
-(( t1 ++ t1 ))
-(( t2 ++ t2 ))
-drop procedure foo;
-drop table t1,t2;
-select md5(_filename "a"), sha(_filename "a");
-md5(_filename "a") sha(_filename "a")
-0cc175b9c0f1b6a831c399e269772661 86f7e437faa5a7fce15d1ddcb9eaeaea377667b8
-#
-# End of 5.5 tests
-#
-#
-# Start of 5.6 tests
-#
-#
-# WL#5510 Functions to_base64 and from_base64
-#
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',63)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(85) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh
-YWFhYWFh 85
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(66) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 63
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',62)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(85) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh
-YWFhYWE= 85
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(66) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 62
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',61)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(85) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh
-YWFhYQ== 85
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(66) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 61
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',60)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(81) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh
-YWFh 81
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(63) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 60
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',59)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(81) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh
-YWE= 81
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(63) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 59
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',58)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(81) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh
-YQ== 81
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(63) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 58
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',57)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(76) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh 76
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(57) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 57
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',56)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(76) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= 76
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(57) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 56
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',55)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(76) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ== 76
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(57) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 55
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',54)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(72) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh 72
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(54) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 54
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',53)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(72) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= 72
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(54) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 53
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',52)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(72) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ== 72
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(54) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 52
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',51)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(68) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh 68
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(51) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 51
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',50)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(68) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= 68
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(51) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 50
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',49)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(68) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ== 68
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(51) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 49
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',48)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(64) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh 64
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(48) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 48
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',47)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(64) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= 64
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(48) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 47
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',46)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(64) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ== 64
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(48) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 46
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',45)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(60) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh 60
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(45) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 45
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',44)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(60) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= 60
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(45) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 44
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',43)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(60) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ== 60
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(45) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 43
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',42)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(56) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh 56
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(42) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 42
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',41)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(56) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= 56
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(42) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 41
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',40)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(56) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ== 56
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(42) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 40
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',39)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(52) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh 52
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(39) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 39
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',38)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(52) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= 52
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(39) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 38
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',37)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(52) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ== 52
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(39) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 37
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',36)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(48) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh 48
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(36) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 36
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',35)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(48) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= 48
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(36) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 35
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',34)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(48) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ== 48
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(36) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 34
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',33)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(44) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh 44
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(33) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 33
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',32)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(44) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= 44
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(33) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 32
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',31)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(44) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ== 44
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(33) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 31
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',30)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(40) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh 40
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 30
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',29)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(40) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= 40
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaa 29
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',28)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(40) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ== 40
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaa 28
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',27)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(36) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh 36
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(27) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaaa 27
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',26)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(36) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= 36
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(27) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaaa 26
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',25)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(36) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ== 36
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(27) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaaa 25
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',24)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(32) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh 32
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(24) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaaa 24
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',23)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(32) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= 32
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(24) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaaa 23
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',22)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(32) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ== 32
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(24) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaaa 22
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',21)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(28) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWFh 28
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaaa 21
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',20)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(28) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYWE= 28
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaaa 20
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',19)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(28) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFhYQ== 28
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaaa 19
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',18)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(24) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWFh 24
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(18) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaaa 18
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',17)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(24) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYWE= 24
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(18) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaaa 17
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',16)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(24) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFhYQ== 24
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(18) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaaa 16
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',15)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWFh 20
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(15) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaaa 15
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',14)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYWE= 20
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(15) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaaa 14
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',13)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFhYQ== 20
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(15) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaaa 13
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',12)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(16) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWFh 16
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaaa 12
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',11)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(16) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYWE= 16
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaaa 11
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',10)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(16) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFhYQ== 16
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaaa 10
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',9)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWFh 12
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaaa 9
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',8)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYWE= 12
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaaa 8
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',7)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFhYQ== 12
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaaa 7
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',6)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWFh 8
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaaa 6
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',5)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYWE= 8
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaaa 5
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',4)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFhYQ== 8
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaaa 4
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',3)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWFh 4
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aaa 3
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',2)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YWE= 4
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-aa 2
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',1)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
-YQ== 4
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` varbinary(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
-a 1
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 AS SELECT TO_BASE64(REPEAT('a',0)) AS to_base64;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `to_base64` char(0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT to_base64, LENGTH(to_base64) FROM t1;
-to_base64 LENGTH(to_base64)
- 0
-CREATE TABLE t2 AS SELECT from_base64(to_base64) AS from_base64 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `from_base64` binary(0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT from_base64, LENGTH(from_base64) FROM t2;
-from_base64 LENGTH(from_base64)
- 0
-DROP TABLE t2;
-DROP TABLE t1;
-
-CREATE TABLE t1 (a VARBINARY(64));
-INSERT INTO t1 VALUES (0x00), (0x0000), (0x000000), (0x00000000);
-INSERT INTO t1 VALUES (0x00010203040506070809);
-SELECT TO_BASE64(a), hex(a) FROM t1 ORDER BY a;
-TO_BASE64(a) hex(a)
-AA== 00
-AAA= 0000
-AAAA 000000
-AAAAAA== 00000000
-AAECAwQFBgcICQ== 00010203040506070809
-DROP TABLE t1;
-#
-# Test NULL output for NULL input
-#
-SELECT TO_BASE64(NULL);
-TO_BASE64(NULL)
-NULL
-SELECT FROM_BASE64(NULL);
-FROM_BASE64(NULL)
-NULL
-#
-# RFC4648 test vectors
-#
-SELECT @b:= TO_BASE64(''), FROM_BASE64(@b);
-@b:= TO_BASE64('') FROM_BASE64(@b)
-
-SELECT @b:= TO_BASE64('f'), FROM_BASE64(@b);
-@b:= TO_BASE64('f') FROM_BASE64(@b)
-Zg== f
-SELECT @b:= TO_BASE64('fo'), FROM_BASE64(@b);
-@b:= TO_BASE64('fo') FROM_BASE64(@b)
-Zm8= fo
-SELECT @b:= TO_BASE64('foo'), FROM_BASE64(@b);
-@b:= TO_BASE64('foo') FROM_BASE64(@b)
-Zm9v foo
-SELECT @b:= TO_BASE64('foob'), FROM_BASE64(@b);
-@b:= TO_BASE64('foob') FROM_BASE64(@b)
-Zm9vYg== foob
-SELECT @b:= TO_BASE64('fooba'), FROM_BASE64(@b);
-@b:= TO_BASE64('fooba') FROM_BASE64(@b)
-Zm9vYmE= fooba
-SELECT @b:= TO_BASE64('foobar'), FROM_BASE64(@b);
-@b:= TO_BASE64('foobar') FROM_BASE64(@b)
-Zm9vYmFy foobar
-#
-# Invalid characters - return NULL
-#
-SELECT hex(FROM_BASE64('#'));
-hex(FROM_BASE64('#'))
-NULL
-Warnings:
-Warning 1958 Bad base64 data as position 0
-SELECT hex(FROM_BASE64('A#'));
-hex(FROM_BASE64('A#'))
-NULL
-Warnings:
-Warning 1958 Bad base64 data as position 1
-SELECT hex(FROM_BASE64('AB#'));
-hex(FROM_BASE64('AB#'))
-NULL
-Warnings:
-Warning 1958 Bad base64 data as position 2
-SELECT hex(FROM_BASE64('ABC#'));
-hex(FROM_BASE64('ABC#'))
-NULL
-Warnings:
-Warning 1958 Bad base64 data as position 3
-SELECT hex(FROM_BASE64('ABCD#'));
-hex(FROM_BASE64('ABCD#'))
-NULL
-Warnings:
-Warning 1958 Bad base64 data as position 4
-#
-# "=" is not valid on the first and second positions of a quadruple
-#
-SELECT hex(FROM_BASE64('='));
-hex(FROM_BASE64('='))
-NULL
-Warnings:
-Warning 1958 Bad base64 data as position 0
-SELECT hex(FROM_BASE64('A='));
-hex(FROM_BASE64('A='))
-NULL
-Warnings:
-Warning 1958 Bad base64 data as position 1
-SELECT hex(FROM_BASE64('ABCD='));
-hex(FROM_BASE64('ABCD='))
-NULL
-Warnings:
-Warning 1958 Bad base64 data as position 4
-SELECT hex(FROM_BASE64('ABCDE='));
-hex(FROM_BASE64('ABCDE='))
-NULL
-Warnings:
-Warning 1958 Bad base64 data as position 5
-#
-# Incomplete sequences - return NULL
-#
-SELECT hex(FROM_BASE64('A'));
-hex(FROM_BASE64('A'))
-NULL
-Warnings:
-Warning 1958 Bad base64 data as position 1
-SELECT hex(FROM_BASE64('AB'));
-hex(FROM_BASE64('AB'))
-NULL
-Warnings:
-Warning 1958 Bad base64 data as position 2
-SELECT hex(FROM_BASE64('ABC'));
-hex(FROM_BASE64('ABC'))
-NULL
-Warnings:
-Warning 1958 Bad base64 data as position 3
-#
-# Unexpected input after pad characters - return NULL
-#
-SELECT hex(FROM_BASE64('AAA=x'));
-hex(FROM_BASE64('AAA=x'))
-NULL
-Warnings:
-Warning 1958 Bad base64 data as position 4
-SELECT hex(FROM_BASE64('AA==x'));
-hex(FROM_BASE64('AA==x'))
-NULL
-Warnings:
-Warning 1958 Bad base64 data as position 4
-#
-# Delimiters are allowed at any position
-#
-SELECT hex(FROM_BASE64(' A B C D '));
-hex(FROM_BASE64(' A B C D '))
-001083
-SELECT hex(FROM_BASE64(' A A = = '));
-hex(FROM_BASE64(' A A = = '))
-00
-SELECT hex(FROM_BASE64(' A A A = '));
-hex(FROM_BASE64(' A A A = '))
-0000
-SELECT hex(FROM_BASE64(' A \n B \r C \t D '));
-hex(FROM_BASE64(' A \n B \r C \t D '))
-001083
-#
-# Testing that to_base64 respects max_allowed_packet
-#
-SELECT LENGTH(TO_BASE64(REPEAT('a', @@max_allowed_packet-10)));
-LENGTH(TO_BASE64(REPEAT('a', @@max_allowed_packet-10)))
-NULL
-Warnings:
-Warning 1301 Result of to_base64() was larger than max_allowed_packet (1048576) - truncated
-#
-# Testing base64 with various data types
-#
-CREATE TABLE t1 (
-i1 INT,
-f1 FLOAT,
-dc1 DECIMAL(10,5),
-e1 ENUM('enum11','enum12','enum13'),
-s1 SET('set1','set2','set3'),
-t1 TIME,
-d1 DATE,
-dt1 DATETIME
-);
-INSERT INTO t1 VALUES
-(-12345, -456.789, 123.45, 'enum13', 'set1,set3',
-'01:02:03', '2010-01-01', '2011-01-01 02:03:04');
-SELECT FROM_BASE64(TO_BASE64(i1)) FROM t1;
-FROM_BASE64(TO_BASE64(i1))
--12345
-SELECT FROM_BASE64(TO_BASE64(f1)) FROM t1;
-FROM_BASE64(TO_BASE64(f1))
--456.789
-SELECT FROM_BASE64(TO_BASE64(dc1)) FROM t1;
-FROM_BASE64(TO_BASE64(dc1))
-123.45000
-SELECT FROM_BASE64(TO_BASE64(e1)) FROM t1;
-FROM_BASE64(TO_BASE64(e1))
-enum13
-SELECT FROM_BASE64(TO_BASE64(s1)) FROM t1;
-FROM_BASE64(TO_BASE64(s1))
-set1,set3
-SELECT FROM_BASE64(TO_BASE64(t1)) FROM t1;
-FROM_BASE64(TO_BASE64(t1))
-01:02:03
-SELECT FROM_BASE64(TO_BASE64(d1)) FROM t1;
-FROM_BASE64(TO_BASE64(d1))
-2010-01-01
-SELECT FROM_BASE64(TO_BASE64(dt1)) FROM t1;
-FROM_BASE64(TO_BASE64(dt1))
-2011-01-01 02:03:04
-DROP TABLE t1;
-SELECT SPACE(@@global.max_allowed_packet*2);
-SPACE(@@global.max_allowed_packet*2)
-NULL
-Warnings:
-Warning 1301 Result of space() was larger than max_allowed_packet (1048576) - truncated
-SET NAMES latin1;
-PREPARE stmt FROM "SELECT COLLATION(space(2))";
-EXECUTE stmt;
-COLLATION(space(2))
-latin1_swedish_ci
-SET NAMES latin2;
-EXECUTE stmt;
-COLLATION(space(2))
-latin2_general_ci
-disconnect conn1;
-connection default;
-set global max_allowed_packet=default;
-#
-# End of 5.6 tests
-#
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-12681 Wrong VIEW results for CHAR(0xDF USING latin1)
-#
-EXPLAIN EXTENDED SELECT CHAR(0xDF USING latin1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select char(0xdf using latin1) AS `CHAR(0xDF USING latin1)`
-EXPLAIN EXTENDED SELECT CHAR(0xDF USING `binary`);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select char(0xdf) AS `CHAR(0xDF USING ``binary``)`
-EXPLAIN EXTENDED SELECT CHAR(0xDF);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select char(0xdf) AS `CHAR(0xDF)`
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8369 Unexpected impossible WHERE for a condition on a ZEROFILL field
-#
-CREATE TABLE t1 (a BIGINT(20) ZEROFILL);
-INSERT INTO t1 VALUES (18446744073709551615),(0);
-SELECT * FROM t1 WHERE a=18446744073709551615;
-a
-18446744073709551615
-SELECT * FROM t1 WHERE FORMAT(a,0)='18,446,744,073,709,551,615';
-a
-18446744073709551615
-SELECT * FROM t1 WHERE a=18446744073709551615 AND FORMAT(a,0)='18,446,744,073,709,551,615';
-a
-18446744073709551615
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a=18446744073709551615 AND FORMAT(a,0)='18,446,744,073,709,551,615';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 18446744073709551615 and format(`test`.`t1`.`a`,0) = '18,446,744,073,709,551,615'
-DROP TABLE t1;
-#
-# Bug#58081 Duplicate entry error when doing GROUP BY
-# MDEV-9332 Bug after upgrade to 10.1.10
-#
-SET NAMES latin1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0),(0),(1),(0),(0);
-SELECT COUNT(*) FROM t1, t1 t2 GROUP BY INSERT('', t2.a, t1.a, @@global.max_binlog_size);
-COUNT(*)
-25
-DROP TABLE t1;
-# Start of func_str_ascii_checksum.inc
-#
-# MDEV-10850 Wrong result for WHERE .. (f2=TO_BASE64('test') OR f2=TO_BASE64('TEST'))
-#
-CREATE TABLE t1 (f1 VARCHAR(4), f2 VARCHAR(255), UNIQUE KEY k1 (f1,f2));
-INSERT INTO t1 VALUES ('test',hex('test')), ('TEST', hex('TEST'));
-SELECT * FROM t1 IGNORE INDEX(k1) WHERE f1='test' AND (f2= hex("test") OR f2= hex("TEST"));
-f1 f2
-test 74657374
-TEST 54455354
-SELECT * FROM t1 WHERE f1='test' AND (f2= hex("test") OR f2= hex("TEST"));
-f1 f2
-TEST 54455354
-test 74657374
-SELECT * FROM t1 WHERE f1='test' AND (f2= hex("TEST") OR f2= hex("test"));
-f1 f2
-TEST 54455354
-test 74657374
-DROP TABLE t1;
-#
-# MDEV-10425 Assertion `collation.derivation == DERIVATION_IMPLICIT' failed in Item_func_conv_charset::fix_length_and_dec()
-#
-PREPARE stmt FROM "SELECT hex(CONVERT('foo' USING latin1))";
-EXECUTE stmt;
-hex(CONVERT('foo' USING latin1))
-666F6F
-DEALLOCATE PREPARE stmt;
-# End of func_str_ascii_checksum.inc
-# Start of func_str_ascii_checksum.inc
-#
-# MDEV-10850 Wrong result for WHERE .. (f2=TO_BASE64('test') OR f2=TO_BASE64('TEST'))
-#
-CREATE TABLE t1 (f1 VARCHAR(4), f2 VARCHAR(255), UNIQUE KEY k1 (f1,f2));
-INSERT INTO t1 VALUES ('test',to_base64('test')), ('TEST', to_base64('TEST'));
-SELECT * FROM t1 IGNORE INDEX(k1) WHERE f1='test' AND (f2= to_base64("test") OR f2= to_base64("TEST"));
-f1 f2
-test dGVzdA==
-TEST VEVTVA==
-SELECT * FROM t1 WHERE f1='test' AND (f2= to_base64("test") OR f2= to_base64("TEST"));
-f1 f2
-test dGVzdA==
-TEST VEVTVA==
-SELECT * FROM t1 WHERE f1='test' AND (f2= to_base64("TEST") OR f2= to_base64("test"));
-f1 f2
-test dGVzdA==
-TEST VEVTVA==
-DROP TABLE t1;
-#
-# MDEV-10425 Assertion `collation.derivation == DERIVATION_IMPLICIT' failed in Item_func_conv_charset::fix_length_and_dec()
-#
-PREPARE stmt FROM "SELECT to_base64(CONVERT('foo' USING latin1))";
-EXECUTE stmt;
-to_base64(CONVERT('foo' USING latin1))
-Zm9v
-DEALLOCATE PREPARE stmt;
-# End of func_str_ascii_checksum.inc
-#
-# MDEV-10864 Wrong result for WHERE .. (f2=COMPRESS('test') OR f2=COMPRESS('TEST'))
-#
-CREATE TABLE t1 (f1 VARCHAR(4), f2 VARCHAR(128), UNIQUE KEY k1 (f1,f2));
-INSERT INTO t1 VALUES ('YQ==',from_base64('YQ==')), ('Yq==', from_base64('Yq=='));
-SELECT f1,HEX(f2) FROM t1 ignore index(k1) WHERE f1='YQ==' AND (f2= from_base64("YQ==") OR f2= from_base64("Yq=="));
-f1 HEX(f2)
-YQ== 61
-Yq== 62
-SELECT f1,HEX(f2) FROM t1 WHERE f1='YQ==' AND (f2= from_base64("YQ==") OR f2= from_base64("Yq=="));
-f1 HEX(f2)
-YQ== 61
-Yq== 62
-SELECT f1,HEX(f2) FROM t1 WHERE f1='YQ==' AND (f2= from_base64("Yq==") OR f2= from_base64("YQ=="));
-f1 HEX(f2)
-YQ== 61
-Yq== 62
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12685 Oracle-compatible function CHR()
-#
-select chr(65);
-chr(65)
-A
-create database mysqltest1 CHARACTER SET = 'utf8' COLLATE = 'utf8_bin';
-use mysqltest1;
-select charset(chr(65)), length(chr(65)),char_length(chr(65));
-charset(chr(65)) length(chr(65)) char_length(chr(65))
-utf8 1 1
-select charset(chr(14844588)), length(chr(14844588)),char_length(chr(14844588));
-charset(chr(14844588)) length(chr(14844588)) char_length(chr(14844588))
-utf8 3 1
-drop database mysqltest1;
-use test;
-#
-# MDEV-12592 Illegal mix of collations with the HEX function
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1);
-INSERT INTO t1 VALUES (0x09),('a');
-SELECT IF(a<' ',HEX(a),a) FROM t1 ORDER BY a;
-IF(a<' ',HEX(a),a)
-09
-a
-DROP TABLE t1;
-#
-# MDEV-12783 sql_mode=ORACLE: Functions LENGTH() and LENGTHB()
-#
-SELECT LENGTHB('a'), LENGTHB(_utf8 0xC39F), LENGTHB(123), LENGTH(null);
-LENGTHB('a') LENGTHB(_utf8 0xC39F) LENGTHB(123) LENGTH(null)
-1 2 3 NULL
-EXPLAIN EXTENDED SELECT LENGTH('a'), LENGTHB('a');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select octet_length('a') AS `LENGTH('a')`,octet_length('a') AS `LENGTHB('a')`
-#
-# MDEV-13555 Assertion `!item->null_value' failed in Type_handler::Item_send_str
-#
-CREATE TABLE t1 (c VARCHAR(8));
-INSERT INTO t1 VALUES (NULL),('bar');
-SELECT LPAD( c, 0, '?' ) FROM t1;
-LPAD( c, 0, '?' )
-NULL
-
-SELECT RPAD( c, 0, '?' ) FROM t1;
-RPAD( c, 0, '?' )
-NULL
-
-DROP TABLE t1;
-#
-# End of 10.3 tests
-#
diff --git a/mysql-test/r/func_system.result b/mysql-test/r/func_system.result
deleted file mode 100644
index 06fb7e44cf0..00000000000
--- a/mysql-test/r/func_system.result
+++ /dev/null
@@ -1,97 +0,0 @@
-select database();
-database()
-test
-select charset(database());
-charset(database())
-utf8
-select database() = "test";
-database() = "test"
-1
-select database() = _utf8"test";
-database() = _utf8"test"
-1
-select database() = _latin1"test";
-database() = _latin1"test"
-1
-select user() like "%@%";
-user() like "%@%"
-1
-select user() like _utf8"%@%";
-user() like _utf8"%@%"
-1
-select user() like _latin1"%@%";
-user() like _latin1"%@%"
-1
-select charset(user());
-charset(user())
-utf8
-select version()>="03.23.29";
-version()>="03.23.29"
-1
-select version()>=_utf8"03.23.29";
-version()>=_utf8"03.23.29"
-1
-select version()>=_latin1"03.23.29";
-version()>=_latin1"03.23.29"
-1
-select charset(version());
-charset(version())
-utf8
-explain extended select database(), user();
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select database() AS `database()`,user() AS `user()`
-create table t1 (version char(60)) select database(), user(), version() as 'version';
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `database()` varchar(34) CHARACTER SET utf8 DEFAULT NULL,
- `user()` varchar(141) CHARACTER SET utf8 DEFAULT NULL,
- `version` char(60) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select charset(charset(_utf8'a')), charset(collation(_utf8'a'));
-charset(charset(_utf8'a')) charset(collation(_utf8'a'))
-utf8 utf8
-select collation(charset(_utf8'a')), collation(collation(_utf8'a'));
-collation(charset(_utf8'a')) collation(collation(_utf8'a'))
-utf8_general_ci utf8_general_ci
-create table t1 select charset(_utf8'a'), collation(_utf8'a');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `charset(_utf8'a')` varchar(64) CHARACTER SET utf8 DEFAULT NULL,
- `collation(_utf8'a')` varchar(64) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select TRUE,FALSE,NULL;
-TRUE FALSE NULL
-1 0 NULL
-create table t1 (c1 char(5)) character set=latin1;
-insert into t1 values('row 1');
-insert into t1 values('row 2');
-insert into t1 values('row 3');
-select concat(user(), '--', c1) from t1;
-concat(user(), '--', c1)
-root@localhost--row 1
-root@localhost--row 2
-root@localhost--row 3
-select concat(database(), '--', c1) from t1;
-concat(database(), '--', c1)
-test--row 1
-test--row 2
-test--row 3
-drop table t1;
-create table t1 (a char(10)) character set latin1;
-select * from t1 where a=version();
-a
-select * from t1 where a=database();
-a
-select * from t1 where a=user();
-a
-insert into t1 values ('a');
-select left(concat(a,version()),1) from t1;
-left(concat(a,version()),1)
-a
-drop table t1;
diff --git a/mysql-test/r/func_test.result b/mysql-test/r/func_test.result
deleted file mode 100644
index 4243ed9cfb0..00000000000
--- a/mysql-test/r/func_test.result
+++ /dev/null
@@ -1,439 +0,0 @@
-drop table if exists t1,t2;
-select 0=0,1>0,1>=1,1<0,1<=0,1!=0,strcmp("abc","abcd"),strcmp("b","a"),strcmp("a","a") ;
-0=0 1>0 1>=1 1<0 1<=0 1!=0 strcmp("abc","abcd") strcmp("b","a") strcmp("a","a")
-1 1 1 0 0 1 -1 1 0
-select "a"<"b","a"<="b","b">="a","b">"a","a"="A","a"<>"b";
-"a"<"b" "a"<="b" "b">="a" "b">"a" "a"="A" "a"<>"b"
-1 1 1 1 1 1
-select "a "="A", "A "="a", "a " <= "A b";
-"a "="A" "A "="a" "a " <= "A b"
-1 1 1
-select "abc" like "a%", "abc" not like "%d%", "a%" like "a\%","abc%" like "a%\%","abcd" like "a%b_%d", "a" like "%%a","abcde" like "a%_e","abc" like "abc%";
-"abc" like "a%" "abc" not like "%d%" "a%" like "a\%" "abc%" like "a%\%" "abcd" like "a%b_%d" "a" like "%%a" "abcde" like "a%_e" "abc" like "abc%"
-1 1 1 1 1 1 1 1
-select "a" like "%%b","a" like "%%ab","ab" like "a\%", "ab" like "_", "ab" like "ab_", "abc" like "%_d", "abc" like "abc%d";
-"a" like "%%b" "a" like "%%ab" "ab" like "a\%" "ab" like "_" "ab" like "ab_" "abc" like "%_d" "abc" like "abc%d"
-0 0 0 0 0 0 0
-select '?' like '|%', '?' like '|%' ESCAPE '|', '%' like '|%', '%' like '|%' ESCAPE '|', '%' like '%';
-'?' like '|%' '?' like '|%' ESCAPE '|' '%' like '|%' '%' like '|%' ESCAPE '|' '%' like '%'
-0 0 0 1 1
-select 'abc' like '%c','abcabc' like '%c', "ab" like "", "ab" like "a", "ab" like "ab";
-'abc' like '%c' 'abcabc' like '%c' "ab" like "" "ab" like "a" "ab" like "ab"
-1 1 0 0 1
-select "Det här är svenska" regexp "h[[:alpha:]]+r", "aba" regexp "^(a|b)*$";
-"Det här är svenska" regexp "h[[:alpha:]]+r" "aba" regexp "^(a|b)*$"
-1 1
-select "aba" regexp concat("^","a");
-"aba" regexp concat("^","a")
-1
-select !0,NOT 0=1,!(0=0),1 AND 1,1 && 0,0 OR 1,1 || NULL, 1=1 or 1=1 and 1=0;
-!0 NOT 0=1 !(0=0) 1 AND 1 1 && 0 0 OR 1 1 || NULL 1=1 or 1=1 and 1=0
-1 1 0 1 0 1 1 1
-select 2 between 1 and 3, "monty" between "max" and "my",2=2 and "monty" between "max" and "my" and 3=3;
-2 between 1 and 3 "monty" between "max" and "my" 2=2 and "monty" between "max" and "my" and 3=3
-1 1 1
-select 'b' between 'a' and 'c', 'B' between 'a' and 'c';
-'b' between 'a' and 'c' 'B' between 'a' and 'c'
-1 1
-select 2 in (3,2,5,9,5,1),"monty" in ("david","monty","allan"), 1.2 in (1.4,1.2,1.0);
-2 in (3,2,5,9,5,1) "monty" in ("david","monty","allan") 1.2 in (1.4,1.2,1.0)
-1 1 1
-select -1.49 or -1.49,0.6 or 0.6;
--1.49 or -1.49 0.6 or 0.6
-1 1
-select 3 ^ 11, 1 ^ 1, 1 ^ 0, 1 ^ NULL, NULL ^ 1;
-3 ^ 11 1 ^ 1 1 ^ 0 1 ^ NULL NULL ^ 1
-8 0 1 NULL NULL
-explain extended select 3 ^ 11, 1 ^ 1, 1 ^ 0, 1 ^ NULL, NULL ^ 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 3 ^ 11 AS `3 ^ 11`,1 ^ 1 AS `1 ^ 1`,1 ^ 0 AS `1 ^ 0`,1 ^ NULL AS `1 ^ NULL`,NULL ^ 1 AS `NULL ^ 1`
-select 1 XOR 1, 1 XOR 0, 0 XOR 1, 0 XOR 0, NULL XOR 1, 1 XOR NULL, 0 XOR NULL;
-1 XOR 1 1 XOR 0 0 XOR 1 0 XOR 0 NULL XOR 1 1 XOR NULL 0 XOR NULL
-0 1 1 0 NULL NULL NULL
-select 1 like 2 xor 2 like 1;
-1 like 2 xor 2 like 1
-0
-select 10 % 7, 10 mod 7, 10 div 3;
-10 % 7 10 mod 7 10 div 3
-3 3 3
-explain extended select 10 % 7, 10 mod 7, 10 div 3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 10 MOD 7 AS `10 % 7`,10 MOD 7 AS `10 mod 7`,10 DIV 3 AS `10 div 3`
-select 18446744073709551615, 18446744073709551615 DIV 1, 18446744073709551615 DIV 2;
-18446744073709551615 18446744073709551615 DIV 1 18446744073709551615 DIV 2
-18446744073709551615 18446744073709551615 9223372036854775807
-explain extended select (1 << 64)-1, ((1 << 64)-1) DIV 1, ((1 << 64)-1) DIV 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select (1 << 64) - 1 AS `(1 << 64)-1`,((1 << 64) - 1) DIV 1 AS `((1 << 64)-1) DIV 1`,((1 << 64) - 1) DIV 2 AS `((1 << 64)-1) DIV 2`
-create table t1 (a int);
-insert t1 values (1);
-select * from t1 where 1 xor 1;
-a
-explain extended select * from t1 where 1 xor 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-select - a from t1;
-- a
--1
-explain extended select - a from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select -1 AS `- a` from dual
-drop table t1;
-select 5 between 0 and 10 between 0 and 1,(5 between 0 and 10) between 0 and 1;
-5 between 0 and 10 between 0 and 1 (5 between 0 and 10) between 0 and 1
-0 1
-select 1 and 2 between 2 and 10, 2 between 2 and 10 and 1;
-1 and 2 between 2 and 10 2 between 2 and 10 and 1
-1 1
-select 1 and 0 or 2, 2 or 1 and 0;
-1 and 0 or 2 2 or 1 and 0
-1 1
-select _koi8r'a' = _koi8r'A';
-_koi8r'a' = _koi8r'A'
-1
-select _koi8r'a' = _koi8r'A' COLLATE koi8r_general_ci;
-_koi8r'a' = _koi8r'A' COLLATE koi8r_general_ci
-1
-explain extended select _koi8r'a' = _koi8r'A' COLLATE koi8r_general_ci;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select _koi8r'a' = _koi8r'A' collate koi8r_general_ci AS `_koi8r'a' = _koi8r'A' COLLATE koi8r_general_ci`
-select _koi8r'a' = _koi8r'A' COLLATE koi8r_bin;
-_koi8r'a' = _koi8r'A' COLLATE koi8r_bin
-0
-select _koi8r'a' COLLATE koi8r_general_ci = _koi8r'A';
-_koi8r'a' COLLATE koi8r_general_ci = _koi8r'A'
-1
-select _koi8r'a' COLLATE koi8r_bin = _koi8r'A';
-_koi8r'a' COLLATE koi8r_bin = _koi8r'A'
-0
-select _koi8r'a' COLLATE koi8r_bin = _koi8r'A' COLLATE koi8r_general_ci;
-ERROR HY000: Illegal mix of collations (koi8r_bin,EXPLICIT) and (koi8r_general_ci,EXPLICIT) for operation '='
-select _koi8r'a' = _latin1'A';
-ERROR HY000: Illegal mix of collations (koi8r_general_ci,COERCIBLE) and (latin1_swedish_ci,COERCIBLE) for operation '='
-select strcmp(_koi8r'a', _koi8r'A');
-strcmp(_koi8r'a', _koi8r'A')
-0
-select strcmp(_koi8r'a', _koi8r'A' COLLATE koi8r_general_ci);
-strcmp(_koi8r'a', _koi8r'A' COLLATE koi8r_general_ci)
-0
-select strcmp(_koi8r'a', _koi8r'A' COLLATE koi8r_bin);
-strcmp(_koi8r'a', _koi8r'A' COLLATE koi8r_bin)
-1
-select strcmp(_koi8r'a' COLLATE koi8r_general_ci, _koi8r'A');
-strcmp(_koi8r'a' COLLATE koi8r_general_ci, _koi8r'A')
-0
-select strcmp(_koi8r'a' COLLATE koi8r_bin, _koi8r'A');
-strcmp(_koi8r'a' COLLATE koi8r_bin, _koi8r'A')
-1
-select strcmp(_koi8r'a' COLLATE koi8r_general_ci, _koi8r'A' COLLATE koi8r_bin);
-ERROR HY000: Illegal mix of collations (koi8r_general_ci,EXPLICIT) and (koi8r_bin,EXPLICIT) for operation 'strcmp'
-select strcmp(_koi8r'a', _latin1'A');
-ERROR HY000: Illegal mix of collations (koi8r_general_ci,COERCIBLE) and (latin1_swedish_ci,COERCIBLE) for operation 'strcmp'
-select _koi8r'a' LIKE _koi8r'A';
-_koi8r'a' LIKE _koi8r'A'
-1
-select _koi8r'a' LIKE _koi8r'A' COLLATE koi8r_general_ci;
-_koi8r'a' LIKE _koi8r'A' COLLATE koi8r_general_ci
-1
-select _koi8r'a' LIKE _koi8r'A' COLLATE koi8r_bin;
-_koi8r'a' LIKE _koi8r'A' COLLATE koi8r_bin
-0
-select _koi8r'a' COLLATE koi8r_general_ci LIKE _koi8r'A';
-_koi8r'a' COLLATE koi8r_general_ci LIKE _koi8r'A'
-1
-select _koi8r'a' COLLATE koi8r_bin LIKE _koi8r'A';
-_koi8r'a' COLLATE koi8r_bin LIKE _koi8r'A'
-0
-select _koi8r'a' COLLATE koi8r_general_ci LIKE _koi8r'A' COLLATE koi8r_bin;
-ERROR HY000: Illegal mix of collations (koi8r_general_ci,EXPLICIT) and (koi8r_bin,EXPLICIT) for operation 'like'
-select _koi8r'a' LIKE _latin1'A';
-ERROR HY000: Illegal mix of collations (koi8r_general_ci,COERCIBLE) and (latin1_swedish_ci,COERCIBLE) for operation 'like'
-CREATE TABLE t1 ( faq_group_id int(11) NOT NULL default '0', faq_id int(11) NOT NULL default '0', title varchar(240) default NULL, keywords text, description longblob, solution longblob, status tinyint(4) NOT NULL default '0', access_id smallint(6) default NULL, lang_id smallint(6) NOT NULL default '0', created datetime NOT NULL default '0000-00-00 00:00:00', updated datetime default NULL, last_access datetime default NULL, last_notify datetime default NULL, solved_count int(11) NOT NULL default '0', static_solved int(11) default NULL, solved_1 int(11) default NULL, solved_2 int(11) default NULL, solved_3 int(11) default NULL, solved_4 int(11) default NULL, solved_5 int(11) default NULL, expires datetime default NULL, notes text, assigned_to smallint(6) default NULL, assigned_group smallint(6) default NULL, last_edited_by smallint(6) default NULL, orig_ref_no varchar(15) binary default NULL, c$fundstate smallint(6) default NULL, c$contributor smallint(6) default NULL, UNIQUE KEY t1$faq_id (faq_id), KEY t1$group_id$faq_id (faq_group_id,faq_id), KEY t1$c$fundstate (c$fundstate) ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (82,82,'How to use the DynaVox Usage Counts Feature','usages count, number, corner, white, box, button','<as-html>\r\n<table width=\"100%\" border=\"0\">\r\n <tr>\r\n <td width=\"3%\"> </td>\r\n <td width=\"97%\">\r\n <h3><font face=\"Verdana, Arial, Helvetica, sans-serif\" color=\"#000000\">How \r\n To</font><!-- #BeginEditable \"CS_troubleshoot_question\" --><font face=\"Verdana, Arial, Helvetica, sans-serif\" color=\"#000099\"><font color=\"#000000\">: \r\n Display or Hide the Usage Counts to find out how many times each button is being selected. </font></font><!-- #EndEditable --></h3>\r\n </td>\r\n </tr>\r\n</table>','<as-html>\r\n <table width=\"100%\" border=\"0\">\r\n <tr>\r\n <td width=\"3%\"> </td>\r\n \r\n<td width=\"97%\"><!-- #BeginEditable \"CS_troubleshoot_answer\" --> \r\n \r\n<p><font color=\"#000000\" face=\"Verdana, Arial, Helvetica, sans-serif\">1. Select \r\n the <i>On/Setup</i> button to access the DynaVox Setup Menu.<br>\r\n 2. Select <b>Button Features.</b><br>\r\n 3. Below the <b>OK</b> button is the <b>Usage Counts</b> button.<br>\r\n a. If it says \"Hidden\" then the Usage Counts will not be displayed.<br>\r\n b. If it says \"Displayed\" then the Usage Counts will be shown.<br>\r\n c. Select the <b>Usage Counts</b> Option Ring once and it will toggle \r\n to the alternative option.<br>\r\n 4. Once the correct setting has been chosen, select <b>OK</b> to leave the <i>Button \r\n Features</i> menu.<br>\r\n 5. Select <b>OK</b> out of the <i>Setup</i> menu and return to the communication \r\n page.</font></p>\r\n <p><font color=\"#000000\" face=\"Verdana, Arial, Helvetica, sans-serif\">For \r\n further information on <i>Usage Counts,</i> see the <i>Button Features \r\n Menu Entry</i> in the DynaVox/DynaMyte Reference Manual.</font></p>\r\n<!-- #EndEditable --></td>\r\n </tr>\r\n</table>',4,1,1,'2001-11-16 16:43:34','2002-11-25 12:09:43','2003-07-24 01:04:48',NULL,11,NULL,0,0,0,0,0,NULL,NULL,NULL,NULL,11,NULL,NULL,NULL);
-CREATE TABLE t2 ( access_id smallint(6) NOT NULL default '0', name varchar(20) binary default NULL, rank smallint(6) NOT NULL default '0', KEY t2$access_id (access_id) ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,'Everyone',2),(2,'Help',3),(3,'Customer Support',1);
-SELECT f_acc.rank, a1.rank, a2.rank FROM t1 LEFT JOIN t1 f1 ON (f1.access_id=1 AND f1.faq_group_id = t1.faq_group_id) LEFT JOIN t2 a1 ON (a1.access_id = f1.access_id) LEFT JOIN t1 f2 ON (f2.access_id=3 AND f2.faq_group_id = t1.faq_group_id) LEFT JOIN t2 a2 ON (a2.access_id = f2.access_id), t2 f_acc WHERE LEAST(a1.rank,a2.rank) = f_acc.rank;
-rank rank rank
-DROP TABLE t1,t2;
-CREATE TABLE t1 (d varchar(6), k int);
-INSERT INTO t1 VALUES (NULL, 2);
-SELECT GREATEST(d,d) FROM t1 WHERE k=2;
-GREATEST(d,d)
-NULL
-DROP TABLE t1;
-select 1197.90 mod 50;
-1197.90 mod 50
-47.90
-select 5.1 mod 3, 5.1 mod -3, -5.1 mod 3, -5.1 mod -3;
-5.1 mod 3 5.1 mod -3 -5.1 mod 3 -5.1 mod -3
-2.1 2.1 -2.1 -2.1
-select 5 mod 3, 5 mod -3, -5 mod 3, -5 mod -3;
-5 mod 3 5 mod -3 -5 mod 3 -5 mod -3
-2 2 -2 -2
-select (12%0) <=> null as '1';
-1
-1
-Warnings:
-Warning 1365 Division by 0
-select (12%0) is null as '1';
-1
-1
-Warnings:
-Warning 1365 Division by 0
-select 12%0 as 'NULL';
-NULL
-NULL
-Warnings:
-Warning 1365 Division by 0
-select 12%2 as '0';
-0
-0
-select 12%NULL as 'NULL';
-NULL
-NULL
-select 12 % null as 'NULL';
-NULL
-NULL
-select null % 12 as 'NULL';
-NULL
-NULL
-select null % 0 as 'NULL';
-NULL
-NULL
-select 0 % null as 'NULL';
-NULL
-NULL
-select null % null as 'NULL';
-NULL
-NULL
-select (12 mod 0) <=> null as '1';
-1
-1
-Warnings:
-Warning 1365 Division by 0
-select (12 mod 0) is null as '1';
-1
-1
-Warnings:
-Warning 1365 Division by 0
-select 12 mod 0 as 'NULL';
-NULL
-NULL
-Warnings:
-Warning 1365 Division by 0
-select 12 mod 2 as '0';
-0
-0
-select 12 mod null as 'NULL';
-NULL
-NULL
-select null mod 12 as 'NULL';
-NULL
-NULL
-select null mod 0 as 'NULL';
-NULL
-NULL
-select 0 mod null as 'NULL';
-NULL
-NULL
-select null mod null as 'NULL';
-NULL
-NULL
-select mod(12.0, 0) as 'NULL';
-NULL
-NULL
-Warnings:
-Warning 1365 Division by 0
-select mod(12, 0.0) as 'NULL';
-NULL
-NULL
-Warnings:
-Warning 1365 Division by 0
-select mod(12, NULL) as 'NULL';
-NULL
-NULL
-select mod(12.0, NULL) as 'NULL';
-NULL
-NULL
-select mod(NULL, 2) as 'NULL';
-NULL
-NULL
-select mod(NULL, 2.0) as 'NULL';
-NULL
-NULL
-create table t1 (a int, b int);
-insert into t1 values (1,2), (2,3), (3,4), (4,5);
-select * from t1 where a not between 1 and 2;
-a b
-3 4
-4 5
-select * from t1 where a not between 1 and 2 and b not between 3 and 4;
-a b
-4 5
-drop table t1;
-SELECT GREATEST(1,NULL) FROM DUAL;
-GREATEST(1,NULL)
-NULL
-SELECT LEAST('xxx','aaa',NULL,'yyy') FROM DUAL;
-LEAST('xxx','aaa',NULL,'yyy')
-NULL
-SELECT LEAST(1.1,1.2,NULL,1.0) FROM DUAL;
-LEAST(1.1,1.2,NULL,1.0)
-NULL
-SELECT GREATEST(1.5E+2,1.3E+2,NULL) FROM DUAL;
-GREATEST(1.5E+2,1.3E+2,NULL)
-NULL
-create table t1 (a int);
-insert into t1 values (1), (100), (0), (NULL);
-select not a from t1;
-not a
-0
-0
-1
-NULL
-explain extended select not a from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`a` = 0 AS `not a` from `test`.`t1`
-select * from t1 where not a;
-a
-0
-explain extended select * from t1 where not a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 0
-select not (a+0) from t1;
-not (a+0)
-0
-0
-1
-NULL
-explain extended select not (a+0) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 100.00
-Warnings:
-Note 1003 select !(`test`.`t1`.`a` + 0) AS `not (a+0)` from `test`.`t1`
-select * from t1 where not (a+0);
-a
-0
-explain extended select * from t1 where not (a+0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where !(`test`.`t1`.`a` + 0)
-select not 1, not null, not not null, 1 is not null;
-not 1 not null not not null 1 is not null
-0 NULL NULL 1
-drop table t1;
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-7001 Bad result for NOT NOT STRCMP('a','b') and NOT NOT NULLIF(2,3)
-#
-SELECT NOT NOT strcmp('a','b');
-NOT NOT strcmp('a','b')
-1
-EXPLAIN EXTENDED SELECT NOT NOT strcmp('a','b');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select strcmp('a','b') <> 0 AS `NOT NOT strcmp('a','b')`
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8167 XOR returns bad results for an indexed column
-#
-CREATE TABLE t1 (
-id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
-k INTEGER UNSIGNED DEFAULT '0' NOT NULL,
-c CHAR(120) DEFAULT '' NOT NULL,
-pad CHAR(60) DEFAULT '' NOT NULL,
-PRIMARY KEY (id)
-) ENGINE=MyISAM;
-INSERT INTO t1 (k, c, pad) VALUES (10, 'a', 'xxx');
-INSERT INTO t1 (k, c, pad) VALUES (11, 'a', 'xxx');
-INSERT INTO t1 (k, c, pad) VALUES (12, 'a', 'xxx');
-INSERT INTO t1 (k, c, pad) VALUES (13, 'a', 'xxx');
-INSERT INTO t1 (k, c, pad) VALUES (14, 'a', 'xxx');
-INSERT INTO t1 (k, c, pad) VALUES (15, 'a', 'xxx');
-INSERT INTO t1 (k, c, pad) VALUES (16, 'a', 'xxx');
-SELECT * FROM t1 WHERE id XOR 0;
-id k c pad
-1 10 a xxx
-2 11 a xxx
-3 12 a xxx
-4 13 a xxx
-5 14 a xxx
-6 15 a xxx
-7 16 a xxx
-SELECT * FROM t1 IGNORE KEY(PRIMARY) WHERE id XOR 0;
-id k c pad
-1 10 a xxx
-2 11 a xxx
-3 12 a xxx
-4 13 a xxx
-5 14 a xxx
-6 15 a xxx
-7 16 a xxx
-DROP TABLE t1;
-#
-# MDEV-8871 Wrong result for CREATE TABLE .. SELECT LEAST(unsigned_column,unsigned_column)
-#
-CREATE TABLE t1 (a INT,b INT UNSIGNED);
-INSERT INTO t1 VALUES (-2147483648,4294967295);
-SELECT a, b, LEAST(a,a), LEAST(b,b), LEAST(a,b), LEAST(b,a), GREATEST(a,b), GREATEST(b,a) FROM t1;
-a -2147483648
-b 4294967295
-LEAST(a,a) -2147483648
-LEAST(b,b) 4294967295
-LEAST(a,b) -2147483648
-LEAST(b,a) -2147483648
-GREATEST(a,b) 4294967295
-GREATEST(b,a) 4294967295
-CREATE TABLE t2 AS
-SELECT a, b, LEAST(a,a), LEAST(b,b), LEAST(a,b), LEAST(b,a), GREATEST(a,b), GREATEST(b,a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL,
- `b` int(10) unsigned DEFAULT NULL,
- `LEAST(a,a)` int(11) DEFAULT NULL,
- `LEAST(b,b)` int(10) unsigned DEFAULT NULL,
- `LEAST(a,b)` decimal(10,0) DEFAULT NULL,
- `LEAST(b,a)` decimal(10,0) DEFAULT NULL,
- `GREATEST(a,b)` decimal(10,0) DEFAULT NULL,
- `GREATEST(b,a)` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-a -2147483648
-b 4294967295
-LEAST(a,a) -2147483648
-LEAST(b,b) 4294967295
-LEAST(a,b) -2147483648
-LEAST(b,a) -2147483648
-GREATEST(a,b) 4294967295
-GREATEST(b,a) 4294967295
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
diff --git a/mysql-test/r/func_time.result b/mysql-test/r/func_time.result
deleted file mode 100644
index 2772f850ce9..00000000000
--- a/mysql-test/r/func_time.result
+++ /dev/null
@@ -1,3486 +0,0 @@
-drop table if exists t1,t2,t3;
-set time_zone="+03:00";
-select from_days(to_days("960101")),to_days(960201)-to_days("19960101"),to_days(date_add(curdate(), interval 1 day))-to_days(curdate()),weekday("1997-11-29");
-from_days(to_days("960101")) to_days(960201)-to_days("19960101") to_days(date_add(curdate(), interval 1 day))-to_days(curdate()) weekday("1997-11-29")
-1996-01-01 31 1 5
-select period_add("9602",-12),period_diff(199505,"9404") ;
-period_add("9602",-12) period_diff(199505,"9404")
-199502 13
-select now()-now(),weekday(curdate())-weekday(now()),unix_timestamp()-unix_timestamp(now());
-now()-now() weekday(curdate())-weekday(now()) unix_timestamp()-unix_timestamp(now())
-0 0 0
-select from_unixtime(unix_timestamp("1994-03-02 10:11:12")),from_unixtime(unix_timestamp("1994-03-02 10:11:12"),"%Y-%m-%d %h:%i:%s"),from_unixtime(unix_timestamp("1994-03-02 10:11:12"))+0;
-from_unixtime(unix_timestamp("1994-03-02 10:11:12")) from_unixtime(unix_timestamp("1994-03-02 10:11:12"),"%Y-%m-%d %h:%i:%s") from_unixtime(unix_timestamp("1994-03-02 10:11:12"))+0
-1994-03-02 10:11:12 1994-03-02 10:11:12 19940302101112
-select sec_to_time(9001),sec_to_time(9001)+0,time_to_sec("15:12:22"),
-sec_to_time(time_to_sec("0:30:47")/6.21);
-sec_to_time(9001) sec_to_time(9001)+0 time_to_sec("15:12:22") sec_to_time(time_to_sec("0:30:47")/6.21)
-02:30:01 23001 54742 00:04:57.4235
-select sec_to_time(9001.1), time_to_sec('15:12:22.123456'), time_to_sec(15.5566778899);
-sec_to_time(9001.1) time_to_sec('15:12:22.123456') time_to_sec(15.5566778899)
-02:30:01.1 54742.123456 15.556677
-select sec_to_time(time_to_sec('-838:59:59'));
-sec_to_time(time_to_sec('-838:59:59'))
--838:59:59
-select sec_to_time('9001.1'), sec_to_time('1234567890123.123');
-sec_to_time('9001.1') sec_to_time('1234567890123.123')
-02:30:01.100000 838:59:59.999999
-Warnings:
-Warning 1292 Truncated incorrect time value: '1234567890123.123'
-select sec_to_time(-9001.1), sec_to_time(-9001.1) / 1,
-sec_to_time(-9001.1) / 1e0, sec_to_time(-9001) div 1;
-sec_to_time(-9001.1) sec_to_time(-9001.1) / 1 sec_to_time(-9001.1) / 1e0 sec_to_time(-9001) div 1
--02:30:01.1 -23001.10000 -23001.1 -23001
-select sec_to_time(90011e-1), sec_to_time(1234567890123e30);
-sec_to_time(90011e-1) sec_to_time(1234567890123e30)
-02:30:01.100000 838:59:59.999999
-Warnings:
-Warning 1292 Truncated incorrect time value: '1.234567890123e42'
-select sec_to_time(1234567890123), sec_to_time('99999999999999999999999999999');
-sec_to_time(1234567890123) sec_to_time('99999999999999999999999999999')
-838:59:59 838:59:59.999999
-Warnings:
-Warning 1292 Truncated incorrect time value: '1234567890123'
-Warning 1292 Truncated incorrect time value: '99999999999999999999999999999'
-select now()-curdate()*1000000-curtime();
-now()-curdate()*1000000-curtime()
-0
-select strcmp(current_timestamp(),concat(current_date()," ",current_time()));
-strcmp(current_timestamp(),concat(current_date()," ",current_time()))
-0
-select strcmp(localtime(),concat(current_date()," ",current_time()));
-strcmp(localtime(),concat(current_date()," ",current_time()))
-0
-select strcmp(localtimestamp(),concat(current_date()," ",current_time()));
-strcmp(localtimestamp(),concat(current_date()," ",current_time()))
-0
-select date_format("1997-01-02 03:04:05", "%M %W %D %Y %y %m %d %h %i %s %w");
-date_format("1997-01-02 03:04:05", "%M %W %D %Y %y %m %d %h %i %s %w")
-January Thursday 2nd 1997 97 01 02 03 04 05 4
-select date_format("1997-01-02", concat("%M %W %D ","%Y %y %m %d %h %i %s %w"));
-date_format("1997-01-02", concat("%M %W %D ","%Y %y %m %d %h %i %s %w"))
-January Thursday 2nd 1997 97 01 02 12 00 00 4
-select dayofmonth("1997-01-02"),dayofmonth(19970323);
-dayofmonth("1997-01-02") dayofmonth(19970323)
-2 23
-select month("1997-01-02"),year("98-02-03"),dayofyear("1997-12-31");
-month("1997-01-02") year("98-02-03") dayofyear("1997-12-31")
-1 1998 365
-select month("2001-02-00"),year("2001-00-00");
-month("2001-02-00") year("2001-00-00")
-2 2001
-select DAYOFYEAR("1997-03-03"), WEEK("1998-03-03"), QUARTER(980303);
-DAYOFYEAR("1997-03-03") WEEK("1998-03-03") QUARTER(980303)
-62 9 1
-select HOUR("1997-03-03 23:03:22"), MINUTE("23:03:22"), SECOND(230322);
-HOUR("1997-03-03 23:03:22") MINUTE("23:03:22") SECOND(230322)
-23 3 22
-select TIME(230322), TIME(230322.33), TIME("230322.33");
-TIME(230322) TIME(230322.33) TIME("230322.33")
-23:03:22 23:03:22.33 23:03:22.33
-select week(19980101),week(19970101),week(19980101,1),week(19970101,1);
-week(19980101) week(19970101) week(19980101,1) week(19970101,1)
-0 0 1 1
-select week(19981231),week(19971231),week(19981231,1),week(19971231,1);
-week(19981231) week(19971231) week(19981231,1) week(19971231,1)
-52 52 53 53
-select week(19950101),week(19950101,1);
-week(19950101) week(19950101,1)
-1 0
-select yearweek('1981-12-31',1),yearweek('1982-01-01',1),yearweek('1982-12-31',1),yearweek('1983-01-01',1);
-yearweek('1981-12-31',1) yearweek('1982-01-01',1) yearweek('1982-12-31',1) yearweek('1983-01-01',1)
-198153 198153 198252 198252
-select yearweek('1987-01-01',1),yearweek('1987-01-01');
-yearweek('1987-01-01',1) yearweek('1987-01-01')
-198701 198652
-select week("2000-01-01",0) as '2000', week("2001-01-01",0) as '2001', week("2002-01-01",0) as '2002',week("2003-01-01",0) as '2003', week("2004-01-01",0) as '2004', week("2005-01-01",0) as '2005', week("2006-01-01",0) as '2006';
-2000 2001 2002 2003 2004 2005 2006
-0 0 0 0 0 0 1
-select week("2000-01-06",0) as '2000', week("2001-01-06",0) as '2001', week("2002-01-06",0) as '2002',week("2003-01-06",0) as '2003', week("2004-01-06",0) as '2004', week("2005-01-06",0) as '2005', week("2006-01-06",0) as '2006';
-2000 2001 2002 2003 2004 2005 2006
-1 0 1 1 1 1 1
-select week("2000-01-01",1) as '2000', week("2001-01-01",1) as '2001', week("2002-01-01",1) as '2002',week("2003-01-01",1) as '2003', week("2004-01-01",1) as '2004', week("2005-01-01",1) as '2005', week("2006-01-01",1) as '2006';
-2000 2001 2002 2003 2004 2005 2006
-0 1 1 1 1 0 0
-select week("2000-01-06",1) as '2000', week("2001-01-06",1) as '2001', week("2002-01-06",1) as '2002',week("2003-01-06",1) as '2003', week("2004-01-06",1) as '2004', week("2005-01-06",1) as '2005', week("2006-01-06",1) as '2006';
-2000 2001 2002 2003 2004 2005 2006
-1 1 1 2 2 1 1
-select yearweek("2000-01-01",0) as '2000', yearweek("2001-01-01",0) as '2001', yearweek("2002-01-01",0) as '2002',yearweek("2003-01-01",0) as '2003', yearweek("2004-01-01",0) as '2004', yearweek("2005-01-01",0) as '2005', yearweek("2006-01-01",0) as '2006';
-2000 2001 2002 2003 2004 2005 2006
-199952 200053 200152 200252 200352 200452 200601
-select yearweek("2000-01-06",0) as '2000', yearweek("2001-01-06",0) as '2001', yearweek("2002-01-06",0) as '2002',yearweek("2003-01-06",0) as '2003', yearweek("2004-01-06",0) as '2004', yearweek("2005-01-06",0) as '2005', yearweek("2006-01-06",0) as '2006';
-2000 2001 2002 2003 2004 2005 2006
-200001 200053 200201 200301 200401 200501 200601
-select yearweek("2000-01-01",1) as '2000', yearweek("2001-01-01",1) as '2001', yearweek("2002-01-01",1) as '2002',yearweek("2003-01-01",1) as '2003', yearweek("2004-01-01",1) as '2004', yearweek("2005-01-01",1) as '2005', yearweek("2006-01-01",1) as '2006';
-2000 2001 2002 2003 2004 2005 2006
-199952 200101 200201 200301 200401 200453 200552
-select yearweek("2000-01-06",1) as '2000', yearweek("2001-01-06",1) as '2001', yearweek("2002-01-06",1) as '2002',yearweek("2003-01-06",1) as '2003', yearweek("2004-01-06",1) as '2004', yearweek("2005-01-06",1) as '2005', yearweek("2006-01-06",1) as '2006';
-2000 2001 2002 2003 2004 2005 2006
-200001 200101 200201 200302 200402 200501 200601
-select week(19981231,2), week(19981231,3), week(20000101,2), week(20000101,3);
-week(19981231,2) week(19981231,3) week(20000101,2) week(20000101,3)
-52 53 52 52
-select week(20001231,2),week(20001231,3);
-week(20001231,2) week(20001231,3)
-53 52
-select week(19981231,0) as '0', week(19981231,1) as '1', week(19981231,2) as '2', week(19981231,3) as '3', week(19981231,4) as '4', week(19981231,5) as '5', week(19981231,6) as '6', week(19981231,7) as '7';
-0 1 2 3 4 5 6 7
-52 53 52 53 52 52 52 52
-select week(20000101,0) as '0', week(20000101,1) as '1', week(20000101,2) as '2', week(20000101,3) as '3', week(20000101,4) as '4', week(20000101,5) as '5', week(20000101,6) as '6', week(20000101,7) as '7';
-0 1 2 3 4 5 6 7
-0 0 52 52 0 0 52 52
-select week(20000106,0) as '0', week(20000106,1) as '1', week(20000106,2) as '2', week(20000106,3) as '3', week(20000106,4) as '4', week(20000106,5) as '5', week(20000106,6) as '6', week(20000106,7) as '7';
-0 1 2 3 4 5 6 7
-1 1 1 1 1 1 1 1
-select week(20001231,0) as '0', week(20001231,1) as '1', week(20001231,2) as '2', week(20001231,3) as '3', week(20001231,4) as '4', week(20001231,5) as '5', week(20001231,6) as '6', week(20001231,7) as '7';
-0 1 2 3 4 5 6 7
-53 52 53 52 53 52 1 52
-select week(20010101,0) as '0', week(20010101,1) as '1', week(20010101,2) as '2', week(20010101,3) as '3', week(20010101,4) as '4', week(20010101,5) as '5', week(20010101,6) as '6', week(20010101,7) as '7';
-0 1 2 3 4 5 6 7
-0 1 53 1 1 1 1 1
-select yearweek(20001231,0), yearweek(20001231,1), yearweek(20001231,2), yearweek(20001231,3), yearweek(20001231,4), yearweek(20001231,5), yearweek(20001231,6), yearweek(20001231,7);
-yearweek(20001231,0) yearweek(20001231,1) yearweek(20001231,2) yearweek(20001231,3) yearweek(20001231,4) yearweek(20001231,5) yearweek(20001231,6) yearweek(20001231,7)
-200053 200052 200053 200052 200101 200052 200101 200052
-set default_week_format = 6;
-select week(20001231), week(20001231,6);
-week(20001231) week(20001231,6)
-1 1
-set default_week_format = 0;
-set default_week_format = 2;
-select week(20001231),week(20001231,2),week(20001231,0);
-week(20001231) week(20001231,2) week(20001231,0)
-53 53 53
-set default_week_format = 0;
-select date_format('1998-12-31','%x-%v'),date_format('1999-01-01','%x-%v');
-date_format('1998-12-31','%x-%v') date_format('1999-01-01','%x-%v')
-1998-53 1998-53
-select date_format('1999-12-31','%x-%v'),date_format('2000-01-01','%x-%v');
-date_format('1999-12-31','%x-%v') date_format('2000-01-01','%x-%v')
-1999-52 1999-52
-select dayname("1962-03-03"),dayname("1962-03-03")+0;
-dayname("1962-03-03") dayname("1962-03-03")+0
-Saturday 5
-select monthname("1972-03-04"),monthname("1972-03-04")+0;
-monthname("1972-03-04") monthname("1972-03-04")+0
-March 0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'March'
-select time_format(000000,'%H|%I|%k|%l|%i|%p|%r|%S|%T'),date_format(19980131000000,'%H|%I|%k|%l|%i|%p|%r|%S|%T');
-time_format(000000,'%H|%I|%k|%l|%i|%p|%r|%S|%T') date_format(19980131000000,'%H|%I|%k|%l|%i|%p|%r|%S|%T')
-00|12|0|12|00|AM|12:00:00 AM|00|00:00:00 00|12|0|12|00|AM|12:00:00 AM|00|00:00:00
-select time_format(010203,'%H|%I|%k|%l|%i|%p|%r|%S|%T'),date_format(19980131010203,'%H|%I|%k|%l|%i|%p|%r|%S|%T');
-time_format(010203,'%H|%I|%k|%l|%i|%p|%r|%S|%T') date_format(19980131010203,'%H|%I|%k|%l|%i|%p|%r|%S|%T')
-01|01|1|1|02|AM|01:02:03 AM|03|01:02:03 01|01|1|1|02|AM|01:02:03 AM|03|01:02:03
-select time_format(131415,'%H|%I|%k|%l|%i|%p|%r|%S|%T'),date_format(19980131131415,'%H|%I|%k|%l|%i|%p|%r|%S|%T');
-time_format(131415,'%H|%I|%k|%l|%i|%p|%r|%S|%T') date_format(19980131131415,'%H|%I|%k|%l|%i|%p|%r|%S|%T')
-13|01|13|1|14|PM|01:14:15 PM|15|13:14:15 13|01|13|1|14|PM|01:14:15 PM|15|13:14:15
-select time_format(010015,'%H|%I|%k|%l|%i|%p|%r|%S|%T'),date_format(19980131010015,'%H|%I|%k|%l|%i|%p|%r|%S|%T');
-time_format(010015,'%H|%I|%k|%l|%i|%p|%r|%S|%T') date_format(19980131010015,'%H|%I|%k|%l|%i|%p|%r|%S|%T')
-01|01|1|1|00|AM|01:00:15 AM|15|01:00:15 01|01|1|1|00|AM|01:00:15 AM|15|01:00:15
-select date_format(concat('19980131',131415),'%H|%I|%k|%l|%i|%p|%r|%S|%T| %M|%W|%D|%Y|%y|%a|%b|%j|%m|%d|%h|%s|%w');
-date_format(concat('19980131',131415),'%H|%I|%k|%l|%i|%p|%r|%S|%T| %M|%W|%D|%Y|%y|%a|%b|%j|%m|%d|%h|%s|%w')
-13|01|13|1|14|PM|01:14:15 PM|15|13:14:15| January|Saturday|31st|1998|98|Sat|Jan|031|01|31|01|15|6
-select date_format(19980021000000,'%H|%I|%k|%l|%i|%p|%r|%S|%T| %M|%W|%D|%Y|%y|%a|%b|%j|%m|%d|%h|%s|%w');
-date_format(19980021000000,'%H|%I|%k|%l|%i|%p|%r|%S|%T| %M|%W|%D|%Y|%y|%a|%b|%j|%m|%d|%h|%s|%w')
-NULL
-select date_add("1997-12-31 23:59:59",INTERVAL 1 SECOND);
-date_add("1997-12-31 23:59:59",INTERVAL 1 SECOND)
-1998-01-01 00:00:00
-select date_add("1997-12-31 23:59:59",INTERVAL 1 MINUTE);
-date_add("1997-12-31 23:59:59",INTERVAL 1 MINUTE)
-1998-01-01 00:00:59
-select date_add("1997-12-31 23:59:59",INTERVAL 1 HOUR);
-date_add("1997-12-31 23:59:59",INTERVAL 1 HOUR)
-1998-01-01 00:59:59
-select date_add("1997-12-31 23:59:59",INTERVAL 1 DAY);
-date_add("1997-12-31 23:59:59",INTERVAL 1 DAY)
-1998-01-01 23:59:59
-select date_add("1997-12-31 23:59:59",INTERVAL 1 MONTH);
-date_add("1997-12-31 23:59:59",INTERVAL 1 MONTH)
-1998-01-31 23:59:59
-select date_add("1997-12-31 23:59:59",INTERVAL 1 YEAR);
-date_add("1997-12-31 23:59:59",INTERVAL 1 YEAR)
-1998-12-31 23:59:59
-select date_add("1997-12-31 23:59:59",INTERVAL "1:1" MINUTE_SECOND);
-date_add("1997-12-31 23:59:59",INTERVAL "1:1" MINUTE_SECOND)
-1998-01-01 00:01:00
-select date_add("1997-12-31 23:59:59",INTERVAL "1:1" HOUR_MINUTE);
-date_add("1997-12-31 23:59:59",INTERVAL "1:1" HOUR_MINUTE)
-1998-01-01 01:00:59
-select date_add("1997-12-31 23:59:59",INTERVAL "1:1" DAY_HOUR);
-date_add("1997-12-31 23:59:59",INTERVAL "1:1" DAY_HOUR)
-1998-01-02 00:59:59
-select date_add("1997-12-31 23:59:59",INTERVAL "1 1" YEAR_MONTH);
-date_add("1997-12-31 23:59:59",INTERVAL "1 1" YEAR_MONTH)
-1999-01-31 23:59:59
-select date_add("1997-12-31 23:59:59",INTERVAL "1:1:1" HOUR_SECOND);
-date_add("1997-12-31 23:59:59",INTERVAL "1:1:1" HOUR_SECOND)
-1998-01-01 01:01:00
-select date_add("1997-12-31 23:59:59",INTERVAL "1 1:1" DAY_MINUTE);
-date_add("1997-12-31 23:59:59",INTERVAL "1 1:1" DAY_MINUTE)
-1998-01-02 01:00:59
-select date_add("1997-12-31 23:59:59",INTERVAL "1 1:1:1" DAY_SECOND);
-date_add("1997-12-31 23:59:59",INTERVAL "1 1:1:1" DAY_SECOND)
-1998-01-02 01:01:00
-select date_sub("1998-01-01 00:00:00",INTERVAL 1 SECOND);
-date_sub("1998-01-01 00:00:00",INTERVAL 1 SECOND)
-1997-12-31 23:59:59
-select date_sub("1998-01-01 00:00:00",INTERVAL 1 MINUTE);
-date_sub("1998-01-01 00:00:00",INTERVAL 1 MINUTE)
-1997-12-31 23:59:00
-select date_sub("1998-01-01 00:00:00",INTERVAL 1 HOUR);
-date_sub("1998-01-01 00:00:00",INTERVAL 1 HOUR)
-1997-12-31 23:00:00
-select date_sub("1998-01-01 00:00:00",INTERVAL 1 DAY);
-date_sub("1998-01-01 00:00:00",INTERVAL 1 DAY)
-1997-12-31 00:00:00
-select date_sub("1998-01-01 00:00:00",INTERVAL 1 MONTH);
-date_sub("1998-01-01 00:00:00",INTERVAL 1 MONTH)
-1997-12-01 00:00:00
-select date_sub("1998-01-01 00:00:00",INTERVAL 1 YEAR);
-date_sub("1998-01-01 00:00:00",INTERVAL 1 YEAR)
-1997-01-01 00:00:00
-select date_sub("1998-01-01 00:00:00",INTERVAL "1:1" MINUTE_SECOND);
-date_sub("1998-01-01 00:00:00",INTERVAL "1:1" MINUTE_SECOND)
-1997-12-31 23:58:59
-select date_sub("1998-01-01 00:00:00",INTERVAL "1:1" HOUR_MINUTE);
-date_sub("1998-01-01 00:00:00",INTERVAL "1:1" HOUR_MINUTE)
-1997-12-31 22:59:00
-select date_sub("1998-01-01 00:00:00",INTERVAL "1:1" DAY_HOUR);
-date_sub("1998-01-01 00:00:00",INTERVAL "1:1" DAY_HOUR)
-1997-12-30 23:00:00
-select date_sub("1998-01-01 00:00:00",INTERVAL "1 1" YEAR_MONTH);
-date_sub("1998-01-01 00:00:00",INTERVAL "1 1" YEAR_MONTH)
-1996-12-01 00:00:00
-select date_sub("1998-01-01 00:00:00",INTERVAL "1:1:1" HOUR_SECOND);
-date_sub("1998-01-01 00:00:00",INTERVAL "1:1:1" HOUR_SECOND)
-1997-12-31 22:58:59
-select date_sub("1998-01-01 00:00:00",INTERVAL "1 1:1" DAY_MINUTE);
-date_sub("1998-01-01 00:00:00",INTERVAL "1 1:1" DAY_MINUTE)
-1997-12-30 22:59:00
-select date_sub("1998-01-01 00:00:00",INTERVAL "1 1:1:1" DAY_SECOND);
-date_sub("1998-01-01 00:00:00",INTERVAL "1 1:1:1" DAY_SECOND)
-1997-12-30 22:58:59
-select date_add("1997-12-31 23:59:59",INTERVAL 100000 SECOND);
-date_add("1997-12-31 23:59:59",INTERVAL 100000 SECOND)
-1998-01-02 03:46:39
-select date_add("1997-12-31 23:59:59",INTERVAL -100000 MINUTE);
-date_add("1997-12-31 23:59:59",INTERVAL -100000 MINUTE)
-1997-10-23 13:19:59
-select date_add("1997-12-31 23:59:59",INTERVAL 100000 HOUR);
-date_add("1997-12-31 23:59:59",INTERVAL 100000 HOUR)
-2009-05-29 15:59:59
-select date_add("1997-12-31 23:59:59",INTERVAL -100000 DAY);
-date_add("1997-12-31 23:59:59",INTERVAL -100000 DAY)
-1724-03-17 23:59:59
-select date_add("1997-12-31 23:59:59",INTERVAL 100000 MONTH);
-date_add("1997-12-31 23:59:59",INTERVAL 100000 MONTH)
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-select date_add("1997-12-31 23:59:59",INTERVAL -100000 YEAR);
-date_add("1997-12-31 23:59:59",INTERVAL -100000 YEAR)
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-select date_add("1997-12-31 23:59:59",INTERVAL "10000:1" MINUTE_SECOND);
-date_add("1997-12-31 23:59:59",INTERVAL "10000:1" MINUTE_SECOND)
-1998-01-07 22:40:00
-select date_add("1997-12-31 23:59:59",INTERVAL "-10000:1" HOUR_MINUTE);
-date_add("1997-12-31 23:59:59",INTERVAL "-10000:1" HOUR_MINUTE)
-1996-11-10 07:58:59
-select date_add("1997-12-31 23:59:59",INTERVAL "10000:1" DAY_HOUR);
-date_add("1997-12-31 23:59:59",INTERVAL "10000:1" DAY_HOUR)
-2025-05-19 00:59:59
-select date_add("1997-12-31 23:59:59",INTERVAL "-100 1" YEAR_MONTH);
-date_add("1997-12-31 23:59:59",INTERVAL "-100 1" YEAR_MONTH)
-1897-11-30 23:59:59
-select date_add("1997-12-31 23:59:59",INTERVAL "10000:99:99" HOUR_SECOND);
-date_add("1997-12-31 23:59:59",INTERVAL "10000:99:99" HOUR_SECOND)
-1999-02-21 17:40:38
-select date_add("1997-12-31 23:59:59",INTERVAL " -10000 99:99" DAY_MINUTE);
-date_add("1997-12-31 23:59:59",INTERVAL " -10000 99:99" DAY_MINUTE)
-1970-08-11 19:20:59
-select date_add("1997-12-31 23:59:59",INTERVAL "10000 99:99:99" DAY_SECOND);
-date_add("1997-12-31 23:59:59",INTERVAL "10000 99:99:99" DAY_SECOND)
-2025-05-23 04:40:38
-select "1997-12-31 23:59:59" + INTERVAL 1 SECOND;
-"1997-12-31 23:59:59" + INTERVAL 1 SECOND
-1998-01-01 00:00:00
-select INTERVAL 1 DAY + "1997-12-31";
-INTERVAL 1 DAY + "1997-12-31"
-1998-01-01
-select "1998-01-01 00:00:00" - INTERVAL 1 SECOND;
-"1998-01-01 00:00:00" - INTERVAL 1 SECOND
-1997-12-31 23:59:59
-select date_sub("1998-01-02",INTERVAL 31 DAY);
-date_sub("1998-01-02",INTERVAL 31 DAY)
-1997-12-02
-select date_add("1997-12-31",INTERVAL 1 SECOND);
-date_add("1997-12-31",INTERVAL 1 SECOND)
-1997-12-31 00:00:01
-select date_add("1997-12-31",INTERVAL 1 DAY);
-date_add("1997-12-31",INTERVAL 1 DAY)
-1998-01-01
-select date_add(NULL,INTERVAL 100000 SECOND);
-date_add(NULL,INTERVAL 100000 SECOND)
-NULL
-select date_add("1997-12-31 23:59:59",INTERVAL NULL SECOND);
-date_add("1997-12-31 23:59:59",INTERVAL NULL SECOND)
-NULL
-select date_add("1997-12-31 23:59:59",INTERVAL NULL MINUTE_SECOND);
-date_add("1997-12-31 23:59:59",INTERVAL NULL MINUTE_SECOND)
-NULL
-select date_add("9999-12-31 23:59:59",INTERVAL 1 SECOND);
-date_add("9999-12-31 23:59:59",INTERVAL 1 SECOND)
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-select date_sub("0000-00-00 00:00:00",INTERVAL 1 SECOND);
-date_sub("0000-00-00 00:00:00",INTERVAL 1 SECOND)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00'
-select date_add('1998-01-30',Interval 1 month);
-date_add('1998-01-30',Interval 1 month)
-1998-02-28
-select date_add('1998-01-30',Interval '2:1' year_month);
-date_add('1998-01-30',Interval '2:1' year_month)
-2000-02-29
-select date_add('1996-02-29',Interval '1' year);
-date_add('1996-02-29',Interval '1' year)
-1997-02-28
-select extract(YEAR FROM "1999-01-02 10:11:12");
-extract(YEAR FROM "1999-01-02 10:11:12")
-1999
-select extract(YEAR_MONTH FROM "1999-01-02");
-extract(YEAR_MONTH FROM "1999-01-02")
-199901
-select extract(DAY FROM "1999-01-02");
-extract(DAY FROM "1999-01-02")
-2
-select extract(DAY_HOUR FROM "1999-01-02 10:11:12");
-extract(DAY_HOUR FROM "1999-01-02 10:11:12")
-210
-select extract(DAY_MINUTE FROM "02 10:11:12");
-extract(DAY_MINUTE FROM "02 10:11:12")
-21011
-select extract(DAY_SECOND FROM "225 10:11:12");
-extract(DAY_SECOND FROM "225 10:11:12")
-34225959
-Warnings:
-Warning 1292 Truncated incorrect time value: '225 10:11:12'
-select extract(HOUR FROM "1999-01-02 10:11:12");
-extract(HOUR FROM "1999-01-02 10:11:12")
-10
-select extract(HOUR_MINUTE FROM "10:11:12");
-extract(HOUR_MINUTE FROM "10:11:12")
-1011
-select extract(HOUR_SECOND FROM "10:11:12");
-extract(HOUR_SECOND FROM "10:11:12")
-101112
-select extract(MINUTE FROM "10:11:12");
-extract(MINUTE FROM "10:11:12")
-11
-select extract(MINUTE_SECOND FROM "10:11:12");
-extract(MINUTE_SECOND FROM "10:11:12")
-1112
-select extract(SECOND FROM "1999-01-02 10:11:12");
-extract(SECOND FROM "1999-01-02 10:11:12")
-12
-select extract(MONTH FROM "2001-02-00");
-extract(MONTH FROM "2001-02-00")
-2
-SELECT EXTRACT(QUARTER FROM '2004-01-15') AS quarter;
-quarter
-1
-SELECT EXTRACT(QUARTER FROM '2004-02-15') AS quarter;
-quarter
-1
-SELECT EXTRACT(QUARTER FROM '2004-03-15') AS quarter;
-quarter
-1
-SELECT EXTRACT(QUARTER FROM '2004-04-15') AS quarter;
-quarter
-2
-SELECT EXTRACT(QUARTER FROM '2004-05-15') AS quarter;
-quarter
-2
-SELECT EXTRACT(QUARTER FROM '2004-06-15') AS quarter;
-quarter
-2
-SELECT EXTRACT(QUARTER FROM '2004-07-15') AS quarter;
-quarter
-3
-SELECT EXTRACT(QUARTER FROM '2004-08-15') AS quarter;
-quarter
-3
-SELECT EXTRACT(QUARTER FROM '2004-09-15') AS quarter;
-quarter
-3
-SELECT EXTRACT(QUARTER FROM '2004-10-15') AS quarter;
-quarter
-4
-SELECT EXTRACT(QUARTER FROM '2004-11-15') AS quarter;
-quarter
-4
-SELECT EXTRACT(QUARTER FROM '2004-12-15') AS quarter;
-quarter
-4
-SELECT DATE_SUB(str_to_date('9999-12-31 00:01:00','%Y-%m-%d %H:%i:%s'), INTERVAL 1 MINUTE);
-DATE_SUB(str_to_date('9999-12-31 00:01:00','%Y-%m-%d %H:%i:%s'), INTERVAL 1 MINUTE)
-9999-12-31 00:00:00
-SELECT DATE_ADD(str_to_date('9999-12-30 23:59:00','%Y-%m-%d %H:%i:%s'), INTERVAL 1 MINUTE);
-DATE_ADD(str_to_date('9999-12-30 23:59:00','%Y-%m-%d %H:%i:%s'), INTERVAL 1 MINUTE)
-9999-12-31 00:00:00
-SELECT "1900-01-01 00:00:00" + INTERVAL 2147483648 SECOND;
-"1900-01-01 00:00:00" + INTERVAL 2147483648 SECOND
-1968-01-20 03:14:08
-SELECT "1900-01-01 00:00:00" + INTERVAL "1:2147483647" MINUTE_SECOND;
-"1900-01-01 00:00:00" + INTERVAL "1:2147483647" MINUTE_SECOND
-1968-01-20 03:15:07
-SELECT "1900-01-01 00:00:00" + INTERVAL "100000000:214748364700" MINUTE_SECOND;
-"1900-01-01 00:00:00" + INTERVAL "100000000:214748364700" MINUTE_SECOND
-8895-03-27 22:11:40
-SELECT "1900-01-01 00:00:00" + INTERVAL 1<<37 SECOND;
-"1900-01-01 00:00:00" + INTERVAL 1<<37 SECOND
-6255-04-08 15:04:32
-SELECT "1900-01-01 00:00:00" + INTERVAL 1<<31 MINUTE;
-"1900-01-01 00:00:00" + INTERVAL 1<<31 MINUTE
-5983-01-24 02:08:00
-SELECT "1900-01-01 00:00:00" + INTERVAL 1<<20 HOUR;
-"1900-01-01 00:00:00" + INTERVAL 1<<20 HOUR
-2019-08-15 16:00:00
-SELECT "1900-01-01 00:00:00" + INTERVAL 1<<38 SECOND;
-"1900-01-01 00:00:00" + INTERVAL 1<<38 SECOND
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-SELECT "1900-01-01 00:00:00" + INTERVAL 1<<33 MINUTE;
-"1900-01-01 00:00:00" + INTERVAL 1<<33 MINUTE
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-SELECT "1900-01-01 00:00:00" + INTERVAL 1<<30 HOUR;
-"1900-01-01 00:00:00" + INTERVAL 1<<30 HOUR
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-SELECT "1900-01-01 00:00:00" + INTERVAL "1000000000:214748364700" MINUTE_SECOND;
-"1900-01-01 00:00:00" + INTERVAL "1000000000:214748364700" MINUTE_SECOND
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-create table t1 (ctime varchar(20));
-insert into t1 values ('2001-01-12 12:23:40');
-select ctime, hour(ctime) from t1;
-ctime hour(ctime)
-2001-01-12 12:23:40 12
-select ctime from t1 where extract(MONTH FROM ctime) = 1 AND extract(YEAR FROM ctime) = 2001;
-ctime
-2001-01-12 12:23:40
-drop table t1;
-create table t1 (id int);
-create table t2 (id int, date date);
-insert into t1 values (1);
-insert into t2 values (1, "0000-00-00");
-insert into t1 values (2);
-insert into t2 values (2, "2000-01-01");
-select monthname(date) from t1 inner join t2 on t1.id = t2.id;
-monthname(date)
-NULL
-January
-select monthname(date) from t1 inner join t2 on t1.id = t2.id order by t1.id;
-monthname(date)
-NULL
-January
-drop table t1,t2;
-CREATE TABLE t1 (updated text) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('');
-SELECT month(updated) from t1;
-month(updated)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT year(updated) from t1;
-year(updated)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-drop table t1;
-create table t1 (d date, dt datetime, t timestamp, c char(10));
-insert into t1 values ("0000-00-00", "0000-00-00", "0000-00-00", "0000-00-00");
-select dayofyear("0000-00-00"),dayofyear(d),dayofyear(dt),dayofyear(t),dayofyear(c) from t1;
-dayofyear("0000-00-00") dayofyear(d) dayofyear(dt) dayofyear(t) dayofyear(c)
-NULL NULL NULL NULL NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00'
-Warning 1292 Incorrect datetime value: '0000-00-00'
-select dayofmonth("0000-00-00"),dayofmonth(d),dayofmonth(dt),dayofmonth(t),dayofmonth(c) from t1;
-dayofmonth("0000-00-00") dayofmonth(d) dayofmonth(dt) dayofmonth(t) dayofmonth(c)
-0 0 0 0 0
-select month("0000-00-00"),month(d),month(dt),month(t),month(c) from t1;
-month("0000-00-00") month(d) month(dt) month(t) month(c)
-0 0 0 0 0
-select quarter("0000-00-00"),quarter(d),quarter(dt),quarter(t),quarter(c) from t1;
-quarter("0000-00-00") quarter(d) quarter(dt) quarter(t) quarter(c)
-0 0 0 0 0
-select week("0000-00-00"),week(d),week(dt),week(t),week(c) from t1;
-week("0000-00-00") week(d) week(dt) week(t) week(c)
-NULL NULL NULL NULL NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00'
-Warning 1292 Incorrect datetime value: '0000-00-00'
-select year("0000-00-00"),year(d),year(dt),year(t),year(c) from t1;
-year("0000-00-00") year(d) year(dt) year(t) year(c)
-0 0 0 0 0
-select yearweek("0000-00-00"),yearweek(d),yearweek(dt),yearweek(t),yearweek(c) from t1;
-yearweek("0000-00-00") yearweek(d) yearweek(dt) yearweek(t) yearweek(c)
-NULL NULL NULL NULL NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00'
-Warning 1292 Incorrect datetime value: '0000-00-00'
-select to_days("0000-00-00"),to_days(d),to_days(dt),to_days(t),to_days(c) from t1;
-to_days("0000-00-00") to_days(d) to_days(dt) to_days(t) to_days(c)
-NULL NULL NULL NULL NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00'
-Warning 1292 Incorrect datetime value: '0000-00-00'
-select extract(MONTH FROM "0000-00-00"),extract(MONTH FROM d),extract(MONTH FROM dt),extract(MONTH FROM t),extract(MONTH FROM c) from t1;
-extract(MONTH FROM "0000-00-00") extract(MONTH FROM d) extract(MONTH FROM dt) extract(MONTH FROM t) extract(MONTH FROM c)
-0 0 0 0 0
-drop table t1;
-CREATE TABLE t1 ( start datetime default NULL);
-INSERT INTO t1 VALUES ('2002-10-21 00:00:00'),('2002-10-28 00:00:00'),('2002-11-04 00:00:00');
-CREATE TABLE t2 ( ctime1 timestamp NOT NULL, ctime2 timestamp NOT NULL);
-INSERT INTO t2 VALUES (20021029165106,20021105164731);
-CREATE TABLE t3 (ctime1 char(19) NOT NULL, ctime2 char(19) NOT NULL);
-INSERT INTO t3 VALUES ("2002-10-29 16:51:06","2002-11-05 16:47:31");
-select * from t1, t2 where t1.start between t2.ctime1 and t2.ctime2;
-start ctime1 ctime2
-2002-11-04 00:00:00 2002-10-29 16:51:06 2002-11-05 16:47:31
-select * from t1, t2 where t1.start >= t2.ctime1 and t1.start <= t2.ctime2;
-start ctime1 ctime2
-2002-11-04 00:00:00 2002-10-29 16:51:06 2002-11-05 16:47:31
-select * from t1, t3 where t1.start between t3.ctime1 and t3.ctime2;
-start ctime1 ctime2
-2002-11-04 00:00:00 2002-10-29 16:51:06 2002-11-05 16:47:31
-drop table t1,t2,t3;
-select @a:=FROM_UNIXTIME(1);
-@a:=FROM_UNIXTIME(1)
-1970-01-01 03:00:01
-select unix_timestamp(@a);
-unix_timestamp(@a)
-1
-select unix_timestamp('1969-12-01 19:00:01');
-unix_timestamp('1969-12-01 19:00:01')
-NULL
-select from_unixtime(-1);
-from_unixtime(-1)
-NULL
-select from_unixtime(2147483647);
-from_unixtime(2147483647)
-2038-01-19 06:14:07
-select from_unixtime(2147483648);
-from_unixtime(2147483648)
-NULL
-select from_unixtime(0);
-from_unixtime(0)
-1970-01-01 03:00:00
-select unix_timestamp(from_unixtime(2147483647));
-unix_timestamp(from_unixtime(2147483647))
-2147483647
-select unix_timestamp(from_unixtime(2147483648));
-unix_timestamp(from_unixtime(2147483648))
-NULL
-select unix_timestamp('2039-01-20 01:00:00');
-unix_timestamp('2039-01-20 01:00:00')
-NULL
-select unix_timestamp('1968-01-20 01:00:00');
-unix_timestamp('1968-01-20 01:00:00')
-NULL
-select unix_timestamp('2038-02-10 01:00:00');
-unix_timestamp('2038-02-10 01:00:00')
-NULL
-select unix_timestamp('1969-11-20 01:00:00');
-unix_timestamp('1969-11-20 01:00:00')
-NULL
-select unix_timestamp('2038-01-20 01:00:00');
-unix_timestamp('2038-01-20 01:00:00')
-NULL
-select unix_timestamp('1969-12-30 01:00:00');
-unix_timestamp('1969-12-30 01:00:00')
-NULL
-select unix_timestamp('2038-01-17 12:00:00');
-unix_timestamp('2038-01-17 12:00:00')
-2147331600
-select unix_timestamp('1970-01-01 03:00:01');
-unix_timestamp('1970-01-01 03:00:01')
-1
-select unix_timestamp('2038-01-19 07:14:07');
-unix_timestamp('2038-01-19 07:14:07')
-NULL
-SELECT CHARSET(DAYNAME(19700101));
-CHARSET(DAYNAME(19700101))
-latin1
-SELECT CHARSET(MONTHNAME(19700101));
-CHARSET(MONTHNAME(19700101))
-latin1
-SELECT LOWER(DAYNAME(19700101));
-LOWER(DAYNAME(19700101))
-thursday
-SELECT LOWER(MONTHNAME(19700101));
-LOWER(MONTHNAME(19700101))
-january
-SELECT COERCIBILITY(MONTHNAME('1970-01-01')),COERCIBILITY(DAYNAME('1970-01-01'));
-COERCIBILITY(MONTHNAME('1970-01-01')) COERCIBILITY(DAYNAME('1970-01-01'))
-4 4
-CREATE TABLE t1 (datetime datetime, timestamp timestamp, date date, time time);
-INSERT INTO t1 values ("2001-01-02 03:04:05", "2002-01-02 03:04:05", "2003-01-02", "06:07:08");
-SELECT * from t1;
-datetime timestamp date time
-2001-01-02 03:04:05 2002-01-02 03:04:05 2003-01-02 06:07:08
-select date_add("1997-12-31",INTERVAL 1 SECOND);
-date_add("1997-12-31",INTERVAL 1 SECOND)
-1997-12-31 00:00:01
-select date_add("1997-12-31",INTERVAL "1 1" YEAR_MONTH);
-date_add("1997-12-31",INTERVAL "1 1" YEAR_MONTH)
-1999-01-31
-select date_add(datetime, INTERVAL 1 SECOND) from t1;
-date_add(datetime, INTERVAL 1 SECOND)
-2001-01-02 03:04:06
-select date_add(datetime, INTERVAL 1 YEAR) from t1;
-date_add(datetime, INTERVAL 1 YEAR)
-2002-01-02 03:04:05
-select date_add(date,INTERVAL 1 SECOND) from t1;
-date_add(date,INTERVAL 1 SECOND)
-2003-01-02 00:00:01
-select date_add(date,INTERVAL 1 MINUTE) from t1;
-date_add(date,INTERVAL 1 MINUTE)
-2003-01-02 00:01:00
-select date_add(date,INTERVAL 1 HOUR) from t1;
-date_add(date,INTERVAL 1 HOUR)
-2003-01-02 01:00:00
-select date_add(date,INTERVAL 1 DAY) from t1;
-date_add(date,INTERVAL 1 DAY)
-2003-01-03
-select date_add(date,INTERVAL 1 MONTH) from t1;
-date_add(date,INTERVAL 1 MONTH)
-2003-02-02
-select date_add(date,INTERVAL 1 YEAR) from t1;
-date_add(date,INTERVAL 1 YEAR)
-2004-01-02
-select date_add(date,INTERVAL "1:1" MINUTE_SECOND) from t1;
-date_add(date,INTERVAL "1:1" MINUTE_SECOND)
-2003-01-02 00:01:01
-select date_add(date,INTERVAL "1:1" HOUR_MINUTE) from t1;
-date_add(date,INTERVAL "1:1" HOUR_MINUTE)
-2003-01-02 01:01:00
-select date_add(date,INTERVAL "1:1" DAY_HOUR) from t1;
-date_add(date,INTERVAL "1:1" DAY_HOUR)
-2003-01-03 01:00:00
-select date_add(date,INTERVAL "1 1" YEAR_MONTH) from t1;
-date_add(date,INTERVAL "1 1" YEAR_MONTH)
-2004-02-02
-select date_add(date,INTERVAL "1:1:1" HOUR_SECOND) from t1;
-date_add(date,INTERVAL "1:1:1" HOUR_SECOND)
-2003-01-02 01:01:01
-select date_add(date,INTERVAL "1 1:1" DAY_MINUTE) from t1;
-date_add(date,INTERVAL "1 1:1" DAY_MINUTE)
-2003-01-03 01:01:00
-select date_add(date,INTERVAL "1 1:1:1" DAY_SECOND) from t1;
-date_add(date,INTERVAL "1 1:1:1" DAY_SECOND)
-2003-01-03 01:01:01
-select date_add(date,INTERVAL "1" WEEK) from t1;
-date_add(date,INTERVAL "1" WEEK)
-2003-01-09
-select date_add(date,INTERVAL "1" QUARTER) from t1;
-date_add(date,INTERVAL "1" QUARTER)
-2003-04-02
-select timestampadd(MINUTE, 1, date) from t1;
-timestampadd(MINUTE, 1, date)
-2003-01-02 00:01:00
-select timestampadd(WEEK, 1, date) from t1;
-timestampadd(WEEK, 1, date)
-2003-01-09
-select timestampadd(SQL_TSI_SECOND, 1, date) from t1;
-timestampadd(SQL_TSI_SECOND, 1, date)
-2003-01-02 00:00:01
-select timestampdiff(MONTH, '2001-02-01', '2001-05-01') as a;
-a
-3
-select timestampdiff(YEAR, '2002-05-01', '2001-01-01') as a;
-a
--1
-select timestampdiff(QUARTER, '2002-05-01', '2001-01-01') as a;
-a
--5
-select timestampdiff(MONTH, '2000-03-28', '2000-02-29') as a;
-a
-0
-select timestampdiff(MONTH, '1991-03-28', '2000-02-29') as a;
-a
-107
-select timestampdiff(SQL_TSI_WEEK, '2001-02-01', '2001-05-01') as a;
-a
-12
-select timestampdiff(SQL_TSI_HOUR, '2001-02-01', '2001-05-01') as a;
-a
-2136
-select timestampdiff(SQL_TSI_DAY, '2001-02-01', '2001-05-01') as a;
-a
-89
-select timestampdiff(SQL_TSI_MINUTE, '2001-02-01 12:59:59', '2001-05-01 12:58:59') as a;
-a
-128159
-select timestampdiff(SQL_TSI_SECOND, '2001-02-01 12:59:59', '2001-05-01 12:58:58') as a;
-a
-7689539
-select timestampdiff(SQL_TSI_DAY, '1986-02-01', '1986-03-01') as a1,
-timestampdiff(SQL_TSI_DAY, '1900-02-01', '1900-03-01') as a2,
-timestampdiff(SQL_TSI_DAY, '1996-02-01', '1996-03-01') as a3,
-timestampdiff(SQL_TSI_DAY, '2000-02-01', '2000-03-01') as a4;
-a1 a2 a3 a4
-28 28 29 29
-SELECT TIMESTAMPDIFF(day,'2006-01-10 14:30:28','2006-01-11 14:30:27');
-TIMESTAMPDIFF(day,'2006-01-10 14:30:28','2006-01-11 14:30:27')
-0
-SELECT TIMESTAMPDIFF(day,'2006-01-10 14:30:28','2006-01-11 14:30:28');
-TIMESTAMPDIFF(day,'2006-01-10 14:30:28','2006-01-11 14:30:28')
-1
-SELECT TIMESTAMPDIFF(day,'2006-01-10 14:30:28','2006-01-11 14:30:29');
-TIMESTAMPDIFF(day,'2006-01-10 14:30:28','2006-01-11 14:30:29')
-1
-SELECT TIMESTAMPDIFF(day,'2006-01-10 14:30:28','2006-01-12 14:30:27');
-TIMESTAMPDIFF(day,'2006-01-10 14:30:28','2006-01-12 14:30:27')
-1
-SELECT TIMESTAMPDIFF(day,'2006-01-10 14:30:28','2006-01-12 14:30:28');
-TIMESTAMPDIFF(day,'2006-01-10 14:30:28','2006-01-12 14:30:28')
-2
-SELECT TIMESTAMPDIFF(day,'2006-01-10 14:30:28','2006-01-12 14:30:29');
-TIMESTAMPDIFF(day,'2006-01-10 14:30:28','2006-01-12 14:30:29')
-2
-SELECT TIMESTAMPDIFF(week,'2006-01-10 14:30:28','2006-01-17 14:30:27');
-TIMESTAMPDIFF(week,'2006-01-10 14:30:28','2006-01-17 14:30:27')
-0
-SELECT TIMESTAMPDIFF(week,'2006-01-10 14:30:28','2006-01-17 14:30:28');
-TIMESTAMPDIFF(week,'2006-01-10 14:30:28','2006-01-17 14:30:28')
-1
-SELECT TIMESTAMPDIFF(week,'2006-01-10 14:30:28','2006-01-17 14:30:29');
-TIMESTAMPDIFF(week,'2006-01-10 14:30:28','2006-01-17 14:30:29')
-1
-SELECT TIMESTAMPDIFF(week,'2006-01-10 14:30:28','2006-01-24 14:30:27');
-TIMESTAMPDIFF(week,'2006-01-10 14:30:28','2006-01-24 14:30:27')
-1
-SELECT TIMESTAMPDIFF(week,'2006-01-10 14:30:28','2006-01-24 14:30:28');
-TIMESTAMPDIFF(week,'2006-01-10 14:30:28','2006-01-24 14:30:28')
-2
-SELECT TIMESTAMPDIFF(week,'2006-01-10 14:30:28','2006-01-24 14:30:29');
-TIMESTAMPDIFF(week,'2006-01-10 14:30:28','2006-01-24 14:30:29')
-2
-SELECT TIMESTAMPDIFF(month,'2006-01-10 14:30:28','2006-02-10 14:30:27');
-TIMESTAMPDIFF(month,'2006-01-10 14:30:28','2006-02-10 14:30:27')
-0
-SELECT TIMESTAMPDIFF(month,'2006-01-10 14:30:28','2006-02-10 14:30:28');
-TIMESTAMPDIFF(month,'2006-01-10 14:30:28','2006-02-10 14:30:28')
-1
-SELECT TIMESTAMPDIFF(month,'2006-01-10 14:30:28','2006-02-10 14:30:29');
-TIMESTAMPDIFF(month,'2006-01-10 14:30:28','2006-02-10 14:30:29')
-1
-SELECT TIMESTAMPDIFF(month,'2006-01-10 14:30:28','2006-03-10 14:30:27');
-TIMESTAMPDIFF(month,'2006-01-10 14:30:28','2006-03-10 14:30:27')
-1
-SELECT TIMESTAMPDIFF(month,'2006-01-10 14:30:28','2006-03-10 14:30:28');
-TIMESTAMPDIFF(month,'2006-01-10 14:30:28','2006-03-10 14:30:28')
-2
-SELECT TIMESTAMPDIFF(month,'2006-01-10 14:30:28','2006-03-10 14:30:29');
-TIMESTAMPDIFF(month,'2006-01-10 14:30:28','2006-03-10 14:30:29')
-2
-SELECT TIMESTAMPDIFF(year,'2006-01-10 14:30:28','2007-01-10 14:30:27');
-TIMESTAMPDIFF(year,'2006-01-10 14:30:28','2007-01-10 14:30:27')
-0
-SELECT TIMESTAMPDIFF(year,'2006-01-10 14:30:28','2007-01-10 14:30:28');
-TIMESTAMPDIFF(year,'2006-01-10 14:30:28','2007-01-10 14:30:28')
-1
-SELECT TIMESTAMPDIFF(year,'2006-01-10 14:30:28','2007-01-10 14:30:29');
-TIMESTAMPDIFF(year,'2006-01-10 14:30:28','2007-01-10 14:30:29')
-1
-SELECT TIMESTAMPDIFF(year,'2006-01-10 14:30:28','2008-01-10 14:30:27');
-TIMESTAMPDIFF(year,'2006-01-10 14:30:28','2008-01-10 14:30:27')
-1
-SELECT TIMESTAMPDIFF(year,'2006-01-10 14:30:28','2008-01-10 14:30:28');
-TIMESTAMPDIFF(year,'2006-01-10 14:30:28','2008-01-10 14:30:28')
-2
-SELECT TIMESTAMPDIFF(year,'2006-01-10 14:30:28','2008-01-10 14:30:29');
-TIMESTAMPDIFF(year,'2006-01-10 14:30:28','2008-01-10 14:30:29')
-2
-select date_add(time,INTERVAL 1 SECOND) from t1;
-date_add(time,INTERVAL 1 SECOND)
-06:07:09
-drop table t1;
-select last_day('2000-02-05') as f1, last_day('2002-12-31') as f2,
-last_day('2003-03-32') as f3, last_day('2003-04-01') as f4,
-last_day('2001-01-01 01:01:01') as f5, last_day(NULL),
-last_day('2001-02-12');
-f1 f2 f3 f4 f5 last_day(NULL) last_day('2001-02-12')
-2000-02-29 2002-12-31 NULL 2003-04-30 2001-01-31 NULL 2001-02-28
-Warnings:
-Warning 1292 Incorrect datetime value: '2003-03-32'
-create table t1 select last_day('2000-02-05') as a,
-from_days(to_days("960101")) as b;
-describe t1;
-Field Type Null Key Default Extra
-a date YES NULL
-b date YES NULL
-select * from t1;
-a b
-2000-02-29 1996-01-01
-drop table t1;
-select last_day('2000-02-05') as a,
-from_days(to_days("960101")) as b;
-a b
-2000-02-29 1996-01-01
-select date_add(last_day("1997-12-1"), INTERVAL 1 DAY);
-date_add(last_day("1997-12-1"), INTERVAL 1 DAY)
-1998-01-01
-select length(last_day("1997-12-1"));
-length(last_day("1997-12-1"))
-10
-select last_day("1997-12-1")+0;
-last_day("1997-12-1")+0
-19971231
-select last_day("1997-12-1")+0.0;
-last_day("1997-12-1")+0.0
-19971231.0
-select strcmp(date_sub(localtimestamp(), interval 3 hour), utc_timestamp())=0;
-strcmp(date_sub(localtimestamp(), interval 3 hour), utc_timestamp())=0
-1
-select strcmp(date_format(date_sub(localtimestamp(), interval 3 hour),"%T"), utc_time())=0;
-strcmp(date_format(date_sub(localtimestamp(), interval 3 hour),"%T"), utc_time())=0
-1
-select strcmp(date_format(date_sub(localtimestamp(), interval 3 hour),"%Y-%m-%d"), utc_date())=0;
-strcmp(date_format(date_sub(localtimestamp(), interval 3 hour),"%Y-%m-%d"), utc_date())=0
-1
-select strcmp(date_format(utc_timestamp(),"%T"), utc_time())=0;
-strcmp(date_format(utc_timestamp(),"%T"), utc_time())=0
-1
-select strcmp(date_format(utc_timestamp(),"%Y-%m-%d"), utc_date())=0;
-strcmp(date_format(utc_timestamp(),"%Y-%m-%d"), utc_date())=0
-1
-select strcmp(concat(utc_date(),' ',utc_time()),utc_timestamp())=0;
-strcmp(concat(utc_date(),' ',utc_time()),utc_timestamp())=0
-1
-explain extended select period_add("9602",-12),period_diff(199505,"9404"),from_days(to_days("960101")),dayofmonth("1997-01-02"), month("1997-01-02"), monthname("1972-03-04"),dayofyear("0000-00-00"),HOUR("1997-03-03 23:03:22"),MINUTE("23:03:22"),SECOND(230322),QUARTER(980303),WEEK("1998-03-03"),yearweek("2000-01-01",1),week(19950101,1),year("98-02-03"),weekday(curdate())-weekday(now()),dayname("1962-03-03"),unix_timestamp(),sec_to_time(time_to_sec("0:30:47")/6.21),curtime(),utc_time(),curdate(),utc_date(),utc_timestamp(),date_format("1997-01-02 03:04:05", "%M %W %D %Y %y %m %d %h %i %s %w"),from_unixtime(unix_timestamp("1994-03-02 10:11:12")),"1997-12-31 23:59:59" + INTERVAL 1 SECOND,"1998-01-01 00:00:00" - INTERVAL 1 SECOND,INTERVAL 1 DAY + "1997-12-31", extract(YEAR FROM "1999-01-02 10:11:12"),date_add("1997-12-31 23:59:59",INTERVAL 1 SECOND);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select period_add('9602',-12) AS `period_add("9602",-12)`,period_diff(199505,'9404') AS `period_diff(199505,"9404")`,from_days(to_days('960101')) AS `from_days(to_days("960101"))`,dayofmonth('1997-01-02') AS `dayofmonth("1997-01-02")`,month('1997-01-02') AS `month("1997-01-02")`,monthname('1972-03-04') AS `monthname("1972-03-04")`,dayofyear('0000-00-00') AS `dayofyear("0000-00-00")`,hour('1997-03-03 23:03:22') AS `HOUR("1997-03-03 23:03:22")`,minute('23:03:22') AS `MINUTE("23:03:22")`,second(230322) AS `SECOND(230322)`,quarter(980303) AS `QUARTER(980303)`,week('1998-03-03') AS `WEEK("1998-03-03")`,yearweek('2000-01-01',1) AS `yearweek("2000-01-01",1)`,week(19950101,1) AS `week(19950101,1)`,year('98-02-03') AS `year("98-02-03")`,weekday(curdate()) - weekday(current_timestamp()) AS `weekday(curdate())-weekday(now())`,dayname('1962-03-03') AS `dayname("1962-03-03")`,unix_timestamp() AS `unix_timestamp()`,sec_to_time(time_to_sec('0:30:47') / 6.21) AS `sec_to_time(time_to_sec("0:30:47")/6.21)`,curtime() AS `curtime()`,utc_time() AS `utc_time()`,curdate() AS `curdate()`,utc_date() AS `utc_date()`,utc_timestamp() AS `utc_timestamp()`,date_format('1997-01-02 03:04:05','%M %W %D %Y %y %m %d %h %i %s %w') AS `date_format("1997-01-02 03:04:05", "%M %W %D %Y %y %m %d %h %i %s %w")`,from_unixtime(unix_timestamp('1994-03-02 10:11:12')) AS `from_unixtime(unix_timestamp("1994-03-02 10:11:12"))`,'1997-12-31 23:59:59' + interval 1 second AS `"1997-12-31 23:59:59" + INTERVAL 1 SECOND`,'1998-01-01 00:00:00' - interval 1 second AS `"1998-01-01 00:00:00" - INTERVAL 1 SECOND`,'1997-12-31' + interval 1 day AS `INTERVAL 1 DAY + "1997-12-31"`,extract(year from '1999-01-02 10:11:12') AS `extract(YEAR FROM "1999-01-02 10:11:12")`,'1997-12-31 23:59:59' + interval 1 second AS `date_add("1997-12-31 23:59:59",INTERVAL 1 SECOND)`
-SET @TMP='2007-08-01 12:22:49';
-CREATE TABLE t1 (d DATETIME);
-INSERT INTO t1 VALUES ('2007-08-01 12:22:59');
-INSERT INTO t1 VALUES ('2007-08-01 12:23:01');
-INSERT INTO t1 VALUES ('2007-08-01 12:23:20');
-SELECT count(*) FROM t1 WHERE d>FROM_DAYS(TO_DAYS(@TMP)) AND d<=FROM_DAYS(TO_DAYS(@TMP)+1);
-count(*)
-3
-DROP TABLE t1;
-select last_day('2005-00-00');
-last_day('2005-00-00')
-NULL
-select last_day('2005-00-01');
-last_day('2005-00-01')
-NULL
-select last_day('2005-01-00');
-last_day('2005-01-00')
-2005-01-31
-select monthname(str_to_date(null, '%m')), monthname(str_to_date(null, '%m')),
-monthname(str_to_date(1, '%m')), monthname(str_to_date(0, '%m'));
-monthname(str_to_date(null, '%m')) monthname(str_to_date(null, '%m')) monthname(str_to_date(1, '%m')) monthname(str_to_date(0, '%m'))
-NULL NULL January NULL
-set time_zone='-6:00';
-create table t1(a timestamp);
-insert into t1 values (19691231190001);
-select * from t1;
-a
-1969-12-31 19:00:01
-drop table t1;
-create table t1(f1 date, f2 time, f3 datetime);
-insert into t1 values ("2006-01-01", "12:01:01", "2006-01-01 12:01:01");
-insert into t1 values ("2006-01-02", "12:01:02", "2006-01-02 12:01:02");
-select f1 from t1 where f1 between CAST("2006-1-1" as date) and CAST(20060101 as date);
-f1
-2006-01-01
-select f1 from t1 where f1 between cast("2006-1-1" as date) and cast("2006.1.1" as date);
-f1
-2006-01-01
-select f1 from t1 where date(f1) between cast("2006-1-1" as date) and cast("2006.1.1" as date);
-f1
-2006-01-01
-select f2 from t1 where f2 between cast("12:1:2" as time) and cast("12:2:2" as time);
-f2
-12:01:02
-select f2 from t1 where time(f2) between cast("12:1:2" as time) and cast("12:2:2" as time);
-f2
-12:01:02
-select f3 from t1 where f3 between cast("2006-1-1 12:1:1" as datetime) and cast("2006-1-1 12:1:2" as datetime);
-f3
-2006-01-01 12:01:01
-select f3 from t1 where timestamp(f3) between cast("2006-1-1 12:1:1" as datetime) and cast("2006-1-1 12:1:2" as datetime);
-f3
-2006-01-01 12:01:01
-select f1 from t1 where cast("2006-1-1" as date) between f1 and f3;
-f1
-2006-01-01
-select f1 from t1 where cast("2006-1-1" as date) between date(f1) and date(f3);
-f1
-2006-01-01
-select f1 from t1 where cast("2006-1-1" as date) between f1 and cast('zzz' as date);
-f1
-Warnings:
-Warning 1292 Incorrect datetime value: 'zzz'
-select f1 from t1 where makedate(2006,1) between date(f1) and date(f3);
-f1
-2006-01-01
-select f1 from t1 where makedate(2006,2) between date(f1) and date(f3);
-f1
-2006-01-02
-drop table t1;
-create table t1 select now() - now(), curtime() - curtime(),
-sec_to_time(1) + 0, from_unixtime(1) + 0;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `now() - now()` bigint(16) NOT NULL,
- `curtime() - curtime()` int(9) NOT NULL,
- `sec_to_time(1) + 0` int(9) DEFAULT NULL,
- `from_unixtime(1) + 0` bigint(16) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-SELECT SEC_TO_TIME(3300000);
-SEC_TO_TIME(3300000)
-838:59:59
-Warnings:
-Warning 1292 Truncated incorrect time value: '3300000'
-SELECT SEC_TO_TIME(3300000)+0;
-SEC_TO_TIME(3300000)+0
-8385959
-Warnings:
-Warning 1292 Truncated incorrect time value: '3300000'
-SELECT SEC_TO_TIME(3600 * 4294967296);
-SEC_TO_TIME(3600 * 4294967296)
-838:59:59
-Warnings:
-Warning 1292 Truncated incorrect time value: '15461882265600'
-SELECT TIME_TO_SEC('916:40:00');
-TIME_TO_SEC('916:40:00')
-3020399
-Warnings:
-Warning 1292 Truncated incorrect time value: '916:40:00'
-SELECT ADDTIME('500:00:00', '416:40:00');
-ADDTIME('500:00:00', '416:40:00')
-838:59:59.999999
-Warnings:
-Warning 1292 Truncated incorrect time value: '916:40:00'
-SELECT ADDTIME('916:40:00', '416:40:00');
-ADDTIME('916:40:00', '416:40:00')
-838:59:59.999999
-Warnings:
-Warning 1292 Truncated incorrect time value: '916:40:00'
-Warning 1292 Truncated incorrect time value: '1255:39:59.999999'
-SELECT SUBTIME('916:40:00', '416:40:00');
-SUBTIME('916:40:00', '416:40:00')
-422:19:59.999999
-Warnings:
-Warning 1292 Truncated incorrect time value: '916:40:00'
-SELECT SUBTIME('-916:40:00', '416:40:00');
-SUBTIME('-916:40:00', '416:40:00')
--838:59:59.999999
-Warnings:
-Warning 1292 Truncated incorrect time value: '-916:40:00'
-Warning 1292 Truncated incorrect time value: '-1255:39:59.999999'
-SELECT MAKETIME(916,0,0);
-MAKETIME(916,0,0)
-838:59:59
-Warnings:
-Warning 1292 Truncated incorrect time value: '916:00:00'
-SELECT MAKETIME(4294967296, 0, 0);
-MAKETIME(4294967296, 0, 0)
-838:59:59
-Warnings:
-Warning 1292 Truncated incorrect time value: '4294967296:00:00'
-SELECT MAKETIME(-4294967296, 0, 0);
-MAKETIME(-4294967296, 0, 0)
--838:59:59
-Warnings:
-Warning 1292 Truncated incorrect time value: '-4294967296:00:00'
-SELECT MAKETIME(0, 4294967296, 0);
-MAKETIME(0, 4294967296, 0)
-NULL
-SELECT MAKETIME(0, 0, 4294967296);
-MAKETIME(0, 0, 4294967296)
-NULL
-SELECT MAKETIME(CAST(-1 AS UNSIGNED), 0, 0);
-MAKETIME(CAST(-1 AS UNSIGNED), 0, 0)
-838:59:59
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-Warning 1292 Truncated incorrect time value: '18446744073709551615:00:00'
-SELECT EXTRACT(HOUR FROM '10000:02:03');
-EXTRACT(HOUR FROM '10000:02:03')
-22
-Warnings:
-Warning 1292 Truncated incorrect time value: '10000:02:03'
-CREATE TABLE t1(f1 TIME);
-INSERT IGNORE INTO t1 VALUES('916:00:00 a');
-Warnings:
-Warning 1265 Data truncated for column 'f1' at row 1
-Warning 1264 Out of range value for column 'f1' at row 1
-SELECT * FROM t1;
-f1
-838:59:59
-DROP TABLE t1;
-SELECT SEC_TO_TIME(CAST(-1 AS UNSIGNED));
-SEC_TO_TIME(CAST(-1 AS UNSIGNED))
-838:59:59
-Warnings:
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-Note 1105 Cast to unsigned converted negative integer to it's positive complement
-Warning 1292 Truncated incorrect time value: '18446744073709551615'
-SET NAMES latin1;
-SET character_set_results = NULL;
-SHOW VARIABLES LIKE 'character_set_results';
-Variable_name Value
-character_set_results
-CREATE TABLE testBug8868 (field1 DATE, field2 VARCHAR(32) CHARACTER SET BINARY);
-INSERT INTO testBug8868 VALUES ('2006-09-04', 'abcd');
-SELECT DATE_FORMAT(field1,'%b-%e %l:%i%p') as fmtddate, field2 FROM testBug8868;
-fmtddate field2
-Sep-4 12:00AM abcd
-DROP TABLE testBug8868;
-SET NAMES DEFAULT;
-CREATE TABLE t1 (
-a TIMESTAMP
-);
-INSERT INTO t1 VALUES (now()), (now());
-SELECT 1 FROM t1 ORDER BY MAKETIME(1, 1, a);
-1
-1
-1
-DROP TABLE t1;
-(select time_format(timediff(now(), DATE_SUB(now(),INTERVAL 5 DAY)),'%H') As H)
-union
-(select time_format(timediff(now(), DATE_SUB(now(),INTERVAL 5 DAY)),'%H') As H);
-H
-120
-(select time_format(timediff(now(), DATE_SUB(now(),INTERVAL 5 DAY)),'%k') As H)
-union
-(select time_format(timediff(now(), DATE_SUB(now(),INTERVAL 5 DAY)),'%k') As H);
-H
-120
-(select time_format(timediff(now(), DATE_SUB(now(),INTERVAL 5 HOUR)),'%H') As H)
-union
-(select time_format(timediff(now(), DATE_SUB(now(),INTERVAL 5 HOUR)),'%H') As H);
-H
-05
-(select time_format(timediff(now(), DATE_SUB(now(),INTERVAL 5 HOUR)),'%k') As H)
-union
-(select time_format(timediff(now(), DATE_SUB(now(),INTERVAL 5 HOUR)),'%k') As H);
-H
-5
-select last_day('0000-00-00');
-last_day('0000-00-00')
-NULL
-select isnull(week(now() + 0)), isnull(week(now() + 0.2)),
-week(20061108), week(20061108.01), week(20061108085411.000002);
-isnull(week(now() + 0)) isnull(week(now() + 0.2)) week(20061108) week(20061108.01) week(20061108085411.000002)
-0 0 45 45 45
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '20061108.01'
-End of 4.1 tests
-select time_format('100:00:00', '%H %k %h %I %l');
-time_format('100:00:00', '%H %k %h %I %l')
-100 100 04 04 4
-SET @old_log_bin_trust_function_creators= @@global.log_bin_trust_function_creators;
-SET GLOBAL log_bin_trust_function_creators = 1;
-create table t1 (a timestamp default '2005-05-05 01:01:01',
-b timestamp default '2005-05-05 01:01:01');
-drop function if exists t_slow_sysdate;
-create function t_slow_sysdate() returns timestamp
-begin
-do sleep(2);
-return sysdate();
-end;
-//
-insert into t1 set a = sysdate(), b = t_slow_sysdate();//
-create trigger t_before before insert on t1
-for each row begin
-set new.b = t_slow_sysdate();
-end
-//
-insert into t1 set a = sysdate();
-select a != b from t1;
-a != b
-1
-1
-drop trigger t_before;
-drop function t_slow_sysdate;
-drop table t1;
-SET GLOBAL log_bin_trust_function_creators = 0;
-create table t1 (a datetime, i int, b datetime);
-insert into t1 select sysdate(), sleep(2), sysdate() from dual;
-select a != b from t1;
-a != b
-1
-drop table t1;
-create procedure t_sysdate()
-begin
-select sysdate() into @a;
-do sleep(2);
-select sysdate() into @b;
-select @a != @b;
-end;
-//
-call t_sysdate();
-@a != @b
-1
-drop procedure t_sysdate;
-SET @@global.log_bin_trust_function_creators= @old_log_bin_trust_function_creators;
-select timestampdiff(month,'2004-09-11','2004-09-11');
-timestampdiff(month,'2004-09-11','2004-09-11')
-0
-select timestampdiff(month,'2004-09-11','2005-09-11');
-timestampdiff(month,'2004-09-11','2005-09-11')
-12
-select timestampdiff(month,'2004-09-11','2006-09-11');
-timestampdiff(month,'2004-09-11','2006-09-11')
-24
-select timestampdiff(month,'2004-09-11','2007-09-11');
-timestampdiff(month,'2004-09-11','2007-09-11')
-36
-select timestampdiff(month,'2005-09-11','2004-09-11');
-timestampdiff(month,'2005-09-11','2004-09-11')
--12
-select timestampdiff(month,'2005-09-11','2003-09-11');
-timestampdiff(month,'2005-09-11','2003-09-11')
--24
-select timestampdiff(month,'2004-02-28','2005-02-28');
-timestampdiff(month,'2004-02-28','2005-02-28')
-12
-select timestampdiff(month,'2004-02-29','2005-02-28');
-timestampdiff(month,'2004-02-29','2005-02-28')
-11
-select timestampdiff(month,'2004-02-28','2005-02-28');
-timestampdiff(month,'2004-02-28','2005-02-28')
-12
-select timestampdiff(month,'2004-03-29','2005-03-28');
-timestampdiff(month,'2004-03-29','2005-03-28')
-11
-select timestampdiff(month,'2003-02-28','2004-02-29');
-timestampdiff(month,'2003-02-28','2004-02-29')
-12
-select timestampdiff(month,'2003-02-28','2005-02-28');
-timestampdiff(month,'2003-02-28','2005-02-28')
-24
-select timestampdiff(month,'1999-09-11','2001-10-10');
-timestampdiff(month,'1999-09-11','2001-10-10')
-24
-select timestampdiff(month,'1999-09-11','2001-9-11');
-timestampdiff(month,'1999-09-11','2001-9-11')
-24
-select timestampdiff(year,'1999-09-11','2001-9-11');
-timestampdiff(year,'1999-09-11','2001-9-11')
-2
-select timestampdiff(year,'2004-02-28','2005-02-28');
-timestampdiff(year,'2004-02-28','2005-02-28')
-1
-select timestampdiff(year,'2004-02-29','2005-02-28');
-timestampdiff(year,'2004-02-29','2005-02-28')
-0
-CREATE TABLE t1 (id int NOT NULL PRIMARY KEY, day date);
-CREATE TABLE t2 (id int NOT NULL PRIMARY KEY, day date);
-INSERT INTO t1 VALUES
-(1, '2005-06-01'), (2, '2005-02-01'), (3, '2005-07-01');
-INSERT INTO t2 VALUES
-(1, '2005-08-01'), (2, '2005-06-15'), (3, '2005-07-15');
-SELECT * FROM t1, t2
-WHERE t1.day BETWEEN
-'2005.09.01' - INTERVAL 6 MONTH AND t2.day;
-id day id day
-1 2005-06-01 1 2005-08-01
-3 2005-07-01 1 2005-08-01
-1 2005-06-01 2 2005-06-15
-1 2005-06-01 3 2005-07-15
-3 2005-07-01 3 2005-07-15
-SELECT * FROM t1, t2
-WHERE CAST(t1.day AS DATE) BETWEEN
-'2005.09.01' - INTERVAL 6 MONTH AND t2.day;
-id day id day
-1 2005-06-01 1 2005-08-01
-3 2005-07-01 1 2005-08-01
-1 2005-06-01 2 2005-06-15
-1 2005-06-01 3 2005-07-15
-3 2005-07-01 3 2005-07-15
-DROP TABLE t1,t2;
-set time_zone= @@global.time_zone;
-select str_to_date('10:00 PM', '%h:%i %p') + INTERVAL 10 MINUTE;
-str_to_date('10:00 PM', '%h:%i %p') + INTERVAL 10 MINUTE
-22:10:00
-select str_to_date("1997-00-04 22:23:00","%Y-%m-%D") + interval 10 minute;
-str_to_date("1997-00-04 22:23:00","%Y-%m-%D") + interval 10 minute
-NULL
-Warnings:
-Warning 1292 Truncated incorrect date value: '1997-00-04 22:23:00'
-Warning 1292 Incorrect datetime value: '1997-00-04'
-create table t1 (field DATE);
-insert into t1 values ('2006-11-06');
-select * from t1 where field < '2006-11-06 04:08:36.0';
-field
-2006-11-06
-select * from t1 where field = '2006-11-06 04:08:36.0';
-field
-select * from t1 where field = '2006-11-06';
-field
-2006-11-06
-select * from t1 where CAST(field as DATETIME) < '2006-11-06 04:08:36.0';
-field
-2006-11-06
-select * from t1 where CAST(field as DATE) < '2006-11-06 04:08:36.0';
-field
-2006-11-06
-drop table t1;
-CREATE TABLE t1 (a int, t1 time, t2 time, d date, PRIMARY KEY (a));
-INSERT INTO t1 VALUES (1, '10:00:00', NULL, NULL),
-(2, '11:00:00', '11:15:00', '1972-02-06');
-SELECT t1, t2, SEC_TO_TIME( TIME_TO_SEC( t2 ) - TIME_TO_SEC( t1 ) ), QUARTER(d)
-FROM t1;
-t1 t2 SEC_TO_TIME( TIME_TO_SEC( t2 ) - TIME_TO_SEC( t1 ) ) QUARTER(d)
-10:00:00 NULL NULL NULL
-11:00:00 11:15:00 00:15:00 1
-SELECT t1, t2, SEC_TO_TIME( TIME_TO_SEC( t2 ) - TIME_TO_SEC( t1 ) ), QUARTER(d)
-FROM t1 ORDER BY a DESC;
-t1 t2 SEC_TO_TIME( TIME_TO_SEC( t2 ) - TIME_TO_SEC( t1 ) ) QUARTER(d)
-11:00:00 11:15:00 00:15:00 1
-10:00:00 NULL NULL NULL
-DROP TABLE t1;
-SELECT TIME_FORMAT(SEC_TO_TIME(a),"%H:%i:%s") FROM (SELECT 3020399 AS a UNION SELECT 3020398 ) x GROUP BY 1;
-TIME_FORMAT(SEC_TO_TIME(a),"%H:%i:%s")
-838:59:58
-838:59:59
-set names latin1;
-create table t1 (a varchar(15) character set ascii not null);
-insert into t1 values ('070514-000000');
-select concat(a,ifnull(min(date_format(now(), '%Y-%m-%d')),' ull')) from t1;
-concat(a,ifnull(min(date_format(now(), '%Y-%m-%d')),' ull'))
-#
-set names swe7;
-select concat(a,ifnull(min(date_format(now(), '%Y-%m-%d')),' ull')) from t1;
-ERROR HY000: Illegal mix of collations (ascii_general_ci,IMPLICIT) and (swe7_swedish_ci,COERCIBLE) for operation 'concat'
-set names latin1;
-set lc_time_names=fr_FR;
-select concat(a,ifnull(min(date_format(now(), '%Y-%m-%d')),' ull')) from t1;
-ERROR HY000: Illegal mix of collations (ascii_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation 'concat'
-set lc_time_names=en_US;
-drop table t1;
-select DATE_ADD('20071108181000', INTERVAL 1 DAY);
-DATE_ADD('20071108181000', INTERVAL 1 DAY)
-2007-11-09 18:10:00
-select DATE_ADD(20071108181000, INTERVAL 1 DAY);
-DATE_ADD(20071108181000, INTERVAL 1 DAY)
-2007-11-09 18:10:00
-select DATE_ADD('20071108', INTERVAL 1 DAY);
-DATE_ADD('20071108', INTERVAL 1 DAY)
-2007-11-09
-select DATE_ADD(20071108, INTERVAL 1 DAY);
-DATE_ADD(20071108, INTERVAL 1 DAY)
-2007-11-09
-select LAST_DAY('2007-12-06 08:59:19.05') - INTERVAL 1 SECOND;
-LAST_DAY('2007-12-06 08:59:19.05') - INTERVAL 1 SECOND
-2007-12-30 23:59:59
-select date_add('1000-01-01 00:00:00', interval '1.03:02:01.05' day_microsecond);
-date_add('1000-01-01 00:00:00', interval '1.03:02:01.05' day_microsecond)
-1000-01-02 03:02:01.050000
-select date_add('1000-01-01 00:00:00', interval '1.02' day_microsecond);
-date_add('1000-01-01 00:00:00', interval '1.02' day_microsecond)
-1000-01-01 00:00:01.020000
-#
-# Bug #52315 part 2 : utc_date() crashes when system time > year 2037
-#
-SET TIMESTAMP=-147490000;
-SELECT UTC_TIMESTAMP();
-SET TIMESTAMP=2147483648;
-SELECT UTC_TIMESTAMP();
-SET TIMESTAMP=2147483646;
-SELECT UTC_TIMESTAMP();
-SET TIMESTAMP=2147483647;
-SELECT UTC_TIMESTAMP();
-SET TIMESTAMP=0;
-SELECT UTC_TIMESTAMP();
-SET TIMESTAMP=-1;
-SELECT UTC_TIMESTAMP();
-SET TIMESTAMP=1;
-SELECT UTC_TIMESTAMP();
-SET TIMESTAMP=0;
-End of 5.0 tests
-select date_sub("0050-01-01 00:00:01",INTERVAL 2 SECOND);
-date_sub("0050-01-01 00:00:01",INTERVAL 2 SECOND)
-0049-12-31 23:59:59
-select date_sub("0199-01-01 00:00:01",INTERVAL 2 SECOND);
-date_sub("0199-01-01 00:00:01",INTERVAL 2 SECOND)
-0198-12-31 23:59:59
-select date_add("0199-12-31 23:59:59",INTERVAL 2 SECOND);
-date_add("0199-12-31 23:59:59",INTERVAL 2 SECOND)
-0200-01-01 00:00:01
-select date_sub("0200-01-01 00:00:01",INTERVAL 2 SECOND);
-date_sub("0200-01-01 00:00:01",INTERVAL 2 SECOND)
-0199-12-31 23:59:59
-select date_sub("0200-01-01 00:00:01",INTERVAL 1 SECOND);
-date_sub("0200-01-01 00:00:01",INTERVAL 1 SECOND)
-0200-01-01 00:00:00
-select date_sub("0200-01-01 00:00:01",INTERVAL 2 SECOND);
-date_sub("0200-01-01 00:00:01",INTERVAL 2 SECOND)
-0199-12-31 23:59:59
-select date_add("2001-01-01 23:59:59",INTERVAL -2000 YEAR);
-date_add("2001-01-01 23:59:59",INTERVAL -2000 YEAR)
-0001-01-01 23:59:59
-select date_sub("50-01-01 00:00:01",INTERVAL 2 SECOND);
-date_sub("50-01-01 00:00:01",INTERVAL 2 SECOND)
-2049-12-31 23:59:59
-select date_sub("90-01-01 00:00:01",INTERVAL 2 SECOND);
-date_sub("90-01-01 00:00:01",INTERVAL 2 SECOND)
-1989-12-31 23:59:59
-select date_sub("0069-01-01 00:00:01",INTERVAL 2 SECOND);
-date_sub("0069-01-01 00:00:01",INTERVAL 2 SECOND)
-0068-12-31 23:59:59
-select date_sub("0169-01-01 00:00:01",INTERVAL 2 SECOND);
-date_sub("0169-01-01 00:00:01",INTERVAL 2 SECOND)
-0168-12-31 23:59:59
-CREATE TABLE t1(a DOUBLE NOT NULL);
-INSERT INTO t1 VALUES (0),(9.216e-096);
-# should not crash
-SELECT 1 FROM t1 ORDER BY @x:=makedate(a,a);
-1
-1
-1
-DROP TABLE t1;
-#
-# Bug #52160: crash and inconsistent results when grouping
-# by a function and column
-#
-CREATE TABLE t1(a CHAR(10) NOT NULL);
-INSERT INTO t1 VALUES (''),('');
-SELECT COUNT(*) FROM t1 GROUP BY TIME_TO_SEC(a);
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect time value: ''
-Warning 1292 Truncated incorrect time value: ''
-Warning 1292 Truncated incorrect time value: ''
-DROP TABLE t1;
-#
-# Bug#11766112 59151:UNINITIALIZED VALUES IN EXTRACT_DATE_TIME WITH STR_TO_DATE(SPACE(..) ...
-#
-SELECT STR_TO_DATE(SPACE(2),'1');
-STR_TO_DATE(SPACE(2),'1')
-0000-00-00
-#
-# Bug#11765216 58154: UNINITIALIZED VARIABLE FORMAT IN STR_TO_DATE FUNCTION
-#
-SET GLOBAL SQL_MODE='';
-DO STR_TO_DATE((''), FROM_DAYS(@@GLOBAL.SQL_MODE));
-SET GLOBAL SQL_MODE=DEFAULT;
-#
-# Bug#11766087 59125: VALGRIND UNINITIALISED VALUE WARNING IN ULL2DEC, LONGLONG2DECIMAL
-#
-SELECT FORMAT(YEAR(STR_TO_DATE('',GET_FORMAT(TIME,''))),1);
-FORMAT(YEAR(STR_TO_DATE('',GET_FORMAT(TIME,''))),1)
-NULL
-#
-# Bug#11766126 59166: ANOTHER DATETIME VALGRIND UNINITIALIZED WARNING
-#
-SELECT CAST((MONTH(FROM_UNIXTIME(@@GLOBAL.SQL_MODE))) AS BINARY(1025));
-#
-# Bug#11766124 59164: VALGRIND: UNINITIALIZED VALUE IN NUMBER_TO_DATETIME
-#
-SELECT ADDDATE(MONTH(FROM_UNIXTIME(NULL)),INTERVAL 1 HOUR);
-ADDDATE(MONTH(FROM_UNIXTIME(NULL)),INTERVAL 1 HOUR)
-NULL
-#
-# Bug#11889186 60503: CRASH IN MAKE_DATE_TIME WITH DATE_FORMAT / STR_TO_DATE COMBINATION
-#
-SELECT DATE_FORMAT('0000-00-11', '%W');
-DATE_FORMAT('0000-00-11', '%W')
-NULL
-SELECT DATE_FORMAT('0000-00-11', '%a');
-DATE_FORMAT('0000-00-11', '%a')
-NULL
-SELECT DATE_FORMAT('0000-00-11', '%w');
-DATE_FORMAT('0000-00-11', '%w')
-NULL
-#
-# Bug#12403504 AFTER FIX FOR #11889186 : ASSERTION FAILED: DELSUM+(INT) Y/4-TEMP > 0
-#
-SELECT MAKEDATE(11111111,1);
-MAKEDATE(11111111,1)
-NULL
-SELECT WEEK(DATE_ADD(FROM_DAYS(1),INTERVAL 1 MONTH), 1);
-WEEK(DATE_ADD(FROM_DAYS(1),INTERVAL 1 MONTH), 1)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00'
-#
-# Bug#12584302 AFTER FIX FOR #12403504: ASSERTION FAILED: DELSUM+(INT) Y/4-TEMP > 0,
-#
-DO WEEK((DATE_ADD((CAST(0 AS DATE)), INTERVAL 1 YEAR_MONTH)), 5);
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00'
-#
-# BUG#13458237 INCONSISTENT HANDLING OF INVALIDE DATES WITH ZERO DAY
-# SIMILAR TO '2009-10-00'
-#
-SELECT
-DATE('20091000'),
-STR_TO_DATE('200910','%Y%m'),
-LAST_DAY('2009-10-00'),
-LAST_DAY(DATE('2009-10-00')),
-LAST_DAY(DATE'2009-10-00'),
-LAST_DAY(STR_TO_DATE('200910','%Y%m')),
-WEEK('2009-10-00'),
-WEEK(DATE('2009-10-00')),
-WEEK(DATE'2009-10-00'),
-WEEK(STR_TO_DATE('200910','%Y%m')),
-WEEKOFYEAR('2009-10-00'),
-WEEKOFYEAR(DATE('2009-10-00')),
-WEEKOFYEAR(DATE'2009-10-00'),
-WEEKOFYEAR(STR_TO_DATE('200910','%Y%m')),
-DAYOFYEAR('2009-10-00'),
-DAYOFYEAR(DATE('2009-10-00')),
-DAYOFYEAR(DATE'2009-10-00'),
-DAYOFYEAR(STR_TO_DATE('200910','%Y%m')),
-WEEKDAY('2009-10-00'),
-WEEKDAY(DATE('2009-10-00')),
-WEEKDAY(DATE'2009-10-00'),
-WEEKDAY(STR_TO_DATE('200910','%Y%m')),
-TO_DAYs('2009-10-00'),
-TO_DAYs(DATE('2009-10-00')),
-TO_DAYs(DATE'2009-10-00'),
-TO_DAYs(STR_TO_DATE('200910','%Y%m'));
-DATE('20091000') 2009-10-00
-STR_TO_DATE('200910','%Y%m') 2009-10-00
-LAST_DAY('2009-10-00') 2009-10-31
-LAST_DAY(DATE('2009-10-00')) 2009-10-31
-LAST_DAY(DATE'2009-10-00') 2009-10-31
-LAST_DAY(STR_TO_DATE('200910','%Y%m')) 2009-10-31
-WEEK('2009-10-00') NULL
-WEEK(DATE('2009-10-00')) NULL
-WEEK(DATE'2009-10-00') NULL
-WEEK(STR_TO_DATE('200910','%Y%m')) NULL
-WEEKOFYEAR('2009-10-00') NULL
-WEEKOFYEAR(DATE('2009-10-00')) NULL
-WEEKOFYEAR(DATE'2009-10-00') NULL
-WEEKOFYEAR(STR_TO_DATE('200910','%Y%m')) NULL
-DAYOFYEAR('2009-10-00') NULL
-DAYOFYEAR(DATE('2009-10-00')) NULL
-DAYOFYEAR(DATE'2009-10-00') NULL
-DAYOFYEAR(STR_TO_DATE('200910','%Y%m')) NULL
-WEEKDAY('2009-10-00') NULL
-WEEKDAY(DATE('2009-10-00')) NULL
-WEEKDAY(DATE'2009-10-00') NULL
-WEEKDAY(STR_TO_DATE('200910','%Y%m')) NULL
-TO_DAYs('2009-10-00') NULL
-TO_DAYs(DATE('2009-10-00')) NULL
-TO_DAYs(DATE'2009-10-00') NULL
-TO_DAYs(STR_TO_DATE('200910','%Y%m')) NULL
-Warnings:
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1411
-Message Incorrect datetime value: '200910' for function str_to_date
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1411
-Message Incorrect datetime value: '200910' for function str_to_date
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1411
-Message Incorrect datetime value: '200910' for function str_to_date
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1411
-Message Incorrect datetime value: '200910' for function str_to_date
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '2009-10-00'
-Level Warning
-Code 1411
-Message Incorrect datetime value: '200910' for function str_to_date
-SELECT
-DATE('00000100'),
-STR_TO_DATE('000001','%Y%m'),
-LAST_DAY('0000-01-00'),
-LAST_DAY(DATE('0000-01-00')),
-LAST_DAY(DATE'0000-01-00'),
-LAST_DAY(STR_TO_DATE('000001','%Y%m')),
-WEEK('0000-01-00'),
-WEEK(DATE('0000-01-00')),
-WEEK(DATE'0000-01-00'),
-WEEK(STR_TO_DATE('000001','%Y%m')),
-WEEKOFYEAR('0000-01-00'),
-WEEKOFYEAR(DATE('0000-01-00')),
-WEEKOFYEAR(DATE'0000-01-00'),
-WEEKOFYEAR(STR_TO_DATE('000001','%Y%m')),
-DAYOFYEAR('0000-01-00'),
-DAYOFYEAR(DATE('0000-01-00')),
-DAYOFYEAR(DATE'0000-01-00'),
-DAYOFYEAR(STR_TO_DATE('000001','%Y%m')),
-WEEKDAY('0000-01-00'),
-WEEKDAY(DATE('0000-01-00')),
-WEEKDAY(DATE'0000-01-00'),
-WEEKDAY(STR_TO_DATE('000001','%Y%m')),
-TO_DAYs('0000-01-00'),
-TO_DAYs(DATE('0000-01-00')),
-TO_DAYs(DATE'0000-01-00'),
-TO_DAYs(STR_TO_DATE('000001','%Y%m'));
-DATE('00000100') 0000-01-00
-STR_TO_DATE('000001','%Y%m') 0000-01-00
-LAST_DAY('0000-01-00') 0000-01-31
-LAST_DAY(DATE('0000-01-00')) 0000-01-31
-LAST_DAY(DATE'0000-01-00') 0000-01-31
-LAST_DAY(STR_TO_DATE('000001','%Y%m')) 0000-01-31
-WEEK('0000-01-00') NULL
-WEEK(DATE('0000-01-00')) NULL
-WEEK(DATE'0000-01-00') NULL
-WEEK(STR_TO_DATE('000001','%Y%m')) NULL
-WEEKOFYEAR('0000-01-00') NULL
-WEEKOFYEAR(DATE('0000-01-00')) NULL
-WEEKOFYEAR(DATE'0000-01-00') NULL
-WEEKOFYEAR(STR_TO_DATE('000001','%Y%m')) NULL
-DAYOFYEAR('0000-01-00') NULL
-DAYOFYEAR(DATE('0000-01-00')) NULL
-DAYOFYEAR(DATE'0000-01-00') NULL
-DAYOFYEAR(STR_TO_DATE('000001','%Y%m')) NULL
-WEEKDAY('0000-01-00') NULL
-WEEKDAY(DATE('0000-01-00')) NULL
-WEEKDAY(DATE'0000-01-00') NULL
-WEEKDAY(STR_TO_DATE('000001','%Y%m')) NULL
-TO_DAYs('0000-01-00') NULL
-TO_DAYs(DATE('0000-01-00')) NULL
-TO_DAYs(DATE'0000-01-00') NULL
-TO_DAYs(STR_TO_DATE('000001','%Y%m')) NULL
-Warnings:
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1411
-Message Incorrect datetime value: '000001' for function str_to_date
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1411
-Message Incorrect datetime value: '000001' for function str_to_date
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1411
-Message Incorrect datetime value: '000001' for function str_to_date
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1411
-Message Incorrect datetime value: '000001' for function str_to_date
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1292
-Message Incorrect datetime value: '0000-01-00'
-Level Warning
-Code 1411
-Message Incorrect datetime value: '000001' for function str_to_date
-End of 5.1 tests
-#
-# Bug#57039: constant subtime expression returns incorrect result.
-#
-CREATE TABLE t1 (`date_date` datetime NOT NULL);
-INSERT INTO t1 VALUES ('2008-01-03 00:00:00'), ('2008-01-03 00:00:00');
-SELECT * FROM t1 WHERE date_date >= subtime(now(), "00:30:00");
-date_date
-SELECT * FROM t1 WHERE date_date <= addtime(date_add("2000-1-1", INTERVAL "1:1:1" HOUR_SECOND), "00:20:00");
-date_date
-DROP TABLE t1;
-#
-# Bug#57512 str_to_date crash...
-#
-SELECT WEEK(STR_TO_DATE(NULL,0));
-WEEK(STR_TO_DATE(NULL,0))
-NULL
-SELECT SUBDATE(STR_TO_DATE(NULL,0), INTERVAL 1 HOUR);
-SUBDATE(STR_TO_DATE(NULL,0), INTERVAL 1 HOUR)
-NULL
-#
-# BUG#59895 - setting storage engine to null segfaults mysqld
-#
-SELECT MONTHNAME(0), MONTHNAME(0) IS NULL, MONTHNAME(0) + 1;
-MONTHNAME(0) MONTHNAME(0) IS NULL MONTHNAME(0) + 1
-NULL 1 NULL
-SET storage_engine=NULL;
-ERROR 42000: Variable 'storage_engine' can't be set to the value of 'NULL'
-#
-# BUG#13354387 - CRASH IN IN MY_DECIMAL::OPERATOR FOR VIEW AND FUNCTION UNIX_TIMESTAMP
-# Part1 (5.5)
-SET time_zone='+03:00';
-CREATE TABLE t1 (a DATETIME NOT NULL);
-INSERT INTO t1 VALUES ('2009-09-20 07:32:39.06');
-INSERT INTO t1 VALUES ('0000-00-00 00:00:00.00');
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT CAST(UNIX_TIMESTAMP(a) AS DECIMAL(25,3)) AS c1 FROM v1 ORDER BY 1;
-c1
-NULL
-1253421159.000
-DROP VIEW v1;
-DROP TABLE t1;
-SET time_zone=DEFAULT;
-#
-# Bug #59686 crash in String::copy() with time data type
-#
-SELECT min(timestampadd(month, 1>'', from_days('%Z')));
-min(timestampadd(month, 1>'', from_days('%Z')))
-NULL
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '%Z'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-Warning 1292 Incorrect datetime value: '0000-00-00'
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 00:00:00');
-create table t1(a time);
-insert into t1 values ('00:00:00'),('00:01:00');
-select 1 from t1 where 1 < some (select cast(a as datetime) from t1);
-1
-1
-1
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-drop table t1;
-SET timestamp=DEFAULT;
-#
-# Bug #21564557: INCONSISTENT OUTPUT FROM 5.5 AND 5.6
-# UNIX_TIMESTAMP(STR_TO_DATE('201506', "%Y%M"
-#
-SELECT UNIX_TIMESTAMP(STR_TO_DATE('201506', "%Y%m"));
-UNIX_TIMESTAMP(STR_TO_DATE('201506', "%Y%m"))
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '201506' for function str_to_date
-SELECT UNIX_TIMESTAMP('2015-06-00');
-UNIX_TIMESTAMP('2015-06-00')
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2015-06-00'
-SELECT UNIX_TIMESTAMP(STR_TO_DATE('0000-00-00 10:30:30', '%Y-%m-%d %h:%i:%s'));
-UNIX_TIMESTAMP(STR_TO_DATE('0000-00-00 10:30:30', '%Y-%m-%d %h:%i:%s'))
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '0000-00-00 10:30:30' for function str_to_date
-set sql_mode= 'TRADITIONAL';
-SELECT @@sql_mode;
-@@sql_mode
-STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-SELECT UNIX_TIMESTAMP(STR_TO_DATE('201506', "%Y%m"));
-UNIX_TIMESTAMP(STR_TO_DATE('201506', "%Y%m"))
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '201506' for function str_to_date
-SELECT UNIX_TIMESTAMP('2015-06-00');
-UNIX_TIMESTAMP('2015-06-00')
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2015-06-00'
-SELECT UNIX_TIMESTAMP(STR_TO_DATE('0000-00-00 10:30:30', '%Y-%m-%d %h:%i:%s'));
-UNIX_TIMESTAMP(STR_TO_DATE('0000-00-00 10:30:30', '%Y-%m-%d %h:%i:%s'))
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '0000-00-00 10:30:30' for function str_to_date
-set sql_mode= default;
-select time('10:10:10') > 10;
-time('10:10:10') > 10
-1
-select time('10:10:10') > 1010;
-time('10:10:10') > 1010
-1
-select time('10:10:09') > 101010;
-time('10:10:09') > 101010
-0
-select time('10:10:10') > 101010;
-time('10:10:10') > 101010
-0
-select time('10:10:11') > 101010;
-time('10:10:11') > 101010
-1
-select time(' 1 02:03:04') + interval 9 microsecond;
-time(' 1 02:03:04') + interval 9 microsecond
-26:03:04.000009
-select time(' 1 02:03:04') - interval 9 microsecond;
-time(' 1 02:03:04') - interval 9 microsecond
-26:03:03.999991
-select time('-1 02:03:04') + interval 9 microsecond;
-time('-1 02:03:04') + interval 9 microsecond
--26:03:03.999991
-select time('-1 02:03:04') - interval 9 microsecond;
-time('-1 02:03:04') - interval 9 microsecond
--26:03:04.000009
-select time(' 1 02:03:04') + interval '4:4:4' hour_second;
-time(' 1 02:03:04') + interval '4:4:4' hour_second
-30:07:08
-select time(' 1 02:03:04') - interval '4:4:4' hour_second;
-time(' 1 02:03:04') - interval '4:4:4' hour_second
-21:59:00
-select time('-1 02:03:04') + interval '4:4:4' hour_second;
-time('-1 02:03:04') + interval '4:4:4' hour_second
--21:59:00
-select time('-1 02:03:04') - interval '4:4:4' hour_second;
-time('-1 02:03:04') - interval '4:4:4' hour_second
--30:07:08
-select time(' 1 02:03:04') + interval 2 day;
-time(' 1 02:03:04') + interval 2 day
-74:03:04
-select time(' 1 02:03:04') - interval 2 day;
-time(' 1 02:03:04') - interval 2 day
--21:56:56
-select time('-1 02:03:04') + interval 2 day;
-time('-1 02:03:04') + interval 2 day
-21:56:56
-select time('-1 02:03:04') - interval 2 day;
-time('-1 02:03:04') - interval 2 day
--74:03:04
-select time('10 02:03:04') + interval 30 day;
-time('10 02:03:04') + interval 30 day
-NULL
-Warnings:
-Warning 1441 Datetime function: time field overflow
-select time('10 02:03:04') + interval 1 year;
-time('10 02:03:04') + interval 1 year
-NULL
-Warnings:
-Warning 1441 Datetime function: time field overflow
-select cast('131415.123e0' as time);
-cast('131415.123e0' as time)
-NULL
-Warnings:
-Warning 1292 Truncated incorrect time value: '131415.123e0'
-select cast('2010-01-02 03:04:05' as datetime) between null and '2010-01-02 03:04:04';
-cast('2010-01-02 03:04:05' as datetime) between null and '2010-01-02 03:04:04'
-0
-select least(time('1:2:3'), '01:02:04', null) div 1;
-least(time('1:2:3'), '01:02:04', null) div 1
-NULL
-select truncate(least(time('1:2:3'), '01:02:04', null), 6);
-truncate(least(time('1:2:3'), '01:02:04', null), 6)
-NULL
-select cast(least(time('1:2:3'), '01:02:04', null) as decimal(3,1));
-cast(least(time('1:2:3'), '01:02:04', null) as decimal(3,1))
-NULL
-select unix_timestamp(null);
-unix_timestamp(null)
-NULL
-select truncate(date('2010-40-10'), 6);
-truncate(date('2010-40-10'), 6)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2010-40-10'
-select extract(month from '2010-40-50');
-extract(month from '2010-40-50')
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2010-40-50'
-select subtime('0000-00-10 10:10:10', '30 10:00:00');
-subtime('0000-00-10 10:10:10', '30 10:00:00')
-NULL
-select cast(str_to_date(NULL, '%H:%i:%s') as time);
-cast(str_to_date(NULL, '%H:%i:%s') as time)
-NULL
-create table t1 (f1 datetime, key (f1));
-insert into t1 values ('2000-09-12 00:00:00'), ('2007-04-25 05:08:49');
-select * from t1 where f1 > time('-23:00:06');
-f1
-drop table t1;
-select maketime(20,61,10)+0;
-maketime(20,61,10)+0
-NULL
-create table t1 (f2 int not null) ;
-insert into t1 values (0),(0);
-select last_day(f2) from t1;
-last_day(f2)
-NULL
-NULL
-select last_day(f2) from t1 where last_day(f2) is null;
-last_day(f2)
-NULL
-NULL
-select * from t1 order by last_day (f2);
-f2
-0
-0
-drop table t1;
-SET timestamp=unix_timestamp('2001-02-03 10:20:30');
-select convert_tz(timediff('0000-00-00 00:00:00', cast('2008-03-26 07:09:06' as datetime)), 'UTC', 'Europe/Moscow');
-convert_tz(timediff('0000-00-00 00:00:00', cast('2008-03-26 07:09:06' as datetime)), 'UTC', 'Europe/Moscow')
-NULL
-SET timestamp=DEFAULT;
-create table t1 (f1 integer, f2 date);
-insert into t1 values (1,'2011-05-05'),(2,'2011-05-05'),(3,'2011-05-05'),(4,'2011-05-05'),(5,'2011-05-05'),(6, '2011-05-06');
-select * from t1 where 1 and concat(f2)=MAKEDATE(2011, 125);
-f1 f2
-1 2011-05-05
-2 2011-05-05
-3 2011-05-05
-4 2011-05-05
-5 2011-05-05
-drop table t1;
-create table t1 (f1 timestamp);
-insert into t1 values ('0000-00-00 00:00:00');
-select least(1, f1) from t1;
-least(1, f1)
-0000-00-00 00:00:00
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-drop table t1;
-SET timestamp=UNIX_TIMESTAMP('2014-04-14 10:10:10');
-select now() > coalesce(time('21:43:24'), date('2010-05-03'));
-now() > coalesce(time('21:43:24'), date('2010-05-03'))
-0
-SET timestamp=UNIX_TIMESTAMP('2014-04-14 22:22:22');
-select now() > coalesce(time('21:43:24'), date('2010-05-03'));
-now() > coalesce(time('21:43:24'), date('2010-05-03'))
-1
-SET timestamp=DEFAULT;
-create table t1 (f1 timestamp);
-select * from t1 where f1 > f1 and f1 <=> timestampadd(hour, 9 , '2010-01-01 16:55:35');
-f1
-drop table t1;
-create table t1 (f1 date);
-insert into t1 values ('0000-00-00');
-select timestampadd(week, 1, f1) from t1;
-timestampadd(week, 1, f1)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00'
-select timestampadd(week, 1, date("0000-00-00"));
-timestampadd(week, 1, date("0000-00-00"))
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00'
-drop table t1;
-create table t1 (f2 time not null, f3 datetime, f4 int not null, f5 timestamp);
-insert ignore t1 values ('04:38:11','0000-00-00 00:00:00',0,'0000-00-00 00:00:00');
-select least(greatest(f3, f2, f4), f5) from t1;
-least(greatest(f3, f2, f4), f5)
-0000-00-00 00:00:00
-drop table t1;
-select day(coalesce(null));
-day(coalesce(null))
-NULL
-select timestamp(greatest('2002-08-20', '0000-00-00 00:00:00'));
-timestamp(greatest('2002-08-20', '0000-00-00 00:00:00'))
-2002-08-20 00:00:00
-create table t1 (f1 datetime);
-insert into t1 values ('0000-00-00 00:00:00');
-select cast(f1 AS time) from t1;
-cast(f1 AS time)
-00:00:00
-drop table t1;
-SET timestamp=UNIX_TIMESTAMP('2014-06-01 10:20:30');
-select greatest(cast("0-0-0" as date), cast("10:20:05" as time));
-greatest(cast("0-0-0" as date), cast("10:20:05" as time))
-2014-06-01 10:20:05
-select greatest(cast("0-0-0" as date), cast("10:20:05" as time)) = '0000-00-00';
-greatest(cast("0-0-0" as date), cast("10:20:05" as time)) = '0000-00-00'
-0
-select greatest(cast("0-0-0" as date), cast("10:20:05" as time)) = '2014-06-01';
-greatest(cast("0-0-0" as date), cast("10:20:05" as time)) = '2014-06-01'
-0
-select greatest(cast("0-0-0" as date), cast("10:20:05" as time)) = '2014-06-01 10:20:05';
-greatest(cast("0-0-0" as date), cast("10:20:05" as time)) = '2014-06-01 10:20:05'
-1
-select cast(greatest(cast("0-0-0" as date), cast("10:20:05" as time)) as datetime(6));
-cast(greatest(cast("0-0-0" as date), cast("10:20:05" as time)) as datetime(6))
-2014-06-01 10:20:05.000000
-SET timestamp=DEFAULT;
-select microsecond('12:00:00.123456'), microsecond('2009-12-31 23:59:59.000010');
-microsecond('12:00:00.123456') microsecond('2009-12-31 23:59:59.000010')
-123456 10
-select now(258);
-ERROR 42000: Too big precision 258 specified for 'current_timestamp'. Maximum is 6
-SELECT 1 FROM DUAL WHERE YEAR(TIMEDIFF(NULL, '12:12:12'));
-1
-SELECT 1 FROM DUAL WHERE MONTH(TIMEDIFF(NULL, '12:12:12'));
-1
-SELECT 1 FROM DUAL WHERE DAYOFMONTH(TIMEDIFF(NULL, '12:12:12'));
-1
-SELECT 1 FROM DUAL WHERE HOUR(TIMEDIFF(NULL, '12:12:12'));
-1
-SELECT 1 FROM DUAL WHERE MINUTE(TIMEDIFF(NULL, '12:12:12'));
-1
-SELECT 1 FROM DUAL WHERE SECOND(TIMEDIFF(NULL, '12:12:12'));
-1
-#
-# MDEV-4511 Assertion `scale <= precision' fails on GROUP BY TIMEDIFF with incorrect types
-#
-CREATE TABLE t1 (a DATE) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('2005-05-04'),('2000-02-23');
-SELECT a FROM t1 GROUP BY TIMEDIFF('2004-06-12',a) * 1;
-a
-2005-05-04
-Warnings:
-Warning 1292 Truncated incorrect time value: '2004-06-12'
-Warning 1292 Truncated incorrect time value: '2004-06-12'
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('2005-05-04'),('2000-02-23');
-SELECT a FROM t1 GROUP BY ADDTIME(a,'10')*1;
-a
-2000-02-23
-2005-05-04
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('2005-05-04'),('2000-02-23');
-SELECT * FROM t1 GROUP BY SEC_TO_TIME(concat(a,'10'))*1;
-a
-2000-02-23
-2005-05-04
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-Warning 1292 Truncated incorrect DECIMAL value: '2000-02-2310'
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('2005-05-04'),('2000-02-23');
-SELECT * FROM t1 GROUP BY ADDTIME(timestamp('2001-01-01 00:00:00'),CAST(a AS SIGNED)&0xF)*1;
-a
-2005-05-04
-2000-02-23
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('2005-05-04'),('2000-02-23');
-SELECT * FROM t1 GROUP BY STR_TO_DATE(a,concat('%Y-%m-%d.%f',if(rand(),'','')))*1;
-a
-2000-02-23
-2005-05-04
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
-STR_TO_DATE('2001-01-01', '%Y-%m-%d') AS date_only,
-STR_TO_DATE('10:10:10', '%H:%i:%s') AS time_only,
-STR_TO_DATE('10:10:10.123', '%H:%i:%s.%f') AS time_microsecond,
-STR_TO_DATE('2001-01-01 10:10:10', '%Y-%m-%d %H:%i:%s') AS date_time,
-STR_TO_DATE('2001-01-01 10:10:10.123', '%Y-%m-%d %H:%i:%s.%f') AS date_time_microsecond;
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-date_only date YES NULL
-time_only time YES NULL
-time_microsecond time(6) YES NULL
-date_time datetime YES NULL
-date_time_microsecond datetime(6) YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
-SEC_TO_TIME(1)+0.1,
-SEC_TO_TIME(1.1)+0.1,
-SEC_TO_TIME(1.12)+0.1,
-SEC_TO_TIME(1.123456)+0.1,
-SEC_TO_TIME(1.1234567)+0.1;
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-SEC_TO_TIME(1)+0.1 decimal(9,1) YES NULL
-SEC_TO_TIME(1.1)+0.1 decimal(9,1) YES NULL
-SEC_TO_TIME(1.12)+0.1 decimal(10,2) YES NULL
-SEC_TO_TIME(1.123456)+0.1 decimal(14,6) YES NULL
-SEC_TO_TIME(1.1234567)+0.1 decimal(14,6) YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('2005-05-04'),('2000-02-23');
-SELECT * FROM t1 GROUP BY FROM_UNIXTIME(concat(a,'10'))*1;
-a
-2000-02-23
-2005-05-04
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-Warning 1292 Truncated incorrect DECIMAL value: '2000-02-2310'
-SELECT * FROM t1 GROUP BY (-FROM_UNIXTIME(concat(a,'10')))*1;
-a
-2005-05-04
-2000-02-23
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-Warning 1292 Truncated incorrect DECIMAL value: '2000-02-2310'
-SELECT * FROM t1 GROUP BY (-FROM_UNIXTIME(concat(a,'10')));
-a
-2005-05-04
-2000-02-23
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-Warning 1292 Truncated incorrect DECIMAL value: '2000-02-2310'
-SELECT * FROM t1 GROUP BY ABS(FROM_UNIXTIME(concat(a,'10')));
-a
-2000-02-23
-2005-05-04
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-Warning 1292 Truncated incorrect DECIMAL value: '2000-02-2310'
-SELECT * FROM t1 GROUP BY @a:=(FROM_UNIXTIME(concat(a,'10'))*1);
-a
-2000-02-23
-2005-05-04
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-Warning 1292 Truncated incorrect DECIMAL value: '2000-02-2310'
-DROP TABLE t1;
-SET TIME_ZONE='+02:00';
-#
-# MDEV-6302 Wrong result set when using GROUP BY FROM_UNIXTIME(...)+0
-#
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('2005-05-04'),('2000-02-23');
-SELECT a, FROM_UNIXTIME(CONCAT(a,'10')) AS f1, FROM_UNIXTIME(CONCAT(a,'10'))+0 AS f2 FROM t1;
-a f1 f2
-2005-05-04 1970-01-01 02:33:25 19700101023325.000000
-2000-02-23 1970-01-01 02:33:20 19700101023320.000000
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-Warning 1292 Truncated incorrect DECIMAL value: '2000-02-2310'
-Warning 1292 Truncated incorrect DECIMAL value: '2000-02-2310'
-SELECT * FROM t1 GROUP BY FROM_UNIXTIME(CONCAT(a,'10'))+0;
-a
-2000-02-23
-2005-05-04
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-Warning 1292 Truncated incorrect DECIMAL value: '2000-02-2310'
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('2005-05-04'),('2000-02-23');
-SELECT * FROM t1 GROUP BY FROM_UNIXTIME(concat(a,'10'))/1;
-a
-2000-02-23
-2005-05-04
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-Warning 1292 Truncated incorrect DECIMAL value: '2000-02-2310'
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('2005-05-04');
-SELECT CONCAT(FROM_UNIXTIME(CONCAT(a,'10')) MOD FROM_UNIXTIME(CONCAT(a,'10'))) AS f2 FROM t1;
-f2
-0.000000
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-SELECT CHAR_LENGTH(CONCAT(FROM_UNIXTIME(CONCAT(a,'10')) MOD FROM_UNIXTIME(CONCAT(a,'10')))) AS f2 FROM t1;
-f2
-8
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 AS SELECT CONCAT(FROM_UNIXTIME(CONCAT(a,'10')) MOD FROM_UNIXTIME(CONCAT(a,'10'))) AS f2 FROM t1;
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-Warning 1292 Truncated incorrect DECIMAL value: '2005-05-0410'
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `f2` varchar(26) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-f2
-0.000000
-DROP TABLE t1,t2;
-#
-# MDEV-4635 Crash in UNIX_TIMESTAMP(STR_TO_DATE('2020','%Y'))
-#
-SELECT UNIX_TIMESTAMP(STR_TO_DATE('2020','%Y'));
-UNIX_TIMESTAMP(STR_TO_DATE('2020','%Y'))
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2020' for function str_to_date
-SET TIME_ZONE=DEFAULT;
-#
-# MDEV-4863 COALESCE(time_or_datetime) returns wrong results in numeric context
-#
-CREATE TABLE t1 (a TIMESTAMP(3));
-INSERT INTO t1 VALUES ('2001-01-01 10:20:30.999');
-SELECT CAST(COALESCE(a,a) AS SIGNED) AS c1, CAST(COALESCE(a,a) AS DECIMAL(25,3)) AS c2, ROUND(COALESCE(a,a)) AS c2 FROM t1;
-c1 c2 c2
-20010101102030 20010101102030.999 20010101102031
-DROP TABLE t1;
-CREATE TABLE t1 (a TIME(3));
-INSERT INTO t1 VALUES ('10:20:30.999');
-SELECT CAST(COALESCE(a,a) AS SIGNED) AS c1, CAST(COALESCE(a,a) AS DECIMAL(25,3)) AS c2, ROUND(COALESCE(a,a)) AS c2 FROM t1;
-c1 c2 c2
-102030 102030.999 102031
-DROP TABLE t1;
-SELECT
-CAST(COALESCE(DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30')) AS SIGNED) AS c1,
-CAST(COALESCE(DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30')) AS DECIMAL(25,4)) AS c2,
-COALESCE(DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))+0e0 AS c3,
-CONCAT(COALESCE(DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c4,
-TIME(COALESCE(DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c5,
-DATE(COALESCE(DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c6,
-TIMESTAMP(COALESCE(DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c7;
-c1 c2 c3 c4 c5 c6 c7
-20010101000000 20010101000000.0000 20010101000000 2001-01-01 00:00:00 00:00:00 2001-01-01 2001-01-01 00:00:00
-SELECT
-CAST(COALESCE(TIMESTAMP('2001-01-02 10:20:30'),DATE('2001-01-01')) AS SIGNED) AS c1,
-CAST(COALESCE(TIMESTAMP('2001-01-02 10:20:30'),DATE('2001-01-01')) AS DECIMAL(25,4)) AS c2,
-COALESCE(TIMESTAMP('2001-01-02 10:20:30'),DATE('2001-01-01'))+0e0 AS c3,
-CONCAT(COALESCE(TIMESTAMP('2001-01-02 10:20:30'),DATE('2001-01-01'))) AS c4,
-TIME(COALESCE(TIMESTAMP('2001-01-02 10:20:30'),DATE('2001-01-01'))) AS c5,
-DATE(COALESCE(TIMESTAMP('2001-01-02 10:20:30'),DATE('2001-01-01'))) AS c6,
-TIMESTAMP(COALESCE(TIMESTAMP('2001-01-02 10:20:30'),DATE('2001-01-01'))) AS c7;
-c1 c2 c3 c4 c5 c6 c7
-20010102102030 20010102102030.0000 20010102102030 2001-01-02 10:20:30 10:20:30 2001-01-02 2001-01-02 10:20:30
-SELECT
-CAST(IFNULL(DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30')) AS SIGNED) AS c1,
-CAST(IFNULL(DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30')) AS DECIMAL(25,4)) AS c2,
-IFNULL(DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))+0e0 AS c3,
-CONCAT(IFNULL(DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c4,
-TIME(IFNULL(DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c5,
-DATE(IFNULL(DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c6,
-TIMESTAMP(IFNULL(DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c7;
-c1 c2 c3 c4 c5 c6 c7
-20010101000000 20010101000000.0000 20010101000000 2001-01-01 00:00:00 00:00:00 2001-01-01 2001-01-01 00:00:00
-SELECT
-CAST(IFNULL(TIMESTAMP('2001-01-02 10:20:30'),DATE('2001-01-01')) AS SIGNED) AS c1,
-CAST(IFNULL(TIMESTAMP('2001-01-02 10:20:30'),DATE('2001-01-01')) AS DECIMAL(25,4)) AS c2,
-IFNULL(TIMESTAMP('2001-01-02 10:20:30'),DATE('2001-01-01'))+0e0 AS c3,
-CONCAT(IFNULL(TIMESTAMP('2001-01-02 10:20:30'),DATE('2001-01-01'))) AS c4,
-TIME(IFNULL(TIMESTAMP('2001-01-02 10:20:30'),DATE('2001-01-01'))) AS c5,
-DATE(IFNULL(TIMESTAMP('2001-01-02 10:20:30'),DATE('2001-01-01'))) AS c6,
-TIMESTAMP(IFNULL(TIMESTAMP('2001-01-02 10:20:30'),DATE('2001-01-01'))) AS c7;
-c1 c2 c3 c4 c5 c6 c7
-20010102102030 20010102102030.0000 20010102102030 2001-01-02 10:20:30 10:20:30 2001-01-02 2001-01-02 10:20:30
-SELECT
-CAST(IF(1,DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30')) AS SIGNED) AS c1,
-CAST(IF(1,DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30')) AS DECIMAL(25,4)) AS c2,
-IF(1,DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))+0e0 AS c3,
-CONCAT(IF(1,DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c4,
-TIME(IF(1,DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c5,
-DATE(IF(1,DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c6,
-TIMESTAMP(IF(1,DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c7;
-c1 c2 c3 c4 c5 c6 c7
-20010101000000 20010101000000.0000 20010101000000 2001-01-01 00:00:00 00:00:00 2001-01-01 2001-01-01 00:00:00
-SELECT
-CAST(IF(0,DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30')) AS SIGNED) AS c1,
-CAST(IF(0,DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30')) AS DECIMAL(25,4)) AS c2,
-IF(0,DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))+0e0 AS c3,
-CONCAT(IF(0,DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c4,
-TIME(IF(0,DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c5,
-DATE(IF(0,DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c6,
-TIMESTAMP(IF(0,DATE('2001-01-01'),TIMESTAMP('2001-01-02 10:20:30'))) AS c7;
-c1 c2 c3 c4 c5 c6 c7
-20010102102030 20010102102030.0000 20010102102030 2001-01-02 10:20:30 10:20:30 2001-01-02 2001-01-02 10:20:30
-SELECT
-CAST(CASE WHEN 1 THEN DATE('2001-01-01') ELSE TIMESTAMP('2001-01-02 10:20:30') END AS SIGNED) AS c1,
-CAST(CASE WHEN 1 THEN DATE('2001-01-01') ELSE TIMESTAMP('2001-01-02 10:20:30') END AS DECIMAL(25,4)) AS c2,
-CASE WHEN 1 THEN DATE('2001-01-01') ELSE TIMESTAMP('2001-01-02 10:20:30') END+0e0 AS c3,
-CONCAT(CASE WHEN 1 THEN DATE('2001-01-01') ELSE TIMESTAMP('2001-01-02 10:20:30') END) AS c4,
-TIME(CASE WHEN 1 THEN DATE('2001-01-01') ELSE TIMESTAMP('2001-01-02 10:20:30') END) AS c5,
-DATE(CASE WHEN 1 THEN DATE('2001-01-01') ELSE TIMESTAMP('2001-01-02 10:20:30') END) AS c6,
-TIMESTAMP(CASE WHEN 1 THEN DATE('2001-01-01') ELSE TIMESTAMP('2001-01-02 10:20:30') END) AS c7;
-c1 c2 c3 c4 c5 c6 c7
-20010101000000 20010101000000.0000 20010101000000 2001-01-01 00:00:00 00:00:00 2001-01-01 2001-01-01 00:00:00
-SELECT
-CAST(CASE WHEN 0 THEN DATE('2001-01-01') ELSE TIMESTAMP('2001-01-02 10:20:30') END AS SIGNED) AS c1,
-CAST(CASE WHEN 0 THEN DATE('2001-01-01') ELSE TIMESTAMP('2001-01-02 10:20:30') END AS DECIMAL(25,4)) AS c2,
-CASE WHEN 0 THEN DATE('2001-01-01') ELSE TIMESTAMP('2001-01-02 10:20:30') END+0e0 AS c3,
-CONCAT(CASE WHEN 0 THEN DATE('2001-01-01') ELSE TIMESTAMP('2001-01-02 10:20:30') END) AS c4,
-TIME(CASE WHEN 0 THEN DATE('2001-01-01') ELSE TIMESTAMP('2001-01-02 10:20:30') END) AS c5,
-DATE(CASE WHEN 0 THEN DATE('2001-01-01') ELSE TIMESTAMP('2001-01-02 10:20:30') END) AS c6,
-TIMESTAMP(CASE WHEN 0 THEN DATE('2001-01-01') ELSE TIMESTAMP('2001-01-02 10:20:30') END) AS c7;
-c1 c2 c3 c4 c5 c6 c7
-20010102102030 20010102102030.0000 20010102102030 2001-01-02 10:20:30 10:20:30 2001-01-02 2001-01-02 10:20:30
-CREATE TABLE t1 AS SELECT
-CONCAT(COALESCE(TIME(101010),TIME(101010))) AS c1,
-CONCAT(IF(0,TIME(101010),TIME(101010))) AS c2,
-CONCAT(IFNULL(TIME(101010),TIME(101010))) AS c3,
-CONCAT(CASE WHEN 1 THEN TIME(101010) ELSE TIME(101010) END) AS c4;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(10) DEFAULT NULL,
- `c2` varchar(10) DEFAULT NULL,
- `c3` varchar(10) DEFAULT NULL,
- `c4` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# MDEV-4870 Wrong values of CASE, COALESCE, IFNULL on a combination of different temporal types
-#
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 10:20:30');
-CREATE TABLE t1 (dt2 DATETIME(2), t3 TIME(3), d DATE);
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00.12', '00:00:00.567', '2002-01-01');
-SELECT CASE WHEN 0 THEN dt2 ELSE t3 END FROM t1;
-CASE WHEN 0 THEN dt2 ELSE t3 END
-2001-01-01 00:00:00.567
-CREATE TABLE t2 AS SELECT CASE WHEN 0 THEN dt2 ELSE t3 END FROM t1;
-SELECT * FROM t2;
-CASE WHEN 0 THEN dt2 ELSE t3 END
-2001-01-01 00:00:00.567
-SHOW COLUMNS FROM t2;
-Field Type Null Key Default Extra
-CASE WHEN 0 THEN dt2 ELSE t3 END datetime(3) YES NULL
-DROP TABLE t2;
-SELECT CASE WHEN 1 THEN dt2 ELSE t3 END FROM t1;
-CASE WHEN 1 THEN dt2 ELSE t3 END
-2001-01-01 00:00:00.120
-SELECT CONCAT(CASE WHEN 1 THEN dt2 ELSE t3 END) FROM t1;
-CONCAT(CASE WHEN 1 THEN dt2 ELSE t3 END)
-2001-01-01 00:00:00.120
-SELECT CONCAT(CASE WHEN 0 THEN t3 ELSE dt2 END) FROM t1;
-CONCAT(CASE WHEN 0 THEN t3 ELSE dt2 END)
-2001-01-01 00:00:00.120
-SELECT CONCAT(CASE WHEN 1 THEN d ELSE t3 END) FROM t1;
-CONCAT(CASE WHEN 1 THEN d ELSE t3 END)
-2002-01-01 00:00:00.000
-SELECT CASE WHEN 1 THEN t3 ELSE d END FROM t1;
-CASE WHEN 1 THEN t3 ELSE d END
-2001-01-01 00:00:00.567
-SELECT COALESCE(d, t3) FROM t1;
-COALESCE(d, t3)
-2002-01-01 00:00:00.000
-SELECT CONCAT(COALESCE(d, t3)) FROM t1;
-CONCAT(COALESCE(d, t3))
-2002-01-01 00:00:00.000
-SELECT COALESCE(dt2, t3) FROM t1;
-COALESCE(dt2, t3)
-2001-01-01 00:00:00.120
-SELECT CONCAT(COALESCE(dt2, t3)) FROM t1;
-CONCAT(COALESCE(dt2, t3))
-2001-01-01 00:00:00.120
-SELECT IFNULL(dt2, t3), CONCAT(IFNULL(dt2, t3)) FROM t1;
-IFNULL(dt2, t3) CONCAT(IFNULL(dt2, t3))
-2001-01-01 00:00:00.120 2001-01-01 00:00:00.120
-SELECT IFNULL(d, t3), CONCAT(IFNULL(d, t3)) FROM t1;
-IFNULL(d, t3) CONCAT(IFNULL(d, t3))
-2002-01-01 00:00:00.000 2002-01-01 00:00:00.000
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-# MDEV-4724 Some temporal functions do not preserve microseconds
-#
-SELECT MAKETIME(10,10,10.231);
-MAKETIME(10,10,10.231)
-10:10:10.231
-SELECT MAKETIME(0, 0, 59.9);
-MAKETIME(0, 0, 59.9)
-00:00:59.9
-CREATE TABLE t1 AS SELECT
-MAKETIME(10,00,00),
-MAKETIME(10,00,00.1),
-MAKETIME(10,00,00.12),
-MAKETIME(10,00,00.123),
-MAKETIME(10,00,00.1234),
-MAKETIME(10,00,00.12345),
-MAKETIME(10,00,00.123456);
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-MAKETIME(10,00,00) time YES NULL
-MAKETIME(10,00,00.1) time(1) YES NULL
-MAKETIME(10,00,00.12) time(2) YES NULL
-MAKETIME(10,00,00.123) time(3) YES NULL
-MAKETIME(10,00,00.1234) time(4) YES NULL
-MAKETIME(10,00,00.12345) time(5) YES NULL
-MAKETIME(10,00,00.123456) time(6) YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
-TIME('10:00:00'),
-TIME('10:00:00.1'),
-TIME('10:00:00.12'),
-TIME('10:00:00.123'),
-TIME('10:00:00.1234'),
-TIME('10:00:00.12345'),
-TIME('10:00:00.12346');
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-TIME('10:00:00') time YES NULL
-TIME('10:00:00.1') time(1) YES NULL
-TIME('10:00:00.12') time(2) YES NULL
-TIME('10:00:00.123') time(3) YES NULL
-TIME('10:00:00.1234') time(4) YES NULL
-TIME('10:00:00.12345') time(5) YES NULL
-TIME('10:00:00.12346') time(5) YES NULL
-DROP TABLE t1;
-SET TIME_ZONE='+00:00';
-SET TIMESTAMP=UNIX_TIMESTAMP('2012-10-16 22:46:17');
-SELECT NOW(), UNIX_TIMESTAMP(), UNIX_TIMESTAMP(NOW()),UNIX_TIMESTAMP('2012-10-16 22:46:17');
-NOW() UNIX_TIMESTAMP() UNIX_TIMESTAMP(NOW()) UNIX_TIMESTAMP('2012-10-16 22:46:17')
-2012-10-16 22:46:17 1350427577 1350427577 1350427577
-SET TIMESTAMP=UNIX_TIMESTAMP('1970-01-02 03:04:05.123456');
-SELECT @@timestamp, FROM_UNIXTIME(@@timestamp);
-@@timestamp FROM_UNIXTIME(@@timestamp)
-97445.123456 1970-01-02 03:04:05.123456
-SET TIME_ZONE=DEFAULT;
-SET TIMESTAMP=DEFAULT;
-SELECT TIME('2012-10-16 15:54:16.12');
-TIME('2012-10-16 15:54:16.12')
-15:54:16.12
-SELECT TIMESTAMP('2012-10-16 15:54:16.12');
-TIMESTAMP('2012-10-16 15:54:16.12')
-2012-10-16 15:54:16.12
-SELECT TIMEDIFF('10:10:10.1','00:00:00');
-TIMEDIFF('10:10:10.1','00:00:00')
-10:10:10.1
-SELECT TIME_TO_SEC('10:10:10');
-TIME_TO_SEC('10:10:10')
-36610
-SELECT ADDTIME(TIME('10:10:10.1'),'10:10:10.12');
-ADDTIME(TIME('10:10:10.1'),'10:10:10.12')
-20:20:20.22
-SELECT ADDTIME(TIMESTAMP('2001-01-01 10:10:10.1'),'10:10:10.12');
-ADDTIME(TIMESTAMP('2001-01-01 10:10:10.1'),'10:10:10.12')
-2001-01-01 20:20:20.22
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL 1 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL 1 SECOND)
-2001-01-01 00:00:01
-SELECT DATE_ADD('2001-01-01 00:00:00.1', INTERVAL 1 SECOND);
-DATE_ADD('2001-01-01 00:00:00.1', INTERVAL 1 SECOND)
-2001-01-01 00:00:01.1
-SELECT DATE_ADD('2001-01-01 00:00:00.12', INTERVAL 1 SECOND);
-DATE_ADD('2001-01-01 00:00:00.12', INTERVAL 1 SECOND)
-2001-01-01 00:00:01.12
-SELECT DATE_ADD('2001-01-01 00:00:00.123', INTERVAL 1 SECOND);
-DATE_ADD('2001-01-01 00:00:00.123', INTERVAL 1 SECOND)
-2001-01-01 00:00:01.123
-SELECT DATE_ADD('2001-01-01 00:00:00.1234', INTERVAL 1 SECOND);
-DATE_ADD('2001-01-01 00:00:00.1234', INTERVAL 1 SECOND)
-2001-01-01 00:00:01.1234
-SELECT DATE_ADD('2001-01-01 00:00:00.12345', INTERVAL 1 SECOND);
-DATE_ADD('2001-01-01 00:00:00.12345', INTERVAL 1 SECOND)
-2001-01-01 00:00:01.12345
-SELECT DATE_ADD('2001-01-01 00:00:00.123456', INTERVAL 1 SECOND);
-DATE_ADD('2001-01-01 00:00:00.123456', INTERVAL 1 SECOND)
-2001-01-01 00:00:01.123456
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL 1 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL 1 SECOND)
-2001-01-01 00:00:01
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL 1.1 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL 1.1 SECOND)
-2001-01-01 00:00:01.1
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL 1.12 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL 1.12 SECOND)
-2001-01-01 00:00:01.12
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL 1.123 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL 1.123 SECOND)
-2001-01-01 00:00:01.123
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL 1.1234 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL 1.1234 SECOND)
-2001-01-01 00:00:01.1234
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL 1.12345 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL 1.12345 SECOND)
-2001-01-01 00:00:01.12345
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL 1.123456 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL 1.123456 SECOND)
-2001-01-01 00:00:01.123456
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL -1 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL -1 SECOND)
-2000-12-31 23:59:59
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL -1.1 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL -1.1 SECOND)
-2000-12-31 23:59:58.9
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL -1.12 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL -1.12 SECOND)
-2000-12-31 23:59:58.88
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL -1.123 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL -1.123 SECOND)
-2000-12-31 23:59:58.877
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL -1.1234 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL -1.1234 SECOND)
-2000-12-31 23:59:58.8766
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL -1.12345 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL -1.12345 SECOND)
-2000-12-31 23:59:58.87655
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL -1.123456 SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL -1.123456 SECOND)
-2000-12-31 23:59:58.876544
-SELECT DATE_ADD('2001-01-01 00:00:00', INTERVAL 'xxx' SECOND);
-DATE_ADD('2001-01-01 00:00:00', INTERVAL 'xxx' SECOND)
-2001-01-01 00:00:00.000000
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: 'xxx'
-SELECT CONVERT_TZ('2001-01-01 10:20:30.12','+00:00','+01:00');
-CONVERT_TZ('2001-01-01 10:20:30.12','+00:00','+01:00')
-2001-01-01 11:20:30.12
-#
-# MDEV-4861 TIME/DATETIME arithmetics does not preserve INTERVAL precision
-#
-CREATE TABLE t1 (t0 TIME);
-INSERT INTO t1 VALUES ('00:00:00');
-SELECT t0 + INTERVAL 1.1 SECOND FROM t1;
-t0 + INTERVAL 1.1 SECOND
-00:00:01.1
-CREATE TABLE t2 AS SELECT t0 + INTERVAL 1.1 SECOND FROM t1;
-SHOW COLUMNS FROM t2;
-Field Type Null Key Default Extra
-t0 + INTERVAL 1.1 SECOND time(1) YES NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (t0 DATETIME);
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00');
-SELECT t0 + INTERVAL 1.1 SECOND FROM t1;
-t0 + INTERVAL 1.1 SECOND
-2001-01-01 00:00:01.1
-CREATE TABLE t2 AS SELECT t0 + INTERVAL 1.1 SECOND FROM t1;
-SHOW COLUMNS FROM t2;
-Field Type Null Key Default Extra
-t0 + INTERVAL 1.1 SECOND datetime(1) YES NULL
-DROP TABLE t1, t2;
-#
-# MDEV-4843 Wrong data type for TIMESTAMP('2001-01-01','10:10:10')
-#
-CREATE TABLE t1 AS SELECT
-TIMESTAMP('2001-01-01','10:10:10'),
-TIMESTAMP('2001-01-01','10:10:10.1'),
-TIMESTAMP('2001-01-01','10:10:10.12'),
-TIMESTAMP('2001-01-01','10:10:10.123'),
-TIMESTAMP('2001-01-01','10:10:10.1234'),
-TIMESTAMP('2001-01-01','10:10:10.12345'),
-TIMESTAMP('2001-01-01','10:10:10.123456'),
-TIMESTAMP('2001-01-01','10:10:10.1234567');
-Warnings:
-Note 1292 Truncated incorrect time value: '10:10:10.1234567'
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-TIMESTAMP('2001-01-01','10:10:10') datetime YES NULL
-TIMESTAMP('2001-01-01','10:10:10.1') datetime(1) YES NULL
-TIMESTAMP('2001-01-01','10:10:10.12') datetime(2) YES NULL
-TIMESTAMP('2001-01-01','10:10:10.123') datetime(3) YES NULL
-TIMESTAMP('2001-01-01','10:10:10.1234') datetime(4) YES NULL
-TIMESTAMP('2001-01-01','10:10:10.12345') datetime(5) YES NULL
-TIMESTAMP('2001-01-01','10:10:10.123456') datetime(6) YES NULL
-TIMESTAMP('2001-01-01','10:10:10.1234567') datetime(6) YES NULL
-SELECT * FROM t1;
-TIMESTAMP('2001-01-01','10:10:10') TIMESTAMP('2001-01-01','10:10:10.1') TIMESTAMP('2001-01-01','10:10:10.12') TIMESTAMP('2001-01-01','10:10:10.123') TIMESTAMP('2001-01-01','10:10:10.1234') TIMESTAMP('2001-01-01','10:10:10.12345') TIMESTAMP('2001-01-01','10:10:10.123456') TIMESTAMP('2001-01-01','10:10:10.1234567')
-2001-01-01 10:10:10 2001-01-01 10:10:10.1 2001-01-01 10:10:10.12 2001-01-01 10:10:10.123 2001-01-01 10:10:10.1234 2001-01-01 10:10:10.12345 2001-01-01 10:10:10.123456 2001-01-01 10:10:10.123456
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
-TIMESTAMP('2001-01-01 00:00:00','10:10:10'),
-TIMESTAMP('2001-01-01 00:00:00.1','10:10:10'),
-TIMESTAMP('2001-01-01 00:00:00.12','10:10:10'),
-TIMESTAMP('2001-01-01 00:00:00.123','10:10:10'),
-TIMESTAMP('2001-01-01 00:00:00.1234','10:10:10'),
-TIMESTAMP('2001-01-01 00:00:00.12345','10:10:10'),
-TIMESTAMP('2001-01-01 00:00:00.123456','10:10:10'),
-TIMESTAMP('2001-01-01 00:00:00.1234567','10:10:10');
-Warnings:
-Note 1292 Truncated incorrect datetime value: '2001-01-01 00:00:00.1234567'
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-TIMESTAMP('2001-01-01 00:00:00','10:10:10') datetime YES NULL
-TIMESTAMP('2001-01-01 00:00:00.1','10:10:10') datetime(1) YES NULL
-TIMESTAMP('2001-01-01 00:00:00.12','10:10:10') datetime(2) YES NULL
-TIMESTAMP('2001-01-01 00:00:00.123','10:10:10') datetime(3) YES NULL
-TIMESTAMP('2001-01-01 00:00:00.1234','10:10:10') datetime(4) YES NULL
-TIMESTAMP('2001-01-01 00:00:00.12345','10:10:10') datetime(5) YES NULL
-TIMESTAMP('2001-01-01 00:00:00.123456','10:10:10') datetime(6) YES NULL
-TIMESTAMP('2001-01-01 00:00:00.1234567','10:10:10') datetime(6) YES NULL
-SELECT * FROM t1;
-TIMESTAMP('2001-01-01 00:00:00','10:10:10') TIMESTAMP('2001-01-01 00:00:00.1','10:10:10') TIMESTAMP('2001-01-01 00:00:00.12','10:10:10') TIMESTAMP('2001-01-01 00:00:00.123','10:10:10') TIMESTAMP('2001-01-01 00:00:00.1234','10:10:10') TIMESTAMP('2001-01-01 00:00:00.12345','10:10:10') TIMESTAMP('2001-01-01 00:00:00.123456','10:10:10') TIMESTAMP('2001-01-01 00:00:00.1234567','10:10:10')
-2001-01-01 10:10:10 2001-01-01 10:10:10.1 2001-01-01 10:10:10.12 2001-01-01 10:10:10.123 2001-01-01 10:10:10.1234 2001-01-01 10:10:10.12345 2001-01-01 10:10:10.123456 2001-01-01 10:10:10.123456
-DROP TABLE t1;
-SET timestamp=unix_timestamp('2001-02-03 10:20:30');
-CREATE TABLE t1 AS SELECT
-TIMESTAMP('00:00:00','10:10:10'),
-TIMESTAMP(TIME('00:00:00'),'10:10:10');
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-TIMESTAMP('00:00:00','10:10:10') datetime YES NULL
-TIMESTAMP(TIME('00:00:00'),'10:10:10') datetime YES NULL
-SELECT * FROM t1;
-TIMESTAMP('00:00:00','10:10:10') TIMESTAMP(TIME('00:00:00'),'10:10:10')
-NULL 2001-02-03 10:10:10
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-# MDEV-4869 Wrong result of MAKETIME(0, 0, -0.1)
-#
-SELECT MAKETIME(0, 0, -0.1);
-MAKETIME(0, 0, -0.1)
-NULL
-#
-# MDEV-4857 Wrong result of HOUR('1 00:00:00')
-#
-SET timestamp=unix_timestamp('2001-02-03 10:20:30');
-SELECT HOUR('1 02:00:00'), HOUR('26:00:00');
-HOUR('1 02:00:00') HOUR('26:00:00')
-26 26
-SELECT HOUR(TIME'1 02:00:00'), HOUR(TIME'26:00:00');
-HOUR(TIME'1 02:00:00') HOUR(TIME'26:00:00')
-26 26
-SELECT HOUR(TIME('1 02:00:00')), HOUR(TIME('26:00:00'));
-HOUR(TIME('1 02:00:00')) HOUR(TIME('26:00:00'))
-26 26
-SELECT DAY(TIME('1 02:00:00')), DAY(TIME('26:00:00'));
-DAY(TIME('1 02:00:00')) DAY(TIME('26:00:00'))
-4 4
-SELECT EXTRACT(HOUR FROM '1 02:00:00'), EXTRACT(HOUR FROM '26:00:00');
-EXTRACT(HOUR FROM '1 02:00:00') EXTRACT(HOUR FROM '26:00:00')
-2 2
-SELECT EXTRACT(HOUR FROM TIME'1 02:00:00'), EXTRACT(HOUR FROM TIME'26:00:00');
-EXTRACT(HOUR FROM TIME'1 02:00:00') EXTRACT(HOUR FROM TIME'26:00:00')
-2 2
-SELECT EXTRACT(HOUR FROM TIME('1 02:00:00')), EXTRACT(HOUR FROM TIME('26:00:00'));
-EXTRACT(HOUR FROM TIME('1 02:00:00')) EXTRACT(HOUR FROM TIME('26:00:00'))
-2 2
-SELECT EXTRACT(DAY FROM TIME('1 02:00:00')), EXTRACT(DAY FROM TIME('26:00:00'));
-EXTRACT(DAY FROM TIME('1 02:00:00')) EXTRACT(DAY FROM TIME('26:00:00'))
-1 1
-SET timestamp=DEFAULT;
-#
-# MDEV-5458 RQG hits 'sql/tztime.cc:799: my_time_t sec_since_epoch(int, int, int, int, int, int): Assertion `mon > 0 && mon < 13' failed.'
-#
-SET TIMESTAMP=UNIX_TIMESTAMP('2014-01-22 18:19:20');
-CREATE TABLE t1 (t TIME);
-INSERT INTO t1 VALUES ('03:22:30'),('18:30:05');
-SELECT CONVERT_TZ(GREATEST(t, CURRENT_DATE()), '+02:00', '+10:00') FROM t1;
-CONVERT_TZ(GREATEST(t, CURRENT_DATE()), '+02:00', '+10:00')
-2014-01-22 11:22:30
-2014-01-23 02:30:05
-SELECT GREATEST(t, CURRENT_DATE()) FROM t1;
-GREATEST(t, CURRENT_DATE())
-2014-01-22 03:22:30
-2014-01-22 18:30:05
-DROP TABLE t1;
-SET TIMESTAMP=DEFAULT;
-#
-# MDEV-5504 Server crashes in String::length on SELECT with MONTHNAME, GROUP BY, ROLLUP
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1),(2);
-SELECT 1 FROM t1 GROUP BY MONTHNAME(0) WITH ROLLUP;
-1
-1
-1
-DROP TABLE t1;
-#
-# MDEV-6099 Bad results for DATE_ADD(.., INTERVAL 2000000000000000000.0 SECOND)
-#
-SELECT DATE_ADD('2001-01-01 10:20:30',INTERVAL 250000000000.0 SECOND) AS c1, DATE_ADD('2001-01-01 10:20:30',INTERVAL 2000000000000000000.0 SECOND) AS c2;
-c1 c2
-9923-03-10 22:47:10.0 NULL
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '2000000000000000000.0'
-#
-# MDEV-4838 Wrong metadata for DATE_ADD('string', INVERVAL)
-#
-SELECT DATE_ADD('2011-01-02 12:13:14', INTERVAL 1 MINUTE);
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def DATE_ADD('2011-01-02 12:13:14', INTERVAL 1 MINUTE) 254 19 19 Y 0 0 8
-DATE_ADD('2011-01-02 12:13:14', INTERVAL 1 MINUTE)
-2011-01-02 12:14:14
-#
-# MDEV-5450 Assertion `cached_field_ type == MYSQL_TYPE_STRING || ltime.time_type == MYSQL_TIMESTAMP_NONE || mysql_type_to_time_type(cached_field_type) == ltime.time_type' fails with IF, ISNULL, ADDDATE
-#
-CREATE TABLE t1 (a DATETIME, b DATE);
-INSERT INTO t1 VALUES (NULL, '2012-12-21');
-SELECT IF(1,ADDDATE(IFNULL(a,b),0),1) FROM t1;
-IF(1,ADDDATE(IFNULL(a,b),0),1)
-2012-12-21 00:00:00
-SELECT CAST(ADDDATE(IFNULL(a,b),0) AS CHAR) FROM t1;
-CAST(ADDDATE(IFNULL(a,b),0) AS CHAR)
-2012-12-21 00:00:00
-SELECT CAST(ADDDATE(COALESCE(a,b),0) AS CHAR) FROM t1;
-CAST(ADDDATE(COALESCE(a,b),0) AS CHAR)
-2012-12-21 00:00:00
-SELECT CAST(ADDDATE(CASE WHEN 0 THEN a ELSE b END,0) AS CHAR) FROM t1;
-CAST(ADDDATE(CASE WHEN 0 THEN a ELSE b END,0) AS CHAR)
-2012-12-21 00:00:00
-SELECT IF(1,ADDTIME(IFNULL(a,b),0),1) FROM t1;
-IF(1,ADDTIME(IFNULL(a,b),0),1)
-2012-12-21 00:00:00
-SELECT CAST(ADDTIME(IFNULL(a,b),0) AS CHAR) FROM t1;
-CAST(ADDTIME(IFNULL(a,b),0) AS CHAR)
-2012-12-21 00:00:00
-SELECT CAST(ADDTIME(COALESCE(a,b),0) AS CHAR) FROM t1;
-CAST(ADDTIME(COALESCE(a,b),0) AS CHAR)
-2012-12-21 00:00:00
-SELECT CAST(ADDTIME(CASE WHEN 0 THEN a ELSE b END,0) AS CHAR) FROM t1;
-CAST(ADDTIME(CASE WHEN 0 THEN a ELSE b END,0) AS CHAR)
-2012-12-21 00:00:00
-DROP TABLE t1;
-SET timestamp=unix_timestamp('2001-02-03 10:20:30');
-CREATE TABLE t1 (a DATETIME, b TIME);
-INSERT INTO t1 VALUES (NULL, '00:20:12');
-SELECT IF(1,ADDDATE(IFNULL(a,b),0),1) FROM t1;
-IF(1,ADDDATE(IFNULL(a,b),0),1)
-2001-02-03 00:20:12
-SELECT CAST(ADDDATE(IFNULL(a,b),0) AS CHAR) FROM t1;
-CAST(ADDDATE(IFNULL(a,b),0) AS CHAR)
-2001-02-03 00:20:12
-SELECT CAST(ADDDATE(COALESCE(a,b),0) AS CHAR) FROM t1;
-CAST(ADDDATE(COALESCE(a,b),0) AS CHAR)
-2001-02-03 00:20:12
-SELECT CAST(ADDDATE(CASE WHEN 0 THEN a ELSE b END,0) AS CHAR) FROM t1;
-CAST(ADDDATE(CASE WHEN 0 THEN a ELSE b END,0) AS CHAR)
-2001-02-03 00:20:12
-SELECT IF(1,ADDTIME(IFNULL(a,b),0),1) FROM t1;
-IF(1,ADDTIME(IFNULL(a,b),0),1)
-2001-02-03 00:20:12
-SELECT CAST(ADDTIME(IFNULL(a,b),0) AS CHAR) FROM t1;
-CAST(ADDTIME(IFNULL(a,b),0) AS CHAR)
-2001-02-03 00:20:12
-SELECT CAST(ADDTIME(COALESCE(a,b),0) AS CHAR) FROM t1;
-CAST(ADDTIME(COALESCE(a,b),0) AS CHAR)
-2001-02-03 00:20:12
-SELECT CAST(ADDTIME(CASE WHEN 0 THEN a ELSE b END,0) AS CHAR) FROM t1;
-CAST(ADDTIME(CASE WHEN 0 THEN a ELSE b END,0) AS CHAR)
-2001-02-03 00:20:12
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-# MDEV-5870 Assertion `ltime->neg == 0' fails with COALESCE, ADDDATE, MAKEDATE
-#
-CREATE TABLE t1 (dt DATETIME);
-INSERT INTO t1 VALUES ('2003-05-13 19:36:05'), ('2012-12-12 09:20:06');
-SELECT COALESCE(ADDDATE(MAKEDATE(2011,121), dt), '2006-09-12' ) FROM t1;
-COALESCE(ADDDATE(MAKEDATE(2011,121), dt), '2006-09-12' )
-2006-09-12
-2006-09-12
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-Warning 1441 Datetime function: datetime field overflow
-DROP TABLE t1;
-#
-# MDEV-6101 Hybrid functions do not add CURRENT_DATE when converting TIME to DATETIME
-#
-SET timestamp=UNIX_TIMESTAMP('2014-04-15 01:02:03');
-SELECT IF(1,TIME'10:20:30',DATE'2001-01-01');
-IF(1,TIME'10:20:30',DATE'2001-01-01')
-2014-04-15 10:20:30
-SELECT IFNULL(TIME'10:20:30',DATE'2001-01-01');
-IFNULL(TIME'10:20:30',DATE'2001-01-01')
-2014-04-15 10:20:30
-SELECT CASE WHEN 1 THEN TIME'10:20:30' ELSE DATE'2001-01-01' END;
-CASE WHEN 1 THEN TIME'10:20:30' ELSE DATE'2001-01-01' END
-2014-04-15 10:20:30
-SELECT COALESCE(TIME'10:20:30',DATE'2001-01-01');
-COALESCE(TIME'10:20:30',DATE'2001-01-01')
-2014-04-15 10:20:30
-SET timestamp=DEFAULT;
-#
-# MDEV-5750 Assertion `ltime->year == 0' fails on a query with EXTRACT DAY_MINUTE and TIME column
-#
-SET timestamp=UNIX_TIMESTAMP('2010-01-01 00:00:00');
-CREATE TABLE t1 ( d DATE, t TIME );
-INSERT INTO t1 VALUES ('2008-12-05','22:34:09'),('2005-03-27','14:26:02');
-SELECT EXTRACT(DAY_MINUTE FROM GREATEST(t,d)), GREATEST(t,d) FROM t1;
-EXTRACT(DAY_MINUTE FROM GREATEST(t,d)) GREATEST(t,d)
-12234 2010-01-01 22:34:09
-11426 2010-01-01 14:26:02
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-# MDEV-7221 from_days fails after null value
-#
-CREATE TABLE t1 (
-id INT(11) NOT NULL PRIMARY KEY,
-date1 DATE NULL DEFAULT NULL
-);
-INSERT INTO t1 VALUES (12, '2011-05-12');
-INSERT INTO t1 VALUES (13, NULL);
-INSERT INTO t1 VALUES (14, '2009-10-23');
-INSERT INTO t1 VALUES (15, '2014-10-30');
-INSERT INTO t1 VALUES (16, NULL);
-INSERT INTO t1 VALUES (17, NULL);
-INSERT INTO t1 VALUES (18, '2010-10-13');
-SELECT a.id,a.date1,FROM_DAYS(TO_DAYS(a.date1)-10) as date2, DATE_ADD(a.date1,INTERVAL -10 DAY),TO_DAYS(a.date1)-10 FROM t1 a ORDER BY a.id;
-id date1 date2 DATE_ADD(a.date1,INTERVAL -10 DAY) TO_DAYS(a.date1)-10
-12 2011-05-12 2011-05-02 2011-05-02 734624
-13 NULL NULL NULL NULL
-14 2009-10-23 2009-10-13 2009-10-13 734058
-15 2014-10-30 2014-10-20 2014-10-20 735891
-16 NULL NULL NULL NULL
-17 NULL NULL NULL NULL
-18 2010-10-13 2010-10-03 2010-10-03 734413
-DROP TABLE t1;
-#
-# MDEV-10524 Assertion `arg1_int >= 0' failed in Item_func_additive_op::result_precision()
-#
-SELECT 1 MOD ADDTIME( '13:58:57', '00:00:01' ) + 2;
-1 MOD ADDTIME( '13:58:57', '00:00:01' ) + 2
-3
-#
-# MDEV-11819 NO_ZERO_IN_DATE: Incorrect generated column value
-#
-SET sql_mode='NO_ZERO_IN_DATE';
-CREATE TABLE t1 (a TIME(6));
-INSERT INTO t1 SELECT timediff(timestamp'2008-12-31 23:59:59.000001',timestamp'2008-12-30 01:01:01.000002');
-SELECT * FROM t1;
-a
-46:58:57.999999
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-#
-# MDEV-13972 crash in Item_func_sec_to_time::get_date
-#
-DO TO_DAYS(SEC_TO_TIME(TIME(CEILING(UUID()))));
-DO TO_DAYS(SEC_TO_TIME(MAKEDATE('',RAND(~('')))));
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: ''
-Warning 1292 Truncated incorrect INTEGER value: ''
-Warning 1292 Truncated incorrect INTEGER value: ''
-Warning 1292 Truncated incorrect time value: '20000101'
-SELECT SEC_TO_TIME(MAKEDATE(0,RAND(~0)));
-SEC_TO_TIME(MAKEDATE(0,RAND(~0)))
-838:59:59
-Warnings:
-Warning 1292 Truncated incorrect time value: '20000101'
-#
-# End of 5.5 tests
-#
-#
-# MDEV-8205 timediff returns null when comparing decimal time to time string value
-#
-SELECT
-TIMEDIFF('2014-01-01 00:00:00' , '2014-01-01 01:00:00' ) AS str_str,
-TIMEDIFF('2014-01-01 00:00:00' , 20140101010000.000 ) AS str_dec,
-TIMEDIFF(20140101000000.000 , 20140101010000.000 ) AS dec_dec,
-TIMEDIFF(20140101000000.000 , '2014-01-01 01:00:00' ) AS dec_str;
-str_str str_dec dec_dec dec_str
--01:00:00 -01:00:00.000 -01:00:00.000 -01:00:00.000
-SELECT
-TIMEDIFF('2014-01-01 00:00:00' , '2014-01-02 01:00:00' ) AS str_str,
-TIMEDIFF('2014-01-01 00:00:00' , 20140102010000.000 ) AS str_dec,
-TIMEDIFF(20140101000000.000 , 20140102010000.000 ) AS dec_dec,
-TIMEDIFF(20140101000000.000 , '2014-01-02 01:00:00' ) AS dec_str;
-str_str str_dec dec_dec dec_str
--25:00:00 -25:00:00.000 -25:00:00.000 -25:00:00.000
-SELECT
-TIMEDIFF('2014-01-01 00:00:00' , '2014-02-02 01:00:00' ) AS str_str,
-TIMEDIFF('2014-01-01 00:00:00' , 20140202010000.000 ) AS str_dec,
-TIMEDIFF(20140101000000.000 , 20140202010000.000 ) AS dec_dec,
-TIMEDIFF(20140101000000.000 , '2014-02-02 01:00:00' ) AS dec_str;
-str_str str_dec dec_dec dec_str
--769:00:00 -769:00:00.000 -769:00:00.000 -769:00:00.000
-SELECT
-TIMEDIFF('2014-01-01 00:00:00' , '2014-03-02 01:00:00' ) AS str_str,
-TIMEDIFF('2014-01-01 00:00:00' , 20140302010000.000 ) AS str_dec,
-TIMEDIFF(20140101000000.000 , 20140302010000.000 ) AS dec_dec,
-TIMEDIFF(20140101000000.000 , '2014-03-02 01:00:00' ) AS dec_str;
-str_str str_dec dec_dec dec_str
--838:59:59 -838:59:59.999 -838:59:59.999 -838:59:59.999
-Warnings:
-Warning 1292 Truncated incorrect time value: '-1441:00:00'
-Warning 1292 Truncated incorrect time value: '-1441:00:00'
-Warning 1292 Truncated incorrect time value: '-1441:00:00'
-Warning 1292 Truncated incorrect time value: '-1441:00:00'
-#
-# MDEV-10787 Assertion `ltime->neg == 0' failed in void date_to_datetime(MYSQL_TIME*)
-#
-CREATE TABLE t1 (d DATE);
-INSERT INTO t1 VALUES ('2005-07-20'),('2012-12-21');
-SELECT REPLACE( ADDDATE( d, INTERVAL 0.6732771076944444 HOUR_SECOND ), '2', 'x' ) FROM t1;
-REPLACE( ADDDATE( d, INTERVAL 0.6732771076944444 HOUR_SECOND ), '2', 'x' )
-NULL
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-Warning 1441 Datetime function: datetime field overflow
-SELECT REPLACE( ADDDATE( d, INTERVAL '0.6732771076944444' HOUR_SECOND ), '2', 'x' ) FROM t1;
-REPLACE( ADDDATE( d, INTERVAL '0.6732771076944444' HOUR_SECOND ), '2', 'x' )
-NULL
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-Warning 1441 Datetime function: datetime field overflow
-SELECT CAST(ADDDATE( d, INTERVAL 6732771076944444 SECOND) AS CHAR) FROM t1;
-CAST(ADDDATE( d, INTERVAL 6732771076944444 SECOND) AS CHAR)
-NULL
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-Warning 1441 Datetime function: datetime field overflow
-SELECT CAST(ADDDATE( d, INTERVAL '67327710769444:44' HOUR_SECOND) AS CHAR) FROM t1;
-CAST(ADDDATE( d, INTERVAL '67327710769444:44' HOUR_SECOND) AS CHAR)
-NULL
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-Warning 1441 Datetime function: datetime field overflow
-SELECT CAST(ADDDATE( d, INTERVAL '673277107694:44:44' HOUR_SECOND) AS CHAR) FROM t1;
-CAST(ADDDATE( d, INTERVAL '673277107694:44:44' HOUR_SECOND) AS CHAR)
-NULL
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-Warning 1441 Datetime function: datetime field overflow
-DROP TABLE t1;
-SELECT ADDDATE(DATE'0000-01-01', INTERVAL '3652423:23:59:59' DAY_SECOND);
-ADDDATE(DATE'0000-01-01', INTERVAL '3652423:23:59:59' DAY_SECOND)
-9999-12-31 23:59:59
-SELECT ADDDATE(DATE'0000-01-01', INTERVAL '0:87658175:59:59' DAY_SECOND);
-ADDDATE(DATE'0000-01-01', INTERVAL '0:87658175:59:59' DAY_SECOND)
-9999-12-31 23:59:59
-SELECT ADDDATE(DATE'0000-01-01', INTERVAL '0:0:5259490559:59' DAY_SECOND);
-ADDDATE(DATE'0000-01-01', INTERVAL '0:0:5259490559:59' DAY_SECOND)
-9999-12-31 23:59:59
-SELECT ADDDATE(DATE'0000-01-01', INTERVAL '0:0:0:315569433599' DAY_SECOND);
-ADDDATE(DATE'0000-01-01', INTERVAL '0:0:0:315569433599' DAY_SECOND)
-9999-12-31 23:59:59
-SELECT ADDDATE(DATE'0000-01-01', INTERVAL '3652423:0:0:315569433559' DAY_SECOND);
-ADDDATE(DATE'0000-01-01', INTERVAL '3652423:0:0:315569433559' DAY_SECOND)
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-SELECT ADDDATE(DATE'0000-01-01', INTERVAL '0:87658175:0:315569433559' DAY_SECOND);
-ADDDATE(DATE'0000-01-01', INTERVAL '0:87658175:0:315569433559' DAY_SECOND)
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-SELECT ADDDATE(DATE'0000-01-01', INTERVAL '0:0:5259490559:315569433599' DAY_SECOND);
-ADDDATE(DATE'0000-01-01', INTERVAL '0:0:5259490559:315569433599' DAY_SECOND)
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-#
-# MDEV-13202 Assertion `ltime->neg == 0' failed in date_to_datetime
-#
-CREATE TABLE t1 (i INT, d DATE);
-INSERT INTO t1 VALUES (1, '1970-01-01');
-SELECT MAX(NULLIF(i,1)) FROM t1 ORDER BY DATE_SUB(d,INTERVAL 17300000 HOUR);
-MAX(NULLIF(i,1))
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-DROP TABLE t1;
-CREATE TABLE t1 (i INT, d DATE);
-INSERT INTO t1 VALUES (1, '1970-01-01');
-SELECT CONCAT(DATE_SUB(d, INTERVAL 17300000 HOUR)) FROM t1;
-CONCAT(DATE_SUB(d, INTERVAL 17300000 HOUR))
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-DROP TABLE t1;
-SELECT CONCAT(DATE_SUB(TIMESTAMP'1970-01-01 00:00:00', INTERVAL 17300000 HOUR));
-CONCAT(DATE_SUB(TIMESTAMP'1970-01-01 00:00:00', INTERVAL 17300000 HOUR))
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-10317 EXCTACT(MINUTE_MICROSECOND) truncates data
-#
-CREATE TABLE t1 (a DATETIME(6));
-INSERT INTO t1 VALUES ('1999-12-31 23:59:59.999999');
-SELECT
-a,
-EXTRACT(YEAR FROM a),
-EXTRACT(YEAR_MONTH FROM a),
-EXTRACT(QUARTER FROM a),
-EXTRACT(MONTH FROM a),
-EXTRACT(WEEK FROM a),
-EXTRACT(DAY FROM a),
-EXTRACT(DAY_HOUR FROM a),
-EXTRACT(DAY_MINUTE FROM a),
-EXTRACT(DAY_SECOND FROM a),
-EXTRACT(HOUR FROM a),
-EXTRACT(HOUR_MINUTE FROM a),
-EXTRACT(HOUR_SECOND FROM a),
-EXTRACT(MINUTE FROM a),
-EXTRACT(MINUTE_SECOND FROM a),
-EXTRACT(SECOND FROM a),
-EXTRACT(MICROSECOND FROM a),
-EXTRACT(DAY_MICROSECOND FROM a),
-EXTRACT(HOUR_MICROSECOND FROM a),
-EXTRACT(MINUTE_MICROSECOND FROM a),
-EXTRACT(SECOND_MICROSECOND FROM a)
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a a 12 26 26 Y 128 6 63
-def EXTRACT(YEAR FROM a) 3 4 4 Y 32896 0 63
-def EXTRACT(YEAR_MONTH FROM a) 3 6 6 Y 32896 0 63
-def EXTRACT(QUARTER FROM a) 3 2 1 Y 32896 0 63
-def EXTRACT(MONTH FROM a) 3 2 2 Y 32896 0 63
-def EXTRACT(WEEK FROM a) 3 2 2 Y 32896 0 63
-def EXTRACT(DAY FROM a) 3 2 2 Y 32896 0 63
-def EXTRACT(DAY_HOUR FROM a) 3 5 4 Y 32896 0 63
-def EXTRACT(DAY_MINUTE FROM a) 3 7 6 Y 32896 0 63
-def EXTRACT(DAY_SECOND FROM a) 3 9 8 Y 32896 0 63
-def EXTRACT(HOUR FROM a) 3 3 2 Y 32896 0 63
-def EXTRACT(HOUR_MINUTE FROM a) 3 5 4 Y 32896 0 63
-def EXTRACT(HOUR_SECOND FROM a) 3 7 6 Y 32896 0 63
-def EXTRACT(MINUTE FROM a) 3 3 2 Y 32896 0 63
-def EXTRACT(MINUTE_SECOND FROM a) 3 5 4 Y 32896 0 63
-def EXTRACT(SECOND FROM a) 3 3 2 Y 32896 0 63
-def EXTRACT(MICROSECOND FROM a) 3 7 6 Y 32896 0 63
-def EXTRACT(DAY_MICROSECOND FROM a) 8 15 14 Y 32896 0 63
-def EXTRACT(HOUR_MICROSECOND FROM a) 8 13 12 Y 32896 0 63
-def EXTRACT(MINUTE_MICROSECOND FROM a) 8 11 10 Y 32896 0 63
-def EXTRACT(SECOND_MICROSECOND FROM a) 3 9 8 Y 32896 0 63
-a 1999-12-31 23:59:59.999999
-EXTRACT(YEAR FROM a) 1999
-EXTRACT(YEAR_MONTH FROM a) 199912
-EXTRACT(QUARTER FROM a) 4
-EXTRACT(MONTH FROM a) 12
-EXTRACT(WEEK FROM a) 52
-EXTRACT(DAY FROM a) 31
-EXTRACT(DAY_HOUR FROM a) 3123
-EXTRACT(DAY_MINUTE FROM a) 312359
-EXTRACT(DAY_SECOND FROM a) 31235959
-EXTRACT(HOUR FROM a) 23
-EXTRACT(HOUR_MINUTE FROM a) 2359
-EXTRACT(HOUR_SECOND FROM a) 235959
-EXTRACT(MINUTE FROM a) 59
-EXTRACT(MINUTE_SECOND FROM a) 5959
-EXTRACT(SECOND FROM a) 59
-EXTRACT(MICROSECOND FROM a) 999999
-EXTRACT(DAY_MICROSECOND FROM a) 31235959999999
-EXTRACT(HOUR_MICROSECOND FROM a) 235959999999
-EXTRACT(MINUTE_MICROSECOND FROM a) 5959999999
-EXTRACT(SECOND_MICROSECOND FROM a) 59999999
-CREATE TABLE t2 AS SELECT
-a,
-EXTRACT(YEAR FROM a),
-EXTRACT(YEAR_MONTH FROM a),
-EXTRACT(QUARTER FROM a),
-EXTRACT(MONTH FROM a),
-EXTRACT(WEEK FROM a),
-EXTRACT(DAY FROM a),
-EXTRACT(DAY_HOUR FROM a),
-EXTRACT(DAY_MINUTE FROM a),
-EXTRACT(DAY_SECOND FROM a),
-EXTRACT(HOUR FROM a),
-EXTRACT(HOUR_MINUTE FROM a),
-EXTRACT(HOUR_SECOND FROM a),
-EXTRACT(MINUTE FROM a),
-EXTRACT(MINUTE_SECOND FROM a),
-EXTRACT(SECOND FROM a),
-EXTRACT(MICROSECOND FROM a),
-EXTRACT(DAY_MICROSECOND FROM a),
-EXTRACT(HOUR_MICROSECOND FROM a),
-EXTRACT(MINUTE_MICROSECOND FROM a),
-EXTRACT(SECOND_MICROSECOND FROM a)
-FROM t1;
-SELECT * FROM t2;
-a 1999-12-31 23:59:59.999999
-EXTRACT(YEAR FROM a) 1999
-EXTRACT(YEAR_MONTH FROM a) 199912
-EXTRACT(QUARTER FROM a) 4
-EXTRACT(MONTH FROM a) 12
-EXTRACT(WEEK FROM a) 52
-EXTRACT(DAY FROM a) 31
-EXTRACT(DAY_HOUR FROM a) 3123
-EXTRACT(DAY_MINUTE FROM a) 312359
-EXTRACT(DAY_SECOND FROM a) 31235959
-EXTRACT(HOUR FROM a) 23
-EXTRACT(HOUR_MINUTE FROM a) 2359
-EXTRACT(HOUR_SECOND FROM a) 235959
-EXTRACT(MINUTE FROM a) 59
-EXTRACT(MINUTE_SECOND FROM a) 5959
-EXTRACT(SECOND FROM a) 59
-EXTRACT(MICROSECOND FROM a) 999999
-EXTRACT(DAY_MICROSECOND FROM a) 31235959999999
-EXTRACT(HOUR_MICROSECOND FROM a) 235959999999
-EXTRACT(MINUTE_MICROSECOND FROM a) 5959999999
-EXTRACT(SECOND_MICROSECOND FROM a) 59999999
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` datetime(6) DEFAULT NULL,
- `EXTRACT(YEAR FROM a)` int(4) DEFAULT NULL,
- `EXTRACT(YEAR_MONTH FROM a)` int(6) DEFAULT NULL,
- `EXTRACT(QUARTER FROM a)` int(2) DEFAULT NULL,
- `EXTRACT(MONTH FROM a)` int(2) DEFAULT NULL,
- `EXTRACT(WEEK FROM a)` int(2) DEFAULT NULL,
- `EXTRACT(DAY FROM a)` int(2) DEFAULT NULL,
- `EXTRACT(DAY_HOUR FROM a)` int(5) DEFAULT NULL,
- `EXTRACT(DAY_MINUTE FROM a)` int(7) DEFAULT NULL,
- `EXTRACT(DAY_SECOND FROM a)` int(9) DEFAULT NULL,
- `EXTRACT(HOUR FROM a)` int(3) DEFAULT NULL,
- `EXTRACT(HOUR_MINUTE FROM a)` int(5) DEFAULT NULL,
- `EXTRACT(HOUR_SECOND FROM a)` int(7) DEFAULT NULL,
- `EXTRACT(MINUTE FROM a)` int(3) DEFAULT NULL,
- `EXTRACT(MINUTE_SECOND FROM a)` int(5) DEFAULT NULL,
- `EXTRACT(SECOND FROM a)` int(3) DEFAULT NULL,
- `EXTRACT(MICROSECOND FROM a)` int(7) DEFAULT NULL,
- `EXTRACT(DAY_MICROSECOND FROM a)` bigint(15) DEFAULT NULL,
- `EXTRACT(HOUR_MICROSECOND FROM a)` bigint(13) DEFAULT NULL,
- `EXTRACT(MINUTE_MICROSECOND FROM a)` bigint(11) DEFAULT NULL,
- `EXTRACT(SECOND_MICROSECOND FROM a)` int(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a TIME(6));
-INSERT INTO t1 VALUES ('-838:59:59.999999'),('838:59:59.999999');
-SELECT
-a,
-EXTRACT(YEAR FROM a),
-EXTRACT(YEAR_MONTH FROM a),
-EXTRACT(QUARTER FROM a),
-EXTRACT(MONTH FROM a),
-EXTRACT(WEEK FROM a),
-EXTRACT(DAY FROM a),
-EXTRACT(DAY_HOUR FROM a),
-EXTRACT(DAY_MINUTE FROM a),
-EXTRACT(DAY_SECOND FROM a),
-EXTRACT(HOUR FROM a),
-EXTRACT(HOUR_MINUTE FROM a),
-EXTRACT(HOUR_SECOND FROM a),
-EXTRACT(MINUTE FROM a),
-EXTRACT(MINUTE_SECOND FROM a),
-EXTRACT(SECOND FROM a),
-EXTRACT(MICROSECOND FROM a),
-EXTRACT(DAY_MICROSECOND FROM a),
-EXTRACT(HOUR_MICROSECOND FROM a),
-EXTRACT(MINUTE_MICROSECOND FROM a),
-EXTRACT(SECOND_MICROSECOND FROM a)
-FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a a 11 17 17 Y 128 6 63
-def EXTRACT(YEAR FROM a) 3 4 1 Y 32896 0 63
-def EXTRACT(YEAR_MONTH FROM a) 3 6 1 Y 32896 0 63
-def EXTRACT(QUARTER FROM a) 3 2 1 Y 32896 0 63
-def EXTRACT(MONTH FROM a) 3 2 1 Y 32896 0 63
-def EXTRACT(WEEK FROM a) 3 2 9 Y 32896 0 63
-def EXTRACT(DAY FROM a) 3 2 2 Y 32896 0 63
-def EXTRACT(DAY_HOUR FROM a) 3 5 5 Y 32896 0 63
-def EXTRACT(DAY_MINUTE FROM a) 3 7 7 Y 32896 0 63
-def EXTRACT(DAY_SECOND FROM a) 3 9 9 Y 32896 0 63
-def EXTRACT(HOUR FROM a) 3 3 3 Y 32896 0 63
-def EXTRACT(HOUR_MINUTE FROM a) 3 5 5 Y 32896 0 63
-def EXTRACT(HOUR_SECOND FROM a) 3 7 7 Y 32896 0 63
-def EXTRACT(MINUTE FROM a) 3 3 3 Y 32896 0 63
-def EXTRACT(MINUTE_SECOND FROM a) 3 5 5 Y 32896 0 63
-def EXTRACT(SECOND FROM a) 3 3 3 Y 32896 0 63
-def EXTRACT(MICROSECOND FROM a) 3 7 7 Y 32896 0 63
-def EXTRACT(DAY_MICROSECOND FROM a) 8 15 15 Y 32896 0 63
-def EXTRACT(HOUR_MICROSECOND FROM a) 8 13 13 Y 32896 0 63
-def EXTRACT(MINUTE_MICROSECOND FROM a) 8 11 11 Y 32896 0 63
-def EXTRACT(SECOND_MICROSECOND FROM a) 3 9 9 Y 32896 0 63
-a -838:59:59.999999
-EXTRACT(YEAR FROM a) 0
-EXTRACT(YEAR_MONTH FROM a) 0
-EXTRACT(QUARTER FROM a) 0
-EXTRACT(MONTH FROM a) 0
-EXTRACT(WEEK FROM a) 613566757
-EXTRACT(DAY FROM a) 34
-EXTRACT(DAY_HOUR FROM a) -3422
-EXTRACT(DAY_MINUTE FROM a) -342259
-EXTRACT(DAY_SECOND FROM a) -34225959
-EXTRACT(HOUR FROM a) -22
-EXTRACT(HOUR_MINUTE FROM a) -2259
-EXTRACT(HOUR_SECOND FROM a) -225959
-EXTRACT(MINUTE FROM a) -59
-EXTRACT(MINUTE_SECOND FROM a) -5959
-EXTRACT(SECOND FROM a) -59
-EXTRACT(MICROSECOND FROM a) -999999
-EXTRACT(DAY_MICROSECOND FROM a) -34225959999999
-EXTRACT(HOUR_MICROSECOND FROM a) -225959999999
-EXTRACT(MINUTE_MICROSECOND FROM a) -5959999999
-EXTRACT(SECOND_MICROSECOND FROM a) -59999999
-a 838:59:59.999999
-EXTRACT(YEAR FROM a) 0
-EXTRACT(YEAR_MONTH FROM a) 0
-EXTRACT(QUARTER FROM a) 0
-EXTRACT(MONTH FROM a) 0
-EXTRACT(WEEK FROM a) 613566757
-EXTRACT(DAY FROM a) 34
-EXTRACT(DAY_HOUR FROM a) 3422
-EXTRACT(DAY_MINUTE FROM a) 342259
-EXTRACT(DAY_SECOND FROM a) 34225959
-EXTRACT(HOUR FROM a) 22
-EXTRACT(HOUR_MINUTE FROM a) 2259
-EXTRACT(HOUR_SECOND FROM a) 225959
-EXTRACT(MINUTE FROM a) 59
-EXTRACT(MINUTE_SECOND FROM a) 5959
-EXTRACT(SECOND FROM a) 59
-EXTRACT(MICROSECOND FROM a) 999999
-EXTRACT(DAY_MICROSECOND FROM a) 34225959999999
-EXTRACT(HOUR_MICROSECOND FROM a) 225959999999
-EXTRACT(MINUTE_MICROSECOND FROM a) 5959999999
-EXTRACT(SECOND_MICROSECOND FROM a) 59999999
-CREATE TABLE t2 AS SELECT
-a,
-EXTRACT(YEAR FROM a),
-EXTRACT(YEAR_MONTH FROM a),
-EXTRACT(QUARTER FROM a),
-EXTRACT(MONTH FROM a),
-EXTRACT(WEEK FROM a),
-EXTRACT(DAY FROM a),
-EXTRACT(DAY_HOUR FROM a),
-EXTRACT(DAY_MINUTE FROM a),
-EXTRACT(DAY_SECOND FROM a),
-EXTRACT(HOUR FROM a),
-EXTRACT(HOUR_MINUTE FROM a),
-EXTRACT(HOUR_SECOND FROM a),
-EXTRACT(MINUTE FROM a),
-EXTRACT(MINUTE_SECOND FROM a),
-EXTRACT(SECOND FROM a),
-EXTRACT(MICROSECOND FROM a),
-EXTRACT(DAY_MICROSECOND FROM a),
-EXTRACT(HOUR_MICROSECOND FROM a),
-EXTRACT(MINUTE_MICROSECOND FROM a),
-EXTRACT(SECOND_MICROSECOND FROM a)
-FROM t1;
-SELECT * FROM t2;
-a -838:59:59.999999
-EXTRACT(YEAR FROM a) 0
-EXTRACT(YEAR_MONTH FROM a) 0
-EXTRACT(QUARTER FROM a) 0
-EXTRACT(MONTH FROM a) 0
-EXTRACT(WEEK FROM a) 613566757
-EXTRACT(DAY FROM a) 34
-EXTRACT(DAY_HOUR FROM a) -3422
-EXTRACT(DAY_MINUTE FROM a) -342259
-EXTRACT(DAY_SECOND FROM a) -34225959
-EXTRACT(HOUR FROM a) -22
-EXTRACT(HOUR_MINUTE FROM a) -2259
-EXTRACT(HOUR_SECOND FROM a) -225959
-EXTRACT(MINUTE FROM a) -59
-EXTRACT(MINUTE_SECOND FROM a) -5959
-EXTRACT(SECOND FROM a) -59
-EXTRACT(MICROSECOND FROM a) -999999
-EXTRACT(DAY_MICROSECOND FROM a) -34225959999999
-EXTRACT(HOUR_MICROSECOND FROM a) -225959999999
-EXTRACT(MINUTE_MICROSECOND FROM a) -5959999999
-EXTRACT(SECOND_MICROSECOND FROM a) -59999999
-a 838:59:59.999999
-EXTRACT(YEAR FROM a) 0
-EXTRACT(YEAR_MONTH FROM a) 0
-EXTRACT(QUARTER FROM a) 0
-EXTRACT(MONTH FROM a) 0
-EXTRACT(WEEK FROM a) 613566757
-EXTRACT(DAY FROM a) 34
-EXTRACT(DAY_HOUR FROM a) 3422
-EXTRACT(DAY_MINUTE FROM a) 342259
-EXTRACT(DAY_SECOND FROM a) 34225959
-EXTRACT(HOUR FROM a) 22
-EXTRACT(HOUR_MINUTE FROM a) 2259
-EXTRACT(HOUR_SECOND FROM a) 225959
-EXTRACT(MINUTE FROM a) 59
-EXTRACT(MINUTE_SECOND FROM a) 5959
-EXTRACT(SECOND FROM a) 59
-EXTRACT(MICROSECOND FROM a) 999999
-EXTRACT(DAY_MICROSECOND FROM a) 34225959999999
-EXTRACT(HOUR_MICROSECOND FROM a) 225959999999
-EXTRACT(MINUTE_MICROSECOND FROM a) 5959999999
-EXTRACT(SECOND_MICROSECOND FROM a) 59999999
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` time(6) DEFAULT NULL,
- `EXTRACT(YEAR FROM a)` int(4) DEFAULT NULL,
- `EXTRACT(YEAR_MONTH FROM a)` int(6) DEFAULT NULL,
- `EXTRACT(QUARTER FROM a)` int(2) DEFAULT NULL,
- `EXTRACT(MONTH FROM a)` int(2) DEFAULT NULL,
- `EXTRACT(WEEK FROM a)` int(2) DEFAULT NULL,
- `EXTRACT(DAY FROM a)` int(2) DEFAULT NULL,
- `EXTRACT(DAY_HOUR FROM a)` int(5) DEFAULT NULL,
- `EXTRACT(DAY_MINUTE FROM a)` int(7) DEFAULT NULL,
- `EXTRACT(DAY_SECOND FROM a)` int(9) DEFAULT NULL,
- `EXTRACT(HOUR FROM a)` int(3) DEFAULT NULL,
- `EXTRACT(HOUR_MINUTE FROM a)` int(5) DEFAULT NULL,
- `EXTRACT(HOUR_SECOND FROM a)` int(7) DEFAULT NULL,
- `EXTRACT(MINUTE FROM a)` int(3) DEFAULT NULL,
- `EXTRACT(MINUTE_SECOND FROM a)` int(5) DEFAULT NULL,
- `EXTRACT(SECOND FROM a)` int(3) DEFAULT NULL,
- `EXTRACT(MICROSECOND FROM a)` int(7) DEFAULT NULL,
- `EXTRACT(DAY_MICROSECOND FROM a)` bigint(15) DEFAULT NULL,
- `EXTRACT(HOUR_MICROSECOND FROM a)` bigint(13) DEFAULT NULL,
- `EXTRACT(MINUTE_MICROSECOND FROM a)` bigint(11) DEFAULT NULL,
- `EXTRACT(SECOND_MICROSECOND FROM a)` int(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1,t2;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12515 Wrong value when storing DATE_ADD() and ADDTIME() to a numeric field
-#
-SET sql_mode='';
-CREATE TABLE t1 AS SELECT
-DATE_ADD('2001-01-01',INTERVAL 1 DAY) AS c1,
-ADDTIME('10:20:30',1) AS c2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(19) DEFAULT NULL,
- `c2` varchar(26) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-c1 c2
-2001-01-02 10:20:31
-DROP TABLE t1;
-CREATE TABLE t2 (c INT);
-INSERT INTO t2 SELECT DATE_ADD('2001-01-01',INTERVAL 1 DAY);
-Warnings:
-Warning 1265 Data truncated for column 'c' at row 1
-INSERT INTO t2 VALUES ('2001-01-02');
-Warnings:
-Warning 1265 Data truncated for column 'c' at row 1
-SELECT * FROM t2;
-c
-2001
-2001
-DROP TABLE t2;
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 VALUES (ADDTIME('10:20:30',1));
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-INSERT INTO t2 VALUES ('10:20:31');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t2;
-a
-10
-10
-DROP TABLE t2;
-SET sql_mode=DEFAULT;
-#
-# MDEV-12860 Out-of-range error on CREATE..SELECT with a view using MAX and EXTRACT(MINUTE_MICROSECOND..)
-#
-SET sql_mode=STRICT_ALL_TABLES;
-CREATE TABLE t1 (
-id bigint(11) NOT NULL PRIMARY KEY,
-dt datetime(6)
-);
-INSERT INTO t1 VALUES (1,'2001-01-01 11:22:33.123456');
-CREATE OR REPLACE VIEW v1 AS SELECT EXTRACT(MINUTE_MICROSECOND FROM dt) AS dt2 FROM t1;
-DESCRIBE v1;
-Field Type Null Key Default Extra
-dt2 bigint(11) YES NULL
-SELECT * FROM v1;
-dt2
-2233123456
-CREATE TABLE t2 AS SELECT MAX(dt2) FROM v1;
-DESCRIBE t2;
-Field Type Null Key Default Extra
-MAX(dt2) bigint(11) YES NULL
-SELECT * FROM t2;
-MAX(dt2)
-2233123456
-DROP TABLE t2;
-DROP VIEW v1;
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-#
-# MDEV-12866 Out-of-range error with CREATE..SELECT..TO_SECONDS(NOW())
-#
-SET sql_mode=STRICT_ALL_TABLES;
-CREATE TABLE t1 AS SELECT TO_SECONDS('9999-12-31 23:59:59');
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `TO_SECONDS('9999-12-31 23:59:59')` bigint(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-#
-# MDEV-13966 Parameter data type control for Item_temporal_func
-#
-SELECT FROM_DAYS(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'from_days'
-SELECT MAKEDATE(ROW(1,1),1);
-ERROR HY000: Illegal parameter data type row for operation 'makedate'
-SELECT MAKEDATE(1, ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'makedate'
-SELECT LAST_DAY(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'last_day'
-SELECT SEC_TO_TIME(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'sec_to_time'
-SELECT TIMEDIFF(ROW(1,1),1);
-ERROR HY000: Illegal parameter data type row for operation 'timediff'
-SELECT TIMEDIFF(1, ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'timediff'
-SELECT MAKETIME(ROW(1,1),1,1);
-ERROR HY000: Illegal parameter data type row for operation 'maketime'
-SELECT MAKETIME(1, ROW(1,1), 1);
-ERROR HY000: Illegal parameter data type row for operation 'maketime'
-SELECT MAKETIME(1, 1, ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'maketime'
-SELECT FROM_UNIXTIME(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'from_unixtime'
-SELECT CONVERT_TZ(ROW(1,1),1,1);
-ERROR HY000: Illegal parameter data type row for operation 'convert_tz'
-SELECT CONVERT_TZ(1, ROW(1,1), 1);
-ERROR HY000: Illegal parameter data type row for operation 'convert_tz'
-SELECT CONVERT_TZ(1, 1, ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'convert_tz'
-#
-# MDEV-15340 Wrong result HOUR(case_expression_with_time_and_datetime)
-#
-SET TIMESTAMP=UNIX_TIMESTAMP('2018-02-17 01:02:03');
-SELECT
-COALESCE(TIME'800:00:00', NOW()) AS c,
-HOUR(COALESCE(TIME'800:00:00',NOW())) AS hc;
-c hc
-2018-03-22 08:00:00 8
-SELECT
-CASE WHEN TRUE THEN TIME'800:00:00' ELSE NOW() END AS c,
-HOUR(CASE WHEN TRUE THEN TIME'800:00:00' ELSE NOW() END) AS hc;
-c hc
-2018-03-22 08:00:00 8
-SELECT
-IFNULL(TIME'800:00:00', NOW()) AS c,
-HOUR(IFNULL(TIME'800:00:00', NOW())) AS hc;
-c hc
-2018-03-22 08:00:00 8
-SELECT
-IF(TRUE,TIME'800:00:00', NOW()) AS c,
-HOUR(IF(TRUE,TIME'800:00:00', NOW())) AS hc;
-c hc
-2018-03-22 08:00:00 8
-SELECT
-ADDTIME(TIME'10:20:30', TIMESTAMP'2001-01-01 00:00:00') AS c1,
-ADDTIME(TIME'10:20:30', COALESCE(TIMESTAMP'2001-01-01 00:00:00',TIMESTAMP'2001-01-01 00:00:00')) AS c2,
-ADDTIME(TIME'10:20:30', DATE'2001-01-01') AS c3,
-ADDTIME(TIME'10:20:30', COALESCE(DATE'2001-01-01',TIMESTAMP'2001-01-01 00:00:00')) AS c4;
-c1 c2 c3 c4
-NULL NULL NULL NULL
-SELECT
-HOUR(TIMESTAMP'0000-00-01 10:00:00') AS h0,
-TIME_TO_SEC(TIMESTAMP'0000-00-01 10:00:00') AS tts0,
-TIME_TO_SEC(TIMESTAMP'0000-00-01 10:00:00.1') AS tts1,
-CAST(TIMESTAMP'0000-00-01 10:00:00' AS TIME) AS c0,
-CAST(TIMESTAMP'0000-00-01 10:00:00.1' AS TIME(1)) AS c2;
-h0 tts0 tts1 c0 c2
-10 36000 36000.1 10:00:00 10:00:00.1
-SET TIMESTAMP=DEFAULT;
-#
-# MDEV-15363 Wrong result for CAST(LAST_DAY(TIME'00:00:00') AS TIME)
-#
-SET TIMESTAMP=UNIX_TIMESTAMP('2018-02-17 01:02:03');
-SELECT
-LAST_DAY(TIME'00:00:00') AS c1,
-CAST(CAST(LAST_DAY(TIME'00:00:00') AS DATE) AS TIME) AS c2,
-CAST(LAST_DAY(TIME'00:00:00') AS TIME) AS c3;
-c1 c2 c3
-2018-02-28 00:00:00 00:00:00
-SET TIMESTAMP=DEFAULT;
-#
-# MDEV-15702 Remove the use of STRING_ITEM from Item_func_date_format::fix_length_and_dec()
-#
-SELECT DATE_FORMAT('2001-01-01',POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'date_format'
-SELECT DATE_FORMAT(POINT(1,1),'10');
-ERROR HY000: Illegal parameter data type geometry for operation 'date_format'
-SELECT DATE_FORMAT('2001-01-01',ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'date_format'
-SELECT DATE_FORMAT(ROW(1,1),'10');
-ERROR HY000: Illegal parameter data type row for operation 'date_format'
-SELECT DATE_FORMAT('2001-01-01','%Y',POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'date_format'
-SELECT DATE_FORMAT('2001-01-01','%Y',ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'date_format'
-SELECT DATE_FORMAT('2001-01-01','%Y',@unknown_user_variable);
-DATE_FORMAT('2001-01-01','%Y',@unknown_user_variable)
-2001
-Warnings:
-Warning 1649 Unknown locale: 'NULL'
-CREATE TABLE t1 AS SELECT
-DATE_FORMAT('2001-01-01',NULL) AS c0,
-DATE_FORMAT('2001-01-01','10') AS c1,
-DATE_FORMAT('2001-01-01',10) AS c2,
-DATE_FORMAT('2001-01-01',10.0) AS c3,
-DATE_FORMAT('2001-01-01',10e0) AS c4,
-DATE_FORMAT('2001-01-01',TIME'10:20:30') AS c5;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c0` char(0) DEFAULT NULL,
- `c1` varchar(2) DEFAULT NULL,
- `c2` varchar(2) DEFAULT NULL,
- `c3` varchar(4) DEFAULT NULL,
- `c4` varchar(2) DEFAULT NULL,
- `c5` varchar(8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE IMMEDIATE
-"CREATE TABLE t1 AS SELECT
- DATE_FORMAT('2001-01-01',?) AS c0,
- DATE_FORMAT('2001-01-01',?) AS c1,
- DATE_FORMAT('2001-01-01',?) AS c2,
- DATE_FORMAT('2001-01-01',?) AS c3,
- DATE_FORMAT('2001-01-01',?) AS c4,
- DATE_FORMAT('2001-01-01',?) AS c5"
-USING NULL, '10', 10, 10.0, 10e0, TIME'10:20:30';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c0` char(0) DEFAULT NULL,
- `c1` varchar(2) DEFAULT NULL,
- `c2` varchar(2) DEFAULT NULL,
- `c3` varchar(4) DEFAULT NULL,
- `c4` varchar(2) DEFAULT NULL,
- `c5` varchar(100) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
diff --git a/mysql-test/r/func_time_hires.result b/mysql-test/r/func_time_hires.result
deleted file mode 100644
index 0f822456724..00000000000
--- a/mysql-test/r/func_time_hires.result
+++ /dev/null
@@ -1,208 +0,0 @@
-set time_zone='+03:00';
-set timestamp=unix_timestamp('2011-01-01 01:01:01.123456');
-select sec_to_time(12345), sec_to_time(12345.6789), sec_to_time(1234567e-2);
-sec_to_time(12345) 03:25:45
-sec_to_time(12345.6789) 03:25:45.6789
-sec_to_time(1234567e-2) 03:25:45.670000
-select now(), curtime(0), utc_timestamp(1), utc_time(2), current_time(3),
-current_timestamp(4), localtime(5), localtimestamp(6), time_to_sec('12:34:56'),
-time_to_sec('12:34:56.789');
-now() 2011-01-01 01:01:01
-curtime(0) 01:01:01
-utc_timestamp(1) 2010-12-31 22:01:01.1
-utc_time(2) 22:01:01.12
-current_time(3) 01:01:01.123
-current_timestamp(4) 2011-01-01 01:01:01.1234
-localtime(5) 2011-01-01 01:01:01.12345
-localtimestamp(6) 2011-01-01 01:01:01.123456
-time_to_sec('12:34:56') 45296
-time_to_sec('12:34:56.789') 45296.789
-select sec_to_time(time_to_sec('1:2:3')), sec_to_time(time_to_sec('2:3:4.567890'));
-sec_to_time(time_to_sec('1:2:3')) 01:02:03
-sec_to_time(time_to_sec('2:3:4.567890')) 02:03:04.567890
-select time_to_sec(sec_to_time(11111)), time_to_sec(sec_to_time(11111.22222));
-time_to_sec(sec_to_time(11111)) 11111
-time_to_sec(sec_to_time(11111.22222)) 11111.22222
-select current_timestamp(7);
-ERROR 42000: Too big precision 7 specified for 'current_timestamp'. Maximum is 6
-select curtime(7);
-ERROR 42000: Too big precision 7 specified for 'curtime'. Maximum is 6
-drop table if exists t1;
-create table t1 select sec_to_time(12345), sec_to_time(12345.6789),
-sec_to_time(1234567e-2), now(), curtime(0),
-utc_timestamp(1), utc_time(2), current_time(3),
-current_timestamp(4), localtime(5), localtimestamp(6),
-time_to_sec(123456), time_to_sec('12:34:56.789');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `sec_to_time(12345)` time DEFAULT NULL,
- `sec_to_time(12345.6789)` time(4) DEFAULT NULL,
- `sec_to_time(1234567e-2)` time(6) DEFAULT NULL,
- `now()` datetime NOT NULL,
- `curtime(0)` time NOT NULL,
- `utc_timestamp(1)` datetime(1) NOT NULL,
- `utc_time(2)` time(2) NOT NULL,
- `current_time(3)` time(3) NOT NULL,
- `current_timestamp(4)` datetime(4) NOT NULL,
- `localtime(5)` datetime(5) NOT NULL,
- `localtimestamp(6)` datetime(6) NOT NULL,
- `time_to_sec(123456)` bigint(17) DEFAULT NULL,
- `time_to_sec('12:34:56.789')` decimal(19,3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-sec_to_time(12345) 03:25:45
-sec_to_time(12345.6789) 03:25:45.6789
-sec_to_time(1234567e-2) 03:25:45.670000
-now() 2011-01-01 01:01:01
-curtime(0) 01:01:01
-utc_timestamp(1) 2010-12-31 22:01:01.1
-utc_time(2) 22:01:01.12
-current_time(3) 01:01:01.123
-current_timestamp(4) 2011-01-01 01:01:01.1234
-localtime(5) 2011-01-01 01:01:01.12345
-localtimestamp(6) 2011-01-01 01:01:01.123456
-time_to_sec(123456) 45296
-time_to_sec('12:34:56.789') 45296.789
-drop table t1;
-select unix_timestamp('2011-01-01 01:01:01'), unix_timestamp('2011-01-01 01:01:01.123456'), unix_timestamp(cast('2011-01-01 01:01:01.123456' as datetime(0))), unix_timestamp(cast('2011-01-01 01:01:01.123456' as datetime(4)));;
-unix_timestamp('2011-01-01 01:01:01') 1293832861
-unix_timestamp('2011-01-01 01:01:01.123456') 1293832861.123456
-unix_timestamp(cast('2011-01-01 01:01:01.123456' as datetime(0))) 1293832861
-unix_timestamp(cast('2011-01-01 01:01:01.123456' as datetime(4))) 1293832861.1234
-select from_unixtime(unix_timestamp('2011/1/1 1:1:1')), from_unixtime(unix_timestamp('2011/1/1 1:1:1.123456')), from_unixtime(unix_timestamp(cast('2011/1/1 1:1:1.123456' as datetime(0)))), from_unixtime(unix_timestamp(cast('2011/1/1 1:1:1.123456' as datetime(4))));;
-from_unixtime(unix_timestamp('2011/1/1 1:1:1')) 2011-01-01 01:01:01
-from_unixtime(unix_timestamp('2011/1/1 1:1:1.123456')) 2011-01-01 01:01:01.123456
-from_unixtime(unix_timestamp(cast('2011/1/1 1:1:1.123456' as datetime(0)))) 2011-01-01 01:01:01
-from_unixtime(unix_timestamp(cast('2011/1/1 1:1:1.123456' as datetime(4)))) 2011-01-01 01:01:01.1234
-select sec_to_time(3020399.99999), sec_to_time(3020399.999999), sec_to_time(3020399.9999999);
-sec_to_time(3020399.99999) sec_to_time(3020399.999999) sec_to_time(3020399.9999999)
-838:59:59.99999 838:59:59.999999 838:59:59.999999
-select sec_to_time(-3020399.99999), sec_to_time(-3020399.999999), sec_to_time(-3020399.9999999);
-sec_to_time(-3020399.99999) sec_to_time(-3020399.999999) sec_to_time(-3020399.9999999)
--838:59:59.99999 -838:59:59.999999 -838:59:59.999999
-select 20010101000203.000000004 + interval 1 day;
-20010101000203.000000004 + interval 1 day
-2001-01-02 00:02:03.000000
-select 20010101000203.4 + interval 1 day;
-20010101000203.4 + interval 1 day
-2001-01-02 00:02:03.4
-set @a=cast('2011-01-02 12:13:14' as datetime);
-select @a + interval 1 minute;
-@a + interval 1 minute
-2011-01-02 12:14:14
-select @a + interval 10 microsecond;
-@a + interval 10 microsecond
-2011-01-02 12:13:14.000010
-select @a + interval 10 microsecond + interval 999990 microsecond;
-@a + interval 10 microsecond + interval 999990 microsecond
-2011-01-02 12:13:15.000000
-set @a='2011-01-02 12:13:14.123456';
-create table t1 select CAST(@a AS DATETIME) as dauto,
-CAST(@a AS DATETIME(0)) as d0,
-CAST(@a AS DATETIME(1)) as d1,
-CAST(@a AS DATETIME(2)) as d2,
-CAST(@a AS DATETIME(3)) as d3,
-CAST(@a AS DATETIME(4)) as d4,
-CAST(@a AS DATETIME(5)) as d5,
-CAST(@a AS DATETIME(6)) as d6,
-CAST(@a AS TIME) as tauto,
-CAST(@a AS TIME(0)) as t0,
-CAST(@a AS TIME(1)) as t1,
-CAST(@a AS TIME(2)) as t2,
-CAST(@a AS TIME(3)) as t3,
-CAST(@a AS TIME(4)) as t4,
-CAST(@a AS TIME(5)) as t5,
-CAST(@a AS TIME(6)) as t6;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dauto` datetime DEFAULT NULL,
- `d0` datetime DEFAULT NULL,
- `d1` datetime(1) DEFAULT NULL,
- `d2` datetime(2) DEFAULT NULL,
- `d3` datetime(3) DEFAULT NULL,
- `d4` datetime(4) DEFAULT NULL,
- `d5` datetime(5) DEFAULT NULL,
- `d6` datetime(6) DEFAULT NULL,
- `tauto` time DEFAULT NULL,
- `t0` time DEFAULT NULL,
- `t1` time(1) DEFAULT NULL,
- `t2` time(2) DEFAULT NULL,
- `t3` time(3) DEFAULT NULL,
- `t4` time(4) DEFAULT NULL,
- `t5` time(5) DEFAULT NULL,
- `t6` time(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-dauto 2011-01-02 12:13:14
-d0 2011-01-02 12:13:14
-d1 2011-01-02 12:13:14.1
-d2 2011-01-02 12:13:14.12
-d3 2011-01-02 12:13:14.123
-d4 2011-01-02 12:13:14.1234
-d5 2011-01-02 12:13:14.12345
-d6 2011-01-02 12:13:14.123456
-tauto 12:13:14
-t0 12:13:14
-t1 12:13:14.1
-t2 12:13:14.12
-t3 12:13:14.123
-t4 12:13:14.1234
-t5 12:13:14.12345
-t6 12:13:14.123456
-drop table t1;
-explain extended select cast(cast(@a as datetime(4)) as time(0));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select cast(cast(@`a` as datetime(4)) as time) AS `cast(cast(@a as datetime(4)) as time(0))`
-select cast(cast(@a as time(2)) as time(6));
-cast(cast(@a as time(2)) as time(6))
-12:13:14.120000
-select CAST(@a AS DATETIME(7));
-ERROR 42000: Too big precision 7 specified for '@`a`'. Maximum is 6
-SELECT CONVERT_TZ('2011-01-02 12:00:00', '+00:00', '+03:00');
-CONVERT_TZ('2011-01-02 12:00:00', '+00:00', '+03:00')
-2011-01-02 15:00:00
-SELECT CONVERT_TZ('2011-01-02 12:00:00.123', '+00:00', '+03:00');
-CONVERT_TZ('2011-01-02 12:00:00.123', '+00:00', '+03:00')
-2011-01-02 15:00:00.123
-SELECT CONVERT_TZ('2011-01-02 12:00:00.123456', '+00:00', '+03:00');
-CONVERT_TZ('2011-01-02 12:00:00.123456', '+00:00', '+03:00')
-2011-01-02 15:00:00.123456
-SELECT CONVERT_TZ(CAST('2010-10-10 10:10:10.123456' AS DATETIME(4)), '+00:00', '+03:00');
-CONVERT_TZ(CAST('2010-10-10 10:10:10.123456' AS DATETIME(4)), '+00:00', '+03:00')
-2010-10-10 13:10:10.1234
-create table t1 (a varchar(200));
-insert t1 values (now(6));
-select * from t1;
-a
-2011-01-01 01:01:01.123456
-drop table t1;
-create table t1 (f1 timestamp(6));
-insert into t1 values ('2002-07-15 21:00:00');
-select time(f1) from t1;
-time(f1)
-21:00:00.000000
-select time(f1) from t1 union all select time(f1 + interval 1 second) from t1;
-time(f1)
-21:00:00.000000
-21:00:01.000000
-alter table t1 modify f1 timestamp;
-select time(f1) from t1;
-time(f1)
-21:00:00
-select time(f1) from t1 union all select time(f1 + interval 1 second) from t1;
-time(f1)
-21:00:00
-21:00:01
-alter table t1 modify f1 varchar(100);
-select time(f1) from t1;
-time(f1)
-21:00:00.000000
-select time(f1) from t1 union all select time(f1 + interval 1 second) from t1;
-time(f1)
-21:00:00.000000
-21:00:01.000000
-drop table t1;
diff --git a/mysql-test/r/func_timestamp.result b/mysql-test/r/func_timestamp.result
deleted file mode 100644
index 18fcbd947e7..00000000000
--- a/mysql-test/r/func_timestamp.result
+++ /dev/null
@@ -1,13 +0,0 @@
-drop table if exists t1;
-set time_zone="+03:00";
-create table t1 (Zeit time, Tag tinyint not null, Monat tinyint not null,
-Jahr smallint not null, index(Tag), index(Monat), index(Jahr) );
-insert into t1 values ("09:26:00",16,9,1998),("09:26:00",16,9,1998);
-SELECT CONCAT(Jahr,'-',Monat,'-',Tag,' ',Zeit) AS Date,
-UNIX_TIMESTAMP(CONCAT(Jahr,'-',Monat,'-',Tag,' ',Zeit)) AS Unix
-FROM t1;
-Date Unix
-1998-9-16 09:26:00 905927160.000000
-1998-9-16 09:26:00 905927160.000000
-drop table t1;
-set time_zone= @@global.time_zone;
diff --git a/mysql-test/r/func_weight_string.result b/mysql-test/r/func_weight_string.result
deleted file mode 100644
index 5fa78c861a9..00000000000
--- a/mysql-test/r/func_weight_string.result
+++ /dev/null
@@ -1,172 +0,0 @@
-drop table if exists t1;
-set global max_allowed_packet=1048576;
-connect conn1,localhost,root,,;
-connection conn1;
-set names latin1;
-select hex(weight_string(0x010203));
-hex(weight_string(0x010203))
-010203
-select hex(weight_string('aa' as char(3)));
-hex(weight_string('aa' as char(3)))
-414120
-select hex(weight_string('a' as char(-1)));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1)))' at line 1
-select hex(weight_string('a' as char(0)));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '0)))' at line 1
-select hex(weight_string('a' as char(1)));
-hex(weight_string('a' as char(1)))
-41
-select hex(weight_string('ab' as char(1)));
-hex(weight_string('ab' as char(1)))
-41
-select hex(weight_string('ab'));
-hex(weight_string('ab'))
-4142
-select hex(weight_string('aa' as binary(3)));
-hex(weight_string('aa' as binary(3)))
-616100
-select hex(weight_string(cast('aa' as binary(3))));
-hex(weight_string(cast('aa' as binary(3))))
-616100
-select hex(weight_string('ab' level 1-1 ASC));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ASC))' at line 1
-select hex(weight_string('ab' level 1-1 DESC));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DESC))' at line 1
-select hex(weight_string('ab' level 1-1 REVERSE));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'REVERSE))' at line 1
-select hex(weight_string('ab' level 1 ASC));
-hex(weight_string('ab' level 1 ASC))
-4142
-select hex(weight_string('ab' level 1 DESC));
-hex(weight_string('ab' level 1 DESC))
-BEBD
-select hex(weight_string('ab' level 1 REVERSE));
-hex(weight_string('ab' level 1 REVERSE))
-4241
-select hex(weight_string('ab' level 1 DESC REVERSE));
-hex(weight_string('ab' level 1 DESC REVERSE))
-BDBE
-create table t1 select weight_string('test') as w;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `w` varbinary(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 select weight_string(repeat('t',66000)) as w;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `w` mediumblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select weight_string(NULL);
-weight_string(NULL)
-NULL
-select 1 as weight_string, 2 as reverse;
-weight_string reverse
-1 2
-select coercibility(weight_string('test'));
-coercibility(weight_string('test'))
-4
-select coercibility(weight_string('test' collate latin1_swedish_ci));
-coercibility(weight_string('test' collate latin1_swedish_ci))
-0
-create table t1 (s1 varchar(5));
-insert into t1 values ('a'),(null);
-select hex(weight_string(s1)) from t1 order by s1;
-hex(weight_string(s1))
-NULL
-41
-drop table t1;
-#
-# BUG#11898467 - SERVER CRASHES ON SELECT HEX(WEIGHT_STRING(STR AS [CHAR|BINARY](N))) IF N IS BIG
-#
-SELECT HEX(WEIGHT_STRING('ab' AS CHAR(1000000000000000000)));
-HEX(WEIGHT_STRING('ab' AS CHAR(1000000000000000000)))
-NULL
-Warnings:
-Warning 1301 Result of weight_string() was larger than max_allowed_packet (1048576) - truncated
-SELECT HEX(WEIGHT_STRING('ab' AS BINARY(1000000000000000000)));
-HEX(WEIGHT_STRING('ab' AS BINARY(1000000000000000000)))
-NULL
-Warnings:
-Warning 1301 Result of cast_as_binary() was larger than max_allowed_packet (1048576) - truncated
-Warning 1301 Result of weight_string() was larger than max_allowed_packet (1048576) - truncated
-disconnect conn1;
-connection default;
-set global max_allowed_packet=default;
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8369 Unexpected impossible WHERE for a condition on a ZEROFILL field
-#
-CREATE TABLE t1 (a INT(6) ZEROFILL);
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 WHERE a=1;
-a
-000001
-SELECT * FROM t1 WHERE WEIGHT_STRING(a) IS NULL;
-a
-000001
-000002
-SELECT * FROM t1 WHERE a=1 AND WEIGHT_STRING(a) IS NULL;
-a
-000001
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a=1 AND WEIGHT_STRING(a) IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1 and weight_string(`test`.`t1`.`a`,0,0,1) is null
-ALTER TABLE t1 MODIFY a DOUBLE ZEROFILL;
-SELECT * FROM t1 WHERE a=1 AND WEIGHT_STRING(a) IS NULL;
-a
-0000000000000000000001
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a=1 AND WEIGHT_STRING(a) IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1 and weight_string(`test`.`t1`.`a`,0,0,1) is null
-ALTER TABLE t1 MODIFY a DECIMAL(10,1) ZEROFILL;
-SELECT * FROM t1 WHERE a=1 AND WEIGHT_STRING(a) IS NULL;
-a
-000000001.0
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a=1 AND WEIGHT_STRING(a) IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1 and weight_string(`test`.`t1`.`a`,0,0,1) is null
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10134 Add full support for DEFAULT
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1, b VARBINARY(10) DEFAULT WEIGHT_STRING(a AS CHAR(10)));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varbinary(10) DEFAULT weight_string(`a`,0,10,65)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('a');
-SELECT a, HEX(b) FROM t1;
-a HEX(b)
-a 41202020202020202020
-DROP TABLE t1;
-create view v1 as select weight_string("MySQL" as char(4));
-select * from v1;
-weight_string("MySQL" as char(4))
-MYSQ
-drop view v1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/function_defaults.result b/mysql-test/r/function_defaults.result
deleted file mode 100644
index 62422752e17..00000000000
--- a/mysql-test/r/function_defaults.result
+++ /dev/null
@@ -1,3095 +0,0 @@
-#
-# Test of function defaults for any server, including embedded.
-#
-#
-# Function defaults run 1. No microsecond precision.
-#
-SET TIME_ZONE = "+00:00";
-#
-# Test of errors for column data types that dont support function
-# defaults.
-#
-CREATE OR REPLACE TABLE t1( a BIT DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a TINYINT DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a SMALLINT DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a MEDIUMINT DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a INT DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a BIGINT DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a FLOAT DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a DECIMAL DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a DATE DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a TIME DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a YEAR DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a BIT ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a TINYINT ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a SMALLINT ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a MEDIUMINT ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a INT ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a BIGINT ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a FLOAT ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a DECIMAL ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a DATE ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a TIME ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a YEAR ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-drop table if exists t1;
-#
-# Test that the default clause behaves like NOW() regarding time zones.
-#
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-d TIMESTAMP NULL,
-e DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-f DATETIME DEFAULT CURRENT_TIMESTAMP,
-g DATETIME ON UPDATE CURRENT_TIMESTAMP,
-h DATETIME
-);
-# 2011-09-27 14:11:08 UTC
-SET TIMESTAMP = 1317132668.654321;
-SET @old_time_zone = @@TIME_ZONE;
-SET TIME_ZONE = "+05:00";
-INSERT INTO t1( d, h ) VALUES ( NOW(), NOW() );
-SELECT * FROM t1;
-a b c d e f g h
-2011-09-27 19:11:08 2011-09-27 19:11:08 0000-00-00 00:00:00 2011-09-27 19:11:08 2011-09-27 19:11:08 2011-09-27 19:11:08 NULL 2011-09-27 19:11:08
-# 1989-05-13 01:02:03
-SET TIMESTAMP = 611017323.543212;
-UPDATE t1 SET d = NOW(), h = NOW();
-SELECT * FROM t1;
-a b c d e f g h
-1989-05-13 04:02:03 2011-09-27 19:11:08 1989-05-13 04:02:03 1989-05-13 04:02:03 1989-05-13 04:02:03 2011-09-27 19:11:08 1989-05-13 04:02:03 1989-05-13 04:02:03
-SET TIME_ZONE = @old_time_zone;
-DROP TABLE t1;
-#
-# Test of several TIMESTAMP columns with different function defaults.
-#
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-e TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-f INT
-);
-# 2011-04-19 07:22:02 UTC
-SET TIMESTAMP = 1303197722.534231;
-INSERT INTO t1 ( f ) VALUES (1);
-SELECT * FROM t1;
-a b c d e f
-2011-04-19 07:22:02 2011-04-19 07:22:02 2011-04-19 07:22:02 0000-00-00 00:00:00 0000-00-00 00:00:00 1
-# 2011-04-19 07:23:18 UTC
-SET TIMESTAMP = 1303197798.132435;
-UPDATE t1 SET f = 2;
-SELECT * FROM t1;
-a b c d e f
-2011-04-19 07:23:18 2011-04-19 07:23:18 2011-04-19 07:22:02 2011-04-19 07:23:18 2011-04-19 07:23:18 2
-DROP TABLE t1;
-#
-# Test of inserted values out of order.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-e TIMESTAMP NULL,
-f DATETIME,
-g DATETIME DEFAULT CURRENT_TIMESTAMP,
-h DATETIME ON UPDATE CURRENT_TIMESTAMP,
-i DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-j INT
-);
-# 2011-04-19 07:22:02 UTC
-SET TIMESTAMP = 1303197722.534231;
-INSERT INTO t1 ( j, a ) VALUES ( 1, 1 );
-SELECT * FROM t1;
-a b c d e f g h i j
-1 2011-04-19 07:22:02 2011-04-19 07:22:02 0000-00-00 00:00:00 NULL NULL 2011-04-19 07:22:02 NULL 2011-04-19 07:22:02 1
-DROP TABLE t1;
-#
-# Test of ON DUPLICATE KEY UPDATE
-#
-CREATE TABLE t1 (
-a INT PRIMARY KEY,
-b INT,
-c TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-e TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-f TIMESTAMP NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-g TIMESTAMP NULL,
-h DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-i DATETIME DEFAULT CURRENT_TIMESTAMP,
-j DATETIME ON UPDATE CURRENT_TIMESTAMP,
-k DATETIME NULL,
-l DATETIME DEFAULT '1986-09-27 03:00:00.098765'
-);
-# 1977-12-21 23:00:00 UTC
-SET TIMESTAMP = 251593200.192837;
-INSERT INTO t1(a) VALUES (1) ON DUPLICATE KEY UPDATE b = 2;
-SELECT * FROM t1;
-a b c d e f g h i j k l
-1 NULL 1977-12-21 23:00:00 1977-12-21 23:00:00 0000-00-00 00:00:00 1986-09-27 03:00:00 NULL 1977-12-21 23:00:00 1977-12-21 23:00:00 NULL NULL 1986-09-27 03:00:00
-# 1975-05-21 23:00:00 UTC
-SET TIMESTAMP = 169945200.918273;
-INSERT INTO t1(a) VALUES (1) ON DUPLICATE KEY UPDATE b = 2;
-SELECT * FROM t1;
-a b c d e f g h i j k l
-1 2 1975-05-21 23:00:00 1977-12-21 23:00:00 1975-05-21 23:00:00 1986-09-27 03:00:00 NULL 1975-05-21 23:00:00 1977-12-21 23:00:00 1975-05-21 23:00:00 NULL 1986-09-27 03:00:00
-# 1973-08-14 09:11:22 UTC
-SET TIMESTAMP = 114167482.534231;
-INSERT INTO t1(a) VALUES (2) ON DUPLICATE KEY UPDATE b = 2;
-SELECT * FROM t1;
-a b c d e f g h i j k l
-1 2 1975-05-21 23:00:00 1977-12-21 23:00:00 1975-05-21 23:00:00 1986-09-27 03:00:00 NULL 1975-05-21 23:00:00 1977-12-21 23:00:00 1975-05-21 23:00:00 NULL 1986-09-27 03:00:00
-2 NULL 1973-08-14 09:11:22 1973-08-14 09:11:22 0000-00-00 00:00:00 1986-09-27 03:00:00 NULL 1973-08-14 09:11:22 1973-08-14 09:11:22 NULL NULL 1986-09-27 03:00:00
-DROP TABLE t1;
-CREATE TABLE t1 ( a INT PRIMARY KEY, b INT, c TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP );
-# 2011-04-19 07:23:18 UTC
-SET TIMESTAMP = 1303197798.945156;
-INSERT INTO t1 VALUES
-(1, 0, '2001-01-01 01:01:01.111111'),
-(2, 0, '2002-02-02 02:02:02.222222'),
-(3, 0, '2003-03-03 03:03:03.333333');
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 0 2002-02-02 02:02:02
-3 0 2003-03-03 03:03:03
-UPDATE t1 SET b = 2, c = c WHERE a = 2;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 0 2003-03-03 03:03:03
-INSERT INTO t1 (a) VALUES (4);
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 0 2003-03-03 03:03:03
-4 NULL 2011-04-19 07:23:18
-UPDATE t1 SET c = '2004-04-04 04:04:04.444444' WHERE a = 4;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 0 2003-03-03 03:03:03
-4 NULL 2004-04-04 04:04:04
-INSERT INTO t1 ( a ) VALUES ( 3 ), ( 5 ) ON DUPLICATE KEY UPDATE b = 3, c = c;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 3 2003-03-03 03:03:03
-4 NULL 2004-04-04 04:04:04
-5 NULL 2011-04-19 07:23:18
-INSERT INTO t1 (a, c) VALUES
-(4, '2004-04-04 00:00:00.444444'),
-(6, '2006-06-06 06:06:06.666666')
-ON DUPLICATE KEY UPDATE b = 4;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 3 2003-03-03 03:03:03
-4 4 2011-04-19 07:23:18
-5 NULL 2011-04-19 07:23:18
-6 NULL 2006-06-06 06:06:06
-DROP TABLE t1;
-#
-# Test of REPLACE INTO executed as UPDATE.
-#
-CREATE TABLE t1 (
-a INT PRIMARY KEY,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-c DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-e DATETIME DEFAULT CURRENT_TIMESTAMP,
-f TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-g DATETIME ON UPDATE CURRENT_TIMESTAMP,
-h TIMESTAMP NULL,
-i DATETIME
-);
-# 1970-09-21 09:11:12 UTC
-SET TIMESTAMP = 22756272.163584;
-REPLACE INTO t1 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-1 1970-09-21 09:11:12 1970-09-21 09:11:12 1970-09-21 09:11:12 1970-09-21 09:11:12 0000-00-00 00:00:00 NULL NULL NULL
-# 1970-11-10 14:16:17 UTC
-SET TIMESTAMP = 27094577.852954;
-REPLACE INTO t1 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-1 1970-11-10 14:16:17 1970-11-10 14:16:17 1970-11-10 14:16:17 1970-11-10 14:16:17 0000-00-00 00:00:00 NULL NULL NULL
-DROP TABLE t1;
-#
-# Test of insertion of NULL, DEFAULT and an empty row for DEFAULT
-# CURRENT_TIMESTAMP.
-#
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME DEFAULT CURRENT_TIMESTAMP,
-c INT
-);
-# 2011-04-20 09:53:41 UTC
-SET TIMESTAMP = 1303293221.163578;
-INSERT INTO t1 VALUES (NULL, NULL, 1), (DEFAULT, DEFAULT, 2);
-INSERT INTO t1 ( a, b, c ) VALUES (NULL, NULL, 3), (DEFAULT, DEFAULT, 4);
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41 NULL 1
-2011-04-20 09:53:41 2011-04-20 09:53:41 2
-2011-04-20 09:53:41 NULL 3
-2011-04-20 09:53:41 2011-04-20 09:53:41 4
-SET TIME_ZONE = "+03:00";
-SELECT * FROM t1;
-a b c
-2011-04-20 12:53:41 NULL 1
-2011-04-20 12:53:41 2011-04-20 09:53:41 2
-2011-04-20 12:53:41 NULL 3
-2011-04-20 12:53:41 2011-04-20 09:53:41 4
-SET TIME_ZONE = "+00:00";
-DROP TABLE t1;
-# 2011-04-20 07:05:39 UTC
-SET TIMESTAMP = 1303283139.195624;
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT '2010-10-11 12:34:56' ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME DEFAULT '2010-10-11 12:34:56'
-);
-INSERT INTO t1 VALUES (NULL, NULL), (DEFAULT, DEFAULT);
-INSERT INTO t1 ( a, b ) VALUES (NULL, NULL), (DEFAULT, DEFAULT);
-SELECT * FROM t1;
-a b
-2011-04-20 07:05:39 NULL
-2010-10-11 12:34:56 2010-10-11 12:34:56
-2011-04-20 07:05:39 NULL
-2010-10-11 12:34:56 2010-10-11 12:34:56
-DROP TABLE t1;
-# 2011-04-20 09:53:41 UTC
-SET TIMESTAMP = 1303293221.136952;
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-e TIMESTAMP NULL,
-f DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-g DATETIME DEFAULT CURRENT_TIMESTAMP,
-h DATETIME ON UPDATE CURRENT_TIMESTAMP,
-i DATETIME NULL,
-j DATETIME DEFAULT '1986-09-27 03:00:00.098765'
-);
-INSERT INTO t1 VALUES ();
-INSERT INTO t1 SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL;
-SELECT * FROM t1;
-a b c d e f g h i j
-2011-04-20 09:53:41 2011-04-20 09:53:41 0000-00-00 00:00:00 1986-09-27 03:00:00 NULL 2011-04-20 09:53:41 2011-04-20 09:53:41 NULL NULL 1986-09-27 03:00:00
-2011-04-20 09:53:41 2011-04-20 09:53:41 2011-04-20 09:53:41 2011-04-20 09:53:41 NULL NULL NULL NULL NULL NULL
-DROP TABLE t1;
-#
-# Test of multiple-table UPDATE for DEFAULT CURRENT_TIMESTAMP
-#
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME DEFAULT CURRENT_TIMESTAMP,
-c INT
-);
-INSERT INTO t1 ( c ) VALUES (1);
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41 2011-04-20 09:53:41 1
-# 2011-04-20 17:06:13 UTC
-SET TIMESTAMP = 1303311973.163587;
-UPDATE t1 t11, t1 t12 SET t11.c = 1;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41 2011-04-20 09:53:41 1
-UPDATE t1 t11, t1 t12 SET t11.c = 2;
-SELECT * FROM t1;
-a b c
-2011-04-20 15:06:13 2011-04-20 09:53:41 2
-DROP TABLE t1;
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-c DATETIME DEFAULT CURRENT_TIMESTAMP,
-d DATETIME ON UPDATE CURRENT_TIMESTAMP,
-e INT
-);
-CREATE TABLE t2 (
-f INT,
-g DATETIME ON UPDATE CURRENT_TIMESTAMP,
-h DATETIME DEFAULT CURRENT_TIMESTAMP,
-i TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-j TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
-);
-# 1995-03-11 00:02:03 UTC
-SET TIMESTAMP = 794880123.195676;
-INSERT INTO t1 ( e ) VALUES ( 1 ), ( 2 );
-INSERT INTO t2 ( f ) VALUES ( 1 ), ( 2 );
-SELECT * FROM t1;
-a b c d e
-1995-03-11 00:02:03 0000-00-00 00:00:00 1995-03-11 00:02:03 NULL 1
-1995-03-11 00:02:03 0000-00-00 00:00:00 1995-03-11 00:02:03 NULL 2
-SELECT * FROM t2;
-f g h i j
-1 NULL 1995-03-11 00:02:03 0000-00-00 00:00:00 1995-03-11 00:02:03
-2 NULL 1995-03-11 00:02:03 0000-00-00 00:00:00 1995-03-11 00:02:03
-# 1980-12-13 02:02:01 UTC
-SET TIMESTAMP = 345520921.196755;
-UPDATE t1, t2 SET t1.e = 3, t2.f = 4;
-SELECT * FROM t1;
-a b c d e
-1995-03-11 00:02:03 1980-12-13 02:02:01 1995-03-11 00:02:03 1980-12-13 02:02:01 3
-1995-03-11 00:02:03 1980-12-13 02:02:01 1995-03-11 00:02:03 1980-12-13 02:02:01 3
-SELECT * FROM t2;
-f g h i j
-4 1980-12-13 02:02:01 1995-03-11 00:02:03 1980-12-13 02:02:01 1995-03-11 00:02:03
-4 1980-12-13 02:02:01 1995-03-11 00:02:03 1980-12-13 02:02:01 1995-03-11 00:02:03
-DROP TABLE t1, t2;
-#
-# Test of multiple table update with temporary table and on the fly.
-#
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME ON UPDATE CURRENT_TIMESTAMP,
-c INT,
-d INT
-);
-CREATE TABLE t2 (
-a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME ON UPDATE CURRENT_TIMESTAMP,
-c INT KEY,
-d INT
-);
-INSERT INTO t1 ( c ) VALUES (1), (2);
-INSERT INTO t2 ( c ) VALUES (1), (2);
-# Test of multiple table update done on the fly
-# 2011-04-20 15:06:13 UTC
-SET TIMESTAMP = 1303311973.194685;
-UPDATE t1 JOIN t2 USING ( c ) SET t2.d = 1;
-SELECT * FROM t1;
-a b c d
-0000-00-00 00:00:00 NULL 1 NULL
-0000-00-00 00:00:00 NULL 2 NULL
-SELECT * FROM t2;
-a b c d
-2011-04-20 15:06:13 2011-04-20 15:06:13 1 1
-2011-04-20 15:06:13 2011-04-20 15:06:13 2 1
-# Test of multiple table update done with temporary table.
-# 1979-01-15 03:02:01
-SET TIMESTAMP = 285213721.134679;
-UPDATE t1 JOIN t2 USING ( c ) SET t1.d = 1;
-SELECT * FROM t1;
-a b c d
-1979-01-15 02:02:01 1979-01-15 02:02:01 1 1
-1979-01-15 02:02:01 1979-01-15 02:02:01 2 1
-SELECT * FROM t2;
-a b c d
-2011-04-20 15:06:13 2011-04-20 15:06:13 1 1
-2011-04-20 15:06:13 2011-04-20 15:06:13 2 1
-DROP TABLE t1, t2;
-#
-# Test of ON UPDATE CURRENT_TIMESTAMP.
-#
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME ON UPDATE CURRENT_TIMESTAMP,
-c INT
-);
-# 2011-04-20 09:53:41 UTC
-SET TIMESTAMP = 1303293221.794613;
-INSERT INTO t1 ( c ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c
-0000-00-00 00:00:00 NULL 1
-UPDATE t1 SET c = 1;
-SELECT * FROM t1;
-a b c
-0000-00-00 00:00:00 NULL 1
-UPDATE t1 SET c = 2;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41 2011-04-20 09:53:41 2
-#
-# Test that ON UPDATE CURRENT_TIMESTAMP works after non-changing UPDATE.
-#
-# 2011-04-20 09:54:13 UTC
-SET TIMESTAMP = 1303293253.794613;
-UPDATE t1 SET c = 2, b = '2011-04-20 09:53:41.794613';
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41 2011-04-20 09:53:41 2
-UPDATE t1 SET c = 3;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:54:13 2011-04-20 09:54:13 3
-#
-# Test of multiple-table UPDATE for ON UPDATE CURRENT_TIMESTAMP
-#
-# 2011-04-20 15:06:13 UTC
-SET TIMESTAMP = 1303311973.534231;
-UPDATE t1 t11, t1 t12 SET t11.c = 3;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:54:13 2011-04-20 09:54:13 3
-UPDATE t1 t11, t1 t12 SET t11.c = 2;
-SELECT * FROM t1;
-a b c
-2011-04-20 15:06:13 2011-04-20 15:06:13 2
-DROP TABLE t1;
-#
-# Test of a multiple-table update where only one table is updated and
-# the updated table has a primary key.
-#
-CREATE TABLE t1 ( a INT, b INT, PRIMARY KEY (a) );
-INSERT INTO t1 VALUES (1, 1),(2, 2),(3, 3),(4, 4);
-CREATE TABLE t2 ( a INT, b INT );
-INSERT INTO t2 VALUES (1, 1),(2, 2),(3, 3),(4, 4),(5, 5);
-UPDATE t1, t2 SET t1.b = 100 WHERE t1.a = t2.a;
-SELECT * FROM t1;
-a b
-1 100
-2 100
-3 100
-4 100
-SELECT * FROM t2;
-a b
-1 1
-2 2
-3 3
-4 4
-5 5
-DROP TABLE t1, t2;
-#
-# Test of ALTER TABLE, reordering columns.
-#
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, b INT );
-ALTER TABLE t1 MODIFY a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a INT, b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, c TIMESTAMP NULL );
-ALTER TABLE t1 MODIFY b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `a` int(11) DEFAULT NULL,
- `c` timestamp NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a INT, b TIMESTAMP NULL );
-ALTER TABLE t1 MODIFY b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, b TIMESTAMP NULL );
-ALTER TABLE t1 MODIFY a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp NULL DEFAULT NULL,
- `a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, b TIMESTAMP NULL );
-ALTER TABLE t1 MODIFY a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp NULL DEFAULT NULL,
- `a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW(), b INT, c TIMESTAMP NULL );
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(),
- `b` int(11) DEFAULT NULL,
- `c` timestamp NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 MODIFY a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `c` timestamp NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW(), b INT, c TIMESTAMP NULL );
-ALTER TABLE t1 MODIFY c TIMESTAMP NULL FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` timestamp NULL DEFAULT NULL,
- `a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(),
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE CURRENT_TIMESTAMP, b INT, c TIMESTAMP NULL );
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `b` int(11) DEFAULT NULL,
- `c` timestamp NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 MODIFY a TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE CURRENT_TIMESTAMP AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `c` timestamp NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE CURRENT_TIMESTAMP, b INT, c TIMESTAMP NULL );
-ALTER TABLE t1 MODIFY c TIMESTAMP NULL FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` timestamp NULL DEFAULT NULL,
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# Test of ALTER TABLE, adding columns.
-#
-CREATE TABLE t1 ( a INT );
-ALTER TABLE t1 ADD COLUMN b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# Test of INSERT SELECT.
-#
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-c DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-d DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
-);
-CREATE TABLE t2 (
-placeholder1 INT,
-placeholder2 INT,
-placeholder3 INT,
-placeholder4 INT,
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
-c DATETIME,
-d DATETIME
-);
-# 1977-08-16 15:30:01 UTC
-SET TIMESTAMP = 240589801.654312;
-INSERT INTO t2 (a, b, c, d) VALUES (
-'1977-08-16 15:30:01.123456',
-'1977-08-16 15:30:01.234567',
-'1977-08-16 15:30:01.345678',
-'1977-08-16 15:30:01.456789'
-);
-# 1986-09-27 01:00:00 UTC
-SET TIMESTAMP = 528166800.132435;
-INSERT INTO t1 ( a, c ) SELECT a, c FROM t2;
-SELECT * FROM t1;
-a b c d
-1977-08-16 15:30:01 1986-09-27 01:00:00 1977-08-16 15:30:01 1986-09-27 01:00:00
-DROP TABLE t1, t2;
-#
-# Test of CREATE TABLE SELECT.
-#
-# We test that the columns of the source table are not used to determine
-# function defaults for the receiving table.
-#
-# 1970-04-11 20:13:57 UTC
-SET TIMESTAMP = 8712837.657898;
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-e TIMESTAMP NULL,
-f DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-g DATETIME DEFAULT CURRENT_TIMESTAMP,
-h DATETIME ON UPDATE CURRENT_TIMESTAMP,
-i DATETIME NULL,
-j DATETIME DEFAULT '1986-09-27 03:00:00.098765'
-);
-INSERT INTO t1 VALUES ();
-# 1971-01-31 21:13:57 UTC
-SET TIMESTAMP = 34200837.164937;
-CREATE TABLE t2 SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-a
-1970-04-11 20:13:57
-CREATE TABLE t3 SELECT b FROM t1;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `b` timestamp NOT NULL DEFAULT current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t3;
-b
-1970-04-11 20:13:57
-CREATE TABLE t4 SELECT c FROM t1;
-SHOW CREATE TABLE t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `c` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t4;
-c
-0000-00-00 00:00:00
-CREATE TABLE t5 SELECT d FROM t1;
-SHOW CREATE TABLE t5;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `d` timestamp NOT NULL DEFAULT '1986-09-27 03:00:00'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t5;
-d
-1986-09-27 03:00:00
-CREATE TABLE t6 SELECT e FROM t1;
-SHOW CREATE TABLE t6;
-Table Create Table
-t6 CREATE TABLE `t6` (
- `e` timestamp NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t6;
-e
-NULL
-CREATE TABLE t7 SELECT f FROM t1;
-SHOW CREATE TABLE t7;
-Table Create Table
-t7 CREATE TABLE `t7` (
- `f` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t7;
-f
-1970-04-11 20:13:57
-CREATE TABLE t8 SELECT g FROM t1;
-SHOW CREATE TABLE t8;
-Table Create Table
-t8 CREATE TABLE `t8` (
- `g` datetime DEFAULT current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t8;
-g
-1970-04-11 20:13:57
-CREATE TABLE t9 SELECT h FROM t1;
-SHOW CREATE TABLE t9;
-Table Create Table
-t9 CREATE TABLE `t9` (
- `h` datetime DEFAULT NULL ON UPDATE current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t9;
-h
-NULL
-CREATE TABLE t10 SELECT i FROM t1;
-SHOW CREATE TABLE t10;
-Table Create Table
-t10 CREATE TABLE `t10` (
- `i` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t10;
-i
-NULL
-CREATE TABLE t11 SELECT j FROM t1;
-SHOW CREATE TABLE t11;
-Table Create Table
-t11 CREATE TABLE `t11` (
- `j` datetime DEFAULT '1986-09-27 03:00:00'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t11;
-j
-1986-09-27 03:00:00
-CREATE TABLE t12 (
-k TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-l TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-m TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-n TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-o TIMESTAMP NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-p TIMESTAMP NULL,
-q DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-r DATETIME DEFAULT CURRENT_TIMESTAMP,
-s DATETIME ON UPDATE CURRENT_TIMESTAMP,
-t DATETIME NULL,
-u DATETIME DEFAULT '1986-09-27 03:00:00.098765'
-)
-SELECT * FROM t1;
-SHOW CREATE TABLE t12;
-Table Create Table
-t12 CREATE TABLE `t12` (
- `k` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `l` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `m` timestamp NOT NULL DEFAULT current_timestamp(),
- `n` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(),
- `o` timestamp NOT NULL DEFAULT '1986-09-27 03:00:00',
- `p` timestamp NULL DEFAULT NULL,
- `q` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `r` datetime DEFAULT current_timestamp(),
- `s` datetime DEFAULT NULL ON UPDATE current_timestamp(),
- `t` datetime DEFAULT NULL,
- `u` datetime DEFAULT '1986-09-27 03:00:00',
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `b` timestamp NOT NULL DEFAULT current_timestamp(),
- `c` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(),
- `d` timestamp NOT NULL DEFAULT '1986-09-27 03:00:00',
- `e` timestamp NULL DEFAULT NULL,
- `f` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `g` datetime DEFAULT current_timestamp(),
- `h` datetime DEFAULT NULL ON UPDATE current_timestamp(),
- `i` datetime DEFAULT NULL,
- `j` datetime DEFAULT '1986-09-27 03:00:00'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12;
-# 1970-04-11 20:13:57 UTC
-SET TIMESTAMP = 8712837.164953;
-CREATE TABLE t1 (
-a DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME DEFAULT CURRENT_TIMESTAMP,
-c DATETIME ON UPDATE CURRENT_TIMESTAMP,
-d DATETIME NULL,
-e DATETIME DEFAULT '1986-09-27 03:00:00.098765'
-);
-INSERT INTO t1 VALUES ();
-# 1971-01-31 20:13:57 UTC
-SET TIMESTAMP = 34200837.915736;
-CREATE TABLE t2 SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-a
-1970-04-11 20:13:57
-CREATE TABLE t3 SELECT b FROM t1;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `b` datetime DEFAULT current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t3;
-b
-1970-04-11 20:13:57
-CREATE TABLE t4 SELECT c FROM t1;
-SHOW CREATE TABLE t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `c` datetime DEFAULT NULL ON UPDATE current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t4;
-c
-NULL
-CREATE TABLE t5 SELECT d FROM t1;
-SHOW CREATE TABLE t5;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `d` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t5;
-d
-NULL
-CREATE TABLE t6 SELECT e FROM t1;
-SHOW CREATE TABLE t6;
-Table Create Table
-t6 CREATE TABLE `t6` (
- `e` datetime DEFAULT '1986-09-27 03:00:00'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t6;
-e
-1986-09-27 03:00:00
-DROP TABLE t1, t2, t3, t4, t5, t6;
-#
-# Test of a CREATE TABLE SELECT that also declared columns. In this case
-# the function default should be de-activated during the execution of the
-# CREATE TABLE statement.
-#
-# 1970-01-01 03:16:40
-SET TIMESTAMP = 1000.987654;
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES ( 1 ), ( 2 );
-CREATE TABLE t2 ( b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP) SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `b` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SET TIMESTAMP = 2000.876543;
-INSERT INTO t2( a ) VALUES ( 3 );
-SELECT * FROM t2;
-b a
-1970-01-01 00:16:40 1
-1970-01-01 00:16:40 2
-1970-01-01 00:33:20 3
-DROP TABLE t1, t2;
-#
-# Test of updating a view.
-#
-CREATE TABLE t1 ( a INT, b DATETIME DEFAULT CURRENT_TIMESTAMP );
-CREATE TABLE t2 ( a INT, b DATETIME ON UPDATE CURRENT_TIMESTAMP );
-CREATE VIEW v1 AS SELECT * FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` latin1 latin1_swedish_ci
-CREATE VIEW v2 AS SELECT * FROM t2;
-SHOW CREATE VIEW v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t2`.`a` AS `a`,`t2`.`b` AS `b` from `t2` latin1 latin1_swedish_ci
-# 1971-01-31 21:13:57 UTC
-SET TIMESTAMP = 34200837.348564;
-INSERT INTO v1 ( a ) VALUES ( 1 );
-INSERT INTO v2 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b
-1 1971-01-31 20:13:57
-SELECT * FROM v1;
-a b
-1 1971-01-31 20:13:57
-SELECT * FROM t2;
-a b
-1 NULL
-SELECT * FROM v2;
-a b
-1 NULL
-# 1970-04-11 20:13:57 UTC
-SET TIMESTAMP = 8712837.567332;
-UPDATE v1 SET a = 2;
-UPDATE v2 SET a = 2;
-SELECT * FROM t1;
-a b
-2 1971-01-31 20:13:57
-SELECT * FROM v1;
-a b
-2 1971-01-31 20:13:57
-SELECT * FROM t2;
-a b
-2 1970-04-11 20:13:57
-SELECT * FROM v2;
-a b
-2 1970-04-11 20:13:57
-DROP VIEW v1, v2;
-DROP TABLE t1, t2;
-#
-# Test with stored procedures.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-e TIMESTAMP NULL,
-f DATETIME DEFAULT CURRENT_TIMESTAMP,
-g DATETIME ON UPDATE CURRENT_TIMESTAMP
-);
-CREATE PROCEDURE p1() INSERT INTO test.t1( a ) VALUES ( 1 );
-CREATE PROCEDURE p2() UPDATE t1 SET a = 2 WHERE a = 1;
-# 1971-01-31 20:13:57 UTC
-SET TIMESTAMP = 34200837.876544;
-CALL p1();
-SELECT * FROM t1;
-a b c d e f g
-1 1971-01-31 20:13:57 1971-01-31 20:13:57 0000-00-00 00:00:00 NULL 1971-01-31 20:13:57 NULL
-# 1970-04-11 21:13:57 UTC
-SET TIMESTAMP = 8712837.143546;
-CALL p2();
-SELECT * FROM t1;
-a b c d e f g
-2 1970-04-11 20:13:57 1971-01-31 20:13:57 1970-04-11 20:13:57 NULL 1971-01-31 20:13:57 1970-04-11 20:13:57
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP TABLE t1;
-#
-# Test with triggers.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-e TIMESTAMP NULL,
-f DATETIME,
-g DATETIME DEFAULT CURRENT_TIMESTAMP,
-h DATETIME ON UPDATE CURRENT_TIMESTAMP,
-i DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
-);
-CREATE TABLE t2 ( a INT );
-CREATE TRIGGER t2_trg BEFORE INSERT ON t2 FOR EACH ROW
-BEGIN
-INSERT INTO t1 ( a ) VALUES ( 1 );
-END|
-# 1971-01-31 21:13:57 UTC
-SET TIMESTAMP = 34200837.978675;
-INSERT INTO t2 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-1 1971-01-31 20:13:57 1971-01-31 20:13:57 0000-00-00 00:00:00 NULL NULL 1971-01-31 20:13:57 NULL 1971-01-31 20:13:57
-DROP TRIGGER t2_trg;
-CREATE TRIGGER t2_trg BEFORE INSERT ON t2 FOR EACH ROW
-BEGIN
-UPDATE t1 SET a = 2;
-END|
-# 1970-04-11 21:13:57 UTC
-SET TIMESTAMP = 8712837.456789;
-INSERT INTO t2 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-2 1970-04-11 20:13:57 1971-01-31 20:13:57 1970-04-11 20:13:57 NULL NULL 1971-01-31 20:13:57 1970-04-11 20:13:57 1970-04-11 20:13:57
-DROP TABLE t1, t2;
-#
-# Test where the assignment target is not a column.
-#
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP );
-CREATE TABLE t2 ( a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP );
-CREATE TABLE t3 ( a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP );
-CREATE TABLE t4 ( a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP );
-CREATE VIEW v1 AS SELECT a COLLATE latin1_german1_ci AS b FROM t1;
-CREATE VIEW v2 ( b ) AS SELECT a COLLATE latin1_german1_ci FROM t2;
-CREATE VIEW v3 AS SELECT a COLLATE latin1_german1_ci AS b FROM t3;
-CREATE VIEW v4 ( b ) AS SELECT a COLLATE latin1_german1_ci FROM t4;
-INSERT INTO v1 ( b ) VALUES ( '2007-10-24 00:03:34.010203' );
-SELECT a FROM t1;
-a
-2007-10-24 00:03:34
-INSERT INTO v2 ( b ) VALUES ( '2007-10-24 00:03:34.010203' );
-SELECT a FROM t2;
-a
-2007-10-24 00:03:34
-INSERT INTO t3 VALUES ();
-UPDATE v3 SET b = '2007-10-24 00:03:34.010203';
-SELECT a FROM t3;
-a
-2007-10-24 00:03:34
-INSERT INTO t4 VALUES ();
-UPDATE v4 SET b = '2007-10-24 00:03:34.010203';
-SELECT a FROM t4;
-a
-2007-10-24 00:03:34
-DROP VIEW v1, v2, v3, v4;
-DROP TABLE t1, t2, t3, t4;
-#
-# Test of LOAD DATA/XML INFILE
-# This tests behavior of function defaults for TIMESTAMP and DATETIME
-# columns. during LOAD ... INFILE.
-# As can be seen here, a TIMESTAMP column with only ON UPDATE
-# CURRENT_TIMESTAMP will still have CURRENT_TIMESTAMP inserted on LOAD
-# ... INFILE if the value is missing. For DATETIME columns a NULL value
-# is inserted instead.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-e TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-f DATETIME,
-g DATETIME DEFAULT CURRENT_TIMESTAMP,
-h DATETIME ON UPDATE CURRENT_TIMESTAMP,
-i DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
-);
-CREATE TABLE t2 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-e DATETIME NOT NULL,
-f DATETIME NOT NULL DEFAULT '1977-01-02 12:13:14',
-g DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL,
-h DATETIME ON UPDATE CURRENT_TIMESTAMP NOT NULL,
-i DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL
-);
-SELECT 1 INTO OUTFILE 't3.dat' FROM dual;
-SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
-INTO OUTFILE 't4.dat'
-FROM dual;
-SELECT 1, 2 INTO OUTFILE 't5.dat' FROM dual;
-# Mon Aug 1 15:11:19 2011 UTC
-SET TIMESTAMP = 1312211479.918273;
-LOAD DATA INFILE 't3.dat' IGNORE INTO TABLE t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-a 1
-b 2011-08-01 15:11:19
-c 2011-08-01 15:11:19
-d 2011-08-01 15:11:19
-e 2011-08-01 15:11:19
-f NULL
-g NULL
-h NULL
-i NULL
-LOAD DATA INFILE 't4.dat' IGNORE INTO TABLE t2;
-Warnings:
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'e' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'f' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'g' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'h' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'i' at row 1
-SELECT a FROM t2;
-a
-2011-08-01 15:11:19
-SELECT b FROM t2;
-b
-2011-08-01 15:11:19
-SELECT c FROM t2;
-c
-2011-08-01 15:11:19
-SELECT d FROM t2;
-d
-2011-08-01 15:11:19
-# As shown here, supplying a NULL value to a non-nullable
-# column with no default value results in the zero date.
-SELECT e FROM t2;
-e
-0000-00-00 00:00:00
-# As shown here, supplying a NULL value to a non-nullable column with a
-# default value results in the zero date.
-SELECT f FROM t2;
-f
-0000-00-00 00:00:00
-# As shown here, supplying a NULL value to a non-nullable column with a
-# default function results in the zero date.
-SELECT g FROM t2;
-g
-0000-00-00 00:00:00
-# As shown here, supplying a NULL value to a non-nullable DATETIME ON
-# UPDATE CURRENT_TIMESTAMP column with no default value results in the
-# zero date.
-SELECT h FROM t2;
-h
-0000-00-00 00:00:00
-SELECT i FROM t2;
-i
-0000-00-00 00:00:00
-DELETE FROM t1;
-DELETE FROM t2;
-# Read t3 file into t1
-# The syntax will cause a different code path to be taken
-# (read_fixed_length()) than under the LOAD ... INTO TABLE t1 command
-# above. The code in this path is copy-pasted code from the path taken
-# under the syntax used in the previous LOAD command.
-LOAD DATA INFILE 't3.dat' IGNORE INTO TABLE t1
-FIELDS TERMINATED BY '' ENCLOSED BY '';
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT b FROM t1;
-b
-2011-08-01 15:11:19
-SELECT c FROM t1;
-c
-2011-08-01 15:11:19
-SELECT d FROM t1;
-d
-2011-08-01 15:11:19
-SELECT e FROM t1;
-e
-2011-08-01 15:11:19
-# Yes, a missing field cannot be NULL using this syntax, so it will
-# zero date instead. Says a comment in read_fixed_length() : "No fields
-# specified in fields_vars list can be NULL in this format."
-# It appears to be by design. This is inconsistent with LOAD DATA INFILE
-# syntax in previous test.
-SELECT f FROM t1;
-f
-0000-00-00 00:00:00
-SELECT g FROM t1;
-g
-0000-00-00 00:00:00
-# See comment above "SELECT f FROM f1".
-SELECT h FROM t1;
-h
-0000-00-00 00:00:00
-SELECT i FROM t1;
-i
-0000-00-00 00:00:00
-DELETE FROM t1;
-LOAD DATA INFILE 't5.dat' INTO TABLE t1 ( a, @dummy );
-SELECT * FROM t1;
-a b c d e f g h i
-1 2011-08-01 15:11:19 2011-08-01 15:11:19 0000-00-00 00:00:00 2011-08-01 15:11:19 NULL 2011-08-01 15:11:19 NULL 2011-08-01 15:11:19
-SELECT @dummy;
-@dummy
-2
-DELETE FROM t1;
-LOAD DATA INFILE 't3.dat' INTO TABLE t1 ( a ) SET c = '2005-06-06 08:09:10';
-SELECT * FROM t1;
-a b c d e f g h i
-1 2011-08-01 15:11:19 2005-06-06 08:09:10 0000-00-00 00:00:00 2011-08-01 15:11:19 NULL 2011-08-01 15:11:19 NULL 2011-08-01 15:11:19
-DELETE FROM t1;
-LOAD DATA INFILE 't3.dat' INTO TABLE t1 ( a ) SET g = '2005-06-06 08:09:10';
-SELECT * FROM t1;
-a b c d e f g h i
-1 2011-08-01 15:11:19 2011-08-01 15:11:19 0000-00-00 00:00:00 2011-08-01 15:11:19 NULL 2005-06-06 08:09:10 NULL 2011-08-01 15:11:19
-DELETE FROM t1;
-# Load a static XML file
-LOAD XML INFILE '../../std_data/onerow.xml' INTO TABLE t1
-ROWS IDENTIFIED BY '<row>';
-Missing tags are treated as NULL
-SELECT * FROM t1;
-a 1
-b 2011-08-01 15:11:19
-c 2011-08-01 15:11:19
-d 2011-08-01 15:11:19
-e 2011-08-01 15:11:19
-f NULL
-g NULL
-h NULL
-i NULL
-DROP TABLE t1, t2;
-#
-# Similar LOAD DATA tests in another form
-#
-# All of this test portion has been run on a pre-WL5874 trunk
-# (except that like_b and like_c didn't exist) and all result
-# differences are a bug.
-# Regarding like_b its definition is the same as b's except
-# that the constant default is replaced with a function
-# default. Our expectation is that like_b would behave
-# like b: if b is set to NULL, or set to 0000-00-00, or set to
-# its default, then the same should apply to like_b. Same for
-# like_c vs c.
-# Mon Aug 1 15:11:19 2011 UTC
-SET TIMESTAMP = 1312211479.089786;
-SELECT 1 INTO OUTFILE "file1.dat" FROM dual;
-SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
-INTO OUTFILE "file2.dat" FROM dual;
-# Too short row
-CREATE TABLE t1 (
-dummy INT,
-a DATETIME NULL DEFAULT NULL,
-b DATETIME NULL DEFAULT "2011-11-18",
-like_b DATETIME NULL DEFAULT CURRENT_TIMESTAMP,
-c DATETIME NOT NULL DEFAULT "2011-11-18",
-like_c DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
-d TIMESTAMP NULL DEFAULT "2011-05-03" ON UPDATE CURRENT_TIMESTAMP,
-e TIMESTAMP NOT NULL DEFAULT "2011-05-03",
-f TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-g TIMESTAMP NULL DEFAULT NULL,
-h INT NULL,
-i INT NOT NULL DEFAULT 42
-);
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime DEFAULT NULL,
- `b` datetime DEFAULT '2011-11-18 00:00:00',
- `like_b` datetime DEFAULT current_timestamp(),
- `c` datetime NOT NULL DEFAULT '2011-11-18 00:00:00',
- `like_c` datetime NOT NULL DEFAULT current_timestamp(),
- `d` timestamp NULL DEFAULT '2011-05-03 00:00:00' ON UPDATE current_timestamp(),
- `e` timestamp NOT NULL DEFAULT '2011-05-03 00:00:00',
- `f` timestamp NOT NULL DEFAULT current_timestamp(),
- `g` timestamp NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file1.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-# It is strange that "like_b" gets NULL when "b" gets 0. But
-# this is consistent with how "a" gets NULL when "b" gets 0,
-# with how "g" gets NULL when "d" gets 0, and with how "h" gets
-# NULL when "i" gets 0. Looks like "DEFAULT
-# <non-NULL-constant>" is changed to 0, whereas DEFAULT NULL
-# and DEFAULT NOW are changed to NULL.
-SELECT * FROM t1;
-dummy 1
-a NULL
-b 0000-00-00 00:00:00
-like_b NULL
-c 0000-00-00 00:00:00
-like_c 0000-00-00 00:00:00
-d 0000-00-00 00:00:00
-e 2011-08-01 15:11:19
-f 2011-08-01 15:11:19
-g NULL
-h NULL
-i 0
-delete from t1;
-alter table t1
-modify f TIMESTAMP NULL default CURRENT_TIMESTAMP;
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime DEFAULT NULL,
- `b` datetime DEFAULT '2011-11-18 00:00:00',
- `like_b` datetime DEFAULT current_timestamp(),
- `c` datetime NOT NULL DEFAULT '2011-11-18 00:00:00',
- `like_c` datetime NOT NULL DEFAULT current_timestamp(),
- `d` timestamp NULL DEFAULT '2011-05-03 00:00:00' ON UPDATE current_timestamp(),
- `e` timestamp NOT NULL DEFAULT '2011-05-03 00:00:00',
- `f` timestamp NULL DEFAULT current_timestamp(),
- `g` timestamp NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file1.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-dummy 1
-a NULL
-b 0000-00-00 00:00:00
-like_b NULL
-c 0000-00-00 00:00:00
-like_c 0000-00-00 00:00:00
-d 0000-00-00 00:00:00
-e 2011-08-01 15:11:19
-f NULL
-g NULL
-h NULL
-i 0
-delete from t1;
-drop table t1;
-# Conclusion derived from trunk's results:
-# DATETIME DEFAULT <non-NULL-constant> (b,c) gets 0000-00-00,
-# DATETIME DEFAULT NULL (a) gets NULL,
-# TIMESTAMP NULL DEFAULT <non-NULL-constant> (d) gets 0000-00-00,
-# TIMESTAMP NULL DEFAULT NULL (g) gets NULL,
-# TIMESTAMP NULL DEFAULT NOW (f after ALTER) gets NULL,
-# TIMESTAMP NOT NULL (f before ALTER, e) gets NOW.
-### Loading NULL ###
-CREATE TABLE t1 (
-dummy INT,
-a DATETIME NULL DEFAULT NULL,
-b DATETIME NULL DEFAULT "2011-11-18",
-like_b DATETIME NULL DEFAULT CURRENT_TIMESTAMP,
-c DATETIME NOT NULL DEFAULT "2011-11-18",
-like_c DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
-d TIMESTAMP NULL DEFAULT "2011-05-03" ON UPDATE CURRENT_TIMESTAMP,
-e TIMESTAMP NOT NULL DEFAULT "2011-05-03",
-f TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-g TIMESTAMP NULL DEFAULT NULL,
-h INT NULL,
-i INT NOT NULL DEFAULT 42
-);
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime DEFAULT NULL,
- `b` datetime DEFAULT '2011-11-18 00:00:00',
- `like_b` datetime DEFAULT current_timestamp(),
- `c` datetime NOT NULL DEFAULT '2011-11-18 00:00:00',
- `like_c` datetime NOT NULL DEFAULT current_timestamp(),
- `d` timestamp NULL DEFAULT '2011-05-03 00:00:00' ON UPDATE current_timestamp(),
- `e` timestamp NOT NULL DEFAULT '2011-05-03 00:00:00',
- `f` timestamp NOT NULL DEFAULT current_timestamp(),
- `g` timestamp NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file2.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'like_c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'i' at row 1
-SELECT * FROM t1;
-dummy NULL
-a NULL
-b NULL
-like_b NULL
-c 0000-00-00 00:00:00
-like_c 0000-00-00 00:00:00
-d NULL
-e 2011-08-01 15:11:19
-f 2011-08-01 15:11:19
-g NULL
-h NULL
-i 0
-delete from t1;
-alter table t1
-modify f TIMESTAMP NULL default CURRENT_TIMESTAMP;
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime DEFAULT NULL,
- `b` datetime DEFAULT '2011-11-18 00:00:00',
- `like_b` datetime DEFAULT current_timestamp(),
- `c` datetime NOT NULL DEFAULT '2011-11-18 00:00:00',
- `like_c` datetime NOT NULL DEFAULT current_timestamp(),
- `d` timestamp NULL DEFAULT '2011-05-03 00:00:00' ON UPDATE current_timestamp(),
- `e` timestamp NOT NULL DEFAULT '2011-05-03 00:00:00',
- `f` timestamp NULL DEFAULT current_timestamp(),
- `g` timestamp NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file2.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'like_c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'i' at row 1
-SELECT * FROM t1;
-dummy NULL
-a NULL
-b NULL
-like_b NULL
-c 0000-00-00 00:00:00
-like_c 0000-00-00 00:00:00
-d NULL
-e 2011-08-01 15:11:19
-f NULL
-g NULL
-h NULL
-i 0
-delete from t1;
-# Conclusion derived from trunk's results:
-# DATETIME NULL (a,b) gets NULL,
-# DATETIME NOT NULL (c) gets 0000-00-00,
-# TIMESTAMP NULL (d,f,g) gets NULL,
-# TIMESTAMP NOT NULL (e) gets NOW.
-drop table t1;
-#
-# Test of updatable views with check options. The option can be violated
-# using ON UPDATE updates which is very strange as this offers a loophole
-# in this integrity check.
-#
-SET TIME_ZONE = "+03:00";
-# 1970-01-01 03:16:40
-SET TIMESTAMP = 1000.123456;
-CREATE TABLE t1 ( a INT, b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b
-1 1970-01-01 03:16:40
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE b <= '1970-01-01 03:16:40.123456'
-WITH CHECK OPTION;
-SELECT * FROM v1;
-a b
-1 1970-01-01 03:16:40
-# 1970-01-01 03:33:20
-SET TIMESTAMP = 2000.000234;
-UPDATE v1 SET a = 2;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-SELECT * FROM t1;
-a b
-1 1970-01-01 03:16:40
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT '1973-08-14 09:11:22.089786' ON UPDATE CURRENT_TIMESTAMP,
-c INT KEY
-);
-# 1973-08-14 09:11:22 UTC
-SET TIMESTAMP = 114167482.534231;
-INSERT INTO t1 ( c ) VALUES ( 1 );
-CREATE VIEW v1 AS
-SELECT *
-FROM t1
-WHERE a >= '1973-08-14 09:11:22'
-WITH LOCAL CHECK OPTION;
-SELECT * FROM v1;
-a c
-1973-08-14 09:11:22 1
-SET TIMESTAMP = 1.126789;
-INSERT INTO v1 ( c ) VALUES ( 1 ) ON DUPLICATE KEY UPDATE c = 2;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-SELECT * FROM v1;
-a c
-1973-08-14 09:11:22 1
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug 13095459 - MULTI-TABLE UPDATE MODIFIES A ROW TWICE
-#
-CREATE TABLE t1 (
-a INT,
-b INT,
-ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-PRIMARY KEY ( a, ts )
-);
-INSERT INTO t1( a, b, ts ) VALUES ( 1, 0, '2000-09-28 17:44:34' );
-CREATE TABLE t2 ( a INT );
-INSERT INTO t2 VALUES ( 1 );
-UPDATE t1 STRAIGHT_JOIN t2
-SET t1.b = t1.b + 1
-WHERE t1.a = 1 AND t1.ts >= '2000-09-28 00:00:00';
-SELECT b FROM t1;
-b
-1
-DROP TABLE t1, t2;
-#
-# Bug#11745578: 17392: ALTER TABLE ADD COLUMN TIMESTAMP DEFAULT
-# CURRENT_TIMESTAMP INSERTS ZERO
-#
-SET timestamp = 1000;
-CREATE TABLE t1 ( b INT );
-INSERT INTO t1 VALUES (1);
-ALTER TABLE t1 ADD COLUMN a6 DATETIME DEFAULT NOW() ON UPDATE NOW() FIRST;
-ALTER TABLE t1 ADD COLUMN a5 DATETIME DEFAULT NOW() FIRST;
-ALTER TABLE t1 ADD COLUMN a4 DATETIME ON UPDATE NOW() FIRST;
-ALTER TABLE t1 ADD COLUMN a3 TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE NOW() FIRST;
-ALTER TABLE t1 ADD COLUMN a2 TIMESTAMP NOT NULL DEFAULT NOW() FIRST;
-ALTER TABLE t1 ADD COLUMN a1 TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW() FIRST;
-ALTER TABLE t1 ADD COLUMN c1 TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW() AFTER b;
-ALTER TABLE t1 ADD COLUMN c2 TIMESTAMP NOT NULL DEFAULT NOW() AFTER c1;
-ALTER TABLE t1 ADD COLUMN c3 TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE NOW() AFTER c2;
-ALTER TABLE t1 ADD COLUMN c4 DATETIME ON UPDATE NOW() AFTER c3;
-ALTER TABLE t1 ADD COLUMN c5 DATETIME DEFAULT NOW() AFTER c4;
-ALTER TABLE t1 ADD COLUMN c6 DATETIME DEFAULT NOW() ON UPDATE NOW() AFTER c5;
-SELECT * FROM t1;
-a1 0000-00-00 00:00:00
-a2 1970-01-01 03:16:40
-a3 1970-01-01 03:16:40
-a4 NULL
-a5 1970-01-01 03:16:40
-a6 1970-01-01 03:16:40
-b 1
-c1 0000-00-00 00:00:00
-c2 1970-01-01 03:16:40
-c3 1970-01-01 03:16:40
-c4 NULL
-c5 1970-01-01 03:16:40
-c6 1970-01-01 03:16:40
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE CURRENT_TIMESTAMP, b DATETIME DEFAULT NOW() );
-INSERT INTO t1 VALUES ();
-SET timestamp = 1000000000;
-ALTER TABLE t1 MODIFY COLUMN a TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP(3);
-ALTER TABLE t1 MODIFY COLUMN b DATETIME(3) DEFAULT CURRENT_TIMESTAMP(3);
-SELECT * FROM t1;
-a b
-1970-01-01 03:16:40.000 1970-01-01 03:16:40.000
-DROP TABLE t1;
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT '1999-12-01 11:22:33' ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME DEFAULT '1999-12-01 11:22:33'
-);
-INSERT INTO t1 VALUES ();
-ALTER TABLE t1 MODIFY COLUMN a TIMESTAMP DEFAULT NOW();
-ALTER TABLE t1 MODIFY COLUMN b DATETIME DEFAULT NOW();
-INSERT INTO t1 VALUES ();
-SELECT * FROM t1;
-a b
-1999-12-01 11:22:33 1999-12-01 11:22:33
-2001-09-09 04:46:40 2001-09-09 04:46:40
-DROP TABLE t1;
-#
-# Function defaults run 2. Six digits scale on seconds precision.
-#
-SET TIME_ZONE = "+00:00";
-#
-# Test of errors for column data types that dont support function
-# defaults.
-#
-CREATE OR REPLACE TABLE t1( a BIT DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a TINYINT DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a SMALLINT DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a MEDIUMINT DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a INT DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a BIGINT DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a FLOAT DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a DECIMAL DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a DATE DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a TIME DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a YEAR DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a BIT ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a TINYINT ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a SMALLINT ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a MEDIUMINT ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a INT ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a BIGINT ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a FLOAT ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a DECIMAL ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a DATE ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a TIME ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a YEAR ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-drop table if exists t1;
-#
-# Test that the default clause behaves like NOW() regarding time zones.
-#
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NULL,
-e DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-f DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-g DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-h DATETIME(6)
-);
-# 2011-09-27 14:11:08 UTC
-SET TIMESTAMP = 1317132668.654321;
-SET @old_time_zone = @@TIME_ZONE;
-SET TIME_ZONE = "+05:00";
-INSERT INTO t1( d, h ) VALUES ( NOW(6), NOW(6) );
-SELECT * FROM t1;
-a b c d e f g h
-2011-09-27 19:11:08.654321 2011-09-27 19:11:08.654321 0000-00-00 00:00:00.000000 2011-09-27 19:11:08.654321 2011-09-27 19:11:08.654321 2011-09-27 19:11:08.654321 NULL 2011-09-27 19:11:08.654321
-# 1989-05-13 01:02:03
-SET TIMESTAMP = 611017323.543212;
-UPDATE t1 SET d = NOW(6), h = NOW(6);
-SELECT * FROM t1;
-a b c d e f g h
-1989-05-13 04:02:03.543212 2011-09-27 19:11:08.654321 1989-05-13 04:02:03.543212 1989-05-13 04:02:03.543212 1989-05-13 04:02:03.543212 2011-09-27 19:11:08.654321 1989-05-13 04:02:03.543212 1989-05-13 04:02:03.543212
-SET TIME_ZONE = @old_time_zone;
-DROP TABLE t1;
-#
-# Test of several TIMESTAMP columns with different function defaults.
-#
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-f INT
-);
-# 2011-04-19 07:22:02 UTC
-SET TIMESTAMP = 1303197722.534231;
-INSERT INTO t1 ( f ) VALUES (1);
-SELECT * FROM t1;
-a b c d e f
-2011-04-19 07:22:02.534231 2011-04-19 07:22:02.534231 2011-04-19 07:22:02.534231 0000-00-00 00:00:00.000000 0000-00-00 00:00:00.000000 1
-# 2011-04-19 07:23:18 UTC
-SET TIMESTAMP = 1303197798.132435;
-UPDATE t1 SET f = 2;
-SELECT * FROM t1;
-a b c d e f
-2011-04-19 07:23:18.132435 2011-04-19 07:23:18.132435 2011-04-19 07:22:02.534231 2011-04-19 07:23:18.132435 2011-04-19 07:23:18.132435 2
-DROP TABLE t1;
-#
-# Test of inserted values out of order.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NULL,
-f DATETIME(6),
-g DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-h DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-i DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-j INT
-);
-# 2011-04-19 07:22:02 UTC
-SET TIMESTAMP = 1303197722.534231;
-INSERT INTO t1 ( j, a ) VALUES ( 1, 1 );
-SELECT * FROM t1;
-a b c d e f g h i j
-1 2011-04-19 07:22:02.534231 2011-04-19 07:22:02.534231 0000-00-00 00:00:00.000000 NULL NULL 2011-04-19 07:22:02.534231 NULL 2011-04-19 07:22:02.534231 1
-DROP TABLE t1;
-#
-# Test of ON DUPLICATE KEY UPDATE
-#
-CREATE TABLE t1 (
-a INT PRIMARY KEY,
-b INT,
-c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-f TIMESTAMP(6) NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-g TIMESTAMP(6) NULL,
-h DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-i DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-j DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-k DATETIME(6) NULL,
-l DATETIME(6) DEFAULT '1986-09-27 03:00:00.098765'
-);
-# 1977-12-21 23:00:00 UTC
-SET TIMESTAMP = 251593200.192837;
-INSERT INTO t1(a) VALUES (1) ON DUPLICATE KEY UPDATE b = 2;
-SELECT * FROM t1;
-a b c d e f g h i j k l
-1 NULL 1977-12-21 23:00:00.192837 1977-12-21 23:00:00.192837 0000-00-00 00:00:00.000000 1986-09-27 03:00:00.098765 NULL 1977-12-21 23:00:00.192837 1977-12-21 23:00:00.192837 NULL NULL 1986-09-27 03:00:00.098765
-# 1975-05-21 23:00:00 UTC
-SET TIMESTAMP = 169945200.918273;
-INSERT INTO t1(a) VALUES (1) ON DUPLICATE KEY UPDATE b = 2;
-SELECT * FROM t1;
-a b c d e f g h i j k l
-1 2 1975-05-21 23:00:00.918273 1977-12-21 23:00:00.192837 1975-05-21 23:00:00.918273 1986-09-27 03:00:00.098765 NULL 1975-05-21 23:00:00.918273 1977-12-21 23:00:00.192837 1975-05-21 23:00:00.918273 NULL 1986-09-27 03:00:00.098765
-# 1973-08-14 09:11:22 UTC
-SET TIMESTAMP = 114167482.534231;
-INSERT INTO t1(a) VALUES (2) ON DUPLICATE KEY UPDATE b = 2;
-SELECT * FROM t1;
-a b c d e f g h i j k l
-1 2 1975-05-21 23:00:00.918273 1977-12-21 23:00:00.192837 1975-05-21 23:00:00.918273 1986-09-27 03:00:00.098765 NULL 1975-05-21 23:00:00.918273 1977-12-21 23:00:00.192837 1975-05-21 23:00:00.918273 NULL 1986-09-27 03:00:00.098765
-2 NULL 1973-08-14 09:11:22.534231 1973-08-14 09:11:22.534231 0000-00-00 00:00:00.000000 1986-09-27 03:00:00.098765 NULL 1973-08-14 09:11:22.534231 1973-08-14 09:11:22.534231 NULL NULL 1986-09-27 03:00:00.098765
-DROP TABLE t1;
-CREATE TABLE t1 ( a INT PRIMARY KEY, b INT, c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) );
-# 2011-04-19 07:23:18 UTC
-SET TIMESTAMP = 1303197798.945156;
-INSERT INTO t1 VALUES
-(1, 0, '2001-01-01 01:01:01.111111'),
-(2, 0, '2002-02-02 02:02:02.222222'),
-(3, 0, '2003-03-03 03:03:03.333333');
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01.111111
-2 0 2002-02-02 02:02:02.222222
-3 0 2003-03-03 03:03:03.333333
-UPDATE t1 SET b = 2, c = c WHERE a = 2;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01.111111
-2 2 2002-02-02 02:02:02.222222
-3 0 2003-03-03 03:03:03.333333
-INSERT INTO t1 (a) VALUES (4);
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01.111111
-2 2 2002-02-02 02:02:02.222222
-3 0 2003-03-03 03:03:03.333333
-4 NULL 2011-04-19 07:23:18.945156
-UPDATE t1 SET c = '2004-04-04 04:04:04.444444' WHERE a = 4;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01.111111
-2 2 2002-02-02 02:02:02.222222
-3 0 2003-03-03 03:03:03.333333
-4 NULL 2004-04-04 04:04:04.444444
-INSERT INTO t1 ( a ) VALUES ( 3 ), ( 5 ) ON DUPLICATE KEY UPDATE b = 3, c = c;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01.111111
-2 2 2002-02-02 02:02:02.222222
-3 3 2003-03-03 03:03:03.333333
-4 NULL 2004-04-04 04:04:04.444444
-5 NULL 2011-04-19 07:23:18.945156
-INSERT INTO t1 (a, c) VALUES
-(4, '2004-04-04 00:00:00.444444'),
-(6, '2006-06-06 06:06:06.666666')
-ON DUPLICATE KEY UPDATE b = 4;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01.111111
-2 2 2002-02-02 02:02:02.222222
-3 3 2003-03-03 03:03:03.333333
-4 4 2011-04-19 07:23:18.945156
-5 NULL 2011-04-19 07:23:18.945156
-6 NULL 2006-06-06 06:06:06.666666
-DROP TABLE t1;
-#
-# Test of REPLACE INTO executed as UPDATE.
-#
-CREATE TABLE t1 (
-a INT PRIMARY KEY,
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-e DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-f TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-g DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-h TIMESTAMP(6) NULL,
-i DATETIME(6)
-);
-# 1970-09-21 09:11:12 UTC
-SET TIMESTAMP = 22756272.163584;
-REPLACE INTO t1 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-1 1970-09-21 09:11:12.163584 1970-09-21 09:11:12.163584 1970-09-21 09:11:12.163584 1970-09-21 09:11:12.163584 0000-00-00 00:00:00.000000 NULL NULL NULL
-# 1970-11-10 14:16:17 UTC
-SET TIMESTAMP = 27094577.852954;
-REPLACE INTO t1 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-1 1970-11-10 14:16:17.852954 1970-11-10 14:16:17.852954 1970-11-10 14:16:17.852954 1970-11-10 14:16:17.852954 0000-00-00 00:00:00.000000 NULL NULL NULL
-DROP TABLE t1;
-#
-# Test of insertion of NULL, DEFAULT and an empty row for DEFAULT
-# CURRENT_TIMESTAMP.
-#
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-c INT
-);
-# 2011-04-20 09:53:41 UTC
-SET TIMESTAMP = 1303293221.163578;
-INSERT INTO t1 VALUES (NULL, NULL, 1), (DEFAULT, DEFAULT, 2);
-INSERT INTO t1 ( a, b, c ) VALUES (NULL, NULL, 3), (DEFAULT, DEFAULT, 4);
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41.163578 NULL 1
-2011-04-20 09:53:41.163578 2011-04-20 09:53:41.163578 2
-2011-04-20 09:53:41.163578 NULL 3
-2011-04-20 09:53:41.163578 2011-04-20 09:53:41.163578 4
-SET TIME_ZONE = "+03:00";
-SELECT * FROM t1;
-a b c
-2011-04-20 12:53:41.163578 NULL 1
-2011-04-20 12:53:41.163578 2011-04-20 09:53:41.163578 2
-2011-04-20 12:53:41.163578 NULL 3
-2011-04-20 12:53:41.163578 2011-04-20 09:53:41.163578 4
-SET TIME_ZONE = "+00:00";
-DROP TABLE t1;
-# 2011-04-20 07:05:39 UTC
-SET TIMESTAMP = 1303283139.195624;
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT '2010-10-11 12:34:56' ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) DEFAULT '2010-10-11 12:34:56'
-);
-INSERT INTO t1 VALUES (NULL, NULL), (DEFAULT, DEFAULT);
-INSERT INTO t1 ( a, b ) VALUES (NULL, NULL), (DEFAULT, DEFAULT);
-SELECT * FROM t1;
-a b
-2011-04-20 07:05:39.195624 NULL
-2010-10-11 12:34:56.000000 2010-10-11 12:34:56.000000
-2011-04-20 07:05:39.195624 NULL
-2010-10-11 12:34:56.000000 2010-10-11 12:34:56.000000
-DROP TABLE t1;
-# 2011-04-20 09:53:41 UTC
-SET TIMESTAMP = 1303293221.136952;
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-e TIMESTAMP(6) NULL,
-f DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-g DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-h DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-i DATETIME(6) NULL,
-j DATETIME(6) DEFAULT '1986-09-27 03:00:00.098765'
-);
-INSERT INTO t1 VALUES ();
-INSERT INTO t1 SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL;
-SELECT * FROM t1;
-a b c d e f g h i j
-2011-04-20 09:53:41.136952 2011-04-20 09:53:41.136952 0000-00-00 00:00:00.000000 1986-09-27 03:00:00.098765 NULL 2011-04-20 09:53:41.136952 2011-04-20 09:53:41.136952 NULL NULL 1986-09-27 03:00:00.098765
-2011-04-20 09:53:41.136952 2011-04-20 09:53:41.136952 2011-04-20 09:53:41.136952 2011-04-20 09:53:41.136952 NULL NULL NULL NULL NULL NULL
-DROP TABLE t1;
-#
-# Test of multiple-table UPDATE for DEFAULT CURRENT_TIMESTAMP
-#
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-c INT
-);
-INSERT INTO t1 ( c ) VALUES (1);
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41.136952 2011-04-20 09:53:41.136952 1
-# 2011-04-20 17:06:13 UTC
-SET TIMESTAMP = 1303311973.163587;
-UPDATE t1 t11, t1 t12 SET t11.c = 1;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41.136952 2011-04-20 09:53:41.136952 1
-UPDATE t1 t11, t1 t12 SET t11.c = 2;
-SELECT * FROM t1;
-a b c
-2011-04-20 15:06:13.163587 2011-04-20 09:53:41.136952 2
-DROP TABLE t1;
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-c DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-d DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-e INT
-);
-CREATE TABLE t2 (
-f INT,
-g DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-h DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-i TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-j TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6)
-);
-# 1995-03-11 00:02:03 UTC
-SET TIMESTAMP = 794880123.195676;
-INSERT INTO t1 ( e ) VALUES ( 1 ), ( 2 );
-INSERT INTO t2 ( f ) VALUES ( 1 ), ( 2 );
-SELECT * FROM t1;
-a b c d e
-1995-03-11 00:02:03.195676 0000-00-00 00:00:00.000000 1995-03-11 00:02:03.195676 NULL 1
-1995-03-11 00:02:03.195676 0000-00-00 00:00:00.000000 1995-03-11 00:02:03.195676 NULL 2
-SELECT * FROM t2;
-f g h i j
-1 NULL 1995-03-11 00:02:03.195676 0000-00-00 00:00:00.000000 1995-03-11 00:02:03.195676
-2 NULL 1995-03-11 00:02:03.195676 0000-00-00 00:00:00.000000 1995-03-11 00:02:03.195676
-# 1980-12-13 02:02:01 UTC
-SET TIMESTAMP = 345520921.196755;
-UPDATE t1, t2 SET t1.e = 3, t2.f = 4;
-SELECT * FROM t1;
-a b c d e
-1995-03-11 00:02:03.195676 1980-12-13 02:02:01.196755 1995-03-11 00:02:03.195676 1980-12-13 02:02:01.196755 3
-1995-03-11 00:02:03.195676 1980-12-13 02:02:01.196755 1995-03-11 00:02:03.195676 1980-12-13 02:02:01.196755 3
-SELECT * FROM t2;
-f g h i j
-4 1980-12-13 02:02:01.196755 1995-03-11 00:02:03.195676 1980-12-13 02:02:01.196755 1995-03-11 00:02:03.195676
-4 1980-12-13 02:02:01.196755 1995-03-11 00:02:03.195676 1980-12-13 02:02:01.196755 1995-03-11 00:02:03.195676
-DROP TABLE t1, t2;
-#
-# Test of multiple table update with temporary table and on the fly.
-#
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c INT,
-d INT
-);
-CREATE TABLE t2 (
-a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c INT KEY,
-d INT
-);
-INSERT INTO t1 ( c ) VALUES (1), (2);
-INSERT INTO t2 ( c ) VALUES (1), (2);
-# Test of multiple table update done on the fly
-# 2011-04-20 15:06:13 UTC
-SET TIMESTAMP = 1303311973.194685;
-UPDATE t1 JOIN t2 USING ( c ) SET t2.d = 1;
-SELECT * FROM t1;
-a b c d
-0000-00-00 00:00:00.000000 NULL 1 NULL
-0000-00-00 00:00:00.000000 NULL 2 NULL
-SELECT * FROM t2;
-a b c d
-2011-04-20 15:06:13.194685 2011-04-20 15:06:13.194685 1 1
-2011-04-20 15:06:13.194685 2011-04-20 15:06:13.194685 2 1
-# Test of multiple table update done with temporary table.
-# 1979-01-15 03:02:01
-SET TIMESTAMP = 285213721.134679;
-UPDATE t1 JOIN t2 USING ( c ) SET t1.d = 1;
-SELECT * FROM t1;
-a b c d
-1979-01-15 02:02:01.134679 1979-01-15 02:02:01.134679 1 1
-1979-01-15 02:02:01.134679 1979-01-15 02:02:01.134679 2 1
-SELECT * FROM t2;
-a b c d
-2011-04-20 15:06:13.194685 2011-04-20 15:06:13.194685 1 1
-2011-04-20 15:06:13.194685 2011-04-20 15:06:13.194685 2 1
-DROP TABLE t1, t2;
-#
-# Test of ON UPDATE CURRENT_TIMESTAMP.
-#
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c INT
-);
-# 2011-04-20 09:53:41 UTC
-SET TIMESTAMP = 1303293221.794613;
-INSERT INTO t1 ( c ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c
-0000-00-00 00:00:00.000000 NULL 1
-UPDATE t1 SET c = 1;
-SELECT * FROM t1;
-a b c
-0000-00-00 00:00:00.000000 NULL 1
-UPDATE t1 SET c = 2;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41.794613 2011-04-20 09:53:41.794613 2
-#
-# Test that ON UPDATE CURRENT_TIMESTAMP works after non-changing UPDATE.
-#
-# 2011-04-20 09:54:13 UTC
-SET TIMESTAMP = 1303293253.794613;
-UPDATE t1 SET c = 2, b = '2011-04-20 09:53:41.794613';
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41.794613 2011-04-20 09:53:41.794613 2
-UPDATE t1 SET c = 3;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:54:13.794613 2011-04-20 09:54:13.794613 3
-#
-# Test of multiple-table UPDATE for ON UPDATE CURRENT_TIMESTAMP
-#
-# 2011-04-20 15:06:13 UTC
-SET TIMESTAMP = 1303311973.534231;
-UPDATE t1 t11, t1 t12 SET t11.c = 3;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:54:13.794613 2011-04-20 09:54:13.794613 3
-UPDATE t1 t11, t1 t12 SET t11.c = 2;
-SELECT * FROM t1;
-a b c
-2011-04-20 15:06:13.534231 2011-04-20 15:06:13.534231 2
-DROP TABLE t1;
-#
-# Test of a multiple-table update where only one table is updated and
-# the updated table has a primary key.
-#
-CREATE TABLE t1 ( a INT, b INT, PRIMARY KEY (a) );
-INSERT INTO t1 VALUES (1, 1),(2, 2),(3, 3),(4, 4);
-CREATE TABLE t2 ( a INT, b INT );
-INSERT INTO t2 VALUES (1, 1),(2, 2),(3, 3),(4, 4),(5, 5);
-UPDATE t1, t2 SET t1.b = 100 WHERE t1.a = t2.a;
-SELECT * FROM t1;
-a b
-1 100
-2 100
-3 100
-4 100
-SELECT * FROM t2;
-a b
-1 1
-2 2
-3 3
-4 4
-5 5
-DROP TABLE t1, t2;
-#
-# Test of ALTER TABLE, reordering columns.
-#
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), b INT );
-ALTER TABLE t1 MODIFY a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a INT, b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), c TIMESTAMP(6) NULL );
-ALTER TABLE t1 MODIFY b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `a` int(11) DEFAULT NULL,
- `c` timestamp(6) NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a INT, b TIMESTAMP(6) NULL );
-ALTER TABLE t1 MODIFY b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), b TIMESTAMP(6) NULL );
-ALTER TABLE t1 MODIFY a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp(6) NULL DEFAULT NULL,
- `a` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), b TIMESTAMP(6) NULL );
-ALTER TABLE t1 MODIFY a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp(6) NULL DEFAULT NULL,
- `a` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW(6), b INT, c TIMESTAMP(6) NULL );
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000' ON UPDATE current_timestamp(6),
- `b` int(11) DEFAULT NULL,
- `c` timestamp(6) NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 MODIFY a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `c` timestamp(6) NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW(6), b INT, c TIMESTAMP(6) NULL );
-ALTER TABLE t1 MODIFY c TIMESTAMP(6) NULL FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` timestamp(6) NULL DEFAULT NULL,
- `a` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000' ON UPDATE current_timestamp(6),
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT NOW(6) ON UPDATE CURRENT_TIMESTAMP(6), b INT, c TIMESTAMP(6) NULL );
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `b` int(11) DEFAULT NULL,
- `c` timestamp(6) NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 MODIFY a TIMESTAMP(6) NOT NULL DEFAULT NOW(6) ON UPDATE CURRENT_TIMESTAMP(6) AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `c` timestamp(6) NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT NOW(6) ON UPDATE CURRENT_TIMESTAMP(6), b INT, c TIMESTAMP(6) NULL );
-ALTER TABLE t1 MODIFY c TIMESTAMP(6) NULL FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` timestamp(6) NULL DEFAULT NULL,
- `a` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# Test of ALTER TABLE, adding columns.
-#
-CREATE TABLE t1 ( a INT );
-ALTER TABLE t1 ADD COLUMN b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# Test of INSERT SELECT.
-#
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-d DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)
-);
-CREATE TABLE t2 (
-placeholder1 INT,
-placeholder2 INT,
-placeholder3 INT,
-placeholder4 INT,
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00',
-c DATETIME(6),
-d DATETIME(6)
-);
-# 1977-08-16 15:30:01 UTC
-SET TIMESTAMP = 240589801.654312;
-INSERT INTO t2 (a, b, c, d) VALUES (
-'1977-08-16 15:30:01.123456',
-'1977-08-16 15:30:01.234567',
-'1977-08-16 15:30:01.345678',
-'1977-08-16 15:30:01.456789'
-);
-# 1986-09-27 01:00:00 UTC
-SET TIMESTAMP = 528166800.132435;
-INSERT INTO t1 ( a, c ) SELECT a, c FROM t2;
-SELECT * FROM t1;
-a b c d
-1977-08-16 15:30:01.123456 1986-09-27 01:00:00.132435 1977-08-16 15:30:01.345678 1986-09-27 01:00:00.132435
-DROP TABLE t1, t2;
-#
-# Test of CREATE TABLE SELECT.
-#
-# We test that the columns of the source table are not used to determine
-# function defaults for the receiving table.
-#
-# 1970-04-11 20:13:57 UTC
-SET TIMESTAMP = 8712837.657898;
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-e TIMESTAMP(6) NULL,
-f DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-g DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-h DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-i DATETIME(6) NULL,
-j DATETIME(6) DEFAULT '1986-09-27 03:00:00.098765'
-);
-INSERT INTO t1 VALUES ();
-# 1971-01-31 21:13:57 UTC
-SET TIMESTAMP = 34200837.164937;
-CREATE TABLE t2 SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-a
-1970-04-11 20:13:57.657897
-CREATE TABLE t3 SELECT b FROM t1;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `b` timestamp(6) NOT NULL DEFAULT current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t3;
-b
-1970-04-11 20:13:57.657897
-CREATE TABLE t4 SELECT c FROM t1;
-SHOW CREATE TABLE t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `c` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000' ON UPDATE current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t4;
-c
-0000-00-00 00:00:00.000000
-CREATE TABLE t5 SELECT d FROM t1;
-SHOW CREATE TABLE t5;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `d` timestamp(6) NOT NULL DEFAULT '1986-09-27 03:00:00.098765'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t5;
-d
-1986-09-27 03:00:00.098765
-CREATE TABLE t6 SELECT e FROM t1;
-SHOW CREATE TABLE t6;
-Table Create Table
-t6 CREATE TABLE `t6` (
- `e` timestamp(6) NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t6;
-e
-NULL
-CREATE TABLE t7 SELECT f FROM t1;
-SHOW CREATE TABLE t7;
-Table Create Table
-t7 CREATE TABLE `t7` (
- `f` datetime(6) DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t7;
-f
-1970-04-11 20:13:57.657897
-CREATE TABLE t8 SELECT g FROM t1;
-SHOW CREATE TABLE t8;
-Table Create Table
-t8 CREATE TABLE `t8` (
- `g` datetime(6) DEFAULT current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t8;
-g
-1970-04-11 20:13:57.657897
-CREATE TABLE t9 SELECT h FROM t1;
-SHOW CREATE TABLE t9;
-Table Create Table
-t9 CREATE TABLE `t9` (
- `h` datetime(6) DEFAULT NULL ON UPDATE current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t9;
-h
-NULL
-CREATE TABLE t10 SELECT i FROM t1;
-SHOW CREATE TABLE t10;
-Table Create Table
-t10 CREATE TABLE `t10` (
- `i` datetime(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t10;
-i
-NULL
-CREATE TABLE t11 SELECT j FROM t1;
-SHOW CREATE TABLE t11;
-Table Create Table
-t11 CREATE TABLE `t11` (
- `j` datetime(6) DEFAULT '1986-09-27 03:00:00.098765'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t11;
-j
-1986-09-27 03:00:00.098765
-CREATE TABLE t12 (
-k TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-l TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-m TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-n TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-o TIMESTAMP(6) NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-p TIMESTAMP(6) NULL,
-q DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-r DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-s DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-t DATETIME(6) NULL,
-u DATETIME(6) DEFAULT '1986-09-27 03:00:00.098765'
-)
-SELECT * FROM t1;
-SHOW CREATE TABLE t12;
-Table Create Table
-t12 CREATE TABLE `t12` (
- `k` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `l` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `m` timestamp(6) NOT NULL DEFAULT current_timestamp(6),
- `n` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000' ON UPDATE current_timestamp(6),
- `o` timestamp(6) NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
- `p` timestamp(6) NULL DEFAULT NULL,
- `q` datetime(6) DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `r` datetime(6) DEFAULT current_timestamp(6),
- `s` datetime(6) DEFAULT NULL ON UPDATE current_timestamp(6),
- `t` datetime(6) DEFAULT NULL,
- `u` datetime(6) DEFAULT '1986-09-27 03:00:00.098765',
- `a` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `b` timestamp(6) NOT NULL DEFAULT current_timestamp(6),
- `c` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000' ON UPDATE current_timestamp(6),
- `d` timestamp(6) NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
- `e` timestamp(6) NULL DEFAULT NULL,
- `f` datetime(6) DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `g` datetime(6) DEFAULT current_timestamp(6),
- `h` datetime(6) DEFAULT NULL ON UPDATE current_timestamp(6),
- `i` datetime(6) DEFAULT NULL,
- `j` datetime(6) DEFAULT '1986-09-27 03:00:00.098765'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12;
-# 1970-04-11 20:13:57 UTC
-SET TIMESTAMP = 8712837.164953;
-CREATE TABLE t1 (
-a DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-c DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-d DATETIME(6) NULL,
-e DATETIME(6) DEFAULT '1986-09-27 03:00:00.098765'
-);
-INSERT INTO t1 VALUES ();
-# 1971-01-31 20:13:57 UTC
-SET TIMESTAMP = 34200837.915736;
-CREATE TABLE t2 SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` datetime(6) DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-a
-1970-04-11 20:13:57.164953
-CREATE TABLE t3 SELECT b FROM t1;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `b` datetime(6) DEFAULT current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t3;
-b
-1970-04-11 20:13:57.164953
-CREATE TABLE t4 SELECT c FROM t1;
-SHOW CREATE TABLE t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `c` datetime(6) DEFAULT NULL ON UPDATE current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t4;
-c
-NULL
-CREATE TABLE t5 SELECT d FROM t1;
-SHOW CREATE TABLE t5;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `d` datetime(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t5;
-d
-NULL
-CREATE TABLE t6 SELECT e FROM t1;
-SHOW CREATE TABLE t6;
-Table Create Table
-t6 CREATE TABLE `t6` (
- `e` datetime(6) DEFAULT '1986-09-27 03:00:00.098765'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t6;
-e
-1986-09-27 03:00:00.098765
-DROP TABLE t1, t2, t3, t4, t5, t6;
-#
-# Test of a CREATE TABLE SELECT that also declared columns. In this case
-# the function default should be de-activated during the execution of the
-# CREATE TABLE statement.
-#
-# 1970-01-01 03:16:40
-SET TIMESTAMP = 1000.987654;
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES ( 1 ), ( 2 );
-CREATE TABLE t2 ( b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)) SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `b` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SET TIMESTAMP = 2000.876543;
-INSERT INTO t2( a ) VALUES ( 3 );
-SELECT * FROM t2;
-b a
-1970-01-01 00:16:40.987654 1
-1970-01-01 00:16:40.987654 2
-1970-01-01 00:33:20.876543 3
-DROP TABLE t1, t2;
-#
-# Test of updating a view.
-#
-CREATE TABLE t1 ( a INT, b DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE TABLE t2 ( a INT, b DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6) );
-CREATE VIEW v1 AS SELECT * FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` latin1 latin1_swedish_ci
-CREATE VIEW v2 AS SELECT * FROM t2;
-SHOW CREATE VIEW v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t2`.`a` AS `a`,`t2`.`b` AS `b` from `t2` latin1 latin1_swedish_ci
-# 1971-01-31 21:13:57 UTC
-SET TIMESTAMP = 34200837.348564;
-INSERT INTO v1 ( a ) VALUES ( 1 );
-INSERT INTO v2 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b
-1 1971-01-31 20:13:57.348564
-SELECT * FROM v1;
-a b
-1 1971-01-31 20:13:57.348564
-SELECT * FROM t2;
-a b
-1 NULL
-SELECT * FROM v2;
-a b
-1 NULL
-# 1970-04-11 20:13:57 UTC
-SET TIMESTAMP = 8712837.567332;
-UPDATE v1 SET a = 2;
-UPDATE v2 SET a = 2;
-SELECT * FROM t1;
-a b
-2 1971-01-31 20:13:57.348564
-SELECT * FROM v1;
-a b
-2 1971-01-31 20:13:57.348564
-SELECT * FROM t2;
-a b
-2 1970-04-11 20:13:57.567332
-SELECT * FROM v2;
-a b
-2 1970-04-11 20:13:57.567332
-DROP VIEW v1, v2;
-DROP TABLE t1, t2;
-#
-# Test with stored procedures.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NULL,
-f DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-g DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6)
-);
-CREATE PROCEDURE p1() INSERT INTO test.t1( a ) VALUES ( 1 );
-CREATE PROCEDURE p2() UPDATE t1 SET a = 2 WHERE a = 1;
-# 1971-01-31 20:13:57 UTC
-SET TIMESTAMP = 34200837.876544;
-CALL p1();
-SELECT * FROM t1;
-a b c d e f g
-1 1971-01-31 20:13:57.876544 1971-01-31 20:13:57.876544 0000-00-00 00:00:00.000000 NULL 1971-01-31 20:13:57.876544 NULL
-# 1970-04-11 21:13:57 UTC
-SET TIMESTAMP = 8712837.143546;
-CALL p2();
-SELECT * FROM t1;
-a b c d e f g
-2 1970-04-11 20:13:57.143546 1971-01-31 20:13:57.876544 1970-04-11 20:13:57.143546 NULL 1971-01-31 20:13:57.876544 1970-04-11 20:13:57.143546
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP TABLE t1;
-#
-# Test with triggers.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NULL,
-f DATETIME(6),
-g DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-h DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-i DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)
-);
-CREATE TABLE t2 ( a INT );
-CREATE TRIGGER t2_trg BEFORE INSERT ON t2 FOR EACH ROW
-BEGIN
-INSERT INTO t1 ( a ) VALUES ( 1 );
-END|
-# 1971-01-31 21:13:57 UTC
-SET TIMESTAMP = 34200837.978675;
-INSERT INTO t2 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-1 1971-01-31 20:13:57.978675 1971-01-31 20:13:57.978675 0000-00-00 00:00:00.000000 NULL NULL 1971-01-31 20:13:57.978675 NULL 1971-01-31 20:13:57.978675
-DROP TRIGGER t2_trg;
-CREATE TRIGGER t2_trg BEFORE INSERT ON t2 FOR EACH ROW
-BEGIN
-UPDATE t1 SET a = 2;
-END|
-# 1970-04-11 21:13:57 UTC
-SET TIMESTAMP = 8712837.456789;
-INSERT INTO t2 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-2 1970-04-11 20:13:57.456789 1971-01-31 20:13:57.978675 1970-04-11 20:13:57.456789 NULL NULL 1971-01-31 20:13:57.978675 1970-04-11 20:13:57.456789 1970-04-11 20:13:57.456789
-DROP TABLE t1, t2;
-#
-# Test where the assignment target is not a column.
-#
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) );
-CREATE TABLE t2 ( a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) );
-CREATE TABLE t3 ( a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6) );
-CREATE TABLE t4 ( a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6) );
-CREATE VIEW v1 AS SELECT a COLLATE latin1_german1_ci AS b FROM t1;
-CREATE VIEW v2 ( b ) AS SELECT a COLLATE latin1_german1_ci FROM t2;
-CREATE VIEW v3 AS SELECT a COLLATE latin1_german1_ci AS b FROM t3;
-CREATE VIEW v4 ( b ) AS SELECT a COLLATE latin1_german1_ci FROM t4;
-INSERT INTO v1 ( b ) VALUES ( '2007-10-24 00:03:34.010203' );
-SELECT a FROM t1;
-a
-2007-10-24 00:03:34.010203
-INSERT INTO v2 ( b ) VALUES ( '2007-10-24 00:03:34.010203' );
-SELECT a FROM t2;
-a
-2007-10-24 00:03:34.010203
-INSERT INTO t3 VALUES ();
-UPDATE v3 SET b = '2007-10-24 00:03:34.010203';
-SELECT a FROM t3;
-a
-2007-10-24 00:03:34.010203
-INSERT INTO t4 VALUES ();
-UPDATE v4 SET b = '2007-10-24 00:03:34.010203';
-SELECT a FROM t4;
-a
-2007-10-24 00:03:34.010203
-DROP VIEW v1, v2, v3, v4;
-DROP TABLE t1, t2, t3, t4;
-#
-# Test of LOAD DATA/XML INFILE
-# This tests behavior of function defaults for TIMESTAMP and DATETIME
-# columns. during LOAD ... INFILE.
-# As can be seen here, a TIMESTAMP column with only ON UPDATE
-# CURRENT_TIMESTAMP will still have CURRENT_TIMESTAMP inserted on LOAD
-# ... INFILE if the value is missing. For DATETIME columns a NULL value
-# is inserted instead.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-f DATETIME(6),
-g DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-h DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-i DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)
-);
-CREATE TABLE t2 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-e DATETIME(6) NOT NULL,
-f DATETIME(6) NOT NULL DEFAULT '1977-01-02 12:13:14',
-g DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) NOT NULL,
-h DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6) NOT NULL,
-i DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) NOT NULL
-);
-SELECT 1 INTO OUTFILE 't3.dat' FROM dual;
-SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
-INTO OUTFILE 't4.dat'
-FROM dual;
-SELECT 1, 2 INTO OUTFILE 't5.dat' FROM dual;
-# Mon Aug 1 15:11:19 2011 UTC
-SET TIMESTAMP = 1312211479.918273;
-LOAD DATA INFILE 't3.dat' IGNORE INTO TABLE t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-a 1
-b 2011-08-01 15:11:19.918273
-c 2011-08-01 15:11:19.918273
-d 2011-08-01 15:11:19.918273
-e 2011-08-01 15:11:19.918273
-f NULL
-g NULL
-h NULL
-i NULL
-LOAD DATA INFILE 't4.dat' IGNORE INTO TABLE t2;
-Warnings:
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'e' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'f' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'g' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'h' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'i' at row 1
-SELECT a FROM t2;
-a
-2011-08-01 15:11:19.918273
-SELECT b FROM t2;
-b
-2011-08-01 15:11:19.918273
-SELECT c FROM t2;
-c
-2011-08-01 15:11:19.918273
-SELECT d FROM t2;
-d
-2011-08-01 15:11:19.918273
-# As shown here, supplying a NULL value to a non-nullable
-# column with no default value results in the zero date.
-SELECT e FROM t2;
-e
-0000-00-00 00:00:00.000000
-# As shown here, supplying a NULL value to a non-nullable column with a
-# default value results in the zero date.
-SELECT f FROM t2;
-f
-0000-00-00 00:00:00.000000
-# As shown here, supplying a NULL value to a non-nullable column with a
-# default function results in the zero date.
-SELECT g FROM t2;
-g
-0000-00-00 00:00:00.000000
-# As shown here, supplying a NULL value to a non-nullable DATETIME ON
-# UPDATE CURRENT_TIMESTAMP column with no default value results in the
-# zero date.
-SELECT h FROM t2;
-h
-0000-00-00 00:00:00.000000
-SELECT i FROM t2;
-i
-0000-00-00 00:00:00.000000
-DELETE FROM t1;
-DELETE FROM t2;
-# Read t3 file into t1
-# The syntax will cause a different code path to be taken
-# (read_fixed_length()) than under the LOAD ... INTO TABLE t1 command
-# above. The code in this path is copy-pasted code from the path taken
-# under the syntax used in the previous LOAD command.
-LOAD DATA INFILE 't3.dat' IGNORE INTO TABLE t1
-FIELDS TERMINATED BY '' ENCLOSED BY '';
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT b FROM t1;
-b
-2011-08-01 15:11:19.918273
-SELECT c FROM t1;
-c
-2011-08-01 15:11:19.918273
-SELECT d FROM t1;
-d
-2011-08-01 15:11:19.918273
-SELECT e FROM t1;
-e
-2011-08-01 15:11:19.918273
-# Yes, a missing field cannot be NULL using this syntax, so it will
-# zero date instead. Says a comment in read_fixed_length() : "No fields
-# specified in fields_vars list can be NULL in this format."
-# It appears to be by design. This is inconsistent with LOAD DATA INFILE
-# syntax in previous test.
-SELECT f FROM t1;
-f
-0000-00-00 00:00:00.000000
-SELECT g FROM t1;
-g
-0000-00-00 00:00:00.000000
-# See comment above "SELECT f FROM f1".
-SELECT h FROM t1;
-h
-0000-00-00 00:00:00.000000
-SELECT i FROM t1;
-i
-0000-00-00 00:00:00.000000
-DELETE FROM t1;
-LOAD DATA INFILE 't5.dat' INTO TABLE t1 ( a, @dummy );
-SELECT * FROM t1;
-a b c d e f g h i
-1 2011-08-01 15:11:19.918273 2011-08-01 15:11:19.918273 0000-00-00 00:00:00.000000 2011-08-01 15:11:19.918273 NULL 2011-08-01 15:11:19.918273 NULL 2011-08-01 15:11:19.918273
-SELECT @dummy;
-@dummy
-2
-DELETE FROM t1;
-LOAD DATA INFILE 't3.dat' INTO TABLE t1 ( a ) SET c = '2005-06-06 08:09:10';
-SELECT * FROM t1;
-a b c d e f g h i
-1 2011-08-01 15:11:19.918273 2005-06-06 08:09:10.000000 0000-00-00 00:00:00.000000 2011-08-01 15:11:19.918273 NULL 2011-08-01 15:11:19.918273 NULL 2011-08-01 15:11:19.918273
-DELETE FROM t1;
-LOAD DATA INFILE 't3.dat' INTO TABLE t1 ( a ) SET g = '2005-06-06 08:09:10';
-SELECT * FROM t1;
-a b c d e f g h i
-1 2011-08-01 15:11:19.918273 2011-08-01 15:11:19.918273 0000-00-00 00:00:00.000000 2011-08-01 15:11:19.918273 NULL 2005-06-06 08:09:10.000000 NULL 2011-08-01 15:11:19.918273
-DELETE FROM t1;
-# Load a static XML file
-LOAD XML INFILE '../../std_data/onerow.xml' INTO TABLE t1
-ROWS IDENTIFIED BY '<row>';
-Missing tags are treated as NULL
-SELECT * FROM t1;
-a 1
-b 2011-08-01 15:11:19.918273
-c 2011-08-01 15:11:19.918273
-d 2011-08-01 15:11:19.918273
-e 2011-08-01 15:11:19.918273
-f NULL
-g NULL
-h NULL
-i NULL
-DROP TABLE t1, t2;
-#
-# Similar LOAD DATA tests in another form
-#
-# All of this test portion has been run on a pre-WL5874 trunk
-# (except that like_b and like_c didn't exist) and all result
-# differences are a bug.
-# Regarding like_b its definition is the same as b's except
-# that the constant default is replaced with a function
-# default. Our expectation is that like_b would behave
-# like b: if b is set to NULL, or set to 0000-00-00, or set to
-# its default, then the same should apply to like_b. Same for
-# like_c vs c.
-# Mon Aug 1 15:11:19 2011 UTC
-SET TIMESTAMP = 1312211479.089786;
-SELECT 1 INTO OUTFILE "file1.dat" FROM dual;
-SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
-INTO OUTFILE "file2.dat" FROM dual;
-# Too short row
-CREATE TABLE t1 (
-dummy INT,
-a DATETIME(6) NULL DEFAULT NULL,
-b DATETIME(6) NULL DEFAULT "2011-11-18",
-like_b DATETIME(6) NULL DEFAULT CURRENT_TIMESTAMP(6),
-c DATETIME(6) NOT NULL DEFAULT "2011-11-18",
-like_c DATETIME(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NULL DEFAULT "2011-05-03" ON UPDATE CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NOT NULL DEFAULT "2011-05-03",
-f TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-g TIMESTAMP(6) NULL DEFAULT NULL,
-h INT NULL,
-i INT NOT NULL DEFAULT 42
-);
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime(6) DEFAULT NULL,
- `b` datetime(6) DEFAULT '2011-11-18 00:00:00.000000',
- `like_b` datetime(6) DEFAULT current_timestamp(6),
- `c` datetime(6) NOT NULL DEFAULT '2011-11-18 00:00:00.000000',
- `like_c` datetime(6) NOT NULL DEFAULT current_timestamp(6),
- `d` timestamp(6) NULL DEFAULT '2011-05-03 00:00:00.000000' ON UPDATE current_timestamp(6),
- `e` timestamp(6) NOT NULL DEFAULT '2011-05-03 00:00:00.000000',
- `f` timestamp(6) NOT NULL DEFAULT current_timestamp(6),
- `g` timestamp(6) NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file1.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-# It is strange that "like_b" gets NULL when "b" gets 0. But
-# this is consistent with how "a" gets NULL when "b" gets 0,
-# with how "g" gets NULL when "d" gets 0, and with how "h" gets
-# NULL when "i" gets 0. Looks like "DEFAULT
-# <non-NULL-constant>" is changed to 0, whereas DEFAULT NULL
-# and DEFAULT NOW are changed to NULL.
-SELECT * FROM t1;
-dummy 1
-a NULL
-b 0000-00-00 00:00:00.000000
-like_b NULL
-c 0000-00-00 00:00:00.000000
-like_c 0000-00-00 00:00:00.000000
-d 0000-00-00 00:00:00.000000
-e 2011-08-01 15:11:19.089786
-f 2011-08-01 15:11:19.089786
-g NULL
-h NULL
-i 0
-delete from t1;
-alter table t1
-modify f TIMESTAMP NULL default CURRENT_TIMESTAMP;
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime(6) DEFAULT NULL,
- `b` datetime(6) DEFAULT '2011-11-18 00:00:00.000000',
- `like_b` datetime(6) DEFAULT current_timestamp(6),
- `c` datetime(6) NOT NULL DEFAULT '2011-11-18 00:00:00.000000',
- `like_c` datetime(6) NOT NULL DEFAULT current_timestamp(6),
- `d` timestamp(6) NULL DEFAULT '2011-05-03 00:00:00.000000' ON UPDATE current_timestamp(6),
- `e` timestamp(6) NOT NULL DEFAULT '2011-05-03 00:00:00.000000',
- `f` timestamp NULL DEFAULT current_timestamp(),
- `g` timestamp(6) NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file1.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-dummy 1
-a NULL
-b 0000-00-00 00:00:00.000000
-like_b NULL
-c 0000-00-00 00:00:00.000000
-like_c 0000-00-00 00:00:00.000000
-d 0000-00-00 00:00:00.000000
-e 2011-08-01 15:11:19.089786
-f NULL
-g NULL
-h NULL
-i 0
-delete from t1;
-drop table t1;
-# Conclusion derived from trunk's results:
-# DATETIME DEFAULT <non-NULL-constant> (b,c) gets 0000-00-00,
-# DATETIME DEFAULT NULL (a) gets NULL,
-# TIMESTAMP NULL DEFAULT <non-NULL-constant> (d) gets 0000-00-00,
-# TIMESTAMP NULL DEFAULT NULL (g) gets NULL,
-# TIMESTAMP NULL DEFAULT NOW (f after ALTER) gets NULL,
-# TIMESTAMP NOT NULL (f before ALTER, e) gets NOW.
-### Loading NULL ###
-CREATE TABLE t1 (
-dummy INT,
-a DATETIME(6) NULL DEFAULT NULL,
-b DATETIME(6) NULL DEFAULT "2011-11-18",
-like_b DATETIME(6) NULL DEFAULT CURRENT_TIMESTAMP(6),
-c DATETIME(6) NOT NULL DEFAULT "2011-11-18",
-like_c DATETIME(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NULL DEFAULT "2011-05-03" ON UPDATE CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NOT NULL DEFAULT "2011-05-03",
-f TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-g TIMESTAMP(6) NULL DEFAULT NULL,
-h INT NULL,
-i INT NOT NULL DEFAULT 42
-);
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime(6) DEFAULT NULL,
- `b` datetime(6) DEFAULT '2011-11-18 00:00:00.000000',
- `like_b` datetime(6) DEFAULT current_timestamp(6),
- `c` datetime(6) NOT NULL DEFAULT '2011-11-18 00:00:00.000000',
- `like_c` datetime(6) NOT NULL DEFAULT current_timestamp(6),
- `d` timestamp(6) NULL DEFAULT '2011-05-03 00:00:00.000000' ON UPDATE current_timestamp(6),
- `e` timestamp(6) NOT NULL DEFAULT '2011-05-03 00:00:00.000000',
- `f` timestamp(6) NOT NULL DEFAULT current_timestamp(6),
- `g` timestamp(6) NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file2.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'like_c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'i' at row 1
-SELECT * FROM t1;
-dummy NULL
-a NULL
-b NULL
-like_b NULL
-c 0000-00-00 00:00:00.000000
-like_c 0000-00-00 00:00:00.000000
-d NULL
-e 2011-08-01 15:11:19.089786
-f 2011-08-01 15:11:19.089786
-g NULL
-h NULL
-i 0
-delete from t1;
-alter table t1
-modify f TIMESTAMP NULL default CURRENT_TIMESTAMP;
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime(6) DEFAULT NULL,
- `b` datetime(6) DEFAULT '2011-11-18 00:00:00.000000',
- `like_b` datetime(6) DEFAULT current_timestamp(6),
- `c` datetime(6) NOT NULL DEFAULT '2011-11-18 00:00:00.000000',
- `like_c` datetime(6) NOT NULL DEFAULT current_timestamp(6),
- `d` timestamp(6) NULL DEFAULT '2011-05-03 00:00:00.000000' ON UPDATE current_timestamp(6),
- `e` timestamp(6) NOT NULL DEFAULT '2011-05-03 00:00:00.000000',
- `f` timestamp NULL DEFAULT current_timestamp(),
- `g` timestamp(6) NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file2.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'like_c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'i' at row 1
-SELECT * FROM t1;
-dummy NULL
-a NULL
-b NULL
-like_b NULL
-c 0000-00-00 00:00:00.000000
-like_c 0000-00-00 00:00:00.000000
-d NULL
-e 2011-08-01 15:11:19.089786
-f NULL
-g NULL
-h NULL
-i 0
-delete from t1;
-# Conclusion derived from trunk's results:
-# DATETIME NULL (a,b) gets NULL,
-# DATETIME NOT NULL (c) gets 0000-00-00,
-# TIMESTAMP NULL (d,f,g) gets NULL,
-# TIMESTAMP NOT NULL (e) gets NOW.
-drop table t1;
-#
-# Test of updatable views with check options. The option can be violated
-# using ON UPDATE updates which is very strange as this offers a loophole
-# in this integrity check.
-#
-SET TIME_ZONE = "+03:00";
-# 1970-01-01 03:16:40
-SET TIMESTAMP = 1000.123456;
-CREATE TABLE t1 ( a INT, b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b
-1 1970-01-01 03:16:40.123456
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE b <= '1970-01-01 03:16:40.123456'
-WITH CHECK OPTION;
-SELECT * FROM v1;
-a b
-1 1970-01-01 03:16:40.123456
-# 1970-01-01 03:33:20
-SET TIMESTAMP = 2000.000234;
-UPDATE v1 SET a = 2;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-SELECT * FROM t1;
-a b
-1 1970-01-01 03:16:40.123456
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT '1973-08-14 09:11:22.089786' ON UPDATE CURRENT_TIMESTAMP(6),
-c INT KEY
-);
-# 1973-08-14 09:11:22 UTC
-SET TIMESTAMP = 114167482.534231;
-INSERT INTO t1 ( c ) VALUES ( 1 );
-CREATE VIEW v1 AS
-SELECT *
-FROM t1
-WHERE a >= '1973-08-14 09:11:22'
-WITH LOCAL CHECK OPTION;
-SELECT * FROM v1;
-a c
-1973-08-14 09:11:22.089786 1
-SET TIMESTAMP = 1.126789;
-INSERT INTO v1 ( c ) VALUES ( 1 ) ON DUPLICATE KEY UPDATE c = 2;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-SELECT * FROM v1;
-a c
-1973-08-14 09:11:22.089786 1
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug 13095459 - MULTI-TABLE UPDATE MODIFIES A ROW TWICE
-#
-CREATE TABLE t1 (
-a INT,
-b INT,
-ts TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-PRIMARY KEY ( a, ts )
-);
-INSERT INTO t1( a, b, ts ) VALUES ( 1, 0, '2000-09-28 17:44:34' );
-CREATE TABLE t2 ( a INT );
-INSERT INTO t2 VALUES ( 1 );
-UPDATE t1 STRAIGHT_JOIN t2
-SET t1.b = t1.b + 1
-WHERE t1.a = 1 AND t1.ts >= '2000-09-28 00:00:00';
-SELECT b FROM t1;
-b
-1
-DROP TABLE t1, t2;
-#
-# Bug#11745578: 17392: ALTER TABLE ADD COLUMN TIMESTAMP DEFAULT
-# CURRENT_TIMESTAMP INSERTS ZERO
-#
-SET timestamp = 1000;
-CREATE TABLE t1 ( b INT );
-INSERT INTO t1 VALUES (1);
-ALTER TABLE t1 ADD COLUMN a6 DATETIME(6) DEFAULT NOW(6) ON UPDATE NOW(6) FIRST;
-ALTER TABLE t1 ADD COLUMN a5 DATETIME(6) DEFAULT NOW(6) FIRST;
-ALTER TABLE t1 ADD COLUMN a4 DATETIME(6) ON UPDATE NOW(6) FIRST;
-ALTER TABLE t1 ADD COLUMN a3 TIMESTAMP(6) NOT NULL DEFAULT NOW(6) ON UPDATE NOW(6) FIRST;
-ALTER TABLE t1 ADD COLUMN a2 TIMESTAMP(6) NOT NULL DEFAULT NOW(6) FIRST;
-ALTER TABLE t1 ADD COLUMN a1 TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW(6) FIRST;
-ALTER TABLE t1 ADD COLUMN c1 TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW(6) AFTER b;
-ALTER TABLE t1 ADD COLUMN c2 TIMESTAMP(6) NOT NULL DEFAULT NOW(6) AFTER c1;
-ALTER TABLE t1 ADD COLUMN c3 TIMESTAMP(6) NOT NULL DEFAULT NOW(6) ON UPDATE NOW(6) AFTER c2;
-ALTER TABLE t1 ADD COLUMN c4 DATETIME(6) ON UPDATE NOW(6) AFTER c3;
-ALTER TABLE t1 ADD COLUMN c5 DATETIME(6) DEFAULT NOW(6) AFTER c4;
-ALTER TABLE t1 ADD COLUMN c6 DATETIME(6) DEFAULT NOW(6) ON UPDATE NOW(6) AFTER c5;
-SELECT * FROM t1;
-a1 0000-00-00 00:00:00.000000
-a2 1970-01-01 03:16:40.000000
-a3 1970-01-01 03:16:40.000000
-a4 NULL
-a5 1970-01-01 03:16:40.000000
-a6 1970-01-01 03:16:40.000000
-b 1
-c1 0000-00-00 00:00:00.000000
-c2 1970-01-01 03:16:40.000000
-c3 1970-01-01 03:16:40.000000
-c4 NULL
-c5 1970-01-01 03:16:40.000000
-c6 1970-01-01 03:16:40.000000
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT NOW(6) ON UPDATE CURRENT_TIMESTAMP(6), b DATETIME(6) DEFAULT NOW(6) );
-INSERT INTO t1 VALUES ();
-SET timestamp = 1000000000;
-ALTER TABLE t1 MODIFY COLUMN a TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP(3);
-ALTER TABLE t1 MODIFY COLUMN b DATETIME(3) DEFAULT CURRENT_TIMESTAMP(3);
-SELECT * FROM t1;
-a b
-1970-01-01 03:16:40.000 1970-01-01 03:16:40.000
-DROP TABLE t1;
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT '1999-12-01 11:22:33' ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) DEFAULT '1999-12-01 11:22:33'
-);
-INSERT INTO t1 VALUES ();
-ALTER TABLE t1 MODIFY COLUMN a TIMESTAMP(6) DEFAULT NOW(6);
-ALTER TABLE t1 MODIFY COLUMN b DATETIME(6) DEFAULT NOW(6);
-INSERT INTO t1 VALUES ();
-SELECT * FROM t1;
-a b
-1999-12-01 11:22:33.000000 1999-12-01 11:22:33.000000
-2001-09-09 04:46:40.000000 2001-09-09 04:46:40.000000
-DROP TABLE t1;
diff --git a/mysql-test/r/function_defaults_innodb.result b/mysql-test/r/function_defaults_innodb.result
deleted file mode 100644
index dd769f8577a..00000000000
--- a/mysql-test/r/function_defaults_innodb.result
+++ /dev/null
@@ -1,3096 +0,0 @@
-#
-# Test of function defaults for any server, including embedded.
-#
-set default_storage_engine=innodb;
-#
-# Function defaults run 1. No microsecond precision.
-#
-SET TIME_ZONE = "+00:00";
-#
-# Test of errors for column data types that dont support function
-# defaults.
-#
-CREATE OR REPLACE TABLE t1( a BIT DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a TINYINT DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a SMALLINT DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a MEDIUMINT DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a INT DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a BIGINT DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a FLOAT DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a DECIMAL DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a DATE DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a TIME DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a YEAR DEFAULT CURRENT_TIMESTAMP );
-CREATE OR REPLACE TABLE t1( a BIT ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a TINYINT ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a SMALLINT ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a MEDIUMINT ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a INT ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a BIGINT ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a FLOAT ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a DECIMAL ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a DATE ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a TIME ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a YEAR ON UPDATE CURRENT_TIMESTAMP );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-drop table if exists t1;
-#
-# Test that the default clause behaves like NOW() regarding time zones.
-#
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-d TIMESTAMP NULL,
-e DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-f DATETIME DEFAULT CURRENT_TIMESTAMP,
-g DATETIME ON UPDATE CURRENT_TIMESTAMP,
-h DATETIME
-);
-# 2011-09-27 14:11:08 UTC
-SET TIMESTAMP = 1317132668.654321;
-SET @old_time_zone = @@TIME_ZONE;
-SET TIME_ZONE = "+05:00";
-INSERT INTO t1( d, h ) VALUES ( NOW(), NOW() );
-SELECT * FROM t1;
-a b c d e f g h
-2011-09-27 19:11:08 2011-09-27 19:11:08 0000-00-00 00:00:00 2011-09-27 19:11:08 2011-09-27 19:11:08 2011-09-27 19:11:08 NULL 2011-09-27 19:11:08
-# 1989-05-13 01:02:03
-SET TIMESTAMP = 611017323.543212;
-UPDATE t1 SET d = NOW(), h = NOW();
-SELECT * FROM t1;
-a b c d e f g h
-1989-05-13 04:02:03 2011-09-27 19:11:08 1989-05-13 04:02:03 1989-05-13 04:02:03 1989-05-13 04:02:03 2011-09-27 19:11:08 1989-05-13 04:02:03 1989-05-13 04:02:03
-SET TIME_ZONE = @old_time_zone;
-DROP TABLE t1;
-#
-# Test of several TIMESTAMP columns with different function defaults.
-#
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-e TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-f INT
-);
-# 2011-04-19 07:22:02 UTC
-SET TIMESTAMP = 1303197722.534231;
-INSERT INTO t1 ( f ) VALUES (1);
-SELECT * FROM t1;
-a b c d e f
-2011-04-19 07:22:02 2011-04-19 07:22:02 2011-04-19 07:22:02 0000-00-00 00:00:00 0000-00-00 00:00:00 1
-# 2011-04-19 07:23:18 UTC
-SET TIMESTAMP = 1303197798.132435;
-UPDATE t1 SET f = 2;
-SELECT * FROM t1;
-a b c d e f
-2011-04-19 07:23:18 2011-04-19 07:23:18 2011-04-19 07:22:02 2011-04-19 07:23:18 2011-04-19 07:23:18 2
-DROP TABLE t1;
-#
-# Test of inserted values out of order.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-e TIMESTAMP NULL,
-f DATETIME,
-g DATETIME DEFAULT CURRENT_TIMESTAMP,
-h DATETIME ON UPDATE CURRENT_TIMESTAMP,
-i DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-j INT
-);
-# 2011-04-19 07:22:02 UTC
-SET TIMESTAMP = 1303197722.534231;
-INSERT INTO t1 ( j, a ) VALUES ( 1, 1 );
-SELECT * FROM t1;
-a b c d e f g h i j
-1 2011-04-19 07:22:02 2011-04-19 07:22:02 0000-00-00 00:00:00 NULL NULL 2011-04-19 07:22:02 NULL 2011-04-19 07:22:02 1
-DROP TABLE t1;
-#
-# Test of ON DUPLICATE KEY UPDATE
-#
-CREATE TABLE t1 (
-a INT PRIMARY KEY,
-b INT,
-c TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-e TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-f TIMESTAMP NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-g TIMESTAMP NULL,
-h DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-i DATETIME DEFAULT CURRENT_TIMESTAMP,
-j DATETIME ON UPDATE CURRENT_TIMESTAMP,
-k DATETIME NULL,
-l DATETIME DEFAULT '1986-09-27 03:00:00.098765'
-);
-# 1977-12-21 23:00:00 UTC
-SET TIMESTAMP = 251593200.192837;
-INSERT INTO t1(a) VALUES (1) ON DUPLICATE KEY UPDATE b = 2;
-SELECT * FROM t1;
-a b c d e f g h i j k l
-1 NULL 1977-12-21 23:00:00 1977-12-21 23:00:00 0000-00-00 00:00:00 1986-09-27 03:00:00 NULL 1977-12-21 23:00:00 1977-12-21 23:00:00 NULL NULL 1986-09-27 03:00:00
-# 1975-05-21 23:00:00 UTC
-SET TIMESTAMP = 169945200.918273;
-INSERT INTO t1(a) VALUES (1) ON DUPLICATE KEY UPDATE b = 2;
-SELECT * FROM t1;
-a b c d e f g h i j k l
-1 2 1975-05-21 23:00:00 1977-12-21 23:00:00 1975-05-21 23:00:00 1986-09-27 03:00:00 NULL 1975-05-21 23:00:00 1977-12-21 23:00:00 1975-05-21 23:00:00 NULL 1986-09-27 03:00:00
-# 1973-08-14 09:11:22 UTC
-SET TIMESTAMP = 114167482.534231;
-INSERT INTO t1(a) VALUES (2) ON DUPLICATE KEY UPDATE b = 2;
-SELECT * FROM t1;
-a b c d e f g h i j k l
-1 2 1975-05-21 23:00:00 1977-12-21 23:00:00 1975-05-21 23:00:00 1986-09-27 03:00:00 NULL 1975-05-21 23:00:00 1977-12-21 23:00:00 1975-05-21 23:00:00 NULL 1986-09-27 03:00:00
-2 NULL 1973-08-14 09:11:22 1973-08-14 09:11:22 0000-00-00 00:00:00 1986-09-27 03:00:00 NULL 1973-08-14 09:11:22 1973-08-14 09:11:22 NULL NULL 1986-09-27 03:00:00
-DROP TABLE t1;
-CREATE TABLE t1 ( a INT PRIMARY KEY, b INT, c TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP );
-# 2011-04-19 07:23:18 UTC
-SET TIMESTAMP = 1303197798.945156;
-INSERT INTO t1 VALUES
-(1, 0, '2001-01-01 01:01:01.111111'),
-(2, 0, '2002-02-02 02:02:02.222222'),
-(3, 0, '2003-03-03 03:03:03.333333');
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 0 2002-02-02 02:02:02
-3 0 2003-03-03 03:03:03
-UPDATE t1 SET b = 2, c = c WHERE a = 2;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 0 2003-03-03 03:03:03
-INSERT INTO t1 (a) VALUES (4);
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 0 2003-03-03 03:03:03
-4 NULL 2011-04-19 07:23:18
-UPDATE t1 SET c = '2004-04-04 04:04:04.444444' WHERE a = 4;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 0 2003-03-03 03:03:03
-4 NULL 2004-04-04 04:04:04
-INSERT INTO t1 ( a ) VALUES ( 3 ), ( 5 ) ON DUPLICATE KEY UPDATE b = 3, c = c;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 3 2003-03-03 03:03:03
-4 NULL 2004-04-04 04:04:04
-5 NULL 2011-04-19 07:23:18
-INSERT INTO t1 (a, c) VALUES
-(4, '2004-04-04 00:00:00.444444'),
-(6, '2006-06-06 06:06:06.666666')
-ON DUPLICATE KEY UPDATE b = 4;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 3 2003-03-03 03:03:03
-4 4 2011-04-19 07:23:18
-5 NULL 2011-04-19 07:23:18
-6 NULL 2006-06-06 06:06:06
-DROP TABLE t1;
-#
-# Test of REPLACE INTO executed as UPDATE.
-#
-CREATE TABLE t1 (
-a INT PRIMARY KEY,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-c DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-e DATETIME DEFAULT CURRENT_TIMESTAMP,
-f TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-g DATETIME ON UPDATE CURRENT_TIMESTAMP,
-h TIMESTAMP NULL,
-i DATETIME
-);
-# 1970-09-21 09:11:12 UTC
-SET TIMESTAMP = 22756272.163584;
-REPLACE INTO t1 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-1 1970-09-21 09:11:12 1970-09-21 09:11:12 1970-09-21 09:11:12 1970-09-21 09:11:12 0000-00-00 00:00:00 NULL NULL NULL
-# 1970-11-10 14:16:17 UTC
-SET TIMESTAMP = 27094577.852954;
-REPLACE INTO t1 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-1 1970-11-10 14:16:17 1970-11-10 14:16:17 1970-11-10 14:16:17 1970-11-10 14:16:17 0000-00-00 00:00:00 NULL NULL NULL
-DROP TABLE t1;
-#
-# Test of insertion of NULL, DEFAULT and an empty row for DEFAULT
-# CURRENT_TIMESTAMP.
-#
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME DEFAULT CURRENT_TIMESTAMP,
-c INT
-);
-# 2011-04-20 09:53:41 UTC
-SET TIMESTAMP = 1303293221.163578;
-INSERT INTO t1 VALUES (NULL, NULL, 1), (DEFAULT, DEFAULT, 2);
-INSERT INTO t1 ( a, b, c ) VALUES (NULL, NULL, 3), (DEFAULT, DEFAULT, 4);
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41 NULL 1
-2011-04-20 09:53:41 2011-04-20 09:53:41 2
-2011-04-20 09:53:41 NULL 3
-2011-04-20 09:53:41 2011-04-20 09:53:41 4
-SET TIME_ZONE = "+03:00";
-SELECT * FROM t1;
-a b c
-2011-04-20 12:53:41 NULL 1
-2011-04-20 12:53:41 2011-04-20 09:53:41 2
-2011-04-20 12:53:41 NULL 3
-2011-04-20 12:53:41 2011-04-20 09:53:41 4
-SET TIME_ZONE = "+00:00";
-DROP TABLE t1;
-# 2011-04-20 07:05:39 UTC
-SET TIMESTAMP = 1303283139.195624;
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT '2010-10-11 12:34:56' ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME DEFAULT '2010-10-11 12:34:56'
-);
-INSERT INTO t1 VALUES (NULL, NULL), (DEFAULT, DEFAULT);
-INSERT INTO t1 ( a, b ) VALUES (NULL, NULL), (DEFAULT, DEFAULT);
-SELECT * FROM t1;
-a b
-2011-04-20 07:05:39 NULL
-2010-10-11 12:34:56 2010-10-11 12:34:56
-2011-04-20 07:05:39 NULL
-2010-10-11 12:34:56 2010-10-11 12:34:56
-DROP TABLE t1;
-# 2011-04-20 09:53:41 UTC
-SET TIMESTAMP = 1303293221.136952;
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-e TIMESTAMP NULL,
-f DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-g DATETIME DEFAULT CURRENT_TIMESTAMP,
-h DATETIME ON UPDATE CURRENT_TIMESTAMP,
-i DATETIME NULL,
-j DATETIME DEFAULT '1986-09-27 03:00:00.098765'
-);
-INSERT INTO t1 VALUES ();
-INSERT INTO t1 SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL;
-SELECT * FROM t1;
-a b c d e f g h i j
-2011-04-20 09:53:41 2011-04-20 09:53:41 0000-00-00 00:00:00 1986-09-27 03:00:00 NULL 2011-04-20 09:53:41 2011-04-20 09:53:41 NULL NULL 1986-09-27 03:00:00
-2011-04-20 09:53:41 2011-04-20 09:53:41 2011-04-20 09:53:41 2011-04-20 09:53:41 NULL NULL NULL NULL NULL NULL
-DROP TABLE t1;
-#
-# Test of multiple-table UPDATE for DEFAULT CURRENT_TIMESTAMP
-#
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME DEFAULT CURRENT_TIMESTAMP,
-c INT
-);
-INSERT INTO t1 ( c ) VALUES (1);
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41 2011-04-20 09:53:41 1
-# 2011-04-20 17:06:13 UTC
-SET TIMESTAMP = 1303311973.163587;
-UPDATE t1 t11, t1 t12 SET t11.c = 1;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41 2011-04-20 09:53:41 1
-UPDATE t1 t11, t1 t12 SET t11.c = 2;
-SELECT * FROM t1;
-a b c
-2011-04-20 15:06:13 2011-04-20 09:53:41 2
-DROP TABLE t1;
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-c DATETIME DEFAULT CURRENT_TIMESTAMP,
-d DATETIME ON UPDATE CURRENT_TIMESTAMP,
-e INT
-);
-CREATE TABLE t2 (
-f INT,
-g DATETIME ON UPDATE CURRENT_TIMESTAMP,
-h DATETIME DEFAULT CURRENT_TIMESTAMP,
-i TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-j TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
-);
-# 1995-03-11 00:02:03 UTC
-SET TIMESTAMP = 794880123.195676;
-INSERT INTO t1 ( e ) VALUES ( 1 ), ( 2 );
-INSERT INTO t2 ( f ) VALUES ( 1 ), ( 2 );
-SELECT * FROM t1;
-a b c d e
-1995-03-11 00:02:03 0000-00-00 00:00:00 1995-03-11 00:02:03 NULL 1
-1995-03-11 00:02:03 0000-00-00 00:00:00 1995-03-11 00:02:03 NULL 2
-SELECT * FROM t2;
-f g h i j
-1 NULL 1995-03-11 00:02:03 0000-00-00 00:00:00 1995-03-11 00:02:03
-2 NULL 1995-03-11 00:02:03 0000-00-00 00:00:00 1995-03-11 00:02:03
-# 1980-12-13 02:02:01 UTC
-SET TIMESTAMP = 345520921.196755;
-UPDATE t1, t2 SET t1.e = 3, t2.f = 4;
-SELECT * FROM t1;
-a b c d e
-1995-03-11 00:02:03 1980-12-13 02:02:01 1995-03-11 00:02:03 1980-12-13 02:02:01 3
-1995-03-11 00:02:03 1980-12-13 02:02:01 1995-03-11 00:02:03 1980-12-13 02:02:01 3
-SELECT * FROM t2;
-f g h i j
-4 1980-12-13 02:02:01 1995-03-11 00:02:03 1980-12-13 02:02:01 1995-03-11 00:02:03
-4 1980-12-13 02:02:01 1995-03-11 00:02:03 1980-12-13 02:02:01 1995-03-11 00:02:03
-DROP TABLE t1, t2;
-#
-# Test of multiple table update with temporary table and on the fly.
-#
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME ON UPDATE CURRENT_TIMESTAMP,
-c INT,
-d INT
-);
-CREATE TABLE t2 (
-a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME ON UPDATE CURRENT_TIMESTAMP,
-c INT KEY,
-d INT
-);
-INSERT INTO t1 ( c ) VALUES (1), (2);
-INSERT INTO t2 ( c ) VALUES (1), (2);
-# Test of multiple table update done on the fly
-# 2011-04-20 15:06:13 UTC
-SET TIMESTAMP = 1303311973.194685;
-UPDATE t1 JOIN t2 USING ( c ) SET t2.d = 1;
-SELECT * FROM t1;
-a b c d
-0000-00-00 00:00:00 NULL 1 NULL
-0000-00-00 00:00:00 NULL 2 NULL
-SELECT * FROM t2;
-a b c d
-2011-04-20 15:06:13 2011-04-20 15:06:13 1 1
-2011-04-20 15:06:13 2011-04-20 15:06:13 2 1
-# Test of multiple table update done with temporary table.
-# 1979-01-15 03:02:01
-SET TIMESTAMP = 285213721.134679;
-UPDATE t1 JOIN t2 USING ( c ) SET t1.d = 1;
-SELECT * FROM t1;
-a b c d
-1979-01-15 02:02:01 1979-01-15 02:02:01 1 1
-1979-01-15 02:02:01 1979-01-15 02:02:01 2 1
-SELECT * FROM t2;
-a b c d
-2011-04-20 15:06:13 2011-04-20 15:06:13 1 1
-2011-04-20 15:06:13 2011-04-20 15:06:13 2 1
-DROP TABLE t1, t2;
-#
-# Test of ON UPDATE CURRENT_TIMESTAMP.
-#
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME ON UPDATE CURRENT_TIMESTAMP,
-c INT
-);
-# 2011-04-20 09:53:41 UTC
-SET TIMESTAMP = 1303293221.794613;
-INSERT INTO t1 ( c ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c
-0000-00-00 00:00:00 NULL 1
-UPDATE t1 SET c = 1;
-SELECT * FROM t1;
-a b c
-0000-00-00 00:00:00 NULL 1
-UPDATE t1 SET c = 2;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41 2011-04-20 09:53:41 2
-#
-# Test that ON UPDATE CURRENT_TIMESTAMP works after non-changing UPDATE.
-#
-# 2011-04-20 09:54:13 UTC
-SET TIMESTAMP = 1303293253.794613;
-UPDATE t1 SET c = 2, b = '2011-04-20 09:53:41.794613';
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41 2011-04-20 09:53:41 2
-UPDATE t1 SET c = 3;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:54:13 2011-04-20 09:54:13 3
-#
-# Test of multiple-table UPDATE for ON UPDATE CURRENT_TIMESTAMP
-#
-# 2011-04-20 15:06:13 UTC
-SET TIMESTAMP = 1303311973.534231;
-UPDATE t1 t11, t1 t12 SET t11.c = 3;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:54:13 2011-04-20 09:54:13 3
-UPDATE t1 t11, t1 t12 SET t11.c = 2;
-SELECT * FROM t1;
-a b c
-2011-04-20 15:06:13 2011-04-20 15:06:13 2
-DROP TABLE t1;
-#
-# Test of a multiple-table update where only one table is updated and
-# the updated table has a primary key.
-#
-CREATE TABLE t1 ( a INT, b INT, PRIMARY KEY (a) );
-INSERT INTO t1 VALUES (1, 1),(2, 2),(3, 3),(4, 4);
-CREATE TABLE t2 ( a INT, b INT );
-INSERT INTO t2 VALUES (1, 1),(2, 2),(3, 3),(4, 4),(5, 5);
-UPDATE t1, t2 SET t1.b = 100 WHERE t1.a = t2.a;
-SELECT * FROM t1;
-a b
-1 100
-2 100
-3 100
-4 100
-SELECT * FROM t2;
-a b
-1 1
-2 2
-3 3
-4 4
-5 5
-DROP TABLE t1, t2;
-#
-# Test of ALTER TABLE, reordering columns.
-#
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, b INT );
-ALTER TABLE t1 MODIFY a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a INT, b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, c TIMESTAMP NULL );
-ALTER TABLE t1 MODIFY b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `a` int(11) DEFAULT NULL,
- `c` timestamp NULL DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a INT, b TIMESTAMP NULL );
-ALTER TABLE t1 MODIFY b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `a` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, b TIMESTAMP NULL );
-ALTER TABLE t1 MODIFY a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp NULL DEFAULT NULL,
- `a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, b TIMESTAMP NULL );
-ALTER TABLE t1 MODIFY a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp NULL DEFAULT NULL,
- `a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW(), b INT, c TIMESTAMP NULL );
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(),
- `b` int(11) DEFAULT NULL,
- `c` timestamp NULL DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-ALTER TABLE t1 MODIFY a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `c` timestamp NULL DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW(), b INT, c TIMESTAMP NULL );
-ALTER TABLE t1 MODIFY c TIMESTAMP NULL FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` timestamp NULL DEFAULT NULL,
- `a` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(),
- `b` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE CURRENT_TIMESTAMP, b INT, c TIMESTAMP NULL );
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `b` int(11) DEFAULT NULL,
- `c` timestamp NULL DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-ALTER TABLE t1 MODIFY a TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE CURRENT_TIMESTAMP AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `c` timestamp NULL DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE CURRENT_TIMESTAMP, b INT, c TIMESTAMP NULL );
-ALTER TABLE t1 MODIFY c TIMESTAMP NULL FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` timestamp NULL DEFAULT NULL,
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `b` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# Test of ALTER TABLE, adding columns.
-#
-CREATE TABLE t1 ( a INT );
-ALTER TABLE t1 ADD COLUMN b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# Test of INSERT SELECT.
-#
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-c DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-d DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
-);
-CREATE TABLE t2 (
-placeholder1 INT,
-placeholder2 INT,
-placeholder3 INT,
-placeholder4 INT,
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
-c DATETIME,
-d DATETIME
-);
-# 1977-08-16 15:30:01 UTC
-SET TIMESTAMP = 240589801.654312;
-INSERT INTO t2 (a, b, c, d) VALUES (
-'1977-08-16 15:30:01.123456',
-'1977-08-16 15:30:01.234567',
-'1977-08-16 15:30:01.345678',
-'1977-08-16 15:30:01.456789'
-);
-# 1986-09-27 01:00:00 UTC
-SET TIMESTAMP = 528166800.132435;
-INSERT INTO t1 ( a, c ) SELECT a, c FROM t2;
-SELECT * FROM t1;
-a b c d
-1977-08-16 15:30:01 1986-09-27 01:00:00 1977-08-16 15:30:01 1986-09-27 01:00:00
-DROP TABLE t1, t2;
-#
-# Test of CREATE TABLE SELECT.
-#
-# We test that the columns of the source table are not used to determine
-# function defaults for the receiving table.
-#
-# 1970-04-11 20:13:57 UTC
-SET TIMESTAMP = 8712837.657898;
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-e TIMESTAMP NULL,
-f DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-g DATETIME DEFAULT CURRENT_TIMESTAMP,
-h DATETIME ON UPDATE CURRENT_TIMESTAMP,
-i DATETIME NULL,
-j DATETIME DEFAULT '1986-09-27 03:00:00.098765'
-);
-INSERT INTO t1 VALUES ();
-# 1971-01-31 21:13:57 UTC
-SET TIMESTAMP = 34200837.164937;
-CREATE TABLE t2 SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-a
-1970-04-11 20:13:57
-CREATE TABLE t3 SELECT b FROM t1;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `b` timestamp NOT NULL DEFAULT current_timestamp()
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t3;
-b
-1970-04-11 20:13:57
-CREATE TABLE t4 SELECT c FROM t1;
-SHOW CREATE TABLE t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `c` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp()
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t4;
-c
-0000-00-00 00:00:00
-CREATE TABLE t5 SELECT d FROM t1;
-SHOW CREATE TABLE t5;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `d` timestamp NOT NULL DEFAULT '1986-09-27 03:00:00'
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t5;
-d
-1986-09-27 03:00:00
-CREATE TABLE t6 SELECT e FROM t1;
-SHOW CREATE TABLE t6;
-Table Create Table
-t6 CREATE TABLE `t6` (
- `e` timestamp NULL DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t6;
-e
-NULL
-CREATE TABLE t7 SELECT f FROM t1;
-SHOW CREATE TABLE t7;
-Table Create Table
-t7 CREATE TABLE `t7` (
- `f` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp()
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t7;
-f
-1970-04-11 20:13:57
-CREATE TABLE t8 SELECT g FROM t1;
-SHOW CREATE TABLE t8;
-Table Create Table
-t8 CREATE TABLE `t8` (
- `g` datetime DEFAULT current_timestamp()
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t8;
-g
-1970-04-11 20:13:57
-CREATE TABLE t9 SELECT h FROM t1;
-SHOW CREATE TABLE t9;
-Table Create Table
-t9 CREATE TABLE `t9` (
- `h` datetime DEFAULT NULL ON UPDATE current_timestamp()
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t9;
-h
-NULL
-CREATE TABLE t10 SELECT i FROM t1;
-SHOW CREATE TABLE t10;
-Table Create Table
-t10 CREATE TABLE `t10` (
- `i` datetime DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t10;
-i
-NULL
-CREATE TABLE t11 SELECT j FROM t1;
-SHOW CREATE TABLE t11;
-Table Create Table
-t11 CREATE TABLE `t11` (
- `j` datetime DEFAULT '1986-09-27 03:00:00'
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t11;
-j
-1986-09-27 03:00:00
-CREATE TABLE t12 (
-k TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-l TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-m TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-n TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-o TIMESTAMP NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-p TIMESTAMP NULL,
-q DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-r DATETIME DEFAULT CURRENT_TIMESTAMP,
-s DATETIME ON UPDATE CURRENT_TIMESTAMP,
-t DATETIME NULL,
-u DATETIME DEFAULT '1986-09-27 03:00:00.098765'
-)
-SELECT * FROM t1;
-SHOW CREATE TABLE t12;
-Table Create Table
-t12 CREATE TABLE `t12` (
- `k` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `l` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `m` timestamp NOT NULL DEFAULT current_timestamp(),
- `n` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(),
- `o` timestamp NOT NULL DEFAULT '1986-09-27 03:00:00',
- `p` timestamp NULL DEFAULT NULL,
- `q` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `r` datetime DEFAULT current_timestamp(),
- `s` datetime DEFAULT NULL ON UPDATE current_timestamp(),
- `t` datetime DEFAULT NULL,
- `u` datetime DEFAULT '1986-09-27 03:00:00',
- `a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `b` timestamp NOT NULL DEFAULT current_timestamp(),
- `c` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(),
- `d` timestamp NOT NULL DEFAULT '1986-09-27 03:00:00',
- `e` timestamp NULL DEFAULT NULL,
- `f` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `g` datetime DEFAULT current_timestamp(),
- `h` datetime DEFAULT NULL ON UPDATE current_timestamp(),
- `i` datetime DEFAULT NULL,
- `j` datetime DEFAULT '1986-09-27 03:00:00'
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12;
-# 1970-04-11 20:13:57 UTC
-SET TIMESTAMP = 8712837.164953;
-CREATE TABLE t1 (
-a DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME DEFAULT CURRENT_TIMESTAMP,
-c DATETIME ON UPDATE CURRENT_TIMESTAMP,
-d DATETIME NULL,
-e DATETIME DEFAULT '1986-09-27 03:00:00.098765'
-);
-INSERT INTO t1 VALUES ();
-# 1971-01-31 20:13:57 UTC
-SET TIMESTAMP = 34200837.915736;
-CREATE TABLE t2 SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp()
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-a
-1970-04-11 20:13:57
-CREATE TABLE t3 SELECT b FROM t1;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `b` datetime DEFAULT current_timestamp()
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t3;
-b
-1970-04-11 20:13:57
-CREATE TABLE t4 SELECT c FROM t1;
-SHOW CREATE TABLE t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `c` datetime DEFAULT NULL ON UPDATE current_timestamp()
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t4;
-c
-NULL
-CREATE TABLE t5 SELECT d FROM t1;
-SHOW CREATE TABLE t5;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `d` datetime DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t5;
-d
-NULL
-CREATE TABLE t6 SELECT e FROM t1;
-SHOW CREATE TABLE t6;
-Table Create Table
-t6 CREATE TABLE `t6` (
- `e` datetime DEFAULT '1986-09-27 03:00:00'
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t6;
-e
-1986-09-27 03:00:00
-DROP TABLE t1, t2, t3, t4, t5, t6;
-#
-# Test of a CREATE TABLE SELECT that also declared columns. In this case
-# the function default should be de-activated during the execution of the
-# CREATE TABLE statement.
-#
-# 1970-01-01 03:16:40
-SET TIMESTAMP = 1000.987654;
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES ( 1 ), ( 2 );
-CREATE TABLE t2 ( b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP) SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `b` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `a` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SET TIMESTAMP = 2000.876543;
-INSERT INTO t2( a ) VALUES ( 3 );
-SELECT * FROM t2;
-b a
-1970-01-01 00:16:40 1
-1970-01-01 00:16:40 2
-1970-01-01 00:33:20 3
-DROP TABLE t1, t2;
-#
-# Test of updating a view.
-#
-CREATE TABLE t1 ( a INT, b DATETIME DEFAULT CURRENT_TIMESTAMP );
-CREATE TABLE t2 ( a INT, b DATETIME ON UPDATE CURRENT_TIMESTAMP );
-CREATE VIEW v1 AS SELECT * FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` latin1 latin1_swedish_ci
-CREATE VIEW v2 AS SELECT * FROM t2;
-SHOW CREATE VIEW v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t2`.`a` AS `a`,`t2`.`b` AS `b` from `t2` latin1 latin1_swedish_ci
-# 1971-01-31 21:13:57 UTC
-SET TIMESTAMP = 34200837.348564;
-INSERT INTO v1 ( a ) VALUES ( 1 );
-INSERT INTO v2 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b
-1 1971-01-31 20:13:57
-SELECT * FROM v1;
-a b
-1 1971-01-31 20:13:57
-SELECT * FROM t2;
-a b
-1 NULL
-SELECT * FROM v2;
-a b
-1 NULL
-# 1970-04-11 20:13:57 UTC
-SET TIMESTAMP = 8712837.567332;
-UPDATE v1 SET a = 2;
-UPDATE v2 SET a = 2;
-SELECT * FROM t1;
-a b
-2 1971-01-31 20:13:57
-SELECT * FROM v1;
-a b
-2 1971-01-31 20:13:57
-SELECT * FROM t2;
-a b
-2 1970-04-11 20:13:57
-SELECT * FROM v2;
-a b
-2 1970-04-11 20:13:57
-DROP VIEW v1, v2;
-DROP TABLE t1, t2;
-#
-# Test with stored procedures.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-e TIMESTAMP NULL,
-f DATETIME DEFAULT CURRENT_TIMESTAMP,
-g DATETIME ON UPDATE CURRENT_TIMESTAMP
-);
-CREATE PROCEDURE p1() INSERT INTO test.t1( a ) VALUES ( 1 );
-CREATE PROCEDURE p2() UPDATE t1 SET a = 2 WHERE a = 1;
-# 1971-01-31 20:13:57 UTC
-SET TIMESTAMP = 34200837.876544;
-CALL p1();
-SELECT * FROM t1;
-a b c d e f g
-1 1971-01-31 20:13:57 1971-01-31 20:13:57 0000-00-00 00:00:00 NULL 1971-01-31 20:13:57 NULL
-# 1970-04-11 21:13:57 UTC
-SET TIMESTAMP = 8712837.143546;
-CALL p2();
-SELECT * FROM t1;
-a b c d e f g
-2 1970-04-11 20:13:57 1971-01-31 20:13:57 1970-04-11 20:13:57 NULL 1971-01-31 20:13:57 1970-04-11 20:13:57
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP TABLE t1;
-#
-# Test with triggers.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-e TIMESTAMP NULL,
-f DATETIME,
-g DATETIME DEFAULT CURRENT_TIMESTAMP,
-h DATETIME ON UPDATE CURRENT_TIMESTAMP,
-i DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
-);
-CREATE TABLE t2 ( a INT );
-CREATE TRIGGER t2_trg BEFORE INSERT ON t2 FOR EACH ROW
-BEGIN
-INSERT INTO t1 ( a ) VALUES ( 1 );
-END|
-# 1971-01-31 21:13:57 UTC
-SET TIMESTAMP = 34200837.978675;
-INSERT INTO t2 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-1 1971-01-31 20:13:57 1971-01-31 20:13:57 0000-00-00 00:00:00 NULL NULL 1971-01-31 20:13:57 NULL 1971-01-31 20:13:57
-DROP TRIGGER t2_trg;
-CREATE TRIGGER t2_trg BEFORE INSERT ON t2 FOR EACH ROW
-BEGIN
-UPDATE t1 SET a = 2;
-END|
-# 1970-04-11 21:13:57 UTC
-SET TIMESTAMP = 8712837.456789;
-INSERT INTO t2 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-2 1970-04-11 20:13:57 1971-01-31 20:13:57 1970-04-11 20:13:57 NULL NULL 1971-01-31 20:13:57 1970-04-11 20:13:57 1970-04-11 20:13:57
-DROP TABLE t1, t2;
-#
-# Test where the assignment target is not a column.
-#
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP );
-CREATE TABLE t2 ( a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP );
-CREATE TABLE t3 ( a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP );
-CREATE TABLE t4 ( a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP );
-CREATE VIEW v1 AS SELECT a COLLATE latin1_german1_ci AS b FROM t1;
-CREATE VIEW v2 ( b ) AS SELECT a COLLATE latin1_german1_ci FROM t2;
-CREATE VIEW v3 AS SELECT a COLLATE latin1_german1_ci AS b FROM t3;
-CREATE VIEW v4 ( b ) AS SELECT a COLLATE latin1_german1_ci FROM t4;
-INSERT INTO v1 ( b ) VALUES ( '2007-10-24 00:03:34.010203' );
-SELECT a FROM t1;
-a
-2007-10-24 00:03:34
-INSERT INTO v2 ( b ) VALUES ( '2007-10-24 00:03:34.010203' );
-SELECT a FROM t2;
-a
-2007-10-24 00:03:34
-INSERT INTO t3 VALUES ();
-UPDATE v3 SET b = '2007-10-24 00:03:34.010203';
-SELECT a FROM t3;
-a
-2007-10-24 00:03:34
-INSERT INTO t4 VALUES ();
-UPDATE v4 SET b = '2007-10-24 00:03:34.010203';
-SELECT a FROM t4;
-a
-2007-10-24 00:03:34
-DROP VIEW v1, v2, v3, v4;
-DROP TABLE t1, t2, t3, t4;
-#
-# Test of LOAD DATA/XML INFILE
-# This tests behavior of function defaults for TIMESTAMP and DATETIME
-# columns. during LOAD ... INFILE.
-# As can be seen here, a TIMESTAMP column with only ON UPDATE
-# CURRENT_TIMESTAMP will still have CURRENT_TIMESTAMP inserted on LOAD
-# ... INFILE if the value is missing. For DATETIME columns a NULL value
-# is inserted instead.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-e TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-f DATETIME,
-g DATETIME DEFAULT CURRENT_TIMESTAMP,
-h DATETIME ON UPDATE CURRENT_TIMESTAMP,
-i DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
-);
-CREATE TABLE t2 (
-a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-c TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
-d TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-e DATETIME NOT NULL,
-f DATETIME NOT NULL DEFAULT '1977-01-02 12:13:14',
-g DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL,
-h DATETIME ON UPDATE CURRENT_TIMESTAMP NOT NULL,
-i DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL
-);
-SELECT 1 INTO OUTFILE 't3.dat' FROM dual;
-SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
-INTO OUTFILE 't4.dat'
-FROM dual;
-SELECT 1, 2 INTO OUTFILE 't5.dat' FROM dual;
-# Mon Aug 1 15:11:19 2011 UTC
-SET TIMESTAMP = 1312211479.918273;
-LOAD DATA INFILE 't3.dat' IGNORE INTO TABLE t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-a 1
-b 2011-08-01 15:11:19
-c 2011-08-01 15:11:19
-d 2011-08-01 15:11:19
-e 2011-08-01 15:11:19
-f NULL
-g NULL
-h NULL
-i NULL
-LOAD DATA INFILE 't4.dat' IGNORE INTO TABLE t2;
-Warnings:
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'e' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'f' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'g' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'h' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'i' at row 1
-SELECT a FROM t2;
-a
-2011-08-01 15:11:19
-SELECT b FROM t2;
-b
-2011-08-01 15:11:19
-SELECT c FROM t2;
-c
-2011-08-01 15:11:19
-SELECT d FROM t2;
-d
-2011-08-01 15:11:19
-# As shown here, supplying a NULL value to a non-nullable
-# column with no default value results in the zero date.
-SELECT e FROM t2;
-e
-0000-00-00 00:00:00
-# As shown here, supplying a NULL value to a non-nullable column with a
-# default value results in the zero date.
-SELECT f FROM t2;
-f
-0000-00-00 00:00:00
-# As shown here, supplying a NULL value to a non-nullable column with a
-# default function results in the zero date.
-SELECT g FROM t2;
-g
-0000-00-00 00:00:00
-# As shown here, supplying a NULL value to a non-nullable DATETIME ON
-# UPDATE CURRENT_TIMESTAMP column with no default value results in the
-# zero date.
-SELECT h FROM t2;
-h
-0000-00-00 00:00:00
-SELECT i FROM t2;
-i
-0000-00-00 00:00:00
-DELETE FROM t1;
-DELETE FROM t2;
-# Read t3 file into t1
-# The syntax will cause a different code path to be taken
-# (read_fixed_length()) than under the LOAD ... INTO TABLE t1 command
-# above. The code in this path is copy-pasted code from the path taken
-# under the syntax used in the previous LOAD command.
-LOAD DATA INFILE 't3.dat' IGNORE INTO TABLE t1
-FIELDS TERMINATED BY '' ENCLOSED BY '';
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT b FROM t1;
-b
-2011-08-01 15:11:19
-SELECT c FROM t1;
-c
-2011-08-01 15:11:19
-SELECT d FROM t1;
-d
-2011-08-01 15:11:19
-SELECT e FROM t1;
-e
-2011-08-01 15:11:19
-# Yes, a missing field cannot be NULL using this syntax, so it will
-# zero date instead. Says a comment in read_fixed_length() : "No fields
-# specified in fields_vars list can be NULL in this format."
-# It appears to be by design. This is inconsistent with LOAD DATA INFILE
-# syntax in previous test.
-SELECT f FROM t1;
-f
-0000-00-00 00:00:00
-SELECT g FROM t1;
-g
-0000-00-00 00:00:00
-# See comment above "SELECT f FROM f1".
-SELECT h FROM t1;
-h
-0000-00-00 00:00:00
-SELECT i FROM t1;
-i
-0000-00-00 00:00:00
-DELETE FROM t1;
-LOAD DATA INFILE 't5.dat' INTO TABLE t1 ( a, @dummy );
-SELECT * FROM t1;
-a b c d e f g h i
-1 2011-08-01 15:11:19 2011-08-01 15:11:19 0000-00-00 00:00:00 2011-08-01 15:11:19 NULL 2011-08-01 15:11:19 NULL 2011-08-01 15:11:19
-SELECT @dummy;
-@dummy
-2
-DELETE FROM t1;
-LOAD DATA INFILE 't3.dat' INTO TABLE t1 ( a ) SET c = '2005-06-06 08:09:10';
-SELECT * FROM t1;
-a b c d e f g h i
-1 2011-08-01 15:11:19 2005-06-06 08:09:10 0000-00-00 00:00:00 2011-08-01 15:11:19 NULL 2011-08-01 15:11:19 NULL 2011-08-01 15:11:19
-DELETE FROM t1;
-LOAD DATA INFILE 't3.dat' INTO TABLE t1 ( a ) SET g = '2005-06-06 08:09:10';
-SELECT * FROM t1;
-a b c d e f g h i
-1 2011-08-01 15:11:19 2011-08-01 15:11:19 0000-00-00 00:00:00 2011-08-01 15:11:19 NULL 2005-06-06 08:09:10 NULL 2011-08-01 15:11:19
-DELETE FROM t1;
-# Load a static XML file
-LOAD XML INFILE '../../std_data/onerow.xml' INTO TABLE t1
-ROWS IDENTIFIED BY '<row>';
-Missing tags are treated as NULL
-SELECT * FROM t1;
-a 1
-b 2011-08-01 15:11:19
-c 2011-08-01 15:11:19
-d 2011-08-01 15:11:19
-e 2011-08-01 15:11:19
-f NULL
-g NULL
-h NULL
-i NULL
-DROP TABLE t1, t2;
-#
-# Similar LOAD DATA tests in another form
-#
-# All of this test portion has been run on a pre-WL5874 trunk
-# (except that like_b and like_c didn't exist) and all result
-# differences are a bug.
-# Regarding like_b its definition is the same as b's except
-# that the constant default is replaced with a function
-# default. Our expectation is that like_b would behave
-# like b: if b is set to NULL, or set to 0000-00-00, or set to
-# its default, then the same should apply to like_b. Same for
-# like_c vs c.
-# Mon Aug 1 15:11:19 2011 UTC
-SET TIMESTAMP = 1312211479.089786;
-SELECT 1 INTO OUTFILE "file1.dat" FROM dual;
-SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
-INTO OUTFILE "file2.dat" FROM dual;
-# Too short row
-CREATE TABLE t1 (
-dummy INT,
-a DATETIME NULL DEFAULT NULL,
-b DATETIME NULL DEFAULT "2011-11-18",
-like_b DATETIME NULL DEFAULT CURRENT_TIMESTAMP,
-c DATETIME NOT NULL DEFAULT "2011-11-18",
-like_c DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
-d TIMESTAMP NULL DEFAULT "2011-05-03" ON UPDATE CURRENT_TIMESTAMP,
-e TIMESTAMP NOT NULL DEFAULT "2011-05-03",
-f TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-g TIMESTAMP NULL DEFAULT NULL,
-h INT NULL,
-i INT NOT NULL DEFAULT 42
-);
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime DEFAULT NULL,
- `b` datetime DEFAULT '2011-11-18 00:00:00',
- `like_b` datetime DEFAULT current_timestamp(),
- `c` datetime NOT NULL DEFAULT '2011-11-18 00:00:00',
- `like_c` datetime NOT NULL DEFAULT current_timestamp(),
- `d` timestamp NULL DEFAULT '2011-05-03 00:00:00' ON UPDATE current_timestamp(),
- `e` timestamp NOT NULL DEFAULT '2011-05-03 00:00:00',
- `f` timestamp NOT NULL DEFAULT current_timestamp(),
- `g` timestamp NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file1.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-# It is strange that "like_b" gets NULL when "b" gets 0. But
-# this is consistent with how "a" gets NULL when "b" gets 0,
-# with how "g" gets NULL when "d" gets 0, and with how "h" gets
-# NULL when "i" gets 0. Looks like "DEFAULT
-# <non-NULL-constant>" is changed to 0, whereas DEFAULT NULL
-# and DEFAULT NOW are changed to NULL.
-SELECT * FROM t1;
-dummy 1
-a NULL
-b 0000-00-00 00:00:00
-like_b NULL
-c 0000-00-00 00:00:00
-like_c 0000-00-00 00:00:00
-d 0000-00-00 00:00:00
-e 2011-08-01 15:11:19
-f 2011-08-01 15:11:19
-g NULL
-h NULL
-i 0
-delete from t1;
-alter table t1
-modify f TIMESTAMP NULL default CURRENT_TIMESTAMP;
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime DEFAULT NULL,
- `b` datetime DEFAULT '2011-11-18 00:00:00',
- `like_b` datetime DEFAULT current_timestamp(),
- `c` datetime NOT NULL DEFAULT '2011-11-18 00:00:00',
- `like_c` datetime NOT NULL DEFAULT current_timestamp(),
- `d` timestamp NULL DEFAULT '2011-05-03 00:00:00' ON UPDATE current_timestamp(),
- `e` timestamp NOT NULL DEFAULT '2011-05-03 00:00:00',
- `f` timestamp NULL DEFAULT current_timestamp(),
- `g` timestamp NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file1.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-dummy 1
-a NULL
-b 0000-00-00 00:00:00
-like_b NULL
-c 0000-00-00 00:00:00
-like_c 0000-00-00 00:00:00
-d 0000-00-00 00:00:00
-e 2011-08-01 15:11:19
-f NULL
-g NULL
-h NULL
-i 0
-delete from t1;
-drop table t1;
-# Conclusion derived from trunk's results:
-# DATETIME DEFAULT <non-NULL-constant> (b,c) gets 0000-00-00,
-# DATETIME DEFAULT NULL (a) gets NULL,
-# TIMESTAMP NULL DEFAULT <non-NULL-constant> (d) gets 0000-00-00,
-# TIMESTAMP NULL DEFAULT NULL (g) gets NULL,
-# TIMESTAMP NULL DEFAULT NOW (f after ALTER) gets NULL,
-# TIMESTAMP NOT NULL (f before ALTER, e) gets NOW.
-### Loading NULL ###
-CREATE TABLE t1 (
-dummy INT,
-a DATETIME NULL DEFAULT NULL,
-b DATETIME NULL DEFAULT "2011-11-18",
-like_b DATETIME NULL DEFAULT CURRENT_TIMESTAMP,
-c DATETIME NOT NULL DEFAULT "2011-11-18",
-like_c DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
-d TIMESTAMP NULL DEFAULT "2011-05-03" ON UPDATE CURRENT_TIMESTAMP,
-e TIMESTAMP NOT NULL DEFAULT "2011-05-03",
-f TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-g TIMESTAMP NULL DEFAULT NULL,
-h INT NULL,
-i INT NOT NULL DEFAULT 42
-);
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime DEFAULT NULL,
- `b` datetime DEFAULT '2011-11-18 00:00:00',
- `like_b` datetime DEFAULT current_timestamp(),
- `c` datetime NOT NULL DEFAULT '2011-11-18 00:00:00',
- `like_c` datetime NOT NULL DEFAULT current_timestamp(),
- `d` timestamp NULL DEFAULT '2011-05-03 00:00:00' ON UPDATE current_timestamp(),
- `e` timestamp NOT NULL DEFAULT '2011-05-03 00:00:00',
- `f` timestamp NOT NULL DEFAULT current_timestamp(),
- `g` timestamp NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file2.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'like_c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'i' at row 1
-SELECT * FROM t1;
-dummy NULL
-a NULL
-b NULL
-like_b NULL
-c 0000-00-00 00:00:00
-like_c 0000-00-00 00:00:00
-d NULL
-e 2011-08-01 15:11:19
-f 2011-08-01 15:11:19
-g NULL
-h NULL
-i 0
-delete from t1;
-alter table t1
-modify f TIMESTAMP NULL default CURRENT_TIMESTAMP;
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime DEFAULT NULL,
- `b` datetime DEFAULT '2011-11-18 00:00:00',
- `like_b` datetime DEFAULT current_timestamp(),
- `c` datetime NOT NULL DEFAULT '2011-11-18 00:00:00',
- `like_c` datetime NOT NULL DEFAULT current_timestamp(),
- `d` timestamp NULL DEFAULT '2011-05-03 00:00:00' ON UPDATE current_timestamp(),
- `e` timestamp NOT NULL DEFAULT '2011-05-03 00:00:00',
- `f` timestamp NULL DEFAULT current_timestamp(),
- `g` timestamp NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file2.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'like_c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'i' at row 1
-SELECT * FROM t1;
-dummy NULL
-a NULL
-b NULL
-like_b NULL
-c 0000-00-00 00:00:00
-like_c 0000-00-00 00:00:00
-d NULL
-e 2011-08-01 15:11:19
-f NULL
-g NULL
-h NULL
-i 0
-delete from t1;
-# Conclusion derived from trunk's results:
-# DATETIME NULL (a,b) gets NULL,
-# DATETIME NOT NULL (c) gets 0000-00-00,
-# TIMESTAMP NULL (d,f,g) gets NULL,
-# TIMESTAMP NOT NULL (e) gets NOW.
-drop table t1;
-#
-# Test of updatable views with check options. The option can be violated
-# using ON UPDATE updates which is very strange as this offers a loophole
-# in this integrity check.
-#
-SET TIME_ZONE = "+03:00";
-# 1970-01-01 03:16:40
-SET TIMESTAMP = 1000.123456;
-CREATE TABLE t1 ( a INT, b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-INSERT INTO t1 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b
-1 1970-01-01 03:16:40
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE b <= '1970-01-01 03:16:40.123456'
-WITH CHECK OPTION;
-SELECT * FROM v1;
-a b
-1 1970-01-01 03:16:40
-# 1970-01-01 03:33:20
-SET TIMESTAMP = 2000.000234;
-UPDATE v1 SET a = 2;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-SELECT * FROM t1;
-a b
-1 1970-01-01 03:16:40
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT '1973-08-14 09:11:22.089786' ON UPDATE CURRENT_TIMESTAMP,
-c INT KEY
-);
-# 1973-08-14 09:11:22 UTC
-SET TIMESTAMP = 114167482.534231;
-INSERT INTO t1 ( c ) VALUES ( 1 );
-CREATE VIEW v1 AS
-SELECT *
-FROM t1
-WHERE a >= '1973-08-14 09:11:22'
-WITH LOCAL CHECK OPTION;
-SELECT * FROM v1;
-a c
-1973-08-14 09:11:22 1
-SET TIMESTAMP = 1.126789;
-INSERT INTO v1 ( c ) VALUES ( 1 ) ON DUPLICATE KEY UPDATE c = 2;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-SELECT * FROM v1;
-a c
-1973-08-14 09:11:22 1
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug 13095459 - MULTI-TABLE UPDATE MODIFIES A ROW TWICE
-#
-CREATE TABLE t1 (
-a INT,
-b INT,
-ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-PRIMARY KEY ( a, ts )
-);
-INSERT INTO t1( a, b, ts ) VALUES ( 1, 0, '2000-09-28 17:44:34' );
-CREATE TABLE t2 ( a INT );
-INSERT INTO t2 VALUES ( 1 );
-UPDATE t1 STRAIGHT_JOIN t2
-SET t1.b = t1.b + 1
-WHERE t1.a = 1 AND t1.ts >= '2000-09-28 00:00:00';
-SELECT b FROM t1;
-b
-1
-DROP TABLE t1, t2;
-#
-# Bug#11745578: 17392: ALTER TABLE ADD COLUMN TIMESTAMP DEFAULT
-# CURRENT_TIMESTAMP INSERTS ZERO
-#
-SET timestamp = 1000;
-CREATE TABLE t1 ( b INT );
-INSERT INTO t1 VALUES (1);
-ALTER TABLE t1 ADD COLUMN a6 DATETIME DEFAULT NOW() ON UPDATE NOW() FIRST;
-ALTER TABLE t1 ADD COLUMN a5 DATETIME DEFAULT NOW() FIRST;
-ALTER TABLE t1 ADD COLUMN a4 DATETIME ON UPDATE NOW() FIRST;
-ALTER TABLE t1 ADD COLUMN a3 TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE NOW() FIRST;
-ALTER TABLE t1 ADD COLUMN a2 TIMESTAMP NOT NULL DEFAULT NOW() FIRST;
-ALTER TABLE t1 ADD COLUMN a1 TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW() FIRST;
-ALTER TABLE t1 ADD COLUMN c1 TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW() AFTER b;
-ALTER TABLE t1 ADD COLUMN c2 TIMESTAMP NOT NULL DEFAULT NOW() AFTER c1;
-ALTER TABLE t1 ADD COLUMN c3 TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE NOW() AFTER c2;
-ALTER TABLE t1 ADD COLUMN c4 DATETIME ON UPDATE NOW() AFTER c3;
-ALTER TABLE t1 ADD COLUMN c5 DATETIME DEFAULT NOW() AFTER c4;
-ALTER TABLE t1 ADD COLUMN c6 DATETIME DEFAULT NOW() ON UPDATE NOW() AFTER c5;
-SELECT * FROM t1;
-a1 0000-00-00 00:00:00
-a2 1970-01-01 03:16:40
-a3 1970-01-01 03:16:40
-a4 NULL
-a5 1970-01-01 03:16:40
-a6 1970-01-01 03:16:40
-b 1
-c1 0000-00-00 00:00:00
-c2 1970-01-01 03:16:40
-c3 1970-01-01 03:16:40
-c4 NULL
-c5 1970-01-01 03:16:40
-c6 1970-01-01 03:16:40
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE CURRENT_TIMESTAMP, b DATETIME DEFAULT NOW() );
-INSERT INTO t1 VALUES ();
-SET timestamp = 1000000000;
-ALTER TABLE t1 MODIFY COLUMN a TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP(3);
-ALTER TABLE t1 MODIFY COLUMN b DATETIME(3) DEFAULT CURRENT_TIMESTAMP(3);
-SELECT * FROM t1;
-a b
-1970-01-01 03:16:40.000 1970-01-01 03:16:40.000
-DROP TABLE t1;
-CREATE TABLE t1 (
-a TIMESTAMP NOT NULL DEFAULT '1999-12-01 11:22:33' ON UPDATE CURRENT_TIMESTAMP,
-b DATETIME DEFAULT '1999-12-01 11:22:33'
-);
-INSERT INTO t1 VALUES ();
-ALTER TABLE t1 MODIFY COLUMN a TIMESTAMP DEFAULT NOW();
-ALTER TABLE t1 MODIFY COLUMN b DATETIME DEFAULT NOW();
-INSERT INTO t1 VALUES ();
-SELECT * FROM t1;
-a b
-1999-12-01 11:22:33 1999-12-01 11:22:33
-2001-09-09 04:46:40 2001-09-09 04:46:40
-DROP TABLE t1;
-#
-# Function defaults run 2. Six digits scale on seconds precision.
-#
-SET TIME_ZONE = "+00:00";
-#
-# Test of errors for column data types that dont support function
-# defaults.
-#
-CREATE OR REPLACE TABLE t1( a BIT DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a TINYINT DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a SMALLINT DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a MEDIUMINT DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a INT DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a BIGINT DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a FLOAT DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a DECIMAL DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a DATE DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a TIME DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a YEAR DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE OR REPLACE TABLE t1( a BIT ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a TINYINT ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a SMALLINT ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a MEDIUMINT ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a INT ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a BIGINT ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a FLOAT ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a DECIMAL ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a DATE ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a TIME ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-CREATE OR REPLACE TABLE t1( a YEAR ON UPDATE CURRENT_TIMESTAMP(6) );
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-drop table if exists t1;
-#
-# Test that the default clause behaves like NOW() regarding time zones.
-#
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NULL,
-e DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-f DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-g DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-h DATETIME(6)
-);
-# 2011-09-27 14:11:08 UTC
-SET TIMESTAMP = 1317132668.654321;
-SET @old_time_zone = @@TIME_ZONE;
-SET TIME_ZONE = "+05:00";
-INSERT INTO t1( d, h ) VALUES ( NOW(6), NOW(6) );
-SELECT * FROM t1;
-a b c d e f g h
-2011-09-27 19:11:08.654321 2011-09-27 19:11:08.654321 0000-00-00 00:00:00.000000 2011-09-27 19:11:08.654321 2011-09-27 19:11:08.654321 2011-09-27 19:11:08.654321 NULL 2011-09-27 19:11:08.654321
-# 1989-05-13 01:02:03
-SET TIMESTAMP = 611017323.543212;
-UPDATE t1 SET d = NOW(6), h = NOW(6);
-SELECT * FROM t1;
-a b c d e f g h
-1989-05-13 04:02:03.543212 2011-09-27 19:11:08.654321 1989-05-13 04:02:03.543212 1989-05-13 04:02:03.543212 1989-05-13 04:02:03.543212 2011-09-27 19:11:08.654321 1989-05-13 04:02:03.543212 1989-05-13 04:02:03.543212
-SET TIME_ZONE = @old_time_zone;
-DROP TABLE t1;
-#
-# Test of several TIMESTAMP columns with different function defaults.
-#
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-f INT
-);
-# 2011-04-19 07:22:02 UTC
-SET TIMESTAMP = 1303197722.534231;
-INSERT INTO t1 ( f ) VALUES (1);
-SELECT * FROM t1;
-a b c d e f
-2011-04-19 07:22:02.534231 2011-04-19 07:22:02.534231 2011-04-19 07:22:02.534231 0000-00-00 00:00:00.000000 0000-00-00 00:00:00.000000 1
-# 2011-04-19 07:23:18 UTC
-SET TIMESTAMP = 1303197798.132435;
-UPDATE t1 SET f = 2;
-SELECT * FROM t1;
-a b c d e f
-2011-04-19 07:23:18.132435 2011-04-19 07:23:18.132435 2011-04-19 07:22:02.534231 2011-04-19 07:23:18.132435 2011-04-19 07:23:18.132435 2
-DROP TABLE t1;
-#
-# Test of inserted values out of order.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NULL,
-f DATETIME(6),
-g DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-h DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-i DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-j INT
-);
-# 2011-04-19 07:22:02 UTC
-SET TIMESTAMP = 1303197722.534231;
-INSERT INTO t1 ( j, a ) VALUES ( 1, 1 );
-SELECT * FROM t1;
-a b c d e f g h i j
-1 2011-04-19 07:22:02.534231 2011-04-19 07:22:02.534231 0000-00-00 00:00:00.000000 NULL NULL 2011-04-19 07:22:02.534231 NULL 2011-04-19 07:22:02.534231 1
-DROP TABLE t1;
-#
-# Test of ON DUPLICATE KEY UPDATE
-#
-CREATE TABLE t1 (
-a INT PRIMARY KEY,
-b INT,
-c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-f TIMESTAMP(6) NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-g TIMESTAMP(6) NULL,
-h DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-i DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-j DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-k DATETIME(6) NULL,
-l DATETIME(6) DEFAULT '1986-09-27 03:00:00.098765'
-);
-# 1977-12-21 23:00:00 UTC
-SET TIMESTAMP = 251593200.192837;
-INSERT INTO t1(a) VALUES (1) ON DUPLICATE KEY UPDATE b = 2;
-SELECT * FROM t1;
-a b c d e f g h i j k l
-1 NULL 1977-12-21 23:00:00.192837 1977-12-21 23:00:00.192837 0000-00-00 00:00:00.000000 1986-09-27 03:00:00.098765 NULL 1977-12-21 23:00:00.192837 1977-12-21 23:00:00.192837 NULL NULL 1986-09-27 03:00:00.098765
-# 1975-05-21 23:00:00 UTC
-SET TIMESTAMP = 169945200.918273;
-INSERT INTO t1(a) VALUES (1) ON DUPLICATE KEY UPDATE b = 2;
-SELECT * FROM t1;
-a b c d e f g h i j k l
-1 2 1975-05-21 23:00:00.918273 1977-12-21 23:00:00.192837 1975-05-21 23:00:00.918273 1986-09-27 03:00:00.098765 NULL 1975-05-21 23:00:00.918273 1977-12-21 23:00:00.192837 1975-05-21 23:00:00.918273 NULL 1986-09-27 03:00:00.098765
-# 1973-08-14 09:11:22 UTC
-SET TIMESTAMP = 114167482.534231;
-INSERT INTO t1(a) VALUES (2) ON DUPLICATE KEY UPDATE b = 2;
-SELECT * FROM t1;
-a b c d e f g h i j k l
-1 2 1975-05-21 23:00:00.918273 1977-12-21 23:00:00.192837 1975-05-21 23:00:00.918273 1986-09-27 03:00:00.098765 NULL 1975-05-21 23:00:00.918273 1977-12-21 23:00:00.192837 1975-05-21 23:00:00.918273 NULL 1986-09-27 03:00:00.098765
-2 NULL 1973-08-14 09:11:22.534231 1973-08-14 09:11:22.534231 0000-00-00 00:00:00.000000 1986-09-27 03:00:00.098765 NULL 1973-08-14 09:11:22.534231 1973-08-14 09:11:22.534231 NULL NULL 1986-09-27 03:00:00.098765
-DROP TABLE t1;
-CREATE TABLE t1 ( a INT PRIMARY KEY, b INT, c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) );
-# 2011-04-19 07:23:18 UTC
-SET TIMESTAMP = 1303197798.945156;
-INSERT INTO t1 VALUES
-(1, 0, '2001-01-01 01:01:01.111111'),
-(2, 0, '2002-02-02 02:02:02.222222'),
-(3, 0, '2003-03-03 03:03:03.333333');
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01.111111
-2 0 2002-02-02 02:02:02.222222
-3 0 2003-03-03 03:03:03.333333
-UPDATE t1 SET b = 2, c = c WHERE a = 2;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01.111111
-2 2 2002-02-02 02:02:02.222222
-3 0 2003-03-03 03:03:03.333333
-INSERT INTO t1 (a) VALUES (4);
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01.111111
-2 2 2002-02-02 02:02:02.222222
-3 0 2003-03-03 03:03:03.333333
-4 NULL 2011-04-19 07:23:18.945156
-UPDATE t1 SET c = '2004-04-04 04:04:04.444444' WHERE a = 4;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01.111111
-2 2 2002-02-02 02:02:02.222222
-3 0 2003-03-03 03:03:03.333333
-4 NULL 2004-04-04 04:04:04.444444
-INSERT INTO t1 ( a ) VALUES ( 3 ), ( 5 ) ON DUPLICATE KEY UPDATE b = 3, c = c;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01.111111
-2 2 2002-02-02 02:02:02.222222
-3 3 2003-03-03 03:03:03.333333
-4 NULL 2004-04-04 04:04:04.444444
-5 NULL 2011-04-19 07:23:18.945156
-INSERT INTO t1 (a, c) VALUES
-(4, '2004-04-04 00:00:00.444444'),
-(6, '2006-06-06 06:06:06.666666')
-ON DUPLICATE KEY UPDATE b = 4;
-SELECT * FROM t1;
-a b c
-1 0 2001-01-01 01:01:01.111111
-2 2 2002-02-02 02:02:02.222222
-3 3 2003-03-03 03:03:03.333333
-4 4 2011-04-19 07:23:18.945156
-5 NULL 2011-04-19 07:23:18.945156
-6 NULL 2006-06-06 06:06:06.666666
-DROP TABLE t1;
-#
-# Test of REPLACE INTO executed as UPDATE.
-#
-CREATE TABLE t1 (
-a INT PRIMARY KEY,
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-e DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-f TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-g DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-h TIMESTAMP(6) NULL,
-i DATETIME(6)
-);
-# 1970-09-21 09:11:12 UTC
-SET TIMESTAMP = 22756272.163584;
-REPLACE INTO t1 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-1 1970-09-21 09:11:12.163584 1970-09-21 09:11:12.163584 1970-09-21 09:11:12.163584 1970-09-21 09:11:12.163584 0000-00-00 00:00:00.000000 NULL NULL NULL
-# 1970-11-10 14:16:17 UTC
-SET TIMESTAMP = 27094577.852954;
-REPLACE INTO t1 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-1 1970-11-10 14:16:17.852954 1970-11-10 14:16:17.852954 1970-11-10 14:16:17.852954 1970-11-10 14:16:17.852954 0000-00-00 00:00:00.000000 NULL NULL NULL
-DROP TABLE t1;
-#
-# Test of insertion of NULL, DEFAULT and an empty row for DEFAULT
-# CURRENT_TIMESTAMP.
-#
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-c INT
-);
-# 2011-04-20 09:53:41 UTC
-SET TIMESTAMP = 1303293221.163578;
-INSERT INTO t1 VALUES (NULL, NULL, 1), (DEFAULT, DEFAULT, 2);
-INSERT INTO t1 ( a, b, c ) VALUES (NULL, NULL, 3), (DEFAULT, DEFAULT, 4);
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41.163578 NULL 1
-2011-04-20 09:53:41.163578 2011-04-20 09:53:41.163578 2
-2011-04-20 09:53:41.163578 NULL 3
-2011-04-20 09:53:41.163578 2011-04-20 09:53:41.163578 4
-SET TIME_ZONE = "+03:00";
-SELECT * FROM t1;
-a b c
-2011-04-20 12:53:41.163578 NULL 1
-2011-04-20 12:53:41.163578 2011-04-20 09:53:41.163578 2
-2011-04-20 12:53:41.163578 NULL 3
-2011-04-20 12:53:41.163578 2011-04-20 09:53:41.163578 4
-SET TIME_ZONE = "+00:00";
-DROP TABLE t1;
-# 2011-04-20 07:05:39 UTC
-SET TIMESTAMP = 1303283139.195624;
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT '2010-10-11 12:34:56' ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) DEFAULT '2010-10-11 12:34:56'
-);
-INSERT INTO t1 VALUES (NULL, NULL), (DEFAULT, DEFAULT);
-INSERT INTO t1 ( a, b ) VALUES (NULL, NULL), (DEFAULT, DEFAULT);
-SELECT * FROM t1;
-a b
-2011-04-20 07:05:39.195624 NULL
-2010-10-11 12:34:56.000000 2010-10-11 12:34:56.000000
-2011-04-20 07:05:39.195624 NULL
-2010-10-11 12:34:56.000000 2010-10-11 12:34:56.000000
-DROP TABLE t1;
-# 2011-04-20 09:53:41 UTC
-SET TIMESTAMP = 1303293221.136952;
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-e TIMESTAMP(6) NULL,
-f DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-g DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-h DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-i DATETIME(6) NULL,
-j DATETIME(6) DEFAULT '1986-09-27 03:00:00.098765'
-);
-INSERT INTO t1 VALUES ();
-INSERT INTO t1 SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL;
-SELECT * FROM t1;
-a b c d e f g h i j
-2011-04-20 09:53:41.136952 2011-04-20 09:53:41.136952 0000-00-00 00:00:00.000000 1986-09-27 03:00:00.098765 NULL 2011-04-20 09:53:41.136952 2011-04-20 09:53:41.136952 NULL NULL 1986-09-27 03:00:00.098765
-2011-04-20 09:53:41.136952 2011-04-20 09:53:41.136952 2011-04-20 09:53:41.136952 2011-04-20 09:53:41.136952 NULL NULL NULL NULL NULL NULL
-DROP TABLE t1;
-#
-# Test of multiple-table UPDATE for DEFAULT CURRENT_TIMESTAMP
-#
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-c INT
-);
-INSERT INTO t1 ( c ) VALUES (1);
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41.136952 2011-04-20 09:53:41.136952 1
-# 2011-04-20 17:06:13 UTC
-SET TIMESTAMP = 1303311973.163587;
-UPDATE t1 t11, t1 t12 SET t11.c = 1;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41.136952 2011-04-20 09:53:41.136952 1
-UPDATE t1 t11, t1 t12 SET t11.c = 2;
-SELECT * FROM t1;
-a b c
-2011-04-20 15:06:13.163587 2011-04-20 09:53:41.136952 2
-DROP TABLE t1;
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-c DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-d DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-e INT
-);
-CREATE TABLE t2 (
-f INT,
-g DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-h DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-i TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-j TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6)
-);
-# 1995-03-11 00:02:03 UTC
-SET TIMESTAMP = 794880123.195676;
-INSERT INTO t1 ( e ) VALUES ( 1 ), ( 2 );
-INSERT INTO t2 ( f ) VALUES ( 1 ), ( 2 );
-SELECT * FROM t1;
-a b c d e
-1995-03-11 00:02:03.195676 0000-00-00 00:00:00.000000 1995-03-11 00:02:03.195676 NULL 1
-1995-03-11 00:02:03.195676 0000-00-00 00:00:00.000000 1995-03-11 00:02:03.195676 NULL 2
-SELECT * FROM t2;
-f g h i j
-1 NULL 1995-03-11 00:02:03.195676 0000-00-00 00:00:00.000000 1995-03-11 00:02:03.195676
-2 NULL 1995-03-11 00:02:03.195676 0000-00-00 00:00:00.000000 1995-03-11 00:02:03.195676
-# 1980-12-13 02:02:01 UTC
-SET TIMESTAMP = 345520921.196755;
-UPDATE t1, t2 SET t1.e = 3, t2.f = 4;
-SELECT * FROM t1;
-a b c d e
-1995-03-11 00:02:03.195676 1980-12-13 02:02:01.196755 1995-03-11 00:02:03.195676 1980-12-13 02:02:01.196755 3
-1995-03-11 00:02:03.195676 1980-12-13 02:02:01.196755 1995-03-11 00:02:03.195676 1980-12-13 02:02:01.196755 3
-SELECT * FROM t2;
-f g h i j
-4 1980-12-13 02:02:01.196755 1995-03-11 00:02:03.195676 1980-12-13 02:02:01.196755 1995-03-11 00:02:03.195676
-4 1980-12-13 02:02:01.196755 1995-03-11 00:02:03.195676 1980-12-13 02:02:01.196755 1995-03-11 00:02:03.195676
-DROP TABLE t1, t2;
-#
-# Test of multiple table update with temporary table and on the fly.
-#
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c INT,
-d INT
-);
-CREATE TABLE t2 (
-a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c INT KEY,
-d INT
-);
-INSERT INTO t1 ( c ) VALUES (1), (2);
-INSERT INTO t2 ( c ) VALUES (1), (2);
-# Test of multiple table update done on the fly
-# 2011-04-20 15:06:13 UTC
-SET TIMESTAMP = 1303311973.194685;
-UPDATE t1 JOIN t2 USING ( c ) SET t2.d = 1;
-SELECT * FROM t1;
-a b c d
-0000-00-00 00:00:00.000000 NULL 1 NULL
-0000-00-00 00:00:00.000000 NULL 2 NULL
-SELECT * FROM t2;
-a b c d
-2011-04-20 15:06:13.194685 2011-04-20 15:06:13.194685 1 1
-2011-04-20 15:06:13.194685 2011-04-20 15:06:13.194685 2 1
-# Test of multiple table update done with temporary table.
-# 1979-01-15 03:02:01
-SET TIMESTAMP = 285213721.134679;
-UPDATE t1 JOIN t2 USING ( c ) SET t1.d = 1;
-SELECT * FROM t1;
-a b c d
-1979-01-15 02:02:01.134679 1979-01-15 02:02:01.134679 1 1
-1979-01-15 02:02:01.134679 1979-01-15 02:02:01.134679 2 1
-SELECT * FROM t2;
-a b c d
-2011-04-20 15:06:13.194685 2011-04-20 15:06:13.194685 1 1
-2011-04-20 15:06:13.194685 2011-04-20 15:06:13.194685 2 1
-DROP TABLE t1, t2;
-#
-# Test of ON UPDATE CURRENT_TIMESTAMP.
-#
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c INT
-);
-# 2011-04-20 09:53:41 UTC
-SET TIMESTAMP = 1303293221.794613;
-INSERT INTO t1 ( c ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c
-0000-00-00 00:00:00.000000 NULL 1
-UPDATE t1 SET c = 1;
-SELECT * FROM t1;
-a b c
-0000-00-00 00:00:00.000000 NULL 1
-UPDATE t1 SET c = 2;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41.794613 2011-04-20 09:53:41.794613 2
-#
-# Test that ON UPDATE CURRENT_TIMESTAMP works after non-changing UPDATE.
-#
-# 2011-04-20 09:54:13 UTC
-SET TIMESTAMP = 1303293253.794613;
-UPDATE t1 SET c = 2, b = '2011-04-20 09:53:41.794613';
-SELECT * FROM t1;
-a b c
-2011-04-20 09:53:41.794613 2011-04-20 09:53:41.794613 2
-UPDATE t1 SET c = 3;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:54:13.794613 2011-04-20 09:54:13.794613 3
-#
-# Test of multiple-table UPDATE for ON UPDATE CURRENT_TIMESTAMP
-#
-# 2011-04-20 15:06:13 UTC
-SET TIMESTAMP = 1303311973.534231;
-UPDATE t1 t11, t1 t12 SET t11.c = 3;
-SELECT * FROM t1;
-a b c
-2011-04-20 09:54:13.794613 2011-04-20 09:54:13.794613 3
-UPDATE t1 t11, t1 t12 SET t11.c = 2;
-SELECT * FROM t1;
-a b c
-2011-04-20 15:06:13.534231 2011-04-20 15:06:13.534231 2
-DROP TABLE t1;
-#
-# Test of a multiple-table update where only one table is updated and
-# the updated table has a primary key.
-#
-CREATE TABLE t1 ( a INT, b INT, PRIMARY KEY (a) );
-INSERT INTO t1 VALUES (1, 1),(2, 2),(3, 3),(4, 4);
-CREATE TABLE t2 ( a INT, b INT );
-INSERT INTO t2 VALUES (1, 1),(2, 2),(3, 3),(4, 4),(5, 5);
-UPDATE t1, t2 SET t1.b = 100 WHERE t1.a = t2.a;
-SELECT * FROM t1;
-a b
-1 100
-2 100
-3 100
-4 100
-SELECT * FROM t2;
-a b
-1 1
-2 2
-3 3
-4 4
-5 5
-DROP TABLE t1, t2;
-#
-# Test of ALTER TABLE, reordering columns.
-#
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), b INT );
-ALTER TABLE t1 MODIFY a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a INT, b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), c TIMESTAMP(6) NULL );
-ALTER TABLE t1 MODIFY b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `a` int(11) DEFAULT NULL,
- `c` timestamp(6) NULL DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a INT, b TIMESTAMP(6) NULL );
-ALTER TABLE t1 MODIFY b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `a` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), b TIMESTAMP(6) NULL );
-ALTER TABLE t1 MODIFY a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp(6) NULL DEFAULT NULL,
- `a` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000'
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), b TIMESTAMP(6) NULL );
-ALTER TABLE t1 MODIFY a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` timestamp(6) NULL DEFAULT NULL,
- `a` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000'
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW(6), b INT, c TIMESTAMP(6) NULL );
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000' ON UPDATE current_timestamp(6),
- `b` int(11) DEFAULT NULL,
- `c` timestamp(6) NULL DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-ALTER TABLE t1 MODIFY a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `c` timestamp(6) NULL DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW(6), b INT, c TIMESTAMP(6) NULL );
-ALTER TABLE t1 MODIFY c TIMESTAMP(6) NULL FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` timestamp(6) NULL DEFAULT NULL,
- `a` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000' ON UPDATE current_timestamp(6),
- `b` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT NOW(6) ON UPDATE CURRENT_TIMESTAMP(6), b INT, c TIMESTAMP(6) NULL );
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `b` int(11) DEFAULT NULL,
- `c` timestamp(6) NULL DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-ALTER TABLE t1 MODIFY a TIMESTAMP(6) NOT NULL DEFAULT NOW(6) ON UPDATE CURRENT_TIMESTAMP(6) AFTER b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` int(11) DEFAULT NULL,
- `a` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `c` timestamp(6) NULL DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT NOW(6) ON UPDATE CURRENT_TIMESTAMP(6), b INT, c TIMESTAMP(6) NULL );
-ALTER TABLE t1 MODIFY c TIMESTAMP(6) NULL FIRST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` timestamp(6) NULL DEFAULT NULL,
- `a` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `b` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# Test of ALTER TABLE, adding columns.
-#
-CREATE TABLE t1 ( a INT );
-ALTER TABLE t1 ADD COLUMN b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# Test of INSERT SELECT.
-#
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-d DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)
-);
-CREATE TABLE t2 (
-placeholder1 INT,
-placeholder2 INT,
-placeholder3 INT,
-placeholder4 INT,
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00',
-c DATETIME(6),
-d DATETIME(6)
-);
-# 1977-08-16 15:30:01 UTC
-SET TIMESTAMP = 240589801.654312;
-INSERT INTO t2 (a, b, c, d) VALUES (
-'1977-08-16 15:30:01.123456',
-'1977-08-16 15:30:01.234567',
-'1977-08-16 15:30:01.345678',
-'1977-08-16 15:30:01.456789'
-);
-# 1986-09-27 01:00:00 UTC
-SET TIMESTAMP = 528166800.132435;
-INSERT INTO t1 ( a, c ) SELECT a, c FROM t2;
-SELECT * FROM t1;
-a b c d
-1977-08-16 15:30:01.123456 1986-09-27 01:00:00.132435 1977-08-16 15:30:01.345678 1986-09-27 01:00:00.132435
-DROP TABLE t1, t2;
-#
-# Test of CREATE TABLE SELECT.
-#
-# We test that the columns of the source table are not used to determine
-# function defaults for the receiving table.
-#
-# 1970-04-11 20:13:57 UTC
-SET TIMESTAMP = 8712837.657898;
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-e TIMESTAMP(6) NULL,
-f DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-g DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-h DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-i DATETIME(6) NULL,
-j DATETIME(6) DEFAULT '1986-09-27 03:00:00.098765'
-);
-INSERT INTO t1 VALUES ();
-# 1971-01-31 21:13:57 UTC
-SET TIMESTAMP = 34200837.164937;
-CREATE TABLE t2 SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-a
-1970-04-11 20:13:57.657897
-CREATE TABLE t3 SELECT b FROM t1;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `b` timestamp(6) NOT NULL DEFAULT current_timestamp(6)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t3;
-b
-1970-04-11 20:13:57.657897
-CREATE TABLE t4 SELECT c FROM t1;
-SHOW CREATE TABLE t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `c` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000' ON UPDATE current_timestamp(6)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t4;
-c
-0000-00-00 00:00:00.000000
-CREATE TABLE t5 SELECT d FROM t1;
-SHOW CREATE TABLE t5;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `d` timestamp(6) NOT NULL DEFAULT '1986-09-27 03:00:00.098765'
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t5;
-d
-1986-09-27 03:00:00.098765
-CREATE TABLE t6 SELECT e FROM t1;
-SHOW CREATE TABLE t6;
-Table Create Table
-t6 CREATE TABLE `t6` (
- `e` timestamp(6) NULL DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t6;
-e
-NULL
-CREATE TABLE t7 SELECT f FROM t1;
-SHOW CREATE TABLE t7;
-Table Create Table
-t7 CREATE TABLE `t7` (
- `f` datetime(6) DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t7;
-f
-1970-04-11 20:13:57.657897
-CREATE TABLE t8 SELECT g FROM t1;
-SHOW CREATE TABLE t8;
-Table Create Table
-t8 CREATE TABLE `t8` (
- `g` datetime(6) DEFAULT current_timestamp(6)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t8;
-g
-1970-04-11 20:13:57.657897
-CREATE TABLE t9 SELECT h FROM t1;
-SHOW CREATE TABLE t9;
-Table Create Table
-t9 CREATE TABLE `t9` (
- `h` datetime(6) DEFAULT NULL ON UPDATE current_timestamp(6)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t9;
-h
-NULL
-CREATE TABLE t10 SELECT i FROM t1;
-SHOW CREATE TABLE t10;
-Table Create Table
-t10 CREATE TABLE `t10` (
- `i` datetime(6) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t10;
-i
-NULL
-CREATE TABLE t11 SELECT j FROM t1;
-SHOW CREATE TABLE t11;
-Table Create Table
-t11 CREATE TABLE `t11` (
- `j` datetime(6) DEFAULT '1986-09-27 03:00:00.098765'
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t11;
-j
-1986-09-27 03:00:00.098765
-CREATE TABLE t12 (
-k TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-l TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-m TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-n TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-o TIMESTAMP(6) NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
-p TIMESTAMP(6) NULL,
-q DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-r DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-s DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-t DATETIME(6) NULL,
-u DATETIME(6) DEFAULT '1986-09-27 03:00:00.098765'
-)
-SELECT * FROM t1;
-SHOW CREATE TABLE t12;
-Table Create Table
-t12 CREATE TABLE `t12` (
- `k` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `l` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `m` timestamp(6) NOT NULL DEFAULT current_timestamp(6),
- `n` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000' ON UPDATE current_timestamp(6),
- `o` timestamp(6) NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
- `p` timestamp(6) NULL DEFAULT NULL,
- `q` datetime(6) DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `r` datetime(6) DEFAULT current_timestamp(6),
- `s` datetime(6) DEFAULT NULL ON UPDATE current_timestamp(6),
- `t` datetime(6) DEFAULT NULL,
- `u` datetime(6) DEFAULT '1986-09-27 03:00:00.098765',
- `a` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `b` timestamp(6) NOT NULL DEFAULT current_timestamp(6),
- `c` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000' ON UPDATE current_timestamp(6),
- `d` timestamp(6) NOT NULL DEFAULT '1986-09-27 03:00:00.098765',
- `e` timestamp(6) NULL DEFAULT NULL,
- `f` datetime(6) DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `g` datetime(6) DEFAULT current_timestamp(6),
- `h` datetime(6) DEFAULT NULL ON UPDATE current_timestamp(6),
- `i` datetime(6) DEFAULT NULL,
- `j` datetime(6) DEFAULT '1986-09-27 03:00:00.098765'
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12;
-# 1970-04-11 20:13:57 UTC
-SET TIMESTAMP = 8712837.164953;
-CREATE TABLE t1 (
-a DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-c DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-d DATETIME(6) NULL,
-e DATETIME(6) DEFAULT '1986-09-27 03:00:00.098765'
-);
-INSERT INTO t1 VALUES ();
-# 1971-01-31 20:13:57 UTC
-SET TIMESTAMP = 34200837.915736;
-CREATE TABLE t2 SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` datetime(6) DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-a
-1970-04-11 20:13:57.164953
-CREATE TABLE t3 SELECT b FROM t1;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `b` datetime(6) DEFAULT current_timestamp(6)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t3;
-b
-1970-04-11 20:13:57.164953
-CREATE TABLE t4 SELECT c FROM t1;
-SHOW CREATE TABLE t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `c` datetime(6) DEFAULT NULL ON UPDATE current_timestamp(6)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t4;
-c
-NULL
-CREATE TABLE t5 SELECT d FROM t1;
-SHOW CREATE TABLE t5;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `d` datetime(6) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t5;
-d
-NULL
-CREATE TABLE t6 SELECT e FROM t1;
-SHOW CREATE TABLE t6;
-Table Create Table
-t6 CREATE TABLE `t6` (
- `e` datetime(6) DEFAULT '1986-09-27 03:00:00.098765'
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t6;
-e
-1986-09-27 03:00:00.098765
-DROP TABLE t1, t2, t3, t4, t5, t6;
-#
-# Test of a CREATE TABLE SELECT that also declared columns. In this case
-# the function default should be de-activated during the execution of the
-# CREATE TABLE statement.
-#
-# 1970-01-01 03:16:40
-SET TIMESTAMP = 1000.987654;
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES ( 1 ), ( 2 );
-CREATE TABLE t2 ( b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)) SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `b` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `a` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SET TIMESTAMP = 2000.876543;
-INSERT INTO t2( a ) VALUES ( 3 );
-SELECT * FROM t2;
-b a
-1970-01-01 00:16:40.987654 1
-1970-01-01 00:16:40.987654 2
-1970-01-01 00:33:20.876543 3
-DROP TABLE t1, t2;
-#
-# Test of updating a view.
-#
-CREATE TABLE t1 ( a INT, b DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) );
-CREATE TABLE t2 ( a INT, b DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6) );
-CREATE VIEW v1 AS SELECT * FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` latin1 latin1_swedish_ci
-CREATE VIEW v2 AS SELECT * FROM t2;
-SHOW CREATE VIEW v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t2`.`a` AS `a`,`t2`.`b` AS `b` from `t2` latin1 latin1_swedish_ci
-# 1971-01-31 21:13:57 UTC
-SET TIMESTAMP = 34200837.348564;
-INSERT INTO v1 ( a ) VALUES ( 1 );
-INSERT INTO v2 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b
-1 1971-01-31 20:13:57.348564
-SELECT * FROM v1;
-a b
-1 1971-01-31 20:13:57.348564
-SELECT * FROM t2;
-a b
-1 NULL
-SELECT * FROM v2;
-a b
-1 NULL
-# 1970-04-11 20:13:57 UTC
-SET TIMESTAMP = 8712837.567332;
-UPDATE v1 SET a = 2;
-UPDATE v2 SET a = 2;
-SELECT * FROM t1;
-a b
-2 1971-01-31 20:13:57.348564
-SELECT * FROM v1;
-a b
-2 1971-01-31 20:13:57.348564
-SELECT * FROM t2;
-a b
-2 1970-04-11 20:13:57.567332
-SELECT * FROM v2;
-a b
-2 1970-04-11 20:13:57.567332
-DROP VIEW v1, v2;
-DROP TABLE t1, t2;
-#
-# Test with stored procedures.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NULL,
-f DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-g DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6)
-);
-CREATE PROCEDURE p1() INSERT INTO test.t1( a ) VALUES ( 1 );
-CREATE PROCEDURE p2() UPDATE t1 SET a = 2 WHERE a = 1;
-# 1971-01-31 20:13:57 UTC
-SET TIMESTAMP = 34200837.876544;
-CALL p1();
-SELECT * FROM t1;
-a b c d e f g
-1 1971-01-31 20:13:57.876544 1971-01-31 20:13:57.876544 0000-00-00 00:00:00.000000 NULL 1971-01-31 20:13:57.876544 NULL
-# 1970-04-11 21:13:57 UTC
-SET TIMESTAMP = 8712837.143546;
-CALL p2();
-SELECT * FROM t1;
-a b c d e f g
-2 1970-04-11 20:13:57.143546 1971-01-31 20:13:57.876544 1970-04-11 20:13:57.143546 NULL 1971-01-31 20:13:57.876544 1970-04-11 20:13:57.143546
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP TABLE t1;
-#
-# Test with triggers.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NULL,
-f DATETIME(6),
-g DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-h DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-i DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)
-);
-CREATE TABLE t2 ( a INT );
-CREATE TRIGGER t2_trg BEFORE INSERT ON t2 FOR EACH ROW
-BEGIN
-INSERT INTO t1 ( a ) VALUES ( 1 );
-END|
-# 1971-01-31 21:13:57 UTC
-SET TIMESTAMP = 34200837.978675;
-INSERT INTO t2 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-1 1971-01-31 20:13:57.978675 1971-01-31 20:13:57.978675 0000-00-00 00:00:00.000000 NULL NULL 1971-01-31 20:13:57.978675 NULL 1971-01-31 20:13:57.978675
-DROP TRIGGER t2_trg;
-CREATE TRIGGER t2_trg BEFORE INSERT ON t2 FOR EACH ROW
-BEGIN
-UPDATE t1 SET a = 2;
-END|
-# 1970-04-11 21:13:57 UTC
-SET TIMESTAMP = 8712837.456789;
-INSERT INTO t2 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b c d e f g h i
-2 1970-04-11 20:13:57.456789 1971-01-31 20:13:57.978675 1970-04-11 20:13:57.456789 NULL NULL 1971-01-31 20:13:57.978675 1970-04-11 20:13:57.456789 1970-04-11 20:13:57.456789
-DROP TABLE t1, t2;
-#
-# Test where the assignment target is not a column.
-#
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) );
-CREATE TABLE t2 ( a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) );
-CREATE TABLE t3 ( a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6) );
-CREATE TABLE t4 ( a TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6) );
-CREATE VIEW v1 AS SELECT a COLLATE latin1_german1_ci AS b FROM t1;
-CREATE VIEW v2 ( b ) AS SELECT a COLLATE latin1_german1_ci FROM t2;
-CREATE VIEW v3 AS SELECT a COLLATE latin1_german1_ci AS b FROM t3;
-CREATE VIEW v4 ( b ) AS SELECT a COLLATE latin1_german1_ci FROM t4;
-INSERT INTO v1 ( b ) VALUES ( '2007-10-24 00:03:34.010203' );
-SELECT a FROM t1;
-a
-2007-10-24 00:03:34.010203
-INSERT INTO v2 ( b ) VALUES ( '2007-10-24 00:03:34.010203' );
-SELECT a FROM t2;
-a
-2007-10-24 00:03:34.010203
-INSERT INTO t3 VALUES ();
-UPDATE v3 SET b = '2007-10-24 00:03:34.010203';
-SELECT a FROM t3;
-a
-2007-10-24 00:03:34.010203
-INSERT INTO t4 VALUES ();
-UPDATE v4 SET b = '2007-10-24 00:03:34.010203';
-SELECT a FROM t4;
-a
-2007-10-24 00:03:34.010203
-DROP VIEW v1, v2, v3, v4;
-DROP TABLE t1, t2, t3, t4;
-#
-# Test of LOAD DATA/XML INFILE
-# This tests behavior of function defaults for TIMESTAMP and DATETIME
-# columns. during LOAD ... INFILE.
-# As can be seen here, a TIMESTAMP column with only ON UPDATE
-# CURRENT_TIMESTAMP will still have CURRENT_TIMESTAMP inserted on LOAD
-# ... INFILE if the value is missing. For DATETIME columns a NULL value
-# is inserted instead.
-#
-CREATE TABLE t1 (
-a INT,
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-f DATETIME(6),
-g DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6),
-h DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6),
-i DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)
-);
-CREATE TABLE t2 (
-a TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-c TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-e DATETIME(6) NOT NULL,
-f DATETIME(6) NOT NULL DEFAULT '1977-01-02 12:13:14',
-g DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) NOT NULL,
-h DATETIME(6) ON UPDATE CURRENT_TIMESTAMP(6) NOT NULL,
-i DATETIME(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) NOT NULL
-);
-SELECT 1 INTO OUTFILE 't3.dat' FROM dual;
-SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
-INTO OUTFILE 't4.dat'
-FROM dual;
-SELECT 1, 2 INTO OUTFILE 't5.dat' FROM dual;
-# Mon Aug 1 15:11:19 2011 UTC
-SET TIMESTAMP = 1312211479.918273;
-LOAD DATA INFILE 't3.dat' IGNORE INTO TABLE t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-a 1
-b 2011-08-01 15:11:19.918273
-c 2011-08-01 15:11:19.918273
-d 2011-08-01 15:11:19.918273
-e 2011-08-01 15:11:19.918273
-f NULL
-g NULL
-h NULL
-i NULL
-LOAD DATA INFILE 't4.dat' IGNORE INTO TABLE t2;
-Warnings:
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'e' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'f' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'g' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'h' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'i' at row 1
-SELECT a FROM t2;
-a
-2011-08-01 15:11:19.918273
-SELECT b FROM t2;
-b
-2011-08-01 15:11:19.918273
-SELECT c FROM t2;
-c
-2011-08-01 15:11:19.918273
-SELECT d FROM t2;
-d
-2011-08-01 15:11:19.918273
-# As shown here, supplying a NULL value to a non-nullable
-# column with no default value results in the zero date.
-SELECT e FROM t2;
-e
-0000-00-00 00:00:00.000000
-# As shown here, supplying a NULL value to a non-nullable column with a
-# default value results in the zero date.
-SELECT f FROM t2;
-f
-0000-00-00 00:00:00.000000
-# As shown here, supplying a NULL value to a non-nullable column with a
-# default function results in the zero date.
-SELECT g FROM t2;
-g
-0000-00-00 00:00:00.000000
-# As shown here, supplying a NULL value to a non-nullable DATETIME ON
-# UPDATE CURRENT_TIMESTAMP column with no default value results in the
-# zero date.
-SELECT h FROM t2;
-h
-0000-00-00 00:00:00.000000
-SELECT i FROM t2;
-i
-0000-00-00 00:00:00.000000
-DELETE FROM t1;
-DELETE FROM t2;
-# Read t3 file into t1
-# The syntax will cause a different code path to be taken
-# (read_fixed_length()) than under the LOAD ... INTO TABLE t1 command
-# above. The code in this path is copy-pasted code from the path taken
-# under the syntax used in the previous LOAD command.
-LOAD DATA INFILE 't3.dat' IGNORE INTO TABLE t1
-FIELDS TERMINATED BY '' ENCLOSED BY '';
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT b FROM t1;
-b
-2011-08-01 15:11:19.918273
-SELECT c FROM t1;
-c
-2011-08-01 15:11:19.918273
-SELECT d FROM t1;
-d
-2011-08-01 15:11:19.918273
-SELECT e FROM t1;
-e
-2011-08-01 15:11:19.918273
-# Yes, a missing field cannot be NULL using this syntax, so it will
-# zero date instead. Says a comment in read_fixed_length() : "No fields
-# specified in fields_vars list can be NULL in this format."
-# It appears to be by design. This is inconsistent with LOAD DATA INFILE
-# syntax in previous test.
-SELECT f FROM t1;
-f
-0000-00-00 00:00:00.000000
-SELECT g FROM t1;
-g
-0000-00-00 00:00:00.000000
-# See comment above "SELECT f FROM f1".
-SELECT h FROM t1;
-h
-0000-00-00 00:00:00.000000
-SELECT i FROM t1;
-i
-0000-00-00 00:00:00.000000
-DELETE FROM t1;
-LOAD DATA INFILE 't5.dat' INTO TABLE t1 ( a, @dummy );
-SELECT * FROM t1;
-a b c d e f g h i
-1 2011-08-01 15:11:19.918273 2011-08-01 15:11:19.918273 0000-00-00 00:00:00.000000 2011-08-01 15:11:19.918273 NULL 2011-08-01 15:11:19.918273 NULL 2011-08-01 15:11:19.918273
-SELECT @dummy;
-@dummy
-2
-DELETE FROM t1;
-LOAD DATA INFILE 't3.dat' INTO TABLE t1 ( a ) SET c = '2005-06-06 08:09:10';
-SELECT * FROM t1;
-a b c d e f g h i
-1 2011-08-01 15:11:19.918273 2005-06-06 08:09:10.000000 0000-00-00 00:00:00.000000 2011-08-01 15:11:19.918273 NULL 2011-08-01 15:11:19.918273 NULL 2011-08-01 15:11:19.918273
-DELETE FROM t1;
-LOAD DATA INFILE 't3.dat' INTO TABLE t1 ( a ) SET g = '2005-06-06 08:09:10';
-SELECT * FROM t1;
-a b c d e f g h i
-1 2011-08-01 15:11:19.918273 2011-08-01 15:11:19.918273 0000-00-00 00:00:00.000000 2011-08-01 15:11:19.918273 NULL 2005-06-06 08:09:10.000000 NULL 2011-08-01 15:11:19.918273
-DELETE FROM t1;
-# Load a static XML file
-LOAD XML INFILE '../../std_data/onerow.xml' INTO TABLE t1
-ROWS IDENTIFIED BY '<row>';
-Missing tags are treated as NULL
-SELECT * FROM t1;
-a 1
-b 2011-08-01 15:11:19.918273
-c 2011-08-01 15:11:19.918273
-d 2011-08-01 15:11:19.918273
-e 2011-08-01 15:11:19.918273
-f NULL
-g NULL
-h NULL
-i NULL
-DROP TABLE t1, t2;
-#
-# Similar LOAD DATA tests in another form
-#
-# All of this test portion has been run on a pre-WL5874 trunk
-# (except that like_b and like_c didn't exist) and all result
-# differences are a bug.
-# Regarding like_b its definition is the same as b's except
-# that the constant default is replaced with a function
-# default. Our expectation is that like_b would behave
-# like b: if b is set to NULL, or set to 0000-00-00, or set to
-# its default, then the same should apply to like_b. Same for
-# like_c vs c.
-# Mon Aug 1 15:11:19 2011 UTC
-SET TIMESTAMP = 1312211479.089786;
-SELECT 1 INTO OUTFILE "file1.dat" FROM dual;
-SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
-INTO OUTFILE "file2.dat" FROM dual;
-# Too short row
-CREATE TABLE t1 (
-dummy INT,
-a DATETIME(6) NULL DEFAULT NULL,
-b DATETIME(6) NULL DEFAULT "2011-11-18",
-like_b DATETIME(6) NULL DEFAULT CURRENT_TIMESTAMP(6),
-c DATETIME(6) NOT NULL DEFAULT "2011-11-18",
-like_c DATETIME(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NULL DEFAULT "2011-05-03" ON UPDATE CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NOT NULL DEFAULT "2011-05-03",
-f TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-g TIMESTAMP(6) NULL DEFAULT NULL,
-h INT NULL,
-i INT NOT NULL DEFAULT 42
-);
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime(6) DEFAULT NULL,
- `b` datetime(6) DEFAULT '2011-11-18 00:00:00.000000',
- `like_b` datetime(6) DEFAULT current_timestamp(6),
- `c` datetime(6) NOT NULL DEFAULT '2011-11-18 00:00:00.000000',
- `like_c` datetime(6) NOT NULL DEFAULT current_timestamp(6),
- `d` timestamp(6) NULL DEFAULT '2011-05-03 00:00:00.000000' ON UPDATE current_timestamp(6),
- `e` timestamp(6) NOT NULL DEFAULT '2011-05-03 00:00:00.000000',
- `f` timestamp(6) NOT NULL DEFAULT current_timestamp(6),
- `g` timestamp(6) NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file1.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-# It is strange that "like_b" gets NULL when "b" gets 0. But
-# this is consistent with how "a" gets NULL when "b" gets 0,
-# with how "g" gets NULL when "d" gets 0, and with how "h" gets
-# NULL when "i" gets 0. Looks like "DEFAULT
-# <non-NULL-constant>" is changed to 0, whereas DEFAULT NULL
-# and DEFAULT NOW are changed to NULL.
-SELECT * FROM t1;
-dummy 1
-a NULL
-b 0000-00-00 00:00:00.000000
-like_b NULL
-c 0000-00-00 00:00:00.000000
-like_c 0000-00-00 00:00:00.000000
-d 0000-00-00 00:00:00.000000
-e 2011-08-01 15:11:19.089786
-f 2011-08-01 15:11:19.089786
-g NULL
-h NULL
-i 0
-delete from t1;
-alter table t1
-modify f TIMESTAMP NULL default CURRENT_TIMESTAMP;
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime(6) DEFAULT NULL,
- `b` datetime(6) DEFAULT '2011-11-18 00:00:00.000000',
- `like_b` datetime(6) DEFAULT current_timestamp(6),
- `c` datetime(6) NOT NULL DEFAULT '2011-11-18 00:00:00.000000',
- `like_c` datetime(6) NOT NULL DEFAULT current_timestamp(6),
- `d` timestamp(6) NULL DEFAULT '2011-05-03 00:00:00.000000' ON UPDATE current_timestamp(6),
- `e` timestamp(6) NOT NULL DEFAULT '2011-05-03 00:00:00.000000',
- `f` timestamp NULL DEFAULT current_timestamp(),
- `g` timestamp(6) NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file1.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-dummy 1
-a NULL
-b 0000-00-00 00:00:00.000000
-like_b NULL
-c 0000-00-00 00:00:00.000000
-like_c 0000-00-00 00:00:00.000000
-d 0000-00-00 00:00:00.000000
-e 2011-08-01 15:11:19.089786
-f NULL
-g NULL
-h NULL
-i 0
-delete from t1;
-drop table t1;
-# Conclusion derived from trunk's results:
-# DATETIME DEFAULT <non-NULL-constant> (b,c) gets 0000-00-00,
-# DATETIME DEFAULT NULL (a) gets NULL,
-# TIMESTAMP NULL DEFAULT <non-NULL-constant> (d) gets 0000-00-00,
-# TIMESTAMP NULL DEFAULT NULL (g) gets NULL,
-# TIMESTAMP NULL DEFAULT NOW (f after ALTER) gets NULL,
-# TIMESTAMP NOT NULL (f before ALTER, e) gets NOW.
-### Loading NULL ###
-CREATE TABLE t1 (
-dummy INT,
-a DATETIME(6) NULL DEFAULT NULL,
-b DATETIME(6) NULL DEFAULT "2011-11-18",
-like_b DATETIME(6) NULL DEFAULT CURRENT_TIMESTAMP(6),
-c DATETIME(6) NOT NULL DEFAULT "2011-11-18",
-like_c DATETIME(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-d TIMESTAMP(6) NULL DEFAULT "2011-05-03" ON UPDATE CURRENT_TIMESTAMP(6),
-e TIMESTAMP(6) NOT NULL DEFAULT "2011-05-03",
-f TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
-g TIMESTAMP(6) NULL DEFAULT NULL,
-h INT NULL,
-i INT NOT NULL DEFAULT 42
-);
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime(6) DEFAULT NULL,
- `b` datetime(6) DEFAULT '2011-11-18 00:00:00.000000',
- `like_b` datetime(6) DEFAULT current_timestamp(6),
- `c` datetime(6) NOT NULL DEFAULT '2011-11-18 00:00:00.000000',
- `like_c` datetime(6) NOT NULL DEFAULT current_timestamp(6),
- `d` timestamp(6) NULL DEFAULT '2011-05-03 00:00:00.000000' ON UPDATE current_timestamp(6),
- `e` timestamp(6) NOT NULL DEFAULT '2011-05-03 00:00:00.000000',
- `f` timestamp(6) NOT NULL DEFAULT current_timestamp(6),
- `g` timestamp(6) NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file2.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'like_c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'i' at row 1
-SELECT * FROM t1;
-dummy NULL
-a NULL
-b NULL
-like_b NULL
-c 0000-00-00 00:00:00.000000
-like_c 0000-00-00 00:00:00.000000
-d NULL
-e 2011-08-01 15:11:19.089786
-f 2011-08-01 15:11:19.089786
-g NULL
-h NULL
-i 0
-delete from t1;
-alter table t1
-modify f TIMESTAMP NULL default CURRENT_TIMESTAMP;
-# There is no promotion
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dummy` int(11) DEFAULT NULL,
- `a` datetime(6) DEFAULT NULL,
- `b` datetime(6) DEFAULT '2011-11-18 00:00:00.000000',
- `like_b` datetime(6) DEFAULT current_timestamp(6),
- `c` datetime(6) NOT NULL DEFAULT '2011-11-18 00:00:00.000000',
- `like_c` datetime(6) NOT NULL DEFAULT current_timestamp(6),
- `d` timestamp(6) NULL DEFAULT '2011-05-03 00:00:00.000000' ON UPDATE current_timestamp(6),
- `e` timestamp(6) NOT NULL DEFAULT '2011-05-03 00:00:00.000000',
- `f` timestamp NULL DEFAULT current_timestamp(),
- `g` timestamp(6) NULL DEFAULT NULL,
- `h` int(11) DEFAULT NULL,
- `i` int(11) NOT NULL DEFAULT 42
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-LOAD DATA INFILE "file2.dat" IGNORE INTO table t1;
-Warnings:
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'like_c' at row 1
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'i' at row 1
-SELECT * FROM t1;
-dummy NULL
-a NULL
-b NULL
-like_b NULL
-c 0000-00-00 00:00:00.000000
-like_c 0000-00-00 00:00:00.000000
-d NULL
-e 2011-08-01 15:11:19.089786
-f NULL
-g NULL
-h NULL
-i 0
-delete from t1;
-# Conclusion derived from trunk's results:
-# DATETIME NULL (a,b) gets NULL,
-# DATETIME NOT NULL (c) gets 0000-00-00,
-# TIMESTAMP NULL (d,f,g) gets NULL,
-# TIMESTAMP NOT NULL (e) gets NOW.
-drop table t1;
-#
-# Test of updatable views with check options. The option can be violated
-# using ON UPDATE updates which is very strange as this offers a loophole
-# in this integrity check.
-#
-SET TIME_ZONE = "+03:00";
-# 1970-01-01 03:16:40
-SET TIMESTAMP = 1000.123456;
-CREATE TABLE t1 ( a INT, b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-INSERT INTO t1 ( a ) VALUES ( 1 );
-SELECT * FROM t1;
-a b
-1 1970-01-01 03:16:40.123456
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE b <= '1970-01-01 03:16:40.123456'
-WITH CHECK OPTION;
-SELECT * FROM v1;
-a b
-1 1970-01-01 03:16:40.123456
-# 1970-01-01 03:33:20
-SET TIMESTAMP = 2000.000234;
-UPDATE v1 SET a = 2;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-SELECT * FROM t1;
-a b
-1 1970-01-01 03:16:40.123456
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT '1973-08-14 09:11:22.089786' ON UPDATE CURRENT_TIMESTAMP(6),
-c INT KEY
-);
-# 1973-08-14 09:11:22 UTC
-SET TIMESTAMP = 114167482.534231;
-INSERT INTO t1 ( c ) VALUES ( 1 );
-CREATE VIEW v1 AS
-SELECT *
-FROM t1
-WHERE a >= '1973-08-14 09:11:22'
-WITH LOCAL CHECK OPTION;
-SELECT * FROM v1;
-a c
-1973-08-14 09:11:22.089786 1
-SET TIMESTAMP = 1.126789;
-INSERT INTO v1 ( c ) VALUES ( 1 ) ON DUPLICATE KEY UPDATE c = 2;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-SELECT * FROM v1;
-a c
-1973-08-14 09:11:22.089786 1
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug 13095459 - MULTI-TABLE UPDATE MODIFIES A ROW TWICE
-#
-CREATE TABLE t1 (
-a INT,
-b INT,
-ts TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
-PRIMARY KEY ( a, ts )
-);
-INSERT INTO t1( a, b, ts ) VALUES ( 1, 0, '2000-09-28 17:44:34' );
-CREATE TABLE t2 ( a INT );
-INSERT INTO t2 VALUES ( 1 );
-UPDATE t1 STRAIGHT_JOIN t2
-SET t1.b = t1.b + 1
-WHERE t1.a = 1 AND t1.ts >= '2000-09-28 00:00:00';
-SELECT b FROM t1;
-b
-1
-DROP TABLE t1, t2;
-#
-# Bug#11745578: 17392: ALTER TABLE ADD COLUMN TIMESTAMP DEFAULT
-# CURRENT_TIMESTAMP INSERTS ZERO
-#
-SET timestamp = 1000;
-CREATE TABLE t1 ( b INT );
-INSERT INTO t1 VALUES (1);
-ALTER TABLE t1 ADD COLUMN a6 DATETIME(6) DEFAULT NOW(6) ON UPDATE NOW(6) FIRST;
-ALTER TABLE t1 ADD COLUMN a5 DATETIME(6) DEFAULT NOW(6) FIRST;
-ALTER TABLE t1 ADD COLUMN a4 DATETIME(6) ON UPDATE NOW(6) FIRST;
-ALTER TABLE t1 ADD COLUMN a3 TIMESTAMP(6) NOT NULL DEFAULT NOW(6) ON UPDATE NOW(6) FIRST;
-ALTER TABLE t1 ADD COLUMN a2 TIMESTAMP(6) NOT NULL DEFAULT NOW(6) FIRST;
-ALTER TABLE t1 ADD COLUMN a1 TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW(6) FIRST;
-ALTER TABLE t1 ADD COLUMN c1 TIMESTAMP(6) NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE NOW(6) AFTER b;
-ALTER TABLE t1 ADD COLUMN c2 TIMESTAMP(6) NOT NULL DEFAULT NOW(6) AFTER c1;
-ALTER TABLE t1 ADD COLUMN c3 TIMESTAMP(6) NOT NULL DEFAULT NOW(6) ON UPDATE NOW(6) AFTER c2;
-ALTER TABLE t1 ADD COLUMN c4 DATETIME(6) ON UPDATE NOW(6) AFTER c3;
-ALTER TABLE t1 ADD COLUMN c5 DATETIME(6) DEFAULT NOW(6) AFTER c4;
-ALTER TABLE t1 ADD COLUMN c6 DATETIME(6) DEFAULT NOW(6) ON UPDATE NOW(6) AFTER c5;
-SELECT * FROM t1;
-a1 0000-00-00 00:00:00.000000
-a2 1970-01-01 03:16:40.000000
-a3 1970-01-01 03:16:40.000000
-a4 NULL
-a5 1970-01-01 03:16:40.000000
-a6 1970-01-01 03:16:40.000000
-b 1
-c1 0000-00-00 00:00:00.000000
-c2 1970-01-01 03:16:40.000000
-c3 1970-01-01 03:16:40.000000
-c4 NULL
-c5 1970-01-01 03:16:40.000000
-c6 1970-01-01 03:16:40.000000
-DROP TABLE t1;
-CREATE TABLE t1 ( a TIMESTAMP(6) NOT NULL DEFAULT NOW(6) ON UPDATE CURRENT_TIMESTAMP(6), b DATETIME(6) DEFAULT NOW(6) );
-INSERT INTO t1 VALUES ();
-SET timestamp = 1000000000;
-ALTER TABLE t1 MODIFY COLUMN a TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP(3);
-ALTER TABLE t1 MODIFY COLUMN b DATETIME(3) DEFAULT CURRENT_TIMESTAMP(3);
-SELECT * FROM t1;
-a b
-1970-01-01 03:16:40.000 1970-01-01 03:16:40.000
-DROP TABLE t1;
-CREATE TABLE t1 (
-a TIMESTAMP(6) NOT NULL DEFAULT '1999-12-01 11:22:33' ON UPDATE CURRENT_TIMESTAMP(6),
-b DATETIME(6) DEFAULT '1999-12-01 11:22:33'
-);
-INSERT INTO t1 VALUES ();
-ALTER TABLE t1 MODIFY COLUMN a TIMESTAMP(6) DEFAULT NOW(6);
-ALTER TABLE t1 MODIFY COLUMN b DATETIME(6) DEFAULT NOW(6);
-INSERT INTO t1 VALUES ();
-SELECT * FROM t1;
-a b
-1999-12-01 11:22:33.000000 1999-12-01 11:22:33.000000
-2001-09-09 04:46:40.000000 2001-09-09 04:46:40.000000
-DROP TABLE t1;
diff --git a/mysql-test/r/function_defaults_notembedded.result b/mysql-test/r/function_defaults_notembedded.result
deleted file mode 100644
index 645133bad1d..00000000000
--- a/mysql-test/r/function_defaults_notembedded.result
+++ /dev/null
@@ -1,185 +0,0 @@
-#
-# Test of function defaults for non-embedded server.
-#
-#
-# Function defaults run 1. No microsecond precision.
-#
-SET TIME_ZONE = "+00:00";
-#
-# Test of INSERT DELAYED ... SET ...
-#
-# 2011-04-19 08:02:40 UTC
-SET TIMESTAMP = 1303200160.123456;
-CREATE TABLE t1 ( a INT, b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-INSERT DELAYED INTO t1 SET a = 1;
-FLUSH TABLE t1;
-SELECT * FROM t1;
-a b
-1 2011-04-19 08:02:40
-SELECT * FROM t1 WHERE b = 0;
-a b
-INSERT DELAYED INTO t1 SET a = 2, b = '1980-01-02 10:20:30.405060';
-FLUSH TABLE t1;
-SELECT * FROM t1;
-a b
-1 2011-04-19 08:02:40
-2 1980-01-02 10:20:30
-DROP TABLE t1;
-#
-# Test of INSERT DELAYED ... VALUES ...
-#
-# 2011-04-19 08:04:01 UTC
-SET TIMESTAMP = 1303200241.234567;
-CREATE TABLE t1 ( a INT, b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-INSERT DELAYED INTO t1 ( a ) VALUES (1);
-FLUSH TABLE t1;
-SELECT * FROM t1;
-a b
-1 2011-04-19 08:04:01
-INSERT DELAYED INTO t1 VALUES (2, '1977-12-19 12:34:56.789123');
-FLUSH TABLE t1;
-SELECT * FROM t1;
-a b
-1 2011-04-19 08:04:01
-2 1977-12-19 12:34:56
-DROP TABLE t1;
-#
-# Test of a delayed insert handler servicing two insert operations
-# with different sets of active defaults.
-#
-CREATE TABLE t1 ( a INT, b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-connect con1, localhost, root,,;
-# 2011-04-19 08:04:01 UTC
-SET TIMESTAMP = 1303200241.345678;
-SET debug_sync = 'before_write_delayed SIGNAL parked WAIT_FOR go';
-INSERT DELAYED INTO t1 ( a ) VALUES (1), (2), (3);
-connection default;
-SET debug_sync = 'now WAIT_FOR parked';
-connect con2, localhost, root,,;
-# 2011-04-19 08:04:01 UTC
-SET TIME_ZONE="+03:00";
-SET TIMESTAMP = 1303200241.456789;
-INSERT DELAYED INTO t1 ( a, b ) VALUES (4, '1977-12-19 12:34:56.789123'), (5, '1977-12-19 12:34:57.891234'), (6, '1977-12-19 12:34:58.912345');
-connection default;
-SET debug_sync = 'now SIGNAL go';
-SELECT * FROM t1;
-a b
-1 2011-04-19 08:04:01
-2 2011-04-19 08:04:01
-3 2011-04-19 08:04:01
-4 1977-12-19 09:34:56
-5 1977-12-19 09:34:57
-6 1977-12-19 09:34:58
-disconnect con1;
-disconnect con2;
-DROP TABLE t1;
-#
-# Test of early activation of function defaults.
-#
-CREATE TABLE t1 ( a INT, b TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-SET TIMESTAMP = 1317235172.987654;
-INSERT DELAYED INTO t1 ( a ) VALUES (1), (2), (3);
-SET TIMESTAMP = 385503754.876543;
-INSERT DELAYED INTO t1 ( a ) VALUES (4), (5), (6);
-FLUSH TABLE t1;
-SELECT * FROM t1;
-a b
-1 2011-09-28 18:39:32
-2 2011-09-28 18:39:32
-3 2011-09-28 18:39:32
-4 1982-03-20 20:22:34
-5 1982-03-20 20:22:34
-6 1982-03-20 20:22:34
-DROP TABLE t1;
-SET debug_sync = 'RESET';
-#
-# Function defaults run 2. Six digits scale on seconds precision.
-#
-SET TIME_ZONE = "+00:00";
-#
-# Test of INSERT DELAYED ... SET ...
-#
-# 2011-04-19 08:02:40 UTC
-SET TIMESTAMP = 1303200160.123456;
-CREATE TABLE t1 ( a INT, b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6));
-INSERT DELAYED INTO t1 SET a = 1;
-FLUSH TABLE t1;
-SELECT * FROM t1;
-a b
-1 2011-04-19 08:02:40.123456
-SELECT * FROM t1 WHERE b = 0;
-a b
-INSERT DELAYED INTO t1 SET a = 2, b = '1980-01-02 10:20:30.405060';
-FLUSH TABLE t1;
-SELECT * FROM t1;
-a b
-1 2011-04-19 08:02:40.123456
-2 1980-01-02 10:20:30.405060
-DROP TABLE t1;
-#
-# Test of INSERT DELAYED ... VALUES ...
-#
-# 2011-04-19 08:04:01 UTC
-SET TIMESTAMP = 1303200241.234567;
-CREATE TABLE t1 ( a INT, b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6));
-INSERT DELAYED INTO t1 ( a ) VALUES (1);
-FLUSH TABLE t1;
-SELECT * FROM t1;
-a b
-1 2011-04-19 08:04:01.234567
-INSERT DELAYED INTO t1 VALUES (2, '1977-12-19 12:34:56.789123');
-FLUSH TABLE t1;
-SELECT * FROM t1;
-a b
-1 2011-04-19 08:04:01.234567
-2 1977-12-19 12:34:56.789123
-DROP TABLE t1;
-#
-# Test of a delayed insert handler servicing two insert operations
-# with different sets of active defaults.
-#
-CREATE TABLE t1 ( a INT, b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6));
-connect con1, localhost, root,,;
-# 2011-04-19 08:04:01 UTC
-SET TIMESTAMP = 1303200241.345678;
-SET debug_sync = 'before_write_delayed SIGNAL parked WAIT_FOR go';
-INSERT DELAYED INTO t1 ( a ) VALUES (1), (2), (3);
-connection default;
-SET debug_sync = 'now WAIT_FOR parked';
-connect con2, localhost, root,,;
-# 2011-04-19 08:04:01 UTC
-SET TIME_ZONE="+03:00";
-SET TIMESTAMP = 1303200241.456789;
-INSERT DELAYED INTO t1 ( a, b ) VALUES (4, '1977-12-19 12:34:56.789123'), (5, '1977-12-19 12:34:57.891234'), (6, '1977-12-19 12:34:58.912345');
-connection default;
-SET debug_sync = 'now SIGNAL go';
-SELECT * FROM t1;
-a b
-1 2011-04-19 08:04:01.345678
-2 2011-04-19 08:04:01.345678
-3 2011-04-19 08:04:01.345678
-4 1977-12-19 09:34:56.789123
-5 1977-12-19 09:34:57.891234
-6 1977-12-19 09:34:58.912345
-disconnect con1;
-disconnect con2;
-DROP TABLE t1;
-#
-# Test of early activation of function defaults.
-#
-CREATE TABLE t1 ( a INT, b TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6));
-SET TIMESTAMP = 1317235172.987654;
-INSERT DELAYED INTO t1 ( a ) VALUES (1), (2), (3);
-SET TIMESTAMP = 385503754.876543;
-INSERT DELAYED INTO t1 ( a ) VALUES (4), (5), (6);
-FLUSH TABLE t1;
-SELECT * FROM t1;
-a b
-1 2011-09-28 18:39:32.987654
-2 2011-09-28 18:39:32.987654
-3 2011-09-28 18:39:32.987654
-4 1982-03-20 20:22:34.876543
-5 1982-03-20 20:22:34.876543
-6 1982-03-20 20:22:34.876543
-DROP TABLE t1;
-SET debug_sync = 'RESET';
diff --git a/mysql-test/r/gcc296.result b/mysql-test/r/gcc296.result
deleted file mode 100644
index 628bbbf3f93..00000000000
--- a/mysql-test/r/gcc296.result
+++ /dev/null
@@ -1,20 +0,0 @@
-drop table if exists t1;
-CREATE TABLE t1 (
-kodoboru varchar(10) default NULL,
-obor tinytext,
-aobor tinytext,
-UNIQUE INDEX kodoboru (kodoboru),
-FULLTEXT KEY obor (obor),
-FULLTEXT KEY aobor (aobor)
-);
-INSERT INTO t1 VALUES ('0101000000','aaa','AAA');
-INSERT INTO t1 VALUES ('0102000000','bbb','BBB');
-INSERT INTO t1 VALUES ('0103000000','ccc','CCC');
-INSERT INTO t1 VALUES ('0104000000','xxx','XXX');
-select * from t1;
-kodoboru obor aobor
-0101000000 aaa AAA
-0102000000 bbb BBB
-0103000000 ccc CCC
-0104000000 xxx XXX
-drop table t1;
diff --git a/mysql-test/r/get_diagnostics.result b/mysql-test/r/get_diagnostics.result
deleted file mode 100644
index 732be7c0283..00000000000
--- a/mysql-test/r/get_diagnostics.result
+++ /dev/null
@@ -1,795 +0,0 @@
-#
-# WL#2111: GET DIAGNOSTICS tests
-#
-#
-# In MariaDB GET is not reserved
-#
-CREATE TABLE t1 (get INT);
-DROP TABLE t1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE get INT DEFAULT 1;
-END|
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-get:
-BEGIN
-SELECT 1;
-END get|
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ':
-BEGIN
-SELECT 1;
-END get' at line 2
-#
-# Test non-reserved keywords: CURRENT, DIAGNOSTICS, NUMBER, RETURNED_SQLSTATE
-#
-CREATE TABLE t1 (current INT, diagnostics INT, number INT, returned_sqlstate INT);
-INSERT INTO t1 (current, diagnostics, number, returned_sqlstate) values (1,2,3,4);
-SELECT current, diagnostics, number, returned_sqlstate FROM t1 WHERE number = 3;
-current diagnostics number returned_sqlstate
-1 2 3 4
-SELECT `current`, `number` FROM t1 WHERE `current` = 1 AND `number` = 3;
-current number
-1 3
-DROP TABLE t1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE current INT DEFAULT 1;
-DECLARE diagnostics INT DEFAULT 2;
-DECLARE number INT DEFAULT 3;
-DECLARE returned_sqlstate INT DEFAULT 4;
-SELECT current, diagnostics, number, returned_sqlstate;
-END|
-CALL p1();
-current diagnostics number returned_sqlstate
-1 2 3 4
-DROP PROCEDURE p1;
-#
-# Test GET DIAGNOSTICS syntax
-#
-DROP PROCEDURE IF EXISTS p1;
-GET;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-GET CURRENT;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-GET DIAGNOSTICS;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-GET CURRENT DIAGNOSTICS;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-
-# Statement information syntax
-
-GET DIAGNOSTICS @var;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-GET DIAGNOSTICS var;
-ERROR 42000: Undeclared variable: var
-CREATE PROCEDURE p1()
-BEGIN
-GET DIAGNOSTICS var;
-END|
-ERROR 42000: Undeclared variable: var
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE var INT;
-GET DIAGNOSTICS var;
-END|
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ';
-END' at line 4
-GET DIAGNOSTICS @var =;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-GET DIAGNOSTICS @var = INVALID;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INVALID' at line 1
-GET DIAGNOSTICS @var = MORE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'MORE' at line 1
-GET DIAGNOSTICS @var = CLASS_ORIGIN;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CLASS_ORIGIN' at line 1
-GET DIAGNOSTICS @var = INVALID,;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INVALID,' at line 1
-GET DIAGNOSTICS @var1 = NUMBER, @var2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-GET DIAGNOSTICS @var1 = NUMBER, @var2 = INVALID;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INVALID' at line 1
-GET DIAGNOSTICS @@var1 = NUMBER;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@var1 = NUMBER' at line 1
-GET DIAGNOSTICS @var1 = NUMBER, @@var2 = NUMBER;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@var2 = NUMBER' at line 1
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE var INT;
-GET DIAGNOSTICS var = INVALID;
-END|
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INVALID;
-END' at line 4
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE var CONDITION FOR SQLSTATE '12345';
-GET DIAGNOSTICS var = NUMBER;
-END|
-ERROR 42000: Undeclared variable: var
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE var INT;
-GET DIAGNOSTICS var = NUMBER, var1 = ROW_COUNT;
-END|
-ERROR 42000: Undeclared variable: var1
-GET DIAGNOSTICS @var = NUMBER;
-GET DIAGNOSTICS @var = ROW_COUNT;
-GET DIAGNOSTICS @var1 = NUMBER, @var2 = ROW_COUNT;
-GET DIAGNOSTICS @var1 = ROW_COUNT, @var2 = NUMBER;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE var INT;
-DECLARE var1 INT;
-DECLARE var2 INT;
-GET DIAGNOSTICS var = NUMBER;
-GET DIAGNOSTICS var = ROW_COUNT;
-GET DIAGNOSTICS var1 = NUMBER, var2 = ROW_COUNT;
-GET DIAGNOSTICS var1 = ROW_COUNT, var2 = NUMBER;
-END|
-DROP PROCEDURE p1;
-
-# Condition information syntax
-
-GET DIAGNOSTICS CONDITION;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-GET DIAGNOSTICS CONDITION a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-GET DIAGNOSTICS CONDITION 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-GET DIAGNOSTICS CONDITION 1 @var;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-GET DIAGNOSTICS CONDITION 1 var;
-ERROR 42000: Undeclared variable: var
-CREATE PROCEDURE p1()
-BEGIN
-GET DIAGNOSTICS CONDITION 1 var;
-END|
-ERROR 42000: Undeclared variable: var
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE var INT;
-GET DIAGNOSTICS CONDITION 1 var;
-END|
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ';
-END' at line 4
-GET DIAGNOSTICS CONDITION 1 @var =;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-GET DIAGNOSTICS CONDITION 1 @var = INVALID;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INVALID' at line 1
-GET DIAGNOSTICS CONDITION 1 @var = NUMBER;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NUMBER' at line 1
-GET DIAGNOSTICS CONDITION 1 @var = INVALID,;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INVALID,' at line 1
-GET DIAGNOSTICS CONDITION 1 @var1 = CLASS_ORIGIN, @var2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-GET DIAGNOSTICS CONDITION 1 @var1 = CLASS_ORIGIN, @var2 = INVALID;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INVALID' at line 1
-GET DIAGNOSTICS CONDITION 1 @@var1 = CLASS_ORIGIN;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@var1 = CLASS_ORIGIN' at line 1
-GET DIAGNOSTICS CONDITION 1 @var1 = CLASS_ORIGIN, @@var2 = CLASS_ORIGIN;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@var2 = CLASS_ORIGIN' at line 1
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE var INT;
-GET DIAGNOSTICS CONDITION 1 var = INVALID;
-END|
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INVALID;
-END' at line 4
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE var CONDITION FOR SQLSTATE '12345';
-GET DIAGNOSTICS CONDITION 1 var = NUMBER;
-END|
-ERROR 42000: Undeclared variable: var
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE var INT;
-GET DIAGNOSTICS CONDITION 1 var = CLASS_ORIGIN, var1 = SUBCLASS_ORIGIN;
-END|
-ERROR 42000: Undeclared variable: var1
-GET DIAGNOSTICS CONDITION 1 @var = CLASS_ORIGIN;
-GET DIAGNOSTICS CONDITION 1 @var = SUBCLASS_ORIGIN;
-GET DIAGNOSTICS CONDITION 1 @var1 = CLASS_ORIGIN, @var2 = SUBCLASS_ORIGIN;
-GET DIAGNOSTICS CONDITION 1 @var1 = SUBCLASS_ORIGIN, @var2 = CLASS_ORIGIN;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE var INT;
-DECLARE var1 INT;
-DECLARE var2 INT;
-GET DIAGNOSTICS CONDITION 1 var = CLASS_ORIGIN;
-GET DIAGNOSTICS CONDITION 1 var = SUBCLASS_ORIGIN;
-GET DIAGNOSTICS CONDITION 1 var1 = CLASS_ORIGIN, var2 = SUBCLASS_ORIGIN;
-GET DIAGNOSTICS CONDITION 1 var1 = SUBCLASS_ORIGIN, var2 = CLASS_ORIGIN;
-END|
-DROP PROCEDURE p1;
-# Condition number expression
-GET DIAGNOSTICS CONDITION -1 @var = CLASS_ORIGIN;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1 @var = CLASS_ORIGIN' at line 1
-GET DIAGNOSTICS CONDITION 1+1 @var = CLASS_ORIGIN;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '+1 @var = CLASS_ORIGIN' at line 1
-GET DIAGNOSTICS CONDITION ? @var = CLASS_ORIGIN;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? @var = CLASS_ORIGIN' at line 1
-GET DIAGNOSTICS CONDITION (1) @var = CLASS_ORIGIN;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(1) @var = CLASS_ORIGIN' at line 1
-GET DIAGNOSTICS CONDITION p1() @var = CLASS_ORIGIN;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '() @var = CLASS_ORIGIN' at line 1
-GET DIAGNOSTICS CONDITION ABS(2) @var = CLASS_ORIGIN;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(2) @var = CLASS_ORIGIN' at line 1
-GET DIAGNOSTICS CONDITION 1.1 @var = CLASS_ORIGIN;
-GET DIAGNOSTICS CONDITION "1" @var = CLASS_ORIGIN;
-SELECT COUNT(max_questions) INTO @var FROM mysql.user;
-GET DIAGNOSTICS CONDITION 9999 @var = CLASS_ORIGIN;
-Warnings:
-Error 1758 Invalid condition number
-GET DIAGNOSTICS CONDITION NULL @var = CLASS_ORIGIN;
-Warnings:
-Error 1758 Invalid condition number
-Error 1758 Invalid condition number
-GET DIAGNOSTICS CONDITION a @var = CLASS_ORIGIN;
-Warnings:
-Error 1758 Invalid condition number
-Error 1758 Invalid condition number
-Error 1054 Unknown column 'a' in 'field list'
-SELECT COUNT(max_questions) INTO @var FROM mysql.user;
-SET @cond = 1;
-GET DIAGNOSTICS CONDITION @cond @var1 = CLASS_ORIGIN;
-Warnings:
-Error 1758 Invalid condition number
-SET @cond = "invalid";
-GET DIAGNOSTICS CONDITION @cond @var1 = CLASS_ORIGIN;
-Warnings:
-Error 1758 Invalid condition number
-Error 1758 Invalid condition number
-SELECT COUNT(max_questions) INTO @var FROM mysql.user;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cond INT DEFAULT 1;
-DECLARE var INT;
-GET DIAGNOSTICS CONDITION cond var = CLASS_ORIGIN;
-END|
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cond TEXT;
-DECLARE var INT;
-GET DIAGNOSTICS CONDITION cond var = CLASS_ORIGIN;
-END|
-CALL p1();
-DROP PROCEDURE p1;
-#
-# Test GET DIAGNOSTICS runtime
-#
-
-# GET DIAGNOSTICS cannot be the object of a PREPARE statement.
-
-PREPARE stmt FROM "GET DIAGNOSTICS CONDITION 1 @var = CLASS_ORIGIN";
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-PREPARE stmt FROM "GET DIAGNOSTICS @var = NUMBER";
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-
-# GET DIAGNOSTICS does not clear the diagnostics area.
-
-SELECT CAST(-19999999999999999999 AS SIGNED);
-CAST(-19999999999999999999 AS SIGNED)
--9223372036854775808
-Warnings:
-Warning 1916 Got overflow when converting '-19999999999999999999' to INT. Value truncated
-GET DIAGNOSTICS @var = NUMBER;
-SHOW WARNINGS;
-Level Code Message
-Warning 1916 Got overflow when converting '-19999999999999999999' to INT. Value truncated
-#
-# If GET DIAGNOSTICS itself causes an error, an error message is appended.
-#
-SELECT CAST(-19999999999999999999 AS SIGNED);
-CAST(-19999999999999999999 AS SIGNED)
--9223372036854775808
-Warnings:
-Warning 1916 Got overflow when converting '-19999999999999999999' to INT. Value truncated
-GET DIAGNOSTICS CONDITION 99999 @var = CLASS_ORIGIN;
-Warnings:
-Warning 1916 Got overflow when converting '-19999999999999999999' to INT. Value truncated
-Error 1758 Invalid condition number
-SHOW WARNINGS;
-Level Code Message
-Warning 1916 Got overflow when converting '-19999999999999999999' to INT. Value truncated
-Error 1758 Invalid condition number
-
-# Statement information runtime
-
-SELECT CAST(-19999999999999999999 AS SIGNED),
-CAST(-19999999999999999999 AS SIGNED);
-CAST(-19999999999999999999 AS SIGNED) CAST(-19999999999999999999 AS SIGNED)
--9223372036854775808 -9223372036854775808
-Warnings:
-Warning 1916 Got overflow when converting '-19999999999999999999' to INT. Value truncated
-Warning 1916 Got overflow when converting '-19999999999999999999' to INT. Value truncated
-GET DIAGNOSTICS @var = NUMBER;
-SELECT @var;
-@var
-2
-SELECT COUNT(max_questions) INTO @var FROM mysql.user;
-GET DIAGNOSTICS @var = NUMBER;
-SELECT @var;
-@var
-0
-SELECT 1;
-1
-1
-GET DIAGNOSTICS @var = ROW_COUNT;
-SELECT @var;
-@var
--1
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-GET DIAGNOSTICS @var = ROW_COUNT;
-SELECT @var;
-@var
-3
-DROP TABLE t1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE number INT;
-DECLARE row_count INT;
-SELECT CAST(-19999999999999999999 AS SIGNED),
-CAST(-19999999999999999999 AS SIGNED);
-GET DIAGNOSTICS number = NUMBER;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-GET DIAGNOSTICS row_count = ROW_COUNT;
-DROP TABLE t1;
-SELECT number, row_count;
-END|
-CALL p1();
-CAST(-19999999999999999999 AS SIGNED) CAST(-19999999999999999999 AS SIGNED)
--9223372036854775808 -9223372036854775808
-number row_count
-2 3
-DROP PROCEDURE p1;
-
-# Condition information runtime
-
-SELECT CAST(-19999999999999999999 AS SIGNED);
-CAST(-19999999999999999999 AS SIGNED)
--9223372036854775808
-Warnings:
-Warning 1916 Got overflow when converting '-19999999999999999999' to INT. Value truncated
-GET DIAGNOSTICS CONDITION 1
-@class_origin = CLASS_ORIGIN,
-@subclass_origin = SUBCLASS_ORIGIN,
-@constraint_catalog = CONSTRAINT_CATALOG,
-@constraint_schema = CONSTRAINT_SCHEMA,
-@constraint_name = CONSTRAINT_NAME,
-@catalog_name = CATALOG_NAME,
-@schema_name = SCHEMA_NAME,
-@table_name = TABLE_NAME,
-@column_name = COLUMN_NAME,
-@cursor_name = CURSOR_NAME,
-@message_text = MESSAGE_TEXT,
-@mysql_errno = MYSQL_ERRNO,
-@returned_sqlstate = RETURNED_SQLSTATE;
-SELECT
-@class_origin,
-@subclass_origin,
-@constraint_catalog,
-@constraint_schema,
-@constraint_name,
-@catalog_name,
-@schema_name,
-@table_name,
-@column_name,
-@cursor_name,
-@message_text,
-@mysql_errno,
-@returned_sqlstate;
-@class_origin
-@subclass_origin
-@constraint_catalog
-@constraint_schema
-@constraint_name
-@catalog_name
-@schema_name
-@table_name
-@column_name
-@cursor_name
-@message_text Got overflow when converting '-19999999999999999999' to INT. Value truncated
-@mysql_errno 1916
-@returned_sqlstate 22003
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE class_origin TEXT DEFAULT "a";
-DECLARE subclass_origin TEXT DEFAULT "a";
-DECLARE constraint_catalog TEXT DEFAULT "a";
-DECLARE constraint_schema TEXT DEFAULT "a";
-DECLARE constraint_name TEXT DEFAULT "a";
-DECLARE catalog_name TEXT DEFAULT "a";
-DECLARE schema_name TEXT DEFAULT "a";
-DECLARE table_name TEXT DEFAULT "a";
-DECLARE column_name TEXT DEFAULT "a";
-DECLARE cursor_name TEXT DEFAULT "a";
-DECLARE message_text TEXT DEFAULT "a";
-DECLARE mysql_errno INT DEFAULT 1;
-DECLARE returned_sqlstate TEXT DEFAULT "a";
-SELECT CAST(-19999999999999999999 AS SIGNED);
-GET DIAGNOSTICS CONDITION 1
-class_origin = CLASS_ORIGIN,
-subclass_origin = SUBCLASS_ORIGIN,
-constraint_catalog = CONSTRAINT_CATALOG,
-constraint_schema = CONSTRAINT_SCHEMA,
-constraint_name = CONSTRAINT_NAME,
-catalog_name = CATALOG_NAME,
-schema_name = SCHEMA_NAME,
-table_name = TABLE_NAME,
-column_name = COLUMN_NAME,
-cursor_name = CURSOR_NAME,
-message_text = MESSAGE_TEXT,
-mysql_errno = MYSQL_ERRNO,
-returned_sqlstate = RETURNED_SQLSTATE;
-SELECT
-class_origin,
-subclass_origin,
-constraint_catalog,
-constraint_schema,
-constraint_name,
-catalog_name,
-schema_name,
-table_name,
-column_name,
-cursor_name,
-message_text,
-mysql_errno,
-returned_sqlstate;
-END|
-CALL p1();
-CAST(-19999999999999999999 AS SIGNED) -9223372036854775808
-class_origin
-subclass_origin
-constraint_catalog
-constraint_schema
-constraint_name
-catalog_name
-schema_name
-table_name
-column_name
-cursor_name
-message_text Got overflow when converting '-19999999999999999999' to INT. Value truncated
-mysql_errno 1916
-returned_sqlstate 22003
-Warnings:
-Level Warning
-Code 1916
-Message Got overflow when converting '-19999999999999999999' to INT. Value truncated
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE errno1 INT;
-DECLARE errno2 INT;
-DECLARE msg1 TEXT;
-DECLARE msg2 TEXT;
-SELECT CAST(-19999999999999999999 AS SIGNED);
-GET DIAGNOSTICS CONDITION 99999 msg1 = MESSAGE_TEXT;
-GET DIAGNOSTICS CONDITION 1 errno1 = MYSQL_ERRNO, msg1 = MESSAGE_TEXT;
-GET DIAGNOSTICS CONDITION 2 errno2 = MYSQL_ERRNO, msg2 = MESSAGE_TEXT;
-SELECT errno1, msg1, errno2, msg2;
-END|
-CALL p1();
-CAST(-19999999999999999999 AS SIGNED) -9223372036854775808
-errno1 1916
-msg1 Got overflow when converting '-19999999999999999999' to INT. Value truncated
-errno2 1758
-msg2 Invalid condition number
-Warnings:
-Level Warning
-Code 1916
-Message Got overflow when converting '-19999999999999999999' to INT. Value truncated
-Level Error
-Code 1758
-Message Invalid condition number
-DROP PROCEDURE p1;
-
-# Interaction with SIGNAL
-
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE errno INT DEFAULT 0;
-DECLARE msg TEXT DEFAULT "foo";
-DECLARE cond CONDITION FOR SQLSTATE "01234";
-DECLARE CONTINUE HANDLER for 1012
-BEGIN
-GET DIAGNOSTICS CONDITION 1 errno = MYSQL_ERRNO, msg = MESSAGE_TEXT;
-END;
-SIGNAL cond SET MESSAGE_TEXT = "Signal message", MYSQL_ERRNO = 1012;
-SELECT errno, msg;
-END|
-CALL p1();
-errno 1012
-msg Signal message
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-SIGNAL SQLSTATE '77777' SET MYSQL_ERRNO = 1000, MESSAGE_TEXT='ÃÂÃÅÄ';
-END|
-CALL p1();
-ERROR 77777: ÃÂÃÅÄ
-GET DIAGNOSTICS CONDITION 1
-@mysql_errno = MYSQL_ERRNO, @message_text = MESSAGE_TEXT,
-@returned_sqlstate = RETURNED_SQLSTATE, @class_origin = CLASS_ORIGIN;
-SELECT @mysql_errno, @message_text, @returned_sqlstate, @class_origin;
-@mysql_errno 1000
-@message_text ÃÂÃÅÄ
-@returned_sqlstate 77777
-@class_origin
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cond CONDITION FOR SQLSTATE '12345';
-SIGNAL cond SET
-CLASS_ORIGIN = 'CLASS_ORIGIN text',
-SUBCLASS_ORIGIN = 'SUBCLASS_ORIGIN text',
-CONSTRAINT_CATALOG = 'CONSTRAINT_CATALOG text',
-CONSTRAINT_SCHEMA = 'CONSTRAINT_SCHEMA text',
-CONSTRAINT_NAME = 'CONSTRAINT_NAME text',
-CATALOG_NAME = 'CATALOG_NAME text',
-SCHEMA_NAME = 'SCHEMA_NAME text',
-TABLE_NAME = 'TABLE_NAME text',
-COLUMN_NAME = 'COLUMN_NAME text',
-CURSOR_NAME = 'CURSOR_NAME text',
-MESSAGE_TEXT = 'MESSAGE_TEXT text',
-MYSQL_ERRNO = 54321;
-END|
-CALL p1();
-ERROR 12345: MESSAGE_TEXT text
-GET DIAGNOSTICS CONDITION 1
-@class_origin = CLASS_ORIGIN,
-@subclass_origin = SUBCLASS_ORIGIN,
-@constraint_catalog = CONSTRAINT_CATALOG,
-@constraint_schema = CONSTRAINT_SCHEMA,
-@constraint_name = CONSTRAINT_NAME,
-@catalog_name = CATALOG_NAME,
-@schema_name = SCHEMA_NAME,
-@table_name = TABLE_NAME,
-@column_name = COLUMN_NAME,
-@cursor_name = CURSOR_NAME,
-@message_text = MESSAGE_TEXT,
-@mysql_errno = MYSQL_ERRNO,
-@returned_sqlstate = RETURNED_SQLSTATE;
-SELECT
-@class_origin,
-@subclass_origin,
-@constraint_catalog,
-@constraint_schema,
-@constraint_name,
-@catalog_name,
-@schema_name,
-@table_name,
-@column_name,
-@cursor_name,
-@message_text,
-@mysql_errno,
-@returned_sqlstate;
-@class_origin CLASS_ORIGIN text
-@subclass_origin SUBCLASS_ORIGIN text
-@constraint_catalog CONSTRAINT_CATALOG text
-@constraint_schema CONSTRAINT_SCHEMA text
-@constraint_name CONSTRAINT_NAME text
-@catalog_name CATALOG_NAME text
-@schema_name SCHEMA_NAME text
-@table_name TABLE_NAME text
-@column_name COLUMN_NAME text
-@cursor_name CURSOR_NAME text
-@message_text MESSAGE_TEXT text
-@mysql_errno 54321
-@returned_sqlstate 12345
-DROP PROCEDURE p1;
-#
-# Demonstration
-#
-
-# The same statement information item can be used multiple times.
-
-SHOW WARNINGS;
-Level Code Message
-Error 54321 MESSAGE_TEXT text
-Note 4094 At line 16 in test.p1
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE var INT;
-GET DIAGNOSTICS var = NUMBER, @var = NUMBER;
-SELECT var, @var;
-END|
-CALL p1();
-var @var
-2 2
-DROP PROCEDURE p1;
-
-# Setting TABLE_NAME is currently not implemented.
-
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE v VARCHAR(64);
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-GET DIAGNOSTICS CONDITION 1 v = TABLE_NAME;
-DROP TABLE no_such_table;
-SELECT v;
-END|
-CALL p1();
-v
-
-DROP PROCEDURE p1;
-
-# Message is truncated to fit into target. No truncation warning.
-
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE v CHAR(1);
-CREATE TABLE IF NOT EXISTS t1 (a INT);
-GET DIAGNOSTICS CONDITION 1 v = MESSAGE_TEXT;
-SELECT v;
-END|
-CREATE TABLE t1 (a INT);
-CALL p1();
-v
-NULL
-Warnings:
-Note 1050 Table 't1' already exists
-Error 1406 Data too long for column 'v' at row 1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-
-# Returns number of rows updated by the UPDATE statements.
-
-CREATE PROCEDURE p1(IN param INT)
-LANGUAGE SQL
-BEGIN
-DECLARE v INT DEFAULT 0;
-DECLARE rcount_each INT;
-DECLARE rcount_total INT DEFAULT 0;
-WHILE v < 5 DO
-UPDATE t1 SET a = a * 1.1 WHERE b = param;
-GET DIAGNOSTICS rcount_each = ROW_COUNT;
-SET rcount_total = rcount_total + rcount_each;
-SET v = v + 1;
-END WHILE;
-SELECT rcount_total;
-END|
-CREATE TABLE t1 (a REAL, b INT);
-INSERT INTO t1 VALUES (1.1, 1);
-CALL p1(1);
-rcount_total
-5
-DROP TABLE t1;
-DROP PROCEDURE p1;
-
-# GET DIAGNOSTICS doesn't clear the diagnostics area.
-
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-BEGIN
-GET CURRENT DIAGNOSTICS CONDITION 1 @x = RETURNED_SQLSTATE;
-SIGNAL SQLSTATE '01002';
-GET CURRENT DIAGNOSTICS CONDITION 1 @y = RETURNED_SQLSTATE;
-END;
-SIGNAL SQLSTATE '01001';
-SELECT @x, @y;
-END|
-CALL p1();
-@x @y
-01001 01002
-Warnings:
-Warning 1642 Unhandled user-defined warning condition
-DROP PROCEDURE p1;
-
-# Using OUT and INOUT parameters as the target variables.
-
-CREATE PROCEDURE p1(OUT number INT, INOUT message TEXT)
-BEGIN
-DECLARE warn CONDITION FOR SQLSTATE "01234";
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-BEGIN
-GET DIAGNOSTICS number = NUMBER;
-GET DIAGNOSTICS CONDITION 1 message = MESSAGE_TEXT;
-END;
-SELECT message;
-SIGNAL warn SET MESSAGE_TEXT = "inout parameter";
-END|
-SET @var1 = 0;
-SET @var2 = "message text";
-CALL p1(@var1, @var2);
-message
-message text
-SELECT @var1, @var2;
-@var1 @var2
-1 inout parameter
-DROP PROCEDURE p1;
-
-# Using an IN parameter as the target variable.
-
-CREATE PROCEDURE p1(IN number INT)
-BEGIN
-SELECT number;
-GET DIAGNOSTICS number = NUMBER;
-SELECT number;
-END|
-SET @var1 = 9999;
-CALL p1(@var1);
-number
-9999
-number
-0
-SELECT @var1;
-@var1
-9999
-DROP PROCEDURE p1;
-
-# Using GET DIAGNOSTICS in a stored function.
-
-CREATE FUNCTION f1() RETURNS TEXT
-BEGIN
-DECLARE message TEXT;
-DECLARE warn CONDITION FOR SQLSTATE "01234";
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-BEGIN
-GET DIAGNOSTICS CONDITION 1 message = MESSAGE_TEXT;
-END;
-SIGNAL warn SET MESSAGE_TEXT = "message text";
-return message;
-END|
-SELECT f1();
-f1()
-message text
-DROP FUNCTION f1;
-
-# Using GET DIAGNOSTICS in a trigger.
-
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE var INT DEFAULT row_count();
-GET DIAGNOSTICS @var1 = ROW_COUNT;
-SET @var2 = var;
-END|
-SET @var1 = 9999, @var2 = 9999;
-INSERT INTO t1 VALUES (1), (2);
-SELECT @var1, @var2;
-@var1 @var2
-0 0
-DROP TRIGGER trg1;
-DROP TABLE t1;
-
-# GET DIAGNOSTICS does not reset ROW_COUNT
-
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1);
-GET DIAGNOSTICS @var1 = ROW_COUNT;
-GET DIAGNOSTICS @var2 = ROW_COUNT;
-SELECT @var1, @var2;
-@var1 @var2
-1 1
-DROP TABLE t1;
-
-# Items are UTF8 (utf8_general_ci default collation)
-
-SELECT CAST(-19999999999999999999 AS SIGNED);
-CAST(-19999999999999999999 AS SIGNED)
--9223372036854775808
-Warnings:
-Warning 1916 Got overflow when converting '-19999999999999999999' to INT. Value truncated
-GET DIAGNOSTICS CONDITION 1 @var1 = MESSAGE_TEXT, @var2 = CLASS_ORIGIN;
-SELECT CHARSET(@var1), COLLATION(@var1), COERCIBILITY(@var1);
-CHARSET(@var1) COLLATION(@var1) COERCIBILITY(@var1)
-utf8 utf8_general_ci 2
-SELECT CHARSET(@var2), COLLATION(@var2), COERCIBILITY(@var2);
-CHARSET(@var2) COLLATION(@var2) COERCIBILITY(@var2)
-utf8 utf8_general_ci 2
-#
-# Command statistics
-#
-FLUSH STATUS;
-SHOW STATUS LIKE 'Com%get_diagnostics';
-Variable_name Value
-Com_get_diagnostics 0
-GET DIAGNOSTICS @var1 = NUMBER;
-SHOW STATUS LIKE 'Com%get_diagnostics';
-Variable_name Value
-Com_get_diagnostics 1
diff --git a/mysql-test/r/gis-alter_table_online.result b/mysql-test/r/gis-alter_table_online.result
deleted file mode 100644
index 80e40416c1e..00000000000
--- a/mysql-test/r/gis-alter_table_online.result
+++ /dev/null
@@ -1,51 +0,0 @@
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8948 ALTER ... INPLACE does work for BINARY, BLOB
-#
-CREATE TABLE t1 (a TINYBLOB);
-ALTER TABLE t1 MODIFY a GEOMETRY, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a MEDIUMBLOB);
-ALTER TABLE t1 MODIFY a GEOMETRY, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-ALTER TABLE t1 MODIFY a GEOMETRY, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a LONGBLOB);
-ALTER TABLE t1 MODIFY a GEOMETRY, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY);
-ALTER TABLE t1 MODIFY a TINYBLOB, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY);
-ALTER TABLE t1 MODIFY a MEDIUMBLOB, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY);
-ALTER TABLE t1 MODIFY a BLOB, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY);
-ALTER TABLE t1 MODIFY a LONGBLOB, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY);
-ALTER TABLE t1 MODIFY a POLYGON, ALGORITHM=INPLACE;
-ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
-DROP TABLE t1;
-CREATE TABLE t1 (a POLYGON);
-ALTER TABLE t1 MODIFY a GEOMETRY, ALGORITHM=INPLACE;
-DROP TABLE t1;
-CREATE TABLE t1 (a POLYGON);
-ALTER TABLE t1 MODIFY a POLYGON, ALGORITHM=INPLACE;
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
diff --git a/mysql-test/r/gis-debug.result b/mysql-test/r/gis-debug.result
deleted file mode 100644
index be4145f2236..00000000000
--- a/mysql-test/r/gis-debug.result
+++ /dev/null
@@ -1,407 +0,0 @@
-SET @tmp=ST_GIS_DEBUG(1);
-DROP TABLE IF EXISTS p1;
-CREATE PROCEDURE p1(dist DOUBLE, geom TEXT)
-BEGIN
-DECLARE g GEOMETRY;
-SET g=GeomFromText(geom);
-SELECT geom AS `-----`;
-SELECT dist, GeometryType(@buf:=ST_Buffer(g, dist)) AS `buffer`, ROUND(ST_AREA(@buf),2) AS buf_area;
-END|
-#
-# Testing ST_BUFFER with positive distance
-#
------
-POINT(0 0))
-dist buffer buf_area
-1 POLYGON 3.14
------
-LineString(0 1, 1 1))
-dist buffer buf_area
-1 POLYGON 5.14
------
-LineString(9 9,8 1,1 5,0 0)
-dist buffer buf_area
-1 POLYGON 44.63
------
-Polygon((2 2,2 8,8 8,8 2,2 2))
-dist buffer buf_area
-1 POLYGON 63.14
------
-Polygon((0 0,0 8,8 8,8 0,0 0),(2 2,6 2,6 6,2 6,2 2))
-dist buffer buf_area
-1 POLYGON 95.14
------
-Polygon((0 0, 0 8, 8 8, 8 10, -10 10, -10 0, 0 0))
-dist buffer buf_area
-1 POLYGON 174.93
------
-MultiPoint(9 9,8 1,1 5)
-dist buffer buf_area
-1 MULTIPOLYGON 9.42
------
-MultiLineString((0 0,2 2))
-dist buffer buf_area
-1 POLYGON 8.80
------
-MultiLineString((0 0,2 2,0 4))
-dist buffer buf_area
-1 POLYGON 14.24
------
-MultiLineString((0 0,2 2),(0 2,2 0))
-dist buffer buf_area
-1 POLYGON 13.59
------
-MultiLineString((2 2,2 8,-2 8),(-6 -6, 6 6),(10 10, 14 14))
-dist buffer buf_area
-1 MULTIPOLYGON 70.06
------
-MultiPolygon(((2 2,2 8,8 8,8 2,2 2)), ((9 9,8 1,1 5,9 9)))
-dist buffer buf_area
-1 POLYGON 73.18
------
-MultiPolygon(((2 2,2 8,8 8,8 2,2 2), (4 4,4 6,6 6,6 4,4 4)),((9 9,8 1,1 5,9 9)))
-dist buffer buf_area
-1 POLYGON 73.18
------
-GeometryCollection(Point(0 0))
-dist buffer buf_area
-1 POLYGON 3.14
------
-GeometryCollection(LineString(0 0, 2 2)))
-dist buffer buf_area
-1 POLYGON 8.80
------
-GeometryCollection(Polygon((2 2,2 8,8 8,8 2,2 2))))
-dist buffer buf_area
-1 POLYGON 63.14
------
-GeometryCollection(MultiPoint(9 9,8 1,1 5))
-dist buffer buf_area
-1 MULTIPOLYGON 9.42
------
-GeometryCollection(MultiLineString((0 0,0 1),(3 0,3 1)))
-dist buffer buf_area
-1 MULTIPOLYGON 10.28
------
-GeometryCollection(MultiPolygon(((0 0, 3 0, 3 3, 0 3, 0 0)),((6 6,6 9,9 9,9 6,6 6))))
-dist buffer buf_area
-1 MULTIPOLYGON 48.28
------
-GeometryCollection(Point(9 9),LineString(1 5,0 0),Polygon((2 2,2 8,8 8,8 2,2 2)))
-dist buffer buf_area
-1 POLYGON 75.92
-#
-# Testing ST_BUFFER with zero distance
-#
------
-POINT(0 0))
-dist buffer buf_area
-0 POINT 0.00
------
-LineString(0 1, 1 1))
-dist buffer buf_area
-0 LINESTRING 0.00
------
-LineString(9 9,8 1,1 5,0 0)
-dist buffer buf_area
-0 LINESTRING 0.00
------
-Polygon((2 2,2 8,8 8,8 2,2 2))
-dist buffer buf_area
-0 POLYGON 36.00
------
-Polygon((0 0,0 8,8 8,8 0,0 0),(2 2,6 2,6 6,2 6,2 2))
-dist buffer buf_area
-0 POLYGON 48.00
------
-Polygon((0 0, 0 8, 8 8, 8 10, -10 10, -10 0, 0 0))
-dist buffer buf_area
-0 POLYGON 116.00
------
-MultiPoint(9 9,8 1,1 5)
-dist buffer buf_area
-0 MULTIPOINT NULL
------
-MultiLineString((0 0,2 2))
-dist buffer buf_area
-0 MULTILINESTRING NULL
------
-MultiLineString((0 0,2 2,0 4))
-dist buffer buf_area
-0 MULTILINESTRING NULL
------
-MultiLineString((0 0,2 2),(0 2,2 0))
-dist buffer buf_area
-0 MULTILINESTRING NULL
------
-MultiLineString((2 2,2 8,-2 8),(-6 -6, 6 6),(10 10, 14 14))
-dist buffer buf_area
-0 MULTILINESTRING NULL
------
-MultiPolygon(((2 2,2 8,8 8,8 2,2 2)), ((9 9,8 1,1 5,9 9)))
-dist buffer buf_area
-0 MULTIPOLYGON 66.00
------
-MultiPolygon(((2 2,2 8,8 8,8 2,2 2), (4 4,4 6,6 6,6 4,4 4)),((9 9,8 1,1 5,9 9)))
-dist buffer buf_area
-0 MULTIPOLYGON 62.00
------
-GeometryCollection(Point(0 0))
-dist buffer buf_area
-0 GEOMETRYCOLLECTION 0.00
------
-GeometryCollection(LineString(0 0, 2 2)))
-dist buffer buf_area
-0 GEOMETRYCOLLECTION 0.00
------
-GeometryCollection(Polygon((2 2,2 8,8 8,8 2,2 2))))
-dist buffer buf_area
-0 GEOMETRYCOLLECTION 36.00
------
-GeometryCollection(MultiPoint(9 9,8 1,1 5))
-dist buffer buf_area
-0 GEOMETRYCOLLECTION NULL
------
-GeometryCollection(MultiLineString((0 0,0 1),(3 0,3 1)))
-dist buffer buf_area
-0 GEOMETRYCOLLECTION NULL
------
-GeometryCollection(MultiPolygon(((0 0, 3 0, 3 3, 0 3, 0 0)),((6 6,6 9,9 9,9 6,6 6))))
-dist buffer buf_area
-0 GEOMETRYCOLLECTION 18.00
------
-GeometryCollection(Point(9 9),LineString(1 5,0 0),Polygon((2 2,2 8,8 8,8 2,2 2)))
-dist buffer buf_area
-0 GEOMETRYCOLLECTION 36.00
-#
-# Testing ST_BUFFER with negative distance
-#
------
-POINT(0 0))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-LineString(0 1, 1 1))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-LineString(9 9,8 1,1 5,0 0)
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-Polygon((2 2,2 8,8 8,8 2,2 2))
-dist buffer buf_area
--1 POLYGON 16.00
------
-MultiPoint(9 9,8 1,1 5)
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-MultiLineString((0 0,2 2))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-MultiLineString((0 0,2 2,0 4))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-MultiLineString((0 0,2 2),(0 2,2 0))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-MultiLineString((2 2,2 8,-2 8),(-6 -6, 6 6),(10 10, 14 14))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-GeometryCollection(Point(0 0))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-GeometryCollection(LineString(0 0, 2 2)))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-GeometryCollection(Polygon((2 2,2 8,8 8,8 2,2 2))))
-dist buffer buf_area
--1 POLYGON 16.00
------
-GeometryCollection(MultiPoint(9 9,8 1,1 5))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-GeometryCollection(MultiLineString((0 0,0 1),(3 0,3 1)))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-GeometryCollection(Point(9 9),LineString(1 5,0 0),Polygon((2 2,2 8,8 8,8 2,2 2)))
-dist buffer buf_area
--1 POLYGON 16.00
-SELECT ST_CONTAINS(
-GeomFromText('MULTIPOLYGON(((0 0, 0 5, 5 5, 5 0, 0 0)),((6 6, 6 11, 11 11, 11 6, 6 6)))'),
-GeomFromText('POINT(5 10)'));
-ST_CONTAINS(
-GeomFromText('MULTIPOLYGON(((0 0, 0 5, 5 5, 5 0, 0 0)),((6 6, 6 11, 11 11, 11 6, 6 6)))'),
-GeomFromText('POINT(5 10)'))
-0
-SELECT AsText(ST_UNION(
-GeomFromText('MULTIPOLYGON(((0 0, 0 5, 5 5, 5 0, 0 0)),((6 6, 6 11, 11 11, 11 6, 6 6)))'),
-GeomFromText('POINT(5 10)')));
-AsText(ST_UNION(
-GeomFromText('MULTIPOLYGON(((0 0, 0 5, 5 5, 5 0, 0 0)),((6 6, 6 11, 11 11, 11 6, 6 6)))'),
-GeomFromText('POINT(5 10)')))
-GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)),POLYGON((6 6,6 11,11 11,11 6,6 6)),POINT(5 10))
-DROP PROCEDURE p1;
-#
-# Bug #13833019 ASSERTION `T1->RESULT_RANGE' FAILED IN GCALC_OPERATION_REDUCER::END_COUPLE
-#
-SELECT GeometryType(ST_BUFFER(MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((0 0,9 4,3 3,0 0)),((2 2,2 2,8 8,2 3,2 2)))'), 3));
-GeometryType(ST_BUFFER(MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((0 0,9 4,3 3,0 0)),((2 2,2 2,8 8,2 3,2 2)))'), 3))
-POLYGON
-#
-# Bug #13832749 HANDLE_FATAL_SIGNAL IN GCALC_FUNCTION::COUNT_INTERNAL
-#
-SELECT GeometryType(ST_BUFFER(MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((3 5,2 5,2 4,3 4,3 5)),((2 2,2 8,8 8,8 2,2 2), (4 4,4 6,6 6,6 4,4 4)), ((9 9,8 1,1 5,9 9)))'),1));
-GeometryType(ST_BUFFER(MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((3 5,2 5,2 4,3 4,3 5)),((2 2,2 8,8 8,8 2,2 2), (4 4,4 6,6 6,6 4,4 4)), ((9 9,8 1,1 5,9 9)))'),1))
-POLYGON
-#
-# Bug#13358363 - ASSERTION: N > 0 && N < SINUSES_CALCULATED*2+1 | GET_N_SINCOS/ADD_EDGE_BUFFER
-#
-DO ST_BUFFER(ST_GEOMCOLLFROMTEXT('linestring(1 1,2 2)'),'');
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT ST_WITHIN(
-LINESTRINGFROMTEXT(' LINESTRING(3 8,9 2,3 8,3 3,7 6,4 7,4 7,8 1) '),
-ST_BUFFER(MULTIPOLYGONFROMTEXT(' MULTIPOLYGON(((3 5,2 5,2 4,3 4,3 5)),((2 2,2 8,8 8,8 2,2 2),(4 4,4 6,6 6,6 4,4 4)),((0 5,3 5,3 2,1 2,1 1,3 1,3 0,0 0,0 3,2 3,2 4,0 4,0 5))) '),
-ST_NUMINTERIORRINGS(POLYGONFROMTEXT('POLYGON((3 5,2 4,2 5,3 5)) '))));
-ST_WITHIN(
-LINESTRINGFROMTEXT(' LINESTRING(3 8,9 2,3 8,3 3,7 6,4 7,4 7,8 1) '),
-ST_BUFFER(MULTIPOLYGONFROMTEXT(' MULTIPOLYGON(((3 5,2 5,2 4,3 4,3 5)),((2 2,2 8,8 8,8 2,2 2),(4 4,4 6,6 6,6 4,4 4)),((0 5,3 5,3 2,1 2,1 1,3 1,3 0,0 0,0 3,2 3,2 4,0 4,0 5))) ')
-0
-SELECT ST_DIMENSION(ST_BUFFER(POLYGONFROMTEXT(' POLYGON((3 5,2 5,2 4,3 4,3 5)) '),
-ST_NUMINTERIORRINGS(POLYGONFROMTEXT(' POLYGON((0 0,9 3,4 2,0 0))'))));
-ST_DIMENSION(ST_BUFFER(POLYGONFROMTEXT(' POLYGON((3 5,2 5,2 4,3 4,3 5)) '),
-ST_NUMINTERIORRINGS(POLYGONFROMTEXT(' POLYGON((0 0,9 3,4 2,0 0))'))))
-2
-SELECT ST_NUMINTERIORRINGS(
-ST_ENVELOPE(ST_BUFFER(MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((3 5,2 5,2 4,3 4,3 5))) '),
-SRID(MULTILINESTRINGFROMTEXT('MULTILINESTRING((2 2,4 2,1 2,2 4,2 2)) ')))));
-ST_NUMINTERIORRINGS(
-ST_ENVELOPE(ST_BUFFER(MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((3 5,2 5,2 4,3 4,3 5))) '),
-SRID(MULTILINESTRINGFROMTEXT('MULTILINESTRING((2 2,4 2,1 2,2 4,2 2)) ')))))
-0
-SELECT ASTEXT(ST_BUFFER(POLYGONFROMTEXT(' POLYGON((9 9,5 2,4 5,9 9))'),
-SRID(GEOMETRYFROMTEXT(' MULTIPOINT(8 4,5 0,7 8,6 9,3 4,7 3,5 5) '))));
-ASTEXT(ST_BUFFER(POLYGONFROMTEXT(' POLYGON((9 9,5 2,4 5,9 9))'),
-SRID(GEOMETRYFROMTEXT(' MULTIPOINT(8 4,5 0,7 8,6 9,3 4,7 3,5 5) '))))
-POLYGON((9 9,5 2,4 5,9 9))
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10134 Add full support for DEFAULT
-#
-CREATE TABLE t1 (a INT DEFAULT ST_GIS_DEBUG(1));
-ERROR HY000: Function or expression 'st_gis_debug()' cannot be used in the DEFAULT clause of `a`
-#
-# End of 10.2 tests
-#
-#
-# Start of 10.3 tests
-#
-#
-# Comparison data type aggregation for pluggable data types
-#
-SET SESSION debug_dbug="+d,Item_func_in";
-SET SESSION debug_dbug="+d,Predicant_to_list_comparator";
-CREATE TABLE t1 (a POINT);
-INSERT INTO t1 VALUES (POINT(1,1)),(POINT(1,2)),(POINT(1,3));
-SELECT COUNT(*) FROM t1 WHERE a IN (POINT(1,1),POINT(10,20),POINT(10,30));
-COUNT(*)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (geometry)
-Note 1105 DBUG: [1] arg=2 handler=0 (geometry)
-Note 1105 DBUG: [2] arg=3 handler=0 (geometry)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-SELECT COUNT(*) FROM t1 WHERE a IN (POINT(1,1),POINT(10,20),POINT(10,30),'test');
-COUNT(*)
-1
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (geometry)
-Note 1105 DBUG: [1] arg=2 handler=0 (geometry)
-Note 1105 DBUG: [2] arg=3 handler=0 (geometry)
-Note 1105 DBUG: [3] arg=4 handler=3 (longblob)
-Note 1105 DBUG: types_compatible=no bisect=no
-SELECT COUNT(*) FROM t1 WHERE a IN ('test','test1');
-COUNT(*)
-0
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-CREATE TABLE t1 (a TEXT);
-INSERT INTO t1 VALUES ('test'),('test1'),('test2');
-SELECT * FROM t1 WHERE a IN ('test',POINT(1,1));
-a
-test
-Warnings:
-Note 1105 DBUG: [0] arg=1 handler=0 (longblob)
-Note 1105 DBUG: [1] arg=2 handler=0 (longblob)
-Note 1105 DBUG: types_compatible=yes bisect=yes
-DROP TABLE t1;
-SET SESSION debug_dbug="-d,Predicant_to_list_comparator";
-SET SESSION debug_dbug="-d,Item_func_in";
-#
-# MDEV-12238 Add Type_handler::Item_func_{plus|minus|mul|div|mod}_fix_length_and_dec()
-#
-SET debug_dbug='+d,num_op';
-CREATE TABLE t1 AS SELECT
-POINT(0,0)+POINT(0,0),
-POINT(0,0)-POINT(0,0),
-POINT(0,0)*POINT(0,0),
-POINT(0,0)/POINT(0,0),
-POINT(0,0) MOD POINT(0,0) LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `POINT(0,0)+POINT(0,0)` geometry DEFAULT NULL,
- `POINT(0,0)-POINT(0,0)` geometry DEFAULT NULL,
- `POINT(0,0)*POINT(0,0)` geometry DEFAULT NULL,
- `POINT(0,0)/POINT(0,0)` geometry DEFAULT NULL,
- `POINT(0,0) MOD POINT(0,0)` geometry DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
-POINT(0,0)+'0',
-POINT(0,0)-'0',
-POINT(0,0)*'0',
-POINT(0,0)/'0',
-POINT(0,0) MOD '0' LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `POINT(0,0)+'0'` tinytext DEFAULT NULL,
- `POINT(0,0)-'0'` tinytext DEFAULT NULL,
- `POINT(0,0)*'0'` tinytext DEFAULT NULL,
- `POINT(0,0)/'0'` tinytext DEFAULT NULL,
- `POINT(0,0) MOD '0'` tinytext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
-'0'+POINT(0,0),
-'0'*POINT(0,0) LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `'0'+POINT(0,0)` tinytext DEFAULT NULL,
- `'0'*POINT(0,0)` tinytext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT '0'-POINT(0,0) LIMIT 0;
-ERROR HY000: Illegal parameter data types varchar and geometry for operation '-'
-CREATE TABLE t1 AS SELECT '0'/POINT(0,0) LIMIT 0;
-ERROR HY000: Illegal parameter data types varchar and geometry for operation '/'
-CREATE TABLE t1 AS SELECT '0' MOD POINT(0,0) LIMIT 0;
-ERROR HY000: Illegal parameter data types varchar and geometry for operation 'MOD'
-SET debug_dbug='-d,num_op';
diff --git a/mysql-test/r/gis-json.result b/mysql-test/r/gis-json.result
deleted file mode 100644
index 1d6e2193fc9..00000000000
--- a/mysql-test/r/gis-json.result
+++ /dev/null
@@ -1,109 +0,0 @@
-select st_asgeojson(geomfromtext('POINT(1 1)'));
-st_asgeojson(geomfromtext('POINT(1 1)'))
-{"type": "Point", "coordinates": [1, 1]}
-select st_asgeojson(geomfromtext('LINESTRING(10 10,20 10,20 20,10 20,10 10)'));
-st_asgeojson(geomfromtext('LINESTRING(10 10,20 10,20 20,10 20,10 10)'))
-{"type": "LineString", "coordinates": [[10, 10], [20, 10], [20, 20], [10, 20], [10, 10]]}
-select st_asgeojson(geomfromtext('POLYGON((10 10,20 10,20 20,10 20,10 10))'));
-st_asgeojson(geomfromtext('POLYGON((10 10,20 10,20 20,10 20,10 10))'))
-{"type": "Polygon", "coordinates": [[[10, 10], [20, 10], [20, 20], [10, 20], [10, 10]]]}
-select st_asgeojson(geomfromtext('MULTIPOLYGON(((10 10,20 10,20 20,10 20,10 10)))'));
-st_asgeojson(geomfromtext('MULTIPOLYGON(((10 10,20 10,20 20,10 20,10 10)))'))
-{"type": "MultiPolygon", "coordinates": [[[[10, 10], [20, 10], [20, 20], [10, 20], [10, 10]]]]}
-select st_asgeojson(geomfromtext('multilinestring((10 10,20 10,20 20,10 20,10 10))'));
-st_asgeojson(geomfromtext('multilinestring((10 10,20 10,20 20,10 20,10 10))'))
-{"type": "MultiLineString", "coordinates": [[[10, 10], [20, 10], [20, 20], [10, 20], [10, 10]]]}
-select st_asgeojson(geomfromtext('multipoint(10 10,20 10,20 20,10 20,10 10)'));
-st_asgeojson(geomfromtext('multipoint(10 10,20 10,20 20,10 20,10 10)'))
-{"type": "MultiPoint", "coordinates": [[10, 10], [20, 10], [20, 20], [10, 20], [10, 10]]}
-select st_asgeojson(st_geomfromtext('GEOMETRYCOLLECTION(POINT(100 0),LINESTRING(101 0,102 1))'));
-st_asgeojson(st_geomfromtext('GEOMETRYCOLLECTION(POINT(100 0),LINESTRING(101 0,102 1))'))
-{"type": "GeometryCollection", "geometries": [{"type": "Point", "coordinates": [100, 0]}, {"type": "LineString", "coordinates": [[101, 0], [102, 1]]}]}
-SELECT st_astext(st_geomfromgeojson('{"type":"point","coordinates":[1,2]}'));
-st_astext(st_geomfromgeojson('{"type":"point","coordinates":[1,2]}'))
-POINT(1 2)
-SELECT st_astext(st_geomfromgeojson('{"type":"LineString","coordinates":[[1,2],[4,5],[7,8]]}'));
-st_astext(st_geomfromgeojson('{"type":"LineString","coordinates":[[1,2],[4,5],[7,8]]}'))
-LINESTRING(1 2,4 5,7 8)
-SELECT st_astext(st_geomfromgeojson('{"type": "polygon", "coordinates": [[[10, 10], [20, 10], [20, 20], [10, 20], [10, 10]]]}'));
-st_astext(st_geomfromgeojson('{"type": "polygon", "coordinates": [[[10, 10], [20, 10], [20, 20], [10, 20], [10, 10]]]}'))
-POLYGON((10 10,20 10,20 20,10 20,10 10))
-SELECT st_astext(st_geomfromgeojson('{"type":"multipoint","coordinates":[[1,2],[4,5],[7,8]]}'));
-st_astext(st_geomfromgeojson('{"type":"multipoint","coordinates":[[1,2],[4,5],[7,8]]}'))
-MULTIPOINT(1 2,4 5,7 8)
-SELECT st_astext(st_geomfromgeojson('{"type": "multilinestring", "coordinates": [[[10, 10], [20, 10], [20, 20], [10, 20], [10, 10]]]}'));
-st_astext(st_geomfromgeojson('{"type": "multilinestring", "coordinates": [[[10, 10], [20, 10], [20, 20], [10, 20], [10, 10]]]}'))
-MULTILINESTRING((10 10,20 10,20 20,10 20,10 10))
-SELECT st_astext(st_geomfromgeojson('{"type": "multipolygon", "coordinates": [[[[10, 10], [20, 10], [20, 20], [10, 20], [10, 10]]]]}'));
-st_astext(st_geomfromgeojson('{"type": "multipolygon", "coordinates": [[[[10, 10], [20, 10], [20, 20], [10, 20], [10, 10]]]]}'))
-MULTIPOLYGON(((10 10,20 10,20 20,10 20,10 10)))
-SELECT st_astext(st_geomfromgeojson('{"type": "GeometryCollection", "geometries": [{"type": "Point","coordinates": [100.0, 0.0]}, {"type": "LineString","coordinates": [[101.0, 0.0],[102.0, 1.0]]}]}'));
-st_astext(st_geomfromgeojson('{"type": "GeometryCollection", "geometries": [{"type": "Point","coordinates": [100.0, 0.0]}, {"type": "LineString","coordinates": [[101.0, 0.0],[102.0, 1.0]]}]}'))
-GEOMETRYCOLLECTION(POINT(100 0),LINESTRING(101 0,102 1))
-SELECT st_astext(st_geomfromgeojson('{"type":"point"}'));
-st_astext(st_geomfromgeojson('{"type":"point"}'))
-NULL
-Warnings:
-Warning 4048 Incorrect GeoJSON format specified for st_geomfromgeojson function.
-SELECT st_astext(st_geomfromgeojson('{"type":"point"'));
-st_astext(st_geomfromgeojson('{"type":"point"'))
-NULL
-Warnings:
-Warning 4037 Unexpected end of JSON text in argument 1 to function 'st_geomfromgeojson'
-SELECT st_astext(st_geomfromgeojson('{"type""point"}'));
-st_astext(st_geomfromgeojson('{"type""point"}'))
-NULL
-Warnings:
-Warning 4038 Syntax error in JSON text in argument 1 to function 'st_geomfromgeojson' at position 7
-SELECT st_astext(st_geomfromgeojson('{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [102.0, 0.5] } }'));
-st_astext(st_geomfromgeojson('{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [102.0, 0.5] } }'))
-POINT(102 0.5)
-SELECT st_astext(st_geomfromgeojson('{ "type": "FeatureCollection", "features": [{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [102.0, 0.5] }, "properties": { "prop0": "value0" } }]}'));
-st_astext(st_geomfromgeojson('{ "type": "FeatureCollection", "features": [{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [102.0, 0.5] }, "properties": { "prop0": "value0" } }]}'))
-GEOMETRYCOLLECTION(POINT(102 0.5))
-SELECT ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',5));
-ERROR HY000: Incorrect option value: '5' for function ST_GeometryFromJSON
-SELECT ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',1));
-ERROR 22023: Invalid GIS data provided to function ST_GeometryFromJSON.
-SELECT ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',2));
-ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',2))
-POINT(5.3 15)
-SELECT ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',3));
-ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',3))
-POINT(5.3 15)
-SELECT ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',4));
-ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',4))
-POINT(5.3 15)
-SELECT ST_AsGeoJSON(ST_GeomFromText('POINT(5.363 7.266)'),2);
-ST_AsGeoJSON(ST_GeomFromText('POINT(5.363 7.266)'),2)
-{"type": "Point", "coordinates": [5.36, 7.27]}
-SELECT ST_AsGeoJSON(ST_GeomFromText('POINT(5.363 7.266)'),1);
-ST_AsGeoJSON(ST_GeomFromText('POINT(5.363 7.266)'),1)
-{"type": "Point", "coordinates": [5.4, 7.3]}
-SELECT ST_AsGeoJSON(ST_GeomFromText('POINT(5.363 7.266)'),10);
-ST_AsGeoJSON(ST_GeomFromText('POINT(5.363 7.266)'),10)
-{"type": "Point", "coordinates": [5.363, 7.266]}
-SELECT ST_AsGeoJSON(ST_GeomFromText("POINT(10 11)"), 100, 1);
-ST_AsGeoJSON(ST_GeomFromText("POINT(10 11)"), 100, 1)
-{"bbox": [10, 11, 10, 11], "type": "Point", "coordinates": [10, 11]}
-SELECT ST_AsGeoJSON(ST_GeomFromText("POINT(10 11)"), 100, 5);
-ST_AsGeoJSON(ST_GeomFromText("POINT(10 11)"), 100, 5)
-{"bbox": [10, 11, 10, 11], "type": "Point", "coordinates": [10, 11]}
-SELECT st_astext(st_geomfromgeojson('{"type": "MultiLineString","coordinates": []}')) as a;
-a
-NULL
-Warnings:
-Warning 4076 Incorrect GeoJSON format - empty 'coordinates' array.
-SELECT st_astext(st_geomfromgeojson('{"type": "Polygon","coordinates": []}')) as a;
-a
-NULL
-Warnings:
-Warning 4076 Incorrect GeoJSON format - empty 'coordinates' array.
-SELECT st_astext(st_geomfromgeojson('{"type": "MultiPolygon","coordinates": []}')) as a;
-a
-NULL
-Warnings:
-Warning 4076 Incorrect GeoJSON format - empty 'coordinates' array.
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/gis-loaddata.result b/mysql-test/r/gis-loaddata.result
deleted file mode 100644
index 1d25c0a496d..00000000000
--- a/mysql-test/r/gis-loaddata.result
+++ /dev/null
@@ -1,25 +0,0 @@
-#
-# MDEV-15497 Wrong empty value in a GEOMETRY column on LOAD DATA
-#
-SET sql_mode='';
-CREATE TABLE t1 (id INT, a GEOMETRY NOT NULL);
-LOAD DATA INFILE '../../std_data/loaddata/mdev-15497.txt' INTO TABLE t1;
-ERROR 22004: Column set to default value; NULL supplied to NOT NULL column 'a' at row 1
-LOAD DATA INFILE '../../std_data/loaddata/mdev-15497.txt' INTO TABLE t1 FIELDS TERMINATED BY '';
-ERROR 22004: Column set to default value; NULL supplied to NOT NULL column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (id INT, a GEOMETRY);
-LOAD DATA INFILE '../../std_data/loaddata/mdev-15497.txt' INTO TABLE t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-id a
-1 NULL
-TRUNCATE TABLE t1;
-LOAD DATA INFILE '../../std_data/loaddata/mdev-15497.txt' INTO TABLE t1 FIELDS TERMINATED BY '';
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-id a
-1 NULL
-DROP TABLE t1;
diff --git a/mysql-test/r/gis-precise.result b/mysql-test/r/gis-precise.result
deleted file mode 100644
index 292dfe0462c..00000000000
--- a/mysql-test/r/gis-precise.result
+++ /dev/null
@@ -1,801 +0,0 @@
-DROP TABLE IF EXISTS t1;
-select 1, ST_Intersects(GeomFromText('POLYGON((0 0,20 0,20 20,0 20,0 0))'), GeomFromText('POLYGON((10 10,30 10,30 30,10 30,10 10))'));
-1 ST_Intersects(GeomFromText('POLYGON((0 0,20 0,20 20,0 20,0 0))'), GeomFromText('POLYGON((10 10,30 10,30 30,10 30,10 10))'))
-1 1
-select 0, ST_Intersects(GeomFromText('POLYGON((0 0,20 10,10 30, 0 0))'), GeomFromText('POLYGON((10 40, 40 50, 20 70, 10 40))'));
-0 ST_Intersects(GeomFromText('POLYGON((0 0,20 10,10 30, 0 0))'), GeomFromText('POLYGON((10 40, 40 50, 20 70, 10 40))'))
-0 0
-select 1, ST_Intersects(GeomFromText('POLYGON((0 0,20 10,10 30, 0 0))'), GeomFromText('POINT(10 10)'));
-1 ST_Intersects(GeomFromText('POLYGON((0 0,20 10,10 30, 0 0))'), GeomFromText('POINT(10 10)'))
-1 1
-select 1, ST_Intersects(GeomFromText('POLYGON((0 0,20 10,10 30, 0 0))'), GeomFromText('POLYGON((10 10,30 20,20 40, 10 10))'));
-1 ST_Intersects(GeomFromText('POLYGON((0 0,20 10,10 30, 0 0))'), GeomFromText('POLYGON((10 10,30 20,20 40, 10 10))'))
-1 1
-select 0, ST_Within(GeomFromText('POLYGON((0 0,20 10,10 30, 0 0))'), GeomFromText('POLYGON((10 10,30 20,20 40, 10 10))'));
-0 ST_Within(GeomFromText('POLYGON((0 0,20 10,10 30, 0 0))'), GeomFromText('POLYGON((10 10,30 20,20 40, 10 10))'))
-0 0
-select 1, ST_Within(GeomFromText('POLYGON((1 1,20 10,10 30, 1 1))'), GeomFromText('POLYGON((0 0,30 5,10 40, 0 0))'));
-1 ST_Within(GeomFromText('POLYGON((1 1,20 10,10 30, 1 1))'), GeomFromText('POLYGON((0 0,30 5,10 40, 0 0))'))
-1 1
-create table t1 (g point);
-insert into t1 values
-(GeomFromText('POINT(2 2)')), (GeomFromText('POINT(2 4)')), (GeomFromText('POINT(2 6)')), (GeomFromText('POINT(2 8)')),
-(GeomFromText('POINT(4 2)')), (GeomFromText('POINT(4 4)')), (GeomFromText('POINT(4 6)')), (GeomFromText('POINT(4 8)')),
-(GeomFromText('POINT(6 2)')), (GeomFromText('POINT(6 4)')), (GeomFromText('POINT(6 6)')), (GeomFromText('POINT(6 8)')),
-(GeomFromText('POINT(8 2)')), (GeomFromText('POINT(8 4)')), (GeomFromText('POINT(8 6)')), (GeomFromText('POINT(8 8)'));
-select astext(g) from t1 where ST_Within(g, GeomFromText('POLYGON((5 1, 7 1, 7 7, 5 7, 3 3, 5 3, 5 1))'));
-astext(g)
-POINT(4 4)
-POINT(6 2)
-POINT(6 4)
-POINT(6 6)
-select 'Contains';
-Contains
-Contains
-select astext(g) from t1 where ST_Contains(GeomFromText('POLYGON((5 1, 7 1, 7 7, 5 7, 3 3, 5 3, 5 1))'), g);
-astext(g)
-POINT(4 4)
-POINT(6 2)
-POINT(6 4)
-POINT(6 6)
-select 'Intersects';
-Intersects
-Intersects
-select astext(g) from t1 where ST_Intersects(GeomFromText('POLYGON((5 1, 7 1, 7 7, 5 7, 3 3, 5 3, 5 1))'), g);
-astext(g)
-POINT(4 4)
-POINT(6 2)
-POINT(6 4)
-POINT(6 6)
-select 'Contains';
-Contains
-Contains
-select astext(g) from t1 where ST_Contains(GeomFromText('POLYGON((5 1, 7 1, 7 7, 5 7, 3 3, 5 3, 5 1))'), g);
-astext(g)
-POINT(4 4)
-POINT(6 2)
-POINT(6 4)
-POINT(6 6)
-select 'Contains2';
-Contains2
-Contains2
-select astext(g) from t1 where ST_Contains(GeomFromText('POLYGON((5 1, 7 1, 7 7, 5 7, 3 3, 5 3, 5 1), (5.01 3.01, 6 5, 9 5, 8 3, 5.01 3.01))'), g);
-astext(g)
-POINT(4 4)
-POINT(6 2)
-POINT(6 6)
-POINT(8 4)
-DROP TABLE t1;
-select 0, ST_Within(GeomFromText('LINESTRING(15 15, 50 50, 60 60)'), GeomFromText('POLYGON((10 10,30 20,20 40, 10 10))'));
-0 ST_Within(GeomFromText('LINESTRING(15 15, 50 50, 60 60)'), GeomFromText('POLYGON((10 10,30 20,20 40, 10 10))'))
-0 0
-select 1, ST_Within(GeomFromText('LINESTRING(15 15, 16 16)'), GeomFromText('POLYGON((10 10,30 20,20 40, 10 10))'));
-1 ST_Within(GeomFromText('LINESTRING(15 15, 16 16)'), GeomFromText('POLYGON((10 10,30 20,20 40, 10 10))'))
-1 1
-select 1, ST_Intersects(GeomFromText('LINESTRING(15 15, 50 50)'), GeomFromText('LINESTRING(50 15, 15 50)'));
-1 ST_Intersects(GeomFromText('LINESTRING(15 15, 50 50)'), GeomFromText('LINESTRING(50 15, 15 50)'))
-1 1
-select 0, ST_Intersects(GeomFromText('LINESTRING(15 15, 50 50)'), GeomFromText('LINESTRING(16 16, 51 51)'));
-0 ST_Intersects(GeomFromText('LINESTRING(15 15, 50 50)'), GeomFromText('LINESTRING(16 16, 51 51)'))
-0 1
-select 1, ST_Intersects(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('POLYGON((50 5, 55 10, 0 45, 50 5))'));
-1 ST_Intersects(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('POLYGON((50 5, 55 10, 0 45, 50 5))'))
-1 1
-select astext(ST_Union(geometryfromtext('point(1 1)'), geometryfromtext('polygon((0 0, 2 0, 1 2, 0 0))')));
-astext(ST_Union(geometryfromtext('point(1 1)'), geometryfromtext('polygon((0 0, 2 0, 1 2, 0 0))')))
-POLYGON((0 0,1 2,2 0,0 0))
-select astext(ST_Intersection(geometryfromtext('point(1 1)'), geometryfromtext('polygon((0 0, 2 0, 1 2, 0 0))')));
-astext(ST_Intersection(geometryfromtext('point(1 1)'), geometryfromtext('polygon((0 0, 2 0, 1 2, 0 0))')))
-POINT(1 1)
-select ST_Intersects(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('POLYGON((50 5, 55 10, 0 45, 50 5))'));
-ST_Intersects(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('POLYGON((50 5, 55 10, 0 45, 50 5))'))
-1
-select ST_contains(GeomFromText('MULTIPOLYGON(((0 0, 0 5, 5 5, 5 0, 0 0)), ((6 6, 6 11, 11 11, 11 6, 6 6)))'), GeomFromText('POINT(5 10)'));
-ST_contains(GeomFromText('MULTIPOLYGON(((0 0, 0 5, 5 5, 5 0, 0 0)), ((6 6, 6 11, 11 11, 11 6, 6 6)))'), GeomFromText('POINT(5 10)'))
-0
-select ST_Disjoint(GeomFromText('POLYGON((0 0, 0 5, 5 5, 5 0, 0 0))'), GeomFromText('POLYGON((10 10, 10 15, 15 15, 15 10, 10 10))'));
-ST_Disjoint(GeomFromText('POLYGON((0 0, 0 5, 5 5, 5 0, 0 0))'), GeomFromText('POLYGON((10 10, 10 15, 15 15, 15 10, 10 10))'))
-1
-select ST_Disjoint(GeomFromText('POLYGON((0 0, 0 5, 5 5, 5 0, 0 0))'), GeomFromText('POLYGON((10 10, 10 4, 4 4, 4 10, 10 10))'));
-ST_Disjoint(GeomFromText('POLYGON((0 0, 0 5, 5 5, 5 0, 0 0))'), GeomFromText('POLYGON((10 10, 10 4, 4 4, 4 10, 10 10))'))
-0
-select ST_Overlaps(GeomFromText('POLYGON((0 0, 0 5, 5 5, 5 0, 0 0))'), GeomFromText('POLYGON((10 10, 10 4, 4 4, 4 10, 10 10))'));
-ST_Overlaps(GeomFromText('POLYGON((0 0, 0 5, 5 5, 5 0, 0 0))'), GeomFromText('POLYGON((10 10, 10 4, 4 4, 4 10, 10 10))'))
-1
-select ST_Overlaps(GeomFromText('POLYGON((0 0, 0 5, 5 5, 5 0, 0 0))'), GeomFromText('POLYGON((1 1, 1 4, 4 4, 4 1, 1 1))'));
-ST_Overlaps(GeomFromText('POLYGON((0 0, 0 5, 5 5, 5 0, 0 0))'), GeomFromText('POLYGON((1 1, 1 4, 4 4, 4 1, 1 1))'))
-0
-select ST_DISTANCE(geomfromtext('polygon((0 0, 1 2, 2 1, 0 0))'), geomfromtext('polygon((2 2, 3 4, 4 3, 2 2))'));
-ST_DISTANCE(geomfromtext('polygon((0 0, 1 2, 2 1, 0 0))'), geomfromtext('polygon((2 2, 3 4, 4 3, 2 2))'))
-0.7071067811865475
-select ST_DISTANCE(geomfromtext('polygon((0 0, 1 2, 2 1, 0 0))'), geomfromtext('linestring(0 1, 1 0)'));
-ST_DISTANCE(geomfromtext('polygon((0 0, 1 2, 2 1, 0 0))'), geomfromtext('linestring(0 1, 1 0)'))
-0
-select ST_DISTANCE(geomfromtext('polygon((0 0, 3 6, 6 3, 0 0))'), geomfromtext('polygon((2 2, 3 4, 4 3, 2 2))'));
-ST_DISTANCE(geomfromtext('polygon((0 0, 3 6, 6 3, 0 0))'), geomfromtext('polygon((2 2, 3 4, 4 3, 2 2))'))
-0
-select ST_DISTANCE(geomfromtext('polygon((0 0, 3 6, 6 3, 0 0),(2 2, 3 4, 4 3, 2 2))'), geomfromtext('point(3 3)'));
-ST_DISTANCE(geomfromtext('polygon((0 0, 3 6, 6 3, 0 0),(2 2, 3 4, 4 3, 2 2))'), geomfromtext('point(3 3)'))
-0.4472135954999579
-select ST_DISTANCE(geomfromtext('linestring(0 0, 3 6, 6 3, 0 0)'), geomfromtext('polygon((2 2, 3 4, 4 3, 2 2))'));
-ST_DISTANCE(geomfromtext('linestring(0 0, 3 6, 6 3, 0 0)'), geomfromtext('polygon((2 2, 3 4, 4 3, 2 2))'))
-0.8944271909999159
-select astext(ST_Intersection(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('POLYGON((50 5, 55 10, 0 45, 50 5))')));
-astext(ST_Intersection(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('POLYGON((50 5, 55 10, 0 45, 50 5))')))
-POLYGON((26.47058823529412 23.823529411764707,21.951219512195124 27.439024390243905,23.855421686746986 29.819277108433734,29.289940828402365 26.36094674556213,26.47058823529412 23.823529411764707))
-select astext(ST_Intersection(GeomFromText('LINESTRING(0 0, 50 45, 40 50, 0 0)'), GeomFromText('LINESTRING(50 5, 55 10, 0 45, 50 5)')));
-astext(ST_Intersection(GeomFromText('LINESTRING(0 0, 50 45, 40 50, 0 0)'), GeomFromText('LINESTRING(50 5, 55 10, 0 45, 50 5)')))
-MULTIPOINT(26.47058823529412 23.823529411764707,29.289940828402365 26.36094674556213,21.951219512195124 27.439024390243905,23.855421686746986 29.819277108433734)
-select astext(ST_Intersection(GeomFromText('LINESTRING(0 0, 50 45, 40 50)'), GeomFromText('LINESTRING(50 5, 55 10, 0 45)')));
-astext(ST_Intersection(GeomFromText('LINESTRING(0 0, 50 45, 40 50)'), GeomFromText('LINESTRING(50 5, 55 10, 0 45)')))
-POINT(29.289940828402365 26.36094674556213)
-select astext(ST_Intersection(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('POINT(20 20)')));
-astext(ST_Intersection(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('POINT(20 20)')))
-POINT(20 20)
-select astext(ST_Intersection(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('LINESTRING(-10 -10, 200 200)')));
-astext(ST_Intersection(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('LINESTRING(-10 -10, 200 200)')))
-LINESTRING(0 0,46.666666666666664 46.666666666666664)
-select astext(ST_Intersection(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('LINESTRING(-10 -10, 200 200, 199 201, -11 -9)')));
-astext(ST_Intersection(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('LINESTRING(-10 -10, 200 200, 199 201, -11 -9)')))
-MULTILINESTRING((0 0,46.666666666666664 46.666666666666664),(8 10,45.33333333333333 47.33333333333333))
-select astext(ST_UNION(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('LINESTRING(-10 -10, 200 200, 199 201, -11 -9)')));
-astext(ST_UNION(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('LINESTRING(-10 -10, 200 200, 199 201, -11 -9)')))
-GEOMETRYCOLLECTION(LINESTRING(-10 -10,0 0),LINESTRING(-11 -9,8 10),POLYGON((0 0,40 50,50 45,0 0)),LINESTRING(46.666666666666664 46.666666666666664,200 200,199 201,45.33333333333333 47.33333333333333))
-select astext(ST_intersection(geomfromtext('polygon((0 0, 1 0, 0 1, 0 0))'), geomfromtext('polygon((0 0, 1 1, 0 2, 0 0))')));
-astext(ST_intersection(geomfromtext('polygon((0 0, 1 0, 0 1, 0 0))'), geomfromtext('polygon((0 0, 1 1, 0 2, 0 0))')))
-POLYGON((0 0,0 1,0.5 0.5,0 0))
-select astext(ST_symdifference(geomfromtext('polygon((0 0, 1 0, 0 1, 0 0))'), geomfromtext('polygon((0 0, 1 1, 0 2, 0 0))')));
-astext(ST_symdifference(geomfromtext('polygon((0 0, 1 0, 0 1, 0 0))'), geomfromtext('polygon((0 0, 1 1, 0 2, 0 0))')))
-MULTIPOLYGON(((0 0,0.5 0.5,1 0,0 0)),((0.5 0.5,0 1,0 2,1 1,0.5 0.5)))
-select astext(ST_UNION(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('LINESTRING(-10 -10, 200 200, 199 201, -11 -9)')));
-astext(ST_UNION(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('LINESTRING(-10 -10, 200 200, 199 201, -11 -9)')))
-GEOMETRYCOLLECTION(LINESTRING(-10 -10,0 0),LINESTRING(-11 -9,8 10),POLYGON((0 0,40 50,50 45,0 0)),LINESTRING(46.666666666666664 46.666666666666664,200 200,199 201,45.33333333333333 47.33333333333333))
-select astext(ST_buffer(geometryfromtext('point(1 1)'), 1));
-astext(ST_buffer(geometryfromtext('point(1 1)'), 1))
-POLYGON((1 0,0.950932325672582 0.001204543794827595,0.9019828596704393 0.004815273327803182,0.8532695255446382 0.010823490035218986,0.8049096779838717 0.01921471959676957,0.7570198200967361 0.029968746805456026,0.7097153227455377 0.043059664267791065,0.6631101466077799 0.058455934816979194,0.6173165676349102 0.07612046748871326,0.5724449065697179 0.09601070687655666,0.5286032631740024 0.11807873565164506,0.48589725580677834 0.14227138999972788,0.4444297669803978 0.16853038769745476,0.40430069550756664 0.19679246851935517,0.3656067158363545 0.226989546637263,0.32844104515298167 0.2590488746450409,0.29289321881345254 0.29289321881345254,0.2590488746450409 0.32844104515298167,0.226989546637263 0.3656067158363545,0.19679246851935517 0.40430069550756664,0.16853038769745476 0.4444297669803978,0.14227138999972788 0.48589725580677834,0.11807873565164506 0.5286032631740024,0.09601070687655666 0.5724449065697179,0.07612046748871326 0.6173165676349102,0.058455934816979194 0.6631101466077799,0.043059664267791065 0.7097153227455377,0.029968746805456026 0.7570198200967361,0.01921471959676957 0.8049096779838717,0.010823490035218986 0.8532695255446382,0.004815273327803182 0.9019828596704393,0.001204543794827595 0.950932325672582,0 1,0.004815273327803182 1.0980171403295607,0.010823490035218986 1.146730474455362,0.01921471959676957 1.1950903220161284,0.029968746805456026 1.2429801799032638,0.043059664267791065 1.2902846772544623,0.058455934816979194 1.3368898533922202,0.07612046748871326 1.3826834323650898,0.09601070687655666 1.427555093430282,0.11807873565164506 1.4713967368259975,0.14227138999972788 1.5141027441932216,0.16853038769745476 1.5555702330196022,0.19679246851935517 1.5956993044924332,0.226989546637263 1.6343932841636455,0.2590488746450409 1.6715589548470184,0.29289321881345254 1.7071067811865475,0.32844104515298167 1.7409511253549592,0.3656067158363545 1.7730104533627369,0.40430069550756664 1.8032075314806448,0.4444297669803978 1.8314696123025453,0.48589725580677834 1.8577286100002721,0.5286032631740024 1.881921264348355,0.5724449065697179 1.9039892931234434,0.6173165676349102 1.9238795325112867,0.6631101466077799 1.9415440651830207,0.7097153227455377 1.956940335732209,0.7570198200967361 1.970031253194544,0.8049096779838717 1.9807852804032304,0.8532695255446382 1.9891765099647811,0.9019828596704393 1.9951847266721967,0.950932325672582 1.9987954562051724,1 2,1.049067674327418 1.9987954562051724,1.0980171403295607 1.9951847266721967,1.146730474455362 1.9891765099647811,1.1950903220161284 1.9807852804032304,1.2429801799032638 1.970031253194544,1.2902846772544623 1.956940335732209,1.3368898533922202 1.9415440651830207,1.3826834323650898 1.9238795325112867,1.427555093430282 1.9039892931234434,1.4713967368259975 1.881921264348355,1.5141027441932216 1.8577286100002721,1.5555702330196022 1.8314696123025453,1.5956993044924332 1.8032075314806448,1.6343932841636455 1.7730104533627369,1.6715589548470184 1.7409511253549592,1.7071067811865475 1.7071067811865475,1.7409511253549592 1.6715589548470184,1.7730104533627369 1.6343932841636455,1.8032075314806448 1.5956993044924332,1.8314696123025453 1.5555702330196022,1.8577286100002721 1.5141027441932216,1.881921264348355 1.4713967368259975,1.9039892931234434 1.427555093430282,1.9238795325112867 1.3826834323650898,1.9415440651830207 1.3368898533922202,1.956940335732209 1.2902846772544623,1.970031253194544 1.2429801799032638,1.9807852804032304 1.1950903220161284,1.9891765099647811 1.146730474455362,1.9951847266721967 1.0980171403295607,1.9987954562051724 1.049067674327418,2 1,1.9951847266721967 0.9019828596704393,1.9891765099647811 0.8532695255446382,1.9807852804032304 0.8049096779838717,1.970031253194544 0.7570198200967361,1.956940335732209 0.7097153227455377,1.9415440651830207 0.6631101466077799,1.9238795325112867 0.6173165676349102,1.9039892931234434 0.5724449065697179,1.881921264348355 0.5286032631740024,1.8577286100002721 0.48589725580677834,1.8314696123025453 0.4444297669803978,1.8032075314806448 0.40430069550756664,1.7730104533627369 0.3656067158363545,1.7409511253549592 0.32844104515298167,1.7071067811865475 0.29289321881345254,1.6715589548470184 0.2590488746450409,1.6343932841636455 0.226989546637263,1.5956993044924332 0.19679246851935517,1.5555702330196022 0.16853038769745476,1.5141027441932216 0.14227138999972788,1.4713967368259975 0.11807873565164506,1.427555093430282 0.09601070687655666,1.3826834323650898 0.07612046748871326,1.3368898533922202 0.058455934816979194,1.2902846772544623 0.043059664267791065,1.2429801799032638 0.029968746805456026,1.1950903220161284 0.01921471959676957,1.146730474455362 0.010823490035218986,1.0980171403295607 0.004815273327803182,1.049067674327418 0.001204543794827595,1 0))
-create table t1(geom geometrycollection);
-insert into t1 values (geomfromtext('POLYGON((0 0, 10 10, 0 8, 0 0))'));
-insert into t1 values (geomfromtext('POLYGON((1 1, 10 10, 0 8, 1 1))'));
-select astext(geom), area(geom),round(area(ST_buffer(geom,2)), 7) from t1;
-astext(geom) area(geom) round(area(ST_buffer(geom,2)), 7)
-POLYGON((0 0,10 10,0 8,0 0)) 40 117.2416764
-POLYGON((1 1,10 10,0 8,1 1)) 36 108.5553959
-select ST_NUMPOINTS(ST_EXTERIORRING(ST_buffer(geom,2))) from t1;
-ST_NUMPOINTS(ST_EXTERIORRING(ST_buffer(geom,2)))
-133
-134
-set @geom=geomfromtext('LINESTRING(2 1, 4 2, 2 3, 2 5)');
-set @buff=ST_buffer(@geom,1);
-select ST_NUMPOINTS(ST_EXTERIORRING(@buff));
-ST_NUMPOINTS(ST_EXTERIORRING(@buff))
-202
-DROP TABLE t1;
-select st_touches(geomfromtext('point(0 0)'), geomfromtext('point(1 1)'));
-st_touches(geomfromtext('point(0 0)'), geomfromtext('point(1 1)'))
-0
-select st_touches(geomfromtext('point(1 1)'), geomfromtext('point(1 1)'));
-st_touches(geomfromtext('point(1 1)'), geomfromtext('point(1 1)'))
-0
-select st_touches(geomfromtext('polygon((0 0, 2 2, 0 4, 0 0))'), geomfromtext('point(1 1)'));
-st_touches(geomfromtext('polygon((0 0, 2 2, 0 4, 0 0))'), geomfromtext('point(1 1)'))
-1
-select st_touches(geomfromtext('polygon((0 0, 2 2, 0 4, 0 0))'), geomfromtext('point(1 0)'));
-st_touches(geomfromtext('polygon((0 0, 2 2, 0 4, 0 0))'), geomfromtext('point(1 0)'))
-0
-select st_touches(geomfromtext('polygon((0 0, 2 2, 0 4, 0 0))'), geomfromtext('point(1 2)'));
-st_touches(geomfromtext('polygon((0 0, 2 2, 0 4, 0 0))'), geomfromtext('point(1 2)'))
-0
-select st_touches(geomfromtext('polygon((0 0, 2 2, 0 4, 0 0))'), geomfromtext('polygon((1 1.2, 1 0, 2 0, 1 1.2))'));
-st_touches(geomfromtext('polygon((0 0, 2 2, 0 4, 0 0))'), geomfromtext('polygon((1 1.2, 1 0, 2 0, 1 1.2))'))
-0
-select st_touches(geomfromtext('polygon((0 0, 2 2, 0 4, 0 0))'), geomfromtext('polygon((1 1, 1 0, 2 0, 1 1))'));
-st_touches(geomfromtext('polygon((0 0, 2 2, 0 4, 0 0))'), geomfromtext('polygon((1 1, 1 0, 2 0, 1 1))'))
-1
-SELECT ST_Equals(PolyFromText('POLYGON((67 13, 67 18, 67 18, 59 18, 59 13, 67 13) )'),PolyFromText('POLYGON((67 13, 67 18, 59 19, 59 13, 59 13, 67 13) )')) as result;
-result
-0
-SELECT ST_Equals(PolyFromText('POLYGON((67 13, 67 18, 67 18, 59 18, 59 13, 67 13) )'),PolyFromText('POLYGON((67 13, 67 18, 59 18, 59 13, 59 13, 67 13) )')) as result;
-result
-1
-SELECT ST_Equals(PointFromText('POINT (12 13)'),PointFromText('POINT (12 13)')) as result;
-result
-1
-#
-# BUG#11755628/47429: INTERSECTION FUNCTION CRASHED MYSQLD
-# BUG#11759650/51979: UNION/INTERSECTION OF POLYGONS CRASHES MYSQL
-#
-SELECT ASTEXT(ST_UNION(GEOMFROMTEXT('POLYGON((525000 183300,525400
-183300,525400 18370, 525000 183700,525000 183300))'),
-geomfromtext('POLYGON((525298.67 183511.53,525296.57
-183510.39,525296.42 183510.31,525289.11 183506.62,525283.17
-183503.47,525280.98 183502.26,525278.63 183500.97,525278.39
-183500.84,525276.79 183500,525260.7 183491.55,525263.95
-183484.75,525265.58 183481.95,525278.97 183488.73,525276.5
-183493.45,525275.5 183495.7,525280.35 183498.2,525282.3
-183499.1,525282.2 183499.3,525283.55 183500,525301.75
-183509.35,525304.45 183504.25,525307.85 183504.95,525304.5
-183510.83,525302.81 183513.8,525298.67 183511.53),(525275.06
-183489.89,525272.06 183488.37,525268.94 183494.51,525271.94
-183496.03,525275.06 183489.89),(525263.26 183491.55,525266.15
-183493.04,525269.88 183485.82,525266.99 183484.33,525263.26
-183491.55))'))) st_u;
-st_u
-MULTIPOLYGON(((525400 18370,525000.9677614468 183300,525400 183300,525400 18370)),((525000 183300,525000 183700,525000.9677614468 183300,525000 183300)),((525265.58 183481.95,525263.95 183484.75,525260.7 183491.55,525276.79 183500,525278.39 183500.84,525278.63 183500.97,525280.98 183502.26,525283.17 183503.47,525289.11 183506.62,525296.42 183510.31,525296.57 183510.39,525298.67 183511.53,525302.81 183513.8,525304.5 183510.83,525307.85 183504.95,525304.45 183504.25,525301.75 183509.35,525283.55 183500,525282.2 183499.3,525282.3 183499.1,525280.35 183498.2,525275.5 183495.7,525276.5 183493.45,525278.97 183488.73,525265.58 183481.95),(525266.99 183484.33,525263.26 183491.55,525266.15 183493.04,525269.88 183485.82,525266.99 183484.33),(525272.06 183488.37,525268.94 183494.51,525271.94 183496.03,525275.06 183489.89,525272.06 183488.37)))
-SET @a=0x0000000001030000000200000005000000000000000000000000000000000000000000000000002440000000000000000000000000000024400000000000002440000000000000000000000000000024400000000000000000000000000000000000000000000000000000F03F000000000000F03F0000000000000040000000000000F03F00000000000000400000000000000040000000000000F03F0000000000000040000000000000F03F000000000000F03F;
-SELECT ASTEXT(TOUCHES(@a, GEOMFROMTEXT('point(0 0)'))) t;
-ERROR HY000: Illegal parameter data type int for operation 'st_astext'
-SELECT astext(ST_UNION (
-PolyFromText('POLYGON(( 2 2 ,3 2,2 7,2 2),( 0 0,8 2,1 9,0 0))'),
-ExteriorRing( Envelope( MultiLineStringFromText('MULTILINESTRING((3 4,5 3),(3 0,0 5))')))));
-astext(ST_UNION (
-PolyFromText('POLYGON(( 2 2 ,3 2,2 7,2 2),( 0 0,8 2,1 9,0 0))'),
-ExteriorRing( Envelope( MultiLineStringFromText('MULTILINESTRING((3 4,5 3),(3 0,0 5))')))))
-GEOMETRYCOLLECTION(POLYGON((0 0,1 9,8 2,0 0),(2 2,2 7,3 2,2 2)),LINESTRING(0.5555555555555556 5,0 5,0 0,5 0,5 1.25),LINESTRING(2 5,2.4 5))
-SELECT astext(ST_BUFFER(LineStringFromText('LINESTRING(0 0,1 1)'),0));
-astext(ST_BUFFER(LineStringFromText('LINESTRING(0 0,1 1)'),0))
-LINESTRING(0 0,1 1)
-SELECT Round(ST_Area(ST_BUFFER(MultipointFromText('MULTIPOINT(7 7,3 7,7 2,7 4 ,7 7)'), 3)), 5);
-Round(ST_Area(ST_BUFFER(MultipointFromText('MULTIPOINT(7 7,3 7,7 2,7 4 ,7 7)'), 3)), 5)
-78.68426
-SELECT ST_INTERSECTION(NULL, NULL);
-ST_INTERSECTION(NULL, NULL)
-NULL
-SELECT ASTEXT(ST_INTERSECTION(
-MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((2 2,2 8,8 8,8 2,2 2),(4 4,4 6,6 6,6 4,4 4)),
- ((0 5,3 5,3 0,0 0,0 1,2 1,2 2,0 2,0 5), (1 3,2 3,2 4,1 4,1 3)),
- ((2 2,5 2,4 4,2 8,2 2)))'),
-MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((3 5,2 4,2 5,3 5)),
- ((2 2,9 2,0 2,2 6,2 2)),
- ((2 2,2 8,8 8,8 2,2 2), (4 4,4 6,6 6,6 4,4 4)),
- ((9 9,6 8,7 0,9 9)))')));
-ASTEXT(ST_INTERSECTION(
-MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((2 2,2 8,8 8,8 2,2 2),(4 4,4 6,6 6,6 4,4 4)),
- ((0 5,3 5,3 0,0 0,0 1,2 1,2 2,0 2,0 5), (1 3,2 3,2 4,1 4,1 3)),
- ((2 2,5 2,4 4,2 8,2 2)))'),
-MULTIPOLY
-POLYGON((0 2,1 4,1 3,2 3,2 4,1 4,1.5 5,2 5,2 8,8 8,8 2,0 2),(4 4,4 6,6 6,6 4,4 4))
-SELECT ROUND(ST_LENGTH(ST_UNION(
-MULTILINESTRINGFROMTEXT('MULTILINESTRING((6 2,4 0,3 5,3 6,4 3,6 4,3 9,0 7,3 7,8 4,2 9,5 0),
- (8 2,1 3,9 0,4 4))'),
-MULTILINESTRINGFROMTEXT('MULTILINESTRING((2 5,6 7,9 7,5 2,1 6,3 6))'))), 7);
-ROUND(ST_LENGTH(ST_UNION(
-MULTILINESTRINGFROMTEXT('MULTILINESTRING((6 2,4 0,3 5,3 6,4 3,6 4,3 9,0 7,3 7,8 4,2 9,5 0),
- (8 2,1 3,9 0,4 4))'),
-MULTILINESTRINGFROMTEXT('MULTILINESTRING((2 5,6 7,9 7,5 2,1 6,3 6)
-90.2783626
-SELECT ST_NUMGEOMETRIES((ST_UNION(ST_UNION(
-MULTILINESTRINGFROMTEXT('MULTILINESTRING((2 0,4 2,0 2,1 5,0 3,7 0,8 5,5 8),
- (6 2,4 0,3 5,3 6,4 3,6 4,3 9,0 7,3 7,8 4,2 9,5 0),
- (7 8,3 1,0 9,6 0,4 8),
- (9 3,0 4,5 9,6 4),
- (8 2,1 3,9 0,4 4))'),
-MULTILINESTRINGFROMTEXT('MULTILINESTRING((6 0,9 3,2 5,3 6,3 2),
- (2 5,6 7,9 7,5 2,1 6,3 6))')),
-MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((7 7,3 7,3 1,7 8,7 7)),
- ((3 5,2 4,2 5,3 5)),
- ((7 7,8 7,3 7,7 7,7 7)),
- ((0 5,3 5,3 4,1 4,1 3,3 3,3 0,0 0,0 5), (1 1,2 1,2 2,1 2,1 1)))'))));
-ST_NUMGEOMETRIES((ST_UNION(ST_UNION(
-MULTILINESTRINGFROMTEXT('MULTILINESTRING((2 0,4 2,0 2,1 5,0 3,7 0,8 5,5 8),
- (6 2,4 0,3 5,3 6,4 3,6 4,3 9,0 7,3 7,8 4,2 9,5 0),
-
-192
-SELECT Round(ST_AREA(ST_BUFFER( ST_UNION(
-POLYGONFROMTEXT('POLYGON((7 7, 7 7, 7 4, 7 7, 7 7))'),
-POLYGONFROMTEXT('POLYGON((7 7, 4 7, 2 9, 7 6, 7 7))')), 1)), 6);
-Round(ST_AREA(ST_BUFFER( ST_UNION(
-POLYGONFROMTEXT('POLYGON((7 7, 7 7, 7 4, 7 7, 7 7))'),
-POLYGONFROMTEXT('POLYGON((7 7, 4 7, 2 9, 7 6, 7 7))')), 1)), 6)
-21.901344
-SELECT AsText(ST_UNION(MultiPolygonFromText('
- MULTIPOLYGON(((2 2, 2 8, 8 8, 8 2, 2 2), (4 4, 4 6, 6 6, 6 4, 4 4)),
- ((0 0, 8 3, 7 4, 0 0)),
- ((2 2, 2 8, 8 8, 8 2, 2 2), (4 4, 4 6, 6 6, 6 4, 4 4)))'),
-MultiPolygonFromText(' MULTIPOLYGON(((0 0, 1 9, 4 6, 0 0)),
- ((0 5, 3 5, 3 4, 1 4, 1 3, 3 3, 3 0, 0 0, 0 5), (1 1, 2 1, 2 2, 1 2, 1 1)),
- ((7 7, 4 7, 6 3, 7 2, 7 7)),
- ((0 5, 3 5, 3 4, 1 4, 1 3, 3 3, 3 0, 0 0, 0 5), (1 1, 2 1, 2 2, 1 2, 1 1))) ')));
-AsText(ST_UNION(MultiPolygonFromText('
- MULTIPOLYGON(((2 2, 2 8, 8 8, 8 2, 2 2), (4 4, 4 6, 6 6, 6 4, 4 4)),
- ((0 0, 8 3, 7 4, 0 0)),
- ((2 2, 2 8, 8 8, 8 2, 2 2), (4 4, 4 6, 6 6, 6 4, 4 4)))'),
-MultiPolygonFr
-POLYGON((0 0,0 5,0.5555555555555556 5,1 9,2 8,8 8,8 2,5.333333333333334 2,3 1.125,3 0,0 0),(1 1,1 1.5,1.3333333333333333 2,2 2,2 1.1428571428571428,1.75 1,1 1),(3 1.7142857142857142,3 2,3.5 2,3 1.7142857142857142),(4 4,4 6,4.5 6,5.5 4,4 4))
-SELECT AsText(ST_SYMDIFFERENCE(
-MultiLineStringFromText('MULTILINESTRING((7 7, 1 7, 8 5, 7 8, 7 7),
- (6 3, 3 4, 1 1, 9 9, 9 0, 8 4, 9 9))'),
-Envelope(GeometryFromText('MULTIPOINT(7 9, 0 0, 3 7, 1 6, 0 0)'))));
-AsText(ST_SYMDIFFERENCE(
-MultiLineStringFromText('MULTILINESTRING((7 7, 1 7, 8 5, 7 8, 7 7),
- (6 3, 3 4, 1 1, 9 9, 9 0, 8 4, 9 9))'),
-Envelope(GeometryFromText('MULTIPOINT(7 9, 0 0, 3 7, 1 6, 0 0)'))))
-GEOMETRYCOLLECTION(POLYGON((0 0,0 9,7 9,7 0,0 0)),LINESTRING(9 9,8 4,9 0,9 9),LINESTRING(7 5.285714285714286,8 5,7.25 7.25),LINESTRING(7 7,7.25 7.25),LINESTRING(7.25 7.25,7 8),LINESTRING(7.25 7.25,9 9))
-SELECT AsText(ST_UNION(
-MultiPolygonFromText('MULTIPOLYGON(((9 9, 7 9, 1 1, 9 9)),
- ((2 2, 1 2, 3 3, 2 2, 2 2)),
- ((0 0, 7 5, 9 6, 0 0)),
- ((7 7, 5 7, 1 5, 7 1, 7 7)))'),
-MultiPolygonFromText('MULTIPOLYGON(((2 2, 2 2, 1 5, 2 7, 2 2)),
- ((0 5, 3 5, 3 0, 0 0, 0 5), (1 1, 2 1, 2 4, 1 4, 1 1)))')));
-AsText(ST_UNION(
-MultiPolygonFromText('MULTIPOLYGON(((9 9, 7 9, 1 1, 9 9)),
- ((2 2, 1 2, 3 3, 2 2, 2 2)),
- ((0 0, 7 5, 9 6, 0 0)),
-
-POLYGON((0 0,0 5,1 5,2 7,2 5.5,5 7,5.5 7,7 9,9 9,7 7,7 5,9 6,7 4.666666666666667,7 1,4.25 2.833333333333333,3 2,3 0,0 0),(1 1,1 4,1.3333333333333333 4,1.8571428571428572 2.4285714285714284,1 2,1.75 2,1 1,2 2,2 1.4285714285714284,1.4 1,1 1),(1.5 1,2 1.3333333333333333,2 1,1.5 1),(3 2.142857142857143,3 3,3.4 3.4,4.1034482758620685 2.9310344827586206,3 2.142857142857143))
-SELECT AsText( ST_INTERSECTION(
-LinestringFromText('LINESTRING( 3 5, 2 5, 2 4, 3 4, 3 5 ) ') ,
-LinestringFromText('LINESTRING( 3 5, 2 4, 2 5, 3 5 ) ')
-));
-AsText( ST_INTERSECTION(
-LinestringFromText('LINESTRING( 3 5, 2 5, 2 4, 3 4, 3 5 ) ') ,
-LinestringFromText('LINESTRING( 3 5, 2 4, 2 5, 3 5 ) ')
-))
-LINESTRING(2 4,2 5,3 5)
-SELECT AsText( ST_UNION(
-PolygonFromText(' POLYGON( ( 2 2 , 3 2 , 7 5 , 2 0 , 2 2 ) ) ') ,
-PolygonFromText(' POLYGON( ( 2 2 , 3 2 , 3 3 , 2 5 , 2 2 ) ) ') ) );
-AsText( ST_UNION(
-PolygonFromText(' POLYGON( ( 2 2 , 3 2 , 7 5 , 2 0 , 2 2 ) ) ') ,
-PolygonFromText(' POLYGON( ( 2 2 , 3 2 , 3 3 , 2 5 , 2 2 ) ) ') ) )
-POLYGON((2 0,2 5,3 3,3 2,7 5,2 0))
-SELECT AsText(ST_INTERSECTION(LinestringFromText('LINESTRING(1 1, 2 2)'), GeometryFromText('LINESTRING(3 3, 4 4)')));
-AsText(ST_INTERSECTION(LinestringFromText('LINESTRING(1 1, 2 2)'), GeometryFromText('LINESTRING(3 3, 4 4)')))
-GEOMETRYCOLLECTION EMPTY
-SELECT AsText(ST_UNION(GEOMETRYFROMTEXT('POINT(8 1)') ,MULTILINESTRINGFROMTEXT('MULTILINESTRING((3 5, 2 5, 2 4, 3 4, 3 5))')));
-AsText(ST_UNION(GEOMETRYFROMTEXT('POINT(8 1)') ,MULTILINESTRINGFROMTEXT('MULTILINESTRING((3 5, 2 5, 2 4, 3 4, 3 5))')))
-GEOMETRYCOLLECTION(POINT(8 1),LINESTRING(2 4,2 5,3 5,3 4,2 4))
-SELECT ST_DISTANCE(POINTFROMTEXT('POINT(7 1)'),MULTILINESTRINGFROMTEXT('MULTILINESTRING(
- (4 7,9 7,6 1,3 4,1 1), (3 5, 2 5, 2 4, 3 4, 3 5))'));
-ST_DISTANCE(POINTFROMTEXT('POINT(7 1)'),MULTILINESTRINGFROMTEXT('MULTILINESTRING(
- (4 7,9 7,6 1,3 4,1 1), (3 5, 2 5, 2 4, 3 4, 3 5))'))
-1
-SELECT AsText(ST_UNION(POLYGONFROMTEXT('POLYGON((12 9, 3 6, 3 0, 12 9))'), POLYGONFROMTEXT('POLYGON((2 2, 7 2, 4 2, 2 0, 2 2))')));
-AsText(ST_UNION(POLYGONFROMTEXT('POLYGON((12 9, 3 6, 3 0, 12 9))'), POLYGONFROMTEXT('POLYGON((2 2, 7 2, 4 2, 2 0, 2 2))')))
-GEOMETRYCOLLECTION(POLYGON((2 0,2 2,3 2,3 6,12 9,3 0,3 1,2 0)),LINESTRING(5 2,7 2))
-SELECT ST_NUMPOINTS(ST_EXTERIORRING(ST_BUFFER(ST_UNION(
-MULTILINESTRINGFROMTEXT('MULTILINESTRING((3 4, 2 5, 7 6, 1 8),(0 0 ,1 6 ,0 1, 8 9, 2 4, 6 1, 3 5, 4 8), (9 3, 5 4, 1 8, 4 2, 5 8, 3 0))' ) ,
-MULTILINESTRINGFROMTEXT('MULTILINESTRING((3 4, 3 1, 2 7, 4 2, 6 2, 1 5))')
-), 16)));
-ST_NUMPOINTS(ST_EXTERIORRING(ST_BUFFER(ST_UNION(
-MULTILINESTRINGFROMTEXT('MULTILINESTRING((3 4, 2 5, 7 6, 1 8),(0 0 ,1 6 ,0 1, 8 9, 2 4, 6 1, 3 5, 4 8), (9 3, 5 4, 1 8, 4 2, 5 8, 3 0))' ) ,
-MULTILINESTRINGFROMTEXT('MULTILINESTRING((3 4, 3 1, 2 7, 4 2, 6 2
-278
-SELECT ST_NUMGEOMETRIES(ST_DIFFERENCE (
-ST_UNION (
-MULTILINESTRINGFROMTEXT( ' MULTILINESTRING( ( 2 4 , 5 0 , 2 9 , 6 2 , 0 2 ) , ( 4 3 , 5 6 , 9 4 , 0 7 , 7 2 , 2 0 , 8 2 ) , ( 5 0 , 1 5 , 3 7 , 7 7 ) , ( 2 3 , 9 5 , 2 0 , 8 1 ) , ( 0 9 , 9 3 , 2 8 , 8 1 , 9 4 ) ) ' ),
-ST_UNION (
-MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( ( 2 2 , 7 2 , 6 2 , 2 6 , 2 2 ) ) , ( (3 5, 2 5, 2 4, 3 4, 3 5) ) ) ' ) ,
-ENVELOPE(
-MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( (3 5, 2 5, 2 4, 3 4, 3 5) ) ) ' )
-)
-)
-),
-MULTILINESTRINGFROMTEXT( ' MULTILINESTRING( ( 2 9 , 1 3 , 7 3 , 8 5 ) , ( 5 0 , 8 1 , 2 0 , 7 4 , 1 0 ) , ( 9 2 , 5 2 , 6 5 , 8 8 , 0 2 ) , ( 0 8 , 3 9 , 4 0 , 1 0 ) , ( 0 0 , 7 6 , 8 3 , 0 0 ) ) ' )
-));
-ST_NUMGEOMETRIES(ST_DIFFERENCE (
-ST_UNION (
-MULTILINESTRINGFROMTEXT( ' MULTILINESTRING( ( 2 4 , 5 0 , 2 9 , 6 2 , 0 2 ) , ( 4 3 , 5 6 , 9 4 , 0 7 , 7 2 , 2 0 , 8 2 ) , ( 5 0 , 1 5 , 3 7 , 7 7 ) , ( 2 3 , 9 5 , 2 0 , 8 1 ) , ( 0 9 , 9 3 , 2 8 , 8 1 , 9 4 )
-125
-SELECT ASTEXT(ST_DIFFERENCE (
-POLYGONFROMTEXT( ' POLYGON( ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 , 4 6 , 6 6 , 6 4 , 4 4 ) ) ' ) ,
-ST_UNION (
-MULTILINESTRINGFROMTEXT( ' MULTILINESTRING( (3 5, 2 5, 2 4, 3 4, 3 5) ) ' ) ,
-ST_SYMDIFFERENCE (
-MULTILINESTRINGFROMTEXT( ' MULTILINESTRING( ( 3 8 , 0 8 , 6 6 , 6 1 , 0 5 , 6 7 , 3 7 ) , ( 5 8 , 7 7 , 9 0 , 8 7 ) , ( 1 5 , 1 8 , 2 3 , 3 9 ) , ( 1 3 , 9 7 , 5 5 , 0 8 , 6 9 ) , ( 3 6 , 6 9 , 8 7 , 0 2 , 4 6 , 9 5 ) ) ' ) ,
-ST_UNION (
-MULTILINESTRINGFROMTEXT( ' MULTILINESTRING( ( 9 4 , 2 0 , 2 2 , 7 2 , 6 2 ) , ( 5 2 , 8 2 , 4 8 , 3 4 ) , ( 1 0 , 1 4 , 2 7 , 7 0 , 1 5 ) , ( 2 8 , 4 4 , 5 0 , 7 0 , 4 0 ) ) ' ) ,
-GEOMETRYFROMTEXT( ' MULTILINESTRING( ( 3 7 , 7 3 , 5 8 , 4 8 ) , ( 3 2 , 5 0 , 9 3 , 4 4 ) , ( 6 0 , 4 2 , 7 8 , 1 3 ) ) ' )
-)
-)
-)
-));
-ASTEXT(ST_DIFFERENCE (
-POLYGONFROMTEXT( ' POLYGON( ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 , 4 6 , 6 6 , 6 4 , 4 4 ) ) ' ) ,
-ST_UNION (
-MULTILINESTRINGFROMTEXT( ' MULTILINESTRING( (3 5, 2 5, 2 4, 3 4, 3 5) ) ' ) ,
-ST_SYMDIFFERENCE (
-MULTILINESTRINGFROMTEX
-POLYGON((2 2,2 8,8 8,8 2,2 2),(4 4,4 6,6 6,6 4,4 4))
-SELECT ST_NUMGEOMETRIES(ST_UNION (
-MULTILINESTRINGFROMTEXT( ' MULTILINESTRING( ( 0 8 , 1 9 , 5 7 , 2 8 , 5 8 , 6 7 ) , ( 4 5 , 8 4 , 0 3 , 5 1 ) , ( 6 8 , 2 7 , 1 6 , 9 9 , 7 2 ) , ( 9 5 , 2 8 , 1 2 , 9 6 , 2 0 ) ) ' ) ,
-MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( ( 7 7 , 2 7, 6 8, 7 1 , 7 7 ) ) ) ' )
-));
-ST_NUMGEOMETRIES(ST_UNION (
-MULTILINESTRINGFROMTEXT( ' MULTILINESTRING( ( 0 8 , 1 9 , 5 7 , 2 8 , 5 8 , 6 7 ) , ( 4 5 , 8 4 , 0 3 , 5 1 ) , ( 6 8 , 2 7 , 1 6 , 9 9 , 7 2 ) , ( 9 5 , 2 8 , 1 2 , 9 6 , 2 0 ) ) ' ) ,
-MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( (
-50
-SELECT ST_BUFFER (
-LINESTRINGFROMTEXT( ' LINESTRING( 5 4 , 3 8 , 2 6 , 5 5 , 7 9 ) ' ) ,
-ST_DISTANCE (
-MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( (3 5, 2 4, 2 5, 3 5) ) , ( (3 5, 2 5, 2 4, 3 4, 3 5) ) , ( ( 0 0 , 8 3 , 9 5 , 0 0 ) ) ) ' ) ,
-ST_DIFFERENCE (
-MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( (3 5, 2 5, 2 4, 3 4, 3 5) ) ) ' ) ,
-MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 , 4 6 , 6 6 , 6 4 , 4 4 ) ) , ( ( 0 0 , 3 8 , 9 4 , 0 0 ) ) ) ' )
-)
-)
-) ;
-ST_BUFFER (
-LINESTRINGFROMTEXT( ' LINESTRING( 5 4 , 3 8 , 2 6 , 5 5 , 7 9 ) ' ) ,
-ST_DISTANCE (
-MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( (3 5, 2 4, 2 5, 3 5) ) , ( (3 5, 2 5, 2 4, 3 4, 3 5) ) , ( ( 0 0 , 8 3 , 9 5 , 0 0 ) ) ) ' ) ,
-ST_DIFFERENCE (
-MULTIPOL
-NULL
-SELECT ST_DISTANCE ( ST_DIFFERENCE ( MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( (3 5, 2 5, 2 4, 3 4, 3 5) ) ) ' ) , MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 , 4 6 , 6 6 , 6 4 , 4 4 ) ) , ( ( 0 0 , 3 8 , 9 4 , 0 0 ) ) ) ' ) ), MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( (3 5, 2 4, 2 5, 3 5) ) , ( (3 5, 2 5, 2 4, 3 4, 3 5) ) , ( ( 0 0 , 8 3 , 9 5 , 0 0 ) ) ) ' ) ) ;
-ST_DISTANCE ( ST_DIFFERENCE ( MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( (3 5, 2 5, 2 4, 3 4, 3 5) ) ) ' ) , MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 ,
-NULL
-SELECT ASTEXT(ST_INTERSECTION( GEOMETRYFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(7 7,5.33333333333333 7),LINESTRING(5.33333333333333 7,0 7,5 8,5.33333333333333 7),LINESTRING(5.33333333333333 7,7 2,7 7),POLYGON((0 5,3 5,3 2,1 2,1 1,3 1,3 0,0 0,0 3,2 3,2 4,0 4,0 5)))'), geomETRYFROMTEXT(' MULTILINESTRING( ( 5 1 , 3 7 , 6 1 , 7 0 ) , ( 1 6 , 8 5 , 7 5 , 5 6 ) )') ));
-ASTEXT(ST_INTERSECTION( GEOMETRYFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(7 7,5.33333333333333 7),LINESTRING(5.33333333333333 7,0 7,5 8,5.33333333333333 7),LINESTRING(5.33333333333333 7,7 2,7 7),POLYGON((0 5,3 5,3 2,1 2,1 1,3 1,3 0,0 0,0 3,2 3,2 4,0 4,0 5))
-MULTIPOINT(7 5,7 5.142857142857142,5.899999999999998 5.300000000000001,5.799999999999997 5.600000000000001,3 7)
-SELECT ST_CROSSES( GEOMETRYFROMTEXT(' POLYGON( (3 5, 2 4, 2 5, 3 5) ) ') , POLYGONFROMTEXT(' POLYGON((2 4,3 4,3 5,2 5,2 4)) '));
-ST_CROSSES( GEOMETRYFROMTEXT(' POLYGON( (3 5, 2 4, 2 5, 3 5) ) ') , POLYGONFROMTEXT(' POLYGON((2 4,3 4,3 5,2 5,2 4)) '))
-0
-SELECT ST_WITHIN( POLYGONFROMTEXT(' POLYGON( (0 5, 3 5, 3 4, 2 0 , 1 0, 2 4 , 0 4, 0 5) ) ') , POLYGONFROMTEXT(' POLYGON( (0 5, 3 5, 3 4, 1 4 , 1 3 , 3 3 , 3 0 , 0 0 , 0 5), ( 1 1 , 2 1 , 2 2 , 1 2 , 1 1 ) ) ') );
-ST_WITHIN( POLYGONFROMTEXT(' POLYGON( (0 5, 3 5, 3 4, 2 0 , 1 0, 2 4 , 0 4, 0 5) ) ') , POLYGONFROMTEXT(' POLYGON( (0 5, 3 5, 3 4, 1 4 , 1 3 , 3 3 , 3 0 , 0 0 , 0 5), ( 1 1 , 2 1 , 2 2 , 1 2 , 1 1 ) ) ') )
-0
-SELECT ST_WITHIN( POINTFROMTEXT(' POINT(1 2 ) ') , MULTIPOLYGONFROMTEXT(' MULTIPOLYGON( ( (0 5, 3 5, 3 0, 0 0, 0 5), ( 1 1 , 2 1 , 2 4, 1 4, 1 1 ) ) ) '));
-ST_WITHIN( POINTFROMTEXT(' POINT(1 2 ) ') , MULTIPOLYGONFROMTEXT(' MULTIPOLYGON( ( (0 5, 3 5, 3 0, 0 0, 0 5), ( 1 1 , 2 1 , 2 4, 1 4, 1 1 ) ) ) '))
-1
-select ST_ASTEXT(envelope(ST_GEOMCOLLFROMTEXT('GEOMETRYCOLLECTION EMPTY')));
-ST_ASTEXT(envelope(ST_GEOMCOLLFROMTEXT('GEOMETRYCOLLECTION EMPTY')))
-GEOMETRYCOLLECTION EMPTY
-SELECT ST_EQUALS( GEOMETRYFROMTEXT(' MULTILINESTRING( (3 5, 2 5, 2 4, 3 4, 3 5) ) ') , GEOMETRYFROMTEXT(' POLYGON( (3 5, 2 5, 2 4, 3 4, 3 5) ) ') );
-ST_EQUALS( GEOMETRYFROMTEXT(' MULTILINESTRING( (3 5, 2 5, 2 4, 3 4, 3 5) ) ') , GEOMETRYFROMTEXT(' POLYGON( (3 5, 2 5, 2 4, 3 4, 3 5) ) ') )
-0
-SELECT ST_TOUCHES( GEOMETRYFROMTEXT(' LINESTRING( 1 1 , 1 4 , 5 0 , 8 3 ) ') , POLYGONFROMTEXT(' POLYGON( ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 , 4 6 , 6 6 , 6 4 , 4 4 ) ) ') );
-ST_TOUCHES( GEOMETRYFROMTEXT(' LINESTRING( 1 1 , 1 4 , 5 0 , 8 3 ) ') , POLYGONFROMTEXT(' POLYGON( ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 , 4 6 , 6 6 , 6 4 , 4 4 ) ) ') )
-0
-SELECT ST_EQUALS( MULTIPOINTFROMTEXT(' MULTIPOINT( 5 1 , 6 9 , 1 4 , 4 0 ) ') , MULTIPOINTFROMTEXT(' MULTIPOINT( 5 8 , 5 2 , 1 8 , 3 0 , 3 0 , 7 8 ) ') );
-ST_EQUALS( MULTIPOINTFROMTEXT(' MULTIPOINT( 5 1 , 6 9 , 1 4 , 4 0 ) ') , MULTIPOINTFROMTEXT(' MULTIPOINT( 5 8 , 5 2 , 1 8 , 3 0 , 3 0 , 7 8 ) ') )
-0
-SELECT ST_EQUALS( MULTIPOINTFROMTEXT(' MULTIPOINT( 5 1 , 6 9 , 1 4 , 4 0 ) ') , MULTIPOINTFROMTEXT('MULTIPOINT( 4 0 , 6 9 , 5 1, 1 4 )') );
-ST_EQUALS( MULTIPOINTFROMTEXT(' MULTIPOINT( 5 1 , 6 9 , 1 4 , 4 0 ) ') , MULTIPOINTFROMTEXT('MULTIPOINT( 4 0 , 6 9 , 5 1, 1 4 )') )
-1
-SELECT ST_WITHIN( MULTIPOINTFROMTEXT(' MULTIPOINT( 2 9 , 2 9 , 4 9 , 9 1 ) ') , POLYGONFROMTEXT(' POLYGON( ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 , 4 6 , 6 6 , 6 4 , 4 4 ) ) '));
-ST_WITHIN( MULTIPOINTFROMTEXT(' MULTIPOINT( 2 9 , 2 9 , 4 9 , 9 1 ) ') , POLYGONFROMTEXT(' POLYGON( ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 , 4 6 , 6 6 , 6 4 , 4 4 ) ) '))
-0
-SELECT ST_INTERSECTS( GeomFromText('MULTILINESTRING( ( 4030 3045 , 3149 2461 , 3004 3831 , 3775 2976 ) )') , GeomFromText('LINESTRING(3058.41 3187.91,3081.52 3153.19,3042.99 3127.57,3019.89 3162.29,3039.07 3175.05,3039.07 3175.05,3058.41 3187.91,3081.52 3153.19,3042.99 3127.57,3019.89 3162.29)') );
-ST_INTERSECTS( GeomFromText('MULTILINESTRING( ( 4030 3045 , 3149 2461 , 3004 3831 , 3775 2976 ) )') , GeomFromText('LINESTRING(3058.41 3187.91,3081.52 3153.19,3042.99 3127.57,3019.89 3162.29,3039.07 3175.05,3039.07 3175.05,3058.41 3187.91,3081.52 3153.19,
-1
-SELECT ST_NUMPOINTS(ST_EXTERIORRING(ST_BUFFER( POLYGONFROMTEXT( 'POLYGON( ( 0.0 -3.0,
- -2.910427500435995 0.727606875108998,
- -0.910427500435995 8.727606875108998,
- 7.664100588675687 1.503849116986468,
- 1.664100588675687 -2.496150883013531,
- 0.0 -3.0
-))' ), 3 )));
-ST_NUMPOINTS(ST_EXTERIORRING(ST_BUFFER( POLYGONFROMTEXT( 'POLYGON( ( 0.0 -3.0,
- -2.910427500435995 0.727606875108998,
- -0.910427500435995 8.727606875108998,
- 7.664100588675687 1.503849116986468,
- 1.664100588675687 -2.496150883013531,
- 0.0 -3.0
-))' ),
-136
-select astext(buffer(st_linestringfromwkb(linestring(point(-1,1), point(-1,-2))),-1));
-astext(buffer(st_linestringfromwkb(linestring(point(-1,1), point(-1,-2))),-1))
-GEOMETRYCOLLECTION EMPTY
-select ST_Touches(ST_LineFromText('LINESTRING(0 0,5 5)'),ST_PointFromText('POINT(0 0)'));
-ST_Touches(ST_LineFromText('LINESTRING(0 0,5 5)'),ST_PointFromText('POINT(0 0)'))
-1
-select ST_Touches(ST_PolygonFromText('POLYGON((0 0,0 5,5 5,5 0,0 0))'),ST_PointFromText('POINT(0 0)'));
-ST_Touches(ST_PolygonFromText('POLYGON((0 0,0 5,5 5,5 0,0 0))'),ST_PointFromText('POINT(0 0)'))
-1
-select ST_Touches(ST_PointFromText('POINT(0 0)'),ST_PointFromText('POINT(0 0)'));
-ST_Touches(ST_PointFromText('POINT(0 0)'),ST_PointFromText('POINT(0 0)'))
-0
-SELECT ST_RELATE(
-ST_DIFFERENCE(
-GEOMETRYFROMTEXT('
- MULTILINESTRING(
- ( 12841 36140, 8005 31007, 26555 31075, 52765 41191,
- 28978 6548, 45720 32057, 53345 3221 ),
- ( 8304 59107, 25233 31592, 40502 25303, 8205 42940 ),
- ( 7829 7305, 58841 56759, 64115 8512, 37562 54145, 2210 14701 ),
- ( 20379 2805, 40807 27770, 28147 14883, 26439 29383, 55663 5086 ),
- ( 35944 64702, 14433 23728, 49317 26241, 790 16941 )
- )
- '),
-GEOMETRYFROMTEXT('POINT(46061 13545)')
-),
-GEOMETRYFROMTEXT('POINT(4599 60359)'),
-'F*FFFF**F'
- ) as relate_res;
-relate_res
-0
-DROP TABLE IF EXISTS p1;
-CREATE PROCEDURE p1(dist DOUBLE, geom TEXT)
-BEGIN
-DECLARE g GEOMETRY;
-SET g=GeomFromText(geom);
-SELECT geom AS `-----`;
-SELECT dist, GeometryType(@buf:=ST_Buffer(g, dist)) AS `buffer`, ROUND(ST_AREA(@buf),2) AS buf_area;
-END|
-#
-# Testing ST_BUFFER with positive distance
-#
------
-POINT(0 0))
-dist buffer buf_area
-1 POLYGON 3.14
------
-LineString(0 1, 1 1))
-dist buffer buf_area
-1 POLYGON 5.14
------
-LineString(9 9,8 1,1 5,0 0)
-dist buffer buf_area
-1 POLYGON 44.63
------
-Polygon((2 2,2 8,8 8,8 2,2 2))
-dist buffer buf_area
-1 POLYGON 63.14
------
-Polygon((0 0,0 8,8 8,8 0,0 0),(2 2,6 2,6 6,2 6,2 2))
-dist buffer buf_area
-1 POLYGON 95.14
------
-Polygon((0 0, 0 8, 8 8, 8 10, -10 10, -10 0, 0 0))
-dist buffer buf_area
-1 POLYGON 174.93
------
-MultiPoint(9 9,8 1,1 5)
-dist buffer buf_area
-1 MULTIPOLYGON 9.42
------
-MultiLineString((0 0,2 2))
-dist buffer buf_area
-1 POLYGON 8.80
------
-MultiLineString((0 0,2 2,0 4))
-dist buffer buf_area
-1 POLYGON 14.24
------
-MultiLineString((0 0,2 2),(0 2,2 0))
-dist buffer buf_area
-1 POLYGON 13.59
------
-MultiLineString((2 2,2 8,-2 8),(-6 -6, 6 6),(10 10, 14 14))
-dist buffer buf_area
-1 MULTIPOLYGON 70.06
------
-MultiPolygon(((2 2,2 8,8 8,8 2,2 2)), ((9 9,8 1,1 5,9 9)))
-dist buffer buf_area
-1 POLYGON 73.18
------
-MultiPolygon(((2 2,2 8,8 8,8 2,2 2), (4 4,4 6,6 6,6 4,4 4)),((9 9,8 1,1 5,9 9)))
-dist buffer buf_area
-1 POLYGON 73.18
------
-GeometryCollection(Point(0 0))
-dist buffer buf_area
-1 POLYGON 3.14
------
-GeometryCollection(LineString(0 0, 2 2)))
-dist buffer buf_area
-1 POLYGON 8.80
------
-GeometryCollection(Polygon((2 2,2 8,8 8,8 2,2 2))))
-dist buffer buf_area
-1 POLYGON 63.14
------
-GeometryCollection(MultiPoint(9 9,8 1,1 5))
-dist buffer buf_area
-1 MULTIPOLYGON 9.42
------
-GeometryCollection(MultiLineString((0 0,0 1),(3 0,3 1)))
-dist buffer buf_area
-1 MULTIPOLYGON 10.28
------
-GeometryCollection(MultiPolygon(((0 0, 3 0, 3 3, 0 3, 0 0)),((6 6,6 9,9 9,9 6,6 6))))
-dist buffer buf_area
-1 MULTIPOLYGON 48.28
------
-GeometryCollection(Point(9 9),LineString(1 5,0 0),Polygon((2 2,2 8,8 8,8 2,2 2)))
-dist buffer buf_area
-1 POLYGON 75.92
-#
-# Testing ST_BUFFER with zero distance
-#
------
-POINT(0 0))
-dist buffer buf_area
-0 POINT 0.00
------
-LineString(0 1, 1 1))
-dist buffer buf_area
-0 LINESTRING 0.00
------
-LineString(9 9,8 1,1 5,0 0)
-dist buffer buf_area
-0 LINESTRING 0.00
------
-Polygon((2 2,2 8,8 8,8 2,2 2))
-dist buffer buf_area
-0 POLYGON 36.00
------
-Polygon((0 0,0 8,8 8,8 0,0 0),(2 2,6 2,6 6,2 6,2 2))
-dist buffer buf_area
-0 POLYGON 48.00
------
-Polygon((0 0, 0 8, 8 8, 8 10, -10 10, -10 0, 0 0))
-dist buffer buf_area
-0 POLYGON 116.00
------
-MultiPoint(9 9,8 1,1 5)
-dist buffer buf_area
-0 MULTIPOINT NULL
------
-MultiLineString((0 0,2 2))
-dist buffer buf_area
-0 MULTILINESTRING NULL
------
-MultiLineString((0 0,2 2,0 4))
-dist buffer buf_area
-0 MULTILINESTRING NULL
------
-MultiLineString((0 0,2 2),(0 2,2 0))
-dist buffer buf_area
-0 MULTILINESTRING NULL
------
-MultiLineString((2 2,2 8,-2 8),(-6 -6, 6 6),(10 10, 14 14))
-dist buffer buf_area
-0 MULTILINESTRING NULL
------
-MultiPolygon(((2 2,2 8,8 8,8 2,2 2)), ((9 9,8 1,1 5,9 9)))
-dist buffer buf_area
-0 MULTIPOLYGON 66.00
------
-MultiPolygon(((2 2,2 8,8 8,8 2,2 2), (4 4,4 6,6 6,6 4,4 4)),((9 9,8 1,1 5,9 9)))
-dist buffer buf_area
-0 MULTIPOLYGON 62.00
------
-GeometryCollection(Point(0 0))
-dist buffer buf_area
-0 GEOMETRYCOLLECTION 0.00
------
-GeometryCollection(LineString(0 0, 2 2)))
-dist buffer buf_area
-0 GEOMETRYCOLLECTION 0.00
------
-GeometryCollection(Polygon((2 2,2 8,8 8,8 2,2 2))))
-dist buffer buf_area
-0 GEOMETRYCOLLECTION 36.00
------
-GeometryCollection(MultiPoint(9 9,8 1,1 5))
-dist buffer buf_area
-0 GEOMETRYCOLLECTION NULL
------
-GeometryCollection(MultiLineString((0 0,0 1),(3 0,3 1)))
-dist buffer buf_area
-0 GEOMETRYCOLLECTION NULL
------
-GeometryCollection(MultiPolygon(((0 0, 3 0, 3 3, 0 3, 0 0)),((6 6,6 9,9 9,9 6,6 6))))
-dist buffer buf_area
-0 GEOMETRYCOLLECTION 18.00
------
-GeometryCollection(Point(9 9),LineString(1 5,0 0),Polygon((2 2,2 8,8 8,8 2,2 2)))
-dist buffer buf_area
-0 GEOMETRYCOLLECTION 36.00
-#
-# Testing ST_BUFFER with negative distance
-#
------
-POINT(0 0))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-LineString(0 1, 1 1))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-LineString(9 9,8 1,1 5,0 0)
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-Polygon((2 2,2 8,8 8,8 2,2 2))
-dist buffer buf_area
--1 POLYGON 16.00
------
-MultiPoint(9 9,8 1,1 5)
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-MultiLineString((0 0,2 2))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-MultiLineString((0 0,2 2,0 4))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-MultiLineString((0 0,2 2),(0 2,2 0))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-MultiLineString((2 2,2 8,-2 8),(-6 -6, 6 6),(10 10, 14 14))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-GeometryCollection(Point(0 0))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-GeometryCollection(LineString(0 0, 2 2)))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-GeometryCollection(Polygon((2 2,2 8,8 8,8 2,2 2))))
-dist buffer buf_area
--1 POLYGON 16.00
------
-GeometryCollection(MultiPoint(9 9,8 1,1 5))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-GeometryCollection(MultiLineString((0 0,0 1),(3 0,3 1)))
-dist buffer buf_area
--1 GEOMETRYCOLLECTION 0.00
------
-GeometryCollection(Point(9 9),LineString(1 5,0 0),Polygon((2 2,2 8,8 8,8 2,2 2)))
-dist buffer buf_area
--1 POLYGON 16.00
-SELECT ST_CONTAINS(
-GeomFromText('MULTIPOLYGON(((0 0, 0 5, 5 5, 5 0, 0 0)),((6 6, 6 11, 11 11, 11 6, 6 6)))'),
-GeomFromText('POINT(5 10)'));
-ST_CONTAINS(
-GeomFromText('MULTIPOLYGON(((0 0, 0 5, 5 5, 5 0, 0 0)),((6 6, 6 11, 11 11, 11 6, 6 6)))'),
-GeomFromText('POINT(5 10)'))
-0
-SELECT AsText(ST_UNION(
-GeomFromText('MULTIPOLYGON(((0 0, 0 5, 5 5, 5 0, 0 0)),((6 6, 6 11, 11 11, 11 6, 6 6)))'),
-GeomFromText('POINT(5 10)')));
-AsText(ST_UNION(
-GeomFromText('MULTIPOLYGON(((0 0, 0 5, 5 5, 5 0, 0 0)),((6 6, 6 11, 11 11, 11 6, 6 6)))'),
-GeomFromText('POINT(5 10)')))
-GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)),POLYGON((6 6,6 11,11 11,11 6,6 6)),POINT(5 10))
-DROP PROCEDURE p1;
-#
-# Bug #13833019 ASSERTION `T1->RESULT_RANGE' FAILED IN GCALC_OPERATION_REDUCER::END_COUPLE
-#
-SELECT GeometryType(ST_BUFFER(MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((0 0,9 4,3 3,0 0)),((2 2,2 2,8 8,2 3,2 2)))'), 3));
-GeometryType(ST_BUFFER(MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((0 0,9 4,3 3,0 0)),((2 2,2 2,8 8,2 3,2 2)))'), 3))
-POLYGON
-#
-# Bug #13832749 HANDLE_FATAL_SIGNAL IN GCALC_FUNCTION::COUNT_INTERNAL
-#
-SELECT GeometryType(ST_BUFFER(MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((3 5,2 5,2 4,3 4,3 5)),((2 2,2 8,8 8,8 2,2 2), (4 4,4 6,6 6,6 4,4 4)), ((9 9,8 1,1 5,9 9)))'),1));
-GeometryType(ST_BUFFER(MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((3 5,2 5,2 4,3 4,3 5)),((2 2,2 8,8 8,8 2,2 2), (4 4,4 6,6 6,6 4,4 4)), ((9 9,8 1,1 5,9 9)))'),1))
-POLYGON
-#
-# Bug#13358363 - ASSERTION: N > 0 && N < SINUSES_CALCULATED*2+1 | GET_N_SINCOS/ADD_EDGE_BUFFER
-#
-DO ST_BUFFER(ST_GEOMCOLLFROMTEXT('linestring(1 1,2 2)'),'');
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT ST_WITHIN(
-LINESTRINGFROMTEXT(' LINESTRING(3 8,9 2,3 8,3 3,7 6,4 7,4 7,8 1) '),
-ST_BUFFER(MULTIPOLYGONFROMTEXT(' MULTIPOLYGON(((3 5,2 5,2 4,3 4,3 5)),((2 2,2 8,8 8,8 2,2 2),(4 4,4 6,6 6,6 4,4 4)),((0 5,3 5,3 2,1 2,1 1,3 1,3 0,0 0,0 3,2 3,2 4,0 4,0 5))) '),
-ST_NUMINTERIORRINGS(POLYGONFROMTEXT('POLYGON((3 5,2 4,2 5,3 5)) '))));
-ST_WITHIN(
-LINESTRINGFROMTEXT(' LINESTRING(3 8,9 2,3 8,3 3,7 6,4 7,4 7,8 1) '),
-ST_BUFFER(MULTIPOLYGONFROMTEXT(' MULTIPOLYGON(((3 5,2 5,2 4,3 4,3 5)),((2 2,2 8,8 8,8 2,2 2),(4 4,4 6,6 6,6 4,4 4)),((0 5,3 5,3 2,1 2,1 1,3 1,3 0,0 0,0 3,2 3,2 4,0 4,0 5))) ')
-0
-SELECT ST_DIMENSION(ST_BUFFER(POLYGONFROMTEXT(' POLYGON((3 5,2 5,2 4,3 4,3 5)) '),
-ST_NUMINTERIORRINGS(POLYGONFROMTEXT(' POLYGON((0 0,9 3,4 2,0 0))'))));
-ST_DIMENSION(ST_BUFFER(POLYGONFROMTEXT(' POLYGON((3 5,2 5,2 4,3 4,3 5)) '),
-ST_NUMINTERIORRINGS(POLYGONFROMTEXT(' POLYGON((0 0,9 3,4 2,0 0))'))))
-2
-SELECT ST_NUMINTERIORRINGS(
-ST_ENVELOPE(ST_BUFFER(MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((3 5,2 5,2 4,3 4,3 5))) '),
-SRID(MULTILINESTRINGFROMTEXT('MULTILINESTRING((2 2,4 2,1 2,2 4,2 2)) ')))));
-ST_NUMINTERIORRINGS(
-ST_ENVELOPE(ST_BUFFER(MULTIPOLYGONFROMTEXT('MULTIPOLYGON(((3 5,2 5,2 4,3 4,3 5))) '),
-SRID(MULTILINESTRINGFROMTEXT('MULTILINESTRING((2 2,4 2,1 2,2 4,2 2)) ')))))
-0
-SELECT ASTEXT(ST_BUFFER(POLYGONFROMTEXT(' POLYGON((9 9,5 2,4 5,9 9))'),
-SRID(GEOMETRYFROMTEXT(' MULTIPOINT(8 4,5 0,7 8,6 9,3 4,7 3,5 5) '))));
-ASTEXT(ST_BUFFER(POLYGONFROMTEXT(' POLYGON((9 9,5 2,4 5,9 9))'),
-SRID(GEOMETRYFROMTEXT(' MULTIPOINT(8 4,5 0,7 8,6 9,3 4,7 3,5 5) '))))
-POLYGON((9 9,5 2,4 5,9 9))
diff --git a/mysql-test/r/gis-rt-precise.result b/mysql-test/r/gis-rt-precise.result
deleted file mode 100644
index d3308ed90ba..00000000000
--- a/mysql-test/r/gis-rt-precise.result
+++ /dev/null
@@ -1,84 +0,0 @@
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-fid INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-g GEOMETRY NOT NULL,
-SPATIAL KEY(g)
-) ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `fid` int(11) NOT NULL AUTO_INCREMENT,
- `g` geometry NOT NULL,
- PRIMARY KEY (`fid`),
- SPATIAL KEY `g` (`g`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT count(*) FROM t1;
-count(*)
-150
-EXPLAIN SELECT fid, AsText(g) FROM t1 WHERE ST_Within(g, GeomFromText('Polygon((140 140,160 140,160 160,140 140))'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range g g 34 NULL 8 Using where
-SELECT fid, AsText(g) FROM t1 WHERE ST_Within(g, GeomFromText('Polygon((140 140,160 140,160 160,140 160,140 140))'));
-fid AsText(g)
-1 LINESTRING(150 150,150 150)
-3 LINESTRING(148 148,152 152)
-4 LINESTRING(147 147,153 153)
-5 LINESTRING(146 146,154 154)
-6 LINESTRING(145 145,155 155)
-7 LINESTRING(144 144,156 156)
-8 LINESTRING(143 143,157 157)
-9 LINESTRING(142 142,158 158)
-10 LINESTRING(141 141,159 159)
-11 LINESTRING(140 140,160 160)
-2 LINESTRING(149 149,151 151)
-DROP TABLE t1;
-CREATE TABLE t1 (
-fid INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-g GEOMETRY NOT NULL
-) ENGINE=MyISAM;
-ALTER TABLE t1 ADD SPATIAL KEY(g);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `fid` int(11) NOT NULL AUTO_INCREMENT,
- `g` geometry NOT NULL,
- PRIMARY KEY (`fid`),
- SPATIAL KEY `g` (`g`)
-) ENGINE=MyISAM AUTO_INCREMENT=101 DEFAULT CHARSET=latin1
-SELECT count(*) FROM t1;
-count(*)
-100
-EXPLAIN SELECT fid, AsText(g) FROM t1 WHERE ST_Within(g,
-GeomFromText('Polygon((40 40,60 40,60 60,40 40))'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range g g 34 NULL 4 Using where
-SELECT fid, AsText(g) FROM t1 WHERE ST_Within(g,
-GeomFromText('Polygon((40 40,60 40,60 60,40 40))'));
-fid AsText(g)
-46 LINESTRING(51 41,60 50)
-56 LINESTRING(41 41,50 50)
-45 LINESTRING(51 51,60 60)
-DROP TABLE t1;
-End of 5.5 tests.
-CREATE TABLE t1 (
-coordinate point NOT NULL,
-SPATIAL KEY coordinate (coordinate)
-) ENGINE=Aria DEFAULT CHARSET=ascii PAGE_CHECKSUM=1;
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-coordinate point NO MUL NULL
-INSERT INTO t1 (coordinate) VALUES(ST_PointFromText("POINT(0 0)"));
-INSERT INTO t1 (coordinate) VALUES(ST_PointFromText("POINT(10 0)"));
-INSERT INTO t1 (coordinate) VALUES(ST_PointFromText("POINT(10 10)"));
-INSERT INTO t1 (coordinate) VALUES(ST_PointFromText("POINT(0 10)"));
-INSERT INTO t1 (coordinate) VALUES(ST_PointFromText("POINT(5 5)"));
-SELECT astext(coordinate) FROM t1 WHERE ST_Intersects(ST_LineFromText("LINESTRING(0 0, 10 0, 10 10, 0 10)"), coordinate);
-astext(coordinate)
-POINT(0 0)
-POINT(10 0)
-POINT(10 10)
-POINT(0 10)
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-coordinate point NO MUL NULL
-DROP TABLE t1;
diff --git a/mysql-test/r/gis-rtree.result b/mysql-test/r/gis-rtree.result
deleted file mode 100644
index 5d4708dd111..00000000000
--- a/mysql-test/r/gis-rtree.result
+++ /dev/null
@@ -1,1630 +0,0 @@
-CREATE TABLE t1 (
-fid INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-g GEOMETRY NOT NULL,
-SPATIAL KEY(g)
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `fid` int(11) NOT NULL AUTO_INCREMENT,
- `g` geometry NOT NULL,
- PRIMARY KEY (`fid`),
- SPATIAL KEY `g` (`g`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(150 150, 150 150)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(149 149, 151 151)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(148 148, 152 152)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(147 147, 153 153)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(146 146, 154 154)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(145 145, 155 155)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(144 144, 156 156)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(143 143, 157 157)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(142 142, 158 158)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(141 141, 159 159)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(140 140, 160 160)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(139 139, 161 161)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(138 138, 162 162)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(137 137, 163 163)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(136 136, 164 164)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(135 135, 165 165)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(134 134, 166 166)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(133 133, 167 167)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(132 132, 168 168)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(131 131, 169 169)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(130 130, 170 170)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(129 129, 171 171)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(128 128, 172 172)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(127 127, 173 173)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(126 126, 174 174)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(125 125, 175 175)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(124 124, 176 176)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(123 123, 177 177)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(122 122, 178 178)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(121 121, 179 179)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(120 120, 180 180)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(119 119, 181 181)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(118 118, 182 182)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(117 117, 183 183)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(116 116, 184 184)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(115 115, 185 185)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(114 114, 186 186)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(113 113, 187 187)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(112 112, 188 188)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(111 111, 189 189)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(110 110, 190 190)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(109 109, 191 191)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(108 108, 192 192)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(107 107, 193 193)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(106 106, 194 194)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(105 105, 195 195)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(104 104, 196 196)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(103 103, 197 197)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(102 102, 198 198)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(101 101, 199 199)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(100 100, 200 200)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(99 99, 201 201)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(98 98, 202 202)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(97 97, 203 203)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(96 96, 204 204)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(95 95, 205 205)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(94 94, 206 206)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(93 93, 207 207)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(92 92, 208 208)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(91 91, 209 209)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(90 90, 210 210)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(89 89, 211 211)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(88 88, 212 212)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(87 87, 213 213)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(86 86, 214 214)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(85 85, 215 215)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(84 84, 216 216)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(83 83, 217 217)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(82 82, 218 218)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(81 81, 219 219)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(80 80, 220 220)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(79 79, 221 221)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(78 78, 222 222)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(77 77, 223 223)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(76 76, 224 224)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(75 75, 225 225)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(74 74, 226 226)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(73 73, 227 227)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(72 72, 228 228)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(71 71, 229 229)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(70 70, 230 230)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(69 69, 231 231)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(68 68, 232 232)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(67 67, 233 233)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(66 66, 234 234)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(65 65, 235 235)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(64 64, 236 236)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(63 63, 237 237)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(62 62, 238 238)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(61 61, 239 239)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(60 60, 240 240)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(59 59, 241 241)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(58 58, 242 242)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(57 57, 243 243)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(56 56, 244 244)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(55 55, 245 245)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(54 54, 246 246)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(53 53, 247 247)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(52 52, 248 248)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(51 51, 249 249)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(50 50, 250 250)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(49 49, 251 251)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(48 48, 252 252)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(47 47, 253 253)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(46 46, 254 254)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(45 45, 255 255)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(44 44, 256 256)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(43 43, 257 257)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(42 42, 258 258)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(41 41, 259 259)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(40 40, 260 260)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(39 39, 261 261)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(38 38, 262 262)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(37 37, 263 263)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(36 36, 264 264)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(35 35, 265 265)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(34 34, 266 266)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(33 33, 267 267)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(32 32, 268 268)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(31 31, 269 269)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(30 30, 270 270)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(29 29, 271 271)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(28 28, 272 272)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(27 27, 273 273)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(26 26, 274 274)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(25 25, 275 275)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(24 24, 276 276)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(23 23, 277 277)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(22 22, 278 278)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(21 21, 279 279)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(20 20, 280 280)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(19 19, 281 281)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(18 18, 282 282)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(17 17, 283 283)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(16 16, 284 284)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(15 15, 285 285)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(14 14, 286 286)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(13 13, 287 287)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(12 12, 288 288)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(11 11, 289 289)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(10 10, 290 290)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(9 9, 291 291)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(8 8, 292 292)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(7 7, 293 293)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(6 6, 294 294)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(5 5, 295 295)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(4 4, 296 296)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(3 3, 297 297)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(2 2, 298 298)'));
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(1 1, 299 299)'));
-SELECT count(*) FROM t1;
-count(*)
-150
-EXPLAIN SELECT fid, AsText(g) FROM t1 WHERE Within(g, GeomFromText('Polygon((140 140,160 140,160 160,140 160,140 140))'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range g g 34 NULL 8 Using where
-SELECT fid, AsText(g) FROM t1 WHERE Within(g, GeomFromText('Polygon((140 140,160 140,160 160,140 160,140 140))'));
-fid AsText(g)
-1 LINESTRING(150 150,150 150)
-3 LINESTRING(148 148,152 152)
-4 LINESTRING(147 147,153 153)
-5 LINESTRING(146 146,154 154)
-6 LINESTRING(145 145,155 155)
-7 LINESTRING(144 144,156 156)
-8 LINESTRING(143 143,157 157)
-9 LINESTRING(142 142,158 158)
-10 LINESTRING(141 141,159 159)
-11 LINESTRING(140 140,160 160)
-2 LINESTRING(149 149,151 151)
-DROP TABLE t1;
-CREATE TABLE t2 (
-fid INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-g GEOMETRY NOT NULL
-);
-INSERT INTO t2 (g) VALUES (LineString(Point(10 * 10 - 9, 10 * 10 - 9), Point(10 * 10, 10 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(10 * 10 - 9, 9 * 10 - 9), Point(10 * 10, 9 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(10 * 10 - 9, 8 * 10 - 9), Point(10 * 10, 8 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(10 * 10 - 9, 7 * 10 - 9), Point(10 * 10, 7 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(10 * 10 - 9, 6 * 10 - 9), Point(10 * 10, 6 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(10 * 10 - 9, 5 * 10 - 9), Point(10 * 10, 5 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(10 * 10 - 9, 4 * 10 - 9), Point(10 * 10, 4 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(10 * 10 - 9, 3 * 10 - 9), Point(10 * 10, 3 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(10 * 10 - 9, 2 * 10 - 9), Point(10 * 10, 2 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(10 * 10 - 9, 1 * 10 - 9), Point(10 * 10, 1 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(9 * 10 - 9, 10 * 10 - 9), Point(9 * 10, 10 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(9 * 10 - 9, 9 * 10 - 9), Point(9 * 10, 9 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(9 * 10 - 9, 8 * 10 - 9), Point(9 * 10, 8 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(9 * 10 - 9, 7 * 10 - 9), Point(9 * 10, 7 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(9 * 10 - 9, 6 * 10 - 9), Point(9 * 10, 6 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(9 * 10 - 9, 5 * 10 - 9), Point(9 * 10, 5 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(9 * 10 - 9, 4 * 10 - 9), Point(9 * 10, 4 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(9 * 10 - 9, 3 * 10 - 9), Point(9 * 10, 3 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(9 * 10 - 9, 2 * 10 - 9), Point(9 * 10, 2 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(9 * 10 - 9, 1 * 10 - 9), Point(9 * 10, 1 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(8 * 10 - 9, 10 * 10 - 9), Point(8 * 10, 10 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(8 * 10 - 9, 9 * 10 - 9), Point(8 * 10, 9 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(8 * 10 - 9, 8 * 10 - 9), Point(8 * 10, 8 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(8 * 10 - 9, 7 * 10 - 9), Point(8 * 10, 7 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(8 * 10 - 9, 6 * 10 - 9), Point(8 * 10, 6 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(8 * 10 - 9, 5 * 10 - 9), Point(8 * 10, 5 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(8 * 10 - 9, 4 * 10 - 9), Point(8 * 10, 4 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(8 * 10 - 9, 3 * 10 - 9), Point(8 * 10, 3 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(8 * 10 - 9, 2 * 10 - 9), Point(8 * 10, 2 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(8 * 10 - 9, 1 * 10 - 9), Point(8 * 10, 1 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(7 * 10 - 9, 10 * 10 - 9), Point(7 * 10, 10 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(7 * 10 - 9, 9 * 10 - 9), Point(7 * 10, 9 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(7 * 10 - 9, 8 * 10 - 9), Point(7 * 10, 8 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(7 * 10 - 9, 7 * 10 - 9), Point(7 * 10, 7 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(7 * 10 - 9, 6 * 10 - 9), Point(7 * 10, 6 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(7 * 10 - 9, 5 * 10 - 9), Point(7 * 10, 5 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(7 * 10 - 9, 4 * 10 - 9), Point(7 * 10, 4 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(7 * 10 - 9, 3 * 10 - 9), Point(7 * 10, 3 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(7 * 10 - 9, 2 * 10 - 9), Point(7 * 10, 2 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(7 * 10 - 9, 1 * 10 - 9), Point(7 * 10, 1 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(6 * 10 - 9, 10 * 10 - 9), Point(6 * 10, 10 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(6 * 10 - 9, 9 * 10 - 9), Point(6 * 10, 9 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(6 * 10 - 9, 8 * 10 - 9), Point(6 * 10, 8 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(6 * 10 - 9, 7 * 10 - 9), Point(6 * 10, 7 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(6 * 10 - 9, 6 * 10 - 9), Point(6 * 10, 6 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(6 * 10 - 9, 5 * 10 - 9), Point(6 * 10, 5 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(6 * 10 - 9, 4 * 10 - 9), Point(6 * 10, 4 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(6 * 10 - 9, 3 * 10 - 9), Point(6 * 10, 3 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(6 * 10 - 9, 2 * 10 - 9), Point(6 * 10, 2 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(6 * 10 - 9, 1 * 10 - 9), Point(6 * 10, 1 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(5 * 10 - 9, 10 * 10 - 9), Point(5 * 10, 10 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(5 * 10 - 9, 9 * 10 - 9), Point(5 * 10, 9 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(5 * 10 - 9, 8 * 10 - 9), Point(5 * 10, 8 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(5 * 10 - 9, 7 * 10 - 9), Point(5 * 10, 7 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(5 * 10 - 9, 6 * 10 - 9), Point(5 * 10, 6 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(5 * 10 - 9, 5 * 10 - 9), Point(5 * 10, 5 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(5 * 10 - 9, 4 * 10 - 9), Point(5 * 10, 4 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(5 * 10 - 9, 3 * 10 - 9), Point(5 * 10, 3 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(5 * 10 - 9, 2 * 10 - 9), Point(5 * 10, 2 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(5 * 10 - 9, 1 * 10 - 9), Point(5 * 10, 1 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(4 * 10 - 9, 10 * 10 - 9), Point(4 * 10, 10 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(4 * 10 - 9, 9 * 10 - 9), Point(4 * 10, 9 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(4 * 10 - 9, 8 * 10 - 9), Point(4 * 10, 8 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(4 * 10 - 9, 7 * 10 - 9), Point(4 * 10, 7 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(4 * 10 - 9, 6 * 10 - 9), Point(4 * 10, 6 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(4 * 10 - 9, 5 * 10 - 9), Point(4 * 10, 5 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(4 * 10 - 9, 4 * 10 - 9), Point(4 * 10, 4 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(4 * 10 - 9, 3 * 10 - 9), Point(4 * 10, 3 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(4 * 10 - 9, 2 * 10 - 9), Point(4 * 10, 2 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(4 * 10 - 9, 1 * 10 - 9), Point(4 * 10, 1 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(3 * 10 - 9, 10 * 10 - 9), Point(3 * 10, 10 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(3 * 10 - 9, 9 * 10 - 9), Point(3 * 10, 9 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(3 * 10 - 9, 8 * 10 - 9), Point(3 * 10, 8 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(3 * 10 - 9, 7 * 10 - 9), Point(3 * 10, 7 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(3 * 10 - 9, 6 * 10 - 9), Point(3 * 10, 6 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(3 * 10 - 9, 5 * 10 - 9), Point(3 * 10, 5 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(3 * 10 - 9, 4 * 10 - 9), Point(3 * 10, 4 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(3 * 10 - 9, 3 * 10 - 9), Point(3 * 10, 3 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(3 * 10 - 9, 2 * 10 - 9), Point(3 * 10, 2 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(3 * 10 - 9, 1 * 10 - 9), Point(3 * 10, 1 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(2 * 10 - 9, 10 * 10 - 9), Point(2 * 10, 10 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(2 * 10 - 9, 9 * 10 - 9), Point(2 * 10, 9 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(2 * 10 - 9, 8 * 10 - 9), Point(2 * 10, 8 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(2 * 10 - 9, 7 * 10 - 9), Point(2 * 10, 7 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(2 * 10 - 9, 6 * 10 - 9), Point(2 * 10, 6 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(2 * 10 - 9, 5 * 10 - 9), Point(2 * 10, 5 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(2 * 10 - 9, 4 * 10 - 9), Point(2 * 10, 4 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(2 * 10 - 9, 3 * 10 - 9), Point(2 * 10, 3 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(2 * 10 - 9, 2 * 10 - 9), Point(2 * 10, 2 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(2 * 10 - 9, 1 * 10 - 9), Point(2 * 10, 1 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(1 * 10 - 9, 10 * 10 - 9), Point(1 * 10, 10 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(1 * 10 - 9, 9 * 10 - 9), Point(1 * 10, 9 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(1 * 10 - 9, 8 * 10 - 9), Point(1 * 10, 8 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(1 * 10 - 9, 7 * 10 - 9), Point(1 * 10, 7 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(1 * 10 - 9, 6 * 10 - 9), Point(1 * 10, 6 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(1 * 10 - 9, 5 * 10 - 9), Point(1 * 10, 5 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(1 * 10 - 9, 4 * 10 - 9), Point(1 * 10, 4 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(1 * 10 - 9, 3 * 10 - 9), Point(1 * 10, 3 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(1 * 10 - 9, 2 * 10 - 9), Point(1 * 10, 2 * 10)));
-INSERT INTO t2 (g) VALUES (LineString(Point(1 * 10 - 9, 1 * 10 - 9), Point(1 * 10, 1 * 10)));
-ALTER TABLE t2 ADD SPATIAL KEY(g);
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `fid` int(11) NOT NULL AUTO_INCREMENT,
- `g` geometry NOT NULL,
- PRIMARY KEY (`fid`),
- SPATIAL KEY `g` (`g`)
-) ENGINE=MyISAM AUTO_INCREMENT=101 DEFAULT CHARSET=latin1
-SELECT count(*) FROM t2;
-count(*)
-100
-EXPLAIN SELECT fid, AsText(g) FROM t2 WHERE Within(g,
-GeomFromText('Polygon((40 40,60 40,60 60,40 60,40 40))'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range g g 34 NULL 4 Using where
-SELECT fid, AsText(g) FROM t2 WHERE Within(g,
-GeomFromText('Polygon((40 40,60 40,60 60,40 60,40 40))'));
-fid AsText(g)
-46 LINESTRING(51 41,60 50)
-56 LINESTRING(41 41,50 50)
-45 LINESTRING(51 51,60 60)
-55 LINESTRING(41 51,50 60)
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(10 * 10 - 9, 10 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(10 * 10 - 9, 9 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(10 * 10 - 9, 8 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(10 * 10 - 9, 7 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(10 * 10 - 9, 6 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(10 * 10 - 9, 5 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(10 * 10 - 9, 4 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(10 * 10 - 9, 3 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(10 * 10 - 9, 2 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(10 * 10 - 9, 1 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(9 * 10 - 9, 10 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(9 * 10 - 9, 9 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(9 * 10 - 9, 8 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(9 * 10 - 9, 7 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(9 * 10 - 9, 6 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(9 * 10 - 9, 5 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(9 * 10 - 9, 4 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(9 * 10 - 9, 3 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(9 * 10 - 9, 2 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(9 * 10 - 9, 1 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(8 * 10 - 9, 10 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(8 * 10 - 9, 9 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(8 * 10 - 9, 8 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(8 * 10 - 9, 7 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(8 * 10 - 9, 6 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(8 * 10 - 9, 5 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(8 * 10 - 9, 4 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(8 * 10 - 9, 3 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(8 * 10 - 9, 2 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(8 * 10 - 9, 1 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(7 * 10 - 9, 10 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(7 * 10 - 9, 9 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(7 * 10 - 9, 8 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(7 * 10 - 9, 7 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(7 * 10 - 9, 6 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(7 * 10 - 9, 5 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(7 * 10 - 9, 4 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(7 * 10 - 9, 3 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(7 * 10 - 9, 2 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(7 * 10 - 9, 1 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(6 * 10 - 9, 10 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(6 * 10 - 9, 9 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(6 * 10 - 9, 8 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(6 * 10 - 9, 7 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(6 * 10 - 9, 6 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(6 * 10 - 9, 5 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(6 * 10 - 9, 4 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(6 * 10 - 9, 3 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(6 * 10 - 9, 2 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(6 * 10 - 9, 1 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(5 * 10 - 9, 10 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(5 * 10 - 9, 9 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(5 * 10 - 9, 8 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(5 * 10 - 9, 7 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(5 * 10 - 9, 6 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(5 * 10 - 9, 5 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(5 * 10 - 9, 4 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(5 * 10 - 9, 3 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(5 * 10 - 9, 2 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(5 * 10 - 9, 1 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(4 * 10 - 9, 10 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(4 * 10 - 9, 9 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(4 * 10 - 9, 8 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(4 * 10 - 9, 7 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(4 * 10 - 9, 6 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(4 * 10 - 9, 5 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(4 * 10 - 9, 4 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(4 * 10 - 9, 3 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(4 * 10 - 9, 2 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(4 * 10 - 9, 1 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(3 * 10 - 9, 10 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(3 * 10 - 9, 9 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(3 * 10 - 9, 8 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(3 * 10 - 9, 7 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(3 * 10 - 9, 6 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(3 * 10 - 9, 5 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(3 * 10 - 9, 4 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(3 * 10 - 9, 3 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(3 * 10 - 9, 2 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(3 * 10 - 9, 1 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(2 * 10 - 9, 10 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(2 * 10 - 9, 9 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(2 * 10 - 9, 8 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(2 * 10 - 9, 7 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(2 * 10 - 9, 6 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(2 * 10 - 9, 5 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(2 * 10 - 9, 4 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(2 * 10 - 9, 3 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(2 * 10 - 9, 2 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(2 * 10 - 9, 1 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(1 * 10 - 9, 10 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(1 * 10 - 9, 9 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(1 * 10 - 9, 8 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(1 * 10 - 9, 7 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(1 * 10 - 9, 6 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(1 * 10 - 9, 5 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(1 * 10 - 9, 4 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(1 * 10 - 9, 3 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(1 * 10 - 9, 2 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DELETE FROM t2 WHERE Within(g, Envelope(GeometryFromWKB(Point(1 * 10 - 9, 1 * 10 - 9), 0)));
-SELECT count(*) FROM t2;
-count(*)
-100
-DROP TABLE t2;
-CREATE TABLE t1 (a geometry NOT NULL, SPATIAL (a));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(100 100, 200 200, 300 300)"));
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-drop table t1;
-CREATE TABLE t1 (
-fid INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-g GEOMETRY NOT NULL,
-SPATIAL KEY(g)
-);
-INSERT INTO t1 (g) VALUES (GeomFromText('LineString(1 2, 2 3)')),(GeomFromText('LineString(1 2, 2 4)'));
-drop table t1;
-CREATE TABLE t1 (
-line GEOMETRY NOT NULL,
-kind ENUM('po', 'pp', 'rr', 'dr', 'rd', 'ts', 'cl') NOT NULL DEFAULT 'po',
-name VARCHAR(32),
-SPATIAL KEY (line)
-);
-ALTER TABLE t1 DISABLE KEYS;
-INSERT INTO t1 (name, kind, line) VALUES
-("Aadaouane", "pp", GeomFromText("POINT(32.816667 35.983333)")),
-("Aadassiye", "pp", GeomFromText("POINT(35.816667 36.216667)")),
-("Aadbel", "pp", GeomFromText("POINT(34.533333 36.100000)")),
-("Aadchit", "pp", GeomFromText("POINT(33.347222 35.423611)")),
-("Aadchite", "pp", GeomFromText("POINT(33.347222 35.423611)")),
-("Aadchit el Qoussair", "pp", GeomFromText("POINT(33.283333 35.483333)")),
-("Aaddaye", "pp", GeomFromText("POINT(36.716667 40.833333)")),
-("'Aadeissa", "pp", GeomFromText("POINT(32.823889 35.698889)")),
-("Aaderup", "pp", GeomFromText("POINT(55.216667 11.766667)")),
-("Qalaat Aades", "pp", GeomFromText("POINT(33.503333 35.377500)")),
-("A ad'ino", "pp", GeomFromText("POINT(54.812222 38.209167)")),
-("Aadi Noia", "pp", GeomFromText("POINT(13.800000 39.833333)")),
-("Aad La Macta", "pp", GeomFromText("POINT(35.779444 -0.129167)")),
-("Aadland", "pp", GeomFromText("POINT(60.366667 5.483333)")),
-("Aadliye", "pp", GeomFromText("POINT(33.366667 36.333333)")),
-("Aadloun", "pp", GeomFromText("POINT(33.403889 35.273889)")),
-("Aadma", "pp", GeomFromText("POINT(58.798333 22.663889)")),
-("Aadma Asundus", "pp", GeomFromText("POINT(58.798333 22.663889)")),
-("Aadmoun", "pp", GeomFromText("POINT(34.150000 35.650000)")),
-("Aadneram", "pp", GeomFromText("POINT(59.016667 6.933333)")),
-("Aadneskaar", "pp", GeomFromText("POINT(58.083333 6.983333)")),
-("Aadorf", "pp", GeomFromText("POINT(47.483333 8.900000)")),
-("Aadorp", "pp", GeomFromText("POINT(52.366667 6.633333)")),
-("Aadouane", "pp", GeomFromText("POINT(32.816667 35.983333)")),
-("Aadoui", "pp", GeomFromText("POINT(34.450000 35.983333)")),
-("Aadouiye", "pp", GeomFromText("POINT(34.583333 36.183333)")),
-("Aadouss", "pp", GeomFromText("POINT(33.512500 35.601389)")),
-("Aadra", "pp", GeomFromText("POINT(33.616667 36.500000)")),
-("Aadzi", "pp", GeomFromText("POINT(38.100000 64.850000)"));
-ALTER TABLE t1 ENABLE KEYS;
-INSERT INTO t1 (name, kind, line) VALUES ("austria", "pp", GeomFromText('LINESTRING(14.9906 48.9887,14.9946 48.9904,14.9947 48.9916)'));
-drop table t1;
-CREATE TABLE t1 (st varchar(100));
-INSERT INTO t1 VALUES ("Fake string");
-CREATE TABLE t2 (geom GEOMETRY NOT NULL, SPATIAL KEY gk(geom));
-INSERT IGNORE INTO t2 SELECT GeomFromText(st) FROM t1;
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-drop table t1, t2;
-CREATE TABLE t1 (`geometry` geometry NOT NULL default '',SPATIAL KEY `gndx` (`geometry`)) DEFAULT CHARSET=latin1;
-INSERT INTO t1 (geometry) VALUES
-(PolygonFromText('POLYGON((-18.6086111000 -66.9327777000, -18.6055555000
--66.8158332999, -18.7186111000 -66.8102777000, -18.7211111000 -66.9269443999,
--18.6086111000 -66.9327777000))'));
-INSERT INTO t1 (geometry) VALUES
-(PolygonFromText('POLYGON((-65.7402776999 -96.6686111000, -65.7372222000
--96.5516666000, -65.8502777000 -96.5461111000, -65.8527777000 -96.6627777000,
--65.7402776999 -96.6686111000))'));
-check table t1 extended;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-CREATE TABLE t1 (
-c1 geometry NOT NULL default '',
-SPATIAL KEY i1 (c1)
-) DEFAULT CHARSET=latin1;
-INSERT INTO t1 (c1) VALUES (
-PolygonFromText('POLYGON((-18.6086111000 -66.9327777000,
- -18.6055555000 -66.8158332999,
- -18.7186111000 -66.8102777000,
- -18.7211111000 -66.9269443999,
- -18.6086111000 -66.9327777000))'));
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 geometry NOT NULL default '',
-SPATIAL KEY i1 (c1)
-) DEFAULT CHARSET=latin1;
-INSERT INTO t1 (c1) VALUES (
-PolygonFromText('POLYGON((-18.6086111000 -66.9327777000,
- -18.6055555000 -66.8158332999,
- -18.7186111000 -66.8102777000,
- -18.7211111000 -66.9269443999,
- -18.6086111000 -66.9327777000))'));
-INSERT INTO t1 (c1) VALUES (
-PolygonFromText('POLYGON((-65.7402776999 -96.6686111000,
- -65.7372222000 -96.5516666000,
- -65.8502777000 -96.5461111000,
- -65.8527777000 -96.6627777000,
- -65.7402776999 -96.6686111000))'));
-INSERT INTO t1 (c1) VALUES (
-PolygonFromText('POLYGON((-18.6086111000 -66.9327777000,
- -18.6055555000 -66.8158332999,
- -18.7186111000 -66.8102777000,
- -18.7211111000 -66.9269443999,
- -18.6086111000 -66.9327777000))'));
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-CREATE TABLE t1 (foo GEOMETRY NOT NULL, SPATIAL INDEX(foo) );
-INSERT INTO t1 (foo) VALUES (POINT(1,1));
-INSERT INTO t1 (foo) VALUES (POINT(1,0));
-INSERT INTO t1 (foo) VALUES (POINT(0,1));
-INSERT INTO t1 (foo) VALUES (POINT(0,0));
-SELECT 1 FROM t1 WHERE foo != POINT(0,0);
-1
-1
-1
-1
-DROP TABLE t1;
-CREATE TABLE t1 (id bigint(12) unsigned NOT NULL auto_increment,
-c2 varchar(15) collate utf8_bin default NULL,
-c1 varchar(15) collate utf8_bin default NULL,
-c3 varchar(10) collate utf8_bin default NULL,
-spatial_point point NOT NULL,
-PRIMARY KEY(id),
-SPATIAL KEY (spatial_point)
-) DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-INSERT INTO t1 (c2, c1, c3, spatial_point) VALUES
-('y', 's', 'j', GeomFromText('POINT(167 74)')),
-('r', 'n', 'd', GeomFromText('POINT(215 118)')),
-('g', 'n', 'e', GeomFromText('POINT(203 98)')),
-('h', 'd', 'd', GeomFromText('POINT(54 193)')),
-('r', 'x', 'y', GeomFromText('POINT(47 69)')),
-('t', 'q', 'r', GeomFromText('POINT(109 42)')),
-('a', 'z', 'd', GeomFromText('POINT(0 154)')),
-('x', 'v', 'o', GeomFromText('POINT(174 131)')),
-('b', 'r', 'a', GeomFromText('POINT(114 253)')),
-('x', 'z', 'i', GeomFromText('POINT(163 21)')),
-('w', 'p', 'i', GeomFromText('POINT(42 102)')),
-('g', 'j', 'j', GeomFromText('POINT(170 133)')),
-('m', 'g', 'n', GeomFromText('POINT(28 22)')),
-('b', 'z', 'h', GeomFromText('POINT(174 28)')),
-('q', 'k', 'f', GeomFromText('POINT(233 73)')),
-('w', 'w', 'a', GeomFromText('POINT(124 200)')),
-('t', 'j', 'w', GeomFromText('POINT(252 101)')),
-('d', 'r', 'd', GeomFromText('POINT(98 18)')),
-('w', 'o', 'y', GeomFromText('POINT(165 31)')),
-('y', 'h', 't', GeomFromText('POINT(14 220)')),
-('d', 'p', 'u', GeomFromText('POINT(223 196)')),
-('g', 'y', 'g', GeomFromText('POINT(207 96)')),
-('x', 'm', 'n', GeomFromText('POINT(214 3)')),
-('g', 'v', 'e', GeomFromText('POINT(140 205)')),
-('g', 'm', 'm', GeomFromText('POINT(10 236)')),
-('i', 'r', 'j', GeomFromText('POINT(137 228)')),
-('w', 's', 'p', GeomFromText('POINT(115 6)')),
-('o', 'n', 'k', GeomFromText('POINT(158 129)')),
-('j', 'h', 'l', GeomFromText('POINT(129 72)')),
-('f', 'x', 'l', GeomFromText('POINT(139 207)')),
-('u', 'd', 'n', GeomFromText('POINT(125 109)')),
-('b', 'a', 'z', GeomFromText('POINT(30 32)')),
-('m', 'h', 'o', GeomFromText('POINT(251 251)')),
-('f', 'r', 'd', GeomFromText('POINT(243 211)')),
-('b', 'd', 'r', GeomFromText('POINT(232 80)')),
-('g', 'k', 'v', GeomFromText('POINT(15 100)')),
-('i', 'f', 'c', GeomFromText('POINT(109 66)')),
-('r', 't', 'j', GeomFromText('POINT(178 6)')),
-('y', 'n', 'f', GeomFromText('POINT(233 211)')),
-('f', 'y', 'm', GeomFromText('POINT(99 16)')),
-('z', 'q', 'l', GeomFromText('POINT(39 49)')),
-('j', 'c', 'r', GeomFromText('POINT(75 187)')),
-('c', 'y', 'y', GeomFromText('POINT(246 253)')),
-('w', 'u', 'd', GeomFromText('POINT(56 190)')),
-('n', 'q', 'm', GeomFromText('POINT(73 149)')),
-('d', 'y', 'a', GeomFromText('POINT(134 6)')),
-('z', 's', 'w', GeomFromText('POINT(216 225)')),
-('d', 'u', 'k', GeomFromText('POINT(132 70)')),
-('f', 'v', 't', GeomFromText('POINT(187 141)')),
-('r', 'r', 'a', GeomFromText('POINT(152 39)')),
-('y', 'p', 'o', GeomFromText('POINT(45 27)')),
-('p', 'n', 'm', GeomFromText('POINT(228 148)')),
-('e', 'g', 'e', GeomFromText('POINT(88 81)')),
-('m', 'a', 'h', GeomFromText('POINT(35 29)')),
-('m', 'h', 'f', GeomFromText('POINT(30 71)')),
-('h', 'k', 'i', GeomFromText('POINT(244 78)')),
-('z', 'v', 'd', GeomFromText('POINT(241 38)')),
-('q', 'l', 'j', GeomFromText('POINT(13 71)')),
-('s', 'p', 'g', GeomFromText('POINT(108 38)')),
-('q', 's', 'j', GeomFromText('POINT(92 101)')),
-('l', 'h', 'g', GeomFromText('POINT(120 78)')),
-('w', 't', 'b', GeomFromText('POINT(193 109)')),
-('b', 's', 's', GeomFromText('POINT(223 211)')),
-('w', 'w', 'y', GeomFromText('POINT(122 42)')),
-('q', 'c', 'c', GeomFromText('POINT(104 102)')),
-('w', 'g', 'n', GeomFromText('POINT(213 120)')),
-('p', 'q', 'a', GeomFromText('POINT(247 148)')),
-('c', 'z', 'e', GeomFromText('POINT(18 106)')),
-('z', 'u', 'n', GeomFromText('POINT(70 133)')),
-('j', 'n', 'x', GeomFromText('POINT(232 13)')),
-('e', 'h', 'f', GeomFromText('POINT(22 135)')),
-('w', 'l', 'f', GeomFromText('POINT(9 180)')),
-('a', 'v', 'q', GeomFromText('POINT(163 228)')),
-('i', 'z', 'o', GeomFromText('POINT(180 100)')),
-('e', 'c', 'l', GeomFromText('POINT(182 231)')),
-('c', 'k', 'o', GeomFromText('POINT(19 60)')),
-('q', 'f', 'p', GeomFromText('POINT(79 95)')),
-('m', 'd', 'r', GeomFromText('POINT(3 127)')),
-('m', 'e', 't', GeomFromText('POINT(136 154)')),
-('w', 'w', 'w', GeomFromText('POINT(102 15)')),
-('l', 'n', 'q', GeomFromText('POINT(71 196)')),
-('p', 'k', 'c', GeomFromText('POINT(47 139)')),
-('j', 'o', 'r', GeomFromText('POINT(177 128)')),
-('j', 'q', 'a', GeomFromText('POINT(170 6)')),
-('b', 'a', 'o', GeomFromText('POINT(63 211)')),
-('g', 's', 'o', GeomFromText('POINT(144 251)')),
-('w', 'u', 'w', GeomFromText('POINT(221 214)')),
-('g', 'a', 'm', GeomFromText('POINT(14 102)')),
-('u', 'q', 'z', GeomFromText('POINT(86 200)')),
-('k', 'a', 'm', GeomFromText('POINT(144 222)')),
-('j', 'u', 'r', GeomFromText('POINT(216 142)')),
-('q', 'k', 'v', GeomFromText('POINT(121 236)')),
-('p', 'o', 'r', GeomFromText('POINT(108 102)')),
-('b', 'd', 'x', GeomFromText('POINT(127 198)')),
-('k', 's', 'a', GeomFromText('POINT(2 150)')),
-('f', 'm', 'f', GeomFromText('POINT(160 191)')),
-('q', 'y', 'x', GeomFromText('POINT(98 111)')),
-('o', 'f', 'm', GeomFromText('POINT(232 218)')),
-('c', 'w', 'j', GeomFromText('POINT(156 165)')),
-('s', 'q', 'v', GeomFromText('POINT(98 161)'));
-SET @@RAND_SEED1=692635050, @@RAND_SEED2=297339954;
-DELETE FROM t1 ORDER BY RAND() LIMIT 10;
-SET @@RAND_SEED1=159925977, @@RAND_SEED2=942570618;
-DELETE FROM t1 ORDER BY RAND() LIMIT 10;
-SET @@RAND_SEED1=328169745, @@RAND_SEED2=410451954;
-DELETE FROM t1 ORDER BY RAND() LIMIT 10;
-SET @@RAND_SEED1=178507359, @@RAND_SEED2=332493072;
-DELETE FROM t1 ORDER BY RAND() LIMIT 10;
-SET @@RAND_SEED1=1034033013, @@RAND_SEED2=558966507;
-DELETE FROM t1 ORDER BY RAND() LIMIT 10;
-UPDATE t1 set spatial_point=GeomFromText('POINT(230 9)') where c1 like 'y%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(95 35)') where c1 like 'j%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(93 99)') where c1 like 'a%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(19 81)') where c1 like 'r%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(20 177)') where c1 like 'h%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(221 193)') where c1 like 'u%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(195 205)') where c1 like 'd%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(15 213)') where c1 like 'u%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(214 63)') where c1 like 'n%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(243 171)') where c1 like 'c%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(198 82)') where c1 like 'y%';
-INSERT INTO t1 (c2, c1, c3, spatial_point) VALUES
-('f', 'y', 'p', GeomFromText('POINT(109 235)')),
-('b', 'e', 'v', GeomFromText('POINT(20 48)')),
-('i', 'u', 'f', GeomFromText('POINT(15 55)')),
-('o', 'r', 'z', GeomFromText('POINT(105 64)')),
-('a', 'p', 'a', GeomFromText('POINT(142 236)')),
-('g', 'i', 'k', GeomFromText('POINT(10 49)')),
-('x', 'z', 'x', GeomFromText('POINT(192 200)')),
-('c', 'v', 'r', GeomFromText('POINT(94 168)')),
-('y', 'z', 'e', GeomFromText('POINT(141 51)')),
-('h', 'm', 'd', GeomFromText('POINT(35 251)')),
-('v', 'm', 'q', GeomFromText('POINT(44 90)')),
-('j', 'l', 'z', GeomFromText('POINT(67 237)')),
-('i', 'v', 'a', GeomFromText('POINT(75 14)')),
-('b', 'q', 't', GeomFromText('POINT(153 33)')),
-('e', 'm', 'a', GeomFromText('POINT(247 49)')),
-('l', 'y', 'g', GeomFromText('POINT(56 203)')),
-('v', 'o', 'r', GeomFromText('POINT(90 54)')),
-('r', 'n', 'd', GeomFromText('POINT(135 83)')),
-('j', 't', 'u', GeomFromText('POINT(174 239)')),
-('u', 'n', 'g', GeomFromText('POINT(104 191)')),
-('p', 'q', 'y', GeomFromText('POINT(63 171)')),
-('o', 'q', 'p', GeomFromText('POINT(192 103)')),
-('f', 'x', 'e', GeomFromText('POINT(244 30)')),
-('n', 'x', 'c', GeomFromText('POINT(92 103)')),
-('r', 'q', 'z', GeomFromText('POINT(166 20)')),
-('s', 'a', 'j', GeomFromText('POINT(137 205)')),
-('z', 't', 't', GeomFromText('POINT(99 134)')),
-('o', 'm', 'j', GeomFromText('POINT(217 3)')),
-('n', 'h', 'j', GeomFromText('POINT(211 17)')),
-('v', 'v', 'a', GeomFromText('POINT(41 137)')),
-('q', 'o', 'j', GeomFromText('POINT(5 92)')),
-('z', 'y', 'e', GeomFromText('POINT(175 212)')),
-('j', 'z', 'h', GeomFromText('POINT(224 194)')),
-('a', 'g', 'm', GeomFromText('POINT(31 119)')),
-('p', 'c', 'f', GeomFromText('POINT(17 221)')),
-('t', 'h', 'k', GeomFromText('POINT(26 203)')),
-('u', 'w', 'p', GeomFromText('POINT(47 185)')),
-('z', 'a', 'c', GeomFromText('POINT(61 133)')),
-('u', 'k', 'a', GeomFromText('POINT(210 115)')),
-('k', 'f', 'h', GeomFromText('POINT(125 113)')),
-('t', 'v', 'y', GeomFromText('POINT(12 239)')),
-('u', 'v', 'd', GeomFromText('POINT(90 24)')),
-('m', 'y', 'w', GeomFromText('POINT(25 243)')),
-('d', 'n', 'g', GeomFromText('POINT(122 92)')),
-('z', 'm', 'f', GeomFromText('POINT(235 110)')),
-('q', 'd', 'f', GeomFromText('POINT(233 217)')),
-('a', 'v', 'u', GeomFromText('POINT(69 59)')),
-('x', 'k', 'p', GeomFromText('POINT(240 14)')),
-('i', 'v', 'r', GeomFromText('POINT(154 42)')),
-('w', 'h', 'l', GeomFromText('POINT(178 156)')),
-('d', 'h', 'n', GeomFromText('POINT(65 157)')),
-('c', 'k', 'z', GeomFromText('POINT(62 33)')),
-('e', 'l', 'w', GeomFromText('POINT(162 1)')),
-('r', 'f', 'i', GeomFromText('POINT(127 71)')),
-('q', 'm', 'c', GeomFromText('POINT(63 118)')),
-('c', 'h', 'u', GeomFromText('POINT(205 203)')),
-('d', 't', 'p', GeomFromText('POINT(234 87)')),
-('s', 'g', 'h', GeomFromText('POINT(149 34)')),
-('o', 'b', 'q', GeomFromText('POINT(159 179)')),
-('k', 'u', 'f', GeomFromText('POINT(202 254)')),
-('u', 'f', 'g', GeomFromText('POINT(70 15)')),
-('x', 's', 'b', GeomFromText('POINT(25 181)')),
-('s', 'c', 'g', GeomFromText('POINT(252 17)')),
-('a', 'c', 'f', GeomFromText('POINT(89 67)')),
-('r', 'e', 'q', GeomFromText('POINT(55 54)')),
-('f', 'i', 'k', GeomFromText('POINT(178 230)')),
-('p', 'e', 'l', GeomFromText('POINT(198 28)')),
-('w', 'o', 'd', GeomFromText('POINT(204 189)')),
-('c', 'a', 'g', GeomFromText('POINT(230 178)')),
-('r', 'o', 'e', GeomFromText('POINT(61 116)')),
-('w', 'a', 'a', GeomFromText('POINT(178 237)')),
-('v', 'd', 'e', GeomFromText('POINT(70 85)')),
-('k', 'c', 'e', GeomFromText('POINT(147 118)')),
-('d', 'q', 't', GeomFromText('POINT(218 77)')),
-('k', 'g', 'f', GeomFromText('POINT(192 113)')),
-('w', 'n', 'e', GeomFromText('POINT(92 124)')),
-('r', 'm', 'q', GeomFromText('POINT(130 65)')),
-('o', 'r', 'r', GeomFromText('POINT(174 233)')),
-('k', 'n', 't', GeomFromText('POINT(175 147)')),
-('q', 'm', 'r', GeomFromText('POINT(18 208)')),
-('l', 'd', 'i', GeomFromText('POINT(13 104)')),
-('w', 'o', 'y', GeomFromText('POINT(207 39)')),
-('p', 'u', 'o', GeomFromText('POINT(114 31)')),
-('y', 'a', 'p', GeomFromText('POINT(106 59)')),
-('a', 'x', 'z', GeomFromText('POINT(17 57)')),
-('v', 'h', 'x', GeomFromText('POINT(170 13)')),
-('t', 's', 'u', GeomFromText('POINT(84 18)')),
-('z', 'z', 'f', GeomFromText('POINT(250 197)')),
-('l', 'z', 't', GeomFromText('POINT(59 80)')),
-('j', 'g', 's', GeomFromText('POINT(54 26)')),
-('g', 'v', 'm', GeomFromText('POINT(89 98)')),
-('q', 'v', 'b', GeomFromText('POINT(39 240)')),
-('x', 'k', 'v', GeomFromText('POINT(246 207)')),
-('k', 'u', 'i', GeomFromText('POINT(105 111)')),
-('w', 'z', 's', GeomFromText('POINT(235 8)')),
-('d', 'd', 'd', GeomFromText('POINT(105 4)')),
-('c', 'z', 'q', GeomFromText('POINT(13 140)')),
-('m', 'k', 'i', GeomFromText('POINT(208 120)')),
-('g', 'a', 'g', GeomFromText('POINT(9 182)')),
-('z', 'j', 'r', GeomFromText('POINT(149 153)')),
-('h', 'f', 'g', GeomFromText('POINT(81 236)')),
-('m', 'e', 'q', GeomFromText('POINT(209 215)')),
-('c', 'h', 'y', GeomFromText('POINT(235 70)')),
-('i', 'e', 'g', GeomFromText('POINT(138 26)')),
-('m', 't', 'u', GeomFromText('POINT(119 237)')),
-('o', 'w', 's', GeomFromText('POINT(193 166)')),
-('f', 'm', 'q', GeomFromText('POINT(85 96)')),
-('x', 'l', 'x', GeomFromText('POINT(58 115)')),
-('x', 'q', 'u', GeomFromText('POINT(108 210)')),
-('b', 'h', 'i', GeomFromText('POINT(250 139)')),
-('y', 'd', 'x', GeomFromText('POINT(199 135)')),
-('w', 'h', 'p', GeomFromText('POINT(247 233)')),
-('p', 'z', 't', GeomFromText('POINT(148 249)')),
-('q', 'a', 'u', GeomFromText('POINT(174 78)')),
-('v', 't', 'm', GeomFromText('POINT(70 228)')),
-('t', 'n', 'f', GeomFromText('POINT(123 2)')),
-('x', 't', 'b', GeomFromText('POINT(35 50)')),
-('r', 'j', 'f', GeomFromText('POINT(200 51)')),
-('s', 'q', 'o', GeomFromText('POINT(23 184)')),
-('u', 'v', 'z', GeomFromText('POINT(7 113)')),
-('v', 'u', 'l', GeomFromText('POINT(145 190)')),
-('o', 'k', 'i', GeomFromText('POINT(161 122)')),
-('l', 'y', 'e', GeomFromText('POINT(17 232)')),
-('t', 'b', 'e', GeomFromText('POINT(120 50)')),
-('e', 's', 'u', GeomFromText('POINT(254 1)')),
-('d', 'd', 'u', GeomFromText('POINT(167 140)')),
-('o', 'b', 'x', GeomFromText('POINT(186 237)')),
-('m', 's', 's', GeomFromText('POINT(172 149)')),
-('t', 'y', 'a', GeomFromText('POINT(149 85)')),
-('x', 't', 'r', GeomFromText('POINT(10 165)')),
-('g', 'c', 'e', GeomFromText('POINT(95 165)')),
-('e', 'e', 'z', GeomFromText('POINT(98 65)')),
-('f', 'v', 'i', GeomFromText('POINT(149 144)')),
-('o', 'p', 'm', GeomFromText('POINT(233 67)')),
-('t', 'u', 'b', GeomFromText('POINT(109 215)')),
-('o', 'o', 'b', GeomFromText('POINT(130 48)')),
-('e', 'm', 'h', GeomFromText('POINT(88 189)')),
-('e', 'v', 'y', GeomFromText('POINT(55 29)')),
-('e', 't', 'm', GeomFromText('POINT(129 55)')),
-('p', 'p', 'i', GeomFromText('POINT(126 222)')),
-('c', 'i', 'c', GeomFromText('POINT(19 158)')),
-('c', 'b', 's', GeomFromText('POINT(13 19)')),
-('u', 'y', 'a', GeomFromText('POINT(114 5)')),
-('a', 'o', 'f', GeomFromText('POINT(227 232)')),
-('t', 'c', 'z', GeomFromText('POINT(63 62)')),
-('d', 'o', 'k', GeomFromText('POINT(48 228)')),
-('x', 'c', 'e', GeomFromText('POINT(204 2)')),
-('e', 'e', 'g', GeomFromText('POINT(125 43)')),
-('o', 'r', 'f', GeomFromText('POINT(171 140)'));
-UPDATE t1 set spatial_point=GeomFromText('POINT(163 157)') where c1 like 'w%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(53 151)') where c1 like 'd%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(96 183)') where c1 like 'r%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(57 91)') where c1 like 'q%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(202 110)') where c1 like 'c%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(120 137)') where c1 like 'w%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(207 147)') where c1 like 'c%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(31 125)') where c1 like 'e%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(27 36)') where c1 like 'r%';
-INSERT INTO t1 (c2, c1, c3, spatial_point) VALUES
-('b', 'c', 'e', GeomFromText('POINT(41 137)')),
-('p', 'y', 'k', GeomFromText('POINT(50 22)')),
-('s', 'c', 'h', GeomFromText('POINT(208 173)')),
-('x', 'u', 'l', GeomFromText('POINT(199 175)')),
-('s', 'r', 'h', GeomFromText('POINT(85 192)')),
-('j', 'k', 'u', GeomFromText('POINT(18 25)')),
-('p', 'w', 'h', GeomFromText('POINT(152 197)')),
-('e', 'd', 'c', GeomFromText('POINT(229 3)')),
-('o', 'x', 'k', GeomFromText('POINT(187 155)')),
-('o', 'b', 'k', GeomFromText('POINT(208 150)')),
-('d', 'a', 'j', GeomFromText('POINT(70 87)')),
-('f', 'e', 'k', GeomFromText('POINT(156 96)')),
-('u', 'y', 'p', GeomFromText('POINT(239 193)')),
-('n', 'v', 'p', GeomFromText('POINT(223 98)')),
-('z', 'j', 'r', GeomFromText('POINT(87 89)')),
-('h', 'x', 'x', GeomFromText('POINT(92 0)')),
-('r', 'v', 'r', GeomFromText('POINT(159 139)')),
-('v', 'g', 'g', GeomFromText('POINT(16 229)')),
-('z', 'k', 'u', GeomFromText('POINT(99 52)')),
-('p', 'p', 'o', GeomFromText('POINT(105 125)')),
-('w', 'h', 'y', GeomFromText('POINT(105 154)')),
-('v', 'y', 'z', GeomFromText('POINT(134 238)')),
-('x', 'o', 'o', GeomFromText('POINT(178 88)')),
-('z', 'w', 'd', GeomFromText('POINT(123 60)')),
-('q', 'f', 'u', GeomFromText('POINT(64 90)')),
-('s', 'n', 't', GeomFromText('POINT(50 138)')),
-('v', 'p', 't', GeomFromText('POINT(114 91)')),
-('a', 'o', 'n', GeomFromText('POINT(78 43)')),
-('k', 'u', 'd', GeomFromText('POINT(185 161)')),
-('w', 'd', 'n', GeomFromText('POINT(25 92)')),
-('k', 'w', 'a', GeomFromText('POINT(59 238)')),
-('t', 'c', 'f', GeomFromText('POINT(65 87)')),
-('g', 's', 'p', GeomFromText('POINT(238 126)')),
-('d', 'n', 'y', GeomFromText('POINT(107 173)')),
-('l', 'a', 'w', GeomFromText('POINT(125 152)')),
-('m', 'd', 'j', GeomFromText('POINT(146 53)')),
-('q', 'm', 'c', GeomFromText('POINT(217 187)')),
-('i', 'r', 'r', GeomFromText('POINT(6 113)')),
-('e', 'j', 'b', GeomFromText('POINT(37 83)')),
-('w', 'w', 'h', GeomFromText('POINT(83 199)')),
-('k', 'b', 's', GeomFromText('POINT(170 64)')),
-('s', 'b', 'c', GeomFromText('POINT(163 130)')),
-('c', 'h', 'a', GeomFromText('POINT(141 3)')),
-('k', 'j', 'u', GeomFromText('POINT(143 76)')),
-('r', 'h', 'o', GeomFromText('POINT(243 92)')),
-('i', 'd', 'b', GeomFromText('POINT(205 13)')),
-('r', 'y', 'q', GeomFromText('POINT(138 8)')),
-('m', 'o', 'i', GeomFromText('POINT(36 45)')),
-('v', 'g', 'm', GeomFromText('POINT(0 40)')),
-('f', 'e', 'i', GeomFromText('POINT(76 6)')),
-('c', 'q', 'q', GeomFromText('POINT(115 248)')),
-('x', 'c', 'i', GeomFromText('POINT(29 74)')),
-('l', 's', 't', GeomFromText('POINT(83 18)')),
-('t', 't', 'a', GeomFromText('POINT(26 168)')),
-('u', 'n', 'x', GeomFromText('POINT(200 110)')),
-('j', 'b', 'd', GeomFromText('POINT(216 136)')),
-('s', 'p', 'w', GeomFromText('POINT(38 156)')),
-('f', 'b', 'v', GeomFromText('POINT(29 186)')),
-('v', 'e', 'r', GeomFromText('POINT(149 40)')),
-('v', 't', 'm', GeomFromText('POINT(184 24)')),
-('y', 'g', 'a', GeomFromText('POINT(219 105)')),
-('s', 'f', 'i', GeomFromText('POINT(114 130)')),
-('e', 'q', 'h', GeomFromText('POINT(203 135)')),
-('h', 'g', 'b', GeomFromText('POINT(9 208)')),
-('o', 'l', 'r', GeomFromText('POINT(245 79)')),
-('s', 's', 'v', GeomFromText('POINT(238 198)')),
-('w', 'w', 'z', GeomFromText('POINT(209 232)')),
-('v', 'd', 'n', GeomFromText('POINT(30 193)')),
-('q', 'w', 'k', GeomFromText('POINT(133 18)')),
-('o', 'h', 'o', GeomFromText('POINT(42 140)')),
-('f', 'f', 'h', GeomFromText('POINT(145 1)')),
-('u', 's', 'r', GeomFromText('POINT(70 62)')),
-('x', 'n', 'q', GeomFromText('POINT(33 86)')),
-('u', 'p', 'v', GeomFromText('POINT(232 220)')),
-('z', 'e', 'a', GeomFromText('POINT(130 69)')),
-('r', 'u', 'z', GeomFromText('POINT(243 241)')),
-('b', 'n', 't', GeomFromText('POINT(120 12)')),
-('u', 'f', 's', GeomFromText('POINT(190 212)')),
-('a', 'd', 'q', GeomFromText('POINT(235 191)')),
-('f', 'q', 'm', GeomFromText('POINT(176 2)')),
-('n', 'c', 's', GeomFromText('POINT(218 163)')),
-('e', 'm', 'h', GeomFromText('POINT(163 108)')),
-('c', 'f', 'l', GeomFromText('POINT(220 115)')),
-('c', 'v', 'q', GeomFromText('POINT(66 45)')),
-('w', 'v', 'x', GeomFromText('POINT(251 220)')),
-('f', 'w', 'z', GeomFromText('POINT(146 149)')),
-('h', 'n', 'h', GeomFromText('POINT(148 128)')),
-('y', 'k', 'v', GeomFromText('POINT(28 110)')),
-('c', 'x', 'q', GeomFromText('POINT(13 13)')),
-('e', 'd', 's', GeomFromText('POINT(91 190)')),
-('c', 'w', 'c', GeomFromText('POINT(10 231)')),
-('u', 'j', 'n', GeomFromText('POINT(250 21)')),
-('w', 'n', 'x', GeomFromText('POINT(141 69)')),
-('f', 'p', 'y', GeomFromText('POINT(228 246)')),
-('d', 'q', 'f', GeomFromText('POINT(194 22)')),
-('d', 'z', 'l', GeomFromText('POINT(233 181)')),
-('c', 'a', 'q', GeomFromText('POINT(183 96)')),
-('m', 'i', 'd', GeomFromText('POINT(117 226)')),
-('z', 'y', 'y', GeomFromText('POINT(62 81)')),
-('g', 'v', 'm', GeomFromText('POINT(66 158)'));
-SET @@RAND_SEED1=481064922, @@RAND_SEED2=438133497;
-DELETE FROM t1 ORDER BY RAND() LIMIT 10;
-SET @@RAND_SEED1=280535103, @@RAND_SEED2=444518646;
-DELETE FROM t1 ORDER BY RAND() LIMIT 10;
-SET @@RAND_SEED1=1072017234, @@RAND_SEED2=484203885;
-DELETE FROM t1 ORDER BY RAND() LIMIT 10;
-SET @@RAND_SEED1=358851897, @@RAND_SEED2=358495224;
-DELETE FROM t1 ORDER BY RAND() LIMIT 10;
-SET @@RAND_SEED1=509031459, @@RAND_SEED2=675962925;
-DELETE FROM t1 ORDER BY RAND() LIMIT 10;
-UPDATE t1 set spatial_point=GeomFromText('POINT(61 203)') where c1 like 'y%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(202 194)') where c1 like 'f%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(228 18)') where c1 like 'h%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(88 18)') where c1 like 'l%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(176 94)') where c1 like 'e%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(44 47)') where c1 like 'g%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(95 191)') where c1 like 'b%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(179 218)') where c1 like 'y%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(239 40)') where c1 like 'g%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(248 41)') where c1 like 'q%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(167 82)') where c1 like 't%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(13 104)') where c1 like 'u%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(139 84)') where c1 like 'a%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(145 108)') where c1 like 'p%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(147 57)') where c1 like 't%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(217 144)') where c1 like 'n%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(160 224)') where c1 like 'w%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(38 28)') where c1 like 'j%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(104 114)') where c1 like 'q%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(88 19)') where c1 like 'c%';
-INSERT INTO t1 (c2, c1, c3, spatial_point) VALUES
-('f', 'x', 'p', GeomFromText('POINT(92 181)')),
-('s', 'i', 'c', GeomFromText('POINT(49 60)')),
-('c', 'c', 'i', GeomFromText('POINT(7 57)')),
-('n', 'g', 'k', GeomFromText('POINT(252 105)')),
-('g', 'b', 'm', GeomFromText('POINT(180 11)')),
-('u', 'l', 'r', GeomFromText('POINT(32 90)')),
-('c', 'x', 'e', GeomFromText('POINT(143 24)')),
-('x', 'u', 'a', GeomFromText('POINT(123 92)')),
-('s', 'b', 'h', GeomFromText('POINT(190 108)')),
-('c', 'x', 'b', GeomFromText('POINT(104 100)')),
-('i', 'd', 't', GeomFromText('POINT(214 104)')),
-('r', 'w', 'g', GeomFromText('POINT(29 67)')),
-('b', 'f', 'g', GeomFromText('POINT(149 46)')),
-('r', 'r', 'd', GeomFromText('POINT(242 196)')),
-('j', 'l', 'a', GeomFromText('POINT(90 196)')),
-('e', 't', 'b', GeomFromText('POINT(190 64)')),
-('l', 'x', 'w', GeomFromText('POINT(250 73)')),
-('q', 'y', 'r', GeomFromText('POINT(120 182)')),
-('s', 'j', 'a', GeomFromText('POINT(180 175)')),
-('n', 'i', 'y', GeomFromText('POINT(124 136)')),
-('s', 'x', 's', GeomFromText('POINT(176 209)')),
-('u', 'f', 's', GeomFromText('POINT(215 173)')),
-('m', 'j', 'x', GeomFromText('POINT(44 140)')),
-('v', 'g', 'x', GeomFromText('POINT(177 233)')),
-('u', 't', 'b', GeomFromText('POINT(136 197)')),
-('f', 'g', 'b', GeomFromText('POINT(10 8)')),
-('v', 'c', 'j', GeomFromText('POINT(13 81)')),
-('d', 's', 'q', GeomFromText('POINT(200 100)')),
-('a', 'p', 'j', GeomFromText('POINT(33 40)')),
-('i', 'c', 'g', GeomFromText('POINT(168 204)')),
-('k', 'h', 'i', GeomFromText('POINT(93 243)')),
-('s', 'b', 's', GeomFromText('POINT(157 13)')),
-('v', 'l', 'l', GeomFromText('POINT(103 6)')),
-('r', 'b', 'k', GeomFromText('POINT(244 137)')),
-('l', 'd', 'r', GeomFromText('POINT(162 254)')),
-('q', 'b', 'z', GeomFromText('POINT(136 246)')),
-('x', 'x', 'p', GeomFromText('POINT(120 37)')),
-('m', 'e', 'z', GeomFromText('POINT(203 167)')),
-('q', 'n', 'p', GeomFromText('POINT(94 119)')),
-('b', 'g', 'u', GeomFromText('POINT(93 248)')),
-('r', 'v', 'v', GeomFromText('POINT(53 88)')),
-('y', 'a', 'i', GeomFromText('POINT(98 219)')),
-('a', 's', 'g', GeomFromText('POINT(173 138)')),
-('c', 'a', 't', GeomFromText('POINT(235 135)')),
-('q', 'm', 'd', GeomFromText('POINT(224 208)')),
-('e', 'p', 'k', GeomFromText('POINT(161 238)')),
-('n', 'g', 'q', GeomFromText('POINT(35 204)')),
-('t', 't', 'x', GeomFromText('POINT(230 178)')),
-('w', 'f', 'a', GeomFromText('POINT(150 221)')),
-('z', 'm', 'z', GeomFromText('POINT(119 42)')),
-('l', 'j', 's', GeomFromText('POINT(97 96)')),
-('f', 'z', 'x', GeomFromText('POINT(208 65)')),
-('i', 'v', 'c', GeomFromText('POINT(145 79)')),
-('l', 'f', 'k', GeomFromText('POINT(83 234)')),
-('u', 'a', 's', GeomFromText('POINT(250 49)')),
-('o', 'k', 'p', GeomFromText('POINT(46 50)')),
-('d', 'e', 'z', GeomFromText('POINT(30 198)')),
-('r', 'r', 'l', GeomFromText('POINT(78 189)')),
-('y', 'l', 'f', GeomFromText('POINT(188 132)')),
-('d', 'q', 'm', GeomFromText('POINT(247 107)')),
-('p', 'j', 'n', GeomFromText('POINT(148 227)')),
-('b', 'o', 'i', GeomFromText('POINT(172 25)')),
-('e', 'v', 'd', GeomFromText('POINT(94 248)')),
-('q', 'd', 'f', GeomFromText('POINT(15 29)')),
-('w', 'b', 'b', GeomFromText('POINT(74 111)')),
-('g', 'q', 'f', GeomFromText('POINT(107 215)')),
-('o', 'h', 'r', GeomFromText('POINT(25 168)')),
-('u', 't', 'w', GeomFromText('POINT(251 188)')),
-('h', 's', 'w', GeomFromText('POINT(254 247)')),
-('f', 'f', 'b', GeomFromText('POINT(166 103)'));
-SET @@RAND_SEED1=866613816, @@RAND_SEED2=92289615;
-INSERT INTO t1 (c2, c1, c3, spatial_point) VALUES
-('l', 'c', 'l', GeomFromText('POINT(202 98)')),
-('k', 'c', 'b', GeomFromText('POINT(46 206)')),
-('r', 'y', 'm', GeomFromText('POINT(74 140)')),
-('y', 'z', 'd', GeomFromText('POINT(200 160)')),
-('s', 'y', 's', GeomFromText('POINT(156 205)')),
-('u', 'v', 'p', GeomFromText('POINT(86 82)')),
-('j', 's', 's', GeomFromText('POINT(91 233)')),
-('x', 'j', 'f', GeomFromText('POINT(3 14)')),
-('l', 'z', 'v', GeomFromText('POINT(123 156)')),
-('h', 'i', 'o', GeomFromText('POINT(145 229)')),
-('o', 'r', 'd', GeomFromText('POINT(15 22)')),
-('f', 'x', 't', GeomFromText('POINT(21 60)')),
-('t', 'g', 'h', GeomFromText('POINT(50 153)')),
-('g', 'u', 'b', GeomFromText('POINT(82 85)')),
-('v', 'a', 'p', GeomFromText('POINT(231 178)')),
-('n', 'v', 'o', GeomFromText('POINT(183 25)')),
-('j', 'n', 'm', GeomFromText('POINT(50 144)')),
-('e', 'f', 'i', GeomFromText('POINT(46 16)')),
-('d', 'w', 'a', GeomFromText('POINT(66 6)')),
-('f', 'x', 'a', GeomFromText('POINT(107 197)')),
-('m', 'o', 'a', GeomFromText('POINT(142 80)')),
-('q', 'l', 'g', GeomFromText('POINT(251 23)')),
-('c', 's', 's', GeomFromText('POINT(158 43)')),
-('y', 'd', 'o', GeomFromText('POINT(196 228)')),
-('d', 'p', 'l', GeomFromText('POINT(107 5)')),
-('h', 'a', 'b', GeomFromText('POINT(183 166)')),
-('m', 'w', 'p', GeomFromText('POINT(19 59)')),
-('b', 'y', 'o', GeomFromText('POINT(178 30)')),
-('x', 'w', 'i', GeomFromText('POINT(168 94)')),
-('t', 'k', 'z', GeomFromText('POINT(171 5)')),
-('r', 'm', 'a', GeomFromText('POINT(222 19)')),
-('u', 'v', 'e', GeomFromText('POINT(224 80)')),
-('q', 'r', 'k', GeomFromText('POINT(212 218)')),
-('d', 'p', 'j', GeomFromText('POINT(169 7)')),
-('d', 'r', 'v', GeomFromText('POINT(193 23)')),
-('n', 'y', 'y', GeomFromText('POINT(130 178)')),
-('m', 'z', 'r', GeomFromText('POINT(81 200)')),
-('j', 'e', 'w', GeomFromText('POINT(145 239)')),
-('v', 'h', 'x', GeomFromText('POINT(24 105)')),
-('z', 'm', 'a', GeomFromText('POINT(175 129)')),
-('b', 'c', 'v', GeomFromText('POINT(213 10)')),
-('t', 't', 'u', GeomFromText('POINT(2 129)')),
-('r', 's', 'v', GeomFromText('POINT(209 192)')),
-('x', 'p', 'g', GeomFromText('POINT(43 63)')),
-('t', 'e', 'u', GeomFromText('POINT(139 210)')),
-('l', 'e', 't', GeomFromText('POINT(245 148)')),
-('a', 'i', 'k', GeomFromText('POINT(167 195)')),
-('m', 'o', 'h', GeomFromText('POINT(206 120)')),
-('g', 'z', 's', GeomFromText('POINT(169 240)')),
-('z', 'u', 's', GeomFromText('POINT(202 120)')),
-('i', 'b', 'a', GeomFromText('POINT(216 18)')),
-('w', 'y', 'g', GeomFromText('POINT(119 236)')),
-('h', 'y', 'p', GeomFromText('POINT(161 24)'));
-UPDATE t1 set spatial_point=GeomFromText('POINT(33 100)') where c1 like 't%';
-UPDATE t1 set spatial_point=GeomFromText('POINT(41 46)') where c1 like 'f%';
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-create table t1 (a geometry not null, spatial index(a));
-insert into t1 values (POINT(1.1517219314031e+164, 131072));
-insert into t1 values (POINT(9.1248812352444e+192, 2.9740338169556e+284));
-insert into t1 values (POINT(4.7783097267365e-299, -0));
-insert into t1 values (POINT(1.49166814624e-154, 2.0880974297595e-53));
-insert into t1 values (POINT(4.0917382598702e+149, 1.2024538023802e+111));
-insert into t1 values (POINT(2.0349165139404e+236, 2.9993936277913e-241));
-insert into t1 values (POINT(2.5243548967072e-29, 1.2024538023802e+111));
-insert into t1 values (POINT(0, 6.9835074892995e-251));
-insert into t1 values (POINT(2.0880974297595e-53, 3.1050361846014e+231));
-insert into t1 values (POINT(2.8728483499323e-188, 2.4600631144627e+260));
-insert into t1 values (POINT(3.0517578125e-05, 2.0349165139404e+236));
-insert into t1 values (POINT(1.1517219314031e+164, 1.1818212630766e-125));
-insert into t1 values (POINT(2.481040258324e-265, 5.7766220027675e-275));
-insert into t1 values (POINT(2.0880974297595e-53, 2.5243548967072e-29));
-insert into t1 values (POINT(5.7766220027675e-275, 9.9464647281957e+86));
-insert into t1 values (POINT(2.2181357552967e+130, 3.7857669957337e-270));
-insert into t1 values (POINT(4.5767114681874e-246, 3.6893488147419e+19));
-insert into t1 values (POINT(4.5767114681874e-246, 3.7537584144024e+255));
-insert into t1 values (POINT(3.7857669957337e-270, 1.8033161362863e-130));
-insert into t1 values (POINT(0, 5.8774717541114e-39));
-insert into t1 values (POINT(1.1517219314031e+164, 2.2761049594727e-159));
-insert into t1 values (POINT(6.243497100632e+144, 3.7857669957337e-270));
-insert into t1 values (POINT(3.7857669957337e-270, 2.6355494858076e-82));
-insert into t1 values (POINT(2.0349165139404e+236, 3.8518598887745e-34));
-insert into t1 values (POINT(4.6566128730774e-10, 2.0880974297595e-53));
-insert into t1 values (POINT(2.0880974297595e-53, 1.8827498946116e-183));
-insert into t1 values (POINT(1.8033161362863e-130, 9.1248812352444e+192));
-insert into t1 values (POINT(4.7783097267365e-299, 2.2761049594727e-159));
-insert into t1 values (POINT(1.94906280228e+289, 1.2338789709327e-178));
-drop table t1;
-CREATE TABLE t1(foo GEOMETRY NOT NULL, SPATIAL INDEX(foo) );
-INSERT INTO t1(foo) VALUES (NULL);
-ERROR 23000: Column 'foo' cannot be null
-INSERT IGNORE INTO t1() VALUES ();
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-INSERT INTO t1(foo) VALUES ('');
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-DROP TABLE t1;
-CREATE TABLE t1 (a INT AUTO_INCREMENT, b POINT NOT NULL, KEY (a), SPATIAL KEY (b));
-INSERT INTO t1 (b) VALUES (GeomFromText('POINT(1 2)'));
-INSERT INTO t1 (b) SELECT b FROM t1;
-INSERT INTO t1 (b) SELECT b FROM t1;
-INSERT INTO t1 (b) SELECT b FROM t1;
-INSERT INTO t1 (b) SELECT b FROM t1;
-INSERT INTO t1 (b) SELECT b FROM t1;
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b GEOMETRY NOT NULL, SPATIAL KEY b(b));
-INSERT INTO t1 VALUES (1, GEOMFROMTEXT('LINESTRING(1102218.456 1,2000000 2)'));
-INSERT INTO t1 VALUES (2, GEOMFROMTEXT('LINESTRING(1102218.456 1,2000000 2)'));
-SELECT COUNT(*) FROM t1 WHERE
-MBRINTERSECTS(b, GEOMFROMTEXT('LINESTRING(1 1,1102219 2)') );
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 IGNORE INDEX (b) WHERE
-MBRINTERSECTS(b, GEOMFROMTEXT('LINESTRING(1 1,1102219 2)') );
-COUNT(*)
-2
-DROP TABLE t1;
-#
-# Bug #48258: Assertion failed when using a spatial index
-#
-CREATE TABLE t1(a LINESTRING NOT NULL, SPATIAL KEY(a));
-INSERT INTO t1 VALUES
-(GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)')),
-(GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)'));
-EXPLAIN SELECT 1 FROM t1 WHERE a = GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a NULL NULL NULL 2 Using where
-SELECT 1 FROM t1 WHERE a = GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)');
-1
-1
-1
-EXPLAIN SELECT 1 FROM t1 WHERE a < GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a NULL NULL NULL 2 Using where
-SELECT 1 FROM t1 WHERE a < GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)');
-1
-EXPLAIN SELECT 1 FROM t1 WHERE a <= GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a NULL NULL NULL 2 Using where
-SELECT 1 FROM t1 WHERE a <= GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)');
-1
-1
-1
-EXPLAIN SELECT 1 FROM t1 WHERE a > GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a NULL NULL NULL 2 Using where
-SELECT 1 FROM t1 WHERE a > GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)');
-1
-EXPLAIN SELECT 1 FROM t1 WHERE a >= GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a NULL NULL NULL 2 Using where
-SELECT 1 FROM t1 WHERE a >= GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)');
-1
-1
-1
-DROP TABLE t1;
-#
-# Bug #51357: crash when using handler commands on spatial indexes
-#
-CREATE TABLE t1(a GEOMETRY NOT NULL,SPATIAL INDEX a(a));
-HANDLER t1 OPEN;
-HANDLER t1 READ a FIRST;
-a
-HANDLER t1 READ a NEXT;
-a
-HANDLER t1 READ a PREV;
-a
-HANDLER t1 READ a LAST;
-a
-HANDLER t1 CLOSE;
-HANDLER t1 OPEN;
-HANDLER t1 READ a FIRST;
-a
-INSERT INTO t1 VALUES (GeomFromText('Polygon((40 40,60 40,60 60,40 60,40 40))'));
-# should not crash
-HANDLER t1 READ a NEXT;
-HANDLER t1 CLOSE;
-DROP TABLE t1;
-End of 5.0 tests.
-#
-# Bug #57323/11764487: myisam corruption with insert ignore
-# and invalid spatial data
-#
-CREATE TABLE t1(a POINT NOT NULL, b GEOMETRY NOT NULL,
-SPATIAL KEY(a), SPATIAL KEY(b));
-INSERT INTO t1 VALUES(GEOMFROMTEXT("point (0 0)"), GEOMFROMTEXT("point (1 1)"));
-INSERT IGNORE INTO t1 SET a=GEOMFROMTEXT("point (-6 0)"), b=GEOMFROMTEXT("error");
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-INSERT IGNORE INTO t1 SET a=GEOMFROMTEXT("point (-6 0)"), b=NULL;
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-SELECT ASTEXT(a), ASTEXT(b) FROM t1;
-ASTEXT(a) ASTEXT(b)
-POINT(0 0) POINT(1 1)
-DROP TABLE t1;
-CREATE TABLE t1(a INT NOT NULL, b GEOMETRY NOT NULL,
-KEY(a), SPATIAL KEY(b));
-INSERT INTO t1 VALUES(0, GEOMFROMTEXT("point (1 1)"));
-INSERT IGNORE INTO t1 SET a=0, b=GEOMFROMTEXT("error");
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-INSERT IGNORE INTO t1 SET a=1, b=NULL;
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-SELECT a, ASTEXT(b) FROM t1;
-a ASTEXT(b)
-0 POINT(1 1)
-DROP TABLE t1;
-End of 5.1 tests
-CREATE TABLE t1 (
-l LINESTRING NOT NULL,
-SPATIAL KEY(l)
-);
-INSERT INTO t1 VALUES(GeomFromText('LINESTRING(0 0, 1 1)'));
-INSERT INTO t1 VALUES(GeomFromText('LINESTRING(1 1, 2 2)'));
-INSERT INTO t1 VALUES(GeomFromText('LINESTRING(2 2, 3 3)'));
-SELECT COUNT(*) FROM t1 IGNORE INDEX(l) WHERE MBRContains(l, GEOMFROMTEXT('POINT(0 0)'));
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 IGNORE INDEX(l) WHERE MBRWithin(GEOMFROMTEXT('POINT(0 0)'), l);
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 FORCE INDEX(l) WHERE MBRContains(l, GEOMFROMTEXT('POINT(0 0)'));
-COUNT(*)
-1
-SELECT COUNT(*) FROM t1 FORCE INDEX(l) WHERE MBRWithin(GEOMFROMTEXT('POINT(0 0)'), l);
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8239 Reverse spatial operations OP(const, field) do not get optimized
-#
-CREATE TABLE t1 (a GEOMETRY NOT NULL, SPATIAL KEY(a));
-INSERT INTO t1 VALUES (Point(1,2)),(Point(1,3));
-EXPLAIN SELECT * FROM t1 WHERE MBRINTERSECTS(a,Point(1,2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 34 NULL 1 Using where
-EXPLAIN SELECT * FROM t1 WHERE ST_INTERSECTS(a,Point(1,2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 34 NULL 1 Using where
-EXPLAIN SELECT * FROM t1 WHERE MBRINTERSECTS(Point(1,2),a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 34 NULL 1 Using where
-EXPLAIN SELECT * FROM t1 WHERE ST_INTERSECTS(Point(1,2),a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 34 NULL 1 Using where
-DROP TABLE t1;
-#
-# MDEV-8610 "WHERE CONTAINS(indexed_geometry_column,1)" causes full table scan
-#
-CREATE TABLE t1 (a GEOMETRY NOT NULL, SPATIAL KEY(a));
-INSERT INTO t1 VALUES (Point(1,1)),(Point(2,2)),(Point(3,3));
-EXPLAIN SELECT * FROM t1 WHERE CONTAINS(a,1);
-ERROR HY000: Illegal parameter data type int for operation 'st_contains'
-EXPLAIN SELECT * FROM t1 WHERE CONTAINS(a,1.0);
-ERROR HY000: Illegal parameter data type decimal for operation 'st_contains'
-EXPLAIN SELECT * FROM t1 WHERE CONTAINS(a,1e0);
-ERROR HY000: Illegal parameter data type double for operation 'st_contains'
-EXPLAIN SELECT * FROM t1 WHERE CONTAINS(a,TIME'00:00:00');
-ERROR HY000: Illegal parameter data type time for operation 'st_contains'
-EXPLAIN SELECT * FROM t1 WHERE CONTAINS(a,DATE'2001-01-01');
-ERROR HY000: Illegal parameter data type date for operation 'st_contains'
-EXPLAIN SELECT * FROM t1 WHERE CONTAINS(a,TIMESTAMP'2001-01-01 00:00:00');
-ERROR HY000: Illegal parameter data type datetime for operation 'st_contains'
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
diff --git a/mysql-test/r/gis.result b/mysql-test/r/gis.result
deleted file mode 100644
index 3f2e6d39db8..00000000000
--- a/mysql-test/r/gis.result
+++ /dev/null
@@ -1,4922 +0,0 @@
-CREATE TABLE gis_point (fid INTEGER NOT NULL PRIMARY KEY, g POINT);
-CREATE TABLE gis_line (fid INTEGER NOT NULL PRIMARY KEY, g LINESTRING);
-CREATE TABLE gis_polygon (fid INTEGER NOT NULL PRIMARY KEY, g POLYGON);
-CREATE TABLE gis_multi_point (fid INTEGER NOT NULL PRIMARY KEY, g MULTIPOINT);
-CREATE TABLE gis_multi_line (fid INTEGER NOT NULL PRIMARY KEY, g MULTILINESTRING);
-CREATE TABLE gis_multi_polygon (fid INTEGER NOT NULL PRIMARY KEY, g MULTIPOLYGON);
-CREATE TABLE gis_geometrycollection (fid INTEGER NOT NULL PRIMARY KEY, g GEOMETRYCOLLECTION);
-CREATE TABLE gis_geometry (fid INTEGER NOT NULL PRIMARY KEY, g GEOMETRY);
-SHOW FIELDS FROM gis_point;
-Field Type Null Key Default Extra
-fid int(11) NO PRI NULL
-g point YES NULL
-SHOW FIELDS FROM gis_line;
-Field Type Null Key Default Extra
-fid int(11) NO PRI NULL
-g linestring YES NULL
-SHOW FIELDS FROM gis_polygon;
-Field Type Null Key Default Extra
-fid int(11) NO PRI NULL
-g polygon YES NULL
-SHOW FIELDS FROM gis_multi_point;
-Field Type Null Key Default Extra
-fid int(11) NO PRI NULL
-g multipoint YES NULL
-SHOW FIELDS FROM gis_multi_line;
-Field Type Null Key Default Extra
-fid int(11) NO PRI NULL
-g multilinestring YES NULL
-SHOW FIELDS FROM gis_multi_polygon;
-Field Type Null Key Default Extra
-fid int(11) NO PRI NULL
-g multipolygon YES NULL
-SHOW FIELDS FROM gis_geometrycollection;
-Field Type Null Key Default Extra
-fid int(11) NO PRI NULL
-g geometrycollection YES NULL
-SHOW FIELDS FROM gis_geometry;
-Field Type Null Key Default Extra
-fid int(11) NO PRI NULL
-g geometry YES NULL
-INSERT INTO gis_point VALUES
-(101, PointFromText('POINT(10 10)')),
-(102, PointFromText('POINT(20 10)')),
-(103, PointFromText('POINT(20 20)')),
-(104, PointFromWKB(AsWKB(PointFromText('POINT(10 20)'))));
-INSERT INTO gis_line VALUES
-(105, LineFromText('LINESTRING(0 0,0 10,10 0)')),
-(106, LineStringFromText('LINESTRING(10 10,20 10,20 20,10 20,10 10)')),
-(107, LineStringFromWKB(AsWKB(LineString(Point(10, 10), Point(40, 10)))));
-INSERT INTO gis_polygon VALUES
-(108, PolygonFromText('POLYGON((10 10,20 10,20 20,10 20,10 10))')),
-(109, PolyFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))')),
-(110, PolyFromWKB(AsWKB(Polygon(LineString(Point(0, 0), Point(30, 0), Point(30, 30), Point(0, 0))))));
-INSERT INTO gis_multi_point VALUES
-(111, MultiPointFromText('MULTIPOINT(0 0,10 10,10 20,20 20)')),
-(112, MPointFromText('MULTIPOINT(1 1,11 11,11 21,21 21)')),
-(113, MPointFromWKB(AsWKB(MultiPoint(Point(3, 6), Point(4, 10)))));
-INSERT INTO gis_multi_line VALUES
-(114, MultiLineStringFromText('MULTILINESTRING((10 48,10 21,10 0),(16 0,16 23,16 48))')),
-(115, MLineFromText('MULTILINESTRING((10 48,10 21,10 0))')),
-(116, MLineFromWKB(AsWKB(MultiLineString(LineString(Point(1, 2), Point(3, 5)), LineString(Point(2, 5), Point(5, 8), Point(21, 7))))));
-INSERT INTO gis_multi_polygon VALUES
-(117, MultiPolygonFromText('MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))')),
-(118, MPolyFromText('MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))')),
-(119, MPolyFromWKB(AsWKB(MultiPolygon(Polygon(LineString(Point(0, 3), Point(3, 3), Point(3, 0), Point(0, 3)))))));
-INSERT INTO gis_geometrycollection VALUES
-(120, GeomCollFromText('GEOMETRYCOLLECTION(POINT(0 0), LINESTRING(0 0,10 10))')),
-(121, GeometryFromWKB(AsWKB(GeometryCollection(Point(44, 6), LineString(Point(3, 6), Point(7, 9)))))),
-(122, GeomFromText('GeometryCollection()')),
-(123, GeomFromText('GeometryCollection EMPTY'));
-INSERT into gis_geometry SELECT * FROM gis_point;
-INSERT into gis_geometry SELECT * FROM gis_line;
-INSERT into gis_geometry SELECT * FROM gis_polygon;
-INSERT into gis_geometry SELECT * FROM gis_multi_point;
-INSERT into gis_geometry SELECT * FROM gis_multi_line;
-INSERT into gis_geometry SELECT * FROM gis_multi_polygon;
-INSERT into gis_geometry SELECT * FROM gis_geometrycollection;
-SELECT fid, AsText(g) FROM gis_point;
-fid AsText(g)
-101 POINT(10 10)
-102 POINT(20 10)
-103 POINT(20 20)
-104 POINT(10 20)
-SELECT fid, AsText(g) FROM gis_line;
-fid AsText(g)
-105 LINESTRING(0 0,0 10,10 0)
-106 LINESTRING(10 10,20 10,20 20,10 20,10 10)
-107 LINESTRING(10 10,40 10)
-SELECT fid, AsText(g) FROM gis_polygon;
-fid AsText(g)
-108 POLYGON((10 10,20 10,20 20,10 20,10 10))
-109 POLYGON((0 0,50 0,50 50,0 50,0 0),(10 10,20 10,20 20,10 20,10 10))
-110 POLYGON((0 0,30 0,30 30,0 0))
-SELECT fid, AsText(g) FROM gis_multi_point;
-fid AsText(g)
-111 MULTIPOINT(0 0,10 10,10 20,20 20)
-112 MULTIPOINT(1 1,11 11,11 21,21 21)
-113 MULTIPOINT(3 6,4 10)
-SELECT fid, AsText(g) FROM gis_multi_line;
-fid AsText(g)
-114 MULTILINESTRING((10 48,10 21,10 0),(16 0,16 23,16 48))
-115 MULTILINESTRING((10 48,10 21,10 0))
-116 MULTILINESTRING((1 2,3 5),(2 5,5 8,21 7))
-SELECT fid, AsText(g) FROM gis_multi_polygon;
-fid AsText(g)
-117 MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))
-118 MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))
-119 MULTIPOLYGON(((0 3,3 3,3 0,0 3)))
-SELECT fid, AsText(g) FROM gis_geometrycollection;
-fid AsText(g)
-120 GEOMETRYCOLLECTION(POINT(0 0),LINESTRING(0 0,10 10))
-121 GEOMETRYCOLLECTION(POINT(44 6),LINESTRING(3 6,7 9))
-122 GEOMETRYCOLLECTION EMPTY
-123 GEOMETRYCOLLECTION EMPTY
-SELECT fid, AsText(g) FROM gis_geometry;
-fid AsText(g)
-101 POINT(10 10)
-102 POINT(20 10)
-103 POINT(20 20)
-104 POINT(10 20)
-105 LINESTRING(0 0,0 10,10 0)
-106 LINESTRING(10 10,20 10,20 20,10 20,10 10)
-107 LINESTRING(10 10,40 10)
-108 POLYGON((10 10,20 10,20 20,10 20,10 10))
-109 POLYGON((0 0,50 0,50 50,0 50,0 0),(10 10,20 10,20 20,10 20,10 10))
-110 POLYGON((0 0,30 0,30 30,0 0))
-111 MULTIPOINT(0 0,10 10,10 20,20 20)
-112 MULTIPOINT(1 1,11 11,11 21,21 21)
-113 MULTIPOINT(3 6,4 10)
-114 MULTILINESTRING((10 48,10 21,10 0),(16 0,16 23,16 48))
-115 MULTILINESTRING((10 48,10 21,10 0))
-116 MULTILINESTRING((1 2,3 5),(2 5,5 8,21 7))
-117 MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))
-118 MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))
-119 MULTIPOLYGON(((0 3,3 3,3 0,0 3)))
-120 GEOMETRYCOLLECTION(POINT(0 0),LINESTRING(0 0,10 10))
-121 GEOMETRYCOLLECTION(POINT(44 6),LINESTRING(3 6,7 9))
-122 GEOMETRYCOLLECTION EMPTY
-123 GEOMETRYCOLLECTION EMPTY
-SELECT fid, Dimension(g) FROM gis_geometry;
-fid Dimension(g)
-101 0
-102 0
-103 0
-104 0
-105 1
-106 1
-107 1
-108 2
-109 2
-110 2
-111 0
-112 0
-113 0
-114 1
-115 1
-116 1
-117 2
-118 2
-119 2
-120 1
-121 1
-122 0
-123 0
-SELECT fid, GeometryType(g) FROM gis_geometry;
-fid GeometryType(g)
-101 POINT
-102 POINT
-103 POINT
-104 POINT
-105 LINESTRING
-106 LINESTRING
-107 LINESTRING
-108 POLYGON
-109 POLYGON
-110 POLYGON
-111 MULTIPOINT
-112 MULTIPOINT
-113 MULTIPOINT
-114 MULTILINESTRING
-115 MULTILINESTRING
-116 MULTILINESTRING
-117 MULTIPOLYGON
-118 MULTIPOLYGON
-119 MULTIPOLYGON
-120 GEOMETRYCOLLECTION
-121 GEOMETRYCOLLECTION
-122 GEOMETRYCOLLECTION
-123 GEOMETRYCOLLECTION
-SELECT fid, IsEmpty(g) FROM gis_geometry;
-fid IsEmpty(g)
-101 0
-102 0
-103 0
-104 0
-105 0
-106 0
-107 0
-108 0
-109 0
-110 0
-111 0
-112 0
-113 0
-114 0
-115 0
-116 0
-117 0
-118 0
-119 0
-120 0
-121 0
-122 0
-123 0
-SELECT fid, AsText(Envelope(g)) FROM gis_geometry;
-fid AsText(Envelope(g))
-101 POLYGON((10 10,10 10,10 10,10 10,10 10))
-102 POLYGON((20 10,20 10,20 10,20 10,20 10))
-103 POLYGON((20 20,20 20,20 20,20 20,20 20))
-104 POLYGON((10 20,10 20,10 20,10 20,10 20))
-105 POLYGON((0 0,10 0,10 10,0 10,0 0))
-106 POLYGON((10 10,20 10,20 20,10 20,10 10))
-107 POLYGON((10 10,40 10,40 10,10 10,10 10))
-108 POLYGON((10 10,20 10,20 20,10 20,10 10))
-109 POLYGON((0 0,50 0,50 50,0 50,0 0))
-110 POLYGON((0 0,30 0,30 30,0 30,0 0))
-111 POLYGON((0 0,20 0,20 20,0 20,0 0))
-112 POLYGON((1 1,21 1,21 21,1 21,1 1))
-113 POLYGON((3 6,4 6,4 10,3 10,3 6))
-114 POLYGON((10 0,16 0,16 48,10 48,10 0))
-115 POLYGON((10 0,10 0,10 48,10 48,10 0))
-116 POLYGON((1 2,21 2,21 8,1 8,1 2))
-117 POLYGON((28 0,84 0,84 42,28 42,28 0))
-118 POLYGON((28 0,84 0,84 42,28 42,28 0))
-119 POLYGON((0 0,3 0,3 3,0 3,0 0))
-120 POLYGON((0 0,10 0,10 10,0 10,0 0))
-121 POLYGON((3 6,44 6,44 9,3 9,3 6))
-122 GEOMETRYCOLLECTION EMPTY
-123 GEOMETRYCOLLECTION EMPTY
-explain extended select Dimension(g), GeometryType(g), IsEmpty(g), AsText(Envelope(g)) from gis_geometry;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE gis_geometry ALL NULL NULL NULL NULL 23 100.00
-Warnings:
-Note 1003 select st_dimension(`test`.`gis_geometry`.`g`) AS `Dimension(g)`,st_geometrytype(`test`.`gis_geometry`.`g`) AS `GeometryType(g)`,st_isempty(`test`.`gis_geometry`.`g`) AS `IsEmpty(g)`,st_astext(st_envelope(`test`.`gis_geometry`.`g`)) AS `AsText(Envelope(g))` from `test`.`gis_geometry`
-SELECT fid, X(g) FROM gis_point;
-fid X(g)
-101 10
-102 20
-103 20
-104 10
-SELECT fid, Y(g) FROM gis_point;
-fid Y(g)
-101 10
-102 10
-103 20
-104 20
-explain extended select X(g),Y(g) FROM gis_point;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE gis_point ALL NULL NULL NULL NULL 4 100.00
-Warnings:
-Note 1003 select st_x(`test`.`gis_point`.`g`) AS `X(g)`,st_y(`test`.`gis_point`.`g`) AS `Y(g)` from `test`.`gis_point`
-SELECT fid, AsText(StartPoint(g)) FROM gis_line;
-fid AsText(StartPoint(g))
-105 POINT(0 0)
-106 POINT(10 10)
-107 POINT(10 10)
-SELECT fid, AsText(EndPoint(g)) FROM gis_line;
-fid AsText(EndPoint(g))
-105 POINT(10 0)
-106 POINT(10 10)
-107 POINT(40 10)
-SELECT fid, GLength(g) FROM gis_line;
-fid GLength(g)
-105 24.14213562373095
-106 40
-107 30
-SELECT fid, NumPoints(g) FROM gis_line;
-fid NumPoints(g)
-105 3
-106 5
-107 2
-SELECT fid, AsText(PointN(g, 2)) FROM gis_line;
-fid AsText(PointN(g, 2))
-105 POINT(0 10)
-106 POINT(20 10)
-107 POINT(40 10)
-SELECT fid, IsClosed(g) FROM gis_line;
-fid IsClosed(g)
-105 0
-106 1
-107 0
-explain extended select AsText(StartPoint(g)),AsText(EndPoint(g)),GLength(g),NumPoints(g),AsText(PointN(g, 2)),IsClosed(g) FROM gis_line;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE gis_line ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 select st_astext(st_startpoint(`test`.`gis_line`.`g`)) AS `AsText(StartPoint(g))`,st_astext(st_endpoint(`test`.`gis_line`.`g`)) AS `AsText(EndPoint(g))`,st_length(`test`.`gis_line`.`g`) AS `GLength(g)`,st_numpoints(`test`.`gis_line`.`g`) AS `NumPoints(g)`,st_astext(st_pointn(`test`.`gis_line`.`g`,2)) AS `AsText(PointN(g, 2))`,st_isclosed(`test`.`gis_line`.`g`) AS `IsClosed(g)` from `test`.`gis_line`
-SELECT fid, AsText(Centroid(g)) FROM gis_polygon;
-fid AsText(Centroid(g))
-108 POINT(15 15)
-109 POINT(25.416666666666668 25.416666666666668)
-110 POINT(20 10)
-SELECT fid, Area(g) FROM gis_polygon;
-fid Area(g)
-108 100
-109 2400
-110 450
-SELECT fid, AsText(ExteriorRing(g)) FROM gis_polygon;
-fid AsText(ExteriorRing(g))
-108 LINESTRING(10 10,20 10,20 20,10 20,10 10)
-109 LINESTRING(0 0,50 0,50 50,0 50,0 0)
-110 LINESTRING(0 0,30 0,30 30,0 0)
-SELECT fid, NumInteriorRings(g) FROM gis_polygon;
-fid NumInteriorRings(g)
-108 0
-109 1
-110 0
-SELECT fid, AsText(InteriorRingN(g, 1)) FROM gis_polygon;
-fid AsText(InteriorRingN(g, 1))
-108 NULL
-109 LINESTRING(10 10,20 10,20 20,10 20,10 10)
-110 NULL
-explain extended select AsText(Centroid(g)),Area(g),AsText(ExteriorRing(g)),NumInteriorRings(g),AsText(InteriorRingN(g, 1)) FROM gis_polygon;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE gis_polygon ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 select st_astext(st_centroid(`test`.`gis_polygon`.`g`)) AS `AsText(Centroid(g))`,st_area(`test`.`gis_polygon`.`g`) AS `Area(g)`,st_astext(st_exteriorring(`test`.`gis_polygon`.`g`)) AS `AsText(ExteriorRing(g))`,st_numinteriorrings(`test`.`gis_polygon`.`g`) AS `NumInteriorRings(g)`,st_astext(st_interiorringn(`test`.`gis_polygon`.`g`,1)) AS `AsText(InteriorRingN(g, 1))` from `test`.`gis_polygon`
-SELECT fid, IsClosed(g) FROM gis_multi_line;
-fid IsClosed(g)
-114 0
-115 0
-116 0
-SELECT fid, AsText(Centroid(g)) FROM gis_multi_polygon;
-fid AsText(Centroid(g))
-117 POINT(57.98031067576927 17.854754130800433)
-118 POINT(57.98031067576927 17.854754130800433)
-119 POINT(2 2)
-SELECT fid, Area(g) FROM gis_multi_polygon;
-fid Area(g)
-117 1684.5
-118 1684.5
-119 4.5
-SELECT fid, NumGeometries(g) from gis_multi_point;
-fid NumGeometries(g)
-111 4
-112 4
-113 2
-SELECT fid, NumGeometries(g) from gis_multi_line;
-fid NumGeometries(g)
-114 2
-115 1
-116 2
-SELECT fid, NumGeometries(g) from gis_multi_polygon;
-fid NumGeometries(g)
-117 2
-118 2
-119 1
-SELECT fid, NumGeometries(g) from gis_geometrycollection;
-fid NumGeometries(g)
-120 2
-121 2
-122 0
-123 0
-explain extended SELECT fid, NumGeometries(g) from gis_multi_point;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE gis_multi_point ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 select `test`.`gis_multi_point`.`fid` AS `fid`,st_numgeometries(`test`.`gis_multi_point`.`g`) AS `NumGeometries(g)` from `test`.`gis_multi_point`
-SELECT fid, AsText(GeometryN(g, 2)) from gis_multi_point;
-fid AsText(GeometryN(g, 2))
-111 POINT(10 10)
-112 POINT(11 11)
-113 POINT(4 10)
-SELECT fid, AsText(GeometryN(g, 2)) from gis_multi_line;
-fid AsText(GeometryN(g, 2))
-114 LINESTRING(16 0,16 23,16 48)
-115 NULL
-116 LINESTRING(2 5,5 8,21 7)
-SELECT fid, AsText(GeometryN(g, 2)) from gis_multi_polygon;
-fid AsText(GeometryN(g, 2))
-117 POLYGON((59 18,67 18,67 13,59 13,59 18))
-118 POLYGON((59 18,67 18,67 13,59 13,59 18))
-119 NULL
-SELECT fid, AsText(GeometryN(g, 2)) from gis_geometrycollection;
-fid AsText(GeometryN(g, 2))
-120 LINESTRING(0 0,10 10)
-121 LINESTRING(3 6,7 9)
-122 NULL
-123 NULL
-SELECT fid, AsText(GeometryN(g, 1)) from gis_geometrycollection;
-fid AsText(GeometryN(g, 1))
-120 POINT(0 0)
-121 POINT(44 6)
-122 NULL
-123 NULL
-explain extended SELECT fid, AsText(GeometryN(g, 2)) from gis_multi_point;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE gis_multi_point ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 select `test`.`gis_multi_point`.`fid` AS `fid`,st_astext(st_geometryn(`test`.`gis_multi_point`.`g`,2)) AS `AsText(GeometryN(g, 2))` from `test`.`gis_multi_point`
-SELECT g1.fid as first, g2.fid as second,
-Within(g1.g, g2.g) as w, Contains(g1.g, g2.g) as c, Overlaps(g1.g, g2.g) as o,
-Equals(g1.g, g2.g) as e, Disjoint(g1.g, g2.g) as d, Touches(g1.g, g2.g) as t,
-Intersects(g1.g, g2.g) as i, Crosses(g1.g, g2.g) as r
-FROM gis_geometrycollection g1, gis_geometrycollection g2 ORDER BY first, second;
-first second w c o e d t i r
-120 120 1 1 0 1 0 0 1 0
-120 121 0 0 1 0 0 0 1 0
-120 122 NULL NULL NULL NULL NULL NULL NULL NULL
-120 123 NULL NULL NULL NULL NULL NULL NULL NULL
-121 120 0 0 1 0 0 0 1 0
-121 121 1 1 0 1 0 0 1 0
-121 122 NULL NULL NULL NULL NULL NULL NULL NULL
-121 123 NULL NULL NULL NULL NULL NULL NULL NULL
-122 120 NULL NULL NULL NULL NULL NULL NULL NULL
-122 121 NULL NULL NULL NULL NULL NULL NULL NULL
-122 122 NULL NULL NULL NULL NULL NULL NULL NULL
-122 123 NULL NULL NULL NULL NULL NULL NULL NULL
-123 120 NULL NULL NULL NULL NULL NULL NULL NULL
-123 121 NULL NULL NULL NULL NULL NULL NULL NULL
-123 122 NULL NULL NULL NULL NULL NULL NULL NULL
-123 123 NULL NULL NULL NULL NULL NULL NULL NULL
-explain extended SELECT g1.fid as first, g2.fid as second,
-Within(g1.g, g2.g) as w, Contains(g1.g, g2.g) as c, Overlaps(g1.g, g2.g) as o,
-Equals(g1.g, g2.g) as e, Disjoint(g1.g, g2.g) as d, Touches(g1.g, g2.g) as t,
-Intersects(g1.g, g2.g) as i, Crosses(g1.g, g2.g) as r
-FROM gis_geometrycollection g1, gis_geometrycollection g2 ORDER BY first, second;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE g1 ALL NULL NULL NULL NULL 4 100.00 Using temporary; Using filesort
-1 SIMPLE g2 ALL NULL NULL NULL NULL 4 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`g1`.`fid` AS `first`,`test`.`g2`.`fid` AS `second`,st_within(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `w`,st_contains(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `c`,mbroverlaps(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `o`,st_equals(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `e`,mbrdisjoint(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `d`,st_touches(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `t`,mbrintersects(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `i`,st_crosses(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `r` from `test`.`gis_geometrycollection` `g1` join `test`.`gis_geometrycollection` `g2` order by `test`.`g1`.`fid`,`test`.`g2`.`fid`
-DROP TABLE gis_point, gis_line, gis_polygon, gis_multi_point, gis_multi_line, gis_multi_polygon, gis_geometrycollection, gis_geometry;
-CREATE TABLE t1 (
-gp point,
-ln linestring,
-pg polygon,
-mp multipoint,
-mln multilinestring,
-mpg multipolygon,
-gc geometrycollection,
-gm geometry
-);
-SHOW FIELDS FROM t1;
-Field Type Null Key Default Extra
-gp point YES NULL
-ln linestring YES NULL
-pg polygon YES NULL
-mp multipoint YES NULL
-mln multilinestring YES NULL
-mpg multipolygon YES NULL
-gc geometrycollection YES NULL
-gm geometry YES NULL
-ALTER TABLE t1 ADD fid INT NOT NULL;
-SHOW FIELDS FROM t1;
-Field Type Null Key Default Extra
-gp point YES NULL
-ln linestring YES NULL
-pg polygon YES NULL
-mp multipoint YES NULL
-mln multilinestring YES NULL
-mpg multipolygon YES NULL
-gc geometrycollection YES NULL
-gm geometry YES NULL
-fid int(11) NO NULL
-DROP TABLE t1;
-SELECT AsText(GeometryFromWKB(AsWKB(GeometryFromText('POINT(1 4)'))));
-AsText(GeometryFromWKB(AsWKB(GeometryFromText('POINT(1 4)'))))
-POINT(1 4)
-explain extended SELECT AsText(GeometryFromWKB(AsWKB(GeometryFromText('POINT(1 4)'))));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select st_astext(st_geometryfromwkb(st_aswkb(st_geometryfromtext('POINT(1 4)')))) AS `AsText(GeometryFromWKB(AsWKB(GeometryFromText('POINT(1 4)'))))`
-explain extended SELECT AsText(GeometryFromWKB(AsWKB(PointFromText('POINT(1 4)'))));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select st_astext(st_geometryfromwkb(st_aswkb(st_geometryfromtext('POINT(1 4)')))) AS `AsText(GeometryFromWKB(AsWKB(PointFromText('POINT(1 4)'))))`
-SELECT SRID(GeomFromText('LineString(1 1,2 2)',101));
-SRID(GeomFromText('LineString(1 1,2 2)',101))
-101
-explain extended SELECT SRID(GeomFromText('LineString(1 1,2 2)',101));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select srid(st_geometryfromtext('LineString(1 1,2 2)',101)) AS `SRID(GeomFromText('LineString(1 1,2 2)',101))`
-explain extended select issimple(MultiPoint(Point(3, 6), Point(4, 10))), issimple(Point(3, 6));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select st_issimple(geometrycollection(point(3,6),point(4,10))) AS `issimple(MultiPoint(Point(3, 6), Point(4, 10)))`,st_issimple(point(3,6)) AS `issimple(Point(3, 6))`
-create table t1 (a geometry not null);
-insert into t1 values (GeomFromText('Point(1 2)'));
-insert into t1 values ('Garbage');
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-insert IGNORE into t1 values ('Garbage');
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-alter table t1 add spatial index(a);
-drop table t1;
-create table t1(a geometry not null, spatial index(a));
-insert into t1 values
-(GeomFromText('POINT(1 1)')), (GeomFromText('POINT(3 3)')),
-(GeomFromText('POINT(4 4)')), (GeomFromText('POINT(6 6)'));
-select AsText(a) from t1 where
-MBRContains(GeomFromText('Polygon((0 0, 0 2, 2 2, 2 0, 0 0))'), a)
-or
-MBRContains(GeomFromText('Polygon((2 2, 2 5, 5 5, 5 2, 2 2))'), a);
-AsText(a)
-POINT(1 1)
-POINT(3 3)
-POINT(4 4)
-select AsText(a) from t1 where
-MBRContains(GeomFromText('Polygon((0 0, 0 2, 2 2, 2 0, 0 0))'), a)
-and
-MBRContains(GeomFromText('Polygon((0 0, 0 7, 7 7, 7 0, 0 0))'), a);
-AsText(a)
-POINT(1 1)
-drop table t1;
-CREATE TABLE t1 (Coordinates POINT NOT NULL, SPATIAL INDEX(Coordinates));
-INSERT INTO t1 VALUES(GeomFromText('POINT(383293632 1754448)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(564952612 157516260)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(903994614 180726515)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(98128178 141127631)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(862547902 799334546)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(341989013 850270906)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(803302376 93039099)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(857439153 817431356)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(319757546 343162742)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(826341972 717484432)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(305066789 201736238)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(626068992 616241497)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(55789424 755830108)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(802874458 312435220)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(153795660 551723671)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(242207428 537089292)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(553478119 807160039)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(694605552 457472733)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(987886554 792733729)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(598600363 850434457)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(592068275 940589376)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(700705362 395370650)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(33628474 558144514)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(212802006 353386020)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(901307256 39143977)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(70870451 206374045)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(240880214 696939443)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(822615542 296669638)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(452769551 625489999)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(609104858 606565210)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(177213669 851312285)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(143654501 730691787)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(658472325 838260052)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(188164520 646358878)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(630993781 786764883)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(496793334 223062055)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(727354258 197498696)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(618432704 760982731)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(755643210 831234710)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(114368751 656950466)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(870378686 185239202)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(863324511 111258900)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(882178645 685940052)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(407928538 334948195)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(311430051 17033395)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(941513405 488643719)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(868345680 85167906)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(219335507 526818004)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(923427958 407500026)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(173176882 554421738)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(194264908 669970217)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(777483793 921619165)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(867468912 395916497)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(682601897 623112122)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(227151206 796970647)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(280062588 97529892)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(982209849 143387099)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(208788792 864388493)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(829327151 616717329)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(199336688 140757201)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(633750724 140850093)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(629400920 502096404)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(226017998 848736426)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(28914408 149445955)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(256236452 202091290)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(703867693 450501360)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(872061506 481351486)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(372120524 739530418)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(877267982 54722420)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(362642540 104419188)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(851693067 642705127)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(201949080 833902916)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(786092225 410737872)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(698291409 615419376)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(27455201 897628096)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(756176576 661205925)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(38478189 385577496)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(163302328 264496186)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(234313922 192216735)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(413942141 490550373)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(394308025 117809834)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(941051732 266369530)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(599161319 313172256)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(5899948 476429301)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(367894677 368542487)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(580848489 219587743)'));
-INSERT INTO t1 VALUES(GeomFromText('POINT(11247614 782797569)'));
-drop table t1;
-create table t1 select GeomFromWKB(POINT(1,3));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `GeomFromWKB(POINT(1,3))` geometry DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE `t1` (`object_id` bigint(20) unsigned NOT NULL default '0', `geo`
-geometry NOT NULL default '') ENGINE=MyISAM ;
-insert into t1 values ('85984',GeomFromText('MULTIPOLYGON(((-115.006363
-36.305435,-114.992394 36.305202,-114.991219 36.305975,-114.991163
-36.306845,-114.989432 36.309452,-114.978275 36.312642,-114.977363
-36.311978,-114.975327 36.312344,-114.96502 36.31597,-114.963364
-36.313629,-114.961723 36.313721,-114.956398 36.316057,-114.951882
-36.320979,-114.947073 36.323475,-114.945207 36.326451,-114.945207
-36.326451,-114.944132 36.326061,-114.94003 36.326588,-114.924017
-36.334484,-114.923281 36.334146,-114.92564 36.331504,-114.94072
-36.319282,-114.945348 36.314812,-114.948091 36.314762,-114.951755
-36.316211,-114.952446 36.313883,-114.952644 36.309488,-114.944725
-36.313083,-114.93706 36.32043,-114.932478 36.323497,-114.924556
-36.327708,-114.922608 36.329715,-114.92009 36.328695,-114.912105
-36.323566,-114.901647 36.317952,-114.897436 36.313968,-114.895344
-36.309573,-114.891699 36.304398,-114.890569 36.303551,-114.886356
-36.302702,-114.885141 36.301351,-114.885709 36.297391,-114.892499
-36.290893,-114.902142 36.288974,-114.904941 36.288838,-114.905308
-36.289845,-114.906325 36.290395,-114.909916 36.289549,-114.914527
-36.287535,-114.918797 36.284423,-114.922982 36.279731,-114.924113
-36.277282,-114.924057 36.275817,-114.927733 36.27053,-114.929354
-36.269029,-114.929354 36.269029,-114.950856 36.268715,-114.950768
-36.264324,-114.960206 36.264293,-114.960301 36.268943,-115.006662
-36.268929,-115.008583 36.265619,-115.00665 36.264247,-115.006659
-36.246873,-115.006659 36.246873,-115.006838 36.247697,-115.010764
-36.247774,-115.015609 36.25113,-115.015765 36.254505,-115.029517
-36.254619,-115.038573 36.249317,-115.038573 36.249317,-115.023403
-36.25841,-115.023873 36.258994,-115.031845 36.259829,-115.03183
-36.261053,-115.025561 36.261095,-115.036417 36.274632,-115.033729
-36.276041,-115.032217 36.274851,-115.029845 36.273959,-115.029934
-36.274966,-115.025763 36.274896,-115.025406 36.281044,-115.028731
-36.284471,-115.036497 36.290377,-115.042071 36.291039,-115.026759
-36.298478,-115.008995 36.301966,-115.006363 36.305435),(-115.079835
-36.244369,-115.079735 36.260186,-115.076435 36.262369,-115.069758
-36.265,-115.070235 36.268757,-115.064542 36.268655,-115.061843
-36.269857,-115.062676 36.270693,-115.06305 36.272344,-115.059051
-36.281023,-115.05918 36.283008,-115.060591 36.285246,-115.061913
-36.290022,-115.062499 36.306353,-115.062499 36.306353,-115.060918
-36.30642,-115.06112 36.289779,-115.05713 36.2825,-115.057314
-36.279446,-115.060779 36.274659,-115.061366 36.27209,-115.057858
-36.26557,-115.055805 36.262883,-115.054688 36.262874,-115.047335
-36.25037,-115.044234 36.24637,-115.052434 36.24047,-115.061734
-36.23507,-115.061934 36.22677,-115.061934 36.22677,-115.061491
-36.225267,-115.062024 36.218194,-115.060134 36.218278,-115.060133
-36.210771,-115.057833 36.210771,-115.057433 36.196271,-115.062233
-36.196271,-115.062233 36.190371,-115.062233 36.190371,-115.065533
-36.190371,-115.071333 36.188571,-115.098331 36.188275,-115.098331
-36.188275,-115.098435 36.237569,-115.097535 36.240369,-115.097535
-36.240369,-115.093235 36.240369,-115.089135 36.240469,-115.083135
-36.240569,-115.083135 36.240569,-115.079835
-36.244369)))')),('85998',GeomFromText('MULTIPOLYGON(((-115.333107
-36.264587,-115.333168 36.280638,-115.333168 36.280638,-115.32226
-36.280643,-115.322538 36.274311,-115.327222 36.274258,-115.32733
-36.263026,-115.330675 36.262984,-115.332132 36.264673,-115.333107
-36.264587),(-115.247239 36.247066,-115.247438 36.218267,-115.247438
-36.218267,-115.278525 36.219263,-115.278525 36.219263,-115.301545
-36.219559,-115.332748 36.219197,-115.332757 36.220041,-115.332757
-36.220041,-115.332895 36.233514,-115.349023 36.233479,-115.351489
-36.234475,-115.353681 36.237021,-115.357106 36.239789,-115.36519
-36.243331,-115.368156 36.243487,-115.367389 36.244902,-115.364553
-36.246014,-115.359219 36.24616,-115.356186 36.248025,-115.353347
-36.248004,-115.350813 36.249507,-115.339673 36.25387,-115.333069
-36.255018,-115.333069 36.255018,-115.333042 36.247767,-115.279039
-36.248666,-115.263639 36.247466,-115.263839 36.252766,-115.261439
-36.252666,-115.261439 36.247366,-115.247239 36.247066)))'));
-select object_id, geometrytype(geo), ISSIMPLE(GEO), ASTEXT(centroid(geo)) from
-t1 where object_id=85998;
-object_id geometrytype(geo) ISSIMPLE(GEO) ASTEXT(centroid(geo))
-85998 MULTIPOLYGON 1 POINT(115.2970604672862 -36.23335610879993)
-select object_id, geometrytype(geo), ISSIMPLE(GEO), ASTEXT(centroid(geo)) from
-t1 where object_id=85984;
-object_id geometrytype(geo) ISSIMPLE(GEO) ASTEXT(centroid(geo))
-85984 MULTIPOLYGON 1 POINT(-114.86854472054372 36.34725218253213)
-drop table t1;
-create table t1 (fl geometry not null);
-insert into t1 values (1);
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-insert into t1 values (1.11);
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-insert into t1 values ("qwerty");
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-insert into t1 values (pointfromtext('point(1,1)'));
-ERROR 23000: Column 'fl' cannot be null
-drop table t1;
-select (asWKT(geomfromwkb((0x000000000140240000000000004024000000000000))));
-(asWKT(geomfromwkb((0x000000000140240000000000004024000000000000))))
-POINT(10 10)
-select (asWKT(geomfromwkb((0x010100000000000000000024400000000000002440))));
-(asWKT(geomfromwkb((0x010100000000000000000024400000000000002440))))
-POINT(10 10)
-create table t1 (g GEOMETRY);
-select * from t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 g g 255 4294967295 0 Y 144 0 63
-g
-select asbinary(g) from t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def asbinary(g) 251 4294967295 0 Y 128 0 63
-asbinary(g)
-drop table t1;
-create table t1 (a TEXT, b GEOMETRY NOT NULL, SPATIAL KEY(b));
-alter table t1 disable keys;
-load data infile '../../std_data/bad_gis_data.dat' into table t1;
-ERROR 22004: Column set to default value; NULL supplied to NOT NULL column 'b' at row 1
-alter table t1 enable keys;
-drop table t1;
-create table t1 (a int, b blob);
-insert into t1 values (1, ''), (2, NULL), (3, '1');
-select * from t1;
-a b
-1
-2 NULL
-3 1
-select
-geometryfromtext(b) IS NULL, geometryfromwkb(b) IS NULL, astext(b) IS NULL,
-aswkb(b) IS NULL, geometrytype(b) IS NULL, centroid(b) IS NULL,
-envelope(b) IS NULL, startpoint(b) IS NULL, endpoint(b) IS NULL,
-exteriorring(b) IS NULL, pointn(b, 1) IS NULL, geometryn(b, 1) IS NULL,
-interiorringn(b, 1) IS NULL, multipoint(b) IS NULL, isempty(b) IS NULL,
-issimple(b) IS NULL, isclosed(b) IS NULL, dimension(b) IS NULL,
-numgeometries(b) IS NULL, numinteriorrings(b) IS NULL, numpoints(b) IS NULL,
-area(b) IS NULL, glength(b) IS NULL, srid(b) IS NULL, x(b) IS NULL,
-y(b) IS NULL
-from t1;
-ERROR 22007: Illegal non geometric '`test`.`t1`.`b`' value found during parsing
-select
-within(b, b) IS NULL, contains(b, b) IS NULL, overlaps(b, b) IS NULL,
-equals(b, b) IS NULL, disjoint(b, b) IS NULL, touches(b, b) IS NULL,
-intersects(b, b) IS NULL, crosses(b, b) IS NULL
-from t1;
-within(b, b) IS NULL contains(b, b) IS NULL overlaps(b, b) IS NULL equals(b, b) IS NULL disjoint(b, b) IS NULL touches(b, b) IS NULL intersects(b, b) IS NULL crosses(b, b) IS NULL
-1 1 1 1 1 1 1 1
-1 1 1 1 1 1 1 1
-1 1 1 1 1 1 1 1
-select
-point(b, b) IS NULL, linestring(b) IS NULL, polygon(b) IS NULL, multipoint(b) IS NULL,
-multilinestring(b) IS NULL, multipolygon(b) IS NULL,
-geometrycollection(b) IS NULL
-from t1;
-ERROR 22007: Illegal non geometric '`test`.`t1`.`b`' value found during parsing
-drop table t1;
-CREATE TABLE t1(a POINT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (NULL);
-SELECT * FROM t1;
-a
-NULL
-DROP TABLE t1;
-CREATE TABLE `t1` ( `col9` set('a'), `col89` date);
-INSERT INTO `t1` VALUES ('','0000-00-00');
-select geomfromtext(col9,col89) as a from t1;
-a
-NULL
-DROP TABLE t1;
-CREATE TABLE t1 (
-geomdata polygon NOT NULL,
-SPATIAL KEY index_geom (geomdata)
-) ENGINE=MyISAM DEFAULT CHARSET=latin2 DELAY_KEY_WRITE=1 ROW_FORMAT=FIXED;
-CREATE TABLE t2 (
-geomdata polygon NOT NULL,
-SPATIAL KEY index_geom (geomdata)
-) ENGINE=MyISAM DEFAULT CHARSET=latin2 DELAY_KEY_WRITE=1 ROW_FORMAT=FIXED;
-CREATE TABLE t3
-select
-aswkb(ws.geomdata) AS geomdatawkb
-from
-t1 ws
-union
-select
-aswkb(ws.geomdata) AS geomdatawkb
-from
-t2 ws;
-describe t3;
-Field Type Null Key Default Extra
-geomdatawkb longblob YES NULL
-drop table t1;
-drop table t2;
-drop table t3;
-create table t1(col1 geometry default null,col15 geometrycollection not
-null,spatial index(col15),index(col1(15)))engine=myisam;
-insert into t1 set col15 = GeomFromText('POINT(6 5)');
-insert into t1 set col15 = GeomFromText('POINT(6 5)');
-check table t1 extended;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-End of 4.1 tests
-create table t1 (s1 geometry not null,s2 char(100));
-create trigger t1_bu before update on t1 for each row set new.s1 = null;
-insert into t1 values (null,null);
-ERROR 23000: Column 's1' cannot be null
-drop table t1;
-drop procedure if exists fn3;
-create function fn3 () returns point deterministic return GeomFromText("point(1 1)");
-show create function fn3;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-fn3 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `fn3`() RETURNS point
- DETERMINISTIC
-return GeomFromText("point(1 1)") latin1 latin1_swedish_ci latin1_swedish_ci
-select astext(fn3());
-astext(fn3())
-POINT(1 1)
-drop function fn3;
-create table t1(pt POINT);
-alter table t1 add primary key pti(pt);
-drop table t1;
-create table t1(pt GEOMETRY);
-alter table t1 add primary key pti(pt);
-ERROR 42000: BLOB/TEXT column 'pt' used in key specification without a key length
-alter table t1 add primary key pti(pt(20));
-drop table t1;
-create table t1 select GeomFromText('point(1 1)');
-desc t1;
-Field Type Null Key Default Extra
-GeomFromText('point(1 1)') geometry YES NULL
-drop table t1;
-create table t1 (g geometry not null);
-insert into t1 values(default);
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-drop table t1;
-CREATE TABLE t1 (a GEOMETRY);
-CREATE VIEW v1 AS SELECT GeomFromwkb(ASBINARY(a)) FROM t1;
-CREATE VIEW v2 AS SELECT a FROM t1;
-DESCRIBE v1;
-Field Type Null Key Default Extra
-GeomFromwkb(ASBINARY(a)) geometry YES NULL
-DESCRIBE v2;
-Field Type Null Key Default Extra
-a geometry YES NULL
-DROP VIEW v1,v2;
-DROP TABLE t1;
-create table t1 (name VARCHAR(100), square GEOMETRY);
-INSERT INTO t1 VALUES("center", GeomFromText('POLYGON (( 0 0, 0 2, 2 2, 2 0, 0 0))'));
-INSERT INTO t1 VALUES("small", GeomFromText('POLYGON (( 0 0, 0 1, 1 1, 1 0, 0 0))'));
-INSERT INTO t1 VALUES("big", GeomFromText('POLYGON (( 0 0, 0 3, 3 3, 3 0, 0 0))'));
-INSERT INTO t1 VALUES("up", GeomFromText('POLYGON (( 0 1, 0 3, 2 3, 2 1, 0 1))'));
-INSERT INTO t1 VALUES("up2", GeomFromText('POLYGON (( 0 2, 0 4, 2 4, 2 2, 0 2))'));
-INSERT INTO t1 VALUES("up3", GeomFromText('POLYGON (( 0 3, 0 5, 2 5, 2 3, 0 3))'));
-INSERT INTO t1 VALUES("down", GeomFromText('POLYGON (( 0 -1, 0 1, 2 1, 2 -1, 0 -1))'));
-INSERT INTO t1 VALUES("down2", GeomFromText('POLYGON (( 0 -2, 0 0, 2 0, 2 -2, 0 -2))'));
-INSERT INTO t1 VALUES("down3", GeomFromText('POLYGON (( 0 -3, 0 -1, 2 -1, 2 -3, 0 -3))'));
-INSERT INTO t1 VALUES("right", GeomFromText('POLYGON (( 1 0, 1 2, 3 2, 3 0, 1 0))'));
-INSERT INTO t1 VALUES("right2", GeomFromText('POLYGON (( 2 0, 2 2, 4 2, 4 0, 2 0))'));
-INSERT INTO t1 VALUES("right3", GeomFromText('POLYGON (( 3 0, 3 2, 5 2, 5 0, 3 0))'));
-INSERT INTO t1 VALUES("left", GeomFromText('POLYGON (( -1 0, -1 2, 1 2, 1 0, -1 0))'));
-INSERT INTO t1 VALUES("left2", GeomFromText('POLYGON (( -2 0, -2 2, 0 2, 0 0, -2 0))'));
-INSERT INTO t1 VALUES("left3", GeomFromText('POLYGON (( -3 0, -3 2, -1 2, -1 0, -3 0))'));
-SELECT GROUP_CONCAT(a2.name ORDER BY a2.name) AS mbrcontains FROM t1 a1 JOIN t1 a2 ON MBRContains( a1.square, a2.square) WHERE a1.name = "center" GROUP BY a1.name;
-mbrcontains
-center,small
-SELECT GROUP_CONCAT(a2.name ORDER BY a2.name) AS mbrdisjoint FROM t1 a1 JOIN t1 a2 ON MBRDisjoint( a1.square, a2.square) WHERE a1.name = "center" GROUP BY a1.name;
-mbrdisjoint
-down3,left3,right3,up3
-SELECT GROUP_CONCAT(a2.name ORDER BY a2.name) AS mbrequal FROM t1 a1 JOIN t1 a2 ON MBREqual( a1.square, a2.square) WHERE a1.name = "center" GROUP BY a1.name;
-mbrequal
-center
-SELECT GROUP_CONCAT(a2.name ORDER BY a2.name) AS mbrintersect FROM t1 a1 JOIN t1 a2 ON MBRIntersects( a1.square, a2.square) WHERE a1.name = "center" GROUP BY a1.name;
-mbrintersect
-big,center,down,down2,left,left2,right,right2,small,up,up2
-SELECT GROUP_CONCAT(a2.name ORDER BY a2.name) AS mbroverlaps FROM t1 a1 JOIN t1 a2 ON MBROverlaps( a1.square, a2.square) WHERE a1.name = "center" GROUP BY a1.name;
-mbroverlaps
-down,left,right,up
-SELECT GROUP_CONCAT(a2.name ORDER BY a2.name) AS mbrtouches FROM t1 a1 JOIN t1 a2 ON MBRTouches( a1.square, a2.square) WHERE a1.name = "center" GROUP BY a1.name;
-mbrtouches
-down2,left2,right2,up2
-SELECT GROUP_CONCAT(a2.name ORDER BY a2.name) AS mbrwithin FROM t1 a1 JOIN t1 a2 ON MBRWithin( a1.square, a2.square) WHERE a1.name = "center" GROUP BY a1.name;
-mbrwithin
-big,center
-SELECT GROUP_CONCAT(a2.name ORDER BY a2.name) AS contains FROM t1 a1 JOIN t1 a2 ON Contains( a1.square, a2.square) WHERE a1.name = "center" GROUP BY a1.name;
-contains
-center,small
-SELECT GROUP_CONCAT(a2.name ORDER BY a2.name) AS disjoint FROM t1 a1 JOIN t1 a2 ON Disjoint( a1.square, a2.square) WHERE a1.name = "center" GROUP BY a1.name;
-disjoint
-down3,left3,right3,up3
-SELECT GROUP_CONCAT(a2.name ORDER BY a2.name) AS equals FROM t1 a1 JOIN t1 a2 ON Equals( a1.square, a2.square) WHERE a1.name = "center" GROUP BY a1.name;
-equals
-center
-SELECT GROUP_CONCAT(a2.name ORDER BY a2.name) AS intersects FROM t1 a1 JOIN t1 a2 ON Intersects( a1.square, a2.square) WHERE a1.name = "center" GROUP BY a1.name;
-intersects
-big,center,down,down2,left,left2,right,right2,small,up,up2
-SELECT GROUP_CONCAT(a2.name ORDER BY a2.name) AS overlaps FROM t1 a1 JOIN t1 a2 ON Overlaps( a1.square, a2.square) WHERE a1.name = "center" GROUP BY a1.name;
-overlaps
-down,left,right,up
-SELECT GROUP_CONCAT(a2.name ORDER BY a2.name) AS touches FROM t1 a1 JOIN t1 a2 ON Touches( a1.square, a2.square) WHERE a1.name = "center" GROUP BY a1.name;
-touches
-down2,left2,right2,up2
-SELECT GROUP_CONCAT(a2.name ORDER BY a2.name) AS within FROM t1 a1 JOIN t1 a2 ON Within( a1.square, a2.square) WHERE a1.name = "center" GROUP BY a1.name;
-within
-big,center
-SET @vert1 = GeomFromText('POLYGON ((0 -2, 0 2, 0 -2))');
-SET @horiz1 = GeomFromText('POLYGON ((-2 0, 2 0, -2 0))');
-SET @horiz2 = GeomFromText('POLYGON ((-1 0, 3 0, -1 0))');
-SET @horiz3 = GeomFromText('POLYGON ((2 0, 3 0, 2 0))');
-SET @point1 = GeomFromText('POLYGON ((0 0))');
-SET @point2 = GeomFromText('POLYGON ((-2 0))');
-SELECT GROUP_CONCAT(a1.name ORDER BY a1.name) AS overlaps FROM t1 a1 WHERE Overlaps(a1.square, @vert1) GROUP BY a1.name;
-overlaps
-SELECT GROUP_CONCAT(a1.name ORDER BY a1.name) AS overlaps FROM t1 a1 WHERE Overlaps(a1.square, @horiz1) GROUP BY a1.name;
-overlaps
-SELECT Overlaps(@horiz1, @vert1) FROM DUAL;
-Overlaps(@horiz1, @vert1)
-0
-SELECT Overlaps(@horiz1, @horiz2) FROM DUAL;
-Overlaps(@horiz1, @horiz2)
-1
-SELECT Overlaps(@horiz1, @horiz3) FROM DUAL;
-Overlaps(@horiz1, @horiz3)
-0
-SELECT Overlaps(@horiz1, @point1) FROM DUAL;
-Overlaps(@horiz1, @point1)
-0
-SELECT Overlaps(@horiz1, @point2) FROM DUAL;
-Overlaps(@horiz1, @point2)
-0
-DROP TABLE t1;
-create table t1(f1 geometry, f2 linestring, f3 linestring);
-select f1 from t1 union select f1 from t1;
-f1
-insert into t1 (f2,f3) values (GeomFromText('LINESTRING(1 1, 2 2)'),
-GeomFromText('LINESTRING(0 0,1 1,2 2)'));
-select AsText(f2),AsText(f3) from t1;
-AsText(f2) AsText(f3)
-LINESTRING(1 1,2 2) LINESTRING(0 0,1 1,2 2)
-select AsText(a) from (select f2 as a from t1 union select f3 from t1) t;
-AsText(a)
-LINESTRING(1 1,2 2)
-LINESTRING(0 0,1 1,2 2)
-create table t2 as select f2 as a from t1 union select f3 from t1;
-desc t2;
-Field Type Null Key Default Extra
-a linestring YES NULL
-select AsText(a) from t2;
-AsText(a)
-LINESTRING(1 1,2 2)
-LINESTRING(0 0,1 1,2 2)
-drop table t1, t2;
-SELECT 1;
-1
-1
-CREATE TABLE t1 (p POINT);
-CREATE TABLE t2 (p POINT, INDEX(p));
-INSERT INTO t1 VALUES (POINTFROMTEXT('POINT(1 2)'));
-INSERT INTO t2 VALUES (POINTFROMTEXT('POINT(1 2)'));
-SELECT COUNT(*) FROM t1 WHERE p=POINTFROMTEXT('POINT(1 2)');
-COUNT(*)
-1
-EXPLAIN
-SELECT COUNT(*) FROM t2 WHERE p=POINTFROMTEXT('POINT(1 2)');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 system p NULL NULL NULL 1
-SELECT COUNT(*) FROM t2 WHERE p=POINTFROMTEXT('POINT(1 2)');
-COUNT(*)
-1
-INSERT INTO t1 VALUES (POINTFROMTEXT('POINT(1 2)'));
-INSERT INTO t2 VALUES (POINTFROMTEXT('POINT(1 2)'));
-EXPLAIN
-SELECT COUNT(*) FROM t1 WHERE p=POINTFROMTEXT('POINT(1 2)');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT COUNT(*) FROM t1 WHERE p=POINTFROMTEXT('POINT(1 2)');
-COUNT(*)
-2
-EXPLAIN
-SELECT COUNT(*) FROM t2 WHERE p=POINTFROMTEXT('POINT(1 2)');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref p p 28 const # Using where
-SELECT COUNT(*) FROM t2 WHERE p=POINTFROMTEXT('POINT(1 2)');
-COUNT(*)
-2
-EXPLAIN
-SELECT COUNT(*) FROM t2 IGNORE INDEX(p) WHERE p=POINTFROMTEXT('POINT(1 2)');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT COUNT(*) FROM t2 IGNORE INDEX(p) WHERE p=POINTFROMTEXT('POINT(1 2)');
-COUNT(*)
-2
-DROP TABLE t1, t2;
-End of 5.0 tests
-#
-# Test for bug #58650 "Failing assertion: primary_key_no == -1 ||
-# primary_key_no == 0".
-#
-drop table if exists t1;
-# The minimal test case.
-create table t1 (a int not null, b linestring not null, unique key b (b(12)), unique key a (a));
-drop table t1;
-# The original test case.
-create table t1 (a int not null, b linestring not null, unique key b (b(12)));
-create unique index a on t1(a);
-drop table t1;
-create table `t1` (`col002` point)engine=myisam;
-insert into t1 values (),(),();
-select min(`col002`) from t1 union select `col002` from t1;
-min(`col002`)
-NULL
-drop table t1;
-#
-# Bug #47780: crash when comparing GIS items from subquery
-#
-CREATE TABLE t1(a INT, b MULTIPOLYGON);
-INSERT INTO t1 VALUES
-(0,
-GEOMFROMTEXT(
-'multipolygon(((1 2,3 4,5 6,7 8,9 8),(7 6,5 4,3 2,1 2,3 4)))'));
-# must not crash
-SELECT 1 FROM t1 WHERE a <> (SELECT GEOMETRYCOLLECTIONFROMWKB(b) FROM t1);
-ERROR HY000: Illegal parameter data types int and geometry for operation '<>'
-DROP TABLE t1;
-#
-# Bug #49250 : spatial btree index corruption and crash
-# Part one : spatial syntax check
-#
-CREATE TABLE t1(col1 MULTIPOLYGON NOT NULL,
-SPATIAL INDEX USING BTREE (col1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'USING BTREE (col1))' at line 2
-CREATE TABLE t2(col1 MULTIPOLYGON NOT NULL);
-CREATE SPATIAL INDEX USING BTREE ON t2(col);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'USING BTREE ON t2(col)' at line 1
-ALTER TABLE t2 ADD SPATIAL INDEX USING BTREE (col1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'USING BTREE (col1)' at line 1
-DROP TABLE t2;
-End of 5.0 tests
-create table t1 (f1 tinyint(1), f2 char(1), f3 varchar(1), f4 geometry, f5 datetime);
-create view v1 as select * from t1;
-desc v1;
-Field Type Null Key Default Extra
-f1 tinyint(1) YES NULL
-f2 char(1) YES NULL
-f3 varchar(1) YES NULL
-f4 geometry YES NULL
-f5 datetime YES NULL
-drop view v1;
-drop table t1;
-SELECT MultiPoint(12345,'');
-ERROR HY000: Illegal parameter data type int for operation 'geometrycollection'
-SELECT 1 FROM (SELECT GREATEST(1,GEOMETRYCOLLECTION('00000','00000')) b FROM DUAL) AS d WHERE (LINESTRING(d.b));
-ERROR HY000: Illegal parameter data type varchar for operation 'geometrycollection'
-#
-# BUG#51875: crash when loading data into geometry function polyfromwkb
-#
-SET @a=0x00000000030000000100000000000000000000000000144000000000000014400000000000001840000000000000184000000000000014400000000000001440;
-SET @a=POLYFROMWKB(@a);
-SET @a=0x00000000030000000000000000000000000000000000144000000000000014400000000000001840000000000000184000000000000014400000000000001440;
-SET @a=POLYFROMWKB(@a);
-create table t1(a geometry NOT NULL)engine=myisam;
-insert into t1 values (geomfromtext("point(0 1)"));
-insert into t1 values (geomfromtext("point(1 0)"));
-select * from (select polygon(t1.a) as p from t1 order by t1.a) d;
-p
-NULL
-NULL
-drop table t1;
-#
-# Test for bug #59888 "debug assertion when attempt to create spatial index
-# on char > 31 bytes".
-#
-create table t1(a char(32) not null) engine=myisam;
-create spatial index i on t1 (a);
-ERROR HY000: Incorrect arguments to SPATIAL INDEX
-drop table t1;
-CREATE TABLE t0 (a BINARY(32) NOT NULL);
-CREATE SPATIAL INDEX i on t0 (a);
-ERROR HY000: Incorrect arguments to SPATIAL INDEX
-INSERT INTO t0 VALUES (1);
-CREATE TABLE t1(
-col0 BINARY NOT NULL,
-col2 TIMESTAMP,
-SPATIAL INDEX i1 (col0)
-) ENGINE=MyISAM;
-ERROR HY000: Incorrect arguments to SPATIAL INDEX
-CREATE TABLE t1 (
-col0 BINARY NOT NULL,
-col2 TIMESTAMP
-) ENGINE=MyISAM;
-CREATE SPATIAL INDEX idx0 ON t1(col0);
-ERROR HY000: Incorrect arguments to SPATIAL INDEX
-ALTER TABLE t1 ADD SPATIAL INDEX i1 (col0);
-ERROR HY000: Incorrect arguments to SPATIAL INDEX
-CREATE TABLE t2 (
-col0 INTEGER NOT NULL,
-col1 POINT,
-col2 POINT
-);
-CREATE SPATIAL INDEX idx0 ON t2 (col1, col2);
-ERROR HY000: Incorrect arguments to SPATIAL INDEX
-CREATE TABLE t3 (
-col0 INTEGER NOT NULL,
-col1 POINT,
-col2 LINESTRING,
-SPATIAL INDEX i1 (col1, col2)
-);
-ERROR HY000: Incorrect arguments to SPATIAL INDEX
-DROP TABLE t0, t1, t2;
-#
-# BUG#12414917 - ISCLOSED() CRASHES ON 64-BIT BUILDS
-#
-SELECT ISCLOSED(CONVERT(CONCAT(' ', 0x2), BINARY(20)));
-ISCLOSED(CONVERT(CONCAT(' ', 0x2), BINARY(20)))
--1
-#
-# BUG#12537203 - CRASH WHEN SUBSELECTING GLOBAL VARIABLES IN
-# GEOMETRY FUNCTION ARGUMENTS
-#
-SELECT GEOMETRYCOLLECTION((SELECT @@OLD));
-ERROR HY000: Illegal parameter data type bigint for operation 'geometrycollection'
-#
-# MDEV-4252 geometry query crashes server
-#
-select astext(0x0100000000030000000100000000000010);
-astext(0x0100000000030000000100000000000010)
-NULL
-select astext(st_centroid(0x0100000000030000000100000000000010));
-astext(st_centroid(0x0100000000030000000100000000000010))
-NULL
-select astext(st_exteriorring(0x0100000000030000000100000000000010));
-astext(st_exteriorring(0x0100000000030000000100000000000010))
-NULL
-select envelope(0x0100000000030000000100000000000010);
-envelope(0x0100000000030000000100000000000010)
-NULL
-select geometryn(0x0100000000070000000100000001030000000200000000000000ffff0000, 1);
-geometryn(0x0100000000070000000100000001030000000200000000000000ffff0000, 1)
-NULL
-select geometryn(0x0100000000070000000100000001030000000200000000000000ffffff0f, 1);
-geometryn(0x0100000000070000000100000001030000000200000000000000ffffff0f, 1)
-NULL
-#
-# MDEV-4296 Assertion `n_linear_rings > 0' fails in Gis_polygon::centroid_xy
-#
-SELECT Centroid( AsBinary( LineString(Point(0,0), Point(0,0), Point(0,0) )));
-Centroid( AsBinary( LineString(Point(0,0), Point(0,0), Point(0,0) )))
-NULL
-#
-# MDEV-4295 Server crashes in get_point on a query with Area, AsBinary, MultiPoint
-#
-SELECT Area(AsBinary(MultiPoint(Point(0,9), Point(0,1), Point(2,2))));
-Area(AsBinary(MultiPoint(Point(0,9), Point(0,1), Point(2,2))))
-NULL
-End of 5.1 tests
-select ST_AREA(ST_GEOMCOLLFROMTEXT(' GEOMETRYCOLLECTION(LINESTRING(100 100, 31 10, 77 80), POLYGON((0 0,4 7,1 1,0 0)), POINT(20 20))'));
-ST_AREA(ST_GEOMCOLLFROMTEXT(' GEOMETRYCOLLECTION(LINESTRING(100 100, 31 10, 77 80), POLYGON((0 0,4 7,1 1,0 0)), POINT(20 20))'))
-1.5
-select ST_LENGTH(ST_GEOMCOLLFROMTEXT(' GEOMETRYCOLLECTION(LINESTRING(100 100, 100 30, 20 30), POINT(3 3), LINESTRING(20 20, 30 20))'));
-ST_LENGTH(ST_GEOMCOLLFROMTEXT(' GEOMETRYCOLLECTION(LINESTRING(100 100, 100 30, 20 30), POINT(3 3), LINESTRING(20 20, 30 20))'))
-160
-DROP DATABASE IF EXISTS gis_ogs;
-CREATE DATABASE gis_ogs;
-USE gis_ogs;
-#
-# C.3.3.1 Geometry types and functions schema construction
-#
-CREATE TABLE lakes (
-fid INTEGER NOT NULL PRIMARY KEY,
-name CHARACTER VARYING(64),
-shore POLYGON);
-CREATE TABLE road_segments (
-fid INTEGER NOT NULL PRIMARY KEY,
-name CHARACTER VARYING(64),
-aliases CHARACTER VARYING(64),
-num_lanes INTEGER,
-centerline LINESTRING);
-CREATE TABLE divided_routes (
-fid INTEGER NOT NULL PRIMARY KEY,
-name CHARACTER VARYING(64),
-num_lanes INTEGER,
-centerlines MULTILINESTRING);
-CREATE TABLE forests (
-fid INTEGER NOT NULL PRIMARY KEY,
-name CHARACTER VARYING(64),
-boundary MULTIPOLYGON);
-CREATE TABLE bridges (
-fid INTEGER NOT NULL PRIMARY KEY,
-name CHARACTER VARYING(64),
-position POINT);
-CREATE TABLE streams (
-fid INTEGER NOT NULL PRIMARY KEY,
-name CHARACTER VARYING(64),
-centerline LINESTRING);
-CREATE TABLE buildings (
-fid INTEGER NOT NULL PRIMARY KEY,
-address CHARACTER VARYING(64),
-position POINT,
-footprint POLYGON);
-CREATE TABLE ponds (
-fid INTEGER NOT NULL PRIMARY KEY,
-name CHARACTER VARYING(64),
-type CHARACTER VARYING(64),
-shores MULTIPOLYGON);
-CREATE TABLE named_places (
-fid INTEGER NOT NULL PRIMARY KEY,
-name CHARACTER VARYING(64),
-boundary POLYGON);
-CREATE TABLE map_neatlines (
-fid INTEGER NOT NULL PRIMARY KEY,
-neatline POLYGON);
-#
-# C.3.3.2 Geometry types and functions schema data loading
-#
-# Lakes
-INSERT INTO lakes VALUES (
-101, 'BLUE LAKE',
-PolyFromText(
-'POLYGON(
-(52 18,66 23,73 9,48 6,52 18),
-(59 18,67 18,67 13,59 13,59 18)
-)',
-101));
-# Road Segments
-INSERT INTO road_segments VALUES(102, 'Route 5', NULL, 2,
-LineFromText(
-'LINESTRING( 0 18, 10 21, 16 23, 28 26, 44 31 )' ,101));
-INSERT INTO road_segments VALUES(103, 'Route 5', 'Main Street', 4,
-LineFromText(
-'LINESTRING( 44 31, 56 34, 70 38 )' ,101));
-INSERT INTO road_segments VALUES(104, 'Route 5', NULL, 2,
-LineFromText(
-'LINESTRING( 70 38, 72 48 )' ,101));
-INSERT INTO road_segments VALUES(105, 'Main Street', NULL, 4,
-LineFromText(
-'LINESTRING( 70 38, 84 42 )' ,101));
-INSERT INTO road_segments VALUES(106, 'Dirt Road by Green Forest', NULL,
-1,
-LineFromText(
-'LINESTRING( 28 26, 28 0 )',101));
-# DividedRoutes
-INSERT INTO divided_routes VALUES(119, 'Route 75', 4,
-MLineFromText(
-'MULTILINESTRING((10 48,10 21,10 0),
-(16 0,16 23,16 48))', 101));
-# Forests
-INSERT INTO forests VALUES(109, 'Green Forest',
-MPolyFromText(
-'MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),
-(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))',
-101));
-# Bridges
-INSERT INTO bridges VALUES(110, 'Cam Bridge', PointFromText(
-'POINT( 44 31 )', 101));
-# Streams
-INSERT INTO streams VALUES(111, 'Cam Stream',
-LineFromText(
-'LINESTRING( 38 48, 44 41, 41 36, 44 31, 52 18 )', 101));
-INSERT INTO streams VALUES(112, NULL,
-LineFromText(
-'LINESTRING( 76 0, 78 4, 73 9 )', 101));
-# Buildings
-INSERT INTO buildings VALUES(113, '123 Main Street',
-PointFromText(
-'POINT( 52 30 )', 101),
-PolyFromText(
-'POLYGON( ( 50 31, 54 31, 54 29, 50 29, 50 31) )', 101));
-INSERT INTO buildings VALUES(114, '215 Main Street',
-PointFromText(
-'POINT( 64 33 )', 101),
-PolyFromText(
-'POLYGON( ( 66 34, 62 34, 62 32, 66 32, 66 34) )', 101));
-# Ponds
-INSERT INTO ponds VALUES(120, NULL, 'Stock Pond',
-MPolyFromText(
-'MULTIPOLYGON( ( ( 24 44, 22 42, 24 40, 24 44) ),
-( ( 26 44, 26 40, 28 42, 26 44) ) )', 101));
-# Named Places
-INSERT INTO named_places VALUES(117, 'Ashton',
-PolyFromText(
-'POLYGON( ( 62 48, 84 48, 84 30, 56 30, 56 34, 62 48) )', 101));
-INSERT INTO named_places VALUES(118, 'Goose Island',
-PolyFromText(
-'POLYGON( ( 67 13, 67 18, 59 18, 59 13, 67 13) )', 101));
-# Map Neatlines
-INSERT INTO map_neatlines VALUES(115,
-PolyFromText(
-'POLYGON( ( 0 0, 0 48, 84 48, 84 0, 0 0 ) )', 101));
-#
-# C.3.3.3 Geometry types and functions schema test queries
-
-# Conformance Item T6
-SELECT Dimension(shore)
-FROM lakes
-WHERE name = 'Blue Lake';
-Dimension(shore)
-2
-# Conformance Item T7
-SELECT GeometryType(centerlines)
-FROM divided_routes
-WHERE name = 'Route 75';
-GeometryType(centerlines)
-MULTILINESTRING
-# Conformance Item T8
-SELECT AsText(boundary)
-FROM named_places
-WHERE name = 'Goose Island';
-AsText(boundary)
-POLYGON((67 13,67 18,59 18,59 13,67 13))
-# Conformance Item T9
-SELECT AsText(PolyFromWKB(AsBinary(boundary),101))
-FROM named_places
-WHERE name = 'Goose Island';
-AsText(PolyFromWKB(AsBinary(boundary),101))
-POLYGON((67 13,67 18,59 18,59 13,67 13))
-# Conformance Item T10
-SELECT SRID(boundary)
-FROM named_places
-WHERE name = 'Goose Island';
-SRID(boundary)
-101
-# Conformance Item T11
-SELECT IsEmpty(centerline)
-FROM road_segments
-WHERE name = 'Route 5'
-AND aliases = 'Main Street';
-IsEmpty(centerline)
-0
-# Conformance Item T12
-SELECT IsSimple(shore)
-FROM lakes
-WHERE name = 'Blue Lake';
-IsSimple(shore)
-1
-# Conformance Item T13
-SELECT AsText(ST_Boundary(boundary))
-FROM named_places
-WHERE name = 'Goose Island';
-AsText(ST_Boundary(boundary))
-LINESTRING(67 13,67 18,59 18,59 13,67 13)
-# Conformance Item T14
-SELECT AsText(Envelope(boundary))
-FROM named_places
-WHERE name = 'Goose Island';
-AsText(Envelope(boundary))
-POLYGON((59 13,67 13,67 18,59 18,59 13))
-# Conformance Item T15
-SELECT X(position)
-FROM bridges
-WHERE name = 'Cam Bridge';
-X(position)
-44
-# Conformance Item T16
-SELECT Y(position)
-FROM bridges
-WHERE name = 'Cam Bridge';
-Y(position)
-31
-# Conformance Item T17
-SELECT AsText(StartPoint(centerline))
-FROM road_segments
-WHERE fid = 102;
-AsText(StartPoint(centerline))
-POINT(0 18)
-# Conformance Item T18
-SELECT AsText(EndPoint(centerline))
-FROM road_segments
-WHERE fid = 102;
-AsText(EndPoint(centerline))
-POINT(44 31)
-SELECT IsClosed(LineFromWKB(AsBinary(Boundary(boundary)),SRID(boundary)))
-FROM named_places
-WHERE name = 'Goose Island';
-IsClosed(LineFromWKB(AsBinary(Boundary(boundary)),SRID(boundary)))
-1
-# Conformance Item T20
-SELECT IsRing(LineFromWKB(AsBinary(Boundary(boundary)),SRID(boundary)))
-FROM named_places
-WHERE name = 'Goose Island';
-IsRing(LineFromWKB(AsBinary(Boundary(boundary)),SRID(boundary)))
-1
-# Conformance Item T21
-SELECT GLength(centerline)
-FROM road_segments
-WHERE fid = 106;
-GLength(centerline)
-26
-# Conformance Item T22
-SELECT NumPoints(centerline)
-FROM road_segments
-WHERE fid = 102;
-NumPoints(centerline)
-5
-# Conformance Item T23
-SELECT AsText(PointN(centerline, 1))
-FROM road_segments
-WHERE fid = 102;
-AsText(PointN(centerline, 1))
-POINT(0 18)
-# Conformance Item T24
-SELECT AsText(Centroid(boundary))
-FROM named_places
-WHERE name = 'Goose Island';
-AsText(Centroid(boundary))
-POINT(63 15.5)
-SELECT ST_Contains(boundary, PointOnSurface(boundary))
-FROM named_places
-WHERE name = 'Goose Island';
-ST_Contains(boundary, PointOnSurface(boundary))
-1
-# Conformance Item T26
-SELECT Area(boundary)
-FROM named_places
-WHERE name = 'Goose Island';
-Area(boundary)
-40
-# Conformance Item T27
-SELECT AsText(ExteriorRing(shore))
-FROM lakes
-WHERE name = 'Blue Lake';
-AsText(ExteriorRing(shore))
-LINESTRING(52 18,66 23,73 9,48 6,52 18)
-# Conformance Item T28
-SELECT NumInteriorRings(shore)
-FROM lakes
-WHERE name = 'Blue Lake';
-NumInteriorRings(shore)
-1
-# Conformance Item T29
-SELECT AsText(InteriorRingN(shore, 1))
-FROM lakes
-WHERE name = 'Blue Lake';
-AsText(InteriorRingN(shore, 1))
-LINESTRING(59 18,67 18,67 13,59 13,59 18)
-# Conformance Item T30
-SELECT NumGeometries(centerlines)
-FROM divided_routes
-WHERE name = 'Route 75';
-NumGeometries(centerlines)
-2
-# Conformance Item T31
-SELECT AsText(GeometryN(centerlines, 2))
-FROM divided_routes
-WHERE name = 'Route 75';
-AsText(GeometryN(centerlines, 2))
-LINESTRING(16 0,16 23,16 48)
-# Conformance Item T32
-SELECT IsClosed(centerlines)
-FROM divided_routes
-WHERE name = 'Route 75';
-IsClosed(centerlines)
-0
-# Conformance Item T33
-SELECT GLength(centerlines)
-FROM divided_routes
-WHERE name = 'Route 75';
-GLength(centerlines)
-96
-# Conformance Item T34
-SELECT AsText(Centroid(shores))
-FROM ponds
-WHERE fid = 120;
-AsText(Centroid(shores))
-POINT(25 42)
-# Conformance Item T35
-SELECT Contains(shores, PointOnSurface(shores))
-FROM ponds
-WHERE fid = 120;
-Contains(shores, PointOnSurface(shores))
-1
-# Conformance Item T36
-SELECT Area(shores)
-FROM ponds
-WHERE fid = 120;
-Area(shores)
-8
-# Conformance Item T37
-SELECT ST_Equals(boundary,
-PolyFromText('POLYGON( ( 67 13, 67 18, 59 18, 59 13, 67 13) )',1))
-FROM named_places
-WHERE name = 'Goose Island';
-ST_Equals(boundary,
-PolyFromText('POLYGON( ( 67 13, 67 18, 59 18, 59 13, 67 13) )',1))
-1
-# Conformance Item T38
-SELECT ST_Disjoint(centerlines, boundary)
-FROM divided_routes, named_places
-WHERE divided_routes.name = 'Route 75'
-AND named_places.name = 'Ashton';
-ST_Disjoint(centerlines, boundary)
-1
-# Conformance Item T39
-SELECT ST_Touches(centerline, shore)
-FROM streams, lakes
-WHERE streams.name = 'Cam Stream'
-AND lakes.name = 'Blue Lake';
-ST_Touches(centerline, shore)
-1
-# Conformance Item T40
-SELECT ST_Within(footprint, boundary)
-FROM named_places, buildings
-WHERE named_places.name = 'Ashton'
-AND buildings.address = '215 Main Street';
-ST_Within(footprint, boundary)
-1
-# Conformance Item T41
-SELECT ST_Overlaps(forests.boundary, named_places.boundary)
-FROM forests, named_places
-WHERE forests.name = 'Green Forest'
-AND named_places.name = 'Ashton';
-ST_Overlaps(forests.boundary, named_places.boundary)
-1
-# Conformance Item T42
-SELECT Crosses(road_segments.centerline, divided_routes.centerlines)
-FROM road_segments, divided_routes
-WHERE road_segments.fid = 102
-AND divided_routes.name = 'Route 75';
-Crosses(road_segments.centerline, divided_routes.centerlines)
-1
-# Conformance Item T43
-SELECT ST_Intersects(road_segments.centerline, divided_routes.centerlines)
-FROM road_segments, divided_routes
-WHERE road_segments.fid = 102
-AND divided_routes.name = 'Route 75';
-ST_Intersects(road_segments.centerline, divided_routes.centerlines)
-1
-# Conformance Item T44
-SELECT ST_Contains(forests.boundary, named_places.boundary)
-FROM forests, named_places
-WHERE forests.name = 'Green Forest'
-AND named_places.name = 'Ashton';
-ST_Contains(forests.boundary, named_places.boundary)
-0
-# Conformance Item T45
-SELECT ST_Relate(forests.boundary, named_places.boundary, 'TTTTTTTTT')
-FROM forests, named_places
-WHERE forests.name = 'Green Forest'
-AND named_places.name = 'Ashton';
-ST_Relate(forests.boundary, named_places.boundary, 'TTTTTTTTT')
-1
-# Conformance Item T46
-SELECT ST_Distance(position, boundary)
-FROM bridges, named_places
-WHERE bridges.name = 'Cam Bridge'
-AND named_places.name = 'Ashton';
-ST_Distance(position, boundary)
-12
-# Conformance Item T47
-SELECT AsText(ST_Intersection(centerline, shore))
-FROM streams, lakes
-WHERE streams.name = 'Cam Stream'
-AND lakes.name = 'Blue Lake';
-AsText(ST_Intersection(centerline, shore))
-POINT(52 18)
-# Conformance Item T48
-SELECT AsText(ST_Difference(named_places.boundary, forests.boundary))
-FROM named_places, forests
-WHERE named_places.name = 'Ashton'
-AND forests.name = 'Green Forest';
-AsText(ST_Difference(named_places.boundary, forests.boundary))
-POLYGON((56 34,62 48,84 48,84 42,56 34))
-SELECT AsText(ST_Union(shore, boundary))
-FROM lakes, named_places
-WHERE lakes.name = 'Blue Lake'
-AND named_places.name = 'Goose Island';
-AsText(ST_Union(shore, boundary))
-POLYGON((48 6,52 18,66 23,73 9,48 6))
-# Conformance Item T50
-SELECT AsText(ST_SymDifference(shore, boundary))
-FROM lakes, named_places
-WHERE lakes.name = 'Blue Lake'
-AND named_places.name = 'Ashton';
-AsText(ST_SymDifference(shore, boundary))
-MULTIPOLYGON(((48 6,52 18,66 23,73 9,48 6),(59 13,59 18,67 18,67 13,59 13)),((56 30,56 34,62 48,84 48,84 30,56 30)))
-# Conformance Item T51
-SELECT count(*)
-FROM buildings, bridges
-WHERE ST_Contains(ST_Buffer(bridges.position, 15.0), buildings.footprint) = 1;
-count(*)
-1
-# Conformance Item T52
-SELECT AsText(ConvexHull(shore))
-FROM lakes
-WHERE lakes.name = 'Blue Lake';
-AsText(ConvexHull(shore))
-POLYGON((48 6,52 18,66 23,73 9,48 6))
-DROP DATABASE gis_ogs;
-USE test;
-#
-# BUG #1043845 st_distance() results are incorrect depending on variable order
-#
-select st_distance(geomfromtext('LINESTRING(-95.9673005697771 36.13509598461,
- -95.9673057475387 36.1344478941074,
- -95.9673063519371 36.134484524621,
- -95.9673049102515 36.1343976584193)'),
-geomfromtext('point(-95.96269500000000000000 36.14181833333330000000)')) ;
-st_distance(geomfromtext('LINESTRING(-95.9673005697771 36.13509598461,
- -95.9673057475387 36.1344478941074,
- -95.9673063519371 36.134484524621,
-
-0.008148695928146028
-select st_distance(geomfromtext('point(-95.96269500000000000000 36.14181833333330000000)'),
-geomfromtext('LINESTRING(-95.9673005697771 36.13509598461,
- -95.9673057475387 36.1344478941074,
- -95.9673063519371 36.134484524621,
- -95.9673049102515 36.1343976584193) ')) ;
-st_distance(geomfromtext('point(-95.96269500000000000000 36.14181833333330000000)'),
-geomfromtext('LINESTRING(-95.9673005697771 36.13509598461,
- -95.9673057475387 36.1344478941074,
- -95.9673063519371 36.
-0.008148695928146028
-#
-# MDEV-4310 geometry function equals hangs forever.
-#
-create table t1(a geometry not null)engine=myisam;
-insert into t1 values(geomfromtext("POINT(0 0)"));
-insert into t1 values(geomfromtext("POINT(0 9.2233720368548e18)"));
-insert into t1 values(geomfromtext("POINT(0 9.2233720368548e18)"));
-select equals(`a`,convert(`a` using utf8)) from `t1`;
-ERROR HY000: Illegal parameter data type longblob for operation 'st_equals'
-select equals(`a`,left(`a`,23)) from `t1`;
-equals(`a`,left(`a`,23))
-NULL
-NULL
-NULL
-drop table t1;
-#
-# MDEV-6883 ST_WITHIN crashes server if (0,0) is matched to POLYGON((0 0))
-#
-select st_within(GeomFromText('Polygon((0 0))'), Point(0,0));
-st_within(GeomFromText('Polygon((0 0))'), Point(0,0))
-1
-End of 5.3 tests
-#
-# Bug#11908153: CRASH AND/OR VALGRIND ERRORS IN FIELD_BLOB::GET_KEY_IMAGE
-#
-CREATE TABLE g1
-(a geometry NOT NULL, UNIQUE KEY i (a(151))) engine=myisam;
-INSERT INTO g1 VALUES (geomfromtext('point(1 1)'));
-INSERT INTO g1 VALUES (geomfromtext('point(1 2)'));
-FLUSH TABLES;
-SELECT 1 FROM g1
-FORCE INDEX(i) WHERE a = date_sub(now(), interval 2808.4 year_month)
-;
-ERROR HY000: Illegal parameter data types geometry and datetime for operation '='
-DROP TABLE g1;
-#
-# Bug#13013970 MORE CRASHES IN FIELD_BLOB::GET_KEY_IMAGE
-#
-CREATE TABLE g1(a TEXT NOT NULL, KEY(a(255)));
-INSERT INTO g1 VALUES ('a'),('a');
-SELECT 1 FROM g1 WHERE a >= ANY
-(SELECT 1 FROM g1 WHERE a = geomfromtext('') OR a) ;
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-DROP TABLE g1;
-#
-# Bug#16451878 GEOMETRY QUERY CRASHES SERVER
-#
-# should not crash
-SELECT ASTEXT(0x0100000000030000000100000000000010);
-ASTEXT(0x0100000000030000000100000000000010)
-NULL
-#should not crash
-SELECT ENVELOPE(0x0100000000030000000100000000000010);
-ENVELOPE(0x0100000000030000000100000000000010)
-NULL
-#should not crash
-SELECT
-GEOMETRYN(0x0100000000070000000100000001030000000200000000000000ffff0000, 1);
-GEOMETRYN(0x0100000000070000000100000001030000000200000000000000ffff0000, 1)
-NULL
-#should not crash
-SELECT
-GEOMETRYN(0x0100000000070000000100000001030000000200000000000000ffffff0f, 1);
-GEOMETRYN(0x0100000000070000000100000001030000000200000000000000ffffff0f, 1)
-NULL
-#
-# MDEV-3819 missing constraints for spatial column types
-#
-create table t1 (pt point);
-insert into t1 values(Geomfromtext('POLYGON((1 1, 2 2, 2 1, 1 1))'));
-ERROR 22007: Incorrect POINT value: 'POLYGON' for column 'pt' at row 1
-drop table t1;
-SELECT st_astext(ST_Buffer(ST_PolygonFromText('POLYGON((3 5, 2 4, 2 5, 3 5))'), -100));
-st_astext(ST_Buffer(ST_PolygonFromText('POLYGON((3 5, 2 4, 2 5, 3 5))'), -100))
-GEOMETRYCOLLECTION EMPTY
-CREATE VIEW v1 AS SELECT POINT(1,1) AS p;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select point(1,1) AS `p` latin1 latin1_swedish_ci
-SELECT ASTEXT(p) FROM v1;
-ASTEXT(p)
-POINT(1 1)
-DROP VIEW v1;
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-12495 Conditional jump depends on uninitialised value for: SELECT NULL UNION geom_expression
-#
-SELECT AsText(g) FROM (SELECT NULL AS g UNION SELECT Point(1,1)) AS t1;
-AsText(g)
-NULL
-POINT(1 1)
-#
-# MDEV-10306 Wrong results with combination of CONCAT, SUBSTR and CONVERT in subquery
-#
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='derived_merge=on';
-CREATE TABLE t1 (x INT, y INT);
-INSERT INTO t1 VALUES(0,0);
-SELECT LENGTH(t2) c2 FROM (SELECT ST_BUFFER(POINT(x,y), 0) t2 FROM t1) sub;
-c2
-25
-SELECT LENGTH(CONCAT(t2,'-',t2)) c2 FROM (SELECT ST_BUFFER(POINT(x,y), 0) t2 FROM t1) sub;
-c2
-51
-SELECT LENGTH(CONCAT(t2,'--',t2)) c2 FROM (SELECT ST_BUFFER(POINT(x,y), 0) t2 FROM t1) sub;
-c2
-52
-DROP TABLE t1;
-SET optimizer_switch=@save_optimizer_switch;
-#
-# End 10.0 tests
-#
-SHOW CREATE TABLE information_schema.geometry_columns;
-Table Create Table
-GEOMETRY_COLUMNS CREATE TEMPORARY TABLE `GEOMETRY_COLUMNS` (
- `F_TABLE_CATALOG` varchar(512) NOT NULL DEFAULT '',
- `F_TABLE_SCHEMA` varchar(64) NOT NULL DEFAULT '',
- `F_TABLE_NAME` varchar(64) NOT NULL DEFAULT '',
- `F_GEOMETRY_COLUMN` varchar(64) NOT NULL DEFAULT '',
- `G_TABLE_CATALOG` varchar(512) NOT NULL DEFAULT '',
- `G_TABLE_SCHEMA` varchar(64) NOT NULL DEFAULT '',
- `G_TABLE_NAME` varchar(64) NOT NULL DEFAULT '',
- `G_GEOMETRY_COLUMN` varchar(64) NOT NULL DEFAULT '',
- `STORAGE_TYPE` tinyint(2) NOT NULL DEFAULT 0,
- `GEOMETRY_TYPE` int(7) NOT NULL DEFAULT 0,
- `COORD_DIMENSION` tinyint(2) NOT NULL DEFAULT 0,
- `MAX_PPR` tinyint(2) NOT NULL DEFAULT 0,
- `SRID` smallint(5) NOT NULL DEFAULT 0
-) ENGINE=MEMORY DEFAULT CHARSET=utf8
-SHOW CREATE TABLE information_schema.spatial_ref_sys;
-Table Create Table
-SPATIAL_REF_SYS CREATE TEMPORARY TABLE `SPATIAL_REF_SYS` (
- `SRID` smallint(5) NOT NULL DEFAULT 0,
- `AUTH_NAME` varchar(512) NOT NULL DEFAULT '',
- `AUTH_SRID` int(5) NOT NULL DEFAULT 0,
- `SRTEXT` varchar(2048) NOT NULL DEFAULT ''
-) ENGINE=MEMORY DEFAULT CHARSET=utf8
-create table t1(g GEOMETRY, pt POINT);
-create table t2(g LINESTRING, pl POLYGON);
-select * from information_schema.geometry_columns where f_table_schema='test';
-F_TABLE_CATALOG F_TABLE_SCHEMA F_TABLE_NAME F_GEOMETRY_COLUMN G_TABLE_CATALOG G_TABLE_SCHEMA G_TABLE_NAME G_GEOMETRY_COLUMN STORAGE_TYPE GEOMETRY_TYPE COORD_DIMENSION MAX_PPR SRID
-def test t1 def test t1 g 1 0 2 0 0
-def test t1 def test t1 pt 1 1 2 0 0
-def test t2 def test t2 g 1 2 2 0 0
-def test t2 def test t2 pl 1 3 2 0 0
-drop table t1, t2;
-10.1 tests
-create table t1(g GEOMETRY(9,4) REF_SYSTEM_ID=101, pt POINT(8,2), pg GEOMETRY REF_SYSTEM_ID=102);
-SELECT SRID from information_schema.geometry_columns WHERE f_table_schema='test' and G_TABLE_NAME='t1';
-SRID
-101
-0
-102
-drop table t1;
-# Expect an int(1) column to be created
-CREATE TABLE t1 AS SELECT CONTAINS(NULL, NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `CONTAINS(NULL, NULL)` int(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# MDEV-7334 valgrind warning "unitialized bytes" in 10.1.
-#
-CREATE TABLE t1 (
-gp point,
-ln linestring,
-pg polygon,
-mp multipoint,
-mln multilinestring,
-mpg multipolygon,
-gc geometrycollection,
-gm geometry
-);
-ALTER TABLE t1 ADD fid INT NOT NULL;
-select SRID from information_schema.geometry_columns where F_TABLE_NAME='t1';
-SRID
-0
-0
-0
-0
-0
-0
-0
-0
-drop table t1;
-#
-# MDEV-7510 GIS: IsRing returns false for a primitive triangle.
-#
-select ST_IsRing(ST_LineFromText('LINESTRING(0 0,0 10,10 10,0 0)'));
-ST_IsRing(ST_LineFromText('LINESTRING(0 0,0 10,10 10,0 0)'))
-1
-select ST_IsRing(ST_LineFromText('LINESTRING(0 0,0 10,10 10,-10 -10, 0 -10, 0 0)'));
-ST_IsRing(ST_LineFromText('LINESTRING(0 0,0 10,10 10,-10 -10, 0 -10, 0 0)'))
-0
-#
-# MDEV-7514 GIS: PointOnSurface returns NULL instead of the point.
-#
-SELECT ST_GEOMETRYTYPE(ST_PointOnSurface(ST_PolyFromText('POLYGON((-70.916 42.1002,-70.9468 42.0946,-70.9754 42.0875,-70.9749 42.0879,-70.9759 42.0897,-70.916 42.1002))')));
-ST_GEOMETRYTYPE(ST_PointOnSurface(ST_PolyFromText('POLYGON((-70.916 42.1002,-70.9468 42.0946,-70.9754 42.0875,-70.9749 42.0879,-70.9759 42.0897,-70.916 42.1002))')))
-NULL
-#
-# MDEV-7529 GIS: ST_Relate returns unexpected results for POINT relations
-#
-select ST_Relate(ST_PointFromText('POINT(0 0)'),ST_PointFromText('POINT(0 0)'),'T*F**FFF*') AS equals;
-equals
-1
-select ST_Relate(ST_PointFromText('POINT(0 0)'),ST_PointFromText('POINT(0 0)'),'T*****FF*') AS contains;
-contains
-1
-select ST_Relate(ST_PointFromText('POINT(0 0)'),ST_PointFromText('POINT(0 0)'),'T*F**F***') AS within;
-within
-1
-select ST_Relate(ST_PointFromText('POINT(0 0)'),ST_PointFromText('POINT(1 1)'),'FF*FF****') as disjoint;
-disjoint
-1
-select ST_Relate(ST_PointFromText('POINT(0 0)'),ST_PointFromText('POINT(0 0)'),'FF*FF****') as disjoint;
-disjoint
-0
-#
-# MDEV-7528 GIS: Functions return NULL instead of specified -1 for NULL arguments.
-#
-select ST_IsRing(NULL);
-ST_IsRing(NULL)
--1
-#
-# MDEV-8675 Different results of GIS functions on NULL vs NOT NULL columns
-#
-CREATE TABLE t1 (g1 GEOMETRY NOT NULL,g2 GEOMETRY NULL);
-CREATE TABLE t2 AS SELECT WITHIN(g1,g1) as w1,WITHIN(g2,g2) AS w2 FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `w1` int(1) DEFAULT NULL,
- `w2` int(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1,t2;
-#
-# Start of 10.2 tests
-#
-create view v1 as select AsWKT(GeometryCollection(Point(44, 6), LineString(Point(3, 6), Point(7, 9))));
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select st_astext(geometrycollection(point(44,6),geometrycollection(point(3,6),point(7,9)))) AS `Name_exp_1` latin1 latin1_swedish_ci
-select * from v1;
-Name_exp_1
-GEOMETRYCOLLECTION(POINT(44 6),GEOMETRYCOLLECTION(POINT(3 6),POINT(7 9)))
-drop view v1;
-#
-# MDEV-10134 Add full support for DEFAULT
-#
-CREATE TABLE t1 (a POINT, x DOUBLE DEFAULT x(a), y DOUBLE DEFAULT y(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` point DEFAULT NULL,
- `x` double DEFAULT st_x(`a`),
- `y` double DEFAULT st_y(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (Point(1,2));
-SELECT x,y FROM t1;
-x y
-1 2
-DROP TABLE t1;
-CREATE TABLE t1 (g GEOMETRY, area DOUBLE DEFAULT ST_AREA(g));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `g` geometry DEFAULT NULL,
- `area` double DEFAULT st_area(`g`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (g) VALUES (GeomFromText('POLYGON((0 0,20 0,20 20,0 20,0 0))'));
-SELECT area FROM t1;
-area
-400
-DROP TABLE t1;
-CREATE TABLE t1 (g GEOMETRY, length DOUBLE DEFAULT ST_LENGTH(g));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `g` geometry DEFAULT NULL,
- `length` double DEFAULT st_length(`g`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (g) VALUES (GeomFromText('LINESTRING(0 0,20 0,20 20,0 20,0 0)'));
-SELECT length FROM t1;
-length
-80
-DROP TABLE t1;
-CREATE TABLE t1 (g POINT, distance DOUBLE DEFAULT ST_DISTANCE(g, POINT(0,0)));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `g` point DEFAULT NULL,
- `distance` double DEFAULT st_distance(`g`,point(0,0))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (g) VALUES (Point(1,0));
-SELECT distance FROM t1;
-distance
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a TEXT, g GEOMETRY DEFAULT GeomFromText(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text DEFAULT NULL,
- `g` geometry DEFAULT st_geometryfromtext(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('point(1 1)');
-SELECT AsText(g) FROM t1;
-AsText(g)
-POINT(1 1)
-DROP TABLE t1;
-CREATE TABLE t1 (x INT, y INT, g GEOMETRY DEFAULT POINT(x,y));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `x` int(11) DEFAULT NULL,
- `y` int(11) DEFAULT NULL,
- `g` geometry DEFAULT point(`x`,`y`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (x,y) VALUES (10,20);
-SELECT AsText(g) FROM t1;
-AsText(g)
-POINT(10 20)
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b GEOMETRY DEFAULT PointN(a,2));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` geometry DEFAULT st_pointn(`a`,2)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (GeomFromText('LineString(1 1,2 2,3 3)'));
-SELECT AsText(b) FROM t1;
-AsText(b)
-POINT(2 2)
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b GEOMETRY DEFAULT StartPoint(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` geometry DEFAULT st_startpoint(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (GeomFromText('LineString(1 1,2 2,3 3)'));
-SELECT AsText(b) FROM t1;
-AsText(b)
-POINT(1 1)
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b GEOMETRY, c GEOMETRY DEFAULT GeometryCollection(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` geometry DEFAULT NULL,
- `c` geometry DEFAULT geometrycollection(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES (Point(1,1), Point(2,2));
-SELECT AsText(c) FROM t1;
-AsText(c)
-GEOMETRYCOLLECTION(POINT(1 1),POINT(2 2))
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b GEOMETRY DEFAULT GeomFromWKB(AsBinary(a),20));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` geometry DEFAULT st_geometryfromwkb(st_aswkb(`a`),20)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (GeomFromText('POINT(1 1)', 10));
-SELECT AsText(a), SRID(a), AsText(b), SRID(b) FROM t1;
-AsText(a) SRID(a) AsText(b) SRID(b)
-POINT(1 1) 10 POINT(1 1) 20
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b GEOMETRY DEFAULT BOUNDARY(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` geometry DEFAULT st_boundary(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (GeomFromText('POLYGON((10 10, 10 20, 20 20, 20 10, 10 10))'));
-SELECT AsText(b) FROM t1;
-AsText(b)
-LINESTRING(10 10,10 20,20 20,20 10,10 10)
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b GEOMETRY DEFAULT BUFFER(a,10));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` geometry DEFAULT st_buffer(`a`,10)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (GeomFromText('POLYGON((10 10, 10 20, 20 20, 20 10, 10 10))'));
-SELECT GeometryType(b) FROM t1;
-GeometryType(b)
-POLYGON
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b GEOMETRY DEFAULT CENTROID(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` geometry DEFAULT st_centroid(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (GeomFromText('POLYGON((10 10, 10 20, 20 20, 20 10, 10 10))'));
-SELECT AsText(b) FROM t1;
-AsText(b)
-POINT(15 15)
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b GEOMETRY DEFAULT ENVELOPE(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` geometry DEFAULT st_envelope(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (GeomFromText('LineString(1 1,4 4)'));
-SELECT AsText(b) FROM t1;
-AsText(b)
-POLYGON((1 1,4 1,4 4,1 4,1 1))
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b GEOMETRY DEFAULT PointOnSurface(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` geometry DEFAULT st_pointonsurface(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (GeomFromText('POLYGON((10 10, 10 20, 20 20, 20 10, 10 10))'));
-SELECT GeometryType(b) FROM t1;
-GeometryType(b)
-POINT
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b GEOMETRY DEFAULT Point(1,1), c GEOMETRY DEFAULT ST_UNION(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` geometry DEFAULT point(1,1),
- `c` geometry DEFAULT st_union(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (Point(0,0));
-SELECT AsText(c) FROM t1;
-AsText(c)
-MULTIPOINT(0 0,1 1)
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b VARCHAR(20) DEFAULT GeometryType(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` varchar(20) DEFAULT st_geometrytype(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (Point(0, 0));
-SELECT b FROM t1;
-b
-POINT
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b INT DEFAULT IsSimple(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` int(11) DEFAULT st_issimple(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (Point(0, 0));
-SELECT b FROM t1;
-b
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b INT DEFAULT IsEmpty(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` int(11) DEFAULT st_isempty(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (Point(0, 0));
-SELECT b FROM t1;
-b
-0
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b INT DEFAULT IsRing(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` int(11) DEFAULT st_isring(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (GeomFromText('LineString(0 0,0 1,1 1,1 0,0 0)'));
-SELECT b FROM t1;
-b
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b INT DEFAULT IsClosed(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` int(11) DEFAULT st_isclosed(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (GeomFromText('LineString(0 0,0 1,1 1,1 0,0 0)'));
-SELECT b FROM t1;
-b
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b INT DEFAULT Dimension(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` int(11) DEFAULT st_dimension(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (Buffer(Point(1,1),1));
-SELECT b FROM t1;
-b
-2
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b INT DEFAULT NumGeometries(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` int(11) DEFAULT st_numgeometries(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (ST_UNION(Point(1,1),Point(0,0)));
-SELECT b FROM t1;
-b
-2
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b INT DEFAULT NumInteriorRings(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` int(11) DEFAULT st_numinteriorrings(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (GeomFromText('Polygon((0 0,0 3,3 3,3 0,0 0),(1 1,1 2,2 2,2 1,1 1))'));
-SELECT b FROM t1;
-b
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b INT DEFAULT NumPoints(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` int(11) DEFAULT st_numpoints(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (LineString(Point(1,1),Point(0,0)));
-SELECT b FROM t1;
-b
-2
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b INT DEFAULT SRID(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` int(11) DEFAULT srid(`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (GeomFromText('Point(1 1)', 100));
-SELECT b FROM t1;
-b
-100
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b GEOMETRY, c INT DEFAULT MBRDisjoint(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` geometry DEFAULT NULL,
- `c` int(11) DEFAULT mbrdisjoint(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES (Point(1,1),Point(1,1));
-SELECT c FROM t1;
-c
-0
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b GEOMETRY, c INT DEFAULT ST_Disjoint(a,b));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` geometry DEFAULT NULL,
- `c` int(11) DEFAULT st_disjoint(`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES (Point(1,1),Point(1,1));
-SELECT c FROM t1;
-c
-0
-DROP TABLE t1;
-CREATE TABLE t1 (a GEOMETRY, b GEOMETRY, c INT DEFAULT ST_Relate(a,b,'T*F**FFF*'));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` geometry DEFAULT NULL,
- `b` geometry DEFAULT NULL,
- `c` int(11) DEFAULT st_relate(`a`,`b`,'T*F**FFF*')
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a,b) VALUES (Point(1,1),Point(1,1));
-SELECT c FROM t1;
-c
-1
-DROP TABLE t1;
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-11478 Result data type aggregation for pluggable data types
-#
-CREATE PROCEDURE p2(query TEXT)
-BEGIN
-DECLARE errcount INT DEFAULT 0;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-SET errcount = errcount+1;
-#SHOW WARNINGS;
-GET DIAGNOSTICS CONDITION 1 @p= MESSAGE_TEXT;
-SELECT @p AS `ERROR: `;
-END;
-SELECT query AS ``;
-EXECUTE IMMEDIATE query;
-IF errcount = 0
-THEN
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END IF;
-END;
-$$
-CREATE PROCEDURE p1(query TEXT)
-BEGIN
-SELECT query AS `-------------------------------------`;
-EXECUTE IMMEDIATE query;
-CALL p2('CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1');
-CALL p2('CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1');
-CALL p2('CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1');
-CALL p2('CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1');
-CALL p2('CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1');
-DROP TABLE t1;
-END;
-$$
--------------------------------------
-CREATE TABLE t1 (a CHAR(10), b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CASE WHEN TRUE THEN a ELSE b END` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IF(TRUE,a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IFNULL(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
--------------------------------------
-CREATE TABLE t1 (a VARCHAR(10), b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CASE WHEN TRUE THEN a ELSE b END` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IF(TRUE,a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IFNULL(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
--------------------------------------
-CREATE TABLE t1 (a TINYTEXT, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CASE WHEN TRUE THEN a ELSE b END` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IF(TRUE,a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IFNULL(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
--------------------------------------
-CREATE TABLE t1 (a TEXT, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CASE WHEN TRUE THEN a ELSE b END` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IF(TRUE,a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IFNULL(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
--------------------------------------
-CREATE TABLE t1 (a MEDIUMTEXT, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CASE WHEN TRUE THEN a ELSE b END` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IF(TRUE,a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IFNULL(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
--------------------------------------
-CREATE TABLE t1 (a LONGTEXT, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CASE WHEN TRUE THEN a ELSE b END` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IF(TRUE,a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IFNULL(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
--------------------------------------
-CREATE TABLE t1 (a TINYINT, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-ERROR:
-Illegal parameter data types tinyint and geometry for operation 'case'
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-ERROR:
-Illegal parameter data types tinyint and geometry for operation 'coalesce'
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-ERROR:
-Illegal parameter data types tinyint and geometry for operation 'if'
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-ERROR:
-Illegal parameter data types tinyint and geometry for operation 'ifnull'
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types tinyint and geometry for operation 'UNION'
--------------------------------------
-CREATE TABLE t1 (a SMALLINT, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-ERROR:
-Illegal parameter data types smallint and geometry for operation 'case'
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-ERROR:
-Illegal parameter data types smallint and geometry for operation 'coalesce'
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-ERROR:
-Illegal parameter data types smallint and geometry for operation 'if'
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-ERROR:
-Illegal parameter data types smallint and geometry for operation 'ifnull'
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types smallint and geometry for operation 'UNION'
--------------------------------------
-CREATE TABLE t1 (a MEDIUMINT, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-ERROR:
-Illegal parameter data types mediumint and geometry for operation 'case'
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-ERROR:
-Illegal parameter data types mediumint and geometry for operation 'coalesce'
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-ERROR:
-Illegal parameter data types mediumint and geometry for operation 'if'
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-ERROR:
-Illegal parameter data types mediumint and geometry for operation 'ifnull'
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types mediumint and geometry for operation 'UNION'
--------------------------------------
-CREATE TABLE t1 (a INT, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-ERROR:
-Illegal parameter data types int and geometry for operation 'case'
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-ERROR:
-Illegal parameter data types int and geometry for operation 'coalesce'
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-ERROR:
-Illegal parameter data types int and geometry for operation 'if'
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-ERROR:
-Illegal parameter data types int and geometry for operation 'ifnull'
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types int and geometry for operation 'UNION'
--------------------------------------
-CREATE TABLE t1 (a BIGINT, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'case'
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'coalesce'
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'if'
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'ifnull'
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'UNION'
--------------------------------------
-CREATE TABLE t1 (a FLOAT, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-ERROR:
-Illegal parameter data types float and geometry for operation 'case'
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-ERROR:
-Illegal parameter data types float and geometry for operation 'coalesce'
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-ERROR:
-Illegal parameter data types float and geometry for operation 'if'
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-ERROR:
-Illegal parameter data types float and geometry for operation 'ifnull'
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types float and geometry for operation 'UNION'
--------------------------------------
-CREATE TABLE t1 (a DOUBLE, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-ERROR:
-Illegal parameter data types double and geometry for operation 'case'
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-ERROR:
-Illegal parameter data types double and geometry for operation 'coalesce'
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-ERROR:
-Illegal parameter data types double and geometry for operation 'if'
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-ERROR:
-Illegal parameter data types double and geometry for operation 'ifnull'
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types double and geometry for operation 'UNION'
--------------------------------------
-CREATE TABLE t1 (a DECIMAL(10,2), b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-ERROR:
-Illegal parameter data types decimal and geometry for operation 'case'
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-ERROR:
-Illegal parameter data types decimal and geometry for operation 'coalesce'
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-ERROR:
-Illegal parameter data types decimal and geometry for operation 'if'
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-ERROR:
-Illegal parameter data types decimal and geometry for operation 'ifnull'
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types decimal and geometry for operation 'UNION'
--------------------------------------
-CREATE TABLE t1 (a BIT(8), b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'case'
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'coalesce'
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'if'
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'ifnull'
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types bit and geometry for operation 'UNION'
--------------------------------------
-CREATE TABLE t1 (a TIME, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-ERROR:
-Illegal parameter data types time and geometry for operation 'case'
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-ERROR:
-Illegal parameter data types time and geometry for operation 'coalesce'
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-ERROR:
-Illegal parameter data types time and geometry for operation 'if'
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-ERROR:
-Illegal parameter data types time and geometry for operation 'ifnull'
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types time and geometry for operation 'UNION'
--------------------------------------
-CREATE TABLE t1 (a DATE, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-ERROR:
-Illegal parameter data types date and geometry for operation 'case'
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-ERROR:
-Illegal parameter data types date and geometry for operation 'coalesce'
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-ERROR:
-Illegal parameter data types date and geometry for operation 'if'
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-ERROR:
-Illegal parameter data types date and geometry for operation 'ifnull'
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types date and geometry for operation 'UNION'
--------------------------------------
-CREATE TABLE t1 (a DATETIME, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-ERROR:
-Illegal parameter data types datetime and geometry for operation 'case'
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-ERROR:
-Illegal parameter data types datetime and geometry for operation 'coalesce'
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-ERROR:
-Illegal parameter data types datetime and geometry for operation 'if'
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-ERROR:
-Illegal parameter data types datetime and geometry for operation 'ifnull'
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types datetime and geometry for operation 'UNION'
--------------------------------------
-CREATE TABLE t1 (a TIMESTAMP, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-ERROR:
-Illegal parameter data types timestamp and geometry for operation 'case'
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-ERROR:
-Illegal parameter data types timestamp and geometry for operation 'coalesce'
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-ERROR:
-Illegal parameter data types timestamp and geometry for operation 'if'
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-ERROR:
-Illegal parameter data types timestamp and geometry for operation 'ifnull'
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types timestamp and geometry for operation 'UNION'
--------------------------------------
-CREATE TABLE t1 (a YEAR, b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-ERROR:
-Illegal parameter data types year and geometry for operation 'case'
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-ERROR:
-Illegal parameter data types year and geometry for operation 'coalesce'
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-ERROR:
-Illegal parameter data types year and geometry for operation 'if'
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-ERROR:
-Illegal parameter data types year and geometry for operation 'ifnull'
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types year and geometry for operation 'UNION'
-# This creates BLOB with hybrid functions, but fails on error with UNION (MDEV-11458)
--------------------------------------
-CREATE TABLE t1 (a ENUM(0x61), b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CASE WHEN TRUE THEN a ELSE b END` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IF(TRUE,a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IFNULL(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types enum and geometry for operation 'UNION'
--------------------------------------
-CREATE TABLE t1 (a SET(0x61), b Point)
-
-CREATE TABLE t2 AS SELECT CASE WHEN TRUE THEN a ELSE b END FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `CASE WHEN TRUE THEN a ELSE b END` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT COALESCE(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IF(TRUE,a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IF(TRUE,a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT IFNULL(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `IFNULL(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1
-ERROR:
-Illegal parameter data types set and geometry for operation 'UNION'
-CREATE TABLE t1 AS SELECT COALESCE(NULL, Point(1,1));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `COALESCE(NULL, Point(1,1))` point DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT NULL UNION SELECT Point(1,1);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `NULL` point DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-#
-# MDEV-11692 Comparison data type aggregation for pluggable data types
-#
-CREATE PROCEDURE p2(query TEXT)
-BEGIN
-DECLARE errcount INT DEFAULT 0;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-SET errcount = errcount+1;
-GET DIAGNOSTICS CONDITION 1 @p= MESSAGE_TEXT;
-SELECT @p AS `ERROR: `;
-END;
-SELECT query AS ``;
-EXECUTE IMMEDIATE query;
-END;
-$$
-CREATE PROCEDURE p1(query TEXT)
-BEGIN
-SELECT query AS `-------------------------------------`;
-EXECUTE IMMEDIATE query;
-CALL p2('SELECT a=b FROM t1');
-CALL p2('SELECT b=a FROM t1');
-CALL p2('SELECT a BETWEEN b AND c FROM t1');
-CALL p2('SELECT a IN (b,c) FROM t1');
-CALL p2('SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1');
-CALL p2('SELECT a=POINT(1,1) FROM t1');
-CALL p2('SELECT POINT(1,1)=a FROM t1');
-CALL p2('SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1');
-CALL p2('SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1');
-CALL p2('SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1');
-DROP TABLE t1;
-END;
-$$
-CALL p1('CREATE TABLE t1 (a CHAR(10), b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a CHAR(10), b Point, c Point)
-
-SELECT a=b FROM t1
-a=b
-
-SELECT b=a FROM t1
-b=a
-
-SELECT a BETWEEN b AND c FROM t1
-a BETWEEN b AND c
-
-SELECT a IN (b,c) FROM t1
-a IN (b,c)
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-CASE a WHEN b THEN "a" WHEN c THEN "b" END
-
-SELECT a=POINT(1,1) FROM t1
-a=POINT(1,1)
-
-SELECT POINT(1,1)=a FROM t1
-POINT(1,1)=a
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-a BETWEEN POINT(1,1) AND POINT(1,2)
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-a IN (POINT(1,1),POINT(1,2))
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END
-CALL p1('CREATE TABLE t1 (a VARCHAR(10), b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a VARCHAR(10), b Point, c Point)
-
-SELECT a=b FROM t1
-a=b
-
-SELECT b=a FROM t1
-b=a
-
-SELECT a BETWEEN b AND c FROM t1
-a BETWEEN b AND c
-
-SELECT a IN (b,c) FROM t1
-a IN (b,c)
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-CASE a WHEN b THEN "a" WHEN c THEN "b" END
-
-SELECT a=POINT(1,1) FROM t1
-a=POINT(1,1)
-
-SELECT POINT(1,1)=a FROM t1
-POINT(1,1)=a
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-a BETWEEN POINT(1,1) AND POINT(1,2)
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-a IN (POINT(1,1),POINT(1,2))
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END
-CALL p1('CREATE TABLE t1 (a TINYTEXT, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a TINYTEXT, b Point, c Point)
-
-SELECT a=b FROM t1
-a=b
-
-SELECT b=a FROM t1
-b=a
-
-SELECT a BETWEEN b AND c FROM t1
-a BETWEEN b AND c
-
-SELECT a IN (b,c) FROM t1
-a IN (b,c)
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-CASE a WHEN b THEN "a" WHEN c THEN "b" END
-
-SELECT a=POINT(1,1) FROM t1
-a=POINT(1,1)
-
-SELECT POINT(1,1)=a FROM t1
-POINT(1,1)=a
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-a BETWEEN POINT(1,1) AND POINT(1,2)
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-a IN (POINT(1,1),POINT(1,2))
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END
-CALL p1('CREATE TABLE t1 (a TEXT, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a TEXT, b Point, c Point)
-
-SELECT a=b FROM t1
-a=b
-
-SELECT b=a FROM t1
-b=a
-
-SELECT a BETWEEN b AND c FROM t1
-a BETWEEN b AND c
-
-SELECT a IN (b,c) FROM t1
-a IN (b,c)
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-CASE a WHEN b THEN "a" WHEN c THEN "b" END
-
-SELECT a=POINT(1,1) FROM t1
-a=POINT(1,1)
-
-SELECT POINT(1,1)=a FROM t1
-POINT(1,1)=a
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-a BETWEEN POINT(1,1) AND POINT(1,2)
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-a IN (POINT(1,1),POINT(1,2))
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END
-CALL p1('CREATE TABLE t1 (a MEDIUMTEXT, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a MEDIUMTEXT, b Point, c Point)
-
-SELECT a=b FROM t1
-a=b
-
-SELECT b=a FROM t1
-b=a
-
-SELECT a BETWEEN b AND c FROM t1
-a BETWEEN b AND c
-
-SELECT a IN (b,c) FROM t1
-a IN (b,c)
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-CASE a WHEN b THEN "a" WHEN c THEN "b" END
-
-SELECT a=POINT(1,1) FROM t1
-a=POINT(1,1)
-
-SELECT POINT(1,1)=a FROM t1
-POINT(1,1)=a
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-a BETWEEN POINT(1,1) AND POINT(1,2)
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-a IN (POINT(1,1),POINT(1,2))
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END
-CALL p1('CREATE TABLE t1 (a LONGTEXT, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a LONGTEXT, b Point, c Point)
-
-SELECT a=b FROM t1
-a=b
-
-SELECT b=a FROM t1
-b=a
-
-SELECT a BETWEEN b AND c FROM t1
-a BETWEEN b AND c
-
-SELECT a IN (b,c) FROM t1
-a IN (b,c)
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-CASE a WHEN b THEN "a" WHEN c THEN "b" END
-
-SELECT a=POINT(1,1) FROM t1
-a=POINT(1,1)
-
-SELECT POINT(1,1)=a FROM t1
-POINT(1,1)=a
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-a BETWEEN POINT(1,1) AND POINT(1,2)
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-a IN (POINT(1,1),POINT(1,2))
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END
-CALL p1('CREATE TABLE t1 (a ENUM("a","b"), b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a ENUM("a","b"), b Point, c Point)
-
-SELECT a=b FROM t1
-a=b
-
-SELECT b=a FROM t1
-b=a
-
-SELECT a BETWEEN b AND c FROM t1
-a BETWEEN b AND c
-
-SELECT a IN (b,c) FROM t1
-a IN (b,c)
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-CASE a WHEN b THEN "a" WHEN c THEN "b" END
-
-SELECT a=POINT(1,1) FROM t1
-a=POINT(1,1)
-
-SELECT POINT(1,1)=a FROM t1
-POINT(1,1)=a
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-a BETWEEN POINT(1,1) AND POINT(1,2)
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-a IN (POINT(1,1),POINT(1,2))
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END
-CALL p1('CREATE TABLE t1 (a TINYINT, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a TINYINT, b Point, c Point)
-
-SELECT a=b FROM t1
-ERROR:
-Illegal parameter data types tinyint and geometry for operation '='
-
-SELECT b=a FROM t1
-ERROR:
-Illegal parameter data types geometry and tinyint for operation '='
-
-SELECT a BETWEEN b AND c FROM t1
-ERROR:
-Illegal parameter data types tinyint and geometry for operation 'between'
-
-SELECT a IN (b,c) FROM t1
-ERROR:
-Illegal parameter data types tinyint and geometry for operation 'in'
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types tinyint and geometry for operation 'case..when'
-
-SELECT a=POINT(1,1) FROM t1
-ERROR:
-Illegal parameter data types tinyint and geometry for operation '='
-
-SELECT POINT(1,1)=a FROM t1
-ERROR:
-Illegal parameter data types geometry and tinyint for operation '='
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-ERROR:
-Illegal parameter data types tinyint and geometry for operation 'between'
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-ERROR:
-Illegal parameter data types tinyint and geometry for operation 'in'
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types tinyint and geometry for operation 'case..when'
-CALL p1('CREATE TABLE t1 (a SMALLINT, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a SMALLINT, b Point, c Point)
-
-SELECT a=b FROM t1
-ERROR:
-Illegal parameter data types smallint and geometry for operation '='
-
-SELECT b=a FROM t1
-ERROR:
-Illegal parameter data types geometry and smallint for operation '='
-
-SELECT a BETWEEN b AND c FROM t1
-ERROR:
-Illegal parameter data types smallint and geometry for operation 'between'
-
-SELECT a IN (b,c) FROM t1
-ERROR:
-Illegal parameter data types smallint and geometry for operation 'in'
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types smallint and geometry for operation 'case..when'
-
-SELECT a=POINT(1,1) FROM t1
-ERROR:
-Illegal parameter data types smallint and geometry for operation '='
-
-SELECT POINT(1,1)=a FROM t1
-ERROR:
-Illegal parameter data types geometry and smallint for operation '='
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-ERROR:
-Illegal parameter data types smallint and geometry for operation 'between'
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-ERROR:
-Illegal parameter data types smallint and geometry for operation 'in'
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types smallint and geometry for operation 'case..when'
-CALL p1('CREATE TABLE t1 (a MEDIUMINT, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a MEDIUMINT, b Point, c Point)
-
-SELECT a=b FROM t1
-ERROR:
-Illegal parameter data types mediumint and geometry for operation '='
-
-SELECT b=a FROM t1
-ERROR:
-Illegal parameter data types geometry and mediumint for operation '='
-
-SELECT a BETWEEN b AND c FROM t1
-ERROR:
-Illegal parameter data types mediumint and geometry for operation 'between'
-
-SELECT a IN (b,c) FROM t1
-ERROR:
-Illegal parameter data types mediumint and geometry for operation 'in'
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types mediumint and geometry for operation 'case..when'
-
-SELECT a=POINT(1,1) FROM t1
-ERROR:
-Illegal parameter data types mediumint and geometry for operation '='
-
-SELECT POINT(1,1)=a FROM t1
-ERROR:
-Illegal parameter data types geometry and mediumint for operation '='
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-ERROR:
-Illegal parameter data types mediumint and geometry for operation 'between'
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-ERROR:
-Illegal parameter data types mediumint and geometry for operation 'in'
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types mediumint and geometry for operation 'case..when'
-CALL p1('CREATE TABLE t1 (a INT, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a INT, b Point, c Point)
-
-SELECT a=b FROM t1
-ERROR:
-Illegal parameter data types int and geometry for operation '='
-
-SELECT b=a FROM t1
-ERROR:
-Illegal parameter data types geometry and int for operation '='
-
-SELECT a BETWEEN b AND c FROM t1
-ERROR:
-Illegal parameter data types int and geometry for operation 'between'
-
-SELECT a IN (b,c) FROM t1
-ERROR:
-Illegal parameter data types int and geometry for operation 'in'
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types int and geometry for operation 'case..when'
-
-SELECT a=POINT(1,1) FROM t1
-ERROR:
-Illegal parameter data types int and geometry for operation '='
-
-SELECT POINT(1,1)=a FROM t1
-ERROR:
-Illegal parameter data types geometry and int for operation '='
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-ERROR:
-Illegal parameter data types int and geometry for operation 'between'
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-ERROR:
-Illegal parameter data types int and geometry for operation 'in'
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types int and geometry for operation 'case..when'
-CALL p1('CREATE TABLE t1 (a BIGINT, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a BIGINT, b Point, c Point)
-
-SELECT a=b FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation '='
-
-SELECT b=a FROM t1
-ERROR:
-Illegal parameter data types geometry and bigint for operation '='
-
-SELECT a BETWEEN b AND c FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'between'
-
-SELECT a IN (b,c) FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'in'
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'case..when'
-
-SELECT a=POINT(1,1) FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation '='
-
-SELECT POINT(1,1)=a FROM t1
-ERROR:
-Illegal parameter data types geometry and bigint for operation '='
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'between'
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'in'
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'case..when'
-CALL p1('CREATE TABLE t1 (a FLOAT, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a FLOAT, b Point, c Point)
-
-SELECT a=b FROM t1
-ERROR:
-Illegal parameter data types float and geometry for operation '='
-
-SELECT b=a FROM t1
-ERROR:
-Illegal parameter data types geometry and float for operation '='
-
-SELECT a BETWEEN b AND c FROM t1
-ERROR:
-Illegal parameter data types float and geometry for operation 'between'
-
-SELECT a IN (b,c) FROM t1
-ERROR:
-Illegal parameter data types float and geometry for operation 'in'
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types float and geometry for operation 'case..when'
-
-SELECT a=POINT(1,1) FROM t1
-ERROR:
-Illegal parameter data types float and geometry for operation '='
-
-SELECT POINT(1,1)=a FROM t1
-ERROR:
-Illegal parameter data types geometry and float for operation '='
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-ERROR:
-Illegal parameter data types float and geometry for operation 'between'
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-ERROR:
-Illegal parameter data types float and geometry for operation 'in'
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types float and geometry for operation 'case..when'
-CALL p1('CREATE TABLE t1 (a DOUBLE, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a DOUBLE, b Point, c Point)
-
-SELECT a=b FROM t1
-ERROR:
-Illegal parameter data types double and geometry for operation '='
-
-SELECT b=a FROM t1
-ERROR:
-Illegal parameter data types geometry and double for operation '='
-
-SELECT a BETWEEN b AND c FROM t1
-ERROR:
-Illegal parameter data types double and geometry for operation 'between'
-
-SELECT a IN (b,c) FROM t1
-ERROR:
-Illegal parameter data types double and geometry for operation 'in'
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types double and geometry for operation 'case..when'
-
-SELECT a=POINT(1,1) FROM t1
-ERROR:
-Illegal parameter data types double and geometry for operation '='
-
-SELECT POINT(1,1)=a FROM t1
-ERROR:
-Illegal parameter data types geometry and double for operation '='
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-ERROR:
-Illegal parameter data types double and geometry for operation 'between'
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-ERROR:
-Illegal parameter data types double and geometry for operation 'in'
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types double and geometry for operation 'case..when'
-CALL p1('CREATE TABLE t1 (a DECIMAL(10,2), b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a DECIMAL(10,2), b Point, c Point)
-
-SELECT a=b FROM t1
-ERROR:
-Illegal parameter data types decimal and geometry for operation '='
-
-SELECT b=a FROM t1
-ERROR:
-Illegal parameter data types geometry and decimal for operation '='
-
-SELECT a BETWEEN b AND c FROM t1
-ERROR:
-Illegal parameter data types decimal and geometry for operation 'between'
-
-SELECT a IN (b,c) FROM t1
-ERROR:
-Illegal parameter data types decimal and geometry for operation 'in'
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types decimal and geometry for operation 'case..when'
-
-SELECT a=POINT(1,1) FROM t1
-ERROR:
-Illegal parameter data types decimal and geometry for operation '='
-
-SELECT POINT(1,1)=a FROM t1
-ERROR:
-Illegal parameter data types geometry and decimal for operation '='
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-ERROR:
-Illegal parameter data types decimal and geometry for operation 'between'
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-ERROR:
-Illegal parameter data types decimal and geometry for operation 'in'
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types decimal and geometry for operation 'case..when'
-CALL p1('CREATE TABLE t1 (a BIT(8), b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a BIT(8), b Point, c Point)
-
-SELECT a=b FROM t1
-ERROR:
-Illegal parameter data types bit and geometry for operation '='
-
-SELECT b=a FROM t1
-ERROR:
-Illegal parameter data types geometry and bit for operation '='
-
-SELECT a BETWEEN b AND c FROM t1
-ERROR:
-Illegal parameter data types bit and geometry for operation 'between'
-
-SELECT a IN (b,c) FROM t1
-ERROR:
-Illegal parameter data types bit and geometry for operation 'in'
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types bit and geometry for operation 'case..when'
-
-SELECT a=POINT(1,1) FROM t1
-ERROR:
-Illegal parameter data types bit and geometry for operation '='
-
-SELECT POINT(1,1)=a FROM t1
-ERROR:
-Illegal parameter data types geometry and bit for operation '='
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-ERROR:
-Illegal parameter data types bit and geometry for operation 'between'
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-ERROR:
-Illegal parameter data types bit and geometry for operation 'in'
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types bit and geometry for operation 'case..when'
-CALL p1('CREATE TABLE t1 (a TIME, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a TIME, b Point, c Point)
-
-SELECT a=b FROM t1
-ERROR:
-Illegal parameter data types time and geometry for operation '='
-
-SELECT b=a FROM t1
-ERROR:
-Illegal parameter data types geometry and time for operation '='
-
-SELECT a BETWEEN b AND c FROM t1
-ERROR:
-Illegal parameter data types time and geometry for operation 'between'
-
-SELECT a IN (b,c) FROM t1
-ERROR:
-Illegal parameter data types time and geometry for operation 'in'
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types time and geometry for operation 'case..when'
-
-SELECT a=POINT(1,1) FROM t1
-ERROR:
-Illegal parameter data types time and geometry for operation '='
-
-SELECT POINT(1,1)=a FROM t1
-ERROR:
-Illegal parameter data types geometry and time for operation '='
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-ERROR:
-Illegal parameter data types time and geometry for operation 'between'
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-ERROR:
-Illegal parameter data types time and geometry for operation 'in'
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types time and geometry for operation 'case..when'
-CALL p1('CREATE TABLE t1 (a DATE, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a DATE, b Point, c Point)
-
-SELECT a=b FROM t1
-ERROR:
-Illegal parameter data types date and geometry for operation '='
-
-SELECT b=a FROM t1
-ERROR:
-Illegal parameter data types geometry and date for operation '='
-
-SELECT a BETWEEN b AND c FROM t1
-ERROR:
-Illegal parameter data types date and geometry for operation 'between'
-
-SELECT a IN (b,c) FROM t1
-ERROR:
-Illegal parameter data types date and geometry for operation 'in'
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types date and geometry for operation 'case..when'
-
-SELECT a=POINT(1,1) FROM t1
-ERROR:
-Illegal parameter data types date and geometry for operation '='
-
-SELECT POINT(1,1)=a FROM t1
-ERROR:
-Illegal parameter data types geometry and date for operation '='
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-ERROR:
-Illegal parameter data types date and geometry for operation 'between'
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-ERROR:
-Illegal parameter data types date and geometry for operation 'in'
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types date and geometry for operation 'case..when'
-CALL p1('CREATE TABLE t1 (a DATETIME, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a DATETIME, b Point, c Point)
-
-SELECT a=b FROM t1
-ERROR:
-Illegal parameter data types datetime and geometry for operation '='
-
-SELECT b=a FROM t1
-ERROR:
-Illegal parameter data types geometry and datetime for operation '='
-
-SELECT a BETWEEN b AND c FROM t1
-ERROR:
-Illegal parameter data types datetime and geometry for operation 'between'
-
-SELECT a IN (b,c) FROM t1
-ERROR:
-Illegal parameter data types datetime and geometry for operation 'in'
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types datetime and geometry for operation 'case..when'
-
-SELECT a=POINT(1,1) FROM t1
-ERROR:
-Illegal parameter data types datetime and geometry for operation '='
-
-SELECT POINT(1,1)=a FROM t1
-ERROR:
-Illegal parameter data types geometry and datetime for operation '='
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-ERROR:
-Illegal parameter data types datetime and geometry for operation 'between'
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-ERROR:
-Illegal parameter data types datetime and geometry for operation 'in'
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types datetime and geometry for operation 'case..when'
-CALL p1('CREATE TABLE t1 (a TIMESTAMP, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a TIMESTAMP, b Point, c Point)
-
-SELECT a=b FROM t1
-ERROR:
-Illegal parameter data types timestamp and geometry for operation '='
-
-SELECT b=a FROM t1
-ERROR:
-Illegal parameter data types geometry and timestamp for operation '='
-
-SELECT a BETWEEN b AND c FROM t1
-ERROR:
-Illegal parameter data types timestamp and geometry for operation 'between'
-
-SELECT a IN (b,c) FROM t1
-ERROR:
-Illegal parameter data types timestamp and geometry for operation 'in'
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types timestamp and geometry for operation 'case..when'
-
-SELECT a=POINT(1,1) FROM t1
-ERROR:
-Illegal parameter data types timestamp and geometry for operation '='
-
-SELECT POINT(1,1)=a FROM t1
-ERROR:
-Illegal parameter data types geometry and timestamp for operation '='
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-ERROR:
-Illegal parameter data types timestamp and geometry for operation 'between'
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-ERROR:
-Illegal parameter data types timestamp and geometry for operation 'in'
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types timestamp and geometry for operation 'case..when'
-CALL p1('CREATE TABLE t1 (a YEAR, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a YEAR, b Point, c Point)
-
-SELECT a=b FROM t1
-ERROR:
-Illegal parameter data types year and geometry for operation '='
-
-SELECT b=a FROM t1
-ERROR:
-Illegal parameter data types geometry and year for operation '='
-
-SELECT a BETWEEN b AND c FROM t1
-ERROR:
-Illegal parameter data types year and geometry for operation 'between'
-
-SELECT a IN (b,c) FROM t1
-ERROR:
-Illegal parameter data types year and geometry for operation 'in'
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types year and geometry for operation 'case..when'
-
-SELECT a=POINT(1,1) FROM t1
-ERROR:
-Illegal parameter data types year and geometry for operation '='
-
-SELECT POINT(1,1)=a FROM t1
-ERROR:
-Illegal parameter data types geometry and year for operation '='
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-ERROR:
-Illegal parameter data types year and geometry for operation 'between'
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-ERROR:
-Illegal parameter data types year and geometry for operation 'in'
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-ERROR:
-Illegal parameter data types year and geometry for operation 'case..when'
-CALL p1('CREATE TABLE t1 (a Point, b Point, c Point)');
--------------------------------------
-CREATE TABLE t1 (a Point, b Point, c Point)
-
-SELECT a=b FROM t1
-a=b
-
-SELECT b=a FROM t1
-b=a
-
-SELECT a BETWEEN b AND c FROM t1
-a BETWEEN b AND c
-
-SELECT a IN (b,c) FROM t1
-a IN (b,c)
-
-SELECT CASE a WHEN b THEN "a" WHEN c THEN "b" END FROM t1
-CASE a WHEN b THEN "a" WHEN c THEN "b" END
-
-SELECT a=POINT(1,1) FROM t1
-a=POINT(1,1)
-
-SELECT POINT(1,1)=a FROM t1
-POINT(1,1)=a
-
-SELECT a BETWEEN POINT(1,1) AND POINT(1,2) FROM t1
-a BETWEEN POINT(1,1) AND POINT(1,2)
-
-SELECT a IN (POINT(1,1),POINT(1,2)) FROM t1
-a IN (POINT(1,1),POINT(1,2))
-
-SELECT CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END FROM t1
-CASE a WHEN POINT(1,1) THEN "a" WHEN POINT(1,2) THEN "b" END
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-#
-# MDEV-12506 Split Item_func_min_max::fix_length_and_dec() into methods in Type_handler
-#
-CREATE PROCEDURE p2(query TEXT)
-BEGIN
-DECLARE errcount INT DEFAULT 0;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-SET errcount = errcount+1;
-#SHOW WARNINGS;
-GET DIAGNOSTICS CONDITION 1 @p= MESSAGE_TEXT;
-SELECT @p AS `ERROR: `;
-END;
-SELECT query AS ``;
-EXECUTE IMMEDIATE query;
-IF errcount = 0
-THEN
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END IF;
-END;
-$$
-CREATE PROCEDURE p1(query TEXT)
-BEGIN
-SELECT query AS `-------------------------------------`;
-EXECUTE IMMEDIATE query;
-CALL p2('CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1');
-DROP TABLE t1;
-END;
-$$
--------------------------------------
-CREATE TABLE t1 (a CHAR(10), b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEAST(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
--------------------------------------
-CREATE TABLE t1 (a VARCHAR(10), b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEAST(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
--------------------------------------
-CREATE TABLE t1 (a TINYTEXT, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEAST(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
--------------------------------------
-CREATE TABLE t1 (a TEXT, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEAST(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
--------------------------------------
-CREATE TABLE t1 (a MEDIUMTEXT, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEAST(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
--------------------------------------
-CREATE TABLE t1 (a LONGTEXT, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEAST(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
--------------------------------------
-CREATE TABLE t1 (a TINYINT, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-ERROR:
-Illegal parameter data types tinyint and geometry for operation 'least'
--------------------------------------
-CREATE TABLE t1 (a SMALLINT, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-ERROR:
-Illegal parameter data types smallint and geometry for operation 'least'
--------------------------------------
-CREATE TABLE t1 (a MEDIUMINT, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-ERROR:
-Illegal parameter data types mediumint and geometry for operation 'least'
--------------------------------------
-CREATE TABLE t1 (a INT, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-ERROR:
-Illegal parameter data types int and geometry for operation 'least'
--------------------------------------
-CREATE TABLE t1 (a BIGINT, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-ERROR:
-Illegal parameter data types bigint and geometry for operation 'least'
--------------------------------------
-CREATE TABLE t1 (a FLOAT, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-ERROR:
-Illegal parameter data types float and geometry for operation 'least'
--------------------------------------
-CREATE TABLE t1 (a DOUBLE, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-ERROR:
-Illegal parameter data types double and geometry for operation 'least'
--------------------------------------
-CREATE TABLE t1 (a DECIMAL(10,2), b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-ERROR:
-Illegal parameter data types decimal and geometry for operation 'least'
--------------------------------------
-CREATE TABLE t1 (a BIT(8), b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-ERROR:
-Illegal parameter data types bit and geometry for operation 'least'
--------------------------------------
-CREATE TABLE t1 (a TIME, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-ERROR:
-Illegal parameter data types time and geometry for operation 'least'
--------------------------------------
-CREATE TABLE t1 (a DATE, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-ERROR:
-Illegal parameter data types date and geometry for operation 'least'
--------------------------------------
-CREATE TABLE t1 (a DATETIME, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-ERROR:
-Illegal parameter data types datetime and geometry for operation 'least'
--------------------------------------
-CREATE TABLE t1 (a TIMESTAMP, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-ERROR:
-Illegal parameter data types timestamp and geometry for operation 'least'
--------------------------------------
-CREATE TABLE t1 (a YEAR, b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-ERROR:
-Illegal parameter data types year and geometry for operation 'least'
-# This LEAST(ENUM,GEOMETRY) creates BLOB, but fails on error with UNION (see MDEV-12503)
--------------------------------------
-CREATE TABLE t1 (a ENUM(0x61), b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEAST(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
--------------------------------------
-CREATE TABLE t1 (a SET(0x61), b Point)
-
-CREATE TABLE t2 AS SELECT LEAST(a,b) FROM t1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `LEAST(a,b)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t1 AS SELECT LEAST(NULL, Point(1,1));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `LEAST(NULL, Point(1,1))` point DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-#
-# MDEV-12001 Split Item_func_round::fix_length_and_dec to virtual methods in Type_handler
-#
-CREATE TABLE t1 (a GEOMETRY);
-SELECT ROUND(a) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'round'
-DROP TABLE t1;
-SELECT ROUND(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'round'
-#
-# MDEV-12199 Split Item_func_{abs|neg|int_val}::fix_length_and_dec() into methods in Type_handler
-#
-CREATE TABLE t1 (a GEOMETRY);
-SELECT -a FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation '-'
-SELECT ABS(a) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'abs'
-SELECT CEILING(a) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'ceiling'
-SELECT FLOOR(a) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'floor'
-SELECT -COALESCE(a) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation '-'
-SELECT ABS(COALESCE(a)) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'abs'
-SELECT CEILING(COALESCE(a)) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'ceiling'
-SELECT FLOOR(COALESCE(a)) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'floor'
-DROP TABLE t1;
-SELECT -POINT(1,1);
-ERROR HY000: Illegal parameter data type geometry for operation '-'
-SELECT ABS(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'abs'
-SELECT CEILING(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'ceiling'
-SELECT FLOOR(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'floor'
-#
-# MDEV-12239 Add Type_handler::Item_sum_{sum|avg|variance}_fix_length_and_dec()
-#
-CREATE TABLE t1 (a GEOMETRY);
-SELECT SUM(POINT(1,1)) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'sum'
-SELECT SUM(a) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'sum'
-SELECT SUM(COALESCE(a)) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'sum'
-SELECT AVG(POINT(1,1)) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'avg'
-SELECT AVG(a) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'avg'
-SELECT AVG(COALESCE(a)) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'avg'
-SELECT VARIANCE(POINT(1,1)) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'variance('
-SELECT VARIANCE(a) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'variance('
-SELECT VARIANCE(COALESCE(a)) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'variance('
-SELECT STDDEV(POINT(1,1)) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'std('
-SELECT STDDEV(a) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'std('
-SELECT STDDEV(COALESCE(a)) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'std('
-DROP TABLE t1;
-#
-# MDEV-12303 Add Type_handler::Item_xxx_fix_length_and_dec() for CAST classes
-#
-CREATE TABLE t1 (a GEOMETRY);
-SELECT CAST(POINT(1,1) AS SIGNED) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_signed'
-SELECT CAST(POINT(1,1) AS UNSIGNED) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_unsigned'
-SELECT CAST(POINT(1,1) AS DOUBLE) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'double_typecast'
-SELECT CAST(POINT(1,1) AS DECIMAL(10,1)) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'decimal_typecast'
-SELECT CAST(POINT(1,1) AS CHAR) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_char'
-SELECT CAST(POINT(1,1) AS TIME) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_time'
-SELECT CAST(POINT(1,1) AS DATE) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_date'
-SELECT CAST(POINT(1,1) AS DATETIME) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_datetime'
-SELECT CAST(a AS SIGNED) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_signed'
-SELECT CAST(a AS UNSIGNED) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_unsigned'
-SELECT CAST(a AS DOUBLE) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'double_typecast'
-SELECT CAST(a AS DECIMAL(10,1)) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'decimal_typecast'
-SELECT CAST(a AS CHAR) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_char'
-SELECT CAST(a AS TIME) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_time'
-SELECT CAST(a AS DATE) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_date'
-SELECT CAST(a AS DATETIME) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_datetime'
-SELECT CAST(COALESCE(a) AS SIGNED) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_signed'
-SELECT CAST(COALESCE(a) AS UNSIGNED) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_unsigned'
-SELECT CAST(COALESCE(a) AS DOUBLE) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'double_typecast'
-SELECT CAST(COALESCE(a) AS DECIMAL(10,1)) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'decimal_typecast'
-SELECT CAST(COALESCE(a) AS CHAR) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_char'
-SELECT CAST(COALESCE(a) AS TIME) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_time'
-SELECT CAST(COALESCE(a) AS DATE) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_date'
-SELECT CAST(COALESCE(a) AS DATETIME) FROM t1;
-ERROR HY000: Illegal parameter data type geometry for operation 'cast_as_datetime'
-SELECT LENGTH(CAST(POINT(1,1) AS BINARY)) FROM t1;
-LENGTH(CAST(POINT(1,1) AS BINARY))
-SELECT LENGTH(CAST(a AS BINARY)) FROM t1;
-LENGTH(CAST(a AS BINARY))
-SELECT LENGTH(CAST(COALESCE(a) AS BINARY)) FROM t1;
-LENGTH(CAST(COALESCE(a) AS BINARY))
-DROP TABLE t1;
-#
-# MDEV-12238 Add Type_handler::Item_func_{plus|minus|mul|div|mod}_fix_length_and_dec()
-#
-CREATE TABLE t1 (a GEOMETRY);
-SELECT POINT(1,1) + 1;
-ERROR HY000: Illegal parameter data types geometry and int for operation '+'
-SELECT POINT(1,1) - 1;
-ERROR HY000: Illegal parameter data types geometry and int for operation '-'
-SELECT POINT(1,1) * 1;
-ERROR HY000: Illegal parameter data types geometry and int for operation '*'
-SELECT POINT(1,1) / 1;
-ERROR HY000: Illegal parameter data types geometry and int for operation '/'
-SELECT POINT(1,1) MOD 1;
-ERROR HY000: Illegal parameter data types geometry and int for operation 'MOD'
-SELECT 1 + POINT(1,1);
-ERROR HY000: Illegal parameter data types int and geometry for operation '+'
-SELECT 1 - POINT(1,1);
-ERROR HY000: Illegal parameter data types int and geometry for operation '-'
-SELECT 1 * POINT(1,1);
-ERROR HY000: Illegal parameter data types int and geometry for operation '*'
-SELECT 1 / POINT(1,1);
-ERROR HY000: Illegal parameter data types int and geometry for operation '/'
-SELECT 1 MOD POINT(1,1);
-ERROR HY000: Illegal parameter data types int and geometry for operation 'MOD'
-SELECT a + 1 FROM t1;
-ERROR HY000: Illegal parameter data types geometry and int for operation '+'
-SELECT a - 1 FROM t1;
-ERROR HY000: Illegal parameter data types geometry and int for operation '-'
-SELECT a * 1 FROM t1;
-ERROR HY000: Illegal parameter data types geometry and int for operation '*'
-SELECT a / 1 FROM t1;
-ERROR HY000: Illegal parameter data types geometry and int for operation '/'
-SELECT a MOD 1 FROM t1;
-ERROR HY000: Illegal parameter data types geometry and int for operation 'MOD'
-SELECT 1 + a FROM t1;
-ERROR HY000: Illegal parameter data types int and geometry for operation '+'
-SELECT 1 - a FROM t1;
-ERROR HY000: Illegal parameter data types int and geometry for operation '-'
-SELECT 1 * a FROM t1;
-ERROR HY000: Illegal parameter data types int and geometry for operation '*'
-SELECT 1 / a FROM t1;
-ERROR HY000: Illegal parameter data types int and geometry for operation '/'
-SELECT 1 MOD a FROM t1;
-ERROR HY000: Illegal parameter data types int and geometry for operation 'MOD'
-SELECT COALESCE(a) + 1 FROM t1;
-ERROR HY000: Illegal parameter data types geometry and int for operation '+'
-SELECT COALESCE(a) - 1 FROM t1;
-ERROR HY000: Illegal parameter data types geometry and int for operation '-'
-SELECT COALESCE(a) * 1 FROM t1;
-ERROR HY000: Illegal parameter data types geometry and int for operation '*'
-SELECT COALESCE(a) / 1 FROM t1;
-ERROR HY000: Illegal parameter data types geometry and int for operation '/'
-SELECT COALESCE(a) MOD 1 FROM t1;
-ERROR HY000: Illegal parameter data types geometry and int for operation 'MOD'
-SELECT 1 + COALESCE(a) FROM t1;
-ERROR HY000: Illegal parameter data types int and geometry for operation '+'
-SELECT 1 - COALESCE(a) FROM t1;
-ERROR HY000: Illegal parameter data types int and geometry for operation '-'
-SELECT 1 * COALESCE(a) FROM t1;
-ERROR HY000: Illegal parameter data types int and geometry for operation '*'
-SELECT 1 / COALESCE(a) FROM t1;
-ERROR HY000: Illegal parameter data types int and geometry for operation '/'
-SELECT 1 MOD COALESCE(a) FROM t1;
-ERROR HY000: Illegal parameter data types int and geometry for operation 'MOD'
-DROP TABLE t1;
-#
-# MDEV-12514 Split Item_temporal_func::fix_length_and_dec()
-#
-SELECT DATE_ADD(POINT(1,1), INTERVAL 10 DAY);
-ERROR HY000: Illegal parameter data types geometry and interval for operation 'date_add_interval'
-SELECT DATE_SUB(POINT(1,1), INTERVAL 10 DAY);
-ERROR HY000: Illegal parameter data types geometry and interval for operation 'date_add_interval'
-SELECT POINT(1,1) + INTERVAL 10 DAY;
-ERROR HY000: Illegal parameter data types geometry and interval for operation 'date_add_interval'
-SELECT POINT(1,1) - INTERVAL 10 DAY;
-ERROR HY000: Illegal parameter data types geometry and interval for operation 'date_add_interval'
-SELECT INTERVAL 10 DAY + POINT(1,1);
-ERROR HY000: Illegal parameter data types geometry and interval for operation 'date_add_interval'
-SELECT INTERVAL 10 DAY + POINT(1,1);
-ERROR HY000: Illegal parameter data types geometry and interval for operation 'date_add_interval'
-SELECT ADDTIME(POINT(1,1), '10:10:10');
-ERROR HY000: Illegal parameter data types geometry and varchar for operation 'add_time'
-SELECT ADDTIME('10:10:10', POINT(1,1));
-ERROR HY000: Illegal parameter data types varchar and geometry for operation 'add_time'
-SELECT ADDTIME(POINT(1,1), TIME'10:10:10');
-ERROR HY000: Illegal parameter data types geometry and time for operation 'add_time'
-SELECT ADDTIME(TIME'10:10:10', POINT(1,1));
-ERROR HY000: Illegal parameter data types time and geometry for operation 'add_time'
-SELECT ADDTIME(POINT(1,1), TIMESTAMP'2001-01-01 10:10:10');
-ERROR HY000: Illegal parameter data types geometry and datetime for operation 'add_time'
-SELECT ADDTIME(TIMESTAMP'2001-01-01 10:10:10', POINT(1,1));
-ERROR HY000: Illegal parameter data types datetime and geometry for operation 'add_time'
-SELECT STR_TO_DATE(POINT(1,1),'%M %d,%Y');
-ERROR HY000: Illegal parameter data types geometry and varchar for operation 'str_to_date'
-SELECT STR_TO_DATE('2001-01-01', POINT(1,1));
-ERROR HY000: Illegal parameter data types varchar and geometry for operation 'str_to_date'
-#
-# MDEV-12665 Hybrid functions do not preserve geometry type
-#
-CREATE TABLE t1 AS SELECT
-Point(0,0) AS p0,
-COALESCE(Point(0,0)) AS p1,
-CASE WHEN 0 THEN Point(0,0) ELSE Point(1,1) END AS p2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `p0` point DEFAULT NULL,
- `p1` point DEFAULT NULL,
- `p2` point DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT LEAST(Point(0,0),Point(0,0)) AS p1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `p1` point DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (
-c_geometry GEOMETRY,
-c_point POINT,
-c_linestring LINESTRING,
-c_polygon POLYGON,
-c_multipoint MULTIPOINT,
-c_multilinestring MULTILINESTRING,
-c_multipolygon MULTIPOLYGON,
-c_geometrycollection GEOMETRYCOLLECTION
-);
-CREATE TABLE t2 AS SELECT
-COALESCE(NULL, c_geometry),
-COALESCE(NULL, c_point),
-COALESCE(NULL, c_linestring),
-COALESCE(NULL, c_polygon),
-COALESCE(NULL, c_multipoint),
-COALESCE(NULL, c_multilinestring),
-COALESCE(NULL, c_multipolygon),
-COALESCE(NULL, c_geometrycollection)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(NULL, c_geometry)` geometry DEFAULT NULL,
- `COALESCE(NULL, c_point)` point DEFAULT NULL,
- `COALESCE(NULL, c_linestring)` linestring DEFAULT NULL,
- `COALESCE(NULL, c_polygon)` polygon DEFAULT NULL,
- `COALESCE(NULL, c_multipoint)` multipoint DEFAULT NULL,
- `COALESCE(NULL, c_multilinestring)` multilinestring DEFAULT NULL,
- `COALESCE(NULL, c_multipolygon)` multipolygon DEFAULT NULL,
- `COALESCE(NULL, c_geometrycollection)` geometrycollection DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-COALESCE(c_geometry, NULL),
-COALESCE(c_point, NULL),
-COALESCE(c_linestring, NULL),
-COALESCE(c_polygon, NULL),
-COALESCE(c_multipoint, NULL),
-COALESCE(c_multilinestring, NULL),
-COALESCE(c_multipolygon, NULL),
-COALESCE(c_geometrycollection, NULL)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(c_geometry, NULL)` geometry DEFAULT NULL,
- `COALESCE(c_point, NULL)` point DEFAULT NULL,
- `COALESCE(c_linestring, NULL)` linestring DEFAULT NULL,
- `COALESCE(c_polygon, NULL)` polygon DEFAULT NULL,
- `COALESCE(c_multipoint, NULL)` multipoint DEFAULT NULL,
- `COALESCE(c_multilinestring, NULL)` multilinestring DEFAULT NULL,
- `COALESCE(c_multipolygon, NULL)` multipolygon DEFAULT NULL,
- `COALESCE(c_geometrycollection, NULL)` geometrycollection DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-COALESCE(c_geometry, c_geometry),
-COALESCE(c_point, c_point),
-COALESCE(c_linestring, c_linestring),
-COALESCE(c_polygon, c_polygon),
-COALESCE(c_multipoint, c_multipoint),
-COALESCE(c_multilinestring, c_multilinestring),
-COALESCE(c_multipolygon, c_multipolygon),
-COALESCE(c_geometrycollection, c_geometrycollection)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(c_geometry, c_geometry)` geometry DEFAULT NULL,
- `COALESCE(c_point, c_point)` point DEFAULT NULL,
- `COALESCE(c_linestring, c_linestring)` linestring DEFAULT NULL,
- `COALESCE(c_polygon, c_polygon)` polygon DEFAULT NULL,
- `COALESCE(c_multipoint, c_multipoint)` multipoint DEFAULT NULL,
- `COALESCE(c_multilinestring, c_multilinestring)` multilinestring DEFAULT NULL,
- `COALESCE(c_multipolygon, c_multipolygon)` multipolygon DEFAULT NULL,
- `COALESCE(c_geometrycollection, c_geometrycollection)` geometrycollection DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# MDEV-12560 Wrong data type for SELECT NULL UNION SELECT Point(1,1)
-#
-CREATE TABLE t1 AS SELECT NULL AS c1 UNION SELECT POINT(1,1);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` point DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE PROCEDURE p1(name TEXT)
-BEGIN
-EXECUTE IMMEDIATE CONCAT('CREATE TABLE t1 (a ', name, ')');
-CREATE TABLE t2 AS
-SELECT a AS a1, a AS a2, NULL AS a3 FROM t1 UNION
-SELECT a AS a1, NULL AS a2, a AS a3 FROM t1;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-DROP TABLE t1;
-END;
-$$
-CALL p1('geometry');
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a1` geometry DEFAULT NULL,
- `a2` geometry DEFAULT NULL,
- `a3` geometry DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CALL p1('point');
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a1` point DEFAULT NULL,
- `a2` point DEFAULT NULL,
- `a3` point DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CALL p1('linestring');
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a1` linestring DEFAULT NULL,
- `a2` linestring DEFAULT NULL,
- `a3` linestring DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CALL p1('polygon');
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a1` polygon DEFAULT NULL,
- `a2` polygon DEFAULT NULL,
- `a3` polygon DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CALL p1('multipoint');
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a1` multipoint DEFAULT NULL,
- `a2` multipoint DEFAULT NULL,
- `a3` multipoint DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CALL p1('multilinestring');
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a1` multilinestring DEFAULT NULL,
- `a2` multilinestring DEFAULT NULL,
- `a3` multilinestring DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CALL p1('multipolygon');
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a1` multipolygon DEFAULT NULL,
- `a2` multipolygon DEFAULT NULL,
- `a3` multipolygon DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CALL p1('geometrycollection');
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a1` geometrycollection DEFAULT NULL,
- `a2` geometrycollection DEFAULT NULL,
- `a3` geometrycollection DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP PROCEDURE p1;
-#
-# MDEV-12798 Item_param does not preserve exact field type in EXECUTE IMMEDIATE 'CREATE TABLE AS SELECT ?' USING POINT(1,1)
-#
-EXECUTE IMMEDIATE 'CREATE TABLE t1 AS SELECT ?' USING POINT(1,1);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `?` point NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-PREPARE stmt FROM 'CREATE OR REPLACE TABLE t1 AS SELECT ?';
-EXECUTE stmt USING POINT(1,1);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `?` point NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# MDEV-12854 Synchronize CREATE..SELECT data type and result set metadata data type for INT functions
-#
-SELECT
-ST_ISSIMPLE(POINT(1,1)),
-ST_ISRING(POINT(1,1)),
-ST_ISCLOSED(POINT(1,1)),
-ST_DIMENSION(POINT(1,1)),
-ST_NUMGEOMETRIES(POINT(1,1)),
-ST_NUMINTERIORRINGS(POINT(1,1)),
-ST_NUMPOINTS(POINT(1,1)),
-ST_SRID(POINT(1,1));
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def ST_ISSIMPLE(POINT(1,1)) 3 2 1 Y 32896 0 63
-def ST_ISRING(POINT(1,1)) 3 2 2 Y 32896 0 63
-def ST_ISCLOSED(POINT(1,1)) 3 2 2 Y 32896 0 63
-def ST_DIMENSION(POINT(1,1)) 3 10 1 Y 32896 0 63
-def ST_NUMGEOMETRIES(POINT(1,1)) 3 10 0 Y 32896 0 63
-def ST_NUMINTERIORRINGS(POINT(1,1)) 3 10 0 Y 32896 0 63
-def ST_NUMPOINTS(POINT(1,1)) 3 10 0 Y 32896 0 63
-def ST_SRID(POINT(1,1)) 3 10 1 Y 32896 0 63
-ST_ISSIMPLE(POINT(1,1)) ST_ISRING(POINT(1,1)) ST_ISCLOSED(POINT(1,1)) ST_DIMENSION(POINT(1,1)) ST_NUMGEOMETRIES(POINT(1,1)) ST_NUMINTERIORRINGS(POINT(1,1)) ST_NUMPOINTS(POINT(1,1)) ST_SRID(POINT(1,1))
-1 -1 -1 0 NULL NULL NULL 0
-#
-# MDEV-12803 Improve function parameter data type control
-#
-#
-# Item_geometry_func_args_geometry
-#
-SELECT ST_CENTROID(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_centroid'
-SELECT ST_ENVELOPE(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_envelope'
-SELECT ST_BOUNDARY(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_boundary'
-SELECT ST_STARTPOINT(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_startpoint'
-SELECT ST_POINTONSURFACE(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_pointonsurface'
-SELECT ST_POINTN(1,1);
-ERROR HY000: Illegal parameter data type int for operation 'st_pointn'
-SELECT ST_POINTN(LineString(Point(1,1)),Point(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'st_pointn'
-SELECT ST_BUFFER(1, 1);
-ERROR HY000: Illegal parameter data type int for operation 'st_buffer'
-SELECT ST_BUFFER(Point(1,1), Point(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'st_buffer'
-PREPARE stmt FROM 'CREATE TABLE t1 AS SELECT ST_ENVELOPE(?) AS g';
-EXECUTE stmt USING 1;
-ERROR HY000: Illegal parameter data type int for operation 'st_envelope'
-EXECUTE stmt USING POINT(1,1);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `g` polygon DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT ST_ASTEXT(g) FROM t1;
-ST_ASTEXT(g)
-POLYGON((1 1,1 1,1 1,1 1,1 1))
-DROP TABLE t1;
-DEALLOCATE PREPARE stmt;
-PREPARE stmt FROM 'CREATE TABLE t1 AS SELECT ST_BUFFER(?,?) AS g';
-EXECUTE stmt USING 1,1;
-ERROR HY000: Illegal parameter data type int for operation 'st_buffer'
-EXECUTE stmt USING POINT(1,1),POINT(1,1);
-ERROR HY000: Illegal parameter data type geometry for operation 'st_buffer'
-EXECUTE stmt USING POINT(1,1),0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `g` geometry DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT ST_GEOMETRYTYPE(g) FROM t1;
-ST_GEOMETRYTYPE(g)
-POINT
-DROP TABLE t1;
-DEALLOCATE PREPARE stmt;
-#
-# Functions created GEOMETRY from non-GEOMETRY
-#
-SELECT ST_GEOMETRYFROMTEXT(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_geometryfromtext'
-SELECT ST_GEOMETRYFROMTEXT(Point(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'st_geometryfromtext'
-SELECT ST_GEOMETRYFROMTEXT(Point(1,1), 1);
-ERROR HY000: Illegal parameter data type geometry for operation 'st_geometryfromtext'
-SELECT ST_GEOMETRYFROMTEXT('test', Point(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'st_geometryfromtext'
-SELECT ST_GEOMETRYFROMWKB(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_geometryfromwkb'
-SELECT ST_GEOMETRYFROMWKB(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_geometryfromwkb'
-SELECT ST_GEOMETRYFROMWKB(1, 1);
-ERROR HY000: Illegal parameter data type int for operation 'st_geometryfromwkb'
-SELECT ST_GEOMETRYFROMWKB(Point(1,1), Point(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'st_geometryfromwkb'
-SELECT ST_GEOMFROMGEOJSON(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_geomfromgeojson'
-SELECT ST_GEOMFROMGEOJSON(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_geomfromgeojson'
-SELECT ST_GEOMFROMGEOJSON(1,1);
-ERROR HY000: Illegal parameter data type int for operation 'st_geomfromgeojson'
-SELECT ST_GEOMFROMGEOJSON(Point(1,1), Point(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'st_geomfromgeojson'
-SELECT POINT(ROW(1,1),1);
-ERROR HY000: Illegal parameter data type row for operation 'point'
-SELECT POINT(POINT(1,1),1);
-ERROR HY000: Illegal parameter data type geometry for operation 'point'
-SELECT POINT(1,ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'point'
-SELECT POINT(1,POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'point'
-PREPARE stmt FROM 'CREATE TABLE t1 AS SELECT ST_GEOMFROMTEXT(?,?) AS g';
-EXECUTE stmt USING 1,1;
-ERROR HY000: Illegal parameter data type int for operation 'st_geometryfromtext'
-EXECUTE stmt USING POINT(1,1),POINT(1,1);
-ERROR HY000: Illegal parameter data type geometry for operation 'st_geometryfromtext'
-EXECUTE stmt USING 'POINT(1 1)',1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `g` geometry DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT ST_ASTEXT(g), SRID(g) FROM t1;
-ST_ASTEXT(g) SRID(g)
-POINT(1 1) 1
-DROP TABLE t1;
-DEALLOCATE PREPARE stmt;
-# Item_func_spatial_collection
-SELECT GEOMETRYCOLLECTION(ROW(1,1), POINT(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'geometrycollection'
-SELECT GEOMETRYCOLLECTION(POINT(1,1), ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'geometrycollection'
-SELECT GEOMETRYCOLLECTION(1, POINT(1,1));
-ERROR HY000: Illegal parameter data type int for operation 'geometrycollection'
-SELECT GEOMETRYCOLLECTION(POINT(1,1), 1);
-ERROR HY000: Illegal parameter data type int for operation 'geometrycollection'
-# Item_func_spatial_operation
-SELECT ST_UNION(ROW(1,1), POINT(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_union'
-SELECT ST_UNION(POINT(1,1), ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_union'
-SELECT ST_UNION(1, POINT(1,1));
-ERROR HY000: Illegal parameter data type int for operation 'st_union'
-SELECT ST_UNION(POINT(1,1), 1);
-ERROR HY000: Illegal parameter data type int for operation 'st_union'
-# Item_binary_func_args_geometry
-SELECT ST_ASWKB(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_aswkb'
-SELECT ST_ASWKB(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_aswkb'
-SELECT ST_ASWKB('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_aswkb'
-# Item_real_func_args_geometry
-SELECT ST_X(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_x'
-SELECT ST_X(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_x'
-SELECT ST_X('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_x'
-SELECT ST_Y(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_y'
-SELECT ST_Y(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_y'
-SELECT ST_Y('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_y'
-SELECT ST_AREA(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_area'
-SELECT ST_AREA(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_area'
-SELECT ST_AREA('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_area'
-SELECT ST_LENGTH(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_length'
-SELECT ST_LENGTH(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_length'
-SELECT ST_LENGTH('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_length'
-# Item_real_func_geometry_args_geometry_geometry
-SELECT ST_DISTANCE(ROW(1,1), 1);
-ERROR HY000: Illegal parameter data type row for operation 'st_distance'
-SELECT ST_DISTANCE(1, 1);
-ERROR HY000: Illegal parameter data type int for operation 'st_distance'
-SELECT ST_DISTANCE('test', 1);
-ERROR HY000: Illegal parameter data type varchar for operation 'st_distance'
-SELECT ST_DISTANCE(POINT(1,1), ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_distance'
-SELECT ST_DISTANCE(POINT(1,1), 1);
-ERROR HY000: Illegal parameter data type int for operation 'st_distance'
-SELECT ST_DISTANCE(POINT(1,1), 'test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_distance'
-# Item_int_func_args_geometry
-SELECT ST_ISSIMPLE(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_issimple'
-SELECT ST_ISSIMPLE(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_issimple'
-SELECT ST_ISSIMPLE('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_issimple'
-SELECT ST_ISRING(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_isring'
-SELECT ST_ISRING(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_isring'
-SELECT ST_ISRING('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_isring'
-SELECT ST_ISCLOSED(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_isclosed'
-SELECT ST_ISCLOSED(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_isclosed'
-SELECT ST_ISCLOSED('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_isclosed'
-SELECT ST_DIMENSION(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_dimension'
-SELECT ST_DIMENSION(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_dimension'
-SELECT ST_DIMENSION('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_dimension'
-SELECT ST_NUMGEOMETRIES(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_numgeometries'
-SELECT ST_NUMGEOMETRIES(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_numgeometries'
-SELECT ST_NUMGEOMETRIES('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_numgeometries'
-SELECT ST_NUMINTERIORRINGS(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_numinteriorrings'
-SELECT ST_NUMINTERIORRINGS(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_numinteriorrings'
-SELECT ST_NUMINTERIORRINGS('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_numinteriorrings'
-SELECT ST_NUMPOINTS(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_numpoints'
-SELECT ST_NUMPOINTS(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_numpoints'
-SELECT ST_NUMPOINTS('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_numpoints'
-SELECT ST_SRID(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'srid'
-SELECT ST_SRID(1);
-ERROR HY000: Illegal parameter data type int for operation 'srid'
-SELECT ST_SRID('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'srid'
-# Item_bool_func_args_geometry
-SELECT ST_ISEMPTY(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_isempty'
-SELECT ST_ISEMPTY(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_isempty'
-SELECT ST_ISEMPTY('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_isempty'
-# Item_bool_func_geometry_args_geometry_geometry
-SELECT ST_RELATE(ROW(1,1), POINT(1,1), 'T*F**FFF*');
-ERROR HY000: Illegal parameter data type row for operation 'st_relate'
-SELECT ST_RELATE(POINT(1,1), ROW(1,1), 'T*F**FFF*');
-ERROR HY000: Illegal parameter data type row for operation 'st_relate'
-SELECT ST_RELATE(1, POINT(1,1), 'T*F**FFF*');
-ERROR HY000: Illegal parameter data type int for operation 'st_relate'
-SELECT ST_RELATE(POINT(1,1), 1, 'T*F**FFF*');
-ERROR HY000: Illegal parameter data type int for operation 'st_relate'
-SELECT ST_RELATE(Point(1,1),Point(1,1),'T*F**FFF*') AS equals;
-equals
-1
-SELECT ST_RELATE(Point(1,1),Point(1,1),NULL);
-ST_RELATE(Point(1,1),Point(1,1),NULL)
-NULL
-SELECT ST_RELATE(Point(1,1),Point(1,1),ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_relate'
-SELECT ST_RELATE(Point(1,1),Point(1,1),1);
-ERROR HY000: Illegal parameter data type int for operation 'st_relate'
-SELECT ST_RELATE(Point(1,1),Point(1,1),1.0);
-ERROR HY000: Illegal parameter data type decimal for operation 'st_relate'
-SELECT ST_RELATE(Point(1,1),Point(1,1),1e0);
-ERROR HY000: Illegal parameter data type double for operation 'st_relate'
-SELECT ST_RELATE(Point(1,1),Point(1,1),TIME'10:10:10');
-ERROR HY000: Illegal parameter data type time for operation 'st_relate'
-SELECT ST_RELATE(Point(1,1),Point(1,1),DATE'2010-01-01');
-ERROR HY000: Illegal parameter data type date for operation 'st_relate'
-SELECT ST_RELATE(Point(1,1),Point(1,1),TIMESTAMP'2010-01-01 10:10:10');
-ERROR HY000: Illegal parameter data type datetime for operation 'st_relate'
-SELECT ST_RELATE(Point(1,1),Point(1,1),Point(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'st_relate'
-# Item_str_ascii_func_args_geometry
-SELECT ST_ASTEXT(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_astext'
-SELECT ST_ASTEXT(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_astext'
-SELECT ST_ASTEXT('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_astext'
-SELECT ST_GEOMETRYTYPE(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_geometrytype'
-SELECT ST_GEOMETRYTYPE(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_geometrytype'
-SELECT ST_GEOMETRYTYPE('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_geometrytype'
-SELECT ST_ASGEOJSON(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_asgeojson'
-SELECT ST_ASGEOJSON(1);
-ERROR HY000: Illegal parameter data type int for operation 'st_asgeojson'
-SELECT ST_ASGEOJSON('test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_asgeojson'
-SELECT ST_ASGEOJSON(POINT(1,1), POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'st_asgeojson'
-SELECT ST_ASGEOJSON(POINT(1,1), 1, POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'st_asgeojson'
-# Item_func_spatial_rel
-SELECT ST_TOUCHES(ROW(1,1), POINT(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_touches'
-SELECT ST_TOUCHES(POINT(1,1), ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_touches'
-SELECT ST_TOUCHES(1, POINT(1,1));
-ERROR HY000: Illegal parameter data type int for operation 'st_touches'
-SELECT ST_TOUCHES(POINT(1,1), 1);
-ERROR HY000: Illegal parameter data type int for operation 'st_touches'
-SELECT ST_TOUCHES('test', POINT(1,1));
-ERROR HY000: Illegal parameter data type varchar for operation 'st_touches'
-SELECT ST_TOUCHES(POINT(1,1), 'test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_touches'
-SELECT MBRTOUCHES(ROW(1,1), POINT(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_touches'
-SELECT MBRTOUCHES(POINT(1,1), ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'st_touches'
-SELECT MBRTOUCHES(1, POINT(1,1));
-ERROR HY000: Illegal parameter data type int for operation 'st_touches'
-SELECT MBRTOUCHES(POINT(1,1), 1);
-ERROR HY000: Illegal parameter data type int for operation 'st_touches'
-SELECT MBRTOUCHES('test', POINT(1,1));
-ERROR HY000: Illegal parameter data type varchar for operation 'st_touches'
-SELECT MBRTOUCHES(POINT(1,1), 'test');
-ERROR HY000: Illegal parameter data type varchar for operation 'st_touches'
-#
-# MDEV-13964 Parameter data type control for Item_real_func
-#
-SELECT EXP(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'exp'
-SELECT LN(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'ln'
-SELECT LOG2(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'log2'
-SELECT LOG10(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'log10'
-SELECT SQRT(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'sqrt'
-SELECT ACOS(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'acos'
-SELECT ASIN(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'asin'
-SELECT COS(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'cos'
-SELECT SIN(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'sin'
-SELECT TAN(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'tan'
-SELECT COT(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'cot'
-SELECT LOG(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'log'
-SELECT LOG(POINT(1,1),POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'log'
-SELECT LOG(1, POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'log'
-SELECT ATAN(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'atan'
-SELECT ATAN(POINT(1,1),POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'atan'
-SELECT ATAN(1, POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'atan'
-SELECT POW(POINT(1,1),POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'pow'
-SELECT RAND(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'rand'
-SELECT RADIANS(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'radians'
-SELECT DEGREES(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'degrees'
-SELECT EXP(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'exp'
-SELECT LN(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'ln'
-SELECT LOG2(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'log2'
-SELECT LOG10(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'log10'
-SELECT SQRT(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'sqrt'
-SELECT ACOS(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'acos'
-SELECT ASIN(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'asin'
-SELECT COS(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'cos'
-SELECT SIN(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'sin'
-SELECT TAN(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'tan'
-SELECT COT(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'cot'
-SELECT LOG(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'log'
-SELECT LOG(ROW(1,1),ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'log'
-SELECT LOG(1, ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'log'
-SELECT ATAN(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'atan'
-SELECT ATAN(ROW(1,1),ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'atan'
-SELECT ATAN(1, ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'atan'
-SELECT POW(ROW(1,1),ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'pow'
-SELECT RAND(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'rand'
-SELECT RADIANS(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'radians'
-SELECT DEGREES(ROW(1,1));
-ERROR HY000: Illegal parameter data type row for operation 'degrees'
-#
-# MDEV-13965 Parameter data type control for Item_longlong_func
-#
-SELECT POINT(1,1) | 1;
-ERROR HY000: Illegal parameter data type geometry for operation '|'
-SELECT 1 | POINT(1,1);
-ERROR HY000: Illegal parameter data type geometry for operation '|'
-SELECT POINT(1,1) & 1;
-ERROR HY000: Illegal parameter data type geometry for operation '&'
-SELECT 1 & POINT(1,1);
-ERROR HY000: Illegal parameter data type geometry for operation '&'
-SELECT POINT(1,1) << 1;
-ERROR HY000: Illegal parameter data type geometry for operation '<<'
-SELECT 1 << POINT(1,1);
-ERROR HY000: Illegal parameter data type geometry for operation '<<'
-SELECT POINT(1,1) >> 1;
-ERROR HY000: Illegal parameter data type geometry for operation '>>'
-SELECT 1 >> POINT(1,1);
-ERROR HY000: Illegal parameter data type geometry for operation '>>'
-SELECT ~POINT(1,1);
-ERROR HY000: Illegal parameter data type geometry for operation '~'
-SELECT TO_SECONDS(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'to_seconds'
-SELECT TIMESTAMPDIFF(SECOND,POINT(1,1), 1);
-ERROR HY000: Illegal parameter data type geometry for operation 'timestampdiff'
-SELECT TIMESTAMPDIFF(SECOND,1, POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'timestampdiff'
-SELECT INET_ATON(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'inet_aton'
-SELECT LAST_INSERT_ID(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'last_insert_id'
-#
-# MDEV-13966 Parameter data type control for Item_temporal_func
-#
-SELECT FROM_DAYS(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'from_days'
-SELECT MAKEDATE(POINT(1,1),1);
-ERROR HY000: Illegal parameter data type geometry for operation 'makedate'
-SELECT MAKEDATE(1, POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'makedate'
-SELECT LAST_DAY(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'last_day'
-SELECT SEC_TO_TIME(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'sec_to_time'
-SELECT TIMEDIFF(POINT(1,1),1);
-ERROR HY000: Illegal parameter data type geometry for operation 'timediff'
-SELECT TIMEDIFF(1, POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'timediff'
-SELECT MAKETIME(POINT(1,1),1,1);
-ERROR HY000: Illegal parameter data type geometry for operation 'maketime'
-SELECT MAKETIME(1, POINT(1,1), 1);
-ERROR HY000: Illegal parameter data type geometry for operation 'maketime'
-SELECT MAKETIME(1, 1, POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'maketime'
-SELECT FROM_UNIXTIME(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'from_unixtime'
-SELECT CONVERT_TZ(POINT(1,1),1,1);
-ERROR HY000: Illegal parameter data type geometry for operation 'convert_tz'
-SELECT CONVERT_TZ(1, POINT(1,1), 1);
-ERROR HY000: Illegal parameter data type geometry for operation 'convert_tz'
-SELECT CONVERT_TZ(1, 1, POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'convert_tz'
-#
-# MDEV-13967 Parameter data type control for Item_long_func
-#
-SELECT STRCMP(POINT(1,1),POINT(1,1));
-STRCMP(POINT(1,1),POINT(1,1))
-0
-SELECT CHAR_LENGTH(POINT(1,1));
-CHAR_LENGTH(POINT(1,1))
-25
-SELECT OCTET_LENGTH(POINT(1,1));
-OCTET_LENGTH(POINT(1,1))
-25
-SELECT UNCOMPRESSED_LENGTH(POINT(1,1));
-UNCOMPRESSED_LENGTH(POINT(1,1))
-0
-SELECT COERCIBILITY(POINT(1,1));
-COERCIBILITY(POINT(1,1))
-4
-SELECT ASCII(POINT(1,1));
-ASCII(POINT(1,1))
-0
-SELECT CRC32(POINT(1,1));
-CRC32(POINT(1,1))
-1349318989
-SELECT ORD(POINT(1,1));
-ORD(POINT(1,1))
-0
-SELECT SIGN(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'sign'
-SELECT LOCATE('a','a',POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'locate'
-SELECT LOCATE(POINT(1,1),POINT(1,1));
-LOCATE(POINT(1,1),POINT(1,1))
-1
-SELECT BIT_COUNT(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'bit_count'
-SELECT BENCHMARK(POINT(1,1),'');
-ERROR HY000: Illegal parameter data type geometry for operation 'benchmark'
-SELECT SLEEP(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'sleep'
-SELECT GET_LOCK('x', POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'get_lock'
-SELECT PERIOD_ADD(POINT(1,1),1);
-ERROR HY000: Illegal parameter data type geometry for operation 'period_add'
-SELECT PERIOD_ADD(1,POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'period_add'
-SELECT PERIOD_DIFF(POINT(1,1),1);
-ERROR HY000: Illegal parameter data type geometry for operation 'period_diff'
-SELECT PERIOD_DIFF(1,POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'period_diff'
-SELECT TO_DAYS(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'to_days'
-SELECT DAYOFMONTH(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'dayofmonth'
-SELECT DAYOFYEAR(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'dayofyear'
-SELECT QUARTER(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'quarter'
-SELECT YEAR(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'year'
-SELECT YEARWEEK(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'yearweek'
-SELECT WEEK(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'week'
-SELECT WEEK(POINT(1,1),1);
-ERROR HY000: Illegal parameter data type geometry for operation 'week'
-SELECT WEEK(1,POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'week'
-SELECT HOUR(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'hour'
-SELECT MINUTE(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'minute'
-SELECT SECOND(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'second'
-SELECT MICROSECOND(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'microsecond'
-SELECT JSON_DEPTH(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'json_depth'
-SELECT JSON_LENGTH(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'json_length'
-SELECT JSON_LENGTH('json', POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'json_length'
-SELECT JSON_LENGTH(POINT(1,1), POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'json_length'
-SELECT REGEXP_INSTR(POINT(1,1),'');
-REGEXP_INSTR(POINT(1,1),'')
-1
-SELECT REGEXP_INSTR('',POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'regexp_instr'
-SELECT FIND_IN_SET(POINT(1,1),'');
-FIND_IN_SET(POINT(1,1),'')
-0
-SELECT FIND_IN_SET('',POINT(1,1));
-FIND_IN_SET('',POINT(1,1))
-0
-SELECT RELEASE_LOCK(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'release_lock'
-SELECT IS_FREE_LOCK(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'is_free_lock'
-SELECT IS_USED_LOCK(POINT(1,1));
-ERROR HY000: Illegal parameter data type geometry for operation 'is_used_lock'
-#
-# End of 10.3 tests
-#
diff --git a/mysql-test/r/gis2.result b/mysql-test/r/gis2.result
deleted file mode 100644
index c0b476e080b..00000000000
--- a/mysql-test/r/gis2.result
+++ /dev/null
@@ -1,38 +0,0 @@
-CREATE TABLE t1 (
-id INT UNSIGNED NOT NULL AUTO_INCREMENT,
-point_data POINT NOT NULL,
-PRIMARY KEY (id),
-KEY idx_point_data(point_data)
-) ENGINE=MyISAM;
-INSERT t1 (point_data) VALUES
-(GeomFromText('Point(37.0248492 23.8512726)')),
-(GeomFromText('Point(38.0248492 23.8512726)'));
-SELECT id FROM t1
-WHERE ST_Contains(point_data, GeomFromText('Point(38.0248492 23.8512726)'));
-id
-2
-DROP TABLE t1;
-create table t1 (p point default "qwer");
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-create table t1 (p point default 0);
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-create table t1 (p point not null default st_geometryfromtext('point 0)'));
-ERROR 42000: Invalid default value for 'p'
-create table t1 (p point not null default st_geometryfromtext('point(0 0)'));
-insert into t1 values(default);
-select st_astext(p) from t1;
-st_astext(p)
-POINT(0 0)
-drop table t1;
-create table t1 (p point not null default if(unix_timestamp()>10,POINT(1,1),LineString(Point(0,0),Point(1,1))));
-set timestamp=10;
-insert into t1 values(default);
-ERROR 22007: Incorrect POINT value: 'GEOMETRYCOLLECTION' for column 'p' at row 1
-drop table t1;
-SET timestamp=default;
-create table t1 (p point not null default if(unix_timestamp()>10,POINT(1,1),LineString(Point(0,0),Point(1,1))));
-set timestamp=10;
-alter table t1 add column i int;
-ERROR 22007: Incorrect POINT value: 'GEOMETRYCOLLECTION' for column 'p' at row 1
-drop table t1;
-SET timestamp=default;
diff --git a/mysql-test/r/grant.result b/mysql-test/r/grant.result
deleted file mode 100644
index 22add627144..00000000000
--- a/mysql-test/r/grant.result
+++ /dev/null
@@ -1,2734 +0,0 @@
-set GLOBAL sql_mode="";
-set LOCAL sql_mode="";
-SET @old_log_bin_trust_function_creators= @@global.log_bin_trust_function_creators;
-SET GLOBAL log_bin_trust_function_creators = 1;
-drop table if exists t1;
-drop database if exists mysqltest;
-connect master,localhost,root,,;
-connection master;
-SET NAMES binary;
-delete from mysql.user where user='mysqltest_1';
-delete from mysql.db where user='mysqltest_1';
-flush privileges;
-grant select on mysqltest.* to mysqltest_1@localhost require cipher "EDH-RSA-DES-CBC3-SHA";
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' REQUIRE CIPHER 'EDH-RSA-DES-CBC3-SHA'
-GRANT SELECT ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-grant delete on mysqltest.* to mysqltest_1@localhost;
-select * from mysql.user where user="mysqltest_1";
-Host localhost
-User mysqltest_1
-Password
-Select_priv N
-Insert_priv N
-Update_priv N
-Delete_priv N
-Create_priv N
-Drop_priv N
-Reload_priv N
-Shutdown_priv N
-Process_priv N
-File_priv N
-Grant_priv N
-References_priv N
-Index_priv N
-Alter_priv N
-Show_db_priv N
-Super_priv N
-Create_tmp_table_priv N
-Lock_tables_priv N
-Execute_priv N
-Repl_slave_priv N
-Repl_client_priv N
-Create_view_priv N
-Show_view_priv N
-Create_routine_priv N
-Alter_routine_priv N
-Create_user_priv N
-Event_priv N
-Trigger_priv N
-Create_tablespace_priv N
-Delete_history_priv N
-ssl_type SPECIFIED
-ssl_cipher EDH-RSA-DES-CBC3-SHA
-x509_issuer
-x509_subject
-max_questions 0
-max_updates 0
-max_connections 0
-max_user_connections 0
-plugin
-authentication_string
-password_expired N
-is_role N
-default_role
-max_statement_time 0.000000
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' REQUIRE CIPHER 'EDH-RSA-DES-CBC3-SHA'
-GRANT SELECT, DELETE ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-revoke delete on mysqltest.* from mysqltest_1@localhost;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' REQUIRE CIPHER 'EDH-RSA-DES-CBC3-SHA'
-GRANT SELECT ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-grant select on mysqltest.* to mysqltest_1@localhost require NONE;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-grant USAGE on mysqltest.* to mysqltest_1@localhost require cipher "EDH-RSA-DES-CBC3-SHA" AND SUBJECT "testsubject" ISSUER "Monty Program Ab";
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' REQUIRE ISSUER 'Monty Program Ab' SUBJECT 'testsubject' CIPHER 'EDH-RSA-DES-CBC3-SHA'
-GRANT SELECT ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-revoke all privileges on mysqltest.* from mysqltest_1@localhost;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' REQUIRE ISSUER 'Monty Program Ab' SUBJECT 'testsubject' CIPHER 'EDH-RSA-DES-CBC3-SHA'
-delete from mysql.user where user='mysqltest_1';
-flush privileges;
-delete from mysql.user where user='mysqltest_1';
-flush privileges;
-grant usage on *.* to mysqltest_1@localhost with max_queries_per_hour 10 max_statement_time 60;
-select * from mysql.user where user="mysqltest_1";
-Host localhost
-User mysqltest_1
-Password
-Select_priv N
-Insert_priv N
-Update_priv N
-Delete_priv N
-Create_priv N
-Drop_priv N
-Reload_priv N
-Shutdown_priv N
-Process_priv N
-File_priv N
-Grant_priv N
-References_priv N
-Index_priv N
-Alter_priv N
-Show_db_priv N
-Super_priv N
-Create_tmp_table_priv N
-Lock_tables_priv N
-Execute_priv N
-Repl_slave_priv N
-Repl_client_priv N
-Create_view_priv N
-Show_view_priv N
-Create_routine_priv N
-Alter_routine_priv N
-Create_user_priv N
-Event_priv N
-Trigger_priv N
-Create_tablespace_priv N
-Delete_history_priv N
-ssl_type
-ssl_cipher
-x509_issuer
-x509_subject
-max_questions 10
-max_updates 0
-max_connections 0
-max_user_connections 0
-plugin
-authentication_string
-password_expired N
-is_role N
-default_role
-max_statement_time 60.000000
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' WITH MAX_QUERIES_PER_HOUR 10 MAX_STATEMENT_TIME 60.000000
-grant usage on *.* to mysqltest_1@localhost with max_updates_per_hour 20 max_connections_per_hour 30 max_statement_time 0;
-select * from mysql.user where user="mysqltest_1";
-Host localhost
-User mysqltest_1
-Password
-Select_priv N
-Insert_priv N
-Update_priv N
-Delete_priv N
-Create_priv N
-Drop_priv N
-Reload_priv N
-Shutdown_priv N
-Process_priv N
-File_priv N
-Grant_priv N
-References_priv N
-Index_priv N
-Alter_priv N
-Show_db_priv N
-Super_priv N
-Create_tmp_table_priv N
-Lock_tables_priv N
-Execute_priv N
-Repl_slave_priv N
-Repl_client_priv N
-Create_view_priv N
-Show_view_priv N
-Create_routine_priv N
-Alter_routine_priv N
-Create_user_priv N
-Event_priv N
-Trigger_priv N
-Create_tablespace_priv N
-Delete_history_priv N
-ssl_type
-ssl_cipher
-x509_issuer
-x509_subject
-max_questions 10
-max_updates 20
-max_connections 30
-max_user_connections 0
-plugin
-authentication_string
-password_expired N
-is_role N
-default_role
-max_statement_time 0.000000
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' WITH MAX_QUERIES_PER_HOUR 10 MAX_UPDATES_PER_HOUR 20 MAX_CONNECTIONS_PER_HOUR 30
-flush privileges;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' WITH MAX_QUERIES_PER_HOUR 10 MAX_UPDATES_PER_HOUR 20 MAX_CONNECTIONS_PER_HOUR 30
-delete from mysql.user where user='mysqltest_1';
-flush privileges;
-grant CREATE TEMPORARY TABLES, LOCK TABLES on mysqltest.* to mysqltest_1@localhost;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT CREATE TEMPORARY TABLES, LOCK TABLES ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-flush privileges;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT CREATE TEMPORARY TABLES, LOCK TABLES ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-revoke CREATE TEMPORARY TABLES on mysqltest.* from mysqltest_1@localhost;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT LOCK TABLES ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-grant ALL PRIVILEGES on mysqltest.* to mysqltest_1@localhost with GRANT OPTION;
-flush privileges;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT ALL PRIVILEGES ON `mysqltest`.* TO 'mysqltest_1'@'localhost' WITH GRANT OPTION
-revoke LOCK TABLES, ALTER on mysqltest.* from mysqltest_1@localhost;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, CREATE TEMPORARY TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER, DELETE VERSIONING ROWS ON `mysqltest`.* TO 'mysqltest_1'@'localhost' WITH GRANT OPTION
-revoke all privileges on mysqltest.* from mysqltest_1@localhost;
-delete from mysql.user where user='mysqltest_1';
-flush privileges;
-grant usage on test.* to mysqltest_1@localhost with grant option;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT USAGE ON `mysqltest`.* TO 'mysqltest_1'@'localhost' WITH GRANT OPTION
-GRANT USAGE ON `test`.* TO 'mysqltest_1'@'localhost' WITH GRANT OPTION
-delete from mysql.user where user='mysqltest_1';
-delete from mysql.db where user='mysqltest_1';
-delete from mysql.tables_priv where user='mysqltest_1';
-delete from mysql.columns_priv where user='mysqltest_1';
-flush privileges;
-show grants for mysqltest_1@localhost;
-ERROR 42000: There is no such grant defined for user 'mysqltest_1' on host 'localhost'
-create table t1 (a int);
-GRANT select,update,insert on t1 to mysqltest_1@localhost;
-GRANT select (a), update (a),insert(a), references(a) on t1 to mysqltest_1@localhost;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT, SELECT (a), INSERT, INSERT (a), UPDATE, UPDATE (a), REFERENCES (a) ON `test`.`t1` TO 'mysqltest_1'@'localhost'
-select table_priv,column_priv from mysql.tables_priv where user="mysqltest_1";
-table_priv column_priv
-Select,Insert,Update Select,Insert,Update,References
-REVOKE select (a), update on t1 from mysqltest_1@localhost;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT, INSERT, INSERT (a), REFERENCES (a) ON `test`.`t1` TO 'mysqltest_1'@'localhost'
-REVOKE select,update,insert,insert (a) on t1 from mysqltest_1@localhost;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT REFERENCES (a) ON `test`.`t1` TO 'mysqltest_1'@'localhost'
-GRANT select,references on t1 to mysqltest_1@localhost;
-select table_priv,column_priv from mysql.tables_priv where user="mysqltest_1";
-table_priv column_priv
-Select,References References
-grant all on test.* to mysqltest_3@localhost with grant option;
-revoke all on test.* from mysqltest_3@localhost;
-show grants for mysqltest_3@localhost;
-Grants for mysqltest_3@localhost
-GRANT USAGE ON *.* TO 'mysqltest_3'@'localhost'
-GRANT USAGE ON `test`.* TO 'mysqltest_3'@'localhost' WITH GRANT OPTION
-revoke grant option on test.* from mysqltest_3@localhost;
-show grants for mysqltest_3@localhost;
-Grants for mysqltest_3@localhost
-GRANT USAGE ON *.* TO 'mysqltest_3'@'localhost'
-grant all on test.t1 to mysqltest_2@localhost with grant option;
-revoke all on test.t1 from mysqltest_2@localhost;
-show grants for mysqltest_2@localhost;
-Grants for mysqltest_2@localhost
-GRANT USAGE ON *.* TO 'mysqltest_2'@'localhost'
-GRANT USAGE ON `test`.`t1` TO 'mysqltest_2'@'localhost' WITH GRANT OPTION
-revoke grant option on test.t1 from mysqltest_2@localhost;
-show grants for mysqltest_2@localhost;
-Grants for mysqltest_2@localhost
-GRANT USAGE ON *.* TO 'mysqltest_2'@'localhost'
-delete from mysql.user where user='mysqltest_1' or user="mysqltest_2" or user="mysqltest_3";
-delete from mysql.db where user='mysqltest_1' or user="mysqltest_2" or user="mysqltest_3";
-delete from mysql.tables_priv where user='mysqltest_1' or user="mysqltest_2" or user="mysqltest_3";
-delete from mysql.columns_priv where user='mysqltest_1' or user="mysqltest_2" or user="mysqltest_3";
-flush privileges;
-drop table t1;
-GRANT FILE on mysqltest.* to mysqltest_1@localhost;
-ERROR HY000: Incorrect usage of DB GRANT and GLOBAL PRIVILEGES
-select 1;
-1
-1
-insert into mysql.user (host, user) values ('localhost', 'test11');
-Warnings:
-Warning 1364 Field 'ssl_cipher' doesn't have a default value
-Warning 1364 Field 'x509_issuer' doesn't have a default value
-Warning 1364 Field 'x509_subject' doesn't have a default value
-Warning 1364 Field 'authentication_string' doesn't have a default value
-insert into mysql.db (host, db, user, select_priv) values
-('localhost', 'a%', 'test11', 'Y'), ('localhost', 'ab%', 'test11', 'Y');
-alter table mysql.db order by db asc;
-flush privileges;
-show grants for test11@localhost;
-Grants for test11@localhost
-GRANT USAGE ON *.* TO 'test11'@'localhost'
-GRANT SELECT ON `ab%`.* TO 'test11'@'localhost'
-GRANT SELECT ON `a%`.* TO 'test11'@'localhost'
-alter table mysql.db order by db desc;
-flush privileges;
-show grants for test11@localhost;
-Grants for test11@localhost
-GRANT USAGE ON *.* TO 'test11'@'localhost'
-GRANT SELECT ON `ab%`.* TO 'test11'@'localhost'
-GRANT SELECT ON `a%`.* TO 'test11'@'localhost'
-delete from mysql.user where user='test11';
-delete from mysql.db where user='test11';
-create database mysqltest1;
-grant usage on mysqltest1.* to test6123 identified by 'magic123';
-select host,db,user,select_priv,insert_priv from mysql.db where db="mysqltest1";
-host db user select_priv insert_priv
-delete from mysql.user where user='test6123';
-drop database mysqltest1;
-create table t1 (a int);
-grant ALL PRIVILEGES on *.* to drop_user2@localhost with GRANT OPTION;
-show grants for drop_user2@localhost;
-Grants for drop_user2@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'drop_user2'@'localhost' WITH GRANT OPTION
-revoke all privileges, grant option from drop_user2@localhost;
-drop user drop_user2@localhost;
-grant ALL PRIVILEGES on *.* to drop_user@localhost with GRANT OPTION;
-grant ALL PRIVILEGES on test.* to drop_user@localhost with GRANT OPTION;
-grant select(a) on test.t1 to drop_user@localhost;
-show grants for drop_user@localhost;
-Grants for drop_user@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'drop_user'@'localhost' WITH GRANT OPTION
-GRANT ALL PRIVILEGES ON `test`.* TO 'drop_user'@'localhost' WITH GRANT OPTION
-GRANT SELECT (a) ON `test`.`t1` TO 'drop_user'@'localhost'
-set sql_mode=ansi_quotes;
-show grants for drop_user@localhost;
-Grants for drop_user@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'drop_user'@'localhost' WITH GRANT OPTION
-GRANT ALL PRIVILEGES ON "test".* TO 'drop_user'@'localhost' WITH GRANT OPTION
-GRANT SELECT (a) ON "test"."t1" TO 'drop_user'@'localhost'
-set sql_mode=default;
-set sql_quote_show_create=0;
-show grants for drop_user@localhost;
-Grants for drop_user@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'drop_user'@'localhost' WITH GRANT OPTION
-GRANT ALL PRIVILEGES ON test.* TO 'drop_user'@'localhost' WITH GRANT OPTION
-GRANT SELECT (a) ON test.t1 TO 'drop_user'@'localhost'
-set sql_mode="ansi_quotes";
-show grants for drop_user@localhost;
-Grants for drop_user@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'drop_user'@'localhost' WITH GRANT OPTION
-GRANT ALL PRIVILEGES ON test.* TO 'drop_user'@'localhost' WITH GRANT OPTION
-GRANT SELECT (a) ON test.t1 TO 'drop_user'@'localhost'
-set sql_quote_show_create=1;
-show grants for drop_user@localhost;
-Grants for drop_user@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'drop_user'@'localhost' WITH GRANT OPTION
-GRANT ALL PRIVILEGES ON "test".* TO 'drop_user'@'localhost' WITH GRANT OPTION
-GRANT SELECT (a) ON "test"."t1" TO 'drop_user'@'localhost'
-set sql_mode="";
-show grants for drop_user@localhost;
-Grants for drop_user@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'drop_user'@'localhost' WITH GRANT OPTION
-GRANT ALL PRIVILEGES ON `test`.* TO 'drop_user'@'localhost' WITH GRANT OPTION
-GRANT SELECT (a) ON `test`.`t1` TO 'drop_user'@'localhost'
-revoke all privileges, grant option from drop_user@localhost;
-show grants for drop_user@localhost;
-Grants for drop_user@localhost
-GRANT USAGE ON *.* TO 'drop_user'@'localhost'
-drop user drop_user@localhost;
-revoke all privileges, grant option from drop_user@localhost;
-ERROR HY000: Can't revoke all privileges for one or more of the requested users
-grant select(a) on test.t1 to drop_user1@localhost;
-grant select on test.t1 to drop_user2@localhost;
-grant select on test.* to drop_user3@localhost;
-grant select on *.* to drop_user4@localhost;
-drop user drop_user1@localhost, drop_user2@localhost, drop_user3@localhost,
-drop_user4@localhost;
-revoke all privileges, grant option from drop_user1@localhost, drop_user2@localhost,
-drop_user3@localhost, drop_user4@localhost;
-ERROR HY000: Can't revoke all privileges for one or more of the requested users
-drop user drop_user1@localhost, drop_user2@localhost, drop_user3@localhost,
-drop_user4@localhost;
-ERROR HY000: Operation DROP USER failed for 'drop_user1'@'localhost','drop_user2'@'localhost','drop_user3'@'localhost','drop_user4'@'localhost'
-drop table t1;
-grant usage on *.* to mysqltest_1@localhost identified by "password";
-grant select, update, insert on test.* to mysqltest_1@localhost;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' IDENTIFIED BY PASSWORD '*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19'
-GRANT SELECT, INSERT, UPDATE ON `test`.* TO 'mysqltest_1'@'localhost'
-drop user mysqltest_1@localhost;
-SET NAMES koi8r;
-CREATE DATABASE ÂÄ;
-USE ÂÄ;
-CREATE TABLE ÔÁÂ (ËÏÌ INT);
-GRANT SELECT ON ÂÄ.* TO ÀÚÅÒ@localhost;
-SHOW GRANTS FOR ÀÚÅÒ@localhost;
-Grants for ÀÚÅÒ@localhost
-GRANT USAGE ON *.* TO 'ÀÚÅÒ'@'localhost'
-GRANT SELECT ON `ÂÄ`.* TO 'ÀÚÅÒ'@'localhost'
-REVOKE SELECT ON ÂÄ.* FROM ÀÚÅÒ@localhost;
-GRANT SELECT ON ÂÄ.ÔÁÂ TO ÀÚÅÒ@localhost;
-SHOW GRANTS FOR ÀÚÅÒ@localhost;
-Grants for ÀÚÅÒ@localhost
-GRANT USAGE ON *.* TO 'ÀÚÅÒ'@'localhost'
-GRANT SELECT ON `ÂÄ`.`ÔÁÂ` TO 'ÀÚÅÒ'@'localhost'
-REVOKE SELECT ON ÂÄ.ÔÁÂ FROM ÀÚÅÒ@localhost;
-GRANT SELECT (ËÏÌ) ON ÂÄ.ÔÁÂ TO ÀÚÅÒ@localhost;
-SHOW GRANTS FOR ÀÚÅÒ@localhost;
-Grants for ÀÚÅÒ@localhost
-GRANT USAGE ON *.* TO 'ÀÚÅÒ'@'localhost'
-GRANT SELECT (ËÏÌ) ON `ÂÄ`.`ÔÁÂ` TO 'ÀÚÅÒ'@'localhost'
-REVOKE SELECT (ËÏÌ) ON ÂÄ.ÔÁÂ FROM ÀÚÅÒ@localhost;
-DROP USER ÀÚÅÒ@localhost;
-DROP DATABASE ÂÄ;
-SET NAMES latin1;
-USE test;
-CREATE TABLE t1 (a int );
-CREATE TABLE t2 LIKE t1;
-CREATE TABLE t3 LIKE t1;
-CREATE TABLE t4 LIKE t1;
-CREATE TABLE t5 LIKE t1;
-CREATE TABLE t6 LIKE t1;
-CREATE TABLE t7 LIKE t1;
-CREATE TABLE t8 LIKE t1;
-CREATE TABLE t9 LIKE t1;
-CREATE TABLE t10 LIKE t1;
-CREATE DATABASE testdb1;
-CREATE DATABASE testdb2;
-CREATE DATABASE testdb3;
-CREATE DATABASE testdb4;
-CREATE DATABASE testdb5;
-CREATE DATABASE testdb6;
-CREATE DATABASE testdb7;
-CREATE DATABASE testdb8;
-CREATE DATABASE testdb9;
-CREATE DATABASE testdb10;
-GRANT ALL ON testdb1.* TO testuser@localhost;
-GRANT ALL ON testdb2.* TO testuser@localhost;
-GRANT ALL ON testdb3.* TO testuser@localhost;
-GRANT ALL ON testdb4.* TO testuser@localhost;
-GRANT ALL ON testdb5.* TO testuser@localhost;
-GRANT ALL ON testdb6.* TO testuser@localhost;
-GRANT ALL ON testdb7.* TO testuser@localhost;
-GRANT ALL ON testdb8.* TO testuser@localhost;
-GRANT ALL ON testdb9.* TO testuser@localhost;
-GRANT ALL ON testdb10.* TO testuser@localhost;
-GRANT SELECT ON test.t1 TO testuser@localhost;
-GRANT SELECT ON test.t2 TO testuser@localhost;
-GRANT SELECT ON test.t3 TO testuser@localhost;
-GRANT SELECT ON test.t4 TO testuser@localhost;
-GRANT SELECT ON test.t5 TO testuser@localhost;
-GRANT SELECT ON test.t6 TO testuser@localhost;
-GRANT SELECT ON test.t7 TO testuser@localhost;
-GRANT SELECT ON test.t8 TO testuser@localhost;
-GRANT SELECT ON test.t9 TO testuser@localhost;
-GRANT SELECT ON test.t10 TO testuser@localhost;
-GRANT SELECT (a) ON test.t1 TO testuser@localhost;
-GRANT SELECT (a) ON test.t2 TO testuser@localhost;
-GRANT SELECT (a) ON test.t3 TO testuser@localhost;
-GRANT SELECT (a) ON test.t4 TO testuser@localhost;
-GRANT SELECT (a) ON test.t5 TO testuser@localhost;
-GRANT SELECT (a) ON test.t6 TO testuser@localhost;
-GRANT SELECT (a) ON test.t7 TO testuser@localhost;
-GRANT SELECT (a) ON test.t8 TO testuser@localhost;
-GRANT SELECT (a) ON test.t9 TO testuser@localhost;
-GRANT SELECT (a) ON test.t10 TO testuser@localhost;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM testuser@localhost;
-SHOW GRANTS FOR testuser@localhost;
-Grants for testuser@localhost
-GRANT USAGE ON *.* TO 'testuser'@'localhost'
-DROP USER testuser@localhost;
-DROP TABLE t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
-DROP DATABASE testdb1;
-DROP DATABASE testdb2;
-DROP DATABASE testdb3;
-DROP DATABASE testdb4;
-DROP DATABASE testdb5;
-DROP DATABASE testdb6;
-DROP DATABASE testdb7;
-DROP DATABASE testdb8;
-DROP DATABASE testdb9;
-DROP DATABASE testdb10;
-create table t1(a int, b int, c int, d int);
-grant insert(b), insert(c), insert(d), insert(a) on t1 to grant_user@localhost;
-show grants for grant_user@localhost;
-Grants for grant_user@localhost
-GRANT USAGE ON *.* TO 'grant_user'@'localhost'
-GRANT INSERT (a, d, c, b) ON `test`.`t1` TO 'grant_user'@'localhost'
-select Host,Db,User,Table_name,Column_name,Column_priv from mysql.columns_priv order by Column_name;
-Host Db User Table_name Column_name Column_priv
-localhost test grant_user t1 a Insert
-localhost test grant_user t1 b Insert
-localhost test grant_user t1 c Insert
-localhost test grant_user t1 d Insert
-revoke ALL PRIVILEGES on t1 from grant_user@localhost;
-show grants for grant_user@localhost;
-Grants for grant_user@localhost
-GRANT USAGE ON *.* TO 'grant_user'@'localhost'
-select Host,Db,User,Table_name,Column_name,Column_priv from mysql.columns_priv;
-Host Db User Table_name Column_name Column_priv
-drop user grant_user@localhost;
-drop table t1;
-create database mysqltest_1;
-create database mysqltest_2;
-create table mysqltest_1.t1 select 1 a, 2 q;
-create table mysqltest_1.t2 select 1 b, 2 r;
-create table mysqltest_2.t1 select 1 c, 2 s;
-create table mysqltest_2.t2 select 1 d, 2 t;
-grant update (a) on mysqltest_1.t1 to mysqltest_3@localhost;
-grant select (b) on mysqltest_1.t2 to mysqltest_3@localhost;
-grant select (c) on mysqltest_2.t1 to mysqltest_3@localhost;
-grant update (d) on mysqltest_2.t2 to mysqltest_3@localhost;
-connect conn1,localhost,mysqltest_3,,;
-connection conn1;
-SELECT * FROM INFORMATION_SCHEMA.COLUMN_PRIVILEGES
-WHERE GRANTEE = '''mysqltest_3''@''localhost'''
- ORDER BY TABLE_NAME,COLUMN_NAME,PRIVILEGE_TYPE;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
-'mysqltest_3'@'localhost' def mysqltest_1 t1 a UPDATE NO
-'mysqltest_3'@'localhost' def mysqltest_2 t1 c SELECT NO
-'mysqltest_3'@'localhost' def mysqltest_1 t2 b SELECT NO
-'mysqltest_3'@'localhost' def mysqltest_2 t2 d UPDATE NO
-SELECT * FROM INFORMATION_SCHEMA.TABLE_PRIVILEGES
-WHERE GRANTEE = '''mysqltest_3''@''localhost'''
- ORDER BY TABLE_NAME,PRIVILEGE_TYPE;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
-SELECT * from INFORMATION_SCHEMA.SCHEMA_PRIVILEGES
-WHERE GRANTEE = '''mysqltest_3''@''localhost'''
- ORDER BY TABLE_SCHEMA,PRIVILEGE_TYPE;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
-SELECT * from INFORMATION_SCHEMA.USER_PRIVILEGES
-WHERE GRANTEE = '''mysqltest_3''@''localhost'''
- ORDER BY TABLE_CATALOG,PRIVILEGE_TYPE;
-GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
-'mysqltest_3'@'localhost' def USAGE NO
-update mysqltest_1.t1, mysqltest_1.t2 set q=10 where b=1;
-ERROR 42000: UPDATE command denied to user 'mysqltest_3'@'localhost' for column 'q' in table 't1'
-update mysqltest_1.t2, mysqltest_2.t2 set d=20 where d=1;
-ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for column 'd' in table 't2'
-update mysqltest_1.t1, mysqltest_2.t2 set d=20 where d=1;
-ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table 't1'
-update mysqltest_2.t1, mysqltest_1.t2 set c=20 where b=1;
-ERROR 42000: UPDATE command denied to user 'mysqltest_3'@'localhost' for table 't1'
-update mysqltest_2.t1, mysqltest_2.t2 set d=10 where s=2;
-ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for column 's' in table 't1'
-update mysqltest_1.t1, mysqltest_2.t2 set a=10,d=10;
-update mysqltest_1.t1, mysqltest_2.t1 set a=20 where c=20;
-connection master;
-select t1.*,t2.* from mysqltest_1.t1,mysqltest_1.t2;
-a q b r
-10 2 1 2
-select t1.*,t2.* from mysqltest_2.t1,mysqltest_2.t2;
-c s d t
-1 2 10 2
-revoke all on mysqltest_1.t1 from mysqltest_3@localhost;
-revoke all on mysqltest_1.t2 from mysqltest_3@localhost;
-revoke all on mysqltest_2.t1 from mysqltest_3@localhost;
-revoke all on mysqltest_2.t2 from mysqltest_3@localhost;
-grant all on mysqltest_2.* to mysqltest_3@localhost;
-grant select on *.* to mysqltest_3@localhost;
-grant select on mysqltest_2.t1 to mysqltest_3@localhost;
-flush privileges;
-disconnect conn1;
-connect conn2,localhost,mysqltest_3,,;
-connection conn2;
-use mysqltest_1;
-update mysqltest_2.t1, mysqltest_2.t2 set c=500,d=600;
-update mysqltest_1.t1, mysqltest_1.t2 set a=100,b=200;
-ERROR 42000: UPDATE command denied to user 'mysqltest_3'@'localhost' for table 't1'
-use mysqltest_2;
-update mysqltest_1.t1, mysqltest_1.t2 set a=100,b=200;
-ERROR 42000: UPDATE command denied to user 'mysqltest_3'@'localhost' for table 't1'
-update mysqltest_2.t1, mysqltest_1.t2 set c=100,b=200;
-ERROR 42000: UPDATE command denied to user 'mysqltest_3'@'localhost' for table 't2'
-update mysqltest_1.t1, mysqltest_2.t2 set a=100,d=200;
-ERROR 42000: UPDATE command denied to user 'mysqltest_3'@'localhost' for table 't1'
-connection master;
-select t1.*,t2.* from mysqltest_1.t1,mysqltest_1.t2;
-a q b r
-10 2 1 2
-select t1.*,t2.* from mysqltest_2.t1,mysqltest_2.t2;
-c s d t
-500 2 600 2
-delete from mysql.user where user='mysqltest_3';
-delete from mysql.db where user="mysqltest_3";
-delete from mysql.tables_priv where user="mysqltest_3";
-delete from mysql.columns_priv where user="mysqltest_3";
-flush privileges;
-drop database mysqltest_1;
-drop database mysqltest_2;
-disconnect conn2;
-SHOW PRIVILEGES;
-Privilege Context Comment
-Alter Tables To alter the table
-Alter routine Functions,Procedures To alter or drop stored functions/procedures
-Create Databases,Tables,Indexes To create new databases and tables
-Create routine Databases To use CREATE FUNCTION/PROCEDURE
-Create temporary tables Databases To use CREATE TEMPORARY TABLE
-Create view Tables To create new views
-Create user Server Admin To create new users
-Delete Tables To delete existing rows
-Delete versioning rows Tables To delete versioning table historical rows
-Drop Databases,Tables To drop databases, tables, and views
-Event Server Admin To create, alter, drop and execute events
-Execute Functions,Procedures To execute stored routines
-File File access on server To read and write files on the server
-Grant option Databases,Tables,Functions,Procedures To give to other users those privileges you possess
-Index Tables To create or drop indexes
-Insert Tables To insert data into tables
-Lock tables Databases To use LOCK TABLES (together with SELECT privilege)
-Process Server Admin To view the plain text of currently executing queries
-Proxy Server Admin To make proxy user possible
-References Databases,Tables To have references on tables
-Reload Server Admin To reload or refresh tables, logs and privileges
-Replication client Server Admin To ask where the slave or master servers are
-Replication slave Server Admin To read binary log events from the master
-Select Tables To retrieve rows from table
-Show databases Server Admin To see all databases with SHOW DATABASES
-Show view Tables To see views with SHOW CREATE VIEW
-Shutdown Server Admin To shut down the server
-Super Server Admin To use KILL thread, SET GLOBAL, CHANGE MASTER, etc.
-Trigger Tables To use triggers
-Create tablespace Server Admin To create/alter/drop tablespaces
-Update Tables To update existing rows
-Usage Server Admin No privileges - allow connect only
-connect root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root;
-create database mysqltest;
-create table mysqltest.t1 (a int,b int,c int);
-grant all on mysqltest.t1 to mysqltest_1@localhost;
-connect user1,localhost,mysqltest_1,,mysqltest,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection user1;
-alter table t1 rename t2;
-ERROR 42000: INSERT, CREATE command denied to user 'mysqltest_1'@'localhost' for table 't2'
-disconnect user1;
-connection root;
-revoke all privileges on mysqltest.t1 from mysqltest_1@localhost;
-delete from mysql.user where user=_binary'mysqltest_1';
-drop database mysqltest;
-connection default;
-disconnect root;
-CREATE USER dummy@localhost;
-CREATE DATABASE mysqltest;
-CREATE TABLE mysqltest.dummytable (dummyfield INT);
-CREATE VIEW mysqltest.dummyview AS SELECT dummyfield FROM mysqltest.dummytable;
-GRANT ALL PRIVILEGES ON mysqltest.dummytable TO dummy@localhost;
-GRANT ALL PRIVILEGES ON mysqltest.dummyview TO dummy@localhost;
-SHOW GRANTS FOR dummy@localhost;
-Grants for dummy@localhost
-GRANT USAGE ON *.* TO 'dummy'@'localhost'
-GRANT ALL PRIVILEGES ON `mysqltest`.`dummyview` TO 'dummy'@'localhost'
-GRANT ALL PRIVILEGES ON `mysqltest`.`dummytable` TO 'dummy'@'localhost'
-use INFORMATION_SCHEMA;
-SELECT TABLE_SCHEMA, TABLE_NAME, GROUP_CONCAT(PRIVILEGE_TYPE ORDER BY
-PRIVILEGE_TYPE SEPARATOR ', ') AS PRIVILEGES FROM TABLE_PRIVILEGES WHERE GRANTEE
-= '\'dummy\'@\'localhost\'' GROUP BY TABLE_SCHEMA, TABLE_NAME;
-TABLE_SCHEMA TABLE_NAME PRIVILEGES
-mysqltest dummytable ALTER, CREATE, CREATE VIEW, DELETE, DELETE VERSIONING ROWS, DROP, INDEX, INSERT, REFERENCES, SELECT, SHOW VIEW, TRIGGER, UPDATE
-mysqltest dummyview ALTER, CREATE, CREATE VIEW, DELETE, DELETE VERSIONING ROWS, DROP, INDEX, INSERT, REFERENCES, SELECT, SHOW VIEW, TRIGGER, UPDATE
-FLUSH PRIVILEGES;
-SHOW GRANTS FOR dummy@localhost;
-Grants for dummy@localhost
-GRANT USAGE ON *.* TO 'dummy'@'localhost'
-GRANT ALL PRIVILEGES ON `mysqltest`.`dummyview` TO 'dummy'@'localhost'
-GRANT ALL PRIVILEGES ON `mysqltest`.`dummytable` TO 'dummy'@'localhost'
-SELECT TABLE_SCHEMA, TABLE_NAME, GROUP_CONCAT(PRIVILEGE_TYPE ORDER BY
-PRIVILEGE_TYPE SEPARATOR ', ') AS PRIVILEGES FROM TABLE_PRIVILEGES WHERE GRANTEE
-= '\'dummy\'@\'localhost\'' GROUP BY TABLE_SCHEMA, TABLE_NAME;
-TABLE_SCHEMA TABLE_NAME PRIVILEGES
-mysqltest dummytable ALTER, CREATE, CREATE VIEW, DELETE, DELETE VERSIONING ROWS, DROP, INDEX, INSERT, REFERENCES, SELECT, SHOW VIEW, TRIGGER, UPDATE
-mysqltest dummyview ALTER, CREATE, CREATE VIEW, DELETE, DELETE VERSIONING ROWS, DROP, INDEX, INSERT, REFERENCES, SELECT, SHOW VIEW, TRIGGER, UPDATE
-SHOW FIELDS FROM mysql.tables_priv;
-Field Type Null Key Default Extra
-Host char(60) NO PRI
-Db char(64) NO PRI
-User char(80) NO PRI
-Table_name char(64) NO PRI
-Grantor char(141) NO MUL
-Timestamp timestamp NO current_timestamp() on update current_timestamp()
-Table_priv set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger','Delete versioning rows') NO
-Column_priv set('Select','Insert','Update','References') NO
-use test;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM dummy@localhost;
-DROP USER dummy@localhost;
-DROP DATABASE mysqltest;
-CREATE USER dummy@localhost;
-CREATE DATABASE mysqltest;
-CREATE TABLE mysqltest.dummytable (dummyfield INT);
-CREATE VIEW mysqltest.dummyview AS SELECT dummyfield FROM mysqltest.dummytable;
-GRANT CREATE VIEW ON mysqltest.dummytable TO dummy@localhost;
-GRANT CREATE VIEW ON mysqltest.dummyview TO dummy@localhost;
-SHOW GRANTS FOR dummy@localhost;
-Grants for dummy@localhost
-GRANT USAGE ON *.* TO 'dummy'@'localhost'
-GRANT CREATE VIEW ON `mysqltest`.`dummyview` TO 'dummy'@'localhost'
-GRANT CREATE VIEW ON `mysqltest`.`dummytable` TO 'dummy'@'localhost'
-use INFORMATION_SCHEMA;
-SELECT TABLE_SCHEMA, TABLE_NAME, GROUP_CONCAT(PRIVILEGE_TYPE ORDER BY
-PRIVILEGE_TYPE SEPARATOR ', ') AS PRIVILEGES FROM TABLE_PRIVILEGES WHERE GRANTEE
-= '\'dummy\'@\'localhost\'' GROUP BY TABLE_SCHEMA, TABLE_NAME;
-TABLE_SCHEMA TABLE_NAME PRIVILEGES
-mysqltest dummytable CREATE VIEW
-mysqltest dummyview CREATE VIEW
-FLUSH PRIVILEGES;
-SHOW GRANTS FOR dummy@localhost;
-Grants for dummy@localhost
-GRANT USAGE ON *.* TO 'dummy'@'localhost'
-GRANT CREATE VIEW ON `mysqltest`.`dummyview` TO 'dummy'@'localhost'
-GRANT CREATE VIEW ON `mysqltest`.`dummytable` TO 'dummy'@'localhost'
-SELECT TABLE_SCHEMA, TABLE_NAME, GROUP_CONCAT(PRIVILEGE_TYPE ORDER BY
-PRIVILEGE_TYPE SEPARATOR ', ') AS PRIVILEGES FROM TABLE_PRIVILEGES WHERE GRANTEE
-= '\'dummy\'@\'localhost\'' GROUP BY TABLE_SCHEMA, TABLE_NAME;
-TABLE_SCHEMA TABLE_NAME PRIVILEGES
-mysqltest dummytable CREATE VIEW
-mysqltest dummyview CREATE VIEW
-use test;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM dummy@localhost;
-DROP USER dummy@localhost;
-DROP DATABASE mysqltest;
-CREATE USER dummy@localhost;
-CREATE DATABASE mysqltest;
-CREATE TABLE mysqltest.dummytable (dummyfield INT);
-CREATE VIEW mysqltest.dummyview AS SELECT dummyfield FROM mysqltest.dummytable;
-GRANT SHOW VIEW ON mysqltest.dummytable TO dummy@localhost;
-GRANT SHOW VIEW ON mysqltest.dummyview TO dummy@localhost;
-SHOW GRANTS FOR dummy@localhost;
-Grants for dummy@localhost
-GRANT USAGE ON *.* TO 'dummy'@'localhost'
-GRANT SHOW VIEW ON `mysqltest`.`dummyview` TO 'dummy'@'localhost'
-GRANT SHOW VIEW ON `mysqltest`.`dummytable` TO 'dummy'@'localhost'
-use INFORMATION_SCHEMA;
-SELECT TABLE_SCHEMA, TABLE_NAME, GROUP_CONCAT(PRIVILEGE_TYPE ORDER BY
-PRIVILEGE_TYPE SEPARATOR ', ') AS PRIVILEGES FROM TABLE_PRIVILEGES WHERE GRANTEE
-= '\'dummy\'@\'localhost\'' GROUP BY TABLE_SCHEMA, TABLE_NAME;
-TABLE_SCHEMA TABLE_NAME PRIVILEGES
-mysqltest dummytable SHOW VIEW
-mysqltest dummyview SHOW VIEW
-FLUSH PRIVILEGES;
-SHOW GRANTS FOR dummy@localhost;
-Grants for dummy@localhost
-GRANT USAGE ON *.* TO 'dummy'@'localhost'
-GRANT SHOW VIEW ON `mysqltest`.`dummyview` TO 'dummy'@'localhost'
-GRANT SHOW VIEW ON `mysqltest`.`dummytable` TO 'dummy'@'localhost'
-SELECT TABLE_SCHEMA, TABLE_NAME, GROUP_CONCAT(PRIVILEGE_TYPE ORDER BY
-PRIVILEGE_TYPE SEPARATOR ', ') AS PRIVILEGES FROM TABLE_PRIVILEGES WHERE GRANTEE
-= '\'dummy\'@\'localhost\'' GROUP BY TABLE_SCHEMA, TABLE_NAME;
-TABLE_SCHEMA TABLE_NAME PRIVILEGES
-mysqltest dummytable SHOW VIEW
-mysqltest dummyview SHOW VIEW
-use test;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM dummy@localhost;
-DROP USER dummy@localhost;
-DROP DATABASE mysqltest;
-connection default;
-use mysql;
-insert into tables_priv values ('','test_db','mysqltest_1','test_table','test_grantor',CURRENT_TIMESTAMP,'Select','Select');
-flush privileges;
-delete from tables_priv where host = '' and user = 'mysqltest_1';
-flush privileges;
-use test;
-set @user123="non-existent";
-select * from mysql.db where user=@user123;
-Host Db User Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Grant_priv References_priv Index_priv Alter_priv Create_tmp_table_priv Lock_tables_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Execute_priv Event_priv Trigger_priv Delete_history_priv
-set names koi8r;
-create database ÂÄ;
-grant select on ÂÄ.* to root@localhost;
-select hex(Db) from mysql.db where Db='ÂÄ';
-hex(Db)
-D0B1D0B4
-show grants for root@localhost;
-Grants for root@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
-GRANT SELECT ON `ÂÄ`.* TO 'root'@'localhost'
-GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
-flush privileges;
-show grants for root@localhost;
-Grants for root@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
-GRANT SELECT ON `ÂÄ`.* TO 'root'@'localhost'
-GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
-drop database ÂÄ;
-revoke all privileges on ÂÄ.* from root@localhost;
-show grants for root@localhost;
-Grants for root@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
-GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
-set names latin1;
-create user mysqltest_7@;
-set password for mysqltest_7@ = password('systpass');
-show grants for mysqltest_7@;
-Grants for mysqltest_7@%
-GRANT USAGE ON *.* TO 'mysqltest_7'@'%' IDENTIFIED BY PASSWORD '*2FB071A056F9BB745219D9C876814231DAF46517'
-drop user mysqltest_7@;
-show grants for mysqltest_7@;
-ERROR 42000: There is no such grant defined for user 'mysqltest_7' on host '%'
-create database mysqltest;
-use mysqltest;
-create table t1(f1 int);
-GRANT DELETE ON mysqltest.t1 TO mysqltest1@'%';
-GRANT SELECT ON mysqltest.t1 TO mysqltest1@'192.%';
-show grants for mysqltest1@'192.%';
-Grants for mysqltest1@192.%
-GRANT USAGE ON *.* TO 'mysqltest1'@'192.%'
-GRANT SELECT ON `mysqltest`.`t1` TO 'mysqltest1'@'192.%'
-show grants for mysqltest1@'%';
-Grants for mysqltest1@%
-GRANT USAGE ON *.* TO 'mysqltest1'@'%'
-GRANT DELETE ON `mysqltest`.`t1` TO 'mysqltest1'@'%'
-delete from mysql.user where user='mysqltest1';
-delete from mysql.db where user='mysqltest1';
-delete from mysql.tables_priv where user='mysqltest1';
-flush privileges;
-drop database mysqltest;
-connection master;
-create database db27515;
-use db27515;
-create table t1 (a int);
-grant alter on db27515.t1 to user27515@localhost;
-grant insert, create on db27515.t2 to user27515@localhost;
-connect conn27515, localhost, user27515, , db27515;
-connection conn27515;
-rename table t1 to t2;
-ERROR 42000: DROP command denied to user 'user27515'@'localhost' for table 't1'
-disconnect conn27515;
-connection master;
-revoke all privileges, grant option from user27515@localhost;
-drop user user27515@localhost;
-drop database db27515;
-End of 4.1 tests
-use test;
-create table t1 (a int);
-create table t2 as select * from mysql.user where user='';
-delete from mysql.user where user='';
-flush privileges;
-create user mysqltest_8@'';
-create user mysqltest_8@host8;
-create user mysqltest_8@'';
-ERROR HY000: Operation CREATE USER failed for 'mysqltest_8'@'%'
-create user mysqltest_8;
-ERROR HY000: Operation CREATE USER failed for 'mysqltest_8'@'%'
-create user mysqltest_8@host8;
-ERROR HY000: Operation CREATE USER failed for 'mysqltest_8'@'host8'
-select user, QUOTE(host) from mysql.user where user="mysqltest_8";
-user QUOTE(host)
-mysqltest_8 '%'
-mysqltest_8 'host8'
-Schema privileges
-grant select on mysqltest.* to mysqltest_8@'';
-show grants for mysqltest_8@'';
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT SELECT ON `mysqltest`.* TO 'mysqltest_8'@'%'
-grant select on mysqltest.* to mysqltest_8@;
-show grants for mysqltest_8@;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT SELECT ON `mysqltest`.* TO 'mysqltest_8'@'%'
-grant select on mysqltest.* to mysqltest_8;
-show grants for mysqltest_8;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT SELECT ON `mysqltest`.* TO 'mysqltest_8'@'%'
-select * from information_schema.schema_privileges
-where grantee like "'mysqltest_8'%";
-GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
-'mysqltest_8'@'%' def mysqltest SELECT NO
-connect conn3,localhost,mysqltest_8,,;
-select * from t1;
-a
-disconnect conn3;
-connection master;
-revoke select on mysqltest.* from mysqltest_8@'';
-show grants for mysqltest_8@'';
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-show grants for mysqltest_8;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-select * from information_schema.schema_privileges
-where grantee like "'mysqltest_8'%";
-GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
-flush privileges;
-show grants for mysqltest_8@'';
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-show grants for mysqltest_8@;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-grant select on mysqltest.* to mysqltest_8@'';
-flush privileges;
-show grants for mysqltest_8@;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT SELECT ON `mysqltest`.* TO 'mysqltest_8'@'%'
-revoke select on mysqltest.* from mysqltest_8@'';
-flush privileges;
-Column privileges
-grant update (a) on t1 to mysqltest_8@'';
-grant update (a) on t1 to mysqltest_8;
-show grants for mysqltest_8@'';
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT UPDATE (a) ON `test`.`t1` TO 'mysqltest_8'@'%'
-show grants for mysqltest_8;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT UPDATE (a) ON `test`.`t1` TO 'mysqltest_8'@'%'
-flush privileges;
-show grants for mysqltest_8@'';
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT UPDATE (a) ON `test`.`t1` TO 'mysqltest_8'@'%'
-show grants for mysqltest_8;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT UPDATE (a) ON `test`.`t1` TO 'mysqltest_8'@'%'
-select * from information_schema.column_privileges;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
-'mysqltest_8'@'%' def test t1 a UPDATE NO
-connect conn4,localhost,mysqltest_8,,;
-select * from t1;
-a
-disconnect conn4;
-connection master;
-revoke update (a) on t1 from mysqltest_8@'';
-show grants for mysqltest_8@'';
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-show grants for mysqltest_8;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-select * from information_schema.column_privileges;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
-flush privileges;
-show grants for mysqltest_8@'';
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-show grants for mysqltest_8;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-Table privileges
-grant update on t1 to mysqltest_8@'';
-grant update on t1 to mysqltest_8;
-show grants for mysqltest_8@'';
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT UPDATE ON `test`.`t1` TO 'mysqltest_8'@'%'
-show grants for mysqltest_8;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT UPDATE ON `test`.`t1` TO 'mysqltest_8'@'%'
-flush privileges;
-show grants for mysqltest_8@'';
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT UPDATE ON `test`.`t1` TO 'mysqltest_8'@'%'
-show grants for mysqltest_8;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT UPDATE ON `test`.`t1` TO 'mysqltest_8'@'%'
-select * from information_schema.table_privileges;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
-'mysqltest_8'@'%' def test t1 UPDATE NO
-connect conn5,localhost,mysqltest_8,,;
-select * from t1;
-a
-disconnect conn5;
-connection master;
-revoke update on t1 from mysqltest_8@'';
-show grants for mysqltest_8@'';
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-show grants for mysqltest_8;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-select * from information_schema.table_privileges;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
-flush privileges;
-show grants for mysqltest_8@'';
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-show grants for mysqltest_8;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-"DROP USER" should clear privileges
-grant all privileges on mysqltest.* to mysqltest_8@'';
-grant select on mysqltest.* to mysqltest_8@'';
-grant update on t1 to mysqltest_8@'';
-grant update (a) on t1 to mysqltest_8@'';
-grant all privileges on mysqltest.* to mysqltest_8;
-show grants for mysqltest_8@'';
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT ALL PRIVILEGES ON `mysqltest`.* TO 'mysqltest_8'@'%'
-GRANT UPDATE, UPDATE (a) ON `test`.`t1` TO 'mysqltest_8'@'%'
-show grants for mysqltest_8;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT ALL PRIVILEGES ON `mysqltest`.* TO 'mysqltest_8'@'%'
-GRANT UPDATE, UPDATE (a) ON `test`.`t1` TO 'mysqltest_8'@'%'
-select * from information_schema.user_privileges
-where grantee like "'mysqltest_8'%";
-GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
-'mysqltest_8'@'host8' def USAGE NO
-'mysqltest_8'@'%' def USAGE NO
-connect conn5,localhost,mysqltest_8,,;
-select * from t1;
-a
-disconnect conn5;
-connection master;
-flush privileges;
-show grants for mysqltest_8@'';
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT ALL PRIVILEGES ON `mysqltest`.* TO 'mysqltest_8'@'%'
-GRANT UPDATE, UPDATE (a) ON `test`.`t1` TO 'mysqltest_8'@'%'
-show grants for mysqltest_8;
-Grants for mysqltest_8@%
-GRANT USAGE ON *.* TO 'mysqltest_8'@'%'
-GRANT ALL PRIVILEGES ON `mysqltest`.* TO 'mysqltest_8'@'%'
-GRANT UPDATE, UPDATE (a) ON `test`.`t1` TO 'mysqltest_8'@'%'
-drop user mysqltest_8@'';
-show grants for mysqltest_8@'';
-ERROR 42000: There is no such grant defined for user 'mysqltest_8' on host '%'
-connect(localhost,mysqltest_8,,test,MASTER_PORT,MASTER_SOCKET);
-connect conn6,localhost,mysqltest_8,,;
-ERROR 28000: Access denied for user 'mysqltest_8'@'localhost' (using password: NO)
-connection master;
-show grants for mysqltest_8;
-ERROR 42000: There is no such grant defined for user 'mysqltest_8' on host '%'
-drop user mysqltest_8@host8;
-show grants for mysqltest_8@host8;
-ERROR 42000: There is no such grant defined for user 'mysqltest_8' on host 'host8'
-insert into mysql.user select * from t2;
-flush privileges;
-drop table t2;
-drop table t1;
-connection master;
-CREATE DATABASE mysqltest3;
-USE mysqltest3;
-CREATE TABLE t_nn (c1 INT);
-CREATE VIEW v_nn AS SELECT * FROM t_nn;
-CREATE DATABASE mysqltest2;
-USE mysqltest2;
-CREATE TABLE t_nn (c1 INT);
-CREATE VIEW v_nn AS SELECT * FROM t_nn;
-CREATE VIEW v_yn AS SELECT * FROM t_nn;
-CREATE VIEW v_gy AS SELECT * FROM t_nn;
-CREATE VIEW v_ny AS SELECT * FROM t_nn;
-CREATE VIEW v_yy AS SELECT * FROM t_nn WHERE c1=55;
-GRANT SHOW VIEW ON mysqltest2.v_ny TO 'mysqltest_1'@'localhost' IDENTIFIED BY 'mysqltest_1';
-GRANT SELECT ON mysqltest2.v_yn TO 'mysqltest_1'@'localhost' IDENTIFIED BY 'mysqltest_1';
-GRANT SELECT ON mysqltest2.* TO 'mysqltest_1'@'localhost' IDENTIFIED BY 'mysqltest_1';
-GRANT SHOW VIEW,SELECT ON mysqltest2.v_yy TO 'mysqltest_1'@'localhost' IDENTIFIED BY 'mysqltest_1';
-connect mysqltest_1, localhost, mysqltest_1, mysqltest_1,;
-SHOW CREATE VIEW mysqltest2.v_nn;
-ERROR 42000: SHOW VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v_nn'
-SHOW CREATE TABLE mysqltest2.v_nn;
-ERROR 42000: SHOW VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v_nn'
-SHOW CREATE VIEW mysqltest2.v_yn;
-ERROR 42000: SHOW VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v_yn'
-SHOW CREATE TABLE mysqltest2.v_yn;
-ERROR 42000: SHOW VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v_yn'
-SHOW CREATE TABLE mysqltest2.v_ny;
-View Create View character_set_client collation_connection
-v_ny CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest2`.`v_ny` AS select `mysqltest2`.`t_nn`.`c1` AS `c1` from `mysqltest2`.`t_nn` latin1 latin1_swedish_ci
-SHOW CREATE VIEW mysqltest2.v_ny;
-View Create View character_set_client collation_connection
-v_ny CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest2`.`v_ny` AS select `mysqltest2`.`t_nn`.`c1` AS `c1` from `mysqltest2`.`t_nn` latin1 latin1_swedish_ci
-SHOW CREATE TABLE mysqltest3.t_nn;
-ERROR 42000: SHOW command denied to user 'mysqltest_1'@'localhost' for table 't_nn'
-SHOW CREATE VIEW mysqltest3.t_nn;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 't_nn'
-SHOW CREATE VIEW mysqltest3.v_nn;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'v_nn'
-SHOW CREATE TABLE mysqltest3.v_nn;
-ERROR 42000: SHOW command denied to user 'mysqltest_1'@'localhost' for table 'v_nn'
-SHOW CREATE TABLE mysqltest2.t_nn;
-Table Create Table
-t_nn CREATE TABLE `t_nn` (
- `c1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE VIEW mysqltest2.t_nn;
-ERROR HY000: 'mysqltest2.t_nn' is not of type 'VIEW'
-SHOW CREATE VIEW mysqltest2.v_yy;
-View Create View character_set_client collation_connection
-v_yy CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest2`.`v_yy` AS select `mysqltest2`.`t_nn`.`c1` AS `c1` from `mysqltest2`.`t_nn` where `mysqltest2`.`t_nn`.`c1` = 55 latin1 latin1_swedish_ci
-SHOW CREATE TABLE mysqltest2.v_yy;
-View Create View character_set_client collation_connection
-v_yy CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest2`.`v_yy` AS select `mysqltest2`.`t_nn`.`c1` AS `c1` from `mysqltest2`.`t_nn` where `mysqltest2`.`t_nn`.`c1` = 55 latin1 latin1_swedish_ci
-connection master;
-SHOW CREATE TABLE mysqltest2.v_nn;
-View Create View character_set_client collation_connection
-v_nn CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_nn` AS select `t_nn`.`c1` AS `c1` from `t_nn` latin1 latin1_swedish_ci
-SHOW CREATE VIEW mysqltest2.v_nn;
-View Create View character_set_client collation_connection
-v_nn CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_nn` AS select `t_nn`.`c1` AS `c1` from `t_nn` latin1 latin1_swedish_ci
-SHOW CREATE TABLE mysqltest2.t_nn;
-Table Create Table
-t_nn CREATE TABLE `t_nn` (
- `c1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE VIEW mysqltest2.t_nn;
-ERROR HY000: 'mysqltest2.t_nn' is not of type 'VIEW'
-DROP VIEW mysqltest2.v_nn;
-DROP VIEW mysqltest2.v_yn;
-DROP VIEW mysqltest2.v_ny;
-DROP VIEW mysqltest2.v_yy;
-DROP TABLE mysqltest2.t_nn;
-DROP DATABASE mysqltest2;
-DROP VIEW mysqltest3.v_nn;
-DROP TABLE mysqltest3.t_nn;
-DROP DATABASE mysqltest3;
-disconnect mysqltest_1;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'mysqltest_1'@'localhost';
-DROP USER 'mysqltest_1'@'localhost';
-USE test;
-connection default;
-disconnect master;
-create user longer_than_80_456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789;
-ERROR HY000: String 'longer_than_80_4567890123456789012345678901234567890123456789012345678' is too long for user name (should be no longer than 80)
-CREATE DATABASE mysqltest1;
-CREATE TABLE mysqltest1.t1 (
-int_field INTEGER UNSIGNED NOT NULL,
-char_field CHAR(10),
-INDEX(`int_field`)
-);
-CREATE TABLE mysqltest1.t2 (int_field INT);
-"Now check that we require equivalent grants for "
-"RENAME TABLE and ALTER TABLE"
-CREATE USER mysqltest_1@localhost;
-GRANT SELECT ON mysqltest1.t1 TO mysqltest_1@localhost;
-connect conn42,localhost,mysqltest_1,,mysqltest1;
-SELECT USER();
-USER()
-mysqltest_1@localhost
-SHOW GRANTS;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT ON `mysqltest1`.`t1` TO 'mysqltest_1'@'localhost'
-RENAME TABLE t1 TO t2;
-ERROR 42000: DROP, ALTER command denied to user 'mysqltest_1'@'localhost' for table 't1'
-ALTER TABLE t1 RENAME TO t2;
-ERROR 42000: DROP, ALTER command denied to user 'mysqltest_1'@'localhost' for table 't1'
-disconnect conn42;
-connection default;
-GRANT DROP ON mysqltest1.t1 TO mysqltest_1@localhost;
-connect conn42,localhost,mysqltest_1,,mysqltest1;
-RENAME TABLE t1 TO t2;
-ERROR 42000: ALTER command denied to user 'mysqltest_1'@'localhost' for table 't1'
-ALTER TABLE t1 RENAME TO t2;
-ERROR 42000: ALTER command denied to user 'mysqltest_1'@'localhost' for table 't1'
-disconnect conn42;
-connection default;
-GRANT ALTER ON mysqltest1.t1 TO mysqltest_1@localhost;
-connect conn42,localhost,mysqltest_1,,mysqltest1;
-SHOW GRANTS;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT, DROP, ALTER ON `mysqltest1`.`t1` TO 'mysqltest_1'@'localhost'
-RENAME TABLE t1 TO t2;
-ERROR 42000: INSERT, CREATE command denied to user 'mysqltest_1'@'localhost' for table 't2'
-ALTER TABLE t1 RENAME TO t2;
-ERROR 42000: INSERT, CREATE command denied to user 'mysqltest_1'@'localhost' for table 't2'
-disconnect conn42;
-connection default;
-GRANT INSERT, CREATE ON mysqltest1.t1 TO mysqltest_1@localhost;
-connect conn42,localhost,mysqltest_1,,mysqltest1;
-SHOW GRANTS;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT, INSERT, CREATE, DROP, ALTER ON `mysqltest1`.`t1` TO 'mysqltest_1'@'localhost'
-disconnect conn42;
-connection default;
-GRANT INSERT, SELECT, CREATE, ALTER, DROP ON mysqltest1.t2 TO mysqltest_1@localhost;
-DROP TABLE mysqltest1.t2;
-connect conn42,localhost,mysqltest_1,,mysqltest1;
-SHOW GRANTS;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT, INSERT, CREATE, DROP, ALTER ON `mysqltest1`.`t1` TO 'mysqltest_1'@'localhost'
-GRANT SELECT, INSERT, CREATE, DROP, ALTER ON `mysqltest1`.`t2` TO 'mysqltest_1'@'localhost'
-RENAME TABLE t1 TO t2;
-RENAME TABLE t2 TO t1;
-ALTER TABLE t1 RENAME TO t2;
-ALTER TABLE t2 RENAME TO t1;
-disconnect conn42;
-connection default;
-REVOKE DROP, INSERT ON mysqltest1.t1 FROM mysqltest_1@localhost;
-REVOKE DROP, INSERT ON mysqltest1.t2 FROM mysqltest_1@localhost;
-connect conn42,localhost,mysqltest_1,,mysqltest1;
-SHOW GRANTS;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT, CREATE, ALTER ON `mysqltest1`.`t1` TO 'mysqltest_1'@'localhost'
-GRANT SELECT, CREATE, ALTER ON `mysqltest1`.`t2` TO 'mysqltest_1'@'localhost'
-RENAME TABLE t1 TO t2;
-ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table 't1'
-ALTER TABLE t1 RENAME TO t2;
-ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table 't1'
-disconnect conn42;
-connection default;
-DROP USER mysqltest_1@localhost;
-DROP DATABASE mysqltest1;
-USE test;
-GRANT CREATE ON mysqltest.* TO longer_than_80_456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789@localhost;
-ERROR HY000: String 'longer_than_80_4567890123456789012345678901234567890123456789012345678' is too long for user name (should be no longer than 80)
-GRANT CREATE ON mysqltest.* TO some_user_name@1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY;
-ERROR HY000: String '1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY' is too long for host name (should be no longer than 60)
-REVOKE CREATE ON mysqltest.* FROM longer_than_80_456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789@localhost;
-ERROR HY000: String 'longer_than_80_4567890123456789012345678901234567890123456789012345678' is too long for user name (should be no longer than 80)
-REVOKE CREATE ON mysqltest.* FROM some_user_name@1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY;
-ERROR HY000: String '1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY' is too long for host name (should be no longer than 60)
-GRANT CREATE ON t1 TO longer_than_80_456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789@localhost;
-ERROR HY000: String 'longer_than_80_4567890123456789012345678901234567890123456789012345678' is too long for user name (should be no longer than 80)
-GRANT CREATE ON t1 TO some_user_name@1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY;
-ERROR HY000: String '1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY' is too long for host name (should be no longer than 60)
-REVOKE CREATE ON t1 FROM longer_than_80_456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789@localhost;
-ERROR HY000: String 'longer_than_80_4567890123456789012345678901234567890123456789012345678' is too long for user name (should be no longer than 80)
-REVOKE CREATE ON t1 FROM some_user_name@1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY;
-ERROR HY000: String '1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY' is too long for host name (should be no longer than 60)
-GRANT EXECUTE ON PROCEDURE p1 TO longer_than_80_456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789@localhost;
-ERROR HY000: String 'longer_than_80_4567890123456789012345678901234567890123456789012345678' is too long for user name (should be no longer than 80)
-GRANT EXECUTE ON PROCEDURE p1 TO some_user_name@1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY;
-ERROR HY000: String '1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY' is too long for host name (should be no longer than 60)
-REVOKE EXECUTE ON PROCEDURE p1 FROM longer_than_80_456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789@localhost;
-ERROR HY000: String 'longer_than_80_4567890123456789012345678901234567890123456789012345678' is too long for user name (should be no longer than 80)
-REVOKE EXECUTE ON PROCEDURE t1 FROM some_user_name@1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY;
-ERROR HY000: String '1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY' is too long for host name (should be no longer than 60)
-CREATE USER bug23556@localhost;
-CREATE DATABASE bug23556;
-GRANT SELECT ON bug23556.* TO bug23556@localhost;
-connect bug23556,localhost,bug23556,,bug23556;
-connection default;
-USE bug23556;
-CREATE TABLE t1 (a INT PRIMARY KEY);
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
-GRANT DELETE ON t1 TO bug23556@localhost;
-connection bug23556;
-USE bug23556;
-TRUNCATE t1;
-ERROR 42000: DROP command denied to user 'bug23556'@'localhost' for table 't1'
-connection default;
-USE bug23556;
-REVOKE DELETE ON t1 FROM bug23556@localhost;
-GRANT DROP ON t1 TO bug23556@localhost;
-connection bug23556;
-USE bug23556;
-TRUNCATE t1;
-connection default;
-USE bug23556;
-DROP TABLE t1;
-USE test;
-DROP DATABASE bug23556;
-DROP USER bug23556@localhost;
-connection default;
-disconnect bug23556;
-connect con1, localhost, root,,*NO-ONE*;
-connection con1;
-GRANT PROCESS ON * TO user@localhost;
-ERROR 3D000: No database selected
-disconnect con1;
-connection default;
-DROP DATABASE IF EXISTS mysqltest1;
-DROP DATABASE IF EXISTS mysqltest2;
-DROP DATABASE IF EXISTS mysqltest3;
-DROP DATABASE IF EXISTS mysqltest4;
-CREATE DATABASE mysqltest1;
-CREATE DATABASE mysqltest2;
-CREATE DATABASE mysqltest3;
-CREATE DATABASE mysqltest4;
-CREATE PROCEDURE mysqltest1.p_def() SQL SECURITY DEFINER
-SELECT 1;
-CREATE PROCEDURE mysqltest2.p_inv() SQL SECURITY INVOKER
-SELECT 1;
-CREATE FUNCTION mysqltest3.f_def() RETURNS INT SQL SECURITY DEFINER
-RETURN 1;
-CREATE FUNCTION mysqltest4.f_inv() RETURNS INT SQL SECURITY INVOKER
-RETURN 1;
-GRANT EXECUTE ON PROCEDURE mysqltest1.p_def TO mysqltest_1@localhost;
-GRANT EXECUTE ON PROCEDURE mysqltest2.p_inv TO mysqltest_1@localhost;
-GRANT EXECUTE ON FUNCTION mysqltest3.f_def TO mysqltest_1@localhost;
-GRANT EXECUTE ON FUNCTION mysqltest4.f_inv TO mysqltest_1@localhost;
-GRANT ALL PRIVILEGES ON test.* TO mysqltest_1@localhost;
-connect bug9504_con1,localhost,mysqltest_1,,;
-use mysqltest1;
-use mysqltest2;
-use mysqltest3;
-use mysqltest4;
-use test;
-CALL mysqltest1.p_def();
-1
-1
-CALL mysqltest2.p_inv();
-1
-1
-SELECT mysqltest3.f_def();
-mysqltest3.f_def()
-1
-SELECT mysqltest4.f_inv();
-mysqltest4.f_inv()
-1
-connection default;
-disconnect bug9504_con1;
-DROP DATABASE mysqltest1;
-DROP DATABASE mysqltest2;
-DROP DATABASE mysqltest3;
-DROP DATABASE mysqltest4;
-DROP USER mysqltest_1@localhost;
-DROP DATABASE IF EXISTS mysqltest1;
-DROP DATABASE IF EXISTS mysqltest2;
-CREATE DATABASE mysqltest1;
-CREATE DATABASE mysqltest2;
-GRANT ALL PRIVILEGES ON mysqltest1.* TO mysqltest_1@localhost;
-GRANT SELECT ON mysqltest2.* TO mysqltest_1@localhost;
-CREATE PROCEDURE mysqltest1.p1() SQL SECURITY INVOKER
-SELECT 1;
-connect bug27337_con1,localhost,mysqltest_1,,mysqltest2;
-CREATE TABLE t1(c INT);
-ERROR 42000: CREATE command denied to user 'mysqltest_1'@'localhost' for table 't1'
-CALL mysqltest1.p1();
-1
-1
-CREATE TABLE t1(c INT);
-ERROR 42000: CREATE command denied to user 'mysqltest_1'@'localhost' for table 't1'
-disconnect bug27337_con1;
-connect bug27337_con2,localhost,mysqltest_1,,mysqltest2;
-CREATE TABLE t1(c INT);
-ERROR 42000: CREATE command denied to user 'mysqltest_1'@'localhost' for table 't1'
-SHOW TABLES;
-Tables_in_mysqltest2
-connection default;
-disconnect bug27337_con2;
-DROP DATABASE mysqltest1;
-DROP DATABASE mysqltest2;
-DROP USER mysqltest_1@localhost;
-DROP DATABASE IF EXISTS mysqltest1;
-DROP DATABASE IF EXISTS mysqltest2;
-CREATE DATABASE mysqltest1;
-CREATE DATABASE mysqltest2;
-CREATE TABLE mysqltest1.t1(c INT);
-CREATE TABLE mysqltest2.t2(c INT);
-GRANT SELECT ON mysqltest1.t1 TO mysqltest_1@localhost;
-GRANT SELECT ON mysqltest2.t2 TO mysqltest_2@localhost;
-connect bug27337_con1,localhost,mysqltest_1,,mysqltest1;
-SHOW TABLES FROM mysqltest1;
-Tables_in_mysqltest1
-t1
-PREPARE stmt1 FROM 'SHOW TABLES FROM mysqltest1';
-EXECUTE stmt1;
-Tables_in_mysqltest1
-t1
-connect bug27337_con2,localhost,mysqltest_2,,mysqltest2;
-SHOW COLUMNS FROM mysqltest2.t2;
-Field Type Null Key Default Extra
-c int(11) YES NULL
-PREPARE stmt2 FROM 'SHOW COLUMNS FROM mysqltest2.t2';
-EXECUTE stmt2;
-Field Type Null Key Default Extra
-c int(11) YES NULL
-connection default;
-REVOKE SELECT ON mysqltest1.t1 FROM mysqltest_1@localhost;
-REVOKE SELECT ON mysqltest2.t2 FROM mysqltest_2@localhost;
-connection bug27337_con1;
-SHOW TABLES FROM mysqltest1;
-ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'mysqltest1'
-EXECUTE stmt1;
-ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'mysqltest1'
-connection bug27337_con2;
-SHOW COLUMNS FROM mysqltest2.t2;
-ERROR 42000: SELECT command denied to user 'mysqltest_2'@'localhost' for table 't2'
-EXECUTE stmt2;
-ERROR 42000: SELECT command denied to user 'mysqltest_2'@'localhost' for table 't2'
-connection default;
-disconnect bug27337_con1;
-disconnect bug27337_con2;
-DROP DATABASE mysqltest1;
-DROP DATABASE mysqltest2;
-DROP USER mysqltest_1@localhost;
-DROP USER mysqltest_2@localhost;
-USE test;
-CREATE TABLE t1 (f1 int, f2 int);
-INSERT INTO t1 VALUES(1,1), (2,2);
-CREATE DATABASE db27878;
-GRANT UPDATE(f1) ON t1 TO 'mysqltest_1'@'localhost';
-GRANT SELECT ON `test`.* TO 'mysqltest_1'@'localhost';
-GRANT ALL ON db27878.* TO 'mysqltest_1'@'localhost';
-USE db27878;
-CREATE SQL SECURITY INVOKER VIEW db27878.v1 AS SELECT * FROM test.t1;
-connect user1,localhost,mysqltest_1,,test;
-connection user1;
-USE db27878;
-UPDATE v1 SET f2 = 4;
-ERROR HY000: View 'db27878.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-SELECT * FROM test.t1;
-f1 f2
-1 1
-2 2
-disconnect user1;
-connection default;
-REVOKE UPDATE (f1) ON `test`.`t1` FROM 'mysqltest_1'@'localhost';
-REVOKE SELECT ON `test`.* FROM 'mysqltest_1'@'localhost';
-REVOKE ALL ON db27878.* FROM 'mysqltest_1'@'localhost';
-DROP USER mysqltest_1@localhost;
-DROP DATABASE db27878;
-USE test;
-DROP TABLE t1;
-#
-# Bug#33275 Server crash when creating temporary table mysql.user
-#
-CREATE TEMPORARY TABLE mysql.user (id INT);
-FLUSH PRIVILEGES;
-DROP TABLE mysql.user;
-drop table if exists test;
-Warnings:
-Note 1051 Unknown table 'test.test'
-drop function if exists test_function;
-Warnings:
-Note 1305 FUNCTION test.test_function does not exist
-drop view if exists v1;
-Warnings:
-Note 4092 Unknown VIEW: 'test.v1'
-create table test (col1 varchar(30));
-create function test_function() returns varchar(30)
-begin
-declare tmp varchar(30);
-select col1 from test limit 1 into tmp;
-return '1';
-end|
-create view v1 as select test.* from test where test.col1=test_function();
-grant update (col1) on v1 to 'greg'@'localhost';
-drop user 'greg'@'localhost';
-drop view v1;
-drop table test;
-drop function test_function;
-SELECT CURRENT_USER();
-CURRENT_USER()
-root@localhost
-SET PASSWORD FOR CURRENT_USER() = PASSWORD("admin");
-SET PASSWORD FOR CURRENT_USER() = PASSWORD("");
-
-# Bug#57952
-
-DROP DATABASE IF EXISTS mysqltest1;
-DROP DATABASE IF EXISTS mysqltest2;
-CREATE DATABASE mysqltest1;
-CREATE DATABASE mysqltest2;
-use mysqltest1;
-CREATE TABLE t1(a INT, b INT);
-INSERT INTO t1 VALUES (1, 1);
-CREATE TABLE t2(a INT);
-INSERT INTO t2 VALUES (2);
-CREATE TABLE mysqltest2.t3(a INT);
-INSERT INTO mysqltest2.t3 VALUES (4);
-CREATE USER testuser@localhost;
-GRANT CREATE ROUTINE, EXECUTE ON mysqltest1.* TO testuser@localhost;
-GRANT SELECT(b) ON t1 TO testuser@localhost;
-GRANT SELECT ON t2 TO testuser@localhost;
-GRANT SELECT ON mysqltest2.* TO testuser@localhost;
-connect bug57952_con1,localhost,testuser,,mysqltest1;
-PREPARE s1 FROM 'SELECT b FROM t1';
-PREPARE s2 FROM 'SELECT a FROM t2';
-PREPARE s3 FROM 'SHOW TABLES FROM mysqltest2';
-CREATE PROCEDURE p1() SELECT b FROM t1;
-CREATE PROCEDURE p2() SELECT a FROM t2;
-CREATE PROCEDURE p3() SHOW TABLES FROM mysqltest2;
-CALL p1;
-b
-1
-CALL p2;
-a
-2
-CALL p3;
-Tables_in_mysqltest2
-t3
-connection default;
-REVOKE SELECT ON t1 FROM testuser@localhost;
-GRANT SELECT(a) ON t1 TO testuser@localhost;
-REVOKE SELECT ON t2 FROM testuser@localhost;
-REVOKE SELECT ON mysqltest2.* FROM testuser@localhost;
-connection bug57952_con1;
-# - Check column-level privileges...
-EXECUTE s1;
-ERROR 42000: SELECT command denied to user 'testuser'@'localhost' for column 'b' in table 't1'
-SELECT b FROM t1;
-ERROR 42000: SELECT command denied to user 'testuser'@'localhost' for column 'b' in table 't1'
-EXECUTE s1;
-ERROR 42000: SELECT command denied to user 'testuser'@'localhost' for column 'b' in table 't1'
-CALL p1;
-ERROR 42000: SELECT command denied to user 'testuser'@'localhost' for column 'b' in table 't1'
-# - Check table-level privileges...
-SELECT a FROM t2;
-ERROR 42000: SELECT command denied to user 'testuser'@'localhost' for table 't2'
-EXECUTE s2;
-ERROR 42000: SELECT command denied to user 'testuser'@'localhost' for table 't2'
-CALL p2;
-ERROR 42000: SELECT command denied to user 'testuser'@'localhost' for table 't2'
-# - Check database-level privileges...
-SHOW TABLES FROM mysqltest2;
-ERROR 42000: Access denied for user 'testuser'@'localhost' to database 'mysqltest2'
-EXECUTE s3;
-ERROR 42000: Access denied for user 'testuser'@'localhost' to database 'mysqltest2'
-CALL p3;
-ERROR 42000: Access denied for user 'testuser'@'localhost' to database 'mysqltest2'
-connection default;
-disconnect bug57952_con1;
-DROP DATABASE mysqltest1;
-DROP DATABASE mysqltest2;
-DROP USER testuser@localhost;
-use test;
-
-#
-# Test for bug #36544 "DROP USER does not remove stored function
-# privileges".
-#
-create database mysqltest1;
-create function mysqltest1.f1() returns int return 0;
-create procedure mysqltest1.p1() begin end;
-#
-# 1) Check that DROP USER properly removes privileges on both
-# stored procedures and functions.
-#
-create user mysqluser1@localhost;
-grant execute on function mysqltest1.f1 to mysqluser1@localhost;
-grant execute on procedure mysqltest1.p1 to mysqluser1@localhost;
-# Quick test that granted privileges are properly reflected
-# in privilege tables and in in-memory structures.
-show grants for mysqluser1@localhost;
-Grants for mysqluser1@localhost
-GRANT USAGE ON *.* TO 'mysqluser1'@'localhost'
-GRANT EXECUTE ON PROCEDURE `mysqltest1`.`p1` TO 'mysqluser1'@'localhost'
-GRANT EXECUTE ON FUNCTION `mysqltest1`.`f1` TO 'mysqluser1'@'localhost'
-select db, routine_name, routine_type, proc_priv from mysql.procs_priv where user='mysqluser1' and host='localhost';
-db routine_name routine_type proc_priv
-mysqltest1 f1 FUNCTION Execute
-mysqltest1 p1 PROCEDURE Execute
-connect bug36544_con1,localhost,mysqluser1,,;
-call mysqltest1.p1();
-select mysqltest1.f1();
-mysqltest1.f1()
-0
-connection default;
-drop user mysqluser1@localhost;
-#
-# Test that dropping of user is properly reflected in
-# both privilege tables and in in-memory structures.
-#
-connection bug36544_con1;
-# The connection cold be alive but should not be able to
-# access to any of the stored routines.
-call mysqltest1.p1();
-ERROR 42000: execute command denied to user 'mysqluser1'@'localhost' for routine 'mysqltest1.p1'
-select mysqltest1.f1();
-ERROR 42000: execute command denied to user 'mysqluser1'@'localhost' for routine 'mysqltest1.f1'
-disconnect bug36544_con1;
-connection default;
-#
-# Now create user with the same name and check that he
-# has not inherited privileges.
-create user mysqluser1@localhost;
-show grants for mysqluser1@localhost;
-Grants for mysqluser1@localhost
-GRANT USAGE ON *.* TO 'mysqluser1'@'localhost'
-select db, routine_name, routine_type, proc_priv from mysql.procs_priv where user='mysqluser1' and host='localhost';
-db routine_name routine_type proc_priv
-connect bug36544_con2,localhost,mysqluser1,,;
-# Newly created user should not be able to access any of the routines.
-call mysqltest1.p1();
-ERROR 42000: execute command denied to user 'mysqluser1'@'localhost' for routine 'mysqltest1.p1'
-select mysqltest1.f1();
-ERROR 42000: execute command denied to user 'mysqluser1'@'localhost' for routine 'mysqltest1.f1'
-connection default;
-#
-# 2) Check that RENAME USER properly updates privileges on both
-# stored procedures and functions.
-#
-grant execute on function mysqltest1.f1 to mysqluser1@localhost;
-grant execute on procedure mysqltest1.p1 to mysqluser1@localhost;
-#
-# Create one more user to make in-memory hashes non-trivial.
-# User names 'mysqluser11' and 'mysqluser10' were selected
-# to trigger bug discovered during code inspection.
-create user mysqluser11@localhost;
-grant execute on function mysqltest1.f1 to mysqluser11@localhost;
-grant execute on procedure mysqltest1.p1 to mysqluser11@localhost;
-# Also create a couple of tables to test for another bug
-# discovered during code inspection (again table names were
-# chosen especially to trigger the bug).
-create table mysqltest1.t11 (i int);
-create table mysqltest1.t22 (i int);
-grant select on mysqltest1.t22 to mysqluser1@localhost;
-grant select on mysqltest1.t11 to mysqluser1@localhost;
-# Quick test that granted privileges are properly reflected
-# in privilege tables and in in-memory structures.
-show grants for mysqluser1@localhost;
-Grants for mysqluser1@localhost
-GRANT USAGE ON *.* TO 'mysqluser1'@'localhost'
-GRANT SELECT ON `mysqltest1`.`t11` TO 'mysqluser1'@'localhost'
-GRANT SELECT ON `mysqltest1`.`t22` TO 'mysqluser1'@'localhost'
-GRANT EXECUTE ON PROCEDURE `mysqltest1`.`p1` TO 'mysqluser1'@'localhost'
-GRANT EXECUTE ON FUNCTION `mysqltest1`.`f1` TO 'mysqluser1'@'localhost'
-select db, routine_name, routine_type, proc_priv from mysql.procs_priv where user='mysqluser1' and host='localhost';
-db routine_name routine_type proc_priv
-mysqltest1 f1 FUNCTION Execute
-mysqltest1 p1 PROCEDURE Execute
-select db, table_name, table_priv from mysql.tables_priv where user='mysqluser1' and host='localhost';
-db table_name table_priv
-mysqltest1 t11 Select
-mysqltest1 t22 Select
-connection bug36544_con2;
-call mysqltest1.p1();
-select mysqltest1.f1();
-mysqltest1.f1()
-0
-select * from mysqltest1.t11;
-i
-select * from mysqltest1.t22;
-i
-connection default;
-rename user mysqluser1@localhost to mysqluser10@localhost;
-#
-# Test that there are no privileges left for mysqluser1.
-#
-connection bug36544_con2;
-# The connection cold be alive but should not be able to
-# access to any of the stored routines or tables.
-call mysqltest1.p1();
-ERROR 42000: execute command denied to user 'mysqluser1'@'localhost' for routine 'mysqltest1.p1'
-select mysqltest1.f1();
-ERROR 42000: execute command denied to user 'mysqluser1'@'localhost' for routine 'mysqltest1.f1'
-select * from mysqltest1.t11;
-ERROR 42000: SELECT command denied to user 'mysqluser1'@'localhost' for table 't11'
-select * from mysqltest1.t22;
-ERROR 42000: SELECT command denied to user 'mysqluser1'@'localhost' for table 't22'
-disconnect bug36544_con2;
-connection default;
-#
-# Now create user with the old name and check that he
-# has not inherited privileges.
-create user mysqluser1@localhost;
-show grants for mysqluser1@localhost;
-Grants for mysqluser1@localhost
-GRANT USAGE ON *.* TO 'mysqluser1'@'localhost'
-select db, routine_name, routine_type, proc_priv from mysql.procs_priv where user='mysqluser1' and host='localhost';
-db routine_name routine_type proc_priv
-select db, table_name, table_priv from mysql.tables_priv where user='mysqluser1' and host='localhost';
-db table_name table_priv
-connect bug36544_con3,localhost,mysqluser1,,;
-# Newly created user should not be able to access to any of the
-# stored routines or tables.
-call mysqltest1.p1();
-ERROR 42000: execute command denied to user 'mysqluser1'@'localhost' for routine 'mysqltest1.p1'
-select mysqltest1.f1();
-ERROR 42000: execute command denied to user 'mysqluser1'@'localhost' for routine 'mysqltest1.f1'
-select * from mysqltest1.t11;
-ERROR 42000: SELECT command denied to user 'mysqluser1'@'localhost' for table 't11'
-select * from mysqltest1.t22;
-ERROR 42000: SELECT command denied to user 'mysqluser1'@'localhost' for table 't22'
-disconnect bug36544_con3;
-connection default;
-#
-# Now check that privileges became associated with a new user
-# name - mysqluser10.
-#
-show grants for mysqluser10@localhost;
-Grants for mysqluser10@localhost
-GRANT USAGE ON *.* TO 'mysqluser10'@'localhost'
-GRANT SELECT ON `mysqltest1`.`t11` TO 'mysqluser10'@'localhost'
-GRANT SELECT ON `mysqltest1`.`t22` TO 'mysqluser10'@'localhost'
-GRANT EXECUTE ON PROCEDURE `mysqltest1`.`p1` TO 'mysqluser10'@'localhost'
-GRANT EXECUTE ON FUNCTION `mysqltest1`.`f1` TO 'mysqluser10'@'localhost'
-select db, routine_name, routine_type, proc_priv from mysql.procs_priv where user='mysqluser10' and host='localhost';
-db routine_name routine_type proc_priv
-mysqltest1 f1 FUNCTION Execute
-mysqltest1 p1 PROCEDURE Execute
-select db, table_name, table_priv from mysql.tables_priv where user='mysqluser10' and host='localhost';
-db table_name table_priv
-mysqltest1 t11 Select
-mysqltest1 t22 Select
-connect bug36544_con4,localhost,mysqluser10,,;
-call mysqltest1.p1();
-select mysqltest1.f1();
-mysqltest1.f1()
-0
-select * from mysqltest1.t11;
-i
-select * from mysqltest1.t22;
-i
-disconnect bug36544_con4;
-connection default;
-#
-# Clean-up.
-drop user mysqluser1@localhost;
-drop user mysqluser10@localhost;
-drop user mysqluser11@localhost;
-drop database mysqltest1;
-End of 5.0 tests
-set names utf8;
-grant select on test.* to юзер_юзер@localhost;
-user()
-юзер_юзер@localhost
-revoke all on test.* from юзер_юзер@localhost;
-drop user юзер_юзер@localhost;
-grant select on test.* to очень_длинный_юзер890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890@localhost;
-ERROR HY000: String 'очень_длинный_юзер890123456789012345678901234567890123' is too long for user name (should be no longer than 80)
-set names default;
-create database mysqltest;
-use mysqltest;
-grant create on mysqltest.* to mysqltest@localhost;
-create table t1 (i INT);
-connect user1,localhost,mysqltest,,mysqltest;
-connection user1;
-insert into t1 values (1);
-ERROR 42000: INSERT command denied to user 'mysqltest'@'localhost' for table 't1'
-create table t2 (i INT);
-create table t4 (i INT);
-connection default;
-grant select, insert on mysqltest.t2 to mysqltest@localhost;
-grant insert on mysqltest.t4 to mysqltest@localhost;
-grant create, insert on mysqltest.t5 to mysqltest@localhost;
-grant create, insert on mysqltest.t6 to mysqltest@localhost;
-flush privileges;
-connection user1;
-insert into t2 values (1);
-create table if not exists t1 select * from t2;
-ERROR 42000: INSERT command denied to user 'mysqltest'@'localhost' for table 't1'
-create table if not exists t3 select * from t2;
-ERROR 42000: INSERT command denied to user 'mysqltest'@'localhost' for table 't3'
-create table if not exists t4 select * from t2;
-Warnings:
-Note 1050 Table 't4' already exists
-create table if not exists t5 select * from t2;
-create table t6 select * from t2;
-create table t7 select * from t2;
-ERROR 42000: INSERT command denied to user 'mysqltest'@'localhost' for table 't7'
-create table t4 select * from t2;
-ERROR 42S01: Table 't4' already exists
-create table t1 select * from t2;
-ERROR 42000: INSERT command denied to user 'mysqltest'@'localhost' for table 't1'
-connection default;
-drop table t1,t2,t4,t5,t6;
-revoke create on mysqltest.* from mysqltest@localhost;
-revoke select, insert on mysqltest.t2 from mysqltest@localhost;
-revoke insert on mysqltest.t4 from mysqltest@localhost;
-revoke create, insert on mysqltest.t5 from mysqltest@localhost;
-revoke create, insert on mysqltest.t6 from mysqltest@localhost;
-drop user mysqltest@localhost;
-disconnect user1;
-drop database mysqltest;
-use test;
-FLUSH PRIVILEGES without procs_priv table.
-RENAME TABLE mysql.procs_priv TO mysql.procs_gone;
-FLUSH PRIVILEGES;
-Assigning privileges without procs_priv table.
-CREATE DATABASE mysqltest1;
-CREATE PROCEDURE mysqltest1.test() SQL SECURITY DEFINER
-SELECT 1;
-CREATE FUNCTION mysqltest1.test() RETURNS INT RETURN 1;
-GRANT EXECUTE ON FUNCTION mysqltest1.test TO mysqltest_1@localhost;
-ERROR 42S02: Table 'mysql.procs_priv' doesn't exist
-GRANT ALL PRIVILEGES ON test.* TO mysqltest_1@localhost;
-CALL mysqltest1.test();
-1
-1
-DROP DATABASE mysqltest1;
-RENAME TABLE mysql.procs_gone TO mysql.procs_priv;
-DROP USER mysqltest_1@localhost;
-FLUSH PRIVILEGES;
-CREATE DATABASE dbbug33464;
-CREATE USER 'userbug33464'@'localhost';
-GRANT CREATE ROUTINE ON dbbug33464.* TO 'userbug33464'@'localhost';
-connect connbug33464, localhost, userbug33464, , dbbug33464;
-
-userbug33464@localhost dbbug33464
-CREATE PROCEDURE sp3(v1 char(20))
-BEGIN
-SELECT * from dbbug33464.t6 where t6.f2= 'xyz';
-END//
-CREATE FUNCTION fn1() returns char(50) SQL SECURITY INVOKER
-BEGIN
-return 1;
-END//
-CREATE FUNCTION fn2() returns char(50) SQL SECURITY DEFINER
-BEGIN
-return 2;
-END//
-disconnect connbug33464;
-connection default;
-USE dbbug33464;
-
-root@localhost dbbug33464
-SELECT fn1();
-fn1()
-1
-SELECT fn2();
-fn2()
-2
-DROP USER 'userbug33464'@'localhost';
-DROP FUNCTION fn1;
-DROP FUNCTION fn2;
-DROP PROCEDURE sp3;
-DROP USER 'userbug33464'@'localhost';
-USE test;
-DROP DATABASE dbbug33464;
-SET @@global.log_bin_trust_function_creators= @old_log_bin_trust_function_creators;
-CREATE USER user1;
-CREATE USER user2;
-GRANT CREATE ON db1.* TO 'user1'@'localhost';
-GRANT CREATE ROUTINE ON db1.* TO 'user1'@'localhost';
-GRANT CREATE ON db1.* TO 'user2'@'%';
-GRANT CREATE ROUTINE ON db1.* TO 'user2'@'%';
-FLUSH PRIVILEGES;
-SHOW GRANTS FOR 'user1'@'localhost';
-Grants for user1@localhost
-GRANT USAGE ON *.* TO 'user1'@'localhost'
-GRANT CREATE, CREATE ROUTINE ON `db1`.* TO 'user1'@'localhost'
-connect con1,localhost,user1,,;
-** Connect as user1 and create a procedure.
-** The creation will imply implicitly assigned
-** EXECUTE and ALTER ROUTINE privileges to
-** the current user user1@localhost.
-SELECT @@GLOBAL.sql_mode;
-@@GLOBAL.sql_mode
-
-SELECT @@SESSION.sql_mode;
-@@SESSION.sql_mode
-
-CREATE DATABASE db1;
-CREATE PROCEDURE db1.proc1(p1 INT)
-BEGIN
-SET @x = 0;
-REPEAT SET @x = @x + 1; UNTIL @x > p1 END REPEAT;
-END ;||
-connect con2,localhost,user2,,;
-** Connect as user2 and create a procedure.
-** Implicitly assignment of privileges will
-** fail because the user2@localhost is an
-** unknown user.
-CREATE PROCEDURE db1.proc2(p1 INT)
-BEGIN
-SET @x = 0;
-REPEAT SET @x = @x + 1; UNTIL @x > p1 END REPEAT;
-END ;||
-Warnings:
-Warning 1404 Failed to grant EXECUTE and ALTER ROUTINE privileges
-connection default;
-SHOW GRANTS FOR 'user1'@'localhost';
-Grants for user1@localhost
-GRANT USAGE ON *.* TO 'user1'@'localhost'
-GRANT CREATE, CREATE ROUTINE ON `db1`.* TO 'user1'@'localhost'
-GRANT EXECUTE, ALTER ROUTINE ON PROCEDURE `db1`.`proc1` TO 'user1'@'localhost'
-SHOW GRANTS FOR 'user2';
-Grants for user2@%
-GRANT USAGE ON *.* TO 'user2'@'%'
-GRANT CREATE, CREATE ROUTINE ON `db1`.* TO 'user2'@'%'
-disconnect con1;
-disconnect con2;
-DROP PROCEDURE db1.proc1;
-DROP PROCEDURE db1.proc2;
-REVOKE ALL ON db1.* FROM 'user1'@'localhost';
-REVOKE ALL ON db1.* FROM 'user2'@'%';
-DROP USER 'user1';
-DROP USER 'user1'@'localhost';
-DROP USER 'user2';
-DROP DATABASE db1;
-#
-# Bug #25863 No database selected error, but documentation
-# says * for global allowed
-#
-connect conn1,localhost,root,,*NO-ONE*;
-GRANT ALL ON * TO mysqltest_1;
-ERROR 3D000: No database selected
-GRANT ALL ON *.* TO mysqltest_1;
-SHOW GRANTS FOR mysqltest_1;
-Grants for mysqltest_1@%
-GRANT ALL PRIVILEGES ON *.* TO 'mysqltest_1'@'%'
-DROP USER mysqltest_1;
-USE test;
-GRANT ALL ON * TO mysqltest_1;
-SHOW GRANTS FOR mysqltest_1;
-Grants for mysqltest_1@%
-GRANT USAGE ON *.* TO 'mysqltest_1'@'%'
-GRANT ALL PRIVILEGES ON `test`.* TO 'mysqltest_1'@'%'
-DROP USER mysqltest_1;
-GRANT ALL ON *.* TO mysqltest_1;
-SHOW GRANTS FOR mysqltest_1;
-Grants for mysqltest_1@%
-GRANT ALL PRIVILEGES ON *.* TO 'mysqltest_1'@'%'
-DROP USER mysqltest_1;
-connection default;
-disconnect conn1;
-CREATE DATABASE db1;
-CREATE DATABASE db2;
-GRANT SELECT ON db1.* to 'testbug'@localhost;
-USE db2;
-CREATE TABLE t1 (a INT);
-USE test;
-connect con1,localhost,testbug,,db1;
-SELECT * FROM `../db2/tb2`;
-ERROR 42S02: Table 'db1.../db2/tb2' doesn't exist
-SELECT * FROM `../db2`.tb2;
-ERROR 42000: SELECT command denied to user 'testbug'@'localhost' for table 'tb2'
-SELECT * FROM `#mysql50#/../db2/tb2`;
-ERROR 42000: Incorrect table name '#mysql50#/../db2/tb2'
-connection default;
-disconnect con1;
-DROP USER 'testbug'@localhost;
-DROP TABLE db2.t1;
-DROP DATABASE db1;
-DROP DATABASE db2;
-#
-# Bug #36742
-#
-grant usage on Foo.* to myuser@Localhost identified by 'foo';
-grant select on Foo.* to myuser@localhost;
-select host,user from mysql.user where User='myuser';
-host user
-localhost myuser
-revoke select on Foo.* from myuser@localhost;
-delete from mysql.user where User='myuser';
-flush privileges;
-#########################################################################
-#
-# Bug#38347: ALTER ROUTINE privilege allows SHOW CREATE TABLE.
-#
-#########################################################################
-
-# --
-# -- Prepare the environment.
-# --
-DELETE FROM mysql.user WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.db WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.tables_priv WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.columns_priv WHERE User LIKE 'mysqltest_%';
-FLUSH PRIVILEGES;
-DROP DATABASE IF EXISTS mysqltest_db1;
-CREATE DATABASE mysqltest_db1;
-CREATE TABLE mysqltest_db1.t1(a INT);
-
-# --
-# -- Check that global privileges don't allow SHOW CREATE TABLE.
-# --
-GRANT EVENT ON mysqltest_db1.* TO mysqltest_u1@localhost;
-GRANT CREATE TEMPORARY TABLES ON mysqltest_db1.* TO mysqltest_u1@localhost;
-GRANT LOCK TABLES ON mysqltest_db1.* TO mysqltest_u1@localhost;
-GRANT ALTER ROUTINE ON mysqltest_db1.* TO mysqltest_u1@localhost;
-GRANT CREATE ROUTINE ON mysqltest_db1.* TO mysqltest_u1@localhost;
-GRANT EXECUTE ON mysqltest_db1.* TO mysqltest_u1@localhost;
-GRANT FILE ON *.* TO mysqltest_u1@localhost;
-GRANT CREATE USER ON *.* TO mysqltest_u1@localhost;
-GRANT PROCESS ON *.* TO mysqltest_u1@localhost;
-GRANT RELOAD ON *.* TO mysqltest_u1@localhost;
-GRANT REPLICATION CLIENT ON *.* TO mysqltest_u1@localhost;
-GRANT REPLICATION SLAVE ON *.* TO mysqltest_u1@localhost;
-GRANT SHOW DATABASES ON *.* TO mysqltest_u1@localhost;
-GRANT SHUTDOWN ON *.* TO mysqltest_u1@localhost;
-GRANT USAGE ON *.* TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT RELOAD, SHUTDOWN, PROCESS, FILE, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT, CREATE USER ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE ROUTINE, ALTER ROUTINE, EVENT ON `mysqltest_db1`.* TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-ERROR 42000: SHOW command denied to user 'mysqltest_u1'@'localhost' for table 't1'
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that global SELECT allows SHOW CREATE TABLE.
-# --
-
-GRANT SELECT ON mysqltest_db1.* TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT SELECT ON `mysqltest_db1`.* TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that global INSERT allows SHOW CREATE TABLE.
-# --
-
-GRANT INSERT ON mysqltest_db1.* TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT INSERT ON `mysqltest_db1`.* TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that global UPDATE allows SHOW CREATE TABLE.
-# --
-
-GRANT UPDATE ON mysqltest_db1.* TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT UPDATE ON `mysqltest_db1`.* TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that global DELETE allows SHOW CREATE TABLE.
-# --
-
-GRANT DELETE ON mysqltest_db1.* TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT DELETE ON `mysqltest_db1`.* TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that global CREATE allows SHOW CREATE TABLE.
-# --
-
-GRANT CREATE ON mysqltest_db1.* TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT CREATE ON `mysqltest_db1`.* TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that global DROP allows SHOW CREATE TABLE.
-# --
-
-GRANT DROP ON mysqltest_db1.* TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT DROP ON `mysqltest_db1`.* TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that global ALTER allows SHOW CREATE TABLE.
-# --
-
-GRANT ALTER ON mysqltest_db1.* TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT ALTER ON `mysqltest_db1`.* TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that global INDEX allows SHOW CREATE TABLE.
-# --
-
-GRANT INDEX ON mysqltest_db1.* TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT INDEX ON `mysqltest_db1`.* TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that global REFERENCES allows SHOW CREATE TABLE.
-# --
-
-GRANT REFERENCES ON mysqltest_db1.* TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT REFERENCES ON `mysqltest_db1`.* TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that global GRANT OPTION allows SHOW CREATE TABLE.
-# --
-
-GRANT GRANT OPTION ON mysqltest_db1.* TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT USAGE ON `mysqltest_db1`.* TO 'mysqltest_u1'@'localhost' WITH GRANT OPTION
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that global CREATE VIEW allows SHOW CREATE TABLE.
-# --
-
-GRANT CREATE VIEW ON mysqltest_db1.* TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT CREATE VIEW ON `mysqltest_db1`.* TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that global SHOW VIEW allows SHOW CREATE TABLE.
-# --
-
-GRANT SHOW VIEW ON mysqltest_db1.* TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT SHOW VIEW ON `mysqltest_db1`.* TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that table-level SELECT allows SHOW CREATE TABLE.
-# --
-
-GRANT SELECT ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT SELECT ON `mysqltest_db1`.`t1` TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that table-level INSERT allows SHOW CREATE TABLE.
-# --
-
-GRANT INSERT ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT INSERT ON `mysqltest_db1`.`t1` TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that table-level UPDATE allows SHOW CREATE TABLE.
-# --
-
-GRANT UPDATE ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT UPDATE ON `mysqltest_db1`.`t1` TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that table-level DELETE allows SHOW CREATE TABLE.
-# --
-
-GRANT DELETE ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT DELETE ON `mysqltest_db1`.`t1` TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that table-level CREATE allows SHOW CREATE TABLE.
-# --
-
-GRANT CREATE ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT CREATE ON `mysqltest_db1`.`t1` TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that table-level DROP allows SHOW CREATE TABLE.
-# --
-
-GRANT DROP ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT DROP ON `mysqltest_db1`.`t1` TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that table-level ALTER allows SHOW CREATE TABLE.
-# --
-
-GRANT ALTER ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT ALTER ON `mysqltest_db1`.`t1` TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that table-level INDEX allows SHOW CREATE TABLE.
-# --
-
-GRANT INDEX ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT INDEX ON `mysqltest_db1`.`t1` TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that table-level REFERENCES allows SHOW CREATE TABLE.
-# --
-
-GRANT REFERENCES ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT REFERENCES ON `mysqltest_db1`.`t1` TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that table-level GRANT OPTION allows SHOW CREATE TABLE.
-# --
-
-GRANT GRANT OPTION ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT USAGE ON `mysqltest_db1`.`t1` TO 'mysqltest_u1'@'localhost' WITH GRANT OPTION
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that table-level CREATE VIEW allows SHOW CREATE TABLE.
-# --
-
-GRANT CREATE VIEW ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT CREATE VIEW ON `mysqltest_db1`.`t1` TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Check that table-level SHOW VIEW allows SHOW CREATE TABLE.
-# --
-
-GRANT SHOW VIEW ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT SHOW VIEW ON `mysqltest_db1`.`t1` TO 'mysqltest_u1'@'localhost'
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-connection con1;
-
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection default;
-disconnect con1;
-
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-
-# --
-# -- Cleanup.
-# --
-
-DROP DATABASE mysqltest_db1;
-DROP USER mysqltest_u1@localhost;
-
-# End of Bug#38347.
-
-#
-# BUG#11759114 - '51401: GRANT TREATS NONEXISTENT FUNCTIONS/PRIVILEGES
-# DIFFERENTLY'.
-#
-drop database if exists mysqltest_db1;
-create database mysqltest_db1;
-create user mysqltest_u1;
-# Both GRANT statements below should fail with the same error.
-grant execute on function mysqltest_db1.f1 to mysqltest_u1;
-ERROR 42000: FUNCTION or PROCEDURE f1 does not exist
-grant execute on procedure mysqltest_db1.p1 to mysqltest_u1;
-ERROR 42000: FUNCTION or PROCEDURE p1 does not exist
-# Let us show that GRANT behaviour for routines is consistent
-# with GRANT behaviour for tables. Attempt to grant privilege
-# on non-existent table also results in an error.
-grant select on mysqltest_db1.t1 to mysqltest_u1;
-ERROR 42S02: Table 'mysqltest_db1.t1' doesn't exist
-show grants for mysqltest_u1;
-Grants for mysqltest_u1@%
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'%'
-drop database mysqltest_db1;
-drop user mysqltest_u1;
-#
-# Bug#12766319 - 61865: RENAME USER DOES NOT WORK CORRECTLY -
-# REQUIRES FLUSH PRIVILEGES
-#
-CREATE USER foo@'127.0.0.1';
-GRANT ALL ON *.* TO foo@'127.0.0.1';
-# First attempt, should connect successfully
-connect conn1, '127.0.0.1', foo,,test;
-SELECT user(), current_user();
-user() current_user()
-foo@localhost foo@127.0.0.1
-# Rename the user
-RENAME USER foo@'127.0.0.1' to foo@'127.0.0.0/255.0.0.0';
-# Second attempt, should connect successfully as its valid mask
-# This was failing without fix
-connect conn2, '127.0.0.1', foo,,test;
-SELECT user(), current_user();
-user() current_user()
-foo@localhost foo@127.0.0.0/255.0.0.0
-# Rename the user back to original
-RENAME USER foo@'127.0.0.0/255.0.0.0' to foo@'127.0.0.1';
-# Third attempt, should connect successfully
-connect conn3, '127.0.0.1', foo,,test;
-SELECT user(), current_user();
-user() current_user()
-foo@localhost foo@127.0.0.1
-# Clean-up
-connection default;
-disconnect conn1;
-disconnect conn2;
-disconnect conn3;
-DROP USER foo@'127.0.0.1';
-# End of Bug#12766319
-#
-# Bug#11756966 - 48958: STORED PROCEDURES CAN BE LEVERAGED TO BYPASS
-# DATABASE SECURITY
-#
-DROP DATABASE IF EXISTS secret;
-DROP DATABASE IF EXISTS no_such_db;
-CREATE DATABASE secret;
-GRANT USAGE ON *.* TO untrusted@localhost;
-connect con1, localhost, untrusted;
-SHOW GRANTS;
-Grants for untrusted@localhost
-GRANT USAGE ON *.* TO 'untrusted'@'localhost'
-SHOW DATABASES;
-Database
-information_schema
-test
-# Both statements below should fail with the same error.
-# They used to give different errors, thereby
-# hinting that the secret database exists.
-CREATE PROCEDURE no_such_db.foo() BEGIN END;
-ERROR 42000: Access denied for user 'untrusted'@'localhost' to database 'no_such_db'
-CREATE PROCEDURE secret.peek_at_secret() BEGIN END;
-ERROR 42000: Access denied for user 'untrusted'@'localhost' to database 'secret'
-connection default;
-disconnect con1;
-DROP USER untrusted@localhost;
-DROP DATABASE secret;
-set GLOBAL sql_mode=default;
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10134 Add full support for DEFAULT
-#
-CREATE TABLE t1 (a VARCHAR(30) DEFAULT USER());
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(30) DEFAULT user()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES ();
-GRANT ALL PRIVILEGES ON test.* TO dummy@localhost IDENTIFIED BY 'pwd';
-connect conn1,localhost,dummy,pwd,test;
-connection conn1;
-INSERT INTO t1 VALUES ();
-connection default;
-disconnect conn1;
-INSERT INTO t1 VALUES ();
-SELECT * FROM t1;
-a
-root@localhost
-dummy@localhost
-root@localhost
-DROP TABLE t1;
-DROP USER dummy@localhost;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/grant2.result b/mysql-test/r/grant2.result
deleted file mode 100644
index 2ccc01d225a..00000000000
--- a/mysql-test/r/grant2.result
+++ /dev/null
@@ -1,948 +0,0 @@
-set GLOBAL sql_mode="";
-set LOCAL sql_mode="";
-SET NAMES binary;
-drop database if exists mysqltest;
-drop database if exists mysqltest_1;
-delete from mysql.user where user like 'mysqltest\_%';
-delete from mysql.db where user like 'mysqltest\_%';
-delete from mysql.tables_priv where user like 'mysqltest\_%';
-delete from mysql.columns_priv where user like 'mysqltest\_%';
-flush privileges;
-grant all privileges on `my\_1`.* to mysqltest_1@localhost with grant option;
-grant create user on *.* to mysqltest_1@localhost;
-create user mysqltest_2@localhost;
-connect user_a,localhost,mysqltest_1,,;
-connection user_a;
-grant select on `my\_1`.* to mysqltest_2@localhost;
-grant select on `my\_1`.* to mysqltest_2@localhost identified by 'pass';
-ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'mysql'
-disconnect user_a;
-connection default;
-grant update on mysql.* to mysqltest_1@localhost;
-connect user_b,localhost,mysqltest_1,,;
-connection user_b;
-grant select on `my\_1`.* to mysqltest_2@localhost identified by 'pass';
-grant select on `my\_1`.* to mysqltest_3@localhost;
-disconnect user_b;
-connection default;
-grant insert on mysql.* to mysqltest_1@localhost;
-connect user_c,localhost,mysqltest_1,,;
-connection user_c;
-grant select on `my\_1`.* to mysqltest_3@localhost;
-grant select on `my\_1`.* to mysqltest_4@localhost identified by 'pass';
-disconnect user_c;
-connection default;
-delete from mysql.user where user like 'mysqltest\_%';
-delete from mysql.db where user like 'mysqltest\_%';
-delete from mysql.tables_priv where user like 'mysqltest\_%';
-delete from mysql.columns_priv where user like 'mysqltest\_%';
-flush privileges;
-grant all privileges on `my\_%`.* to mysqltest_1@localhost with grant option;
-grant create user on *.* to mysqltest_1@localhost;
-connect user1,localhost,mysqltest_1,,;
-connection user1;
-select current_user();
-current_user()
-mysqltest_1@localhost
-grant all privileges on `my\_1`.* to mysqltest_2@localhost with grant option;
-grant all privileges on `my_%`.* to mysqltest_3@localhost with grant option;
-ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'my_%'
-set @@sql_mode='NO_AUTO_CREATE_USER';
-select @@sql_mode;
-@@sql_mode
-NO_AUTO_CREATE_USER
-grant select on `my\_1`.* to mysqltest_4@localhost with grant option;
-ERROR 28000: Can't find any matching row in the user table
-grant select on `my\_1`.* to mysqltest_4@localhost identified by 'mypass'
-with grant option;
-disconnect user1;
-connection default;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT CREATE USER ON *.* TO 'mysqltest_1'@'localhost'
-GRANT ALL PRIVILEGES ON `my\_%`.* TO 'mysqltest_1'@'localhost' WITH GRANT OPTION
-show grants for mysqltest_2@localhost;
-Grants for mysqltest_2@localhost
-GRANT USAGE ON *.* TO 'mysqltest_2'@'localhost'
-GRANT ALL PRIVILEGES ON `my\_1`.* TO 'mysqltest_2'@'localhost' WITH GRANT OPTION
-show grants for mysqltest_3@localhost;
-ERROR 42000: There is no such grant defined for user 'mysqltest_3' on host 'localhost'
-delete from mysql.user where user like 'mysqltest\_%';
-delete from mysql.db where user like 'mysqltest\_%';
-flush privileges;
-create database mysqltest_1;
-grant all privileges on `mysqltest\_1`.* to mysqltest_1@localhost with grant option;
-connect user2,localhost,mysqltest_1,,;
-connection user2;
-select current_user();
-current_user()
-mysqltest_1@localhost
-show databases;
-Database
-information_schema
-mysqltest_1
-test
-grant all privileges on `mysqltest_1`.* to mysqltest_1@localhost with grant option;
-ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'mysqltest_1'
-disconnect user2;
-connection default;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT ALL PRIVILEGES ON `mysqltest\_1`.* TO 'mysqltest_1'@'localhost' WITH GRANT OPTION
-delete from mysql.user where user like 'mysqltest\_%';
-delete from mysql.db where user like 'mysqltest\_%';
-drop database mysqltest_1;
-flush privileges;
-create database mysqltest;
-grant INSERT, SELECT on mysqltest.* to mysqltest_1@localhost;
-flush privileges;
-use mysqltest;
-create table t1 (id int primary key, data varchar(255));
-connect mrbad, localhost, mysqltest_1,,mysqltest;
-connection mrbad;
-show grants for current_user();
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT, INSERT ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-insert into t1 values (1, 'I can''t change it!');
-update t1 set data='I can change it!' where id = 1;
-ERROR 42000: UPDATE command denied to user 'mysqltest_1'@'localhost' for table 't1'
-insert into t1 values (1, 'XXX') on duplicate key update data= 'I can change it!';
-ERROR 42000: UPDATE command denied to user 'mysqltest_1'@'localhost' for table 't1'
-select * from t1;
-id data
-1 I can't change it!
-disconnect mrbad;
-connection default;
-drop table t1;
-delete from mysql.user where user like 'mysqltest\_%';
-delete from mysql.db where user like 'mysqltest\_%';
-flush privileges;
-create table t1 (a int, b int);
-grant select (a) on t1 to mysqltest_1@localhost with grant option;
-connect mrugly, localhost, mysqltest_1,,mysqltest;
-connection mrugly;
-grant select (a,b) on t1 to mysqltest_2@localhost;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'b' in table 't1'
-grant select on t1 to mysqltest_3@localhost;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 't1'
-disconnect mrugly;
-connection default;
-drop table t1;
-delete from mysql.user where user like 'mysqltest\_%';
-delete from mysql.db where user like 'mysqltest\_%';
-delete from mysql.tables_priv where user like 'mysqltest\_%';
-delete from mysql.columns_priv where user like 'mysqltest\_%';
-flush privileges;
-drop database mysqltest;
-use test;
-create user mysqltest_1@host1;
-create user mysqltest_2@host2;
-create user mysqltest_3@host3;
-create user mysqltest_4@host4;
-create user mysqltest_5@host5;
-create user mysqltest_6@host6;
-create user mysqltest_7@host7;
-flush privileges;
-drop user mysqltest_3@host3;
-connect con8,127.0.0.1,root,,test,$MASTER_MYPORT,;
-disconnect con8;
-connection default;
-drop user mysqltest_1@host1, mysqltest_2@host2, mysqltest_4@host4,
-mysqltest_5@host5, mysqltest_6@host6, mysqltest_7@host7;
-connect con9,127.0.0.1,root,,test,$MASTER_MYPORT,;
-disconnect con9;
-connection default;
-create database mysqltest_1;
-grant select, insert, update on `mysqltest\_1`.* to mysqltest_1@localhost;
-connect con10,localhost,mysqltest_1,,;
-connection con10;
-set sql_log_off = 1;
-ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
-set sql_log_bin = 0;
-ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
-disconnect con10;
-connection default;
-delete from mysql.user where user like 'mysqltest\_1';
-delete from mysql.db where user like 'mysqltest\_1';
-drop database mysqltest_1;
-flush privileges;
-set sql_mode='maxdb';
-drop table if exists t1, t2;
-create table t1(c1 int);
-create table t2(c1 int, c2 int);
-create user 'mysqltest_1';
-create user 'mysqltest_1';
-ERROR HY000: Operation CREATE USER failed for 'mysqltest_1'@'%'
-create user 'mysqltest_2' identified by 'Mysqltest-2';
-create user 'mysqltest_3' identified by password 'fffffffffffffffffffffffffffffffffffffffff';
-grant select on *.* to 'mysqltest_2';
-grant insert on test.* to 'mysqltest_2';
-grant update on test.t1 to 'mysqltest_2';
-grant update (c2) on test.t2 to 'mysqltest_2';
-select host,user,password from mysql.user where user like 'mysqltest_%' order by host,user,password;
-host user password
-% mysqltest_1
-% mysqltest_2 *BD447CBA355AF58578D3AE33BA2E2CD388BA08D1
-% mysqltest_3 fffffffffffffffffffffffffffffffffffffffff
-select host,db,user from mysql.db where user like 'mysqltest_%' order by host,db,user;
-host db user
-% test mysqltest_2
-select host,db,user,table_name from mysql.tables_priv where user like 'mysqltest_%' order by host,db,user,table_name;
-host db user table_name
-% test mysqltest_2 t1
-% test mysqltest_2 t2
-select host,db,user,table_name,column_name from mysql.columns_priv where user like 'mysqltest_%' order by host,db,user,table_name,column_name;
-host db user table_name column_name
-% test mysqltest_2 t2 c2
-show grants for 'mysqltest_1';
-Grants for mysqltest_1@%
-GRANT USAGE ON *.* TO 'mysqltest_1'@'%'
-show grants for 'mysqltest_2';
-Grants for mysqltest_2@%
-GRANT SELECT ON *.* TO 'mysqltest_2'@'%' IDENTIFIED BY PASSWORD '*BD447CBA355AF58578D3AE33BA2E2CD388BA08D1'
-GRANT INSERT ON "test".* TO 'mysqltest_2'@'%'
-GRANT UPDATE (c2) ON "test"."t2" TO 'mysqltest_2'@'%'
-GRANT UPDATE ON "test"."t1" TO 'mysqltest_2'@'%'
-drop user 'mysqltest_1';
-select host,user,password from mysql.user where user like 'mysqltest_%' order by host,user,password;
-host user password
-% mysqltest_2 *BD447CBA355AF58578D3AE33BA2E2CD388BA08D1
-% mysqltest_3 fffffffffffffffffffffffffffffffffffffffff
-select host,db,user from mysql.db where user like 'mysqltest_%' order by host,db,user;
-host db user
-% test mysqltest_2
-select host,db,user,table_name from mysql.tables_priv where user like 'mysqltest_%' order by host,db,user,table_name;
-host db user table_name
-% test mysqltest_2 t1
-% test mysqltest_2 t2
-select host,db,user,table_name,column_name from mysql.columns_priv where user like 'mysqltest_%' order by host,db,user,table_name,column_name;
-host db user table_name column_name
-% test mysqltest_2 t2 c2
-show grants for 'mysqltest_1';
-ERROR 42000: There is no such grant defined for user 'mysqltest_1' on host '%'
-rename user 'mysqltest_2' to 'mysqltest_1';
-select host,user,password from mysql.user where user like 'mysqltest_%' order by host,user,password;
-host user password
-% mysqltest_1 *BD447CBA355AF58578D3AE33BA2E2CD388BA08D1
-% mysqltest_3 fffffffffffffffffffffffffffffffffffffffff
-select host,db,user from mysql.db where user like 'mysqltest_%' order by host,db,user;
-host db user
-% test mysqltest_1
-select host,db,user,table_name from mysql.tables_priv where user like 'mysqltest_%' order by host,db,user,table_name;
-host db user table_name
-% test mysqltest_1 t1
-% test mysqltest_1 t2
-select host,db,user,table_name,column_name from mysql.columns_priv where user like 'mysqltest_%' order by host,db,user,table_name,column_name;
-host db user table_name column_name
-% test mysqltest_1 t2 c2
-show grants for 'mysqltest_1';
-Grants for mysqltest_1@%
-GRANT SELECT ON *.* TO 'mysqltest_1'@'%' IDENTIFIED BY PASSWORD '*BD447CBA355AF58578D3AE33BA2E2CD388BA08D1'
-GRANT INSERT ON "test".* TO 'mysqltest_1'@'%'
-GRANT UPDATE (c2) ON "test"."t2" TO 'mysqltest_1'@'%'
-GRANT UPDATE ON "test"."t1" TO 'mysqltest_1'@'%'
-drop user 'mysqltest_1', 'mysqltest_3';
-drop user 'mysqltest_1';
-ERROR HY000: Operation DROP USER failed for 'mysqltest_1'@'%'
-drop table t1, t2;
-insert into mysql.db set user='mysqltest_1', db='%', host='%';
-flush privileges;
-show grants for 'mysqltest_1';
-ERROR 42000: There is no such grant defined for user 'mysqltest_1' on host '%'
-revoke all privileges, grant option from 'mysqltest_1';
-ERROR HY000: Can't revoke all privileges for one or more of the requested users
-drop user 'mysqltest_1';
-select host,db,user from mysql.db where user = 'mysqltest_1' order by host,db,user;
-host db user
-insert into mysql.tables_priv set host='%', db='test', user='mysqltest_1', table_name='t1';
-flush privileges;
-show grants for 'mysqltest_1';
-ERROR 42000: There is no such grant defined for user 'mysqltest_1' on host '%'
-drop user 'mysqltest_1';
-select host,db,user,table_name from mysql.tables_priv where user = 'mysqltest_1' order by host,db,user,table_name;
-host db user table_name
-insert into mysql.columns_priv set host='%', db='test', user='mysqltest_1', table_name='t1', column_name='c1';
-flush privileges;
-show grants for 'mysqltest_1';
-ERROR 42000: There is no such grant defined for user 'mysqltest_1' on host '%'
-drop user 'mysqltest_1';
-select host,db,user,table_name,column_name from mysql.columns_priv where user = 'mysqltest_1' order by host,db,user,table_name,column_name;
-host db user table_name column_name
-create user 'mysqltest_1', 'mysqltest_2', 'mysqltest_3';
-drop user 'mysqltest_1', 'mysqltest_2', 'mysqltest_3';
-create user 'mysqltest_1', 'mysqltest_2' identified by 'Mysqltest-2', 'mysqltest_3' identified by password 'fffffffffffffffffffffffffffffffffffffffff';
-rename user 'mysqltest_1' to 'mysqltest_1a', 'mysqltest_2' TO 'mysqltest_2a', 'mysqltest_3' TO 'mysqltest_3a';
-drop user 'mysqltest_1', 'mysqltest_2', 'mysqltest_3';
-ERROR HY000: Operation DROP USER failed for 'mysqltest_1'@'%','mysqltest_2'@'%','mysqltest_3'@'%'
-drop user 'mysqltest_1a', 'mysqltest_2a', 'mysqltest_3a';
-create user 'mysqltest_1', 'mysqltest_2', 'mysqltest_3';
-create user 'mysqltest_1a', 'mysqltest_2', 'mysqltest_3a';
-ERROR HY000: Operation CREATE USER failed for 'mysqltest_2'@'%'
-rename user 'mysqltest_1a' to 'mysqltest_1b', 'mysqltest_2a' TO 'mysqltest_2b', 'mysqltest_3a' TO 'mysqltest_3b';
-ERROR HY000: Operation RENAME USER failed for 'mysqltest_2a'@'%'
-drop user 'mysqltest_1', 'mysqltest_2', 'mysqltest_3';
-drop user 'mysqltest_1b', 'mysqltest_2b', 'mysqltest_3b';
-ERROR HY000: Operation DROP USER failed for 'mysqltest_2b'@'%'
-create user 'mysqltest_2' identified by 'Mysqltest-2';
-drop user 'mysqltest_2' identified by 'Mysqltest-2';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'identified by 'Mysqltest-2'' at line 1
-drop user 'mysqltest_2';
-create user '%@b'@'b';
-show grants for '%@b'@'b';
-Grants for %@b@b
-GRANT USAGE ON *.* TO '%@b'@'b'
-grant select on mysql.* to '%@b'@'b';
-show grants for '%@b'@'b';
-Grants for %@b@b
-GRANT USAGE ON *.* TO '%@b'@'b'
-GRANT SELECT ON "mysql".* TO '%@b'@'b'
-rename user '%@b'@'b' to '%@a'@'a';
-show grants for '%@b'@'b';
-ERROR 42000: There is no such grant defined for user '%@b' on host 'b'
-show grants for '%@a'@'a';
-Grants for %@a@a
-GRANT USAGE ON *.* TO '%@a'@'a'
-GRANT SELECT ON "mysql".* TO '%@a'@'a'
-drop user '%@a'@'a';
-create user mysqltest_2@localhost;
-grant create user on *.* to mysqltest_2@localhost;
-connect user3,localhost,mysqltest_2,,;
-connection user3;
-select host,user,password from mysql.user where user like 'mysqltest_%' order by host,user,password;
-ERROR 42000: SELECT command denied to user 'mysqltest_2'@'localhost' for table 'user'
-create user mysqltest_A@'%';
-rename user mysqltest_A@'%' to mysqltest_B@'%';
-drop user mysqltest_B@'%';
-disconnect user3;
-connection default;
-drop user mysqltest_2@localhost;
-create user mysqltest_3@localhost;
-grant INSERT,DELETE,UPDATE on mysql.* to mysqltest_3@localhost;
-connect user4,localhost,mysqltest_3,,;
-connection user4;
-show grants;
-Grants for mysqltest_3@localhost
-GRANT USAGE ON *.* TO 'mysqltest_3'@'localhost'
-GRANT INSERT, UPDATE, DELETE ON `mysql`.* TO 'mysqltest_3'@'localhost'
-select host,user,password from mysql.user where user like 'mysqltest_%' order by host,user,password;
-ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table 'user'
-insert into mysql.user set host='%', user='mysqltest_B';
-Warnings:
-Warning 1364 Field 'ssl_cipher' doesn't have a default value
-Warning 1364 Field 'x509_issuer' doesn't have a default value
-Warning 1364 Field 'x509_subject' doesn't have a default value
-Warning 1364 Field 'authentication_string' doesn't have a default value
-create user mysqltest_A@'%';
-rename user mysqltest_B@'%' to mysqltest_C@'%';
-drop user mysqltest_C@'%';
-drop user mysqltest_A@'%';
-disconnect user4;
-connection default;
-drop user mysqltest_3@localhost;
-set @@sql_mode='';
-create database mysqltest_1;
-create table mysqltest_1.t1 (i int);
-insert into mysqltest_1.t1 values (1),(2),(3);
-GRANT ALL ON mysqltest_1.t1 TO mysqltest_1@'127.0.0.0/255.0.0.0';
-connect n1,127.0.0.1,mysqltest_1,,mysqltest_1,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection n1;
-show grants for current_user();
-Grants for mysqltest_1@127.0.0.0/255.0.0.0
-GRANT USAGE ON *.* TO 'mysqltest_1'@'127.0.0.0/255.0.0.0'
-GRANT ALL PRIVILEGES ON `mysqltest_1`.`t1` TO 'mysqltest_1'@'127.0.0.0/255.0.0.0'
-select * from t1;
-i
-1
-2
-3
-disconnect n1;
-connection default;
-REVOKE ALL ON mysqltest_1.t1 FROM mysqltest_1@'127.0.0.0/255.0.0.0';
-delete from mysql.user where user like 'mysqltest\_1';
-flush privileges;
-drop table mysqltest_1.t1;
-grant all on mysqltest_1.* to mysqltest_1@'127.0.0.1';
-connect b12302,127.0.0.1,mysqltest_1,,mysqltest_1,$MASTER_MYPORT,;
-connection b12302;
-select current_user();
-current_user()
-mysqltest_1@127.0.0.1
-set password = password('changed');
-disconnect b12302;
-connection default;
-select host, length(password) from mysql.user where user like 'mysqltest\_1';
-host length(password)
-127.0.0.1 41
-revoke all on mysqltest_1.* from mysqltest_1@'127.0.0.1';
-delete from mysql.user where user like 'mysqltest\_1';
-flush privileges;
-grant all on mysqltest_1.* to mysqltest_1@'127.0.0.0/255.0.0.0';
-connect b12302_2,127.0.0.1,mysqltest_1,,mysqltest_1,$MASTER_MYPORT,;
-connection b12302_2;
-select current_user();
-current_user()
-mysqltest_1@127.0.0.0/255.0.0.0
-set password = password('changed');
-disconnect b12302_2;
-connection default;
-select host, length(password) from mysql.user where user like 'mysqltest\_1';
-host length(password)
-127.0.0.0/255.0.0.0 41
-revoke all on mysqltest_1.* from mysqltest_1@'127.0.0.0/255.0.0.0';
-delete from mysql.user where user like 'mysqltest\_1';
-flush privileges;
-drop database mysqltest_1;
-connect n5,localhost,test,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection n5;
-set password = password("changed");
-ERROR 42000: You are using MariaDB as an anonymous user and anonymous users are not allowed to modify user settings
-disconnect n5;
-connection default;
-connect con2root,localhost,root,,;
-connect con3root,localhost,root,,;
-connection default;
-lock table mysql.user write;
-connection con2root;
-flush privileges;
-connection con3root;
-grant all on *.* to 'mysqltest_1'@'localhost';
-connection default;
-unlock tables;
-connection con2root;
-connection con3root;
-connection default;
-lock table mysql.user write;
-connection con2root;
-set password for 'mysqltest_1'@'localhost' = password('');
-connection con3root;
-revoke all on *.* from 'mysqltest_1'@'localhost';
-connection default;
-unlock tables;
-connection con2root;
-connection con3root;
-connection default;
-drop user 'mysqltest_1'@'localhost';
-disconnect con2root;
-disconnect con3root;
-create database TESTDB;
-create table t2(a int);
-create temporary table t1 as select * from mysql.user;
-delete from mysql.user where host='localhost';
-INSERT INTO mysql.user (host, user, password) VALUES
-('%','mysqltest_1',password('password'));
-Warnings:
-Warning 1364 Field 'ssl_cipher' doesn't have a default value
-Warning 1364 Field 'x509_issuer' doesn't have a default value
-Warning 1364 Field 'x509_subject' doesn't have a default value
-Warning 1364 Field 'authentication_string' doesn't have a default value
-INSERT INTO mysql.db (host, db, user, select_priv) VALUES
-('%','TESTDB','mysqltest_1','Y');
-FLUSH PRIVILEGES;
-connect con1,localhost,mysqltest_1,password,TESTDB;
-create database TEStdb;
-Got one of the listed errors
-connection default;
-disconnect con1;
-delete from mysql.user;
-delete from mysql.db where host='%' and user='mysqltest_1' and db='TESTDB';
-insert into mysql.user select * from t1;
-drop table t1, t2;
-drop database TESTDB;
-flush privileges;
-SET @old_log_bin_trust_function_creators= @@global.log_bin_trust_function_creators;
-SET GLOBAL log_bin_trust_function_creators = 1;
-GRANT ALL PRIVILEGES ON test.* TO `a@`@localhost;
-GRANT EXECUTE ON * TO `a@`@localhost;
-connect bug13310,localhost,'a@',,test;
-connection bug13310;
-CREATE TABLE t2 (s1 INT);
-INSERT INTO t2 VALUES (1);
-DROP FUNCTION IF EXISTS f2;
-CREATE FUNCTION f2 () RETURNS INT
-BEGIN DECLARE v INT; SELECT s1 FROM t2 INTO v; RETURN v; END//
-SELECT f2();
-f2()
-1
-DROP FUNCTION f2;
-DROP TABLE t2;
-disconnect bug13310;
-connection default;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM `a@`@localhost;
-DROP USER `a@`@localhost;
-SET @@global.log_bin_trust_function_creators= @old_log_bin_trust_function_creators;
-drop database if exists mysqltest_1;
-drop database if exists mysqltest_2;
-drop user mysqltest_u1@localhost;
-create database mysqltest_1;
-create database mysqltest_2;
-grant all on mysqltest_1.* to mysqltest_u1@localhost;
-use mysqltest_2;
-create table t1 (i int);
-connect user1,localhost,mysqltest_u1,,mysqltest_1;
-connection user1;
-show create table mysqltest_2.t1;
-ERROR 42000: SHOW command denied to user 'mysqltest_u1'@'localhost' for table 't1'
-create table t1 like mysqltest_2.t1;
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't1'
-connection default;
-grant select on mysqltest_2.t1 to mysqltest_u1@localhost;
-connection user1;
-show create table mysqltest_2.t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table t1 like mysqltest_2.t1;
-connection default;
-disconnect user1;
-use test;
-drop database mysqltest_1;
-drop database mysqltest_2;
-drop user mysqltest_u1@localhost;
-grant all on `mysqltest\_%`.* to mysqltest_1@localhost with grant option;
-grant usage on *.* to mysqltest_2@localhost;
-connect con18600_1,localhost,mysqltest_1,,;
-create database mysqltest_1;
-use mysqltest_1;
-create table t1 (f1 int);
-grant create on `mysqltest\_1`.* to mysqltest_2@localhost;
-grant select on mysqltest_1.t1 to mysqltest_2@localhost;
-connect con3,localhost,mysqltest_2,,;
-connection con3;
-create database mysqltest_3;
-ERROR 42000: Access denied for user 'mysqltest_2'@'localhost' to database 'mysqltest_3'
-use mysqltest_1;
-create table t2(f1 int);
-select * from t1;
-f1
-connection default;
-drop database mysqltest_1;
-connection default;
-disconnect con3;
-disconnect con18600_1;
-revoke all privileges, grant option from mysqltest_1@localhost;
-revoke all privileges, grant option from mysqltest_2@localhost;
-drop user mysqltest_1@localhost;
-drop user mysqltest_2@localhost;
-CREATE DATABASE db1;
-USE db1;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1,1),(2,2);
-CREATE TABLE t2 (b INT, c INT);
-INSERT INTO t2 VALUES (1,100),(2,200);
-GRANT SELECT ON t1 TO mysqltest1@localhost;
-GRANT SELECT (b) ON t2 TO mysqltest1@localhost;
-connect conn1,localhost,mysqltest1,,;
-connection conn1;
-USE db1;
-SELECT c FROM t2;
-ERROR 42000: SELECT command denied to user 'mysqltest1'@'localhost' for column 'c' in table 't2'
-SELECT * FROM t2;
-ERROR 42000: SELECT command denied to user 'mysqltest1'@'localhost' for table 't2'
-SELECT * FROM t1 JOIN t2 USING (b);
-ERROR 42000: SELECT command denied to user 'mysqltest1'@'localhost' for column 'c' in table 't2'
-connection default;
-disconnect conn1;
-USE test;
-DROP TABLE db1.t1, db1.t2;
-DROP USER mysqltest1@localhost;
-DROP DATABASE db1;
-End of 5.0 tests
-USE mysql;
-SELECT LEFT(CURRENT_USER(),INSTR(CURRENT_USER(),'@')-1) INTO @u;
-SELECT MID(CURRENT_USER(),INSTR(CURRENT_USER(),'@')+1) INTO @h;
-SELECT password FROM user WHERE user=@u AND host=@h INTO @pwd;
-SELECT user,host,password,insert_priv FROM user WHERE user=@u AND host=@h;
-user host password insert_priv
-root localhost Y
-UPDATE user SET insert_priv='N' WHERE user=@u AND host=@h;
-SELECT user,host,password,insert_priv FROM user WHERE user=@u AND host=@h;
-user host password insert_priv
-root localhost N
-GRANT INSERT ON *.* TO CURRENT_USER();
-SELECT user,host,password,insert_priv FROM user WHERE user=@u AND host=@h;
-user host password insert_priv
-root localhost Y
-UPDATE user SET insert_priv='N' WHERE user=@u AND host=@h;
-GRANT INSERT ON *.* TO CURRENT_USER() IDENTIFIED BY 'keksdose';
-SELECT user,host,password,insert_priv FROM user WHERE user=@u AND host=@h;
-user host password insert_priv
-root localhost *0BB7188CF0DE9B403BA66E9DD810D82652D002EB Y
-UPDATE user SET password=@pwd WHERE user=@u AND host=@h;
-SELECT user,host,password,insert_priv FROM user WHERE user=@u AND host=@h;
-user host password insert_priv
-root localhost Y
-FLUSH PRIVILEGES;
-USE test;
-End of 5.1 tests
-
-# --
-# -- Bug#11746602: 27480 - Extend CREATE TEMPORARY TABLES privilege to
-# -- allow temp table operations
-# --
-# -- Bug#12771903: User with create temporary tables priv only has full
-# -- access to a regular table
-# --
-
-############################################################################
-# Setup environment.
-###########################################################################
-DROP DATABASE IF EXISTS mysqltest_db1;
-DROP DATABASE IF EXISTS mysqltest_db2;
-CREATE DATABASE mysqltest_db1;
-CREATE DATABASE mysqltest_db2;
-# mysqltest_u1@localhost has CREATE_TMP_ACL, FILE_ACL and EXECUTE_ACL only
-# (EXECUTE_ACL is needed to call p0, and FILE_ACL is needed for SELECT
-# OUTFILE/LOAD DATA INFILE).
-GRANT FILE ON *.* TO mysqltest_u1@localhost;
-GRANT CREATE TEMPORARY TABLES, EXECUTE ON mysqltest_db1.* TO mysqltest_u1@localhost;
-# mysqltest_u2@localhost has all privileges but CREATE_TMP_ACL.
-GRANT ALL PRIVILEGES ON mysqltest_db1.* TO mysqltest_u2@localhost;
-REVOKE CREATE TEMPORARY TABLES ON mysqltest_db1.* FROM mysqltest_u2@localhost;
-# mysqltest_u3@localhost has CREATE_TMP_ACL & EXECUTE_ACL.
-# This user is required to check SUID-stored-routines.
-GRANT CREATE TEMPORARY TABLES ON mysqltest_db1.* TO mysqltest_u3@localhost;
-GRANT EXECUTE ON mysqltest_db1.* TO mysqltest_u3@localhost;
-# mysqltest_u4@localhost has only EXECUTE_ACL.
-# We need this user to check that once created temporary tables
-# are accessible by anyone.
-GRANT EXECUTE ON mysqltest_db1.* TO mysqltest_u4@localhost;
-# mysqltest_u5@localhost has CREATE_TMP_ACL and SELECT_ACL, UPDATE_ACL,
-# DELETE_ACL on mysqltest_db1; and only CREATE_TMP_ACL on mysqltest_db2.
-# By means of this user we check privileges required for merge tables.
-GRANT CREATE TEMPORARY TABLES ON mysqltest_db1.* TO mysqltest_u5@localhost;
-GRANT CREATE TEMPORARY TABLES ON mysqltest_db2.* TO mysqltest_u5@localhost;
-GRANT SELECT, UPDATE, DELETE ON mysqltest_db1.* TO mysqltest_u5@localhost;
-# Create stored routine to test how privilege checking is done for its
-# arguments.
-CREATE PROCEDURE mysqltest_db1.p0(i INT) SELECT i;
-# Create SUID-stored-routines.
-CREATE DEFINER = mysqltest_u3@localhost PROCEDURE mysqltest_db1.p1()
-CREATE TEMPORARY TABLE t4(x INT);
-CREATE DEFINER = mysqltest_u3@localhost PROCEDURE mysqltest_db1.p2()
-INSERT INTO t4 VALUES (1), (2), (3);
-CREATE DEFINER = mysqltest_u3@localhost PROCEDURE mysqltest_db1.p3()
-SELECT * FROM t4 ORDER BY x;
-# We need separate key cache to test CACHE INDEX and LOAD INDEX.
-SET GLOBAL keycache1.key_buffer_size = 128 * 1024;
-CREATE TABLE mysqltest_db2.t2_1(a INT);
-###########################################################################
-# Check that CREATE_TMP_ACL is enough to issue almost any supported
-# SQL-statement against temporary tables (loosely follow order in
-# sql_command enum).
-###########################################################################
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-#
-# Variants of CREATE TABLE.
-#
-CREATE TEMPORARY TABLE t1(a INT);
-CREATE TEMPORARY TABLE t2 LIKE t1;
-CREATE TEMPORARY TABLE t3(a INT, b INT, PRIMARY KEY (a));
-CREATE TEMPORARY TABLE t4 SELECT * FROM t1;
-# Check that we do *not* allow creation of MERGE table with underlying
-# temporary table without additional privileges.
-CREATE TEMPORARY TABLE t5(a INT) ENGINE = MyISAM;
-CREATE TEMPORARY TABLE t6(a INT) ENGINE = MERGE UNION = (t5);
-ERROR 42000: SELECT, UPDATE, DELETE command denied to user 'mysqltest_u1'@'localhost' for table 't5'
-# Check that we allow creation of MERGE table with no underlying table
-# without additional privileges.
-CREATE TEMPORARY TABLE t6(a INT) ENGINE = MERGE UNION = ();
-#
-# SELECT.
-#
-INSERT INTO t1 VALUES (1), (2), (3);
-SELECT * FROM t1 ORDER BY a;
-a
-1
-2
-3
-#
-# CREATE/DROP INDEX.
-#
-CREATE INDEX idx1 ON t3(b);
-DROP INDEX idx1 ON t3;
-#
-# ALTER TABLE.
-#
-ALTER TABLE t4 ADD COLUMN b INT;
-# Check that we allow altering of MERGE table with no underlying
-# without additional privileges.
-ALTER TABLE t6 UNION = ();
-# Check that we do *not* allow altering of MERGE table with underlying
-# temporary table without additional privileges.
-ALTER TABLE t6 UNION = (t5);
-ERROR 42000: SELECT, UPDATE, DELETE command denied to user 'mysqltest_u1'@'localhost' for table 't5'
-#
-# Simple INSERT and INSERT ... SELECT.
-#
-INSERT INTO t1 VALUES (4);
-INSERT INTO t2 SELECT a FROM t1;
-SELECT * FROM t1 ORDER BY a;
-a
-1
-2
-3
-4
-SELECT * FROM t2 ORDER BY a;
-a
-1
-2
-3
-4
-#
-# UPDATE and multi-UPDATE.
-#
-UPDATE t1 SET a = a * 10;
-UPDATE t1 SET a = 100 WHERE a = 10;
-UPDATE t1, t2 SET t1.a = 200 WHERE t1.a = t2.a * 10 AND t1.a = 20;
-SELECT * FROM t1 ORDER BY a;
-a
-30
-40
-100
-200
-#
-# DELETE and multi-DELETE.
-#
-DELETE FROM t1 WHERE a = 100;
-DELETE t1 FROM t1, t2 WHERE t1.a = t2.a * 100 AND t1.a = 200;
-SELECT * FROM t1 ORDER BY a;
-a
-30
-40
-#
-# TRUNCATE TABLE.
-#
-TRUNCATE TABLE t1;
-SELECT * FROM t1 ORDER BY a;
-a
-#
-# SHOW COLUMNS/DESCRIBE and SHOW KEYS.
-#
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-SHOW KEYS FROM t3;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t3 0 PRIMARY 1 a A 0 NULL NULL BTREE
-#
-# SHOW CREATE TABLE.
-#
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TEMPORARY TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-#
-# LOAD DATA INFILE (also SELECT INTO OUTFILE).
-#
-INSERT INTO t1 VALUES (1), (2), (3);
-SELECT a INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug27480.txt' FROM t1 ;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug27480.txt' INTO TABLE t1;
-SELECT * FROM t1 ORDER BY a;
-a
-1
-1
-2
-2
-3
-3
-#
-# SET.
-#
-SET @a := (SELECT COUNT(*) FROM t1);
-SELECT @a;
-@a
-6
-#
-# LOCK TABLES.
-#
-LOCK TABLES t1 READ;
-UNLOCK TABLES;
-#
-# CHECK/REPAIR/ANALYZE/OPTIMIZE and CHECKSUM.
-#
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-mysqltest_db1.t1 analyze status OK
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-mysqltest_db1.t1 check status OK
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-mysqltest_db1.t1 optimize status Table is already up to date
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-mysqltest_db1.t1 repair status OK
-#
-# REPLACE and REPLACE ... SELECT.
-#
-INSERT INTO t3 VALUES (1, 111), (2, 222), (3, 333);
-REPLACE INTO t3 VALUES (1, 1111), (4, 444), (0, 001);
-REPLACE INTO t2 SELECT b FROM t3;
-SELECT * FROM t2 ORDER BY a;
-a
-1
-1
-2
-3
-4
-222
-333
-444
-1111
-SELECT * FROM t3 ORDER BY a;
-a b
-0 1
-1 1111
-2 222
-3 333
-4 444
-#
-# CACHE and LOAD INDEX.
-#
-CACHE INDEX t3 IN keycache1;
-Table Op Msg_type Msg_text
-mysqltest_db1.t3 assign_to_keycache status OK
-LOAD INDEX INTO CACHE t3;
-Table Op Msg_type Msg_text
-mysqltest_db1.t3 preload_keys status OK
-#
-# RENAME (doesn't work for temporary tables, thus should fail).
-#
-RENAME TABLE t3 TO t3_1;
-ERROR 42000: INSERT, CREATE command denied to user 'mysqltest_u1'@'localhost' for table 't3_1'
-#
-# HANDLER OPEN/READ/CLOSE.
-#
-HANDLER t1 OPEN;
-HANDLER t1 READ NEXT;
-a
-1
-HANDLER t1 CLOSE;
-#
-# DO.
-#
-DO (SELECT COUNT(*) FROM t1);
-#
-# CHECKSUM TABLE.
-#
-DELETE FROM t1;
-CHECKSUM TABLE t1;
-Table Checksum
-mysqltest_db1.t1 0
-#
-# CALL.
-#
-CALL p0((SELECT COUNT(*) FROM t1));
-i
-0
-#
-# PREPARE, EXECUTE and DEALLOCATE.
-#
-PREPARE stmt1 FROM 'SELECT * FROM t1 ORDER BY a';
-PREPARE stmt2 FROM 'SELECT * FROM t2 ORDER BY a';
-EXECUTE stmt1;
-a
-EXECUTE stmt2;
-a
-1
-1
-2
-3
-4
-222
-333
-444
-1111
-DEALLOCATE PREPARE stmt1;
-DEALLOCATE PREPARE stmt2;
-#
-# DROP TABLE and DROP TEMPORARY TABLE.
-#
-DROP TABLE t1;
-CREATE TEMPORARY TABLE t1(a INT);
-DROP TEMPORARY TABLE t1;
-###########################################################################
-# - Check that even having all privileges but CREATE_TMP_ACL is not enough
-# to create temporary tables.
-# - Check that creation/working with temporary tables is possible via
-# SUID-stored-routines.
-# - Check that even outside of SUID context we can access temporary
-# table once it is created.
-###########################################################################
-connect con2,localhost,mysqltest_u2,,mysqltest_db1;
-CREATE TEMPORARY TABLE t2(a INT);
-ERROR 42000: Access denied for user 'mysqltest_u2'@'localhost' to database 'mysqltest_db1'
-CALL p1();
-CALL p2();
-CALL p3();
-x
-1
-2
-3
-# Check that once table is created it can be accessed even
-# outside of such a SUID context.
-INSERT INTO t4 VALUES (4);
-UPDATE t4 SET x = 10 WHERE x = 1;
-DELETE FROM t4 WHERE x < 3;
-SELECT * FROM t4 ORDER BY x;
-x
-3
-4
-10
-DROP TEMPORARY TABLE t4;
-###########################################################################
-# - Check that once table is created it can be accessed from within any
-# context, even by user without any privileges on tables.
-###########################################################################
-connect con3,localhost,mysqltest_u4,,mysqltest_db1;
-CALL p1();
-INSERT INTO t4 VALUES (4);
-UPDATE t4 SET x = 10 WHERE x = 1;
-DELETE FROM t4 WHERE x < 3;
-SELECT * FROM t4 ORDER BY x;
-x
-4
-DROP TEMPORARY TABLE t4;
-###########################################################################
-# Check special case for MERGE-tables:
-# - CREATE_TMP_ACL is required to create a temporary merge table;
-# - SELECT_ACL, UPDATE_ACL and DELETE_ACL are required to include
-# a temporary table into the underlying-table-list.
-###########################################################################
-connect con4,localhost,mysqltest_u5,,mysqltest_db1;
-CREATE TEMPORARY TABLE t7(a INT);
-CREATE TEMPORARY TABLE t8(a INT);
-CREATE TEMPORARY TABLE t9(a INT);
-CREATE TEMPORARY TABLE t10(a INT) ENGINE = MERGE UNION = (t7, t8);
-ALTER TABLE t10 UNION = (t9);
-ALTER TABLE t10 UNION = (mysqltest_db2.t2_1);
-ERROR 42000: SELECT, UPDATE, DELETE command denied to user 'mysqltest_u5'@'localhost' for table 't2_1'
-CREATE TEMPORARY TABLE mysqltest_db2.t2_2(a INT) ENGINE = MERGE UNION = (t7, t8);
-ALTER TABLE mysqltest_db2.t2_2 UNION = (t9);
-ALTER TABLE mysqltest_db2.t2_2 UNION = ();
-DROP TEMPORARY TABLE mysqltest_db2.t2_2;
-DROP TEMPORARY TABLE t10;
-DROP TEMPORARY TABLE t7;
-DROP TEMPORARY TABLE t8;
-DROP TEMPORARY TABLE t9;
-###########################################################################
-# That's all. Cleanup.
-###########################################################################
-connection default;
-# All remaining temporary tables are automatically dropped.
-disconnect con1;
-disconnect con2;
-disconnect con3;
-disconnect con4;
-SET GLOBAL keycache1.key_buffer_size = 0;
-DROP DATABASE mysqltest_db1;
-DROP DATABASE mysqltest_db2;
-DROP USER mysqltest_u1@localhost;
-DROP USER mysqltest_u2@localhost;
-DROP USER mysqltest_u3@localhost;
-DROP USER mysqltest_u4@localhost;
-DROP USER mysqltest_u5@localhost;
-set GLOBAL sql_mode=default;
diff --git a/mysql-test/r/grant3.result b/mysql-test/r/grant3.result
deleted file mode 100644
index 4c99fb02f19..00000000000
--- a/mysql-test/r/grant3.result
+++ /dev/null
@@ -1,198 +0,0 @@
-set global sql_mode="";
-set local sql_mode="";
-SET NAMES binary;
-connect master,localhost,root,,;
-connection master;
-drop table if exists t1;
-delete from mysql.user where user like 'mysqltest\_%';
-delete from mysql.db where user like 'mysqltest\_%';
-delete from mysql.tables_priv where user like 'mysqltest\_%';
-delete from mysql.columns_priv where user like 'mysqltest\_%';
-flush privileges;
-create user mysqltest_1@localhost;
-grant create user on *.* to mysqltest_1@localhost;
-grant select on `my\_1`.* to mysqltest_1@localhost with grant option;
-connect user_a,localhost,mysqltest_1,,;
-connection user_a;
-grant select on `my\_1`.* to mysqltest_2@localhost;
-ERROR 42000: You are not allowed to create a user with GRANT
-create user mysqltest_2@localhost;
-disconnect user_a;
-disconnect master;
-connection default;
-delete from mysql.user where user like 'mysqltest\_%';
-delete from mysql.db where user like 'mysqltest\_%';
-delete from mysql.tables_priv where user like 'mysqltest\_%';
-delete from mysql.columns_priv where user like 'mysqltest\_%';
-flush privileges;
-grant select on test.* to CUser@localhost;
-grant select on test.* to CUser@LOCALHOST;
-flush privileges;
-SELECT user, host FROM mysql.user where user = 'CUser' order by 1,2;
-user host
-CUser localhost
-SELECT user, host, db, select_priv FROM mysql.db where user = 'CUser' order by 1,2;
-user host db select_priv
-CUser localhost test Y
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'CUser'@'LOCALHOST';
-flush privileges;
-SELECT user, host FROM mysql.user where user = 'CUser' order by 1,2;
-user host
-CUser localhost
-SELECT user, host, db, select_priv FROM mysql.db where user = 'CUser' order by 1,2;
-user host db select_priv
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'CUser'@'localhost';
-flush privileges;
-SELECT user, host FROM mysql.user where user = 'CUser' order by 1,2;
-user host
-CUser localhost
-SELECT user, host, db, select_priv FROM mysql.db where user = 'CUser' order by 1,2;
-user host db select_priv
-DROP USER CUser@localhost;
-DROP USER CUser@LOCALHOST;
-ERROR HY000: Operation DROP USER failed for 'CUser'@'localhost'
-create table t1 (a int);
-grant select on test.t1 to CUser@localhost;
-grant select on test.t1 to CUser@LOCALHOST;
-flush privileges;
-SELECT user, host FROM mysql.user where user = 'CUser' order by 1,2;
-user host
-CUser localhost
-SELECT user, host, db, Table_name, Table_priv, Column_priv FROM mysql.tables_priv where user = 'CUser' order by 1,2;
-user host db Table_name Table_priv Column_priv
-CUser localhost test t1 Select
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'CUser'@'LOCALHOST';
-flush privileges;
-SELECT user, host FROM mysql.user where user = 'CUser' order by 1,2;
-user host
-CUser localhost
-SELECT user, host, db, Table_name, Table_priv, Column_priv FROM mysql.tables_priv where user = 'CUser' order by 1,2;
-user host db Table_name Table_priv Column_priv
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'CUser'@'localhost';
-flush privileges;
-SELECT user, host FROM mysql.user where user = 'CUser' order by 1,2;
-user host
-CUser localhost
-SELECT user, host, db, Table_name, Table_priv, Column_priv FROM mysql.tables_priv where user = 'CUser' order by 1,2;
-user host db Table_name Table_priv Column_priv
-DROP USER CUser@localhost;
-DROP USER CUser@LOCALHOST;
-ERROR HY000: Operation DROP USER failed for 'CUser'@'localhost'
-grant select(a) on test.t1 to CUser@localhost;
-grant select(a) on test.t1 to CUser@LOCALHOST;
-flush privileges;
-SELECT user, host FROM mysql.user where user = 'CUser' order by 1,2;
-user host
-CUser localhost
-SELECT user, host, db, Table_name, Table_priv, Column_priv FROM mysql.tables_priv where user = 'CUser' order by 1,2;
-user host db Table_name Table_priv Column_priv
-CUser localhost test t1 Select
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'CUser'@'LOCALHOST';
-flush privileges;
-SELECT user, host FROM mysql.user where user = 'CUser' order by 1,2;
-user host
-CUser localhost
-SELECT user, host, db, Table_name, Table_priv, Column_priv FROM mysql.tables_priv where user = 'CUser' order by 1,2;
-user host db Table_name Table_priv Column_priv
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'CUser'@'localhost';
-flush privileges;
-SELECT user, host FROM mysql.user where user = 'CUser' order by 1,2;
-user host
-CUser localhost
-SELECT user, host, db, Table_name, Table_priv, Column_priv FROM mysql.tables_priv where user = 'CUser' order by 1,2;
-user host db Table_name Table_priv Column_priv
-DROP USER CUser@localhost;
-DROP USER CUser@LOCALHOST;
-ERROR HY000: Operation DROP USER failed for 'CUser'@'localhost'
-drop table t1;
-grant select on test.* to CUser2@localhost;
-grant select on test.* to CUser2@LOCALHOST;
-flush privileges;
-SELECT user, host FROM mysql.user where user = 'CUser2' order by 1,2;
-user host
-CUser2 localhost
-SELECT user, host, db, select_priv FROM mysql.db where user = 'CUser2' order by 1,2;
-user host db select_priv
-CUser2 localhost test Y
-REVOKE SELECT ON test.* FROM 'CUser2'@'LOCALHOST';
-flush privileges;
-SELECT user, host FROM mysql.user where user = 'CUser2' order by 1,2;
-user host
-CUser2 localhost
-SELECT user, host, db, select_priv FROM mysql.db where user = 'CUser2' order by 1,2;
-user host db select_priv
-REVOKE SELECT ON test.* FROM 'CUser2'@'localhost';
-ERROR 42000: There is no such grant defined for user 'CUser2' on host 'localhost'
-flush privileges;
-SELECT user, host FROM mysql.user where user = 'CUser2' order by 1,2;
-user host
-CUser2 localhost
-SELECT user, host, db, select_priv FROM mysql.db where user = 'CUser2' order by 1,2;
-user host db select_priv
-DROP USER CUser2@localhost;
-DROP USER CUser2@LOCALHOST;
-ERROR HY000: Operation DROP USER failed for 'CUser2'@'localhost'
-CREATE DATABASE mysqltest_1;
-CREATE TABLE mysqltest_1.t1 (a INT);
-CREATE USER 'mysqltest1'@'%';
-GRANT SELECT, UPDATE ON `mysqltest_1`.* TO 'mysqltest1'@'%';
-REVOKE SELECT ON `mysqltest_1`.* FROM 'mysqltest1'@'%';
-GRANT SELECT, UPDATE ON `mysqltest\_1`.* TO 'mysqltest1'@'%';
-FLUSH PRIVILEGES;
-connect conn1,localhost,mysqltest1,,;
-connection conn1;
-SHOW GRANTS;
-Grants for mysqltest1@%
-GRANT USAGE ON *.* TO 'mysqltest1'@'%'
-GRANT SELECT, UPDATE ON `mysqltest\_1`.* TO 'mysqltest1'@'%'
-GRANT UPDATE ON `mysqltest_1`.* TO 'mysqltest1'@'%'
-SELECT * FROM mysqltest_1.t1;
-a
-disconnect conn1;
-connection default;
-DROP USER 'mysqltest1'@'%';
-DROP DATABASE mysqltest_1;
-#
-# Bug#41597 - After rename of user, there are additional grants
-# when grants are reapplied.
-#
-CREATE DATABASE temp;
-CREATE TABLE temp.t1(a INT, b VARCHAR(10));
-INSERT INTO temp.t1 VALUES(1, 'name1');
-INSERT INTO temp.t1 VALUES(2, 'name2');
-INSERT INTO temp.t1 VALUES(3, 'name3');
-CREATE USER 'user1'@'%';
-RENAME USER 'user1'@'%' TO 'user2'@'%';
-# Show privileges after rename and BEFORE grant
-SHOW GRANTS FOR 'user2'@'%';
-Grants for user2@%
-GRANT USAGE ON *.* TO 'user2'@'%'
-GRANT SELECT (a), INSERT (b) ON `temp`.`t1` TO 'user2'@'%';
-# Show privileges after rename and grant
-SHOW GRANTS FOR 'user2'@'%';
-Grants for user2@%
-GRANT USAGE ON *.* TO 'user2'@'%'
-GRANT SELECT (a), INSERT (b) ON `temp`.`t1` TO 'user2'@'%'
-# Connect as the renamed user
-connect conn1, localhost, user2,,;
-connection conn1;
-SHOW GRANTS;
-Grants for user2@%
-GRANT USAGE ON *.* TO 'user2'@'%'
-GRANT SELECT (a), INSERT (b) ON `temp`.`t1` TO 'user2'@'%'
-SELECT a FROM temp.t1;
-a
-1
-2
-3
-# Check for additional privileges by accessing a
-# non privileged column. We shouldn't be able to
-# access this column.
-SELECT b FROM temp.t1;
-ERROR 42000: SELECT command denied to user 'user2'@'localhost' for column 'b' in table 't1'
-disconnect conn1;
-connection default;
-DROP USER 'user2'@'%';
-DROP DATABASE temp;
-set global sql_mode=default;
-End of 5.0 tests
diff --git a/mysql-test/r/grant4.result b/mysql-test/r/grant4.result
deleted file mode 100644
index c3db2e03e3e..00000000000
--- a/mysql-test/r/grant4.result
+++ /dev/null
@@ -1,226 +0,0 @@
-drop database if exists mysqltest_db1;
-set GLOBAL sql_mode="";
-set LOCAL sql_mode="";
-create database mysqltest_db1;
-use mysqltest_db1;
-create table t_column_priv_only (a int, b int);
-create table t_select_priv like t_column_priv_only;
-create table t_no_priv like t_column_priv_only;
-grant all privileges on test.* to mysqltest_u1@localhost;
-grant insert (a) on mysqltest_db1.t_column_priv_only to mysqltest_u1@localhost;
-grant select on mysqltest_db1.t_select_priv to mysqltest_u1@localhost;
-** Connect as restricted user mysqltest_u1.
-
-connect con1,localhost,mysqltest_u1,,;
-connection con1;
-** Test column level privileges only. No SELECT privileges on the table.
-** INSERT INTO ... VALUES ...
-** Attempting to insert values to a table with only column privileges
-** should work.
-insert into mysqltest_db1.t_column_priv_only (a) VALUES (1);
-
-** SHOW COLUMNS
-** Should succeed because we have privileges (any) on at least one of the columns.
-select column_name as 'Field',column_type as 'Type',is_nullable as 'Null',column_key as 'Key',column_default as 'Default',extra as 'Extra' from information_schema.columns where table_schema='mysqltest_db1' and table_name='t_column_priv_only';
-Field Type Null Key Default Extra
-a int(11) YES NULL
-show columns from mysqltest_db1.t_column_priv_only;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-** SHOW COLUMNS
-** Should fail because there are no privileges on any column combination.
-show columns from mysqltest_db1.t_no_priv;
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't_no_priv'
-** However, select from I_S.COLUMNS will succeed but not show anything:
-select column_name as 'Field',column_type as 'Type',is_nullable as 'Null',column_key as 'Key',column_default as 'Default',extra as 'Extra' from information_schema.columns where table_schema='mysqltest_db1' and table_name='t_no_priv';
-Field Type Null Key Default Extra
-
-** CREATE TABLE ... LIKE ... require SELECT privleges and will fail.
-create table test.t_no_priv like mysqltest_db1.column_priv_only;
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 'column_priv_only'
-
-** Just to be sure... SELECT also fails.
-select * from mysqltest_db1.t_column_priv_only;
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't_column_priv_only'
-
-** SHOW CREATE TABLE ... require any privileges on all columns (the entire table).
-** First we try and fail on a table with only one column privilege.
-show create table mysqltest_db1.t_column_priv_only;
-ERROR 42000: SHOW command denied to user 'mysqltest_u1'@'localhost' for table 't_column_priv_only'
-
-** Now we do the same on a table with SELECT privileges.
-
-** SHOW COLUMNS
-** Success because we got some privileges on the table (SELECT_ACL)
-show columns from mysqltest_db1.t_select_priv;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b int(11) YES NULL
-
-** CREATE TABLE ... LIKE ... require SELECT privleges and will SUCCEED.
-drop table if exists test.t_duplicated;
-create table test.t_duplicated like mysqltest_db1.t_select_priv;
-drop table test.t_duplicated;
-
-** SHOW CREATE TABLE will succeed because we have a privilege on all columns in the table (table-level privilege).
-show create table mysqltest_db1.t_select_priv;
-Table Create Table
-t_select_priv CREATE TABLE `t_select_priv` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-** SHOW CREATE TABLE will fail if there is no grants at all:
-show create table mysqltest_db1.t_no_priv;
-ERROR 42000: SHOW command denied to user 'mysqltest_u1'@'localhost' for table 't_no_priv'
-
-connection default;
-use mysqltest_db1;
-CREATE TABLE t5 (s1 INT);
-CREATE INDEX i ON t5 (s1);
-CREATE TABLE t6 (s1 INT, s2 INT);
-CREATE VIEW v5 AS SELECT * FROM t5;
-CREATE VIEW v6 AS SELECT * FROM t6;
-CREATE VIEW v2 AS SELECT * FROM t_select_priv;
-CREATE VIEW v3 AS SELECT * FROM t_select_priv;
-CREATE INDEX i ON t6 (s1);
-GRANT UPDATE (s2) ON t6 to mysqltest_u1@localhost;
-GRANT UPDATE (s2) ON v6 to mysqltest_u1@localhost;
-GRANT SHOW VIEW ON v2 to mysqltest_u1@localhost;
-GRANT SHOW VIEW, SELECT ON v3 to mysqltest_u1@localhost;
-connection con1;
-use mysqltest_db1;
-** Connect as restricted user mysqltest_u1.
-** SELECT FROM INFORMATION_SCHEMA.STATISTICS will succeed because any privileges will do (authentication is enough).
-** but will return no rows
-SELECT * FROM INFORMATION_SCHEMA.STATISTICS WHERE table_name='t5';
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT
-** SHOW INDEX FROM t5 will fail because we don't have any privileges on any column combination.
-SHOW INDEX FROM t5;
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't5'
-** SHOW INDEX FROM t6 will succeed because there exist a privilege on a column combination on t6.
-SHOW INDEX FROM t6;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t6 1 i 1 s1 A NULL NULL NULL YES BTREE
-** CHECK TABLE requires any privilege on any column combination and should succeed for t6:
-CHECK TABLE t6;
-Table Op Msg_type Msg_text
-mysqltest_db1.t6 check status OK
-** With no privileges access is naturally denied:
-CHECK TABLE t5;
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't5'
-** CHECKSUM TABLE requires SELECT privileges on the table. The following should fail:
-CHECKSUM TABLE t6;
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't6'
-** And this should work:
-CHECKSUM TABLE t_select_priv;
-Table Checksum
-mysqltest_db1.t_select_priv 0
-SHOW CREATE VIEW v5;
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 'v5'
-SHOW CREATE VIEW v6;
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 'v6'
-SHOW CREATE VIEW v2;
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 'v2'
-SHOW CREATE VIEW v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select `t_select_priv`.`a` AS `a`,`t_select_priv`.`b` AS `b` from `t_select_priv` latin1 latin1_swedish_ci
-connection default;
-disconnect con1;
-drop database mysqltest_db1;
-drop user mysqltest_u1@localhost;
-#
-# Additional coverage for refactoring which is made as part
-# of fix for bug #27480 "Extend CREATE TEMPORARY TABLES privilege
-# to allow temp table operations".
-#
-# Check that for statements like CHECK/REPAIR and OPTIMIZE TABLE
-# privileges for all tables involved are checked before processing
-# any tables. Doing otherwise, i.e. checking privileges for table
-# right before processing it might result in lost results for tables
-# which were processed by the time when table for which privileges
-# are insufficient are discovered.
-#
-call mtr.add_suppression("Got an error from thread_id=.*ha_myisam.cc:");
-call mtr.add_suppression("MySQL thread id .*, query id .* localhost.*mysqltest_u1 Checking table");
-drop database if exists mysqltest_db1;
-create database mysqltest_db1;
-# Create tables which we are going to CHECK/REPAIR.
-create table mysqltest_db1.t1 (a int, key(a)) engine=myisam;
-create table mysqltest_db1.t2 (b int);
-insert into mysqltest_db1.t1 values (1), (2);
-insert into mysqltest_db1.t2 values (1);
-# Create user which will try to do this.
-create user mysqltest_u1@localhost;
-grant insert, select on mysqltest_db1.t1 to mysqltest_u1@localhost;
-connect con1,localhost,mysqltest_u1,,;
-connection default;
-# Corrupt t1 by replacing t1.MYI with a corrupt + unclosed one created
-# by doing: 'create table t1 (a int key(a))'
-# head -c1024 t1.MYI > corrupt_t1.MYI
-flush table mysqltest_db1.t1;
-connection con1;
-check table mysqltest_db1.t1;
-Table Op Msg_type Msg_text
-mysqltest_db1.t1 check warning 1 client is using or hasn't closed the table properly
-mysqltest_db1.t1 check error Size of indexfile is: 1024 Should be: 2048
-mysqltest_db1.t1 check warning Size of datafile is: 14 Should be: 7
-mysqltest_db1.t1 check error Corrupt
-# The below statement should fail before repairing t1.
-# Otherwise info about such repair will be missing from its result-set.
-repair table mysqltest_db1.t1, mysqltest_db1.t2;
-ERROR 42000: SELECT, INSERT command denied to user 'mysqltest_u1'@'localhost' for table 't2'
-# The same is true for CHECK TABLE statement.
-check table mysqltest_db1.t1, mysqltest_db1.t2;
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't2'
-check table mysqltest_db1.t1;
-Table Op Msg_type Msg_text
-mysqltest_db1.t1 check warning Table is marked as crashed
-mysqltest_db1.t1 check warning 1 client is using or hasn't closed the table properly
-mysqltest_db1.t1 check error Size of indexfile is: 1024 Should be: 2048
-mysqltest_db1.t1 check warning Size of datafile is: 14 Should be: 7
-mysqltest_db1.t1 check error Corrupt
-repair table mysqltest_db1.t1;
-Table Op Msg_type Msg_text
-mysqltest_db1.t1 repair warning Number of rows changed from 1 to 2
-mysqltest_db1.t1 repair status OK
-# Clean-up.
-disconnect con1;
-connection default;
-drop database mysqltest_db1;
-drop user mysqltest_u1@localhost;
-create user foo1 identified by password '11111111111111111111111111111111111111111';
-create user foo2 identified by password '2222222222222222';
-create user foo3 identified via mysql_native_password using '11111111111111111111111111111111111111111';
-create user foo4 identified via mysql_old_password using '2222222222222222';
-grant select on test.* to foo5 identified by password '11111111111111111111111111111111111111111';
-grant select on test.* to foo6 identified by password '2222222222222222';
-grant select on test.* to foo7 identified via mysql_native_password using '11111111111111111111111111111111111111111';
-grant select on test.* to foo8 identified via mysql_old_password using '2222222222222222';
-select user,password,plugin,authentication_string from mysql.user where user like 'foo%';
-user password plugin authentication_string
-foo1 11111111111111111111111111111111111111111
-foo2 2222222222222222
-foo3 11111111111111111111111111111111111111111
-foo4 2222222222222222
-foo5 11111111111111111111111111111111111111111
-foo6 2222222222222222
-foo7 11111111111111111111111111111111111111111
-foo8 2222222222222222
-drop user foo1;
-drop user foo2;
-drop user foo3;
-drop user foo4;
-drop user foo5;
-drop user foo6;
-drop user foo7;
-drop user foo8;
-create user foo1 identified via mysql_native_password using '00';
-ERROR HY000: Password hash should be a 41-digit hexadecimal number
-create user foo2 identified via mysql_native_password using '2222222222222222';
-ERROR HY000: Password hash should be a 41-digit hexadecimal number
-create user foo3 identified via mysql_old_password using '00';
-ERROR HY000: Password hash should be a 16-digit hexadecimal number
-create user foo4 identified via mysql_old_password using '11111111111111111111111111111111111111111';
-ERROR HY000: Password hash should be a 16-digit hexadecimal number
-set GLOBAL sql_mode=default;
diff --git a/mysql-test/r/grant5.result b/mysql-test/r/grant5.result
deleted file mode 100644
index 24abc61a348..00000000000
--- a/mysql-test/r/grant5.result
+++ /dev/null
@@ -1,20 +0,0 @@
-SHOW GRANTS FOR root@invalid_host;
-ERROR 42000: There is no such grant defined for user 'root' on host 'invalid_host'
-create user test;
-create user foo;
-create role foo;
-grant foo to test;
-connect conn_1, localhost, test,,;
-set role foo;
-show grants for test;
-Grants for test@%
-GRANT foo TO 'test'@'%'
-GRANT USAGE ON *.* TO 'test'@'%'
-show grants for foo;
-Grants for foo
-GRANT USAGE ON *.* TO 'foo'
-show grants for foo@'%';
-ERROR 42000: Access denied for user 'test'@'%' to database 'mysql'
-connection default;
-drop user test, foo;
-drop role foo;
diff --git a/mysql-test/r/grant_4332.result b/mysql-test/r/grant_4332.result
deleted file mode 100644
index b62ca1a20cc..00000000000
--- a/mysql-test/r/grant_4332.result
+++ /dev/null
@@ -1,35 +0,0 @@
-set GLOBAL sql_mode="";
-set LOCAL sql_mode="";
-alter table mysql.user modify User char(16) binary not null default '';
-alter table mysql.db modify User char(16) binary not null default '';
-alter table mysql.tables_priv modify User char(16) binary not null default '';
-alter table mysql.columns_priv modify User char(16) binary not null default '';
-alter table mysql.procs_priv modify User char(16) binary not null default '';
-alter table mysql.proc modify definer char(77) collate utf8_bin not null default '';
-alter table mysql.event modify definer char(77) collate utf8_bin not null default '';
-flush privileges;
-select user();
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def user() 253 77 14 N 1 39 8
-user()
-root@localhost
-create user a17aaaaaaaaaaaaa0@localhost;
-ERROR HY000: String 'a17aaaaaaaaaaaaa0' is too long for user name (should be no longer than 16)
-grant usage on *.* to a17aaaaaaaaaaaaa0@lodalhost;
-ERROR HY000: String 'a17aaaaaaaaaaaaa0' is too long for user name (should be no longer than 16)
-drop user a17aaaaaaaaaaaaa0@lodalhost;
-ERROR HY000: String 'a17aaaaaaaaaaaaa0' is too long for user name (should be no longer than 16)
-alter table mysql.user modify User char(80) binary not null default '';
-alter table mysql.db modify User char(80) binary not null default '';
-alter table mysql.tables_priv modify User char(80) binary not null default '';
-alter table mysql.columns_priv modify User char(80) binary not null default '';
-alter table mysql.procs_priv modify User char(80) binary not null default '';
-alter table mysql.proc modify definer char(141) collate utf8_bin not null default '';
-alter table mysql.event modify definer char(141) collate utf8_bin not null default '';
-flush privileges;
-select user();
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def user() 253 141 14 N 1 39 8
-user()
-root@localhost
-set GLOBAL sql_mode=default;
diff --git a/mysql-test/r/grant_cache_no_prot.result b/mysql-test/r/grant_cache_no_prot.result
deleted file mode 100644
index f1adb3ae839..00000000000
--- a/mysql-test/r/grant_cache_no_prot.result
+++ /dev/null
@@ -1,249 +0,0 @@
-set GLOBAL sql_mode="";
-set LOCAL sql_mode="";
-drop table if exists test.t1,mysqltest.t1,mysqltest.t2;
-drop database if exists mysqltest;
-set GLOBAL query_cache_type=ON;
-set LOCAL query_cache_type=ON;
-set GLOBAL query_cache_size=1355776;
-reset query cache;
-flush status;
-connect root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root;
-show grants for current_user;
-Grants for root@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
-GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
-show grants;
-Grants for root@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
-GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
-create database if not exists mysqltest;
-create table mysqltest.t1 (a int,b int,c int);
-create table mysqltest.t2 (a int,b int,c int);
-insert into mysqltest.t1 values (1,1,1),(2,2,2);
-insert into mysqltest.t2 values (3,3,3);
-create table test.t1 (a char (10));
-insert into test.t1 values ("test.t1");
-select * from t1;
-a
-test.t1
-connect root2,localhost,root,,mysqltest,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root2;
-select * from t1;
-a b c
-1 1 1
-2 2 2
-select a from t1;
-a
-1
-2
-select c from t1;
-c
-1
-2
-select * from t2;
-a b c
-3 3 3
-select * from mysqltest.t1,test.t1;
-a b c a
-1 1 1 test.t1
-2 2 2 test.t1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits%";
-Variable_name Value
-Qcache_hits 0
-grant SELECT on mysqltest.* to mysqltest_1@localhost;
-grant SELECT on mysqltest.t1 to mysqltest_2@localhost;
-grant SELECT on test.t1 to mysqltest_2@localhost;
-grant SELECT(a) on mysqltest.t1 to mysqltest_3@localhost;
-connect user1,localhost,mysqltest_1,,mysqltest,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection user1;
-show grants for current_user();
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 0
-select "user1";
-user1
-user1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 1
-select * from t1;
-a b c
-1 1 1
-2 2 2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 1
-select a from t1 ;
-a
-1
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 2
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 1
-select c from t1;
-c
-1
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 3
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 1
-connect unkuser,localhost,unkuser,,,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection unkuser;
-show grants for current_user();
-Grants for @localhost
-GRANT USAGE ON *.* TO ''@'localhost'
-connect user2,localhost,mysqltest_2,,mysqltest,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection user2;
-select "user2";
-user2
-user2
-select * from t1;
-a b c
-1 1 1
-2 2 2
-select a from t1;
-a
-1
-2
-select c from t1;
-c
-1
-2
-select * from mysqltest.t1,test.t1;
-a b c a
-1 1 1 test.t1
-2 2 2 test.t1
-select * from t2;
-ERROR 42000: SELECT command denied to user 'mysqltest_2'@'localhost' for table 't2'
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 7
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 2
-connect user3,localhost,mysqltest_3,,mysqltest,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection user3;
-select "user3";
-user3
-user3
-select * from t1;
-ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table 't1'
-select a from t1;
-a
-1
-2
-select c from t1;
-ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for column 'c' in table 't1'
-select * from t2;
-ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table 't2'
-select mysqltest.t1.c from test.t1,mysqltest.t1;
-ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for column 'c' in table 't1'
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 7
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 4
-connect user4,localhost,mysqltest_1,,*NO-ONE*,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection user4;
-select "user4";
-user4
-user4
-show grants;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-select a from t1;
-ERROR 3D000: No database selected
-select * from mysqltest.t1,test.t1;
-a b c a
-1 1 1 test.t1
-2 2 2 test.t1
-select a from mysqltest.t1;
-a
-1
-2
-select a from mysqltest.t1;
-a
-1
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 8
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 8
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 5
-connection root;
-disconnect root;
-connection root2;
-disconnect root2;
-connection user1;
-disconnect user1;
-connection user2;
-disconnect user2;
-connection user3;
-disconnect user3;
-connection user4;
-disconnect user4;
-connection unkuser;
-disconnect unkuser;
-connection default;
-set names binary;
-delete from mysql.user where user in ("mysqltest_1","mysqltest_2","mysqltest_3");
-delete from mysql.db where user in ("mysqltest_1","mysqltest_2","mysqltest_3");
-delete from mysql.tables_priv where user in ("mysqltest_1","mysqltest_2","mysqltest_3");
-delete from mysql.columns_priv where user in ("mysqltest_1","mysqltest_2","mysqltest_3");
-flush privileges;
-drop table test.t1,mysqltest.t1,mysqltest.t2;
-drop database mysqltest;
-set GLOBAL query_cache_size=default;
-set GLOBAL query_cache_type=ON;
-set LOCAL query_cache_type=ON;
-set GLOBAL sql_mode=default;
-set GLOBAL query_cache_type=default;
diff --git a/mysql-test/r/grant_cache_ps_prot.result b/mysql-test/r/grant_cache_ps_prot.result
deleted file mode 100644
index 56a98cc076d..00000000000
--- a/mysql-test/r/grant_cache_ps_prot.result
+++ /dev/null
@@ -1,249 +0,0 @@
-set GLOBAL sql_mode="";
-set LOCAL sql_mode="";
-drop table if exists test.t1,mysqltest.t1,mysqltest.t2;
-drop database if exists mysqltest;
-set GLOBAL query_cache_type=ON;
-set LOCAL query_cache_type=ON;
-set GLOBAL query_cache_size=1355776;
-reset query cache;
-flush status;
-connect root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root;
-show grants for current_user;
-Grants for root@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
-GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
-show grants;
-Grants for root@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
-GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
-create database if not exists mysqltest;
-create table mysqltest.t1 (a int,b int,c int);
-create table mysqltest.t2 (a int,b int,c int);
-insert into mysqltest.t1 values (1,1,1),(2,2,2);
-insert into mysqltest.t2 values (3,3,3);
-create table test.t1 (a char (10));
-insert into test.t1 values ("test.t1");
-select * from t1;
-a
-test.t1
-connect root2,localhost,root,,mysqltest,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root2;
-select * from t1;
-a b c
-1 1 1
-2 2 2
-select a from t1;
-a
-1
-2
-select c from t1;
-c
-1
-2
-select * from t2;
-a b c
-3 3 3
-select * from mysqltest.t1,test.t1;
-a b c a
-1 1 1 test.t1
-2 2 2 test.t1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits%";
-Variable_name Value
-Qcache_hits 0
-grant SELECT on mysqltest.* to mysqltest_1@localhost;
-grant SELECT on mysqltest.t1 to mysqltest_2@localhost;
-grant SELECT on test.t1 to mysqltest_2@localhost;
-grant SELECT(a) on mysqltest.t1 to mysqltest_3@localhost;
-connect user1,localhost,mysqltest_1,,mysqltest,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection user1;
-show grants for current_user();
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 0
-select "user1";
-user1
-user1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 1
-select * from t1;
-a b c
-1 1 1
-2 2 2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 1
-select a from t1 ;
-a
-1
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 2
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 1
-select c from t1;
-c
-1
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 3
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 1
-connect unkuser,localhost,unkuser,,,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection unkuser;
-show grants for current_user();
-Grants for @localhost
-GRANT USAGE ON *.* TO ''@'localhost'
-connect user2,localhost,mysqltest_2,,mysqltest,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection user2;
-select "user2";
-user2
-user2
-select * from t1;
-a b c
-1 1 1
-2 2 2
-select a from t1;
-a
-1
-2
-select c from t1;
-c
-1
-2
-select * from mysqltest.t1,test.t1;
-a b c a
-1 1 1 test.t1
-2 2 2 test.t1
-select * from t2;
-ERROR 42000: SELECT command denied to user 'mysqltest_2'@'localhost' for table 't2'
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 7
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 2
-connect user3,localhost,mysqltest_3,,mysqltest,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection user3;
-select "user3";
-user3
-user3
-select * from t1;
-ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table 't1'
-select a from t1;
-a
-1
-2
-select c from t1;
-ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for column 'c' in table 't1'
-select * from t2;
-ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table 't2'
-select mysqltest.t1.c from test.t1,mysqltest.t1;
-ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for column 'c' in table 't1'
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 7
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 3
-connect user4,localhost,mysqltest_1,,*NO-ONE*,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection user4;
-select "user4";
-user4
-user4
-show grants;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-select a from t1;
-ERROR 3D000: No database selected
-select * from mysqltest.t1,test.t1;
-a b c a
-1 1 1 test.t1
-2 2 2 test.t1
-select a from mysqltest.t1;
-a
-1
-2
-select a from mysqltest.t1;
-a
-1
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 8
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 8
-show status like "Qcache_not_cached";
-Variable_name Value
-Qcache_not_cached 4
-connection root;
-disconnect root;
-connection root2;
-disconnect root2;
-connection user1;
-disconnect user1;
-connection user2;
-disconnect user2;
-connection user3;
-disconnect user3;
-connection user4;
-disconnect user4;
-connection unkuser;
-disconnect unkuser;
-connection default;
-set names binary;
-delete from mysql.user where user in ("mysqltest_1","mysqltest_2","mysqltest_3");
-delete from mysql.db where user in ("mysqltest_1","mysqltest_2","mysqltest_3");
-delete from mysql.tables_priv where user in ("mysqltest_1","mysqltest_2","mysqltest_3");
-delete from mysql.columns_priv where user in ("mysqltest_1","mysqltest_2","mysqltest_3");
-flush privileges;
-drop table test.t1,mysqltest.t1,mysqltest.t2;
-drop database mysqltest;
-set GLOBAL query_cache_size=default;
-set GLOBAL query_cache_type=ON;
-set LOCAL query_cache_type=ON;
-set GLOBAL sql_mode=default;
-set GLOBAL query_cache_type=default;
diff --git a/mysql-test/r/grant_explain_non_select.result b/mysql-test/r/grant_explain_non_select.result
deleted file mode 100644
index 53b7d687d6c..00000000000
--- a/mysql-test/r/grant_explain_non_select.result
+++ /dev/null
@@ -1,214 +0,0 @@
-set GLOBAL sql_mode="";
-set LOCAL sql_mode="";
-CREATE DATABASE privtest_db;
-CREATE TABLE privtest_db.t1 (a INT);
-CREATE TABLE privtest_db.t2 (a INT);
-INSERT INTO privtest_db.t2 VALUES (1), (2), (3);
-GRANT USAGE ON *.* TO 'privtest'@'localhost';
-GRANT SELECT ON privtest_db.t2 TO 'privtest'@'localhost';
-connect con1,localhost,privtest,,;
-connection con1;
-USE privtest_db;
-EXPLAIN INSERT INTO t1 VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-INSERT INTO t1 VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-INSERT INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-connection default;
-GRANT INSERT ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-EXPLAIN INSERT INTO t1 VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-INSERT INTO t1 VALUES (10);
-EXPLAIN INSERT INTO t1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-INSERT INTO t1 SELECT * FROM t2;
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
-connection con1;
-EXPLAIN REPLACE INTO t1 VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 VALUES (10);
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1'
-connection default;
-GRANT INSERT ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-EXPLAIN REPLACE INTO t1 VALUES (10);
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 VALUES (10);
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-connection default;
-REVOKE INSERT ON privtest_db.t1 FROM 'privtest'@'localhost';
-GRANT DELETE ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-EXPLAIN REPLACE INTO t1 VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 VALUES (10);
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-REPLACE INTO t1 SELECT * FROM t2;
-ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1'
-connection default;
-GRANT INSERT, DELETE ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-EXPLAIN REPLACE INTO t1 VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-REPLACE INTO t1 VALUES (10);
-EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-REPLACE INTO t1 SELECT * FROM t2;
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
-connection con1;
-EXPLAIN UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-connection default;
-GRANT UPDATE ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-EXPLAIN UPDATE t1 SET a = a + 1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-UPDATE t1 SET a = a + 1;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-connection default;
-REVOKE UPDATE ON privtest_db.t1 FROM 'privtest'@'localhost';
-GRANT SELECT ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-EXPLAIN UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1 SET a = a + 1;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1'
-connection default;
-GRANT UPDATE, SELECT ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-EXPLAIN UPDATE t1 SET a = a + 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8
-UPDATE t1 SET a = a + 1;
-EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
-connection con1;
-EXPLAIN DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-connection default;
-GRANT DELETE ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-EXPLAIN DELETE FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-DELETE FROM t1 WHERE a = 10;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
-EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1'
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
-GRANT SELECT ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-EXPLAIN DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 WHERE a = 10;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1'
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
-GRANT DELETE, SELECT ON privtest_db.t1 TO 'privtest'@'localhost';
-connection con1;
-EXPLAIN DELETE FROM t1 WHERE a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-DELETE FROM t1 WHERE a = 10;
-EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where
-DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
-connection default;
-REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
-CREATE VIEW privtest_db.v1 (a) AS SELECT a FROM privtest_db.t1;
-GRANT SELECT, INSERT, UPDATE, DELETE ON privtest_db.v1 TO 'privtest'@'localhost';
-connection con1;
-EXPLAIN SELECT * FROM v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-SELECT * FROM v1;
-a
-11
-4
-4
-11
-4
-4
-EXPLAIN INSERT INTO v1 VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v1 VALUES (10);
-EXPLAIN INSERT INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-INSERT INTO v1 SELECT * FROM t2;
-EXPLAIN REPLACE INTO v1 VALUES (10);
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v1 VALUES (10);
-EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-REPLACE INTO v1 SELECT * FROM t2;
-EXPLAIN UPDATE v1 SET a = a + 1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1 SET a = a + 1;
-EXPLAIN UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-UPDATE v1, t2 SET v1.a = v1.a + 1 WHERE v1.a = t2.a;
-EXPLAIN DELETE FROM v1 WHERE a = 10;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 WHERE a = 10;
-EXPLAIN DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-DELETE FROM v1 USING v1, t2 WHERE v1.a = t2.a;
-connection default;
-disconnect con1;
-DROP USER 'privtest'@localhost;
-USE test;
-DROP DATABASE privtest_db;
-set GLOBAL sql_mode=default;
-set LOCAL sql_mode=default;
diff --git a/mysql-test/r/grant_lowercase.result b/mysql-test/r/grant_lowercase.result
deleted file mode 100644
index d4a1667595e..00000000000
--- a/mysql-test/r/grant_lowercase.result
+++ /dev/null
@@ -1,25 +0,0 @@
-set sql_mode="";
-grant file on *.* to user1@localhost with grant option;
-grant select on `a%`.* to user1@localhost with grant option;
-connect conn1,localhost,user1,,;
-connection conn1;
-grant file on aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.* to 'user'@'%' identified by 'secret';
-ERROR 42000: Incorrect database name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
-connection default;
-disconnect conn1;
-drop user user1@localhost;
-call mtr.add_suppression("Incorrect database name");
-alter table mysql.host modify Db varchar(200);
-alter table mysql.db modify User char(16) default "", modify Db varchar(200) default "";
-insert mysql.host set db=concat('=>', repeat(_utf8 'й', 200));
-Warnings:
-Warning 1265 Data truncated for column 'Db' at row 1
-insert mysql.db set db=concat('=>', repeat(_utf8 'й', 200));
-Warnings:
-Warning 1265 Data truncated for column 'Db' at row 1
-flush privileges;
-delete from mysql.host where db like '=>%';
-delete from mysql.db where db like '=>%';
-alter table mysql.host modify Db char(64) default "";
-alter table mysql.db modify Db char(64) default "", modify User char(80) default "";
-flush privileges;
diff --git a/mysql-test/r/grant_lowercase_fs.result b/mysql-test/r/grant_lowercase_fs.result
deleted file mode 100644
index e883067eca0..00000000000
--- a/mysql-test/r/grant_lowercase_fs.result
+++ /dev/null
@@ -1,23 +0,0 @@
-create database db1;
-create user user_1@localhost;
-create user USER_1@localhost;
-GRANT CREATE ON db1.* to user_1@localhost;
-GRANT SELECT ON db1.* to USER_1@localhost;
-connect con1,localhost,user_1,,db1;
-CREATE TABLE t1(f1 int);
-SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't1'
-connect con2,localhost,USER_1,,db1;
-SELECT * FROM t1;
-f1
-CREATE TABLE t2(f1 int);
-ERROR 42000: CREATE command denied to user 'USER_1'@'localhost' for table 't2'
-connection default;
-disconnect con1;
-disconnect con2;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1@localhost;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM USER_1@localhost;
-DROP USER user_1@localhost;
-DROP USER USER_1@localhost;
-DROP DATABASE db1;
-use test;
diff --git a/mysql-test/r/greedy_optimizer.result b/mysql-test/r/greedy_optimizer.result
deleted file mode 100644
index de9db45cb15..00000000000
--- a/mysql-test/r/greedy_optimizer.result
+++ /dev/null
@@ -1,739 +0,0 @@
-drop table if exists t1,t2,t3,t4,t5,t6,t7;
-set @save_join_cache_level=@@join_cache_level;
-set join_cache_level=1;
-create table t1 (
-c11 integer,c12 integer,c13 integer,c14 integer,c15 integer,c16 integer,
-primary key (c11)
-);
-create table t2 (
-c21 integer,c22 integer,c23 integer,c24 integer,c25 integer,c26 integer
-);
-create table t3 (
-c31 integer,c32 integer,c33 integer,c34 integer,c35 integer,c36 integer,
-primary key (c31)
-);
-create table t4 (
-c41 integer,c42 integer,c43 integer,c44 integer,c45 integer,c46 integer
-);
-create table t5 (
-c51 integer,c52 integer,c53 integer,c54 integer,c55 integer,c56 integer,
-primary key (c51)
-);
-create table t6 (
-c61 integer,c62 integer,c63 integer,c64 integer,c65 integer,c66 integer
-);
-create table t7 (
-c71 integer,c72 integer,c73 integer,c74 integer,c75 integer,c76 integer,
-primary key (c71)
-);
-insert into t1 values (1,2,3,4,5,6);
-insert into t1 values (2,2,3,4,5,6);
-insert into t1 values (3,2,3,4,5,6);
-insert into t2 values (1,2,3,4,5,6);
-insert into t2 values (2,2,3,4,5,6);
-insert into t2 values (3,2,3,4,5,6);
-insert into t2 values (4,2,3,4,5,6);
-insert into t2 values (5,2,3,4,5,6);
-insert into t2 values (6,2,3,4,5,6);
-insert into t3 values (1,2,3,4,5,6);
-insert into t3 values (2,2,3,4,5,6);
-insert into t3 values (3,2,3,4,5,6);
-insert into t3 values (4,2,3,4,5,6);
-insert into t3 values (5,2,3,4,5,6);
-insert into t3 values (6,2,3,4,5,6);
-insert into t3 values (7,2,3,4,5,6);
-insert into t3 values (8,2,3,4,5,6);
-insert into t3 values (9,2,3,4,5,6);
-insert into t4 values (1,2,3,4,5,6);
-insert into t4 values (2,2,3,4,5,6);
-insert into t4 values (3,2,3,4,5,6);
-insert into t4 values (4,2,3,4,5,6);
-insert into t4 values (5,2,3,4,5,6);
-insert into t4 values (6,2,3,4,5,6);
-insert into t4 values (7,2,3,4,5,6);
-insert into t4 values (8,2,3,4,5,6);
-insert into t4 values (9,2,3,4,5,6);
-insert into t4 values (10,2,3,4,5,6);
-insert into t4 values (11,2,3,4,5,6);
-insert into t4 values (12,2,3,4,5,6);
-insert into t5 values (1,2,3,4,5,6);
-insert into t5 values (2,2,3,4,5,6);
-insert into t5 values (3,2,3,4,5,6);
-insert into t5 values (4,2,3,4,5,6);
-insert into t5 values (5,2,3,4,5,6);
-insert into t5 values (6,2,3,4,5,6);
-insert into t5 values (7,2,3,4,5,6);
-insert into t5 values (8,2,3,4,5,6);
-insert into t5 values (9,2,3,4,5,6);
-insert into t5 values (10,2,3,4,5,6);
-insert into t5 values (11,2,3,4,5,6);
-insert into t5 values (12,2,3,4,5,6);
-insert into t5 values (13,2,3,4,5,6);
-insert into t5 values (14,2,3,4,5,6);
-insert into t5 values (15,2,3,4,5,6);
-insert into t6 values (1,2,3,4,5,6);
-insert into t6 values (2,2,3,4,5,6);
-insert into t6 values (3,2,3,4,5,6);
-insert into t6 values (4,2,3,4,5,6);
-insert into t6 values (5,2,3,4,5,6);
-insert into t6 values (6,2,3,4,5,6);
-insert into t6 values (7,2,3,4,5,6);
-insert into t6 values (8,2,3,4,5,6);
-insert into t6 values (9,2,3,4,5,6);
-insert into t6 values (10,2,3,4,5,6);
-insert into t6 values (11,2,3,4,5,6);
-insert into t6 values (12,2,3,4,5,6);
-insert into t6 values (13,2,3,4,5,6);
-insert into t6 values (14,2,3,4,5,6);
-insert into t6 values (15,2,3,4,5,6);
-insert into t6 values (16,2,3,4,5,6);
-insert into t6 values (17,2,3,4,5,6);
-insert into t6 values (18,2,3,4,5,6);
-insert into t7 values (1,2,3,4,5,6);
-insert into t7 values (2,2,3,4,5,6);
-insert into t7 values (3,2,3,4,5,6);
-insert into t7 values (4,2,3,4,5,6);
-insert into t7 values (5,2,3,4,5,6);
-insert into t7 values (6,2,3,4,5,6);
-insert into t7 values (7,2,3,4,5,6);
-insert into t7 values (8,2,3,4,5,6);
-insert into t7 values (9,2,3,4,5,6);
-insert into t7 values (10,2,3,4,5,6);
-insert into t7 values (11,2,3,4,5,6);
-insert into t7 values (12,2,3,4,5,6);
-insert into t7 values (13,2,3,4,5,6);
-insert into t7 values (14,2,3,4,5,6);
-insert into t7 values (15,2,3,4,5,6);
-insert into t7 values (16,2,3,4,5,6);
-insert into t7 values (17,2,3,4,5,6);
-insert into t7 values (18,2,3,4,5,6);
-insert into t7 values (19,2,3,4,5,6);
-insert into t7 values (20,2,3,4,5,6);
-insert into t7 values (21,2,3,4,5,6);
-select @@optimizer_search_depth;
-@@optimizer_search_depth
-62
-select @@optimizer_prune_level;
-@@optimizer_prune_level
-1
-set optimizer_search_depth=63;
-Warnings:
-Warning 1292 Truncated incorrect optimizer_search_depth value: '63'
-select @@optimizer_search_depth;
-@@optimizer_search_depth
-62
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.c22 1
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.c42 1
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t6.c62 1 Using index
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 1693.637037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.c22 1
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.c42 1
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t6.c62 1 Using index
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 1693.637037
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-set optimizer_prune_level=0;
-select @@optimizer_prune_level;
-@@optimizer_prune_level
-0
-set optimizer_search_depth=0;
-select @@optimizer_search_depth;
-@@optimizer_search_depth
-0
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.c22 1
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.c42 1
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t6.c62 1 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 1371.437037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.c22 1
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.c42 1
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t6.c62 1 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 1371.437037
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer (flat, BNL join)
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 362.618727
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer (flat, BNL join)
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 362.618727
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 362.618727
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 362.618727
-set optimizer_search_depth=1;
-select @@optimizer_search_depth;
-@@optimizer_search_depth
-1
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.c22 1
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.c42 1
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t6.c62 1 Using index
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 1693.637037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.c22 1
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.c42 1
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t6.c62 1 Using index
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 1693.637037
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-set optimizer_search_depth=62;
-select @@optimizer_search_depth;
-@@optimizer_search_depth
-62
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.c22 1
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.c42 1
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t6.c62 1 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 1371.437037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.c22 1
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.c42 1
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t6.c62 1 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 1371.437037
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer (flat, BNL join)
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 362.618727
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer (flat, BNL join)
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 362.618727
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 362.618727
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 362.618727
-set optimizer_prune_level=1;
-select @@optimizer_prune_level;
-@@optimizer_prune_level
-1
-set optimizer_search_depth=0;
-select @@optimizer_search_depth;
-@@optimizer_search_depth
-0
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.c22 1
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.c42 1
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t6.c62 1 Using index
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 1693.637037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.c22 1
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.c42 1
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t6.c62 1 Using index
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 1693.637037
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-set optimizer_search_depth=1;
-select @@optimizer_search_depth;
-@@optimizer_search_depth
-1
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.c22 1
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.c42 1
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t6.c62 1 Using index
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 1693.637037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.c22 1
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.c42 1
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t6.c62 1 Using index
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 1693.637037
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-set optimizer_search_depth=62;
-select @@optimizer_search_depth;
-@@optimizer_search_depth
-62
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.c22 1
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.c42 1
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t6.c62 1 Using index
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 1693.637037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.c22 1
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.c42 1
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t6.c62 1 Using index
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 1693.637037
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-show status like 'Last_query_cost';
-Variable_name Value
-Last_query_cost 844.037037
-drop table t1,t2,t3,t4,t5,t6,t7;
-CREATE TABLE t1 (a int, b int, d int, i int);
-INSERT INTO t1 VALUES (1,1,1,1);
-CREATE TABLE t2 (b int, c int, j int);
-INSERT INTO t2 VALUES (1,1,1);
-CREATE TABLE t2_1 (j int);
-INSERT INTO t2_1 VALUES (1);
-CREATE TABLE t3 (c int, f int);
-INSERT INTO t3 VALUES (1,1);
-CREATE TABLE t3_1 (f int);
-INSERT INTO t3_1 VALUES (1);
-CREATE TABLE t4 (d int, e int, k int);
-INSERT INTO t4 VALUES (1,1,1);
-CREATE TABLE t4_1 (k int);
-INSERT INTO t4_1 VALUES (1);
-CREATE TABLE t5 (g int, d int, h int, l int);
-INSERT INTO t5 VALUES (1,1,1,1);
-CREATE TABLE t5_1 (l int);
-INSERT INTO t5_1 VALUES (1);
-SET optimizer_search_depth = 3;
-SELECT 1
-FROM t1
-LEFT JOIN (
-t2 JOIN t3 ON t3.c = t2.c
-) ON t2.b = t1.b
-LEFT JOIN (
-t4 JOIN t5 ON t5.d = t4.d
-) ON t4.d = t1.d
-;
-1
-1
-SELECT 1
-FROM t1
-LEFT JOIN (
-t2 LEFT JOIN (t3 JOIN t3_1 ON t3.f = t3_1.f) ON t3.c = t2.c
-) ON t2.b = t1.b
-LEFT JOIN (
-t4 JOIN t5 ON t5.d = t4.d
-) ON t4.d = t1.d
-;
-1
-1
-SELECT 1
-FROM t1
-LEFT JOIN (
-(t2 JOIN t2_1 ON t2.j = t2_1.j) JOIN t3 ON t3.c = t2.c
-) ON t2.b = t1.b
-LEFT JOIN (
-t4 JOIN t5 ON t5.d = t4.d
-) ON t4.d = t1.d
-;
-1
-1
-SELECT 1
-FROM t1
-LEFT JOIN (
-t2 JOIN t3 ON t3.c = t2.c
-) ON t2.b = t1.b
-LEFT JOIN (
-(t4 JOIN t4_1 ON t4.k = t4_1.k) LEFT JOIN t5 ON t5.d = t4.d
-) ON t4.d = t1.d
-;
-1
-1
-SELECT 1
-FROM t1
-LEFT JOIN (
-t2 JOIN t3 ON t3.c = t2.c
-) ON t2.b = t1.b
-LEFT JOIN (
-t4 LEFT JOIN (t5 JOIN t5_1 ON t5.l = t5_1.l) ON t5.d = t4.d
-) ON t4.d = t1.d
-;
-1
-1
-SET optimizer_search_depth = DEFAULT;
-DROP TABLE t1,t2,t2_1,t3,t3_1,t4,t4_1,t5,t5_1;
-End of 5.0 tests
-set join_cache_level=@save_join_cache_level;
diff --git a/mysql-test/r/group_by.result b/mysql-test/r/group_by.result
deleted file mode 100644
index 62c659dd933..00000000000
--- a/mysql-test/r/group_by.result
+++ /dev/null
@@ -1,2834 +0,0 @@
-drop table if exists t1,t2,t3;
-SELECT 1 FROM (SELECT 1) as a GROUP BY SUM(1);
-ERROR HY000: Invalid use of group function
-CREATE TABLE t1 (
-spID int(10) unsigned,
-userID int(10) unsigned,
-score smallint(5) unsigned,
-lsg char(40),
-date date
-);
-INSERT INTO t1 VALUES (1,1,1,'','0000-00-00');
-INSERT INTO t1 VALUES (2,2,2,'','0000-00-00');
-INSERT INTO t1 VALUES (2,1,1,'','0000-00-00');
-INSERT INTO t1 VALUES (3,3,3,'','0000-00-00');
-CREATE TABLE t2 (
-userID int(10) unsigned NOT NULL auto_increment,
-niName char(15),
-passwd char(8),
-mail char(50),
-isAukt enum('N','Y') DEFAULT 'N',
-vName char(30),
-nName char(40),
-adr char(60),
-plz char(5),
-ort char(35),
-land char(20),
-PRIMARY KEY (userID)
-);
-INSERT INTO t2 VALUES (1,'name','pass','mail','Y','v','n','adr','1','1','1');
-INSERT INTO t2 VALUES (2,'name','pass','mail','Y','v','n','adr','1','1','1');
-INSERT INTO t2 VALUES (3,'name','pass','mail','Y','v','n','adr','1','1','1');
-INSERT INTO t2 VALUES (4,'name','pass','mail','Y','v','n','adr','1','1','1');
-INSERT INTO t2 VALUES (5,'name','pass','mail','Y','v','n','adr','1','1','1');
-SELECT t2.userid, MIN(t1.score) FROM t1, t2 WHERE t1.userID=t2.userID GROUP BY t2.userid;
-userid MIN(t1.score)
-1 1
-2 2
-3 3
-SELECT t2.userid, MIN(t1.score) FROM t1, t2 WHERE t1.userID=t2.userID GROUP BY t2.userid ORDER BY NULL;
-userid MIN(t1.score)
-1 1
-2 2
-3 3
-SELECT t2.userid, MIN(t1.score) FROM t1, t2 WHERE t1.userID=t2.userID AND t1.spID=2 GROUP BY t2.userid;
-userid MIN(t1.score)
-1 1
-2 2
-SELECT t2.userid, MIN(t1.score+0.0) FROM t1, t2 WHERE t1.userID=t2.userID AND t1.spID=2 GROUP BY t2.userid;
-userid MIN(t1.score+0.0)
-1 1.0
-2 2.0
-SELECT t2.userid, MIN(t1.score+0.0) FROM t1, t2 WHERE t1.userID=t2.userID AND t1.spID=2 GROUP BY t2.userid ORDER BY NULL;
-userid MIN(t1.score+0.0)
-2 2.0
-1 1.0
-EXPLAIN SELECT t2.userid, MIN(t1.score+0.0) FROM t1, t2 WHERE t1.userID=t2.userID AND t1.spID=2 GROUP BY t2.userid ORDER BY NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where; Using temporary
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.userID 1 Using index
-drop table t1,t2;
-CREATE TABLE t1 (
-PID int(10) unsigned NOT NULL auto_increment,
-payDate date DEFAULT '0000-00-00' NOT NULL,
-recDate datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
-URID int(10) unsigned DEFAULT '0' NOT NULL,
-CRID int(10) unsigned DEFAULT '0' NOT NULL,
-amount int(10) unsigned DEFAULT '0' NOT NULL,
-operator int(10) unsigned,
-method enum('unknown','cash','dealer','check','card','lazy','delayed','test') DEFAULT 'unknown' NOT NULL,
-DIID int(10) unsigned,
-reason char(1) binary DEFAULT '' NOT NULL,
-code_id int(10) unsigned,
-qty mediumint(8) unsigned DEFAULT '0' NOT NULL,
-PRIMARY KEY (PID),
-KEY URID (URID),
-KEY reason (reason),
-KEY method (method),
-KEY payDate (payDate)
-);
-INSERT INTO t1 VALUES (1,'1970-01-01','1997-10-17 00:00:00',2529,1,21000,11886,'check',0,'F',16200,6);
-SELECT COUNT(P.URID),SUM(P.amount),P.method, MIN(PP.recdate+0) > 19980501000000 AS IsNew FROM t1 AS P JOIN t1 as PP WHERE P.URID = PP.URID GROUP BY method,IsNew;
-ERROR 42000: Can't group on 'IsNew'
-drop table t1;
-CREATE TABLE t1 (
-cid mediumint(9) NOT NULL auto_increment,
-firstname varchar(32) DEFAULT '' NOT NULL,
-surname varchar(32) DEFAULT '' NOT NULL,
-PRIMARY KEY (cid)
-);
-INSERT INTO t1 VALUES (1,'That','Guy');
-INSERT INTO t1 VALUES (2,'Another','Gent');
-CREATE TABLE t2 (
-call_id mediumint(8) NOT NULL auto_increment,
-contact_id mediumint(8) DEFAULT '0' NOT NULL,
-PRIMARY KEY (call_id),
-KEY contact_id (contact_id)
-);
-lock tables t1 read,t2 write;
-INSERT INTO t2 VALUES (10,2);
-INSERT INTO t2 VALUES (18,2);
-INSERT INTO t2 VALUES (62,2);
-INSERT INTO t2 VALUES (91,2);
-INSERT INTO t2 VALUES (92,2);
-SELECT cid, CONCAT(firstname, ' ', surname), COUNT(call_id) FROM t1 LEFT JOIN t2 ON cid=contact_id WHERE firstname like '%foo%' GROUP BY cid;
-cid CONCAT(firstname, ' ', surname) COUNT(call_id)
-SELECT cid, CONCAT(firstname, ' ', surname), COUNT(call_id) FROM t1 LEFT JOIN t2 ON cid=contact_id WHERE firstname like '%foo%' GROUP BY cid ORDER BY NULL;
-cid CONCAT(firstname, ' ', surname) COUNT(call_id)
-SELECT HIGH_PRIORITY cid, CONCAT(firstname, ' ', surname), COUNT(call_id) FROM t1 LEFT JOIN t2 ON cid=contact_id WHERE firstname like '%foo%' GROUP BY cid ORDER BY surname, firstname;
-cid CONCAT(firstname, ' ', surname) COUNT(call_id)
-drop table t2;
-unlock tables;
-drop table t1;
-CREATE TABLE t1 (
-bug_id mediumint(9) NOT NULL auto_increment,
-groupset bigint(20) DEFAULT '0' NOT NULL,
-assigned_to mediumint(9) DEFAULT '0' NOT NULL,
-bug_file_loc text,
-bug_severity enum('blocker','critical','major','normal','minor','trivial','enhancement') DEFAULT 'blocker' NOT NULL,
-bug_status enum('','NEW','ASSIGNED','REOPENED','RESOLVED','VERIFIED','CLOSED') DEFAULT 'NEW' NOT NULL,
-creation_ts datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
-delta_ts timestamp,
-short_desc mediumtext,
-long_desc mediumtext,
-op_sys enum('All','Windows 3.1','Windows 95','Windows 98','Windows NT','Windows 2000','Linux','other') DEFAULT 'All' NOT NULL,
-priority enum('P1','P2','P3','P4','P5') DEFAULT 'P1' NOT NULL,
-product varchar(64) DEFAULT '' NOT NULL,
-rep_platform enum('All','PC','VTD-8','Other'),
-reporter mediumint(9) DEFAULT '0' NOT NULL,
-version varchar(16) DEFAULT '' NOT NULL,
-component varchar(50) DEFAULT '' NOT NULL,
-resolution enum('','FIXED','INVALID','WONTFIX','LATER','REMIND','DUPLICATE','WORKSFORME') DEFAULT '' NOT NULL,
-target_milestone varchar(20) DEFAULT '' NOT NULL,
-qa_contact mediumint(9) DEFAULT '0' NOT NULL,
-status_whiteboard mediumtext NOT NULL,
-votes mediumint(9) DEFAULT '0' NOT NULL,
-PRIMARY KEY (bug_id),
-KEY assigned_to (assigned_to),
-KEY creation_ts (creation_ts),
-KEY delta_ts (delta_ts),
-KEY bug_severity (bug_severity),
-KEY bug_status (bug_status),
-KEY op_sys (op_sys),
-KEY priority (priority),
-KEY product (product),
-KEY reporter (reporter),
-KEY version (version),
-KEY component (component),
-KEY resolution (resolution),
-KEY target_milestone (target_milestone),
-KEY qa_contact (qa_contact),
-KEY votes (votes)
-);
-INSERT INTO t1 VALUES (1,0,0,'','normal','','2000-02-10 09:25:12',20000321114747,'','','Linux','P1','TestProduct','PC',3,'other','TestComponent','','M1',0,'',0);
-INSERT INTO t1 VALUES (9,0,0,'','enhancement','','2000-03-10 11:49:36',20000321114747,'','','All','P5','AAAAA','PC',3,'2.00 CD - Pre','BBBBBBBBBBBBB - conversion','','',0,'',0);
-INSERT INTO t1 VALUES (10,0,0,'','enhancement','','2000-03-10 18:10:16',20000321114747,'','','All','P4','AAAAA','PC',3,'2.00 CD - Pre','BBBBBBBBBBBBB - conversion','','',0,'',0);
-INSERT INTO t1 VALUES (7,0,0,'','critical','','2000-03-09 10:50:21',20000321114747,'','','All','P1','AAAAA','PC',3,'2.00 CD - Pre','BBBBBBBBBBBBB - generic','','',0,'',0);
-INSERT INTO t1 VALUES (6,0,0,'','normal','','2000-03-09 10:42:44',20000321114747,'','','All','P2','AAAAA','PC',3,'2.00 CD - Pre','kkkkkkkkkkk lllllllllll','','',0,'',0);
-INSERT INTO t1 VALUES (8,0,0,'','major','','2000-03-09 11:32:14',20000321114747,'','','All','P3','AAAAA','PC',3,'2.00 CD - Pre','kkkkkkkkkkk lllllllllll','','',0,'',0);
-INSERT INTO t1 VALUES (5,0,0,'','enhancement','','2000-03-09 10:38:59',20000321114747,'','','All','P5','CCC/CCCCCC','PC',5,'7.00','Administration','','',0,'',0);
-INSERT INTO t1 VALUES (4,0,0,'','normal','','2000-03-08 18:32:14',20000321114747,'','','other','P2','TestProduct','Other',3,'other','TestComponent2','','',0,'',0);
-INSERT INTO t1 VALUES (3,0,0,'','normal','','2000-03-08 18:30:52',20000321114747,'','','other','P2','TestProduct','Other',3,'other','TestComponent','','',0,'',0);
-INSERT INTO t1 VALUES (2,0,0,'','enhancement','','2000-03-08 18:24:51',20000321114747,'','','All','P2','TestProduct','Other',4,'other','TestComponent2','','',0,'',0);
-INSERT INTO t1 VALUES (11,0,0,'','blocker','','2000-03-13 09:43:41',20000321114747,'','','All','P2','CCC/CCCCCC','PC',5,'7.00','DDDDDDDDD','','',0,'',0);
-INSERT INTO t1 VALUES (12,0,0,'','normal','','2000-03-13 16:14:31',20000321114747,'','','All','P2','AAAAA','PC',3,'2.00 CD - Pre','kkkkkkkkkkk lllllllllll','','',0,'',0);
-INSERT INTO t1 VALUES (13,0,0,'','normal','','2000-03-15 16:20:44',20000321114747,'','','other','P2','TestProduct','Other',3,'other','TestComponent','','',0,'',0);
-INSERT INTO t1 VALUES (14,0,0,'','blocker','','2000-03-15 18:13:47',20000321114747,'','','All','P1','AAAAA','PC',3,'2.00 CD - Pre','BBBBBBBBBBBBB - generic','','',0,'',0);
-INSERT INTO t1 VALUES (15,0,0,'','minor','','2000-03-16 18:03:28',20000321114747,'','','All','P2','CCC/CCCCCC','Other',5,'7.00','DDDDDDDDD','','',0,'',0);
-INSERT INTO t1 VALUES (16,0,0,'','normal','','2000-03-16 18:33:41',20000321114747,'','','All','P2','CCC/CCCCCC','Other',5,'7.00','Administration','','',0,'',0);
-INSERT INTO t1 VALUES (17,0,0,'','normal','','2000-03-16 18:34:18',20000321114747,'','','All','P2','CCC/CCCCCC','Other',5,'7.00','Administration','','',0,'',0);
-INSERT INTO t1 VALUES (18,0,0,'','normal','','2000-03-16 18:34:56',20000321114747,'','','All','P2','CCC/CCCCCC','Other',5,'7.00','Administration','','',0,'',0);
-INSERT INTO t1 VALUES (19,0,0,'','enhancement','','2000-03-16 18:35:34',20000321114747,'','','All','P2','CCC/CCCCCC','Other',5,'7.00','Administration','','',0,'',0);
-INSERT INTO t1 VALUES (20,0,0,'','enhancement','','2000-03-16 18:36:23',20000321114747,'','','All','P2','CCC/CCCCCC','Other',5,'7.00','Administration','','',0,'',0);
-INSERT INTO t1 VALUES (21,0,0,'','enhancement','','2000-03-16 18:37:23',20000321114747,'','','All','P2','CCC/CCCCCC','Other',5,'7.00','Administration','','',0,'',0);
-INSERT INTO t1 VALUES (22,0,0,'','enhancement','','2000-03-16 18:38:16',20000321114747,'','','All','P2','CCC/CCCCCC','Other',5,'7.00','Administration','','',0,'',0);
-INSERT INTO t1 VALUES (23,0,0,'','normal','','2000-03-16 18:58:12',20000321114747,'','','All','P2','CCC/CCCCCC','Other',5,'7.00','DDDDDDDDD','','',0,'',0);
-INSERT INTO t1 VALUES (24,0,0,'','normal','','2000-03-17 11:08:10',20000321114747,'','','All','P2','AAAAAAAA-AAA','PC',3,'2.8','Web Interface','','',0,'',0);
-INSERT INTO t1 VALUES (25,0,0,'','normal','','2000-03-17 11:10:45',20000321114747,'','','All','P2','AAAAAAAA-AAA','PC',3,'2.8','Web Interface','','',0,'',0);
-INSERT INTO t1 VALUES (26,0,0,'','normal','','2000-03-17 11:15:47',20000321114747,'','','All','P2','AAAAAAAA-AAA','PC',3,'2.8','Web Interface','','',0,'',0);
-INSERT INTO t1 VALUES (27,0,0,'','normal','','2000-03-17 17:45:41',20000321114747,'','','All','P2','CCC/CCCCCC','PC',5,'7.00','DDDDDDDDD','','',0,'',0);
-INSERT INTO t1 VALUES (28,0,0,'','normal','','2000-03-20 09:51:45',20000321114747,'','','Windows NT','P2','TestProduct','PC',8,'other','TestComponent','','',0,'',0);
-INSERT INTO t1 VALUES (29,0,0,'','normal','','2000-03-20 11:15:09',20000321114747,'','','All','P5','AAAAAAAA-AAA','PC',3,'2.8','Web Interface','','',0,'',0);
-CREATE TABLE t2 (
-value tinytext,
-program varchar(64),
-initialowner tinytext NOT NULL,
-initialqacontact tinytext NOT NULL,
-description mediumtext NOT NULL
-);
-INSERT INTO t2 VALUES ('TestComponent','TestProduct','id0001','','');
-INSERT INTO t2 VALUES ('BBBBBBBBBBBBB - conversion','AAAAA','id0001','','');
-INSERT INTO t2 VALUES ('BBBBBBBBBBBBB - generic','AAAAA','id0001','','');
-INSERT INTO t2 VALUES ('TestComponent2','TestProduct','id0001','','');
-INSERT INTO t2 VALUES ('BBBBBBBBBBBBB - eeeeeeeee','AAAAA','id0001','','');
-INSERT INTO t2 VALUES ('kkkkkkkkkkk lllllllllll','AAAAA','id0001','','');
-INSERT INTO t2 VALUES ('Test Procedures','AAAAA','id0001','','');
-INSERT INTO t2 VALUES ('Documentation','AAAAA','id0003','','');
-INSERT INTO t2 VALUES ('DDDDDDDDD','CCC/CCCCCC','id0002','','');
-INSERT INTO t2 VALUES ('Eeeeeeee Lite','CCC/CCCCCC','id0002','','');
-INSERT INTO t2 VALUES ('Eeeeeeee Full','CCC/CCCCCC','id0002','','');
-INSERT INTO t2 VALUES ('Administration','CCC/CCCCCC','id0002','','');
-INSERT INTO t2 VALUES ('Distribution','CCC/CCCCCC','id0002','','');
-INSERT INTO t2 VALUES ('Setup','CCC/CCCCCC','id0002','','');
-INSERT INTO t2 VALUES ('Unspecified','CCC/CCCCCC','id0002','','');
-INSERT INTO t2 VALUES ('Web Interface','AAAAAAAA-AAA','id0001','','');
-INSERT INTO t2 VALUES ('Host communication','AAAAA','id0001','','');
-select value,description,bug_id from t2 left join t1 on t2.program=t1.product and t2.value=t1.component where program="AAAAA";
-value description bug_id
-BBBBBBBBBBBBB - conversion 9
-BBBBBBBBBBBBB - conversion 10
-BBBBBBBBBBBBB - generic 7
-BBBBBBBBBBBBB - generic 14
-BBBBBBBBBBBBB - eeeeeeeee NULL
-kkkkkkkkkkk lllllllllll 6
-kkkkkkkkkkk lllllllllll 8
-kkkkkkkkkkk lllllllllll 12
-Test Procedures NULL
-Documentation NULL
-Host communication NULL
-select value,description,COUNT(bug_id) from t2 left join t1 on t2.program=t1.product and t2.value=t1.component where program="AAAAA" group by value;
-value description COUNT(bug_id)
-BBBBBBBBBBBBB - conversion 2
-BBBBBBBBBBBBB - eeeeeeeee 0
-BBBBBBBBBBBBB - generic 2
-Documentation 0
-Host communication 0
-kkkkkkkkkkk lllllllllll 3
-Test Procedures 0
-select value,description,COUNT(bug_id) from t2 left join t1 on t2.program=t1.product and t2.value=t1.component where program="AAAAA" group by value having COUNT(bug_id) IN (0,2);
-value description COUNT(bug_id)
-BBBBBBBBBBBBB - conversion 2
-BBBBBBBBBBBBB - eeeeeeeee 0
-BBBBBBBBBBBBB - generic 2
-Documentation 0
-Host communication 0
-Test Procedures 0
-drop table t1,t2;
-create table t1 (foo int);
-insert into t1 values (1);
-select 1+1, "a",count(*) from t1 where foo in (2);
-1+1 a count(*)
-2 a 0
-insert into t1 values (1);
-select 1+1,"a",count(*) from t1 where foo in (2);
-1+1 a count(*)
-2 a 0
-drop table t1;
-CREATE TABLE t1 (
-spID int(10) unsigned,
-userID int(10) unsigned,
-score smallint(5) unsigned,
-key (spid),
-key (score)
-);
-INSERT INTO t1 VALUES (1,1,1),(2,2,2),(2,1,1),(3,3,3),(4,3,3),(5,3,3),(6,3,3),(7,3,3);
-explain select userid,count(*) from t1 group by userid desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using temporary; Using filesort
-explain select userid,count(*) from t1 group by userid desc order by null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using temporary
-select userid,count(*) from t1 group by userid desc;
-userid count(*)
-3 5
-2 1
-1 2
-select userid,count(*) from t1 group by userid desc having (count(*)+1) IN (4,3);
-userid count(*)
-1 2
-select userid,count(*) from t1 group by userid desc having 3 IN (1,COUNT(*));
-userid count(*)
-explain select spid,count(*) from t1 where spid between 1 and 2 group by spid desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range spID spID 5 NULL 3 Using where; Using index
-explain select spid,count(*) from t1 where spid between 1 and 2 group by spid;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range spID spID 5 NULL 3 Using where; Using index
-explain select spid,count(*) from t1 where spid between 1 and 2 group by spid order by null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range spID spID 5 NULL 3 Using where; Using index
-select spid,count(*) from t1 where spid between 1 and 2 group by spid;
-spid count(*)
-1 1
-2 2
-select spid,count(*) from t1 where spid between 1 and 2 group by spid desc;
-spid count(*)
-2 2
-1 1
-explain extended select sql_big_result spid,sum(userid) from t1 group by spid desc;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using filesort
-Warnings:
-Note 1003 select sql_big_result `test`.`t1`.`spID` AS `spid`,sum(`test`.`t1`.`userID`) AS `sum(userid)` from `test`.`t1` group by `test`.`t1`.`spID` desc
-explain select sql_big_result spid,sum(userid) from t1 group by spid desc order by null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using filesort
-select sql_big_result spid,sum(userid) from t1 group by spid desc;
-spid sum(userid)
-7 3
-6 3
-5 3
-4 3
-3 3
-2 3
-1 1
-explain select sql_big_result score,count(*) from t1 group by score desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL score 3 NULL 8 Using index; Using filesort
-explain select sql_big_result score,count(*) from t1 group by score desc order by null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL score 3 NULL 8 Using index; Using filesort
-select sql_big_result score,count(*) from t1 group by score desc;
-score count(*)
-3 5
-2 1
-1 2
-drop table t1;
-create table t1 (a date default null, b date default null);
-insert t1 values ('1999-10-01','2000-01-10'), ('1997-01-01','1998-10-01');
-select a,min(b) c,count(distinct rand()) from t1 group by a having c<a + interval 1 day;
-a c count(distinct rand())
-drop table t1;
-CREATE TABLE t1 (a char(1));
-INSERT INTO t1 VALUES ('A'),('B'),('A'),('B'),('A'),('B'),(NULL),('a'),('b'),(NULL),('A'),('B'),(NULL);
-SELECT a FROM t1 GROUP BY a;
-a
-NULL
-A
-B
-SELECT a,count(*) FROM t1 GROUP BY a;
-a count(*)
-NULL 3
-A 5
-B 5
-SELECT a FROM t1 GROUP BY binary a;
-a
-NULL
-A
-B
-a
-b
-SELECT a,count(*) FROM t1 GROUP BY binary a;
-a count(*)
-NULL 3
-A 4
-B 4
-a 1
-b 1
-SELECT binary a FROM t1 GROUP BY 1;
-binary a
-NULL
-A
-B
-a
-b
-SELECT binary a,count(*) FROM t1 GROUP BY 1;
-binary a count(*)
-NULL 3
-A 4
-B 4
-a 1
-b 1
-SET BIG_TABLES=1;
-SELECT a FROM t1 GROUP BY a;
-a
-NULL
-A
-B
-SELECT a,count(*) FROM t1 GROUP BY a;
-a count(*)
-NULL 3
-A 5
-B 5
-SELECT a FROM t1 GROUP BY binary a;
-a
-NULL
-A
-B
-a
-b
-SELECT a,count(*) FROM t1 GROUP BY binary a;
-a count(*)
-NULL 3
-A 4
-B 4
-a 1
-b 1
-SELECT binary a FROM t1 GROUP BY 1;
-binary a
-NULL
-A
-B
-a
-b
-SELECT binary a,count(*) FROM t1 GROUP BY 1;
-binary a count(*)
-NULL 3
-A 4
-B 4
-a 1
-b 1
-SET BIG_TABLES=0;
-drop table t1;
-CREATE TABLE t1 (
-`a` char(193) default NULL,
-`b` char(63) default NULL
-);
-INSERT INTO t1 VALUES ('abc','def'),('hij','klm');
-SELECT CONCAT(a, b) FROM t1 GROUP BY 1;
-CONCAT(a, b)
-abcdef
-hijklm
-SELECT CONCAT(a, b),count(*) FROM t1 GROUP BY 1;
-CONCAT(a, b) count(*)
-abcdef 1
-hijklm 1
-SELECT CONCAT(a, b),count(distinct a) FROM t1 GROUP BY 1;
-CONCAT(a, b) count(distinct a)
-abcdef 1
-hijklm 1
-SELECT 1 FROM t1 GROUP BY CONCAT(a, b);
-1
-1
-1
-INSERT INTO t1 values ('hij','klm');
-SELECT CONCAT(a, b),count(*) FROM t1 GROUP BY 1;
-CONCAT(a, b) count(*)
-abcdef 1
-hijklm 2
-DROP TABLE t1;
-create table t1 (One int unsigned, Two int unsigned, Three int unsigned, Four int unsigned);
-insert into t1 values (1,2,1,4),(1,2,2,4),(1,2,3,4),(1,2,4,4),(1,1,1,4),(1,1,2,4),(1,1,3,4),(1,1,4,4),(1,3,1,4),(1,3,2,4),(1,3,3,4),(1,3,4,4);
-select One, Two, sum(Four) from t1 group by One,Two;
-One Two sum(Four)
-1 1 16
-1 2 16
-1 3 16
-drop table t1;
-create table t1 (id integer primary key not null auto_increment, gender char(1));
-insert into t1 values (NULL, 'M'), (NULL, 'F'),(NULL, 'F'),(NULL, 'F'),(NULL, 'M');
-create table t2 (user_id integer not null, date date);
-insert into t2 values (1, '2002-06-09'),(2, '2002-06-09'),(1, '2002-06-09'),(3, '2002-06-09'),(4, '2002-06-09'),(4, '2002-06-09');
-select u.gender as gender, count(distinct u.id) as dist_count, (count(distinct u.id)/5*100) as percentage from t1 u, t2 l where l.user_id = u.id group by u.gender;
-gender dist_count percentage
-F 3 60.0000
-M 1 20.0000
-select u.gender as gender, count(distinct u.id) as dist_count, (count(distinct u.id)/5*100) as percentage from t1 u, t2 l where l.user_id = u.id group by u.gender order by percentage;
-gender dist_count percentage
-M 1 20.0000
-F 3 60.0000
-drop table t1,t2;
-CREATE TABLE t1 (ID1 int, ID2 int, ID int NOT NULL AUTO_INCREMENT,PRIMARY KEY(ID
-));
-insert into t1 values (1,244,NULL),(2,243,NULL),(134,223,NULL),(185,186,NULL);
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-select S.ID as xID, S.ID1 as xID1 from t1 as S left join t1 as yS on S.ID1 between yS.ID1 and yS.ID2;
-xID xID1
-1 1
-2 2
-2 2
-3 134
-3 134
-3 134
-4 185
-4 185
-4 185
-4 185
-select S.ID as xID, S.ID1 as xID1, repeat('*',count(distinct yS.ID)) as Level from t1 as S left join t1 as yS on S.ID1 between yS.ID1 and yS.ID2 group by xID order by xID1;
-xID xID1 Level
-1 1 *
-2 2 **
-3 134 ***
-4 185 ****
-SET optimizer_switch=@save_optimizer_switch;
-drop table t1;
-CREATE TABLE t1 (
-pid int(11) unsigned NOT NULL default '0',
-c1id int(11) unsigned default NULL,
-c2id int(11) unsigned default NULL,
-value int(11) unsigned NOT NULL default '0',
-UNIQUE KEY pid2 (pid,c1id,c2id),
-UNIQUE KEY pid (pid,value)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1, 1, NULL, 1),(1, 2, NULL, 2),(1, NULL, 3, 3),(1, 4, NULL, 4),(1, 5, NULL, 5);
-CREATE TABLE t2 (
-id int(11) unsigned NOT NULL default '0',
-active enum('Yes','No') NOT NULL default 'Yes',
-PRIMARY KEY (id)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1, 'Yes'),(2, 'No'),(4, 'Yes'),(5, 'No');
-CREATE TABLE t3 (
-id int(11) unsigned NOT NULL default '0',
-active enum('Yes','No') NOT NULL default 'Yes',
-PRIMARY KEY (id)
-);
-INSERT INTO t3 VALUES (3, 'Yes');
-select * from t1 AS m LEFT JOIN t2 AS c1 ON m.c1id =
-c1.id AND c1.active = 'Yes' LEFT JOIN t3 AS c2 ON m.c2id = c2.id AND
-c2.active = 'Yes' WHERE m.pid=1 AND (c1.id IS NOT NULL OR c2.id IS NOT NULL);
-pid c1id c2id value id active id active
-1 1 NULL 1 1 Yes NULL NULL
-1 NULL 3 3 NULL NULL 3 Yes
-1 4 NULL 4 4 Yes NULL NULL
-select max(value) from t1 AS m LEFT JOIN t2 AS c1 ON
-m.c1id = c1.id AND c1.active = 'Yes' LEFT JOIN t3 AS c2 ON m.c2id =
-c2.id AND c2.active = 'Yes' WHERE m.pid=1 AND (c1.id IS NOT NULL OR c2.id IS
-NOT NULL);
-max(value)
-4
-drop table t1,t2,t3;
-create table t1 (a blob null);
-insert into t1 values (NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(""),(""),(""),("b");
-select a,count(*) from t1 group by a;
-a count(*)
-NULL 9
- 3
-b 1
-set big_tables=1;
-select a,count(*) from t1 group by a;
-a count(*)
-NULL 9
- 3
-b 1
-drop table t1;
-set big_tables=0;
-create table t1 (a int not null, b int not null);
-insert into t1 values (1,1),(1,2),(3,1),(3,2),(2,2),(2,1);
-create table t2 (a int not null, b int not null, key(a));
-insert into t2 values (1,3),(3,1),(2,2),(1,1);
-select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b;
-a b
-1 1
-1 3
-2 2
-3 1
-select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b ORDER BY NULL;
-a b
-1 3
-3 1
-2 2
-1 1
-explain select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using temporary; Using filesort
-1 SIMPLE t2 ALL a NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-explain select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b ORDER BY NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using temporary
-1 SIMPLE t2 ALL a NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-drop table t1,t2;
-create table t1 (a int, b int);
-insert into t1 values (1, 4),(10, 40),(1, 4),(10, 43),(1, 4),(10, 41),(1, 4),(10, 43),(1, 4);
-select a, MAX(b), INTERVAL (MAX(b), 1,3,10,30,39,40,50,60,100,1000) from t1 group by a;
-a MAX(b) INTERVAL (MAX(b), 1,3,10,30,39,40,50,60,100,1000)
-1 4 2
-10 43 6
-select a, MAX(b), CASE MAX(b) when 4 then 4 when 43 then 43 else 0 end from t1 group by a;
-a MAX(b) CASE MAX(b) when 4 then 4 when 43 then 43 else 0 end
-1 4 4
-10 43 43
-select a, MAX(b), FIELD(MAX(b), '43', '4', '5') from t1 group by a;
-a MAX(b) FIELD(MAX(b), '43', '4', '5')
-1 4 2
-10 43 1
-select a, MAX(b), CONCAT_WS(MAX(b), '43', '4', '5') from t1 group by a;
-a MAX(b) CONCAT_WS(MAX(b), '43', '4', '5')
-1 4 434445
-10 43 43434435
-select a, MAX(b), ELT(MAX(b), 'a', 'b', 'c', 'd', 'e', 'f') from t1 group by a;
-a MAX(b) ELT(MAX(b), 'a', 'b', 'c', 'd', 'e', 'f')
-1 4 d
-10 43 NULL
-select a, MAX(b), MAKE_SET(MAX(b), 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h') from t1 group by a;
-a MAX(b) MAKE_SET(MAX(b), 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h')
-1 4 c
-10 43 a,b,d,f
-drop table t1;
-create table t1 (id int not null, qty int not null);
-insert into t1 values (1,2),(1,3),(2,4),(2,5);
-select id, sum(qty) as sqty, count(qty) as cqty from t1 group by id having sum(qty)>2 and cqty>1;
-id sqty cqty
-1 5 2
-2 9 2
-select id, sum(qty) as sqty from t1 group by id having sqty>2 and count(qty)>1;
-id sqty
-1 5
-2 9
-select id, sum(qty) as sqty, count(qty) as cqty from t1 group by id having sqty>2 and cqty>1;
-id sqty cqty
-1 5 2
-2 9 2
-select id, sum(qty) as sqty, count(qty) as cqty from t1 group by id having sum(qty)>2 and count(qty)>1;
-id sqty cqty
-1 5 2
-2 9 2
-select count(*), case interval(qty,2,3,4,5,6,7,8) when -1 then NULL when 0 then "zero" when 1 then "one" when 2 then "two" end as category from t1 group by category;
-count(*) category
-2 NULL
-1 one
-1 two
-select count(*), interval(qty,2,3,4,5,6,7,8) as category from t1 group by category;
-count(*) category
-1 1
-1 2
-1 3
-1 4
-drop table t1;
-CREATE TABLE t1 (
-userid int(10) unsigned,
-score smallint(5) unsigned,
-key (score)
-);
-INSERT INTO t1 VALUES (1,1),(2,2),(1,1),(3,3),(3,3),(3,3),(3,3),(3,3);
-SELECT userid,count(*) FROM t1 GROUP BY userid DESC;
-userid count(*)
-3 5
-2 1
-1 2
-EXPLAIN SELECT userid,count(*) FROM t1 GROUP BY userid DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using temporary; Using filesort
-DROP TABLE t1;
-CREATE TABLE t1 (
-i int(11) default NULL,
-j int(11) default NULL
-);
-INSERT INTO t1 VALUES (1,2),(2,3),(4,5),(3,5),(1,5),(23,5);
-SELECT i, COUNT(DISTINCT(i)) FROM t1 GROUP BY j ORDER BY NULL;
-i COUNT(DISTINCT(i))
-1 1
-2 1
-4 4
-explain SELECT i, COUNT(DISTINCT(i)) FROM t1 GROUP BY j ORDER BY NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort
-DROP TABLE t1;
-create table t1 (a int);
-insert into t1 values(null);
-select min(a) is null from t1;
-min(a) is null
-1
-select min(a) is null or null from t1;
-min(a) is null or null
-1
-select 1 and min(a) is null from t1;
-1 and min(a) is null
-1
-drop table t1;
-create table t1 ( col1 int, col2 int );
-insert into t1 values (1,1),(1,2),(1,3),(2,1),(2,2);
-select group_concat( distinct col1 ) as alias from t1
-group by col2 having alias like '%';
-alias
-1,2
-1,2
-1
-drop table t1;
-create table t1 (a integer, b integer, c integer);
-insert into t1 (a,b) values (1,2),(1,3),(2,5);
-select a, 0.1*0+1 r2, sum(1) r1 from t1 where a = 1 group by a having r1>1 and r2=1;
-a r2 r1
-1 1.0 2
-select a, round(rand(100)*10) r2, sum(1) r1 from t1 where a = 1 group by a having r1>1 and r2<=2;
-a r2 r1
-1 2 2
-select a, round(rand(100)*10) r2, sum(1) r1 from t1 group by a having r1>1 and r2<=2;
-a r2 r1
-1 2 2
-select a,sum(b) from t1 where a=1 group by c;
-a sum(b)
-1 5
-select a*sum(b) from t1 where a=1 group by c;
-a*sum(b)
-5
-select a*sum(b) as f1 from t1 where a=1 group by c having f1 <= 10;
-f1
-5
-select a,a*sum(b) as f1 from t1 where a=1 group by c having a*sum(b)+0 <= 10;
-a f1
-1 5
-select sum(a)*sum(b) from t1 where a=1 group by c;
-sum(a)*sum(b)
-10
-select a,sum(b) from t1 where a=1 group by c having a=1;
-a sum(b)
-1 5
-select a as d,sum(b) from t1 where a=1 group by c having d=1;
-d sum(b)
-1 5
-select sum(a)*sum(b) as d from t1 where a=1 group by c having d > 0;
-d
-10
-drop table t1;
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(8),(9);
-create table t2 (
-a int,
-b varchar(200) NOT NULL,
-c varchar(50) NOT NULL,
-d varchar(100) NOT NULL,
-primary key (a,b(132),c,d),
-key a (a,b)
-) charset=utf8;
-insert into t2 select
-x3.a, -- 3
-concat('val-', x3.a + 3*x4.a), -- 12
-concat('val-', @a:=x3.a + 3*x4.a + 12*C.a), -- 120
-concat('val-', @a + 120*D.a)
-from t1 x3, t1 x4, t1 C, t1 D where x3.a < 3 and x4.a < 4 and D.a < 4;
-delete from t2 where a = 2 and b = 'val-2' order by a,b,c,d limit 30;
-explain select c from t2 where a = 2 and b = 'val-2' group by c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref PRIMARY,a PRIMARY 402 const,const 6 Using where
-select c from t2 where a = 2 and b = 'val-2' group by c;
-c
-val-74
-val-98
-drop table t1,t2;
-create table t1 (b int4 unsigned not null);
-insert into t1 values(3000000000);
-select * from t1;
-b
-3000000000
-select min(b) from t1;
-min(b)
-3000000000
-drop table t1;
-CREATE TABLE t1 (id int PRIMARY KEY, user_id int, hostname longtext);
-INSERT INTO t1 VALUES
-(1, 7, 'cache-dtc-af05.proxy.aol.com'),
-(2, 3, 'what.ever.com'),
-(3, 7, 'cache-dtc-af05.proxy.aol.com'),
-(4, 7, 'cache-dtc-af05.proxy.aol.com');
-SELECT hostname, COUNT(DISTINCT user_id) as no FROM t1
-WHERE hostname LIKE '%aol%'
- GROUP BY hostname;
-hostname no
-cache-dtc-af05.proxy.aol.com 1
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (1,2), (1,3);
-SELECT a, b FROM t1 GROUP BY 'const';
-a b
-1 2
-SELECT DISTINCT a, b FROM t1 GROUP BY 'const';
-a b
-1 2
-DROP TABLE t1;
-CREATE TABLE t1 (id INT, dt DATETIME);
-INSERT INTO t1 VALUES ( 1, '2005-05-01 12:30:00' );
-INSERT INTO t1 VALUES ( 1, '2005-05-01 12:30:00' );
-INSERT INTO t1 VALUES ( 1, '2005-05-01 12:30:00' );
-INSERT INTO t1 VALUES ( 1, '2005-05-01 12:30:00' );
-SELECT dt DIV 1 AS f, id FROM t1 GROUP BY f;
-f id
-20050501123000 1
-DROP TABLE t1;
-CREATE TABLE t1 (id varchar(20) NOT NULL);
-INSERT INTO t1 VALUES ('trans1'), ('trans2');
-CREATE TABLE t2 (id varchar(20) NOT NULL, err_comment blob NOT NULL);
-INSERT INTO t2 VALUES ('trans1', 'a problem');
-SELECT COUNT(DISTINCT(t1.id)), LEFT(err_comment, 256) AS comment
-FROM t1 LEFT JOIN t2 ON t1.id=t2.id GROUP BY comment;
-COUNT(DISTINCT(t1.id)) comment
-1 NULL
-1 a problem
-DROP TABLE t1, t2;
-create table t1 (f1 date);
-insert into t1 values('2005-06-06');
-insert into t1 values('2005-06-06');
-select date(left(f1+0,8)) from t1 group by 1;
-date(left(f1+0,8))
-2005-06-06
-drop table t1;
-CREATE TABLE t1 (n int);
-INSERT INTO t1 VALUES (1);
-SELECT n+1 AS n FROM t1 GROUP BY n;
-n
-2
-Warnings:
-Warning 1052 Column 'n' in group statement is ambiguous
-DROP TABLE t1;
-create table t1(f1 varchar(5) key);
-insert into t1 values (1),(2);
-select sql_buffer_result max(f1) is null from t1;
-max(f1) is null
-0
-select sql_buffer_result max(f1)+1 from t1;
-max(f1)+1
-3
-drop table t1;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (1),(2);
-SELECT a FROM t1 GROUP BY 'a';
-a
-1
-SELECT a FROM t1 GROUP BY "a";
-a
-1
-SELECT a FROM t1 GROUP BY `a`;
-a
-1
-2
-set sql_mode=ANSI_QUOTES;
-SELECT a FROM t1 GROUP BY "a";
-a
-1
-2
-SELECT a FROM t1 GROUP BY 'a';
-a
-1
-SELECT a FROM t1 GROUP BY `a`;
-a
-1
-2
-set sql_mode='';
-SELECT a FROM t1 HAVING 'a' > 1;
-a
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT a FROM t1 HAVING "a" > 1;
-a
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT a FROM t1 HAVING `a` > 1;
-a
-2
-SELECT a FROM t1 ORDER BY 'a' DESC;
-a
-1
-2
-SELECT a FROM t1 ORDER BY "a" DESC;
-a
-1
-2
-SELECT a FROM t1 ORDER BY `a` DESC;
-a
-2
-1
-DROP TABLE t1;
-CREATE TABLE t1 (
-f1 int(10) unsigned NOT NULL auto_increment primary key,
-f2 varchar(100) NOT NULL default ''
-);
-CREATE TABLE t2 (
-f1 varchar(10) NOT NULL default '',
-f2 char(3) NOT NULL default '',
-PRIMARY KEY (`f1`),
-KEY `k1` (`f2`,`f1`)
-);
-INSERT INTO t1 values(NULL, '');
-INSERT INTO `t2` VALUES ('486878','WDT'),('486910','WDT');
-SELECT SQL_BUFFER_RESULT avg(t2.f1) FROM t1, t2 where t2.f2 = 'SIR' GROUP BY t1.f1;
-avg(t2.f1)
-SELECT avg(t2.f1) FROM t1, t2 where t2.f2 = 'SIR' GROUP BY t1.f1;
-avg(t2.f1)
-DROP TABLE t1, t2;
-create table t1 (c1 char(3), c2 char(3));
-create table t2 (c3 char(3), c4 char(3));
-insert into t1 values ('aaa', 'bb1'), ('aaa', 'bb2');
-insert into t2 values ('aaa', 'bb1'), ('aaa', 'bb2');
-select t1.c1 as c2 from t1, t2 where t1.c2 = t2.c4
-group by c2;
-c2
-aaa
-aaa
-Warnings:
-Warning 1052 Column 'c2' in group statement is ambiguous
-show warnings;
-Level Code Message
-Warning 1052 Column 'c2' in group statement is ambiguous
-select t1.c1 as c2 from t1, t2 where t1.c2 = t2.c4
-group by t1.c1;
-c2
-aaa
-show warnings;
-Level Code Message
-drop table t1, t2;
-CREATE TABLE t1 (a tinyint(3), b varchar(255), PRIMARY KEY (a));
-INSERT INTO t1 VALUES (1,'-----'), (6,'Allemagne'), (17,'Autriche'),
-(25,'Belgique'), (54,'Danemark'), (62,'Espagne'), (68,'France');
-CREATE TABLE t2 (a tinyint(3), b tinyint(3), PRIMARY KEY (a), KEY b (b));
-INSERT INTO t2 VALUES (1,1), (2,1), (6,6), (18,17), (15,25), (16,25),
-(17,25), (10,54), (5,62),(3,68);
-CREATE VIEW v1 AS select t1.a, concat(t1.b,'') AS b, t1.b as real_b from t1;
-explain
-SELECT straight_join sql_no_cache v1.a, v1.b, v1.real_b from t2, v1
-where t2.b=v1.a GROUP BY t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index b b 2 NULL 10 Using where; Using index
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 1 test.t2.b 1
-SELECT straight_join sql_no_cache v1.a, v1.b, v1.real_b from t2, v1
-where t2.b=v1.a GROUP BY t2.b;
-a b real_b
-1 ----- -----
-6 Allemagne Allemagne
-17 Autriche Autriche
-25 Belgique Belgique
-54 Danemark Danemark
-62 Espagne Espagne
-68 France France
-DROP VIEW v1;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT PRIMARY KEY, b INT, key (b));
-INSERT INTO t1 VALUES (1, 1);
-INSERT INTO t1 SELECT a + 1 , MOD(a + 1 , 20) FROM t1;
-INSERT INTO t1 SELECT a + 2 , MOD(a + 2 , 20) FROM t1;
-INSERT INTO t1 SELECT a + 4 , MOD(a + 4 , 20) FROM t1;
-INSERT INTO t1 SELECT a + 8 , MOD(a + 8 , 20) FROM t1;
-INSERT INTO t1 SELECT a + 16, MOD(a + 16, 20) FROM t1;
-INSERT INTO t1 SELECT a + 32, MOD(a + 32, 20) FROM t1;
-INSERT INTO t1 SELECT a + 64, MOD(a + 64, 20) FROM t1;
-SELECT MIN(b), MAX(b) from t1;
-MIN(b) MAX(b)
-0 19
-EXPLAIN SELECT b, sum(1) FROM t1 GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL b 5 NULL 128 Using index
-EXPLAIN SELECT SQL_BIG_RESULT b, sum(1) FROM t1 GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL b 5 NULL 128 Using index; Using filesort
-SELECT b, sum(1) FROM t1 GROUP BY b;
-b sum(1)
-0 6
-1 7
-2 7
-3 7
-4 7
-5 7
-6 7
-7 7
-8 7
-9 6
-10 6
-11 6
-12 6
-13 6
-14 6
-15 6
-16 6
-17 6
-18 6
-19 6
-SELECT SQL_BIG_RESULT b, sum(1) FROM t1 GROUP BY b;
-b sum(1)
-0 6
-1 7
-2 7
-3 7
-4 7
-5 7
-6 7
-7 7
-8 7
-9 6
-10 6
-11 6
-12 6
-13 6
-14 6
-15 6
-16 6
-17 6
-18 6
-19 6
-DROP TABLE t1;
-CREATE TABLE t1 (a INT PRIMARY KEY, b INT);
-INSERT INTO t1 VALUES (1,1),(2,1),(3,2),(4,2),(5,3),(6,3);
-SET SQL_MODE = 'ONLY_FULL_GROUP_BY';
-SELECT MAX(a)-MIN(a) FROM t1 GROUP BY b;
-MAX(a)-MIN(a)
-1
-1
-1
-SELECT CEILING(MIN(a)) FROM t1 GROUP BY b;
-CEILING(MIN(a))
-1
-3
-5
-SELECT CASE WHEN AVG(a)>=0 THEN 'Positive' ELSE 'Negative' END FROM t1
-GROUP BY b;
-CASE WHEN AVG(a)>=0 THEN 'Positive' ELSE 'Negative' END
-Positive
-Positive
-Positive
-SELECT a + 1 FROM t1 GROUP BY a;
-a + 1
-2
-3
-4
-5
-6
-7
-SELECT a + b FROM t1 GROUP BY b;
-ERROR 42000: 'test.t1.a' isn't in GROUP BY
-SELECT (SELECT t1_outer.a FROM t1 AS t1_inner GROUP BY b LIMIT 1)
-FROM t1 AS t1_outer;
-(SELECT t1_outer.a FROM t1 AS t1_inner GROUP BY b LIMIT 1)
-1
-2
-3
-4
-5
-6
-SELECT 1 FROM t1 as t1_outer GROUP BY a
-HAVING (SELECT t1_outer.a FROM t1 AS t1_inner GROUP BY b LIMIT 1);
-1
-1
-1
-1
-1
-1
-1
-SELECT (SELECT t1_outer.a FROM t1 AS t1_inner LIMIT 1)
-FROM t1 AS t1_outer GROUP BY t1_outer.b;
-ERROR 42000: 'test.t1_outer.a' isn't in GROUP BY
-SELECT 1 FROM t1 as t1_outer GROUP BY a
-HAVING (SELECT t1_outer.b FROM t1 AS t1_inner LIMIT 1);
-ERROR 42S22: Unknown column 'test.t1_outer.b' in 'field list'
-SELECT (SELECT SUM(t1_inner.a) FROM t1 AS t1_inner LIMIT 1)
-FROM t1 AS t1_outer GROUP BY t1_outer.b;
-(SELECT SUM(t1_inner.a) FROM t1 AS t1_inner LIMIT 1)
-21
-21
-21
-SELECT (SELECT SUM(t1_inner.a) FROM t1 AS t1_inner GROUP BY t1_inner.b LIMIT 1)
-FROM t1 AS t1_outer;
-(SELECT SUM(t1_inner.a) FROM t1 AS t1_inner GROUP BY t1_inner.b LIMIT 1)
-3
-3
-3
-3
-3
-3
-SELECT (SELECT SUM(t1_outer.a) FROM t1 AS t1_inner LIMIT 1)
-FROM t1 AS t1_outer GROUP BY t1_outer.b;
-ERROR 42000: 'test.t1_outer.a' isn't in GROUP BY
-SELECT 1 FROM t1 as t1_outer
-WHERE (SELECT t1_outer.b FROM t1 AS t1_inner GROUP BY t1_inner.b LIMIT 1);
-1
-1
-1
-1
-1
-1
-1
-SELECT b FROM t1 GROUP BY b HAVING CEILING(b) > 0;
-b
-1
-2
-3
-SELECT 1 FROM t1 GROUP BY b HAVING b = 2 OR b = 3 OR SUM(a) > 12;
-1
-1
-1
-SELECT 1 FROM t1 GROUP BY b HAVING ROW (b,b) = ROW (1,1);
-1
-1
-SELECT 1 FROM t1 GROUP BY b HAVING a = 2;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT 1 FROM t1 GROUP BY SUM(b);
-ERROR HY000: Invalid use of group function
-SELECT b FROM t1 AS t1_outer GROUP BY a HAVING t1_outer.a IN
-(SELECT SUM(t1_inner.b)+t1_outer.b FROM t1 AS t1_inner GROUP BY t1_inner.a
-HAVING SUM(t1_inner.b)+t1_outer.b > 5);
-ERROR 42000: 'test.t1_outer.b' isn't in GROUP BY
-DROP TABLE t1;
-SET SQL_MODE = '';
-SET SQL_MODE = 'ONLY_FULL_GROUP_BY';
-create table t1(f1 int, f2 int);
-select * from t1 group by f1;
-ERROR 42000: 'test.t1.f2' isn't in GROUP BY
-select * from t1 group by f2;
-ERROR 42000: 'test.t1.f1' isn't in GROUP BY
-select * from t1 group by f1, f2;
-f1 f2
-select t1.f1,t.* from t1, t1 t group by 1;
-ERROR 42000: 'test.t.f1' isn't in GROUP BY
-drop table t1;
-SET SQL_MODE = '';
-CREATE TABLE t1(
-id INT AUTO_INCREMENT PRIMARY KEY,
-c1 INT NOT NULL,
-c2 INT NOT NULL,
-UNIQUE KEY (c2,c1));
-INSERT INTO t1(c1,c2) VALUES (5,1), (4,1), (3,5), (2,3), (1,3);
-SELECT * FROM t1 ORDER BY c1;
-id c1 c2
-5 1 3
-4 2 3
-3 3 5
-2 4 1
-1 5 1
-SELECT * FROM t1 GROUP BY id ORDER BY c1;
-id c1 c2
-5 1 3
-4 2 3
-3 3 5
-2 4 1
-1 5 1
-SELECT * FROM t1 GROUP BY id ORDER BY id DESC;
-id c1 c2
-5 1 3
-4 2 3
-3 3 5
-2 4 1
-1 5 1
-SELECT * FROM t1 GROUP BY c2 ,c1, id ORDER BY c2, c1;
-id c1 c2
-2 4 1
-1 5 1
-5 1 3
-4 2 3
-3 3 5
-SELECT * FROM t1 GROUP BY c2, c1, id ORDER BY c2 DESC, c1;
-id c1 c2
-3 3 5
-5 1 3
-4 2 3
-2 4 1
-1 5 1
-SELECT * FROM t1 GROUP BY c2, c1, id ORDER BY c2 DESC, c1 DESC;
-id c1 c2
-3 3 5
-4 2 3
-5 1 3
-1 5 1
-2 4 1
-SELECT * FROM t1 GROUP BY c2 ORDER BY c2, c1;
-id c1 c2
-1 5 1
-4 2 3
-3 3 5
-SELECT * FROM t1 GROUP BY c2 ORDER BY c2 DESC, c1;
-id c1 c2
-3 3 5
-4 2 3
-1 5 1
-SELECT * FROM t1 GROUP BY c2 ORDER BY c2 DESC, c1 DESC;
-id c1 c2
-3 3 5
-4 2 3
-1 5 1
-DROP TABLE t1;
-#
-# Bug#27219: Aggregate functions in ORDER BY.
-#
-SET @save_sql_mode=@@sql_mode;
-SET @@sql_mode='ONLY_FULL_GROUP_BY';
-CREATE TABLE t1 (a INT, b INT, c INT DEFAULT 0);
-INSERT INTO t1 (a, b) VALUES (3,3), (2,2), (3,3), (2,2), (3,3), (4,4);
-CREATE TABLE t2 SELECT * FROM t1;
-SELECT 1 FROM t1 ORDER BY COUNT(*);
-1
-1
-SELECT 1 FROM t1 ORDER BY COUNT(*) + 1;
-1
-1
-SELECT 1 FROM t1 ORDER BY COUNT(*) + a;
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT 1 FROM t1 ORDER BY COUNT(*), 1;
-1
-1
-SELECT 1 FROM t1 ORDER BY COUNT(*), a;
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT 1 FROM t1 ORDER BY SUM(a);
-1
-1
-SELECT 1 FROM t1 ORDER BY SUM(a + 1);
-1
-1
-SELECT 1 FROM t1 ORDER BY SUM(a) + 1;
-1
-1
-SELECT 1 FROM t1 ORDER BY SUM(a), b;
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT a FROM t1 ORDER BY COUNT(b);
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT t1.a FROM t1 ORDER BY (SELECT SUM(t2.a) FROM t2);
-a
-3
-2
-3
-2
-3
-4
-SELECT t1.a FROM t1 ORDER BY (SELECT SUM(t2.a), t2.a FROM t2);
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT t1.a FROM t1 ORDER BY (SELECT SUM(t2.a) FROM t2 ORDER BY t2.a);
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT t1.a FROM t1 ORDER BY (SELECT t2.a FROM t2 ORDER BY SUM(t2.b) LIMIT 1);
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT t1.a FROM t1
-WHERE t1.a = (SELECT t2.a FROM t2 ORDER BY SUM(t2.b) LIMIT 1);
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a = (SELECT t2.a FROM t2 ORDER BY SUM(t2.a) LIMIT 1);
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.a FROM t2 ORDER BY SUM(t1.b));
-a
-2
-3
-4
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.a FROM t2 ORDER BY t2.a, SUM(t2.b));
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a > ANY (SELECT t2.a FROM t2 ORDER BY t2.a, SUM(t2.b));
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT t1.a FROM t1
-WHERE t1.a = (SELECT t2.a FROM t2 ORDER BY SUM(t1.b));
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT 1 FROM t1 GROUP BY t1.a
-HAVING (SELECT AVG(SUM(t1.b) + 1) FROM t2 ORDER BY SUM(t2.a) LIMIT 1);
-1
-1
-1
-1
-SELECT 1 FROM t1 GROUP BY t1.a
-HAVING (SELECT AVG(SUM(t1.b) + t2.b) FROM t2 ORDER BY SUM(t2.a) LIMIT 1);
-1
-1
-1
-1
-SELECT 1 FROM t1 GROUP BY t1.a
-HAVING (SELECT AVG(t1.b + t2.b) FROM t2 ORDER BY SUM(t2.a) LIMIT 1);
-1
-1
-1
-1
-SELECT 1 FROM t1 GROUP BY t1.a
-HAVING (SELECT AVG(SUM(t1.b) + 1) FROM t2 ORDER BY t2.a LIMIT 1);
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT 1 FROM t1 GROUP BY t1.a
-HAVING (SELECT AVG(SUM(t1.b) + t2.b) FROM t2 ORDER BY t2.a LIMIT 1);
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT 1 FROM t1 GROUP BY t1.a
-HAVING (SELECT AVG(t1.b + t2.b) FROM t2 ORDER BY t2.a LIMIT 1);
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-SELECT t1.a FROM t1
-WHERE t1.a = (SELECT t2.a FROM t2 GROUP BY t2.a
-ORDER BY SUM(t2.b), SUM(t1.b) LIMIT 1);
-a
-4
-SELECT t1.a, SUM(t1.b) FROM t1
-WHERE t1.a = (SELECT SUM(t2.b) FROM t2 GROUP BY t2.a
-ORDER BY SUM(t2.b), SUM(t1.b) LIMIT 1)
-GROUP BY t1.a;
-a SUM(t1.b)
-4 4
-SELECT t1.a, SUM(t1.b) FROM t1
-WHERE t1.a = (SELECT SUM(t2.b) FROM t2
-ORDER BY SUM(t2.b) + SUM(t1.b) LIMIT 1)
-GROUP BY t1.a;
-a SUM(t1.b)
-SELECT t1.a, SUM(t1.b) FROM t1
-WHERE t1.a = (SELECT SUM(t2.b) FROM t2
-ORDER BY SUM(t2.b + t1.a) LIMIT 1)
-GROUP BY t1.a;
-a SUM(t1.b)
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING (1, 1) = (SELECT SUM(t1.a), t1.a FROM t2 LIMIT 1);
-a
-select avg (
-(select
-(select sum(outr.a + innr.a) from t1 as innr limit 1) as tt
-from t1 as outr order by outr.a limit 1))
-from t1 as most_outer;
-avg (
-(select
-(select sum(outr.a + innr.a) from t1 as innr limit 1) as tt
-from t1 as outr order by outr.a limit 1))
-29.0000
-select avg (
-(select (
-(select sum(outr.a + innr.a) from t1 as innr limit 1)) as tt
-from t1 as outr order by count(outr.a) limit 1)) as tt
-from t1 as most_outer;
-ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
-select (select sum(outr.a + t1.a) from t1 limit 1) as tt from t1 as outr order by outr.a;
-tt
-29
-29
-35
-35
-35
-41
-SET sql_mode=@save_sql_mode;
-DROP TABLE t1, t2;
-#
-# BUG#38072: Wrong result: HAVING not observed in a query with aggregate
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-int_nokey int(11) NOT NULL,
-int_key int(11) NOT NULL,
-varchar_key varchar(1) NOT NULL,
-varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY int_key (int_key),
-KEY varchar_key (varchar_key)
-);
-INSERT INTO t1 VALUES
-(1,5,5, 'h','h'),
-(2,1,1, '{','{'),
-(3,1,1, 'z','z'),
-(4,8,8, 'x','x'),
-(5,7,7, 'o','o'),
-(6,3,3, 'p','p'),
-(7,9,9, 'c','c'),
-(8,0,0, 'k','k'),
-(9,6,6, 't','t'),
-(10,0,0,'c','c');
-explain SELECT COUNT(varchar_key) AS X FROM t1 WHERE pk = 8 having 'foo'='bar';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible HAVING
-SELECT COUNT(varchar_key) AS X FROM t1 WHERE pk = 8 having 'foo'='bar';
-X
-drop table t1;
-End of 5.0 tests
-CREATE TABLE t1 (a INT, b INT,
-PRIMARY KEY (a),
-KEY i2(a,b));
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8);
-INSERT INTO t1 SELECT a + 8,b FROM t1;
-INSERT INTO t1 SELECT a + 16,b FROM t1;
-INSERT INTO t1 SELECT a + 32,b FROM t1;
-INSERT INTO t1 SELECT a + 64,b FROM t1;
-INSERT INTO t1 SELECT a + 128,b FROM t1 limit 16;
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-EXPLAIN SELECT a FROM t1 WHERE a < 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,i2 PRIMARY 4 NULL 1 Using where; Using index
-EXPLAIN SELECT a FROM t1 WHERE a < 2 ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,i2 PRIMARY 4 NULL 1 Using where; Using index
-EXPLAIN SELECT a FROM t1 WHERE a < 2 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,i2 PRIMARY 4 NULL 1 Using where; Using index
-EXPLAIN SELECT a FROM t1 IGNORE INDEX (PRIMARY,i2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 144
-EXPLAIN SELECT a FROM t1 IGNORE INDEX FOR JOIN (PRIMARY,i2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 144
-#
-# For this explain, the query plan is weird: if we are using
-# the primary key for reasons other than doing grouping, can't
-# GROUP BY code take advantage of this? Well, currently it doesnt:
-EXPLAIN SELECT a FROM t1 IGNORE INDEX FOR GROUP BY (PRIMARY,i2) GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 144 Using index; Using filesort
-# Here's a proof it is really doing sorting:
-flush status;
-SELECT a FROM t1 IGNORE INDEX FOR GROUP BY (PRIMARY,i2) GROUP BY a;
-show status like 'Sort_%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 144
-Sort_scan 1
-# Proof ends.
-#
-# For this explain, the query plan is weird: if we are using
-# the primary key for reasons other than doing sorting, can't
-# ORDER BY code take advantage of this? Well, currently it doesnt:
-EXPLAIN SELECT a FROM t1 IGNORE INDEX FOR ORDER BY (PRIMARY,i2) ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 144 Using index; Using filesort
-# Here's a proof it is really doing sorting:
-flush status;
-SELECT a FROM t1 IGNORE INDEX FOR ORDER BY (PRIMARY,i2) ORDER BY a;
-show status like 'Sort_%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 144
-Sort_scan 1
-# Proof ends.
-#
-SELECT a FROM t1 IGNORE INDEX FOR ORDER BY (PRIMARY,i2) ORDER BY a;
-a
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126
-127
-128
-129
-130
-131
-132
-133
-134
-135
-136
-137
-138
-139
-140
-141
-142
-143
-144
-EXPLAIN SELECT a FROM t1 IGNORE INDEX FOR ORDER BY (PRIMARY)
-IGNORE INDEX FOR GROUP BY (i2) GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 144 Using index
-EXPLAIN SELECT a FROM t1 IGNORE INDEX (PRIMARY) IGNORE INDEX FOR ORDER BY (i2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL i2 9 NULL 144 Using index
-EXPLAIN SELECT a FROM t1 FORCE INDEX (i2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL i2 9 NULL 144 Using index
-EXPLAIN SELECT a FROM t1 USE INDEX ();
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 144
-EXPLAIN SELECT a FROM t1 USE INDEX () USE INDEX (i2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 144
-EXPLAIN SELECT a FROM t1
-FORCE INDEX (PRIMARY)
-IGNORE INDEX FOR GROUP BY (i2)
-IGNORE INDEX FOR ORDER BY (i2)
-USE INDEX (i2);
-ERROR HY000: Incorrect usage of USE INDEX and FORCE INDEX
-EXPLAIN SELECT a FROM t1 USE INDEX (i2) USE INDEX ();
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL i2 9 NULL 144 Using index
-EXPLAIN SELECT a FROM t1 FORCE INDEX ();
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1
-EXPLAIN SELECT a FROM t1 IGNORE INDEX ();
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1
-EXPLAIN SELECT a FROM t1 USE INDEX FOR JOIN (i2)
-USE INDEX FOR GROUP BY (i2) GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 # NULL i2 # NULL # #
-EXPLAIN SELECT a FROM t1 FORCE INDEX FOR JOIN (i2)
-FORCE INDEX FOR GROUP BY (i2) GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL i2 9 NULL 144 Using index
-EXPLAIN SELECT a FROM t1 USE INDEX () IGNORE INDEX (i2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 144
-EXPLAIN SELECT a FROM t1 IGNORE INDEX (i2) USE INDEX ();
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 144
-EXPLAIN SELECT a FROM t1
-USE INDEX FOR GROUP BY (i2)
-USE INDEX FOR ORDER BY (i2)
-USE INDEX FOR JOIN (i2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL i2 9 NULL 144 Using index
-EXPLAIN SELECT a FROM t1
-USE INDEX FOR JOIN (i2)
-USE INDEX FOR JOIN (i2)
-USE INDEX FOR JOIN (i2,i2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL i2 9 NULL 144 Using index
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='semijoin_with_cache=off';
-EXPLAIN SELECT 1 FROM t1 WHERE a IN
-(SELECT a FROM t1 USE INDEX (i2) IGNORE INDEX (i2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index PRIMARY,i2 PRIMARY 4 NULL 144 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 144
-SET optimizer_switch=@save_optimizer_switch;
-CREATE TABLE t2 (a INT, b INT, KEY(a));
-INSERT INTO t2 VALUES (1, 1), (2, 2), (3,3), (4,4);
-EXPLAIN SELECT a, SUM(b) FROM t2 GROUP BY a LIMIT 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 5 NULL 2
-EXPLAIN SELECT a, SUM(b) FROM t2 IGNORE INDEX (a) GROUP BY a LIMIT 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 Using temporary; Using filesort
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='semijoin_with_cache=off';
-EXPLAIN SELECT 1 FROM t2 WHERE a IN
-(SELECT a FROM t1 USE INDEX (i2) IGNORE INDEX (i2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index a a 5 NULL 4 Using index
-1 PRIMARY t1 ALL NULL NULL NULL NULL 144 Using where; FirstMatch(t2)
-SET optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1, t2;
-CREATE TABLE t1(
-a INT,
-b INT NOT NULL,
-c INT NOT NULL,
-d INT,
-UNIQUE KEY (c,b)
-);
-INSERT INTO t1 VALUES (1,1,1,50), (1,2,3,40), (2,1,3,4);
-CREATE TABLE t2(
-a INT,
-b INT,
-UNIQUE KEY(a,b)
-);
-INSERT INTO t2 VALUES (NULL, NULL), (NULL, NULL), (NULL, 1), (1, NULL), (1, 1), (1,2);
-EXPLAIN SELECT c,b,d FROM t1 GROUP BY c,b,d;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using filesort
-SELECT c,b,d FROM t1 GROUP BY c,b,d;
-c b d
-1 1 50
-3 1 4
-3 2 40
-EXPLAIN SELECT c,b,d FROM t1 GROUP BY c,b,d ORDER BY NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-SELECT c,b,d FROM t1 GROUP BY c,b,d ORDER BY NULL;
-c b d
-1 1 50
-3 2 40
-3 1 4
-EXPLAIN SELECT c,b,d FROM t1 ORDER BY c,b,d;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using filesort
-SELECT c,b,d FROM t1 ORDER BY c,b,d;
-c b d
-1 1 50
-3 1 4
-3 2 40
-EXPLAIN SELECT c,b,d FROM t1 GROUP BY c,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using filesort
-SELECT c,b,d FROM t1 GROUP BY c,b;
-c b d
-1 1 50
-3 1 4
-3 2 40
-EXPLAIN SELECT c,b FROM t1 GROUP BY c,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL c 8 NULL 3 Using index
-SELECT c,b FROM t1 GROUP BY c,b;
-c b
-1 1
-3 1
-3 2
-EXPLAIN SELECT a,b from t2 ORDER BY a,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 10 NULL 6 Using index
-SELECT a,b from t2 ORDER BY a,b;
-a b
-NULL NULL
-NULL NULL
-NULL 1
-1 NULL
-1 1
-1 2
-EXPLAIN SELECT a,b from t2 GROUP BY a,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 10 NULL 6 Using index
-SELECT a,b from t2 GROUP BY a,b;
-a b
-NULL NULL
-NULL 1
-1 NULL
-1 1
-1 2
-EXPLAIN SELECT a from t2 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 10 NULL 6 Using index
-SELECT a from t2 GROUP BY a;
-a
-NULL
-1
-EXPLAIN SELECT b from t2 GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 10 NULL 6 Using index; Using temporary; Using filesort
-SELECT b from t2 GROUP BY b;
-b
-NULL
-1
-2
-DROP TABLE t1;
-DROP TABLE t2;
-CREATE TABLE t1 ( a INT, b INT );
-SELECT b c, (SELECT a FROM t1 WHERE b = c)
-FROM t1;
-c (SELECT a FROM t1 WHERE b = c)
-SELECT b c, (SELECT a FROM t1 WHERE b = c)
-FROM t1
-HAVING b = 10;
-c (SELECT a FROM t1 WHERE b = c)
-SELECT MAX(b) c, (SELECT a FROM t1 WHERE b = c)
-FROM t1
-HAVING b = 10;
-ERROR 42S22: Reference 'c' not supported (reference to group function)
-SET @old_sql_mode = @@sql_mode;
-SET @@sql_mode='ONLY_FULL_GROUP_BY';
-SELECT b c, (SELECT a FROM t1 WHERE b = c)
-FROM t1;
-c (SELECT a FROM t1 WHERE b = c)
-SELECT b c, (SELECT a FROM t1 WHERE b = c)
-FROM t1
-HAVING b = 10;
-ERROR 42000: Non-grouping field 'b' is used in HAVING clause
-SELECT MAX(b) c, (SELECT a FROM t1 WHERE b = c)
-FROM t1
-HAVING b = 10;
-ERROR 42S22: Reference 'c' not supported (reference to group function)
-INSERT INTO t1 VALUES (1, 1);
-SELECT b c, (SELECT a FROM t1 WHERE b = c)
-FROM t1;
-c (SELECT a FROM t1 WHERE b = c)
-1 1
-INSERT INTO t1 VALUES (2, 1);
-SELECT b c, (SELECT a FROM t1 WHERE b = c)
-FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1;
-SET @@sql_mode = @old_sql_mode;
-SET @old_sql_mode = @@sql_mode;
-SET @@sql_mode='ONLY_FULL_GROUP_BY';
-CREATE TABLE t1(i INT);
-INSERT INTO t1 VALUES (1), (10);
-SELECT COUNT(i) FROM t1;
-COUNT(i)
-2
-SELECT COUNT(i) FROM t1 WHERE i > 1;
-COUNT(i)
-1
-DROP TABLE t1;
-SET @@sql_mode = @old_sql_mode;
-#
-# Bug #45640: optimizer bug produces wrong results
-#
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (4, 40), (1, 10), (2, 20), (2, 20), (3, 30);
-# should return 4 ordered records:
-SELECT (SELECT t1.a) aa, COUNT(DISTINCT b) FROM t1 GROUP BY aa;
-aa COUNT(DISTINCT b)
-1 1
-2 1
-3 1
-4 1
-SELECT (SELECT (SELECT t1.a)) aa, COUNT(DISTINCT b) FROM t1 GROUP BY aa;
-aa COUNT(DISTINCT b)
-1 1
-2 1
-3 1
-4 1
-SELECT (SELECT t1.a) aa, COUNT(DISTINCT b) FROM t1 GROUP BY aa+0;
-aa COUNT(DISTINCT b)
-1 1
-2 1
-3 1
-4 1
-# should return the same result in a reverse order:
-SELECT (SELECT t1.a) aa, COUNT(DISTINCT b) FROM t1 GROUP BY -aa;
-aa COUNT(DISTINCT b)
-4 1
-3 1
-2 1
-1 1
-# execution plan should not use temporary table:
-EXPLAIN EXTENDED
-SELECT (SELECT t1.a) aa, COUNT(DISTINCT b) FROM t1 GROUP BY aa+0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5 100.00 Using filesort
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select <expr_cache><`test`.`t1`.`a`>((/* select#2 */ select `test`.`t1`.`a`)) AS `aa`,count(distinct `test`.`t1`.`b`) AS `COUNT(DISTINCT b)` from `test`.`t1` group by <expr_cache><`test`.`t1`.`a`>((/* select#2 */ select `test`.`t1`.`a`)) + 0
-EXPLAIN EXTENDED
-SELECT (SELECT t1.a) aa, COUNT(DISTINCT b) FROM t1 GROUP BY -aa;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5 100.00 Using filesort
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select <expr_cache><`test`.`t1`.`a`>((/* select#2 */ select `test`.`t1`.`a`)) AS `aa`,count(distinct `test`.`t1`.`b`) AS `COUNT(DISTINCT b)` from `test`.`t1` group by -<expr_cache><`test`.`t1`.`a`>((/* select#2 */ select `test`.`t1`.`a`))
-# should return only one record
-SELECT (SELECT tt.a FROM t1 tt LIMIT 1) aa, COUNT(DISTINCT b) FROM t1
-GROUP BY aa;
-aa COUNT(DISTINCT b)
-4 4
-CREATE TABLE t2 SELECT DISTINCT a FROM t1;
-# originally reported queries (1st two columns of next two query
-# results should be same):
-SELECT (SELECT t2.a FROM t2 WHERE t2.a = t1.a) aa, b, COUNT(DISTINCT b)
-FROM t1 GROUP BY aa, b;
-aa b COUNT(DISTINCT b)
-1 10 1
-2 20 1
-3 30 1
-4 40 1
-SELECT (SELECT t2.a FROM t2 WHERE t2.a = t1.a) aa, b, COUNT( b)
-FROM t1 GROUP BY aa, b;
-aa b COUNT( b)
-1 10 1
-2 20 2
-3 30 1
-4 40 1
-# ORDER BY for sure:
-SELECT (SELECT t2.a FROM t2 WHERE t2.a = t1.a) aa, b, COUNT(DISTINCT b)
-FROM t1 GROUP BY aa, b ORDER BY -aa, -b;
-aa b COUNT(DISTINCT b)
-4 40 1
-3 30 1
-2 20 1
-1 10 1
-SELECT (SELECT t2.a FROM t2 WHERE t2.a = t1.a) aa, b, COUNT( b)
-FROM t1 GROUP BY aa, b ORDER BY -aa, -b;
-aa b COUNT( b)
-4 40 1
-3 30 1
-2 20 2
-1 10 1
-DROP TABLE t1, t2;
-#
-# Bug#52051: Aggregate functions incorrectly returns NULL from outer
-# join query
-#
-CREATE TABLE t1 (a INT PRIMARY KEY);
-CREATE TABLE t2 (a INT PRIMARY KEY);
-INSERT INTO t2 VALUES (1), (2);
-EXPLAIN SELECT MIN(t2.a) FROM t2 LEFT JOIN t1 ON t2.a = t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-SELECT MIN(t2.a) FROM t2 LEFT JOIN t1 ON t2.a = t1.a;
-MIN(t2.a)
-1
-EXPLAIN SELECT MAX(t2.a) FROM t2 LEFT JOIN t1 ON t2.a = t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-SELECT MAX(t2.a) FROM t2 LEFT JOIN t1 ON t2.a = t1.a;
-MAX(t2.a)
-2
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a int(11) NOT NULL);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (
-key_col int(11) NOT NULL,
-KEY (key_col)
-);
-INSERT INTO t2 VALUES (1),(2);
-select min(t2.key_col) from t1,t2 where t1.a=1;
-min(t2.key_col)
-1
-select min(t2.key_col) from t1,t2 where t1.a > 1000;
-min(t2.key_col)
-NULL
-select min(t2.key_col)+1 from t1,t2 where t1.a> 1000;
-min(t2.key_col)+1
-NULL
-drop table t1,t2;
-#
-# Bug#55188: GROUP BY, GROUP_CONCAT and TEXT - inconsistent results
-#
-CREATE TABLE t1 (a text, b varchar(10));
-INSERT INTO t1 VALUES (repeat('1', 1300),'one'), (repeat('1', 1300),'two');
-EXPLAIN
-SELECT SUBSTRING(a,1,10), LENGTH(a), GROUP_CONCAT(b) FROM t1 GROUP BY a;
-id 1
-select_type SIMPLE
-table t1
-type ALL
-possible_keys NULL
-key NULL
-key_len NULL
-ref NULL
-rows 2
-Extra Using filesort
-SELECT SUBSTRING(a,1,10), LENGTH(a), GROUP_CONCAT(b) FROM t1 GROUP BY a;
-SUBSTRING(a,1,10) LENGTH(a) GROUP_CONCAT(b)
-1111111111 1300 one,two
-EXPLAIN
-SELECT SUBSTRING(a,1,10), LENGTH(a) FROM t1 GROUP BY a;
-id 1
-select_type SIMPLE
-table t1
-type ALL
-possible_keys NULL
-key NULL
-key_len NULL
-ref NULL
-rows 2
-Extra Using temporary; Using filesort
-SELECT SUBSTRING(a,1,10), LENGTH(a) FROM t1 GROUP BY a;
-SUBSTRING(a,1,10) LENGTH(a)
-1111111111 1300
-DROP TABLE t1;
-#
-# Bug#57688 Assertion `!table || (!table->write_set || bitmap_is_set(table->write_set, field
-#
-CREATE TABLE t1(f1 INT NOT NULL);
-INSERT INTO t1 VALUES (16777214),(0);
-SELECT COUNT(*) FROM t1 LEFT JOIN t1 t2
-ON 1 WHERE t2.f1 > 1 GROUP BY t2.f1;
-COUNT(*)
-2
-DROP TABLE t1;
-#
-# Bug#59839: Aggregation followed by subquery yields wrong result
-#
-CREATE TABLE t1 (
-a INT,
-b INT,
-c INT,
-KEY (a, b)
-);
-INSERT INTO t1 VALUES
-( 1, 1, 1 ),
-( 1, 2, 2 ),
-( 1, 3, 3 ),
-( 1, 4, 6 ),
-( 1, 5, 5 ),
-( 1, 9, 13 ),
-( 2, 1, 6 ),
-( 2, 2, 7 ),
-( 2, 3, 8 );
-EXPLAIN
-SELECT a, AVG(t1.b),
-(SELECT t11.c FROM t1 t11 WHERE t11.a = t1.a AND t11.b = AVG(t1.b)) AS t11c,
-(SELECT t12.c FROM t1 t12 WHERE t12.a = t1.a AND t12.b = AVG(t1.b)) AS t12c
-FROM t1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 10 NULL 9 Using index
-3 DEPENDENT SUBQUERY t12 ref a a 10 func,func 2 Using index condition
-2 DEPENDENT SUBQUERY t11 ref a a 10 func,func 2 Using index condition
-SELECT a, AVG(t1.b),
-(SELECT t11.c FROM t1 t11 WHERE t11.a = t1.a AND t11.b = AVG(t1.b)) AS t11c,
-(SELECT t12.c FROM t1 t12 WHERE t12.a = t1.a AND t12.b = AVG(t1.b)) AS t12c
-FROM t1 GROUP BY a;
-a AVG(t1.b) t11c t12c
-1 4.0000 6 6
-2 2.0000 7 7
-DROP TABLE t1;
-#
-# Bug#11765254 (58200): Assertion failed: param.sort_length when grouping
-# by functions
-#
-SET BIG_TABLES=1;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (0),(0);
-SELECT 1 FROM t1 GROUP BY IF(`a`,'','');
-1
-1
-SELECT 1 FROM t1 GROUP BY TRIM(LEADING RAND() FROM '');
-1
-1
-SELECT 1 FROM t1 GROUP BY SUBSTRING('',SLEEP(0),'');
-1
-1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: ''
-Warning 1292 Truncated incorrect INTEGER value: ''
-Warning 1292 Truncated incorrect INTEGER value: ''
-SELECT 1 FROM t1 GROUP BY SUBSTRING(SYSDATE() FROM 'K' FOR 'jxW<');
-1
-1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'K'
-Warning 1292 Truncated incorrect INTEGER value: 'jxW<'
-Warning 1292 Truncated incorrect INTEGER value: 'K'
-Warning 1292 Truncated incorrect INTEGER value: 'jxW<'
-Warning 1292 Truncated incorrect INTEGER value: 'K'
-Warning 1292 Truncated incorrect INTEGER value: 'jxW<'
-DROP TABLE t1;
-SET BIG_TABLES=0;
-#
-# MDEV-641 LP:1002108 - Wrong result (or crash) from a query with duplicated field in the group list and a limit clause
-# Bug#11761078: 53534: INCORRECT 'SELECT SQL_BIG_RESULT...'
-# WITH GROUP BY ON DUPLICATED FIELDS
-#
-CREATE TABLE t1(
-col1 int,
-UNIQUE INDEX idx (col1));
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),
-(11),(12),(13),(14),(15),(16),(17),(18),(19),(20);
-EXPLAIN SELECT col1 AS field1, col1 AS field2
-FROM t1 GROUP BY field1, field2;;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL idx 5 NULL 20 Using index
-FLUSH STATUS;
-SELECT col1 AS field1, col1 AS field2
-FROM t1 GROUP BY field1, field2;;
-field1 field2
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 9
-10 10
-11 11
-12 12
-13 13
-14 14
-15 15
-16 16
-17 17
-18 18
-19 19
-20 20
-SHOW SESSION STATUS LIKE 'Sort_scan%';
-Variable_name Value
-Sort_scan 0
-EXPLAIN SELECT SQL_BIG_RESULT col1 AS field1, col1 AS field2
-FROM t1 GROUP BY field1, field2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL idx 5 NULL 20 Using index; Using filesort
-FLUSH STATUS;
-SELECT SQL_BIG_RESULT col1 AS field1, col1 AS field2
-FROM t1 GROUP BY field1, field2;
-field1 field2
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 9
-10 10
-11 11
-12 12
-13 13
-14 14
-15 15
-16 16
-17 17
-18 18
-19 19
-20 20
-SHOW SESSION STATUS LIKE 'Sort_scan%';
-Variable_name Value
-Sort_scan 1
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT SQL_BIG_RESULT col1 AS field1, col1 AS field2
-FROM v1
-GROUP BY field1, field2;
-field1 field2
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 9
-10 10
-11 11
-12 12
-13 13
-14 14
-15 15
-16 16
-17 17
-18 18
-19 19
-20 20
-SELECT SQL_BIG_RESULT tbl1.col1 AS field1, tbl2.col1 AS field2
-FROM t1 as tbl1, t1 as tbl2
-GROUP BY field1, field2
-LIMIT 3;
-field1 field2
-1 1
-1 2
-1 3
-explain
-select col1 f1, col1 f2 from t1 order by f2, f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL idx 5 NULL 20 Using index
-explain
-select col1 f1, col1 f2 from t1 order by f2, f1+0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL idx 5 NULL 20 Using index; Using filesort
-select col1 f1, col1 f2 from t1 order by f2, f1+0;
-f1 f2
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 9
-10 10
-11 11
-12 12
-13 13
-14 14
-15 15
-16 16
-17 17
-18 18
-19 19
-20 20
-explain
-select col1 f1, col1 f2 from t1 group by f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL idx 5 NULL 20 Using index
-select col1 f1, col1 f2 from t1 group by f1;
-f1 f2
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 9
-10 10
-11 11
-12 12
-13 13
-14 14
-15 15
-16 16
-17 17
-18 18
-19 19
-20 20
-explain
-select col1 f1, col1 f2 from t1 group by f1, f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL idx 5 NULL 20 Using index
-select col1 f1, col1 f2 from t1 group by f1, f2;
-f1 f2
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 9
-10 10
-11 11
-12 12
-13 13
-14 14
-15 15
-16 16
-17 17
-18 18
-19 19
-20 20
-explain
-select col1 f1, col1 f2 from t1 group by f2 order by f2, f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL idx 5 NULL 20 Using index
-select col1 f1, col1 f2 from t1 group by f2 order by f2, f1;
-f1 f2
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 9
-10 10
-11 11
-12 12
-13 13
-14 14
-15 15
-16 16
-17 17
-18 18
-19 19
-20 20
-explain
-select col1 f1, col1 f2 from t1 group by f1, f2 order by f2, f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL idx 5 NULL 20 Using index
-select col1 f1, col1 f2 from t1 group by f1, f2 order by f2, f1;
-f1 f2
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 9
-10 10
-11 11
-12 12
-13 13
-14 14
-15 15
-16 16
-17 17
-18 18
-19 19
-20 20
-CREATE TABLE t2(
-col1 int,
-col2 int,
-UNIQUE INDEX idx (col1, col2));
-INSERT INTO t2(col1, col2) VALUES
-(1,20),(2,19),(3,18),(4,17),(5,16),(6,15),(7,14),(8,13),(9,12),(10,11),
-(11,10),(12,9),(13,8),(14,7),(15,6),(16,5),(17,4),(18,3),(19,2),(20,1);
-explain
-select col1 f1, col2 f2, col1 f3 from t2 group by f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx 5 NULL 7 Using index for group-by
-explain
-select SQL_BIG_RESULT col1 f1, col2 f2, col1 f3 from t2 group by f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx 5 NULL 7 Using index for group-by
-explain
-select col1 f1, col2 f2, col1 f3 from t2 group by f1, f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL idx 10 NULL 20 Using index
-explain
-select col1 f1, col1 f2 from t2 group by f1, 1+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx 5 NULL 7 Using index for group-by
-explain
-select col1 f1, col2 f2, col1 f3 from t2 group by f1, f2, f3+0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL idx 10 NULL 20 Using index; Using temporary; Using filesort
-select col1 f1, col2 f2, col1 f3 from t2 group by f1, f2, f3+0;
-f1 f2 f3
-1 20 1
-2 19 2
-3 18 3
-4 17 4
-5 16 5
-6 15 6
-7 14 7
-8 13 8
-9 12 9
-10 11 10
-11 10 11
-12 9 12
-13 8 13
-14 7 14
-15 6 15
-16 5 16
-17 4 17
-18 3 18
-19 2 19
-20 1 20
-explain
-select col1 f1, col2 f2, col1 f3 from t2 order by f1,f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL idx 10 NULL 20 Using index
-explain
-select col1 f1, col2 f2, col1 f3 from t2 order by f1, f2, f3+0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL idx 10 NULL 20 Using index; Using filesort
-select col1 f1, col2 f2, col1 f3 from t2 order by f1, f2, f3+0;
-f1 f2 f3
-1 20 1
-2 19 2
-3 18 3
-4 17 4
-5 16 5
-6 15 6
-7 14 7
-8 13 8
-9 12 9
-10 11 10
-11 10 11
-12 9 12
-13 8 13
-14 7 14
-15 6 15
-16 5 16
-17 4 17
-18 3 18
-19 2 19
-20 1 20
-DROP VIEW v1;
-DROP TABLE t1, t2;
-# End of 5.1 tests
-#
-# LP bug#694450 Wrong result with non-standard GROUP BY + ORDER BY
-#
-SET SESSION SQL_MODE='ONLY_FULL_GROUP_BY';
-CREATE TABLE t1 (
-f1 int(11), f2 int(11), f3 datetime, f4 varchar(1), PRIMARY KEY (f1)) ;
-INSERT IGNORE INTO t1 VALUES ('1','9','2004-10-11 18:13','x'),('2','5','2004-03-07 14:02','g'),('3','1','2004-04-09 09:38','o'),('4','0','1900-01-01 00:00','g'),('5','1','2009-02-19 02:05','v');
-SELECT alias2.f3 AS field1 , alias2.f1 AS field2 FROM t1 AS alias1 JOIN t1 AS alias2 ON alias2.f1 = alias1.f2 AND alias2.f1 != alias1.f4 GROUP BY field1 , field2 ORDER BY alias1.f2 , field2;
-field1 field2
-2004-10-11 18:13:00 1
-2009-02-19 02:05:00 5
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'g'
-Warning 1292 Truncated incorrect DOUBLE value: 'o'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-SELECT alias2.f3 AS field1 , alias2.f1 AS field2 FROM t1 AS alias1 JOIN t1 AS alias2 ON alias2.f1 = alias1.f2 AND alias2.f1 != alias1.f4 GROUP BY field1 , field2 ;
-field1 field2
-2004-10-11 18:13:00 1
-2009-02-19 02:05:00 5
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'g'
-Warning 1292 Truncated incorrect DOUBLE value: 'o'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-SET SESSION SQL_MODE=default;
-drop table t1;
-#
-# LP bug#967242 Wrong result (extra rows, not grouped) with JOIN, AND in ON condition, multi-part key, GROUP BY, OR in WHERE
-#
-CREATE TABLE t1 ( a VARCHAR(1) ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('x');
-CREATE TABLE t2 ( b INT, c VARCHAR(1), KEY (c, b) ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-(4, 'd'),(8, 'g'),(3, 'x'),(3, 'f'),
-(0, 'p'),(3, 'j'),(8, 'c');
-SELECT t2_1.b as zzz
-FROM t1 JOIN t2 AS t2_1 JOIN t2 AS t2_2
-ON (t2_2.b = t2_1.b ) AND (t2_2.c = t2_1.c )
-WHERE
-rand() + 1 > 0 OR
-a = t2_1.c
-GROUP BY zzz;
-zzz
-0
-3
-4
-8
-SELECT t2_1.b as zzz
-FROM t1 JOIN t2 AS t2_1 JOIN t2 AS t2_2
-ON (t2_2.b = t2_1.b ) AND (t2_2.c = t2_1.c )
-WHERE
-1 > 0 OR
-a = t2_1.c
-GROUP BY zzz;
-zzz
-0
-3
-4
-8
-SELECT t2_1.b as zzz
-FROM t1 JOIN t2 AS t2_1 JOIN t2 AS t2_2
-ON (t2_2.b = t2_1.b ) AND (t2_2.c = t2_1.c )
-WHERE
-t2_1.b + 1 > 0 OR
-a = t2_1.c
-GROUP BY zzz;
-zzz
-0
-3
-4
-8
-SET @save_optimizer_switch967242=@@optimizer_switch;
-SET optimizer_switch = 'in_to_exists=on';
-SELECT t2_1.b
-FROM t1 JOIN t2 AS t2_1 JOIN t2 AS t2_2
-ON (t2_2.b = t2_1.b ) AND (t2_2.c = t2_1.c )
-WHERE
-( SELECT COUNT(*) FROM t2 ) IS NOT NULL
-OR a = t2_1.c
-GROUP BY t2_1.b;
-b
-0
-3
-4
-8
-SET optimizer_switch=@save_optimizer_switch967242;
-drop table t1, t2;
-#
-# Bug#12578908: SELECT SQL_BUFFER_RESULT OUTPUTS TOO MANY
-# ROWS WHEN GROUP IS OPTIMIZED AWAY
-#
-CREATE TABLE t1 (col1 int, col2 int) ;
-INSERT INTO t1 VALUES (10,1),(11,7);
-CREATE TABLE t2 (col1 int, col2 int) ;
-INSERT INTO t2 VALUES (10,8);
-
-EXPLAIN SELECT SQL_BUFFER_RESULT t2.col2 FROM t2 JOIN t1 ON t1.col1 GROUP BY t2.col2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1 Using temporary
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT SQL_BUFFER_RESULT t2.col2 FROM t2 JOIN t1 ON t1.col1 GROUP BY t2.col2;
-col2
-8
-
-EXPLAIN SELECT t2.col2 FROM t2 JOIN t1 ON t1.col1 GROUP BY t2.col2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT t2.col2 FROM t2 JOIN t1 ON t1.col1 GROUP BY t2.col2;
-col2
-8
-
-DROP TABLE t1,t2;
-#
-# BUG#12640437: USING SQL_BUFFER_RESULT RESULTS IN A
-# DIFFERENT QUERY OUTPUT
-#
-CREATE TABLE t1 (
-a int,
-b varchar(1),
-KEY (b,a)
-);
-INSERT INTO t1 VALUES (1,NULL),(0,'a'),(1,NULL),(0,'a');
-
-EXPLAIN SELECT SQL_BUFFER_RESULT MIN(a), b FROM t1 WHERE t1.b = 'a' GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range b b 9 NULL 2 Using where; Using index for group-by; Using temporary
-
-SELECT SQL_BUFFER_RESULT MIN(a), b FROM t1 WHERE t1.b = 'a' GROUP BY b;
-MIN(a) b
-0 a
-
-EXPLAIN SELECT MIN(a), b FROM t1 WHERE t1.b = 'a' GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range b b 9 NULL 2 Using where; Using index for group-by
-
-SELECT MIN(a), b FROM t1 WHERE t1.b = 'a' GROUP BY b;
-MIN(a) b
-0 a
-
-DROP TABLE t1;
-create table t1 (a int, b int);
-insert into t1 values (1,11), (1,12), (2,22),(2,23), (4,44),(4,45);
-create table t2 (c int, d int);
-insert into t2 values (1,11), (2,22), (4,44);
-select distinct a,sum(b), (select d from t2 where c=a order by max(b) limit 1) from t1 group by a order by max(b);
-a sum(b) (select d from t2 where c=a order by max(b) limit 1)
-1 23 11
-2 45 22
-4 89 44
-drop table t1, t2;
-#
-# LP bug#993726 Wrong result from a query with ALL subquery predicate in WHERE
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (0);
-SELECT 1 FROM t1 WHERE 1 > ALL(SELECT 1 FROM t1 WHERE a!=0);
-1
-1
-SELECT max(1) FROM t1 WHERE a!=0;
-max(1)
-NULL
-drop table t1;
-# End of 5.2 tests
-#
-# lp:872702: Crash in add_ref_to_table_cond() when grouping by a PK
-#
-CREATE TABLE t1 (a int, PRIMARY KEY (a)) ;
-INSERT INTO t1 VALUES (14),(15),(16),(17),(18),(19),(20);
-CREATE TABLE t2 (a int) ;
-SELECT a
-FROM t1
-WHERE a = (
-SELECT t2.a
-FROM t2
-) OR t1.a = 73
-GROUP BY 1;
-a
-DROP TABLE t1, t2;
-FLUSH STATUS;
-CREATE TABLE t1 (f1 INT, f2 decimal(20,1), f3 blob);
-INSERT INTO t1 values(11,NULL,'blob'),(11,NULL,'blob');
-SELECT f3, MIN(f2) FROM t1 GROUP BY f1 LIMIT 1;
-f3 MIN(f2)
-blob NULL
-DROP TABLE t1;
-the value below *must* be 1
-show status like 'Created_tmp_disk_tables';
-Variable_name Value
-Created_tmp_disk_tables 1
-#
-# Bug #1002146: Unneeded filesort if usage of join buffer is not allowed
-# (bug mdev-645)
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, a int, INDEX idx(a));
-INSERT INTO t1 VALUES (3,2), (2,3), (5,3), (6,4);
-CREATE TABLE t2 (pk int PRIMARY KEY, a int, INDEX idx(a));
-INSERT INTO t2 VALUES (9,0), (10,3), (6,4), (1,6), (3,100), (5,200);
-set join_cache_level=0;
-EXPLAIN
-SELECT t2.a FROM t2 STRAIGHT_JOIN t1 ON t2.a <> 0 WHERE t2.a <> 6
-GROUP BY t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx idx 5 NULL 5 Using where; Using index
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 4 Using index
-SELECT t2.a FROM t2 STRAIGHT_JOIN t1 ON t2.a <> 0 WHERE t2.a <> 6
-GROUP BY t2.a;
-a
-3
-4
-100
-200
-set join_cache_level=default;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='outer_join_with_cache=off';
-EXPLAIN
-SELECT t2.a FROM t2 LEFT JOIN t1 ON t2.a <> 0 WHERE t2.a <> 6
-GROUP BY t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx idx 5 NULL 5 Using where; Using index
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 4 Using where; Using index
-SELECT t2.a FROM t2 LEFT JOIN t1 ON t2.a <> 0 WHERE t2.a <> 6
-GROUP BY t2.a;
-a
-0
-3
-4
-100
-200
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t2;
-#
-# MDEV-5104 crash in Item_field::used_tables with broken order by
-#
-(select 1 order by x(y)) order by 1;
-ERROR 42S22: Unknown column 'y' in 'order clause'
-# End of 5.3 tests
-#
-# Bug#49771: Incorrect MIN (date) when minimum value is 0000-00-00
-#
-CREATE TABLE t1 (f1 int, f2 DATE);
-INSERT INTO t1 VALUES (1,'2004-04-19'), (1,'0000-00-00'), (1,'2004-04-18'),
-(2,'2004-05-19'), (2,'0001-01-01'), (3,'2004-04-10');
-SELECT MIN(f2),MAX(f2) FROM t1;
-MIN(f2) MAX(f2)
-0000-00-00 2004-05-19
-SELECT f1,MIN(f2),MAX(f2) FROM t1 GROUP BY 1;
-f1 MIN(f2) MAX(f2)
-1 0000-00-00 2004-04-19
-2 0001-01-01 2004-05-19
-3 2004-04-10 2004-04-10
-DROP TABLE t1;
-CREATE TABLE t1 ( f1 int, f2 time);
-INSERT INTO t1 VALUES (1,'01:27:35'), (1,'06:11:01'), (2,'19:53:05'),
-(2,'21:44:25'), (3,'10:55:12'), (3,'05:45:11'), (4,'00:25:00');
-SELECT MIN(f2),MAX(f2) FROM t1;
-MIN(f2) MAX(f2)
-00:25:00 21:44:25
-SELECT f1,MIN(f2),MAX(f2) FROM t1 GROUP BY 1;
-f1 MIN(f2) MAX(f2)
-1 01:27:35 06:11:01
-2 19:53:05 21:44:25
-3 05:45:11 10:55:12
-4 00:25:00 00:25:00
-DROP TABLE t1;
-#End of test#49771
-#
-# Test of bug in GROUP_CONCAT with ROLLUP
-#
-CREATE TABLE t1 ( b VARCHAR(8) NOT NULL, a INT NOT NULL ) ENGINE=MyISAM;
-INSERT INTO t1 (a,b) VALUES (1,'c'),(2,'v');
-CREATE TABLE t2 ( c VARCHAR(8), d INT, KEY (c, d) ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('v',6),('c',4),('v',3);
-SELECT b, GROUP_CONCAT( a, b ORDER BY a, b )
-FROM t1 JOIN t2 ON c = b GROUP BY b;
-b GROUP_CONCAT( a, b ORDER BY a, b )
-c 1c
-v 2v,2v
-SELECT b, GROUP_CONCAT( a, b ORDER BY a, b )
-FROM t1 JOIN t2 ON c = b GROUP BY b WITH ROLLUP;
-b GROUP_CONCAT( a, b ORDER BY a, b )
-c 1c
-v 2v,2v
-NULL 1c,2v,2v
-DROP TABLE t1,t2;
-#
-# MDEV-6129: Server crashes during UNION with ORDER BY field IS NULL
-#
-SET sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 AS test UNION SELECT 2 AS test ORDER BY test IS NULL ASC;
-test
-1
-2
-SET sql_mode='';
-#
-# MDEV-6484: Assertion `tab->ref.use_count' failed on query with joins, constant table, multi-part key
-#
-CREATE TABLE t1 (i1 INT, c1 VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (6,'b');
-CREATE TABLE t2 (pk2 INT, i2 INT, c2 VARCHAR(1), PRIMARY KEY(pk2), KEY(pk2,i2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,2,'s'),(2,4,'r'),(3,8,'m'),(4,4,'b'),(5,4,'x'),(6,7,'g'),(7,4,'p');
-SELECT i2 FROM t1 AS t1a STRAIGHT_JOIN ( t2 INNER JOIN t1 AS t1b ON (t1b.c1 = c2) ) ON (t1b.i1 = pk2 )
-WHERE t1a.c1 = c2 GROUP BY i2;
-i2
-DROP TABLE t1,t2;
-#
-# MDEV-6855
-# MIN(*) with subqueries with IS NOT NULL in WHERE clause crashed.
-#
-CREATE TABLE t1 (i INT, c VARCHAR(3), KEY(c,i)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (7,'foo'),(0,'bar');
-CREATE TABLE t2 (j INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (0),(8),(1),(8),(9);
-SELECT MAX(i), c FROM t1
-WHERE c != 'qux' AND ( SELECT SUM(j) FROM t1, t2 ) IS NOT NULL GROUP BY c;
-MAX(i) c
-0 bar
-7 foo
-drop table t1,t2;
-#
-# ONLY_FULL_GROUP_BY references
-#
-set @save_sql_mode = @@sql_mode;
-set sql_mode='ONLY_FULL_GROUP_BY';
-create table t1 (a int, b int);
-select a+b as x from t1 group by x having x > 1;
-x
-select a as x from t1 group by x having x > 1;
-x
-select a from t1 group by a having a > 1;
-a
-drop table t1;
-set sql_mode= @save_sql_mode;
-create table t1 (f1 int);
-insert into t1 values (5),(9);
-create table t2 (f2 int);
-insert into t2 values (0),(6);
-create table t3 (f3 int);
-insert into t3 values (6),(3);
-create table t4 (f4 int);
-insert into t4 values (1),(0);
-select
-(select min(f1) from t1 where f1 in (select min(f4) from t2)) as field7,
-(select count(*) from t3 where f3 in (select max(f4) from t2 group by field7))
-from t4;
-ERROR 42S22: Reference 'field7' not supported (reference to group function)
-drop table t1, t2, t3, t4;
-create table t1 (i1 int);
-insert into t1 values (1);
-create table t2 (i int);
-insert into t2 values (2);
-select 1 from t1 left join t2 b on b.i = (select max(b.i) from t2);
-1
-1
-drop table t1, t2;
-create table t1 (c1 int, c2 int);
-create table t2 (c1 int, c2 int);
-select t1.c1 as c1, t2.c2 as c1 from t1, t2 where t1.c1 < 20 and t2.c2 > 5 group by t1.c1, t2.c2 having t1.c1 < 3;
-c1 c1
-drop table t1, t2;
-SET @old_sort_buff_size = @@sort_buffer_size;
-SET @@sort_buffer_size=256*1024;
-CREATE TABLE t1 (c INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-(2011),(1977),(1982),(2027),(2023),(NULL),(NULL),(2004),(1974),(2032),
-(1993),(NULL),(1995),(2034),(NULL),(2009),(1900),(NULL),(2025),(1900),
-(2033),(1900),(2012),(NULL),(2009),(1992),(1974),(1974),(2012),(2028),
-(2007),(2012),(1900),(1983),(1900),(2010),(1987),(1994),(1981),(2032),
-(2010),(1989),(2014),(1900),(1900),(1976),(1978),(2007),(2030),(NULL),
-(2002),(1997),(1900),(NULL),(2000),(2027),(1975),(2026),(1975),(2026),
-(2029),(1977),(1900),(1900),(2031),(1993),(1986),(2012),(1979),(2013),
-(1994),(2014),(2025),(2006),(1971),(1974),(2021),(2011),(NULL),(1991),
-(2001),(1977),(2023),(2012),(1900),(1978),(1998),(NULL),(1988),(1999),
-(2017),(2008),(1976),(1900),(2005),(2030),(2023),(1900),(1978),(1990),
-(1978),(1987),(2030),(1900),(2034),(2006),(2015),(2001),(2019),(2024),
-(2030),(1989),(1997),(2007),(2023),(1994),(1971),(2011),(2011),(2015),
-(1984),(1978),(1979),(1989),(2008),(2030);
-SELECT ExtractValue('<a></a>','/a') AS f1, SPACE(c) AS f2 FROM t1 GROUP BY f1, f2 WITH ROLLUP;
-f1 f2
- NULL
-
- NULL
-NULL NULL
-SET @@sort_buffer_size = @old_sort_buff_size;
-DROP TABLE t1;
-#
-# Bug #58782
-# Missing rows with SELECT .. WHERE .. IN subquery
-# with full GROUP BY and no aggr
-#
-CREATE TABLE t1 (
-pk INT NOT NULL,
-col_int_nokey INT,
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (10,7);
-INSERT INTO t1 VALUES (11,1);
-INSERT INTO t1 VALUES (12,5);
-INSERT INTO t1 VALUES (13,3);
-SELECT pk AS field1, col_int_nokey AS field2
-FROM t1
-WHERE col_int_nokey > 0
-GROUP BY field1, field2;
-field1 field2
-10 7
-11 1
-12 5
-13 3
-CREATE TABLE where_subselect
-SELECT pk AS field1, col_int_nokey AS field2
-FROM t1
-WHERE col_int_nokey > 0
-GROUP BY field1, field2
-;
-SELECT *
-FROM where_subselect
-WHERE (field1, field2) IN (
-SELECT pk AS field1, col_int_nokey AS field2
-FROM t1
-WHERE col_int_nokey > 0
-GROUP BY field1, field2
-);
-field1 field2
-10 7
-11 1
-12 5
-13 3
-DROP TABLE t1;
-DROP TABLE where_subselect;
-# End of Bug #58782
-#
-# MDEV-8988: Apparently valid SQL query gives wrong result (nested WHERE)
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b int, c int);
-insert into t1 select A.a + 10*B.a, A.a, A.a + 10*B.a from t0 A, t0 B;
-insert into t1 values (NULL, NULL, NULL);
-create table t2 (c int, col1 int, key(c));
-insert into t2 select t1.a, 100000 from t1;
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status Table is already up to date
-explain
-select
-max(a)+ (select col1 from t2 where t2.c=t1.c)
-from t1
-group by t1.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 101 Using temporary; Using filesort
-2 DEPENDENT SUBQUERY t2 ref c c 5 func 1
-select
-max(a) + (select col1 from t2 where t2.c=t1.c)
-from t1
-group by t1.b;
-max(a) + (select col1 from t2 where t2.c=t1.c)
-NULL
-100090
-100091
-100092
-100093
-100094
-100095
-100096
-100097
-100098
-100099
-drop table t0,t1,t2;
-#
-# MDEV-9602 crash in st_key::actual_rec_per_key when group by constant
-#
-create table t1 (a date not null,unique (a)) engine=innodb;
-Warnings:
-Warning 1286 Unknown storage engine 'innodb'
-Warning 1266 Using storage engine MyISAM for table 't1'
-select distinct a from t1 group by 'a';
-a
-insert into t1 values("2001-02-02"),("2001-02-03");
-select distinct a from t1 group by 'a';
-a
-2001-02-02
-drop table t1;
-#
-# MDEV-10324: Server crash in get_sel_arg_for_keypart or Assertion `n < size()' failed in Mem_root_array
-#
-CREATE TABLE t1 (
-job_id int(10) unsigned NOT NULL AUTO_INCREMENT,
-job_cmd varbinary(60) NOT NULL DEFAULT '',
-job_namespace int(11) NOT NULL,
-job_title varbinary(255) NOT NULL,
-job_params blob NOT NULL,
-job_timestamp varbinary(14) DEFAULT NULL,
-job_random int(10) unsigned NOT NULL DEFAULT '0',
-job_token varbinary(32) NOT NULL DEFAULT '',
-job_token_timestamp varbinary(14) DEFAULT NULL,
-job_sha1 varbinary(32) NOT NULL DEFAULT '',
-job_attempts int(10) unsigned NOT NULL DEFAULT '0',
-PRIMARY KEY (job_id),
-KEY job_cmd (job_cmd,job_namespace,job_title,job_params(128)),
-KEY job_timestamp (job_timestamp),
-KEY job_sha1 (job_sha1),
-KEY job_cmd_token (job_cmd,job_token,job_random),
-KEY job_cmd_token_id (job_cmd,job_token,job_id)
-);
-INSERT INTO t1 VALUES
-(NULL, 'foo', 1, 'foo', 'foo', 'foo', 1, 'foo', 'foo', 'foo', 1),
-(NULL, 'bar', 2, 'bar', 'bar', 'bar', 2, 'bar', 'bar', 'bar', 2);
-SELECT DISTINCT job_cmd FROM t1 WHERE job_cmd IN ('foobar','null');
-job_cmd
-drop table t1;
-CREATE TABLE t1 (f1 INT NOT NULL, f2 VARCHAR(3) NOT NULL, KEY(f1), KEY(f2, f1));
-INSERT INTO t1 VALUES (0,'foo'),(1,'bar');
-SELECT 1 IN ( SELECT COUNT( DISTINCT f2 ) FROM t1 WHERE f1 <= 4 );
-1 IN ( SELECT COUNT( DISTINCT f2 ) FROM t1 WHERE f1 <= 4 )
-0
-drop table t1;
-#
-# MDEV-10694 - SIGFPE and/or huge memory allocation in maria_create with distinct/group by/ rollup
-#
-create table t1 (a int,b int) ;
-insert into t1 values(-126,7),(1,1),(0,0),(-1,1),(351,65534);
-select distinct 1 from t1 group by a,b with rollup limit 1;
-1
-1
-drop table t1;
diff --git a/mysql-test/r/group_by_innodb.result b/mysql-test/r/group_by_innodb.result
deleted file mode 100644
index 034866b63d5..00000000000
--- a/mysql-test/r/group_by_innodb.result
+++ /dev/null
@@ -1,171 +0,0 @@
-set @save_ext_key_optimizer_switch=@@optimizer_switch;
-#
-# MDEV-3992 Server crash or valgrind errors in test_if_skip_sort_order/test_if_cheaper_ordering
-# on GROUP BY with indexes on InnoDB table
-#
-CREATE TABLE t1 (
-pk INT PRIMARY KEY,
-a VARCHAR(1) NOT NULL,
-KEY (pk)
-) ENGINE=InnoDB;
-set optimizer_switch='extended_keys=on';
-INSERT INTO t1 VALUES (1,'a'),(2,'b');
-EXPLAIN
-SELECT COUNT(*), pk field1, pk AS field2
-FROM t1 WHERE a = 'r' OR pk = 183
-GROUP BY field1, field2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY,pk PRIMARY 4 NULL 2 Using where
-SELECT COUNT(*), pk field1, pk AS field2
-FROM t1 WHERE a = 'r' OR pk = 183
-GROUP BY field1, field2;
-COUNT(*) field1 field2
-EXPLAIN
-SELECT COUNT(*), pk field1 FROM t1
-WHERE a = 'r' OR pk = 183 GROUP BY field1, field1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY,pk PRIMARY 4 NULL 2 Using where
-SELECT COUNT(*), pk field1 FROM t1
-WHERE a = 'r' OR pk = 183 GROUP BY field1, field1;
-COUNT(*) field1
-drop table t1;
-set optimizer_switch=@save_ext_key_optimizer_switch;
-#
-# MDEV-4002 Server crash or valgrind errors in Item_func_group_concat::setup and Item_func_group_concat::add
-#
-CREATE TABLE t1 (
-pk INT NOT NULL PRIMARY KEY,
-d1 DOUBLE,
-d2 DOUBLE,
-i INT NOT NULL DEFAULT '0',
-KEY (i)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1,1.0,1.1,1),(2,2.0,2.2,2);
-PREPARE stmt FROM "
-SELECT DISTINCT i, GROUP_CONCAT( d1, d2 ORDER BY d1, d2 )
-FROM t1 a1 NATURAL JOIN t1 a2 GROUP BY i WITH ROLLUP
-";
-EXECUTE stmt;
-i GROUP_CONCAT( d1, d2 ORDER BY d1, d2 )
-1 11.1
-2 22.2
-NULL 11.1,22.2
-EXECUTE stmt;
-i GROUP_CONCAT( d1, d2 ORDER BY d1, d2 )
-1 11.1
-2 22.2
-NULL 11.1,22.2
-DROP TABLE t1;
-End of 5.5 tests
-#
-# MDEV-5719: Wrong result with GROUP BY and LEFT OUTER JOIN
-#
-CREATE TABLE t1 (oidGroup INT, oid INT PRIMARY KEY)ENGINE=INNODB;
-INSERT INTO t1 VALUES (1,1),(1,2),(1,3),(1,4);
-CREATE TABLE t2 (oid INT PRIMARY KEY)ENGINE=INNODB;
-INSERT INTO t2 VALUES (3);
-SELECT a.oidGroup, a.oid, b.oid FROM t1 a LEFT JOIN t2 b ON
-a.oid=b.oid WHERE a.oidGroup=1;
-oidGroup oid oid
-1 1 NULL
-1 2 NULL
-1 3 3
-1 4 NULL
-SELECT a.oidGroup, a.oid, b.oid FROM t1 a LEFT JOIN t2 b ON
-a.oid=b.oid WHERE a.oidGroup=1 GROUP BY a.oid;
-oidGroup oid oid
-1 1 NULL
-1 2 NULL
-1 3 3
-1 4 NULL
-DROP TABLE t1, t2;
-#
-# MDEV-7193: Incorrect Query Result (MySQL Bug 68897) in MariaDB 10.0.14
-# (fixed by MDEV-5719)
-#
-CREATE TABLE `t1` (
-`param` int(11) NOT NULL,
-`idx` int(11) NOT NULL,
-`text` varchar(255) default NULL,
-PRIMARY KEY (`param`,`idx`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO `t1` (`param`, `idx`, `text`) VALUES
-(1, 0, 'select'),
-(1, 1, 'Kabel mit Stecker 5-polig'),
-(1, 2, 'Kabel ohne Stecker'),
-(2, 0, 'number'),
-(2, 1, '22'),
-(2, 2, '25');
-CREATE TABLE `t2` (
-`id` int PRIMARY KEY
-);
-INSERT INTO t2 VALUES (1),(2),(3),(4);
-SELECT t2.id AS id, T.text AS xtext,GROUP_CONCAT(T3.text) AS optionen
-FROM t2
-LEFT JOIN t1 AS T ON(T.param=t2.id AND T.idx=0 )
-LEFT JOIN t1 AS T3 ON(T3.param=t2.id AND T3.idx>0 )
-GROUP BY t2.id
-ORDER BY id ASC;
-id xtext optionen
-1 select Kabel mit Stecker 5-polig,Kabel ohne Stecker
-2 number 22,25
-3 NULL NULL
-4 NULL NULL
-SELECT t2.id AS id, T.text AS xtext,GROUP_CONCAT(T3.text) AS optionen
-FROM t2
-LEFT JOIN t1 AS T ON(T.param=t2.id AND T.idx=0 )
-LEFT JOIN t1 AS T3 ON(T3.param=t2.id AND T3.idx>0 )
-GROUP BY t2.id
-ORDER BY id DESC;
-id xtext optionen
-4 NULL NULL
-3 NULL NULL
-2 number 22,25
-1 select Kabel mit Stecker 5-polig,Kabel ohne Stecker
-DROP TABLE t1, t2;
-#
-# MDEV-11162: Assertion `num_records == m_idx_array.size()' failed in Filesort_buffer::alloc_sort_buffer(uint, uint)
-#
-CREATE TABLE t1 (i INT) ENGINE=InnoDB;
-SELECT ( SELECT DISTINCT GROUP_CONCAT(SLEEP(0)) FROM t1 GROUP BY i );
-( SELECT DISTINCT GROUP_CONCAT(SLEEP(0)) FROM t1 GROUP BY i )
-NULL
-SELECT i FROM t1 order by i LIMIT 1;
-i
-DROP TABLE t1;
-# Port of testcase:
-#
-# Bug#20819199 ASSERTION FAILED IN TEST_IF_SKIP_SORT_ORDER
-#
-CREATE TABLE t0 ( a INT );
-INSERT INTO t0 VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-CREATE TABLE t1 (
-pk INT NOT NULL AUTO_INCREMENT,
-a INT,
-b INT,
-PRIMARY KEY (pk),
-KEY idx1 (a),
-KEY idx2 (b, a),
-KEY idx3 (a, b)
-) ENGINE = InnoDB;
-INSERT INTO t1 (a, b) SELECT t01.a, t02.a FROM t0 t01, t0 t02;
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-EXPLAIN SELECT DISTINCT a, MAX(b) FROM t1 WHERE a >= 0 GROUP BY a,a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx1,idx3 idx3 5 NULL 100 Using where; Using index
-SELECT DISTINCT a, MAX(b) FROM t1 WHERE a >= 0 GROUP BY a,a;
-a MAX(b)
-1 10
-2 10
-3 10
-4 10
-5 10
-6 10
-7 10
-8 10
-9 10
-10 10
-DROP TABLE t0, t1;
-# End of tests
diff --git a/mysql-test/r/group_by_null.result b/mysql-test/r/group_by_null.result
deleted file mode 100644
index 1ae090fdc63..00000000000
--- a/mysql-test/r/group_by_null.result
+++ /dev/null
@@ -1,6 +0,0 @@
-create table t1 (a int);
-insert into t1 values (1),(2);
-select max('foo') from t1 group by value(a), extractvalue('bar','qux') order by "v";
-max('foo')
-foo
-drop table t1;
diff --git a/mysql-test/r/group_min_max.result b/mysql-test/r/group_min_max.result
deleted file mode 100644
index 36a44b05817..00000000000
--- a/mysql-test/r/group_min_max.result
+++ /dev/null
@@ -1,3897 +0,0 @@
-drop table if exists t1;
-create table t1 (
-a1 char(64), a2 char(64), b char(16), c char(16) not null, d char(16), dummy char(248) default ' '
-);
-insert into t1 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4'),
-('d','a','a','a411','xy1'),('d','a','a','b411','xy2'),('d','a','a','c411','xy3'),('d','a','a','d411','xy4'),
-('d','a','b','e412','xy1'),('d','a','b','f412','xy2'),('d','a','b','g412','xy3'),('d','a','b','h412','xy4'),
-('d','b','a','i421','xy1'),('d','b','a','j421','xy2'),('d','b','a','k421','xy3'),('d','b','a','l421','xy4'),
-('d','b','b','m422','xy1'),('d','b','b','n422','xy2'),('d','b','b','o422','xy3'),('d','b','b','p422','xy4'),
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4'),
-('d','a','a','a411','xy1'),('d','a','a','b411','xy2'),('d','a','a','c411','xy3'),('d','a','a','d411','xy4'),
-('d','a','b','e412','xy1'),('d','a','b','f412','xy2'),('d','a','b','g412','xy3'),('d','a','b','h412','xy4'),
-('d','b','a','i421','xy1'),('d','b','a','j421','xy2'),('d','b','a','k421','xy3'),('d','b','a','l421','xy4'),
-('d','b','b','m422','xy1'),('d','b','b','n422','xy2'),('d','b','b','o422','xy3'),('d','b','b','p422','xy4');
-create index idx_t1_0 on t1 (a1);
-create index idx_t1_1 on t1 (a1,a2,b,c);
-create index idx_t1_2 on t1 (a1,a2,b);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-drop table if exists t2;
-create table t2 (
-a1 char(64), a2 char(64) not null, b char(16), c char(16), d char(16), dummy char(248) default ' '
-);
-insert into t2 select * from t1;
-insert into t2 (a1, a2, b, c, d) values
-('a','a',NULL,'a777','xyz'),('a','a',NULL,'a888','xyz'),('a','a',NULL,'a999','xyz'),
-('a','a','a',NULL,'xyz'),
-('a','a','b',NULL,'xyz'),
-('a','b','a',NULL,'xyz'),
-('c','a',NULL,'c777','xyz'),('c','a',NULL,'c888','xyz'),('c','a',NULL,'c999','xyz'),
-('d','b','b',NULL,'xyz'),
-('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),
-('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),
-('a','a',NULL,'a777','xyz'),('a','a',NULL,'a888','xyz'),('a','a',NULL,'a999','xyz'),
-('a','a','a',NULL,'xyz'),
-('a','a','b',NULL,'xyz'),
-('a','b','a',NULL,'xyz'),
-('c','a',NULL,'c777','xyz'),('c','a',NULL,'c888','xyz'),('c','a',NULL,'c999','xyz'),
-('d','b','b',NULL,'xyz'),
-('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),
-('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz');
-create index idx_t2_0 on t2 (a1);
-create index idx_t2_1 on t2 (a1,a2,b,c);
-create index idx_t2_2 on t2 (a1,a2,b);
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status Table is already up to date
-drop table if exists t3;
-create table t3 (
-a1 char(1), a2 char(1), b char(1), c char(4) not null, d char(3), dummy char(1) default ' '
-);
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-create index idx_t3_0 on t3 (a1);
-create index idx_t3_1 on t3 (a1,a2,b,c);
-create index idx_t3_2 on t3 (a1,a2,b);
-analyze table t3;
-Table Op Msg_type Msg_text
-test.t3 analyze status Table is already up to date
-explain select a1, min(a2) from t1 group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 130 NULL 5 Using index for group-by
-explain select a1, max(a2) from t1 group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 65 NULL 5 Using index for group-by
-explain select a1, min(a2), max(a2) from t1 group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 130 NULL 5 Using index for group-by
-explain select a1, a2, b, min(c), max(c) from t1 group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using index for group-by
-explain select a1,a2,b,max(c),min(c) from t1 group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using index for group-by
-explain select a1,a2,b,max(c),min(c) from t2 group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 # NULL # Using index for group-by
-explain select min(a2), a1, max(a2), min(a2), a1 from t1 group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 130 NULL 5 Using index for group-by
-explain select a1, b, min(c), a1, max(c), b, a2, max(c), max(c) from t1 group by a1, a2, b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using index for group-by
-explain select min(a2) from t1 group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 130 NULL 5 Using index for group-by
-explain select a2, min(c), max(c) from t1 group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using index for group-by
-select a1, min(a2) from t1 group by a1;
-a1 min(a2)
-a a
-b a
-c a
-d a
-select a1, max(a2) from t1 group by a1;
-a1 max(a2)
-a b
-b b
-c b
-d b
-select a1, min(a2), max(a2) from t1 group by a1;
-a1 min(a2) max(a2)
-a a b
-b a b
-c a b
-d a b
-select a1, a2, b, min(c), max(c) from t1 group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a a111 d111
-a a b e112 h112
-a b a i121 l121
-a b b m122 p122
-b a a a211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-c a a a311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a a411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b,max(c),min(c) from t1 group by a1,a2,b;
-a1 a2 b max(c) min(c)
-a a a d111 a111
-a a b h112 e112
-a b a l121 i121
-a b b p122 m122
-b a a d211 a211
-b a b h212 e212
-b b a l221 i221
-b b b p222 m222
-c a a d311 a311
-c a b h312 e312
-c b a l321 i321
-c b b p322 m322
-d a a d411 a411
-d a b h412 e412
-d b a l421 i421
-d b b p422 m422
-select a1,a2,b,max(c),min(c) from t2 group by a1,a2,b;
-a1 a2 b max(c) min(c)
-a a NULL a999 a777
-a a a d111 a111
-a a b h112 e112
-a b a l121 i121
-a b b p122 m122
-b a a d211 a211
-b a b h212 e212
-b b a l221 i221
-b b b p222 m222
-c a NULL c999 c777
-c a a d311 a311
-c a b h312 e312
-c b a l321 i321
-c b b p322 m322
-d a a d411 a411
-d a b h412 e412
-d b a l421 i421
-d b b p422 m422
-e a a NULL NULL
-e a b NULL NULL
-select min(a2), a1, max(a2), min(a2), a1 from t1 group by a1;
-min(a2) a1 max(a2) min(a2) a1
-a a b a a
-a b b a b
-a c b a c
-a d b a d
-select a1, b, min(c), a1, max(c), b, a2, max(c), max(c) from t1 group by a1, a2, b;
-a1 b min(c) a1 max(c) b a2 max(c) max(c)
-a a a111 a d111 a a d111 d111
-a b e112 a h112 b a h112 h112
-a a i121 a l121 a b l121 l121
-a b m122 a p122 b b p122 p122
-b a a211 b d211 a a d211 d211
-b b e212 b h212 b a h212 h212
-b a i221 b l221 a b l221 l221
-b b m222 b p222 b b p222 p222
-c a a311 c d311 a a d311 d311
-c b e312 c h312 b a h312 h312
-c a i321 c l321 a b l321 l321
-c b m322 c p322 b b p322 p322
-d a a411 d d411 a a d411 d411
-d b e412 d h412 b a h412 h412
-d a i421 d l421 a b l421 l421
-d b m422 d p422 b b p422 p422
-select min(a2) from t1 group by a1;
-min(a2)
-a
-a
-a
-a
-select a2, min(c), max(c) from t1 group by a1,a2,b;
-a2 min(c) max(c)
-a a111 d111
-a e112 h112
-b i121 l121
-b m122 p122
-a a211 d211
-a e212 h212
-b i221 l221
-b m222 p222
-a a311 d311
-a e312 h312
-b i321 l321
-b m322 p322
-a a411 d411
-a e412 h412
-b i421 l421
-b m422 p422
-explain select a1,a2,b,min(c),max(c) from t1 where a1 < 'd' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 10 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where a1 >= 'b' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 14 Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t1 where a1 >= 'c' or a1 < 'b' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 14 Using where; Using index for group-by
-explain select a1, max(c) from t1 where a1 >= 'c' or a1 < 'b' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 14 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where a1 >= 'c' or a2 < 'b' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t1 where a1 = 'z' or a1 = 'b' or a1 = 'd' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 10 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where a1 = 'z' or a1 = 'b' or a1 = 'd' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 10 Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t1 where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 10 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 10 Using where; Using index for group-by
-explain select a1,min(c),max(c) from t1 where a1 >= 'b' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 14 Using where; Using index for group-by
-explain select a1, max(c) from t1 where a1 in ('a','b','d') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 14 Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t2 where a1 < 'd' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 146 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where a1 < 'd' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where a1 >= 'b' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t2 where a1 >= 'c' or a1 < 'b' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 146 NULL # Using where; Using index for group-by
-explain select a1, max(c) from t2 where a1 >= 'c' or a1 < 'b' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 146 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where a1 >= 'c' or a2 < 'b' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t2 where a1 = 'z' or a1 = 'b' or a1 = 'd' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 146 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where a1 = 'z' or a1 = 'b' or a1 = 'd' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t2 where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 146 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,min(c),max(c) from t2 where a1 >= 'b' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1, max(c) from t2 where a1 in ('a','b','d') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 146 NULL # Using where; Using index for group-by
-select a1,a2,b,min(c),max(c) from t1 where a1 < 'd' group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a a111 d111
-a a b e112 h112
-a b a i121 l121
-a b b m122 p122
-b a a a211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-c a a a311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-select a1,a2,b,min(c),max(c) from t1 where a1 >= 'b' group by a1,a2,b;
-a1 a2 b min(c) max(c)
-b a a a211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-c a a a311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a a411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b, max(c) from t1 where a1 >= 'c' or a1 < 'b' group by a1,a2,b;
-a1 a2 b max(c)
-a a a d111
-a a b h112
-a b a l121
-a b b p122
-c a a d311
-c a b h312
-c b a l321
-c b b p322
-d a a d411
-d a b h412
-d b a l421
-d b b p422
-select a1, max(c) from t1 where a1 >= 'c' or a1 < 'b' group by a1,a2,b;
-a1 max(c)
-a d111
-a h112
-a l121
-a p122
-c d311
-c h312
-c l321
-c p322
-d d411
-d h412
-d l421
-d p422
-select a1,a2,b,min(c),max(c) from t1 where a1 >= 'c' or a2 < 'b' group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a a111 d111
-a a b e112 h112
-b a a a211 d211
-b a b e212 h212
-c a a a311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a a411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b, max(c) from t1 where a1 = 'z' or a1 = 'b' or a1 = 'd' group by a1,a2,b;
-a1 a2 b max(c)
-b a a d211
-b a b h212
-b b a l221
-b b b p222
-d a a d411
-d a b h412
-d b a l421
-d b b p422
-select a1,a2,b,min(c),max(c) from t1 where a1 = 'z' or a1 = 'b' or a1 = 'd' group by a1,a2,b;
-a1 a2 b min(c) max(c)
-b a a a211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-d a a a411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b, max(c) from t1 where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') group by a1,a2,b;
-a1 a2 b max(c)
-a b a l121
-a b b p122
-b b a l221
-b b b p222
-c b a l321
-c b b p322
-d b a l421
-d b b p422
-select a1,a2,b,min(c),max(c) from t1 where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a b a i121 l121
-a b b m122 p122
-b b a i221 l221
-b b b m222 p222
-c b a i321 l321
-c b b m322 p322
-d b a i421 l421
-d b b m422 p422
-select a1,min(c),max(c) from t1 where a1 >= 'b' group by a1,a2,b;
-a1 min(c) max(c)
-b a211 d211
-b e212 h212
-b i221 l221
-b m222 p222
-c a311 d311
-c e312 h312
-c i321 l321
-c m322 p322
-d a411 d411
-d e412 h412
-d i421 l421
-d m422 p422
-select a1, max(c) from t1 where a1 in ('a','b','d') group by a1,a2,b;
-a1 max(c)
-a d111
-a h112
-a l121
-a p122
-b d211
-b h212
-b l221
-b p222
-d d411
-d h412
-d l421
-d p422
-select a1,a2,b, max(c) from t2 where a1 < 'd' group by a1,a2,b;
-a1 a2 b max(c)
-a a NULL a999
-a a a d111
-a a b h112
-a b a l121
-a b b p122
-b a a d211
-b a b h212
-b b a l221
-b b b p222
-c a NULL c999
-c a a d311
-c a b h312
-c b a l321
-c b b p322
-select a1,a2,b,min(c),max(c) from t2 where a1 < 'd' group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a NULL a777 a999
-a a a a111 d111
-a a b e112 h112
-a b a i121 l121
-a b b m122 p122
-b a a a211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-c a NULL c777 c999
-c a a a311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-select a1,a2,b,min(c),max(c) from t2 where a1 >= 'b' group by a1,a2,b;
-a1 a2 b min(c) max(c)
-b a a a211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-c a NULL c777 c999
-c a a a311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a a411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-e a a NULL NULL
-e a b NULL NULL
-select a1,a2,b, max(c) from t2 where a1 >= 'c' or a1 < 'b' group by a1,a2,b;
-a1 a2 b max(c)
-a a NULL a999
-a a a d111
-a a b h112
-a b a l121
-a b b p122
-c a NULL c999
-c a a d311
-c a b h312
-c b a l321
-c b b p322
-d a a d411
-d a b h412
-d b a l421
-d b b p422
-e a a NULL
-e a b NULL
-select a1, max(c) from t2 where a1 >= 'c' or a1 < 'b' group by a1,a2,b;
-a1 max(c)
-a a999
-a d111
-a h112
-a l121
-a p122
-c c999
-c d311
-c h312
-c l321
-c p322
-d d411
-d h412
-d l421
-d p422
-e NULL
-e NULL
-select a1,a2,b,min(c),max(c) from t2 where a1 >= 'c' or a2 < 'b' group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a NULL a777 a999
-a a a a111 d111
-a a b e112 h112
-b a a a211 d211
-b a b e212 h212
-c a NULL c777 c999
-c a a a311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a a411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-e a a NULL NULL
-e a b NULL NULL
-select a1,a2,b, max(c) from t2 where a1 = 'z' or a1 = 'b' or a1 = 'd' group by a1,a2,b;
-a1 a2 b max(c)
-b a a d211
-b a b h212
-b b a l221
-b b b p222
-d a a d411
-d a b h412
-d b a l421
-d b b p422
-select a1,a2,b,min(c),max(c) from t2 where a1 = 'z' or a1 = 'b' or a1 = 'd' group by a1,a2,b;
-a1 a2 b min(c) max(c)
-b a a a211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-d a a a411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b, max(c) from t2 where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') group by a1,a2,b;
-a1 a2 b max(c)
-a b a l121
-a b b p122
-b b a l221
-b b b p222
-c b a l321
-c b b p322
-d b a l421
-d b b p422
-select a1,a2,b,min(c),max(c) from t2 where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a b a i121 l121
-a b b m122 p122
-b b a i221 l221
-b b b m222 p222
-c b a i321 l321
-c b b m322 p322
-d b a i421 l421
-d b b m422 p422
-select a1,min(c),max(c) from t2 where a1 >= 'b' group by a1,a2,b;
-a1 min(c) max(c)
-b a211 d211
-b e212 h212
-b i221 l221
-b m222 p222
-c c777 c999
-c a311 d311
-c e312 h312
-c i321 l321
-c m322 p322
-d a411 d411
-d e412 h412
-d i421 l421
-d m422 p422
-e NULL NULL
-e NULL NULL
-select a1, max(c) from t2 where a1 in ('a','b','d') group by a1,a2,b;
-a1 max(c)
-a a999
-a d111
-a h112
-a l121
-a p122
-b d211
-b h212
-b l221
-b p222
-d d411
-d h412
-d l421
-d p422
-explain select a1,a2,b,max(c),min(c) from t1 where (a2 = 'a') and (b = 'b') group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 5 Using where; Using index for group-by
-explain select a1,max(c),min(c) from t1 where (a2 = 'a') and (b = 'b') group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 5 Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t1 where (b = 'b') group by a1,a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 9 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where (b = 'b') group by a1,a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 9 Using where; Using index for group-by
-explain select a1,a2, max(c) from t1 where (b = 'b') group by a1,a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 9 Using where; Using index for group-by
-explain select a1,a2,b,max(c),min(c) from t2 where (a2 = 'a') and (b = 'b') group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL 5 Using where; Using index for group-by
-explain select a1,max(c),min(c) from t2 where (a2 = 'a') and (b = 'b') group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL 5 Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t2 where (b = 'b') group by a1,a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 146 NULL 10 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where (b = 'b') group by a1,a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL 10 Using where; Using index for group-by
-explain select a1,a2, max(c) from t2 where (b = 'b') group by a1,a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 146 NULL 10 Using where; Using index for group-by
-explain select a1,a2,b,max(c),min(c) from t3 where (a2 = 'a') and (b = 'b') group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 range NULL idx_t3_1 6 NULL 4 Using where; Using index for group-by
-explain select a1,max(c),min(c) from t3 where (a2 = 'a') and (b = 'b') group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 range NULL idx_t3_1 6 NULL 4 Using where; Using index for group-by
-select a1,a2,b,max(c),min(c) from t1 where (a2 = 'a') and (b = 'b') group by a1;
-a1 a2 b max(c) min(c)
-a a b h112 e112
-b a b h212 e212
-c a b h312 e312
-d a b h412 e412
-select a1,max(c),min(c) from t1 where (a2 = 'a') and (b = 'b') group by a1;
-a1 max(c) min(c)
-a h112 e112
-b h212 e212
-c h312 e312
-d h412 e412
-select a1,a2,b, max(c) from t1 where (b = 'b') group by a1,a2;
-a1 a2 b max(c)
-a a b h112
-a b b p122
-b a b h212
-b b b p222
-c a b h312
-c b b p322
-d a b h412
-d b b p422
-select a1,a2,b,min(c),max(c) from t1 where (b = 'b') group by a1,a2;
-a1 a2 b min(c) max(c)
-a a b e112 h112
-a b b m122 p122
-b a b e212 h212
-b b b m222 p222
-c a b e312 h312
-c b b m322 p322
-d a b e412 h412
-d b b m422 p422
-select a1,a2, max(c) from t1 where (b = 'b') group by a1,a2;
-a1 a2 max(c)
-a a h112
-a b p122
-b a h212
-b b p222
-c a h312
-c b p322
-d a h412
-d b p422
-select a1,a2,b,max(c),min(c) from t2 where (a2 = 'a') and (b = 'b') group by a1;
-a1 a2 b max(c) min(c)
-a a b h112 e112
-b a b h212 e212
-c a b h312 e312
-d a b h412 e412
-e a b NULL NULL
-select a1,max(c),min(c) from t2 where (a2 = 'a') and (b = 'b') group by a1;
-a1 max(c) min(c)
-a h112 e112
-b h212 e212
-c h312 e312
-d h412 e412
-e NULL NULL
-select a1,a2,b, max(c) from t2 where (b = 'b') group by a1,a2;
-a1 a2 b max(c)
-a a b h112
-a b b p122
-b a b h212
-b b b p222
-c a b h312
-c b b p322
-d a b h412
-d b b p422
-e a b NULL
-select a1,a2,b,min(c),max(c) from t2 where (b = 'b') group by a1,a2;
-a1 a2 b min(c) max(c)
-a a b e112 h112
-a b b m122 p122
-b a b e212 h212
-b b b m222 p222
-c a b e312 h312
-c b b m322 p322
-d a b e412 h412
-d b b m422 p422
-e a b NULL NULL
-select a1,a2, max(c) from t2 where (b = 'b') group by a1,a2;
-a1 a2 max(c)
-a a h112
-a b p122
-b a h212
-b b p222
-c a h312
-c b p322
-d a h412
-d b p422
-e a NULL
-select a1,a2,b,max(c),min(c) from t3 where (a2 = 'a') and (b = 'b') group by a1;
-a1 a2 b max(c) min(c)
-a a b h112 e112
-b a b h212 e212
-c a b h312 e312
-select a1,max(c),min(c) from t3 where (a2 = 'a') and (b = 'b') group by a1;
-a1 max(c) min(c)
-a h112 e112
-b h212 e212
-c h312 e312
-explain select a1,a2,b,min(c) from t2 where (a2 = 'a') and b is NULL group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL 5 Using where; Using index for group-by
-explain select a1,a2,b,max(c) from t2 where (a2 = 'a') and b is NULL group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 146 NULL 5 Using where; Using index for group-by
-explain select a1,a2,b,min(c) from t2 where b is NULL group by a1,a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL 10 Using where; Using index for group-by
-explain select a1,a2,b,max(c) from t2 where b is NULL group by a1,a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 146 NULL 10 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where b is NULL group by a1,a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL 10 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where b is NULL group by a1,a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL 10 Using where; Using index for group-by
-select a1,a2,b,min(c) from t2 where (a2 = 'a') and b is NULL group by a1;
-a1 a2 b min(c)
-a a NULL a777
-c a NULL c777
-select a1,a2,b,max(c) from t2 where (a2 = 'a') and b is NULL group by a1;
-a1 a2 b max(c)
-a a NULL a999
-c a NULL c999
-select a1,a2,b,min(c) from t2 where b is NULL group by a1,a2;
-a1 a2 b min(c)
-a a NULL a777
-c a NULL c777
-select a1,a2,b,max(c) from t2 where b is NULL group by a1,a2;
-a1 a2 b max(c)
-a a NULL a999
-c a NULL c999
-select a1,a2,b,min(c),max(c) from t2 where b is NULL group by a1,a2;
-a1 a2 b min(c) max(c)
-a a NULL a777 a999
-c a NULL c777 c999
-select a1,a2,b,min(c),max(c) from t2 where b is NULL group by a1,a2;
-a1 a2 b min(c) max(c)
-a a NULL a777 a999
-c a NULL c777 c999
-explain select a1,a2,b, max(c) from t1 where (c > 'b1') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where (c > 'b1') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t1 where (c > 'f123') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where (c > 'f123') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t1 where (c < 'a0') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where (c < 'a0') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t1 where (c < 'k321') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where (c < 'k321') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t1 where (c < 'a0') or (c > 'b1') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where (c < 'a0') or (c > 'b1') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t1 where (c > 'b1') or (c <= 'g1') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where (c > 'b1') or (c <= 'g1') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where (c > 'b111') and (c <= 'g112') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where (c < 'c5') or (c = 'g412') or (c = 'k421') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where ((c > 'b111') and (c <= 'g112')) or ((c > 'd000') and (c <= 'i110')) group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where (c between 'b111' and 'g112') or (c between 'd000' and 'i110') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t2 where (c > 'b1') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 146 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where (c > 'b1') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t2 where (c > 'f123') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 146 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where (c > 'f123') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t2 where (c < 'a0') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where (c < 'a0') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t2 where (c < 'k321') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where (c < 'k321') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t2 where (c < 'a0') or (c > 'b1') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where (c < 'a0') or (c > 'b1') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b, max(c) from t2 where (c > 'b1') or (c <= 'g1') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 146 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where (c > 'b1') or (c <= 'g1') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where (c > 'b111') and (c <= 'g112') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where (c < 'c5') or (c = 'g412') or (c = 'k421') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where ((c > 'b111') and (c <= 'g112')) or ((c > 'd000') and (c <= 'i110')) group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL # Using where; Using index for group-by
-select a1,a2,b, max(c) from t1 where (c > 'b1') group by a1,a2,b;
-a1 a2 b max(c)
-a a a d111
-a a b h112
-a b a l121
-a b b p122
-b a a d211
-b a b h212
-b b a l221
-b b b p222
-c a a d311
-c a b h312
-c b a l321
-c b b p322
-d a a d411
-d a b h412
-d b a l421
-d b b p422
-select a1,a2,b,min(c),max(c) from t1 where (c > 'b1') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a b111 d111
-a a b e112 h112
-a b a i121 l121
-a b b m122 p122
-b a a b211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-c a a b311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a b411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b, max(c) from t1 where (c > 'f123') group by a1,a2,b;
-a1 a2 b max(c)
-a a b h112
-a b a l121
-a b b p122
-b a b h212
-b b a l221
-b b b p222
-c a b h312
-c b a l321
-c b b p322
-d a b h412
-d b a l421
-d b b p422
-select a1,a2,b,min(c),max(c) from t1 where (c > 'f123') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a b g112 h112
-a b a i121 l121
-a b b m122 p122
-b a b f212 h212
-b b a i221 l221
-b b b m222 p222
-c a b f312 h312
-c b a i321 l321
-c b b m322 p322
-d a b f412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b, max(c) from t1 where (c < 'a0') group by a1,a2,b;
-a1 a2 b max(c)
-select a1,a2,b,min(c),max(c) from t1 where (c < 'a0') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-select a1,a2,b, max(c) from t1 where (c < 'k321') group by a1,a2,b;
-a1 a2 b max(c)
-a a a d111
-a a b h112
-a b a k121
-b a a d211
-b a b h212
-b b a k221
-c a a d311
-c a b h312
-c b a j321
-d a a d411
-d a b h412
-d b a j421
-select a1,a2,b,min(c),max(c) from t1 where (c < 'k321') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a a111 d111
-a a b e112 h112
-a b a i121 k121
-b a a a211 d211
-b a b e212 h212
-b b a i221 k221
-c a a a311 d311
-c a b e312 h312
-c b a i321 j321
-d a a a411 d411
-d a b e412 h412
-d b a i421 j421
-select a1,a2,b, max(c) from t1 where (c < 'a0') or (c > 'b1') group by a1,a2,b;
-a1 a2 b max(c)
-a a a d111
-a a b h112
-a b a l121
-a b b p122
-b a a d211
-b a b h212
-b b a l221
-b b b p222
-c a a d311
-c a b h312
-c b a l321
-c b b p322
-d a a d411
-d a b h412
-d b a l421
-d b b p422
-select a1,a2,b,min(c),max(c) from t1 where (c < 'a0') or (c > 'b1') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a b111 d111
-a a b e112 h112
-a b a i121 l121
-a b b m122 p122
-b a a b211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-c a a b311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a b411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b, max(c) from t1 where (c > 'b1') or (c <= 'g1') group by a1,a2,b;
-a1 a2 b max(c)
-a a a d111
-a a b h112
-a b a l121
-a b b p122
-b a a d211
-b a b h212
-b b a l221
-b b b p222
-c a a d311
-c a b h312
-c b a l321
-c b b p322
-d a a d411
-d a b h412
-d b a l421
-d b b p422
-select a1,a2,b,min(c),max(c) from t1 where (c > 'b1') or (c <= 'g1') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a a111 d111
-a a b e112 h112
-a b a i121 l121
-a b b m122 p122
-b a a a211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-c a a a311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a a411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b,min(c),max(c) from t1 where (c > 'b111') and (c <= 'g112') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a c111 d111
-a a b e112 g112
-b a a b211 d211
-b a b e212 f212
-c a a b311 d311
-c a b e312 f312
-d a a b411 d411
-d a b e412 f412
-select a1,a2,b,min(c),max(c) from t1 where (c < 'c5') or (c = 'g412') or (c = 'k421') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a a111 c111
-b a a a211 c211
-c a a a311 c311
-d a a a411 c411
-d a b g412 g412
-d b a k421 k421
-select a1,a2,b,min(c),max(c) from t1 where ((c > 'b111') and (c <= 'g112')) or ((c > 'd000') and (c <= 'i110')) group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a c111 d111
-a a b e112 h112
-b a a b211 d211
-b a b e212 h212
-c a a b311 d311
-c a b e312 h312
-d a a b411 d411
-d a b e412 h412
-select a1,a2,b,min(c),max(c) from t1 where (c between 'b111' and 'g112') or (c between 'd000' and 'i110') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a b111 d111
-a a b e112 h112
-b a a b211 d211
-b a b e212 h212
-c a a b311 d311
-c a b e312 h312
-d a a b411 d411
-d a b e412 h412
-select a1,a2,b, max(c) from t2 where (c > 'b1') group by a1,a2,b;
-a1 a2 b max(c)
-a a a d111
-a a b h112
-a b a l121
-a b b p122
-b a a d211
-b a b h212
-b b a l221
-b b b p222
-c a NULL c999
-c a a d311
-c a b h312
-c b a l321
-c b b p322
-d a a d411
-d a b h412
-d b a l421
-d b b p422
-select a1,a2,b,min(c),max(c) from t2 where (c > 'b1') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a b111 d111
-a a b e112 h112
-a b a i121 l121
-a b b m122 p122
-b a a b211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-c a NULL c777 c999
-c a a b311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a b411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b, max(c) from t2 where (c > 'f123') group by a1,a2,b;
-a1 a2 b max(c)
-a a b h112
-a b a l121
-a b b p122
-b a b h212
-b b a l221
-b b b p222
-c a b h312
-c b a l321
-c b b p322
-d a b h412
-d b a l421
-d b b p422
-select a1,a2,b,min(c),max(c) from t2 where (c > 'f123') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a b g112 h112
-a b a i121 l121
-a b b m122 p122
-b a b f212 h212
-b b a i221 l221
-b b b m222 p222
-c a b f312 h312
-c b a i321 l321
-c b b m322 p322
-d a b f412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b, max(c) from t2 where (c < 'a0') group by a1,a2,b;
-a1 a2 b max(c)
-select a1,a2,b,min(c),max(c) from t2 where (c < 'a0') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-select a1,a2,b, max(c) from t2 where (c < 'k321') group by a1,a2,b;
-a1 a2 b max(c)
-a a NULL a999
-a a a d111
-a a b h112
-a b a k121
-b a a d211
-b a b h212
-b b a k221
-c a NULL c999
-c a a d311
-c a b h312
-c b a j321
-d a a d411
-d a b h412
-d b a j421
-select a1,a2,b,min(c),max(c) from t2 where (c < 'k321') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a NULL a777 a999
-a a a a111 d111
-a a b e112 h112
-a b a i121 k121
-b a a a211 d211
-b a b e212 h212
-b b a i221 k221
-c a NULL c777 c999
-c a a a311 d311
-c a b e312 h312
-c b a i321 j321
-d a a a411 d411
-d a b e412 h412
-d b a i421 j421
-select a1,a2,b, max(c) from t2 where (c < 'a0') or (c > 'b1') group by a1,a2,b;
-a1 a2 b max(c)
-a a a d111
-a a b h112
-a b a l121
-a b b p122
-b a a d211
-b a b h212
-b b a l221
-b b b p222
-c a NULL c999
-c a a d311
-c a b h312
-c b a l321
-c b b p322
-d a a d411
-d a b h412
-d b a l421
-d b b p422
-select a1,a2,b,min(c),max(c) from t2 where (c < 'a0') or (c > 'b1') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a b111 d111
-a a b e112 h112
-a b a i121 l121
-a b b m122 p122
-b a a b211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-c a NULL c777 c999
-c a a b311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a b411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b, max(c) from t2 where (c > 'b1') or (c <= 'g1') group by a1,a2,b;
-a1 a2 b max(c)
-a a NULL a999
-a a a d111
-a a b h112
-a b a l121
-a b b p122
-b a a d211
-b a b h212
-b b a l221
-b b b p222
-c a NULL c999
-c a a d311
-c a b h312
-c b a l321
-c b b p322
-d a a d411
-d a b h412
-d b a l421
-d b b p422
-select a1,a2,b,min(c),max(c) from t2 where (c > 'b1') or (c <= 'g1') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a NULL a777 a999
-a a a a111 d111
-a a b e112 h112
-a b a i121 l121
-a b b m122 p122
-b a a a211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-c a NULL c777 c999
-c a a a311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a a411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b,min(c),max(c) from t2 where (c > 'b111') and (c <= 'g112') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a c111 d111
-a a b e112 g112
-b a a b211 d211
-b a b e212 f212
-c a NULL c777 c999
-c a a b311 d311
-c a b e312 f312
-d a a b411 d411
-d a b e412 f412
-select a1,a2,b,min(c),max(c) from t2 where (c < 'c5') or (c = 'g412') or (c = 'k421') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a NULL a777 a999
-a a a a111 c111
-b a a a211 c211
-c a a a311 c311
-d a a a411 c411
-d a b g412 g412
-d b a k421 k421
-select a1,a2,b,min(c),max(c) from t2 where ((c > 'b111') and (c <= 'g112')) or ((c > 'd000') and (c <= 'i110')) group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a c111 d111
-a a b e112 h112
-b a a b211 d211
-b a b e212 h212
-c a NULL c777 c999
-c a a b311 d311
-c a b e312 h312
-d a a b411 d411
-d a b e412 h412
-explain select a1,a2,b,min(c),max(c) from t1
-where exists ( select * from t2 where t2.c = t1.c )
-group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL idx_t1_1 163 NULL 128 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 16 func 1
-2 MATERIALIZED t2 index NULL idx_t2_1 163 NULL 164 Using index
-select a1,a2,b,min(c),max(c) from t1
-where exists ( select * from t2 where t2.c = t1.c )
-group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a a111 d111
-a a b e112 h112
-a b a i121 l121
-a b b m122 p122
-b a a a211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-c a a a311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a a411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-explain select a1,a2,b,min(c),max(c) from t1
-where exists ( select * from t2 where t2.c > 'b1' )
-group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL idx_t1_1 163 NULL 128 Using index
-2 SUBQUERY t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-select a1,a2,b,min(c),max(c) from t1
-where exists ( select * from t2 where t2.c > 'b1' )
-group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a a111 d111
-a a b e112 h112
-a b a i121 l121
-a b b m122 p122
-b a a a211 d211
-b a b e212 h212
-b b a i221 l221
-b b b m222 p222
-c a a a311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a a411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-explain select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2 where t1.b > 'a' and t2.c > 'b1' )
-group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL idx_t1_1 163 NULL 128 Using where; Using index
-2 DEPENDENT SUBQUERY t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2 where t1.b > 'a' and t2.c > 'b1' )
-group by a1,a2,b;
-a1 a2 b c min(c) max(c)
-a a b e112 e112 h112
-a b b m122 m122 p122
-b a b e212 e212 h212
-b b b m222 m222 p222
-c a b e312 e312 h312
-c b b m322 m322 p322
-d a b e412 e412 h412
-d b b m422 m422 p422
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='semijoin_with_cache=off';
-explain select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.b) and
-t2.c > 'b1' )
-group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL idx_t1_1 163 NULL 128 Using where; Using index
-2 DEPENDENT SUBQUERY t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-2 DEPENDENT SUBQUERY t3 index NULL idx_t3_1 10 NULL 192 Using where; Using index; FirstMatch(t2)
-select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.b) and
-t2.c > 'b1' )
-group by a1,a2,b;
-a1 a2 b c min(c) max(c)
-a a a a111 a111 d111
-a a b e112 e112 h112
-a b a i121 i121 l121
-a b b m122 m122 p122
-b a a a211 a211 d211
-b a b e212 e212 h212
-b b a i221 i221 l221
-b b b m222 m222 p222
-c a a a311 a311 d311
-c a b e312 e312 h312
-c b a i321 i321 l321
-c b b m322 m322 p322
-d a a a411 a411 d411
-d a b e412 e412 h412
-d b a i421 i421 l421
-d b b m422 m422 p422
-SET optimizer_switch=@save_optimizer_switch;
-explain select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2 where t1.c > 'a' and t2.c > 'b1' )
-group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL idx_t1_1 163 NULL 128 Using where; Using index
-2 DEPENDENT SUBQUERY t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2 where t1.c > 'a' and t2.c > 'b1' )
-group by a1,a2,b;
-a1 a2 b c min(c) max(c)
-a a a a111 a111 d111
-a a b e112 e112 h112
-a b a i121 i121 l121
-a b b m122 m122 p122
-b a a a211 a211 d211
-b a b e212 e212 h212
-b b a i221 i221 l221
-b b b m222 m222 p222
-c a a a311 a311 d311
-c a b e312 e312 h312
-c b a i321 i321 l321
-c b b m322 m322 p322
-d a a a411 a411 d411
-d a b e412 e412 h412
-d b a i421 i421 l421
-d b b m422 m422 p422
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='semijoin_with_cache=off';
-explain select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.c) and
-t2.c > 'b1' )
-group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL idx_t1_1 163 NULL 128 Using where; Using index
-2 DEPENDENT SUBQUERY t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-2 DEPENDENT SUBQUERY t3 index NULL idx_t3_1 10 NULL 192 Using where; Using index; FirstMatch(t2)
-select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.c) and
-t2.c > 'b1' )
-group by a1,a2,b;
-a1 a2 b c min(c) max(c)
-a a a a111 a111 d111
-a a b e112 e112 h112
-a b a i121 i121 l121
-a b b m122 m122 p122
-b a a a211 a211 d211
-b a b e212 e212 h212
-b b a i221 i221 l221
-b b b m222 m222 p222
-c a a a311 a311 d311
-c a b e312 e312 h312
-c b a i321 i321 l321
-c b b m322 m322 o322
-d a a a411 a411 d411
-d a b e412 e412 h412
-d b a i421 i421 l421
-d b b m422 m422 o422
-SET optimizer_switch=@save_optimizer_switch;
-explain select a1,a2,b,min(c),max(c) from t1 where (a1 >= 'c' or a2 < 'b') and (b > 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where (a1 >= 'c' or a2 < 'b') and (c > 'b111') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t1 where (a2 >= 'b') and (b = 'a') and (c > 'b111') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b,min(c) from t1 where ((a1 > 'a') or (a1 < '9')) and ((a2 >= 'b') and (a2 < 'z')) and (b = 'a') and ((c < 'h112') or (c = 'j121') or (c > 'k121' and c < 'm122') or (c > 'o122')) group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 163 NULL 14 Using where; Using index for group-by
-explain select a1,a2,b,min(c) from t1 where ((a1 > 'a') or (a1 < '9')) and ((a2 >= 'b') and (a2 < 'z')) and (b = 'a') and ((c = 'j121') or (c > 'k121' and c < 'm122') or (c > 'o122') or (c < 'h112') or (c = 'c111')) group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 163 NULL 14 Using where; Using index for group-by
-explain select a1,a2,b,min(c) from t1 where (a1 > 'a') and (a2 > 'a') and (b = 'c') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 14 Using where; Using index for group-by
-explain select a1,a2,b,min(c) from t1 where (ord(a1) > 97) and (ord(a2) + ord(a1) > 194) and (b = 'c') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where (a1 >= 'c' or a2 < 'b') and (b > 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where (a1 >= 'c' or a2 < 'b') and (c > 'b111') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c),max(c) from t2 where (a2 >= 'b') and (b = 'a') and (c > 'b111') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c) from t2 where ((a1 > 'a') or (a1 < '9')) and ((a2 >= 'b') and (a2 < 'z')) and (b = 'a') and ((c < 'h112') or (c = 'j121') or (c > 'k121' and c < 'm122') or (c > 'o122')) group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c) from t2 where ((a1 > 'a') or (a1 < '9')) and ((a2 >= 'b') and (a2 < 'z')) and (b = 'a') and ((c = 'j121') or (c > 'k121' and c < 'm122') or (c > 'o122') or (c < 'h112') or (c = 'c111')) group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 163 NULL # Using where; Using index for group-by
-explain select a1,a2,b,min(c) from t2 where (a1 > 'a') and (a2 > 'a') and (b = 'c') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 163 NULL # Using where; Using index for group-by
-select a1,a2,b,min(c),max(c) from t1 where (a1 >= 'c' or a2 < 'b') and (b > 'a') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a b e112 h112
-b a b e212 h212
-c a b e312 h312
-c b b m322 p322
-d a b e412 h412
-d b b m422 p422
-select a1,a2,b,min(c),max(c) from t1 where (a1 >= 'c' or a2 < 'b') and (c > 'b111') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a c111 d111
-a a b e112 h112
-b a a b211 d211
-b a b e212 h212
-c a a b311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a b411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b,min(c),max(c) from t1 where (a2 >= 'b') and (b = 'a') and (c > 'b111') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a b a i121 l121
-b b a i221 l221
-c b a i321 l321
-d b a i421 l421
-select a1,a2,b,min(c) from t1 where ((a1 > 'a') or (a1 < '9')) and ((a2 >= 'b') and (a2 < 'z')) and (b = 'a') and ((c < 'h112') or (c = 'j121') or (c > 'k121' and c < 'm122') or (c > 'o122')) group by a1,a2,b;
-a1 a2 b min(c)
-b b a k221
-c b a k321
-d b a k421
-select a1,a2,b,min(c) from t1 where ((a1 > 'a') or (a1 < '9')) and ((a2 >= 'b') and (a2 < 'z')) and (b = 'a') and ((c = 'j121') or (c > 'k121' and c < 'm122') or (c > 'o122') or (c < 'h112') or (c = 'c111')) group by a1,a2,b;
-a1 a2 b min(c)
-b b a k221
-c b a k321
-d b a k421
-select a1,a2,b,min(c) from t1 where (a1 > 'a') and (a2 > 'a') and (b = 'c') group by a1,a2,b;
-a1 a2 b min(c)
-select a1,a2,b,min(c) from t1 where (ord(a1) > 97) and (ord(a2) + ord(a1) > 194) and (b = 'c') group by a1,a2,b;
-a1 a2 b min(c)
-select a1,a2,b,min(c),max(c) from t2 where (a1 >= 'c' or a2 < 'b') and (b > 'a') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a b e112 h112
-b a b e212 h212
-c a b e312 h312
-c b b m322 p322
-d a b e412 h412
-d b b m422 p422
-e a b NULL NULL
-select a1,a2,b,min(c),max(c) from t2 where (a1 >= 'c' or a2 < 'b') and (c > 'b111') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a a a c111 d111
-a a b e112 h112
-b a a b211 d211
-b a b e212 h212
-c a NULL c777 c999
-c a a b311 d311
-c a b e312 h312
-c b a i321 l321
-c b b m322 p322
-d a a b411 d411
-d a b e412 h412
-d b a i421 l421
-d b b m422 p422
-select a1,a2,b,min(c),max(c) from t2 where (a2 >= 'b') and (b = 'a') and (c > 'b111') group by a1,a2,b;
-a1 a2 b min(c) max(c)
-a b a i121 l121
-b b a i221 l221
-c b a i321 l321
-d b a i421 l421
-select a1,a2,b,min(c) from t2 where ((a1 > 'a') or (a1 < '9')) and ((a2 >= 'b') and (a2 < 'z')) and (b = 'a') and ((c < 'h112') or (c = 'j121') or (c > 'k121' and c < 'm122') or (c > 'o122')) group by a1,a2,b;
-a1 a2 b min(c)
-b b a k221
-c b a k321
-d b a k421
-select a1,a2,b,min(c) from t2 where ((a1 > 'a') or (a1 < '9')) and ((a2 >= 'b') and (a2 < 'z')) and (b = 'a') and ((c = 'j121') or (c > 'k121' and c < 'm122') or (c > 'o122') or (c < 'h112') or (c = 'c111')) group by a1,a2,b;
-a1 a2 b min(c)
-b b a k221
-c b a k321
-d b a k421
-select a1,a2,b,min(c) from t2 where (a1 > 'a') and (a2 > 'a') and (b = 'c') group by a1,a2,b;
-a1 a2 b min(c)
-explain select a1,a2,b from t1 where (a1 >= 'c' or a2 < 'b') and (b > 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b from t1 where (a2 >= 'b') and (b = 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b,c from t1 where (a2 >= 'b') and (b = 'a') and (c = 'i121') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select a1,a2,b from t1 where (a1 > 'a') and (a2 > 'a') and (b = 'c') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 14 Using where; Using index for group-by
-explain select a1,a2,b from t2 where (a1 >= 'c' or a2 < 'b') and (b > 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 146 NULL # Using where; Using index for group-by
-explain select a1,a2,b from t2 where (a2 >= 'b') and (b = 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 146 NULL # Using where; Using index for group-by
-explain select a1,a2,b,c from t2 where (a2 >= 'b') and (b = 'a') and (c = 'i121') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL idx_t2_1 163 NULL # Using where; Using index
-explain select a1,a2,b from t2 where (a1 > 'a') and (a2 > 'a') and (b = 'c') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 146 NULL # Using where; Using index for group-by
-select a1,a2,b from t1 where (a1 >= 'c' or a2 < 'b') and (b > 'a') group by a1,a2,b;
-a1 a2 b
-a a b
-b a b
-c a b
-c b b
-d a b
-d b b
-select a1,a2,b from t1 where (a2 >= 'b') and (b = 'a') group by a1,a2,b;
-a1 a2 b
-a b a
-b b a
-c b a
-d b a
-select a1,a2,b,c from t1 where (a2 >= 'b') and (b = 'a') and (c = 'i121') group by a1,a2,b;
-a1 a2 b c
-a b a i121
-select a1,a2,b from t1 where (a1 > 'a') and (a2 > 'a') and (b = 'c') group by a1,a2,b;
-a1 a2 b
-select a1,a2,b from t2 where (a1 >= 'c' or a2 < 'b') and (b > 'a') group by a1,a2,b;
-a1 a2 b
-a a b
-b a b
-c a b
-c b b
-d a b
-d b b
-e a b
-select a1,a2,b from t2 where (a2 >= 'b') and (b = 'a') group by a1,a2,b;
-a1 a2 b
-a b a
-b b a
-c b a
-d b a
-select a1,a2,b,c from t2 where (a2 >= 'b') and (b = 'a') and (c = 'i121') group by a1,a2,b;
-a1 a2 b c
-a b a i121
-select a1,a2,b from t2 where (a1 > 'a') and (a2 > 'a') and (b = 'c') group by a1,a2,b;
-a1 a2 b
-explain select distinct a1,a2,b from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using index for group-by
-explain select distinct a1,a2,b from t1 where (a2 >= 'b') and (b = 'a');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using where; Using index for group-by
-explain extended select distinct a1,a2,b,c from t1 where (a2 >= 'b') and (b = 'a') and (c = 'i121');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index NULL idx_t1_1 163 NULL 128 50.78 Using where; Using index
-Warnings:
-Note 1003 select distinct `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c` from `test`.`t1` where `test`.`t1`.`b` = 'a' and `test`.`t1`.`c` = 'i121' and `test`.`t1`.`a2` >= 'b'
-explain select distinct a1,a2,b from t1 where (a1 > 'a') and (a2 > 'a') and (b = 'c');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 14 Using where; Using index for group-by
-explain select distinct b from t1 where (a2 >= 'b') and (b = 'a');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL idx_t1_2 147 NULL 128 Using where; Using index
-explain select distinct a1,a2,b from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 146 NULL # Using index for group-by
-explain select distinct a1,a2,b from t2 where (a2 >= 'b') and (b = 'a');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 146 NULL # Using where; Using index for group-by
-explain extended select distinct a1,a2,b,c from t2 where (a2 >= 'b') and (b = 'a') and (c = 'i121');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index NULL idx_t2_1 163 NULL 164 50.61 Using where; Using index
-Warnings:
-Note 1003 select distinct `test`.`t2`.`a1` AS `a1`,`test`.`t2`.`a2` AS `a2`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where `test`.`t2`.`b` = 'a' and `test`.`t2`.`c` = 'i121' and `test`.`t2`.`a2` >= 'b'
-explain select distinct a1,a2,b from t2 where (a1 > 'a') and (a2 > 'a') and (b = 'c');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 146 NULL # Using where; Using index for group-by
-explain select distinct b from t2 where (a2 >= 'b') and (b = 'a');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL idx_t2_2 146 NULL 164 Using where; Using index
-select distinct a1,a2,b from t1;
-a1 a2 b
-a a a
-a a b
-a b a
-a b b
-b a a
-b a b
-b b a
-b b b
-c a a
-c a b
-c b a
-c b b
-d a a
-d a b
-d b a
-d b b
-select distinct a1,a2,b from t1 where (a2 >= 'b') and (b = 'a');
-a1 a2 b
-a b a
-b b a
-c b a
-d b a
-select distinct a1,a2,b,c from t1 where (a2 >= 'b') and (b = 'a') and (c = 'i121');
-a1 a2 b c
-a b a i121
-select distinct a1,a2,b from t1 where (a1 > 'a') and (a2 > 'a') and (b = 'c');
-a1 a2 b
-select distinct b from t1 where (a2 >= 'b') and (b = 'a');
-b
-a
-select distinct a1,a2,b from t2;
-a1 a2 b
-a a NULL
-a a a
-a a b
-a b a
-a b b
-b a a
-b a b
-b b a
-b b b
-c a NULL
-c a a
-c a b
-c b a
-c b b
-d a a
-d a b
-d b a
-d b b
-e a a
-e a b
-select distinct a1,a2,b from t2 where (a2 >= 'b') and (b = 'a');
-a1 a2 b
-a b a
-b b a
-c b a
-d b a
-select distinct a1,a2,b,c from t2 where (a2 >= 'b') and (b = 'a') and (c = 'i121');
-a1 a2 b c
-a b a i121
-select distinct a1,a2,b from t2 where (a1 > 'a') and (a2 > 'a') and (b = 'c');
-a1 a2 b
-select distinct b from t2 where (a2 >= 'b') and (b = 'a');
-b
-a
-select distinct t_00.a1
-from t1 t_00
-where exists ( select * from t2 where a1 = t_00.a1 );
-a1
-a
-b
-c
-d
-select distinct a1,a1 from t1;
-a1 a1
-a a
-b b
-c c
-d d
-select distinct a2,a1,a2,a1 from t1;
-a2 a1 a2 a1
-a a a a
-b a b a
-a b a b
-b b b b
-a c a c
-b c b c
-a d a d
-b d b d
-select distinct t1.a1,t2.a1 from t1,t2;
-a1 a1
-a a
-b a
-c a
-d a
-a b
-b b
-c b
-d b
-a c
-b c
-c c
-d c
-a d
-b d
-c d
-d d
-a e
-b e
-c e
-d e
-explain select distinct a1,a2,b from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using index for group-by
-explain select distinct a1,a2,b from t1 where (a2 >= 'b') and (b = 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using where; Using index for group-by
-explain select distinct a1,a2,b,c from t1 where (a2 >= 'b') and (b = 'a') and (c = 'i121') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 17 Using where; Using index for group-by
-explain select distinct a1,a2,b from t1 where (a1 > 'a') and (a2 > 'a') and (b = 'c') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 14 Using where; Using index for group-by
-explain select distinct b from t1 where (a2 >= 'b') and (b = 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using where; Using index for group-by; Using temporary; Using filesort
-explain select distinct a1,a2,b from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 146 NULL # Using index for group-by
-explain select distinct a1,a2,b from t2 where (a2 >= 'b') and (b = 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 146 NULL # Using where; Using index for group-by
-explain select distinct a1,a2,b,c from t2 where (a2 >= 'b') and (b = 'a') and (c = 'i121') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL idx_t2_1 163 NULL # Using where; Using index
-explain select distinct a1,a2,b from t2 where (a1 > 'a') and (a2 > 'a') and (b = 'c') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx_t2_0,idx_t2_1,idx_t2_2 idx_t2_1 146 NULL # Using where; Using index for group-by
-explain select distinct b from t2 where (a2 >= 'b') and (b = 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL idx_t2_1 146 NULL # Using where; Using index for group-by; Using temporary; Using filesort
-select distinct a1,a2,b from t1;
-a1 a2 b
-a a a
-a a b
-a b a
-a b b
-b a a
-b a b
-b b a
-b b b
-c a a
-c a b
-c b a
-c b b
-d a a
-d a b
-d b a
-d b b
-select distinct a1,a2,b from t1 where (a2 >= 'b') and (b = 'a') group by a1,a2,b;
-a1 a2 b
-a b a
-b b a
-c b a
-d b a
-select distinct a1,a2,b,c from t1 where (a2 >= 'b') and (b = 'a') and (c = 'i121') group by a1,a2,b;
-a1 a2 b c
-a b a i121
-select distinct a1,a2,b from t1 where (a1 > 'a') and (a2 > 'a') and (b = 'c') group by a1,a2,b;
-a1 a2 b
-select distinct b from t1 where (a2 >= 'b') and (b = 'a') group by a1,a2,b;
-b
-a
-select distinct a1,a2,b from t2;
-a1 a2 b
-a a NULL
-a a a
-a a b
-a b a
-a b b
-b a a
-b a b
-b b a
-b b b
-c a NULL
-c a a
-c a b
-c b a
-c b b
-d a a
-d a b
-d b a
-d b b
-e a a
-e a b
-select distinct a1,a2,b from t2 where (a2 >= 'b') and (b = 'a') group by a1,a2,b;
-a1 a2 b
-a b a
-b b a
-c b a
-d b a
-select distinct a1,a2,b,c from t2 where (a2 >= 'b') and (b = 'a') and (c = 'i121') group by a1,a2,b;
-a1 a2 b c
-a b a i121
-select distinct a1,a2,b from t2 where (a1 > 'a') and (a2 > 'a') and (b = 'c') group by a1,a2,b;
-a1 a2 b
-select distinct b from t2 where (a2 >= 'b') and (b = 'a') group by a1,a2,b;
-b
-a
-explain select count(distinct a1,a2,b) from t1 where (a2 >= 'b') and (b = 'a');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 17 Using where; Using index for group-by
-explain select count(distinct a1,a2,b,c) from t1 where (a2 >= 'b') and (b = 'a') and (c = 'i121');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 163 NULL 65 Using where; Using index for group-by (scanning)
-explain extended select count(distinct a1,a2,b) from t1 where (a1 > 'a') and (a2 > 'a') and (b = 'c');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 14 100.00 Using where; Using index for group-by
-Warnings:
-Note 1003 select count(distinct `test`.`t1`.`a1`,`test`.`t1`.`a2`,`test`.`t1`.`b`) AS `count(distinct a1,a2,b)` from `test`.`t1` where `test`.`t1`.`b` = 'c' and `test`.`t1`.`a1` > 'a' and `test`.`t1`.`a2` > 'a'
-explain select count(distinct b) from t1 where (a2 >= 'b') and (b = 'a');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL idx_t1_2 147 NULL 128 Using where; Using index
-explain extended select 98 + count(distinct a1,a2,b) from t1 where (a1 > 'a') and (a2 > 'a');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 14 100.00 Using where; Using index for group-by
-Warnings:
-Note 1003 select 98 + count(distinct `test`.`t1`.`a1`,`test`.`t1`.`a2`,`test`.`t1`.`b`) AS `98 + count(distinct a1,a2,b)` from `test`.`t1` where `test`.`t1`.`a1` > 'a' and `test`.`t1`.`a2` > 'a'
-select count(distinct a1,a2,b) from t1 where (a2 >= 'b') and (b = 'a');
-count(distinct a1,a2,b)
-4
-select count(distinct a1,a2,b,c) from t1 where (a2 >= 'b') and (b = 'a') and (c = 'i121');
-count(distinct a1,a2,b,c)
-1
-select count(distinct a1,a2,b) from t1 where (a1 > 'a') and (a2 > 'a') and (b = 'c');
-count(distinct a1,a2,b)
-0
-select count(distinct b) from t1 where (a2 >= 'b') and (b = 'a');
-count(distinct b)
-1
-select 98 + count(distinct a1,a2,b) from t1 where (a1 > 'a') and (a2 > 'a');
-98 + count(distinct a1,a2,b)
-104
-explain select a1,a2,b, concat(min(c), max(c)) from t1 where a1 < 'd' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 10 Using where; Using index for group-by
-explain select concat(a1,min(c)),b from t1 where a1 < 'd' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 10 Using where; Using index for group-by
-explain select concat(a1,min(c)),b,max(c) from t1 where a1 < 'd' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 10 Using where; Using index for group-by
-explain select concat(a1,a2),b,min(c),max(c) from t1 where a1 < 'd' group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 147 NULL 10 Using where; Using index for group-by
-explain select concat(ord(min(b)),ord(max(b))),min(b),max(b) from t1 group by a1,a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 147 NULL 9 Using index for group-by
-select a1,a2,b, concat(min(c), max(c)) from t1 where a1 < 'd' group by a1,a2,b;
-a1 a2 b concat(min(c), max(c))
-a a a a111d111
-a a b e112h112
-a b a i121l121
-a b b m122p122
-b a a a211d211
-b a b e212h212
-b b a i221l221
-b b b m222p222
-c a a a311d311
-c a b e312h312
-c b a i321l321
-c b b m322p322
-select concat(a1,min(c)),b from t1 where a1 < 'd' group by a1,a2,b;
-concat(a1,min(c)) b
-aa111 a
-ae112 b
-ai121 a
-am122 b
-ba211 a
-be212 b
-bi221 a
-bm222 b
-ca311 a
-ce312 b
-ci321 a
-cm322 b
-select concat(a1,min(c)),b,max(c) from t1 where a1 < 'd' group by a1,a2,b;
-concat(a1,min(c)) b max(c)
-aa111 a d111
-ae112 b h112
-ai121 a l121
-am122 b p122
-ba211 a d211
-be212 b h212
-bi221 a l221
-bm222 b p222
-ca311 a d311
-ce312 b h312
-ci321 a l321
-cm322 b p322
-select concat(a1,a2),b,min(c),max(c) from t1 where a1 < 'd' group by a1,a2,b;
-concat(a1,a2) b min(c) max(c)
-aa a a111 d111
-aa b e112 h112
-ab a i121 l121
-ab b m122 p122
-ba a a211 d211
-ba b e212 h212
-bb a i221 l221
-bb b m222 p222
-ca a a311 d311
-ca b e312 h312
-cb a i321 l321
-cb b m322 p322
-select concat(ord(min(b)),ord(max(b))),min(b),max(b) from t1 group by a1,a2;
-concat(ord(min(b)),ord(max(b))) min(b) max(b)
-9798 a b
-9798 a b
-9798 a b
-9798 a b
-9798 a b
-9798 a b
-9798 a b
-9798 a b
-explain select a1,a2,b,d,min(c),max(c) from t1 group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 128 Using temporary; Using filesort
-explain select a1,a2,b,d from t1 group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 128 Using temporary; Using filesort
-explain extended select a1,a2,min(b),max(b) from t1
-where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') and (c > 'a111') group by a1,a2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 130 NULL 76 85.53 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2`,min(`test`.`t1`.`b`) AS `min(b)`,max(`test`.`t1`.`b`) AS `max(b)` from `test`.`t1` where (`test`.`t1`.`a1` = 'b' or `test`.`t1`.`a1` = 'd' or `test`.`t1`.`a1` = 'a' or `test`.`t1`.`a1` = 'c') and `test`.`t1`.`a2` > 'a' and `test`.`t1`.`c` > 'a111' group by `test`.`t1`.`a1`,`test`.`t1`.`a2`
-explain extended select a1,a2,b,min(c),max(c) from t1
-where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') and (d > 'xy2') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL idx_t1_0,idx_t1_1,idx_t1_2 NULL NULL NULL 128 50.78 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2`,`test`.`t1`.`b` AS `b`,min(`test`.`t1`.`c`) AS `min(c)`,max(`test`.`t1`.`c`) AS `max(c)` from `test`.`t1` where (`test`.`t1`.`a1` = 'b' or `test`.`t1`.`a1` = 'd' or `test`.`t1`.`a1` = 'a' or `test`.`t1`.`a1` = 'c') and `test`.`t1`.`a2` > 'a' and `test`.`t1`.`d` > 'xy2' group by `test`.`t1`.`a1`,`test`.`t1`.`a2`,`test`.`t1`.`b`
-explain extended select a1,a2,b,c from t1
-where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') and (d > 'xy2') group by a1,a2,b,c;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL idx_t1_0,idx_t1_1,idx_t1_2 NULL NULL NULL 128 50.78 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c` from `test`.`t1` where (`test`.`t1`.`a1` = 'b' or `test`.`t1`.`a1` = 'd' or `test`.`t1`.`a1` = 'a' or `test`.`t1`.`a1` = 'c') and `test`.`t1`.`a2` > 'a' and `test`.`t1`.`d` > 'xy2' group by `test`.`t1`.`a1`,`test`.`t1`.`a2`,`test`.`t1`.`b`,`test`.`t1`.`c`
-explain select a1,a2,b,max(c),min(c) from t2 where (a2 = 'a') and (b = 'b') or (b < 'b') group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-explain extended select a1,a2,b from t1 where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') and (c > 'a111') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 130 NULL 76 85.53 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a1` = 'b' or `test`.`t1`.`a1` = 'd' or `test`.`t1`.`a1` = 'a' or `test`.`t1`.`a1` = 'c') and `test`.`t1`.`a2` > 'a' and `test`.`t1`.`c` > 'a111' group by `test`.`t1`.`a1`,`test`.`t1`.`a2`,`test`.`t1`.`b`
-explain select a1,a2,min(b),c from t2 where (a2 = 'a') and (c = 'a111') group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-select a1,a2,min(b),c from t2 where (a2 = 'a') and (c = 'a111') group by a1;
-a1 a2 min(b) c
-a a a a111
-explain select a1,a2,b,max(c),min(c) from t2 where (a2 = 'a') and (b = 'b') or (b = 'a') group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-explain select a1,a2,b,min(c),max(c) from t2
-where (c > 'a000') and (c <= 'd999') and (c like '_8__') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-explain select a1, a2, b, c, min(d), max(d) from t1 group by a1,a2,b,c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 128 Using temporary; Using filesort
-explain select a1,a2,count(a2) from t1 group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL idx_t1_2 147 NULL 128 Using index
-explain extended select a1,a2,count(a2) from t1 where (a1 > 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_2 147 NULL 128 75.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2`,count(`test`.`t1`.`a2`) AS `count(a2)` from `test`.`t1` where `test`.`t1`.`a1` > 'a' group by `test`.`t1`.`a1`,`test`.`t1`.`a2`,`test`.`t1`.`b`
-explain extended select sum(ord(a1)) from t1 where (a1 > 'a') group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_2 147 NULL 128 75.00 Using where; Using index
-Warnings:
-Note 1003 select sum(ord(`test`.`t1`.`a1`)) AS `sum(ord(a1))` from `test`.`t1` where `test`.`t1`.`a1` > 'a' group by `test`.`t1`.`a1`,`test`.`t1`.`a2`,`test`.`t1`.`b`
-create table t4 as select distinct a1, a2, b, c from t1;
-alter table t4 add unique index idxt4 (a1, a2, b, c);
-# This is "superceded" by MDEV-7118, and Loose Index Scan is again an option:
-explain
-select a1, a2, b, min(c) from t4 group by a1, a2, b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 range NULL idxt4 147 NULL 10 Using index for group-by
-select a1, a2, b, min(c) from t4 group by a1, a2, b;
-a1 a2 b min(c)
-a a a a111
-a a b e112
-a b a i121
-a b b m122
-b a a a211
-b a b e212
-b b a i221
-b b b m222
-c a a a311
-c a b e312
-c b a i321
-c b b m322
-d a a a411
-d a b e412
-d b a i421
-d b b m422
-drop table t4;
-explain select distinct(a1) from t1 where ord(a2) = 98;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL idx_t1_2 147 NULL 128 Using where; Using index
-select distinct(a1) from t1 where ord(a2) = 98;
-a1
-a
-b
-c
-d
-explain select a1 from t1 where a2 = 'b' group by a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 130 NULL 5 Using where; Using index for group-by
-select a1 from t1 where a2 = 'b' group by a1;
-a1
-a
-b
-c
-d
-explain select distinct a1 from t1 where a2 = 'b';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx_t1_1 130 NULL 5 Using where; Using index for group-by
-select distinct a1 from t1 where a2 = 'b';
-a1
-a
-b
-c
-d
-drop table t1,t2,t3;
-create table t1 (c1 int not null,c2 int not null, primary key(c1,c2));
-insert into t1 (c1,c2) values
-(10,1),(10,2),(10,3),(20,4),(20,5),(20,6),(30,7),(30,8),(30,9);
-select distinct c1, c2 from t1 order by c2;
-c1 c2
-10 1
-10 2
-10 3
-20 4
-20 5
-20 6
-30 7
-30 8
-30 9
-select c1,min(c2) as c2 from t1 group by c1 order by c2;
-c1 c2
-10 1
-20 4
-30 7
-select c1,c2 from t1 group by c1,c2 order by c2;
-c1 c2
-10 1
-10 2
-10 3
-20 4
-20 5
-20 6
-30 7
-30 8
-30 9
-drop table t1;
-CREATE TABLE t1 (a varchar(5), b int(11), PRIMARY KEY (a,b));
-INSERT INTO t1 VALUES ('AA',1), ('AA',2), ('AA',3), ('BB',1), ('AA',4);
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-SELECT a FROM t1 WHERE a='AA' GROUP BY a;
-a
-AA
-SELECT a FROM t1 WHERE a='BB' GROUP BY a;
-a
-BB
-EXPLAIN SELECT a FROM t1 WHERE a='AA' GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref PRIMARY PRIMARY 7 const 3 Using where; Using index
-EXPLAIN SELECT a FROM t1 WHERE a='BB' GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref PRIMARY PRIMARY 7 const 1 Using where; Using index
-SELECT DISTINCT a FROM t1 WHERE a='BB';
-a
-BB
-SELECT DISTINCT a FROM t1 WHERE a LIKE 'B%';
-a
-BB
-SELECT a FROM t1 WHERE a LIKE 'B%' GROUP BY a;
-a
-BB
-DROP TABLE t1;
-CREATE TABLE t1 (
-a int(11) NOT NULL DEFAULT '0',
-b varchar(16) COLLATE latin1_general_ci NOT NULL DEFAULT '',
-PRIMARY KEY (a,b)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-CREATE PROCEDURE a(x INT)
-BEGIN
-DECLARE rnd INT;
-DECLARE cnt INT;
-WHILE x > 0 DO
-SET rnd= x % 100;
-SET cnt = (SELECT COUNT(*) FROM t1 WHERE a = rnd);
-INSERT INTO t1(a,b) VALUES (rnd, CAST(cnt AS CHAR));
-SET x= x - 1;
-END WHILE;
-END|
-CALL a(1000);
-SELECT a FROM t1 WHERE a=0;
-a
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-SELECT DISTINCT a FROM t1 WHERE a=0;
-a
-0
-SELECT COUNT(DISTINCT a) FROM t1 WHERE a=0;
-COUNT(DISTINCT a)
-1
-DROP TABLE t1;
-DROP PROCEDURE a;
-CREATE TABLE t1 (a varchar(64) NOT NULL default '', KEY(a));
-INSERT INTO t1 (a) VALUES
-(''), ('CENTRAL'), ('EASTERN'), ('GREATER LONDON'),
-('NORTH CENTRAL'), ('NORTH EAST'), ('NORTH WEST'), ('SCOTLAND'),
-('SOUTH EAST'), ('SOUTH WEST'), ('WESTERN');
-EXPLAIN SELECT DISTINCT a,a FROM t1 ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL a 66 NULL 6 Using index for group-by
-SELECT DISTINCT a,a FROM t1 ORDER BY a;
-a a
-
-CENTRAL CENTRAL
-EASTERN EASTERN
-GREATER LONDON GREATER LONDON
-NORTH CENTRAL NORTH CENTRAL
-NORTH EAST NORTH EAST
-NORTH WEST NORTH WEST
-SCOTLAND SCOTLAND
-SOUTH EAST SOUTH EAST
-SOUTH WEST SOUTH WEST
-WESTERN WESTERN
-DROP TABLE t1;
-CREATE TABLE t1 (id1 INT, id2 INT);
-CREATE TABLE t2 (id2 INT, id3 INT, id5 INT);
-CREATE TABLE t3 (id3 INT, id4 INT);
-CREATE TABLE t4 (id4 INT);
-CREATE TABLE t5 (id5 INT, id6 INT);
-CREATE TABLE t6 (id6 INT);
-INSERT INTO t1 VALUES(1,1);
-INSERT INTO t2 VALUES(1,1,1);
-INSERT INTO t3 VALUES(1,1);
-INSERT INTO t4 VALUES(1);
-INSERT INTO t5 VALUES(1,1);
-INSERT INTO t6 VALUES(1);
-SELECT * FROM
-t1
-NATURAL JOIN
-(t2 JOIN (t3 NATURAL JOIN t4, t5 NATURAL JOIN t6)
-ON (t3.id3 = t2.id3 AND t5.id5 = t2.id5));
-id2 id1 id3 id5 id4 id3 id6 id5
-1 1 1 1 1 1 1 1
-SELECT * FROM
-t1
-NATURAL JOIN
-(((t3 NATURAL JOIN t4) join (t5 NATURAL JOIN t6) on t3.id4 = t5.id5) JOIN t2
-ON (t3.id3 = t2.id3 AND t5.id5 = t2.id5));
-id2 id1 id4 id3 id6 id5 id3 id5
-1 1 1 1 1 1 1 1
-SELECT * FROM t1 NATURAL JOIN ((t3 join (t5 NATURAL JOIN t6)) JOIN t2);
-id2 id1 id3 id4 id6 id5 id3 id5
-1 1 1 1 1 1 1 1
-SELECT * FROM
-(t2 JOIN (t3 NATURAL JOIN t4, t5 NATURAL JOIN t6)
-ON (t3.id3 = t2.id3 AND t5.id5 = t2.id5))
-NATURAL JOIN
-t1;
-id2 id3 id5 id4 id3 id6 id5 id1
-1 1 1 1 1 1 1 1
-SELECT * FROM
-(t2 JOIN ((t3 NATURAL JOIN t4) join (t5 NATURAL JOIN t6)))
-NATURAL JOIN
-t1;
-id2 id3 id5 id4 id3 id6 id5 id1
-1 1 1 1 1 1 1 1
-DROP TABLE t1,t2,t3,t4,t5,t6;
-CREATE TABLE t1 (a int, b int, KEY (a,b), KEY b (b));
-INSERT INTO t1 VALUES (1,1),(1,2),(1,0),(1,3);
-explain SELECT MAX(b), a FROM t1 WHERE b < 2 AND a = 1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a,b a 10 NULL 1 Using where; Using index for group-by
-SELECT MAX(b), a FROM t1 WHERE b < 2 AND a = 1 GROUP BY a;
-MAX(b) a
-1 1
-SELECT MIN(b), a FROM t1 WHERE b > 1 AND a = 1 GROUP BY a;
-MIN(b) a
-2 1
-CREATE TABLE t2 (a int, b int, c int, PRIMARY KEY (a,b,c));
-INSERT INTO t2 SELECT a,b,b FROM t1;
-explain SELECT MIN(c) FROM t2 WHERE b = 2 and a = 1 and c > 1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range PRIMARY PRIMARY 12 NULL 1 Using where; Using index for group-by
-SELECT MIN(c) FROM t2 WHERE b = 2 and a = 1 and c > 1 GROUP BY a;
-MIN(c)
-2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT, INDEX (a,b));
-INSERT INTO t1 (a, b) VALUES (1,1), (1,2), (1,3), (1,4), (1,5),
-(2,2), (2,3), (2,1), (3,1), (4,1), (4,2), (4,3), (4,4), (4,5), (4,6);
-EXPLAIN SELECT max(b), a FROM t1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL a 5 NULL 8 Using index for group-by
-FLUSH STATUS;
-SELECT max(b), a FROM t1 GROUP BY a;
-max(b) a
-5 1
-3 2
-1 3
-6 4
-SHOW STATUS LIKE 'handler_read__e%';
-Variable_name Value
-Handler_read_key 8
-Handler_read_next 0
-Handler_read_retry 0
-EXPLAIN SELECT max(b), a FROM t1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL a 5 NULL 8 Using index for group-by
-FLUSH STATUS;
-CREATE TABLE t2 SELECT max(b), a FROM t1 GROUP BY a;
-SHOW STATUS LIKE 'handler_read__e%';
-Variable_name Value
-Handler_read_key 8
-Handler_read_next 0
-Handler_read_retry 0
-FLUSH STATUS;
-SELECT * FROM (SELECT max(b), a FROM t1 GROUP BY a) b;
-max(b) a
-5 1
-3 2
-1 3
-6 4
-SHOW STATUS LIKE 'handler_read__e%';
-Variable_name Value
-Handler_read_key 8
-Handler_read_next 0
-Handler_read_retry 0
-FLUSH STATUS;
-(SELECT max(b), a FROM t1 GROUP BY a) UNION
-(SELECT max(b), a FROM t1 GROUP BY a);
-max(b) a
-5 1
-3 2
-1 3
-6 4
-SHOW STATUS LIKE 'handler_read__e%';
-Variable_name Value
-Handler_read_key 16
-Handler_read_next 0
-Handler_read_retry 0
-EXPLAIN (SELECT max(b), a FROM t1 GROUP BY a) UNION
-(SELECT max(b), a FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range NULL a 5 NULL 8 Using index for group-by
-2 UNION t1 range NULL a 5 NULL 8 Using index for group-by
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-EXPLAIN SELECT (SELECT max(b) FROM t1 GROUP BY a HAVING a < 2) x
-FROM t1 AS t1_outer;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_outer index NULL a 10 NULL 15 Using index
-2 SUBQUERY t1 range NULL a 5 NULL 8 Using index for group-by
-EXPLAIN SELECT 1 FROM t1 AS t1_outer WHERE EXISTS
-(SELECT max(b) FROM t1 GROUP BY a HAVING a < 2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_outer index NULL a 10 NULL 15 Using index
-2 SUBQUERY t1 index NULL a 10 NULL 15 Using index
-EXPLAIN SELECT 1 FROM t1 AS t1_outer WHERE
-(SELECT max(b) FROM t1 GROUP BY a HAVING a < 2) > 12;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 range NULL a 5 NULL 8 Using index for group-by
-EXPLAIN SELECT 1 FROM t1 AS t1_outer WHERE
-a IN (SELECT max(b) FROM t1 GROUP BY a HAVING a < 2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 8
-1 PRIMARY t1_outer ref a a 5 <subquery2>.max(b) 2 Using index
-2 MATERIALIZED t1 range NULL a 5 NULL 8 Using index for group-by
-EXPLAIN SELECT 1 FROM t1 AS t1_outer GROUP BY a HAVING
-a > (SELECT max(b) FROM t1 GROUP BY a HAVING a < 2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_outer range NULL a 5 NULL 8 Using index for group-by
-2 SUBQUERY t1 range NULL a 5 NULL 8 Using index for group-by
-EXPLAIN SELECT 1 FROM t1 AS t1_outer1 JOIN t1 AS t1_outer2
-ON t1_outer1.a = (SELECT max(b) FROM t1 GROUP BY a HAVING a < 2)
-AND t1_outer1.b = t1_outer2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_outer1 ref a a 5 const 1 Using where; Using index
-1 PRIMARY t1_outer2 index NULL a 10 NULL 15 Using where; Using index; Using join buffer (flat, BNL join)
-2 SUBQUERY t1 range NULL a 5 NULL 8 Using index for group-by
-EXPLAIN SELECT (SELECT (SELECT max(b) FROM t1 GROUP BY a HAVING a < 2) x
-FROM t1 AS t1_outer) x2 FROM t1 AS t1_outer2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_outer2 index NULL a 10 NULL 15 Using index
-2 SUBQUERY t1_outer index NULL a 10 NULL 15 Using index
-3 SUBQUERY t1 range NULL a 5 NULL 8 Using index for group-by
-CREATE TABLE t3 LIKE t1;
-FLUSH STATUS;
-INSERT INTO t3 SELECT a,MAX(b) FROM t1 GROUP BY a;
-SHOW STATUS LIKE 'handler_read__e%';
-Variable_name Value
-Handler_read_key 8
-Handler_read_next 0
-Handler_read_retry 0
-DELETE FROM t3;
-FLUSH STATUS;
-INSERT INTO t3 SELECT 1, (SELECT MAX(b) FROM t1 GROUP BY a HAVING a < 2)
-FROM t1 LIMIT 1;
-SHOW STATUS LIKE 'handler_read__e%';
-Variable_name Value
-Handler_read_key 8
-Handler_read_next 0
-Handler_read_retry 0
-FLUSH STATUS;
-DELETE FROM t3 WHERE (SELECT MAX(b) FROM t1 GROUP BY a HAVING a < 2) > 10000;
-SHOW STATUS LIKE 'handler_read__e%';
-Variable_name Value
-Handler_read_key 8
-Handler_read_next 0
-Handler_read_retry 0
-FLUSH STATUS;
-DELETE FROM t3 WHERE (SELECT (SELECT MAX(b) FROM t1 GROUP BY a HAVING a < 2) x
-FROM t1) > 10000;
-ERROR 21000: Subquery returns more than 1 row
-SHOW STATUS LIKE 'handler_read__e%';
-Variable_name Value
-Handler_read_key 8
-Handler_read_next 1
-Handler_read_retry 0
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a int, INDEX idx(a));
-INSERT INTO t1 VALUES
-(4), (2), (1), (2), (4), (2), (1), (4),
-(4), (2), (1), (2), (2), (4), (1), (4);
-EXPLAIN SELECT DISTINCT(a) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx 5 NULL 9 Using index for group-by
-SELECT DISTINCT(a) FROM t1;
-a
-1
-2
-4
-EXPLAIN SELECT SQL_BIG_RESULT DISTINCT(a) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL idx 5 NULL 9 Using index for group-by
-SELECT SQL_BIG_RESULT DISTINCT(a) FROM t1;
-a
-1
-2
-4
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 (a, b) VALUES (1,1), (1,2), (1,3);
-INSERT INTO t1 SELECT a + 1, b FROM t1;
-INSERT INTO t1 SELECT a + 2, b FROM t1;
-EXPLAIN
-SELECT a, MIN(b), MAX(b) FROM t1 GROUP BY a ORDER BY a DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 12 Using temporary; Using filesort
-SELECT a, MIN(b), MAX(b) FROM t1 GROUP BY a ORDER BY a DESC;
-a MIN(b) MAX(b)
-4 1 3
-3 1 3
-2 1 3
-1 1 3
-CREATE INDEX break_it ON t1 (a, b);
-EXPLAIN
-SELECT a, MIN(b), MAX(b) FROM t1 GROUP BY a ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL break_it 10 NULL 7 Using index for group-by
-SELECT a, MIN(b), MAX(b) FROM t1 GROUP BY a ORDER BY a;
-a MIN(b) MAX(b)
-1 1 3
-2 1 3
-3 1 3
-4 1 3
-EXPLAIN
-SELECT a, MIN(b), MAX(b) FROM t1 GROUP BY a ORDER BY a DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL break_it 10 NULL 7 Using index for group-by; Using temporary; Using filesort
-SELECT a, MIN(b), MAX(b) FROM t1 GROUP BY a ORDER BY a DESC;
-a MIN(b) MAX(b)
-4 1 3
-3 1 3
-2 1 3
-1 1 3
-EXPLAIN
-SELECT a, MIN(b), MAX(b), AVG(b) FROM t1 GROUP BY a ORDER BY a DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL break_it 10 NULL 12 Using index
-SELECT a, MIN(b), MAX(b), AVG(b) FROM t1 GROUP BY a ORDER BY a DESC;
-a MIN(b) MAX(b) AVG(b)
-4 1 3 2.0000
-3 1 3 2.0000
-2 1 3 2.0000
-1 1 3 2.0000
-DROP TABLE t1;
-create table t1 (a int, b int, key (a,b), key `index` (a,b)) engine=MyISAM;
-Warnings:
-Note 1831 Duplicate index `index`. This is deprecated and will be disallowed in a future release
-insert into t1 (a,b) values
-(0,0),(0,1),(0,2),(0,3),(0,4),(0,5),(0,6),
-(0,7),(0,8),(0,9),(0,10),(0,11),(0,12),(0,13),
-(1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),
-(1,7),(1,8),(1,9),(1,10),(1,11),(1,12),(1,13),
-(2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),
-(2,7),(2,8),(2,9),(2,10),(2,11),(2,12),(2,13),
-(3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),
-(3,7),(3,8),(3,9),(3,10),(3,11),(3,12),(3,13);
-insert into t1 (a,b) select a, max(b)+1 from t1 where a = 0 group by a;
-select * from t1;
-a b
-0 0
-0 1
-0 2
-0 3
-0 4
-0 5
-0 6
-0 7
-0 8
-0 9
-0 10
-0 11
-0 12
-0 13
-0 14
-1 0
-1 1
-1 2
-1 3
-1 4
-1 5
-1 6
-1 7
-1 8
-1 9
-1 10
-1 11
-1 12
-1 13
-2 0
-2 1
-2 2
-2 3
-2 4
-2 5
-2 6
-2 7
-2 8
-2 9
-2 10
-2 11
-2 12
-2 13
-3 0
-3 1
-3 2
-3 3
-3 4
-3 5
-3 6
-3 7
-3 8
-3 9
-3 10
-3 11
-3 12
-3 13
-explain extended select sql_buffer_result a, max(b)+1 from t1 where a = 0 group by a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ref a,index a 5 const 15 100.00 Using index; Using temporary
-Warnings:
-Note 1003 select sql_buffer_result `test`.`t1`.`a` AS `a`,max(`test`.`t1`.`b`) + 1 AS `max(b)+1` from `test`.`t1` where `test`.`t1`.`a` = 0 group by `test`.`t1`.`a`
-drop table t1;
-CREATE TABLE t1 (a int, b int, c int, d int,
-KEY foo (c,d,a,b), KEY bar (c,a,b,d));
-INSERT INTO t1 VALUES (1, 1, 1, 1), (1, 1, 1, 2), (1, 1, 1, 3), (1, 1, 1, 4);
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT a,b,c+1,d FROM t1;
-EXPLAIN SELECT DISTINCT c FROM t1 WHERE d=4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL foo 10 NULL 9 Using where; Using index for group-by
-SELECT DISTINCT c FROM t1 WHERE d=4;
-c
-1
-2
-DROP TABLE t1;
-#
-# Bug #45386: Wrong query result with MIN function in field list,
-# WHERE and GROUP BY clause
-#
-CREATE TABLE t (a INT, b INT, INDEX (a,b));
-INSERT INTO t VALUES (2,0), (2,0), (2,1), (2,1);
-INSERT INTO t SELECT * FROM t;
-INSERT INTO t SELECT * FROM t;
-# test MIN
-#should use range with index for group by
-EXPLAIN
-SELECT a, MIN(b) FROM t WHERE b <> 0 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t range NULL a 10 NULL 9 Using where; Using index for group-by
-#should return 1 row
-SELECT a, MIN(b) FROM t WHERE b <> 0 GROUP BY a;
-a MIN(b)
-2 1
-# test MAX
-#should use range with index for group by
-EXPLAIN
-SELECT a, MAX(b) FROM t WHERE b <> 1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t range NULL a 10 NULL 9 Using where; Using index for group-by
-#should return 1 row
-SELECT a, MAX(b) FROM t WHERE b <> 1 GROUP BY a;
-a MAX(b)
-2 0
-# test 3 ranges and use the middle one
-INSERT INTO t SELECT a, 2 FROM t;
-#should use range with index for group by
-EXPLAIN
-SELECT a, MAX(b) FROM t WHERE b > 0 AND b < 2 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t range NULL a 10 NULL 9 Using where; Using index for group-by
-#should return 1 row
-SELECT a, MAX(b) FROM t WHERE b > 0 AND b < 2 GROUP BY a;
-a MAX(b)
-2 1
-DROP TABLE t;
-#
-# Bug #48472: Loose index scan inappropriately chosen for some WHERE
-# conditions
-#
-CREATE TABLE t (a INT, b INT, INDEX (a,b));
-INSERT INTO t VALUES (2,0), (2,0), (2,1), (2,1);
-INSERT INTO t SELECT * FROM t;
-SELECT a, MAX(b) FROM t WHERE 0=b+0 GROUP BY a;
-a MAX(b)
-2 0
-DROP TABLE t;
-End of 5.0 tests
-#
-# Bug #46607: Assertion failed: (cond_type == Item::FUNC_ITEM) results in
-# server crash
-#
-CREATE TABLE t (a INT, b INT, INDEX (a,b));
-INSERT INTO t VALUES (2,0), (2,0), (2,1), (2,1);
-INSERT INTO t SELECT * FROM t;
-SELECT a, MAX(b) FROM t WHERE b GROUP BY a;
-a MAX(b)
-2 1
-DROP TABLE t;
-CREATE TABLE t1(a INT NOT NULL, b INT NOT NULL, KEY (b));
-INSERT INTO t1 VALUES(1,1),(2,1);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-SELECT 1 AS c, b FROM t1 WHERE b IN (1,2) GROUP BY c, b;
-c b
-1 1
-SELECT a FROM t1 WHERE b=1;
-a
-1
-2
-DROP TABLE t1;
-#
-# Bug#47762: Incorrect result from MIN() when WHERE tests NOT NULL column
-# for NULL
-#
-## Test for NULLs allowed
-CREATE TABLE t1 ( a INT, KEY (a) );
-INSERT INTO t1 VALUES (1), (2), (3);
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a = NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a = NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a <> NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a <> NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a > NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a > NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a < NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a < NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a <=> NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x No matching min/max row
-SELECT MIN( a ) FROM t1 WHERE a <=> NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND 10;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND 10;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN 10 AND NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN 10 AND NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a = (SELECT a FROM t1 WHERE a < 0);
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-x x x x x x x x x Using where; Using index
-SELECT MIN( a ) FROM t1 WHERE a = (SELECT a FROM t1 WHERE a < 0);
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x No matching min/max row
-SELECT MIN( a ) FROM t1 WHERE a IS NULL;
-MIN( a )
-NULL
-INSERT INTO t1 VALUES (NULL), (NULL);
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a = NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a = NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a <> NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a <> NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a > NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a > NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a < NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a < NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a <=> NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Select tables optimized away
-SELECT MIN( a ) FROM t1 WHERE a <=> NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND 10;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND 10;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN 10 AND NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN 10 AND NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a = (SELECT a FROM t1 WHERE a < 0);
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-x x x x x x x x x Using where; Using index
-SELECT MIN( a ) FROM t1 WHERE a = (SELECT a FROM t1 WHERE a < 0);
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Select tables optimized away
-SELECT MIN( a ) FROM t1 WHERE a IS NULL;
-MIN( a )
-NULL
-DROP TABLE t1;
-## Test for NOT NULLs
-CREATE TABLE t1 ( a INT NOT NULL PRIMARY KEY);
-INSERT INTO t1 VALUES (1), (2), (3);
-#
-# NULL-safe operator test disabled for non-NULL indexed columns.
-#
-# See bugs
-#
-# - Bug#52173: Reading NULL value from non-NULL index gives
-# wrong result in embedded server
-#
-# - Bug#52174: Sometimes wrong plan when reading a MAX value from
-# non-NULL index
-#
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a = NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a = NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a <> NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a <> NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a > NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a > NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a < NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a < NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND 10;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND 10;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN 10 AND NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-SELECT MIN( a ) FROM t1 WHERE a BETWEEN 10 AND NULL;
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a = (SELECT a FROM t1 WHERE a < 0);
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE noticed after reading const tables
-x x x x x x x x x Using where; Using index
-SELECT MIN( a ) FROM t1 WHERE a = (SELECT a FROM t1 WHERE a < 0);
-MIN( a )
-NULL
-EXPLAIN
-SELECT MIN( a ) FROM t1 WHERE a IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x x x x x x x Impossible WHERE
-SELECT MIN( a ) FROM t1 WHERE a IS NULL;
-MIN( a )
-NULL
-DROP TABLE t1;
-#
-# Bug#53859: Valgrind: opt_sum_query(TABLE_LIST*, List<Item>&, Item*) at
-# opt_sum.cc:305
-#
-CREATE TABLE t1 ( a INT, KEY (a) );
-INSERT INTO t1 VALUES (1), (2), (3);
-SELECT MIN( a ) AS min_a
-FROM t1
-WHERE a > 1 AND a IS NULL
-ORDER BY min_a;
-min_a
-NULL
-DROP TABLE t1;
-create table t1 (a int, b varchar(1), key(b,a)) engine=myisam;
-insert t1 values (1,'a'),(2,'b'),(3,'c'),(4,'d'),(5,'e'),(6,'f'),(7,'g'),(8,'h'),(null,'i');
-select min(a), b from t1 where a=7 or b='z' group by b;
-min(a) b
-7 g
-flush tables;
-drop table t1;
-#
-# LP BUG#888456 Wrong result with DISTINCT , ANY , subquery_cache=off , NOT NULL
-#
-CREATE TABLE t1 ( a int NOT NULL) ;
-INSERT INTO t1 VALUES (28),(29),(9);
-CREATE TABLE t2 ( a int, KEY (a)) ;
-INSERT INTO t2 VALUES (1),(1),(1),(4),(4),(5),(5),(8),(8),(9);
-explain select (select t2.a from t2 where t2.a >= t1.a group by t2.a) from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-2 DEPENDENT SUBQUERY t2 index a a 5 NULL 10 Using where; Using index
-select (select t2.a from t2 where t2.a >= t1.a group by t2.a) from t1;
-(select t2.a from t2 where t2.a >= t1.a group by t2.a)
-NULL
-NULL
-9
-drop table t1, t2;
-#
-# LP BUG#900375 Wrong result with derived_merge=ON, DISTINCT or GROUP BY, EXISTS
-#
-CREATE TABLE t1 ( a INT, b INT, KEY (b) );
-INSERT INTO t1 VALUES
-(100,10),(101,11),(102,12),(103,13),(104,14),
-(105,15),(106,16),(107,17),(108,18),(109,19);
-EXPLAIN
-SELECT alias1.* FROM t1, (SELECT * FROM t1) AS alias1
-WHERE EXISTS ( SELECT DISTINCT b FROM t1 WHERE b <= alias1.a ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL b 5 NULL 10 Using index
-1 PRIMARY t1 ALL NULL NULL NULL NULL 10 Using where; Using join buffer (flat, BNL join)
-3 DEPENDENT SUBQUERY t1 index b b 5 NULL 10 Using where; Using index
-SELECT alias1.* FROM t1, (SELECT * FROM t1) AS alias1
-WHERE EXISTS ( SELECT DISTINCT b FROM t1 WHERE b <= alias1.a ) ;
-a b
-100 10
-100 10
-100 10
-100 10
-100 10
-100 10
-100 10
-100 10
-100 10
-100 10
-101 11
-101 11
-101 11
-101 11
-101 11
-101 11
-101 11
-101 11
-101 11
-101 11
-102 12
-102 12
-102 12
-102 12
-102 12
-102 12
-102 12
-102 12
-102 12
-102 12
-103 13
-103 13
-103 13
-103 13
-103 13
-103 13
-103 13
-103 13
-103 13
-103 13
-104 14
-104 14
-104 14
-104 14
-104 14
-104 14
-104 14
-104 14
-104 14
-104 14
-105 15
-105 15
-105 15
-105 15
-105 15
-105 15
-105 15
-105 15
-105 15
-105 15
-106 16
-106 16
-106 16
-106 16
-106 16
-106 16
-106 16
-106 16
-106 16
-106 16
-107 17
-107 17
-107 17
-107 17
-107 17
-107 17
-107 17
-107 17
-107 17
-107 17
-108 18
-108 18
-108 18
-108 18
-108 18
-108 18
-108 18
-108 18
-108 18
-108 18
-109 19
-109 19
-109 19
-109 19
-109 19
-109 19
-109 19
-109 19
-109 19
-109 19
-EXPLAIN
-SELECT alias1.* FROM t1, t1 AS alias1
-WHERE EXISTS ( SELECT DISTINCT b FROM t1 WHERE b <= alias1.a ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL b 5 NULL 10 Using index
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 10 Using where; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t1 index b b 5 NULL 10 Using where; Using index
-SELECT alias1.* FROM t1, t1 AS alias1
-WHERE EXISTS ( SELECT DISTINCT b FROM t1 WHERE b <= alias1.a ) ;
-a b
-100 10
-100 10
-100 10
-100 10
-100 10
-100 10
-100 10
-100 10
-100 10
-100 10
-101 11
-101 11
-101 11
-101 11
-101 11
-101 11
-101 11
-101 11
-101 11
-101 11
-102 12
-102 12
-102 12
-102 12
-102 12
-102 12
-102 12
-102 12
-102 12
-102 12
-103 13
-103 13
-103 13
-103 13
-103 13
-103 13
-103 13
-103 13
-103 13
-103 13
-104 14
-104 14
-104 14
-104 14
-104 14
-104 14
-104 14
-104 14
-104 14
-104 14
-105 15
-105 15
-105 15
-105 15
-105 15
-105 15
-105 15
-105 15
-105 15
-105 15
-106 16
-106 16
-106 16
-106 16
-106 16
-106 16
-106 16
-106 16
-106 16
-106 16
-107 17
-107 17
-107 17
-107 17
-107 17
-107 17
-107 17
-107 17
-107 17
-107 17
-108 18
-108 18
-108 18
-108 18
-108 18
-108 18
-108 18
-108 18
-108 18
-108 18
-109 19
-109 19
-109 19
-109 19
-109 19
-109 19
-109 19
-109 19
-109 19
-109 19
-drop table t1;
-End of 5.1 tests
-#
-# MDEV-765 lp:825075 - Wrong result with GROUP BY + multipart key + MIN/MAX loose scan
-#
-CREATE TABLE t1 (a varchar(1), b varchar(1), KEY (b,a));
-INSERT INTO t1 VALUES
-('0',NULL),('9',NULL),('8','c'),('4','d'),('7','d'),(NULL,'f'),
-('7','f'),('8','g'),(NULL,'j');
-explain
-SELECT max(a) , b FROM t1 WHERE a IS NULL OR b = 'z' GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index b b 8 NULL 9 Using where; Using index
-SELECT max(a) , b FROM t1 WHERE a IS NULL OR b = 'z' GROUP BY b;
-max(a) b
-NULL f
-NULL j
-explain
-SELECT b, min(a) FROM t1 WHERE a = '7' OR b = 'z' GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index b b 8 NULL 9 Using where; Using index
-SELECT b, min(a) FROM t1 WHERE a = '7' OR b = 'z' GROUP BY b;
-b min(a)
-d 7
-f 7
-explain
-SELECT b, min(a) FROM t1 WHERE (a = b OR b = 'd' OR b is NULL) GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index b b 8 NULL 9 Using where; Using index
-SELECT b, min(a) FROM t1 WHERE (a = b OR b = 'd' OR b is NULL) GROUP BY b;
-b min(a)
-NULL 0
-d 4
-explain
-SELECT b, min(a) FROM t1 WHERE a > ('0' = b) AND b = 'z' GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref b b 4 const 1 Using where; Using index
-SELECT b, min(a) FROM t1 WHERE a > ('0' = b) AND b = 'z' GROUP BY b;
-b min(a)
-explain
-SELECT b, min(a) FROM t1 WHERE a > '0' AND (b < (a = '7')) GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL b 8 NULL 9 Using where; Using index
-SELECT b, min(a) FROM t1 WHERE a > '0' AND (b < (a = '7')) GROUP BY b;
-b min(a)
-d 7
-f 7
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-Warning 1292 Truncated incorrect DOUBLE value: 'd'
-Warning 1292 Truncated incorrect DOUBLE value: 'd'
-Warning 1292 Truncated incorrect DOUBLE value: 'f'
-Warning 1292 Truncated incorrect DOUBLE value: 'g'
-explain
-SELECT b, min(a) FROM t1 WHERE (a > '0' AND (a > '1' OR b = 'd')) GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index b b 8 NULL 9 Using where; Using index
-SELECT b, min(a) FROM t1 WHERE (a > '0' AND (a > '1' OR b = 'd')) GROUP BY b;
-b min(a)
-NULL 9
-c 8
-d 4
-f 7
-g 8
-drop table t1;
-#
-# MDEV-4140 Wrong result with GROUP BY + multipart key + MIN/MAX loose scan and a subquery
-#
-CREATE TABLE t1 (a int, b int, KEY (b, a)) ;
-INSERT INTO t1 VALUES (0,99),(9,99),(4,0),(7,0),(99,0),(7,0),(8,0),(99,0),(1,0);
-INSERT INTO t1 VALUES (0,99),(9,99),(4,0),(7,0),(99,0),(7,0),(8,0),(99,0),(1,0);
-CREATE TABLE t2 (c int) ;
-INSERT INTO t2 VALUES (0),(1);
-EXPLAIN
-SELECT MIN(a), b FROM t1 WHERE a > 0 GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL b 10 NULL 10 Using where; Using index for group-by
-SELECT MIN(a), b FROM t1 WHERE a > 0 GROUP BY b;
-MIN(a) b
-1 0
-9 99
-EXPLAIN
-SELECT MIN(a), b FROM t1 WHERE a > ( SELECT c FROM t2 WHERE c = 0 ) GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range NULL b 10 NULL 10 Using where; Using index for group-by
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT MIN(a), b FROM t1 WHERE a > ( SELECT c FROM t2 WHERE c = 0 ) GROUP BY b;
-MIN(a) b
-1 0
-9 99
-EXPLAIN
-SELECT MIN(a), b FROM t1 WHERE a > ( SELECT min(c) FROM t2, t1 t1a, t1 t1b WHERE c = 0 ) GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL b 10 NULL 18 Using where; Using index
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-2 SUBQUERY t1a index NULL b 10 NULL 18 Using index; Using join buffer (flat, BNL join)
-2 SUBQUERY t1b index NULL b 10 NULL 18 Using index; Using join buffer (incremental, BNL join)
-SELECT MIN(a), b FROM t1 WHERE a > ( SELECT min(c) FROM t2, t1 t1a, t1 t1b WHERE c = 0 ) GROUP BY b;
-MIN(a) b
-1 0
-9 99
-drop table t1, t2;
-End of 5.3 tests
-#
-# WL#3220 (Loose index scan for COUNT DISTINCT)
-#
-CREATE TABLE t1 (a INT, b INT, c INT, KEY (a,b));
-INSERT INTO t1 VALUES (1,1,1), (1,2,1), (1,3,1), (1,4,1);
-INSERT INTO t1 SELECT a, b + 4, 1 FROM t1;
-INSERT INTO t1 SELECT a + 1, b, 1 FROM t1;
-CREATE TABLE t2 (a INT, b INT, c INT, d INT, e INT, f INT, KEY (a,b,c));
-INSERT INTO t2 VALUES (1,1,1,1,1,1), (1,2,1,1,1,1), (1,3,1,1,1,1),
-(1,4,1,1,1,1);
-INSERT INTO t2 SELECT a, b + 4, c,d,e,f FROM t2;
-INSERT INTO t2 SELECT a + 1, b, c,d,e,f FROM t2;
-EXPLAIN SELECT COUNT(DISTINCT a) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL a 5 NULL 9 Using index for group-by
-SELECT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-2
-EXPLAIN SELECT COUNT(DISTINCT a,b) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL a 10 NULL 9 Using index for group-by
-SELECT COUNT(DISTINCT a,b) FROM t1;
-COUNT(DISTINCT a,b)
-16
-EXPLAIN SELECT COUNT(DISTINCT b,a) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL a 10 NULL 9 Using index for group-by
-SELECT COUNT(DISTINCT b,a) FROM t1;
-COUNT(DISTINCT b,a)
-16
-EXPLAIN SELECT COUNT(DISTINCT b) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 10 NULL 16 Using index
-SELECT COUNT(DISTINCT b) FROM t1;
-COUNT(DISTINCT b)
-8
-EXPLAIN SELECT COUNT(DISTINCT a) FROM t1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL a 5 NULL 9 Using index for group-by
-SELECT COUNT(DISTINCT a) FROM t1 GROUP BY a;
-COUNT(DISTINCT a)
-1
-1
-EXPLAIN SELECT COUNT(DISTINCT b) FROM t1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL a 10 NULL 9 Using index for group-by
-SELECT COUNT(DISTINCT b) FROM t1 GROUP BY a;
-COUNT(DISTINCT b)
-8
-8
-EXPLAIN SELECT COUNT(DISTINCT a) FROM t1 GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 10 NULL 16 Using index; Using filesort
-SELECT COUNT(DISTINCT a) FROM t1 GROUP BY b;
-COUNT(DISTINCT a)
-2
-2
-2
-2
-2
-2
-2
-2
-EXPLAIN SELECT DISTINCT COUNT(DISTINCT a) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 10 NULL 16 Using index
-SELECT DISTINCT COUNT(DISTINCT a) FROM t1;
-COUNT(DISTINCT a)
-2
-EXPLAIN SELECT COUNT(DISTINCT a, b + 0) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 10 NULL 16 Using index
-SELECT COUNT(DISTINCT a, b + 0) FROM t1;
-COUNT(DISTINCT a, b + 0)
-16
-EXPLAIN SELECT COUNT(DISTINCT a) FROM t1 HAVING COUNT(DISTINCT b) < 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 10 NULL 16 Using index
-SELECT COUNT(DISTINCT a) FROM t1 HAVING COUNT(DISTINCT b) < 10;
-COUNT(DISTINCT a)
-2
-EXPLAIN SELECT COUNT(DISTINCT a) FROM t1 HAVING COUNT(DISTINCT c) < 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16
-SELECT COUNT(DISTINCT a) FROM t1 HAVING COUNT(DISTINCT c) < 10;
-COUNT(DISTINCT a)
-2
-EXPLAIN SELECT 1 FROM t1 HAVING COUNT(DISTINCT a) < 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL a 5 NULL 9 Using index for group-by
-SELECT 1 FROM t1 HAVING COUNT(DISTINCT a) < 10;
-1
-1
-EXPLAIN SELECT 1 FROM t1 GROUP BY a HAVING COUNT(DISTINCT b) > 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL a 10 NULL 9 Using index for group-by
-SELECT 1 FROM t1 GROUP BY a HAVING COUNT(DISTINCT b) > 1;
-1
-1
-1
-EXPLAIN SELECT COUNT(DISTINCT t1_1.a) FROM t1 t1_1, t1 t1_2 GROUP BY t1_1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1_1 index NULL a 10 NULL 16 Using index; Using temporary; Using filesort
-1 SIMPLE t1_2 index NULL a 10 NULL 16 Using index; Using join buffer (flat, BNL join)
-SELECT COUNT(DISTINCT t1_1.a) FROM t1 t1_1, t1 t1_2 GROUP BY t1_1.a;
-COUNT(DISTINCT t1_1.a)
-1
-1
-EXPLAIN SELECT COUNT(DISTINCT a), 12 FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL a 5 NULL 9 Using index for group-by
-SELECT COUNT(DISTINCT a), 12 FROM t1;
-COUNT(DISTINCT a) 12
-2 12
-EXPLAIN SELECT COUNT(DISTINCT a, b, c) FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL a 15 NULL 9 Using index for group-by
-SELECT COUNT(DISTINCT a, b, c) FROM t2;
-COUNT(DISTINCT a, b, c)
-16
-EXPLAIN SELECT COUNT(DISTINCT a), SUM(DISTINCT a), AVG(DISTINCT a) FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL a 5 NULL 9 Using index for group-by
-SELECT COUNT(DISTINCT a), SUM(DISTINCT a), AVG(DISTINCT a) FROM t2;
-COUNT(DISTINCT a) SUM(DISTINCT a) AVG(DISTINCT a)
-2 3 1.5000
-EXPLAIN SELECT COUNT(DISTINCT a), SUM(DISTINCT a), AVG(DISTINCT f) FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 16
-SELECT COUNT(DISTINCT a), SUM(DISTINCT a), AVG(DISTINCT f) FROM t2;
-COUNT(DISTINCT a) SUM(DISTINCT a) AVG(DISTINCT f)
-2 3 1.0000
-EXPLAIN SELECT COUNT(DISTINCT a, b), COUNT(DISTINCT b, a) FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL a 10 NULL 9 Using index for group-by
-SELECT COUNT(DISTINCT a, b), COUNT(DISTINCT b, a) FROM t2;
-COUNT(DISTINCT a, b) COUNT(DISTINCT b, a)
-16 16
-EXPLAIN SELECT COUNT(DISTINCT a, b), COUNT(DISTINCT b, f) FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 16
-SELECT COUNT(DISTINCT a, b), COUNT(DISTINCT b, f) FROM t2;
-COUNT(DISTINCT a, b) COUNT(DISTINCT b, f)
-16 8
-EXPLAIN SELECT COUNT(DISTINCT a, b), COUNT(DISTINCT b, d) FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 16
-SELECT COUNT(DISTINCT a, b), COUNT(DISTINCT b, d) FROM t2;
-COUNT(DISTINCT a, b) COUNT(DISTINCT b, d)
-16 8
-EXPLAIN SELECT a, c, COUNT(DISTINCT c, a, b) FROM t2 GROUP BY a, b, c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL a 15 NULL 9 Using index for group-by
-SELECT a, c, COUNT(DISTINCT c, a, b) FROM t2 GROUP BY a, b, c;
-a c COUNT(DISTINCT c, a, b)
-1 1 1
-1 1 1
-1 1 1
-1 1 1
-1 1 1
-1 1 1
-1 1 1
-1 1 1
-2 1 1
-2 1 1
-2 1 1
-2 1 1
-2 1 1
-2 1 1
-2 1 1
-2 1 1
-EXPLAIN SELECT COUNT(DISTINCT c, a, b) FROM t2
-WHERE a > 5 AND b BETWEEN 10 AND 20 GROUP BY a, b, c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 15 NULL 1 Using where; Using index for group-by
-SELECT COUNT(DISTINCT c, a, b) FROM t2
-WHERE a > 5 AND b BETWEEN 10 AND 20 GROUP BY a, b, c;
-COUNT(DISTINCT c, a, b)
-EXPLAIN SELECT COUNT(DISTINCT b), SUM(DISTINCT b) FROM t2 WHERE a = 5
-GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref a a 5 const 1 Using where; Using index
-SELECT COUNT(DISTINCT b), SUM(DISTINCT b) FROM t2 WHERE a = 5
-GROUP BY b;
-COUNT(DISTINCT b) SUM(DISTINCT b)
-EXPLAIN SELECT a, COUNT(DISTINCT b), SUM(DISTINCT b) FROM t2 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL a 10 NULL 9 Using index for group-by
-SELECT a, COUNT(DISTINCT b), SUM(DISTINCT b) FROM t2 GROUP BY a;
-a COUNT(DISTINCT b) SUM(DISTINCT b)
-1 8 36
-2 8 36
-EXPLAIN SELECT COUNT(DISTINCT b), SUM(DISTINCT b) FROM t2 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL a 10 NULL 9 Using index for group-by
-SELECT COUNT(DISTINCT b), SUM(DISTINCT b) FROM t2 GROUP BY a;
-COUNT(DISTINCT b) SUM(DISTINCT b)
-8 36
-8 36
-EXPLAIN SELECT COUNT(DISTINCT a, b) FROM t2 WHERE c = 13 AND d = 42;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 16 Using where
-SELECT COUNT(DISTINCT a, b) FROM t2 WHERE c = 13 AND d = 42;
-COUNT(DISTINCT a, b)
-0
-EXPLAIN SELECT a, COUNT(DISTINCT a), SUM(DISTINCT a) FROM t2
-WHERE b = 13 AND c = 42 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL a 15 NULL 9 Using where; Using index for group-by
-SELECT a, COUNT(DISTINCT a), SUM(DISTINCT a) FROM t2
-WHERE b = 13 AND c = 42 GROUP BY a;
-a COUNT(DISTINCT a) SUM(DISTINCT a)
-EXPLAIN SELECT COUNT(DISTINCT a, b), SUM(DISTINCT a) FROM t2 WHERE b = 42;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 15 NULL 16 Using where; Using index
-SELECT COUNT(DISTINCT a, b), SUM(DISTINCT a) FROM t2 WHERE b = 42;
-COUNT(DISTINCT a, b) SUM(DISTINCT a)
-0 NULL
-EXPLAIN SELECT SUM(DISTINCT a), MAX(b) FROM t2 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 15 NULL 16 Using index
-SELECT SUM(DISTINCT a), MAX(b) FROM t2 GROUP BY a;
-SUM(DISTINCT a) MAX(b)
-1 8
-2 8
-EXPLAIN SELECT 42 * (a + c + COUNT(DISTINCT c, a, b)) FROM t2 GROUP BY a, b, c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range NULL a 15 NULL 9 Using index for group-by
-SELECT 42 * (a + c + COUNT(DISTINCT c, a, b)) FROM t2 GROUP BY a, b, c;
-42 * (a + c + COUNT(DISTINCT c, a, b))
-126
-126
-126
-126
-126
-126
-126
-126
-168
-168
-168
-168
-168
-168
-168
-168
-EXPLAIN SELECT (SUM(DISTINCT a) + MAX(b)) FROM t2 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 15 NULL 16 Using index
-SELECT (SUM(DISTINCT a) + MAX(b)) FROM t2 GROUP BY a;
-(SUM(DISTINCT a) + MAX(b))
-9
-10
-DROP TABLE t1,t2;
-# end of WL#3220 tests
-#
-# Bug#50539: Wrong result when loose index scan is used for an aggregate
-# function with distinct
-#
-CREATE TABLE t1 (
-f1 int(11) NOT NULL DEFAULT '0',
-f2 char(1) NOT NULL DEFAULT '',
-KEY (f1,f2)
-) ;
-insert into t1 values(1,'A'),(1 , 'B'), (1, 'C'), (2, 'A'),
-(3, 'A'), (3, 'B'), (3, 'C'), (3, 'D');
-SELECT f1, COUNT(DISTINCT f2) FROM t1 GROUP BY f1;
-f1 COUNT(DISTINCT f2)
-1 3
-2 1
-3 4
-explain SELECT f1, COUNT(DISTINCT f2) FROM t1 GROUP BY f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL f1 5 NULL 9 Using index for group-by (scanning)
-drop table t1;
-# End of test#50539.
-#
-# Bug#17217128 - BAD INTERACTION BETWEEN MIN/MAX AND
-# "HAVING SUM(DISTINCT)": WRONG RESULTS.
-#
-CREATE TABLE t (a INT, b INT, KEY(a,b));
-INSERT INTO t VALUES (1,1), (2,2), (3,3), (4,4), (1,0), (3,2), (4,5);
-ANALYZE TABLE t;
-Table Op Msg_type Msg_text
-test.t analyze status OK
-SELECT a, SUM(DISTINCT a), MIN(b) FROM t GROUP BY a;
-a SUM(DISTINCT a) MIN(b)
-1 1 0
-2 2 2
-3 3 2
-4 4 4
-EXPLAIN SELECT a, SUM(DISTINCT a), MIN(b) FROM t GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t index NULL a 10 NULL 7 Using index
-SELECT a, SUM(DISTINCT a), MAX(b) FROM t GROUP BY a;
-a SUM(DISTINCT a) MAX(b)
-1 1 1
-2 2 2
-3 3 3
-4 4 5
-EXPLAIN SELECT a, SUM(DISTINCT a), MAX(b) FROM t GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t index NULL a 10 NULL 7 Using index
-SELECT a, MAX(b) FROM t GROUP BY a HAVING SUM(DISTINCT a);
-a MAX(b)
-1 1
-2 2
-3 3
-4 5
-EXPLAIN SELECT a, MAX(b) FROM t GROUP BY a HAVING SUM(DISTINCT a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t index NULL a 10 NULL 7 Using index
-SELECT SUM(DISTINCT a), MIN(b), MAX(b) FROM t;
-SUM(DISTINCT a) MIN(b) MAX(b)
-10 0 5
-EXPLAIN SELECT SUM(DISTINCT a), MIN(b), MAX(b) FROM t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t index NULL a 10 NULL 7 Using index
-SELECT a, SUM(DISTINCT a), MIN(b), MAX(b) FROM t GROUP BY a;
-a SUM(DISTINCT a) MIN(b) MAX(b)
-1 1 0 1
-2 2 2 2
-3 3 2 3
-4 4 4 5
-EXPLAIN SELECT a, SUM(DISTINCT a), MIN(b), MAX(b) FROM t GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t index NULL a 10 NULL 7 Using index
-DROP TABLE t;
-#
-# MDEV-4219 A simple select query returns random data (upstream bug#68473)
-#
-drop table if exists faulty;
-CREATE TABLE faulty (
-a int(11) unsigned NOT NULL AUTO_INCREMENT,
-b int(11) unsigned NOT NULL,
-c datetime NOT NULL,
-PRIMARY KEY (a),
-UNIQUE KEY b_and_c (b,c)
-);
-INSERT INTO faulty (b, c) VALUES
-(1801, '2013-02-15 09:00:00'),
-(1802, '2013-02-28 09:00:00'),
-(1802, '2013-03-01 09:00:00'),
-(5, '1990-02-15 09:00:00'),
-(5, '2013-02-15 09:00:00'),
-(5, '2009-02-15 17:00:00');
-EXPLAIN
-SELECT DISTINCT b, c FROM faulty WHERE b='1802' ORDER BY c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE faulty ref b_and_c b_and_c 4 const 2 Using where; Using index
-SELECT DISTINCT b, c FROM faulty WHERE b='1802' ORDER BY c;
-b c
-1802 2013-02-28 09:00:00
-1802 2013-03-01 09:00:00
-drop table faulty;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 (a, b) VALUES (1,1), (1,2), (1,3);
-INSERT INTO t1 SELECT a + 1, b FROM t1;
-INSERT INTO t1 SELECT a + 2, b FROM t1;
-CREATE INDEX break_it ON t1 (a, b);
-EXPLAIN
-SELECT distinct a, b FROM t1 where a = '3' ORDER BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range break_it break_it 10 NULL 2 Using where; Using index for group-by; Using filesort
-SELECT distinct a, b FROM t1 where a = '3' ORDER BY b;
-a b
-3 1
-3 2
-3 3
-drop table t1;
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-6991 GROUP_MIN_MAX optimization is erroneously applied in some cases
-#
-CREATE TABLE t1 (id INT NOT NULL, a VARCHAR(20)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'2001-01-01');
-INSERT INTO t1 VALUES (1,'2001-01-02');
-INSERT INTO t1 VALUES (1,'2001-01-03');
-INSERT INTO t1 VALUES (1,' 2001-01-04');
-INSERT INTO t1 VALUES (2,'2001-01-01');
-INSERT INTO t1 VALUES (2,'2001-01-02');
-INSERT INTO t1 VALUES (2,'2001-01-03');
-INSERT INTO t1 VALUES (2,' 2001-01-04');
-INSERT INTO t1 VALUES (3,'2001-01-01');
-INSERT INTO t1 VALUES (3,'2001-01-02');
-INSERT INTO t1 VALUES (3,'2001-01-03');
-INSERT INTO t1 VALUES (3,' 2001-01-04');
-INSERT INTO t1 VALUES (4,'2001-01-01');
-INSERT INTO t1 VALUES (4,'2001-01-02');
-INSERT INTO t1 VALUES (4,'2001-01-03');
-INSERT INTO t1 VALUES (4,' 2001-01-04');
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a>=DATE'2001-01-04' GROUP BY id;
-id MIN(a) MAX(a)
-1 2001-01-04 2001-01-04
-2 2001-01-04 2001-01-04
-3 2001-01-04 2001-01-04
-4 2001-01-04 2001-01-04
-ALTER TABLE t1 ADD KEY(id,a);
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a>=DATE'2001-01-04' GROUP BY id;
-id MIN(a) MAX(a)
-1 2001-01-04 2001-01-04
-2 2001-01-04 2001-01-04
-3 2001-01-04 2001-01-04
-4 2001-01-04 2001-01-04
-DROP TABLE t1;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-6990 GROUP_MIN_MAX optimization is not applied in some cases when it could
-#
-CREATE TABLE t1 (id INT NOT NULL, a DATE, KEY(id,a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'2001-01-01');
-INSERT INTO t1 VALUES (1,'2001-01-02');
-INSERT INTO t1 VALUES (1,'2001-01-03');
-INSERT INTO t1 VALUES (1,'2001-01-04');
-INSERT INTO t1 VALUES (2,'2001-01-01');
-INSERT INTO t1 VALUES (2,'2001-01-02');
-INSERT INTO t1 VALUES (2,'2001-01-03');
-INSERT INTO t1 VALUES (2,'2001-01-04');
-INSERT INTO t1 VALUES (3,'2001-01-01');
-INSERT INTO t1 VALUES (3,'2001-01-02');
-INSERT INTO t1 VALUES (3,'2001-01-03');
-INSERT INTO t1 VALUES (3,'2001-01-04');
-INSERT INTO t1 VALUES (4,'2001-01-01');
-INSERT INTO t1 VALUES (4,'2001-01-02');
-INSERT INTO t1 VALUES (4,'2001-01-03');
-INSERT INTO t1 VALUES (4,'2001-01-04');
-EXPLAIN SELECT id,MIN(a),MAX(a) FROM t1 WHERE a>='2001-01-04' GROUP BY id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL id 8 NULL 9 Using where; Using index for group-by
-EXPLAIN SELECT id,MIN(a),MAX(a) FROM t1 WHERE a>=20010104.0 GROUP BY id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL id 8 NULL 9 Using where; Using index for group-by
-EXPLAIN SELECT id,MIN(a),MAX(a) FROM t1 WHERE a>=20010104e0 GROUP BY id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL id 8 NULL 9 Using where; Using index for group-by
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a>='2001-01-04' GROUP BY id;
-id MIN(a) MAX(a)
-1 2001-01-04 2001-01-04
-2 2001-01-04 2001-01-04
-3 2001-01-04 2001-01-04
-4 2001-01-04 2001-01-04
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a>=20010104.0 GROUP BY id;
-id MIN(a) MAX(a)
-1 2001-01-04 2001-01-04
-2 2001-01-04 2001-01-04
-3 2001-01-04 2001-01-04
-4 2001-01-04 2001-01-04
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a>=20010104e0 GROUP BY id;
-id MIN(a) MAX(a)
-1 2001-01-04 2001-01-04
-2 2001-01-04 2001-01-04
-3 2001-01-04 2001-01-04
-4 2001-01-04 2001-01-04
-DROP TABLE t1;
-#
-# MDEV-8229 GROUP_MIN_MAX is erroneously applied for BETWEEN in some cases
-#
-SET NAMES latin1;
-CREATE TABLE t1 (id INT NOT NULL, a VARCHAR(20)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'2001-01-01');
-INSERT INTO t1 VALUES (1,'2001-01-02');
-INSERT INTO t1 VALUES (1,'2001-01-03');
-INSERT INTO t1 VALUES (1,' 2001-01-04');
-INSERT INTO t1 VALUES (2,'2001-01-01');
-INSERT INTO t1 VALUES (2,'2001-01-02');
-INSERT INTO t1 VALUES (2,'2001-01-03');
-INSERT INTO t1 VALUES (2,' 2001-01-04');
-INSERT INTO t1 VALUES (3,'2001-01-01');
-INSERT INTO t1 VALUES (3,'2001-01-02');
-INSERT INTO t1 VALUES (3,'2001-01-03');
-INSERT INTO t1 VALUES (3,' 2001-01-04');
-INSERT INTO t1 VALUES (4,'2001-01-01');
-INSERT INTO t1 VALUES (4,'2001-01-02');
-INSERT INTO t1 VALUES (4,'2001-01-03');
-INSERT INTO t1 VALUES (4,' 2001-01-04');
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN ' 2001-01-04' AND '2001-01-05' GROUP BY id;
-id MIN(a) MAX(a)
-1 2001-01-04 2001-01-03
-2 2001-01-04 2001-01-03
-3 2001-01-04 2001-01-03
-4 2001-01-04 2001-01-03
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN '2001-01-04' AND '2001-01-05' GROUP BY id;
-id MIN(a) MAX(a)
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN DATE'2001-01-04' AND DATE'2001-01-05' GROUP BY id;
-id MIN(a) MAX(a)
-1 2001-01-04 2001-01-04
-2 2001-01-04 2001-01-04
-3 2001-01-04 2001-01-04
-4 2001-01-04 2001-01-04
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN DATE'2001-01-04' AND '2001-01-05' GROUP BY id;
-id MIN(a) MAX(a)
-1 2001-01-04 2001-01-04
-2 2001-01-04 2001-01-04
-3 2001-01-04 2001-01-04
-4 2001-01-04 2001-01-04
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN '2001-01-04' AND DATE'2001-01-05' GROUP BY id;
-id MIN(a) MAX(a)
-1 2001-01-04 2001-01-04
-2 2001-01-04 2001-01-04
-3 2001-01-04 2001-01-04
-4 2001-01-04 2001-01-04
-ALTER TABLE t1 ADD KEY(id,a);
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN ' 2001-01-04' AND '2001-01-05' GROUP BY id;
-id MIN(a) MAX(a)
-1 2001-01-04 2001-01-03
-2 2001-01-04 2001-01-03
-3 2001-01-04 2001-01-03
-4 2001-01-04 2001-01-03
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN '2001-01-04' AND '2001-01-05' GROUP BY id;
-id MIN(a) MAX(a)
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN DATE'2001-01-04' AND DATE'2001-01-05' GROUP BY id;
-id MIN(a) MAX(a)
-1 2001-01-04 2001-01-04
-2 2001-01-04 2001-01-04
-3 2001-01-04 2001-01-04
-4 2001-01-04 2001-01-04
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN DATE'2001-01-04' AND '2001-01-05' GROUP BY id;
-id MIN(a) MAX(a)
-1 2001-01-04 2001-01-04
-2 2001-01-04 2001-01-04
-3 2001-01-04 2001-01-04
-4 2001-01-04 2001-01-04
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN '2001-01-04' AND DATE'2001-01-05' GROUP BY id;
-id MIN(a) MAX(a)
-1 2001-01-04 2001-01-04
-2 2001-01-04 2001-01-04
-3 2001-01-04 2001-01-04
-4 2001-01-04 2001-01-04
-EXPLAIN SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN ' 2001-01-04' AND '2001-01-05' GROUP BY id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL id 27 NULL 9 Using where; Using index for group-by
-EXPLAIN SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN '2001-01-04' AND '2001-01-05' GROUP BY id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL id 27 NULL 9 Using where; Using index for group-by
-EXPLAIN SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN DATE'2001-01-04' AND DATE'2001-01-05' GROUP BY id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL id 27 NULL 16 Using where; Using index
-EXPLAIN SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN DATE'2001-01-04' AND '2001-01-05' GROUP BY id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL id 27 NULL 16 Using where; Using index
-EXPLAIN SELECT id,MIN(a),MAX(a) FROM t1 WHERE a BETWEEN '2001-01-04' AND DATE'2001-01-05' GROUP BY id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL id 27 NULL 16 Using where; Using index
-DROP TABLE t1;
-#
-# MIN() optimization didn't work correctly with BETWEEN when using too
-# long strings.
-#
-create table t1 (a varchar(10), key (a)) engine=myisam;
-insert into t1 values("bar"),("Cafe");
-explain select min(a) from t1 where a between "a" and "Cafe2";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select min(a) from t1 where a between "a" and "Cafeeeeeeeeeeeeeeeeeeeeeeeeee";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index a a 13 NULL 2 Using where; Using index
-explain select min(a) from t1 where a between "abbbbbbbbbbbbbbbbbbbb" and "Cafe2";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index a a 13 NULL 2 Using where; Using index
-drop table t1;
-#
-# End of 10.1 tests
-#
diff --git a/mysql-test/r/group_min_max_innodb.result b/mysql-test/r/group_min_max_innodb.result
deleted file mode 100644
index 311032bc453..00000000000
--- a/mysql-test/r/group_min_max_innodb.result
+++ /dev/null
@@ -1,304 +0,0 @@
-drop view if exists v1;
-drop table if exists t1,t4;
-create table t4 (
-pk_col int auto_increment primary key, a1 char(64), a2 char(64), b char(16), c char(16) not null, d char(16), dummy char(64) default ' '
-) engine=innodb;
-insert into t4 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4'),
-('d','a','a','a411','xy1'),('d','a','a','b411','xy2'),('d','a','a','c411','xy3'),('d','a','a','d411','xy4'),
-('d','a','b','e412','xy1'),('d','a','b','f412','xy2'),('d','a','b','g412','xy3'),('d','a','b','h412','xy4'),
-('d','b','a','i421','xy1'),('d','b','a','j421','xy2'),('d','b','a','k421','xy3'),('d','b','a','l421','xy4'),
-('d','b','b','m422','xy1'),('d','b','b','n422','xy2'),('d','b','b','o422','xy3'),('d','b','b','p422','xy4'),
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4'),
-('d','a','a','a411','xy1'),('d','a','a','b411','xy2'),('d','a','a','c411','xy3'),('d','a','a','d411','xy4'),
-('d','a','b','e412','xy1'),('d','a','b','f412','xy2'),('d','a','b','g412','xy3'),('d','a','b','h412','xy4'),
-('d','b','a','i421','xy1'),('d','b','a','j421','xy2'),('d','b','a','k421','xy3'),('d','b','a','l421','xy4'),
-('d','b','b','m422','xy1'),('d','b','b','n422','xy2'),('d','b','b','o422','xy3'),('d','b','b','p422','xy4');
-create index idx12672_0 on t4 (a1);
-create index idx12672_1 on t4 (a1,a2,b,c);
-create index idx12672_2 on t4 (a1,a2,b);
-analyze table t4;
-Table Op Msg_type Msg_text
-test.t4 analyze status OK
-select distinct a1 from t4 where pk_col not in (1,2,3,4);
-a1
-a
-b
-c
-d
-drop table t4;
-create table t1 (
-a varchar(30), b varchar(30), primary key(a), key(b)
-) engine=innodb;
-select distinct a from t1;
-a
-drop table t1;
-create table t1(a int, key(a)) engine=innodb;
-insert into t1 values(1);
-select a, count(a) from t1 group by a with rollup;
-a count(a)
-1 1
-NULL 1
-drop table t1;
-create table t1 (f1 int, f2 char(1), primary key(f1,f2)) engine=innodb;
-insert into t1 values ( 1,"e"),(2,"a"),( 3,"c"),(4,"d");
-alter table t1 drop primary key, add primary key (f2, f1);
-explain select distinct f1 a, f1 b from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary
-explain select distinct f1, f2 from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index
-drop table t1;
-create table t1(pk int primary key) engine=innodb;
-create view v1 as select pk from t1 where pk < 20;
-insert into t1 values (1), (2), (3), (4);
-select distinct pk from v1;
-pk
-1
-2
-3
-4
-insert into t1 values (5), (6), (7);
-select distinct pk from v1;
-pk
-1
-2
-3
-4
-5
-6
-7
-drop view v1;
-drop table t1;
-End of 5.1 tests
-#
-# Bug#12540545 61101: ASSERTION FAILURE IN THREAD 1256741184 IN
-# FILE /BUILDDIR/BUILD/BUILD/MYSQ
-#
-CREATE TABLE t1 (a CHAR(1), b CHAR(1), PRIMARY KEY (a,b)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('a', 'b'), ('c', 'd');
-EXPLAIN SELECT COUNT(DISTINCT a) FROM t1 WHERE b = 'b';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 2 NULL 2 Using where; Using index
-SELECT COUNT(DISTINCT a) FROM t1 WHERE b = 'b';
-COUNT(DISTINCT a)
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a CHAR(1) NOT NULL, b CHAR(1) NOT NULL, UNIQUE KEY (a,b))
-ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('a', 'b'), ('c', 'd');
-EXPLAIN SELECT COUNT(DISTINCT a) FROM t1 WHERE b = 'b';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 2 NULL 2 Using where; Using index
-SELECT COUNT(DISTINCT a) FROM t1 WHERE b = 'b';
-COUNT(DISTINCT a)
-1
-DROP TABLE t1;
-End of 5.5 tests
-#
-# Bug#17909656 - WRONG RESULTS FOR A SIMPLE QUERY WITH GROUP BY
-#
-CREATE TABLE t0 (
-i1 INTEGER NOT NULL
-);
-INSERT INTO t0 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),
-(11),(12),(13),(14),(15),(16),(17),(18),(19),(20),
-(21),(22),(23),(24),(25),(26),(27),(28),(29),(30);
-CREATE TABLE t1 (
-c1 CHAR(1) NOT NULL,
-i1 INTEGER NOT NULL,
-i2 INTEGER NOT NULL,
-UNIQUE KEY k1 (c1,i2)
-) ENGINE=InnoDB;
-INSERT INTO t1 SELECT 'A',i1,i1 FROM t0;
-INSERT INTO t1 SELECT 'B',i1,i1 FROM t0;
-INSERT INTO t1 SELECT 'C',i1,i1 FROM t0;
-INSERT INTO t1 SELECT 'D',i1,i1 FROM t0;
-INSERT INTO t1 SELECT 'E',i1,i1 FROM t0;
-INSERT INTO t1 SELECT 'F',i1,i1 FROM t0;
-CREATE TABLE t2 (
-c1 CHAR(1) NOT NULL,
-i1 INTEGER NOT NULL,
-i2 INTEGER NOT NULL,
-UNIQUE KEY k2 (c1,i1,i2)
-) ENGINE=InnoDB;
-INSERT INTO t2 SELECT 'A',i1,i1 FROM t0;
-INSERT INTO t2 SELECT 'B',i1,i1 FROM t0;
-INSERT INTO t2 SELECT 'C',i1,i1 FROM t0;
-INSERT INTO t2 SELECT 'D',i1,i1 FROM t0;
-INSERT INTO t2 SELECT 'E',i1,i1 FROM t0;
-INSERT INTO t2 SELECT 'F',i1,i1 FROM t0;
-ANALYZE TABLE t1;
-ANALYZE TABLE t2;
-EXPLAIN SELECT c1, max(i2) FROM t1 WHERE (c1 = 'C' AND i2 = 17) OR ( c1 = 'F')
-GROUP BY c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range k1 k1 5 NULL 31 Using where; Using index
-SELECT c1, max(i2) FROM t1 WHERE (c1 = 'C' AND i2 = 17) OR ( c1 = 'F')
-GROUP BY c1;
-c1 max(i2)
-C 17
-F 30
-EXPLAIN SELECT c1, max(i2) FROM t1 WHERE (c1 = 'C' OR ( c1 = 'F' AND i2 = 17))
-GROUP BY c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range k1 k1 5 NULL 31 Using where; Using index
-SELECT c1, max(i2) FROM t1 WHERE (c1 = 'C' OR ( c1 = 'F' AND i2 = 17))
-GROUP BY c1;
-c1 max(i2)
-C 30
-F 17
-EXPLAIN SELECT c1, max(i2) FROM t1 WHERE (c1 = 'C' OR c1 = 'F' ) AND ( i2 = 17 )
-GROUP BY c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range k1 k1 5 NULL 1 Using where; Using index for group-by
-SELECT c1, max(i2) FROM t1 WHERE (c1 = 'C' OR c1 = 'F' ) AND ( i2 = 17 )
-GROUP BY c1;
-c1 max(i2)
-C 17
-F 17
-EXPLAIN SELECT c1, max(i2) FROM t1
-WHERE ((c1 = 'C' AND (i2 = 40 OR i2 = 30)) OR ( c1 = 'F' AND (i2 = 40 )))
-GROUP BY c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range k1 k1 5 NULL 3 Using where; Using index
-SELECT c1, max(i2) FROM t1
-WHERE ((c1 = 'C' AND (i2 = 40 OR i2 = 30)) OR ( c1 = 'F' AND (i2 = 40 )))
-GROUP BY c1;
-c1 max(i2)
-C 30
-EXPLAIN SELECT c1, i1, max(i2) FROM t2
-WHERE (c1 = 'C' OR ( c1 = 'F' AND i1 < 35)) AND ( i2 = 17 )
-GROUP BY c1,i1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range k2 k2 5 NULL 60 Using where; Using index
-SELECT c1, i1, max(i2) FROM t2
-WHERE (c1 = 'C' OR ( c1 = 'F' AND i1 < 35)) AND ( i2 = 17 )
-GROUP BY c1,i1;
-c1 i1 max(i2)
-C 17 17
-F 17 17
-EXPLAIN SELECT c1, i1, max(i2) FROM t2
-WHERE (((c1 = 'C' AND i1 < 40) OR ( c1 = 'F' AND i1 < 35)) AND ( i2 = 17 ))
-GROUP BY c1,i1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range k2 k2 5 NULL 60 Using where; Using index
-SELECT c1, i1, max(i2) FROM t2
-WHERE (((c1 = 'C' AND i1 < 40) OR ( c1 = 'F' AND i1 < 35)) AND ( i2 = 17 ))
-GROUP BY c1,i1;
-c1 i1 max(i2)
-C 17 17
-F 17 17
-EXPLAIN SELECT c1, i1, max(i2) FROM t2
-WHERE ((c1 = 'C' AND i1 < 40) OR ( c1 = 'F' AND i1 < 35) OR ( i2 = 17 ))
-GROUP BY c1,i1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index k2 k2 9 NULL 180 Using where; Using index
-SELECT c1, i1, max(i2) FROM t2
-WHERE ((c1 = 'C' AND i1 < 40) OR ( c1 = 'F' AND i1 < 35) OR ( i2 = 17 ))
-GROUP BY c1,i1;
-c1 i1 max(i2)
-A 17 17
-B 17 17
-C 1 1
-C 2 2
-C 3 3
-C 4 4
-C 5 5
-C 6 6
-C 7 7
-C 8 8
-C 9 9
-C 10 10
-C 11 11
-C 12 12
-C 13 13
-C 14 14
-C 15 15
-C 16 16
-C 17 17
-C 18 18
-C 19 19
-C 20 20
-C 21 21
-C 22 22
-C 23 23
-C 24 24
-C 25 25
-C 26 26
-C 27 27
-C 28 28
-C 29 29
-C 30 30
-D 17 17
-E 17 17
-F 1 1
-F 2 2
-F 3 3
-F 4 4
-F 5 5
-F 6 6
-F 7 7
-F 8 8
-F 9 9
-F 10 10
-F 11 11
-F 12 12
-F 13 13
-F 14 14
-F 15 15
-F 16 16
-F 17 17
-F 18 18
-F 19 19
-F 20 20
-F 21 21
-F 22 22
-F 23 23
-F 24 24
-F 25 25
-F 26 26
-F 27 27
-F 28 28
-F 29 29
-F 30 30
-DROP TABLE t0,t1,t2;
-#
-# MDEV-MariaDB daemon leaks memory with specific query
-#
-CREATE TABLE t1 (`voter_id` int(11) unsigned NOT NULL,
-`language_id` int(11) unsigned NOT NULL DEFAULT '1'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-CREATE TABLE t2 (`voter_id` int(10) unsigned NOT NULL DEFAULT '0',
-`serialized_c` mediumblob) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-insert into t2 values (1,repeat("a",1000)),(2,repeat("a",1000)),(3,repeat("b",1000)),(4,repeat("c",1000)),(4,repeat("b",1000));
-SELECT GROUP_CONCAT(t1.language_id SEPARATOR ',') AS `translation_resources`, `d`.`serialized_c` FROM t2 AS `d` LEFT JOIN t1 ON `d`.`voter_id` = t1.`voter_id` GROUP BY `d`.`voter_id` ORDER BY 10-d.voter_id+RAND()*0;
-translation_resources serialized_c
-NULL cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
-NULL bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-NULL aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-NULL aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-drop table t1,t2;
diff --git a/mysql-test/r/handler_read_last.result b/mysql-test/r/handler_read_last.result
deleted file mode 100644
index 9dd3784673a..00000000000
--- a/mysql-test/r/handler_read_last.result
+++ /dev/null
@@ -1,68 +0,0 @@
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT, INDEX (a));
-INSERT INTO t1 VALUES (),(),(),(),(),(),(),(),(),();
-FLUSH STATUS;
-SELECT a FROM t1 ORDER BY a LIMIT 1;
-a
-NULL
-SHOW STATUS LIKE 'HANDLER_READ%';
-Variable_name Value
-Handler_read_first 1
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-FLUSH STATUS;
-SELECT a FROM t1 ORDER BY a DESC LIMIT 1;
-a
-NULL
-SHOW STATUS LIKE 'HANDLER_READ%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 1
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-FLUSH STATUS;
-SELECT a FROM t1 ORDER BY a LIMIT 3;
-a
-NULL
-NULL
-NULL
-SHOW STATUS LIKE 'HANDLER_READ%';
-Variable_name Value
-Handler_read_first 1
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 2
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-FLUSH STATUS;
-SELECT a FROM t1 ORDER BY a DESC LIMIT 3;
-a
-NULL
-NULL
-NULL
-SHOW STATUS LIKE 'HANDLER_READ%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 1
-Handler_read_next 0
-Handler_read_prev 2
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-DROP TABLE t1;
diff --git a/mysql-test/r/handlersocket.result b/mysql-test/r/handlersocket.result
deleted file mode 100644
index 1b3fc573548..00000000000
--- a/mysql-test/r/handlersocket.result
+++ /dev/null
@@ -1,14 +0,0 @@
-install plugin handlersocket soname 'handlersocket.so';
-select plugin_name, plugin_version, plugin_status, plugin_type, plugin_library, plugin_library_version, plugin_author, plugin_description, plugin_license, plugin_maturity, plugin_auth_version from information_schema.plugins where plugin_name = 'handlersocket';
-plugin_name handlersocket
-plugin_version 1.0
-plugin_status ACTIVE
-plugin_type DAEMON
-plugin_library handlersocket.so
-plugin_library_version 1.13
-plugin_author higuchi dot akira at dena dot jp
-plugin_description Direct access into InnoDB
-plugin_license BSD
-plugin_maturity Beta
-plugin_auth_version 1.0
-uninstall plugin handlersocket;
diff --git a/mysql-test/r/have_compress.require b/mysql-test/r/have_compress.require
deleted file mode 100644
index 8bda2190fbe..00000000000
--- a/mysql-test/r/have_compress.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Variable_name Value
-have_compress YES
diff --git a/mysql-test/r/have_geometry.require b/mysql-test/r/have_geometry.require
deleted file mode 100644
index ba515a4bbb6..00000000000
--- a/mysql-test/r/have_geometry.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Variable_name Value
-have_geometry YES
diff --git a/mysql-test/r/have_local_infile.require b/mysql-test/r/have_local_infile.require
deleted file mode 100644
index 124540f7b77..00000000000
--- a/mysql-test/r/have_local_infile.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Variable_name Value
-local_infile ON
diff --git a/mysql-test/r/have_log_bin.require b/mysql-test/r/have_log_bin.require
deleted file mode 100644
index d4fd77e4f8d..00000000000
--- a/mysql-test/r/have_log_bin.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Variable_name Value
-log_bin ON
diff --git a/mysql-test/r/have_met_timezone.require b/mysql-test/r/have_met_timezone.require
deleted file mode 100644
index b3fde075ebd..00000000000
--- a/mysql-test/r/have_met_timezone.require
+++ /dev/null
@@ -1,2 +0,0 @@
-FROM_UNIXTIME(24*3600)
-1970-01-02 01:00:00
diff --git a/mysql-test/r/have_moscow_leap_timezone.require b/mysql-test/r/have_moscow_leap_timezone.require
deleted file mode 100644
index f27452d7770..00000000000
--- a/mysql-test/r/have_moscow_leap_timezone.require
+++ /dev/null
@@ -1,2 +0,0 @@
-from_unixtime(1072904422)
-2004-01-01 00:00:00
diff --git a/mysql-test/r/have_outfile.require b/mysql-test/r/have_outfile.require
deleted file mode 100644
index 71137a69a91..00000000000
--- a/mysql-test/r/have_outfile.require
+++ /dev/null
@@ -1,3 +0,0 @@
-load_file(concat(@tmpdir,'/outfile.test'))
-Outfile OK
-
diff --git a/mysql-test/r/have_perror.require b/mysql-test/r/have_perror.require
deleted file mode 100644
index 260687c87f0..00000000000
--- a/mysql-test/r/have_perror.require
+++ /dev/null
@@ -1,2 +0,0 @@
-have_perror
-1
diff --git a/mysql-test/r/have_pool_of_threads.require b/mysql-test/r/have_pool_of_threads.require
deleted file mode 100644
index 04e46a71903..00000000000
--- a/mysql-test/r/have_pool_of_threads.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Variable_name Value
-thread_handling pool-of-threads
diff --git a/mysql-test/r/have_profiling.require b/mysql-test/r/have_profiling.require
deleted file mode 100644
index 54caeba1dae..00000000000
--- a/mysql-test/r/have_profiling.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Variable_name Value
-have_profiling YES
diff --git a/mysql-test/r/have_query_cache.require b/mysql-test/r/have_query_cache.require
deleted file mode 100644
index 312d837fed3..00000000000
--- a/mysql-test/r/have_query_cache.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Variable_name Value
-have_query_cache YES
diff --git a/mysql-test/r/have_symlink.require b/mysql-test/r/have_symlink.require
deleted file mode 100644
index 55ad9437034..00000000000
--- a/mysql-test/r/have_symlink.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Variable_name Value
-have_symlink YES
diff --git a/mysql-test/r/have_utf16.require b/mysql-test/r/have_utf16.require
deleted file mode 100644
index a1b5469cad7..00000000000
--- a/mysql-test/r/have_utf16.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Collation Charset Id Default Compiled Sortlen
-utf16_general_ci utf16 54 Yes Yes 1
diff --git a/mysql-test/r/have_utf32.require b/mysql-test/r/have_utf32.require
deleted file mode 100644
index 710ddb8090c..00000000000
--- a/mysql-test/r/have_utf32.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Collation Charset Id Default Compiled Sortlen
-utf32_general_ci utf32 60 Yes Yes 1
diff --git a/mysql-test/r/have_utf8mb4.require b/mysql-test/r/have_utf8mb4.require
deleted file mode 100644
index 1669b332d0d..00000000000
--- a/mysql-test/r/have_utf8mb4.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Collation Charset Id Default Compiled Sortlen
-utf8mb4_general_ci utf8mb4 45 Yes Yes 1
diff --git a/mysql-test/r/have_working_dns.require b/mysql-test/r/have_working_dns.require
deleted file mode 100644
index 67b5a22ce19..00000000000
--- a/mysql-test/r/have_working_dns.require
+++ /dev/null
@@ -1,2 +0,0 @@
-have_working_dns
-1
diff --git a/mysql-test/r/having.result b/mysql-test/r/having.result
deleted file mode 100644
index 6c206a1699d..00000000000
--- a/mysql-test/r/having.result
+++ /dev/null
@@ -1,831 +0,0 @@
-drop table if exists t1,t2,t3;
-create table t1 (a int);
-select count(a) as b from t1 where a=0 having b > 0;
-b
-insert into t1 values (null);
-select count(a) as b from t1 where a=0 having b > 0;
-b
-select count(a) as b from t1 where a=0 having b >=0;
-b
-0
-explain extended select count(a) as b from t1 where a=0 having b >=0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select count(NULL) AS `b` from dual where 0 having `b` >= 0
-drop table t1;
-CREATE TABLE t1 (
-raw_id int(10) NOT NULL default '0',
-chr_start int(10) NOT NULL default '0',
-chr_end int(10) NOT NULL default '0',
-raw_start int(10) NOT NULL default '0',
-raw_end int(10) NOT NULL default '0',
-raw_ori int(2) NOT NULL default '0'
-);
-INSERT INTO t1 VALUES (469713,1,164123,1,164123,1),(317330,164124,317193,101,153170,1),(469434,317194,375620,101,58527,1),(591816,375621,484273,1,108653,1),(591807,484274,534671,91,50488,1),(318885,534672,649362,101,114791,1),(318728,649363,775520,102,126259,1),(336829,775521,813997,101,38577,1),(317740,813998,953227,101,139330,1),(1,813998,953227,101,139330,1);
-CREATE TABLE t2 (
-id int(10) unsigned NOT NULL default '0',
-contig_id int(10) unsigned NOT NULL default '0',
-seq_start int(10) NOT NULL default '0',
-seq_end int(10) NOT NULL default '0',
-strand tinyint(2) NOT NULL default '0',
-KEY id (id)
-);
-INSERT INTO t2 VALUES (133195,469713,61327,61384,1),(133196,469713,64113,64387,1),(133197,1,1,1,0),(133197,1,1,1,-2);
-SELECT e.id,
-MIN( IF(sgp.raw_ori=1,
-(e.seq_start+sgp.chr_start-sgp.raw_start),
-(sgp.chr_start+sgp.raw_end-e.seq_end))) as start,
-MAX( IF(sgp.raw_ori=1,
-(e.seq_end+sgp.chr_start-sgp.raw_start),
-(sgp.chr_start+sgp.raw_end-e.seq_start))) as end,
-AVG(IF (sgp.raw_ori=1,e.strand,(-e.strand))) as chr_strand
-FROM t1 sgp,
-t2 e
-WHERE sgp.raw_id=e.contig_id
-GROUP BY e.id
-HAVING chr_strand= -1 and end >= 0
-AND start <= 999660;
-id start end chr_strand
-133197 813898 813898 -1.0000
-drop table t1,t2;
-CREATE TABLE t1 (Fld1 int(11) default NULL,Fld2 int(11) default NULL);
-INSERT INTO t1 VALUES (1,10),(1,20),(2,NULL),(2,NULL),(3,50);
-select Fld1, max(Fld2) as q from t1 group by Fld1 having q is not null;
-Fld1 q
-1 20
-3 50
-select Fld1, max(Fld2) from t1 group by Fld1 having max(Fld2) is not null;
-Fld1 max(Fld2)
-1 20
-3 50
-select Fld1, max(Fld2) from t1 group by Fld1 having avg(Fld2) is not null;
-Fld1 max(Fld2)
-1 20
-3 50
-select Fld1, max(Fld2) from t1 group by Fld1 having std(Fld2) is not null;
-Fld1 max(Fld2)
-1 20
-3 50
-select Fld1, max(Fld2) from t1 group by Fld1 having variance(Fld2) is not null;
-Fld1 max(Fld2)
-1 20
-3 50
-drop table t1;
-create table t1 (id int not null, qty int not null);
-insert into t1 values (1,2),(1,3),(2,4),(2,5);
-select id, sum(qty) as sqty from t1 group by id having sqty>2;
-id sqty
-1 5
-2 9
-select sum(qty) as sqty from t1 group by id having count(id) > 0;
-sqty
-5
-9
-select sum(qty) as sqty from t1 group by id having count(distinct id) > 0;
-sqty
-5
-9
-drop table t1;
-CREATE TABLE t1 (
-`id` bigint(20) NOT NULL default '0',
-`description` text
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-`id` bigint(20) NOT NULL default '0',
-`description` varchar(20)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1, 'test');
-INSERT INTO t2 VALUES (1, 'test');
-CREATE TABLE t3 (
-`id` bigint(20) NOT NULL default '0',
-`order_id` bigint(20) NOT NULL default '0'
-) ENGINE=MyISAM;
-select
-a.id, a.description,
-count(b.id) as c
-from t1 a left join t3 b on a.id=b.order_id
-group by a.id, a.description
-having (a.description is not null) and (c=0);
-id description c
-1 test 0
-select
-a.*,
-count(b.id) as c
-from t2 a left join t3 b on a.id=b.order_id
-group by a.id, a.description
-having (a.description is not null) and (c=0);
-id description c
-1 test 0
-INSERT INTO t1 VALUES (2, 'test2');
-select
-a.id, a.description,
-count(b.id) as c
-from t1 a left join t3 b on a.id=b.order_id
-group by a.id, a.description
-having (a.description is not null) and (c=0);
-id description c
-1 test 0
-2 test2 0
-drop table t1,t2,t3;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (3), (4), (1), (3), (1);
-SELECT SUM(a) FROM t1 GROUP BY a HAVING SUM(a)>0;
-SUM(a)
-2
-6
-4
-SELECT SUM(a) FROM t1 GROUP BY a HAVING SUM(a);
-SUM(a)
-2
-6
-4
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2), (1), (3), (2), (1);
-SELECT a FROM t1 GROUP BY a HAVING a > 1;
-a
-2
-3
-SELECT a FROM t1 GROUP BY a HAVING 1 != 1 AND a > 1;
-a
-SELECT 0 AS x, a FROM t1 GROUP BY x,a HAVING x=1 AND a > 1;
-x a
-EXPLAIN SELECT a FROM t1 GROUP BY a HAVING 1 != 1 AND a > 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible HAVING
-EXPLAIN SELECT 0 AS x, a FROM t1 GROUP BY x,a HAVING x=1 AND a > 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible HAVING
-DROP table t1;
-CREATE TABLE t1 (a int PRIMARY KEY);
-CREATE TABLE t2 (b int PRIMARY KEY, a int);
-CREATE TABLE t3 (b int, flag int);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (1,1), (2,1), (3,1);
-INSERT INTO t3(b,flag) VALUES (2, 1);
-SELECT t1.a
-FROM t1 INNER JOIN t2 ON t1.a=t2.a LEFT JOIN t3 ON t2.b=t3.b
-GROUP BY t1.a, t2.b HAVING MAX(t3.flag)=0;
-a
-SELECT DISTINCT t1.a, MAX(t3.flag)
-FROM t1 INNER JOIN t2 ON t1.a=t2.a LEFT JOIN t3 ON t2.b=t3.b
-GROUP BY t1.a, t2.b HAVING MAX(t3.flag)=0;
-a MAX(t3.flag)
-SELECT DISTINCT t1.a
-FROM t1 INNER JOIN t2 ON t1.a=t2.a LEFT JOIN t3 ON t2.b=t3.b
-GROUP BY t1.a, t2.b HAVING MAX(t3.flag)=0;
-a
-DROP TABLE t1,t2,t3;
-create table t1 (col1 int, col2 varchar(5), col_t1 int);
-create table t2 (col1 int, col2 varchar(5), col_t2 int);
-create table t3 (col1 int, col2 varchar(5), col_t3 int);
-insert into t1 values(10,'hello',10);
-insert into t1 values(20,'hello',20);
-insert into t1 values(30,'hello',30);
-insert into t1 values(10,'bye',10);
-insert into t1 values(10,'sam',10);
-insert into t1 values(10,'bob',10);
-insert into t2 select * from t1;
-insert into t3 select * from t1;
-select count(*) from t1 group by col1 having col1 = 10;
-count(*)
-4
-select count(*) as count_col1 from t1 group by col1 having col1 = 10;
-count_col1
-4
-select count(*) as count_col1 from t1 as tmp1 group by col1 having col1 = 10;
-count_col1
-4
-select count(*) from t1 group by col2 having col2 = 'hello';
-count(*)
-3
-select count(*) from t1 group by col2 having col1 = 10;
-ERROR 42S22: Unknown column 'col1' in 'having clause'
-select col1 as count_col1 from t1 as tmp1 group by col1 having col1 = 10;
-count_col1
-10
-select col1 as count_col1 from t1 as tmp1 group by col1 having count_col1 = 10;
-count_col1
-10
-select col1 as count_col1 from t1 as tmp1 group by count_col1 having col1 = 10;
-count_col1
-10
-select col1 as count_col1 from t1 as tmp1 group by count_col1 having count_col1 = 10;
-count_col1
-10
-select col1 as count_col1,col2 from t1 as tmp1 group by col1,col2 having col1 = 10;
-count_col1 col2
-10 bob
-10 bye
-10 hello
-10 sam
-select col1 as count_col1,col2 from t1 as tmp1 group by col1,col2 having count_col1 = 10;
-count_col1 col2
-10 bob
-10 bye
-10 hello
-10 sam
-select col1 as count_col1,col2 from t1 as tmp1 group by col1,col2 having col2 = 'hello';
-count_col1 col2
-10 hello
-20 hello
-30 hello
-select col1 as count_col1,col2 as group_col2 from t1 as tmp1 group by col1,col2 having group_col2 = 'hello';
-count_col1 group_col2
-10 hello
-20 hello
-30 hello
-select sum(col1) as co12 from t1 group by col2 having col2 10;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '10' at line 1
-select sum(col1) as co2, count(col2) as cc from t1 group by col1 having col1 =10;
-co2 cc
-40 4
-select t2.col2 from t2 group by t2.col1, t2.col2 having t1.col1 <= 10;
-ERROR 42S22: Unknown column 't1.col1' in 'having clause'
-select t1.col1 from t1
-where t1.col2 in
-(select t2.col2 from t2
-group by t2.col1, t2.col2 having t2.col1 <= 10);
-col1
-10
-20
-30
-10
-10
-10
-select t1.col1 from t1
-where t1.col2 in
-(select t2.col2 from t2
-group by t2.col1, t2.col2
-having t2.col1 <=
-(select min(t3.col1) from t3));
-col1
-10
-20
-30
-10
-10
-10
-select t1.col1 from t1
-where t1.col2 in
-(select t2.col2 from t2
-group by t2.col1, t2.col2 having t1.col1 <= 10);
-col1
-10
-10
-10
-10
-select t1.col1 as tmp_col from t1
-where t1.col2 in
-(select t2.col2 from t2
-group by t2.col1, t2.col2 having tmp_col <= 10);
-tmp_col
-10
-10
-10
-10
-select t1.col1 from t1
-where t1.col2 in
-(select t2.col2 from t2
-group by t2.col1, t2.col2 having col_t1 <= 10);
-col1
-10
-10
-10
-10
-select sum(col1) from t1
-group by col_t1
-having (select col_t1 from t2 where col_t1 = col_t2 order by col_t2 limit 1);
-sum(col1)
-40
-20
-30
-select t1.col1 from t1
-where t1.col2 in
-(select t2.col2 from t2
-group by t2.col1, t2.col2 having col_t1 <= 10)
-having col_t1 <= 20;
-ERROR 42S22: Unknown column 'col_t1' in 'having clause'
-select t1.col1 from t1
-where t1.col2 in
-(select t2.col2 from t2
-group by t2.col1, t2.col2 having col_t1 <= 10)
-group by col_t1
-having col_t1 <= 20;
-col1
-10
-select col_t1, sum(col1) from t1
-group by col_t1
-having col_t1 > 10 and
-exists (select sum(t2.col1) from t2
-group by t2.col2 having t2.col2 > 'b');
-col_t1 sum(col1)
-20 20
-30 30
-select sum(col1) from t1
-group by col_t1
-having col_t1 in (select sum(t2.col1) from t2
-group by t2.col2, t2.col1 having t2.col1 = t1.col1);
-ERROR 42S22: Unknown column 't1.col1' in 'having clause'
-select sum(col1) from t1
-group by col_t1
-having col_t1 in (select sum(t2.col1) from t2
-group by t2.col2, t2.col1 having t2.col1 = col_t1);
-sum(col1)
-40
-20
-30
-select t1.col1, t2.col1 from t1, t2 where t1.col1 = t2.col1
-group by t1.col1, t2.col1 having col1 = 2;
-ERROR 23000: Column 'col1' in having clause is ambiguous
-select t1.col1*10+t2.col1 from t1,t2 where t1.col1=t2.col1
-group by t1.col1, t2.col1 having col1 = 2;
-ERROR 23000: Column 'col1' in having clause is ambiguous
-drop table t1, t2, t3;
-create table t1 (s1 int);
-insert into t1 values (1),(2),(3);
-select count(*) from t1 group by s1 having s1 is null;
-count(*)
-select s1*0 as s1 from t1 group by s1 having s1 <> 0;
-s1
-0
-0
-0
-Warnings:
-Warning 1052 Column 's1' in group statement is ambiguous
-Warning 1052 Column 's1' in having clause is ambiguous
-select s1*0 from t1 group by s1 having s1 = 0;
-s1*0
-select s1 from t1 group by 1 having 1 = 0;
-s1
-select count(s1) from t1 group by s1 having count(1+1)=2;
-count(s1)
-select count(s1) from t1 group by s1 having s1*0=0;
-count(s1)
-1
-1
-1
-select * from t1 a, t1 b group by a.s1 having s1 is null;
-ERROR 23000: Column 's1' in having clause is ambiguous
-drop table t1;
-create table t1 (s1 char character set latin1 collate latin1_german1_ci);
-insert ignore into t1 values ('ü'),('y');
-Warnings:
-Warning 1265 Data truncated for column 's1' at row 1
-select s1,count(s1) from t1
-group by s1 collate latin1_swedish_ci having s1 = 'y';
-s1 count(s1)
-y 1
-drop table t1;
-DROP SCHEMA IF EXISTS HU;
-CREATE SCHEMA HU ;
-USE HU ;
-CREATE TABLE STAFF
-(EMPNUM CHAR(3) NOT NULL UNIQUE,
-EMPNAME CHAR(20),
-GRADE DECIMAL(4),
-CITY CHAR(15));
-CREATE TABLE PROJ
-(PNUM CHAR(3) NOT NULL UNIQUE,
-PNAME CHAR(20),
-PTYPE CHAR(6),
-BUDGET DECIMAL(9),
-CITY CHAR(15));
-INSERT INTO STAFF VALUES ('E1','Alice',12,'Deale');
-INSERT INTO STAFF VALUES ('E2','Betty',10,'Vienna');
-INSERT INTO STAFF VALUES ('E3','Carmen',13,'Vienna');
-INSERT INTO STAFF VALUES ('E4','Don',12,'Deale');
-INSERT INTO STAFF VALUES ('E5','Ed',13,'Akron');
-INSERT INTO PROJ VALUES ('P1','MXSS','Design',10000,'Deale');
-INSERT INTO PROJ VALUES ('P2','CALM','Code',30000,'Vienna');
-INSERT INTO PROJ VALUES ('P3','SDP','Test',30000,'Tampa');
-INSERT INTO PROJ VALUES ('P4','SDP','Design',20000,'Deale');
-INSERT INTO PROJ VALUES ('P5','IRM','Test',10000,'Vienna');
-INSERT INTO PROJ VALUES ('P6','PAYR','Design',50000,'Deale');
-SELECT EMPNUM, GRADE*1000
-FROM HU.STAFF WHERE GRADE * 1000 >
-ANY (SELECT SUM(BUDGET) FROM HU.PROJ
-GROUP BY CITY, PTYPE
-HAVING HU.PROJ.CITY = HU.STAFF.CITY);
-EMPNUM GRADE*1000
-E3 13000
-DROP SCHEMA HU;
-USE test;
-create table t1(f1 int);
-select f1 from t1 having max(f1)=f1;
-f1
-select f1 from t1 group by f1 having max(f1)=f1;
-f1
-set session sql_mode='ONLY_FULL_GROUP_BY';
-select f1 from t1 having max(f1)=f1;
-ERROR 42000: Non-grouping field 'f1' is used in HAVING clause
-select f1 from t1 group by f1 having max(f1)=f1;
-f1
-set session sql_mode='';
-drop table t1;
-CREATE TABLE t1 ( a INT, b INT);
-INSERT INTO t1 VALUES (1, 1), (2,2), (3, NULL);
-SELECT b, COUNT(DISTINCT a) FROM t1 GROUP BY b HAVING b is NULL;
-b COUNT(DISTINCT a)
-NULL 1
-DROP TABLE t1;
-#
-# Bug#50995 Having clause on subquery result produces incorrect results.
-#
-CREATE TABLE t1
-(
-id1 INT,
-id2 INT NOT NULL,
-INDEX id1(id2)
-);
-INSERT INTO t1 SET id1=1, id2=1;
-INSERT INTO t1 SET id1=2, id2=1;
-INSERT INTO t1 SET id1=3, id2=1;
-SELECT t1.id1,
-(SELECT 0 FROM DUAL
-WHERE t1.id1=t1.id1) AS amount FROM t1
-WHERE t1.id2 = 1
-HAVING amount > 0
-ORDER BY t1.id1;
-id1 amount
-DROP TABLE t1;
-#
-# Bug#48916 Server incorrectly processing HAVING clauses with an ORDER BY clause
-#
-CREATE TABLE t1 (f1 INT PRIMARY KEY, f2 INT, f3 INT);
-INSERT INTO t1 VALUES (2,7,9), (4,7,9), (6,2,9), (17,0,9);
-SELECT table1.f1, table2.f2
-FROM t1 AS table1
-JOIN t1 AS table2 ON table1.f3 = table2.f3
-WHERE table2.f1 = 2
-GROUP BY table1.f1, table2.f2
-HAVING (table2.f2 = 8 AND table1.f1 >= 6);
-f1 f2
-EXPLAIN EXTENDED
-SELECT table1.f1, table2.f2
-FROM t1 AS table1
-JOIN t1 AS table2 ON table1.f3 = table2.f3
-WHERE table2.f1 = 2
-GROUP BY table1.f1, table2.f2
-HAVING (table2.f2 = 8 AND table1.f1 >= 6);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible HAVING noticed after reading const tables
-Warnings:
-Note 1003 select `test`.`table1`.`f1` AS `f1`,7 AS `f2` from `test`.`t1` `table1` join `test`.`t1` `table2` where `test`.`table1`.`f3` = 9 group by `test`.`table1`.`f1`,7 having 0
-EXPLAIN EXTENDED
-SELECT table1.f1, table2.f2
-FROM t1 AS table1
-JOIN t1 AS table2 ON table1.f3 = table2.f3
-WHERE table2.f1 = 2
-GROUP BY table1.f1, table2.f2
-HAVING (table2.f2 = 8);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible HAVING noticed after reading const tables
-Warnings:
-Note 1003 select `test`.`table1`.`f1` AS `f1`,7 AS `f2` from `test`.`t1` `table1` join `test`.`t1` `table2` where `test`.`table1`.`f3` = 9 group by `test`.`table1`.`f1`,7 having 0
-DROP TABLE t1;
-#
-# Bug#52336 Segfault / crash in 5.1 copy_fields (param=0x9872980) at sql_select.cc:15355
-#
-CREATE TABLE t1(f1 INT, f2 INT);
-INSERT INTO t1 VALUES (10,8);
-CREATE TABLE t2 (f1 INT);
-INSERT INTO t2 VALUES (5);
-SELECT COUNT(f1) FROM t2
-HAVING (7, 9) IN (SELECT f1, MIN(f2) FROM t1);
-COUNT(f1)
-DROP TABLE t1, t2;
-CREATE TABLE t1 (f1 INT, f2 VARCHAR(1));
-INSERT INTO t1 VALUES (16,'f');
-INSERT INTO t1 VALUES (16,'f');
-CREATE TABLE t2 (f1 INT, f2 VARCHAR(1));
-INSERT INTO t2 VALUES (13,'f');
-INSERT INTO t2 VALUES (20,'f');
-CREATE TABLE t3 (f1 INT, f2 VARCHAR(1));
-INSERT INTO t3 VALUES (7,'f');
-SELECT t1.f2 FROM t1
-STRAIGHT_JOIN (t2 JOIN t3 ON t3.f2 = t2.f2 ) ON t3 .f2 = t2 .f2
-HAVING ('v', 'i') NOT IN (SELECT f2, MIN(f2) FROM t1)
-ORDER BY f2;
-f2
-f
-f
-f
-f
-DROP TABLES t1,t2,t3;
-#
-# Bug#52340 Segfault: read_cached_record (tab=0x94a2634) at sql_select.cc:14411
-#
-CREATE TABLE t1 (f1 INT, f2 VARCHAR(1));
-INSERT INTO t1 VALUES (16,'d');
-CREATE TABLE t2 (f1 INT, f2 VARCHAR(1));
-INSERT INTO t2 VALUES (13,'e');
-INSERT INTO t2 VALUES (20,'d');
-SELECT MAX(t2.f2) FROM t2 JOIN t1 ON t1.f2
-HAVING ('e' , 'd') IN
-(SELECT ts1.f2, ts2.f2 FROM t2 ts1 JOIN t2 ts2 ON ts1.f1)
-ORDER BY t1.f2;
-MAX(t2.f2)
-NULL
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'd'
-DROP TABLE t1,t2;
-End of 5.0 tests
-#
-# Bug#54416 MAX from JOIN with HAVING returning NULL with 5.1 and Empty set
-#
-CREATE TABLE t1 (f1 INT(11), f2 VARCHAR(1), PRIMARY KEY (f1));
-INSERT INTO t1 VALUES (1,'f');
-CREATE TABLE t2 (f1 INT(11), f2 VARCHAR(1));
-INSERT INTO t2 VALUES (2,'m');
-INSERT INTO t2 VALUES (3,'m');
-INSERT INTO t2 VALUES (11,NULL);
-INSERT INTO t2 VALUES (12,'k');
-SELECT MAX(t1.f1) field1
-FROM t1 JOIN t2 ON t2.f2 LIKE 'x'
-HAVING field1 < 7;
-field1
-DROP TABLE t1,t2;
-#
-# Bug#48916 Server incorrectly processing HAVING clauses with an ORDER BY clause
-#
-CREATE TABLE t1 (f1 INT, f2 INT);
-INSERT INTO t1 VALUES (1, 0), (2, 1), (3, 2);
-CREATE TABLE t2 (f1 INT, f2 INT);
-SELECT t1.f1
-FROM t1
-HAVING (3, 2) IN (SELECT f1, f2 FROM t2) AND t1.f1 >= 0
-ORDER BY t1.f1;
-f1
-SELECT t1.f1
-FROM t1
-HAVING (3, 2) IN (SELECT 4, 2) AND t1.f1 >= 0
-ORDER BY t1.f1;
-f1
-SELECT t1.f1
-FROM t1
-HAVING 2 IN (SELECT f2 FROM t2) AND t1.f1 >= 0
-ORDER BY t1.f1;
-f1
-DROP TABLE t1,t2;
-End of 5.1 tests
-#
-# LP bug:938518 HAVING does not reject the result of aggregation
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY, a INT);
-INSERT INTO t1 VALUES (2,7), (4,7), (6,2), (17,0);
-SELECT MIN(t.pk) FROM t1, t1 as t WHERE t1.pk = 1;
-MIN(t.pk)
-NULL
-SELECT MIN(t.pk) FROM t1, t1 as t WHERE t1.pk = 1 HAVING MIN(t.pk) < 10;
-MIN(t.pk)
-drop table t1;
-#
-# LP bug #791761: MAX over an empty join + HAVING
-#
-CREATE TABLE t1 (a int, b int , KEY (b)) ;
-INSERT INTO t1 VALUES (3,1);
-CREATE TABLE t2 (a int NOT NULL ) ;
-INSERT INTO t2 VALUES (29);
-SELECT MAX(t1.b) FROM t1,t2 WHERE t2.a > 0 HAVING MAX(t1.b) <> 6;
-MAX(t1.b)
-1
-SELECT MAX(t1.b) FROM t1,t2 WHERE t2.a > 0 HAVING MAX(t1.b) IS NULL;
-MAX(t1.b)
-EXPLAIN
-SELECT MAX(t1.b) FROM t1,t2 WHERE t2.a < 0 HAVING MAX(t1.b) <> 6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT MAX(t1.b) FROM t1,t2 WHERE t2.a < 0 HAVING MAX(t1.b) <> 6;
-MAX(t1.b)
-CREATE TABLE t3 ( f3 int) ;
-INSERT INTO t3 VALUES (NULL);
-SELECT MAX(t1.b) AS f FROM t1 JOIN t2 ON t2.a != 0
-WHERE (SELECT f3 FROM t3) <> 0 HAVING f <> 6 ;
-f
-DROP TABLE t1,t2,t3;
-#
-# LP bug:806955 HAVING not observed with aggregate +subquery
-#
-CREATE TABLE t1 (f3 int, f10 varchar(1), f11 int, KEY (f10) );
-INSERT INTO t1 VALUES (NULL,'a',0),(8,'b',0);
-CREATE TABLE t2 (f2 int);
-INSERT INTO t2 VALUES (7);
-CREATE TABLE t3 (f3 int);
-INSERT INTO t3 VALUES (0),(8);
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin=off,materialization=off';
-SELECT MIN( t1.f10 ) AS field1
-FROM t1 , t2
-WHERE t2.f2 IN ( SELECT f3 FROM t3 )
-HAVING field1 < 's';
-field1
-explain extended
-SELECT MIN( t1.f10 ) AS field1
-FROM t1 , t2
-WHERE t2.f2 IN ( SELECT f3 FROM t3 )
-HAVING field1 < 's';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t1 index NULL f10 4 NULL 2 100.00 Using index
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select min(`test`.`t1`.`f10`) AS `field1` from `test`.`t1` where <expr_cache><7>(<in_optimizer>(7,<exists>(/* select#2 */ select `test`.`t3`.`f3` from `test`.`t3` where <cache>(7) = `test`.`t3`.`f3`))) having <cache>(`field1`) < 's'
-set optimizer_switch=@save_optimizer_switch;
-drop table t1,t2,t3;
-End of 5.2 tests
-#
-# Bug mdev-6116: an equality in the conjunction of HAVING
-# and IN subquery in WHERE
-# (The bug is caused by the same problem as bug mdev-5927)
-#
-CREATE TABLE t1 (f_key varchar(1), f_nokey varchar(1), INDEX(f_key));
-INSERT INTO t1 VALUES ('v','v'),('s','s');
-CREATE TABLE t2 (f_int int, f_key varchar(1), INDEX(f_key));
-INSERT INTO t2 VALUES
-(4,'j'),(6,'v'),(3,'c'),(5,'m'),(3,'d'),(2,'d'),(2,'y'),
-(9,'t'),(3,'d'),(8,'s'),(1,'r'),(8,'m'),(8,'b'),(5,'x');
-SELECT t2.f_int FROM t1 INNER JOIN t2 ON (t2.f_key = t1.f_nokey)
-WHERE t1.f_nokey IN (
-SELECT t1.f_key FROM t1, t2 WHERE t1.f_key = t2.f_key
-) HAVING t2.f_int >= 0 AND t2.f_int != 0;
-f_int
-6
-8
-DROP TABLE t1,t2;
-#
-# Bug mdev-5927: an equality in the conjunction of HAVING
-# and an equality in WHERE
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, f int NOT NULL, INDEX(f));
-INSERT INTO t1 VALUES (1,0), (2,8);
-SELECT * FROM t1 WHERE f = 2 HAVING ( pk IN ( SELECT 9 ) AND f != 0 );
-pk f
-DROP TABLE t1;
-End of 5.3 tests
-#
-# Bug MDEV-7301: Unknown column quoted with backticks in HAVING clause when using function.
-# Bug#16221433 MYSQL REJECTS QUERY DUE TO BAD RESOLUTION OF NAMES IN HAVING; VIEW UNREADABLE
-#
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL,
-`title` varchar(45) DEFAULT NULL,
-PRIMARY KEY (`id`)
-) DEFAULT CHARSET=utf8;
-INSERT INTO `t1` VALUES ('1', 'Just for fun');
-INSERT INTO `t1` VALUES ('2', 'Wait until a sunhine');
-INSERT INTO `t1` VALUES ('3', 'Take a new turn');
-SELECT `id`, SHA1(`title`) AS `column_1`
-FROM `t1`
-HAVING `column_1` LIKE '8%';
-id column_1
-1 80a12660d24a72460e5e292fe33f870276d7f40a
-expected 1 row(s) returned
-SELECT `id`, SHA1(`title`) AS `column_1`
-FROM `t1`
-HAVING UPPER(column_1) LIKE '8%';
-id column_1
-1 80a12660d24a72460e5e292fe33f870276d7f40a
-expected -- 1 row(s) returned
-SELECT `id`, SHA1(`title`) AS `column_1`
-FROM `t1`
-HAVING UPPER(`column_1`) LIKE '8%';
-id column_1
-1 80a12660d24a72460e5e292fe33f870276d7f40a
-expected -- 1 row(s) returned not ER_BAD_FIELD_ERROR
-drop table t1;
-#
-# mdev-14368: grouping query with alias for aggregate function in HAVING
-# when sql_mode = 'ONLY_FULL_GROUP_BY'
-set @save_sql_mode= @@sql_mode;
-set sql_mode = 'ONLY_FULL_GROUP_BY';
-create table t1(a int);
-insert t1 values (4),(1),(2),(1), (3),(4);
-SELECT a, COUNT(a) as ct FROM t1 GROUP BY a HAVING ct>0;
-a ct
-1 2
-2 1
-3 1
-4 2
-set sql_mode=@save_sql_mode;
-drop table t1;
-#
-# Bug mdev-5160: two-way join with HAVING over the second table
-#
-CREATE TABLE t1 (c1 varchar(6)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('s'), ('t'), ('a'), ('x');
-CREATE TABLE t2 (c2 varchar(6)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('a'), ('x');
-SELECT * FROM t1 JOIN t2 ON c1 = c2 HAVING c2 > 'a' ORDER BY c2 LIMIT 1;
-c1 c2
-x x
-DROP TABLE t1,t2;
-#
-# MDEV-6736: Valgrind warnings 'Invalid read' in subselect_engine::calc_const_tables with SQ
-# in WHERE and HAVING, ORDER BY, materialization+semijoin
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3),(8);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (2),(1);
-SELECT a FROM t1
-WHERE 9 IN ( SELECT MIN( a ) FROM t1 )
-HAVING a <> ( SELECT COUNT(*) FROM t2 )
-ORDER BY a;
-a
-DROP TABLE t1,t2;
-End of 10.0 tests
-#
-# MDEV-10716: Assertion `real_type() != FIELD_ITEM' failed in
-# Item_ref::build_equal_items(THD*, COND_EQUAL*, bool, COND_EQUAL**)
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1),(2);
-SELECT i, COUNT(*) FROM t1 GROUP BY i HAVING i<>0 AND 1;
-i COUNT(*)
-1 1
-2 1
-SELECT i-1 A, COUNT(*) FROM t1 GROUP BY i HAVING A AND 1;
-A COUNT(*)
-1 1
-CREATE VIEW v1 as select i, i-1 as A from t1;
-SELECT A, COUNT(*) FROM v1 GROUP BY i HAVING A AND 1;
-A COUNT(*)
-1 1
-DROP VIEW v1;
-DROP TABLE t1;
-End of 10.1 tests
-#
-# MDEV-14093: GROUP BY with HAVING over function + ORDER BY
-#
-CREATE TABLE _authors (
-id MEDIUMINT(8) UNSIGNED AUTO_INCREMENT,
-name VARCHAR(100),
-some_field MEDIUMINT(8) UNSIGNED,
-PRIMARY KEY (id),
-index(some_field)
-);
-CREATE TABLE _books (
-id MEDIUMINT(8) UNSIGNED AUTO_INCREMENT,
-title VARCHAR(100),
-PRIMARY KEY (id)
-);
-CREATE TABLE _books2authors (
-author_id MEDIUMINT(8) DEFAULT 0,
-book_id MEDIUMINT(8) DEFAULT 0,
-index(author_id),
-index(book_id)
-);
-INSERT INTO _authors (name, some_field) VALUES
-('author1', 1),('author2', 2),('author3', 3);
-INSERT INTO _books (title) VALUES
-('book1'),('book2'),('book3');
-INSERT INTO _books2authors (author_id, book_id) VALUES
-(2,1),(3,2),(3,3);
-SELECT A.id,
-GROUP_CONCAT(B.title ORDER BY B.title DESC SEPARATOR ',') AS books,
-some_field-1 AS having_field
-FROM _authors A
-LEFT JOIN _books2authors B2A FORCE INDEX(author_id)
-ON B2A.author_id = A.id
-LEFT JOIN
-_books B ON B.id = B2A.book_id
-GROUP BY A.id
-HAVING having_field < 1
-ORDER BY having_field ASC;
-id books having_field
-1 NULL 0
-DROP TABLE _authors, _books, _books2authors;
-#
-# Bug#17055185: WRONG RESULTS WHEN RUNNING A SELECT THAT INCLUDE
-# A HAVING BASED ON A FUNCTION.
-#
-CREATE TABLE series (
-val INT(10) UNSIGNED NOT NULL
-);
-INSERT INTO series VALUES(1);
-CREATE FUNCTION next_seq_value() RETURNS INT
-BEGIN
-DECLARE next_val INT;
-SELECT val INTO next_val FROM series;
-UPDATE series SET val=mod(val + 1, 2);
-RETURN next_val;
-END;
-|
-CREATE TABLE t1 (t INT, u INT, KEY(t));
-INSERT INTO t1 VALUES(10, 10), (11, 11), (12, 12), (12, 13),(14, 15), (15, 16),
-(16, 17), (17, 17);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-SELECT t, next_seq_value() r FROM t1 FORCE INDEX(t)
-GROUP BY t HAVING r = 1 ORDER BY t1.u;
-t r
-10 1
-12 1
-15 1
-17 1
-DROP TABLE t1;
-DROP FUNCTION next_seq_value;
-DROP TABLE series;
diff --git a/mysql-test/r/help.result b/mysql-test/r/help.result
deleted file mode 100644
index 66850e75dc1..00000000000
--- a/mysql-test/r/help.result
+++ /dev/null
@@ -1,285 +0,0 @@
-insert ignore into mysql.help_category(help_category_id,name)values(10001,'impossible_category_1');
-Warnings:
-Warning 1364 Field 'url' doesn't have a default value
-select @category1_id:= 10001;
-@category1_id:= 10001
-10001
-insert ignore into mysql.help_category(help_category_id,name)values(10002,'impossible_category_2');
-Warnings:
-Warning 1364 Field 'url' doesn't have a default value
-select @category2_id:= 10002;
-@category2_id:= 10002
-10002
-insert ignore into mysql.help_category(help_category_id,name,parent_category_id)values(10003,'impossible_category_3',@category2_id);
-Warnings:
-Warning 1364 Field 'url' doesn't have a default value
-select @category3_id:= 10003;
-@category3_id:= 10003
-10003
-insert ignore into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(10101,'impossible_function_1',@category1_id,'description of \n impossible_function1\n','example of \n impossible_function1');
-Warnings:
-Warning 1364 Field 'url' doesn't have a default value
-select @topic1_id:= 10101;
-@topic1_id:= 10101
-10101
-insert ignore into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(10102,'impossible_function_2',@category1_id,'description of \n impossible_function2\n','example of \n impossible_function2');
-Warnings:
-Warning 1364 Field 'url' doesn't have a default value
-select @topic2_id:= 10102;
-@topic2_id:= 10102
-10102
-insert ignore into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(10103,'impossible_function_3',@category2_id,'description of \n impossible_function3\n','example of \n impossible_function3');
-Warnings:
-Warning 1364 Field 'url' doesn't have a default value
-select @topic3_id:= 10103;
-@topic3_id:= 10103
-10103
-insert ignore into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(10104,'impossible_function_4',@category2_id,'description of \n impossible_function4\n','example of \n impossible_function4');
-Warnings:
-Warning 1364 Field 'url' doesn't have a default value
-select @topic4_id:= 10104;
-@topic4_id:= 10104
-10104
-insert ignore into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(10105,'impossible_function_7',@category3_id,'description of \n impossible_function5\n','example of \n impossible_function7');
-Warnings:
-Warning 1364 Field 'url' doesn't have a default value
-select @topic5_id:= 10105;
-@topic5_id:= 10105
-10105
-insert into mysql.help_keyword(help_keyword_id,name)values(10201,'impossible_function_1');
-select @keyword1_id:= 10201;
-@keyword1_id:= 10201
-10201
-insert into mysql.help_keyword(help_keyword_id,name)values(10202,'impossible_function_5');
-select @keyword2_id:= 10202;
-@keyword2_id:= 10202
-10202
-insert into mysql.help_keyword(help_keyword_id,name)values(10203,'impossible_function_6');
-select @keyword3_id:= 10203;
-@keyword3_id:= 10203
-10203
-insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword1_id,@topic2_id);
-insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword2_id,@topic1_id);
-insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword3_id,@topic3_id);
-insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword3_id,@topic4_id);
-help 'function_of_my_dream';
-name is_it_category
-help '%possible_f%';
-name is_it_category
-impossible_function_1 N
-impossible_function_2 N
-impossible_function_3 N
-impossible_function_4 N
-impossible_function_7 N
-help 'impossible_func%';
-name is_it_category
-impossible_function_1 N
-impossible_function_2 N
-impossible_function_3 N
-impossible_function_4 N
-impossible_function_7 N
-help 'impossible_category%';
-name is_it_category
-impossible_category_1 Y
-impossible_category_2 Y
-impossible_category_3 Y
-help 'impossible_%';
-name is_it_category
-impossible_function_1 N
-impossible_function_2 N
-impossible_function_3 N
-impossible_function_4 N
-impossible_function_7 N
-impossible_category_1 Y
-impossible_category_2 Y
-impossible_category_3 Y
-help '%function_1';
-name description example
-impossible_function_1 description of
- impossible_function1
- example of
- impossible_function1
-help '%function_2';
-name description example
-impossible_function_2 description of
- impossible_function2
- example of
- impossible_function2
-help '%function_3';
-name description example
-impossible_function_3 description of
- impossible_function3
- example of
- impossible_function3
-help '%function_4';
-name description example
-impossible_function_4 description of
- impossible_function4
- example of
- impossible_function4
-help '%function_5';
-name description example
-impossible_function_1 description of
- impossible_function1
- example of
- impossible_function1
-help '%function_6';
-name is_it_category
-impossible_function_3 N
-impossible_function_4 N
-help '%function_7';
-name description example
-impossible_function_7 description of
- impossible_function5
- example of
- impossible_function7
-help '%category_2';
-source_category_name name is_it_category
-impossible_category_2 impossible_function_3 N
-impossible_category_2 impossible_function_4 N
-impossible_category_2 impossible_category_3 Y
-help 'impossible_function_1';
-name description example
-impossible_function_1 description of
- impossible_function1
- example of
- impossible_function1
-help 'impossible_category_1';
-source_category_name name is_it_category
-impossible_category_1 impossible_function_1 N
-impossible_category_1 impossible_function_2 N
-# MDEV-9524 Cannot load from mysql.event when sql_mode is set to PAD_CHAR_TO_FULL_LENGTH
-help 'impossible_function_1';
-name description example
-impossible_function_1 description of
- impossible_function1
- example of
- impossible_function1
-SET sql_mode=PAD_CHAR_TO_FULL_LENGTH;
-help 'impossible_function_1';
-name description example
-impossible_function_1 description of
- impossible_function1
- example of
- impossible_function1
-SET sql_mode=DEFAULT;
-set sql_mode="";
-alter table mysql.help_relation engine=innodb;
-alter table mysql.help_keyword engine=innodb;
-alter table mysql.help_topic engine=innodb;
-alter table mysql.help_category engine=innodb;
-set sql_mode=default;
-help 'function_of_my_dream';
-name is_it_category
-help '%possible_f%';
-name is_it_category
-impossible_function_1 N
-impossible_function_2 N
-impossible_function_3 N
-impossible_function_4 N
-impossible_function_7 N
-help 'impossible_func%';
-name is_it_category
-impossible_function_1 N
-impossible_function_2 N
-impossible_function_3 N
-impossible_function_4 N
-impossible_function_7 N
-help 'impossible_category%';
-name is_it_category
-impossible_category_1 Y
-impossible_category_2 Y
-impossible_category_3 Y
-help 'impossible_%';
-name is_it_category
-impossible_function_1 N
-impossible_function_2 N
-impossible_function_3 N
-impossible_function_4 N
-impossible_function_7 N
-impossible_category_1 Y
-impossible_category_2 Y
-impossible_category_3 Y
-help '%function_1';
-name description example
-impossible_function_1 description of
- impossible_function1
- example of
- impossible_function1
-help '%function_2';
-name description example
-impossible_function_2 description of
- impossible_function2
- example of
- impossible_function2
-help '%function_3';
-name description example
-impossible_function_3 description of
- impossible_function3
- example of
- impossible_function3
-help '%function_4';
-name description example
-impossible_function_4 description of
- impossible_function4
- example of
- impossible_function4
-help '%function_5';
-name description example
-impossible_function_1 description of
- impossible_function1
- example of
- impossible_function1
-help '%function_6';
-name is_it_category
-impossible_function_3 N
-impossible_function_4 N
-help '%function_7';
-name description example
-impossible_function_7 description of
- impossible_function5
- example of
- impossible_function7
-help '%category_2';
-source_category_name name is_it_category
-impossible_category_2 impossible_function_3 N
-impossible_category_2 impossible_function_4 N
-impossible_category_2 impossible_category_3 Y
-help 'impossible_function_1';
-name description example
-impossible_function_1 description of
- impossible_function1
- example of
- impossible_function1
-help 'impossible_category_1';
-source_category_name name is_it_category
-impossible_category_1 impossible_function_1 N
-impossible_category_1 impossible_function_2 N
-alter table mysql.help_relation engine=myisam;
-alter table mysql.help_keyword engine=myisam;
-alter table mysql.help_topic engine=myisam;
-alter table mysql.help_category engine=myisam;
-delete from mysql.help_topic where help_topic_id=@topic1_id;
-delete from mysql.help_topic where help_topic_id=@topic2_id;
-delete from mysql.help_topic where help_topic_id=@topic3_id;
-delete from mysql.help_topic where help_topic_id=@topic4_id;
-delete from mysql.help_topic where help_topic_id=@topic5_id;
-delete from mysql.help_category where help_category_id=@category3_id;
-delete from mysql.help_category where help_category_id=@category2_id;
-delete from mysql.help_category where help_category_id=@category1_id;
-delete from mysql.help_keyword where help_keyword_id=@keyword1_id;
-delete from mysql.help_keyword where help_keyword_id=@keyword2_id;
-delete from mysql.help_keyword where help_keyword_id=@keyword3_id;
-delete from mysql.help_relation where help_keyword_id=@keyword1_id and help_topic_id=@topic2_id;
-delete from mysql.help_relation where help_keyword_id=@keyword2_id and help_topic_id=@topic1_id;
-delete from mysql.help_relation where help_keyword_id=@keyword3_id and help_topic_id=@topic3_id;
-delete from mysql.help_relation where help_keyword_id=@keyword3_id and help_topic_id=@topic4_id;
-End of 4.1 tests.
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (i INT);
-LOCK TABLES t1 WRITE;
-HELP no_such_topic;
-name is_it_category
-UNLOCK TABLES;
-DROP TABLE t1;
-End of 5.1 tests.
diff --git a/mysql-test/r/host_cache_size_functionality.result b/mysql-test/r/host_cache_size_functionality.result
deleted file mode 100644
index 069cf61bcad..00000000000
--- a/mysql-test/r/host_cache_size_functionality.result
+++ /dev/null
@@ -1,78 +0,0 @@
-'#________________________VAR_06_Host_Cache_Size__________________#'
-echo '##'
---echo '#---------------------WL6372_VAR_6_01----------------------#'
-####################################################################
-# Checking default value #
-####################################################################
-SELECT COUNT(@@GLOBAL.Host_Cache_Size)
-1 Expected
-set @Default_host_cache_size=279;
-select @@global.Host_Cache_Size=@Default_host_cache_size;
-@@global.Host_Cache_Size=@Default_host_cache_size
-1
-1 Expected
-'#---------------------WL6372_VAR_6_02----------------------#'
-# Restart server with Host_Cache_Size 1
-SELECT @@GLOBAL.Host_Cache_Size;
-@@GLOBAL.Host_Cache_Size
-1
-1 Expected
-set @Default_host_cache_size=128;
-SET @@GLOBAL.Host_Cache_Size=DEFAULT;
-select @@global.Host_Cache_Size=@Default_host_cache_size;
-@@global.Host_Cache_Size=@Default_host_cache_size
-1
-1 Expected
-'#---------------------WL6372_VAR_6_03----------------------#'
-SET @@local.Host_Cache_Size=1;
-ERROR HY000: Variable 'host_cache_size' is a GLOBAL variable and should be set with SET GLOBAL
-Expected error 'Global variable'
-SET @@session.Host_Cache_Size=1;
-ERROR HY000: Variable 'host_cache_size' is a GLOBAL variable and should be set with SET GLOBAL
-Expected error 'Global variable'
-SET @@GLOBAL.Host_Cache_Size=1;
-SET @@GLOBAL.Host_Cache_Size=DEFAULT;
-SELECT COUNT(@@GLOBAL.Host_Cache_Size);
-COUNT(@@GLOBAL.Host_Cache_Size)
-1
-1 Expected
-select @@global.Host_Cache_Size=@Default_host_cache_size;
-@@global.Host_Cache_Size=@Default_host_cache_size
-1
-1 Expected
-'#---------------------WL6372_VAR_6_04----------------------#'
-SELECT @@GLOBAL.Host_Cache_Size = VARIABLE_VALUE
-FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
-WHERE VARIABLE_NAME='Host_Cache_Size';
-@@GLOBAL.Host_Cache_Size = VARIABLE_VALUE
-1
-1 Expected
-SELECT COUNT(@@GLOBAL.Host_Cache_Size);
-COUNT(@@GLOBAL.Host_Cache_Size)
-1
-1 Expected
-SELECT COUNT(VARIABLE_VALUE)
-FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
-WHERE VARIABLE_NAME='Host_Cache_Size';
-COUNT(VARIABLE_VALUE)
-1
-1 Expected
-'#---------------------WL6372_VAR_6_05----------------------#'
-SELECT @@Host_Cache_Size = @@GLOBAL.Host_Cache_Size;
-@@Host_Cache_Size = @@GLOBAL.Host_Cache_Size
-1
-1 Expected
-SELECT COUNT(@@local.Host_Cache_Size);
-ERROR HY000: Variable 'host_cache_size' is a GLOBAL variable
-Expected error 'Variable is a GLOBAL variable'
-SELECT COUNT(@@SESSION.Host_Cache_Size);
-ERROR HY000: Variable 'host_cache_size' is a GLOBAL variable
-Expected error 'Variable is a GLOBAL variable'
-SELECT COUNT(@@GLOBAL.Host_Cache_Size);
-COUNT(@@GLOBAL.Host_Cache_Size)
-1
-1 Expected
-SELECT Host_Cache_Size = @@SESSION.Host_Cache_Size;
-ERROR 42S22: Unknown column 'Host_Cache_Size' in 'field list'
-Expected error 'Unknown column Host_Cache_Size in field list'
-SET @@GLOBAL.Host_Cache_Size=DEFAULT;
diff --git a/mysql-test/r/huge_frm-6224.result b/mysql-test/r/huge_frm-6224.result
deleted file mode 100644
index 3772317c04d..00000000000
--- a/mysql-test/r/huge_frm-6224.result
+++ /dev/null
@@ -1 +0,0 @@
-ERROR HY000: The definition for table `t1` is too big
diff --git a/mysql-test/r/implicit_char_to_num_conversion.result b/mysql-test/r/implicit_char_to_num_conversion.result
deleted file mode 100644
index 8f24a6b293c..00000000000
--- a/mysql-test/r/implicit_char_to_num_conversion.result
+++ /dev/null
@@ -1,366 +0,0 @@
-DROP TABLE IF EXISTS t5;
-CREATE TABLE t5(c1 BIT(2) PRIMARY KEY) ENGINE = <default_engine>;
-INSERT INTO t5 VALUES (0), (1), (2);
-SELECT HEX(c1) FROM t5 ORDER BY c1;
-HEX(c1)
-0
-1
-2
-SELECT HEX(c1) FROM t5 WHERE c1 = b'1' ORDER BY c1;
-HEX(c1)
-1
-SELECT HEX(c1) FROM t5 WHERE c1 <=> b'1' ORDER BY c1;
-HEX(c1)
-1
-SELECT HEX(c1) FROM t5 WHERE c1 != b'1' ORDER BY c1;
-HEX(c1)
-0
-2
-SELECT HEX(c1) FROM t5 WHERE c1 >= '1' ORDER BY c1;
-HEX(c1)
-1
-2
-SELECT HEX(c1) FROM t5 WHERE c1 <= '1' ORDER BY c1;
-HEX(c1)
-0
-1
-SELECT HEX(c1) FROM t5 WHERE c1 < '1' ORDER BY c1;
-HEX(c1)
-0
-SELECT HEX(c1) FROM t5 WHERE c1 > '0' ORDER BY c1;
-HEX(c1)
-1
-2
-DROP TABLE t5;
-CREATE TABLE t5(c1 FLOAT(5,2) PRIMARY KEY) ENGINE = <default_engine>;
-INSERT INTO t5 VALUES (95.95), (-10.10), (1), (0);
-SELECT c1 FROM t5 ORDER BY c1;
-c1
--10.10
-0.00
-1.00
-95.95
-SELECT c1 FROM t5 WHERE c1 >= '95' ORDER BY c1;
-c1
-95.95
-SELECT c1 FROM t5 WHERE c1 <= '10.10' ORDER BY c1;
-c1
--10.10
-0.00
-1.00
-SELECT c1 FROM t5 WHERE c1 != '1' ORDER BY c1;
-c1
--10.10
-0.00
-95.95
-SELECT c1 FROM t5 WHERE c1 < '1' ORDER BY c1;
-c1
--10.10
-0.00
-SELECT c1 FROM t5 WHERE c1 > '0' ORDER BY c1;
-c1
-1.00
-95.95
-DROP TABLE t5;
-CREATE TABLE t5(c1 TINYINT PRIMARY KEY) ENGINE = <default_engine>;
-INSERT INTO t5 VALUES (95), (10),(11),(-8);
-SELECT c1 FROM t5 ORDER BY c1;
-c1
--8
-10
-11
-95
-SELECT c1 FROM t5 WHERE c1 = '10' ORDER BY c1;
-c1
-10
-SELECT c1 FROM t5 WHERE c1 <=> '10' ORDER BY c1;
-c1
-10
-SELECT c1 FROM t5 WHERE c1 >= '95' ORDER BY c1;
-c1
-95
-SELECT c1 FROM t5 WHERE c1 <= '11' ORDER BY c1;
-c1
--8
-10
-11
-SELECT c1 FROM t5 WHERE c1 != '-8' ORDER BY c1;
-c1
-10
-11
-95
-SELECT c1 FROM t5 WHERE c1 < '11' ORDER BY c1;
-c1
--8
-10
-SELECT c1 FROM t5 WHERE c1 > '10' ORDER BY c1;
-c1
-11
-95
-DROP TABLE t5;
-CREATE TABLE t5(c1 SMALLINT PRIMARY KEY) ENGINE = <default_engine>;
-INSERT INTO t5 VALUES (395), (-200), (100), (111);
-SELECT c1 FROM t5 ORDER BY c1;
-c1
--200
-100
-111
-395
-SELECT c1 FROM t5 WHERE c1 = '100' ORDER BY c1;
-c1
-100
-SELECT c1 FROM t5 WHERE c1 <=> '100' ORDER BY c1;
-c1
-100
-SELECT c1 FROM t5 WHERE c1 >= '395' ORDER BY c1;
-c1
-395
-SELECT c1 FROM t5 WHERE c1 <= '-200' ORDER BY c1;
-c1
--200
-SELECT c1 FROM t5 WHERE c1 != '100' ORDER BY c1;
-c1
--200
-111
-395
-SELECT c1 FROM t5 WHERE c1 < '111' ORDER BY c1;
-c1
--200
-100
-SELECT c1 FROM t5 WHERE c1 > '111' ORDER BY c1;
-c1
-395
-DROP TABLE t5;
-CREATE TABLE t5(c1 MEDIUMINT PRIMARY KEY) ENGINE = <default_engine>;
-INSERT INTO t5 VALUES (-8388607), (311),(215),(88608);
-SELECT c1 FROM t5 ORDER BY c1;
-c1
--8388607
-215
-311
-88608
-SELECT c1 FROM t5 WHERE c1 = '311' ORDER BY c1;
-c1
-311
-SELECT c1 FROM t5 WHERE c1 <=> '311' ORDER BY c1;
-c1
-311
-SELECT c1 FROM t5 WHERE c1 >= '215' ORDER BY c1;
-c1
-215
-311
-88608
-SELECT c1 FROM t5 WHERE c1 <= '88608' ORDER BY c1;
-c1
--8388607
-215
-311
-88608
-SELECT c1 FROM t5 WHERE c1 != '-8388607' ORDER BY c1;
-c1
-215
-311
-88608
-SELECT c1 FROM t5 WHERE c1 < '215' ORDER BY c1;
-c1
--8388607
-SELECT c1 FROM t5 WHERE c1 > '215' ORDER BY c1;
-c1
-311
-88608
-DROP TABLE t5;
-CREATE TABLE t5(c1 INT PRIMARY KEY) ENGINE = <default_engine>;
-INSERT INTO t5 VALUES (-2147483647), (1011),(15),(9388607);
-SELECT c1 FROM t5 ORDER BY c1;
-c1
--2147483647
-15
-1011
-9388607
-SELECT c1 FROM t5 WHERE c1 = '9388607' ORDER BY c1;
-c1
-9388607
-SELECT c1 FROM t5 WHERE c1 <=> '9388607' ORDER BY c1;
-c1
-9388607
-SELECT c1 FROM t5 WHERE c1 >= '15' ORDER BY c1;
-c1
-15
-1011
-9388607
-SELECT c1 FROM t5 WHERE c1 <= '1011' ORDER BY c1;
-c1
--2147483647
-15
-1011
-SELECT c1 FROM t5 WHERE c1 != '-2147483647' ORDER BY c1;
-c1
-15
-1011
-9388607
-SELECT c1 FROM t5 WHERE c1 < '15' ORDER BY c1;
-c1
--2147483647
-SELECT c1 FROM t5 WHERE c1 > '15' ORDER BY c1;
-c1
-1011
-9388607
-DROP TABLE t5;
-CREATE TABLE t5(c1 BIGINT PRIMARY KEY) ENGINE = <default_engine>;
-INSERT INTO t5 VALUES (-9223372036854775807), (12011),(500),(3372036854775808);
-SELECT c1 FROM t5 ORDER BY c1;
-c1
--9223372036854775807
-500
-12011
-3372036854775808
-SELECT c1 FROM t5 WHERE c1 = '-9223372036854775807' ORDER BY c1;
-c1
--9223372036854775807
-SELECT c1 FROM t5 WHERE c1 <=> '-9223372036854775807' ORDER BY c1;
-c1
--9223372036854775807
-SELECT c1 FROM t5 WHERE c1 >= '12011' ORDER BY c1;
-c1
-12011
-3372036854775808
-SELECT c1 FROM t5 WHERE c1 <= '500' ORDER BY c1;
-c1
--9223372036854775807
-500
-SELECT c1 FROM t5 WHERE c1 != '3372036854775808' ORDER BY c1;
-c1
--9223372036854775807
-500
-12011
-SELECT c1 FROM t5 WHERE c1 < '12011' ORDER BY c1;
-c1
--9223372036854775807
-500
-SELECT c1 FROM t5 WHERE c1 > '12011' ORDER BY c1;
-c1
-3372036854775808
-DROP TABLE t5;
-CREATE TABLE t5(c1 DOUBLE(5,2) PRIMARY KEY) ENGINE = <default_engine>;
-INSERT INTO t5 VALUES (95.95), (11.11),(5),(-908.92);
-SELECT c1 FROM t5 ORDER BY c1;
-c1
--908.92
-5.00
-11.11
-95.95
-SELECT c1 FROM t5 WHERE c1 = '11.11' ORDER BY c1;
-c1
-11.11
-SELECT c1 FROM t5 WHERE c1 <=> '11.11' ORDER BY c1;
-c1
-11.11
-SELECT c1 FROM t5 WHERE c1 >= '5' ORDER BY c1;
-c1
-5.00
-11.11
-95.95
-SELECT c1 FROM t5 WHERE c1 <= '95.95' ORDER BY c1;
-c1
--908.92
-5.00
-11.11
-95.95
-SELECT c1 FROM t5 WHERE c1 != '-908.92' ORDER BY c1;
-c1
-5.00
-11.11
-95.95
-SELECT c1 FROM t5 WHERE c1 < '95.95' ORDER BY c1;
-c1
--908.92
-5.00
-11.11
-SELECT c1 FROM t5 WHERE c1 > '-908.92' ORDER BY c1;
-c1
-5.00
-11.11
-95.95
-DROP TABLE t5;
-CREATE TABLE t5(c1 NUMERIC(5,2) PRIMARY KEY) ENGINE = <default_engine>;
-INSERT INTO t5 VALUES (95.95), (11.11),(5),(-908.92);
-SELECT c1 FROM t5 ORDER BY c1;
-c1
--908.92
-5.00
-11.11
-95.95
-SELECT c1 FROM t5 WHERE c1 = '11.11' ORDER BY c1;
-c1
-11.11
-SELECT c1 FROM t5 WHERE c1 <=> '11.11' ORDER BY c1;
-c1
-11.11
-SELECT c1 FROM t5 WHERE c1 >= '5' ORDER BY c1;
-c1
-5.00
-11.11
-95.95
-SELECT c1 FROM t5 WHERE c1 <= '95.95' ORDER BY c1;
-c1
--908.92
-5.00
-11.11
-95.95
-SELECT c1 FROM t5 WHERE c1 != '-908.92' ORDER BY c1;
-c1
-5.00
-11.11
-95.95
-SELECT c1 FROM t5 WHERE c1 < '95.95' ORDER BY c1;
-c1
--908.92
-5.00
-11.11
-SELECT c1 FROM t5 WHERE c1 > '-908.92' ORDER BY c1;
-c1
-5.00
-11.11
-95.95
-DROP TABLE t5;
-CREATE TABLE t5(c1 DECIMAL(5,2) PRIMARY KEY) ENGINE = <default_engine>;
-INSERT INTO t5 VALUES (95.95), (11.11),(5),(-908.92);
-SELECT c1 FROM t5 ORDER BY c1;
-c1
--908.92
-5.00
-11.11
-95.95
-SELECT c1 FROM t5 WHERE c1 = '11.11' ORDER BY c1;
-c1
-11.11
-SELECT c1 FROM t5 WHERE c1 <=> '11.11' ORDER BY c1;
-c1
-11.11
-SELECT c1 FROM t5 WHERE c1 >= '5' ORDER BY c1;
-c1
-5.00
-11.11
-95.95
-SELECT c1 FROM t5 WHERE c1 <= '95.95' ORDER BY c1;
-c1
--908.92
-5.00
-11.11
-95.95
-SELECT c1 FROM t5 WHERE c1 != '-908.92' ORDER BY c1;
-c1
-5.00
-11.11
-95.95
-SELECT c1 FROM t5 WHERE c1 < '95.95' ORDER BY c1;
-c1
--908.92
-5.00
-11.11
-SELECT c1 FROM t5 WHERE c1 > '-908.92' ORDER BY c1;
-c1
-5.00
-11.11
-95.95
-DROP TABLE t5;
diff --git a/mysql-test/r/implicit_commit.result b/mysql-test/r/implicit_commit.result
deleted file mode 100644
index 07536ab0719..00000000000
--- a/mysql-test/r/implicit_commit.result
+++ /dev/null
@@ -1,1067 +0,0 @@
-SET SQL_MODE="";
-SET GLOBAL EVENT_SCHEDULER = OFF;
-SET BINLOG_FORMAT = STATEMENT;
-CREATE DATABASE db1;
-USE db1;
-CREATE TABLE t1 (a INT, KEY a(a)) ENGINE=INNODB;
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
-CREATE TABLE t3 (a INT) ENGINE=MyISAM;
-INSERT INTO t3 SELECT * FROM t1;
-CREATE TABLE trans (a INT) ENGINE=INNODB;
-CREATE PROCEDURE test_if_commit()
-BEGIN
-ROLLBACK;
-SELECT IF (COUNT(*) > 0, "YES", "NO") AS "IMPLICIT COMMIT" FROM trans;
-DELETE FROM trans;
-COMMIT;
-END|
-SET AUTOCOMMIT = FALSE;
-#
-# SQLCOM_SELECT
-#
-INSERT INTO db1.trans (a) VALUES (1);
-select 1 as res from t1 where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_CREATE_TABLE LIKE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-create table t2 like t1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_SHOW_CREATE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show create table t2;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_DROP_TABLE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-drop table t2;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_CREATE_TABLE TEMPORARY
-#
-INSERT INTO db1.trans (a) VALUES (1);
-create temporary table t2 as select * from t1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_DROP_TABLE TEMPORARY
-#
-INSERT INTO db1.trans (a) VALUES (1);
-drop temporary table t2;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_CREATE_TABLE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-create table t2 as select * from t1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_UPDATE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-update t2 set a=a+1 where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_INSERT
-#
-INSERT INTO db1.trans (a) VALUES (1);
-insert into t2 set a=((1) in (select * from t1));
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_INSERT_SELECT
-#
-INSERT INTO db1.trans (a) VALUES (1);
-insert into t2 select * from t1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_REPLACE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-replace t2 set a=((1) in (select * from t1));
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_REPLACE_SELECT
-#
-INSERT INTO db1.trans (a) VALUES (1);
-replace t2 select * from t1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_DELETE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-delete from t2 where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_DELETE_MULTI
-#
-INSERT INTO db1.trans (a) VALUES (1);
-delete t2, t3 from t2, t3 where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_UPDATE_MULTI
-#
-select * from t2;
-a
-INSERT INTO db1.trans (a) VALUES (1);
-update t2, t3 set t3.a=t2.a, t2.a=null where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_LOAD
-#
-create table t4 (a varchar(100));
-INSERT INTO db1.trans (a) VALUES (1);
-load data infile '../../std_data/words.dat' into table t4;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-drop table t4;
-#
-# SQLCOM_SHOW_DATABASES
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show databases where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_TABLES
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show tables where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_FIELDS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show fields from t1 where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_KEYS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show keys from t1 where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_VARIABLES
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show variables where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_STATUS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show status where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_ENGINE_MUTEX
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show engine all mutex;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_PROCESSLIST
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show processlist;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_ENGINE_LOGS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show engine all logs;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_ENGINE_STATUS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show engine all status;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_CHARSETS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show charset where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_COLLATIONS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show collation where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_TABLE_STATUS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show table status where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_TRIGGERS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show triggers where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_OPEN_TABLES
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show open tables where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_STATUS_PROC
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show procedure status where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_STATUS_FUNC
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show function status where (1) in (select * from t1);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SET_OPTION
-#
-INSERT INTO db1.trans (a) VALUES (1);
-set @a=((1) in (select * from t1));
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_DO
-#
-INSERT INTO db1.trans (a) VALUES (1);
-do ((1) in (select * from t1));
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_CALL
-#
-create procedure p1(a int) begin end;
-INSERT INTO db1.trans (a) VALUES (1);
-call p1((1) in (select * from t1));
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-drop procedure p1;
-#
-# SQLCOM_CREATE_VIEW
-#
-INSERT INTO db1.trans (a) VALUES (1);
-create view v1 as select * from t1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_ALTER_VIEW
-#
-INSERT INTO db1.trans (a) VALUES (1);
-alter view v1 as select 2;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_DROP_VIEW
-#
-INSERT INTO db1.trans (a) VALUES (1);
-drop view v1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_CREATE_INDEX
-#
-INSERT INTO db1.trans (a) VALUES (1);
-create index idx1 on t1(a);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_DROP_INDEX
-#
-INSERT INTO db1.trans (a) VALUES (1);
-drop index idx1 on t1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_ALTER_TABLE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-alter table t1 add column b int;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-INSERT INTO db1.trans (a) VALUES (1);
-alter table t1 change b c int;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-INSERT INTO db1.trans (a) VALUES (1);
-alter table t1 drop column c;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_ALTER_TABLE TEMPORARY
-#
-create temporary table t4 (a int);
-INSERT INTO db1.trans (a) VALUES (1);
-alter table t1 add column b int;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-INSERT INTO db1.trans (a) VALUES (1);
-alter table t1 change b c int;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-INSERT INTO db1.trans (a) VALUES (1);
-alter table t1 drop column c;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-drop table t4;
-#
-# SQLCOM_TRUNCATE
-#
-insert into t2 select * from t1;
-INSERT INTO db1.trans (a) VALUES (1);
-truncate table t2;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-insert into t2 select * from t1;
-#
-# SQLCOM_TRUNCATE TEMPORARY
-#
-create temporary table t4 as select * from t1;
-INSERT INTO db1.trans (a) VALUES (1);
-truncate table t4;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-drop temporary table t4;
-#
-# SQLCOM_SHOW_MASTER_STAT
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show master status;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_SLAVE_STAT
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show slave status;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_GRANT
-#
-INSERT INTO db1.trans (a) VALUES (1);
-grant all on test.t1 to mysqltest_2@localhost with grant option;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_REVOKE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-revoke select on test.t1 from mysqltest_2@localhost;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_REVOKE_ALL
-#
-INSERT INTO db1.trans (a) VALUES (1);
-revoke all on test.t1 from mysqltest_2@localhost;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-drop user mysqltest_2@localhost;
-#
-# SQLCOM_SHOW_GRANTS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show grants;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-INSERT INTO db1.trans (a) VALUES (1);
-show grants for current_user();
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_LOCK_TABLES
-#
-INSERT INTO db1.trans (a) VALUES (1);
-lock tables t1 write, trans write;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_UNLOCK_TABLES
-#
-INSERT INTO db1.trans (a) VALUES (1);
-unlock tables;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_CREATE_DB
-#
-INSERT INTO db1.trans (a) VALUES (1);
-create database db2;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_CHANGE_DB
-#
-create table db2.t1 (a int);
-insert into db2.t1 values (1);
-commit;
-INSERT INTO db1.trans (a) VALUES (1);
-use db2;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_CREATE_DB
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show create database db2;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_ALTER_DB
-#
-#
-# SQLCOM_ALTER_DB_UPGRADE
-#
-#
-# SQLCOM_DROP_DB
-#
-use db1;
-INSERT INTO db1.trans (a) VALUES (1);
-drop database db2;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_REPAIR
-#
-INSERT INTO db1.trans (a) VALUES (1);
-repair table t2;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-INSERT INTO db1.trans (a) VALUES (1);
-repair table t2 use_frm;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_OPTIMIZE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-optimize table t1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_CHECK
-#
-INSERT INTO db1.trans (a) VALUES (1);
-check table t1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-INSERT INTO db1.trans (a) VALUES (1);
-check table t1 extended;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_ASSIGN_TO_KEYCACHE
-#
-set global keycache.key_buffer_size=128*1024;
-INSERT INTO db1.trans (a) VALUES (1);
-cache index t3 in keycache;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-set global keycache.key_buffer_size=0;
-#
-# SQLCOM_PRELOAD_KEYS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-load index into cache t3;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_FLUSH
-#
-INSERT INTO db1.trans (a) VALUES (1);
-flush local privileges;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-INSERT INTO db1.trans (a) VALUES (1);
-flush privileges;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_KILL
-#
-#
-# SQLCOM_ANALYZE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-analyze table t1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_ROLLBACK
-#
-INSERT INTO db1.trans (a) VALUES (1);
-rollback;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_ROLLBACK_TO_SAVEPOINT
-#
-#
-# SQLCOM_COMMIT
-#
-INSERT INTO db1.trans (a) VALUES (1);
-commit;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_SAVEPOINT
-#
-INSERT INTO db1.trans (a) VALUES (1);
-savepoint sp1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_RELEASE_SAVEPOINT
-#
-#
-# SQLCOM_SLAVE_START
-#
-#
-# SQLCOM_SLAVE_STOP
-#
-#
-# SQLCOM_BEGIN
-#
-INSERT INTO db1.trans (a) VALUES (1);
-begin;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_CHANGE_MASTER
-#
-#
-# SQLCOM_RENAME_TABLE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-rename table t3 to t4;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-INSERT INTO db1.trans (a) VALUES (1);
-rename table t4 to t3;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_RESET
-#
-INSERT INTO db1.trans (a) VALUES (1);
-reset query cache;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_PURGE
-#
-#
-# SQLCOM_PURGE_BEFORE
-#
-#
-# SQLCOM_SHOW_BINLOGS
-#
-#
-# SQLCOM_HA_OPEN
-#
-INSERT INTO db1.trans (a) VALUES (1);
-handler t1 open as ha1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_HA_READ
-#
-INSERT INTO db1.trans (a) VALUES (1);
-handler ha1 read a first;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_HA_CLOSE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-handler ha1 close;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_SLAVE_HOSTS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show slave hosts;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_BINLOG_EVENTS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show binlog events;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_NEW_MASTER
-#
-#
-# SQLCOM_SHOW_WARNS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show warnings;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_EMPTY_QUERY
-#
-#
-# SQLCOM_SHOW_ERRORS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show errors;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_STORAGE_ENGINES
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show engines;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_PRIVILEGES
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show privileges;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_HELP
-#
-INSERT INTO db1.trans (a) VALUES (1);
-help 'foo';
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_CREATE_USER
-#
-INSERT INTO db1.trans (a) VALUES (1);
-create user trxusr1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_RENAME_USER
-#
-INSERT INTO db1.trans (a) VALUES (1);
-rename user 'trxusr1' to 'trxusr2';
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_DROP_USER
-#
-INSERT INTO db1.trans (a) VALUES (1);
-drop user trxusr2;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_CHECKSUM
-#
-INSERT INTO db1.trans (a) VALUES (1);
-checksum table t1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_CREATE_PROCEDURE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-create procedure p1(a int) begin end;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_ALTER_PROCEDURE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-alter procedure p1 comment 'foobar';
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_SHOW_CREATE_PROC
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show create procedure p1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_STATUS_PROC
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show procedure status;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_PROC_CODE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show procedure code p1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_DROP_PROCEDURE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-drop procedure p1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_CREATE_FUNCTION
-#
-#
-# SQLCOM_DROP_FUNCTION
-#
-#
-# SQLCOM_CREATE_SPFUNCTION
-#
-INSERT INTO db1.trans (a) VALUES (1);
-create function f1() returns int return 69;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_ALTER_FUNCTION
-#
-INSERT INTO db1.trans (a) VALUES (1);
-alter function f1 comment 'comment';
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_SHOW_CREATE_FUNC
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show create function f1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_STATUS_FUNC
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show function status like '%f%';
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_FUNC_CODE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show function code f1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_PREPARE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-prepare stmt1 from "insert into t1 values (5)";
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_EXECUTE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-execute stmt1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_DEALLOCATE_PREPARE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-deallocate prepare stmt1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_CREATE_TRIGGER
-#
-INSERT INTO db1.trans (a) VALUES (1);
-create trigger trg1 before insert on t1 for each row set @a:=1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_SHOW_CREATE_TRIGGER
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show create trigger trg1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_DROP_TRIGGER
-#
-INSERT INTO db1.trans (a) VALUES (1);
-drop trigger trg1;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_XA_START
-#
-#
-# SQLCOM_XA_END
-#
-#
-# SQLCOM_XA_PREPARE
-#
-#
-# SQLCOM_XA_COMMIT
-#
-#
-# SQLCOM_XA_ROLLBACK
-#
-#
-# SQLCOM_XA_RECOVER
-#
-#
-# SQLCOM_ALTER_TABLESPACE
-#
-#
-# SQLCOM_INSTALL_PLUGIN
-#
-#
-# SQLCOM_SHOW_PLUGINS
-#
-#
-# SQLCOM_UNINSTALL_PLUGIN
-#
-#
-# SQLCOM_SHOW_AUTHORS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show authors;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_BINLOG_BASE64_EVENT
-#
-#
-# SQLCOM_SHOW_CONTRIBUTORS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show contributors;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_CREATE_SERVER
-#
-#
-# SQLCOM_ALTER_SERVER
-#
-#
-# SQLCOM_DROP_SERVER
-#
-#
-# SQLCOM_CREATE_EVENT
-#
-INSERT INTO db1.trans (a) VALUES (1);
-create event ev1 on schedule every 1 second do insert into t1 values (6);
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_ALTER_EVENT
-#
-INSERT INTO db1.trans (a) VALUES (1);
-alter event ev1 rename to ev2 disable;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_SHOW_CREATE_EVENT
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show create event ev2;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_EVENTS
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show events;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_DROP_EVENT
-#
-INSERT INTO db1.trans (a) VALUES (1);
-drop event ev2;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-YES
-#
-# SQLCOM_BACKUP
-#
-#
-# SQLCOM_SHOW_ARCHIVE
-#
-#
-# SQLCOM_RESTORE
-#
-#
-# SQLCOM_BACKUP_TEST
-#
-#
-# SQLCOM_SHOW_PROFILE
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show profile memory;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-#
-# SQLCOM_SHOW_PROFILES
-#
-INSERT INTO db1.trans (a) VALUES (1);
-show profiles;
-CALL db1.test_if_commit();
-IMPLICIT COMMIT
-NO
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t3;
-USE test;
-DROP DATABASE db1;
-End of tests
diff --git a/mysql-test/r/in_datetime_241.result b/mysql-test/r/in_datetime_241.result
deleted file mode 100644
index 2c5b4bd8db1..00000000000
--- a/mysql-test/r/in_datetime_241.result
+++ /dev/null
@@ -1,5 +0,0 @@
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 ( a DATE );
-SELECT * FROM t1 WHERE ( SELECT a FROM t1 ) IN ('2012-04-25','2012-04-26');
-a
-DROP TABLE t1;
diff --git a/mysql-test/r/index_intersect.result b/mysql-test/r/index_intersect.result
deleted file mode 100644
index 7a0633d4dc8..00000000000
--- a/mysql-test/r/index_intersect.result
+++ /dev/null
@@ -1,1043 +0,0 @@
-DROP TABLE IF EXISTS t1,t2,t3,t4;
-DROP DATABASE IF EXISTS world;
-set names utf8;
-CREATE DATABASE world;
-use world;
-CREATE TABLE Country (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name)
-);
-CREATE TABLE City (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-);
-CREATE TABLE CountryLanguage (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-);
-SELECT COUNT(*) FROM Country;
-COUNT(*)
-239
-SELECT COUNT(*) FROM City;
-COUNT(*)
-4079
-SELECT COUNT(*) FROM CountryLanguage;
-COUNT(*)
-984
-CREATE INDEX Name ON City(Name);
-SET SESSION optimizer_switch='index_merge_sort_intersection=on';
-SELECT COUNT(*) FROM City;
-COUNT(*)
-4079
-SELECT COUNT(*) FROM City WHERE Name LIKE 'C%';
-COUNT(*)
-281
-SELECT COUNT(*) FROM City WHERE Name LIKE 'M%';
-COUNT(*)
-301
-SELECT COUNT(*) FROM City WHERE Population > 1000000;
-COUNT(*)
-237
-SELECT COUNT(*) FROM City WHERE Population > 1500000;
-COUNT(*)
-129
-SELECT COUNT(*) FROM City WHERE Population > 300000;
-COUNT(*)
-1062
-SELECT COUNT(*) FROM City WHERE Population > 7000000;
-COUNT(*)
-14
-EXPLAIN
-SELECT * FROM City WHERE
-Name LIKE 'C%' AND Population > 1000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name Name,Population 35,4 NULL # Using sort_intersect(Name,Population); Using where
-EXPLAIN
-SELECT * FROM City WHERE
-Name LIKE 'M%' AND Population > 1500000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name Population,Name 4,35 NULL # Using sort_intersect(Population,Name); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Name LIKE 'M%' AND Population > 300000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Name Name 35 NULL # Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Name LIKE 'M%' AND Population > 7000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Name Population 4 NULL # Using index condition; Using where
-SELECT * FROM City USE INDEX ()
-WHERE Name LIKE 'C%' AND Population > 1000000;
-ID Name Country Population
-1026 Calcutta [Kolkata] IND 4399819
-1027 Chennai (Madras) IND 3841396
-151 Chittagong BGD 1392860
-1892 Chongqing CHN 6351600
-1898 Chengdu CHN 3361500
-1900 Changchun CHN 2812000
-1910 Changsha CHN 1809800
-212 Curitiba BRA 1584232
-2258 Cali COL 2077386
-2485 Casablanca MAR 2940623
-2515 Ciudad de México MEX 8591309
-3539 Caracas VEN 1975294
-3795 Chicago USA 2896016
-608 Cairo EGY 6789479
-71 Córdoba ARG 1157507
-712 Cape Town ZAF 2352121
-926 Conakry GIN 1090610
-SELECT * FROM City
-WHERE Name LIKE 'C%' AND Population > 1000000;
-ID Name Country Population
-1026 Calcutta [Kolkata] IND 4399819
-1027 Chennai (Madras) IND 3841396
-151 Chittagong BGD 1392860
-1892 Chongqing CHN 6351600
-1898 Chengdu CHN 3361500
-1900 Changchun CHN 2812000
-1910 Changsha CHN 1809800
-212 Curitiba BRA 1584232
-2258 Cali COL 2077386
-2485 Casablanca MAR 2940623
-2515 Ciudad de México MEX 8591309
-3539 Caracas VEN 1975294
-3795 Chicago USA 2896016
-608 Cairo EGY 6789479
-71 Córdoba ARG 1157507
-712 Cape Town ZAF 2352121
-926 Conakry GIN 1090610
-SELECT * FROM City USE INDEX ()
-WHERE Name LIKE 'M%' AND Population > 1500000;
-ID Name Country Population
-1024 Mumbai (Bombay) IND 10500000
-131 Melbourne AUS 2865329
-1381 Mashhad IRN 1887405
-2259 Medellín COL 1861265
-3520 Minsk BLR 1674000
-3580 Moscow RUS 8389200
-653 Madrid ESP 2879052
-766 Manila PHL 1581082
-942 Medan IDN 1843919
-SELECT * FROM City
-WHERE Name LIKE 'M%' AND Population > 1500000;
-ID Name Country Population
-1024 Mumbai (Bombay) IND 10500000
-131 Melbourne AUS 2865329
-1381 Mashhad IRN 1887405
-2259 Medellín COL 1861265
-3520 Minsk BLR 1674000
-3580 Moscow RUS 8389200
-653 Madrid ESP 2879052
-766 Manila PHL 1581082
-942 Medan IDN 1843919
-SELECT * FROM City USE INDEX ()
-WHERE Name LIKE 'M%' AND Population > 300000;
-ID Name Country Population
-1024 Mumbai (Bombay) IND 10500000
-1042 Madurai IND 977856
-1051 Meerut IND 753778
-1074 Mysore IND 480692
-1081 Moradabad IND 429214
-1098 Malegaon IND 342595
-131 Melbourne AUS 2865329
-1366 Mosul IRQ 879000
-1381 Mashhad IRN 1887405
-1465 Milano ITA 1300977
-1559 Matsuyama JPN 466133
-1560 Matsudo JPN 461126
-1578 Machida JPN 364197
-1595 Miyazaki JPN 303784
-1810 Montréal CAN 1016376
-1816 Mississauga CAN 608072
-1882 Mombasa KEN 461753
-1945 Mudanjiang CHN 570000
-2005 Ma´anshan CHN 305421
-215 Manaus BRA 1255049
-223 Maceió BRA 786288
-2259 Medellín COL 1861265
-2267 Manizales COL 337580
-2300 Mbuji-Mayi COD 806475
-2348 Masan KOR 441242
-2440 Monrovia LBR 850000
-2454 Macao MAC 437500
-2487 Marrakech MAR 621914
-2491 Meknès MAR 460000
-250 Mauá BRA 375055
-2523 Monterrey MEX 1108499
-2526 Mexicali MEX 764902
-2530 Mérida MEX 703324
-2537 Morelia MEX 619958
-2554 Matamoros MEX 416428
-2557 Mazatlán MEX 380265
-256 Moji das Cruzes BRA 339194
-2698 Maputo MOZ 1018938
-2699 Matola MOZ 424662
-2711 Mandalay MMR 885300
-2712 Moulmein (Mawlamyine) MMR 307900
-2734 Managua NIC 959000
-2756 Mushin NGA 333200
-2757 Maiduguri NGA 320000
-2826 Multan PAK 1182441
-2975 Marseille FRA 798430
-3070 Munich [München] DEU 1194560
-3086 Mannheim DEU 307730
-3175 Mekka SAU 965700
-3176 Medina SAU 608300
-3214 Mogadishu SOM 997000
-3364 Mersin (Içel) TUR 587212
-3371 Malatya TUR 330312
-3434 Mykolajiv UKR 508000
-3435 Mariupol UKR 490000
-3438 Makijivka UKR 384000
-3492 Montevideo URY 1236000
-3520 Minsk BLR 1674000
-3522 Mogiljov BLR 356000
-3540 Maracaíbo VEN 1304776
-3545 Maracay VEN 444443
-3547 Maturín VEN 319726
-3580 Moscow RUS 8389200
-3622 Magnitogorsk RUS 427900
-3625 Murmansk RUS 376300
-3636 Mahat?kala RUS 332800
-3810 Memphis USA 650100
-3811 Milwaukee USA 596974
-3834 Mesa USA 396375
-3837 Minneapolis USA 382618
-3839 Miami USA 362470
-462 Manchester GBR 430000
-653 Madrid ESP 2879052
-658 Málaga ESP 530553
-661 Murcia ESP 353504
-766 Manila PHL 1581082
-77 Mar del Plata ARG 512880
-778 Makati PHL 444867
-781 Marikina PHL 391170
-783 Muntinlupa PHL 379310
-786 Malabon PHL 338855
-80 Merlo ARG 463846
-83 Moreno ARG 356993
-87 Morón ARG 349246
-942 Medan IDN 1843919
-947 Malang IDN 716862
-962 Manado IDN 332288
-963 Mataram IDN 306600
-SELECT * FROM City
-WHERE Name LIKE 'M%' AND Population > 300000;
-ID Name Country Population
-1024 Mumbai (Bombay) IND 10500000
-1042 Madurai IND 977856
-1051 Meerut IND 753778
-1074 Mysore IND 480692
-1081 Moradabad IND 429214
-1098 Malegaon IND 342595
-131 Melbourne AUS 2865329
-1366 Mosul IRQ 879000
-1381 Mashhad IRN 1887405
-1465 Milano ITA 1300977
-1559 Matsuyama JPN 466133
-1560 Matsudo JPN 461126
-1578 Machida JPN 364197
-1595 Miyazaki JPN 303784
-1810 Montréal CAN 1016376
-1816 Mississauga CAN 608072
-1882 Mombasa KEN 461753
-1945 Mudanjiang CHN 570000
-2005 Ma´anshan CHN 305421
-215 Manaus BRA 1255049
-223 Maceió BRA 786288
-2259 Medellín COL 1861265
-2267 Manizales COL 337580
-2300 Mbuji-Mayi COD 806475
-2348 Masan KOR 441242
-2440 Monrovia LBR 850000
-2454 Macao MAC 437500
-2487 Marrakech MAR 621914
-2491 Meknès MAR 460000
-250 Mauá BRA 375055
-2523 Monterrey MEX 1108499
-2526 Mexicali MEX 764902
-2530 Mérida MEX 703324
-2537 Morelia MEX 619958
-2554 Matamoros MEX 416428
-2557 Mazatlán MEX 380265
-256 Moji das Cruzes BRA 339194
-2698 Maputo MOZ 1018938
-2699 Matola MOZ 424662
-2711 Mandalay MMR 885300
-2712 Moulmein (Mawlamyine) MMR 307900
-2734 Managua NIC 959000
-2756 Mushin NGA 333200
-2757 Maiduguri NGA 320000
-2826 Multan PAK 1182441
-2975 Marseille FRA 798430
-3070 Munich [München] DEU 1194560
-3086 Mannheim DEU 307730
-3175 Mekka SAU 965700
-3176 Medina SAU 608300
-3214 Mogadishu SOM 997000
-3364 Mersin (Içel) TUR 587212
-3371 Malatya TUR 330312
-3434 Mykolajiv UKR 508000
-3435 Mariupol UKR 490000
-3438 Makijivka UKR 384000
-3492 Montevideo URY 1236000
-3520 Minsk BLR 1674000
-3522 Mogiljov BLR 356000
-3540 Maracaíbo VEN 1304776
-3545 Maracay VEN 444443
-3547 Maturín VEN 319726
-3580 Moscow RUS 8389200
-3622 Magnitogorsk RUS 427900
-3625 Murmansk RUS 376300
-3636 Mahat?kala RUS 332800
-3810 Memphis USA 650100
-3811 Milwaukee USA 596974
-3834 Mesa USA 396375
-3837 Minneapolis USA 382618
-3839 Miami USA 362470
-462 Manchester GBR 430000
-653 Madrid ESP 2879052
-658 Málaga ESP 530553
-661 Murcia ESP 353504
-766 Manila PHL 1581082
-77 Mar del Plata ARG 512880
-778 Makati PHL 444867
-781 Marikina PHL 391170
-783 Muntinlupa PHL 379310
-786 Malabon PHL 338855
-80 Merlo ARG 463846
-83 Moreno ARG 356993
-87 Morón ARG 349246
-942 Medan IDN 1843919
-947 Malang IDN 716862
-962 Manado IDN 332288
-963 Mataram IDN 306600
-SELECT * FROM City USE INDEX ()
-WHERE Name LIKE 'M%' AND Population > 7000000;
-ID Name Country Population
-1024 Mumbai (Bombay) IND 10500000
-3580 Moscow RUS 8389200
-SELECT * FROM City
-WHERE Name LIKE 'M%' AND Population > 7000000;
-ID Name Country Population
-3580 Moscow RUS 8389200
-1024 Mumbai (Bombay) IND 10500000
-SELECT COUNT(*) FROM City WHERE Name BETWEEN 'M' AND 'N';
-COUNT(*)
-301
-SELECT COUNT(*) FROM City WHERE Name BETWEEN 'G' AND 'J';
-COUNT(*)
-408
-SELECT COUNT(*) FROM City WHERE Name BETWEEN 'G' AND 'K';
-COUNT(*)
-512
-SELECT COUNT(*) FROM City WHERE Population > 1000000;
-COUNT(*)
-237
-SELECT COUNT(*) FROM City WHERE Population > 500000;
-COUNT(*)
-539
-SELECT COUNT(*) FROM City WHERE Country LIKE 'C%';
-COUNT(*)
-551
-SELECT COUNT(*) FROM City WHERE Country LIKE 'B%';
-COUNT(*)
-339
-EXPLAIN
-SELECT * FROM City
-WHERE Name BETWEEN 'M' AND 'N' AND Population > 1000000 AND Country LIKE 'C%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Name,Population 35,4 NULL # Using sort_intersect(Name,Population); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 1000000 AND Country LIKE 'B%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Population,Country 4,3 NULL # Using sort_intersect(Population,Country); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Name,Country Name # NULL # Using index condition; Using where
-SELECT * FROM City USE INDEX ()
-WHERE Name BETWEEN 'M' AND 'N' AND Population > 1000000 AND Country LIKE 'C%';
-ID Name Country Population
-1810 Montréal CAN 1016376
-2259 Medellín COL 1861265
-SELECT * FROM City
-WHERE Name BETWEEN 'M' AND 'N' AND Population > 1000000 AND Country LIKE 'C%';
-ID Name Country Population
-1810 Montréal CAN 1016376
-2259 Medellín COL 1861265
-SELECT * FROM City USE INDEX ()
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 1000000 AND Country LIKE 'B%';
-ID Name Country Population
-217 Guarulhos BRA 1095874
-218 Goiânia BRA 1056330
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 1000000 AND Country LIKE 'B%';
-ID Name Country Population
-217 Guarulhos BRA 1095874
-218 Goiânia BRA 1056330
-SELECT * FROM City USE INDEX ()
-WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
-ID Name Country Population
-1895 Harbin CHN 4289800
-1904 Jinan CHN 2278100
-1905 Hangzhou CHN 2190500
-1914 Guiyang CHN 1465200
-1916 Hefei CHN 1369100
-1923 Jilin CHN 1040000
-1927 Hohhot CHN 916700
-1928 Handan CHN 840000
-1937 Huainan CHN 700000
-1938 Jixi CHN 683885
-1944 Jinzhou CHN 570000
-1950 Hegang CHN 520000
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
-ID Name Country Population
-1895 Harbin CHN 4289800
-1904 Jinan CHN 2278100
-1905 Hangzhou CHN 2190500
-1914 Guiyang CHN 1465200
-1916 Hefei CHN 1369100
-1923 Jilin CHN 1040000
-1927 Hohhot CHN 916700
-1928 Handan CHN 840000
-1937 Huainan CHN 700000
-1938 Jixi CHN 683885
-1944 Jinzhou CHN 570000
-1950 Hegang CHN 520000
-SELECT COUNT(*) FROM City WHERE ID BETWEEN 501 AND 1000;
-COUNT(*)
-500
-SELECT COUNT(*) FROM City WHERE ID BETWEEN 1 AND 500;
-COUNT(*)
-500
-SELECT COUNT(*) FROM City WHERE ID BETWEEN 2001 AND 2500;
-COUNT(*)
-500
-SELECT COUNT(*) FROM City WHERE ID BETWEEN 3701 AND 4000;
-COUNT(*)
-300
-SELECT COUNT(*) FROM City WHERE Population > 700000;
-COUNT(*)
-358
-SELECT COUNT(*) FROM City WHERE Population > 1000000;
-COUNT(*)
-237
-SELECT COUNT(*) FROM City WHERE Population > 300000;
-COUNT(*)
-1062
-SELECT COUNT(*) FROM City WHERE Population > 600000;
-COUNT(*)
-428
-SELECT COUNT(*) FROM City WHERE Country LIKE 'C%';
-COUNT(*)
-551
-SELECT COUNT(*) FROM City WHERE Country LIKE 'A%';
-COUNT(*)
-107
-SELECT COUNT(*) FROM City WHERE Country LIKE 'H%';
-COUNT(*)
-22
-SELECT COUNT(*) FROM City WHERE Country BETWEEN 'S' AND 'Z';
-COUNT(*)
-682
-EXPLAIN
-SELECT * FROM City
-WHERE ID BETWEEN 501 AND 1000 AND Population > 700000 AND Country LIKE 'C%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY,Population,Country Population 4 NULL # Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ID BETWEEN 1 AND 500 AND Population > 1000000 AND Country LIKE 'A%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country Country,Population 3,4 NULL # Using sort_intersect(Country,Population); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ID BETWEEN 2001 AND 2500 AND Population > 300000 AND Country LIKE 'H%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY,Population,Country Country 3 NULL # Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ID BETWEEN 3701 AND 4000 AND Population > 1000000
-AND Country BETWEEN 'S' AND 'Z';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country Population,PRIMARY 4,4 NULL # Using sort_intersect(Population,PRIMARY); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ID BETWEEN 3001 AND 4000 AND Population > 600000
-AND Country BETWEEN 'S' AND 'Z' ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY,Population,Country Population 4 NULL # Using index condition; Using where
-SELECT * FROM City USE INDEX ()
-WHERE ID BETWEEN 501 AND 1000 AND Population > 700000 AND Country LIKE 'C%';
-ID Name Country Population
-554 Santiago de Chile CHL 4703954
-SELECT * FROM City
-WHERE ID BETWEEN 501 AND 1000 AND Population > 700000 AND Country LIKE 'C%';
-ID Name Country Population
-554 Santiago de Chile CHL 4703954
-SELECT * FROM City USE INDEX ()
-WHERE ID BETWEEN 1 AND 500 AND Population > 1000000 AND Country LIKE 'A%';
-ID Name Country Population
-1 Kabul AFG 1780000
-126 Yerevan ARM 1248700
-130 Sydney AUS 3276207
-131 Melbourne AUS 2865329
-132 Brisbane AUS 1291117
-133 Perth AUS 1096829
-144 Baku AZE 1787800
-56 Luanda AGO 2022000
-69 Buenos Aires ARG 2982146
-70 La Matanza ARG 1266461
-71 Córdoba ARG 1157507
-SELECT * FROM City
-WHERE ID BETWEEN 1 AND 500 AND Population > 1000000 AND Country LIKE 'A%';
-ID Name Country Population
-1 Kabul AFG 1780000
-126 Yerevan ARM 1248700
-130 Sydney AUS 3276207
-131 Melbourne AUS 2865329
-132 Brisbane AUS 1291117
-133 Perth AUS 1096829
-144 Baku AZE 1787800
-56 Luanda AGO 2022000
-69 Buenos Aires ARG 2982146
-70 La Matanza ARG 1266461
-71 Córdoba ARG 1157507
-SELECT * FROM City USE INDEX ()
-WHERE ID BETWEEN 2001 AND 2500 AND Population > 300000 AND Country LIKE 'H%';
-ID Name Country Population
-2409 Zagreb HRV 706770
-SELECT * FROM City
-WHERE ID BETWEEN 2001 AND 2500 AND Population > 300000 AND Country LIKE 'H%';
-ID Name Country Population
-2409 Zagreb HRV 706770
-SELECT * FROM City USE INDEX ()
-WHERE ID BETWEEN 3701 AND 4000 AND Population > 700000
-AND Country BETWEEN 'S' AND 'Z';
-ID Name Country Population
-3769 Ho Chi Minh City VNM 3980000
-3770 Hanoi VNM 1410000
-3771 Haiphong VNM 783133
-3793 New York USA 8008278
-3794 Los Angeles USA 3694820
-3795 Chicago USA 2896016
-3796 Houston USA 1953631
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-3799 San Diego USA 1223400
-3800 Dallas USA 1188580
-3801 San Antonio USA 1144646
-3802 Detroit USA 951270
-3803 San Jose USA 894943
-3804 Indianapolis USA 791926
-3805 San Francisco USA 776733
-3806 Jacksonville USA 735167
-3807 Columbus USA 711470
-SELECT * FROM City
-WHERE ID BETWEEN 3701 AND 4000 AND Population > 700000
-AND Country BETWEEN 'S' AND 'Z';
-ID Name Country Population
-3769 Ho Chi Minh City VNM 3980000
-3770 Hanoi VNM 1410000
-3771 Haiphong VNM 783133
-3793 New York USA 8008278
-3794 Los Angeles USA 3694820
-3795 Chicago USA 2896016
-3796 Houston USA 1953631
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-3799 San Diego USA 1223400
-3800 Dallas USA 1188580
-3801 San Antonio USA 1144646
-3802 Detroit USA 951270
-3803 San Jose USA 894943
-3804 Indianapolis USA 791926
-3805 San Francisco USA 776733
-3806 Jacksonville USA 735167
-3807 Columbus USA 711470
-SELECT * FROM City USE INDEX ()
-WHERE ID BETWEEN 3001 AND 4000 AND Population > 600000
-AND Country BETWEEN 'S' AND 'Z' ;
-ID Name Country Population
-3048 Stockholm SWE 750348
-3173 Riyadh SAU 3324000
-3174 Jedda SAU 2046300
-3175 Mekka SAU 965700
-3176 Medina SAU 608300
-3197 Pikine SEN 855287
-3198 Dakar SEN 785071
-3207 Freetown SLE 850000
-3208 Singapore SGP 4017733
-3214 Mogadishu SOM 997000
-3224 Omdurman SDN 1271403
-3225 Khartum SDN 947483
-3226 Sharq al-Nil SDN 700887
-3250 Damascus SYR 1347000
-3251 Aleppo SYR 1261983
-3263 Taipei TWN 2641312
-3264 Kaohsiung TWN 1475505
-3265 Taichung TWN 940589
-3266 Tainan TWN 728060
-3305 Dar es Salaam TZA 1747000
-3320 Bangkok THA 6320174
-3349 Tunis TUN 690600
-3357 Istanbul TUR 8787958
-3358 Ankara TUR 3038159
-3359 Izmir TUR 2130359
-3360 Adana TUR 1131198
-3361 Bursa TUR 1095842
-3362 Gaziantep TUR 789056
-3363 Konya TUR 628364
-3425 Kampala UGA 890800
-3426 Kyiv UKR 2624000
-3427 Harkova [Harkiv] UKR 1500000
-3428 Dnipropetrovsk UKR 1103000
-3429 Donetsk UKR 1050000
-3430 Odesa UKR 1011000
-3431 Zaporizzja UKR 848000
-3432 Lviv UKR 788000
-3433 Kryvyi Rig UKR 703000
-3492 Montevideo URY 1236000
-3503 Toskent UZB 2117500
-3539 Caracas VEN 1975294
-3540 Maracaíbo VEN 1304776
-3541 Barquisimeto VEN 877239
-3542 Valencia VEN 794246
-3543 Ciudad Guayana VEN 663713
-3769 Ho Chi Minh City VNM 3980000
-3770 Hanoi VNM 1410000
-3771 Haiphong VNM 783133
-3793 New York USA 8008278
-3794 Los Angeles USA 3694820
-3795 Chicago USA 2896016
-3796 Houston USA 1953631
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-3799 San Diego USA 1223400
-3800 Dallas USA 1188580
-3801 San Antonio USA 1144646
-3802 Detroit USA 951270
-3803 San Jose USA 894943
-3804 Indianapolis USA 791926
-3805 San Francisco USA 776733
-3806 Jacksonville USA 735167
-3807 Columbus USA 711470
-3808 Austin USA 656562
-3809 Baltimore USA 651154
-3810 Memphis USA 650100
-SELECT * FROM City
-WHERE ID BETWEEN 3001 AND 4000 AND Population > 600000
-AND Country BETWEEN 'S' AND 'Z' ;
-ID Name Country Population
-3048 Stockholm SWE 750348
-3173 Riyadh SAU 3324000
-3174 Jedda SAU 2046300
-3175 Mekka SAU 965700
-3176 Medina SAU 608300
-3197 Pikine SEN 855287
-3198 Dakar SEN 785071
-3207 Freetown SLE 850000
-3208 Singapore SGP 4017733
-3214 Mogadishu SOM 997000
-3224 Omdurman SDN 1271403
-3225 Khartum SDN 947483
-3226 Sharq al-Nil SDN 700887
-3250 Damascus SYR 1347000
-3251 Aleppo SYR 1261983
-3263 Taipei TWN 2641312
-3264 Kaohsiung TWN 1475505
-3265 Taichung TWN 940589
-3266 Tainan TWN 728060
-3305 Dar es Salaam TZA 1747000
-3320 Bangkok THA 6320174
-3349 Tunis TUN 690600
-3357 Istanbul TUR 8787958
-3358 Ankara TUR 3038159
-3359 Izmir TUR 2130359
-3360 Adana TUR 1131198
-3361 Bursa TUR 1095842
-3362 Gaziantep TUR 789056
-3363 Konya TUR 628364
-3425 Kampala UGA 890800
-3426 Kyiv UKR 2624000
-3427 Harkova [Harkiv] UKR 1500000
-3428 Dnipropetrovsk UKR 1103000
-3429 Donetsk UKR 1050000
-3430 Odesa UKR 1011000
-3431 Zaporizzja UKR 848000
-3432 Lviv UKR 788000
-3433 Kryvyi Rig UKR 703000
-3492 Montevideo URY 1236000
-3503 Toskent UZB 2117500
-3539 Caracas VEN 1975294
-3540 Maracaíbo VEN 1304776
-3541 Barquisimeto VEN 877239
-3542 Valencia VEN 794246
-3543 Ciudad Guayana VEN 663713
-3769 Ho Chi Minh City VNM 3980000
-3770 Hanoi VNM 1410000
-3771 Haiphong VNM 783133
-3793 New York USA 8008278
-3794 Los Angeles USA 3694820
-3795 Chicago USA 2896016
-3796 Houston USA 1953631
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-3799 San Diego USA 1223400
-3800 Dallas USA 1188580
-3801 San Antonio USA 1144646
-3802 Detroit USA 951270
-3803 San Jose USA 894943
-3804 Indianapolis USA 791926
-3805 San Francisco USA 776733
-3806 Jacksonville USA 735167
-3807 Columbus USA 711470
-3808 Austin USA 656562
-3809 Baltimore USA 651154
-3810 Memphis USA 650100
-SET SESSION sort_buffer_size = 2048;
-EXPLAIN
-SELECT * FROM City WHERE
-Name LIKE 'C%' AND Population > 1000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name Name,Population 35,4 NULL # Using sort_intersect(Name,Population); Using where
-EXPLAIN
-SELECT * FROM City WHERE
-Name LIKE 'M%' AND Population > 1500000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name Population,Name 4,35 NULL # Using sort_intersect(Population,Name); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 1000000 AND Country LIKE 'B%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Population,Country 4,3 NULL # Using sort_intersect(Population,Country); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 500000 AND Country LIKE 'C%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Country,Name Name 35 NULL # Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ID BETWEEN 1 AND 500 AND Population > 1000000 AND Country LIKE 'A%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country Country,Population 3,4 NULL # Using sort_intersect(Country,Population); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ID BETWEEN 3001 AND 4000 AND Population > 600000
-AND Country BETWEEN 'S' AND 'Z';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY,Population,Country Population 4 NULL # Using index condition; Using where
-SELECT * FROM City WHERE
-Name LIKE 'C%' AND Population > 1000000;
-ID Name Country Population
-1026 Calcutta [Kolkata] IND 4399819
-1027 Chennai (Madras) IND 3841396
-151 Chittagong BGD 1392860
-1892 Chongqing CHN 6351600
-1898 Chengdu CHN 3361500
-1900 Changchun CHN 2812000
-1910 Changsha CHN 1809800
-212 Curitiba BRA 1584232
-2258 Cali COL 2077386
-2485 Casablanca MAR 2940623
-2515 Ciudad de México MEX 8591309
-3539 Caracas VEN 1975294
-3795 Chicago USA 2896016
-608 Cairo EGY 6789479
-71 Córdoba ARG 1157507
-712 Cape Town ZAF 2352121
-926 Conakry GIN 1090610
-SELECT * FROM City WHERE
-Name LIKE 'M%' AND Population > 1500000;
-ID Name Country Population
-1024 Mumbai (Bombay) IND 10500000
-131 Melbourne AUS 2865329
-1381 Mashhad IRN 1887405
-2259 Medellín COL 1861265
-3520 Minsk BLR 1674000
-3580 Moscow RUS 8389200
-653 Madrid ESP 2879052
-766 Manila PHL 1581082
-942 Medan IDN 1843919
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 700000 AND Country LIKE 'B%';
-ID Name Country Population
-217 Guarulhos BRA 1095874
-218 Goiânia BRA 1056330
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 500000 AND Country LIKE 'C%';
-ID Name Country Population
-1895 Harbin CHN 4289800
-1905 Hangzhou CHN 2190500
-1914 Guiyang CHN 1465200
-1916 Hefei CHN 1369100
-1927 Hohhot CHN 916700
-1928 Handan CHN 840000
-1937 Huainan CHN 700000
-1950 Hegang CHN 520000
-SELECT * FROM City
-WHERE ID BETWEEN 1 AND 500 AND Population > 1000000 AND Country LIKE 'A%';
-ID Name Country Population
-1 Kabul AFG 1780000
-56 Luanda AGO 2022000
-69 Buenos Aires ARG 2982146
-70 La Matanza ARG 1266461
-71 Córdoba ARG 1157507
-126 Yerevan ARM 1248700
-130 Sydney AUS 3276207
-131 Melbourne AUS 2865329
-132 Brisbane AUS 1291117
-133 Perth AUS 1096829
-144 Baku AZE 1787800
-SELECT * FROM City
-WHERE ID BETWEEN 3001 AND 4000 AND Population > 600000
-AND Country BETWEEN 'S' AND 'Z';
-ID Name Country Population
-3048 Stockholm SWE 750348
-3173 Riyadh SAU 3324000
-3174 Jedda SAU 2046300
-3175 Mekka SAU 965700
-3176 Medina SAU 608300
-3197 Pikine SEN 855287
-3198 Dakar SEN 785071
-3207 Freetown SLE 850000
-3208 Singapore SGP 4017733
-3214 Mogadishu SOM 997000
-3224 Omdurman SDN 1271403
-3225 Khartum SDN 947483
-3226 Sharq al-Nil SDN 700887
-3250 Damascus SYR 1347000
-3251 Aleppo SYR 1261983
-3263 Taipei TWN 2641312
-3264 Kaohsiung TWN 1475505
-3265 Taichung TWN 940589
-3266 Tainan TWN 728060
-3305 Dar es Salaam TZA 1747000
-3320 Bangkok THA 6320174
-3349 Tunis TUN 690600
-3357 Istanbul TUR 8787958
-3358 Ankara TUR 3038159
-3359 Izmir TUR 2130359
-3360 Adana TUR 1131198
-3361 Bursa TUR 1095842
-3362 Gaziantep TUR 789056
-3363 Konya TUR 628364
-3425 Kampala UGA 890800
-3426 Kyiv UKR 2624000
-3427 Harkova [Harkiv] UKR 1500000
-3428 Dnipropetrovsk UKR 1103000
-3429 Donetsk UKR 1050000
-3430 Odesa UKR 1011000
-3431 Zaporizzja UKR 848000
-3432 Lviv UKR 788000
-3433 Kryvyi Rig UKR 703000
-3492 Montevideo URY 1236000
-3503 Toskent UZB 2117500
-3539 Caracas VEN 1975294
-3540 Maracaíbo VEN 1304776
-3541 Barquisimeto VEN 877239
-3542 Valencia VEN 794246
-3543 Ciudad Guayana VEN 663713
-3769 Ho Chi Minh City VNM 3980000
-3770 Hanoi VNM 1410000
-3771 Haiphong VNM 783133
-3793 New York USA 8008278
-3794 Los Angeles USA 3694820
-3795 Chicago USA 2896016
-3796 Houston USA 1953631
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-3799 San Diego USA 1223400
-3800 Dallas USA 1188580
-3801 San Antonio USA 1144646
-3802 Detroit USA 951270
-3803 San Jose USA 894943
-3804 Indianapolis USA 791926
-3805 San Francisco USA 776733
-3806 Jacksonville USA 735167
-3807 Columbus USA 711470
-3808 Austin USA 656562
-3809 Baltimore USA 651154
-3810 Memphis USA 650100
-SET SESSION sort_buffer_size = default;
-DROP INDEX Country ON City;
-CREATE INDEX CountryID ON City(Country,ID);
-CREATE INDEX CountryName ON City(Country,Name);
-EXPLAIN
-SELECT * FROM City
-WHERE Country LIKE 'M%' AND Population > 1000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,CountryID,CountryName Population,CountryID 4,3 NULL # Using sort_intersect(Population,CountryID); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Country='CHN' AND Population > 1500000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,CountryID,CountryName Population,CountryID 4,3 NULL # Using sort_intersect(Population,CountryID); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Country='CHN' AND Population > 1500000 AND Name LIKE 'C%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name,CountryID,CountryName CountryName,Population 38,4 NULL # Using sort_intersect(CountryName,Population); Using where
-SELECT * FROM City USE INDEX ()
-WHERE Country LIKE 'M%' AND Population > 1000000;
-ID Name Country Population
-2464 Kuala Lumpur MYS 1297526
-2485 Casablanca MAR 2940623
-2515 Ciudad de México MEX 8591309
-2516 Guadalajara MEX 1647720
-2517 Ecatepec de Morelos MEX 1620303
-2518 Puebla MEX 1346176
-2519 Nezahualcóyotl MEX 1224924
-2520 Juárez MEX 1217818
-2521 Tijuana MEX 1212232
-2522 León MEX 1133576
-2523 Monterrey MEX 1108499
-2524 Zapopan MEX 1002239
-2698 Maputo MOZ 1018938
-2710 Rangoon (Yangon) MMR 3361700
-SELECT * FROM City
-WHERE Country LIKE 'M%' AND Population > 1000000;
-ID Name Country Population
-2464 Kuala Lumpur MYS 1297526
-2485 Casablanca MAR 2940623
-2515 Ciudad de México MEX 8591309
-2516 Guadalajara MEX 1647720
-2517 Ecatepec de Morelos MEX 1620303
-2518 Puebla MEX 1346176
-2519 Nezahualcóyotl MEX 1224924
-2520 Juárez MEX 1217818
-2521 Tijuana MEX 1212232
-2522 León MEX 1133576
-2523 Monterrey MEX 1108499
-2524 Zapopan MEX 1002239
-2698 Maputo MOZ 1018938
-2710 Rangoon (Yangon) MMR 3361700
-SELECT * FROM City USE INDEX ()
-WHERE Country='CHN' AND Population > 1500000;
-ID Name Country Population
-1890 Shanghai CHN 9696300
-1891 Peking CHN 7472000
-1892 Chongqing CHN 6351600
-1893 Tianjin CHN 5286800
-1894 Wuhan CHN 4344600
-1895 Harbin CHN 4289800
-1896 Shenyang CHN 4265200
-1897 Kanton [Guangzhou] CHN 4256300
-1898 Chengdu CHN 3361500
-1899 Nanking [Nanjing] CHN 2870300
-1900 Changchun CHN 2812000
-1901 Xi´an CHN 2761400
-1902 Dalian CHN 2697000
-1903 Qingdao CHN 2596000
-1904 Jinan CHN 2278100
-1905 Hangzhou CHN 2190500
-1906 Zhengzhou CHN 2107200
-1907 Shijiazhuang CHN 2041500
-1908 Taiyuan CHN 1968400
-1909 Kunming CHN 1829500
-1910 Changsha CHN 1809800
-1911 Nanchang CHN 1691600
-1912 Fuzhou CHN 1593800
-1913 Lanzhou CHN 1565800
-SELECT * FROM City
-WHERE Country='CHN' AND Population > 1500000;
-ID Name Country Population
-1890 Shanghai CHN 9696300
-1891 Peking CHN 7472000
-1892 Chongqing CHN 6351600
-1893 Tianjin CHN 5286800
-1894 Wuhan CHN 4344600
-1895 Harbin CHN 4289800
-1896 Shenyang CHN 4265200
-1897 Kanton [Guangzhou] CHN 4256300
-1898 Chengdu CHN 3361500
-1899 Nanking [Nanjing] CHN 2870300
-1900 Changchun CHN 2812000
-1901 Xi´an CHN 2761400
-1902 Dalian CHN 2697000
-1903 Qingdao CHN 2596000
-1904 Jinan CHN 2278100
-1905 Hangzhou CHN 2190500
-1906 Zhengzhou CHN 2107200
-1907 Shijiazhuang CHN 2041500
-1908 Taiyuan CHN 1968400
-1909 Kunming CHN 1829500
-1910 Changsha CHN 1809800
-1911 Nanchang CHN 1691600
-1912 Fuzhou CHN 1593800
-1913 Lanzhou CHN 1565800
-SELECT * FROM City USE INDEX ()
-WHERE Country='CHN' AND Population > 1500000 AND Name LIKE 'C%';
-ID Name Country Population
-1892 Chongqing CHN 6351600
-1898 Chengdu CHN 3361500
-1900 Changchun CHN 2812000
-1910 Changsha CHN 1809800
-SELECT * FROM City
-WHERE Country='CHN' AND Population > 1500000 AND Name LIKE 'C%';
-ID Name Country Population
-1892 Chongqing CHN 6351600
-1898 Chengdu CHN 3361500
-1900 Changchun CHN 2812000
-1910 Changsha CHN 1809800
-EXPLAIN
-SELECT * FROM City, Country
-WHERE City.Name LIKE 'C%' AND City.Population > 1000000 AND
-Country.Code=City.Country;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name,CountryID,CountryName Name,Population 35,4 NULL # Using sort_intersect(Name,Population); Using where
-1 SIMPLE Country eq_ref PRIMARY PRIMARY 3 world.City.Country #
-DROP DATABASE world;
-use test;
-CREATE TABLE t1 (
-f1 int,
-f4 varchar(32),
-f5 int,
-PRIMARY KEY (f1),
-KEY (f4)
-);
-INSERT INTO t1 VALUES
-(5,'H',1), (9,'g',0), (527,'i',0), (528,'y',1), (529,'S',6),
-(530,'m',7), (531,'b',2), (532,'N',1), (533,'V',NULL), (534,'l',1),
-(535,'M',0), (536,'w',1), (537,'j',5), (538,'l',0), (539,'n',2),
-(540,'m',2), (541,'r',2), (542,'l',2), (543,'h',3),(544,'o',0),
-(956,'h',0), (957,'g',0), (958,'W',5), (959,'s',3), (960,'w',0),
-(961,'q',0), (962,'e',NULL), (963,'u',7), (964,'q',1), (965,'N',NULL),
-(966,'e',0), (967,'t',3), (968,'e',6), (969,'f',NULL), (970,'j',0),
-(971,'s',3), (972,'I',0), (973,'h',4), (974,'g',1), (975,'s',0),
-(976,'r',3), (977,'x',1), (978,'v',8), (979,'j',NULL), (980,'z',7),
-(981,'t',9), (982,'j',5), (983,'u',NULL), (984,'g',6), (985,'w',1),
-(986,'h',1), (987,'v',0), (988,'v',0), (989,'c',2), (990,'b',7),
-(991,'z',0), (992,'M',1), (993,'u',2), (994,'r',2), (995,'b',4),
-(996,'A',2), (997,'u',0), (998,'a',0), (999,'j',2), (1,'I',2);
-EXPLAIN
-SELECT * FROM t1
-WHERE (f1 < 535 OR f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,f4 f4 35 NULL # Using index condition; Using where
-SELECT * FROM t1
-WHERE (f1 < 535 OR f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ;
-f1 f4 f5
-994 r 2
-996 A 2
-998 a 0
-DROP TABLE t1;
-SET SESSION optimizer_switch='index_merge_sort_intersection=on';
diff --git a/mysql-test/r/index_intersect_innodb.result b/mysql-test/r/index_intersect_innodb.result
deleted file mode 100644
index 15244098170..00000000000
--- a/mysql-test/r/index_intersect_innodb.result
+++ /dev/null
@@ -1,1045 +0,0 @@
-SET SESSION STORAGE_ENGINE='InnoDB';
-DROP TABLE IF EXISTS t1,t2,t3,t4;
-DROP DATABASE IF EXISTS world;
-set names utf8;
-CREATE DATABASE world;
-use world;
-CREATE TABLE Country (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name)
-);
-CREATE TABLE City (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-);
-CREATE TABLE CountryLanguage (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-);
-SELECT COUNT(*) FROM Country;
-COUNT(*)
-239
-SELECT COUNT(*) FROM City;
-COUNT(*)
-4079
-SELECT COUNT(*) FROM CountryLanguage;
-COUNT(*)
-984
-CREATE INDEX Name ON City(Name);
-SET SESSION optimizer_switch='index_merge_sort_intersection=on';
-SELECT COUNT(*) FROM City;
-COUNT(*)
-4079
-SELECT COUNT(*) FROM City WHERE Name LIKE 'C%';
-COUNT(*)
-281
-SELECT COUNT(*) FROM City WHERE Name LIKE 'M%';
-COUNT(*)
-301
-SELECT COUNT(*) FROM City WHERE Population > 1000000;
-COUNT(*)
-237
-SELECT COUNT(*) FROM City WHERE Population > 1500000;
-COUNT(*)
-129
-SELECT COUNT(*) FROM City WHERE Population > 300000;
-COUNT(*)
-1062
-SELECT COUNT(*) FROM City WHERE Population > 7000000;
-COUNT(*)
-14
-EXPLAIN
-SELECT * FROM City WHERE
-Name LIKE 'C%' AND Population > 1000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name Population,Name 4,35 NULL # Using sort_intersect(Population,Name); Using where
-EXPLAIN
-SELECT * FROM City WHERE
-Name LIKE 'M%' AND Population > 1500000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name Population,Name 4,35 NULL # Using sort_intersect(Population,Name); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Name LIKE 'M%' AND Population > 300000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name Name,Population 35,4 NULL # Using sort_intersect(Name,Population); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Name LIKE 'M%' AND Population > 7000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name Population,Name 4,35 NULL # Using sort_intersect(Population,Name); Using where
-SELECT * FROM City USE INDEX ()
-WHERE Name LIKE 'C%' AND Population > 1000000;
-ID Name Country Population
-1026 Calcutta [Kolkata] IND 4399819
-1027 Chennai (Madras) IND 3841396
-151 Chittagong BGD 1392860
-1892 Chongqing CHN 6351600
-1898 Chengdu CHN 3361500
-1900 Changchun CHN 2812000
-1910 Changsha CHN 1809800
-212 Curitiba BRA 1584232
-2258 Cali COL 2077386
-2485 Casablanca MAR 2940623
-2515 Ciudad de México MEX 8591309
-3539 Caracas VEN 1975294
-3795 Chicago USA 2896016
-608 Cairo EGY 6789479
-71 Córdoba ARG 1157507
-712 Cape Town ZAF 2352121
-926 Conakry GIN 1090610
-SELECT * FROM City
-WHERE Name LIKE 'C%' AND Population > 1000000;
-ID Name Country Population
-1026 Calcutta [Kolkata] IND 4399819
-1027 Chennai (Madras) IND 3841396
-151 Chittagong BGD 1392860
-1892 Chongqing CHN 6351600
-1898 Chengdu CHN 3361500
-1900 Changchun CHN 2812000
-1910 Changsha CHN 1809800
-212 Curitiba BRA 1584232
-2258 Cali COL 2077386
-2485 Casablanca MAR 2940623
-2515 Ciudad de México MEX 8591309
-3539 Caracas VEN 1975294
-3795 Chicago USA 2896016
-608 Cairo EGY 6789479
-71 Córdoba ARG 1157507
-712 Cape Town ZAF 2352121
-926 Conakry GIN 1090610
-SELECT * FROM City USE INDEX ()
-WHERE Name LIKE 'M%' AND Population > 1500000;
-ID Name Country Population
-1024 Mumbai (Bombay) IND 10500000
-131 Melbourne AUS 2865329
-1381 Mashhad IRN 1887405
-2259 Medellín COL 1861265
-3520 Minsk BLR 1674000
-3580 Moscow RUS 8389200
-653 Madrid ESP 2879052
-766 Manila PHL 1581082
-942 Medan IDN 1843919
-SELECT * FROM City
-WHERE Name LIKE 'M%' AND Population > 1500000;
-ID Name Country Population
-1024 Mumbai (Bombay) IND 10500000
-131 Melbourne AUS 2865329
-1381 Mashhad IRN 1887405
-2259 Medellín COL 1861265
-3520 Minsk BLR 1674000
-3580 Moscow RUS 8389200
-653 Madrid ESP 2879052
-766 Manila PHL 1581082
-942 Medan IDN 1843919
-SELECT * FROM City USE INDEX ()
-WHERE Name LIKE 'M%' AND Population > 300000;
-ID Name Country Population
-1024 Mumbai (Bombay) IND 10500000
-1042 Madurai IND 977856
-1051 Meerut IND 753778
-1074 Mysore IND 480692
-1081 Moradabad IND 429214
-1098 Malegaon IND 342595
-131 Melbourne AUS 2865329
-1366 Mosul IRQ 879000
-1381 Mashhad IRN 1887405
-1465 Milano ITA 1300977
-1559 Matsuyama JPN 466133
-1560 Matsudo JPN 461126
-1578 Machida JPN 364197
-1595 Miyazaki JPN 303784
-1810 Montréal CAN 1016376
-1816 Mississauga CAN 608072
-1882 Mombasa KEN 461753
-1945 Mudanjiang CHN 570000
-2005 Ma´anshan CHN 305421
-215 Manaus BRA 1255049
-223 Maceió BRA 786288
-2259 Medellín COL 1861265
-2267 Manizales COL 337580
-2300 Mbuji-Mayi COD 806475
-2348 Masan KOR 441242
-2440 Monrovia LBR 850000
-2454 Macao MAC 437500
-2487 Marrakech MAR 621914
-2491 Meknès MAR 460000
-250 Mauá BRA 375055
-2523 Monterrey MEX 1108499
-2526 Mexicali MEX 764902
-2530 Mérida MEX 703324
-2537 Morelia MEX 619958
-2554 Matamoros MEX 416428
-2557 Mazatlán MEX 380265
-256 Moji das Cruzes BRA 339194
-2698 Maputo MOZ 1018938
-2699 Matola MOZ 424662
-2711 Mandalay MMR 885300
-2712 Moulmein (Mawlamyine) MMR 307900
-2734 Managua NIC 959000
-2756 Mushin NGA 333200
-2757 Maiduguri NGA 320000
-2826 Multan PAK 1182441
-2975 Marseille FRA 798430
-3070 Munich [München] DEU 1194560
-3086 Mannheim DEU 307730
-3175 Mekka SAU 965700
-3176 Medina SAU 608300
-3214 Mogadishu SOM 997000
-3364 Mersin (Içel) TUR 587212
-3371 Malatya TUR 330312
-3434 Mykolajiv UKR 508000
-3435 Mariupol UKR 490000
-3438 Makijivka UKR 384000
-3492 Montevideo URY 1236000
-3520 Minsk BLR 1674000
-3522 Mogiljov BLR 356000
-3540 Maracaíbo VEN 1304776
-3545 Maracay VEN 444443
-3547 Maturín VEN 319726
-3580 Moscow RUS 8389200
-3622 Magnitogorsk RUS 427900
-3625 Murmansk RUS 376300
-3636 Mahat?kala RUS 332800
-3810 Memphis USA 650100
-3811 Milwaukee USA 596974
-3834 Mesa USA 396375
-3837 Minneapolis USA 382618
-3839 Miami USA 362470
-462 Manchester GBR 430000
-653 Madrid ESP 2879052
-658 Málaga ESP 530553
-661 Murcia ESP 353504
-766 Manila PHL 1581082
-77 Mar del Plata ARG 512880
-778 Makati PHL 444867
-781 Marikina PHL 391170
-783 Muntinlupa PHL 379310
-786 Malabon PHL 338855
-80 Merlo ARG 463846
-83 Moreno ARG 356993
-87 Morón ARG 349246
-942 Medan IDN 1843919
-947 Malang IDN 716862
-962 Manado IDN 332288
-963 Mataram IDN 306600
-SELECT * FROM City
-WHERE Name LIKE 'M%' AND Population > 300000;
-ID Name Country Population
-1024 Mumbai (Bombay) IND 10500000
-1042 Madurai IND 977856
-1051 Meerut IND 753778
-1074 Mysore IND 480692
-1081 Moradabad IND 429214
-1098 Malegaon IND 342595
-131 Melbourne AUS 2865329
-1366 Mosul IRQ 879000
-1381 Mashhad IRN 1887405
-1465 Milano ITA 1300977
-1559 Matsuyama JPN 466133
-1560 Matsudo JPN 461126
-1578 Machida JPN 364197
-1595 Miyazaki JPN 303784
-1810 Montréal CAN 1016376
-1816 Mississauga CAN 608072
-1882 Mombasa KEN 461753
-1945 Mudanjiang CHN 570000
-2005 Ma´anshan CHN 305421
-215 Manaus BRA 1255049
-223 Maceió BRA 786288
-2259 Medellín COL 1861265
-2267 Manizales COL 337580
-2300 Mbuji-Mayi COD 806475
-2348 Masan KOR 441242
-2440 Monrovia LBR 850000
-2454 Macao MAC 437500
-2487 Marrakech MAR 621914
-2491 Meknès MAR 460000
-250 Mauá BRA 375055
-2523 Monterrey MEX 1108499
-2526 Mexicali MEX 764902
-2530 Mérida MEX 703324
-2537 Morelia MEX 619958
-2554 Matamoros MEX 416428
-2557 Mazatlán MEX 380265
-256 Moji das Cruzes BRA 339194
-2698 Maputo MOZ 1018938
-2699 Matola MOZ 424662
-2711 Mandalay MMR 885300
-2712 Moulmein (Mawlamyine) MMR 307900
-2734 Managua NIC 959000
-2756 Mushin NGA 333200
-2757 Maiduguri NGA 320000
-2826 Multan PAK 1182441
-2975 Marseille FRA 798430
-3070 Munich [München] DEU 1194560
-3086 Mannheim DEU 307730
-3175 Mekka SAU 965700
-3176 Medina SAU 608300
-3214 Mogadishu SOM 997000
-3364 Mersin (Içel) TUR 587212
-3371 Malatya TUR 330312
-3434 Mykolajiv UKR 508000
-3435 Mariupol UKR 490000
-3438 Makijivka UKR 384000
-3492 Montevideo URY 1236000
-3520 Minsk BLR 1674000
-3522 Mogiljov BLR 356000
-3540 Maracaíbo VEN 1304776
-3545 Maracay VEN 444443
-3547 Maturín VEN 319726
-3580 Moscow RUS 8389200
-3622 Magnitogorsk RUS 427900
-3625 Murmansk RUS 376300
-3636 Mahat?kala RUS 332800
-3810 Memphis USA 650100
-3811 Milwaukee USA 596974
-3834 Mesa USA 396375
-3837 Minneapolis USA 382618
-3839 Miami USA 362470
-462 Manchester GBR 430000
-653 Madrid ESP 2879052
-658 Málaga ESP 530553
-661 Murcia ESP 353504
-766 Manila PHL 1581082
-77 Mar del Plata ARG 512880
-778 Makati PHL 444867
-781 Marikina PHL 391170
-783 Muntinlupa PHL 379310
-786 Malabon PHL 338855
-80 Merlo ARG 463846
-83 Moreno ARG 356993
-87 Morón ARG 349246
-942 Medan IDN 1843919
-947 Malang IDN 716862
-962 Manado IDN 332288
-963 Mataram IDN 306600
-SELECT * FROM City USE INDEX ()
-WHERE Name LIKE 'M%' AND Population > 7000000;
-ID Name Country Population
-1024 Mumbai (Bombay) IND 10500000
-3580 Moscow RUS 8389200
-SELECT * FROM City
-WHERE Name LIKE 'M%' AND Population > 7000000;
-ID Name Country Population
-1024 Mumbai (Bombay) IND 10500000
-3580 Moscow RUS 8389200
-SELECT COUNT(*) FROM City WHERE Name BETWEEN 'M' AND 'N';
-COUNT(*)
-301
-SELECT COUNT(*) FROM City WHERE Name BETWEEN 'G' AND 'J';
-COUNT(*)
-408
-SELECT COUNT(*) FROM City WHERE Name BETWEEN 'G' AND 'K';
-COUNT(*)
-512
-SELECT COUNT(*) FROM City WHERE Population > 1000000;
-COUNT(*)
-237
-SELECT COUNT(*) FROM City WHERE Population > 500000;
-COUNT(*)
-539
-SELECT COUNT(*) FROM City WHERE Country LIKE 'C%';
-COUNT(*)
-551
-SELECT COUNT(*) FROM City WHERE Country LIKE 'B%';
-COUNT(*)
-339
-EXPLAIN
-SELECT * FROM City
-WHERE Name BETWEEN 'M' AND 'N' AND Population > 1000000 AND Country LIKE 'C%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Population,Name,Country 4,35,3 NULL # Using sort_intersect(Population,Name,Country); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 1000000 AND Country LIKE 'B%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Population,Country,Name 4,3,35 NULL # Using sort_intersect(Population,Country,Name); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name,Country Name,Population,Country # NULL # Using sort_intersect(Name,Population,Country); Using where
-SELECT * FROM City USE INDEX ()
-WHERE Name BETWEEN 'M' AND 'N' AND Population > 1000000 AND Country LIKE 'C%';
-ID Name Country Population
-1810 Montréal CAN 1016376
-2259 Medellín COL 1861265
-SELECT * FROM City
-WHERE Name BETWEEN 'M' AND 'N' AND Population > 1000000 AND Country LIKE 'C%';
-ID Name Country Population
-1810 Montréal CAN 1016376
-2259 Medellín COL 1861265
-SELECT * FROM City USE INDEX ()
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 1000000 AND Country LIKE 'B%';
-ID Name Country Population
-217 Guarulhos BRA 1095874
-218 Goiânia BRA 1056330
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 1000000 AND Country LIKE 'B%';
-ID Name Country Population
-217 Guarulhos BRA 1095874
-218 Goiânia BRA 1056330
-SELECT * FROM City USE INDEX ()
-WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
-ID Name Country Population
-1895 Harbin CHN 4289800
-1904 Jinan CHN 2278100
-1905 Hangzhou CHN 2190500
-1914 Guiyang CHN 1465200
-1916 Hefei CHN 1369100
-1923 Jilin CHN 1040000
-1927 Hohhot CHN 916700
-1928 Handan CHN 840000
-1937 Huainan CHN 700000
-1938 Jixi CHN 683885
-1944 Jinzhou CHN 570000
-1950 Hegang CHN 520000
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
-ID Name Country Population
-1895 Harbin CHN 4289800
-1904 Jinan CHN 2278100
-1905 Hangzhou CHN 2190500
-1914 Guiyang CHN 1465200
-1916 Hefei CHN 1369100
-1923 Jilin CHN 1040000
-1927 Hohhot CHN 916700
-1928 Handan CHN 840000
-1937 Huainan CHN 700000
-1938 Jixi CHN 683885
-1944 Jinzhou CHN 570000
-1950 Hegang CHN 520000
-SELECT COUNT(*) FROM City WHERE ID BETWEEN 501 AND 1000;
-COUNT(*)
-500
-SELECT COUNT(*) FROM City WHERE ID BETWEEN 1 AND 500;
-COUNT(*)
-500
-SELECT COUNT(*) FROM City WHERE ID BETWEEN 2001 AND 2500;
-COUNT(*)
-500
-SELECT COUNT(*) FROM City WHERE ID BETWEEN 3701 AND 4000;
-COUNT(*)
-300
-SELECT COUNT(*) FROM City WHERE Population > 700000;
-COUNT(*)
-358
-SELECT COUNT(*) FROM City WHERE Population > 1000000;
-COUNT(*)
-237
-SELECT COUNT(*) FROM City WHERE Population > 300000;
-COUNT(*)
-1062
-SELECT COUNT(*) FROM City WHERE Population > 600000;
-COUNT(*)
-428
-SELECT COUNT(*) FROM City WHERE Country LIKE 'C%';
-COUNT(*)
-551
-SELECT COUNT(*) FROM City WHERE Country LIKE 'A%';
-COUNT(*)
-107
-SELECT COUNT(*) FROM City WHERE Country LIKE 'H%';
-COUNT(*)
-22
-SELECT COUNT(*) FROM City WHERE Country BETWEEN 'S' AND 'Z';
-COUNT(*)
-682
-EXPLAIN
-SELECT * FROM City
-WHERE ID BETWEEN 501 AND 1000 AND Population > 700000 AND Country LIKE 'C%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country PRIMARY,Country,Population 4,7,4 NULL # Using sort_intersect(PRIMARY,Country,Population); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ID BETWEEN 1 AND 500 AND Population > 1000000 AND Country LIKE 'A%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country PRIMARY,Population,Country 4,4,7 NULL # Using sort_intersect(PRIMARY,Population,Country); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ID BETWEEN 2001 AND 2500 AND Population > 300000 AND Country LIKE 'H%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country PRIMARY,Country 4,7 NULL # Using sort_intersect(PRIMARY,Country); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ID BETWEEN 3701 AND 4000 AND Population > 1000000
-AND Country BETWEEN 'S' AND 'Z';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country PRIMARY,Country,Population 4,7,4 NULL # Using sort_intersect(PRIMARY,Country,Population); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ID BETWEEN 3001 AND 4000 AND Population > 600000
-AND Country BETWEEN 'S' AND 'Z' ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country PRIMARY,Population,Country 4,4,7 NULL # Using sort_intersect(PRIMARY,Population,Country); Using where
-SELECT * FROM City USE INDEX ()
-WHERE ID BETWEEN 501 AND 1000 AND Population > 700000 AND Country LIKE 'C%';
-ID Name Country Population
-554 Santiago de Chile CHL 4703954
-SELECT * FROM City
-WHERE ID BETWEEN 501 AND 1000 AND Population > 700000 AND Country LIKE 'C%';
-ID Name Country Population
-554 Santiago de Chile CHL 4703954
-SELECT * FROM City USE INDEX ()
-WHERE ID BETWEEN 1 AND 500 AND Population > 1000000 AND Country LIKE 'A%';
-ID Name Country Population
-1 Kabul AFG 1780000
-126 Yerevan ARM 1248700
-130 Sydney AUS 3276207
-131 Melbourne AUS 2865329
-132 Brisbane AUS 1291117
-133 Perth AUS 1096829
-144 Baku AZE 1787800
-56 Luanda AGO 2022000
-69 Buenos Aires ARG 2982146
-70 La Matanza ARG 1266461
-71 Córdoba ARG 1157507
-SELECT * FROM City
-WHERE ID BETWEEN 1 AND 500 AND Population > 1000000 AND Country LIKE 'A%';
-ID Name Country Population
-1 Kabul AFG 1780000
-126 Yerevan ARM 1248700
-130 Sydney AUS 3276207
-131 Melbourne AUS 2865329
-132 Brisbane AUS 1291117
-133 Perth AUS 1096829
-144 Baku AZE 1787800
-56 Luanda AGO 2022000
-69 Buenos Aires ARG 2982146
-70 La Matanza ARG 1266461
-71 Córdoba ARG 1157507
-SELECT * FROM City USE INDEX ()
-WHERE ID BETWEEN 2001 AND 2500 AND Population > 300000 AND Country LIKE 'H%';
-ID Name Country Population
-2409 Zagreb HRV 706770
-SELECT * FROM City
-WHERE ID BETWEEN 2001 AND 2500 AND Population > 300000 AND Country LIKE 'H%';
-ID Name Country Population
-2409 Zagreb HRV 706770
-SELECT * FROM City USE INDEX ()
-WHERE ID BETWEEN 3701 AND 4000 AND Population > 700000
-AND Country BETWEEN 'S' AND 'Z';
-ID Name Country Population
-3769 Ho Chi Minh City VNM 3980000
-3770 Hanoi VNM 1410000
-3771 Haiphong VNM 783133
-3793 New York USA 8008278
-3794 Los Angeles USA 3694820
-3795 Chicago USA 2896016
-3796 Houston USA 1953631
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-3799 San Diego USA 1223400
-3800 Dallas USA 1188580
-3801 San Antonio USA 1144646
-3802 Detroit USA 951270
-3803 San Jose USA 894943
-3804 Indianapolis USA 791926
-3805 San Francisco USA 776733
-3806 Jacksonville USA 735167
-3807 Columbus USA 711470
-SELECT * FROM City
-WHERE ID BETWEEN 3701 AND 4000 AND Population > 700000
-AND Country BETWEEN 'S' AND 'Z';
-ID Name Country Population
-3769 Ho Chi Minh City VNM 3980000
-3770 Hanoi VNM 1410000
-3771 Haiphong VNM 783133
-3793 New York USA 8008278
-3794 Los Angeles USA 3694820
-3795 Chicago USA 2896016
-3796 Houston USA 1953631
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-3799 San Diego USA 1223400
-3800 Dallas USA 1188580
-3801 San Antonio USA 1144646
-3802 Detroit USA 951270
-3803 San Jose USA 894943
-3804 Indianapolis USA 791926
-3805 San Francisco USA 776733
-3806 Jacksonville USA 735167
-3807 Columbus USA 711470
-SELECT * FROM City USE INDEX ()
-WHERE ID BETWEEN 3001 AND 4000 AND Population > 600000
-AND Country BETWEEN 'S' AND 'Z' ;
-ID Name Country Population
-3048 Stockholm SWE 750348
-3173 Riyadh SAU 3324000
-3174 Jedda SAU 2046300
-3175 Mekka SAU 965700
-3176 Medina SAU 608300
-3197 Pikine SEN 855287
-3198 Dakar SEN 785071
-3207 Freetown SLE 850000
-3208 Singapore SGP 4017733
-3214 Mogadishu SOM 997000
-3224 Omdurman SDN 1271403
-3225 Khartum SDN 947483
-3226 Sharq al-Nil SDN 700887
-3250 Damascus SYR 1347000
-3251 Aleppo SYR 1261983
-3263 Taipei TWN 2641312
-3264 Kaohsiung TWN 1475505
-3265 Taichung TWN 940589
-3266 Tainan TWN 728060
-3305 Dar es Salaam TZA 1747000
-3320 Bangkok THA 6320174
-3349 Tunis TUN 690600
-3357 Istanbul TUR 8787958
-3358 Ankara TUR 3038159
-3359 Izmir TUR 2130359
-3360 Adana TUR 1131198
-3361 Bursa TUR 1095842
-3362 Gaziantep TUR 789056
-3363 Konya TUR 628364
-3425 Kampala UGA 890800
-3426 Kyiv UKR 2624000
-3427 Harkova [Harkiv] UKR 1500000
-3428 Dnipropetrovsk UKR 1103000
-3429 Donetsk UKR 1050000
-3430 Odesa UKR 1011000
-3431 Zaporizzja UKR 848000
-3432 Lviv UKR 788000
-3433 Kryvyi Rig UKR 703000
-3492 Montevideo URY 1236000
-3503 Toskent UZB 2117500
-3539 Caracas VEN 1975294
-3540 Maracaíbo VEN 1304776
-3541 Barquisimeto VEN 877239
-3542 Valencia VEN 794246
-3543 Ciudad Guayana VEN 663713
-3769 Ho Chi Minh City VNM 3980000
-3770 Hanoi VNM 1410000
-3771 Haiphong VNM 783133
-3793 New York USA 8008278
-3794 Los Angeles USA 3694820
-3795 Chicago USA 2896016
-3796 Houston USA 1953631
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-3799 San Diego USA 1223400
-3800 Dallas USA 1188580
-3801 San Antonio USA 1144646
-3802 Detroit USA 951270
-3803 San Jose USA 894943
-3804 Indianapolis USA 791926
-3805 San Francisco USA 776733
-3806 Jacksonville USA 735167
-3807 Columbus USA 711470
-3808 Austin USA 656562
-3809 Baltimore USA 651154
-3810 Memphis USA 650100
-SELECT * FROM City
-WHERE ID BETWEEN 3001 AND 4000 AND Population > 600000
-AND Country BETWEEN 'S' AND 'Z' ;
-ID Name Country Population
-3048 Stockholm SWE 750348
-3173 Riyadh SAU 3324000
-3174 Jedda SAU 2046300
-3175 Mekka SAU 965700
-3176 Medina SAU 608300
-3197 Pikine SEN 855287
-3198 Dakar SEN 785071
-3207 Freetown SLE 850000
-3208 Singapore SGP 4017733
-3214 Mogadishu SOM 997000
-3224 Omdurman SDN 1271403
-3225 Khartum SDN 947483
-3226 Sharq al-Nil SDN 700887
-3250 Damascus SYR 1347000
-3251 Aleppo SYR 1261983
-3263 Taipei TWN 2641312
-3264 Kaohsiung TWN 1475505
-3265 Taichung TWN 940589
-3266 Tainan TWN 728060
-3305 Dar es Salaam TZA 1747000
-3320 Bangkok THA 6320174
-3349 Tunis TUN 690600
-3357 Istanbul TUR 8787958
-3358 Ankara TUR 3038159
-3359 Izmir TUR 2130359
-3360 Adana TUR 1131198
-3361 Bursa TUR 1095842
-3362 Gaziantep TUR 789056
-3363 Konya TUR 628364
-3425 Kampala UGA 890800
-3426 Kyiv UKR 2624000
-3427 Harkova [Harkiv] UKR 1500000
-3428 Dnipropetrovsk UKR 1103000
-3429 Donetsk UKR 1050000
-3430 Odesa UKR 1011000
-3431 Zaporizzja UKR 848000
-3432 Lviv UKR 788000
-3433 Kryvyi Rig UKR 703000
-3492 Montevideo URY 1236000
-3503 Toskent UZB 2117500
-3539 Caracas VEN 1975294
-3540 Maracaíbo VEN 1304776
-3541 Barquisimeto VEN 877239
-3542 Valencia VEN 794246
-3543 Ciudad Guayana VEN 663713
-3769 Ho Chi Minh City VNM 3980000
-3770 Hanoi VNM 1410000
-3771 Haiphong VNM 783133
-3793 New York USA 8008278
-3794 Los Angeles USA 3694820
-3795 Chicago USA 2896016
-3796 Houston USA 1953631
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-3799 San Diego USA 1223400
-3800 Dallas USA 1188580
-3801 San Antonio USA 1144646
-3802 Detroit USA 951270
-3803 San Jose USA 894943
-3804 Indianapolis USA 791926
-3805 San Francisco USA 776733
-3806 Jacksonville USA 735167
-3807 Columbus USA 711470
-3808 Austin USA 656562
-3809 Baltimore USA 651154
-3810 Memphis USA 650100
-SET SESSION sort_buffer_size = 2048;
-EXPLAIN
-SELECT * FROM City WHERE
-Name LIKE 'C%' AND Population > 1000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name Population,Name 4,35 NULL # Using sort_intersect(Population,Name); Using where
-EXPLAIN
-SELECT * FROM City WHERE
-Name LIKE 'M%' AND Population > 1500000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name Population,Name 4,35 NULL # Using sort_intersect(Population,Name); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 1000000 AND Country LIKE 'B%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Population,Country,Name 4,3,35 NULL # Using sort_intersect(Population,Country,Name); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 500000 AND Country LIKE 'C%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Name,Population,Country 35,4,3 NULL # Using sort_intersect(Name,Population,Country); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ID BETWEEN 1 AND 500 AND Population > 1000000 AND Country LIKE 'A%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country PRIMARY,Population,Country 4,4,7 NULL # Using sort_intersect(PRIMARY,Population,Country); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ID BETWEEN 3001 AND 4000 AND Population > 600000
-AND Country BETWEEN 'S' AND 'Z';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country PRIMARY,Population,Country 4,4,7 NULL # Using sort_intersect(PRIMARY,Population,Country); Using where
-SELECT * FROM City WHERE
-Name LIKE 'C%' AND Population > 1000000;
-ID Name Country Population
-1026 Calcutta [Kolkata] IND 4399819
-1027 Chennai (Madras) IND 3841396
-151 Chittagong BGD 1392860
-1892 Chongqing CHN 6351600
-1898 Chengdu CHN 3361500
-1900 Changchun CHN 2812000
-1910 Changsha CHN 1809800
-212 Curitiba BRA 1584232
-2258 Cali COL 2077386
-2485 Casablanca MAR 2940623
-2515 Ciudad de México MEX 8591309
-3539 Caracas VEN 1975294
-3795 Chicago USA 2896016
-608 Cairo EGY 6789479
-71 Córdoba ARG 1157507
-712 Cape Town ZAF 2352121
-926 Conakry GIN 1090610
-SELECT * FROM City WHERE
-Name LIKE 'M%' AND Population > 1500000;
-ID Name Country Population
-1024 Mumbai (Bombay) IND 10500000
-131 Melbourne AUS 2865329
-1381 Mashhad IRN 1887405
-2259 Medellín COL 1861265
-3520 Minsk BLR 1674000
-3580 Moscow RUS 8389200
-653 Madrid ESP 2879052
-766 Manila PHL 1581082
-942 Medan IDN 1843919
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 700000 AND Country LIKE 'B%';
-ID Name Country Population
-217 Guarulhos BRA 1095874
-218 Goiânia BRA 1056330
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 500000 AND Country LIKE 'C%';
-ID Name Country Population
-1895 Harbin CHN 4289800
-1905 Hangzhou CHN 2190500
-1914 Guiyang CHN 1465200
-1916 Hefei CHN 1369100
-1927 Hohhot CHN 916700
-1928 Handan CHN 840000
-1937 Huainan CHN 700000
-1950 Hegang CHN 520000
-SELECT * FROM City
-WHERE ID BETWEEN 1 AND 500 AND Population > 1000000 AND Country LIKE 'A%';
-ID Name Country Population
-1 Kabul AFG 1780000
-56 Luanda AGO 2022000
-69 Buenos Aires ARG 2982146
-70 La Matanza ARG 1266461
-71 Córdoba ARG 1157507
-126 Yerevan ARM 1248700
-130 Sydney AUS 3276207
-131 Melbourne AUS 2865329
-132 Brisbane AUS 1291117
-133 Perth AUS 1096829
-144 Baku AZE 1787800
-SELECT * FROM City
-WHERE ID BETWEEN 3001 AND 4000 AND Population > 600000
-AND Country BETWEEN 'S' AND 'Z';
-ID Name Country Population
-3048 Stockholm SWE 750348
-3173 Riyadh SAU 3324000
-3174 Jedda SAU 2046300
-3175 Mekka SAU 965700
-3176 Medina SAU 608300
-3197 Pikine SEN 855287
-3198 Dakar SEN 785071
-3207 Freetown SLE 850000
-3208 Singapore SGP 4017733
-3214 Mogadishu SOM 997000
-3224 Omdurman SDN 1271403
-3225 Khartum SDN 947483
-3226 Sharq al-Nil SDN 700887
-3250 Damascus SYR 1347000
-3251 Aleppo SYR 1261983
-3263 Taipei TWN 2641312
-3264 Kaohsiung TWN 1475505
-3265 Taichung TWN 940589
-3266 Tainan TWN 728060
-3305 Dar es Salaam TZA 1747000
-3320 Bangkok THA 6320174
-3349 Tunis TUN 690600
-3357 Istanbul TUR 8787958
-3358 Ankara TUR 3038159
-3359 Izmir TUR 2130359
-3360 Adana TUR 1131198
-3361 Bursa TUR 1095842
-3362 Gaziantep TUR 789056
-3363 Konya TUR 628364
-3425 Kampala UGA 890800
-3426 Kyiv UKR 2624000
-3427 Harkova [Harkiv] UKR 1500000
-3428 Dnipropetrovsk UKR 1103000
-3429 Donetsk UKR 1050000
-3430 Odesa UKR 1011000
-3431 Zaporizzja UKR 848000
-3432 Lviv UKR 788000
-3433 Kryvyi Rig UKR 703000
-3492 Montevideo URY 1236000
-3503 Toskent UZB 2117500
-3539 Caracas VEN 1975294
-3540 Maracaíbo VEN 1304776
-3541 Barquisimeto VEN 877239
-3542 Valencia VEN 794246
-3543 Ciudad Guayana VEN 663713
-3769 Ho Chi Minh City VNM 3980000
-3770 Hanoi VNM 1410000
-3771 Haiphong VNM 783133
-3793 New York USA 8008278
-3794 Los Angeles USA 3694820
-3795 Chicago USA 2896016
-3796 Houston USA 1953631
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-3799 San Diego USA 1223400
-3800 Dallas USA 1188580
-3801 San Antonio USA 1144646
-3802 Detroit USA 951270
-3803 San Jose USA 894943
-3804 Indianapolis USA 791926
-3805 San Francisco USA 776733
-3806 Jacksonville USA 735167
-3807 Columbus USA 711470
-3808 Austin USA 656562
-3809 Baltimore USA 651154
-3810 Memphis USA 650100
-SET SESSION sort_buffer_size = default;
-DROP INDEX Country ON City;
-CREATE INDEX CountryID ON City(Country,ID);
-CREATE INDEX CountryName ON City(Country,Name);
-EXPLAIN
-SELECT * FROM City
-WHERE Country LIKE 'M%' AND Population > 1000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,CountryID,CountryName Population,CountryID 4,3 NULL # Using sort_intersect(Population,CountryID); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Country='CHN' AND Population > 1500000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,CountryID,CountryName Population,CountryID 4,3 NULL # Using sort_intersect(Population,CountryID); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Country='CHN' AND Population > 1500000 AND Name LIKE 'C%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name,CountryID,CountryName CountryName,Population 38,4 NULL # Using sort_intersect(CountryName,Population); Using where
-SELECT * FROM City USE INDEX ()
-WHERE Country LIKE 'M%' AND Population > 1000000;
-ID Name Country Population
-2464 Kuala Lumpur MYS 1297526
-2485 Casablanca MAR 2940623
-2515 Ciudad de México MEX 8591309
-2516 Guadalajara MEX 1647720
-2517 Ecatepec de Morelos MEX 1620303
-2518 Puebla MEX 1346176
-2519 Nezahualcóyotl MEX 1224924
-2520 Juárez MEX 1217818
-2521 Tijuana MEX 1212232
-2522 León MEX 1133576
-2523 Monterrey MEX 1108499
-2524 Zapopan MEX 1002239
-2698 Maputo MOZ 1018938
-2710 Rangoon (Yangon) MMR 3361700
-SELECT * FROM City
-WHERE Country LIKE 'M%' AND Population > 1000000;
-ID Name Country Population
-2464 Kuala Lumpur MYS 1297526
-2485 Casablanca MAR 2940623
-2515 Ciudad de México MEX 8591309
-2516 Guadalajara MEX 1647720
-2517 Ecatepec de Morelos MEX 1620303
-2518 Puebla MEX 1346176
-2519 Nezahualcóyotl MEX 1224924
-2520 Juárez MEX 1217818
-2521 Tijuana MEX 1212232
-2522 León MEX 1133576
-2523 Monterrey MEX 1108499
-2524 Zapopan MEX 1002239
-2698 Maputo MOZ 1018938
-2710 Rangoon (Yangon) MMR 3361700
-SELECT * FROM City USE INDEX ()
-WHERE Country='CHN' AND Population > 1500000;
-ID Name Country Population
-1890 Shanghai CHN 9696300
-1891 Peking CHN 7472000
-1892 Chongqing CHN 6351600
-1893 Tianjin CHN 5286800
-1894 Wuhan CHN 4344600
-1895 Harbin CHN 4289800
-1896 Shenyang CHN 4265200
-1897 Kanton [Guangzhou] CHN 4256300
-1898 Chengdu CHN 3361500
-1899 Nanking [Nanjing] CHN 2870300
-1900 Changchun CHN 2812000
-1901 Xi´an CHN 2761400
-1902 Dalian CHN 2697000
-1903 Qingdao CHN 2596000
-1904 Jinan CHN 2278100
-1905 Hangzhou CHN 2190500
-1906 Zhengzhou CHN 2107200
-1907 Shijiazhuang CHN 2041500
-1908 Taiyuan CHN 1968400
-1909 Kunming CHN 1829500
-1910 Changsha CHN 1809800
-1911 Nanchang CHN 1691600
-1912 Fuzhou CHN 1593800
-1913 Lanzhou CHN 1565800
-SELECT * FROM City
-WHERE Country='CHN' AND Population > 1500000;
-ID Name Country Population
-1890 Shanghai CHN 9696300
-1891 Peking CHN 7472000
-1892 Chongqing CHN 6351600
-1893 Tianjin CHN 5286800
-1894 Wuhan CHN 4344600
-1895 Harbin CHN 4289800
-1896 Shenyang CHN 4265200
-1897 Kanton [Guangzhou] CHN 4256300
-1898 Chengdu CHN 3361500
-1899 Nanking [Nanjing] CHN 2870300
-1900 Changchun CHN 2812000
-1901 Xi´an CHN 2761400
-1902 Dalian CHN 2697000
-1903 Qingdao CHN 2596000
-1904 Jinan CHN 2278100
-1905 Hangzhou CHN 2190500
-1906 Zhengzhou CHN 2107200
-1907 Shijiazhuang CHN 2041500
-1908 Taiyuan CHN 1968400
-1909 Kunming CHN 1829500
-1910 Changsha CHN 1809800
-1911 Nanchang CHN 1691600
-1912 Fuzhou CHN 1593800
-1913 Lanzhou CHN 1565800
-SELECT * FROM City USE INDEX ()
-WHERE Country='CHN' AND Population > 1500000 AND Name LIKE 'C%';
-ID Name Country Population
-1892 Chongqing CHN 6351600
-1898 Chengdu CHN 3361500
-1900 Changchun CHN 2812000
-1910 Changsha CHN 1809800
-SELECT * FROM City
-WHERE Country='CHN' AND Population > 1500000 AND Name LIKE 'C%';
-ID Name Country Population
-1892 Chongqing CHN 6351600
-1898 Chengdu CHN 3361500
-1900 Changchun CHN 2812000
-1910 Changsha CHN 1809800
-EXPLAIN
-SELECT * FROM City, Country
-WHERE City.Name LIKE 'C%' AND City.Population > 1000000 AND
-Country.Code=City.Country;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Name,CountryID,CountryName Population,Name 4,35 NULL # Using sort_intersect(Population,Name); Using where
-1 SIMPLE Country eq_ref PRIMARY PRIMARY 3 world.City.Country #
-DROP DATABASE world;
-use test;
-CREATE TABLE t1 (
-f1 int,
-f4 varchar(32),
-f5 int,
-PRIMARY KEY (f1),
-KEY (f4)
-);
-INSERT INTO t1 VALUES
-(5,'H',1), (9,'g',0), (527,'i',0), (528,'y',1), (529,'S',6),
-(530,'m',7), (531,'b',2), (532,'N',1), (533,'V',NULL), (534,'l',1),
-(535,'M',0), (536,'w',1), (537,'j',5), (538,'l',0), (539,'n',2),
-(540,'m',2), (541,'r',2), (542,'l',2), (543,'h',3),(544,'o',0),
-(956,'h',0), (957,'g',0), (958,'W',5), (959,'s',3), (960,'w',0),
-(961,'q',0), (962,'e',NULL), (963,'u',7), (964,'q',1), (965,'N',NULL),
-(966,'e',0), (967,'t',3), (968,'e',6), (969,'f',NULL), (970,'j',0),
-(971,'s',3), (972,'I',0), (973,'h',4), (974,'g',1), (975,'s',0),
-(976,'r',3), (977,'x',1), (978,'v',8), (979,'j',NULL), (980,'z',7),
-(981,'t',9), (982,'j',5), (983,'u',NULL), (984,'g',6), (985,'w',1),
-(986,'h',1), (987,'v',0), (988,'v',0), (989,'c',2), (990,'b',7),
-(991,'z',0), (992,'M',1), (993,'u',2), (994,'r',2), (995,'b',4),
-(996,'A',2), (997,'u',0), (998,'a',0), (999,'j',2), (1,'I',2);
-EXPLAIN
-SELECT * FROM t1
-WHERE (f1 < 535 OR f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge PRIMARY,f4 PRIMARY,f4 4,39 NULL # Using sort_intersect(PRIMARY,f4); Using where
-SELECT * FROM t1
-WHERE (f1 < 535 OR f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ;
-f1 f4 f5
-994 r 2
-996 A 2
-998 a 0
-DROP TABLE t1;
-SET SESSION optimizer_switch='index_merge_sort_intersection=on';
-SET SESSION STORAGE_ENGINE=DEFAULT;
diff --git a/mysql-test/r/index_merge_innodb.result b/mysql-test/r/index_merge_innodb.result
deleted file mode 100644
index 6a3ea839535..00000000000
--- a/mysql-test/r/index_merge_innodb.result
+++ /dev/null
@@ -1,830 +0,0 @@
-set @optimizer_switch_save= @@optimizer_switch;
-set optimizer_switch='index_merge_sort_intersection=off';
-#---------------- Index merge test 2 -------------------------------------------
-SET SESSION STORAGE_ENGINE = InnoDB;
-drop table if exists t1,t2;
-create table t1
-(
-key1 int not null,
-key2 int not null,
-INDEX i1(key1),
-INDEX i2(key2)
-);
-explain select * from t1 where key1 < 5 or key2 > 197;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i1,i2 i1,i2 4,4 NULL 8 Using sort_union(i1,i2); Using where
-select * from t1 where key1 < 5 or key2 > 197;
-key1 key2
-0 200
-1 199
-2 198
-3 197
-4 196
-explain select * from t1 where key1 < 3 or key2 > 195;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i1,i2 i1,i2 4,4 NULL 8 Using sort_union(i1,i2); Using where
-select * from t1 where key1 < 3 or key2 > 195;
-key1 key2
-0 200
-1 199
-2 198
-3 197
-4 196
-alter table t1 add str1 char (255) not null,
-add zeroval int not null default 0,
-add str2 char (255) not null,
-add str3 char (255) not null;
-update t1 set str1='aaa', str2='bbb', str3=concat(key2, '-', key1 div 2, '_' ,if(key1 mod 2 = 0, 'a', 'A'));
-alter table t1 add primary key (str1, zeroval, str2, str3);
-explain select * from t1 where key1 < 5 or key2 > 197;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i1,i2 i1,i2 4,4 NULL 8 Using sort_union(i1,i2); Using where
-select * from t1 where key1 < 5 or key2 > 197;
-key1 key2 str1 zeroval str2 str3
-4 196 aaa 0 bbb 196-2_a
-3 197 aaa 0 bbb 197-1_A
-2 198 aaa 0 bbb 198-1_a
-1 199 aaa 0 bbb 199-0_A
-0 200 aaa 0 bbb 200-0_a
-explain select * from t1 where key1 < 3 or key2 > 195;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i1,i2 i1,i2 4,4 NULL 8 Using sort_union(i1,i2); Using where
-select * from t1 where key1 < 3 or key2 > 195;
-key1 key2 str1 zeroval str2 str3
-4 196 aaa 0 bbb 196-2_a
-3 197 aaa 0 bbb 197-1_A
-2 198 aaa 0 bbb 198-1_a
-1 199 aaa 0 bbb 199-0_A
-0 200 aaa 0 bbb 200-0_a
-drop table t1;
-create table t1 (
-pk integer not null auto_increment primary key,
-key1 integer,
-key2 integer not null,
-filler char (200),
-index (key1),
-index (key2)
-);
-show warnings;
-Level Code Message
-explain select pk from t1 where key1 = 1 and key2 = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2 key1,key2 5,4 NULL 1 Using intersect(key1,key2); Using where; Using index
-select pk from t1 where key2 = 1 and key1 = 1;
-pk
-26
-27
-select pk from t1 ignore index(key1,key2) where key2 = 1 and key1 = 1;
-pk
-26
-27
-drop table t1;
-create table t1 (
-pk int primary key auto_increment,
-key1a int,
-key2a int,
-key1b int,
-key2b int,
-dummy1 int,
-dummy2 int,
-dummy3 int,
-dummy4 int,
-key3a int,
-key3b int,
-filler1 char (200),
-index i1(key1a, key1b),
-index i2(key2a, key2b),
-index i3(key3a, key3b)
-);
-create table t2 (a int);
-insert into t2 values (0),(1),(2),(3),(4),(NULL);
-insert into t1 (key1a, key1b, key2a, key2b, key3a, key3b)
-select A.a, B.a, C.a, D.a, C.a, D.a from t2 A,t2 B,t2 C, t2 D;
-insert into t1 (key1a, key1b, key2a, key2b, key3a, key3b)
-select key1a, key1b, key2a, key2b, key3a, key3b from t1;
-insert into t1 (key1a, key1b, key2a, key2b, key3a, key3b)
-select key1a, key1b, key2a, key2b, key3a, key3b from t1;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-select count(*) from t1;
-count(*)
-5184
-explain select count(*) from t1 where
-key1a = 2 and key1b is null and key2a = 2 and key2b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i1,i2 i1,i2 10,10 NULL REF Using intersect(i1,i2); Using where; Using index
-select count(*) from t1 where
-key1a = 2 and key1b is null and key2a = 2 and key2b is null;
-count(*)
-4
-explain select count(*) from t1 where
-key1a = 2 and key1b is null and key3a = 2 and key3b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i1,i3 i1,i3 10,10 NULL REF Using intersect(i1,i3); Using where; Using index
-select count(*) from t1 where
-key1a = 2 and key1b is null and key3a = 2 and key3b is null;
-count(*)
-4
-drop table t1,t2;
-create table t1 (
-id1 int,
-id2 date ,
-index idx2 (id1,id2),
-index idx1 (id2)
-);
-insert into t1 values(1,'20040101'), (2,'20040102');
-select * from t1 where id1 = 1 and id2= '20040101';
-id1 id2
-1 2004-01-01
-drop table t1;
-drop view if exists v1;
-CREATE TABLE t1 (
-`oid` int(11) unsigned NOT NULL auto_increment,
-`fk_bbk_niederlassung` int(11) unsigned NOT NULL,
-`fk_wochentag` int(11) unsigned NOT NULL,
-`uhrzeit_von` time NOT NULL COMMENT 'HH:MM',
-`uhrzeit_bis` time NOT NULL COMMENT 'HH:MM',
-`geloescht` tinyint(4) NOT NULL,
-`version` int(5) NOT NULL,
-PRIMARY KEY (`oid`),
-KEY `fk_bbk_niederlassung` (`fk_bbk_niederlassung`),
-KEY `fk_wochentag` (`fk_wochentag`),
-KEY `ix_version` (`version`)
-) DEFAULT CHARSET=latin1;
-insert into t1 values
-(1, 38, 1, '08:00:00', '13:00:00', 0, 1),
-(2, 38, 2, '08:00:00', '13:00:00', 0, 1),
-(3, 38, 3, '08:00:00', '13:00:00', 0, 1),
-(4, 38, 4, '08:00:00', '13:00:00', 0, 1),
-(5, 38, 5, '08:00:00', '13:00:00', 0, 1),
-(6, 38, 5, '08:00:00', '13:00:00', 1, 2),
-(7, 38, 3, '08:00:00', '13:00:00', 1, 2),
-(8, 38, 1, '08:00:00', '13:00:00', 1, 2),
-(9, 38, 2, '08:00:00', '13:00:00', 1, 2),
-(10, 38, 4, '08:00:00', '13:00:00', 1, 2),
-(11, 38, 1, '08:00:00', '13:00:00', 0, 3),
-(12, 38, 2, '08:00:00', '13:00:00', 0, 3),
-(13, 38, 3, '08:00:00', '13:00:00', 0, 3),
-(14, 38, 4, '08:00:00', '13:00:00', 0, 3),
-(15, 38, 5, '08:00:00', '13:00:00', 0, 3),
-(16, 38, 4, '08:00:00', '13:00:00', 0, 4),
-(17, 38, 5, '08:00:00', '13:00:00', 0, 4),
-(18, 38, 1, '08:00:00', '13:00:00', 0, 4),
-(19, 38, 2, '08:00:00', '13:00:00', 0, 4),
-(20, 38, 3, '08:00:00', '13:00:00', 0, 4),
-(21, 7, 1, '08:00:00', '13:00:00', 0, 1),
-(22, 7, 2, '08:00:00', '13:00:00', 0, 1),
-(23, 7, 3, '08:00:00', '13:00:00', 0, 1),
-(24, 7, 4, '08:00:00', '13:00:00', 0, 1),
-(25, 7, 5, '08:00:00', '13:00:00', 0, 1);
-create view v1 as
-select
-zeit1.oid AS oid,
-zeit1.fk_bbk_niederlassung AS fk_bbk_niederlassung,
-zeit1.fk_wochentag AS fk_wochentag,
-zeit1.uhrzeit_von AS uhrzeit_von,
-zeit1.uhrzeit_bis AS uhrzeit_bis,
-zeit1.geloescht AS geloescht,
-zeit1.version AS version
-from
-t1 zeit1
-where
-(zeit1.version =
-(select max(zeit2.version) AS `max(version)`
- from t1 zeit2
-where
-((zeit1.fk_bbk_niederlassung = zeit2.fk_bbk_niederlassung) and
-(zeit1.fk_wochentag = zeit2.fk_wochentag) and
-(zeit1.uhrzeit_von = zeit2.uhrzeit_von) and
-(zeit1.uhrzeit_bis = zeit2.uhrzeit_bis)
-)
-)
-)
-and (zeit1.geloescht = 0);
-select * from v1 where oid = 21;
-oid fk_bbk_niederlassung fk_wochentag uhrzeit_von uhrzeit_bis geloescht version
-21 7 1 08:00:00 13:00:00 0 1
-drop view v1;
-drop table t1;
-CREATE TABLE t1(
-t_cpac varchar(2) NOT NULL,
-t_vers varchar(4) NOT NULL,
-t_rele varchar(2) NOT NULL,
-t_cust varchar(4) NOT NULL,
-filler1 char(250) default NULL,
-filler2 char(250) default NULL,
-PRIMARY KEY (t_cpac,t_vers,t_rele,t_cust),
-UNIQUE KEY IX_4 (t_cust,t_cpac,t_vers,t_rele),
-KEY IX_5 (t_vers,t_rele,t_cust)
-);
-insert into t1 values
-('tm','2.5 ','a ',' ','',''), ('tm','2.5U','a ','stnd','',''),
-('da','3.3 ','b ',' ','',''), ('da','3.3U','b ','stnd','',''),
-('tl','7.6 ','a ',' ','',''), ('tt','7.6 ','a ',' ','',''),
-('bc','B61 ','a ',' ','',''), ('bp','B61 ','a ',' ','',''),
-('ca','B61 ','a ',' ','',''), ('ci','B61 ','a ',' ','',''),
-('cp','B61 ','a ',' ','',''), ('dm','B61 ','a ',' ','',''),
-('ec','B61 ','a ',' ','',''), ('ed','B61 ','a ',' ','',''),
-('fm','B61 ','a ',' ','',''), ('nt','B61 ','a ',' ','',''),
-('qm','B61 ','a ',' ','',''), ('tc','B61 ','a ',' ','',''),
-('td','B61 ','a ',' ','',''), ('tf','B61 ','a ',' ','',''),
-('tg','B61 ','a ',' ','',''), ('ti','B61 ','a ',' ','',''),
-('tp','B61 ','a ',' ','',''), ('ts','B61 ','a ',' ','',''),
-('wh','B61 ','a ',' ','',''), ('bc','B61U','a ','stnd','',''),
-('bp','B61U','a ','stnd','',''), ('ca','B61U','a ','stnd','',''),
-('ci','B61U','a ','stnd','',''), ('cp','B61U','a ','stnd','',''),
-('dm','B61U','a ','stnd','',''), ('ec','B61U','a ','stnd','',''),
-('fm','B61U','a ','stnd','',''), ('nt','B61U','a ','stnd','',''),
-('qm','B61U','a ','stnd','',''), ('tc','B61U','a ','stnd','',''),
-('td','B61U','a ','stnd','',''), ('tf','B61U','a ','stnd','',''),
-('tg','B61U','a ','stnd','',''), ('ti','B61U','a ','stnd','',''),
-('tp','B61U','a ','stnd','',''), ('ts','B61U','a ','stnd','',''),
-('wh','B61U','a ','stnd','','');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t_cpac` varchar(2) NOT NULL,
- `t_vers` varchar(4) NOT NULL,
- `t_rele` varchar(2) NOT NULL,
- `t_cust` varchar(4) NOT NULL,
- `filler1` char(250) DEFAULT NULL,
- `filler2` char(250) DEFAULT NULL,
- PRIMARY KEY (`t_cpac`,`t_vers`,`t_rele`,`t_cust`),
- UNIQUE KEY `IX_4` (`t_cust`,`t_cpac`,`t_vers`,`t_rele`),
- KEY `IX_5` (`t_vers`,`t_rele`,`t_cust`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-select t_vers,t_rele,t_cust,filler1 from t1 where t_vers = '7.6';
-t_vers t_rele t_cust filler1
-7.6 a
-7.6 a
-select t_vers,t_rele,t_cust,filler1 from t1 where t_vers = '7.6'
- and t_rele='a' and t_cust = ' ';
-t_vers t_rele t_cust filler1
-7.6 a
-7.6 a
-drop table t1;
-create table t1 (
-pk int(11) not null auto_increment,
-a int(11) not null default '0',
-b int(11) not null default '0',
-c int(11) not null default '0',
-filler1 datetime, filler2 varchar(15),
-filler3 longtext,
-kp1 varchar(4), kp2 varchar(7),
-kp3 varchar(2), kp4 varchar(4),
-kp5 varchar(7),
-filler4 char(1),
-primary key (pk),
-key idx1(a,b,c),
-key idx2(c),
-key idx3(kp1,kp2,kp3,kp4,kp5)
-) default charset=latin1;
-set @fill=NULL;
-SELECT COUNT(*) FROM t1 WHERE b = 0 AND a = 0 AND c = 13286427 AND
-kp1='279' AND kp2='ELM0678' AND kp3='6' AND kp4='10' AND kp5 = 'R ';
-COUNT(*)
-1
-drop table t1;
-create table t1
-(
-key1 int not null,
-key2 int not null default 0,
-key3 int not null default 0
-);
-insert into t1(key1) values (1),(2),(3),(4),(5),(6),(7),(8);
-set @d=8;
-insert into t1 (key1) select key1+@d from t1;
-set @d=@d*2;
-insert into t1 (key1) select key1+@d from t1;
-set @d=@d*2;
-insert into t1 (key1) select key1+@d from t1;
-set @d=@d*2;
-insert into t1 (key1) select key1+@d from t1;
-set @d=@d*2;
-insert into t1 (key1) select key1+@d from t1;
-set @d=@d*2;
-insert into t1 (key1) select key1+@d from t1;
-set @d=@d*2;
-insert into t1 (key1) select key1+@d from t1;
-set @d=@d*2;
-alter table t1 add index i2(key2);
-alter table t1 add index i3(key3);
-update t1 set key2=key1,key3=key1;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-explain select * from t1 where (key3 > 30 and key3<35) or (key2 >32 and key2 < 40);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i2,i3 i3,i2 4,4 NULL REF Using sort_union(i3,i2); Using where
-select * from t1 where (key3 > 30 and key3<35) or (key2 >32 and key2 < 40);
-key1 key2 key3
-31 31 31
-32 32 32
-33 33 33
-34 34 34
-35 35 35
-36 36 36
-37 37 37
-38 38 38
-39 39 39
-drop table t1;
-#
-# Bug#56423: Different count with SELECT and CREATE SELECT queries
-#
-CREATE TABLE t1 (
-a INT,
-b INT,
-c INT,
-d INT,
-PRIMARY KEY (a),
-KEY (c),
-KEY bd (b,d)
-);
-INSERT INTO t1 VALUES
-(1, 0, 1, 0),
-(2, 1, 1, 1),
-(3, 1, 1, 1),
-(4, 0, 1, 1);
-EXPLAIN
-SELECT a
-FROM t1
-WHERE c = 1 AND b = 1 AND d = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref c,bd bd 10 const,const 2 Using where
-CREATE TABLE t2 ( a INT )
-SELECT a
-FROM t1
-WHERE c = 1 AND b = 1 AND d = 1;
-SELECT * FROM t2;
-a
-2
-3
-DROP TABLE t1, t2;
-CREATE TABLE t1( a INT, b INT, KEY(a), KEY(b) );
-INSERT INTO t1 VALUES (1, 2), (1, 2), (1, 2), (1, 2);
-SELECT * FROM t1 FORCE INDEX(a, b) WHERE a = 1 AND b = 2;
-a b
-1 2
-1 2
-1 2
-1 2
-DROP TABLE t1;
-# Code coverage of fix.
-CREATE TABLE t1 ( a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT);
-INSERT INTO t1 (b) VALUES (1);
-UPDATE t1 SET b = 2 WHERE a = 1;
-SELECT * FROM t1;
-a b
-1 2
-CREATE TABLE t2 ( a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b VARCHAR(1) );
-INSERT INTO t2 (b) VALUES ('a');
-UPDATE t2 SET b = 'b' WHERE a = 1;
-SELECT * FROM t2;
-a b
-1 b
-DROP TABLE t1, t2;
-#---------------- 2-sweeps read Index merge test 2 -------------------------------
-SET SESSION STORAGE_ENGINE = InnoDB;
-drop table if exists t1;
-create table t1 (
-pk int primary key,
-key1 int,
-key2 int,
-filler char(200),
-filler2 char(200),
-index(key1),
-index(key2)
-);
-select * from t1 where (key1 >= 2 and key1 <= 10) or (pk >= 4 and pk <=8 );
-pk key1 key2 filler filler2
-2 2 2 filler-data filler-data-2
-3 3 3 filler-data filler-data-2
-9 9 9 filler-data filler-data-2
-10 10 10 filler-data filler-data-2
-4 4 4 filler-data filler-data-2
-5 5 5 filler-data filler-data-2
-6 6 6 filler-data filler-data-2
-7 7 7 filler-data filler-data-2
-8 8 8 filler-data filler-data-2
-set @maxv=1000;
-select * from t1 where
-(pk < 5) or (pk > 10 and pk < 15) or (pk >= 50 and pk < 55 ) or (pk > @maxv-10)
-or key1=18 or key1=60;
-pk key1 key2 filler filler2
-18 18 18 filler-data filler-data-2
-60 60 60 filler-data filler-data-2
-1 1 1 filler-data filler-data-2
-2 2 2 filler-data filler-data-2
-3 3 3 filler-data filler-data-2
-4 4 4 filler-data filler-data-2
-11 11 11 filler-data filler-data-2
-12 12 12 filler-data filler-data-2
-13 13 13 filler-data filler-data-2
-14 14 14 filler-data filler-data-2
-50 50 50 filler-data filler-data-2
-51 51 51 filler-data filler-data-2
-52 52 52 filler-data filler-data-2
-53 53 53 filler-data filler-data-2
-54 54 54 filler-data filler-data-2
-991 991 991 filler-data filler-data-2
-992 992 992 filler-data filler-data-2
-993 993 993 filler-data filler-data-2
-994 994 994 filler-data filler-data-2
-995 995 995 filler-data filler-data-2
-996 996 996 filler-data filler-data-2
-997 997 997 filler-data filler-data-2
-998 998 998 filler-data filler-data-2
-999 999 999 filler-data filler-data-2
-1000 1000 1000 filler-data filler-data-2
-select * from t1 where
-(pk < 5) or (pk > 10 and pk < 15) or (pk >= 50 and pk < 55 ) or (pk > @maxv-10)
-or key1 < 3 or key1 > @maxv-11;
-pk key1 key2 filler filler2
-990 990 990 filler-data filler-data-2
-1 1 1 filler-data filler-data-2
-2 2 2 filler-data filler-data-2
-3 3 3 filler-data filler-data-2
-4 4 4 filler-data filler-data-2
-11 11 11 filler-data filler-data-2
-12 12 12 filler-data filler-data-2
-13 13 13 filler-data filler-data-2
-14 14 14 filler-data filler-data-2
-50 50 50 filler-data filler-data-2
-51 51 51 filler-data filler-data-2
-52 52 52 filler-data filler-data-2
-53 53 53 filler-data filler-data-2
-54 54 54 filler-data filler-data-2
-991 991 991 filler-data filler-data-2
-992 992 992 filler-data filler-data-2
-993 993 993 filler-data filler-data-2
-994 994 994 filler-data filler-data-2
-995 995 995 filler-data filler-data-2
-996 996 996 filler-data filler-data-2
-997 997 997 filler-data filler-data-2
-998 998 998 filler-data filler-data-2
-999 999 999 filler-data filler-data-2
-1000 1000 1000 filler-data filler-data-2
-select * from t1 where
-(pk < 5) or (pk > 10 and pk < 15) or (pk >= 50 and pk < 55 ) or (pk > @maxv-10)
-or
-(key1 < 5) or (key1 > 10 and key1 < 15) or (key1 >= 50 and key1 < 55 ) or (key1 > @maxv-10);
-pk key1 key2 filler filler2
-1 1 1 filler-data filler-data-2
-2 2 2 filler-data filler-data-2
-3 3 3 filler-data filler-data-2
-4 4 4 filler-data filler-data-2
-11 11 11 filler-data filler-data-2
-12 12 12 filler-data filler-data-2
-13 13 13 filler-data filler-data-2
-14 14 14 filler-data filler-data-2
-50 50 50 filler-data filler-data-2
-51 51 51 filler-data filler-data-2
-52 52 52 filler-data filler-data-2
-53 53 53 filler-data filler-data-2
-54 54 54 filler-data filler-data-2
-991 991 991 filler-data filler-data-2
-992 992 992 filler-data filler-data-2
-993 993 993 filler-data filler-data-2
-994 994 994 filler-data filler-data-2
-995 995 995 filler-data filler-data-2
-996 996 996 filler-data filler-data-2
-997 997 997 filler-data filler-data-2
-998 998 998 filler-data filler-data-2
-999 999 999 filler-data filler-data-2
-1000 1000 1000 filler-data filler-data-2
-select * from t1 where
-(pk > 10 and pk < 15) or (pk >= 50 and pk < 55 )
-or
-(key1 < 5) or (key1 > @maxv-10);
-pk key1 key2 filler filler2
-1 1 1 filler-data filler-data-2
-2 2 2 filler-data filler-data-2
-3 3 3 filler-data filler-data-2
-4 4 4 filler-data filler-data-2
-991 991 991 filler-data filler-data-2
-992 992 992 filler-data filler-data-2
-993 993 993 filler-data filler-data-2
-994 994 994 filler-data filler-data-2
-995 995 995 filler-data filler-data-2
-996 996 996 filler-data filler-data-2
-997 997 997 filler-data filler-data-2
-998 998 998 filler-data filler-data-2
-999 999 999 filler-data filler-data-2
-1000 1000 1000 filler-data filler-data-2
-11 11 11 filler-data filler-data-2
-12 12 12 filler-data filler-data-2
-13 13 13 filler-data filler-data-2
-14 14 14 filler-data filler-data-2
-50 50 50 filler-data filler-data-2
-51 51 51 filler-data filler-data-2
-52 52 52 filler-data filler-data-2
-53 53 53 filler-data filler-data-2
-54 54 54 filler-data filler-data-2
-drop table t1;
-#---------------- Clustered PK ROR-index_merge tests -----------------------------
-SET SESSION STORAGE_ENGINE = InnoDB;
-drop table if exists t1;
-create table t1
-(
-pk1 int not null,
-pk2 int not null,
-key1 int not null,
-key2 int not null,
-pktail1ok int not null,
-pktail2ok int not null,
-pktail3bad int not null,
-pktail4bad int not null,
-pktail5bad int not null,
-pk2copy int not null,
-badkey int not null,
-filler1 char (200),
-filler2 char (200),
-key (key1),
-key (key2),
-/* keys with tails from CPK members */
-key (pktail1ok, pk1),
-key (pktail2ok, pk1, pk2),
-key (pktail3bad, pk2, pk1),
-key (pktail4bad, pk1, pk2copy),
-key (pktail5bad, pk1, pk2, pk2copy),
-primary key (pk1, pk2)
-);
-explain select * from t1 where pk1 = 1 and pk2 < 80 and key1=0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,key1 PRIMARY 8 NULL 10 Using where
-select * from t1 where pk1 = 1 and pk2 < 80 and key1=0;
-pk1 pk2 key1 key2 pktail1ok pktail2ok pktail3bad pktail4bad pktail5bad pk2copy badkey filler1 filler2
-1 10 0 0 0 0 0 0 0 10 0 filler-data-10 filler2
-1 11 0 0 0 0 0 0 0 11 0 filler-data-11 filler2
-1 12 0 0 0 0 0 0 0 12 0 filler-data-12 filler2
-1 13 0 0 0 0 0 0 0 13 0 filler-data-13 filler2
-1 14 0 0 0 0 0 0 0 14 0 filler-data-14 filler2
-1 15 0 0 0 0 0 0 0 15 0 filler-data-15 filler2
-1 16 0 0 0 0 0 0 0 16 0 filler-data-16 filler2
-1 17 0 0 0 0 0 0 0 17 0 filler-data-17 filler2
-1 18 0 0 0 0 0 0 0 18 0 filler-data-18 filler2
-1 19 0 0 0 0 0 0 0 19 0 filler-data-19 filler2
-explain select pk1,pk2 from t1 where key1 = 10 and key2=10 and 2*pk1+1 < 2*96+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2 key1,key2 4,4 NULL 1 Using intersect(key1,key2); Using where; Using index
-select pk1,pk2 from t1 where key1 = 10 and key2=10 and 2*pk1+1 < 2*96+1;
-pk1 pk2
-95 50
-95 51
-95 52
-95 53
-95 54
-95 55
-95 56
-95 57
-95 58
-95 59
-explain select * from t1 where badkey=1 and key1=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref key1 key1 4 const 100 Using where
-set @tmp_index_merge_ror_cpk=@@optimizer_switch;
-set optimizer_switch='extended_keys=off';
-explain select * from t1 where pk1 < 7500 and key1 = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge PRIMARY,key1 key1,PRIMARY 4,4 NULL ROWS Using intersect(key1,PRIMARY); Using where
-set optimizer_switch=@tmp_index_merge_ror_cpk;
-explain select * from t1 where pktail1ok=1 and key1=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,pktail1ok key1,pktail1ok 4,4 NULL 1 Using intersect(key1,pktail1ok); Using where
-explain select * from t1 where pktail2ok=1 and key1=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,pktail2ok key1,pktail2ok 4,4 NULL 1 Using intersect(key1,pktail2ok); Using where
-explain select * from t1 where (pktail2ok=1 and pk1< 50000) or key1=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge PRIMARY,key1,pktail2ok pktail2ok,key1 8,4 NULL 200 Using sort_union(pktail2ok,key1); Using where
-explain select * from t1 where pktail3bad=1 and key1=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref key1,pktail3bad key1 4 const 100 Using where
-explain select * from t1 where pktail4bad=1 and key1=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref key1,pktail4bad key1 4 const 100 Using where
-explain select * from t1 where pktail5bad=1 and key1=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref key1,pktail5bad key1 4 const 100 Using where
-explain select pk1,pk2,key1,key2 from t1 where key1 = 10 and key2=10 limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2 key1,key2 4,4 NULL 1 Using intersect(key1,key2); Using where; Using index
-select pk1,pk2,key1,key2 from t1 where key1 = 10 and key2=10 limit 10;
-pk1 pk2 key1 key2
-95 50 10 10
-95 51 10 10
-95 52 10 10
-95 53 10 10
-95 54 10 10
-95 55 10 10
-95 56 10 10
-95 57 10 10
-95 58 10 10
-95 59 10 10
-drop table t1;
-create table t1
-(
-RUNID varchar(22),
-SUBMITNR varchar(5),
-ORDERNR char(1),
-PROGRAMM varchar(8),
-TESTID varchar(4),
-UCCHECK char(1),
-ETEXT varchar(80),
-ETEXT_TYPE char(1),
-INFO char(1),
-SEVERITY tinyint(3),
-TADIRFLAG char(1),
-PRIMARY KEY (RUNID,SUBMITNR,ORDERNR,PROGRAMM,TESTID,UCCHECK),
-KEY `TVERM~KEY` (PROGRAMM,TESTID,UCCHECK)
-) DEFAULT CHARSET=latin1;
-update t1 set `ETEXT` = '', `ETEXT_TYPE`='', `INFO`='', `SEVERITY`='', `TADIRFLAG`=''
-WHERE
-`RUNID`= '' AND `SUBMITNR`= '' AND `ORDERNR`='' AND `PROGRAMM`='' AND
-`TESTID`='' AND `UCCHECK`='';
-drop table t1;
-#
-# Bug#50402 Optimizer producing wrong results when using Index Merge on InnoDB
-#
-CREATE TABLE t1 (f1 INT, PRIMARY KEY (f1));
-INSERT INTO t1 VALUES (2);
-CREATE TABLE t2 (f1 INT, f2 INT, f3 char(1),
-PRIMARY KEY (f1), KEY (f2), KEY (f3) );
-INSERT INTO t2 VALUES (1, 1, 'h'), (2, 3, 'h'), (3, 2, ''), (4, 2, '');
-SELECT t1.f1 FROM t1
-WHERE (SELECT COUNT(*) FROM t2 WHERE t2.f3 = 'h' AND t2.f2 = t1.f1) = 0 AND t1.f1 = 2;
-f1
-2
-EXPLAIN SELECT t1.f1 FROM t1
-WHERE (SELECT COUNT(*) FROM t2 WHERE t2.f3 = 'h' AND t2.f2 = t1.f1) = 0 AND t1.f1 = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 const PRIMARY PRIMARY 4 const 1 Using index
-2 SUBQUERY t2 index_merge f2,f3 f3,f2 2,5 NULL 1 Using intersect(f3,f2); Using where; Using index
-DROP TABLE t1,t2;
-#
-# BUG#56862/640419: Wrong result with sort_union index merge when one
-# of the merged index scans is the primary key scan
-#
-CREATE TABLE t1 (
-pk int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-a int,
-b int,
-INDEX idx(a))
-ENGINE=INNODB;
-INSERT INTO t1(a,b) VALUES
-(11, 1100), (2, 200), (1, 100), (14, 1400), (5, 500),
-(3, 300), (17, 1700), (4, 400), (12, 1200), (8, 800),
-(6, 600), (18, 1800), (9, 900), (10, 1000), (7, 700),
-(13, 1300), (15, 1500), (19, 1900), (16, 1600), (20, 2000);
-INSERT INTO t1(a,b) SELECT a+20, b+2000 FROM t1;
-INSERT INTO t1(a,b) SELECT a+40, b+4000 FROM t1;
-INSERT INTO t1(a,b) SELECT a+80, b+8000 FROM t1;
-INSERT INTO t1(a,b) SELECT a,b FROM t1;
-INSERT INTO t1(a,b) SELECT a,b FROM t1;
-INSERT INTO t1(a,b) SELECT a,b FROM t1;
-INSERT INTO t1(a,b) SELECT a,b FROM t1;
-INSERT INTO t1(a,b) SELECT a,b FROM t1;
-INSERT INTO t1(a,b) SELECT a,b FROM t1;
-INSERT INTO t1(a,b) SELECT a,b FROM t1;
-INSERT INTO t1(a,b) SELECT a,b FROM t1;
-INSERT INTO t1(a,b) SELECT a,b FROM t1;
-INSERT INTO t1(a,b) SELECT a,b FROM t1;
-INSERT INTO t1 VALUES (1000000, 0, 0);
-SET SESSION sort_buffer_size = 1024*36;
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-EXPLAIN
-SELECT COUNT(*) FROM
-(SELECT * FROM t1 FORCE INDEX(primary,idx)
-WHERE a BETWEEN 2 AND 7 OR pk=1000000) AS t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 6145
-2 DERIVED t1 index_merge PRIMARY,idx idx,PRIMARY 5,4 NULL 6145 Using sort_union(idx,PRIMARY); Using where
-SELECT COUNT(*) FROM
-(SELECT * FROM t1 FORCE INDEX(primary,idx)
-WHERE a BETWEEN 2 AND 7 OR pk=1000000) AS t;
-COUNT(*)
-6145
-EXPLAIN
-SELECT COUNT(*) FROM
-(SELECT * FROM t1 IGNORE INDEX(idx)
-WHERE a BETWEEN 2 AND 7 OR pk=1000000) AS t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL #
-2 DERIVED t1 ALL PRIMARY NULL NULL NULL # Using where
-SELECT COUNT(*) FROM
-(SELECT * FROM t1 IGNORE INDEX(idx)
-WHERE a BETWEEN 2 AND 7 OR pk=1000000) AS t;
-COUNT(*)
-6145
-DROP TABLE t1;
-set optimizer_switch=@tmp_optimizer_switch;
-#
-# Testcase Backport: BUG#48093: 6.0 Server not processing equivalent IN clauses properly
-# with Innodb tables
-#
-CREATE TABLE t1 (
-i int(11) DEFAULT NULL,
-v1 varchar(1) DEFAULT NULL,
-v2 varchar(20) DEFAULT NULL,
-KEY i (i),
-KEY v (v1,i)
-) ENGINE=innodb;
-INSERT INTO t1 VALUES (1,'f','no');
-INSERT INTO t1 VALUES (2,'u','yes-u');
-INSERT INTO t1 VALUES (2,'h','yes-h');
-INSERT INTO t1 VALUES (3,'d','no');
-
-SELECT v2
-FROM t1
-WHERE v1 IN ('f', 'd', 'h', 'u' ) AND i = 2;
-v2
-yes-u
-yes-h
-
-# Should not use index_merge
-EXPLAIN
-SELECT v2
-FROM t1
-WHERE v1 IN ('f', 'd', 'h', 'u' ) AND i = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref i,v i 5 const 2 Using where
-DROP TABLE t1;
-#
-# BUG#1006164: Multi-table DELETE that uses innodb + index_merge/intersect may fail to delete rows
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (
-pk int auto_increment,
-zone_id int,
-modified tinyint,
-primary key(pk),
-key (zone_id),
-key (modified)
-) engine=innodb;
-insert into t1 (zone_id, modified) select 0,0 from t0 A, t0 B, t0 C, t0 D;
-update t1 set zone_id=487, modified=9 where pk=7259;
-update t1 set zone_id=487, modified=9 where pk=7260;
-update t1 set zone_id=830, modified=9 where pk=8434;
-update t1 set zone_id=830, modified=9 where pk=8435;
-update t1 set zone_id=830, modified=9 where pk=8436;
-update t1 set zone_id=830, modified=9 where pk=8437;
-select * from t1 where t1.zone_id=830 AND modified=9;
-pk zone_id modified
-8434 830 9
-8435 830 9
-8436 830 9
-8437 830 9
-begin;
-DELETE t1 FROM t1 WHERE t1.zone_id=830 AND modified=9;
-commit;
-select * from t1 where t1.zone_id=830 AND modified=9;
-pk zone_id modified
-drop table t0, t1;
-#
-# MDEV-376: Wrong result (missing rows) with index_merge+index_merge_intersection, join
-#
-CREATE TABLE t1 (
-a INT, b CHAR(1), c CHAR(1), KEY(a), KEY(b)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (8,'v','v'),(8,'m','m'),(9,'d','d');
-SELECT ta.* FROM t1 AS ta, t1 AS tb
-WHERE ( tb.b != ta.b OR tb.a = ta.a )
-AND ( tb.b = ta.c OR tb.b = ta.b );
-a b c
-8 v v
-8 m m
-9 d d
-DROP TABLE t1;
-set optimizer_switch= @optimizer_switch_save;
-#
-# MDEV-10927: Crash When Using sort_union Optimization
-#
-set @tmp_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='index_merge_sort_intersection=on';
-SET SESSION sort_buffer_size = 1024;
-create table t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-col1 int(11) NOT NULL,
-col2 int(11) NOT NULL,
-col3 int(11) NOT NULL,
-key2 int(11) NOT NULL,
-col4 int(11) NOT NULL,
-key1 int(11) NOT NULL,
-PRIMARY KEY (pk),
-KEY key1 (key1),
-KEY key2 (key2)
-) ENGINE=InnoDB AUTO_INCREMENT=12860259 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-create table t2(a int);
-insert into t2 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t3(a int);
-insert into t3 select A.a + B.a* 10 + C.a * 100 + D.a*1000 from t2 A, t2 B, t2 C, t2 D;
-insert into t1 (key1, key2, col1,col2,col3,col4)
-select a,a, a,a,a,a from t3;
-SELECT sum(col1) FROM t1 FORCE INDEX (key1,key2) WHERE (key1 between 10 and 8191+10) or (key2= 5);
-sum(col1)
-33632261
-drop table t1,t2,t3;
-set optimizer_switch=@tmp_optimizer_switch;
diff --git a/mysql-test/r/index_merge_myisam.result b/mysql-test/r/index_merge_myisam.result
deleted file mode 100644
index 992e1d831b5..00000000000
--- a/mysql-test/r/index_merge_myisam.result
+++ /dev/null
@@ -1,1717 +0,0 @@
-set @optimizer_switch_save= @@optimizer_switch;
-set optimizer_switch='index_merge_sort_intersection=off';
-#---------------- Index merge test 1 -------------------------------------------
-SET SESSION STORAGE_ENGINE = MyISAM;
-drop table if exists t0, t1, t2, t3, t4;
-create table t0
-(
-key1 int not null,
-INDEX i1(key1)
-);
-alter table t0 add key2 int not null, add index i2(key2);
-alter table t0 add key3 int not null, add index i3(key3);
-alter table t0 add key4 int not null, add index i4(key4);
-alter table t0 add key5 int not null, add index i5(key5);
-alter table t0 add key6 int not null, add index i6(key6);
-alter table t0 add key7 int not null, add index i7(key7);
-alter table t0 add key8 int not null, add index i8(key8);
-update t0 set key2=key1,key3=key1,key4=key1,key5=key1,key6=key1,key7=key1,key8=1024-key1;
-analyze table t0;
-Table Op Msg_type Msg_text
-test.t0 analyze status OK
-explain select * from t0 where key1 < 3 or key1 > 1020;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 range i1 i1 4 NULL 78 Using index condition; Using where
-explain
-select * from t0 where key1 < 3 or key2 > 1020;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2 i1,i2 4,4 NULL 45 Using sort_union(i1,i2); Using where
-select * from t0 where key1 < 3 or key2 > 1020;
-key1 key2 key3 key4 key5 key6 key7 key8
-1 1 1 1 1 1 1 1023
-2 2 2 2 2 2 2 1022
-1021 1021 1021 1021 1021 1021 1021 3
-1022 1022 1022 1022 1022 1022 1022 2
-1023 1023 1023 1023 1023 1023 1023 1
-1024 1024 1024 1024 1024 1024 1024 0
-select * from t0 where key1=1022;
-key1 key2 key3 key4 key5 key6 key7 key8
-1022 1022 1022 1022 1022 1022 1022 2
-explain select * from t0 where key1 < 3 or key2 <4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2 i1,i2 4,4 NULL 7 Using sort_union(i1,i2); Using where
-explain
-select * from t0 where (key1 > 30 and key1<35) or (key2 >32 and key2 < 40);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2 i1,i2 4,4 NULL 11 Using sort_union(i1,i2); Using where
-select * from t0 where (key1 > 30 and key1<35) or (key2 >32 and key2 < 40);
-key1 key2 key3 key4 key5 key6 key7 key8
-31 31 31 31 31 31 31 993
-32 32 32 32 32 32 32 992
-33 33 33 33 33 33 33 991
-34 34 34 34 34 34 34 990
-35 35 35 35 35 35 35 989
-36 36 36 36 36 36 36 988
-37 37 37 37 37 37 37 987
-38 38 38 38 38 38 38 986
-39 39 39 39 39 39 39 985
-explain select * from t0 ignore index (i2) where key1 < 3 or key2 <4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL i1 NULL NULL NULL 1024 Using where
-explain select * from t0 where (key1 < 3 or key2 <4) and key3 = 50;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ref i1,i2,i3 i3 4 const 1 Using where
-explain select * from t0 use index (i1,i2) where (key1 < 3 or key2 <4) and key3 = 50;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2 i1,i2 4,4 NULL 7 Using sort_union(i1,i2); Using where
-explain select * from t0 where (key1 > 1 or key2 > 2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL i1,i2 NULL NULL NULL 1024 Using where
-explain select * from t0 force index (i1,i2) where (key1 > 1 or key2 > 2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2 i1,i2 4,4 NULL 1024 Using sort_union(i1,i2); Using where
-explain
-select * from t0 where key1<3 or key2<3 or (key1>5 and key1<8) or
-(key1>10 and key1<12) or (key2>100 and key2<110);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2 i1,i2 4,4 NULL 17 Using sort_union(i1,i2); Using where
-explain select * from t0 where key2 = 45 or key1 <=> null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 range i1,i2 i2 4 NULL 1 Using index condition
-explain select * from t0 where key2 = 45 or key1 is not null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL i1,i2 NULL NULL NULL 1024 Using where
-explain select * from t0 where key2 = 45 or key1 is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ref i2 i2 4 const 1
-explain select * from t0 where key2=10 or key3=3 or key4 <=> null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i2,i3,i4 i2,i3 4,4 NULL 2 Using union(i2,i3); Using where
-explain select * from t0 where key2=10 or key3=3 or key4 is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i2,i3 i2,i3 4,4 NULL 2 Using union(i2,i3); Using where
-explain select key1 from t0 where (key1 <=> null) or (key2 < 5) or
-(key3=10) or (key4 <=> null);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2,i3,i4 i2,i3 4,4 NULL 6 Using sort_union(i2,i3); Using where
-explain select key1 from t0 where (key1 <=> null) or (key1 < 5) or
-(key3=10) or (key4 <=> null);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i3,i4 i1,i3 4,4 NULL 6 Using sort_union(i1,i3); Using where
-explain select * from t0 where
-(key1 < 3 or key2 < 3) and (key3 < 4 or key4 < 4) and (key5 < 5 or key6 < 5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2,i3,i4,i5,i6 i1,i2 4,4 NULL 6 Using sort_union(i1,i2); Using where
-explain
-select * from t0 where (key1 < 3 or key2 < 6) and (key1 < 7 or key3 < 4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2,i3 i1,i2 4,4 NULL 9 Using sort_union(i1,i2); Using where
-select * from t0 where (key1 < 3 or key2 < 6) and (key1 < 7 or key3 < 4);
-key1 key2 key3 key4 key5 key6 key7 key8
-1 1 1 1 1 1 1 1023
-2 2 2 2 2 2 2 1022
-3 3 3 3 3 3 3 1021
-4 4 4 4 4 4 4 1020
-5 5 5 5 5 5 5 1019
-explain select * from t0 where
-(key1 < 3 or key2 < 3) and (key3 < 4 or key4 < 4) and (key5 < 2 or key6 < 2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2,i3,i4,i5,i6 i1,i2 4,4 NULL 6 Using sort_union(i1,i2); Using where
-explain select * from t0 where
-(key1 < 3 or key2 < 3) and (key3 < 100);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2,i3 i1,i2 4,4 NULL 6 Using sort_union(i1,i2); Using where
-explain select * from t0 where
-(key1 < 3 or key2 < 3) and (key3 < 1000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2,i3 i1,i2 4,4 NULL 6 Using sort_union(i1,i2); Using where
-explain select * from t0 where
-((key1 < 4 or key2 < 4) and (key2 <5 or key3 < 4))
-or
-key2 > 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL i1,i2,i3 NULL NULL NULL 1024 Using where
-explain select * from t0 where
-((key1 < 4 or key2 < 4) and (key2 <5 or key3 < 4))
-or
-key1 < 7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2,i3 i1,i2 4,4 NULL 10 Using sort_union(i1,i2); Using where
-select * from t0 where
-((key1 < 4 or key2 < 4) and (key2 <5 or key3 < 4))
-or
-key1 < 7;
-key1 key2 key3 key4 key5 key6 key7 key8
-1 1 1 1 1 1 1 1023
-2 2 2 2 2 2 2 1022
-3 3 3 3 3 3 3 1021
-4 4 4 4 4 4 4 1020
-5 5 5 5 5 5 5 1019
-6 6 6 6 6 6 6 1018
-explain select * from t0 where
-((key1 < 4 or key2 < 4) and (key3 <5 or key5 < 4))
-or
-((key5 < 5 or key6 < 6) and (key7 <7 or key8 < 4));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2,i3,i5,i6,i7,i8 i1,i2,i5,i6 4,4,4,4 NULL 19 Using sort_union(i1,i2,i5,i6); Using where
-explain select * from t0 where
-((key3 <5 or key5 < 4) and (key1 < 4 or key2 < 4))
-or
-((key7 <7 or key8 < 4) and (key5 < 5 or key6 < 6));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2,i3,i5,i6,i7,i8 i3,i5,i7,i8 4,4,4,4 NULL 20 Using sort_union(i3,i5,i7,i8); Using where
-explain select * from t0 where
-((key3 <5 or key5 < 4) and (key1 < 4 or key2 < 4))
-or
-((key3 <7 or key5 < 2) and (key5 < 5 or key6 < 6));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2,i3,i5,i6 i3,i5 4,4 NULL 11 Using sort_union(i3,i5); Using where
-explain select * from t0 where
-((key3 <5 or key5 < 4) and (key1 < 4 or key2 < 4))
-or
-(((key3 <7 and key7 < 6) or key5 < 2) and (key5 < 5 or key6 < 6));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2,i3,i5,i6,i7 i3,i5 4,4 NULL 11 Using sort_union(i3,i5); Using where
-explain select * from t0 where
-((key3 <5 or key5 < 4) and (key1 < 4 or key2 < 4))
-or
-((key3 >=5 or key5 < 2) and (key5 < 5 or key6 < 6));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL i1,i2,i3,i5,i6 NULL NULL NULL 1024 Using where
-explain select * from t0 force index(i1, i2, i3, i4, i5, i6 ) where
-((key3 <5 or key5 < 4) and (key1 < 4 or key2 < 4))
-or
-((key3 >=5 or key5 < 2) and (key5 < 5 or key6 < 6));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2,i3,i5,i6 i3,i5 0,4 NULL 1024 Using sort_union(i3,i5); Using where
-select * from t0 where key1 < 5 or key8 < 4 order by key1;
-key1 key2 key3 key4 key5 key6 key7 key8
-1 1 1 1 1 1 1 1023
-2 2 2 2 2 2 2 1022
-3 3 3 3 3 3 3 1021
-4 4 4 4 4 4 4 1020
-1021 1021 1021 1021 1021 1021 1021 3
-1022 1022 1022 1022 1022 1022 1022 2
-1023 1023 1023 1023 1023 1023 1023 1
-1024 1024 1024 1024 1024 1024 1024 0
-explain
-select * from t0 where key1 < 5 or key8 < 4 order by key1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i8 i1,i8 4,4 NULL 9 Using sort_union(i1,i8); Using where; Using filesort
-create table t2 like t0;
-insert into t2 select * from t0;
-alter table t2 add index i1_3(key1, key3);
-alter table t2 add index i2_3(key2, key3);
-alter table t2 drop index i1;
-alter table t2 drop index i2;
-alter table t2 add index i321(key3, key2, key1);
-explain select key3 from t2 where key1 = 100 or key2 = 100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index_merge i1_3,i2_3 i1_3,i2_3 4,4 NULL 2 Using sort_union(i1_3,i2_3); Using where
-explain select key3 from t2 where key1 < 500 or key2 < 500;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index i1_3,i2_3 i321 12 NULL 1024 Using where; Using index
-explain select key7 from t2 where key1 <100 or key2 < 100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index_merge i1_3,i2_3 i1_3,i2_3 4,4 NULL 188 Using sort_union(i1_3,i2_3); Using where
-create table t4 (
-key1a int not null,
-key1b int not null,
-key2 int not null,
-key2_1 int not null,
-key2_2 int not null,
-key3 int not null,
-index i1a (key1a, key1b),
-index i1b (key1b, key1a),
-index i2_1(key2, key2_1),
-index i2_2(key2, key2_1)
-);
-Warnings:
-Note 1831 Duplicate index `i2_2`. This is deprecated and will be disallowed in a future release
-insert into t4 select key1,key1,key1 div 10, key1 % 10, key1 % 10, key1 from t0;
-select * from t4 where key1a = 3 or key1b = 4;
-key1a key1b key2 key2_1 key2_2 key3
-3 3 0 3 3 3
-4 4 0 4 4 4
-explain select * from t4 where key1a = 3 or key1b = 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 index_merge i1a,i1b i1a,i1b 4,4 NULL 2 Using sort_union(i1a,i1b); Using where
-explain select * from t4 where key2 = 1 and (key2_1 = 1 or key3 = 5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ref i2_1,i2_2 i2_1 4 const 10 Using where
-explain select * from t4 where key2 = 1 and (key2_1 = 1 or key2_2 = 5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ref i2_1,i2_2 i2_1 4 const 10 Using where
-explain select * from t4 where key2_1 = 1 or key2_2 = 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 1024 Using where
-create table t1 like t0;
-insert into t1 select * from t0;
-explain select * from t0 left join t1 on (t0.key1=t1.key1)
-where t0.key1=3 or t0.key2=4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2 i1,i2 4,4 NULL 2 Using union(i1,i2); Using where
-1 SIMPLE t1 ref i1 i1 4 test.t0.key1 1
-select * from t0 left join t1 on (t0.key1=t1.key1)
-where t0.key1=3 or t0.key2=4;
-key1 key2 key3 key4 key5 key6 key7 key8 key1 key2 key3 key4 key5 key6 key7 key8
-3 3 3 3 3 3 3 1021 3 3 3 3 3 3 3 1021
-4 4 4 4 4 4 4 1020 4 4 4 4 4 4 4 1020
-explain
-select * from t0,t1 where (t0.key1=t1.key1) and ( t0.key1=3 or t0.key2=4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2 i1,i2 4,4 NULL 2 Using union(i1,i2); Using where
-1 SIMPLE t1 ref i1 i1 4 test.t0.key1 1
-explain
-select * from t0,t1 where (t0.key1=t1.key1) and
-(t0.key1=3 or t0.key2=4) and t1.key1<200;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2 i1,i2 4,4 NULL 2 Using union(i1,i2); Using where
-1 SIMPLE t1 ref i1 i1 4 test.t0.key1 1
-explain
-select * from t0,t1 where (t0.key1=t1.key1) and
-(t0.key1=3 or t0.key2<4) and t1.key1=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ref i1,i2 i1 4 const 1 Using where
-1 SIMPLE t1 ref i1 i1 4 const 1
-explain select * from t0,t1 where t0.key1 = 5 and
-(t1.key1 = t0.key1 or t1.key8 = t0.key1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ref i1 i1 4 const 1
-1 SIMPLE t1 index_merge i1,i8 i1,i8 4,4 NULL 2 Using union(i1,i8); Using where; Using join buffer (flat, BNL join)
-explain select * from t0,t1 where t0.key1 < 3 and
-(t1.key1 = t0.key1 or t1.key8 = t0.key1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 range i1 i1 4 NULL 3 Using index condition
-1 SIMPLE t1 ALL i1,i8 NULL NULL NULL 1024 Range checked for each record (index map: 0x81)
-explain select * from t1 where key1=3 or key2=4
-union select * from t1 where key1<4 or key3=5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index_merge i1,i2 i1,i2 4,4 NULL 2 Using union(i1,i2); Using where
-2 UNION t1 index_merge i1,i3 i1,i3 4,4 NULL 5 Using sort_union(i1,i3); Using where
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-explain select * from (select * from t1 where key1 = 3 or key2 =3) as Z where key8 >5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 Using where
-2 DERIVED t1 index_merge i1,i2,i8 i1,i2 4,4 NULL 2 Using union(i1,i2); Using where
-set optimizer_switch=@tmp_optimizer_switch;
-create table t3 like t0;
-insert into t3 select * from t0;
-alter table t3 add key9 int not null, add index i9(key9);
-alter table t3 add keyA int not null, add index iA(keyA);
-alter table t3 add keyB int not null, add index iB(keyB);
-alter table t3 add keyC int not null, add index iC(keyC);
-update t3 set key9=key1,keyA=key1,keyB=key1,keyC=key1;
-explain select * from t3 where
-key1=1 or key2=2 or key3=3 or key4=4 or
-key5=5 or key6=6 or key7=7 or key8=8 or
-key9=9 or keyA=10 or keyB=11 or keyC=12;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index_merge i1,i2,i3,i4,i5,i6,i7,i8,i9,iA,iB,iC i1,i2,i3,i4,i5,i6,i7,i8,i9,iA,iB,iC 4,4,4,4,4,4,4,4,4,4,4,4 NULL 12 Using union(i1,i2,i3,i4,i5,i6,i7,i8,i9,iA,iB,iC); Using where
-select * from t3 where
-key1=1 or key2=2 or key3=3 or key4=4 or
-key5=5 or key6=6 or key7=7 or key8=8 or
-key9=9 or keyA=10 or keyB=11 or keyC=12;
-key1 key2 key3 key4 key5 key6 key7 key8 key9 keyA keyB keyC
-1 1 1 1 1 1 1 1023 1 1 1 1
-2 2 2 2 2 2 2 1022 2 2 2 2
-3 3 3 3 3 3 3 1021 3 3 3 3
-4 4 4 4 4 4 4 1020 4 4 4 4
-5 5 5 5 5 5 5 1019 5 5 5 5
-6 6 6 6 6 6 6 1018 6 6 6 6
-7 7 7 7 7 7 7 1017 7 7 7 7
-9 9 9 9 9 9 9 1015 9 9 9 9
-10 10 10 10 10 10 10 1014 10 10 10 10
-11 11 11 11 11 11 11 1013 11 11 11 11
-12 12 12 12 12 12 12 1012 12 12 12 12
-1016 1016 1016 1016 1016 1016 1016 8 1016 1016 1016 1016
-explain select * from t0 where key1 < 3 or key2 < 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 index_merge i1,i2 i1,i2 4,4 NULL 7 Using sort_union(i1,i2); Using where
-select * from t0 where key1 < 3 or key2 < 4;
-key1 key2 key3 key4 key5 key6 key7 key8
-1 1 1 1 1 1 1 1023
-2 2 2 2 2 2 2 1022
-3 3 3 3 3 3 3 1021
-update t0 set key8=123 where key1 < 3 or key2 < 4;
-select * from t0 where key1 < 3 or key2 < 4;
-key1 key2 key3 key4 key5 key6 key7 key8
-1 1 1 1 1 1 1 123
-2 2 2 2 2 2 2 123
-3 3 3 3 3 3 3 123
-delete from t0 where key1 < 3 or key2 < 4;
-select * from t0 where key1 < 3 or key2 < 4;
-key1 key2 key3 key4 key5 key6 key7 key8
-select count(*) from t0;
-count(*)
-1021
-drop table t4;
-create table t4 (a int);
-insert into t4 values (1),(4),(3);
-set @save_join_buffer_size=@@join_buffer_size;
-set join_buffer_size= 4096;
-explain select max(A.key1 + B.key1 + A.key2 + B.key2 + A.key3 + B.key3 + A.key4 + B.key4 + A.key5 + B.key5)
-from t0 as A force index(i1,i2), t0 as B force index (i1,i2)
-where (A.key1 < 500000 or A.key2 < 3)
-and (B.key1 < 500000 or B.key2 < 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE A index_merge i1,i2 i1,i2 4,4 NULL 1013 Using sort_union(i1,i2); Using where
-1 SIMPLE B index_merge i1,i2 i1,i2 4,4 NULL 1013 Using sort_union(i1,i2); Using where; Using join buffer (flat, BNL join)
-select max(A.key1 + B.key1 + A.key2 + B.key2 + A.key3 + B.key3 + A.key4 + B.key4 + A.key5 + B.key5)
-from t0 as A force index(i1,i2), t0 as B force index (i1,i2)
-where (A.key1 < 500000 or A.key2 < 3)
-and (B.key1 < 500000 or B.key2 < 3);
-max(A.key1 + B.key1 + A.key2 + B.key2 + A.key3 + B.key3 + A.key4 + B.key4 + A.key5 + B.key5)
-10240
-update t0 set key1=1;
-explain select max(A.key1 + B.key1 + A.key2 + B.key2 + A.key3 + B.key3 + A.key4 + B.key4 + A.key5 + B.key5)
-from t0 as A force index(i1,i2), t0 as B force index (i1,i2)
-where (A.key1 = 1 or A.key2 = 1)
-and (B.key1 = 1 or B.key2 = 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE A index_merge i1,i2 i1,i2 4,4 NULL 1020 Using union(i1,i2); Using where
-1 SIMPLE B index_merge i1,i2 i1,i2 4,4 NULL 1020 Using union(i1,i2); Using where; Using join buffer (flat, BNL join)
-select max(A.key1 + B.key1 + A.key2 + B.key2 + A.key3 + B.key3 + A.key4 + B.key4 + A.key5 + B.key5)
-from t0 as A force index(i1,i2), t0 as B force index (i1,i2)
-where (A.key1 = 1 or A.key2 = 1)
-and (B.key1 = 1 or B.key2 = 1);
-max(A.key1 + B.key1 + A.key2 + B.key2 + A.key3 + B.key3 + A.key4 + B.key4 + A.key5 + B.key5)
-8194
-alter table t0 add filler1 char(200), add filler2 char(200), add filler3 char(200);
-update t0 set key2=1, key3=1, key4=1, key5=1,key6=1,key7=1 where key7 < 500;
-explain select max(A.key1 + B.key1 + A.key2 + B.key2 + A.key3 + B.key3 + A.key4 + B.key4 + A.key5 + B.key5)
-from t0 as A straight_join t0 as B
-where (A.key1 = 1 and A.key2 = 1 and A.key3 = 1 and A.key4=1 and A.key5=1 and A.key6=1 and A.key7 = 1 or A.key8=1)
-and (B.key1 = 1 and B.key2 = 1 and B.key3 = 1 and B.key4=1 and B.key5=1 and B.key6=1 and B.key7 = 1 or B.key8=1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE A index_merge i1,i2,i3,i4,i5,i6,i7?,i8 i2,i3,i4,i5,i6,i7?,i8 X NULL # Using union(intersect(i2,i3,i4,i5,i6,i7?),i8); Using where
-1 SIMPLE B index_merge i1,i2,i3,i4,i5,i6,i7?,i8 i2,i3,i4,i5,i6,i7?,i8 X NULL # Using union(intersect(i2,i3,i4,i5,i6,i7?),i8); Using where; Using join buffer (flat, BNL join)
-select max(A.key1 + B.key1 + A.key2 + B.key2 + A.key3 + B.key3 + A.key4 + B.key4 + A.key5 + B.key5)
-from t0 as A straight_join t0 as B
-where (A.key1 = 1 and A.key2 = 1 and A.key3 = 1 and A.key4=1 and A.key5=1 and A.key6=1 and A.key7 = 1 or A.key8=1)
-and (B.key1 = 1 and B.key2 = 1 and B.key3 = 1 and B.key4=1 and B.key5=1 and B.key6=1 and B.key7 = 1 or B.key8=1);
-max(A.key1 + B.key1 + A.key2 + B.key2 + A.key3 + B.key3 + A.key4 + B.key4 + A.key5 + B.key5)
-8186
-set join_buffer_size= @save_join_buffer_size;
-drop table t0, t1, t2, t3, t4;
-CREATE TABLE t1 (
-cola char(3) not null, colb char(3) not null, filler char(200),
-key(cola), key(colb)
-);
-INSERT INTO t1 VALUES ('foo','bar', 'ZZ'),('fuz','baz', 'ZZ');
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-select count(*) from t1;
-count(*)
-8704
-explain select * from t1 WHERE cola = 'foo' AND colb = 'bar';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge cola,colb cola,colb 3,3 NULL 32 Using intersect(cola,colb); Using where
-explain select * from t1 force index(cola,colb) WHERE cola = 'foo' AND colb = 'bar';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge cola,colb cola,colb 3,3 NULL 32 Using intersect(cola,colb); Using where
-drop table t1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (
-a int, b int,
-filler1 char(200), filler2 char(200),
-key(a),key(b)
-);
-insert into t1 select @v:= A.a, @v, 't1', 'filler2' from t0 A, t0 B, t0 C;
-create table t2 like t1;
-create table t3 (
-a int, b int,
-filler1 char(200), filler2 char(200),
-key(a),key(b)
-) engine=merge union=(t1,t2);
-explain select * from t1 where a=1 and b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b a,b 5,5 NULL # Using intersect(a,b); Using where
-explain select * from t3 where a=1 and b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index_merge a,b a,b 5,5 NULL # Using intersect(a,b); Using where
-drop table t3;
-drop table t0, t1, t2;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES(1);
-CREATE TABLE t2(a INT, b INT, dummy CHAR(16) DEFAULT '', KEY(a), KEY(b));
-INSERT INTO t2(a,b) VALUES
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(1,2);
-LOCK TABLES t1 WRITE, t2 WRITE;
-INSERT INTO t2(a,b) VALUES(1,2);
-SELECT t2.a FROM t1,t2 WHERE t2.b=2 AND t2.a=1;
-a
-1
-1
-UNLOCK TABLES;
-DROP TABLE t1, t2;
-CREATE TABLE `t1` (
-`a` int(11) DEFAULT NULL,
-`filler` char(200) DEFAULT NULL,
-`b` int(11) DEFAULT NULL,
-KEY `a` (`a`),
-KEY `b` (`b`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin1;
-insert into t1 values
-(0, 'filler', 0), (1, 'filler', 1), (2, 'filler', 2), (3, 'filler', 3),
-(4, 'filler', 4), (5, 'filler', 5), (6, 'filler', 6), (7, 'filler', 7),
-(8, 'filler', 8), (9, 'filler', 9), (0, 'filler', 0), (1, 'filler', 1),
-(2, 'filler', 2), (3, 'filler', 3), (4, 'filler', 4), (5, 'filler', 5),
-(6, 'filler', 6), (7, 'filler', 7), (8, 'filler', 8), (9, 'filler', 9),
-(10, 'filler', 10), (11, 'filler', 11), (12, 'filler', 12), (13, 'filler', 13),
-(14, 'filler', 14), (15, 'filler', 15), (16, 'filler', 16), (17, 'filler', 17),
-(18, 'filler', 18), (19, 'filler', 19), (4, '5 ', 0), (5, '4 ', 0),
-(4, '4 ', 0), (4, 'qq ', 5), (5, 'qq ', 4), (4, 'zz ', 4);
-create table t2(
-`a` int(11) DEFAULT NULL,
-`filler` char(200) DEFAULT NULL,
-`b` int(11) DEFAULT NULL,
-KEY USING BTREE (`a`),
-KEY USING BTREE (`b`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin1;
-insert into t2 select * from t1;
-must use sort-union rather than union:
-explain select * from t1 where a=4 or b=4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b a,b 5,5 NULL # Using sort_union(a,b); Using where
-select * from t1 where a=4 or b=4;
-a filler b
-4 4 0
-4 5 0
-4 filler 4
-4 filler 4
-4 qq 5
-4 zz 4
-5 qq 4
-select * from t1 ignore index(a,b) where a=4 or b=4;
-a filler b
-4 4 0
-4 5 0
-4 filler 4
-4 filler 4
-4 qq 5
-4 zz 4
-5 qq 4
-must use union, not sort-union:
-explain select * from t2 where a=4 or b=4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index_merge a,b a,b 5,5 NULL # Using union(a,b); Using where
-select * from t2 where a=4 or b=4;
-a filler b
-4 4 0
-4 5 0
-4 filler 4
-4 filler 4
-4 qq 5
-4 zz 4
-5 qq 4
-drop table t1, t2;
-CREATE TABLE t1 (a varchar(8), b set('a','b','c','d','e','f','g','h'),
-KEY b(b), KEY a(a));
-INSERT INTO t1 VALUES ('y',''), ('z','');
-SELECT b,a from t1 WHERE (b!='c' AND b!='f' && b!='h') OR
-(a='pure-S') OR (a='DE80337a') OR (a='DE80799');
-b a
- y
- z
-DROP TABLE t1;
-#
-# BUG#40974: Incorrect query results when using clause evaluated using range check
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int);
-insert into t1 values (1),(2);
-create table t2(a int, b int);
-insert into t2 values (1,1), (2, 1000);
-create table t3 (a int, b int, filler char(100), key(a), key(b));
-insert into t3 select 1000, 1000,'filler' from t0 A, t0 B, t0 C;
-insert into t3 values (1,1,'data');
-insert into t3 values (1,1,'data');
-The plan should be ALL/ALL/ALL(Range checked for each record (index map: 0x3)
-explain select * from t1
-where exists (select 1 from t2, t3
-where t2.a=t1.a and (t3.a=t2.b or t3.b=t2.b or t3.b=t2.b+1));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY t3 ALL a,b NULL NULL NULL 1002 Range checked for each record (index map: 0x3); FirstMatch(t1)
-select * from t1
-where exists (select 1 from t2, t3
-where t2.a=t1.a and (t3.a=t2.b or t3.b=t2.b or t3.b=t2.b+1));
-a
-1
-2
-drop table t0, t1, t2, t3;
-#
-# BUG#44810: index merge and order by with low sort_buffer_size
-# crashes server!
-#
-CREATE TABLE t1(a VARCHAR(128),b VARCHAR(128),KEY(A),KEY(B));
-INSERT INTO t1 VALUES (REPEAT('a',128),REPEAT('b',128));
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-SET SESSION sort_buffer_size=1024*8;
-EXPLAIN
-SELECT * FROM t1 FORCE INDEX(a,b) WHERE a LIKE 'a%' OR b LIKE 'b%'
-ORDER BY a,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b a,b 131,131 NULL 64 Using sort_union(a,b); Using where; Using filesort
-SELECT * FROM t1 FORCE INDEX(a,b) WHERE a LIKE 'a%' OR b LIKE 'b%'
-ORDER BY a,b;
-SET SESSION sort_buffer_size=DEFAULT;
-DROP TABLE t1;
-End of 5.0 tests
-#---------------- ROR-index_merge tests -----------------------
-SET SESSION STORAGE_ENGINE = MyISAM;
-drop table if exists t0,t1,t2;
-create table t1
-(
-/* Field names reflect value(rowid) distribution, st=STairs, swt= SaWTooth */
-st_a int not null default 0,
-swt1a int not null default 0,
-swt2a int not null default 0,
-st_b int not null default 0,
-swt1b int not null default 0,
-swt2b int not null default 0,
-/* fields/keys for row retrieval tests */
-key1 int,
-key2 int,
-key3 int,
-key4 int,
-/* make rows much bigger then keys */
-filler1 char (200),
-filler2 char (200),
-filler3 char (200),
-filler4 char (200),
-filler5 char (200),
-filler6 char (200),
-/* order of keys is important */
-key sta_swt12a(st_a,swt1a,swt2a),
-key sta_swt1a(st_a,swt1a),
-key sta_swt2a(st_a,swt2a),
-key sta_swt21a(st_a,swt2a,swt1a),
-key st_a(st_a),
-key stb_swt1a_2b(st_b,swt1b,swt2a),
-key stb_swt1b(st_b,swt1b),
-key st_b(st_b),
-key(key1),
-key(key2),
-key(key3),
-key(key4)
-) ;
-create table t0 as select * from t1;
-# Printing of many insert into t0 values (....) disabled.
-alter table t1 disable keys;
-# Printing of many insert into t1 select .... from t0 disabled.
-# Printing of many insert into t1 (...) values (....) disabled.
-alter table t1 enable keys;
-select count(*) from t1;
-count(*)
-64801
-explain select key1,key2 from t1 where key1=100 and key2=100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2 key1,key2 5,5 NULL 77 Using intersect(key1,key2); Using where; Using index
-select key1,key2 from t1 where key1=100 and key2=100;
-key1 key2
-100 100
-explain select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2,key3,key4 key1,key2,key3,key4 5,5,5,5 NULL 154 Using union(intersect(key1,key2),intersect(key3,key4)); Using where
-select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
-key1 key2 key3 key4 filler1
-100 100 100 100 key1-key2-key3-key4
-insert into t1 (key1, key2, key3, key4, filler1) values (100, 100, -1, -1, 'key1-key2');
-insert into t1 (key1, key2, key3, key4, filler1) values (-1, -1, 100, 100, 'key4-key3');
-explain select key1,key2,filler1 from t1 where key1=100 and key2=100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2 key1,key2 5,5 NULL 77 Using intersect(key1,key2); Using where
-select key1,key2,filler1 from t1 where key1=100 and key2=100;
-key1 key2 filler1
-100 100 key1-key2-key3-key4
-100 100 key1-key2
-explain select key1,key2 from t1 where key1=100 and key2=100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2 key1,key2 5,5 NULL 77 Using intersect(key1,key2); Using where; Using index
-select key1,key2 from t1 where key1=100 and key2=100;
-key1 key2
-100 100
-100 100
-explain select key1,key2,key3,key4 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2,key3,key4 key1,key2,key3,key4 5,5,5,5 NULL 154 Using union(intersect(key1,key2),intersect(key3,key4)); Using where
-select key1,key2,key3,key4 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
-key1 key2 key3 key4
-100 100 100 100
-100 100 -1 -1
--1 -1 100 100
-explain select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2,key3,key4 key1,key2,key3,key4 5,5,5,5 NULL 154 Using union(intersect(key1,key2),intersect(key3,key4)); Using where
-select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
-key1 key2 key3 key4 filler1
-100 100 100 100 key1-key2-key3-key4
-100 100 -1 -1 key1-key2
--1 -1 100 100 key4-key3
-explain select key1,key2,key3 from t1 where key1=100 and key2=100 and key3=100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2,key3 key1,key2,key3 5,5,5 NULL 2 Using intersect(key1,key2,key3); Using where; Using index
-select key1,key2,key3 from t1 where key1=100 and key2=100 and key3=100;
-key1 key2 key3
-100 100 100
-insert into t1 (key1,key2,key3,key4,filler1) values (101,101,101,101, 'key1234-101');
-explain select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=101;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2,key3 key1,key2,key3 5,5,5 NULL 83 Using union(intersect(key1,key2),key3); Using where
-select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=101;
-key1 key2 key3 key4 filler1
-100 100 100 100 key1-key2-key3-key4
-100 100 -1 -1 key1-key2
-101 101 101 101 key1234-101
-select key1,key2, filler1 from t1 where key1=100 and key2=100;
-key1 key2 filler1
-100 100 key1-key2-key3-key4
-100 100 key1-key2
-update t1 set filler1='to be deleted' where key1=100 and key2=100;
-update t1 set key1=200,key2=200 where key1=100 and key2=100;
-delete from t1 where key1=200 and key2=200;
-select key1,key2,filler1 from t1 where key2=100 and key2=200;
-key1 key2 filler1
-explain select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2,key3,key4 key1,key2,key3,key4 5,5,5,5 NULL 152 Using union(intersect(key1,key2),intersect(key3,key4)); Using where
-select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
-key1 key2 key3 key4 filler1
--1 -1 100 100 key4-key3
-delete from t1 where key3=100 and key4=100;
-explain select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2,key3,key4 key1,key2,key3,key4 5,5,5,5 NULL 152 Using union(intersect(key1,key2),intersect(key3,key4)); Using where
-select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
-key1 key2 key3 key4 filler1
-explain select key1,key2 from t1 where key1=100 and key2=100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2 key1,key2 5,5 NULL 76 Using intersect(key1,key2); Using where; Using index
-select key1,key2 from t1 where key1=100 and key2=100;
-key1 key2
-insert into t1 (key1, key2, key3, key4, filler1) values (100, 100, 200, 200,'key1-key2-key3-key4-1');
-insert into t1 (key1, key2, key3, key4, filler1) values (100, 100, 200, 200,'key1-key2-key3-key4-2');
-insert into t1 (key1, key2, key3, key4, filler1) values (100, 100, 200, 200,'key1-key2-key3-key4-3');
-explain select key1,key2,key3,key4,filler1 from t1 where key3=200 or (key1=100 and key2=100) or key4=200;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2,key3,key4 key3,key1,key2,key4 5,5,5,5 NULL 136 Using union(key3,intersect(key1,key2),key4); Using where
-select key1,key2,key3,key4,filler1 from t1 where key3=200 or (key1=100 and key2=100) or key4=200;
-key1 key2 key3 key4 filler1
-100 100 200 200 key1-key2-key3-key4-3
-100 100 200 200 key1-key2-key3-key4-2
-100 100 200 200 key1-key2-key3-key4-1
-insert into t1 (key1, key2, key3, key4, filler1) values (-1, -1, -1, 200,'key4');
-explain select key1,key2,key3,key4,filler1 from t1 where key3=200 or (key1=100 and key2=100) or key4=200;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2,key3,key4 key3,key1,key2,key4 5,5,5,5 NULL 146 Using union(key3,intersect(key1,key2),key4); Using where
-select key1,key2,key3,key4,filler1 from t1 where key3=200 or (key1=100 and key2=100) or key4=200;
-key1 key2 key3 key4 filler1
-100 100 200 200 key1-key2-key3-key4-3
-100 100 200 200 key1-key2-key3-key4-2
-100 100 200 200 key1-key2-key3-key4-1
--1 -1 -1 200 key4
-insert into t1 (key1, key2, key3, key4, filler1) values (-1, -1, 200, -1,'key3');
-explain select key1,key2,key3,key4,filler1 from t1 where key3=200 or (key1=100 and key2=100) or key4=200;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2,key3,key4 key3,key1,key2,key4 5,5,5,5 NULL 156 Using union(key3,intersect(key1,key2),key4); Using where
-select key1,key2,key3,key4,filler1 from t1 where key3=200 or (key1=100 and key2=100) or key4=200;
-key1 key2 key3 key4 filler1
-100 100 200 200 key1-key2-key3-key4-3
-100 100 200 200 key1-key2-key3-key4-2
-100 100 200 200 key1-key2-key3-key4-1
--1 -1 -1 200 key4
--1 -1 200 -1 key3
-explain select * from t1 where st_a=1 and st_b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge sta_swt12a,sta_swt1a,sta_swt2a,sta_swt21a,st_a,stb_swt1a_2b,stb_swt1b,st_b st_a,st_b 4,4 NULL 3515 Using intersect(st_a,st_b); Using where
-explain select st_a,st_b from t1 where st_a=1 and st_b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge sta_swt12a,sta_swt1a,sta_swt2a,sta_swt21a,st_a,stb_swt1a_2b,stb_swt1b,st_b st_a,st_b 4,4 NULL 3515 Using intersect(st_a,st_b); Using where; Using index
-explain select st_a from t1 ignore index (st_a) where st_a=1 and st_b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref sta_swt12a,sta_swt1a,sta_swt2a,sta_swt21a,stb_swt1a_2b,stb_swt1b,st_b st_b 4 const 15093 Using where
-explain select * from t1 where st_a=1 and swt1a=1 and swt2a=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref sta_swt12a,sta_swt1a,sta_swt2a,sta_swt21a,st_a sta_swt21a 12 const,const,const 971
-explain select * from t1 where st_b=1 and swt1b=1 and swt2b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref stb_swt1a_2b,stb_swt1b,st_b stb_swt1a_2b 8 const,const 3879 Using where
-explain select * from t1 where st_a=1 and swt1a=1 and swt2a=1 and st_b=1 and swt1b=1 and swt2b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge sta_swt12a,sta_swt1a,sta_swt2a,sta_swt21a,st_a,stb_swt1a_2b,stb_swt1b,st_b sta_swt12a,stb_swt1a_2b 12,12 NULL 58 Using intersect(sta_swt12a,stb_swt1a_2b); Using where
-explain select * from t1 ignore index (sta_swt21a, stb_swt1a_2b)
-where st_a=1 and swt1a=1 and swt2a=1 and st_b=1 and swt1b=1 and swt2b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge sta_swt12a,sta_swt1a,sta_swt2a,st_a,stb_swt1b,st_b sta_swt12a,stb_swt1b 12,8 NULL 58 Using intersect(sta_swt12a,stb_swt1b); Using where
-explain select * from t1 ignore index (sta_swt21a, sta_swt12a, stb_swt1a_2b)
-where st_a=1 and swt1a=1 and swt2a=1 and st_b=1 and swt1b=1 and swt2b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge sta_swt1a,sta_swt2a,st_a,stb_swt1b,st_b sta_swt1a,sta_swt2a,stb_swt1b 8,8,8 NULL 57 Using intersect(sta_swt1a,sta_swt2a,stb_swt1b); Using where
-explain select * from t1 ignore index (sta_swt21a, sta_swt12a, stb_swt1a_2b, stb_swt1b)
-where st_a=1 and swt1a=1 and swt2a=1 and st_b=1 and swt1b=1 and swt2b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge sta_swt1a,sta_swt2a,st_a,st_b sta_swt1a,sta_swt2a,st_b 8,8,4 NULL 223 Using intersect(sta_swt1a,sta_swt2a,st_b); Using where
-explain select * from t1
-where st_a=1 and swt1a=1 and swt2a=1 and st_b=1 and swt1b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge sta_swt12a,sta_swt1a,sta_swt2a,sta_swt21a,st_a,stb_swt1a_2b,stb_swt1b,st_b sta_swt12a,stb_swt1a_2b 12,12 NULL 58 Using intersect(sta_swt12a,stb_swt1a_2b); Using where
-explain select * from t1
-where st_a=1 and swt1a=1 and st_b=1 and swt1b=1 and swt1b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge sta_swt12a,sta_swt1a,sta_swt2a,sta_swt21a,st_a,stb_swt1a_2b,stb_swt1b,st_b sta_swt1a,stb_swt1b 8,8 NULL 232 Using intersect(sta_swt1a,stb_swt1b); Using where
-explain select st_a from t1
-where st_a=1 and swt1a=1 and st_b=1 and swt1b=1 and swt1b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge sta_swt12a,sta_swt1a,sta_swt2a,sta_swt21a,st_a,stb_swt1a_2b,stb_swt1b,st_b sta_swt1a,stb_swt1b 8,8 NULL 232 Using intersect(sta_swt1a,stb_swt1b); Using where; Using index
-explain select st_a from t1
-where st_a=1 and swt1a=1 and st_b=1 and swt1b=1 and swt1b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge sta_swt12a,sta_swt1a,sta_swt2a,sta_swt21a,st_a,stb_swt1a_2b,stb_swt1b,st_b sta_swt1a,stb_swt1b 8,8 NULL 232 Using intersect(sta_swt1a,stb_swt1b); Using where; Using index
-drop table t0,t1;
-create table t2 (
-a char(10),
-b char(10),
-filler1 char(255),
-filler2 char(255),
-key(a(5)),
-key(b(5))
-);
-select count(a) from t2 where a='BBBBBBBB';
-count(a)
-4
-select count(a) from t2 where b='BBBBBBBB';
-count(a)
-4
-expla_or_bin select count(a_or_b) from t2 where a_or_b='AAAAAAAA' a_or_bnd a_or_b='AAAAAAAA';
-id select_type ta_or_ba_or_ble type possia_or_ble_keys key key_len ref rows Extra_or_b
-1 SIMPLE t2 ref a_or_b,a_or_b a_or_b 6 const 4 Using where
-select count(a) from t2 where a='AAAAAAAA' and b='AAAAAAAA';
-count(a)
-4
-select count(a) from t2 ignore index(a,b) where a='AAAAAAAA' and b='AAAAAAAA';
-count(a)
-4
-insert into t2 values ('ab', 'ab', 'uh', 'oh');
-explain select a from t2 where a='ab';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref a a 6 const 1 Using where
-drop table t2;
-CREATE TABLE t1(c1 INT, c2 INT DEFAULT 0, c3 CHAR(255) DEFAULT '',
-KEY(c1), KEY(c2), KEY(c3));
-INSERT INTO t1(c1) VALUES(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),
-(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0);
-INSERT INTO t1 VALUES(0,0,0);
-CREATE TABLE t2(c1 int);
-INSERT INTO t2 VALUES(1);
-DELETE t1 FROM t1,t2 WHERE t1.c1=0 AND t1.c2=0;
-SELECT * FROM t1;
-c1 c2 c3
-DROP TABLE t1,t2;
-#---------------- Index merge test 2 -------------------------------------------
-SET SESSION STORAGE_ENGINE = MyISAM;
-drop table if exists t1,t2;
-create table t1
-(
-key1 int not null,
-key2 int not null,
-INDEX i1(key1),
-INDEX i2(key2)
-);
-explain select * from t1 where key1 < 5 or key2 > 197;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i1,i2 i1,i2 4,4 NULL 10 Using sort_union(i1,i2); Using where
-select * from t1 where key1 < 5 or key2 > 197;
-key1 key2
-0 200
-1 199
-2 198
-3 197
-4 196
-explain select * from t1 where key1 < 3 or key2 > 195;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i1,i2 i1,i2 4,4 NULL 10 Using sort_union(i1,i2); Using where
-select * from t1 where key1 < 3 or key2 > 195;
-key1 key2
-0 200
-1 199
-2 198
-3 197
-4 196
-alter table t1 add str1 char (255) not null,
-add zeroval int not null default 0,
-add str2 char (255) not null,
-add str3 char (255) not null;
-update t1 set str1='aaa', str2='bbb', str3=concat(key2, '-', key1 div 2, '_' ,if(key1 mod 2 = 0, 'a', 'A'));
-alter table t1 add primary key (str1, zeroval, str2, str3);
-explain select * from t1 where key1 < 5 or key2 > 197;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i1,i2 i1,i2 4,4 NULL 10 Using sort_union(i1,i2); Using where
-select * from t1 where key1 < 5 or key2 > 197;
-key1 key2 str1 zeroval str2 str3
-0 200 aaa 0 bbb 200-0_a
-1 199 aaa 0 bbb 199-0_A
-2 198 aaa 0 bbb 198-1_a
-3 197 aaa 0 bbb 197-1_A
-4 196 aaa 0 bbb 196-2_a
-explain select * from t1 where key1 < 3 or key2 > 195;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i1,i2 i1,i2 4,4 NULL 10 Using sort_union(i1,i2); Using where
-select * from t1 where key1 < 3 or key2 > 195;
-key1 key2 str1 zeroval str2 str3
-0 200 aaa 0 bbb 200-0_a
-1 199 aaa 0 bbb 199-0_A
-2 198 aaa 0 bbb 198-1_a
-3 197 aaa 0 bbb 197-1_A
-4 196 aaa 0 bbb 196-2_a
-drop table t1;
-create table t1 (
-pk integer not null auto_increment primary key,
-key1 integer,
-key2 integer not null,
-filler char (200),
-index (key1),
-index (key2)
-);
-show warnings;
-Level Code Message
-explain select pk from t1 where key1 = 1 and key2 = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref key1,key2 key1 5 const 4 Using where
-select pk from t1 where key2 = 1 and key1 = 1;
-pk
-26
-27
-select pk from t1 ignore index(key1,key2) where key2 = 1 and key1 = 1;
-pk
-26
-27
-drop table t1;
-create table t1 (
-pk int primary key auto_increment,
-key1a int,
-key2a int,
-key1b int,
-key2b int,
-dummy1 int,
-dummy2 int,
-dummy3 int,
-dummy4 int,
-key3a int,
-key3b int,
-filler1 char (200),
-index i1(key1a, key1b),
-index i2(key2a, key2b),
-index i3(key3a, key3b)
-);
-create table t2 (a int);
-insert into t2 values (0),(1),(2),(3),(4),(NULL);
-insert into t1 (key1a, key1b, key2a, key2b, key3a, key3b)
-select A.a, B.a, C.a, D.a, C.a, D.a from t2 A,t2 B,t2 C, t2 D;
-insert into t1 (key1a, key1b, key2a, key2b, key3a, key3b)
-select key1a, key1b, key2a, key2b, key3a, key3b from t1;
-insert into t1 (key1a, key1b, key2a, key2b, key3a, key3b)
-select key1a, key1b, key2a, key2b, key3a, key3b from t1;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-select count(*) from t1;
-count(*)
-5184
-explain select count(*) from t1 where
-key1a = 2 and key1b is null and key2a = 2 and key2b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i1,i2 i1,i2 10,10 NULL REF Using intersect(i1,i2); Using where; Using index
-select count(*) from t1 where
-key1a = 2 and key1b is null and key2a = 2 and key2b is null;
-count(*)
-4
-explain select count(*) from t1 where
-key1a = 2 and key1b is null and key3a = 2 and key3b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i1,i3 i1,i3 10,10 NULL REF Using intersect(i1,i3); Using where; Using index
-select count(*) from t1 where
-key1a = 2 and key1b is null and key3a = 2 and key3b is null;
-count(*)
-4
-drop table t1,t2;
-create table t1 (
-id1 int,
-id2 date ,
-index idx2 (id1,id2),
-index idx1 (id2)
-);
-insert into t1 values(1,'20040101'), (2,'20040102');
-select * from t1 where id1 = 1 and id2= '20040101';
-id1 id2
-1 2004-01-01
-drop table t1;
-drop view if exists v1;
-CREATE TABLE t1 (
-`oid` int(11) unsigned NOT NULL auto_increment,
-`fk_bbk_niederlassung` int(11) unsigned NOT NULL,
-`fk_wochentag` int(11) unsigned NOT NULL,
-`uhrzeit_von` time NOT NULL COMMENT 'HH:MM',
-`uhrzeit_bis` time NOT NULL COMMENT 'HH:MM',
-`geloescht` tinyint(4) NOT NULL,
-`version` int(5) NOT NULL,
-PRIMARY KEY (`oid`),
-KEY `fk_bbk_niederlassung` (`fk_bbk_niederlassung`),
-KEY `fk_wochentag` (`fk_wochentag`),
-KEY `ix_version` (`version`)
-) DEFAULT CHARSET=latin1;
-insert into t1 values
-(1, 38, 1, '08:00:00', '13:00:00', 0, 1),
-(2, 38, 2, '08:00:00', '13:00:00', 0, 1),
-(3, 38, 3, '08:00:00', '13:00:00', 0, 1),
-(4, 38, 4, '08:00:00', '13:00:00', 0, 1),
-(5, 38, 5, '08:00:00', '13:00:00', 0, 1),
-(6, 38, 5, '08:00:00', '13:00:00', 1, 2),
-(7, 38, 3, '08:00:00', '13:00:00', 1, 2),
-(8, 38, 1, '08:00:00', '13:00:00', 1, 2),
-(9, 38, 2, '08:00:00', '13:00:00', 1, 2),
-(10, 38, 4, '08:00:00', '13:00:00', 1, 2),
-(11, 38, 1, '08:00:00', '13:00:00', 0, 3),
-(12, 38, 2, '08:00:00', '13:00:00', 0, 3),
-(13, 38, 3, '08:00:00', '13:00:00', 0, 3),
-(14, 38, 4, '08:00:00', '13:00:00', 0, 3),
-(15, 38, 5, '08:00:00', '13:00:00', 0, 3),
-(16, 38, 4, '08:00:00', '13:00:00', 0, 4),
-(17, 38, 5, '08:00:00', '13:00:00', 0, 4),
-(18, 38, 1, '08:00:00', '13:00:00', 0, 4),
-(19, 38, 2, '08:00:00', '13:00:00', 0, 4),
-(20, 38, 3, '08:00:00', '13:00:00', 0, 4),
-(21, 7, 1, '08:00:00', '13:00:00', 0, 1),
-(22, 7, 2, '08:00:00', '13:00:00', 0, 1),
-(23, 7, 3, '08:00:00', '13:00:00', 0, 1),
-(24, 7, 4, '08:00:00', '13:00:00', 0, 1),
-(25, 7, 5, '08:00:00', '13:00:00', 0, 1);
-create view v1 as
-select
-zeit1.oid AS oid,
-zeit1.fk_bbk_niederlassung AS fk_bbk_niederlassung,
-zeit1.fk_wochentag AS fk_wochentag,
-zeit1.uhrzeit_von AS uhrzeit_von,
-zeit1.uhrzeit_bis AS uhrzeit_bis,
-zeit1.geloescht AS geloescht,
-zeit1.version AS version
-from
-t1 zeit1
-where
-(zeit1.version =
-(select max(zeit2.version) AS `max(version)`
- from t1 zeit2
-where
-((zeit1.fk_bbk_niederlassung = zeit2.fk_bbk_niederlassung) and
-(zeit1.fk_wochentag = zeit2.fk_wochentag) and
-(zeit1.uhrzeit_von = zeit2.uhrzeit_von) and
-(zeit1.uhrzeit_bis = zeit2.uhrzeit_bis)
-)
-)
-)
-and (zeit1.geloescht = 0);
-select * from v1 where oid = 21;
-oid fk_bbk_niederlassung fk_wochentag uhrzeit_von uhrzeit_bis geloescht version
-21 7 1 08:00:00 13:00:00 0 1
-drop view v1;
-drop table t1;
-CREATE TABLE t1(
-t_cpac varchar(2) NOT NULL,
-t_vers varchar(4) NOT NULL,
-t_rele varchar(2) NOT NULL,
-t_cust varchar(4) NOT NULL,
-filler1 char(250) default NULL,
-filler2 char(250) default NULL,
-PRIMARY KEY (t_cpac,t_vers,t_rele,t_cust),
-UNIQUE KEY IX_4 (t_cust,t_cpac,t_vers,t_rele),
-KEY IX_5 (t_vers,t_rele,t_cust)
-);
-insert into t1 values
-('tm','2.5 ','a ',' ','',''), ('tm','2.5U','a ','stnd','',''),
-('da','3.3 ','b ',' ','',''), ('da','3.3U','b ','stnd','',''),
-('tl','7.6 ','a ',' ','',''), ('tt','7.6 ','a ',' ','',''),
-('bc','B61 ','a ',' ','',''), ('bp','B61 ','a ',' ','',''),
-('ca','B61 ','a ',' ','',''), ('ci','B61 ','a ',' ','',''),
-('cp','B61 ','a ',' ','',''), ('dm','B61 ','a ',' ','',''),
-('ec','B61 ','a ',' ','',''), ('ed','B61 ','a ',' ','',''),
-('fm','B61 ','a ',' ','',''), ('nt','B61 ','a ',' ','',''),
-('qm','B61 ','a ',' ','',''), ('tc','B61 ','a ',' ','',''),
-('td','B61 ','a ',' ','',''), ('tf','B61 ','a ',' ','',''),
-('tg','B61 ','a ',' ','',''), ('ti','B61 ','a ',' ','',''),
-('tp','B61 ','a ',' ','',''), ('ts','B61 ','a ',' ','',''),
-('wh','B61 ','a ',' ','',''), ('bc','B61U','a ','stnd','',''),
-('bp','B61U','a ','stnd','',''), ('ca','B61U','a ','stnd','',''),
-('ci','B61U','a ','stnd','',''), ('cp','B61U','a ','stnd','',''),
-('dm','B61U','a ','stnd','',''), ('ec','B61U','a ','stnd','',''),
-('fm','B61U','a ','stnd','',''), ('nt','B61U','a ','stnd','',''),
-('qm','B61U','a ','stnd','',''), ('tc','B61U','a ','stnd','',''),
-('td','B61U','a ','stnd','',''), ('tf','B61U','a ','stnd','',''),
-('tg','B61U','a ','stnd','',''), ('ti','B61U','a ','stnd','',''),
-('tp','B61U','a ','stnd','',''), ('ts','B61U','a ','stnd','',''),
-('wh','B61U','a ','stnd','','');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t_cpac` varchar(2) NOT NULL,
- `t_vers` varchar(4) NOT NULL,
- `t_rele` varchar(2) NOT NULL,
- `t_cust` varchar(4) NOT NULL,
- `filler1` char(250) DEFAULT NULL,
- `filler2` char(250) DEFAULT NULL,
- PRIMARY KEY (`t_cpac`,`t_vers`,`t_rele`,`t_cust`),
- UNIQUE KEY `IX_4` (`t_cust`,`t_cpac`,`t_vers`,`t_rele`),
- KEY `IX_5` (`t_vers`,`t_rele`,`t_cust`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select t_vers,t_rele,t_cust,filler1 from t1 where t_vers = '7.6';
-t_vers t_rele t_cust filler1
-7.6 a
-7.6 a
-select t_vers,t_rele,t_cust,filler1 from t1 where t_vers = '7.6'
- and t_rele='a' and t_cust = ' ';
-t_vers t_rele t_cust filler1
-7.6 a
-7.6 a
-drop table t1;
-create table t1 (
-pk int(11) not null auto_increment,
-a int(11) not null default '0',
-b int(11) not null default '0',
-c int(11) not null default '0',
-filler1 datetime, filler2 varchar(15),
-filler3 longtext,
-kp1 varchar(4), kp2 varchar(7),
-kp3 varchar(2), kp4 varchar(4),
-kp5 varchar(7),
-filler4 char(1),
-primary key (pk),
-key idx1(a,b,c),
-key idx2(c),
-key idx3(kp1,kp2,kp3,kp4,kp5)
-) default charset=latin1;
-set @fill=NULL;
-SELECT COUNT(*) FROM t1 WHERE b = 0 AND a = 0 AND c = 13286427 AND
-kp1='279' AND kp2='ELM0678' AND kp3='6' AND kp4='10' AND kp5 = 'R ';
-COUNT(*)
-1
-drop table t1;
-create table t1
-(
-key1 int not null,
-key2 int not null default 0,
-key3 int not null default 0
-);
-insert into t1(key1) values (1),(2),(3),(4),(5),(6),(7),(8);
-set @d=8;
-insert into t1 (key1) select key1+@d from t1;
-set @d=@d*2;
-insert into t1 (key1) select key1+@d from t1;
-set @d=@d*2;
-insert into t1 (key1) select key1+@d from t1;
-set @d=@d*2;
-insert into t1 (key1) select key1+@d from t1;
-set @d=@d*2;
-insert into t1 (key1) select key1+@d from t1;
-set @d=@d*2;
-insert into t1 (key1) select key1+@d from t1;
-set @d=@d*2;
-insert into t1 (key1) select key1+@d from t1;
-set @d=@d*2;
-alter table t1 add index i2(key2);
-alter table t1 add index i3(key3);
-update t1 set key2=key1,key3=key1;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-explain select * from t1 where (key3 > 30 and key3<35) or (key2 >32 and key2 < 40);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i2,i3 i3,i2 4,4 NULL REF Using sort_union(i3,i2); Using where
-select * from t1 where (key3 > 30 and key3<35) or (key2 >32 and key2 < 40);
-key1 key2 key3
-31 31 31
-32 32 32
-33 33 33
-34 34 34
-35 35 35
-36 36 36
-37 37 37
-38 38 38
-39 39 39
-drop table t1;
-#
-# Bug#56423: Different count with SELECT and CREATE SELECT queries
-#
-CREATE TABLE t1 (
-a INT,
-b INT,
-c INT,
-d INT,
-PRIMARY KEY (a),
-KEY (c),
-KEY bd (b,d)
-);
-INSERT INTO t1 VALUES
-(1, 0, 1, 0),
-(2, 1, 1, 1),
-(3, 1, 1, 1),
-(4, 0, 1, 1);
-EXPLAIN
-SELECT a
-FROM t1
-WHERE c = 1 AND b = 1 AND d = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref c,bd bd 10 const,const 2 Using where
-CREATE TABLE t2 ( a INT )
-SELECT a
-FROM t1
-WHERE c = 1 AND b = 1 AND d = 1;
-SELECT * FROM t2;
-a
-2
-3
-DROP TABLE t1, t2;
-CREATE TABLE t1( a INT, b INT, KEY(a), KEY(b) );
-INSERT INTO t1 VALUES (1, 2), (1, 2), (1, 2), (1, 2);
-SELECT * FROM t1 FORCE INDEX(a, b) WHERE a = 1 AND b = 2;
-a b
-1 2
-1 2
-1 2
-1 2
-DROP TABLE t1;
-# Code coverage of fix.
-CREATE TABLE t1 ( a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT);
-INSERT INTO t1 (b) VALUES (1);
-UPDATE t1 SET b = 2 WHERE a = 1;
-SELECT * FROM t1;
-a b
-1 2
-CREATE TABLE t2 ( a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b VARCHAR(1) );
-INSERT INTO t2 (b) VALUES ('a');
-UPDATE t2 SET b = 'b' WHERE a = 1;
-SELECT * FROM t2;
-a b
-1 b
-DROP TABLE t1, t2;
-#---------------- 2-sweeps read Index merge test 2 -------------------------------
-SET SESSION STORAGE_ENGINE = MyISAM;
-drop table if exists t1;
-create table t1 (
-pk int primary key,
-key1 int,
-key2 int,
-filler char(200),
-filler2 char(200),
-index(key1),
-index(key2)
-);
-select * from t1 where (key1 >= 2 and key1 <= 10) or (pk >= 4 and pk <=8 );
-pk key1 key2 filler filler2
-10 10 10 filler-data filler-data-2
-9 9 9 filler-data filler-data-2
-8 8 8 filler-data filler-data-2
-7 7 7 filler-data filler-data-2
-6 6 6 filler-data filler-data-2
-5 5 5 filler-data filler-data-2
-4 4 4 filler-data filler-data-2
-3 3 3 filler-data filler-data-2
-2 2 2 filler-data filler-data-2
-set @maxv=1000;
-select * from t1 where
-(pk < 5) or (pk > 10 and pk < 15) or (pk >= 50 and pk < 55 ) or (pk > @maxv-10)
-or key1=18 or key1=60;
-pk key1 key2 filler filler2
-1000 1000 1000 filler-data filler-data-2
-999 999 999 filler-data filler-data-2
-998 998 998 filler-data filler-data-2
-997 997 997 filler-data filler-data-2
-996 996 996 filler-data filler-data-2
-995 995 995 filler-data filler-data-2
-994 994 994 filler-data filler-data-2
-993 993 993 filler-data filler-data-2
-992 992 992 filler-data filler-data-2
-991 991 991 filler-data filler-data-2
-60 60 60 filler-data filler-data-2
-54 54 54 filler-data filler-data-2
-53 53 53 filler-data filler-data-2
-52 52 52 filler-data filler-data-2
-51 51 51 filler-data filler-data-2
-50 50 50 filler-data filler-data-2
-18 18 18 filler-data filler-data-2
-14 14 14 filler-data filler-data-2
-13 13 13 filler-data filler-data-2
-12 12 12 filler-data filler-data-2
-11 11 11 filler-data filler-data-2
-4 4 4 filler-data filler-data-2
-3 3 3 filler-data filler-data-2
-2 2 2 filler-data filler-data-2
-1 1 1 filler-data filler-data-2
-select * from t1 where
-(pk < 5) or (pk > 10 and pk < 15) or (pk >= 50 and pk < 55 ) or (pk > @maxv-10)
-or key1 < 3 or key1 > @maxv-11;
-pk key1 key2 filler filler2
-1000 1000 1000 filler-data filler-data-2
-999 999 999 filler-data filler-data-2
-998 998 998 filler-data filler-data-2
-997 997 997 filler-data filler-data-2
-996 996 996 filler-data filler-data-2
-995 995 995 filler-data filler-data-2
-994 994 994 filler-data filler-data-2
-993 993 993 filler-data filler-data-2
-992 992 992 filler-data filler-data-2
-991 991 991 filler-data filler-data-2
-990 990 990 filler-data filler-data-2
-54 54 54 filler-data filler-data-2
-53 53 53 filler-data filler-data-2
-52 52 52 filler-data filler-data-2
-51 51 51 filler-data filler-data-2
-50 50 50 filler-data filler-data-2
-14 14 14 filler-data filler-data-2
-13 13 13 filler-data filler-data-2
-12 12 12 filler-data filler-data-2
-11 11 11 filler-data filler-data-2
-4 4 4 filler-data filler-data-2
-3 3 3 filler-data filler-data-2
-2 2 2 filler-data filler-data-2
-1 1 1 filler-data filler-data-2
-select * from t1 where
-(pk < 5) or (pk > 10 and pk < 15) or (pk >= 50 and pk < 55 ) or (pk > @maxv-10)
-or
-(key1 < 5) or (key1 > 10 and key1 < 15) or (key1 >= 50 and key1 < 55 ) or (key1 > @maxv-10);
-pk key1 key2 filler filler2
-1000 1000 1000 filler-data filler-data-2
-999 999 999 filler-data filler-data-2
-998 998 998 filler-data filler-data-2
-997 997 997 filler-data filler-data-2
-996 996 996 filler-data filler-data-2
-995 995 995 filler-data filler-data-2
-994 994 994 filler-data filler-data-2
-993 993 993 filler-data filler-data-2
-992 992 992 filler-data filler-data-2
-991 991 991 filler-data filler-data-2
-54 54 54 filler-data filler-data-2
-53 53 53 filler-data filler-data-2
-52 52 52 filler-data filler-data-2
-51 51 51 filler-data filler-data-2
-50 50 50 filler-data filler-data-2
-14 14 14 filler-data filler-data-2
-13 13 13 filler-data filler-data-2
-12 12 12 filler-data filler-data-2
-11 11 11 filler-data filler-data-2
-4 4 4 filler-data filler-data-2
-3 3 3 filler-data filler-data-2
-2 2 2 filler-data filler-data-2
-1 1 1 filler-data filler-data-2
-select * from t1 where
-(pk > 10 and pk < 15) or (pk >= 50 and pk < 55 )
-or
-(key1 < 5) or (key1 > @maxv-10);
-pk key1 key2 filler filler2
-1000 1000 1000 filler-data filler-data-2
-999 999 999 filler-data filler-data-2
-998 998 998 filler-data filler-data-2
-997 997 997 filler-data filler-data-2
-996 996 996 filler-data filler-data-2
-995 995 995 filler-data filler-data-2
-994 994 994 filler-data filler-data-2
-993 993 993 filler-data filler-data-2
-992 992 992 filler-data filler-data-2
-991 991 991 filler-data filler-data-2
-54 54 54 filler-data filler-data-2
-53 53 53 filler-data filler-data-2
-52 52 52 filler-data filler-data-2
-51 51 51 filler-data filler-data-2
-50 50 50 filler-data filler-data-2
-14 14 14 filler-data filler-data-2
-13 13 13 filler-data filler-data-2
-12 12 12 filler-data filler-data-2
-11 11 11 filler-data filler-data-2
-4 4 4 filler-data filler-data-2
-3 3 3 filler-data filler-data-2
-2 2 2 filler-data filler-data-2
-1 1 1 filler-data filler-data-2
-drop table t1;
-#---------------- Clustered PK ROR-index_merge tests -----------------------------
-SET SESSION STORAGE_ENGINE = MyISAM;
-drop table if exists t1;
-create table t1
-(
-pk1 int not null,
-pk2 int not null,
-key1 int not null,
-key2 int not null,
-pktail1ok int not null,
-pktail2ok int not null,
-pktail3bad int not null,
-pktail4bad int not null,
-pktail5bad int not null,
-pk2copy int not null,
-badkey int not null,
-filler1 char (200),
-filler2 char (200),
-key (key1),
-key (key2),
-/* keys with tails from CPK members */
-key (pktail1ok, pk1),
-key (pktail2ok, pk1, pk2),
-key (pktail3bad, pk2, pk1),
-key (pktail4bad, pk1, pk2copy),
-key (pktail5bad, pk1, pk2, pk2copy),
-primary key (pk1, pk2)
-);
-explain select * from t1 where pk1 = 1 and pk2 < 80 and key1=0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,key1 PRIMARY 8 NULL 7 Using index condition; Using where
-select * from t1 where pk1 = 1 and pk2 < 80 and key1=0;
-pk1 pk2 key1 key2 pktail1ok pktail2ok pktail3bad pktail4bad pktail5bad pk2copy badkey filler1 filler2
-1 10 0 0 0 0 0 0 0 10 0 filler-data-10 filler2
-1 11 0 0 0 0 0 0 0 11 0 filler-data-11 filler2
-1 12 0 0 0 0 0 0 0 12 0 filler-data-12 filler2
-1 13 0 0 0 0 0 0 0 13 0 filler-data-13 filler2
-1 14 0 0 0 0 0 0 0 14 0 filler-data-14 filler2
-1 15 0 0 0 0 0 0 0 15 0 filler-data-15 filler2
-1 16 0 0 0 0 0 0 0 16 0 filler-data-16 filler2
-1 17 0 0 0 0 0 0 0 17 0 filler-data-17 filler2
-1 18 0 0 0 0 0 0 0 18 0 filler-data-18 filler2
-1 19 0 0 0 0 0 0 0 19 0 filler-data-19 filler2
-explain select pk1,pk2 from t1 where key1 = 10 and key2=10 and 2*pk1+1 < 2*96+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2 key1,key2 4,4 NULL 1 Using intersect(key1,key2); Using where
-select pk1,pk2 from t1 where key1 = 10 and key2=10 and 2*pk1+1 < 2*96+1;
-pk1 pk2
-95 59
-95 58
-95 57
-95 56
-95 55
-95 54
-95 53
-95 52
-95 51
-95 50
-explain select * from t1 where badkey=1 and key1=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref key1 key1 4 const 91 Using where
-set @tmp_index_merge_ror_cpk=@@optimizer_switch;
-set optimizer_switch='extended_keys=off';
-explain select * from t1 where pk1 < 7500 and key1 = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref PRIMARY,key1 key1 4 const ROWS Using where
-set optimizer_switch=@tmp_index_merge_ror_cpk;
-explain select * from t1 where pktail1ok=1 and key1=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref key1,pktail1ok pktail1ok 4 const 76 Using where
-explain select * from t1 where pktail2ok=1 and key1=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref key1,pktail2ok pktail2ok 4 const 82 Using where
-explain select * from t1 where (pktail2ok=1 and pk1< 50000) or key1=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge PRIMARY,key1,pktail2ok pktail2ok,key1 8,4 NULL 173 Using sort_union(pktail2ok,key1); Using where
-explain select * from t1 where pktail3bad=1 and key1=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref key1,pktail3bad pktail3bad 4 const 73 Using where
-explain select * from t1 where pktail4bad=1 and key1=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref key1,pktail4bad pktail4bad 4 const 82 Using where
-explain select * from t1 where pktail5bad=1 and key1=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref key1,pktail5bad pktail5bad 4 const 70 Using where
-explain select pk1,pk2,key1,key2 from t1 where key1 = 10 and key2=10 limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2 key1,key2 4,4 NULL 1 Using intersect(key1,key2); Using where
-select pk1,pk2,key1,key2 from t1 where key1 = 10 and key2=10 limit 10;
-pk1 pk2 key1 key2
-104 49 10 10
-104 48 10 10
-104 47 10 10
-104 46 10 10
-104 45 10 10
-104 44 10 10
-104 43 10 10
-104 42 10 10
-104 41 10 10
-104 40 10 10
-drop table t1;
-create table t1
-(
-RUNID varchar(22),
-SUBMITNR varchar(5),
-ORDERNR char(1),
-PROGRAMM varchar(8),
-TESTID varchar(4),
-UCCHECK char(1),
-ETEXT varchar(80),
-ETEXT_TYPE char(1),
-INFO char(1),
-SEVERITY tinyint(3),
-TADIRFLAG char(1),
-PRIMARY KEY (RUNID,SUBMITNR,ORDERNR,PROGRAMM,TESTID,UCCHECK),
-KEY `TVERM~KEY` (PROGRAMM,TESTID,UCCHECK)
-) DEFAULT CHARSET=latin1;
-update t1 set `ETEXT` = '', `ETEXT_TYPE`='', `INFO`='', `SEVERITY`='', `TADIRFLAG`=''
-WHERE
-`RUNID`= '' AND `SUBMITNR`= '' AND `ORDERNR`='' AND `PROGRAMM`='' AND
-`TESTID`='' AND `UCCHECK`='';
-drop table t1;
-#
-# Bug#50402 Optimizer producing wrong results when using Index Merge on InnoDB
-#
-CREATE TABLE t1 (f1 INT, PRIMARY KEY (f1));
-INSERT INTO t1 VALUES (2);
-CREATE TABLE t2 (f1 INT, f2 INT, f3 char(1),
-PRIMARY KEY (f1), KEY (f2), KEY (f3) );
-INSERT INTO t2 VALUES (1, 1, 'h'), (2, 3, 'h'), (3, 2, ''), (4, 2, '');
-SELECT t1.f1 FROM t1
-WHERE (SELECT COUNT(*) FROM t2 WHERE t2.f3 = 'h' AND t2.f2 = t1.f1) = 0 AND t1.f1 = 2;
-f1
-2
-EXPLAIN SELECT t1.f1 FROM t1
-WHERE (SELECT COUNT(*) FROM t2 WHERE t2.f3 = 'h' AND t2.f2 = t1.f1) = 0 AND t1.f1 = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
-2 SUBQUERY t2 ref f2,f3 f2 5 const 1 Using where
-DROP TABLE t1,t2;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b int, c int, filler char(100),
-key(a), key(b), key(c));
-insert into t1 select
-A.a * B.a*10 + C.a*100,
-A.a * B.a*10 + C.a*100,
-A.a,
-'filler'
-from t0 A, t0 B, t0 C;
-This should use union:
-explain select * from t1 where a=1 or b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b a,b 5,5 NULL 2 Using union(a,b); Using where
-This should use ALL:
-set optimizer_switch='default,index_merge=off';
-explain select * from t1 where a=1 or b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a,b NULL NULL NULL 1000 Using where
-This should use sort-union:
-set optimizer_switch='default,index_merge_union=off';
-explain select * from t1 where a=1 or b=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b a,b 5,5 NULL 2 Using sort_union(a,b); Using where
-This will use sort-union:
-set optimizer_switch=default;
-explain select * from t1 where a<1 or b <1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b a,b 5,5 NULL 38 Using sort_union(a,b); Using where
-This should use ALL:
-set optimizer_switch='default,index_merge_sort_union=off';
-explain select * from t1 where a<1 or b <1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a,b NULL NULL NULL 1000 Using where
-This should use ALL:
-set optimizer_switch='default,index_merge=off';
-explain select * from t1 where a<1 or b <1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a,b NULL NULL NULL 1000 Using where
-This will use sort-union:
-set optimizer_switch='default,index_merge_union=off';
-explain select * from t1 where a<1 or b <1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b a,b 5,5 NULL 38 Using sort_union(a,b); Using where
-alter table t1 add d int, add key(d);
-update t1 set d=a;
-This will use sort_union:
-set optimizer_switch=default;
-explain select * from t1 where (a=3 or b in (1,2)) and (c=3 or d=4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b,c,d a,b 5,5 NULL 3 Using sort_union(a,b); Using where
-And if we disable sort_union, union:
-set optimizer_switch='default,index_merge_sort_union=off';
-explain select * from t1 where (a=3 or b in (1,2)) and (c=3 or d=4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b,c,d c,d 5,5 NULL 100 Using union(c,d); Using where
-drop table t1;
-create table t1 (
-a int, b int, c int,
-filler1 char(200), filler2 char(200),
-key(a),key(b),key(c)
-);
-insert into t1
-select A.a+10*B.a, A.a+10*B.a, A.a+10*B.a+100*C.a, 'foo', 'bar'
-from t0 A, t0 B, t0 C, t0 D where D.a<5;
-This should be intersect:
-set optimizer_switch=default;
-explain select * from t1 where a=10 and b=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b a,b 5,5 NULL 1 Using intersect(a,b); Using where
-No intersect when index_merge is disabled:
-set optimizer_switch='default,index_merge=off';
-explain select * from t1 where a=10 and b=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a,b a 5 const 49 Using where
-No intersect if it is disabled:
-set optimizer_switch='default,index_merge_sort_intersection=off,index_merge_intersection=off';
-explain select * from t1 where a=10 and b=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a,b a 5 const 49 Using where
-Do intersect when union was disabled
-set optimizer_switch='default,index_merge_union=off';
-explain select * from t1 where a=10 and b=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b a,b 5,5 NULL 1 Using intersect(a,b); Using where
-Do intersect when sort_union was disabled
-set optimizer_switch='default,index_merge_sort_union=off';
-explain select * from t1 where a=10 and b=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b a,b 5,5 NULL 1 Using intersect(a,b); Using where
-This will use intersection inside a union:
-set optimizer_switch=default;
-explain select * from t1 where a=10 and b=10 or c=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b,c a,b,c 5,5,5 NULL 6 Using union(intersect(a,b),c); Using where
-Should be only union left:
-set optimizer_switch='default,index_merge_intersection=off';
-explain select * from t1 where a=10 and b=10 or c=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b,c a,c 5,5 NULL 54 Using union(a,c); Using where
-This will switch to sort-union (intersection will be gone, too,
-that's a known limitation:
-set optimizer_switch='default,index_merge_union=off';
-explain select * from t1 where a=10 and b=10 or c=10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b,c a,c 5,5 NULL 54 Using sort_union(a,c); Using where
-set optimizer_switch=default;
-drop table t0, t1;
-#
-# BUG#834514 Assertion `!table || (!table->read_set || bitmap_is_set(...' with aggregates
-#
-CREATE TABLE t1 ( a int , b int, c int, KEY (b), PRIMARY KEY (a)) ;
-INSERT INTO t1 VALUES (1,4,0),(5,0,0),(6,7,0),(7,7,0),(8,1,0),(9,7,0),(10,1,0);
-CREATE TABLE t2 ( b int, c int, KEY (c,b)) ;
-INSERT INTO t2 VALUES (7,0),(1,0),(7,0),(1,0);
-CREATE TABLE t3 ( a int ) ;
-SELECT COUNT(DISTINCT t2.b), CONCAT(t1.c)
-FROM t1, t2
-WHERE (t2.c = t1.c)
-AND (
-t1.b IN ( 4 )
-OR t1.a = 137
-AND EXISTS ( SELECT a FROM t3 )
-)
-GROUP BY 2;
-COUNT(DISTINCT t2.b) CONCAT(t1.c)
-2 0
-DROP TABLE t1,t2,t3;
-#
-# MDEV-4556 Server crashes in SEL_ARG::rb_insert with index_merge+index_merge_sort_union, FORCE INDEX
-#
-CREATE TABLE t1 (
-pk int,
-code char(2),
-population_rate int,
-area_rate int,
-primary key (pk),
-index (code),
-key (population_rate),
-key (area_rate)
-);
-INSERT INTO t1 VALUES (1,'WI',20, 23), (2, 'WA', 13, 18);
-EXPLAIN
-SELECT * FROM t1 FORCE INDEX ( PRIMARY, population_rate, area_rate, code )
-WHERE pk = 1 OR population_rate = 1 OR ( area_rate IN ( 1,2 ) OR area_rate IS NULL )
-AND (population_rate = 25 OR area_rate BETWEEN 2 AND 25 OR code BETWEEN 'MA' AND 'TX');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge PRIMARY,code,population_rate,area_rate PRIMARY,population_rate,area_rate 4,5,5 NULL 2 Using sort_union(PRIMARY,population_rate,area_rate); Using where
-SELECT * FROM t1 FORCE INDEX ( PRIMARY, population_rate, area_rate, code )
-WHERE pk = 1 OR population_rate = 1 OR ( area_rate IN ( 1,2 ) OR area_rate IS NULL )
-AND (population_rate = 25 OR area_rate BETWEEN 2 AND 25 OR code BETWEEN 'MA' AND 'TX');
-pk code population_rate area_rate
-1 WI 20 23
-DROP TABLE t1;
-#
-# MDEV-5069: Server crashes in SEL_ARG::increment_use_count with index_merge+index_merge_sort_union, FORCE INDEX
-#
-CREATE TABLE t1 (
-c1 varchar(64),
-i int,
-pk integer auto_increment,
-c2 varchar(64),
-index (c1),
-index (i),
-primary key (pk),
-key (c2)) ENGINE=myisam;
-ALTER TABLE t1 DISABLE KEYS;
-INSERT INTO t1 VALUES
-('West Virginia', 6121, NULL, 'California'),('Georgia', 60177, NULL, 'Arkansas'),
-('Delaware', 90, NULL, 'Oregon'),('Wyoming', 7, NULL, 'Missouri'),(
-'Delaware', 2, NULL, 'Utah'),('Wisconsin', 0, NULL, 'Iowa'),
-('Kansas', 0, NULL, 'Florida'),('Ohio', 34358, NULL, 'Colorado'),
-('Maine', 118, NULL, 'Texas'),('Mississippi', 0, NULL, 'Georgia'),
-('Tennessee', 4, NULL, 'N/A'),('Georgia', 0, NULL, 'New Hampshire'),
-('Wyoming', 2, NULL, 'N/A'),('Florida', 0, NULL, 'Arizona'),
-('Rhode Island', -24002, NULL, 'Michigan'),('Alabama', 142, NULL, 'Indiana'),
-('Colorado', 0, NULL, 'Louisiana'),('Michigan', 21194, NULL, 'Louisiana'),
-('Oklahoma', 31475, NULL, 'Alabama'),('Pennsylvania', 0, NULL, 'Oklahoma'),
-('Texas', 0, NULL, 'Texas'),('West Virginia', 5, NULL, 'Utah'),
-('Florida', 49653, NULL, 'Kentucky'),('Tennessee', 19075, NULL, 'Oregon'),
-('Maine', 3, NULL, 'Kansas, Kentucky, Iowa'),('Iowa', 1, NULL, 'South Dakota'),
-('Kansas', -4037, NULL, 'Virginia'),('Delaware', 22550, NULL, 'Utah'),
-('Illinois', 14634, NULL, 'South Carolina, Colorado'),
-('Kansas', 6, NULL, 'South Dakota'),('Delaware', 9, NULL, ''),
-('', 0, NULL, 'Utah, Delaware, Florida, Georgia, Nevada'),
-('Colorado', 8, NULL, 'Montana'),('Maryland', 2689, NULL, 'Hawaii'),
-('Florida', -12306, NULL, 'Delaware'),
-('Indiana', 38567, NULL, 'Iowa, Minnesota, Maine'),
-('Oklahoma', 9, NULL, 'Delaware, Kansas, Oregon, Nebraska, Maryland, Minnesota'),
-('Tennessee', 12460, NULL, NULL),('Kentucky', 0, NULL, 'Ohio'),
-('Nevada', 7, NULL, 'Vermont, Oregon, Oklahoma, Montana'),
-('Nebraska', 61966, NULL, 'Nevada'),('Alaska', 131, NULL, 'Louisiana, Maine'),
-('Wisconsin', 4, NULL, 'Nevada'),('South Carolina', 0, NULL, 'Washington'),
-('West Virginia', 51314, NULL, 'Ohio'),('Louisiana', 0, NULL, ''),
-('Pennsylvania', 0, NULL, 'Iowa, Idaho'),('Arkansas', 14010, NULL, 'Indiana'),
-('Wyoming', -15514, NULL, 'Maine'),('Georgia', 0, NULL, 'N/A'),
-('Kentucky', 1, NULL, 'Idaho'),('Wyoming', 60249, NULL, 'Indiana, Iowa'),
-('Pennsylvania', 69, NULL, 'W'),
-('New Mexico', 11480, NULL, 'Florida, Georgia, Hawaii'),
-('South Carolina', 9, NULL, 'Iowa'),('Virginia', 0, NULL, 'Connecticut'),
-('Mississippi', 19749, NULL, 'Rhode Island'),('Illinois', 5, NULL, 'Virginia'),
-('Texas', -1749, NULL, 'Tennessee'),('Arizona', 28, NULL, 'California'),
-('Florida', 62151, NULL, 'Kansas'),('California', 172, NULL, 'SC'),
-('New Jersey', 0, NULL, 'North Carolina'),('Wyoming', 4, NULL, 'I'),
-('Kansas', 10683, NULL, 'California'),('Arkansas', -14275, NULL, 'K'),
-('Arizona', 5, NULL, 'California, Delaware, Rhode Island, Maryland'),
-('Florida', 0, NULL, 'T'),('Alaska', 241, NULL, 'Virginia');
-ALTER TABLE t1 ENABLE KEYS;
-EXPLAIN
-SELECT * FROM t1 FORCE KEY (PRIMARY , i , c1 , c2)
-WHERE pk = 255 OR i = 22 OR (pk IN (1 , 136) AND c2 IN ('c' , 'w') AND (c1 NOT BETWEEN 'e' AND 'i' OR c2 > 'g')) OR pk != 1 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY,c1,i,c2 NULL NULL NULL 69 Using where
-DROP TABLE t1;
-set optimizer_switch= @optimizer_switch_save;
diff --git a/mysql-test/r/information_schema-big.result b/mysql-test/r/information_schema-big.result
deleted file mode 100644
index cbd8191bc54..00000000000
--- a/mysql-test/r/information_schema-big.result
+++ /dev/null
@@ -1,117 +0,0 @@
-#
-# Bug#18925: subqueries with MIN/MAX functions on INFORMATION_SCHEMA
-#
-SELECT t.table_name, c1.column_name
-FROM information_schema.tables t
-INNER JOIN
-information_schema.columns c1
-ON t.table_schema = c1.table_schema AND
-t.table_name = c1.table_name
-WHERE t.table_schema = 'information_schema' AND
-c1.ordinal_position =
-( SELECT COALESCE(MIN(c2.ordinal_position),1)
-FROM information_schema.columns c2
-WHERE c2.table_schema = t.table_schema AND
-c2.table_name = t.table_name AND
-c2.column_name LIKE '%SCHEMA%'
- )
-AND t.table_name NOT LIKE 'innodb%';
-table_name column_name
-ALL_PLUGINS PLUGIN_NAME
-APPLICABLE_ROLES GRANTEE
-CHARACTER_SETS CHARACTER_SET_NAME
-CLIENT_STATISTICS CLIENT
-COLLATIONS COLLATION_NAME
-COLLATION_CHARACTER_SET_APPLICABILITY COLLATION_NAME
-COLUMNS TABLE_SCHEMA
-COLUMN_PRIVILEGES TABLE_SCHEMA
-ENABLED_ROLES ROLE_NAME
-ENGINES ENGINE
-EVENTS EVENT_SCHEMA
-FILES TABLE_SCHEMA
-GEOMETRY_COLUMNS F_TABLE_SCHEMA
-GLOBAL_STATUS VARIABLE_NAME
-GLOBAL_VARIABLES VARIABLE_NAME
-INDEX_STATISTICS TABLE_SCHEMA
-KEY_CACHES KEY_CACHE_NAME
-KEY_COLUMN_USAGE CONSTRAINT_SCHEMA
-PARAMETERS SPECIFIC_SCHEMA
-PARTITIONS TABLE_SCHEMA
-PLUGINS PLUGIN_NAME
-PROCESSLIST ID
-PROFILING QUERY_ID
-REFERENTIAL_CONSTRAINTS CONSTRAINT_SCHEMA
-ROUTINES ROUTINE_SCHEMA
-SCHEMATA SCHEMA_NAME
-SCHEMA_PRIVILEGES TABLE_SCHEMA
-SESSION_STATUS VARIABLE_NAME
-SESSION_VARIABLES VARIABLE_NAME
-SPATIAL_REF_SYS SRID
-STATISTICS TABLE_SCHEMA
-SYSTEM_VARIABLES VARIABLE_NAME
-TABLES TABLE_SCHEMA
-TABLESPACES TABLESPACE_NAME
-TABLE_CONSTRAINTS CONSTRAINT_SCHEMA
-TABLE_PRIVILEGES TABLE_SCHEMA
-TABLE_STATISTICS TABLE_SCHEMA
-TRIGGERS TRIGGER_SCHEMA
-USER_PRIVILEGES GRANTEE
-USER_STATISTICS USER
-VIEWS TABLE_SCHEMA
-SELECT t.table_name, c1.column_name
-FROM information_schema.tables t
-INNER JOIN
-information_schema.columns c1
-ON t.table_schema = c1.table_schema AND
-t.table_name = c1.table_name
-WHERE t.table_schema = 'information_schema' AND
-c1.ordinal_position =
-( SELECT COALESCE(MIN(c2.ordinal_position),1)
-FROM information_schema.columns c2
-WHERE c2.table_schema = 'information_schema' AND
-c2.table_name = t.table_name AND
-c2.column_name LIKE '%SCHEMA%'
- )
-AND t.table_name NOT LIKE 'innodb%';
-table_name column_name
-ALL_PLUGINS PLUGIN_NAME
-APPLICABLE_ROLES GRANTEE
-CHARACTER_SETS CHARACTER_SET_NAME
-CLIENT_STATISTICS CLIENT
-COLLATIONS COLLATION_NAME
-COLLATION_CHARACTER_SET_APPLICABILITY COLLATION_NAME
-COLUMNS TABLE_SCHEMA
-COLUMN_PRIVILEGES TABLE_SCHEMA
-ENABLED_ROLES ROLE_NAME
-ENGINES ENGINE
-EVENTS EVENT_SCHEMA
-FILES TABLE_SCHEMA
-GEOMETRY_COLUMNS F_TABLE_SCHEMA
-GLOBAL_STATUS VARIABLE_NAME
-GLOBAL_VARIABLES VARIABLE_NAME
-INDEX_STATISTICS TABLE_SCHEMA
-KEY_CACHES KEY_CACHE_NAME
-KEY_COLUMN_USAGE CONSTRAINT_SCHEMA
-PARAMETERS SPECIFIC_SCHEMA
-PARTITIONS TABLE_SCHEMA
-PLUGINS PLUGIN_NAME
-PROCESSLIST ID
-PROFILING QUERY_ID
-REFERENTIAL_CONSTRAINTS CONSTRAINT_SCHEMA
-ROUTINES ROUTINE_SCHEMA
-SCHEMATA SCHEMA_NAME
-SCHEMA_PRIVILEGES TABLE_SCHEMA
-SESSION_STATUS VARIABLE_NAME
-SESSION_VARIABLES VARIABLE_NAME
-SPATIAL_REF_SYS SRID
-STATISTICS TABLE_SCHEMA
-SYSTEM_VARIABLES VARIABLE_NAME
-TABLES TABLE_SCHEMA
-TABLESPACES TABLESPACE_NAME
-TABLE_CONSTRAINTS CONSTRAINT_SCHEMA
-TABLE_PRIVILEGES TABLE_SCHEMA
-TABLE_STATISTICS TABLE_SCHEMA
-TRIGGERS TRIGGER_SCHEMA
-USER_PRIVILEGES GRANTEE
-USER_STATISTICS USER
-VIEWS TABLE_SCHEMA
diff --git a/mysql-test/r/information_schema.result b/mysql-test/r/information_schema.result
deleted file mode 100644
index 5fcda217d01..00000000000
--- a/mysql-test/r/information_schema.result
+++ /dev/null
@@ -1,2191 +0,0 @@
-set global sql_mode="";
-set local sql_mode="";
-DROP TABLE IF EXISTS t0,t1,t2,t3,t4,t5;
-DROP VIEW IF EXISTS v1;
-show variables where variable_name like "skip_show_database";
-Variable_name Value
-skip_show_database OFF
-grant select, update, execute on test.* to mysqltest_2@localhost;
-grant select, update on test.* to mysqltest_1@localhost;
-create user mysqltest_3@localhost;
-create user mysqltest_3;
-select * from information_schema.SCHEMATA where schema_name > 'm';
-CATALOG_NAME SCHEMA_NAME DEFAULT_CHARACTER_SET_NAME DEFAULT_COLLATION_NAME SQL_PATH
-def mtr latin1 latin1_swedish_ci NULL
-def mysql latin1 latin1_swedish_ci NULL
-def performance_schema utf8 utf8_general_ci NULL
-def test latin1 latin1_swedish_ci NULL
-select schema_name from information_schema.schemata;
-schema_name
-information_schema
-mtr
-mysql
-performance_schema
-test
-show databases like 't%';
-Database (t%)
-test
-show databases;
-Database
-information_schema
-mtr
-mysql
-performance_schema
-test
-show databases where `database` = 't%';
-Database
-create database mysqltest;
-create table mysqltest.t1(a int, b VARCHAR(30), KEY string_data (b));
-create table test.t2(a int);
-create table t3(a int, KEY a_data (a));
-create table mysqltest.t4(a int);
-create table t5 (id int auto_increment primary key);
-insert into t5 values (10);
-create view v1 (c) as
-SELECT table_name FROM information_schema.TABLES
-WHERE table_schema IN ('mysql', 'INFORMATION_SCHEMA', 'test', 'mysqltest') AND
-table_name not like 'innodb_%' AND
-table_name not like 'xtradb_%';
-select * from v1;
-c
-ALL_PLUGINS
-APPLICABLE_ROLES
-CHARACTER_SETS
-CLIENT_STATISTICS
-COLLATIONS
-COLLATION_CHARACTER_SET_APPLICABILITY
-COLUMNS
-COLUMN_PRIVILEGES
-ENABLED_ROLES
-ENGINES
-EVENTS
-FILES
-GEOMETRY_COLUMNS
-GLOBAL_STATUS
-GLOBAL_VARIABLES
-INDEX_STATISTICS
-KEY_CACHES
-KEY_COLUMN_USAGE
-PARAMETERS
-PARTITIONS
-PLUGINS
-PROCESSLIST
-PROFILING
-REFERENTIAL_CONSTRAINTS
-ROUTINES
-SCHEMATA
-SCHEMA_PRIVILEGES
-SESSION_STATUS
-SESSION_VARIABLES
-SPATIAL_REF_SYS
-STATISTICS
-SYSTEM_VARIABLES
-TABLES
-TABLESPACES
-TABLE_CONSTRAINTS
-TABLE_PRIVILEGES
-TABLE_STATISTICS
-TRIGGERS
-USER_PRIVILEGES
-USER_STATISTICS
-VIEWS
-column_stats
-columns_priv
-db
-event
-func
-general_log
-gtid_slave_pos
-help_category
-help_keyword
-help_relation
-help_topic
-host
-index_stats
-plugin
-proc
-procs_priv
-proxies_priv
-roles_mapping
-servers
-slow_log
-t1
-t2
-t3
-t4
-t5
-table_stats
-tables_priv
-time_zone
-time_zone_leap_second
-time_zone_name
-time_zone_transition
-time_zone_transition_type
-transaction_registry
-user
-v1
-select c,table_name from v1
-inner join information_schema.TABLES v2 on (v1.c=v2.table_name)
-where v1.c like "t%";
-c table_name
-TABLES TABLES
-TABLESPACES TABLESPACES
-TABLE_CONSTRAINTS TABLE_CONSTRAINTS
-TABLE_PRIVILEGES TABLE_PRIVILEGES
-TABLE_STATISTICS TABLE_STATISTICS
-TRIGGERS TRIGGERS
-t1 t1
-t2 t2
-t3 t3
-t4 t4
-t5 t5
-table_stats table_stats
-tables_priv tables_priv
-time_zone time_zone
-time_zone_leap_second time_zone_leap_second
-time_zone_name time_zone_name
-time_zone_transition time_zone_transition
-time_zone_transition_type time_zone_transition_type
-transaction_registry transaction_registry
-select c,table_name from v1
-left join information_schema.TABLES v2 on (v1.c=v2.table_name)
-where v1.c like "t%";
-c table_name
-TABLES TABLES
-TABLESPACES TABLESPACES
-TABLE_CONSTRAINTS TABLE_CONSTRAINTS
-TABLE_PRIVILEGES TABLE_PRIVILEGES
-TABLE_STATISTICS TABLE_STATISTICS
-TRIGGERS TRIGGERS
-t1 t1
-t2 t2
-t3 t3
-t4 t4
-t5 t5
-table_stats table_stats
-tables_priv tables_priv
-time_zone time_zone
-time_zone_leap_second time_zone_leap_second
-time_zone_name time_zone_name
-time_zone_transition time_zone_transition
-time_zone_transition_type time_zone_transition_type
-transaction_registry transaction_registry
-select c, v2.table_name from v1
-right join information_schema.TABLES v2 on (v1.c=v2.table_name)
-where v1.c like "t%";
-c table_name
-TABLES TABLES
-TABLESPACES TABLESPACES
-TABLE_CONSTRAINTS TABLE_CONSTRAINTS
-TABLE_PRIVILEGES TABLE_PRIVILEGES
-TABLE_STATISTICS TABLE_STATISTICS
-TRIGGERS TRIGGERS
-t1 t1
-t2 t2
-t3 t3
-t4 t4
-t5 t5
-table_stats table_stats
-tables_priv tables_priv
-time_zone time_zone
-time_zone_leap_second time_zone_leap_second
-time_zone_name time_zone_name
-time_zone_transition time_zone_transition
-time_zone_transition_type time_zone_transition_type
-transaction_registry transaction_registry
-select table_name from information_schema.TABLES
-where table_schema = "mysqltest" and table_name like "t%";
-table_name
-t1
-t4
-select * from information_schema.STATISTICS where TABLE_SCHEMA = "mysqltest";
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT
-def mysqltest t1 1 mysqltest string_data 1 b A NULL NULL NULL YES BTREE
-show keys from t3 where Key_name = "a_data";
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t3 1 a_data 1 a A NULL NULL NULL YES BTREE
-show tables like 't%';
-Tables_in_test (t%)
-t2
-t3
-t5
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t2 MyISAM 10 Fixed 0 0 0 # 1024 0 NULL # # NULL latin1_swedish_ci NULL # N
-t3 MyISAM 10 Fixed 0 0 0 # 1024 0 NULL # # NULL latin1_swedish_ci NULL # N
-t5 MyISAM 10 Fixed 1 7 7 # 2048 0 11 # # NULL latin1_swedish_ci NULL # N
-v1 NULL NULL NULL NULL NULL NULL # NULL NULL NULL # # NULL NULL NULL NULL VIEW # NULL
-show full columns from t3 like "a%";
-Field Type Collation Null Key Default Extra Privileges Comment
-a int(11) NULL YES MUL NULL select,insert,update,references
-show full columns from mysql.db like "Insert%";
-Field Type Collation Null Key Default Extra Privileges Comment
-Insert_priv enum('N','Y') utf8_general_ci NO N select,insert,update,references
-show full columns from v1;
-Field Type Collation Null Key Default Extra Privileges Comment
-c varchar(64) utf8_general_ci NO select,insert,update,references
-select * from information_schema.COLUMNS where table_name="t1"
-and column_name= "a";
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT IS_GENERATED GENERATION_EXPRESSION
-def mysqltest t1 a 1 NULL YES int NULL NULL 10 0 NULL NULL NULL int(11) select,insert,update,references NEVER NULL
-show columns from mysqltest.t1 where field like "%a%";
-Field Type Null Key Default Extra
-a int(11) YES NULL
-create view mysqltest.v1 (c) as select a from mysqltest.t1;
-grant select (a) on mysqltest.t1 to mysqltest_2@localhost;
-grant select on mysqltest.v1 to mysqltest_3;
-connect user3,localhost,mysqltest_2,,;
-connection user3;
-select table_name, column_name, privileges from information_schema.columns
-where table_schema = 'mysqltest' and table_name = 't1';
-table_name column_name privileges
-t1 a select
-show columns from mysqltest.t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-connect user4,localhost,mysqltest_3,,mysqltest;
-connection user4;
-select table_name, column_name, privileges from information_schema.columns
-where table_schema = 'mysqltest' and table_name = 'v1';
-table_name column_name privileges
-v1 c select
-explain select * from v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-connection default;
-disconnect user4;
-drop view v1, mysqltest.v1;
-drop tables mysqltest.t4, mysqltest.t1, t2, t3, t5;
-drop database mysqltest;
-select * from information_schema.CHARACTER_SETS
-where CHARACTER_SET_NAME like 'latin1%';
-CHARACTER_SET_NAME DEFAULT_COLLATE_NAME DESCRIPTION MAXLEN
-latin1 latin1_swedish_ci cp1252 West European 1
-SHOW CHARACTER SET LIKE 'latin1%';
-Charset Description Default collation Maxlen
-latin1 cp1252 West European latin1_swedish_ci 1
-SHOW CHARACTER SET WHERE charset like 'latin1%';
-Charset Description Default collation Maxlen
-latin1 cp1252 West European latin1_swedish_ci 1
-select * from information_schema.COLLATIONS
-where COLLATION_NAME like 'latin1%';
-COLLATION_NAME CHARACTER_SET_NAME ID IS_DEFAULT IS_COMPILED SORTLEN
-latin1_german1_ci latin1 5 # 1
-latin1_swedish_ci latin1 8 Yes # 1
-latin1_danish_ci latin1 15 # 1
-latin1_german2_ci latin1 31 # 2
-latin1_bin latin1 47 # 1
-latin1_general_ci latin1 48 # 1
-latin1_general_cs latin1 49 # 1
-latin1_spanish_ci latin1 94 # 1
-latin1_swedish_nopad_ci latin1 1032 # 1
-latin1_nopad_bin latin1 1071 # 1
-SHOW COLLATION LIKE 'latin1%';
-Collation Charset Id Default Compiled Sortlen
-latin1_german1_ci latin1 5 # 1
-latin1_swedish_ci latin1 8 Yes # 1
-latin1_danish_ci latin1 15 # 1
-latin1_german2_ci latin1 31 # 2
-latin1_bin latin1 47 # 1
-latin1_general_ci latin1 48 # 1
-latin1_general_cs latin1 49 # 1
-latin1_spanish_ci latin1 94 # 1
-latin1_swedish_nopad_ci latin1 1032 # 1
-latin1_nopad_bin latin1 1071 # 1
-SHOW COLLATION WHERE collation like 'latin1%';
-Collation Charset Id Default Compiled Sortlen
-latin1_german1_ci latin1 5 # 1
-latin1_swedish_ci latin1 8 Yes # 1
-latin1_danish_ci latin1 15 # 1
-latin1_german2_ci latin1 31 # 2
-latin1_bin latin1 47 # 1
-latin1_general_ci latin1 48 # 1
-latin1_general_cs latin1 49 # 1
-latin1_spanish_ci latin1 94 # 1
-latin1_swedish_nopad_ci latin1 1032 # 1
-latin1_nopad_bin latin1 1071 # 1
-select * from information_schema.COLLATION_CHARACTER_SET_APPLICABILITY
-where COLLATION_NAME like 'latin1%';
-COLLATION_NAME CHARACTER_SET_NAME
-latin1_german1_ci latin1
-latin1_swedish_ci latin1
-latin1_danish_ci latin1
-latin1_german2_ci latin1
-latin1_bin latin1
-latin1_general_ci latin1
-latin1_general_cs latin1
-latin1_spanish_ci latin1
-latin1_swedish_nopad_ci latin1
-latin1_nopad_bin latin1
-drop procedure if exists sel2;
-drop function if exists sub1;
-drop function if exists sub2;
-create function sub1(i int) returns int
-return i+1;
-create procedure sel2()
-begin
-select * from t1;
-select * from t2;
-end|
-select parameter_style, sql_data_access, dtd_identifier
-from information_schema.routines where routine_schema='test';
-parameter_style sql_data_access dtd_identifier
-SQL CONTAINS SQL NULL
-SQL CONTAINS SQL int(11)
-show procedure status where db='test';
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test sel2 PROCEDURE root@localhost # # DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-show function status where db='test';
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test sub1 FUNCTION root@localhost # # DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-select a.ROUTINE_NAME from information_schema.ROUTINES a,
-information_schema.SCHEMATA b where
-a.ROUTINE_SCHEMA = b.SCHEMA_NAME AND b.SCHEMA_NAME='test';
-ROUTINE_NAME
-sel2
-sub1
-explain select a.ROUTINE_NAME from information_schema.ROUTINES a,
-information_schema.SCHEMATA b where
-a.ROUTINE_SCHEMA = b.SCHEMA_NAME;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE # ALL NULL NULL NULL NULL NULL
-1 SIMPLE # ALL NULL NULL NULL NULL NULL Using where; Using join buffer (flat, BNL join)
-select a.ROUTINE_NAME, b.name from information_schema.ROUTINES a,
-mysql.proc b where a.ROUTINE_NAME = convert(b.name using utf8) AND a.ROUTINE_SCHEMA='test' order by 1;
-ROUTINE_NAME name
-sel2 sel2
-sub1 sub1
-select count(*) from information_schema.ROUTINES where routine_schema='test';
-count(*)
-2
-create view v1 as select routine_schema, routine_name from information_schema.routines where routine_schema='test'
-order by routine_schema, routine_name;
-select * from v1;
-routine_schema routine_name
-test sel2
-test sub1
-drop view v1;
-connect user1,localhost,mysqltest_1,,;
-connection user1;
-select ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES;
-ROUTINE_NAME ROUTINE_DEFINITION
-show create function sub1;
-ERROR 42000: FUNCTION sub1 does not exist
-connection user3;
-select ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES;
-ROUTINE_NAME ROUTINE_DEFINITION
-sel2 NULL
-sub1 NULL
-connection default;
-grant all privileges on test.* to mysqltest_1@localhost;
-connect user2,localhost,mysqltest_1,,;
-connection user2;
-select ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES;
-ROUTINE_NAME ROUTINE_DEFINITION
-sel2 NULL
-sub1 NULL
-create function sub2(i int) returns int
-return i+1;
-select ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES;
-ROUTINE_NAME ROUTINE_DEFINITION
-sel2 NULL
-sub1 NULL
-sub2 return i+1
-show create procedure sel2;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-sel2 NULL latin1 latin1_swedish_ci latin1_swedish_ci
-show create function sub1;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-sub1 NULL latin1 latin1_swedish_ci latin1_swedish_ci
-show create function sub2;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-sub2 CREATE DEFINER=`mysqltest_1`@`localhost` FUNCTION `sub2`(i int) RETURNS int(11)
-return i+1 latin1 latin1_swedish_ci latin1_swedish_ci
-show function status like "sub2";
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test sub2 FUNCTION mysqltest_1@localhost # # DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-connection default;
-disconnect user1;
-disconnect user3;
-drop function sub2;
-show create procedure sel2;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-sel2 CREATE DEFINER=`root`@`localhost` PROCEDURE `sel2`()
-begin
-select * from t1;
-select * from t2;
-end latin1 latin1_swedish_ci latin1_swedish_ci
-create view v0 (c) as select schema_name from information_schema.schemata;
-select * from v0;
-c
-information_schema
-mtr
-mysql
-performance_schema
-test
-explain select * from v0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE # ALL NULL NULL NULL NULL NULL
-create view v1 (c) as select table_name from information_schema.tables
-where table_name="v1";
-select * from v1;
-c
-v1
-create view v2 (c) as select column_name from information_schema.columns
-where table_name="v2";
-select * from v2;
-c
-c
-create view v3 (c) as select CHARACTER_SET_NAME from information_schema.character_sets
-where CHARACTER_SET_NAME like "latin1%";
-select * from v3;
-c
-latin1
-create view v4 (c) as select COLLATION_NAME from information_schema.collations
-where COLLATION_NAME like "latin1%";
-select * from v4;
-c
-latin1_german1_ci
-latin1_swedish_ci
-latin1_danish_ci
-latin1_german2_ci
-latin1_bin
-latin1_general_ci
-latin1_general_cs
-latin1_spanish_ci
-latin1_swedish_nopad_ci
-latin1_nopad_bin
-show keys from v4;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-select * from information_schema.views where TABLE_NAME like "v%";
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def test v0 select `information_schema`.`schemata`.`SCHEMA_NAME` AS `c` from `information_schema`.`schemata` NONE NO root@localhost DEFINER latin1 latin1_swedish_ci UNDEFINED
-def test v1 select `information_schema`.`tables`.`TABLE_NAME` AS `c` from `information_schema`.`tables` where `information_schema`.`tables`.`TABLE_NAME` = 'v1' NONE NO root@localhost DEFINER latin1 latin1_swedish_ci UNDEFINED
-def test v2 select `information_schema`.`columns`.`COLUMN_NAME` AS `c` from `information_schema`.`columns` where `information_schema`.`columns`.`TABLE_NAME` = 'v2' NONE NO root@localhost DEFINER latin1 latin1_swedish_ci UNDEFINED
-def test v3 select `information_schema`.`character_sets`.`CHARACTER_SET_NAME` AS `c` from `information_schema`.`character_sets` where `information_schema`.`character_sets`.`CHARACTER_SET_NAME` like 'latin1%' NONE NO root@localhost DEFINER latin1 latin1_swedish_ci UNDEFINED
-def test v4 select `information_schema`.`collations`.`COLLATION_NAME` AS `c` from `information_schema`.`collations` where `information_schema`.`collations`.`COLLATION_NAME` like 'latin1%' NONE NO root@localhost DEFINER latin1 latin1_swedish_ci UNDEFINED
-drop view v0, v1, v2, v3, v4;
-create table t1 (a int);
-grant select,update,insert on t1 to mysqltest_1@localhost;
-grant select (a), update (a),insert(a), references(a) on t1 to mysqltest_1@localhost;
-grant all on test.* to mysqltest_1@localhost with grant option;
-select * from information_schema.USER_PRIVILEGES where grantee like '%mysqltest_1%';
-GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
-'mysqltest_1'@'localhost' def USAGE NO
-select * from information_schema.SCHEMA_PRIVILEGES where grantee like '%mysqltest_1%';
-GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
-'mysqltest_1'@'localhost' def test SELECT YES
-'mysqltest_1'@'localhost' def test INSERT YES
-'mysqltest_1'@'localhost' def test UPDATE YES
-'mysqltest_1'@'localhost' def test DELETE YES
-'mysqltest_1'@'localhost' def test CREATE YES
-'mysqltest_1'@'localhost' def test DROP YES
-'mysqltest_1'@'localhost' def test REFERENCES YES
-'mysqltest_1'@'localhost' def test INDEX YES
-'mysqltest_1'@'localhost' def test ALTER YES
-'mysqltest_1'@'localhost' def test CREATE TEMPORARY TABLES YES
-'mysqltest_1'@'localhost' def test LOCK TABLES YES
-'mysqltest_1'@'localhost' def test EXECUTE YES
-'mysqltest_1'@'localhost' def test CREATE VIEW YES
-'mysqltest_1'@'localhost' def test SHOW VIEW YES
-'mysqltest_1'@'localhost' def test CREATE ROUTINE YES
-'mysqltest_1'@'localhost' def test ALTER ROUTINE YES
-'mysqltest_1'@'localhost' def test EVENT YES
-'mysqltest_1'@'localhost' def test TRIGGER YES
-'mysqltest_1'@'localhost' def test DELETE VERSIONING ROWS YES
-select * from information_schema.TABLE_PRIVILEGES where grantee like '%mysqltest_1%';
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
-'mysqltest_1'@'localhost' def test t1 SELECT NO
-'mysqltest_1'@'localhost' def test t1 INSERT NO
-'mysqltest_1'@'localhost' def test t1 UPDATE NO
-select * from information_schema.COLUMN_PRIVILEGES where grantee like '%mysqltest_1%';
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
-'mysqltest_1'@'localhost' def test t1 a SELECT NO
-'mysqltest_1'@'localhost' def test t1 a INSERT NO
-'mysqltest_1'@'localhost' def test t1 a UPDATE NO
-'mysqltest_1'@'localhost' def test t1 a REFERENCES NO
-delete from mysql.user where user like 'mysqltest%';
-delete from mysql.db where user like 'mysqltest%';
-delete from mysql.tables_priv where user like 'mysqltest%';
-delete from mysql.columns_priv where user like 'mysqltest%';
-flush privileges;
-drop table t1;
-create table t1 (a int null, primary key(a));
-alter table t1 add constraint constraint_1 unique (a);
-alter table t1 add constraint unique key_1(a);
-Warnings:
-Note 1831 Duplicate index `key_1`. This is deprecated and will be disallowed in a future release
-alter table t1 add constraint constraint_2 unique key_2(a);
-Warnings:
-Note 1831 Duplicate index `key_2`. This is deprecated and will be disallowed in a future release
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- PRIMARY KEY (`a`),
- UNIQUE KEY `constraint_1` (`a`),
- UNIQUE KEY `key_1` (`a`),
- UNIQUE KEY `key_2` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from information_schema.TABLE_CONSTRAINTS where
-TABLE_SCHEMA= "test";
-CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_SCHEMA TABLE_NAME CONSTRAINT_TYPE
-def test PRIMARY test t1 PRIMARY KEY
-def test constraint_1 test t1 UNIQUE
-def test key_1 test t1 UNIQUE
-def test key_2 test t1 UNIQUE
-select * from information_schema.KEY_COLUMN_USAGE where
-TABLE_SCHEMA= "test";
-CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION POSITION_IN_UNIQUE_CONSTRAINT REFERENCED_TABLE_SCHEMA REFERENCED_TABLE_NAME REFERENCED_COLUMN_NAME
-def test PRIMARY def test t1 a 1 NULL NULL NULL NULL
-def test constraint_1 def test t1 a 1 NULL NULL NULL NULL
-def test key_1 def test t1 a 1 NULL NULL NULL NULL
-def test key_2 def test t1 a 1 NULL NULL NULL NULL
-connection user2;
-select table_name from information_schema.TABLES where table_schema like "test%";
-table_name
-t1
-select table_name,column_name from information_schema.COLUMNS where table_schema like "test%";
-table_name column_name
-t1 a
-select ROUTINE_NAME from information_schema.ROUTINES;
-ROUTINE_NAME
-sel2
-sub1
-disconnect user2;
-connection default;
-delete from mysql.user where user='mysqltest_1';
-drop table t1;
-drop procedure sel2;
-drop function sub1;
-create table t1(a int);
-create view v1 (c) as select a from t1 with check option;
-create view v2 (c) as select a from t1 WITH LOCAL CHECK OPTION;
-create view v3 (c) as select a from t1 WITH CASCADED CHECK OPTION;
-select * from information_schema.views;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def test v1 select `test`.`t1`.`a` AS `c` from `test`.`t1` CASCADED YES root@localhost DEFINER latin1 latin1_swedish_ci UNDEFINED
-def test v2 select `test`.`t1`.`a` AS `c` from `test`.`t1` LOCAL YES root@localhost DEFINER latin1 latin1_swedish_ci UNDEFINED
-def test v3 select `test`.`t1`.`a` AS `c` from `test`.`t1` CASCADED YES root@localhost DEFINER latin1 latin1_swedish_ci UNDEFINED
-grant select (a) on test.t1 to joe@localhost with grant option;
-select * from INFORMATION_SCHEMA.COLUMN_PRIVILEGES;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
-'joe'@'localhost' def test t1 a SELECT YES
-select * from INFORMATION_SCHEMA.TABLE_PRIVILEGES;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
-drop view v1, v2, v3;
-drop table t1;
-delete from mysql.user where user='joe';
-delete from mysql.db where user='joe';
-delete from mysql.tables_priv where user='joe';
-delete from mysql.columns_priv where user='joe';
-flush privileges;
-create table t1 (a int not null auto_increment,b int, primary key (a));
-insert into t1 values (1,1),(NULL,3),(NULL,4);
-select AUTO_INCREMENT from information_schema.tables where table_name = 't1';
-AUTO_INCREMENT
-4
-drop table t1;
-create table t1 (s1 int);
-insert into t1 values (0),(9),(0);
-select s1 from t1 where s1 in (select version from
-information_schema.tables) union select version from
-information_schema.tables;
-s1
-10
-11
-drop table t1;
-SHOW CREATE TABLE INFORMATION_SCHEMA.character_sets;
-Table Create Table
-CHARACTER_SETS CREATE TEMPORARY TABLE `CHARACTER_SETS` (
- `CHARACTER_SET_NAME` varchar(32) NOT NULL DEFAULT '',
- `DEFAULT_COLLATE_NAME` varchar(32) NOT NULL DEFAULT '',
- `DESCRIPTION` varchar(60) NOT NULL DEFAULT '',
- `MAXLEN` bigint(3) NOT NULL DEFAULT 0
-) ENGINE=MEMORY DEFAULT CHARSET=utf8
-set names latin2;
-SHOW CREATE TABLE INFORMATION_SCHEMA.character_sets;
-Table Create Table
-CHARACTER_SETS CREATE TEMPORARY TABLE `CHARACTER_SETS` (
- `CHARACTER_SET_NAME` varchar(32) NOT NULL DEFAULT '',
- `DEFAULT_COLLATE_NAME` varchar(32) NOT NULL DEFAULT '',
- `DESCRIPTION` varchar(60) NOT NULL DEFAULT '',
- `MAXLEN` bigint(3) NOT NULL DEFAULT 0
-) ENGINE=MEMORY DEFAULT CHARSET=utf8
-set names latin1;
-create table t1 select * from information_schema.CHARACTER_SETS
-where CHARACTER_SET_NAME like "latin1";
-select * from t1;
-CHARACTER_SET_NAME DEFAULT_COLLATE_NAME DESCRIPTION MAXLEN
-latin1 latin1_swedish_ci cp1252 West European 1
-alter table t1 default character set utf8;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `CHARACTER_SET_NAME` varchar(32) NOT NULL DEFAULT '',
- `DEFAULT_COLLATE_NAME` varchar(32) NOT NULL DEFAULT '',
- `DESCRIPTION` varchar(60) NOT NULL DEFAULT '',
- `MAXLEN` bigint(3) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-drop table t1;
-create view v1 as select * from information_schema.TABLES;
-drop view v1;
-create table t1(a NUMERIC(5,3), b NUMERIC(5,1), c float(5,2),
-d NUMERIC(6,4), e float, f DECIMAL(6,3), g int(11), h DOUBLE(10,3),
-i DOUBLE);
-select COLUMN_NAME,COLUMN_TYPE, CHARACTER_MAXIMUM_LENGTH,
-CHARACTER_OCTET_LENGTH, NUMERIC_PRECISION, NUMERIC_SCALE
-from information_schema.columns where table_name= 't1';
-COLUMN_NAME COLUMN_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE
-a decimal(5,3) NULL NULL 5 3
-b decimal(5,1) NULL NULL 5 1
-c float(5,2) NULL NULL 5 2
-d decimal(6,4) NULL NULL 6 4
-e float NULL NULL 12 NULL
-f decimal(6,3) NULL NULL 6 3
-g int(11) NULL NULL 10 0
-h double(10,3) NULL NULL 10 3
-i double NULL NULL 22 NULL
-drop table t1;
-create table t115 as select table_name, column_name, column_type
-from information_schema.columns where table_name = 'proc';
-select * from t115;
-table_name column_name column_type
-proc db char(64)
-proc name char(64)
-proc type enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY')
-proc specific_name char(64)
-proc language enum('SQL')
-proc sql_data_access enum('CONTAINS_SQL','NO_SQL','READS_SQL_DATA','MODIFIES_SQL_DATA')
-proc is_deterministic enum('YES','NO')
-proc security_type enum('INVOKER','DEFINER')
-proc param_list blob
-proc returns longblob
-proc body longblob
-proc definer char(141)
-proc created timestamp
-proc modified timestamp
-proc sql_mode set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH','EMPTY_STRING_IS_NULL','SIMULTANEOUS_ASSIGNMENT')
-proc comment text
-proc character_set_client char(32)
-proc collation_connection char(32)
-proc db_collation char(32)
-proc body_utf8 longblob
-proc aggregate enum('NONE','GROUP')
-drop table t115;
-create procedure p108 () begin declare c cursor for select data_type
-from information_schema.columns; open c; open c; end;//
-call p108()//
-ERROR 24000: Cursor is already open
-drop procedure p108;
-create view v1 as select A1.table_name from information_schema.TABLES A1
-where table_name= "user";
-select * from v1;
-table_name
-user
-drop view v1;
-create view vo as select 'a' union select 'a';
-show index from vo;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-select * from information_schema.TABLE_CONSTRAINTS where
-TABLE_NAME= "vo";
-CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_SCHEMA TABLE_NAME CONSTRAINT_TYPE
-select * from information_schema.KEY_COLUMN_USAGE where
-TABLE_NAME= "vo";
-CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION POSITION_IN_UNIQUE_CONSTRAINT REFERENCED_TABLE_SCHEMA REFERENCED_TABLE_NAME REFERENCED_COLUMN_NAME
-drop view vo;
-select TABLE_NAME,TABLE_TYPE,ENGINE
-from information_schema.tables
-where table_schema='information_schema' limit 2;
-TABLE_NAME TABLE_TYPE ENGINE
-ALL_PLUGINS SYSTEM VIEW Aria
-APPLICABLE_ROLES SYSTEM VIEW MEMORY
-show tables from information_schema like "T%";
-Tables_in_information_schema (T%)
-TABLES
-TABLESPACES
-TABLE_CONSTRAINTS
-TABLE_PRIVILEGES
-TABLE_STATISTICS
-TRIGGERS
-create database information_schema;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-use information_schema;
-show full tables like "T%";
-Tables_in_information_schema (T%) Table_type
-TABLES SYSTEM VIEW
-TABLESPACES SYSTEM VIEW
-TABLE_CONSTRAINTS SYSTEM VIEW
-TABLE_PRIVILEGES SYSTEM VIEW
-TABLE_STATISTICS SYSTEM VIEW
-TRIGGERS SYSTEM VIEW
-create table t1(a int);
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-use test;
-show tables;
-Tables_in_test
-use information_schema;
-show tables like "T%";
-Tables_in_information_schema (T%)
-TABLES
-TABLESPACES
-TABLE_CONSTRAINTS
-TABLE_PRIVILEGES
-TABLE_STATISTICS
-TRIGGERS
-select table_name from tables where table_name='user';
-table_name
-user
-select column_name, privileges from columns
-where table_name='user' and column_name like '%o%';
-column_name privileges
-Host select,insert,update,references
-Password select,insert,update,references
-Drop_priv select,insert,update,references
-Reload_priv select,insert,update,references
-Shutdown_priv select,insert,update,references
-Process_priv select,insert,update,references
-Show_db_priv select,insert,update,references
-Lock_tables_priv select,insert,update,references
-Show_view_priv select,insert,update,references
-Create_routine_priv select,insert,update,references
-Alter_routine_priv select,insert,update,references
-Delete_history_priv select,insert,update,references
-max_questions select,insert,update,references
-max_connections select,insert,update,references
-max_user_connections select,insert,update,references
-authentication_string select,insert,update,references
-password_expired select,insert,update,references
-is_role select,insert,update,references
-default_role select,insert,update,references
-use test;
-create function sub1(i int) returns int
-return i+1;
-create table t1(f1 int);
-create view v2 (c) as select f1 from t1;
-create view v3 (c) as select sub1(1);
-create table t4(f1 int, KEY f1_key (f1));
-drop table t1;
-drop function sub1;
-select table_name from information_schema.views
-where table_schema='test';
-table_name
-v2
-v3
-select table_name from information_schema.views
-where table_schema='test';
-table_name
-v2
-v3
-select column_name from information_schema.columns
-where table_schema='test' and table_name='t4';
-column_name
-f1
-select column_name from information_schema.columns
-where table_schema='test' and table_name='v2';
-column_name
-Warnings:
-Warning 1356 View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-select column_name from information_schema.columns
-where table_schema='test' and table_name='v3';
-column_name
-Warnings:
-Warning 1356 View 'test.v3' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-select index_name from information_schema.statistics where table_schema='test';
-index_name
-f1_key
-select constraint_name from information_schema.table_constraints
-where table_schema='test';
-constraint_name
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `test`.`t1`.`f1` AS `c` from `t1` latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-show create table v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select `sub1`(1) AS `c` latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'test.v3' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-drop view v2;
-drop view v3;
-drop table t4;
-select * from information_schema.table_names;
-ERROR 42S02: Unknown table 'table_names' in information_schema
-select column_type from information_schema.columns
-where table_schema="information_schema" and table_name="COLUMNS" and
-(column_name="character_set_name" or column_name="collation_name");
-column_type
-varchar(32)
-varchar(32)
-select TABLE_ROWS from information_schema.tables where
-table_schema="information_schema" and table_name="COLUMNS";
-TABLE_ROWS
-NULL
-select table_type from information_schema.tables
-where table_schema="mysql" and table_name="user";
-table_type
-BASE TABLE
-show open tables where `table` like "user";
-Database Table In_use Name_locked
-mysql user 0 0
-show status where variable_name like "%database%";
-Variable_name Value
-Acl_database_grants 2
-Com_show_databases 3
-show variables where variable_name like "skip_show_databas";
-Variable_name Value
-show global status like "Threads_running";
-Variable_name Value
-Threads_running #
-create table t1(f1 int);
-create table t2(f2 int);
-create view v1 as select * from t1, t2;
-set @got_val= (select count(*) from information_schema.columns);
-drop view v1;
-drop table t1, t2;
-use test;
-CREATE TABLE t_crashme ( f1 BIGINT);
-CREATE VIEW a1 (t_CRASHME) AS SELECT f1 FROM t_crashme GROUP BY f1;
-CREATE VIEW a2 AS SELECT t_CRASHME FROM a1;
-count(*)
-68
-drop view a2, a1;
-drop table t_crashme;
-select table_schema,table_name, column_name from
-information_schema.columns
-where data_type = 'longtext' and table_schema != 'performance_schema'
-order by binary table_name, ordinal_position;
-table_schema table_name column_name
-information_schema ALL_PLUGINS PLUGIN_DESCRIPTION
-information_schema COLUMNS COLUMN_DEFAULT
-information_schema COLUMNS COLUMN_TYPE
-information_schema COLUMNS GENERATION_EXPRESSION
-information_schema EVENTS EVENT_DEFINITION
-information_schema PARAMETERS DTD_IDENTIFIER
-information_schema PARTITIONS PARTITION_EXPRESSION
-information_schema PARTITIONS SUBPARTITION_EXPRESSION
-information_schema PARTITIONS PARTITION_DESCRIPTION
-information_schema PLUGINS PLUGIN_DESCRIPTION
-information_schema PROCESSLIST INFO
-information_schema ROUTINES DTD_IDENTIFIER
-information_schema ROUTINES ROUTINE_DEFINITION
-information_schema ROUTINES ROUTINE_COMMENT
-information_schema SYSTEM_VARIABLES ENUM_VALUE_LIST
-information_schema TRIGGERS ACTION_CONDITION
-information_schema TRIGGERS ACTION_STATEMENT
-information_schema VIEWS VIEW_DEFINITION
-select table_name, column_name, data_type from information_schema.columns
-where data_type = 'datetime' and table_name not like 'innodb_%'
-order by binary table_name, ordinal_position;
-table_name column_name data_type
-EVENTS EXECUTE_AT datetime
-EVENTS STARTS datetime
-EVENTS ENDS datetime
-EVENTS CREATED datetime
-EVENTS LAST_ALTERED datetime
-EVENTS LAST_EXECUTED datetime
-FILES CREATION_TIME datetime
-FILES LAST_UPDATE_TIME datetime
-FILES LAST_ACCESS_TIME datetime
-FILES CREATE_TIME datetime
-FILES UPDATE_TIME datetime
-FILES CHECK_TIME datetime
-PARTITIONS CREATE_TIME datetime
-PARTITIONS UPDATE_TIME datetime
-PARTITIONS CHECK_TIME datetime
-ROUTINES CREATED datetime
-ROUTINES LAST_ALTERED datetime
-TABLES CREATE_TIME datetime
-TABLES UPDATE_TIME datetime
-TABLES CHECK_TIME datetime
-TRIGGERS CREATED datetime
-event execute_at datetime
-event last_executed datetime
-event starts datetime
-event ends datetime
-SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES A
-WHERE NOT EXISTS
-(SELECT * FROM INFORMATION_SCHEMA.COLUMNS B
-WHERE A.TABLE_SCHEMA = B.TABLE_SCHEMA
-AND A.TABLE_NAME = B.TABLE_NAME);
-COUNT(*)
-0
-create table t1
-( x_bigint BIGINT,
-x_integer INTEGER,
-x_smallint SMALLINT,
-x_decimal DECIMAL(5,3),
-x_numeric NUMERIC(5,3),
-x_real REAL,
-x_float FLOAT,
-x_double_precision DOUBLE PRECISION );
-SELECT COLUMN_NAME, CHARACTER_MAXIMUM_LENGTH, CHARACTER_OCTET_LENGTH
-FROM INFORMATION_SCHEMA.COLUMNS
-WHERE TABLE_NAME= 't1';
-COLUMN_NAME CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH
-x_bigint NULL NULL
-x_integer NULL NULL
-x_smallint NULL NULL
-x_decimal NULL NULL
-x_numeric NULL NULL
-x_real NULL NULL
-x_float NULL NULL
-x_double_precision NULL NULL
-drop table t1;
-grant select on test.* to mysqltest_4@localhost;
-connect user10261,localhost,mysqltest_4,,;
-connection user10261;
-SELECT TABLE_NAME, COLUMN_NAME, PRIVILEGES FROM INFORMATION_SCHEMA.COLUMNS
-where COLUMN_NAME='TABLE_NAME' and table_name not like 'innodb%';
-TABLE_NAME COLUMN_NAME PRIVILEGES
-COLUMNS TABLE_NAME select
-COLUMN_PRIVILEGES TABLE_NAME select
-FILES TABLE_NAME select
-INDEX_STATISTICS TABLE_NAME select
-KEY_COLUMN_USAGE TABLE_NAME select
-PARTITIONS TABLE_NAME select
-REFERENTIAL_CONSTRAINTS TABLE_NAME select
-STATISTICS TABLE_NAME select
-TABLES TABLE_NAME select
-TABLE_CONSTRAINTS TABLE_NAME select
-TABLE_PRIVILEGES TABLE_NAME select
-TABLE_STATISTICS TABLE_NAME select
-VIEWS TABLE_NAME select
-connection default;
-disconnect user10261;
-delete from mysql.user where user='mysqltest_4';
-delete from mysql.db where user='mysqltest_4';
-flush privileges;
-create table t1 (i int, j int);
-create trigger trg1 before insert on t1 for each row
-begin
-if new.j > 10 then
-set new.j := 10;
-end if;
-end|
-create trigger trg2 before update on t1 for each row
-begin
-if old.i % 2 = 0 then
-set new.j := -1;
-end if;
-end|
-create trigger trg3 after update on t1 for each row
-begin
-if new.j = -1 then
-set @fired:= "Yes";
-end if;
-end|
-show triggers;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg1 INSERT t1 begin
-if new.j > 10 then
-set new.j := 10;
-end if;
-end BEFORE # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-trg2 UPDATE t1 begin
-if old.i % 2 = 0 then
-set new.j := -1;
-end if;
-end BEFORE # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-trg3 UPDATE t1 begin
-if new.j = -1 then
-set @fired:= "Yes";
-end if;
-end AFTER # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-select * from information_schema.triggers where trigger_schema in ('mysql', 'information_schema', 'test', 'mysqltest');
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def test trg1 INSERT def test t1 1 NULL begin
-if new.j > 10 then
-set new.j := 10;
-end if;
-end ROW BEFORE NULL NULL OLD NEW # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-def test trg2 UPDATE def test t1 1 NULL begin
-if old.i % 2 = 0 then
-set new.j := -1;
-end if;
-end ROW BEFORE NULL NULL OLD NEW # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-def test trg3 UPDATE def test t1 1 NULL begin
-if new.j = -1 then
-set @fired:= "Yes";
-end if;
-end ROW AFTER NULL NULL OLD NEW # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-drop trigger trg1;
-drop trigger trg2;
-drop trigger trg3;
-drop table t1;
-create database mysqltest;
-create table mysqltest.t1 (f1 int, f2 int);
-create table mysqltest.t2 (f1 int);
-grant select (f1) on mysqltest.t1 to user1@localhost;
-grant select on mysqltest.t2 to user2@localhost;
-grant select on mysqltest.* to user3@localhost;
-grant select on *.* to user4@localhost;
-connect con1,localhost,user1,,mysqltest;
-connect con2,localhost,user2,,mysqltest;
-connect con3,localhost,user3,,mysqltest;
-connect con4,localhost,user4,,;
-connection con1;
-select * from information_schema.column_privileges order by grantee;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
-'user1'@'localhost' def mysqltest t1 f1 SELECT NO
-select * from information_schema.table_privileges order by grantee;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
-select * from information_schema.schema_privileges order by grantee;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
-select * from information_schema.user_privileges order by grantee;
-GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
-'user1'@'localhost' def USAGE NO
-show grants;
-Grants for user1@localhost
-GRANT USAGE ON *.* TO 'user1'@'localhost'
-GRANT SELECT (f1) ON `mysqltest`.`t1` TO 'user1'@'localhost'
-connection con2;
-select * from information_schema.column_privileges order by grantee;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
-select * from information_schema.table_privileges order by grantee;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
-'user2'@'localhost' def mysqltest t2 SELECT NO
-select * from information_schema.schema_privileges order by grantee;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
-select * from information_schema.user_privileges order by grantee;
-GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
-'user2'@'localhost' def USAGE NO
-show grants;
-Grants for user2@localhost
-GRANT USAGE ON *.* TO 'user2'@'localhost'
-GRANT SELECT ON `mysqltest`.`t2` TO 'user2'@'localhost'
-connection con3;
-select * from information_schema.column_privileges order by grantee;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
-select * from information_schema.table_privileges order by grantee;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
-select * from information_schema.schema_privileges order by grantee;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
-'user3'@'localhost' def mysqltest SELECT NO
-select * from information_schema.user_privileges order by grantee;
-GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
-'user3'@'localhost' def USAGE NO
-show grants;
-Grants for user3@localhost
-GRANT USAGE ON *.* TO 'user3'@'localhost'
-GRANT SELECT ON `mysqltest`.* TO 'user3'@'localhost'
-connection con4;
-select * from information_schema.column_privileges where grantee like '\'user%'
-order by grantee;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
-'user1'@'localhost' def mysqltest t1 f1 SELECT NO
-select * from information_schema.table_privileges where grantee like '\'user%'
-order by grantee;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
-'user2'@'localhost' def mysqltest t2 SELECT NO
-select * from information_schema.schema_privileges where grantee like '\'user%'
-order by grantee;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
-'user3'@'localhost' def mysqltest SELECT NO
-select * from information_schema.user_privileges where grantee like '\'user%'
-order by grantee;
-GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
-'user1'@'localhost' def USAGE NO
-'user2'@'localhost' def USAGE NO
-'user3'@'localhost' def USAGE NO
-'user4'@'localhost' def SELECT NO
-show grants;
-Grants for user4@localhost
-GRANT SELECT ON *.* TO 'user4'@'localhost'
-connection default;
-disconnect con1;
-disconnect con2;
-disconnect con3;
-disconnect con4;
-drop user user1@localhost, user2@localhost, user3@localhost, user4@localhost;
-use test;
-drop database mysqltest;
-drop procedure if exists p1;
-drop procedure if exists p2;
-create procedure p1 () modifies sql data set @a = 5;
-create procedure p2 () set @a = 5;
-select sql_data_access from information_schema.routines
-where specific_name like 'p%';
-sql_data_access
-MODIFIES SQL DATA
-CONTAINS SQL
-drop procedure p1;
-drop procedure p2;
-show create database information_schema;
-Database Create Database
-information_schema CREATE DATABASE `information_schema` /*!40100 DEFAULT CHARACTER SET utf8 */
-create table t1(f1 LONGBLOB, f2 LONGTEXT);
-select column_name,data_type,CHARACTER_OCTET_LENGTH,
-CHARACTER_MAXIMUM_LENGTH
-from information_schema.columns
-where table_name='t1';
-column_name data_type CHARACTER_OCTET_LENGTH CHARACTER_MAXIMUM_LENGTH
-f1 longblob 4294967295 4294967295
-f2 longtext 4294967295 4294967295
-drop table t1;
-create table t1(f1 tinyint, f2 SMALLINT, f3 mediumint, f4 int,
-f5 BIGINT, f6 BIT, f7 bit(64));
-select column_name, NUMERIC_PRECISION, NUMERIC_SCALE
-from information_schema.columns
-where table_name='t1';
-column_name NUMERIC_PRECISION NUMERIC_SCALE
-f1 3 0
-f2 5 0
-f3 7 0
-f4 10 0
-f5 19 0
-f6 1 NULL
-f7 64 NULL
-drop table t1;
-create table t1 (f1 integer);
-create trigger tr1 after insert on t1 for each row set @test_var=42;
-use information_schema;
-select trigger_schema, trigger_name from triggers where
-trigger_name='tr1';
-trigger_schema trigger_name
-test tr1
-use test;
-drop table t1;
-create table t1 (a int not null, b int);
-use information_schema;
-select column_name, column_default from columns
-where table_schema='test' and table_name='t1';
-column_name column_default
-a NULL
-b NULL
-use test;
-show columns from t1;
-Field Type Null Key Default Extra
-a int(11) NO NULL
-b int(11) YES NULL
-drop table t1;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (b int);
-SHOW TABLE STATUS FROM test
-WHERE name IN ( SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES
-WHERE TABLE_SCHEMA='test' AND TABLE_TYPE='BASE TABLE');
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 0 0 0 # 1024 0 NULL # # NULL latin1_swedish_ci NULL # N
-t2 MyISAM 10 Fixed 0 0 0 # 1024 0 NULL # # NULL latin1_swedish_ci NULL # N
-DROP TABLE t1,t2;
-create table t1(f1 int);
-create view v1 (c) as select f1 from t1;
-connect con5,localhost,root,,*NO-ONE*;
-select database();
-database()
-NULL
-show fields from test.v1;
-Field Type Null Key Default Extra
-c int(11) YES NULL
-connection default;
-disconnect con5;
-drop view v1;
-drop table t1;
-alter database information_schema;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-drop database information_schema;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-drop table information_schema.tables;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-alter table information_schema.tables;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-use information_schema;
-create temporary table schemata(f1 char(10));
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-CREATE PROCEDURE p1 ()
-BEGIN
-SELECT 'foo' FROM DUAL;
-END |
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-select ROUTINE_NAME from routines where ROUTINE_SCHEMA='information_schema';
-ROUTINE_NAME
-grant all on information_schema.* to 'user1'@'localhost';
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-grant select on information_schema.* to 'user1'@'localhost';
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-use test;
-create table t1(id int);
-insert into t1(id) values (1);
-select 1 from (select 1 from test.t1) a;
-1
-1
-use information_schema;
-select 1 from (select 1 from test.t1) a;
-1
-1
-use test;
-drop table t1;
-create table t1 (f1 int(11));
-create view v1 as select * from t1;
-drop table t1;
-select table_type from information_schema.tables
-where table_name="v1";
-table_type
-VIEW
-drop view v1;
-create temporary table t1(f1 int, index(f1));
-show columns from t1;
-Field Type Null Key Default Extra
-f1 int(11) YES MUL NULL
-describe t1;
-Field Type Null Key Default Extra
-f1 int(11) YES MUL NULL
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 f1 1 f1 A NULL NULL NULL YES BTREE
-drop table t1;
-create table t1(f1 binary(32), f2 varbinary(64));
-select character_maximum_length, character_octet_length
-from information_schema.columns where table_name='t1';
-character_maximum_length character_octet_length
-32 32
-64 64
-drop table t1;
-CREATE TABLE t1 (f1 BIGINT, f2 VARCHAR(20), f3 BIGINT);
-INSERT INTO t1 SET f1 = 1, f2 = 'Schoenenbourg', f3 = 1;
-CREATE FUNCTION func2() RETURNS BIGINT RETURN 1;
-CREATE FUNCTION func1() RETURNS BIGINT
-BEGIN
-RETURN ( SELECT COUNT(*) FROM INFORMATION_SCHEMA.VIEWS);
-END//
-CREATE VIEW v1 AS SELECT 1 FROM t1
-WHERE f3 = (SELECT func2 ());
-SELECT func1();
-func1()
-1
-DROP TABLE t1;
-DROP VIEW v1;
-DROP FUNCTION func1;
-DROP FUNCTION func2;
-select column_type, group_concat(table_schema, '.', table_name), count(*) as num
-from information_schema.columns where
-table_schema='information_schema' and
-(column_type = 'varchar(7)' or column_type = 'varchar(20)'
- or column_type = 'varchar(27)')
-group by column_type order by num;
-column_type group_concat(table_schema, '.', table_name) num
-varchar(7) information_schema.ROUTINES,information_schema.VIEWS 2
-varchar(20) information_schema.ALL_PLUGINS,information_schema.ALL_PLUGINS,information_schema.ALL_PLUGINS,information_schema.FILES,information_schema.FILES,information_schema.PLUGINS,information_schema.PLUGINS,information_schema.PLUGINS,information_schema.PROFILING 9
-create table t1(f1 char(1) not null, f2 char(9) not null)
-default character set utf8;
-select CHARACTER_MAXIMUM_LENGTH, CHARACTER_OCTET_LENGTH from
-information_schema.columns where table_schema='test' and table_name = 't1';
-CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH
-1 3
-9 27
-drop table t1;
-use mysql;
-INSERT INTO `proc` VALUES ('test','','PROCEDURE','','SQL','CONTAINS_SQL',
-'NO','DEFINER','','','BEGIN\r\n \r\nEND','root@%','2006-03-02 18:40:03',
-'2006-03-02 18:40:03','','','utf8','utf8_general_ci','utf8_general_ci','n/a', 'NONE');
-select routine_name from information_schema.routines where ROUTINE_SCHEMA='test';
-routine_name
-
-delete from proc where name='';
-use test;
-grant select on test.* to mysqltest_1@localhost;
-create table t1 (id int);
-create view v1 as select * from t1;
-create definer = mysqltest_1@localhost
-sql security definer view v2 as select 1;
-connect con16681,localhost,mysqltest_1,,test;
-connection con16681;
-select * from information_schema.views
-where table_name='v1' or table_name='v2' order by table_name;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def test v1 NONE YES root@localhost DEFINER latin1 latin1_swedish_ci UNDEFINED
-def test v2 select 1 AS `1` NONE NO mysqltest_1@localhost DEFINER latin1 latin1_swedish_ci UNDEFINED
-connection default;
-disconnect con16681;
-drop view v1, v2;
-drop table t1;
-drop user mysqltest_1@localhost;
-set @a:= '.';
-create table t1(f1 char(5));
-create table t2(f1 char(5));
-select concat(@a, table_name), @a, table_name
-from information_schema.tables where table_schema = 'test' order by table_name;
-concat(@a, table_name) @a table_name
-.t1 . t1
-.t2 . t2
-drop table t1,t2;
-DROP PROCEDURE IF EXISTS p1;
-DROP FUNCTION IF EXISTS f1;
-CREATE PROCEDURE p1() SET @a= 1;
-CREATE FUNCTION f1() RETURNS INT RETURN @a + 1;
-CREATE USER mysql_bug20230@localhost;
-GRANT EXECUTE ON PROCEDURE p1 TO mysql_bug20230@localhost;
-GRANT EXECUTE ON FUNCTION f1 TO mysql_bug20230@localhost;
-SELECT ROUTINE_NAME, ROUTINE_DEFINITION FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_SCHEMA='test';
-ROUTINE_NAME ROUTINE_DEFINITION
-f1 RETURN @a + 1
-p1 SET @a= 1
-SHOW CREATE PROCEDURE p1;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p1 CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`()
-SET @a= 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE FUNCTION f1;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-f1 CREATE DEFINER=`root`@`localhost` FUNCTION `f1`() RETURNS int(11)
-RETURN @a + 1 latin1 latin1_swedish_ci latin1_swedish_ci
-connect conn1, localhost, mysql_bug20230,,;
-SELECT ROUTINE_NAME, ROUTINE_DEFINITION FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_SCHEMA='test';
-ROUTINE_NAME ROUTINE_DEFINITION
-f1 NULL
-p1 NULL
-SHOW CREATE PROCEDURE p1;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p1 NULL latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE FUNCTION f1;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-f1 NULL latin1 latin1_swedish_ci latin1_swedish_ci
-CALL p1();
-SELECT f1();
-f1()
-2
-disconnect conn1;
-connection default;
-DROP FUNCTION f1;
-DROP PROCEDURE p1;
-DROP USER mysql_bug20230@localhost;
-SELECT MAX(table_name) FROM information_schema.tables WHERE table_schema IN ('mysql', 'INFORMATION_SCHEMA', 'test') and table_name not like 'xtradb%';
-MAX(table_name)
-VIEWS
-SELECT table_name from information_schema.tables
-WHERE table_name=(SELECT MAX(table_name)
-FROM information_schema.tables WHERE table_schema IN ('mysql', 'INFORMATION_SCHEMA', 'test') and table_name not like 'xtradb%');
-table_name
-VIEWS
-DROP TABLE IF EXISTS bug23037;
-DROP FUNCTION IF EXISTS get_value;
-SELECT COLUMN_NAME, MD5(COLUMN_DEFAULT), LENGTH(COLUMN_DEFAULT) FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='bug23037';
-COLUMN_NAME MD5(COLUMN_DEFAULT) LENGTH(COLUMN_DEFAULT)
-fld1 85ea6a55b8f0058e640b3de141a3a9d9 65534
-SELECT MD5(get_value());
-MD5(get_value())
-76176d2daa20c582375b8dcfc18033cd
-SELECT COLUMN_NAME, MD5(COLUMN_DEFAULT), LENGTH(COLUMN_DEFAULT), COLUMN_DEFAULT=get_value() FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='bug23037';
-COLUMN_NAME MD5(COLUMN_DEFAULT) LENGTH(COLUMN_DEFAULT) COLUMN_DEFAULT=get_value()
-fld1 85ea6a55b8f0058e640b3de141a3a9d9 65534 0
-DROP TABLE bug23037;
-DROP FUNCTION get_value;
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-create view v1 as
-select table_schema as object_schema,
-table_name as object_name,
-table_type as object_type
-from information_schema.tables
-order by object_schema;
-explain select * from v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE tables ALL NULL NULL NULL NULL NULL Open_frm_only; Scanned all databases; Using filesort
-explain select * from (select table_name from information_schema.tables) as a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED tables ALL NULL NULL NULL NULL NULL Skip_open_table; Scanned all databases
-set optimizer_switch=@tmp_optimizer_switch;
-drop view v1;
-create table t1 (f1 int(11));
-create table t2 (f1 int(11), f2 int(11));
-select table_name from information_schema.tables
-where table_schema = 'test' and table_name not in
-(select table_name from information_schema.columns
-where table_schema = 'test' and column_name = 'f3')
-order by table_name;
-table_name
-t1
-t2
-drop table t1,t2;
-create table t1(f1 int);
-create view v1 as select f1+1 as a from t1;
-create table t2 (f1 int, f2 int);
-create view v2 as select f1+1 as a, f2 as b from t2;
-select table_name, is_updatable from information_schema.views order by table_name;
-table_name is_updatable
-v1 NO
-v2 YES
-delete from v1;
-drop view v1,v2;
-drop table t1,t2;
-alter database;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-alter database test;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-create database mysqltest;
-create table mysqltest.t1(a int, b int, c int);
-create trigger mysqltest.t1_ai after insert on mysqltest.t1
-for each row set @a = new.a + new.b + new.c;
-grant select(b) on mysqltest.t1 to mysqltest_1@localhost;
-select trigger_name from information_schema.triggers
-where event_object_table='t1';
-trigger_name
-t1_ai
-show triggers from mysqltest;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-t1_ai INSERT t1 set @a = new.a + new.b + new.c AFTER # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-connect con27629,localhost,mysqltest_1,,mysqltest;
-show columns from t1;
-Field Type Null Key Default Extra
-b int(11) YES NULL
-select column_name from information_schema.columns where table_name='t1';
-column_name
-b
-show triggers;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-select trigger_name from information_schema.triggers
-where event_object_table='t1';
-trigger_name
-connection default;
-disconnect con27629;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-create table t1 (
-f1 varchar(50),
-f2 varchar(50) not null,
-f3 varchar(50) default '',
-f4 varchar(50) default NULL,
-f5 bigint not null,
-f6 bigint not null default 10,
-f7 datetime not null,
-f8 datetime default '2006-01-01'
-);
-select column_default from information_schema.columns where table_name= 't1';
-column_default
-NULL
-NULL
-''
-NULL
-NULL
-10
-NULL
-'2006-01-01 00:00:00'
-show columns from t1;
-Field Type Null Key Default Extra
-f1 varchar(50) YES NULL
-f2 varchar(50) NO NULL
-f3 varchar(50) YES
-f4 varchar(50) YES NULL
-f5 bigint(20) NO NULL
-f6 bigint(20) NO 10
-f7 datetime NO NULL
-f8 datetime YES 2006-01-01 00:00:00
-drop table t1;
-show fields from information_schema.table_names;
-ERROR 42S02: Unknown table 'table_names' in information_schema
-show keys from information_schema.table_names;
-ERROR 42S02: Unknown table 'table_names' in information_schema
-USE information_schema;
-SET max_heap_table_size = 16384;
-CREATE TABLE test.t1( a INT );
-SELECT *
-FROM tables ta
-JOIN collations co ON ( co.collation_name = ta.table_catalog )
-JOIN character_sets cs ON ( cs.character_set_name = ta.table_catalog );
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT MAX_INDEX_LENGTH TEMPORARY COLLATION_NAME CHARACTER_SET_NAME ID IS_DEFAULT IS_COMPILED SORTLEN CHARACTER_SET_NAME DEFAULT_COLLATE_NAME DESCRIPTION MAXLEN
-DROP TABLE test.t1;
-SET max_heap_table_size = DEFAULT;
-USE test;
-End of 5.0 tests.
-select * from information_schema.engines WHERE ENGINE="MyISAM";
-ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
-MyISAM DEFAULT MyISAM storage engine NO NO NO
-grant select on *.* to user3148@localhost;
-connect con3148,localhost,user3148,,test;
-connection con3148;
-select user,db from information_schema.processlist;
-user db
-user3148 test
-connection default;
-disconnect con3148;
-drop user user3148@localhost;
-connect pslistcon,localhost,root,,test;
-SELECT 'other connection here' AS who;
-who
-other connection here
-connection default;
-SELECT IF(`time` > 0, 'OK', `time`) AS time_low,
-IF(`time` < 1000, 'OK', `time`) AS time_high,
-IF(time_ms >= 1000, 'OK', time_ms) AS time_ms_low,
-IF(time_ms < 1000000, 'OK', time_ms) AS time_ms_high
-FROM INFORMATION_SCHEMA.PROCESSLIST
-WHERE ID=@tid;
-time_low time_high time_ms_low time_ms_high
-OK OK OK OK
-disconnect pslistcon;
-DROP TABLE IF EXISTS server_status;
-DROP EVENT IF EXISTS event_status;
-SET GLOBAL event_scheduler=1;
-CREATE EVENT event_status
-ON SCHEDULE AT NOW()
-ON COMPLETION NOT PRESERVE
-DO
-BEGIN
-CREATE TABLE server_status
-SELECT variable_name
-FROM information_schema.global_status
-WHERE variable_name LIKE 'ABORTED_CONNECTS' OR
-variable_name LIKE 'BINLOG_CACHE_DISK_USE';
-END$$
-SELECT variable_name FROM server_status;
-variable_name
-ABORTED_CONNECTS
-BINLOG_CACHE_DISK_USE
-DROP TABLE server_status;
-SET GLOBAL event_scheduler=0;
-explain select table_name from information_schema.views where
-table_schema='test' and table_name='v1';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE views ALL NULL TABLE_SCHEMA,TABLE_NAME NULL NULL NULL Using where; Open_frm_only; Scanned 0 databases
-explain select * from information_schema.tables;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE tables ALL NULL NULL NULL NULL NULL Open_full_table; Scanned all databases
-explain select * from information_schema.collations;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE collations ALL NULL NULL NULL NULL NULL
-explain select * from information_schema.tables where
-table_schema='test' and table_name= 't1';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE tables ALL NULL TABLE_SCHEMA,TABLE_NAME NULL NULL NULL Using where; Open_full_table; Scanned 0 databases
-explain select table_name, table_type from information_schema.tables
-where table_schema='test';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE tables ALL NULL TABLE_SCHEMA NULL NULL NULL Using where; Open_frm_only; Scanned 1 database
-explain select b.table_name
-from information_schema.tables a, information_schema.columns b
-where a.table_name='t1' and a.table_schema='test' and b.table_name=a.table_name;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE a ALL NULL TABLE_SCHEMA,TABLE_NAME NULL NULL NULL Using where; Skip_open_table; Scanned 0 databases
-1 SIMPLE b ALL NULL NULL NULL NULL NULL Using where; Open_frm_only; Scanned all databases; Using join buffer (flat, BNL join)
-SELECT * FROM INFORMATION_SCHEMA.SCHEMATA
-WHERE SCHEMA_NAME = 'mysqltest';
-CATALOG_NAME SCHEMA_NAME DEFAULT_CHARACTER_SET_NAME DEFAULT_COLLATION_NAME SQL_PATH
-SELECT * FROM INFORMATION_SCHEMA.SCHEMATA
-WHERE SCHEMA_NAME = '';
-CATALOG_NAME SCHEMA_NAME DEFAULT_CHARACTER_SET_NAME DEFAULT_COLLATION_NAME SQL_PATH
-SELECT * FROM INFORMATION_SCHEMA.SCHEMATA
-WHERE SCHEMA_NAME = 'test';
-CATALOG_NAME SCHEMA_NAME DEFAULT_CHARACTER_SET_NAME DEFAULT_COLLATION_NAME SQL_PATH
-def test latin1 latin1_swedish_ci NULL
-select count(*) from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='mysql' AND TABLE_NAME='nonexisting';
-count(*)
-0
-select count(*) from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='mysql' AND TABLE_NAME='';
-count(*)
-0
-select count(*) from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='' AND TABLE_NAME='';
-count(*)
-0
-select count(*) from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='' AND TABLE_NAME='nonexisting';
-count(*)
-0
-CREATE VIEW v1
-AS SELECT *
-FROM information_schema.tables;
-SELECT VIEW_DEFINITION FROM INFORMATION_SCHEMA.VIEWS where TABLE_NAME = 'v1';
-VIEW_DEFINITION
-select `information_schema`.`tables`.`TABLE_CATALOG` AS `TABLE_CATALOG`,`information_schema`.`tables`.`TABLE_SCHEMA` AS `TABLE_SCHEMA`,`information_schema`.`tables`.`TABLE_NAME` AS `TABLE_NAME`,`information_schema`.`tables`.`TABLE_TYPE` AS `TABLE_TYPE`,`information_schema`.`tables`.`ENGINE` AS `ENGINE`,`information_schema`.`tables`.`VERSION` AS `VERSION`,`information_schema`.`tables`.`ROW_FORMAT` AS `ROW_FORMAT`,`information_schema`.`tables`.`TABLE_ROWS` AS `TABLE_ROWS`,`information_schema`.`tables`.`AVG_ROW_LENGTH` AS `AVG_ROW_LENGTH`,`information_schema`.`tables`.`DATA_LENGTH` AS `DATA_LENGTH`,`information_schema`.`tables`.`MAX_DATA_LENGTH` AS `MAX_DATA_LENGTH`,`information_schema`.`tables`.`INDEX_LENGTH` AS `INDEX_LENGTH`,`information_schema`.`tables`.`DATA_FREE` AS `DATA_FREE`,`information_schema`.`tables`.`AUTO_INCREMENT` AS `AUTO_INCREMENT`,`information_schema`.`tables`.`CREATE_TIME` AS `CREATE_TIME`,`information_schema`.`tables`.`UPDATE_TIME` AS `UPDATE_TIME`,`information_schema`.`tables`.`CHECK_TIME` AS `CHECK_TIME`,`information_schema`.`tables`.`TABLE_COLLATION` AS `TABLE_COLLATION`,`information_schema`.`tables`.`CHECKSUM` AS `CHECKSUM`,`information_schema`.`tables`.`CREATE_OPTIONS` AS `CREATE_OPTIONS`,`information_schema`.`tables`.`TABLE_COMMENT` AS `TABLE_COMMENT`,`information_schema`.`tables`.`MAX_INDEX_LENGTH` AS `MAX_INDEX_LENGTH`,`information_schema`.`tables`.`TEMPORARY` AS `TEMPORARY` from `information_schema`.`tables`
-DROP VIEW v1;
-SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA
-WHERE SCHEMA_NAME ='information_schema';
-SCHEMA_NAME
-information_schema
-SELECT TABLE_COLLATION FROM INFORMATION_SCHEMA.TABLES
-WHERE TABLE_SCHEMA='mysql' and TABLE_NAME= 'db';
-TABLE_COLLATION
-utf8_bin
-select * from information_schema.columns where table_schema = NULL;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT IS_GENERATED GENERATION_EXPRESSION
-select * from `information_schema`.`COLUMNS` where `TABLE_NAME` = NULL;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT IS_GENERATED GENERATION_EXPRESSION
-select * from `information_schema`.`KEY_COLUMN_USAGE` where `TABLE_SCHEMA` = NULL;
-CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION POSITION_IN_UNIQUE_CONSTRAINT REFERENCED_TABLE_SCHEMA REFERENCED_TABLE_NAME REFERENCED_COLUMN_NAME
-select * from `information_schema`.`KEY_COLUMN_USAGE` where `TABLE_NAME` = NULL;
-CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION POSITION_IN_UNIQUE_CONSTRAINT REFERENCED_TABLE_SCHEMA REFERENCED_TABLE_NAME REFERENCED_COLUMN_NAME
-select * from `information_schema`.`PARTITIONS` where `TABLE_SCHEMA` = NULL;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PARTITION_NAME SUBPARTITION_NAME PARTITION_ORDINAL_POSITION SUBPARTITION_ORDINAL_POSITION PARTITION_METHOD SUBPARTITION_METHOD PARTITION_EXPRESSION SUBPARTITION_EXPRESSION PARTITION_DESCRIPTION TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE CREATE_TIME UPDATE_TIME CHECK_TIME CHECKSUM PARTITION_COMMENT NODEGROUP TABLESPACE_NAME
-select * from `information_schema`.`PARTITIONS` where `TABLE_NAME` = NULL;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PARTITION_NAME SUBPARTITION_NAME PARTITION_ORDINAL_POSITION SUBPARTITION_ORDINAL_POSITION PARTITION_METHOD SUBPARTITION_METHOD PARTITION_EXPRESSION SUBPARTITION_EXPRESSION PARTITION_DESCRIPTION TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE CREATE_TIME UPDATE_TIME CHECK_TIME CHECKSUM PARTITION_COMMENT NODEGROUP TABLESPACE_NAME
-select * from `information_schema`.`REFERENTIAL_CONSTRAINTS` where `CONSTRAINT_SCHEMA` = NULL;
-CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME UNIQUE_CONSTRAINT_CATALOG UNIQUE_CONSTRAINT_SCHEMA UNIQUE_CONSTRAINT_NAME MATCH_OPTION UPDATE_RULE DELETE_RULE TABLE_NAME REFERENCED_TABLE_NAME
-select * from `information_schema`.`REFERENTIAL_CONSTRAINTS` where `TABLE_NAME` = NULL;
-CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME UNIQUE_CONSTRAINT_CATALOG UNIQUE_CONSTRAINT_SCHEMA UNIQUE_CONSTRAINT_NAME MATCH_OPTION UPDATE_RULE DELETE_RULE TABLE_NAME REFERENCED_TABLE_NAME
-select * from information_schema.schemata where schema_name = NULL;
-CATALOG_NAME SCHEMA_NAME DEFAULT_CHARACTER_SET_NAME DEFAULT_COLLATION_NAME SQL_PATH
-select * from `information_schema`.`STATISTICS` where `TABLE_SCHEMA` = NULL;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT
-select * from `information_schema`.`STATISTICS` where `TABLE_NAME` = NULL;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT
-select * from information_schema.tables where table_schema = NULL;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT MAX_INDEX_LENGTH TEMPORARY
-select * from information_schema.tables where table_catalog = NULL;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT MAX_INDEX_LENGTH TEMPORARY
-select * from information_schema.tables where table_name = NULL;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT MAX_INDEX_LENGTH TEMPORARY
-select * from `information_schema`.`TABLE_CONSTRAINTS` where `TABLE_SCHEMA` = NULL;
-CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_SCHEMA TABLE_NAME CONSTRAINT_TYPE
-select * from `information_schema`.`TABLE_CONSTRAINTS` where `TABLE_NAME` = NULL;
-CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_SCHEMA TABLE_NAME CONSTRAINT_TYPE
-select * from `information_schema`.`TRIGGERS` where `EVENT_OBJECT_SCHEMA` = NULL;
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-select * from `information_schema`.`TRIGGERS` where `EVENT_OBJECT_TABLE` = NULL;
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-select * from `information_schema`.`VIEWS` where `TABLE_SCHEMA` = NULL;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-select * from `information_schema`.`VIEWS` where `TABLE_NAME` = NULL;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-explain extended select 1 from information_schema.tables;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE tables ALL NULL NULL NULL NULL NULL NULL Skip_open_table; Scanned all databases
-Warnings:
-Note 1003 select 1 AS `1` from `information_schema`.`tables`
-use information_schema;
-show events;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-show events from information_schema;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-show events where Db= 'information_schema';
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-use test;
-#
-# Bug#34166 Server crash in SHOW OPEN TABLES and prelocking
-#
-drop table if exists t1;
-drop function if exists f1;
-create table t1 (a int);
-create function f1() returns int
-begin
-insert into t1 (a) values (1);
-return 0;
-end|
-show open tables where f1()=0;
-show open tables where f1()=0;
-drop table t1;
-drop function f1;
-connect conn1, localhost, root,,;
-connection conn1;
-select * from information_schema.tables where 1=sleep(100000);
-connection default;
-connection conn1;
-Got one of the listed errors
-connection default;
-disconnect conn1;
-connect conn1, localhost, root,,;
-connection conn1;
-select * from information_schema.columns where 1=sleep(100000);
-connection default;
-connection conn1;
-Got one of the listed errors
-connection default;
-disconnect conn1;
-explain select count(*) from information_schema.tables;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE tables ALL NULL NULL NULL NULL NULL Skip_open_table; Scanned all databases
-explain select count(*) from information_schema.columns;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE columns ALL NULL NULL NULL NULL NULL Open_frm_only; Scanned all databases
-explain select count(*) from information_schema.views;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE views ALL NULL NULL NULL NULL NULL Open_frm_only; Scanned all databases
-set global init_connect="drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;\
-drop table if exists t1;drop table if exists t1;";
-select * from information_schema.global_variables where variable_name='init_connect';
-VARIABLE_NAME VARIABLE_VALUE
-INIT_CONNECT drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-select * from information_schema.global_variables where variable_name like 'init%' order by variable_name;
-VARIABLE_NAME VARIABLE_VALUE
-INIT_CONNECT drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-drop table if exists t1;drop table if exists t1;
-INIT_FILE
-INIT_SLAVE
-set global init_connect="";
-create table t0 select * from information_schema.global_status where VARIABLE_NAME='COM_SELECT';
-SELECT 1;
-1
-1
-select a.VARIABLE_VALUE - b.VARIABLE_VALUE from t0 b, information_schema.global_status a
-where a.VARIABLE_NAME = b.VARIABLE_NAME;
-a.VARIABLE_VALUE - b.VARIABLE_VALUE
-2
-drop table t0;
-CREATE TABLE t1(a INT) KEY_BLOCK_SIZE=1;
-SELECT CREATE_OPTIONS FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='t1';
-CREATE_OPTIONS
-key_block_size=1
-DROP TABLE t1;
-SET TIMESTAMP=@@TIMESTAMP + 10000000;
-SELECT 'NOT_OK' AS TEST_RESULT FROM INFORMATION_SCHEMA.PROCESSLIST WHERE time < 0;
-TEST_RESULT
-SET TIMESTAMP=DEFAULT;
-#
-# Bug #50276: Security flaw in INFORMATION_SCHEMA.TABLES
-#
-CREATE DATABASE db1;
-USE db1;
-CREATE TABLE t1 (id INT);
-CREATE USER nonpriv;
-USE test;
-connect nonpriv_con, localhost, nonpriv,,;
-connection nonpriv_con;
-# connected as nonpriv
-# Should return 0
-SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='t1';
-COUNT(*)
-0
-USE INFORMATION_SCHEMA;
-# Should return 0
-SELECT COUNT(*) FROM TABLES WHERE TABLE_NAME='t1';
-COUNT(*)
-0
-connection default;
-# connected as root
-disconnect nonpriv_con;
-DROP USER nonpriv;
-DROP TABLE db1.t1;
-DROP DATABASE db1;
-
-Bug#54422 query with = 'variables'
-
-CREATE TABLE variables(f1 INT);
-SELECT COLUMN_DEFAULT, TABLE_NAME
-FROM INFORMATION_SCHEMA.COLUMNS
-WHERE INFORMATION_SCHEMA.COLUMNS.TABLE_NAME = 'variables';
-COLUMN_DEFAULT TABLE_NAME
-NULL variables
-DROP TABLE variables;
-#
-# Bug #53814: NUMERIC_PRECISION for unsigned bigint field is 19,
-# should be 20
-#
-CREATE TABLE ubig (a BIGINT, b BIGINT UNSIGNED);
-SELECT TABLE_NAME, COLUMN_NAME, NUMERIC_PRECISION
-FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='ubig';
-TABLE_NAME COLUMN_NAME NUMERIC_PRECISION
-ubig a 19
-ubig b 20
-INSERT INTO ubig VALUES (0xFFFFFFFFFFFFFFFF,0xFFFFFFFFFFFFFFFF);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-SELECT length(CAST(b AS CHAR)) FROM ubig;
-length(CAST(b AS CHAR))
-20
-DROP TABLE ubig;
-select 1 from information_schema.tables where table_schema=repeat('a', 2000);
-1
-grant usage on *.* to mysqltest_1@localhost;
-connect con1, localhost, mysqltest_1,,;
-connection con1;
-select 1 from information_schema.tables where table_schema=repeat('a', 2000);
-1
-connection default;
-disconnect con1;
-drop user mysqltest_1@localhost;
-End of 5.1 tests.
-#
-# Additional test for WL#3726 "DDL locking for all metadata objects"
-# To avoid possible deadlocks process of filling of I_S tables should
-# use high-priority metadata lock requests when opening tables.
-# Below we just test that we really use high-priority lock request
-# since reproducing a deadlock will require much more complex test.
-#
-drop tables if exists t1, t2, t3;
-create table t1 (i int);
-create table t2 (j int primary key auto_increment);
-connect con3726_1,localhost,root,,test;
-connection con3726_1;
-lock table t2 read;
-connect con3726_2,localhost,root,,test;
-connection con3726_2;
-# RENAME below will be blocked by 'lock table t2 read' above but
-# will add two pending requests for exclusive metadata locks.
-rename table t2 to t3;
-connection default;
-# These statements should not be blocked by pending lock requests
-select table_name, column_name, data_type from information_schema.columns
-where table_schema = 'test' and table_name in ('t1', 't2') order by table_name, column_name;
-table_name column_name data_type
-t1 i int
-t2 j int
-select table_name, auto_increment from information_schema.tables
-where table_schema = 'test' and table_name in ('t1', 't2') order by table_name;
-table_name auto_increment
-t1 NULL
-t2 1
-connection con3726_1;
-unlock tables;
-connection con3726_2;
-connection default;
-disconnect con3726_1;
-disconnect con3726_2;
-drop tables t1, t3;
-EXPLAIN SELECT * FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE KEY_COLUMN_USAGE ALL NULL NULL NULL NULL NULL Open_full_table; Scanned all databases
-EXPLAIN SELECT * FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME='t1';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE PARTITIONS ALL NULL TABLE_NAME NULL NULL NULL Using where; Open_full_table; Scanned 1 database
-EXPLAIN SELECT * FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS
-WHERE CONSTRAINT_SCHEMA='test';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE REFERENTIAL_CONSTRAINTS ALL NULL CONSTRAINT_SCHEMA NULL NULL NULL Using where; Open_full_table; Scanned 1 database
-EXPLAIN SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
-WHERE TABLE_NAME='t1' and TABLE_SCHEMA='test';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE TABLE_CONSTRAINTS ALL NULL TABLE_SCHEMA,TABLE_NAME NULL NULL NULL Using where; Open_full_table; Scanned 0 databases
-EXPLAIN SELECT * FROM INFORMATION_SCHEMA.TRIGGERS
-WHERE EVENT_OBJECT_SCHEMA='test';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE TRIGGERS ALL NULL EVENT_OBJECT_SCHEMA NULL NULL NULL Using where; Open_frm_only; Scanned 1 database
-create table information_schema.t1 (f1 INT);
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-drop table information_schema.t1;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-drop temporary table if exists information_schema.t1;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-create temporary table information_schema.t1 (f1 INT);
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-drop view information_schema.v1;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-create view information_schema.v1;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-create trigger mysql.trg1 after insert on information_schema.t1 for each row set @a=1;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-create table t1 select * from information_schema.t1;
-ERROR 42S02: Unknown table 't1' in information_schema
-CREATE TABLE t1(f1 char(100));
-REPAIR TABLE t1, information_schema.tables;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-CHECKSUM TABLE t1, information_schema.tables;
-Table Checksum
-test.t1 0
-information_schema.tables 0
-ANALYZE TABLE t1, information_schema.tables;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-CHECK TABLE t1, information_schema.tables;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-information_schema.tables check note The storage engine for the table doesn't support check
-OPTIMIZE TABLE t1, information_schema.tables;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-RENAME TABLE v1 to v2, information_schema.tables to t2;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-DROP TABLE t1, information_schema.tables;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-LOCK TABLES t1 READ, information_schema.tables READ;
-ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
-DROP TABLE t1;
-SELECT *
-FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE
-LEFT JOIN INFORMATION_SCHEMA.COLUMNS
-USING (TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME)
-WHERE COLUMNS.TABLE_SCHEMA = 'test'
-AND COLUMNS.TABLE_NAME = 't1';
-TABLE_SCHEMA TABLE_NAME COLUMN_NAME CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_CATALOG ORDINAL_POSITION POSITION_IN_UNIQUE_CONSTRAINT REFERENCED_TABLE_SCHEMA REFERENCED_TABLE_NAME REFERENCED_COLUMN_NAME TABLE_CATALOG ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT IS_GENERATED GENERATION_EXPRESSION
-#
-# A test case for Bug#56540 "Exception (crash) in sql_show.cc
-# during rqg_info_schema test on Windows"
-# Ensure that we never access memory of a closed table,
-# in particular, never access table->field[] array.
-# Before the fix, the below test case, produced
-# valgrind errors.
-#
-drop table if exists t1;
-drop view if exists v1;
-create table t1 (a int, b int);
-create view v1 as select t1.a, t1.b from t1;
-alter table t1 change b c int;
-lock table t1 read;
-connect con1, localhost, root,,;
-connection con1;
-flush tables;
-connection default;
-select * from information_schema.views;
-TABLE_CATALOG def
-TABLE_SCHEMA test
-TABLE_NAME v1
-VIEW_DEFINITION select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1`
-CHECK_OPTION NONE
-IS_UPDATABLE
-DEFINER root@localhost
-SECURITY_TYPE DEFINER
-CHARACTER_SET_CLIENT latin1
-COLLATION_CONNECTION latin1_swedish_ci
-ALGORITHM UNDEFINED
-Warnings:
-Level Warning
-Code 1356
-Message View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-unlock tables;
-#
-# Cleanup.
-#
-connection con1;
-# Reaping 'flush tables'
-disconnect con1;
-connection default;
-drop table t1;
-drop view v1;
-#
-# Test for bug #12828477 - "MDL SUBSYSTEM CREATES BIG OVERHEAD FOR
-# CERTAIN QUERIES TO INFORMATION_SCHEMA".
-#
-# Check that metadata locks which are acquired during the process
-# of opening tables/.FRMs/.TRG files while filling I_S table are
-# not kept to the end of statement. Keeping the locks has caused
-# performance problems in cases when big number of tables (.FRMs
-# or .TRG files) were scanned as cost of new lock acquisition has
-# increased linearly.
-drop database if exists mysqltest;
-create database mysqltest;
-use mysqltest;
-create table t0 (i int);
-create table t1 (j int);
-create table t2 (k int);
-#
-# Test that we don't keep locks in case when we to fill
-# I_S table we perform full-blown table open.
-#
-# Acquire lock on 't2' so upcoming RENAME is
-# blocked.
-lock tables t2 read;
-connect con12828477_1, localhost, root,,mysqltest;
-# The below RENAME should wait on 't2' while
-# keeping X lock on 't1'.
-rename table t1 to t3, t2 to t1, t3 to t2;
-connect con12828477_2, localhost, root,,mysqltest;
-# Wait while the above RENAME is blocked.
-# Issue query to I_S which will open 't0' and get
-# blocked on 't1' because of RENAME.
-select table_name, auto_increment from information_schema.tables where table_schema='mysqltest' and table_name='t0' union select table_name, auto_increment from information_schema.tables where table_schema='mysqltest' and table_name<>'t0' order by table_name;
-connect con12828477_3, localhost, root,,mysqltest;
-# Wait while the above SELECT is blocked.
-#
-# Check that it holds no lock on 't0' so it can be renamed.
-rename table t0 to t4;
-connection default;
-#
-# Unblock the first RENAME.
-unlock tables;
-connection con12828477_1;
-# Reap the first RENAME
-connection con12828477_2;
-# Reap SELECT to I_S.
-table_name auto_increment
-t0 NULL
-t1 NULL
-t2 NULL
-connection default;
-#
-# Now test that we don't keep locks in case when we to fill
-# I_S table we read .FRM or .TRG file only (this was the case
-# for which problem existed).
-#
-rename table t4 to t0;
-# Acquire lock on 't2' so upcoming RENAME is
-# blocked.
-lock tables t2 read;
-connection con12828477_1;
-# The below RENAME should wait on 't2' while
-# keeping X lock on 't1'.
-rename table t1 to t3, t2 to t1, t3 to t2;
-connection con12828477_2;
-# Wait while the above RENAME is blocked.
-# Issue query to I_S which will open 't0' and get
-# blocked on 't1' because of RENAME.
-select event_object_table, trigger_name from information_schema.triggers where event_object_schema='mysqltest';
-connection con12828477_3;
-# Wait while the above SELECT is blocked.
-#
-# Check that it holds no lock on 't0' so it can be renamed.
-rename table t0 to t4;
-connection default;
-#
-# Unblock the first RENAME.
-unlock tables;
-connection con12828477_1;
-# Reap the first RENAME
-connection con12828477_2;
-# Reap SELECT to I_S.
-event_object_table trigger_name
-connection default;
-disconnect con12828477_1;
-disconnect con12828477_2;
-disconnect con12828477_3;
-#
-# MDEV-3818: Query against view over IS tables worse than equivalent query without view
-#
-create view v1 as select table_schema, table_name, column_name from information_schema.columns;
-explain extended
-select column_name from v1
-where (table_schema = "osm") and (table_name = "test");
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE columns ALL NULL TABLE_SCHEMA,TABLE_NAME NULL NULL NULL NULL Using where; Open_frm_only; Scanned 0 databases
-Warnings:
-Note 1003 select `information_schema`.`columns`.`COLUMN_NAME` AS `column_name` from `information_schema`.`columns` where `information_schema`.`columns`.`TABLE_SCHEMA` = 'osm' and `information_schema`.`columns`.`TABLE_NAME` = 'test'
-explain extended
-select information_schema.columns.column_name as column_name
-from information_schema.columns
-where (information_schema.columns.table_schema = 'osm') and (information_schema.columns.table_name = 'test');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE columns ALL NULL TABLE_SCHEMA,TABLE_NAME NULL NULL NULL NULL Using where; Open_frm_only; Scanned 0 databases
-Warnings:
-Note 1003 select `information_schema`.`columns`.`COLUMN_NAME` AS `column_name` from `information_schema`.`columns` where `information_schema`.`columns`.`TABLE_SCHEMA` = 'osm' and `information_schema`.`columns`.`TABLE_NAME` = 'test'
-drop view v1;
-#
-# Clean-up.
-drop database mysqltest;
-#
-# Test for bug #16869534 - "QUERYING SUBSET OF COLUMNS DOESN'T USE TABLE
-# CACHE; OPENED_TABLES INCREASES"
-#
-SELECT * FROM INFORMATION_SCHEMA.TABLES;
-SELECT VARIABLE_VALUE INTO @val1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE
-VARIABLE_NAME LIKE 'Opened_tables';
-SELECT ENGINE FROM INFORMATION_SCHEMA.TABLES;
-# The below SELECT query should give same output as above SELECT query.
-SELECT VARIABLE_VALUE INTO @val2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE
-VARIABLE_NAME LIKE 'Opened_tables';
-# The below select should return '1'
-SELECT @val1 = @val2;
-@val1 = @val2
-1
-#
-# End of 5.5 tests
-#
-#
-# MDEV-5723: mysqldump -uroot unusable for multi-database operations, checks all databases
-#
-drop database if exists db1;
-connect con1,localhost,root,,;
-connection con1;
-create database db1;
-use db1;
-create table t1 (a int);
-create table t2 (a int);
-create table t3 (a int);
-create database mysqltest;
-use mysqltest;
-create table t1 (a int);
-create table t2 (a int);
-create table t3 (a int);
-flush tables;
-flush status;
-SELECT
-LOGFILE_GROUP_NAME, FILE_NAME, TOTAL_EXTENTS, INITIAL_SIZE, ENGINE, EXTRA
-FROM
-INFORMATION_SCHEMA.FILES
-WHERE
-FILE_TYPE = 'UNDO LOG' AND FILE_NAME IS NOT NULL AND
-LOGFILE_GROUP_NAME IN (SELECT DISTINCT LOGFILE_GROUP_NAME
-FROM INFORMATION_SCHEMA.FILES
-WHERE
-FILE_TYPE = 'DATAFILE' AND
-TABLESPACE_NAME IN (SELECT DISTINCT TABLESPACE_NAME
-FROM INFORMATION_SCHEMA.PARTITIONS
-WHERE TABLE_SCHEMA IN ('db1')
-)
-)
-GROUP BY
-LOGFILE_GROUP_NAME, FILE_NAME, ENGINE
-ORDER BY
-LOGFILE_GROUP_NAME;
-LOGFILE_GROUP_NAME FILE_NAME TOTAL_EXTENTS INITIAL_SIZE ENGINE EXTRA
-# This must have Opened_tables=3, not 6.
-show status like 'Opened_tables';
-Variable_name Value
-Opened_tables 3
-drop database mysqltest;
-drop database db1;
-connection default;
-disconnect con1;
-set global sql_mode=default;
-USE test;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-13242 Wrong results for queries with row constructors and information_schema
-#
-CREATE TABLE tt1(c1 INT);
-CREATE TABLE tt2(c2 INT);
-SELECT count(*) FROM information_schema.columns WHERE table_schema='test' AND (table_name, column_name) IN (('tt1', 'c1'));
-count(*)
-1
-SELECT count(*) FROM information_schema.columns WHERE table_schema='test' AND (table_name, column_name) IN (('tt2', 'c2'));
-count(*)
-1
-SELECT count(*) FROM information_schema.columns WHERE table_schema='test' AND (table_name, column_name) IN (('tt1','c1'),('tt2', 'c2'));
-count(*)
-2
-SELECT count(*) FROM information_schema.columns WHERE table_schema='test' AND (table_name, column_name) IN (SELECT 'tt1','c1' FROM dual UNION SELECT 'tt2', 'c2' FROM dual);
-count(*)
-2
-SELECT count(*) FROM information_schema.columns WHERE table_schema='test' AND (table_name='tt1' AND column_name='c1') OR (table_name='tt2' AND column_name='c2');
-count(*)
-2
-SELECT column_name FROM information_schema.columns WHERE (table_name, column_name) IN (('tt1','c1'),('tt2', 'c2')) ORDER BY column_name;
-column_name
-c1
-c2
-DROP TABLE tt1, tt2;
diff --git a/mysql-test/r/information_schema2.result b/mysql-test/r/information_schema2.result
deleted file mode 100644
index e23e81b885c..00000000000
--- a/mysql-test/r/information_schema2.result
+++ /dev/null
@@ -1,20 +0,0 @@
-select variable_name from information_schema.session_status where variable_name =
-(select variable_name from information_schema.session_status where variable_name = 'uptime');
-variable_name
-UPTIME
-select variable_name from information_schema.session_variables where variable_name =
-(select variable_name from information_schema.session_variables where variable_name = 'basedir');
-variable_name
-BASEDIR
-create table t1 (x int);
-create table t2 (x int);
-create table t3 (x int);
-create table t4 AS select table_name from information_schema.TABLES where table_schema = database() and table_type = 'BASE TABLE' ;
-delete from t4 where table_name not in (select table_name from information_schema.TABLES where table_schema = database() and table_type = 'BASE TABLE');
-select * from t4 order by table_name;
-table_name
-t1
-t2
-t3
-t4
-drop table t1, t2, t3, t4;
diff --git a/mysql-test/r/information_schema_all_engines.result b/mysql-test/r/information_schema_all_engines.result
deleted file mode 100644
index 8a92f0226ff..00000000000
--- a/mysql-test/r/information_schema_all_engines.result
+++ /dev/null
@@ -1,457 +0,0 @@
-use INFORMATION_SCHEMA;
-show tables;
-Tables_in_information_schema
-ALL_PLUGINS
-APPLICABLE_ROLES
-CHARACTER_SETS
-CLIENT_STATISTICS
-COLLATIONS
-COLLATION_CHARACTER_SET_APPLICABILITY
-COLUMNS
-COLUMN_PRIVILEGES
-ENABLED_ROLES
-ENGINES
-EVENTS
-FILES
-GEOMETRY_COLUMNS
-GLOBAL_STATUS
-GLOBAL_VARIABLES
-INDEX_STATISTICS
-INNODB_BUFFER_PAGE
-INNODB_BUFFER_PAGE_LRU
-INNODB_BUFFER_POOL_STATS
-INNODB_CMP
-INNODB_CMPMEM
-INNODB_CMPMEM_RESET
-INNODB_CMP_PER_INDEX
-INNODB_CMP_RESET
-INNODB_LOCKS
-INNODB_LOCK_WAITS
-INNODB_METRICS
-INNODB_MUTEXES
-INNODB_SYS_COLUMNS
-INNODB_SYS_FIELDS
-INNODB_SYS_FOREIGN
-INNODB_SYS_FOREIGN_COLS
-INNODB_SYS_INDEXES
-INNODB_SYS_TABLES
-INNODB_SYS_TABLESTATS
-INNODB_SYS_VIRTUAL
-INNODB_TABLESPACES_ENCRYPTION
-INNODB_TABLESPACES_SCRUBBING
-INNODB_TRX
-KEY_CACHES
-KEY_COLUMN_USAGE
-PARAMETERS
-PARTITIONS
-PLUGINS
-PROCESSLIST
-PROFILING
-REFERENTIAL_CONSTRAINTS
-ROUTINES
-SCHEMATA
-SCHEMA_PRIVILEGES
-SESSION_STATUS
-SESSION_VARIABLES
-SPATIAL_REF_SYS
-STATISTICS
-SYSTEM_VARIABLES
-TABLES
-TABLESPACES
-TABLE_CONSTRAINTS
-TABLE_PRIVILEGES
-TABLE_STATISTICS
-TRIGGERS
-USER_PRIVILEGES
-USER_STATISTICS
-VIEWS
-SELECT t.table_name, c1.column_name
-FROM information_schema.tables t
-INNER JOIN
-information_schema.columns c1
-ON t.table_schema = c1.table_schema AND
-t.table_name = c1.table_name
-WHERE t.table_schema = 'information_schema' AND
-c1.ordinal_position =
-( SELECT COALESCE(MIN(c2.ordinal_position),1)
-FROM information_schema.columns c2
-WHERE c2.table_schema = t.table_schema AND
-c2.table_name = t.table_name AND
-c2.column_name LIKE '%SCHEMA%'
- ) order by t.table_name;
-table_name column_name
-ALL_PLUGINS PLUGIN_NAME
-APPLICABLE_ROLES GRANTEE
-CHARACTER_SETS CHARACTER_SET_NAME
-CLIENT_STATISTICS CLIENT
-COLLATIONS COLLATION_NAME
-COLLATION_CHARACTER_SET_APPLICABILITY COLLATION_NAME
-COLUMNS TABLE_SCHEMA
-COLUMN_PRIVILEGES TABLE_SCHEMA
-ENABLED_ROLES ROLE_NAME
-ENGINES ENGINE
-EVENTS EVENT_SCHEMA
-FILES TABLE_SCHEMA
-GEOMETRY_COLUMNS F_TABLE_SCHEMA
-GLOBAL_STATUS VARIABLE_NAME
-GLOBAL_VARIABLES VARIABLE_NAME
-INDEX_STATISTICS TABLE_SCHEMA
-INNODB_BUFFER_PAGE POOL_ID
-INNODB_BUFFER_PAGE_LRU POOL_ID
-INNODB_BUFFER_POOL_STATS POOL_ID
-INNODB_CMP page_size
-INNODB_CMPMEM page_size
-INNODB_CMPMEM_RESET page_size
-INNODB_CMP_PER_INDEX database_name
-INNODB_CMP_RESET page_size
-INNODB_LOCKS lock_id
-INNODB_LOCK_WAITS requesting_trx_id
-INNODB_METRICS NAME
-INNODB_MUTEXES NAME
-INNODB_SYS_COLUMNS TABLE_ID
-INNODB_SYS_FIELDS INDEX_ID
-INNODB_SYS_FOREIGN ID
-INNODB_SYS_FOREIGN_COLS ID
-INNODB_SYS_INDEXES INDEX_ID
-INNODB_SYS_TABLES TABLE_ID
-INNODB_SYS_TABLESTATS TABLE_ID
-INNODB_SYS_VIRTUAL TABLE_ID
-INNODB_TABLESPACES_ENCRYPTION SPACE
-INNODB_TABLESPACES_SCRUBBING SPACE
-INNODB_TRX trx_id
-KEY_CACHES KEY_CACHE_NAME
-KEY_COLUMN_USAGE CONSTRAINT_SCHEMA
-PARAMETERS SPECIFIC_SCHEMA
-PARTITIONS TABLE_SCHEMA
-PLUGINS PLUGIN_NAME
-PROCESSLIST ID
-PROFILING QUERY_ID
-REFERENTIAL_CONSTRAINTS CONSTRAINT_SCHEMA
-ROUTINES ROUTINE_SCHEMA
-SCHEMATA SCHEMA_NAME
-SCHEMA_PRIVILEGES TABLE_SCHEMA
-SESSION_STATUS VARIABLE_NAME
-SESSION_VARIABLES VARIABLE_NAME
-SPATIAL_REF_SYS SRID
-STATISTICS TABLE_SCHEMA
-SYSTEM_VARIABLES VARIABLE_NAME
-TABLES TABLE_SCHEMA
-TABLESPACES TABLESPACE_NAME
-TABLE_CONSTRAINTS CONSTRAINT_SCHEMA
-TABLE_PRIVILEGES TABLE_SCHEMA
-TABLE_STATISTICS TABLE_SCHEMA
-TRIGGERS TRIGGER_SCHEMA
-USER_PRIVILEGES GRANTEE
-USER_STATISTICS USER
-VIEWS TABLE_SCHEMA
-SELECT t.table_name, c1.column_name
-FROM information_schema.tables t
-INNER JOIN
-information_schema.columns c1
-ON t.table_schema = c1.table_schema AND
-t.table_name = c1.table_name
-WHERE t.table_schema = 'information_schema' AND
-c1.ordinal_position =
-( SELECT COALESCE(MIN(c2.ordinal_position),1)
-FROM information_schema.columns c2
-WHERE c2.table_schema = 'information_schema' AND
-c2.table_name = t.table_name AND
-c2.column_name LIKE '%SCHEMA%'
- ) order by t.table_name;
-table_name column_name
-ALL_PLUGINS PLUGIN_NAME
-APPLICABLE_ROLES GRANTEE
-CHARACTER_SETS CHARACTER_SET_NAME
-CLIENT_STATISTICS CLIENT
-COLLATIONS COLLATION_NAME
-COLLATION_CHARACTER_SET_APPLICABILITY COLLATION_NAME
-COLUMNS TABLE_SCHEMA
-COLUMN_PRIVILEGES TABLE_SCHEMA
-ENABLED_ROLES ROLE_NAME
-ENGINES ENGINE
-EVENTS EVENT_SCHEMA
-FILES TABLE_SCHEMA
-GEOMETRY_COLUMNS F_TABLE_SCHEMA
-GLOBAL_STATUS VARIABLE_NAME
-GLOBAL_VARIABLES VARIABLE_NAME
-INDEX_STATISTICS TABLE_SCHEMA
-INNODB_BUFFER_PAGE POOL_ID
-INNODB_BUFFER_PAGE_LRU POOL_ID
-INNODB_BUFFER_POOL_STATS POOL_ID
-INNODB_CMP page_size
-INNODB_CMPMEM page_size
-INNODB_CMPMEM_RESET page_size
-INNODB_CMP_PER_INDEX database_name
-INNODB_CMP_RESET page_size
-INNODB_LOCKS lock_id
-INNODB_LOCK_WAITS requesting_trx_id
-INNODB_METRICS NAME
-INNODB_MUTEXES NAME
-INNODB_SYS_COLUMNS TABLE_ID
-INNODB_SYS_FIELDS INDEX_ID
-INNODB_SYS_FOREIGN ID
-INNODB_SYS_FOREIGN_COLS ID
-INNODB_SYS_INDEXES INDEX_ID
-INNODB_SYS_TABLES TABLE_ID
-INNODB_SYS_TABLESTATS TABLE_ID
-INNODB_SYS_VIRTUAL TABLE_ID
-INNODB_TABLESPACES_ENCRYPTION SPACE
-INNODB_TABLESPACES_SCRUBBING SPACE
-INNODB_TRX trx_id
-KEY_CACHES KEY_CACHE_NAME
-KEY_COLUMN_USAGE CONSTRAINT_SCHEMA
-PARAMETERS SPECIFIC_SCHEMA
-PARTITIONS TABLE_SCHEMA
-PLUGINS PLUGIN_NAME
-PROCESSLIST ID
-PROFILING QUERY_ID
-REFERENTIAL_CONSTRAINTS CONSTRAINT_SCHEMA
-ROUTINES ROUTINE_SCHEMA
-SCHEMATA SCHEMA_NAME
-SCHEMA_PRIVILEGES TABLE_SCHEMA
-SESSION_STATUS VARIABLE_NAME
-SESSION_VARIABLES VARIABLE_NAME
-SPATIAL_REF_SYS SRID
-STATISTICS TABLE_SCHEMA
-SYSTEM_VARIABLES VARIABLE_NAME
-TABLES TABLE_SCHEMA
-TABLESPACES TABLESPACE_NAME
-TABLE_CONSTRAINTS CONSTRAINT_SCHEMA
-TABLE_PRIVILEGES TABLE_SCHEMA
-TABLE_STATISTICS TABLE_SCHEMA
-TRIGGERS TRIGGER_SCHEMA
-USER_PRIVILEGES GRANTEE
-USER_STATISTICS USER
-VIEWS TABLE_SCHEMA
-select 1 as "must be 1" from information_schema.tables where "ACCOUNTS"=
-(select cast(table_name as char) from information_schema.tables
-order by table_name limit 1) limit 1;
-must be 1
-1
-select t.table_name, group_concat(t.table_schema, '.', t.table_name),
-count(*) as num1
-from information_schema.tables t
-inner join information_schema.columns c1
-on t.table_schema = c1.table_schema AND t.table_name = c1.table_name
-where t.table_schema = 'information_schema' and
-c1.ordinal_position =
-(select isnull(c2.column_type) -
-isnull(group_concat(c2.table_schema, '.', c2.table_name)) +
-count(*) as num
-from information_schema.columns c2 where
-c2.table_schema='information_schema' and
-(c2.column_type = 'varchar(7)' or c2.column_type = 'varchar(20)')
-group by c2.column_type order by num limit 1)
-group by t.table_name order by num1, t.table_name;
-table_name group_concat(t.table_schema, '.', t.table_name) num1
-ALL_PLUGINS information_schema.ALL_PLUGINS 1
-APPLICABLE_ROLES information_schema.APPLICABLE_ROLES 1
-CHARACTER_SETS information_schema.CHARACTER_SETS 1
-CLIENT_STATISTICS information_schema.CLIENT_STATISTICS 1
-COLLATIONS information_schema.COLLATIONS 1
-COLLATION_CHARACTER_SET_APPLICABILITY information_schema.COLLATION_CHARACTER_SET_APPLICABILITY 1
-COLUMNS information_schema.COLUMNS 1
-COLUMN_PRIVILEGES information_schema.COLUMN_PRIVILEGES 1
-ENGINES information_schema.ENGINES 1
-EVENTS information_schema.EVENTS 1
-FILES information_schema.FILES 1
-GEOMETRY_COLUMNS information_schema.GEOMETRY_COLUMNS 1
-GLOBAL_STATUS information_schema.GLOBAL_STATUS 1
-GLOBAL_VARIABLES information_schema.GLOBAL_VARIABLES 1
-INDEX_STATISTICS information_schema.INDEX_STATISTICS 1
-INNODB_BUFFER_PAGE information_schema.INNODB_BUFFER_PAGE 1
-INNODB_BUFFER_PAGE_LRU information_schema.INNODB_BUFFER_PAGE_LRU 1
-INNODB_BUFFER_POOL_STATS information_schema.INNODB_BUFFER_POOL_STATS 1
-INNODB_CMP information_schema.INNODB_CMP 1
-INNODB_CMPMEM information_schema.INNODB_CMPMEM 1
-INNODB_CMPMEM_RESET information_schema.INNODB_CMPMEM_RESET 1
-INNODB_CMP_PER_INDEX information_schema.INNODB_CMP_PER_INDEX 1
-INNODB_CMP_RESET information_schema.INNODB_CMP_RESET 1
-INNODB_LOCKS information_schema.INNODB_LOCKS 1
-INNODB_LOCK_WAITS information_schema.INNODB_LOCK_WAITS 1
-INNODB_METRICS information_schema.INNODB_METRICS 1
-INNODB_MUTEXES information_schema.INNODB_MUTEXES 1
-INNODB_SYS_COLUMNS information_schema.INNODB_SYS_COLUMNS 1
-INNODB_SYS_FIELDS information_schema.INNODB_SYS_FIELDS 1
-INNODB_SYS_FOREIGN information_schema.INNODB_SYS_FOREIGN 1
-INNODB_SYS_FOREIGN_COLS information_schema.INNODB_SYS_FOREIGN_COLS 1
-INNODB_SYS_INDEXES information_schema.INNODB_SYS_INDEXES 1
-INNODB_SYS_TABLES information_schema.INNODB_SYS_TABLES 1
-INNODB_SYS_TABLESTATS information_schema.INNODB_SYS_TABLESTATS 1
-INNODB_SYS_VIRTUAL information_schema.INNODB_SYS_VIRTUAL 1
-INNODB_TABLESPACES_ENCRYPTION information_schema.INNODB_TABLESPACES_ENCRYPTION 1
-INNODB_TABLESPACES_SCRUBBING information_schema.INNODB_TABLESPACES_SCRUBBING 1
-INNODB_TRX information_schema.INNODB_TRX 1
-KEY_CACHES information_schema.KEY_CACHES 1
-KEY_COLUMN_USAGE information_schema.KEY_COLUMN_USAGE 1
-PARAMETERS information_schema.PARAMETERS 1
-PARTITIONS information_schema.PARTITIONS 1
-PLUGINS information_schema.PLUGINS 1
-PROCESSLIST information_schema.PROCESSLIST 1
-PROFILING information_schema.PROFILING 1
-REFERENTIAL_CONSTRAINTS information_schema.REFERENTIAL_CONSTRAINTS 1
-ROUTINES information_schema.ROUTINES 1
-SCHEMATA information_schema.SCHEMATA 1
-SCHEMA_PRIVILEGES information_schema.SCHEMA_PRIVILEGES 1
-SESSION_STATUS information_schema.SESSION_STATUS 1
-SESSION_VARIABLES information_schema.SESSION_VARIABLES 1
-SPATIAL_REF_SYS information_schema.SPATIAL_REF_SYS 1
-STATISTICS information_schema.STATISTICS 1
-SYSTEM_VARIABLES information_schema.SYSTEM_VARIABLES 1
-TABLES information_schema.TABLES 1
-TABLESPACES information_schema.TABLESPACES 1
-TABLE_CONSTRAINTS information_schema.TABLE_CONSTRAINTS 1
-TABLE_PRIVILEGES information_schema.TABLE_PRIVILEGES 1
-TABLE_STATISTICS information_schema.TABLE_STATISTICS 1
-TRIGGERS information_schema.TRIGGERS 1
-USER_PRIVILEGES information_schema.USER_PRIVILEGES 1
-USER_STATISTICS information_schema.USER_STATISTICS 1
-VIEWS information_schema.VIEWS 1
-+---------------------------------------+
-+---------------------------------------+
-+---------------------------------------+
-Database: information_schema
-| Tables |
-| ALL_PLUGINS |
-| APPLICABLE_ROLES |
-| CHARACTER_SETS |
-| CLIENT_STATISTICS |
-| COLLATIONS |
-| COLLATION_CHARACTER_SET_APPLICABILITY |
-| COLUMNS |
-| COLUMN_PRIVILEGES |
-| ENABLED_ROLES |
-| ENGINES |
-| EVENTS |
-| FILES |
-| GEOMETRY_COLUMNS |
-| GLOBAL_STATUS |
-| GLOBAL_VARIABLES |
-| INDEX_STATISTICS |
-| INNODB_BUFFER_PAGE |
-| INNODB_BUFFER_PAGE_LRU |
-| INNODB_BUFFER_POOL_STATS |
-| INNODB_CMP |
-| INNODB_CMPMEM |
-| INNODB_CMPMEM_RESET |
-| INNODB_CMP_PER_INDEX |
-| INNODB_CMP_RESET |
-| INNODB_LOCKS |
-| INNODB_LOCK_WAITS |
-| INNODB_METRICS |
-| INNODB_MUTEXES |
-| INNODB_SYS_COLUMNS |
-| INNODB_SYS_FIELDS |
-| INNODB_SYS_FOREIGN |
-| INNODB_SYS_FOREIGN_COLS |
-| INNODB_SYS_INDEXES |
-| INNODB_SYS_TABLES |
-| INNODB_SYS_TABLESTATS |
-| INNODB_SYS_VIRTUAL |
-| INNODB_TABLESPACES_ENCRYPTION |
-| INNODB_TABLESPACES_SCRUBBING |
-| INNODB_TRX |
-| KEY_CACHES |
-| KEY_COLUMN_USAGE |
-| PARAMETERS |
-| PARTITIONS |
-| PLUGINS |
-| PROCESSLIST |
-| PROFILING |
-| REFERENTIAL_CONSTRAINTS |
-| ROUTINES |
-| SCHEMATA |
-| SCHEMA_PRIVILEGES |
-| SESSION_STATUS |
-| SESSION_VARIABLES |
-| SPATIAL_REF_SYS |
-| STATISTICS |
-| SYSTEM_VARIABLES |
-| TABLES |
-| TABLESPACES |
-| TABLE_CONSTRAINTS |
-| TABLE_PRIVILEGES |
-| TABLE_STATISTICS |
-| TRIGGERS |
-| USER_PRIVILEGES |
-| USER_STATISTICS |
-| VIEWS |
-+---------------------------------------+
-+---------------------------------------+
-+---------------------------------------+
-Database: INFORMATION_SCHEMA
-| Tables |
-| ALL_PLUGINS |
-| APPLICABLE_ROLES |
-| CHARACTER_SETS |
-| CLIENT_STATISTICS |
-| COLLATIONS |
-| COLLATION_CHARACTER_SET_APPLICABILITY |
-| COLUMNS |
-| COLUMN_PRIVILEGES |
-| ENABLED_ROLES |
-| ENGINES |
-| EVENTS |
-| FILES |
-| GEOMETRY_COLUMNS |
-| GLOBAL_STATUS |
-| GLOBAL_VARIABLES |
-| INDEX_STATISTICS |
-| INNODB_BUFFER_PAGE |
-| INNODB_BUFFER_PAGE_LRU |
-| INNODB_BUFFER_POOL_STATS |
-| INNODB_CMP |
-| INNODB_CMPMEM |
-| INNODB_CMPMEM_RESET |
-| INNODB_CMP_PER_INDEX |
-| INNODB_CMP_RESET |
-| INNODB_LOCKS |
-| INNODB_LOCK_WAITS |
-| INNODB_METRICS |
-| INNODB_MUTEXES |
-| INNODB_SYS_COLUMNS |
-| INNODB_SYS_FIELDS |
-| INNODB_SYS_FOREIGN |
-| INNODB_SYS_FOREIGN_COLS |
-| INNODB_SYS_INDEXES |
-| INNODB_SYS_TABLES |
-| INNODB_SYS_TABLESTATS |
-| INNODB_SYS_VIRTUAL |
-| INNODB_TABLESPACES_ENCRYPTION |
-| INNODB_TABLESPACES_SCRUBBING |
-| INNODB_TRX |
-| KEY_CACHES |
-| KEY_COLUMN_USAGE |
-| PARAMETERS |
-| PARTITIONS |
-| PLUGINS |
-| PROCESSLIST |
-| PROFILING |
-| REFERENTIAL_CONSTRAINTS |
-| ROUTINES |
-| SCHEMATA |
-| SCHEMA_PRIVILEGES |
-| SESSION_STATUS |
-| SESSION_VARIABLES |
-| SPATIAL_REF_SYS |
-| STATISTICS |
-| SYSTEM_VARIABLES |
-| TABLES |
-| TABLESPACES |
-| TABLE_CONSTRAINTS |
-| TABLE_PRIVILEGES |
-| TABLE_STATISTICS |
-| TRIGGERS |
-| USER_PRIVILEGES |
-| USER_STATISTICS |
-| VIEWS |
-+--------------------+
-+--------------------+
-+--------------------+
-Wildcard: inf_rmation_schema
-| Databases |
-| information_schema |
-SELECT table_schema, count(*) FROM information_schema.TABLES WHERE table_schema IN ('mysql', 'INFORMATION_SCHEMA', 'test', 'mysqltest') GROUP BY TABLE_SCHEMA;
-table_schema count(*)
-information_schema 64
-mysql 31
diff --git a/mysql-test/r/information_schema_chmod.result b/mysql-test/r/information_schema_chmod.result
deleted file mode 100644
index 36124559439..00000000000
--- a/mysql-test/r/information_schema_chmod.result
+++ /dev/null
@@ -1,5 +0,0 @@
-create database mysqltest;
-create table mysqltest.t1(a int);
-select table_schema from information_schema.tables where table_schema='mysqltest';
-table_schema
-drop database mysqltest;
diff --git a/mysql-test/r/information_schema_db.result b/mysql-test/r/information_schema_db.result
deleted file mode 100644
index 45ade65c502..00000000000
--- a/mysql-test/r/information_schema_db.result
+++ /dev/null
@@ -1,246 +0,0 @@
-set local sql_mode="";
-set global sql_mode="";
-drop table if exists t1,t2;
-drop view if exists v1,v2;
-drop function if exists f1;
-drop function if exists f2;
-show tables from INFORMATION_SCHEMA like 'T%';
-Tables_in_information_schema (T%)
-TABLES
-TABLESPACES
-TABLE_CONSTRAINTS
-TABLE_PRIVILEGES
-TABLE_STATISTICS
-TRIGGERS
-create database `inf%`;
-create database mbase;
-use `inf%`;
-show tables;
-Tables_in_inf%
-grant all privileges on `inf%`.* to 'mysqltest_1'@'localhost';
-grant all privileges on `mbase`.* to 'mysqltest_1'@'localhost';
-create table t1 (f1 int);
-create function func1(curr_int int) returns int
-begin
-declare ret_val int;
-select max(f1) from t1 into ret_val;
-return ret_val;
-end|
-create view v1 as select f1 from t1 where f1 = func1(f1);
-create function func2() returns int return 1;
-use mbase;
-create procedure p1 ()
-begin
-select table_name from information_schema.key_column_usage
-order by table_name;
-end|
-create table t1
-(f1 int(10) unsigned not null,
-f2 varchar(100) not null,
-primary key (f1), unique key (f2));
-connect user1,localhost,mysqltest_1,,;
-connection user1;
-select * from information_schema.tables;
-call mbase.p1();
-call mbase.p1();
-call mbase.p1();
-connection default;
-use `inf%`;
-drop user mysqltest_1@localhost;
-drop table t1;
-select table_name, table_type, table_comment from information_schema.tables
-where table_schema='inf%' and func2();
-table_name table_type table_comment
-v1 VIEW VIEW
-select table_name, table_type, table_comment from information_schema.tables
-where table_schema='inf%' and func2();
-table_name table_type table_comment
-v1 VIEW VIEW
-drop view v1;
-drop function func1;
-drop function func2;
-drop database `inf%`;
-drop procedure mbase.p1;
-drop database mbase;
-disconnect user1;
-use test;
-create table t1 (i int);
-create function f1 () returns int return (select max(i) from t1);
-create view v1 as select f1();
-create table t2 (id int);
-create function f2 () returns int return (select max(i) from t2);
-create view v2 as select f2();
-drop table t2;
-select table_name, table_type, table_comment from information_schema.tables
-where table_schema='test' order by table_name;
-table_name table_type table_comment
-t1 BASE TABLE
-v1 VIEW VIEW
-v2 VIEW VIEW
-drop table t1;
-select table_name, table_type, table_comment from information_schema.tables
-where table_schema='test' order by table_name;
-table_name table_type table_comment
-v1 VIEW VIEW
-v2 VIEW VIEW
-drop function f1;
-drop function f2;
-drop view v1, v2;
-create database testdb_1;
-create user testdb_1@localhost;
-grant all on testdb_1.* to testdb_1@localhost with grant option;
-create user testdb_2@localhost;
-grant all on test.* to testdb_2@localhost with grant option;
-connect testdb_1,localhost,testdb_1,,test;
-use testdb_1;
-create table t1 (f1 char(4));
-create view v1 as select f1 from t1;
-grant insert on v1 to testdb_2@localhost;
-create view v5 as select f1 from t1;
-grant select, show view on v5 to testdb_2@localhost;
-create definer=`no_such_user`@`no_such_host` view v6 as select f1 from t1;
-ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
-connection default;
-use testdb_1;
-create view v6 as select f1 from t1;
-grant select, show view on v6 to testdb_2@localhost;
-create table t2 (f1 char(4));
-create definer=`no_such_user`@`no_such_host` view v7 as select * from t2;
-Warnings:
-Note 1449 The user specified as a definer ('no_such_user'@'no_such_host') does not exist
-show fields from testdb_1.v6;
-Field Type Null Key Default Extra
-f1 char(4) YES NULL
-show create view testdb_1.v6;
-View Create View character_set_client collation_connection
-v6 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v6` AS select `t1`.`f1` AS `f1` from `t1` latin1 latin1_swedish_ci
-show create view testdb_1.v7;
-View Create View character_set_client collation_connection
-v7 CREATE ALGORITHM=UNDEFINED DEFINER=`no_such_user`@`no_such_host` SQL SECURITY DEFINER VIEW `v7` AS select `testdb_1`.`t2`.`f1` AS `f1` from `t2` latin1 latin1_swedish_ci
-Warnings:
-Note 1449 The user specified as a definer ('no_such_user'@'no_such_host') does not exist
-show fields from testdb_1.v7;
-Field Type Null Key Default Extra
-f1 char(4) YES NULL
-Warnings:
-Note 1449 The user specified as a definer ('no_such_user'@'no_such_host') does not exist
-connection testdb_1;
-create table t3 (f1 char(4), f2 char(4));
-create view v3 as select f1,f2 from t3;
-grant insert(f1), insert(f2) on v3 to testdb_2@localhost;
-connect testdb_2,localhost,testdb_2,,test;
-create view v2 as select f1 from testdb_1.v1;
-create view v4 as select f1,f2 from testdb_1.v3;
-show fields from testdb_1.v5;
-Field Type Null Key Default Extra
-f1 char(4) YES NULL
-show create view testdb_1.v5;
-View Create View character_set_client collation_connection
-v5 CREATE ALGORITHM=UNDEFINED DEFINER=`testdb_1`@`localhost` SQL SECURITY DEFINER VIEW `testdb_1`.`v5` AS select `testdb_1`.`t1`.`f1` AS `f1` from `testdb_1`.`t1` latin1 latin1_swedish_ci
-show fields from testdb_1.v6;
-Field Type Null Key Default Extra
-f1 char(4) YES NULL
-show create view testdb_1.v6;
-View Create View character_set_client collation_connection
-v6 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `testdb_1`.`v6` AS select `testdb_1`.`t1`.`f1` AS `f1` from `testdb_1`.`t1` latin1 latin1_swedish_ci
-connection testdb_1;
-show fields from testdb_1.v7;
-Field Type Null Key Default Extra
-f1 char(4) YES NULL
-Warnings:
-Note 1449 The user specified as a definer ('no_such_user'@'no_such_host') does not exist
-show create view testdb_1.v7;
-View Create View character_set_client collation_connection
-v7 CREATE ALGORITHM=UNDEFINED DEFINER=`no_such_user`@`no_such_host` SQL SECURITY DEFINER VIEW `v7` AS select `testdb_1`.`t2`.`f1` AS `f1` from `t2` latin1 latin1_swedish_ci
-Warnings:
-Note 1449 The user specified as a definer ('no_such_user'@'no_such_host') does not exist
-revoke insert(f1) on v3 from testdb_2@localhost;
-revoke select,show view on v5 from testdb_2@localhost;
-connection default;
-use testdb_1;
-revoke select,show view on v6 from testdb_2@localhost;
-connection testdb_2;
-show fields from testdb_1.v5;
-ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table 'v5'
-show create view testdb_1.v5;
-ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table 'v5'
-show fields from testdb_1.v6;
-ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table 'v6'
-show create view testdb_1.v6;
-ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table 'v6'
-show fields from testdb_1.v7;
-ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table 'v7'
-show create view testdb_1.v7;
-ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table 'v7'
-show create view v4;
-View Create View character_set_client collation_connection
-v4 CREATE ALGORITHM=UNDEFINED DEFINER=`testdb_2`@`localhost` SQL SECURITY DEFINER VIEW `v4` AS select `v3`.`f1` AS `f1`,`v3`.`f2` AS `f2` from `testdb_1`.`v3` latin1 latin1_swedish_ci
-show fields from v4;
-Field Type Null Key Default Extra
-f1 char(4) YES NULL
-f2 char(4) YES NULL
-show fields from v2;
-Field Type Null Key Default Extra
-f1 char(4) YES NULL
-show fields from testdb_1.v1;
-Field Type Null Key Default Extra
-f1 char(4) YES NULL
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`testdb_2`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `v1`.`f1` AS `f1` from `testdb_1`.`v1` latin1 latin1_swedish_ci
-show create view testdb_1.v1;
-ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table 'v1'
-select table_name from information_schema.columns a
-where a.table_name = 'v2';
-table_name
-v2
-select view_definition from information_schema.views a
-where a.table_name = 'v2';
-view_definition
-select `v1`.`f1` AS `f1` from `testdb_1`.`v1`
-select view_definition from information_schema.views a
-where a.table_name = 'testdb_1.v1';
-view_definition
-select * from v2;
-ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-connection default;
-use test;
-drop view testdb_1.v1, v2, testdb_1.v3, v4;
-drop database testdb_1;
-connection testdb_1;
-disconnect testdb_1;
-connection testdb_2;
-disconnect testdb_2;
-connection default;
-drop user testdb_1@localhost;
-drop user testdb_2@localhost;
-create database testdb_1;
-create table testdb_1.t1 (a int);
-create view testdb_1.v1 as select * from testdb_1.t1;
-grant show view on testdb_1.* to mysqltest_1@localhost;
-grant select on testdb_1.v1 to mysqltest_1@localhost;
-connect user1,localhost,mysqltest_1,,test;
-connection user1;
-select table_schema, table_name, view_definition from information_schema.views
-where table_name='v1';
-table_schema table_name view_definition
-testdb_1 v1 select `testdb_1`.`t1`.`a` AS `a` from `testdb_1`.`t1`
-show create view testdb_1.v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `testdb_1`.`v1` AS select `testdb_1`.`t1`.`a` AS `a` from `testdb_1`.`t1` latin1 latin1_swedish_ci
-connection default;
-revoke select on testdb_1.v1 from mysqltest_1@localhost;
-connection user1;
-select table_schema, table_name, view_definition from information_schema.views
-where table_name='v1';
-table_schema table_name view_definition
-testdb_1 v1
-show create view testdb_1.v1;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'v1'
-connection default;
-drop user mysqltest_1@localhost;
-drop database testdb_1;
-connection user1;
-disconnect user1;
-connection default;
-set global sql_mode=default;
diff --git a/mysql-test/r/information_schema_inno.result b/mysql-test/r/information_schema_inno.result
deleted file mode 100644
index d952e4372ca..00000000000
--- a/mysql-test/r/information_schema_inno.result
+++ /dev/null
@@ -1,109 +0,0 @@
-DROP TABLE IF EXISTS t1,t2,t3;
-CREATE TABLE t1 (id INT NOT NULL, PRIMARY KEY (id)) ENGINE=INNODB;
-CREATE TABLE t2 (id INT PRIMARY KEY, t1_id INT, INDEX par_ind (t1_id, id),
-FOREIGN KEY (t1_id) REFERENCES t1(id) ON DELETE CASCADE,
-FOREIGN KEY (t1_id) REFERENCES t1(id) ON UPDATE CASCADE) ENGINE=INNODB;
-CREATE TABLE t3 (id INT PRIMARY KEY, t2_id INT, INDEX par_ind (t2_id),
-FOREIGN KEY (id, t2_id) REFERENCES t2(t1_id, id) ON DELETE CASCADE) ENGINE=INNODB;
-select * from information_schema.TABLE_CONSTRAINTS where
-TABLE_SCHEMA= "test";
-CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_SCHEMA TABLE_NAME CONSTRAINT_TYPE
-def test PRIMARY test t1 PRIMARY KEY
-def test PRIMARY test t2 PRIMARY KEY
-def test PRIMARY test t3 PRIMARY KEY
-def test t2_ibfk_1 test t2 FOREIGN KEY
-def test t2_ibfk_2 test t2 FOREIGN KEY
-def test t3_ibfk_1 test t3 FOREIGN KEY
-select * from information_schema.KEY_COLUMN_USAGE where
-TABLE_SCHEMA= "test";
-CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION POSITION_IN_UNIQUE_CONSTRAINT REFERENCED_TABLE_SCHEMA REFERENCED_TABLE_NAME REFERENCED_COLUMN_NAME
-def test PRIMARY def test t1 id 1 NULL NULL NULL NULL
-def test PRIMARY def test t2 id 1 NULL NULL NULL NULL
-def test PRIMARY def test t3 id 1 NULL NULL NULL NULL
-def test t2_ibfk_1 def test t2 t1_id 1 1 test t1 id
-def test t2_ibfk_2 def test t2 t1_id 1 1 test t1 id
-def test t3_ibfk_1 def test t3 id 1 1 test t2 t1_id
-def test t3_ibfk_1 def test t3 t2_id 2 2 test t2 id
-drop table t3, t2, t1;
-CREATE TABLE t1(a1 INT NOT NULL, a2 INT NOT NULL,
-PRIMARY KEY(a1, a2)) ENGINE=INNODB;
-CREATE TABLE t2(b1 INT, b2 INT, INDEX (b1, b2),
-CONSTRAINT A1
-FOREIGN KEY (b1, b2) REFERENCES t1(a1, a2)
-ON UPDATE CASCADE ON DELETE NO ACTION) ENGINE=INNODB;
-CREATE TABLE t3(b1 INT, b2 INT, INDEX t3_indx (b1, b2),
-CONSTRAINT A2
-FOREIGN KEY (b1, b2) REFERENCES t2(b1, b2)
-ON UPDATE SET NULL ON DELETE RESTRICT) ENGINE=INNODB;
-CREATE TABLE t4(b1 INT, b2 INT, UNIQUE KEY t4_ukey (b1, b2),
-CONSTRAINT A3
-FOREIGN KEY (b1, b2) REFERENCES t3(b1, b2)
-ON UPDATE NO ACTION ON DELETE SET NULL) ENGINE=INNODB;
-CREATE TABLE t5(b1 INT, b2 INT, INDEX (b1, b2),
-CONSTRAINT A4
-FOREIGN KEY (b1, b2) REFERENCES t4(b1, b2)
-ON UPDATE RESTRICT ON DELETE CASCADE) ENGINE=INNODB;
-select a.CONSTRAINT_SCHEMA, b.TABLE_NAME, CONSTRAINT_TYPE,
-b.CONSTRAINT_NAME, UNIQUE_CONSTRAINT_SCHEMA, UNIQUE_CONSTRAINT_NAME,
-MATCH_OPTION, UPDATE_RULE, DELETE_RULE, b.REFERENCED_TABLE_NAME
-from information_schema.TABLE_CONSTRAINTS a,
-information_schema.REFERENTIAL_CONSTRAINTS b
-where a.CONSTRAINT_SCHEMA = 'test' and a.CONSTRAINT_SCHEMA = b.CONSTRAINT_SCHEMA and
-a.CONSTRAINT_NAME = b.CONSTRAINT_NAME;
-CONSTRAINT_SCHEMA TABLE_NAME CONSTRAINT_TYPE CONSTRAINT_NAME UNIQUE_CONSTRAINT_SCHEMA UNIQUE_CONSTRAINT_NAME MATCH_OPTION UPDATE_RULE DELETE_RULE REFERENCED_TABLE_NAME
-test t2 FOREIGN KEY A1 test PRIMARY NONE CASCADE NO ACTION t1
-test t3 FOREIGN KEY A2 test b1 NONE SET NULL RESTRICT t2
-test t4 FOREIGN KEY A3 test t3_indx NONE NO ACTION SET NULL t3
-test t5 FOREIGN KEY A4 test t4_ukey NONE RESTRICT CASCADE t4
-drop tables t5, t4, t3, t2, t1;
-create database `db-1`;
-use `db-1`;
-create table `t-2` (
-id int(10) unsigned not null auto_increment,
-primary key (id)
-) engine=innodb;
-create table `t-1` (
-id int(10) unsigned not null auto_increment,
-idtype int(10) unsigned not null,
-primary key (id),
-key fk_t1_1 (idtype),
-constraint fk_t1_1 foreign key (idtype) references `t-2` (id)
-) engine=innodb;
-use test;
-select referenced_table_schema, referenced_table_name
-from information_schema.key_column_usage
-where constraint_schema = 'db-1'
-order by referenced_table_schema, referenced_table_name;
-referenced_table_schema referenced_table_name
-NULL NULL
-NULL NULL
-db-1 t-2
-drop database `db-1`;
-create table t1(id int primary key) engine = Innodb;
-create table t2(pid int, foreign key (pid) references t1(id)) engine = Innodb;
-set foreign_key_checks = 0;
-drop table t1;
-select UNIQUE_CONSTRAINT_NAME
-from information_schema.referential_constraints
-where constraint_schema = schema();
-UNIQUE_CONSTRAINT_NAME
-NULL
-drop table t2;
-set foreign_key_checks = 1;
-#
-# Bug#55973 Assertion `thd->transaction.stmt.is_empty()'
-# on CREATE TABLE .. SELECT I_S.PART
-#
-DROP TABLE IF EXISTS t1;
-DROP VIEW IF EXISTS v1;
-CREATE VIEW v1 AS SELECT 1;
-CREATE TABLE t1 engine = InnoDB AS
-SELECT * FROM information_schema.partitions
-WHERE table_schema= 'test' AND table_name= 'v1';
-DROP TABLE t1;
-DROP VIEW v1;
-CREATE TABLE t1(i int) ENGINE=Innodb ROW_FORMAT=REDUNDANT DATA DIRECTORY='MYSQLTEST_VARDIR/tmp';
-SELECT CREATE_OPTIONS FROM INFORMATION_SCHEMA.TABLES where TABLE_NAME='t1';
-CREATE_OPTIONS
-row_format=REDUNDANT DATA DIRECTORY='MYSQLTEST_VARDIR/tmp/'
-DROP TABLE t1;
diff --git a/mysql-test/r/information_schema_linux.result b/mysql-test/r/information_schema_linux.result
deleted file mode 100644
index b4b7de7bc65..00000000000
--- a/mysql-test/r/information_schema_linux.result
+++ /dev/null
@@ -1,10 +0,0 @@
-#
-# MDEV-6756: map a linux pid (child pid) to a connection id shown in
-# the output of SHOW PROCESSLIST
-#
-connect con1,localhost,root;
-SELECT max(tid) != min(tid) FROM information_schema.processlist;
-max(tid) != min(tid)
-1
-connection default;
-disconnect con1;
diff --git a/mysql-test/r/information_schema_parameters.result b/mysql-test/r/information_schema_parameters.result
deleted file mode 100644
index a215c86c388..00000000000
--- a/mysql-test/r/information_schema_parameters.result
+++ /dev/null
@@ -1,628 +0,0 @@
-# ========== parameters.1 ==========
-USE INFORMATION_SCHEMA;
-SHOW CREATE TABLE INFORMATION_SCHEMA.PARAMETERS;
-Table Create Table
-PARAMETERS CREATE TEMPORARY TABLE `PARAMETERS` (
- `SPECIFIC_CATALOG` varchar(512) NOT NULL DEFAULT '',
- `SPECIFIC_SCHEMA` varchar(64) NOT NULL DEFAULT '',
- `SPECIFIC_NAME` varchar(64) NOT NULL DEFAULT '',
- `ORDINAL_POSITION` int(21) NOT NULL DEFAULT 0,
- `PARAMETER_MODE` varchar(5) DEFAULT NULL,
- `PARAMETER_NAME` varchar(64) DEFAULT NULL,
- `DATA_TYPE` varchar(64) NOT NULL DEFAULT '',
- `CHARACTER_MAXIMUM_LENGTH` int(21) DEFAULT NULL,
- `CHARACTER_OCTET_LENGTH` int(21) DEFAULT NULL,
- `NUMERIC_PRECISION` int(21) DEFAULT NULL,
- `NUMERIC_SCALE` int(21) DEFAULT NULL,
- `DATETIME_PRECISION` bigint(21) unsigned DEFAULT NULL,
- `CHARACTER_SET_NAME` varchar(64) DEFAULT NULL,
- `COLLATION_NAME` varchar(64) DEFAULT NULL,
- `DTD_IDENTIFIER` longtext NOT NULL DEFAULT '',
- `ROUTINE_TYPE` varchar(9) NOT NULL DEFAULT ''
-) DEFAULT CHARSET=utf8
-SELECT * FROM information_schema.columns
-WHERE table_schema = 'information_schema'
- AND table_name = 'parameters'
-ORDER BY ordinal_position;
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME SPECIFIC_CATALOG
-ORDINAL_POSITION 1
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 512
-CHARACTER_OCTET_LENGTH 1536
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(512)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME SPECIFIC_SCHEMA
-ORDINAL_POSITION 2
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME SPECIFIC_NAME
-ORDINAL_POSITION 3
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME ORDINAL_POSITION
-ORDINAL_POSITION 4
-COLUMN_DEFAULT 0
-IS_NULLABLE NO
-DATA_TYPE int
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION 10
-NUMERIC_SCALE 0
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-COLUMN_TYPE int(21)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME PARAMETER_MODE
-ORDINAL_POSITION 5
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 5
-CHARACTER_OCTET_LENGTH 15
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(5)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME PARAMETER_NAME
-ORDINAL_POSITION 6
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME DATA_TYPE
-ORDINAL_POSITION 7
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME CHARACTER_MAXIMUM_LENGTH
-ORDINAL_POSITION 8
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE int
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION 10
-NUMERIC_SCALE 0
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-COLUMN_TYPE int(21)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME CHARACTER_OCTET_LENGTH
-ORDINAL_POSITION 9
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE int
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION 10
-NUMERIC_SCALE 0
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-COLUMN_TYPE int(21)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME NUMERIC_PRECISION
-ORDINAL_POSITION 10
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE int
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION 10
-NUMERIC_SCALE 0
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-COLUMN_TYPE int(21)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME NUMERIC_SCALE
-ORDINAL_POSITION 11
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE int
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION 10
-NUMERIC_SCALE 0
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-COLUMN_TYPE int(21)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME DATETIME_PRECISION
-ORDINAL_POSITION 12
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE bigint
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION 20
-NUMERIC_SCALE 0
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-COLUMN_TYPE bigint(21) unsigned
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME CHARACTER_SET_NAME
-ORDINAL_POSITION 13
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME COLLATION_NAME
-ORDINAL_POSITION 14
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME DTD_IDENTIFIER
-ORDINAL_POSITION 15
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE longtext
-CHARACTER_MAXIMUM_LENGTH 4294967295
-CHARACTER_OCTET_LENGTH 4294967295
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE longtext
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME PARAMETERS
-COLUMN_NAME ROUTINE_TYPE
-ORDINAL_POSITION 16
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 9
-CHARACTER_OCTET_LENGTH 27
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(9)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-DESCRIBE INFORMATION_SCHEMA.PARAMETERS;
-Field Type Null Key Default Extra
-SPECIFIC_CATALOG varchar(512) NO
-SPECIFIC_SCHEMA varchar(64) NO
-SPECIFIC_NAME varchar(64) NO
-ORDINAL_POSITION int(21) NO 0
-PARAMETER_MODE varchar(5) YES NULL
-PARAMETER_NAME varchar(64) YES NULL
-DATA_TYPE varchar(64) NO
-CHARACTER_MAXIMUM_LENGTH int(21) YES NULL
-CHARACTER_OCTET_LENGTH int(21) YES NULL
-NUMERIC_PRECISION int(21) YES NULL
-NUMERIC_SCALE int(21) YES NULL
-DATETIME_PRECISION bigint(21) unsigned YES NULL
-CHARACTER_SET_NAME varchar(64) YES NULL
-COLLATION_NAME varchar(64) YES NULL
-DTD_IDENTIFIER longtext NO
-ROUTINE_TYPE varchar(9) NO
-# ========== parameters.2 ==========
-DROP DATABASE IF EXISTS i_s_parameters_test;
-CREATE DATABASE i_s_parameters_test;
-USE i_s_parameters_test;
-CREATE FUNCTION test_func1 (s char(20) RETURNS CHAR(50)
-RETURN CONCAT('Hello', ,s,'!');
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RETURNS CHAR(50)
-RETURN CONCAT('Hello', ,s,'!')' at line 1
-SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
-WHERE SPECIFIC_SCHEMA = 'i_s_parameters_test' AND SPECIFIC_NAME = 'test_func1';
-SPECIFIC_CATALOG SPECIFIC_SCHEMA SPECIFIC_NAME ORDINAL_POSITION PARAMETER_MODE PARAMETER_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_TYPE
-# ========== parameters.3 ==========
-DROP DATABASE IF EXISTS i_s_parameters_test;
-CREATE DATABASE i_s_parameters_test;
-USE i_s_parameters_test;
-CREATE FUNCTION test_func1 (s char(20)) RETURNS CHAR(50)
-RETURN CONCAT('Hello, ',s,'!');
-SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
-WHERE SPECIFIC_SCHEMA = 'i_s_parameters_test' AND SPECIFIC_NAME = 'test_func1';
-SPECIFIC_CATALOG SPECIFIC_SCHEMA SPECIFIC_NAME ORDINAL_POSITION PARAMETER_MODE PARAMETER_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_TYPE
-def i_s_parameters_test test_func1 0 NULL NULL char 50 50 NULL NULL NULL latin1 latin1_swedish_ci char(50) FUNCTION
-def i_s_parameters_test test_func1 1 IN s char 20 20 NULL NULL NULL latin1 latin1_swedish_ci char(20) FUNCTION
-DROP FUNCTION test_func1;
-SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
-WHERE SPECIFIC_SCHEMA = 'i_s_parameters_test' AND SPECIFIC_NAME = 'test_func1';
-SPECIFIC_CATALOG SPECIFIC_SCHEMA SPECIFIC_NAME ORDINAL_POSITION PARAMETER_MODE PARAMETER_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_TYPE
-# ========== parameters.4 ==========
-DROP DATABASE IF EXISTS i_s_parameters_test;
-CREATE DATABASE i_s_parameters_test;
-USE i_s_parameters_test;
-CREATE PROCEDURE testproc (OUT param1 INT)
-BEGIN
-SELECT 2+2 as param1;
-END;
-//
-SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
-WHERE SPECIFIC_SCHEMA = 'i_s_parameters_test' AND SPECIFIC_NAME = 'testproc';
-SPECIFIC_CATALOG SPECIFIC_SCHEMA SPECIFIC_NAME ORDINAL_POSITION PARAMETER_MODE PARAMETER_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_TYPE
-def i_s_parameters_test testproc 1 OUT param1 int NULL NULL 10 0 NULL NULL NULL int(11) PROCEDURE
-# ========== parameters.5 ==========
-DROP DATABASE IF EXISTS i_s_parameters_test;
-CREATE DATABASE i_s_parameters_test;
-USE i_s_parameters_test;
-CREATE PROCEDURE test_proc(INOUT P INT) SET @x=P*2;
-SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
-WHERE SPECIFIC_SCHEMA = 'i_s_parameters_test' AND SPECIFIC_NAME = 'test_proc';
-SPECIFIC_CATALOG SPECIFIC_SCHEMA SPECIFIC_NAME ORDINAL_POSITION PARAMETER_MODE PARAMETER_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_TYPE
-def i_s_parameters_test test_proc 1 INOUT P int NULL NULL 10 0 NULL NULL NULL int(11) PROCEDURE
-# ========== parameters.6 ==========
-DROP DATABASE IF EXISTS i_s_parameters_test;
-CREATE DATABASE i_s_parameters_test;
-USE i_s_parameters_test;
-CREATE PROCEDURE test_proc(OUT p VARCHAR(10)) SET P='test';
-SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
-WHERE SPECIFIC_SCHEMA = 'i_s_parameters_test' AND SPECIFIC_NAME = 'test_proc';
-SPECIFIC_CATALOG SPECIFIC_SCHEMA SPECIFIC_NAME ORDINAL_POSITION PARAMETER_MODE PARAMETER_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_TYPE
-def i_s_parameters_test test_proc 1 OUT p varchar 10 10 NULL NULL NULL latin1 latin1_swedish_ci varchar(10) PROCEDURE
-# ========== parameters.7 ==========
-DROP DATABASE IF EXISTS i_s_parameters_test;
-CREATE DATABASE i_s_parameters_test;
-USE i_s_parameters_test;
-CREATE FUNCTION test_func1 (s char(20), t char(20)) RETURNS CHAR(40)
-RETURN CONCAT(s,t);
-SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
-WHERE SPECIFIC_SCHEMA = 'i_s_parameters_test' AND SPECIFIC_NAME = 'test_func1';
-SPECIFIC_CATALOG SPECIFIC_SCHEMA SPECIFIC_NAME ORDINAL_POSITION PARAMETER_MODE PARAMETER_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_TYPE
-def i_s_parameters_test test_func1 0 NULL NULL char 40 40 NULL NULL NULL latin1 latin1_swedish_ci char(40) FUNCTION
-def i_s_parameters_test test_func1 1 IN s char 20 20 NULL NULL NULL latin1 latin1_swedish_ci char(20) FUNCTION
-def i_s_parameters_test test_func1 2 IN t char 20 20 NULL NULL NULL latin1 latin1_swedish_ci char(20) FUNCTION
-# ========== parameters.8 ==========
-DROP DATABASE IF EXISTS i_s_parameters_test;
-CREATE DATABASE i_s_parameters_test;
-USE i_s_parameters_test;
-CREATE FUNCTION test_func1 (s char(20)) RETURNS CHAR(50)
-RETURN CONCAT('Hello, ',s,'!');
-SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
-WHERE SPECIFIC_SCHEMA = 'i_s_parameters_test' AND SPECIFIC_NAME = 'test_func1';
-SPECIFIC_CATALOG SPECIFIC_SCHEMA SPECIFIC_NAME ORDINAL_POSITION PARAMETER_MODE PARAMETER_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_TYPE
-def i_s_parameters_test test_func1 0 NULL NULL char 50 50 NULL NULL NULL latin1 latin1_swedish_ci char(50) FUNCTION
-def i_s_parameters_test test_func1 1 IN s char 20 20 NULL NULL NULL latin1 latin1_swedish_ci char(20) FUNCTION
-# ========== parameters.9 ==========
-DROP DATABASE IF EXISTS i_s_parameters_test;
-CREATE DATABASE i_s_parameters_test;
-USE i_s_parameters_test;
-CREATE FUNCTION test_func2 (s int) RETURNS INT RETURN s*2;
-SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
-WHERE SPECIFIC_SCHEMA = 'i_s_parameters_test' AND SPECIFIC_NAME = 'test_func2';
-SPECIFIC_CATALOG SPECIFIC_SCHEMA SPECIFIC_NAME ORDINAL_POSITION PARAMETER_MODE PARAMETER_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_TYPE
-def i_s_parameters_test test_func2 0 NULL NULL int NULL NULL 10 0 NULL NULL NULL int(11) FUNCTION
-def i_s_parameters_test test_func2 1 IN s int NULL NULL 10 0 NULL NULL NULL int(11) FUNCTION
-# ========== parameters.10 ==========
-DROP DATABASE IF EXISTS i_s_parameters_test;
-CREATE DATABASE i_s_parameters_test;
-USE i_s_parameters_test;
-CREATE FUNCTION test_func5 (s date) RETURNS TIMESTAMP
-RETURN CURRENT_TIMESTAMP;
-SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
-WHERE SPECIFIC_SCHEMA = 'i_s_parameters_test' AND SPECIFIC_NAME = 'test_func5';
-SPECIFIC_CATALOG SPECIFIC_SCHEMA SPECIFIC_NAME ORDINAL_POSITION PARAMETER_MODE PARAMETER_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_TYPE
-def i_s_parameters_test test_func5 0 NULL NULL timestamp NULL NULL NULL NULL 0 NULL NULL timestamp FUNCTION
-def i_s_parameters_test test_func5 1 IN s date NULL NULL NULL NULL NULL NULL NULL date FUNCTION
-# ========== parameters.11 ==========
-DROP DATABASE IF EXISTS i_s_parameters_test;
-CREATE DATABASE i_s_parameters_test;
-USE i_s_parameters_test;
-CREATE FUNCTION test_func5 (s date) RETURNS TIMESTAMP
-RETURN CURRENT_TIMESTAMP;
-SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
-WHERE SPECIFIC_SCHEMA = 'i_s_parameters_test' AND SPECIFIC_NAME = 'test_func5';
-SPECIFIC_CATALOG SPECIFIC_SCHEMA SPECIFIC_NAME ORDINAL_POSITION PARAMETER_MODE PARAMETER_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_TYPE
-def i_s_parameters_test test_func5 0 NULL NULL timestamp NULL NULL NULL NULL 0 NULL NULL timestamp FUNCTION
-def i_s_parameters_test test_func5 1 IN s date NULL NULL NULL NULL NULL NULL NULL date FUNCTION
-ALTER FUNCTION test_func5 COMMENT 'new comment added';
-SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
-WHERE SPECIFIC_SCHEMA = 'i_s_parameters_test' AND SPECIFIC_NAME = 'test_func5';
-SPECIFIC_CATALOG SPECIFIC_SCHEMA SPECIFIC_NAME ORDINAL_POSITION PARAMETER_MODE PARAMETER_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_TYPE
-def i_s_parameters_test test_func5 0 NULL NULL timestamp NULL NULL NULL NULL 0 NULL NULL timestamp FUNCTION
-def i_s_parameters_test test_func5 1 IN s date NULL NULL NULL NULL NULL NULL NULL date FUNCTION
-# ========== parameters.12 ==========
-DROP DATABASE IF EXISTS i_s_parameters_test;
-CREATE DATABASE i_s_parameters_test CHARACTER SET utf8;
-USE i_s_parameters_test;
-CREATE FUNCTION test_func5 (s CHAR(20)) RETURNS VARCHAR(30)
-RETURN CONCAT('XYZ, ' ,s);
-SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
-WHERE SPECIFIC_SCHEMA = 'i_s_parameters_test' AND SPECIFIC_NAME = 'test_func5';
-SPECIFIC_CATALOG SPECIFIC_SCHEMA SPECIFIC_NAME ORDINAL_POSITION PARAMETER_MODE PARAMETER_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_TYPE
-def i_s_parameters_test test_func5 0 NULL NULL varchar 30 90 NULL NULL NULL utf8 utf8_general_ci varchar(30) FUNCTION
-def i_s_parameters_test test_func5 1 IN s char 20 60 NULL NULL NULL utf8 utf8_general_ci char(20) FUNCTION
-DROP DATABASE i_s_parameters_test;
-USE test;
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-15416 Crash when reading I_S.PARAMETERS
-#
-CREATE PROCEDURE p1(a0 TYPE OF t1.a,
-a1 TYPE OF test.t1.a,
-b0 ROW TYPE OF t1,
-b1 ROW TYPE OF test.t1,
-c ROW(a INT,b DOUBLE))
-BEGIN
-END;
-$$
-SELECT *, '--------' FROM INFORMATION_SCHEMA.PARAMETERS WHERE SPECIFIC_NAME = 'p1';
-SPECIFIC_CATALOG def
-SPECIFIC_SCHEMA test
-SPECIFIC_NAME p1
-ORDINAL_POSITION 1
-PARAMETER_MODE IN
-PARAMETER_NAME a0
-DATA_TYPE TYPE OF
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-DTD_IDENTIFIER TYPE OF `t1`.`a`
-ROUTINE_TYPE PROCEDURE
--------- --------
-SPECIFIC_CATALOG def
-SPECIFIC_SCHEMA test
-SPECIFIC_NAME p1
-ORDINAL_POSITION 2
-PARAMETER_MODE IN
-PARAMETER_NAME a1
-DATA_TYPE TYPE OF
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-DTD_IDENTIFIER TYPE OF `test`.`t1`.`a`
-ROUTINE_TYPE PROCEDURE
--------- --------
-SPECIFIC_CATALOG def
-SPECIFIC_SCHEMA test
-SPECIFIC_NAME p1
-ORDINAL_POSITION 3
-PARAMETER_MODE IN
-PARAMETER_NAME b0
-DATA_TYPE ROW TYPE OF
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-DTD_IDENTIFIER ROW TYPE OF `t1`
-ROUTINE_TYPE PROCEDURE
--------- --------
-SPECIFIC_CATALOG def
-SPECIFIC_SCHEMA test
-SPECIFIC_NAME p1
-ORDINAL_POSITION 4
-PARAMETER_MODE IN
-PARAMETER_NAME b1
-DATA_TYPE ROW TYPE OF
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-DTD_IDENTIFIER ROW TYPE OF `test`.`t1`
-ROUTINE_TYPE PROCEDURE
--------- --------
-SPECIFIC_CATALOG def
-SPECIFIC_SCHEMA test
-SPECIFIC_NAME p1
-ORDINAL_POSITION 5
-PARAMETER_MODE IN
-PARAMETER_NAME c
-DATA_TYPE ROW
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-DTD_IDENTIFIER ROW
-ROUTINE_TYPE PROCEDURE
--------- --------
-DROP PROCEDURE p1;
diff --git a/mysql-test/r/information_schema_part.result b/mysql-test/r/information_schema_part.result
deleted file mode 100644
index 4c0bb8908da..00000000000
--- a/mysql-test/r/information_schema_part.result
+++ /dev/null
@@ -1,161 +0,0 @@
-drop table if exists t1,t2,t3,t4;
-create table t1 (a int not null,b int not null,c int not null, primary key(a,b))
-partition by list (b*a)
-(partition x1 values in (1) tablespace ts1,
-partition x2 values in (3, 11, 5, 7) tablespace ts2,
-partition x3 values in (16, 8, 5+19, 70-43) tablespace ts3);
-select * from information_schema.partitions where table_schema="test"
-and table_name="t1";
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PARTITION_NAME SUBPARTITION_NAME PARTITION_ORDINAL_POSITION SUBPARTITION_ORDINAL_POSITION PARTITION_METHOD SUBPARTITION_METHOD PARTITION_EXPRESSION SUBPARTITION_EXPRESSION PARTITION_DESCRIPTION TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE CREATE_TIME UPDATE_TIME CHECK_TIME CHECKSUM PARTITION_COMMENT NODEGROUP TABLESPACE_NAME
-def test t1 x1 NULL 1 NULL LIST NULL `b` * `a` NULL 1 0 0 0 # 1024 0 # # NULL NULL default ts1
-def test t1 x2 NULL 2 NULL LIST NULL `b` * `a` NULL 3,11,5,7 0 0 0 # 1024 0 # # NULL NULL default ts2
-def test t1 x3 NULL 3 NULL LIST NULL `b` * `a` NULL 16,8,24,27 0 0 0 # 1024 0 # # NULL NULL default ts3
-create table t2 (a int not null,b int not null,c int not null, primary key(a,b))
-partition by range (a)
-partitions 3
-(partition x1 values less than (5) tablespace ts1,
-partition x2 values less than (10) tablespace ts2,
-partition x3 values less than maxvalue tablespace ts3);
-select * from information_schema.partitions where table_schema="test"
-and table_name="t2";
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PARTITION_NAME SUBPARTITION_NAME PARTITION_ORDINAL_POSITION SUBPARTITION_ORDINAL_POSITION PARTITION_METHOD SUBPARTITION_METHOD PARTITION_EXPRESSION SUBPARTITION_EXPRESSION PARTITION_DESCRIPTION TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE CREATE_TIME UPDATE_TIME CHECK_TIME CHECKSUM PARTITION_COMMENT NODEGROUP TABLESPACE_NAME
-def test t2 x1 NULL 1 NULL RANGE NULL `a` NULL 5 0 0 0 # 1024 0 # # NULL NULL default ts1
-def test t2 x2 NULL 2 NULL RANGE NULL `a` NULL 10 0 0 0 # 1024 0 # # NULL NULL default ts2
-def test t2 x3 NULL 3 NULL RANGE NULL `a` NULL MAXVALUE 0 0 0 # 1024 0 # # NULL NULL default ts3
-create table t3 (f1 date)
-partition by hash(month(f1))
-partitions 3;
-select * from information_schema.partitions where table_schema="test"
-and table_name="t3";
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PARTITION_NAME SUBPARTITION_NAME PARTITION_ORDINAL_POSITION SUBPARTITION_ORDINAL_POSITION PARTITION_METHOD SUBPARTITION_METHOD PARTITION_EXPRESSION SUBPARTITION_EXPRESSION PARTITION_DESCRIPTION TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE CREATE_TIME UPDATE_TIME CHECK_TIME CHECKSUM PARTITION_COMMENT NODEGROUP TABLESPACE_NAME
-def test t3 p0 NULL 1 NULL HASH NULL month(`f1`) NULL NULL 0 0 0 # 1024 0 # # NULL NULL default NULL
-def test t3 p1 NULL 2 NULL HASH NULL month(`f1`) NULL NULL 0 0 0 # 1024 0 # # NULL NULL default NULL
-def test t3 p2 NULL 3 NULL HASH NULL month(`f1`) NULL NULL 0 0 0 # 1024 0 # # NULL NULL default NULL
-create table t4 (f1 date, f2 int)
-partition by key(f1,f2)
-partitions 3;
-select * from information_schema.partitions where table_schema="test"
-and table_name="t4";
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PARTITION_NAME SUBPARTITION_NAME PARTITION_ORDINAL_POSITION SUBPARTITION_ORDINAL_POSITION PARTITION_METHOD SUBPARTITION_METHOD PARTITION_EXPRESSION SUBPARTITION_EXPRESSION PARTITION_DESCRIPTION TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE CREATE_TIME UPDATE_TIME CHECK_TIME CHECKSUM PARTITION_COMMENT NODEGROUP TABLESPACE_NAME
-def test t4 p0 NULL 1 NULL KEY NULL `f1`,`f2` NULL NULL 0 0 0 # 1024 0 # # NULL NULL default NULL
-def test t4 p1 NULL 2 NULL KEY NULL `f1`,`f2` NULL NULL 0 0 0 # 1024 0 # # NULL NULL default NULL
-def test t4 p2 NULL 3 NULL KEY NULL `f1`,`f2` NULL NULL 0 0 0 # 1024 0 # # NULL NULL default NULL
-drop table t1,t2,t3,t4;
-create table t1 (a int not null,b int not null,c int not null,primary key (a,b))
-partition by range (a)
-subpartition by hash (a+b)
-( partition x1 values less than (1)
-( subpartition x11 tablespace t1,
-subpartition x12 tablespace t2),
-partition x2 values less than (5)
-( subpartition x21 tablespace t1,
-subpartition x22 tablespace t2)
-);
-create table t2 (a int not null,b int not null,c int not null,primary key (a,b))
-partition by range (a)
-subpartition by key (a)
-( partition x1 values less than (1)
-( subpartition x11 tablespace t1,
-subpartition x12 tablespace t2),
-partition x2 values less than (5)
-( subpartition x21 tablespace t1,
-subpartition x22 tablespace t2)
-);
-select * from information_schema.partitions where table_schema="test" order by table_name, partition_name;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PARTITION_NAME SUBPARTITION_NAME PARTITION_ORDINAL_POSITION SUBPARTITION_ORDINAL_POSITION PARTITION_METHOD SUBPARTITION_METHOD PARTITION_EXPRESSION SUBPARTITION_EXPRESSION PARTITION_DESCRIPTION TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE CREATE_TIME UPDATE_TIME CHECK_TIME CHECKSUM PARTITION_COMMENT NODEGROUP TABLESPACE_NAME
-def test t1 x1 x11 1 1 RANGE HASH `a` `a` + `b` 1 0 0 0 # 1024 0 # # NULL NULL default t1
-def test t1 x1 x12 1 2 RANGE HASH `a` `a` + `b` 1 0 0 0 # 1024 0 # # NULL NULL default t2
-def test t1 x2 x21 2 1 RANGE HASH `a` `a` + `b` 5 0 0 0 # 1024 0 # # NULL NULL default t1
-def test t1 x2 x22 2 2 RANGE HASH `a` `a` + `b` 5 0 0 0 # 1024 0 # # NULL NULL default t2
-def test t2 x1 x11 1 1 RANGE KEY `a` `a` 1 0 0 0 # 1024 0 # # NULL NULL default t1
-def test t2 x1 x12 1 2 RANGE KEY `a` `a` 1 0 0 0 # 1024 0 # # NULL NULL default t2
-def test t2 x2 x21 2 1 RANGE KEY `a` `a` 5 0 0 0 # 1024 0 # # NULL NULL default t1
-def test t2 x2 x22 2 2 RANGE KEY `a` `a` 5 0 0 0 # 1024 0 # # NULL NULL default t2
-drop table t1,t2;
-create table t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by range (a)
-subpartition by hash (a+b)
-( partition x1 values less than (1)
-( subpartition x11 tablespace t1 nodegroup 0,
-subpartition x12 tablespace t2 nodegroup 1),
-partition x2 values less than (5)
-( subpartition x21 tablespace t1 nodegroup 0,
-subpartition x22 tablespace t2 nodegroup 1)
-);
-select * from information_schema.partitions where table_schema="test";
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PARTITION_NAME SUBPARTITION_NAME PARTITION_ORDINAL_POSITION SUBPARTITION_ORDINAL_POSITION PARTITION_METHOD SUBPARTITION_METHOD PARTITION_EXPRESSION SUBPARTITION_EXPRESSION PARTITION_DESCRIPTION TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE CREATE_TIME UPDATE_TIME CHECK_TIME CHECKSUM PARTITION_COMMENT NODEGROUP TABLESPACE_NAME
-def test t1 x1 x11 1 1 RANGE HASH `a` `a` + `b` 1 0 0 0 # 1024 0 # # NULL NULL 0 t1
-def test t1 x1 x12 1 2 RANGE HASH `a` `a` + `b` 1 0 0 0 # 1024 0 # # NULL NULL 1 t2
-def test t1 x2 x21 2 1 RANGE HASH `a` `a` + `b` 5 0 0 0 # 1024 0 # # NULL NULL 0 t1
-def test t1 x2 x22 2 2 RANGE HASH `a` `a` + `b` 5 0 0 0 # 1024 0 # # NULL NULL 1 t2
-show tables;
-Tables_in_test
-t1
-drop table t1;
-create table t1(f1 int, f2 int);
-select * from information_schema.partitions where table_schema="test";
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PARTITION_NAME SUBPARTITION_NAME PARTITION_ORDINAL_POSITION SUBPARTITION_ORDINAL_POSITION PARTITION_METHOD SUBPARTITION_METHOD PARTITION_EXPRESSION SUBPARTITION_EXPRESSION PARTITION_DESCRIPTION TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE CREATE_TIME UPDATE_TIME CHECK_TIME CHECKSUM PARTITION_COMMENT NODEGROUP TABLESPACE_NAME
-def test t1 NULL NULL NULL NULL NULL NULL NULL NULL NULL 0 0 0 # 1024 0 # # NULL NULL NULL
-drop table t1;
-create table t1 (f1 date)
-partition by linear hash(month(f1))
-partitions 3;
-select * from information_schema.partitions where table_schema="test"
-and table_name="t1";
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PARTITION_NAME SUBPARTITION_NAME PARTITION_ORDINAL_POSITION SUBPARTITION_ORDINAL_POSITION PARTITION_METHOD SUBPARTITION_METHOD PARTITION_EXPRESSION SUBPARTITION_EXPRESSION PARTITION_DESCRIPTION TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE CREATE_TIME UPDATE_TIME CHECK_TIME CHECKSUM PARTITION_COMMENT NODEGROUP TABLESPACE_NAME
-def test t1 p0 NULL 1 NULL LINEAR HASH NULL month(`f1`) NULL NULL 0 0 0 # 1024 0 # # NULL NULL default NULL
-def test t1 p1 NULL 2 NULL LINEAR HASH NULL month(`f1`) NULL NULL 0 0 0 # 1024 0 # # NULL NULL default NULL
-def test t1 p2 NULL 3 NULL LINEAR HASH NULL month(`f1`) NULL NULL 0 0 0 # 1024 0 # # NULL NULL default NULL
-drop table t1;
-create table t1 (a int)
-PARTITION BY RANGE (a)
-SUBPARTITION BY LINEAR HASH (a)
-(PARTITION p0 VALUES LESS THAN (10));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-SUBPARTITION BY LINEAR HASH (`a`)
-(PARTITION `p0` VALUES LESS THAN (10) ENGINE = MyISAM)
-select SUBPARTITION_METHOD FROM information_schema.partitions WHERE
-table_schema="test" AND table_name="t1";
-SUBPARTITION_METHOD
-LINEAR HASH
-drop table t1;
-create table t1 (a int)
-PARTITION BY LIST (a)
-(PARTITION p0 VALUES IN
-(10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,
-32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p0` VALUES IN (10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53) ENGINE = MyISAM)
-SELECT PARTITION_DESCRIPTION FROM information_schema.partitions WHERE
-table_schema = "test" AND table_name = "t1";
-PARTITION_DESCRIPTION
-10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53
-drop table t1;
-drop table if exists t1;
-create table t1 (f1 int key) partition by key(f1) partitions 2;
-select create_options from information_schema.tables where table_schema="test";
-create_options
-partitioned
-drop table t1;
-#
-# MDEV-11353 - Identical logical conditions
-#
-CREATE TABLE t1(a INT) CHECKSUM=1 SELECT 1;
-SELECT CHECKSUM FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-CHECKSUM
-3036305396
-DROP TABLE t1;
diff --git a/mysql-test/r/information_schema_routines.result b/mysql-test/r/information_schema_routines.result
deleted file mode 100644
index eaa69adf740..00000000000
--- a/mysql-test/r/information_schema_routines.result
+++ /dev/null
@@ -1,853 +0,0 @@
-set sql_mode="";
-set sql_mode="";
-# ========== routines.1 ==========
-USE INFORMATION_SCHEMA;
-SHOW CREATE TABLE INFORMATION_SCHEMA.ROUTINES;
-Table Create Table
-ROUTINES CREATE TEMPORARY TABLE `ROUTINES` (
- `SPECIFIC_NAME` varchar(64) NOT NULL DEFAULT '',
- `ROUTINE_CATALOG` varchar(512) NOT NULL DEFAULT '',
- `ROUTINE_SCHEMA` varchar(64) NOT NULL DEFAULT '',
- `ROUTINE_NAME` varchar(64) NOT NULL DEFAULT '',
- `ROUTINE_TYPE` varchar(13) NOT NULL DEFAULT '',
- `DATA_TYPE` varchar(64) NOT NULL DEFAULT '',
- `CHARACTER_MAXIMUM_LENGTH` int(21) DEFAULT NULL,
- `CHARACTER_OCTET_LENGTH` int(21) DEFAULT NULL,
- `NUMERIC_PRECISION` int(21) DEFAULT NULL,
- `NUMERIC_SCALE` int(21) DEFAULT NULL,
- `DATETIME_PRECISION` bigint(21) unsigned DEFAULT NULL,
- `CHARACTER_SET_NAME` varchar(64) DEFAULT NULL,
- `COLLATION_NAME` varchar(64) DEFAULT NULL,
- `DTD_IDENTIFIER` longtext DEFAULT NULL,
- `ROUTINE_BODY` varchar(8) NOT NULL DEFAULT '',
- `ROUTINE_DEFINITION` longtext DEFAULT NULL,
- `EXTERNAL_NAME` varchar(64) DEFAULT NULL,
- `EXTERNAL_LANGUAGE` varchar(64) DEFAULT NULL,
- `PARAMETER_STYLE` varchar(8) NOT NULL DEFAULT '',
- `IS_DETERMINISTIC` varchar(3) NOT NULL DEFAULT '',
- `SQL_DATA_ACCESS` varchar(64) NOT NULL DEFAULT '',
- `SQL_PATH` varchar(64) DEFAULT NULL,
- `SECURITY_TYPE` varchar(7) NOT NULL DEFAULT '',
- `CREATED` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `LAST_ALTERED` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `SQL_MODE` varchar(8192) NOT NULL DEFAULT '',
- `ROUTINE_COMMENT` longtext NOT NULL DEFAULT '',
- `DEFINER` varchar(189) NOT NULL DEFAULT '',
- `CHARACTER_SET_CLIENT` varchar(32) NOT NULL DEFAULT '',
- `COLLATION_CONNECTION` varchar(32) NOT NULL DEFAULT '',
- `DATABASE_COLLATION` varchar(32) NOT NULL DEFAULT ''
-) DEFAULT CHARSET=utf8
-SELECT * FROM information_schema.columns
-WHERE table_schema = 'information_schema'
- AND table_name = 'routines'
-ORDER BY ordinal_position;
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME SPECIFIC_NAME
-ORDINAL_POSITION 1
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME ROUTINE_CATALOG
-ORDINAL_POSITION 2
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 512
-CHARACTER_OCTET_LENGTH 1536
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(512)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME ROUTINE_SCHEMA
-ORDINAL_POSITION 3
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME ROUTINE_NAME
-ORDINAL_POSITION 4
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME ROUTINE_TYPE
-ORDINAL_POSITION 5
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 13
-CHARACTER_OCTET_LENGTH 39
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(13)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME DATA_TYPE
-ORDINAL_POSITION 6
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME CHARACTER_MAXIMUM_LENGTH
-ORDINAL_POSITION 7
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE int
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION 10
-NUMERIC_SCALE 0
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-COLUMN_TYPE int(21)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME CHARACTER_OCTET_LENGTH
-ORDINAL_POSITION 8
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE int
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION 10
-NUMERIC_SCALE 0
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-COLUMN_TYPE int(21)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME NUMERIC_PRECISION
-ORDINAL_POSITION 9
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE int
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION 10
-NUMERIC_SCALE 0
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-COLUMN_TYPE int(21)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME NUMERIC_SCALE
-ORDINAL_POSITION 10
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE int
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION 10
-NUMERIC_SCALE 0
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-COLUMN_TYPE int(21)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME DATETIME_PRECISION
-ORDINAL_POSITION 11
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE bigint
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION 20
-NUMERIC_SCALE 0
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-COLUMN_TYPE bigint(21) unsigned
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME CHARACTER_SET_NAME
-ORDINAL_POSITION 12
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME COLLATION_NAME
-ORDINAL_POSITION 13
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME DTD_IDENTIFIER
-ORDINAL_POSITION 14
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE longtext
-CHARACTER_MAXIMUM_LENGTH 4294967295
-CHARACTER_OCTET_LENGTH 4294967295
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE longtext
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME ROUTINE_BODY
-ORDINAL_POSITION 15
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 8
-CHARACTER_OCTET_LENGTH 24
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(8)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME ROUTINE_DEFINITION
-ORDINAL_POSITION 16
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE longtext
-CHARACTER_MAXIMUM_LENGTH 4294967295
-CHARACTER_OCTET_LENGTH 4294967295
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE longtext
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME EXTERNAL_NAME
-ORDINAL_POSITION 17
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME EXTERNAL_LANGUAGE
-ORDINAL_POSITION 18
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME PARAMETER_STYLE
-ORDINAL_POSITION 19
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 8
-CHARACTER_OCTET_LENGTH 24
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(8)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME IS_DETERMINISTIC
-ORDINAL_POSITION 20
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 3
-CHARACTER_OCTET_LENGTH 9
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(3)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME SQL_DATA_ACCESS
-ORDINAL_POSITION 21
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME SQL_PATH
-ORDINAL_POSITION 22
-COLUMN_DEFAULT NULL
-IS_NULLABLE YES
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 64
-CHARACTER_OCTET_LENGTH 192
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(64)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME SECURITY_TYPE
-ORDINAL_POSITION 23
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 7
-CHARACTER_OCTET_LENGTH 21
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(7)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME CREATED
-ORDINAL_POSITION 24
-COLUMN_DEFAULT '0000-00-00 00:00:00'
-IS_NULLABLE NO
-DATA_TYPE datetime
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION 0
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-COLUMN_TYPE datetime
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME LAST_ALTERED
-ORDINAL_POSITION 25
-COLUMN_DEFAULT '0000-00-00 00:00:00'
-IS_NULLABLE NO
-DATA_TYPE datetime
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION 0
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-COLUMN_TYPE datetime
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME SQL_MODE
-ORDINAL_POSITION 26
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 8192
-CHARACTER_OCTET_LENGTH 24576
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(8192)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME ROUTINE_COMMENT
-ORDINAL_POSITION 27
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE longtext
-CHARACTER_MAXIMUM_LENGTH 4294967295
-CHARACTER_OCTET_LENGTH 4294967295
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE longtext
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME DEFINER
-ORDINAL_POSITION 28
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 189
-CHARACTER_OCTET_LENGTH 567
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(189)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME CHARACTER_SET_CLIENT
-ORDINAL_POSITION 29
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 32
-CHARACTER_OCTET_LENGTH 96
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(32)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME COLLATION_CONNECTION
-ORDINAL_POSITION 30
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 32
-CHARACTER_OCTET_LENGTH 96
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(32)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-TABLE_CATALOG def
-TABLE_SCHEMA information_schema
-TABLE_NAME ROUTINES
-COLUMN_NAME DATABASE_COLLATION
-ORDINAL_POSITION 31
-COLUMN_DEFAULT ''
-IS_NULLABLE NO
-DATA_TYPE varchar
-CHARACTER_MAXIMUM_LENGTH 32
-CHARACTER_OCTET_LENGTH 96
-NUMERIC_PRECISION NULL
-NUMERIC_SCALE NULL
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME utf8
-COLLATION_NAME utf8_general_ci
-COLUMN_TYPE varchar(32)
-COLUMN_KEY
-EXTRA
-PRIVILEGES #
-COLUMN_COMMENT
-IS_GENERATED NEVER
-GENERATION_EXPRESSION NULL
-DESCRIBE INFORMATION_SCHEMA.ROUTINES;
-Field Type Null Key Default Extra
-SPECIFIC_NAME varchar(64) NO
-ROUTINE_CATALOG varchar(512) NO
-ROUTINE_SCHEMA varchar(64) NO
-ROUTINE_NAME varchar(64) NO
-ROUTINE_TYPE varchar(13) NO
-DATA_TYPE varchar(64) NO
-CHARACTER_MAXIMUM_LENGTH int(21) YES NULL
-CHARACTER_OCTET_LENGTH int(21) YES NULL
-NUMERIC_PRECISION int(21) YES NULL
-NUMERIC_SCALE int(21) YES NULL
-DATETIME_PRECISION bigint(21) unsigned YES NULL
-CHARACTER_SET_NAME varchar(64) YES NULL
-COLLATION_NAME varchar(64) YES NULL
-DTD_IDENTIFIER longtext YES NULL
-ROUTINE_BODY varchar(8) NO
-ROUTINE_DEFINITION longtext YES NULL
-EXTERNAL_NAME varchar(64) YES NULL
-EXTERNAL_LANGUAGE varchar(64) YES NULL
-PARAMETER_STYLE varchar(8) NO
-IS_DETERMINISTIC varchar(3) NO
-SQL_DATA_ACCESS varchar(64) NO
-SQL_PATH varchar(64) YES NULL
-SECURITY_TYPE varchar(7) NO
-CREATED datetime NO 0000-00-00 00:00:00
-LAST_ALTERED datetime NO 0000-00-00 00:00:00
-SQL_MODE varchar(8192) NO
-ROUTINE_COMMENT longtext NO
-DEFINER varchar(189) NO
-CHARACTER_SET_CLIENT varchar(32) NO
-COLLATION_CONNECTION varchar(32) NO
-DATABASE_COLLATION varchar(32) NO
-# ========== routines.2 ==========
-DROP DATABASE IF EXISTS i_s_routines_test;
-CREATE DATABASE i_s_routines_test;
-USE i_s_routines_test;
-CREATE FUNCTION test_func1 (s char(20) RETURNS CHAR(50)
-RETURN CONCAT('Hello', ,s,'!');
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RETURNS CHAR(50)
-RETURN CONCAT('Hello', ,s,'!')' at line 1
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = 'i_s_routines_test' AND ROUTINE_NAME = 'test_func1';
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-# ========== routines.3 ==========
-DROP DATABASE IF EXISTS i_s_routines_test;
-CREATE DATABASE i_s_routines_test;
-USE i_s_routines_test;
-CREATE FUNCTION test_func1 (s char(20)) RETURNS CHAR(50)
-RETURN CONCAT('Hello, ',s,'!');
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = 'i_s_routines_test' AND ROUTINE_NAME = 'test_func1';
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-test_func1 def i_s_routines_test test_func1 FUNCTION char 50 50 NULL NULL NULL latin1 latin1_swedish_ci char(50) SQL RETURN CONCAT('Hello, ',s,'!') NULL NULL SQL NO CONTAINS SQL NULL DEFINER <created> <modified> root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-DROP FUNCTION test_func1;
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = 'i_s_routines_test' AND ROUTINE_NAME = 'test_func1';
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-# ========== routines.4 ==========
-DROP DATABASE IF EXISTS i_s_routines_test;
-CREATE DATABASE i_s_routines_test;
-USE i_s_routines_test;
-CREATE PROCEDURE testproc (OUT param1 INT)
-BEGIN
-SELECT 2+2 as param1;
-END;
-//
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = 'i_s_routines_test' AND ROUTINE_NAME = 'testproc';
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-testproc def i_s_routines_test testproc PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
-SELECT 2+2 as param1;
-END NULL NULL SQL NO CONTAINS SQL NULL DEFINER <created> <modified> root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-# ========== routines.5 ==========
-DROP DATABASE IF EXISTS i_s_routines_test;
-CREATE DATABASE i_s_routines_test;
-USE i_s_routines_test;
-CREATE FUNCTION test_func1 (s char(20)) RETURNS CHAR(50)
-RETURN CONCAT('Hello, ',s,'!');
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = 'i_s_routines_test' AND ROUTINE_NAME = 'test_func1';
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-test_func1 def i_s_routines_test test_func1 FUNCTION char 50 50 NULL NULL NULL latin1 latin1_swedish_ci char(50) SQL RETURN CONCAT('Hello, ',s,'!') NULL NULL SQL NO CONTAINS SQL NULL DEFINER <created> <modified> root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-# ========== routines.6 ==========
-DROP DATABASE IF EXISTS i_s_routines_test;
-CREATE DATABASE i_s_routines_test;
-USE i_s_routines_test;
-CREATE FUNCTION test_func2 (s int) RETURNS INT RETURN s*2;
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = 'i_s_routines_test' AND ROUTINE_NAME = 'test_func2';
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-test_func2 def i_s_routines_test test_func2 FUNCTION int NULL NULL 10 0 NULL NULL NULL int(11) SQL RETURN s*2 NULL NULL SQL NO CONTAINS SQL NULL DEFINER <created> <modified> root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-# ========== routines.7 ==========
-DROP DATABASE IF EXISTS i_s_routines_test;
-CREATE DATABASE i_s_routines_test;
-USE i_s_routines_test;
-CREATE FUNCTION test_func5 (s date) RETURNS TIMESTAMP
-RETURN CURRENT_TIMESTAMP;
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = 'i_s_routines_test' AND ROUTINE_NAME = 'test_func5';
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-test_func5 def i_s_routines_test test_func5 FUNCTION timestamp NULL NULL NULL NULL 0 NULL NULL timestamp SQL RETURN CURRENT_TIMESTAMP NULL NULL SQL NO CONTAINS SQL NULL DEFINER <created> <modified> root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-# ========== routines.8 ==========
-DROP DATABASE IF EXISTS i_s_routines_test;
-CREATE DATABASE i_s_routines_test;
-USE i_s_routines_test;
-CREATE FUNCTION test_func5 (s date) RETURNS TIMESTAMP
-RETURN CURRENT_TIMESTAMP;
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = 'i_s_routines_test' AND ROUTINE_NAME = 'test_func5';
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-test_func5 def i_s_routines_test test_func5 FUNCTION timestamp NULL NULL NULL NULL 0 NULL NULL timestamp SQL RETURN CURRENT_TIMESTAMP NULL NULL SQL NO CONTAINS SQL NULL DEFINER <created> <modified> root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-ALTER FUNCTION test_func5 COMMENT 'new comment added';
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = 'i_s_routines_test' AND ROUTINE_NAME = 'test_func5';
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-test_func5 def i_s_routines_test test_func5 FUNCTION timestamp NULL NULL NULL NULL 0 NULL NULL timestamp SQL RETURN CURRENT_TIMESTAMP NULL NULL SQL NO CONTAINS SQL NULL DEFINER <created> <modified> new comment added root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-# ========== routines.9 ==========
-DROP DATABASE IF EXISTS i_s_routines_test;
-CREATE DATABASE i_s_routines_test CHARACTER SET utf8;
-USE i_s_routines_test;
-CREATE FUNCTION test_func5 (s CHAR(20)) RETURNS VARCHAR(30)
-RETURN CONCAT('XYZ, ' ,s);
-SELECT * FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = 'i_s_routines_test' AND ROUTINE_NAME = 'test_func5';
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-test_func5 def i_s_routines_test test_func5 FUNCTION varchar 30 90 NULL NULL NULL utf8 utf8_general_ci varchar(30) SQL RETURN CONCAT('XYZ, ' ,s) NULL NULL SQL NO CONTAINS SQL NULL DEFINER <created> <modified> root@localhost latin1 latin1_swedish_ci utf8_general_ci
-DROP DATABASE i_s_routines_test;
diff --git a/mysql-test/r/information_schema_stats.result b/mysql-test/r/information_schema_stats.result
deleted file mode 100644
index bc2ce9f0294..00000000000
--- a/mysql-test/r/information_schema_stats.result
+++ /dev/null
@@ -1,70 +0,0 @@
-set global userstat=1;
-create table just_a_test(id int,first_name varchar(10),last_name varchar(10),address varchar(100),phone bigint,email varchar(30), state varchar(30));
-insert into just_a_test values(1,'fa','la','china_a',11111111,'fa_la@163.com','California'),
-(2,'fb','lb','china_b',22222222,'fb_lb@163.com','Arizona'),
-(3,'fc','lc','china_c',33333333,'fc_lc@163.com','California'),
-(4,'fd','ld','china_d',44444444,'fd_ld@163.com','Utah'),
-(5,'fe','le','china_e',55555555,'fe_le@163.com','Arizona');
-alter table just_a_test add primary key (id);
-alter table just_a_test add key IND_just_a_test_first_name_last_name(first_name,last_name);
-alter table just_a_test add key IND_just_a_test_state(state);
-select count(*) from just_a_test where first_name='fc' and last_name='lc';
-count(*)
-1
-select count(*) from just_a_test where state = 'California';
-count(*)
-2
-select * from information_schema.index_statistics where table_schema='test' and table_name='just_a_test';
-TABLE_SCHEMA TABLE_NAME INDEX_NAME ROWS_READ
-test just_a_test IND_just_a_test_first_name_last_name 1
-test just_a_test IND_just_a_test_state 2
-select * from information_schema.table_statistics where table_schema='test' and table_name='just_a_test';
-TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES
-test just_a_test 18 5 5
-alter table just_a_test drop key IND_just_a_test_first_name_last_name;
-select * from information_schema.index_statistics where table_schema='test' and table_name='just_a_test';
-TABLE_SCHEMA TABLE_NAME INDEX_NAME ROWS_READ
-test just_a_test IND_just_a_test_state 2
-select * from information_schema.table_statistics where table_schema='test' and table_name='just_a_test';
-TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES
-test just_a_test 23 5 5
-alter table just_a_test drop column state;
-select * from information_schema.index_statistics where table_schema='test' and table_name='just_a_test';
-TABLE_SCHEMA TABLE_NAME INDEX_NAME ROWS_READ
-select * from information_schema.table_statistics where table_schema='test' and table_name='just_a_test';
-TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES
-test just_a_test 28 5 5
-drop table just_a_test;
-select * from information_schema.index_statistics where table_schema='test' and table_name='just_a_test';
-TABLE_SCHEMA TABLE_NAME INDEX_NAME ROWS_READ
-select * from information_schema.table_statistics where table_schema='test' and table_name='just_a_test';
-TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES
-create table just_a_test(id int not null primary key,first_name varchar(10),last_name varchar(10),address varchar(100),phone bigint,email varchar(30), state varchar(30),key(first_name,last_name),key(state));
-insert into just_a_test values(1,'fa','la','china_a',11111111,'fa_la@163.com','California'),
-(2,'fb','lb','china_b',22222222,'fb_lb@163.com','Arizona'),
-(3,'fc','lc','china_c',33333333,'fc_lc@163.com','California'),
-(4,'fd','ld','china_d',44444444,'fd_ld@163.com','Utah'),
-(5,'fe','le','china_e',55555555,'fe_le@163.com','Arizona');
-select count(*) from just_a_test where first_name='fc' and last_name='lc';
-count(*)
-1
-select count(*) from just_a_test where state = 'California';
-count(*)
-2
-select count(*) from just_a_test where id between 2 and 4;
-count(*)
-3
-select * from information_schema.index_statistics where table_schema='test' and table_name='just_a_test';
-TABLE_SCHEMA TABLE_NAME INDEX_NAME ROWS_READ
-test just_a_test PRIMARY 5
-test just_a_test first_name 1
-test just_a_test state 2
-select * from information_schema.table_statistics where table_schema='test' and table_name='just_a_test';
-TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES
-test just_a_test 8 5 15
-drop table just_a_test;
-select * from information_schema.index_statistics where table_schema='test' and table_name='just_a_test';
-TABLE_SCHEMA TABLE_NAME INDEX_NAME ROWS_READ
-select * from information_schema.table_statistics where table_schema='test' and table_name='just_a_test';
-TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES
-set global userstat=0;
diff --git a/mysql-test/r/init_connect.result b/mysql-test/r/init_connect.result
deleted file mode 100644
index 11bb6036156..00000000000
--- a/mysql-test/r/init_connect.result
+++ /dev/null
@@ -1,203 +0,0 @@
-connect con0,localhost,root,,;
-connection con0;
-select hex(@a);
-hex(@a)
-NULL
-connect con1,localhost,user_1,,;
-connection con1;
-select hex(@a);
-hex(@a)
-610063
-connection con0;
-set global init_connect="set @a=2;set @b=3";
-connect con2,localhost,user_1,,;
-connection con2;
-select @a, @b;
-@a @b
-2 3
-connection con0;
-set GLOBAL init_connect=DEFAULT;
-connect con3,localhost,user_1,,;
-connection con3;
-select @a;
-@a
-NULL
-connection con0;
-set global init_connect="drop table if exists t1; create table t1(a char(10));\
-insert into t1 values ('\0');insert into t1 values('abc')";
-connect con4,localhost,user_1,,;
-connection con4;
-select hex(a) from t1;
-hex(a)
-00
-616263
-connection con0;
-set GLOBAL init_connect="adsfsdfsdfs";
-connect con5,localhost,user_1,,;
-connection con5;
-select @a;
-ERROR 08S01: Aborted connection to db: 'test' user: 'user_1' host: 'localhost' (init_connect command failed)
-select @a;
-Got one of the listed errors
-connection con0;
-drop table t1;
-disconnect con1;
-disconnect con2;
-disconnect con3;
-disconnect con4;
-disconnect con5;
-End of 4.1 tests
-create table t1 (x int);
-insert into t1 values (3), (5), (7);
-create table t2 (y int);
-create user mysqltest1@localhost;
-grant all privileges on test.* to mysqltest1@localhost;
-set global init_connect="create procedure p1() select * from t1";
-connect con1,localhost,mysqltest1,,;
-connection con1;
-call p1();
-x
-3
-5
-7
-drop procedure p1;
-connection con0;
-disconnect con1;
-set global init_connect="create procedure p1(x int)\
-begin\
- select count(*) from t1;\
- select * from t1;\
- set @x = x;
-end";
-connect con1,localhost,mysqltest1,,;
-connection con1;
-call p1(42);
-count(*)
-3
-x
-3
-5
-7
-select @x;
-@x
-42
-connection con0;
-disconnect con1;
-set global init_connect="call p1(4711)";
-connect con1,localhost,mysqltest1,,;
-connection con1;
-select @x;
-@x
-4711
-connection con0;
-disconnect con1;
-set global init_connect="drop procedure if exists p1";
-connect con1,localhost,mysqltest1,,;
-connection con1;
-call p1();
-ERROR 42000: PROCEDURE test.p1 does not exist
-connection con0;
-disconnect con1;
-create procedure p1(out sum int)
-begin
-declare n int default 0;
-declare c cursor for select * from t1;
-declare exit handler for not found
-begin
-close c;
-set sum = n;
-end;
-open c;
-loop
-begin
-declare x int;
-fetch c into x;
-if x > 3 then
-set n = n + x;
-end if;
-end;
-end loop;
-end|
-set global init_connect="call p1(@sum)";
-connect con1,localhost,mysqltest1,,;
-connection con1;
-select @sum;
-@sum
-12
-connection con0;
-disconnect con1;
-drop procedure p1;
-create procedure p1(tbl char(10), v int)
-begin
-set @s = concat('insert into ', tbl, ' values (?)');
-set @v = v;
-prepare stmt1 from @s;
-execute stmt1 using @v;
-deallocate prepare stmt1;
-end|
-set global init_connect="call p1('t1', 11)";
-connect con1,localhost,mysqltest1,,;
-connection con1;
-select * from t1;
-x
-3
-5
-7
-11
-connection con0;
-disconnect con1;
-drop procedure p1;
-create function f1() returns int
-begin
-declare n int;
-select count(*) into n from t1;
-return n;
-end|
-set global init_connect="set @x = f1()";
-connect con1,localhost,mysqltest1,,;
-connection con1;
-select @x;
-@x
-4
-connection con0;
-disconnect con1;
-set global init_connect="create view v1 as select f1()";
-connect con1,localhost,mysqltest1,,;
-connection con1;
-select * from v1;
-f1()
-4
-connection con0;
-disconnect con1;
-set global init_connect="drop view v1";
-connect con1,localhost,mysqltest1,,;
-connection con1;
-select * from v1;
-ERROR 42S02: Table 'test.v1' doesn't exist
-connection con0;
-disconnect con1;
-drop function f1;
-create trigger trg1
-after insert on t2
-for each row
-insert into t1 values (new.y);
-set global init_connect="insert into t2 values (13), (17), (19)";
-connect con1,localhost,mysqltest1,,;
-connection con1;
-select * from t1;
-x
-3
-5
-7
-11
-13
-17
-19
-connection default;
-disconnect con0;
-disconnect con1;
-drop trigger trg1;
-set global init_connect="set @a='a\\0c'";
-revoke all privileges, grant option from mysqltest1@localhost;
-drop user mysqltest1@localhost;
-drop table t1, t2;
diff --git a/mysql-test/r/init_connection_query_cache.result b/mysql-test/r/init_connection_query_cache.result
deleted file mode 100644
index eacc06c05f6..00000000000
--- a/mysql-test/r/init_connection_query_cache.result
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# MDEV-4520: Assertion `0' fails in Query_cache::end_of_result on
-# concurrent drop event and event execution
-#
-set GLOBAL query_cache_size=1355776;
-create user mysqltest1@localhost;
-grant SELECT on test.* to mysqltest1@localhost;
-create table t1 (a int);
-connect con1,localhost,mysqltest1,,;
-connection con1;
-# This explain put here to be sure that init connection query
-# has 'Impossible WHERE'.
-explain extended select * from test.t1 where 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-connection default;
-disconnect con1;
-revoke all privileges, grant option from mysqltest1@localhost;
-drop user mysqltest1@localhost;
-drop table t1;
-set GLOBAL query_cache_size=default;
diff --git a/mysql-test/r/init_file.result b/mysql-test/r/init_file.result
deleted file mode 100644
index 8e014815a9c..00000000000
--- a/mysql-test/r/init_file.result
+++ /dev/null
@@ -1,21 +0,0 @@
-INSERT INTO init_file.startup VALUES ( NOW() );
-SELECT * INTO @X FROM init_file.startup limit 0,1;
-SELECT * INTO @Y FROM init_file.startup limit 1,1;
-SELECT YEAR(@X)-YEAR(@Y);
-YEAR(@X)-YEAR(@Y)
-0
-ok
-end of 4.1 tests
-select * from t1;
-x
-3
-5
-7
-11
-13
-select * from t2;
-y
-30
-3
-11
-13
diff --git a/mysql-test/r/init_file_longline_3816.result b/mysql-test/r/init_file_longline_3816.result
deleted file mode 100644
index 0155f764592..00000000000
--- a/mysql-test/r/init_file_longline_3816.result
+++ /dev/null
@@ -1,3 +0,0 @@
-select count(*) from t4;
-count(*)
-0
diff --git a/mysql-test/r/init_file_set_password-7656.result b/mysql-test/r/init_file_set_password-7656.result
deleted file mode 100644
index e5b3fc75706..00000000000
--- a/mysql-test/r/init_file_set_password-7656.result
+++ /dev/null
@@ -1,8 +0,0 @@
-create user foo@localhost;
-select user,host,password from mysql.user where user='foo';
-user host password
-foo localhost
-select user,host,password from mysql.user where user='foo';
-user host password
-foo localhost *94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29
-drop user foo@localhost;
diff --git a/mysql-test/r/innodb_bug878769.result b/mysql-test/r/innodb_bug878769.result
deleted file mode 100644
index db7ba3d2ee4..00000000000
--- a/mysql-test/r/innodb_bug878769.result
+++ /dev/null
@@ -1,57 +0,0 @@
-drop table if exists t1,t2;
-#
-# Bug #878769: valgrind complains when using join cache
-# to join an InnoDB table without primary key
-#
-CREATE TABLE t1 (
-col_int_key int(11), col_time_key time, col_varchar_key varchar(1),
-KEY (col_int_key), KEY (col_varchar_key,col_int_key)
-) ENGINE=InnoDB;
-INSERT IGNORE INTO t1 VALUES
-(7,'10:19:31','d'),(1,'14:40:36','r'),(7,'04:37:47','f'),(9,'19:34:06','y'),
-(2,'00:00:00','m'),(4,'00:13:25','q'),(0,'03:47:16',NULL),(4,'01:41:48','d'),
-(8,'00:00:00','g'),(NULL,'22:32:04','x'),(NULL,'16:44:14','f'),
-(0,'17:38:37','p'),(NULL,'08:46:48','j'),(8,'14:11:27','c');
-CREATE TABLE t2 (
-col_int_nokey int(11), col_int_key int(11),
-col_datetime_key datetime, col_datetime_nokey datetime,
-col_varchar_key varchar(1), col_varchar_nokey varchar(1),
-KEY (col_int_key), KEY (col_varchar_key,col_int_key)
-);
-INSERT IGNORE INTO t2 VALUES
-(150,62,'2008-01-03 10:33:32','2008-01-03 10:33:32','v','v'),
-(2,1,'2007-10-09 19:53:04','2007-10-09 19:53:04',NULL,NULL),
-(5,0,'2001-11-08 21:02:12','2001-11-08 21:02:12','x','x'),
-(3,7,'2003-04-01 00:00','2003-04-01 00:00','i','i'),
-(1,7,'1900-01-01 00:00','1900-01-01 00:00:00','e','e'),
-(NULL,7,'2005-04-04 01:21','2005-04-04 01:21','s','s'),
-(2,1,'1900-01-01 00:00','1900-01-01 00:00','j','j'),
-(8,0,'2004-04-28 21:44','2004-04-28 21:44','a','a'),
-(6,8,'2001-04-18 00:00','2001-04-18 00:00:00','y','y'),
-(8,1,'2008-12-18 19:39:55','2008-12-18 19:39:55',NULL,NULL),
-(3,1,'2000-08-01 12:19:39','2000-08-01 12:19:39','r','r'),
-(3,9,'2004-09-25 21:29:06','2004-09-25 21:29:06','v','v');
-set session optimizer_switch='mrr=on,mrr_sort_keys=on';
-set session join_cache_level=6;
-EXPLAIN
-SELECT t1.col_time_key, t1.col_varchar_key
-FROM t2 STRAIGHT_JOIN t1 ON t1.col_int_key = t2.col_int_key
-GROUP BY 1,2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index col_int_key col_int_key 5 NULL 12 Using where; Using index; Using temporary; Using filesort
-1 SIMPLE t1 ref col_int_key col_int_key 5 test.t2.col_int_key 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT t1.col_time_key, t1.col_varchar_key
-FROM t2 STRAIGHT_JOIN t1 ON t1.col_int_key = t2.col_int_key
-GROUP BY 1,2;
-col_time_key col_varchar_key
-00:00:00 g
-03:47:16 NULL
-04:37:47 f
-10:19:31 d
-14:11:27 c
-14:40:36 r
-17:38:37 p
-19:34:06 y
-set session optimizer_switch=default;
-set session join_cache_level=default;
-DROP TABLE t1,t2;
diff --git a/mysql-test/r/innodb_ext_key.result b/mysql-test/r/innodb_ext_key.result
deleted file mode 100644
index c55e8d138f8..00000000000
--- a/mysql-test/r/innodb_ext_key.result
+++ /dev/null
@@ -1,1210 +0,0 @@
-DROP TABLE IF EXISTS t1,t2,t3,t4;
-DROP DATABASE IF EXISTS dbt3_s001;
-SET SESSION STORAGE_ENGINE='InnoDB';
-CREATE DATABASE dbt3_s001;
-use dbt3_s001;
-set @save_ext_key_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='extended_keys=off';
-explain
-select count(*) from lineitem where l_orderkey=130 and l_shipdate='1992-07-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem ref PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity PRIMARY 4 const 5 Using where
-flush status;
-select count(*) from lineitem where l_orderkey=130 and l_shipdate='1992-07-01';
-count(*)
-1
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 5
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=on';
-explain
-select count(*) from lineitem where l_orderkey=130 and l_shipdate='1992-07-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem ref PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity i_l_shipdate 8 const,const 1 Using index
-flush status;
-select count(*) from lineitem where l_orderkey=130 and l_shipdate='1992-07-01';
-count(*)
-1
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 1
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=off';
-explain
-select count(*) from lineitem
-where l_orderkey=130 and l_linenumber=2 and l_shipdate='1992-07-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem const PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity PRIMARY 8 const,const 1
-flush status;
-select count(*) from lineitem
-where l_orderkey=130 and l_linenumber=2 and l_shipdate='1992-07-01';
-count(*)
-1
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=on';
-explain
-select count(*) from lineitem
-where l_orderkey=130 and l_linenumber=2 and l_shipdate='1992-07-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem const PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity PRIMARY 8 const,const 1
-flush status;
-select count(*) from lineitem
-where l_orderkey=130 and l_linenumber=2 and l_shipdate='1992-07-01';
-count(*)
-1
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=off';
-explain
-select count(*) from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem ref PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity i_l_shipdate 4 const 6 Using where; Using index
-flush status;
-select count(*) from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000;
-count(*)
-1
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 6
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=on';
-explain
-select count(*) from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem range PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity i_l_shipdate 8 NULL 1 Using where; Using index
-flush status;
-select count(*) from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000;
-count(*)
-1
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 1
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=off';
-explain
-select l_orderkey, l_linenumber from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1001 and 2000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem ref PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity i_l_shipdate 4 const 6 Using where; Using index
-flush status;
-select l_orderkey, l_linenumber from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1001 and 2000;
-l_orderkey l_linenumber
-1088 3
-1217 1
-1221 3
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 6
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=on';
-explain
-select l_orderkey, l_linenumber from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1001 and 2000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem range PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity i_l_shipdate 8 NULL 3 Using where; Using index
-flush status;
-select l_orderkey, l_linenumber from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1001 and 2000;
-l_orderkey l_linenumber
-1088 3
-1217 1
-1221 3
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 3
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=off';
-explain
-select min(l_orderkey) from lineitem where l_shipdate='1992-07-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem ref i_l_shipdate i_l_shipdate 4 const 6 Using index
-flush status;
-select min(l_orderkey) from lineitem where l_shipdate='1992-07-01';
-min(l_orderkey)
-130
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 6
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=on';
-explain
-select min(l_orderkey) from lineitem where l_shipdate='1992-07-01';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-flush status;
-select min(l_orderkey) from lineitem where l_shipdate='1992-07-01';
-min(l_orderkey)
-130
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=off';
-explain
-select min(l_orderkey) from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1001 and 2000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem ref PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity i_l_shipdate 4 const 6 Using where; Using index
-flush status;
-select min(l_orderkey) from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1001 and 2000;
-min(l_orderkey)
-1088
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 6
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=on';
-explain
-select min(l_orderkey) from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1001 and 2000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-flush status;
-select min(l_orderkey) from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1001 and 2000;
-min(l_orderkey)
-1088
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=off';
-explain
-select max(l_linenumber) from lineitem
-where l_shipdate='1992-07-01' and l_orderkey=130;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem ref PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity PRIMARY 4 const 5 Using where
-flush status;
-select max(l_linenumber) from lineitem
-where l_shipdate='1992-07-01' and l_orderkey=130;
-max(l_linenumber)
-2
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 5
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=on';
-explain
-select max(l_linenumber) from lineitem
-where l_shipdate='1992-07-01' and l_orderkey=130;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-flush status;
-select max(l_linenumber) from lineitem
-where l_shipdate='1992-07-01' and l_orderkey=130;
-max(l_linenumber)
-2
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=off';
-explain
-select l_orderkey, l_linenumber
-from lineitem use index (i_l_shipdate, i_l_receiptdate)
-where l_shipdate='1992-07-01' and l_orderkey=130
-or l_receiptdate='1992-07-01' and l_orderkey=5603;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem index_merge i_l_shipdate,i_l_receiptdate i_l_shipdate,i_l_receiptdate 4,4 NULL 9 Using union(i_l_shipdate,i_l_receiptdate); Using where
-flush status;
-select l_orderkey, l_linenumber
-from lineitem use index (i_l_shipdate, i_l_receiptdate)
-where l_shipdate='1992-07-01' and l_orderkey=130
-or l_receiptdate='1992-07-01' and l_orderkey=5603;
-l_orderkey l_linenumber
-130 2
-5603 2
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 9
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 9
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=on';
-explain
-select l_orderkey, l_linenumber
-from lineitem use index (i_l_shipdate, i_l_receiptdate)
-where l_shipdate='1992-07-01' and l_orderkey=130
-or l_receiptdate='1992-07-01' and l_orderkey=5603;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem index_merge i_l_shipdate,i_l_receiptdate i_l_shipdate,i_l_receiptdate 8,8 NULL 2 Using union(i_l_shipdate,i_l_receiptdate); Using where
-flush status;
-select l_orderkey, l_linenumber
-from lineitem use index (i_l_shipdate, i_l_receiptdate)
-where l_shipdate='1992-07-01' and l_orderkey=130
-or l_receiptdate='1992-07-01' and l_orderkey=5603;
-l_orderkey l_linenumber
-130 2
-5603 2
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 2
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 2
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=off';
-explain
-select l_orderkey, l_linenumber
-from lineitem use index (i_l_shipdate, i_l_receiptdate)
-where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000
-or l_receiptdate='1992-07-01' and l_orderkey between 5001 and 6000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem index_merge i_l_shipdate,i_l_receiptdate i_l_shipdate,i_l_receiptdate 4,4 NULL 9 Using union(i_l_shipdate,i_l_receiptdate); Using where
-flush status;
-select l_orderkey, l_linenumber
-from lineitem use index (i_l_shipdate, i_l_receiptdate)
-where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000
-or l_receiptdate='1992-07-01' and l_orderkey between 5001 and 6000;
-l_orderkey l_linenumber
-130 2
-5603 2
-5959 3
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 9
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 9
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=on';
-explain
-select l_orderkey, l_linenumber
-from lineitem use index (i_l_shipdate, i_l_receiptdate)
-where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000
-or l_receiptdate='1992-07-01' and l_orderkey between 5001 and 6000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem index_merge i_l_shipdate,i_l_receiptdate i_l_shipdate,i_l_receiptdate 8,8 NULL 3 Using sort_union(i_l_shipdate,i_l_receiptdate); Using where
-flush status;
-select l_orderkey, l_linenumber
-from lineitem use index (i_l_shipdate, i_l_receiptdate)
-where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000
-or l_receiptdate='1992-07-01' and l_orderkey between 5001 and 6000;
-l_orderkey l_linenumber
-130 2
-5603 2
-5959 3
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 3
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 3
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=off';
-explain
-select l_orderkey, l_linenumber from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000
-or l_receiptdate='1992-07-01' and l_orderkey between 5001 and 6000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem index_merge PRIMARY,i_l_shipdate,i_l_receiptdate,i_l_orderkey,i_l_orderkey_quantity i_l_shipdate,PRIMARY,i_l_receiptdate,PRIMARY 4,4,4,4 NULL 2 Using union(intersect(i_l_shipdate,PRIMARY),intersect(i_l_receiptdate,PRIMARY)); Using where
-flush status;
-select l_orderkey, l_linenumber from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000
-or l_receiptdate='1992-07-01' and l_orderkey between 5001 and 6000;
-l_orderkey l_linenumber
-130 2
-5603 2
-5959 3
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 9
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 3
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=on';
-explain
-select l_orderkey, l_linenumber from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000
-or l_receiptdate='1992-07-01' and l_orderkey between 5001 and 6000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem index_merge PRIMARY,i_l_shipdate,i_l_receiptdate,i_l_orderkey,i_l_orderkey_quantity i_l_shipdate,i_l_receiptdate 8,8 NULL 3 Using sort_union(i_l_shipdate,i_l_receiptdate); Using where
-flush status;
-select l_orderkey, l_linenumber from lineitem
-where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000
-or l_receiptdate='1992-07-01' and l_orderkey between 5001 and 6000;
-l_orderkey l_linenumber
-130 2
-5603 2
-5959 3
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 3
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 3
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=off';
-explain
-select max(l_orderkey) from lineitem
-where l_partkey between 1 and 10 group by l_partkey;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem range i_l_suppkey_partkey,i_l_partkey i_l_partkey 5 NULL # Using where; Using index
-flush status;
-select max(l_orderkey) from lineitem
-where l_partkey between 1 and 10 group by l_partkey;
-max(l_orderkey)
-5984
-5957
-5892
-5856
-5959
-5957
-5794
-5894
-5859
-5632
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 294
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=on';
-explain
-select max(l_orderkey) from lineitem
-where l_partkey between 1 and 10 group by l_partkey;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem range i_l_suppkey_partkey,i_l_partkey i_l_partkey 5 NULL # Using where; Using index for group-by
-flush status;
-select max(l_orderkey) from lineitem
-where l_partkey between 1 and 10 group by l_partkey;
-max(l_orderkey)
-5984
-5957
-5892
-5856
-5959
-5957
-5794
-5894
-5859
-5632
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 21
-Handler_read_last 1
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=off';
-explain
-select max(l_orderkey) from lineitem
-where l_suppkey in (1,4) group by l_suppkey;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem range i_l_suppkey i_l_suppkey 5 NULL # Using where; Using index
-flush status;
-select max(l_orderkey) from lineitem
-where l_suppkey in (1,4) group by l_suppkey;
-max(l_orderkey)
-5988
-5984
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 1230
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=on';
-explain
-select max(l_orderkey) from lineitem
-where l_suppkey in (1,4) group by l_suppkey;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem range i_l_suppkey i_l_suppkey 5 NULL # Using where; Using index for group-by
-flush status;
-select max(l_orderkey) from lineitem
-where l_suppkey in (1,4) group by l_suppkey;
-max(l_orderkey)
-5988
-5984
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 6
-Handler_read_last 1
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-create index i_p_retailprice on part(p_retailprice);
-set optimizer_switch='extended_keys=off';
-explain
-select o_orderkey, p_partkey
-from part use index (i_p_retailprice),
-lineitem use index (i_l_partkey), orders
-where p_retailprice > 1100 and o_orderdate='1997-01-01'
-and o_orderkey=l_orderkey and p_partkey=l_partkey;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE part range i_p_retailprice i_p_retailprice 9 NULL # Using where; Using index
-1 SIMPLE orders ref PRIMARY,i_o_orderdate i_o_orderdate 4 const # Using index
-1 SIMPLE lineitem ref i_l_partkey i_l_partkey 5 dbt3_s001.part.p_partkey # Using where; Using index
-flush status;
-select o_orderkey, p_partkey
-from part use index (i_p_retailprice),
-lineitem use index (i_l_partkey), orders
-where p_retailprice > 1100 and o_orderdate='1997-01-01'
-and o_orderkey=l_orderkey and p_partkey=l_partkey;
-o_orderkey p_partkey
-5895 200
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 3
-Handler_read_last 0
-Handler_read_next 26
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='extended_keys=on';
-explain
-select o_orderkey, p_partkey
-from part use index (i_p_retailprice),
-lineitem use index (i_l_partkey), orders
-where p_retailprice > 1100 and o_orderdate='1997-01-01'
-and o_orderkey=l_orderkey and p_partkey=l_partkey;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE part range i_p_retailprice i_p_retailprice 9 NULL # Using where; Using index
-1 SIMPLE orders ref PRIMARY,i_o_orderdate i_o_orderdate 4 const # Using index
-1 SIMPLE lineitem ref i_l_partkey i_l_partkey 9 dbt3_s001.part.p_partkey,dbt3_s001.orders.o_orderkey # Using index
-flush status;
-select o_orderkey, p_partkey
-from part use index (i_p_retailprice),
-lineitem use index (i_l_partkey), orders
-where p_retailprice > 1100 and o_orderdate='1997-01-01'
-and o_orderkey=l_orderkey and p_partkey=l_partkey;
-o_orderkey p_partkey
-5895 200
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 3
-Handler_read_last 0
-Handler_read_next 3
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-#
-# Bug mdev-3851: ref access used instead of expected eq_ref access
-# when extended_keys=on
-#
-create table t0 (a int);
-insert into t0 values (1), (2), (3), (4), (5);
-create index i_p_size on part(p_size);
-set optimizer_switch='extended_keys=on';
-explain
-select * from t0, part ignore index (primary)
-where p_partkey=t0.a and p_size=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 5 Using where
-1 SIMPLE part eq_ref i_p_size i_p_size 9 const,dbt3_s001.t0.a 1
-select * from t0, part ignore index (primary)
-where p_partkey=t0.a and p_size=1;
-a p_partkey p_name p_mfgr p_brand p_type p_size p_container p_retailprice p_comment
-2 2 blush rosy metallic lemon navajo Manufacturer#1 Brand#13 LARGE BRUSHED BRASS 1 LG CASE 902 final platelets hang f
-drop table t0;
-drop index i_p_size on part;
-DROP DATABASE dbt3_s001;
-use test;
-#
-# LP Bug #914560: query containing IN subquery
-# + extended_keys = on
-#
-set @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='materialization=on,semijoin=on';
-SET optimizer_switch='extended_keys=on';
-CREATE TABLE t1 (a int, b int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,1), (2,2);
-SELECT * FROM t1 WHERE 2 IN (SELECT MAX(s1.a) FROM t1 AS s1, t1 AS s2);
-a b
-1 1
-2 2
-EXPLAIN
-SELECT * FROM t1 WHERE 2 IN (SELECT MAX(s1.a) FROM t1 AS s1, t1 AS s2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> const distinct_key distinct_key 4 const 1
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 MATERIALIZED s1 ALL NULL NULL NULL NULL 2
-2 MATERIALIZED s2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-DROP TABLE t1;
-set optimizer_switch=@save_optimizer_switch;
-#
-# LP Bug #915291: query using a materialized view
-# + extended_keys = on
-# (valgrinf complains fixed by the patch for bug #914560)
-#
-set @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch = 'derived_with_keys=on';
-SET optimizer_switch = 'extended_keys=on';
-CREATE TABLE t1 (a varchar(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('j'), ('v');
-CREATE TABLE t2 (b varchar(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('j'), ('v');
-CREATE TABLE t3 (c varchar(1));
-INSERT INTO t2 VALUES ('m'), ('n');
-CREATE VIEW v
-AS SELECT DISTINCT * FROM t2 STRAIGHT_JOIN t3;
-SELECT * FROM t1, v WHERE a = b;
-a b c
-DROP VIEW v;
-DROP TABLE t1,t2,t3;
-set optimizer_switch=@save_optimizer_switch;
-#
-# LP Bug #921167: query containing IN subquery
-# + extended_keys = on
-#
-CREATE TABLE t1 (
-a int NOT NULL, b varchar(1) NOT NULL, KEY(a), KEY(b,a)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-(0,'j'), (8,'v'), (1,'c'), (8,'m'), (9,'d'),
-(24,'d'), (6,'y'), (1,'t'), (6,'d'), (2,'s');
-CREATE TABLE t2 (
-c int NOT NULL PRIMARY KEY
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-(10), (11), (12), (13), (14),
-(15), (16), (17), (18), (19), (24);
-set @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch = 'extended_keys=off';
-EXPLAIN
-SELECT a FROM t1 AS t, t2
-WHERE c = a AND b IN (SELECT b FROM t1, t2 WHERE b = t.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t index a,b b 7 NULL 10 Using index
-1 PRIMARY t1 ref b b 3 test.t.b 2 Using index
-1 PRIMARY t2 index NULL PRIMARY 4 NULL 11 Using index; FirstMatch(t)
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.t.a 1 Using index
-SELECT a FROM t1 AS t, t2
-WHERE c = a AND b IN (SELECT b FROM t1, t2 WHERE b = t.b);
-a
-24
-SET optimizer_switch = 'extended_keys=on';
-EXPLAIN
-SELECT a FROM t1 AS t, t2
-WHERE c = a AND b IN (SELECT b FROM t1, t2 WHERE b = t.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t index a,b b 7 NULL 10 Using index
-1 PRIMARY t1 ref b b 3 test.t.b 2 Using index
-1 PRIMARY t2 index NULL PRIMARY 4 NULL 11 Using index; FirstMatch(t)
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.t.a 1 Using index
-SELECT a FROM t1 AS t, t2
-WHERE c = a AND b IN (SELECT b FROM t1, t2 WHERE b = t.b);
-a
-24
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t2;
-#
-# LP Bug #923236: hash join + extended_keys = on
-#
-CREATE TABLE t1 (a int) ENGINE=MyISAM;
-CREATE TABLE t2 (b int) ENGINE=MyISAM;
-INSERT INTO t1 (a) VALUES (4), (6);
-INSERT INTO t2 (b) VALUES (0), (8);
-set @save_optimizer_switch=@@optimizer_switch;
-set @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=3;
-SET optimizer_switch='join_cache_hashed=on';
-SET optimizer_switch='join_cache_bka=on';
-SET optimizer_switch='extended_keys=on';
-EXPLAIN
-SELECT * FROM t1, t2 WHERE b=a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 5 test.t1.a 2 Using where; Using join buffer (flat, BNLH join)
-SELECT * FROM t1, t2 WHERE b=a;
-a b
-set join_cache_level=@save_join_cache_level;
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t2;
-#
-# Bug mdev-3888: INSERT with UPDATE on duplicate keys
-# with extended_keys=on
-#
-CREATE TABLE t1 (
-c1 bigint(20) unsigned NOT NULL AUTO_INCREMENT,
-c2 bigint(20) unsigned NOT NULL,
-c3 bigint(20) unsigned NOT NULL,
-c4 varchar(128) DEFAULT NULL,
-PRIMARY KEY (c1),
-UNIQUE KEY uq (c2,c3),
-KEY c3 (c3),
-KEY c4 (c4)
-) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-set @save_optimizer_switch=@@optimizer_switch;
-set session optimizer_switch='extended_keys=off';
-INSERT INTO t1 (c2, c3, c4) VALUES (58291525, 2580, 'foobar')
-ON DUPLICATE KEY UPDATE c4 = VALUES(c4);
-INSERT INTO t1 (c2, c3, c4) VALUES (58291525, 2580, 'foobar')
-ON DUPLICATE KEY UPDATE c4 = VALUES(c4);
-DELETE FROM t1;
-set session optimizer_switch='extended_keys=on';
-INSERT INTO t1 (c2, c3, c4) VALUES (58291525, 2580, 'foobar')
-ON DUPLICATE KEY UPDATE c4 = VALUES(c4);
-INSERT INTO t1 (c2, c3, c4) VALUES (58291525, 2580, 'foobar')
-ON DUPLICATE KEY UPDATE c4 = VALUES(c4);
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1;
-#
-# Bug mdev-4220: using ref instead of eq_ref
-# with extended_keys=on
-# (performance regression introduced in the patch for mdev-3851)
-#
-set @save_optimizer_switch=@@optimizer_switch;
-create table t1 (a int not null) engine=innodb;
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (
-pk int primary key, a int not null, b int, unique(a)
-)engine=innodb;
-insert into t2
-select
-A.a + 10 * B.a, A.a + 10 * B.a, A.a + 10 * B.a
-from t1 A, t1 B;
-set optimizer_switch='extended_keys=off';
-explain
-select * from t1, t2 where t2.a=t1.a and t2.b < 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10
-1 SIMPLE t2 eq_ref a a 4 test.t1.a 1 Using where
-flush status;
-select * from t1, t2 where t2.a=t1.a and t2.b < 2;
-a pk a b
-0 0 0 0
-1 1 1 1
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 10
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 11
-set optimizer_switch='extended_keys=on';
-explain
-select * from t1, t2 where t2.a=t1.a and t2.b < 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10
-1 SIMPLE t2 eq_ref a a 4 test.t1.a 1 Using where
-flush status;
-select * from t1, t2 where t2.a=t1.a and t2.b < 2;
-a pk a b
-0 0 0 0
-1 1 1 1
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 10
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 11
-drop table t1,t2;
-create table t1(a int) engine=myisam;
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2(a int) engine=myisam;
-insert into t2 select A.a + 10*B.a + 100*C.a from t1 A, t1 B, t1 C;
-create table t3 (
-pk1 int not null, pk2 int not null, col1 int not null, col2 int not null)
-engine=innodb;
-insert into t3 select a,a,a,a from t2;
-alter table t3 add primary key (pk1, pk2);
-alter table t3 add key (col1, col2);
-analyze table t1,t3;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-test.t3 analyze status OK
-set optimizer_switch='extended_keys=off';
-explain
-select * from t1, t3 where t3.col1=t1.a and t3.col2=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL # Using where
-1 SIMPLE t3 ref col1 col1 8 test.t1.a,test.t1.a # Using index
-explain
-select * from t1, t3 where t3.col1=t1.a and t3.col2=t1.a and t3.pk1=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL # Using where
-1 SIMPLE t3 ref PRIMARY,col1 col1 8 test.t1.a,test.t1.a # Using where; Using index
-set optimizer_switch='extended_keys=on';
-explain
-select * from t1, t3 where t3.col1=t1.a and t3.col2=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL # Using where
-1 SIMPLE t3 ref col1 col1 8 test.t1.a,test.t1.a # Using index
-explain
-select * from t1, t3 where t3.col1=t1.a and t3.col2=t1.a and t3.pk1=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL # Using where
-1 SIMPLE t3 ref PRIMARY,col1 col1 12 test.t1.a,test.t1.a,test.t1.a # Using index
-drop table t1,t2,t3;
-#
-# Bug mdev-4340: performance regression with extended_keys=on
-#
-set @save_optimizer_switch=@@optimizer_switch;
-CREATE TABLE t1 (
-page_id int(8) unsigned NOT NULL AUTO_INCREMENT,
-page_namespace int(11) NOT NULL DEFAULT '0',
-page_title varbinary(255) NOT NULL DEFAULT '',
-page_restrictions tinyblob NOT NULL,
-page_counter bigint(20) unsigned NOT NULL DEFAULT '0',
-page_is_redirect tinyint(1) unsigned NOT NULL DEFAULT '0',
-page_is_new tinyint(1) unsigned NOT NULL DEFAULT '0',
-page_random double unsigned NOT NULL DEFAULT '0',
-page_touched varbinary(14) NOT NULL DEFAULT '',
-page_latest int(8) unsigned NOT NULL DEFAULT '0',
-page_len int(8) unsigned NOT NULL DEFAULT '0',
-PRIMARY KEY (page_id),
-UNIQUE KEY name_title (page_namespace,page_title),
-KEY page_random (page_random),
-KEY page_len (page_len),
-KEY page_redirect_namespace_len (page_is_redirect,page_namespace,page_len)
-) ENGINE=InnoDB AUTO_INCREMENT=38929100 DEFAULT CHARSET=binary;
-INSERT INTO t1 VALUES
-(38928077,0,'Sandbox','',0,0,0,0,'',0,0),(38928078,1,'Sandbox','',0,0,0,1,'',0,0),
-(38928079,2,'Sandbox','',0,0,0,2,'',0,0),(38928080,3,'Sandbox','',0,0,0,3,'',0,0),
-(38928081,4,'Sandbox','',0,0,0,4,'',0,0),(38928082,5,'Sandbox','',0,0,0,5,'',0,0);
-CREATE TABLE t2 (
-rev_id int(8) unsigned NOT NULL AUTO_INCREMENT,
-rev_page int(8) unsigned NOT NULL DEFAULT '0',
-rev_text_id int(8) unsigned NOT NULL DEFAULT '0',
-rev_comment varbinary(255) DEFAULT NULL,
-rev_user int(5) unsigned NOT NULL DEFAULT '0',
-rev_user_text varbinary(255) NOT NULL DEFAULT '',
-rev_timestamp varbinary(14) NOT NULL DEFAULT '',
-rev_minor_edit tinyint(1) unsigned NOT NULL DEFAULT '0',
-rev_deleted tinyint(1) unsigned NOT NULL DEFAULT '0',
-rev_len int(8) unsigned DEFAULT NULL,
-rev_parent_id int(8) unsigned DEFAULT NULL,
-rev_sha1 varbinary(32) NOT NULL DEFAULT '',
-PRIMARY KEY (rev_page,rev_id),
-UNIQUE KEY rev_id (rev_id),
-KEY rev_timestamp (rev_timestamp),
-KEY page_timestamp (rev_page,rev_timestamp),
-KEY user_timestamp (rev_user,rev_timestamp),
-KEY usertext_timestamp (rev_user_text,rev_timestamp,rev_user,rev_deleted,rev_minor_edit,rev_text_id,rev_comment)
-) ENGINE=InnoDB DEFAULT CHARSET=binary;
-INSERT INTO t2 VALUES
-(547116222,20,0,NULL,3,'','',0,0,NULL,NULL,''),(547117245,20,0,NULL,4,'','',0,0,NULL,NULL,''),
-(547118268,20,0,NULL,5,'','',0,0,NULL,NULL,''),(547114177,21,0,NULL,1,'','',0,0,NULL,NULL,''),
-(547115200,21,0,NULL,2,'','',0,0,NULL,NULL,''),(547116223,21,0,NULL,3,'','',0,0,NULL,NULL,''),
-(547117246,21,0,NULL,4,'','',0,0,NULL,NULL,''),(547118269,21,0,NULL,5,'','',0,0,NULL,NULL,''),
-(547114178,22,0,NULL,1,'','',0,0,NULL,NULL,''),(547115201,22,0,NULL,2,'','',0,0,NULL,NULL,''),
-(547116224,22,0,NULL,3,'','',0,0,NULL,NULL,''),(547117247,22,0,NULL,4,'','',0,0,NULL,NULL,''),
-(547116226,24,0,NULL,3,'','',0,0,NULL,NULL,''),(547117249,24,0,NULL,4,'','',0,0,NULL,NULL,''),
-(547118272,24,0,NULL,5,'','',0,0,NULL,NULL,''),(547114181,25,0,NULL,1,'','',0,0,NULL,NULL,''),
-(547115204,25,0,NULL,2,'','',0,0,NULL,NULL,''),(547116227,25,0,NULL,3,'','',0,0,NULL,NULL,''),
-(547116157,978,0,NULL,2,'','',0,0,NULL,NULL,''),(547117180,978,0,NULL,3,'','',0,0,NULL,NULL,''),
-(547118203,978,0,NULL,4,'','',0,0,NULL,NULL,''),(547119226,978,0,NULL,5,'','',0,0,NULL,NULL,''),
-(547115135,979,0,NULL,1,'','',0,0,NULL,NULL,''),(547116158,979,0,NULL,2,'','',0,0,NULL,NULL,''),
-(547116173,994,0,NULL,2,'','',0,0,NULL,NULL,''),(547117196,994,0,NULL,3,'','',0,0,NULL,NULL,''),
-(547118219,994,0,NULL,4,'','',0,0,NULL,NULL,''),(547119242,994,0,NULL,5,'','',0,0,NULL,NULL,''),
-(547115151,995,0,NULL,1,'','',0,0,NULL,NULL,''),(547116174,995,0,NULL,2,'','',0,0,NULL,NULL,''),
-(547117197,995,0,NULL,3,'','',0,0,NULL,NULL,''),(547118220,995,0,NULL,4,'','',0,0,NULL,NULL,''),
-(547118223,998,0,NULL,4,'','',0,0,NULL,NULL,''),(547119246,998,0,NULL,5,'','',0,0,NULL,NULL,''),
-(547115155,999,0,NULL,1,'','',0,0,NULL,NULL,''),(547116178,999,0,NULL,2,'','',0,0,NULL,NULL,''),
-(547117201,999,0,NULL,3,'','',0,0,NULL,NULL,''),(547118224,999,0,NULL,4,'','',0,0,NULL,NULL,''),
-(547119271,38928081,0,NULL,10,'','',0,0,NULL,NULL,''),(547119272,38928081,0,NULL,11,'','',0,0,NULL,NULL,''),
-(547119273,38928081,0,NULL,12,'','',0,0,NULL,NULL,''),(547119274,38928081,0,NULL,13,'','',0,0,NULL,NULL,''),
-(547119275,38928081,0,NULL,14,'','',0,0,NULL,NULL,''),(547119276,38928081,0,NULL,15,'','',0,0,NULL,NULL,''),
-(547119277,38928081,0,NULL,16,'','',0,0,NULL,NULL,''),(547119278,38928081,0,NULL,17,'','',0,0,NULL,NULL,''),
-(547119279,38928081,0,NULL,18,'','',0,0,NULL,NULL,''),(547119280,38928081,0,NULL,19,'','',0,0,NULL,NULL,'');
-CREATE TABLE t3 (
-old_id int(10) unsigned NOT NULL AUTO_INCREMENT,
-old_text mediumblob NOT NULL,
-old_flags tinyblob NOT NULL,
-PRIMARY KEY (old_id)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t3 VALUES
-(1,'text-0',''),(2,'text-1000',''),(3,'text-2000',''),(4,'text-3000',''),
-(5,'text-4000',''),(6,'text-5000',''),(7,'text-6000',''),(8,'text-7000',''),
-(9,'text-8000',''),(10,'text-9000',''),(11,'text-1',''),(12,'text-1001',''),
-(13,'text-2001',''),(14,'text-3001',''),(15,'text-4001',''),(16,'text-5001',''),
-(17,'text-6001',''),(18,'text-7001',''),(19,'text-8001',''),(20,'text-9001',''),
-(21,'text-2',''),(22,'text-1002',''),(23,'text-2002',''),(24,'text-3002',''),
-(25,'text-4002',''),(26,'text-5002',''),(27,'text-6002',''),(28,'text-7002',''),
-(29,'text-8002',''),(30,'text-9002',''),(31,'text-3',''),(32,'text-1003',''),
-(33,'text-2003',''),(34,'text-3003',''),(35,'text-4003',''),(36,'text-5003',''),
-(37,'text-6003',''),(38,'text-7003',''),(39,'text-8003',''),(40,'text-9003',''),
-(41,'text-4',''),(42,'text-1004',''),(43,'text-2004',''),(44,'text-3004',''),
-(45,'text-4004',''),(46,'text-5004',''),(47,'text-6004',''),(48,'text-7004',''),
-(49,'text-8004',''),(50,'text-9004',''),(51,'text-5',''),(52,'text-1005',''),
-(53,'text-2005',''),(54,'text-3005',''),(55,'text-4005',''),(56,'text-5005',''),
-(57,'text-6005',''),(58,'text-7005',''),(59,'text-8005',''),(60,'text-9005',''),
-(61,'text-6',''),(62,'text-1006',''),(63,'text-2006',''),(64,'text-3006',''),
-(65,'text-4006',''),(66,'text-5006',''),(67,'text-6006',''),(68,'text-7006',''),
-(69,'text-8006',''),(70,'text-9006',''),(71,'text-7',''),(72,'text-1007',''),
-(73,'text-2007',''),(74,'text-3007',''),(75,'text-4007',''),(76,'text-5007',''),
-(77,'text-6007',''),(78,'text-7007',''),(79,'text-8007',''),(80,'text-9007',''),
-(81,'text-8',''),(82,'text-1008',''),(83,'text-2008',''),(84,'text-3008',''),
-(85,'text-4008',''),(86,'text-5008',''),(87,'text-6008',''),(88,'text-7008',''),
-(89,'text-8008',''),(90,'text-9008',''),(91,'text-9',''),(92,'text-1009',''),
-(93,'text-2009',''),(94,'text-3009',''),(95,'text-4009',''),(96,'text-5009',''),
-(97,'text-6009',''),(98,'text-7009',''),(99,'text-8009',''),(100,'text-9009','');
-set optimizer_switch='extended_keys=off';
-EXPLAIN
-SELECT * FROM t1, t2 IGNORE INDEX (PRIMARY), t3
-WHERE page_id=rev_page AND rev_text_id=old_id AND page_namespace=4 AND page_title='Sandbox'
-ORDER BY rev_timestamp ASC LIMIT 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY,name_title name_title 261 const,const 1
-1 SIMPLE t2 ref page_timestamp page_timestamp 4 const 10 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.rev_text_id 1
-set optimizer_switch='extended_keys=on';
-EXPLAIN
-SELECT * FROM t1, t2 IGNORE INDEX (PRIMARY), t3
-WHERE page_id=rev_page AND rev_text_id=old_id AND page_namespace=4 AND page_title='Sandbox'
-ORDER BY rev_timestamp ASC LIMIT 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY,name_title name_title 261 const,const 1
-1 SIMPLE t2 ref page_timestamp page_timestamp 4 const 10 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.rev_text_id 1
-DROP TABLE t1,t2,t3;
-#
-# MDEV-5424 SELECT using ORDER BY DESC and LIMIT produces unexpected
-# results (InnoDB/XtraDB)
-#
-create table t1 (a bigint not null unique auto_increment, b varchar(10), primary key (a), key (b(2))) engine = myisam default character set utf8;
-create table t2 (a bigint not null unique auto_increment, b varchar(10), primary key (a), key (b(2))) engine = innodb default character set utf8;
-insert into t1 (b) values (null), (null), (null);
-insert into t2 (b) values (null), (null), (null);
-set optimizer_switch='extended_keys=on';
-explain select a from t1 where b is null order by a desc limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index b PRIMARY 8 NULL 3 Using where
-select a from t1 where b is null order by a desc limit 2;
-a
-3
-2
-explain select a from t2 where b is null order by a desc limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range b b 9 NULL 3 Using where; Using filesort
-select a from t2 where b is null order by a desc limit 2;
-a
-3
-2
-set optimizer_switch='extended_keys=off';
-explain select a from t2 where b is null order by a desc limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range b b 9 NULL 3 Using where; Using filesort
-select a from t2 where b is null order by a desc limit 2;
-a
-3
-2
-explain select a from t2 where b is null order by a desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index b PRIMARY 8 NULL 3 Using where
-select a from t2 where b is null order by a desc;
-a
-3
-2
-1
-explain select a from t2 where b is null order by a desc,a,a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index b PRIMARY 8 NULL 3 Using where
-select a from t2 where b is null order by a desc,a,a;
-a
-3
-2
-1
-drop table t1, t2;
-set optimizer_switch=@save_optimizer_switch;
-#
-# MDEV-10325: Queries examines all rows of a tables when it should not
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (
-pk int not null,
-col1 varchar(32),
-filler varchar(100),
-key idx1(col1(10)),
-primary key (pk)
-)engine=innodb;
-insert into t1
-select
-A.a + 10*B.a + 100*C.a,
-concat('1234567890-', 1000+ A.a + 10*B.a + 100*C.a),
-repeat('filler-data-', 4)
-from
-t0 A, t0 B, t0 C;
-drop table t0,t1;
-#
-# MDEV-10360: Extended keys: index properties depend on index order
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (
-index_id bigint(20) unsigned NOT NULL,
-index_class varchar(265) COLLATE latin1_general_ci DEFAULT NULL ,
-index_object_id int(10) unsigned NOT NULL DEFAULT '0' ,
-index_date_updated int(10) unsigned DEFAULT NULL ,
-PRIMARY KEY (index_id),
-KEY object (index_class(181),index_object_id),
-KEY index_date_updated (index_date_updated)
-) engine=innodb;
-create table t2 (
-index_id bigint(20) unsigned NOT NULL,
-index_class varchar(265) COLLATE latin1_general_ci DEFAULT NULL ,
-index_object_id int(10) unsigned NOT NULL DEFAULT '0' ,
-index_date_updated int(10) unsigned DEFAULT NULL ,
-PRIMARY KEY (index_id),
-KEY index_date_updated (index_date_updated),
-KEY object (index_class(181),index_object_id)
-) engine=innodb;
-insert into t1 select
-@a:=A.a + 10*B.a + 100*C.a,
-concat('val-', @a),
-123456,
-A.a + 10*B.a
-from
-t0 A, t0 B, t0 C;
-insert into t2 select * from t1;
-# This must have the same query plan as the query below it:
-# type=range, key=index_date_updated, key_len=13
-explain
-select * from t1 force index(index_date_updated)
-where index_date_updated= 10 and index_id < 800;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range index_date_updated index_date_updated 13 NULL # Using index condition
-# This used to work from the start:
-explain
-select * from t2 force index(index_date_updated)
-where index_date_updated= 10 and index_id < 800;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range index_date_updated index_date_updated 13 NULL # Using index condition
-drop table t0,t1,t2;
-#
-# MDEV-11196: Error:Run-Time Check Failure #2 - Stack around the variable 'key_buff'
-# was corrupted, server crashes in opt_sum_query
-CREATE TABLE t1 (
-pk INT,
-f1 VARCHAR(3),
-f2 VARCHAR(1024),
-PRIMARY KEY (pk),
-KEY(f2)
-) ENGINE=InnoDB CHARSET utf8 ROW_FORMAT= DYNAMIC;
-INSERT INTO t1 VALUES (1,'foo','abc'),(2,'bar','def');
-SELECT MAX(t2.pk) FROM t1 t2 INNER JOIN t1 t3 ON t2.f1 = t3.f1 WHERE t2.pk <= 4;
-MAX(t2.pk)
-2
-drop table t1;
-CREATE TABLE t1 (
-pk1 INT,
-pk2 INT,
-f1 VARCHAR(3),
-f2 VARCHAR(1021),
-PRIMARY KEY (pk1,pk2),
-KEY(f2)
-) ENGINE=InnoDB CHARSET utf8 ROW_FORMAT= DYNAMIC;
-INSERT INTO t1 VALUES (1,2,'2','abc'),(2,3,'3','def');
-explain format= json
-select * from t1 force index(f2) where pk1 <= 5 and pk2 <=5 and f2 = 'abc' and f1 <= '3';
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["f2"],
- "key": "f2",
- "key_length": "3070",
- "used_key_parts": ["f2", "pk1"],
- "rows": 1,
- "filtered": 100,
- "index_condition": "t1.pk1 <= 5 and t1.pk2 <= 5 and t1.f2 = 'abc'",
- "attached_condition": "t1.f1 <= '3'"
- }
- }
-}
-drop table t1;
-CREATE TABLE t1 (
-f2 INT,
-pk2 INT,
-f1 VARCHAR(3),
-pk1 VARCHAR(1000),
-PRIMARY KEY (pk1,pk2),
-KEY k1(pk1,f2)
-) ENGINE=InnoDB CHARSET utf8 ROW_FORMAT= DYNAMIC;
-INSERT INTO t1 VALUES (1,2,'2','abc'),(2,3,'3','def');
-explain format= json
-select * from t1 force index(k1) where f2 <= 5 and pk2 <=5 and pk1 = 'abc' and f1 <= '3';
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["k1"],
- "key": "k1",
- "key_length": "3011",
- "used_key_parts": ["pk1", "f2", "pk2"],
- "rows": 1,
- "filtered": 100,
- "index_condition": "t1.f2 <= 5 and t1.pk2 <= 5 and t1.pk1 = 'abc'",
- "attached_condition": "t1.f1 <= '3'"
- }
- }
-}
-drop table t1;
diff --git a/mysql-test/r/innodb_group.result b/mysql-test/r/innodb_group.result
deleted file mode 100644
index 58bd75e0baf..00000000000
--- a/mysql-test/r/innodb_group.result
+++ /dev/null
@@ -1,13 +0,0 @@
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-10556 Assertion `0' failed in virtual void Item_sum_field::set_result_field(Field*)
-#
-CREATE TABLE t1 (i INT) ENGINE=InnoDB;
-SELECT DISTINCT STDDEV(1) FROM t1 GROUP BY i ORDER BY BENCHMARK(0, BIT_XOR(i));
-STDDEV(1)
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
diff --git a/mysql-test/r/innodb_icp.result b/mysql-test/r/innodb_icp.result
deleted file mode 100644
index 8a58a769ed9..00000000000
--- a/mysql-test/r/innodb_icp.result
+++ /dev/null
@@ -1,949 +0,0 @@
-set @save_storage_engine= @@storage_engine;
-set storage_engine=InnoDB;
-set @innodb_icp_tmp=@@optimizer_switch;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-#
-# Bug#36981 - "innodb crash when selecting for update"
-#
-CREATE TABLE t1 (
-c1 CHAR(1),
-c2 CHAR(10),
-KEY (c1)
-);
-INSERT INTO t1 VALUES ('3', null);
-SELECT * FROM t1 WHERE c1='3' FOR UPDATE;
-c1 c2
-3 NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 SELECT A.a + 10*(B.a + 10*C.a) FROM t1 A, t1 B, t1 C;
-CREATE TABLE t3 (
-c1 CHAR(10) NOT NULL,
-c2 CHAR(10) NOT NULL,
-c3 CHAR(200) NOT NULL,
-KEY (c1)
-);
-INSERT INTO t3
-SELECT CONCAT('c-',1000+t2.a,'=w'), CONCAT('c-',1000+ t2.a,'=w'), 'filler'
- FROM t2;
-INSERT INTO t3
-SELECT CONCAT('c-',1000+t2.a,'=w'), CONCAT('c-',2000+t2.a,'=w'), 'filler-1'
- FROM t2;
-INSERT INTO t3
-SELECT CONCAT('c-',1000+t2.a,'=w'), CONCAT('c-',3000+t2.a,'=w'), 'filler-2'
- FROM t2;
-SELECT c1,c3 FROM t3 WHERE c1 >= 'c-1994=w' and c1 != 'c-1996=w' FOR UPDATE;
-c1 c3
-c-1994=w filler
-c-1994=w filler-1
-c-1994=w filler-2
-c-1995=w filler
-c-1995=w filler-1
-c-1995=w filler-2
-c-1997=w filler
-c-1997=w filler-1
-c-1997=w filler-2
-c-1998=w filler
-c-1998=w filler-1
-c-1998=w filler-2
-c-1999=w filler
-c-1999=w filler-1
-c-1999=w filler-2
-DROP TABLE t1,t2,t3;
-#
-# Bug#42580 - Innodb's ORDER BY ..LIMIT returns no rows for
-# null-safe operator <=> NULL
-#
-CREATE TABLE t1(
-c1 DATE NOT NULL,
-c2 DATE NULL,
-c3 DATETIME,
-c4 TIMESTAMP,
-PRIMARY KEY(c1),
-UNIQUE(c2)
-);
-
-INSERT INTO t1 VALUES('0000-00-00', '0000-00-00', '2008-01-04', '2008-01-05');
-INSERT INTO t1 VALUES('2007-05-25', '2007-05-25', '2007-05-26', '2007-05-26');
-INSERT INTO t1 VALUES('2008-01-01', NULL , '2008-01-02', '2008-01-03');
-INSERT INTO t1 VALUES('2008-01-17', NULL , NULL , '2009-01-29');
-INSERT INTO t1 VALUES('2009-01-29', '2009-01-29', '2009-01-29', '2009-01-29');
-
-SELECT * FROM t1 WHERE c2 <=> NULL ORDER BY c1,c2;
-c1 c2 c3 c4
-2008-01-01 NULL 2008-01-02 00:00:00 2008-01-03 00:00:00
-2008-01-17 NULL NULL 2009-01-29 00:00:00
-
-SELECT * FROM t1 WHERE c2 <=> NULL ORDER BY c1,c2 LIMIT 2;
-c1 c2 c3 c4
-2008-01-01 NULL 2008-01-02 00:00:00 2008-01-03 00:00:00
-2008-01-17 NULL NULL 2009-01-29 00:00:00
-
-DROP TABLE t1;
-#
-# Bug#43617 - Innodb returns wrong results with timestamp's range value
-# in IN clause
-# (Note: Fixed by patch for BUG#42580)
-#
-CREATE TABLE t1(
-c1 TIMESTAMP NOT NULL,
-c2 TIMESTAMP NULL,
-c3 DATE,
-c4 DATETIME,
-PRIMARY KEY(c1),
-UNIQUE INDEX(c2)
-);
-INSERT INTO t1 VALUES
-('0000-00-00 00:00:00','0000-00-00 00:00:00','2008-01-04','2008-01-05 00:00:00'),
-('1971-01-01 00:00:01','1980-01-01 00:00:01','2009-01-01','2009-01-02 00:00:00'),
-('1999-01-01 00:00:00','1999-01-01 00:00:00', NULL, NULL),
-('2007-05-23 09:15:28','2007-05-23 09:15:28','2007-05-24','2007-05-24 09:15:28'),
-('2007-05-27 00:00:00','2007-05-25 00:00:00','2007-05-26','2007-05-26 00:00:00'),
-('2008-01-01 00:00:00', NULL, '2008-01-02','2008-01-03 00:00:00'),
-('2009-01-29 11:11:27','2009-01-29 11:11:27','2009-01-29','2009-01-29 11:11:27'),
-('2038-01-09 03:14:07','2038-01-09 03:14:07','2009-01-05','2009-01-06 00:00:00');
-
-SELECT *
-FROM t1
-WHERE c2 IN ('1971-01-01 00:00:01','2038-01-09 03:14:07')
-ORDER BY c2;
-c1 c2 c3 c4
-2038-01-09 03:14:07 2038-01-09 03:14:07 2009-01-05 2009-01-06 00:00:00
-
-SELECT *
-FROM t1
-WHERE c2 IN ('1971-01-01 00:00:01','2038-01-09 03:14:07')
-ORDER BY c2 LIMIT 2;
-c1 c2 c3 c4
-2038-01-09 03:14:07 2038-01-09 03:14:07 2009-01-05 2009-01-06 00:00:00
-
-SELECT *
-FROM t1
-WHERE c2 IN ('1971-01-01 00:00:01','2038-01-09 03:14:07')
-ORDER BY c2 DESC;
-c1 c2 c3 c4
-2038-01-09 03:14:07 2038-01-09 03:14:07 2009-01-05 2009-01-06 00:00:00
-
-SELECT *
-FROM t1
-WHERE c2 IN ('1971-01-01 00:00:01','2038-01-09 03:14:07')
-ORDER BY c2 DESC LIMIT 2;
-c1 c2 c3 c4
-2038-01-09 03:14:07 2038-01-09 03:14:07 2009-01-05 2009-01-06 00:00:00
-
-DROP TABLE t1;
-#
-# BUG#43618: MyISAM&Maria returns wrong results with 'between'
-# on timestamp
-#
-CREATE TABLE t1(
-ts TIMESTAMP NOT NULL,
-c char NULL,
-PRIMARY KEY(ts)
-);
-INSERT INTO t1 VALUES
-('1971-01-01','a'),
-('2007-05-25','b'),
-('2008-01-01','c'),
-('2038-01-09','d');
-
-# Execute select with invalid timestamp, desc ordering
-SELECT *
-FROM t1
-WHERE ts BETWEEN '0000-00-00' AND '2010-00-01 00:00:00'
-ORDER BY ts DESC
-LIMIT 2;
-ts c
-2008-01-01 00:00:00 c
-2007-05-25 00:00:00 b
-
-# Should use index condition
-EXPLAIN
-SELECT *
-FROM t1
-WHERE ts BETWEEN '0000-00-00' AND '2010-00-01 00:00:00'
-ORDER BY ts DESC
-LIMIT 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using where
-
-DROP TABLE t1;
-#
-# BUG#49906: Assertion failed - Field_varstring::val_str in field.cc
-# (Note: Fixed by patch for LP BUG#625841)
-#
-CREATE TABLE t1 (
-f1 VARCHAR(1024),
-f2 VARCHAR(10),
-INDEX test_idx USING BTREE (f2,f1(5))
-);
-INSERT INTO t1 VALUES ('a','c'), ('b','d');
-SELECT f1
-FROM t1
-WHERE f2 LIKE 'd'
-ORDER BY f1;
-f1
-b
-DROP TABLE t1;
-#
-# Bug#52660 - "Perf. regr. using ICP for MyISAM on range queries on
-# an index containing TEXT"
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 SELECT A.a + 10*(B.a) FROM t1 A, t1 B;
-CREATE TABLE t3 (
-c1 TINYTEXT NOT NULL,
-i1 INT NOT NULL,
-KEY (c1(6),i1)
-);
-INSERT INTO t3 SELECT CONCAT('c-',1000+t2.a,'=w'), 1 FROM t2;
-EXPLAIN
-SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 range c1 c1 8 NULL 3 Using where
-SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w';
-c1
-c-1004=w
-c-1005=w
-c-1006=w
-EXPLAIN
-SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w' and i1 > 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 range c1 c1 12 NULL 2 Using index condition; Using where
-SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w' and i1 > 2;
-c1
-EXPLAIN
-SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w' or i1 > 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL c1 NULL NULL NULL 100 Using where
-SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w' or i1 > 2;
-c1
-c-1004=w
-c-1005=w
-c-1006=w
-DROP TABLE t1, t2, t3;
-#
-# Bug#40992 - InnoDB: Crash when engine_condition_pushdown is on
-#
-CREATE TABLE t (
-dummy INT PRIMARY KEY,
-a INT UNIQUE,
-b INT
-);
-INSERT INTO t VALUES (1,1,1),(3,3,3),(5,5,5);
-SELECT * FROM t WHERE a > 2 FOR UPDATE;
-dummy a b
-3 3 3
-5 5 5
-DROP TABLE t;
-#
-# Bug#35080 - Innodb crash at mem_block_get_len line 72
-#
-CREATE TABLE t1 (
-t1_autoinc INT(11) NOT NULL AUTO_INCREMENT,
-uuid VARCHAR(36) DEFAULT NULL,
-PRIMARY KEY (t1_autoinc),
-KEY k (uuid)
-);
-CREATE TABLE t2 (
-t2_autoinc INT(11) NOT NULL AUTO_INCREMENT,
-uuid VARCHAR(36) DEFAULT NULL,
-date DATETIME DEFAULT NULL,
-PRIMARY KEY (t2_autoinc),
-KEY k (uuid)
-);
-CREATE VIEW v1 AS
-SELECT t1_autoinc, uuid
-FROM t1
-WHERE (ISNULL(uuid) OR (uuid like '%-%'));
-CREATE VIEW v2 AS
-SELECT t2_autoinc, uuid, date
-FROM t2
-WHERE (ISNULL(uuid) OR (LENGTH(uuid) = 36));
-CREATE PROCEDURE delete_multi (IN uuid CHAR(36))
-DELETE v1, v2 FROM v1 INNER JOIN v2
-ON v1.uuid = v2.uuid
-WHERE v1.uuid = @uuid;
-SET @uuid = UUID();
-INSERT INTO v1 (uuid) VALUES (@uuid);
-INSERT INTO v2 (uuid, date) VALUES (@uuid, '2009-09-09');
-CALL delete_multi(@uuid);
-DROP procedure delete_multi;
-DROP table t1,t2;
-DROP view v1,v2;
-#
-# Bug#41996 - multi-table delete crashes server (InnoDB table)
-#
-CREATE TABLE t1 (
-b BIGINT,
-i INT,
-KEY (b)
-);
-INSERT INTO t1 VALUES (2, 2);
-DELETE t1 FROM t1 a, t1 WHERE a.i=t1.b;
-DROP TABLE t1;
-#
-# Bug#43448 - Server crashes on multi table delete with Innodb
-#
-CREATE TABLE t1 (
-id1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-t CHAR(12)
-);
-CREATE TABLE t2 (
-id2 INT NOT NULL,
-t CHAR(12)
-);
-CREATE TABLE t3(
-id3 INT NOT NULL,
-t CHAR(12),
-INDEX(id3)
-);
-CREATE PROCEDURE insert_data ()
-BEGIN
-DECLARE i1 INT DEFAULT 20;
-DECLARE i2 INT;
-DECLARE i3 INT;
-WHILE (i1 > 0) DO
-INSERT INTO t1(t) VALUES (i1);
-SET i2 = 2;
-WHILE (i2 > 0) DO
-INSERT INTO t2(id2, t) VALUES (i1, i2);
-SET i3 = 2;
-WHILE (i3 > 0) DO
-INSERT INTO t3(id3, t) VALUES (i1, i2);
-SET i3 = i3 -1;
-END WHILE;
-SET i2 = i2 -1;
-END WHILE;
-SET i1 = i1 - 1;
-END WHILE;
-END |
-CALL insert_data();
-SELECT COUNT(*) FROM t1 WHERE id1 > 10;
-COUNT(*)
-10
-SELECT COUNT(*) FROM t2 WHERE id2 > 10;
-COUNT(*)
-20
-SELECT COUNT(*) FROM t3 WHERE id3 > 10;
-COUNT(*)
-40
-DELETE t1, t2, t3
-FROM t1, t2, t3
-WHERE t1.id1 = t2.id2 AND t2.id2 = t3.id3 AND t1.id1 > 3;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-3
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-6
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-12
-DROP PROCEDURE insert_data;
-DROP TABLE t1, t2, t3;
-#
-# Bug#57372 "Multi-table updates and deletes fail when running with ICP
-# against InnoDB"
-#
-CREATE TABLE t1 (
-a INT KEY,
-b INT
-);
-CREATE TABLE t2 (
-a INT KEY,
-b INT
-);
-INSERT INTO t1 VALUES (1, 101), (2, 102), (3, 103), (4, 104), (5, 105);
-INSERT INTO t2 VALUES (1, 1), (2, 2), (3, 3), (4, 4), (5, 5);
-UPDATE t1, t2
-SET t1.a = t1.a + 100, t2.b = t1.a + 10
-WHERE t1.a BETWEEN 2 AND 4 AND t2.a = t1.b - 100;
-SELECT * FROM t1;
-a b
-1 101
-102 102
-103 103
-104 104
-5 105
-SELECT * FROM t2;
-a b
-1 1
-2 12
-3 13
-4 14
-5 5
-DROP TABLE t1, t2;
-#
-# Bug#52605 - "Adding LIMIT 1 clause to query with complex range
-# predicate causes wrong results"
-#
-CREATE TABLE t1 (
-pk INT NOT NULL,
-c1 INT,
-PRIMARY KEY (pk),
-KEY k1 (c1)
-);
-INSERT INTO t1 VALUES (1,NULL);
-INSERT INTO t1 VALUES (2,6);
-INSERT INTO t1 VALUES (3,NULL);
-INSERT INTO t1 VALUES (4,6);
-INSERT INTO t1 VALUES (5,NULL);
-INSERT INTO t1 VALUES (6,NULL);
-INSERT INTO t1 VALUES (7,9);
-INSERT INTO t1 VALUES (8,0);
-SELECT pk, c1
-FROM t1
-WHERE (pk BETWEEN 4 AND 5 OR pk < 2) AND c1 < 240
-ORDER BY c1
-LIMIT 1;
-pk c1
-4 6
-EXPLAIN SELECT pk, c1
-FROM t1
-WHERE (pk BETWEEN 4 AND 5 OR pk < 2) AND c1 < 240
-ORDER BY c1
-LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,k1 k1 5 NULL 4 Using where; Using index
-DROP TABLE t1;
-#
-#
-# Bug#59259 "Incorrect rows returned for a correlated subquery
-# when ICP is on"
-#
-CREATE TABLE t1 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t1 VALUES (11,0);
-INSERT INTO t1 VALUES (12,5);
-INSERT INTO t1 VALUES (15,0);
-CREATE TABLE t2 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t2 VALUES (11,1);
-INSERT INTO t2 VALUES (12,2);
-INSERT INTO t2 VALUES (15,4);
-set @save_optimizer_switch= @@optimizer_switch;
-set optimizer_switch='semijoin=off';
-EXPLAIN
-SELECT * FROM t1
-WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON it.i=it.i WHERE it.pk-t1.i<10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-2 DEPENDENT SUBQUERY it eq_ref PRIMARY PRIMARY 4 func 1 Using where
-2 DEPENDENT SUBQUERY t2 index NULL PRIMARY 4 NULL 3 Using index; Using join buffer (flat, BNL join)
-SELECT * FROM t1
-WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON it.i=it.i WHERE it.pk-t1.i<10);
-pk i
-12 5
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1, t2;
-#
-# Bug #58816 "Extra temporary duplicate rows in result set when
-# switching ICP off"
-#
-set @save_optimizer_switch= @@optimizer_switch;
-CREATE TABLE t1 (
-pk INT NOT NULL,
-c1 INT NOT NULL,
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (1,9),(2,7),(3,6),(4,3),(5,1);
-EXPLAIN SELECT pk, c1 FROM t1 WHERE pk <> 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using where
-SET SESSION optimizer_switch='index_condition_pushdown=off';
-SELECT pk, c1 FROM t1 WHERE pk <> 3;
-pk c1
-1 9
-2 7
-4 3
-5 1
-DROP TABLE t1;
-set optimizer_switch= @save_optimizer_switch;
-#
-# Bug#58837: ICP crash or valgrind error due to uninitialized
-# value in innobase_index_cond
-#
-CREATE TABLE t1 (
-t1_int INT,
-t1_time TIME
-);
-CREATE TABLE t2 (
-t2_int int PRIMARY KEY,
-t2_int2 INT
-);
-INSERT IGNORE INTO t2 VALUES ();
-INSERT INTO t1 VALUES ();
-SELECT * FROM t1 AS t1a
-WHERE NOT EXISTS (SELECT * FROM t1 AS t1b
-WHERE t1b.t1_int NOT IN
-(SELECT t2.t2_int FROM t2
-WHERE t1b.t1_time LIKE t1b.t1_int
-OR t1b.t1_time <> t2.t2_int2
-AND 6=7));
-t1_int t1_time
-DROP TABLE t1,t2;
-#
-# Bug#59186: Wrong results of join when ICP is enabled
-# (fixed by the patch for LP bug #694092)
-#
-CREATE TABLE t1 (
-pk INTEGER NOT NULL,
-c1 VARCHAR(3) NOT NULL,
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (1,'y'),(0,'or');
-CREATE TABLE t2 (
-pk INTEGER NOT NULL,
-c1 VARCHAR(3) NOT NULL,
-c2 VARCHAR(6) NOT NULL,
-PRIMARY KEY (pk)
-);
-INSERT INTO t2 VALUES (6,'y','RPOYT'),(10,'m','JINQE');
-EXPLAIN
-SELECT c2 FROM t1 JOIN t2 ON t1.c1 = t2.c1
-WHERE (t2.pk <= 4 AND t1.pk IN (2,1)) OR
-(t1.pk > 1 AND t2.pk BETWEEN 6 AND 6);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 Using where
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 2 Using where; Using join buffer (flat, BNL join)
-SELECT c2 FROM t1 JOIN t2 ON t1.c1 = t2.c1
-WHERE (t2.pk <= 4 AND t1.pk IN (2,1)) OR
-(t1.pk > 1 AND t2.pk BETWEEN 6 AND 6);
-c2
-DROP TABLE t1, t2;
-#
-# Bug#58838: "Wrong results with HAVING + LIMIT without GROUP BY when
-# ICP is enabled".
-# (Fixed by the patches for LP bugs #668644, #702322)
-#
-CREATE TABLE t1 (
-pk INT NOT NULL,
-c1 INT,
-PRIMARY KEY (pk),
-KEY col_int_key (c1)
-);
-INSERT INTO t1 VALUES (1,37),(2,8),(3,-25),(4,NULL),(5,55);
-SELECT pk FROM t1 WHERE c1 <> 1 HAVING pk = 3 ORDER BY pk LIMIT 0;
-pk
-SELECT pk FROM t1 WHERE c1 <> 1 HAVING pk = 3 ORDER BY pk LIMIT 1;
-pk
-3
-SELECT pk FROM t1 WHERE c1 <> 1 HAVING pk = 3 ORDER BY pk LIMIT 2;
-pk
-3
-SELECT pk FROM t1 WHERE c1 <> 1 HAVING pk = 3 ORDER BY pk LIMIT 5;
-pk
-3
-DROP TABLE t1;
-#
-# Bug#59483 "Crash on INSERT/REPLACE in
-# rec_convert_dtuple_to_rec_comp with ICP on"
-#
-CREATE TABLE t1 (
-pk INTEGER AUTO_INCREMENT PRIMARY KEY,
-i1 INTEGER,
-c1 CHAR(6),
-i2 INTEGER NOT NULL,
-KEY (i2)
-);
-INSERT INTO t1 VALUES
-(NULL, 4, 'that', 8),
-(NULL, 1, 'she', 6),
-(NULL, 6, 'tell', 2);
-SELECT * FROM t1 WHERE i2 IN (3, 6) LIMIT 2 FOR UPDATE;
-pk i1 c1 i2
-2 1 she 6
-INSERT INTO t1 (i2) VALUES (1);
-DROP TABLE t1;
-#
-# Bug #11766678 - 59843:
-# USING UNINITIALISED VALUE IN USES_INDEX_FIELDS_ONLY
-#
-CREATE TABLE t1 (
-col999 FLOAT NOT NULL,
-COL1000 VARBINARY(179) NOT NULL,
-col1003 DATE DEFAULT NULL,
-KEY idx4267 (col1000, col1003)
-);
-INSERT IGNORE INTO t1 VALUES (),();
-Warnings:
-Warning 1364 Field 'col999' doesn't have a default value
-Warning 1364 Field 'COL1000' doesn't have a default value
-SELECT col999 FROM t1 WHERE col1000 = "3" AND col1003 <=> sysdate();
-col999
-DROP TABLE t1;
-#
-# BUG#12822678 - ICP WITH STRAIGHT_JOIN
-#
-CREATE TABLE t1 (
-i1 INTEGER NOT NULL,
-d1 DOUBLE,
-KEY k1 (d1)
-);
-INSERT INTO t1 VALUES (10,1), (17,NULL), (22,NULL);
-CREATE TABLE t2 (
-pk INTEGER NOT NULL,
-i1 INTEGER NOT NULL,
-PRIMARY KEY (pk)
-);
-INSERT INTO t2 VALUES (4,1);
-EXPLAIN
-SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1
-WHERE t2.pk <> t1.d1 AND t2.pk = 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL k1 9 NULL 3 Using index
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 Using where
-SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1
-WHERE t2.pk <> t1.d1 AND t2.pk = 4;
-d1 pk i1
-1 4 1
-EXPLAIN
-SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1
-WHERE t1.d1 <> t2.pk AND t2.pk = 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL k1 9 NULL 3 Using index
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 Using where
-SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1
-WHERE t1.d1 <> t2.pk AND t2.pk = 4;
-d1 pk i1
-1 4 1
-DROP TABLE t1, t2;
-#
-# BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
-#
-CREATE TABLE t1 ( f11 int) ;
-INSERT IGNORE INTO t1 VALUES (0);
-CREATE TABLE t2 ( f10 int) ;
-INSERT IGNORE INTO t2 VALUES (0);
-CREATE TABLE t3 ( f1 int NOT NULL , f10 int, PRIMARY KEY (f1)) ;
-INSERT IGNORE INTO t3 VALUES (6,0),(10,0);
-CREATE TABLE t4 ( f11 int) ;
-INSERT IGNORE INTO t4 VALUES
-(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(NULL),
-(0),(0),(0),(0),(0),(0),(0),(0),(0),(0);
-set @tmp_778434=@@optimizer_switch;
-SET optimizer_switch='materialization=off,in_to_exists=on,subquery_cache=off,semijoin=off';
-SELECT * FROM t1 INNER JOIN t2 ON t2.f10 = t1.f11
-WHERE (6, 234) IN (
-SELECT t3.f1, t3.f1
-FROM t3 JOIN t4 ON t4.f11 = t3.f10
-);
-f11 f10
-DROP TABLE t1,t2,t3,t4;
-set optimizer_switch= @tmp_778434;
-#
-# Bug#885168: ICP for one index + potential ORDER BY for another
-#
-CREATE TABLE t1 (a varchar(64), b varchar(10), INDEX(a), INDEX(b)) ;
-INSERT INTO t1 VALUES
-('Ohio','Iowa'), ('k','d'), ('bdkpj','mbdkpjdanp'), ('d','xdmbdkpjda'),
-('fkxdmbdkpjdanpje','o'), ('f','Pennsylvan'), ('Virginia','ei');
-SET SESSION optimizer_switch='index_condition_pushdown=off';
-EXPLAIN
-SELECT * FROM t1
-WHERE NOT(b = 'Texas') AND b BETWEEN 'wy' AND 'y' OR b = 'Pennsylvania'
- ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range b b 13 NULL 2 Using where; Rowid-ordered scan; Using filesort
-SELECT * FROM t1
-WHERE NOT(b = 'Texas') AND b BETWEEN 'wy' AND 'y' OR b = 'Pennsylvania'
- ORDER BY a;
-a b
-d xdmbdkpjda
-SET SESSION optimizer_switch='index_condition_pushdown=on';
-EXPLAIN
-SELECT * FROM t1
-WHERE NOT(b = 'Texas') AND b BETWEEN 'wy' AND 'y' OR b = 'Pennsylvania'
- ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range b b 13 NULL 2 Using index condition; Using where; Rowid-ordered scan; Using filesort
-SELECT * FROM t1
-WHERE NOT(b = 'Texas') AND b BETWEEN 'wy' AND 'y' OR b = 'Pennsylvania'
- ORDER BY a;
-a b
-d xdmbdkpjda
-DROP TABLE t1;
-#
-# Bug#886145: join with ICP + ORDER BY
-#
-CREATE TABLE t1 (b int NOT NULL, c int, a varchar(1024), PRIMARY KEY (b));
-INSERT INTO t1 VALUES (1,4,'Ill');
-CREATE TABLE t2 (a varchar(1024), KEY (a(512)));
-INSERT INTO t2 VALUES
-('Ill'), ('eckqzsflbzaffti'), ('w'), ('she'), ('gxbwypqtjzwywwer'), ('w');
-SET SESSION optimizer_switch='index_condition_pushdown=off';
-EXPLAIN
-SELECT t1.b, t1.c FROM t1, t2 WHERE t1.a = t2.a AND t1.b != 0
-HAVING t1.c != 5 ORDER BY t1.c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 2 Using where; Using filesort
-1 SIMPLE t2 ref a a 515 test.t1.a 1 Using where
-SELECT t1.b, t1.c FROM t1, t2 WHERE t1.a = t2.a AND t1.b != 0
-HAVING t1.c != 5 ORDER BY t1.c;
-b c
-1 4
-SET SESSION optimizer_switch='index_condition_pushdown=on';
-EXPLAIN
-SELECT t1.b, t1.c FROM t1, t2 WHERE t1.a = t2.a AND t1.b != 0
-HAVING t1.c != 5 ORDER BY t1.c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 2 Using where; Using filesort
-1 SIMPLE t2 ref a a 515 test.t1.a 1 Using where
-SELECT t1.b, t1.c FROM t1, t2 WHERE t1.a = t2.a AND t1.b != 0
-HAVING t1.c != 5 ORDER BY t1.c;
-b c
-1 4
-DROP TABLE t1,t2;
-#
-# Bug#879871: InnoDB: possible ICP + GROUP BY primary index
-#
-CREATE TABLE t1 (
-a int NOT NULL, b int, c varchar(1), d varchar(1),
-PRIMARY KEY (a), KEY c (c,b)
-);
-INSERT INTO t1 VALUES (10,8,'g','g');
-SET SESSION optimizer_switch='index_condition_pushdown=off';
-SELECT a FROM t1 WHERE c IS NULL AND d IS NOT NULL GROUP BY 1;
-a
-SET SESSION optimizer_switch='index_condition_pushdown=on';
-SELECT a FROM t1 WHERE c IS NULL AND d IS NOT NULL GROUP BY 1;
-a
-DROP TABLE t1;
-#
-# Bug#904832: an attempt to perform an index condition pushdown
-# of a condition containing a subquery
-#
-CREATE TABLE t1 (
-a INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
-b INT, c INT, d DATE NOT NULL, e VARCHAR(1),
-KEY (c), KEY (d), KEY k2(b), KEY k3(b), KEY k4(b)
-);
-Warnings:
-Note 1831 Duplicate index `k3`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `k4`. This is deprecated and will be disallowed in a future release
-INSERT INTO t1 (b,c,d,e) VALUES
-(6,5,'2006-05-25','y'),(1,5,'2008-01-23','t'),
-(6,5,'2007-06-18','d'),(4,5,'1900-01-01','r'),
-(8,5,'1900-01-01','m'),(4,5,'2006-03-09','b'),
-(4,5,'2001-06-05','x'),(1,5,'2008-01-23','t'),
-(6,5,'2007-06-18','d'),(4,5,'1900-01-01','r'),
-(8,5,'1900-01-01','m'),(4,5,'2006-03-09','b'),
-(4,5,'2001-06-05','x'),(1,5,'2008-01-23','t'),
-(4,5,'1900-01-01','r'),(8,5,'1900-01-01','m'),
-(4,5,'2006-03-09','b'),(4,5,'2001-06-05','x'),
-(1,5,'2008-01-23','t'),(6,5,'2007-06-18','d'),
-(4,5,'1900-01-01','r'),(8,5,'1900-01-01','m'),
-(4,5,'2006-03-09','b'),(4,5,'2001-06-05','f'),
-(4,5,'2001-06-05','x'),(8,5,'1900-01-01','m'),
-(4,5,'2006-03-09','b'),(4,5,'2001-06-05','x'),
-(1,5,'2008-01-23','t'),(6,5,'2007-06-18','d'),
-(4,5,'1900-01-01','r'),(8,5,'1900-01-01','m'),
-(4,5,'2006-03-09','b'),(6,5,'2007-06-18','d'),
-(6,5,'2007-06-18','d'),(4,5,'1900-01-01','r'),
-(8,5,'1900-01-01','m'),(4,5,'2006-03-09','b'),
-(6,5,'2007-06-18','d'),(4,5,'1900-01-01','r'),
-(8,5,'1900-01-01','m'),(4,5,'2006-03-09','b'),
-(4,5,'2006-03-09','b'),(4,5,'2001-06-05','x'),
-(1,5,'2008-01-23','t'),(6,5,'2007-06-18','d'),
-(4,5,'1900-01-01','r'),(8,5,'1900-01-01','m'),
-(4,5,'2006-03-09','b'),(4,5,'2001-06-05','x'),
-(4,5,'2001-06-05','x'),(1,5,'2008-01-23','t'),
-(6,5,'2007-06-18','d'),(4,5,'1900-01-01','r'),
-(8,5,'1900-01-01','m'),(4,5,'2006-03-09','b'),
-(4,5,'2001-06-05','x'),(1,5,'2008-01-23','t'),
-(6,5,'2007-06-18','d'),(4,1,'1900-01-01','r'),
-(8,8,'1900-01-01','m'),(4,1,'2006-03-09','b'),
-(4,1,'2001-06-05','x'),(7,1,'2006-05-28','g');
-CREATE TABLE t2 (
-f INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
-g INT,
-h VARCHAR(1),
-KEY (g)
-);
-INSERT INTO t2 (g,h) VALUES
-(3,'e'),(1,'u'),(4,'v'),(9,'u'),(6,'i'),(1,'x'),
-(5,'l'),(8,'y'),(0,'p'),(0,'f'),(0,'p'),(7,'d'),
-(7,'f'),(5,'j'),(3,'e'),(1,'u'),(4,'v'),(9,'u'),
-(6,'i'),(1,'x'),(5,'l'),(8,'y'),(0,'p'),(0,'f'),
-(0,'p'),(0,'f'),(0,'p'),(7,'d'),(7,'f'),(5,'j'),
-(3,'e'),(1,'u'),(4,'v'),(9,'u'),(6,'i'),(1,'x'),
-(7,'d'),(7,'f'),(5,'j'),(3,'e'),(1,'u'),(4,'v'),
-(9,'u'),(6,'i'),(1,'x'),(5,'l'),(8,'y'),(0,'p'),
-(0,'f'),(0,'p'),(7,'d'),(7,'f'),(5,'j'),(3,'e'),
-(1,'u'),(4,'v'),(9,'u'),(6,'i'),(1,'x'),(5,'l'),
-(6,'q'),(2,'n'),(4,'r'),(4,'b'),(8,'y'),(0,'p'),
-(0,'f'),(0,'p'),(7,'d'),(7,'f'),(5,'j'),(3,'e'),
-(1,'u'),(4,'v'),(9,'u'),(6,'i'),(1,'x'),(5,'l'),
-(8,'y'),(0,'p'),(0,'f'),(0,'p'),(7,'d'),(7,'f'),
-(5,'j'),(3,'e'),(1,'u'),(4,'v'),(9,'u'),(6,'i'),
-(1,'x'),(5,'l'),(8,'y'),(0,'p'),(0,'f'),(0,'p'),
-(0,'f'),(0,'p'),(7,'d'),(7,'f'),(5,'j'),(3,'e'),
-(1,'u'),(4,'v'),(9,'u'),(6,'i'),(1,'x'),(7,'d'),
-(7,'f'),(5,'j'),(3,'e'),(1,'u'),(0,'f'),(0,'p'),
-(7,'d'),(7,'f'),(5,'j'),(3,'e'),(1,'u'),(4,'v'),
-(9,'u'),(6,'i'),(1,'x'),(5,'l'),(8,'y'),(0,'p'),
-(0,'f'),(0,'p'),(0,'f'),(0,'p'),(7,'d'),(7,'f'),
-(5,'j'),(3,'e'),(1,'u'),(4,'v'),(9,'u'),(6,'i'),
-(1,'x'),(7,'d'),(7,'f'),(5,'j'),(3,'e'),(1,'u'),
-(4,'v'),(9,'u'),(6,'i'),(1,'x'),(5,'l'),(8,'y'),
-(0,'p'),(0,'f'),(0,'p'),(7,'d'),(7,'f'),(5,'j'),
-(3,'e'),(1,'u'),(4,'v'),(9,'u'),(6,'i'),(1,'x'),
-(5,'l'),(6,'q'),(2,'n'),(4,'r'),(4,'b'),(8,'y'),
-(0,'p'),(0,'f'),(0,'p'),(7,'d'),(7,'f'),(5,'j'),
-(3,'e'),(1,'u'),(4,'v'),(9,'u'),(6,'i'),(1,'x'),
-(7,'f'),(5,'j'),(3,'e'),(1,'u'),(4,'v'),(9,'u');
-SET @save_optimize_switch=@@optimizer_switch;
-SET optimizer_switch='materialization=on';
-EXPLAIN
-SELECT COUNT(*) FROM t1 AS t, t2
-WHERE c = g
-AND (EXISTS (SELECT * FROM t1, t2 WHERE a = f AND h <= t.e AND a > t.b)
-OR a = 0 AND h < 'z' );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t ALL PRIMARY,c NULL NULL NULL 64 Using where
-1 PRIMARY t2 ref g g 5 test.t.c 9 Using where
-2 DEPENDENT SUBQUERY t1 index PRIMARY d 3 NULL 64 Using where; Using index
-2 DEPENDENT SUBQUERY t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where
-SELECT COUNT(*) FROM t1 AS t, t2
-WHERE c = g
-AND (EXISTS (SELECT * FROM t1, t2 WHERE a = f AND h <= t.e AND a > t.b)
-OR a = 0 AND h < 'z' );
-COUNT(*)
-1478
-SELECT COUNT(*) FROM t1 AS t, t2
-WHERE c = g
-AND (EXISTS (SELECT * FROM t1, t2 WHERE a = f AND h <= t.e AND a > t.b)
-OR a = 0 AND h < 'z' );
-COUNT(*)
-1478
-SET optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t2;
-# check "Handler_pushed" status varuiables
-CREATE TABLE t1 (
-c1 CHAR(1),
-c2 CHAR(1),
-KEY (c1)
-);
-INSERT INTO t1 VALUES ('3', '3'),('4','4'),('5','5');
-flush status;
-show status like "Handler_icp%";
-Variable_name Value
-Handler_icp_attempts 0
-Handler_icp_match 0
-SELECT * FROM t1 FORCE INDEX(c1) WHERE (c1='3' or c1='4') and c1 % 2 = 0 ;
-c1 c2
-4 4
-show status like "Handler_icp%";
-Variable_name Value
-Handler_icp_attempts 2
-Handler_icp_match 1
-SELECT * FROM t1 WHERE (c2='3' or c2='4') and c2 % 2 = 0 ;
-c1 c2
-4 4
-show status like "Handler_icp%";
-Variable_name Value
-Handler_icp_attempts 2
-Handler_icp_match 1
-DROP TABLE t1;
-create table t1 (a int,b char(5),primary key (a), key (b(1)));
-insert ignore into t1 values ('a','b');
-Warnings:
-Warning 1366 Incorrect integer value: 'a' for column 'a' at row 1
-select 1 from t1 where a and b >= 'aa';
-1
-drop table t1;
-#
-# Bug#58015 "Assert in row_sel_field_store_in_mysql_format
-# when running innodb_mrr_icp test"
-#
-create table t1 (a char(2) charset utf8,b double, primary key (a(1)),key (b));
-insert into t1 values ('',1);
-select 1 from t1 where b <= 1 and a <> '';
-1
-drop table t1;
-#
-# MDEV-4778: Incorrect results from Aria/MyISAM SELECT using index with prefix length on TEXT column
-#
-CREATE TABLE t1 (
-c1 TEXT ,
-c2 VARCHAR(2) ,
-INDEX idx1 (c2,c1(2)),
-INDEX idx2 (c2,c1(1))
-);
-INSERT INTO t1 (c1,c2) VALUES ('aa','x'), ('a' ,'y');
-SELECT * FROM t1 IGNORE INDEX(idx1,idx2) WHERE (c1='aa' AND c2='x') OR (c1='a' AND c2='y');
-c1 c2
-aa x
-a y
-EXPLAIN
-SELECT * FROM t1 FORCE INDEX(idx1) WHERE (c1='aa' AND c2='x') OR (c1='a' AND c2='y');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx1 idx1 10 NULL 2 Using index condition; Using where
-SELECT * FROM t1 FORCE INDEX(idx1) WHERE (c1='aa' AND c2='x') OR (c1='a' AND c2='y');
-c1 c2
-aa x
-a y
-SELECT * FROM t1 FORCE INDEX(idx2) WHERE (c1='aa' AND c2='x') OR (c1='a' AND c2='y');
-c1 c2
-aa x
-a y
-DROP TABLE t1;
-#
-# BUG#920132: Assert trx->n_active_thrs == 1 failed at que0que.c line 1050
-#
-CREATE TABLE t1 ( a INT )
-ENGINE=InnoDB;
-INSERT INTO t1 VALUES (7),(7);
-CREATE TABLE t2 ( b VARCHAR(1) );
-INSERT INTO t2 VALUES ('j'),('v');
-CREATE TABLE t3 (
-c INT, d VARCHAR(1), e VARCHAR(1),
-KEY (d,c)
-) ENGINE=InnoDB;
-INSERT INTO t3
-VALUES (6,'w','w'),
-(1,'v','v'),(7,'s','s'),(4,'l','l'),
-(7,'y','y'),(0,'c','c'),(2,'i','i'),
-(9,'h','h'),(4,'q','q'),(0,'a','a'),
-(9,'v','v'),(1,'u','u'),(3,'s','s'),
-(8,'z','z'),(1,'h','h'),(8,'p','p'),
-(6,'e','e'),(3,'i','i'),(6,'y','y');
-SELECT *
-FROM t1 INNER JOIN t2 INNER JOIN t3
-ON d = b
-WHERE
-NOT EXISTS ( SELECT * FROM t3 )
-OR a = c
-ORDER BY e;
-a b c d e
-DROP TABLE t1,t2,t3;
-#
-# MDEV-5337: Wrong result in mariadb 5.5.32 with ORDER BY + LIMIT when index_condition_pushdown=on
-# MDEV-5512: Wrong result (WHERE clause ignored) with multiple clauses using Percona-XtraDB engine
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (pk int primary key,
-key1 char(32),
-key2 char(32),
-key(key1),
-key(key2)
-) engine=innodb;
-insert into t2 select
-A.a+10*B.a+100*C.a,
-concat('rare-', A.a+10*B.a),
-concat('rare-', A.a+10*B.a)
-from
-t1 A, t1 B, t1 C;
-update t2 set key1='frequent-val' where pk between 100 and 350;
-select * from t2 ignore key(PRIMARY)
-where key1='frequent-val' and key2 between 'rare-400' and 'rare-450' order by pk limit 2;
-pk key1 key2
-141 frequent-val rare-41
-142 frequent-val rare-42
-drop table t1, t2;
-set optimizer_switch=@innodb_icp_tmp;
-set storage_engine= @save_storage_engine;
diff --git a/mysql-test/r/innodb_ignore_builtin.result b/mysql-test/r/innodb_ignore_builtin.result
deleted file mode 100644
index e65cb3c7850..00000000000
--- a/mysql-test/r/innodb_ignore_builtin.result
+++ /dev/null
@@ -1,6 +0,0 @@
-show variables like 'ignore_builtin_innodb';
-Variable_name Value
-ignore_builtin_innodb ON
-select PLUGIN_NAME from information_schema.plugins
-where PLUGIN_NAME = "InnoDb" and PLUGIN_LIBRARY IS NULL;
-PLUGIN_NAME
diff --git a/mysql-test/r/innodb_load_xa.result b/mysql-test/r/innodb_load_xa.result
deleted file mode 100644
index 515c820b40c..00000000000
--- a/mysql-test/r/innodb_load_xa.result
+++ /dev/null
@@ -1,18 +0,0 @@
-install plugin innodb soname 'ha_innodb';
-Warnings:
-Warning 1105 Cannot enable tc-log at run-time. XA features of InnoDB are disabled
-select engine,support,transactions,xa from information_schema.engines where engine='innodb';
-engine support transactions xa
-InnoDB YES YES NO
-create table t1 (a int) engine=innodb;
-start transaction;
-insert t1 values (1);
-insert t1 values (2);
-commit;
-show status like 'Handler_prepare';
-Variable_name Value
-Handler_prepare 0
-drop table t1;
-uninstall plugin innodb;
-Warnings:
-Warning 1620 Plugin is busy and will be uninstalled on shutdown
diff --git a/mysql-test/r/innodb_mrr_cpk.result b/mysql-test/r/innodb_mrr_cpk.result
deleted file mode 100644
index 28d7dd51df8..00000000000
--- a/mysql-test/r/innodb_mrr_cpk.result
+++ /dev/null
@@ -1,238 +0,0 @@
-drop table if exists t0,t1,t2,t3;
-set @innodb_mrr_cpk_tmp=@@optimizer_switch;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set @save_join_cache_level=@@join_cache_level;
-set join_cache_level=6;
-set @save_storage_engine=@@storage_engine;
-set storage_engine=innodb;
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a char(8), b char(8), filler char(100), primary key(a));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(8) NOT NULL,
- `b` char(8) DEFAULT NULL,
- `filler` char(100) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-insert into t1 select
-concat('a-', 1000 + A.a + B.a*10 + C.a*100, '=A'),
-concat('b-', 1000 + A.a + B.a*10 + C.a*100, '=B'),
-'filler'
-from t0 A, t0 B, t0 C;
-create table t2 (a char(8));
-insert into t2 values ('a-1010=A'), ('a-1030=A'), ('a-1020=A');
-This should use join buffer:
-explain select * from t1, t2 where t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 8 test.t2.a 1 Using join buffer (flat, BKA join); Key-ordered scan
-This output must be sorted by value of t1.a:
-select * from t1, t2 where t1.a=t2.a;
-a b filler a
-a-1010=A b-1010=B filler a-1010=A
-a-1020=A b-1020=B filler a-1020=A
-a-1030=A b-1030=B filler a-1030=A
-drop table t1, t2;
-create table t1(
-a char(8) character set utf8, b int, filler char(100),
-primary key(a,b)
-);
-insert into t1 select
-concat('a-', 1000 + A.a + B.a*10 + C.a*100, '=A'),
-1000 + A.a + B.a*10 + C.a*100,
-'filler'
-from t0 A, t0 B, t0 C;
-create table t2 (a char(8) character set utf8, b int);
-insert into t2 values ('a-1010=A', 1010), ('a-1030=A', 1030), ('a-1020=A', 1020);
-explain select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 28 test.t2.a,test.t2.b 1 Using join buffer (flat, BKA join); Key-ordered scan
-select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
-a b filler a b
-a-1010=A 1010 filler a-1010=A 1010
-a-1020=A 1020 filler a-1020=A 1020
-a-1030=A 1030 filler a-1030=A 1030
-insert into t2 values ('a-1030=A', 1030), ('a-1020=A', 1020);
-explain select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 28 test.t2.a,test.t2.b 1 Using join buffer (flat, BKA join); Key-ordered scan
-select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
-a b filler a b
-a-1010=A 1010 filler a-1010=A 1010
-a-1020=A 1020 filler a-1020=A 1020
-a-1020=A 1020 filler a-1020=A 1020
-a-1030=A 1030 filler a-1030=A 1030
-a-1030=A 1030 filler a-1030=A 1030
-drop table t1, t2;
-create table t1(
-a varchar(8) character set utf8, b int, filler char(100),
-primary key(a,b)
-);
-insert into t1 select
-concat('a-', 1000 + A.a + B.a*10 + C.a*100, '=A'),
-1000 + A.a + B.a*10 + C.a*100,
-'filler'
-from t0 A, t0 B, t0 C;
-create table t2 (a char(8) character set utf8, b int);
-insert into t2 values ('a-1010=A', 1010), ('a-1030=A', 1030), ('a-1020=A', 1020);
-explain select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 30 test.t2.a,test.t2.b 1 Using where; Using join buffer (flat, BKA join); Key-ordered scan
-select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
-a b filler a b
-a-1010=A 1010 filler a-1010=A 1010
-a-1020=A 1020 filler a-1020=A 1020
-a-1030=A 1030 filler a-1030=A 1030
-explain select * from t1, t2 where t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 ref PRIMARY PRIMARY 26 test.t2.a 1 Using where; Using join buffer (flat, BKA join); Key-ordered scan
-select * from t1, t2 where t1.a=t2.a;
-a b filler a b
-a-1010=A 1010 filler a-1010=A 1010
-a-1020=A 1020 filler a-1020=A 1020
-a-1030=A 1030 filler a-1030=A 1030
-drop table t1, t2;
-create table t1 (a int, b int, c int, filler char(100), primary key(a,b,c));
-insert into t1 select A.a, B.a, C.a, 'filler' from t0 A, t0 B, t0 C;
-insert into t1 values (11, 11, 11, 'filler');
-insert into t1 values (11, 11, 12, 'filler');
-insert into t1 values (11, 11, 13, 'filler');
-insert into t1 values (11, 22, 1234, 'filler');
-insert into t1 values (11, 33, 124, 'filler');
-insert into t1 values (11, 33, 125, 'filler');
-create table t2 (a int, b int);
-insert into t2 values (11,33), (11,22), (11,11);
-explain select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 ref PRIMARY PRIMARY 8 test.t2.a,test.t2.b 1 Using join buffer (flat, BKA join); Key-ordered scan
-select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
-a b c filler a b
-11 11 11 filler 11 11
-11 11 12 filler 11 11
-11 11 13 filler 11 11
-11 22 1234 filler 11 22
-11 33 124 filler 11 33
-11 33 125 filler 11 33
-set join_cache_level=0;
-select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
-a b c filler a b
-11 33 124 filler 11 33
-11 33 125 filler 11 33
-11 22 1234 filler 11 22
-11 11 11 filler 11 11
-11 11 12 filler 11 11
-11 11 13 filler 11 11
-set join_cache_level=6;
-explain select * from t1, t2 where t1.a=t2.a and t2.b + t1.b > 100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 ref PRIMARY PRIMARY 4 test.t2.a 1 Using where; Using join buffer (flat, BKA join); Key-ordered scan
-select * from t1, t2 where t1.a=t2.a and t2.b + t1.b > 100;
-a b c filler a b
-set optimizer_switch='index_condition_pushdown=off';
-explain select * from t1, t2 where t1.a=t2.a and t2.b + t1.b > 100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 ref PRIMARY PRIMARY 4 test.t2.a 1 Using where; Using join buffer (flat, BKA join); Key-ordered scan
-select * from t1, t2 where t1.a=t2.a and t2.b + t1.b > 100;
-a b c filler a b
-set optimizer_switch='index_condition_pushdown=on';
-drop table t1,t2;
-drop table t0;
-#
-# MDEV-6878: Use of uninitialized saved_primary_key in Mrr_ordered_index_reader::resume_read()
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (
-pk varchar(32) character set utf8 primary key,
-kp1 char(32) not null,
-col1 varchar(32),
-key (kp1)
-) engine=innodb;
-insert into t1
-select
-concat('pk-', 1000 +A.a),
-concat('kp1-', 1000 +A.a),
-concat('val-', 1000 +A.a)
-from test.t0 A ;
-create table t2 as select kp1 as a from t1;
-set join_cache_level=8;
-set optimizer_switch='mrr=on,mrr_sort_keys=on';
-explain
-select * from t2 straight_join t1 force index(kp1) where t1.kp1=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 10
-1 SIMPLE t1 ref kp1 kp1 32 test.t2.a 1 Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-select * from t2 straight_join t1 force index(kp1) where t1.kp1=t2.a;
-a pk kp1 col1
-kp1-1000 pk-1000 kp1-1000 val-1000
-kp1-1001 pk-1001 kp1-1001 val-1001
-kp1-1002 pk-1002 kp1-1002 val-1002
-kp1-1003 pk-1003 kp1-1003 val-1003
-kp1-1004 pk-1004 kp1-1004 val-1004
-kp1-1005 pk-1005 kp1-1005 val-1005
-kp1-1006 pk-1006 kp1-1006 val-1006
-kp1-1007 pk-1007 kp1-1007 val-1007
-kp1-1008 pk-1008 kp1-1008 val-1008
-kp1-1009 pk-1009 kp1-1009 val-1009
-drop table t0,t1,t2;
-#
-#
-# MDEV-3817: Wrong result with index_merge+index_merge_intersection, InnoDB table, join, AND and OR conditions
-#
-set @tmp_mdev3817=@@optimizer_switch;
-SET optimizer_switch='index_merge=on,index_merge_intersection=on';
-CREATE TABLE t1 (
-a INT PRIMARY KEY,
-b INT,
-c VARCHAR(1024) CHARACTER SET utf8,
-d INT,
-KEY (b)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-(1, 9, 'one', 11), (2, 6, 'two', 12), (3, 2, 'three', 13), (4, 5, 'four', 14);
-CREATE TABLE t2 (e INT, g INT) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (1,9), (2,6) ;
-SELECT * FROM t1, t2 WHERE g = b AND ( a < 7 OR a > e );
-a b c d e g
-1 9 one 11 1 9
-2 6 two 12 2 6
-DROP TABLE t1, t2;
-set optimizer_switch=@tmp_mdev3817;
-#
-# MDEV-5037: Server crash on a JOIN on a derived table with join_cache_level > 2
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-CREATE TABLE t1 (
-id char(8) CHARACTER SET utf8 NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-CREATE TABLE t2 (
-id char(8) CHARACTER SET utf8 DEFAULT NULL,
-url text CHARACTER SET utf8
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-insert into t1 select '03b2ca8c' from t0 A, t0 B limit 80;
-insert into t2 select '03b2ca8c','' from t0 A, t0 B, t0 C;
-set @tmp_mdev5037=@@join_cache_level;
-set join_cache_level=3;
-explain SELECT 1 FROM (SELECT url, id FROM t2 LIMIT 1 OFFSET 20) derived RIGHT JOIN t1 ON t1.id = derived.id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL #
-1 PRIMARY <derived2> hash_ALL key0 #hash#key0 25 test.t1.id # Using join buffer (flat, BNLH join)
-2 DERIVED t2 ALL NULL NULL NULL NULL #
-set join_cache_level= @tmp_mdev5037;
-drop table t0,t1,t2;
-#
-# This must be at the end:
-#
-set @@join_cache_level= @save_join_cache_level;
-set storage_engine=@save_storage_engine;
-set optimizer_switch=@innodb_mrr_cpk_tmp;
diff --git a/mysql-test/r/innodb_mysql_lock.result b/mysql-test/r/innodb_mysql_lock.result
deleted file mode 100644
index 584ab19b2ee..00000000000
--- a/mysql-test/r/innodb_mysql_lock.result
+++ /dev/null
@@ -1,169 +0,0 @@
-set @old_innodb_lock_wait_timeout=@@global.innodb_lock_wait_timeout;
-set global innodb_lock_wait_timeout=300;
-set session innodb_lock_wait_timeout=300;
-call mtr.add_suppression("Deadlock found when trying to get lock; try restarting transaction");
-#
-# Bug #22876 Four-way deadlock
-#
-DROP TABLE IF EXISTS t1;
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connect con3,localhost,root,,;
-connection con1;
-set @@autocommit=0;
-CREATE TABLE t1(s1 INT UNIQUE) ENGINE=innodb;
-INSERT INTO t1 VALUES (1);
-connection con2;
-set @@autocommit=0;
-INSERT INTO t1 VALUES (2);
-INSERT INTO t1 VALUES (1);
-connection con3;
-set @@autocommit=0;
-DROP TABLE t1;
-connection con1;
-# Connection 1 is now holding the lock.
-# Issuing insert from connection 1 while connection 2&3
-# is waiting for the lock should give a deadlock error.
-INSERT INTO t1 VALUES (2);
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-# Cleanup
-connection con2;
-commit;
-set @@autocommit=1;
-connection con1;
-commit;
-set @@autocommit=1;
-connection con3;
-set @@autocommit=1;
-connection default;
-disconnect con1;
-disconnect con2;
-disconnect con3;
-#
-# Test for bug #37346 "innodb does not detect deadlock between update
-# and alter table".
-#
-drop table if exists t1;
-create table t1 (c1 int primary key, c2 int, c3 int) engine=InnoDB;
-insert into t1 values (1,1,0),(2,2,0),(3,3,0),(4,4,0),(5,5,0);
-begin;
-# Run statement which acquires X-lock on one of table's rows.
-update t1 set c3=c3+1 where c2=3;
-#
-connect con37346,localhost,root,,test,,;
-connection con37346;
-# The below ALTER TABLE statement should wait till transaction
-# in connection 'default' is complete and then succeed.
-# It should not deadlock or fail with ER_LOCK_DEADLOCK error.
-# Sending:
-alter table t1 add column c4 int;;
-#
-connection default;
-# Wait until the above ALTER TABLE gets blocked because this
-# connection holds SW metadata lock on table to be altered.
-# The below statement should succeed. It should not
-# deadlock or end with ER_LOCK_DEADLOCK error.
-update t1 set c3=c3+1 where c2=4;
-# Unblock ALTER TABLE by committing transaction.
-commit;
-#
-connection con37346;
-# Reaping ALTER TABLE.
-#
-connection default;
-disconnect con37346;
-drop table t1;
-#
-# Bug#53798 OPTIMIZE TABLE breaks repeatable read
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT) engine=innodb;
-INSERT INTO t1 VALUES (1), (2), (3);
-connect con1, localhost, root;
-START TRANSACTION WITH CONSISTENT SNAPSHOT;
-SELECT * FROM t1;
-a
-1
-2
-3
-connection default;
-# This should block
-# Sending:
-OPTIMIZE TABLE t1;
-connection con1;
-SELECT * FROM t1;
-a
-1
-2
-3
-COMMIT;
-connection default;
-# Reaping OPTIMIZE TABLE t1
-Table Op Msg_type Msg_text
-test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
-test.t1 optimize status OK
-disconnect con1;
-DROP TABLE t1;
-#
-# Bug#49891 View DDL breaks REPEATABLE READ
-#
-DROP TABLE IF EXISTS t1, t2;
-DROP VIEW IF EXISTS v2;
-CREATE TABLE t1 ( f1 INTEGER ) ENGINE = innodb;
-CREATE TABLE t2 ( f1 INTEGER );
-CREATE VIEW v1 AS SELECT 1 FROM t1;
-connect con2, localhost, root;
-connect con3, localhost, root;
-connection con3;
-LOCK TABLE t1 WRITE;
-connection default;
-START TRANSACTION;
-# Sending:
-SELECT * FROM v1;
-connection con2;
-# Waiting for 'SELECT * FROM v1' to sync in.
-# Sending:
-ALTER VIEW v1 AS SELECT 2 FROM t2;
-connection con3;
-# Waiting for 'ALTER VIEW v1 AS SELECT 2 FROM t2' to sync in.
-UNLOCK TABLES;
-connection default;
-# Reaping: SELECT * FROM v1
-1
-SELECT * FROM v1;
-1
-COMMIT;
-connection con2;
-# Reaping: ALTER VIEW v1 AS SELECT 2 FROM t2
-connection default;
-DROP TABLE t1, t2;
-DROP VIEW v1;
-disconnect con2;
-disconnect con3;
-#
-# Bug#11815600 [ERROR] INNODB COULD NOT FIND INDEX PRIMARY
-# KEY NO 0 FOR TABLE IN ERROR LOG
-#
-DROP TABLE IF EXISTS t1;
-connect con1,localhost,root;
-connection default;
-CREATE TABLE t1 (id INT PRIMARY KEY, value INT) ENGINE = InnoDB;
-INSERT INTO t1 VALUES (1, 12345);
-START TRANSACTION;
-SELECT * FROM t1;
-id value
-1 12345
-connection con1;
-SET lock_wait_timeout=1;
-ALTER TABLE t1 ADD INDEX idx(value);
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-ALTER TABLE t1 ADD INDEX idx(value);
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection default;
-SELECT * FROM t1;
-id value
-1 12345
-COMMIT;
-DROP TABLE t1;
-disconnect con1;
-set global innodb_lock_wait_timeout=@old_innodb_lock_wait_timeout;
diff --git a/mysql-test/r/innodb_mysql_lock2.result b/mysql-test/r/innodb_mysql_lock2.result
deleted file mode 100644
index df97b32a41c..00000000000
--- a/mysql-test/r/innodb_mysql_lock2.result
+++ /dev/null
@@ -1,703 +0,0 @@
-#
-# Test how do we handle locking in various cases when
-# we read data from InnoDB tables.
-#
-# In fact by performing this test we check two things:
-# 1) That SQL-layer correctly determine type of thr_lock.c
-# lock to be acquired/passed to InnoDB engine.
-# 2) That InnoDB engine correctly interprets this lock
-# type and takes necessary row locks or does not
-# take them if they are not necessary.
-#
-# This test makes sense only in REPEATABLE-READ mode as
-# in SERIALIZABLE mode all statements that read data take
-# shared lock on them to enforce its semantics.
-select @@session.tx_isolation;
-@@session.tx_isolation
-REPEATABLE-READ
-# Prepare playground by creating tables, views,
-# routines and triggers used in tests.
-connect con1, localhost, root,,;
-connection default;
-drop table if exists t0, t1, t2, t3, t4, t5;
-drop view if exists v1, v2;
-drop procedure if exists p1;
-drop procedure if exists p2;
-drop function if exists f1;
-drop function if exists f2;
-drop function if exists f3;
-drop function if exists f4;
-drop function if exists f5;
-drop function if exists f6;
-drop function if exists f7;
-drop function if exists f8;
-drop function if exists f9;
-drop function if exists f10;
-drop function if exists f11;
-drop function if exists f12;
-drop function if exists f13;
-drop function if exists f14;
-drop function if exists f15;
-create table t1 (i int primary key) engine=innodb;
-insert into t1 values (1), (2), (3), (4), (5);
-create table t2 (j int primary key) engine=innodb;
-insert into t2 values (1), (2), (3), (4), (5);
-create table t3 (k int primary key) engine=innodb;
-insert into t3 values (1), (2), (3);
-create table t4 (l int primary key) engine=innodb;
-insert into t4 values (1);
-create table t5 (l int primary key) engine=innodb;
-insert into t5 values (1);
-create view v1 as select i from t1;
-create view v2 as select j from t2 where j in (select i from t1);
-create procedure p1(k int) insert into t2 values (k);
-create function f1() returns int
-begin
-declare j int;
-select i from t1 where i = 1 into j;
-return j;
-end|
-create function f2() returns int
-begin
-declare k int;
-select i from t1 where i = 1 into k;
-insert into t2 values (k + 5);
-return 0;
-end|
-create function f3() returns int
-begin
-return (select i from t1 where i = 3);
-end|
-create function f4() returns int
-begin
-if (select i from t1 where i = 3) then
-return 1;
-else
-return 0;
-end if;
-end|
-create function f5() returns int
-begin
-insert into t2 values ((select i from t1 where i = 1) + 5);
-return 0;
-end|
-create function f6() returns int
-begin
-declare k int;
-select i from v1 where i = 1 into k;
-return k;
-end|
-create function f7() returns int
-begin
-declare k int;
-select j from v2 where j = 1 into k;
-return k;
-end|
-create function f8() returns int
-begin
-declare k int;
-select i from v1 where i = 1 into k;
-insert into t2 values (k+5);
-return k;
-end|
-create function f9() returns int
-begin
-update v2 set j=j+10 where j=1;
-return 1;
-end|
-create function f10() returns int
-begin
-return f1();
-end|
-create function f11() returns int
-begin
-declare k int;
-set k= f1();
-insert into t2 values (k+5);
-return k;
-end|
-create function f12(p int) returns int
-begin
-insert into t2 values (p);
-return p;
-end|
-create function f13(p int) returns int
-begin
-return p;
-end|
-create procedure p2(inout p int)
-begin
-select i from t1 where i = 1 into p;
-end|
-create function f14() returns int
-begin
-declare k int;
-call p2(k);
-insert into t2 values (k+5);
-return k;
-end|
-create function f15() returns int
-begin
-declare k int;
-call p2(k);
-return k;
-end|
-create trigger t4_bi before insert on t4 for each row
-begin
-declare k int;
-select i from t1 where i=1 into k;
-set new.l= k+1;
-end|
-create trigger t4_bu before update on t4 for each row
-begin
-if (select i from t1 where i=1) then
-set new.l= 2;
-end if;
-end|
-create trigger t4_bd before delete on t4 for each row
-begin
-if !(select i from v1 where i=1) then
-signal sqlstate '45000';
-end if;
-end|
-create trigger t5_bi before insert on t5 for each row
-begin
-set new.l= f1()+1;
-end|
-create trigger t5_bu before update on t5 for each row
-begin
-declare j int;
-call p2(j);
-set new.l= j + 1;
-end|
-#
-# Set common variables to be used by scripts called below.
-#
-#
-# 1. Statements that read tables and do not use subqueries.
-#
-#
-# 1.1 Simple SELECT statement.
-#
-# No locks are necessary as this statement won't be written
-# to the binary log and InnoDB supports snapshots.
-connection default;
-Success: 'select * from t1' doesn't take row locks on 't1'.
-#
-# 1.2 Multi-UPDATE statement.
-#
-# Has to take shared locks on rows in the table being read as this
-# statement will be written to the binary log and therefore should
-# be serialized with concurrent statements.
-connection default;
-Success: 'update t2, t1 set j= j - 1 where i = j' takes shared row locks on 't1'.
-#
-# 1.3 Multi-DELETE statement.
-#
-# The above is true for this statement as well.
-connection default;
-Success: 'delete t2 from t1, t2 where i = j' takes shared row locks on 't1'.
-#
-# 1.4 DESCRIBE statement.
-#
-# This statement does not really read data from the
-# target table and thus does not take any lock on it.
-# We check this for completeness of coverage.
-connection default;
-Success: 'describe t1' doesn't take row locks on 't1'.
-#
-# 1.5 SHOW statements.
-#
-# The above is true for SHOW statements as well.
-connection default;
-Success: 'show create table t1' doesn't take row locks on 't1'.
-connection default;
-Success: 'show keys from t1' doesn't take row locks on 't1'.
-#
-# 2. Statements which read tables through subqueries.
-#
-#
-# 2.1 CALL with a subquery.
-#
-# A strong lock is not necessary as this statement is not
-# written to the binary log as a whole (it is written
-# statement-by-statement) and thanks to MVCC we can always get
-# versions of rows prior to the update that has locked them.
-# But in practice InnoDB does locking reads for all statements
-# other than SELECT (unless it is a READ-COMITTED mode or
-# innodb_locks_unsafe_for_binlog is ON).
-connection default;
-Success: 'call p1((select i + 5 from t1 where i = 1))' takes shared row locks on 't1'.
-#
-# 2.2 CREATE TABLE with a subquery.
-#
-# Has to take shared locks on rows in the table being read as
-# this statement is written to the binary log and therefore
-# should be serialized with concurrent statements.
-connection default;
-Success: 'create table t0 engine=innodb select * from t1' takes shared row locks on 't1'.
-drop table t0;
-connection default;
-Success: 'create table t0 engine=innodb select j from t2 where j in (select i from t1)' takes shared row locks on 't1'.
-drop table t0;
-#
-# 2.3 DELETE with a subquery.
-#
-# The above is true for this statement as well.
-connection default;
-Success: 'delete from t2 where j in (select i from t1)' takes shared row locks on 't1'.
-#
-# 2.4 MULTI-DELETE with a subquery.
-#
-# Same is true for this statement as well.
-connection default;
-Success: 'delete t2 from t3, t2 where k = j and j in (select i from t1)' takes shared row locks on 't1'.
-#
-# 2.5 DO with a subquery.
-#
-# In theory should not take row locks as it is not logged.
-# In practice InnoDB takes shared row locks.
-connection default;
-Success: 'do (select i from t1 where i = 1)' takes shared row locks on 't1'.
-#
-# 2.6 INSERT with a subquery.
-#
-# Has to take shared locks on rows in the table being read as
-# this statement is written to the binary log and therefore
-# should be serialized with concurrent statements.
-connection default;
-Success: 'insert into t2 select i+5 from t1' takes shared row locks on 't1'.
-connection default;
-Success: 'insert into t2 values ((select i+5 from t1 where i = 4))' takes shared row locks on 't1'.
-#
-# 2.7 LOAD DATA with a subquery.
-#
-# The above is true for this statement as well.
-connection default;
-Success: 'load data infile '../../std_data/rpl_loaddata.dat' into table t2 (@a, @b) set j= @b + (select i from t1 where i = 1)' takes shared row locks on 't1'.
-#
-# 2.8 REPLACE with a subquery.
-#
-# Same is true for this statement as well.
-connection default;
-Success: 'replace into t2 select i+5 from t1' takes shared row locks on 't1'.
-connection default;
-Success: 'replace into t2 values ((select i+5 from t1 where i = 4))' takes shared row locks on 't1'.
-#
-# 2.9 SELECT with a subquery.
-#
-# Locks are not necessary as this statement is not written
-# to the binary log and thanks to MVCC we can always get
-# versions of rows prior to the update that has locked them.
-#
-# Also serves as a test case for bug #46947 "Embedded SELECT
-# without FOR UPDATE is causing a lock".
-connection default;
-Success: 'select * from t2 where j in (select i from t1)' doesn't take row locks on 't1'.
-#
-# 2.10 SET with a subquery.
-#
-# In theory should not require locking as it is not written
-# to the binary log. In practice InnoDB acquires shared row
-# locks.
-connection default;
-Success: 'set @a:= (select i from t1 where i = 1)' takes shared row locks on 't1'.
-#
-# 2.11 SHOW with a subquery.
-#
-# Similarly to the previous case, in theory should not require locking
-# as it is not written to the binary log. In practice InnoDB
-# acquires shared row locks.
-connection default;
-Success: 'show tables from test where Tables_in_test = 't2' and (select i from t1 where i = 1)' takes shared row locks on 't1'.
-connection default;
-Success: 'show columns from t2 where (select i from t1 where i = 1)' takes shared row locks on 't1'.
-#
-# 2.12 UPDATE with a subquery.
-#
-# Has to take shared locks on rows in the table being read as
-# this statement is written to the binary log and therefore
-# should be serialized with concurrent statements.
-connection default;
-Success: 'update t2 set j= j-10 where j in (select i from t1)' takes shared row locks on 't1'.
-#
-# 2.13 MULTI-UPDATE with a subquery.
-#
-# Same is true for this statement as well.
-connection default;
-Success: 'update t2, t3 set j= j -10 where j=k and j in (select i from t1)' takes shared row locks on 't1'.
-#
-# 3. Statements which read tables through a view.
-#
-#
-# 3.1 SELECT statement which uses some table through a view.
-#
-# Since this statement is not written to the binary log
-# and old version of rows are accessible thanks to MVCC,
-# no locking is necessary.
-connection default;
-Success: 'select * from v1' doesn't take row locks on 't1'.
-connection default;
-Success: 'select * from v2' doesn't take row locks on 't1'.
-connection default;
-Success: 'select * from t2 where j in (select i from v1)' doesn't take row locks on 't1'.
-connection default;
-Success: 'select * from t3 where k in (select j from v2)' doesn't take row locks on 't1'.
-#
-# 3.2 Statements which modify a table and use views.
-#
-# Since such statements are going to be written to the binary
-# log they need to be serialized against concurrent statements
-# and therefore should take shared row locks on data read.
-connection default;
-Success: 'update t2 set j= j-10 where j in (select i from v1)' takes shared row locks on 't1'.
-connection default;
-Success: 'update t3 set k= k-10 where k in (select j from v2)' takes shared row locks on 't1'.
-connection default;
-Success: 'update t2, v1 set j= j-10 where j = i' takes shared row locks on 't1'.
-connection default;
-Success: 'update v2 set j= j-10 where j = 3' takes shared row locks on 't1'.
-#
-# 4. Statements which read tables through stored functions.
-#
-#
-# 4.1 SELECT/SET with a stored function which does not
-# modify data and uses SELECT in its turn.
-#
-# There is no need to take row locks on the table
-# being selected from in SF as the call to such function
-# won't get into the binary log.
-#
-# However in practice innodb takes strong lock on tables
-# being selected from within SF, when SF is called from
-# non SELECT statements like 'set' statement below.
-connection default;
-Success: 'select f1()' doesn't take row locks on 't1'.
-connection default;
-Success: 'set @a:= f1()' takes shared row locks on 't1'.
-#
-# 4.2 INSERT (or other statement which modifies data) with
-# a stored function which does not modify data and uses
-# SELECT.
-#
-# Since such statement is written to the binary log it should
-# be serialized with concurrent statements affecting the data
-# it uses. Therefore it should take row locks on the data
-# it reads.
-connection default;
-Success: 'insert into t2 values (f1() + 5)' takes shared row locks on 't1'.
-#
-# 4.3 SELECT/SET with a stored function which
-# reads and modifies data.
-#
-# Since a call to such function is written to the binary log,
-# it should be serialized with concurrent statements affecting
-# the data it uses. Hence, row locks on the data read
-# should be taken.
-connection default;
-Success: 'select f2()' takes shared row locks on 't1'.
-connection default;
-Success: 'set @a:= f2()' takes shared row locks on 't1'.
-#
-# 4.4. SELECT/SET with a stored function which does not
-# modify data and reads a table through subselect
-# in a control construct.
-#
-# Call to this function won't get to the
-# binary log and thus no locking is needed.
-#
-# However in practice innodb takes strong lock on tables
-# being selected from within SF, when SF is called from
-# non SELECT statements like 'set' statement below.
-connection default;
-Success: 'select f3()' doesn't take row locks on 't1'.
-connection default;
-Success: 'set @a:= f3()' takes shared row locks on 't1'.
-connection default;
-Success: 'select f4()' doesn't take row locks on 't1'.
-connection default;
-Success: 'set @a:= f4()' takes shared row locks on 't1'.
-#
-# 4.5. INSERT (or other statement which modifies data) with
-# a stored function which does not modify data and reads
-# the table through a subselect in one of its control
-# constructs.
-#
-# Since such statement is written to the binary log it should
-# be serialized with concurrent statements affecting data it
-# uses. Therefore it should take row locks on the data
-# it reads.
-connection default;
-Success: 'insert into t2 values (f3() + 5)' takes shared row locks on 't1'.
-connection default;
-Success: 'insert into t2 values (f4() + 6)' takes shared row locks on 't1'.
-#
-# 4.6 SELECT/SET which uses a stored function with
-# DML which reads a table via a subquery.
-#
-# Since call to such function is written to the binary log
-# it should be serialized with concurrent statements.
-# Hence reads should take row locks.
-connection default;
-Success: 'select f5()' takes shared row locks on 't1'.
-connection default;
-Success: 'set @a:= f5()' takes shared row locks on 't1'.
-#
-# 4.7 SELECT/SET which uses a stored function which
-# doesn't modify data and reads tables through
-# a view.
-#
-# Calls to such functions won't get into
-# the binary log and thus don't need row locks.
-#
-# However in practice innodb takes strong lock on tables
-# being selected from within SF, when SF is called from
-# non SELECT statements like 'set' statement below.
-connection default;
-Success: 'select f6()' doesn't take row locks on 't1'.
-connection default;
-Success: 'set @a:= f6()' takes shared row locks on 't1'.
-connection default;
-Success: 'select f7()' doesn't take row locks on 't1'.
-connection default;
-Success: 'set @a:= f7()' takes shared row locks on 't1'.
-#
-# 4.8 INSERT which uses stored function which
-# doesn't modify data and reads a table
-# through a view.
-#
-# Since such statement is written to the binary log and
-# should be serialized with concurrent statements affecting
-# the data it uses. Therefore it should take row locks on
-# the rows it reads.
-connection default;
-Success: 'insert into t3 values (f6() + 5)' takes shared row locks on 't1'.
-connection default;
-Success: 'insert into t3 values (f7() + 5)' takes shared row locks on 't1'.
-#
-# 4.9 SELECT which uses a stored function which
-# modifies data and reads tables through a view.
-#
-# Since a call to such function is written to the binary log
-# it should be serialized with concurrent statements.
-# Hence, reads should take row locks.
-connection default;
-Success: 'select f8()' takes shared row locks on 't1'.
-connection default;
-Success: 'select f9()' takes shared row locks on 't1'.
-#
-# 4.10 SELECT which uses stored function which doesn't modify
-# data and reads a table indirectly, by calling another
-# function.
-#
-# Calls to such functions won't get into the binary
-# log and thus don't need to acquire row locks.
-connection default;
-Success: 'select f10()' doesn't take row locks on 't1'.
-#
-# 4.11 INSERT which uses a stored function which doesn't modify
-# data and reads a table indirectly, by calling another
-# function.
-#
-# Since such statement is written to the binary log, it should
-# be serialized with concurrent statements affecting the data it
-# uses. Therefore it should take row locks on data it reads.
-connection default;
-Success: 'insert into t2 values (f10() + 5)' takes shared row locks on 't1'.
-#
-# 4.12 SELECT which uses a stored function which modifies
-# data and reads a table indirectly, by calling another
-# function.
-#
-# Since a call to such function is written to the binary log
-# it should be serialized from concurrent statements.
-# Hence, reads should take row locks.
-connection default;
-Success: 'select f11()' takes shared row locks on 't1'.
-#
-# 4.13 SELECT that reads a table through a subquery passed
-# as a parameter to a stored function which modifies
-# data.
-#
-# Even though a call to this function is written to the
-# binary log, values of its parameters are written as literals.
-# So there is no need to acquire row locks on rows used in
-# the subquery.
-connection default;
-Success: 'select f12((select i+10 from t1 where i=1))' doesn't take row locks on 't1'.
-#
-# 4.14 INSERT that reads a table via a subquery passed
-# as a parameter to a stored function which doesn't
-# modify data.
-#
-# Since this statement is written to the binary log it should
-# be serialized with concurrent statements affecting the data it
-# uses. Therefore it should take row locks on the data it reads.
-connection default;
-Success: 'insert into t2 values (f13((select i+10 from t1 where i=1)))' takes shared row locks on 't1'.
-#
-# 5. Statements that read tables through stored procedures.
-#
-#
-# 5.1 CALL statement which reads a table via SELECT.
-#
-# Since neither this statement nor its components are
-# written to the binary log, there is no need to take
-# row locks on the data it reads.
-connection default;
-Success: 'call p2(@a)' doesn't take row locks on 't1'.
-#
-# 5.2 Function that modifies data and uses CALL,
-# which reads a table through SELECT.
-#
-# Since a call to such function is written to the binary
-# log, it should be serialized with concurrent statements.
-# Hence, in this case reads should take row locks on data.
-connection default;
-Success: 'select f14()' takes shared row locks on 't1'.
-#
-# 5.3 SELECT that calls a function that doesn't modify data and
-# uses a CALL statement that reads a table via SELECT.
-#
-# Calls to such functions won't get into the binary
-# log and thus don't need to acquire row locks.
-connection default;
-Success: 'select f15()' doesn't take row locks on 't1'.
-#
-# 5.4 INSERT which calls function which doesn't modify data and
-# uses CALL statement which reads table through SELECT.
-#
-# Since such statement is written to the binary log it should
-# be serialized with concurrent statements affecting data it
-# uses. Therefore it should take row locks on data it reads.
-connection default;
-Success: 'insert into t2 values (f15()+5)' takes shared row locks on 't1'.
-#
-# 6. Statements that use triggers.
-#
-#
-# 6.1 Statement invoking a trigger that reads table via SELECT.
-#
-# Since this statement is written to the binary log it should
-# be serialized with concurrent statements affecting the data
-# it uses. Therefore, it should take row locks on the data
-# it reads.
-connection default;
-Success: 'insert into t4 values (2)' takes shared row locks on 't1'.
-#
-# 6.2 Statement invoking a trigger that reads table through
-# a subquery in a control construct.
-#
-# The above is true for this statement as well.
-connection default;
-Success: 'update t4 set l= 2 where l = 1' takes shared row locks on 't1'.
-#
-# 6.3 Statement invoking a trigger that reads a table through
-# a view.
-#
-# And for this statement.
-connection default;
-Success: 'delete from t4 where l = 1' takes shared row locks on 't1'.
-#
-# 6.4 Statement invoking a trigger that reads a table through
-# a stored function.
-#
-# And for this statement.
-connection default;
-Success: 'insert into t5 values (2)' takes shared row locks on 't1'.
-#
-# 6.5 Statement invoking a trigger that reads a table through
-# stored procedure.
-#
-# And for this statement.
-connection default;
-Success: 'update t5 set l= 2 where l = 1' takes shared row locks on 't1'.
-# Clean-up.
-drop function f1;
-drop function f2;
-drop function f3;
-drop function f4;
-drop function f5;
-drop function f6;
-drop function f7;
-drop function f8;
-drop function f9;
-drop function f10;
-drop function f11;
-drop function f12;
-drop function f13;
-drop function f14;
-drop function f15;
-drop view v1, v2;
-drop procedure p1;
-drop procedure p2;
-drop table t1, t2, t3, t4, t5;
-disconnect con1;
-#
-# Test for bug#51263 "Deadlock between transactional SELECT
-# and ALTER TABLE ... REBUILD PARTITION".
-#
-connect con1,localhost,root,,test,,;
-connection default;
-drop table if exists t1, t2;
-create table t1 (i int auto_increment not null primary key) engine=innodb;
-create table t2 (i int) engine=innodb;
-insert into t1 values (1), (2), (3), (4), (5);
-begin;
-# Acquire SR metadata lock on t1 and LOCK_S row-locks on its rows.
-insert into t2 select count(*) from t1;
-connection con1;
-# Sending:
-alter table t1 add column j int;
-connection default;
-# Wait until ALTER is blocked because it tries to upgrade SNW
-# metadata lock to X lock.
-# It should not be blocked during copying data to new version of
-# table as it acquires LOCK_S locks on rows of old version, which
-# are compatible with locks acquired by connection 'con1'.
-# The below statement will deadlock because it will try to acquire
-# SW lock on t1, which will conflict with ALTER's SNW lock. And
-# ALTER will be waiting for this connection to release its SR lock.
-# This deadlock should be detected by an MDL subsystem and this
-# statement should be aborted with an appropriate error.
-insert into t1 values (6);
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-# Unblock ALTER TABLE.
-commit;
-connection con1;
-# Reaping ALTER TABLE.
-connection default;
-#
-# Now test for scenario in which bug was reported originally.
-#
-drop tables t1, t2;
-create table t1 (i int auto_increment not null primary key) engine=innodb
-partition by hash (i) partitions 4;
-create table t2 (i int) engine=innodb;
-insert into t1 values (1), (2), (3), (4), (5);
-begin;
-# Acquire SR metadata lock on t1.
-select * from t1;
-i
-1
-2
-3
-4
-5
-connection con1;
-# Sending:
-alter table t1 rebuild partition p0;
-connection default;
-# Wait until ALTER is blocked because of active SR lock.
-# The below statement should succeed as transaction
-# has SR metadata lock on t1 and only going to read
-# rows from it.
-insert into t2 select count(*) from t1;
-# Unblock ALTER TABLE.
-commit;
-connection con1;
-# Reaping ALTER TABLE.
-connection default;
-disconnect con1;
-# Clean-up.
-drop tables t1, t2;
diff --git a/mysql-test/r/innodb_mysql_sync.result b/mysql-test/r/innodb_mysql_sync.result
deleted file mode 100644
index a8a264d6580..00000000000
--- a/mysql-test/r/innodb_mysql_sync.result
+++ /dev/null
@@ -1,569 +0,0 @@
-#
-# Bug 42074 concurrent optimize table and
-# alter table = Assertion failed: thd->is_error()
-#
-DROP TABLE IF EXISTS t1;
-# Create InnoDB table
-CREATE TABLE t1 (id INT) engine=innodb;
-connect con2, localhost, root;
-# Start optimizing table
-connection default;
-SET DEBUG_SYNC='ha_admin_try_alter SIGNAL optimize_started WAIT_FOR table_altered';
-OPTIMIZE TABLE t1;
-# Change table to engine=memory
-connection con2;
-SET DEBUG_SYNC='now WAIT_FOR optimize_started';
-ALTER TABLE t1 engine=memory;
-SET DEBUG_SYNC='now SIGNAL table_altered';
-# Complete optimization
-connection default;
-Table Op Msg_type Msg_text
-test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
-test.t1 optimize error Got error -1 "Internal error < 0 (Not system error)" from storage engine MEMORY
-test.t1 optimize status Operation failed
-Warnings:
-Error 1030 Got error -1 "Internal error < 0 (Not system error)" from storage engine MEMORY
-disconnect con2;
-DROP TABLE t1;
-SET DEBUG_SYNC='RESET';
-#
-# Bug#47459 Assertion in Diagnostics_area::set_eof_status on
-# OPTIMIZE TABLE
-#
-DROP TABLE IF EXISTS t1;
-connect con1, localhost, root;
-connection default;
-CREATE TABLE t1(a INT) ENGINE= InnoDB;
-connection con1;
-SET DEBUG_SYNC= "ha_admin_open_ltable SIGNAL opening WAIT_FOR dropped";
-# Sending:
-OPTIMIZE TABLE t1;
-connection default;
-SET DEBUG_SYNC= "now WAIT_FOR opening";
-DROP TABLE t1;
-SET DEBUG_SYNC= "now SIGNAL dropped";
-connection con1;
-# Reaping: OPTIMIZE TABLE t1
-Table Op Msg_type Msg_text
-test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
-test.t1 optimize error Table 'test.t1' doesn't exist
-test.t1 optimize status Operation failed
-Warnings:
-Error 1146 Table 'test.t1' doesn't exist
-connection default;
-disconnect con1;
-SET DEBUG_SYNC= "RESET";
-#
-# Bug#53757 assert in mysql_truncate_by_delete
-#
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1(a INT) Engine=InnoDB;
-CREATE TABLE t2(id INT);
-INSERT INTO t1 VALUES (1), (2);
-connect con1, localhost, root;
-INSERT INTO t2 VALUES(connection_id());
-SET DEBUG_SYNC= "open_and_process_table SIGNAL opening WAIT_FOR killed";
-# Sending: (not reaped since connection is killed later)
-TRUNCATE t1;
-connection default;
-SET DEBUG_SYNC= "now WAIT_FOR opening";
-SELECT ((@id := id) - id) FROM t2;
-((@id := id) - id)
-0
-KILL @id;
-SET DEBUG_SYNC= "now SIGNAL killed";
-DROP TABLE t1, t2;
-disconnect con1;
-SET DEBUG_SYNC= "RESET";
-#
-# Bug#58933 Assertion `thd- >is_error()' fails on shutdown with ongoing
-# OPTIMIZE TABLE
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1), (2);
-connect con1,localhost,root;
-SET DEBUG_SYNC= 'ha_admin_open_ltable SIGNAL waiting WAIT_FOR killed';
-# Sending:
-OPTIMIZE TABLE t1;
-connection default;
-SET DEBUG_SYNC= 'now WAIT_FOR waiting';
-KILL QUERY ID;
-SET DEBUG_SYNC= 'now SIGNAL killed';
-connection con1;
-# Reaping: OPTIMIZE TABLE t1
-Table Op Msg_type Msg_text
-test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
-test.t1 optimize error Query execution was interrupted
-test.t1 optimize status Operation failed
-Warnings:
-Error 1317 Query execution was interrupted
-connection default;
-DROP TABLE t1;
-SET DEBUG_SYNC= 'RESET';
-disconnect con1;
-#
-# Bug#42230 during add index, cannot do queries on storage engines
-# that implement add_index
-#
-DROP DATABASE IF EXISTS db1;
-DROP TABLE IF EXISTS t1;
-connect con1,localhost,root;
-connect con2,localhost,root;
-# Test 1: Secondary index, should not block reads (original test case).
-connection default;
-CREATE DATABASE db1;
-CREATE TABLE db1.t1(id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, value INT) engine=innodb;
-INSERT INTO db1.t1(value) VALUES (1), (2);
-SET DEBUG_SYNC= "alter_table_inplace_after_lock_downgrade SIGNAL manage WAIT_FOR query";
-# Sending:
-ALTER TABLE db1.t1 ADD INDEX(value);
-connection con1;
-SET DEBUG_SYNC= "now WAIT_FOR manage";
-USE db1;
-SELECT * FROM t1;
-id value
-1 1
-2 2
-SET DEBUG_SYNC= "now SIGNAL query";
-connection default;
-# Reaping: ALTER TABLE db1.t1 ADD INDEX(value)
-DROP DATABASE db1;
-# Test 2: Primary index (implicit), should block writes.
-CREATE TABLE t1(a INT NOT NULL, b INT NOT NULL) engine=innodb;
-SET DEBUG_SYNC= "alter_table_inplace_after_lock_downgrade SIGNAL manage WAIT_FOR query";
-# Sending:
-ALTER TABLE t1 ADD UNIQUE INDEX(a), LOCK=SHARED;
-connection con1;
-SET DEBUG_SYNC= "now WAIT_FOR manage";
-USE test;
-SELECT * FROM t1;
-a b
-# Sending:
-UPDATE t1 SET a=NULL;
-connection con2;
-# Waiting for SELECT to be blocked by the metadata lock on t1
-SET DEBUG_SYNC= "now SIGNAL query";
-connection default;
-# Reaping: ALTER TABLE t1 ADD UNIQUE INDEX(a)
-connection con1;
-# Reaping: UPDATE t1 SET a=NULL
-# Test 3: Primary index (explicit), should block writes.
-connection default;
-ALTER TABLE t1 DROP INDEX a;
-SET DEBUG_SYNC= "alter_table_inplace_after_lock_downgrade SIGNAL manage WAIT_FOR query";
-# Sending:
-ALTER TABLE t1 ADD PRIMARY KEY (a), LOCK=SHARED;
-connection con1;
-SET DEBUG_SYNC= "now WAIT_FOR manage";
-SELECT * FROM t1;
-a b
-# Sending:
-UPDATE t1 SET a=NULL;
-connection con2;
-# Waiting for SELECT to be blocked by the metadata lock on t1
-SET DEBUG_SYNC= "now SIGNAL query";
-connection default;
-# Reaping: ALTER TABLE t1 ADD PRIMARY KEY (a)
-connection con1;
-# Reaping: UPDATE t1 SET a=NULL
-# Test 4: Secondary unique index, should not block reads.
-connection default;
-SET DEBUG_SYNC= "alter_table_inplace_after_lock_downgrade SIGNAL manage WAIT_FOR query";
-# Sending:
-ALTER TABLE t1 ADD UNIQUE (b);
-connection con1;
-SET DEBUG_SYNC= "now WAIT_FOR manage";
-SELECT * FROM t1;
-a b
-SET DEBUG_SYNC= "now SIGNAL query";
-connection default;
-# Reaping: ALTER TABLE t1 ADD UNIQUE (b)
-disconnect con1;
-disconnect con2;
-SET DEBUG_SYNC= "RESET";
-DROP TABLE t1;
-#
-# Bug#11853126 RE-ENABLE CONCURRENT READS WHILE CREATING SECONDARY INDEX
-# IN INNODB
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT NOT NULL, b INT NOT NULL) engine=innodb;
-INSERT INTO t1 VALUES (1, 12345), (2, 23456);
-connect con1,localhost,root;
-SET SESSION debug_dbug= "+d,alter_table_rollback_new_index";
-ALTER TABLE t1 ADD PRIMARY KEY(a);
-ERROR HY000: Unknown error
-SELECT * FROM t1;
-a b
-1 12345
-2 23456
-connection default;
-SELECT * FROM t1;
-a b
-1 12345
-2 23456
-DROP TABLE t1;
-disconnect con1;
-#
-# Bug#13417754 ASSERT IN ROW_DROP_DATABASE_FOR_MYSQL DURING DROP SCHEMA
-#
-DROP TABLE IF EXISTS t1;
-DROP DATABASE IF EXISTS db1;
-CREATE TABLE t1(a int) engine=InnoDB;
-CREATE DATABASE db1;
-connect con1, localhost, root;
-connect con2, localhost, root;
-connection con1;
-SET DEBUG_SYNC= 'after_innobase_rename_table SIGNAL locked WAIT_FOR continue';
-# Sending:
-ALTER TABLE t1 RENAME db1.t1;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-# DROP DATABASE db1 should now be blocked by ALTER TABLE
-# Sending:
-DROP DATABASE db1;
-connection default;
-# Check that DROP DATABASE is blocked by IX lock on db1
-# Resume ALTER TABLE
-SET DEBUG_SYNC= 'now SIGNAL continue';
-connection con1;
-# Reaping: ALTER TABLE t1 RENAME db1.t1;
-connection con2;
-# Reaping: DROP DATABASE db1
-connection default;
-SET DEBUG_SYNC= 'RESET';
-disconnect con1;
-disconnect con2;
-#
-# WL#5534 Online ALTER, Phase 1
-#
-# Multi thread tests.
-# See alter_table.test for single thread tests.
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT PRIMARY KEY, b INT) engine=InnoDB;
-INSERT INTO t1 VALUES (1,1), (2,2);
-SET DEBUG_SYNC= 'RESET';
-connect con1, localhost, root;
-SET SESSION lock_wait_timeout= 1;
-#
-# 1: In-place + writes blocked.
-#
-connection default;
-SET DEBUG_SYNC= 'alter_opened_table SIGNAL opened WAIT_FOR continue1';
-SET DEBUG_SYNC= 'alter_table_inplace_after_lock_upgrade SIGNAL upgraded WAIT_FOR continue2';
-SET DEBUG_SYNC= 'alter_table_inplace_before_commit SIGNAL beforecommit WAIT_FOR continue3';
-SET DEBUG_SYNC= 'alter_table_before_main_binlog SIGNAL binlog WAIT_FOR continue4';
-# Sending:
-ALTER TABLE t1 ADD INDEX i1(b), ALGORITHM= INPLACE, LOCK= SHARED;
-connection con1;
-SET DEBUG_SYNC= 'now WAIT_FOR opened';
-# At this point, neither reads nor writes should be blocked.
-SELECT * FROM t1;
-a b
-1 1
-2 2
-INSERT INTO t1 VALUES (3,3);
-SET DEBUG_SYNC= 'now SIGNAL continue1';
-SET DEBUG_SYNC= 'now WAIT_FOR upgraded';
-# Now both reads and writes should be blocked
-SELECT * FROM t1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-INSERT INTO t1 VALUES (4,4);
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-SET DEBUG_SYNC= 'now SIGNAL continue2';
-SET DEBUG_SYNC= 'now WAIT_FOR beforecommit';
-# Still both reads and writes should be blocked.
-SELECT * FROM t1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-INSERT INTO t1 VALUES (5,5);
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-SET DEBUG_SYNC= 'now SIGNAL continue3';
-SET DEBUG_SYNC= 'now WAIT_FOR binlog';
-# Same here.
-SELECT * FROM t1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-INSERT INTO t1 VALUES (6,6);
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-SET DEBUG_SYNC= 'now SIGNAL continue4';
-connection default;
-# Reaping ALTER TABLE ...
-SET DEBUG_SYNC= 'RESET';
-DELETE FROM t1 WHERE a= 3;
-#
-# 2: Copy + writes blocked.
-#
-SET DEBUG_SYNC= 'alter_opened_table SIGNAL opened WAIT_FOR continue1';
-SET DEBUG_SYNC= 'alter_table_copy_after_lock_upgrade SIGNAL upgraded WAIT_FOR continue2';
-SET DEBUG_SYNC= 'alter_table_before_main_binlog SIGNAL binlog WAIT_FOR continue3';
-# Sending:
-ALTER TABLE t1 ADD INDEX i2(b), ALGORITHM= COPY, LOCK= SHARED;
-connection con1;
-SET DEBUG_SYNC= 'now WAIT_FOR opened';
-# At this point, neither reads nor writes should be blocked.
-SELECT * FROM t1;
-a b
-1 1
-2 2
-INSERT INTO t1 VALUES (3,3);
-SET DEBUG_SYNC= 'now SIGNAL continue1';
-SET DEBUG_SYNC= 'now WAIT_FOR upgraded';
-# Now writes should be blocked, reads still allowed.
-SELECT * FROM t1;
-a b
-1 1
-2 2
-3 3
-INSERT INTO t1 VALUES (4,4);
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-SET DEBUG_SYNC= 'now SIGNAL continue2';
-SET DEBUG_SYNC= 'now WAIT_FOR binlog';
-# Now both reads and writes should be blocked.
-SELECT * FROM t1 limit 1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-INSERT INTO t1 VALUES (5,5);
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-SET DEBUG_SYNC= 'now SIGNAL continue3';
-connection default;
-# Reaping ALTER TABLE ...
-Warnings:
-Note 1831 Duplicate index `i2`. This is deprecated and will be disallowed in a future release
-SET DEBUG_SYNC= 'RESET';
-DELETE FROM t1 WHERE a= 3;
-#
-# 3: In-place + writes allowed.
-#
-# TODO: Enable this test once WL#5526 is pushed
-#
-# 4: In-place + reads and writes blocked.
-#
-connection default;
-SET DEBUG_SYNC= 'alter_opened_table SIGNAL opened WAIT_FOR continue1';
-SET DEBUG_SYNC= 'alter_table_inplace_after_lock_upgrade SIGNAL upgraded WAIT_FOR continue2';
-SET DEBUG_SYNC= 'alter_table_inplace_before_commit SIGNAL beforecommit WAIT_FOR continue3';
-SET DEBUG_SYNC= 'alter_table_before_main_binlog SIGNAL binlog WAIT_FOR continue4';
-# Sending:
-ALTER TABLE t1 ADD INDEX i4(b), ALGORITHM= INPLACE, LOCK= EXCLUSIVE;
-connection con1;
-SET DEBUG_SYNC= 'now WAIT_FOR opened';
-# At this point, neither reads nor writes should be blocked.
-SELECT * FROM t1;
-a b
-1 1
-2 2
-INSERT INTO t1 VALUES (3,3);
-SET DEBUG_SYNC= 'now SIGNAL continue1';
-SET DEBUG_SYNC= 'now WAIT_FOR upgraded';
-# Now both reads and writes should be blocked.
-SELECT * FROM t1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-INSERT INTO t1 VALUES (4,4);
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-SET DEBUG_SYNC= 'now SIGNAL continue2';
-SET DEBUG_SYNC= 'now WAIT_FOR beforecommit';
-# Same here.
-SELECT * FROM t1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-INSERT INTO t1 VALUES (5,5);
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-SET DEBUG_SYNC= 'now SIGNAL continue3';
-SET DEBUG_SYNC= 'now WAIT_FOR binlog';
-# Same here.
-SELECT * FROM t1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-INSERT INTO t1 VALUES (6,6);
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-SET DEBUG_SYNC= 'now SIGNAL continue4';
-connection default;
-# Reaping ALTER TABLE ...
-Warnings:
-Note 1831 Duplicate index `i4`. This is deprecated and will be disallowed in a future release
-SET DEBUG_SYNC= 'RESET';
-connection default;
-disconnect con1;
-DROP TABLE t1;
-SET DEBUG_SYNC= 'RESET';
-#
-#BUG#13975225:ONLINE OPTIMIZE TABLE FOR INNODB TABLES
-#
-SET DEBUG_SYNC= 'alter_table_inplace_after_lock_downgrade SIGNAL downgraded WAIT_FOR continue';
-connect con1,localhost,root,,;
-#Setting up INNODB table.
-CREATE TABLE t1(fld1 INT, fld2 INT, fld3 INT) ENGINE= INNODB;
-INSERT INTO t1 VALUES (155, 45, 55);
-#Concurrent INSERT, UPDATE, SELECT and DELETE is supported
-#during OPTIMIZE TABLE operation for INNODB tables.
-connection default;
-#OPTIMIZE TABLE operation.
-OPTIMIZE TABLE t1;
-connection con1;
-SET DEBUG_SYNC= 'now WAIT_FOR downgraded';
-# With the patch, concurrent DML operation succeeds.
-INSERT INTO t1 VALUES (10, 11, 12);
-UPDATE t1 SET fld1= 20 WHERE fld1= 155;
-DELETE FROM t1 WHERE fld1= 20;
-SELECT * from t1;
-fld1 fld2 fld3
-10 11 12
-SET DEBUG_SYNC= 'now SIGNAL continue';
-connection default;
-Table Op Msg_type Msg_text
-test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
-test.t1 optimize status OK
-DROP TABLE t1;
-SET DEBUG_SYNC= 'RESET';
-#Concurrent INSERT, UPDATE, SELECT and DELETE is supported
-#during OPTIMIZE TABLE operation for Partitioned table.
-SET DEBUG_SYNC= 'alter_table_inplace_after_lock_downgrade SIGNAL downgraded WAIT_FOR continue';
-#Setup PARTITIONED table.
-CREATE TABLE t1(fld1 INT) ENGINE= INNODB PARTITION BY HASH(fld1) PARTITIONS 4;
-INSERT INTO t1 VALUES(10);
-#OPTIMIZE TABLE operation.
-OPTIMIZE TABLE t1;
-connection con1;
-SET DEBUG_SYNC= 'now WAIT_FOR downgraded';
-# With the patch, concurrent DML operation succeeds.
-INSERT INTO t1 VALUES (30);
-UPDATE t1 SET fld1= 20 WHERE fld1= 10;
-DELETE FROM t1 WHERE fld1= 20;
-SELECT * from t1;
-fld1
-30
-SET DEBUG_SYNC= 'now SIGNAL continue';
-connection default;
-Table Op Msg_type Msg_text
-test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
-test.t1 optimize status OK
-DROP TABLE t1;
-SET DEBUG_SYNC= 'RESET';
-#ALTER TABLE FORCE and ALTER TABLE ENGINE uses online rebuild
-#of the table.
-CREATE TABLE t1(fld1 INT, fld2 INT) ENGINE=INNODB;
-INSERT INTO t1 VALUES(10, 20);
-ALTER TABLE t1 FORCE;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 ENGINE=INNODB;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-#ALTER TABLE FORCE, ALTER TABLE ENGINE and OPTIMIZE TABLE uses
-#table copy when the old_alter_table enabled.
-SET SESSION old_alter_table= TRUE;
-affected rows: 0
-ALTER TABLE t1 FORCE;
-affected rows: 1
-info: Records: 1 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 ENGINE= INNODB;
-affected rows: 1
-info: Records: 1 Duplicates: 0 Warnings: 0
-SET DEBUG_SYNC= 'alter_table_copy_after_lock_upgrade SIGNAL upgraded';
-affected rows: 0
-#OPTIMIZE TABLE operation using table copy.
-OPTIMIZE TABLE t1;
-connection con1;
-SET DEBUG_SYNC= 'now WAIT_FOR upgraded';
-affected rows: 0
-INSERT INTO t1 VALUES(10, 20);
-affected rows: 1
-connection default;
-Table Op Msg_type Msg_text
-test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
-test.t1 optimize status OK
-affected rows: 2
-SET DEBUG_SYNC= 'RESET';
-affected rows: 0
-SET SESSION old_alter_table= FALSE;
-affected rows: 0
-#ALTER TABLE FORCE and ALTER TABLE ENGINE uses table copy
-#when ALGORITHM COPY is used.
-ALTER TABLE t1 FORCE, ALGORITHM= COPY;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-ALTER TABLE t1 ENGINE= INNODB, ALGORITHM= COPY;
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 0
-DROP TABLE t1;
-#OPTIMIZE TABLE on a table with FULLTEXT index uses
-#ALTER TABLE FORCE using COPY algorithm here. This
-#test case ensures the COPY table debug sync point is hit.
-SET DEBUG_SYNC= 'alter_table_copy_after_lock_upgrade SIGNAL upgraded';
-#Setup a table with FULLTEXT index.
-connection default;
-CREATE TABLE t1(fld1 CHAR(10), FULLTEXT(fld1)) ENGINE= INNODB;
-INSERT INTO t1 VALUES("String1");
-#OPTIMIZE TABLE operation.
-OPTIMIZE TABLE t1;
-connection con1;
-SET DEBUG_SYNC= 'now WAIT_FOR upgraded';
-INSERT INTO t1 VALUES("String2");
-connection default;
-Table Op Msg_type Msg_text
-test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
-test.t1 optimize status OK
-SET DEBUG_SYNC= 'RESET';
-DROP TABLE t1;
-#Test which demonstrates that ALTER TABLE, OPTIMIZE PARTITION
-#takes OPTIMIZE TABLE code path, hence does an online rebuild
-#of the table with the patch.
-connection default;
-SET DEBUG_SYNC= 'alter_table_inplace_after_lock_downgrade SIGNAL downgraded WAIT_FOR continue';
-#Setup PARTITIONED table.
-CREATE TABLE t1(fld1 INT) ENGINE= INNODB PARTITION BY HASH(fld1) PARTITIONS 4;
-INSERT INTO t1 VALUES(10);
-#OPTIMIZE ALL PARTITIONS operation.
-ALTER TABLE t1 OPTIMIZE PARTITION ALL;
-connection con1;
-SET DEBUG_SYNC= 'now WAIT_FOR downgraded';
-# With the patch, concurrent DML operation succeeds.
-INSERT INTO t1 VALUES (30);
-UPDATE t1 SET fld1= 20 WHERE fld1= 10;
-DELETE FROM t1 WHERE fld1= 20;
-SELECT * from t1;
-fld1
-30
-SET DEBUG_SYNC= 'now SIGNAL continue';
-connection default;
-Table Op Msg_type Msg_text
-test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
-test.t1 optimize status OK
-SET DEBUG_SYNC= 'RESET';
-#OPTIMIZE PER PARTITION operation.
-SET DEBUG_SYNC= 'alter_table_inplace_after_lock_downgrade SIGNAL downgraded WAIT_FOR continue';
-ALTER TABLE t1 OPTIMIZE PARTITION p0;
-connection con1;
-SET DEBUG_SYNC= 'now WAIT_FOR downgraded';
-# With the patch, concurrent DML operation succeeds.
-INSERT INTO t1 VALUES (30);
-UPDATE t1 SET fld1= 20 WHERE fld1= 10;
-DELETE FROM t1 WHERE fld1= 20;
-SELECT * from t1;
-fld1
-30
-30
-SET DEBUG_SYNC= 'now SIGNAL continue';
-connection default;
-Table Op Msg_type Msg_text
-test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
-test.t1 optimize status OK
-SET DEBUG_SYNC= 'RESET';
-# Test case for Bug#11938817 (ALTER BEHAVIOR DIFFERENT THEN DOCUMENTED).
-# This should not do anything
-ALTER TABLE t1;
-affected rows: 0
-info: Records: 0 Duplicates: 0 Warnings: 0
-SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuild';
-# Check that we rebuild the table
-ALTER TABLE t1 engine=innodb;
-connection con1;
-SET DEBUG_SYNC= 'now WAIT_FOR rebuild';
-connection default;
-SET DEBUG_SYNC= 'RESET';
-SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuild';
-# Check that we rebuild the table
-ALTER TABLE t1 FORCE;
-connection con1;
-SET DEBUG_SYNC= 'now WAIT_FOR rebuild';
-connection default;
-disconnect con1;
-SET DEBUG_SYNC= 'RESET';
-DROP TABLE t1;
diff --git a/mysql-test/r/innodb_utf8.result b/mysql-test/r/innodb_utf8.result
deleted file mode 100644
index cdac7cdb65b..00000000000
--- a/mysql-test/r/innodb_utf8.result
+++ /dev/null
@@ -1,10 +0,0 @@
-drop table if exists t1;
-CREATE TABLE t1 (a VARCHAR(5) COLLATE utf8_unicode_ci PRIMARY KEY)
-ENGINE=InnoDB;
-INSERT INTO t1 VALUES (0xEFBCA4EFBCA4EFBCA4);
-DELETE FROM t1;
-INSERT INTO t1 VALUES ('DDD');
-SELECT * FROM t1;
-a
-DDD
-DROP TABLE t1;
diff --git a/mysql-test/r/insert.result b/mysql-test/r/insert.result
deleted file mode 100644
index 736aa917cae..00000000000
--- a/mysql-test/r/insert.result
+++ /dev/null
@@ -1,753 +0,0 @@
-drop table if exists t1,t2,t3;
-create table t1 (a int not null);
-insert into t1 values (1);
-insert into t1 values (a+2);
-insert into t1 values (a+3),(a+4);
-insert into t1 values (5),(a+6);
-select * from t1;
-a
-1
-2
-3
-4
-5
-6
-drop table t1;
-create table t1 (id int not null auto_increment primary key, username varchar(32) not null, unique (username));
-insert into t1 values (0,"mysql");
-insert into t1 values (0,"mysql ab");
-insert into t1 values (0,"mysql a");
-insert into t1 values (0,"r1manic");
-insert into t1 values (0,"r1man");
-drop table t1;
-create table t1 (a int not null auto_increment, primary key (a), t timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, c char(10) default "hello", i int);
-insert into t1 values (default,default,default,default), (default,default,default,default), (4,0,"a",5),(default,default,default,default);
-select a,t>0,c,i from t1;
-a t>0 c i
-1 1 hello NULL
-2 1 hello NULL
-4 0 a 5
-5 1 hello NULL
-truncate table t1;
-insert into t1 set a=default,t=default,c=default;
-insert into t1 set a=default,t=default,c=default,i=default;
-insert into t1 set a=4,t=0,c="a",i=5;
-insert into t1 set a=5,t=0,c="a",i=null;
-insert into t1 set a=default,t=default,c=default,i=default;
-select a,t>0,c,i from t1;
-a t>0 c i
-1 1 hello NULL
-2 1 hello NULL
-4 0 a 5
-5 0 a NULL
-6 1 hello NULL
-drop table t1;
-create table t1 (sid char(20), id int(2) NOT NULL auto_increment, key(sid, id));
-insert into t1 values ('skr',NULL),('skr',NULL),('test',NULL);
-select * from t1;
-sid id
-skr 1
-skr 2
-test 1
-insert into t1 values ('rts',NULL),('rts',NULL),('test',NULL);
-select * from t1;
-sid id
-rts 1
-rts 2
-skr 1
-skr 2
-test 1
-test 2
-drop table t1;
-create table t1 (id int NOT NULL DEFAULT 8);
-insert into t1 values(NULL);
-ERROR 23000: Column 'id' cannot be null
-insert into t1 values (1), (NULL), (2);
-Warnings:
-Warning 1048 Column 'id' cannot be null
-select * from t1;
-id
-1
-0
-2
-drop table t1;
-create table t1 (email varchar(50));
-insert into t1 values ('sasha@mysql.com'),('monty@mysql.com'),('foo@hotmail.com'),('foo@aol.com'),('bar@aol.com');
-create table t2(id int not null auto_increment primary key, t2 varchar(50), unique(t2));
-insert delayed into t2 (t2) select distinct substring(email, locate('@', email)+1) from t1;
-select * from t2;
-id t2
-1 mysql.com
-2 hotmail.com
-3 aol.com
-drop table t1,t2;
-drop database if exists mysqltest;
-create database mysqltest;
-use mysqltest;
-create table t1 (c int);
-insert into mysqltest.t1 set mysqltest.t1.c = '1';
-drop database mysqltest;
-use test;
-create table t1(number int auto_increment primary key, original_value varchar(50), f_double double, f_float float, f_double_7_2 double(7,2), f_float_4_3 float (4,3), f_double_u double unsigned, f_float_u float unsigned, f_double_15_1_u double(15,1) unsigned, f_float_3_1_u float (3,1) unsigned);
-set @value= "aa";
-insert ignore into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
-Warnings:
-Warning 1366 Incorrect double value: 'aa' for column 'f_double' at row 1
-Warning 1366 Incorrect double value: 'aa' for column 'f_float' at row 1
-Warning 1366 Incorrect double value: 'aa' for column 'f_double_7_2' at row 1
-Warning 1366 Incorrect double value: 'aa' for column 'f_float_4_3' at row 1
-Warning 1366 Incorrect double value: 'aa' for column 'f_double_u' at row 1
-Warning 1366 Incorrect double value: 'aa' for column 'f_float_u' at row 1
-Warning 1366 Incorrect double value: 'aa' for column 'f_double_15_1_u' at row 1
-Warning 1366 Incorrect double value: 'aa' for column 'f_float_3_1_u' at row 1
-select * from t1 where number =last_insert_id();
-number 1
-original_value aa
-f_double 0
-f_float 0
-f_double_7_2 0.00
-f_float_4_3 0.000
-f_double_u 0
-f_float_u 0
-f_double_15_1_u 0.0
-f_float_3_1_u 0.0
-set @value= "1aa";
-insert ignore into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
-Warnings:
-Warning 1265 Data truncated for column 'f_double' at row 1
-Warning 1265 Data truncated for column 'f_float' at row 1
-Warning 1265 Data truncated for column 'f_double_7_2' at row 1
-Warning 1265 Data truncated for column 'f_float_4_3' at row 1
-Warning 1265 Data truncated for column 'f_double_u' at row 1
-Warning 1265 Data truncated for column 'f_float_u' at row 1
-Warning 1265 Data truncated for column 'f_double_15_1_u' at row 1
-Warning 1265 Data truncated for column 'f_float_3_1_u' at row 1
-select * from t1 where number =last_insert_id();
-number 2
-original_value 1aa
-f_double 1
-f_float 1
-f_double_7_2 1.00
-f_float_4_3 1.000
-f_double_u 1
-f_float_u 1
-f_double_15_1_u 1.0
-f_float_3_1_u 1.0
-set @value= "aa1";
-insert ignore into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
-Warnings:
-Warning 1366 Incorrect double value: 'aa1' for column 'f_double' at row 1
-Warning 1366 Incorrect double value: 'aa1' for column 'f_float' at row 1
-Warning 1366 Incorrect double value: 'aa1' for column 'f_double_7_2' at row 1
-Warning 1366 Incorrect double value: 'aa1' for column 'f_float_4_3' at row 1
-Warning 1366 Incorrect double value: 'aa1' for column 'f_double_u' at row 1
-Warning 1366 Incorrect double value: 'aa1' for column 'f_float_u' at row 1
-Warning 1366 Incorrect double value: 'aa1' for column 'f_double_15_1_u' at row 1
-Warning 1366 Incorrect double value: 'aa1' for column 'f_float_3_1_u' at row 1
-select * from t1 where number =last_insert_id();
-number 3
-original_value aa1
-f_double 0
-f_float 0
-f_double_7_2 0.00
-f_float_4_3 0.000
-f_double_u 0
-f_float_u 0
-f_double_15_1_u 0.0
-f_float_3_1_u 0.0
-set @value= "1e+1111111111a";
-insert ignore into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
-Warnings:
-Warning 1264 Out of range value for column 'f_double' at row 1
-Warning 1264 Out of range value for column 'f_float' at row 1
-Warning 1264 Out of range value for column 'f_float' at row 1
-Warning 1264 Out of range value for column 'f_double_7_2' at row 1
-Warning 1264 Out of range value for column 'f_double_7_2' at row 1
-Warning 1264 Out of range value for column 'f_float_4_3' at row 1
-Warning 1264 Out of range value for column 'f_float_4_3' at row 1
-Warning 1264 Out of range value for column 'f_double_u' at row 1
-Warning 1264 Out of range value for column 'f_float_u' at row 1
-Warning 1264 Out of range value for column 'f_float_u' at row 1
-Warning 1264 Out of range value for column 'f_double_15_1_u' at row 1
-Warning 1264 Out of range value for column 'f_double_15_1_u' at row 1
-Warning 1264 Out of range value for column 'f_float_3_1_u' at row 1
-Warning 1264 Out of range value for column 'f_float_3_1_u' at row 1
-select * from t1 where number =last_insert_id();
-number 4
-original_value 1e+1111111111a
-f_double 1.7976931348623157e308
-f_float 3.40282e38
-f_double_7_2 99999.99
-f_float_4_3 9.999
-f_double_u 1.7976931348623157e308
-f_float_u 3.40282e38
-f_double_15_1_u 99999999999999.9
-f_float_3_1_u 99.9
-set @value= "-1e+1111111111a";
-insert ignore into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
-Warnings:
-Warning 1264 Out of range value for column 'f_double' at row 1
-Warning 1264 Out of range value for column 'f_float' at row 1
-Warning 1264 Out of range value for column 'f_float' at row 1
-Warning 1264 Out of range value for column 'f_double_7_2' at row 1
-Warning 1264 Out of range value for column 'f_double_7_2' at row 1
-Warning 1264 Out of range value for column 'f_float_4_3' at row 1
-Warning 1264 Out of range value for column 'f_float_4_3' at row 1
-Warning 1264 Out of range value for column 'f_double_u' at row 1
-Warning 1264 Out of range value for column 'f_double_u' at row 1
-Warning 1264 Out of range value for column 'f_float_u' at row 1
-Warning 1264 Out of range value for column 'f_float_u' at row 1
-Warning 1264 Out of range value for column 'f_double_15_1_u' at row 1
-Warning 1264 Out of range value for column 'f_double_15_1_u' at row 1
-Warning 1264 Out of range value for column 'f_float_3_1_u' at row 1
-Warning 1264 Out of range value for column 'f_float_3_1_u' at row 1
-select * from t1 where number =last_insert_id();
-number 5
-original_value -1e+1111111111a
-f_double -1.7976931348623157e308
-f_float -3.40282e38
-f_double_7_2 -99999.99
-f_float_4_3 -9.999
-f_double_u 0
-f_float_u 0
-f_double_15_1_u 0.0
-f_float_3_1_u 0.0
-set @value= 1e+1111111111;
-ERROR 22007: Illegal double '1e+1111111111' value found during parsing
-set @value= -1e+1111111111;
-ERROR 22007: Illegal double '1e+1111111111' value found during parsing
-set @value= 1e+111;
-insert ignore into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
-Warnings:
-Warning 1264 Out of range value for column 'f_float' at row 1
-Warning 1264 Out of range value for column 'f_double_7_2' at row 1
-Warning 1264 Out of range value for column 'f_float_4_3' at row 1
-Warning 1264 Out of range value for column 'f_float_u' at row 1
-Warning 1264 Out of range value for column 'f_double_15_1_u' at row 1
-Warning 1264 Out of range value for column 'f_float_3_1_u' at row 1
-select * from t1 where number =last_insert_id();
-number 6
-original_value 1e111
-f_double 1e111
-f_float 3.40282e38
-f_double_7_2 99999.99
-f_float_4_3 9.999
-f_double_u 1e111
-f_float_u 3.40282e38
-f_double_15_1_u 99999999999999.9
-f_float_3_1_u 99.9
-set @value= -1e+111;
-insert ignore into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
-Warnings:
-Warning 1264 Out of range value for column 'f_float' at row 1
-Warning 1264 Out of range value for column 'f_double_7_2' at row 1
-Warning 1264 Out of range value for column 'f_float_4_3' at row 1
-Warning 1264 Out of range value for column 'f_double_u' at row 1
-Warning 1264 Out of range value for column 'f_float_u' at row 1
-Warning 1264 Out of range value for column 'f_double_15_1_u' at row 1
-Warning 1264 Out of range value for column 'f_float_3_1_u' at row 1
-select * from t1 where number =last_insert_id();
-number 7
-original_value -1e111
-f_double -1e111
-f_float -3.40282e38
-f_double_7_2 -99999.99
-f_float_4_3 -9.999
-f_double_u 0
-f_float_u 0
-f_double_15_1_u 0.0
-f_float_3_1_u 0.0
-set @value= 1;
-insert into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
-select * from t1 where number =last_insert_id();
-number 8
-original_value 1
-f_double 1
-f_float 1
-f_double_7_2 1.00
-f_float_4_3 1.000
-f_double_u 1
-f_float_u 1
-f_double_15_1_u 1.0
-f_float_3_1_u 1.0
-set @value= -1;
-insert ignore into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
-Warnings:
-Warning 1264 Out of range value for column 'f_double_u' at row 1
-Warning 1264 Out of range value for column 'f_float_u' at row 1
-Warning 1264 Out of range value for column 'f_double_15_1_u' at row 1
-Warning 1264 Out of range value for column 'f_float_3_1_u' at row 1
-select * from t1 where number =last_insert_id();
-number 9
-original_value -1
-f_double -1
-f_float -1
-f_double_7_2 -1.00
-f_float_4_3 -1.000
-f_double_u 0
-f_float_u 0
-f_double_15_1_u 0.0
-f_float_3_1_u 0.0
-drop table t1;
-create table t1(id1 int not null auto_increment primary key, t char(12));
-create table t2(id2 int not null, t char(12));
-create table t3(id3 int not null, t char(12), index(id3));
-select count(*) from t2;
-count(*)
-500
-insert into t2 select t1.* from t1, t2 t, t3 where t1.id1 = t.id2 and t.id2 = t3.id3;
-select count(*) from t2;
-count(*)
-25500
-drop table t1,t2,t3;
-create table t1 (a int, b int);
-insert into t1 (a,b) values (a,b);
-insert into t1 SET a=1, b=a+1;
-insert into t1 (a,b) select 1,2;
-INSERT INTO t1 ( a ) SELECT 0 ON DUPLICATE KEY UPDATE a = a + VALUES (a);
-prepare stmt1 from ' replace into t1 (a,a) select 100, ''hundred'' ';
-execute stmt1;
-ERROR 42000: Column 'a' specified twice
-insert into t1 (a,b,b) values (1,1,1);
-ERROR 42000: Column 'b' specified twice
-insert into t1 (a,a) values (1,1,1);
-ERROR 21S01: Column count doesn't match value count at row 1
-insert into t1 (a,a) values (1,1);
-ERROR 42000: Column 'a' specified twice
-insert into t1 SET a=1,b=2,a=1;
-ERROR 42000: Column 'a' specified twice
-insert into t1 (b,b) select 1,2;
-ERROR 42000: Column 'b' specified twice
-INSERT INTO t1 (b,b) SELECT 0,0 ON DUPLICATE KEY UPDATE a = a + VALUES (a);
-ERROR 42000: Column 'b' specified twice
-drop table t1;
-create table t1 (id int primary key, data int);
-insert into t1 values (1, 1), (2, 2), (3, 3);
-select row_count();
-row_count()
-3
-insert ignore into t1 values (1, 1);
-Warnings:
-Warning 1062 Duplicate entry '1' for key 'PRIMARY'
-select row_count();
-row_count()
--1
-replace into t1 values (1, 11);
-select row_count();
-row_count()
-2
-replace into t1 values (4, 4);
-select row_count();
-row_count()
-1
-insert into t1 values (2, 2) on duplicate key update data= data + 10;
-select row_count();
-row_count()
-2
-insert into t1 values (5, 5) on duplicate key update data= data + 10;
-select row_count();
-row_count()
-1
-drop table t1;
-create table t1 (f1 int unique, f2 int);
-create table t2 (f3 int, f4 int);
-create view v1 as select * from t1, t2 where f1= f3;
-insert into t1 values (1,11), (2,22);
-insert into t2 values (1,12), (2,24);
-insert into v1 (f1) values (3) on duplicate key update f3= f3 + 10;
-ERROR HY000: Can not modify more than one base table through a join view 'test.v1'
-insert into v1 (f1) values (3) on duplicate key update f1= f3 + 10;
-ERROR HY000: Can not modify more than one base table through a join view 'test.v1'
-select * from t1;
-f1 f2
-1 11
-2 22
-insert into v1 (f1) values (3) on duplicate key update f1= f3 + 10;
-ERROR HY000: Can not modify more than one base table through a join view 'test.v1'
-select * from t1;
-f1 f2
-1 11
-2 22
-drop view v1;
-drop table t1,t2;
-create table t1 (id int primary key auto_increment, data int, unique(data));
-insert ignore into t1 values(NULL,100),(NULL,110),(NULL,120);
-insert ignore into t1 values(NULL,10),(NULL,20),(NULL,110),(NULL,120),(NULL,100),(NULL,90);
-Warnings:
-Warning 1062 Duplicate entry '110' for key 'data'
-Warning 1062 Duplicate entry '120' for key 'data'
-Warning 1062 Duplicate entry '100' for key 'data'
-insert ignore into t1 values(NULL,130),(NULL,140),(500,110),(550,120),(450,100),(NULL,150);
-Warnings:
-Warning 1062 Duplicate entry '110' for key 'data'
-Warning 1062 Duplicate entry '120' for key 'data'
-Warning 1062 Duplicate entry '100' for key 'data'
-select * from t1 order by id;
-id data
-1 100
-2 110
-3 120
-4 10
-5 20
-6 90
-7 130
-8 140
-9 150
-drop table t1;
-DROP TABLE IF EXISTS t1;
-DROP FUNCTION IF EXISTS f1;
-DROP FUNCTION IF EXISTS f2;
-CREATE TABLE t1 (i INT);
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-INSERT INTO t1 VALUES (1);
-RETURN 1;
-END |
-CREATE FUNCTION f2() RETURNS INT
-BEGIN
-INSERT DELAYED INTO t1 VALUES (2);
-RETURN 1;
-END |
-SELECT f1();
-f1()
-1
-SELECT f2();
-f2()
-1
-INSERT INTO t1 VALUES (3);
-INSERT DELAYED INTO t1 VALUES (4);
-INSERT INTO t1 VALUES (f1());
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-INSERT DELAYED INTO t1 VALUES (f1());
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-INSERT INTO t1 VALUES (f2());
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-INSERT DELAYED INTO t1 VALUES (f2());
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-INSERT INTO t1 VALUES (NEW.i);
-INSERT INTO t1 VALUES (1);
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-INSERT DELAYED INTO t1 VALUES (1);
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-SELECT * FROM t1;
-i
-1
-2
-3
-4
-DROP FUNCTION f2;
-DROP FUNCTION f1;
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (i INT);
-CREATE TABLE t2 (i INT);
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-INSERT DELAYED INTO t2 VALUES (NEW.i);
-CREATE TRIGGER t1_bu BEFORE UPDATE ON t1 FOR EACH ROW
-INSERT DELAYED INTO t2 VALUES (NEW.i);
-CREATE TRIGGER t1_bd BEFORE DELETE ON t1 FOR EACH ROW
-INSERT DELAYED INTO t2 VALUES (OLD.i);
-INSERT INTO t1 VALUES (1);
-INSERT DELAYED INTO t1 VALUES (2);
-SELECT * FROM t1;
-i
-1
-2
-UPDATE t1 SET i = 3 WHERE i = 1;
-SELECT * FROM t1;
-i
-3
-2
-DELETE FROM t1 WHERE i = 3;
-SELECT * FROM t1;
-i
-2
-SELECT * FROM t2;
-i
-1
-2
-3
-3
-DROP TABLE t1, t2;
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (i INT);
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-SET @a= NEW.i;
-SET @a= 0;
-INSERT DELAYED INTO t1 VALUES (1);
-SELECT @a;
-@a
-1
-INSERT DELAYED INTO t1 VALUES (2);
-SELECT @a;
-@a
-2
-DROP TABLE t1;
-CREATE TABLE t1 (i INT);
-CREATE TABLE t2 (i INT);
-CREATE TRIGGER t1_ai AFTER INSERT ON t1 FOR EACH ROW
-INSERT INTO t2 VALUES (NEW.i);
-CREATE TRIGGER t1_au AFTER UPDATE ON t1 FOR EACH ROW
-INSERT DELAYED INTO t2 VALUES (NEW.i);
-CREATE TRIGGER t1_ad AFTER DELETE ON t1 FOR EACH ROW
-INSERT DELAYED INTO t2 VALUES (OLD.i);
-INSERT DELAYED INTO t1 VALUES (1);
-SELECT * FROM t1;
-i
-1
-UPDATE t1 SET i = 2 WHERE i = 1;
-SELECT * FROM t1;
-i
-2
-DELETE FROM t1 WHERE i = 2;
-SELECT * FROM t1;
-i
-SELECT * FROM t2;
-i
-1
-2
-2
-DROP TABLE t1, t2;
-CREATE TABLE t1 (
-a char(20) NOT NULL,
-b char(7) DEFAULT NULL,
-c char(4) DEFAULT NULL
-);
-INSERT INTO t1(a,b,c) VALUES (9.999999e+0, 9.999999e+0, 9.999e+0);
-INSERT IGNORE INTO t1(a,b,c) VALUES (1.225e-05, 1.225e-05, 1.225e-05);
-Warnings:
-Warning 1265 Data truncated for column 'c' at row 1
-INSERT INTO t1(a,b) VALUES (1.225e-04, 1.225e-04);
-INSERT INTO t1(a,b) VALUES (1.225e-01, 1.225e-01);
-INSERT INTO t1(a,b) VALUES (1.225877e-01, 1.225877e-01);
-INSERT INTO t1(a,b) VALUES (1.225e+01, 1.225e+01);
-INSERT INTO t1(a,b,c) VALUES (1.225e+01, 1.225e+01, 1.225e+01);
-INSERT INTO t1(a,b) VALUES (1.225e+05, 1.225e+05);
-INSERT INTO t1(a,b) VALUES (1.225e+10, 1.225e+10);
-INSERT INTO t1(a,b) VALUES (1.225e+15, 1.225e+15);
-INSERT INTO t1(a,b) VALUES (5000000e+0, 5000000e+0);
-INSERT INTO t1(a,b) VALUES (1.25e+78, 1.25e+78);
-INSERT INTO t1(a,b) VALUES (1.25e-94, 1.25e-94);
-INSERT INTO t1(a,b) VALUES (1.25e+203, 1.25e+203);
-INSERT INTO t1(a,b) VALUES (1.25e-175, 1.25e-175);
-INSERT INTO t1(a,c) VALUES (1.225e+0, 1.225e+0);
-INSERT INTO t1(a,c) VALUES (1.37e+0, 1.37e+0);
-INSERT INTO t1(a,c) VALUES (-1.37e+0, -1.37e+0);
-INSERT IGNORE INTO t1(a,c) VALUES (1.87e-3, 1.87e-3);
-Warnings:
-Warning 1265 Data truncated for column 'c' at row 1
-INSERT INTO t1(a,c) VALUES (-1.87e-2, -1.87e-2);
-INSERT INTO t1(a,c) VALUES (5000e+0, 5000e+0);
-INSERT INTO t1(a,c) VALUES (-5000e+0, -5000e+0);
-SELECT * FROM t1;
-a b c
-9.999999 10 10
-0.00001225 1.22e-5 1e-5
-0.0001225 1.22e-4 NULL
-0.1225 0.1225 NULL
-0.1225877 0.12259 NULL
-12.25 12.25 NULL
-12.25 12.25 12.2
-122500 122500 NULL
-12250000000 1.22e10 NULL
-1.225e15 1.22e15 NULL
-5000000 5000000 NULL
-1.25e78 1.25e78 NULL
-1.25e-94 1.2e-94 NULL
-1.25e203 1.2e203 NULL
-1.25e-175 1e-175 NULL
-1.225 NULL 1.23
-1.37 NULL 1.37
--1.37 NULL -1.4
-0.00187 NULL 2e-3
--0.0187 NULL 0
-5000 NULL 5000
--5000 NULL -5e3
-DROP TABLE t1;
-CREATE TABLE t1 (
-a char(20) NOT NULL,
-b char(7) DEFAULT NULL,
-c char(5)
-);
-INSERT INTO t1(a,b,c) VALUES (9.999999e+0, 9.999999e+0, 9.999e+0);
-INSERT INTO t1(a,b,c) VALUES (1.225e-05, 1.225e-05, 1.225e-05);
-INSERT INTO t1(a,b) VALUES (1.225e-04, 1.225e-04);
-INSERT INTO t1(a,b) VALUES (1.225e-01, 1.225e-01);
-INSERT INTO t1(a,b) VALUES (1.225877e-01, 1.225877e-01);
-INSERT INTO t1(a,b) VALUES (1.225e+01, 1.225e+01);
-INSERT INTO t1(a,b,c) VALUES (1.225e+01, 1.225e+01, 1.225e+01);
-INSERT INTO t1(a,b) VALUES (1.225e+05, 1.225e+05);
-INSERT INTO t1(a,b) VALUES (1.225e+10, 1.225e+10);
-INSERT INTO t1(a,b) VALUES (1.225e+15, 1.225e+15);
-INSERT INTO t1(a,b) VALUES (5000000e+0, 5000000e+0);
-INSERT INTO t1(a,b) VALUES (1.25e+78, 1.25e+78);
-INSERT INTO t1(a,b) VALUES (1.25e-94, 1.25e-94);
-INSERT INTO t1(a,b) VALUES (1.25e+203, 1.25e+203);
-INSERT INTO t1(a,b) VALUES (1.25e-175, 1.25e-175);
-INSERT INTO t1(a,c) VALUES (1.225e+0, 1.225e+0);
-INSERT INTO t1(a,c) VALUES (1.37e+0, 1.37e+0);
-INSERT INTO t1(a,c) VALUES (-1.37e+0, -1.37e+0);
-INSERT INTO t1(a,c) VALUES (1.87e-3, 1.87e-3);
-INSERT INTO t1(a,c) VALUES (-1.87e-2, -1.87e-2);
-INSERT INTO t1(a,c) VALUES (5000e+0, 5000e+0);
-INSERT INTO t1(a,c) VALUES (-5000e+0, -5000e+0);
-SELECT * FROM t1;
-a b c
-9.999999 10 9.999
-0.00001225 1.22e-5 1e-5
-0.0001225 1.22e-4 NULL
-0.1225 0.1225 NULL
-0.1225877 0.12259 NULL
-12.25 12.25 NULL
-12.25 12.25 12.25
-122500 122500 NULL
-12250000000 1.22e10 NULL
-1.225e15 1.22e15 NULL
-5000000 5000000 NULL
-1.25e78 1.25e78 NULL
-1.25e-94 1.2e-94 NULL
-1.25e203 1.2e203 NULL
-1.25e-175 1e-175 NULL
-1.225 NULL 1.225
-1.37 NULL 1.37
--1.37 NULL -1.37
-0.00187 NULL 0.002
--0.0187 NULL -0.02
-5000 NULL 5000
--5000 NULL -5000
-DROP TABLE t1;
-CREATE TABLE t (a CHAR(10),b INT);
-INSERT INTO t VALUES (),(),();
-INSERT INTO t(a) SELECT rand() FROM t;
-DROP TABLE t;
-CREATE TABLE t1 (c1 INT NOT NULL);
-INSERT INTO t1 VALUES(4188.32999999999992724042385816574096679687500),
-('4188.32999999999992724042385816574096679687500'), (4188);
-SELECT * FROM t1;
-c1
-4188
-4188
-4188
-CREATE TABLE t2 (c1 BIGINT);
-INSERT INTO t2 VALUES('15449237462.0000000000');
-SELECT * FROM t2;
-c1
-15449237462
-DROP TABLE t1, t2;
-CREATE TABLE t1(f1 FLOAT);
-INSERT INTO t1 VALUES (1.23);
-CREATE TABLE t2(f1 CHAR(1));
-INSERT INTO t2 SELECT f1 FROM t1;
-DROP TABLE t1, t2;
-End of 5.0 tests.
-#
-# Bug#34898 "mysql_info() reports 0 warnings while
-# mysql_warning_count() reports 1"
-# Check that the number of warnings reported by
-# mysql_info() is correct.
-#
-drop table if exists t1;
-create table t1 (data varchar(4) not null);
-set sql_mode='error_for_division_by_zero';
-#
-# Demonstrate that the number of warnings matches
-# the information in mysql_info().
-#
-insert t1 (data) values ('letter'), (1/0);
-affected rows: 2
-info: Records: 2 Duplicates: 0 Warnings: 3
-Warnings:
-Warning 1265 Data truncated for column 'data' at row 1
-Warning 1365 Division by 0
-Warning 1048 Column 'data' cannot be null
-update t1 set data='envelope' where 1/0 or 1;
-affected rows: 2
-info: Rows matched: 2 Changed: 2 Warnings: 4
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-Warning 1265 Data truncated for column 'data' at row 1
-Warning 1265 Data truncated for column 'data' at row 2
-insert t1 (data) values (default), (1/0), ('dead beef');
-affected rows: 3
-info: Records: 3 Duplicates: 0 Warnings: 4
-Warnings:
-Warning 1364 Field 'data' doesn't have a default value
-Warning 1365 Division by 0
-Warning 1048 Column 'data' cannot be null
-Warning 1265 Data truncated for column 'data' at row 3
-set sql_mode=default;
-drop table t1;
-#
-# End of 5.4 tests
-#
-#
-# Bug#54106 assert in Protocol::end_statement,
-# INSERT IGNORE ... SELECT ... UNION SELECT ...
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 (a, a) VALUES (1, 1);
-ERROR 42000: Column 'a' specified twice
-INSERT IGNORE t1 (a, a) VALUES (1, 1);
-ERROR 42000: Column 'a' specified twice
-INSERT IGNORE t1 (a, a) SELECT 1,1;
-ERROR 42000: Column 'a' specified twice
-INSERT IGNORE t1 (a, a) SELECT 1,1 UNION SELECT 2,2;
-ERROR 42000: Column 'a' specified twice
-DROP TABLE t1;
-#
-# MDEV-5168: Ensure that we can disable duplicate key warnings
-# from INSERT IGNORE
-#
-create table t1 (f1 int unique, f2 int unique);
-insert into t1 values (1,12);
-insert into t1 values (2,13);
-insert into t1 values (1,12);
-ERROR 23000: Duplicate entry '1' for key 'f1'
-insert ignore into t1 values (1,12);
-Warnings:
-Warning 1062 Duplicate entry '1' for key 'f1'
-set @@old_mode="NO_DUP_KEY_WARNINGS_WITH_IGNORE";
-insert ignore into t1 values (1,12);
-insert ignore into t1 values (1,12) on duplicate key update f2=13;
-set @@old_mode="";
-insert ignore into t1 values (1,12);
-Warnings:
-Warning 1062 Duplicate entry '1' for key 'f1'
-DROP TABLE t1;
-#
-# MDEV-13290 Assertion Assertion `!is_set() || (m_status == DA_OK_BULK
-# && is_bulk_op())' or `! is_set()' failed
-#
-SET @save_mode= @@sql_mode;
-SET sql_mode= 'STRICT_ALL_TABLES';
-CREATE TABLE t1 (f1 INT DEFAULT 0, f2 INT);
-CREATE ALGORITHM = MERGE VIEW v1 AS SELECT f1, f2 FROM t1 WHERE f1 = 'x' WITH CHECK OPTION;
-REPLACE INTO v1 SET f2 = 1;
-ERROR 22007: Truncated incorrect DOUBLE value: 'x'
-SELECT * from t1;
-f1 f2
-drop view v1;
-CREATE ALGORITHM = MERGE VIEW v1 AS SELECT f1, f2 FROM t1 WHERE f1 = cast('' as decimal) WITH CHECK OPTION;
-REPLACE INTO v1 SET f2 = 1;
-ERROR 22007: Truncated incorrect DECIMAL value: ''
-SELECT * from t1;
-f1 f2
-drop view v1;
-SELECT 0,0 INTO OUTFILE 't1.txt';
-CREATE ALGORITHM = MERGE VIEW v1 AS SELECT f1, f2 FROM t1 WHERE f1 = 'x' WITH CHECK OPTION;
-LOAD DATA INFILE 't1.txt' INTO TABLE v1;
-ERROR 22007: Truncated incorrect DOUBLE value: 'x'
-SELECT * from t1;
-f1 f2
-drop view v1;
-drop table t1;
-SET @@sql_mode= @save_mode;
-CREATE TABLE t1 (f INT);
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE f <=> 'foo' WITH CHECK OPTION;
-REPLACE INTO v1 SET f = NULL;
-ERROR 22007: Truncated incorrect DOUBLE value: 'foo'
-DROP VIEW v1;
-DROP TABLE t1;
diff --git a/mysql-test/r/insert_innodb.result b/mysql-test/r/insert_innodb.result
deleted file mode 100644
index e5e2b4b8623..00000000000
--- a/mysql-test/r/insert_innodb.result
+++ /dev/null
@@ -1,45 +0,0 @@
-#
-# BUG#22037930: INSERT IGNORE FAILS TO IGNORE
-# FOREIGN KEY CONSTRAINT
-# Setup.
-CREATE TABLE t1 (fld1 INT PRIMARY KEY) ENGINE=INNODB;
-CREATE TABLE t2 (fld2 INT, FOREIGN KEY (fld2) REFERENCES t1 (fld1))
-ENGINE=INNODB;
-INSERT INTO t1 VALUES(0);
-INSERT INTO t2 VALUES(0);
-# Without fix, an error is reported.
-INSERT IGNORE INTO t2 VALUES(1);
-Warnings:
-Warning 1452 Cannot add or update a child row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`fld2`) REFERENCES `t1` (`fld1`))
-UPDATE IGNORE t2 SET fld2=20 WHERE fld2=0;
-UPDATE IGNORE t1 SET fld1=20 WHERE fld1=0;
-# Test for multi update.
-UPDATE IGNORE t1, t2 SET t2.fld2= t2.fld2 + 3;
-UPDATE IGNORE t1, t2 SET t1.fld1= t1.fld1 + 3;
-# Reports an error since IGNORE is not used.
-INSERT INTO t2 VALUES(1);
-ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`fld2`) REFERENCES `t1` (`fld1`))
-UPDATE t2 SET fld2=20 WHERE fld2=0;
-ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`fld2`) REFERENCES `t1` (`fld1`))
-UPDATE t1 SET fld1=20 WHERE fld1=0;
-ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`fld2`) REFERENCES `t1` (`fld1`))
-UPDATE t1, t2 SET t2.fld2= t2.fld2 + 3;
-ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`fld2`) REFERENCES `t1` (`fld1`))
-UPDATE t1, t2 SET t1.fld1= t1.fld1 + 3;
-ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`fld2`) REFERENCES `t1` (`fld1`))
-DROP TABLE t2, t1;
-#
-# BUG#22037930: INSERT IGNORE FAILS TO IGNORE FOREIGN
-# KEY CONSTRAINT
-CREATE TABLE t1 (fld1 INT PRIMARY KEY) ENGINE= INNODB;
-CREATE TABLE t2 (fld1 VARCHAR(10), fld2 INT NOT NULL,
-CONSTRAINT fk FOREIGN KEY (fld2) REFERENCES t1(fld1)) ENGINE= INNODB;
-# Without patch, reports incorrect error.
-INSERT INTO t2 VALUES('abc', 2) ON DUPLICATE KEY UPDATE fld1= 'def';
-ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `fk` FOREIGN KEY (`fld2`) REFERENCES `t1` (`fld1`))
-REPLACE INTO t2 VALUES('abc', 2);
-ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `fk` FOREIGN KEY (`fld2`) REFERENCES `t1` (`fld1`))
-INSERT IGNORE INTO t2 VALUES('abc', 2) ON DUPLICATE KEY UPDATE fld1= 'def';
-Warnings:
-Warning 1452 Cannot add or update a child row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `fk` FOREIGN KEY (`fld2`) REFERENCES `t1` (`fld1`))
-DROP TABLE t2, t1;
diff --git a/mysql-test/r/insert_notembedded.result b/mysql-test/r/insert_notembedded.result
deleted file mode 100644
index 8dd4aa7d71e..00000000000
--- a/mysql-test/r/insert_notembedded.result
+++ /dev/null
@@ -1,123 +0,0 @@
-set local sql_mode="";
-set global sql_mode="";
-drop table if exists t1;
-create table t1 (n int);
-create view v1 as select * from t1;
-insert delayed into v1 values (1);
-ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
-drop table t1;
-drop view v1;
-CREATE DATABASE meow;
-connect root,localhost,root,,meow;
-connection root;
-CREATE TABLE table_target ( mexs_id CHAR(8), messzeit TIMESTAMP, PRIMARY KEY (mexs_id));
-CREATE TABLE table_target2 ( mexs_id CHAR(8), messzeit TIMESTAMP, PRIMARY KEY (mexs_id));
-CREATE TABLE table_target3 ( mexs_id CHAR(8), messzeit TIMESTAMP, PRIMARY KEY (mexs_id));
-CREATE VIEW view_target2 AS SELECT mexs_id,messzeit FROM table_target2;
-CREATE SQL SECURITY INVOKER VIEW view_target3 AS SELECT mexs_id,messzeit FROM table_target3;
-CREATE TABLE table_stations ( mexs_id VARCHAR(8), icao VARCHAR(4), country CHAR(2), PRIMARY KEY (mexs_id), UNIQUE KEY icao (icao), KEY country (country), CONSTRAINT stations_ibfk_8 FOREIGN KEY (country) REFERENCES countries (country) ON UPDATE CASCADE);
-INSERT INTO table_stations VALUES ('87654321','XXXX','YY');
-CREATE TABLE table_countries ( country CHAR(2), iso_short_en VARCHAR(64), PRIMARY KEY (country));
-INSERT INTO table_countries VALUES ('YY','Entenhausen');
-CREATE ALGORITHM=MERGE SQL SECURITY INVOKER VIEW view_stations AS select table_stations.mexs_id AS mexs_id, table_stations.icao AS icao, table_stations.country AS landescode from (table_stations join table_countries on((table_stations.country = table_countries.country)));
-CREATE TABLE table_source ( id varchar(4), datetime TIMESTAMP, PRIMARY KEY (id));
-INSERT INTO table_source VALUES ('XXXX','2006-07-12 07:50:00');
-GRANT SELECT ON table_source TO user20989@localhost;
-GRANT SELECT ON table_countries TO user20989@localhost;
-GRANT SELECT ON table_stations TO user20989@localhost;
-GRANT SELECT ON view_stations TO user20989@localhost;
-GRANT SELECT ON table_target TO user20989@localhost;
-GRANT SELECT ON table_target2 TO user20989@localhost;
-GRANT INSERT,DELETE,SELECT ON view_target3 TO user20989@localhost;
-connect user20989,localhost,user20989,,meow;
-connection user20989;
-REPLACE INTO table_target
-SELECT stations.mexs_id AS mexs_id, datetime AS messzeit
-FROM table_source
-INNER JOIN view_stations AS stations
-ON table_source.id = stations.icao
-LEFT JOIN table_target AS old
-USING (mexs_id);
-ERROR 42000: INSERT, DELETE command denied to user 'user20989'@'localhost' for table 'table_target'
-REPLACE INTO view_target2
-SELECT stations.mexs_id AS mexs_id, datetime AS messzeit
-FROM table_source
-INNER JOIN view_stations AS stations
-ON table_source.id = stations.icao
-LEFT JOIN view_target2 AS old
-USING (mexs_id);
-ERROR 42000: INSERT, DELETE command denied to user 'user20989'@'localhost' for table 'view_target2'
-REPLACE INTO view_target3
-SELECT stations.mexs_id AS mexs_id, datetime AS messzeit
-FROM table_source
-INNER JOIN view_stations AS stations
-ON table_source.id = stations.icao
-LEFT JOIN view_target3 AS old
-USING (mexs_id);
-ERROR HY000: View 'meow.view_target3' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-connection root;
-disconnect user20989;
-GRANT INSERT,DELETE ON table_target TO user20989@localhost;
-GRANT INSERT,DELETE,SELECT ON view_target2 TO user20989@localhost;
-GRANT INSERT,DELETE,SELECT ON table_target3 TO user20989@localhost;
-connect user20989,localhost,user20989,,meow;
-connection user20989;
-REPLACE INTO table_target
-SELECT stations.mexs_id AS mexs_id, datetime AS messzeit
-FROM table_source
-INNER JOIN view_stations AS stations
-ON table_source.id = stations.icao
-LEFT JOIN table_target AS old
-USING (mexs_id);
-REPLACE INTO table_target2 VALUES ('00X45Y78','2006-07-12 07:50:00');
-ERROR 42000: INSERT, DELETE command denied to user 'user20989'@'localhost' for table 'table_target2'
-REPLACE INTO view_target2 VALUES ('12X45Y78','2006-07-12 07:50:00');
-SELECT stations.mexs_id AS mexs_id, datetime AS messzeit
-FROM table_source
-INNER JOIN view_stations AS stations
-ON table_source.id = stations.icao
-LEFT JOIN view_target2 AS old
-USING (mexs_id);
-mexs_id messzeit
-87654321 2006-07-12 07:50:00
-REPLACE INTO view_target2
-SELECT stations.mexs_id AS mexs_id, datetime AS messzeit
-FROM table_source
-INNER JOIN view_stations AS stations
-ON table_source.id = stations.icao
-LEFT JOIN view_target2 AS old
-USING (mexs_id);
-REPLACE INTO view_target3
-SELECT stations.mexs_id AS mexs_id, datetime AS messzeit
-FROM table_source
-INNER JOIN view_stations AS stations
-ON table_source.id = stations.icao
-LEFT JOIN view_target3 AS old
-USING (mexs_id);
-connection root;
-disconnect user20989;
-SELECT * FROM table_target;
-mexs_id messzeit
-87654321 2006-07-12 07:50:00
-SELECT * FROM view_target2;
-mexs_id messzeit
-12X45Y78 2006-07-12 07:50:00
-87654321 2006-07-12 07:50:00
-SELECT * FROM view_target3;
-mexs_id messzeit
-87654321 2006-07-12 07:50:00
-DROP VIEW view_stations;
-DROP TABLE table_source;
-DROP TABLE table_countries;
-DROP TABLE table_stations;
-DROP TABLE table_target;
-DROP TABLE table_target2;
-DROP TABLE table_target3;
-DROP VIEW view_target2;
-DROP VIEW view_target3;
-DROP USER user20989@localhost;
-disconnect root;
-connection default;
-DROP DATABASE meow;
-set local sql_mode=default;
-set global sql_mode=default;
diff --git a/mysql-test/r/insert_select.result b/mysql-test/r/insert_select.result
deleted file mode 100644
index 1a3a38b1f35..00000000000
--- a/mysql-test/r/insert_select.result
+++ /dev/null
@@ -1,858 +0,0 @@
-drop table if exists t1,t2,t3;
-create table t1 (bandID MEDIUMINT UNSIGNED NOT NULL PRIMARY KEY, payoutID SMALLINT UNSIGNED NOT NULL);
-insert into t1 (bandID,payoutID) VALUES (1,6),(2,6),(3,4),(4,9),(5,10),(6,1),(7,12),(8,12);
-create table t2 (payoutID SMALLINT UNSIGNED NOT NULL PRIMARY KEY);
-insert into t2 (payoutID) SELECT DISTINCT payoutID FROM t1;
-insert into t2 (payoutID) SELECT payoutID+10 FROM t1;
-ERROR 23000: Duplicate entry '16' for key 'PRIMARY'
-insert ignore into t2 (payoutID) SELECT payoutID+10 FROM t1;
-Warnings:
-Warning 1062 Duplicate entry '16' for key 'PRIMARY'
-Warning 1062 Duplicate entry '16' for key 'PRIMARY'
-Warning 1062 Duplicate entry '22' for key 'PRIMARY'
-select * from t2;
-payoutID
-1
-4
-6
-9
-10
-11
-12
-14
-16
-19
-20
-22
-drop table t1,t2;
-CREATE TABLE `t1` (
-`numeropost` bigint(20) unsigned NOT NULL default '0',
-`icone` tinyint(4) unsigned NOT NULL default '0',
-`numreponse` bigint(20) unsigned NOT NULL auto_increment,
-`contenu` text NOT NULL,
-`pseudo` varchar(50) NOT NULL default '',
-`date` datetime NOT NULL default '0000-00-00 00:00:00',
-`ip` bigint(11) NOT NULL default '0',
-`signature` tinyint(1) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`,`numreponse`)
-,KEY `ip` (`ip`),
-KEY `date` (`date`),
-KEY `pseudo` (`pseudo`),
-KEY `numreponse` (`numreponse`)
-) ENGINE=MyISAM;
-CREATE TABLE `t2` (
-`numeropost` bigint(20) unsigned NOT NULL default '0',
-`icone` tinyint(4) unsigned NOT NULL default '0',
-`numreponse` bigint(20) unsigned NOT NULL auto_increment,
-`contenu` text NOT NULL,
-`pseudo` varchar(50) NOT NULL default '',
-`date` datetime NOT NULL default '0000-00-00 00:00:00',
-`ip` bigint(11) NOT NULL default '0',
-`signature` tinyint(1) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`,`numreponse`),
-KEY `ip` (`ip`),
-KEY `date` (`date`),
-KEY `pseudo` (`pseudo`),
-KEY `numreponse` (`numreponse`)
-) ENGINE=MyISAM;
-INSERT INTO t2
-(numeropost,icone,numreponse,contenu,pseudo,date,ip,signature) VALUES
-(9,1,56,'test','joce','2001-07-25 13:50:53'
-,3649052399,0);
-INSERT INTO t1 (numeropost,icone,contenu,pseudo,date,signature,ip)
-SELECT 1618,icone,contenu,pseudo,date,signature,ip FROM t2
-WHERE numeropost=9 ORDER BY numreponse ASC;
-show variables like '%bulk%';
-Variable_name Value
-bulk_insert_buffer_size 8388608
-INSERT INTO t1 (numeropost,icone,contenu,pseudo,date,signature,ip)
-SELECT 1718,icone,contenu,pseudo,date,signature,ip FROM t2
-WHERE numeropost=9 ORDER BY numreponse ASC;
-DROP TABLE t1,t2;
-create table t1 (a int not null);
-create table t2 (a int not null);
-insert into t1 values (1);
-insert into t1 values (a+2);
-insert into t1 values (a+3);
-insert into t1 values (4),(a+5);
-insert into t1 select * from t1;
-select * from t1;
-a
-1
-2
-3
-4
-5
-1
-2
-3
-4
-5
-insert into t1 select * from t1 as t2;
-select * from t1;
-a
-1
-2
-3
-4
-5
-1
-2
-3
-4
-5
-1
-2
-3
-4
-5
-1
-2
-3
-4
-5
-insert into t2 select * from t1 as t2;
-select * from t1;
-a
-1
-2
-3
-4
-5
-1
-2
-3
-4
-5
-1
-2
-3
-4
-5
-1
-2
-3
-4
-5
-insert into t1 select t2.a from t1,t2;
-select * from t1;
-a
-1
-2
-3
-4
-5
-1
-2
-3
-4
-5
-1
-2
-3
-4
-5
-1
-2
-3
-4
-5
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-2
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-3
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-5
-insert into t1 select * from t1,t1;
-ERROR 42000: Not unique table/alias: 't1'
-drop table t1,t2;
-create table t1 (a int not null primary key, b char(10));
-create table t2 (a int not null, b char(10));
-insert into t1 values (1,"t1:1"),(3,"t1:3");
-insert into t2 values (2,"t2:2"), (3,"t2:3");
-insert into t1 select * from t2;
-ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
-select * from t1;
-a b
-1 t1:1
-3 t1:3
-2 t2:2
-replace into t1 select * from t2;
-select * from t1;
-a b
-1 t1:1
-2 t2:2
-3 t2:3
-drop table t1,t2;
-CREATE TABLE t1 ( USID INTEGER UNSIGNED, ServerID TINYINT UNSIGNED, State ENUM ('unknown', 'Access-Granted', 'Session-Active', 'Session-Closed' ) NOT NULL DEFAULT 'unknown', SessionID CHAR(32), User CHAR(32) NOT NULL DEFAULT '<UNKNOWN>', NASAddr INTEGER UNSIGNED, NASPort INTEGER UNSIGNED, NASPortType INTEGER UNSIGNED, ConnectSpeed INTEGER UNSIGNED, CarrierType CHAR(32), CallingStationID CHAR(32), CalledStationID CHAR(32), AssignedAddr INTEGER UNSIGNED, SessionTime INTEGER UNSIGNED, PacketsIn INTEGER UNSIGNED, OctetsIn INTEGER UNSIGNED, PacketsOut INTEGER UNSIGNED, OctetsOut INTEGER UNSIGNED, TerminateCause INTEGER UNSIGNED, UnauthTime TINYINT UNSIGNED, AccessRequestTime DATETIME, AcctStartTime DATETIME, AcctLastTime DATETIME, LastModification TIMESTAMP NOT NULL);
-CREATE TABLE t2 ( USID INTEGER UNSIGNED AUTO_INCREMENT, ServerID TINYINT UNSIGNED, State ENUM ('unknown', 'Access-Granted', 'Session-Active', 'Session-Closed' ) NOT NULL DEFAULT 'unknown', SessionID CHAR(32), User TEXT NOT NULL, NASAddr INTEGER UNSIGNED, NASPort INTEGER UNSIGNED, NASPortType INTEGER UNSIGNED, ConnectSpeed INTEGER UNSIGNED, CarrierType CHAR(32), CallingStationID CHAR(32), CalledStationID CHAR(32), AssignedAddr INTEGER UNSIGNED, SessionTime INTEGER UNSIGNED, PacketsIn INTEGER UNSIGNED, OctetsIn INTEGER UNSIGNED, PacketsOut INTEGER UNSIGNED, OctetsOut INTEGER UNSIGNED, TerminateCause INTEGER UNSIGNED, UnauthTime TINYINT UNSIGNED, AccessRequestTime DATETIME, AcctStartTime DATETIME, AcctLastTime DATETIME, LastModification TIMESTAMP NOT NULL, INDEX(USID,ServerID,NASAddr,SessionID), INDEX(AssignedAddr));
-INSERT INTO t1 VALUES (39,42,'Access-Granted','46','491721000045',2130706433,17690,NULL,NULL,'Localnet','491721000045','49172200000',754974766,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2003-07-18 00:11:21',NULL,NULL,20030718001121);
-INSERT INTO t2 SELECT USID, ServerID, State, SessionID, User, NASAddr, NASPort, NASPortType, ConnectSpeed, CarrierType, CallingStationID, CalledStationID, AssignedAddr, SessionTime, PacketsIn, OctetsIn, PacketsOut, OctetsOut, TerminateCause, UnauthTime, AccessRequestTime, AcctStartTime, AcctLastTime, LastModification from t1 LIMIT 1;
-drop table t1,t2;
-CREATE TABLE t1(
-Month date NOT NULL,
-Type tinyint(3) unsigned NOT NULL auto_increment,
-Field int(10) unsigned NOT NULL,
-Count int(10) unsigned NOT NULL,
-UNIQUE KEY Month (Month,Type,Field)
-);
-insert into t1 Values
-(20030901, 1, 1, 100),
-(20030901, 1, 2, 100),
-(20030901, 2, 1, 100),
-(20030901, 2, 2, 100),
-(20030901, 3, 1, 100);
-select * from t1;
-Month Type Field Count
-2003-09-01 1 1 100
-2003-09-01 1 2 100
-2003-09-01 2 1 100
-2003-09-01 2 2 100
-2003-09-01 3 1 100
-Select null, Field, Count From t1 Where Month=20030901 and Type=2;
-NULL Field Count
-NULL 1 100
-NULL 2 100
-create table t2(No int not null, Field int not null, Count int not null);
-insert ignore into t2 Select null, Field, Count From t1 Where Month=20030901 and Type=2;
-Warnings:
-Warning 1048 Column 'No' cannot be null
-Warning 1048 Column 'No' cannot be null
-select * from t2;
-No Field Count
-0 1 100
-0 2 100
-drop table t1, t2;
-CREATE TABLE t1 (
-ID int(11) NOT NULL auto_increment,
-NO int(11) NOT NULL default '0',
-SEQ int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-KEY t1$NO (SEQ,NO)
-) ENGINE=MyISAM;
-INSERT INTO t1 (SEQ, NO) SELECT "1" AS SEQ, IF(MAX(NO) IS NULL, 0, MAX(NO)) + 1 AS NO FROM t1 WHERE (SEQ = 1);
-select SQL_BUFFER_RESULT * from t1 WHERE (SEQ = 1);
-ID NO SEQ
-1 1 1
-drop table t1;
-create table t1 (f1 int);
-create table t2 (ff1 int unique, ff2 int default 1);
-insert into t1 values (1),(1),(2);
-insert into t2(ff1) select f1 from t1 on duplicate key update ff2=ff2+1;
-select * from t2;
-ff1 ff2
-1 2
-2 1
-drop table t1, t2;
-create table t1 (a int unique);
-create table t2 (a int, b int);
-create table t3 (c int, d int);
-insert into t1 values (1),(2);
-insert into t2 values (1,2);
-insert into t3 values (1,6),(3,7);
-select * from t1;
-a
-1
-2
-insert into t1 select a from t2 on duplicate key update a= t1.a + t2.b;
-select * from t1;
-a
-2
-3
-insert into t1 select a+1 from t2 on duplicate key update t1.a= t1.a + t2.b+1;
-select * from t1;
-a
-3
-5
-insert into t1 select t3.c from t3 on duplicate key update a= a + t3.d;
-select * from t1;
-a
-1
-5
-10
-insert into t1 select t2.a from t2 group by t2.a on duplicate key update a= a + 10;
-insert into t1 select t2.a from t2 on duplicate key update a= a + t2.b;
-ERROR 23000: Column 'a' in field list is ambiguous
-insert into t1 select t2.a from t2 on duplicate key update t2.a= a + t2.b;
-ERROR 42S22: Unknown column 't2.a' in 'field list'
-insert into t1 select t2.a from t2 group by t2.a on duplicate key update a= t1.a + t2.b;
-ERROR 42S22: Unknown column 't2.b' in 'field list'
-drop table t1,t2,t3;
-create table t1(f1 varchar(5) key);
-insert into t1(f1) select if(max(f1) is null, '2000',max(f1)+1) from t1;
-insert into t1(f1) select if(max(f1) is null, '2000',max(f1)+1) from t1;
-insert into t1(f1) select if(max(f1) is null, '2000',max(f1)+1) from t1;
-select * from t1;
-f1
-2000
-2001
-2002
-drop table t1;
-create table t1(x int, y int);
-create table t2(x int, z int);
-insert into t1(x,y) select x,z from t2 on duplicate key update x=values(x);
-insert into t1(x,y) select x,z from t2 on duplicate key update x=values(z);
-ERROR 42S22: Unknown column 'z' in 'field list'
-insert into t1(x,y) select x,z from t2 on duplicate key update x=values(t2.x);
-ERROR 42S22: Unknown column 't2.x' in 'field list'
-drop table t1,t2;
-CREATE TABLE t1 (a int PRIMARY KEY);
-INSERT INTO t1 values (1), (2);
-flush status;
-INSERT INTO t1 SELECT a + 2 FROM t1 LIMIT 1;
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 1
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 1
-DROP TABLE t1;
-CREATE TABLE t1 (
-f1 int(10) unsigned NOT NULL auto_increment PRIMARY KEY,
-f2 varchar(100) NOT NULL default ''
-);
-CREATE TABLE t2 (
-f1 varchar(10) NOT NULL default '',
-f2 char(3) NOT NULL default '',
-PRIMARY KEY (`f1`),
-KEY `k1` (`f2`, `f1`)
-);
-INSERT INTO t1 values(NULL, '');
-INSERT INTO `t2` VALUES ('486878','WDT'),('486910','WDT');
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-1
-SELECT min(t2.f1) FROM t1, t2 where t2.f2 = 'SIR' GROUP BY t1.f1;
-min(t2.f1)
-INSERT INTO t1 (f2)
-SELECT min(t2.f1) FROM t1, t2 where t2.f2 = 'SIR' GROUP BY t1.f1;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-1
-SELECT * FROM t1;
-f1 f2
-1
-DROP TABLE t1, t2;
-CREATE TABLE t1 (x int, y int);
-CREATE TABLE t2 (z int, y int);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 (SELECT x, y FROM t1 JOIN t2 USING (y) WHERE z = 1);
-DROP TABLE IF EXISTS t1,t2,t3;
-CREATE DATABASE bug21774_1;
-CREATE DATABASE bug21774_2;
-CREATE TABLE bug21774_1.t1(id VARCHAR(10) NOT NULL,label VARCHAR(255));
-CREATE TABLE bug21774_2.t1(id VARCHAR(10) NOT NULL,label VARCHAR(255));
-CREATE TABLE bug21774_1.t2(id VARCHAR(10) NOT NULL,label VARCHAR(255));
-INSERT INTO bug21774_2.t1 SELECT t1.* FROM bug21774_1.t1;
-use bug21774_1;
-INSERT INTO bug21774_2.t1 SELECT t1.* FROM t1;
-DROP DATABASE bug21774_1;
-DROP DATABASE bug21774_2;
-USE test;
-create table t1(f1 int primary key, f2 int);
-insert into t1 values (1,1);
-affected rows: 1
-insert into t1 values (1,1) on duplicate key update f2=1;
-affected rows: 0
-insert into t1 values (1,1) on duplicate key update f2=2;
-affected rows: 2
-select * from t1;
-f1 f2
-1 2
-drop table t1;
-CREATE TABLE t1 (f1 INT, f2 INT );
-CREATE TABLE t2 (f1 INT PRIMARY KEY, f2 INT);
-INSERT INTO t1 VALUES (1,1),(2,2),(10,10);
-INSERT INTO t2 (f1, f2) SELECT f1, f2 FROM t1;
-INSERT INTO t2 (f1, f2)
-SELECT f1, f1 FROM t2 src WHERE f1 < 2
-ON DUPLICATE KEY UPDATE f1 = 100 + src.f1;
-SELECT * FROM t2;
-f1 f2
-10 10
-101 1
-2 2
-DROP TABLE t1, t2;
-SET sql_mode = 'NO_ENGINE_SUBSTITUTION';
-CREATE TABLE t1 ( a INT KEY, b INT );
-INSERT INTO t1 VALUES ( 0, 1 );
-INSERT INTO t1 ( b ) SELECT MAX( b ) FROM t1 WHERE b = 2;
-ERROR 23000: Duplicate entry '0' for key 'PRIMARY'
-DROP TABLE t1;
-SET sql_mode = DEFAULT;
-SET SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
-CREATE TABLE t1 (c VARCHAR(30), INDEX ix_c (c(10)));
-CREATE TABLE t2 (d VARCHAR(10));
-INSERT INTO t1 (c) VALUES ('7_chars'), ('13_characters');
-EXPLAIN
-SELECT (SELECT SUM(LENGTH(c)) FROM t1 WHERE c='13_characters') FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY t1 ref ix_c ix_c 13 const 1 Using where
-SELECT (SELECT SUM(LENGTH(c)) FROM t1 WHERE c='13_characters') FROM t1;
-(SELECT SUM(LENGTH(c)) FROM t1 WHERE c='13_characters')
-13
-13
-INSERT INTO t2 (d)
-SELECT (SELECT SUM(LENGTH(c)) FROM t1 WHERE c='13_characters') FROM t1;
-INSERT INTO t2 (d)
-SELECT (SELECT SUM(LENGTH(c)) FROM t1 WHERE c='7_chars') FROM t1;
-INSERT INTO t2 (d)
-SELECT (SELECT SUM(LENGTH(c)) FROM t1 WHERE c IN (SELECT t1.c FROM t1))
-FROM t1;
-SELECT * FROM t2;
-d
-13
-13
-7
-7
-20
-20
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-id INT AUTO_INCREMENT PRIMARY KEY,
-prev_id INT,
-join_id INT DEFAULT 0);
-INSERT INTO t1 (prev_id) VALUES (NULL), (1), (2);
-SELECT * FROM t1;
-id prev_id join_id
-1 NULL 0
-2 1 0
-3 2 0
-CREATE TABLE t2 (join_id INT);
-INSERT INTO t2 (join_id) VALUES (0);
-INSERT INTO t1 (prev_id) SELECT id
-FROM t2 LEFT JOIN t1 ON t1.join_id = t2.join_id
-ORDER BY id DESC LIMIT 1;
-SELECT * FROM t1;
-id prev_id join_id
-1 NULL 0
-2 1 0
-3 2 0
-4 3 0
-DROP TABLE t1,t2;
-#
-# Bug#30384: Having SQL_BUFFER_RESULT option in the
-# CREATE .. KEY(..) .. SELECT led to creating corrupted index.
-#
-create table t1(f1 int);
-insert into t1 values(1),(2),(3);
-create table t2 (key(f1)) engine=myisam select sql_buffer_result f1 from t1;
-check table t2 extended;
-Table Op Msg_type Msg_text
-test.t2 check status OK
-drop table t1,t2;
-End of 5.0 tests
-##################################################################
-#
-# Bug #46075: Assertion failed: 0, file .\protocol.cc, line 416
-#
-CREATE TABLE t1(a INT);
-SET max_heap_table_size = 16384;
-SET @old_myisam_data_pointer_size = @@myisam_data_pointer_size;
-SET GLOBAL myisam_data_pointer_size = 2;
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
-call mtr.add_suppression("mysqld.*: The table '.*#sql.*' is full");
-INSERT IGNORE INTO t1 SELECT t1.a FROM t1,t1 t2,t1 t3,t1 t4,t1 t5,t1 t6,t1 t7;
-SET GLOBAL myisam_data_pointer_size = @old_myisam_data_pointer_size;
-DROP TABLE t1;
-End of 5.1 tests
diff --git a/mysql-test/r/insert_update.result b/mysql-test/r/insert_update.result
deleted file mode 100644
index 68a1003ad85..00000000000
--- a/mysql-test/r/insert_update.result
+++ /dev/null
@@ -1,414 +0,0 @@
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (a INT, b INT, c INT, UNIQUE (A), UNIQUE(B));
-INSERT t1 VALUES (1,2,10), (3,4,20);
-INSERT t1 VALUES (5,6,30) ON DUPLICATE KEY UPDATE c=c+100;
-SELECT * FROM t1;
-a b c
-1 2 10
-3 4 20
-5 6 30
-INSERT t1 VALUES (5,7,40) ON DUPLICATE KEY UPDATE c=c+100;
-SELECT * FROM t1;
-a b c
-1 2 10
-3 4 20
-5 6 130
-INSERT t1 VALUES (8,4,50) ON DUPLICATE KEY UPDATE c=c+1000;
-SELECT * FROM t1;
-a b c
-1 2 10
-3 4 1020
-5 6 130
-INSERT t1 VALUES (1,4,60) ON DUPLICATE KEY UPDATE c=c+10000;
-SELECT * FROM t1;
-a b c
-1 2 10010
-3 4 1020
-5 6 130
-INSERT t1 VALUES (1,9,70) ON DUPLICATE KEY UPDATE c=c+100000, b=4;
-ERROR 23000: Duplicate entry '4' for key 'b'
-SELECT * FROM t1;
-a b c
-1 2 10010
-3 4 1020
-5 6 130
-TRUNCATE TABLE t1;
-INSERT t1 VALUES (1,2,10), (3,4,20);
-INSERT t1 VALUES (5,6,30), (7,4,40), (8,9,60) ON DUPLICATE KEY UPDATE c=c+100;
-SELECT * FROM t1;
-a b c
-1 2 10
-3 4 120
-5 6 30
-8 9 60
-INSERT t1 SET a=5 ON DUPLICATE KEY UPDATE b=0;
-SELECT * FROM t1;
-a b c
-1 2 10
-3 4 120
-5 0 30
-8 9 60
-INSERT t1 VALUES (2,1,11), (7,4,40) ON DUPLICATE KEY UPDATE c=c+VALUES(a);
-SELECT *, VALUE(a) FROM t1;
-a b c VALUE(a)
-1 2 10 NULL
-3 4 127 NULL
-5 0 30 NULL
-8 9 60 NULL
-2 1 11 NULL
-explain extended SELECT *, VALUE(a) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,value(`test`.`t1`.`a`) AS `VALUE(a)` from `test`.`t1`
-explain extended select * from t1 where value(a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c` from `test`.`t1` where value(`test`.`t1`.`a`)
-DROP TABLE t1;
-create table t1(a int primary key, b int);
-insert into t1 values(1,1),(2,2),(3,3),(4,4),(5,5);
-select * from t1;
-a b
-1 1
-2 2
-3 3
-4 4
-5 5
-insert into t1 values(4,14),(5,15),(6,16),(7,17),(8,18)
-on duplicate key update b=b+10;
-affected rows: 7
-info: Records: 5 Duplicates: 2 Warnings: 0
-select * from t1;
-a b
-1 1
-2 2
-3 3
-4 14
-5 15
-6 16
-7 17
-8 18
-replace into t1 values(5,25),(6,26),(7,27),(8,28),(9,29);
-affected rows: 9
-info: Records: 5 Duplicates: 4 Warnings: 0
-select * from t1;
-a b
-1 1
-2 2
-3 3
-4 14
-5 25
-6 26
-7 27
-8 28
-9 29
-drop table t1;
-CREATE TABLE t1 (a INT, b INT, c INT, UNIQUE (A), UNIQUE(B));
-INSERT t1 VALUES (1,2,10), (3,4,20);
-INSERT t1 SELECT 5,6,30 FROM DUAL ON DUPLICATE KEY UPDATE c=c+100;
-SELECT * FROM t1;
-a b c
-1 2 10
-3 4 20
-5 6 30
-INSERT t1 SELECT 5,7,40 FROM DUAL ON DUPLICATE KEY UPDATE c=c+100;
-SELECT * FROM t1;
-a b c
-1 2 10
-3 4 20
-5 6 130
-INSERT t1 SELECT 8,4,50 FROM DUAL ON DUPLICATE KEY UPDATE c=c+1000;
-SELECT * FROM t1;
-a b c
-1 2 10
-3 4 1020
-5 6 130
-INSERT t1 SELECT 1,4,60 FROM DUAL ON DUPLICATE KEY UPDATE c=c+10000;
-SELECT * FROM t1;
-a b c
-1 2 10010
-3 4 1020
-5 6 130
-INSERT t1 SELECT 1,9,70 FROM DUAL ON DUPLICATE KEY UPDATE c=c+100000, b=4;
-ERROR 23000: Duplicate entry '4' for key 'b'
-SELECT * FROM t1;
-a b c
-1 2 10010
-3 4 1020
-5 6 130
-TRUNCATE TABLE t1;
-INSERT t1 VALUES (1,2,10), (3,4,20);
-CREATE TABLE t2 (a INT, b INT, c INT, d INT);
-INSERT t2 VALUES (5,6,30,1), (7,4,40,1), (8,9,60,1);
-INSERT t2 VALUES (2,1,11,2), (7,4,40,2);
-INSERT t1 SELECT a,b,c FROM t2 WHERE d=1 ON DUPLICATE KEY UPDATE c=t1.c+100;
-SELECT * FROM t1;
-a b c
-1 2 10
-3 4 120
-5 6 30
-8 9 60
-INSERT t1 SET a=5 ON DUPLICATE KEY UPDATE b=0;
-SELECT * FROM t1;
-a b c
-1 2 10
-3 4 120
-5 0 30
-8 9 60
-INSERT t1 SELECT a,b,c FROM t2 WHERE d=2 ON DUPLICATE KEY UPDATE c=c+VALUES(a);
-ERROR 23000: Column 'c' in field list is ambiguous
-INSERT t1 SELECT a,b,c FROM t2 WHERE d=2 ON DUPLICATE KEY UPDATE c=t1.c+VALUES(t1.a);
-SELECT *, VALUE(a) FROM t1;
-a b c VALUE(a)
-1 2 10 NULL
-3 4 127 NULL
-5 0 30 NULL
-8 9 60 NULL
-2 1 11 NULL
-DROP TABLE t1;
-DROP TABLE t2;
-create table t1 (a int not null unique) engine=myisam;
-insert into t1 values (1),(2);
-insert ignore into t1 select 1 on duplicate key update a=2;
-Warnings:
-Warning 1062 Duplicate entry '2' for key 'a'
-select * from t1;
-a
-1
-2
-insert ignore into t1 select a from t1 as t2 on duplicate key update a=t1.a+1 ;
-Warnings:
-Warning 1062 Duplicate entry '2' for key 'a'
-select * from t1;
-a
-1
-3
-insert into t1 select 1 on duplicate key update a=2;
-select * from t1;
-a
-2
-3
-insert into t1 select a from t1 on duplicate key update a=a+1 ;
-ERROR 23000: Column 'a' in field list is ambiguous
-insert ignore into t1 select a from t1 on duplicate key update a=t1.a+1 ;
-ERROR 23000: Column 't1.a' in field list is ambiguous
-drop table t1;
-CREATE TABLE t1 (
-a BIGINT(20) NOT NULL DEFAULT 0,
-PRIMARY KEY (a)
-) ENGINE=MyISAM;
-INSERT INTO t1 ( a ) SELECT 0 ON DUPLICATE KEY UPDATE a = a + VALUES (a) ;
-DROP TABLE t1;
-CREATE TABLE t1
-(
-a BIGINT UNSIGNED,
-b BIGINT UNSIGNED,
-PRIMARY KEY (a)
-);
-INSERT INTO t1 VALUES (45, 1) ON DUPLICATE KEY UPDATE b =
-IF(VALUES(b) > t1.b, VALUES(b), t1.b);
-SELECT * FROM t1;
-a b
-45 1
-INSERT INTO t1 VALUES (45, 2) ON DUPLICATE KEY UPDATE b =
-IF(VALUES(b) > t1.b, VALUES(b), t1.b);
-SELECT * FROM t1;
-a b
-45 2
-INSERT INTO t1 VALUES (45, 1) ON DUPLICATE KEY UPDATE b =
-IF(VALUES(b) > t1.b, VALUES(b), t1.b);
-SELECT * FROM t1;
-a b
-45 2
-DROP TABLE t1;
-CREATE TABLE t1 (i INT PRIMARY KEY, j INT);
-INSERT INTO t1 SELECT 1, j;
-ERROR 42S22: Unknown column 'j' in 'field list'
-DROP TABLE t1;
-CREATE TABLE t1 (i INT PRIMARY KEY, j INT);
-CREATE TABLE t2 (a INT, b INT);
-CREATE TABLE t3 (a INT, c INT);
-INSERT INTO t1 SELECT 1, a FROM t2 NATURAL JOIN t3
-ON DUPLICATE KEY UPDATE j= a;
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (i INT PRIMARY KEY, j INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1, 1);
-INSERT INTO t2 VALUES (1), (3);
-INSERT INTO t1 SELECT 1, COUNT(*) FROM t2 ON DUPLICATE KEY UPDATE j= a;
-ERROR 42S22: Unknown column 'a' in 'field list'
-DROP TABLE t1,t2;
-SET SQL_MODE = 'TRADITIONAL';
-CREATE TABLE t1 (a INT PRIMARY KEY, b INT NOT NULL);
-INSERT INTO t1 VALUES (1,1);
-INSERT INTO t1 (a) VALUES (1);
-ERROR HY000: Field 'b' doesn't have a default value
-INSERT INTO t1 (a) VALUES (1) ON DUPLICATE KEY UPDATE a = b;
-ERROR HY000: Field 'b' doesn't have a default value
-INSERT INTO t1 (a) VALUES (1) ON DUPLICATE KEY UPDATE b = a;
-INSERT INTO t1 (a) VALUES (1) ON DUPLICATE KEY UPDATE b = b;
-SELECT * FROM t1;
-a b
-1 1
-DROP TABLE t1;
-CREATE TABLE t1 (f1 INT AUTO_INCREMENT PRIMARY KEY,
-f2 VARCHAR(5) NOT NULL UNIQUE);
-INSERT t1 (f2) VALUES ('test') ON DUPLICATE KEY UPDATE f1 = LAST_INSERT_ID(f1);
-SELECT LAST_INSERT_ID();
-LAST_INSERT_ID()
-1
-INSERT t1 (f2) VALUES ('test') ON DUPLICATE KEY UPDATE f1 = LAST_INSERT_ID(f1);
-SELECT LAST_INSERT_ID();
-LAST_INSERT_ID()
-1
-DROP TABLE t1;
-SET SQL_MODE='NO_AUTO_VALUE_ON_ZERO';
-CREATE TABLE `t1` (
-`id` int(11) PRIMARY KEY auto_increment,
-`f1` varchar(10) NOT NULL UNIQUE
-);
-INSERT IGNORE INTO t1 (f1) VALUES ("test1")
-ON DUPLICATE KEY UPDATE id=LAST_INSERT_ID(id);
-INSERT IGNORE INTO t1 (f1) VALUES ("test1")
-ON DUPLICATE KEY UPDATE id=LAST_INSERT_ID(id);
-SELECT LAST_INSERT_ID();
-LAST_INSERT_ID()
-1
-SELECT * FROM t1;
-id f1
-1 test1
-INSERT IGNORE INTO t1 (f1) VALUES ("test2")
-ON DUPLICATE KEY UPDATE id=LAST_INSERT_ID(id);
-SELECT * FROM t1;
-id f1
-1 test1
-2 test2
-INSERT IGNORE INTO t1 (f1) VALUES ("test2")
-ON DUPLICATE KEY UPDATE id=LAST_INSERT_ID(id);
-SELECT LAST_INSERT_ID();
-LAST_INSERT_ID()
-2
-SELECT * FROM t1;
-id f1
-1 test1
-2 test2
-INSERT IGNORE INTO t1 (f1) VALUES ("test3")
-ON DUPLICATE KEY UPDATE id=LAST_INSERT_ID(id);
-SELECT LAST_INSERT_ID();
-LAST_INSERT_ID()
-3
-SELECT * FROM t1;
-id f1
-1 test1
-2 test2
-3 test3
-DROP TABLE t1;
-CREATE TABLE `t1` (
-`id` int(11) PRIMARY KEY auto_increment,
-`f1` varchar(10) NOT NULL UNIQUE
-);
-INSERT IGNORE INTO t1 (f1) VALUES ("test1")
-ON DUPLICATE KEY UPDATE id=LAST_INSERT_ID(id);
-SELECT LAST_INSERT_ID();
-LAST_INSERT_ID()
-1
-SELECT * FROM t1;
-id f1
-1 test1
-INSERT IGNORE INTO t1 (f1) VALUES ("test1"),("test4")
-ON DUPLICATE KEY UPDATE id=LAST_INSERT_ID(id);
-SELECT LAST_INSERT_ID();
-LAST_INSERT_ID()
-2
-SELECT * FROM t1;
-id f1
-1 test1
-2 test4
-DROP TABLE t1;
-CREATE TABLE `t1` (
-`id` int(11) PRIMARY KEY auto_increment,
-`f1` varchar(10) NOT NULL UNIQUE,
-tim1 timestamp default '2003-01-01 00:00:00' on update current_timestamp
-);
-INSERT INTO t1 (f1) VALUES ("test1");
-SELECT id, f1 FROM t1;
-id f1
-1 test1
-REPLACE INTO t1 VALUES (0,"test1",null);
-SELECT id, f1 FROM t1;
-id f1
-0 test1
-DROP TABLE t1;
-SET SQL_MODE='';
-CREATE TABLE t1 (
-id INT AUTO_INCREMENT PRIMARY KEY,
-c1 CHAR(1) UNIQUE KEY,
-cnt INT DEFAULT 1
-);
-INSERT INTO t1 (c1) VALUES ('A'), ('B'), ('C');
-SELECT * FROM t1;
-id c1 cnt
-1 A 1
-2 B 1
-3 C 1
-INSERT INTO t1 (c1) VALUES ('A'), ('X'), ('Y'), ('Z')
-ON DUPLICATE KEY UPDATE cnt=cnt+1;
-SELECT * FROM t1;
-id c1 cnt
-1 A 2
-2 B 1
-3 C 1
-4 X 1
-5 Y 1
-6 Z 1
-DROP TABLE t1;
-CREATE TABLE t1 (
-id INT AUTO_INCREMENT PRIMARY KEY,
-c1 INT NOT NULL,
-cnt INT DEFAULT 1
-);
-INSERT INTO t1 (id,c1) VALUES (1,10);
-SELECT * FROM t1;
-id c1 cnt
-1 10 1
-CREATE TABLE t2 (id INT, c1 INT);
-INSERT INTO t2 VALUES (1,NULL), (2,2);
-INSERT INTO t1 (id,c1) SELECT 1,NULL
-ON DUPLICATE KEY UPDATE c1=NULL;
-ERROR 23000: Column 'c1' cannot be null
-SELECT * FROM t1;
-id c1 cnt
-1 10 1
-INSERT IGNORE INTO t1 (id,c1) SELECT 1,NULL
-ON DUPLICATE KEY UPDATE c1=NULL, cnt=cnt+1;
-Warnings:
-Warning 1048 Column 'c1' cannot be null
-SELECT * FROM t1;
-id c1 cnt
-1 0 2
-INSERT IGNORE INTO t1 (id,c1) SELECT * FROM t2
-ON DUPLICATE KEY UPDATE c1=NULL, cnt=cnt+1;
-Warnings:
-Warning 1048 Column 'c1' cannot be null
-SELECT * FROM t1;
-id c1 cnt
-1 0 3
-2 2 1
-DROP TABLE t1;
-DROP TABLE t2;
-create table t1(f1 int primary key,
-f2 timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP);
-insert into t1(f1) values(1);
-select @stamp1:=f2 from t1;
-@stamp1:=f2
-#
-insert into t1(f1) values(1) on duplicate key update f1=1;
-select @stamp2:=f2 from t1;
-@stamp2:=f2
-#
-select if( @stamp1 = @stamp2, "correct", "wrong");
-if( @stamp1 = @stamp2, "correct", "wrong")
-correct
-drop table t1;
diff --git a/mysql-test/r/insert_update_autoinc-7150.result b/mysql-test/r/insert_update_autoinc-7150.result
deleted file mode 100644
index 96773479310..00000000000
--- a/mysql-test/r/insert_update_autoinc-7150.result
+++ /dev/null
@@ -1,9 +0,0 @@
-create table t1 (a int(10) auto_increment primary key, b int(11));
-insert t1 values (null,1);
-insert t1 values (null,2), (1,-1), (null,3) on duplicate key update b=values(b);
-select * from t1;
-a b
-1 -1
-2 2
-3 3
-drop table t1;
diff --git a/mysql-test/r/intersect.result b/mysql-test/r/intersect.result
deleted file mode 100644
index b589e8bd17e..00000000000
--- a/mysql-test/r/intersect.result
+++ /dev/null
@@ -1,775 +0,0 @@
-create table t1 (a int, b int);
-create table t2 (c int, d int);
-insert into t1 values (1,1),(2,2);
-insert into t2 values (2,2),(3,3);
-(select a,b from t1) intersect (select c,d from t2);
-a b
-2 2
-drop tables t1,t2;
-create table t1 (a int, b int) engine=MyISAM;
-create table t2 (c int, d int) engine=MyISAM;
-create table t3 (e int, f int) engine=MyISAM;
-insert into t1 values (1,1),(2,2),(3,3);
-insert into t2 values (2,2),(3,3),(4,4);
-insert into t3 values (1,1),(2,2),(5,5);
-(select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3);
-a b
-2 2
-EXPLAIN (select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-2 INTERSECT t2 ALL NULL NULL NULL NULL 3
-3 INTERSECT t3 ALL NULL NULL NULL NULL 3
-NULL INTERSECT RESULT <intersect1,2,3> ALL NULL NULL NULL NULL NULL
-EXPLAIN extended (select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-2 INTERSECT t2 ALL NULL NULL NULL NULL 3 100.00
-3 INTERSECT t3 ALL NULL NULL NULL NULL 3 100.00
-NULL INTERSECT RESULT <intersect1,2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 (/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1`) intersect (/* select#2 */ select `test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2`) intersect (/* select#3 */ select `test`.`t3`.`e` AS `e`,`test`.`t3`.`f` AS `f` from `test`.`t3`)
-EXPLAIN extended select * from ((select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3)) a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 3 100.00
-3 INTERSECT t2 ALL NULL NULL NULL NULL 3 100.00
-4 INTERSECT t3 ALL NULL NULL NULL NULL 3 100.00
-NULL INTERSECT RESULT <intersect2,3,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `a`.`a` AS `a`,`a`.`b` AS `b` from ((/* select#2 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1`) intersect (/* select#3 */ select `test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2`) intersect (/* select#4 */ select `test`.`t3`.`e` AS `e`,`test`.`t3`.`f` AS `f` from `test`.`t3`)) `a`
-EXPLAIN format=json (select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<intersect1,2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "INTERSECT",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- }
- ]
- }
- }
-}
-ANALYZE format=json (select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3);
-ANALYZE
-{
- "query_block": {
- "union_result": {
- "table_name": "<intersect1,2,3>",
- "access_type": "ALL",
- "r_loops": 1,
- "r_rows": 1,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 3,
- "r_rows": 3,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "INTERSECT",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 3,
- "r_rows": 3,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 3,
- "r_rows": 3,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- }
- ]
- }
- }
-}
-ANALYZE format=json select * from ((select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3)) a;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 3,
- "r_rows": 1,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect2,3,4>",
- "access_type": "ALL",
- "r_loops": 1,
- "r_rows": 1,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 3,
- "r_rows": 3,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 3,
- "r_rows": 3,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 4,
- "operation": "INTERSECT",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 3,
- "r_rows": 3,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-select * from ((select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3)) a;
-a b
-2 2
-prepare stmt from "(select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3);";
-execute stmt;
-a b
-2 2
-execute stmt;
-a b
-2 2
-prepare stmt from "select * from ((select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3)) a";
-execute stmt;
-a b
-2 2
-execute stmt;
-a b
-2 2
-(select a,b from t1) intersect (select c,e from t2,t3);
-a b
-2 2
-EXPLAIN (select a,b from t1) intersect (select c,e from t2,t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-2 INTERSECT t2 ALL NULL NULL NULL NULL 3
-2 INTERSECT t3 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-NULL INTERSECT RESULT <intersect1,2> ALL NULL NULL NULL NULL NULL
-EXPLAIN extended (select a,b from t1) intersect (select c,e from t2,t3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-2 INTERSECT t2 ALL NULL NULL NULL NULL 3 100.00
-2 INTERSECT t3 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (flat, BNL join)
-NULL INTERSECT RESULT <intersect1,2> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 (/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1`) intersect (/* select#2 */ select `test`.`t2`.`c` AS `c`,`test`.`t3`.`e` AS `e` from `test`.`t2` join `test`.`t3`)
-EXPLAIN extended select * from ((select a,b from t1) intersect (select c,e from t2,t3)) a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 3 100.00
-3 INTERSECT t2 ALL NULL NULL NULL NULL 3 100.00
-3 INTERSECT t3 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (flat, BNL join)
-NULL INTERSECT RESULT <intersect2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `a`.`a` AS `a`,`a`.`b` AS `b` from ((/* select#2 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1`) intersect (/* select#3 */ select `test`.`t2`.`c` AS `c`,`test`.`t3`.`e` AS `e` from `test`.`t2` join `test`.`t3`)) `a`
-EXPLAIN format=json (select a,b from t1) intersect (select c,e from t2,t3);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<intersect1,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "INTERSECT",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL"
- }
- }
- }
- ]
- }
- }
-}
-ANALYZE format=json (select a,b from t1) intersect (select c,e from t2,t3);
-ANALYZE
-{
- "query_block": {
- "union_result": {
- "table_name": "<intersect1,2>",
- "access_type": "ALL",
- "r_loops": 1,
- "r_rows": 1,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 3,
- "r_rows": 3,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "INTERSECT",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 3,
- "r_rows": 3,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 3,
- "r_rows": 3,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "r_filtered": 100
- }
- }
- }
- ]
- }
- }
-}
-ANALYZE format=json select * from ((select a,b from t1) intersect (select c,e from t2,t3)) a;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "<derived2>",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 3,
- "r_rows": 1,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100,
- "materialized": {
- "query_block": {
- "union_result": {
- "table_name": "<intersect2,3>",
- "access_type": "ALL",
- "r_loops": 1,
- "r_rows": 1,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 2,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 3,
- "r_rows": 3,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "INTERSECT",
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 3,
- "r_rows": 3,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "block-nl-join": {
- "table": {
- "table_name": "t3",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 3,
- "r_rows": 3,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "buffer_type": "flat",
- "buffer_size": "256Kb",
- "join_type": "BNL",
- "r_filtered": 100
- }
- }
- }
- ]
- }
- }
- }
- }
- }
-}
-select * from ((select a,b from t1) intersect (select c,e from t2,t3)) a;
-a b
-2 2
-prepare stmt from "(select a,b from t1) intersect (select c,e from t2,t3);";
-execute stmt;
-a b
-2 2
-execute stmt;
-a b
-2 2
-prepare stmt from "select * from ((select a,b from t1) intersect (select c,e from t2,t3)) a";
-execute stmt;
-a b
-2 2
-execute stmt;
-a b
-2 2
-drop tables t1,t2,t3;
-select 1 as a from dual intersect select 1 from dual;
-a
-1
-(select 1 from dual) intersect (select 1 from dual);
-1
-1
-(select 1 from dual into @v) intersect (select 1 from dual);
-ERROR HY000: Incorrect usage of INTERSECT and INTO
-select 1 from dual ORDER BY 1 intersect select 1 from dual;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'intersect select 1 from dual' at line 1
-select 1 as a from dual union all select 1 from dual;
-a
-1
-1
-select 1 from dual intersect all select 1 from dual;
-ERROR HY000: Incorrect usage of INTERSECT and ALL
-create table t1 (a int, b blob, a1 int, b1 blob);
-create table t2 (c int, d blob, c1 int, d1 blob);
-insert into t1 values (1,"ddd", 1, "sdfrrwwww"),(2, "fgh", 2, "dffggtt");
-insert into t2 values (2, "fgh", 2, "dffggtt"),(3, "ffggddd", 3, "dfgg");
-(select a,b,b1 from t1) intersect (select c,d,d1 from t2);
-a b b1
-2 fgh dffggtt
-drop tables t1,t2;
-create table t1 (a int, b blob) engine=MyISAM;
-create table t2 (c int, d blob) engine=MyISAM;
-create table t3 (e int, f blob) engine=MyISAM;
-insert into t1 values (1,1),(2,2),(3,3);
-insert into t2 values (2,2),(3,3),(4,4);
-insert into t3 values (1,1),(2,2),(5,5);
-(select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3);
-a b
-2 2
-select * from ((select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3)) a;
-a b
-2 2
-prepare stmt from "(select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3);";
-execute stmt;
-a b
-2 2
-execute stmt;
-a b
-2 2
-prepare stmt from "select * from ((select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3)) a";
-execute stmt;
-a b
-2 2
-execute stmt;
-a b
-2 2
-create table t4 (select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3);
-show create table t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `a` int(11) DEFAULT NULL,
- `b` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop tables t1,t2,t3,t4;
-create table t1 (a int, b blob) engine=MyISAM;
-create table t2 (c int, d blob) engine=MyISAM;
-create table t3 (e int, f blob) engine=MyISAM;
-insert into t1 values (1,1),(2,2),(3,3);
-insert into t2 values (2,2),(3,3);
-insert into t3 values (1,1),(2,2),(3,3);
-(select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3) union (select 4,4);
-a b
-2 2
-3 3
-4 4
-(select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3) union (select 4,4) except (select 2,2);
-a b
-3 3
-4 4
-drop tables t1,t2,t3;
-create table t1 (a int, b int);
-create table t2 (c int, d int);
-create table t3 (e int, f int);
-insert into t1 values (1,1),(2,2),(3,3);
-insert into t2 values (2,2),(3,3);
-insert into t3 values (1,1),(2,2),(3,3);
-(select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3) union (select 4,4);
-a b
-2 2
-3 3
-4 4
-(select a,b from t1) intersect (select c,d from t2) intersect (select e,f from t3) union (select 4,4) except (select 2,2);
-a b
-3 3
-4 4
-drop tables t1,t2,t3;
-#
-# INTERSECT precedence
-#
-create table t1 (a int, b blob) engine=MyISAM;
-create table t2 (c int, d blob) engine=MyISAM;
-create table t3 (e int, f blob) engine=MyISAM;
-insert into t1 values (5,5),(6,6);
-insert into t2 values (2,2),(3,3);
-insert into t3 values (1,1),(3,3);
-(select a,b from t1) union (select c,d from t2) intersect (select e,f from t3) union (select 4,4);
-a b
-3 3
-4 4
-5 5
-6 6
-explain extended
-(select a,b from t1) union (select c,d from t2) intersect (select e,f from t3) union (select 4,4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-3 UNION <derived2> ALL NULL NULL NULL NULL 2 100.00
-2 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00
-4 INTERSECT t3 ALL NULL NULL NULL NULL 2 100.00
-NULL INTERSECT RESULT <intersect2,4> ALL NULL NULL NULL NULL NULL NULL
-5 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,3,5> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 (/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1`) union /* select#3 */ select `__3`.`c` AS `c`,`__3`.`d` AS `d` from ((/* select#2 */ select `test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2`) intersect (/* select#4 */ select `test`.`t3`.`e` AS `e`,`test`.`t3`.`f` AS `f` from `test`.`t3`)) `__3` union (/* select#5 */ select 4 AS `4`,4 AS `4`)
-(select e,f from t3) intersect (select c,d from t2) union (select a,b from t1) union (select 4,4);
-e f
-3 3
-4 4
-5 5
-6 6
-explain extended
-(select e,f from t3) intersect (select c,d from t2) union (select a,b from t1) union (select 4,4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 100.00
-2 INTERSECT t2 ALL NULL NULL NULL NULL 2 100.00
-3 UNION t1 ALL NULL NULL NULL NULL 2 100.00
-4 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNIT RESULT <unit1,2,3,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 (/* select#1 */ select `test`.`t3`.`e` AS `e`,`test`.`t3`.`f` AS `f` from `test`.`t3`) intersect (/* select#2 */ select `test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2`) union (/* select#3 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1`) union (/* select#4 */ select 4 AS `4`,4 AS `4`)
-(/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1`) union /* select#3 */ select `__3`.`c` AS `c`,`__3`.`d` AS `d` from ((/* select#2 */ select `test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2`) intersect (/* select#4 */ select `test`.`t3`.`e` AS `e`,`test`.`t3`.`f` AS `f` from `test`.`t3`)) `__3` union (/* select#5 */ select 4 AS `4`,4 AS `4`);
-a b
-3 3
-4 4
-5 5
-6 6
-prepare stmt from "(select a,b from t1) union (select c,d from t2) intersect (select e,f from t3) union (select 4,4)";
-execute stmt;
-a b
-5 5
-6 6
-3 3
-4 4
-execute stmt;
-a b
-5 5
-6 6
-3 3
-4 4
-create view v1 as (select a,b from t1) union (select c,d from t2) intersect (select e,f from t3) union (select 4,4);
-select b,a,b+1 from v1;
-b a b+1
-3 3 4
-4 4 5
-5 5 6
-6 6 7
-select b,a,b+1 from v1 where a > 3;
-b a b+1
-4 4 5
-5 5 6
-6 6 7
-create procedure p1()
-select * from v1;
-call p1();
-a b
-3 3
-4 4
-5 5
-6 6
-call p1();
-a b
-3 3
-4 4
-5 5
-6 6
-drop procedure p1;
-create procedure p1()
-(select a,b from t1) union (select c,d from t2) intersect (select e,f from t3) union (select 4,4);
-call p1();
-a b
-3 3
-4 4
-5 5
-6 6
-call p1();
-a b
-3 3
-4 4
-5 5
-6 6
-drop procedure p1;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS (select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1`) union select `__3`.`c` AS `c`,`__3`.`d` AS `d` from ((select `test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2`) intersect (select `test`.`t3`.`e` AS `e`,`test`.`t3`.`f` AS `f` from `test`.`t3`)) `__3` union (select 4 AS `4`,4 AS `4`) latin1 latin1_swedish_ci
-drop view v1;
-drop tables t1,t2,t3;
-#
-# MDEV-14346:incorrect result of intersect with ANY/ALL/IN subquery
-#
-CREATE TABLE t (i INT);
-INSERT INTO t VALUES (1),(2);
-SELECT * FROM t WHERE i != ANY ( SELECT 6 INTERSECT SELECT 3 );
-i
-select i from t where
-exists ((select 6 as r from dual having t.i <> 6)
-intersect
-(select 3 from dual having t.i <> 3));
-i
-drop table t;
-#
-# MDEV-13749: Server crashes in _ma_unique_hash /
-# JOIN_CACHE::generate_full_extensions on INTERSECT
-#
-CREATE TABLE t1 (a varchar(32)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-('Jakarta'),('Lisbon'),('Honolulu'),('Lusaka'),('Barcelona'),('Taipei'),
-('Brussels'),('Orlando'),('Osaka'),('Quito'),('Lima'),('Tunis'),
-('Unalaska'),('Rotterdam'),('Zagreb'),('Ufa'),('Ryazan'),('Xiamen'),
-('London'),('Izmir'),('Samara'),('Bern'),('Zhengzhou'),('Vladivostok'),
-('Yangon'),('Victoria'),('Warsaw'),('Luanda'),('Leon'),('Bangkok'),
-('Wellington'),('Zibo'),('Qiqihar'),('Delhi'),('Hamburg'),('Ottawa'),
-('Vaduz');
-CREATE TABLE t2 (b varchar(32)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-('Gaza'),('Jeddah'),('Beirut'),('Incheon'),('Tbilisi'),('Izmir'),
-('Quito'),('Riga'),('Freetown'),('Zagreb'),('Caracas'),('Orlando'),
-('Kingston'),('Turin'),('Xinyang'),('Osaka'),('Albany'),('Geneva'),
-('Omsk'),('Kazan'),('Quezon'),('Indore'),('Odessa'),('Xiamen'),
-('Winnipeg'),('Yakutsk'),('Nairobi'),('Ufa'),('Helsinki'),('Vilnius'),
-('Aden'),('Liverpool'),('Honolulu'),('Frankfurt'),('Glasgow'),
-('Vienna'),('Jackson'),('Jakarta'),('Sydney'),('Oslo'),('Novgorod'),
-('Norilsk'),('Izhevsk'),('Istanbul'),('Nice');
-CREATE TABLE t3 (c varchar(32)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES
-('Nicosia'),('Istanbul'),('Richmond'),('Stockholm'),('Dublin'),
-('Wichita'),('Warsaw'),('Glasgow'),('Winnipeg'),('Irkutsk'),('Quito'),
-('Xiamen'),('Berlin'),('Rome'),('Denver'),('Dallas'),('Kabul'),
-('Prague'),('Izhevsk'),('Tirana'),('Sofia'),('Detroit'),('Sorbonne');
-select count(*) from (
-SELECT * FROM t1 LEFT OUTER JOIN t2 LEFT OUTER JOIN t3 ON b < c ON a > b
-INTERSECT
-SELECT * FROM t1 LEFT OUTER JOIN t2 LEFT OUTER JOIN t3 ON b < c ON a > b
-) a;
-count(*)
-14848
-drop table t1,t2,t3;
-CREATE TABLE t1 (a varchar(32) not null) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-('Jakarta'),('Lisbon'),('Honolulu'),('Lusaka'),('Barcelona'),('Taipei'),
-('Brussels'),('Orlando'),('Osaka'),('Quito'),('Lima'),('Tunis'),
-('Unalaska'),('Rotterdam'),('Zagreb'),('Ufa'),('Ryazan'),('Xiamen'),
-('London'),('Izmir'),('Samara'),('Bern'),('Zhengzhou'),('Vladivostok'),
-('Yangon'),('Victoria'),('Warsaw'),('Luanda'),('Leon'),('Bangkok'),
-('Wellington'),('Zibo'),('Qiqihar'),('Delhi'),('Hamburg'),('Ottawa'),
-('Vaduz');
-CREATE TABLE t2 (b varchar(32) not null) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-('Gaza'),('Jeddah'),('Beirut'),('Incheon'),('Tbilisi'),('Izmir'),
-('Quito'),('Riga'),('Freetown'),('Zagreb'),('Caracas'),('Orlando'),
-('Kingston'),('Turin'),('Xinyang'),('Osaka'),('Albany'),('Geneva'),
-('Omsk'),('Kazan'),('Quezon'),('Indore'),('Odessa'),('Xiamen'),
-('Winnipeg'),('Yakutsk'),('Nairobi'),('Ufa'),('Helsinki'),('Vilnius'),
-('Aden'),('Liverpool'),('Honolulu'),('Frankfurt'),('Glasgow'),
-('Vienna'),('Jackson'),('Jakarta'),('Sydney'),('Oslo'),('Novgorod'),
-('Norilsk'),('Izhevsk'),('Istanbul'),('Nice');
-CREATE TABLE t3 (c varchar(32) not null) ENGINE=MyISAM;
-INSERT INTO t3 VALUES
-('Nicosia'),('Istanbul'),('Richmond'),('Stockholm'),('Dublin'),
-('Wichita'),('Warsaw'),('Glasgow'),('Winnipeg'),('Irkutsk'),('Quito'),
-('Xiamen'),('Berlin'),('Rome'),('Denver'),('Dallas'),('Kabul'),
-('Prague'),('Izhevsk'),('Tirana'),('Sofia'),('Detroit'),('Sorbonne');
-select count(*) from (
-SELECT * FROM t1 LEFT OUTER JOIN t2 LEFT OUTER JOIN t3 ON b < c ON a > b
-INTERSECT
-SELECT * FROM t1 LEFT OUTER JOIN t2 LEFT OUTER JOIN t3 ON b < c ON a > b
-) a;
-count(*)
-14848
-drop table t1,t2,t3;
-# End of 10.3 tests
diff --git a/mysql-test/r/invisible_binlog.result b/mysql-test/r/invisible_binlog.result
deleted file mode 100644
index 088bc858e28..00000000000
--- a/mysql-test/r/invisible_binlog.result
+++ /dev/null
@@ -1,65 +0,0 @@
-include/master-slave.inc
-[connection master]
-connection master;
-create table t1(a int , b int invisible);
-insert into t1 values(1);
-insert into t1(a,b) values(2,2);
-select a,b from t1;
-a b
-1 NULL
-2 2
-desc t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b int(11) YES NULL INVISIBLE
-create table t2(a int , b int invisible default 5);
-insert into t2 values(1);
-insert into t2(a,b) values(2,2);
-select a,b from t2;
-a b
-1 5
-2 2
-desc t2;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b int(11) YES 5 INVISIBLE
-connection slave;
-select * from t1;
-a
-1
-2
-select a,b from t1;
-a b
-1 NULL
-2 2
-desc t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b int(11) YES NULL INVISIBLE
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) INVISIBLE DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t2;
-a
-1
-2
-select a,b from t2;
-a b
-1 5
-2 2
-desc t2;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b int(11) YES 5 INVISIBLE
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) INVISIBLE DEFAULT 5
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection master;
-drop table t1,t2;
-include/rpl_end.inc
diff --git a/mysql-test/r/invisible_field.result b/mysql-test/r/invisible_field.result
deleted file mode 100644
index c331f3fca88..00000000000
--- a/mysql-test/r/invisible_field.result
+++ /dev/null
@@ -1,553 +0,0 @@
-FLUSH STATUS;
-create table t1(abc int primary key, xyz int invisible);
-SHOW STATUS LIKE 'Feature_invisible_columns';
-Variable_name Value
-Feature_invisible_columns 1
-desc t1;
-Field Type Null Key Default Extra
-abc int(11) NO PRI NULL
-xyz int(11) YES NULL INVISIBLE
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `abc` int(11) NOT NULL,
- `xyz` int(11) INVISIBLE DEFAULT NULL,
- PRIMARY KEY (`abc`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select TABLE_CATALOG,TABLE_SCHEMA,TABLE_NAME,COLUMN_NAME,EXTRA from INFORMATION_SCHEMA.COLUMNS where TABLE_SCHEMA='test' and TABLE_NAME='t1';
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME EXTRA
-def test t1 abc
-def test t1 xyz INVISIBLE
-drop table t1;
-create table t1(a1 int invisible);
-ERROR 42000: A table must have at least 1 column
-create table t1(a1 blob,invisible(a1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(a1))' at line 1
-create table t1(a1 int primary key invisible ,a2 int unique invisible , a3 blob,a4 int not null invisible unique);
-ERROR HY000: Invisible column `a1` must have a default value
-create table t1(abc int not null invisible);
-ERROR 42000: A table must have at least 1 column
-MDEV-14849 CREATE + ALTER with user-invisible columns produce invalid table definition
-create or replace table t1 (pk int auto_increment primary key invisible, i int);
-alter table t1 modify pk int invisible;
-ERROR HY000: Invisible column `pk` must have a default value
-drop table t1;
-create table t1(a int invisible, b int);
-insert into t1 values(1);
-insert into t1(a) values(2);
-insert into t1(b) values(3);
-insert into t1(a,b) values(5,5);
-select * from t1;
-b
-1
-NULL
-3
-5
-select a,b from t1;
-a b
-NULL 1
-2 NULL
-NULL 3
-5 5
-delete from t1;
-insert into t1 values(1),(2),(3),(4);
-select * from t1;
-b
-1
-2
-3
-4
-select a from t1;
-a
-NULL
-NULL
-NULL
-NULL
-drop table t1;
-#more complex case of invisible
-create table t1(a int , b int invisible , c int invisible auto_increment unique, d blob , e int unique, f int);
-desc t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b int(11) YES NULL INVISIBLE
-c int(11) NO PRI NULL auto_increment, INVISIBLE
-d blob YES NULL
-e int(11) YES UNI NULL
-f int(11) YES NULL
-insert into t1 values(1,'d blob',1,1),(1,'d blob',11,1),(1,'d blob',2,1),(1,'d blob',3,1),(1,'d blob',41,1);
-select * from t1;
-a d e f
-1 d blob 1 1
-1 d blob 11 1
-1 d blob 2 1
-1 d blob 3 1
-1 d blob 41 1
-select a,b,c,d,e,f from t1;
-a b c d e f
-1 NULL 1 d blob 1 1
-1 NULL 2 d blob 11 1
-1 NULL 3 d blob 2 1
-1 NULL 4 d blob 3 1
-1 NULL 5 d blob 41 1
-drop table t1;
-#more complex case of invisible with sql_mode=NO_AUTO_VALUE_ON_ZERO
-set sql_mode='NO_AUTO_VALUE_ON_ZERO';
-create table t1(a int , b int invisible , c int invisible auto_increment unique, d blob , e int unique, f int);
-desc t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b int(11) YES NULL INVISIBLE
-c int(11) NO PRI NULL auto_increment, INVISIBLE
-d blob YES NULL
-e int(11) YES UNI NULL
-f int(11) YES NULL
-insert into t1 values(1,'d blob',1,1),(1,'d blob',11,1),(1,'d blob',2,1),(1,'d blob',3,1),(1,'d blob',41,1);
-select * from t1;
-a d e f
-1 d blob 1 1
-1 d blob 11 1
-1 d blob 2 1
-1 d blob 3 1
-1 d blob 41 1
-select a,b,c,d,e,f from t1;
-a b c d e f
-1 NULL 1 d blob 1 1
-1 NULL 2 d blob 11 1
-1 NULL 3 d blob 2 1
-1 NULL 4 d blob 3 1
-1 NULL 5 d blob 41 1
-drop table t1;
-set sql_mode='';
-create table sdsdsd(a int , b int, invisible(a,b));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(a,b))' at line 1
-create table t1(a int,abc int as (a mod 3) virtual invisible);
-desc t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-abc int(11) YES NULL VIRTUAL GENERATED, INVISIBLE
-insert into t1 values(1,default);
-ERROR 21S01: Column count doesn't match value count at row 1
-insert into t1 values(1),(22),(233);
-select * from t1;
-a
-1
-22
-233
-select a,abc from t1;
-a abc
-1 1
-22 1
-233 2
-drop table t1;
-create table t1(abc int primary key invisible auto_increment, a int);
-desc t1;
-Field Type Null Key Default Extra
-abc int(11) NO PRI NULL auto_increment, INVISIBLE
-a int(11) YES NULL
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `abc` int(11) NOT NULL INVISIBLE AUTO_INCREMENT,
- `a` int(11) DEFAULT NULL,
- PRIMARY KEY (`abc`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values(1);
-insert into t1 values(2);
-insert into t1 values(3);
-select * from t1;
-a
-1
-2
-3
-select abc,a from t1;
-abc a
-1 1
-2 2
-3 3
-delete from t1;
-insert into t1 values(1),(2),(3),(4),(6);
-select abc,a from t1;
-abc a
-4 1
-5 2
-6 3
-7 4
-8 6
-drop table t1;
-create table t1(abc int);
-alter table t1 change abc ss int invisible;
-ERROR 42000: A table must have at least 1 column
-alter table t1 add column xyz int;
-alter table t1 modify column abc int ;
-desc t1;
-Field Type Null Key Default Extra
-abc int(11) YES NULL
-xyz int(11) YES NULL
-insert into t1 values(22);
-ERROR 21S01: Column count doesn't match value count at row 1
-alter table t1 modify column abc int invisible;
-desc t1;
-Field Type Null Key Default Extra
-abc int(11) YES NULL INVISIBLE
-xyz int(11) YES NULL
-insert into t1 values(12);
-drop table t1;
-#some test on copy table structure with table data;
-#table with invisible fields and unique keys;
-create table t1(a int , b int invisible , c int invisible auto_increment unique, d blob , e int unique, f int);
-desc t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b int(11) YES NULL INVISIBLE
-c int(11) NO PRI NULL auto_increment, INVISIBLE
-d blob YES NULL
-e int(11) YES UNI NULL
-f int(11) YES NULL
-insert into t1 values(1,'d blob',1,1),(1,'d blob',11,1),(1,'d blob',2,1),(1,'d blob',3,1),(1,'d blob',41,1);
-select * from t1;
-a d e f
-1 d blob 1 1
-1 d blob 11 1
-1 d blob 2 1
-1 d blob 3 1
-1 d blob 41 1
-select a,b,c,d,e,f from t1;
-a b c d e f
-1 NULL 1 d blob 1 1
-1 NULL 2 d blob 11 1
-1 NULL 3 d blob 2 1
-1 NULL 4 d blob 3 1
-1 NULL 5 d blob 41 1
-#this won't copy invisible fields and keys;
-create table t2 as select * from t1;
-desc t2;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-d blob YES NULL
-e int(11) YES NULL
-f int(11) YES NULL
-select * from t2;
-a d e f
-1 d blob 1 1
-1 d blob 11 1
-1 d blob 2 1
-1 d blob 3 1
-1 d blob 41 1
-select a,b,c,d,e,f from t2;
-ERROR 42S22: Unknown column 'b' in 'field list'
-drop table t2;
-#now this will copy invisible fields
-create table t2 as select a,b,c,d,e,f from t1;
-desc t2;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b int(11) YES NULL
-c int(11) NO 0
-d blob YES NULL
-e int(11) YES NULL
-f int(11) YES NULL
-select * from t2;
-a b c d e f
-1 NULL 1 d blob 1 1
-1 NULL 2 d blob 11 1
-1 NULL 3 d blob 2 1
-1 NULL 4 d blob 3 1
-1 NULL 5 d blob 41 1
-select a,b,c,d,e,f from t2;
-a b c d e f
-1 NULL 1 d blob 1 1
-1 NULL 2 d blob 11 1
-1 NULL 3 d blob 2 1
-1 NULL 4 d blob 3 1
-1 NULL 5 d blob 41 1
-drop table t2,t1;
-#some test related to copy of data from one table to another;
-create table t1(a int , b int invisible , c int invisible auto_increment unique, d blob , e int unique, f int);
-insert into t1 values(1,'d blob',1,1),(1,'d blob',11,1),(1,'d blob',2,1),(1,'d blob',3,1),(1,'d blob',41,1);
-select a,b,c,d,e,f from t1;
-a b c d e f
-1 NULL 1 d blob 1 1
-1 NULL 2 d blob 11 1
-1 NULL 3 d blob 2 1
-1 NULL 4 d blob 3 1
-1 NULL 5 d blob 41 1
-create table t2(a int , b int invisible , c int invisible , d blob , e int unique, f int);
-insert into t2 select * from t1;
-select a,b,c,d,e,f from t2;
-a b c d e f
-1 NULL NULL d blob 1 1
-1 NULL NULL d blob 11 1
-1 NULL NULL d blob 2 1
-1 NULL NULL d blob 3 1
-1 NULL NULL d blob 41 1
-truncate t2;
-insert into t2 (a,b,c,d,e,f) select a,b,c,d,e,f from t1;
-select a,b,c,d,e,f from t2;
-a b c d e f
-1 NULL 1 d blob 1 1
-1 NULL 2 d blob 11 1
-1 NULL 3 d blob 2 1
-1 NULL 4 d blob 3 1
-1 NULL 5 d blob 41 1
-truncate t2;
-drop table t1,t2;
-#some test related to creating view on table with invisible column;
-create table t1(a int , b int invisible , c int invisible auto_increment unique, d blob , e int unique, f int);
-insert into t1 values(1,'d blob',1,1),(1,'d blob',11,1),(1,'d blob',2,1),(1,'d blob',3,1),(1,'d blob',41,1);
-create view v as select * from t1;
-desc v;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-d blob YES NULL
-e int(11) YES NULL
-f int(11) YES NULL
-select * from v;
-a d e f
-1 d blob 1 1
-1 d blob 11 1
-1 d blob 2 1
-1 d blob 3 1
-1 d blob 41 1
-#v does not have invisible column;
-select a,b,c,d,e,f from v;
-ERROR 42S22: Unknown column 'b' in 'field list'
-insert into v values(1,21,32,4);
-select * from v;
-a d e f
-1 d blob 1 1
-1 d blob 11 1
-1 d blob 2 1
-1 d blob 3 1
-1 d blob 41 1
-1 21 32 4
-insert into v(a,b,c,d,e,f) values(1,12,3,4,5,6);
-ERROR 42S22: Unknown column 'b' in 'field list'
-drop view v;
-create view v as select a,b,c,d,e,f from t1;
-desc v;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b int(11) YES NULL
-c int(11) NO 0
-d blob YES NULL
-e int(11) YES NULL
-f int(11) YES NULL
-select * from v;
-a b c d e f
-1 NULL 1 d blob 1 1
-1 NULL 2 d blob 11 1
-1 NULL 3 d blob 2 1
-1 NULL 4 d blob 3 1
-1 NULL 5 d blob 41 1
-1 NULL 6 21 32 4
-#v does have invisible column but they aren't invisible anymore.
-select a,b,c,d,e,f from v;
-a b c d e f
-1 NULL 1 d blob 1 1
-1 NULL 2 d blob 11 1
-1 NULL 3 d blob 2 1
-1 NULL 4 d blob 3 1
-1 NULL 5 d blob 41 1
-1 NULL 6 21 32 4
-insert into v values(1,26,33,4,45,66);
-select a,b,c,d,e,f from v;
-a b c d e f
-1 NULL 1 d blob 1 1
-1 NULL 2 d blob 11 1
-1 NULL 3 d blob 2 1
-1 NULL 4 d blob 3 1
-1 NULL 5 d blob 41 1
-1 NULL 6 21 32 4
-1 26 33 4 45 66
-insert into v(a,b,c,d,e,f) values(1,32,31,41,5,6);
-select a,b,c,d,e,f from v;
-a b c d e f
-1 NULL 1 d blob 1 1
-1 NULL 2 d blob 11 1
-1 NULL 3 d blob 2 1
-1 NULL 4 d blob 3 1
-1 NULL 5 d blob 41 1
-1 NULL 6 21 32 4
-1 26 33 4 45 66
-1 32 31 41 5 6
-drop view v;
-drop table t1;
-#now invisible column in where and some join query
-create table t1 (a int unique , b int invisible unique, c int unique invisible);
-insert into t1(a,b,c) values(1,1,1);
-insert into t1(a,b,c) values(2,2,2);
-insert into t1(a,b,c) values(3,3,3);
-insert into t1(a,b,c) values(4,4,4);
-insert into t1(a,b,c) values(21,21,26);
-insert into t1(a,b,c) values(31,31,35);
-insert into t1(a,b,c) values(41,41,45);
-insert into t1(a,b,c) values(22,22,24);
-insert into t1(a,b,c) values(32,32,33);
-insert into t1(a,b,c) values(42,42,43);
-explain select * from t1 where b=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const b b 5 const 1
-select * from t1 where b=3;
-a
-3
-explain select * from t1 where c=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const c c 5 const 1
-select * from t1 where c=3;
-a
-3
-create table t2 as select a,b,c from t1;
-desc t2;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b int(11) YES NULL
-c int(11) YES NULL
-explain select * from t1,t2 where t1.b = t2.c and t1.c = t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 10
-1 SIMPLE t1 ALL b,c NULL NULL NULL 10 Using where; Using join buffer (flat, BNL join)
-select * from t1,t2 where t1.b = t2.c and t1.c = t2.b;
-a a b c
-1 1 1 1
-2 2 2 2
-3 3 3 3
-4 4 4 4
-drop table t1,t2;
-#Unhide invisible columns
-create table t1 (a int primary key, b int invisible, c int invisible unique);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) INVISIBLE DEFAULT NULL,
- `c` int(11) INVISIBLE DEFAULT NULL,
- PRIMARY KEY (`a`),
- UNIQUE KEY `c` (`c`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-desc t1;
-Field Type Null Key Default Extra
-a int(11) NO PRI NULL
-b int(11) YES NULL INVISIBLE
-c int(11) YES UNI NULL INVISIBLE
-alter table t1 modify column b int;
-desc t1;
-Field Type Null Key Default Extra
-a int(11) NO PRI NULL
-b int(11) YES NULL
-c int(11) YES UNI NULL INVISIBLE
-alter table t1 change column c d int;
-desc t1;
-Field Type Null Key Default Extra
-a int(11) NO PRI NULL
-b int(11) YES NULL
-d int(11) YES UNI NULL
-drop table t1;
-SHOW STATUS LIKE 'Feature_invisible_columns';
-Variable_name Value
-Feature_invisible_columns 52
-#invisible is non reserved
-create table t1(a int unique , invisible int invisible, c int );
-desc t1;
-Field Type Null Key Default Extra
-a int(11) YES UNI NULL
-invisible int(11) YES NULL INVISIBLE
-c int(11) YES NULL
-alter table t1 change column invisible hid int invisible;
-desc t1;
-Field Type Null Key Default Extra
-a int(11) YES UNI NULL
-hid int(11) YES NULL INVISIBLE
-c int(11) YES NULL
-drop table t1;
-CREATE TABLE t1 (b int);
-INSERT t1 values(1);
-INSERT t1 values(2);
-INSERT t1 values(3);
-INSERT t1 values(4);
-INSERT t1 values(5);
-CREATE TABLE t2 (a int invisible) SELECT * FROM t1;
-select * from t2 order by b;
-b
-1
-2
-3
-4
-5
-select a,b from t2 order by b;
-a b
-NULL 1
-NULL 2
-NULL 3
-NULL 4
-NULL 5
-CREATE TABLE t3 (b int, a int invisible) SELECT * FROM t1;
-select * from t3 order by b;
-b
-1
-2
-3
-4
-5
-select a,b from t3 order by b;
-a b
-NULL 1
-NULL 2
-NULL 3
-NULL 4
-NULL 5
-CREATE TABLE t4 (b int invisible) SELECT * FROM t1;
-ERROR 42000: A table must have at least 1 column
-CREATE TABLE t5 (a int invisible) SELECT b as a FROM t1;
-ERROR 42000: A table must have at least 1 column
-drop table t1,t2,t3;
-create table t1 (a int , b int invisible default 3, c int , d int invisible default 6);
-CREATE PROCEDURE
-insert_t1(a int, b int)
-MODIFIES SQL DATA
-insert into t1 values(a,b);
-//
-call insert_t1(1,1);
-call insert_t1(2,2);
-select * from t1 order by a;
-a c
-1 1
-2 2
-select a,b,c,d from t1 order by a;
-a b c d
-1 3 1 6
-2 3 2 6
-DROP PROCEDURE insert_t1;
-delete from t1;
-prepare insert_1 from "insert into t1 values(@a,@c)";
-prepare insert_2 from "insert into t1(a,b,c) values(@a,@b,@c)";
-set @a=1, @c=1;
-execute insert_1;
-set @a=2,@b=2, @c=2;
-execute insert_2;
-select a,b,c,d from t1 order by a;
-a b c d
-1 3 1 6
-2 2 2 6
-drop table t1;
-create table t1(a int default 5 invisible, b int);
-create table t2(a int default (b+11) invisible, b int);
-insert into t1 values(1);
-select a,b from t1;
-a b
-5 1
-insert into t2 values(1);
-select a,b from t2;
-a b
-12 1
-drop table t1,t2;
-create table t1 (a int invisible, b int, c int);
-create table t2 (a int, b int, d int);
-insert t1 (a,b,c) values (0,2,3), (10, 20, 30);
-insert t2 (a,b,d) values (1,2,4), (10, 30, 40);
-select * from t1 join t2 using (a);
-b c b d
-20 30 30 40
-select * from t1 natural join t2;
-b c a d
-2 3 1 4
-drop table t1, t2;
diff --git a/mysql-test/r/invisible_field_debug.result b/mysql-test/r/invisible_field_debug.result
deleted file mode 100644
index 4c4ebffbdfc..00000000000
--- a/mysql-test/r/invisible_field_debug.result
+++ /dev/null
@@ -1,371 +0,0 @@
-set @old_debug= @@debug_dbug;
-create table t_tmp(a int, b int);
-set debug_dbug= "+d,test_pseudo_invisible";
-create table t1(a int);
-set debug_dbug=@old_debug;
-insert into t1 values(1);
-desc t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select a , invisible from t1;
-a invisible
-1 9
-insert into t1(a, invisible) values(99,99);
-ERROR 42S22: Unknown column 'invisible' in 'field list'
-insert into t1(invisible) values(99);
-ERROR 42S22: Unknown column 'invisible' in 'field list'
-insert into t_tmp select a, invisible from t1;
-insert into t1 select * from t_tmp;
-ERROR 21S01: Column count doesn't match value count at row 1
-insert into t1(a,invisible) select * from t_tmp;
-ERROR 42S22: Unknown column 'invisible' in 'field list'
-select a , invisible from t1;
-a invisible
-1 9
-insert into t1 values (5), (invisible+1);
-select a , invisible from t1;
-a invisible
-1 9
-5 9
-10 9
-delete from t1 where a > 1;
-update t1 set a = invisible where a=1;
-select a , invisible from t1;
-a invisible
-9 9
-update t1 set a = (select invisible+100 from t1 limit 1) where a=(select a from t1 limit 1);
-select a , invisible from t1;
-a invisible
-109 9
-update t1 set invisible = 23 where a=(select a from t1 limit 1);
-ERROR 42S22: Unknown column 'invisible' in 'field list'
-update t1 set invisible = 101 where a=(select a from t1 limit 1);
-ERROR 42S22: Unknown column 'invisible' in 'field list'
-update t1 set invisible = (select invisible+100 from t1 limit 1) where a=(select invisible from t1 limit 1);
-ERROR 42S22: Unknown column 'invisible' in 'field list'
-select a , invisible from t1;
-a invisible
-109 9
-set @a=12;
-update t1 set invisible = (select @a from dual) where a=(select a from t1 limit 1);
-ERROR 42S22: Unknown column 'invisible' in 'field list'
-select a , invisible from t1;
-a invisible
-109 9
-update t1 set invisible = (select invisible+100 from t1 limit 1) where a=(select a from t1 limit 1);
-ERROR 42S22: Unknown column 'invisible' in 'field list'
-select a , invisible from t1;
-a invisible
-109 9
-set @a=(select invisible from t1 limit 1);
-select @a from dual;
-@a
-9
-alter table t1 add constraint a check (invisible > 2);
-ERROR 42S22: Unknown column 'invisible' in 'CHECK'
-set debug_dbug= "+d,test_pseudo_invisible";
-create table t2(a int, b int as (invisible +2) virtual);
-ERROR 42S22: Unknown column 'invisible' in 'GENERATED ALWAYS AS'
-create table t2(a int , b int);
-insert into t2 values(2,2);
-insert into t2 select a, invisible from t1;
-set debug_dbug=@old_debug;
-select * from t1;
-a
-109
-select invisible ,a from t1;
-invisible a
-9 109
-drop table t1,t2,t_tmp;
-set debug_dbug= "+d,test_completely_invisible";
-create table t1(a int);
-set debug_dbug=@old_debug;
-desc t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values(1);
-select * from t1;
-a
-1
-select invisible ,a from t1;
-ERROR 42S22: Unknown column 'invisible' in 'field list'
-set debug_dbug= "+d,test_completely_invisible";
-select invisible ,a from t1;
-invisible a
-9 1
-set debug_dbug=@old_debug;
-create table t2 (invisible int);
-select * from t1 join t2 using (invisible);
-ERROR 42S22: Unknown column 'invisible' in 'from clause'
-select * from t2 join t1 using (invisible);
-ERROR 42S22: Unknown column 'invisible' in 'from clause'
-insert t2 values (8),(9);
-select * from t1 natural join t2;
-a invisible
-1 8
-1 9
-select * from t2 natural join t1;
-invisible a
-8 1
-9 1
-drop table t1, t2;
-set debug_dbug= "+d,test_pseudo_invisible";
-create table t1(a int);
-set debug_dbug=@old_debug;
-desc t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-insert into t1 values(1);
-select * from t1;
-a
-1
-select invisible ,a from t1;
-invisible a
-9 1
-ALTER table t1 change invisible b int;
-ERROR 42S22: Unknown column 'invisible' in 't1'
-select * from t1;
-a
-1
-select invisible ,a from t1;
-invisible a
-9 1
-ALTER table t1 modify invisible char;
-ERROR 42S22: Unknown column 'invisible' in 't1'
-select * from t1;
-a
-1
-select invisible ,a from t1;
-invisible a
-9 1
-ALTER table t1 drop invisible;
-ERROR 42000: Can't DROP COLUMN `invisible`; check that it exists
-select * from t1;
-a
-1
-select invisible ,a from t1;
-invisible a
-9 1
-ALTER table t1 add invisible int;
-ERROR 42S21: Duplicate column name 'invisible'
-select * from t1;
-a
-1
-select invisible ,a from t1;
-invisible a
-9 1
-ALTER table t1 add invisible2 int default 2;
-select * from t1;
-a invisible2
-1 2
-select invisible ,a from t1;
-invisible a
-9 1
-create trigger trg before insert on t1 for each row set new.invisible=1;
-ERROR 42S22: Unknown column 'invisible' in 'NEW'
-create trigger trg before insert on t1 for each row set @a:=new.invisible;
-drop table t1;
-set debug_dbug= "+d,test_completely_invisible";
-create table t1(a int);
-set debug_dbug=@old_debug;
-create trigger trg before insert on t1 for each row set new.invisible=1;
-ERROR 42S22: Unknown column 'invisible' in 'NEW'
-create trigger trg before insert on t1 for each row set @a:=new.invisible;
-ERROR 42S22: Unknown column 'invisible' in 'NEW'
-set debug_dbug= "+d,test_completely_invisible";
-desc t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-insert into t1 values(1);
-select * from t1;
-a
-1
-select invisible ,a from t1;
-invisible a
-9 1
-ALTER table t1 change invisible b int;
-ERROR 42S22: Unknown column 'invisible' in 't1'
-select * from t1;
-a
-1
-select invisible ,a from t1;
-invisible a
-9 1
-ALTER table t1 modify invisible char;
-ERROR 42S22: Unknown column 'invisible' in 't1'
-select * from t1;
-a
-1
-select invisible ,a from t1;
-invisible a
-9 1
-ALTER table t1 drop invisible;
-ERROR 42000: Can't DROP COLUMN `invisible`; check that it exists
-select * from t1;
-a
-1
-select invisible ,a from t1;
-invisible a
-9 1
-ALTER table t1 add invisible int;
-select * from t1;
-a invisible
-1 NULL
-select invisible1, invisible ,a from t1;
-invisible1 invisible a
-9 NULL 1
-ALTER table t1 add hid int default 2;
-select * from t1;
-a invisible hid
-1 NULL 2
-select invisible ,a from t1;
-invisible a
-NULL 1
-drop table t1;
-set debug_dbug=@old_debug;
-Create table t1( a int default(99) invisible, b int);
-insert into t1 values(1);
-insert into t1 values(2);
-insert into t1 values(3);
-insert into t1 values(4);
-select * from t1 order by b;
-b
-1
-2
-3
-4
-alter table t1 add index(a);
-alter table t1 add index(a,b);
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE
-t1 1 a_2 1 a A NULL NULL NULL YES BTREE
-t1 1 a_2 2 b A NULL NULL NULL YES BTREE
-drop table t1;
-set debug_dbug= "+d,test_pseudo_invisible";
-Create table t1( a int default(99) invisible, b int);
-Create table t2( a int default(99) invisible, b int, unique(invisible));
-ERROR 42000: Key column 'invisible' doesn't exist in table
-set debug_dbug=@old_debug;
-insert into t1 values(1);
-insert into t1 values(2);
-insert into t1 values(3);
-insert into t1 values(4);
-select * from t1 order by b;
-b
-1
-2
-3
-4
-select invisible, a, b from t1 order by b;
-invisible a b
-9 99 1
-9 99 2
-9 99 3
-9 99 4
-alter table t1 add index(invisible);
-ERROR 42000: Key column 'invisible' doesn't exist in table
-alter table t1 add index(b,invisible);
-ERROR 42000: Key column 'invisible' doesn't exist in table
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-drop table t1;
-set debug_dbug= "+d,test_completely_invisible";
-Create table t1( a int default(99) invisible, b int);
-Create table t2( a int default(99) invisible, b int, unique(invisible));
-ERROR 42000: Key column 'invisible' doesn't exist in table
-insert into t1 values(1);
-insert into t1 values(2);
-insert into t1 values(3);
-insert into t1 values(4);
-select * from t1 order by b;
-b
-1
-2
-3
-4
-select invisible, a, b from t1 order by b;
-invisible a b
-9 99 1
-9 99 2
-9 99 3
-9 99 4
-set debug_dbug=@old_debug;
-alter table t1 add index(invisible);
-ERROR 42000: Key column 'invisible' doesn't exist in table
-alter table t1 add index(b,invisible);
-ERROR 42000: Key column 'invisible' doesn't exist in table
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-drop table t1;
-set debug_dbug= "+d,test_completely_invisible,test_invisible_index";
-Create table t1( a int default(99) , b int,c int, index(b));
-set debug_dbug=@old_debug;
-Show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 b 1 b A NULL NULL NULL YES BTREE
-select * from INFORMATION_SCHEMA.STATISTICS where TABLE_SCHEMA ='test' and table_name='t1';
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT
-def test t1 1 test b 1 b A NULL NULL NULL YES BTREE
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT 99,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT NULL,
- KEY `b` (`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values(1,1,1);
-insert into t1 values(2,2,2);
-insert into t1 values(3,3,3);
-insert into t1 values(4,4,4);
-set debug_dbug= "+d,test_completely_invisible,test_invisible_index";
-select invisible, a ,b from t1 order by b;
-invisible a b
-9 1 1
-9 2 2
-9 3 3
-9 4 4
-explain select * from t1 where invisible =9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref invisible invisible 5 const 3
-alter table t1 add x int default 3;
-select invisible, a ,b from t1;
-invisible a b
-9 1 1
-9 2 2
-9 3 3
-9 4 4
-set debug_dbug=@old_debug;
-Show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 b 1 b A NULL NULL NULL YES BTREE
-create index a1 on t1(invisible);
-ERROR 42000: Key column 'invisible' doesn't exist in table
-set debug_dbug= "+d,test_completely_invisible,test_invisible_index";
-drop index invisible on t1;
-ERROR 42000: Can't DROP INDEX `invisible`; check that it exists
-explain select * from t1 where invisible =9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref invisible invisible 5 const 3
-create index invisible on t1(c);
-explain select * from t1 where invisible =9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref invisible_2 invisible_2 5 const 3
-show indexes in t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 b 1 b A NULL NULL NULL YES BTREE
-t1 1 invisible 1 c A NULL NULL NULL YES BTREE
-t1 1 invisible_2 1 invisible A NULL NULL NULL YES BTREE
-drop table t1;
-set @old_debug= @@debug_dbug;
diff --git a/mysql-test/r/ipv4_and_ipv6.result b/mysql-test/r/ipv4_and_ipv6.result
deleted file mode 100644
index 447c20536e2..00000000000
--- a/mysql-test/r/ipv4_and_ipv6.result
+++ /dev/null
@@ -1,64 +0,0 @@
-=============Test of '::1' ========================================
-mysqld is alive
-CREATE USER testuser@'::1' identified by '1234';
-GRANT ALL ON test.* TO testuser@'::1';
-SHOW GRANTS FOR testuser@'::1';
-Grants for testuser@::1
-GRANT USAGE ON *.* TO 'testuser'@'::1' IDENTIFIED BY PASSWORD '*A4B6157319038724E3560894F7F932C8886EBFCF'
-GRANT ALL PRIVILEGES ON `test`.* TO 'testuser'@'::1'
-SET @nip= inet_aton('::1');
-SELECT @nip;
-@nip
-NULL
-SELECT inet_ntoa(@nip);
-inet_ntoa(@nip)
-NULL
-SELECT USER();
-USER()
-root@localhost
-SELECT current_user();
-current_user()
-root@localhost
-SHOW PROCESSLIST;
-connect con1, $IPv6, root, , test, $MASTER_MYPORT;
-connection default;
-disconnect con1;
-REVOKE ALL ON test.* FROM testuser@'::1';
-RENAME USER testuser@'::1' to testuser1@'::1';
-SET PASSWORD FOR testuser1@'::1' = PASSWORD ('9876');
-SELECT USER();
-USER()
-root@localhost
-DROP USER testuser1@'::1';
-=============Test of '127.0.0.1' (IPv4) ===========================
-mysqld is alive
-CREATE USER testuser@'127.0.0.1' identified by '1234';
-GRANT ALL ON test.* TO testuser@'127.0.0.1';
-SHOW GRANTS FOR testuser@'127.0.0.1';
-Grants for testuser@127.0.0.1
-GRANT USAGE ON *.* TO 'testuser'@'127.0.0.1' IDENTIFIED BY PASSWORD '*A4B6157319038724E3560894F7F932C8886EBFCF'
-GRANT ALL PRIVILEGES ON `test`.* TO 'testuser'@'127.0.0.1'
-SET @nip= inet_aton('127.0.0.1');
-SELECT @nip;
-@nip
-2130706433
-SELECT inet_ntoa(@nip);
-inet_ntoa(@nip)
-127.0.0.1
-SELECT USER();
-USER()
-root@localhost
-SELECT current_user();
-current_user()
-root@localhost
-SHOW PROCESSLIST;
-connect con1, $IPv6, root, , test, $MASTER_MYPORT;
-connection default;
-disconnect con1;
-REVOKE ALL ON test.* FROM testuser@'127.0.0.1';
-RENAME USER testuser@'127.0.0.1' to testuser1@'127.0.0.1';
-SET PASSWORD FOR testuser1@'127.0.0.1' = PASSWORD ('9876');
-SELECT USER();
-USER()
-root@localhost
-DROP USER testuser1@'127.0.0.1';
diff --git a/mysql-test/r/ipv4_as_ipv6.result b/mysql-test/r/ipv4_as_ipv6.result
deleted file mode 100644
index b92b545da86..00000000000
--- a/mysql-test/r/ipv4_as_ipv6.result
+++ /dev/null
@@ -1,197 +0,0 @@
-=============Test of '127.0.0.1' (IPv4) ===========================
-mysqld is alive
-CREATE USER testuser@'127.0.0.1' identified by '1234';
-GRANT ALL ON test.* TO testuser@'127.0.0.1';
-SHOW GRANTS FOR testuser@'127.0.0.1';
-Grants for testuser@127.0.0.1
-GRANT USAGE ON *.* TO 'testuser'@'127.0.0.1' IDENTIFIED BY PASSWORD '*A4B6157319038724E3560894F7F932C8886EBFCF'
-GRANT ALL PRIVILEGES ON `test`.* TO 'testuser'@'127.0.0.1'
-SET @nip= inet_aton('127.0.0.1');
-SELECT @nip;
-@nip
-2130706433
-SELECT inet_ntoa(@nip);
-inet_ntoa(@nip)
-127.0.0.1
-SELECT USER();
-USER()
-root@localhost
-SELECT current_user();
-current_user()
-root@localhost
-SHOW PROCESSLIST;
-connect con1, $IPv6, root, , test, $MASTER_MYPORT;
-connection default;
-disconnect con1;
-REVOKE ALL ON test.* FROM testuser@'127.0.0.1';
-RENAME USER testuser@'127.0.0.1' to testuser1@'127.0.0.1';
-SET PASSWORD FOR testuser1@'127.0.0.1' = PASSWORD ('9876');
-SELECT USER();
-USER()
-root@localhost
-DROP USER testuser1@'127.0.0.1';
-=============Test of '0:0:0:0:0:FFFF:127.0.0.1' ===================
-mysqld is alive
-CREATE USER testuser@'0:0:0:0:0:FFFF:127.0.0.1' identified by '1234';
-GRANT ALL ON test.* TO testuser@'0:0:0:0:0:FFFF:127.0.0.1';
-SHOW GRANTS FOR testuser@'0:0:0:0:0:FFFF:127.0.0.1';
-Grants for testuser@0:0:0:0:0:ffff:127.0.0.1
-GRANT USAGE ON *.* TO 'testuser'@'0:0:0:0:0:ffff:127.0.0.1' IDENTIFIED BY PASSWORD '*A4B6157319038724E3560894F7F932C8886EBFCF'
-GRANT ALL PRIVILEGES ON `test`.* TO 'testuser'@'0:0:0:0:0:ffff:127.0.0.1'
-SET @nip= inet_aton('0:0:0:0:0:FFFF:127.0.0.1');
-SELECT @nip;
-@nip
-NULL
-SELECT inet_ntoa(@nip);
-inet_ntoa(@nip)
-NULL
-SELECT USER();
-USER()
-root@localhost
-SELECT current_user();
-current_user()
-root@localhost
-SHOW PROCESSLIST;
-connect con1, $IPv6, root, , test, $MASTER_MYPORT;
-connection default;
-disconnect con1;
-REVOKE ALL ON test.* FROM testuser@'0:0:0:0:0:FFFF:127.0.0.1';
-RENAME USER testuser@'0:0:0:0:0:FFFF:127.0.0.1' to testuser1@'0:0:0:0:0:FFFF:127.0.0.1';
-SET PASSWORD FOR testuser1@'0:0:0:0:0:FFFF:127.0.0.1' = PASSWORD ('9876');
-SELECT USER();
-USER()
-root@localhost
-DROP USER testuser1@'0:0:0:0:0:FFFF:127.0.0.1';
-=============Test of '0000:0000:0000:0000:0000:FFFF:127.0.0.1' ====
-mysqld is alive
-CREATE USER testuser@'0000:0000:0000:0000:0000:FFFF:127.0.0.1' identified by '1234';
-GRANT ALL ON test.* TO testuser@'0000:0000:0000:0000:0000:FFFF:127.0.0.1';
-SHOW GRANTS FOR testuser@'0000:0000:0000:0000:0000:FFFF:127.0.0.1';
-Grants for testuser@0000:0000:0000:0000:0000:ffff:127.0.0.1
-GRANT USAGE ON *.* TO 'testuser'@'0000:0000:0000:0000:0000:ffff:127.0.0.1' IDENTIFIED BY PASSWORD '*A4B6157319038724E3560894F7F932C8886EBFCF'
-GRANT ALL PRIVILEGES ON `test`.* TO 'testuser'@'0000:0000:0000:0000:0000:ffff:127.0.0.1'
-SET @nip= inet_aton('0000:0000:0000:0000:0000:FFFF:127.0.0.1');
-SELECT @nip;
-@nip
-NULL
-SELECT inet_ntoa(@nip);
-inet_ntoa(@nip)
-NULL
-SELECT USER();
-USER()
-root@localhost
-SELECT current_user();
-current_user()
-root@localhost
-SHOW PROCESSLIST;
-connect con1, $IPv6, root, , test, $MASTER_MYPORT;
-connection default;
-disconnect con1;
-REVOKE ALL ON test.* FROM testuser@'0000:0000:0000:0000:0000:FFFF:127.0.0.1';
-RENAME USER testuser@'0000:0000:0000:0000:0000:FFFF:127.0.0.1' to testuser1@'0000:0000:0000:0000:0000:FFFF:127.0.0.1';
-SET PASSWORD FOR testuser1@'0000:0000:0000:0000:0000:FFFF:127.0.0.1' = PASSWORD ('9876');
-SELECT USER();
-USER()
-root@localhost
-DROP USER testuser1@'0000:0000:0000:0000:0000:FFFF:127.0.0.1';
-=============Test of '0:0000:0000:0:0000:FFFF:127.0.0.1' ====
-mysqld is alive
-CREATE USER testuser@'0:0000:0000:0:0000:FFFF:127.0.0.1' identified by '1234';
-GRANT ALL ON test.* TO testuser@'0:0000:0000:0:0000:FFFF:127.0.0.1';
-SHOW GRANTS FOR testuser@'0:0000:0000:0:0000:FFFF:127.0.0.1';
-Grants for testuser@0:0000:0000:0:0000:ffff:127.0.0.1
-GRANT USAGE ON *.* TO 'testuser'@'0:0000:0000:0:0000:ffff:127.0.0.1' IDENTIFIED BY PASSWORD '*A4B6157319038724E3560894F7F932C8886EBFCF'
-GRANT ALL PRIVILEGES ON `test`.* TO 'testuser'@'0:0000:0000:0:0000:ffff:127.0.0.1'
-SET @nip= inet_aton('0:0000:0000:0:0000:FFFF:127.0.0.1');
-SELECT @nip;
-@nip
-NULL
-SELECT inet_ntoa(@nip);
-inet_ntoa(@nip)
-NULL
-SELECT USER();
-USER()
-root@localhost
-SELECT current_user();
-current_user()
-root@localhost
-SHOW PROCESSLIST;
-connect con1, $IPv6, root, , test, $MASTER_MYPORT;
-connection default;
-disconnect con1;
-REVOKE ALL ON test.* FROM testuser@'0:0000:0000:0:0000:FFFF:127.0.0.1';
-RENAME USER testuser@'0:0000:0000:0:0000:FFFF:127.0.0.1' to testuser1@'0:0000:0000:0:0000:FFFF:127.0.0.1';
-SET PASSWORD FOR testuser1@'0:0000:0000:0:0000:FFFF:127.0.0.1' = PASSWORD ('9876');
-SELECT USER();
-USER()
-root@localhost
-DROP USER testuser1@'0:0000:0000:0:0000:FFFF:127.0.0.1';
-=============Test of '0::0000:FFFF:127.0.0.1' ====
-mysqld is alive
-CREATE USER testuser@'0::0000:FFFF:127.0.0.1' identified by '1234';
-GRANT ALL ON test.* TO testuser@'0::0000:FFFF:127.0.0.1';
-SHOW GRANTS FOR testuser@'0::0000:FFFF:127.0.0.1';
-Grants for testuser@0::0000:ffff:127.0.0.1
-GRANT USAGE ON *.* TO 'testuser'@'0::0000:ffff:127.0.0.1' IDENTIFIED BY PASSWORD '*A4B6157319038724E3560894F7F932C8886EBFCF'
-GRANT ALL PRIVILEGES ON `test`.* TO 'testuser'@'0::0000:ffff:127.0.0.1'
-SET @nip= inet_aton('0::0000:FFFF:127.0.0.1');
-SELECT @nip;
-@nip
-NULL
-SELECT inet_ntoa(@nip);
-inet_ntoa(@nip)
-NULL
-SELECT USER();
-USER()
-root@localhost
-SELECT current_user();
-current_user()
-root@localhost
-SHOW PROCESSLIST;
-connect con1, $IPv6, root, , test, $MASTER_MYPORT;
-connection default;
-disconnect con1;
-REVOKE ALL ON test.* FROM testuser@'0::0000:FFFF:127.0.0.1';
-RENAME USER testuser@'0::0000:FFFF:127.0.0.1' to testuser1@'0::0000:FFFF:127.0.0.1';
-SET PASSWORD FOR testuser1@'0::0000:FFFF:127.0.0.1' = PASSWORD ('9876');
-SELECT USER();
-USER()
-root@localhost
-DROP USER testuser1@'0::0000:FFFF:127.0.0.1';
-=============Test of '0:0:0:0:0:FFFF:127.0.0.1/96' ================
-=============Test of '::FFFF:127.0.0.1' ===========================
-mysqld is alive
-CREATE USER testuser@'::FFFF:127.0.0.1' identified by '1234';
-GRANT ALL ON test.* TO testuser@'::FFFF:127.0.0.1';
-SHOW GRANTS FOR testuser@'::FFFF:127.0.0.1';
-Grants for testuser@::ffff:127.0.0.1
-GRANT USAGE ON *.* TO 'testuser'@'::ffff:127.0.0.1' IDENTIFIED BY PASSWORD '*A4B6157319038724E3560894F7F932C8886EBFCF'
-GRANT ALL PRIVILEGES ON `test`.* TO 'testuser'@'::ffff:127.0.0.1'
-SET @nip= inet_aton('::FFFF:127.0.0.1');
-SELECT @nip;
-@nip
-NULL
-SELECT inet_ntoa(@nip);
-inet_ntoa(@nip)
-NULL
-SELECT USER();
-USER()
-root@localhost
-SELECT current_user();
-current_user()
-root@localhost
-SHOW PROCESSLIST;
-connect con1, $IPv6, root, , test, $MASTER_MYPORT;
-connection default;
-disconnect con1;
-REVOKE ALL ON test.* FROM testuser@'::FFFF:127.0.0.1';
-RENAME USER testuser@'::FFFF:127.0.0.1' to testuser1@'::FFFF:127.0.0.1';
-SET PASSWORD FOR testuser1@'::FFFF:127.0.0.1' = PASSWORD ('9876');
-SELECT USER();
-USER()
-root@localhost
-DROP USER testuser1@'::FFFF:127.0.0.1';
-=============Test of '::FFFF:127.0.0.1/96' ========================
-=============Test of '::1' ========================
-connect (con1, ::1, root, , test, MASTER_MYPORT,);
-Got one of the listed errors
diff --git a/mysql-test/r/ipv6.result b/mysql-test/r/ipv6.result
deleted file mode 100644
index 1540b4825e5..00000000000
--- a/mysql-test/r/ipv6.result
+++ /dev/null
@@ -1,97 +0,0 @@
-=============Test of '::1' ========================================
-mysqld is alive
-CREATE USER testuser@'::1' identified by '1234';
-GRANT ALL ON test.* TO testuser@'::1';
-SHOW GRANTS FOR testuser@'::1';
-Grants for testuser@::1
-GRANT USAGE ON *.* TO 'testuser'@'::1' IDENTIFIED BY PASSWORD '*A4B6157319038724E3560894F7F932C8886EBFCF'
-GRANT ALL PRIVILEGES ON `test`.* TO 'testuser'@'::1'
-SET @nip= inet_aton('::1');
-SELECT @nip;
-@nip
-NULL
-SELECT inet_ntoa(@nip);
-inet_ntoa(@nip)
-NULL
-SELECT USER();
-USER()
-root@localhost
-SELECT current_user();
-current_user()
-root@localhost
-SHOW PROCESSLIST;
-connect con1, $IPv6, root, , test, $MASTER_MYPORT;
-connection default;
-disconnect con1;
-REVOKE ALL ON test.* FROM testuser@'::1';
-RENAME USER testuser@'::1' to testuser1@'::1';
-SET PASSWORD FOR testuser1@'::1' = PASSWORD ('9876');
-SELECT USER();
-USER()
-root@localhost
-DROP USER testuser1@'::1';
-=============Test of '::1/128' ====================================
-=============Test of '0000:0000:0000:0000:0000:0000:0000:0001' ====
-mysqld is alive
-CREATE USER testuser@'0000:0000:0000:0000:0000:0000:0000:0001' identified by '1234';
-GRANT ALL ON test.* TO testuser@'0000:0000:0000:0000:0000:0000:0000:0001';
-SHOW GRANTS FOR testuser@'0000:0000:0000:0000:0000:0000:0000:0001';
-Grants for testuser@0000:0000:0000:0000:0000:0000:0000:0001
-GRANT USAGE ON *.* TO 'testuser'@'0000:0000:0000:0000:0000:0000:0000:0001' IDENTIFIED BY PASSWORD '*A4B6157319038724E3560894F7F932C8886EBFCF'
-GRANT ALL PRIVILEGES ON `test`.* TO 'testuser'@'0000:0000:0000:0000:0000:0000:0000:0001'
-SET @nip= inet_aton('0000:0000:0000:0000:0000:0000:0000:0001');
-SELECT @nip;
-@nip
-NULL
-SELECT inet_ntoa(@nip);
-inet_ntoa(@nip)
-NULL
-SELECT USER();
-USER()
-root@localhost
-SELECT current_user();
-current_user()
-root@localhost
-SHOW PROCESSLIST;
-connect con1, $IPv6, root, , test, $MASTER_MYPORT;
-connection default;
-disconnect con1;
-REVOKE ALL ON test.* FROM testuser@'0000:0000:0000:0000:0000:0000:0000:0001';
-RENAME USER testuser@'0000:0000:0000:0000:0000:0000:0000:0001' to testuser1@'0000:0000:0000:0000:0000:0000:0000:0001';
-SET PASSWORD FOR testuser1@'0000:0000:0000:0000:0000:0000:0000:0001' = PASSWORD ('9876');
-SELECT USER();
-USER()
-root@localhost
-DROP USER testuser1@'0000:0000:0000:0000:0000:0000:0000:0001';
-=============Test of '0:0:0:0:0:0:0:1' ============================
-mysqld is alive
-CREATE USER testuser@'0:0:0:0:0:0:0:1' identified by '1234';
-GRANT ALL ON test.* TO testuser@'0:0:0:0:0:0:0:1';
-SHOW GRANTS FOR testuser@'0:0:0:0:0:0:0:1';
-Grants for testuser@0:0:0:0:0:0:0:1
-GRANT USAGE ON *.* TO 'testuser'@'0:0:0:0:0:0:0:1' IDENTIFIED BY PASSWORD '*A4B6157319038724E3560894F7F932C8886EBFCF'
-GRANT ALL PRIVILEGES ON `test`.* TO 'testuser'@'0:0:0:0:0:0:0:1'
-SET @nip= inet_aton('0:0:0:0:0:0:0:1');
-SELECT @nip;
-@nip
-NULL
-SELECT inet_ntoa(@nip);
-inet_ntoa(@nip)
-NULL
-SELECT USER();
-USER()
-root@localhost
-SELECT current_user();
-current_user()
-root@localhost
-SHOW PROCESSLIST;
-connect con1, $IPv6, root, , test, $MASTER_MYPORT;
-connection default;
-disconnect con1;
-REVOKE ALL ON test.* FROM testuser@'0:0:0:0:0:0:0:1';
-RENAME USER testuser@'0:0:0:0:0:0:0:1' to testuser1@'0:0:0:0:0:0:0:1';
-SET PASSWORD FOR testuser1@'0:0:0:0:0:0:0:1' = PASSWORD ('9876');
-SELECT USER();
-USER()
-root@localhost
-DROP USER testuser1@'0:0:0:0:0:0:0:1';
diff --git a/mysql-test/r/join.result b/mysql-test/r/join.result
deleted file mode 100644
index 046674d5569..00000000000
--- a/mysql-test/r/join.result
+++ /dev/null
@@ -1,1559 +0,0 @@
-drop table if exists t1,t2,t3;
-drop view if exists v1,v2;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-CREATE TABLE t1 (S1 INT);
-CREATE TABLE t2 (S1 INT);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-SELECT * FROM t1 JOIN t2;
-S1 S1
-1 2
-SELECT * FROM t1 INNER JOIN t2;
-S1 S1
-1 2
-SELECT * from t1 JOIN t2 USING (S1);
-S1
-SELECT * FROM t1 INNER JOIN t2 USING (S1);
-S1
-SELECT * from t1 CROSS JOIN t2;
-S1 S1
-1 2
-SELECT * from t1 LEFT JOIN t2 USING(S1);
-S1
-1
-SELECT * from t1 LEFT JOIN t2 ON(t2.S1=2);
-S1 S1
-1 2
-SELECT * from t1 RIGHT JOIN t2 USING(S1);
-S1
-2
-SELECT * from t1 RIGHT JOIN t2 ON(t1.S1=1);
-S1 S1
-1 2
-drop table t1,t2;
-create table t1 (id int primary key);
-create table t2 (id int);
-insert into t1 values (75);
-insert into t1 values (79);
-insert into t1 values (78);
-insert into t1 values (77);
-replace into t1 values (76);
-replace into t1 values (76);
-insert into t1 values (104);
-insert into t1 values (103);
-insert into t1 values (102);
-insert into t1 values (101);
-insert into t1 values (105);
-insert into t1 values (106);
-insert into t1 values (107);
-insert into t2 values (107),(75),(1000);
-select t1.id, t2.id from t1, t2 where t2.id = t1.id;
-id id
-107 107
-75 75
-select t1.id, count(t2.id) from t1,t2 where t2.id = t1.id group by t1.id;
-id count(t2.id)
-75 1
-107 1
-select t1.id, count(t2.id) from t1,t2 where t2.id = t1.id group by t2.id;
-id count(t2.id)
-75 1
-107 1
-select t1.id,t2.id from t2 left join t1 on t1.id>=74 and t1.id<=0 where t2.id=75 and t1.id is null;
-id id
-NULL 75
-explain select t1.id,t2.id from t2 left join t1 on t1.id>=74 and t1.id<=0 where t2.id=75 and t1.id is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY NULL NULL NULL 1 Impossible ON condition
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-explain select t1.id, t2.id from t1, t2 where t2.id = t1.id and t1.id <0 and t1.id > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-drop table t1,t2;
-CREATE TABLE t1 (
-id int(11) NOT NULL auto_increment,
-token varchar(100) DEFAULT '' NOT NULL,
-count int(11) DEFAULT '0' NOT NULL,
-qty int(11),
-phone char(1) DEFAULT '' NOT NULL,
-timestamp datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
-PRIMARY KEY (id),
-KEY token (token(15)),
-KEY timestamp (timestamp),
-UNIQUE token_2 (token(75),count,phone)
-);
-INSERT INTO t1 VALUES (21,'e45703b64de71482360de8fec94c3ade',3,7800,'n','1999-12-23 17:22:21');
-INSERT INTO t1 VALUES (22,'e45703b64de71482360de8fec94c3ade',4,5000,'y','1999-12-23 17:22:21');
-INSERT INTO t1 VALUES (18,'346d1cb63c89285b2351f0ca4de40eda',3,13200,'b','1999-12-23 11:58:04');
-INSERT INTO t1 VALUES (17,'ca6ddeb689e1b48a04146b1b5b6f936a',4,15000,'b','1999-12-23 11:36:53');
-INSERT INTO t1 VALUES (16,'ca6ddeb689e1b48a04146b1b5b6f936a',3,13200,'b','1999-12-23 11:36:53');
-INSERT INTO t1 VALUES (26,'a71250b7ed780f6ef3185bfffe027983',5,1500,'b','1999-12-27 09:44:24');
-INSERT INTO t1 VALUES (24,'4d75906f3c37ecff478a1eb56637aa09',3,5400,'y','1999-12-23 17:29:12');
-INSERT INTO t1 VALUES (25,'4d75906f3c37ecff478a1eb56637aa09',4,6500,'y','1999-12-23 17:29:12');
-INSERT INTO t1 VALUES (27,'a71250b7ed780f6ef3185bfffe027983',3,6200,'b','1999-12-27 09:44:24');
-INSERT INTO t1 VALUES (28,'a71250b7ed780f6ef3185bfffe027983',3,5400,'y','1999-12-27 09:44:36');
-INSERT INTO t1 VALUES (29,'a71250b7ed780f6ef3185bfffe027983',4,17700,'b','1999-12-27 09:45:05');
-CREATE TABLE t2 (
-id int(11) NOT NULL auto_increment,
-category int(11) DEFAULT '0' NOT NULL,
-county int(11) DEFAULT '0' NOT NULL,
-state int(11) DEFAULT '0' NOT NULL,
-phones int(11) DEFAULT '0' NOT NULL,
-nophones int(11) DEFAULT '0' NOT NULL,
-PRIMARY KEY (id),
-KEY category (category,county,state)
-);
-INSERT INTO t2 VALUES (3,2,11,12,5400,7800);
-INSERT INTO t2 VALUES (4,2,25,12,6500,11200);
-INSERT INTO t2 VALUES (5,1,37,6,10000,12000);
-select a.id, b.category as catid, b.state as stateid, b.county as countyid from t1 a, t2 b ignore index (primary) where (a.token ='a71250b7ed780f6ef3185bfffe027983') and (a.count = b.id);
-id catid stateid countyid
-27 2 12 11
-28 2 12 11
-29 2 12 25
-26 1 6 37
-select a.id, b.category as catid, b.state as stateid, b.county as
-countyid from t1 a, t2 b where (a.token =
-'a71250b7ed780f6ef3185bfffe027983') and (a.count = b.id) order by a.id;
-id catid stateid countyid
-26 1 6 37
-27 2 12 11
-28 2 12 11
-29 2 12 25
-drop table t1, t2;
-create table t1 (a int primary key);
-insert into t1 values(1),(2);
-select t1.a from t1 as t1 left join t1 as t2 using (a) left join t1 as t3 using (a) left join t1 as t4 using (a) left join t1 as t5 using (a) left join t1 as t6 using (a) left join t1 as t7 using (a) left join t1 as t8 using (a) left join t1 as t9 using (a) left join t1 as t10 using (a) left join t1 as t11 using (a) left join t1 as t12 using (a) left join t1 as t13 using (a) left join t1 as t14 using (a) left join t1 as t15 using (a) left join t1 as t16 using (a) left join t1 as t17 using (a) left join t1 as t18 using (a) left join t1 as t19 using (a) left join t1 as t20 using (a) left join t1 as t21 using (a) left join t1 as t22 using (a) left join t1 as t23 using (a) left join t1 as t24 using (a) left join t1 as t25 using (a) left join t1 as t26 using (a) left join t1 as t27 using (a) left join t1 as t28 using (a) left join t1 as t29 using (a) left join t1 as t30 using (a) left join t1 as t31 using (a);
-a
-1
-2
-select t1.a from t1 as t1 left join t1 as t2 using (a) left join t1 as t3 using (a) left join t1 as t4 using (a) left join t1 as t5 using (a) left join t1 as t6 using (a) left join t1 as t7 using (a) left join t1 as t8 using (a) left join t1 as t9 using (a) left join t1 as t10 using (a) left join t1 as t11 using (a) left join t1 as t12 using (a) left join t1 as t13 using (a) left join t1 as t14 using (a) left join t1 as t15 using (a) left join t1 as t16 using (a) left join t1 as t17 using (a) left join t1 as t18 using (a) left join t1 as t19 using (a) left join t1 as t20 using (a) left join t1 as t21 using (a) left join t1 as t22 using (a) left join t1 as t23 using (a) left join t1 as t24 using (a) left join t1 as t25 using (a) left join t1 as t26 using (a) left join t1 as t27 using (a) left join t1 as t28 using (a) left join t1 as t29 using (a) left join t1 as t30 using (a) left join t1 as t31 using (a) left join t1 as t32 using (a) left join t1 as t33 using (a) left join t1 as t34 using (a) left join t1 as t35 using (a) left join t1 as t36 using (a) left join t1 as t37 using (a) left join t1 as t38 using (a) left join t1 as t39 using (a) left join t1 as t40 using (a) left join t1 as t41 using (a) left join t1 as t42 using (a) left join t1 as t43 using (a) left join t1 as t44 using (a) left join t1 as t45 using (a) left join t1 as t46 using (a) left join t1 as t47 using (a) left join t1 as t48 using (a) left join t1 as t49 using (a) left join t1 as t50 using (a) left join t1 as t51 using (a) left join t1 as t52 using (a) left join t1 as t53 using (a) left join t1 as t54 using (a) left join t1 as t55 using (a) left join t1 as t56 using (a) left join t1 as t57 using (a) left join t1 as t58 using (a) left join t1 as t59 using (a) left join t1 as t60 using (a) left join t1 as t61 using (a) left join t1 as t62 using (a) left join t1 as t63 using (a) left join t1 as t64 using (a) left join t1 as t65 using (a);
-ERROR HY000: Too many tables; MariaDB can only use XX tables in a join
-select a from t1 as t1 left join t1 as t2 using (a) left join t1 as t3 using (a) left join t1 as t4 using (a) left join t1 as t5 using (a) left join t1 as t6 using (a) left join t1 as t7 using (a) left join t1 as t8 using (a) left join t1 as t9 using (a) left join t1 as t10 using (a) left join t1 as t11 using (a) left join t1 as t12 using (a) left join t1 as t13 using (a) left join t1 as t14 using (a) left join t1 as t15 using (a) left join t1 as t16 using (a) left join t1 as t17 using (a) left join t1 as t18 using (a) left join t1 as t19 using (a) left join t1 as t20 using (a) left join t1 as t21 using (a) left join t1 as t22 using (a) left join t1 as t23 using (a) left join t1 as t24 using (a) left join t1 as t25 using (a) left join t1 as t26 using (a) left join t1 as t27 using (a) left join t1 as t28 using (a) left join t1 as t29 using (a) left join t1 as t30 using (a) left join t1 as t31 using (a);
-a
-1
-2
-select a from t1 as t1 left join t1 as t2 using (a) left join t1 as t3 using (a) left join t1 as t4 using (a) left join t1 as t5 using (a) left join t1 as t6 using (a) left join t1 as t7 using (a) left join t1 as t8 using (a) left join t1 as t9 using (a) left join t1 as t10 using (a) left join t1 as t11 using (a) left join t1 as t12 using (a) left join t1 as t13 using (a) left join t1 as t14 using (a) left join t1 as t15 using (a) left join t1 as t16 using (a) left join t1 as t17 using (a) left join t1 as t18 using (a) left join t1 as t19 using (a) left join t1 as t20 using (a) left join t1 as t21 using (a) left join t1 as t22 using (a) left join t1 as t23 using (a) left join t1 as t24 using (a) left join t1 as t25 using (a) left join t1 as t26 using (a) left join t1 as t27 using (a) left join t1 as t28 using (a) left join t1 as t29 using (a) left join t1 as t30 using (a) left join t1 as t31 using (a) left join t1 as t32 using (a) left join t1 as t33 using (a) left join t1 as t34 using (a) left join t1 as t35 using (a) left join t1 as t36 using (a) left join t1 as t37 using (a) left join t1 as t38 using (a) left join t1 as t39 using (a) left join t1 as t40 using (a) left join t1 as t41 using (a) left join t1 as t42 using (a) left join t1 as t43 using (a) left join t1 as t44 using (a) left join t1 as t45 using (a) left join t1 as t46 using (a) left join t1 as t47 using (a) left join t1 as t48 using (a) left join t1 as t49 using (a) left join t1 as t50 using (a) left join t1 as t51 using (a) left join t1 as t52 using (a) left join t1 as t53 using (a) left join t1 as t54 using (a) left join t1 as t55 using (a) left join t1 as t56 using (a) left join t1 as t57 using (a) left join t1 as t58 using (a) left join t1 as t59 using (a) left join t1 as t60 using (a) left join t1 as t61 using (a) left join t1 as t62 using (a) left join t1 as t63 using (a) left join t1 as t64 using (a) left join t1 as t65 using (a);
-ERROR HY000: Too many tables; MariaDB can only use XX tables in a join
-drop table t1;
-CREATE TABLE t1 (
-a int(11) NOT NULL,
-b int(11) NOT NULL,
-PRIMARY KEY (a,b)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(2,3);
-CREATE TABLE t2 (
-a int(11) default NULL
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (2),(3);
-SELECT t1.a,t2.a,b FROM t1,t2 WHERE t1.a=t2.a AND (t1.a=1 OR t1.a=2) AND b>=1 AND b<=3;
-a a b
-2 2 3
-DROP TABLE t1, t2;
-CREATE TABLE t1 (d DATE NOT NULL);
-CREATE TABLE t2 (d DATE NOT NULL);
-INSERT INTO t1 (d) VALUES ('2001-08-01'),('0000-00-00');
-SELECT * FROM t1 LEFT JOIN t2 USING (d) WHERE t2.d IS NULL;
-d
-2001-08-01
-0000-00-00
-SELECT * FROM t1 LEFT JOIN t2 USING (d) WHERE d IS NULL;
-d
-0000-00-00
-SELECT * from t1 WHERE t1.d IS NULL;
-d
-0000-00-00
-SELECT * FROM t1 WHERE 1/0 IS NULL;
-d
-2001-08-01
-0000-00-00
-Warnings:
-Warning 1365 Division by 0
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-Document_ID varchar(50) NOT NULL default '',
-Contractor_ID varchar(6) NOT NULL default '',
-Language_ID char(3) NOT NULL default '',
-Expiration_Date datetime default NULL,
-Publishing_Date datetime default NULL,
-Title text,
-Column_ID varchar(50) NOT NULL default '',
-PRIMARY KEY (Language_ID,Document_ID,Contractor_ID)
-);
-INSERT INTO t1 VALUES ('xep80','1','ger','2001-12-31 20:00:00','2001-11-12 10:58:00','Kartenbestellung - jetzt auch online','anle'),('','999998','',NULL,NULL,NULL,'');
-CREATE TABLE t2 (
-Contractor_ID char(6) NOT NULL default '',
-Language_ID char(3) NOT NULL default '',
-Document_ID char(50) NOT NULL default '',
-CanRead char(1) default NULL,
-Customer_ID int(11) NOT NULL default '0',
-PRIMARY KEY (Contractor_ID,Language_ID,Document_ID,Customer_ID)
-);
-INSERT INTO t2 VALUES ('5','ger','xep80','1',999999),('1','ger','xep80','1',999999);
-CREATE TABLE t3 (
-Language_ID char(3) NOT NULL default '',
-Column_ID char(50) NOT NULL default '',
-Contractor_ID char(6) NOT NULL default '',
-CanRead char(1) default NULL,
-Active char(1) default NULL,
-PRIMARY KEY (Language_ID,Column_ID,Contractor_ID)
-);
-INSERT INTO t3 VALUES ('ger','home','1','1','1'),('ger','Test','1','0','0'),('ger','derclu','1','0','0'),('ger','clubne','1','0','0'),('ger','philos','1','0','0'),('ger','clubko','1','0','0'),('ger','clubim','1','1','1'),('ger','progra','1','0','0'),('ger','progvo','1','0','0'),('ger','progsp','1','0','0'),('ger','progau','1','0','0'),('ger','progku','1','0','0'),('ger','progss','1','0','0'),('ger','nachl','1','0','0'),('ger','mitgli','1','0','0'),('ger','mitsu','1','0','0'),('ger','mitbus','1','0','0'),('ger','ergmar','1','1','1'),('ger','home','4','1','1'),('ger','derclu','4','1','1'),('ger','clubne','4','0','0'),('ger','philos','4','1','1'),('ger','clubko','4','1','1'),('ger','clubim','4','1','1'),('ger','progra','4','1','1'),('ger','progvo','4','1','1'),('ger','progsp','4','1','1'),('ger','progau','4','0','0'),('ger','progku','4','1','1'),('ger','progss','4','1','1'),('ger','nachl','4','1','1'),('ger','mitgli','4','0','0'),('ger','mitsu','4','0','0'),('ger','mitbus','4','0','0'),('ger','ergmar','4','1','1'),('ger','progra2','1','0','0'),('ger','archiv','4','1','1'),('ger','anmeld','4','1','1'),('ger','thema','4','1','1'),('ger','edito','4','1','1'),('ger','madis','4','1','1'),('ger','enma','4','1','1'),('ger','madis','1','1','1'),('ger','enma','1','1','1'),('ger','vorsch','4','0','0'),('ger','veranst','4','0','0'),('ger','anle','4','1','1'),('ger','redak','4','1','1'),('ger','nele','4','1','1'),('ger','aukt','4','1','1'),('ger','callcenter','4','1','1'),('ger','anle','1','0','0');
-delete from t1 where Contractor_ID='999998';
-insert into t1 (Contractor_ID) Values ('999998');
-SELECT DISTINCT COUNT(t1.Title) FROM t1,
-t2, t3 WHERE
-t1.Document_ID='xep80' AND t1.Contractor_ID='1' AND
-t1.Language_ID='ger' AND '2001-12-21 23:14:24' >=
-Publishing_Date AND '2001-12-21 23:14:24' <= Expiration_Date AND
-t1.Document_ID = t2.Document_ID AND
-t1.Language_ID = t2.Language_ID AND
-t1.Contractor_ID = t2.Contractor_ID AND (
-t2.Customer_ID = '4' OR
-t2.Customer_ID = '999999' OR
-t2.Customer_ID = '1' )AND t2.CanRead
-= '1' AND t1.Column_ID=t3.Column_ID AND
-t1.Language_ID=t3.Language_ID AND (
-t3.Contractor_ID = '4' OR
-t3.Contractor_ID = '999999' OR
-t3.Contractor_ID = '1') AND
-t3.CanRead='1' AND t3.Active='1';
-COUNT(t1.Title)
-1
-SELECT DISTINCT COUNT(t1.Title) FROM t1,
-t2, t3 WHERE
-t1.Document_ID='xep80' AND t1.Contractor_ID='1' AND
-t1.Language_ID='ger' AND '2001-12-21 23:14:24' >=
-Publishing_Date AND '2001-12-21 23:14:24' <= Expiration_Date AND
-t1.Document_ID = t2.Document_ID AND
-t1.Language_ID = t2.Language_ID AND
-t1.Contractor_ID = t2.Contractor_ID AND (
-t2.Customer_ID = '4' OR
-t2.Customer_ID = '999999' OR
-t2.Customer_ID = '1' )AND t2.CanRead
-= '1' AND t1.Column_ID=t3.Column_ID AND
-t1.Language_ID=t3.Language_ID AND (
-t3.Contractor_ID = '4' OR
-t3.Contractor_ID = '999999' OR
-t3.Contractor_ID = '1') AND
-t3.CanRead='1' AND t3.Active='1';
-COUNT(t1.Title)
-1
-drop table t1,t2,t3;
-CREATE TABLE t1 (
-t1_id int(11) default NULL,
-t2_id int(11) default NULL,
-type enum('Cost','Percent') default NULL,
-cost_unit enum('Cost','Unit') default NULL,
-min_value double default NULL,
-max_value double default NULL,
-t3_id int(11) default NULL,
-item_id int(11) default NULL
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (12,5,'Percent','Cost',-1,0,-1,-1),(14,4,'Percent','Cost',-1,0,-1,-1),(18,5,'Percent','Cost',-1,0,-1,-1),(19,4,'Percent','Cost',-1,0,-1,-1),(20,5,'Percent','Cost',100,-1,22,291),(21,5,'Percent','Cost',100,-1,18,291),(22,1,'Percent','Cost',100,-1,6,291),(23,1,'Percent','Cost',100,-1,21,291),(24,1,'Percent','Cost',100,-1,9,291),(25,1,'Percent','Cost',100,-1,4,291),(26,1,'Percent','Cost',100,-1,20,291),(27,4,'Percent','Cost',100,-1,7,202),(28,1,'Percent','Cost',50,-1,-1,137),(29,2,'Percent','Cost',100,-1,4,354),(30,2,'Percent','Cost',100,-1,9,137),(93,2,'Cost','Cost',-1,10000000,-1,-1);
-CREATE TABLE t2 (
-id int(10) unsigned NOT NULL auto_increment,
-name varchar(255) default NULL,
-PRIMARY KEY (id)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,'s1'),(2,'s2'),(3,'s3'),(4,'s4'),(5,'s5');
-select t1.*, t2.* from t1, t2 where t2.id=t1.t2_id limit 2;
-t1_id t2_id type cost_unit min_value max_value t3_id item_id id name
-22 1 Percent Cost 100 -1 6 291 1 s1
-23 1 Percent Cost 100 -1 21 291 1 s1
-drop table t1,t2;
-CREATE TABLE t1 (
-siteid varchar(25) NOT NULL default '',
-emp_id varchar(30) NOT NULL default '',
-rate_code varchar(10) default NULL,
-UNIQUE KEY site_emp (siteid,emp_id),
-KEY siteid (siteid)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('rivercats','psmith','cust'), ('rivercats','KWalker','cust');
-CREATE TABLE t2 (
-siteid varchar(25) NOT NULL default '',
-rate_code varchar(10) NOT NULL default '',
-base_rate float NOT NULL default '0',
-PRIMARY KEY (siteid,rate_code),
-FULLTEXT KEY rate_code (rate_code)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('rivercats','cust',20);
-SELECT emp.rate_code, lr.base_rate FROM t1 AS emp LEFT JOIN t2 AS lr USING (siteid, rate_code) WHERE emp.emp_id = 'psmith' AND lr.siteid = 'rivercats';
-rate_code base_rate
-cust 20
-SELECT emp.rate_code, lr.base_rate FROM t1 AS emp LEFT JOIN t2 AS lr USING (siteid, rate_code) WHERE lr.siteid = 'rivercats' AND emp.emp_id = 'psmith';
-rate_code base_rate
-cust 20
-SELECT rate_code, lr.base_rate FROM t1 AS emp LEFT JOIN t2 AS lr USING (siteid, rate_code) WHERE emp.emp_id = 'psmith' AND siteid = 'rivercats';
-rate_code base_rate
-cust 20
-SELECT rate_code, lr.base_rate FROM t1 AS emp LEFT JOIN t2 AS lr USING (siteid, rate_code) WHERE siteid = 'rivercats' AND emp.emp_id = 'psmith';
-rate_code base_rate
-cust 20
-drop table t1,t2;
-CREATE TABLE t1 (ID INTEGER NOT NULL PRIMARY KEY, Value1 VARCHAR(255));
-CREATE TABLE t2 (ID INTEGER NOT NULL PRIMARY KEY, Value2 VARCHAR(255));
-INSERT INTO t1 VALUES (1, 'A');
-INSERT INTO t2 VALUES (1, 'B');
-SELECT * FROM t1 NATURAL JOIN t2 WHERE 1 AND (Value1 = 'A' AND Value2 <> 'B');
-ID Value1 Value2
-SELECT * FROM t1 NATURAL JOIN t2 WHERE 1 AND Value1 = 'A' AND Value2 <> 'B';
-ID Value1 Value2
-SELECT * FROM t1 NATURAL JOIN t2 WHERE (Value1 = 'A' AND Value2 <> 'B') AND 1;
-ID Value1 Value2
-drop table t1,t2;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (b int);
-CREATE TABLE t3 (c int);
-SELECT * FROM t1 NATURAL JOIN t2 NATURAL JOIN t3;
-a b c
-DROP TABLE t1, t2, t3;
-create table t1 (i int);
-create table t2 (i int);
-create table t3 (i int);
-insert into t1 values(1),(2);
-insert into t2 values(2),(3);
-insert into t3 values (2),(4);
-select * from t1 natural left join t2;
-i
-1
-2
-select * from t1 left join t2 on (t1.i=t2.i);
-i i
-1 NULL
-2 2
-select * from t1 natural left join t2 natural left join t3;
-i
-1
-2
-select * from t1 left join t2 on (t1.i=t2.i) left join t3 on (t2.i=t3.i);
-i i i
-1 NULL NULL
-2 2 2
-select * from t3 natural right join t2;
-i
-2
-3
-select * from t3 right join t2 on (t3.i=t2.i);
-i i
-2 2
-NULL 3
-select * from t3 natural right join t2 natural right join t1;
-i
-1
-2
-select * from t3 right join t2 on (t3.i=t2.i) right join t1 on (t2.i=t1.i);
-i i i
-NULL NULL 1
-2 2 2
-select * from t1,t2 natural left join t3 order by t1.i,t2.i,t3.i;
-i i
-1 2
-1 3
-2 2
-2 3
-select * from t1,t2 left join t3 on (t2.i=t3.i) order by t1.i,t2.i,t3.i;
-i i i
-1 2 2
-1 3 NULL
-2 2 2
-2 3 NULL
-select t1.i,t2.i,t3.i from t2 natural left join t3,t1 order by t1.i,t2.i,t3.i;
-i i i
-1 2 2
-1 3 NULL
-2 2 2
-2 3 NULL
-select t1.i,t2.i,t3.i from t2 left join t3 on (t2.i=t3.i),t1 order by t1.i,t2.i,t3.i;
-i i i
-1 2 2
-1 3 NULL
-2 2 2
-2 3 NULL
-select * from t1,t2 natural right join t3 order by t1.i,t2.i,t3.i;
-i i
-1 4
-1 2
-2 4
-2 2
-select * from t1,t2 right join t3 on (t2.i=t3.i) order by t1.i,t2.i,t3.i;
-i i i
-1 NULL 4
-1 2 2
-2 NULL 4
-2 2 2
-select t1.i,t2.i,t3.i from t2 natural right join t3,t1 order by t1.i,t2.i,t3.i;
-i i i
-1 NULL 4
-1 2 2
-2 NULL 4
-2 2 2
-select t1.i,t2.i,t3.i from t2 right join t3 on (t2.i=t3.i),t1 order by t1.i,t2.i,t3.i;
-i i i
-1 NULL 4
-1 2 2
-2 NULL 4
-2 2 2
-drop table t1,t2,t3;
-CREATE TABLE t1 (a int, b int default 0, c int default 1);
-INSERT INTO t1 (a) VALUES (1),(2),(3),(4),(5),(6),(7),(8);
-INSERT INTO t1 (a) SELECT a + 8 FROM t1;
-INSERT INTO t1 (a) SELECT a + 16 FROM t1;
-CREATE TABLE t2 (a int, d int, e int default 0);
-INSERT INTO t2 (a, d) VALUES (1,1),(2,2),(3,3),(4,4);
-INSERT INTO t2 (a, d) SELECT a+4, a+4 FROM t2;
-INSERT INTO t2 (a, d) SELECT a+8, a+8 FROM t2;
-EXPLAIN
-SELECT STRAIGHT_JOIN t2.e FROM t1,t2 WHERE t2.d=1 AND t1.b=t2.e
-ORDER BY t1.b, t1.c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 32 Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 16 Using where; Using join buffer (flat, BNL join)
-SELECT STRAIGHT_JOIN t2.e FROM t1,t2 WHERE t2.d=1 AND t1.b=t2.e
-ORDER BY t1.b, t1.c;
-e
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-DROP TABLE t1,t2;
-create table t1 (c int, b int);
-create table t2 (a int, b int);
-create table t3 (b int, c int);
-create table t4 (y int, c int);
-create table t5 (y int, z int);
-create table t6 (a int, c int);
-insert into t1 values (10,1);
-insert into t1 values (3 ,1);
-insert into t1 values (3 ,2);
-insert into t2 values (2, 1);
-insert into t3 values (1, 3);
-insert into t3 values (1,10);
-insert into t4 values (11,3);
-insert into t4 values (2, 3);
-insert into t5 values (11,4);
-insert into t6 values (2, 3);
-create algorithm=merge view v1a as
-select * from t1 natural join t2;
-create algorithm=merge view v1b(a,b,c) as
-select * from t1 natural join t2;
-create algorithm=merge view v1c as
-select b as a, c as b, a as c from t1 natural join t2;
-create algorithm=merge view v1d(b, a, c) as
-select a as c, c as b, b as a from t1 natural join t2;
-create algorithm=merge view v2a as
-select t1.c, t1.b, t2.a from t1 join (t2 join t4 on b + 1 = y) on t1.c = t4.c;
-create algorithm=merge view v2b as
-select t1.c as b, t1.b as a, t2.a as c
-from t1 join (t2 join t4 on b + 1 = y) on t1.c = t4.c;
-create algorithm=merge view v3a as
-select * from t1 natural join t2 natural join t3;
-create algorithm=merge view v3b as
-select * from t1 natural join (t2 natural join t3);
-create algorithm=merge view v4 as
-select * from v2a natural join v3a;
-select * from (t1 natural join t2) natural join (t3 natural join t4);
-b c a y
-1 3 2 11
-1 3 2 2
-select * from (t1 natural join t2) natural left join (t3 natural join t4);
-b c a y
-1 10 2 NULL
-1 3 2 11
-1 3 2 2
-select * from (t3 natural join t4) natural right join (t1 natural join t2);
-b c a y
-1 10 2 NULL
-1 3 2 11
-1 3 2 2
-select * from (t1 natural left join t2) natural left join (t3 natural left join t4);
-b c a y
-1 10 2 NULL
-1 3 2 11
-1 3 2 2
-2 3 NULL NULL
-select * from (t4 natural right join t3) natural right join (t2 natural right join t1);
-b c a y
-1 10 2 NULL
-1 3 2 11
-1 3 2 2
-2 3 NULL NULL
-select * from t1 natural join t2 natural join t3 natural join t4;
-c b a y
-3 1 2 11
-3 1 2 2
-select * from ((t1 natural join t2) natural join t3) natural join t4;
-c b a y
-3 1 2 11
-3 1 2 2
-select * from t1 natural join (t2 natural join (t3 natural join t4));
-c b a y
-3 1 2 11
-3 1 2 2
-select * from t5 natural right join (t4 natural right join ((t2 natural right join t1) natural right join t3));
-y c b a z
-11 3 1 2 4
-2 3 1 2 NULL
-NULL 10 1 2 NULL
-select * from (t1 natural join t2), (t3 natural join t4);
-b c a c b y
-1 10 2 3 1 11
-1 10 2 3 1 2
-1 3 2 3 1 11
-1 3 2 3 1 2
-select * from t5 natural join ((t1 natural join t2), (t3 natural join t4));
-y z b c a c b
-11 4 1 10 2 3 1
-11 4 1 3 2 3 1
-select * from ((t1 natural join t2), (t3 natural join t4)) natural join t5;
-y b c a c b z
-11 1 10 2 3 1 4
-11 1 3 2 3 1 4
-select * from t5 natural join ((t1 natural join t2) cross join (t3 natural join t4));
-y z b c a c b
-11 4 1 10 2 3 1
-11 4 1 3 2 3 1
-select * from ((t1 natural join t2) cross join (t3 natural join t4)) natural join t5;
-y b c a c b z
-11 1 10 2 3 1 4
-11 1 3 2 3 1 4
-select * from (t1 join t2 using (b)) join (t3 join t4 using (c)) using (c);
-c b a b y
-3 1 2 1 11
-3 1 2 1 2
-select * from (t1 join t2 using (b)) natural join (t3 join t4 using (c));
-b c a y
-1 3 2 11
-1 3 2 2
-select a,b,c from (t1 natural join t2) natural join (t3 natural join t4)
-where b + 1 = y or b + 10 = y group by b,c,a having min(b) < max(y) order by a;
-a b c
-2 1 3
-select * from (t1 natural join t2) natural left join (t3 natural join t4)
-where b + 1 = y or b + 10 = y group by b,c,a,y having min(b) < max(y) order by a, y;
-b c a y
-1 3 2 2
-1 3 2 11
-select * from (t3 natural join t4) natural right join (t1 natural join t2)
-where b + 1 = y or b + 10 = y group by b,c,a,y having min(b) < max(y) order by a, y;
-b c a y
-1 3 2 2
-1 3 2 11
-select * from t1 natural join t2 where t1.c > t2.a;
-b c a
-1 10 2
-1 3 2
-select * from t1 natural join t2 where t1.b > t2.b;
-b c a
-select * from t1 natural left join (t4 natural join t5) where t5.z is not NULL;
-c b y z
-3 1 11 4
-3 2 11 4
-select * from t1 join (t2 join t4 on b + 1 = y) on t1.c = t4.c;
-c b a b y c
-3 1 2 1 2 3
-3 2 2 1 2 3
-select * from (t2 join t4 on b + 1 = y) join t1 on t1.c = t4.c;
-a b y c c b
-2 1 2 3 3 1
-2 1 2 3 3 2
-select * from t1 natural join (t2 join t4 on b + 1 = y);
-c b a y
-3 1 2 2
-select * from (t1 cross join t2) join (t3 cross join t4) on (a < y and t2.b < t3.c);
-c b a b b c y c
-10 1 2 1 1 3 11 3
-10 1 2 1 1 10 11 3
-3 1 2 1 1 3 11 3
-3 1 2 1 1 10 11 3
-3 2 2 1 1 3 11 3
-3 2 2 1 1 10 11 3
-select * from (t1, t2) join (t3, t4) on (a < y and t2.b < t3.c);
-c b a b b c y c
-10 1 2 1 1 3 11 3
-10 1 2 1 1 10 11 3
-3 1 2 1 1 3 11 3
-3 1 2 1 1 10 11 3
-3 2 2 1 1 3 11 3
-3 2 2 1 1 10 11 3
-select * from (t1 natural join t2) join (t3 natural join t4) on a = y;
-b c a c b y
-1 10 2 3 1 2
-1 3 2 3 1 2
-select * from ((t3 join (t1 join t2 on c > a) on t3.b < t2.a) join t4 on y > t1.c) join t5 on z = t1.b + 3;
-b c c b a b y c y z
-1 3 10 1 2 1 11 3 11 4
-1 10 10 1 2 1 11 3 11 4
-1 3 3 1 2 1 11 3 11 4
-1 10 3 1 2 1 11 3 11 4
-select * from t1 natural join t2 where t1.b > 0;
-b c a
-1 10 2
-1 3 2
-select * from t1 natural join (t4 natural join t5) where t4.y > 7;
-c b y z
-3 1 11 4
-3 2 11 4
-select * from (t4 natural join t5) natural join t1 where t4.y > 7;
-c y z b
-3 11 4 1
-3 11 4 2
-select * from t1 natural left join (t4 natural join t5) where t4.y > 7;
-c b y z
-3 1 11 4
-3 2 11 4
-select * from (t4 natural join t5) natural right join t1 where t4.y > 7;
-c b y z
-3 1 11 4
-3 2 11 4
-select * from (t1 natural join t2) join (t3 natural join t4) on t1.b = t3.b;
-b c a c b y
-1 10 2 3 1 11
-1 10 2 3 1 2
-1 3 2 3 1 11
-1 3 2 3 1 2
-select t1.*, t2.* from t1 natural join t2;
-c b a b
-10 1 2 1
-3 1 2 1
-select t1.*, t2.*, t3.*, t4.* from (t1 natural join t2) natural join (t3 natural join t4);
-c b a b b c y c
-3 1 2 1 1 3 11 3
-3 1 2 1 1 3 2 3
-select * from (select * from t1 natural join t2) as t12
-natural join
-(select * from t3 natural join t4) as t34;
-b c a y
-1 3 2 11
-1 3 2 2
-select * from (select * from t1 natural join t2) as t12
-natural left join
-(select * from t3 natural join t4) as t34;
-b c a y
-1 10 2 NULL
-1 3 2 11
-1 3 2 2
-select * from (select * from t3 natural join t4) as t34
-natural right join
-(select * from t1 natural join t2) as t12;
-b c a y
-1 10 2 NULL
-1 3 2 11
-1 3 2 2
-select * from v1a;
-b c a
-1 10 2
-1 3 2
-select * from v1b;
-a b c
-1 10 2
-1 3 2
-select * from v1c;
-a b c
-1 10 2
-1 3 2
-select * from v1d;
-b a c
-2 10 1
-2 3 1
-select * from v2a;
-c b a
-3 1 2
-3 2 2
-select * from v2b;
-b a c
-3 1 2
-3 2 2
-select * from v3a;
-b c a
-1 10 2
-1 3 2
-select * from v3b;
-c b a
-10 1 2
-3 1 2
-select * from v4;
-c b a
-3 1 2
-select * from v1a natural join v2a;
-b c a
-1 3 2
-select v2a.* from v1a natural join v2a;
-c b a
-3 1 2
-select * from v1b join v2a on v1b.b = v2a.c;
-a b c c b a
-1 3 2 3 1 2
-1 3 2 3 2 2
-select * from v1c join v2a on v1c.b = v2a.c;
-a b c c b a
-1 3 2 3 1 2
-1 3 2 3 2 2
-select * from v1d join v2a on v1d.a = v2a.c;
-b a c c b a
-2 3 1 3 1 2
-2 3 1 3 2 2
-select * from v1a join (t3 natural join t4) on a = y;
-b c a c b y
-1 10 2 3 1 2
-1 3 2 3 1 2
-select * from t1 natural join (t3 cross join t4);
-ERROR 23000: Column 'c' in from clause is ambiguous
-select * from (t3 cross join t4) natural join t1;
-ERROR 23000: Column 'c' in from clause is ambiguous
-select * from t1 join (t2, t3) using (b);
-ERROR 23000: Column 'b' in from clause is ambiguous
-select * from ((t1 natural join t2), (t3 natural join t4)) natural join t6;
-ERROR 23000: Column 'c' in from clause is ambiguous
-select * from ((t1 natural join t2), (t3 natural join t4)) natural join t6;
-ERROR 23000: Column 'c' in from clause is ambiguous
-select * from t6 natural join ((t1 natural join t2), (t3 natural join t4));
-ERROR 23000: Column 'c' in from clause is ambiguous
-select * from (t1 join t2 on t1.b=t2.b) natural join (t3 natural join t4);
-ERROR 23000: Column 'b' in from clause is ambiguous
-select * from (t3 natural join t4) natural join (t1 join t2 on t1.b=t2.b);
-ERROR 23000: Column 'b' in from clause is ambiguous
-select * from (t3 join (t4 natural join t5) on (b < z))
-natural join
-(t1 natural join t2);
-ERROR 23000: Column 'c' in from clause is ambiguous
-select * from (t1 natural join t2) natural join (t3 join (t4 natural join t5) on (b < z));
-ERROR 23000: Column 'c' in from clause is ambiguous
-select t1.b from v1a;
-ERROR 42S22: Unknown column 't1.b' in 'field list'
-select * from v1a join v1b on t1.b = t2.b;
-ERROR 42S22: Unknown column 't1.b' in 'on clause'
-select
-statistics.TABLE_NAME, statistics.COLUMN_NAME, statistics.TABLE_CATALOG, statistics.TABLE_SCHEMA, statistics.NON_UNIQUE, statistics.INDEX_SCHEMA, statistics.INDEX_NAME, statistics.SEQ_IN_INDEX, statistics.COLLATION, statistics.SUB_PART, statistics.PACKED, statistics.NULLABLE, statistics.INDEX_TYPE, statistics.COMMENT,
-columns.TABLE_CATALOG, columns.TABLE_SCHEMA, columns.COLUMN_DEFAULT, columns.IS_NULLABLE, columns.DATA_TYPE, columns.CHARACTER_MAXIMUM_LENGTH, columns.CHARACTER_OCTET_LENGTH, columns.NUMERIC_PRECISION, columns.NUMERIC_SCALE, columns.CHARACTER_SET_NAME, columns.COLLATION_NAME, columns.COLUMN_TYPE, columns.COLUMN_KEY, columns.EXTRA, columns.COLUMN_COMMENT
-from information_schema.statistics join information_schema.columns using(table_name,column_name) where table_name='user';
-TABLE_NAME COLUMN_NAME TABLE_CATALOG TABLE_SCHEMA NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLLATION SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT TABLE_CATALOG TABLE_SCHEMA COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA COLUMN_COMMENT
-user Host def mysql 0 mysql PRIMARY 1 A NULL NULL BTREE def mysql '' NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI
-user User def mysql 0 mysql PRIMARY 2 A NULL NULL BTREE def mysql '' NO char 80 240 NULL NULL utf8 utf8_bin char(80) PRI
-Warnings:
-Warning 1286 Unknown storage engine 'InnoDB'
-Warning 1286 Unknown storage engine 'InnoDB'
-Warning 1286 Unknown storage engine 'InnoDB'
-drop table t1;
-drop table t2;
-drop table t3;
-drop table t4;
-drop table t5;
-drop table t6;
-drop view v1a;
-drop view v1b;
-drop view v1c;
-drop view v1d;
-drop view v2a;
-drop view v2b;
-drop view v3a;
-drop view v3b;
-drop view v4;
-create table t1 (a1 int, a2 int);
-create table t2 (a1 int, b int);
-create table t3 (c1 int, c2 int);
-create table t4 (c2 int);
-insert into t1 values (1,1);
-insert into t2 values (1,1);
-insert into t3 values (1,1);
-insert into t4 values (1);
-select * from t1 join t2 using (a1) join t3 on b=c1 join t4 using (c2);
-c2 a1 a2 b c1
-1 1 1 1 1
-select * from t3 join (t1 join t2 using (a1)) on b=c1 join t4 using (c2);
-c2 c1 a1 a2 b
-1 1 1 1 1
-select a2 from t1 join t2 using (a1) join t3 on b=c1 join t4 using (c2);
-a2
-1
-select a2 from t3 join (t1 join t2 using (a1)) on b=c1 join t4 using (c2);
-a2
-1
-select a2 from ((t1 join t2 using (a1)) join t3 on b=c1) join t4 using (c2);
-a2
-1
-select a2 from ((t1 natural join t2) join t3 on b=c1) natural join t4;
-a2
-1
-drop table t1,t2,t3,t4;
-create table t1 (c int, b int);
-create table t2 (a int, b int);
-create table t3 (b int, c int);
-create table t4 (y int, c int);
-create table t5 (y int, z int);
-insert into t1 values (3,2);
-insert into t2 values (1,2);
-insert into t3 values (2,3);
-insert into t4 values (1,3);
-insert into t5 values (1,4);
-prepare stmt1 from "select * from ((t3 natural join (t1 natural join t2))
-natural join t4) natural join t5";
-execute stmt1;
-y c b a z
-1 3 2 1 4
-select * from ((t3 natural join (t1 natural join t2)) natural join t4)
-natural join t5;
-y c b a z
-1 3 2 1 4
-drop table t1, t2, t3, t4, t5;
-CREATE TABLE t1 (ID INTEGER, Name VARCHAR(50));
-CREATE TABLE t2 (Test_ID INTEGER);
-CREATE VIEW v1 (Test_ID, Description) AS SELECT ID, Name FROM t1;
-CREATE TABLE tv1 SELECT Description AS Name FROM v1 JOIN t2
-USING (Test_ID);
-DESCRIBE tv1;
-Field Type Null Key Default Extra
-Name varchar(50) YES NULL
-CREATE TABLE tv2 SELECT Description AS Name FROM v1 JOIN t2
-ON v1.Test_ID = t2.Test_ID;
-DESCRIBE tv2;
-Field Type Null Key Default Extra
-Name varchar(50) YES NULL
-DROP VIEW v1;
-DROP TABLE t1,t2,tv1,tv2;
-create table t1 (a int, b int);
-insert into t1 values
-(NULL, 1),
-(NULL, 2),
-(NULL, 3),
-(NULL, 4);
-create table t2 (a int not null, primary key(a));
-insert into t2 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t3 (a int not null, primary key(a));
-insert into t3 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-flush status;
-select * from t1, t2, t3 where t3.a=t1.a and t2.a=t1.b;
-a b a a
-explain select * from t1, t2, t3 where t3.a=t1.a and t2.a=t1.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.b 1 Using index
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using index
-We expect rnd_next=5, and read_key must be 0 because of short-cutting:
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 5
-drop table t1, t2, t3;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, filler char(100), key(a), key(b));
-create table t3 (a int, b int, filler char(100), key(a), key(b));
-insert into t2
-select @a:= A.a + 10*(B.a + 10*C.a), @a, 'filler' from t1 A, t1 B, t1 C;
-insert into t3 select * from t2 where a < 800;
-explain select * from t2,t3 where t2.a < 200 and t2.b=t3.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL a,b NULL NULL NULL 1000 Using where
-1 SIMPLE t3 ref b b 5 test.t2.b 1
-drop table t1, t2, t3;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, primary key(a));
-insert into t2 select @v:=A.a+10*B.a, @v from t1 A, t1 B;
-explain select * from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10
-show status like '%cost%';
-Variable_name Value
-Last_query_cost 4.016090
-select 'The cost of accessing t1 (dont care if it changes' '^';
-The cost of accessing t1 (dont care if it changes
-The cost of accessing t1 (dont care if it changes^
-select 'vv: Following query must use ALL(t1), eq_ref(A), eq_ref(B): vv' Z;
-Z
-vv: Following query must use ALL(t1), eq_ref(A), eq_ref(B): vv
-explain select * from t1, t2 A, t2 B where A.a = t1.a and B.a=A.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 Using where
-1 SIMPLE A eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where
-1 SIMPLE B eq_ref PRIMARY PRIMARY 4 test.A.b 1
-show status like '%cost%';
-Variable_name Value
-Last_query_cost 28.016090
-select '^^: The above should be ~= 20 + cost(select * from t1). Value less than 20 is an error' Z;
-Z
-^^: The above should be ~= 20 + cost(select * from t1). Value less than 20 is an error
-drop table t1, t2;
-CREATE TABLE t1 (a INT PRIMARY KEY, b INT);
-CREATE TABLE t2 (c INT PRIMARY KEY, d INT);
-INSERT INTO t1 VALUES(1,NULL),(2,NULL),(3,NULL),(4,NULL);
-INSERT INTO t1 SELECT a + 4, b FROM t1;
-INSERT INTO t1 SELECT a + 8, b FROM t1;
-INSERT INTO t1 SELECT a + 16, b FROM t1;
-INSERT INTO t1 SELECT a + 32, b FROM t1;
-INSERT INTO t1 SELECT a + 64, b FROM t1;
-INSERT INTO t2 SELECT a, b FROM t1;
-EXPLAIN SELECT * FROM t1 JOIN t2 ON b=c ORDER BY a LIMIT 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 2 Using where
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.b 1
-EXPLAIN SELECT * FROM t1 JOIN t2 ON a=c ORDER BY a LIMIT 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 4 NULL 2
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1
-SELECT * FROM t1 JOIN t2 ON b=c ORDER BY a LIMIT 2;
-a b c d
-SELECT * FROM t1 JOIN t2 ON a=c ORDER BY a LIMIT 2;
-a b c d
-1 NULL 1 NULL
-2 NULL 2 NULL
-EXPLAIN SELECT * FROM t1 JOIN t2 ON b=c ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 128 Using where; Using filesort
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.b 1
-EXPLAIN SELECT * FROM t1 JOIN t2 ON a=c ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 128 Using filesort
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1
-SELECT * FROM t1 JOIN t2 ON b=c ORDER BY a;
-a b c d
-SELECT * FROM t1 JOIN t2 ON a=c ORDER BY a;
-a b c d
-1 NULL 1 NULL
-2 NULL 2 NULL
-3 NULL 3 NULL
-4 NULL 4 NULL
-5 NULL 5 NULL
-6 NULL 6 NULL
-7 NULL 7 NULL
-8 NULL 8 NULL
-9 NULL 9 NULL
-10 NULL 10 NULL
-11 NULL 11 NULL
-12 NULL 12 NULL
-13 NULL 13 NULL
-14 NULL 14 NULL
-15 NULL 15 NULL
-16 NULL 16 NULL
-17 NULL 17 NULL
-18 NULL 18 NULL
-19 NULL 19 NULL
-20 NULL 20 NULL
-21 NULL 21 NULL
-22 NULL 22 NULL
-23 NULL 23 NULL
-24 NULL 24 NULL
-25 NULL 25 NULL
-26 NULL 26 NULL
-27 NULL 27 NULL
-28 NULL 28 NULL
-29 NULL 29 NULL
-30 NULL 30 NULL
-31 NULL 31 NULL
-32 NULL 32 NULL
-33 NULL 33 NULL
-34 NULL 34 NULL
-35 NULL 35 NULL
-36 NULL 36 NULL
-37 NULL 37 NULL
-38 NULL 38 NULL
-39 NULL 39 NULL
-40 NULL 40 NULL
-41 NULL 41 NULL
-42 NULL 42 NULL
-43 NULL 43 NULL
-44 NULL 44 NULL
-45 NULL 45 NULL
-46 NULL 46 NULL
-47 NULL 47 NULL
-48 NULL 48 NULL
-49 NULL 49 NULL
-50 NULL 50 NULL
-51 NULL 51 NULL
-52 NULL 52 NULL
-53 NULL 53 NULL
-54 NULL 54 NULL
-55 NULL 55 NULL
-56 NULL 56 NULL
-57 NULL 57 NULL
-58 NULL 58 NULL
-59 NULL 59 NULL
-60 NULL 60 NULL
-61 NULL 61 NULL
-62 NULL 62 NULL
-63 NULL 63 NULL
-64 NULL 64 NULL
-65 NULL 65 NULL
-66 NULL 66 NULL
-67 NULL 67 NULL
-68 NULL 68 NULL
-69 NULL 69 NULL
-70 NULL 70 NULL
-71 NULL 71 NULL
-72 NULL 72 NULL
-73 NULL 73 NULL
-74 NULL 74 NULL
-75 NULL 75 NULL
-76 NULL 76 NULL
-77 NULL 77 NULL
-78 NULL 78 NULL
-79 NULL 79 NULL
-80 NULL 80 NULL
-81 NULL 81 NULL
-82 NULL 82 NULL
-83 NULL 83 NULL
-84 NULL 84 NULL
-85 NULL 85 NULL
-86 NULL 86 NULL
-87 NULL 87 NULL
-88 NULL 88 NULL
-89 NULL 89 NULL
-90 NULL 90 NULL
-91 NULL 91 NULL
-92 NULL 92 NULL
-93 NULL 93 NULL
-94 NULL 94 NULL
-95 NULL 95 NULL
-96 NULL 96 NULL
-97 NULL 97 NULL
-98 NULL 98 NULL
-99 NULL 99 NULL
-100 NULL 100 NULL
-101 NULL 101 NULL
-102 NULL 102 NULL
-103 NULL 103 NULL
-104 NULL 104 NULL
-105 NULL 105 NULL
-106 NULL 106 NULL
-107 NULL 107 NULL
-108 NULL 108 NULL
-109 NULL 109 NULL
-110 NULL 110 NULL
-111 NULL 111 NULL
-112 NULL 112 NULL
-113 NULL 113 NULL
-114 NULL 114 NULL
-115 NULL 115 NULL
-116 NULL 116 NULL
-117 NULL 117 NULL
-118 NULL 118 NULL
-119 NULL 119 NULL
-120 NULL 120 NULL
-121 NULL 121 NULL
-122 NULL 122 NULL
-123 NULL 123 NULL
-124 NULL 124 NULL
-125 NULL 125 NULL
-126 NULL 126 NULL
-127 NULL 127 NULL
-128 NULL 128 NULL
-DROP TABLE IF EXISTS t1,t2;
-#
-# Bug #42116: Mysql crash on specific query
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-CREATE TABLE t3 (a INT, INDEX (a));
-CREATE TABLE t4 (a INT);
-CREATE TABLE t5 (a INT);
-CREATE TABLE t6 (a INT);
-INSERT INTO t1 VALUES (1), (1), (1);
-INSERT INTO t2 VALUES
-(2), (2), (2), (2), (2), (2), (2), (2), (2), (2);
-INSERT INTO t3 VALUES
-(3), (3), (3), (3), (3), (3), (3), (3), (3), (3);
-EXPLAIN
-SELECT *
-FROM
-t1 JOIN t2 ON t1.a = t2.a
-LEFT JOIN
-(
-(
-t3 LEFT JOIN t4 ON t3.a = t4.a
-)
-LEFT JOIN
-(
-t5 LEFT JOIN t6 ON t5.a = t6.a
-)
-ON t4.a = t5.a
-)
-ON t1.a = t3.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t3 ref a a 5 test.t1.a 2 Using where; Using index
-1 SIMPLE t4 ALL NULL NULL NULL NULL 0 Using where
-1 SIMPLE t5 ALL NULL NULL NULL NULL 0 Using where
-1 SIMPLE t6 ALL NULL NULL NULL NULL 0 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 10 Using where; Using join buffer (flat, BNL join)
-SELECT *
-FROM
-t1 JOIN t2 ON t1.a = t2.a
-LEFT JOIN
-(
-(
-t3 LEFT JOIN t4 ON t3.a = t4.a
-)
-LEFT JOIN
-(
-t5 LEFT JOIN t6 ON t5.a = t6.a
-)
-ON t4.a = t5.a
-)
-ON t1.a = t3.a;
-a a a a a a
-DROP TABLE t1,t2,t3,t4,t5,t6;
-#
-# Bug#48483: crash in get_best_combination()
-#
-CREATE TABLE t1(f1 INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE VIEW v1 AS SELECT 1 FROM t1 LEFT JOIN t1 AS t2 on 1=1;
-EXPLAIN EXTENDED
-SELECT 1 FROM v1 right join v1 AS v2 ON RAND();
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select 1 AS `1` from `test`.`t1` left join `test`.`t1` `t2` on(1 = 1) left join (`test`.`t1` left join `test`.`t1` `t2` on(1 = 1)) on(rand()) where 1
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug#52177 crash with explain, row comparison, join, text field
-#
-CREATE TABLE t1 (a TINYINT, b TEXT, KEY (a));
-INSERT INTO t1 VALUES (0,''),(0,'');
-FLUSH TABLES;
-EXPLAIN SELECT 1 FROM t1 LEFT JOIN t1 a ON 1
-WHERE ROW(t1.a, 1111.11) = ROW(1111.11, 1111.11) AND
-ROW(t1.b, 1111.11) <=> ROW('','');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-DROP TABLE t1;
-#
-# Bug #50335: Assertion `!(order->used & map)' in eq_ref_table
-#
-CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL, PRIMARY KEY (a,b));
-INSERT INTO t1 VALUES (0,0), (1,1);
-SELECT * FROM t1 STRAIGHT_JOIN t1 t2 ON t1.a=t2.a AND t1.a=t2.b ORDER BY t2.a, t1.a;
-a b a b
-0 0 0 0
-1 1 1 1
-DROP TABLE t1;
-End of 5.0 tests.
-CREATE TABLE t1 (f1 int);
-CREATE TABLE t2 (f1 int);
-INSERT INTO t2 VALUES (1);
-CREATE VIEW v1 AS SELECT * FROM t2;
-PREPARE stmt FROM 'UPDATE t2 AS A NATURAL JOIN v1 B SET B.f1 = 1';
-EXECUTE stmt;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-DROP VIEW v1;
-DROP TABLE t1, t2;
-CREATE TABLE t1(a CHAR(9),b INT,KEY(b),KEY(a)) ENGINE=MYISAM;
-CREATE TABLE t2(a CHAR(9),b INT,KEY(b),KEY(a)) ENGINE=MYISAM;
-INSERT INTO t1 VALUES ('1',null),(null,null);
-INSERT INTO t2 VALUES ('1',null),(null,null);
-CREATE TABLE mm1(a CHAR(9),b INT,KEY(b),KEY(a))
-ENGINE=MERGE UNION=(t1,t2);
-SELECT t1.a FROM mm1,t1;
-a
-NULL
-1
-NULL
-1
-NULL
-1
-NULL
-1
-DROP TABLE t1, t2, mm1;
-#
-# Bug #54468: crash after item's print() function when ordering/grouping
-# by subquery
-#
-CREATE TABLE t1(a INT, b INT);
-INSERT INTO t1 VALUES (), ();
-SELECT 1 FROM t1
-GROUP BY
-GREATEST(t1.a,
-(SELECT 1 FROM
-(SELECT t1.b FROM t1,t1 t2
-ORDER BY t1.a, t1.a LIMIT 1) AS d)
-);
-1
-1
-DROP TABLE t1;
-#
-# Bug #53544: Server hangs during JOIN query in stored procedure called
-# twice in a row
-#
-CREATE TABLE t1(c INT);
-INSERT INTO t1 VALUES (1), (2);
-PREPARE stmt FROM "SELECT t2.c AS f1 FROM t1 LEFT JOIN
- t1 t2 ON t1.c=t2.c RIGHT JOIN
- t1 t3 ON t1.c=t3.c
- GROUP BY f1;";
-EXECUTE stmt;
-f1
-1
-2
-EXECUTE stmt;
-f1
-1
-2
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# Bug LP:798597: Incorrect "Duplicate entry" error with views and
-# GROUP BY
-#
-CREATE TABLE t1 ( f1 int NOT NULL , f2 int NOT NULL ) ;
-INSERT INTO t1 VALUES (214,0),(6,6);
-CREATE TABLE t2 ( f2 int) ;
-INSERT INTO t2 VALUES (88),(88);
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT t1.f1, t2.f2 FROM (t2 LEFT JOIN t1 ON (t2.f2 <> t1.f1)) WHERE (t1.f2 <= 0) ;
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT t1.f1, t2.f2 FROM (t2 LEFT JOIN t1 ON (t2.f2 <> t1.f1)) WHERE (t1.f2 <= 0 or t1.f2 is null) ;
-SELECT f1 , MIN(f2) FROM v1 GROUP BY f1;
-f1 MIN(f2)
-214 88
-SELECT f1 , MIN(f2) FROM v2 GROUP BY f1;
-f1 MIN(f2)
-214 88
-drop table t1,t2;
-drop view v1,v2;
-#
-# BUG#47217 Lost optimization caused slowdown & wrong result.
-#
-CREATE TABLE t1 (pk INT, v VARCHAR(2), PRIMARY KEY(pk));
-CREATE INDEX ix1 ON t1(v);
-CREATE TABLE t2 (pk INT, v VARCHAR(2), PRIMARY KEY(pk));
-CREATE INDEX ix2 ON t2(v);
-INSERT INTO t1 VALUES (1,'a'),(2,NULL);
-INSERT INTO t2 VALUES (1,NULL);
-EXPLAIN SELECT * FROM t1 JOIN t2 ON t1.v = t2.v ORDER BY 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 JOIN t2 ON t1.v = t2.v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-INSERT INTO t1 VALUES (3,'b'),(4,NULL),(5,'c'),(6,'cc'),(7,'d'),
-(8,'dd'),(9,'e'),(10,'ee');
-INSERT INTO t2 VALUES (2,NULL);
-FLUSH STATUS;
-SELECT * FROM t1 JOIN t2 ON t1.v = t2.v WHERE t2.v IS NULL ORDER BY 1;
-pk v pk v
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 1
-DROP TABLE t1, t2;
-End of 5.1 tests
-#
-# Bug #43368: STRAIGHT_JOIN DOESN'T WORK FOR NESTED JOINS
-#
-create table t1(c1 int primary key, c2 char(10)) engine=myisam;
-create table t2(c1 int primary key, c2 char(10), ref_t1 int) engine=myisam;
-create table t3(c1 int primary key, c2 char(10), ref_t1 int) engine=myisam;
-create table t4(c1 int primary key, c2 char(10), ref_t1 int) engine=myisam;
-insert into t1 values(1,'a');
-insert into t2 values(1,'a', 1);
-insert into t3 values(1,'a', 1);
-insert into t3 values(2,'b',2);
-insert into t4 values(1,'a', 1);
-insert into t4 values(2,'a', 2);
-insert into t4 values(3,'a', 3);
-insert into t4 values(4,'a', 4);
-insert into t1 values(2,'b');
-insert into t1 values(3,'c');
-EXPLAIN
-SELECT *
-FROM t4 JOIN
-(t1 JOIN t3 ON t3.ref_t1=t1.c1 JOIN t2 ON t2.ref_t1=t1.c1)
-ON t4.ref_t1=t1.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-EXPLAIN
-SELECT STRAIGHT_JOIN *
-FROM t4 JOIN
-(t1 JOIN t3 ON t3.ref_t1=t1.c1 JOIN t2 ON t2.ref_t1=t1.c1)
-ON t4.ref_t1=t1.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 4
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-EXPLAIN
-SELECT *
-FROM t4 STRAIGHT_JOIN
-(t1 JOIN t3 ON t3.ref_t1=t1.c1 JOIN t2 ON t2.ref_t1=t1.c1)
-ON t4.ref_t1=t1.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 4 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t4.ref_t1 1
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-drop table t1,t2,t3,t4;
-End of 5.2 tests
-#
-# BUG#724275: Crash in JOIN::optimize in maria-5.3
-#
-create table t1 (a int);
-insert into t1 values (1),(2);
-insert into t1 select * from t1;
-create table t2 (a int, b int, key(a,b));
-insert into t2 values (1,1),(1,2),(1,3),(1,4),(2,5),(2,6),(2,7),(2,8),(2,9);
-insert into t2 select * from t2;
-insert into t2 select * from t2;
-insert into t2 select * from t2;
-create table t3 (a int, b int, key(a));
-insert into t3 values (1,1),(2,2);
-select * from
-t3 straight_join t1 straight_join t2 force index(a)
-where t2.a=1 and t2.b=t1.a and t1.a=t3.b and t3.a=1;
-a b a a b
-1 1 1 1 1
-1 1 1 1 1
-1 1 1 1 1
-1 1 1 1 1
-1 1 1 1 1
-1 1 1 1 1
-1 1 1 1 1
-1 1 1 1 1
-1 1 1 1 1
-1 1 1 1 1
-1 1 1 1 1
-1 1 1 1 1
-1 1 1 1 1
-1 1 1 1 1
-1 1 1 1 1
-1 1 1 1 1
-drop table t1,t2,t3;
-#
-# BUG#729067/730466: unexpected 'Range checked for each record'
-# for queries with OR in WHERE clause
-#
-CREATE TABLE t1 (f1 int, f2 int) ;
-INSERT INTO t1 VALUES (4,0),(5,1);
-CREATE TABLE t2 (f1 int, f2 int, KEY (f2)) ;
-INSERT INTO t2 VALUES (5,7), (8,9);
-EXPLAIN
-SELECT * FROM t1 STRAIGHT_JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1<>0 OR t1.f2<>0 AND t1.f1 = t2.f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t2 ALL f2 NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM t1 STRAIGHT_JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1<>0 OR t1.f2<>0 AND t1.f1 = t2.f2;
-f1 f2 f1 f2
-5 1 5 7
-DROP TABLE t1,t2;
-CREATE TABLE t1(f1 int PRIMARY KEY, f2 int) ;
-INSERT INTO t1 VALUES (9,4), (10,9);
-CREATE TABLE t2(f1 int PRIMARY KEY, f2 int) ;
-INSERT INTO t2 VALUES (9,4), (10,9);
-EXPLAIN
-SELECT STRAIGHT_JOIN * FROM t1 JOIN t2 ON t2.f2 = t1.f1
-WHERE t1.f1 IN (SELECT f1 FROM t1) AND t1.f1 = t2.f1 OR t1.f1 = 9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 2 Using where
-1 PRIMARY t2 ALL PRIMARY NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t1 unique_subquery PRIMARY PRIMARY 4 func 1 Using index
-SELECT STRAIGHT_JOIN * FROM t1 JOIN t2 ON t2.f2 = t1.f1
-WHERE t1.f1 IN (SELECT f1 FROM t1) AND t1.f1 = t2.f1 OR t1.f1 = 9;
-f1 f2 f1 f2
-9 4 10 9
-DROP TABLE t1,t2;
-create table t1 (i time key);
-insert into t1 values ('1:1:1'), ('2:2:2');
-create table t2 (i time);
-insert into t2 values ('1:1:1');
-select t2.i from t1 left join t2 on t2.i = t1.i where t1.i = '1:1:1';
-i
-01:01:01
-drop table t1,t2;
-#
-# BUG#954900: unexpected empty set due to an invalid build of key ref
-#
-CREATE TABLE t1 (dog_id int(10), birthday date, PRIMARY KEY (dog_id,birthday));
-INSERT INTO t1 VALUES (5918,'2004-07-22');
-CREATE TABLE t2 (dog_id int(10) unsigned, t_id char(1), birthday date, a_id int(10),
-PRIMARY KEY (dog_id,t_id,birthday,a_id));
-INSERT INTO t2 VALUES
-(5918,'N','2004-07-22',5216551), (5918,'N','2004-07-22',5223640),
-(5918,'N','2004-07-22',5389491), (5918,'N','2004-07-22',5749434),
-(5918,'N','2004-07-22',5992424), (5922,'N','2005-06-30',5076957),
-(5924,'N','2000-08-11',20264), (5924,'N','2000-08-11',64251),
-(5924,'N','2000-08-11',74748), (5924,'N','2000-08-11',87590),
-(5924,'N','2000-08-11',104695), (5924,'N','2000-08-11',133136),
-(5924,'N','2000-08-11',5027806), (5924,'N','2000-08-11',5076957),
-(5924,'N','2000-08-11',5166821), (5924,'N','2000-08-11',5181896),
-(5924,'N','2000-08-11',5217908), (5924,'N','2000-08-11',5220812),
-(5924,'N','2000-08-11',5226473), (5924,'N','2000-08-11',5339111),
-(5925,'N','2005-02-10',19227), (5925,'N','2005-02-10',74529),
-(5925,'N','2005-02-10',74748), (5927,'N','2005-08-18',20264),
-(5927,'N','2005-08-18',58364), (5929,'N','2005-01-19',58364),
-(5935,'N','2006-03-10',19227), (5935,'N','2006-03-10',64251),
-(5935,'N','2006-03-10',5222400), (5935,'N','2006-03-10',5226473),
-(5936,'N','2004-10-29',5015032), (5937,'N','2002-04-05',11237),
-(5937,'N','2002-04-05',23911), (5937,'N','2002-04-05',112133),
-(5937,'N','2002-04-05',169721), (5937,'N','2002-04-05',170650),
-(5937,'N','2002-04-05',5014494), (5937,'N','2002-04-05',5166009),
-(5937,'N','2002-04-05',5181871), (5937,'N','2002-04-05',5213380),
-(5937,'N','2002-04-05',5214875), (5937,'N','2002-04-05',5895062),
-(5938,'N','2006-03-24',11237), (5938,'N','2006-03-24',19227),
-(5938,'N','2006-03-24',23911), (5938,'N','2006-03-24',58364),
-(5938,'N','2006-03-24',64251), (5938,'N','2006-03-24',111716),
-(5938,'N','2006-03-24',112702), (5938,'N','2006-03-24',133136),
-(5938,'N','2006-03-24',168718), (5938,'N','2006-03-24',5137136),
-(5938,'N','2006-03-24',5161519), (5938,'N','2006-03-24',5168120),
-(5938,'N','2006-03-24',5219034), (6234,'N','2006-06-02',103058),
-(6234,'N','2006-06-02',5146844), (6235,'N','2006-06-01',12900),
-(6235,'N','2006-06-01',20264), (6235,'N','2006-06-01',64251),
-(6235,'N','2006-06-01',75160), (6235,'N','2006-06-01',5014494),
-(6235,'N','2006-06-01',5181638), (6236,'N','2006-06-06',112595),
-(6236,'N','2006-06-06',5219601), (6236,'N','2006-06-06',5808374);
-CREATE TABLE t3 (dog_id int(10) unsigned);
-INSERT INTO t3 VALUES (5918);
-CREATE TABLE t4 (dog_id int(10), t_id char(1), birthday date, KEY (t_id));
-INSERT INTO t4 VALUES (5918,'N','2004-07-22'), (5919,'N','2004-07-20');
-CREATE TABLE t5 (dog_id int(10) unsigned, UNIQUE KEY (dog_id));
-INSERT INTO t5 VALUES (5918);
-SET @tmp_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='index_condition_pushdown=off';
-EXPLAIN
-SELECT * FROM t5 DU, t1 D, t4 DT, t2 DSA, t3 DSAR
-WHERE DU.dog_id=D.dog_id AND D.dog_id=DT.dog_id AND D.birthday=DT.birthday AND
-DT.t_id=DSA.t_id AND DT.birthday=DSA.birthday AND DSA.dog_id=DSAR.dog_id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE DU system dog_id NULL NULL NULL 1
-1 SIMPLE D system PRIMARY NULL NULL NULL 1
-1 SIMPLE DSAR system NULL NULL NULL NULL 1
-1 SIMPLE DT range t_id t_id 2 NULL 2 Using where
-1 SIMPLE DSA ref PRIMARY PRIMARY 8 const,test.DT.t_id,func 1 Using index
-SELECT * FROM t5 DU, t1 D, t4 DT, t2 DSA, t3 DSAR
-WHERE DU.dog_id=D.dog_id AND D.dog_id=DT.dog_id AND D.birthday=DT.birthday AND
-DT.t_id=DSA.t_id AND DT.birthday=DSA.birthday AND DSA.dog_id=DSAR.dog_id;
-dog_id dog_id birthday dog_id t_id birthday dog_id t_id birthday a_id dog_id
-5918 5918 2004-07-22 5918 N 2004-07-22 5918 N 2004-07-22 5216551 5918
-5918 5918 2004-07-22 5918 N 2004-07-22 5918 N 2004-07-22 5223640 5918
-5918 5918 2004-07-22 5918 N 2004-07-22 5918 N 2004-07-22 5389491 5918
-5918 5918 2004-07-22 5918 N 2004-07-22 5918 N 2004-07-22 5749434 5918
-5918 5918 2004-07-22 5918 N 2004-07-22 5918 N 2004-07-22 5992424 5918
-SET optimizer_switch=@tmp_optimizer_switch;
-DROP TABLE t1,t2,t3,t4,t5;
-#
-# MDEV-4752: Segfault during parsing of illegal query
-#
-SELECT * FROM t5 JOIN (t1 JOIN t2 UNION SELECT * FROM t3 JOIN t4);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT * FROM t3 JOIN t4)' at line 1
-#
-# MDEV-4959: join of const table with NULL fields
-#
-CREATE TABLE t1 (i1 int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (NULL);
-CREATE TABLE t2 (i2 int, a int, b int) ENGINE=MyISAM;
-CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
-INSERT INTO t2 VALUES (NULL,1,2),(NULL,2,3);
-SELECT * FROM t1 JOIN v2 ON i1 = i2 WHERE a < b;
-i1 i2 a b
-EXPLAIN EXTENDED
-SELECT * FROM t1 JOIN v2 ON i1 = i2 WHERE a < b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select NULL AS `i1`,`v2`.`i2` AS `i2`,`v2`.`a` AS `a`,`v2`.`b` AS `b` from `test`.`v2` where `v2`.`i2` = NULL and `v2`.`a` < `v2`.`b`
-DROP VIEW v2;
-DROP TABLE t1,t2;
-SET optimizer_switch=@save_optimizer_switch;
-#
-# Bug #35268: Parser can't handle STRAIGHT_JOIN with USING
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 (a) VALUES (1),(2),(3),(4),(5),(6),(7),(8);
-CREATE TABLE t2 (a int);
-INSERT INTO t2 (a) VALUES (1),(2),(3),(4);
-EXPLAIN
-SELECT t1.a FROM t1 NATURAL INNER JOIN t2 ORDER BY t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 Using temporary; Using filesort
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-SELECT t1.a FROM t1 NATURAL INNER JOIN t2 ORDER BY t1.a;
-a
-1
-2
-3
-4
-EXPLAIN
-SELECT t1.a FROM t1 STRAIGHT_JOIN t2 USING(a) ORDER BY t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-SELECT t1.a FROM t1 STRAIGHT_JOIN t2 USING(a) ORDER BY t1.a;
-a
-1
-2
-3
-4
-EXPLAIN
-SELECT t1.a FROM t1 NATURAL STRAIGHT_JOIN t2 ORDER BY t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-SELECT t1.a FROM t1 NATURAL STRAIGHT_JOIN t2 ORDER BY t1.a;
-a
-1
-2
-3
-4
-DROP TABLE t1,t2;
-#
-# MDEV-5635: join of a const table with non-const tables
-#
-CREATE TABLE t1 (a varchar(3) NOT NULL) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo');
-CREATE TABLE t2 (b varchar(3), c varchar(3), INDEX(b)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('bar', 'bar'),( 'qux', 'qux');
-SELECT STRAIGHT_JOIN * FROM t1, t2 AS t2_1, t2 AS t2_2
-WHERE t2_2.c = t2_1.c AND t2_2.b = t2_1.b AND ( a IS NULL OR t2_1.c = a );
-a b c b c
-DROP TABLE t1,t2;
diff --git a/mysql-test/r/join_cache.result b/mysql-test/r/join_cache.result
deleted file mode 100644
index eea397402ad..00000000000
--- a/mysql-test/r/join_cache.result
+++ /dev/null
@@ -1,6019 +0,0 @@
-DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11;
-DROP DATABASE IF EXISTS world;
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch='optimize_join_buffer_size=on';
-set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
-set @@optimizer_switch='semijoin_with_cache=on';
-set @@optimizer_switch='outer_join_with_cache=on';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set @local_join_cache_test_optimizer_switch_default=@@optimizer_switch;
-set names utf8;
-CREATE DATABASE world;
-use world;
-CREATE TABLE Country (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL
-);
-CREATE TABLE City (
-ID int(11) NOT NULL,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0'
-);
-CREATE TABLE CountryLanguage (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0'
-);
-SELECT COUNT(*) FROM Country;
-COUNT(*)
-239
-SELECT COUNT(*) FROM City;
-COUNT(*)
-4079
-SELECT COUNT(*) FROM CountryLanguage;
-COUNT(*)
-984
-show variables like 'join_buffer_size';
-Variable_name Value
-join_buffer_size 262144
-set join_cache_level=1;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 1
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE City ALL NULL NULL NULL NULL 4079 Using where; Using join buffer (flat, BNL join)
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE CountryLanguage ALL NULL NULL NULL NULL 984 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE City ALL NULL NULL NULL NULL 4079 Using where; Using join buffer (flat, BNL join)
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-set join_cache_level=2;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 2
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE City ALL NULL NULL NULL NULL 4079 Using where; Using join buffer (flat, BNL join)
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE CountryLanguage ALL NULL NULL NULL NULL 984 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE City ALL NULL NULL NULL NULL 4079 Using where; Using join buffer (incremental, BNL join)
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-set join_cache_level=3;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 3
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE City hash_ALL NULL #hash#$hj 3 world.Country.Code 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE CountryLanguage hash_ALL NULL #hash#$hj 3 world.Country.Code 984 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE City hash_ALL NULL #hash#$hj 3 world.Country.Code 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-set join_cache_level=4;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 4
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE City hash_ALL NULL #hash#$hj 3 world.Country.Code 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE CountryLanguage hash_ALL NULL #hash#$hj 3 world.Country.Code 984 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE City hash_ALL NULL #hash#$hj 3 world.Country.Code 4079 Using where; Using join buffer (incremental, BNLH join)
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-SELECT Country.Name, Country.Population, City.Name, City.Population
-FROM Country LEFT JOIN City
-ON City.Country=Country.Code AND City.Population > 5000000
-WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
-Name Population Name Population
-China 1277558000 Shanghai 9696300
-China 1277558000 Peking 7472000
-China 1277558000 Chongqing 6351600
-China 1277558000 Tianjin 5286800
-Colombia 42321000 Santafé de Bogotá 6260862
-Congo, The Democratic Republic of the 51654000 Kinshasa 5064000
-Chile 15211000 NULL NULL
-Cambodia 11168000 NULL NULL
-Cameroon 15085000 NULL NULL
-Canada 31147000 NULL NULL
-Cuba 11201000 NULL NULL
-Côte d?Ivoire 14786000 NULL NULL
-Czech Republic 10278100 NULL NULL
-SELECT Country.Name, Country.Population, City.Name, City.Population
-FROM Country LEFT JOIN City
-ON City.Country=Country.Code AND
-(City.Population > 5000000 OR City.Name LIKE 'Za%')
-WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
-Name Population Name Population
-China 1277558000 Shanghai 9696300
-China 1277558000 Peking 7472000
-China 1277558000 Chongqing 6351600
-China 1277558000 Tianjin 5286800
-China 1277558000 Zaozhuang 380846
-China 1277558000 Zaoyang 162198
-China 1277558000 Zalantun 130031
-Colombia 42321000 Santafé de Bogotá 6260862
-Congo, The Democratic Republic of the 51654000 Kinshasa 5064000
-Chile 15211000 NULL NULL
-Cambodia 11168000 NULL NULL
-Cameroon 15085000 NULL NULL
-Canada 31147000 NULL NULL
-Cuba 11201000 NULL NULL
-Côte d?Ivoire 14786000 NULL NULL
-Czech Republic 10278100 NULL NULL
-CREATE INDEX City_Population ON City(Population);
-CREATE INDEX City_Name ON City(Name);
-ANALYZE TABLE City;
-EXPLAIN
-SELECT Country.Name, Country.Population, City.Name, City.Population
-FROM Country LEFT JOIN City
-ON City.Country=Country.Code AND City.Population > 5000000
-WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE City hash_range City_Population #hash#$hj:City_Population 3:4 world.Country.Code 25 Using where; Rowid-ordered scan; Using join buffer (flat, BNLH join)
-SELECT Country.Name, Country.Population, City.Name, City.Population
-FROM Country LEFT JOIN City
-ON City.Country=Country.Code AND City.Population > 5000000
-WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
-Name Population Name Population
-China 1277558000 Shanghai 9696300
-China 1277558000 Peking 7472000
-China 1277558000 Chongqing 6351600
-China 1277558000 Tianjin 5286800
-Colombia 42321000 Santafé de Bogotá 6260862
-Congo, The Democratic Republic of the 51654000 Kinshasa 5064000
-Chile 15211000 NULL NULL
-Cambodia 11168000 NULL NULL
-Cameroon 15085000 NULL NULL
-Canada 31147000 NULL NULL
-Cuba 11201000 NULL NULL
-Côte d?Ivoire 14786000 NULL NULL
-Czech Republic 10278100 NULL NULL
-EXPLAIN
-SELECT Country.Name, Country.Population, City.Name, City.Population
-FROM Country LEFT JOIN City
-ON City.Country=Country.Code AND
-(City.Population > 5000000 OR City.Name LIKE 'Za%')
-WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE City hash_index_merge City_Population,City_Name #hash#$hj:City_Population,City_Name 3:4,35 world.Country.Code 96 Using sort_union(City_Population,City_Name); Using where; Using join buffer (flat, BNLH join)
-SELECT Country.Name, Country.Population, City.Name, City.Population
-FROM Country LEFT JOIN City
-ON City.Country=Country.Code AND
-(City.Population > 5000000 OR City.Name LIKE 'Za%')
-WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
-Name Population Name Population
-China 1277558000 Shanghai 9696300
-China 1277558000 Peking 7472000
-China 1277558000 Chongqing 6351600
-China 1277558000 Tianjin 5286800
-China 1277558000 Zaozhuang 380846
-China 1277558000 Zaoyang 162198
-China 1277558000 Zalantun 130031
-Colombia 42321000 Santafé de Bogotá 6260862
-Congo, The Democratic Republic of the 51654000 Kinshasa 5064000
-Chile 15211000 NULL NULL
-Cambodia 11168000 NULL NULL
-Cameroon 15085000 NULL NULL
-Canada 31147000 NULL NULL
-Cuba 11201000 NULL NULL
-Côte d?Ivoire 14786000 NULL NULL
-Czech Republic 10278100 NULL NULL
-DROP INDEX City_Population ON City;
-DROP INDEX City_Name ON City;
-set join_cache_level=1;
-set join_buffer_size=256;
-show variables like 'join_buffer_size';
-Variable_name Value
-join_buffer_size 256
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 1
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE City ALL NULL NULL NULL NULL 4079 Using where; Using join buffer (flat, BNL join)
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE CountryLanguage ALL NULL NULL NULL NULL 984 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE City ALL NULL NULL NULL NULL 4079 Using where; Using join buffer (flat, BNL join)
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-set join_cache_level=2;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 2
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE City ALL NULL NULL NULL NULL 4079 Using where; Using join buffer (flat, BNL join)
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE CountryLanguage ALL NULL NULL NULL NULL 984 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE City ALL NULL NULL NULL NULL 4079 Using where; Using join buffer (incremental, BNL join)
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-set join_cache_level=3;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 3
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE City hash_ALL NULL #hash#$hj 3 world.Country.Code 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE CountryLanguage hash_ALL NULL #hash#$hj 3 world.Country.Code 984 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE City hash_ALL NULL #hash#$hj 3 world.Country.Code 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-set join_cache_level=4;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 4
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE City hash_ALL NULL #hash#$hj 3 world.Country.Code 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE CountryLanguage hash_ALL NULL #hash#$hj 3 world.Country.Code 984 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE City hash_ALL NULL #hash#$hj 3 world.Country.Code 4079 Using where; Using join buffer (incremental, BNLH join)
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-set join_cache_level=default;
-set join_buffer_size=default;
-show variables like 'join_buffer_size';
-Variable_name Value
-join_buffer_size 262144
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 2
-DROP DATABASE world;
-CREATE DATABASE world;
-use world;
-CREATE TABLE Country (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name)
-);
-CREATE TABLE City (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-);
-CREATE TABLE CountryLanguage (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-);
-show variables like 'join_buffer_size';
-Variable_name Value
-join_buffer_size 262144
-set join_cache_level=3;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 3
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 SIMPLE City hash_ALL Population,Country #hash#Country 3 world.Country.Code 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CountryLanguage ALL PRIMARY,Percentage NULL NULL NULL 984 Using where
-1 SIMPLE Country hash_ALL PRIMARY #hash#PRIMARY 3 world.CountryLanguage.Country 239 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE City hash_ALL Country #hash#Country 3 world.CountryLanguage.Country 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-EXPLAIN
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 PRIMARY City hash_ALL Population,Country #hash#Country 3 world.Country.Code 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-Name
-Vientiane
-Riga
-Daugavpils
-Maseru
-Beirut
-Tripoli
-Monrovia
-Tripoli
-Bengasi
-Misrata
-Vilnius
-Kaunas
-Klaipeda
-?iauliai
-Panevezys
-EXPLAIN
-SELECT Country.Name, IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-FROM Country LEFT JOIN CountryLanguage ON
-(CountryLanguage.Country=Country.Code AND Language='English')
-WHERE
-Country.Population > 10000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE CountryLanguage hash_ALL PRIMARY #hash#PRIMARY 33 world.Country.Code,const 984 Using where; Using join buffer (flat, BNLH join)
-SELECT Country.Name, IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-FROM Country LEFT JOIN CountryLanguage ON
-(CountryLanguage.Country=Country.Code AND Language='English')
-WHERE
-Country.Population > 10000000;
-Name IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-Australia 81.2
-United Kingdom 97.3
-Canada 60.4
-United States 86.2
-Zimbabwe 2.2
-Japan 0.1
-South Africa 8.5
-Malaysia 1.6
-Afghanistan NULL
-Netherlands NULL
-Algeria NULL
-Angola NULL
-Argentina NULL
-Bangladesh NULL
-Belgium NULL
-Brazil NULL
-Burkina Faso NULL
-Chile NULL
-Ecuador NULL
-Egypt NULL
-Spain NULL
-Ethiopia NULL
-Philippines NULL
-Ghana NULL
-Guatemala NULL
-Indonesia NULL
-India NULL
-Iraq NULL
-Iran NULL
-Italy NULL
-Yemen NULL
-Yugoslavia NULL
-Cambodia NULL
-Cameroon NULL
-Kazakstan NULL
-Kenya NULL
-China NULL
-Colombia NULL
-Congo, The Democratic Republic of the NULL
-North Korea NULL
-South Korea NULL
-Greece NULL
-Cuba NULL
-Madagascar NULL
-Malawi NULL
-Mali NULL
-Morocco NULL
-Mexico NULL
-Mozambique NULL
-Myanmar NULL
-Nepal NULL
-Niger NULL
-Nigeria NULL
-Côte d?Ivoire NULL
-Pakistan NULL
-Peru NULL
-Poland NULL
-France NULL
-Romania NULL
-Germany NULL
-Saudi Arabia NULL
-Somalia NULL
-Sri Lanka NULL
-Sudan NULL
-Syria NULL
-Taiwan NULL
-Tanzania NULL
-Thailand NULL
-Czech Republic NULL
-Turkey NULL
-Uganda NULL
-Ukraine NULL
-Hungary NULL
-Uzbekistan NULL
-Belarus NULL
-Venezuela NULL
-Russian Federation NULL
-Vietnam NULL
-show variables like 'join_buffer_size';
-Variable_name Value
-join_buffer_size 262144
-set join_cache_level=4;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 4
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 SIMPLE City hash_ALL Population,Country #hash#Country 3 world.Country.Code 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CountryLanguage ALL PRIMARY,Percentage NULL NULL NULL 984 Using where
-1 SIMPLE Country hash_ALL PRIMARY #hash#PRIMARY 3 world.CountryLanguage.Country 239 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE City hash_ALL Country #hash#Country 3 world.CountryLanguage.Country 4079 Using where; Using join buffer (incremental, BNLH join)
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-EXPLAIN
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 PRIMARY City hash_ALL Population,Country #hash#Country 3 world.Country.Code 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-Name
-Vientiane
-Riga
-Daugavpils
-Maseru
-Beirut
-Tripoli
-Monrovia
-Tripoli
-Bengasi
-Misrata
-Vilnius
-Kaunas
-Klaipeda
-?iauliai
-Panevezys
-EXPLAIN
-SELECT Country.Name, IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-FROM Country LEFT JOIN CountryLanguage ON
-(CountryLanguage.Country=Country.Code AND Language='English')
-WHERE
-Country.Population > 10000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE CountryLanguage hash_ALL PRIMARY #hash#PRIMARY 33 world.Country.Code,const 984 Using where; Using join buffer (flat, BNLH join)
-SELECT Country.Name, IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-FROM Country LEFT JOIN CountryLanguage ON
-(CountryLanguage.Country=Country.Code AND Language='English')
-WHERE
-Country.Population > 10000000;
-Name IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-Australia 81.2
-United Kingdom 97.3
-Canada 60.4
-United States 86.2
-Zimbabwe 2.2
-Japan 0.1
-South Africa 8.5
-Malaysia 1.6
-Afghanistan NULL
-Netherlands NULL
-Algeria NULL
-Angola NULL
-Argentina NULL
-Bangladesh NULL
-Belgium NULL
-Brazil NULL
-Burkina Faso NULL
-Chile NULL
-Ecuador NULL
-Egypt NULL
-Spain NULL
-Ethiopia NULL
-Philippines NULL
-Ghana NULL
-Guatemala NULL
-Indonesia NULL
-India NULL
-Iraq NULL
-Iran NULL
-Italy NULL
-Yemen NULL
-Yugoslavia NULL
-Cambodia NULL
-Cameroon NULL
-Kazakstan NULL
-Kenya NULL
-China NULL
-Colombia NULL
-Congo, The Democratic Republic of the NULL
-North Korea NULL
-South Korea NULL
-Greece NULL
-Cuba NULL
-Madagascar NULL
-Malawi NULL
-Mali NULL
-Morocco NULL
-Mexico NULL
-Mozambique NULL
-Myanmar NULL
-Nepal NULL
-Niger NULL
-Nigeria NULL
-Côte d?Ivoire NULL
-Pakistan NULL
-Peru NULL
-Poland NULL
-France NULL
-Romania NULL
-Germany NULL
-Saudi Arabia NULL
-Somalia NULL
-Sri Lanka NULL
-Sudan NULL
-Syria NULL
-Taiwan NULL
-Tanzania NULL
-Thailand NULL
-Czech Republic NULL
-Turkey NULL
-Uganda NULL
-Ukraine NULL
-Hungary NULL
-Uzbekistan NULL
-Belarus NULL
-Venezuela NULL
-Russian Federation NULL
-Vietnam NULL
-EXPLAIN
-SELECT Country.Name, Country.Population, City.Name, City.Population
-FROM Country LEFT JOIN City
-ON City.Country=Country.Code AND City.Population > 5000000
-WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country range Name Name 52 NULL # Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE City hash_range Population,Country #hash#Country:Population 3:4 world.Country.Code # Using where; Rowid-ordered scan; Using join buffer (flat, BNLH join)
-SELECT Country.Name, Country.Population, City.Name, City.Population
-FROM Country LEFT JOIN City
-ON City.Country=Country.Code AND City.Population > 5000000
-WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
-Name Population Name Population
-China 1277558000 Shanghai 9696300
-China 1277558000 Peking 7472000
-China 1277558000 Chongqing 6351600
-China 1277558000 Tianjin 5286800
-Colombia 42321000 Santafé de Bogotá 6260862
-Congo, The Democratic Republic of the 51654000 Kinshasa 5064000
-Chile 15211000 NULL NULL
-Cambodia 11168000 NULL NULL
-Cameroon 15085000 NULL NULL
-Canada 31147000 NULL NULL
-Cuba 11201000 NULL NULL
-Côte d?Ivoire 14786000 NULL NULL
-Czech Republic 10278100 NULL NULL
-CREATE INDEX City_Name ON City(Name);
-EXPLAIN
-SELECT Country.Name, Country.Population, City.Name, City.Population
-FROM Country LEFT JOIN City
-ON City.Country=Country.Code AND
-(City.Population > 5000000 OR City.Name LIKE 'Za%')
-WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country range Name Name 52 NULL 17 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE City hash_index_merge Population,Country,City_Name #hash#Country:Population,City_Name 3:4,35 world.Country.Code 96 Using sort_union(Population,City_Name); Using where; Using join buffer (flat, BNLH join)
-SELECT Country.Name, Country.Population, City.Name, City.Population
-FROM Country LEFT JOIN City
-ON City.Country=Country.Code AND
-(City.Population > 5000000 OR City.Name LIKE 'Za%')
-WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
-Name Population Name Population
-China 1277558000 Shanghai 9696300
-China 1277558000 Peking 7472000
-China 1277558000 Chongqing 6351600
-China 1277558000 Tianjin 5286800
-China 1277558000 Zaozhuang 380846
-China 1277558000 Zaoyang 162198
-China 1277558000 Zalantun 130031
-Colombia 42321000 Santafé de Bogotá 6260862
-Congo, The Democratic Republic of the 51654000 Kinshasa 5064000
-Chile 15211000 NULL NULL
-Cambodia 11168000 NULL NULL
-Cameroon 15085000 NULL NULL
-Canada 31147000 NULL NULL
-Cuba 11201000 NULL NULL
-Côte d?Ivoire 14786000 NULL NULL
-Czech Republic 10278100 NULL NULL
-DROP INDEX City_Name ON City;
-show variables like 'join_buffer_size';
-Variable_name Value
-join_buffer_size 262144
-set join_cache_level=5;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 5
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 SIMPLE City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CountryLanguage ALL PRIMARY,Percentage NULL NULL NULL 984 Using where
-1 SIMPLE Country eq_ref PRIMARY PRIMARY 3 world.CountryLanguage.Country 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE City ref Country Country 3 world.CountryLanguage.Country 18 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-EXPLAIN
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 PRIMARY City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-Name
-Vientiane
-Riga
-Daugavpils
-Maseru
-Beirut
-Tripoli
-Monrovia
-Tripoli
-Bengasi
-Misrata
-Vilnius
-Kaunas
-Klaipeda
-?iauliai
-Panevezys
-EXPLAIN
-SELECT Country.Name, IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-FROM Country LEFT JOIN CountryLanguage ON
-(CountryLanguage.Country=Country.Code AND Language='English')
-WHERE
-Country.Population > 10000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE CountryLanguage eq_ref PRIMARY PRIMARY 33 world.Country.Code,const 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT Country.Name, IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-FROM Country LEFT JOIN CountryLanguage ON
-(CountryLanguage.Country=Country.Code AND Language='English')
-WHERE
-Country.Population > 10000000;
-Name IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-Australia 81.2
-United Kingdom 97.3
-Canada 60.4
-United States 86.2
-Zimbabwe 2.2
-Japan 0.1
-South Africa 8.5
-Malaysia 1.6
-Afghanistan NULL
-Netherlands NULL
-Algeria NULL
-Angola NULL
-Argentina NULL
-Bangladesh NULL
-Belgium NULL
-Brazil NULL
-Burkina Faso NULL
-Chile NULL
-Ecuador NULL
-Egypt NULL
-Spain NULL
-Ethiopia NULL
-Philippines NULL
-Ghana NULL
-Guatemala NULL
-Indonesia NULL
-India NULL
-Iraq NULL
-Iran NULL
-Italy NULL
-Yemen NULL
-Yugoslavia NULL
-Cambodia NULL
-Cameroon NULL
-Kazakstan NULL
-Kenya NULL
-China NULL
-Colombia NULL
-Congo, The Democratic Republic of the NULL
-North Korea NULL
-South Korea NULL
-Greece NULL
-Cuba NULL
-Madagascar NULL
-Malawi NULL
-Mali NULL
-Morocco NULL
-Mexico NULL
-Mozambique NULL
-Myanmar NULL
-Nepal NULL
-Niger NULL
-Nigeria NULL
-Côte d?Ivoire NULL
-Pakistan NULL
-Peru NULL
-Poland NULL
-France NULL
-Romania NULL
-Germany NULL
-Saudi Arabia NULL
-Somalia NULL
-Sri Lanka NULL
-Sudan NULL
-Syria NULL
-Taiwan NULL
-Tanzania NULL
-Thailand NULL
-Czech Republic NULL
-Turkey NULL
-Uganda NULL
-Ukraine NULL
-Hungary NULL
-Uzbekistan NULL
-Belarus NULL
-Venezuela NULL
-Russian Federation NULL
-Vietnam NULL
-set join_cache_level=6;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 6
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 SIMPLE City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CountryLanguage ALL PRIMARY,Percentage NULL NULL NULL 984 Using where
-1 SIMPLE Country eq_ref PRIMARY PRIMARY 3 world.CountryLanguage.Country 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE City ref Country Country 3 world.CountryLanguage.Country 18 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-EXPLAIN
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 PRIMARY City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-Name
-Vientiane
-Riga
-Daugavpils
-Maseru
-Beirut
-Tripoli
-Monrovia
-Tripoli
-Bengasi
-Misrata
-Vilnius
-Kaunas
-Klaipeda
-?iauliai
-Panevezys
-EXPLAIN
-SELECT Country.Name, IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-FROM Country LEFT JOIN CountryLanguage ON
-(CountryLanguage.Country=Country.Code AND Language='English')
-WHERE
-Country.Population > 10000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE CountryLanguage eq_ref PRIMARY PRIMARY 33 world.Country.Code,const 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT Country.Name, IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-FROM Country LEFT JOIN CountryLanguage ON
-(CountryLanguage.Country=Country.Code AND Language='English')
-WHERE
-Country.Population > 10000000;
-Name IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-Australia 81.2
-United Kingdom 97.3
-Canada 60.4
-United States 86.2
-Zimbabwe 2.2
-Japan 0.1
-South Africa 8.5
-Malaysia 1.6
-Afghanistan NULL
-Netherlands NULL
-Algeria NULL
-Angola NULL
-Argentina NULL
-Bangladesh NULL
-Belgium NULL
-Brazil NULL
-Burkina Faso NULL
-Chile NULL
-Ecuador NULL
-Egypt NULL
-Spain NULL
-Ethiopia NULL
-Philippines NULL
-Ghana NULL
-Guatemala NULL
-Indonesia NULL
-India NULL
-Iraq NULL
-Iran NULL
-Italy NULL
-Yemen NULL
-Yugoslavia NULL
-Cambodia NULL
-Cameroon NULL
-Kazakstan NULL
-Kenya NULL
-China NULL
-Colombia NULL
-Congo, The Democratic Republic of the NULL
-North Korea NULL
-South Korea NULL
-Greece NULL
-Cuba NULL
-Madagascar NULL
-Malawi NULL
-Mali NULL
-Morocco NULL
-Mexico NULL
-Mozambique NULL
-Myanmar NULL
-Nepal NULL
-Niger NULL
-Nigeria NULL
-Côte d?Ivoire NULL
-Pakistan NULL
-Peru NULL
-Poland NULL
-France NULL
-Romania NULL
-Germany NULL
-Saudi Arabia NULL
-Somalia NULL
-Sri Lanka NULL
-Sudan NULL
-Syria NULL
-Taiwan NULL
-Tanzania NULL
-Thailand NULL
-Czech Republic NULL
-Turkey NULL
-Uganda NULL
-Ukraine NULL
-Hungary NULL
-Uzbekistan NULL
-Belarus NULL
-Venezuela NULL
-Russian Federation NULL
-Vietnam NULL
-set join_cache_level=7;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 7
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 SIMPLE City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CountryLanguage ALL PRIMARY,Percentage NULL NULL NULL 984 Using where
-1 SIMPLE Country eq_ref PRIMARY PRIMARY 3 world.CountryLanguage.Country 1 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-1 SIMPLE City ref Country Country 3 world.CountryLanguage.Country 18 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-EXPLAIN
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 PRIMARY City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-Name
-Vientiane
-Riga
-Daugavpils
-Maseru
-Beirut
-Tripoli
-Monrovia
-Tripoli
-Bengasi
-Misrata
-Vilnius
-Kaunas
-Klaipeda
-?iauliai
-Panevezys
-EXPLAIN
-SELECT Country.Name, IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-FROM Country LEFT JOIN CountryLanguage ON
-(CountryLanguage.Country=Country.Code AND Language='English')
-WHERE
-Country.Population > 10000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE CountryLanguage eq_ref PRIMARY PRIMARY 33 world.Country.Code,const 1 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT Country.Name, IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-FROM Country LEFT JOIN CountryLanguage ON
-(CountryLanguage.Country=Country.Code AND Language='English')
-WHERE
-Country.Population > 10000000;
-Name IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-Australia 81.2
-United Kingdom 97.3
-Canada 60.4
-United States 86.2
-Zimbabwe 2.2
-Japan 0.1
-South Africa 8.5
-Malaysia 1.6
-Afghanistan NULL
-Netherlands NULL
-Algeria NULL
-Angola NULL
-Argentina NULL
-Bangladesh NULL
-Belgium NULL
-Brazil NULL
-Burkina Faso NULL
-Chile NULL
-Ecuador NULL
-Egypt NULL
-Spain NULL
-Ethiopia NULL
-Philippines NULL
-Ghana NULL
-Guatemala NULL
-Indonesia NULL
-India NULL
-Iraq NULL
-Iran NULL
-Italy NULL
-Yemen NULL
-Yugoslavia NULL
-Cambodia NULL
-Cameroon NULL
-Kazakstan NULL
-Kenya NULL
-China NULL
-Colombia NULL
-Congo, The Democratic Republic of the NULL
-North Korea NULL
-South Korea NULL
-Greece NULL
-Cuba NULL
-Madagascar NULL
-Malawi NULL
-Mali NULL
-Morocco NULL
-Mexico NULL
-Mozambique NULL
-Myanmar NULL
-Nepal NULL
-Niger NULL
-Nigeria NULL
-Côte d?Ivoire NULL
-Pakistan NULL
-Peru NULL
-Poland NULL
-France NULL
-Romania NULL
-Germany NULL
-Saudi Arabia NULL
-Somalia NULL
-Sri Lanka NULL
-Sudan NULL
-Syria NULL
-Taiwan NULL
-Tanzania NULL
-Thailand NULL
-Czech Republic NULL
-Turkey NULL
-Uganda NULL
-Ukraine NULL
-Hungary NULL
-Uzbekistan NULL
-Belarus NULL
-Venezuela NULL
-Russian Federation NULL
-Vietnam NULL
-set join_cache_level=8;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 8
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 SIMPLE City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CountryLanguage ALL PRIMARY,Percentage NULL NULL NULL 984 Using where
-1 SIMPLE Country eq_ref PRIMARY PRIMARY 3 world.CountryLanguage.Country 1 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-1 SIMPLE City ref Country Country 3 world.CountryLanguage.Country 18 Using where; Using join buffer (incremental, BKAH join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-EXPLAIN
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 PRIMARY City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-Name
-Vientiane
-Riga
-Daugavpils
-Maseru
-Beirut
-Tripoli
-Monrovia
-Tripoli
-Bengasi
-Misrata
-Vilnius
-Kaunas
-Klaipeda
-?iauliai
-Panevezys
-EXPLAIN
-SELECT Country.Name, IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-FROM Country LEFT JOIN CountryLanguage ON
-(CountryLanguage.Country=Country.Code AND Language='English')
-WHERE
-Country.Population > 10000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country ALL NULL NULL NULL NULL 239 Using where
-1 SIMPLE CountryLanguage eq_ref PRIMARY PRIMARY 33 world.Country.Code,const 1 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT Country.Name, IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-FROM Country LEFT JOIN CountryLanguage ON
-(CountryLanguage.Country=Country.Code AND Language='English')
-WHERE
-Country.Population > 10000000;
-Name IF(ISNULL(CountryLanguage.Country), NULL, CountryLanguage.Percentage)
-Australia 81.2
-United Kingdom 97.3
-Canada 60.4
-United States 86.2
-Zimbabwe 2.2
-Japan 0.1
-South Africa 8.5
-Malaysia 1.6
-Afghanistan NULL
-Netherlands NULL
-Algeria NULL
-Angola NULL
-Argentina NULL
-Bangladesh NULL
-Belgium NULL
-Brazil NULL
-Burkina Faso NULL
-Chile NULL
-Ecuador NULL
-Egypt NULL
-Spain NULL
-Ethiopia NULL
-Philippines NULL
-Ghana NULL
-Guatemala NULL
-Indonesia NULL
-India NULL
-Iraq NULL
-Iran NULL
-Italy NULL
-Yemen NULL
-Yugoslavia NULL
-Cambodia NULL
-Cameroon NULL
-Kazakstan NULL
-Kenya NULL
-China NULL
-Colombia NULL
-Congo, The Democratic Republic of the NULL
-North Korea NULL
-South Korea NULL
-Greece NULL
-Cuba NULL
-Madagascar NULL
-Malawi NULL
-Mali NULL
-Morocco NULL
-Mexico NULL
-Mozambique NULL
-Myanmar NULL
-Nepal NULL
-Niger NULL
-Nigeria NULL
-Côte d?Ivoire NULL
-Pakistan NULL
-Peru NULL
-Poland NULL
-France NULL
-Romania NULL
-Germany NULL
-Saudi Arabia NULL
-Somalia NULL
-Sri Lanka NULL
-Sudan NULL
-Syria NULL
-Taiwan NULL
-Tanzania NULL
-Thailand NULL
-Czech Republic NULL
-Turkey NULL
-Uganda NULL
-Ukraine NULL
-Hungary NULL
-Uzbekistan NULL
-Belarus NULL
-Venezuela NULL
-Russian Federation NULL
-Vietnam NULL
-set join_buffer_size=256;
-show variables like 'join_buffer_size';
-Variable_name Value
-join_buffer_size 256
-set join_cache_level=3;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 3
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 SIMPLE City hash_ALL Population,Country #hash#Country 3 world.Country.Code 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CountryLanguage ALL PRIMARY,Percentage NULL NULL NULL 984 Using where
-1 SIMPLE Country hash_ALL PRIMARY #hash#PRIMARY 3 world.CountryLanguage.Country 239 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE City hash_ALL Country #hash#Country 3 world.CountryLanguage.Country 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-EXPLAIN
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 PRIMARY City hash_ALL Population,Country #hash#Country 3 world.Country.Code 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-Name
-Vientiane
-Riga
-Daugavpils
-Maseru
-Beirut
-Tripoli
-Monrovia
-Tripoli
-Bengasi
-Misrata
-Vilnius
-Kaunas
-Klaipeda
-?iauliai
-Panevezys
-set join_cache_level=4;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 4
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 SIMPLE City hash_ALL Population,Country #hash#Country 3 world.Country.Code 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CountryLanguage ALL PRIMARY,Percentage NULL NULL NULL 984 Using where
-1 SIMPLE Country hash_ALL PRIMARY #hash#PRIMARY 3 world.CountryLanguage.Country 239 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE City hash_ALL Country #hash#Country 3 world.CountryLanguage.Country 4079 Using where; Using join buffer (incremental, BNLH join)
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-EXPLAIN
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 PRIMARY City hash_ALL Population,Country #hash#Country 3 world.Country.Code 4079 Using where; Using join buffer (flat, BNLH join)
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-Name
-Vientiane
-Riga
-Daugavpils
-Maseru
-Beirut
-Tripoli
-Monrovia
-Tripoli
-Bengasi
-Misrata
-Vilnius
-Kaunas
-Klaipeda
-?iauliai
-Panevezys
-set join_cache_level=5;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 5
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 SIMPLE City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CountryLanguage ALL PRIMARY,Percentage NULL NULL NULL 984 Using where
-1 SIMPLE Country eq_ref PRIMARY PRIMARY 3 world.CountryLanguage.Country 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE City ref Country Country 3 world.CountryLanguage.Country 18 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-EXPLAIN
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 PRIMARY City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-Name
-Vientiane
-Riga
-Daugavpils
-Maseru
-Beirut
-Tripoli
-Monrovia
-Tripoli
-Bengasi
-Misrata
-Vilnius
-Kaunas
-Klaipeda
-?iauliai
-Panevezys
-set join_cache_level=6;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 6
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 SIMPLE City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CountryLanguage ALL PRIMARY,Percentage NULL NULL NULL 984 Using where
-1 SIMPLE Country eq_ref PRIMARY PRIMARY 3 world.CountryLanguage.Country 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE City ref Country Country 3 world.CountryLanguage.Country 18 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-EXPLAIN
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 PRIMARY City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-Name
-Vientiane
-Riga
-Daugavpils
-Maseru
-Beirut
-Tripoli
-Monrovia
-Tripoli
-Bengasi
-Misrata
-Vilnius
-Kaunas
-Klaipeda
-?iauliai
-Panevezys
-set join_cache_level=7;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 7
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 SIMPLE City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CountryLanguage ALL PRIMARY,Percentage NULL NULL NULL 984 Using where
-1 SIMPLE Country eq_ref PRIMARY PRIMARY 3 world.CountryLanguage.Country 1 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-1 SIMPLE City ref Country Country 3 world.CountryLanguage.Country 18 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-EXPLAIN
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 PRIMARY City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-Name
-Vientiane
-Riga
-Daugavpils
-Maseru
-Beirut
-Tripoli
-Monrovia
-Tripoli
-Bengasi
-Misrata
-Vilnius
-Kaunas
-Klaipeda
-?iauliai
-Panevezys
-set join_cache_level=8;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 8
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 SIMPLE City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-EXPLAIN
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CountryLanguage ALL PRIMARY,Percentage NULL NULL NULL 984 Using where
-1 SIMPLE Country eq_ref PRIMARY PRIMARY 3 world.CountryLanguage.Country 1 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-1 SIMPLE City ref Country Country 3 world.CountryLanguage.Country 18 Using where; Using join buffer (incremental, BKAH join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name, CountryLanguage.Language
-FROM City,Country,CountryLanguage
-WHERE City.Country=Country.Code AND
-CountryLanguage.Country=Country.Code AND
-City.Name LIKE 'L%' AND Country.Population > 3000000 AND
-CountryLanguage.Percentage > 50 AND
-LENGTH(Language) < LENGTH(City.Name) - 2;
-Name Name Language
-La Matanza Argentina Spanish
-Lomas de Zamora Argentina Spanish
-Lauro de Freitas Brazil Portuguese
-Los Angeles Chile Spanish
-Las Palmas de Gran Canaria Spain Spanish
-L´Hospitalet de Llobregat Spain Spanish
-Lleida (Lérida) Spain Spanish
-Liupanshui China Chinese
-Lianyungang China Chinese
-Liangcheng China Chinese
-Lengshuijiang China Chinese
-Lázaro Cárdenas Mexico Spanish
-Lagos de Moreno Mexico Spanish
-Las Margaritas Mexico Spanish
-Lashio (Lasho) Myanmar Burmese
-Lalitapur Nepal Nepali
-Ludwigshafen am Rhein Germany German
-Leverkusen Germany German
-Luchou Taiwan Min
-Lungtan Taiwan Min
-Lower Hutt New Zealand English
-Los Teques Venezuela Spanish
-Leninsk-Kuznetski Russian Federation Russian
-Los Angeles United States English
-Long Beach United States English
-Lexington-Fayette United States English
-Louisville United States English
-Little Rock United States English
-EXPLAIN
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country range PRIMARY,Name Name 52 NULL 10 Using index condition; Rowid-ordered scan
-1 PRIMARY City ref Population,Country Country 3 world.Country.Code 18 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT Name FROM City
-WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
-City.Population > 100000;
-Name
-Vientiane
-Riga
-Daugavpils
-Maseru
-Beirut
-Tripoli
-Monrovia
-Tripoli
-Bengasi
-Misrata
-Vilnius
-Kaunas
-Klaipeda
-?iauliai
-Panevezys
-set join_cache_level=default;
-set join_buffer_size=default;
-show variables like 'join_buffer_size';
-Variable_name Value
-join_buffer_size 262144
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 2
-set join_cache_level=1;
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND City.Population > 3000000;
-Name Name
-Sydney Australia
-Dhaka Bangladesh
-São Paulo Brazil
-Rio de Janeiro Brazil
-London United Kingdom
-Santiago de Chile Chile
-Cairo Egypt
-Alexandria Egypt
-Jakarta Indonesia
-Mumbai (Bombay) India
-Delhi India
-Calcutta [Kolkata] India
-Chennai (Madras) India
-Baghdad Iraq
-Teheran Iran
-Tokyo Japan
-Jokohama [Yokohama] Japan
-Shanghai China
-Peking China
-Chongqing China
-Tianjin China
-Wuhan China
-Harbin China
-Shenyang China
-Kanton [Guangzhou] China
-Chengdu China
-Santafé de Bogotá Colombia
-Kinshasa Congo, The Democratic Republic of the
-Seoul South Korea
-Pusan South Korea
-Ciudad de México Mexico
-Rangoon (Yangon) Myanmar
-Karachi Pakistan
-Lahore Pakistan
-Lima Peru
-Berlin Germany
-Riyadh Saudi Arabia
-Singapore Singapore
-Bangkok Thailand
-Istanbul Turkey
-Ankara Turkey
-Moscow Russian Federation
-St Petersburg Russian Federation
-Ho Chi Minh City Vietnam
-New York United States
-Los Angeles United States
-set join_cache_level=8;
-set join_buffer_size=384;
-EXPLAIN
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND City.Population > 3000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Country Population 4 NULL # Using index condition; Rowid-ordered scan
-1 SIMPLE Country eq_ref PRIMARY PRIMARY 3 world.City.Country # Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND City.Population > 3000000;
-Name Name
-Alexandria Egypt
-Ankara Turkey
-Baghdad Iraq
-Bangkok Thailand
-Berlin Germany
-Cairo Egypt
-Calcutta [Kolkata] India
-Chengdu China
-Chennai (Madras) India
-Chongqing China
-Ciudad de México Mexico
-Delhi India
-Dhaka Bangladesh
-Harbin China
-Ho Chi Minh City Vietnam
-Istanbul Turkey
-Jakarta Indonesia
-Jokohama [Yokohama] Japan
-Kanton [Guangzhou] China
-Karachi Pakistan
-Kinshasa Congo, The Democratic Republic of the
-Lahore Pakistan
-Lima Peru
-London United Kingdom
-Los Angeles United States
-Moscow Russian Federation
-Mumbai (Bombay) India
-New York United States
-Peking China
-Pusan South Korea
-Rangoon (Yangon) Myanmar
-Rio de Janeiro Brazil
-Riyadh Saudi Arabia
-Santafé de Bogotá Colombia
-Santiago de Chile Chile
-Seoul South Korea
-Shanghai China
-Shenyang China
-Singapore Singapore
-St Petersburg Russian Federation
-Sydney Australia
-São Paulo Brazil
-Teheran Iran
-Tianjin China
-Tokyo Japan
-Wuhan China
-set join_buffer_size=default;
-set join_cache_level=6;
-ALTER TABLE Country MODIFY Name varchar(52) NOT NULL default '';
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-ALTER TABLE Country MODIFY Name varchar(300) NOT NULL default '';
-SELECT City.Name, Country.Name FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name
-Vientiane Laos
-Riga Latvia
-Daugavpils Latvia
-Maseru Lesotho
-Beirut Lebanon
-Tripoli Lebanon
-Monrovia Liberia
-Tripoli Libyan Arab Jamahiriya
-Bengasi Libyan Arab Jamahiriya
-Misrata Libyan Arab Jamahiriya
-Vilnius Lithuania
-Kaunas Lithuania
-Klaipeda Lithuania
-?iauliai Lithuania
-Panevezys Lithuania
-ALTER TABLE Country ADD COLUMN PopulationBar text;
-UPDATE Country
-SET PopulationBar=REPEAT('x', CAST(Population/100000 AS unsigned int));
-SELECT City.Name, Country.Name, Country.PopulationBar FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name PopulationBar
-Vientiane Laos xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Riga Latvia xxxxxxxxxxxxxxxxxxxxxxxx
-Daugavpils Latvia xxxxxxxxxxxxxxxxxxxxxxxx
-Maseru Lesotho xxxxxxxxxxxxxxxxxxxxxx
-Beirut Lebanon xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Tripoli Lebanon xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Monrovia Liberia xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Tripoli Libyan Arab Jamahiriya xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Bengasi Libyan Arab Jamahiriya xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Misrata Libyan Arab Jamahiriya xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Vilnius Lithuania xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Kaunas Lithuania xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Klaipeda Lithuania xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-?iauliai Lithuania xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Panevezys Lithuania xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-set join_buffer_size=256;
-SELECT City.Name, Country.Name, Country.PopulationBar FROM City,Country
-WHERE City.Country=Country.Code AND
-Country.Name LIKE 'L%' AND City.Population > 100000;
-Name Name PopulationBar
-Vientiane Laos xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Riga Latvia xxxxxxxxxxxxxxxxxxxxxxxx
-Daugavpils Latvia xxxxxxxxxxxxxxxxxxxxxxxx
-Maseru Lesotho xxxxxxxxxxxxxxxxxxxxxx
-Beirut Lebanon xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Tripoli Lebanon xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Monrovia Liberia xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Tripoli Libyan Arab Jamahiriya xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Bengasi Libyan Arab Jamahiriya xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Misrata Libyan Arab Jamahiriya xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Vilnius Lithuania xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Kaunas Lithuania xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Klaipeda Lithuania xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-?iauliai Lithuania xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Panevezys Lithuania xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-set join_cache_level=default;
-set join_buffer_size=default;
-DROP DATABASE world;
-use test;
-CREATE TABLE t1(
-affiliatetometaid int NOT NULL default '0',
-uniquekey int NOT NULL default '0',
-metaid int NOT NULL default '0',
-affiliateid int NOT NULL default '0',
-xml text,
-isactive char(1) NOT NULL default 'Y',
-PRIMARY KEY (affiliatetometaid)
-);
-CREATE UNIQUE INDEX t1_uniquekey ON t1(uniquekey);
-CREATE INDEX t1_affiliateid ON t1(affiliateid);
-CREATE INDEX t1_metaid on t1 (metaid);
-INSERT INTO t1 VALUES
-(1616, 1571693233, 1391, 2, NULL, 'Y'), (1943, 1993216749, 1726, 2, NULL, 'Y');
-CREATE TABLE t2(
-metaid int NOT NULL default '0',
-name varchar(80) NOT NULL default '',
-dateadded timestamp NOT NULL ,
-xml text,
-status int default NULL,
-origin int default NULL,
-gid int NOT NULL default '1',
-formattypeid int default NULL,
-PRIMARY KEY (metaid)
-);
-CREATE INDEX t2_status ON t2(status);
-CREATE INDEX t2_gid ON t2(gid);
-CREATE INDEX t2_formattypeid ON t2(formattypeid);
-INSERT INTO t2 VALUES
-(1391, "I Just Died", "2003-10-02 10:07:37", "", 1, NULL, 3, NULL),
-(1726, "Me, Myself & I", "2003-12-05 11:24:36", " ", 1, NULL, 3, NULL);
-CREATE TABLE t3(
-mediaid int NOT NULL ,
-metaid int NOT NULL default '0',
-formatid int NOT NULL default '0',
-status int default NULL,
-path varchar(100) NOT NULL default '',
-datemodified timestamp NOT NULL ,
-resourcetype int NOT NULL default '1',
-parameters text,
-signature int default NULL,
-quality int NOT NULL default '255',
-PRIMARY KEY (mediaid)
-);
-CREATE INDEX t3_metaid ON t3(metaid);
-CREATE INDEX t3_formatid ON t3(formatid);
-CREATE INDEX t3_status ON t3(status);
-CREATE INDEX t3_metaidformatid ON t3(metaid,formatid);
-CREATE INDEX t3_signature ON t3(signature);
-CREATE INDEX t3_quality ON t3(quality);
-INSERT INTO t3 VALUES
-(6, 4, 8, 0, "010101_anastacia_spmidi.mid", "2004-03-16 13:40:00", 1, NULL, NULL, 255),
-(3343, 3, 8, 1, "010102_4VN4bsPwnxRQUJW5Zp1RhG2IL9vvl_8.mid", "2004-03-16 13:40:00", 1, NULL, NULL, 255);
-CREATE TABLE t4(
-formatid int NOT NULL ,
-name varchar(60) NOT NULL default '',
-formatclassid int NOT NULL default '0',
-mime varchar(60) default NULL,
-extension varchar(10) default NULL,
-priority int NOT NULL default '0',
-canaddtocapability char(1) NOT NULL default 'Y',
-PRIMARY KEY (formatid)
-);
-CREATE INDEX t4_formatclassid ON t4(formatclassid);
-CREATE INDEX t4_formats_idx ON t4(canaddtocapability);
-INSERT INTO t4 VALUES
-(19, "XHTML", 11, "text/html", "xhtml", 10, 'Y'),
-(54, "AMR (wide band)", 13, "audio/amr-wb", "awb", 0, 'Y');
-CREATE TABLE t5(
-formatclassid int NOT NULL ,
-name varchar(60) NOT NULL default '',
-priority int NOT NULL default '0',
-formattypeid int NOT NULL default '0',
-PRIMARY KEY (formatclassid)
-);
-CREATE INDEX t5_formattypeid on t5(formattypeid);
-INSERT INTO t5 VALUES
-(11, "Info", 0, 4), (13, "Digital Audio", 0, 2);
-CREATE TABLE t6(
-formattypeid int NOT NULL ,
-name varchar(60) NOT NULL default '',
-priority int default NULL,
-PRIMARY KEY (formattypeid)
-);
-INSERT INTO t6 VALUES
-(2, "Ringtones", 0);
-CREATE TABLE t7(
-metaid int NOT NULL default '0',
-artistid int NOT NULL default '0',
-PRIMARY KEY (metaid,artistid)
-);
-INSERT INTO t7 VALUES
-(4, 5), (3, 4);
-CREATE TABLE t8(
-artistid int NOT NULL ,
-name varchar(80) NOT NULL default '',
-PRIMARY KEY (artistid)
-);
-INSERT INTO t8 VALUES
-(5, "Anastacia"), (4, "John Mayer");
-CREATE TABLE t9(
-subgenreid int NOT NULL default '0',
-metaid int NOT NULL default '0',
-PRIMARY KEY (subgenreid,metaid)
-) ;
-CREATE INDEX t9_subgenreid ON t9(subgenreid);
-CREATE INDEX t9_metaid ON t9(metaid);
-INSERT INTO t9 VALUES
-(138, 4), (31, 3);
-CREATE TABLE t10(
-subgenreid int NOT NULL ,
-genreid int NOT NULL default '0',
-name varchar(80) NOT NULL default '',
-PRIMARY KEY (subgenreid)
-) ;
-CREATE INDEX t10_genreid ON t10(genreid);
-INSERT INTO t10 VALUES
-(138, 19, ''), (31, 3, '');
-CREATE TABLE t11(
-genreid int NOT NULL default '0',
-name char(80) NOT NULL default '',
-priority int NOT NULL default '0',
-masterclip char(1) default NULL,
-PRIMARY KEY (genreid)
-) ;
-CREATE INDEX t11_masterclip ON t11( masterclip);
-INSERT INTO t11 VALUES
-(19, "Pop & Dance", 95, 'Y'), (3, "Rock & Alternative", 100, 'Y');
-set join_cache_level=6;
-EXPLAIN
-SELECT t1.uniquekey, t1.xml AS affiliateXml,
-t8.name AS artistName, t8.artistid,
-t11.name AS genreName, t11.genreid, t11.priority AS genrePriority,
-t10.subgenreid, t10.name AS subgenreName,
-t2.name AS metaName, t2.metaid, t2.xml AS metaXml,
-t4.priority + t5.priority + t6.priority AS overallPriority,
-t3.path AS path, t3.mediaid,
-t4.formatid, t4.name AS formatName,
-t5.formatclassid, t5.name AS formatclassName,
-t6.formattypeid, t6.name AS formattypeName
-FROM t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11
-WHERE t7.metaid = t2.metaid AND t7.artistid = t8.artistid AND
-t9.metaid = t2.metaid AND t9.subgenreid = t10.subgenreid AND
-t10.genreid = t11.genreid AND t3.metaid = t2.metaid AND
-t3.formatid = t4.formatid AND t4.formatclassid = t5.formatclassid AND
-t4.canaddtocapability = 'Y' AND t5.formattypeid = t6.formattypeid AND
-t6.formattypeid IN (2) AND (t3.formatid IN (31, 8, 76)) AND
-t1.metaid = t2.metaid AND t1.affiliateid = '2';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t6 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t1 ref t1_affiliateid,t1_metaid t1_affiliateid 4 const 1
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.metaid 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t7 ref PRIMARY PRIMARY 4 test.t1.metaid 1 Using index
-1 SIMPLE t8 eq_ref PRIMARY PRIMARY 4 test.t7.artistid 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t3 ref t3_metaid,t3_formatid,t3_metaidformatid t3_metaidformatid 4 test.t1.metaid 1 Using index condition; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t4 eq_ref PRIMARY,t4_formatclassid,t4_formats_idx PRIMARY 4 test.t3.formatid 1 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t5 eq_ref PRIMARY,t5_formattypeid PRIMARY 4 test.t4.formatclassid 1 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t9 index PRIMARY,t9_subgenreid,t9_metaid PRIMARY 8 NULL 2 Using where; Using index; Using join buffer (incremental, BNL join)
-1 SIMPLE t10 eq_ref PRIMARY,t10_genreid PRIMARY 4 test.t9.subgenreid 1 Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t11 eq_ref PRIMARY PRIMARY 4 test.t10.genreid 1 Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-SELECT t1.uniquekey, t1.xml AS affiliateXml,
-t8.name AS artistName, t8.artistid,
-t11.name AS genreName, t11.genreid, t11.priority AS genrePriority,
-t10.subgenreid, t10.name AS subgenreName,
-t2.name AS metaName, t2.metaid, t2.xml AS metaXml,
-t4.priority + t5.priority + t6.priority AS overallPriority,
-t3.path AS path, t3.mediaid,
-t4.formatid, t4.name AS formatName,
-t5.formatclassid, t5.name AS formatclassName,
-t6.formattypeid, t6.name AS formattypeName
-FROM t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11
-WHERE t7.metaid = t2.metaid AND t7.artistid = t8.artistid AND
-t9.metaid = t2.metaid AND t9.subgenreid = t10.subgenreid AND
-t10.genreid = t11.genreid AND t3.metaid = t2.metaid AND
-t3.formatid = t4.formatid AND t4.formatclassid = t5.formatclassid AND
-t4.canaddtocapability = 'Y' AND t5.formattypeid = t6.formattypeid AND
-t6.formattypeid IN (2) AND (t3.formatid IN (31, 8, 76)) AND
-t1.metaid = t2.metaid AND t1.affiliateid = '2';
-uniquekey affiliateXml artistName artistid genreName genreid genrePriority subgenreid subgenreName metaName metaid metaXml overallPriority path mediaid formatid formatName formatclassid formatclassName formattypeid formattypeName
-DROP TABLE t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11;
-CREATE TABLE t1 (a1 int, filler1 char(64) default ' ' );
-CREATE TABLE t2 (
-a2 int, b2 int, filler2 char(64) default ' ',
-PRIMARY KEY idx(a2,b2,filler2)
-) ;
-CREATE TABLE t3 (b3 int, c3 int, INDEX idx(b3));
-INSERT INTO t1(a1) VALUES
-(4), (7), (1), (9), (8), (5), (3), (6), (2);
-INSERT INTO t2(a2,b2) VALUES
-(1,30), (3,40), (2,61), (6,73), (8,92), (9,27), (4,18), (5,84), (7,56),
-(4,14), (6,76), (8,98), (7,55), (1,39), (2,68), (3,45), (9,21), (5,81),
-(5,88), (2,65), (6,74), (9,23), (1,37), (3,44), (4,17), (8,99), (7,51),
-(9,28), (7,52), (1,33), (4,13), (5,87), (3,43), (8,91), (2,62), (6,79),
-(3,49), (8,93), (7,34), (5,82), (6,78), (2,63), (1,32), (9,22), (4,11);
-INSERT INTO t3 VALUES
-(30,302), (92,923), (18,187), (45,459), (30,309),
-(39,393), (68,685), (45,458), (21,210), (81,817),
-(40,405), (61,618), (73,738), (92,929), (27,275),
-(18,188), (84,846), (56,564), (14,144), (76,763),
-(98,982), (55,551), (17,174), (99,998), (51,513),
-(28,282), (52,527), (33,336), (13,138), (87,878),
-(43,431), (91,916), (62,624), (79,797), (49,494),
-(93,933), (34,347), (82,829), (78,780), (63,634),
-(32,329), (22,228), (11,114), (74,749), (23,236);
-set join_cache_level=1;
-EXPLAIN
-SELECT a1<>a2, a1, a2, b2, b3, c3,
-SUBSTR(filler1,1,1) AS s1, SUBSTR(filler2,1,1) AS s2
-FROM t1,t2,t3 WHERE a1=a2 AND b2=b3 AND MOD(c3,10)>7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 9 Using where
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 test.t1.a1 1 Using index
-1 SIMPLE t3 ref idx idx 5 test.t2.b2 5 Using where
-SELECT a1<>a2, a1, a2, b2, b3, c3,
-SUBSTR(filler1,1,1) AS s1, SUBSTR(filler2,1,1) AS s2
-FROM t1,t2,t3 WHERE a1=a2 AND b2=b3 AND MOD(c3,10)>7;
-a1<>a2 a1 a2 b2 b3 c3 s1 s2
-0 4 4 13 13 138
-0 4 4 18 18 188
-0 1 1 30 30 309
-0 1 1 32 32 329
-0 9 9 22 22 228
-0 8 8 92 92 929
-0 8 8 99 99 998
-0 5 5 82 82 829
-0 5 5 87 87 878
-0 3 3 45 45 459
-0 3 3 45 45 458
-0 6 6 73 73 738
-0 6 6 74 74 749
-0 2 2 61 61 618
-set join_cache_level=5;
-set join_buffer_size=512;
-EXPLAIN
-SELECT a1<>a2, a1, a2, b2, b3, c3,
-SUBSTR(filler1,1,1) AS s1, SUBSTR(filler2,1,1) AS s2
-FROM t1,t2,t3 WHERE a1=a2 AND b2=b3 AND MOD(c3,10)>7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 9 Using where
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 test.t1.a1 1 Using index
-1 SIMPLE t3 ref idx idx 5 test.t2.b2 5 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT a1<>a2, a1, a2, b2, b3, c3,
-SUBSTR(filler1,1,1) AS s1, SUBSTR(filler2,1,1) AS s2
-FROM t1,t2,t3 WHERE a1=a2 AND b2=b3 AND MOD(c3,10)>7;
-a1<>a2 a1 a2 b2 b3 c3 s1 s2
-0 4 4 18 18 188
-0 4 4 13 13 138
-0 1 1 30 30 309
-0 1 1 32 32 329
-0 9 9 22 22 228
-0 8 8 92 92 929
-0 8 8 99 99 998
-0 5 5 82 82 829
-0 3 3 45 45 459
-0 3 3 45 45 458
-0 5 5 87 87 878
-0 2 2 61 61 618
-0 6 6 73 73 738
-0 6 6 74 74 749
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a int, b int, INDEX idx(b));
-CREATE TABLE t2 (a int, b int, INDEX idx(a));
-INSERT INTO t1 VALUES (5,30), (3,20), (7,40), (2,10), (8,30), (1,10), (4,20);
-INSERT INTO t2 VALUES (7,10), (1,20), (2,20), (8,20), (8,10), (1,20);
-INSERT INTO t2 VALUES (1,10), (4,20), (3,20), (7,20), (7,10), (1,20);
-INSERT INTO t2 VALUES (17,10), (11,20), (12,20), (18,20), (18,10), (11,20);
-INSERT INTO t2 VALUES (11,10), (14,20), (13,20), (17,20), (17,10), (11,20);
-set join_buffer_size=32;
-Warnings:
-Warning 1292 Truncated incorrect join_buffer_size value: '32'
-set join_cache_level=8;
-EXPLAIN SELECT * FROM t1,t2 WHERE t1.a=t2.a AND t1.b >= 30;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL idx NULL NULL NULL 7 Using where
-1 SIMPLE t2 ref idx idx 5 test.t1.a 2 Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT * FROM t1,t2 WHERE t1.a=t2.a AND t1.b >= 30;
-a b a b
-7 40 7 10
-7 40 7 10
-7 40 7 20
-8 30 8 10
-8 30 8 20
-DROP TABLE t1,t2;
-#
-# Bug #40134: outer join with not exists optimization and join buffer
-#
-set join_cache_level=default;
-set join_buffer_size=default;
-CREATE TABLE t1 (a int NOT NULL);
-INSERT INTO t1 VALUES (2), (4), (3), (5), (1);
-CREATE TABLE t2 (a int NOT NULL, b int NOT NULL, INDEX i_a(a));
-INSERT INTO t2 VALUES (4,10), (2,10), (2,30), (2,20), (4,20);
-INSERT INTO t2 VALUES (14,10), (12,10), (15,30), (12,20), (14,20);
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.a WHERE t2.b IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref i_a i_a 4 test.t1.a 2 Using where; Not exists
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.a WHERE t2.b IS NULL;
-a a b
-3 NULL NULL
-5 NULL NULL
-1 NULL NULL
-SET join_cache_level=6;
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.a WHERE t2.b IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref i_a i_a 4 test.t1.a 2 Using where; Not exists; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.a WHERE t2.b IS NULL;
-a a b
-3 NULL NULL
-5 NULL NULL
-1 NULL NULL
-DROP TABLE t1, t2;
-set join_cache_level=default;
-set join_buffer_size=default;
-#
-# BUG#40136: Group by is ignored when join buffer is used for an outer join
-#
-create table t1(a int PRIMARY KEY, b int);
-insert into t1 values
-(5, 10), (2, 70), (7, 80), (6, 20), (1, 50), (9, 40), (8, 30), (3, 60);
-create table t2 (p int, a int, INDEX i_a(a));
-insert into t2 values
-(103, 7), (109, 3), (102, 3), (108, 1), (106, 3),
-(107, 7), (105, 1), (101, 3), (100, 7), (110, 1);
-set @save_join_cache_level=@@join_cache_level;
-set join_cache_level=6;
-The following must not show "using join cache":
-explain
-select t1.a, count(t2.p) as count
-from t1 left join t2 on t1.a=t2.a and t2.p % 2 = 1 group by t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 8 Using index; Using temporary; Using filesort
-1 SIMPLE t2 ref i_a i_a 5 test.t1.a 2 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-select t1.a, count(t2.p) as count
-from t1 left join t2 on t1.a=t2.a and t2.p % 2 = 1 group by t1.a;
-a count
-1 1
-2 0
-3 2
-5 0
-6 0
-7 2
-8 0
-9 0
-set join_cache_level=@save_join_cache_level;
-drop table t1, t2;
-#
-# BUG#40268: Nested outer join with not null-rejecting where condition
-# over an inner table which is not the last in the nest
-#
-CREATE TABLE t2 (a int, b int, c int);
-CREATE TABLE t3 (a int, b int, c int);
-CREATE TABLE t4 (a int, b int, c int);
-INSERT INTO t2 VALUES (3,3,0), (4,2,0), (5,3,0);
-INSERT INTO t3 VALUES (1,2,0), (2,2,0);
-INSERT INTO t4 VALUES (3,2,0), (4,2,0);
-set join_cache_level=6;
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2 LEFT JOIN (t3, t4) ON t2.b=t4.b
-WHERE t3.a+2<t2.a OR t3.c IS NULL;
-a b a b a b
-4 2 1 2 3 2
-4 2 1 2 4 2
-3 3 NULL NULL NULL NULL
-5 3 NULL NULL NULL NULL
-set join_cache_level=default;
-DROP TABLE t2, t3, t4;
-#
-# Bug #40192: outer join with where clause when using BNL
-#
-create table t1 (a int, b int);
-insert into t1 values (2, 20), (3, 30), (1, 10);
-create table t2 (a int, c int);
-insert into t2 values (1, 101), (3, 102), (1, 100);
-set join_cache_level=6;
-select * from t1 left join t2 on t1.a=t2.a;
-a b a c
-1 10 1 101
-3 30 3 102
-1 10 1 100
-2 20 NULL NULL
-explain select * from t1 left join t2 on t1.a=t2.a where t2.c=102 or t2.c is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 5 test.t1.a 3 Using where; Using join buffer (flat, BNLH join)
-select * from t1 left join t2 on t1.a=t2.a where t2.c=102 or t2.c is null;
-a b a c
-3 30 3 102
-2 20 NULL NULL
-set join_cache_level=default;
-drop table t1, t2;
-#
-# Bug #40317: outer join with with constant on expression equal to FALSE
-#
-create table t1 (a int);
-insert into t1 values (30), (40), (20);
-create table t2 (b int);
-insert into t2 values (200), (100);
-set join_cache_level=6;
-select * from t1 left join t2 on (1=0);
-a b
-30 NULL
-40 NULL
-20 NULL
-explain select * from t1 left join t2 on (1=0) where a=40;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-select * from t1 left join t2 on (1=0) where a=40;
-a b
-40 NULL
-set join_cache_level=0;
-explain select * from t1 left join t2 on (1=0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-set join_cache_level=default;
-drop table t1, t2;
-#
-# Bug #41204: small buffer with big rec_per_key for ref access
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (0);
-INSERT INTO t1(a) SELECT a FROM t1;
-INSERT INTO t1(a) SELECT a FROM t1;
-INSERT INTO t1(a) SELECT a FROM t1;
-INSERT INTO t1(a) SELECT a FROM t1;
-INSERT INTO t1(a) SELECT a FROM t1;
-INSERT INTO t1(a) SELECT a FROM t1;
-INSERT INTO t1(a) SELECT a FROM t1;
-INSERT INTO t1(a) SELECT a FROM t1;
-INSERT INTO t1(a) SELECT a FROM t1;
-INSERT INTO t1(a) SELECT a FROM t1;
-INSERT INTO t1(a) SELECT a FROM t1;
-INSERT INTO t1 VALUES (20000), (10000);
-CREATE TABLE t2 (pk int AUTO_INCREMENT PRIMARY KEY, b int, c int, INDEX idx(b));
-INSERT INTO t2(b,c) VALUES (10000, 3), (20000, 7), (20000, 1), (10000, 9), (20000, 5);
-INSERT INTO t2(b,c) SELECT b,c FROM t2;
-INSERT INTO t2(b,c) SELECT b,c FROM t2;
-INSERT INTO t2(b,c) SELECT b,c FROM t2;
-INSERT INTO t2(b,c) SELECT b,c FROM t2;
-INSERT INTO t2(b,c) SELECT b,c FROM t2;
-INSERT INTO t2(b,c) SELECT b,c FROM t2;
-INSERT INTO t2(b,c) SELECT b,c FROM t2;
-INSERT INTO t2(b,c) SELECT b,c FROM t2;
-ANALYZE TABLE t1,t2;
-set join_cache_level=6;
-set join_buffer_size=1024;
-EXPLAIN SELECT AVG(c) FROM t1,t2 WHERE t1.a=t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2050 Using where
-1 SIMPLE t2 ref idx idx 5 test.t1.a 640 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT AVG(c) FROM t1,t2 WHERE t1.a=t2.b;
-AVG(c)
-5.0000
-set join_buffer_size=default;
-set join_cache_level=default;
-DROP TABLE t1, t2;
-#
-# Bug #41894: big join buffer of level 7 used to join records
-# with null values in place of varchar strings
-#
-CREATE TABLE t1 (a int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-b varchar(127) DEFAULT NULL);
-INSERT INTO t1(a) VALUES (1);
-INSERT INTO t1(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t1;
-CREATE TABLE t2 (a int NOT NULL PRIMARY KEY, b varchar(127) DEFAULT NULL);
-INSERT INTO t2 SELECT * FROM t1;
-CREATE TABLE t3 (a int NOT NULL PRIMARY KEY, b varchar(127) DEFAULT NULL);
-INSERT INTO t3 SELECT * FROM t1;
-set join_cache_level=7;
-set join_buffer_size=1024*1024;
-EXPLAIN
-SELECT COUNT(*) FROM t1,t2,t3
-WHERE t1.a=t2.a AND t2.a=t3.a AND
-t1.b IS NULL AND t2.b IS NULL AND t3.b IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 16384 Using where
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT COUNT(*) FROM t1,t2,t3
-WHERE t1.a=t2.a AND t2.a=t3.a AND
-t1.b IS NULL AND t2.b IS NULL AND t3.b IS NULL;
-COUNT(*)
-16384
-set join_buffer_size=default;
-set join_cache_level=default;
-DROP TABLE t1,t2,t3;
-#
-# Bug #42020: join buffer is used for outer join with fields of
-# several outer tables in join buffer
-#
-CREATE TABLE t1 (
-a bigint NOT NULL,
-PRIMARY KEY (a)
-);
-INSERT INTO t1 VALUES
-(2), (1);
-CREATE TABLE t2 (
-a bigint NOT NULL,
-b bigint NOT NULL,
-PRIMARY KEY (a,b)
-);
-INSERT INTO t2 VALUES
-(2,30), (2,40), (2,50), (2,60), (2,70), (2,80),
-(1,10), (1, 20), (1,30), (1,40), (1,50);
-CREATE TABLE t3 (
-pk bigint NOT NULL AUTO_INCREMENT,
-a bigint NOT NULL,
-b bigint NOT NULL,
-val bigint DEFAULT '0',
-PRIMARY KEY (pk),
-KEY idx (a,b)
-);
-INSERT INTO t3(a,b) VALUES
-(2,30), (2,40), (2,50), (2,60), (2,70), (2,80),
-(4,30), (4,40), (4,50), (4,60), (4,70), (4,80),
-(5,30), (5,40), (5,50), (5,60), (5,70), (5,80),
-(7,30), (7,40), (7,50), (7,60), (7,70), (7,80);
-set join_cache_level=0;
-SELECT t1.a, t2.a, t3.a, t2.b, t3.b, t3.val
-FROM (t1,t2) LEFT JOIN t3 ON (t1.a=t3.a AND t2.b=t3.b)
-WHERE t1.a=t2.a;
-a a a b b val
-1 1 NULL 10 NULL NULL
-1 1 NULL 20 NULL NULL
-1 1 NULL 30 NULL NULL
-1 1 NULL 40 NULL NULL
-1 1 NULL 50 NULL NULL
-2 2 2 30 30 0
-2 2 2 40 40 0
-2 2 2 50 50 0
-2 2 2 60 60 0
-2 2 2 70 70 0
-2 2 2 80 80 0
-set join_cache_level=6;
-set join_buffer_size=256;
-EXPLAIN
-SELECT t1.a, t2.a, t3.a, t2.b, t3.b, t3.val
-FROM (t1,t2) LEFT JOIN t3 ON (t1.a=t3.a AND t2.b=t3.b)
-WHERE t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 8 NULL 2 Using index
-1 SIMPLE t2 ref PRIMARY PRIMARY 8 test.t1.a 1 Using index
-1 SIMPLE t3 ref idx idx 16 test.t1.a,test.t2.b 2 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT t1.a, t2.a, t3.a, t2.b, t3.b, t3.val
-FROM (t1,t2) LEFT JOIN t3 ON (t1.a=t3.a AND t2.b=t3.b)
-WHERE t1.a=t2.a;
-a a a b b val
-1 1 NULL 10 NULL NULL
-1 1 NULL 20 NULL NULL
-1 1 NULL 30 NULL NULL
-1 1 NULL 40 NULL NULL
-1 1 NULL 50 NULL NULL
-2 2 2 30 30 0
-2 2 2 40 40 0
-2 2 2 50 50 0
-2 2 2 60 60 0
-2 2 2 70 70 0
-2 2 2 80 80 0
-DROP INDEX idx ON t3;
-set join_cache_level=2;
-EXPLAIN
-SELECT t1.a, t2.a, t3.a, t2.b, t3.b, t3.val
-FROM (t1,t2) LEFT JOIN t3 ON (t1.a=t3.a AND t2.b=t3.b)
-WHERE t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 8 NULL 2 Using index
-1 SIMPLE t2 ref PRIMARY PRIMARY 8 test.t1.a 1 Using index
-1 SIMPLE t3 ALL NULL NULL NULL NULL 24 Using where; Using join buffer (flat, BNL join)
-SELECT t1.a, t2.a, t3.a, t2.b, t3.b, t3.val
-FROM (t1,t2) LEFT JOIN t3 ON (t1.a=t3.a AND t2.b=t3.b)
-WHERE t1.a=t2.a;
-a a a b b val
-1 1 NULL 10 NULL NULL
-1 1 NULL 20 NULL NULL
-1 1 NULL 30 NULL NULL
-1 1 NULL 40 NULL NULL
-1 1 NULL 50 NULL NULL
-2 2 2 30 30 0
-2 2 2 40 40 0
-2 2 2 50 50 0
-2 2 2 60 60 0
-2 2 2 70 70 0
-2 2 2 80 80 0
-set join_buffer_size=default;
-set join_cache_level=default;
-DROP TABLE t1,t2,t3;
-create table t1(f1 int, f2 int);
-insert into t1 values (1,1),(2,2),(3,3);
-create table t2(f1 int not null, f2 int not null, f3 char(200), key(f1,f2));
-insert into t2 values (1,1, 'qwerty'),(1,2, 'qwerty'),(1,3, 'qwerty');
-insert into t2 values (2,1, 'qwerty'),(2,2, 'qwerty'),(2,3, 'qwerty'),
-(2,4, 'qwerty'),(2,5, 'qwerty');
-insert into t2 values (3,1, 'qwerty'),(3,4, 'qwerty');
-insert into t2 values (4,1, 'qwerty'),(4,2, 'qwerty'),(4,3, 'qwerty'),
-(4,4, 'qwerty');
-insert into t2 values (1,1, 'qwerty'),(1,2, 'qwerty'),(1,3, 'qwerty');
-insert into t2 values (2,1, 'qwerty'),(2,2, 'qwerty'),(2,3, 'qwerty'),
-(2,4, 'qwerty'),(2,5, 'qwerty');
-insert into t2 values (3,1, 'qwerty'),(3,4, 'qwerty');
-insert into t2 values (4,1, 'qwerty'),(4,2, 'qwerty'),(4,3, 'qwerty'),
-(4,4, 'qwerty');
-flush status;
-set join_cache_level=5;
-select t2.f1, t2.f2, t2.f3 from t1,t2
-where t1.f1=t2.f1 and t2.f2 between t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1;
-f1 f2 f3
-1 1 qwerty
-2 2 qwerty
-1 1 qwerty
-2 2 qwerty
-explain select t2.f1, t2.f2, t2.f3 from t1,t2
-where t1.f1=t2.f1 and t2.f2 between t1.f1 and t2.f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t2 ref f1 f1 4 test.t1.f1 3 Using index condition(BKA); Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-show status like "Handler_icp%";
-Variable_name Value
-Handler_icp_attempts 20
-Handler_icp_match 4
-set join_cache_level=6;
-select t2.f1, t2.f2, t2.f3 from t1,t2
-where t1.f1=t2.f1 and t2.f2 between t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1;
-f1 f2 f3
-1 1 qwerty
-2 2 qwerty
-1 1 qwerty
-2 2 qwerty
-explain select t2.f1, t2.f2, t2.f3 from t1,t2
-where t1.f1=t2.f1 and t2.f2 between t1.f1 and t2.f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t2 ref f1 f1 4 test.t1.f1 3 Using index condition(BKA); Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-show status like "Handler_icp%";
-Variable_name Value
-Handler_icp_attempts 40
-Handler_icp_match 8
-set join_cache_level=7;
-select t2.f1, t2.f2, t2.f3 from t1,t2
-where t1.f1=t2.f1 and t2.f2 between t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1;
-f1 f2 f3
-1 1 qwerty
-2 2 qwerty
-1 1 qwerty
-2 2 qwerty
-explain select t2.f1, t2.f2, t2.f3 from t1,t2
-where t1.f1=t2.f1 and t2.f2 between t1.f1 and t2.f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t2 ref f1 f1 4 test.t1.f1 3 Using index condition(BKA); Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-show status like "Handler_icp%";
-Variable_name Value
-Handler_icp_attempts 60
-Handler_icp_match 12
-set join_cache_level=8;
-select t2.f1, t2.f2, t2.f3 from t1,t2
-where t1.f1=t2.f1 and t2.f2 between t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1;
-f1 f2 f3
-1 1 qwerty
-2 2 qwerty
-1 1 qwerty
-2 2 qwerty
-explain select t2.f1, t2.f2, t2.f3 from t1,t2
-where t1.f1=t2.f1 and t2.f2 between t1.f1 and t2.f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t2 ref f1 f1 4 test.t1.f1 3 Using index condition(BKA); Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-show status like "Handler_icp%";
-Variable_name Value
-Handler_icp_attempts 80
-Handler_icp_match 16
-drop table t1,t2;
-set join_cache_level=default;
-#
-# Bug #42955: join with GROUP BY/ORDER BY and when BKA is enabled
-#
-create table t1 (d int, id1 int, index idx1 (d, id1));
-insert into t1 values
-(3, 20), (2, 40), (3, 10), (1, 10), (3, 20), (1, 40), (2, 30), (3, 30);
-create table t2 (id1 int, id2 int, index idx2 (id1));
-insert into t2 values
-(20, 100), (30, 400), (20, 400), (30, 200), (10, 300), (10, 200), (40, 100),
-(40, 200), (30, 300), (10, 400), (20, 200), (20, 300);
-insert into t2 values
-(21, 10), (31, 400), (21, 400), (31, 200), (11, 300), (11, 200), (41, 100),
-(41, 200), (31, 300), (11, 400), (21, 200), (21, 300);
-set join_cache_level=6;
-explain
-select t1.id1, sum(t2.id2) from t1 join t2 on t1.id1=t2.id1
-where t1.d=3 group by t1.id1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1 idx1 5 const 4 Using where; Using index; Using temporary; Using filesort
-1 SIMPLE t2 ref idx2 idx2 5 test.t1.id1 2 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-select t1.id1, sum(t2.id2) from t1 join t2 on t1.id1=t2.id1
-where t1.d=3 group by t1.id1;
-id1 sum(t2.id2)
-10 900
-20 2000
-30 900
-explain
-select t1.id1 from t1 join t2 on t1.id1=t2.id1
-where t1.d=3 and t2.id2 > 200 order by t1.id1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1 idx1 5 const 4 Using where; Using index; Using temporary; Using filesort
-1 SIMPLE t2 ref idx2 idx2 5 test.t1.id1 2 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-select t1.id1 from t1 join t2 on t1.id1=t2.id1
-where t1.d=3 and t2.id2 > 200 order by t1.id1;
-id1
-10
-10
-20
-20
-20
-20
-30
-30
-set join_cache_level=default;
-drop table t1,t2;
-#
-# Bug #44019: star-like multi-join query executed join_cache_level=6
-#
-create table t1 (a int, b int, c int, d int);
-create table t2 (b int, e varchar(16), index idx(b));
-create table t3 (d int, f varchar(16), index idx(d));
-create table t4 (c int, g varchar(16), index idx(c));
-insert into t1 values
-(5, 50, 500, 5000), (3, 30, 300, 3000), (9, 90, 900, 9000),
-(2, 20, 200, 2000), (4, 40, 400, 4000), (8, 80, 800, 800),
-(7, 70, 700, 7000);
-insert into t2 values
-(30, 'bbb'), (10, 'b'), (70, 'bbbbbbb'), (60, 'bbbbbb'),
-(31, 'bbb'), (11, 'b'), (71, 'bbbbbbb'), (61, 'bbbbbb'),
-(32, 'bbb'), (12, 'b'), (72, 'bbbbbbb'), (62, 'bbbbbb');
-insert into t2 values
-(130, 'bbb'), (110, 'b'), (170, 'bbbbbbb'), (160, 'bbbbbb'),
-(131, 'bbb'), (111, 'b'), (171, 'bbbbbbb'), (161, 'bbbbbb'),
-(132, 'bbb'), (112, 'b'), (172, 'bbbbbbb'), (162, 'bbbbbb');
-insert into t3 values
-(4000, 'dddd'), (3000, 'ddd'), (1000, 'd'), (8000, 'dddddddd'),
-(4001, 'dddd'), (3001, 'ddd'), (1001, 'd'), (8001, 'dddddddd'),
-(4002, 'dddd'), (3002, 'ddd'), (1002, 'd'), (8002, 'dddddddd');
-insert into t3 values
-(14000, 'dddd'), (13000, 'ddd'), (11000, 'd'), (18000, 'dddddddd'),
-(14001, 'dddd'), (13001, 'ddd'), (11001, 'd'), (18001, 'dddddddd'),
-(4002, 'dddd'), (3002, 'ddd'), (1002, 'd'), (8002, 'dddddddd');
-insert into t4 values
-(200, 'cc'), (600, 'cccccc'), (300, 'ccc'), (500, 'ccccc'),
-(201, 'cc'), (601, 'cccccc'), (301, 'ccc'), (501, 'ccccc'),
-(202, 'cc'), (602, 'cccccc'), (302, 'ccc'), (502, 'ccccc');
-insert into t4 values
-(1200, 'cc'), (1600, 'cccccc'), (1300, 'ccc'), (1500, 'ccccc'),
-(1201, 'cc'), (1601, 'cccccc'), (1301, 'ccc'), (1501, 'ccccc'),
-(1202, 'cc'), (1602, 'cccccc'), (1302, 'ccc'), (1502, 'ccccc');
-analyze table t2,t3,t4;
-set join_cache_level=1;
-explain
-select t1.a, t1.b, t1.c, t1.d, t2.e, t3.f, t4.g from t1,t2,t3,t4
-where t2.b=t1.b and t3.d=t1.d and t4.c=t1.c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7 Using where
-1 SIMPLE t2 ref idx idx 5 test.t1.b 1
-1 SIMPLE t3 ref idx idx 5 test.t1.d 1
-1 SIMPLE t4 ref idx idx 5 test.t1.c 1
-select t1.a, t1.b, t1.c, t1.d, t2.e, t3.f, t4.g from t1,t2,t3,t4
-where t2.b=t1.b and t3.d=t1.d and t4.c=t1.c;
-a b c d e f g
-3 30 300 3000 bbb ddd ccc
-set join_cache_level=6;
-explain
-select t1.a, t1.b, t1.c, t1.d, t2.e, t3.f, t4.g from t1,t2,t3,t4
-where t2.b=t1.b and t3.d=t1.d and t4.c=t1.c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7 Using where
-1 SIMPLE t2 ref idx idx 5 test.t1.b 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t3 ref idx idx 5 test.t1.d 1 Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t4 ref idx idx 5 test.t1.c 1 Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-select t1.a, t1.b, t1.c, t1.d, t2.e, t3.f, t4.g from t1,t2,t3,t4
-where t2.b=t1.b and t3.d=t1.d and t4.c=t1.c;
-a b c d e f g
-3 30 300 3000 bbb ddd ccc
-set join_cache_level=default;
-drop table t1,t2,t3,t4;
-#
-# Bug #44250: Corruption of linked join buffers when using BKA
-#
-CREATE TABLE t1 (
-id1 bigint(20) DEFAULT NULL,
-id2 bigint(20) DEFAULT NULL,
-id3 bigint(20) DEFAULT NULL,
-num1 bigint(20) DEFAULT NULL,
-num2 int(11) DEFAULT NULL,
-num3 bigint(20) DEFAULT NULL
-);
-CREATE TABLE t2 (
-id3 bigint(20) NOT NULL DEFAULT '0',
-id4 bigint(20) DEFAULT NULL,
-enum1 enum('Enabled','Disabled','Paused') DEFAULT NULL,
-PRIMARY KEY (id3)
-);
-CREATE TABLE t3 (
-id4 bigint(20) NOT NULL DEFAULT '0',
-text1 text,
-PRIMARY KEY (id4)
-);
-CREATE TABLE t4 (
-id2 bigint(20) NOT NULL DEFAULT '0',
-dummy int(11) DEFAULT '0',
-PRIMARY KEY (id2)
-);
-CREATE TABLE t5 (
-id1 bigint(20) NOT NULL DEFAULT '0',
-id2 bigint(20) NOT NULL DEFAULT '0',
-enum2 enum('Active','Deleted','Paused') DEFAULT NULL,
-PRIMARY KEY (id1,id2)
-);
-set join_cache_level=8;
-set join_buffer_size=2048;
-EXPLAIN
-SELECT STRAIGHT_JOIN t1.id1, t1.num3, t3.text1, t3.id4, t2.id3, t4.dummy
-FROM t1 JOIN t2 JOIN t3 JOIN t4 JOIN t5
-WHERE t1.id1=t5.id1 AND t1.id2=t5.id2 and t4.id2=t1.id2 AND
-t5.enum2='Active' AND t3.id4=t2.id4 AND t2.id3=t1.id3 AND t3.text1<'D';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 349 Using where
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 8 test.t1.id3 1 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 8 test.t2.id4 1 Using where; Using join buffer (incremental, BKAH join); Key-ordered Rowid-ordered scan
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 8 test.t1.id2 1 Using join buffer (incremental, BKAH join); Key-ordered Rowid-ordered scan
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 16 test.t1.id1,test.t1.id2 1 Using where; Using join buffer (incremental, BKAH join); Key-ordered Rowid-ordered scan
-SELECT STRAIGHT_JOIN t1.id1, t1.num3, t3.text1, t3.id4, t2.id3, t4.dummy
-FROM t1 JOIN t2 JOIN t3 JOIN t4 JOIN t5
-WHERE t1.id1=t5.id1 AND t1.id2=t5.id2 and t4.id2=t1.id2 AND
-t5.enum2='Active' AND t3.id4=t2.id4 AND t2.id3=t1.id3 AND t3.text1<'D';
-id1 num3 text1 id4 id3 dummy
-228172702 14 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2567095402 2667134182 0
-228172702 134 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2567095402 2667134182 0
-228172702 15 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2567095402 2667134182 0
-228172702 3 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2567095402 2667134182 0
-228808822 61 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 826928662 935693782 0
-228808822 13 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 826928662 935693782 0
-228808822 60 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 826928662 935693782 0
-228808822 13 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 826928662 935693782 0
-228808822 3 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 826928662 935693782 0
-228808822 4 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 826928662 935693782 0
-228808822 6 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 826928662 935693782 0
-228808822 18 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 826928662 935693782 0
-228808822 1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 826928662 935693782 0
-228808822 3 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 826928662 935693782 0
-228808822 17 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 826928662 935693782 0
-228808822 50 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 826928662 935693782 0
-228808822 4 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 826928662 935693782 0
-228808822 89 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2381969632 2482416112 0
-228808822 19 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2381969632 2482416112 0
-228808822 9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2381969632 2482416112 0
-228808822 84 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2381969632 2482416112 0
-228808822 14 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2381969632 2482416112 0
-228808822 1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2381969632 2482416112 0
-228808822 10 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2381969632 2482416112 0
-228808822 26 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2381969632 2482416112 0
-228808822 4 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2381969632 2482416112 0
-228808822 3 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2381969632 2482416112 0
-228808822 1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2381969632 2482416112 0
-228808822 3 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2381969632 2482416112 0
-228808822 28 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2381969632 2482416112 0
-228808822 62 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2381969632 2482416112 0
-set join_buffer_size=default;
-set join_cache_level=default;
-DROP TABLE t1,t2,t3,t4,t5;
-#
-# Bug#45267: Incomplete check caused wrong result.
-#
-CREATE TABLE t1 (
-`pk` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY
-);
-CREATE TABLE t3 (
-`pk` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY
-);
-INSERT INTO t3 VALUES
-(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),(13),(14),(15),
-(16),(17),(18),(19),(20);
-CREATE TABLE t2 (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`int_nokey` int(11) NOT NULL,
-`time_key` time NOT NULL,
-PRIMARY KEY (`pk`),
-KEY `time_key` (`time_key`)
-);
-INSERT INTO t2 VALUES (10,9,'22:36:46'),(11,0,'08:46:46');
-SELECT DISTINCT t1.`pk`
-FROM t1 RIGHT JOIN t2 STRAIGHT_JOIN t3 ON t2.`int_nokey` ON t2.`time_key`
-GROUP BY 1;
-pk
-NULL
-DROP TABLE IF EXISTS t1, t2, t3;
-#
-# Bug #46328: Use of aggregate function without GROUP BY clause
-# returns many rows (vs. one )
-#
-CREATE TABLE t1 (
-int_key int(11) NOT NULL,
-KEY int_key (int_key)
-);
-INSERT INTO t1 VALUES
-(0),(2),(2),(2),(3),(4),(5),(5),(6),(6),(8),(8),(9),(9);
-CREATE TABLE t2 (
-int_key int(11) NOT NULL,
-KEY int_key (int_key)
-);
-INSERT INTO t2 VALUES (2),(3);
-
-# The query shall return 1 record with a max value 9 and one of the
-# int_key values inserted above (undefined which one). A changed
-# execution plan may change the value in the second column
-SELECT MAX(t1.int_key), t1.int_key
-FROM t1 STRAIGHT_JOIN t2
-ORDER BY t1.int_key;
-MAX(t1.int_key) int_key
-9 0
-
-explain
-SELECT MAX(t1.int_key), t1.int_key
-FROM t1 STRAIGHT_JOIN t2
-ORDER BY t1.int_key;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL int_key 4 NULL 14 Using index
-1 SIMPLE t2 index NULL int_key 4 NULL 2 Using index; Using join buffer (flat, BNL join)
-
-DROP TABLE t1,t2;
-SET join_cache_level=default;
-#
-# Regression test for
-# Bug#46733 - NULL value not returned for aggregate on empty result
-# set w/ semijoin on
-#
-CREATE TABLE t1 (
-i int(11) NOT NULL,
-v varchar(1) DEFAULT NULL,
-PRIMARY KEY (i)
-);
-INSERT INTO t1 VALUES (10,'a'),(11,'b'),(12,'c'),(13,'d');
-CREATE TABLE t2 (
-i int(11) NOT NULL,
-v varchar(1) DEFAULT NULL,
-PRIMARY KEY (i)
-);
-INSERT INTO t2 VALUES (1,'x'),(2,'y');
-
-SELECT MAX(t1.i)
-FROM t1 JOIN t2 ON t2.v
-ORDER BY t2.v;
-MAX(t1.i)
-NULL
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-Warning 1292 Truncated incorrect DOUBLE value: 'y'
-
-EXPLAIN
-SELECT MAX(t1.i)
-FROM t1 JOIN t2 ON t2.v
-ORDER BY t2.v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 4 Using index; Using join buffer (flat, BNL join)
-
-DROP TABLE t1,t2;
-#
-# Bug #45092: join buffer contains two blob columns one of which is
-# used in the key employed to access the joined table
-#
-CREATE TABLE t1 (c1 int, c2 int, key (c2));
-INSERT INTO t1 VALUES (1,1);
-INSERT INTO t1 VALUES (2,2);
-CREATE TABLE t2 (c1 text, c2 text);
-INSERT INTO t2 VALUES('tt', 'uu');
-INSERT INTO t2 VALUES('zzzz', 'xxxxxxxxx');
-ANALYZE TABLE t1,t2;
-set join_cache_level=6;
-SELECT t1.*, t2.*, LENGTH(t2.c1), LENGTH(t2.c2) FROM t1,t2
-WHERE t1.c2=LENGTH(t2.c2) and t1.c1=LENGTH(t2.c1);
-c1 c2 c1 c2 LENGTH(t2.c1) LENGTH(t2.c2)
-2 2 tt uu 2 2
-set join_cache_level=default;
-DROP TABLE t1,t2;
-#
-# Bug #51092: linked join buffer is used for a 3-way cross join query
-# that selects only records of the first table
-#
-create table t1 (a int, b int);
-insert into t1 values (1,1),(2,2);
-create table t2 (a int, b int);
-insert into t2 values (1,1),(2,2);
-create table t3 (a int, b int);
-insert into t3 values (1,1),(2,2);
-set join_cache_level=1;
-explain select t1.* from t1,t2,t3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-select t1.* from t1,t2,t3;
-a b
-1 1
-2 2
-1 1
-2 2
-1 1
-2 2
-1 1
-2 2
-set join_cache_level=2;
-explain select t1.* from t1,t2,t3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 Using join buffer (incremental, BNL join)
-select t1.* from t1,t2,t3;
-a b
-1 1
-2 2
-1 1
-2 2
-1 1
-2 2
-1 1
-2 2
-set join_cache_level=default;
-drop table t1,t2,t3;
-#
-# Bug #52394: using join buffer for 3 table join with ref access
-# LP #623209: and no references to the columns of the middle table
-#
-set join_cache_level=6;
-CREATE TABLE t1 (a int(11), b varchar(1));
-INSERT INTO t1 VALUES (6,'r'),(27,'o');
-CREATE TABLE t2(a int);
-INSERT INTO t2 VALUES(1),(2),(3),(4),(5);
-CREATE TABLE t3 (a int(11) primary key, b varchar(1));
-INSERT INTO t3 VALUES
-(14,'d'),(15,'z'),(16,'e'),(17,'h'),(18,'b'),(19,'s'),(20,'e'),
-(21,'j'),(22,'e'),(23,'f'),(24,'v'),(25,'x'),(26,'m'),(27,'o');
-EXPLAIN
-SELECT t3.a FROM t1,t2,t3 WHERE t1.a = t3.a AND t1.b = t3.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 Using join buffer (incremental, BNL join)
-SELECT t3.a FROM t1,t2,t3 WHERE t1.a = t3.a AND t1.b = t3.b;
-a
-27
-27
-27
-27
-27
-DROP TABLE t1,t2,t3;
-set join_cache_level=default;
-#
-# Bug #51084: Batched key access crashes for SELECT with
-# derived table and LEFT JOIN
-#
-CREATE TABLE t1 (
-carrier int,
-id int PRIMARY KEY
-);
-INSERT INTO t1 VALUES (1,11),(1,12),(2,13);
-CREATE TABLE t2 (
-scan_date int,
-package_id int
-);
-INSERT INTO t2 VALUES (2008,21),(2008,22);
-CREATE TABLE t3 (
-carrier int PRIMARY KEY,
-id int
-);
-INSERT INTO t3 VALUES (1,31);
-CREATE TABLE t4 (
-carrier_id int,
-INDEX carrier_id(carrier_id)
-);
-INSERT INTO t4 VALUES (31),(32);
-SET join_cache_level=8;
-SELECT COUNT(*)
-FROM (t2 JOIN t1) LEFT JOIN (t3 JOIN t4 ON t3.id = t4.carrier_id)
-ON t3.carrier = t1.carrier;
-COUNT(*)
-6
-EXPLAIN
-SELECT COUNT(*)
-FROM (t2 JOIN t1) LEFT JOIN (t3 JOIN t4 ON t3.id = t4.carrier_id)
-ON t3.carrier = t1.carrier;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.carrier 1 Using where
-1 SIMPLE t4 ref carrier_id carrier_id 5 test.t3.id 2 Using index
-SET join_cache_level=default;
-DROP TABLE t1,t2,t3,t4;
-#
-# Bug #52636: allowing JOINs on NULL values w/ join_cache_level = 5-8
-#
-CREATE TABLE t1 (b int);
-INSERT INTO t1 VALUES (NULL),(3);
-CREATE TABLE t2 (a int, b int, KEY (b));
-INSERT INTO t2 VALUES
-(100,NULL),(150,200),(50,150),(250,350),(180,210),(100,150),
-(101,NULL),(151,200),(51,150),(251,350),(181,210),(101,150);
-set join_cache_level = 5;
-explain SELECT t2.a FROM t1 LEFT JOIN t2 ON t2.b = t1.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ref b b 5 test.t1.b 2 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT t2.a FROM t1 LEFT JOIN t2 ON t2.b = t1.b;
-a
-NULL
-NULL
-set join_cache_level = 8;
-explain SELECT t2.a FROM t1 LEFT JOIN t2 ON t2.b = t1.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ref b b 5 test.t1.b 2 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT t2.a FROM t1 LEFT JOIN t2 ON t2.b = t1.b;
-a
-NULL
-NULL
-delete from t1;
-INSERT INTO t1 VALUES (NULL),(NULL);
-set join_cache_level = 5;
-explain SELECT t2.a FROM t1 LEFT JOIN t2 ON t2.b = t1.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ref b b 5 test.t1.b 2 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT t2.a FROM t1 LEFT JOIN t2 ON t2.b = t1.b;
-a
-NULL
-NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (b varchar(100));
-INSERT INTO t1 VALUES (NULL),("some varchar");
-CREATE TABLE t2 (a int, b varchar(100), KEY (b));
-INSERT INTO t2 VALUES (100,NULL),(150,"varchar"),(200,NULL),(250,"long long varchar");
-INSERT INTO t2 VALUES (100,NULL),(150,"long varchar"),(200,"varchar"),(250,"long long long varchar");
-set join_cache_level = 5;
-explain SELECT t2.a FROM t1 LEFT JOIN t2 ON t2.b = t1.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ref b b 103 test.t1.b 2 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT t2.a FROM t1 LEFT JOIN t2 ON t2.b = t1.b;
-a
-NULL
-NULL
-set join_cache_level = 8;
-explain SELECT t2.a FROM t1 LEFT JOIN t2 ON t2.b = t1.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ref b b 103 test.t1.b 2 Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT t2.a FROM t1 LEFT JOIN t2 ON t2.b = t1.b;
-a
-NULL
-NULL
-set join_cache_level = default;
-DROP TABLE t1,t2;
-#
-# Bug #54359: Extra rows with join_cache_level=7,8 and two joins
-# and multi-column index"
-#
-CREATE TABLE t1 (
-pk int NOT NULL,
-a int DEFAULT NULL,
-b varchar(16) DEFAULT NULL,
-c varchar(16) DEFAULT NULL,
-INDEX idx (b,a))
-;
-INSERT INTO t1 VALUES (4,9,'k','k');
-INSERT INTO t1 VALUES (12,5,'k','k');
-set join_cache_level = 8;
-EXPLAIN
-SELECT t.a FROM t1 t, t1 s FORCE INDEX(idx)
-WHERE s.pk AND s.a >= t.pk AND s.b = t.c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE s ref idx idx 19 test.t.c 1 Using index condition(BKA); Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
-SELECT t.a FROM t1 t, t1 s FORCE INDEX(idx)
-WHERE s.pk AND s.a >= t.pk AND s.b = t.c;
-a
-9
-9
-set join_cache_level = default;
-DROP TABLE t1;
-#
-# Bug #54235: Extra rows with join_cache_level=6,8 and two LEFT JOINs
-#
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int);
-CREATE TABLE t3 (a int);
-CREATE TABLE t4 (a int);
-INSERT INTO t1 VALUES (null), (2), (null), (1);
-set join_cache_level = 6;
-EXPLAIN
-SELECT t1.a
-FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON t2.a) ON 0
-WHERE t1.a OR t3.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 ALL NULL NULL NULL NULL 0 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 0 Using where; Using join buffer (incremental, BNL join)
-SELECT t1.a
-FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON t2.a) ON 0
-WHERE t1.a OR t3.a;
-a
-2
-1
-EXPLAIN
-SELECT t1.a
-FROM t1 LEFT JOIN (t2 LEFT JOIN (t3 LEFT JOIN t4 ON 1) ON t2.a) ON 0
-WHERE t1.a OR t4.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 ALL NULL NULL NULL NULL 0 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 0 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 0 Using where; Using join buffer (incremental, BNL join)
-SELECT t1.a
-FROM t1 LEFT JOIN (t2 LEFT JOIN (t3 LEFT JOIN t4 ON 1) ON t2.a) ON 0
-WHERE t1.a OR t4.a;
-a
-2
-1
-set join_cache_level = default;
-DROP TABLE t1,t2,t3,t4;
-#
-# Bug #663840: Memory overwrite causing crash with hash join
-#
-SET SESSION join_cache_level=3;
-SET SESSION join_buffer_size=100;
-Warnings:
-Warning 1292 Truncated incorrect join_buffer_size value: '100'
-CREATE TABLE t3 (
-i int NOT NULL,
-j int NOT NULL,
-d date NOT NULL,
-t time NOT NULL,
-v varchar(1) NOT NULL,
-u varchar(1) NOT NULL,
-INDEX idx (v)
-) COLLATE=latin1_bin;
-INSERT INTO t3 VALUES
-(3,8,'2008-12-04','00:00:00','v','v'), (3,8,'2009-03-28','00:00:00','f','f'),
-(3,5,'1900-01-01','00:55:47','v','v'), (2,8,'2009-10-02','00:00:00','s','s'),
-(1,8,'1900-01-01','20:51:59','a','a'), (0,6,'2008-06-04','09:47:27','p','p'),
-(8,7,'2009-01-13','21:58:29','z','z'), (5,2,'1900-01-01','22:45:53','a','a'),
-(9,5,'2008-01-28','14:06:48','h','h'), (5,7,'2004-09-18','22:17:16','h','h'),
-(4,2,'2006-10-14','14:59:37','v','v'), (2,9,'1900-01-01','23:37:40','v','v'),
-(33,142,'2000-11-28','14:14:01','b','b'), (5,3,'2008-04-04','02:54:19','y','y'),
-(1,0,'2002-07-13','06:34:26','v','v'), (9,3,'2003-01-03','18:07:38','m','m'),
-(1,5,'2006-04-02','13:55:23','z','z'), (3,9,'2006-10-19','20:32:28','n','n'),
-(8,1,'2005-06-08','11:57:44','d','d'), (231,107,'2006-12-26','03:10:35','a','a');
-INSERT INTO t3 VALUES
-(103,108,'2008-12-04','00:00:00','a','v'), (103,108,'2009-03-28','00:00:00','b','f'),
-(103,105,'1900-01-01','00:55:47','c','v'), (102,108,'2009-10-02','00:00:00','d','s'),
-(100,108,'1900-01-01','20:51:59','e','a'), (100,106,'2008-06-04','09:47:27','f','p'),
-(108,107,'2009-01-13','21:58:29','g','z'), (105,102,'1900-01-01','22:45:53','h','a'),
-(109,105,'2008-01-28','14:06:48','i','h'), (105,107,'2004-09-18','22:17:16','j','h'),
-(104,102,'2006-10-14','14:59:37','k','v'), (102,109,'1900-01-01','23:37:40','l','v'),
-(1033,1142,'2000-11-28','14:14:01','m','b'), (105,103,'2008-04-04','02:54:19','n','y'),
-(100,100,'2002-07-13','06:34:26','o','v'), (109,103,'2003-01-03','18:07:38','p','m'),
-(100,105,'2006-04-02','13:55:23','q','z'), (103,109,'2006-10-19','20:32:28','s','n'),
-(108,100,'2005-06-08','11:57:44','t','d'), (1231,1107,'2006-12-26','03:10:35','v','a');
-CREATE TABLE t1 SELECT * FROM t3;
-DELETE FROM t1 WHERE i > 8;
-CREATE TABLE t2 SELECT * FROM t3;
-DELETE FROM t2 WHERE j > 10;
-EXPLAIN
-SELECT t1.i, t1.d, t1.v, t2.i, t2.d, t2.t, t2.v FROM t1,t2,t3
-WHERE t3.u <='a' AND t2.j < 5 AND t3.v = t2.u;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16
-1 SIMPLE t2 ALL NULL NULL NULL NULL 18 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 hash_ALL idx #hash#idx 3 test.t2.u 40 Using where; Using join buffer (flat, BNLH join)
-SELECT t1.i, t1.d, t1.v, t2.i, t2.d, t2.t, t2.v FROM t1,t2,t3
-WHERE t3.u <='a' AND t2.j < 5 AND t3.v = t2.u;
-i d v i d t v
-0 2008-06-04 p 1 2002-07-13 06:34:26 v
-0 2008-06-04 p 4 2006-10-14 14:59:37 v
-0 2008-06-04 p 5 1900-01-01 22:45:53 a
-0 2008-06-04 p 5 1900-01-01 22:45:53 a
-0 2008-06-04 p 5 1900-01-01 22:45:53 a
-1 1900-01-01 a 1 2002-07-13 06:34:26 v
-1 1900-01-01 a 4 2006-10-14 14:59:37 v
-1 1900-01-01 a 5 1900-01-01 22:45:53 a
-1 1900-01-01 a 5 1900-01-01 22:45:53 a
-1 1900-01-01 a 5 1900-01-01 22:45:53 a
-1 2002-07-13 v 1 2002-07-13 06:34:26 v
-1 2002-07-13 v 4 2006-10-14 14:59:37 v
-1 2002-07-13 v 5 1900-01-01 22:45:53 a
-1 2002-07-13 v 5 1900-01-01 22:45:53 a
-1 2002-07-13 v 5 1900-01-01 22:45:53 a
-1 2006-04-02 z 1 2002-07-13 06:34:26 v
-1 2006-04-02 z 4 2006-10-14 14:59:37 v
-1 2006-04-02 z 5 1900-01-01 22:45:53 a
-1 2006-04-02 z 5 1900-01-01 22:45:53 a
-1 2006-04-02 z 5 1900-01-01 22:45:53 a
-2 1900-01-01 v 1 2002-07-13 06:34:26 v
-2 1900-01-01 v 4 2006-10-14 14:59:37 v
-2 1900-01-01 v 5 1900-01-01 22:45:53 a
-2 1900-01-01 v 5 1900-01-01 22:45:53 a
-2 1900-01-01 v 5 1900-01-01 22:45:53 a
-2 2009-10-02 s 1 2002-07-13 06:34:26 v
-2 2009-10-02 s 4 2006-10-14 14:59:37 v
-2 2009-10-02 s 5 1900-01-01 22:45:53 a
-2 2009-10-02 s 5 1900-01-01 22:45:53 a
-2 2009-10-02 s 5 1900-01-01 22:45:53 a
-3 1900-01-01 v 1 2002-07-13 06:34:26 v
-3 1900-01-01 v 4 2006-10-14 14:59:37 v
-3 1900-01-01 v 5 1900-01-01 22:45:53 a
-3 1900-01-01 v 5 1900-01-01 22:45:53 a
-3 1900-01-01 v 5 1900-01-01 22:45:53 a
-3 2006-10-19 n 1 2002-07-13 06:34:26 v
-3 2006-10-19 n 4 2006-10-14 14:59:37 v
-3 2006-10-19 n 5 1900-01-01 22:45:53 a
-3 2006-10-19 n 5 1900-01-01 22:45:53 a
-3 2006-10-19 n 5 1900-01-01 22:45:53 a
-3 2008-12-04 v 1 2002-07-13 06:34:26 v
-3 2008-12-04 v 4 2006-10-14 14:59:37 v
-3 2008-12-04 v 5 1900-01-01 22:45:53 a
-3 2008-12-04 v 5 1900-01-01 22:45:53 a
-3 2008-12-04 v 5 1900-01-01 22:45:53 a
-3 2009-03-28 f 1 2002-07-13 06:34:26 v
-3 2009-03-28 f 4 2006-10-14 14:59:37 v
-3 2009-03-28 f 5 1900-01-01 22:45:53 a
-3 2009-03-28 f 5 1900-01-01 22:45:53 a
-3 2009-03-28 f 5 1900-01-01 22:45:53 a
-4 2006-10-14 v 1 2002-07-13 06:34:26 v
-4 2006-10-14 v 4 2006-10-14 14:59:37 v
-4 2006-10-14 v 5 1900-01-01 22:45:53 a
-4 2006-10-14 v 5 1900-01-01 22:45:53 a
-4 2006-10-14 v 5 1900-01-01 22:45:53 a
-5 1900-01-01 a 1 2002-07-13 06:34:26 v
-5 1900-01-01 a 4 2006-10-14 14:59:37 v
-5 1900-01-01 a 5 1900-01-01 22:45:53 a
-5 1900-01-01 a 5 1900-01-01 22:45:53 a
-5 1900-01-01 a 5 1900-01-01 22:45:53 a
-5 2004-09-18 h 1 2002-07-13 06:34:26 v
-5 2004-09-18 h 4 2006-10-14 14:59:37 v
-5 2004-09-18 h 5 1900-01-01 22:45:53 a
-5 2004-09-18 h 5 1900-01-01 22:45:53 a
-5 2004-09-18 h 5 1900-01-01 22:45:53 a
-5 2008-04-04 y 1 2002-07-13 06:34:26 v
-5 2008-04-04 y 4 2006-10-14 14:59:37 v
-5 2008-04-04 y 5 1900-01-01 22:45:53 a
-5 2008-04-04 y 5 1900-01-01 22:45:53 a
-5 2008-04-04 y 5 1900-01-01 22:45:53 a
-8 2005-06-08 d 1 2002-07-13 06:34:26 v
-8 2005-06-08 d 4 2006-10-14 14:59:37 v
-8 2005-06-08 d 5 1900-01-01 22:45:53 a
-8 2005-06-08 d 5 1900-01-01 22:45:53 a
-8 2005-06-08 d 5 1900-01-01 22:45:53 a
-8 2009-01-13 z 1 2002-07-13 06:34:26 v
-8 2009-01-13 z 4 2006-10-14 14:59:37 v
-8 2009-01-13 z 5 1900-01-01 22:45:53 a
-8 2009-01-13 z 5 1900-01-01 22:45:53 a
-8 2009-01-13 z 5 1900-01-01 22:45:53 a
-DROP TABLE t1,t2,t3;
-SET SESSION join_cache_level=DEFAULT;
-SET SESSION join_buffer_size=DEFAULT;
-#
-# Bug #664508: 'Simple' GROUP BY + ORDER BY
-# when join buffers are used
-#
-CREATE TABLE t1 (
-pk int NOT NULL, i int NOT NULL, v varchar(1) NOT NULL,
-PRIMARY KEY (pk), INDEX idx1(i), INDEX idx2 (v,i)
-) COLLATE latin1_bin;
-INSERT INTO t1 VALUES
-(10,8,'v'), (11,8,'f'), (13,8,'s'), (14,8,'a'),
-(15,6,'p'), (16,7,'z'), (17,2,'a'), (18,5,'h'), (19,7,'h'),
-(25,3,'m'), (26,5,'a'), (27,9,'n'), (28,1,'d'), (29,107,'a');
-INSERT INTO t1 VALUES
-(110,8,'x'), (111,8,'y'), (112,5,'v'), (113,8,'z'), (114,8,'i'),
-(115,6,'j'), (116,7,'t'), (117,2,'b'), (118,5,'j'), (119,7,'w'),
-(125,3,'q'), (126,5,'o'), (127,9,'n'), (128,1,'e'), (129,107,'c');
-INSERT INTO t1 VALUES
-(210,8,'b'), (211,8,'c'), (212,5,'d'), (213,8,'e'), (214,8,'g'),
-(215,6,'f'), (216,7,'h'), (217,2,'i'), (218,5,'j'), (219,7,'k'),
-(225,3,'l'), (226,5,'m'), (227,9,'n'), (228,1,'o'), (229,107,'p');
-CREATE TABLE t2 (
-pk int NOT NULL, i int NOT NULL, v varchar(1) NOT NULL,
-PRIMARY KEY (pk), INDEX idx1(i), INDEX idx2(v,i)
-) COLLATE latin1_bin;
-INSERT INTO t2 VALUES
-(10,8,'v'), (11,8,'f'), (12,5,'v'), (13,8,'s'), (14,8,'a'),
-(15,6,'p'), (16,7,'z'), (17,2,'a'), (18,5,'h'), (19,7,'h'),
-(20,2,'v'), (21,9,'v'), (22,142,'b'), (23,3,'y'), (24,0,'v'),
-(25,3,'m'), (26,5,'b'), (27,9,'n'), (28,1,'d'), (29,107,'a');
-CREATE TABLE t3 (
-pk int NOT NULL, i int NOT NULL, v varchar(1) NOT NULL,
-PRIMARY KEY (pk), INDEX idx1(i), INDEX idx2(v,i)
-) COLLATE latin1_bin;
-INSERT INTO t3 VALUES
-(1,9,'x'), (2,5,'g'), (3,1,'o'), (4,0,'g'), (5,1,'v'),
-(6,190,'m'), (7,6,'x'), (8,3,'c'), (9,4,'z'), (10,3,'i'),
-(11,186,'x'), (12,1,'g'), (13,8,'q'), (14,226,'m'), (15,133,'p'),
-(16,6,'e'), (17,3,'t'), (18,8,'j'), (19,5,'h'), (20,7,'w');
-SET SESSION join_cache_level=1;
-EXPLAIN
-SELECT t2.v FROM t1, t2, t3
-WHERE t3.v <> t2.v AND t3.pk = t2.i AND t1.v = t3.v AND t1.pk*2<100
-GROUP BY t2.v ORDER BY t1.pk,t2.v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index idx1 idx2 7 NULL 20 Using index; Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY,idx2 PRIMARY 4 test.t2.i 1 Using where
-1 SIMPLE t1 ref idx2 idx2 3 test.t3.v 5 Using where
-SELECT t2.v FROM t1, t2, t3
-WHERE t3.v <> t2.v AND t3.pk = t2.i AND t1.v = t3.v AND t1.pk*2<100
-GROUP BY t2.v ORDER BY t1.pk,t2.v;
-v
-b
-h
-n
-v
-p
-EXPLAIN
-SELECT t2.v FROM t1, t2, t3
-WHERE t2.v <> t3.v AND t3.pk = t2.i AND t1.v = t3.v AND t1.pk*2<100
-GROUP BY t2.v ORDER BY t1.pk,t2.v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index idx1 idx2 7 NULL 20 Using index; Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY,idx2 PRIMARY 4 test.t2.i 1 Using where
-1 SIMPLE t1 ref idx2 idx2 3 test.t3.v 5 Using where
-SELECT t2.v FROM t1, t2, t3
-WHERE t2.v <> t3.v AND t3.pk = t2.i AND t1.v = t3.v AND t1.pk*2<100
-GROUP BY t2.v ORDER BY t1.pk,t2.v;
-v
-b
-h
-n
-v
-p
-SET SESSION join_cache_level=6;
-EXPLAIN
-SELECT t2.v FROM t1, t2, t3
-WHERE t3.v <> t2.v AND t3.pk = t2.i AND t1.v = t3.v AND t1.pk*2<100
-GROUP BY t2.v ORDER BY t1.pk,t2.v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index idx1 idx2 7 NULL 20 Using index; Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY,idx2 PRIMARY 4 test.t2.i 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t1 ref idx2 idx2 3 test.t3.v 5 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-SELECT t2.v FROM t1, t2, t3
-WHERE t3.v <> t2.v AND t3.pk = t2.i AND t1.v = t3.v AND t1.pk*2<100
-GROUP BY t2.v ORDER BY t1.pk,t2.v;
-v
-b
-h
-n
-v
-p
-EXPLAIN
-SELECT t2.v FROM t1, t2, t3
-WHERE t2.v <> t3.v AND t3.pk = t2.i AND t1.v = t3.v AND t1.pk*2<100
-GROUP BY t2.v ORDER BY t1.pk,t2.v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index idx1 idx2 7 NULL 20 Using index; Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY,idx2 PRIMARY 4 test.t2.i 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t1 ref idx2 idx2 3 test.t3.v 5 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-SELECT t2.v FROM t1, t2, t3
-WHERE t2.v <> t3.v AND t3.pk = t2.i AND t1.v = t3.v AND t1.pk*2<100
-GROUP BY t2.v ORDER BY t1.pk,t2.v;
-v
-b
-h
-n
-v
-p
-SET SESSION join_cache_level=4;
-EXPLAIN
-SELECT t2.v FROM t1, t2, t3
-WHERE t3.v <> t2.v AND t3.pk = t2.i AND t1.v = t3.v AND t1.pk*2<100
-GROUP BY t2.v ORDER BY t1.pk,t2.v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index idx1 idx2 7 NULL 20 Using index; Using temporary; Using filesort
-1 SIMPLE t3 hash_ALL PRIMARY,idx2 #hash#PRIMARY 4 test.t2.i 20 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE t1 hash_ALL idx2 #hash#idx2 3 test.t3.v 44 Using where; Using join buffer (incremental, BNLH join)
-SELECT t2.v FROM t1, t2, t3
-WHERE t3.v <> t2.v AND t3.pk = t2.i AND t1.v = t3.v AND t1.pk*2<100
-GROUP BY t2.v ORDER BY t1.pk,t2.v;
-v
-b
-h
-n
-v
-p
-EXPLAIN
-SELECT t2.v FROM t1, t2, t3
-WHERE t2.v <> t3.v AND t3.pk = t2.i AND t1.v = t3.v AND t1.pk*2<100
-GROUP BY t2.v ORDER BY t1.pk,t2.v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index idx1 idx2 7 NULL 20 Using index; Using temporary; Using filesort
-1 SIMPLE t3 hash_ALL PRIMARY,idx2 #hash#PRIMARY 4 test.t2.i 20 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE t1 hash_ALL idx2 #hash#idx2 3 test.t3.v 44 Using where; Using join buffer (incremental, BNLH join)
-SELECT t2.v FROM t1, t2, t3
-WHERE t2.v <> t3.v AND t3.pk = t2.i AND t1.v = t3.v AND t1.pk*2<100
-GROUP BY t2.v ORDER BY t1.pk,t2.v;
-v
-b
-h
-n
-v
-p
-DROP TABLE t1,t2,t3;
-SET SESSION join_cache_level=DEFAULT;
-#
-# Bug #668290: hash join with non-binary collations
-#
-CREATE TABLE t1 (
-i int DEFAULT NULL,
-cl varchar(10) CHARACTER SET latin1 DEFAULT NULL,
-cu varchar(10) CHARACTER SET utf8 DEFAULT NULL,
-INDEX cl (cl),
-INDEX cu (cu)
-);
-INSERT INTO t1 VALUES
-(650903552,'cmxffkpsel','z'), (535298048,'tvtjrcmxff','y'),
-(1626865664,'when','for'), (39649280,'rcvljitvtj','ercvljitvt'),
-(792068096,'ttercvljit','jttercvlji');
-INSERT INTO t1 SELECT * FROM t1;
-CREATE TABLE t2 (
-cu varchar(10) CHARACTER SET utf8 DEFAULT NULL,
-i int DEFAULT NULL,
-cl varchar(10) CHARACTER SET latin1 DEFAULT NULL,
-INDEX cu (cu),
-INDEX cl (cl)
-);
-INSERT INTO t2 VALUES
-('g',7,'like'), ('fujttercvl',6,'y'),
-('s',2,'e'), ('didn\'t',0,'v'),
- ('gvdrodpedk',8,'chogvdrodp'), ('jichogvdro',7,'will');
-EXPLAIN
-SELECT t2.i FROM t1,t2 WHERE t1.cu = t2.cl ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6
-1 SIMPLE t1 ref cu cu 33 func 2 Using where; Using index
-SELECT t2.i FROM t1,t2 WHERE t1.cu = t2.cl ;
-i
-6
-6
-SET SESSION join_cache_level = 4;
-EXPLAIN
-SELECT t2.i FROM t1,t2 WHERE t1.cu = t2.cl ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 6
-1 SIMPLE t1 hash_index cu #hash#cu:cu 33:33 func 10 Using where; Using index; Using join buffer (flat, BNLH join)
-SELECT t2.i FROM t1,t2 WHERE t1.cu = t2.cl ;
-i
-6
-6
-SET SESSION join_cache_level = DEFAULT;
-DROP TABLE t1,t2;
-#
-# Bug #669382: hash join using a ref with constant key parts
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES
-(9), (11), (7), (8), (4), (1), (12), (3), (5);
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-CREATE TABLE t2 (a int, b int, c int, INDEX idx (a,b));
-INSERT INTO t2 VALUES
-(8, 80, 800), (1, 10, 100), (1, 11, 101), (3, 30, 300),
-(1, 12, 102), (8, 81, 801), (7, 70, 700), (12, 120, 1200),
-(8, 82, 802), (1, 13, 103), (1, 14, 104), (3, 31, 301),
-(1, 15, 105), (8, 83, 803), (7, 71, 701);
-SET SESSION join_cache_level = 4;
-SET SESSION join_buffer_size = 256;
-EXPLAIN
-SELECT t1.a, t2.c FROM t1,t2 WHERE t1.a=t2.a AND t2.b=99;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL idx NULL NULL NULL 15 Using where
-1 SIMPLE t1 hash_ALL NULL #hash#$hj 5 test.t2.a 36 Using where; Using join buffer (flat, BNLH join)
-SELECT t1.a, t2.c FROM t1,t2 WHERE t1.a=t2.a AND t2.b=99;
-a c
-SET SESSION join_cache_level = DEFAULT;
-SET SESSION join_buffer_size = DEFAULT;
-DROP TABLE t1,t2;
-#
-# Bug #671901: hash join using a ref to a varchar field
-#
-CREATE TABLE t1 (
-v varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-i int DEFAULT NULL
-);
-INSERT INTO t1 VALUES
-('k',8), ('abcdefjh',-575340544), ('f',77), ('because', 2), ('f',-517472256),
-('abcdefjhj',5), ('z',7);
-CREATE TABLE t2 (
-v varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-i int DEFAULT NULL,
-INDEX idx (v)
-);
-INSERT INTO t2 VALUES
-('did',5), ('was',-1631322112), ('are',3), ('abcdefjhjk',3),
-('abcdefjhjk',4), ('tell',-824573952), ('t',0),('v',-1711013888),
-('abcdefjhjk',1015414784), ('or',4), ('now',0), ('abcdefjhjk',-32702464),
-('abcdefjhjk',4), ('time',1078394880), ('f',4), ('m',-1845559296),
-('ff', 5), ('abcdefjhjk',-1074397184);
-INSERT INTO t2 VALUES
-('dig',5), ('were',-1631322112), ('is',3), ('abcdefjhjl',3),
-('abcdefjh',4), ('told',-824573952), ('tt',0),('vv',-1711013888),
-('abcdefjhjj',1015414784), ('and',4), ('here',0), ('abcdefjhjm',-32702464),
-('abcdefjhji',4), ('space',1078394880), ('fs',4), ('mn',-1845559296),
-('fq', 5), ('abcdefjhjp',-1074397184);
-EXPLAIN
-SELECT t1.v,t2.i FROM t1,t2 WHERE t2.v = t1.v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7 Using where
-1 SIMPLE t2 ref idx idx 13 test.t1.v 3
-SELECT t1.v,t2.i FROM t1,t2 WHERE t2.v = t1.v;
-v i
-abcdefjh 4
-f 4
-f 4
-EXPLAIN
-SELECT t1.v,t2.i FROM t1,t2 WHERE t2.v = concat(t1.v, t1.v);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7
-1 SIMPLE t2 ref idx idx 13 func 3 Using index condition
-SELECT t1.v,t2.i FROM t1,t2 WHERE t2.v = concat(t1.v, t1.v);
-v i
-f 5
-f 5
-SET SESSION join_cache_level = 4;
-EXPLAIN
-SELECT t1.v,t2.i FROM t1,t2 WHERE t2.v = t1.v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7 Using where
-1 SIMPLE t2 hash_ALL idx #hash#idx 13 test.t1.v 36 Using join buffer (flat, BNLH join)
-SELECT t1.v,t2.i FROM t1,t2 WHERE t2.v = t1.v;
-v i
-f 4
-f 4
-abcdefjh 4
-EXPLAIN
-SELECT t1.v,t2.i FROM t1,t2 WHERE t2.v = concat(t1.v, t1.v);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7
-1 SIMPLE t2 hash_ALL idx #hash#idx 13 func 36 Using where; Using join buffer (flat, BNLH join)
-SELECT t1.v,t2.i FROM t1,t2 WHERE t2.v = concat(t1.v, t1.v);
-v i
-f 5
-f 5
-SET SESSION join_cache_level = DEFAULT;
-DROP TABLE t1,t2;
-# Bug #672497: 3 way join with tiny incremental join buffer with
-# and a ref access from the first table
-#
-CREATE TABLE t1 (
-pk int PRIMARY KEY,
-v varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-INDEX idx (v)
-);
-INSERT INTO t1 VALUES
-(1,'abcdefjhjk'), (2,'i'),(3,'abcdefjhjk'), (4,'well'), (5,'abcdefjhjk'),
-(6,'abcdefjhjk'), (7,'that');
-CREATE TABLE t2 (
-pk int PRIMARY KEY,
-i int DEFAULT NULL,
-v varchar(1000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-INDEX idx (v)
-);
-INSERT INTO t2 VALUES
-(1,6,'yes'), (2,NULL,'will'), (3,NULL,'o'), (4,NULL,'k'), (5,NULL,'she'),
-(6,-1450835968,'abcdefjhjkl'), (7,-975831040,'abcdefjhjkl'), (8,NULL,'z'),
-(10,-343932928,'t'),
-(11,6,'yes'), (12,NULL,'will'), (13,NULL,'o'), (14,NULL,'k'), (15,NULL,'she'),
-(16,-1450835968,'abcdefjhjkl'), (17,-975831040,'abcdefjhjkl'), (18,NULL,'z'),
-(19,-343932928,'t');
-INSERT INTO t2 VALUES
-(101,6,'yes'), (102,NULL,'will'), (103,NULL,'o'), (104,NULL,'k'), (105,NULL,'she'),
-(106,-1450835968,'abcdefjhjkl'), (107,-975831040,'abcdefjhjkl'), (108,NULL,'z'),
-(100,-343932928,'t'),
-(111,6,'yes'), (112,NULL,'will'), (113,NULL,'o'), (114,NULL,'k'), (115,NULL,'she'),
-(116,-1450835968,'abcdefjhjkl'), (117,-975831040,'abcdefjhjkl'), (118,NULL,'z'),
-(119,-343932928,'t');
-CREATE TABLE t3 (
-pk int NOT NULL PRIMARY KEY,
-i int,
-v varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
-INDEX idx (v(333))
-);
-INSERT INTO t3 VALUES
-(1,7,'abcdefjhjkl'),(2,6,'y'), (3,NULL,'to'),(4,7,'n'),(5,7,'look'), (6,NULL,'all'),
-(7,1443168256,'c'), (8,1427046400,'right'),
-(11,7,'abcdefjhjkl'), (12,6,'y'), (13,NULL,'to'), (14,7,'n'), (15,7,'look'),
-(16,NULL,'all'), (17,1443168256,'c'), (18,1427046400,'right'),
-(21,7,'abcdefjhjkl'), (22,6,'y'), (23,NULL,'to'), (24,7,'n'), (25,7,'look'),
-(26,NULL,'all'), (27,1443168256,'c'), (28,1427046400,'right'),
-(31,7,'abcdefjhjkl'), (32,6,'y'), (33,NULL,'to'), (34,7,'n'), (35,7,'look'),
-(36,NULL,'all'), (37,1443168256,'c'), (38,1427046400,'right');
-INSERT INTO t3 VALUES
-(101,7,'abcdefjhjkl'),(102,6,'y'), (103,NULL,'to'),(104,7,'n'),(105,7,'look'),
-(106,NULL,'all'), (107,1443168256,'c'), (108,1427046400,'right'),
-(111,7,'abcdefjhjkl'), (112,6,'y'), (113,NULL,'to'), (114,7,'n'), (115,7,'look'),
-(116,NULL,'all'), (117,1443168256,'c'), (118,1427046400,'right'),
-(121,7,'abcdefjhjkl'), (122,6,'y'), (123,NULL,'to'), (124,7,'n'), (125,7,'look'),
-(126,NULL,'all'), (127,1443168256,'c'), (128,1427046400,'right'),
-(131,7,'abcdefjhjkl'), (132,6,'y'), (133,NULL,'to'), (134,7,'n'), (135,7,'look'),
-(136,NULL,'all'), (137,1443168256,'c'), (138,1427046400,'right');
-SET SESSION join_buffer_size = 256;
-SET SESSION join_cache_level = 4;
-EXPLAIN
-SELECT t3.i FROM t1,t2,t3
-WHERE t1.v = t2.v AND t3.v = t1.v AND t2.i <> 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index idx idx 13 NULL 7 Using where; Using index
-1 SIMPLE t2 hash_ALL idx #hash#idx 1003 test.t1.v 36 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE t3 hash_ALL idx #hash#idx 1002 func 64 Using where; Using join buffer (incremental, BNLH join)
-SELECT t3.i FROM t1,t2,t3
-WHERE t1.v = t2.v AND t3.v = t1.v AND t2.i <> 0;
-i
-SET SESSION join_cache_level = DEFAULT;
-SET SESSION join_buffer_size = DEFAULT;
-DROP TABLE t1,t2,t3;
-#
-# Bug #672551: hash join over a long varchar field
-#
-CREATE TABLE t1 (
-pk int PRIMARY KEY,
-a varchar(512) CHARSET latin1 COLLATE latin1_bin DEFAULT NULL,
-INDEX idx (a)
-);
-INSERT INTO t1 VALUES (2, 'aa'), (5, 'ccccccc'), (3, 'bb');
-CREATE TABLE t2(
-pk int PRIMARY KEY,
-a varchar(512) CHARSET latin1 COLLATE latin1_bin DEFAULT NULL,
-INDEX idx (a)
-);
-INSERT INTO t2 VALUES
-(10, 'a'), (20, 'c'), (30, 'aa'), (4, 'bb'),
-(11, 'a'), (21, 'c'), (31, 'aa'), (41, 'cc'),
-(12, 'a'), (22, 'c'), (32, 'bb'), (42, 'aa');
-INSERT INTO t2 VALUES
-(110, 'a'), (120, 'c'), (130, 'aa'), (14, 'bb'),
-(111, 'a'), (121, 'c'), (131, 'aa'), (141, 'cc'),
-(112, 'a'), (122, 'c'), (132, 'bb'), (142, 'aa');
-SELECT * FROM t1,t2 WHERE t2.a=t1.a;
-pk a pk a
-2 aa 30 aa
-2 aa 31 aa
-2 aa 42 aa
-2 aa 130 aa
-2 aa 131 aa
-2 aa 142 aa
-3 bb 4 bb
-3 bb 32 bb
-3 bb 14 bb
-3 bb 132 bb
-SET SESSION join_cache_level = 4;
-EXPLAIN
-SELECT * FROM t1,t2 WHERE t2.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL idx NULL NULL NULL 3 Using where
-1 SIMPLE t2 hash_ALL idx #hash#idx 515 test.t1.a 24 Using join buffer (flat, BNLH join)
-SELECT * FROM t1,t2 WHERE t2.a=t1.a;
-pk a pk a
-2 aa 30 aa
-3 bb 4 bb
-2 aa 31 aa
-3 bb 32 bb
-2 aa 42 aa
-2 aa 130 aa
-3 bb 14 bb
-2 aa 131 aa
-3 bb 132 bb
-2 aa 142 aa
-SET SESSION join_cache_level = DEFAULT;
-DROP TABLE t1,t2;
-#
-# Bug #674431: nested outer join when join_cache_level is set to 7
-#
-CREATE TABLE t1 (a int, b varchar(32)) ;
-INSERT INTO t1 VALUES (5,'h'), (NULL,'j');
-CREATE TABLE t2 (a int, b varchar(32), c int) ;
-INSERT INTO t2 VALUES (5,'h',100), (NULL,'j',200);
-CREATE TABLE t3 (a int, b varchar(32), INDEX idx(b));
-INSERT INTO t3 VALUES (77,'h'), (88,'g');
-SET SESSION optimizer_switch = 'outer_join_with_cache=on';
-SET SESSION join_cache_level = 7;
-SELECT t3.a
-FROM t1 LEFT JOIN
-(t2 LEFT OUTER JOIN t3 ON t2.b = t3.b) ON t2.a = t1.b
-WHERE t3.a BETWEEN 3 AND 11 OR t1.a <= t2.c;
-a
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'h'
-Warning 1292 Truncated incorrect INTEGER value: 'j'
-SET SESSION optimizer_switch = 'outer_join_with_cache=off';
-SET SESSION join_cache_level = DEFAULT;
-DROP TABLE t1,t2,t3;
-#
-# Bug #52540: nested outer join when join_cache_level is set to 3
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (2);
-CREATE TABLE t2 (a varchar(10));
-INSERT INTO t2 VALUES ('f'),('x');
-CREATE TABLE t3 (pk int(11) PRIMARY KEY);
-INSERT INTO t3 VALUES (2);
-CREATE TABLE t4 (a varchar(10));
-SET SESSION optimizer_switch = 'outer_join_with_cache=on';
-SET SESSION join_cache_level = 3;
-SELECT *
-FROM t2 LEFT JOIN
-((t1 JOIN t3 ON t1.a = t3.pk) LEFT JOIN t4 ON 1) ON 1;
-a a pk a
-f 2 2 NULL
-x 2 2 NULL
-SET SESSION optimizer_switch = 'outer_join_with_cache=off';
-SET SESSION join_cache_level = DEFAULT;
-DROP TABLE t1,t2,t3,t4;
-#
-# Bug #674423: outer join with ON expression over only outer tables
-#
-CREATE TABLE t1 (a int) ;
-INSERT INTO t1 VALUES ('9');
-CREATE TABLE t2 (pk int, a int) ;
-INSERT INTO t2 VALUES ('9',NULL), ('1',NULL);
-SET SESSION optimizer_switch = 'outer_join_with_cache=on';
-SET SESSION join_cache_level = 0;
-EXPLAIN
-SELECT * FROM t2 LEFT JOIN t1 ON t2.a <> 0 WHERE t1.a <> 0 OR t2.pk < 9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1 Using where
-SELECT * FROM t2 LEFT JOIN t1 ON t2.a <> 0 WHERE t1.a <>0 OR t2.pk < 9;
-pk a a
-1 NULL NULL
-SET SESSION join_cache_level = 1;
-EXPLAIN
-SELECT * FROM t2 LEFT JOIN t1 ON t2.a <> 0 WHERE t1.a <> 0 OR t2.pk < 9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM t2 LEFT JOIN t1 ON t2.a <> 0 WHERE t1.a <> 0 OR t2.pk < 9;
-pk a a
-1 NULL NULL
-SET SESSION optimizer_switch = 'outer_join_with_cache=off';
-SET SESSION join_cache_level = DEFAULT;
-DROP TABLE t1,t2;
-#
-# Bug #675095: nested outer join using join buffer
-#
-CREATE TABLE t1 (pk int, a1 int) ;
-INSERT IGNORE INTO t1 VALUES (2,NULL), (8,0);
-CREATE TABLE t2 (pk int, a2 int, c2 int, d2 int) ;
-INSERT IGNORE INTO t2 VALUES (9,0,0,2), (1,0,0,7);
-CREATE TABLE t3 (pk int, a3 int, c3 int, d3 int) ;
-INSERT IGNORE INTO t3 VALUES (9,0,0,2), (1,0,0,7);
-CREATE TABLE t4 (pk int, a4 int, INDEX idx(a4)) ;
-INSERT IGNORE INTO t4 VALUES (2,NULL), (8,0);
-INSERT IGNORE INTO t4 VALUES (12,10), (18,20);
-INSERT IGNORE INTO t4 VALUES (22,11), (28,21);
-INSERT IGNORE INTO t4 VALUES (32,12), (38,22);
-CREATE TABLE t5 (pk int, a5 int) ;
-INSERT IGNORE INTO t5 VALUES (2,0), (8,0);
-SET SESSION optimizer_switch = 'outer_join_with_cache=on';
-SET SESSION join_cache_level = 0;
-EXPLAIN EXTENDED
-SELECT *
-FROM ((t1 LEFT JOIN (t2 JOIN t3 ON t2.c2 = t3.a3) ON t1.pk = t2.d2)
-LEFT JOIN t4 ON t1.a1 = t4.a4) LEFT JOIN t5 ON t3.a3 = t5.a5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t4 ref idx idx 5 test.t1.a1 2 100.00 Using where
-1 SIMPLE t5 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`a1` AS `a1`,`test`.`t2`.`pk` AS `pk`,`test`.`t2`.`a2` AS `a2`,`test`.`t2`.`c2` AS `c2`,`test`.`t2`.`d2` AS `d2`,`test`.`t3`.`pk` AS `pk`,`test`.`t3`.`a3` AS `a3`,`test`.`t3`.`c3` AS `c3`,`test`.`t3`.`d3` AS `d3`,`test`.`t4`.`pk` AS `pk`,`test`.`t4`.`a4` AS `a4`,`test`.`t5`.`pk` AS `pk`,`test`.`t5`.`a5` AS `a5` from `test`.`t1` left join (`test`.`t2` join `test`.`t3`) on(`test`.`t2`.`d2` = `test`.`t1`.`pk` and `test`.`t3`.`a3` = `test`.`t2`.`c2`) left join `test`.`t4` on(`test`.`t4`.`a4` = `test`.`t1`.`a1` and `test`.`t1`.`a1` is not null) left join `test`.`t5` on(`test`.`t5`.`a5` = `test`.`t3`.`a3`) where 1
-SELECT *
-FROM ((t1 LEFT JOIN (t2 JOIN t3 ON t2.c2 = t3.a3) ON t1.pk = t2.d2)
-LEFT JOIN t4 ON t1.a1 = t4.a4) LEFT JOIN t5 ON t3.a3 = t5.a5;
-pk a1 pk a2 c2 d2 pk a3 c3 d3 pk a4 pk a5
-2 NULL 9 0 0 2 9 0 0 2 NULL NULL 2 0
-2 NULL 9 0 0 2 9 0 0 2 NULL NULL 8 0
-2 NULL 9 0 0 2 1 0 0 7 NULL NULL 2 0
-2 NULL 9 0 0 2 1 0 0 7 NULL NULL 8 0
-8 0 NULL NULL NULL NULL NULL NULL NULL NULL 8 0 NULL NULL
-SET SESSION join_cache_level = 2;
-EXPLAIN EXTENDED
-SELECT *
-FROM ((t1 LEFT JOIN (t2 JOIN t3 ON t2.c2 = t3.a3) ON t1.pk = t2.d2)
-LEFT JOIN t4 ON t1.a1 = t4.a4) LEFT JOIN t5 ON t3.a3 = t5.a5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t4 ref idx idx 5 test.t1.a1 2 100.00 Using where
-1 SIMPLE t5 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`a1` AS `a1`,`test`.`t2`.`pk` AS `pk`,`test`.`t2`.`a2` AS `a2`,`test`.`t2`.`c2` AS `c2`,`test`.`t2`.`d2` AS `d2`,`test`.`t3`.`pk` AS `pk`,`test`.`t3`.`a3` AS `a3`,`test`.`t3`.`c3` AS `c3`,`test`.`t3`.`d3` AS `d3`,`test`.`t4`.`pk` AS `pk`,`test`.`t4`.`a4` AS `a4`,`test`.`t5`.`pk` AS `pk`,`test`.`t5`.`a5` AS `a5` from `test`.`t1` left join (`test`.`t2` join `test`.`t3`) on(`test`.`t2`.`d2` = `test`.`t1`.`pk` and `test`.`t3`.`a3` = `test`.`t2`.`c2`) left join `test`.`t4` on(`test`.`t4`.`a4` = `test`.`t1`.`a1` and `test`.`t1`.`a1` is not null) left join `test`.`t5` on(`test`.`t5`.`a5` = `test`.`t3`.`a3`) where 1
-SELECT *
-FROM ((t1 LEFT JOIN (t2 JOIN t3 ON t2.c2 = t3.a3) ON t1.pk = t2.d2)
-LEFT JOIN t4 ON t1.a1 = t4.a4) LEFT JOIN t5 ON t3.a3 = t5.a5;
-pk a1 pk a2 c2 d2 pk a3 c3 d3 pk a4 pk a5
-2 NULL 9 0 0 2 9 0 0 2 NULL NULL 2 0
-2 NULL 9 0 0 2 1 0 0 7 NULL NULL 2 0
-2 NULL 9 0 0 2 9 0 0 2 NULL NULL 8 0
-2 NULL 9 0 0 2 1 0 0 7 NULL NULL 8 0
-8 0 NULL NULL NULL NULL NULL NULL NULL NULL 8 0 NULL NULL
-SET SESSION join_cache_level = 1;
-EXPLAIN EXTENDED
-SELECT *
-FROM ((t1 LEFT JOIN (t2 JOIN t3 ON t2.c2 = t3.a3) ON t1.pk = t2.d2)
-LEFT JOIN t4 ON t1.a1 = t4.a4) LEFT JOIN t5 ON t3.a3 = t5.a5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t4 ref idx idx 5 test.t1.a1 2 100.00 Using where
-1 SIMPLE t5 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`a1` AS `a1`,`test`.`t2`.`pk` AS `pk`,`test`.`t2`.`a2` AS `a2`,`test`.`t2`.`c2` AS `c2`,`test`.`t2`.`d2` AS `d2`,`test`.`t3`.`pk` AS `pk`,`test`.`t3`.`a3` AS `a3`,`test`.`t3`.`c3` AS `c3`,`test`.`t3`.`d3` AS `d3`,`test`.`t4`.`pk` AS `pk`,`test`.`t4`.`a4` AS `a4`,`test`.`t5`.`pk` AS `pk`,`test`.`t5`.`a5` AS `a5` from `test`.`t1` left join (`test`.`t2` join `test`.`t3`) on(`test`.`t2`.`d2` = `test`.`t1`.`pk` and `test`.`t3`.`a3` = `test`.`t2`.`c2`) left join `test`.`t4` on(`test`.`t4`.`a4` = `test`.`t1`.`a1` and `test`.`t1`.`a1` is not null) left join `test`.`t5` on(`test`.`t5`.`a5` = `test`.`t3`.`a3`) where 1
-SELECT *
-FROM ((t1 LEFT JOIN (t2 JOIN t3 ON t2.c2 = t3.a3) ON t1.pk = t2.d2)
-LEFT JOIN t4 ON t1.a1 = t4.a4) LEFT JOIN t5 ON t3.a3 = t5.a5;
-pk a1 pk a2 c2 d2 pk a3 c3 d3 pk a4 pk a5
-2 NULL 9 0 0 2 9 0 0 2 NULL NULL 2 0
-2 NULL 9 0 0 2 1 0 0 7 NULL NULL 2 0
-2 NULL 9 0 0 2 9 0 0 2 NULL NULL 8 0
-2 NULL 9 0 0 2 1 0 0 7 NULL NULL 8 0
-8 0 NULL NULL NULL NULL NULL NULL NULL NULL 8 0 NULL NULL
-SET SESSION optimizer_switch = 'outer_join_with_cache=off';
-SET SESSION join_cache_level = DEFAULT;
-DROP TABLE t1,t2,t3,t4,t5;
-#
-# Bug #675516: nested outer join with 3 tables in the nest
-# using BNL + BNLH
-#
-CREATE TABLE t1 (a1 int, b1 int, c1 int) ;
-INSERT INTO t1 VALUES (7,8,0), (6,4,0);
-CREATE TABLE t2 (a2 int) ;
-INSERT INTO t2 VALUES (5);
-CREATE TABLE t3 (a3 int, b3 int, c3 int, PRIMARY KEY (b3)) ;
-INSERT INTO t3 VALUES (2,5,0);
-CREATE TABLE t4 (a4 int, b4 int, c4 int) ;
-INSERT INTO t4 VALUES (7,8,0);
-SET SESSION optimizer_switch = 'outer_join_with_cache=on';
-SET SESSION join_cache_level = 4;
-EXPLAIN
-SELECT * FROM
-t1 LEFT JOIN
-((t2 JOIN t3 ON t2.a2 = t3.b3) JOIN t4 ON t4.b4 <> 0) ON t1.c1 = t3.c3
-WHERE t3.a3 IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t3 hash_ALL PRIMARY #hash#$hj 5 test.t1.c1 1 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 5 test.t3.b3 1 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-SELECT * FROM
-t1 LEFT JOIN
-((t2 JOIN t3 ON t2.a2 = t3.b3) JOIN t4 ON t4.b4 <> 0) ON t1.c1 = t3.c3
-WHERE t3.a3 IS NULL;
-a1 b1 c1 a2 a3 b3 c3 a4 b4 c4
-SET SESSION join_cache_level = 0;
-EXPLAIN
-SELECT * FROM
-t1 LEFT JOIN
-((t2 JOIN t3 ON t2.a2 = t3.b3) JOIN t4 ON t4.b4 <> 0) ON t1.c1 = t3.c3
-WHERE t3.a3 IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.a2 1 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 1 Using where
-SELECT * FROM
-t1 LEFT JOIN
-((t2 JOIN t3 ON t2.a2 = t3.b3) JOIN t4 ON t4.b4 <> 0) ON t1.c1 = t3.c3
-WHERE t3.a3 IS NULL;
-a1 b1 c1 a2 a3 b3 c3 a4 b4 c4
-SET SESSION optimizer_switch = 'outer_join_with_cache=off';
-SET SESSION join_cache_level = DEFAULT;
-DROP TABLE t1,t2,t3,t4;
-#
-# Bug #660963: nested outer join with join_cache_level set to 5
-#
-CREATE TABLE t1 (a1 int) ;
-INSERT INTO t1 VALUES (0),(0);
-CREATE TABLE t2 (a2 int, b2 int, PRIMARY KEY (a2)) ;
-INSERT INTO t2 VALUES (2,1);
-CREATE TABLE t3 (a3 int, b3 int, PRIMARY KEY (a3)) ;
-INSERT INTO t3 VALUES (2,1);
-SET SESSION optimizer_switch = 'outer_join_with_cache=on';
-SET SESSION join_cache_level = 6;
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2 JOIN t3 ON t3.a3 = t2.a2 ON t3.b3 <> 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 1 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.a2 1 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-SELECT * FROM t1 LEFT JOIN t2 JOIN t3 ON t3.a3 = t2.a2 ON t3.b3 <> 0;
-a1 a2 b2 a3 b3
-0 2 1 2 1
-0 2 1 2 1
-SET SESSION join_cache_level = 5;
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2 JOIN t3 ON t3.a3 = t2.a2 ON t3.b3 <> 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 1 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 hash_ALL PRIMARY #hash#PRIMARY 4 test.t2.a2 1 Using where; Using join buffer (incremental, BNLH join)
-SELECT * FROM t1 LEFT JOIN t2 JOIN t3 ON t3.a3 = t2.a2 ON t3.b3 <> 0;
-a1 a2 b2 a3 b3
-0 2 1 2 1
-0 2 1 2 1
-SET SESSION optimizer_switch = 'outer_join_with_cache=off';
-SET SESSION join_cache_level = DEFAULT;
-DROP TABLE t1,t2,t3;
-#
-# Bug #675922: incremental buffer for BKA with access from previous
-# buffers from non-nullable columns whose values may be null
-#
-CREATE TABLE t1 (a1 varchar(32)) ;
-INSERT INTO t1 VALUES ('s'),('k');
-CREATE TABLE t2 (a2 int PRIMARY KEY, b2 varchar(32)) ;
-INSERT INTO t2 VALUES (7,'s');
-CREATE TABLE t3 (a3 int PRIMARY KEY, b3 varchar(32)) ;
-INSERT INTO t3 VALUES (7,'s');
-CREATE TABLE t4 (a4 int) ;
-INSERT INTO t4 VALUES (9);
-CREATE TABLE t5(a5 int PRIMARY KEY, b5 int) ;
-INSERT INTO t5 VALUES (7,0);
-SET SESSION optimizer_switch = 'outer_join_with_cache=on';
-SET SESSION join_cache_level = 0;
-EXPLAIN
-SELECT t4.a4, t5.b5
-FROM ((t1 LEFT JOIN (t2 JOIN t3 ON t2.a2 = t3.a3) ON t2.b2 = t1.a1)
-LEFT JOIN t4 ON t4.a4 <> 0) LEFT JOIN t5 ON t5.a5 = t2.a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 1 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.a2 1 Using index
-1 SIMPLE t4 ALL NULL NULL NULL NULL 1 Using where
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t2.a2 1 Using where
-SELECT t4.a4, t5.b5
-FROM ((t1 LEFT JOIN (t2 JOIN t3 ON t2.a2 = t3.a3) ON t2.b2 = t1.a1)
-LEFT JOIN t4 ON t4.a4 <> 0) LEFT JOIN t5 ON t5.a5 = t2.a2;
-a4 b5
-9 0
-9 NULL
-SET SESSION join_cache_level = 6;
-EXPLAIN
-SELECT t4.a4, t5.b5
-FROM ((t1 LEFT JOIN (t2 JOIN t3 ON t2.a2 = t3.a3) ON t2.b2 = t1.a1)
-LEFT JOIN t4 ON t4.a4 <> 0) LEFT JOIN t5 ON t5.a5 = t2.a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 1 Using where
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.a2 1 Using index
-1 SIMPLE t4 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t2.a2 1 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-SELECT t4.a4, t5.b5
-FROM ((t1 LEFT JOIN (t2 JOIN t3 ON t2.a2 = t3.a3) ON t2.b2 = t1.a1)
-LEFT JOIN t4 ON t4.a4 <> 0) LEFT JOIN t5 ON t5.a5 = t2.a2;
-a4 b5
-9 0
-9 NULL
-SET SESSION optimizer_switch = 'outer_join_with_cache=off';
-SET SESSION join_cache_level = DEFAULT;
-DROP TABLE t1,t2,t3,t4,t5;
-#
-# Bug #670380: hash join for non-binary collation
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, a varchar(32));
-CREATE TABLE t2 (pk int PRIMARY KEY, a varchar(32), INDEX idx(a));
-INSERT INTO t1 VALUES
-(10,'AAA'), (20,'BBBB'), (30,'Cc'), (40,'DD'), (50,'ee');
-INSERT INTO t2 VALUES
-(1,'Bbbb'), (2,'BBB'), (3,'bbbb'), (4,'AaA'), (5,'CC'),
-(6,'cC'), (7,'CCC'), (8,'AAA'), (9,'bBbB'), (10,'aaaa'),
-(11,'a'), (12,'dd'), (13,'EE'), (14,'ee'), (15,'D'),
-(101,'Bbbb'), (102,'BBB'), (103,'bbbb'), (104,'AaA'), (105,'CC'),
-(106,'cC'), (107,'CCC'), (108,'AAA'), (109,'bBbB'), (110,'aaaa'),
-(111,'a'), (112,'dd'), (113,'EE'), (114,'ee'), (115,'D');
-SET SESSION join_cache_level = 4;
-EXPLAIN
-SELECT * FROM t1,t2 WHERE t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 Using where
-1 SIMPLE t2 hash_ALL idx #hash#idx 35 test.t1.a 30 Using join buffer (flat, BNLH join)
-SELECT * FROM t1,t2 WHERE t1.a=t2.a;
-pk a pk a
-20 BBBB 1 Bbbb
-20 BBBB 3 bbbb
-10 AAA 4 AaA
-30 Cc 5 CC
-30 Cc 6 cC
-10 AAA 8 AAA
-20 BBBB 9 bBbB
-40 DD 12 dd
-50 ee 13 EE
-50 ee 14 ee
-20 BBBB 101 Bbbb
-20 BBBB 103 bbbb
-10 AAA 104 AaA
-30 Cc 105 CC
-30 Cc 106 cC
-10 AAA 108 AAA
-20 BBBB 109 bBbB
-40 DD 112 dd
-50 ee 113 EE
-50 ee 114 ee
-SET SESSION join_cache_level = DEFAULT;
-DROP TABLE t1,t2;
-#
-# Bug #694092: incorrect detection of index only pushdown conditions
-#
-CREATE TABLE t1 (
-f1 varchar(10), f3 int(11), PRIMARY KEY (f3)
-);
-INSERT INTO t1 VALUES ('y',1),('or',5);
-CREATE TABLE t2 (
-f3 int(11), f2 varchar(1024), f4 varchar(10), PRIMARY KEY (f3)
-);
-INSERT INTO t2 VALUES (6,'RPOYT','y'),(10,'JINQE','m');
-SET SESSION join_cache_level = 1;
-SET SESSION optimizer_switch = 'index_condition_pushdown=off';
-EXPLAIN
-SELECT * FROM t1,t2
-WHERE t1.f1 = t2.f4 AND (t1.f3 = 1 AND t2.f3 = 4 OR t1.f3 = 2 AND t2.f3 = 6);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 2 Using where; Rowid-ordered scan
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 2 Using where; Rowid-ordered scan; Using join buffer (flat, BNL join)
-SELECT * FROM t1,t2
-WHERE t1.f1 = t2.f4 AND (t1.f3 = 1 AND t2.f3 = 4 OR t1.f3 = 2 AND t2.f3 = 6);
-f1 f3 f3 f2 f4
-SET SESSION optimizer_switch = 'index_condition_pushdown=on';
-EXPLAIN
-SELECT * FROM t1,t2
-WHERE t1.f1 = t2.f4 AND (t1.f3 = 1 AND t2.f3 = 4 OR t1.f3 = 2 AND t2.f3 = 6);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 2 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 2 Using index condition; Using where; Rowid-ordered scan; Using join buffer (flat, BNL join)
-SELECT * FROM t1,t2
-WHERE t1.f1 = t2.f4 AND (t1.f3 = 1 AND t2.f3 = 4 OR t1.f3 = 2 AND t2.f3 = 6);
-f1 f3 f3 f2 f4
-SET SESSION join_cache_level = DEFAULT;
-SET SESSION optimizer_switch = @local_join_cache_test_optimizer_switch_default;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (f1 int, f2 varchar(10), KEY (f1), KEY (f2)) ;
-INSERT INTO t1 VALUES
-(4,'e'), (891879424,'l'), (-243400704,'ectlyqupbk'), (1851981824,'of'),
-(-1495203840,'you'), (4,'no'), (-1436942336,'c'), (891420672,'DQQYO'),
-(608698368,'qergldqmec'), (1,'x');
-CREATE TABLE t2 (f3 varchar(64), KEY (f3));
-INSERT INTO t2 VALUES
-('d'), ('UALLN'), ('d'), ('z'), ('r'), ('YVAKV'), ('d'), ('TNGZK'), ('e'),
-('xucupaxdyythsgiw'), ('why'), ('ttugkxucupaxdyyt'), ('l'), ('LHTKN'),
-('d'), ('o'), ('v'), ('KGLCJ'), ('your');
-SET SESSION optimizer_switch='index_merge_sort_intersection=off';
-SET SESSION optimizer_switch = 'index_condition_pushdown=off';
-EXPLAIN SELECT * FROM t1,t2
-WHERE t2.f3 = t1.f2 AND t1.f1 IN (9, 0, 100) ORDER BY t1.f2 LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range f1,f2 f2 13 NULL 10 Using where
-1 SIMPLE t2 ref f3 f3 67 test.t1.f2 2 Using where; Using index
-SELECT * FROM t1,t2
-WHERE t2.f3 = t1.f2 AND t1.f1 IN (9, 0 ,100) ORDER BY t1.f2 LIMIT 1;
-f1 f2 f3
-SET SESSION optimizer_switch = @local_join_cache_test_optimizer_switch_default;
-SET SESSION optimizer_switch = 'index_condition_pushdown=on';
-EXPLAIN SELECT * FROM t1,t2
-WHERE t2.f3 = t1.f2 AND t1.f1 IN (9, 0 ,100) ORDER BY t1.f2 LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range f1,f2 f2 13 NULL 10 Using where
-1 SIMPLE t2 ref f3 f3 67 test.t1.f2 2 Using where; Using index
-SELECT * FROM t1,t2
-WHERE t2.f3 = t1.f2 AND t1.f1 IN (9, 0 ,100) ORDER BY t1.f2 LIMIT 1;
-f1 f2 f3
-SET SESSION optimizer_switch = @local_join_cache_test_optimizer_switch_default;
-DROP TABLE t1,t2;
-#
-# Bug #694443: hash join using IS NULL the an equi-join condition
-#
-CREATE TABLE t1 (a int PRIMARY KEY);
-INSERT INTO t1 VALUES
-(7), (4), (9), (1), (3), (8), (2);
-CREATE TABLE t2 (a int, b int, INDEX idx (a));
-INSERT INTO t2 VALUES
-(NULL,10), (4,80), (7,70), (6,11), (7,90), (NULL,40),
-(4,77), (4,50), (NULL,41), (7,99), (7,88), (8,12),
-(1,21), (4,90), (7,91), (8,22), (6,92), (NULL,42),
-(2,78), (2,51), (1,43), (5,97), (5,89);
-SET SESSION join_cache_level = 1;
-EXPLAIN
-SELECT * FROM t1,t2 WHERE t1.a < 3 and t2.a IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-1 SIMPLE t2 ref idx idx 5 const 4 Using index condition
-SELECT * FROM t1,t2 WHERE t1.a < 3 and t2.a IS NULL;
-a a b
-1 NULL 10
-1 NULL 40
-1 NULL 41
-1 NULL 42
-2 NULL 10
-2 NULL 40
-2 NULL 41
-2 NULL 42
-SET SESSION join_cache_level = 4;
-EXPLAIN
-SELECT * FROM t1,t2 WHERE t1.a < 3 and t2.a IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-1 SIMPLE t2 hash_range idx #hash#idx:idx 5:5 const 4 Using index condition; Using where; Rowid-ordered scan; Using join buffer (flat, BNLH join)
-SELECT * FROM t1,t2 WHERE t1.a < 3 and t2.a IS NULL;
-a a b
-1 NULL 10
-2 NULL 10
-1 NULL 40
-2 NULL 40
-1 NULL 41
-2 NULL 41
-1 NULL 42
-2 NULL 42
-SET SESSION join_cache_level = DEFAULT;
-DROP TABLE t1,t2;
-#
-# Bug #697557: hash join on a varchar field
-#
-CREATE TABLE t1 ( f1 varchar(10) , f2 int(11) , KEY (f1));
-INSERT INTO t1 VALUES ('r',1), ('m',2);
-CREATE TABLE t2 ( f1 varchar(10) , f2 int(11) , KEY (f1));
-INSERT INTO t2 VALUES
-('hgtofubn',1), ('GDOXZ',91), ('n',2), ('fggxgalh',88),
-('hgtofu',1), ('GDO',101), ('n',3), ('fggxga',55),
-('hgtofu',3), ('GDO',33), ('nn',3), ('fggxgarrr',77),
-('jgtofu',3), ('JDO',33), ('mn',3), ('jggxgarrr',77),
-('igtofu',3), ('IDO',33), ('ln',3), ('iggxgarrr',77);
-SET SESSION join_cache_level=3;
-EXPLAIN
-SELECT * FROM t1,t2 WHERE t2.f1 = t1.f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL f1 NULL NULL NULL 2 Using where
-1 SIMPLE t2 hash_ALL f1 #hash#f1 13 test.t1.f1 20 Using join buffer (flat, BNLH join)
-SELECT * FROM t1,t2 WHERE t2.f1 = t1.f1;
-f1 f2 f1 f2
-SET SESSION join_cache_level = DEFAULT;
-DROP TABLE t1,t2;
-#
-# Bug #707827: hash join on varchar column with NULLs
-#
-CREATE TABLE t1 (v varchar(1));
-INSERT INTO t1 VALUES ('o'), ('u');
-CREATE TABLE t2 (a int, v varchar(1), INDEX idx (v)) ;
-INSERT INTO t2 VALUES
-(8,NULL), (10,'b'), (5,'k'), (4,NULL),
-(1,NULL), (11,'u'), (7,NULL), (2,'d'),
-(18,'u'), (11,'b'), (15,'k'), (12,'d'),
-(18,'x'), (11,'y'), (15,'l'), (12,'e');
-SET SESSION join_buffer_size = 256;
-SET SESSION join_cache_level = 4;
-EXPLAIN
-SELECT a FROM t1,t2 WHERE t2.v = t1.v ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t2 hash_ALL idx #hash#idx 4 test.t1.v 16 Using join buffer (flat, BNLH join)
-SELECT a FROM t1,t2 WHERE t2.v = t1.v ;
-a
-11
-18
-SET SESSION join_cache_level = 1;
-EXPLAIN
-SELECT a FROM t1,t2 WHERE t2.v = t1.v ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t2 ref idx idx 4 test.t1.v 2
-SELECT a FROM t1,t2 WHERE t2.v = t1.v ;
-a
-11
-18
-SET SESSION join_cache_level = DEFAULT;
-SET SESSION join_buffer_size = DEFAULT;
-DROP TABLE t1,t2;
-#
-# Bug #802860: crash on join cache + derived + duplicate_weedout
-#
-SET SESSION optimizer_switch=
-'semijoin=on,materialization=off,firstmatch=off,loosescan=off,derived_with_keys=on';
-CREATE TABLE t1 (a int) ;
-INSERT IGNORE INTO t1 VALUES (0), (1), (0);
-CREATE TABLE t2 (a int) ;
-INSERT IGNORE INTO t2 VALUES (0), (3), (0), (2);
-SET SESSION join_cache_level = 0;
-EXPLAIN
-SELECT * FROM (SELECT DISTINCT * FROM t1) t
-WHERE t.a IN (SELECT t2.a FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 Using where; Start temporary
-1 PRIMARY <derived2> ref key0 key0 5 test.t2.a 2 End temporary
-2 DERIVED t1 ALL NULL NULL NULL NULL 3 Using temporary
-SELECT * FROM (SELECT DISTINCT * FROM t1) t
-WHERE t.a IN (SELECT t2.a FROM t2);
-a
-0
-SET SESSION join_cache_level = 1;
-EXPLAIN
-SELECT * FROM (SELECT DISTINCT * FROM t1) t
-WHERE t.a IN (SELECT t2.a FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-2 DERIVED t1 ALL NULL NULL NULL NULL 3 Using temporary
-SELECT * FROM (SELECT DISTINCT * FROM t1) t
-WHERE t.a IN (SELECT t2.a FROM t2);
-a
-0
-SET SESSION join_cache_level = DEFAULT;
-DROP TABLE t1, t2;
-#
-# Bug #887479: join_cache_level=3 + semijoin=on
-#
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (3914,17), (3710,5), (3888,20);
-CREATE TABLE t2 (c int, KEY (c));
-INSERT INTO t2 VALUES (27), (17), (33), (20), (3), (7), (18), (2);
-SET @tmp887479_optimizer_switch=@@optimizer_switch;
-SET SESSION optimizer_switch='semijoin=on';
-SET SESSION optimizer_switch='semijoin_with_cache=on';
-SET SESSION join_cache_level=1;
-EXPLAIN
-SELECT * FROM t1 WHERE (t1.b) IN (SELECT c FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY t2 ref c c 5 test.t1.b 2 Using index; Start temporary; End temporary
-SELECT * FROM t1 WHERE (t1.b) IN (SELECT c FROM t2);
-a b
-3914 17
-3888 20
-SET SESSION join_cache_level=3;
-EXPLAIN
-SELECT * FROM t1 WHERE (t1.b) IN (SELECT c FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY t2 hash_index c #hash#c:c 5:5 test.t1.b 8 Using index; Start temporary; End temporary; Using join buffer (flat, BNLH join)
-SELECT * FROM t1 WHERE (t1.b) IN (SELECT c FROM t2);
-a b
-3914 17
-3888 20
-SET SESSION join_cache_level = DEFAULT;
-SET optimizer_switch=@tmp887479_optimizer_switch;
-DROP TABLE t1,t2;
-#
-# Bug #899777: join_cache_level=4 + semijoin=on
-#
-CREATE TABLE t1 (a int, b int, c int, UNIQUE INDEX idx (a));
-INSERT INTO t1 VALUES (1,8,6), (2,2,8);
-CREATE TABLE t2 (a int, b int, c int, UNIQUE INDEX idx (a));
-INSERT INTO t2 VALUES (1,8,6), (2,2,8);
-CREATE TABLE t3 (a int, b int, c int, UNIQUE INDEX idx (a));
-INSERT INTO t3 VALUES (1,8,6), (2,2,8);
-CREATE TABLE t4 (a int, b int, c int, UNIQUE INDEX idx (a));
-INSERT INTO t4 VALUES (1,8,6), (2,2,8);
-SET @tmp_optimizer_switch=@@optimizer_switch;
-SET SESSION optimizer_switch='semijoin=on';
-SET SESSION optimizer_switch='semijoin_with_cache=on';
-SET SESSION join_cache_level=1;
-EXPLAIN
-SELECT t1.* FROM t1,t2
-WHERE (t1.b,t2.b) IN (SELECT t3.b,t4.b FROM t3,t4 WHERE t4.c=t3.b)
-AND t1.a = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 const idx idx 5 const 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where; Start temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t4 ALL NULL NULL NULL NULL 2 Using where; End temporary; Using join buffer (flat, BNL join)
-SELECT t1.* FROM t1,t2
-WHERE (t1.b,t2.b) IN (SELECT t3.b,t4.b FROM t3,t4 WHERE t4.c=t3.b)
-AND t1.a = 1;
-a b c
-1 8 6
-SET SESSION join_cache_level=4;
-EXPLAIN
-SELECT t1.* FROM t1,t2
-WHERE (t1.b,t2.b) IN (SELECT t3.b,t4.b FROM t3,t4 WHERE t4.c=t3.b)
-AND t1.a = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 const idx idx 5 const 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY t3 hash_ALL NULL #hash#$hj 5 const 2 Using where; Start temporary; Using join buffer (flat, BNLH join)
-1 PRIMARY t4 hash_ALL NULL #hash#$hj 10 const,test.t2.b 2 Using where; End temporary; Using join buffer (incremental, BNLH join)
-SELECT t1.* FROM t1,t2
-WHERE (t1.b,t2.b) IN (SELECT t3.b,t4.b FROM t3,t4 WHERE t4.c=t3.b)
-AND t1.a = 1;
-a b c
-1 8 6
-SET SESSION join_cache_level = DEFAULT;
-SET optimizer_switch=@tmp_optimizer_switch;
-DROP TABLE t1,t2,t3,t4;
-#
-# Bug #899509: an attempt to use hash join with join_cache_level=0
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (8), (7);
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES (8), (7);
-CREATE TABLE t3 (a int);
-INSERT INTO t3 VALUES (8), (7);
-SET @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch=default;
-set @@optimizer_switch='semijoin_with_cache=off';
-set @@optimizer_switch='outer_join_with_cache=off';
-SET optimizer_switch='derived_merge=off,derived_with_keys=off';
-SET join_cache_level=0;
-EXPLAIN
-SELECT * FROM (SELECT t1.* FROM t1, t2) t WHERE t.a IN (SELECT * FROM t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 4
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 2
-2 DERIVED t2 ALL NULL NULL NULL NULL 2
-SELECT * FROM (SELECT t1.* FROM t1, t2) t WHERE t.a IN (SELECT * FROM t3);
-a
-8
-8
-7
-7
-SELECT * FROM ( SELECT ta.* FROM t1 AS ta, t1 ) tb WHERE a IN ( SELECT * FROM t1 );
-a
-8
-8
-7
-7
-SET SESSION join_cache_level = DEFAULT;
-SET optimizer_switch=@tmp_optimizer_switch;
-DROP TABLE t1,t2,t3;
-#
-# Bug #900469: semijoin + BNLH + ORDER BY
-#
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (8,10);
-CREATE TABLE t2 (c int, d int);
-INSERT INTO t2 VALUES (8,10);
-INSERT INTO t2 VALUES (9,11);
-CREATE TABLE t3 (c int, d int);
-INSERT INTO t3 VALUES (8,10);
-INSERT INTO t3 VALUES (9,11);
-SET @tmp_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch='semijoin_with_cache=on';
-SET join_cache_level=1;
-EXPLAIN
-SELECT * FROM t1,t2 WHERE b IN (SELECT d FROM t3 WHERE c <= t2.c) ORDER BY a,d;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 Using temporary; Using filesort
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-SELECT * FROM t1,t2 WHERE b IN (SELECT d FROM t3 WHERE c <= t2.c) ORDER BY a,d;
-a b c d
-8 10 8 10
-8 10 9 11
-SET join_cache_level=3;
-EXPLAIN
-SELECT * FROM t1,t2 WHERE b IN (SELECT d FROM t3 WHERE c <= t2.c);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY t3 hash_ALL NULL #hash#$hj 5 const 2 Using where; Start temporary; End temporary; Using join buffer (flat, BNLH join)
-SELECT * FROM t1,t2 WHERE b IN (SELECT d FROM t3 WHERE c <= t2.c);
-a b c d
-8 10 8 10
-8 10 9 11
-SET join_cache_level=3;
-EXPLAIN
-SELECT * FROM t1,t2 WHERE b IN (SELECT d FROM t3 WHERE c <= t2.c) ORDER BY a,d;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 Using temporary; Using filesort
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY t3 hash_ALL NULL #hash#$hj 5 const 2 Using where; Start temporary; End temporary; Using join buffer (flat, BNLH join)
-SELECT * FROM t1,t2 WHERE b IN (SELECT d FROM t3 WHERE c <= t2.c) ORDER BY a,d;
-a b c d
-8 10 8 10
-8 10 9 11
-SET SESSION join_cache_level = DEFAULT;
-SET optimizer_switch=@tmp_optimizer_switch;
-DROP TABLE t1,t2,t3;
-#
-# Bug #901478: semijoin + ORDER BY + join_cache_level=4|6
-#
-CREATE TABLE t1 (a char(1));
-INSERT INTO t1 VALUES ('x');
-CREATE TABLE t2 (a int, b int, c int, KEY(a), KEY(b), KEY(c));
-INSERT INTO t2 VALUES
-(9,1,0), (7,2,8), (2,3,5), (4,2,9), (8,3,8), (3,4,1), (5,5,4);
-CREATE TABLE t3 (a CHAR(1));
-INSERT INTO t3 VALUES ('x');
-CREATE TABLE t4 (a int, b int, c int, KEY(b), KEY(c));
-INSERT INTO t4 VALUES
-(9,1,0), (7,2,8), (2,3,5), (4,2,9), (8,3,8), (3,4,1), (5,5,4);
-INSERT INTO t4 VALUES
-(19,11,10), (17,12,18), (12,13,15), (14,12,19),
-(18,13,18), (13,14,11), (15,15,14);
-SET @tmp_optimizer_switch=@@optimizer_switch;
-SET @@optimizer_switch='semijoin=on';
-SET @@optimizer_switch='firstmatch=off';
-SET @@optimizer_switch='mrr=off';
-SET @@optimizer_switch='semijoin_with_cache=off';
-set join_cache_level=1;
-EXPLAIN
-SELECT * FROM t1,t2
-WHERE t2.c IN (SELECT c FROM t3,t4 WHERE t4.a < 10) AND
-t2.a BETWEEN 4 and 5
-ORDER BY t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t3 system NULL NULL NULL NULL 1
-1 PRIMARY t2 range a,c a 5 NULL 1 Using index condition; Using where; Using filesort
-1 PRIMARY t4 ref c c 5 test.t2.c 2 Using where; Start temporary; End temporary
-SELECT * FROM t1,t2
-WHERE t2.c IN (SELECT c FROM t3,t4 WHERE t4.a < 10) AND
-t2.a BETWEEN 4 and 5
-ORDER BY t2.b;
-a a b c
-x 4 2 9
-x 5 5 4
-set join_cache_level=4;
-EXPLAIN
-SELECT * FROM t1,t2
-WHERE t2.c IN (SELECT c FROM t3,t4 WHERE t4.a < 10) AND
-t2.a BETWEEN 4 and 5
-ORDER BY t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 Using temporary; Using filesort
-1 PRIMARY t3 system NULL NULL NULL NULL 1
-1 PRIMARY t2 range a,c a 5 NULL 1 Using index condition; Using where
-1 PRIMARY t4 ref c c 5 test.t2.c 2 Using where; Start temporary; End temporary
-SELECT * FROM t1,t2
-WHERE t2.c IN (SELECT c FROM t3,t4 WHERE t4.a < 10) AND
-t2.a BETWEEN 4 and 5
-ORDER BY t2.b;
-a a b c
-x 4 2 9
-x 5 5 4
-SET @@optimizer_switch='semijoin_with_cache=on';
-set join_cache_level=6;
-EXPLAIN
-SELECT * FROM t1,t2
-WHERE t2.c IN (SELECT c FROM t3,t4 WHERE t4.a < 10) AND
-t2.a BETWEEN 4 and 5
-ORDER BY t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 Using temporary; Using filesort
-1 PRIMARY t3 system NULL NULL NULL NULL 1
-1 PRIMARY t2 range a,c a 5 NULL 1 Using index condition; Using where
-1 PRIMARY t4 ref c c 5 test.t2.c 2 Using where; Start temporary; End temporary
-SELECT * FROM t1,t2
-WHERE t2.c IN (SELECT c FROM t3,t4 WHERE t4.a < 10) AND
-t2.a BETWEEN 4 and 5
-ORDER BY t2.b;
-a a b c
-x 4 2 9
-x 5 5 4
-SET join_cache_level = DEFAULT;
-SET optimizer_switch=@tmp_optimizer_switch;
-DROP TABLE t1,t2,t3,t4;
-#
-# Bug#53305 Duplicate weedout + join buffer (join cache --level=7,8)
-#
-create table t1 (uid int, fid int, index(uid));
-insert into t1 values
-(1,1), (1,2), (1,3), (1,4),
-(2,5), (2,6), (2,7), (2,8),
-(3,1), (3,2), (3,9);
-create table t2 (uid int primary key, name varchar(128), index(name));
-insert into t2 values
-(1, "A"), (2, "B"), (3, "C"), (4, "D"), (5, "E"),
-(6, "F"), (7, "G"), (8, "H"), (9, "I");
-create table t3 (uid int, fid int, index(uid));
-insert into t3 values
-(1,1), (1,2), (1,3),(1,4),
-(2,5), (2,6), (2,7), (2,8),
-(3,1), (3,2), (3,9);
-set @tmp_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch='semijoin=on';
-set optimizer_switch='materialization=off';
-set optimizer_switch='loosescan=off,firstmatch=off';
-set optimizer_switch='mrr_sort_keys=off';
-set join_cache_level=7;
-create table t4 (uid int primary key, name varchar(128), index(name));
-insert into t4 values
-(1, "A"), (2, "B"), (3, "C"), (4, "D"), (5, "E"),
-(6, "F"), (7, "G"), (8, "H"), (9, "I");
-explain select name from t2, t1
-where t1.uid in (select t4.uid from t4, t3 where t3.uid=1 and t4.uid=t3.fid)
-and t2.uid=t1.fid;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ref uid uid 5 const 4 Using where; Start temporary
-1 PRIMARY t4 eq_ref PRIMARY PRIMARY 4 test.t3.fid 1 Using index
-1 PRIMARY t1 ALL uid NULL NULL NULL 11 Using where; End temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.t1.fid 1 Using join buffer (flat, BKAH join); Rowid-ordered scan
-select name from t2, t1
-where t1.uid in (select t4.uid from t4, t3 where t3.uid=1 and t4.uid=t3.fid)
-and t2.uid=t1.fid;
-name
-A
-A
-B
-B
-C
-D
-E
-F
-G
-H
-I
-set join_cache_level = default;
-set optimizer_switch=@tmp_optimizer_switch;
-drop table t1,t2,t3,t4;
-#
-# Bug#50358 - semijoin execution of subquery with outerjoin
-# emplying join buffer
-#
-CREATE TABLE t1 (i int);
-CREATE TABLE t2 (i int);
-CREATE TABLE t3 (i int);
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (6);
-INSERT INTO t3 VALUES (1), (2);
-set @tmp_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch='semijoin=on';
-set optimizer_switch='materialization=on';
-set join_cache_level=0;
-EXPLAIN
-SELECT * FROM t1 WHERE t1.i IN
-(SELECT t3.i FROM t3 LEFT JOIN t2 ON t2.i=t3.i);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 2
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 1 Using where
-SELECT * FROM t1 WHERE t1.i IN
-(SELECT t3.i FROM t3 LEFT JOIN t2 ON t2.i=t3.i);
-i
-1
-2
-set join_cache_level=2;
-EXPLAIN
-SELECT * FROM t1 WHERE t1.i IN
-(SELECT t3.i FROM t3 LEFT JOIN t2 ON t2.i=t3.i);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 2
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM t1 WHERE t1.i IN
-(SELECT t3.i FROM t3 LEFT JOIN t2 ON t2.i=t3.i);
-i
-1
-2
-set join_cache_level = default;
-set optimizer_switch=@tmp_optimizer_switch;
-DROP TABLE t1,t2,t3;
-#
-# Bug #12546542: missing row with semijoin=off + join cache
-# (LP bug #922971)
-#
-CREATE TABLE t1 (a varchar(1024));
-INSERT INTO t1 VALUES ('v'), ('we');
-CREATE TABLE t2 (
-a varchar(1024) CHARACTER SET utf8 DEFAULT NULL, b int, c int
-);
-INSERT INTO t2 VALUES ('we',4,NULL), ('v',1305673728,6);
-CREATE TABLE t3 (b int, c int);
-INSERT INTO t3 VALUES (4,4);
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin=off';
-set optimizer_switch='materialization=off';
-set join_cache_level=0;
-EXPLAIN
-SELECT * FROM t1
-WHERE a IN (SELECT t2.a FROM t2 LEFT JOIN t3 ON t2.b = t3.b
-WHERE t2.c < 10 OR t3.c > 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 1 Using where
-SELECT * FROM t1
-WHERE a IN (SELECT t2.a FROM t2 LEFT JOIN t3 ON t2.b = t3.b
-WHERE t2.c < 10 OR t3.c > 1);
-a
-v
-we
-set join_cache_level=2;
-EXPLAIN
-SELECT * FROM t1
-WHERE a IN (SELECT t2.a FROM t2 LEFT JOIN t3 ON t2.b = t3.b
-WHERE t2.c < 10 OR t3.c > 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM t1
-WHERE a IN (SELECT t2.a FROM t2 LEFT JOIN t3 ON t2.b = t3.b
-WHERE t2.c < 10 OR t3.c > 1);
-a
-v
-we
-set join_cache_level = default;
-set optimizer_switch=@tmp_optimizer_switch;
-DROP TABLE t1,t2,t3;
-#
-# lp:925985 LEFT JOIN with optimize_join_buffer_size=off +
-# join_buffer_size > join_buffer_space_limit
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (5), (3);
-CREATE TABLE t2 (a int, b int);
-INSERT INTO t2 VALUES
-(3,30), (1,10), (7,70), (2,20),
-(3,31), (1,11), (7,71), (2,21),
-(3,32), (1,12), (7,72), (2,22);
-CREATE TABLE t3 (b int, c int);
-INSERT INTO t3 VALUES (32, 302), (42,400), (30,300);
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='optimize_join_buffer_size=off';
-set join_buffer_space_limit=4096;
-set join_buffer_size=4096*2;
-set join_cache_level=2;
-set optimizer_switch='outer_join_with_cache=on';
-EXPLAIN
-SELECT * FROM t1, t2 LEFT JOIN t3 ON t2.b=t3.b WHERE t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL NULL NULL NULL NULL 12 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 3 Using where
-SELECT * FROM t1, t2 LEFT JOIN t3 ON t2.b=t3.b WHERE t1.a=t2.a;
-a a b b c
-3 3 30 30 300
-3 3 31 NULL NULL
-3 3 32 32 302
-set join_buffer_space_limit=default;
-set join_buffer_size=default;
-set join_cache_level=default;
-set optimizer_switch=@tmp_optimizer_switch;
-DROP TABLE t1,t2,t3;
-#
-# Bug #1058071: LEFT JOIN using blobs
-# (MDEV-564) when join buffer size is small
-#
-CREATE TABLE t1 (
-col269 decimal(31,10) unsigned DEFAULT NULL,
-col280 geometry DEFAULT NULL,
-col281 tinyint(1) DEFAULT NULL,
-col282 time NOT NULL,
-col284 datetime DEFAULT NULL,
-col286 date DEFAULT NULL,
-col287 datetime DEFAULT NULL,
-col288 decimal(30,29) DEFAULT NULL,
-col291 time DEFAULT NULL,
-col292 time DEFAULT NULL
-) ENGINE=Aria;
-INSERT INTO t1 VALUES
-(0.0,PointFromText('POINT(9 0)'),0,'11:24:05','2013-04-14 21:30:28',NULL,'2011-12-20 06:00:34',9.9,'13:04:39',NULL),
-(0.0,NULL,127,'05:43:12','2012-09-05 06:15:27','2027-01-01','2011-10-29 10:48:29',0.0,'06:24:05','11:33:37'),
-(0.0,NULL,127,'12:54:41','2013-01-12 11:32:58','2011-11-03','2013-01-03 02:00:34',00,'11:54:15','20:19:15'),
-(0.0,PointFromText('POINT(9 0)'),0,'19:48:07','2012-07-16 15:45:25','2012-03-25','2013-09-07 17:21:52',0.5,'17:36:54','21:24:19'),
-(0.0,PointFromText('POINT(9 0)'),0,'03:43:48','2012-09-28 00:00:00','2012-06-26','2011-11-16 05:01:09',00,'01:25:42','19:30:06'),
-(0.0,LineStringFromText('LINESTRING(0 0,9 9,0 0,9 0,0 0)'),127,'11:33:21','2012-03-31 10:29:22','2012-10-10','2012-04-21 19:21:06',NULL,'05:13:22','09:48:34'),
-(NULL,PointFromText('POINT(9 0)'),127,'00:00:00','0000-00-00','2012-04-04 21:26:12','2013-03-04',0.0,'12:54:30',NULL),
-(NULL,PointFromText('POINT(9 0)'),1,'00:00:00','2013-05-01 22:37:49','2013-06-26','2012-09-22 17:31:03',0.0,'08:09:57','11:15:36');
-Warnings:
-Note 1265 Data truncated for column 'col286' at row 7
-CREATE TABLE t2 (b int) ENGINE=Aria;
-INSERT INTO t2 VALUES (NULL);
-CREATE TABLE t3 (c int) ENGINE=Aria;
-INSERT INTO t3 VALUES (NULL);
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch = 'outer_join_with_cache=on,join_cache_incremental=on';
-set join_buffer_size=128;
-EXPLAIN
-SELECT 1 AS c FROM t1 NATURAL LEFT JOIN t2 LEFT OUTER JOIN t3 ON 1
-GROUP BY elt(t1.col282,1,t1.col280);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-SELECT 1 AS c FROM t1 NATURAL LEFT JOIN t2 LEFT OUTER JOIN t3 ON 1
-GROUP BY elt(t1.col282,1,t1.col280);
-c
-1
-set join_buffer_size=default;
-set optimizer_switch=@tmp_optimizer_switch;
-DROP table t1,t2,t3;
-set join_buffer_size= default;
-set @@optimizer_switch=@save_optimizer_switch;
-#
-# MDEV-5293: outer join, join buffering, and order by - invalid query plan
-#
-create table t0 (a int primary key) engine=myisam;
-insert into t0 values (1);
-create table t1(a int) engine=myisam;
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-alter table t1 add b int;
-create table t2 like t1;
-insert into t2 select * from t1;
-#The following must use "Using temporary; Using filesort" and not just "Using filesort":
-explain select * from t0,t1 left join t2 on t1.b=t2.b order by t0.a, t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 system NULL NULL NULL NULL 1 Using temporary; Using filesort
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10
-1 SIMPLE t2 ALL NULL NULL NULL NULL 10 Using where; Using join buffer (flat, BNL join)
-drop table t0,t1,t2;
-# MDEV-6292: huge performance degradation for a sequence
-# of LEFT JOIN operations when using join buffer
-#
-CREATE TABLE t1 (
-id int(11) NOT NULL AUTO_INCREMENT,
-col1 varchar(255) NOT NULL DEFAULT '',
-PRIMARY KEY (id)
-) ENGINE=INNODB;
-CREATE TABLE t2 (
-id int(11) NOT NULL AUTO_INCREMENT,
-parent_id smallint(3) NOT NULL DEFAULT '0',
-col2 varchar(25) NOT NULL DEFAULT '',
-PRIMARY KEY (id)
-) ENGINE=INNODB;
-set join_buffer_size=8192;
-set join_cache_level=0;
-set @init_time:=now();
-SELECT t.*
-FROM
-t1 t
-LEFT JOIN t2 c1 ON c1.parent_id = t.id AND c1.col2 = "val"
- LEFT JOIN t2 c2 ON c2.parent_id = t.id AND c2.col2 = "val"
- LEFT JOIN t2 c3 ON c3.parent_id = t.id AND c3.col2 = "val"
- LEFT JOIN t2 c4 ON c4.parent_id = t.id AND c4.col2 = "val"
- LEFT JOIN t2 c5 ON c5.parent_id = t.id AND c5.col2 = "val"
- LEFT JOIN t2 c6 ON c6.parent_id = t.id AND c6.col2 = "val"
- LEFT JOIN t2 c7 ON c7.parent_id = t.id AND c7.col2 = "val"
- LEFT JOIN t2 c8 ON c8.parent_id = t.id AND c8.col2 = "val"
- LEFT JOIN t2 c9 ON c9.parent_id = t.id AND c9.col2 = "val"
- LEFT JOIN t2 c10 ON c10.parent_id = t.id AND c10.col2 = "val"
- LEFT JOIN t2 c11 ON c11.parent_id = t.id AND c11.col2 = "val"
- LEFT JOIN t2 c12 ON c12.parent_id = t.id AND c12.col2 = "val"
- LEFT JOIN t2 c13 ON c13.parent_id = t.id AND c13.col2 = "val"
- LEFT JOIN t2 c14 ON c14.parent_id = t.id AND c14.col2 = "val"
- LEFT JOIN t2 c15 ON c15.parent_id = t.id AND c15.col2 = "val"
- LEFT JOIN t2 c16 ON c16.parent_id = t.id AND c16.col2 = "val"
- LEFT JOIN t2 c17 ON c17.parent_id = t.id AND c17.col2 = "val"
- LEFT JOIN t2 c18 ON c18.parent_id = t.id AND c18.col2 = "val"
- LEFT JOIN t2 c19 ON c19.parent_id = t.id AND c19.col2 = "val"
- LEFT JOIN t2 c20 ON c20.parent_id = t.id AND c20.col2 = "val"
- LEFT JOIN t2 c21 ON c21.parent_id = t.id AND c21.col2 = "val"
- LEFT JOIN t2 c22 ON c22.parent_id = t.id AND c22.col2 = "val"
- LEFT JOIN t2 c23 ON c23.parent_id = t.id AND c23.col2 = "val"
- LEFT JOIN t2 c24 ON c24.parent_id = t.id AND c24.col2 = "val"
- LEFT JOIN t2 c25 ON c25.parent_id = t.id AND c25.col2 = "val"
- LEFT JOIN t2 c26 ON c26.parent_id = t.id AND c26.col2 = "val"
- LEFT JOIN t2 c27 ON c27.parent_id = t.id AND c27.col2 = "val"
-ORDER BY
-col1;
-id col1
-select timestampdiff(second, @init_time, now()) <= 5;
-timestampdiff(second, @init_time, now()) <= 5
-1
-set join_cache_level=2;
-set @init_time:=now();
-SELECT t.*
-FROM
-t1 t
-LEFT JOIN t2 c1 ON c1.parent_id = t.id AND c1.col2 = "val"
- LEFT JOIN t2 c2 ON c2.parent_id = t.id AND c2.col2 = "val"
- LEFT JOIN t2 c3 ON c3.parent_id = t.id AND c3.col2 = "val"
- LEFT JOIN t2 c4 ON c4.parent_id = t.id AND c4.col2 = "val"
- LEFT JOIN t2 c5 ON c5.parent_id = t.id AND c5.col2 = "val"
- LEFT JOIN t2 c6 ON c6.parent_id = t.id AND c6.col2 = "val"
- LEFT JOIN t2 c7 ON c7.parent_id = t.id AND c7.col2 = "val"
- LEFT JOIN t2 c8 ON c8.parent_id = t.id AND c8.col2 = "val"
- LEFT JOIN t2 c9 ON c9.parent_id = t.id AND c9.col2 = "val"
- LEFT JOIN t2 c10 ON c10.parent_id = t.id AND c10.col2 = "val"
- LEFT JOIN t2 c11 ON c11.parent_id = t.id AND c11.col2 = "val"
- LEFT JOIN t2 c12 ON c12.parent_id = t.id AND c12.col2 = "val"
- LEFT JOIN t2 c13 ON c13.parent_id = t.id AND c13.col2 = "val"
- LEFT JOIN t2 c14 ON c14.parent_id = t.id AND c14.col2 = "val"
- LEFT JOIN t2 c15 ON c15.parent_id = t.id AND c15.col2 = "val"
- LEFT JOIN t2 c16 ON c16.parent_id = t.id AND c16.col2 = "val"
- LEFT JOIN t2 c17 ON c17.parent_id = t.id AND c17.col2 = "val"
- LEFT JOIN t2 c18 ON c18.parent_id = t.id AND c18.col2 = "val"
- LEFT JOIN t2 c19 ON c19.parent_id = t.id AND c19.col2 = "val"
- LEFT JOIN t2 c20 ON c20.parent_id = t.id AND c20.col2 = "val"
- LEFT JOIN t2 c21 ON c21.parent_id = t.id AND c21.col2 = "val"
- LEFT JOIN t2 c22 ON c22.parent_id = t.id AND c22.col2 = "val"
- LEFT JOIN t2 c23 ON c23.parent_id = t.id AND c23.col2 = "val"
- LEFT JOIN t2 c24 ON c24.parent_id = t.id AND c24.col2 = "val"
- LEFT JOIN t2 c25 ON c25.parent_id = t.id AND c25.col2 = "val"
- LEFT JOIN t2 c26 ON c26.parent_id = t.id AND c26.col2 = "val"
- LEFT JOIN t2 c27 ON c27.parent_id = t.id AND c27.col2 = "val"
-ORDER BY
-col1;
-id col1
-select timestampdiff(second, @init_time, now()) <= 5;
-timestampdiff(second, @init_time, now()) <= 5
-1
-EXPLAIN
-SELECT t.*
-FROM
-t1 t
-LEFT JOIN t2 c1 ON c1.parent_id = t.id AND c1.col2 = "val"
- LEFT JOIN t2 c2 ON c2.parent_id = t.id AND c2.col2 = "val"
- LEFT JOIN t2 c3 ON c3.parent_id = t.id AND c3.col2 = "val"
- LEFT JOIN t2 c4 ON c4.parent_id = t.id AND c4.col2 = "val"
- LEFT JOIN t2 c5 ON c5.parent_id = t.id AND c5.col2 = "val"
- LEFT JOIN t2 c6 ON c6.parent_id = t.id AND c6.col2 = "val"
- LEFT JOIN t2 c7 ON c7.parent_id = t.id AND c7.col2 = "val"
- LEFT JOIN t2 c8 ON c8.parent_id = t.id AND c8.col2 = "val"
- LEFT JOIN t2 c9 ON c9.parent_id = t.id AND c9.col2 = "val"
- LEFT JOIN t2 c10 ON c10.parent_id = t.id AND c10.col2 = "val"
- LEFT JOIN t2 c11 ON c11.parent_id = t.id AND c11.col2 = "val"
- LEFT JOIN t2 c12 ON c12.parent_id = t.id AND c12.col2 = "val"
- LEFT JOIN t2 c13 ON c13.parent_id = t.id AND c13.col2 = "val"
- LEFT JOIN t2 c14 ON c14.parent_id = t.id AND c14.col2 = "val"
- LEFT JOIN t2 c15 ON c15.parent_id = t.id AND c15.col2 = "val"
- LEFT JOIN t2 c16 ON c16.parent_id = t.id AND c16.col2 = "val"
- LEFT JOIN t2 c17 ON c17.parent_id = t.id AND c17.col2 = "val"
- LEFT JOIN t2 c18 ON c18.parent_id = t.id AND c18.col2 = "val"
- LEFT JOIN t2 c19 ON c19.parent_id = t.id AND c19.col2 = "val"
- LEFT JOIN t2 c20 ON c20.parent_id = t.id AND c20.col2 = "val"
- LEFT JOIN t2 c21 ON c21.parent_id = t.id AND c21.col2 = "val"
- LEFT JOIN t2 c22 ON c22.parent_id = t.id AND c22.col2 = "val"
- LEFT JOIN t2 c23 ON c23.parent_id = t.id AND c23.col2 = "val"
- LEFT JOIN t2 c24 ON c24.parent_id = t.id AND c24.col2 = "val"
- LEFT JOIN t2 c25 ON c25.parent_id = t.id AND c25.col2 = "val"
- LEFT JOIN t2 c26 ON c26.parent_id = t.id AND c26.col2 = "val"
- LEFT JOIN t2 c27 ON c27.parent_id = t.id AND c27.col2 = "val"
-ORDER BY
-col1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t ALL NULL NULL NULL NULL 1 Using temporary; Using filesort
-1 SIMPLE c1 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE c2 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c3 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c4 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c5 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c6 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c7 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c8 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c9 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c10 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c11 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c12 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c13 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c14 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c15 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c16 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c17 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c18 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c19 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c20 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c21 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c22 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c23 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c24 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c25 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c26 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE c27 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-set join_buffer_size=default;
-set join_cache_level = default;
-DROP TABLE t1,t2;
-#
-# MDEV-14960: BNLH used for materialized semi-join
-#
-CREATE TABLE t1 (i1 int);
-CREATE TABLE t2 (e1 int);
-CREATE TABLE t4 (e1 int);
-CREATE TABLE t5 (e1 int);
-INSERT INTO t1 VALUES
-(1),(2),(3),(4),(5),(6),(7),(8);
-INSERT INTO t1 SELECT i1+8 FROM t1;
-INSERT INTO t1 SELECT i1+16 FROM t1;
-INSERT INTO t1 SELECT i1+32 FROM t1;
-INSERT INTO t1 SELECT i1+64 FROM t1;
-INSERT INTO t2 SELECT * FROM t1;
-INSERT INTO t4 SELECT * FROM t1;
-INSERT INTO t5 SELECT * FROM t1;
-set @save_optimizer_switch= @@optimizer_switch;
-SET join_cache_level = 6;
-SET join_buffer_size=4096;
-SET join_buffer_space_limit=4096;
-SET optimizer_switch = 'join_cache_hashed=on,optimize_join_buffer_size=on';
-EXPLAIN SELECT * FROM t1
-WHERE
-i1 < 10 AND
-i1 IN
-(SELECT i1 FROM
-(SELECT (t4.e1) i1 FROM t4
-LEFT JOIN t5 ON t4.e1 = t5.e1
-LEFT JOIN (SELECT e1 FROM t2 ) AS d ON t4.e1 = d.e1) a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 128 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t4 ALL NULL NULL NULL NULL 128
-2 MATERIALIZED t5 hash_ALL NULL #hash#$hj 5 test.t4.e1 128 Using where; Using join buffer (flat, BNLH join)
-2 MATERIALIZED t2 hash_ALL NULL #hash#$hj 5 test.t4.e1 128 Using where; Using join buffer (incremental, BNLH join)
-SELECT * FROM t1
-WHERE
-i1 < 10 AND
-i1 IN
-(SELECT i1 FROM
-(SELECT (t4.e1) i1 FROM t4
-LEFT JOIN t5 ON t4.e1 = t5.e1
-LEFT JOIN (SELECT e1 FROM t2 ) AS d ON t4.e1 = d.e1) a);
-i1
-1
-2
-3
-4
-5
-6
-7
-8
-9
-SET join_cache_level = default;
-SET join_buffer_size = default;
-SET join_buffer_space_limit= default;
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t4,t5,t2;
-#
-# MDEV-5123 Remove duplicated conditions pushed both to join_tab->select_cond and join_tab->cache_select->cond for blocked joins.
-#
-set join_cache_level=default;
-set expensive_subquery_limit=0;
-create table t1 (c1 int);
-create table t2 (c2 int);
-create table t3 (c3 int);
-insert into t1 values (1), (2);
-insert into t2 values (1), (2);
-insert into t3 values (2);
-explain
-select count(*) from t1 straight_join t2
-where c1 = c2-0 and c2 <= (select max(c3) from t3 where c3 = 2 and @counter:=@counter+1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-2 UNCACHEABLE SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-set @counter=0;
-select count(*) from t1 straight_join t2
-where c1 = c2-0 and c2 <= (select max(c3) from t3 where c3 = 2 and @counter:=@counter+1);
-count(*)
-2
-select @counter;
-@counter
-2
-explain
-select count(*) from t1 straight_join t2
-where c1 = c2-0 and
-c2 <= (select max(c3) from t3 where c3 = 2 and @counter:=@counter+1) and
-c2 / 2 = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-2 UNCACHEABLE SUBQUERY t3 system NULL NULL NULL NULL 1
-set @counter=0;
-select count(*) from t1 straight_join t2
-where c1 = c2-0 and
-c2 <= (select max(c3) from t3 where c3 = 2 and @counter:=@counter+1) and
-c2 / 2 = 1;
-count(*)
-1
-select @counter;
-@counter
-2
-drop table t1,t2,t3;
-set expensive_subquery_limit=default;
-#
-# MDEV-6071: EXPLAIN chooses to use join buffer while execution turns it down
-#
-create table t1 (a int);
-insert into t1 values
-(7), (9), (1), (4), (2), (3), (5), (8), (11), (6), (10);
-explain select count(*) from t1, t1 t2 where t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11
-1 SIMPLE t2 ALL NULL NULL NULL NULL 11 Using where; Using join buffer (flat, BNL join)
-set join_buffer_space_limit=1024*8;
-select @@join_buffer_space_limit;
-@@join_buffer_space_limit
-8192
-select @@join_buffer_size;
-@@join_buffer_size
-262144
-explain select count(*) from t1, t1 t2 where t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 11
-1 SIMPLE t2 ALL NULL NULL NULL NULL 11 Using where
-set join_buffer_space_limit=default;
-drop table t1;
-#
-# MDEV-6687: Assertion `0' failed in Protocol::end_statement on query
-#
-SET join_cache_level = 3;
-# The following should have
-# - table order PROFILING,user,
-# - table user accessed with hash_ALL:
-explain
-SELECT * FROM INFORMATION_SCHEMA.PROFILING, mysql.user WHERE password_expired = PAGE_FAULTS_MINOR;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE PROFILING ALL NULL NULL NULL NULL NULL Using where
-1 SIMPLE user hash_ALL NULL #hash#$hj 1 information_schema.PROFILING.PAGE_FAULTS_MINOR 4 Using where; Using join buffer (flat, BNLH join)
-set join_cache_level=default;
-create table t1 (c1 date not null, key (c1)) engine=innodb;
-insert t1 values ('2017-12-27');
-create table t2 (pk int, f1 int, f2 int);
-insert t2 values (4,1,1), (6,1,1);
-set join_buffer_size = 222222208;
-select f2 from t2,t1 where f2 = 0;
-f2
-drop table t1, t2;
-set join_buffer_size = default;
-set @@optimizer_switch=@save_optimizer_switch;
diff --git a/mysql-test/r/join_crash.result b/mysql-test/r/join_crash.result
deleted file mode 100644
index f1a3b4956a8..00000000000
--- a/mysql-test/r/join_crash.result
+++ /dev/null
@@ -1,103 +0,0 @@
-DROP TABLE IF EXISTS t1,t2,t3,t4;
-CREATE TABLE t1 (
-project_id int(11) NOT NULL auto_increment,
-project_row_lock int(11) NOT NULL default '0',
-project_name varchar(80) NOT NULL default '',
-client_ptr int(11) NOT NULL default '0',
-project_contact_ptr int(11) default NULL,
-client_contact_ptr int(11) default NULL,
-billing_contact_ptr int(11) default NULL,
-comments mediumtext,
-PRIMARY KEY (project_id),
-UNIQUE KEY project (client_ptr,project_name)
-) ENGINE=MyISAM PACK_KEYS=1;
-INSERT INTO t1 VALUES (1,0,'Rejected Time',1,NULL,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (209,0,'MDGRAD Proposal/Investigation',97,NULL,NULL,NULL,'');
-INSERT INTO t1 VALUES (208,0,'Font 9 Design',84,NULL,NULL,NULL,'');
-INSERT INTO t1 VALUES (207,0,'Web Based Order Processing',95,NULL,NULL,NULL,'');
-INSERT INTO t1 VALUES (205,0,'Mac Screen Saver',95,NULL,NULL,NULL,'');
-INSERT INTO t1 VALUES (206,0,'Web Site',96,NULL,NULL,NULL,'');
-INSERT INTO t1 VALUES (204,0,'Magnafire Glue',94,NULL,NULL,NULL,'');
-INSERT INTO t1 VALUES (203,0,'Print Bid',93,NULL,NULL,NULL,'');
-INSERT INTO t1 VALUES (202,0,'EPOC Port',92,NULL,NULL,NULL,'');
-INSERT INTO t1 VALUES (201,0,'TravelMate',88,NULL,NULL,NULL,'');
-CREATE TABLE t2 (
-period_id int(11) NOT NULL auto_increment,
-period_type enum('user_table','client_table','role_table','member_table','project_table') default NULL,
-period_key int(11) default NULL,
-start_date datetime default NULL,
-end_date datetime default NULL,
-work_load int(11) default NULL,
-PRIMARY KEY (period_id),
-KEY period_index (period_type,period_key),
-KEY date_index (start_date,end_date)
-) ENGINE=MyISAM PACK_KEYS=1;
-INSERT INTO t2 VALUES (1,'user_table',98,'2000-01-01 00:00:00',NULL,NULL);
-INSERT INTO t2 VALUES (2,'user_table',99,'2000-01-01 00:00:00',NULL,NULL);
-INSERT INTO t2 VALUES (3,'user_table',100,'2000-01-01 00:00:00',NULL,NULL);
-INSERT INTO t2 VALUES (49,'project_table',148,'2000-01-01 00:00:00',NULL,NULL);
-INSERT INTO t2 VALUES (50,'client_table',68,'2000-01-01 00:00:00',NULL,NULL);
-INSERT INTO t2 VALUES (51,'project_table',149,'2000-01-01 00:00:00',NULL,NULL);
-INSERT INTO t2 VALUES (52,'project_table',150,'2000-01-01 00:00:00',NULL,NULL);
-INSERT INTO t2 VALUES (53,'client_table',69,'2000-01-01 00:00:00',NULL,NULL);
-INSERT INTO t2 VALUES (54,'project_table',151,'2000-01-01 00:00:00',NULL,NULL);
-INSERT INTO t2 VALUES (55,'client_table',70,'2000-01-01 00:00:00',NULL,NULL);
-INSERT INTO t2 VALUES (155,'role_table',1,'2000-01-01 00:00:00',NULL,NULL);
-INSERT INTO t2 VALUES (156,'role_table',2,'2000-01-01 00:00:00',NULL,NULL);
-INSERT INTO t2 VALUES (160,'member_table',1,'2000-01-01 00:00:00',NULL,1);
-INSERT INTO t2 VALUES (161,'member_table',2,'2000-01-01 00:00:00',NULL,1);
-INSERT INTO t2 VALUES (162,'member_table',3,'2000-01-01 00:00:00',NULL,1);
-CREATE TABLE t3 (
-budget_id int(11) NOT NULL auto_increment,
-project_ptr int(11) NOT NULL default '0',
-po_number varchar(20) NOT NULL default '',
-status enum('open','closed') default NULL,
-date_received datetime default NULL,
-amount_received float(10,2) default NULL,
-adjustment float(10,2) default NULL,
-PRIMARY KEY (budget_id),
-UNIQUE KEY po (project_ptr,po_number)
-) ENGINE=MyISAM PACK_KEYS=1;
-CREATE TABLE t4 (
-client_id int(11) NOT NULL auto_increment,
-client_row_lock int(11) NOT NULL default '0',
-client_name varchar(80) NOT NULL default '',
-contact_ptr int(11) default NULL,
-comments mediumtext,
-PRIMARY KEY (client_id),
-UNIQUE KEY client_name (client_name)
-) ENGINE=MyISAM PACK_KEYS=1;
-INSERT INTO t4 VALUES (1,0,'CPS',NULL,NULL);
-select distinct
-t1.project_id as project_id,
-t1.project_name as project_name,
-t1.client_ptr as client_ptr,
-t1.comments as comments,
-sum( t3.amount_received ) + sum( t3.adjustment ) as total_budget
-from
-t2 as client_period ,
-t2 as project_period,
-t3 left join t1 on (t3.project_ptr = t1.project_id and
-t3.date_received <= '2001-03-22 14:15:09')
-left join t4 on t4.client_id = t1.client_ptr
-where
-1
-and ( client_period.period_type = 'client_table'
- and client_period.period_key = t4.client_id
-and ( client_period.start_date <= '2001-03-22 14:15:09' or isnull( client_period.start_date ))
-and ( client_period.end_date > '2001-03-21 14:15:09' or isnull( client_period.end_date ))
-)
-and ( project_period.period_type = 'project_table'
- and project_period.period_key = t1.project_id
-and ( project_period.start_date <= '2001-03-22 14:15:09' or isnull( project_period.start_date ))
-and ( project_period.end_date > '2001-03-21 14:15:09' or isnull( project_period.end_date )) )
-group by
-client_id,
-project_id ,
-client_period.period_id ,
-project_period.period_id
-order by
-client_name asc,
-project_name asc;
-project_id project_name client_ptr comments total_budget
-DROP TABLE t1,t2,t3,t4;
diff --git a/mysql-test/r/join_nested.result b/mysql-test/r/join_nested.result
deleted file mode 100644
index 708c72fffb5..00000000000
--- a/mysql-test/r/join_nested.result
+++ /dev/null
@@ -1,1968 +0,0 @@
-DROP TABLE IF EXISTS t0,t1,t2,t3,t4,t5,t6,t7,t8,t9;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch=ifnull(@optimizer_switch_for_join_nested_test,'outer_join_with_cache=off');
-set join_cache_level=1;
-CREATE TABLE t0 (a int, b int, c int);
-CREATE TABLE t1 (a int, b int, c int);
-CREATE TABLE t2 (a int, b int, c int);
-CREATE TABLE t3 (a int, b int, c int);
-CREATE TABLE t4 (a int, b int, c int);
-CREATE TABLE t5 (a int, b int, c int);
-CREATE TABLE t6 (a int, b int, c int);
-CREATE TABLE t7 (a int, b int, c int);
-CREATE TABLE t8 (a int, b int, c int);
-CREATE TABLE t9 (a int, b int, c int);
-INSERT INTO t0 VALUES (1,1,0), (1,2,0), (2,2,0);
-INSERT INTO t1 VALUES (1,3,0), (2,2,0), (3,2,0);
-INSERT INTO t2 VALUES (3,3,0), (4,2,0), (5,3,0);
-INSERT INTO t3 VALUES (1,2,0), (2,2,0);
-INSERT INTO t4 VALUES (3,2,0), (4,2,0);
-INSERT INTO t5 VALUES (3,1,0), (2,2,0), (3,3,0);
-INSERT INTO t6 VALUES (3,2,0), (6,2,0), (6,1,0);
-INSERT INTO t7 VALUES (1,1,0), (2,2,0);
-INSERT INTO t8 VALUES (0,2,0), (1,2,0);
-INSERT INTO t9 VALUES (1,1,0), (1,2,0), (3,3,0);
-SELECT t2.a,t2.b
-FROM t2;
-a b
-3 3
-4 2
-5 3
-SELECT t3.a,t3.b
-FROM t3;
-a b
-1 2
-2 2
-SELECT t4.a,t4.b
-FROM t4;
-a b
-3 2
-4 2
-SELECT t3.a,t3.b,t4.a,t4.b
-FROM t3,t4;
-a b a b
-1 2 3 2
-2 2 3 2
-1 2 4 2
-2 2 4 2
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t2.b=t4.b;
-a b a b a b
-3 3 NULL NULL NULL NULL
-4 2 1 2 3 2
-4 2 1 2 4 2
-4 2 2 2 3 2
-4 2 2 2 4 2
-5 3 NULL NULL NULL NULL
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b;
-a b a b a b
-3 3 NULL NULL NULL NULL
-4 2 1 2 3 2
-4 2 1 2 4 2
-5 3 NULL NULL NULL NULL
-EXPLAIN EXTENDED
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t2.b=t4.b
-WHERE t3.a=1 OR t3.c IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b` from `test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t4`.`b` = `test`.`t2`.`b`) where `test`.`t3`.`a` = 1 or `test`.`t3`.`c` is null
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t2.b=t4.b
-WHERE t3.a=1 OR t3.c IS NULL;
-a b a b a b
-3 3 NULL NULL NULL NULL
-4 2 1 2 3 2
-4 2 1 2 4 2
-5 3 NULL NULL NULL NULL
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t2.b=t4.b
-WHERE t3.a>1 OR t3.c IS NULL;
-a b a b a b
-3 3 NULL NULL NULL NULL
-4 2 2 2 3 2
-4 2 2 2 4 2
-5 3 NULL NULL NULL NULL
-SELECT t5.a,t5.b
-FROM t5;
-a b
-3 1
-2 2
-3 3
-SELECT t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
-FROM t3,t4,t5;
-a b a b a b
-1 2 3 2 3 1
-2 2 3 2 3 1
-1 2 4 2 3 1
-2 2 4 2 3 1
-1 2 3 2 2 2
-2 2 3 2 2 2
-1 2 4 2 2 2
-2 2 4 2 2 2
-1 2 3 2 3 3
-2 2 3 2 3 3
-1 2 4 2 3 3
-2 2 4 2 3 3
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
-FROM t2
-LEFT JOIN
-(t3, t4, t5)
-ON t2.b=t4.b;
-a b a b a b a b
-3 3 NULL NULL NULL NULL NULL NULL
-4 2 1 2 3 2 3 1
-4 2 1 2 3 2 2 2
-4 2 1 2 3 2 3 3
-4 2 1 2 4 2 3 1
-4 2 1 2 4 2 2 2
-4 2 1 2 4 2 3 3
-4 2 2 2 3 2 3 1
-4 2 2 2 3 2 2 2
-4 2 2 2 3 2 3 3
-4 2 2 2 4 2 3 1
-4 2 2 2 4 2 2 2
-4 2 2 2 4 2 3 3
-5 3 NULL NULL NULL NULL NULL NULL
-EXPLAIN EXTENDED
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
-FROM t2
-LEFT JOIN
-(t3, t4, t5)
-ON t2.b=t4.b
-WHERE t3.a>1 OR t3.c IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b` from `test`.`t2` left join (`test`.`t3` join `test`.`t4` join `test`.`t5`) on(`test`.`t4`.`b` = `test`.`t2`.`b`) where `test`.`t3`.`a` > 1 or `test`.`t3`.`c` is null
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
-FROM t2
-LEFT JOIN
-(t3, t4, t5)
-ON t2.b=t4.b
-WHERE t3.a>1 OR t3.c IS NULL;
-a b a b a b a b
-3 3 NULL NULL NULL NULL NULL NULL
-4 2 2 2 3 2 3 1
-4 2 2 2 3 2 2 2
-4 2 2 2 3 2 3 3
-4 2 2 2 4 2 3 1
-4 2 2 2 4 2 2 2
-4 2 2 2 4 2 3 3
-5 3 NULL NULL NULL NULL NULL NULL
-EXPLAIN EXTENDED
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
-FROM t2
-LEFT JOIN
-(t3, t4, t5)
-ON t2.b=t4.b
-WHERE (t3.a>1 OR t3.c IS NULL) AND
-(t5.a<3 OR t5.c IS NULL);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b` from `test`.`t2` left join (`test`.`t3` join `test`.`t4` join `test`.`t5`) on(`test`.`t4`.`b` = `test`.`t2`.`b`) where (`test`.`t3`.`a` > 1 or `test`.`t3`.`c` is null) and (`test`.`t5`.`a` < 3 or `test`.`t5`.`c` is null)
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
-FROM t2
-LEFT JOIN
-(t3, t4, t5)
-ON t2.b=t4.b
-WHERE (t3.a>1 OR t3.c IS NULL) AND
-(t5.a<3 OR t5.c IS NULL);
-a b a b a b a b
-3 3 NULL NULL NULL NULL NULL NULL
-4 2 2 2 3 2 2 2
-4 2 2 2 4 2 2 2
-5 3 NULL NULL NULL NULL NULL NULL
-SELECT t6.a,t6.b
-FROM t6;
-a b
-3 2
-6 2
-6 1
-SELECT t7.a,t7.b
-FROM t7;
-a b
-1 1
-2 2
-SELECT t6.a,t6.b,t7.a,t7.b
-FROM t6,t7;
-a b a b
-3 2 1 1
-3 2 2 2
-6 2 1 1
-6 2 2 2
-6 1 1 1
-6 1 2 2
-SELECT t8.a,t8.b
-FROM t8;
-a b
-0 2
-1 2
-EXPLAIN EXTENDED
-SELECT t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM (t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (flat, BNL join)
-1 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b` from `test`.`t6` join `test`.`t7` left join `test`.`t8` on(`test`.`t8`.`b` = `test`.`t7`.`b` and `test`.`t6`.`b` < 10) where 1
-SELECT t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM (t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10;
-a b a b a b
-3 2 1 1 NULL NULL
-3 2 2 2 0 2
-3 2 2 2 1 2
-6 2 1 1 NULL NULL
-6 2 2 2 0 2
-6 2 2 2 1 2
-6 1 1 1 NULL NULL
-6 1 2 2 0 2
-6 1 2 2 1 2
-SELECT t5.a,t5.b
-FROM t5;
-a b
-3 1
-2 2
-3 3
-SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b;
-a b a b a b a b
-3 1 3 2 1 1 NULL NULL
-3 1 6 2 1 1 NULL NULL
-2 2 3 2 2 2 0 2
-2 2 3 2 2 2 1 2
-2 2 6 2 2 2 0 2
-2 2 6 2 2 2 1 2
-3 3 NULL NULL NULL NULL NULL NULL
-SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b AND
-(t8.a < 1 OR t8.c IS NULL);
-a b a b a b a b
-3 1 3 2 1 1 NULL NULL
-3 1 6 2 1 1 NULL NULL
-2 2 3 2 2 2 0 2
-2 2 6 2 2 2 0 2
-3 3 NULL NULL NULL NULL NULL NULL
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b;
-a b a b a b
-3 3 NULL NULL NULL NULL
-4 2 1 2 3 2
-4 2 1 2 4 2
-5 3 NULL NULL NULL NULL
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b;
-a b a b a b a b a b a b a b
-3 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-3 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
-4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL
-4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
-4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL
-5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-3 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-3 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-3 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-3 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-4 2 1 2 3 2 2 2 3 2 2 2 0 2
-4 2 1 2 3 2 2 2 3 2 2 2 1 2
-4 2 1 2 3 2 2 2 6 2 2 2 0 2
-4 2 1 2 3 2 2 2 6 2 2 2 1 2
-4 2 1 2 4 2 2 2 3 2 2 2 0 2
-4 2 1 2 4 2 2 2 3 2 2 2 1 2
-4 2 1 2 4 2 2 2 6 2 2 2 0 2
-4 2 1 2 4 2 2 2 6 2 2 2 1 2
-5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-5 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-3 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
-4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
-5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-WHERE t2.a > 3 AND
-(t6.a < 6 OR t6.c IS NULL);
-a b a b a b a b a b a b a b
-4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
-4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
-5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-4 2 1 2 3 2 2 2 3 2 2 2 0 2
-4 2 1 2 3 2 2 2 3 2 2 2 1 2
-4 2 1 2 4 2 2 2 3 2 2 2 0 2
-4 2 1 2 4 2 2 2 3 2 2 2 1 2
-5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
-4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
-5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-SELECT t1.a,t1.b
-FROM t1;
-a b
-1 3
-2 2
-3 2
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2);
-a b a b a b a b a b a b a b a b
-1 3 3 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-1 3 3 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-1 3 3 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-1 3 3 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-1 3 3 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-1 3 3 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-1 3 3 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-1 3 4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
-1 3 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL
-1 3 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
-1 3 4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
-1 3 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL
-1 3 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
-1 3 5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-1 3 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-1 3 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-1 3 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-1 3 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-1 3 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-1 3 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-2 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-3 2 3 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-3 2 3 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-3 2 3 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-3 2 3 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-3 2 3 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-3 2 3 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-3 2 3 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-3 2 4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
-3 2 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL
-3 2 4 2 1 2 3 2 2 2 3 2 2 2 0 2
-3 2 4 2 1 2 3 2 2 2 3 2 2 2 1 2
-3 2 4 2 1 2 3 2 2 2 6 2 2 2 0 2
-3 2 4 2 1 2 3 2 2 2 6 2 2 2 1 2
-3 2 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
-3 2 4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
-3 2 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL
-3 2 4 2 1 2 4 2 2 2 3 2 2 2 0 2
-3 2 4 2 1 2 4 2 2 2 3 2 2 2 1 2
-3 2 4 2 1 2 4 2 2 2 6 2 2 2 0 2
-3 2 4 2 1 2 4 2 2 2 6 2 2 2 1 2
-3 2 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
-3 2 5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-3 2 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-3 2 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-3 2 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-3 2 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2)
-WHERE (t2.a >= 4 OR t2.c IS NULL);
-a b a b a b a b a b a b a b a b
-1 3 4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
-1 3 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL
-1 3 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
-1 3 4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
-1 3 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL
-1 3 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
-1 3 5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-1 3 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-1 3 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-1 3 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-1 3 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-1 3 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-1 3 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-2 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-3 2 4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
-3 2 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL
-3 2 4 2 1 2 3 2 2 2 3 2 2 2 0 2
-3 2 4 2 1 2 3 2 2 2 3 2 2 2 1 2
-3 2 4 2 1 2 3 2 2 2 6 2 2 2 0 2
-3 2 4 2 1 2 3 2 2 2 6 2 2 2 1 2
-3 2 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
-3 2 4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
-3 2 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL
-3 2 4 2 1 2 4 2 2 2 3 2 2 2 0 2
-3 2 4 2 1 2 4 2 2 2 3 2 2 2 1 2
-3 2 4 2 1 2 4 2 2 2 6 2 2 2 0 2
-3 2 4 2 1 2 4 2 2 2 6 2 2 2 1 2
-3 2 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
-3 2 5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-3 2 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-3 2 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-3 2 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-3 2 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-SELECT t0.a,t0.b
-FROM t0;
-a b
-1 1
-1 2
-2 2
-EXPLAIN EXTENDED
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2)
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00
-1 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t2`.`b`) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(`test`.`t8`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` < 10)) on(`test`.`t7`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` >= 2)) on((`test`.`t3`.`b` = 2 or `test`.`t3`.`c` is null) and (`test`.`t6`.`b` = 2 or `test`.`t6`.`c` is null) and (`test`.`t5`.`b` = `test`.`t0`.`b` or `test`.`t3`.`c` is null or `test`.`t6`.`c` is null or `test`.`t8`.`c` is null) and `test`.`t1`.`a` <> 2) where `test`.`t0`.`a` = 1 and `test`.`t1`.`b` = `test`.`t0`.`b` and (`test`.`t2`.`a` >= 4 or `test`.`t2`.`c` is null)
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2)
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL);
-a b a b a b a b a b a b a b a b a b
-1 2 2 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-1 2 3 2 4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
-1 2 3 2 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL
-1 2 3 2 4 2 1 2 3 2 2 2 3 2 2 2 0 2
-1 2 3 2 4 2 1 2 3 2 2 2 3 2 2 2 1 2
-1 2 3 2 4 2 1 2 3 2 2 2 6 2 2 2 0 2
-1 2 3 2 4 2 1 2 3 2 2 2 6 2 2 2 1 2
-1 2 3 2 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
-1 2 3 2 4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
-1 2 3 2 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL
-1 2 3 2 4 2 1 2 4 2 2 2 3 2 2 2 0 2
-1 2 3 2 4 2 1 2 4 2 2 2 3 2 2 2 1 2
-1 2 3 2 4 2 1 2 4 2 2 2 6 2 2 2 0 2
-1 2 3 2 4 2 1 2 4 2 2 2 6 2 2 2 1 2
-1 2 3 2 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
-1 2 3 2 5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-1 2 3 2 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-1 2 3 2 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-1 2 3 2 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-1 2 3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-EXPLAIN EXTENDED
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2),
-t9
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL) AND
-(t3.a < 5 OR t3.c IS NULL) AND
-(t3.b=t4.b OR t3.c IS NULL OR t4.c IS NULL) AND
-(t5.a >=2 OR t5.c IS NULL) AND
-(t6.a >=4 OR t6.c IS NULL) AND
-(t7.a <= 2 OR t7.c IS NULL) AND
-(t8.a < 1 OR t8.c IS NULL) AND
-(t8.b=t9.b OR t8.c IS NULL) AND
-(t9.a=1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b`,`test`.`t9`.`a` AS `a`,`test`.`t9`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t2`.`b`) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(`test`.`t8`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` < 10)) on(`test`.`t7`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` >= 2)) on((`test`.`t3`.`b` = 2 or `test`.`t3`.`c` is null) and (`test`.`t6`.`b` = 2 or `test`.`t6`.`c` is null) and (`test`.`t5`.`b` = `test`.`t0`.`b` or `test`.`t3`.`c` is null or `test`.`t6`.`c` is null or `test`.`t8`.`c` is null) and `test`.`t1`.`a` <> 2) join `test`.`t9` where `test`.`t0`.`a` = 1 and `test`.`t1`.`b` = `test`.`t0`.`b` and `test`.`t9`.`a` = 1 and (`test`.`t2`.`a` >= 4 or `test`.`t2`.`c` is null) and (`test`.`t3`.`a` < 5 or `test`.`t3`.`c` is null) and (`test`.`t4`.`b` = `test`.`t3`.`b` or `test`.`t3`.`c` is null or `test`.`t4`.`c` is null) and (`test`.`t5`.`a` >= 2 or `test`.`t5`.`c` is null) and (`test`.`t6`.`a` >= 4 or `test`.`t6`.`c` is null) and (`test`.`t7`.`a` <= 2 or `test`.`t7`.`c` is null) and (`test`.`t8`.`a` < 1 or `test`.`t8`.`c` is null) and (`test`.`t9`.`b` = `test`.`t8`.`b` or `test`.`t8`.`c` is null)
-SELECT t9.a,t9.b
-FROM t9;
-a b
-1 1
-1 2
-3 3
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2),
-t9
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL) AND
-(t3.a < 5 OR t3.c IS NULL) AND
-(t3.b=t4.b OR t3.c IS NULL OR t4.c IS NULL) AND
-(t5.a >=2 OR t5.c IS NULL) AND
-(t6.a >=4 OR t6.c IS NULL) AND
-(t7.a <= 2 OR t7.c IS NULL) AND
-(t8.a < 1 OR t8.c IS NULL) AND
-(t8.b=t9.b OR t8.c IS NULL) AND
-(t9.a=1);
-a b a b a b a b a b a b a b a b a b a b
-1 2 2 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1 1
-1 2 3 2 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL 1 1
-1 2 3 2 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL 1 1
-1 2 3 2 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL 1 1
-1 2 3 2 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL 1 1
-1 2 3 2 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL 1 1
-1 2 3 2 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL 1 1
-1 2 2 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1 2
-1 2 3 2 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL 1 2
-1 2 3 2 4 2 1 2 3 2 2 2 6 2 2 2 0 2 1 2
-1 2 3 2 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL 1 2
-1 2 3 2 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL 1 2
-1 2 3 2 4 2 1 2 4 2 2 2 6 2 2 2 0 2 1 2
-1 2 3 2 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL 1 2
-SELECT t1.a,t1.b
-FROM t1;
-a b
-1 3
-2 2
-3 2
-SELECT t2.a,t2.b
-FROM t2;
-a b
-3 3
-4 2
-5 3
-SELECT t3.a,t3.b
-FROM t3;
-a b
-1 2
-2 2
-SELECT t2.a,t2.b,t3.a,t3.b
-FROM t2
-LEFT JOIN
-t3
-ON t2.b=t3.b;
-a b a b
-3 3 NULL NULL
-4 2 1 2
-4 2 2 2
-5 3 NULL NULL
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b
-FROM t1, t2
-LEFT JOIN
-t3
-ON t2.b=t3.b
-WHERE t1.a <= 2;
-a b a b a b
-1 3 3 3 NULL NULL
-2 2 3 3 NULL NULL
-1 3 4 2 1 2
-1 3 4 2 2 2
-2 2 4 2 1 2
-2 2 4 2 2 2
-1 3 5 3 NULL NULL
-2 2 5 3 NULL NULL
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b
-FROM t1, t3
-RIGHT JOIN
-t2
-ON t2.b=t3.b
-WHERE t1.a <= 2;
-a b a b a b
-1 3 3 3 NULL NULL
-2 2 3 3 NULL NULL
-1 3 4 2 1 2
-1 3 4 2 2 2
-2 2 4 2 1 2
-2 2 4 2 2 2
-1 3 5 3 NULL NULL
-2 2 5 3 NULL NULL
-SELECT t3.a,t3.b,t4.a,t4.b
-FROM t3,t4;
-a b a b
-1 2 3 2
-2 2 3 2
-1 2 4 2
-2 2 4 2
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b;
-a b a b a b
-3 3 NULL NULL NULL NULL
-4 2 1 2 3 2
-4 2 1 2 4 2
-5 3 NULL NULL NULL NULL
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t1, t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b
-WHERE t1.a <= 2;
-a b a b a b a b
-1 3 3 3 NULL NULL NULL NULL
-2 2 3 3 NULL NULL NULL NULL
-1 3 4 2 1 2 3 2
-1 3 4 2 1 2 4 2
-2 2 4 2 1 2 3 2
-2 2 4 2 1 2 4 2
-1 3 5 3 NULL NULL NULL NULL
-2 2 5 3 NULL NULL NULL NULL
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t1, (t3, t4)
-RIGHT JOIN
-t2
-ON t3.a=1 AND t2.b=t4.b
-WHERE t1.a <= 2;
-a b a b a b a b
-1 3 3 3 NULL NULL NULL NULL
-2 2 3 3 NULL NULL NULL NULL
-1 3 4 2 1 2 3 2
-1 3 4 2 1 2 4 2
-2 2 4 2 1 2 3 2
-2 2 4 2 1 2 4 2
-1 3 5 3 NULL NULL NULL NULL
-2 2 5 3 NULL NULL NULL NULL
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t1, (t3, t4)
-RIGHT JOIN
-t2
-ON t3.a=1 AND t2.b=t4.b
-WHERE t1.a <= 2;
-a b a b a b a b
-1 3 3 3 NULL NULL NULL NULL
-2 2 3 3 NULL NULL NULL NULL
-1 3 4 2 1 2 3 2
-1 3 4 2 1 2 4 2
-2 2 4 2 1 2 3 2
-2 2 4 2 1 2 4 2
-1 3 5 3 NULL NULL NULL NULL
-2 2 5 3 NULL NULL NULL NULL
-EXPLAIN EXTENDED
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t1, (t3, t4)
-RIGHT JOIN
-t2
-ON t3.a=1 AND t2.b=t4.b
-WHERE t1.a <= 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b` from `test`.`t1` join `test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t2`.`b`) where `test`.`t1`.`a` <= 2
-INSERT INTO t2 VALUES (-1,9,0), (-3,10,0), (-2,8,0), (-4,11,0), (-5,15,0);
-CREATE INDEX idx_b ON t2(b);
-EXPLAIN EXTENDED
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM (t3,t4)
-LEFT JOIN
-(t1,t2)
-ON t3.a=1 AND t3.b=t2.b AND t2.b=t4.b AND t2.a>0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (flat, BNL join)
-1 SIMPLE t2 ref idx_b idx_b 5 test.t3.b 2 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b` from `test`.`t3` join `test`.`t4` left join (`test`.`t1` join `test`.`t2`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t3`.`b` and `test`.`t2`.`b` = `test`.`t3`.`b` and `test`.`t2`.`a` > 0 and `test`.`t3`.`b` is not null) where 1
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM (t3,t4)
-LEFT JOIN
-(t1,t2)
-ON t3.a=1 AND t3.b=t2.b AND t2.b=t4.b AND t2.a>0;
-a b a b a b
-4 2 1 2 3 2
-4 2 1 2 3 2
-4 2 1 2 3 2
-NULL NULL 2 2 3 2
-4 2 1 2 4 2
-4 2 1 2 4 2
-4 2 1 2 4 2
-NULL NULL 2 2 4 2
-EXPLAIN EXTENDED
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b AND t2.a>0,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2),
-t9
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL) AND
-(t3.a < 5 OR t3.c IS NULL) AND
-(t3.b=t4.b OR t3.c IS NULL OR t4.c IS NULL) AND
-(t5.a >=2 OR t5.c IS NULL) AND
-(t6.a >=4 OR t6.c IS NULL) AND
-(t7.a <= 2 OR t7.c IS NULL) AND
-(t8.a < 1 OR t8.c IS NULL) AND
-(t8.b=t9.b OR t8.c IS NULL) AND
-(t9.a=1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using where
-1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b`,`test`.`t9`.`a` AS `a`,`test`.`t9`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t2`.`b` and `test`.`t2`.`a` > 0) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(`test`.`t8`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` < 10)) on(`test`.`t7`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` >= 2)) on((`test`.`t3`.`b` = 2 or `test`.`t3`.`c` is null) and (`test`.`t6`.`b` = 2 or `test`.`t6`.`c` is null) and (`test`.`t5`.`b` = `test`.`t0`.`b` or `test`.`t3`.`c` is null or `test`.`t6`.`c` is null or `test`.`t8`.`c` is null) and `test`.`t1`.`a` <> 2) join `test`.`t9` where `test`.`t0`.`a` = 1 and `test`.`t1`.`b` = `test`.`t0`.`b` and `test`.`t9`.`a` = 1 and (`test`.`t2`.`a` >= 4 or `test`.`t2`.`c` is null) and (`test`.`t3`.`a` < 5 or `test`.`t3`.`c` is null) and (`test`.`t3`.`b` = `test`.`t4`.`b` or `test`.`t3`.`c` is null or `test`.`t4`.`c` is null) and (`test`.`t5`.`a` >= 2 or `test`.`t5`.`c` is null) and (`test`.`t6`.`a` >= 4 or `test`.`t6`.`c` is null) and (`test`.`t7`.`a` <= 2 or `test`.`t7`.`c` is null) and (`test`.`t8`.`a` < 1 or `test`.`t8`.`c` is null) and (`test`.`t9`.`b` = `test`.`t8`.`b` or `test`.`t8`.`c` is null)
-INSERT INTO t4 VALUES (-3,12,0), (-4,13,0), (-1,11,0), (-3,11,0), (-5,15,0);
-INSERT INTO t5 VALUES (-3,11,0), (-2,12,0), (-3,13,0), (-4,12,0);
-CREATE INDEX idx_b ON t4(b);
-CREATE INDEX idx_b ON t5(b);
-EXPLAIN EXTENDED
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b AND t2.a>0 AND t4.a>0,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b AND t5.a>0
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2),
-t9
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL) AND
-(t3.a < 5 OR t3.c IS NULL) AND
-(t3.b=t4.b OR t3.c IS NULL OR t4.c IS NULL) AND
-(t5.a >=2 OR t5.c IS NULL) AND
-(t6.a >=4 OR t6.c IS NULL) AND
-(t7.a <= 2 OR t7.c IS NULL) AND
-(t8.a < 1 OR t8.c IS NULL) AND
-(t8.b=t9.b OR t8.c IS NULL) AND
-(t9.a=1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t4 ref idx_b idx_b 5 test.t2.b 2 100.00 Using where
-1 SIMPLE t5 ALL idx_b NULL NULL NULL 7 100.00 Using where
-1 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b`,`test`.`t9`.`a` AS `a`,`test`.`t9`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t2`.`b` and `test`.`t2`.`a` > 0 and `test`.`t4`.`a` > 0 and `test`.`t2`.`b` is not null) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(`test`.`t8`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` < 10)) on(`test`.`t7`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` >= 2 and `test`.`t5`.`a` > 0)) on((`test`.`t3`.`b` = 2 or `test`.`t3`.`c` is null) and (`test`.`t6`.`b` = 2 or `test`.`t6`.`c` is null) and (`test`.`t5`.`b` = `test`.`t0`.`b` or `test`.`t3`.`c` is null or `test`.`t6`.`c` is null or `test`.`t8`.`c` is null) and `test`.`t1`.`a` <> 2) join `test`.`t9` where `test`.`t0`.`a` = 1 and `test`.`t1`.`b` = `test`.`t0`.`b` and `test`.`t9`.`a` = 1 and (`test`.`t2`.`a` >= 4 or `test`.`t2`.`c` is null) and (`test`.`t3`.`a` < 5 or `test`.`t3`.`c` is null) and (`test`.`t4`.`b` = `test`.`t3`.`b` or `test`.`t3`.`c` is null or `test`.`t4`.`c` is null) and (`test`.`t5`.`a` >= 2 or `test`.`t5`.`c` is null) and (`test`.`t6`.`a` >= 4 or `test`.`t6`.`c` is null) and (`test`.`t7`.`a` <= 2 or `test`.`t7`.`c` is null) and (`test`.`t8`.`a` < 1 or `test`.`t8`.`c` is null) and (`test`.`t8`.`b` = `test`.`t9`.`b` or `test`.`t8`.`c` is null)
-INSERT INTO t8 VALUES (-3,12,0), (-1,14,0), (-5,15,0), (-1,11,0), (-4,13,0);
-CREATE INDEX idx_b ON t8(b);
-EXPLAIN EXTENDED
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b AND t2.a>0 AND t4.a>0,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10 AND t8.a>=0
-)
-ON t6.b >= 2 AND t5.b=t7.b AND t5.a>0
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2),
-t9
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL) AND
-(t3.a < 5 OR t3.c IS NULL) AND
-(t3.b=t4.b OR t3.c IS NULL OR t4.c IS NULL) AND
-(t5.a >=2 OR t5.c IS NULL) AND
-(t6.a >=4 OR t6.c IS NULL) AND
-(t7.a <= 2 OR t7.c IS NULL) AND
-(t8.a < 1 OR t8.c IS NULL) AND
-(t8.b=t9.b OR t8.c IS NULL) AND
-(t9.a=1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t4 ref idx_b idx_b 5 test.t2.b 2 100.00 Using where
-1 SIMPLE t5 ALL idx_b NULL NULL NULL 7 100.00 Using where
-1 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t8 ref idx_b idx_b 5 test.t5.b 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b`,`test`.`t9`.`a` AS `a`,`test`.`t9`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t2`.`b` and `test`.`t2`.`a` > 0 and `test`.`t4`.`a` > 0 and `test`.`t2`.`b` is not null) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(`test`.`t8`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` < 10 and `test`.`t8`.`a` >= 0 and `test`.`t5`.`b` is not null)) on(`test`.`t7`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` >= 2 and `test`.`t5`.`a` > 0)) on((`test`.`t3`.`b` = 2 or `test`.`t3`.`c` is null) and (`test`.`t6`.`b` = 2 or `test`.`t6`.`c` is null) and (`test`.`t5`.`b` = `test`.`t0`.`b` or `test`.`t3`.`c` is null or `test`.`t6`.`c` is null or `test`.`t8`.`c` is null) and `test`.`t1`.`a` <> 2) join `test`.`t9` where `test`.`t0`.`a` = 1 and `test`.`t1`.`b` = `test`.`t0`.`b` and `test`.`t9`.`a` = 1 and (`test`.`t2`.`a` >= 4 or `test`.`t2`.`c` is null) and (`test`.`t3`.`a` < 5 or `test`.`t3`.`c` is null) and (`test`.`t4`.`b` = `test`.`t3`.`b` or `test`.`t3`.`c` is null or `test`.`t4`.`c` is null) and (`test`.`t5`.`a` >= 2 or `test`.`t5`.`c` is null) and (`test`.`t6`.`a` >= 4 or `test`.`t6`.`c` is null) and (`test`.`t7`.`a` <= 2 or `test`.`t7`.`c` is null) and (`test`.`t8`.`a` < 1 or `test`.`t8`.`c` is null) and (`test`.`t8`.`b` = `test`.`t9`.`b` or `test`.`t8`.`c` is null)
-INSERT INTO t1 VALUES (-1,133,0), (-2,12,0), (-3,11,0), (-5,15,0);
-CREATE INDEX idx_b ON t1(b);
-CREATE INDEX idx_a ON t0(a);
-EXPLAIN EXTENDED
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2) AND t1.a>0,
-t9
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL) AND
-(t3.a < 5 OR t3.c IS NULL) AND
-(t3.b=t4.b OR t3.c IS NULL OR t4.c IS NULL) AND
-(t5.a >=2 OR t5.c IS NULL) AND
-(t6.a >=4 OR t6.c IS NULL) AND
-(t7.a <= 2 OR t7.c IS NULL) AND
-(t8.a < 1 OR t8.c IS NULL) AND
-(t8.b=t9.b OR t8.c IS NULL) AND
-(t9.a=1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ref idx_a idx_a 5 const 1 100.00 Using where
-1 SIMPLE t1 ref idx_b idx_b 5 test.t0.b 2 100.00
-1 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t4 ref idx_b idx_b 5 test.t2.b 2 100.00 Using where
-1 SIMPLE t5 ALL idx_b NULL NULL NULL 7 100.00 Using where
-1 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t8 ref idx_b idx_b 5 test.t5.b 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b`,`test`.`t9`.`a` AS `a`,`test`.`t9`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t2`.`b` and `test`.`t2`.`b` is not null) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(`test`.`t8`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` < 10 and `test`.`t5`.`b` is not null)) on(`test`.`t7`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` >= 2)) on((`test`.`t3`.`b` = 2 or `test`.`t3`.`c` is null) and (`test`.`t6`.`b` = 2 or `test`.`t6`.`c` is null) and (`test`.`t5`.`b` = `test`.`t0`.`b` or `test`.`t3`.`c` is null or `test`.`t6`.`c` is null or `test`.`t8`.`c` is null) and `test`.`t1`.`a` <> 2 and `test`.`t1`.`a` > 0) join `test`.`t9` where `test`.`t0`.`a` = 1 and `test`.`t1`.`b` = `test`.`t0`.`b` and `test`.`t9`.`a` = 1 and (`test`.`t2`.`a` >= 4 or `test`.`t2`.`c` is null) and (`test`.`t3`.`a` < 5 or `test`.`t3`.`c` is null) and (`test`.`t4`.`b` = `test`.`t3`.`b` or `test`.`t3`.`c` is null or `test`.`t4`.`c` is null) and (`test`.`t5`.`a` >= 2 or `test`.`t5`.`c` is null) and (`test`.`t6`.`a` >= 4 or `test`.`t6`.`c` is null) and (`test`.`t7`.`a` <= 2 or `test`.`t7`.`c` is null) and (`test`.`t8`.`a` < 1 or `test`.`t8`.`c` is null) and (`test`.`t8`.`b` = `test`.`t9`.`b` or `test`.`t8`.`c` is null)
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2) AND t1.a>0,
-t9
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL) AND
-(t3.a < 5 OR t3.c IS NULL) AND
-(t3.b=t4.b OR t3.c IS NULL OR t4.c IS NULL) AND
-(t5.a >=2 OR t5.c IS NULL) AND
-(t6.a >=4 OR t6.c IS NULL) AND
-(t7.a <= 2 OR t7.c IS NULL) AND
-(t8.a < 1 OR t8.c IS NULL) AND
-(t8.b=t9.b OR t8.c IS NULL) AND
-(t9.a=1);
-a b a b a b a b a b a b a b a b a b a b
-1 2 2 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1 1
-1 2 3 2 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL 1 1
-1 2 3 2 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL 1 1
-1 2 3 2 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL 1 1
-1 2 3 2 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL 1 1
-1 2 3 2 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL 1 1
-1 2 3 2 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL 1 1
-1 2 2 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1 2
-1 2 3 2 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL 1 2
-1 2 3 2 4 2 1 2 3 2 2 2 6 2 2 2 0 2 1 2
-1 2 3 2 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL 1 2
-1 2 3 2 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL 1 2
-1 2 3 2 4 2 1 2 4 2 2 2 6 2 2 2 0 2 1 2
-1 2 3 2 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL 1 2
-SELECT t2.a,t2.b
-FROM t2;
-a b
-3 3
-4 2
-5 3
--1 9
--3 10
--2 8
--4 11
--5 15
-SELECT t3.a,t3.b
-FROM t3;
-a b
-1 2
-2 2
-SELECT t2.a,t2.b,t3.a,t3.b
-FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t2.a = 4 OR (t2.a > 4 AND t3.a IS NULL);
-a b a b
-4 2 1 2
-4 2 2 2
-5 3 NULL NULL
-SELECT t2.a,t2.b,t3.a,t3.b
-FROM t2 LEFT JOIN (t3) ON t2.b=t3.b
-WHERE t2.a = 4 OR (t2.a > 4 AND t3.a IS NULL);
-a b a b
-4 2 1 2
-4 2 2 2
-5 3 NULL NULL
-ALTER TABLE t3
-CHANGE COLUMN a a1 int,
-CHANGE COLUMN c c1 int;
-SELECT t2.a,t2.b,t3.a1,t3.b
-FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t2.a = 4 OR (t2.a > 4 AND t3.a1 IS NULL);
-a b a1 b
-4 2 1 2
-4 2 2 2
-5 3 NULL NULL
-SELECT t2.a,t2.b,t3.a1,t3.b
-FROM t2 NATURAL LEFT JOIN t3
-WHERE t2.a = 4 OR (t2.a > 4 AND t3.a1 IS NULL);
-a b a1 b
-4 2 1 2
-4 2 2 2
-5 3 NULL NULL
-DROP TABLE t0,t1,t2,t3,t4,t5,t6,t7,t8,t9;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int);
-CREATE TABLE t3 (a int);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-INSERT INTO t3 VALUES (2);
-INSERT INTO t1 VALUES (2);
-SELECT * FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON t2.a=t3.a) ON t1.a=t3.a;
-a a a
-1 NULL NULL
-2 2 2
-SELECT * FROM t1 LEFT JOIN t2 LEFT JOIN t3 ON t2.a=t3.a ON t1.a=t3.a;
-a a a
-1 NULL NULL
-2 2 2
-DELETE FROM t1 WHERE a=2;
-SELECT * FROM t1 LEFT JOIN t2 LEFT JOIN t3 ON t2.a=t3.a ON t1.a=t3.a;
-a a a
-1 NULL NULL
-DELETE FROM t2;
-SELECT * FROM t1 LEFT JOIN t2 LEFT JOIN t3 ON t2.a=t3.a ON t1.a=t3.a;
-a a a
-1 NULL NULL
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1(a int, key (a));
-CREATE TABLE t2(b int, key (b));
-CREATE TABLE t3(c int, key (c));
-INSERT INTO t1 VALUES (NULL), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
-(10), (11), (12), (13), (14), (15), (16), (17), (18), (19);
-INSERT INTO t2 VALUES (NULL), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
-(10), (11), (12), (13), (14), (15), (16), (17), (18), (19);
-INSERT INTO t3 VALUES (0), (1), (2), (3), (4), (5);
-EXPLAIN SELECT a, b, c FROM t1 LEFT JOIN (t2, t3) ON c < 3 and b = c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 21 Using index
-1 SIMPLE t3 index c c 5 NULL 6 Using where; Using index
-1 SIMPLE t2 ref b b 5 test.t3.c 2 Using index
-EXPLAIN SELECT a, b, c FROM t1 LEFT JOIN (t2, t3) ON b < 3 and b = c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 21 Using index
-1 SIMPLE t3 index c c 5 NULL 6 Using where; Using index
-1 SIMPLE t2 ref b b 5 test.t3.c 2 Using index
-SELECT a, b, c FROM t1 LEFT JOIN (t2, t3) ON b < 3 and b = c;
-a b c
-NULL 0 0
-NULL 1 1
-NULL 2 2
-0 0 0
-0 1 1
-0 2 2
-1 0 0
-1 1 1
-1 2 2
-2 0 0
-2 1 1
-2 2 2
-3 0 0
-3 1 1
-3 2 2
-4 0 0
-4 1 1
-4 2 2
-5 0 0
-5 1 1
-5 2 2
-6 0 0
-6 1 1
-6 2 2
-7 0 0
-7 1 1
-7 2 2
-8 0 0
-8 1 1
-8 2 2
-9 0 0
-9 1 1
-9 2 2
-10 0 0
-10 1 1
-10 2 2
-11 0 0
-11 1 1
-11 2 2
-12 0 0
-12 1 1
-12 2 2
-13 0 0
-13 1 1
-13 2 2
-14 0 0
-14 1 1
-14 2 2
-15 0 0
-15 1 1
-15 2 2
-16 0 0
-16 1 1
-16 2 2
-17 0 0
-17 1 1
-17 2 2
-18 0 0
-18 1 1
-18 2 2
-19 0 0
-19 1 1
-19 2 2
-DELETE FROM t3;
-EXPLAIN SELECT a, b, c FROM t1 LEFT JOIN (t2, t3) ON b < 3 and b = c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 21 Using index
-1 SIMPLE t3 index c c 5 NULL 0 Using where; Using index
-1 SIMPLE t2 ref b b 5 test.t3.c 2 Using index
-SELECT a, b, c FROM t1 LEFT JOIN (t2, t3) ON b < 3 and b = c;
-a b c
-NULL NULL NULL
-0 NULL NULL
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-5 NULL NULL
-6 NULL NULL
-7 NULL NULL
-8 NULL NULL
-9 NULL NULL
-10 NULL NULL
-11 NULL NULL
-12 NULL NULL
-13 NULL NULL
-14 NULL NULL
-15 NULL NULL
-16 NULL NULL
-17 NULL NULL
-18 NULL NULL
-19 NULL NULL
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (c11 int);
-CREATE TABLE t2 (c21 int);
-CREATE TABLE t3 (c31 int);
-INSERT INTO t1 VALUES (4), (5);
-SELECT * FROM t1 LEFT JOIN t2 ON c11=c21;
-c11 c21
-4 NULL
-5 NULL
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON c11=c21;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 0 Const row not found
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON c21=c31) ON c11=c21;
-c11 c21 c31
-4 NULL NULL
-5 NULL NULL
-EXPLAIN SELECT * FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON c21=c31) ON c11=c21;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL NULL NULL NULL NULL 0 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 0 Using where
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (goods int(12) NOT NULL, price varchar(128) NOT NULL);
-INSERT INTO t1 VALUES (23, 2340), (26, 9900);
-CREATE TABLE t2 (goods int(12), name varchar(50), shop char(2));
-INSERT INTO t2 VALUES (23, 'as300', 'fr'), (26, 'as600', 'fr');
-create table t3 (groupid int(12) NOT NULL, goodsid int(12) NOT NULL);
-INSERT INTO t3 VALUES (3,23), (6,26);
-CREATE TABLE t4 (groupid int(12));
-INSERT INTO t4 VALUES (1), (2), (3), (4), (5), (6);
-SELECT * FROM
-(SELECT DISTINCT gl.groupid, gp.price
-FROM t4 gl
-LEFT JOIN
-(t3 g INNER JOIN t2 p ON g.goodsid = p.goods
-INNER JOIN t1 gp ON p.goods = gp.goods)
-ON gl.groupid = g.groupid and p.shop = 'fr') t;
-groupid price
-1 NULL
-2 NULL
-3 2340
-4 NULL
-5 NULL
-6 9900
-CREATE VIEW v1 AS
-SELECT g.groupid groupid, p.goods goods,
-p.name name, p.shop shop,
-gp.price price
-FROM t3 g INNER JOIN t2 p ON g.goodsid = p.goods
-INNER JOIN t1 gp on p.goods = gp.goods;
-CREATE VIEW v2 AS
-SELECT DISTINCT g.groupid, fr.price
-FROM t4 g
-LEFT JOIN
-v1 fr on g.groupid = fr.groupid and fr.shop = 'fr';
-SELECT * FROM v2;
-groupid price
-1 NULL
-2 NULL
-3 2340
-4 NULL
-5 NULL
-6 9900
-SELECT * FROM
-(SELECT DISTINCT g.groupid, fr.price
-FROM t4 g
-LEFT JOIN
-v1 fr on g.groupid = fr.groupid and fr.shop = 'fr') t;
-groupid price
-1 NULL
-2 NULL
-3 2340
-4 NULL
-5 NULL
-6 9900
-DROP VIEW v1,v2;
-DROP TABLE t1,t2,t3,t4;
-CREATE TABLE t1(a int);
-CREATE TABLE t2(b int);
-CREATE TABLE t3(c int, d int);
-CREATE TABLE t4(d int);
-CREATE TABLE t5(e int, f int);
-CREATE TABLE t6(f int);
-CREATE VIEW v1 AS
-SELECT e FROM t5 JOIN t6 ON t5.e=t6.f;
-CREATE VIEW v2 AS
-SELECT e FROM t5 NATURAL JOIN t6;
-SELECT t1.a FROM t1 JOIN t2 ON a=b JOIN t3 ON a=c JOIN t4 USING(d);
-a
-SELECT t1.x FROM t1 JOIN t2 ON a=b JOIN t3 ON a=c JOIN t4 USING(d);
-ERROR 42S22: Unknown column 't1.x' in 'field list'
-SELECT t1.a FROM t1 JOIN t2 ON a=b JOIN t3 ON a=c NATURAL JOIN t4;
-a
-SELECT t1.x FROM t1 JOIN t2 ON a=b JOIN t3 ON a=c NATURAL JOIN t4;
-ERROR 42S22: Unknown column 't1.x' in 'field list'
-SELECT v1.e FROM v1 JOIN t2 ON e=b JOIN t3 ON e=c JOIN t4 USING(d);
-e
-SELECT v1.x FROM v1 JOIN t2 ON e=b JOIN t3 ON e=c JOIN t4 USING(d);
-ERROR 42S22: Unknown column 'v1.x' in 'field list'
-SELECT v2.e FROM v2 JOIN t2 ON e=b JOIN t3 ON e=c JOIN t4 USING(d);
-e
-SELECT v2.x FROM v2 JOIN t2 ON e=b JOIN t3 ON e=c JOIN t4 USING(d);
-ERROR 42S22: Unknown column 'v2.x' in 'field list'
-DROP VIEW v1, v2;
-DROP TABLE t1, t2, t3, t4, t5, t6;
-create table t1 (id1 int(11) not null);
-insert into t1 values (1),(2);
-create table t2 (id2 int(11) not null);
-insert into t2 values (1),(2),(3),(4);
-create table t3 (id3 char(16) not null);
-insert into t3 values ('100');
-create table t4 (id2 int(11) not null, id3 char(16));
-create table t5 (id1 int(11) not null, key (id1));
-insert into t5 values (1),(2),(1);
-create view v1 as
-select t4.id3 from t4 join t2 on t4.id2 = t2.id2;
-select t1.id1 from t1 inner join (t3 left join v1 on t3.id3 = v1.id3);
-id1
-1
-2
-drop view v1;
-drop table t1, t2, t3, t4, t5;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3);
-create table t1(a int);
-insert into t1 select A.a + 10*(B.a) from t0 A, t0 B;
-create table t2 (a int, b int);
-insert into t2 values (1,1), (2,2), (3,3);
-create table t3(a int, b int, filler char(200), key(a));
-insert into t3 select a,a,'filler' from t1;
-insert into t3 select a,a,'filler' from t1;
-create table t4 like t3;
-insert into t4 select * from t3;
-insert into t4 select * from t3;
-create table t5 like t4;
-insert into t5 select * from t4;
-insert into t5 select * from t4;
-create table t6 like t5;
-insert into t6 select * from t5;
-insert into t6 select * from t5;
-create table t7 like t6;
-insert into t7 select * from t6;
-insert into t7 select * from t6;
-explain select * from t4 join
-t2 left join (t3 join t5 on t5.a=t3.b) on t3.a=t2.b where t4.a<=>t3.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL X
-1 SIMPLE t3 ref a a 5 test.t2.b X Using where
-1 SIMPLE t5 ref a a 5 test.t3.b X
-1 SIMPLE t4 ref a a 5 test.t3.b X Using index condition
-explain select * from (t4 join t6 on t6.a=t4.b) right join t3 on t4.a=t3.b
-join t2 left join (t5 join t7 on t7.a=t5.b) on t5.a=t2.b where t3.a<=>t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL X
-1 SIMPLE t3 ref a a 5 test.t2.b X Using index condition
-1 SIMPLE t4 ref a a 5 test.t3.b X Using where
-1 SIMPLE t6 ref a a 5 test.t4.b X
-1 SIMPLE t5 ref a a 5 test.t2.b X Using where
-1 SIMPLE t7 ref a a 5 test.t5.b X
-explain select * from t2 left join
-(t3 left join (t4 join t6 on t6.a=t4.b) on t4.a=t3.b
-join t5 on t5.a=t3.b) on t3.a=t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL X
-1 SIMPLE t3 ref a a 5 test.t2.b X Using where
-1 SIMPLE t5 ref a a 5 test.t3.b X
-1 SIMPLE t4 ref a a 5 test.t5.a X Using where
-1 SIMPLE t6 ref a a 5 test.t4.b X
-drop table t0, t1, t2, t3, t4, t5, t6, t7;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, filler char(100), key(a));
-insert into t2 select A.a + 10*B.a, '' from t1 A, t1 B;
-create table t3 like t2;
-insert into t3 select * from t2;
-explain select * from t1 left join
-(t2 left join t3 on (t2.a = t3.a))
-on (t1.a = t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10
-1 SIMPLE t2 ref a a 5 test.t1.a 1 Using where
-1 SIMPLE t3 ref a a 5 test.t1.a 1 Using where
-drop table t1, t2, t3;
-CREATE TABLE t1 (id int NOT NULL PRIMARY KEY, type varchar(10));
-CREATE TABLE t2 (pid int NOT NULL PRIMARY KEY, type varchar(10));
-CREATE TABLE t3 (cid int NOT NULL PRIMARY KEY,
-id int NOT NULL,
-pid int NOT NULL);
-INSERT INTO t1 VALUES (1, 'A'), (3, 'C');
-INSERT INTO t2 VALUES (1, 'A'), (3, 'C');
-INSERT INTO t3 VALUES (1, 1, 1), (3, 3, 3);
-SELECT * FROM t1 p LEFT JOIN (t3 JOIN t1)
-ON (t1.id=t3.id AND t1.type='B' AND p.id=t3.id)
-LEFT JOIN t2 ON (t3.pid=t2.pid)
-WHERE p.id=1;
-id type cid id pid id type pid type
-1 A NULL NULL NULL NULL NULL NULL NULL
-CREATE VIEW v1 AS
-SELECT t3.* FROM t3 JOIN t1 ON t1.id=t3.id AND t1.type='B';
-SELECT * FROM t1 p LEFT JOIN v1 ON p.id=v1.id
-LEFT JOIN t2 ON v1.pid=t2.pid
-WHERE p.id=1;
-id type cid id pid pid type
-1 A NULL NULL NULL NULL NULL
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (id1 int PRIMARY KEY, id2 int);
-CREATE TABLE t2 (id1 int PRIMARY KEY, id2 int);
-CREATE TABLE t3 (id1 int PRIMARY KEY, id2 int);
-CREATE TABLE t4 (id1 int PRIMARY KEY, id2 int);
-CREATE TABLE t5 (id1 int PRIMARY KEY, id2 int);
-SELECT t1.id1 AS id, t5.id1 AS ngroupbynsa
-FROM t1 INNER JOIN t2 ON t2.id2 = t1.id1
-LEFT OUTER JOIN
-(t3 INNER JOIN t4 ON t4.id1 = t3.id2 INNER JOIN t5 ON t4.id2 = t5.id1)
-ON t3.id2 IS NOT NULL
-WHERE t1.id1=2;
-id ngroupbynsa
-PREPARE stmt FROM
-"SELECT t1.id1 AS id, t5.id1 AS ngroupbynsa
- FROM t1 INNER JOIN t2 ON t2.id2 = t1.id1
- LEFT OUTER JOIN
- (t3 INNER JOIN t4 ON t4.id1 = t3.id2 INNER JOIN t5 ON t4.id2 = t5.id1)
- ON t3.id2 IS NOT NULL
- WHERE t1.id1=2";
-EXECUTE stmt;
-id ngroupbynsa
-EXECUTE stmt;
-id ngroupbynsa
-EXECUTE stmt;
-id ngroupbynsa
-EXECUTE stmt;
-id ngroupbynsa
-INSERT INTO t1 VALUES (1,1), (2,1), (3,2);
-INSERT INTO t2 VALUES (2,1), (3,2), (4,3);
-INSERT INTO t3 VALUES (1,1), (3,2), (2,NULL);
-INSERT INTO t4 VALUES (1,1), (2,1), (3,3);
-INSERT INTO t5 VALUES (1,1), (2,2), (3,3), (4,3);
-EXECUTE stmt;
-id ngroupbynsa
-2 1
-2 1
-EXECUTE stmt;
-id ngroupbynsa
-2 1
-2 1
-EXECUTE stmt;
-id ngroupbynsa
-2 1
-2 1
-EXECUTE stmt;
-id ngroupbynsa
-2 1
-2 1
-SELECT t1.id1 AS id, t5.id1 AS ngroupbynsa
-FROM t1 INNER JOIN t2 ON t2.id2 = t1.id1
-LEFT OUTER JOIN
-(t3 INNER JOIN t4 ON t4.id1 = t3.id2 INNER JOIN t5 ON t4.id2 = t5.id1)
-ON t3.id2 IS NOT NULL
-WHERE t1.id1=2;
-id ngroupbynsa
-2 1
-2 1
-DROP TABLE t1,t2,t3,t4,t5;
-CREATE TABLE t1 (
-id int NOT NULL PRIMARY KEY,
-ct int DEFAULT NULL,
-pc int DEFAULT NULL,
-INDEX idx_ct (ct),
-INDEX idx_pc (pc)
-);
-INSERT INTO t1 VALUES
-(1,NULL,NULL),(2,NULL,NULL),(3,NULL,NULL),(4,NULL,NULL),(5,NULL,NULL);
-CREATE TABLE t2 (
-id int NOT NULL PRIMARY KEY,
-sr int NOT NULL,
-nm varchar(255) NOT NULL,
-INDEX idx_sr (sr)
-);
-INSERT INTO t2 VALUES
-(2441905,4308,'LesAbymes'),(2441906,4308,'Anse-Bertrand');
-CREATE TABLE t3 (
-id int NOT NULL PRIMARY KEY,
-ct int NOT NULL,
-ln int NOT NULL,
-INDEX idx_ct (ct),
-INDEX idx_ln (ln)
-);
-CREATE TABLE t4 (
-id int NOT NULL PRIMARY KEY,
-nm varchar(255) NOT NULL
-);
-INSERT INTO t4 VALUES (4308,'Guadeloupe'),(4309,'Martinique');
-SELECT t1.*
-FROM t1 LEFT JOIN
-(t2 LEFT JOIN t3 ON t3.ct=t2.id AND t3.ln='5') ON t1.ct=t2.id
-WHERE t1.id='5';
-id ct pc
-5 NULL NULL
-SELECT t1.*, t4.nm
-FROM t1 LEFT JOIN
-(t2 LEFT JOIN t3 ON t3.ct=t2.id AND t3.ln='5') ON t1.ct=t2.id
-LEFT JOIN t4 ON t2.sr=t4.id
-WHERE t1.id='5';
-id ct pc nm
-5 NULL NULL NULL
-DROP TABLE t1,t2,t3,t4;
-CREATE TABLE t1 (a INT, b INT);
-CREATE TABLE t2 (a INT);
-CREATE TABLE t3 (a INT, c INT);
-CREATE TABLE t4 (a INT, c INT);
-CREATE TABLE t5 (a INT, c INT);
-SELECT b FROM t1 JOIN (t2 LEFT JOIN t3 USING (a) LEFT JOIN t4 USING (a)
-LEFT JOIN t5 USING (a)) USING (a);
-b
-SELECT c FROM t1 JOIN (t2 LEFT JOIN t3 USING (a) LEFT JOIN t4 USING (a)
-LEFT JOIN t5 USING (a)) USING (a);
-ERROR 23000: Column 'c' in field list is ambiguous
-SELECT b FROM t1 JOIN (t2 JOIN t3 USING (a) JOIN t4 USING (a)
-JOIN t5 USING (a)) USING (a);
-b
-SELECT c FROM t1 JOIN (t2 JOIN t3 USING (a) JOIN t4 USING (a)
-JOIN t5 USING (a)) USING (a);
-ERROR 23000: Column 'c' in field list is ambiguous
-DROP TABLE t1,t2,t3,t4,t5;
-CREATE TABLE t1 (a INT, b INT);
-CREATE TABLE t2 (a INT, b INT);
-CREATE TABLE t3 (a INT, b INT);
-INSERT INTO t1 VALUES (1,1);
-INSERT INTO t2 VALUES (1,1);
-INSERT INTO t3 VALUES (1,1);
-SELECT * FROM t1 JOIN (t2 JOIN t3 USING (b)) USING (a);
-ERROR 23000: Column 'a' in from clause is ambiguous
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (
-carrier char(2) default NULL,
-id int NOT NULL auto_increment PRIMARY KEY
-);
-INSERT INTO t1 VALUES
-('CO',235371754),('CO',235376554),('CO',235376884),('CO',235377874),
-('CO',231060394),('CO',231059224),('CO',231059314),('CO',231060484),
-('CO',231060274),('CO',231060124),('CO',231060244),('CO',231058594),
-('CO',231058924),('CO',231058504),('CO',231059344),('CO',231060424),
-('CO',231059554),('CO',231060304),('CO',231059644),('CO',231059464),
-('CO',231059764),('CO',231058294),('CO',231058624),('CO',231058864),
-('CO',231059374),('CO',231059584),('CO',231059734),('CO',231059014),
-('CO',231059854),('CO',231059494),('CO',231059794),('CO',231058534),
-('CO',231058324),('CO',231058684),('CO',231059524),('CO',231059974);
-CREATE TABLE t2 (
-scan_date date default NULL,
-package_id int default NULL,
-INDEX scan_date(scan_date),
-INDEX package_id(package_id)
-);
-INSERT INTO t2 VALUES
-('2008-12-29',231062944),('2008-12-29',231065764),('2008-12-29',231066124),
-('2008-12-29',231060094),('2008-12-29',231061054),('2008-12-29',231065644),
-('2008-12-29',231064384),('2008-12-29',231064444),('2008-12-29',231073774),
-('2008-12-29',231058594),('2008-12-29',231059374),('2008-12-29',231066004),
-('2008-12-29',231068494),('2008-12-29',231070174),('2008-12-29',231071884),
-('2008-12-29',231063274),('2008-12-29',231063754),('2008-12-29',231064144),
-('2008-12-29',231069424),('2008-12-29',231073714),('2008-12-29',231058414),
-('2008-12-29',231060994),('2008-12-29',231069154),('2008-12-29',231068614),
-('2008-12-29',231071464),('2008-12-29',231074014),('2008-12-29',231059614),
-('2008-12-29',231059074),('2008-12-29',231059464),('2008-12-29',231069094),
-('2008-12-29',231067294),('2008-12-29',231070144),('2008-12-29',231073804),
-('2008-12-29',231072634),('2008-12-29',231058294),('2008-12-29',231065344),
-('2008-12-29',231066094),('2008-12-29',231069034),('2008-12-29',231058594),
-('2008-12-29',231059854),('2008-12-29',231059884),('2008-12-29',231059914),
-('2008-12-29',231063664),('2008-12-29',231063814),('2008-12-29',231063904);
-CREATE TABLE t3 (
-package_id int default NULL,
-INDEX package_id(package_id)
-);
-INSERT INTO t3 VALUES
-(231058294),(231058324),(231058354),(231058384),(231058414),(231058444),
-(231058474),(231058504),(231058534),(231058564),(231058594),(231058624),
-(231058684),(231058744),(231058804),(231058864),(231058924),(231058954),
-(231059014),(231059074),(231059104),(231059134),(231059164),(231059194),
-(231059224),(231059254),(231059284),(231059314),(231059344),(231059374),
-(231059404),(231059434),(231059464),(231059494),(231059524),(231059554),
-(231059584),(231059614),(231059644),(231059674),(231059704),(231059734),
-(231059764),(231059794),(231059824),(231059854),(231059884),(231059914),
-(231059944),(231059974),(231060004),(231060034),(231060064),(231060094),
-(231060124),(231060154),(231060184),(231060214),(231060244),(231060274),
-(231060304),(231060334),(231060364),(231060394),(231060424),(231060454),
-(231060484),(231060514),(231060544),(231060574),(231060604),(231060634),
-(231060664),(231060694),(231060724),(231060754),(231060784),(231060814),
-(231060844),(231060874),(231060904),(231060934),(231060964),(231060994),
-(231061024),(231061054),(231061084),(231061144),(231061174),(231061204),
-(231061234),(231061294),(231061354),(231061384),(231061414),(231061474),
-(231061564),(231061594),(231061624),(231061684),(231061714),(231061774),
-(231061804),(231061894),(231061984),(231062074),(231062134),(231062224),
-(231062254),(231062314),(231062374),(231062434),(231062494),(231062554),
-(231062584),(231062614),(231062644),(231062704),(231062734),(231062794),
-(231062854),(231062884),(231062944),(231063004),(231063034),(231063064),
-(231063124),(231063154),(231063184),(231063214),(231063274),(231063334),
-(231063394),(231063424),(231063454),(231063514),(231063574),(231063664);
-CREATE TABLE t4 (
-carrier char(2) NOT NULL default '' PRIMARY KEY,
-id int(11) default NULL,
-INDEX id(id)
-);
-INSERT INTO t4 VALUES
-('99',6),('SK',456),('UA',486),('AI',1081),('OS',1111),('VS',1510);
-CREATE TABLE t5 (
-carrier_id int default NULL,
-INDEX carrier_id(carrier_id)
-);
-INSERT INTO t5 VALUES
-(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),
-(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),
-(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),
-(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),
-(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),
-(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(456),(456),(456),
-(456),(456),(456),(456),(456),(456),(456),(456),(456),(456),(456),(456),
-(456),(486),(1081),(1111),(1111),(1111),(1111),(1510);
-SELECT COUNT(*)
-FROM((t2 JOIN t1 ON t2.package_id = t1.id)
-JOIN t3 ON t3.package_id = t1.id);
-COUNT(*)
-6
-EXPLAIN
-SELECT COUNT(*)
-FROM ((t2 JOIN t1 ON t2.package_id = t1.id)
-JOIN t3 ON t3.package_id = t1.id)
-LEFT JOIN
-(t5 JOIN t4 ON t5.carrier_id = t4.id)
-ON t4.carrier = t1.carrier;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index package_id package_id 5 NULL 45 Using where; Using index
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.package_id 1
-1 SIMPLE t4 eq_ref PRIMARY,id PRIMARY 2 test.t1.carrier 1 Using where
-1 SIMPLE t5 ref carrier_id carrier_id 5 test.t4.id 22 Using index
-1 SIMPLE t3 ref package_id package_id 5 test.t2.package_id 1 Using index
-SELECT COUNT(*)
-FROM ((t2 JOIN t1 ON t2.package_id = t1.id)
-JOIN t3 ON t3.package_id = t1.id)
-LEFT JOIN
-(t5 JOIN t4 ON t5.carrier_id = t4.id)
-ON t4.carrier = t1.carrier;
-COUNT(*)
-6
-DROP TABLE t1,t2,t3,t4,t5;
-CREATE TABLE t1 (
-pk int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-a int DEFAULT NULL,
-KEY idx(a)
-);
-CREATE TABLE t2 (
-pk int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-a int DEFAULT NULL,
-KEY idx(a)
-);
-CREATE TABLE t3 (
-pk int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-a int DEFAULT NULL,
-KEY idx(a)
-);
-INSERT INTO t1 VALUES
-(1,2), (2,7), (3,5), (4,7), (5,5), (6,NULL), (7,NULL), (8,9);
-INSERT INTO t2 VALUES
-(1,NULL), (4,2), (5,2), (3,4), (2,8);
-INSERT INTO t3 VALUES
-(1,9), (2,2), (3,5), (4,2), (5,7), (6,0), (7,5);
-SELECT t1.pk, t1.a, t2.pk, t2.a,t3.pk, t3.a
-FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON t3.a=t2.a) ON t2.a=t1.a;
-pk a pk a pk a
-1 2 4 2 2 2
-1 2 4 2 4 2
-1 2 5 2 2 2
-1 2 5 2 4 2
-2 7 NULL NULL NULL NULL
-3 5 NULL NULL NULL NULL
-4 7 NULL NULL NULL NULL
-5 5 NULL NULL NULL NULL
-6 NULL NULL NULL NULL NULL
-7 NULL NULL NULL NULL NULL
-8 9 NULL NULL NULL NULL
-SELECT t1.pk, t1.a, t2.pk, t2.a,t3.pk, t3.a
-FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON t3.a=t2.a) ON t2.a=t1.a
-WHERE t2.pk IS NULL;
-pk a pk a pk a
-2 7 NULL NULL NULL NULL
-3 5 NULL NULL NULL NULL
-4 7 NULL NULL NULL NULL
-5 5 NULL NULL NULL NULL
-6 NULL NULL NULL NULL NULL
-7 NULL NULL NULL NULL NULL
-8 9 NULL NULL NULL NULL
-SELECT t1.pk, t1.a, t2.pk, t2.a,t3.pk, t3.a
-FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON t3.a=t2.a) ON t2.a=t1.a
-WHERE t3.pk IS NULL;
-pk a pk a pk a
-2 7 NULL NULL NULL NULL
-3 5 NULL NULL NULL NULL
-4 7 NULL NULL NULL NULL
-5 5 NULL NULL NULL NULL
-6 NULL NULL NULL NULL NULL
-7 NULL NULL NULL NULL NULL
-8 9 NULL NULL NULL NULL
-DROP TABLE t1, t2, t3;
-CREATE TABLE t1 (a int NOT NULL );
-INSERT INTO t1 VALUES (9), (9);
-CREATE TABLE t2 (a int NOT NULL );
-INSERT INTO t2 VALUES (9);
-CREATE TABLE t3 (a int NOT NULL, b int);
-INSERT INTO t3 VALUES (19,9);
-CREATE TABLE t4 (b int) ;
-SELECT * FROM t1 LEFT JOIN
-((t2 LEFT JOIN t3 ON t2.a=t3.b) LEFT JOIN t4 ON t3.a=t4.b)
-ON t1.a=t2.a;
-a a a b b
-9 9 19 9 NULL
-9 9 19 9 NULL
-SELECT * FROM t1 LEFT JOIN
-((t2 LEFT JOIN t3 ON t2.a=t3.b) LEFT JOIN t4 ON t3.a=t4.b)
-ON t1.a=t2.a
-WHERE t3.a IS NULL;
-a a a b b
-EXPLAIN EXTENDED
-SELECT * FROM t1 LEFT JOIN
-((t2 LEFT JOIN t3 ON t2.a=t3.b) LEFT JOIN t4 ON t3.a=t4.b)
-ON t1.a=t2.a
-WHERE t3.a IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 1 100.00 Using where; Not exists
-1 SIMPLE t4 ALL NULL NULL NULL NULL 0 0.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t2`.`a` AS `a`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`b` AS `b` from `test`.`t1` left join (`test`.`t2` left join `test`.`t3` on(`test`.`t3`.`b` = `test`.`t1`.`a`) left join `test`.`t4` on(`test`.`t4`.`b` = `test`.`t3`.`a`)) on(`test`.`t2`.`a` = `test`.`t1`.`a`) where `test`.`t3`.`a` is null
-DROP TABLE t1,t2,t3,t4;
-SET optimizer_switch=@save_optimizer_switch;
-End of 5.0 tests
-#
-# MDEV-621: LP:693329 - Assertion `!is_interleave_error' failed on low optimizer_search_depth
-#
-set @tmp_mdev621= @@optimizer_search_depth;
-SET SESSION optimizer_search_depth = 4;
-CREATE TABLE t1 (f1 int,f2 int,f3 int,f4 int) ;
-INSERT IGNORE INTO t1 VALUES (0,0,2,0),(NULL,0,2,0);
-CREATE TABLE t2 (f1 int) ;
-CREATE TABLE t3 (f3 int,PRIMARY KEY (f3)) ;
-CREATE TABLE t4 (f5 int) ;
-CREATE TABLE t5 (f2 int) ;
-SELECT alias2.f4 FROM t1 AS alias1
-LEFT JOIN t1 AS alias2
-LEFT JOIN t2 AS alias3
-LEFT JOIN t3 AS alias4 ON alias3.f1 = alias4.f3
-ON alias2.f1
-LEFT JOIN t4 AS alias5
-JOIN t5 ON alias5.f5
-ON alias2.f3 ON alias1.f2;
-f4
-NULL
-NULL
-DROP TABLE t1,t2,t3,t4,t5;
-#
-# MDEV-7992: Nested left joins + 'not exists' optimization
-#
-CREATE TABLE t1(
-K1 INT PRIMARY KEY,
-Name VARCHAR(15)
-);
-INSERT INTO t1 VALUES
-(1,'T1Row1'), (2,'T1Row2');
-CREATE TABLE t2(
-K2 INT PRIMARY KEY,
-K1r INT,
-rowTimestamp DATETIME,
-Event VARCHAR(15)
-);
-INSERT INTO t2 VALUES
-(1, 1, '2015-04-13 10:42:11' ,'T1Row1Event1'),
-(2, 1, '2015-04-13 10:42:12' ,'T1Row1Event2'),
-(3, 1, '2015-04-13 10:42:12' ,'T1Row1Event3');
-SELECT t1a.*, t2a.*,
-t2i.K2 AS K2B, t2i.K1r AS K1rB,
-t2i.rowTimestamp AS rowTimestampB, t2i.Event AS EventB
-FROM
-t1 t1a JOIN t2 t2a ON t2a.K1r = t1a.K1
-LEFT JOIN
-( t1 t1i LEFT JOIN t2 t2i ON t2i.K1r = t1i.K1)
-ON (t1i.K1 = 1) AND
-(((t2i.K1r = t1a.K1 AND t2i.rowTimestamp > t2a.rowTimestamp ) OR
-(t2i.rowTimestamp = t2a.rowTimestamp AND t2i.K2 > t2a.K2))
-OR (t2i.K2 IS NULL))
-WHERE
-t2a.K1r = 1 AND t2i.K2 IS NULL;
-K1 Name K2 K1r rowTimestamp Event K2B K1rB rowTimestampB EventB
-1 T1Row1 3 1 2015-04-13 10:42:12 T1Row1Event3 NULL NULL NULL NULL
-EXPLAIN EXTENDED SELECT t1a.*, t2a.*,
-t2i.K2 AS K2B, t2i.K1r AS K1rB,
-t2i.rowTimestamp AS rowTimestampB, t2i.Event AS EventB
-FROM
-t1 t1a JOIN t2 t2a ON t2a.K1r = t1a.K1
-LEFT JOIN
-( t1 t1i LEFT JOIN t2 t2i ON t2i.K1r = t1i.K1)
-ON (t1i.K1 = 1) AND
-(((t2i.K1r = t1a.K1 AND t2i.rowTimestamp > t2a.rowTimestamp ) OR
-(t2i.rowTimestamp = t2a.rowTimestamp AND t2i.K2 > t2a.K2))
-OR (t2i.K2 IS NULL))
-WHERE
-t2a.K1r = 1 AND t2i.K2 IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1a const PRIMARY PRIMARY 4 const 1 100.00
-1 SIMPLE t2a ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t1i const PRIMARY PRIMARY 4 const 1 100.00 Using index
-1 SIMPLE t2i ALL NULL NULL NULL NULL 3 100.00 Using where; Not exists
-Warnings:
-Note 1003 select 1 AS `K1`,'T1Row1' AS `Name`,`test`.`t2a`.`K2` AS `K2`,`test`.`t2a`.`K1r` AS `K1r`,`test`.`t2a`.`rowTimestamp` AS `rowTimestamp`,`test`.`t2a`.`Event` AS `Event`,`test`.`t2i`.`K2` AS `K2B`,`test`.`t2i`.`K1r` AS `K1rB`,`test`.`t2i`.`rowTimestamp` AS `rowTimestampB`,`test`.`t2i`.`Event` AS `EventB` from `test`.`t1` `t1a` join `test`.`t2` `t2a` left join (`test`.`t1` `t1i` left join `test`.`t2` `t2i` on(`test`.`t2i`.`K1r` = 1)) on(`test`.`t1i`.`K1` = 1 and (`test`.`t2i`.`K1r` = 1 and `test`.`t2i`.`rowTimestamp` > `test`.`t2a`.`rowTimestamp` or `test`.`t2i`.`rowTimestamp` = `test`.`t2a`.`rowTimestamp` and `test`.`t2i`.`K2` > `test`.`t2a`.`K2` or `test`.`t2i`.`K2` is null)) where `test`.`t2a`.`K1r` = 1 and `test`.`t2i`.`K2` is null
-CREATE VIEW v1 AS
-SELECT t2i.*
-FROM t1 as t1i LEFT JOIN t2 as t2i ON t2i.K1r = t1i.K1
-WHERE t1i.K1 = 1 ;
-SELECT
-t1a.*, t2a.*, t2b.K2 as K2B, t2b.K1r as K1rB,
-t2b.rowTimestamp as rowTimestampB, t2b.Event as EventB
-FROM
-t1 as t1a JOIN t2 as t2a ON t2a.K1r = t1a.K1
-LEFT JOIN
-v1 as t2b
-ON ((t2b.K1r = t1a.K1 AND t2b.rowTimestamp > t2a.rowTimestamp) OR
-(t2b.rowTimestamp = t2a.rowTimestamp AND t2b.K2 > t2a.K2))
-OR (t2b.K2 IS NULL)
-WHERE
-t1a.K1 = 1 AND
-t2b.K2 IS NULL;
-K1 Name K2 K1r rowTimestamp Event K2B K1rB rowTimestampB EventB
-1 T1Row1 3 1 2015-04-13 10:42:12 T1Row1Event3 NULL NULL NULL NULL
-EXPLAIN EXTENDED SELECT
-t1a.*, t2a.*, t2b.K2 as K2B, t2b.K1r as K1rB,
-t2b.rowTimestamp as rowTimestampB, t2b.Event as EventB
-FROM
-t1 as t1a JOIN t2 as t2a ON t2a.K1r = t1a.K1
-LEFT JOIN
-v1 as t2b
-ON ((t2b.K1r = t1a.K1 AND t2b.rowTimestamp > t2a.rowTimestamp) OR
-(t2b.rowTimestamp = t2a.rowTimestamp AND t2b.K2 > t2a.K2))
-OR (t2b.K2 IS NULL)
-WHERE
-t1a.K1 = 1 AND
-t2b.K2 IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1a const PRIMARY PRIMARY 4 const 1 100.00
-1 SIMPLE t2a ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t1i const PRIMARY PRIMARY 4 const 1 100.00 Using index
-1 SIMPLE t2i ALL NULL NULL NULL NULL 3 100.00 Using where; Not exists
-Warnings:
-Note 1003 select 1 AS `K1`,'T1Row1' AS `Name`,`t2a`.`K2` AS `K2`,`t2a`.`K1r` AS `K1r`,`t2a`.`rowTimestamp` AS `rowTimestamp`,`t2a`.`Event` AS `Event`,`test`.`t2i`.`K2` AS `K2B`,`test`.`t2i`.`K1r` AS `K1rB`,`test`.`t2i`.`rowTimestamp` AS `rowTimestampB`,`test`.`t2i`.`Event` AS `EventB` from `test`.`t1` `t1a` join `test`.`t2` `t2a` left join (`test`.`t1` `t1i` left join `test`.`t2` `t2i` on(`test`.`t2i`.`K1r` = 1)) on(`test`.`t1i`.`K1` = 1 and (`test`.`t2i`.`K1r` = 1 and `test`.`t2i`.`rowTimestamp` > `t2a`.`rowTimestamp` or `test`.`t2i`.`rowTimestamp` = `t2a`.`rowTimestamp` and `test`.`t2i`.`K2` > `t2a`.`K2` or `test`.`t2i`.`K2` is null)) where `t2a`.`K1r` = 1 and `test`.`t2i`.`K2` is null
-DROP VIEW v1;
-DROP TABLE t1,t2;
-set optimizer_search_depth= @tmp_mdev621;
diff --git a/mysql-test/r/join_nested_jcl6.result b/mysql-test/r/join_nested_jcl6.result
deleted file mode 100644
index eb59531b7d2..00000000000
--- a/mysql-test/r/join_nested_jcl6.result
+++ /dev/null
@@ -1,2091 +0,0 @@
-set @save_optimizer_switch_jcl6=@@optimizer_switch;
-set @@optimizer_switch='optimize_join_buffer_size=on';
-set @@optimizer_switch='semijoin_with_cache=on';
-set @@optimizer_switch='outer_join_with_cache=on';
-set @@optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set join_cache_level=6;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 6
-set @optimizer_switch_for_join_nested_test=@@optimizer_switch;
-set @join_cache_level_for_join_nested_test=@@join_cache_level;
-DROP TABLE IF EXISTS t0,t1,t2,t3,t4,t5,t6,t7,t8,t9;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch=ifnull(@optimizer_switch_for_join_nested_test,'outer_join_with_cache=off');
-set join_cache_level=@join_cache_level_for_join_nested_test;
-CREATE TABLE t0 (a int, b int, c int);
-CREATE TABLE t1 (a int, b int, c int);
-CREATE TABLE t2 (a int, b int, c int);
-CREATE TABLE t3 (a int, b int, c int);
-CREATE TABLE t4 (a int, b int, c int);
-CREATE TABLE t5 (a int, b int, c int);
-CREATE TABLE t6 (a int, b int, c int);
-CREATE TABLE t7 (a int, b int, c int);
-CREATE TABLE t8 (a int, b int, c int);
-CREATE TABLE t9 (a int, b int, c int);
-INSERT INTO t0 VALUES (1,1,0), (1,2,0), (2,2,0);
-INSERT INTO t1 VALUES (1,3,0), (2,2,0), (3,2,0);
-INSERT INTO t2 VALUES (3,3,0), (4,2,0), (5,3,0);
-INSERT INTO t3 VALUES (1,2,0), (2,2,0);
-INSERT INTO t4 VALUES (3,2,0), (4,2,0);
-INSERT INTO t5 VALUES (3,1,0), (2,2,0), (3,3,0);
-INSERT INTO t6 VALUES (3,2,0), (6,2,0), (6,1,0);
-INSERT INTO t7 VALUES (1,1,0), (2,2,0);
-INSERT INTO t8 VALUES (0,2,0), (1,2,0);
-INSERT INTO t9 VALUES (1,1,0), (1,2,0), (3,3,0);
-SELECT t2.a,t2.b
-FROM t2;
-a b
-3 3
-4 2
-5 3
-SELECT t3.a,t3.b
-FROM t3;
-a b
-1 2
-2 2
-SELECT t4.a,t4.b
-FROM t4;
-a b
-3 2
-4 2
-SELECT t3.a,t3.b,t4.a,t4.b
-FROM t3,t4;
-a b a b
-1 2 3 2
-2 2 3 2
-1 2 4 2
-2 2 4 2
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t2.b=t4.b;
-a b a b a b
-4 2 1 2 3 2
-4 2 2 2 3 2
-4 2 1 2 4 2
-4 2 2 2 4 2
-3 3 NULL NULL NULL NULL
-5 3 NULL NULL NULL NULL
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b;
-a b a b a b
-4 2 1 2 3 2
-4 2 1 2 4 2
-3 3 NULL NULL NULL NULL
-5 3 NULL NULL NULL NULL
-EXPLAIN EXTENDED
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t2.b=t4.b
-WHERE t3.a=1 OR t3.c IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 hash_ALL NULL #hash#$hj 5 test.t2.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b` from `test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t4`.`b` = `test`.`t2`.`b` and `test`.`t2`.`b` is not null) where `test`.`t3`.`a` = 1 or `test`.`t3`.`c` is null
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t2.b=t4.b
-WHERE t3.a=1 OR t3.c IS NULL;
-a b a b a b
-4 2 1 2 3 2
-4 2 1 2 4 2
-3 3 NULL NULL NULL NULL
-5 3 NULL NULL NULL NULL
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t2.b=t4.b
-WHERE t3.a>1 OR t3.c IS NULL;
-a b a b a b
-4 2 2 2 3 2
-4 2 2 2 4 2
-3 3 NULL NULL NULL NULL
-5 3 NULL NULL NULL NULL
-SELECT t5.a,t5.b
-FROM t5;
-a b
-3 1
-2 2
-3 3
-SELECT t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
-FROM t3,t4,t5;
-a b a b a b
-1 2 3 2 3 1
-2 2 3 2 3 1
-1 2 4 2 3 1
-2 2 4 2 3 1
-1 2 3 2 2 2
-2 2 3 2 2 2
-1 2 4 2 2 2
-2 2 4 2 2 2
-1 2 3 2 3 3
-2 2 3 2 3 3
-1 2 4 2 3 3
-2 2 4 2 3 3
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
-FROM t2
-LEFT JOIN
-(t3, t4, t5)
-ON t2.b=t4.b;
-a b a b a b a b
-4 2 1 2 3 2 3 1
-4 2 2 2 3 2 3 1
-4 2 1 2 4 2 3 1
-4 2 2 2 4 2 3 1
-4 2 1 2 3 2 2 2
-4 2 2 2 3 2 2 2
-4 2 1 2 4 2 2 2
-4 2 2 2 4 2 2 2
-4 2 1 2 3 2 3 3
-4 2 2 2 3 2 3 3
-4 2 1 2 4 2 3 3
-4 2 2 2 4 2 3 3
-3 3 NULL NULL NULL NULL NULL NULL
-5 3 NULL NULL NULL NULL NULL NULL
-EXPLAIN EXTENDED
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
-FROM t2
-LEFT JOIN
-(t3, t4, t5)
-ON t2.b=t4.b
-WHERE t3.a>1 OR t3.c IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 hash_ALL NULL #hash#$hj 5 test.t2.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (incremental, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b` from `test`.`t2` left join (`test`.`t3` join `test`.`t4` join `test`.`t5`) on(`test`.`t4`.`b` = `test`.`t2`.`b` and `test`.`t2`.`b` is not null) where `test`.`t3`.`a` > 1 or `test`.`t3`.`c` is null
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
-FROM t2
-LEFT JOIN
-(t3, t4, t5)
-ON t2.b=t4.b
-WHERE t3.a>1 OR t3.c IS NULL;
-a b a b a b a b
-4 2 2 2 3 2 3 1
-4 2 2 2 4 2 3 1
-4 2 2 2 3 2 2 2
-4 2 2 2 4 2 2 2
-4 2 2 2 3 2 3 3
-4 2 2 2 4 2 3 3
-3 3 NULL NULL NULL NULL NULL NULL
-5 3 NULL NULL NULL NULL NULL NULL
-EXPLAIN EXTENDED
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
-FROM t2
-LEFT JOIN
-(t3, t4, t5)
-ON t2.b=t4.b
-WHERE (t3.a>1 OR t3.c IS NULL) AND
-(t5.a<3 OR t5.c IS NULL);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t4 hash_ALL NULL #hash#$hj 5 test.t2.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b` from `test`.`t2` left join (`test`.`t3` join `test`.`t4` join `test`.`t5`) on(`test`.`t4`.`b` = `test`.`t2`.`b` and `test`.`t2`.`b` is not null) where (`test`.`t3`.`a` > 1 or `test`.`t3`.`c` is null) and (`test`.`t5`.`a` < 3 or `test`.`t5`.`c` is null)
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
-FROM t2
-LEFT JOIN
-(t3, t4, t5)
-ON t2.b=t4.b
-WHERE (t3.a>1 OR t3.c IS NULL) AND
-(t5.a<3 OR t5.c IS NULL);
-a b a b a b a b
-4 2 2 2 3 2 2 2
-4 2 2 2 4 2 2 2
-3 3 NULL NULL NULL NULL NULL NULL
-5 3 NULL NULL NULL NULL NULL NULL
-SELECT t6.a,t6.b
-FROM t6;
-a b
-3 2
-6 2
-6 1
-SELECT t7.a,t7.b
-FROM t7;
-a b
-1 1
-2 2
-SELECT t6.a,t6.b,t7.a,t7.b
-FROM t6,t7;
-a b a b
-3 2 1 1
-3 2 2 2
-6 2 1 1
-6 2 2 2
-6 1 1 1
-6 1 2 2
-SELECT t8.a,t8.b
-FROM t8;
-a b
-0 2
-1 2
-EXPLAIN EXTENDED
-SELECT t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM (t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (flat, BNL join)
-1 SIMPLE t8 hash_ALL NULL #hash#$hj 5 test.t7.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-Warnings:
-Note 1003 select `test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b` from `test`.`t6` join `test`.`t7` left join `test`.`t8` on(`test`.`t8`.`b` = `test`.`t7`.`b` and `test`.`t6`.`b` < 10 and `test`.`t7`.`b` is not null) where 1
-SELECT t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM (t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10;
-a b a b a b
-3 2 2 2 0 2
-6 2 2 2 0 2
-6 1 2 2 0 2
-3 2 2 2 1 2
-6 2 2 2 1 2
-6 1 2 2 1 2
-3 2 1 1 NULL NULL
-6 2 1 1 NULL NULL
-6 1 1 1 NULL NULL
-SELECT t5.a,t5.b
-FROM t5;
-a b
-3 1
-2 2
-3 3
-SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b;
-a b a b a b a b
-2 2 3 2 2 2 0 2
-2 2 6 2 2 2 0 2
-2 2 3 2 2 2 1 2
-2 2 6 2 2 2 1 2
-3 1 3 2 1 1 NULL NULL
-3 1 6 2 1 1 NULL NULL
-3 3 NULL NULL NULL NULL NULL NULL
-SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b AND
-(t8.a < 1 OR t8.c IS NULL);
-a b a b a b a b
-2 2 3 2 2 2 0 2
-2 2 6 2 2 2 0 2
-3 1 3 2 1 1 NULL NULL
-3 1 6 2 1 1 NULL NULL
-3 3 NULL NULL NULL NULL NULL NULL
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b;
-a b a b a b
-4 2 1 2 3 2
-4 2 1 2 4 2
-3 3 NULL NULL NULL NULL
-5 3 NULL NULL NULL NULL
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b;
-a b a b a b a b a b a b a b
-4 2 1 2 3 2 2 2 3 2 2 2 0 2
-4 2 1 2 4 2 2 2 3 2 2 2 0 2
-4 2 1 2 3 2 2 2 6 2 2 2 0 2
-4 2 1 2 4 2 2 2 6 2 2 2 0 2
-4 2 1 2 3 2 2 2 3 2 2 2 1 2
-4 2 1 2 4 2 2 2 3 2 2 2 1 2
-4 2 1 2 3 2 2 2 6 2 2 2 1 2
-4 2 1 2 4 2 2 2 6 2 2 2 1 2
-4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
-4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
-4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL
-4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL
-4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
-4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
-3 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-3 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-3 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-3 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-5 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-3 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-3 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-3 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-WHERE t2.a > 3 AND
-(t6.a < 6 OR t6.c IS NULL);
-a b a b a b a b a b a b a b
-4 2 1 2 3 2 2 2 3 2 2 2 0 2
-4 2 1 2 4 2 2 2 3 2 2 2 0 2
-4 2 1 2 3 2 2 2 3 2 2 2 1 2
-4 2 1 2 4 2 2 2 3 2 2 2 1 2
-4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
-4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
-4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
-4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
-5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-SELECT t1.a,t1.b
-FROM t1;
-a b
-1 3
-2 2
-3 2
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2);
-a b a b a b a b a b a b a b a b
-3 2 4 2 1 2 3 2 2 2 3 2 2 2 0 2
-3 2 4 2 1 2 4 2 2 2 3 2 2 2 0 2
-3 2 4 2 1 2 3 2 2 2 6 2 2 2 0 2
-3 2 4 2 1 2 4 2 2 2 6 2 2 2 0 2
-3 2 4 2 1 2 3 2 2 2 3 2 2 2 1 2
-3 2 4 2 1 2 4 2 2 2 3 2 2 2 1 2
-3 2 4 2 1 2 3 2 2 2 6 2 2 2 1 2
-3 2 4 2 1 2 4 2 2 2 6 2 2 2 1 2
-1 3 4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
-3 2 4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
-1 3 4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
-3 2 4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
-1 3 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL
-3 2 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL
-1 3 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL
-3 2 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL
-1 3 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
-3 2 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
-1 3 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
-3 2 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
-1 3 3 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-3 2 3 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-1 3 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-3 2 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-1 3 3 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-3 2 3 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-1 3 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-1 3 3 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-3 2 3 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-1 3 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-3 2 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-1 3 3 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-3 2 3 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-1 3 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-1 3 3 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-3 2 3 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-1 3 5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-3 2 5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-1 3 3 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-3 2 3 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-1 3 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-3 2 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-1 3 3 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-3 2 3 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-1 3 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-3 2 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-2 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2)
-WHERE (t2.a >= 4 OR t2.c IS NULL);
-a b a b a b a b a b a b a b a b
-3 2 4 2 1 2 3 2 2 2 3 2 2 2 0 2
-3 2 4 2 1 2 4 2 2 2 3 2 2 2 0 2
-3 2 4 2 1 2 3 2 2 2 6 2 2 2 0 2
-3 2 4 2 1 2 4 2 2 2 6 2 2 2 0 2
-3 2 4 2 1 2 3 2 2 2 3 2 2 2 1 2
-3 2 4 2 1 2 4 2 2 2 3 2 2 2 1 2
-3 2 4 2 1 2 3 2 2 2 6 2 2 2 1 2
-3 2 4 2 1 2 4 2 2 2 6 2 2 2 1 2
-1 3 4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
-3 2 4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
-1 3 4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
-3 2 4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
-1 3 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL
-3 2 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL
-1 3 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL
-3 2 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL
-1 3 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
-3 2 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
-1 3 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
-3 2 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
-1 3 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-3 2 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-1 3 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-1 3 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-3 2 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-1 3 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-1 3 5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-3 2 5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-1 3 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-3 2 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-1 3 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-3 2 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-2 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-SELECT t0.a,t0.b
-FROM t0;
-a b
-1 1
-1 2
-2 2
-EXPLAIN EXTENDED
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2)
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t1 hash_ALL NULL #hash#$hj 5 test.t0.b 3 100.00 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t4 hash_ALL NULL #hash#$hj 5 test.t2.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (incremental, BNL join)
-1 SIMPLE t7 hash_ALL NULL #hash#$hj 5 test.t5.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t8 hash_ALL NULL #hash#$hj 5 test.t5.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t2`.`b` and `test`.`t2`.`b` is not null) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(`test`.`t8`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` < 10 and `test`.`t5`.`b` is not null)) on(`test`.`t7`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` >= 2 and `test`.`t5`.`b` is not null)) on((`test`.`t3`.`b` = 2 or `test`.`t3`.`c` is null) and (`test`.`t6`.`b` = 2 or `test`.`t6`.`c` is null) and (`test`.`t5`.`b` = `test`.`t0`.`b` or `test`.`t3`.`c` is null or `test`.`t6`.`c` is null or `test`.`t8`.`c` is null) and `test`.`t1`.`a` <> 2) where `test`.`t0`.`a` = 1 and `test`.`t1`.`b` = `test`.`t0`.`b` and (`test`.`t2`.`a` >= 4 or `test`.`t2`.`c` is null)
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2)
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL);
-a b a b a b a b a b a b a b a b a b
-1 2 3 2 4 2 1 2 3 2 2 2 3 2 2 2 0 2
-1 2 3 2 4 2 1 2 4 2 2 2 3 2 2 2 0 2
-1 2 3 2 4 2 1 2 3 2 2 2 6 2 2 2 0 2
-1 2 3 2 4 2 1 2 4 2 2 2 6 2 2 2 0 2
-1 2 3 2 4 2 1 2 3 2 2 2 3 2 2 2 1 2
-1 2 3 2 4 2 1 2 4 2 2 2 3 2 2 2 1 2
-1 2 3 2 4 2 1 2 3 2 2 2 6 2 2 2 1 2
-1 2 3 2 4 2 1 2 4 2 2 2 6 2 2 2 1 2
-1 2 3 2 4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
-1 2 3 2 4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
-1 2 3 2 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL
-1 2 3 2 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL
-1 2 3 2 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
-1 2 3 2 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
-1 2 3 2 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
-1 2 3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2
-1 2 3 2 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
-1 2 3 2 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL
-1 2 3 2 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
-1 2 2 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-EXPLAIN EXTENDED
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2),
-t9
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL) AND
-(t3.a < 5 OR t3.c IS NULL) AND
-(t3.b=t4.b OR t3.c IS NULL OR t4.c IS NULL) AND
-(t5.a >=2 OR t5.c IS NULL) AND
-(t6.a >=4 OR t6.c IS NULL) AND
-(t7.a <= 2 OR t7.c IS NULL) AND
-(t8.a < 1 OR t8.c IS NULL) AND
-(t8.b=t9.b OR t8.c IS NULL) AND
-(t9.a=1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t1 hash_ALL NULL #hash#$hj 5 test.t0.b 3 100.00 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t4 hash_ALL NULL #hash#$hj 5 test.t2.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t7 hash_ALL NULL #hash#$hj 5 test.t5.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t8 hash_ALL NULL #hash#$hj 5 test.t5.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b`,`test`.`t9`.`a` AS `a`,`test`.`t9`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t2`.`b` and `test`.`t2`.`b` is not null) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(`test`.`t8`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` < 10 and `test`.`t5`.`b` is not null)) on(`test`.`t7`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` >= 2 and `test`.`t5`.`b` is not null)) on((`test`.`t3`.`b` = 2 or `test`.`t3`.`c` is null) and (`test`.`t6`.`b` = 2 or `test`.`t6`.`c` is null) and (`test`.`t5`.`b` = `test`.`t0`.`b` or `test`.`t3`.`c` is null or `test`.`t6`.`c` is null or `test`.`t8`.`c` is null) and `test`.`t1`.`a` <> 2) join `test`.`t9` where `test`.`t0`.`a` = 1 and `test`.`t1`.`b` = `test`.`t0`.`b` and `test`.`t9`.`a` = 1 and (`test`.`t2`.`a` >= 4 or `test`.`t2`.`c` is null) and (`test`.`t3`.`a` < 5 or `test`.`t3`.`c` is null) and (`test`.`t4`.`b` = `test`.`t3`.`b` or `test`.`t3`.`c` is null or `test`.`t4`.`c` is null) and (`test`.`t5`.`a` >= 2 or `test`.`t5`.`c` is null) and (`test`.`t6`.`a` >= 4 or `test`.`t6`.`c` is null) and (`test`.`t7`.`a` <= 2 or `test`.`t7`.`c` is null) and (`test`.`t8`.`a` < 1 or `test`.`t8`.`c` is null) and (`test`.`t9`.`b` = `test`.`t8`.`b` or `test`.`t8`.`c` is null)
-SELECT t9.a,t9.b
-FROM t9;
-a b
-1 1
-1 2
-3 3
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2),
-t9
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL) AND
-(t3.a < 5 OR t3.c IS NULL) AND
-(t3.b=t4.b OR t3.c IS NULL OR t4.c IS NULL) AND
-(t5.a >=2 OR t5.c IS NULL) AND
-(t6.a >=4 OR t6.c IS NULL) AND
-(t7.a <= 2 OR t7.c IS NULL) AND
-(t8.a < 1 OR t8.c IS NULL) AND
-(t8.b=t9.b OR t8.c IS NULL) AND
-(t9.a=1);
-a b a b a b a b a b a b a b a b a b a b
-1 2 3 2 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL 1 1
-1 2 3 2 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL 1 1
-1 2 3 2 4 2 1 2 3 2 2 2 6 2 2 2 0 2 1 2
-1 2 3 2 4 2 1 2 4 2 2 2 6 2 2 2 0 2 1 2
-1 2 3 2 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL 1 2
-1 2 3 2 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL 1 2
-1 2 3 2 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL 1 1
-1 2 3 2 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL 1 1
-1 2 3 2 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL 1 2
-1 2 3 2 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL 1 1
-1 2 3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL 1 1
-1 2 3 2 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL 1 2
-1 2 2 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1 1
-1 2 2 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1 2
-SELECT t1.a,t1.b
-FROM t1;
-a b
-1 3
-2 2
-3 2
-SELECT t2.a,t2.b
-FROM t2;
-a b
-3 3
-4 2
-5 3
-SELECT t3.a,t3.b
-FROM t3;
-a b
-1 2
-2 2
-SELECT t2.a,t2.b,t3.a,t3.b
-FROM t2
-LEFT JOIN
-t3
-ON t2.b=t3.b;
-a b a b
-4 2 1 2
-4 2 2 2
-3 3 NULL NULL
-5 3 NULL NULL
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b
-FROM t1, t2
-LEFT JOIN
-t3
-ON t2.b=t3.b
-WHERE t1.a <= 2;
-a b a b a b
-1 3 4 2 1 2
-2 2 4 2 1 2
-1 3 4 2 2 2
-2 2 4 2 2 2
-1 3 3 3 NULL NULL
-2 2 3 3 NULL NULL
-1 3 5 3 NULL NULL
-2 2 5 3 NULL NULL
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b
-FROM t1, t3
-RIGHT JOIN
-t2
-ON t2.b=t3.b
-WHERE t1.a <= 2;
-a b a b a b
-1 3 4 2 1 2
-2 2 4 2 1 2
-1 3 4 2 2 2
-2 2 4 2 2 2
-1 3 3 3 NULL NULL
-2 2 3 3 NULL NULL
-1 3 5 3 NULL NULL
-2 2 5 3 NULL NULL
-SELECT t3.a,t3.b,t4.a,t4.b
-FROM t3,t4;
-a b a b
-1 2 3 2
-2 2 3 2
-1 2 4 2
-2 2 4 2
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b;
-a b a b a b
-4 2 1 2 3 2
-4 2 1 2 4 2
-3 3 NULL NULL NULL NULL
-5 3 NULL NULL NULL NULL
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t1, t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b
-WHERE t1.a <= 2;
-a b a b a b a b
-1 3 4 2 1 2 3 2
-2 2 4 2 1 2 3 2
-1 3 4 2 1 2 4 2
-2 2 4 2 1 2 4 2
-1 3 3 3 NULL NULL NULL NULL
-2 2 3 3 NULL NULL NULL NULL
-1 3 5 3 NULL NULL NULL NULL
-2 2 5 3 NULL NULL NULL NULL
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t1, (t3, t4)
-RIGHT JOIN
-t2
-ON t3.a=1 AND t2.b=t4.b
-WHERE t1.a <= 2;
-a b a b a b a b
-1 3 4 2 1 2 3 2
-2 2 4 2 1 2 3 2
-1 3 4 2 1 2 4 2
-2 2 4 2 1 2 4 2
-1 3 3 3 NULL NULL NULL NULL
-2 2 3 3 NULL NULL NULL NULL
-1 3 5 3 NULL NULL NULL NULL
-2 2 5 3 NULL NULL NULL NULL
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t1, (t3, t4)
-RIGHT JOIN
-t2
-ON t3.a=1 AND t2.b=t4.b
-WHERE t1.a <= 2;
-a b a b a b a b
-1 3 4 2 1 2 3 2
-2 2 4 2 1 2 3 2
-1 3 4 2 1 2 4 2
-2 2 4 2 1 2 4 2
-1 3 3 3 NULL NULL NULL NULL
-2 2 3 3 NULL NULL NULL NULL
-1 3 5 3 NULL NULL NULL NULL
-2 2 5 3 NULL NULL NULL NULL
-EXPLAIN EXTENDED
-SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM t1, (t3, t4)
-RIGHT JOIN
-t2
-ON t3.a=1 AND t2.b=t4.b
-WHERE t1.a <= 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t4 hash_ALL NULL #hash#$hj 5 test.t2.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b` from `test`.`t1` join `test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t2`.`b` and `test`.`t2`.`b` is not null) where `test`.`t1`.`a` <= 2
-INSERT INTO t2 VALUES (-1,9,0), (-3,10,0), (-2,8,0), (-4,11,0), (-5,15,0);
-CREATE INDEX idx_b ON t2(b);
-EXPLAIN EXTENDED
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM (t3,t4)
-LEFT JOIN
-(t1,t2)
-ON t3.a=1 AND t3.b=t2.b AND t2.b=t4.b AND t2.a>0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (flat, BNL join)
-1 SIMPLE t2 ref idx_b idx_b 5 test.t3.b 2 100.00 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (incremental, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b` from `test`.`t3` join `test`.`t4` left join (`test`.`t1` join `test`.`t2`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t3`.`b` and `test`.`t2`.`b` = `test`.`t3`.`b` and `test`.`t2`.`a` > 0 and `test`.`t3`.`b` is not null) where 1
-SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
-FROM (t3,t4)
-LEFT JOIN
-(t1,t2)
-ON t3.a=1 AND t3.b=t2.b AND t2.b=t4.b AND t2.a>0;
-a b a b a b
-4 2 1 2 3 2
-4 2 1 2 4 2
-4 2 1 2 3 2
-4 2 1 2 4 2
-4 2 1 2 3 2
-4 2 1 2 4 2
-NULL NULL 2 2 3 2
-NULL NULL 2 2 4 2
-EXPLAIN EXTENDED
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b AND t2.a>0,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2),
-t9
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL) AND
-(t3.a < 5 OR t3.c IS NULL) AND
-(t3.b=t4.b OR t3.c IS NULL OR t4.c IS NULL) AND
-(t5.a >=2 OR t5.c IS NULL) AND
-(t6.a >=4 OR t6.c IS NULL) AND
-(t7.a <= 2 OR t7.c IS NULL) AND
-(t8.a < 1 OR t8.c IS NULL) AND
-(t8.b=t9.b OR t8.c IS NULL) AND
-(t9.a=1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t1 hash_ALL NULL #hash#$hj 5 test.t0.b 3 100.00 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t7 hash_ALL NULL #hash#$hj 5 test.t5.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t8 hash_ALL NULL #hash#$hj 5 test.t5.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t4 hash_ALL NULL #hash#$hj 5 test.t2.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b`,`test`.`t9`.`a` AS `a`,`test`.`t9`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t2`.`b` and `test`.`t2`.`a` > 0 and `test`.`t2`.`b` is not null) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(`test`.`t8`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` < 10 and `test`.`t5`.`b` is not null)) on(`test`.`t7`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` >= 2 and `test`.`t5`.`b` is not null)) on((`test`.`t3`.`b` = 2 or `test`.`t3`.`c` is null) and (`test`.`t6`.`b` = 2 or `test`.`t6`.`c` is null) and (`test`.`t5`.`b` = `test`.`t0`.`b` or `test`.`t3`.`c` is null or `test`.`t6`.`c` is null or `test`.`t8`.`c` is null) and `test`.`t1`.`a` <> 2) join `test`.`t9` where `test`.`t0`.`a` = 1 and `test`.`t1`.`b` = `test`.`t0`.`b` and `test`.`t9`.`a` = 1 and (`test`.`t2`.`a` >= 4 or `test`.`t2`.`c` is null) and (`test`.`t3`.`a` < 5 or `test`.`t3`.`c` is null) and (`test`.`t3`.`b` = `test`.`t4`.`b` or `test`.`t3`.`c` is null or `test`.`t4`.`c` is null) and (`test`.`t5`.`a` >= 2 or `test`.`t5`.`c` is null) and (`test`.`t6`.`a` >= 4 or `test`.`t6`.`c` is null) and (`test`.`t7`.`a` <= 2 or `test`.`t7`.`c` is null) and (`test`.`t8`.`a` < 1 or `test`.`t8`.`c` is null) and (`test`.`t9`.`b` = `test`.`t8`.`b` or `test`.`t8`.`c` is null)
-INSERT INTO t4 VALUES (-3,12,0), (-4,13,0), (-1,11,0), (-3,11,0), (-5,15,0);
-INSERT INTO t5 VALUES (-3,11,0), (-2,12,0), (-3,13,0), (-4,12,0);
-CREATE INDEX idx_b ON t4(b);
-CREATE INDEX idx_b ON t5(b);
-EXPLAIN EXTENDED
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b AND t2.a>0 AND t4.a>0,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b AND t5.a>0
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2),
-t9
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL) AND
-(t3.a < 5 OR t3.c IS NULL) AND
-(t3.b=t4.b OR t3.c IS NULL OR t4.c IS NULL) AND
-(t5.a >=2 OR t5.c IS NULL) AND
-(t6.a >=4 OR t6.c IS NULL) AND
-(t7.a <= 2 OR t7.c IS NULL) AND
-(t8.a < 1 OR t8.c IS NULL) AND
-(t8.b=t9.b OR t8.c IS NULL) AND
-(t9.a=1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t1 hash_ALL NULL #hash#$hj 5 test.t0.b 3 100.00 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t4 ref idx_b idx_b 5 test.t2.b 2 100.00 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t5 ALL idx_b NULL NULL NULL 7 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t7 hash_ALL NULL #hash#$hj 5 test.t5.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t8 hash_ALL NULL #hash#$hj 5 test.t5.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b`,`test`.`t9`.`a` AS `a`,`test`.`t9`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t2`.`b` and `test`.`t2`.`a` > 0 and `test`.`t4`.`a` > 0 and `test`.`t2`.`b` is not null) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(`test`.`t8`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` < 10 and `test`.`t5`.`b` is not null)) on(`test`.`t7`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` >= 2 and `test`.`t5`.`a` > 0 and `test`.`t5`.`b` is not null)) on((`test`.`t3`.`b` = 2 or `test`.`t3`.`c` is null) and (`test`.`t6`.`b` = 2 or `test`.`t6`.`c` is null) and (`test`.`t5`.`b` = `test`.`t0`.`b` or `test`.`t3`.`c` is null or `test`.`t6`.`c` is null or `test`.`t8`.`c` is null) and `test`.`t1`.`a` <> 2) join `test`.`t9` where `test`.`t0`.`a` = 1 and `test`.`t1`.`b` = `test`.`t0`.`b` and `test`.`t9`.`a` = 1 and (`test`.`t2`.`a` >= 4 or `test`.`t2`.`c` is null) and (`test`.`t3`.`a` < 5 or `test`.`t3`.`c` is null) and (`test`.`t4`.`b` = `test`.`t3`.`b` or `test`.`t3`.`c` is null or `test`.`t4`.`c` is null) and (`test`.`t5`.`a` >= 2 or `test`.`t5`.`c` is null) and (`test`.`t6`.`a` >= 4 or `test`.`t6`.`c` is null) and (`test`.`t7`.`a` <= 2 or `test`.`t7`.`c` is null) and (`test`.`t8`.`a` < 1 or `test`.`t8`.`c` is null) and (`test`.`t8`.`b` = `test`.`t9`.`b` or `test`.`t8`.`c` is null)
-INSERT INTO t8 VALUES (-3,12,0), (-1,14,0), (-5,15,0), (-1,11,0), (-4,13,0);
-CREATE INDEX idx_b ON t8(b);
-EXPLAIN EXTENDED
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b AND t2.a>0 AND t4.a>0,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10 AND t8.a>=0
-)
-ON t6.b >= 2 AND t5.b=t7.b AND t5.a>0
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2),
-t9
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL) AND
-(t3.a < 5 OR t3.c IS NULL) AND
-(t3.b=t4.b OR t3.c IS NULL OR t4.c IS NULL) AND
-(t5.a >=2 OR t5.c IS NULL) AND
-(t6.a >=4 OR t6.c IS NULL) AND
-(t7.a <= 2 OR t7.c IS NULL) AND
-(t8.a < 1 OR t8.c IS NULL) AND
-(t8.b=t9.b OR t8.c IS NULL) AND
-(t9.a=1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t1 hash_ALL NULL #hash#$hj 5 test.t0.b 3 100.00 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t4 ref idx_b idx_b 5 test.t2.b 2 100.00 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t5 ALL idx_b NULL NULL NULL 7 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t7 hash_ALL NULL #hash#$hj 5 test.t5.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t8 ref idx_b idx_b 5 test.t5.b 2 100.00 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b`,`test`.`t9`.`a` AS `a`,`test`.`t9`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t2`.`b` and `test`.`t2`.`a` > 0 and `test`.`t4`.`a` > 0 and `test`.`t2`.`b` is not null) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(`test`.`t8`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` < 10 and `test`.`t8`.`a` >= 0 and `test`.`t5`.`b` is not null)) on(`test`.`t7`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` >= 2 and `test`.`t5`.`a` > 0 and `test`.`t5`.`b` is not null)) on((`test`.`t3`.`b` = 2 or `test`.`t3`.`c` is null) and (`test`.`t6`.`b` = 2 or `test`.`t6`.`c` is null) and (`test`.`t5`.`b` = `test`.`t0`.`b` or `test`.`t3`.`c` is null or `test`.`t6`.`c` is null or `test`.`t8`.`c` is null) and `test`.`t1`.`a` <> 2) join `test`.`t9` where `test`.`t0`.`a` = 1 and `test`.`t1`.`b` = `test`.`t0`.`b` and `test`.`t9`.`a` = 1 and (`test`.`t2`.`a` >= 4 or `test`.`t2`.`c` is null) and (`test`.`t3`.`a` < 5 or `test`.`t3`.`c` is null) and (`test`.`t4`.`b` = `test`.`t3`.`b` or `test`.`t3`.`c` is null or `test`.`t4`.`c` is null) and (`test`.`t5`.`a` >= 2 or `test`.`t5`.`c` is null) and (`test`.`t6`.`a` >= 4 or `test`.`t6`.`c` is null) and (`test`.`t7`.`a` <= 2 or `test`.`t7`.`c` is null) and (`test`.`t8`.`a` < 1 or `test`.`t8`.`c` is null) and (`test`.`t8`.`b` = `test`.`t9`.`b` or `test`.`t8`.`c` is null)
-INSERT INTO t1 VALUES (-1,133,0), (-2,12,0), (-3,11,0), (-5,15,0);
-CREATE INDEX idx_b ON t1(b);
-CREATE INDEX idx_a ON t0(a);
-EXPLAIN EXTENDED
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2) AND t1.a>0,
-t9
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL) AND
-(t3.a < 5 OR t3.c IS NULL) AND
-(t3.b=t4.b OR t3.c IS NULL OR t4.c IS NULL) AND
-(t5.a >=2 OR t5.c IS NULL) AND
-(t6.a >=4 OR t6.c IS NULL) AND
-(t7.a <= 2 OR t7.c IS NULL) AND
-(t8.a < 1 OR t8.c IS NULL) AND
-(t8.b=t9.b OR t8.c IS NULL) AND
-(t9.a=1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ref idx_a idx_a 5 const 1 100.00 Using where
-1 SIMPLE t1 ref idx_b idx_b 5 test.t0.b 2 100.00 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t4 ref idx_b idx_b 5 test.t2.b 2 100.00 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t5 ALL idx_b NULL NULL NULL 7 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t7 hash_ALL NULL #hash#$hj 5 test.t5.b 2 100.00 Using where; Using join buffer (incremental, BNLH join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t8 ref idx_b idx_b 5 test.t5.b 2 100.00 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b`,`test`.`t9`.`a` AS `a`,`test`.`t9`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(`test`.`t3`.`a` = 1 and `test`.`t4`.`b` = `test`.`t2`.`b` and `test`.`t2`.`b` is not null) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(`test`.`t8`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` < 10 and `test`.`t5`.`b` is not null)) on(`test`.`t7`.`b` = `test`.`t5`.`b` and `test`.`t6`.`b` >= 2 and `test`.`t5`.`b` is not null)) on((`test`.`t3`.`b` = 2 or `test`.`t3`.`c` is null) and (`test`.`t6`.`b` = 2 or `test`.`t6`.`c` is null) and (`test`.`t5`.`b` = `test`.`t0`.`b` or `test`.`t3`.`c` is null or `test`.`t6`.`c` is null or `test`.`t8`.`c` is null) and `test`.`t1`.`a` <> 2 and `test`.`t1`.`a` > 0) join `test`.`t9` where `test`.`t0`.`a` = 1 and `test`.`t1`.`b` = `test`.`t0`.`b` and `test`.`t9`.`a` = 1 and (`test`.`t2`.`a` >= 4 or `test`.`t2`.`c` is null) and (`test`.`t3`.`a` < 5 or `test`.`t3`.`c` is null) and (`test`.`t4`.`b` = `test`.`t3`.`b` or `test`.`t3`.`c` is null or `test`.`t4`.`c` is null) and (`test`.`t5`.`a` >= 2 or `test`.`t5`.`c` is null) and (`test`.`t6`.`a` >= 4 or `test`.`t6`.`c` is null) and (`test`.`t7`.`a` <= 2 or `test`.`t7`.`c` is null) and (`test`.`t8`.`a` < 1 or `test`.`t8`.`c` is null) and (`test`.`t8`.`b` = `test`.`t9`.`b` or `test`.`t8`.`c` is null)
-SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
-t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
-FROM t0,t1
-LEFT JOIN
-(
-t2
-LEFT JOIN
-(t3, t4)
-ON t3.a=1 AND t2.b=t4.b,
-t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b
-)
-ON (t3.b=2 OR t3.c IS NULL) AND (t6.b=2 OR t6.c IS NULL) AND
-(t1.b=t5.b OR t3.c IS NULL OR t6.c IS NULL or t8.c IS NULL) AND
-(t1.a != 2) AND t1.a>0,
-t9
-WHERE t0.a=1 AND
-t0.b=t1.b AND
-(t2.a >= 4 OR t2.c IS NULL) AND
-(t3.a < 5 OR t3.c IS NULL) AND
-(t3.b=t4.b OR t3.c IS NULL OR t4.c IS NULL) AND
-(t5.a >=2 OR t5.c IS NULL) AND
-(t6.a >=4 OR t6.c IS NULL) AND
-(t7.a <= 2 OR t7.c IS NULL) AND
-(t8.a < 1 OR t8.c IS NULL) AND
-(t8.b=t9.b OR t8.c IS NULL) AND
-(t9.a=1);
-a b a b a b a b a b a b a b a b a b a b
-1 2 3 2 4 2 1 2 4 2 2 2 6 2 2 2 0 2 1 2
-1 2 3 2 4 2 1 2 3 2 2 2 6 2 2 2 0 2 1 2
-1 2 3 2 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL 1 1
-1 2 3 2 4 2 1 2 3 2 3 1 6 2 1 1 NULL NULL 1 2
-1 2 3 2 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL 1 1
-1 2 3 2 4 2 1 2 4 2 3 1 6 2 1 1 NULL NULL 1 2
-1 2 3 2 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL 1 1
-1 2 3 2 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL 1 2
-1 2 3 2 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL 1 1
-1 2 3 2 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 2 2 6 2 2 2 0 2 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL 1 1
-1 2 3 2 5 3 NULL NULL NULL NULL 3 1 6 2 1 1 NULL NULL 1 2
-1 2 3 2 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL 1 1
-1 2 3 2 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL 1 2
-1 2 2 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1 1
-1 2 2 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1 2
-SELECT t2.a,t2.b
-FROM t2;
-a b
-3 3
-4 2
-5 3
--1 9
--3 10
--2 8
--4 11
--5 15
-SELECT t3.a,t3.b
-FROM t3;
-a b
-1 2
-2 2
-SELECT t2.a,t2.b,t3.a,t3.b
-FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t2.a = 4 OR (t2.a > 4 AND t3.a IS NULL);
-a b a b
-4 2 1 2
-4 2 2 2
-5 3 NULL NULL
-SELECT t2.a,t2.b,t3.a,t3.b
-FROM t2 LEFT JOIN (t3) ON t2.b=t3.b
-WHERE t2.a = 4 OR (t2.a > 4 AND t3.a IS NULL);
-a b a b
-4 2 1 2
-4 2 2 2
-5 3 NULL NULL
-ALTER TABLE t3
-CHANGE COLUMN a a1 int,
-CHANGE COLUMN c c1 int;
-SELECT t2.a,t2.b,t3.a1,t3.b
-FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t2.a = 4 OR (t2.a > 4 AND t3.a1 IS NULL);
-a b a1 b
-4 2 1 2
-4 2 2 2
-5 3 NULL NULL
-SELECT t2.a,t2.b,t3.a1,t3.b
-FROM t2 NATURAL LEFT JOIN t3
-WHERE t2.a = 4 OR (t2.a > 4 AND t3.a1 IS NULL);
-a b a1 b
-4 2 1 2
-4 2 2 2
-5 3 NULL NULL
-DROP TABLE t0,t1,t2,t3,t4,t5,t6,t7,t8,t9;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int);
-CREATE TABLE t3 (a int);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-INSERT INTO t3 VALUES (2);
-INSERT INTO t1 VALUES (2);
-SELECT * FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON t2.a=t3.a) ON t1.a=t3.a;
-a a a
-2 2 2
-1 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 LEFT JOIN t3 ON t2.a=t3.a ON t1.a=t3.a;
-a a a
-2 2 2
-1 NULL NULL
-DELETE FROM t1 WHERE a=2;
-SELECT * FROM t1 LEFT JOIN t2 LEFT JOIN t3 ON t2.a=t3.a ON t1.a=t3.a;
-a a a
-1 NULL NULL
-DELETE FROM t2;
-SELECT * FROM t1 LEFT JOIN t2 LEFT JOIN t3 ON t2.a=t3.a ON t1.a=t3.a;
-a a a
-1 NULL NULL
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1(a int, key (a));
-CREATE TABLE t2(b int, key (b));
-CREATE TABLE t3(c int, key (c));
-INSERT INTO t1 VALUES (NULL), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
-(10), (11), (12), (13), (14), (15), (16), (17), (18), (19);
-INSERT INTO t2 VALUES (NULL), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
-(10), (11), (12), (13), (14), (15), (16), (17), (18), (19);
-INSERT INTO t3 VALUES (0), (1), (2), (3), (4), (5);
-EXPLAIN SELECT a, b, c FROM t1 LEFT JOIN (t2, t3) ON c < 3 and b = c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 21 Using index
-1 SIMPLE t3 index c c 5 NULL 6 Using where; Using index
-1 SIMPLE t2 ref b b 5 test.t3.c 2 Using index
-EXPLAIN SELECT a, b, c FROM t1 LEFT JOIN (t2, t3) ON b < 3 and b = c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 21 Using index
-1 SIMPLE t3 index c c 5 NULL 6 Using where; Using index
-1 SIMPLE t2 ref b b 5 test.t3.c 2 Using index
-SELECT a, b, c FROM t1 LEFT JOIN (t2, t3) ON b < 3 and b = c;
-a b c
-NULL 0 0
-NULL 1 1
-NULL 2 2
-0 0 0
-0 1 1
-0 2 2
-1 0 0
-1 1 1
-1 2 2
-2 0 0
-2 1 1
-2 2 2
-3 0 0
-3 1 1
-3 2 2
-4 0 0
-4 1 1
-4 2 2
-5 0 0
-5 1 1
-5 2 2
-6 0 0
-6 1 1
-6 2 2
-7 0 0
-7 1 1
-7 2 2
-8 0 0
-8 1 1
-8 2 2
-9 0 0
-9 1 1
-9 2 2
-10 0 0
-10 1 1
-10 2 2
-11 0 0
-11 1 1
-11 2 2
-12 0 0
-12 1 1
-12 2 2
-13 0 0
-13 1 1
-13 2 2
-14 0 0
-14 1 1
-14 2 2
-15 0 0
-15 1 1
-15 2 2
-16 0 0
-16 1 1
-16 2 2
-17 0 0
-17 1 1
-17 2 2
-18 0 0
-18 1 1
-18 2 2
-19 0 0
-19 1 1
-19 2 2
-DELETE FROM t3;
-EXPLAIN SELECT a, b, c FROM t1 LEFT JOIN (t2, t3) ON b < 3 and b = c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 21 Using index
-1 SIMPLE t3 index c c 5 NULL 0 Using where; Using index
-1 SIMPLE t2 ref b b 5 test.t3.c 2 Using index
-SELECT a, b, c FROM t1 LEFT JOIN (t2, t3) ON b < 3 and b = c;
-a b c
-NULL NULL NULL
-0 NULL NULL
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-5 NULL NULL
-6 NULL NULL
-7 NULL NULL
-8 NULL NULL
-9 NULL NULL
-10 NULL NULL
-11 NULL NULL
-12 NULL NULL
-13 NULL NULL
-14 NULL NULL
-15 NULL NULL
-16 NULL NULL
-17 NULL NULL
-18 NULL NULL
-19 NULL NULL
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (c11 int);
-CREATE TABLE t2 (c21 int);
-CREATE TABLE t3 (c31 int);
-INSERT INTO t1 VALUES (4), (5);
-SELECT * FROM t1 LEFT JOIN t2 ON c11=c21;
-c11 c21
-4 NULL
-5 NULL
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON c11=c21;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 0 Const row not found
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON c21=c31) ON c11=c21;
-c11 c21 c31
-4 NULL NULL
-5 NULL NULL
-EXPLAIN SELECT * FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON c21=c31) ON c11=c21;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 5 test.t1.c11 0 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 0 Using where; Using join buffer (incremental, BNL join)
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (goods int(12) NOT NULL, price varchar(128) NOT NULL);
-INSERT INTO t1 VALUES (23, 2340), (26, 9900);
-CREATE TABLE t2 (goods int(12), name varchar(50), shop char(2));
-INSERT INTO t2 VALUES (23, 'as300', 'fr'), (26, 'as600', 'fr');
-create table t3 (groupid int(12) NOT NULL, goodsid int(12) NOT NULL);
-INSERT INTO t3 VALUES (3,23), (6,26);
-CREATE TABLE t4 (groupid int(12));
-INSERT INTO t4 VALUES (1), (2), (3), (4), (5), (6);
-SELECT * FROM
-(SELECT DISTINCT gl.groupid, gp.price
-FROM t4 gl
-LEFT JOIN
-(t3 g INNER JOIN t2 p ON g.goodsid = p.goods
-INNER JOIN t1 gp ON p.goods = gp.goods)
-ON gl.groupid = g.groupid and p.shop = 'fr') t;
-groupid price
-3 2340
-6 9900
-1 NULL
-2 NULL
-4 NULL
-5 NULL
-CREATE VIEW v1 AS
-SELECT g.groupid groupid, p.goods goods,
-p.name name, p.shop shop,
-gp.price price
-FROM t3 g INNER JOIN t2 p ON g.goodsid = p.goods
-INNER JOIN t1 gp on p.goods = gp.goods;
-CREATE VIEW v2 AS
-SELECT DISTINCT g.groupid, fr.price
-FROM t4 g
-LEFT JOIN
-v1 fr on g.groupid = fr.groupid and fr.shop = 'fr';
-SELECT * FROM v2;
-groupid price
-3 2340
-6 9900
-1 NULL
-2 NULL
-4 NULL
-5 NULL
-SELECT * FROM
-(SELECT DISTINCT g.groupid, fr.price
-FROM t4 g
-LEFT JOIN
-v1 fr on g.groupid = fr.groupid and fr.shop = 'fr') t;
-groupid price
-3 2340
-6 9900
-1 NULL
-2 NULL
-4 NULL
-5 NULL
-DROP VIEW v1,v2;
-DROP TABLE t1,t2,t3,t4;
-CREATE TABLE t1(a int);
-CREATE TABLE t2(b int);
-CREATE TABLE t3(c int, d int);
-CREATE TABLE t4(d int);
-CREATE TABLE t5(e int, f int);
-CREATE TABLE t6(f int);
-CREATE VIEW v1 AS
-SELECT e FROM t5 JOIN t6 ON t5.e=t6.f;
-CREATE VIEW v2 AS
-SELECT e FROM t5 NATURAL JOIN t6;
-SELECT t1.a FROM t1 JOIN t2 ON a=b JOIN t3 ON a=c JOIN t4 USING(d);
-a
-SELECT t1.x FROM t1 JOIN t2 ON a=b JOIN t3 ON a=c JOIN t4 USING(d);
-ERROR 42S22: Unknown column 't1.x' in 'field list'
-SELECT t1.a FROM t1 JOIN t2 ON a=b JOIN t3 ON a=c NATURAL JOIN t4;
-a
-SELECT t1.x FROM t1 JOIN t2 ON a=b JOIN t3 ON a=c NATURAL JOIN t4;
-ERROR 42S22: Unknown column 't1.x' in 'field list'
-SELECT v1.e FROM v1 JOIN t2 ON e=b JOIN t3 ON e=c JOIN t4 USING(d);
-e
-SELECT v1.x FROM v1 JOIN t2 ON e=b JOIN t3 ON e=c JOIN t4 USING(d);
-ERROR 42S22: Unknown column 'v1.x' in 'field list'
-SELECT v2.e FROM v2 JOIN t2 ON e=b JOIN t3 ON e=c JOIN t4 USING(d);
-e
-SELECT v2.x FROM v2 JOIN t2 ON e=b JOIN t3 ON e=c JOIN t4 USING(d);
-ERROR 42S22: Unknown column 'v2.x' in 'field list'
-DROP VIEW v1, v2;
-DROP TABLE t1, t2, t3, t4, t5, t6;
-create table t1 (id1 int(11) not null);
-insert into t1 values (1),(2);
-create table t2 (id2 int(11) not null);
-insert into t2 values (1),(2),(3),(4);
-create table t3 (id3 char(16) not null);
-insert into t3 values ('100');
-create table t4 (id2 int(11) not null, id3 char(16));
-create table t5 (id1 int(11) not null, key (id1));
-insert into t5 values (1),(2),(1);
-create view v1 as
-select t4.id3 from t4 join t2 on t4.id2 = t2.id2;
-select t1.id1 from t1 inner join (t3 left join v1 on t3.id3 = v1.id3);
-id1
-1
-2
-drop view v1;
-drop table t1, t2, t3, t4, t5;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3);
-create table t1(a int);
-insert into t1 select A.a + 10*(B.a) from t0 A, t0 B;
-create table t2 (a int, b int);
-insert into t2 values (1,1), (2,2), (3,3);
-create table t3(a int, b int, filler char(200), key(a));
-insert into t3 select a,a,'filler' from t1;
-insert into t3 select a,a,'filler' from t1;
-create table t4 like t3;
-insert into t4 select * from t3;
-insert into t4 select * from t3;
-create table t5 like t4;
-insert into t5 select * from t4;
-insert into t5 select * from t4;
-create table t6 like t5;
-insert into t6 select * from t5;
-insert into t6 select * from t5;
-create table t7 like t6;
-insert into t7 select * from t6;
-insert into t7 select * from t6;
-explain select * from t4 join
-t2 left join (t3 join t5 on t5.a=t3.b) on t3.a=t2.b where t4.a<=>t3.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL X
-1 SIMPLE t3 ref a a 5 test.t2.b X Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t5 ref a a 5 test.t3.b X Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t4 ref a a 5 test.t3.b X Using index condition(BKA); Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-explain select * from (t4 join t6 on t6.a=t4.b) right join t3 on t4.a=t3.b
-join t2 left join (t5 join t7 on t7.a=t5.b) on t5.a=t2.b where t3.a<=>t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL X
-1 SIMPLE t3 ref a a 5 test.t2.b X Using index condition(BKA); Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t4 ref a a 5 test.t3.b X Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t6 ref a a 5 test.t4.b X Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t5 ref a a 5 test.t2.b X Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t7 ref a a 5 test.t5.b X Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-explain select * from t2 left join
-(t3 left join (t4 join t6 on t6.a=t4.b) on t4.a=t3.b
-join t5 on t5.a=t3.b) on t3.a=t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL X
-1 SIMPLE t3 ref a a 5 test.t2.b X Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t5 ref a a 5 test.t3.b X Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t4 ref a a 5 test.t5.a X Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t6 ref a a 5 test.t4.b X Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-drop table t0, t1, t2, t3, t4, t5, t6, t7;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, filler char(100), key(a));
-insert into t2 select A.a + 10*B.a, '' from t1 A, t1 B;
-create table t3 like t2;
-insert into t3 select * from t2;
-explain select * from t1 left join
-(t2 left join t3 on (t2.a = t3.a))
-on (t1.a = t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10
-1 SIMPLE t2 ref a a 5 test.t1.a 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t3 ref a a 5 test.t1.a 1 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-drop table t1, t2, t3;
-CREATE TABLE t1 (id int NOT NULL PRIMARY KEY, type varchar(10));
-CREATE TABLE t2 (pid int NOT NULL PRIMARY KEY, type varchar(10));
-CREATE TABLE t3 (cid int NOT NULL PRIMARY KEY,
-id int NOT NULL,
-pid int NOT NULL);
-INSERT INTO t1 VALUES (1, 'A'), (3, 'C');
-INSERT INTO t2 VALUES (1, 'A'), (3, 'C');
-INSERT INTO t3 VALUES (1, 1, 1), (3, 3, 3);
-SELECT * FROM t1 p LEFT JOIN (t3 JOIN t1)
-ON (t1.id=t3.id AND t1.type='B' AND p.id=t3.id)
-LEFT JOIN t2 ON (t3.pid=t2.pid)
-WHERE p.id=1;
-id type cid id pid id type pid type
-1 A NULL NULL NULL NULL NULL NULL NULL
-CREATE VIEW v1 AS
-SELECT t3.* FROM t3 JOIN t1 ON t1.id=t3.id AND t1.type='B';
-SELECT * FROM t1 p LEFT JOIN v1 ON p.id=v1.id
-LEFT JOIN t2 ON v1.pid=t2.pid
-WHERE p.id=1;
-id type cid id pid pid type
-1 A NULL NULL NULL NULL NULL
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (id1 int PRIMARY KEY, id2 int);
-CREATE TABLE t2 (id1 int PRIMARY KEY, id2 int);
-CREATE TABLE t3 (id1 int PRIMARY KEY, id2 int);
-CREATE TABLE t4 (id1 int PRIMARY KEY, id2 int);
-CREATE TABLE t5 (id1 int PRIMARY KEY, id2 int);
-SELECT t1.id1 AS id, t5.id1 AS ngroupbynsa
-FROM t1 INNER JOIN t2 ON t2.id2 = t1.id1
-LEFT OUTER JOIN
-(t3 INNER JOIN t4 ON t4.id1 = t3.id2 INNER JOIN t5 ON t4.id2 = t5.id1)
-ON t3.id2 IS NOT NULL
-WHERE t1.id1=2;
-id ngroupbynsa
-PREPARE stmt FROM
-"SELECT t1.id1 AS id, t5.id1 AS ngroupbynsa
- FROM t1 INNER JOIN t2 ON t2.id2 = t1.id1
- LEFT OUTER JOIN
- (t3 INNER JOIN t4 ON t4.id1 = t3.id2 INNER JOIN t5 ON t4.id2 = t5.id1)
- ON t3.id2 IS NOT NULL
- WHERE t1.id1=2";
-EXECUTE stmt;
-id ngroupbynsa
-EXECUTE stmt;
-id ngroupbynsa
-EXECUTE stmt;
-id ngroupbynsa
-EXECUTE stmt;
-id ngroupbynsa
-INSERT INTO t1 VALUES (1,1), (2,1), (3,2);
-INSERT INTO t2 VALUES (2,1), (3,2), (4,3);
-INSERT INTO t3 VALUES (1,1), (3,2), (2,NULL);
-INSERT INTO t4 VALUES (1,1), (2,1), (3,3);
-INSERT INTO t5 VALUES (1,1), (2,2), (3,3), (4,3);
-EXECUTE stmt;
-id ngroupbynsa
-2 1
-2 1
-EXECUTE stmt;
-id ngroupbynsa
-2 1
-2 1
-EXECUTE stmt;
-id ngroupbynsa
-2 1
-2 1
-EXECUTE stmt;
-id ngroupbynsa
-2 1
-2 1
-SELECT t1.id1 AS id, t5.id1 AS ngroupbynsa
-FROM t1 INNER JOIN t2 ON t2.id2 = t1.id1
-LEFT OUTER JOIN
-(t3 INNER JOIN t4 ON t4.id1 = t3.id2 INNER JOIN t5 ON t4.id2 = t5.id1)
-ON t3.id2 IS NOT NULL
-WHERE t1.id1=2;
-id ngroupbynsa
-2 1
-2 1
-DROP TABLE t1,t2,t3,t4,t5;
-CREATE TABLE t1 (
-id int NOT NULL PRIMARY KEY,
-ct int DEFAULT NULL,
-pc int DEFAULT NULL,
-INDEX idx_ct (ct),
-INDEX idx_pc (pc)
-);
-INSERT INTO t1 VALUES
-(1,NULL,NULL),(2,NULL,NULL),(3,NULL,NULL),(4,NULL,NULL),(5,NULL,NULL);
-CREATE TABLE t2 (
-id int NOT NULL PRIMARY KEY,
-sr int NOT NULL,
-nm varchar(255) NOT NULL,
-INDEX idx_sr (sr)
-);
-INSERT INTO t2 VALUES
-(2441905,4308,'LesAbymes'),(2441906,4308,'Anse-Bertrand');
-CREATE TABLE t3 (
-id int NOT NULL PRIMARY KEY,
-ct int NOT NULL,
-ln int NOT NULL,
-INDEX idx_ct (ct),
-INDEX idx_ln (ln)
-);
-CREATE TABLE t4 (
-id int NOT NULL PRIMARY KEY,
-nm varchar(255) NOT NULL
-);
-INSERT INTO t4 VALUES (4308,'Guadeloupe'),(4309,'Martinique');
-SELECT t1.*
-FROM t1 LEFT JOIN
-(t2 LEFT JOIN t3 ON t3.ct=t2.id AND t3.ln='5') ON t1.ct=t2.id
-WHERE t1.id='5';
-id ct pc
-5 NULL NULL
-SELECT t1.*, t4.nm
-FROM t1 LEFT JOIN
-(t2 LEFT JOIN t3 ON t3.ct=t2.id AND t3.ln='5') ON t1.ct=t2.id
-LEFT JOIN t4 ON t2.sr=t4.id
-WHERE t1.id='5';
-id ct pc nm
-5 NULL NULL NULL
-DROP TABLE t1,t2,t3,t4;
-CREATE TABLE t1 (a INT, b INT);
-CREATE TABLE t2 (a INT);
-CREATE TABLE t3 (a INT, c INT);
-CREATE TABLE t4 (a INT, c INT);
-CREATE TABLE t5 (a INT, c INT);
-SELECT b FROM t1 JOIN (t2 LEFT JOIN t3 USING (a) LEFT JOIN t4 USING (a)
-LEFT JOIN t5 USING (a)) USING (a);
-b
-SELECT c FROM t1 JOIN (t2 LEFT JOIN t3 USING (a) LEFT JOIN t4 USING (a)
-LEFT JOIN t5 USING (a)) USING (a);
-ERROR 23000: Column 'c' in field list is ambiguous
-SELECT b FROM t1 JOIN (t2 JOIN t3 USING (a) JOIN t4 USING (a)
-JOIN t5 USING (a)) USING (a);
-b
-SELECT c FROM t1 JOIN (t2 JOIN t3 USING (a) JOIN t4 USING (a)
-JOIN t5 USING (a)) USING (a);
-ERROR 23000: Column 'c' in field list is ambiguous
-DROP TABLE t1,t2,t3,t4,t5;
-CREATE TABLE t1 (a INT, b INT);
-CREATE TABLE t2 (a INT, b INT);
-CREATE TABLE t3 (a INT, b INT);
-INSERT INTO t1 VALUES (1,1);
-INSERT INTO t2 VALUES (1,1);
-INSERT INTO t3 VALUES (1,1);
-SELECT * FROM t1 JOIN (t2 JOIN t3 USING (b)) USING (a);
-ERROR 23000: Column 'a' in from clause is ambiguous
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (
-carrier char(2) default NULL,
-id int NOT NULL auto_increment PRIMARY KEY
-);
-INSERT INTO t1 VALUES
-('CO',235371754),('CO',235376554),('CO',235376884),('CO',235377874),
-('CO',231060394),('CO',231059224),('CO',231059314),('CO',231060484),
-('CO',231060274),('CO',231060124),('CO',231060244),('CO',231058594),
-('CO',231058924),('CO',231058504),('CO',231059344),('CO',231060424),
-('CO',231059554),('CO',231060304),('CO',231059644),('CO',231059464),
-('CO',231059764),('CO',231058294),('CO',231058624),('CO',231058864),
-('CO',231059374),('CO',231059584),('CO',231059734),('CO',231059014),
-('CO',231059854),('CO',231059494),('CO',231059794),('CO',231058534),
-('CO',231058324),('CO',231058684),('CO',231059524),('CO',231059974);
-CREATE TABLE t2 (
-scan_date date default NULL,
-package_id int default NULL,
-INDEX scan_date(scan_date),
-INDEX package_id(package_id)
-);
-INSERT INTO t2 VALUES
-('2008-12-29',231062944),('2008-12-29',231065764),('2008-12-29',231066124),
-('2008-12-29',231060094),('2008-12-29',231061054),('2008-12-29',231065644),
-('2008-12-29',231064384),('2008-12-29',231064444),('2008-12-29',231073774),
-('2008-12-29',231058594),('2008-12-29',231059374),('2008-12-29',231066004),
-('2008-12-29',231068494),('2008-12-29',231070174),('2008-12-29',231071884),
-('2008-12-29',231063274),('2008-12-29',231063754),('2008-12-29',231064144),
-('2008-12-29',231069424),('2008-12-29',231073714),('2008-12-29',231058414),
-('2008-12-29',231060994),('2008-12-29',231069154),('2008-12-29',231068614),
-('2008-12-29',231071464),('2008-12-29',231074014),('2008-12-29',231059614),
-('2008-12-29',231059074),('2008-12-29',231059464),('2008-12-29',231069094),
-('2008-12-29',231067294),('2008-12-29',231070144),('2008-12-29',231073804),
-('2008-12-29',231072634),('2008-12-29',231058294),('2008-12-29',231065344),
-('2008-12-29',231066094),('2008-12-29',231069034),('2008-12-29',231058594),
-('2008-12-29',231059854),('2008-12-29',231059884),('2008-12-29',231059914),
-('2008-12-29',231063664),('2008-12-29',231063814),('2008-12-29',231063904);
-CREATE TABLE t3 (
-package_id int default NULL,
-INDEX package_id(package_id)
-);
-INSERT INTO t3 VALUES
-(231058294),(231058324),(231058354),(231058384),(231058414),(231058444),
-(231058474),(231058504),(231058534),(231058564),(231058594),(231058624),
-(231058684),(231058744),(231058804),(231058864),(231058924),(231058954),
-(231059014),(231059074),(231059104),(231059134),(231059164),(231059194),
-(231059224),(231059254),(231059284),(231059314),(231059344),(231059374),
-(231059404),(231059434),(231059464),(231059494),(231059524),(231059554),
-(231059584),(231059614),(231059644),(231059674),(231059704),(231059734),
-(231059764),(231059794),(231059824),(231059854),(231059884),(231059914),
-(231059944),(231059974),(231060004),(231060034),(231060064),(231060094),
-(231060124),(231060154),(231060184),(231060214),(231060244),(231060274),
-(231060304),(231060334),(231060364),(231060394),(231060424),(231060454),
-(231060484),(231060514),(231060544),(231060574),(231060604),(231060634),
-(231060664),(231060694),(231060724),(231060754),(231060784),(231060814),
-(231060844),(231060874),(231060904),(231060934),(231060964),(231060994),
-(231061024),(231061054),(231061084),(231061144),(231061174),(231061204),
-(231061234),(231061294),(231061354),(231061384),(231061414),(231061474),
-(231061564),(231061594),(231061624),(231061684),(231061714),(231061774),
-(231061804),(231061894),(231061984),(231062074),(231062134),(231062224),
-(231062254),(231062314),(231062374),(231062434),(231062494),(231062554),
-(231062584),(231062614),(231062644),(231062704),(231062734),(231062794),
-(231062854),(231062884),(231062944),(231063004),(231063034),(231063064),
-(231063124),(231063154),(231063184),(231063214),(231063274),(231063334),
-(231063394),(231063424),(231063454),(231063514),(231063574),(231063664);
-CREATE TABLE t4 (
-carrier char(2) NOT NULL default '' PRIMARY KEY,
-id int(11) default NULL,
-INDEX id(id)
-);
-INSERT INTO t4 VALUES
-('99',6),('SK',456),('UA',486),('AI',1081),('OS',1111),('VS',1510);
-CREATE TABLE t5 (
-carrier_id int default NULL,
-INDEX carrier_id(carrier_id)
-);
-INSERT INTO t5 VALUES
-(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),
-(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),
-(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),
-(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),
-(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),
-(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(6),(456),(456),(456),
-(456),(456),(456),(456),(456),(456),(456),(456),(456),(456),(456),(456),
-(456),(486),(1081),(1111),(1111),(1111),(1111),(1510);
-SELECT COUNT(*)
-FROM((t2 JOIN t1 ON t2.package_id = t1.id)
-JOIN t3 ON t3.package_id = t1.id);
-COUNT(*)
-6
-EXPLAIN
-SELECT COUNT(*)
-FROM ((t2 JOIN t1 ON t2.package_id = t1.id)
-JOIN t3 ON t3.package_id = t1.id)
-LEFT JOIN
-(t5 JOIN t4 ON t5.carrier_id = t4.id)
-ON t4.carrier = t1.carrier;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index package_id package_id 5 NULL 45 Using where; Using index
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.package_id 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t4 eq_ref PRIMARY,id PRIMARY 2 test.t1.carrier 1 Using where
-1 SIMPLE t5 ref carrier_id carrier_id 5 test.t4.id 22 Using index
-1 SIMPLE t3 ref package_id package_id 5 test.t2.package_id 1 Using index
-SELECT COUNT(*)
-FROM ((t2 JOIN t1 ON t2.package_id = t1.id)
-JOIN t3 ON t3.package_id = t1.id)
-LEFT JOIN
-(t5 JOIN t4 ON t5.carrier_id = t4.id)
-ON t4.carrier = t1.carrier;
-COUNT(*)
-6
-DROP TABLE t1,t2,t3,t4,t5;
-CREATE TABLE t1 (
-pk int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-a int DEFAULT NULL,
-KEY idx(a)
-);
-CREATE TABLE t2 (
-pk int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-a int DEFAULT NULL,
-KEY idx(a)
-);
-CREATE TABLE t3 (
-pk int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-a int DEFAULT NULL,
-KEY idx(a)
-);
-INSERT INTO t1 VALUES
-(1,2), (2,7), (3,5), (4,7), (5,5), (6,NULL), (7,NULL), (8,9);
-INSERT INTO t2 VALUES
-(1,NULL), (4,2), (5,2), (3,4), (2,8);
-INSERT INTO t3 VALUES
-(1,9), (2,2), (3,5), (4,2), (5,7), (6,0), (7,5);
-SELECT t1.pk, t1.a, t2.pk, t2.a,t3.pk, t3.a
-FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON t3.a=t2.a) ON t2.a=t1.a;
-pk a pk a pk a
-1 2 4 2 2 2
-1 2 5 2 2 2
-1 2 4 2 4 2
-1 2 5 2 4 2
-2 7 NULL NULL NULL NULL
-3 5 NULL NULL NULL NULL
-4 7 NULL NULL NULL NULL
-5 5 NULL NULL NULL NULL
-6 NULL NULL NULL NULL NULL
-7 NULL NULL NULL NULL NULL
-8 9 NULL NULL NULL NULL
-SELECT t1.pk, t1.a, t2.pk, t2.a,t3.pk, t3.a
-FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON t3.a=t2.a) ON t2.a=t1.a
-WHERE t2.pk IS NULL;
-pk a pk a pk a
-2 7 NULL NULL NULL NULL
-3 5 NULL NULL NULL NULL
-4 7 NULL NULL NULL NULL
-5 5 NULL NULL NULL NULL
-6 NULL NULL NULL NULL NULL
-7 NULL NULL NULL NULL NULL
-8 9 NULL NULL NULL NULL
-SELECT t1.pk, t1.a, t2.pk, t2.a,t3.pk, t3.a
-FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON t3.a=t2.a) ON t2.a=t1.a
-WHERE t3.pk IS NULL;
-pk a pk a pk a
-2 7 NULL NULL NULL NULL
-3 5 NULL NULL NULL NULL
-4 7 NULL NULL NULL NULL
-5 5 NULL NULL NULL NULL
-6 NULL NULL NULL NULL NULL
-7 NULL NULL NULL NULL NULL
-8 9 NULL NULL NULL NULL
-DROP TABLE t1, t2, t3;
-CREATE TABLE t1 (a int NOT NULL );
-INSERT INTO t1 VALUES (9), (9);
-CREATE TABLE t2 (a int NOT NULL );
-INSERT INTO t2 VALUES (9);
-CREATE TABLE t3 (a int NOT NULL, b int);
-INSERT INTO t3 VALUES (19,9);
-CREATE TABLE t4 (b int) ;
-SELECT * FROM t1 LEFT JOIN
-((t2 LEFT JOIN t3 ON t2.a=t3.b) LEFT JOIN t4 ON t3.a=t4.b)
-ON t1.a=t2.a;
-a a a b b
-9 9 19 9 NULL
-9 9 19 9 NULL
-SELECT * FROM t1 LEFT JOIN
-((t2 LEFT JOIN t3 ON t2.a=t3.b) LEFT JOIN t4 ON t3.a=t4.b)
-ON t1.a=t2.a
-WHERE t3.a IS NULL;
-a a a b b
-EXPLAIN EXTENDED
-SELECT * FROM t1 LEFT JOIN
-((t2 LEFT JOIN t3 ON t2.a=t3.b) LEFT JOIN t4 ON t3.a=t4.b)
-ON t1.a=t2.a
-WHERE t3.a IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 4 test.t1.a 1 100.00 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE t3 hash_ALL NULL #hash#$hj 5 test.t1.a 1 100.00 Using where; Not exists; Using join buffer (incremental, BNLH join)
-1 SIMPLE t4 hash_ALL NULL #hash#$hj 5 test.t3.a 0 0.00 Using where; Using join buffer (incremental, BNLH join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t2`.`a` AS `a`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`b` AS `b` from `test`.`t1` left join (`test`.`t2` left join `test`.`t3` on(`test`.`t3`.`b` = `test`.`t1`.`a`) left join `test`.`t4` on(`test`.`t4`.`b` = `test`.`t3`.`a` and `test`.`t3`.`a` is not null)) on(`test`.`t2`.`a` = `test`.`t1`.`a`) where `test`.`t3`.`a` is null
-DROP TABLE t1,t2,t3,t4;
-SET optimizer_switch=@save_optimizer_switch;
-End of 5.0 tests
-#
-# MDEV-621: LP:693329 - Assertion `!is_interleave_error' failed on low optimizer_search_depth
-#
-set @tmp_mdev621= @@optimizer_search_depth;
-SET SESSION optimizer_search_depth = 4;
-CREATE TABLE t1 (f1 int,f2 int,f3 int,f4 int) ;
-INSERT IGNORE INTO t1 VALUES (0,0,2,0),(NULL,0,2,0);
-CREATE TABLE t2 (f1 int) ;
-CREATE TABLE t3 (f3 int,PRIMARY KEY (f3)) ;
-CREATE TABLE t4 (f5 int) ;
-CREATE TABLE t5 (f2 int) ;
-SELECT alias2.f4 FROM t1 AS alias1
-LEFT JOIN t1 AS alias2
-LEFT JOIN t2 AS alias3
-LEFT JOIN t3 AS alias4 ON alias3.f1 = alias4.f3
-ON alias2.f1
-LEFT JOIN t4 AS alias5
-JOIN t5 ON alias5.f5
-ON alias2.f3 ON alias1.f2;
-f4
-NULL
-NULL
-DROP TABLE t1,t2,t3,t4,t5;
-#
-# MDEV-7992: Nested left joins + 'not exists' optimization
-#
-CREATE TABLE t1(
-K1 INT PRIMARY KEY,
-Name VARCHAR(15)
-);
-INSERT INTO t1 VALUES
-(1,'T1Row1'), (2,'T1Row2');
-CREATE TABLE t2(
-K2 INT PRIMARY KEY,
-K1r INT,
-rowTimestamp DATETIME,
-Event VARCHAR(15)
-);
-INSERT INTO t2 VALUES
-(1, 1, '2015-04-13 10:42:11' ,'T1Row1Event1'),
-(2, 1, '2015-04-13 10:42:12' ,'T1Row1Event2'),
-(3, 1, '2015-04-13 10:42:12' ,'T1Row1Event3');
-SELECT t1a.*, t2a.*,
-t2i.K2 AS K2B, t2i.K1r AS K1rB,
-t2i.rowTimestamp AS rowTimestampB, t2i.Event AS EventB
-FROM
-t1 t1a JOIN t2 t2a ON t2a.K1r = t1a.K1
-LEFT JOIN
-( t1 t1i LEFT JOIN t2 t2i ON t2i.K1r = t1i.K1)
-ON (t1i.K1 = 1) AND
-(((t2i.K1r = t1a.K1 AND t2i.rowTimestamp > t2a.rowTimestamp ) OR
-(t2i.rowTimestamp = t2a.rowTimestamp AND t2i.K2 > t2a.K2))
-OR (t2i.K2 IS NULL))
-WHERE
-t2a.K1r = 1 AND t2i.K2 IS NULL;
-K1 Name K2 K1r rowTimestamp Event K2B K1rB rowTimestampB EventB
-1 T1Row1 3 1 2015-04-13 10:42:12 T1Row1Event3 NULL NULL NULL NULL
-EXPLAIN EXTENDED SELECT t1a.*, t2a.*,
-t2i.K2 AS K2B, t2i.K1r AS K1rB,
-t2i.rowTimestamp AS rowTimestampB, t2i.Event AS EventB
-FROM
-t1 t1a JOIN t2 t2a ON t2a.K1r = t1a.K1
-LEFT JOIN
-( t1 t1i LEFT JOIN t2 t2i ON t2i.K1r = t1i.K1)
-ON (t1i.K1 = 1) AND
-(((t2i.K1r = t1a.K1 AND t2i.rowTimestamp > t2a.rowTimestamp ) OR
-(t2i.rowTimestamp = t2a.rowTimestamp AND t2i.K2 > t2a.K2))
-OR (t2i.K2 IS NULL))
-WHERE
-t2a.K1r = 1 AND t2i.K2 IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1a const PRIMARY PRIMARY 4 const 1 100.00
-1 SIMPLE t2a ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t1i const PRIMARY PRIMARY 4 const 1 100.00 Using index
-1 SIMPLE t2i ALL NULL NULL NULL NULL 3 100.00 Using where; Not exists
-Warnings:
-Note 1003 select 1 AS `K1`,'T1Row1' AS `Name`,`test`.`t2a`.`K2` AS `K2`,`test`.`t2a`.`K1r` AS `K1r`,`test`.`t2a`.`rowTimestamp` AS `rowTimestamp`,`test`.`t2a`.`Event` AS `Event`,`test`.`t2i`.`K2` AS `K2B`,`test`.`t2i`.`K1r` AS `K1rB`,`test`.`t2i`.`rowTimestamp` AS `rowTimestampB`,`test`.`t2i`.`Event` AS `EventB` from `test`.`t1` `t1a` join `test`.`t2` `t2a` left join (`test`.`t1` `t1i` left join `test`.`t2` `t2i` on(`test`.`t2i`.`K1r` = 1)) on(`test`.`t1i`.`K1` = 1 and (`test`.`t2i`.`K1r` = 1 and `test`.`t2i`.`rowTimestamp` > `test`.`t2a`.`rowTimestamp` or `test`.`t2i`.`rowTimestamp` = `test`.`t2a`.`rowTimestamp` and `test`.`t2i`.`K2` > `test`.`t2a`.`K2` or `test`.`t2i`.`K2` is null)) where `test`.`t2a`.`K1r` = 1 and `test`.`t2i`.`K2` is null
-CREATE VIEW v1 AS
-SELECT t2i.*
-FROM t1 as t1i LEFT JOIN t2 as t2i ON t2i.K1r = t1i.K1
-WHERE t1i.K1 = 1 ;
-SELECT
-t1a.*, t2a.*, t2b.K2 as K2B, t2b.K1r as K1rB,
-t2b.rowTimestamp as rowTimestampB, t2b.Event as EventB
-FROM
-t1 as t1a JOIN t2 as t2a ON t2a.K1r = t1a.K1
-LEFT JOIN
-v1 as t2b
-ON ((t2b.K1r = t1a.K1 AND t2b.rowTimestamp > t2a.rowTimestamp) OR
-(t2b.rowTimestamp = t2a.rowTimestamp AND t2b.K2 > t2a.K2))
-OR (t2b.K2 IS NULL)
-WHERE
-t1a.K1 = 1 AND
-t2b.K2 IS NULL;
-K1 Name K2 K1r rowTimestamp Event K2B K1rB rowTimestampB EventB
-1 T1Row1 3 1 2015-04-13 10:42:12 T1Row1Event3 NULL NULL NULL NULL
-EXPLAIN EXTENDED SELECT
-t1a.*, t2a.*, t2b.K2 as K2B, t2b.K1r as K1rB,
-t2b.rowTimestamp as rowTimestampB, t2b.Event as EventB
-FROM
-t1 as t1a JOIN t2 as t2a ON t2a.K1r = t1a.K1
-LEFT JOIN
-v1 as t2b
-ON ((t2b.K1r = t1a.K1 AND t2b.rowTimestamp > t2a.rowTimestamp) OR
-(t2b.rowTimestamp = t2a.rowTimestamp AND t2b.K2 > t2a.K2))
-OR (t2b.K2 IS NULL)
-WHERE
-t1a.K1 = 1 AND
-t2b.K2 IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1a const PRIMARY PRIMARY 4 const 1 100.00
-1 SIMPLE t2a ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t1i const PRIMARY PRIMARY 4 const 1 100.00 Using index
-1 SIMPLE t2i ALL NULL NULL NULL NULL 3 100.00 Using where; Not exists
-Warnings:
-Note 1003 select 1 AS `K1`,'T1Row1' AS `Name`,`t2a`.`K2` AS `K2`,`t2a`.`K1r` AS `K1r`,`t2a`.`rowTimestamp` AS `rowTimestamp`,`t2a`.`Event` AS `Event`,`test`.`t2i`.`K2` AS `K2B`,`test`.`t2i`.`K1r` AS `K1rB`,`test`.`t2i`.`rowTimestamp` AS `rowTimestampB`,`test`.`t2i`.`Event` AS `EventB` from `test`.`t1` `t1a` join `test`.`t2` `t2a` left join (`test`.`t1` `t1i` left join `test`.`t2` `t2i` on(`test`.`t2i`.`K1r` = 1)) on(`test`.`t1i`.`K1` = 1 and (`test`.`t2i`.`K1r` = 1 and `test`.`t2i`.`rowTimestamp` > `t2a`.`rowTimestamp` or `test`.`t2i`.`rowTimestamp` = `t2a`.`rowTimestamp` and `test`.`t2i`.`K2` > `t2a`.`K2` or `test`.`t2i`.`K2` is null)) where `t2a`.`K1r` = 1 and `test`.`t2i`.`K2` is null
-DROP VIEW v1;
-DROP TABLE t1,t2;
-set optimizer_search_depth= @tmp_mdev621;
-CREATE TABLE t5 (a int, b int, c int, PRIMARY KEY(a), KEY b_i (b));
-CREATE TABLE t6 (a int, b int, c int, PRIMARY KEY(a), KEY b_i (b));
-CREATE TABLE t7 (a int, b int, c int, PRIMARY KEY(a), KEY b_i (b));
-CREATE TABLE t8 (a int, b int, c int, PRIMARY KEY(a), KEY b_i (b));
-INSERT INTO t5 VALUES (1,1,0), (2,2,0), (3,3,0);
-INSERT INTO t6 VALUES (1,2,0), (3,2,0), (6,1,0);
-INSERT INTO t7 VALUES (1,1,0), (2,2,0);
-INSERT INTO t8 VALUES (0,2,0), (1,2,0);
-INSERT INTO t6 VALUES (-1,12,0), (-3,13,0), (-6,11,0), (-4,14,0);
-INSERT INTO t7 VALUES (-1,11,0), (-2,12,0), (-3,13,0), (-4,14,0), (-5,15,0);
-INSERT INTO t8 VALUES (-3,13,0), (-1,12,0), (-2,14,0), (-5,15,0), (-4,16,0);
-EXPLAIN
-SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b AND
-(t8.a > 0 OR t8.c IS NULL) AND t6.a>0 AND t7.a>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t5 ALL NULL NULL NULL NULL 3
-1 SIMPLE t7 ref PRIMARY,b_i b_i 5 test.t5.b 2 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t6 ALL PRIMARY,b_i NULL NULL NULL 7 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t8 ref b_i b_i 5 test.t5.b 2 Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t5
-LEFT JOIN
-(
-(t6, t7)
-LEFT JOIN
-t8
-ON t7.b=t8.b AND t6.b < 10
-)
-ON t6.b >= 2 AND t5.b=t7.b AND
-(t8.a > 0 OR t8.c IS NULL) AND t6.a>0 AND t7.a>0;
-a b a b a b a b
-2 2 1 2 2 2 1 2
-2 2 3 2 2 2 1 2
-1 1 1 2 1 1 NULL NULL
-1 1 3 2 1 1 NULL NULL
-3 3 NULL NULL NULL NULL NULL NULL
-DELETE FROM t5;
-DELETE FROM t6;
-DELETE FROM t7;
-DELETE FROM t8;
-INSERT INTO t5 VALUES (1,3,0), (3,2,0);
-INSERT INTO t6 VALUES (3,3,0);
-INSERT INTO t7 VALUES (1,2,0);
-INSERT INTO t8 VALUES (1,1,0);
-EXPLAIN
-SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t5 LEFT JOIN
-(t6 LEFT JOIN t7 ON t7.a=1, t8)
-ON (t5.b=t8.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t5 ALL NULL NULL NULL NULL 2
-1 SIMPLE t6 ALL NULL NULL NULL NULL 1 Using join buffer (flat, BNL join)
-1 SIMPLE t7 const PRIMARY PRIMARY 4 const 1 Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t8 ALL b_i NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t5 LEFT JOIN
-(t6 LEFT JOIN t7 ON t7.a=1, t8)
-ON (t5.b=t8.b);
-a b a b a b a b
-1 3 NULL NULL NULL NULL NULL NULL
-3 2 NULL NULL NULL NULL NULL NULL
-EXPLAIN
-SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t5 LEFT JOIN
-(t6 LEFT JOIN t7 ON t7.b=2, t8)
-ON (t5.b=t8.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t5 ALL NULL NULL NULL NULL 2
-1 SIMPLE t6 ALL NULL NULL NULL NULL 1 Using join buffer (flat, BNL join)
-1 SIMPLE t7 ref b_i b_i 5 const 0 Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t8 ALL b_i NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t5 LEFT JOIN
-(t6 LEFT JOIN t7 ON t7.b=2, t8)
-ON (t5.b=t8.b);
-a b a b a b a b
-1 3 NULL NULL NULL NULL NULL NULL
-3 2 NULL NULL NULL NULL NULL NULL
-EXPLAIN
-SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t5 LEFT JOIN
-(t8, t6 LEFT JOIN t7 ON t7.a=1)
-ON (t5.b=t8.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t5 ALL NULL NULL NULL NULL 2
-1 SIMPLE t8 ALL b_i NULL NULL NULL 1 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 1 Using join buffer (incremental, BNL join)
-1 SIMPLE t7 const PRIMARY PRIMARY 4 const 1 Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
-FROM t5 LEFT JOIN
-(t8, t6 LEFT JOIN t7 ON t7.a=1)
-ON (t5.b=t8.b);
-a b a b a b a b
-1 3 NULL NULL NULL NULL NULL NULL
-3 2 NULL NULL NULL NULL NULL NULL
-DROP TABLE t5,t6,t7,t8;
-set join_cache_level=default;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 2
-set @@optimizer_switch=@save_optimizer_switch_jcl6;
-set @optimizer_switch_for_join_nested_test=NULL;
-set @join_cache_level_for_join_nested_test=NULL;
diff --git a/mysql-test/r/join_optimizer.result b/mysql-test/r/join_optimizer.result
deleted file mode 100644
index ad7267ab665..00000000000
--- a/mysql-test/r/join_optimizer.result
+++ /dev/null
@@ -1,37 +0,0 @@
-drop table if exists t0,t1,t2,t3;
-#
-# BUG#38049 incorrect rows estimations with references from preceding table
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a varchar(32));
-insert into t1 values ('owner'),('requester'),('admincc'),('cc');
-CREATE TABLE t2 (
-id int(11) NOT NULL,
-type varchar(32) default NULL,
-PRIMARY KEY (id)
-);
-insert into t2 values (1,'owner'), (2,'admincc');
-CREATE TABLE t3 (
-id int(11) NOT NULL,
-domain varchar(32) default NULL,
-type varchar(32) default NULL,
-PRIMARY KEY (id)
-);
-set @domain='system';
-set @pk=0;
-INSERT INTO t3 select @pk:=@pk+1, 'system', t1.a from t1;
-INSERT INTO t3 select @pk:=@pk+1, 'queue', t1.a from t1, t0 where t0.a<3;
-INSERT INTO t3 select @pk:=@pk+1, 'ticket', t1.a from t1, t0 A, t0 B, t0 C;
-CREATE INDEX groups_d ON t3(domain);
-CREATE INDEX groups_t ON t3(type);
-CREATE INDEX groups_td ON t3(type, domain);
-CREATE INDEX groups_dt ON t3(domain, type);
-For table g this must use ref(groups_dt) and #rows should be around 15 and not 335:
-explain
-SELECT STRAIGHT_JOIN g.id FROM t2 a, t3 g USE INDEX(groups_dt)
-WHERE g.domain = 'queue' AND g.type = a.type;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE a ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE g ref groups_dt groups_dt 70 const,test.a.type 13 Using index condition
-drop table t0,t1,t2,t3;
diff --git a/mysql-test/r/join_outer.result b/mysql-test/r/join_outer.result
deleted file mode 100644
index 6753349dece..00000000000
--- a/mysql-test/r/join_outer.result
+++ /dev/null
@@ -1,2464 +0,0 @@
-drop table if exists t0,t1,t2,t3,t4,t5;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch=ifnull(@optimizer_switch_for_join_outer_test,'outer_join_with_cache=off');
-set join_cache_level=1;
-CREATE TABLE t1 (
-grp int(11) default NULL,
-a bigint(20) unsigned default NULL,
-c char(10) NOT NULL default ''
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,1,'a'),(2,2,'b'),(2,3,'c'),(3,4,'E'),(3,5,'C'),(3,6,'D'),(NULL,NULL,'');
-create table t2 (id int, a bigint unsigned not null, c char(10), d int, primary key (a));
-insert into t2 values (1,1,"a",1),(3,4,"A",4),(3,5,"B",5),(3,6,"C",6),(4,7,"D",7);
-select t1.*,t2.* from t1 JOIN t2 where t1.a=t2.a;
-grp a c id a c d
-1 1 a 1 1 a 1
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-select t1.*,t2.* from t1 left join t2 on (t1.a=t2.a) order by t1.grp,t1.a,t2.c;
-grp a c id a c d
-NULL NULL NULL NULL NULL NULL
-1 1 a 1 1 a 1
-2 2 b NULL NULL NULL NULL
-2 3 c NULL NULL NULL NULL
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-select t1.*,t2.* from { oj t2 left outer join t1 on (t1.a=t2.a) };
-grp a c id a c d
-1 1 a 1 1 a 1
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-NULL NULL NULL 4 7 D 7
-select t1.*,t2.* from t1 as t0,{ oj t2 left outer join t1 on (t1.a=t2.a) } WHERE t0.a=2;
-grp a c id a c d
-1 1 a 1 1 a 1
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-NULL NULL NULL 4 7 D 7
-select t1.*,t2.* from t1 left join t2 using (a);
-grp a c id a c d
-1 1 a 1 1 a 1
-2 2 b NULL NULL NULL NULL
-2 3 c NULL NULL NULL NULL
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-NULL NULL NULL NULL NULL NULL
-select t1.*,t2.* from t1 left join t2 using (a) where t1.a=t2.a;
-grp a c id a c d
-1 1 a 1 1 a 1
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-select t1.*,t2.* from t1 left join t2 using (a,c);
-grp a c id a c d
-1 1 a 1 1 a 1
-2 2 b NULL NULL NULL NULL
-2 3 c NULL NULL NULL NULL
-3 4 E NULL NULL NULL NULL
-3 5 C NULL NULL NULL NULL
-3 6 D NULL NULL NULL NULL
-NULL NULL NULL NULL NULL NULL
-select t1.*,t2.* from t1 left join t2 using (c);
-grp a c id a c d
-1 1 a 1 1 a 1
-1 1 a 3 4 A 4
-2 2 b 3 5 B 5
-2 3 c 3 6 C 6
-3 4 E NULL NULL NULL NULL
-3 5 C 3 6 C 6
-3 6 D 4 7 D 7
-NULL NULL NULL NULL NULL NULL
-select t1.*,t2.* from t1 natural left outer join t2;
-grp a c id a c d
-1 1 a 1 1 a 1
-2 2 b NULL NULL NULL NULL
-2 3 c NULL NULL NULL NULL
-3 4 E NULL NULL NULL NULL
-3 5 C NULL NULL NULL NULL
-3 6 D NULL NULL NULL NULL
-NULL NULL NULL NULL NULL NULL
-select t1.*,t2.* from t1 left join t2 on (t1.a=t2.a) where t2.id=3;
-grp a c id a c d
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-select t1.*,t2.* from t1 left join t2 on (t1.a=t2.a) where t2.id is null;
-grp a c id a c d
-2 2 b NULL NULL NULL NULL
-2 3 c NULL NULL NULL NULL
-NULL NULL NULL NULL NULL NULL
-explain select t1.*,t2.* from t1,t2 where t1.a=t2.a and isnull(t2.a)=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select t1.*,t2.* from t1 left join t2 on t1.a=t2.a where isnull(t2.a)=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 8 test.t1.a 1 Using where
-select t1.*,t2.*,t3.a from t1 left join t2 on (t1.a=t2.a) left join t1 as t3 on (t2.a=t3.a);
-grp a c id a c d a
-1 1 a 1 1 a 1 1
-2 2 b NULL NULL NULL NULL NULL
-2 3 c NULL NULL NULL NULL NULL
-3 4 E 3 4 A 4 4
-3 5 C 3 5 B 5 5
-3 6 D 3 6 C 6 6
-NULL NULL NULL NULL NULL NULL NULL
-explain select t1.*,t2.*,t3.a from t1 left join t2 on (t3.a=t2.a) left join t1 as t3 on (t1.a=t3.a);
-ERROR 42S22: Unknown column 't3.a' in 'on clause'
-select t1.*,t2.*,t3.a from t1 left join t2 on (t3.a=t2.a) left join t1 as t3 on (t1.a=t3.a);
-ERROR 42S22: Unknown column 't3.a' in 'on clause'
-select t1.*,t2.*,t3.a from t1 left join t2 on (t3.a=t2.a) left join t1 as t3 on (t2.a=t3.a);
-ERROR 42S22: Unknown column 't3.a' in 'on clause'
-select t1.*,t2.* from t1 inner join t2 using (a);
-grp a c id a c d
-1 1 a 1 1 a 1
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-select t1.*,t2.* from t1 inner join t2 on (t1.a=t2.a);
-grp a c id a c d
-1 1 a 1 1 a 1
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-select t1.*,t2.* from t1 natural join t2;
-grp a c id a c d
-1 1 a 1 1 a 1
-drop table t1,t2;
-CREATE TABLE t1 (
-usr_id INT unsigned NOT NULL,
-uniq_id INT unsigned NOT NULL AUTO_INCREMENT,
-start_num INT unsigned NOT NULL DEFAULT 1,
-increment INT unsigned NOT NULL DEFAULT 1,
-PRIMARY KEY (uniq_id),
-INDEX usr_uniq_idx (usr_id, uniq_id),
-INDEX uniq_usr_idx (uniq_id, usr_id)
-);
-CREATE TABLE t2 (
-id INT unsigned NOT NULL DEFAULT 0,
-usr2_id INT unsigned NOT NULL DEFAULT 0,
-max INT unsigned NOT NULL DEFAULT 0,
-c_amount INT unsigned NOT NULL DEFAULT 0,
-d_max INT unsigned NOT NULL DEFAULT 0,
-d_num INT unsigned NOT NULL DEFAULT 0,
-orig_time INT unsigned NOT NULL DEFAULT 0,
-c_time INT unsigned NOT NULL DEFAULT 0,
-active ENUM ("no","yes") NOT NULL,
-PRIMARY KEY (id,usr2_id),
-INDEX id_idx (id),
-INDEX usr2_idx (usr2_id)
-);
-INSERT INTO t1 VALUES (3,NULL,0,50),(3,NULL,0,200),(3,NULL,0,25),(3,NULL,0,84676),(3,NULL,0,235),(3,NULL,0,10),(3,NULL,0,3098),(3,NULL,0,2947),(3,NULL,0,8987),(3,NULL,0,8347654),(3,NULL,0,20398),(3,NULL,0,8976),(3,NULL,0,500),(3,NULL,0,198);
-SELECT t1.usr_id,t1.uniq_id,t1.increment,
-t2.usr2_id,t2.c_amount,t2.max
-FROM t1
-LEFT JOIN t2 ON t2.id = t1.uniq_id
-WHERE t1.uniq_id = 4
-ORDER BY t2.c_amount;
-usr_id uniq_id increment usr2_id c_amount max
-3 4 84676 NULL NULL NULL
-SELECT t1.usr_id,t1.uniq_id,t1.increment,
-t2.usr2_id,t2.c_amount,t2.max
-FROM t2
-RIGHT JOIN t1 ON t2.id = t1.uniq_id
-WHERE t1.uniq_id = 4
-ORDER BY t2.c_amount;
-usr_id uniq_id increment usr2_id c_amount max
-3 4 84676 NULL NULL NULL
-INSERT INTO t2 VALUES (2,3,3000,6000,0,0,746584,837484,'yes');
-INSERT INTO t2 VALUES (2,3,3000,6000,0,0,746584,837484,'yes');
-ERROR 23000: Duplicate entry '2-3' for key 'PRIMARY'
-INSERT INTO t2 VALUES (7,3,1000,2000,0,0,746294,937484,'yes');
-SELECT t1.usr_id,t1.uniq_id,t1.increment,t2.usr2_id,t2.c_amount,t2.max FROM t1 LEFT JOIN t2 ON t2.id = t1.uniq_id WHERE t1.uniq_id = 4 ORDER BY t2.c_amount;
-usr_id uniq_id increment usr2_id c_amount max
-3 4 84676 NULL NULL NULL
-SELECT t1.usr_id,t1.uniq_id,t1.increment,t2.usr2_id,t2.c_amount,t2.max FROM t1 LEFT JOIN t2 ON t2.id = t1.uniq_id WHERE t1.uniq_id = 4 GROUP BY t2.c_amount;
-usr_id uniq_id increment usr2_id c_amount max
-3 4 84676 NULL NULL NULL
-SELECT t1.usr_id,t1.uniq_id,t1.increment,t2.usr2_id,t2.c_amount,t2.max FROM t1 LEFT JOIN t2 ON t2.id = t1.uniq_id WHERE t1.uniq_id = 4;
-usr_id uniq_id increment usr2_id c_amount max
-3 4 84676 NULL NULL NULL
-drop table t1,t2;
-CREATE TABLE t1 (
-cod_asig int(11) DEFAULT '0' NOT NULL,
-desc_larga_cat varchar(80) DEFAULT '' NOT NULL,
-desc_larga_cas varchar(80) DEFAULT '' NOT NULL,
-desc_corta_cat varchar(40) DEFAULT '' NOT NULL,
-desc_corta_cas varchar(40) DEFAULT '' NOT NULL,
-cred_total double(3,1) DEFAULT '0.0' NOT NULL,
-pre_requisit int(11),
-co_requisit int(11),
-preco_requisit int(11),
-PRIMARY KEY (cod_asig)
-);
-INSERT INTO t1 VALUES (10360,'asdfggfg','Introduccion a los Ordenadores I','asdfggfg','Introduccio Ordinadors I',6.0,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (10361,'Components i Circuits Electronics I','Componentes y Circuitos Electronicos I','Components i Circuits Electronics I','Comp. i Circ. Electr. I',6.0,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (10362,'Laboratori d`Ordinadors','Laboratorio de Ordenadores','Laboratori d`Ordinadors','Laboratori Ordinadors',4.5,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (10363,'Tecniques de Comunicacio Oral i Escrita','Tecnicas de Comunicacion Oral y Escrita','Tecniques de Comunicacio Oral i Escrita','Tec. Com. Oral i Escrita',4.5,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (11403,'Projecte Fi de Carrera','Proyecto Fin de Carrera','Projecte Fi de Carrera','PFC',9.0,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (11404,'+lgebra lineal','Algebra lineal','+lgebra lineal','+lgebra lineal',15.0,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (11405,'+lgebra lineal','Algebra lineal','+lgebra lineal','+lgebra lineal',18.0,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (11406,'Calcul Infinitesimal','Cßlculo Infinitesimal','Calcul Infinitesimal','Calcul Infinitesimal',15.0,NULL,NULL,NULL);
-CREATE TABLE t2 (
-idAssignatura int(11) DEFAULT '0' NOT NULL,
-Grup int(11) DEFAULT '0' NOT NULL,
-Places smallint(6) DEFAULT '0' NOT NULL,
-PlacesOcupades int(11) DEFAULT '0',
-PRIMARY KEY (idAssignatura,Grup)
-);
-INSERT INTO t2 VALUES (10360,12,333,0);
-INSERT INTO t2 VALUES (10361,30,2,0);
-INSERT INTO t2 VALUES (10361,40,3,0);
-INSERT INTO t2 VALUES (10360,45,10,0);
-INSERT INTO t2 VALUES (10362,10,12,0);
-INSERT INTO t2 VALUES (10360,55,2,0);
-INSERT INTO t2 VALUES (10360,70,0,0);
-INSERT INTO t2 VALUES (10360,565656,0,0);
-INSERT INTO t2 VALUES (10360,32767,7,0);
-INSERT INTO t2 VALUES (10360,33,8,0);
-INSERT INTO t2 VALUES (10360,7887,85,0);
-INSERT INTO t2 VALUES (11405,88,8,0);
-INSERT INTO t2 VALUES (10360,0,55,0);
-INSERT INTO t2 VALUES (10360,99,0,0);
-INSERT INTO t2 VALUES (11411,30,10,0);
-INSERT INTO t2 VALUES (11404,0,0,0);
-INSERT INTO t2 VALUES (10362,11,111,0);
-INSERT INTO t2 VALUES (10363,33,333,0);
-INSERT INTO t2 VALUES (11412,55,0,0);
-INSERT INTO t2 VALUES (50003,66,6,0);
-INSERT INTO t2 VALUES (11403,5,0,0);
-INSERT INTO t2 VALUES (11406,11,11,0);
-INSERT INTO t2 VALUES (11410,11410,131,0);
-INSERT INTO t2 VALUES (11416,11416,32767,0);
-INSERT INTO t2 VALUES (11409,0,0,0);
-CREATE TABLE t3 (
-id int(11) NOT NULL auto_increment,
-dni_pasaporte char(16) DEFAULT '' NOT NULL,
-idPla int(11) DEFAULT '0' NOT NULL,
-cod_asig int(11) DEFAULT '0' NOT NULL,
-any smallint(6) DEFAULT '0' NOT NULL,
-quatrimestre smallint(6) DEFAULT '0' NOT NULL,
-estat char(1) DEFAULT 'M' NOT NULL,
-PRIMARY KEY (id),
-UNIQUE dni_pasaporte (dni_pasaporte,idPla),
-UNIQUE dni_pasaporte_2 (dni_pasaporte,idPla,cod_asig,any,quatrimestre)
-);
-INSERT INTO t3 VALUES (1,'11111111',1,10362,98,1,'M');
-CREATE TABLE t4 (
-id int(11) NOT NULL auto_increment,
-papa int(11) DEFAULT '0' NOT NULL,
-fill int(11) DEFAULT '0' NOT NULL,
-idPla int(11) DEFAULT '0' NOT NULL,
-PRIMARY KEY (id),
-KEY papa (idPla,papa),
-UNIQUE papa_2 (idPla,papa,fill)
-);
-INSERT INTO t4 VALUES (1,-1,10360,1);
-INSERT INTO t4 VALUES (2,-1,10361,1);
-INSERT INTO t4 VALUES (3,-1,10362,1);
-SELECT DISTINCT fill,desc_larga_cat,cred_total,Grup,Places,PlacesOcupades FROM t4 LEFT JOIN t3 ON t3.cod_asig=fill AND estat='S' AND dni_pasaporte='11111111' AND t3.idPla=1 , t2,t1 WHERE fill=t1.cod_asig AND Places>PlacesOcupades AND fill=idAssignatura AND t4.idPla=1 AND papa=-1;
-fill desc_larga_cat cred_total Grup Places PlacesOcupades
-10360 asdfggfg 6.0 0 55 0
-10360 asdfggfg 6.0 12 333 0
-10360 asdfggfg 6.0 32767 7 0
-10360 asdfggfg 6.0 33 8 0
-10360 asdfggfg 6.0 45 10 0
-10360 asdfggfg 6.0 55 2 0
-10360 asdfggfg 6.0 7887 85 0
-10361 Components i Circuits Electronics I 6.0 30 2 0
-10361 Components i Circuits Electronics I 6.0 40 3 0
-10362 Laboratori d`Ordinadors 4.5 10 12 0
-10362 Laboratori d`Ordinadors 4.5 11 111 0
-SELECT DISTINCT fill,t3.idPla FROM t4 LEFT JOIN t3 ON t3.cod_asig=t4.fill AND t3.estat='S' AND t3.dni_pasaporte='1234' AND t3.idPla=1 ;
-fill idPla
-10360 NULL
-10361 NULL
-10362 NULL
-INSERT INTO t3 VALUES (3,'1234',1,10360,98,1,'S');
-SELECT DISTINCT fill,t3.idPla FROM t4 LEFT JOIN t3 ON t3.cod_asig=t4.fill AND t3.estat='S' AND t3.dni_pasaporte='1234' AND t3.idPla=1 ;
-fill idPla
-10360 1
-10361 NULL
-10362 NULL
-drop table t1,t2,t3,test.t4;
-CREATE TABLE t1 (
-id smallint(5) unsigned NOT NULL auto_increment,
-name char(60) DEFAULT '' NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t1 VALUES (1,'Antonio Paz');
-INSERT INTO t1 VALUES (2,'Lilliana Angelovska');
-INSERT INTO t1 VALUES (3,'Thimble Smith');
-CREATE TABLE t2 (
-id smallint(5) unsigned NOT NULL auto_increment,
-owner smallint(5) unsigned DEFAULT '0' NOT NULL,
-name char(60),
-PRIMARY KEY (id)
-);
-INSERT INTO t2 VALUES (1,1,'El Gato');
-INSERT INTO t2 VALUES (2,1,'Perrito');
-INSERT INTO t2 VALUES (3,3,'Happy');
-select t1.name, t2.name, t2.id from t1 left join t2 on (t1.id = t2.owner);
-name name id
-Antonio Paz El Gato 1
-Antonio Paz Perrito 2
-Lilliana Angelovska NULL NULL
-Thimble Smith Happy 3
-select t1.name, t2.name, t2.id from t1 left join t2 on (t1.id = t2.owner) where t2.id is null;
-name name id
-Lilliana Angelovska NULL NULL
-explain select t1.name, t2.name, t2.id from t1 left join t2 on (t1.id = t2.owner) where t2.id is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where; Not exists
-explain select t1.name, t2.name, t2.id from t1 left join t2 on (t1.id = t2.owner) where t2.name is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-select count(*) from t1 left join t2 on (t1.id = t2.owner);
-count(*)
-4
-select t1.name, t2.name, t2.id from t2 right join t1 on (t1.id = t2.owner);
-name name id
-Antonio Paz El Gato 1
-Antonio Paz Perrito 2
-Lilliana Angelovska NULL NULL
-Thimble Smith Happy 3
-select t1.name, t2.name, t2.id from t2 right join t1 on (t1.id = t2.owner) where t2.id is null;
-name name id
-Lilliana Angelovska NULL NULL
-explain select t1.name, t2.name, t2.id from t2 right join t1 on (t1.id = t2.owner) where t2.id is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where; Not exists
-explain select t1.name, t2.name, t2.id from t2 right join t1 on (t1.id = t2.owner) where t2.name is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-select count(*) from t2 right join t1 on (t1.id = t2.owner);
-count(*)
-4
-select t1.name, t2.name, t2.id,t3.id from t2 right join t1 on (t1.id = t2.owner) left join t1 as t3 on t3.id=t2.owner;
-name name id id
-Antonio Paz El Gato 1 1
-Antonio Paz Perrito 2 1
-Lilliana Angelovska NULL NULL NULL
-Thimble Smith Happy 3 3
-select t1.name, t2.name, t2.id,t3.id from t1 right join t2 on (t1.id = t2.owner) right join t1 as t3 on t3.id=t2.owner;
-name name id id
-Antonio Paz El Gato 1 1
-Antonio Paz Perrito 2 1
-NULL NULL NULL 2
-Thimble Smith Happy 3 3
-select t1.name, t2.name, t2.id, t2.owner, t3.id from t1 left join t2 on (t1.id = t2.owner) right join t1 as t3 on t3.id=t2.owner;
-name name id owner id
-Antonio Paz El Gato 1 1 1
-Antonio Paz Perrito 2 1 1
-NULL NULL NULL NULL 2
-Thimble Smith Happy 3 3 3
-drop table t1,t2;
-create table t1 (id int not null, str char(10), index(str));
-insert into t1 values (1, null), (2, null), (3, "foo"), (4, "bar");
-select * from t1 where str is not null order by id;
-id str
-3 foo
-4 bar
-select * from t1 where str is null;
-id str
-1 NULL
-2 NULL
-drop table t1;
-CREATE TABLE t1 (
-t1_id bigint(21) NOT NULL auto_increment,
-PRIMARY KEY (t1_id)
-);
-CREATE TABLE t2 (
-t2_id bigint(21) NOT NULL auto_increment,
-PRIMARY KEY (t2_id)
-);
-CREATE TABLE t3 (
-t3_id bigint(21) NOT NULL auto_increment,
-PRIMARY KEY (t3_id)
-);
-CREATE TABLE t4 (
-seq_0_id bigint(21) DEFAULT '0' NOT NULL,
-seq_1_id bigint(21) DEFAULT '0' NOT NULL,
-KEY seq_0_id (seq_0_id),
-KEY seq_1_id (seq_1_id)
-);
-CREATE TABLE t5 (
-seq_0_id bigint(21) DEFAULT '0' NOT NULL,
-seq_1_id bigint(21) DEFAULT '0' NOT NULL,
-KEY seq_1_id (seq_1_id),
-KEY seq_0_id (seq_0_id)
-);
-insert into t1 values (1);
-insert into t2 values (1);
-insert into t3 values (1);
-insert into t4 values (1,1);
-insert into t5 values (1,1);
-explain select * from t3 left join t4 on t4.seq_1_id = t2.t2_id left join t1 on t1.t1_id = t4.seq_0_id left join t5 on t5.seq_0_id = t1.t1_id left join t2 on t2.t2_id = t5.seq_1_id where t3.t3_id = 23;
-ERROR 42S22: Unknown column 't2.t2_id' in 'on clause'
-drop table t1,t2,t3,t4,t5;
-create table t1 (n int, m int, o int, key(n));
-create table t2 (n int not null, m int, o int, primary key(n));
-insert into t1 values (1, 2, 11), (1, 2, 7), (2, 2, 8), (1,2,9),(1,3,9);
-insert into t2 values (1, 2, 3),(2, 2, 8), (4,3,9),(3,2,10);
-select t1.*, t2.* from t1 left join t2 on t1.n = t2.n and
-t1.m = t2.m where t1.n = 1;
-n m o n m o
-1 2 11 1 2 3
-1 2 7 1 2 3
-1 2 9 1 2 3
-1 3 9 NULL NULL NULL
-select t1.*, t2.* from t1 left join t2 on t1.n = t2.n and
-t1.m = t2.m where t1.n = 1 order by t1.o;
-n m o n m o
-1 2 11 1 2 3
-1 2 7 1 2 3
-1 2 9 1 2 3
-1 3 9 NULL NULL NULL
-drop table t1,t2;
-CREATE TABLE t1 (id1 INT NOT NULL PRIMARY KEY, dat1 CHAR(1), id2 INT);
-INSERT INTO t1 VALUES (1,'a',1);
-INSERT INTO t1 VALUES (2,'b',1);
-INSERT INTO t1 VALUES (3,'c',2);
-CREATE TABLE t2 (id2 INT NOT NULL PRIMARY KEY, dat2 CHAR(1));
-INSERT INTO t2 VALUES (1,'x');
-INSERT INTO t2 VALUES (2,'y');
-INSERT INTO t2 VALUES (3,'z');
-SELECT t2.id2 FROM t2 LEFT OUTER JOIN t1 ON t1.id2 = t2.id2 WHERE id1 IS NULL;
-id2
-3
-SELECT t2.id2 FROM t2 NATURAL LEFT OUTER JOIN t1 WHERE id1 IS NULL;
-id2
-3
-drop table t1,t2;
-create table t1 ( color varchar(20), name varchar(20) );
-insert into t1 values ( 'red', 'apple' );
-insert into t1 values ( 'yellow', 'banana' );
-insert into t1 values ( 'green', 'lime' );
-insert into t1 values ( 'black', 'grape' );
-insert into t1 values ( 'blue', 'blueberry' );
-create table t2 ( count int, color varchar(20) );
-insert into t2 values (10, 'green');
-insert into t2 values (5, 'black');
-insert into t2 values (15, 'white');
-insert into t2 values (7, 'green');
-select * from t1;
-color name
-red apple
-yellow banana
-green lime
-black grape
-blue blueberry
-select * from t2;
-count color
-10 green
-5 black
-15 white
-7 green
-select * from t2 natural join t1;
-color count name
-green 10 lime
-green 7 lime
-black 5 grape
-select t2.count, t1.name from t2 natural join t1;
-count name
-10 lime
-7 lime
-5 grape
-select t2.count, t1.name from t2 inner join t1 using (color);
-count name
-10 lime
-7 lime
-5 grape
-drop table t1;
-drop table t2;
-CREATE TABLE t1 (
-pcode varchar(8) DEFAULT '' NOT NULL
-);
-INSERT INTO t1 VALUES ('kvw2000'),('kvw2001'),('kvw3000'),('kvw3001'),('kvw3002'),('kvw3500'),('kvw3501'),('kvw3502'),('kvw3800'),('kvw3801'),('kvw3802'),('kvw3900'),('kvw3901'),('kvw3902'),('kvw4000'),('kvw4001'),('kvw4002'),('kvw4200'),('kvw4500'),('kvw5000'),('kvw5001'),('kvw5500'),('kvw5510'),('kvw5600'),('kvw5601'),('kvw6000'),('klw1000'),('klw1020'),('klw1500'),('klw2000'),('klw2001'),('klw2002'),('kld2000'),('klw2500'),('kmw1000'),('kmw1500'),('kmw2000'),('kmw2001'),('kmw2100'),('kmw3000'),('kmw3200');
-CREATE TABLE t2 (
-pcode varchar(8) DEFAULT '' NOT NULL,
-KEY pcode (pcode)
-);
-INSERT INTO t2 VALUES ('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw6000'),('kvw6000'),('kld2000');
-SELECT t1.pcode, IF(ISNULL(t2.pcode), 0, COUNT(*)) AS count FROM t1
-LEFT JOIN t2 ON t1.pcode = t2.pcode GROUP BY t1.pcode;
-pcode count
-kld2000 1
-klw1000 0
-klw1020 0
-klw1500 0
-klw2000 0
-klw2001 0
-klw2002 0
-klw2500 0
-kmw1000 0
-kmw1500 0
-kmw2000 0
-kmw2001 0
-kmw2100 0
-kmw3000 0
-kmw3200 0
-kvw2000 26
-kvw2001 0
-kvw3000 36
-kvw3001 0
-kvw3002 0
-kvw3500 26
-kvw3501 0
-kvw3502 0
-kvw3800 0
-kvw3801 0
-kvw3802 0
-kvw3900 0
-kvw3901 0
-kvw3902 0
-kvw4000 0
-kvw4001 0
-kvw4002 0
-kvw4200 0
-kvw4500 0
-kvw5000 0
-kvw5001 0
-kvw5500 0
-kvw5510 0
-kvw5600 0
-kvw5601 0
-kvw6000 2
-SELECT SQL_BIG_RESULT t1.pcode, IF(ISNULL(t2.pcode), 0, COUNT(*)) AS count FROM t1 LEFT JOIN t2 ON t1.pcode = t2.pcode GROUP BY t1.pcode;
-pcode count
-kld2000 1
-klw1000 0
-klw1020 0
-klw1500 0
-klw2000 0
-klw2001 0
-klw2002 0
-klw2500 0
-kmw1000 0
-kmw1500 0
-kmw2000 0
-kmw2001 0
-kmw2100 0
-kmw3000 0
-kmw3200 0
-kvw2000 26
-kvw2001 0
-kvw3000 36
-kvw3001 0
-kvw3002 0
-kvw3500 26
-kvw3501 0
-kvw3502 0
-kvw3800 0
-kvw3801 0
-kvw3802 0
-kvw3900 0
-kvw3901 0
-kvw3902 0
-kvw4000 0
-kvw4001 0
-kvw4002 0
-kvw4200 0
-kvw4500 0
-kvw5000 0
-kvw5001 0
-kvw5500 0
-kvw5510 0
-kvw5600 0
-kvw5601 0
-kvw6000 2
-drop table t1,t2;
-CREATE TABLE t1 (
-id int(11),
-pid int(11),
-rep_del tinyint(4),
-KEY id (id),
-KEY pid (pid)
-);
-INSERT INTO t1 VALUES (1,NULL,NULL);
-INSERT INTO t1 VALUES (2,1,NULL);
-select * from t1 LEFT JOIN t1 t2 ON (t1.id=t2.pid) AND t2.rep_del IS NULL;
-id pid rep_del id pid rep_del
-1 NULL NULL 2 1 NULL
-2 1 NULL NULL NULL NULL
-create index rep_del ON t1(rep_del);
-select * from t1 LEFT JOIN t1 t2 ON (t1.id=t2.pid) AND t2.rep_del IS NULL;
-id pid rep_del id pid rep_del
-1 NULL NULL 2 1 NULL
-2 1 NULL NULL NULL NULL
-drop table t1;
-CREATE TABLE t1 (
-id int(11) DEFAULT '0' NOT NULL,
-name tinytext DEFAULT '' NOT NULL,
-UNIQUE id (id)
-);
-INSERT INTO t1 VALUES (1,'yes'),(2,'no');
-CREATE TABLE t2 (
-id int(11) DEFAULT '0' NOT NULL,
-idx int(11) DEFAULT '0' NOT NULL,
-UNIQUE id (id,idx)
-);
-INSERT INTO t2 VALUES (1,1);
-explain SELECT * from t1 left join t2 on t1.id=t2.id where t2.id IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ref id id 4 test.t1.id 1 Using where; Using index; Not exists
-SELECT * from t1 left join t2 on t1.id=t2.id where t2.id IS NULL;
-id name id idx
-2 no NULL NULL
-drop table t1,t2;
-create table t1 (bug_id mediumint, reporter mediumint);
-create table t2 (bug_id mediumint, who mediumint, index(who));
-insert into t2 values (1,1),(1,2);
-insert into t1 values (1,1),(2,1);
-SELECT * FROM t1 LEFT JOIN t2 ON (t1.bug_id = t2.bug_id AND t2.who = 2) WHERE (t1.reporter = 2 OR t2.who = 2);
-bug_id reporter bug_id who
-1 1 1 2
-drop table t1,t2;
-create table t1 (fooID smallint unsigned auto_increment, primary key (fooID));
-create table t2 (fooID smallint unsigned not null, barID smallint unsigned not null, primary key (fooID,barID));
-insert into t1 (fooID) values (10),(20),(30);
-insert into t2 values (10,1),(20,2),(30,3);
-explain select * from t2 left join t1 on t1.fooID = t2.fooID and t1.fooID = 30;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL PRIMARY 4 NULL 3 Using index
-1 SIMPLE t1 const PRIMARY PRIMARY 2 const 1 Using where; Using index
-select * from t2 left join t1 on t1.fooID = t2.fooID and t1.fooID = 30;
-fooID barID fooID
-10 1 NULL
-20 2 NULL
-30 3 30
-select * from t2 left join t1 ignore index(primary) on t1.fooID = t2.fooID and t1.fooID = 30;
-fooID barID fooID
-10 1 NULL
-20 2 NULL
-30 3 30
-drop table t1,t2;
-create table t1 (i int);
-create table t2 (i int);
-create table t3 (i int);
-insert into t1 values(1),(2);
-insert into t2 values(2),(3);
-insert into t3 values(2),(4);
-select * from t1 natural left join t2 natural left join t3;
-i
-1
-2
-select * from t1 natural left join t2 where (t2.i is not null)=0;
-i
-1
-select * from t1 natural left join t2 where (t2.i is not null) is not null;
-i
-1
-2
-select * from t1 natural left join t2 where (i is not null)=0;
-i
-select * from t1 natural left join t2 where (i is not null) is not null;
-i
-1
-2
-drop table t1,t2,t3;
-create table t1 (f1 integer,f2 integer,f3 integer);
-create table t2 (f2 integer,f4 integer);
-create table t3 (f3 integer,f5 integer);
-select * from t1
-left outer join t2 using (f2)
-left outer join t3 using (f3);
-f3 f2 f1 f4 f5
-drop table t1,t2,t3;
-create table t1 (a1 int, a2 int);
-create table t2 (b1 int not null, b2 int);
-create table t3 (c1 int, c2 int);
-insert into t1 values (1,2), (2,2), (3,2);
-insert into t2 values (1,3), (2,3);
-insert into t3 values (2,4), (3,4);
-select * from t1 left join t2 on b1 = a1 left join t3 on c1 = a1 and b1 is null;
-a1 a2 b1 b2 c1 c2
-1 2 1 3 NULL NULL
-2 2 2 3 NULL NULL
-3 2 NULL NULL 3 4
-explain select * from t1 left join t2 on b1 = a1 left join t3 on c1 = a1 and b1 is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 Using where
-drop table t1, t2, t3;
-create table t1 (
-a int(11),
-b char(10),
-key (a)
-);
-insert into t1 (a) values (1),(2),(3),(4);
-create table t2 (a int);
-select * from t1 left join t2 on t1.a=t2.a where not (t2.a <=> t1.a);
-a b a
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-select * from t1 left join t2 on t1.a=t2.a having not (t2.a <=> t1.a);
-a b a
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-drop table t1,t2;
-create table t1 (
-match_id tinyint(3) unsigned not null auto_increment,
-home tinyint(3) unsigned default '0',
-unique key match_id (match_id),
-key match_id_2 (match_id)
-);
-insert into t1 values("1", "2");
-create table t2 (
-player_id tinyint(3) unsigned default '0',
-match_1_h tinyint(3) unsigned default '0',
-key player_id (player_id)
-);
-insert into t2 values("1", "5");
-insert into t2 values("2", "9");
-insert into t2 values("3", "3");
-insert into t2 values("4", "7");
-insert into t2 values("5", "6");
-insert into t2 values("6", "8");
-insert into t2 values("7", "4");
-insert into t2 values("8", "12");
-insert into t2 values("9", "11");
-insert into t2 values("10", "10");
-explain select s.*, '*', m.*, (s.match_1_h - m.home) UUX from
-(t2 s left join t1 m on m.match_id = 1)
-order by m.match_id desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE s ALL NULL NULL NULL NULL 10 Using temporary; Using filesort
-1 SIMPLE m const match_id,match_id_2 match_id 1 const 1
-explain select s.*, '*', m.*, (s.match_1_h - m.home) UUX from
-(t2 s left join t1 m on m.match_id = 1)
-order by UUX desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE s ALL NULL NULL NULL NULL 10 Using temporary; Using filesort
-1 SIMPLE m const match_id,match_id_2 match_id 1 const 1
-select s.*, '*', m.*, (s.match_1_h - m.home) UUX from
-(t2 s left join t1 m on m.match_id = 1)
-order by UUX desc;
-player_id match_1_h * match_id home UUX
-8 12 * 1 2 10
-9 11 * 1 2 9
-10 10 * 1 2 8
-2 9 * 1 2 7
-6 8 * 1 2 6
-4 7 * 1 2 5
-5 6 * 1 2 4
-1 5 * 1 2 3
-7 4 * 1 2 2
-3 3 * 1 2 1
-explain select s.*, '*', m.*, (s.match_1_h - m.home) UUX from
-t2 s straight_join t1 m where m.match_id = 1
-order by UUX desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE s ALL NULL NULL NULL NULL 10 Using temporary; Using filesort
-1 SIMPLE m const match_id,match_id_2 match_id 1 const 1
-select s.*, '*', m.*, (s.match_1_h - m.home) UUX from
-t2 s straight_join t1 m where m.match_id = 1
-order by UUX desc;
-player_id match_1_h * match_id home UUX
-8 12 * 1 2 10
-9 11 * 1 2 9
-10 10 * 1 2 8
-2 9 * 1 2 7
-6 8 * 1 2 6
-4 7 * 1 2 5
-5 6 * 1 2 4
-1 5 * 1 2 3
-7 4 * 1 2 2
-3 3 * 1 2 1
-drop table t1, t2;
-create table t1 (a int, b int, unique index idx (a, b));
-create table t2 (a int, b int, c int, unique index idx (a, b));
-insert into t1 values (1, 10), (1,11), (2,10), (2,11);
-insert into t2 values (1,10,3);
-select t1.a, t1.b, t2.c from t1 left join t2
-on t1.a=t2.a and t1.b=t2.b and t2.c=3
-where t1.a=1 and t2.c is null;
-a b c
-1 11 NULL
-drop table t1, t2;
-CREATE TABLE t1 (
-ts_id bigint(20) default NULL,
-inst_id tinyint(4) default NULL,
-flag_name varchar(64) default NULL,
-flag_value text,
-UNIQUE KEY ts_id (ts_id,inst_id,flag_name)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-CREATE TABLE t2 (
-ts_id bigint(20) default NULL,
-inst_id tinyint(4) default NULL,
-flag_name varchar(64) default NULL,
-flag_value text,
-UNIQUE KEY ts_id (ts_id,inst_id,flag_name)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-INSERT INTO t1 VALUES
-(111056548820001, 0, 'flag1', NULL),
-(111056548820001, 0, 'flag2', NULL),
-(2, 0, 'other_flag', NULL);
-INSERT INTO t2 VALUES
-(111056548820001, 3, 'flag1', 'sss');
-SELECT t1.flag_name,t2.flag_value
-FROM t1 LEFT JOIN t2
-ON (t1.ts_id = t2.ts_id AND t1.flag_name = t2.flag_name AND
-t2.inst_id = 3)
-WHERE t1.inst_id = 0 AND t1.ts_id=111056548820001 AND
-t2.flag_value IS NULL;
-flag_name flag_value
-flag2 NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-id int(11) unsigned NOT NULL auto_increment,
-text_id int(10) unsigned default NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t1 VALUES("1", "0");
-INSERT INTO t1 VALUES("2", "10");
-CREATE TABLE t2 (
-text_id char(3) NOT NULL default '',
-language_id char(3) NOT NULL default '',
-text_data text,
-PRIMARY KEY (text_id,language_id)
-);
-INSERT INTO t2 VALUES("0", "EN", "0-EN");
-INSERT INTO t2 VALUES("0", "SV", "0-SV");
-INSERT INTO t2 VALUES("10", "EN", "10-EN");
-INSERT INTO t2 VALUES("10", "SV", "10-SV");
-SELECT t1.id, t1.text_id, t2.text_data
-FROM t1 LEFT JOIN t2
-ON t1.text_id = t2.text_id
-AND t2.language_id = 'SV'
- WHERE (t1.id LIKE '%' OR t2.text_data LIKE '%');
-id text_id text_data
-1 0 0-SV
-2 10 10-SV
-DROP TABLE t1, t2;
-CREATE TABLE t0 (a0 int PRIMARY KEY);
-CREATE TABLE t1 (a1 int PRIMARY KEY);
-CREATE TABLE t2 (a2 int);
-CREATE TABLE t3 (a3 int);
-INSERT INTO t0 VALUES (1);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (1), (2);
-INSERT INTO t3 VALUES (1), (2);
-SELECT * FROM t1 LEFT JOIN t2 ON a1=0;
-a1 a2
-1 NULL
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON a1=0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 LEFT JOIN (t2,t3) ON a1=0;
-a1 a2 a3
-1 NULL NULL
-EXPLAIN SELECT * FROM t1 LEFT JOIN (t2,t3) ON a1=0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2
-SELECT * FROM t0, t1 LEFT JOIN (t2,t3) ON a1=0 WHERE a0=a1;
-a0 a1 a2 a3
-1 1 NULL NULL
-EXPLAIN SELECT * FROM t0, t1 LEFT JOIN (t2,t3) ON a1=0 WHERE a0=a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2
-INSERT INTO t0 VALUES (0);
-INSERT INTO t1 VALUES (0);
-SELECT * FROM t0, t1 LEFT JOIN (t2,t3) ON a1=5 WHERE a0=a1 AND a0=1;
-a0 a1 a2 a3
-1 1 NULL NULL
-EXPLAIN SELECT * FROM t0, t1 LEFT JOIN (t2,t3) ON a1=5 WHERE a0=a1 AND a0=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2
-drop table t1,t2;
-create table t1 (a int, b int);
-insert into t1 values (1,1),(2,2),(3,3);
-create table t2 (a int, b int);
-insert into t2 values (1,1), (2,2);
-select * from t2 right join t1 on t2.a=t1.a;
-a b a b
-1 1 1 1
-2 2 2 2
-NULL NULL 3 3
-select straight_join * from t2 right join t1 on t2.a=t1.a;
-a b a b
-1 1 1 1
-2 2 2 2
-NULL NULL 3 3
-DROP TABLE t0,t1,t2,t3;
-CREATE TABLE t1 (a int PRIMARY KEY, b int);
-CREATE TABLE t2 (a int PRIMARY KEY, b int);
-INSERT INTO t1 VALUES (1,1), (2,1), (3,1), (4,2);
-INSERT INTO t2 VALUES (1,2), (2,2);
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.a;
-a b a b
-1 1 1 2
-2 1 2 2
-3 1 NULL NULL
-4 2 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.a WHERE t1.b=1;
-a b a b
-1 1 1 2
-2 1 2 2
-3 1 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.a
-WHERE t1.b=1 XOR (NOT ISNULL(t2.a) AND t2.b=1);
-a b a b
-1 1 1 2
-2 1 2 2
-3 1 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.a WHERE not(0+(t1.a=30 and t2.b=1));
-a b a b
-1 1 1 2
-2 1 2 2
-3 1 NULL NULL
-4 2 NULL NULL
-DROP TABLE t1,t2;
-set group_concat_max_len=5;
-create table t1 (a int, b varchar(20));
-create table t2 (a int, c varchar(20));
-insert into t1 values (1,"aaaaaaaaaa"),(2,"bbbbbbbbbb");
-insert into t2 values (1,"cccccccccc"),(2,"dddddddddd");
-select group_concat(t1.b,t2.c) from t1 left join t2 using(a) group by t1.a;
-group_concat(t1.b,t2.c)
-aaaaa
-bbbbb
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-select group_concat(t1.b,t2.c) from t1 inner join t2 using(a) group by t1.a;
-group_concat(t1.b,t2.c)
-aaaaa
-bbbbb
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-select group_concat(t1.b,t2.c) from t1 left join t2 using(a) group by a;
-group_concat(t1.b,t2.c)
-aaaaa
-bbbbb
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-select group_concat(t1.b,t2.c) from t1 inner join t2 using(a) group by a;
-group_concat(t1.b,t2.c)
-aaaaa
-bbbbb
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-drop table t1, t2;
-set group_concat_max_len=default;
-create table t1 (gid smallint(5) unsigned not null, x int(11) not null, y int(11) not null, art int(11) not null, primary key (gid,x,y));
-insert t1 values (1, -5, -8, 2), (1, 2, 2, 1), (1, 1, 1, 1);
-create table t2 (gid smallint(5) unsigned not null, x int(11) not null, y int(11) not null, id int(11) not null, primary key (gid,id,x,y), key id (id));
-insert t2 values (1, -5, -8, 1), (1, 1, 1, 1), (1, 2, 2, 1);
-create table t3 ( set_id smallint(5) unsigned not null, id tinyint(4) unsigned not null, name char(12) not null, primary key (id,set_id));
-insert t3 values (0, 1, 'a'), (1, 1, 'b'), (0, 2, 'c'), (1, 2, 'd'), (1, 3, 'e'), (1, 4, 'f'), (1, 5, 'g'), (1, 6, 'h');
-explain select name from t1 left join t2 on t1.x = t2.x and t1.y = t2.y
-left join t3 on t1.art = t3.id where t2.id =1 and t2.x = -5 and t2.y =-8
-and t1.gid =1 and t2.gid =1 and t3.set_id =1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 10 const,const,const 1
-1 SIMPLE t2 const PRIMARY,id PRIMARY 14 const,const,const,const 1 Using index
-1 SIMPLE t3 const PRIMARY PRIMARY 3 const,const 1
-drop tables t1,t2,t3;
-CREATE TABLE t1 (EMPNUM INT, GRP INT);
-INSERT INTO t1 VALUES (0, 10);
-INSERT INTO t1 VALUES (2, 30);
-CREATE TABLE t2 (EMPNUM INT, NAME CHAR(5));
-INSERT INTO t2 VALUES (0, 'KERI');
-INSERT INTO t2 VALUES (9, 'BARRY');
-CREATE VIEW v1 AS
-SELECT COALESCE(t2.EMPNUM,t1.EMPNUM) AS EMPNUM, NAME, GRP
-FROM t2 LEFT OUTER JOIN t1 ON t2.EMPNUM=t1.EMPNUM;
-SELECT * FROM v1;
-EMPNUM NAME GRP
-0 KERI 10
-9 BARRY NULL
-SELECT * FROM v1 WHERE EMPNUM < 10;
-EMPNUM NAME GRP
-0 KERI 10
-9 BARRY NULL
-DROP VIEW v1;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (c11 int);
-CREATE TABLE t2 (c21 int);
-INSERT INTO t1 VALUES (30), (40), (50);
-INSERT INTO t2 VALUES (300), (400), (500);
-SELECT * FROM t1 LEFT JOIN t2 ON (c11=c21 AND c21=30) WHERE c11=40;
-c11 c21
-40 NULL
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a int PRIMARY KEY, b int);
-CREATE TABLE t2 (a int PRIMARY KEY, b int);
-INSERT INTO t1 VALUES (1,2), (2,1), (3,2), (4,3), (5,6), (6,5), (7,8), (8,7), (9,10);
-INSERT INTO t2 VALUES (3,0), (4,1), (6,4), (7,5);
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t2.b <= t1.a AND t1.a <= t1.b;
-a b a b
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a BETWEEN t2.b AND t1.b;
-a b a b
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t1.a NOT BETWEEN t2.b AND t1.b);
-a b a b
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t2.b > t1.a OR t1.a > t1.b;
-a b a b
-2 1 NULL NULL
-3 2 3 0
-4 3 4 1
-6 5 6 4
-8 7 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a NOT BETWEEN t2.b AND t1.b;
-a b a b
-2 1 NULL NULL
-3 2 3 0
-4 3 4 1
-6 5 6 4
-8 7 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t1.a BETWEEN t2.b AND t1.b);
-a b a b
-2 1 NULL NULL
-3 2 3 0
-4 3 4 1
-6 5 6 4
-8 7 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a = t2.a OR t2.b > t1.a OR t1.a > t1.b;
-a b a b
-2 1 NULL NULL
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-8 7 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t1.a != t2.a AND t1.a BETWEEN t2.b AND t1.b);
-a b a b
-2 1 NULL NULL
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-8 7 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a = t2.a AND (t2.b > t1.a OR t1.a > t1.b);
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t1.a != t2.a OR t1.a BETWEEN t2.b AND t1.b);
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a = t2.a OR t1.a = t2.b;
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a IN(t2.a, t2.b);
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t1.a NOT IN(t2.a, t2.b));
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a != t1.b AND t1.a != t2.b;
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a NOT IN(t1.b, t2.b);
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t1.a IN(t1.b, t2.b));
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t2.a != t2.b OR (t1.a != t2.a AND t1.a != t2.b);
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t2.a = t2.b AND t1.a IN(t2.a, t2.b));
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t2.a != t2.b AND t1.a != t1.b AND t1.a != t2.b;
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t2.a = t2.b OR t1.a IN(t1.b, t2.b));
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a = t2.a OR t1.a = t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 4
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.a 1
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a IN(t2.a, t2.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 4 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.a 1
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a > IF(t1.a = t2.b-2, t2.b, t2.b-1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 4 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.a 1
-DROP TABLE t1,t2;
-DROP VIEW IF EXISTS v1,v2;
-DROP TABLE IF EXISTS t1,t2;
-CREATE TABLE t1 (a int);
-CREATE table t2 (b int);
-INSERT INTO t1 VALUES (1), (2), (3), (4), (1), (1), (3);
-INSERT INTO t2 VALUES (2), (3);
-CREATE VIEW v1 AS SELECT a FROM t1 JOIN t2 ON t1.a=t2.b;
-CREATE VIEW v2 AS SELECT b FROM t2 JOIN t1 ON t2.b=t1.a;
-SELECT v1.a, v2. b
-FROM v1 LEFT OUTER JOIN v2 ON (v1.a=v2.b) AND (v1.a >= 3)
-GROUP BY v1.a;
-a b
-2 NULL
-3 3
-SELECT v1.a, v2. b
-FROM { OJ v1 LEFT OUTER JOIN v2 ON (v1.a=v2.b) AND (v1.a >= 3) }
-GROUP BY v1.a;
-a b
-2 NULL
-3 3
-DROP VIEW v1,v2;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (b int);
-INSERT INTO t1 VALUES (1), (2), (3), (4);
-INSERT INTO t2 VALUES (2), (3);
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.b WHERE (1=1);
-a b
-1 NULL
-2 2
-3 3
-4 NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.b WHERE (1 OR 1);
-a b
-1 NULL
-2 2
-3 3
-4 NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.b WHERE (0 OR 1);
-a b
-1 NULL
-2 2
-3 3
-4 NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.b WHERE (1=1 OR 2=2);
-a b
-1 NULL
-2 2
-3 3
-4 NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.b WHERE (1=1 OR 1=0);
-a b
-1 NULL
-2 2
-3 3
-4 NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-f1 varchar(16) collate latin1_swedish_ci PRIMARY KEY,
-f2 varchar(16) collate latin1_swedish_ci
-);
-CREATE TABLE t2 (
-f1 varchar(16) collate latin1_swedish_ci PRIMARY KEY,
-f3 varchar(16) collate latin1_swedish_ci
-);
-INSERT INTO t1 VALUES ('bla','blah');
-INSERT INTO t2 VALUES ('bla','sheep');
-SELECT * FROM t1 JOIN t2 USING(f1) WHERE f1='Bla';
-f1 f2 f3
-bla blah sheep
-SELECT * FROM t1 LEFT JOIN t2 USING(f1) WHERE f1='bla';
-f1 f2 f3
-bla blah sheep
-SELECT * FROM t1 LEFT JOIN t2 USING(f1) WHERE f1='Bla';
-f1 f2 f3
-bla blah sheep
-DROP TABLE t1,t2;
-CREATE TABLE t1 (id int PRIMARY KEY, a varchar(8));
-CREATE TABLE t2 (id int NOT NULL, b int NOT NULL, INDEX idx(id));
-INSERT INTO t1 VALUES
-(1,'aaaaaaa'), (5,'eeeeeee'), (4,'ddddddd'), (2,'bbbbbbb'), (3,'ccccccc');
-INSERT INTO t2 VALUES
-(3,10), (2,20), (5,30), (3,20), (5,10), (3,40), (3,30), (2,10), (2,40);
-EXPLAIN
-SELECT t1.id, a FROM t1 LEFT JOIN t2 ON t1.id=t2.id WHERE t2.b IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref idx idx 4 test.t1.id 2 Using where; Not exists
-flush status;
-SELECT t1.id, a FROM t1 LEFT JOIN t2 ON t1.id=t2.id WHERE t2.b IS NULL;
-id a
-1 aaaaaaa
-4 ddddddd
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 5
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 6
-DROP TABLE t1,t2;
-CREATE TABLE t1 (c int PRIMARY KEY, e int NOT NULL);
-INSERT INTO t1 VALUES (1,0), (2,1);
-CREATE TABLE t2 (d int PRIMARY KEY);
-INSERT INTO t2 VALUES (1), (2), (3);
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON e<>0 WHERE c=1 AND d IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 index NULL PRIMARY 4 NULL 3 Using where; Using index; Not exists
-SELECT * FROM t1 LEFT JOIN t2 ON e<>0 WHERE c=1 AND d IS NULL;
-c e d
-1 0 NULL
-SELECT * FROM t1 LEFT JOIN t2 ON e<>0 WHERE c=1 AND d<=>NULL;
-c e d
-1 0 NULL
-DROP TABLE t1,t2;
-#
-# Bug#47650: using group by with rollup without indexes returns incorrect
-# results with where
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 ( a INT, b INT );
-INSERT INTO t2 VALUES (1, 1),(1, 2),(1, 3),(2, 4),(2, 5);
-EXPLAIN
-SELECT t1.a, COUNT( t2.b ), SUM( t2.b ), MAX( t2.b )
-FROM t1 LEFT JOIN t2 USING( a )
-GROUP BY t1.a WITH ROLLUP;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 Using where
-SELECT t1.a, COUNT( t2.b ), SUM( t2.b ), MAX( t2.b )
-FROM t1 LEFT JOIN t2 USING( a )
-GROUP BY t1.a WITH ROLLUP;
-a COUNT( t2.b ) SUM( t2.b ) MAX( t2.b )
-1 3 6 3
-NULL 3 6 3
-EXPLAIN
-SELECT t1.a, COUNT( t2.b ), SUM( t2.b ), MAX( t2.b )
-FROM t1 JOIN t2 USING( a )
-GROUP BY t1.a WITH ROLLUP;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 Using where; Using filesort
-SELECT t1.a, COUNT( t2.b ), SUM( t2.b ), MAX( t2.b )
-FROM t1 JOIN t2 USING( a )
-GROUP BY t1.a WITH ROLLUP;
-a COUNT( t2.b ) SUM( t2.b ) MAX( t2.b )
-1 3 6 3
-NULL 3 6 3
-DROP TABLE t1, t2;
-#
-# Bug#51598 Inconsistent behaviour with a COALESCE statement inside an IN comparison
-#
-CREATE TABLE t1(f1 INT, f2 INT, f3 INT);
-INSERT INTO t1 VALUES (1, NULL, 3);
-CREATE TABLE t2(f1 INT, f2 INT);
-INSERT INTO t2 VALUES (2, 1);
-EXPLAIN EXTENDED SELECT * FROM t1 LEFT JOIN t2 ON t1.f2 = t2.f2
-WHERE (COALESCE(t1.f1, t2.f1), f3) IN ((1, 3), (2, 2));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t2 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select 1 AS `f1`,NULL AS `f2`,3 AS `f3`,NULL AS `f1`,NULL AS `f2` from `test`.`t2` where 1
-SELECT * FROM t1 LEFT JOIN t2 ON t1.f2 = t2.f2
-WHERE (COALESCE(t1.f1, t2.f1), f3) IN ((1, 3), (2, 2));
-f1 f2 f3 f1 f2
-1 NULL 3 NULL NULL
-DROP TABLE t1, t2;
-#
-# Bug#52357: Assertion failed: join->best_read in greedy_search
-# optimizer_search_depth=0
-#
-CREATE TABLE t1( a INT );
-INSERT INTO t1 VALUES (1),(2);
-SET optimizer_search_depth = 0;
-# Should not core dump on query preparation
-EXPLAIN
-SELECT 1
-FROM t1 tt3 LEFT OUTER JOIN t1 tt4 ON 1
-LEFT OUTER JOIN t1 tt5 ON 1
-LEFT OUTER JOIN t1 tt6 ON 1
-LEFT OUTER JOIN t1 tt7 ON 1
-LEFT OUTER JOIN t1 tt8 ON 1
-RIGHT OUTER JOIN t1 tt2 ON 1
-RIGHT OUTER JOIN t1 tt1 ON 1
-STRAIGHT_JOIN t1 tt9 ON 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE tt1 ALL NULL NULL NULL NULL 2
-1 SIMPLE tt2 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE tt3 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE tt4 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE tt5 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE tt6 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE tt7 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE tt8 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE tt9 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-SET optimizer_search_depth = DEFAULT;
-DROP TABLE t1;
-#
-# Bug#46091 STRAIGHT_JOIN + RIGHT JOIN returns different result
-#
-CREATE TABLE t1 (f1 INT NOT NULL);
-INSERT INTO t1 VALUES (9),(0);
-CREATE TABLE t2 (f1 INT NOT NULL);
-INSERT INTO t2 VALUES
-(5),(3),(0),(3),(1),(0),(1),(7),(1),(0),(0),(8),(4),(9),(0),(2),(0),(8),(5),(1);
-SELECT STRAIGHT_JOIN COUNT(*) FROM t1 TA1
-RIGHT JOIN t2 TA2 JOIN t2 TA3 ON TA2.f1 ON TA3.f1;
-COUNT(*)
-476
-EXPLAIN SELECT STRAIGHT_JOIN COUNT(*) FROM t1 TA1
-RIGHT JOIN t2 TA2 JOIN t2 TA3 ON TA2.f1 ON TA3.f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE TA2 ALL NULL NULL NULL NULL 20 Using where
-1 SIMPLE TA3 ALL NULL NULL NULL NULL 20 Using join buffer (flat, BNL join)
-1 SIMPLE TA1 ALL NULL NULL NULL NULL 2 Using where
-DROP TABLE t1, t2;
-#
-# Bug#48971 Segfault in add_found_match_trig_cond () at sql_select.cc:5990
-#
-CREATE TABLE t1(f1 INT, PRIMARY KEY (f1));
-INSERT INTO t1 VALUES (1),(2);
-EXPLAIN EXTENDED SELECT STRAIGHT_JOIN jt1.f1 FROM t1 AS jt1
-LEFT JOIN t1 AS jt2
-RIGHT JOIN t1 AS jt3
-JOIN t1 AS jt4 ON 1
-LEFT JOIN t1 AS jt5 ON 1
-ON 1
-RIGHT JOIN t1 AS jt6 ON jt6.f1
-ON 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE jt1 index NULL PRIMARY 4 NULL 2 100.00 Using index
-1 SIMPLE jt6 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index
-1 SIMPLE jt3 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index
-1 SIMPLE jt4 index NULL PRIMARY 4 NULL 2 100.00 Using index
-1 SIMPLE jt5 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index
-1 SIMPLE jt2 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index
-Warnings:
-Note 1003 select straight_join `test`.`jt1`.`f1` AS `f1` from `test`.`t1` `jt1` left join (`test`.`t1` `jt6` left join (`test`.`t1` `jt3` join `test`.`t1` `jt4` left join `test`.`t1` `jt5` on(1) left join `test`.`t1` `jt2` on(1)) on(`test`.`jt6`.`f1` <> 0 and 1)) on(1) where 1
-EXPLAIN EXTENDED SELECT STRAIGHT_JOIN jt1.f1 FROM t1 AS jt1
-RIGHT JOIN t1 AS jt2
-RIGHT JOIN t1 AS jt3
-JOIN t1 AS jt4 ON 1
-LEFT JOIN t1 AS jt5 ON 1
-ON 1
-RIGHT JOIN t1 AS jt6 ON jt6.f1
-ON 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE jt6 index NULL PRIMARY 4 NULL 2 100.00 Using index
-1 SIMPLE jt3 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index
-1 SIMPLE jt4 index NULL PRIMARY 4 NULL 2 100.00 Using index
-1 SIMPLE jt5 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index
-1 SIMPLE jt2 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index
-1 SIMPLE jt1 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index
-Warnings:
-Note 1003 select straight_join `test`.`jt1`.`f1` AS `f1` from `test`.`t1` `jt6` left join (`test`.`t1` `jt3` join `test`.`t1` `jt4` left join `test`.`t1` `jt5` on(1) left join `test`.`t1` `jt2` on(1)) on(`test`.`jt6`.`f1` <> 0 and 1) left join `test`.`t1` `jt1` on(1) where 1
-DROP TABLE t1;
-#
-# Bug#57688 Assertion `!table || (!table->write_set || bitmap_is_set(table->write_set, field
-#
-CREATE TABLE t1 (f1 INT NOT NULL, PRIMARY KEY (f1));
-CREATE TABLE t2 (f1 INT NOT NULL, f2 INT NOT NULL, PRIMARY KEY (f1, f2));
-INSERT INTO t1 VALUES (4);
-INSERT INTO t2 VALUES (3, 3);
-INSERT INTO t2 VALUES (7, 7);
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4
-GROUP BY t2.f1, t2.f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1 Using temporary; Using filesort
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 const 1 Using index
-SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4
-GROUP BY t2.f1, t2.f2;
-f1 f1 f2
-4 NULL NULL
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4 AND t2.f1 IS NOT NULL AND t2.f2 IS NOT NULL
-GROUP BY t2.f1, t2.f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 const 1 Using where; Using index; Using filesort
-SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4 AND t2.f1 IS NOT NULL AND t2.f2 IS NOT NULL
-GROUP BY t2.f1, t2.f2;
-f1 f1 f2
-DROP TABLE t1,t2;
-#
-# Bug#57034 incorrect OUTER JOIN result when joined on unique key
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY,
-col_int INT,
-col_int_unique INT UNIQUE KEY);
-INSERT INTO t1 VALUES (1,NULL,2), (2,0,0);
-CREATE TABLE t2 (pk INT PRIMARY KEY,
-col_int INT,
-col_int_unique INT UNIQUE KEY);
-INSERT INTO t2 VALUES (1,0,1), (2,0,2);
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2
-ON t1.col_int_unique = t2.col_int_unique AND t1.col_int = t2.col_int
-WHERE t1.pk=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 const col_int_unique col_int_unique 5 const 1
-SELECT * FROM t1 LEFT JOIN t2
-ON t1.col_int_unique = t2.col_int_unique AND t1.col_int = t2.col_int
-WHERE t1.pk=1;
-pk col_int col_int_unique pk col_int col_int_unique
-1 NULL 2 NULL NULL NULL
-DROP TABLE t1,t2;
-#
-# Bug#48046 Server incorrectly processing JOINs on NULL values
-#
-CREATE TABLE `BB` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`time_key` time DEFAULT NULL,
-`varchar_key` varchar(1) DEFAULT NULL,
-`varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `time_key` (`time_key`),
-KEY `varchar_key` (`varchar_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
-INSERT INTO `BB` VALUES (10,'18:27:58',NULL,NULL);
-SELECT table1.time_key AS field1, table2.pk
-FROM BB table1 LEFT JOIN BB table2
-ON table2.varchar_nokey = table1.varchar_key
-HAVING field1;
-field1 pk
-18:27:58 NULL
-DROP TABLE BB;
-#
-# Bug#49600 Server incorrectly processing RIGHT JOIN with
-# constant WHERE clause and no index
-#
-CREATE TABLE `BB` (
-`col_datetime_key` datetime DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-KEY `col_datetime_key` (`col_datetime_key`),
-KEY `col_varchar_key` (`col_varchar_key`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO `BB` VALUES ('1900-01-01 00:00:00',NULL,NULL);
-SELECT table1.col_datetime_key
-FROM BB table1 RIGHT JOIN BB table2
-ON table2 .col_varchar_nokey = table1.col_varchar_key
-WHERE 7;
-col_datetime_key
-NULL
-ALTER TABLE BB DISABLE KEYS;
-SELECT table1.col_datetime_key
-FROM BB table1 RIGHT JOIN BB table2
-ON table2 .col_varchar_nokey = table1.col_varchar_key
-WHERE 7;
-col_datetime_key
-NULL
-DROP TABLE BB;
-#
-# Bug#58490: Incorrect result in multi level OUTER JOIN
-# in combination with IS NULL
-#
-CREATE TABLE t1 (i INT NOT NULL);
-INSERT INTO t1 VALUES (0), (2),(3),(4);
-CREATE TABLE t2 (i INT NOT NULL);
-INSERT INTO t2 VALUES (0),(1), (3),(4);
-CREATE TABLE t3 (i INT NOT NULL);
-INSERT INTO t3 VALUES (0),(1),(2), (4);
-CREATE TABLE t4 (i INT NOT NULL);
-INSERT INTO t4 VALUES (0),(1),(2),(3) ;
-SELECT * FROM
-t1 LEFT JOIN
-( t2 LEFT JOIN
-( t3 LEFT JOIN
-t4
-ON t4.i = t3.i
-)
-ON t3.i = t2.i
-)
-ON t2.i = t1.i
-;
-i i i i
-0 0 0 0
-2 NULL NULL NULL
-3 3 NULL NULL
-4 4 4 NULL
-SELECT * FROM
-t1 LEFT JOIN
-( t2 LEFT JOIN
-( t3 LEFT JOIN
-t4
-ON t4.i = t3.i
-)
-ON t3.i = t2.i
-)
-ON t2.i = t1.i
-WHERE t4.i IS NULL;
-i i i i
-2 NULL NULL NULL
-3 3 NULL NULL
-4 4 4 NULL
-SELECT * FROM
-t1 LEFT JOIN
-( ( t2 LEFT JOIN
-t3
-ON t3.i = t2.i
-)
-)
-ON t2.i = t1.i
-WHERE t3.i IS NULL;
-i i i
-2 NULL NULL
-3 3 NULL
-SELECT * FROM
-t1 LEFT JOIN
-( ( t2 LEFT JOIN
-t3
-ON t3.i = t2.i
-)
-JOIN t4
-ON t4.i=t2.i
-)
-ON t2.i = t1.i
-WHERE t3.i IS NULL;
-i i i i
-2 NULL NULL NULL
-3 3 NULL 3
-4 NULL NULL NULL
-SELECT * FROM
-t1 LEFT JOIN
-( ( t2 LEFT JOIN
-t3
-ON t3.i = t2.i
-)
-JOIN (t4 AS t4a JOIN t4 AS t4b ON t4a.i=t4b.i)
-ON t4a.i=t2.i
-)
-ON t2.i = t1.i
-WHERE t3.i IS NULL;
-i i i i i
-2 NULL NULL NULL NULL
-3 3 NULL 3 3
-4 NULL NULL NULL NULL
-SELECT * FROM
-t1 LEFT JOIN
-( ( t2 LEFT JOIN
-t3
-ON t3.i = t2.i
-)
-JOIN (t4 AS t4a, t4 AS t4b)
-ON t4a.i=t2.i
-)
-ON t2.i = t1.i
-WHERE t3.i IS NULL;
-i i i i i
-2 NULL NULL NULL NULL
-3 3 NULL 3 0
-3 3 NULL 3 1
-3 3 NULL 3 2
-3 3 NULL 3 3
-4 NULL NULL NULL NULL
-DROP TABLE t1,t2,t3,t4;
-#
-# Bug#49322(Duplicate): Server is adding extra NULL row
-# on processing a WHERE clause
-#
-CREATE TABLE h (pk INT NOT NULL, col_int_key INT);
-INSERT INTO h VALUES (1,NULL),(4,2),(5,2),(3,4),(2,8);
-CREATE TABLE m (pk INT NOT NULL, col_int_key INT);
-INSERT INTO m VALUES (1,2),(2,7),(3,5),(4,7),(5,5),(6,NULL),(7,NULL),(8,9);
-CREATE TABLE k (pk INT NOT NULL, col_int_key INT);
-INSERT INTO k VALUES (1,9),(2,2),(3,5),(4,2),(5,7),(6,0),(7,5);
-SELECT TABLE1.pk FROM k TABLE1
-RIGHT JOIN h TABLE2 ON TABLE1.col_int_key=TABLE2.col_int_key
-RIGHT JOIN m TABLE4 ON TABLE2.col_int_key=TABLE4.col_int_key;
-pk
-2
-2
-4
-4
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-SELECT TABLE1.pk FROM k TABLE1
-RIGHT JOIN h TABLE2 ON TABLE1.col_int_key=TABLE2.col_int_key
-RIGHT JOIN m TABLE4 ON TABLE2.col_int_key=TABLE4.col_int_key
-WHERE TABLE1.pk IS NULL;
-pk
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-DROP TABLE h,m,k;
-
-# BUG#12567331 - INFINITE LOOP WHEN RESOLVING AN ALIASED COLUMN
-# USED IN GROUP BY
-
-CREATE TABLE t1 (
-col_varchar_1024_latin1_key varchar(1024),
-col_varchar_10_latin1 varchar(10),
-col_int int(11),
-pk int(11)
-);
-CREATE TABLE t2 (
-col_int_key int(11),
-col_int int(11),
-pk int(11)
-);
-PREPARE prep_stmt_9846 FROM '
-SELECT alias1.pk AS field1 FROM
-t1 AS alias1
-LEFT JOIN
-(
- t2 AS alias2
- RIGHT JOIN
- (
- t2 AS alias3
- JOIN t1 AS alias4
- ON 1
- )
- ON 1
-)
-ON 1
-GROUP BY field1';
-execute prep_stmt_9846;
-field1
-execute prep_stmt_9846;
-field1
-drop table t1,t2;
-#
-# Bug #11765810 58813: SERVER THREAD HANGS WHEN JOIN + WHERE + GROUP BY
-# IS EXECUTED TWICE FROM P
-#
-CREATE TABLE t1 ( a INT ) ENGINE = MYISAM;
-INSERT INTO t1 VALUES (1);
-PREPARE prep_stmt FROM '
- SELECT 1 AS f FROM t1
- LEFT JOIN t1 t2
- RIGHT JOIN t1 t3
- JOIN t1 t4
- ON 1
- ON 1
- ON 1
- GROUP BY f';
-EXECUTE prep_stmt;
-f
-1
-EXECUTE prep_stmt;
-f
-1
-DROP TABLE t1;
-#
-# Bug#49600: outer join of two single-row tables with joining attributes
-# evaluated to nulls
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1, NULL);
-insert into t2 values (2, NULL);
-select * from t1 left join t2 on t1.b=t2.b;
-a b a b
-1 NULL NULL NULL
-select * from t1 left join t2 on t1.b=t2.b where 1=1;
-a b a b
-1 NULL NULL NULL
-drop table t1,t2;
-#
-# Bug#53161: outer join in the derived table is erroneously converted
-# into an inner join for a query with a group by clause
-#
-create table t1 (pk int not null primary key, a int not null);
-create table t2 like t1;
-create table t3 like t1;
-create table t4 (pk int not null primary key);
-insert into t1 values (1000, 1), (1001, 1);
-insert into t2 values (2000, 2), (2001, 2);
-insert into t3 values (3000, 3), (3001, 2);
-insert into t4 values (4000), (4001);
-explain extended
-select t2.pk,
-(select t3.pk+if(isnull(t4.pk),0,t4.pk)
-from t3 left join t4 on t4.pk=t3.pk
-where t3.pk=t2.pk+1000 limit 1 ) as t
-from t1,t2
-where t2.pk=t1.pk+1000 and t1.pk>1000
-group by t2.pk;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 2 100.00 Using where; Using index; Using temporary; Using filesort
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 func 1 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t3 eq_ref PRIMARY PRIMARY 4 func 1 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t4 eq_ref PRIMARY PRIMARY 4 test.t3.pk 1 100.00 Using index
-Warnings:
-Note 1276 Field or reference 'test.t2.pk' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`pk` AS `pk`,<expr_cache><`test`.`t2`.`pk`>((/* select#2 */ select `test`.`t3`.`pk` + if(`test`.`t4`.`pk` is null,0,`test`.`t4`.`pk`) from `test`.`t3` left join `test`.`t4` on(`test`.`t4`.`pk` = `test`.`t3`.`pk`) where `test`.`t3`.`pk` = `test`.`t2`.`pk` + 1000 limit 1)) AS `t` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`pk` = `test`.`t1`.`pk` + 1000 and `test`.`t1`.`pk` > 1000 group by `test`.`t2`.`pk`
-select t2.pk,
-(select t3.pk+if(isnull(t4.pk),0,t4.pk)
-from t3 left join t4 on t4.pk=t3.pk
-where t3.pk=t2.pk+1000 limit 1 ) as t
-from t1,t2
-where t2.pk=t1.pk+1000 and t1.pk>1000
-group by t2.pk;
-pk t
-2001 3001
-drop table t1,t2,t3,t4;
-#
-# Bug#57024: Poor performance when conjunctive condition over the outer
-# table is used in the on condition of an outer join
-#
-create table t1 (a int);
-insert into t1 values (NULL), (NULL), (NULL), (NULL);
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 values (4), (2), (1), (3);
-create table t2 like t1;
-insert into t2 select if(t1.a is null, 10, t1.a) from t1;
-create table t3 (a int, b int, index idx(a));
-insert into t3 values (1, 100), (3, 301), (4, 402), (1, 102), (1, 101);
-insert into t3 values (11, 100), (33, 301), (44, 402), (11, 102), (11, 101);
-insert into t3 values (22, 100), (53, 301), (64, 402), (22, 102), (22, 101);
-analyze table t1,t2,t3;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-test.t2 analyze status OK
-test.t3 analyze status OK
-flush status;
-select sum(t3.b) from t1 left join t3 on t3.a=t1.a and t1.a is not null;
-sum(t3.b)
-1006
-show status like "handler_read%";
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 4
-Handler_read_last 0
-Handler_read_next 5
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 1048581
-flush status;
-select sum(t3.b) from t2 left join t3 on t3.a=t2.a and t2.a <> 10;
-sum(t3.b)
-1006
-show status like "handler_read%";
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 4
-Handler_read_last 0
-Handler_read_next 5
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 1048581
-drop table t1,t2,t3;
-#
-# Bug#57688 Assertion `!table || (!table->write_set || bitmap_is_set(table->write_set, field
-#
-CREATE TABLE t1 (f1 INT NOT NULL, PRIMARY KEY (f1));
-CREATE TABLE t2 (f1 INT NOT NULL, f2 INT NOT NULL, PRIMARY KEY (f1, f2));
-INSERT INTO t1 VALUES (4);
-INSERT INTO t2 VALUES (3, 3);
-INSERT INTO t2 VALUES (7, 7);
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4
-GROUP BY t2.f1, t2.f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1 Using temporary; Using filesort
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 const 1 Using index
-SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4
-GROUP BY t2.f1, t2.f2;
-f1 f1 f2
-4 NULL NULL
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4 AND t2.f1 IS NOT NULL AND t2.f2 IS NOT NULL
-GROUP BY t2.f1, t2.f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 const 1 Using where; Using index; Using filesort
-SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4 AND t2.f1 IS NOT NULL AND t2.f2 IS NOT NULL
-GROUP BY t2.f1, t2.f2;
-f1 f1 f2
-DROP TABLE t1,t2;
-#
-# Bug#13068506 - QUERY WITH GROUP BY ON NON-AGGR COLUMN RETURNS
-# WRONG RESULT
-#
-CREATE TABLE t1 (i1 int);
-INSERT INTO t1 VALUES (100), (101);
-CREATE TABLE t2 (i2 int, i3 int);
-INSERT INTO t2 VALUES (20,1),(10,2);
-CREATE TABLE t3 (i4 int(11));
-INSERT INTO t3 VALUES (1),(2);
-
-SELECT (
-SELECT MAX( t2.i2 )
-FROM t3 RIGHT JOIN t2 ON ( t2.i3 = 2 )
-WHERE t2.i3 <> t1.i1
-) AS field1
-FROM t1;;
-field1
-20
-20
-
-SELECT (
-SELECT MAX( t2.i2 )
-FROM t3 RIGHT JOIN t2 ON ( t2.i3 = 2 )
-WHERE t2.i3 <> t1.i1
-) AS field1
-FROM t1 GROUP BY field1;;
-field1
-20
-
-drop table t1,t2,t3;
-# End of test for Bug#13068506
-End of 5.1 tests
-#
-# LP BUG#994392: Wrong result with RIGHT/LEFT JOIN and ALL subquery
-# predicate in WHERE condition.
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES(9);
-CREATE TABLE t2(b INT);
-INSERT INTO t2 VALUES(8);
-CREATE TABLE t3(c INT);
-INSERT INTO t3 VALUES(3);
-SELECT * FROM t2 RIGHT JOIN t3 ON(c = b) WHERE b < ALL(SELECT a FROM t1 WHERE a <= 7);
-b c
-NULL 3
-SELECT * FROM t3 LEFT JOIN t2 ON(c = b) WHERE b < ALL(SELECT a FROM t1 WHERE a <= 7);
-c b
-3 NULL
-SELECT * FROM t2 RIGHT JOIN t3 ON(c = b) WHERE b not in (SELECT a FROM t1 WHERE a <= 7);
-b c
-NULL 3
-SELECT * FROM t3 LEFT JOIN t2 ON(c = b) WHERE b not in (SELECT a FROM t1 WHERE a <= 7);
-c b
-3 NULL
-drop table t1,t2,t3;
-End of 5.2 tests
-#
-# LP bug #813447: LEFT JOIN with single-row inner table and
-# a subquery in ON expression
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (0);
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES (0);
-CREATE TABLE t3 (a int);
-INSERT INTO t3 VALUES (0), (0);
-SELECT t2.a FROM t1 LEFT JOIN t2 ON (6) IN (SELECT a FROM t3);
-a
-NULL
-EXPLAIN EXTENDED
-SELECT t2.a FROM t1 LEFT JOIN t2 ON (6) IN (SELECT a FROM t3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t2 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select NULL AS `a` from `test`.`t2` where 1
-DROP TABLE t1,t2,t3;
-#
-# LP bug #817384 Wrong result with outer join + subquery in ON
-# clause +unique key
-#
-CREATE TABLE t1 ( c int NOT NULL , b char(1) NOT NULL ) ;
-INSERT INTO t1 VALUES (1,'b');
-CREATE TABLE t2 ( a int NOT NULL , b char(1) NOT NULL , PRIMARY KEY (a)) ;
-INSERT INTO t2 VALUES (1,'a');
-create table t3 (c1 char(1), c2 char(2));
-insert into t3 values ('c','d');
-insert into t3 values ('c','d');
-EXPLAIN SELECT t2.b
-FROM t1 LEFT JOIN t2 ON t1.c = t2.a AND ( t2.b , t1.b ) IN (SELECT * from t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 const 1 Using where
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where
-SELECT t2.b
-FROM t1 LEFT JOIN t2 ON t1.c = t2.a AND ( t2.b , t1.b ) IN (SELECT * from t3);
-b
-NULL
-EXPLAIN SELECT t2.b
-FROM t1 LEFT JOIN t2 ON (t2.b) IN (SELECT c2 from t3) AND t2.a = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 const PRIMARY PRIMARY 4 const 1 Using where
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where
-SELECT t2.b
-FROM t1 LEFT JOIN t2 ON (t2.b) IN (SELECT c2 from t3) AND t2.a = 1;
-b
-NULL
-DROP TABLE t1,t2,t3;
-#
-# lp:825035 second execution of PS with outer join
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-CREATE TABLE t2 (a int);
-PREPARE stmt FROM
-"SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a";
-EXECUTE stmt;
-a a
-1 NULL
-2 NULL
-3 NULL
-4 NULL
-EXECUTE stmt;
-a a
-1 NULL
-2 NULL
-3 NULL
-4 NULL
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1,t2;
-#
-# lp:838633 second execution of PS with outer join
-# converted to inner join
-#
-CREATE TABLE t1 ( b int NOT NULL ) ;
-INSERT INTO t1 VALUES (9),(10);
-CREATE TABLE t2 ( b int NOT NULL, PRIMARY KEY (b)) ;
-INSERT INTO t2 VALUES
-(75),(76),(77),(78),(79),(80),(81),(82),(83),(84),(85),(86),(87),(88),(89),
-(10), (90),(91),(92),(93),(94),(95),(96),(97),(98),(99),(100);
-CREATE TABLE t3 ( a int, b int NOT NULL , PRIMARY KEY (b)) ;
-INSERT INTO t3 VALUES
-(0,6),(0,7),(0,8),(2,9),(0,10),(2,21),(0,22),(2,23),(2,24),(2,25);
-SET SESSION join_cache_level=4;
-EXPLAIN EXTENDED
-SELECT * FROM (t2 LEFT JOIN t1 ON t1.b = t2.b) JOIN t3 ON t1.b = t3.b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t3 hash_ALL PRIMARY #hash#PRIMARY 4 test.t1.b 10 10.00 Using join buffer (flat, BNLH join)
-1 SIMPLE t2 hash_index PRIMARY #hash#PRIMARY:PRIMARY 4:4 test.t1.b 27 3.70 Using index; Using join buffer (incremental, BNLH join)
-Warnings:
-Note 1003 select `test`.`t2`.`b` AS `b`,`test`.`t1`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b` from `test`.`t2` join `test`.`t1` join `test`.`t3` where `test`.`t3`.`b` = `test`.`t1`.`b` and `test`.`t2`.`b` = `test`.`t1`.`b`
-PREPARE stmt FROM
-'SELECT * FROM (t2 LEFT JOIN t1 ON t1.b = t2.b) JOIN t3 ON t1.b = t3.b';
-EXECUTE stmt;
-b b a b
-10 10 0 10
-EXECUTE stmt;
-b b a b
-10 10 0 10
-DEALLOCATE PREPARE stmt;
-SET SESSION join_cache_level=default;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #943543: LEFT JOIN converted to JOIN with
-# ORed IS NULL(primary key) in WHERE clause
-#
-CREATE TABLE t1 (
-a int, b int NOT NULL, pk int NOT NULL,
-PRIMARY KEY (pk), INDEX idx(b)
-);
-INSERT INTO t1 VALUES
-(NULL,1,1), (6,2,2), (5,3,3), (NULL,4,4),
-(1,9,6), (8,5,7), (NULL,8,8), (8,1,5);
-CREATE TABLE t2 (pk int PRIMARY KEY);
-INSERT INTO t2 VALUES (3), (8), (5);
-EXPLAIN EXTENDED
-SELECT t1.pk FROM t2 JOIN t1 ON t2.pk = t1.a
-WHERE t1.b BETWEEN 5 AND 6 AND t1.pk IS NULL OR t1.pk = 5
-ORDER BY t1.pk;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 100.00
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 100.00 Using index
-Warnings:
-Note 1003 select 5 AS `pk` from `test`.`t2` join `test`.`t1` where 1 order by 5
-SELECT t1.pk FROM t2 JOIN t1 ON t2.pk = t1.a
-WHERE t1.b BETWEEN 5 AND 6 AND t1.pk IS NULL OR t1.pk = 5
-ORDER BY t1.pk;
-pk
-5
-EXPLAIN EXTENDED
-SELECT t1.pk FROM t2 LEFT JOIN t1 ON t2.pk = t1.a
-WHERE t1.b BETWEEN 5 AND 6 AND t1.pk IS NULL OR t1.pk = 5
-ORDER BY t1.pk;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 const PRIMARY,idx PRIMARY 4 const 1 100.00
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 100.00 Using index
-Warnings:
-Note 1003 select 5 AS `pk` from `test`.`t2` join `test`.`t1` where 1 order by 5
-SELECT t1.pk FROM t2 LEFT JOIN t1 ON t2.pk = t1.a
-WHERE t1.b BETWEEN 5 AND 6 AND t1.pk IS NULL OR t1.pk = 5
-ORDER BY t1.pk;
-pk
-5
-DROP TABLE t2;
-CREATE TABLE t2 (c int, d int, KEY (c));
-INSERT INTO t2 VALUES
-(3,30), (8,88), (5,50), (8,81),
-(4,40), (9,90), (7,70), (9,90),
-(13,130), (18,188), (15,150), (18,181),
-(14,140), (19,190), (17,170), (19,190);
-INSERT INTO t1 VALUES (8,5,9);
-EXPLAIN EXTENDED
-SELECT t1.b, t2.c, t2.d FROM t2 JOIN t1 ON t2.c = t1.a
-WHERE t1.pk BETWEEN 5 AND 6 AND t1.b IS NULL OR t1.b = 5
-ORDER BY t1.b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ref idx idx 4 const 2 100.00 Using where
-1 SIMPLE t2 ref c c 5 test.t1.a 2 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` join `test`.`t1` where `test`.`t2`.`c` = `test`.`t1`.`a` and `test`.`t1`.`b` = 5 order by `test`.`t1`.`b`
-SELECT t1.b, t2.c, t2.d FROM t2 JOIN t1 ON t2.c = t1.a
-WHERE t1.pk BETWEEN 5 AND 6 AND t1.b IS NULL OR t1.b = 5
-ORDER BY t1.b;
-b c d
-5 8 88
-5 8 81
-5 8 88
-5 8 81
-EXPLAIN EXTENDED
-SELECT t1.b, t2.c, t2.d FROM t2 LEFT JOIN t1 ON t2.c = t1.a
-WHERE t1.pk BETWEEN 5 AND 6 AND t1.b IS NULL OR t1.b = 5
-ORDER BY t1.b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ref PRIMARY,idx idx 4 const 2 100.00 Using where
-1 SIMPLE t2 ref c c 5 test.t1.a 2 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` join `test`.`t1` where `test`.`t2`.`c` = `test`.`t1`.`a` and `test`.`t1`.`b` = 5 order by `test`.`t1`.`b`
-SELECT t1.b, t2.c, t2.d FROM t2 LEFT JOIN t1 ON t2.c = t1.a
-WHERE t1.pk BETWEEN 5 AND 6 AND t1.b IS NULL OR t1.b = 5
-ORDER BY t1.b;
-b c d
-5 8 88
-5 8 81
-5 8 88
-5 8 81
-DROP TABLE t1,t2;
-#
-# Bug mdev-4336: LEFT JOIN with disjunctive
-# <non-nullable datetime field> IS NULL in WHERE
-# causes a hang and eventual crash
-#
-CREATE TABLE t1 (
-id int(11) NOT NULL,
-modified datetime NOT NULL,
-PRIMARY KEY (id)
-);
-SELECT a.* FROM t1 a LEFT JOIN t1 b ON a.id = b.id
-WHERE a.modified > b.modified or b.modified IS NULL;
-id modified
-DROP TABLE t1;
-#
-# MDEV-4817: Optimizer fails to optimize expression of the form 'FOO' IS NULL
-#
-create table t0 (a int not null);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-alter table t0 add person_id varchar(255) not null;
-create table t1 (pk int not null primary key);
-insert into t1 select A.a + 10*B.a from t0 A, t0 B;
-explain select * from t1 left join t0 on t0.a=t1.pk where t0.person_id='fooo' or 'xyz' IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t0.a 1 Using index
-explain select * from t1 left join t0 on t0.a=t1.pk where t0.person_id='fooo';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t0.a 1 Using index
-explain select * from t1 left join t0 on t0.a=t1.pk where t0.person_id='fooo' or t0.person_id='bar';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t0.a 1 Using index
-drop table t0, t1;
-#
-# MDEV-4836: Wrong result on <not null date column> IS NULL (old documented hack stopped working)
-# (this is a regression after fix for MDEV-4817)
-#
-CREATE TABLE t1 (id INT, d DATE NOT NULL);
-INSERT INTO t1 VALUES (1,'0000-00-00'),(2,'0000-00-00');
-CREATE TABLE t2 (i INT);
-SELECT * FROM t1 LEFT JOIN t2 ON (id=i) WHERE NULL OR d IS NULL;
-id d i
-1 0000-00-00 NULL
-2 0000-00-00 NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (i1 INT, d1 DATE NOT NULL);
-INSERT INTO t1 VALUES (1,'2012-12-21'),(2,'0000-00-00');
-CREATE TABLE t2 (i2 INT, j2 INT);
-INSERT INTO t2 VALUES (1,10),(2,20);
-SELECT * FROM t1 LEFT JOIN t2 ON i1 = j2 WHERE d1 IS NULL AND 1 OR i1 = i2;
-i1 d1 i2 j2
-2 0000-00-00 NULL NULL
-DROP TABLE t1,t2;
-# Another testcase
-CREATE TABLE t1 (i1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (NULL);
-CREATE TABLE t2 (i2 INT, a INT, b INT) ENGINE=MyISAM;
-CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
-INSERT INTO t2 VALUES (NULL,1,2),(NULL,2,3);
-SELECT * FROM t1 LEFT JOIN v2 ON i1 = i2 WHERE a < b;
-i1 i2 a b
-SELECT * FROM t1 LEFT JOIN t2 ON i1 = i2 WHERE a < b;
-i1 i2 a b
-drop view v2;
-drop table t1,t2;
-#
-# Bug mdev-4942: LEFT JOIN with conjunctive
-# <non-nullable datetime field> IS NULL in WHERE
-# causes an assert failure
-#
-CREATE TABLE t1 ( i1 int, d1 date );
-INSERT INTO t1 VALUES (1,'2001-06-26'), (2,'2000-11-16');
-CREATE TABLE t2 ( i2 int, d2 date NOT NULL );
-INSERT INTO t2 VALUES (3,'2000-03-06'), (4,'2007-09-25');
-SELECT * FROM t1 LEFT JOIN t2 ON i1 = i2 WHERE d1 IS NULL AND d2 IS NULL;
-i1 d1 i2 d2
-DROP TABLE t1,t2;
-#
-# Bug mdev-4952: LEFT JOIN with disjunctive
-# <non-nullable datetime field> IS NULL in WHERE
-# causes an assert failure
-#
-CREATE TABLE t1 (a1 int, b1 int NOT NULL) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1, 10), (2, 11);
-CREATE TABLE t2 (dt datetime NOT NULL, a2 int, b2 int) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-('2006-10-08 09:34:54', 1, 100), ('2001-01-19 01:04:43', 2, 200);
-SELECT * FROM t1 LEFT JOIN t2 ON a1 = a2
-WHERE ( dt IS NULL OR FALSE ) AND b2 IS NULL;
-a1 b1 dt a2 b2
-DROP TABLE t1,t2;
-#
-# Bug mdev-4962: nested outer join with
-# <non-nullable datetime field> IS NULL in WHERE
-# causes an assert failure
-#
-CREATE TABLE t1 (i1 int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (i2 int) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (10),(20);
-CREATE TABLE t3 (i3 int, d3 datetime NOT NULL) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (8,'2008-12-04 17:53:42'),(9,'2012-12-21 12:12:12');
-SELECT * FROM t1 LEFT JOIN t2 LEFT JOIN t3 ON i2 = i3 ON i1 = i3
-WHERE d3 IS NULL;
-i1 i2 i3 d3
-1 NULL NULL NULL
-2 NULL NULL NULL
-EXPLAIN EXTENDED
-SELECT * FROM t1 LEFT JOIN t2 LEFT JOIN t3 ON i2 = i3 ON i1 = i3
-WHERE d3 IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`i1` AS `i1`,`test`.`t2`.`i2` AS `i2`,`test`.`t3`.`i3` AS `i3`,`test`.`t3`.`d3` AS `d3` from `test`.`t1` left join (`test`.`t2` join `test`.`t3`) on(`test`.`t2`.`i2` = `test`.`t1`.`i1` and `test`.`t3`.`i3` = `test`.`t1`.`i1`) where `test`.`t3`.`d3` = 0 or `test`.`t3`.`d3` is null
-DROP TABLE t1,t2,t3;
-#
-# Bug mdev-6705: wrong on expression after constant row substitution
-# that triggers a simplification of WHERE condition
-#
-CREATE TABLE t1 (a int, b int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (10,8);
-CREATE TABLE t2 (c int) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8),(9);
-CREATE TABLE t3 (d int) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (3),(8);
-EXPLAIN EXTENDED
-SELECT * FROM t1 INNER JOIN t2 ON c = b LEFT JOIN t3 ON d = a
-WHERE b IN (1,2,3) OR b = d;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select 10 AS `a`,8 AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t3`.`d` AS `d` from `test`.`t2` left join `test`.`t3` on(`test`.`t3`.`d` = 10) where `test`.`t2`.`c` = 8 and `test`.`t3`.`d` = 8
-SELECT * FROM t1 INNER JOIN t2 ON c = b LEFT JOIN t3 ON d = a
-WHERE b IN (1,2,3) OR b = d;
-a b c d
-DROP TABLE t1,t2,t3;
-#
-# MDEV-6634: Wrong estimates for ref(const) and key IS NULL predicate
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, c int, key(b), key(c));
-insert into t2 select
-@a:=A.a + 10*B.a+100*C.a,
-IF(@a<900, NULL, @a),
-IF(@a<500, NULL, @a)
-from t1 A, t1 B, t1 C;
-delete from t1 where a=0;
-# Check that there are different #rows of NULLs for b and c, both !=10:
-explain select * from t2 force index (b) where b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref b b 5 const 780 Using index condition
-explain select * from t2 force index (c) where c is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref c c 5 const 393 Using index condition
-explain select * from t1 left join t2 on t2.b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 9
-1 SIMPLE t2 ref b b 5 const 780 Using where
-explain select * from t1 left join t2 on t2.c is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 9
-1 SIMPLE t2 ref c c 5 const 393 Using where
-drop table t1,t2;
-#
-# MDEV-10006: optimizer doesn't convert outer join to inner on views with WHERE clause
-#
-CREATE TABLE t1(i1 int primary key, v1 int, key(v1));
-INSERT INTO t1 VALUES (1, 1);
-INSERT INTO t1 VALUES (2, 2);
-INSERT INTO t1 VALUES (3, 3);
-INSERT INTO t1 VALUES (4, 4);
-INSERT INTO t1 VALUES (5, 3);
-INSERT INTO t1 VALUES (6, 6);
-INSERT INTO t1 VALUES (7, 7);
-INSERT INTO t1 VALUES (8, 8);
-INSERT INTO t1 VALUES (9, 9);
-CREATE TABLE t2(i2 int primary key, v2 int, key(v2));
-INSERT INTO t2 VALUES (1, 1);
-INSERT INTO t2 VALUES (2, 2);
-INSERT INTO t2 VALUES (3, 3);
-INSERT INTO t2 VALUES (4, 4);
-INSERT INTO t2 VALUES (5, 3);
-INSERT INTO t2 VALUES (6, 6);
-INSERT INTO t2 VALUES (7, 7);
-INSERT INTO t2 VALUES (8, 8);
-INSERT INTO t2 VALUES (9, 9);
-CREATE TABLE t3(i3 int primary key, v3 int, key(v3));
-INSERT INTO t3 VALUES (2, 2);
-INSERT INTO t3 VALUES (4, 4);
-INSERT INTO t3 VALUES (6, 6);
-INSERT INTO t3 VALUES (8, 8);
-# This should have a join order of t3,t1,t2 (or t3,t2,t1, the idea is that t3 is the first one)
-EXPLAIN EXTENDED
-SELECT * FROM
-(SELECT t1.i1 as i1, t1.v1 as v1,
-t2.i2 as i2, t2.v2 as v2,
-t3.i3 as i3, t3.v3 as v3
-FROM t1 JOIN t2 on t1.i1 = t2.i2
-LEFT JOIN t3 on t2.i2 = t3.i3
-) as w1
-WHERE v3 = 4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 ref PRIMARY,v3 v3 5 const 1 100.00
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t3.i3 1 100.00
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t3.i3 1 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`i1` AS `i1`,`test`.`t1`.`v1` AS `v1`,`test`.`t2`.`i2` AS `i2`,`test`.`t2`.`v2` AS `v2`,`test`.`t3`.`i3` AS `i3`,`test`.`t3`.`v3` AS `v3` from `test`.`t1` join `test`.`t2` join `test`.`t3` where `test`.`t3`.`v3` = 4 and `test`.`t1`.`i1` = `test`.`t3`.`i3` and `test`.`t2`.`i2` = `test`.`t3`.`i3`
-# This should have the same join order like the query above:
-EXPLAIN EXTENDED
-SELECT * FROM
-(SELECT t1.i1 as i1, t1.v1 as v1,
-t2.i2 as i2, t2.v2 as v2,
-t3.i3 as i3, t3.v3 as v3
-FROM t1 JOIN t2 on t1.i1 = t2.i2
-LEFT JOIN t3 on t2.i2 = t3.i3
-WHERE t1.i1 = t2.i2
-AND 1 = 1
-) as w2
-WHERE v3 = 4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 ref PRIMARY,v3 v3 5 const 1 100.00
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t3.i3 1 100.00
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t3.i3 1 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`i1` AS `i1`,`test`.`t1`.`v1` AS `v1`,`test`.`t2`.`i2` AS `i2`,`test`.`t2`.`v2` AS `v2`,`test`.`t3`.`i3` AS `i3`,`test`.`t3`.`v3` AS `v3` from `test`.`t1` join `test`.`t2` join `test`.`t3` where `test`.`t3`.`v3` = 4 and `test`.`t1`.`i1` = `test`.`t3`.`i3` and `test`.`t2`.`i2` = `test`.`t3`.`i3`
-drop table t1,t2,t3;
-#
-# MDEV-11958: LEFT JOIN with stored routine produces incorrect result
-#
-CREATE TABLE t (x INT);
-INSERT INTO t VALUES(1),(NULL);
-CREATE FUNCTION f (val INT, ret INT) RETURNS INT DETERMINISTIC RETURN IFNULL(val, ret);
-SELECT t1.x, t2.x, IFNULL(t2.x,0), f(t2.x,0)
-FROM t t1 LEFT JOIN t t2
-ON t1.x = t2.x
-WHERE IFNULL(t2.x,0)=0;
-x x IFNULL(t2.x,0) f(t2.x,0)
-NULL NULL 0 0
-explain extended
-SELECT t1.x, t2.x, IFNULL(t2.x,0), f(t2.x,0)
-FROM t t1 LEFT JOIN t t2
-ON t1.x = t2.x
-WHERE IFNULL(t2.x,0)=0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`x` AS `x`,`test`.`t2`.`x` AS `x`,ifnull(`test`.`t2`.`x`,0) AS `IFNULL(t2.x,0)`,`f`(`test`.`t2`.`x`,0) AS `f(t2.x,0)` from `test`.`t` `t1` left join `test`.`t` `t2` on(`test`.`t2`.`x` = `test`.`t1`.`x`) where ifnull(`test`.`t2`.`x`,0) = 0
-SELECT t1.x, t2.x, IFNULL(t2.x,0), f(t2.x,0)
-FROM t t1 LEFT JOIN t t2
-ON t1.x = t2.x
-WHERE f(t2.x,0)=0;
-x x IFNULL(t2.x,0) f(t2.x,0)
-NULL NULL 0 0
-explain extended
-SELECT t1.x, t2.x, IFNULL(t2.x,0), f(t2.x,0)
-FROM t t1 LEFT JOIN t t2
-ON t1.x = t2.x
-WHERE f(t2.x,0)=0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`x` AS `x`,`test`.`t2`.`x` AS `x`,ifnull(`test`.`t2`.`x`,0) AS `IFNULL(t2.x,0)`,`f`(`test`.`t2`.`x`,0) AS `f(t2.x,0)` from `test`.`t` `t1` left join `test`.`t` `t2` on(`test`.`t2`.`x` = `test`.`t1`.`x`) where `f`(`test`.`t2`.`x`,0) = 0
-drop function f;
-drop table t;
-CREATE TABLE t1 (
-col1 DECIMAL(33,5) NULL DEFAULT NULL,
-col2 DECIMAL(33,5) NULL DEFAULT NULL
-);
-CREATE TABLE t2 (
-col1 DECIMAL(33,5) NULL DEFAULT NULL,
-col2 DECIMAL(33,5) NULL DEFAULT NULL,
-col3 DECIMAL(33,5) NULL DEFAULT NULL
-);
-INSERT INTO t1 VALUES (2, 1.1), (2, 2.1);
-INSERT INTO t2 VALUES (3, 3.1, 4), (1, 1, NULL);
-CREATE FUNCTION f1 ( p_num DECIMAL(45,15), p_return DECIMAL(45,15))
-RETURNS decimal(33,5)
-LANGUAGE SQL
-DETERMINISTIC
-CONTAINS SQL
-SQL SECURITY INVOKER
-BEGIN
-IF p_num IS NULL THEN
-RETURN p_return;
-ELSE
-RETURN p_num;
-END IF;
-END |
-SELECT t1.col1, t2.col1, t2.col3
-FROM t1 LEFT OUTER JOIN t2 ON t1.col1 = t2.col2
-WHERE IFNULL(t2.col3,0) = 0;
-col1 col1 col3
-2.00000 NULL NULL
-2.00000 NULL NULL
-EXPLAIN EXTENDED SELECT t1.col1, t2.col1, t2.col3
-FROM t1 LEFT OUTER JOIN t2 ON t1.col1 = t2.col2
-WHERE IFNULL(t2.col3,0) = 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`col1` AS `col1`,`test`.`t2`.`col1` AS `col1`,`test`.`t2`.`col3` AS `col3` from `test`.`t1` left join `test`.`t2` on(`test`.`t2`.`col2` = `test`.`t1`.`col1`) where ifnull(`test`.`t2`.`col3`,0) = 0
-SELECT t1.col1, t2.col1, t2.col3
-FROM t1 LEFT OUTER JOIN t2 ON t1.col1 = t2.col2
-WHERE f1(t2.col3,0) = 0;
-col1 col1 col3
-2.00000 NULL NULL
-2.00000 NULL NULL
-EXPLAIN EXTENDED SELECT t1.col1, t2.col1, t2.col3
-FROM t1 LEFT OUTER JOIN t2 ON t1.col1 = t2.col2
-WHERE f1(t2.col3,0) = 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`col1` AS `col1`,`test`.`t2`.`col1` AS `col1`,`test`.`t2`.`col3` AS `col3` from `test`.`t1` left join `test`.`t2` on(`test`.`t2`.`col2` = `test`.`t1`.`col1`) where `f1`(`test`.`t2`.`col3`,0) = 0
-DROP FUNCTION f1;
-DROP TABLE t1,t2;
-#
-# MDEV-10397: Server crashes in key_copy with join_cache_level > 2 and join on BIT fields
-#
-CREATE TABLE t1 (b1 BIT NOT NULL);
-INSERT INTO t1 VALUES (0),(1);
-CREATE TABLE t2 (b2 BIT NOT NULL);
-INSERT INTO t2 VALUES (0),(1);
-set @save_join_cache_level= @@join_cache_level;
-SET @@join_cache_level = 3;
-SELECT t1.b1+'0' , t2.b2 + '0' FROM t1 LEFT JOIN t2 ON b1 = b2;
-t1.b1+'0' t2.b2 + '0'
-0 0
-1 1
-DROP TABLE t1, t2;
-set @join_cache_level= @save_join_cache_level;
-#
-# MDEV-14779: using left join causes incorrect results with materialization and derived tables
-#
-create table t1(id int);
-insert into t1 values (1),(2);
-create table t2(sid int, id int);
-insert into t2 values (1,1),(2,2);
-select * from t1 t
-left join (select * from t2 where sid in (select max(sid) from t2 where 0=1 group by id)) r
-on t.id=r.id ;
-id sid id
-1 NULL NULL
-2 NULL NULL
-drop table t1, t2;
-# end of 5.5 tests
-SET optimizer_switch=@save_optimizer_switch;
diff --git a/mysql-test/r/join_outer_innodb.result b/mysql-test/r/join_outer_innodb.result
deleted file mode 100644
index 6f3fb09329d..00000000000
--- a/mysql-test/r/join_outer_innodb.result
+++ /dev/null
@@ -1,500 +0,0 @@
-CREATE TABLE t1 (id int(11) NOT NULL PRIMARY KEY, name varchar(20),
-INDEX (name)) ENGINE=InnoDB;
-CREATE TABLE t2 (id int(11) NOT NULL PRIMARY KEY, fkey int(11),
-FOREIGN KEY (fkey) REFERENCES t2(id)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1,'A1'),(2,'A2'),(3,'B');
-INSERT INTO t2 VALUES (1,1),(2,2),(3,2),(4,3),(5,3);
-EXPLAIN
-SELECT COUNT(*) FROM t2 LEFT JOIN t1 ON t2.fkey = t1.id
-WHERE t1.name LIKE 'A%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY,name name 23 NULL 3 Using where; Using index
-1 SIMPLE t2 ref fkey fkey 5 test.t1.id 1 Using index
-EXPLAIN
-SELECT COUNT(*) FROM t2 LEFT JOIN t1 ON t2.fkey = t1.id
-WHERE t1.name LIKE 'A%' OR FALSE;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY,name name 23 NULL 3 Using where; Using index
-1 SIMPLE t2 ref fkey fkey 5 test.t1.id 1 Using index
-DROP TABLE t1,t2;
-#
-# BUG#58456: Assertion 0 in QUICK_INDEX_MERGE_SELECT::need_sorted_output
-# in opt_range.h
-#
-CREATE TABLE t1 (
-col_int INT,
-col_int_key INT,
-pk INT NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (NULL,1,1), (6,2,2), (5,3,3), (NULL,4,4);
-INSERT INTO t1 VALUES (1,NULL,6), (8,5,7), (NULL,8,8), (8,NULL,5);
-CREATE TABLE t2 (
-pk INT PRIMARY KEY
-) ENGINE=InnoDB;
-
-EXPLAIN SELECT t1.pk
-FROM t2 LEFT JOIN t1 ON t2.pk = t1.col_int
-WHERE t1.col_int_key BETWEEN 5 AND 6
-AND t1.pk IS NULL OR t1.pk IN (5)
-ORDER BY pk;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-
-SELECT t1.pk
-FROM t2 LEFT JOIN t1 ON t2.pk = t1.col_int
-WHERE t1.col_int_key BETWEEN 5 AND 6
-AND t1.pk IS NULL OR t1.pk IN (5)
-ORDER BY pk;
-pk
-
-DROP TABLE t1,t2;
-# End BUG#58456
-CREATE TABLE t1(a int, b int, KEY (a), PRIMARY KEY (b)) ENGINE=InnoDB;
-CREATE TABLE t2 (b int, PRIMARY KEY (b));
-INSERT INTO t2 VALUES (4),(9);
-SELECT STRAIGHT_JOIN t1.a FROM t1 RIGHT JOIN t2 ON t1.b = t2.b
-WHERE (t1.b NOT BETWEEN 1 AND 7 OR t1.a IS NULL AND t1.b = t2.b) AND t2.b = 4
-GROUP BY 1;
-a
-DROP TABLE t1,t2;
-#
-Bug #59487: WRONG RESULT WITH STRAIGHT_JOIN AND RIGHT JOIN
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL,
-col_varchar_10_latin1_key varchar(10) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES (1,'1');
-CREATE TABLE t2 (
-pk int(11) NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t2 VALUES (1);
-CREATE TABLE t3 (
-pk int(11) NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t3 VALUES (1);
-CREATE TABLE t4 (
-pk int(11) NOT NULL,
-col_int int(11) DEFAULT NULL,
-col_int_key int(11) DEFAULT NULL,
-col_varchar_10_latin1_key varchar(10) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t4 VALUES (1,1,1,'1');
-CREATE TABLE t5 (
-col_int int(11) DEFAULT NULL,
-col_varchar_10_utf8_key varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t5 VALUES (1,'1');
-CREATE TABLE t6 (
-col_int_key int(11) DEFAULT NULL,
-col_varchar_10_latin1_key varchar(10) DEFAULT NULL,
-pk int(11) NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t6 VALUES (1,'1',1);
-SELECT STRAIGHT_JOIN t6a.pk, t2.pk
-FROM t6 AS t6a
-LEFT JOIN
-(
-t2
-RIGHT JOIN
-(
-(t1 LEFT JOIN (t4 JOIN t3 ON t4.col_int) ON t4.col_int_key = t1.pk)
-LEFT JOIN
-(t5 JOIN t6 AS t6b
-ON t5.col_varchar_10_utf8_key = t6b.col_varchar_10_latin1_key)
-ON t1.pk = t5.col_int
-)
-ON t4.col_varchar_10_latin1_key = t1.col_varchar_10_latin1_key
-AND t5.col_varchar_10_utf8_key = 0
-)
-ON t6a.pk IS TRUE
-WHERE t6b.col_int_key IS TRUE;
-pk pk
-1 NULL
-EXPLAIN SELECT STRAIGHT_JOIN t6a.pk, t2.pk
-FROM t6 AS t6a
-LEFT JOIN
-(
-t2
-RIGHT JOIN
-(
-(t1 LEFT JOIN (t4 JOIN t3 ON t4.col_int) ON t4.col_int_key = t1.pk)
-LEFT JOIN
-(t5 JOIN t6 AS t6b
-ON t5.col_varchar_10_utf8_key = t6b.col_varchar_10_latin1_key)
-ON t1.pk = t5.col_int
-)
-ON t4.col_varchar_10_latin1_key = t1.col_varchar_10_latin1_key
-AND t5.col_varchar_10_utf8_key = 0
-)
-ON t6a.pk IS TRUE
-WHERE t6b.col_int_key IS TRUE;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t6a ALL NULL NULL NULL NULL 1 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1 Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 1 Using join buffer (incremental, BNL join)
-1 SIMPLE t5 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t6b ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-SELECT t6a.pk, t2.pk
-FROM t6 AS t6a
-LEFT JOIN
-(
-t2
-RIGHT JOIN
-(
-(t1 LEFT JOIN (t4 JOIN t3 ON t4.col_int) ON t4.col_int_key = t1.pk)
-LEFT JOIN
-(t5 JOIN t6 AS t6b
-ON t5.col_varchar_10_utf8_key = t6b.col_varchar_10_latin1_key)
-ON t1.pk = t5.col_int
-)
-ON t4.col_varchar_10_latin1_key = t1.col_varchar_10_latin1_key
-AND t5.col_varchar_10_utf8_key = 0
-)
-ON t6a.pk IS TRUE
-WHERE t6b.col_int_key IS TRUE;
-pk pk
-1 NULL
-EXPLAIN SELECT t6a.pk, t2.pk
-FROM t6 AS t6a
-LEFT JOIN
-(
-t2
-RIGHT JOIN
-(
-(t1 LEFT JOIN (t4 JOIN t3 ON t4.col_int) ON t4.col_int_key = t1.pk)
-LEFT JOIN
-(t5 JOIN t6 AS t6b
-ON t5.col_varchar_10_utf8_key = t6b.col_varchar_10_latin1_key)
-ON t1.pk = t5.col_int
-)
-ON t4.col_varchar_10_latin1_key = t1.col_varchar_10_latin1_key
-AND t5.col_varchar_10_utf8_key = 0
-)
-ON t6a.pk IS TRUE
-WHERE t6b.col_int_key IS TRUE;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t6a ALL NULL NULL NULL NULL 1 Using where
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1 Using join buffer (flat, BNL join)
-1 SIMPLE t4 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 1 Using join buffer (incremental, BNL join)
-1 SIMPLE t5 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t6b ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-drop table t1,t2,t3,t4,t5,t6;
-#
-Bug mdev-4318: view over a complex query with outer joins
-#
-CREATE TABLE t1 (
-a1 int NOT NULL, a2 int NOT NULL, a3 int DEFAULT NULL, a4 tinyint NOT NULL,
-a5 int NOT NULL, a6 tinyint NOT NULL, a7 tinyint(4) DEFAULT NULL,
-a8 smallint(6) DEFAULT NULL, a9 smallint(6) DEFAULT NULL, a10 tinyint NOT NULL,
-PRIMARY KEY (a1), KEY a2 (a2), KEY a3 (a3), KEY a4 (a4), KEY a6 (a6),
-KEY a5 (a5), KEY a7 (a7), KEY a8 (a8), KEY a9 (a9)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT IGNORE INTO t1 VALUES
-(3360,5684,2219,1,316832,1,0,NULL,NULL,NULL),
-(3362,2754,597,2,316844,1,0,NULL,NULL,NULL),
-(3363,369,NULL,1,317295,1,0,NULL,NULL,NULL);
-Warnings:
-Warning 1048 Column 'a10' cannot be null
-Warning 1048 Column 'a10' cannot be null
-Warning 1048 Column 'a10' cannot be null
-CREATE TABLE t2 (
-b1 int NOT NULL, b2 int NOT NULL, PRIMARY KEY (b1,b2), KEY b2 (b2)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-CREATE TABLE t3 (
-c1 int NOT NULL, PRIMARY KEY (c1)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO t3 VALUES
-(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),
-(1000),(1001),(1002),(1003),(9999);
-CREATE TABLE t4 (
-d1 int NOT NULL, PRIMARY KEY (d1)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO t4 VALUES (5674),(5676),(5680),(5684),(5685);
-CREATE TABLE t5 (
-e1 int NOT NULL, e2 varchar(64) NOT NULL, PRIMARY KEY (e1)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO t5 VALUES
-(5684,'51a5de7a9f56314e082094d78f58be082c3cf0c1'),
-(5685,'754dc8292cb9f5eb9ade126fe7e961c62412a349'),
-(5686,'75eeb33f1c819bac21f6d023b4c5b24185eeda5c');
-CREATE TABLE t6 (
-f1 int NOT NULL, PRIMARY KEY (f1)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO t6 VALUES (5542),(5620),(5686);
-CREATE TABLE t7 (
-g1 tinyint NOT NULL DEFAULT '0', g2 varchar(20) NOT NULL, PRIMARY KEY (g1)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t7 VALUES
-(1,'60feec2b20ed19f55ad0'),(3,'9ddb18bff7fcbd1e3133'),
-(5,'a05599df9222bb160d11'),(7,'e31bae372f7d01df0589'),
-(9,'8f8372dd7fc8eb46c8a3'),(11,'f8d0e28529e990a09309');
-CREATE TABLE t8 (
-h1 tinyint NOT NULL, h2 varchar(128) DEFAULT NULL, PRIMARY KEY (h1)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO t8 VALUES (1,'b'),(2,'c'),(3,'d'),(4,'e');
-CREATE TABLE t9 (
-i1 tinyint NOT NULL, i2 varchar(7) NOT NULL, i3 varchar(128) NOT NULL,
-PRIMARY KEY (i1,i2), KEY i2 (i2), KEY i3 (i3)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO t9 VALUES
-(2,'a','07630d223c7e5f7b1feb19b3caafb0833fd028eb'),
-(3,'b','1ca53dcc50b68af86f4b1b4676dbed917b543c30'),
-(1,'b','2c01ac36c1ce9a7de66be89f85d8aa5f0052e2e8'),
-(4,'a','496c486b3a9edc439477fef7d34cbefdebba86df'),
-(3,'a','98bf72d8d467201058a5f69bd7709bfc74a8637e'),
-(2,'b','9a45425f6160fb59d7f8a02c721498d4ce945302'),
-(4,'b','9c9a7300f3e708f8e430f9f3376d966f5951f583'),
-(1,'a','c0af3f076b905f31cbb51af304b9c7ad539e0861');
-CREATE TABLE t10 (
-j1 tinyint NOT NULL, j2 varchar(20) NOT NULL, PRIMARY KEY (j1)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO t10 VALUES (1,'b'),(2,'c'),(3,'d');
-CREATE TABLE t11 (
-k1 int NOT NULL, k2 datetime DEFAULT NULL, k3 int DEFAULT NULL,
-k4 int DEFAULT NULL, PRIMARY KEY (k1), KEY k3 (k3), KEY k4 (k4)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO t11 VALUES
-(317422,'2013-03-18 11:43:03',1,NULL),(317423,'2013-03-18 11:43:11',1,NULL),
-(317424,'2013-03-18 11:52:01',1,1),(317425,'2013-03-18 11:52:01',1,1),
-(317426,'2013-03-18 11:56:38',1,1),(317427,'2013-03-18 12:18:25',1,NULL),
-(317428,'2013-03-18 12:46:28',1,NULL),(317429,'2013-03-18 12:46:28',1,NULL),
-(317430,'2013-03-18 12:46:28',1,NULL),(317431,'2013-03-18 12:46:28',1,NULL),
-(317432,'2013-03-18 12:46:28',1,NULL),(317433,'2013-03-18 12:46:28',1,NULL),
-(317434,'2013-03-18 12:46:28',1,NULL),(317435,'2013-03-18 12:46:28',1,NULL),
-(317436,'2013-03-18 12:46:28',1,NULL),(317437,'2013-03-18 12:46:28',1,NULL),
-(317438,'2013-03-18 12:46:28',1,NULL),(317439,'2013-03-18 12:46:28',1,NULL),
-(317440,'2013-03-18 12:55:20',1,NULL),(317441,'2013-03-18 12:58:29',1,NULL),
-(317442,'2013-03-18 13:06:02',1,NULL),(317443,'2013-03-18 15:23:18',21,NULL);
-CREATE TABLE t12 (
-l1 int NOT NULL, l2 varchar(64) NOT NULL, PRIMARY KEY (l1)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO t12 VALUES
-(552,'59a498252ef59f96fbdc13a414abe244d8e8bc30'),
-(554,'c6025c7cb2d9dfb1be7ce4a61f35b45bb9e61ba3'),
-(555,'b245bcc672082bb6d10794b2b4ac972dd14b1cf5');
-CREATE TABLE t13 (
-m1 int NOT NULL, m2 int NOT NULL, m3 int NOT NULL,
-PRIMARY KEY (m1,m2,m3), KEY m3 (m3), KEY m2 (m2)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO t13 VALUES (3324,43,4),(3332,263,1),(3348,27,3);
-CREATE TABLE t14 (
-n1 smallint NOT NULL, n2 varchar(64) NOT NULL, PRIMARY KEY (n1)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO t14 VALUES
-(21,'685bf7ca576af964c7cff564d5e4473b81499b8b'),
-(23,'b8e42dab1ab952406b3accfb47089c61478138a8'),
-(25,'3fea441e411db8c70bf039b50c8f18f59515be53'),
-(27,'998aecc30fd0e0b8a1cac6590e5eccc2d7822223');
-CREATE TABLE t15 (
-o1 smallint NOT NULL, PRIMARY KEY (o1)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO t15 VALUES (1),(3);
-CREATE TABLE t16 (
-p1 smallint NOT NULL, p2 varchar(7) NOT NULL, p3 varchar(64) NOT NULL,
-PRIMARY KEY (p1,p2)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO t16 VALUES
-(1,'a','66bdbb389456f3ae97206da115a7b397c31400e8'),
-(1,'b','66bdbb389456f3ae97206da115a7b397c31400e8'),
-(3,'a','386c10e454278c6e27feb16258089166422f79b4'),
-(3,'b','386c10e454278c6e27feb16258089166422f79b4');
-create view v1 as select t3.c1,t5.e2,t1.a1,t14.n2,t16.p3,t10.j2,t7.g2,t11.k2,l3.l2,
-t9.i3,t12.l2 AS l_l2,l2.l2 AS l2_l2,l4.l1 AS l4_l1,t6.f1
-from
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-t1
-left join t2 on t1.a1 = t2.b1
-)
-left join t3 on t2.b2 = t3.c1
-)
-left join t4 on t1.a2 = t4.d1
-)
-left join t5 on t4.d1 = t5.e1
-)
-left join t6 on t1.a3 = t6.f1
-)
-left join t5 e2 on t6.f1 = e2.e1
-)
-join t7 on t1.a7 = t7.g1
-)
-join t8 on t1.a4 = t8.h1
-)
-join t9 on t8.h1 = t9.i1
-)
-join t10 on t1.a6 = t10.j1
-)
-join t11 on t1.a5 = t11.k1
-)
-left join t12 on t11.k3 = t12.l1
-)
-left join t12 l2 on t11.k4 = l2.l1
-)
-left join t13 on t1.a1 = t13.m1 and t13.m3 = 4
-)
-left join t12 l4 on l4.l1 = t13.m2
-)
-left join t13 m2 on t1.a1 = m2.m1 and m2.m3 = 3
-)
-left join t12 l3 on l3.l1 = m2.m2
-)
-left join t14 on t1.a8 = t14.n1
-)
-left join t15 on t1.a9 = t15.o1
-)
-left join t16 on t15.o1 = t16.p1
-where t1.a10 = 1;
-explain select t3.c1,t5.e2,t1.a1,t14.n2,t16.p3,t10.j2,t7.g2,t11.k2,l3.l2,
-t9.i3,t12.l2 AS l_l2,l2.l2 AS l2_l2,l4.l1 AS l4_l1,t6.f1
-from
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-(
-t1
-left join t2 on t1.a1 = t2.b1
-)
-left join t3 on t2.b2 = t3.c1
-)
-left join t4 on t1.a2 = t4.d1
-)
-left join t5 on t4.d1 = t5.e1
-)
-left join t6 on t1.a3 = t6.f1
-)
-left join t5 e2 on t6.f1 = e2.e1
-)
-join t7 on t1.a7 = t7.g1
-)
-join t8 on t1.a4 = t8.h1
-)
-join t9 on t8.h1 = t9.i1
-)
-join t10 on t1.a6 = t10.j1
-)
-join t11 on t1.a5 = t11.k1
-)
-left join t12 on t11.k3 = t12.l1
-)
-left join t12 l2 on t11.k4 = l2.l1
-)
-left join t13 on t1.a1 = t13.m1 and t13.m3 = 4
-)
-left join t12 l4 on l4.l1 = t13.m2
-)
-left join t13 m2 on t1.a1 = m2.m1 and m2.m3 = 3
-)
-left join t12 l3 on l3.l1 = m2.m2
-)
-left join t14 on t1.a8 = t14.n1
-)
-left join t15 on t1.a9 = t15.o1
-)
-left join t16 on t15.o1 = t16.p1
-where t1.a10 = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a4,a6,a5,a7 NULL NULL NULL 3 Using where
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 test.t1.a1 1 Using index
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.b2 1 Using where; Using index
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 4 test.t1.a2 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.d1 1 Using where
-1 SIMPLE t6 eq_ref PRIMARY PRIMARY 4 test.t1.a3 1 Using where; Using index
-1 SIMPLE t8 eq_ref PRIMARY PRIMARY 1 test.t1.a4 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 1 test.t1.a7 1
-1 SIMPLE t9 ref PRIMARY PRIMARY 1 test.t1.a4 1
-1 SIMPLE t11 eq_ref PRIMARY PRIMARY 4 test.t1.a5 1
-1 SIMPLE t12 eq_ref PRIMARY PRIMARY 4 test.t11.k3 1 Using where
-1 SIMPLE l2 eq_ref PRIMARY PRIMARY 4 test.t11.k4 1 Using where
-1 SIMPLE t13 ref PRIMARY,m3 PRIMARY 4 test.t1.a1 1 Using where; Using index
-1 SIMPLE l4 eq_ref PRIMARY PRIMARY 4 test.t13.m2 1 Using where; Using index
-1 SIMPLE m2 ref PRIMARY,m3 PRIMARY 4 test.t1.a1 1 Using where; Using index
-1 SIMPLE l3 eq_ref PRIMARY PRIMARY 4 test.m2.m2 1 Using where
-1 SIMPLE t14 eq_ref PRIMARY PRIMARY 2 test.t1.a8 1 Using where
-1 SIMPLE t15 eq_ref PRIMARY PRIMARY 2 test.t1.a9 1 Using where; Using index
-1 SIMPLE t16 ref PRIMARY PRIMARY 2 test.t15.o1 1 Using where
-1 SIMPLE t10 ALL PRIMARY NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-explain select * from v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a4,a6,a5,a7 NULL NULL NULL 3 Using where
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 test.t1.a1 1 Using index
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.b2 1 Using where; Using index
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 4 test.t1.a2 1 Using index
-1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t4.d1 1 Using where
-1 SIMPLE t6 eq_ref PRIMARY PRIMARY 4 test.t1.a3 1 Using where; Using index
-1 SIMPLE t8 eq_ref PRIMARY PRIMARY 1 test.t1.a4 1 Using index
-1 SIMPLE t7 eq_ref PRIMARY PRIMARY 1 test.t1.a7 1
-1 SIMPLE t9 ref PRIMARY PRIMARY 1 test.t1.a4 1
-1 SIMPLE t11 eq_ref PRIMARY PRIMARY 4 test.t1.a5 1
-1 SIMPLE t12 eq_ref PRIMARY PRIMARY 4 test.t11.k3 1 Using where
-1 SIMPLE l2 eq_ref PRIMARY PRIMARY 4 test.t11.k4 1 Using where
-1 SIMPLE t13 ref PRIMARY,m3 PRIMARY 4 test.t1.a1 1 Using where; Using index
-1 SIMPLE l4 eq_ref PRIMARY PRIMARY 4 test.t13.m2 1 Using where; Using index
-1 SIMPLE m2 ref PRIMARY,m3 PRIMARY 4 test.t1.a1 1 Using where; Using index
-1 SIMPLE l3 eq_ref PRIMARY PRIMARY 4 test.m2.m2 1 Using where
-1 SIMPLE t14 eq_ref PRIMARY PRIMARY 2 test.t1.a8 1 Using where
-1 SIMPLE t15 eq_ref PRIMARY PRIMARY 2 test.t1.a9 1 Using where; Using index
-1 SIMPLE t16 ref PRIMARY PRIMARY 2 test.t15.o1 1 Using where
-1 SIMPLE t10 ALL PRIMARY NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-drop view v1;
-drop table t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16;
-#
-# MDEV-4270: crash in fix_semijoin_strategies_for_picked_join_order
-#
-drop table if exists t1,t2,t3;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-Note 1051 Unknown table 'test.t2'
-Note 1051 Unknown table 'test.t3'
-create table t2(a int,unique key (a)) engine=innodb;
-create table t3(b int) engine=innodb;
-create table t1(a int,b int)engine=innodb;
-set @mdev4270_opl= @@optimizer_prune_level;
-set @mdev4270_osd= @@optimizer_search_depth;
-set optimizer_prune_level=0;
-set optimizer_search_depth=2;
-select 1 from t1 join t2 a
-natural left join t2 b
-natural right outer join t3;
-1
-drop table t1,t2,t3;
-set optimizer_prune_level=@mdev4270_opl;
-set optimizer_search_depth=@mdev4270_osd;
diff --git a/mysql-test/r/join_outer_jcl6.result b/mysql-test/r/join_outer_jcl6.result
deleted file mode 100644
index 9ff501baf6a..00000000000
--- a/mysql-test/r/join_outer_jcl6.result
+++ /dev/null
@@ -1,2482 +0,0 @@
-set @save_optimizer_switch_jcl6=@@optimizer_switch;
-set @@optimizer_switch='optimize_join_buffer_size=on';
-set @@optimizer_switch='semijoin_with_cache=on';
-set @@optimizer_switch='outer_join_with_cache=on';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set join_cache_level=6;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 6
-set @optimizer_switch_for_join_outer_test=@@optimizer_switch;
-set @join_cache_level_for_join_outer_test=@@join_cache_level;
-drop table if exists t0,t1,t2,t3,t4,t5;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch=ifnull(@optimizer_switch_for_join_outer_test,'outer_join_with_cache=off');
-set join_cache_level=@join_cache_level_for_join_outer_test;
-CREATE TABLE t1 (
-grp int(11) default NULL,
-a bigint(20) unsigned default NULL,
-c char(10) NOT NULL default ''
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,1,'a'),(2,2,'b'),(2,3,'c'),(3,4,'E'),(3,5,'C'),(3,6,'D'),(NULL,NULL,'');
-create table t2 (id int, a bigint unsigned not null, c char(10), d int, primary key (a));
-insert into t2 values (1,1,"a",1),(3,4,"A",4),(3,5,"B",5),(3,6,"C",6),(4,7,"D",7);
-select t1.*,t2.* from t1 JOIN t2 where t1.a=t2.a;
-grp a c id a c d
-1 1 a 1 1 a 1
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-select t1.*,t2.* from t1 left join t2 on (t1.a=t2.a) order by t1.grp,t1.a,t2.c;
-grp a c id a c d
-NULL NULL NULL NULL NULL NULL
-1 1 a 1 1 a 1
-2 2 b NULL NULL NULL NULL
-2 3 c NULL NULL NULL NULL
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-select t1.*,t2.* from { oj t2 left outer join t1 on (t1.a=t2.a) };
-grp a c id a c d
-1 1 a 1 1 a 1
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-NULL NULL NULL 4 7 D 7
-select t1.*,t2.* from t1 as t0,{ oj t2 left outer join t1 on (t1.a=t2.a) } WHERE t0.a=2;
-grp a c id a c d
-1 1 a 1 1 a 1
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-NULL NULL NULL 4 7 D 7
-select t1.*,t2.* from t1 left join t2 using (a);
-grp a c id a c d
-1 1 a 1 1 a 1
-2 2 b NULL NULL NULL NULL
-2 3 c NULL NULL NULL NULL
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-NULL NULL NULL NULL NULL NULL
-select t1.*,t2.* from t1 left join t2 using (a) where t1.a=t2.a;
-grp a c id a c d
-1 1 a 1 1 a 1
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-select t1.*,t2.* from t1 left join t2 using (a,c);
-grp a c id a c d
-1 1 a 1 1 a 1
-2 2 b NULL NULL NULL NULL
-2 3 c NULL NULL NULL NULL
-3 4 E NULL NULL NULL NULL
-3 5 C NULL NULL NULL NULL
-3 6 D NULL NULL NULL NULL
-NULL NULL NULL NULL NULL NULL
-select t1.*,t2.* from t1 left join t2 using (c);
-grp a c id a c d
-1 1 a 1 1 a 1
-1 1 a 3 4 A 4
-2 2 b 3 5 B 5
-2 3 c 3 6 C 6
-3 4 E NULL NULL NULL NULL
-3 5 C 3 6 C 6
-3 6 D 4 7 D 7
-NULL NULL NULL NULL NULL NULL
-select t1.*,t2.* from t1 natural left outer join t2;
-grp a c id a c d
-1 1 a 1 1 a 1
-2 2 b NULL NULL NULL NULL
-2 3 c NULL NULL NULL NULL
-3 4 E NULL NULL NULL NULL
-3 5 C NULL NULL NULL NULL
-3 6 D NULL NULL NULL NULL
-NULL NULL NULL NULL NULL NULL
-select t1.*,t2.* from t1 left join t2 on (t1.a=t2.a) where t2.id=3;
-grp a c id a c d
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-select t1.*,t2.* from t1 left join t2 on (t1.a=t2.a) where t2.id is null;
-grp a c id a c d
-2 2 b NULL NULL NULL NULL
-2 3 c NULL NULL NULL NULL
-NULL NULL NULL NULL NULL NULL
-explain select t1.*,t2.* from t1,t2 where t1.a=t2.a and isnull(t2.a)=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select t1.*,t2.* from t1 left join t2 on t1.a=t2.a where isnull(t2.a)=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 8 test.t1.a 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-select t1.*,t2.*,t3.a from t1 left join t2 on (t1.a=t2.a) left join t1 as t3 on (t2.a=t3.a);
-grp a c id a c d a
-1 1 a 1 1 a 1 1
-2 2 b NULL NULL NULL NULL NULL
-2 3 c NULL NULL NULL NULL NULL
-3 4 E 3 4 A 4 4
-3 5 C 3 5 B 5 5
-3 6 D 3 6 C 6 6
-NULL NULL NULL NULL NULL NULL NULL
-explain select t1.*,t2.*,t3.a from t1 left join t2 on (t3.a=t2.a) left join t1 as t3 on (t1.a=t3.a);
-ERROR 42S22: Unknown column 't3.a' in 'on clause'
-select t1.*,t2.*,t3.a from t1 left join t2 on (t3.a=t2.a) left join t1 as t3 on (t1.a=t3.a);
-ERROR 42S22: Unknown column 't3.a' in 'on clause'
-select t1.*,t2.*,t3.a from t1 left join t2 on (t3.a=t2.a) left join t1 as t3 on (t2.a=t3.a);
-ERROR 42S22: Unknown column 't3.a' in 'on clause'
-select t1.*,t2.* from t1 inner join t2 using (a);
-grp a c id a c d
-1 1 a 1 1 a 1
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-select t1.*,t2.* from t1 inner join t2 on (t1.a=t2.a);
-grp a c id a c d
-1 1 a 1 1 a 1
-3 4 E 3 4 A 4
-3 5 C 3 5 B 5
-3 6 D 3 6 C 6
-select t1.*,t2.* from t1 natural join t2;
-grp a c id a c d
-1 1 a 1 1 a 1
-drop table t1,t2;
-CREATE TABLE t1 (
-usr_id INT unsigned NOT NULL,
-uniq_id INT unsigned NOT NULL AUTO_INCREMENT,
-start_num INT unsigned NOT NULL DEFAULT 1,
-increment INT unsigned NOT NULL DEFAULT 1,
-PRIMARY KEY (uniq_id),
-INDEX usr_uniq_idx (usr_id, uniq_id),
-INDEX uniq_usr_idx (uniq_id, usr_id)
-);
-CREATE TABLE t2 (
-id INT unsigned NOT NULL DEFAULT 0,
-usr2_id INT unsigned NOT NULL DEFAULT 0,
-max INT unsigned NOT NULL DEFAULT 0,
-c_amount INT unsigned NOT NULL DEFAULT 0,
-d_max INT unsigned NOT NULL DEFAULT 0,
-d_num INT unsigned NOT NULL DEFAULT 0,
-orig_time INT unsigned NOT NULL DEFAULT 0,
-c_time INT unsigned NOT NULL DEFAULT 0,
-active ENUM ("no","yes") NOT NULL,
-PRIMARY KEY (id,usr2_id),
-INDEX id_idx (id),
-INDEX usr2_idx (usr2_id)
-);
-INSERT INTO t1 VALUES (3,NULL,0,50),(3,NULL,0,200),(3,NULL,0,25),(3,NULL,0,84676),(3,NULL,0,235),(3,NULL,0,10),(3,NULL,0,3098),(3,NULL,0,2947),(3,NULL,0,8987),(3,NULL,0,8347654),(3,NULL,0,20398),(3,NULL,0,8976),(3,NULL,0,500),(3,NULL,0,198);
-SELECT t1.usr_id,t1.uniq_id,t1.increment,
-t2.usr2_id,t2.c_amount,t2.max
-FROM t1
-LEFT JOIN t2 ON t2.id = t1.uniq_id
-WHERE t1.uniq_id = 4
-ORDER BY t2.c_amount;
-usr_id uniq_id increment usr2_id c_amount max
-3 4 84676 NULL NULL NULL
-SELECT t1.usr_id,t1.uniq_id,t1.increment,
-t2.usr2_id,t2.c_amount,t2.max
-FROM t2
-RIGHT JOIN t1 ON t2.id = t1.uniq_id
-WHERE t1.uniq_id = 4
-ORDER BY t2.c_amount;
-usr_id uniq_id increment usr2_id c_amount max
-3 4 84676 NULL NULL NULL
-INSERT INTO t2 VALUES (2,3,3000,6000,0,0,746584,837484,'yes');
-INSERT INTO t2 VALUES (2,3,3000,6000,0,0,746584,837484,'yes');
-ERROR 23000: Duplicate entry '2-3' for key 'PRIMARY'
-INSERT INTO t2 VALUES (7,3,1000,2000,0,0,746294,937484,'yes');
-SELECT t1.usr_id,t1.uniq_id,t1.increment,t2.usr2_id,t2.c_amount,t2.max FROM t1 LEFT JOIN t2 ON t2.id = t1.uniq_id WHERE t1.uniq_id = 4 ORDER BY t2.c_amount;
-usr_id uniq_id increment usr2_id c_amount max
-3 4 84676 NULL NULL NULL
-SELECT t1.usr_id,t1.uniq_id,t1.increment,t2.usr2_id,t2.c_amount,t2.max FROM t1 LEFT JOIN t2 ON t2.id = t1.uniq_id WHERE t1.uniq_id = 4 GROUP BY t2.c_amount;
-usr_id uniq_id increment usr2_id c_amount max
-3 4 84676 NULL NULL NULL
-SELECT t1.usr_id,t1.uniq_id,t1.increment,t2.usr2_id,t2.c_amount,t2.max FROM t1 LEFT JOIN t2 ON t2.id = t1.uniq_id WHERE t1.uniq_id = 4;
-usr_id uniq_id increment usr2_id c_amount max
-3 4 84676 NULL NULL NULL
-drop table t1,t2;
-CREATE TABLE t1 (
-cod_asig int(11) DEFAULT '0' NOT NULL,
-desc_larga_cat varchar(80) DEFAULT '' NOT NULL,
-desc_larga_cas varchar(80) DEFAULT '' NOT NULL,
-desc_corta_cat varchar(40) DEFAULT '' NOT NULL,
-desc_corta_cas varchar(40) DEFAULT '' NOT NULL,
-cred_total double(3,1) DEFAULT '0.0' NOT NULL,
-pre_requisit int(11),
-co_requisit int(11),
-preco_requisit int(11),
-PRIMARY KEY (cod_asig)
-);
-INSERT INTO t1 VALUES (10360,'asdfggfg','Introduccion a los Ordenadores I','asdfggfg','Introduccio Ordinadors I',6.0,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (10361,'Components i Circuits Electronics I','Componentes y Circuitos Electronicos I','Components i Circuits Electronics I','Comp. i Circ. Electr. I',6.0,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (10362,'Laboratori d`Ordinadors','Laboratorio de Ordenadores','Laboratori d`Ordinadors','Laboratori Ordinadors',4.5,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (10363,'Tecniques de Comunicacio Oral i Escrita','Tecnicas de Comunicacion Oral y Escrita','Tecniques de Comunicacio Oral i Escrita','Tec. Com. Oral i Escrita',4.5,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (11403,'Projecte Fi de Carrera','Proyecto Fin de Carrera','Projecte Fi de Carrera','PFC',9.0,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (11404,'+lgebra lineal','Algebra lineal','+lgebra lineal','+lgebra lineal',15.0,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (11405,'+lgebra lineal','Algebra lineal','+lgebra lineal','+lgebra lineal',18.0,NULL,NULL,NULL);
-INSERT INTO t1 VALUES (11406,'Calcul Infinitesimal','Cßlculo Infinitesimal','Calcul Infinitesimal','Calcul Infinitesimal',15.0,NULL,NULL,NULL);
-CREATE TABLE t2 (
-idAssignatura int(11) DEFAULT '0' NOT NULL,
-Grup int(11) DEFAULT '0' NOT NULL,
-Places smallint(6) DEFAULT '0' NOT NULL,
-PlacesOcupades int(11) DEFAULT '0',
-PRIMARY KEY (idAssignatura,Grup)
-);
-INSERT INTO t2 VALUES (10360,12,333,0);
-INSERT INTO t2 VALUES (10361,30,2,0);
-INSERT INTO t2 VALUES (10361,40,3,0);
-INSERT INTO t2 VALUES (10360,45,10,0);
-INSERT INTO t2 VALUES (10362,10,12,0);
-INSERT INTO t2 VALUES (10360,55,2,0);
-INSERT INTO t2 VALUES (10360,70,0,0);
-INSERT INTO t2 VALUES (10360,565656,0,0);
-INSERT INTO t2 VALUES (10360,32767,7,0);
-INSERT INTO t2 VALUES (10360,33,8,0);
-INSERT INTO t2 VALUES (10360,7887,85,0);
-INSERT INTO t2 VALUES (11405,88,8,0);
-INSERT INTO t2 VALUES (10360,0,55,0);
-INSERT INTO t2 VALUES (10360,99,0,0);
-INSERT INTO t2 VALUES (11411,30,10,0);
-INSERT INTO t2 VALUES (11404,0,0,0);
-INSERT INTO t2 VALUES (10362,11,111,0);
-INSERT INTO t2 VALUES (10363,33,333,0);
-INSERT INTO t2 VALUES (11412,55,0,0);
-INSERT INTO t2 VALUES (50003,66,6,0);
-INSERT INTO t2 VALUES (11403,5,0,0);
-INSERT INTO t2 VALUES (11406,11,11,0);
-INSERT INTO t2 VALUES (11410,11410,131,0);
-INSERT INTO t2 VALUES (11416,11416,32767,0);
-INSERT INTO t2 VALUES (11409,0,0,0);
-CREATE TABLE t3 (
-id int(11) NOT NULL auto_increment,
-dni_pasaporte char(16) DEFAULT '' NOT NULL,
-idPla int(11) DEFAULT '0' NOT NULL,
-cod_asig int(11) DEFAULT '0' NOT NULL,
-any smallint(6) DEFAULT '0' NOT NULL,
-quatrimestre smallint(6) DEFAULT '0' NOT NULL,
-estat char(1) DEFAULT 'M' NOT NULL,
-PRIMARY KEY (id),
-UNIQUE dni_pasaporte (dni_pasaporte,idPla),
-UNIQUE dni_pasaporte_2 (dni_pasaporte,idPla,cod_asig,any,quatrimestre)
-);
-INSERT INTO t3 VALUES (1,'11111111',1,10362,98,1,'M');
-CREATE TABLE t4 (
-id int(11) NOT NULL auto_increment,
-papa int(11) DEFAULT '0' NOT NULL,
-fill int(11) DEFAULT '0' NOT NULL,
-idPla int(11) DEFAULT '0' NOT NULL,
-PRIMARY KEY (id),
-KEY papa (idPla,papa),
-UNIQUE papa_2 (idPla,papa,fill)
-);
-INSERT INTO t4 VALUES (1,-1,10360,1);
-INSERT INTO t4 VALUES (2,-1,10361,1);
-INSERT INTO t4 VALUES (3,-1,10362,1);
-SELECT DISTINCT fill,desc_larga_cat,cred_total,Grup,Places,PlacesOcupades FROM t4 LEFT JOIN t3 ON t3.cod_asig=fill AND estat='S' AND dni_pasaporte='11111111' AND t3.idPla=1 , t2,t1 WHERE fill=t1.cod_asig AND Places>PlacesOcupades AND fill=idAssignatura AND t4.idPla=1 AND papa=-1;
-fill desc_larga_cat cred_total Grup Places PlacesOcupades
-10360 asdfggfg 6.0 0 55 0
-10360 asdfggfg 6.0 12 333 0
-10360 asdfggfg 6.0 32767 7 0
-10360 asdfggfg 6.0 33 8 0
-10360 asdfggfg 6.0 45 10 0
-10360 asdfggfg 6.0 55 2 0
-10360 asdfggfg 6.0 7887 85 0
-10361 Components i Circuits Electronics I 6.0 30 2 0
-10361 Components i Circuits Electronics I 6.0 40 3 0
-10362 Laboratori d`Ordinadors 4.5 10 12 0
-10362 Laboratori d`Ordinadors 4.5 11 111 0
-SELECT DISTINCT fill,t3.idPla FROM t4 LEFT JOIN t3 ON t3.cod_asig=t4.fill AND t3.estat='S' AND t3.dni_pasaporte='1234' AND t3.idPla=1 ;
-fill idPla
-10360 NULL
-10361 NULL
-10362 NULL
-INSERT INTO t3 VALUES (3,'1234',1,10360,98,1,'S');
-SELECT DISTINCT fill,t3.idPla FROM t4 LEFT JOIN t3 ON t3.cod_asig=t4.fill AND t3.estat='S' AND t3.dni_pasaporte='1234' AND t3.idPla=1 ;
-fill idPla
-10360 1
-10361 NULL
-10362 NULL
-drop table t1,t2,t3,test.t4;
-CREATE TABLE t1 (
-id smallint(5) unsigned NOT NULL auto_increment,
-name char(60) DEFAULT '' NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t1 VALUES (1,'Antonio Paz');
-INSERT INTO t1 VALUES (2,'Lilliana Angelovska');
-INSERT INTO t1 VALUES (3,'Thimble Smith');
-CREATE TABLE t2 (
-id smallint(5) unsigned NOT NULL auto_increment,
-owner smallint(5) unsigned DEFAULT '0' NOT NULL,
-name char(60),
-PRIMARY KEY (id)
-);
-INSERT INTO t2 VALUES (1,1,'El Gato');
-INSERT INTO t2 VALUES (2,1,'Perrito');
-INSERT INTO t2 VALUES (3,3,'Happy');
-select t1.name, t2.name, t2.id from t1 left join t2 on (t1.id = t2.owner);
-name name id
-Antonio Paz El Gato 1
-Antonio Paz Perrito 2
-Lilliana Angelovska NULL NULL
-Thimble Smith Happy 3
-select t1.name, t2.name, t2.id from t1 left join t2 on (t1.id = t2.owner) where t2.id is null;
-name name id
-Lilliana Angelovska NULL NULL
-explain select t1.name, t2.name, t2.id from t1 left join t2 on (t1.id = t2.owner) where t2.id is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 2 test.t1.id 3 Using where; Not exists; Using join buffer (flat, BNLH join)
-explain select t1.name, t2.name, t2.id from t1 left join t2 on (t1.id = t2.owner) where t2.name is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 2 test.t1.id 3 Using where; Using join buffer (flat, BNLH join)
-select count(*) from t1 left join t2 on (t1.id = t2.owner);
-count(*)
-4
-select t1.name, t2.name, t2.id from t2 right join t1 on (t1.id = t2.owner);
-name name id
-Antonio Paz El Gato 1
-Antonio Paz Perrito 2
-Lilliana Angelovska NULL NULL
-Thimble Smith Happy 3
-select t1.name, t2.name, t2.id from t2 right join t1 on (t1.id = t2.owner) where t2.id is null;
-name name id
-Lilliana Angelovska NULL NULL
-explain select t1.name, t2.name, t2.id from t2 right join t1 on (t1.id = t2.owner) where t2.id is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 2 test.t1.id 3 Using where; Not exists; Using join buffer (flat, BNLH join)
-explain select t1.name, t2.name, t2.id from t2 right join t1 on (t1.id = t2.owner) where t2.name is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 2 test.t1.id 3 Using where; Using join buffer (flat, BNLH join)
-select count(*) from t2 right join t1 on (t1.id = t2.owner);
-count(*)
-4
-select t1.name, t2.name, t2.id,t3.id from t2 right join t1 on (t1.id = t2.owner) left join t1 as t3 on t3.id=t2.owner;
-name name id id
-Antonio Paz El Gato 1 1
-Antonio Paz Perrito 2 1
-Lilliana Angelovska NULL NULL NULL
-Thimble Smith Happy 3 3
-select t1.name, t2.name, t2.id,t3.id from t1 right join t2 on (t1.id = t2.owner) right join t1 as t3 on t3.id=t2.owner;
-name name id id
-Antonio Paz El Gato 1 1
-Antonio Paz Perrito 2 1
-NULL NULL NULL 2
-Thimble Smith Happy 3 3
-select t1.name, t2.name, t2.id, t2.owner, t3.id from t1 left join t2 on (t1.id = t2.owner) right join t1 as t3 on t3.id=t2.owner;
-name name id owner id
-Antonio Paz El Gato 1 1 1
-Antonio Paz Perrito 2 1 1
-NULL NULL NULL NULL 2
-Thimble Smith Happy 3 3 3
-drop table t1,t2;
-create table t1 (id int not null, str char(10), index(str));
-insert into t1 values (1, null), (2, null), (3, "foo"), (4, "bar");
-select * from t1 where str is not null order by id;
-id str
-3 foo
-4 bar
-select * from t1 where str is null;
-id str
-1 NULL
-2 NULL
-drop table t1;
-CREATE TABLE t1 (
-t1_id bigint(21) NOT NULL auto_increment,
-PRIMARY KEY (t1_id)
-);
-CREATE TABLE t2 (
-t2_id bigint(21) NOT NULL auto_increment,
-PRIMARY KEY (t2_id)
-);
-CREATE TABLE t3 (
-t3_id bigint(21) NOT NULL auto_increment,
-PRIMARY KEY (t3_id)
-);
-CREATE TABLE t4 (
-seq_0_id bigint(21) DEFAULT '0' NOT NULL,
-seq_1_id bigint(21) DEFAULT '0' NOT NULL,
-KEY seq_0_id (seq_0_id),
-KEY seq_1_id (seq_1_id)
-);
-CREATE TABLE t5 (
-seq_0_id bigint(21) DEFAULT '0' NOT NULL,
-seq_1_id bigint(21) DEFAULT '0' NOT NULL,
-KEY seq_1_id (seq_1_id),
-KEY seq_0_id (seq_0_id)
-);
-insert into t1 values (1);
-insert into t2 values (1);
-insert into t3 values (1);
-insert into t4 values (1,1);
-insert into t5 values (1,1);
-explain select * from t3 left join t4 on t4.seq_1_id = t2.t2_id left join t1 on t1.t1_id = t4.seq_0_id left join t5 on t5.seq_0_id = t1.t1_id left join t2 on t2.t2_id = t5.seq_1_id where t3.t3_id = 23;
-ERROR 42S22: Unknown column 't2.t2_id' in 'on clause'
-drop table t1,t2,t3,t4,t5;
-create table t1 (n int, m int, o int, key(n));
-create table t2 (n int not null, m int, o int, primary key(n));
-insert into t1 values (1, 2, 11), (1, 2, 7), (2, 2, 8), (1,2,9),(1,3,9);
-insert into t2 values (1, 2, 3),(2, 2, 8), (4,3,9),(3,2,10);
-select t1.*, t2.* from t1 left join t2 on t1.n = t2.n and
-t1.m = t2.m where t1.n = 1;
-n m o n m o
-1 2 11 1 2 3
-1 2 7 1 2 3
-1 2 9 1 2 3
-1 3 9 NULL NULL NULL
-select t1.*, t2.* from t1 left join t2 on t1.n = t2.n and
-t1.m = t2.m where t1.n = 1 order by t1.o;
-n m o n m o
-1 2 11 1 2 3
-1 2 7 1 2 3
-1 2 9 1 2 3
-1 3 9 NULL NULL NULL
-drop table t1,t2;
-CREATE TABLE t1 (id1 INT NOT NULL PRIMARY KEY, dat1 CHAR(1), id2 INT);
-INSERT INTO t1 VALUES (1,'a',1);
-INSERT INTO t1 VALUES (2,'b',1);
-INSERT INTO t1 VALUES (3,'c',2);
-CREATE TABLE t2 (id2 INT NOT NULL PRIMARY KEY, dat2 CHAR(1));
-INSERT INTO t2 VALUES (1,'x');
-INSERT INTO t2 VALUES (2,'y');
-INSERT INTO t2 VALUES (3,'z');
-SELECT t2.id2 FROM t2 LEFT OUTER JOIN t1 ON t1.id2 = t2.id2 WHERE id1 IS NULL;
-id2
-3
-SELECT t2.id2 FROM t2 NATURAL LEFT OUTER JOIN t1 WHERE id1 IS NULL;
-id2
-3
-drop table t1,t2;
-create table t1 ( color varchar(20), name varchar(20) );
-insert into t1 values ( 'red', 'apple' );
-insert into t1 values ( 'yellow', 'banana' );
-insert into t1 values ( 'green', 'lime' );
-insert into t1 values ( 'black', 'grape' );
-insert into t1 values ( 'blue', 'blueberry' );
-create table t2 ( count int, color varchar(20) );
-insert into t2 values (10, 'green');
-insert into t2 values (5, 'black');
-insert into t2 values (15, 'white');
-insert into t2 values (7, 'green');
-select * from t1;
-color name
-red apple
-yellow banana
-green lime
-black grape
-blue blueberry
-select * from t2;
-count color
-10 green
-5 black
-15 white
-7 green
-select * from t2 natural join t1;
-color count name
-green 10 lime
-green 7 lime
-black 5 grape
-select t2.count, t1.name from t2 natural join t1;
-count name
-10 lime
-7 lime
-5 grape
-select t2.count, t1.name from t2 inner join t1 using (color);
-count name
-10 lime
-7 lime
-5 grape
-drop table t1;
-drop table t2;
-CREATE TABLE t1 (
-pcode varchar(8) DEFAULT '' NOT NULL
-);
-INSERT INTO t1 VALUES ('kvw2000'),('kvw2001'),('kvw3000'),('kvw3001'),('kvw3002'),('kvw3500'),('kvw3501'),('kvw3502'),('kvw3800'),('kvw3801'),('kvw3802'),('kvw3900'),('kvw3901'),('kvw3902'),('kvw4000'),('kvw4001'),('kvw4002'),('kvw4200'),('kvw4500'),('kvw5000'),('kvw5001'),('kvw5500'),('kvw5510'),('kvw5600'),('kvw5601'),('kvw6000'),('klw1000'),('klw1020'),('klw1500'),('klw2000'),('klw2001'),('klw2002'),('kld2000'),('klw2500'),('kmw1000'),('kmw1500'),('kmw2000'),('kmw2001'),('kmw2100'),('kmw3000'),('kmw3200');
-CREATE TABLE t2 (
-pcode varchar(8) DEFAULT '' NOT NULL,
-KEY pcode (pcode)
-);
-INSERT INTO t2 VALUES ('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw2000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3000'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw3500'),('kvw6000'),('kvw6000'),('kld2000');
-SELECT t1.pcode, IF(ISNULL(t2.pcode), 0, COUNT(*)) AS count FROM t1
-LEFT JOIN t2 ON t1.pcode = t2.pcode GROUP BY t1.pcode;
-pcode count
-kld2000 1
-klw1000 0
-klw1020 0
-klw1500 0
-klw2000 0
-klw2001 0
-klw2002 0
-klw2500 0
-kmw1000 0
-kmw1500 0
-kmw2000 0
-kmw2001 0
-kmw2100 0
-kmw3000 0
-kmw3200 0
-kvw2000 26
-kvw2001 0
-kvw3000 36
-kvw3001 0
-kvw3002 0
-kvw3500 26
-kvw3501 0
-kvw3502 0
-kvw3800 0
-kvw3801 0
-kvw3802 0
-kvw3900 0
-kvw3901 0
-kvw3902 0
-kvw4000 0
-kvw4001 0
-kvw4002 0
-kvw4200 0
-kvw4500 0
-kvw5000 0
-kvw5001 0
-kvw5500 0
-kvw5510 0
-kvw5600 0
-kvw5601 0
-kvw6000 2
-SELECT SQL_BIG_RESULT t1.pcode, IF(ISNULL(t2.pcode), 0, COUNT(*)) AS count FROM t1 LEFT JOIN t2 ON t1.pcode = t2.pcode GROUP BY t1.pcode;
-pcode count
-kld2000 1
-klw1000 0
-klw1020 0
-klw1500 0
-klw2000 0
-klw2001 0
-klw2002 0
-klw2500 0
-kmw1000 0
-kmw1500 0
-kmw2000 0
-kmw2001 0
-kmw2100 0
-kmw3000 0
-kmw3200 0
-kvw2000 26
-kvw2001 0
-kvw3000 36
-kvw3001 0
-kvw3002 0
-kvw3500 26
-kvw3501 0
-kvw3502 0
-kvw3800 0
-kvw3801 0
-kvw3802 0
-kvw3900 0
-kvw3901 0
-kvw3902 0
-kvw4000 0
-kvw4001 0
-kvw4002 0
-kvw4200 0
-kvw4500 0
-kvw5000 0
-kvw5001 0
-kvw5500 0
-kvw5510 0
-kvw5600 0
-kvw5601 0
-kvw6000 2
-drop table t1,t2;
-CREATE TABLE t1 (
-id int(11),
-pid int(11),
-rep_del tinyint(4),
-KEY id (id),
-KEY pid (pid)
-);
-INSERT INTO t1 VALUES (1,NULL,NULL);
-INSERT INTO t1 VALUES (2,1,NULL);
-select * from t1 LEFT JOIN t1 t2 ON (t1.id=t2.pid) AND t2.rep_del IS NULL;
-id pid rep_del id pid rep_del
-1 NULL NULL 2 1 NULL
-2 1 NULL NULL NULL NULL
-create index rep_del ON t1(rep_del);
-select * from t1 LEFT JOIN t1 t2 ON (t1.id=t2.pid) AND t2.rep_del IS NULL;
-id pid rep_del id pid rep_del
-1 NULL NULL 2 1 NULL
-2 1 NULL NULL NULL NULL
-drop table t1;
-CREATE TABLE t1 (
-id int(11) DEFAULT '0' NOT NULL,
-name tinytext DEFAULT '' NOT NULL,
-UNIQUE id (id)
-);
-INSERT INTO t1 VALUES (1,'yes'),(2,'no');
-CREATE TABLE t2 (
-id int(11) DEFAULT '0' NOT NULL,
-idx int(11) DEFAULT '0' NOT NULL,
-UNIQUE id (id,idx)
-);
-INSERT INTO t2 VALUES (1,1);
-explain SELECT * from t1 left join t2 on t1.id=t2.id where t2.id IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ref id id 4 test.t1.id 1 Using where; Using index; Not exists
-SELECT * from t1 left join t2 on t1.id=t2.id where t2.id IS NULL;
-id name id idx
-2 no NULL NULL
-drop table t1,t2;
-create table t1 (bug_id mediumint, reporter mediumint);
-create table t2 (bug_id mediumint, who mediumint, index(who));
-insert into t2 values (1,1),(1,2);
-insert into t1 values (1,1),(2,1);
-SELECT * FROM t1 LEFT JOIN t2 ON (t1.bug_id = t2.bug_id AND t2.who = 2) WHERE (t1.reporter = 2 OR t2.who = 2);
-bug_id reporter bug_id who
-1 1 1 2
-drop table t1,t2;
-create table t1 (fooID smallint unsigned auto_increment, primary key (fooID));
-create table t2 (fooID smallint unsigned not null, barID smallint unsigned not null, primary key (fooID,barID));
-insert into t1 (fooID) values (10),(20),(30);
-insert into t2 values (10,1),(20,2),(30,3);
-explain select * from t2 left join t1 on t1.fooID = t2.fooID and t1.fooID = 30;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL PRIMARY 4 NULL 3 Using index
-1 SIMPLE t1 const PRIMARY PRIMARY 2 const 1 Using where; Using index
-select * from t2 left join t1 on t1.fooID = t2.fooID and t1.fooID = 30;
-fooID barID fooID
-10 1 NULL
-20 2 NULL
-30 3 30
-select * from t2 left join t1 ignore index(primary) on t1.fooID = t2.fooID and t1.fooID = 30;
-fooID barID fooID
-10 1 NULL
-20 2 NULL
-30 3 30
-drop table t1,t2;
-create table t1 (i int);
-create table t2 (i int);
-create table t3 (i int);
-insert into t1 values(1),(2);
-insert into t2 values(2),(3);
-insert into t3 values(2),(4);
-select * from t1 natural left join t2 natural left join t3;
-i
-1
-2
-select * from t1 natural left join t2 where (t2.i is not null)=0;
-i
-1
-select * from t1 natural left join t2 where (t2.i is not null) is not null;
-i
-1
-2
-select * from t1 natural left join t2 where (i is not null)=0;
-i
-select * from t1 natural left join t2 where (i is not null) is not null;
-i
-1
-2
-drop table t1,t2,t3;
-create table t1 (f1 integer,f2 integer,f3 integer);
-create table t2 (f2 integer,f4 integer);
-create table t3 (f3 integer,f5 integer);
-select * from t1
-left outer join t2 using (f2)
-left outer join t3 using (f3);
-f3 f2 f1 f4 f5
-drop table t1,t2,t3;
-create table t1 (a1 int, a2 int);
-create table t2 (b1 int not null, b2 int);
-create table t3 (c1 int, c2 int);
-insert into t1 values (1,2), (2,2), (3,2);
-insert into t2 values (1,3), (2,3);
-insert into t3 values (2,4), (3,4);
-select * from t1 left join t2 on b1 = a1 left join t3 on c1 = a1 and b1 is null;
-a1 a2 b1 b2 c1 c2
-3 2 NULL NULL 3 4
-1 2 1 3 NULL NULL
-2 2 2 3 NULL NULL
-explain select * from t1 left join t2 on b1 = a1 left join t3 on c1 = a1 and b1 is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 4 test.t1.a1 2 Using where; Using join buffer (flat, BNLH join)
-1 SIMPLE t3 hash_ALL NULL #hash#$hj 5 test.t1.a1 2 Using where; Using join buffer (incremental, BNLH join)
-drop table t1, t2, t3;
-create table t1 (
-a int(11),
-b char(10),
-key (a)
-);
-insert into t1 (a) values (1),(2),(3),(4);
-create table t2 (a int);
-select * from t1 left join t2 on t1.a=t2.a where not (t2.a <=> t1.a);
-a b a
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-select * from t1 left join t2 on t1.a=t2.a having not (t2.a <=> t1.a);
-a b a
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-drop table t1,t2;
-create table t1 (
-match_id tinyint(3) unsigned not null auto_increment,
-home tinyint(3) unsigned default '0',
-unique key match_id (match_id),
-key match_id_2 (match_id)
-);
-insert into t1 values("1", "2");
-create table t2 (
-player_id tinyint(3) unsigned default '0',
-match_1_h tinyint(3) unsigned default '0',
-key player_id (player_id)
-);
-insert into t2 values("1", "5");
-insert into t2 values("2", "9");
-insert into t2 values("3", "3");
-insert into t2 values("4", "7");
-insert into t2 values("5", "6");
-insert into t2 values("6", "8");
-insert into t2 values("7", "4");
-insert into t2 values("8", "12");
-insert into t2 values("9", "11");
-insert into t2 values("10", "10");
-explain select s.*, '*', m.*, (s.match_1_h - m.home) UUX from
-(t2 s left join t1 m on m.match_id = 1)
-order by m.match_id desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE s ALL NULL NULL NULL NULL 10 Using temporary; Using filesort
-1 SIMPLE m const match_id,match_id_2 match_id 1 const 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-explain select s.*, '*', m.*, (s.match_1_h - m.home) UUX from
-(t2 s left join t1 m on m.match_id = 1)
-order by UUX desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE s ALL NULL NULL NULL NULL 10 Using temporary; Using filesort
-1 SIMPLE m const match_id,match_id_2 match_id 1 const 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-select s.*, '*', m.*, (s.match_1_h - m.home) UUX from
-(t2 s left join t1 m on m.match_id = 1)
-order by UUX desc;
-player_id match_1_h * match_id home UUX
-8 12 * 1 2 10
-9 11 * 1 2 9
-10 10 * 1 2 8
-2 9 * 1 2 7
-6 8 * 1 2 6
-4 7 * 1 2 5
-5 6 * 1 2 4
-1 5 * 1 2 3
-7 4 * 1 2 2
-3 3 * 1 2 1
-explain select s.*, '*', m.*, (s.match_1_h - m.home) UUX from
-t2 s straight_join t1 m where m.match_id = 1
-order by UUX desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE s ALL NULL NULL NULL NULL 10 Using temporary; Using filesort
-1 SIMPLE m const match_id,match_id_2 match_id 1 const 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-select s.*, '*', m.*, (s.match_1_h - m.home) UUX from
-t2 s straight_join t1 m where m.match_id = 1
-order by UUX desc;
-player_id match_1_h * match_id home UUX
-8 12 * 1 2 10
-9 11 * 1 2 9
-10 10 * 1 2 8
-2 9 * 1 2 7
-6 8 * 1 2 6
-4 7 * 1 2 5
-5 6 * 1 2 4
-1 5 * 1 2 3
-7 4 * 1 2 2
-3 3 * 1 2 1
-drop table t1, t2;
-create table t1 (a int, b int, unique index idx (a, b));
-create table t2 (a int, b int, c int, unique index idx (a, b));
-insert into t1 values (1, 10), (1,11), (2,10), (2,11);
-insert into t2 values (1,10,3);
-select t1.a, t1.b, t2.c from t1 left join t2
-on t1.a=t2.a and t1.b=t2.b and t2.c=3
-where t1.a=1 and t2.c is null;
-a b c
-1 11 NULL
-drop table t1, t2;
-CREATE TABLE t1 (
-ts_id bigint(20) default NULL,
-inst_id tinyint(4) default NULL,
-flag_name varchar(64) default NULL,
-flag_value text,
-UNIQUE KEY ts_id (ts_id,inst_id,flag_name)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-CREATE TABLE t2 (
-ts_id bigint(20) default NULL,
-inst_id tinyint(4) default NULL,
-flag_name varchar(64) default NULL,
-flag_value text,
-UNIQUE KEY ts_id (ts_id,inst_id,flag_name)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-INSERT INTO t1 VALUES
-(111056548820001, 0, 'flag1', NULL),
-(111056548820001, 0, 'flag2', NULL),
-(2, 0, 'other_flag', NULL);
-INSERT INTO t2 VALUES
-(111056548820001, 3, 'flag1', 'sss');
-SELECT t1.flag_name,t2.flag_value
-FROM t1 LEFT JOIN t2
-ON (t1.ts_id = t2.ts_id AND t1.flag_name = t2.flag_name AND
-t2.inst_id = 3)
-WHERE t1.inst_id = 0 AND t1.ts_id=111056548820001 AND
-t2.flag_value IS NULL;
-flag_name flag_value
-flag2 NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-id int(11) unsigned NOT NULL auto_increment,
-text_id int(10) unsigned default NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t1 VALUES("1", "0");
-INSERT INTO t1 VALUES("2", "10");
-CREATE TABLE t2 (
-text_id char(3) NOT NULL default '',
-language_id char(3) NOT NULL default '',
-text_data text,
-PRIMARY KEY (text_id,language_id)
-);
-INSERT INTO t2 VALUES("0", "EN", "0-EN");
-INSERT INTO t2 VALUES("0", "SV", "0-SV");
-INSERT INTO t2 VALUES("10", "EN", "10-EN");
-INSERT INTO t2 VALUES("10", "SV", "10-SV");
-SELECT t1.id, t1.text_id, t2.text_data
-FROM t1 LEFT JOIN t2
-ON t1.text_id = t2.text_id
-AND t2.language_id = 'SV'
- WHERE (t1.id LIKE '%' OR t2.text_data LIKE '%');
-id text_id text_data
-1 0 0-SV
-2 10 10-SV
-DROP TABLE t1, t2;
-CREATE TABLE t0 (a0 int PRIMARY KEY);
-CREATE TABLE t1 (a1 int PRIMARY KEY);
-CREATE TABLE t2 (a2 int);
-CREATE TABLE t3 (a3 int);
-INSERT INTO t0 VALUES (1);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (1), (2);
-INSERT INTO t3 VALUES (1), (2);
-SELECT * FROM t1 LEFT JOIN t2 ON a1=0;
-a1 a2
-1 NULL
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON a1=0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 LEFT JOIN (t2,t3) ON a1=0;
-a1 a2 a3
-1 NULL NULL
-EXPLAIN SELECT * FROM t1 LEFT JOIN (t2,t3) ON a1=0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2
-SELECT * FROM t0, t1 LEFT JOIN (t2,t3) ON a1=0 WHERE a0=a1;
-a0 a1 a2 a3
-1 1 NULL NULL
-EXPLAIN SELECT * FROM t0, t1 LEFT JOIN (t2,t3) ON a1=0 WHERE a0=a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2
-INSERT INTO t0 VALUES (0);
-INSERT INTO t1 VALUES (0);
-SELECT * FROM t0, t1 LEFT JOIN (t2,t3) ON a1=5 WHERE a0=a1 AND a0=1;
-a0 a1 a2 a3
-1 1 NULL NULL
-EXPLAIN SELECT * FROM t0, t1 LEFT JOIN (t2,t3) ON a1=5 WHERE a0=a1 AND a0=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2
-drop table t1,t2;
-create table t1 (a int, b int);
-insert into t1 values (1,1),(2,2),(3,3);
-create table t2 (a int, b int);
-insert into t2 values (1,1), (2,2);
-select * from t2 right join t1 on t2.a=t1.a;
-a b a b
-1 1 1 1
-2 2 2 2
-NULL NULL 3 3
-select straight_join * from t2 right join t1 on t2.a=t1.a;
-a b a b
-1 1 1 1
-2 2 2 2
-NULL NULL 3 3
-DROP TABLE t0,t1,t2,t3;
-CREATE TABLE t1 (a int PRIMARY KEY, b int);
-CREATE TABLE t2 (a int PRIMARY KEY, b int);
-INSERT INTO t1 VALUES (1,1), (2,1), (3,1), (4,2);
-INSERT INTO t2 VALUES (1,2), (2,2);
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.a;
-a b a b
-1 1 1 2
-2 1 2 2
-3 1 NULL NULL
-4 2 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.a WHERE t1.b=1;
-a b a b
-1 1 1 2
-2 1 2 2
-3 1 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.a
-WHERE t1.b=1 XOR (NOT ISNULL(t2.a) AND t2.b=1);
-a b a b
-1 1 1 2
-2 1 2 2
-3 1 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.a WHERE not(0+(t1.a=30 and t2.b=1));
-a b a b
-1 1 1 2
-2 1 2 2
-3 1 NULL NULL
-4 2 NULL NULL
-DROP TABLE t1,t2;
-set group_concat_max_len=5;
-create table t1 (a int, b varchar(20));
-create table t2 (a int, c varchar(20));
-insert into t1 values (1,"aaaaaaaaaa"),(2,"bbbbbbbbbb");
-insert into t2 values (1,"cccccccccc"),(2,"dddddddddd");
-select group_concat(t1.b,t2.c) from t1 left join t2 using(a) group by t1.a;
-group_concat(t1.b,t2.c)
-aaaaa
-bbbbb
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-select group_concat(t1.b,t2.c) from t1 inner join t2 using(a) group by t1.a;
-group_concat(t1.b,t2.c)
-aaaaa
-bbbbb
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-select group_concat(t1.b,t2.c) from t1 left join t2 using(a) group by a;
-group_concat(t1.b,t2.c)
-aaaaa
-bbbbb
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-select group_concat(t1.b,t2.c) from t1 inner join t2 using(a) group by a;
-group_concat(t1.b,t2.c)
-aaaaa
-bbbbb
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-drop table t1, t2;
-set group_concat_max_len=default;
-create table t1 (gid smallint(5) unsigned not null, x int(11) not null, y int(11) not null, art int(11) not null, primary key (gid,x,y));
-insert t1 values (1, -5, -8, 2), (1, 2, 2, 1), (1, 1, 1, 1);
-create table t2 (gid smallint(5) unsigned not null, x int(11) not null, y int(11) not null, id int(11) not null, primary key (gid,id,x,y), key id (id));
-insert t2 values (1, -5, -8, 1), (1, 1, 1, 1), (1, 2, 2, 1);
-create table t3 ( set_id smallint(5) unsigned not null, id tinyint(4) unsigned not null, name char(12) not null, primary key (id,set_id));
-insert t3 values (0, 1, 'a'), (1, 1, 'b'), (0, 2, 'c'), (1, 2, 'd'), (1, 3, 'e'), (1, 4, 'f'), (1, 5, 'g'), (1, 6, 'h');
-explain select name from t1 left join t2 on t1.x = t2.x and t1.y = t2.y
-left join t3 on t1.art = t3.id where t2.id =1 and t2.x = -5 and t2.y =-8
-and t1.gid =1 and t2.gid =1 and t3.set_id =1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 10 const,const,const 1
-1 SIMPLE t2 const PRIMARY,id PRIMARY 14 const,const,const,const 1 Using index
-1 SIMPLE t3 const PRIMARY PRIMARY 3 const,const 1
-drop tables t1,t2,t3;
-CREATE TABLE t1 (EMPNUM INT, GRP INT);
-INSERT INTO t1 VALUES (0, 10);
-INSERT INTO t1 VALUES (2, 30);
-CREATE TABLE t2 (EMPNUM INT, NAME CHAR(5));
-INSERT INTO t2 VALUES (0, 'KERI');
-INSERT INTO t2 VALUES (9, 'BARRY');
-CREATE VIEW v1 AS
-SELECT COALESCE(t2.EMPNUM,t1.EMPNUM) AS EMPNUM, NAME, GRP
-FROM t2 LEFT OUTER JOIN t1 ON t2.EMPNUM=t1.EMPNUM;
-SELECT * FROM v1;
-EMPNUM NAME GRP
-0 KERI 10
-9 BARRY NULL
-SELECT * FROM v1 WHERE EMPNUM < 10;
-EMPNUM NAME GRP
-0 KERI 10
-9 BARRY NULL
-DROP VIEW v1;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (c11 int);
-CREATE TABLE t2 (c21 int);
-INSERT INTO t1 VALUES (30), (40), (50);
-INSERT INTO t2 VALUES (300), (400), (500);
-SELECT * FROM t1 LEFT JOIN t2 ON (c11=c21 AND c21=30) WHERE c11=40;
-c11 c21
-40 NULL
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a int PRIMARY KEY, b int);
-CREATE TABLE t2 (a int PRIMARY KEY, b int);
-INSERT INTO t1 VALUES (1,2), (2,1), (3,2), (4,3), (5,6), (6,5), (7,8), (8,7), (9,10);
-INSERT INTO t2 VALUES (3,0), (4,1), (6,4), (7,5);
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t2.b <= t1.a AND t1.a <= t1.b;
-a b a b
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a BETWEEN t2.b AND t1.b;
-a b a b
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t1.a NOT BETWEEN t2.b AND t1.b);
-a b a b
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t2.b > t1.a OR t1.a > t1.b;
-a b a b
-2 1 NULL NULL
-3 2 3 0
-4 3 4 1
-6 5 6 4
-8 7 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a NOT BETWEEN t2.b AND t1.b;
-a b a b
-2 1 NULL NULL
-3 2 3 0
-4 3 4 1
-6 5 6 4
-8 7 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t1.a BETWEEN t2.b AND t1.b);
-a b a b
-2 1 NULL NULL
-3 2 3 0
-4 3 4 1
-6 5 6 4
-8 7 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a = t2.a OR t2.b > t1.a OR t1.a > t1.b;
-a b a b
-2 1 NULL NULL
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-8 7 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t1.a != t2.a AND t1.a BETWEEN t2.b AND t1.b);
-a b a b
-2 1 NULL NULL
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-8 7 NULL NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a = t2.a AND (t2.b > t1.a OR t1.a > t1.b);
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t1.a != t2.a OR t1.a BETWEEN t2.b AND t1.b);
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a = t2.a OR t1.a = t2.b;
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a IN(t2.a, t2.b);
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t1.a NOT IN(t2.a, t2.b));
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a != t1.b AND t1.a != t2.b;
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a NOT IN(t1.b, t2.b);
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t1.a IN(t1.b, t2.b));
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t2.a != t2.b OR (t1.a != t2.a AND t1.a != t2.b);
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t2.a = t2.b AND t1.a IN(t2.a, t2.b));
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t2.a != t2.b AND t1.a != t1.b AND t1.a != t2.b;
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE NOT(t2.a = t2.b OR t1.a IN(t1.b, t2.b));
-a b a b
-3 2 3 0
-4 3 4 1
-6 5 6 4
-7 8 7 5
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a = t2.a OR t1.a = t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 4
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.a 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a IN(t2.a, t2.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 4 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.a 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a WHERE t1.a > IF(t1.a = t2.b-2, t2.b, t2.b-1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 4 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.a 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-DROP TABLE t1,t2;
-DROP VIEW IF EXISTS v1,v2;
-DROP TABLE IF EXISTS t1,t2;
-CREATE TABLE t1 (a int);
-CREATE table t2 (b int);
-INSERT INTO t1 VALUES (1), (2), (3), (4), (1), (1), (3);
-INSERT INTO t2 VALUES (2), (3);
-CREATE VIEW v1 AS SELECT a FROM t1 JOIN t2 ON t1.a=t2.b;
-CREATE VIEW v2 AS SELECT b FROM t2 JOIN t1 ON t2.b=t1.a;
-SELECT v1.a, v2. b
-FROM v1 LEFT OUTER JOIN v2 ON (v1.a=v2.b) AND (v1.a >= 3)
-GROUP BY v1.a;
-a b
-2 NULL
-3 3
-SELECT v1.a, v2. b
-FROM { OJ v1 LEFT OUTER JOIN v2 ON (v1.a=v2.b) AND (v1.a >= 3) }
-GROUP BY v1.a;
-a b
-2 NULL
-3 3
-DROP VIEW v1,v2;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (b int);
-INSERT INTO t1 VALUES (1), (2), (3), (4);
-INSERT INTO t2 VALUES (2), (3);
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.b WHERE (1=1);
-a b
-1 NULL
-2 2
-3 3
-4 NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.b WHERE (1 OR 1);
-a b
-1 NULL
-2 2
-3 3
-4 NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.b WHERE (0 OR 1);
-a b
-1 NULL
-2 2
-3 3
-4 NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.b WHERE (1=1 OR 2=2);
-a b
-1 NULL
-2 2
-3 3
-4 NULL
-SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.b WHERE (1=1 OR 1=0);
-a b
-1 NULL
-2 2
-3 3
-4 NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-f1 varchar(16) collate latin1_swedish_ci PRIMARY KEY,
-f2 varchar(16) collate latin1_swedish_ci
-);
-CREATE TABLE t2 (
-f1 varchar(16) collate latin1_swedish_ci PRIMARY KEY,
-f3 varchar(16) collate latin1_swedish_ci
-);
-INSERT INTO t1 VALUES ('bla','blah');
-INSERT INTO t2 VALUES ('bla','sheep');
-SELECT * FROM t1 JOIN t2 USING(f1) WHERE f1='Bla';
-f1 f2 f3
-bla blah sheep
-SELECT * FROM t1 LEFT JOIN t2 USING(f1) WHERE f1='bla';
-f1 f2 f3
-bla blah sheep
-SELECT * FROM t1 LEFT JOIN t2 USING(f1) WHERE f1='Bla';
-f1 f2 f3
-bla blah sheep
-DROP TABLE t1,t2;
-CREATE TABLE t1 (id int PRIMARY KEY, a varchar(8));
-CREATE TABLE t2 (id int NOT NULL, b int NOT NULL, INDEX idx(id));
-INSERT INTO t1 VALUES
-(1,'aaaaaaa'), (5,'eeeeeee'), (4,'ddddddd'), (2,'bbbbbbb'), (3,'ccccccc');
-INSERT INTO t2 VALUES
-(3,10), (2,20), (5,30), (3,20), (5,10), (3,40), (3,30), (2,10), (2,40);
-EXPLAIN
-SELECT t1.id, a FROM t1 LEFT JOIN t2 ON t1.id=t2.id WHERE t2.b IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref idx idx 4 test.t1.id 2 Using where; Not exists; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-flush status;
-SELECT t1.id, a FROM t1 LEFT JOIN t2 ON t1.id=t2.id WHERE t2.b IS NULL;
-id a
-1 aaaaaaa
-4 ddddddd
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 5
-Handler_read_last 0
-Handler_read_next 9
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 3
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 6
-DROP TABLE t1,t2;
-CREATE TABLE t1 (c int PRIMARY KEY, e int NOT NULL);
-INSERT INTO t1 VALUES (1,0), (2,1);
-CREATE TABLE t2 (d int PRIMARY KEY);
-INSERT INTO t2 VALUES (1), (2), (3);
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON e<>0 WHERE c=1 AND d IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 index NULL PRIMARY 4 NULL 3 Using where; Using index; Not exists
-SELECT * FROM t1 LEFT JOIN t2 ON e<>0 WHERE c=1 AND d IS NULL;
-c e d
-1 0 NULL
-SELECT * FROM t1 LEFT JOIN t2 ON e<>0 WHERE c=1 AND d<=>NULL;
-c e d
-1 0 NULL
-DROP TABLE t1,t2;
-#
-# Bug#47650: using group by with rollup without indexes returns incorrect
-# results with where
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 ( a INT, b INT );
-INSERT INTO t2 VALUES (1, 1),(1, 2),(1, 3),(2, 4),(2, 5);
-EXPLAIN
-SELECT t1.a, COUNT( t2.b ), SUM( t2.b ), MAX( t2.b )
-FROM t1 LEFT JOIN t2 USING( a )
-GROUP BY t1.a WITH ROLLUP;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 Using where
-SELECT t1.a, COUNT( t2.b ), SUM( t2.b ), MAX( t2.b )
-FROM t1 LEFT JOIN t2 USING( a )
-GROUP BY t1.a WITH ROLLUP;
-a COUNT( t2.b ) SUM( t2.b ) MAX( t2.b )
-1 3 6 3
-NULL 3 6 3
-EXPLAIN
-SELECT t1.a, COUNT( t2.b ), SUM( t2.b ), MAX( t2.b )
-FROM t1 JOIN t2 USING( a )
-GROUP BY t1.a WITH ROLLUP;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 Using where; Using filesort
-SELECT t1.a, COUNT( t2.b ), SUM( t2.b ), MAX( t2.b )
-FROM t1 JOIN t2 USING( a )
-GROUP BY t1.a WITH ROLLUP;
-a COUNT( t2.b ) SUM( t2.b ) MAX( t2.b )
-1 3 6 3
-NULL 3 6 3
-DROP TABLE t1, t2;
-#
-# Bug#51598 Inconsistent behaviour with a COALESCE statement inside an IN comparison
-#
-CREATE TABLE t1(f1 INT, f2 INT, f3 INT);
-INSERT INTO t1 VALUES (1, NULL, 3);
-CREATE TABLE t2(f1 INT, f2 INT);
-INSERT INTO t2 VALUES (2, 1);
-EXPLAIN EXTENDED SELECT * FROM t1 LEFT JOIN t2 ON t1.f2 = t2.f2
-WHERE (COALESCE(t1.f1, t2.f1), f3) IN ((1, 3), (2, 2));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t2 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select 1 AS `f1`,NULL AS `f2`,3 AS `f3`,NULL AS `f1`,NULL AS `f2` from `test`.`t2` where 1
-SELECT * FROM t1 LEFT JOIN t2 ON t1.f2 = t2.f2
-WHERE (COALESCE(t1.f1, t2.f1), f3) IN ((1, 3), (2, 2));
-f1 f2 f3 f1 f2
-1 NULL 3 NULL NULL
-DROP TABLE t1, t2;
-#
-# Bug#52357: Assertion failed: join->best_read in greedy_search
-# optimizer_search_depth=0
-#
-CREATE TABLE t1( a INT );
-INSERT INTO t1 VALUES (1),(2);
-SET optimizer_search_depth = 0;
-# Should not core dump on query preparation
-EXPLAIN
-SELECT 1
-FROM t1 tt3 LEFT OUTER JOIN t1 tt4 ON 1
-LEFT OUTER JOIN t1 tt5 ON 1
-LEFT OUTER JOIN t1 tt6 ON 1
-LEFT OUTER JOIN t1 tt7 ON 1
-LEFT OUTER JOIN t1 tt8 ON 1
-RIGHT OUTER JOIN t1 tt2 ON 1
-RIGHT OUTER JOIN t1 tt1 ON 1
-STRAIGHT_JOIN t1 tt9 ON 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE tt1 ALL NULL NULL NULL NULL 2
-1 SIMPLE tt2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE tt3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE tt4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE tt5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE tt6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE tt7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE tt8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE tt9 ALL NULL NULL NULL NULL 2 Using join buffer (incremental, BNL join)
-SET optimizer_search_depth = DEFAULT;
-DROP TABLE t1;
-#
-# Bug#46091 STRAIGHT_JOIN + RIGHT JOIN returns different result
-#
-CREATE TABLE t1 (f1 INT NOT NULL);
-INSERT INTO t1 VALUES (9),(0);
-CREATE TABLE t2 (f1 INT NOT NULL);
-INSERT INTO t2 VALUES
-(5),(3),(0),(3),(1),(0),(1),(7),(1),(0),(0),(8),(4),(9),(0),(2),(0),(8),(5),(1);
-SELECT STRAIGHT_JOIN COUNT(*) FROM t1 TA1
-RIGHT JOIN t2 TA2 JOIN t2 TA3 ON TA2.f1 ON TA3.f1;
-COUNT(*)
-476
-EXPLAIN SELECT STRAIGHT_JOIN COUNT(*) FROM t1 TA1
-RIGHT JOIN t2 TA2 JOIN t2 TA3 ON TA2.f1 ON TA3.f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE TA2 ALL NULL NULL NULL NULL 20 Using where
-1 SIMPLE TA3 ALL NULL NULL NULL NULL 20 Using join buffer (flat, BNL join)
-1 SIMPLE TA1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-DROP TABLE t1, t2;
-#
-# Bug#48971 Segfault in add_found_match_trig_cond () at sql_select.cc:5990
-#
-CREATE TABLE t1(f1 INT, PRIMARY KEY (f1));
-INSERT INTO t1 VALUES (1),(2);
-EXPLAIN EXTENDED SELECT STRAIGHT_JOIN jt1.f1 FROM t1 AS jt1
-LEFT JOIN t1 AS jt2
-RIGHT JOIN t1 AS jt3
-JOIN t1 AS jt4 ON 1
-LEFT JOIN t1 AS jt5 ON 1
-ON 1
-RIGHT JOIN t1 AS jt6 ON jt6.f1
-ON 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE jt1 index NULL PRIMARY 4 NULL 2 100.00 Using index
-1 SIMPLE jt6 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index; Using join buffer (flat, BNL join)
-1 SIMPLE jt3 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index; Using join buffer (incremental, BNL join)
-1 SIMPLE jt4 index NULL PRIMARY 4 NULL 2 100.00 Using index; Using join buffer (incremental, BNL join)
-1 SIMPLE jt5 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index; Using join buffer (incremental, BNL join)
-1 SIMPLE jt2 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index; Using join buffer (incremental, BNL join)
-Warnings:
-Note 1003 select straight_join `test`.`jt1`.`f1` AS `f1` from `test`.`t1` `jt1` left join (`test`.`t1` `jt6` left join (`test`.`t1` `jt3` join `test`.`t1` `jt4` left join `test`.`t1` `jt5` on(1) left join `test`.`t1` `jt2` on(1)) on(`test`.`jt6`.`f1` <> 0 and 1)) on(1) where 1
-EXPLAIN EXTENDED SELECT STRAIGHT_JOIN jt1.f1 FROM t1 AS jt1
-RIGHT JOIN t1 AS jt2
-RIGHT JOIN t1 AS jt3
-JOIN t1 AS jt4 ON 1
-LEFT JOIN t1 AS jt5 ON 1
-ON 1
-RIGHT JOIN t1 AS jt6 ON jt6.f1
-ON 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE jt6 index NULL PRIMARY 4 NULL 2 100.00 Using index
-1 SIMPLE jt3 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index; Using join buffer (flat, BNL join)
-1 SIMPLE jt4 index NULL PRIMARY 4 NULL 2 100.00 Using index; Using join buffer (incremental, BNL join)
-1 SIMPLE jt5 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index; Using join buffer (incremental, BNL join)
-1 SIMPLE jt2 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index; Using join buffer (incremental, BNL join)
-1 SIMPLE jt1 index NULL PRIMARY 4 NULL 2 100.00 Using where; Using index; Using join buffer (incremental, BNL join)
-Warnings:
-Note 1003 select straight_join `test`.`jt1`.`f1` AS `f1` from `test`.`t1` `jt6` left join (`test`.`t1` `jt3` join `test`.`t1` `jt4` left join `test`.`t1` `jt5` on(1) left join `test`.`t1` `jt2` on(1)) on(`test`.`jt6`.`f1` <> 0 and 1) left join `test`.`t1` `jt1` on(1) where 1
-DROP TABLE t1;
-#
-# Bug#57688 Assertion `!table || (!table->write_set || bitmap_is_set(table->write_set, field
-#
-CREATE TABLE t1 (f1 INT NOT NULL, PRIMARY KEY (f1));
-CREATE TABLE t2 (f1 INT NOT NULL, f2 INT NOT NULL, PRIMARY KEY (f1, f2));
-INSERT INTO t1 VALUES (4);
-INSERT INTO t2 VALUES (3, 3);
-INSERT INTO t2 VALUES (7, 7);
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4
-GROUP BY t2.f1, t2.f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1 Using temporary; Using filesort
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 const 1 Using index
-SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4
-GROUP BY t2.f1, t2.f2;
-f1 f1 f2
-4 NULL NULL
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4 AND t2.f1 IS NOT NULL AND t2.f2 IS NOT NULL
-GROUP BY t2.f1, t2.f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 const 1 Using where; Using index; Using filesort
-SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4 AND t2.f1 IS NOT NULL AND t2.f2 IS NOT NULL
-GROUP BY t2.f1, t2.f2;
-f1 f1 f2
-DROP TABLE t1,t2;
-#
-# Bug#57034 incorrect OUTER JOIN result when joined on unique key
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY,
-col_int INT,
-col_int_unique INT UNIQUE KEY);
-INSERT INTO t1 VALUES (1,NULL,2), (2,0,0);
-CREATE TABLE t2 (pk INT PRIMARY KEY,
-col_int INT,
-col_int_unique INT UNIQUE KEY);
-INSERT INTO t2 VALUES (1,0,1), (2,0,2);
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2
-ON t1.col_int_unique = t2.col_int_unique AND t1.col_int = t2.col_int
-WHERE t1.pk=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 const col_int_unique col_int_unique 5 const 1
-SELECT * FROM t1 LEFT JOIN t2
-ON t1.col_int_unique = t2.col_int_unique AND t1.col_int = t2.col_int
-WHERE t1.pk=1;
-pk col_int col_int_unique pk col_int col_int_unique
-1 NULL 2 NULL NULL NULL
-DROP TABLE t1,t2;
-#
-# Bug#48046 Server incorrectly processing JOINs on NULL values
-#
-CREATE TABLE `BB` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`time_key` time DEFAULT NULL,
-`varchar_key` varchar(1) DEFAULT NULL,
-`varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `time_key` (`time_key`),
-KEY `varchar_key` (`varchar_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
-INSERT INTO `BB` VALUES (10,'18:27:58',NULL,NULL);
-SELECT table1.time_key AS field1, table2.pk
-FROM BB table1 LEFT JOIN BB table2
-ON table2.varchar_nokey = table1.varchar_key
-HAVING field1;
-field1 pk
-18:27:58 NULL
-DROP TABLE BB;
-#
-# Bug#49600 Server incorrectly processing RIGHT JOIN with
-# constant WHERE clause and no index
-#
-CREATE TABLE `BB` (
-`col_datetime_key` datetime DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-KEY `col_datetime_key` (`col_datetime_key`),
-KEY `col_varchar_key` (`col_varchar_key`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO `BB` VALUES ('1900-01-01 00:00:00',NULL,NULL);
-SELECT table1.col_datetime_key
-FROM BB table1 RIGHT JOIN BB table2
-ON table2 .col_varchar_nokey = table1.col_varchar_key
-WHERE 7;
-col_datetime_key
-NULL
-ALTER TABLE BB DISABLE KEYS;
-SELECT table1.col_datetime_key
-FROM BB table1 RIGHT JOIN BB table2
-ON table2 .col_varchar_nokey = table1.col_varchar_key
-WHERE 7;
-col_datetime_key
-NULL
-DROP TABLE BB;
-#
-# Bug#58490: Incorrect result in multi level OUTER JOIN
-# in combination with IS NULL
-#
-CREATE TABLE t1 (i INT NOT NULL);
-INSERT INTO t1 VALUES (0), (2),(3),(4);
-CREATE TABLE t2 (i INT NOT NULL);
-INSERT INTO t2 VALUES (0),(1), (3),(4);
-CREATE TABLE t3 (i INT NOT NULL);
-INSERT INTO t3 VALUES (0),(1),(2), (4);
-CREATE TABLE t4 (i INT NOT NULL);
-INSERT INTO t4 VALUES (0),(1),(2),(3) ;
-SELECT * FROM
-t1 LEFT JOIN
-( t2 LEFT JOIN
-( t3 LEFT JOIN
-t4
-ON t4.i = t3.i
-)
-ON t3.i = t2.i
-)
-ON t2.i = t1.i
-;
-i i i i
-0 0 0 0
-2 NULL NULL NULL
-3 3 NULL NULL
-4 4 4 NULL
-SELECT * FROM
-t1 LEFT JOIN
-( t2 LEFT JOIN
-( t3 LEFT JOIN
-t4
-ON t4.i = t3.i
-)
-ON t3.i = t2.i
-)
-ON t2.i = t1.i
-WHERE t4.i IS NULL;
-i i i i
-2 NULL NULL NULL
-3 3 NULL NULL
-4 4 4 NULL
-SELECT * FROM
-t1 LEFT JOIN
-( ( t2 LEFT JOIN
-t3
-ON t3.i = t2.i
-)
-)
-ON t2.i = t1.i
-WHERE t3.i IS NULL;
-i i i
-2 NULL NULL
-3 3 NULL
-SELECT * FROM
-t1 LEFT JOIN
-( ( t2 LEFT JOIN
-t3
-ON t3.i = t2.i
-)
-JOIN t4
-ON t4.i=t2.i
-)
-ON t2.i = t1.i
-WHERE t3.i IS NULL;
-i i i i
-2 NULL NULL NULL
-3 3 NULL 3
-4 NULL NULL NULL
-SELECT * FROM
-t1 LEFT JOIN
-( ( t2 LEFT JOIN
-t3
-ON t3.i = t2.i
-)
-JOIN (t4 AS t4a JOIN t4 AS t4b ON t4a.i=t4b.i)
-ON t4a.i=t2.i
-)
-ON t2.i = t1.i
-WHERE t3.i IS NULL;
-i i i i i
-2 NULL NULL NULL NULL
-3 3 NULL 3 3
-4 NULL NULL NULL NULL
-SELECT * FROM
-t1 LEFT JOIN
-( ( t2 LEFT JOIN
-t3
-ON t3.i = t2.i
-)
-JOIN (t4 AS t4a, t4 AS t4b)
-ON t4a.i=t2.i
-)
-ON t2.i = t1.i
-WHERE t3.i IS NULL;
-i i i i i
-2 NULL NULL NULL NULL
-3 3 NULL 3 0
-3 3 NULL 3 1
-3 3 NULL 3 2
-3 3 NULL 3 3
-4 NULL NULL NULL NULL
-DROP TABLE t1,t2,t3,t4;
-#
-# Bug#49322(Duplicate): Server is adding extra NULL row
-# on processing a WHERE clause
-#
-CREATE TABLE h (pk INT NOT NULL, col_int_key INT);
-INSERT INTO h VALUES (1,NULL),(4,2),(5,2),(3,4),(2,8);
-CREATE TABLE m (pk INT NOT NULL, col_int_key INT);
-INSERT INTO m VALUES (1,2),(2,7),(3,5),(4,7),(5,5),(6,NULL),(7,NULL),(8,9);
-CREATE TABLE k (pk INT NOT NULL, col_int_key INT);
-INSERT INTO k VALUES (1,9),(2,2),(3,5),(4,2),(5,7),(6,0),(7,5);
-SELECT TABLE1.pk FROM k TABLE1
-RIGHT JOIN h TABLE2 ON TABLE1.col_int_key=TABLE2.col_int_key
-RIGHT JOIN m TABLE4 ON TABLE2.col_int_key=TABLE4.col_int_key;
-pk
-2
-2
-4
-4
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-SELECT TABLE1.pk FROM k TABLE1
-RIGHT JOIN h TABLE2 ON TABLE1.col_int_key=TABLE2.col_int_key
-RIGHT JOIN m TABLE4 ON TABLE2.col_int_key=TABLE4.col_int_key
-WHERE TABLE1.pk IS NULL;
-pk
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-DROP TABLE h,m,k;
-
-# BUG#12567331 - INFINITE LOOP WHEN RESOLVING AN ALIASED COLUMN
-# USED IN GROUP BY
-
-CREATE TABLE t1 (
-col_varchar_1024_latin1_key varchar(1024),
-col_varchar_10_latin1 varchar(10),
-col_int int(11),
-pk int(11)
-);
-CREATE TABLE t2 (
-col_int_key int(11),
-col_int int(11),
-pk int(11)
-);
-PREPARE prep_stmt_9846 FROM '
-SELECT alias1.pk AS field1 FROM
-t1 AS alias1
-LEFT JOIN
-(
- t2 AS alias2
- RIGHT JOIN
- (
- t2 AS alias3
- JOIN t1 AS alias4
- ON 1
- )
- ON 1
-)
-ON 1
-GROUP BY field1';
-execute prep_stmt_9846;
-field1
-execute prep_stmt_9846;
-field1
-drop table t1,t2;
-#
-# Bug #11765810 58813: SERVER THREAD HANGS WHEN JOIN + WHERE + GROUP BY
-# IS EXECUTED TWICE FROM P
-#
-CREATE TABLE t1 ( a INT ) ENGINE = MYISAM;
-INSERT INTO t1 VALUES (1);
-PREPARE prep_stmt FROM '
- SELECT 1 AS f FROM t1
- LEFT JOIN t1 t2
- RIGHT JOIN t1 t3
- JOIN t1 t4
- ON 1
- ON 1
- ON 1
- GROUP BY f';
-EXECUTE prep_stmt;
-f
-1
-EXECUTE prep_stmt;
-f
-1
-DROP TABLE t1;
-#
-# Bug#49600: outer join of two single-row tables with joining attributes
-# evaluated to nulls
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1, NULL);
-insert into t2 values (2, NULL);
-select * from t1 left join t2 on t1.b=t2.b;
-a b a b
-1 NULL NULL NULL
-select * from t1 left join t2 on t1.b=t2.b where 1=1;
-a b a b
-1 NULL NULL NULL
-drop table t1,t2;
-#
-# Bug#53161: outer join in the derived table is erroneously converted
-# into an inner join for a query with a group by clause
-#
-create table t1 (pk int not null primary key, a int not null);
-create table t2 like t1;
-create table t3 like t1;
-create table t4 (pk int not null primary key);
-insert into t1 values (1000, 1), (1001, 1);
-insert into t2 values (2000, 2), (2001, 2);
-insert into t3 values (3000, 3), (3001, 2);
-insert into t4 values (4000), (4001);
-explain extended
-select t2.pk,
-(select t3.pk+if(isnull(t4.pk),0,t4.pk)
-from t3 left join t4 on t4.pk=t3.pk
-where t3.pk=t2.pk+1000 limit 1 ) as t
-from t1,t2
-where t2.pk=t1.pk+1000 and t1.pk>1000
-group by t2.pk;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 2 100.00 Using where; Using index; Using temporary; Using filesort
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 func 1 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t3 eq_ref PRIMARY PRIMARY 4 func 1 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t4 eq_ref PRIMARY PRIMARY 4 test.t3.pk 1 100.00 Using index
-Warnings:
-Note 1276 Field or reference 'test.t2.pk' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`pk` AS `pk`,<expr_cache><`test`.`t2`.`pk`>((/* select#2 */ select `test`.`t3`.`pk` + if(`test`.`t4`.`pk` is null,0,`test`.`t4`.`pk`) from `test`.`t3` left join `test`.`t4` on(`test`.`t4`.`pk` = `test`.`t3`.`pk`) where `test`.`t3`.`pk` = `test`.`t2`.`pk` + 1000 limit 1)) AS `t` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`pk` = `test`.`t1`.`pk` + 1000 and `test`.`t1`.`pk` > 1000 group by `test`.`t2`.`pk`
-select t2.pk,
-(select t3.pk+if(isnull(t4.pk),0,t4.pk)
-from t3 left join t4 on t4.pk=t3.pk
-where t3.pk=t2.pk+1000 limit 1 ) as t
-from t1,t2
-where t2.pk=t1.pk+1000 and t1.pk>1000
-group by t2.pk;
-pk t
-2001 3001
-drop table t1,t2,t3,t4;
-#
-# Bug#57024: Poor performance when conjunctive condition over the outer
-# table is used in the on condition of an outer join
-#
-create table t1 (a int);
-insert into t1 values (NULL), (NULL), (NULL), (NULL);
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 values (4), (2), (1), (3);
-create table t2 like t1;
-insert into t2 select if(t1.a is null, 10, t1.a) from t1;
-create table t3 (a int, b int, index idx(a));
-insert into t3 values (1, 100), (3, 301), (4, 402), (1, 102), (1, 101);
-insert into t3 values (11, 100), (33, 301), (44, 402), (11, 102), (11, 101);
-insert into t3 values (22, 100), (53, 301), (64, 402), (22, 102), (22, 101);
-analyze table t1,t2,t3;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-test.t2 analyze status OK
-test.t3 analyze status OK
-flush status;
-select sum(t3.b) from t1 left join t3 on t3.a=t1.a and t1.a is not null;
-sum(t3.b)
-1006
-show status like "handler_read%";
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 4
-Handler_read_last 0
-Handler_read_next 5
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 5
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 1048581
-flush status;
-select sum(t3.b) from t2 left join t3 on t3.a=t2.a and t2.a <> 10;
-sum(t3.b)
-1006
-show status like "handler_read%";
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 4
-Handler_read_last 0
-Handler_read_next 5
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 5
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 1048581
-drop table t1,t2,t3;
-#
-# Bug#57688 Assertion `!table || (!table->write_set || bitmap_is_set(table->write_set, field
-#
-CREATE TABLE t1 (f1 INT NOT NULL, PRIMARY KEY (f1));
-CREATE TABLE t2 (f1 INT NOT NULL, f2 INT NOT NULL, PRIMARY KEY (f1, f2));
-INSERT INTO t1 VALUES (4);
-INSERT INTO t2 VALUES (3, 3);
-INSERT INTO t2 VALUES (7, 7);
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4
-GROUP BY t2.f1, t2.f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1 Using temporary; Using filesort
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 const 1 Using index
-SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4
-GROUP BY t2.f1, t2.f2;
-f1 f1 f2
-4 NULL NULL
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4 AND t2.f1 IS NOT NULL AND t2.f2 IS NOT NULL
-GROUP BY t2.f1, t2.f2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 const 1 Using where; Using index; Using filesort
-SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
-WHERE t1.f1 = 4 AND t2.f1 IS NOT NULL AND t2.f2 IS NOT NULL
-GROUP BY t2.f1, t2.f2;
-f1 f1 f2
-DROP TABLE t1,t2;
-#
-# Bug#13068506 - QUERY WITH GROUP BY ON NON-AGGR COLUMN RETURNS
-# WRONG RESULT
-#
-CREATE TABLE t1 (i1 int);
-INSERT INTO t1 VALUES (100), (101);
-CREATE TABLE t2 (i2 int, i3 int);
-INSERT INTO t2 VALUES (20,1),(10,2);
-CREATE TABLE t3 (i4 int(11));
-INSERT INTO t3 VALUES (1),(2);
-
-SELECT (
-SELECT MAX( t2.i2 )
-FROM t3 RIGHT JOIN t2 ON ( t2.i3 = 2 )
-WHERE t2.i3 <> t1.i1
-) AS field1
-FROM t1;;
-field1
-20
-20
-
-SELECT (
-SELECT MAX( t2.i2 )
-FROM t3 RIGHT JOIN t2 ON ( t2.i3 = 2 )
-WHERE t2.i3 <> t1.i1
-) AS field1
-FROM t1 GROUP BY field1;;
-field1
-20
-
-drop table t1,t2,t3;
-# End of test for Bug#13068506
-End of 5.1 tests
-#
-# LP BUG#994392: Wrong result with RIGHT/LEFT JOIN and ALL subquery
-# predicate in WHERE condition.
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES(9);
-CREATE TABLE t2(b INT);
-INSERT INTO t2 VALUES(8);
-CREATE TABLE t3(c INT);
-INSERT INTO t3 VALUES(3);
-SELECT * FROM t2 RIGHT JOIN t3 ON(c = b) WHERE b < ALL(SELECT a FROM t1 WHERE a <= 7);
-b c
-NULL 3
-SELECT * FROM t3 LEFT JOIN t2 ON(c = b) WHERE b < ALL(SELECT a FROM t1 WHERE a <= 7);
-c b
-3 NULL
-SELECT * FROM t2 RIGHT JOIN t3 ON(c = b) WHERE b not in (SELECT a FROM t1 WHERE a <= 7);
-b c
-NULL 3
-SELECT * FROM t3 LEFT JOIN t2 ON(c = b) WHERE b not in (SELECT a FROM t1 WHERE a <= 7);
-c b
-3 NULL
-drop table t1,t2,t3;
-End of 5.2 tests
-#
-# LP bug #813447: LEFT JOIN with single-row inner table and
-# a subquery in ON expression
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (0);
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES (0);
-CREATE TABLE t3 (a int);
-INSERT INTO t3 VALUES (0), (0);
-SELECT t2.a FROM t1 LEFT JOIN t2 ON (6) IN (SELECT a FROM t3);
-a
-NULL
-EXPLAIN EXTENDED
-SELECT t2.a FROM t1 LEFT JOIN t2 ON (6) IN (SELECT a FROM t3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t2 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select NULL AS `a` from `test`.`t2` where 1
-DROP TABLE t1,t2,t3;
-#
-# LP bug #817384 Wrong result with outer join + subquery in ON
-# clause +unique key
-#
-CREATE TABLE t1 ( c int NOT NULL , b char(1) NOT NULL ) ;
-INSERT INTO t1 VALUES (1,'b');
-CREATE TABLE t2 ( a int NOT NULL , b char(1) NOT NULL , PRIMARY KEY (a)) ;
-INSERT INTO t2 VALUES (1,'a');
-create table t3 (c1 char(1), c2 char(2));
-insert into t3 values ('c','d');
-insert into t3 values ('c','d');
-EXPLAIN SELECT t2.b
-FROM t1 LEFT JOIN t2 ON t1.c = t2.a AND ( t2.b , t1.b ) IN (SELECT * from t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 const 1 Using where
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where
-SELECT t2.b
-FROM t1 LEFT JOIN t2 ON t1.c = t2.a AND ( t2.b , t1.b ) IN (SELECT * from t3);
-b
-NULL
-EXPLAIN SELECT t2.b
-FROM t1 LEFT JOIN t2 ON (t2.b) IN (SELECT c2 from t3) AND t2.a = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 const PRIMARY PRIMARY 4 const 1 Using where
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where
-SELECT t2.b
-FROM t1 LEFT JOIN t2 ON (t2.b) IN (SELECT c2 from t3) AND t2.a = 1;
-b
-NULL
-DROP TABLE t1,t2,t3;
-#
-# lp:825035 second execution of PS with outer join
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-CREATE TABLE t2 (a int);
-PREPARE stmt FROM
-"SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a";
-EXECUTE stmt;
-a a
-1 NULL
-2 NULL
-3 NULL
-4 NULL
-EXECUTE stmt;
-a a
-1 NULL
-2 NULL
-3 NULL
-4 NULL
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1,t2;
-#
-# lp:838633 second execution of PS with outer join
-# converted to inner join
-#
-CREATE TABLE t1 ( b int NOT NULL ) ;
-INSERT INTO t1 VALUES (9),(10);
-CREATE TABLE t2 ( b int NOT NULL, PRIMARY KEY (b)) ;
-INSERT INTO t2 VALUES
-(75),(76),(77),(78),(79),(80),(81),(82),(83),(84),(85),(86),(87),(88),(89),
-(10), (90),(91),(92),(93),(94),(95),(96),(97),(98),(99),(100);
-CREATE TABLE t3 ( a int, b int NOT NULL , PRIMARY KEY (b)) ;
-INSERT INTO t3 VALUES
-(0,6),(0,7),(0,8),(2,9),(0,10),(2,21),(0,22),(2,23),(2,24),(2,25);
-SET SESSION join_cache_level=4;
-EXPLAIN EXTENDED
-SELECT * FROM (t2 LEFT JOIN t1 ON t1.b = t2.b) JOIN t3 ON t1.b = t3.b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t3 hash_ALL PRIMARY #hash#PRIMARY 4 test.t1.b 10 10.00 Using join buffer (flat, BNLH join)
-1 SIMPLE t2 hash_index PRIMARY #hash#PRIMARY:PRIMARY 4:4 test.t1.b 27 3.70 Using index; Using join buffer (incremental, BNLH join)
-Warnings:
-Note 1003 select `test`.`t2`.`b` AS `b`,`test`.`t1`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b` from `test`.`t2` join `test`.`t1` join `test`.`t3` where `test`.`t3`.`b` = `test`.`t1`.`b` and `test`.`t2`.`b` = `test`.`t1`.`b`
-PREPARE stmt FROM
-'SELECT * FROM (t2 LEFT JOIN t1 ON t1.b = t2.b) JOIN t3 ON t1.b = t3.b';
-EXECUTE stmt;
-b b a b
-10 10 0 10
-EXECUTE stmt;
-b b a b
-10 10 0 10
-DEALLOCATE PREPARE stmt;
-SET SESSION join_cache_level=default;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #943543: LEFT JOIN converted to JOIN with
-# ORed IS NULL(primary key) in WHERE clause
-#
-CREATE TABLE t1 (
-a int, b int NOT NULL, pk int NOT NULL,
-PRIMARY KEY (pk), INDEX idx(b)
-);
-INSERT INTO t1 VALUES
-(NULL,1,1), (6,2,2), (5,3,3), (NULL,4,4),
-(1,9,6), (8,5,7), (NULL,8,8), (8,1,5);
-CREATE TABLE t2 (pk int PRIMARY KEY);
-INSERT INTO t2 VALUES (3), (8), (5);
-EXPLAIN EXTENDED
-SELECT t1.pk FROM t2 JOIN t1 ON t2.pk = t1.a
-WHERE t1.b BETWEEN 5 AND 6 AND t1.pk IS NULL OR t1.pk = 5
-ORDER BY t1.pk;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 100.00
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 100.00 Using index
-Warnings:
-Note 1003 select 5 AS `pk` from `test`.`t2` join `test`.`t1` where 1 order by 5
-SELECT t1.pk FROM t2 JOIN t1 ON t2.pk = t1.a
-WHERE t1.b BETWEEN 5 AND 6 AND t1.pk IS NULL OR t1.pk = 5
-ORDER BY t1.pk;
-pk
-5
-EXPLAIN EXTENDED
-SELECT t1.pk FROM t2 LEFT JOIN t1 ON t2.pk = t1.a
-WHERE t1.b BETWEEN 5 AND 6 AND t1.pk IS NULL OR t1.pk = 5
-ORDER BY t1.pk;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 const PRIMARY,idx PRIMARY 4 const 1 100.00
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 100.00 Using index
-Warnings:
-Note 1003 select 5 AS `pk` from `test`.`t2` join `test`.`t1` where 1 order by 5
-SELECT t1.pk FROM t2 LEFT JOIN t1 ON t2.pk = t1.a
-WHERE t1.b BETWEEN 5 AND 6 AND t1.pk IS NULL OR t1.pk = 5
-ORDER BY t1.pk;
-pk
-5
-DROP TABLE t2;
-CREATE TABLE t2 (c int, d int, KEY (c));
-INSERT INTO t2 VALUES
-(3,30), (8,88), (5,50), (8,81),
-(4,40), (9,90), (7,70), (9,90),
-(13,130), (18,188), (15,150), (18,181),
-(14,140), (19,190), (17,170), (19,190);
-INSERT INTO t1 VALUES (8,5,9);
-EXPLAIN EXTENDED
-SELECT t1.b, t2.c, t2.d FROM t2 JOIN t1 ON t2.c = t1.a
-WHERE t1.pk BETWEEN 5 AND 6 AND t1.b IS NULL OR t1.b = 5
-ORDER BY t1.b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ref idx idx 4 const 2 100.00 Using where
-1 SIMPLE t2 ref c c 5 test.t1.a 2 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` join `test`.`t1` where `test`.`t2`.`c` = `test`.`t1`.`a` and `test`.`t1`.`b` = 5 order by `test`.`t1`.`b`
-SELECT t1.b, t2.c, t2.d FROM t2 JOIN t1 ON t2.c = t1.a
-WHERE t1.pk BETWEEN 5 AND 6 AND t1.b IS NULL OR t1.b = 5
-ORDER BY t1.b;
-b c d
-5 8 88
-5 8 81
-5 8 88
-5 8 81
-EXPLAIN EXTENDED
-SELECT t1.b, t2.c, t2.d FROM t2 LEFT JOIN t1 ON t2.c = t1.a
-WHERE t1.pk BETWEEN 5 AND 6 AND t1.b IS NULL OR t1.b = 5
-ORDER BY t1.b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ref PRIMARY,idx idx 4 const 2 100.00 Using where
-1 SIMPLE t2 ref c c 5 test.t1.a 2 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` join `test`.`t1` where `test`.`t2`.`c` = `test`.`t1`.`a` and `test`.`t1`.`b` = 5 order by `test`.`t1`.`b`
-SELECT t1.b, t2.c, t2.d FROM t2 LEFT JOIN t1 ON t2.c = t1.a
-WHERE t1.pk BETWEEN 5 AND 6 AND t1.b IS NULL OR t1.b = 5
-ORDER BY t1.b;
-b c d
-5 8 88
-5 8 81
-5 8 88
-5 8 81
-DROP TABLE t1,t2;
-#
-# Bug mdev-4336: LEFT JOIN with disjunctive
-# <non-nullable datetime field> IS NULL in WHERE
-# causes a hang and eventual crash
-#
-CREATE TABLE t1 (
-id int(11) NOT NULL,
-modified datetime NOT NULL,
-PRIMARY KEY (id)
-);
-SELECT a.* FROM t1 a LEFT JOIN t1 b ON a.id = b.id
-WHERE a.modified > b.modified or b.modified IS NULL;
-id modified
-DROP TABLE t1;
-#
-# MDEV-4817: Optimizer fails to optimize expression of the form 'FOO' IS NULL
-#
-create table t0 (a int not null);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-alter table t0 add person_id varchar(255) not null;
-create table t1 (pk int not null primary key);
-insert into t1 select A.a + 10*B.a from t0 A, t0 B;
-explain select * from t1 left join t0 on t0.a=t1.pk where t0.person_id='fooo' or 'xyz' IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t0.a 1 Using index
-explain select * from t1 left join t0 on t0.a=t1.pk where t0.person_id='fooo';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t0.a 1 Using index
-explain select * from t1 left join t0 on t0.a=t1.pk where t0.person_id='fooo' or t0.person_id='bar';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t0.a 1 Using index
-drop table t0, t1;
-#
-# MDEV-4836: Wrong result on <not null date column> IS NULL (old documented hack stopped working)
-# (this is a regression after fix for MDEV-4817)
-#
-CREATE TABLE t1 (id INT, d DATE NOT NULL);
-INSERT INTO t1 VALUES (1,'0000-00-00'),(2,'0000-00-00');
-CREATE TABLE t2 (i INT);
-SELECT * FROM t1 LEFT JOIN t2 ON (id=i) WHERE NULL OR d IS NULL;
-id d i
-1 0000-00-00 NULL
-2 0000-00-00 NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (i1 INT, d1 DATE NOT NULL);
-INSERT INTO t1 VALUES (1,'2012-12-21'),(2,'0000-00-00');
-CREATE TABLE t2 (i2 INT, j2 INT);
-INSERT INTO t2 VALUES (1,10),(2,20);
-SELECT * FROM t1 LEFT JOIN t2 ON i1 = j2 WHERE d1 IS NULL AND 1 OR i1 = i2;
-i1 d1 i2 j2
-2 0000-00-00 NULL NULL
-DROP TABLE t1,t2;
-# Another testcase
-CREATE TABLE t1 (i1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (NULL);
-CREATE TABLE t2 (i2 INT, a INT, b INT) ENGINE=MyISAM;
-CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
-INSERT INTO t2 VALUES (NULL,1,2),(NULL,2,3);
-SELECT * FROM t1 LEFT JOIN v2 ON i1 = i2 WHERE a < b;
-i1 i2 a b
-SELECT * FROM t1 LEFT JOIN t2 ON i1 = i2 WHERE a < b;
-i1 i2 a b
-drop view v2;
-drop table t1,t2;
-#
-# Bug mdev-4942: LEFT JOIN with conjunctive
-# <non-nullable datetime field> IS NULL in WHERE
-# causes an assert failure
-#
-CREATE TABLE t1 ( i1 int, d1 date );
-INSERT INTO t1 VALUES (1,'2001-06-26'), (2,'2000-11-16');
-CREATE TABLE t2 ( i2 int, d2 date NOT NULL );
-INSERT INTO t2 VALUES (3,'2000-03-06'), (4,'2007-09-25');
-SELECT * FROM t1 LEFT JOIN t2 ON i1 = i2 WHERE d1 IS NULL AND d2 IS NULL;
-i1 d1 i2 d2
-DROP TABLE t1,t2;
-#
-# Bug mdev-4952: LEFT JOIN with disjunctive
-# <non-nullable datetime field> IS NULL in WHERE
-# causes an assert failure
-#
-CREATE TABLE t1 (a1 int, b1 int NOT NULL) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1, 10), (2, 11);
-CREATE TABLE t2 (dt datetime NOT NULL, a2 int, b2 int) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-('2006-10-08 09:34:54', 1, 100), ('2001-01-19 01:04:43', 2, 200);
-SELECT * FROM t1 LEFT JOIN t2 ON a1 = a2
-WHERE ( dt IS NULL OR FALSE ) AND b2 IS NULL;
-a1 b1 dt a2 b2
-DROP TABLE t1,t2;
-#
-# Bug mdev-4962: nested outer join with
-# <non-nullable datetime field> IS NULL in WHERE
-# causes an assert failure
-#
-CREATE TABLE t1 (i1 int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (i2 int) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (10),(20);
-CREATE TABLE t3 (i3 int, d3 datetime NOT NULL) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (8,'2008-12-04 17:53:42'),(9,'2012-12-21 12:12:12');
-SELECT * FROM t1 LEFT JOIN t2 LEFT JOIN t3 ON i2 = i3 ON i1 = i3
-WHERE d3 IS NULL;
-i1 i2 i3 d3
-1 NULL NULL NULL
-2 NULL NULL NULL
-EXPLAIN EXTENDED
-SELECT * FROM t1 LEFT JOIN t2 LEFT JOIN t3 ON i2 = i3 ON i1 = i3
-WHERE d3 IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (incremental, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`i1` AS `i1`,`test`.`t2`.`i2` AS `i2`,`test`.`t3`.`i3` AS `i3`,`test`.`t3`.`d3` AS `d3` from `test`.`t1` left join (`test`.`t2` join `test`.`t3`) on(`test`.`t2`.`i2` = `test`.`t1`.`i1` and `test`.`t3`.`i3` = `test`.`t1`.`i1`) where `test`.`t3`.`d3` = 0 or `test`.`t3`.`d3` is null
-DROP TABLE t1,t2,t3;
-#
-# Bug mdev-6705: wrong on expression after constant row substitution
-# that triggers a simplification of WHERE condition
-#
-CREATE TABLE t1 (a int, b int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (10,8);
-CREATE TABLE t2 (c int) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8),(9);
-CREATE TABLE t3 (d int) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (3),(8);
-EXPLAIN EXTENDED
-SELECT * FROM t1 INNER JOIN t2 ON c = b LEFT JOIN t3 ON d = a
-WHERE b IN (1,2,3) OR b = d;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select 10 AS `a`,8 AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t3`.`d` AS `d` from `test`.`t2` left join `test`.`t3` on(`test`.`t3`.`d` = 10) where `test`.`t2`.`c` = 8 and `test`.`t3`.`d` = 8
-SELECT * FROM t1 INNER JOIN t2 ON c = b LEFT JOIN t3 ON d = a
-WHERE b IN (1,2,3) OR b = d;
-a b c d
-DROP TABLE t1,t2,t3;
-#
-# MDEV-6634: Wrong estimates for ref(const) and key IS NULL predicate
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, c int, key(b), key(c));
-insert into t2 select
-@a:=A.a + 10*B.a+100*C.a,
-IF(@a<900, NULL, @a),
-IF(@a<500, NULL, @a)
-from t1 A, t1 B, t1 C;
-delete from t1 where a=0;
-# Check that there are different #rows of NULLs for b and c, both !=10:
-explain select * from t2 force index (b) where b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref b b 5 const 780 Using index condition
-explain select * from t2 force index (c) where c is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref c c 5 const 393 Using index condition
-explain select * from t1 left join t2 on t2.b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 9
-1 SIMPLE t2 ref b b 5 const 780 Using where
-explain select * from t1 left join t2 on t2.c is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 9
-1 SIMPLE t2 ref c c 5 const 393 Using where
-drop table t1,t2;
-#
-# MDEV-10006: optimizer doesn't convert outer join to inner on views with WHERE clause
-#
-CREATE TABLE t1(i1 int primary key, v1 int, key(v1));
-INSERT INTO t1 VALUES (1, 1);
-INSERT INTO t1 VALUES (2, 2);
-INSERT INTO t1 VALUES (3, 3);
-INSERT INTO t1 VALUES (4, 4);
-INSERT INTO t1 VALUES (5, 3);
-INSERT INTO t1 VALUES (6, 6);
-INSERT INTO t1 VALUES (7, 7);
-INSERT INTO t1 VALUES (8, 8);
-INSERT INTO t1 VALUES (9, 9);
-CREATE TABLE t2(i2 int primary key, v2 int, key(v2));
-INSERT INTO t2 VALUES (1, 1);
-INSERT INTO t2 VALUES (2, 2);
-INSERT INTO t2 VALUES (3, 3);
-INSERT INTO t2 VALUES (4, 4);
-INSERT INTO t2 VALUES (5, 3);
-INSERT INTO t2 VALUES (6, 6);
-INSERT INTO t2 VALUES (7, 7);
-INSERT INTO t2 VALUES (8, 8);
-INSERT INTO t2 VALUES (9, 9);
-CREATE TABLE t3(i3 int primary key, v3 int, key(v3));
-INSERT INTO t3 VALUES (2, 2);
-INSERT INTO t3 VALUES (4, 4);
-INSERT INTO t3 VALUES (6, 6);
-INSERT INTO t3 VALUES (8, 8);
-# This should have a join order of t3,t1,t2 (or t3,t2,t1, the idea is that t3 is the first one)
-EXPLAIN EXTENDED
-SELECT * FROM
-(SELECT t1.i1 as i1, t1.v1 as v1,
-t2.i2 as i2, t2.v2 as v2,
-t3.i3 as i3, t3.v3 as v3
-FROM t1 JOIN t2 on t1.i1 = t2.i2
-LEFT JOIN t3 on t2.i2 = t3.i3
-) as w1
-WHERE v3 = 4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 ref PRIMARY,v3 v3 5 const 1 100.00
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t3.i3 1 100.00
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t3.i3 1 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`i1` AS `i1`,`test`.`t1`.`v1` AS `v1`,`test`.`t2`.`i2` AS `i2`,`test`.`t2`.`v2` AS `v2`,`test`.`t3`.`i3` AS `i3`,`test`.`t3`.`v3` AS `v3` from `test`.`t1` join `test`.`t2` join `test`.`t3` where `test`.`t3`.`v3` = 4 and `test`.`t1`.`i1` = `test`.`t3`.`i3` and `test`.`t2`.`i2` = `test`.`t3`.`i3`
-# This should have the same join order like the query above:
-EXPLAIN EXTENDED
-SELECT * FROM
-(SELECT t1.i1 as i1, t1.v1 as v1,
-t2.i2 as i2, t2.v2 as v2,
-t3.i3 as i3, t3.v3 as v3
-FROM t1 JOIN t2 on t1.i1 = t2.i2
-LEFT JOIN t3 on t2.i2 = t3.i3
-WHERE t1.i1 = t2.i2
-AND 1 = 1
-) as w2
-WHERE v3 = 4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 ref PRIMARY,v3 v3 5 const 1 100.00
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t3.i3 1 100.00
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t3.i3 1 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`i1` AS `i1`,`test`.`t1`.`v1` AS `v1`,`test`.`t2`.`i2` AS `i2`,`test`.`t2`.`v2` AS `v2`,`test`.`t3`.`i3` AS `i3`,`test`.`t3`.`v3` AS `v3` from `test`.`t1` join `test`.`t2` join `test`.`t3` where `test`.`t3`.`v3` = 4 and `test`.`t1`.`i1` = `test`.`t3`.`i3` and `test`.`t2`.`i2` = `test`.`t3`.`i3`
-drop table t1,t2,t3;
-#
-# MDEV-11958: LEFT JOIN with stored routine produces incorrect result
-#
-CREATE TABLE t (x INT);
-INSERT INTO t VALUES(1),(NULL);
-CREATE FUNCTION f (val INT, ret INT) RETURNS INT DETERMINISTIC RETURN IFNULL(val, ret);
-SELECT t1.x, t2.x, IFNULL(t2.x,0), f(t2.x,0)
-FROM t t1 LEFT JOIN t t2
-ON t1.x = t2.x
-WHERE IFNULL(t2.x,0)=0;
-x x IFNULL(t2.x,0) f(t2.x,0)
-NULL NULL 0 0
-explain extended
-SELECT t1.x, t2.x, IFNULL(t2.x,0), f(t2.x,0)
-FROM t t1 LEFT JOIN t t2
-ON t1.x = t2.x
-WHERE IFNULL(t2.x,0)=0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`x` AS `x`,`test`.`t2`.`x` AS `x`,ifnull(`test`.`t2`.`x`,0) AS `IFNULL(t2.x,0)`,`f`(`test`.`t2`.`x`,0) AS `f(t2.x,0)` from `test`.`t` `t1` left join `test`.`t` `t2` on(`test`.`t2`.`x` = `test`.`t1`.`x`) where ifnull(`test`.`t2`.`x`,0) = 0
-SELECT t1.x, t2.x, IFNULL(t2.x,0), f(t2.x,0)
-FROM t t1 LEFT JOIN t t2
-ON t1.x = t2.x
-WHERE f(t2.x,0)=0;
-x x IFNULL(t2.x,0) f(t2.x,0)
-NULL NULL 0 0
-explain extended
-SELECT t1.x, t2.x, IFNULL(t2.x,0), f(t2.x,0)
-FROM t t1 LEFT JOIN t t2
-ON t1.x = t2.x
-WHERE f(t2.x,0)=0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`x` AS `x`,`test`.`t2`.`x` AS `x`,ifnull(`test`.`t2`.`x`,0) AS `IFNULL(t2.x,0)`,`f`(`test`.`t2`.`x`,0) AS `f(t2.x,0)` from `test`.`t` `t1` left join `test`.`t` `t2` on(`test`.`t2`.`x` = `test`.`t1`.`x`) where `f`(`test`.`t2`.`x`,0) = 0
-drop function f;
-drop table t;
-CREATE TABLE t1 (
-col1 DECIMAL(33,5) NULL DEFAULT NULL,
-col2 DECIMAL(33,5) NULL DEFAULT NULL
-);
-CREATE TABLE t2 (
-col1 DECIMAL(33,5) NULL DEFAULT NULL,
-col2 DECIMAL(33,5) NULL DEFAULT NULL,
-col3 DECIMAL(33,5) NULL DEFAULT NULL
-);
-INSERT INTO t1 VALUES (2, 1.1), (2, 2.1);
-INSERT INTO t2 VALUES (3, 3.1, 4), (1, 1, NULL);
-CREATE FUNCTION f1 ( p_num DECIMAL(45,15), p_return DECIMAL(45,15))
-RETURNS decimal(33,5)
-LANGUAGE SQL
-DETERMINISTIC
-CONTAINS SQL
-SQL SECURITY INVOKER
-BEGIN
-IF p_num IS NULL THEN
-RETURN p_return;
-ELSE
-RETURN p_num;
-END IF;
-END |
-SELECT t1.col1, t2.col1, t2.col3
-FROM t1 LEFT OUTER JOIN t2 ON t1.col1 = t2.col2
-WHERE IFNULL(t2.col3,0) = 0;
-col1 col1 col3
-2.00000 NULL NULL
-2.00000 NULL NULL
-EXPLAIN EXTENDED SELECT t1.col1, t2.col1, t2.col3
-FROM t1 LEFT OUTER JOIN t2 ON t1.col1 = t2.col2
-WHERE IFNULL(t2.col3,0) = 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col1` AS `col1`,`test`.`t2`.`col1` AS `col1`,`test`.`t2`.`col3` AS `col3` from `test`.`t1` left join `test`.`t2` on(`test`.`t2`.`col2` = `test`.`t1`.`col1`) where ifnull(`test`.`t2`.`col3`,0) = 0
-SELECT t1.col1, t2.col1, t2.col3
-FROM t1 LEFT OUTER JOIN t2 ON t1.col1 = t2.col2
-WHERE f1(t2.col3,0) = 0;
-col1 col1 col3
-2.00000 NULL NULL
-2.00000 NULL NULL
-EXPLAIN EXTENDED SELECT t1.col1, t2.col1, t2.col3
-FROM t1 LEFT OUTER JOIN t2 ON t1.col1 = t2.col2
-WHERE f1(t2.col3,0) = 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col1` AS `col1`,`test`.`t2`.`col1` AS `col1`,`test`.`t2`.`col3` AS `col3` from `test`.`t1` left join `test`.`t2` on(`test`.`t2`.`col2` = `test`.`t1`.`col1`) where `f1`(`test`.`t2`.`col3`,0) = 0
-DROP FUNCTION f1;
-DROP TABLE t1,t2;
-#
-# MDEV-10397: Server crashes in key_copy with join_cache_level > 2 and join on BIT fields
-#
-CREATE TABLE t1 (b1 BIT NOT NULL);
-INSERT INTO t1 VALUES (0),(1);
-CREATE TABLE t2 (b2 BIT NOT NULL);
-INSERT INTO t2 VALUES (0),(1);
-set @save_join_cache_level= @@join_cache_level;
-SET @@join_cache_level = 3;
-SELECT t1.b1+'0' , t2.b2 + '0' FROM t1 LEFT JOIN t2 ON b1 = b2;
-t1.b1+'0' t2.b2 + '0'
-0 0
-1 1
-DROP TABLE t1, t2;
-set @join_cache_level= @save_join_cache_level;
-#
-# MDEV-14779: using left join causes incorrect results with materialization and derived tables
-#
-create table t1(id int);
-insert into t1 values (1),(2);
-create table t2(sid int, id int);
-insert into t2 values (1,1),(2,2);
-select * from t1 t
-left join (select * from t2 where sid in (select max(sid) from t2 where 0=1 group by id)) r
-on t.id=r.id ;
-id sid id
-1 NULL NULL
-2 NULL NULL
-drop table t1, t2;
-# end of 5.5 tests
-SET optimizer_switch=@save_optimizer_switch;
-set join_cache_level=default;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 2
-set @@optimizer_switch=@save_optimizer_switch_jcl6;
-set @optimizer_switch_for_join_outer_test=NULL;
-set @join_cache_level_for_join_outer_test=NULL;
diff --git a/mysql-test/r/key.result b/mysql-test/r/key.result
deleted file mode 100644
index ba1124aaa14..00000000000
--- a/mysql-test/r/key.result
+++ /dev/null
@@ -1,641 +0,0 @@
-drop table if exists t1,t2,t3;
-SET SQL_WARNINGS=1;
-CREATE TABLE t1 (
-ID CHAR(32) NOT NULL,
-name CHAR(32) NOT NULL,
-value CHAR(255),
-INDEX indexIDname (ID(8),name(8))
-) ;
-INSERT INTO t1 VALUES
-('keyword','indexdir','/export/home/local/www/database/indexes/keyword');
-INSERT INTO t1 VALUES ('keyword','urlprefix','text/ /text');
-INSERT INTO t1 VALUES ('keyword','urlmap','/text/ /');
-INSERT INTO t1 VALUES ('keyword','attr','personal employee company');
-INSERT INTO t1 VALUES
-('emailgids','indexdir','/export/home/local/www/database/indexes/emailgids');
-INSERT INTO t1 VALUES ('emailgids','urlprefix','text/ /text');
-INSERT INTO t1 VALUES ('emailgids','urlmap','/text/ /');
-INSERT INTO t1 VALUES ('emailgids','attr','personal employee company');
-SELECT value FROM t1 WHERE ID='emailgids' AND name='attr';
-value
-personal employee company
-drop table t1;
-CREATE TABLE t1 (
-price int(5) DEFAULT '0' NOT NULL,
-area varchar(40) DEFAULT '' NOT NULL,
-type varchar(40) DEFAULT '' NOT NULL,
-transityes enum('Y','N') DEFAULT 'Y' NOT NULL,
-shopsyes enum('Y','N') DEFAULT 'Y' NOT NULL,
-schoolsyes enum('Y','N') DEFAULT 'Y' NOT NULL,
-petsyes enum('Y','N') DEFAULT 'Y' NOT NULL,
-KEY price (price,area,type,transityes,shopsyes,schoolsyes,petsyes)
-);
-INSERT INTO t1 VALUES (900,'Vancouver','Shared/Roomate','N','N','N','N');
-INSERT INTO t1 VALUES (900,'Vancouver','Shared/Roomate','N','N','N','N');
-INSERT IGNORE INTO t1 VALUES (900,'Vancouver','Shared/Roomate','','','','');
-Warnings:
-Warning 1265 Data truncated for column 'transityes' at row 1
-Warning 1265 Data truncated for column 'shopsyes' at row 1
-Warning 1265 Data truncated for column 'schoolsyes' at row 1
-Warning 1265 Data truncated for column 'petsyes' at row 1
-INSERT INTO t1 VALUES (900,'Vancouver','Shared/Roomate','Y','Y','Y','Y');
-INSERT INTO t1 VALUES (900,'Vancouver','Shared/Roomate','Y','Y','Y','Y');
-INSERT INTO t1 VALUES (900,'Vancouver','Shared/Roomate','Y','Y','Y','Y');
-INSERT INTO t1 VALUES (900,'Vancouver','Shared/Roomate','Y','Y','Y','Y');
-INSERT INTO t1 VALUES (900,'Vancouver','Shared/Roomate','Y','Y','Y','Y');
-SELECT * FROM t1 WHERE area='Vancouver' and transityes='y' and schoolsyes='y' and ( ((type='1 Bedroom' or type='Studio/Bach') and (price<=500)) or ((type='2 Bedroom') and (price<=550)) or ((type='Shared/Roomate') and (price<=300)) or ((type='Room and Board') and (price<=500)) ) and price <= 400;
-price area type transityes shopsyes schoolsyes petsyes
-drop table t1;
-CREATE TABLE t1 (program enum('signup','unique','sliding') not null, type enum('basic','sliding','signup'), sites set('mt'), PRIMARY KEY (program));
-ALTER TABLE t1 modify program enum('signup','unique','sliding');
-drop table t1;
-CREATE TABLE t1 (
-name varchar(50) DEFAULT '' NOT NULL,
-author varchar(50) DEFAULT '' NOT NULL,
-category decimal(10,0) DEFAULT '0' NOT NULL,
-email varchar(50),
-password varchar(50),
-proxy varchar(50),
-bitmap varchar(20),
-msg varchar(255),
-urlscol varchar(127),
-urlhttp varchar(127),
-timeout decimal(10,0),
-nbcnx decimal(10,0),
-creation decimal(10,0),
-livinguntil decimal(10,0),
-lang decimal(10,0),
-type decimal(10,0),
-subcat decimal(10,0),
-subtype decimal(10,0),
-reg char(1),
-scs varchar(255),
-capacity decimal(10,0),
-userISP varchar(50),
-CCident varchar(50) DEFAULT '' NOT NULL,
-PRIMARY KEY (name,author,category)
-);
-INSERT INTO t1 VALUES
-('patnom','patauteur',0,'p.favre@cryo-networks.fr',NULL,NULL,'#p2sndnq6ae5g1u6t','essai salut','scol://195.242.78.119:patauteur.patnom',NULL,NULL,NULL,950036174,-882087474,NULL,3,0,3,'1','Pub/patnom/futur_divers.scs',NULL,'pat','CC1');
-INSERT INTO t1 VALUES
-('LeNomDeMonSite','Marc',0,'m.barilley@cryo-networks.fr',NULL,NULL,NULL,NULL,'scol://195.242.78.119:Marc.LeNomDeMonSite',NULL,NULL,NULL,950560434,-881563214,NULL,3,0,3,'1','Pub/LeNomDeMonSite/domus_hibere.scs',NULL,'Marq','CC1');
-select * from t1 where name='patnom' and author='patauteur' and category=0;
-name author category email password proxy bitmap msg urlscol urlhttp timeout nbcnx creation livinguntil lang type subcat subtype reg scs capacity userISP CCident
-patnom patauteur 0 p.favre@cryo-networks.fr NULL NULL #p2sndnq6ae5g1u6t essai salut scol://195.242.78.119:patauteur.patnom NULL NULL NULL 950036174 -882087474 NULL 3 0 3 1 Pub/patnom/futur_divers.scs NULL pat CC1
-drop table t1;
-create table t1
-(
-name_id int not null auto_increment,
-name blob,
-INDEX name_idx (name(5)),
-primary key (name_id)
-);
-INSERT t1 VALUES(NULL,'/');
-INSERT t1 VALUES(NULL,'[T,U]_axpby');
-SELECT * FROM t1 WHERE name='[T,U]_axpy';
-name_id name
-SELECT * FROM t1 WHERE name='[T,U]_axpby';
-name_id name
-2 [T,U]_axpby
-create table t2
-(
-name_id int not null auto_increment,
-name char(255) binary,
-INDEX name_idx (name(5)),
-primary key (name_id)
-);
-INSERT t2 select * from t1;
-SELECT * FROM t2 WHERE name='[T,U]_axpy';
-name_id name
-SELECT * FROM t2 WHERE name='[T,U]_axpby';
-name_id name
-2 [T,U]_axpby
-CREATE TABLE t3 SELECT * FROM t2 WHERE name='[T,U]_axpby';
-SELECT * FROM t2 WHERE name='[T,U]_axpby';
-name_id name
-2 [T,U]_axpby
-drop table t1,t2,t3;
-create table t1
-(
-SEQNO numeric(12 ) not null,
-MOTYPEID numeric(12 ) not null,
-MOINSTANCEID numeric(12 ) not null,
-ATTRID numeric(12 ) not null,
-VALUE varchar(120) not null,
-primary key (SEQNO, MOTYPEID, MOINSTANCEID, ATTRID, VALUE )
-);
-INSERT INTO t1 VALUES (1, 1, 1, 1, 'a');
-INSERT INTO t1 VALUES (1, 1, 1, 1, 'b');
-INSERT INTO t1 VALUES (1, 1, 1, 1, 'a');
-ERROR 23000: Duplicate entry '1-1-1-1-a' for key 'PRIMARY'
-drop table t1;
-CREATE TABLE t1 (
-a tinytext NOT NULL,
-b tinyint(3) unsigned NOT NULL default '0',
-PRIMARY KEY (a(32),b)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('a',1),('a',2);
-SELECT * FROM t1 WHERE a='a' AND b=2;
-a b
-a 2
-SELECT * FROM t1 WHERE a='a' AND b in (2);
-a b
-a 2
-SELECT * FROM t1 WHERE a='a' AND b in (1,2);
-a b
-a 1
-a 2
-drop table t1;
-create table t1 (a int not null unique, b int unique, c int, d int not null primary key, key(c), e int not null unique);
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 d A 0 NULL NULL BTREE
-t1 0 a 1 a A 0 NULL NULL BTREE
-t1 0 e 1 e A 0 NULL NULL BTREE
-t1 0 b 1 b A NULL NULL NULL YES BTREE
-t1 1 c 1 c A NULL NULL NULL YES BTREE
-drop table t1;
-CREATE TABLE t1 (c CHAR(10) NOT NULL,i INT NOT NULL AUTO_INCREMENT,
-UNIQUE (c,i));
-INSERT IGNORE INTO t1 (c) VALUES (NULL),(NULL);
-Warnings:
-Warning 1048 Column 'c' cannot be null
-Warning 1048 Column 'c' cannot be null
-SELECT * FROM t1;
-c i
- 1
- 2
-INSERT INTO t1 (c) VALUES ('a'),('a');
-SELECT * FROM t1;
-c i
- 1
- 2
-a 1
-a 2
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (c CHAR(10) NULL, i INT NOT NULL AUTO_INCREMENT,
-UNIQUE (c,i));
-INSERT INTO t1 (c) VALUES (NULL),(NULL);
-SELECT * FROM t1;
-c i
-NULL 1
-NULL 2
-INSERT INTO t1 (c) VALUES ('a'),('a');
-SELECT * FROM t1;
-c i
-NULL 1
-NULL 2
-a 1
-a 2
-drop table t1;
-create table t1 (i int, a char(200), b text, unique (a), unique (b(300))) charset utf8;
-insert ignore t1 values (1, repeat('a',210), repeat('b', 310));
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-insert ignore t1 values (2, repeat(0xD0B1,215), repeat(0xD0B1, 310));
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select i, length(a), length(b), char_length(a), char_length(b) from t1;
-i length(a) length(b) char_length(a) char_length(b)
-1 200 310 200 310
-2 400 620 200 310
-select i from t1 where a=repeat(_utf8 'a',200);
-i
-1
-select i from t1 where a=repeat(_utf8 0xD0B1,200);
-i
-2
-select i from t1 where b=repeat(_utf8 'b',310);
-i
-1
-drop table t1;
-CREATE TABLE t1 (id int unsigned auto_increment, name char(50), primary key (id)) engine=myisam;
-insert into t1 (name) values ('a'), ('b'),('c'),('d'),('e'),('f'),('g');
-explain select 1 from t1 where id =2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-explain select 1 from t1 where id =2 or id=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 4 NULL 7 Using where; Using index
-explain select name from t1 where id =2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-ALTER TABLE t1 DROP PRIMARY KEY, ADD INDEX (id);
-explain select 1 from t1 where id =2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref id id 4 const 1 Using index
-drop table t1;
-CREATE TABLE t1 (numeropost mediumint(8) unsigned NOT NULL default '0', numreponse int(10) unsigned NOT NULL auto_increment, PRIMARY KEY (numeropost,numreponse), UNIQUE KEY numreponse (numreponse));
-INSERT INTO t1 (numeropost,numreponse) VALUES ('1','1'),('1','2'),('2','3'),('2','4');
-SELECT numeropost FROM t1 WHERE numreponse='1';
-numeropost
-1
-EXPLAIN SELECT numeropost FROM t1 WHERE numreponse='1';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const numreponse numreponse 4 const 1 Using index
-FLUSH TABLES;
-SELECT numeropost FROM t1 WHERE numreponse='1';
-numeropost
-1
-drop table t1;
-create table t1 (c varchar(30) character set utf8, t text character set utf8, unique (c(2)), unique (t(3))) engine=myisam;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` varchar(30) CHARACTER SET utf8 DEFAULT NULL,
- `t` text CHARACTER SET utf8 DEFAULT NULL,
- UNIQUE KEY `c` (`c`(2)),
- UNIQUE KEY `t` (`t`(3))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert t1 values ('cccc', 'tttt'),
-(0xD0B1212223D0B1D0B1D0B1D0B1D0B1, 0xD0B1D0B1212223D0B1D0B1D0B1D0B1),
-(0xD0B1222123D0B1D0B1D0B1D0B1D0B1, 0xD0B1D0B1222123D0B1D0B1D0B1D0B1);
-insert t1 (c) values ('cc22');
-ERROR 23000: Duplicate entry 'cc' for key 'c'
-insert t1 (t) values ('ttt22');
-ERROR 23000: Duplicate entry 'ttt' for key 't'
-insert t1 (c) values (0xD0B1212322D0B1D0B1D0B1D0B1D0B1);
-ERROR 23000: Duplicate entry '\0431!' for key 'c'
-insert t1 (t) values (0xD0B1D0B1212322D0B1D0B1D0B1D0B1);
-ERROR 23000: Duplicate entry '\0431\0431!' for key 't'
-select c from t1 where c='cccc';
-c
-cccc
-select t from t1 where t='tttt';
-t
-tttt
-select c from t1 where c=0xD0B1212223D0B1D0B1D0B1D0B1D0B1;
-c
-?!"#?????
-select t from t1 where t=0xD0B1D0B1212223D0B1D0B1D0B1D0B1;
-t
-??!"#????
-drop table t1;
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1 (
-c1 int,
-c2 varbinary(240),
-UNIQUE KEY (c1),
-KEY (c2)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'\Z\Z\Z\Z');
-INSERT INTO t1 VALUES (2,'\Z\Z\Z\Z\Z\Z');
-INSERT INTO t1 VALUES (3,'\Z\Z\Z\Z');
-select c1 from t1 where c2='\Z\Z\Z\Z';
-c1
-1
-3
-DELETE FROM t1 WHERE (c1 = 1);
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-select c1 from t1 where c2='\Z\Z\Z\Z';
-c1
-3
-DELETE FROM t1 WHERE (c1 = 3);
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-select c1 from t1 where c2='\Z\Z\Z\Z';
-c1
-truncate table t1;
-insert into t1 values(1,"aaaa"),(2,"aaab"),(3,"aaac"),(4,"aaccc");
-delete from t1 where c1=3;
-delete from t1 where c1=1;
-delete from t1 where c1=4;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-create table t1 (c char(10), index (c(0)));
-ERROR HY000: Key part 'c' length cannot be 0
-create table t1 (c char(10), index (c,c));
-ERROR 42S21: Duplicate column name 'c'
-create table t1 (c1 char(10), c2 char(10), index (c1,c2,c1));
-ERROR 42S21: Duplicate column name 'c1'
-create table t1 (c1 char(10), c2 char(10), index (c1,c1,c2));
-ERROR 42S21: Duplicate column name 'c1'
-create table t1 (c1 char(10), c2 char(10), index (c2,c1,c1));
-ERROR 42S21: Duplicate column name 'c1'
-create table t1 (c1 char(10), c2 char(10));
-alter table t1 add key (c1,c1);
-ERROR 42S21: Duplicate column name 'c1'
-alter table t1 add key (c2,c1,c1);
-ERROR 42S21: Duplicate column name 'c1'
-alter table t1 add key (c1,c2,c1);
-ERROR 42S21: Duplicate column name 'c1'
-alter table t1 add key (c1,c1,c2);
-ERROR 42S21: Duplicate column name 'c1'
-drop table t1;
-create table t1 (
-i1 INT NOT NULL,
-i2 INT NOT NULL,
-UNIQUE i1idx (i1),
-UNIQUE i2idx (i2));
-desc t1;
-Field Type Null Key Default Extra
-i1 int(11) NO PRI NULL
-i2 int(11) NO UNI NULL
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i1` int(11) NOT NULL,
- `i2` int(11) NOT NULL,
- UNIQUE KEY `i1idx` (`i1`),
- UNIQUE KEY `i2idx` (`i2`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (
-c1 int,
-c2 varchar(20) not null,
-primary key (c1),
-key (c2(10))
-) engine=myisam;
-insert into t1 values (1,'');
-insert into t1 values (2,' \t\tTest String');
-insert into t1 values (3,' \n\tTest String');
-update t1 set c2 = 'New Test String' where c1 = 1;
-select * from t1;
-c1 c2
-1 New Test String
-2 Test String
-3
- Test String
-drop table t1;
-create table t1 (a varchar(10), b varchar(10), key(a(10),b(10)));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(10) DEFAULT NULL,
- KEY `a` (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 modify b varchar(20);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(20) DEFAULT NULL,
- KEY `a` (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 modify a varchar(20);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(20) DEFAULT NULL,
- `b` varchar(20) DEFAULT NULL,
- KEY `a` (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int not null primary key, b varchar(20) not null unique);
-desc t1;
-Field Type Null Key Default Extra
-a int(11) NO PRI NULL
-b varchar(20) NO UNI NULL
-drop table t1;
-create table t1 (a int not null primary key, b int not null unique);
-desc t1;
-Field Type Null Key Default Extra
-a int(11) NO PRI NULL
-b int(11) NO UNI NULL
-drop table t1;
-create table t1 (a int not null primary key, b varchar(20) not null, unique (b(10)));
-desc t1;
-Field Type Null Key Default Extra
-a int(11) NO PRI NULL
-b varchar(20) NO UNI NULL
-drop table t1;
-create table t1 (a int not null primary key, b varchar(20) not null, c varchar(20) not null, unique(b(10),c(10)));
-desc t1;
-Field Type Null Key Default Extra
-a int(11) NO PRI NULL
-b varchar(20) NO MUL NULL
-c varchar(20) NO NULL
-drop table t1;
-create table t1 (
-c1 int,
-c2 char(12),
-c3 varchar(123),
-c4 timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-index (c1),
-index i1 (c1),
-index i2 (c2),
-index i3 (c3),
-unique i4 (c4),
-index i5 (c1, c2, c3, c4),
-primary key (c2, c3),
-index (c2, c4));
-Warnings:
-Note 1831 Duplicate index `i1`. This is deprecated and will be disallowed in a future release
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL,
- `c2` char(12) NOT NULL,
- `c3` varchar(123) NOT NULL,
- `c4` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- PRIMARY KEY (`c2`,`c3`),
- UNIQUE KEY `i4` (`c4`),
- KEY `c1` (`c1`),
- KEY `i1` (`c1`),
- KEY `i2` (`c2`),
- KEY `i3` (`c3`),
- KEY `i5` (`c1`,`c2`,`c3`,`c4`),
- KEY `c2` (`c2`,`c4`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 drop index c1;
-alter table t1 add index (c1);
-Warnings:
-Note 1831 Duplicate index `c1`. This is deprecated and will be disallowed in a future release
-alter table t1 add index (c1);
-Warnings:
-Note 1831 Duplicate index `c1_2`. This is deprecated and will be disallowed in a future release
-alter table t1 drop index i3;
-alter table t1 add index i3 (c3);
-alter table t1 drop index i2, drop index i4;
-alter table t1 add index i2 (c2), add index i4 (c4);
-alter table t1 drop index i2, drop index i4, add index i6 (c2, c4);
-Warnings:
-Note 1831 Duplicate index `i6`. This is deprecated and will be disallowed in a future release
-alter table t1 add index i2 (c2), add index i4 (c4), drop index i6;
-alter table t1 drop index i2, drop index i4, add unique i4 (c4);
-alter table t1 add index i2 (c2), drop index i4, add index i4 (c4);
-alter table t1 drop index c2, add index (c2(4),c3(7));
-alter table t1 drop index c2, add index (c2(4),c3(7));
-alter table t1 add primary key (c1, c2), drop primary key;
-alter table t1 drop primary key;
-alter table t1 add primary key (c1, c2), drop primary key;
-ERROR 42000: Can't DROP INDEX `PRIMARY`; check that it exists
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) NOT NULL,
- `c2` char(12) NOT NULL,
- `c3` varchar(123) NOT NULL,
- `c4` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- KEY `i1` (`c1`),
- KEY `i5` (`c1`,`c2`,`c3`,`c4`),
- KEY `c1` (`c1`),
- KEY `c1_2` (`c1`),
- KEY `i3` (`c3`),
- KEY `i2` (`c2`),
- KEY `i4` (`c4`),
- KEY `c2` (`c2`(4),`c3`(7))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values(1, 'a', 'a', NULL);
-insert into t1 values(1, 'b', 'b', NULL);
-alter table t1 drop index i3, drop index i2, drop index i1;
-alter table t1 add index i3 (c3), add index i2 (c2), add unique index i1 (c1);
-ERROR 23000: Duplicate entry '1' for key 'i1'
-drop table t1;
-CREATE TABLE t1( a TINYINT, KEY(a) ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES( 1 );
-ALTER TABLE t1 DISABLE KEYS;
-EXPLAIN SELECT MAX(a) FROM t1 FORCE INDEX(a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-drop table t1;
-CREATE TABLE t1 (
-a INTEGER auto_increment PRIMARY KEY,
-b INTEGER NOT NULL,
-c INTEGER NOT NULL,
-d CHAR(64)
-);
-CREATE TABLE t2 (
-a INTEGER auto_increment PRIMARY KEY,
-b INTEGER NOT NULL,
-c SMALLINT NOT NULL,
-d DATETIME NOT NULL,
-e SMALLINT NOT NULL,
-f INTEGER NOT NULL,
-g INTEGER NOT NULL,
-h SMALLINT NOT NULL,
-i INTEGER NOT NULL,
-j INTEGER NOT NULL,
-UNIQUE INDEX (b),
-INDEX (b, d, e, f, g, h, i, j, c),
-INDEX (c)
-);
-INSERT INTO t2 VALUES
-(NULL, 1, 254, '1000-01-01 00:00:00', 257, 0, 0, 0, 0, 0),
-(NULL, 2, 1, '2004-11-30 12:00:00', 1, 0, 0, 0, 0, 0),
-(NULL, 3, 1, '2004-11-30 12:00:00', 1, 0, 0, 2, -21600, 0),
-(NULL, 4, 1, '2004-11-30 12:00:00', 1, 0, 0, 2, -10800, 0),
-(NULL, 5, 1, '2004-11-30 12:00:00', 1, 0, 0, 5, -10800, 0),
-(NULL, 6, 1, '2004-11-30 12:00:00', 102, 0, 0, 0, 0, 0),
-(NULL, 7, 1, '2004-11-30 12:00:00', 105, 2, 0, 0, 0, 0),
-(NULL, 8, 1, '2004-11-30 12:00:00', 105, 10, 0, 0, 0, 0);
-INSERT INTO t1 (b, c, d) VALUES
-(3388000, -553000, NULL),
-(3388000, -553000, NULL);
-SELECT *
-FROM t2 c JOIN t1 pa ON c.b = pa.a
-WHERE c.c = 1
-ORDER BY c.b, c.d
-;
-a b c d e f g h i j a b c d
-2 2 1 2004-11-30 12:00:00 1 0 0 0 0 0 2 3388000 -553000 NULL
-DROP TABLE t1, t2;
-create table t1(a int not null, key aa(a),
-b char(10) not null, unique key bb(b(1)),
-c char(4) not null, unique key cc(c));
-desc t1;
-Field Type Null Key Default Extra
-a int(11) NO MUL NULL
-b char(10) NO UNI NULL
-c char(4) NO PRI NULL
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` char(10) NOT NULL,
- `c` char(4) NOT NULL,
- UNIQUE KEY `cc` (`c`),
- UNIQUE KEY `bb` (`b`(1)),
- KEY `aa` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1(a int not null, key aa(a),
-b char(10) not null, unique key bb(b(1)),
-c char(4) not null);
-desc t1;
-Field Type Null Key Default Extra
-a int(11) NO MUL NULL
-b char(10) NO UNI NULL
-c char(4) NO NULL
-alter table t1 add unique key cc(c);
-desc t1;
-Field Type Null Key Default Extra
-a int(11) NO MUL NULL
-b char(10) NO UNI NULL
-c char(4) NO PRI NULL
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` char(10) NOT NULL,
- `c` char(4) NOT NULL,
- UNIQUE KEY `cc` (`c`),
- UNIQUE KEY `bb` (`b`(1)),
- KEY `aa` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-End of 5.0 tests
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT PRIMARY KEY AUTO_INCREMENT);
-INSERT INTO t1 VALUES (), (), ();
-SELECT 1 AS c1
-FROM t1
-ORDER BY (
-SELECT 1 AS c2
-FROM t1
-GROUP BY GREATEST(LAST_INSERT_ID(), t1.a) ASC
-LIMIT 1);
-c1
-1
-1
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, INDEX (a,b));
-INSERT INTO t1 (a, b)
-VALUES
-(1,1), (1,2), (1,3), (1,4), (1,5),
-(2,2), (2,3), (2,1), (3,1), (4,1), (4,2), (4,3), (4,4), (4,5), (4,6);
-EXPLAIN SELECT 1 FROM t1 AS t1_outer WHERE
-(SELECT max(b) FROM t1 GROUP BY a HAVING a < 2) > 12;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 range NULL a 5 NULL 8 Using index for group-by
-SELECT 1 as RES FROM t1 AS t1_outer WHERE
-(SELECT max(b) FROM t1 GROUP BY a HAVING a < 2) > 12;
-RES
-DROP TABLE t1;
-#
-# Bug#18144: Cost with FORCE/USE index seems incorrect in some cases.
-#
-# We are interested in showing that the cost for the last plan is higher
-# than for the preceding two plans.
-#
-CREATE TABLE t1( a INT, b INT, KEY( a ) );
-INSERT INTO t1 values (1, 2), (1, 3), (2, 3), (2, 4), (3, 4), (3, 5);
-EXPLAIN SELECT a, SUM( b ) FROM t1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using temporary; Using filesort
-SHOW STATUS LIKE 'Last_query_cost';
-Variable_name Value
-Last_query_cost 9.212184
-EXPLAIN SELECT a, SUM( b ) FROM t1 USE INDEX( a ) GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using temporary; Using filesort
-SHOW STATUS LIKE 'Last_query_cost';
-Variable_name Value
-Last_query_cost 9.212184
-EXPLAIN SELECT a, SUM( b ) FROM t1 FORCE INDEX( a ) GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 6
-SHOW STATUS LIKE 'Last_query_cost';
-Variable_name Value
-Last_query_cost 14.199000
-DROP TABLE t1;
diff --git a/mysql-test/r/key_cache.result b/mysql-test/r/key_cache.result
deleted file mode 100644
index 1146ae8bbfa..00000000000
--- a/mysql-test/r/key_cache.result
+++ /dev/null
@@ -1,836 +0,0 @@
-drop table if exists t1, t2, t3;
-SET @save_key_buffer_size=@@key_buffer_size;
-SET @save_key_cache_block_size=@@key_cache_block_size;
-SET @save_key_cache_segments=@@key_cache_segments;
-SET @save_key_cache_file_hash_size=@@key_cache_file_hash_size;
-SELECT @@key_buffer_size, @@small.key_buffer_size;
-@@key_buffer_size @@small.key_buffer_size
-2097152 131072
-SET @@global.key_buffer_size=16*1024*1024;
-SET @@global.default.key_buffer_size=16*1024*1024;
-SET @@global.default.key_buffer_size=16*1024*1024;
-SET @@global.small.key_buffer_size=1*1024*1024;
-SET @@global.medium.key_buffer_size=4*1024*1024;
-SET @@global.medium.key_buffer_size=0;
-SET @@global.medium.key_buffer_size=0;
-SHOW VARIABLES like "key_buffer_size";
-Variable_name Value
-key_buffer_size 16777216
-SELECT @@key_buffer_size;
-@@key_buffer_size
-16777216
-SELECT @@global.key_buffer_size;
-@@global.key_buffer_size
-16777216
-SELECT @@global.default.key_buffer_size;
-@@global.default.key_buffer_size
-16777216
-SELECT @@global.default.`key_buffer_size`;
-@@global.default.`key_buffer_size`
-16777216
-SELECT @@global.`default`.`key_buffer_size`;
-@@global.`default`.`key_buffer_size`
-16777216
-SELECT @@`default`.key_buffer_size;
-@@`default`.key_buffer_size
-16777216
-SELECT @@small.key_buffer_size;
-@@small.key_buffer_size
-1048576
-SELECT @@medium.key_buffer_size;
-@@medium.key_buffer_size
-0
-SET @@global.key_buffer_size=@save_key_buffer_size;
-SELECT @@default.key_buffer_size;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'default.key_buffer_size' at line 1
-SELECT @@skr.storage_engine="test";
-ERROR HY000: Variable 'storage_engine' is not a variable component (can't be used as XXXX.variable_name)
-select @@keycache1.key_cache_block_size;
-@@keycache1.key_cache_block_size
-0
-select @@keycache1.key_buffer_size;
-@@keycache1.key_buffer_size
-0
-set global keycache1.key_cache_block_size=2048;
-select @@keycache1.key_buffer_size;
-@@keycache1.key_buffer_size
-0
-select @@keycache1.key_cache_block_size;
-@@keycache1.key_cache_block_size
-2048
-set global keycache1.key_buffer_size=1*1024*1024;
-select @@keycache1.key_buffer_size;
-@@keycache1.key_buffer_size
-1048576
-select @@keycache1.key_cache_block_size;
-@@keycache1.key_cache_block_size
-2048
-set global keycache2.key_buffer_size=4*1024*1024;
-select @@keycache2.key_buffer_size;
-@@keycache2.key_buffer_size
-4194304
-select @@keycache2.key_cache_block_size;
-@@keycache2.key_cache_block_size
-1024
-set global keycache1.key_buffer_size=0;
-select @@keycache1.key_buffer_size;
-@@keycache1.key_buffer_size
-0
-select @@keycache1.key_cache_block_size;
-@@keycache1.key_cache_block_size
-2048
-select @@key_buffer_size;
-@@key_buffer_size
-2097152
-select @@key_cache_block_size;
-@@key_cache_block_size
-1024
-select @@key_cache_file_hash_size;
-@@key_cache_file_hash_size
-512
-set global keycache1.key_buffer_size=1024*1024;
-create table t1 (p int primary key, a char(10)) delay_key_write=1;
-create table t2 (p int primary key, i int, a char(10), key k1(i), key k2(a));
-select @org_key_blocks_unused-unused_blocks as key_blocks_unused, used_blocks as key_blocks_used from information_schema.key_caches where key_cache_name="default";
-key_blocks_unused key_blocks_used
-0 0
-insert into t1 values (1, 'qqqq'), (11, 'yyyy');
-insert into t2 values (1, 1, 'qqqq'), (2, 1, 'pppp'),
-(3, 1, 'yyyy'), (4, 3, 'zzzz');
-select * from t1;
-p a
-1 qqqq
-11 yyyy
-select * from t2;
-p i a
-1 1 qqqq
-2 1 pppp
-3 1 yyyy
-4 3 zzzz
-update t1 set p=2 where p=1;
-update t2 set i=2 where i=1;
-select @org_key_blocks_unused-unused_blocks as key_blocks_unused, used_blocks as key_blocks_used from information_schema.key_caches where key_cache_name="default";
-key_blocks_unused key_blocks_used
-4 4
-cache index t1 key (`primary`) in keycache1;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-explain select p from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 2 Using index
-select p from t1;
-p
-2
-11
-explain select i from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL k1 5 NULL 4 Using index
-select i from t2;
-i
-2
-2
-2
-3
-explain select count(*) from t1, t2 where t1.p = t2.i;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 4 NULL 2 Using index
-1 SIMPLE t2 ref k1 k1 5 test.t1.p 2 Using index
-select count(*) from t1, t2 where t1.p = t2.i;
-count(*)
-3
-cache index t2 in keycache1;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-update t2 set p=p+1000, i=2 where a='qqqq';
-cache index t2 in keycache2;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-insert into t2 values (2000, 3, 'yyyy');
-cache index t2 in keycache1;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-update t2 set p=3000 where a='zzzz';
-select * from t2;
-p i a
-1001 2 qqqq
-2 2 pppp
-3 2 yyyy
-3000 3 zzzz
-2000 3 yyyy
-explain select p from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL PRIMARY 4 NULL 5 Using index
-select p from t2;
-p
-2
-3
-1001
-2000
-3000
-explain select i from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL k1 5 NULL 5 Using index
-select i from t2;
-i
-2
-2
-2
-3
-3
-explain select a from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL k2 11 NULL 5 Using index
-select a from t2;
-a
-pppp
-qqqq
-yyyy
-yyyy
-zzzz
-cache index t1 in unknown_key_cache;
-ERROR HY000: Unknown key cache 'unknown_key_cache'
-cache index t1 key (unknown_key) in keycache1;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache Error Key 'unknown_key' doesn't exist in table 't1'
-test.t1 assign_to_keycache status Operation failed
-select @@keycache2.key_buffer_size;
-@@keycache2.key_buffer_size
-4194304
-select @@keycache2.key_cache_block_size;
-@@keycache2.key_cache_block_size
-1024
-set global keycache2.key_buffer_size=0;
-select @@keycache2.key_buffer_size;
-@@keycache2.key_buffer_size
-0
-select @@keycache2.key_cache_block_size;
-@@keycache2.key_cache_block_size
-1024
-set global keycache2.key_buffer_size=1024*1024;
-select @@keycache2.key_buffer_size;
-@@keycache2.key_buffer_size
-1048576
-update t2 set p=4000 where a='zzzz';
-update t1 set p=p+1;
-set global keycache1.key_buffer_size=0;
-select * from t2;
-p i a
-1001 2 qqqq
-2 2 pppp
-3 2 yyyy
-4000 3 zzzz
-2000 3 yyyy
-select p from t2;
-p
-2
-3
-1001
-2000
-4000
-explain select i from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL k1 5 NULL 5 Using index
-select i from t2;
-i
-2
-2
-2
-3
-3
-explain select a from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL k2 11 NULL 5 Using index
-select a from t2;
-a
-pppp
-qqqq
-yyyy
-yyyy
-zzzz
-select * from t1;
-p a
-3 qqqq
-12 yyyy
-select p from t1;
-p
-3
-12
-create table t3 (like t1);
-cache index t3 in small;
-Table Op Msg_type Msg_text
-test.t3 assign_to_keycache status OK
-insert into t3 select * from t1;
-cache index t3 in keycache2;
-Table Op Msg_type Msg_text
-test.t3 assign_to_keycache status OK
-cache index t1,t2 in default;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-test.t2 assign_to_keycache status OK
-drop table t1,t2,t3;
-select @org_key_blocks_unused-unused_blocks as key_blocks_unused, used_blocks as key_blocks_used from information_schema.key_caches where key_cache_name="default";
-key_blocks_unused key_blocks_used
-0 4
-create table t1 (a int primary key);
-cache index t1 in keycache2;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-insert t1 values (1),(2),(3),(4),(5),(6),(7),(8);
-set global keycache2.key_buffer_size=0;
-select * from t1;
-a
-1
-2
-3
-4
-5
-6
-7
-8
-drop table t1;
-set global keycache3.key_buffer_size=100;
-Warnings:
-Warning 1292 Truncated incorrect key_buffer_size value: '100'
-set global keycache3.key_buffer_size=0;
-create table t1 (mytext text, FULLTEXT (mytext));
-insert t1 values ('aaabbb');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-set @my_key_cache_block_size= @@global.key_cache_block_size;
-set GLOBAL key_cache_block_size=2048;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-set global key_cache_block_size= @my_key_cache_block_size;
-CREATE TABLE t1(a int NOT NULL AUTO_INCREMENT PRIMARY KEY);
-SET @my_key_cache_block_size= @@global.key_cache_block_size;
-SET GLOBAL key_cache_block_size=1536;
-INSERT INTO t1 VALUES (1);
-SELECT @@key_cache_block_size;
-@@key_cache_block_size
-1536
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-CREATE TABLE t1(a int NOT NULL AUTO_INCREMENT PRIMARY KEY, b int);
-CREATE TABLE t2(a int NOT NULL AUTO_INCREMENT PRIMARY KEY, b int);
-SET GLOBAL key_cache_block_size=1536;
-INSERT INTO t1 VALUES (1,0);
-INSERT INTO t2(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t2;
-INSERT INTO t2(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t2;
-INSERT INTO t2(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t2;
-INSERT INTO t2(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t2;
-INSERT INTO t2(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t2;
-INSERT INTO t2(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t2;
-INSERT INTO t2(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t2;
-INSERT INTO t2(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t2;
-INSERT INTO t2(b) SELECT b FROM t1;
-INSERT INTO t1(b) SELECT b FROM t2;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-4181
-SELECT @@key_cache_block_size;
-@@key_cache_block_size
-1536
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1,t2;
-set global key_cache_block_size= @my_key_cache_block_size;
-set @@global.key_buffer_size=0;
-ERROR HY000: Cannot drop default keycache
-select @@global.key_buffer_size;
-@@global.key_buffer_size
-2097152
-SET @bug28478_key_cache_block_size= @@global.key_cache_block_size;
-SET GLOBAL key_cache_block_size= 1536;
-CREATE TABLE t1 (
-id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-c1 CHAR(150),
-c2 CHAR(150),
-c3 CHAR(150),
-KEY(c1, c2, c3)
-) ENGINE= MyISAM;
-INSERT INTO t1 (c1, c2, c3) VALUES
-('a', 'b', 'c'), ('b', 'c', 'd'), ('c', 'd', 'e'), ('d', 'e', 'f'),
-('e', 'f', 'g'), ('f', 'g', 'h'), ('g', 'h', 'i'), ('h', 'i', 'j'),
-('i', 'j', 'k'), ('j', 'k', 'l'), ('k', 'l', 'm'), ('l', 'm', 'n'),
-('m', 'n', 'o'), ('n', 'o', 'p'), ('o', 'p', 'q'), ('p', 'q', 'r'),
-('q', 'r', 's'), ('r', 's', 't'), ('s', 't', 'u'), ('t', 'u', 'v'),
-('u', 'v', 'w'), ('v', 'w', 'x'), ('w', 'x', 'y'), ('x', 'y', 'z');
-INSERT INTO t1 (c1, c2, c3) SELECT c1, c2, c3 from t1;
-INSERT INTO t1 (c1, c2, c3) SELECT c1, c2, c3 from t1;
-INSERT INTO t1 (c1, c2, c3) SELECT c1, c2, c3 from t1;
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-SHOW VARIABLES LIKE 'key_cache_block_size';
-Variable_name Value
-key_cache_block_size 1536
-SET GLOBAL key_cache_block_size= @bug28478_key_cache_block_size;
-DROP TABLE t1;
-#
-# Bug#12361113: crash when load index into cache
-#
-# Note that this creates an empty disabled key cache!
-SET GLOBAL key_cache_none.key_cache_block_size = 1024;
-CREATE TABLE t1 (a INT, b INTEGER NOT NULL, KEY (b) ) ENGINE = MYISAM;
-INSERT INTO t1 VALUES (1, 1);
-CACHE INDEX t1 in key_cache_none;
-ERROR HY000: Unknown key cache 'key_cache_none'
-# The bug crashed the server at LOAD INDEX below. Now it will succeed
-# since the default cache is used due to CACHE INDEX failed for
-# key_cache_none.
-LOAD INDEX INTO CACHE t1;
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-DROP TABLE t1;
-set global key_buffer_size=@save_key_buffer_size;
-set global key_cache_block_size=@save_key_cache_block_size;
-select @@key_buffer_size;
-@@key_buffer_size
-2097152
-select @@key_cache_block_size;
-@@key_cache_block_size
-1024
-select @@key_cache_segments;
-@@key_cache_segments
-0
-create table t1 (
-p int not null auto_increment primary key,
-a char(10));
-create table t2 (
-p int not null auto_increment primary key,
-i int, a char(10), key k1(i), key k2(a));
-select @@key_cache_segments;
-@@key_cache_segments
-0
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default NULL NULL 2097152 1024 0 # 0 0 0 0 0
-small NULL NULL 1048576 1024 1 # 0 1 0 2 1
-insert into t1 values (1, 'qqqq'), (2, 'yyyy');
-insert into t2 values (1, 1, 'qqqq'), (2, 1, 'pppp'),
-(3, 1, 'yyyy'), (4, 3, 'zzzz');
-select * from t1;
-p a
-1 qqqq
-2 yyyy
-select * from t2;
-p i a
-1 1 qqqq
-2 1 pppp
-3 1 yyyy
-4 3 zzzz
-update t1 set p=3 where p=1;
-update t2 set i=2 where i=1;
-select * from information_schema.session_status where variable_name like 'key_%' and variable_name != 'Key_blocks_unused';
-VARIABLE_NAME VARIABLE_VALUE
-KEY_BLOCKS_NOT_FLUSHED 0
-KEY_BLOCKS_USED 4
-KEY_BLOCKS_WARM 0
-KEY_READ_REQUESTS 22
-KEY_READS 0
-KEY_WRITE_REQUESTS 26
-KEY_WRITES 6
-select variable_value into @key_blocks_unused from information_schema.session_status where variable_name = 'Key_blocks_unused';
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default NULL NULL 2097152 1024 4 # 0 22 0 26 6
-small NULL NULL 1048576 1024 1 # 0 1 0 2 1
-delete from t2 where a='zzzz';
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default NULL NULL 2097152 1024 4 # 0 29 0 32 9
-small NULL NULL 1048576 1024 1 # 0 1 0 2 1
-delete from t1;
-delete from t2;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default NULL NULL 2097152 1024 4 # 0 29 0 32 9
-small NULL NULL 1048576 1024 1 # 0 1 0 2 1
-set global key_cache_segments=2;
-select @@key_cache_segments;
-@@key_cache_segments
-2
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 2097152 1024 0 # 0 0 0 0 0
-small NULL NULL 1048576 1024 1 # 0 1 0 2 1
-insert into t1 values (1, 'qqqq'), (2, 'yyyy');
-insert into t2 values (1, 1, 'qqqq'), (2, 1, 'pppp'),
-(3, 1, 'yyyy'), (4, 3, 'zzzz');
-select * from t1;
-p a
-1 qqqq
-2 yyyy
-select * from t2;
-p i a
-1 1 qqqq
-2 1 pppp
-3 1 yyyy
-4 3 zzzz
-update t1 set p=3 where p=1;
-update t2 set i=2 where i=1;
-select * from information_schema.session_status where variable_name like 'key_%' and variable_name != 'Key_blocks_unused';
-VARIABLE_NAME VARIABLE_VALUE
-KEY_BLOCKS_NOT_FLUSHED 0
-KEY_BLOCKS_USED 4
-KEY_BLOCKS_WARM 0
-KEY_READ_REQUESTS 22
-KEY_READS 0
-KEY_WRITE_REQUESTS 26
-KEY_WRITES 6
-select variable_value < @key_blocks_unused from information_schema.session_status where variable_name = 'Key_blocks_unused';
-variable_value < @key_blocks_unused
-1
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 2097152 1024 4 # 0 22 0 26 6
-small NULL NULL 1048576 1024 1 # 0 1 0 2 1
-delete from t1;
-delete from t2;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 2097152 1024 4 # 0 22 0 26 6
-small NULL NULL 1048576 1024 1 # 0 1 0 2 1
-set global key_cache_segments=1;
-select @@key_cache_segments;
-@@key_cache_segments
-1
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 1 NULL 2097152 1024 0 # 0 0 0 0 0
-small NULL NULL 1048576 1024 1 # 0 1 0 2 1
-insert into t1 values (1, 'qqqq'), (2, 'yyyy');
-insert into t2 values (1, 1, 'qqqq'), (2, 1, 'pppp'),
-(3, 1, 'yyyy'), (4, 3, 'zzzz');
-select * from t1;
-p a
-1 qqqq
-2 yyyy
-select * from t2;
-p i a
-1 1 qqqq
-2 1 pppp
-3 1 yyyy
-4 3 zzzz
-update t1 set p=3 where p=1;
-update t2 set i=2 where i=1;
-select * from information_schema.session_status where variable_name like 'key_%' and variable_name != 'Key_blocks_unused';
-VARIABLE_NAME VARIABLE_VALUE
-KEY_BLOCKS_NOT_FLUSHED 0
-KEY_BLOCKS_USED 4
-KEY_BLOCKS_WARM 0
-KEY_READ_REQUESTS 22
-KEY_READS 0
-KEY_WRITE_REQUESTS 26
-KEY_WRITES 6
-select variable_value = @key_blocks_unused from information_schema.session_status where variable_name = 'Key_blocks_unused';
-variable_value = @key_blocks_unused
-1
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 1 NULL 2097152 1024 4 # 0 22 0 26 6
-small NULL NULL 1048576 1024 1 # 0 1 0 2 1
-delete from t1;
-delete from t2;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 1 NULL 2097152 1024 4 # 0 22 0 26 6
-small NULL NULL 1048576 1024 1 # 0 1 0 2 1
-flush tables;
-flush status;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 1 NULL 2097152 1024 4 # 0 0 0 0 0
-small NULL NULL 1048576 1024 1 # 0 0 0 0 0
-set global key_buffer_size=32*1024;
-set global key_cache_file_hash_size=128;
-select @@key_buffer_size;
-@@key_buffer_size
-32768
-set global key_cache_segments=2;
-select @@key_cache_segments;
-@@key_cache_segments
-2
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 0 # 0 0 0 0 0
-small NULL NULL 1048576 1024 1 # 0 0 0 0 0
-insert into t1 values (1, 'qqqq'), (2, 'yyyy');
-insert into t2 values (1, 1, 'qqqq'), (2, 1, 'pppp'),
-(3, 1, 'yyyy'), (4, 3, 'zzzz');
-select * from t1;
-p a
-1 qqqq
-2 yyyy
-select * from t2;
-p i a
-1 1 qqqq
-2 1 pppp
-3 1 yyyy
-4 3 zzzz
-update t1 set p=3 where p=1;
-update t2 set i=2 where i=1;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 4 # 0 22 0 26 6
-small NULL NULL 1048576 1024 1 # 0 0 0 0 0
-insert into t1(a) select a from t1;
-insert into t1(a) select a from t1;
-insert into t1(a) select a from t1;
-insert into t1(a) select a from t1;
-insert into t1(a) select a from t1;
-insert into t1(a) select a from t1;
-insert into t1(a) select a from t1;
-insert into t1(a) select a from t1;
-insert into t2(i,a) select i,a from t2;
-insert into t2(i,a) select i,a from t2;
-insert into t2(i,a) select i,a from t2;
-insert into t2(i,a) select i,a from t2;
-insert into t2(i,a) select i,a from t2;
-insert into t2(i,a) select i,a from t2;
-insert into t2(i,a) select i,a from t2;
-insert into t2(i,a) select i,a from t2;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 6733 # 3684 103
-small NULL NULL 1048576 1024 # # 0 0 # 0 0
-select * from t1 where p between 1010 and 1020 ;
-p a
-select * from t2 where p between 1010 and 1020 ;
-p i a
-1010 2 pppp
-1011 2 yyyy
-1012 3 zzzz
-1013 2 qqqq
-1014 2 pppp
-1015 2 yyyy
-1016 3 zzzz
-1017 2 qqqq
-1018 2 pppp
-1019 2 yyyy
-1020 3 zzzz
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 6750 # 3684 103
-small NULL NULL 1048576 1024 # # 0 0 # 0 0
-flush tables;
-flush status;
-update t1 set a='zzzz' where a='qqqq';
-update t2 set i=1 where i=2;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3076 18 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-set global keycache1.key_buffer_size=256*1024;
-select @@keycache1.key_buffer_size;
-@@keycache1.key_buffer_size
-262144
-set global keycache1.key_cache_segments=7;
-select @@keycache1.key_cache_segments;
-@@keycache1.key_cache_segments
-7
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3076 18 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-keycache1 7 NULL 262143 2048 # # 0 0 0 0 0
-select * from information_schema.key_caches where key_cache_name like "key%"
- and segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-keycache1 7 NULL 262143 2048 0 # 0 0 0 0 0
-cache index t1 key (`primary`) in keycache1;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-explain select p from t1 where p between 1010 and 1020;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 Using where; Using index
-select p from t1 where p between 1010 and 1020;
-p
-explain select i from t2 where p between 1010 and 1020;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 28 Using index condition
-select i from t2 where p between 1010 and 1020;
-i
-1
-1
-3
-1
-1
-1
-3
-1
-1
-1
-3
-explain select count(*) from t1, t2 where t1.p = t2.i;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index k1 k1 5 NULL 1024 Using where; Using index
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.i 1 Using index
-select count(*) from t1, t2 where t1.p = t2.i;
-count(*)
-256
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3172 24 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-keycache1 7 NULL 262143 2048 # # 0 14 3 0 0
-select * from information_schema.key_caches where key_cache_name like "key%"
- and segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-keycache1 7 NULL 262143 2048 3 # 0 14 3 0 0
-cache index t2 in keycache1;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-update t2 set p=p+3000, i=2 where a='qqqq';
-select * from information_schema.key_caches where key_cache_name like "key%"
- and segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-keycache1 7 NULL 262143 2048 25 # 0 2082 25 1071 19
-set global keycache2.key_buffer_size=1024*1024;
-cache index t2 in keycache2;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-insert into t2 values (2000, 3, 'yyyy');
-select * from information_schema.key_caches where key_cache_name like "keycache2"
- and segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-keycache2 NULL NULL 1048576 1024 6 # 0 6 6 3 3
-select * from information_schema.key_caches where key_cache_name like "key%"
-and segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-keycache1 7 NULL 262143 2048 25 # 0 2082 25 1071 19
-keycache2 NULL NULL 1048576 1024 6 # 0 6 6 3 3
-cache index t2 in keycache1;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-update t2 set p=p+5000 where a='zzzz';
-select * from t2 where p between 1010 and 1020;
-p i a
-1010 1 pppp
-1011 1 yyyy
-1014 1 pppp
-1015 1 yyyy
-1018 1 pppp
-1019 1 yyyy
-explain select p from t2 where p between 1010 and 1020;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 7 Using where; Using index
-select p from t2 where p between 1010 and 1020;
-p
-1010
-1011
-1014
-1015
-1018
-1019
-explain select i from t2 where a='yyyy' and i=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref k1,k2 k1 5 const 188 Using where
-select i from t2 where a='yyyy' and i=3;
-i
-3
-explain select a from t2 where a='yyyy' and i=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref k1,k2 k1 5 const 188 Using where
-select a from t2 where a='yyyy' and i=3 ;
-a
-yyyy
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3172 24 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-keycache1 7 NULL 262143 2048 # # 0 3201 43 1594 30
-keycache2 NULL NULL 1048576 1024 # # 0 6 6 3 3
-set global keycache1.key_cache_block_size=2*1024;
-insert into t2 values (7000, 3, 'yyyy');
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3172 24 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-keycache1 7 NULL 262143 2048 # # 0 6 6 3 3
-keycache2 NULL NULL 1048576 1024 # # 0 6 6 3 3
-set global keycache1.key_cache_block_size=8*1024;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3172 24 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-keycache1 3 NULL 262143 8192 # # 0 0 0 0 0
-keycache2 NULL NULL 1048576 1024 # # 0 6 6 3 3
-insert into t2 values (8000, 3, 'yyyy');
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3172 24 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-keycache1 3 NULL 262143 8192 # # 0 6 5 3 3
-keycache2 NULL NULL 1048576 1024 # # 0 6 6 3 3
-set global keycache1.key_buffer_size=64*1024;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3172 24 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-keycache2 NULL NULL 1048576 1024 # # 0 6 6 3 3
-set global keycache1.key_cache_block_size=2*1024;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3172 24 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-keycache1 3 NULL 65535 2048 # # 0 0 0 0 0
-keycache2 NULL NULL 1048576 1024 # # 0 6 6 3 3
-set global keycache1.key_cache_block_size=8*1024;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3172 24 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-keycache2 NULL NULL 1048576 1024 # # 0 6 6 3 3
-set global keycache1.key_buffer_size=0;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3172 24 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-keycache2 NULL NULL 1048576 1024 # # 0 6 6 3 3
-set global keycache1.key_cache_block_size=8*1024;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3172 24 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-keycache2 NULL NULL 1048576 1024 # # 0 6 6 3 3
-set global keycache1.key_buffer_size=0;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3172 24 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-keycache2 NULL NULL 1048576 1024 # # 0 6 6 3 3
-set global keycache1.key_buffer_size=128*1024;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3172 24 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-keycache1 1 NULL 131072 8192 # # 0 0 0 0 0
-keycache2 NULL NULL 1048576 1024 # # 0 6 6 3 3
-set global keycache1.key_cache_block_size=1024;
-select * from information_schema.key_caches where segment_number is null;
-KEY_CACHE_NAME SEGMENTS SEGMENT_NUMBER FULL_SIZE BLOCK_SIZE USED_BLOCKS UNUSED_BLOCKS DIRTY_BLOCKS READ_REQUESTS READS WRITE_REQUESTS WRITES
-default 2 NULL 32768 1024 # # 0 3172 24 1552 18
-small NULL NULL 1048576 1024 # # 0 0 0 0 0
-keycache1 7 NULL 131068 1024 # # 0 0 0 0 0
-keycache2 NULL NULL 1048576 1024 # # 0 6 6 3 3
-drop table t1,t2;
-set global keycache1.key_buffer_size=0;
-set global keycache2.key_buffer_size=0;
-set global key_buffer_size=@save_key_buffer_size;
-set global key_cache_segments=@save_key_cache_segments;
-set global key_cache_file_hash_size=@save_key_cache_file_hash_size;
diff --git a/mysql-test/r/key_diff.result b/mysql-test/r/key_diff.result
deleted file mode 100644
index af928fcb203..00000000000
--- a/mysql-test/r/key_diff.result
+++ /dev/null
@@ -1,52 +0,0 @@
-drop table if exists t1;
-CREATE TABLE t1 (
-a char(5) NOT NULL,
-b char(4) NOT NULL,
-KEY (a),
-KEY (b)
-);
-INSERT INTO t1 VALUES ('A','B'),('b','A'),('C','c'),('D','E'),('a','a');
-select * from t1,t1 as t2;
-a b a b
-A B A B
-b A A B
-C c A B
-D E A B
-a a A B
-A B b A
-b A b A
-C c b A
-D E b A
-a a b A
-A B C c
-b A C c
-C c C c
-D E C c
-a a C c
-A B D E
-b A D E
-C c D E
-D E D E
-a a D E
-A B a a
-b A a a
-C c a a
-D E a a
-a a a a
-explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a NULL NULL NULL 5
-1 SIMPLE t2 ALL b NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B order by binary t1.a,t2.a;
-a b a b
-A B a a
-A B b A
-C c C c
-a a a a
-a a b A
-b A A B
-select * from t1 where a='a';
-a b
-A B
-a a
-drop table t1;
diff --git a/mysql-test/r/key_primary.result b/mysql-test/r/key_primary.result
deleted file mode 100644
index 7726a8e1d63..00000000000
--- a/mysql-test/r/key_primary.result
+++ /dev/null
@@ -1,20 +0,0 @@
-drop table if exists t1;
-create table t1 (t1 char(3) primary key);
-insert into t1 values("ABC");
-insert into t1 values("ABA");
-insert into t1 values("AB%");
-select * from t1 where t1="ABC";
-t1
-ABC
-select * from t1 where t1="ABCD";
-t1
-select * from t1 where t1 like "a_\%";
-t1
-AB%
-describe select * from t1 where t1="ABC";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 3 const 1 Using index
-describe select * from t1 where t1="ABCD";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-drop table t1;
diff --git a/mysql-test/r/keyread.result b/mysql-test/r/keyread.result
deleted file mode 100644
index d8e9659d4bb..00000000000
--- a/mysql-test/r/keyread.result
+++ /dev/null
@@ -1,6 +0,0 @@
-create table t1 (f1 int not null, f2 int, f3 int, primary key (f1,f2), key(f2,f3)) engine=innodb;
-create view v1 as select * from t1 where f2 = 1;
-select distinct f1 from v1;
-f1
-drop view v1;
-drop table t1;
diff --git a/mysql-test/r/keywords.result b/mysql-test/r/keywords.result
deleted file mode 100644
index e2f29f7cfb5..00000000000
--- a/mysql-test/r/keywords.result
+++ /dev/null
@@ -1,360 +0,0 @@
-drop table if exists t1;
-create table t1 (time time, date date, timestamp timestamp,
-quarter int, week int, year int, timestampadd int, timestampdiff int);
-insert into t1 values ("12:22:22","97:02:03","1997-01-02",1,2,3,4,5);
-select * from t1;
-time date timestamp quarter week year timestampadd timestampdiff
-12:22:22 1997-02-03 1997-01-02 00:00:00 1 2 3 4 5
-select t1.time+0,t1.date+0,t1.timestamp+0,concat(date," ",time),
-t1.quarter+t1.week, t1.year+timestampadd, timestampdiff from t1;
-t1.time+0 t1.date+0 t1.timestamp+0 concat(date," ",time) t1.quarter+t1.week t1.year+timestampadd timestampdiff
-122222 19970203 19970102000000 1997-02-03 12:22:22 3 7 5
-drop table t1;
-create table events(binlog int);
-insert into events values(1);
-select events.binlog from events;
-binlog
-1
-drop table events;
-create procedure p1()
-begin
-declare n int default 2;
-authors: while n > 0 do
-set n = n -1;
-end while authors;
-end|
-create procedure p2()
-begin
-declare n int default 2;
-contributors: while n > 0 do
-set n = n -1;
-end while contributors;
-end|
-drop procedure p1;
-drop procedure p2;
-create table t1 (connection int, b int);
-create procedure p1()
-begin
-declare connection int;
-select max(t1.connection) into connection from t1;
-select concat("max=",connection) 'p1';
-end|
-insert into t1 (connection) values (1);
-call p1();
-p1
-max=1
-drop procedure p1;
-drop table t1;
-CREATE TABLE slow (slow INT, general INT, master_heartbeat_period INT, ignore_server_ids INT);
-INSERT INTO slow(slow, general, master_heartbeat_period, ignore_server_ids) VALUES (1,2,3,4), (5,6,7,8);
-INSERT INTO slow(slow, general, master_heartbeat_period) VALUES (1,2,3), (5,6,7);
-INSERT INTO slow(slow, general) VALUES (1,2), (5,6);
-INSERT INTO slow(slow) VALUES (1), (5);
-SELECT slow, general, master_heartbeat_period, ignore_server_ids FROM slow ORDER BY slow;
-slow general master_heartbeat_period ignore_server_ids
-1 2 3 4
-1 2 3 NULL
-1 2 NULL NULL
-1 NULL NULL NULL
-5 6 7 8
-5 6 7 NULL
-5 6 NULL NULL
-5 NULL NULL NULL
-SELECT slow, general, master_heartbeat_period FROM slow ORDER BY slow;
-slow general master_heartbeat_period
-1 2 3
-1 2 3
-1 2 NULL
-1 NULL NULL
-5 6 7
-5 6 7
-5 6 NULL
-5 NULL NULL
-SELECT slow, master_heartbeat_period FROM slow ORDER BY slow;
-slow master_heartbeat_period
-1 3
-1 3
-1 NULL
-1 NULL
-5 7
-5 7
-5 NULL
-5 NULL
-SELECT slow FROM slow ORDER BY slow;
-slow
-1
-1
-1
-1
-5
-5
-5
-5
-DROP TABLE slow;
-CREATE TABLE general (slow INT, general INT, master_heartbeat_period INT, ignore_server_ids INT);
-INSERT INTO general(slow, general, master_heartbeat_period, ignore_server_ids) VALUES (1,2,3,4), (5,6,7,8);
-INSERT INTO general(slow, general, master_heartbeat_period) VALUES (1,2,3), (5,6,7);
-INSERT INTO general(slow, general) VALUES (1,2), (5,6);
-INSERT INTO general(slow) VALUES (1), (5);
-SELECT slow, general, master_heartbeat_period, ignore_server_ids FROM general ORDER BY slow;
-slow general master_heartbeat_period ignore_server_ids
-1 2 3 4
-1 2 3 NULL
-1 2 NULL NULL
-1 NULL NULL NULL
-5 6 7 8
-5 6 7 NULL
-5 6 NULL NULL
-5 NULL NULL NULL
-SELECT slow, general, master_heartbeat_period FROM general ORDER BY slow;
-slow general master_heartbeat_period
-1 2 3
-1 2 3
-1 2 NULL
-1 NULL NULL
-5 6 7
-5 6 7
-5 6 NULL
-5 NULL NULL
-SELECT slow, master_heartbeat_period FROM general ORDER BY slow;
-slow master_heartbeat_period
-1 3
-1 3
-1 NULL
-1 NULL
-5 7
-5 7
-5 NULL
-5 NULL
-SELECT slow FROM general ORDER BY slow;
-slow
-1
-1
-1
-1
-5
-5
-5
-5
-DROP TABLE general;
-CREATE TABLE master_heartbeat_period (slow INT, general INT, master_heartbeat_period INT, ignore_server_ids INT);
-INSERT INTO master_heartbeat_period(slow, general, master_heartbeat_period, ignore_server_ids) VALUES (1,2,3,4), (5,6,7,8);
-INSERT INTO master_heartbeat_period(slow, general, master_heartbeat_period) VALUES (1,2,3), (5,6,7);
-INSERT INTO master_heartbeat_period(slow, general) VALUES (1,2), (5,6);
-INSERT INTO master_heartbeat_period(slow) VALUES (1), (5);
-SELECT slow, general, master_heartbeat_period, ignore_server_ids FROM master_heartbeat_period ORDER BY slow;
-slow general master_heartbeat_period ignore_server_ids
-1 2 3 4
-1 2 3 NULL
-1 2 NULL NULL
-1 NULL NULL NULL
-5 6 7 8
-5 6 7 NULL
-5 6 NULL NULL
-5 NULL NULL NULL
-SELECT slow, general, master_heartbeat_period FROM master_heartbeat_period ORDER BY slow;
-slow general master_heartbeat_period
-1 2 3
-1 2 3
-1 2 NULL
-1 NULL NULL
-5 6 7
-5 6 7
-5 6 NULL
-5 NULL NULL
-SELECT slow, master_heartbeat_period FROM master_heartbeat_period ORDER BY slow;
-slow master_heartbeat_period
-1 3
-1 3
-1 NULL
-1 NULL
-5 7
-5 7
-5 NULL
-5 NULL
-SELECT slow FROM master_heartbeat_period ORDER BY slow;
-slow
-1
-1
-1
-1
-5
-5
-5
-5
-DROP TABLE master_heartbeat_period;
-CREATE TABLE ignore_server_ids (slow INT, general INT, master_heartbeat_period INT, ignore_server_ids INT);
-INSERT INTO ignore_server_ids(slow, general, master_heartbeat_period, ignore_server_ids) VALUES (1,2,3,4), (5,6,7,8);
-INSERT INTO ignore_server_ids(slow, general, master_heartbeat_period) VALUES (1,2,3), (5,6,7);
-INSERT INTO ignore_server_ids(slow, general) VALUES (1,2), (5,6);
-INSERT INTO ignore_server_ids(slow) VALUES (1), (5);
-SELECT slow, general, master_heartbeat_period, ignore_server_ids FROM ignore_server_ids ORDER BY slow;
-slow general master_heartbeat_period ignore_server_ids
-1 2 3 4
-1 2 3 NULL
-1 2 NULL NULL
-1 NULL NULL NULL
-5 6 7 8
-5 6 7 NULL
-5 6 NULL NULL
-5 NULL NULL NULL
-SELECT slow, general, master_heartbeat_period FROM ignore_server_ids ORDER BY slow;
-slow general master_heartbeat_period
-1 2 3
-1 2 3
-1 2 NULL
-1 NULL NULL
-5 6 7
-5 6 7
-5 6 NULL
-5 NULL NULL
-SELECT slow, master_heartbeat_period FROM ignore_server_ids ORDER BY slow;
-slow master_heartbeat_period
-1 3
-1 3
-1 NULL
-1 NULL
-5 7
-5 7
-5 NULL
-5 NULL
-SELECT slow FROM ignore_server_ids ORDER BY slow;
-slow
-1
-1
-1
-1
-5
-5
-5
-5
-DROP TABLE ignore_server_ids;
-CREATE TABLE t1 (slow INT, general INT, ignore_server_ids INT, master_heartbeat_period INT);
-INSERT INTO t1 VALUES (1,2,3,4);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE slow INT;
-DECLARE general INT;
-DECLARE ignore_server_ids INT;
-DECLARE master_heartbeat_period INT;
-SELECT max(t1.slow) INTO slow FROM t1;
-SELECT max(t1.general) INTO general FROM t1;
-SELECT max(t1.ignore_server_ids) INTO ignore_server_ids FROM t1;
-SELECT max(t1.master_heartbeat_period) INTO master_heartbeat_period FROM t1;
-SELECT slow, general, ignore_server_ids, master_heartbeat_period;
-END|
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE n INT DEFAULT 2;
-general: WHILE n > 0 DO
-SET n = n -1;
-END WHILE general;
-SET n = 2;
-slow: WHILE n > 0 DO
-SET n = n -1;
-END WHILE slow;
-SET n = 2;
-ignore_server_ids: WHILE n > 0 DO
-SET n = n -1;
-END WHILE ignore_server_ids;
-SET n = 2;
-master_heartbeat_period: WHILE n > 0 DO
-SET n = n -1;
-END WHILE master_heartbeat_period;
-END|
-CALL p1();
-slow general ignore_server_ids master_heartbeat_period
-1 2 3 4
-call p2();
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP TABLE t1;
-create table option (option int not null);
-drop table option;
-set option=1;
-ERROR HY000: Unknown system variable 'option'
-set option option=1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'option=1' at line 1
-#
-# MDEV-9979 Keywords UNBOUNDED, PRECEDING, FOLLOWING, TIES, OTHERS should be non-reserved
-#
-CREATE TABLE EXCLUDE (EXCLUDE INT);
-SELECT EXCLUDE FROM EXCLUDE;
-EXCLUDE
-SELECT EXCLUDE EXCLUDE FROM EXCLUDE;
-EXCLUDE
-SELECT EXCLUDE AS EXCLUDE FROM EXCLUDE;
-EXCLUDE
-DROP TABLE EXCLUDE;
-CREATE TABLE UNBOUNDED (UNBOUNDED INT);
-SELECT UNBOUNDED FROM UNBOUNDED;
-UNBOUNDED
-SELECT UNBOUNDED UNBOUNDEX FROM UNBOUNDED;
-UNBOUNDEX
-SELECT UNBOUNDED AS UNBOUNDEX FROM UNBOUNDED;
-UNBOUNDEX
-DROP TABLE UNBOUNDED;
-CREATE TABLE PRECEDING (PRECEDING INT);
-SELECT PRECEDING FROM PRECEDING;
-PRECEDING
-SELECT PRECEDING PRECEDING FROM PRECEDING;
-PRECEDING
-SELECT PRECEDING AS PRECEDING FROM PRECEDING;
-PRECEDING
-DROP TABLE PRECEDING;
-CREATE TABLE FOLLOWING (FOLLOWING INT);
-SELECT FOLLOWING FROM FOLLOWING;
-FOLLOWING
-SELECT FOLLOWING FOLLOWING FROM FOLLOWING;
-FOLLOWING
-SELECT FOLLOWING AS FOLLOWING FROM FOLLOWING;
-FOLLOWING
-DROP TABLE FOLLOWING;
-CREATE TABLE TIES (TIES INT);
-SELECT TIES FROM TIES;
-TIES
-SELECT TIES TIES FROM TIES;
-TIES
-SELECT TIES AS TIES FROM TIES;
-TIES
-DROP TABLE TIES;
-CREATE TABLE OTHERS (OTHERS INT);
-SELECT OTHERS FROM OTHERS;
-OTHERS
-SELECT OTHERS OTHERS FROM OTHERS;
-OTHERS
-SELECT OTHERS AS OTHERS FROM OTHERS;
-OTHERS
-DROP TABLE OTHERS;
-#
-# MDEV-10585 EXECUTE IMMEDIATE statement
-#
-CREATE TABLE immediate (immediate int);
-DROP TABLE immediate;
-#
-# MDEV-10142 Pluggable parser
-# Testing keywords that were added into lex.h for Oracle compatibility
-# that are not reserved keywords in MariaDB
-#
-CREATE TABLE clob (clob int);
-DROP TABLE clob;
-CREATE TABLE elsif (elsif INT);
-DROP TABLE elsif;
-CREATE TABLE exception (exception INT);
-DROP TABLE exception;
-CREATE TABLE raw (raw int);
-DROP TABLE raw;
-CREATE TABLE varchar2 (varchar2 int);
-DROP TABLE varchar2;
-CREATE TABLE decode (decode int);
-DROP TABLE decode;
-CREATE TABLE rowcount (rowcount int);
-DROP TABLE rowcount;
-CREATE TABLE isopen (isopen int);
-DROP TABLE isopen;
-CREATE TABLE notfound (notfound int);
-DROP TABLE notfound;
-CREATE TABLE raise (raise int);
-DROP TABLE raise;
-CREATE TABLE reuse (reuse int);
-DROP TABLE reuse;
diff --git a/mysql-test/r/kill-2.result b/mysql-test/r/kill-2.result
deleted file mode 100644
index daaba2c092a..00000000000
--- a/mysql-test/r/kill-2.result
+++ /dev/null
@@ -1,12 +0,0 @@
-#
-# MDEV-6896 kill user command cause MariaDB crash!
-#
-create user foo@'127.0.0.1';
-connect con1,127.0.0.1,foo,,;
-connection default;
-select user from information_schema.processlist;
-user
-foo
-root
-kill user foo@'127.0.0.1';
-drop user foo@'127.0.0.1';
diff --git a/mysql-test/r/kill.result b/mysql-test/r/kill.result
deleted file mode 100644
index dc1cb9252da..00000000000
--- a/mysql-test/r/kill.result
+++ /dev/null
@@ -1,401 +0,0 @@
-set local sql_mode="";
-set global sql_mode="";
-SET DEBUG_SYNC = 'RESET';
-DROP TABLE IF EXISTS t1, t2, t3;
-DROP FUNCTION IF EXISTS MY_KILL;
-CREATE FUNCTION MY_KILL(tid INT) RETURNS INT
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION BEGIN END;
-KILL tid;
-RETURN (SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE ID = tid);
-END|
-connect con1, localhost, root,,;
-connect con2, localhost, root,,;
-connection con1;
-connection con2;
-connection con1;
-SET DEBUG_SYNC= 'thread_end SIGNAL con1_end';
-SET DEBUG_SYNC= 'before_do_command_net_read SIGNAL con1_read';
-connection con2;
-SET DEBUG_SYNC='now WAIT_FOR con1_read';
-SET DEBUG_SYNC= 'now WAIT_FOR con1_end';
-SET DEBUG_SYNC = 'RESET';
-connection con1;
-SELECT 1;
-Got one of the listed errors
-SELECT 1;
-1
-1
-SELECT @id != CONNECTION_ID();
-@id != CONNECTION_ID()
-1
-connection con2;
-SELECT 4;
-4
-4
-connection default;
-KILL (SELECT COUNT(*) FROM mysql.user);
-ERROR 42000: KILL does not support subqueries or stored functions
-connection con1;
-connection con2;
-connection con1;
-SET DEBUG_SYNC= 'thread_end SIGNAL con1_end';
-SET DEBUG_SYNC= 'before_do_command_net_read SIGNAL con1_read WAIT_FOR kill';
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR con1_read';
-SET DEBUG_SYNC= 'now WAIT_FOR con1_end';
-SET DEBUG_SYNC = 'RESET';
-connection con1;
-SELECT 1;
-Got one of the listed errors
-SELECT 1;
-1
-1
-SELECT @id != CONNECTION_ID();
-@id != CONNECTION_ID()
-1
-connection con2;
-SELECT 4;
-4
-4
-connection default;
-CREATE TABLE t1 (id INT PRIMARY KEY AUTO_INCREMENT);
-CREATE TABLE t2 (id INT UNSIGNED NOT NULL);
-INSERT INTO t1 VALUES
-(0),(0),(0),(0),(0),(0),(0),(0), (0),(0),(0),(0),(0),(0),(0),(0),
-(0),(0),(0),(0),(0),(0),(0),(0), (0),(0),(0),(0),(0),(0),(0),(0),
-(0),(0),(0),(0),(0),(0),(0),(0), (0),(0),(0),(0),(0),(0),(0),(0),
-(0),(0),(0),(0),(0),(0),(0),(0), (0),(0),(0),(0),(0),(0),(0),(0);
-INSERT t1 SELECT 0 FROM t1 AS a1, t1 AS a2 LIMIT 4032;
-INSERT INTO t2 SELECT id FROM t1;
-connection con1;
-connection con2;
-connection con1;
-SET DEBUG_SYNC= 'thread_end SIGNAL con1_end';
-SET DEBUG_SYNC= 'before_acos_function SIGNAL in_sync';
-SELECT id FROM t1 WHERE id IN
-(SELECT DISTINCT a.id FROM t2 a, t2 b, t2 c, t2 d
-GROUP BY ACOS(1/a.id), b.id, c.id, d.id
-HAVING a.id BETWEEN 10 AND 20);
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR in_sync';
-KILL @id;
-SET DEBUG_SYNC= 'now WAIT_FOR con1_end';
-connection con1;
-Got one of the listed errors
-SELECT 1;
-1
-1
-connection default;
-SET DEBUG_SYNC = 'RESET';
-DROP TABLE t1, t2;
-connection con1;
-connection con2;
-connection con1;
-SET DEBUG_SYNC= 'before_acos_function SIGNAL in_sync WAIT_FOR kill';
-SELECT ACOS(0);
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR in_sync';
-KILL QUERY @id;
-connection con1;
-ACOS(0)
-1.5707963267948966
-SELECT 1;
-1
-1
-SELECT @id = CONNECTION_ID();
-@id = CONNECTION_ID()
-1
-connection default;
-SET DEBUG_SYNC = 'RESET';
-CREATE TABLE t1 (f1 INT);
-CREATE FUNCTION bug27563() RETURNS INT(11)
-DETERMINISTIC
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '70100' SET @a:= 'killed';
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET @a:= 'exception';
-SET DEBUG_SYNC= 'now SIGNAL in_sync WAIT_FOR kill';
-RETURN 1;
-END|
-connection con1;
-connection con2;
-connection con1;
-INSERT INTO t1 VALUES (bug27563());
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR in_sync';
-KILL QUERY @id;
-connection con1;
-ERROR 70100: Query execution was interrupted
-SELECT * FROM t1;
-f1
-connection default;
-SET DEBUG_SYNC = 'RESET';
-INSERT INTO t1 VALUES(0);
-connection con1;
-UPDATE t1 SET f1= bug27563();
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR in_sync';
-KILL QUERY @id;
-connection con1;
-ERROR 70100: Query execution was interrupted
-SELECT * FROM t1;
-f1
-0
-connection default;
-SET DEBUG_SYNC = 'RESET';
-INSERT INTO t1 VALUES(1);
-connection con1;
-DELETE FROM t1 WHERE bug27563() IS NULL;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR in_sync';
-KILL QUERY @id;
-connection con1;
-ERROR 70100: Query execution was interrupted
-SELECT * FROM t1;
-f1
-0
-1
-connection default;
-SET DEBUG_SYNC = 'RESET';
-connection con1;
-SELECT * FROM t1 WHERE f1= bug27563();
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR in_sync';
-KILL QUERY @id;
-connection con1;
-ERROR 70100: Query execution was interrupted
-SELECT * FROM t1;
-f1
-0
-1
-connection default;
-SET DEBUG_SYNC = 'RESET';
-DROP FUNCTION bug27563;
-CREATE TABLE t2 (f2 INT);
-CREATE TRIGGER trg27563 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '70100' SET @a:= 'killed';
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET @a:= 'exception';
-INSERT INTO t2 VALUES(0);
-SET DEBUG_SYNC= 'now SIGNAL in_sync WAIT_FOR kill';
-INSERT INTO t2 VALUES(1);
-END|
-connection con1;
-INSERT INTO t1 VALUES(2),(3);
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR in_sync';
-KILL QUERY @id;
-connection con1;
-ERROR 70100: Query execution was interrupted
-SELECT * FROM t1;
-f1
-0
-1
-SELECT * FROM t2;
-f2
-0
-connection default;
-SET DEBUG_SYNC = 'RESET';
-DROP TABLE t1, t2;
-connection con1;
-connection con2;
-connection con1;
-SET SESSION optimizer_search_depth=0;
-SET DEBUG_SYNC= 'before_join_optimize SIGNAL in_sync';
-PREPARE stmt FROM 'EXPLAIN SELECT * FROM t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16,t17,t18,t19,t20,t21,t22,t23,t24,t25,t26,t27,t28,t29,t30,t31,t32,t33,t34,t35,t36,t37,t38,t39,t40 WHERE a1=a2 AND a2=a3 AND a3=a4 AND a4=a5 AND a5=a6 AND a6=a7 AND a7=a8 AND a8=a9 AND a9=a10 AND a10=a11 AND a11=a12 AND a12=a13 AND a13=a14 AND a14=a15 AND a15=a16 AND a16=a17 AND a17=a18 AND a18=a19 AND a19=a20 AND a20=a21 AND a21=a22 AND a22=a23 AND a23=a24 AND a24=a25 AND a25=a26 AND a26=a27 AND a27=a28 AND a28=a29 AND a29=a30 AND a30=a31 AND a31=a32 AND a32=a33 AND a33=a34 AND a34=a35 AND a35=a36 AND a36=a37 AND a37=a38 AND a38=a39 AND a39=a40 ';
-EXECUTE stmt;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR in_sync';
-KILL QUERY @id;
-connection con1;
-ERROR 70100: Query execution was interrupted
-connection default;
-SET DEBUG_SYNC = 'RESET';
-#
-# Bug#19723: kill of active connection yields different error code
-# depending on platform.
-#
-connection con1;
-SET DEBUG_SYNC= 'thread_end SIGNAL con1_end';
-KILL @id;
-ERROR 70100: Connection was killed
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR con1_end';
-connection con1;
-# ER_SERVER_SHUTDOWN, CR_SERVER_GONE_ERROR, CR_SERVER_LOST,
-# depending on the timing of close of the connection socket
-SELECT 1;
-Got one of the listed errors
-SELECT 1;
-1
-1
-SELECT @id != CONNECTION_ID();
-@id != CONNECTION_ID()
-1
-connection default;
-SET DEBUG_SYNC = 'RESET';
-#
-# Additional test for WL#3726 "DDL locking for all metadata objects"
-# Check that DDL and DML statements waiting for metadata locks can
-# be killed. Note that we don't cover all situations here since it
-# can be tricky to write test case for some of them (e.g. REPAIR or
-# ALTER and other statements under LOCK TABLES).
-#
-drop tables if exists t1, t2, t3;
-create table t1 (i int primary key);
-connect blocker, localhost, root, , ;
-connect dml, localhost, root, , ;
-connect ddl, localhost, root, , ;
-# Test for RENAME TABLE
-connection blocker;
-lock table t1 read;
-connection ddl;
-rename table t1 to t2;
-connection default;
-kill query ID;
-connection ddl;
-ERROR 70100: Query execution was interrupted
-# Test for DROP TABLE
-drop table t1;
-connection default;
-kill query ID;
-connection ddl;
-ERROR 70100: Query execution was interrupted
-# Test for CREATE TRIGGER
-create trigger t1_bi before insert on t1 for each row set @a:=1;
-connection default;
-kill query ID;
-connection ddl;
-ERROR 70100: Query execution was interrupted
-#
-# Tests for various kinds of ALTER TABLE
-#
-# Full-blown ALTER which should copy table
-alter table t1 add column j int;
-connection default;
-kill query ID;
-connection ddl;
-ERROR 70100: Query execution was interrupted
-# Two kinds of simple ALTER
-alter table t1 rename to t2;
-connection default;
-kill query ID;
-connection ddl;
-ERROR 70100: Query execution was interrupted
-alter table t1 disable keys;
-connection default;
-kill query ID;
-connection ddl;
-ERROR 70100: Query execution was interrupted
-# Fast ALTER
-alter table t1 alter column i set default 100;
-connection default;
-kill query ID;
-connection ddl;
-ERROR 70100: Query execution was interrupted
-# Special case which is triggered only for MERGE tables.
-connection blocker;
-unlock tables;
-create table t2 (i int primary key) engine=merge union=(t1);
-lock tables t2 read;
-connection ddl;
-alter table t2 alter column i set default 100;
-connection default;
-kill query ID;
-connection ddl;
-ERROR 70100: Query execution was interrupted
-# Test for DML waiting for meta-data lock
-connection blocker;
-unlock tables;
-lock tables t1 read;
-connection ddl;
-truncate table t1;
-connection dml;
-insert into t1 values (1);
-connection default;
-kill query ID2;
-connection dml;
-ERROR 70100: Query execution was interrupted
-connection blocker;
-unlock tables;
-connection ddl;
-# Test for DML waiting for tables to be flushed
-connection blocker;
-lock tables t1 read;
-connection ddl;
-# Let us mark locked table t1 as old
-flush tables;
-connection dml;
-select * from t1;
-connection default;
-kill query ID2;
-connection dml;
-ERROR 70100: Query execution was interrupted
-connection blocker;
-unlock tables;
-connection ddl;
-# Cleanup.
-connection default;
-drop table t1;
-drop table t2;
-#
-# Test kill USER
-#
-grant ALL on test.* to test@localhost;
-grant ALL on test.* to test2@localhost;
-connect con3, localhost, test,,;
-connect con4, localhost, test2,,;
-connection default;
-kill hard query user test2@nohost;
-affected rows: 0
-kill soft query user test@localhost;
-affected rows: 1
-kill hard query user test@localhost;
-affected rows: 1
-kill soft connection user test2;
-affected rows: 1
-kill hard connection user test@localhost;
-affected rows: 1
-revoke all privileges on test.* from test@localhost;
-revoke all privileges on test.* from test2@localhost;
-drop user test@localhost;
-drop user test2@localhost;
-connection con3;
-select 1;
-Got one of the listed errors
-connection con4;
-select 1;
-Got one of the listed errors
-connection default;
-#
-# MDEV-4911 - add KILL query id, and add query id information to
-# processlist
-#
-SELECT SLEEP(1000);
-connection con1;
-KILL QUERY ID @id;
-connection default;
-SLEEP(1000)
-1
-KILL QUERY ID 0;
-ERROR HY000: Unknown query id: 0
-#
-# MDEV-5096 - Wrong error message on attempt to kill somebody else's
-# query ID
-#
-CREATE USER u1@localhost;
-SELECT SLEEP(1000);
-connection con1;
-connect con5, localhost, u1,,;
-KILL QUERY ID ID;
-ERROR HY000: You are not owner of query ID
-connection con1;
-KILL QUERY ID @id;
-connection default;
-SLEEP(1000)
-1
-disconnect con5;
-DROP USER u1@localhost;
-SET DEBUG_SYNC = 'RESET';
-DROP FUNCTION MY_KILL;
-set global sql_mode=default;
diff --git a/mysql-test/r/kill_processlist-6619.result b/mysql-test/r/kill_processlist-6619.result
deleted file mode 100644
index 7dd42790cc7..00000000000
--- a/mysql-test/r/kill_processlist-6619.result
+++ /dev/null
@@ -1,18 +0,0 @@
-connect con1,localhost,root,,;
-SHOW PROCESSLIST;
-Id User Host db Command Time State Info Progress
-# root # test Sleep # # NULL 0.000
-# root # test Query # # SHOW PROCESSLIST 0.000
-SET DEBUG_SYNC='before_execute_sql_command SIGNAL ready WAIT_FOR go';
-SHOW PROCESSLIST;
-connection default;
-SET DEBUG_SYNC='now WAIT_FOR ready';
-KILL QUERY con_id;
-SET DEBUG_SYNC='now SIGNAL go';
-connection con1;
-ERROR 70100: Query execution was interrupted
-SET DEBUG_SYNC='reset';
-SHOW PROCESSLIST;
-Id User Host db Command Time State Info Progress
-# root # test Sleep # # NULL 0.000
-# root # test Query # # SHOW PROCESSLIST 0.000
diff --git a/mysql-test/r/kill_query-6728.result b/mysql-test/r/kill_query-6728.result
deleted file mode 100644
index 6638edebeea..00000000000
--- a/mysql-test/r/kill_query-6728.result
+++ /dev/null
@@ -1,7 +0,0 @@
-connect con1,localhost,root,,;
-connection default;
-kill query id;
-connection con1;
-select count(*) > 0 from mysql.user;
-count(*) > 0
-1
diff --git a/mysql-test/r/last_value.result b/mysql-test/r/last_value.result
deleted file mode 100644
index 4849effca12..00000000000
--- a/mysql-test/r/last_value.result
+++ /dev/null
@@ -1,73 +0,0 @@
-drop table if exists t1;
-drop database if exists mysqltest;
-CREATE TABLE t1 (a INT, b INT, c INT, d INT);
-INSERT INTO t1 VALUES (1,3,0,NULL),(2,2,0,NULL),(3,4,0,NULL),(4,2,0,NULL);
-SELECT * FROM t1;
-a b c d
-1 3 0 NULL
-2 2 0 NULL
-3 4 0 NULL
-4 2 0 NULL
-UPDATE t1 SET c=LAST_VALUE(@last_a:=a,@last_b:=b,@last_c:=c,1), d=4211 WHERE c=0 ORDER BY b DESC LIMIT 1;
-SELECT @last_a, @last_b, @last_c;
-@last_a @last_b @last_c
-3 4 0
-SELECT * FROM t1;
-a b c d
-1 3 0 NULL
-2 2 0 NULL
-3 4 1 4211
-4 2 0 NULL
-DROP TABLE t1;
-SELECT LAST_VALUE(@last_a:=1,@last_b:=1);
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def LAST_VALUE(@last_a:=1,@last_b:=1) 3 1 1 N 32897 0 63
-LAST_VALUE(@last_a:=1,@last_b:=1)
-1
-select @last_b;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @last_b 8 20 1 Y 32896 0 63
-@last_b
-1
-SELECT LAST_VALUE(@last_a:=1,@last_b:=1.0);
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def LAST_VALUE(@last_a:=1,@last_b:=1.0) 246 4 3 N 32897 1 63
-LAST_VALUE(@last_a:=1,@last_b:=1.0)
-1.0
-select @last_b;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @last_b 246 83 3 Y 32896 38 63
-@last_b
-1.0
-SELECT LAST_VALUE(@last_a:=1,@last_b:="hello");
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def LAST_VALUE(@last_a:=1,@last_b:="hello") 253 5 5 N 1 39 8
-LAST_VALUE(@last_a:=1,@last_b:="hello")
-hello
-select @last_b;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @last_b 251 16777215 5 Y 0 39 8
-@last_b
-hello
-SELECT date(LAST_VALUE(@last_a:=1,@last_b:="2001-02-03"));
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def date(LAST_VALUE(@last_a:=1,@last_b:="2001-02-03")) 10 10 10 Y 128 0 63
-date(LAST_VALUE(@last_a:=1,@last_b:="2001-02-03"))
-2001-02-03
-select @last_b;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @last_b 251 16777215 10 Y 0 39 8
-@last_b
-2001-02-03
-SELECT LAST_VALUE(@last_a:=1,@last_b:="2001-02-03",NULL);
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def LAST_VALUE(@last_a:=1,@last_b:="2001-02-03",NULL) 6 0 0 Y 32896 0 63
-LAST_VALUE(@last_a:=1,@last_b:="2001-02-03",NULL)
-NULL
-select @last_b;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @last_b 251 16777215 10 Y 0 39 8
-@last_b
-2001-02-03
-SELECT LAST_VALUE();
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1
diff --git a/mysql-test/r/limit.result b/mysql-test/r/limit.result
deleted file mode 100644
index 064fa5a18a7..00000000000
--- a/mysql-test/r/limit.result
+++ /dev/null
@@ -1,148 +0,0 @@
-drop table if exists t1;
-create table t1 (a int not null default 0 primary key, b int not null default 0);
-insert into t1 () values ();
-insert into t1 values (1,1),(2,1),(3,1);
-update t1 set a=4 where b=1 limit 1;
-select * from t1;
-a b
-0 0
-4 1
-2 1
-3 1
-update t1 set b=2 where b=1 limit 2;
-select * from t1;
-a b
-0 0
-4 2
-2 2
-3 1
-update t1 set b=4 where b=1;
-select * from t1;
-a b
-0 0
-4 2
-2 2
-3 4
-delete from t1 where b=2 limit 1;
-select * from t1;
-a b
-0 0
-2 2
-3 4
-delete from t1 limit 1;
-select * from t1;
-a b
-2 2
-3 4
-drop table t1;
-create table t1 (i int);
-insert into t1 (i) values(1),(1),(1);
-delete from t1 limit 1;
-update t1 set i=2 limit 1;
-delete from t1 limit 0;
-update t1 set i=3 limit 0;
-select * from t1;
-i
-2
-1
-drop table t1;
-select 0 limit 0;
-0
-CREATE TABLE t1(id int auto_increment primary key, id2 int, index(id2));
-INSERT INTO t1 (id2) values (0),(0),(0);
-DELETE FROM t1 WHERE id=1;
-INSERT INTO t1 SET id2=0;
-SELECT * FROM t1;
-id id2
-4 0
-2 0
-3 0
-DELETE FROM t1 WHERE id2 = 0 ORDER BY id LIMIT 1;
-SELECT * FROM t1;
-id id2
-4 0
-3 0
-DELETE FROM t1 WHERE id2 = 0 ORDER BY id desc LIMIT 1;
-SELECT * FROM t1;
-id id2
-3 0
-DROP TABLE t1;
-create table t1 (a integer);
-insert into t1 values (1);
-select 1 as a from t1 union all select 1 from dual limit 1;
-a
-1
-(select 1 as a from t1) union all (select 1 from dual) limit 1;
-a
-1
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3),(4),(5),(6),(7);
-explain select count(*) c FROM t1 WHERE a > 0 ORDER BY c LIMIT 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7 Using where
-select count(*) c FROM t1 WHERE a > 0 ORDER BY c LIMIT 3;
-c
-7
-explain select sum(a) c FROM t1 WHERE a > 0 ORDER BY c LIMIT 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7 Using where
-select sum(a) c FROM t1 WHERE a > 0 ORDER BY c LIMIT 3;
-c
-28
-drop table t1;
-prepare s from "select 1 limit ?";
-set @a='qwe';
-execute s using @a;
-1
-set @a=-1;
-execute s using @a;
-ERROR HY000: Incorrect arguments to EXECUTE
-prepare s from "select 1 limit 1, ?";
-execute s using @a;
-ERROR HY000: Incorrect arguments to EXECUTE
-prepare s from "select 1 limit ?, ?";
-execute s using @a, @a;
-ERROR HY000: Incorrect arguments to EXECUTE
-set @a=14632475938453979136;
-execute s using @a, @a;
-1
-set @a=-14632475938453979136;
-execute s using @a, @a;
-ERROR HY000: Incorrect arguments to EXECUTE
-End of 5.0 tests
-select 1 as a limit 4294967296,10;
-a
-CREATE TABLE t1 (a int PRIMARY KEY auto_increment);
-INSERT INTO t1 VALUES (),(),(),(),(),(),(),(),(),();
-INSERT INTO t1 VALUES (),(),(),(),(),(),(),(),(),();
-SELECT a FROM t1 ORDER BY a LIMIT 10 OFFSET 1;
-a
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-SELECT a FROM t1 ORDER BY a LIMIT 10 OFFSET 10;
-a
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-SELECT a FROM t1 ORDER BY a LIMIT 2 OFFSET 14;
-a
-15
-16
-DROP TABLE t1;
-End of 5.1 tests
diff --git a/mysql-test/r/limit_rows_examined.result b/mysql-test/r/limit_rows_examined.result
deleted file mode 100644
index 7d1ca948c8b..00000000000
--- a/mysql-test/r/limit_rows_examined.result
+++ /dev/null
@@ -1,865 +0,0 @@
-call mtr.add_suppression("Sort aborted.*");
-set @save_join_cache_level = @@join_cache_level;
-create table t1 (c1 char(2));
-create table t2 (c2 char(2));
-insert into t1 values ('bb'), ('cc'), ('aa'), ('dd');
-insert into t2 values ('bb'), ('cc'), ('dd'), ('ff');
-create table t1i (c1 char(2) key);
-create table t2i (c2 char(2) key);
-insert into t1i values ('bb'), ('cc'), ('aa'), ('dd');
-insert into t2i values ('bb'), ('cc'), ('dd'), ('ff');
-=========================================================================
-Simple joins
-=========================================================================
-Simple nested loops join without blocking
-set @@join_cache_level=0;
-explain
-select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 Using where
-select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 2;
-c1 c2
-bb bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (2). The query result may be incomplete
-explain
-select * from t1i, t2i where c1 = c2 LIMIT ROWS EXAMINED 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1i index PRIMARY PRIMARY 2 NULL 4 Using index
-1 SIMPLE t2i eq_ref PRIMARY PRIMARY 2 test.t1i.c1 1 Using index
-select * from t1i, t2i where c1 = c2 LIMIT ROWS EXAMINED 4;
-c1 c2
-bb bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 5 rows, which exceeds LIMIT ROWS EXAMINED (4). The query result may be incomplete
-Blocked nested loops join, empty result set because of blocking
-set @@join_cache_level=1;
-explain
-select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 6;
-c1 c2
-bb bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 7 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete
-explain
-select * from t1i, t2i where c1 = c2 LIMIT ROWS EXAMINED 6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1i index PRIMARY PRIMARY 2 NULL 4 Using index
-1 SIMPLE t2i index PRIMARY PRIMARY 2 NULL 4 Using where; Using index; Using join buffer (flat, BNL join)
-select * from t1i, t2i where c1 = c2 LIMIT ROWS EXAMINED 6;
-c1 c2
-bb bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 7 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete
-set @@join_cache_level=6;
-explain
-select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 3 test.t1.c1 4 Using where; Using join buffer (flat, BNLH join)
-select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 3;
-c1 c2
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 4 rows, which exceeds LIMIT ROWS EXAMINED (3). The query result may be incomplete
-explain
-select * from t1i, t2i where c1 = c2 LIMIT ROWS EXAMINED 6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1i index PRIMARY PRIMARY 2 NULL 4 Using index
-1 SIMPLE t2i index PRIMARY PRIMARY 2 NULL 4 Using where; Using index; Using join buffer (flat, BNL join)
-select * from t1i, t2i where c1 = c2 LIMIT ROWS EXAMINED 6;
-c1 c2
-bb bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 7 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete
-Mix LIMIT ROWS EXAMINED with LIMIT
-set @@join_cache_level=0;
-explain
-select * from t1, t2 where c1 < c2 LIMIT 1 ROWS EXAMINED 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 Using where
-select * from t1, t2 where c1 < c2 LIMIT 1 ROWS EXAMINED 4;
-c1 c2
-bb cc
-explain
-select * from t1, t2 where c1 < c2 LIMIT 1,1 ROWS EXAMINED 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 Using where
-select * from t1, t2 where c1 < c2 LIMIT 1,1 ROWS EXAMINED 4;
-c1 c2
-bb dd
-Empty table optimized away during constant optimization
-create table t0 (c0 int);
-explain
-select * from t0 LIMIT ROWS EXAMINED 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 system NULL NULL NULL NULL 0 Const row not found
-explain
-select * from t0 LIMIT ROWS EXAMINED 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 system NULL NULL NULL NULL 0 Const row not found
-select * from t0 LIMIT ROWS EXAMINED 1;
-c0
-drop table t0;
-create table t0 (c0 char(2) primary key);
-insert into t0 values ('bb'), ('cc'), ('aa');
-explain
-select * from t0 where c0 = 'bb' LIMIT ROWS EXAMINED 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 const PRIMARY PRIMARY 2 const 1 Using index
-select * from t0 where c0 = 'bb' LIMIT ROWS EXAMINED 0;
-c0
-bb
-explain
-select * from t0, t1 where c0 = 'bb' and c1 > c0 LIMIT ROWS EXAMINED 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 const PRIMARY PRIMARY 2 const 1 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-select * from t0, t1 where c0 = 'bb' and c1 > c0 LIMIT ROWS EXAMINED 0;
-c0 c1
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 2 rows, which exceeds LIMIT ROWS EXAMINED (0). The query result may be incomplete
-set @@join_cache_level = @save_join_cache_level;
-drop table t0;
-=========================================================================
-LIMIT ROWS EXAMINED with parameter argument
-=========================================================================
-set @@join_cache_level=0;
-set @l = 2;
-Prepared statement parameter
-prepare st1 from "select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED ?";
-execute st1 using @l;
-c1 c2
-bb bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (2). The query result may be incomplete
-deallocate prepare st1;
-User variable (not supported for LIMIT in MariaDB 5.3/MySQL 5.1)
-select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED @l;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@l' at line 1
-Stored procedure parameter
-create procedure test_limit_rows(l int)
-begin
-select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED l;
-end|
-call test_limit_rows(3);
-c1 c2
-bb bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 4 rows, which exceeds LIMIT ROWS EXAMINED (3). The query result may be incomplete
-drop procedure test_limit_rows;
-set @@join_cache_level = @save_join_cache_level;
-=========================================================================
-UNIONs (with several LIMIT ROWS EXAMINED clauses)
-=========================================================================
-(select * from t1, t2 where c1 = c2)
-UNION
-(select * from t1, t2 where c1 < c2) LIMIT ROWS EXAMINED 6;
-c1 c2
-bb bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 8 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete
-(select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 0)
-UNION
-(select * from t1, t2 where c1 < c2 LIMIT ROWS EXAMINED 6);
-c1 c2
-bb bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 8 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete
-select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 0
-UNION
-select * from t1, t2 where c1 < c2 LIMIT ROWS EXAMINED 6;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION
-select * from t1, t2 where c1 < c2 LIMIT ROWS EXAMINED 6' at line 2
-(select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 0)
-UNION
-(select * from t1, t2 where c1 < c2 LIMIT ROWS EXAMINED 0)
-LIMIT ROWS EXAMINED 6;
-c1 c2
-bb bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 8 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete
-(select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 0)
-UNION
-(select * from t1, t2 where c1 < c2 LIMIT ROWS EXAMINED 0)
-LIMIT 1 ROWS EXAMINED 6;
-c1 c2
-bb bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 8 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete
-(select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 0)
-UNION
-(select * from t1, t2 where c1 < c2 LIMIT ROWS EXAMINED 0)
-LIMIT 2 ROWS EXAMINED 10;
-c1 c2
-bb bb
-cc cc
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (10). The query result may be incomplete
-=========================================================================
-Subqueries (with several LIMIT ROWS EXAMINED clauses)
-=========================================================================
-Subqueries, semi-join
-explain
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 11);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 2 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 4 Using where
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 11);
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (11). The query result may be incomplete
-explain
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ')
-LIMIT ROWS EXAMINED 11;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 2 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 4 Using where
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ')
-LIMIT ROWS EXAMINED 11;
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (11). The query result may be incomplete
-explain
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0)
-LIMIT ROWS EXAMINED 11;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 2 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 4 Using where
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0)
-LIMIT ROWS EXAMINED 11;
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (11). The query result may be incomplete
-explain
-select * from t1i
-where c1 IN (select * from t2i where c2 > ' ')
-LIMIT ROWS EXAMINED 6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1i index PRIMARY PRIMARY 2 NULL 4 Using where; Using index
-1 PRIMARY t2i index PRIMARY PRIMARY 2 NULL 4 Using where; Using index; Using join buffer (flat, BNL join)
-select * from t1i
-where c1 IN (select * from t2i where c2 > ' ')
-LIMIT ROWS EXAMINED 6;
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 7 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete
-Subqueries with IN-TO-EXISTS
-set @@optimizer_switch='semijoin=off,in_to_exists=on,materialization=off';
-explain
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 4 Using where
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 4);
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 5 rows, which exceeds LIMIT ROWS EXAMINED (4). The query result may be incomplete
-explain
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ')
-LIMIT ROWS EXAMINED 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 4 Using where
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ')
-LIMIT ROWS EXAMINED 4;
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 5 rows, which exceeds LIMIT ROWS EXAMINED (4). The query result may be incomplete
-explain
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0)
-LIMIT ROWS EXAMINED 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 4 Using where
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0)
-LIMIT ROWS EXAMINED 4;
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 5 rows, which exceeds LIMIT ROWS EXAMINED (4). The query result may be incomplete
-explain
-select * from t1i
-where c1 IN (select * from t2i where c2 > ' ')
-LIMIT ROWS EXAMINED 9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1i index NULL PRIMARY 2 NULL 4 Using where; Using index
-2 DEPENDENT SUBQUERY t2i unique_subquery PRIMARY PRIMARY 2 func 1 Using index; Using where
-select * from t1i
-where c1 IN (select * from t2i where c2 > ' ')
-LIMIT ROWS EXAMINED 9;
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (9). The query result may be incomplete
-Same as above, without subquery cache
-set @@optimizer_switch='subquery_cache=off';
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 2);
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (2). The query result may be incomplete
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ')
-LIMIT ROWS EXAMINED 2;
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (2). The query result may be incomplete
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0)
-LIMIT ROWS EXAMINED 2;
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (2). The query result may be incomplete
-select * from t1i
-where c1 IN (select * from t2i where c2 > ' ')
-LIMIT ROWS EXAMINED 5;
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 7 rows, which exceeds LIMIT ROWS EXAMINED (5). The query result may be incomplete
-Subqueries with materialization
-set @@optimizer_switch='semijoin=off,in_to_exists=off,materialization=on,subquery_cache=on';
-explain
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 13);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 4 Using where
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 13);
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 14 rows, which exceeds LIMIT ROWS EXAMINED (13). The query result may be incomplete
-explain
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ') LIMIT ROWS EXAMINED 13;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 4 Using where
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ') LIMIT ROWS EXAMINED 13;
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 14 rows, which exceeds LIMIT ROWS EXAMINED (13). The query result may be incomplete
-explain
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0)
-LIMIT ROWS EXAMINED 13;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 4 Using where
-select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0)
-LIMIT ROWS EXAMINED 13;
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 14 rows, which exceeds LIMIT ROWS EXAMINED (13). The query result may be incomplete
-explain
-select * from t1i
-where c1 IN (select * from t2i where c2 > ' ') LIMIT ROWS EXAMINED 17;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1i index NULL PRIMARY 2 NULL 4 Using where; Using index
-2 MATERIALIZED t2i index PRIMARY PRIMARY 2 NULL 4 Using where; Using index
-select * from t1i
-where c1 IN (select * from t2i where c2 > ' ') LIMIT ROWS EXAMINED 17;
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 18 rows, which exceeds LIMIT ROWS EXAMINED (17). The query result may be incomplete
-set @@optimizer_switch='default';
-=========================================================================
-Views and derived tables
-=========================================================================
-create view v1 as
-select * from t1 where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 13);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT ROWS EXAMINED inside views'
-create view v1 as
-select * from t1 where c1 IN (select * from t2 where c2 > ' ');
-select * from v1;
-c1
-bb
-cc
-dd
-select * from v1 LIMIT ROWS EXAMINED 17;
-c1
-bb
-cc
-dd
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 18 rows, which exceeds LIMIT ROWS EXAMINED (17). The query result may be incomplete
-select * from v1 LIMIT ROWS EXAMINED 16;
-c1
-bb
-cc
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 17 rows, which exceeds LIMIT ROWS EXAMINED (16). The query result may be incomplete
-select * from v1 LIMIT ROWS EXAMINED 11;
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (11). The query result may be incomplete
-drop view v1;
-explain
-select *
-from (select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0)) as tmp
-LIMIT ROWS EXAMINED 11;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 2 func 1
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 4 Using where
-select *
-from (select * from t1
-where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0)) as tmp
-LIMIT ROWS EXAMINED 11;
-c1
-bb
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (11). The query result may be incomplete
-=========================================================================
-Aggregation
-=========================================================================
-create table t3 (c1 char(2), c2 int);
-insert into t3 values
-('aa', 1), ('aa', 2),
-('bb', 3), ('bb', 4), ('bb', 5);
-explain
-select c1, sum(c2) from t3 group by c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 5 Using temporary; Using filesort
-select c1, sum(c2) from t3 group by c1;
-c1 sum(c2)
-aa 3
-bb 12
-explain
-select c1, sum(c2) from t3 group by c1 LIMIT ROWS EXAMINED 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 5 Using temporary; Using filesort
-select c1, sum(c2) from t3 group by c1 LIMIT ROWS EXAMINED 0;
-c1 sum(c2)
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 1 rows, which exceeds LIMIT ROWS EXAMINED (0). The query result may be incomplete
-select c1, sum(c2) from t3 group by c1 LIMIT ROWS EXAMINED 1;
-c1 sum(c2)
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (1). The query result may be incomplete
-select c1, sum(c2) from t3 group by c1 LIMIT ROWS EXAMINED 20;
-c1 sum(c2)
-aa 3
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 21 rows, which exceeds LIMIT ROWS EXAMINED (20). The query result may be incomplete
-select c1, sum(c2) from t3 group by c1 LIMIT ROWS EXAMINED 21;
-c1 sum(c2)
-aa 3
-bb 12
-create table t3i (c1 char(2), c2 int);
-create index it3i on t3i(c1);
-create index it3j on t3i(c2,c1);
-insert into t3i values
-('aa', 1), ('aa', 2),
-('bb', 3), ('bb', 4), ('bb', 5);
-explain
-select c1, sum(c2) from t3i group by c1 LIMIT ROWS EXAMINED 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3i index NULL it3j 8 NULL 5 Using index; Using temporary; Using filesort
-select c1, sum(c2) from t3i group by c1 LIMIT ROWS EXAMINED 0;
-c1 sum(c2)
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 1 rows, which exceeds LIMIT ROWS EXAMINED (0). The query result may be incomplete
-select c1, sum(c2) from t3i group by c1 LIMIT ROWS EXAMINED 1;
-c1 sum(c2)
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (1). The query result may be incomplete
-select c1, sum(c2) from t3i group by c1 LIMIT ROWS EXAMINED 20;
-c1 sum(c2)
-aa 3
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 21 rows, which exceeds LIMIT ROWS EXAMINED (20). The query result may be incomplete
-select c1, sum(c2) from t3i group by c1 LIMIT ROWS EXAMINED 21;
-c1 sum(c2)
-aa 3
-bb 12
-Aggregation without grouping
-explain
-select min(c2) from t3 LIMIT ROWS EXAMINED 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 5
-select min(c2) from t3 LIMIT ROWS EXAMINED 5;
-min(c2)
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 6 rows, which exceeds LIMIT ROWS EXAMINED (5). The query result may be incomplete
-select max(c2) from t3 LIMIT ROWS EXAMINED 6;
-max(c2)
-5
-select max(c2) from t3 LIMIT ROWS EXAMINED 0;
-max(c2)
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 1 rows, which exceeds LIMIT ROWS EXAMINED (0). The query result may be incomplete
-explain
-select max(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 5 Using where
-select max(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 5;
-max(c2)
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 6 rows, which exceeds LIMIT ROWS EXAMINED (5). The query result may be incomplete
-select max(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 6;
-max(c2)
-NULL
-select max(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 0;
-max(c2)
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 1 rows, which exceeds LIMIT ROWS EXAMINED (0). The query result may be incomplete
-explain
-select count(c2) from t3 LIMIT ROWS EXAMINED 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 5
-select count(c2) from t3 LIMIT ROWS EXAMINED 5;
-count(c2)
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 6 rows, which exceeds LIMIT ROWS EXAMINED (5). The query result may be incomplete
-select count(c2) from t3 LIMIT ROWS EXAMINED 6;
-count(c2)
-5
-select count(c2) from t3 LIMIT ROWS EXAMINED 0;
-count(c2)
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 1 rows, which exceeds LIMIT ROWS EXAMINED (0). The query result may be incomplete
-explain
-select count(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 5 Using where
-select count(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 5;
-count(c2)
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 6 rows, which exceeds LIMIT ROWS EXAMINED (5). The query result may be incomplete
-select count(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 6;
-count(c2)
-0
-explain
-select sum(c2) from t3 LIMIT ROWS EXAMINED 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 5
-select sum(c2) from t3 LIMIT ROWS EXAMINED 5;
-sum(c2)
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 6 rows, which exceeds LIMIT ROWS EXAMINED (5). The query result may be incomplete
-select sum(c2) from t3 LIMIT ROWS EXAMINED 6;
-sum(c2)
-15
-The query result is found during optimization, LIMIT ROWS EXAMINED has no effect.
-explain
-select max(c1) from t3i LIMIT ROWS EXAMINED 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select max(c1) from t3i LIMIT ROWS EXAMINED 0;
-max(c1)
-bb
-create table t3_empty like t3;
-explain
-select max(c1) from t3_empty LIMIT ROWS EXAMINED 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3_empty system NULL NULL NULL NULL 0 Const row not found
-select max(c1) from t3_empty LIMIT ROWS EXAMINED 0;
-max(c1)
-NULL
-drop table t3_empty;
-=========================================================================
-Sorting
-=========================================================================
-explain
-select c1, c2 from t3 order by c2, c1 LIMIT ROWS EXAMINED 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 5 Using filesort
-select c1, c2 from t3 order by c2, c1 LIMIT ROWS EXAMINED 2;
-ERROR HY000: Sort aborted:
-explain
-select c1, c2 from t3i order by c2, c1 LIMIT ROWS EXAMINED 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3i index NULL it3j 8 NULL 5 Using index
-select c1, c2 from t3i order by c2, c1 LIMIT ROWS EXAMINED 2;
-c1 c2
-aa 1
-aa 2
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (2). The query result may be incomplete
-explain
-select c1, c2 from t3i order by c2, c1 desc LIMIT ROWS EXAMINED 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3i index NULL it3j 8 NULL 5 Using index; Using filesort
-select c1, c2 from t3i order by c2, c1 desc LIMIT ROWS EXAMINED 2;
-ERROR HY000: Sort aborted:
-drop table t3,t3i;
-=========================================================================
-INSERT/DELETE/UPDATE
-=========================================================================
-INSERT ... SELECT
-CREATE TABLE t4 (a int);
-INSERT INTO t4 values (1), (2);
-INSERT IGNORE INTO t4 SELECT a + 2 FROM t4 LIMIT ROWS EXAMINED 0;
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 1 rows, which exceeds LIMIT ROWS EXAMINED (0). The query result may be incomplete
-select * from t4;
-a
-1
-2
-INSERT INTO t4 SELECT a + 2 FROM t4 LIMIT ROWS EXAMINED 6;
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 8 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete
-select * from t4;
-a
-1
-2
-3
-drop table t4;
-DELETE - LIMIT ROWS EXAMINED not supported
-CREATE TABLE t4 (a int);
-INSERT INTO t4 values (1), (2);
-DELETE FROM t4 WHERE t4.a > 0 LIMIT ROWS EXAMINED 0;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'EXAMINED 0' at line 1
-DELETE FROM t4 WHERE t4.a > 0 LIMIT 0 ROWS EXAMINED 0;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'EXAMINED 0' at line 1
-drop table t4;
-UPDATE - LIMIT ROWS EXAMINED not supported
-CREATE TABLE t4 (a int);
-INSERT INTO t4 values (1), (2);
-update t4 set a=a+10 LIMIT ROWS EXAMINED 0;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'EXAMINED 0' at line 1
-update t4 set a=a+10 LIMIT 0 ROWS EXAMINED 0;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'EXAMINED 0' at line 1
-drop table t4;
-drop table t1,t2,t1i,t2i;
-=========================================================================
-Test cases for bugs
-=========================================================================
-
-MDEV-115
-
-SET @@optimizer_switch='in_to_exists=on,outer_join_with_cache=on';
-CREATE TABLE t1 ( a VARCHAR(3) ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('USA'),('CAN');
-CREATE TABLE t2 ( b INT );
-INSERT INTO t2 VALUES (3899),(3914),(3888);
-CREATE TABLE t3 ( c VARCHAR(33), d INT );
-INSERT INTO t3 VALUES ('USASpanish',8),('USATagalog',0),('USAVietnamese',0);
-EXPLAIN
-SELECT DISTINCT a AS field1 FROM t1, t2
-WHERE EXISTS (SELECT c FROM t3 LEFT JOIN t2 ON b = d)
-HAVING field1 > 'aaa' LIMIT ROWS EXAMINED 20;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using temporary
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 3
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-SELECT DISTINCT a AS field1 FROM t1, t2
-WHERE EXISTS (SELECT c FROM t3 LEFT JOIN t2 ON b = d)
-HAVING field1 > 'aaa' LIMIT ROWS EXAMINED 20;
-field1
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 21 rows, which exceeds LIMIT ROWS EXAMINED (20). The query result may be incomplete
-EXPLAIN
-SELECT DISTINCT a FROM t1, t2 HAVING a > ' ' LIMIT ROWS EXAMINED 14;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using temporary
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-SELECT DISTINCT a FROM t1, t2 HAVING a > ' ' LIMIT ROWS EXAMINED 14;
-a
-USA
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 15 rows, which exceeds LIMIT ROWS EXAMINED (14). The query result may be incomplete
-SELECT DISTINCT a FROM t1, t2 HAVING a > ' ' LIMIT ROWS EXAMINED 15;
-a
-USA
-CAN
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 16 rows, which exceeds LIMIT ROWS EXAMINED (15). The query result may be incomplete
-SELECT DISTINCT a FROM t1, t2 HAVING a > ' ' LIMIT ROWS EXAMINED 16;
-a
-USA
-CAN
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 17 rows, which exceeds LIMIT ROWS EXAMINED (16). The query result may be incomplete
-drop table t1,t2,t3;
-set @@optimizer_switch='default';
-
-MDEV-153
-
-CREATE TABLE t1 ( a TIME, b DATETIME, KEY(a), KEY(b) ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-('21:22:34.025509', '2002-02-13 17:30:06.013935'),
-('10:50:38.059966', '2008-09-27 00:34:58.026613'),
-('00:21:38.058143', '2007-05-28 00:00:00');
-CREATE TABLE t2 ( c INT, d TIME, e DATETIME, f VARCHAR(1), KEY(c) ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-(0, '11:03:22.062907', '2007-06-02 11:16:01.053212', 'a'),
-(0, '08:14:05.001407', '1900-01-01 00:00:00', 'm'),
-(5, '19:03:16.024974', '1900-01-01 00:00:00', 'f'),
-(1, '07:23:34.034234', '2000-11-26 05:01:11.054228', 'z'),
-(6, '12:29:32.019411', '2006-02-13 00:00:00', 'f'),
-(6, '06:07:10.010496', '2007-06-08 04:35:26.020373', 'a'),
-(7, '22:55:09.020772', '2005-04-27 00:00:00', 'i');
-EXPLAIN
-SELECT a AS field1, alias2.d AS field2, alias2.f AS field3, alias2.e AS field4, b AS field5
-FROM t1, t2 AS alias2, t2 AS alias3
-WHERE alias3.c IN ( SELECT 1 UNION SELECT 6 )
-GROUP BY field1, field2, field3, field4, field5
-LIMIT ROWS EXAMINED 120;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 7 Using join buffer (flat, BNL join)
-1 PRIMARY alias3 index NULL c 5 NULL 7 Using where; Using index; Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-FLUSH STATUS;
-SELECT a AS field1, alias2.d AS field2, alias2.f AS field3, alias2.e AS field4, b AS field5
-FROM t1, t2 AS alias2, t2 AS alias3
-WHERE alias3.c IN ( SELECT 1 UNION SELECT 6 )
-GROUP BY field1, field2, field3, field4, field5
-LIMIT ROWS EXAMINED 120;
-field1 field2 field3 field4 field5
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 121 rows, which exceeds LIMIT ROWS EXAMINED (120). The query result may be incomplete
-SHOW STATUS LIKE 'Handler_read%';
-Variable_name Value
-Handler_read_first 1
-Handler_read_key 4
-Handler_read_last 0
-Handler_read_next 4
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 46
-SHOW STATUS LIKE 'Handler_tmp%';
-Variable_name Value
-Handler_tmp_delete 0
-Handler_tmp_update 0
-Handler_tmp_write 66
-FLUSH STATUS;
-SELECT a AS field1, alias2.d AS field2, alias2.f AS field3, alias2.e AS field4, b AS field5
-FROM t1, t2 AS alias2, t2 AS alias3
-WHERE alias3.c IN ( SELECT 1 UNION SELECT 6 )
-GROUP BY field1, field2, field3, field4, field5
-LIMIT ROWS EXAMINED 124;
-field1 field2 field3 field4 field5
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 125 rows, which exceeds LIMIT ROWS EXAMINED (124). The query result may be incomplete
-Warning 1931 Query execution was interrupted. The query examined at least 127 rows, which exceeds LIMIT ROWS EXAMINED (124). The query result may be incomplete
-SHOW STATUS LIKE 'Handler_read%';
-Variable_name Value
-Handler_read_first 1
-Handler_read_key 4
-Handler_read_last 0
-Handler_read_next 4
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 48
-SHOW STATUS LIKE 'Handler_tmp%';
-Variable_name Value
-Handler_tmp_delete 0
-Handler_tmp_update 0
-Handler_tmp_write 70
-drop table t1, t2;
-
-MDEV-161 LIMIT_ROWS EXAMINED: query with the limit and NOT EXISTS, without GROUP BY or aggregate,
-returns rows, while the same query without the limit returns empty set
-
-CREATE TABLE t1 ( a INT, b INT );
-INSERT INTO t1 VALUES (3911,17),(3847,33),(3857,26);
-CREATE TABLE t2 ( c VARCHAR(16) );
-INSERT INTO t2 VALUES ('English'),('French'),('German');
-CREATE TABLE t3 ( d INT, e VARCHAR(32) );
-INSERT INTO t3 VALUES (3813,'United States'),(3814,'United States');
-SELECT * FROM t1 AS alias1, t2 AS alias2
-WHERE NOT EXISTS (
-SELECT * FROM t1 LEFT OUTER JOIN t3
-ON (d = a)
-WHERE b <= alias1.b OR e != alias2.c
-);
-a b c
-SELECT * FROM t1 AS alias1, t2 AS alias2
-WHERE NOT EXISTS (
-SELECT * FROM t1 LEFT OUTER JOIN t3
-ON (d = a)
-WHERE b <= alias1.b OR e != alias2.c
-) LIMIT ROWS EXAMINED 20;
-a b c
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 25 rows, which exceeds LIMIT ROWS EXAMINED (20). The query result may be incomplete
-drop table t1, t2, t3;
-
-MDEV-174: LIMIT ROWS EXAMINED: Assertion `0' failed in net_end_statement(THD*)
-with subquery in SELECT, constant table, aggregate function
-
-CREATE TABLE t1 ( a INT );
-CREATE TABLE t2 ( b INT, c INT, KEY(c) );
-INSERT INTO t2 VALUES
-(5, 0),(3, 4),(6, 1),
-(5, 8),(4, 9),(8, 1);
-SELECT (SELECT MAX(c) FROM t1, t2)
-FROM t2
-WHERE c = (SELECT MAX(b) FROM t2)
-LIMIT ROWS EXAMINED 3;
-(SELECT MAX(c) FROM t1, t2)
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 10 rows, which exceeds LIMIT ROWS EXAMINED (3). The query result may be incomplete
-drop table t1, t2;
-
-MDEV-178: LIMIT ROWS EXAMINED: Assertion `0' failed in net_end_statement(THD*) on the
-2nd PS execution, with DISTINCT, FROM subquery or view in SELECT, JOIN in nested subquery
-
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (2),(3),(150);
-CREATE TABLE t2 ( b INT );
-INSERT INTO t2 VALUES (2),(17),(3),(6);
-CREATE VIEW v AS
-SELECT DISTINCT * FROM t1 WHERE a > (SELECT COUNT(*) FROM t1, t2 WHERE a = b);
-PREPARE ps FROM 'SELECT * FROM v LIMIT ROWS EXAMINED 21';
-EXECUTE ps;
-a
-3
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 22 rows, which exceeds LIMIT ROWS EXAMINED (21). The query result may be incomplete
-EXECUTE ps;
-a
-3
-Warnings:
-Warning 1931 Query execution was interrupted. The query examined at least 22 rows, which exceeds LIMIT ROWS EXAMINED (21). The query result may be incomplete
-drop view v;
-drop table t1, t2;
diff --git a/mysql-test/r/loaddata.result b/mysql-test/r/loaddata.result
deleted file mode 100644
index 98b8f2de4a5..00000000000
--- a/mysql-test/r/loaddata.result
+++ /dev/null
@@ -1,637 +0,0 @@
-drop table if exists t1, t2;
-create table t1 (a date, b date, c date not null, d date);
-load data infile '../../std_data/loaddata1.dat' ignore into table t1 fields terminated by ',';
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-Warning 1265 Data truncated for column 'c' at row 1
-Warning 1265 Data truncated for column 'd' at row 1
-Warning 1265 Data truncated for column 'a' at row 2
-Warning 1265 Data truncated for column 'b' at row 2
-Warning 1265 Data truncated for column 'd' at row 2
-load data infile '../../std_data/loaddata1.dat' into table t1 fields terminated by ',' IGNORE 2 LINES;
-SELECT * from t1;
-a b c d
-0000-00-00 NULL 0000-00-00 0000-00-00
-0000-00-00 0000-00-00 0000-00-00 0000-00-00
-2003-03-03 2003-03-03 2003-03-03 NULL
-2003-03-03 2003-03-03 2003-03-03 NULL
-truncate table t1;
-load data infile '../../std_data/loaddata1.dat' ignore into table t1 fields terminated by ',' LINES STARTING BY ',' (b,c,d);
-Warnings:
-Warning 1265 Data truncated for column 'c' at row 1
-Warning 1265 Data truncated for column 'd' at row 1
-Warning 1265 Data truncated for column 'b' at row 2
-Warning 1265 Data truncated for column 'd' at row 2
-SELECT * from t1;
-a b c d
-NULL NULL 0000-00-00 0000-00-00
-NULL 0000-00-00 0000-00-00 0000-00-00
-NULL 2003-03-03 2003-03-03 NULL
-drop table t1;
-create table t1 (a text, b text);
-load data infile '../../std_data/loaddata2.dat' into table t1 fields terminated by ',' enclosed by '''';
-Warnings:
-Warning 1261 Row 3 doesn't contain data for all columns
-select concat('|',a,'|'), concat('|',b,'|') from t1;
-concat('|',a,'|') concat('|',b,'|')
-|Field A| |Field B|
-|Field 1| |Field 2'
-Field 3,'Field 4|
-|Field 5' ,'Field 6| NULL
-|Field 6| | 'Field 7'|
-drop table t1;
-create table t1 (a int, b char(10));
-load data infile '../../std_data/loaddata3.dat' into table t1 fields terminated by '' enclosed by '' ignore 1 lines;
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-Note 1265 Data truncated for column 'a' at row 2
-Warning 1366 Incorrect integer value: 'error ' for column 'a' at row 3
-Warning 1262 Row 3 was truncated; it contained more data than there were input columns
-Note 1265 Data truncated for column 'a' at row 4
-Warning 1366 Incorrect integer value: 'wrong end ' for column 'a' at row 5
-Warning 1262 Row 5 was truncated; it contained more data than there were input columns
-select * from t1;
-a b
-1 row 1
-2 row 2
-0 1234567890
-3 row 3
-0 1234567890
-truncate table t1;
-load data infile '../../std_data/loaddata4.dat' into table t1 fields terminated by '' enclosed by '' lines terminated by '' ignore 1 lines;
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-Note 1265 Data truncated for column 'a' at row 2
-Note 1265 Data truncated for column 'a' at row 3
-Warning 1366 Incorrect integer value: '
-' for column 'a' at row 4
-Warning 1261 Row 4 doesn't contain data for all columns
-select * from t1;
-a b
-1 row 1
-2 row 2
-3 row 3
-0
-drop table t1;
-SET @OLD_SQL_MODE=@@SQL_MODE, @@SQL_MODE=NO_AUTO_VALUE_ON_ZERO;
-create table t1(id integer not null auto_increment primary key);
-insert into t1 values(0);
-select * from t1;
-id
-0
-Warnings:
-Note 1265 Data truncated for column 'id' at row 1
-select * from t1;
-id
-0
-SET @@SQL_MODE=@OLD_SQL_MODE;
-drop table t1;
-create table t1 (a varchar(20), b varchar(20));
-load data infile '../../std_data/loaddata_dq.dat' into table t1 fields terminated by ',' enclosed by '"' escaped by '"' (a,b);
-select * from t1;
-a b
-field1 field2
-a"b cd"ef
-a"b c"d"e
-drop table t1;
-CREATE TABLE t1 (
-id INT AUTO_INCREMENT PRIMARY KEY,
-c1 VARCHAR(255)
-);
-CREATE TABLE t2 (
-id INT,
-c2 VARCHAR(255)
-);
-INSERT INTO t1 (c1) VALUES
-('r'), ('rr'), ('rrr'), ('rrrr'),
-('.r'), ('.rr'), ('.rrr'), ('.rrrr'),
-('r.'), ('rr.'), ('rrr.'), ('rrrr.'),
-('.r.'), ('.rr.'), ('.rrr.'), ('.rrrr.');
-SELECT * FROM t1;
-id c1
-1 r
-2 rr
-3 rrr
-4 rrrr
-5 .r
-6 .rr
-7 .rrr
-8 .rrrr
-9 r.
-10 rr.
-11 rrr.
-12 rrrr.
-13 .r.
-14 .rr.
-15 .rrr.
-16 .rrrr.
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1' FIELDS ENCLOSED BY 'r' FROM t1;
-r1r rrrr
-r2r rrrrrr
-r3r rrrrrrrr
-r4r rrrrrrrrrr
-r5r r.rrr
-r6r r.rrrrr
-r7r r.rrrrrrr
-r8r r.rrrrrrrrr
-r9r rrr.r
-r10r rrrrr.r
-r11r rrrrrrr.r
-r12r rrrrrrrrr.r
-r13r r.rr.r
-r14r r.rrrr.r
-r15r r.rrrrrr.r
-r16r r.rrrrrrrr.r
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1' INTO TABLE t2 FIELDS ENCLOSED BY 'r';
-SELECT t1.id, c1, c2 FROM t1 LEFT JOIN t2 ON t1.id=t2.id WHERE c1 != c2;
-id c1 c2
-SELECT t1.id, c1, c2 FROM t1 RIGHT JOIN t2 ON t1.id=t2.id WHERE c1 != c2;
-id c1 c2
-DROP TABLE t1,t2;
-create table t1 (a int default 100, b int, c varchar(60));
-load data infile '../../std_data/rpl_loaddata.dat' into table t1 (a, @b) set b=@b+10, c=concat("b=",@b);
-select * from t1;
-a b c
-NULL 20 b=10
-NULL 25 b=15
-truncate table t1;
-load data infile '../../std_data/rpl_loaddata.dat' into table t1 (a, @b) set c= if(a is null,"oops",a);
-select * from t1;
-a b c
-NULL NULL oops
-NULL NULL oops
-truncate table t1;
-set @c:=123;
-load data infile '../../std_data/rpl_loaddata.dat' into table t1 (@a, b) set c= if(@a is null,@c,b);
-select * from t1;
-a b c
-100 10 123
-100 15 123
-load data infile '../../std_data/rpl_loaddata.dat' into table t1 (@a, @b);
-select * from t1;
-a b c
-100 10 123
-100 15 123
-100 NULL NULL
-100 NULL NULL
-select @a, @b;
-@a @b
-NULL 15
-truncate table t1;
-load data infile '../../std_data/rpl_loaddata.dat' ignore into table t1 set c=b;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 2 doesn't contain data for all columns
-select * from t1;
-a b c
-NULL 10 10
-NULL 15 15
-truncate table t1;
-load data infile '../../std_data/loaddata5.dat' into table t1 fields terminated by '' enclosed by '' (a, b) set c="Wow";
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-Note 1265 Data truncated for column 'b' at row 1
-Note 1265 Data truncated for column 'a' at row 2
-Note 1265 Data truncated for column 'b' at row 2
-Note 1265 Data truncated for column 'a' at row 3
-Note 1265 Data truncated for column 'b' at row 3
-select * from t1;
-a b c
-1 2 Wow
-3 4 Wow
-5 6 Wow
-truncate table t1;
-load data infile '../../std_data/loaddata5.dat' into table t1 fields terminated by '' enclosed by '' (a, b) set c=concat(a,"+",b,"+",@c,"+",b,"+",if(c is null,"NIL",c));
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-Note 1265 Data truncated for column 'b' at row 1
-Note 1265 Data truncated for column 'a' at row 2
-Note 1265 Data truncated for column 'b' at row 2
-Note 1265 Data truncated for column 'a' at row 3
-Note 1265 Data truncated for column 'b' at row 3
-select * from t1;
-a b c
-1 2 1+2+123+2+NIL
-3 4 3+4+123+4+NIL
-5 6 5+6+123+6+NIL
-load data infile '../../std_data/loaddata5.dat' into table t1 fields terminated by '' enclosed by '' (a, @b);
-ERROR HY000: Can't load value from file with fixed size rows to variable
-create table t2 (num int primary key, str varchar(10));
-insert into t2 values (10,'Ten'), (15,'Fifteen');
-truncate table t1;
-load data infile '../../std_data/rpl_loaddata.dat' into table t1 (@dummy,@n) set a= @n, c= (select str from t2 where num=@n);
-select * from t1;
-a b c
-10 NULL Ten
-15 NULL Fifteen
-set @@secure_file_priv= 0;
-ERROR HY000: Variable 'secure_file_priv' is a read only variable
-truncate table t1;
-load data infile 'MYSQL_TEST_DIR/t/loaddata.test' into table t1;
-Got one of the listed errors
-select * from t1;
-a b c
-select load_file("MYSQL_TEST_DIR/t/loaddata.test");
-load_file("MYSQL_TEST_DIR/t/loaddata.test")
-NULL
-drop table t1, t2;
-create table t1(f1 int);
-insert into t1 values(1),(null);
-create table t2(f2 int auto_increment primary key);
-select * from t2;
-f2
-1
-2
-SET @@SQL_MODE=@OLD_SQL_MODE;
-drop table t1,t2;
-create table t1(f1 int, f2 timestamp not null default current_timestamp);
-create table t2(f1 int);
-insert into t2 values(1),(2);
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-Warning 1261 Row 2 doesn't contain data for all columns
-select f1 from t1 where f2 <> '0000-00-00 00:00:00' order by f1;
-f1
-1
-2
-delete from t1;
-Warnings:
-Note 1265 Data truncated for column 'f1' at row 1
-Warning 1261 Row 1 doesn't contain data for all columns
-Note 1265 Data truncated for column 'f1' at row 2
-Warning 1261 Row 2 doesn't contain data for all columns
-select f1 from t1 where f2 <> '0000-00-00 00:00:00' order by f1;
-f1
-1
-2
-drop table t1,t2;
-CREATE TABLE t1 (c1 INT, c2 TIMESTAMP, c3 REAL, c4 DOUBLE);
-INSERT INTO t1 (c1, c2, c3, c4) VALUES (10, '1970-02-01 01:02:03', 1.1E-100, 1.1E+100);
-SELECT * FROM t1;
-c1 c2 c3 c4
-10 1970-02-01 01:02:03 1.1e-100 1.1e100
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1' FIELDS ENCLOSED BY '-' FROM t1;
--10- -1970\-02\-01 01:02:03- -1.1e\-100- -1.1e100-
-EOF
-TRUNCATE t1;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1' INTO TABLE t1 FIELDS ENCLOSED BY '-';
-SELECT * FROM t1;
-c1 c2 c3 c4
-10 1970-02-01 01:02:03 1.1e-100 1.1e100
-DROP TABLE t1;
-
-# --
-# -- Bug#35469: server crash with LOAD DATA INFILE to a VIEW.
-# --
-
-DROP TABLE IF EXISTS t1;
-DROP VIEW IF EXISTS v1;
-DROP VIEW IF EXISTS v2;
-DROP VIEW IF EXISTS v3;
-
-CREATE TABLE t1(c1 INT, c2 VARCHAR(255));
-
-CREATE VIEW v1 AS SELECT * FROM t1;
-CREATE VIEW v2 AS SELECT 1 + 2 AS c0, c1, c2 FROM t1;
-CREATE VIEW v3 AS SELECT 1 AS d1, 2 AS d2;
-
-LOAD DATA INFILE '../../std_data/bug35469.dat' INTO TABLE v1
-FIELDS ESCAPED BY '\\'
- TERMINATED BY ','
- ENCLOSED BY '"'
- LINES TERMINATED BY '\n' (c1, c2);
-
-SELECT * FROM t1;
-c1 c2
-1 "string1"
-2 "string2"
-3 "string3"
-
-SELECT * FROM v1;
-c1 c2
-1 "string1"
-2 "string2"
-3 "string3"
-
-DELETE FROM t1;
-
-LOAD DATA INFILE '../../std_data/bug35469.dat' INTO TABLE v2
-FIELDS ESCAPED BY '\\'
- TERMINATED BY ','
- ENCLOSED BY '"'
- LINES TERMINATED BY '\n' (c1, c2);
-
-SELECT * FROM t1;
-c1 c2
-1 "string1"
-2 "string2"
-3 "string3"
-
-SELECT * FROM v2;
-c0 c1 c2
-3 1 "string1"
-3 2 "string2"
-3 3 "string3"
-
-DELETE FROM t1;
-
-LOAD DATA INFILE '../../std_data/bug35469.dat' INTO TABLE v2
-FIELDS ESCAPED BY '\\'
- TERMINATED BY ','
- ENCLOSED BY '"'
- LINES TERMINATED BY '\n' (c0, c2);
-ERROR HY000: Column 'c0' is not updatable
-
-LOAD DATA INFILE '../../std_data/bug35469.dat' INTO TABLE v3
-FIELDS ESCAPED BY '\\'
- TERMINATED BY ','
- ENCLOSED BY '"'
- LINES TERMINATED BY '\n' (d1, d2);
-ERROR HY000: The target table v3 of the LOAD is not updatable
-
-DROP TABLE t1;
-DROP VIEW v1;
-DROP VIEW v2;
-DROP VIEW v3;
-
-# -- End of Bug#35469.
-Bug#37114
-SET SESSION character_set_client=latin1;
-SET SESSION character_set_server=latin1;
-SET SESSION character_set_connection=latin1;
-SET @OLD_SQL_MODE=@@SESSION.SQL_MODE;
-test LOAD DATA INFILE
-SET sql_mode = '';
-SELECT '1 \\aa\n' INTO DUMPFILE 'MYSQLTEST_VARDIR/tmp/bug37114.txt';
-CREATE TABLE t1 (id INT, val1 CHAR(3)) ENGINE=MyISAM;
-SET sql_mode = 'NO_BACKSLASH_ESCAPES';
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug37114.txt' REPLACE INTO TABLE t1 FIELDS TERMINATED BY ' ';
-SELECT * FROM t1;
-id val1
-1 \aa
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug37114_out.txt' FIELDS ESCAPED BY '' TERMINATED BY ' ' FROM t1;
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug37114_out.txt' FIELDS TERMINATED BY ' ' FROM t1;
-INSERT INTO t1 (id, val1) VALUES (1, '\aa');
-SELECT * FROM t1;
-id val1
-1 \aa
-1 \aa
-SET sql_mode='';
-INSERT INTO t1 (id, val1) VALUES (1, '\aa');
-SELECT * FROM t1;
-id val1
-1 \aa
-1 \aa
-1 aa
-DROP TABLE t1;
-test SELECT INTO OUTFILE
-CREATE TABLE t1 (id INT PRIMARY KEY, val1 CHAR(4));
-CREATE TABLE t2 LIKE t1;
-SET sql_mode = '';
-INSERT INTO t1 (id, val1) VALUES (5, '\ttab');
-INSERT INTO t1 (id, val1) VALUES (4, '\\r');
-SET sql_mode = 'NO_BACKSLASH_ESCAPES';
-INSERT INTO t1 (id, val1) VALUES (3, '\tx');
-1.1 NO_BACKSLASH_ESCAPES, use defaults for ESCAPED BY
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug37114.txt' FIELDS TERMINATED BY ' ' FROM t1 ORDER BY id;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug37114.txt' INTO TABLE t2 FIELDS TERMINATED BY ' ';
-SELECT 'before' AS t, id, val1, hex(val1) FROM t1 UNION
-SELECT 'after' AS t, id, val1, hex(val1) FROM t2 ORDER BY id,t DESC;
-t id val1 hex(val1)
-before 3 \tx 5C7478
-after 3 \tx 5C7478
-before 4 \r 5C72
-after 4 \r 5C72
-before 5 tab 09746162
-after 5 tab 09746162
-TRUNCATE t2;
-SELECT LOAD_FILE("MYSQLTEST_VARDIR/tmp/bug37114.txt");
-LOAD_FILE("MYSQLTEST_VARDIR/tmp/bug37114.txt")
-3 \tx
-4 \r
-5 tab
-
-1.2 NO_BACKSLASH_ESCAPES, override defaults for ESCAPED BY
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug37114.txt' FIELDS ESCAPED BY '\' TERMINATED BY ' ' FROM t1 ORDER BY id;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug37114.txt' INTO TABLE t2 FIELDS ESCAPED BY '\' TERMINATED BY ' ';
-SELECT 'before' AS t, id, val1, hex(val1) FROM t1 UNION
-SELECT 'after' AS t, id, val1, hex(val1) FROM t2 ORDER BY id,t DESC;
-t id val1 hex(val1)
-before 3 \tx 5C7478
-after 3 \tx 5C7478
-before 4 \r 5C72
-after 4 \r 5C72
-before 5 tab 09746162
-after 5 tab 09746162
-TRUNCATE t2;
-SELECT LOAD_FILE("MYSQLTEST_VARDIR/tmp/bug37114.txt");
-LOAD_FILE("MYSQLTEST_VARDIR/tmp/bug37114.txt")
-3 \\tx
-4 \\r
-5 tab
-
-SET sql_mode = '';
-2.1 !NO_BACKSLASH_ESCAPES, use defaults for ESCAPED BY
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug37114.txt' FIELDS TERMINATED BY ' ' FROM t1 ORDER BY id;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug37114.txt' INTO TABLE t2 FIELDS TERMINATED BY ' ';
-SELECT 'before' AS t, id, val1, hex(val1) FROM t1 UNION
-SELECT 'after' AS t, id, val1, hex(val1) FROM t2 ORDER BY id,t DESC;
-t id val1 hex(val1)
-before 3 \tx 5C7478
-after 3 \tx 5C7478
-before 4 \r 5C72
-after 4 \r 5C72
-before 5 tab 09746162
-after 5 tab 09746162
-TRUNCATE t2;
-SET sql_mode = 'NO_BACKSLASH_ESCAPES';
-SELECT LOAD_FILE("MYSQLTEST_VARDIR/tmp/bug37114.txt");
-LOAD_FILE("MYSQLTEST_VARDIR/tmp/bug37114.txt")
-3 \\tx
-4 \\r
-5 tab
-
-SET sql_mode = '';
-2.2 !NO_BACKSLASH_ESCAPES, override defaults for ESCAPED BY
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug37114.txt' FIELDS ESCAPED BY '' TERMINATED BY ' ' FROM t1 ORDER BY id;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug37114.txt' INTO TABLE t2 FIELDS ESCAPED BY '' TERMINATED BY ' ';
-SELECT 'before' AS t, id, val1, hex(val1) FROM t1 UNION
-SELECT 'after' AS t, id, val1, hex(val1) FROM t2 ORDER BY id,t DESC;
-t id val1 hex(val1)
-before 3 \tx 5C7478
-after 3 \tx 5C7478
-before 4 \r 5C72
-after 4 \r 5C72
-before 5 tab 09746162
-after 5 tab 09746162
-TRUNCATE t2;
-SET sql_mode = 'NO_BACKSLASH_ESCAPES';
-SELECT LOAD_FILE("MYSQLTEST_VARDIR/tmp/bug37114.txt");
-LOAD_FILE("MYSQLTEST_VARDIR/tmp/bug37114.txt")
-3 \tx
-4 \r
-5 tab
-
-set session sql_mode=@OLD_SQL_MODE;
-DROP TABLE t1,t2;
-#
-# Bug #51893: crash with certain characters given to load_file
-# function on windows
-#
-select load_file(0x0A9FB76C661B409C4BEC88098C5DD71B1072F9691F2E827D7EC8F092B299868A3CE196C04F0FB18CAB4E1557EB72331D812379DE7A75CA21C32E7C722C59E5CC33EF262EF04187B0F0EE756FA984DF2EAD37B1E4ADB064C3C5038F2E3B2D661B1C1150AAEB5425512E14D7506166D92D4533872E662F4B2D1428AAB5CCA72E75AA2EF325E196A5A02E2E8278873C64375845994B0F39BE2FF7B478332A7B0AA5E48877C47B6F513E997848AF8CCB8A899F3393AB35333CF0871E36698193862D486B4B9078B70C0A0A507B8A250F3F876F5A067632D5E65193E4445A1EC3A2C9B4C6F07AC334F0F62BC33357CB502E9B1C19D2398B6972AEC2EF21630F8C9134C4F7DD662D8AD7BDC9E19C46720F334B66C22D4BF32ED275144E20E7669FFCF6FC143667C9F02A577F32960FA9F2371BE1FA90E49CBC69C01531F140556854D588DD0E55E1307D78CA38E975CD999F9AEA604266329EE62BFB5ADDA67F549E211ECFBA906C60063696352ABB82AA782D25B17E872EA587871F450446DB1BAE0123D20404A8F2D2698B371002E986C8FCB969A99FF0E150A2709E2ED7633D02ADA87D5B3C9487D27B2BD9D21E2EC3215DCC3CDCD884371281B95A2E9987AAF82EB499C058D9C3E7DC1B66635F60DB121C72F929622DD47B6B2E69F59FF2AE6B63CC2EC60FFBA20EA50569DBAB5DAEFAEB4F03966C9637AB55662EDD28439155A82D053A5299448EDB2E7BEB0F62889E2F84E6C7F34B3212C9AAC32D521D5AB8480993F1906D5450FAB342A0FA6ED223E178BAC036B81E15783604C32A961EA1EF20BE2EBB93D34ED37BC03142B7583303E4557E48551E4BD7CBDDEA146D5485A5D212C35189F0BD6497E66912D2780A59A53B532E12C0A5ED1EC0445D96E8F2DD825221CFE4A65A87AA21DC8750481B9849DD81694C3357A0ED9B78D608D8EDDE28FAFBEC17844DE5709F41E121838DB55639D77E32A259A416D7013B2EB1259FDE1B498CBB9CAEE1D601DF3C915EA91C69B44E6B72062F5F4B3C73F06F2D5AD185E1692E2E0A01E7DD5133693681C52EE13B2BE42D03BDCF48E4E133CF06662339B778E1C3034F9939A433E157449172F7969ACCE1F5D2F65A4E09E4A5D5611EBEDDDBDB0C0C0A);
-load_file(0x0A9FB76C661B409C4BEC88098C5DD71B1072F9691F2E827D7EC8F092B299868A3CE196C04F0FB18CAB4E1557EB72331D812379DE7A75CA21C32E7C722C59E5CC33EF262EF04187B0F0EE756FA984DF2EAD37B1E4ADB064C3C5038F2E3B2D661B1C1150AAEB5425512E14D7506166D92D4533872E662F4B2D142
-NULL
-End of 5.0 tests
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1);
-SET NAMES latin1;
-SET character_set_filesystem=filename;
-select @@character_set_filesystem;
-@@character_set_filesystem
-filename
-SELECT * INTO OUTFILE 't-1' FROM t1;
-DELETE FROM t1;
-LOAD DATA INFILE 't-1' INTO TABLE t1;
-SELECT * FROM t1;
-a
-1
-DELETE FROM t1;
-SET character_set_filesystem=latin1;
-select @@character_set_filesystem;
-@@character_set_filesystem
-latin1
-LOAD DATA INFILE 't@002d1' INTO TABLE t1;
-SELECT * FROM t1;
-a
-1
-DROP TABLE t1;
-SET character_set_filesystem=default;
-select @@character_set_filesystem;
-@@character_set_filesystem
-binary
-#
-# Bug #51850: crash/memory overlap when using load data infile and set
-# col equal to itself!
-#
-CREATE TABLE t1(col0 LONGBLOB);
-SELECT 'test' INTO OUTFILE 't1.txt';
-LOAD DATA INFILE 't1.txt' IGNORE INTO TABLE t1 SET col0=col0;
-SELECT * FROM t1;
-col0
-test
-DROP TABLE t1;
-#
-# Bug #52512 : Assertion `! is_set()' in
-# Diagnostics_area::set_ok_status on LOAD DATA
-#
-connect con1,localhost,root,,test;
-CREATE TABLE t1 (id INT NOT NULL);
-LOAD DATA LOCAL INFILE 'tb.txt' INTO TABLE t1;
-connection default;
-disconnect con1;
-connect con1,localhost,root,,test;
-DROP TABLE t1;
-connection default;
-disconnect con1;
-#
-# Bug#11765139 58069: LOAD DATA INFILE: VALGRIND REPORTS INVALID MEMORY READS AND WRITES WITH U
-#
-CREATE TABLE t1(f1 INT);
-SELECT 0xE1BB30 INTO OUTFILE 't1.dat';
-LOAD DATA INFILE 't1.dat' IGNORE INTO TABLE t1 CHARACTER SET utf8;
-DROP TABLE t1;
-#
-# Bug#11765141 - 58072: LOAD DATA INFILE: LEAKS IO CACHE MEMORY
-# WHEN ERROR OCCURS
-#
-SELECT '1\n' INTO DUMPFILE 'MYSQLTEST_VARDIR/tmp/bug11735141.txt';
-create table t1(a point);
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug11735141.txt' INTO TABLE t1;
-ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
-drop table t1;
-End of 5.1 tests
-#
-# Bug#11759519 INFINITE HANG WITH 100% CPU USAGE WITH LOAD DATA LOCAL AND IMPORT ERRORS
-#
-SET @old_mode= @@sql_mode;
-CREATE TABLE t1 (fld1 INT);
-SET sql_mode='strict_all_tables';
-# Without fix, load data hangs forever.
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/mysql' REPLACE INTO TABLE t1
-FIELDS TERMINATED BY 't' LINES TERMINATED BY '';
-Got one of the listed errors
-SET @@sql_mode= @old_mode;
-DROP TABLE t1;
-#
-# MDEV-11079 Regression: LOAD DATA INFILE lost BLOB support using utf8 load files
-#
-CREATE TABLE t1 (a mediumblob NOT NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-LOAD DATA INFILE '../../std_data/loaddata/mdev-11079.txt' INTO TABLE t1 CHARSET utf8 FIELDS TERMINATED BY ';' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n';
-SELECT HEX(a) FROM t1;
-HEX(a)
-25AAABAC
-DROP TABLE t1;
-#
-# MDEV-11631 LOAD DATA INFILE fails to load data with an escape character followed by a multi-byte character
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8);
-LOAD DATA INFILE '../../std_data/loaddata/mdev-11631.txt' INTO TABLE t1 CHARACTER SET utf8;
-SELECT HEX(a) FROM t1;
-HEX(a)
-C3A4
-DROP TABLE t1;
-#
-# MDEV-15497 Wrong empty value in a GEOMETRY column on LOAD DATA
-#
-SET sql_mode='';
-CREATE TABLE t1 (a CHAR(1), b CHAR(1) NOT NULL);
-LOAD DATA INFILE '../../std_data/loaddata/mdev-15497.txt' INTO TABLE t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-a b
-1
-TRUNCATE TABLE t1;
-LOAD DATA INFILE '../../std_data/loaddata/mdev-15497.txt' INTO TABLE t1 FIELDS TERMINATED BY '';
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-a b
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a CHAR(1), b CHAR(1));
-LOAD DATA INFILE '../../std_data/loaddata/mdev-15497.txt' INTO TABLE t1;
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-a b
-1 NULL
-TRUNCATE TABLE t1;
-LOAD DATA INFILE '../../std_data/loaddata/mdev-15497.txt' INTO TABLE t1 FIELDS TERMINATED BY '';
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-a b
-1
-DROP TABLE t1;
-#
-# MDEV-15597 Add class Load_data_outvar and avoid using Item::STRING_ITEM for Item_user_var_as_out_param detection
-#
-SET sql_mode=NO_AUTO_VALUE_ON_ZERO;
-CREATE TABLE t1 (id integer not null auto_increment primary key);
-LOAD DATA INFILE '../../std_data/loaddata/nl.txt' INTO TABLE t1 FIELDS TERMINATED BY '';
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-id
-0
-DROP TABLE t1;
-SET sql_mode='';
-CREATE TABLE t1 (id integer not null auto_increment primary key);
-LOAD DATA INFILE '../../std_data/loaddata/nl.txt' INTO TABLE t1 FIELDS TERMINATED BY '';
-Warnings:
-Warning 1261 Row 1 doesn't contain data for all columns
-SELECT * FROM t1;
-id
-1
-DROP TABLE t1;
diff --git a/mysql-test/r/loaddata_autocom_innodb.result b/mysql-test/r/loaddata_autocom_innodb.result
deleted file mode 100644
index 9f5a0809f2a..00000000000
--- a/mysql-test/r/loaddata_autocom_innodb.result
+++ /dev/null
@@ -1,21 +0,0 @@
-SET SESSION STORAGE_ENGINE = InnoDB;
-drop table if exists t1;
-create table t1 (id int unsigned not null auto_increment primary key, a text, b text);
-start transaction;
-load data infile 'LOAD_FILE' ignore into table t1 fields terminated by ',' enclosed by '''' (a, b);
-Warnings:
-Warning 1261 Row 3 doesn't contain data for all columns
-commit;
-select count(*) from t1;
-count(*)
-4
-truncate table t1;
-start transaction;
-load data infile 'LOAD_FILE' ignore into table t1 fields terminated by ',' enclosed by '''' (a, b);
-Warnings:
-Warning 1261 Row 3 doesn't contain data for all columns
-rollback;
-select count(*) from t1;
-count(*)
-0
-drop table t1;
diff --git a/mysql-test/r/loadxml.result b/mysql-test/r/loadxml.result
deleted file mode 100644
index b0fb867a676..00000000000
--- a/mysql-test/r/loadxml.result
+++ /dev/null
@@ -1,156 +0,0 @@
-drop table if exists t1, t2;
-create table t1 (a int, b varchar(64));
--- Load a static XML file
-load xml infile '../../std_data/loadxml.dat' into table t1
-rows identified by '<row>';
-select * from t1 order by a;
-a b
-1 b1
-2 b2
-3 b3
-11 b11
-111 b111
-112 b112 & < > " ' &unknown; -- check entities
-212 b212
-213 b213
-214 b214
-215 b215
-216 &bb b;
-delete from t1;
--- Load a static XML file with 'IGNORE num ROWS'
-load xml infile '../../std_data/loadxml.dat' into table t1
-rows identified by '<row>' ignore 4 rows;
-select * from t1 order by a;
-a b
-111 b111
-112 b112 & < > " ' &unknown; -- check entities
-212 b212
-213 b213
-214 b214
-215 b215
-216 &bb b;
--- Check 'mysqldump --xml' + 'LOAD XML' round trip
-delete from t1;
-load xml infile 'MYSQLTEST_VARDIR/tmp/loadxml-dump.xml' into table t1 rows identified by '<row>';;
-select * from t1 order by a;
-a b
-111 b111
-112 b112 & < > " ' &unknown; -- check entities
-212 b212
-213 b213
-214 b214
-215 b215
-216 &bb b;
---Check that default row tag is '<row>
-delete from t1;
-load xml infile 'MYSQLTEST_VARDIR/tmp/loadxml-dump.xml' into table t1;;
-select * from t1 order by a;
-a b
-111 b111
-112 b112 & < > " ' &unknown; -- check entities
-212 b212
-213 b213
-214 b214
-215 b215
-216 &bb b;
--- Check that 'xml' is not a keyword
-select 1 as xml;
-xml
-1
-connect addconroot, localhost, root,,;
-connection addconroot;
-create table t2(fl text);
-LOAD XML LOCAL INFILE "MYSQLTEST_VARDIR/tmp/loadxml-dump.xml" INTO TABLE t2 ROWS IDENTIFIED BY '<person>';;
-connection default;
-drop table t1;
-drop table t2;
-create table t1 (
-id int(11) not null,
-text text,
-primary key (id)
-) engine=MyISAM default charset=latin1;
-load xml infile '../../std_data/loadxml2.dat' into table t1;
-select * from t1;
-id text
-1 line1
-line2
-line3
-drop table t1;
-#
-# Bug#51571 load xml infile causes server crash
-#
-CREATE TABLE t1 (a text, b text);
-LOAD XML INFILE '../../std_data/loadxml.dat' INTO TABLE t1
-ROWS IDENTIFIED BY '<row>' (a,@b) SET b=concat('!',@b);
-SELECT * FROM t1 ORDER BY a;
-a b
-1 ! b1
-11 ! b11
-111 !b111
-112 !b112 & < > " ' &unknown; -- check entities
-2 ! b2
-212 !b212
-213 !b213
-214 !b214
-215 !b215
-216 !&bb b;
-3 ! b3
-DROP TABLE t1;
-#
-# Bug#16171518 LOAD XML DOES NOT HANDLE EMPTY ELEMENTS
-#
-CREATE TABLE t1 (col1 VARCHAR(3), col2 VARCHAR(3), col3 VARCHAR(3), col4 VARCHAR(4));
-LOAD XML INFILE '../../std_data/bug16171518_1.dat' INTO TABLE t1;
-SELECT * FROM t1 ORDER BY col1, col2, col3, col4;
-col1 col2 col3 col4
-0bc def ghi jkl
-1no NULL pqr stu
-2BC DEF GHI JKL
-3NO NULL PQR STU
-4bc def ghi jkl
-5no pqr stu vwx
-6BC DEF NULL JKL
-7NO PQR STU VWX
-8bc def ghi NULL
-9kl NULL mno pqr
-ABC DEF NULL JKL
-MNO NULL STU VWX
-DROP TABLE t1;
-CREATE TABLE t1 (col1 VARCHAR(3), col2 VARCHAR(3), col3 INTEGER);
-LOAD XML INFILE '../../std_data/bug16171518_2.dat' INTO TABLE t1;
-SELECT * FROM t1 ORDER BY col1, col2, col3;
-col1 col2 col3
-ABC DEF NULL
-GHI NULL 123
-DROP TABLE t1;
-#
-# MDEV-12696 Crash with LOAD XML and non-updatable VIEW column
-#
-CREATE TABLE t1 (c1 TEXT);
-CREATE VIEW v1 AS SELECT CONCAT(c1,'') AS c1, NULL AS c2 FROM t1;
-LOAD XML INFILE '../../std_data/loaddata/mdev12696.xml' INTO TABLE v1 (c1);
-ERROR HY000: Column 'c1' is not updatable
-LOAD XML INFILE '../../std_data/loaddata/mdev12696.xml' INTO TABLE v1 (c2);
-ERROR HY000: Column 'c2' is not updatable
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-14628 Wrong autoinc value assigned by LOAD XML in the NO_AUTO_VALUE_ON_ZERO mode
-#
-SET sql_mode=NO_AUTO_VALUE_ON_ZERO;
-CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY, b TEXT);
-LOAD XML INFILE '../../std_data/loaddata/mdev14628a.xml' INTO TABLE t1 ROWS IDENTIFIED BY '<row>';
-SELECT * FROM t1 ORDER BY b;
-a b
-1 bbb1
-2 bbb2
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-SET sql_mode='';
-CREATE TABLE t1 (id INT, g GEOMETRY NOT NULL);
-LOAD XML INFILE '../../std_data/loaddata/mdev14628b.xml' INTO TABLE t1 ROWS IDENTIFIED BY '<row>';
-ERROR 22004: Column set to default value; NULL supplied to NOT NULL column 'g' at row 1
-SELECT * FROM t1;
-id g
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
diff --git a/mysql-test/r/locale.result b/mysql-test/r/locale.result
deleted file mode 100644
index b750d038205..00000000000
--- a/mysql-test/r/locale.result
+++ /dev/null
@@ -1,308 +0,0 @@
-DROP TABLE IF EXISTS t1;
-Start of 5.4 tests
-#
-# WL#4642 Greek locale for DAYNAME, MONTHNAME, DATE_FORMAT
-#
-SET NAMES utf8;
-SET @@lc_time_names=109;
-SELECT @@lc_time_names;
-@@lc_time_names
-el_GR
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES
-('2006-01-01'),('2006-01-02'),('2006-01-03'),
-('2006-01-04'),('2006-01-05'),('2006-01-06'),('2006-01-07');
-SELECT a, date_format(a,'%a') as abday, dayname(a) as day FROM t1 ORDER BY a;
-a abday day
-2006-01-01 ÎšÏ…Ï ÎšÏ…Ïιακή
-2006-01-02 Δευ ΔευτέÏα
-2006-01-03 ΤÏί ΤÏίτη
-2006-01-04 Τετ ΤετάÏτη
-2006-01-05 Πέμ Πέμπτη
-2006-01-06 Î Î±Ï Î Î±Ïασκευή
-2006-01-07 Σάβ Σάββατο
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES
-('2006-01-01'),('2006-02-01'),('2006-03-01'),
-('2006-04-01'),('2006-05-01'),('2006-06-01'),
-('2006-07-01'),('2006-08-01'),('2006-09-01'),
-('2006-10-01'),('2006-11-01'),('2006-12-01');
-SELECT a, date_format(a,'%b') as abmon, monthname(a) as mon FROM t1 ORDER BY a;
-a abmon mon
-2006-01-01 Ιαν ΙανουάÏιος
-2006-02-01 Φεβ ΦεβÏουάÏιος
-2006-03-01 ÎœÎ¬Ï ÎœÎ¬Ïτιος
-2006-04-01 Î‘Ï€Ï Î‘Ï€Ïίλιος
-2006-05-01 Μάι Μάιος
-2006-06-01 ΙοÏν ΙοÏνιος
-2006-07-01 ΙοÏλ ΙοÏλιος
-2006-08-01 ΑÏγ ΑÏγουστος
-2006-09-01 Σεπ ΣεπτέμβÏιος
-2006-10-01 Οκτ ΟκτώβÏιος
-2006-11-01 Îοέ ÎοέμβÏιος
-2006-12-01 Δεκ ΔεκέμβÏιος
-SELECT format(123456.789, 3, 'el_GR');
-format(123456.789, 3, 'el_GR')
-123456,789
-DROP TABLE t1;
-#
-# Bug#46633 Obsolete Serbian locale name
-#
-SET lc_messages=sr_YU;
-Warnings:
-Warning 1287 'sr_YU' is deprecated and will be removed in a future release. Please use sr_RS instead
-SHOW VARIABLES LIKE 'lc_messages';
-Variable_name Value
-lc_messages sr_RS
-SET lc_messages=sr_RS;
-SHOW VARIABLES LIKE 'lc_messages';
-Variable_name Value
-lc_messages sr_RS
-SET lc_time_names=sr_RS;
-SELECT format(123456.789, 3, 'sr_RS');
-format(123456.789, 3, 'sr_RS')
-123456.789
-#
-# Bug#43207 wrong LC_TIME names for romanian locale
-#
-SET NAMES utf8;
-SET lc_time_names=ro_RO;
-SELECT DATE_FORMAT('2001-01-01', '%w %a %W');
-DATE_FORMAT('2001-01-01', '%w %a %W')
-1 Lu Luni
-SELECT DATE_FORMAT('2001-01-02', '%w %a %W');
-DATE_FORMAT('2001-01-02', '%w %a %W')
-2 Ma Marţi
-SELECT DATE_FORMAT('2001-01-03', '%w %a %W');
-DATE_FORMAT('2001-01-03', '%w %a %W')
-3 Mi Miercuri
-SELECT DATE_FORMAT('2001-01-04', '%w %a %W');
-DATE_FORMAT('2001-01-04', '%w %a %W')
-4 Jo Joi
-SELECT DATE_FORMAT('2001-01-05', '%w %a %W');
-DATE_FORMAT('2001-01-05', '%w %a %W')
-5 Vi Vineri
-SELECT DATE_FORMAT('2001-01-06', '%w %a %W');
-DATE_FORMAT('2001-01-06', '%w %a %W')
-6 Sâ Sâmbătă
-SELECT DATE_FORMAT('2001-01-07', '%w %a %W');
-DATE_FORMAT('2001-01-07', '%w %a %W')
-0 Du Duminică
-End of 5.4 tests
-SET NAMES utf8;
-SET lc_time_names=de_AT;
-SELECT monthname('2001-01-01');
-monthname('2001-01-01')
-Jänner
-SELECT monthname('2001-02-01');
-monthname('2001-02-01')
-Februar
-SELECT monthname('2001-03-01');
-monthname('2001-03-01')
-März
-#
-# MDEV-10052 Illegal mix of collations with DAYNAME(date_field)<>varchar_field
-#
-SET NAMES utf8;
-CREATE TABLE t1 (c VARCHAR(8) CHARACTER SET latin1, d DATE);
-INSERT INTO t1 VALUES ('test',now());
-Warnings:
-Note 1265 Data truncated for column 'd' at row 1
-SET lc_time_names=ru_RU;
-SELECT c FROM t1 WHERE DAYNAME(d)<>c;
-ERROR HY000: Illegal mix of collations (utf8_general_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation '<>'
-SELECT c FROM t1 WHERE MONTHNAME(d)<>c;
-ERROR HY000: Illegal mix of collations (utf8_general_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation '<>'
-SET lc_time_names=en_US;
-SELECT c FROM t1 WHERE DAYNAME(d)<>c;
-c
-test
-SELECT c FROM t1 WHERE MONTHNAME(d)<>c;
-c
-test
-SET NAMES latin1;
-SELECT c FROM t1 WHERE DAYNAME(d)<>c;
-c
-test
-SELECT c FROM t1 WHERE MONTHNAME(d)<>c;
-c
-test
-DROP TABLE t1;
-#
-# Start of 5.6 tests
-#
-#
-# WL#5303 Romansh locale for DAYNAME, MONTHNAME, DATE_FORMAT
-#
-SET NAMES utf8;
-SET @old_50915_lc_time_names := @@lc_time_names;
-SET lc_time_names=en_US;
-SELECT DATE_FORMAT('2001-01-01', '%w %a %W');
-DATE_FORMAT('2001-01-01', '%w %a %W')
-1 Mon Monday
-SELECT DATE_FORMAT('2001-03-01', '%c %b %M');
-DATE_FORMAT('2001-03-01', '%c %b %M')
-3 Mar March
-SET lc_time_names=rm_CH;
-SELECT DATE_FORMAT('2001-01-01', '%w %a %W');
-DATE_FORMAT('2001-01-01', '%w %a %W')
-1 gli glindesdi
-SELECT DATE_FORMAT('2001-01-02', '%w %a %W');
-DATE_FORMAT('2001-01-02', '%w %a %W')
-2 ma mardi
-SELECT DATE_FORMAT('2001-01-03', '%w %a %W');
-DATE_FORMAT('2001-01-03', '%w %a %W')
-3 me mesemna
-SELECT DATE_FORMAT('2001-01-04', '%w %a %W');
-DATE_FORMAT('2001-01-04', '%w %a %W')
-4 gie gievgia
-SELECT DATE_FORMAT('2001-01-05', '%w %a %W');
-DATE_FORMAT('2001-01-05', '%w %a %W')
-5 ve venderdi
-SELECT DATE_FORMAT('2001-01-06', '%w %a %W');
-DATE_FORMAT('2001-01-06', '%w %a %W')
-6 so sonda
-SELECT DATE_FORMAT('2001-01-07', '%w %a %W');
-DATE_FORMAT('2001-01-07', '%w %a %W')
-0 du dumengia
-SELECT DATE_FORMAT('2001-01-01', '%c %b %M');
-DATE_FORMAT('2001-01-01', '%c %b %M')
-1 schan schaner
-SELECT DATE_FORMAT('2001-02-01', '%c %b %M');
-DATE_FORMAT('2001-02-01', '%c %b %M')
-2 favr favrer
-SELECT DATE_FORMAT('2001-03-01', '%c %b %M');
-DATE_FORMAT('2001-03-01', '%c %b %M')
-3 mars mars
-SELECT DATE_FORMAT('2001-04-01', '%c %b %M');
-DATE_FORMAT('2001-04-01', '%c %b %M')
-4 avr avrigl
-SELECT DATE_FORMAT('2001-05-01', '%c %b %M');
-DATE_FORMAT('2001-05-01', '%c %b %M')
-5 matg matg
-SELECT DATE_FORMAT('2001-06-01', '%c %b %M');
-DATE_FORMAT('2001-06-01', '%c %b %M')
-6 zercl zercladur
-SELECT DATE_FORMAT('2001-07-01', '%c %b %M');
-DATE_FORMAT('2001-07-01', '%c %b %M')
-7 fan fanadur
-SELECT DATE_FORMAT('2001-08-01', '%c %b %M');
-DATE_FORMAT('2001-08-01', '%c %b %M')
-8 avust avust
-SELECT DATE_FORMAT('2001-09-01', '%c %b %M');
-DATE_FORMAT('2001-09-01', '%c %b %M')
-9 sett settember
-SELECT DATE_FORMAT('2001-10-01', '%c %b %M');
-DATE_FORMAT('2001-10-01', '%c %b %M')
-10 oct october
-SELECT DATE_FORMAT('2001-11-01', '%c %b %M');
-DATE_FORMAT('2001-11-01', '%c %b %M')
-11 nov november
-SELECT DATE_FORMAT('2001-12-01', '%c %b %M');
-DATE_FORMAT('2001-12-01', '%c %b %M')
-12 dec december
-SET lc_time_names=de_CH;
-SELECT DATE_FORMAT('2001-01-06', '%w %a %W');
-DATE_FORMAT('2001-01-06', '%w %a %W')
-6 Sa Samstag
-SELECT DATE_FORMAT('2001-09-01', '%c %b %M');
-DATE_FORMAT('2001-09-01', '%c %b %M')
-9 Sep September
-SELECT DATE_FORMAT('2010-03-23 11:00:00','%h %p');
-DATE_FORMAT('2010-03-23 11:00:00','%h %p')
-11 AM
-SELECT DATE_FORMAT('2010-03-23 13:00:00','%h %p');
-DATE_FORMAT('2010-03-23 13:00:00','%h %p')
-01 PM
-SELECT format(123456789,2,'rm_CH');
-format(123456789,2,'rm_CH')
-123'456'789,00
-SET lc_messages=rm_CH;
-SELECT * FROM non_existent;
-ERROR 42S02: Table 'test.non_existent' doesn't exist
-SET lc_time_names=@old_50915_lc_time_names;
-#
-# End of 10.0 tests
-#
-#
-# End of 10.1 tests
-#
-create view v1 as select
-date_format('2001-10-02', '%c %b %M') as a,
-date_format('2001-10-02', '%c %b %M', 'ru_RU') as a1,
-format(123456789,2) as b,
-format(123456789,2,'rm_CH') as b1;
-select * from v1;
-a a1 b b1
-10 Oct October 10 Окт ОктÑÐ±Ñ€Ñ 123,456,789.00 123'456'789,00
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select date_format('2001-10-02','%c %b %M') AS `a`,date_format('2001-10-02','%c %b %M','ru_RU') AS `a1`,format(123456789,2) AS `b`,format(123456789,2,'rm_CH') AS `b1` utf8 utf8_general_ci
-drop view v1;
-#
-# End of 10.2 tests
-#
-select date_format('2001-01-01', '%w %a %W', 'ro_RO');
-date_format('2001-01-01', '%w %a %W', 'ro_RO')
-1 Lu Luni
-select date_format('2001-01-03', '%w %a %W', 'ro_RO');
-date_format('2001-01-03', '%w %a %W', 'ro_RO')
-3 Mi Miercuri
-select date_format('2001-01-05', '%w %a %W', 'ro_RO');
-date_format('2001-01-05', '%w %a %W', 'ro_RO')
-5 Vi Vineri
-select date_format('2001-01-07', '%w %a %W', 'ro_RO');
-date_format('2001-01-07', '%w %a %W', 'ro_RO')
-0 Du Duminică
-select date_format('2001-01-01', '%w %a %W', 'de_AT');
-date_format('2001-01-01', '%w %a %W', 'de_AT')
-1 Mon Montag
-select date_format('2001-02-01', '%w %a %W', 'de_AT');
-date_format('2001-02-01', '%w %a %W', 'de_AT')
-4 Don Donnerstag
-select date_format('2001-03-01', '%w %a %W', 'de_AT');
-date_format('2001-03-01', '%w %a %W', 'de_AT')
-4 Don Donnerstag
-select date_format('2001-01-01', '%w %a %W', 'en_US');
-date_format('2001-01-01', '%w %a %W', 'en_US')
-1 Mon Monday
-select date_format('2001-03-01', '%c %b %M', 'en_US');
-date_format('2001-03-01', '%c %b %M', 'en_US')
-3 Mar March
-select date_format('2001-01-01', '%w %a %W', 'rm_CH');
-date_format('2001-01-01', '%w %a %W', 'rm_CH')
-1 gli glindesdi
-select date_format('2001-01-03', '%w %a %W', 'rm_CH');
-date_format('2001-01-03', '%w %a %W', 'rm_CH')
-3 me mesemna
-select date_format('2001-01-05', '%w %a %W', 'rm_CH');
-date_format('2001-01-05', '%w %a %W', 'rm_CH')
-5 ve venderdi
-select date_format('2001-01-07', '%w %a %W', 'rm_CH');
-date_format('2001-01-07', '%w %a %W', 'rm_CH')
-0 du dumengia
-select date_format('2001-02-01', '%c %b %M', 'rm_CH');
-date_format('2001-02-01', '%c %b %M', 'rm_CH')
-2 favr favrer
-select date_format('2001-04-01', '%c %b %M', 'rm_CH');
-date_format('2001-04-01', '%c %b %M', 'rm_CH')
-4 avr avrigl
-select date_format('2001-06-01', '%c %b %M', 'rm_CH');
-date_format('2001-06-01', '%c %b %M', 'rm_CH')
-6 zercl zercladur
-select date_format('2001-08-01', '%c %b %M', 'rm_CH');
-date_format('2001-08-01', '%c %b %M', 'rm_CH')
-8 avust avust
-select date_format('2001-10-01', '%c %b %M', 'rm_CH');
-date_format('2001-10-01', '%c %b %M', 'rm_CH')
-10 oct october
-select date_format('2001-12-01', '%c %b %M', 'rm_CH');
-date_format('2001-12-01', '%c %b %M', 'rm_CH')
-12 dec december
-select date_format('2001-01-06', '%w %a %W', 'de_CH');
-date_format('2001-01-06', '%w %a %W', 'de_CH')
-6 Sa Samstag
-select date_format('2001-09-01', '%c %b %M', 'de_CH');
-date_format('2001-09-01', '%c %b %M', 'de_CH')
-9 Sep September
diff --git a/mysql-test/r/lock.result b/mysql-test/r/lock.result
deleted file mode 100644
index 00dbb166ffb..00000000000
--- a/mysql-test/r/lock.result
+++ /dev/null
@@ -1,491 +0,0 @@
-drop table if exists t1,t2,t3;
-CREATE TABLE t1 ( `id` int(11) NOT NULL default '0', `id2` int(11) NOT NULL default '0', `id3` int(11) NOT NULL default '0', `dummy1` char(30) default NULL, PRIMARY KEY (`id`,`id2`), KEY `index_id3` (`id3`)) ENGINE=MyISAM;
-insert into t1 (id,id2) values (1,1),(1,2),(1,3);
-LOCK TABLE t1 WRITE;
-select dummy1,count(distinct id) from t1 group by dummy1;
-dummy1 count(distinct id)
-NULL 1
-update t1 set id=-1 where id=1;
-LOCK TABLE t1 READ;
-update t1 set id=1 where id=1;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-create table t2 SELECT * from t1;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-create temporary table t2 SELECT * from t1;
-drop table if exists t2;
-unlock tables;
-create table t2 SELECT * from t1;
-LOCK TABLE t1 WRITE,t2 write;
-insert into t2 SELECT * from t1;
-update t1 set id=1 where id=-1;
-drop table t1,t2;
-CREATE TABLE t1 (
-index1 smallint(6) default NULL,
-nr smallint(6) default NULL,
-KEY index1(index1)
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-nr smallint(6) default NULL,
-name varchar(20) default NULL
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,'item1');
-INSERT INTO t2 VALUES (2,'item2');
-lock tables t1 write, t2 read;
-insert into t1 select 1,nr from t2 where name='item1';
-insert into t1 select 2,nr from t2 where name='item2';
-unlock tables;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-lock tables t1 write;
-check table t2;
-Table Op Msg_type Msg_text
-test.t2 check Error Table 't2' was not locked with LOCK TABLES
-test.t2 check status Operation failed
-insert into t1 select index1,nr from t1;
-ERROR HY000: Table 't1' was not locked with LOCK TABLES
-unlock tables;
-lock tables t1 write, t1 as t1_alias read;
-insert into t1 select index1,nr from t1 as t1_alias;
-drop table t1,t2;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-unlock tables;
-drop table t1,t2;
-create table t1 (c1 int);
-create table t2 (c1 int);
-create table t3 (c1 int);
-lock tables t1 write, t2 write, t3 write;
-drop table t2, t3, t1;
-create table t1 (c1 int);
-create table t2 (c1 int);
-create table t3 (c1 int);
-lock tables t1 write, t2 write, t3 write, t1 as t4 read;
-alter table t2 add column c2 int;
-drop table t1, t2, t3;
-create table t1 ( a int(11) not null auto_increment, primary key(a));
-create table t2 ( a int(11) not null auto_increment, primary key(a));
-lock tables t1 write, t2 read;
-delete from t1 using t1,t2 where t1.a=t2.a;
-delete t1 from t1,t2 where t1.a=t2.a;
-delete from t2 using t1,t2 where t1.a=t2.a;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-delete t2 from t1,t2 where t1.a=t2.a;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-drop table t1,t2;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-unlock tables;
-drop table t2,t1;
-End of 4.1 tests.
-drop table if exists t1;
-create table t1 (a int);
-lock table t1 write;
-flush tables with read lock;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-drop table t1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (i INT);
-LOCK TABLES mysql.time_zone READ, mysql.proc READ, t1 READ;
-UNLOCK TABLES;
-LOCK TABLES mysql.time_zone READ, mysql.proc READ, t1 WRITE;
-UNLOCK TABLES;
-LOCK TABLES mysql.time_zone READ, mysql.proc READ;
-UNLOCK TABLES;
-LOCK TABLES mysql.time_zone WRITE, mysql.proc WRITE;
-UNLOCK TABLES;
-LOCK TABLES mysql.time_zone READ, mysql.proc WRITE, t1 READ;
-ERROR HY000: You can't combine write-locking of system tables with other tables or lock types
-LOCK TABLES mysql.time_zone WRITE, mysql.proc WRITE, t1 READ;
-ERROR HY000: You can't combine write-locking of system tables with other tables or lock types
-LOCK TABLES mysql.time_zone WRITE, mysql.proc WRITE, t1 WRITE;
-ERROR HY000: You can't combine write-locking of system tables with other tables or lock types
-LOCK TABLES mysql.time_zone READ, mysql.proc WRITE;
-ERROR HY000: You can't combine write-locking of system tables with other tables or lock types
-DROP TABLE t1;
-
-Bug#5719 impossible to lock VIEW
-
-Just covering existing behaviour with tests.
-Consistency has not been found here.
-
-drop view if exists v_bug5719;
-drop table if exists t1, t2, t3;
-create table t1 (a int);
-create temporary table t2 (a int);
-create table t3 (a int);
-create view v_bug5719 as select 1;
-lock table v_bug5719 write;
-select * from t1;
-ERROR HY000: Table 't1' was not locked with LOCK TABLES
-
-Allowed to select from a temporary talbe under LOCK TABLES
-
-select * from t2;
-a
-select * from t3;
-ERROR HY000: Table 't3' was not locked with LOCK TABLES
-select * from v_bug5719;
-1
-1
-drop view v_bug5719;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-
-sic: did not left LOCK TABLES mode automatically
-
-select * from t1;
-ERROR HY000: Table 't1' was not locked with LOCK TABLES
-unlock tables;
-create or replace view v_bug5719 as select * from t1;
-lock tables v_bug5719 write;
-select * from v_bug5719;
-a
-
-Allowed to use an underlying table under LOCK TABLES <view>
-
-select * from t1;
-a
-
-Allowed to select from a temporary table under LOCK TABLES
-
-select * from t2;
-a
-select * from t3;
-ERROR HY000: Table 't3' was not locked with LOCK TABLES
-Dropping of implicitly locked table is disallowed.
-drop table t1;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-unlock tables;
-Now let us also lock table explicitly and drop it.
-lock tables t1 write, v_bug5719 write;
-drop table t1;
-
-sic: left LOCK TABLES mode
-
-select * from t3;
-a
-select * from v_bug5719;
-ERROR HY000: View 'test.v_bug5719' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-unlock tables;
-drop view v_bug5719;
-
-When limitation to use temporary tables in views is removed, please
-add a test that shows what happens under LOCK TABLES when a view
-references a temporary table, is locked, and the underlying table
-is dropped.
-
-create view v_bug5719 as select * from t2;
-ERROR HY000: View's SELECT refers to a temporary table 't2'
-
-Cleanup.
-
-drop table t2, t3;
-#
-# Bug#39843 DELETE requires write access to table in subquery in where clause
-#
-DROP TABLE IF EXISTS t1,t2;
-CREATE TABLE t1 (
-table1_rowid SMALLINT NOT NULL
-);
-CREATE TABLE t2 (
-table2_rowid SMALLINT NOT NULL
-);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (1);
-LOCK TABLES t1 WRITE, t2 READ;
-# Sub-select should not try to aquire a write lock.
-DELETE FROM t1
-WHERE EXISTS
-(
-SELECT 'x'
-FROM t2
-WHERE t1.table1_rowid = t2.table2_rowid
-) ;
-# While implementing the patch we didn't break old behavior;
-# The following sub-select should still requires a write lock:
-SELECT * FROM t1 WHERE 1 IN (SELECT * FROM t2 FOR UPDATE);
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-UNLOCK TABLES;
-DROP TABLE t1,t2;
-End of 5.1 tests.
-#
-# Ensure that FLUSH TABLES doesn't substitute a base locked table
-# with a temporary one.
-#
-drop table if exists t1, t2;
-create table t1 (a int);
-create table t2 (a int);
-lock table t1 write, t2 write;
-create temporary table t1 (a int);
-flush table t1;
-drop temporary table t1;
-select * from t1;
-a
-unlock tables;
-drop table t1, t2;
-#
-# Ensure that REPAIR .. USE_FRM works under LOCK TABLES.
-#
-drop table if exists t1, t2;
-create table t1 (a int);
-create table t2 (a int);
-lock table t1 write, t2 write;
-repair table t1 use_frm;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-repair table t1 use_frm;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-select * from t1;
-a
-select * from t2;
-a
-repair table t2 use_frm;
-Table Op Msg_type Msg_text
-test.t2 repair status OK
-repair table t2 use_frm;
-Table Op Msg_type Msg_text
-test.t2 repair status OK
-select * from t1;
-a
-unlock tables;
-drop table t1, t2;
-#
-# Ensure that mi_copy_status is called for two instances
-# of the same table when it is reopened after a flush.
-#
-drop table if exists t1;
-drop view if exists v1;
-create table t1 (c1 int);
-create view v1 as select * from t1;
-lock tables t1 write, v1 write;
-flush table t1;
-insert into t1 values (33);
-flush table t1;
-select * from t1;
-c1
-33
-unlock tables;
-drop table t1;
-drop view v1;
-#
-# WL#4284: Transactional DDL locking
-#
-drop table if exists t1;
-create table t1 (a int);
-connect con1,localhost,root,,;
-set autocommit= 0;
-insert into t1 values (1);
-lock table t1 write;
-# Ensure that metadata locks will be released if there is an open
-# transaction (autocommit=off) in conjunction with lock tables.
-disconnect con1;
-connection default;
-drop table t1;
-# Same problem but now for BEGIN
-drop table if exists t1;
-create table t1 (a int);
-connect con1,localhost,root,,;
-begin;
-insert into t1 values (1);
-# Ensure that metadata locks held by the transaction are released.
-disconnect con1;
-connection default;
-drop table t1;
-#
-# Coverage for situations when we try to execute DDL on tables
-# which are locked by LOCK TABLES only implicitly.
-#
-drop tables if exists t1, t2;
-drop view if exists v1;
-drop function if exists f1;
-create table t1 (i int);
-create table t2 (j int);
-#
-# Try to perform DDL on table which is locked through view.
-create view v1 as select * from t2;
-lock tables t1 write, v1 write;
-flush table t2;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-drop table t2;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-alter table t2 add column k int;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-create trigger t2_bi before insert on t2 for each row set @a:=1;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-# Repair produces error as part of its result set.
-repair table t2;
-Table Op Msg_type Msg_text
-test.t2 repair Error Table 't2' was locked with a READ lock and can't be updated
-test.t2 repair status Operation failed
-unlock tables;
-drop view v1;
-#
-# Now, try DDL on table which is locked through routine.
-create function f1 () returns int
-begin
-insert into t2 values (1);
-return 0;
-end|
-create view v1 as select f1() from t1;
-lock tables v1 read;
-flush table t2;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-drop table t2;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-alter table t2 add column k int;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-create trigger t2_bi before insert on t2 for each row set @a:=1;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-# Repair produces error as part of its result set.
-repair table t2;
-Table Op Msg_type Msg_text
-test.t2 repair Error Table 't2' was locked with a READ lock and can't be updated
-test.t2 repair status Operation failed
-unlock tables;
-drop view v1;
-drop function f1;
-#
-# Finally, try DDL on table which is locked thanks to trigger.
-create trigger t1_ai after insert on t1 for each row insert into t2 values (1);
-lock tables t1 write;
-flush table t2;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-drop table t2;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-alter table t2 add column k int;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-create trigger t2_bi before insert on t2 for each row set @a:=1;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-# Repair produces error as part of its result set.
-repair table t2;
-Table Op Msg_type Msg_text
-test.t2 repair Error Table 't2' was locked with a READ lock and can't be updated
-test.t2 repair status Operation failed
-unlock tables;
-drop trigger t1_ai;
-drop tables t1, t2;
-#
-# Bug#45035 " Altering table under LOCK TABLES results in
-# "Error 1213 Deadlock found..."
-#
-# When reopening tables under LOCK TABLES after ALTER TABLE,
-# 6.0 used to be taking thr_lock locks one by one, and
-# that would lead to a lock conflict.
-# Check that taking all locks at once works.
-#
-drop table if exists t1;
-create table t1 (i int);
-lock tables t1 write, t1 as a read, t1 as b read;
-alter table t1 add column j int;
-unlock tables;
-drop table t1;
-create temporary table t1 (i int);
-lock tables t1 write, t1 as a read, t1 as b read;
-alter table t1 add column j int;
-unlock tables;
-drop table t1;
-#
-# Separate case for partitioned tables is important
-# because each partition has an own thr_lock object.
-#
-create table t1 (i int) partition by list (i)
-(partition p0 values in (1),
-partition p1 values in (2,3),
-partition p2 values in (4,5));
-lock tables t1 write, t1 as a read, t1 as b read;
-alter table t1 add column j int;
-unlock tables;
-drop table t1;
-#
-# Bug #43272 HANDLER SQL command does not work under LOCK TABLES
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT);
-LOCK TABLE t1 WRITE;
-# HANDLER commands are not allowed in LOCK TABLES mode
-HANDLER t1 OPEN;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-HANDLER t1 READ FIRST;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-HANDLER t1 CLOSE;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-UNLOCK TABLES;
-DROP TABLE t1;
-#
-# Bug#45066 FLUSH TABLES WITH READ LOCK deadlocks against
-# LOCK TABLE
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT);
-LOCK TABLE t1 READ;
-FLUSH TABLES;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-LOCK TABLE t1 WRITE;
-FLUSH TABLES;
-#
-# If you allow the next combination, you reintroduce bug Bug#45066
-#
-LOCK TABLE t1 READ;
-FLUSH TABLES WITH READ LOCK;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-LOCK TABLE t1 WRITE;
-FLUSH TABLES WITH READ LOCK;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-UNLOCK TABLES;
-DROP TABLE t1;
-#
-# Simplified test for bug #48538 "Assertion in thr_lock() on LOAD DATA
-# CONCURRENT INFILE".
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (f1 INT, f2 INT) ENGINE = MEMORY;
-CREATE TRIGGER t1_ai AFTER INSERT ON t1 FOR EACH ROW
-UPDATE LOW_PRIORITY t1 SET f2 = 7;
-# Statement below should fail with ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG
-# error instead of failing on assertion in table-level locking subsystem.
-INSERT INTO t1(f1) VALUES(0);
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-DROP TABLE t1;
-#
-# Bug#43685 Lock table affects other non-related tables
-#
-DROP TABLE IF EXISTS t1, t2;
-connect con2, localhost, root;
-CREATE TABLE t1 (id INT);
-CREATE TABLE t2 (id INT);
-connection default;
-LOCK TABLE t1 WRITE;
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-connection con2;
-LOCK TABLE t2 WRITE;
-# This used to hang until the first connection
-# unlocked t1.
-FLUSH TABLE t2;
-UNLOCK TABLES;
-connection default;
-UNLOCK TABLES;
-DROP TABLE t1, t2;
-disconnect con2;
-#
-# End of 6.0 tests.
-#
-create table t1 (a int) engine=myisam;
-lock tables t1 write concurrent, t1 as t2 read;
-connect con1,localhost,root,,;
-connection con1;
-lock tables t1 read local;
-unlock tables;
-connection default;
-unlock tables;
-connection con1;
-lock tables t1 read local;
-connection default;
-lock tables t1 write concurrent, t1 as t2 read;
-unlock tables;
-connection con1;
-unlock tables;
-disconnect con1;
-connection default;
-drop table t1;
diff --git a/mysql-test/r/lock_multi.result b/mysql-test/r/lock_multi.result
deleted file mode 100644
index d4e0edaf1c2..00000000000
--- a/mysql-test/r/lock_multi.result
+++ /dev/null
@@ -1,611 +0,0 @@
-drop table if exists t1,t2;
-drop DATABASE if exists mysqltest_1;
-connect locker,localhost,root,,;
-connect locker2,localhost,root,,;
-connect reader,localhost,root,,;
-connect writer,localhost,root,,;
-connection locker;
-create table t1(n int);
-insert into t1 values (1);
-connection locker2;
-select get_lock("mysqltest_lock", 100);
-get_lock("mysqltest_lock", 100)
-1
-connection locker;
-update t1 set n = 2 and get_lock('mysqltest_lock', 100);
-connection writer;
-update low_priority t1 set n = 4;
-connection reader;
-select n from t1;
-connection locker2;
-select release_lock("mysqltest_lock");
-release_lock("mysqltest_lock")
-1
-connection locker;
-select release_lock("mysqltest_lock");
-release_lock("mysqltest_lock")
-1
-connection writer;
-connection reader;
-n
-4
-drop table t1;
-connection locker;
-create table t1(n int);
-insert into t1 values (1),(2);
-connection locker2;
-select get_lock("mysqltest_lock", 100);
-get_lock("mysqltest_lock", 100)
-1
-connection locker;
-select n from t1 where get_lock('mysqltest_lock', 100);
-connection writer;
-update low_priority t1 set n = 4;
-connection reader;
-select n from t1;
-n
-1
-2
-connection locker2;
-select release_lock("mysqltest_lock");
-release_lock("mysqltest_lock")
-1
-connection locker;
-n
-1
-2
-select release_lock("mysqltest_lock");
-release_lock("mysqltest_lock")
-1
-connection writer;
-drop table t1;
-connection locker;
-create table t1 (a int, b int);
-create table t2 (c int, d int);
-insert into t1 values(1,1);
-insert into t1 values(2,2);
-insert into t2 values(1,2);
-lock table t1 read;
-connection writer;
-update t1,t2 set c=a where b=d;
-connection reader;
-select c from t2;
-c
-2
-connection locker;
-unlock tables;
-drop table t1;
-drop table t2;
-connection locker;
-create table t1 (a int);
-create table t2 (a int);
-lock table t1 write, t2 write;
-connection reader;
-insert t1 select * from t2;
-connection locker;
-drop table t2;
-unlock tables;
-connection reader;
-ERROR 42S02: Table 'test.t2' doesn't exist
-connection locker;
-drop table t1;
-connection locker;
-create table t1 (a int);
-create table t2 (a int);
-lock table t1 write, t2 write, t1 as t1_2 write, t2 as t2_2 write;
-connection reader;
-insert t1 select * from t2;
-connection locker;
-drop table t2;
-unlock tables;
-connection reader;
-ERROR 42S02: Table 'test.t2' doesn't exist
-connection locker;
-drop table t1;
-End of 4.1 tests
-create table t1(a int);
-lock tables t1 write;
-connection reader;
-show columns from t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-connection locker;
-unlock tables;
-drop table t1;
-connection locker;
-USE mysql;
-LOCK TABLES columns_priv WRITE, db WRITE, host WRITE, user WRITE;
-FLUSH TABLES;
-connection reader;
-USE mysql;
-SELECT user.Select_priv FROM user, db WHERE user.user = db.user LIMIT 1;
-connection locker;
-OPTIMIZE TABLES columns_priv, db, host, user;
-Table Op Msg_type Msg_text
-mysql.columns_priv optimize status OK
-mysql.db optimize status OK
-mysql.host optimize status OK
-mysql.user optimize status OK
-UNLOCK TABLES;
-connection reader;
-Select_priv
-N
-USE test;
-connection locker;
-use test;
-connection default;
-connection writer;
-CREATE TABLE t1 (c1 int);
-LOCK TABLE t1 WRITE;
-connection locker;
-FLUSH TABLES WITH READ LOCK;
-connection writer;
-CREATE TABLE t2 (c1 int);
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-UNLOCK TABLES;
-connection locker;
-UNLOCK TABLES;
-connection default;
-DROP TABLE t1;
-connection writer;
-CREATE TABLE t1 (c1 int);
-LOCK TABLE t1 WRITE;
-connection locker;
-FLUSH TABLES WITH READ LOCK;
-connection writer;
-CREATE TABLE t2 AS SELECT * FROM t1;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-UNLOCK TABLES;
-connection locker;
-UNLOCK TABLES;
-connection default;
-DROP TABLE t1;
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection con1;
-CREATE DATABASE mysqltest_1;
-FLUSH TABLES WITH READ LOCK;
-connection con2;
-DROP DATABASE mysqltest_1;
-connection con1;
-DROP DATABASE mysqltest_1;
-ERROR HY000: Can't execute the query because you have a conflicting read lock
-UNLOCK TABLES;
-connection con2;
-connection default;
-disconnect con1;
-disconnect con2;
-DROP DATABASE mysqltest_1;
-ERROR HY000: Can't drop database 'mysqltest_1'; database doesn't exist
-connection locker;
-set sql_mode="";
-create table t1 (f1 int(12) unsigned not null auto_increment, primary key(f1)) engine=innodb;
-set sql_mode=default;
-lock tables t1 write;
-connection writer;
-alter table t1 auto_increment=0;
-connection reader;
-alter table t1 auto_increment=0;
-connection locker;
-unlock tables;
-connection writer;
-connection reader;
-connection locker;
-drop table t1;
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connect con3,localhost,root,,;
-connect con4,localhost,root,,;
-connect con5,localhost,root,,;
-create table t1 (a int);
-create table t2 like t1;
-connection con1;
-lock tables t1 write;
-connection con2;
-flush tables with read lock;
-connection con5;
-# global read lock is taken
-connection con3;
-select * from t2 for update;
-connection con5;
-# waiting for release of read lock
-connection con4;
-# would hang and later cause a deadlock
-flush tables t2;
-connection con1;
-# clean up
-unlock tables;
-connection con2;
-unlock tables;
-connection con3;
-a
-connection default;
-disconnect con5;
-disconnect con4;
-disconnect con3;
-disconnect con2;
-disconnect con1;
-drop table t1,t2;
-#
-# Lightweight version:
-# Ensure that the wait for a GRL is done before opening tables.
-#
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-create table t1 (a int);
-create table t2 like t1;
-#
-# UPDATE
-#
-connection default;
-flush tables with read lock;
-connection con1;
-update t2 set a = 1;
-connection default;
-# statement is waiting for release of read lock
-connection con2;
-flush table t2;
-connection default;
-unlock tables;
-connection con1;
-#
-# LOCK TABLES .. WRITE
-#
-connection default;
-flush tables with read lock;
-connection con1;
-lock tables t2 write;
-connection default;
-# statement is waiting for release of read lock
-connection con2;
-flush table t2;
-connection default;
-unlock tables;
-connection con1;
-unlock tables;
-connection default;
-disconnect con2;
-disconnect con1;
-drop table t1,t2;
-End of 5.0 tests
-create table t1 (i int);
-connection locker;
-lock table t1 read;
-connection writer;
-update t1 set i= 10;
-connection reader;
-select * from t1;
-connection default;
-kill query ID;
-connection reader;
-i
-connection writer;
-ERROR 70100: Query execution was interrupted
-connection locker;
-unlock tables;
-connection default;
-drop table t1;
-disconnect locker;
-disconnect locker2;
-disconnect reader;
-disconnect writer;
-drop table if exists t1;
-create table t1 (i int);
-connect flush,localhost,root,,test,,;
-connection default;
-lock tables t1 write;
-connection flush;
-flush tables with read lock;;
-connection default;
-alter table t1 add column j int;
-connect insert,localhost,root,,test,,;
-connection insert;
-insert into t1 values (1,2);;
-connection default;
-unlock tables;
-connection flush;
-select * from t1;
-i j
-unlock tables;
-connection insert;
-connection default;
-select * from t1;
-i j
-1 2
-drop table t1;
-disconnect flush;
-disconnect insert;
-drop table if exists t1;
-create table t1 (i int);
-connect flush,localhost,root,,test,,;
-connection default;
-lock tables t1 write;
-connection flush;
-flush tables with read lock;;
-connection default;
-flush tables;
-unlock tables;
-connection flush;
-connection default;
-disconnect flush;
-drop table t1;
-drop table if exists t1,t2;
-create table t1 (a int);
-flush status;
-lock tables t1 read;
-connect waiter,localhost,root,,;
-connection waiter;
-insert into t1 values(1);
-connection default;
-unlock tables;
-connection waiter;
-connection default;
-drop table t1;
-disconnect waiter;
-select @tlwa < @tlwb;
-@tlwa < @tlwb
-1
-End of 5.1 tests
-drop table if exists t1;
-create table t1 (i int);
-connect flush,localhost,root,,test,,;
-connection default;
-lock tables t1 write;
-connection flush;
-flush tables with read lock;;
-connection default;
-flush tables;
-drop table t1;
-connection flush;
-connection default;
-disconnect flush;
-#
-# Test for bug #46272 "MySQL 5.4.4, new MDL: unnecessary deadlock".
-#
-drop table if exists t1;
-create table t1 (c1 int primary key, c2 int, c3 int);
-insert into t1 values (1,1,0),(2,2,0),(3,3,0),(4,4,0),(5,5,0);
-begin;
-update t1 set c3=c3+1 where c2=3;
-connect con46272,localhost,root,,test,,;
-connection con46272;
-# The below ALTER TABLE statement should wait till transaction
-# in connection 'default' is complete and then succeed.
-# It should not deadlock or fail with ER_LOCK_DEADLOCK error.
-# Sending:
-alter table t1 add column c4 int;;
-connection default;
-# Wait until the above ALTER TABLE gets blocked because this
-# connection holds SW metadata lock on table to be altered.
-# The below statement should succeed. It should not
-# deadlock or end with ER_LOCK_DEADLOCK error.
-update t1 set c3=c3+1 where c2=4;
-# Unblock ALTER TABLE by committing transaction.
-commit;
-connection con46272;
-# Reaping ALTER TABLE.
-connection default;
-disconnect con46272;
-drop table t1;
-#
-# Bug#47249 assert in MDL_global_lock::is_lock_type_compatible
-#
-DROP TABLE IF EXISTS t1;
-DROP VIEW IF EXISTS v1;
-#
-# Test 1: LOCK TABLES v1 WRITE, t1 READ;
-#
-# Thanks to the fact that we no longer allow DDL on tables
-# which are locked for write implicitly, the exact scenario
-# in which assert was failing is no longer repeatable.
-CREATE TABLE t1 ( f1 integer );
-CREATE VIEW v1 AS SELECT f1 FROM t1 ;
-LOCK TABLES v1 WRITE, t1 READ;
-FLUSH TABLE t1;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-UNLOCK TABLES;
-DROP TABLE t1;
-DROP VIEW v1;
-#
-# Test 2: LOCK TABLES t1 WRITE, v1 READ;
-#
-CREATE TABLE t1 ( f1 integer );
-CREATE VIEW v1 AS SELECT f1 FROM t1 ;
-connect con2,localhost,root;
-LOCK TABLES t1 WRITE, v1 READ;
-FLUSH TABLE t1;
-disconnect con2;
-connection default;
-LOCK TABLES t1 WRITE;
-FLUSH TABLE t1;
-DROP TABLE t1;
-DROP VIEW v1;
-#
-# Test for bug #50913 "Deadlock between open_and_lock_tables_derived
-# and MDL". Also see additional coverage in mdl_sync.test.
-#
-drop table if exists t1;
-drop view if exists v1;
-connect con50913,localhost,root;
-connection default;
-create table t1 (i int);
-create view v1 as select i from t1;
-begin;
-select * from t1;
-i
-connection con50913;
-# Sending:
-alter table t1 add column j int;
-connection default;
-# Wait until ALTER TABLE gets blocked.
-# The below statement should try to acquire SW lock on 't1'
-# and therefore should get ER_LOCK_DEADLOCK error. Before
-# bug fix it acquired SR lock and hung on thr_lock.c lock.
-delete a from t1 as a where i = 1;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-# Unblock ALTER TABLE.
-commit;
-connection con50913;
-# Reaping ALTER TABLE;
-connection default;
-begin;
-select * from v1;
-i
-connection con50913;
-# Sending:
-alter table t1 drop column j;
-connection default;
-# Wait until ALTER TABLE gets blocked.
-# The below statement should try to acquire SW lock on 't1'
-# and therefore should get ER_LOCK_DEADLOCK error. Before
-# bug fix it acquired SR lock and hung on thr_lock.c lock.
-insert into v1 values (1);
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-# Unblock ALTER TABLE.
-commit;
-connection con50913;
-# Reaping ALTER TABLE;
-connection default;
-disconnect con50913;
-drop view v1;
-drop table t1;
-#
-# Bug#45225 Locking: hang if drop table with no timeout
-#
-# These tests also provide function coverage for the
-# lock_wait_timeout server variable.
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (id int);
-connect con2, localhost, root,,;
-SET SESSION lock_wait_timeout= 1;
-#
-# Test 1: acquire exclusive lock
-#
-connection default;
-START TRANSACTION;
-INSERT INTO t1 VALUES (1);
-connection con2;
-DROP TABLE t1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection default;
-COMMIT;
-#
-# Test 2: upgrade shared lock
-#
-connection default;
-START TRANSACTION;
-SELECT * FROM t1;
-id
-1
-connection con2;
-ALTER TABLE t1 RENAME TO t2;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection default;
-COMMIT;
-#
-# Test 3: acquire shared lock
-#
-connection default;
-LOCK TABLE t1 WRITE;
-connection con2;
-INSERT INTO t1(id) VALUES (2);
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection default;
-UNLOCK TABLES;
-#
-# Test 4: table level locks
-#
-connection default;
-LOCK TABLE t1 READ;
-connection con2;
-INSERT INTO t1(id) VALUES(4);
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection default;
-UNLOCK TABLES;
-#
-# Test 5: Waiting on Table Definition Cache (TDC)
-#
-connect con3, localhost, root;
-connection default;
-LOCK TABLE t1 READ;
-connection con3;
-# Sending:
-FLUSH TABLES;
-connection con2;
-SELECT * FROM t1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection default;
-UNLOCK TABLES;
-connection con3;
-# Reaping: FLUSH TABLES
-#
-# Test 6: Timeouts in I_S queries
-#
-connection default;
-CREATE TABLE t2 (id INT);
-LOCK TABLE t2 WRITE;
-connection con3;
-# Sending:
-DROP TABLE t1, t2;
-connection con2;
-SELECT table_name, table_comment FROM information_schema.tables
-WHERE table_schema= 'test' AND table_name= 't1';
-table_name table_comment
-t1 Lock wait timeout exceeded; try restarting transaction
-Warnings:
-Warning 1205 Lock wait timeout exceeded; try restarting transaction
-connection default;
-UNLOCK TABLES;
-connection con3;
-# Reaping: DROP TABLE t1, t2
-connection default;
-# Cleanup
-disconnect con2;
-disconnect con3;
-#
-# Test for bug #51134 "Crash in MDL_lock::destroy on a concurrent
-# DDL workload".
-#
-drop tables if exists t1, t2, t3;
-connect con1, localhost, root, , ;
-connect con2, localhost, root, , ;
-connection default;
-create table t3 (i int);
-connection con1;
-# Lock 't3' so upcoming RENAME is blocked.
-lock table t3 read;
-connection con2;
-# Remember ID for this connection.
-# Start statement which will try to acquire two instances
-# of X metadata lock on the same object.
-# Sending:
-rename tables t1 to t2, t2 to t3;;
-connection default;
-# Wait until RENAME TABLE is blocked on table 't3'.
-# Kill RENAME TABLE.
-kill query ID;
-connection con2;
-# RENAME TABLE should be aborted but should not crash.
-ERROR 70100: Query execution was interrupted
-connection con1;
-unlock tables;
-connection default;
-disconnect con1;
-disconnect con2;
-drop table t3;
-#
-# Test for the bug where upgradable metadata locks was acquired
-# even if the table to altered was temporary.
-# Bug found while working on the related bug #51240.
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (id INT);
-LOCK TABLE t1 WRITE;
-connect con1, localhost, root;
-CREATE TEMPORARY TABLE t1 (id INT);
-ALTER TABLE t1 ADD COLUMN j INT;
-connection default;
-disconnect con1;
-UNLOCK TABLES;
-DROP TABLE t1;
diff --git a/mysql-test/r/lock_multi_bug38499.result b/mysql-test/r/lock_multi_bug38499.result
deleted file mode 100644
index 521ea010816..00000000000
--- a/mysql-test/r/lock_multi_bug38499.result
+++ /dev/null
@@ -1,33 +0,0 @@
-SET @odl_sync_frm = @@global.sync_frm;
-SET @@global.sync_frm = OFF;
-connect locker,localhost,root,,;
-connect writer,localhost,root,,;
-connection default;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1( a INT, b INT );
-CREATE TABLE t2( a INT, b INT );
-INSERT INTO t1 VALUES (1, 1), (2, 2), (3, 3), (4, 4);
-INSERT INTO t2 VALUES (1, 1), (2, 2), (3, 3), (4, 4);
-# 1. test regular tables
-# 1.1. test altering of columns that multiupdate doesn't use
-# 1.1.1. normal mode
-# 1.1.2. PS mode
-# 1.2. test altering of columns that multiupdate uses
-# 1.2.1. normal mode
-connection default;
-# 1.2.2. PS mode
-connection default;
-ALTER TABLE t1 ADD COLUMN a INT;
-# 2. test UNIONs
-# 2.1. test altering of columns that multiupdate doesn't use
-# 2.1.1. normal mode
-# 2.1.2. PS mode
-# 2.2. test altering of columns that multiupdate uses
-# 2.2.1. normal mode
-connection default;
-# 2.2.2. PS mode
-connection default;
-DROP TABLE t1,t2;
-disconnect locker;
-disconnect writer;
-SET @@global.sync_frm = @odl_sync_frm;
diff --git a/mysql-test/r/lock_multi_bug38691.result b/mysql-test/r/lock_multi_bug38691.result
deleted file mode 100644
index 55836e161f4..00000000000
--- a/mysql-test/r/lock_multi_bug38691.result
+++ /dev/null
@@ -1,27 +0,0 @@
-SET @odl_sync_frm = @@global.sync_frm;
-SET @@global.sync_frm = OFF;
-connect locker,localhost,root,,;
-connect writer,localhost,root,,;
-connection default;
-DROP TABLE IF EXISTS t1,t2,t3;
-CREATE TABLE t1 (
-a int(11) unsigned default NULL,
-b varchar(255) default NULL,
-UNIQUE KEY a (a),
-KEY b (b)
-);
-INSERT INTO t1 VALUES (1, 1), (2, 2), (3, 3);
-CREATE TABLE t2 SELECT * FROM t1;
-CREATE TABLE t3 SELECT * FROM t1;
-# test altering of columns that multiupdate doesn't use
-# normal mode
-# PS mode
-# test altering of columns that multiupdate uses
-# normal mode
-connection default;
-# PS mode
-connection default;
-DROP TABLE t1, t2, t3;
-disconnect locker;
-disconnect writer;
-SET @@global.sync_frm = @odl_sync_frm;
diff --git a/mysql-test/r/lock_sync.result b/mysql-test/r/lock_sync.result
deleted file mode 100644
index 7b61c5994b6..00000000000
--- a/mysql-test/r/lock_sync.result
+++ /dev/null
@@ -1,857 +0,0 @@
-#
-# Test how we handle locking in various cases when
-# we read data from MyISAM tables.
-#
-# In this test we mostly check that the SQL-layer correctly
-# determines the type of thr_lock.c lock for a table being
-# read.
-# I.e. that it disallows concurrent inserts when the statement
-# is going to be written to the binary log and therefore
-# should be serialized, and allows concurrent inserts when
-# such serialization is not necessary (e.g. when
-# the statement is not written to binary log).
-#
-# Force concurrent inserts to be performed even if the table
-# has gaps. This allows to simplify clean up in scripts
-# used below (instead of backing up table being inserted
-# into and then restoring it from backup at the end of the
-# script we can simply delete rows which were inserted).
-set @old_concurrent_insert= @@global.concurrent_insert;
-set @@global.concurrent_insert= 2;
-select @@global.concurrent_insert;
-@@global.concurrent_insert
-ALWAYS
-# Prepare playground by creating tables, views,
-# routines and triggers used in tests.
-connect con1, localhost, root,,;
-connect con2, localhost, root,,;
-connection default;
-drop table if exists t0, t1, t2, t3, t4, t5;
-drop view if exists v1, v2;
-drop procedure if exists p1;
-drop procedure if exists p2;
-drop procedure if exists p3;
-drop function if exists f1;
-drop function if exists f2;
-drop function if exists f3;
-drop function if exists f4;
-drop function if exists f5;
-drop function if exists f6;
-drop function if exists f7;
-drop function if exists f8;
-drop function if exists f9;
-drop function if exists f10;
-drop function if exists f11;
-drop function if exists f12;
-drop function if exists f13;
-drop function if exists f14;
-drop function if exists f15;
-drop function if exists f16;
-drop function if exists f17;
-create table t1 (i int primary key);
-insert into t1 values (1), (2), (3), (4), (5);
-create table t2 (j int primary key);
-insert into t2 values (1), (2), (3), (4), (5);
-create table t3 (k int primary key);
-insert into t3 values (1), (2), (3);
-create table t4 (l int primary key);
-insert into t4 values (1);
-create table t5 (l int primary key);
-insert into t5 values (1);
-create view v1 as select i from t1;
-create view v2 as select j from t2 where j in (select i from t1);
-create procedure p1(k int) insert into t2 values (k);
-create function f1() returns int
-begin
-declare j int;
-select i from t1 where i = 1 into j;
-return j;
-end|
-create function f2() returns int
-begin
-declare k int;
-select i from t1 where i = 1 into k;
-insert into t2 values (k + 5);
-return 0;
-end|
-create function f3() returns int
-begin
-return (select i from t1 where i = 3);
-end|
-create function f4() returns int
-begin
-if (select i from t1 where i = 3) then
-return 1;
-else
-return 0;
-end if;
-end|
-create function f5() returns int
-begin
-insert into t2 values ((select i from t1 where i = 1) + 5);
-return 0;
-end|
-create function f6() returns int
-begin
-declare k int;
-select i from v1 where i = 1 into k;
-return k;
-end|
-create function f7() returns int
-begin
-declare k int;
-select j from v2 where j = 1 into k;
-return k;
-end|
-create function f8() returns int
-begin
-declare k int;
-select i from v1 where i = 1 into k;
-insert into t2 values (k+5);
-return k;
-end|
-create function f9() returns int
-begin
-update v2 set j=j+10 where j=1;
-return 1;
-end|
-create function f10() returns int
-begin
-return f1();
-end|
-create function f11() returns int
-begin
-declare k int;
-set k= f1();
-insert into t2 values (k+5);
-return k;
-end|
-create function f12(p int) returns int
-begin
-insert into t2 values (p);
-return p;
-end|
-create function f13(p int) returns int
-begin
-return p;
-end|
-create procedure p2(inout p int)
-begin
-select i from t1 where i = 1 into p;
-end|
-create function f14() returns int
-begin
-declare k int;
-call p2(k);
-insert into t2 values (k+5);
-return k;
-end|
-create function f15() returns int
-begin
-declare k int;
-call p2(k);
-return k;
-end|
-create function f16() returns int
-begin
-create temporary table if not exists temp1 (a int);
-insert into temp1 select * from t1;
-drop temporary table temp1;
-return 1;
-end|
-create function f17() returns int
-begin
-declare j int;
-select i from t1 where i = 1 into j;
-call p3;
-return 1;
-end|
-create procedure p3()
-begin
-create temporary table if not exists temp1 (a int);
-insert into temp1 select * from t1;
-drop temporary table temp1;
-end|
-create trigger t4_bi before insert on t4 for each row
-begin
-declare k int;
-select i from t1 where i=1 into k;
-set new.l= k+1;
-end|
-create trigger t4_bu before update on t4 for each row
-begin
-if (select i from t1 where i=1) then
-set new.l= 2;
-end if;
-end|
-create trigger t4_bd before delete on t4 for each row
-begin
-if !(select i from v1 where i=1) then
-signal sqlstate '45000';
-end if;
-end|
-create trigger t5_bi before insert on t5 for each row
-begin
-set new.l= f1()+1;
-end|
-create trigger t5_bu before update on t5 for each row
-begin
-declare j int;
-call p2(j);
-set new.l= j + 1;
-end|
-#
-# Set common variables to be used by the scripts
-# called below.
-#
-connection con1;
-# Cache all functions used in the tests below so statements
-# calling them won't need to open and lock mysql.proc table
-# and we can assume that each statement locks its tables
-# once during its execution.
-show create procedure p1;
-show create procedure p2;
-show create procedure p3;
-show create function f1;
-show create function f2;
-show create function f3;
-show create function f4;
-show create function f5;
-show create function f6;
-show create function f7;
-show create function f8;
-show create function f9;
-show create function f10;
-show create function f11;
-show create function f12;
-show create function f13;
-show create function f14;
-show create function f15;
-show create function f16;
-show create function f17;
-connection default;
-#
-# 1. Statements that read tables and do not use subqueries.
-#
-#
-# 1.1 Simple SELECT statement.
-#
-# No locks are necessary as this statement won't be written
-# to the binary log and thanks to how MyISAM works SELECT
-# will see version of the table prior to concurrent insert.
-connection default;
-Success: 'select * from t1' allows concurrent inserts into 't1'.
-#
-# 1.2 Multi-UPDATE statement.
-#
-# Has to take shared locks on rows in the table being read as this
-# statement will be written to the binary log and therefore should
-# be serialized with concurrent statements.
-connection default;
-Success: 'update t2, t1 set j= j - 1 where i = j' doesn't allow concurrent inserts into 't1'.
-#
-# 1.3 Multi-DELETE statement.
-#
-# The above is true for this statement as well.
-connection default;
-Success: 'delete t2 from t1, t2 where i = j' doesn't allow concurrent inserts into 't1'.
-#
-# 1.4 DESCRIBE statement.
-#
-# This statement does not really read data from the
-# target table and thus does not take any lock on it.
-# We check this for completeness of coverage.
-lock table t1 write;
-connection con1;
-# This statement should not be blocked.
-describe t1;
-connection default;
-unlock tables;
-#
-# 1.5 SHOW statements.
-#
-# The above is true for SHOW statements as well.
-lock table t1 write;
-connection con1;
-# These statements should not be blocked.
-show keys from t1;
-connection default;
-unlock tables;
-#
-# 2. Statements which read tables through subqueries.
-#
-#
-# 2.1 CALL with a subquery.
-#
-# A strong lock is not necessary as this statement is not
-# written to the binary log as a whole (it is written
-# statement-by-statement).
-connection default;
-Success: 'call p1((select i + 5 from t1 where i = 1))' allows concurrent inserts into 't1'.
-#
-# 2.2 CREATE TABLE with a subquery.
-#
-# Has to take a strong lock on the table being read as
-# this statement is written to the binary log and therefore
-# should be serialized with concurrent statements.
-connection default;
-Success: 'create table t0 select * from t1' doesn't allow concurrent inserts into 't1'.
-drop table t0;
-connection default;
-Success: 'create table t0 select j from t2 where j in (select i from t1)' doesn't allow concurrent inserts into 't1'.
-drop table t0;
-#
-# 2.3 DELETE with a subquery.
-#
-# The above is true for this statement as well.
-connection default;
-Success: 'delete from t2 where j in (select i from t1)' doesn't allow concurrent inserts into 't1'.
-#
-# 2.4 MULTI-DELETE with a subquery.
-#
-# Same is true for this statement as well.
-connection default;
-Success: 'delete t2 from t3, t2 where k = j and j in (select i from t1)' doesn't allow concurrent inserts into 't1'.
-#
-# 2.5 DO with a subquery.
-#
-# A strong lock is not necessary as it is not logged.
-connection default;
-Success: 'do (select i from t1 where i = 1)' allows concurrent inserts into 't1'.
-#
-# 2.6 INSERT with a subquery.
-#
-# Has to take a strong lock on the table being read as
-# this statement is written to the binary log and therefore
-# should be serialized with concurrent inserts.
-connection default;
-Success: 'insert into t2 select i+5 from t1' doesn't allow concurrent inserts into 't1'.
-connection default;
-Success: 'insert into t2 values ((select i+5 from t1 where i = 4))' doesn't allow concurrent inserts into 't1'.
-#
-# 2.7 LOAD DATA with a subquery.
-#
-# The above is true for this statement as well.
-connection default;
-Success: 'load data infile '../../std_data/rpl_loaddata.dat' into table t2 (@a, @b) set j= @b + (select i from t1 where i = 1)' doesn't allow concurrent inserts into 't1'.
-#
-# 2.8 REPLACE with a subquery.
-#
-# Same is true for this statement as well.
-# Suppress warnings for REPLACE ... SELECT
-connection default;
-Success: 'replace into t2 select i+5 from t1' doesn't allow concurrent inserts into 't1'.
-connection default;
-Success: 'replace into t2 values ((select i+5 from t1 where i = 4))' doesn't allow concurrent inserts into 't1'.
-#
-# 2.9 SELECT with a subquery.
-#
-# Strong locks are not necessary as this statement is not written
-# to the binary log and thanks to how MyISAM works this statement
-# sees a version of the table prior to the concurrent insert.
-connection default;
-Success: 'select * from t2 where j in (select i from t1)' allows concurrent inserts into 't1'.
-#
-# 2.10 SET with a subquery.
-#
-# The same is true for this statement as well.
-connection default;
-Success: 'set @a:= (select i from t1 where i = 1)' allows concurrent inserts into 't1'.
-#
-# 2.11 SHOW with a subquery.
-#
-# And for this statement too.
-connection default;
-Success: 'show tables from test where Tables_in_test = 't2' and (select i from t1 where i = 1)' allows concurrent inserts into 't1'.
-connection default;
-Success: 'show columns from t2 where (select i from t1 where i = 1)' allows concurrent inserts into 't1'.
-#
-# 2.12 UPDATE with a subquery.
-#
-# Has to take a strong lock on the table being read as
-# this statement is written to the binary log and therefore
-# should be serialized with concurrent inserts.
-connection default;
-Success: 'update t2 set j= j-10 where j in (select i from t1)' doesn't allow concurrent inserts into 't1'.
-#
-# 2.13 MULTI-UPDATE with a subquery.
-#
-# Same is true for this statement as well.
-connection default;
-Success: 'update t2, t3 set j= j -10 where j=k and j in (select i from t1)' doesn't allow concurrent inserts into 't1'.
-#
-# 3. Statements which read tables through a view.
-#
-#
-# 3.1 SELECT statement which uses some table through a view.
-#
-# Since this statement is not written to the binary log and
-# an old version of the table is accessible thanks to how MyISAM
-# handles concurrent insert, no locking is necessary.
-connection default;
-Success: 'select * from v1' allows concurrent inserts into 't1'.
-connection default;
-Success: 'select * from v2' allows concurrent inserts into 't1'.
-connection default;
-Success: 'select * from t2 where j in (select i from v1)' allows concurrent inserts into 't1'.
-connection default;
-Success: 'select * from t3 where k in (select j from v2)' allows concurrent inserts into 't1'.
-#
-# 3.2 Statements which modify a table and use views.
-#
-# Since such statements are going to be written to the binary
-# log they need to be serialized against concurrent statements
-# and therefore should take strong locks on the data read.
-connection default;
-Success: 'update t2 set j= j-10 where j in (select i from v1)' doesn't allow concurrent inserts into 't1'.
-connection default;
-Success: 'update t3 set k= k-10 where k in (select j from v2)' doesn't allow concurrent inserts into 't1'.
-connection default;
-Success: 'update t2, v1 set j= j-10 where j = i' doesn't allow concurrent inserts into 't1'.
-connection default;
-Success: 'update v2 set j= j-10 where j = 3' doesn't allow concurrent inserts into 't1'.
-#
-# 4. Statements which read tables through stored functions.
-#
-#
-# 4.1 SELECT/SET with a stored function which does not
-# modify data and uses SELECT in its turn.
-#
-# There is no need to take strong locks on the table
-# being selected from in SF as the call to such function
-# won't get into the binary log.
-connection default;
-Success: 'select f1()' allows concurrent inserts into 't1'.
-connection default;
-Success: 'set @a:= f1()' allows concurrent inserts into 't1'.
-#
-# 4.2 INSERT (or other statement which modifies data) with
-# a stored function which does not modify data and uses
-# SELECT.
-#
-# Since such statement is written to the binary log it should
-# be serialized with concurrent statements affecting the data
-# it uses. Therefore it should take strong lock on the data
-# it reads.
-connection default;
-Success: 'insert into t2 values (f1() + 5)' doesn't allow concurrent inserts into 't1'.
-#
-# 4.3 SELECT/SET with a stored function which
-# reads and modifies data.
-#
-# Since a call to such function is written to the binary log,
-# it should be serialized with concurrent statements affecting
-# the data it uses. Hence, a strong lock on the data read
-# should be taken.
-connection default;
-Success: 'select f2()' doesn't allow concurrent inserts into 't1'.
-connection default;
-Success: 'set @a:= f2()' doesn't allow concurrent inserts into 't1'.
-#
-# 4.4. SELECT/SET with a stored function which does not
-# modify data and reads a table through subselect
-# in a control construct.
-#
-# Call to this function won't get to the
-# binary log and thus no strong lock is needed.
-connection default;
-Success: 'select f3()' allows concurrent inserts into 't1'.
-connection default;
-Success: 'set @a:= f3()' allows concurrent inserts into 't1'.
-connection default;
-Success: 'select f4()' allows concurrent inserts into 't1'.
-connection default;
-Success: 'set @a:= f4()' allows concurrent inserts into 't1'.
-#
-# 4.5. INSERT (or other statement which modifies data) with
-# a stored function which does not modify data and reads
-# the table through a subselect in one of its control
-# constructs.
-#
-# Since such statement is written to the binary log it should
-# be serialized with concurrent statements affecting data it
-# uses. Therefore it should take a strong lock on the data
-# it reads.
-connection default;
-Success: 'insert into t2 values (f3() + 5)' doesn't allow concurrent inserts into 't1'.
-connection default;
-Success: 'insert into t2 values (f4() + 6)' doesn't allow concurrent inserts into 't1'.
-#
-# 4.6 SELECT/SET which uses a stored function with
-# DML which reads a table via a subquery.
-#
-# Since call to such function is written to the binary log
-# it should be serialized with concurrent statements.
-# Hence reads should take a strong lock.
-connection default;
-Success: 'select f5()' doesn't allow concurrent inserts into 't1'.
-connection default;
-Success: 'set @a:= f5()' doesn't allow concurrent inserts into 't1'.
-#
-# 4.7 SELECT/SET which uses a stored function which
-# doesn't modify data and reads tables through
-# a view.
-#
-# Calls to such functions won't get into
-# the binary log and thus don't need strong
-# locks.
-connection default;
-Success: 'select f6()' allows concurrent inserts into 't1'.
-connection default;
-Success: 'set @a:= f6()' allows concurrent inserts into 't1'.
-connection default;
-Success: 'select f7()' allows concurrent inserts into 't1'.
-connection default;
-Success: 'set @a:= f7()' allows concurrent inserts into 't1'.
-#
-# 4.8 INSERT which uses stored function which
-# doesn't modify data and reads a table
-# through a view.
-#
-# Since such statement is written to the binary log and
-# should be serialized with concurrent statements affecting
-# the data it uses. Therefore it should take a strong lock on
-# the table it reads.
-connection default;
-Success: 'insert into t3 values (f6() + 5)' doesn't allow concurrent inserts into 't1'.
-connection default;
-Success: 'insert into t3 values (f7() + 5)' doesn't allow concurrent inserts into 't1'.
-#
-# 4.9 SELECT which uses a stored function which
-# modifies data and reads tables through a view.
-#
-# Since a call to such function is written to the binary log
-# it should be serialized with concurrent statements.
-# Hence, reads should take strong locks.
-connection default;
-Success: 'select f8()' doesn't allow concurrent inserts into 't1'.
-connection default;
-Success: 'select f9()' doesn't allow concurrent inserts into 't1'.
-#
-# 4.10 SELECT which uses a stored function which doesn't modify
-# data and reads a table indirectly, by calling another
-# function.
-#
-# Calls to such functions won't get into the binary
-# log and thus don't need to acquire strong locks.
-connection default;
-Success: 'select f10()' allows concurrent inserts into 't1'.
-#
-# 4.11 INSERT which uses a stored function which doesn't modify
-# data and reads a table indirectly, by calling another
-# function.
-#
-# Since such statement is written to the binary log, it should
-# be serialized with concurrent statements affecting the data it
-# uses. Therefore it should take strong locks on data it reads.
-connection default;
-Success: 'insert into t2 values (f10() + 5)' doesn't allow concurrent inserts into 't1'.
-#
-# 4.12 SELECT which uses a stored function which modifies
-# data and reads a table indirectly, by calling another
-# function.
-#
-# Since a call to such function is written to the binary log
-# it should be serialized from concurrent statements.
-# Hence, read should take a strong lock.
-connection default;
-Success: 'select f11()' doesn't allow concurrent inserts into 't1'.
-#
-# 4.13 SELECT that reads a table through a subquery passed
-# as a parameter to a stored function which modifies
-# data.
-#
-# Even though a call to this function is written to the
-# binary log, values of its parameters are written as literals.
-# So there is no need to acquire strong locks for tables used in
-# the subquery.
-connection default;
-Success: 'select f12((select i+10 from t1 where i=1))' allows concurrent inserts into 't1'.
-#
-# 4.14 INSERT that reads a table via a subquery passed
-# as a parameter to a stored function which doesn't
-# modify data.
-#
-# Since this statement is written to the binary log it should
-# be serialized with concurrent statements affecting the data it
-# uses. Therefore it should take strong locks on the data it reads.
-connection default;
-Success: 'insert into t2 values (f13((select i+10 from t1 where i=1)))' doesn't allow concurrent inserts into 't1'.
-#
-# 4.15 SELECT/SET with a stored function which
-# inserts data into a temporary table using
-# SELECT on t1.
-#
-# Since this statement is written to the binary log it should
-# be serialized with concurrent statements affecting the data it
-# uses. Therefore it should take strong locks on the data it reads.
-connection default;
-Success: 'select f16()' doesn't allow concurrent inserts into 't1'.
-connection default;
-Success: 'set @a:= f16()' doesn't allow concurrent inserts into 't1'.
-#
-# 4.16 SELECT/SET with a stored function which call procedure
-# which inserts data into a temporary table using
-# SELECT on t1.
-#
-# Since this statement is written to the binary log it should
-# be serialized with concurrent statements affecting the data it
-# uses. Therefore it should take strong locks on the data it reads.
-connection default;
-Success: 'select f17()' doesn't allow concurrent inserts into 't1'.
-connection default;
-Success: 'set @a:= f17()' doesn't allow concurrent inserts into 't1'.
-#
-# 5. Statements that read tables through stored procedures.
-#
-#
-# 5.1 CALL statement which reads a table via SELECT.
-#
-# Since neither this statement nor its components are
-# written to the binary log, there is no need to take
-# strong locks on the data it reads.
-connection default;
-Success: 'call p2(@a)' allows concurrent inserts into 't1'.
-#
-# 5.2 Function that modifies data and uses CALL,
-# which reads a table through SELECT.
-#
-# Since a call to such function is written to the binary
-# log, it should be serialized with concurrent statements.
-# Hence, in this case reads should take strong locks on data.
-connection default;
-Success: 'select f14()' doesn't allow concurrent inserts into 't1'.
-#
-# 5.3 SELECT that calls a function that doesn't modify data and
-# uses a CALL statement that reads a table via SELECT.
-#
-# Calls to such functions won't get into the binary
-# log and thus don't need to acquire strong locks.
-connection default;
-Success: 'select f15()' allows concurrent inserts into 't1'.
-#
-# 5.4 INSERT which calls function which doesn't modify data and
-# uses CALL statement which reads table through SELECT.
-#
-# Since such statement is written to the binary log it should
-# be serialized with concurrent statements affecting data it
-# uses. Therefore it should take strong locks on data it reads.
-connection default;
-Success: 'insert into t2 values (f15()+5)' doesn't allow concurrent inserts into 't1'.
-#
-# 6. Statements that use triggers.
-#
-#
-# 6.1 Statement invoking a trigger that reads table via SELECT.
-#
-# Since this statement is written to the binary log it should
-# be serialized with concurrent statements affecting the data
-# it uses. Therefore, it should take strong locks on the data
-# it reads.
-connection default;
-Success: 'insert into t4 values (2)' doesn't allow concurrent inserts into 't1'.
-#
-# 6.2 Statement invoking a trigger that reads table through
-# a subquery in a control construct.
-#
-# The above is true for this statement as well.
-connection default;
-Success: 'update t4 set l= 2 where l = 1' doesn't allow concurrent inserts into 't1'.
-#
-# 6.3 Statement invoking a trigger that reads a table through
-# a view.
-#
-# And for this statement.
-connection default;
-Success: 'delete from t4 where l = 1' doesn't allow concurrent inserts into 't1'.
-#
-# 6.4 Statement invoking a trigger that reads a table through
-# a stored function.
-#
-# And for this statement.
-connection default;
-Success: 'insert into t5 values (2)' doesn't allow concurrent inserts into 't1'.
-#
-# 6.5 Statement invoking a trigger that reads a table through
-# stored procedure.
-#
-# And for this statement.
-connection default;
-Success: 'update t5 set l= 2 where l = 1' doesn't allow concurrent inserts into 't1'.
-# Clean-up.
-drop function f1;
-drop function f2;
-drop function f3;
-drop function f4;
-drop function f5;
-drop function f6;
-drop function f7;
-drop function f8;
-drop function f9;
-drop function f10;
-drop function f11;
-drop function f12;
-drop function f13;
-drop function f14;
-drop function f15;
-drop function f16;
-drop function f17;
-drop view v1, v2;
-drop procedure p1;
-drop procedure p2;
-drop procedure p3;
-drop table t1, t2, t3, t4, t5;
-disconnect con1;
-disconnect con2;
-set @@global.concurrent_insert= @old_concurrent_insert;
-#
-# Bug#50821 Deadlock between LOCK TABLES and ALTER TABLE
-#
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1(id INT);
-CREATE TABLE t2(id INT);
-connect con2, localhost, root;
-START TRANSACTION;
-SELECT * FROM t1;
-id
-connection default;
-# Sending:
-ALTER TABLE t1 ADD COLUMN j INT;
-connection con2;
-# This used to cause a deadlock.
-INSERT INTO t2 SELECT * FROM t1;
-COMMIT;
-connection default;
-# Reaping ALTER TABLE t1 ADD COLUMN j INT
-DROP TABLE t1, t2;
-disconnect con2;
-#
-# Bug#51391 Deadlock involving events during rqg_info_schema test
-#
-CREATE EVENT e1 ON SCHEDULE EVERY 5 HOUR DO SELECT 1;
-CREATE EVENT e2 ON SCHEDULE EVERY 5 HOUR DO SELECT 2;
-connect con1, localhost, root;
-SET DEBUG_SYNC="before_lock_tables_takes_lock SIGNAL drop WAIT_FOR query";
-# Sending:
-DROP EVENT e1;;
-connection default;
-SET DEBUG_SYNC="now WAIT_FOR drop";
-SELECT name FROM mysql.event, INFORMATION_SCHEMA.GLOBAL_VARIABLES
-WHERE definer = VARIABLE_VALUE;
-name
-SET DEBUG_SYNC="now SIGNAL query";
-connection con1;
-# Reaping: DROP EVENT t1
-disconnect con1;
-connection default;
-DROP EVENT e2;
-SET DEBUG_SYNC="RESET";
-#
-# Bug#57130 crash in Item_field::print during SHOW CREATE TABLE or VIEW
-#
-DROP TABLE IF EXISTS t1;
-DROP VIEW IF EXISTS v1;
-DROP FUNCTION IF EXISTS f1;
-CREATE TABLE t1(a INT);
-CREATE FUNCTION f1() RETURNS INTEGER RETURN 1;
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE f1() = 1;
-DROP FUNCTION f1;
-connect con2, localhost, root;
-connect con1, localhost, root;
-SET DEBUG_SYNC= 'open_tables_after_open_and_process_table SIGNAL opened WAIT_FOR dropped EXECUTE 2';
-# Sending:
-SHOW CREATE VIEW v1;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR opened';
-SET DEBUG_SYNC= 'now SIGNAL dropped';
-SET DEBUG_SYNC= 'now WAIT_FOR opened';
-# Sending:
-FLUSH TABLES;
-connection default;
-# Waiting for FLUSH TABLES to be blocked.
-SET DEBUG_SYNC= 'now SIGNAL dropped';
-connection con1;
-# Reaping: SHOW CREATE VIEW v1
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` where `f1`() = 1 latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-connection con2;
-# Reaping: FLUSH TABLES
-connection default;
-SET DEBUG_SYNC= 'RESET';
-DROP VIEW v1;
-DROP TABLE t1;
-disconnect con1;
-disconnect con2;
-#
-# Bug#28587 SELECT is blocked by INSERT waiting on read lock, even with low_priority_updates
-#
-set low_priority_updates=1;
-drop table if exists t1;
-drop table if exists t2;
-set debug_sync='RESET';
-create table t1 (a int, b int, unique key t1$a (a));
-create table t2 (j int, k int);
-set debug_sync='after_lock_tables_takes_lock SIGNAL parked WAIT_FOR go';
-# Sending:
-insert into t2 select * from t1;;
-connect update,localhost,root,,;
-connection update;
-set debug_sync='now WAIT_FOR parked';
-set low_priority_updates=1;
-show variables like 'low_priority_updates';
-Variable_name Value
-low_priority_updates ON
-insert into t1 values (1, 2) ON DUPLICATE KEY UPDATE b = 2;;
-connect select,localhost,root,,;
-select * from t1;
-a b
-set debug_sync='now SIGNAL go';
-connection default;
-disconnect update;
-disconnect select;
-# Reaping INSERT SELECT
-drop tables t1, t2;
-set low_priority_updates=default;
-set debug_sync='RESET';
-#
-# Additional test coverage for LOCK TABLES ... READ LOCAL
-# for InnoDB tables.
-#
-# Check that we correctly handle deadlocks which can occur
-# during metadata lock upgrade which happens when one tries
-# to use LOCK TABLES ... READ LOCAL for InnoDB tables.
-CREATE TABLE t1 (i INT) ENGINE=InnoDB;
-CREATE TABLE t2 (j INT) ENGINE=InnoDB;
-# Execute LOCK TABLE READ LOCK which will pause after acquiring
-# SR metadata lock and before upgrading it to SRO lock.
-SET DEBUG_SYNC="after_open_table_mdl_shared SIGNAL locked WAIT_FOR go";
-# Sending:
-LOCK TABLE t1 READ LOCAL;
-connect con1, localhost, root;
-SET DEBUG_SYNC="now WAIT_FOR locked";
-# Execute RENAME TABLE which will try to acquire X lock.
-# Sending:
-RENAME TABLE t1 TO t3, t2 TO t1, t3 TO t2;
-connect con2, localhost, root;
-# Wait until RENAME TABLE is blocked.
-# Resume LOCK TABLE statement. It should try to
-# upgrade SR lock to SRO lock which will create
-# deadlock due to presence of pending X lock.
-# Deadlock should be detected and LOCK TABLES should
-# release its MDL and retry opening of tables.
-SET DEBUG_SYNC="now SIGNAL go";
-connection con1;
-# RENAME TABLE should be able to complete. Reap it.
-connection default;
-# Reap LOCK TABLES.
-# Check that we see new version of table.
-SELECT * FROM t1;
-j
-UNLOCK TABLES;
-# Clean-up.
-SET DEBUG_SYNC="RESET";
-disconnect con1;
-disconnect con2;
-DROP TABLES t1, t2;
diff --git a/mysql-test/r/lock_tables_lost_commit.result b/mysql-test/r/lock_tables_lost_commit.result
deleted file mode 100644
index 769e9734c7a..00000000000
--- a/mysql-test/r/lock_tables_lost_commit.result
+++ /dev/null
@@ -1,15 +0,0 @@
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection con1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT) ENGINE=innodb;
-LOCK TABLES t1 WRITE;
-INSERT INTO t1 VALUES(10);
-disconnect con1;
-connection con2;
-SELECT * FROM t1;
-a
-10
-DROP TABLE t1;
-connection default;
-disconnect con2;
diff --git a/mysql-test/r/locked_temporary-5955.result b/mysql-test/r/locked_temporary-5955.result
deleted file mode 100644
index ee2a9f499b2..00000000000
--- a/mysql-test/r/locked_temporary-5955.result
+++ /dev/null
@@ -1,4 +0,0 @@
-connect con1,localhost,root,,;
-CREATE TEMPORARY TABLE tmp (i INT) ENGINE=InnoDB;
-LOCK TABLES tmp AS p WRITE;
-disconnect con1;
diff --git a/mysql-test/r/log_errchk.result b/mysql-test/r/log_errchk.result
deleted file mode 100644
index e1968e29662..00000000000
--- a/mysql-test/r/log_errchk.result
+++ /dev/null
@@ -1,11 +0,0 @@
-# Case 1: Setting fifo file to general_log_file and slow_query_log_file
-# system variable.
-SET GLOBAL general_log_file="MYSQLTEST_VARDIR/tmp/general_log.fifo";;
-ERROR 42000: Variable 'general_log_file' can't be set to the value of 'MYSQLTEST_VARDIR/tmp/general_log.fifo'
-SET GLOBAL slow_query_log_file="MYSQLTEST_VARDIR/tmp/slow_log.fifo";;
-ERROR 42000: Variable 'slow_query_log_file' can't be set to the value of 'MYSQLTEST_VARDIR/tmp/slow_log.fifo'
-# Case 2: Starting server with fifo file as general log file
-# and slow query log file.
-call mtr.add_suppression("Could not use .* for logging \\(error 6\\)");
-call mtr.add_suppression("File '.*' not found \\(Errcode: 6 ");
-Setting fifo file as general log file and slow query log failed.
diff --git a/mysql-test/r/log_slow.result b/mysql-test/r/log_slow.result
deleted file mode 100644
index 59149633b99..00000000000
--- a/mysql-test/r/log_slow.result
+++ /dev/null
@@ -1,79 +0,0 @@
-select @@log_slow_filter;
-@@log_slow_filter
-admin,filesort,filesort_on_disk,filesort_priority_queue,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
-select @@log_slow_rate_limit;
-@@log_slow_rate_limit
-1
-select @@log_slow_verbosity;
-@@log_slow_verbosity
-
-show variables like "log_slow%";
-Variable_name Value
-log_slow_admin_statements ON
-log_slow_disabled_statements sp
-log_slow_filter admin,filesort,filesort_on_disk,filesort_priority_queue,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
-log_slow_rate_limit 1
-log_slow_slave_statements ON
-log_slow_verbosity
-set @org_slow_query_log= @@global.slow_query_log;
-set @@log_slow_filter= "filesort,filesort_on_disk,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk,admin";
-select @@log_slow_filter;
-@@log_slow_filter
-admin,filesort,filesort_on_disk,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
-set @@log_slow_filter="admin,admin";
-select @@log_slow_filter;
-@@log_slow_filter
-admin
-set @@log_slow_filter=7;
-select @@log_slow_filter;
-@@log_slow_filter
-admin,filesort,filesort_on_disk
-set @@log_slow_filter= "filesort,impossible,impossible2,admin";
-ERROR 42000: Variable 'log_slow_filter' can't be set to the value of 'impossible'
-set @@log_slow_filter= "filesort, admin";
-ERROR 42000: Variable 'log_slow_filter' can't be set to the value of ' admin'
-set @@log_slow_filter= 1<<31;
-ERROR 42000: Variable 'log_slow_filter' can't be set to the value of '2147483648'
-select @@log_slow_filter;
-@@log_slow_filter
-admin,filesort,filesort_on_disk
-set @@log_slow_verbosity= "query_plan,innodb";
-select @@log_slow_verbosity;
-@@log_slow_verbosity
-innodb,query_plan
-set @@log_slow_verbosity=1;
-select @@log_slow_verbosity;
-@@log_slow_verbosity
-innodb
-show fields from mysql.slow_log;
-Field Type Null Key Default Extra
-start_time timestamp(6) NO current_timestamp(6) on update current_timestamp(6)
-user_host mediumtext NO NULL
-query_time time(6) NO NULL
-lock_time time(6) NO NULL
-rows_sent int(11) NO NULL
-rows_examined int(11) NO NULL
-db varchar(512) NO NULL
-last_insert_id int(11) NO NULL
-insert_id int(11) NO NULL
-server_id int(10) unsigned NO NULL
-sql_text mediumtext NO NULL
-thread_id bigint(21) unsigned NO NULL
-rows_affected int(11) NO NULL
-flush slow logs;
-set long_query_time=0.1;
-set log_slow_filter='';
-set global slow_query_log=1;
-set global log_output='TABLE';
-select sleep(0.5);
-sleep(0.5)
-0
-select count(*) FROM mysql.slow_log;
-count(*)
-1
-set @@long_query_time=default;
-set global slow_query_log= @org_slow_query_log;
-set @@log_slow_filter=default;
-set @@log_slow_verbosity=default;
-set global log_output= default;
-truncate mysql.slow_log;
diff --git a/mysql-test/r/log_state.result b/mysql-test/r/log_state.result
deleted file mode 100644
index d4f98a6bde9..00000000000
--- a/mysql-test/r/log_state.result
+++ /dev/null
@@ -1,284 +0,0 @@
-call mtr.add_suppression("options .* --log_slow_queries is not set");
-SET @old_general_log= @@global.general_log;
-SET @old_general_log_file= @@global.general_log_file;
-SET @old_slow_query_log= @@global.slow_query_log;
-SET @old_slow_query_log_file= @@global.slow_query_log_file;
-set global general_log= OFF;
-truncate table mysql.general_log;
-truncate table mysql.slow_log;
-show global variables
-where Variable_name = 'general_log' or Variable_name = 'slow_query_log';
-Variable_name Value
-general_log OFF
-slow_query_log OFF
-flush logs;
-set global general_log= ON;
-create table t1(f1 int);
-select * from mysql.general_log;
-event_time user_host thread_id server_id command_type argument
-TIMESTAMP USER_HOST # 1 Query create table t1(f1 int)
-TIMESTAMP USER_HOST # 1 Query select * from mysql.general_log
-set global general_log= OFF;
-drop table t1;
-select * from mysql.general_log;
-event_time user_host thread_id server_id command_type argument
-TIMESTAMP USER_HOST # 1 Query create table t1(f1 int)
-TIMESTAMP USER_HOST # 1 Query select * from mysql.general_log
-TIMESTAMP USER_HOST # 1 Query set global general_log= OFF
-set global general_log= ON;
-flush logs;
-show global variables
-where Variable_name = 'general_log' or Variable_name = 'slow_query_log';
-Variable_name Value
-general_log ON
-slow_query_log OFF
-connect con1,localhost,root,,;
-connection con1;
-set @long_query_time = <long_query_time>;
-set session long_query_time = @long_query_time;
-select sleep(@long_query_time + 1);
-sleep(@long_query_time + 1)
-0
-select * from mysql.slow_log where sql_text NOT LIKE '%slow_log%';
-start_time user_host query_time lock_time rows_sent rows_examined db last_insert_id insert_id server_id sql_text thread_id rows_affected
-connection default;
-set global slow_query_log= ON;
-set local slow_query_log= ON;
-connection con1;
-set session long_query_time = @long_query_time;
-select sleep(@long_query_time + 1);
-sleep(@long_query_time + 1)
-0
-select * from mysql.slow_log where sql_text NOT LIKE '%slow_log%';
-start_time user_host query_time lock_time rows_sent rows_examined db last_insert_id insert_id server_id sql_text thread_id rows_affected
-set local slow_query_log= ON;
-select sleep(@long_query_time + 2);
-sleep(@long_query_time + 2)
-0
-select * from mysql.slow_log where sql_text NOT LIKE '%slow_log%';
-start_time user_host query_time lock_time rows_sent rows_examined db last_insert_id insert_id server_id sql_text thread_id rows_affected
-TIMESTAMP USER_HOST QUERY_TIME 00:00:00.000000 1 0 test 0 0 1 select sleep(@long_query_time + 2) THREAD_ID 0
-connection default;
-show global variables
-where Variable_name = 'general_log' or Variable_name = 'slow_query_log';
-Variable_name Value
-general_log ON
-slow_query_log ON
-set global general_log= ON;
-set global general_log= OFF;
-set global general_log= OFF;
-set global slow_query_log= ON;
-set global slow_query_log= OFF;
-set global slow_query_log= OFF;
-set local slow_query_log= ON;
-set global general_log= ON;
-truncate table mysql.general_log;
-create table t1(f1 int);
-drop table t1;
-select * from mysql.general_log;
-event_time user_host thread_id server_id command_type argument
-TIMESTAMP USER_HOST # 1 Query create table t1(f1 int)
-TIMESTAMP USER_HOST # 1 Query drop table t1
-TIMESTAMP USER_HOST # 1 Query select * from mysql.general_log
-set global general_log= OFF;
-truncate table mysql.general_log;
-select * from mysql.general_log;
-event_time user_host thread_id server_id command_type argument
-set global general_log= ON;
-show global variables
-where Variable_name = 'general_log' or Variable_name = 'slow_query_log';
-Variable_name Value
-general_log ON
-slow_query_log OFF
-show variables like 'general_log_file';
-Variable_name Value
-general_log_file #
-show variables like 'slow_query_log_file';
-Variable_name Value
-slow_query_log_file #
-show variables like 'log_output';
-Variable_name Value
-log_output FILE,TABLE
-set global general_log_file='/not existing path/log.master';
-ERROR 42000: Variable 'general_log_file' can't be set to the value of '/not existing path/log.master'
-set global general_log_file='MYSQLTEST_VARDIR';
-ERROR 42000: Variable 'general_log_file' can't be set to the value of 'MYSQLTEST_VARDIR'
-set global general_log_file='';
-ERROR 42000: Variable 'general_log_file' can't be set to the value of ''
-show variables like 'general_log_file';
-Variable_name Value
-general_log_file #
-set global general_log= OFF;
-set global general_log_file='MYSQLTEST_VARDIR/tmp/log.master';
-set global general_log= ON;
-create table t1(f1 int);
-drop table t1;
-set global general_log= OFF;
-set global general_log_file=default;
-set global general_log= ON;
-create table t1(f1 int);
-drop table t1;
-show variables like 'general_log_file';
-Variable_name Value
-general_log_file #
-show variables like 'slow_query_log_file';
-Variable_name Value
-slow_query_log_file #
-set global general_log= default;
-set global slow_query_log= default;
-set global general_log_file= default;
-set global slow_query_log_file= default;
-show variables like 'general_log';
-Variable_name Value
-general_log OFF
-show variables like 'slow_query_log';
-Variable_name Value
-slow_query_log ON
-show global variables like 'slow_query_log';
-Variable_name Value
-slow_query_log OFF
-set global general_log=ON;
-set global log_output=default;
-show variables like 'log_output';
-Variable_name Value
-log_output FILE
-set global general_log=OFF;
-set global log_output=FILE;
-truncate table mysql.general_log;
-show variables like 'log_output';
-Variable_name Value
-log_output FILE
-set global general_log=ON;
-create table t1(f1 int);
-select * from mysql.general_log;
-event_time user_host thread_id server_id command_type argument
-set global general_log=OFF;
-set global log_output="FILE,TABLE";
-show variables like 'log_output';
-Variable_name Value
-log_output FILE,TABLE
-set global general_log=ON;
-drop table t1;
-select * from mysql.general_log;
-event_time user_host thread_id server_id command_type argument
-TIMESTAMP USER_HOST # 1 Query drop table t1
-TIMESTAMP USER_HOST # 1 Query select * from mysql.general_log
-SET @@global.general_log = @old_general_log;
-SET @@global.general_log_file = @old_general_log_file;
-SET @@global.slow_query_log = @old_slow_query_log;
-SET @@global.slow_query_log_file = @old_slow_query_log_file;
-SET GLOBAL general_log = ON;
-SET GLOBAL slow_query_log = ON;
-FLUSH TABLES WITH READ LOCK;
-SET GLOBAL general_log = OFF;
-SET GLOBAL slow_query_log = OFF;
-UNLOCK TABLES;
-FLUSH TABLES WITH READ LOCK;
-SET GLOBAL general_log = ON;
-SET GLOBAL slow_query_log = ON;
-UNLOCK TABLES;
-SET GLOBAL READ_ONLY = ON;
-SET GLOBAL general_log = OFF;
-SET GLOBAL slow_query_log = OFF;
-SET GLOBAL READ_ONLY = OFF;
-SET GLOBAL READ_ONLY = ON;
-SET GLOBAL general_log = ON;
-SET GLOBAL slow_query_log = ON;
-SET GLOBAL READ_ONLY = OFF;
-SET GLOBAL general_log = @old_general_log;
-SET GLOBAL slow_query_log = @old_slow_query_log;
-SET GLOBAL general_log_file= CONCAT('/not existing path/log.maste', 'r');
-ERROR 42000: Variable 'general_log_file' can't be set to the value of '/not existing path/log.master'
-SET GLOBAL general_log_file= NULL;
-ERROR 42000: Variable 'general_log_file' can't be set to the value of 'NULL'
-SET GLOBAL slow_query_log_file= CONCAT('/not existing path/log.maste', 'r');
-ERROR 42000: Variable 'slow_query_log_file' can't be set to the value of '/not existing path/log.master'
-SET GLOBAL slow_query_log_file= NULL;
-ERROR 42000: Variable 'slow_query_log_file' can't be set to the value of 'NULL'
-SET GLOBAL general_log_file= @old_general_log_file;
-SET GLOBAL slow_query_log_file= @old_slow_query_log_file;
-
-# --
-# -- Bug#32748: Inconsistent handling of assignments to
-# -- general_log_file/slow_query_log_file.
-# --
-
-SET GLOBAL general_log_file = 'bug32748.query.log';
-SET GLOBAL slow_query_log_file = 'bug32748.slow.log';
-
-SHOW VARIABLES LIKE '%log_file';
-Variable_name Value
-general_log_file bug32748.query.log
-slow_query_log_file bug32748.slow.log
-
-SET GLOBAL general_log_file = @old_general_log_file;
-SET GLOBAL slow_query_log_file = @old_slow_query_log_file;
-
-# -- End of Bug#32748.
-#
-# Bug #49756 Rows_examined is always 0 in the slow query log
-# for update statements
-#
-SET @old_log_output = @@global.log_output;
-SET GLOBAL log_output = "TABLE";
-SET GLOBAL slow_query_log = ON;
-SET GLOBAL long_query_time = 0.001;
-TRUNCATE TABLE mysql.slow_log;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (b INT, PRIMARY KEY (b));
-INSERT INTO t2 VALUES (3),(4);
-connect con2,localhost,root,,;
-INSERT INTO t1 VALUES (1+sleep(.02)),(2);
-INSERT INTO t1 SELECT b+sleep(.02) from t2;
-UPDATE t1 SET a=a+sleep(.02) WHERE a>2;
-UPDATE t1 SET a=a+sleep(.02) ORDER BY a DESC;
-UPDATE t2 set b=b+sleep(.02) limit 1;
-UPDATE t1 SET a=a+sleep(.02) WHERE a in (SELECT b from t2);
-DELETE FROM t1 WHERE a=a+sleep(.02) ORDER BY a LIMIT 2;
-SELECT rows_examined,sql_text FROM mysql.slow_log;
-rows_examined sql_text
-0 INSERT INTO t1 VALUES (1+sleep(.02)),(2)
-2 INSERT INTO t1 SELECT b+sleep(.02) from t2
-4 UPDATE t1 SET a=a+sleep(.02) WHERE a>2
-8 UPDATE t1 SET a=a+sleep(.02) ORDER BY a DESC
-1 UPDATE t2 set b=b+sleep(.02) limit 1
-4 UPDATE t1 SET a=a+sleep(.02) WHERE a in (SELECT b from t2)
-6 DELETE FROM t1 WHERE a=a+sleep(.02) ORDER BY a LIMIT 2
-disconnect con2;
-connection default;
-DROP TABLE t1,t2;
-TRUNCATE TABLE mysql.slow_log;
-# end of bug#49756
-End of 5.1 tests
-
-# --
-# -- Bug#38124: "general_log_file" variable silently unset when
-# -- using expression
-# --
-SET GLOBAL general_log_file = DEFAULT;
-SELECT @@general_log_file INTO @my_glf;
-SET GLOBAL general_log_file = 'BUG38124.LOG';
-SELECT @@general_log_file;
-@@general_log_file
-BUG38124.LOG
-SET GLOBAL general_log_file = concat('BUG38124-2.LOG');
-SELECT @@general_log_file;
-@@general_log_file
-BUG38124-2.LOG
-SET GLOBAL general_log_file = substr('BUG38124-2.LOG',3,6);
-SELECT @@general_log_file;
-@@general_log_file
-G38124
-SET GLOBAL general_log_file = DEFAULT;
-SELECT @@general_log_file = @my_glf;
-@@general_log_file = @my_glf
-1
-SET GLOBAL general_log_file = @old_general_log_file;
-disconnect con1;
-connection default;
-SET GLOBAL long_query_time = DEFAULT;
-SET GLOBAL log_output = @old_log_output;
-SET global general_log = @old_general_log;
-SET global general_log_file = @old_general_log_file;
-SET global slow_query_log = @old_slow_query_log;
-SET global slow_query_log_file = @old_slow_query_log_file;
diff --git a/mysql-test/r/log_state_bug33693.result b/mysql-test/r/log_state_bug33693.result
deleted file mode 100644
index abf20fc7aa7..00000000000
--- a/mysql-test/r/log_state_bug33693.result
+++ /dev/null
@@ -1,3 +0,0 @@
-SELECT INSTR(@@general_log_file, 'MYSQLTEST_VARDIR/run');;
-INSTR(@@general_log_file, 'MYSQLTEST_VARDIR/run')
-0
diff --git a/mysql-test/r/log_tables-big.result b/mysql-test/r/log_tables-big.result
deleted file mode 100644
index 392a1bce234..00000000000
--- a/mysql-test/r/log_tables-big.result
+++ /dev/null
@@ -1,40 +0,0 @@
-set @log_output.saved = @@global.log_output;
-set @@global.log_output = 'TABLE';
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection con1;
-set session long_query_time=10;
-select get_lock('bug27638', 1);
-get_lock('bug27638', 1)
-1
-connection con2;
-set session long_query_time=1;
-select get_lock('bug27638', 2);
-get_lock('bug27638', 2)
-0
-select if (query_time >= '00:00:01', 'OK', concat('WRONG: ',query_time)) as qt, sql_text from mysql.slow_log
-where sql_text = 'select get_lock(\'bug27638\', 2)';
-qt sql_text
-OK select get_lock('bug27638', 2)
-select get_lock('bug27638', 60);
-get_lock('bug27638', 60)
-0
-select if (query_time >= '00:00:59', 'OK', concat('WRONG: ',query_time)) as qt, sql_text from mysql.slow_log
-where sql_text = 'select get_lock(\'bug27638\', 60)';
-qt sql_text
-OK select get_lock('bug27638', 60)
-select get_lock('bug27638', 101);
-get_lock('bug27638', 101)
-0
-select if (query_time >= '00:01:40', 'OK', concat('WRONG: ',query_time)) as qt, sql_text from mysql.slow_log
-where sql_text = 'select get_lock(\'bug27638\', 101)';
-qt sql_text
-OK select get_lock('bug27638', 101)
-connection con1;
-select release_lock('bug27638');
-release_lock('bug27638')
-1
-connection default;
-disconnect con1;
-disconnect con2;
-set @@global.log_output = @log_output.saved;
diff --git a/mysql-test/r/log_tables.result b/mysql-test/r/log_tables.result
deleted file mode 100644
index 126230a8765..00000000000
--- a/mysql-test/r/log_tables.result
+++ /dev/null
@@ -1,959 +0,0 @@
-SET SQL_MODE="";
-SET @old_general_log_state = @@global.general_log;
-SET @old_log_output= @@global.log_output;
-SET @old_slow_query_log= @@global.slow_query_log;
-SET @old_general_log= @@global.general_log;
-SET @old_long_query_time= @@session.long_query_time;
-use mysql;
-SET @saved_long_query_time = @@long_query_time;
-SET @saved_log_output = @@log_output;
-SET @saved_general_log = @@GLOBAL.general_log;
-SET @saved_slow_query_log = @@GLOBAL.slow_query_log;
-SELECT @saved_long_query_time, @saved_log_output, @saved_general_log, @saved_slow_query_log;
-@saved_long_query_time @saved_log_output @saved_general_log @saved_slow_query_log
-10 FILE,TABLE 1 1
-truncate table general_log;
-select * from general_log;
-event_time user_host thread_id server_id command_type argument
-TIMESTAMP USER_HOST THREAD_ID 1 Query select * from general_log
-truncate table slow_log;
-select * from slow_log;
-start_time user_host query_time lock_time rows_sent rows_examined db last_insert_id insert_id server_id sql_text thread_id rows_affected
-truncate table general_log;
-select * from general_log where argument like '%general_log%';
-event_time user_host thread_id server_id command_type argument
-TIMESTAMP USER_HOST THREAD_ID 1 Query select * from general_log where argument like '%general_log%'
-create table join_test (verbose_comment varchar (80), command_type varchar(64));
-insert into join_test values ("User performed a usual SQL query", "Query");
-insert into join_test values ("New DB connection was registered", "Connect");
-insert into join_test values ("Get the table info", "Field List");
-select verbose_comment, user_host, argument
-from mysql.general_log join join_test
-on (mysql.general_log.command_type = join_test.command_type);
-verbose_comment user_host argument
-User performed a usual SQL query USER_HOST select * from general_log where argument like '%general_log%'
-User performed a usual SQL query USER_HOST create table join_test (verbose_comment varchar (80), command_type varchar(64))
-User performed a usual SQL query USER_HOST insert into join_test values ("User performed a usual SQL query", "Query")
-User performed a usual SQL query USER_HOST insert into join_test values ("New DB connection was registered", "Connect")
-User performed a usual SQL query USER_HOST insert into join_test values ("Get the table info", "Field List")
-User performed a usual SQL query USER_HOST select verbose_comment, user_host, argument
-from mysql.general_log join join_test
-on (mysql.general_log.command_type = join_test.command_type)
-drop table join_test;
-flush logs;
-lock tables mysql.general_log WRITE;
-ERROR HY000: You can't use locks with log tables
-lock tables mysql.slow_log WRITE;
-ERROR HY000: You can't use locks with log tables
-lock tables mysql.general_log READ;
-ERROR HY000: You can't use locks with log tables
-lock tables mysql.slow_log READ;
-ERROR HY000: You can't use locks with log tables
-lock tables mysql.slow_log READ LOCAL, mysql.general_log READ LOCAL;
-ERROR HY000: You can't use locks with log tables
-show create table mysql.general_log;
-Table Create Table
-general_log CREATE TABLE `general_log` (
- `event_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `command_type` varchar(64) NOT NULL,
- `argument` mediumtext NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log'
-show fields from mysql.general_log;
-Field Type Null Key Default Extra
-event_time timestamp(6) NO current_timestamp(6) on update current_timestamp(6)
-user_host mediumtext NO NULL
-thread_id bigint(21) unsigned NO NULL
-server_id int(10) unsigned NO NULL
-command_type varchar(64) NO NULL
-argument mediumtext NO NULL
-show create table mysql.slow_log;
-Table Create Table
-slow_log CREATE TABLE `slow_log` (
- `start_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `query_time` time(6) NOT NULL,
- `lock_time` time(6) NOT NULL,
- `rows_sent` int(11) NOT NULL,
- `rows_examined` int(11) NOT NULL,
- `db` varchar(512) NOT NULL,
- `last_insert_id` int(11) NOT NULL,
- `insert_id` int(11) NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `sql_text` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `rows_affected` int(11) NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log'
-show fields from mysql.slow_log;
-Field Type Null Key Default Extra
-start_time timestamp(6) NO current_timestamp(6) on update current_timestamp(6)
-user_host mediumtext NO NULL
-query_time time(6) NO NULL
-lock_time time(6) NO NULL
-rows_sent int(11) NO NULL
-rows_examined int(11) NO NULL
-db varchar(512) NO NULL
-last_insert_id int(11) NO NULL
-insert_id int(11) NO NULL
-server_id int(10) unsigned NO NULL
-sql_text mediumtext NO NULL
-thread_id bigint(21) unsigned NO NULL
-rows_affected int(11) NO NULL
-flush logs;
-flush tables;
-SET GLOBAL GENERAL_LOG=ON;
-SET GLOBAL SLOW_QUERY_LOG=ON;
-show open tables;
-Database Table In_use Name_locked
-mysql general_log 0 0
-flush logs;
-show open tables;
-Database Table In_use Name_locked
-mysql general_log 0 0
-flush tables;
-show open tables;
-Database Table In_use Name_locked
-mysql general_log 0 0
-SET GLOBAL GENERAL_LOG=OFF;
-SET GLOBAL SLOW_QUERY_LOG=OFF;
-flush tables;
-show open tables;
-Database Table In_use Name_locked
-SET GLOBAL GENERAL_LOG=ON;
-SET GLOBAL SLOW_QUERY_LOG=ON;
-truncate table mysql.general_log;
-set names binary;
-select _koi8r'ÔÅÓÔ' as test;
-test
-ÔÅÓÔ
-select * from mysql.general_log;
-event_time user_host thread_id server_id command_type argument
-TIMESTAMP USER_HOST THREAD_ID 1 Query set names binary
-TIMESTAMP USER_HOST THREAD_ID 1 Query select _koi8r'\xD4\xC5\xD3\xD4' as test
-TIMESTAMP USER_HOST THREAD_ID 1 Query select * from mysql.general_log
-set names utf8;
-truncate table mysql.general_log;
-set names utf8;
-create table bug16905 (s char(15) character set utf8 default 'пуÑто');
-insert into bug16905 values ('новое');
-select * from mysql.general_log;
-event_time user_host thread_id server_id command_type argument
-TIMESTAMP USER_HOST THREAD_ID 1 Query set names utf8
-TIMESTAMP USER_HOST THREAD_ID 1 Query create table bug16905 (s char(15) character set utf8 default 'пуÑто')
-TIMESTAMP USER_HOST THREAD_ID 1 Query insert into bug16905 values ('новое')
-TIMESTAMP USER_HOST THREAD_ID 1 Query select * from mysql.general_log
-drop table bug16905;
-truncate table mysql.slow_log;
-set session long_query_time=1;
-select sleep(2);
-sleep(2)
-0
-select * from mysql.slow_log;
-start_time user_host query_time lock_time rows_sent rows_examined db last_insert_id insert_id server_id sql_text thread_id rows_affected
-TIMESTAMP USER_HOST QUERY_TIME 00:00:00.000000 1 0 mysql 0 0 1 select sleep(2) THREAD_ID 0
-set @@session.long_query_time = @saved_long_query_time;
-alter table mysql.general_log engine=myisam;
-ERROR HY000: You cannot 'ALTER' a log table if logging is enabled
-alter table mysql.slow_log engine=myisam;
-ERROR HY000: You cannot 'ALTER' a log table if logging is enabled
-drop table mysql.general_log;
-ERROR HY000: You cannot 'DROP' a log table if logging is enabled
-drop table mysql.slow_log;
-ERROR HY000: You cannot 'DROP' a log table if logging is enabled
-set global general_log='OFF';
-alter table mysql.slow_log engine=myisam;
-ERROR HY000: You cannot 'ALTER' a log table if logging is enabled
-set global slow_query_log='OFF';
-show create table mysql.general_log;
-Table Create Table
-general_log CREATE TABLE `general_log` (
- `event_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `command_type` varchar(64) NOT NULL,
- `argument` mediumtext NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log'
-show create table mysql.slow_log;
-Table Create Table
-slow_log CREATE TABLE `slow_log` (
- `start_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `query_time` time(6) NOT NULL,
- `lock_time` time(6) NOT NULL,
- `rows_sent` int(11) NOT NULL,
- `rows_examined` int(11) NOT NULL,
- `db` varchar(512) NOT NULL,
- `last_insert_id` int(11) NOT NULL,
- `insert_id` int(11) NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `sql_text` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `rows_affected` int(11) NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log'
-alter table mysql.general_log engine=myisam;
-alter table mysql.slow_log engine=myisam;
-show create table mysql.general_log;
-Table Create Table
-general_log CREATE TABLE `general_log` (
- `event_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `command_type` varchar(64) NOT NULL,
- `argument` mediumtext NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='General log'
-show create table mysql.slow_log;
-Table Create Table
-slow_log CREATE TABLE `slow_log` (
- `start_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `query_time` time(6) NOT NULL,
- `lock_time` time(6) NOT NULL,
- `rows_sent` int(11) NOT NULL,
- `rows_examined` int(11) NOT NULL,
- `db` varchar(512) NOT NULL,
- `last_insert_id` int(11) NOT NULL,
- `insert_id` int(11) NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `sql_text` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `rows_affected` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Slow log'
-set global general_log='ON';
-set global slow_query_log='ON';
-select * from mysql.general_log;
-event_time user_host thread_id server_id command_type argument
-TIMESTAMP USER_HOST THREAD_ID 1 Query set names utf8
-TIMESTAMP USER_HOST THREAD_ID 1 Query create table bug16905 (s char(15) character set utf8 default 'пуÑто')
-TIMESTAMP USER_HOST THREAD_ID 1 Query insert into bug16905 values ('новое')
-TIMESTAMP USER_HOST THREAD_ID 1 Query select * from mysql.general_log
-TIMESTAMP USER_HOST THREAD_ID 1 Query drop table bug16905
-TIMESTAMP USER_HOST THREAD_ID 1 Query truncate table mysql.slow_log
-TIMESTAMP USER_HOST THREAD_ID 1 Query set session long_query_time=1
-TIMESTAMP USER_HOST THREAD_ID 1 Query select sleep(2)
-TIMESTAMP USER_HOST THREAD_ID 1 Query select * from mysql.slow_log
-TIMESTAMP USER_HOST THREAD_ID 1 Query set @@session.long_query_time = @saved_long_query_time
-TIMESTAMP USER_HOST THREAD_ID 1 Query alter table mysql.general_log engine=myisam
-TIMESTAMP USER_HOST THREAD_ID 1 Query alter table mysql.slow_log engine=myisam
-TIMESTAMP USER_HOST THREAD_ID 1 Query drop table mysql.general_log
-TIMESTAMP USER_HOST THREAD_ID 1 Query drop table mysql.slow_log
-TIMESTAMP USER_HOST THREAD_ID 1 Query set global general_log='OFF'
-TIMESTAMP USER_HOST THREAD_ID 1 Query set global slow_query_log='ON'
-TIMESTAMP USER_HOST THREAD_ID 1 Query select * from mysql.general_log
-flush logs;
-lock tables mysql.general_log WRITE;
-ERROR HY000: You can't use locks with log tables
-lock tables mysql.slow_log WRITE;
-ERROR HY000: You can't use locks with log tables
-lock tables mysql.general_log READ;
-ERROR HY000: You can't use locks with log tables
-lock tables mysql.slow_log READ;
-ERROR HY000: You can't use locks with log tables
-set global general_log='OFF';
-set global slow_query_log='OFF';
-set @save_storage_engine= @@session.storage_engine;
-set storage_engine= MEMORY;
-alter table mysql.slow_log engine=NonExistentEngine;
-Warnings:
-Warning 1286 Unknown storage engine 'NonExistentEngine'
-alter table mysql.slow_log engine=memory;
-ERROR HY000: Storage engine MEMORY cannot be used for log tables
-set storage_engine= @save_storage_engine;
-drop table mysql.slow_log;
-drop table mysql.general_log;
-drop table mysql.general_log;
-ERROR 42S02: Unknown table 'mysql.general_log'
-drop table mysql.slow_log;
-ERROR 42S02: Unknown table 'mysql.slow_log'
-use mysql;
-CREATE TABLE `general_log` (
-`event_time` TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP
-ON UPDATE CURRENT_TIMESTAMP,
-`user_host` mediumtext NOT NULL,
-`thread_id` BIGINT(21) UNSIGNED NOT NULL,
-`server_id` int(10) unsigned NOT NULL,
-`command_type` varchar(64) NOT NULL,
-`argument` mediumtext NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log';
-CREATE TABLE `slow_log` (
-`start_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP
-ON UPDATE CURRENT_TIMESTAMP,
-`user_host` mediumtext NOT NULL,
-`query_time` time(6) NOT NULL,
-`lock_time` time(6) NOT NULL,
-`rows_sent` int(11) NOT NULL,
-`rows_examined` int(11) NOT NULL,
-`db` varchar(512) NOT NULL,
-`last_insert_id` int(11) NOT NULL,
-`insert_id` int(11) NOT NULL,
-`server_id` int(10) unsigned NOT NULL,
-`sql_text` mediumtext NOT NULL,
-`thread_id` BIGINT(21) UNSIGNED NOT NULL,
-`rows_affected` int(11) NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log';
-set global general_log='ON';
-set global slow_query_log='ON';
-use test;
-flush tables with read lock;
-unlock tables;
-use mysql;
-lock tables general_log read local, help_category read local;
-ERROR HY000: You can't use locks with log tables
-unlock tables;
-SET SESSION long_query_time = 1000;
-drop table if exists mysql.renamed_general_log;
-drop table if exists mysql.renamed_slow_log;
-drop table if exists mysql.general_log_new;
-drop table if exists mysql.slow_log_new;
-use mysql;
-RENAME TABLE general_log TO renamed_general_log;
-ERROR HY000: Cannot rename 'general_log'. When logging enabled, rename to/from log table must rename two tables: the log table to an archive table and another table back to 'general_log'
-RENAME TABLE slow_log TO renamed_slow_log;
-ERROR HY000: Cannot rename 'slow_log'. When logging enabled, rename to/from log table must rename two tables: the log table to an archive table and another table back to 'slow_log'
-truncate table general_log;
-select * from general_log;
-event_time user_host thread_id server_id command_type argument
-TIMESTAMP USER_HOST THREAD_ID 1 Query select * from general_log
-truncate table slow_log;
-select * from slow_log;
-start_time user_host query_time lock_time rows_sent rows_examined db last_insert_id insert_id server_id sql_text thread_id rows_affected
-create table general_log_new like general_log;
-rename table general_log TO renamed_general_log, general_log_new TO general_log;
-create table slow_log_new like slow_log;
-rename table slow_log TO renamed_slow_log, slow_log_new TO slow_log;
-rename table general_log TO general_log_new, renamed_general_log TO general_log, slow_log to renamed_slow_log;
-ERROR HY000: Cannot rename 'slow_log'. When logging enabled, rename to/from log table must rename two tables: the log table to an archive table and another table back to 'slow_log'
-select * from general_log;
-event_time user_host thread_id server_id command_type argument
-TIMESTAMP USER_HOST THREAD_ID 1 Query create table slow_log_new like slow_log
-TIMESTAMP USER_HOST THREAD_ID 1 Query rename table slow_log TO renamed_slow_log, slow_log_new TO slow_log
-TIMESTAMP USER_HOST THREAD_ID 1 Query rename table general_log TO general_log_new, renamed_general_log TO general_log, slow_log to renamed_slow_log
-TIMESTAMP USER_HOST THREAD_ID 1 Query select * from general_log
-select * from renamed_general_log;
-event_time user_host thread_id server_id command_type argument
-TIMESTAMP USER_HOST THREAD_ID 1 Query select * from general_log
-TIMESTAMP USER_HOST THREAD_ID 1 Query truncate table slow_log
-TIMESTAMP USER_HOST THREAD_ID 1 Query select * from slow_log
-TIMESTAMP USER_HOST THREAD_ID 1 Query create table general_log_new like general_log
-TIMESTAMP USER_HOST THREAD_ID 1 Query rename table general_log TO renamed_general_log, general_log_new TO general_log
-select * from slow_log;
-start_time user_host query_time lock_time rows_sent rows_examined db last_insert_id insert_id server_id sql_text thread_id rows_affected
-select * from renamed_slow_log;
-start_time user_host query_time lock_time rows_sent rows_examined db last_insert_id insert_id server_id sql_text thread_id rows_affected
-set global general_log='OFF';
-RENAME TABLE general_log TO general_log2;
-set global slow_query_log='OFF';
-RENAME TABLE slow_log TO slow_log2;
-set global general_log='ON';
-ERROR 42S02: Table 'mysql.general_log' doesn't exist
-set global slow_query_log='ON';
-ERROR 42S02: Table 'mysql.slow_log' doesn't exist
-RENAME TABLE general_log2 TO general_log;
-RENAME TABLE slow_log2 TO slow_log;
-SET SESSION long_query_time = @saved_long_query_time;
-set global general_log='ON';
-set global slow_query_log='ON';
-flush logs;
-flush logs;
-drop table renamed_general_log, renamed_slow_log;
-use test;
-use mysql;
-repair table general_log;
-Table Op Msg_type Msg_text
-mysql.general_log repair status OK
-repair table slow_log;
-Table Op Msg_type Msg_text
-mysql.slow_log repair status OK
-create table general_log_new like general_log;
-create table slow_log_new like slow_log;
-show tables like "%log%";
-Tables_in_mysql (%log%)
-general_log
-general_log_new
-slow_log
-slow_log_new
-drop table slow_log_new, general_log_new;
-use test;
-SET GLOBAL LOG_OUTPUT = 'TABLE';
-SET GLOBAL general_log = 0;
-FLUSH LOGS;
-TRUNCATE TABLE mysql.general_log;
-ALTER TABLE mysql.general_log ENGINE = MyISAM;
-ALTER TABLE mysql.general_log
-ADD COLUMN seq BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY;
-SET GLOBAL general_log = 1;
-FLUSH LOGS;
-SELECT * FROM mysql.general_log;
-event_time user_host thread_id server_id command_type argument seq
-EVENT_TIME USER_HOST THREAD_ID SERVER_ID Query FLUSH LOGS 1
-EVENT_TIME USER_HOST THREAD_ID SERVER_ID Query SELECT * FROM mysql.general_log 2
-SELECT * FROM mysql.general_log;
-event_time user_host thread_id server_id command_type argument seq
-EVENT_TIME USER_HOST THREAD_ID SERVER_ID Query FLUSH LOGS 1
-EVENT_TIME USER_HOST THREAD_ID SERVER_ID Query SELECT * FROM mysql.general_log 2
-EVENT_TIME USER_HOST THREAD_ID SERVER_ID Query SELECT * FROM mysql.general_log 3
-SELECT "My own query 1";
-My own query 1
-My own query 1
-SELECT "My own query 2";
-My own query 2
-My own query 2
-SELECT * FROM mysql.general_log;
-event_time user_host thread_id server_id command_type argument seq
-EVENT_TIME USER_HOST THREAD_ID SERVER_ID Query FLUSH LOGS 1
-EVENT_TIME USER_HOST THREAD_ID SERVER_ID Query SELECT * FROM mysql.general_log 2
-EVENT_TIME USER_HOST THREAD_ID SERVER_ID Query SELECT * FROM mysql.general_log 3
-EVENT_TIME USER_HOST THREAD_ID SERVER_ID Query SELECT "My own query 1" 4
-EVENT_TIME USER_HOST THREAD_ID SERVER_ID Query SELECT "My own query 2" 5
-EVENT_TIME USER_HOST THREAD_ID SERVER_ID Query SELECT * FROM mysql.general_log 6
-SET GLOBAL general_log = 0;
-FLUSH LOGS;
-ALTER TABLE mysql.general_log DROP COLUMN seq;
-ALTER TABLE mysql.general_log ENGINE = CSV;
-SET GLOBAL slow_query_log = 0;
-FLUSH LOGS;
-TRUNCATE TABLE mysql.slow_log;
-ALTER TABLE mysql.slow_log ENGINE = MyISAM;
-ALTER TABLE mysql.slow_log
-ADD COLUMN seq BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY;
-SET SESSION long_query_time = 1;
-SET GLOBAL slow_query_log = 1;
-FLUSH LOGS;
-SELECT "My own slow query", sleep(2);
-My own slow query sleep(2)
-My own slow query 0
-SELECT "My own slow query", sleep(2);
-My own slow query sleep(2)
-My own slow query 0
-SELECT "My own slow query", sleep(2);
-My own slow query sleep(2)
-My own slow query 0
-SELECT "My own slow query", sleep(2);
-My own slow query sleep(2)
-My own slow query 0
-SELECT * FROM mysql.slow_log WHERE seq >= 2 LIMIT 3;
-start_time user_host query_time lock_time rows_sent rows_examined db last_insert_id insert_id server_id sql_text thread_id rows_affected seq
-START_TIME USER_HOST QUERY_TIME 00:00:00.000000 1 0 test 0 0 1 SELECT "My own slow query", sleep(2) 4 0 2
-START_TIME USER_HOST QUERY_TIME 00:00:00.000000 1 0 test 0 0 1 SELECT "My own slow query", sleep(2) 4 0 3
-START_TIME USER_HOST QUERY_TIME 00:00:00.000000 1 0 test 0 0 1 SELECT "My own slow query", sleep(2) 4 0 4
-SET GLOBAL slow_query_log = 0;
-SET SESSION long_query_time =@saved_long_query_time;
-FLUSH LOGS;
-ALTER TABLE mysql.slow_log DROP COLUMN seq;
-ALTER TABLE mysql.slow_log ENGINE = CSV;
-SET GLOBAL general_log = @old_general_log;
-SET GLOBAL slow_query_log = @old_slow_query_log;
-drop procedure if exists proc25422_truncate_slow;
-drop procedure if exists proc25422_truncate_general;
-drop procedure if exists proc25422_alter_slow;
-drop procedure if exists proc25422_alter_general;
-use test//
-create procedure proc25422_truncate_slow (loops int)
-begin
-declare v1 int default 0;
-declare continue handler for sqlexception /* errors from truncate */
-begin end;
-while v1 < loops do
-truncate mysql.slow_log;
-set v1 = v1 + 1;
-end while;
-end//
-create procedure proc25422_truncate_general (loops int)
-begin
-declare v1 int default 0;
-declare continue handler for sqlexception /* errors from truncate */
-begin end;
-while v1 < loops do
-truncate mysql.general_log;
-set v1 = v1 + 1;
-end while;
-end//
-create procedure proc25422_alter_slow (loops int)
-begin
-declare v1 int default 0;
-declare ER_BAD_LOG_STATEMENT condition for 1575;
-declare continue handler for ER_BAD_LOG_STATEMENT begin end;
-while v1 < loops do
-set @old_log_state = @@global.slow_query_log;
-set global slow_query_log = 'OFF';
-alter table mysql.slow_log engine = CSV;
-set global slow_query_log = @old_log_state;
-set v1 = v1 + 1;
-end while;
-end//
-create procedure proc25422_alter_general (loops int)
-begin
-declare v1 int default 0;
-declare ER_BAD_LOG_STATEMENT condition for 1575;
-declare continue handler for ER_BAD_LOG_STATEMENT begin end;
-while v1 < loops do
-set @old_log_state = @@global.general_log;
-set global general_log = 'OFF';
-alter table mysql.general_log engine = CSV;
-set global general_log = @old_log_state;
-set v1 = v1 + 1;
-end while;
-end//
-set @iterations=100;
-"Serial test (proc25422_truncate_slow)"
-call proc25422_truncate_slow(@iterations);
-"Serial test (proc25422_truncate_general)"
-call proc25422_truncate_general(@iterations);
-"Serial test (proc25422_alter_slow)"
-call proc25422_alter_slow(@iterations);
-"Serial test (proc25422_alter_general)"
-call proc25422_alter_general(@iterations);
-"Parallel test"
-connect addconroot1, localhost, root,,;
-connect addconroot2, localhost, root,,;
-connect addconroot3, localhost, root,,;
-connect addconroot4, localhost, root,,;
-connect addconroot5, localhost, root,,;
-connect addconroot6, localhost, root,,;
-connect addconroot7, localhost, root,,;
-connect addconroot8, localhost, root,,;
-connection addconroot1;
-call proc25422_truncate_slow(@iterations);
-connection addconroot2;
-call proc25422_truncate_slow(@iterations);
-connection addconroot3;
-call proc25422_truncate_general(@iterations);
-connection addconroot4;
-call proc25422_truncate_general(@iterations);
-connection addconroot5;
-call proc25422_alter_slow(@iterations);
-connection addconroot6;
-call proc25422_alter_slow(@iterations);
-connection addconroot7;
-call proc25422_alter_general(@iterations);
-connection addconroot8;
-call proc25422_alter_general(@iterations);
-connection addconroot1;
-connection addconroot2;
-connection addconroot3;
-connection addconroot4;
-connection addconroot5;
-connection addconroot6;
-connection addconroot7;
-connection addconroot8;
-connection default;
-disconnect addconroot1;
-disconnect addconroot2;
-disconnect addconroot3;
-disconnect addconroot4;
-disconnect addconroot5;
-disconnect addconroot6;
-disconnect addconroot7;
-disconnect addconroot8;
-drop procedure proc25422_truncate_slow;
-drop procedure proc25422_truncate_general;
-drop procedure proc25422_alter_slow;
-drop procedure proc25422_alter_general;
-FLUSH TABLE mysql.general_log;
-show warnings;
-Level Code Message
-FLUSH TABLE mysql.slow_log;
-show warnings;
-Level Code Message
-DROP TABLE IF EXISTS `db_17876.slow_log_data`;
-DROP TABLE IF EXISTS `db_17876.general_log_data`;
-DROP PROCEDURE IF EXISTS `db_17876.archiveSlowLog`;
-DROP PROCEDURE IF EXISTS `db_17876.archiveGeneralLog`;
-DROP DATABASE IF EXISTS `db_17876`;
-CREATE DATABASE db_17876;
-CREATE TABLE `db_17876.slow_log_data` (
-`start_time` timestamp(6) default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
-`user_host` mediumtext ,
-`query_time` time(6) ,
-`lock_time` time(6) ,
-`rows_sent` int(11) ,
-`rows_examined` int(11) ,
-`db` varchar(512) default NULL,
-`last_insert_id` int(11) default NULL,
-`insert_id` int(11) default NULL,
-`server_id` int(11) default NULL,
-`sql_text` mediumtext,
-`thread_id` bigint(21) unsigned default NULL,
-`rows_affected` int(11) default NULL
-);
-CREATE TABLE `db_17876.general_log_data` (
-`event_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-`user_host` mediumtext,
-`thread_id` int(11) DEFAULT NULL,
-`server_id` int(11) DEFAULT NULL,
-`command_type` varchar(64) DEFAULT NULL,
-`argument` mediumtext
-);
-CREATE procedure `db_17876.archiveSlowLog`()
-BEGIN
-DECLARE start_time, query_time, lock_time CHAR(28);
-DECLARE user_host MEDIUMTEXT;
-DECLARE rows_set, rows_examined, last_insert_id, insert_id, server_id, rows_affected INT;
-DECLARE thread_id BIGINT UNSIGNED;
-DECLARE dbname MEDIUMTEXT;
-DECLARE sql_text BLOB;
-DECLARE done INT DEFAULT 0;
-DECLARE ER_SP_FETCH_NO_DATA CONDITION for 1329;
-DECLARE cur1 CURSOR FOR SELECT * FROM mysql.slow_log;
-OPEN cur1;
-REPEAT
-BEGIN
-BEGIN
-DECLARE CONTINUE HANDLER FOR ER_SP_FETCH_NO_DATA SET done = 1;
-FETCH cur1 INTO
-start_time, user_host, query_time, lock_time,
-rows_set, rows_examined, dbname, last_insert_id,
-insert_id, server_id, sql_text, thread_id, rows_affected;
-END;
-IF NOT done THEN
-BEGIN
-INSERT INTO
-`db_17876.slow_log_data`
- VALUES(start_time, user_host, query_time, lock_time, rows_set, rows_examined,
-dbname, last_insert_id, insert_id, server_id, sql_text, thread_id,
-rows_affected);
-END;
-END IF;
-END;
-UNTIL done END REPEAT;
-CLOSE cur1;
-TRUNCATE mysql.slow_log;
-END //
-CREATE procedure `db_17876.archiveGeneralLog`()
-BEGIN
-DECLARE event_time CHAR(28);
-DECLARE user_host, argument MEDIUMTEXT;
-DECLARE thread_id, server_id INT;
-DECLARE sql_text BLOB;
-DECLARE done INT DEFAULT 0;
-DECLARE command_type VARCHAR(64);
-DECLARE ER_SP_FETCH_NO_DATA CONDITION for 1329;
-DECLARE cur1 CURSOR FOR SELECT * FROM mysql.general_log;
-OPEN cur1;
-REPEAT
-BEGIN
-BEGIN
-DECLARE CONTINUE HANDLER FOR ER_SP_FETCH_NO_DATA SET done = 1;
-FETCH cur1 INTO
-event_time, user_host, thread_id, server_id,
-command_type, argument;
-END;
-IF NOT done THEN
-BEGIN
-INSERT INTO
-`db_17876.general_log_data`
- VALUES(event_time, user_host, thread_id, server_id,
-command_type, argument);
-END;
-END IF;
-END;
-UNTIL done END REPEAT;
-CLOSE cur1;
-TRUNCATE mysql.general_log;
-END //
-SET GLOBAL general_log = ON;
-SET GLOBAL slow_query_log = ON;
-select "put something into general_log";
-put something into general_log
-put something into general_log
-select "... and something more ...";
-... and something more ...
-... and something more ...
-call `db_17876.archiveSlowLog`();
-call `db_17876.archiveGeneralLog`();
-SET GLOBAL general_log = OFF;
-SET GLOBAL slow_query_log = OFF;
-call `db_17876.archiveSlowLog`();
-call `db_17876.archiveGeneralLog`();
-DROP TABLE `db_17876.slow_log_data`;
-DROP TABLE `db_17876.general_log_data`;
-DROP PROCEDURE IF EXISTS `db_17876.archiveSlowLog`;
-DROP PROCEDURE IF EXISTS `db_17876.archiveGeneralLog`;
-DROP DATABASE IF EXISTS `db_17876`;
-SET GLOBAL general_log = @old_general_log;
-SET GLOBAL slow_query_log = @old_slow_query_log;
-select CONNECTION_ID() into @thread_id;
-truncate table mysql.general_log;
-set global general_log = on;
-set @lparam = "000 001 002 003 004 005 006 007 008 009"
- "010 011 012 013 014 015 016 017 018 019"
- "020 021 022 023 024 025 026 027 028 029"
- "030 031 032 033 034 035 036 037 038 039"
- "040 041 042 043 044 045 046 047 048 049"
- "050 051 052 053 054 055 056 057 058 059"
- "060 061 062 063 064 065 066 067 068 069"
- "070 071 072 073 074 075 076 077 078 079"
- "080 081 082 083 084 085 086 087 088 089"
- "090 091 092 093 094 095 096 097 098 099"
- "100 101 102 103 104 105 106 107 108 109"
- "110 111 112 113 114 115 116 117 118 119"
- "120 121 122 123 124 125 126 127 128 129"
- "130 131 132 133 134 135 136 137 138 139"
- "140 141 142 143 144 145 146 147 148 149"
- "150 151 152 153 154 155 156 157 158 159"
- "160 161 162 163 164 165 166 167 168 169"
- "170 171 172 173 174 175 176 177 178 179"
- "180 181 182 183 184 185 186 187 188 189"
- "190 191 192 193 194 195 196 197 198 199"
- "200 201 202 203 204 205 206 207 208 209"
- "210 211 212 213 214 215 216 217 218 219"
- "220 221 222 223 224 225 226 227 228 229"
- "230 231 232 233 234 235 236 237 238 239"
- "240 241 242 243 244 245 246 247 248 249"
- "250 251 252 253 254 255 256 257 258 259"
- "260 261 262 263 264 265 266 267 268 269"
- "270 271 272 273 274 275 276 277 278 279"
- "280 281 282 283 284 285 286 287 288 289"
- "290 291 292 293 294 295 296 297 298 299"
- "300 301 302 303 304 305 306 307 308 309"
- "310 311 312 313 314 315 316 317 318 319"
- "320 321 322 323 324 325 326 327 328 329"
- "330 331 332 333 334 335 336 337 338 339"
- "340 341 342 343 344 345 346 347 348 349"
- "350 351 352 353 354 355 356 357 358 359"
- "360 361 362 363 364 365 366 367 368 369"
- "370 371 372 373 374 375 376 377 378 379"
- "380 381 382 383 384 385 386 387 388 389"
- "390 391 392 393 394 395 396 397 398 399"
- "400 401 402 403 404 405 406 407 408 409"
- "410 411 412 413 414 415 416 417 418 419"
- "420 421 422 423 424 425 426 427 428 429"
- "430 431 432 433 434 435 436 437 438 439"
- "440 441 442 443 444 445 446 447 448 449"
- "450 451 452 453 454 455 456 457 458 459"
- "460 461 462 463 464 465 466 467 468 469"
- "470 471 472 473 474 475 476 477 478 479"
- "480 481 482 483 484 485 486 487 488 489"
- "490 491 492 493 494 495 496 497 498 499"
- "500 501 502 503 504 505 506 507 508 509"
- "510 511 512 513 514 515 516 517 518 519"
- "520 521 522 523 524 525 526 527 528 529"
- "530 531 532 533 534 535 536 537 538 539"
- "540 541 542 543 544 545 546 547 548 549"
- "550 551 552 553 554 555 556 557 558 559"
- "560 561 562 563 564 565 566 567 568 569"
- "570 571 572 573 574 575 576 577 578 579"
- "580 581 582 583 584 585 586 587 588 589"
- "590 591 592 593 594 595 596 597 598 599"
- "600 601 602 603 604 605 606 607 608 609"
- "610 611 612 613 614 615 616 617 618 619"
- "620 621 622 623 624 625 626 627 628 629"
- "630 631 632 633 634 635 636 637 638 639"
- "640 641 642 643 644 645 646 647 648 649"
- "650 651 652 653 654 655 656 657 658 659"
- "660 661 662 663 664 665 666 667 668 669"
- "670 671 672 673 674 675 676 677 678 679"
- "680 681 682 683 684 685 686 687 688 689"
- "690 691 692 693 694 695 696 697 698 699"
- "700 701 702 703 704 705 706 707 708 709"
- "710 711 712 713 714 715 716 717 718 719"
- "720 721 722 723 724 725 726 727 728 729"
- "730 731 732 733 734 735 736 737 738 739"
- "740 741 742 743 744 745 746 747 748 749"
- "750 751 752 753 754 755 756 757 758 759"
- "760 761 762 763 764 765 766 767 768 769"
- "770 771 772 773 774 775 776 777 778 779"
- "780 781 782 783 784 785 786 787 788 789"
- "790 791 792 793 794 795 796 797 798 799"
- "800 801 802 803 804 805 806 807 808 809"
- "810 811 812 813 814 815 816 817 818 819"
- "820 821 822 823 824 825 826 827 828 829"
- "830 831 832 833 834 835 836 837 838 839"
- "840 841 842 843 844 845 846 847 848 849"
- "850 851 852 853 854 855 856 857 858 859"
- "860 861 862 863 864 865 866 867 868 869"
- "870 871 872 873 874 875 876 877 878 879"
- "880 881 882 883 884 885 886 887 888 889"
- "890 891 892 893 894 895 896 897 898 899"
- "900 901 902 903 904 905 906 907 908 909"
- "910 911 912 913 914 915 916 917 918 919"
- "920 921 922 923 924 925 926 927 928 929"
- "930 931 932 933 934 935 936 937 938 939"
- "940 941 942 943 944 945 946 947 948 949"
- "950 951 952 953 954 955 956 957 958 959"
- "960 961 962 963 964 965 966 967 968 969"
- "970 971 972 973 974 975 976 977 978 979"
- "980 981 982 983 984 985 986 987 988 989"
- "990 991 992 993 994 995 996 997 998 999";
-prepare long_query from "select ? as long_query";
-execute long_query using @lparam;
-set global general_log = off;
-select command_type, argument from mysql.general_log where thread_id = @thread_id;
-command_type argument
-Query set global general_log = on
-Query set @lparam = "000 001 002 003 004 005 006 007 008 009"
- "010 011 012 013 014 015 016 017 018 019"
- "020 021 022 023 024 025 026 027 028 029"
- "030 031 032 033 034 035 036 037 038 039"
- "040 041 042 043 044 045 046 047 048 049"
- "050 051 052 053 054 055 056 057 058 059"
- "060 061 062 063 064 065 066 067 068 069"
- "070 071 072 073 074 075 076 077 078 079"
- "080 081 082 083 084 085 086 087 088 089"
- "090 091 092 093 094 095 096 097 098 099"
- "100 101 102 103 104 105 106 107 108 109"
- "110 111 112 113 114 115 116 117 118 119"
- "120 121 122 123 124 125 126 127 128 129"
- "130 131 132 133 134 135 136 137 138 139"
- "140 141 142 143 144 145 146 147 148 149"
- "150 151 152 153 154 155 156 157 158 159"
- "160 161 162 163 164 165 166 167 168 169"
- "170 171 172 173 174 175 176 177 178 179"
- "180 181 182 183 184 185 186 187 188 189"
- "190 191 192 193 194 195 196 197 198 199"
- "200 201 202 203 204 205 206 207 208 209"
- "210 211 212 213 214 215 216 217 218 219"
- "220 221 222 223 224 225 226 227 228 229"
- "230 231 232 233 234 235 236 237 238 239"
- "240 241 242 243 244 245 246 247 248 249"
- "250 251 252 253 254 255 256 257 258 259"
- "260 261 262 263 264 265 266 267 268 269"
- "270 271 272 273 274 275 276 277 278 279"
- "280 281 282 283 284 285 286 287 288 289"
- "290 291 292 293 294 295 296 297 298 299"
- "300 301 302 303 304 305 306 307 308 309"
- "310 311 312 313 314 315 316 317 318 319"
- "320 321 322 323 324 325 326 327 328 329"
- "330 331 332 333 334 335 336 337 338 339"
- "340 341 342 343 344 345 346 347 348 349"
- "350 351 352 353 354 355 356 357 358 359"
- "360 361 362 363 364 365 366 367 368 369"
- "370 371 372 373 374 375 376 377 378 379"
- "380 381 382 383 384 385 386 387 388 389"
- "390 391 392 393 394 395 396 397 398 399"
- "400 401 402 403 404 405 406 407 408 409"
- "410 411 412 413 414 415 416 417 418 419"
- "420 421 422 423 424 425 426 427 428 429"
- "430 431 432 433 434 435 436 437 438 439"
- "440 441 442 443 444 445 446 447 448 449"
- "450 451 452 453 454 455 456 457 458 459"
- "460 461 462 463 464 465 466 467 468 469"
- "470 471 472 473 474 475 476 477 478 479"
- "480 481 482 483 484 485 486 487 488 489"
- "490 491 492 493 494 495 496 497 498 499"
- "500 501 502 503 504 505 506 507 508 509"
- "510 511 512 513 514 515 516 517 518 519"
- "520 521 522 523 524 525 526 527 528 529"
- "530 531 532 533 534 535 536 537 538 539"
- "540 541 542 543 544 545 546 547 548 549"
- "550 551 552 553 554 555 556 557 558 559"
- "560 561 562 563 564 565 566 567 568 569"
- "570 571 572 573 574 575 576 577 578 579"
- "580 581 582 583 584 585 586 587 588 589"
- "590 591 592 593 594 595 596 597 598 599"
- "600 601 602 603 604 605 606 607 608 609"
- "610 611 612 613 614 615 616 617 618 619"
- "620 621 622 623 624 625 626 627 628 629"
- "630 631 632 633 634 635 636 637 638 639"
- "640 641 642 643 644 645 646 647 648 649"
- "650 651 652 653 654 655 656 657 658 659"
- "660 661 662 663 664 665 666 667 668 669"
- "670 671 672 673 674 675 676 677 678 679"
- "680 681 682 683 684 685 686 687 688 689"
- "690 691 692 693 694 695 696 697 698 699"
- "700 701 702 703 704 705 706 707 708 709"
- "710 711 712 713 714 715 716 717 718 719"
- "720 721 722 723 724 725 726 727 728 729"
- "730 731 732 733 734 735 736 737 738 739"
- "740 741 742 743 744 745 746 747 748 749"
- "750 751 752 753 754 755 756 757 758 759"
- "760 761 762 763 764 765 766 767 768 769"
- "770 771 772 773 774 775 776 777 778 779"
- "780 781 782 783 784 785 786 787 788 789"
- "790 791 792 793 794 795 796 797 798 799"
- "800 801 802 803 804 805 806 807 808 809"
- "810 811 812 813 814 815 816 817 818 819"
- "820 821 822 823 824 825 826 827 828 829"
- "830 831 832 833 834 835 836 837 838 839"
- "840 841 842 843 844 845 846 847 848 849"
- "850 851 852 853 854 855 856 857 858 859"
- "860 861 862 863 864 865 866 867 868 869"
- "870 871 872 873 874 875 876 877 878 879"
- "880 881 882 883 884 885 886 887 888 889"
- "890 891 892 893 894 895 896 897 898 899"
- "900 901 902 903 904 905 906 907 908 909"
- "910 911 912 913 914 915 916 917 918 919"
- "920 921 922 923 924 925 926 927 928 929"
- "930 931 932 933 934 935 936 937 938 939"
- "940 941 942 943 944 945 946 947 948 949"
- "950 951 952 953 954 955 956 957 958 959"
- "960 961 962 963 964 965 966 967 968 969"
- "970 971 972 973 974 975 976 977 978 979"
- "980 981 982 983 984 985 986 987 988 989"
- "990 991 992 993 994 995 996 997 998 999"
-Query prepare long_query from "select ? as long_query"
-Prepare select ? as long_query
-Query execute long_query using @lparam
-Execute select '000 001 002 003 004 005 006 007 008 009010 011 012 013 014 015 016 017 018 019020 021 022 023 024 025 026 027 028 029030 031 032 033 034 035 036 037 038 039040 041 042 043 044 045 046 047 048 049050 051 052 053 054 055 056 057 058 059060 061 062 063 064 065 066 067 068 069070 071 072 073 074 075 076 077 078 079080 081 082 083 084 085 086 087 088 089090 091 092 093 094 095 096 097 098 099100 101 102 103 104 105 106 107 108 109110 111 112 113 114 115 116 117 118 119120 121 122 123 124 125 126 127 128 129130 131 132 133 134 135 136 137 138 139140 141 142 143 144 145 146 147 148 149150 151 152 153 154 155 156 157 158 159160 161 162 163 164 165 166 167 168 169170 171 172 173 174 175 176 177 178 179180 181 182 183 184 185 186 187 188 189190 191 192 193 194 195 196 197 198 199200 201 202 203 204 205 206 207 208 209210 211 212 213 214 215 216 217 218 219220 221 222 223 224 225 226 227 228 229230 231 232 233 234 235 236 237 238 239240 241 242 243 244 245 246 247 248 249250 251 252 253 254 255 256 257 258 259260 261 262 263 264 265 266 267 268 269270 271 272 273 274 275 276 277 278 279280 281 282 283 284 285 286 287 288 289290 291 292 293 294 295 296 297 298 299300 301 302 303 304 305 306 307 308 309310 311 312 313 314 315 316 317 318 319320 321 322 323 324 325 326 327 328 329330 331 332 333 334 335 336 337 338 339340 341 342 343 344 345 346 347 348 349350 351 352 353 354 355 356 357 358 359360 361 362 363 364 365 366 367 368 369370 371 372 373 374 375 376 377 378 379380 381 382 383 384 385 386 387 388 389390 391 392 393 394 395 396 397 398 399400 401 402 403 404 405 406 407 408 409410 411 412 413 414 415 416 417 418 419420 421 422 423 424 425 426 427 428 429430 431 432 433 434 435 436 437 438 439440 441 442 443 444 445 446 447 448 449450 451 452 453 454 455 456 457 458 459460 461 462 463 464 465 466 467 468 469470 471 472 473 474 475 476 477 478 479480 481 482 483 484 485 486 487 488 489490 491 492 493 494 495 496 497 498 499500 501 502 503 504 505 506 507 508 509510 511 512 513 514 515 516 517 518 519520 521 522 523 524 525 526 527 528 529530 531 532 533 534 535 536 537 538 539540 541 542 543 544 545 546 547 548 549550 551 552 553 554 555 556 557 558 559560 561 562 563 564 565 566 567 568 569570 571 572 573 574 575 576 577 578 579580 581 582 583 584 585 586 587 588 589590 591 592 593 594 595 596 597 598 599600 601 602 603 604 605 606 607 608 609610 611 612 613 614 615 616 617 618 619620 621 622 623 624 625 626 627 628 629630 631 632 633 634 635 636 637 638 639640 641 642 643 644 645 646 647 648 649650 651 652 653 654 655 656 657 658 659660 661 662 663 664 665 666 667 668 669670 671 672 673 674 675 676 677 678 679680 681 682 683 684 685 686 687 688 689690 691 692 693 694 695 696 697 698 699700 701 702 703 704 705 706 707 708 709710 711 712 713 714 715 716 717 718 719720 721 722 723 724 725 726 727 728 729730 731 732 733 734 735 736 737 738 739740 741 742 743 744 745 746 747 748 749750 751 752 753 754 755 756 757 758 759760 761 762 763 764 765 766 767 768 769770 771 772 773 774 775 776 777 778 779780 781 782 783 784 785 786 787 788 789790 791 792 793 794 795 796 797 798 799800 801 802 803 804 805 806 807 808 809810 811 812 813 814 815 816 817 818 819820 821 822 823 824 825 826 827 828 829830 831 832 833 834 835 836 837 838 839840 841 842 843 844 845 846 847 848 849850 851 852 853 854 855 856 857 858 859860 861 862 863 864 865 866 867 868 869870 871 872 873 874 875 876 877 878 879880 881 882 883 884 885 886 887 888 889890 891 892 893 894 895 896 897 898 899900 901 902 903 904 905 906 907 908 909910 911 912 913 914 915 916 917 918 919920 921 922 923 924 925 926 927 928 929930 931 932 933 934 935 936 937 938 939940 941 942 943 944 945 946 947 948 949950 951 952 953 954 955 956 957 958 959960 961 962 963 964 965 966 967 968 969970 971 972 973 974 975 976 977 978 979980 981 982 983 984 985 986 987 988 989990 991 992 993 994 995 996 997 998 999' as long_query
-Query set global general_log = off
-deallocate prepare long_query;
-set global general_log = @old_general_log;
-DROP TABLE IF EXISTS log_count;
-DROP TABLE IF EXISTS slow_log_copy;
-DROP TABLE IF EXISTS general_log_copy;
-CREATE TABLE log_count (count BIGINT(21));
-SET GLOBAL general_log = ON;
-SET GLOBAL slow_query_log = ON;
-CREATE TABLE slow_log_copy SELECT * FROM mysql.slow_log;
-INSERT INTO slow_log_copy SELECT * FROM mysql.slow_log;
-INSERT INTO log_count (count) VALUES ((SELECT count(*) FROM mysql.slow_log));
-DROP TABLE slow_log_copy;
-CREATE TABLE general_log_copy SELECT * FROM mysql.general_log;
-INSERT INTO general_log_copy SELECT * FROM mysql.general_log;
-INSERT INTO log_count (count) VALUES ((SELECT count(*) FROM mysql.general_log));
-DROP TABLE general_log_copy;
-SET GLOBAL general_log = OFF;
-SET GLOBAL slow_query_log = OFF;
-CREATE TABLE slow_log_copy SELECT * FROM mysql.slow_log;
-INSERT INTO slow_log_copy SELECT * FROM mysql.slow_log;
-INSERT INTO log_count (count) VALUES ((SELECT count(*) FROM mysql.slow_log));
-DROP TABLE slow_log_copy;
-CREATE TABLE general_log_copy SELECT * FROM mysql.general_log;
-INSERT INTO general_log_copy SELECT * FROM mysql.general_log;
-INSERT INTO log_count (count) VALUES ((SELECT count(*) FROM mysql.general_log));
-DROP TABLE general_log_copy;
-SET GLOBAL general_log = @saved_general_log;
-SET GLOBAL slow_query_log = @saved_slow_query_log;
-DROP TABLE log_count;
-SET SESSION long_query_time = 0;
-SET GLOBAL slow_query_log = ON;
-FLUSH LOGS;
-TRUNCATE TABLE mysql.slow_log;
-CREATE TABLE t1 (f1 SERIAL,f2 INT, f3 INT, PRIMARY KEY(f1), KEY(f2));
-INSERT INTO t1 VALUES (1,1,1);
-INSERT INTO t1 VALUES (2,2,2);
-INSERT INTO t1 VALUES (3,3,3);
-INSERT INTO t1 VALUES (4,4,4);
-SELECT SQL_NO_CACHE 'Bug#31700 - SCAN',f1,f2,f3,SLEEP(1.1) FROM t1 WHERE f3=4;
-Bug#31700 - SCAN f1 f2 f3 SLEEP(1.1)
-Bug#31700 - SCAN 4 4 4 0
-SELECT SQL_NO_CACHE 'Bug#31700 - KEY', f1,f2,f3,SLEEP(1.1) FROM t1 WHERE f2=3;
-Bug#31700 - KEY f1 f2 f3 SLEEP(1.1)
-Bug#31700 - KEY 3 3 3 0
-SELECT SQL_NO_CACHE 'Bug#31700 - PK', f1,f2,f3,SLEEP(1.1) FROM t1 WHERE f1=2;
-Bug#31700 - PK f1 f2 f3 SLEEP(1.1)
-Bug#31700 - PK 2 2 2 0
-SELECT start_time, rows_examined, rows_sent, sql_text FROM mysql.slow_log WHERE sql_text LIKE '%Bug#31700%' ORDER BY start_time;
-start_time rows_examined rows_sent sql_text
-TIMESTAMP 4 1 SELECT SQL_NO_CACHE 'Bug#31700 - SCAN',f1,f2,f3,SLEEP(1.1) FROM t1 WHERE f3=4
-TIMESTAMP 1 1 SELECT SQL_NO_CACHE 'Bug#31700 - KEY', f1,f2,f3,SLEEP(1.1) FROM t1 WHERE f2=3
-TIMESTAMP 1 1 SELECT SQL_NO_CACHE 'Bug#31700 - PK', f1,f2,f3,SLEEP(1.1) FROM t1 WHERE f1=2
-DROP TABLE t1;
-TRUNCATE TABLE mysql.slow_log;
-use mysql;
-drop table if exists renamed_general_log;
-drop table if exists renamed_slow_log;
-RENAME TABLE general_log TO renamed_general_log;
-ERROR HY000: Cannot rename 'general_log'. When logging enabled, rename to/from log table must rename two tables: the log table to an archive table and another table back to 'general_log'
-RENAME TABLE slow_log TO renamed_slow_log;
-ERROR HY000: Cannot rename 'slow_log'. When logging enabled, rename to/from log table must rename two tables: the log table to an archive table and another table back to 'slow_log'
-use test;
-flush tables with read lock;
-unlock tables;
-SET @@session.long_query_time= @old_long_query_time;
-SET @@global.log_output= @old_log_output;
-SET @@global.slow_query_log= @old_slow_query_log;
-SET @@global.general_log= @old_general_log;
diff --git a/mysql-test/r/log_tables_debug.result b/mysql-test/r/log_tables_debug.result
deleted file mode 100644
index 39983339572..00000000000
--- a/mysql-test/r/log_tables_debug.result
+++ /dev/null
@@ -1,24 +0,0 @@
-SET @old_general_log= @@global.general_log;
-SET @old_general_log_file= @@global.general_log_file;
-SET @old_slow_query_log= @@global.slow_query_log;
-SET @old_slow_query_log_file= @@global.slow_query_log_file;
-#
-# Bug#45387 Information about statement id for prepared
-# statements missed from general log
-#
-SET @@global.general_log = ON;
-SET @@global.general_log_file = 'bug45387_general.log';
-SET SESSION debug_dbug='+d,reset_log_last_time';
-FLUSH LOGS;
-SET @@global.general_log = @old_general_log;
-SET @@global.general_log_file = @old_general_log_file;
-SET SESSION debug_dbug='-d';
-Bug#45387: ID match.
-End of 5.1 tests
-#
-# Cleanup
-#
-SET global general_log = @old_general_log;
-SET global general_log_file = @old_general_log_file;
-SET global slow_query_log = @old_slow_query_log;
-SET global slow_query_log_file = @old_slow_query_log_file;
diff --git a/mysql-test/r/log_tables_upgrade.result b/mysql-test/r/log_tables_upgrade.result
deleted file mode 100644
index 8f822d56020..00000000000
--- a/mysql-test/r/log_tables_upgrade.result
+++ /dev/null
@@ -1,64 +0,0 @@
-#
-# Bug#49823: mysql_upgrade fatal error due to general_log / slow_low CSV NULL
-#
-USE test;
-SET @saved_general_log = @@GLOBAL.general_log;
-SET GLOBAL general_log = OFF;
-USE mysql;
-FLUSH TABLES;
-REPAIR TABLE test.bug49823;
-Table Op Msg_type Msg_text
-test.bug49823 repair status OK
-RENAME TABLE general_log TO renamed_general_log;
-RENAME TABLE test.bug49823 TO general_log;
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.renamed_general_log OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-DROP TABLE general_log;
-RENAME TABLE renamed_general_log TO general_log;
-SET GLOBAL general_log = @saved_general_log;
-USE test;
diff --git a/mysql-test/r/long_tmpdir.result b/mysql-test/r/long_tmpdir.result
deleted file mode 100644
index 7e6dd34ced1..00000000000
--- a/mysql-test/r/long_tmpdir.result
+++ /dev/null
@@ -1,3 +0,0 @@
-create view v1 as select table_name from information_schema.tables;
-drop view v1;
-End of 5.0 tests
diff --git a/mysql-test/r/lowercase0.require b/mysql-test/r/lowercase0.require
deleted file mode 100644
index 5550a2e93b8..00000000000
--- a/mysql-test/r/lowercase0.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Variable_name Value
-lower_case_table_names 0
diff --git a/mysql-test/r/lowercase1.require b/mysql-test/r/lowercase1.require
deleted file mode 100644
index 0341f838f7b..00000000000
--- a/mysql-test/r/lowercase1.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Variable_name Value
-lower_case_table_names 1
diff --git a/mysql-test/r/lowercase2.require b/mysql-test/r/lowercase2.require
deleted file mode 100644
index 522eac63e81..00000000000
--- a/mysql-test/r/lowercase2.require
+++ /dev/null
@@ -1,2 +0,0 @@
-Variable_name Value
-lower_case_table_names 2
diff --git a/mysql-test/r/lowercase_fs_off.result b/mysql-test/r/lowercase_fs_off.result
deleted file mode 100644
index 91bd2924096..00000000000
--- a/mysql-test/r/lowercase_fs_off.result
+++ /dev/null
@@ -1,91 +0,0 @@
-set GLOBAL sql_mode="";
-set LOCAL sql_mode="";
-connect master,localhost,root,,;
-connection master;
-create database d1;
-grant all on d1.* to 'sample'@'localhost' identified by 'password';
-flush privileges;
-connect sample,localhost,sample,password,d1;
-connection sample;
-select database();
-database()
-d1
-create database d2;
-ERROR 42000: Access denied for user 'sample'@'localhost' to database 'd2'
-create database D1;
-ERROR 42000: Access denied for user 'sample'@'localhost' to database 'D1'
-disconnect sample;
-connection master;
-drop user 'sample'@'localhost';
-drop database if exists d1;
-disconnect master;
-connection default;
-CREATE DATABASE d1;
-USE d1;
-CREATE TABLE T1(f1 INT);
-CREATE TABLE t1(f1 INT);
-GRANT SELECT ON T1 to user_1@localhost;
-connect con1,localhost,user_1,,d1;
-select * from t1;
-ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't1'
-select * from T1;
-f1
-connection default;
-GRANT SELECT ON t1 to user_1@localhost;
-connection con1;
-select * from information_schema.table_privileges;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
-'user_1'@'localhost' def d1 T1 SELECT NO
-'user_1'@'localhost' def d1 t1 SELECT NO
-connection default;
-disconnect con1;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1@localhost;
-DROP USER user_1@localhost;
-DROP DATABASE d1;
-USE test;
-CREATE DATABASE db1;
-USE db1;
-CREATE PROCEDURE p1() BEGIN END;
-CREATE FUNCTION f1(i INT) RETURNS INT RETURN i+1;
-GRANT USAGE ON db1.* to user_1@localhost;
-GRANT EXECUTE ON PROCEDURE db1.P1 to user_1@localhost;
-GRANT EXECUTE ON FUNCTION db1.f1 to user_1@localhost;
-GRANT UPDATE ON db1.* to USER_1@localhost;
-connect con1,localhost,user_1,,db1;
-call p1();
-call P1();
-select f1(1);
-f1(1)
-2
-connect con2,localhost,USER_1,,db1;
-call p1();
-ERROR 42000: execute command denied to user 'USER_1'@'localhost' for routine 'db1.p1'
-call P1();
-ERROR 42000: execute command denied to user 'USER_1'@'localhost' for routine 'db1.p1'
-select f1(1);
-ERROR 42000: execute command denied to user 'USER_1'@'localhost' for routine 'db1.f1'
-connection default;
-disconnect con1;
-disconnect con2;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1@localhost;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM USER_1@localhost;
-DROP FUNCTION f1;
-DROP PROCEDURE p1;
-DROP USER user_1@localhost;
-DROP USER USER_1@localhost;
-DROP DATABASE db1;
-use test;
-#
-# Extra test coverage for Bug#56595 RENAME TABLE causes assert on OS X
-#
-CREATE TABLE t1(a INT);
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET new.a= 1;
-RENAME TABLE t1 TO T1;
-ALTER TABLE T1 RENAME t1;
-DROP TABLE t1;
-create table t1 (a int);
-create trigger t1_bi before insert on t1 for each row set new.a= 1;
-show triggers like '%T1%';
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-drop table t1;
-set GLOBAL sql_mode=default;
diff --git a/mysql-test/r/lowercase_fs_on.result b/mysql-test/r/lowercase_fs_on.result
deleted file mode 100644
index ddf3fd5f1fb..00000000000
--- a/mysql-test/r/lowercase_fs_on.result
+++ /dev/null
@@ -1,4 +0,0 @@
-#
-# Bug#20198490 : LOWER_CASE_TABLE_NAMES=0 ON WINDOWS LEADS TO PROBLEMS
-#
-FOUND 1 /\[ERROR\] The server option \'lower_case_table_names\' is configured to use case sensitive table names/ in my_restart.err
diff --git a/mysql-test/r/lowercase_mixed_tmpdir.result b/mysql-test/r/lowercase_mixed_tmpdir.result
deleted file mode 100644
index e11b5e4c286..00000000000
--- a/mysql-test/r/lowercase_mixed_tmpdir.result
+++ /dev/null
@@ -1,6 +0,0 @@
-drop table if exists t1;
-create table t1 (id int) engine=myisam;
-insert into t1 values (1);
-create temporary table t2 select * from t1;
-drop temporary table t2;
-drop table t1;
diff --git a/mysql-test/r/lowercase_mixed_tmpdir_innodb.result b/mysql-test/r/lowercase_mixed_tmpdir_innodb.result
deleted file mode 100644
index a478b49cfda..00000000000
--- a/mysql-test/r/lowercase_mixed_tmpdir_innodb.result
+++ /dev/null
@@ -1,6 +0,0 @@
-drop table if exists t1;
-create table t1 (id int) engine=InnoDB;
-insert into t1 values (1);
-create temporary table t2 engine=InnoDB select * from t1;
-drop temporary table t2;
-drop table t1;
diff --git a/mysql-test/r/lowercase_table.result b/mysql-test/r/lowercase_table.result
deleted file mode 100644
index ac7d3e6bf7b..00000000000
--- a/mysql-test/r/lowercase_table.result
+++ /dev/null
@@ -1,129 +0,0 @@
-drop table if exists t1,t2,t3,t4;
-drop table if exists t0,t5,t6,t7,t8,t9;
-drop database if exists mysqltest;
-drop view if exists v0, v1, v2, v3, v4;
-create table T1 (id int primary key, Word varchar(40) not null, Index(Word));
-create table t4 (id int primary key, Word varchar(40) not null);
-INSERT INTO T1 VALUES (1, 'a'), (2, 'b'), (3, 'c');
-INSERT INTO T4 VALUES(1,'match');
-SELECT * FROM t1;
-id Word
-1 a
-2 b
-3 c
-SELECT T1.id from T1 LIMIT 1;
-id
-1
-SELECT T2.id from t1 as T2 LIMIT 1;
-id
-1
-SELECT * from t1 left join t4 on (test.t1.id= TEST.t4.id) where TEST.t1.id >= test.t4.id;
-id Word id Word
-1 a 1 match
-SELECT T2.id from t1 as t2 LIMIT 1;
-id
-1
-RENAME TABLE T1 TO T2;
-ALTER TABLE T2 ADD new_col int not null;
-ALTER TABLE T2 RENAME T3;
-show tables like 't_';
-Tables_in_test (t_)
-t3
-t4
-drop table t3,t4;
-create table t1 (a int);
-select count(*) from T1;
-count(*)
-0
-select count(*) from t1;
-count(*)
-0
-select count(T1.a) from t1;
-count(T1.a)
-0
-select count(bags.a) from t1 as Bags;
-count(bags.a)
-0
-drop table t1;
-create database mysqltest;
-use MYSQLTEST;
-create table t1 (a int);
-select T1.a from MYSQLTEST.T1;
-a
-select t1.a from MYSQLTEST.T1;
-a
-select mysqltest.t1.* from MYSQLTEST.t1;
-a
-select MYSQLTEST.t1.* from MYSQLTEST.t1;
-a
-select MYSQLTEST.T1.* from MYSQLTEST.T1;
-a
-select MYSQLTEST.T1.* from T1;
-a
-alter table t1 rename to T1;
-select MYSQLTEST.t1.* from MYSQLTEST.t1;
-a
-drop database mysqltest;
-use test;
-create table t1 (a int);
-create table t2 (a int);
-delete p1.*,P2.* from t1 as p1, t2 as p2 where p1.a=P2.a;
-delete P1.*,p2.* from t1 as P1, t2 as P2 where P1.a=p2.a;
-update t1 as p1, t2 as p2 SET p1.a=1,P2.a=1 where p1.a=P2.a;
-update t1 as P1, t2 as P2 SET P1.a=1,p2.a=1 where P1.a=p2.a;
-drop table t1,t2;
-create table t1 (a int);
-create table t2 (a int);
-select * from t1 c, t2 C;
-ERROR 42000: Not unique table/alias: 'C'
-select C.a, c.a from t1 c, t2 C;
-ERROR 42000: Not unique table/alias: 'C'
-drop table t1, t2;
-create table t1 (a int);
-create table t2 like T1;
-drop table t1, t2;
-show tables;
-Tables_in_test
-set names utf8;
-drop table if exists Ä°,Ä°Ä°;
-create table Ä° (s1 int);
-show create table Ä°;
-Table Create Table
-Ä° CREATE TABLE `i` (
- `s1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show tables;
-Tables_in_test
-i
-drop table Ä°;
-create table Ä°Ä° (s1 int);
-show create table Ä°Ä°;
-Table Create Table
-Ä°Ä° CREATE TABLE `ii` (
- `s1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show tables;
-Tables_in_test
-ii
-drop table Ä°Ä°;
-set names latin1;
-End of 5.0 tests
-create database mysql_TEST character set latin2;
-create table mysql_TEST.T1 (a int);
-show create database mysql_TEST;
-Database Create Database
-mysql_TEST CREATE DATABASE `mysql_test` /*!40100 DEFAULT CHARACTER SET latin2 */
-show create table mysql_TEST.T1;
-Table Create Table
-T1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin2
-show databases like "mysql%";
-Database (mysql%)
-mysql
-mysql_test
-show databases like "mysql_TE%";
-Database (mysql_TE%)
-mysql_test
-drop database mysql_TEST;
-End of 10.0 tests
diff --git a/mysql-test/r/lowercase_table2.result b/mysql-test/r/lowercase_table2.result
deleted file mode 100644
index 9194638a4d2..00000000000
--- a/mysql-test/r/lowercase_table2.result
+++ /dev/null
@@ -1,336 +0,0 @@
-DROP TABLE IF EXISTS t1,t2,t3,t2aA,t1Aa;
-DROP DATABASE IF EXISTS `TEST_$1`;
-DROP DATABASE IF EXISTS `test_$1`;
-DROP DATABASE IF EXISTS mysqltest_LC2;
-CREATE TABLE T1 (a int) ENGINE=MyISAM;
-INSERT INTO T1 VALUES (1);
-SHOW TABLES LIKE "T1";
-Tables_in_test (T1)
-T1
-SHOW TABLES LIKE "t1";
-Tables_in_test (t1)
-T1
-SHOW CREATE TABLE T1;
-Table Create Table
-T1 CREATE TABLE `T1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-RENAME TABLE T1 TO T2;
-SHOW TABLES LIKE "T2";
-Tables_in_test (T2)
-T2
-SELECT * FROM t2;
-a
-1
-RENAME TABLE T2 TO t3;
-SHOW TABLES LIKE "T3";
-Tables_in_test (T3)
-t3
-RENAME TABLE T3 TO T1;
-SHOW TABLES LIKE "T1";
-Tables_in_test (T1)
-T1
-ALTER TABLE T1 add b int;
-SHOW TABLES LIKE "T1";
-Tables_in_test (T1)
-T1
-ALTER TABLE T1 RENAME T2;
-SHOW TABLES LIKE "T2";
-Tables_in_test (T2)
-T2
-LOCK TABLE T2 WRITE;
-ALTER TABLE T2 drop b;
-SHOW TABLES LIKE "T2";
-Tables_in_test (T2)
-T2
-UNLOCK TABLES;
-RENAME TABLE T2 TO T1;
-SHOW TABLES LIKE "T1";
-Tables_in_test (T1)
-T1
-SELECT * from T1;
-a
-1
-DROP TABLE T1;
-CREATE DATABASE `TEST_$1`;
-SHOW DATABASES LIKE "TEST%";
-Database (TEST%)
-TEST_$1
-test
-DROP DATABASE `test_$1`;
-CREATE TABLE T1 (a int) engine=innodb;
-INSERT INTO T1 VALUES (1);
-SHOW TABLES LIKE "T1";
-Tables_in_test (T1)
-T1
-SHOW TABLES LIKE "t1";
-Tables_in_test (t1)
-T1
-SHOW CREATE TABLE T1;
-Table Create Table
-T1 CREATE TABLE `T1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-RENAME TABLE T1 TO T2;
-SHOW TABLES LIKE "T2";
-Tables_in_test (T2)
-T2
-SELECT * FROM t2;
-a
-1
-RENAME TABLE T2 TO t3;
-SHOW TABLES LIKE "T3";
-Tables_in_test (T3)
-t3
-RENAME TABLE T3 TO T1;
-SHOW TABLES LIKE "T1";
-Tables_in_test (T1)
-T1
-ALTER TABLE T1 add b int;
-SHOW TABLES LIKE "T1";
-Tables_in_test (T1)
-T1
-ALTER TABLE T1 RENAME T2;
-SHOW TABLES LIKE "T2";
-Tables_in_test (T2)
-T2
-LOCK TABLE T2 WRITE;
-ALTER TABLE T2 drop b;
-SHOW TABLES LIKE "T2";
-Tables_in_test (T2)
-T2
-UNLOCK TABLES;
-RENAME TABLE T2 TO T1;
-SHOW TABLES LIKE "T1";
-Tables_in_test (T1)
-T1
-SELECT * from T1;
-a
-1
-DROP TABLE T1;
-create database mysqltest_UPPERCASE;
-CREATE TABLE mysqltest_UPPERCASE.T1 (a int) engine=innodb;
-CREATE TABLE mysqltest_uppercase.t2 (a int) engine=innodb;
-CREATE TABLE mysqltest_UPPERCASE.t3 (a int) engine=innodb;
-drop table mysqltest_UPPERCASE.T1;
-drop table mysqltest_UPPERCASE.T2;
-drop table mysqltest_uppercase.t3;
-drop database mysqltest_UPPERCASE;
-create table T1 (EVENT_ID int auto_increment primary key, LOCATION char(20));
-insert into T1 values (NULL,"Mic-4"),(NULL,"Mic-5"),(NULL,"Mic-6");
-SELECT LOCATION FROM T1 WHERE EVENT_ID=2 UNION ALL SELECT LOCATION FROM T1 WHERE EVENT_ID=3;
-LOCATION
-Mic-5
-Mic-6
-SELECT LOCATION FROM T1 WHERE EVENT_ID=2 UNION ALL SELECT LOCATION FROM T1 WHERE EVENT_ID=3;
-LOCATION
-Mic-5
-Mic-6
-SELECT LOCATION FROM T1 WHERE EVENT_ID=2 UNION ALL SELECT LOCATION FROM T1 WHERE EVENT_ID=3;
-LOCATION
-Mic-5
-Mic-6
-drop table T1;
-create table T1 (A int);
-alter table T1 add index (A);
-show tables like 'T1%';
-Tables_in_test (T1%)
-T1
-alter table t1 add index (A);
-Warnings:
-Note 1831 Duplicate index `A_2`. This is deprecated and will be disallowed in a future release
-show tables like 't1%';
-Tables_in_test (t1%)
-t1
-drop table t1;
-create temporary table T1(a int(11), b varchar(8));
-insert into T1 values (1, 'abc');
-select * from T1;
-a b
-1 abc
-alter table T1 add index (a);
-select * from T1;
-a b
-1 abc
-drop table T1;
-create database mysqltest_LC2;
-use mysqltest_LC2;
-create table myUC (i int);
-show tables;
-Tables_in_mysqltest_LC2
-myUC
-insert into myUC values (1),(2),(3);
-select * from myUC;
-i
-1
-2
-3
-use test;
-drop database mysqltest_LC2;
-create database mysqltest_LC2;
-use mysqltest_LC2;
-create table myUC (i int);
-select * from myUC;
-i
-use test;
-drop database mysqltest_LC2;
-create table t2aA (col1 int);
-create table t1Aa (col1 int);
-select t1Aa.col1 from t1aA,t2Aa where t1Aa.col1 = t2aA.col1;
-col1
-drop table t2aA, t1Aa;
-create database mysqltest_LC2;
-use mysqltest_LC2;
-create table myUC (i int);
-select TABLE_SCHEMA,TABLE_NAME FROM information_schema.TABLES
-where TABLE_SCHEMA ='mysqltest_LC2';
-TABLE_SCHEMA TABLE_NAME
-mysqltest_lc2 myUC
-use test;
-drop database mysqltest_LC2;
-#
-# Bug #11758687: 50924: object names not resolved correctly
-# on lctn2 systems
-#
-CREATE DATABASE BUP_XPFM_COMPAT_DB2;
-CREATE TABLE BUP_XPFM_COMPAT_DB2.TABLE2 (c13 INT) DEFAULT CHARSET latin1;
-CREATE TABLE BUP_XPFM_COMPAT_DB2.table1 (c13 INT) DEFAULT CHARSET latin1;
-CREATE TABLE bup_xpfm_compat_db2.table3 (c13 INT) DEFAULT CHARSET latin1;
-CREATE TRIGGER BUP_XPFM_COMPAT_DB2.trigger1 AFTER INSERT
-ON BUP_XPFM_COMPAT_DB2.table1 FOR EACH ROW
-update BUP_XPFM_COMPAT_DB2.table1 set c13=12;
-|
-CREATE TRIGGER BUP_XPFM_COMPAT_DB2.TRIGGER2 AFTER INSERT
-ON BUP_XPFM_COMPAT_DB2.TABLE2 FOR EACH ROW
-update BUP_XPFM_COMPAT_DB2.table1 set c13=12;
-|
-CREATE TRIGGER BUP_XPFM_COMPAT_DB2.TrigGer3 AFTER INSERT
-ON BUP_XPFM_COMPAT_DB2.TaBle3 FOR EACH ROW
-update BUP_XPFM_COMPAT_DB2.table1 set c13=12;
-|
-SELECT trigger_schema, trigger_name, event_object_table FROM
-INFORMATION_SCHEMA.TRIGGERS
-WHERE trigger_schema COLLATE utf8_bin = 'BUP_XPFM_COMPAT_DB2'
- ORDER BY trigger_schema, trigger_name;
-trigger_schema trigger_name event_object_table
-BUP_XPFM_COMPAT_DB2 trigger1 table1
-BUP_XPFM_COMPAT_DB2 TRIGGER2 TABLE2
-BUP_XPFM_COMPAT_DB2 TrigGer3 table3
-DROP DATABASE BUP_XPFM_COMPAT_DB2;
-# End of 5.1 tests
-#
-# Test for bug #44738 "fill_schema_table_from_frm() opens tables without
-# lowercasing table name". Due to not properly normalizing table names
-# in lower_case_table_names modes in this function queries to I_S which
-# were executed through it left entries with incorrect key in table
-# definition cache. As result further queries to I_S that used this
-# function produced stale results in cases when table definition was
-# changed by a DDL statement. Also combination of this issue and a
-# similar problem in CREATE TABLE (it also has peeked into table
-# definition cache using non-normalized key) led to spurious
-# ER_TABLE_EXISTS_ERROR errors when one tried to create table with the
-# same name as a previously existing but dropped table.
-#
-drop database if exists mysqltest_UPPERCASE;
-drop table if exists t_bug44738_UPPERCASE;
-create database mysqltest_UPPERCASE;
-use mysqltest_UPPERCASE;
-select database();
-database()
-mysqltest_UPPERCASE
-create table t_bug44738_UPPERCASE (i int) comment='Old comment';
-create table t_bug44738_lowercase (i int) comment='Old comment';
-create table t_bug44738_UPPERCASE2 (i int) comment='Old comment';
-create table t_bug44738_lowercase2 (i int) comment='Old comment';
-select table_schema, table_name, table_comment from information_schema.tables
-where table_schema like 'mysqltest_%' and table_name like 't_bug44738_%'
- order by table_name;
-table_schema table_name table_comment
-mysqltest_UPPERCASE t_bug44738_lowercase Old comment
-mysqltest_UPPERCASE t_bug44738_lowercase2 Old comment
-mysqltest_UPPERCASE t_bug44738_UPPERCASE Old comment
-mysqltest_UPPERCASE t_bug44738_UPPERCASE2 Old comment
-alter table t_bug44738_UPPERCASE comment='New comment';
-alter table t_bug44738_lowercase comment='New comment';
-alter table mysqltest_uppercase.t_bug44738_UPPERCASE2 comment='New comment';
-alter table mysqltest_UPPERCASE.t_bug44738_lowercase2 comment='New comment';
-# There should be no stale entries in TDC for our tables after the
-# above ALTER TABLE statements so new version of comments should be
-# returned by the below query to I_S.
-select table_schema, table_name, table_comment from information_schema.tables
-where table_schema like 'mysqltest_%' and table_name like 't_bug44738_%'
- order by table_name;
-table_schema table_name table_comment
-mysqltest_UPPERCASE t_bug44738_lowercase New comment
-mysqltest_UPPERCASE t_bug44738_lowercase2 New comment
-mysqltest_UPPERCASE t_bug44738_UPPERCASE New comment
-mysqltest_UPPERCASE t_bug44738_UPPERCASE2 New comment
-drop database mysqltest_UPPERCASE;
-use test;
-# Let us check that the original test case which led to discovery
-# of this problem also works.
-create table t_bug44738_UPPERCASE (i int);
-select table_schema, table_name, table_comment from information_schema.tables
-where table_schema = 'test' and table_name like 't_bug44738_%';
-table_schema table_name table_comment
-test t_bug44738_UPPERCASE
-drop table t_bug44738_UPPERCASE;
-# After the above DROP TABLE there are no entries in TDC which correspond
-# to our table and therefore the below statement should succeed.
-create table t_bug44738_UPPERCASE (i int);
-drop table t_bug44738_UPPERCASE;
-# Finally, let us check that another issue which was exposed by
-# the original test case is solved. I.e. that the table is not
-# created if there is an entry for it in TDC even though it was
-# removed from disk.
-create table t_bug44738_UPPERCASE (i int) engine = myisam;
-# Load table definition in TDC.
-select table_schema, table_name, table_comment from information_schema.tables
-where table_schema = 'test' and table_name like 't_bug44738_%';
-table_schema table_name table_comment
-test t_bug44738_UPPERCASE
-# Simulate manual removal of the table.
-# Check that still there is an entry for table in TDC.
-show open tables like 't_bug44738_%';
-Database Table In_use Name_locked
-test t_bug44738_uppercase 0 0
-# So attempt to create table with the same name should fail.
-create table t_bug44738_UPPERCASE (i int);
-ERROR 42S01: Table 't_bug44738_uppercase' already exists
-# And should succeed after FLUSH TABLES.
-flush tables;
-create table t_bug44738_UPPERCASE (i int);
-drop table t_bug44738_UPPERCASE;
-#
-# Bug #21317 SHOW CREATE DATABASE does not obey to
-# lower_case_table_names
-#
-create database mysql_TEST;
-create table mysql_TEST.T1(a int);
-show databases like 'mysql%';
-Database (mysql%)
-mysql
-mysql_TEST
-show databases like 'mysql_T%';
-Database (mysql_T%)
-mysql_TEST
-show databases like 'mysql_t%';
-Database (mysql_t%)
-mysql_TEST
-show create database mysql_test;
-Database Create Database
-mysql_test CREATE DATABASE `mysql_test` /*!40100 DEFAULT CHARACTER SET latin1 */
-show create database mysql_TEST;
-Database Create Database
-mysql_TEST CREATE DATABASE `mysql_TEST` /*!40100 DEFAULT CHARACTER SET latin1 */
-show create table mysql_TEST.T1;
-Table Create Table
-T1 CREATE TABLE `T1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create table mysql_test.t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop database mysql_TEST;
diff --git a/mysql-test/r/lowercase_table4.result b/mysql-test/r/lowercase_table4.result
deleted file mode 100644
index 72c2e9ebf95..00000000000
--- a/mysql-test/r/lowercase_table4.result
+++ /dev/null
@@ -1,118 +0,0 @@
-#
-# Bug#46941 crash with lower_case_table_names=2 and
-# foreign data dictionary confusion
-#
-CREATE DATABASE XY;
-USE XY;
-set @old_table_open_cache=@@table_open_cache;
-set global table_open_cache = 512;
-set global table_open_cache = @old_table_open_cache;
-DROP DATABASE XY;
-USE TEST;
-#
-# Bug55222 Mysqldump table names case bug in REFERENCES clause
-# InnoDB did not handle lower_case_table_names=2 for
-# foreign_table_names and referenced_table_names.
-#
-SHOW VARIABLES LIKE 'lower_case_table_names';
-Variable_name Value
-lower_case_table_names 2
-DROP TABLE IF EXISTS `Table2`;
-DROP TABLE IF EXISTS `Table1`;
-CREATE TABLE `Table1`(c1 INT PRIMARY KEY) ENGINE=InnoDB;
-CREATE TABLE `Table2`(c1 INT PRIMARY KEY, c2 INT) ENGINE=InnoDB;
-ALTER TABLE `Table2` ADD CONSTRAINT fk1 FOREIGN KEY(c2) REFERENCES `Table1`(c1);
-SHOW CREATE TABLE `Table2`;
-Table Table2
-Create Table CREATE TABLE `Table2` (
- `c1` int(11) NOT NULL,
- `c2` int(11) DEFAULT NULL,
- PRIMARY KEY (`c1`),
- KEY `fk1` (`c2`),
- CONSTRAINT `fk1` FOREIGN KEY (`c2`) REFERENCES `Table1` (`c1`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS WHERE CONSTRAINT_SCHEMA='test';
-CONSTRAINT_CATALOG def
-CONSTRAINT_SCHEMA test
-CONSTRAINT_NAME fk1
-UNIQUE_CONSTRAINT_CATALOG def
-UNIQUE_CONSTRAINT_SCHEMA test
-UNIQUE_CONSTRAINT_NAME PRIMARY
-MATCH_OPTION NONE
-UPDATE_RULE RESTRICT
-DELETE_RULE RESTRICT
-TABLE_NAME Table2
-REFERENCED_TABLE_NAME Table1
-DROP TABLE `Table2`;
-DROP TABLE `Table1`;
-DROP TABLE IF EXISTS Product_Order;
-DROP TABLE IF EXISTS Product;
-DROP TABLE IF EXISTS Customer;
-CREATE TABLE Product (Category INT NOT NULL, Id INT NOT NULL,
-Price DECIMAL, PRIMARY KEY(Category, Id)) ENGINE=InnoDB;
-CREATE TABLE Customer (Id INT NOT NULL, PRIMARY KEY (Id)) ENGINE=InnoDB;
-CREATE TABLE Product_Order (No INT NOT NULL AUTO_INCREMENT,
-Product_Category INT NOT NULL,
-Product_Id INT NOT NULL,
-Customer_Id INT NOT NULL,
-PRIMARY KEY(No),
-INDEX (Product_Category, Product_Id),
-FOREIGN KEY (Product_Category, Product_Id)
-REFERENCES Product(Category, Id) ON UPDATE CASCADE ON DELETE RESTRICT,
-INDEX (Customer_Id),
-FOREIGN KEY (Customer_Id)
-REFERENCES Customer(Id)
-) ENGINE=INNODB;
-SHOW CREATE TABLE Product_Order;
-Table Product_Order
-Create Table CREATE TABLE `Product_Order` (
- `No` int(11) NOT NULL AUTO_INCREMENT,
- `Product_Category` int(11) NOT NULL,
- `Product_Id` int(11) NOT NULL,
- `Customer_Id` int(11) NOT NULL,
- PRIMARY KEY (`No`),
- KEY `Product_Category` (`Product_Category`,`Product_Id`),
- KEY `Customer_Id` (`Customer_Id`),
- CONSTRAINT `product_order_ibfk_1` FOREIGN KEY (`Product_Category`, `Product_Id`) REFERENCES `Product` (`Category`, `Id`) ON UPDATE CASCADE,
- CONSTRAINT `product_order_ibfk_2` FOREIGN KEY (`Customer_Id`) REFERENCES `Customer` (`Id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SHOW CREATE TABLE Product;
-Table Product
-Create Table CREATE TABLE `Product` (
- `Category` int(11) NOT NULL,
- `Id` int(11) NOT NULL,
- `Price` decimal(10,0) DEFAULT NULL,
- PRIMARY KEY (`Category`,`Id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SHOW CREATE TABLE Customer;
-Table Customer
-Create Table CREATE TABLE `Customer` (
- `Id` int(11) NOT NULL,
- PRIMARY KEY (`Id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS WHERE CONSTRAINT_SCHEMA='test';
-CONSTRAINT_CATALOG def
-CONSTRAINT_SCHEMA test
-CONSTRAINT_NAME product_order_ibfk_1
-UNIQUE_CONSTRAINT_CATALOG def
-UNIQUE_CONSTRAINT_SCHEMA test
-UNIQUE_CONSTRAINT_NAME PRIMARY
-MATCH_OPTION NONE
-UPDATE_RULE CASCADE
-DELETE_RULE RESTRICT
-TABLE_NAME Product_Order
-REFERENCED_TABLE_NAME Product
-CONSTRAINT_CATALOG def
-CONSTRAINT_SCHEMA test
-CONSTRAINT_NAME product_order_ibfk_2
-UNIQUE_CONSTRAINT_CATALOG def
-UNIQUE_CONSTRAINT_SCHEMA test
-UNIQUE_CONSTRAINT_NAME PRIMARY
-MATCH_OPTION NONE
-UPDATE_RULE RESTRICT
-DELETE_RULE RESTRICT
-TABLE_NAME Product_Order
-REFERENCED_TABLE_NAME Customer
-DROP TABLE Product_Order;
-DROP TABLE Product;
-DROP TABLE Customer;
diff --git a/mysql-test/r/lowercase_table5.result b/mysql-test/r/lowercase_table5.result
deleted file mode 100644
index 9adfd0590a8..00000000000
--- a/mysql-test/r/lowercase_table5.result
+++ /dev/null
@@ -1,13 +0,0 @@
-CREATE DATABASE mysql_TEST CHARACTER SET utf8;
-SHOW CREATE DATABASE mysql_TEST;
-Database Create Database
-mysql_TEST CREATE DATABASE `mysql_TEST` /*!40100 DEFAULT CHARACTER SET utf8 */
-CREATE DATABASE mysql_test CHARACTER SET latin2;
-SHOW CREATE DATABASE mysql_test;
-Database Create Database
-mysql_test CREATE DATABASE `mysql_test` /*!40100 DEFAULT CHARACTER SET latin2 */
-SHOW CREATE DATABASE mysql_TEST;
-Database Create Database
-mysql_TEST CREATE DATABASE `mysql_TEST` /*!40100 DEFAULT CHARACTER SET utf8 */
-DROP DATABASE mysql_test;
-DROP DATABASE mysql_TEST;
diff --git a/mysql-test/r/lowercase_table_grant.result b/mysql-test/r/lowercase_table_grant.result
deleted file mode 100644
index 9ba542ec22d..00000000000
--- a/mysql-test/r/lowercase_table_grant.result
+++ /dev/null
@@ -1,24 +0,0 @@
-use mysql;
-set sql_mode="";
-create database MYSQLtest;
-grant all on MySQLtest.* to mysqltest_1@localhost;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT ALL PRIVILEGES ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-select * from db where user = 'mysqltest_1';
-Host Db User Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Grant_priv References_priv Index_priv Alter_priv Create_tmp_table_priv Lock_tables_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Execute_priv Event_priv Trigger_priv Delete_history_priv
-localhost mysqltest mysqltest_1 Y Y Y Y Y Y N Y Y Y Y Y Y Y Y Y Y Y Y Y
-update db set db = 'MYSQLtest' where db = 'mysqltest' and user = 'mysqltest_1' and host = 'localhost';
-flush privileges;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT ALL PRIVILEGES ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
-select * from db where user = 'mysqltest_1';
-Host Db User Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Grant_priv References_priv Index_priv Alter_priv Create_tmp_table_priv Lock_tables_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Execute_priv Event_priv Trigger_priv Delete_history_priv
-localhost MYSQLtest mysqltest_1 Y Y Y Y Y Y N Y Y Y Y Y Y Y Y Y Y Y Y Y
-delete from db where db = 'MYSQLtest' and user = 'mysqltest_1' and host = 'localhost';
-flush privileges;
-drop user mysqltest_1@localhost;
-drop database MYSQLtest;
diff --git a/mysql-test/r/lowercase_table_qcache.result b/mysql-test/r/lowercase_table_qcache.result
deleted file mode 100644
index 9d7e1007e4c..00000000000
--- a/mysql-test/r/lowercase_table_qcache.result
+++ /dev/null
@@ -1,27 +0,0 @@
-set GLOBAL query_cache_size=1355776;
-set GLOBAL query_cache_type=ON;
-set LOCAL query_cache_type=ON;
-drop database if exists MySQLtesT;
-create database MySQLtesT;
-create table MySQLtesT.t1 (a int);
-select * from MySQLtesT.t1;
-a
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-drop database mysqltest;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-use MySQL;
-select * from db;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-use test;
-select * from MySQL.db;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-set GLOBAL query_cache_size=default;
-set GLOBAL query_cache_type=default;
diff --git a/mysql-test/r/lowercase_utf8.result b/mysql-test/r/lowercase_utf8.result
deleted file mode 100644
index 043226e1f64..00000000000
--- a/mysql-test/r/lowercase_utf8.result
+++ /dev/null
@@ -1,9 +0,0 @@
-set names utf8;
-create table `Ö` (id int);
-show tables from test like 'Ö';
-Tables_in_test (Ö)
-ö
-show tables from test like 'ö';
-Tables_in_test (ö)
-ö
-drop table `Ö`;
diff --git a/mysql-test/r/lowercase_view.result b/mysql-test/r/lowercase_view.result
deleted file mode 100644
index af53f67869d..00000000000
--- a/mysql-test/r/lowercase_view.result
+++ /dev/null
@@ -1,93 +0,0 @@
-drop table if exists t1Aa,t2Aa,v1Aa,v2Aa;
-drop view if exists t1Aa,t2Aa,v1Aa,v2Aa;
-drop database if exists MySQLTest;
-create database MySQLTest;
-use MySQLTest;
-create table TaB (Field int);
-create view ViE as select * from TAb;
-show create table VIe;
-View Create View character_set_client collation_connection
-vie CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vie` AS select `tab`.`Field` AS `Field` from `tab` latin1 latin1_swedish_ci
-drop database MySQLTest;
-use test;
-create table t1Aa (col1 int);
-create table t2aA (col1 int);
-create view v1Aa as select * from t1aA;
-create view v2aA as select * from v1aA;
-create view v3Aa as select v2Aa.col1 from v2aA,t2Aa where v2Aa.col1 = t2aA.col1;
-insert into v2Aa values ((select max(col1) from v1aA));
-ERROR HY000: The definition of table 'v1aA' prevents operation INSERT on table 'v2Aa'
-insert into t1aA values ((select max(col1) from v1Aa));
-ERROR HY000: The definition of table 'v1Aa' prevents operation INSERT on table 't1aA'
-insert into v2aA values ((select max(col1) from v1aA));
-ERROR HY000: The definition of table 'v1aA' prevents operation INSERT on table 'v2aA'
-insert into v2Aa values ((select max(col1) from t1Aa));
-ERROR HY000: The definition of table 'v2Aa' prevents operation INSERT on table 'v2Aa'
-insert into t1aA values ((select max(col1) from t1Aa));
-ERROR HY000: Table 't1aA' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into v2aA values ((select max(col1) from t1aA));
-ERROR HY000: The definition of table 'v2aA' prevents operation INSERT on table 'v2aA'
-insert into v2Aa values ((select max(col1) from v2aA));
-ERROR HY000: Table 'v2Aa' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into t1Aa values ((select max(col1) from v2Aa));
-ERROR HY000: The definition of table 'v2Aa' prevents operation INSERT on table 't1Aa'
-insert into v2aA values ((select max(col1) from v2Aa));
-ERROR HY000: Table 'v2aA' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into v3Aa (col1) values ((select max(col1) from v1Aa));
-ERROR HY000: The definition of table 'v1Aa' prevents operation INSERT on table 'v3Aa'
-insert into v3aA (col1) values ((select max(col1) from t1aA));
-ERROR HY000: The definition of table 'v3aA' prevents operation INSERT on table 'v3aA'
-insert into v3Aa (col1) values ((select max(col1) from v2aA));
-ERROR HY000: The definition of table 'v2aA' prevents operation INSERT on table 'v3Aa'
-drop view v3aA,v2Aa,v1aA;
-drop table t1Aa,t2Aa;
-create table t1Aa (col1 int);
-create view v1Aa as select col1 from t1Aa as AaA;
-show create view v1AA;
-View Create View character_set_client collation_connection
-v1aa CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1aa` AS select `aaa`.`col1` AS `col1` from `t1aa` `aaa` latin1 latin1_swedish_ci
-drop view v1AA;
-select Aaa.col1 from t1Aa as AaA;
-col1
-create view v1Aa as select Aaa.col1 from t1Aa as AaA;
-drop view v1AA;
-create view v1Aa as select AaA.col1 from t1Aa as AaA;
-show create view v1AA;
-View Create View character_set_client collation_connection
-v1aa CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1aa` AS select `aaa`.`col1` AS `col1` from `t1aa` `aaa` latin1 latin1_swedish_ci
-drop view v1AA;
-drop table t1Aa;
-CREATE TABLE t1 (a int, b int);
-select X.a from t1 AS X group by X.b having (X.a = 1);
-a
-select X.a from t1 AS X group by X.b having (x.a = 1);
-a
-select X.a from t1 AS X group by X.b having (x.b = 1);
-a
-CREATE OR REPLACE VIEW v1 AS
-select X.a from t1 AS X group by X.b having (X.a = 1);
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `x`.`a` AS `a` from `t1` `x` group by `x`.`b` having `x`.`a` = 1 latin1 latin1_swedish_ci
-SELECT * FROM v1;
-a
-DROP VIEW v1;
-DROP TABLE t1;
-End of 5.0 tests.
-#
-# Bug #53095: SELECT column_name FROM INFORMATION_SCHEMA.STATISTICS
-# returns nothing
-#
-CREATE TABLE `ttt` (
-`f1` char(3) NOT NULL,
-PRIMARY KEY (`f1`)
-) ENGINE=myisam DEFAULT CHARSET=latin1;
-SELECT count(COLUMN_NAME) FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_NAME =
-'TTT';
-count(COLUMN_NAME)
-1
-SELECT count(*) FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_NAME = 'TTT';
-count(*)
-1
-DROP TABLE `ttt`;
-End of 5.0 tests.
diff --git a/mysql-test/r/max_statement_time.result b/mysql-test/r/max_statement_time.result
deleted file mode 100644
index 44ee03b813a..00000000000
--- a/mysql-test/r/max_statement_time.result
+++ /dev/null
@@ -1,183 +0,0 @@
-
-# Test the MAX_STATEMENT_TIME option.
-
-SET @@MAX_STATEMENT_TIME=2;
-select @@max_statement_time;
-@@max_statement_time
-2.000000
-SELECT SLEEP(1);
-SLEEP(1)
-0
-SELECT SLEEP(3);
-SLEEP(3)
-1
-SET @@MAX_STATEMENT_TIME=0;
-SELECT SLEEP(1);
-SLEEP(1)
-0
-SHOW STATUS LIKE "max_statement_time_exceeded";
-Variable_name Value
-Max_statement_time_exceeded 1
-CREATE TABLE t1 (a INT, b VARCHAR(300)) engine=myisam;
-INSERT INTO t1 VALUES (1, 'string');
-SELECT 0;
-0
-0
-
-# Test the MAX_STATEMENT_TIME option with SF (should have no effect).
-
-CREATE PROCEDURE p1()
-BEGIN
-declare tmp int;
-SET @@MAX_STATEMENT_TIME=0.0001;
-SELECT COUNT(*) INTO tmp FROM t1 WHERE b LIKE '%z%';
-SET @@MAX_STATEMENT_TIME=0;
-END|
-CREATE PROCEDURE p2()
-BEGIN
-SET @@MAX_STATEMENT_TIME=5;
-END|
-SELECT @@MAX_STATEMENT_TIME;
-@@MAX_STATEMENT_TIME
-0.000000
-CALL p1();
-CALL p2();
-SELECT @@MAX_STATEMENT_TIME;
-@@MAX_STATEMENT_TIME
-5.000000
-SET @@MAX_STATEMENT_TIME=0;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP TABLE t1;
-
-# MAX_STATEMENT_TIME account resource
-
-set statement sql_mode="" for
-GRANT USAGE ON *.* TO user1@localhost WITH MAX_STATEMENT_TIME 1.005;
-# con1
-SELECT @@max_statement_time;
-@@max_statement_time
-1.005000
-# restart and reconnect
-set @global.userstat=1;
-SELECT @@global.max_statement_time,@@session.max_statement_time;
-@@global.max_statement_time @@session.max_statement_time
-0.000000 1.005000
-select sleep(100);
-sleep(100)
-1
-SHOW STATUS LIKE "max_statement_time_exceeded";
-Variable_name Value
-Max_statement_time_exceeded 1
-show grants for user1@localhost;
-Grants for user1@localhost
-GRANT USAGE ON *.* TO 'user1'@'localhost' WITH MAX_STATEMENT_TIME 1.005000
-set @global.userstat=0;
-DROP USER user1@localhost;
-
-# MAX_STATEMENT_TIME status variables.
-
-flush status;
-SET @@max_statement_time=0;
-SELECT CONVERT(VARIABLE_VALUE, UNSIGNED) INTO @time_exceeded
-FROM INFORMATION_SCHEMA.GLOBAL_STATUS
-WHERE VARIABLE_NAME = 'max_statement_time_exceeded';
-SET @@max_statement_time=0.5;
-SELECT SLEEP(2);
-SLEEP(2)
-1
-SHOW STATUS LIKE '%timeout%';
-Variable_name Value
-Binlog_group_commit_trigger_timeout 0
-Master_gtid_wait_timeouts 0
-Ssl_default_timeout 0
-Ssl_session_cache_timeouts 0
-SET @@max_statement_time=0;
-# Ensure that the counters for:
-# - statements that exceeded their maximum execution time
-# are incremented.
-SELECT 1 AS STATUS FROM INFORMATION_SCHEMA.GLOBAL_STATUS
-WHERE VARIABLE_NAME = 'max_statement_time_exceeded'
- AND CONVERT(VARIABLE_VALUE, UNSIGNED) > @time_exceeded;
-STATUS
-1
-
-# Check that the appropriate error status is set.
-
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1);
-START TRANSACTION;
-SELECT * FROM t1 FOR UPDATE;
-a
-1
-SET @@SESSION.max_statement_time = 0.5;
-UPDATE t1 SET a = 2;
-ERROR 70100: Query execution was interrupted (max_statement_time exceeded)
-SHOW WARNINGS;
-Level Code Message
-Error 1969 Query execution was interrupted (max_statement_time exceeded)
-ROLLBACK;
-DROP TABLE t1;
-
-# Test interaction with lock waits.
-
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1);
-SET @@SESSION.max_statement_time= 0.5;
-LOCK TABLES t1 WRITE;
-SELECT @@SESSION.max_statement_time;
-@@SESSION.max_statement_time
-0.500000
-LOCK TABLES t1 READ;
-ERROR 70100: Query execution was interrupted (max_statement_time exceeded)
-UNLOCK TABLES;
-BEGIN;
-SELECT * FROM t1;
-a
-1
-ALTER TABLE t1 ADD COLUMN b INT;
-ERROR 70100: Query execution was interrupted (max_statement_time exceeded)
-ROLLBACK;
-SELECT GET_LOCK('lock', 1);
-GET_LOCK('lock', 1)
-1
-SELECT GET_LOCK('lock', 1);
-GET_LOCK('lock', 1)
-NULL
-SELECT RELEASE_LOCK('lock');
-RELEASE_LOCK('lock')
-1
-DROP TABLE t1;
-#
-# MDEV-7011:MAX_STATEMENT_TIME has no effect in a procedure after
-# a previous successful statement
-#
-create table t1 (i int);
-insert into t1 values (1),(2),(3),(4);
-insert into t1 select a.* from t1 a, t1 b, t1 c, t1 d, t1 e, t1 f, t1 g;
-create procedure pr()
-begin
-select 1;
-select sql_no_cache * from t1 where i > 5;
-select sql_no_cache * from t1 where i > 5;
-select sleep(2);
-end |
-set max_statement_time = 0.001;
-call pr();
-1
-1
-ERROR 70100: Query execution was interrupted (max_statement_time exceeded)
-set max_statement_time = 0;
-drop procedure pr;
-create procedure pr()
-begin
-select sql_no_cache * from t1 where i > 5;
-select sql_no_cache * from t1 where i > 5;
-select sleep(2);
-end |
-set max_statement_time = 0.001;
-call pr();
-ERROR 70100: Query execution was interrupted (max_statement_time exceeded)
-set max_statement_time = 0;
-drop procedure pr;
-drop table t1;
diff --git a/mysql-test/r/mdev-504.result b/mysql-test/r/mdev-504.result
deleted file mode 100644
index 9b8b6795e0f..00000000000
--- a/mysql-test/r/mdev-504.result
+++ /dev/null
@@ -1,24 +0,0 @@
-SET GLOBAL net_write_timeout = 900;
-CREATE TABLE A (
-pk INTEGER AUTO_INCREMENT PRIMARY KEY,
-fdate DATE
-) ENGINE=MyISAM;
-CREATE PROCEDURE p_analyze()
-BEGIN
-DECLARE attempts INTEGER DEFAULT 100;
-wl_loop: WHILE attempts > 0 DO
-ANALYZE TABLE A;
-SET attempts = attempts - 1;
-END WHILE wl_loop;
-END |
-CREATE FUNCTION rnd3() RETURNS INT
-BEGIN
-RETURN ROUND(3 * RAND() + 0.5);
-END |
-SET GLOBAL use_stat_tables = PREFERABLY;
-connection default;
-DROP TABLE A;
-DROP PROCEDURE p_analyze;
-DROP FUNCTION rnd3;
-SET GLOBAL use_stat_tables = DEFAULT;
-SET GLOBAL net_write_timeout = DEFAULT;
diff --git a/mysql-test/r/mdev13607.result b/mysql-test/r/mdev13607.result
deleted file mode 100644
index 08848bc645b..00000000000
--- a/mysql-test/r/mdev13607.result
+++ /dev/null
@@ -1,469 +0,0 @@
-#
-# Bug mdev-13607: overflow of current_record_count
-#
-CREATE TABLE t1 (id INT) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),
-(11),(12),(13),(14),(15),(16),(17),(18),(19),(20),
-(21),(22),(23),(24),(25),(26),(27),(28),(29),(30),
-(31),(32),(33),(34),(35),(36),(37),(38),(39),(40),
-(41),(42),(43),(44),(45),(46),(47),(48),(49),(50);
-CREATE TABLE t2 (id INT) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (1),(2);
-CREATE TABLE t3 (id INT) ENGINE=InnoDB;
-INSERT INTO t3 VALUES (1),(2);
-ANALYZE TABLE t1, t2, t3;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-test.t2 analyze status OK
-test.t3 analyze status OK
-explain SELECT * FROM
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_1
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_2
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_3
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_4
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_5
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_6
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_7
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_8
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_9
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_10
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_11
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_12
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_13
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_14
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_15
-INNER JOIN
-(SELECT p1.* FROM t1 p1 NATURAL JOIN t2 r1 NATURAL JOIN t3 d1 NATURAL JOIN t1 p2 NATURAL JOIN t2 r2 NATURAL JOIN t3 d2 NATURAL JOIN t1 p3 NATURAL JOIN t2 r3 NATURAL JOIN t3 d3 NATURAL JOIN t1 p4 NATURAL JOIN t2 r4 NATURAL JOIN t3 d4 NATURAL JOIN t1 p5 NATURAL JOIN t2 r5 NATURAL JOIN t3 d5 NATURAL JOIN t1 p6 NATURAL JOIN t2 r6 NATURAL JOIN t3 d6 NATURAL JOIN t1 p7 NATURAL JOIN t2 r7 NATURAL JOIN t3 d7 NATURAL JOIN t1 p8 NATURAL JOIN t2 r8 NATURAL JOIN t3 d8 NATURAL JOIN t1 p9 ) gp_16
-;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY r1 ALL NULL NULL NULL NULL 2
-1 PRIMARY d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-1 PRIMARY <derived4> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-1 PRIMARY <derived5> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-1 PRIMARY <derived6> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-1 PRIMARY <derived7> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-1 PRIMARY <derived8> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-1 PRIMARY <derived9> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-1 PRIMARY <derived10> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-1 PRIMARY <derived11> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-1 PRIMARY <derived12> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-1 PRIMARY <derived13> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-1 PRIMARY <derived14> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-1 PRIMARY <derived15> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-1 PRIMARY <derived16> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-1 PRIMARY <derived17> ALL NULL NULL NULL NULL -1127208515966861312 Using join buffer (incremental, BNL join)
-17 DERIVED r1 ALL NULL NULL NULL NULL 2
-17 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-17 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-17 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED r1 ALL NULL NULL NULL NULL 2
-16 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-16 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-16 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED r1 ALL NULL NULL NULL NULL 2
-15 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-15 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-15 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED r1 ALL NULL NULL NULL NULL 2
-14 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-14 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-14 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED r1 ALL NULL NULL NULL NULL 2
-13 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-13 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-13 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED r1 ALL NULL NULL NULL NULL 2
-12 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-12 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-12 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED r1 ALL NULL NULL NULL NULL 2
-11 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-11 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-11 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED r1 ALL NULL NULL NULL NULL 2
-10 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-10 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-10 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED r1 ALL NULL NULL NULL NULL 2
-9 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-9 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-9 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED r1 ALL NULL NULL NULL NULL 2
-8 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-8 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-8 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED r1 ALL NULL NULL NULL NULL 2
-7 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-7 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-7 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED r1 ALL NULL NULL NULL NULL 2
-6 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-6 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-6 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED r1 ALL NULL NULL NULL NULL 2
-5 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-5 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-5 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED r1 ALL NULL NULL NULL NULL 2
-4 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-4 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-4 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED r1 ALL NULL NULL NULL NULL 2
-3 DERIVED d1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 DERIVED r2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED d2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED r3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED d3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED r4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED d4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED r5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED d5 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED r6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED d6 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED r7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED d7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED r8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED d8 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED p1 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED p2 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED p3 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED p4 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED p5 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED p6 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED p7 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED p8 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-3 DERIVED p9 ALL NULL NULL NULL NULL 50 Using where; Using join buffer (incremental, BNL join)
-DROP TABLE t1,t2,t3;
diff --git a/mysql-test/r/mdev316.result b/mysql-test/r/mdev316.result
deleted file mode 100644
index 43082769872..00000000000
--- a/mysql-test/r/mdev316.result
+++ /dev/null
@@ -1,22 +0,0 @@
-set names swe7;
-select '' in ('',convert(0,time));
-'' in ('',convert(0,time))
-1
-select case '' when '' then 1 when convert(0,time) then 2 end;
-case '' when '' then 1 when convert(0,time) then 2 end
-1
-select convert(0x0030 using ucs2) div 1, concat(convert(0x0030 using ucs2)) div 1;
-convert(0x0030 using ucs2) div 1 concat(convert(0x0030 using ucs2)) div 1
-0 0
-select cast(convert(0x0030 using ucs2) as double), cast(concat(convert(0x0030 using ucs2)) as double);
-cast(convert(0x0030 using ucs2) as double) cast(concat(convert(0x0030 using ucs2)) as double)
-0 0
-select cast(convert(0x0030 using ucs2) as decimal(5.2)), cast(concat(convert(0x0030 using ucs2)) as decimal(5.2));
-cast(convert(0x0030 using ucs2) as decimal(5.2)) cast(concat(convert(0x0030 using ucs2)) as decimal(5.2))
-0 0
-select cast(convert(_ucs2 0x0030 using latin1) as date), cast(concat(convert(_ucs2 0x0030 using latin1)) as date);
-cast(convert(_ucs2 0x0030 using latin1) as date) cast(concat(convert(_ucs2 0x0030 using latin1)) as date)
-NULL NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0'
-Warning 1292 Incorrect datetime value: '0'
diff --git a/mysql-test/r/mdev375.result b/mysql-test/r/mdev375.result
deleted file mode 100644
index d7a66ebd6dd..00000000000
--- a/mysql-test/r/mdev375.result
+++ /dev/null
@@ -1,20 +0,0 @@
-SET GLOBAL log_warnings=4;
-SET GLOBAL max_connections=2;
-connect con1,localhost,root,,;
-SELECT 1;
-1
-1
-connect con2,localhost,root,,;
-SELECT 2;
-2
-2
-ERROR HY000: Too many connections
-connection default;
-SELECT 0;
-0
-0
-show status like "Threads_connected";
-Variable_name Value
-Threads_connected 3
-SET GLOBAL log_warnings=default;
-SET GLOBAL max_connections=default;
diff --git a/mysql-test/r/mdev6830.result b/mysql-test/r/mdev6830.result
deleted file mode 100644
index d1cf8c98ac1..00000000000
--- a/mysql-test/r/mdev6830.result
+++ /dev/null
@@ -1,48 +0,0 @@
-set @@debug_dbug= 'd,opt';
-CREATE TABLE t1 (pk INT PRIMARY KEY) ENGINE=MyISAM;
-CREATE TABLE t2 (
-f1 DATE,
-f2 VARCHAR(1024),
-f3 VARCHAR(10),
-f4 DATE,
-f5 VARCHAR(10),
-f6 VARCHAR(10),
-f7 VARCHAR(10),
-f8 DATETIME,
-f9 INT,
-f10 VARCHAR(1024),
-f11 VARCHAR(1024),
-f12 INT,
-f13 VARCHAR(1024)
-) ENGINE=MyISAM;
-CREATE OR REPLACE VIEW v2 AS SELECT * FROM t2;
-CREATE TABLE t3 (
-f1 VARCHAR(1024),
-f2 VARCHAR(1024),
-f3 DATETIME,
-f4 VARCHAR(10),
-f5 INT,
-f6 VARCHAR(10),
-f7 VARCHAR(1024),
-f8 VARCHAR(10),
-f9 INT,
-f10 DATE,
-f11 INT,
-f12 VARCHAR(1024),
-f13 VARCHAR(10),
-f14 DATE,
-f15 DATETIME
-) ENGINE=MyISAM;
-CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v3 AS SELECT * FROM t3;
-INSERT INTO t3 VALUES
-('FOO','foo','2000-08-04 00:00:00','one',1,'1','FOO','foo',1,'2004-05-09',1,'one','one','2001-12-07','2001-10-17 08:25:04'),
-('BAR','bar','2001-01-01 04:52:37','two',2,'2','BAR','bar',2,'2008-01-01',2,'two','two','2006-06-19','2002-01-01 08:22:49');
-CREATE TABLE t4 (f1 VARCHAR(10), f2 INT) ENGINE=MyISAM;
-SELECT * FROM t1;
-pk
-SELECT non_existing FROM v2;
-ERROR 42S22: Unknown column 'non_existing' in 'field list'
-SELECT * FROM t1, v3, t4 WHERE v3.f1 = t4.f1 AND t4.f2 = 6 AND t1.pk = v3.f5;
-pk f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f1 f2
-drop table t1,t2,t3,t4;
-drop view v2,v3;
diff --git a/mysql-test/r/mdev_14586.result b/mysql-test/r/mdev_14586.result
deleted file mode 100644
index f6c2095d3cd..00000000000
--- a/mysql-test/r/mdev_14586.result
+++ /dev/null
@@ -1,44 +0,0 @@
-create table t1(a bit(1), b int auto_increment ,id int, index(a,b));
-insert into t1 values(1,null,1);
-insert into t1 values(1,null,2);
-insert into t1 values(0,null,3);
-insert into t1 values(0,null,4);
-select a+0, b as auto_increment , id from t1 order by id;
-a+0 auto_increment id
-1 1 1
-1 2 2
-0 1 3
-0 2 4
-drop table t1;
-create table t1(a int auto_increment, b bit(5) ,id int, index (b,a));
-insert into t1 values(null,b'1',1);
-insert into t1 values(null,b'1',2);
-insert into t1 values(null,b'11',3);
-insert into t1 values(null,b'11',4);
-select a as auto_increment, b+0, id from t1 order by id;
-auto_increment b+0 id
-1 1 1
-2 1 2
-1 3 3
-2 3 4
-drop table t1;
-create table t1(a bit(1), b int auto_increment , c bit(1) , d bit(1), id int,index(a,c,b,d));
-insert into t1 values(1,null,1,1,1);
-insert into t1 values(1,null,1,1,2);
-insert into t1 values(0,null,1,1,3);
-insert into t1 values(1,null,0,1,4);
-select a+0, b as auto_increment, c+0, d+0, id from t1 order by id;
-a+0 auto_increment c+0 d+0 id
-1 1 1 1 1
-1 2 1 1 2
-0 1 1 1 3
-1 1 0 1 4
-drop table t1;
-CREATE TABLE t1 (b BIT(1), pk INTEGER AUTO_INCREMENT PRIMARY KEY);
-ALTER TABLE t1 ADD INDEX(b,pk);
-INSERT INTO t1 VALUES (1,b'1');
-ALTER TABLE t1 DROP PRIMARY KEY;
-select b+0, pk as auto_increment from t1;
-b+0 auto_increment
-1 1
-DROP TABLE t1;
diff --git a/mysql-test/r/mdl.result b/mysql-test/r/mdl.result
deleted file mode 100644
index d93bfd5c729..00000000000
--- a/mysql-test/r/mdl.result
+++ /dev/null
@@ -1,22 +0,0 @@
-#
-# MDEV-12882 - Assertion `mdl_ticket->m_type == MDL_SHARED_UPGRADABLE ||
-# mdl_ticket->m_type == MDL_SHARED_NO_WRITE ||
-# mdl_ticket->m_type == MDL_SHARED_NO_READ_WRITE ||
-# mdl_ticket->m_type == MDL_SHARED_READ'
-# failed in MDL_context::upgrade_shared_lock
-#
-CREATE TABLE t1(a INT) ENGINE=InnoDB;
-LOCK TABLES t1 WRITE CONCURRENT, t1 AS t2 READ;
-SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info;
-LOCK_MODE LOCK_TYPE TABLE_SCHEMA TABLE_NAME
-MDL_INTENTION_EXCLUSIVE Global read lock
-MDL_SHARED_NO_READ_WRITE Table metadata lock test t1
-UNLOCK TABLES;
-LOCK TABLES t1 AS t2 READ, t1 WRITE CONCURRENT;
-SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info;
-LOCK_MODE LOCK_TYPE TABLE_SCHEMA TABLE_NAME
-MDL_INTENTION_EXCLUSIVE Global read lock
-MDL_SHARED_WRITE Table metadata lock test t1
-MDL_SHARED_READ_ONLY Table metadata lock test t1
-UNLOCK TABLES;
-DROP TABLE t1;
diff --git a/mysql-test/r/mdl_sync.result b/mysql-test/r/mdl_sync.result
deleted file mode 100644
index 3880fc5ef91..00000000000
--- a/mysql-test/r/mdl_sync.result
+++ /dev/null
@@ -1,3069 +0,0 @@
-SET DEBUG_SYNC= 'RESET';
-connect con1,localhost,root,,test,,;
-connect con2,localhost,root,,test,,;
-connect con3,localhost,root,,test,,;
-connection default;
-drop table if exists t1,t2,t3;
-create table t1 (i int);
-create table t2 (i int);
-connection: default
-lock tables t2 read;
-connection con1;
-connection: con1
-set debug_sync='mdl_upgrade_lock SIGNAL parked WAIT_FOR go';
-alter table t1 rename t3;
-connection default;
-connection: default
-set debug_sync= 'now WAIT_FOR parked';
-connection con2;
-connection: con2
-set debug_sync='mdl_acquire_lock_wait SIGNAL go';
-drop table t1,t2;
-connection con1;
-connection: con1
-connection default;
-connection: default
-unlock tables;
-connection con2;
-connection: con2
-ERROR 42S02: Unknown table 'test.t1'
-connection default;
-drop table t3;
-disconnect con1;
-disconnect con2;
-disconnect con3;
-SET DEBUG_SYNC= 'RESET';
-#
-# Basic test coverage for type-of-operation aware metadata locks.
-#
-drop table if exists t1, t2, t3;
-connect mdl_con1,localhost,root,,;
-connect mdl_con2,localhost,root,,;
-connect mdl_con3,localhost,root,,;
-connection default;
-set debug_sync= 'RESET';
-create table t1 (c1 int);
-#
-# A) First let us check compatibility rules between differend kinds of
-# type-of-operation aware metadata locks.
-# Of course, these rules are already covered by the tests scattered
-# across the test suite. But it still makes sense to have one place
-# which covers all of them.
-#
-# 1) Acquire S (simple shared) lock on the table (by using HANDLER):
-#
-handler t1 open;
-#
-connection mdl_con1;
-# Check that S, SH, SR and SW locks are compatible with it.
-handler t1 open t;
-handler t close;
-select column_name from information_schema.columns where
-table_schema='test' and table_name='t1';
-column_name
-c1
-select count(*) from t1;
-count(*)
-0
-insert into t1 values (1), (1);
-# Check that SU lock is compatible with it. To do this use ALTER TABLE
-# which will fail when constructing .frm and thus obtaining SU metadata
-# lock.
-alter table t1 add index (not_exist);
-ERROR 42000: Key column 'not_exist' doesn't exist in table
-# Check that SNW lock is compatible with it. To do this use ALTER TABLE
-# which will fail during copying the table and thus obtaining SNW metadata
-# lock.
-alter table t1 add primary key (c1);
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-# Check that X lock is incompatible with S lock.
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con2;
-# Check that the above RENAME is blocked because of S lock.
-#
-connection default;
-# Unblock RENAME TABLE.
-handler t1 close;
-#
-connection mdl_con1;
-# Reaping RENAME TABLE.
-# Restore the original state of the things.
-rename table t2 to t1;
-#
-connection default;
-handler t1 open;
-#
-connection mdl_con1;
-# Check that upgrade from SNW to X is blocked by presence of S lock.
-# Sending:
-alter table t1 add column c2 int;;
-#
-connection mdl_con2;
-# Check that the above ALTER TABLE is blocked because of S lock.
-#
-connection default;
-# Unblock ALTER TABLE.
-handler t1 close;
-#
-connection mdl_con1;
-# Reaping ALTER TABLE.
-# Restore the original state of the things.
-alter table t1 drop column c2;
-#
-connection default;
-#
-# 2) Acquire SH (shared high-priority) lock on the table.
-# We have to involve DEBUG_SYNC facility for this as usually
-# such kind of locks are short-lived.
-#
-set debug_sync= 'after_open_table_mdl_shared SIGNAL locked WAIT_FOR finish';
-# Sending:
-select table_name, table_type, auto_increment, table_comment from information_schema.tables where table_schema='test' and table_name='t1';;
-#
-connection mdl_con1;
-set debug_sync= 'now WAIT_FOR locked';
-# Check that S, SH, SR and SW locks are compatible with it.
-handler t1 open;
-handler t1 close;
-select column_name from information_schema.columns where
-table_schema='test' and table_name='t1';
-column_name
-c1
-select count(*) from t1;
-count(*)
-2
-insert into t1 values (1);
-# Check that SU lock is compatible with it. To do this use ALTER TABLE
-# which will fail when constructing .frm and thus obtaining SU metadata
-# lock.
-alter table t1 add index (not_exist);
-ERROR 42000: Key column 'not_exist' doesn't exist in table
-# Check that SNW lock is compatible with it. To do this use ALTER TABLE
-# which will fail during copying the table and thus obtaining SNW metadata
-# lock.
-alter table t1 add primary key (c1);
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-# Check that SNRW lock is compatible with SH lock.
-lock table t1 write;
-delete from t1 limit 1;
-unlock tables;
-# Check that X lock is incompatible with SH lock.
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con2;
-# Check that the above RENAME is blocked because of SH lock.
-# Unblock RENAME TABLE.
-set debug_sync= 'now SIGNAL finish';
-#
-connection default;
-# Reaping SELECT ... FROM I_S.
-table_name table_type auto_increment table_comment
-t1 BASE TABLE NULL
-#
-connection mdl_con1;
-# Reaping RENAME TABLE.
-# Restore the original state of the things.
-rename table t2 to t1;
-#
-connection default;
-set debug_sync= 'after_open_table_mdl_shared SIGNAL locked WAIT_FOR finish';
-# Sending:
-select table_name, table_type, auto_increment, table_comment from information_schema.tables where table_schema='test' and table_name='t1';;
-#
-connection mdl_con1;
-set debug_sync= 'now WAIT_FOR locked';
-# Check that upgrade from SNW to X is blocked by presence of SH lock.
-# Sending:
-alter table t1 add column c2 int;;
-#
-connection mdl_con2;
-# Check that the above ALTER TABLE is blocked because of SH lock.
-# Unblock RENAME TABLE.
-set debug_sync= 'now SIGNAL finish';
-#
-connection default;
-# Reaping SELECT ... FROM I_S.
-table_name table_type auto_increment table_comment
-t1 BASE TABLE NULL
-#
-connection mdl_con1;
-# Reaping ALTER TABLE.
-# Restore the original state of the things.
-alter table t1 drop column c2;
-#
-connection default;
-set debug_sync= 'after_open_table_mdl_shared SIGNAL locked WAIT_FOR finish';
-select table_name, table_type, auto_increment, table_comment from information_schema.tables where table_schema='test' and table_name='t1';;
-#
-connection mdl_con1;
-set debug_sync= 'now WAIT_FOR locked';
-# Check that upgrade from SNRW to X is blocked by presence of S lock.
-lock table t1 write;
-# Sending:
-alter table t1 add column c2 int;;
-#
-connection mdl_con2;
-# Check that the above upgrade of SNRW to X in ALTER TABLE is blocked
-# because of S lock.
-# Unblock RENAME TABLE.
-set debug_sync= 'now SIGNAL finish';
-#
-connection default;
-# Reaping SELECT ... FROM I_S.
-table_name table_type auto_increment table_comment
-t1 BASE TABLE NULL
-#
-connection mdl_con1;
-# Reaping ALTER TABLE.
-# Restore the original state of the things.
-alter table t1 drop column c2;
-unlock tables;
-#
-connection default;
-#
-#
-# 3) Acquire SR lock on the table.
-#
-#
-begin;
-select count(*) from t1;
-count(*)
-2
-#
-connection mdl_con1;
-# Check that S, SH, SR and SW locks are compatible with it.
-handler t1 open;
-handler t1 close;
-select column_name from information_schema.columns where
-table_schema='test' and table_name='t1';
-column_name
-c1
-select count(*) from t1;
-count(*)
-2
-insert into t1 values (1);
-# Check that SU lock is compatible with it. To do this use ALTER TABLE
-# which will fail when constructing .frm and thus obtaining SU metadata
-# lock.
-alter table t1 add index (not_exist);
-ERROR 42000: Key column 'not_exist' doesn't exist in table
-# Check that SNW lock is compatible with it. To do this use ALTER TABLE
-# which will fail during copying the table and thus obtaining SNW metadata
-# lock.
-alter table t1 add primary key (c1);
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-# Check that SNRW lock is not compatible with SR lock.
-# Sending:
-lock table t1 write;;
-#
-connection default;
-# Check that the above LOCK TABLES is blocked because of SR lock.
-# Unblock LOCK TABLES.
-commit;
-#
-connection mdl_con1;
-# Reaping LOCK TABLES.
-delete from t1 limit 1;
-unlock tables;
-#
-connection default;
-begin;
-select count(*) from t1;
-count(*)
-2
-#
-connection mdl_con1;
-# Check that X lock is incompatible with SR lock.
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con2;
-# Check that the above RENAME is blocked because of SR lock.
-#
-connection default;
-# Unblock RENAME TABLE.
-commit;
-#
-connection mdl_con1;
-# Reaping RENAME TABLE.
-# Restore the original state of the things.
-rename table t2 to t1;
-#
-connection default;
-begin;
-select count(*) from t1;
-count(*)
-2
-#
-connection mdl_con1;
-# Check that upgrade from SNW to X is blocked by presence of SR lock.
-# Sending:
-alter table t1 add column c2 int;;
-#
-connection mdl_con2;
-# Check that the above ALTER TABLE is blocked because of SR lock.
-#
-connection default;
-# Unblock ALTER TABLE.
-commit;
-#
-connection mdl_con1;
-# Reaping ALTER TABLE.
-# Restore the original state of the things.
-alter table t1 drop column c2;
-#
-# There is no need to check that upgrade from SNRW to X is blocked
-# by presence of SR lock because SNRW is incompatible with SR anyway.
-#
-#
-connection default;
-#
-#
-# 4) Acquire SW lock on the table.
-#
-#
-begin;
-insert into t1 values (1);
-#
-connection mdl_con1;
-# Check that S, SH, SR and SW locks are compatible with it.
-handler t1 open;
-handler t1 close;
-select column_name from information_schema.columns where
-table_schema='test' and table_name='t1';
-column_name
-c1
-# Disable result log to make test robust against
-# effects of concurrent insert.
-select * from t1;
-insert into t1 values (1);
-# Check that SU lock is compatible with it. To do this use ALTER TABLE
-# which will fail when constructing .frm and thus obtaining SU metadata
-# lock.
-alter table t1 add index (not_exist);
-ERROR 42000: Key column 'not_exist' doesn't exist in table
-# Check that SNW lock is not compatible with SW lock.
-# Again we use ALTER TABLE which fails during copying
-# the table to avoid upgrade of SNW -> X.
-# Sending:
-alter table t1 add primary key (c1);;
-#
-connection default;
-# Check that the above ALTER TABLE is blocked because of SW lock.
-# Unblock ALTER TABLE.
-commit;
-#
-connection mdl_con1;
-# Reaping ALTER TABLE.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-connection default;
-begin;
-insert into t1 values (1);
-#
-connection mdl_con1;
-# Check that SNRW lock is not compatible with SW lock.
-# Sending:
-lock table t1 write;;
-#
-connection default;
-# Check that the above LOCK TABLES is blocked because of SW lock.
-# Unblock LOCK TABLES.
-commit;
-#
-connection mdl_con1;
-# Reaping LOCK TABLES.
-delete from t1 limit 2;
-unlock tables;
-#
-connection default;
-begin;
-insert into t1 values (1);
-#
-connection mdl_con1;
-# Check that X lock is incompatible with SW lock.
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con2;
-# Check that the above RENAME is blocked because of SW lock.
-#
-connection default;
-# Unblock RENAME TABLE.
-commit;
-#
-connection mdl_con1;
-# Reaping RENAME TABLE.
-# Restore the original state of the things.
-rename table t2 to t1;
-#
-# There is no need to check that upgrade from SNW/SNRW to X is
-# blocked by presence of SW lock because SNW/SNRW is incompatible
-# with SW anyway.
-#
-#
-connection default;
-#
-#
-# 5) Acquire SU lock on the table. We have to use DEBUG_SYNC for
-# this, to prevent SU from being immediately upgraded to X.
-#
-set debug_sync= 'alter_opened_table SIGNAL locked WAIT_FOR finish';
-# Sending:
-alter table t1 add primary key (c1);;
-#
-connection mdl_con1;
-set debug_sync= 'now WAIT_FOR locked';
-# Check that S, SH, SR and SW locks are compatible with it.
-handler t1 open;
-handler t1 close;
-select column_name from information_schema.columns where
-table_schema='test' and table_name='t1';
-column_name
-c1
-select count(*) from t1;
-count(*)
-4
-delete from t1 limit 1;
-# Check that SU lock is incompatible with SU lock.
-# Sending:
-alter table t1 add primary key (c1);;
-#
-connection mdl_con2;
-# Check that the above ALTER is blocked because of SU lock.
-# Unblock ALTERs.
-set debug_sync= 'now SIGNAL finish';
-#
-connection default;
-# Reaping first ALTER TABLE.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-connection mdl_con1;
-# Reaping another ALTER TABLE.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-connection default;
-set debug_sync= 'alter_opened_table SIGNAL locked WAIT_FOR finish';
-# Sending:
-alter table t1 add primary key (c1);;
-#
-connection mdl_con1;
-set debug_sync= 'now WAIT_FOR locked';
-# Check that SNRW lock is incompatible with SU lock.
-# Sending:
-lock table t1 write;;
-#
-connection mdl_con2;
-# Check that the above LOCK TABLES is blocked because of SU lock.
-# Unblock ALTER and thus LOCK TABLES.
-set debug_sync= 'now SIGNAL finish';
-#
-connection default;
-# Reaping ALTER TABLE.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-connection mdl_con1;
-# Reaping LOCK TABLES
-insert into t1 values (1);
-unlock tables;
-#
-connection default;
-set debug_sync= 'alter_opened_table SIGNAL locked WAIT_FOR finish';
-# Sending:
-alter table t1 add primary key (c1);;
-#
-connection mdl_con1;
-set debug_sync= 'now WAIT_FOR locked';
-# Check that X lock is incompatible with SU lock.
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con2;
-# Check that the above RENAME is blocked because of SU lock.
-# Unblock ALTER and thus RENAME TABLE.
-set debug_sync= 'now SIGNAL finish';
-#
-connection default;
-# Now we have ALTER TABLE with SU->SNW and RENAME TABLE with pending
-# X-lock. In this case ALTER TABLE should be chosen as victim.
-# Reaping ALTER TABLE.
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-#
-connection mdl_con1;
-# Reaping RENAME TABLE
-# Revert back to original state of things.
-rename table t2 to t1;
-#
-# There is no need to check that upgrade from SNW/SNRW to X is
-# blocked by presence of another SU lock because SNW/SNRW is
-# incompatible with SU anyway.
-#
-connection default;
-#
-#
-# 6) Acquire SNW lock on the table. We have to use DEBUG_SYNC for
-# this, to prevent SNW from being immediately upgraded to X.
-#
-set debug_sync= 'alter_table_copy_after_lock_upgrade SIGNAL locked WAIT_FOR finish';
-# Sending:
-alter table t1 add primary key (c1), lock=shared, algorithm=copy;;
-#
-connection mdl_con1;
-set debug_sync= 'now WAIT_FOR locked';
-# Check that S, SH and SR locks are compatible with it.
-handler t1 open;
-handler t1 close;
-select column_name from information_schema.columns where
-table_schema='test' and table_name='t1';
-column_name
-c1
-select count(*) from t1;
-count(*)
-4
-# Check that SW lock is incompatible with SNW lock.
-# Sending:
-delete from t1 limit 2;;
-#
-connection mdl_con2;
-# Check that the above DELETE is blocked because of SNW lock.
-# Unblock ALTER and thus DELETE.
-set debug_sync= 'now SIGNAL finish';
-#
-connection default;
-# Reaping ALTER TABLE.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-connection mdl_con1;
-# Reaping DELETE.
-#
-connection default;
-set debug_sync= 'alter_table_copy_after_lock_upgrade SIGNAL locked WAIT_FOR finish';
-# Sending:
-alter table t1 add primary key (c1), lock=shared, algorithm=copy;;
-#
-connection mdl_con1;
-set debug_sync= 'now WAIT_FOR locked';
-# Check that SU lock is incompatible with SNW lock.
-# Sending:
-alter table t1 add primary key (c1);;
-#
-connection mdl_con2;
-# Check that the above ALTER is blocked because of SNW lock.
-# Unblock ALTERs.
-set debug_sync= 'now SIGNAL finish';
-#
-connection default;
-# Reaping first ALTER TABLE.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-connection mdl_con1;
-# Reaping another ALTER TABLE.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-# Note that we can't easily check SNW vs SNW locks since
-# SNW is only used by ALTER TABLE after upgrading from SU
-# and SU is also incompatible with SNW.
-#
-connection default;
-set debug_sync= 'alter_table_copy_after_lock_upgrade SIGNAL locked WAIT_FOR finish';
-# Sending:
-alter table t1 add primary key (c1), lock=shared, algorithm=copy;;
-#
-connection mdl_con1;
-set debug_sync= 'now WAIT_FOR locked';
-# Check that SNRW lock is incompatible with SNW lock.
-# Sending:
-lock table t1 write;;
-#
-connection mdl_con2;
-# Check that the above LOCK TABLES is blocked because of SNW lock.
-# Unblock ALTER and thus LOCK TABLES.
-set debug_sync= 'now SIGNAL finish';
-#
-connection default;
-# Reaping ALTER TABLE.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-connection mdl_con1;
-# Reaping LOCK TABLES
-insert into t1 values (1);
-unlock tables;
-#
-connection default;
-set debug_sync= 'alter_table_copy_after_lock_upgrade SIGNAL locked WAIT_FOR finish';
-# Sending:
-alter table t1 add primary key (c1), algorithm=copy, lock=shared;;
-#
-connection mdl_con1;
-set debug_sync= 'now WAIT_FOR locked';
-# Check that X lock is incompatible with SNW lock.
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con2;
-# Check that the above RENAME is blocked because of SNW lock.
-# Unblock ALTER and thus RENAME TABLE.
-set debug_sync= 'now SIGNAL finish';
-#
-connection default;
-# Reaping ALTER TABLE.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-connection mdl_con1;
-# Reaping RENAME TABLE
-# Revert back to original state of things.
-rename table t2 to t1;
-#
-# There is no need to check that upgrade from SNW/SNRW to X is
-# blocked by presence of another SNW lock because SNW/SNRW is
-# incompatible with SNW anyway.
-#
-connection default;
-#
-#
-# 7) Acquire SNRW lock on the table.
-#
-#
-lock table t1 write;
-#
-connection mdl_con1;
-# Check that S and SH locks are compatible with it.
-select column_name from information_schema.columns where
-table_schema='test' and table_name='t1';
-column_name
-c1
-# Check that SR lock is incompatible with SNRW lock.
-# Sending:
-select count(*) from t1;;
-#
-connection default;
-# Check that the above SELECT is blocked because of SNRW lock.
-# Unblock SELECT.
-unlock tables;
-#
-connection mdl_con1;
-# Reaping SELECT.
-count(*)
-3
-#
-connection default;
-lock table t1 write;
-#
-connection mdl_con1;
-# Check that SW lock is incompatible with SNRW lock.
-# Sending:
-delete from t1 limit 1;;
-#
-connection default;
-# Check that the above DELETE is blocked because of SNRW lock.
-# Unblock DELETE.
-unlock tables;
-#
-connection mdl_con1;
-# Reaping DELETE.
-#
-connection default;
-lock table t1 write;
-#
-connection mdl_con1;
-# Check that SU lock is incompatible with SNRW lock.
-# Sending:
-alter table t1 add primary key (c1);;
-#
-connection default;
-# Check that the above ALTER is blocked because of SNRW lock.
-# Unblock ALTER.
-unlock tables;
-#
-connection mdl_con1;
-# Reaping ALTER TABLE.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-# Note that we can't easily check SNW vs SNRW locks since
-# SNW is only used by ALTER TABLE after upgrading from SU
-# and SU is also incompatible with SNRW.
-#
-connection default;
-lock table t1 write;
-#
-connection mdl_con1;
-# Check that SNRW lock is incompatible with SNRW lock.
-# Sending:
-lock table t1 write;;
-#
-connection default;
-# Check that the above LOCK TABLES is blocked because of SNRW lock.
-# Unblock waiting LOCK TABLES.
-unlock tables;
-#
-connection mdl_con1;
-# Reaping LOCK TABLES
-insert into t1 values (1);
-unlock tables;
-#
-connection default;
-lock table t1 write;
-#
-connection mdl_con1;
-# Check that X lock is incompatible with SNRW lock.
-# Sending:
-rename table t1 to t2;;
-#
-connection default;
-# Check that the above RENAME is blocked because of SNRW lock.
-# Unblock RENAME TABLE
-unlock tables;
-#
-connection mdl_con1;
-# Reaping RENAME TABLE
-# Revert back to original state of things.
-rename table t2 to t1;
-#
-# There is no need to check that upgrade from SNW/SNRW to X is
-# blocked by presence of another SNRW lock because SNW/SNRW is
-# incompatible with SNRW anyway.
-#
-connection default;
-#
-#
-# 8) Now do the same round of tests for X lock. We use additional
-# table to get long-lived lock of this type.
-#
-create table t2 (c1 int);
-#
-connection mdl_con2;
-# Take a lock on t2, so RENAME TABLE t1 TO t2 will get blocked
-# after acquiring X lock on t1.
-lock tables t2 read;
-#
-connection default;
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con1;
-# Check that RENAME has acquired X lock on t1 and is waiting for t2.
-# Check that S lock in incompatible with X lock.
-# Sending:
-handler t1 open;;
-#
-connection mdl_con2;
-# Check that the above HANDLER statement is blocked because of X lock.
-# Unblock RENAME TABLE
-unlock tables;
-#
-connection default;
-# Reaping RENAME TABLE.
-ERROR 42S01: Table 't2' already exists
-#
-connection mdl_con1;
-# Reaping HANDLER.
-handler t1 close;
-#
-connection mdl_con2;
-# Prepare for blocking RENAME TABLE.
-lock tables t2 read;
-#
-connection default;
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con1;
-# Check that RENAME has acquired X lock on t1 and is waiting for t2.
-# Check that SH lock in incompatible with X lock.
-# Sending:
-select column_name from information_schema.columns where table_schema='test' and table_name='t1';;
-#
-connection mdl_con2;
-# Check that the above SELECT ... FROM I_S ... statement is blocked
-# because of X lock.
-# Unblock RENAME TABLE
-unlock tables;
-#
-connection default;
-# Reaping RENAME TABLE.
-ERROR 42S01: Table 't2' already exists
-#
-connection mdl_con1;
-# Reaping SELECT ... FROM I_S.
-column_name
-c1
-#
-connection mdl_con2;
-# Prepare for blocking RENAME TABLE.
-lock tables t2 read;
-#
-connection default;
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con1;
-# Check that RENAME has acquired X lock on t1 and is waiting for t2.
-# Check that SR lock in incompatible with X lock.
-# Sending:
-select count(*) from t1;;
-#
-connection mdl_con2;
-# Check that the above SELECT statement is blocked
-# because of X lock.
-# Unblock RENAME TABLE
-unlock tables;
-#
-connection default;
-# Reaping RENAME TABLE.
-ERROR 42S01: Table 't2' already exists
-#
-connection mdl_con1;
-# Reaping SELECT.
-count(*)
-3
-#
-connection mdl_con2;
-# Prepare for blocking RENAME TABLE.
-lock tables t2 read;
-#
-connection default;
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con1;
-# Check that RENAME has acquired X lock on t1 and is waiting for t2.
-# Check that SW lock in incompatible with X lock.
-# Sending:
-delete from t1 limit 1;;
-#
-connection mdl_con2;
-# Check that the above DELETE statement is blocked
-# because of X lock.
-# Unblock RENAME TABLE
-unlock tables;
-#
-connection default;
-# Reaping RENAME TABLE.
-ERROR 42S01: Table 't2' already exists
-#
-connection mdl_con1;
-# Reaping DELETE.
-#
-connection mdl_con2;
-# Prepare for blocking RENAME TABLE.
-lock tables t2 read;
-#
-connection default;
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con1;
-# Check that RENAME has acquired X lock on t1 and is waiting for t2.
-# Check that SU lock is incompatible with X lock.
-# Sending:
-alter table t1 add primary key (c1);;
-#
-connection mdl_con2;
-# Check that the above ALTER statement is blocked
-# because of X lock.
-# Unblock RENAME TABLE
-unlock tables;
-#
-connection default;
-# Reaping RENAME TABLE
-ERROR 42S01: Table 't2' already exists
-#
-connection mdl_con1;
-# Reaping ALTER.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-# Note that we can't easily check SNW vs X locks since
-# SNW is only used by ALTER TABLE after upgrading from SU
-# and SU is also incompatible with X.
-#
-connection mdl_con2;
-# Prepare for blocking RENAME TABLE.
-lock tables t2 read;
-#
-connection default;
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con1;
-# Check that RENAME has acquired X lock on t1 and is waiting for t2.
-# Check that SNRW lock is incompatible with X lock.
-# Sending:
-lock table t1 write;;
-#
-connection mdl_con2;
-# Check that the above LOCK TABLE statement is blocked
-# because of X lock.
-# Unblock RENAME TABLE
-unlock tables;
-#
-connection default;
-# Reaping RENAME TABLE
-ERROR 42S01: Table 't2' already exists
-#
-connection mdl_con1;
-# Reaping LOCK TABLE.
-unlock tables;
-#
-connection mdl_con2;
-# Prepare for blocking RENAME TABLE.
-lock tables t2 read;
-#
-connection default;
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con1;
-# Check that RENAME has acquired X lock on t1 and is waiting for t2.
-# Check that X lock is incompatible with X lock.
-# Sending:
-rename table t1 to t3;;
-#
-connection mdl_con2;
-# Check that the above RENAME statement is blocked
-# because of X lock.
-# Unblock RENAME TABLE
-unlock tables;
-#
-connection default;
-# Reaping RENAME TABLE
-ERROR 42S01: Table 't2' already exists
-#
-connection mdl_con1;
-# Reaping RENAME.
-rename table t3 to t1;
-#
-# B) Now let us test compatibility in cases when both locks
-# are pending. I.e. let us test rules for priorities between
-# different types of metadata locks.
-#
-# Note: No tests for pending SU lock as this lock requires
-# even stronger active or pending lock.
-#
-#
-connection mdl_con2;
-#
-# 1) Check compatibility for pending SNW lock.
-#
-# Acquire SW lock in order to create pending SNW lock later.
-begin;
-insert into t1 values (1);
-#
-connection default;
-# Add pending SNW lock.
-# Sending:
-alter table t1 add primary key (c1);;
-#
-connection mdl_con1;
-# Check that ALTER TABLE is waiting with pending SNW lock.
-# Check that S, SH and SR locks are compatible with pending SNW
-handler t1 open t;
-handler t close;
-select column_name from information_schema.columns where
-table_schema='test' and table_name='t1';
-column_name
-c1
-select count(*) from t1;
-count(*)
-3
-# Check that SW is incompatible with pending SNW
-# Sending:
-delete from t1 limit 1;;
-#
-connection mdl_con2;
-# Check that the above DELETE is blocked because of pending SNW lock.
-# Unblock ALTER TABLE.
-commit;
-#
-connection default;
-# Reaping ALTER.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-connection mdl_con1;
-# Reaping DELETE.
-#
-# We can't do similar check for SNW, SNRW and X locks because
-# they will also be blocked by active SW lock.
-#
-#
-connection mdl_con2;
-#
-# 2) Check compatibility for pending SNRW lock.
-#
-# Acquire SR lock in order to create pending SNRW lock.
-begin;
-select count(*) from t1;
-count(*)
-2
-#
-connection default;
-# Add pending SNRW lock.
-# Sending:
-lock table t1 write;;
-#
-connection mdl_con1;
-# Check that LOCK TABLE is waiting with pending SNRW lock.
-# Check that S and SH locks are compatible with pending SNRW
-select column_name from information_schema.columns where
-table_schema='test' and table_name='t1';
-column_name
-c1
-# Check that SR is incompatible with pending SNRW
-# Sending:
-select count(*) from t1;;
-#
-connection mdl_con2;
-# Check that the above SELECT is blocked because of pending SNRW lock.
-# Unblock LOCK TABLE.
-commit;
-#
-connection default;
-# Reaping LOCK TABLE.
-unlock tables;
-#
-connection mdl_con1;
-# Reaping SELECT.
-count(*)
-2
-# Restore pending SNRW lock.
-#
-connection mdl_con2;
-begin;
-select count(*) from t1;
-count(*)
-2
-#
-connection default;
-# Sending:
-lock table t1 write;;
-#
-connection mdl_con1;
-# Check that LOCK TABLE is waiting with pending SNRW lock.
-# Check that SW is incompatible with pending SNRW
-# Sending:
-insert into t1 values (1);;
-#
-connection mdl_con2;
-# Check that the above INSERT is blocked because of pending SNRW lock.
-# Unblock LOCK TABLE.
-commit;
-#
-connection default;
-# Reaping LOCK TABLE.
-unlock tables;
-#
-connection mdl_con1;
-# Reaping INSERT.
-# Restore pending SNRW lock.
-#
-connection mdl_con2;
-begin;
-select count(*) from t1;
-count(*)
-3
-#
-connection default;
-# Sending:
-lock table t1 write;;
-#
-connection mdl_con1;
-# Check that LOCK TABLE is waiting with pending SNRW lock.
-# Check that SNW is compatible with pending SNRW
-# So ALTER TABLE statements are not starved by LOCK TABLEs.
-alter table t1 add primary key (c1);
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-connection mdl_con2;
-# Unblock LOCK TABLE.
-commit;
-#
-connection default;
-# Reaping LOCK TABLE.
-unlock tables;
-#
-# We can't do similar check for SNRW and X locks because
-# they will also be blocked by active SR lock.
-#
-#
-connection mdl_con2;
-#
-# 3) Check compatibility for pending X lock.
-#
-# Acquire SR lock in order to create pending X lock.
-begin;
-select count(*) from t1;
-count(*)
-3
-#
-connection default;
-# Add pending X lock.
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con1;
-# Check that RENAME TABLE is waiting with pending X lock.
-# Check that SH locks are compatible with pending X
-select column_name from information_schema.columns where
-table_schema='test' and table_name='t1';
-column_name
-c1
-# Check that S is incompatible with pending X
-# Sending:
-handler t1 open;;
-#
-connection mdl_con2;
-# Check that the above HANDLER OPEN is blocked because of pending X lock.
-# Unblock RENAME TABLE.
-commit;
-#
-connection default;
-# Reaping RENAME TABLE.
-ERROR 42S01: Table 't2' already exists
-#
-connection mdl_con1;
-# Reaping HANDLER t1 OPEN.
-handler t1 close;
-# Restore pending X lock.
-#
-connection mdl_con2;
-begin;
-select count(*) from t1;
-count(*)
-3
-#
-connection default;
-# Add pending X lock.
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con1;
-# Check that RENAME TABLE is waiting with pending X lock.
-# Check that SR is incompatible with pending X
-# Sending:
-select count(*) from t1;;
-#
-connection mdl_con2;
-# Check that the above SELECT is blocked because of pending X lock.
-# Unblock RENAME TABLE.
-commit;
-#
-connection default;
-# Reaping RENAME TABLE.
-ERROR 42S01: Table 't2' already exists
-#
-connection mdl_con1;
-# Reaping SELECT.
-count(*)
-3
-# Restore pending X lock.
-#
-connection mdl_con2;
-begin;
-select count(*) from t1;
-count(*)
-3
-#
-connection default;
-# Add pending X lock.
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con1;
-# Check that RENAME TABLE is waiting with pending X lock.
-# Check that SW is incompatible with pending X
-# Sending:
-delete from t1 limit 1;;
-#
-connection mdl_con2;
-# Check that the above DELETE is blocked because of pending X lock.
-# Unblock RENAME TABLE.
-commit;
-#
-connection default;
-# Reaping RENAME TABLE.
-ERROR 42S01: Table 't2' already exists
-#
-connection mdl_con1;
-# Reaping DELETE.
-# Restore pending X lock.
-#
-connection mdl_con2;
-begin;
-select count(*) from t1;
-count(*)
-2
-#
-connection default;
-# Add pending X lock.
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con1;
-# Check that RENAME TABLE is waiting with pending X lock.
-# Check that SNW is incompatible with pending X
-# Sending:
-alter table t1 add primary key (c1);;
-#
-connection mdl_con2;
-# Check that the above ALTER TABLE is blocked because of pending X lock.
-# Unblock RENAME TABLE.
-commit;
-#
-connection default;
-# Reaping RENAME TABLE.
-ERROR 42S01: Table 't2' already exists
-#
-connection mdl_con1;
-# Reaping ALTER TABLE.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-# Restore pending X lock.
-#
-connection mdl_con2;
-handler t1 open;
-#
-connection default;
-# Add pending X lock.
-# Sending:
-rename table t1 to t2;;
-#
-connection mdl_con1;
-# Check that RENAME TABLE is waiting with pending X lock.
-# Check that SNRW is incompatible with pending X
-# Sending:
-lock table t1 write;;
-#
-connection mdl_con3;
-# Check that the above LOCK TABLES is blocked because of pending X lock.
-#
-connection mdl_con2;
-# Unblock RENAME TABLE.
-handler t1 close;
-#
-connection default;
-# Reaping RENAME TABLE.
-ERROR 42S01: Table 't2' already exists
-#
-connection mdl_con1;
-# Reaping LOCK TABLES.
-unlock tables;
-#
-connection default;
-#
-#
-# C) Now let us test how type-of-operation locks are handled in
-# transactional context. Obviously we are mostly interested
-# in conflicting types of locks.
-#
-# Note: No tests for active/pending SU lock since
-# ALTER TABLE is in its own transaction.
-#
-#
-# 1) Let us check how various locks used within transactional
-# context interact with active/pending SNW lock.
-#
-# We start with case when we are acquiring lock on the table
-# which was not used in the transaction before.
-begin;
-select count(*) from t1;
-count(*)
-2
-#
-connection mdl_con1;
-# Create an active SNW lock on t2.
-# We have to use DEBUG_SYNC facility as otherwise SNW lock
-# will be immediately released (or upgraded to X lock).
-insert into t2 values (1), (1);
-set debug_sync= 'alter_table_copy_after_lock_upgrade SIGNAL locked WAIT_FOR finish';
-# Sending:
-alter table t2 add primary key (c1), algorithm=copy, lock=shared;;
-#
-connection default;
-set debug_sync= 'now WAIT_FOR locked';
-# SR lock should be acquired without any waiting.
-select count(*) from t2;
-count(*)
-2
-commit;
-# Now let us check that we will wait in case of SW lock.
-begin;
-select count(*) from t1;
-count(*)
-2
-# Sending:
-insert into t2 values (1);;
-#
-connection mdl_con2;
-# Check that the above INSERT is blocked.
-# Unblock ALTER TABLE and thus INSERT.
-set debug_sync= 'now SIGNAL finish';
-#
-connection mdl_con1;
-# Reap ALTER TABLE.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-connection default;
-# Reap INSERT.
-commit;
-#
-# Now let us see what happens when we are acquiring lock on the table
-# which is already used in transaction.
-#
-# *) First, case when transaction which has SR lock on the table also
-# locked in SNW mode acquires yet another SR lock and then tries
-# to acquire SW lock.
-begin;
-select count(*) from t1;
-count(*)
-2
-#
-connection mdl_con1;
-# Create an active SNW lock on t1.
-set debug_sync= 'alter_table_copy_after_lock_upgrade SIGNAL locked WAIT_FOR finish';
-# Sending:
-alter table t1 add primary key (c1), algorithm=copy, lock=shared;;
-#
-connection default;
-set debug_sync= 'now WAIT_FOR locked';
-# We should still be able to get SR lock without waiting.
-select count(*) from t1;
-count(*)
-2
-# Since the above ALTER TABLE is not upgrading SNW lock to X by waiting
-# for SW lock we won't create deadlock.
-# So the below INSERT should not end-up with ER_LOCK_DEADLOCK error.
-# Sending:
-insert into t1 values (1);;
-#
-connection mdl_con2;
-# Check that the above INSERT is blocked.
-# Unblock ALTER TABLE and thus INSERT.
-set debug_sync= 'now SIGNAL finish';
-#
-connection mdl_con1;
-# Reap ALTER TABLE.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-connection default;
-# Reap INSERT.
-commit;
-#
-# **) Now test in which transaction that has SW lock on the table
-# against which there is pending SNW lock acquires SR and SW
-# locks on this table.
-#
-begin;
-insert into t1 values (1);
-#
-connection mdl_con1;
-# Create pending SNW lock on t1.
-# Sending:
-alter table t1 add primary key (c1);;
-#
-connection default;
-# Wait until ALTER TABLE starts waiting for SNW lock.
-# We should still be able to get both SW and SR locks without waiting.
-select count(*) from t1;
-count(*)
-4
-delete from t1 limit 1;
-# Unblock ALTER TABLE.
-commit;
-#
-connection mdl_con1;
-# Reap ALTER TABLE.
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-#
-connection default;
-#
-# 2) Now similar tests for active SNW lock which is being upgraded
-# to X lock.
-#
-# Again we start with case when we are acquiring lock on the
-# table which was not used in the transaction before.
-begin;
-select count(*) from t1;
-count(*)
-3
-#
-connection mdl_con2;
-# Start transaction which will prevent SNW -> X upgrade from
-# completing immediately.
-begin;
-select count(*) from t2;
-count(*)
-3
-#
-connection mdl_con1;
-# Create SNW lock pending upgrade to X on t2.
-# Sending:
-alter table t2 add column c2 int;;
-#
-connection default;
-# Wait until ALTER TABLE starts waiting X lock.
-# Check that attempt to acquire SR lock on t2 causes waiting.
-# Sending:
-select count(*) from t2;;
-#
-connection mdl_con2;
-# Check that the above SELECT is blocked.
-# Unblock ALTER TABLE.
-commit;
-#
-connection mdl_con1;
-# Reap ALTER TABLE.
-#
-connection default;
-# Reap SELECT.
-count(*)
-3
-commit;
-# Do similar check for SW lock.
-begin;
-select count(*) from t1;
-count(*)
-3
-#
-connection mdl_con2;
-# Start transaction which will prevent SNW -> X upgrade from
-# completing immediately.
-begin;
-select count(*) from t2;
-count(*)
-3
-#
-connection mdl_con1;
-# Create SNW lock pending upgrade to X on t2.
-# Sending:
-alter table t2 drop column c2;;
-#
-connection default;
-# Wait until ALTER TABLE starts waiting X lock.
-# Check that attempt to acquire SW lock on t2 causes waiting.
-# Sending:
-insert into t2 values (1);;
-#
-connection mdl_con2;
-# Check that the above INSERT is blocked.
-# Unblock ALTER TABLE.
-commit;
-#
-connection mdl_con1;
-# Reap ALTER TABLE.
-#
-connection default;
-# Reap INSERT.
-commit;
-#
-# Test for the case in which we are acquiring lock on the table
-# which is already used in transaction.
-#
-begin;
-select count(*) from t1;
-count(*)
-3
-#
-connection mdl_con1;
-# Create SNW lock pending upgrade to X.
-# Sending:
-alter table t1 add column c2 int;;
-#
-connection default;
-# Wait until ALTER TABLE starts waiting X lock.
-# Check that transaction is still able to acquire SR lock.
-select count(*) from t1;
-count(*)
-3
-# Waiting trying to acquire SW lock will cause deadlock and
-# therefore should cause an error.
-delete from t1 limit 1;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-# Unblock ALTER TABLE.
-commit;
-#
-connection mdl_con1;
-# Reap ALTER TABLE.
-#
-connection default;
-#
-# 3) Check how various locks used within transactional context
-# interact with active/pending SNRW lock.
-#
-# Once again we start with case when we are acquiring lock on
-# the table which was not used in the transaction before.
-begin;
-select count(*) from t1;
-count(*)
-3
-#
-connection mdl_con1;
-lock table t2 write;
-#
-connection default;
-# Attempt to acquire SR should be blocked. It should
-# not cause errors as it does not creates deadlock.
-# Sending:
-select count(*) from t2;;
-#
-connection mdl_con1;
-# Check that the above SELECT is blocked
-# Unblock SELECT.
-unlock tables;
-#
-connection default;
-# Reap SELECT.
-count(*)
-4
-commit;
-# Repeat the same test for SW lock.
-begin;
-select count(*) from t1;
-count(*)
-3
-#
-connection mdl_con1;
-lock table t2 write;
-#
-connection default;
-# Again attempt to acquire SW should be blocked and should
-# not cause any errors.
-# Sending:
-delete from t2 limit 1;;
-#
-connection mdl_con1;
-# Check that the above DELETE is blocked
-# Unblock DELETE.
-unlock tables;
-#
-connection default;
-# Reap DELETE.
-commit;
-#
-# Now coverage for the case in which we are acquiring lock on
-# the table which is already used in transaction and against
-# which there is a pending SNRW lock request.
-#
-# *) Let us start with case when transaction has only a SR lock.
-#
-begin;
-select count(*) from t1;
-count(*)
-3
-#
-connection mdl_con1;
-# Sending:
-lock table t1 write;;
-#
-connection default;
-# Wait until LOCK TABLE is blocked creating pending request for X lock.
-# Check that another instance of SR lock is granted without waiting.
-select count(*) from t1;
-count(*)
-3
-# Attempt to wait for SW lock will lead to deadlock, thus
-# the below statement should end with ER_LOCK_DEADLOCK error.
-delete from t1 limit 1;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-# Unblock LOCK TABLES.
-commit;
-#
-connection mdl_con1;
-# Reap LOCK TABLES.
-unlock tables;
-#
-connection default;
-#
-# **) Now case when transaction has a SW lock.
-#
-begin;
-delete from t1 limit 1;
-#
-connection mdl_con1;
-# Sending:
-lock table t1 write;;
-#
-connection default;
-# Wait until LOCK TABLE is blocked creating pending request for X lock.
-# Check that both SR and SW locks are granted without waiting
-# and errors.
-select count(*) from t1;
-count(*)
-2
-insert into t1 values (1, 1);
-# Unblock LOCK TABLES.
-commit;
-#
-connection mdl_con1;
-# Reap LOCK TABLES.
-unlock tables;
-#
-connection default;
-#
-# 4) Check how various locks used within transactional context
-# interact with active/pending X lock.
-#
-# As usual we start with case when we are acquiring lock on
-# the table which was not used in the transaction before.
-begin;
-select count(*) from t1;
-count(*)
-3
-#
-connection mdl_con2;
-# Start transaction which will prevent X lock from going away
-# immediately.
-begin;
-select count(*) from t2;
-count(*)
-3
-#
-connection mdl_con1;
-# Create pending X lock on t2.
-# Sending:
-rename table t2 to t3;;
-#
-connection default;
-# Wait until RENAME TABLE starts waiting with pending X lock.
-# Check that attempt to acquire SR lock on t2 causes waiting.
-# Sending:
-select count(*) from t2;;
-#
-connection mdl_con2;
-# Check that the above SELECT is blocked.
-# Unblock RENAME TABLE.
-commit;
-#
-connection mdl_con1;
-# Reap RENAME TABLE.
-#
-connection default;
-# Reap SELECT.
-ERROR 42S02: Table 'test.t2' doesn't exist
-commit;
-rename table t3 to t2;
-# The same test for SW lock.
-begin;
-select count(*) from t1;
-count(*)
-3
-#
-connection mdl_con2;
-# Start transaction which will prevent X lock from going away
-# immediately.
-begin;
-select count(*) from t2;
-count(*)
-3
-#
-connection mdl_con1;
-# Create pending X lock on t2.
-# Sending:
-rename table t2 to t3;;
-#
-connection default;
-# Wait until RENAME TABLE starts waiting with pending X lock.
-# Check that attempt to acquire SW lock on t2 causes waiting.
-# Sending:
-delete from t2 limit 1;;
-#
-connection mdl_con2;
-# Check that the above DELETE is blocked.
-# Unblock RENAME TABLE.
-commit;
-#
-connection mdl_con1;
-# Reap RENAME TABLE.
-#
-connection default;
-# Reap DELETE.
-ERROR 42S02: Table 'test.t2' doesn't exist
-commit;
-rename table t3 to t2;
-#
-# Coverage for the case in which we are acquiring lock on
-# the table which is already used in transaction and against
-# which there is a pending X lock request.
-#
-# *) The first case is when transaction has only a SR lock.
-#
-begin;
-select count(*) from t1;
-count(*)
-3
-#
-connection mdl_con1;
-# Sending:
-rename table t1 to t2;;
-#
-connection default;
-# Wait until RENAME TABLE is blocked creating pending request for X lock.
-# Check that another instance of SR lock is granted without waiting.
-select count(*) from t1;
-count(*)
-3
-# Attempt to wait for SW lock will lead to deadlock, thus
-# the below statement should end with ER_LOCK_DEADLOCK error.
-delete from t1 limit 1;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-# Unblock RENAME TABLE.
-commit;
-#
-connection mdl_con1;
-# Reap RENAME TABLE.
-ERROR 42S01: Table 't2' already exists
-#
-connection default;
-#
-# **) The second case is when transaction has a SW lock.
-#
-begin;
-delete from t1 limit 1;
-#
-connection mdl_con1;
-# Sending:
-rename table t1 to t2;;
-#
-connection default;
-# Wait until RENAME TABLE is blocked creating pending request for X lock.
-# Check that both SR and SW locks are granted without waiting
-# and errors.
-select count(*) from t1;
-count(*)
-2
-insert into t1 values (1, 1);
-# Unblock RENAME TABLE.
-commit;
-#
-connection mdl_con1;
-# Reap RENAME TABLE.
-ERROR 42S01: Table 't2' already exists
-#
-connection default;
-# Clean-up.
-disconnect mdl_con1;
-disconnect mdl_con2;
-disconnect mdl_con3;
-set debug_sync= 'RESET';
-drop table t1, t2;
-#
-# Test coverage for basic deadlock detection in metadata
-# locking subsystem.
-#
-drop tables if exists t0, t1, t2, t3, t4, t5;
-set debug_sync= 'RESET';
-connect deadlock_con1,localhost,root,,;
-connect deadlock_con2,localhost,root,,;
-connect deadlock_con3,localhost,root,,;
-connection default;
-create table t1 (i int);
-create table t2 (j int);
-create table t3 (k int);
-create table t4 (k int);
-#
-# Test for the case in which no deadlock occurs.
-#
-#
-connection deadlock_con1;
-begin;
-insert into t1 values (1);
-#
-connection deadlock_con2;
-begin;
-insert into t2 values (1);
-#
-connection default;
-# Send:
-rename table t2 to t0, t3 to t2, t0 to t3;;
-#
-connection deadlock_con1;
-# Wait until the above RENAME TABLE is blocked because it has to wait
-# for 'deadlock_con2' which holds shared metadata lock on 't2'.
-# The below statement should wait for exclusive metadata lock
-# on 't2' to go away and should not produce ER_LOCK_DEADLOCK
-# as no deadlock is possible in this situation.
-# Send:
-select * from t2;;
-#
-connection deadlock_con2;
-# Wait until the above SELECT * FROM t2 is starts waiting
-# for an exclusive metadata lock to go away.
-#
-# Unblock RENAME TABLE by releasing shared metadata lock on t2.
-commit;
-#
-connection default;
-# Reap RENAME TABLE.
-#
-connection deadlock_con1;
-# Reap SELECT.
-k
-#
-connection default;
-#
-# Let us check that in the process of waiting for conflicting lock
-# on table 't2' to go away transaction in connection 'deadlock_con1'
-# has not released metadata lock on table 't1'.
-# Send:
-rename table t1 to t0, t3 to t1, t0 to t3;;
-#
-connection deadlock_con1;
-# Wait until the above RENAME TABLE is blocked because it has to wait
-# for 'deadlock_con1' which should still hold shared metadata lock on
-# table 't1'.
-# Commit transaction to unblock RENAME TABLE.
-commit;
-#
-connection default;
-# Reap RENAME TABLE.
-#
-# Test for case when deadlock occurs and should be detected immediately.
-#
-#
-connection deadlock_con1;
-begin;
-insert into t2 values (2);
-#
-connection default;
-# Send:
-rename table t2 to t0, t1 to t2, t0 to t1;;
-#
-connection deadlock_con1;
-# Wait until the above RENAME TABLE is blocked because it has to wait
-# for 'deadlock_con1' which holds shared metadata lock on 't2'.
-#
-# The below statement should not wait as doing so will cause deadlock.
-# Instead it should fail and emit ER_LOCK_DEADLOCK statement and
-# transaction should be rolled back.
-select * from t1;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-#
-connection default;
-# Reap RENAME TABLE.
-#
-# Test for the case in which deadlock also occurs but not immediately.
-#
-#
-connection deadlock_con1;
-begin;
-insert into t2 values (1);
-#
-connection default;
-lock table t1 write;
-#
-connection deadlock_con1;
-# The below SELECT statement should wait for metadata lock
-# on table 't1' and should not produce ER_LOCK_DEADLOCK
-# immediately as no deadlock is possible at the moment.
-select * from t1;;
-#
-connection deadlock_con2;
-# Wait until the above SELECT * FROM t1 is starts waiting
-# for an UNRW metadata lock to go away.
-# Send RENAME TABLE statement that will deadlock with the
-# SELECT statement and thus should abort the latter.
-rename table t1 to t0, t2 to t1, t0 to t2;;
-#
-connection default;
-# Wait till above RENAME TABLE is blocked while holding
-# pending X lock on t1.
-# Allow the above RENAME TABLE to acquire lock on t1 and
-# create pending lock on t2 thus creating deadlock.
-unlock tables;
-#
-connection deadlock_con1;
-# Since the latest RENAME TABLE entered in deadlock with SELECT
-# statement the latter should be aborted and emit ER_LOCK_DEADLOCK
-# error and transaction should be rolled back.
-# Reap SELECT * FROM t1.
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-#
-connection deadlock_con2;
-# Reap RENAME TABLE ... .
-#
-connection default;
-drop tables t1, t2, t3, t4;
-#
-# Now, test case which shows that deadlock detection empiric
-# also takes into account requests for metadata lock upgrade.
-#
-create table t1 (i int);
-insert into t1 values (1);
-# Avoid race which occurs when SELECT in 'deadlock_con1' connection
-# accesses table before the above INSERT unlocks the table and thus
-# its result becomes visible to other connections.
-select * from t1;
-i
-1
-#
-connection deadlock_con1;
-begin;
-select * from t1;
-i
-1
-#
-connection default;
-# Send:
-alter table t1 add column j int, rename to t2;;
-#
-connection deadlock_con1;
-# Wait until the above ALTER TABLE ... RENAME acquires exclusive
-# metadata lock on 't2' and starts waiting for connection
-# 'deadlock_con1' which holds shared lock on 't1'.
-# The below statement should not wait as it will cause deadlock.
-# An appropriate error should be reported instead and transaction
-# should be rolled back.
-select * from t2;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-#
-connection default;
-# Reap ALTER TABLE ... RENAME.
-drop table t2;
-#
-# Test that in situation when MDL subsystem detects a deadlock
-# but it turns out that it can be resolved by backing-off locks
-# acquired by one of participating transactions (which is
-# possible when one of transactions consists only of currently
-# executed statement, e.g. in autocommit mode) no error is
-# reported.
-#
-create table t1 (i int);
-create table t2 (j int);
-# Ensure that the below SELECT stops once it has acquired metadata
-# lock on table 't2'.
-set debug_sync= 'after_open_table_mdl_shared SIGNAL locked WAIT_FOR finish';
-# Sending:
-select * from t2, t1;
-#
-connection deadlock_con1;
-# Wait till SELECT acquires MDL on 't2' and starts waiting for signal.
-set debug_sync= 'now WAIT_FOR locked';
-# Sending:
-lock tables t1 write, t2 write;
-#
-connection deadlock_con2;
-# Wait until LOCK TABLES acquires SNRW lock on 't1' and is blocked
-# while trying to acquire SNRW lock on 't1'.
-# Resume SELECT execution, this should eventually unblock LOCK TABLES.
-set debug_sync= 'now SIGNAL finish';
-#
-connection deadlock_con1;
-# Reaping LOCK TABLES.
-unlock tables;
-#
-connection default;
-# Reaping SELECT. It succeed and not report ER_LOCK_DEADLOCK error.
-j i
-drop tables t1, t2;
-#
-# Test coverage for situation in which a race has happened
-# during deadlock detection process which led to unwarranted
-# ER_LOCK_DEADLOCK error.
-#
-create table t1 (i int);
-# Ensure that ALTER waits once it has acquired SNW lock.
-set debug_sync='alter_table_copy_after_lock_upgrade SIGNAL parked1 WAIT_FOR go1';
-# Sending:
-alter table t1 add column j int;
-#
-connection deadlock_con1;
-# Wait till ALTER acquires SNW lock and stops.
-set debug_sync='now WAIT_FOR parked1';
-# Ensure that INSERT is paused once it detects that there is
-# a conflicting metadata lock so it has to wait, but before
-# deadlock detection is run.
-set debug_sync='mdl_acquire_lock_wait SIGNAL parked2 WAIT_FOR go2';
-# Sending:
-insert into t1 values ();
-#
-connection deadlock_con2;
-# Wait till INSERT is paused.
-set debug_sync='now WAIT_FOR parked2';
-# Resume ALTER execution. Eventually it will release its
-# metadata lock and INSERT's request for SW lock will be
-# satisified.
-set debug_sync='now SIGNAL go1';
-#
-connection default;
-# Reaping ALTER TABLE.
-# Add a new request for SNW lock to waiting graph.
-# Sending:
-alter table t1 drop column j;
-#
-connection deadlock_con2;
-# Wait until ALTER is blocked.
-# Resume INSERT so it can start deadlock detection.
-#
-# At this point there is a discrepancy between the fact that INSERT's
-# SW lock is already satisfied, but INSERT's connection is still
-# marked as waiting for it. Looking for a loop in waiters graph
-# without additional checks has detected a deadlock (INSERT waits
-# for SW lock; which is not granted because of pending SNW lock from
-# ALTER; which waits for active SW lock from INSERT). Since requests
-# for SW and SNW locks have same weight ALTER was selected as a victim
-# and ended with ER_LOCK_DEADLOCK error.
-set debug_sync='now SIGNAL go2';
-#
-connection deadlock_con1;
-# Reaping INSERT.
-#
-connection default;
-# Reaping ALTER. It should succeed and not produce ER_LOCK_DEADLOCK.
-drop table t1;
-#
-# Now, test for a situation in which deadlock involves waiting not
-# only in MDL subsystem but also for TDC. Such deadlocks should be
-# successfully detected. If possible, they should be resolved without
-# resorting to ER_LOCK_DEADLOCK error.
-#
-create table t1(i int);
-create table t2(j int);
-#
-# First, let us check how we handle a simple scenario involving
-# waits in MDL and TDC.
-#
-set debug_sync= 'RESET';
-connection deadlock_con1;
-# Start a statement, which will acquire SR metadata lock on t1, open it
-# and then stop, before trying to acquire SW lock on t2 and opening it.
-set debug_sync='open_tables_after_open_and_process_table SIGNAL parked WAIT_FOR go';
-# Sending:
-select * from t1 where i in (select j from t2 for update);
-connection deadlock_con2;
-# Wait till the above SELECT stops.
-set debug_sync='now WAIT_FOR parked';
-# The below FLUSH TABLES WITH READ LOCK should acquire
-# SNW locks on t1 and t2 and wait till SELECT closes t1.
-# Sending:
-flush tables t1, t2 with read lock;
-connection deadlock_con3;
-# Wait until FLUSH TABLES WITH t1, t2 READ LOCK starts waiting
-# for SELECT to close t1.
-# Resume SELECT, so it tries to acquire SW lock on t1 and blocks,
-# creating a deadlock. This deadlock should be detected and resolved
-# by backing-off SELECT. As a result FTWRL should be able to finish.
-set debug_sync='now SIGNAL go';
-connection deadlock_con2;
-# Reap FLUSH TABLES WITH READ LOCK.
-unlock tables;
-connection deadlock_con1;
-# Reap SELECT.
-i
-#
-# The same scenario with a slightly different order of events
-# which emphasizes that setting correct deadlock detector weights
-# for flush waits is important.
-#
-set debug_sync= 'RESET';
-connection deadlock_con2;
-set debug_sync='flush_tables_with_read_lock_after_acquire_locks SIGNAL parked WAIT_FOR go';
-# The below FLUSH TABLES WITH READ LOCK should acquire
-# SNW locks on t1 and t2 and wait on debug sync point.
-# Sending:
-flush tables t1, t2 with read lock;
-connection deadlock_con1;
-# Wait till FLUSH TABLE WITH READ LOCK stops.
-set debug_sync='now WAIT_FOR parked';
-# Start statement which will acquire SR metadata lock on t1, open
-# it and then will block while trying to acquire SW lock on t2.
-# Sending:
-select * from t1 where i in (select j from t2 for update);
-connection deadlock_con3;
-# Wait till the above SELECT blocks.
-# Resume FLUSH TABLES, so it tries to flush t1, thus creating
-# a deadlock. This deadlock should be detected and resolved by
-# backing-off SELECT. As a result FTWRL should be able to finish.
-set debug_sync='now SIGNAL go';
-connection deadlock_con2;
-# Reap FLUSH TABLES WITH READ LOCK.
-unlock tables;
-connection deadlock_con1;
-# Reap SELECT.
-i
-#
-# Now a more complex scenario involving two connections
-# waiting for MDL and one for TDC.
-#
-set debug_sync= 'RESET';
-connection deadlock_con1;
-# Start a statement which will acquire SR metadata lock on t2, open it
-# and then stop, before trying to acquire SR on t1 and opening it.
-set debug_sync='open_tables_after_open_and_process_table SIGNAL parked WAIT_FOR go';
-# Sending:
-select * from t2, t1;
-connection deadlock_con2;
-# Wait till the above SELECT stops.
-set debug_sync='now WAIT_FOR parked';
-# The below FLUSH TABLES WITH READ LOCK should acquire
-# SNW locks on t2 and wait till SELECT closes t2.
-# Sending:
-flush tables t2 with read lock;
-connection deadlock_con3;
-# Wait until FLUSH TABLES WITH READ LOCK starts waiting
-# for SELECT to close t2.
-# The below DROP TABLES should acquire X lock on t1 and start
-# waiting for X lock on t2.
-# Sending:
-drop tables t1, t2;
-connection default;
-# Wait until DROP TABLES starts waiting for X lock on t2.
-# Resume SELECT, so it tries to acquire SR lock on t1 and blocks,
-# creating a deadlock. This deadlock should be detected and resolved
-# by backing-off SELECT. As a result, FTWRL should be able to finish.
-set debug_sync='now SIGNAL go';
-connection deadlock_con2;
-# Reap FLUSH TABLES WITH READ LOCK.
-# Unblock DROP TABLES.
-unlock tables;
-connection deadlock_con3;
-# Reap DROP TABLES.
-connection deadlock_con1;
-# Reap SELECT. It should emit error about missing table.
-ERROR 42S02: Table 'test.t2' doesn't exist
-connection default;
-set debug_sync= 'RESET';
-disconnect deadlock_con1;
-disconnect deadlock_con2;
-disconnect deadlock_con3;
-#
-# Test for a scenario in which FLUSH TABLES <list> WITH READ LOCK
-# used to erroneously release metadata locks.
-#
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection default;
-drop tables if exists t1, t2;
-set debug_sync= 'RESET';
-create table t1(i int);
-create table t2(j int);
-connection con2;
-set debug_sync='open_tables_after_open_and_process_table SIGNAL parked WAIT_FOR go';
-# The below FLUSH TABLES <list> WITH READ LOCK should acquire
-# SNW locks on t1 and t2, open table t1 and block on the debug
-# sync point.
-# Sending:
-flush tables t1, t2 with read lock;
-connection con1;
-# Wait till FLUSH TABLES <list> WITH READ LOCK stops.
-set debug_sync='now WAIT_FOR parked';
-# Start a statement which will flush all tables and thus
-# invalidate table t1 open by FLUSH TABLES <list> WITH READ LOCK.
-# Sending:
-flush tables;
-connection default;
-# Wait till the above FLUSH TABLES blocks.
-# Resume FLUSH TABLES <list> WITH READ LOCK, so it tries to open t2
-# discovers that its t1 is obsolete and tries to reopen all tables.
-# Such reopen should not cause releasing of SNW metadata locks
-# which would result in assertion failures.
-set debug_sync='now SIGNAL go';
-connection con2;
-# Reap FLUSH TABLES <list> WITH READ LOCK.
-unlock tables;
-connection con1;
-# Reap FLUSH TABLES.
-# Clean-up.
-connection default;
-drop tables t1, t2;
-set debug_sync= 'RESET';
-disconnect con1;
-disconnect con2;
-#
-# Test for bug #46748 "Assertion in MDL_context::wait_for_locks()
-# on INSERT + CREATE TRIGGER".
-#
-drop tables if exists t1, t2, t3, t4, t5;
-# Let us simulate scenario in which we open some tables from extended
-# part of prelocking set but then encounter conflicting metadata lock,
-# so have to back-off and wait for it to go away.
-connect con1root,localhost,root,,test,,;
-connect con2root,localhost,root,,test,,;
-connection default;
-create table t1 (i int);
-create table t2 (j int);
-create table t3 (k int);
-create table t4 (l int);
-create trigger t1_bi before insert on t1 for each row
-insert into t2 values (new.i);
-create trigger t2_bi before insert on t2 for each row
-insert into t3 values (new.j);
-#
-connection con1root;
-lock tables t4 read;
-#
-connection con2root;
-# Send :
-rename table t3 to t5, t4 to t3;;
-#
-connection default;
-# Wait until the above RENAME TABLE adds pending requests for exclusive
-# metadata lock on its tables and blocks due to 't4' being used by LOCK
-# TABLES.
-# Send :
-insert into t1 values (1);;
-#
-connection con1root;
-# Wait until INSERT statement waits due to encountering pending
-# exclusive metadata lock on 't3'.
-unlock tables;
-#
-connection con2root;
-# Reap RENAME TABLE.
-#
-connection default;
-# Reap INSERT.
-# Clean-up.
-disconnect con1root;
-disconnect con2root;
-drop tables t1, t2, t3, t5;
-#
-# Bug#42546 - Backup: RESTORE fails, thinking it finds an existing table
-#
-DROP TABLE IF EXISTS t1;
-set @save_log_output=@@global.log_output;
-set global log_output=file;
-connect con2, localhost, root,,;
-#
-# Test 1: CREATE TABLE
-#
-connection con2;
-# Start insert on the not-yet existing table
-# Wait after taking the MDL lock
-SET DEBUG_SYNC= 'after_open_table_mdl_shared SIGNAL locked WAIT_FOR finish';
-INSERT INTO t1 VALUES(1,"def");
-connection default;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-# Now INSERT has a MDL on the non-existent table t1.
-#
-# Continue the INSERT once CREATE waits for exclusive lock
-SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL finish';
-# Try to create that table.
-CREATE TABLE t1 (c1 INT, c2 VARCHAR(100), KEY(c1));
-# Insert fails
-connection con2;
-ERROR 42S02: Table 'test.t1' doesn't exist
-connection default;
-SET DEBUG_SYNC= 'RESET';
-SHOW TABLES;
-Tables_in_test
-t1
-DROP TABLE IF EXISTS t1;
-#
-# Test 2: CREATE TABLE LIKE
-#
-CREATE TABLE t2 (c1 INT, c2 VARCHAR(100), KEY(c1));
-connection con2;
-# Start insert on the not-yet existing table
-# Wait after taking the MDL
-SET DEBUG_SYNC= 'after_open_table_mdl_shared SIGNAL locked WAIT_FOR finish';
-INSERT INTO t1 VALUES(1,"def");
-connection default;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-# Now INSERT has a MDL on the non-existent table t1.
-#
-# Continue the INSERT once CREATE waits for exclusive lock
-SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL finish';
-# Try to create that table.
-CREATE TABLE t1 LIKE t2;
-# Insert fails
-connection con2;
-ERROR 42S02: Table 'test.t1' doesn't exist
-connection default;
-SET DEBUG_SYNC= 'RESET';
-SHOW TABLES;
-Tables_in_test
-t1
-t2
-DROP TABLE t2;
-disconnect con2;
-DROP TABLE IF EXISTS t1;
-set global log_output=@save_log_output;
-#
-# Bug #46044 "MDL deadlock on LOCK TABLE + CREATE TABLE HIGH_PRIORITY
-# FOR UPDATE"
-#
-drop tables if exists t1, t2;
-connect con46044, localhost, root,,;
-connect con46044_2, localhost, root,,;
-connect con46044_3, localhost, root,,;
-connection default;
-create table t1 (i int);
-insert into t1 values(1);
-# Let us check that we won't deadlock if during filling
-# of I_S table we encounter conflicting metadata lock
-# which owner is in its turn waiting for our connection.
-lock tables t1 read;
-connection con46044_2;
-# Sending:
-update t1 set i = 2;
-connection con46044;
-# Waiting until UPDATE t1 SET ... is blocked.
-# Sending:
-create table t2 select * from t1;;
-connection default;
-# Waiting until CREATE TABLE ... SELECT ... is blocked.
-# First let us check that SHOW FIELDS/DESCRIBE doesn't
-# gets blocked and emits and error.
-show fields from t2;
-ERROR HY000: Table 'test'.'t2' was skipped since its definition is being modified by concurrent DDL statement
-# Now test for I_S query which reads only .FRMs.
-#
-# Query below should only emit a warning.
-select column_name from information_schema.columns
-where table_schema='test' and table_name='t2';
-column_name
-Warnings:
-Warning 1684 Table 'test'.'t2' was skipped since its definition is being modified by concurrent DDL statement
-# Finally, test for I_S query which does full-blown table open.
-#
-# Query below should not be blocked. Warning message should be
-# stored in the 'table_comment' column.
-select table_name, table_type, auto_increment, table_comment
-from information_schema.tables where table_schema='test' and table_name='t2';
-table_name table_type auto_increment table_comment
-t2 BASE TABLE NULL Table 'test'.'t2' was skipped since its definition is being modified by concurrent DDL statement
-Warnings:
-Warning 1684 Table 'test'.'t2' was skipped since its definition is being modified by concurrent DDL statement
-connection default;
-unlock tables;
-connection con46044;
-# Reaping CREATE TABLE ... SELECT ... .
-drop table t2;
-connection con46044_2;
-# Reaping UPDATE t1 statement
-#
-# Let us also check that queries to I_S wait for conflicting metadata
-# locks to go away instead of skipping table with a warning in cases
-# when deadlock is not possible. This is a nice thing from compatibility
-# and ease of use points of view.
-#
-# We check same three queries to I_S in this new situation.
-connection con46044_2;
-lock tables t1 read;
-connection con46044_3;
-# Sending:
-update t1 set i = 3;
-connection con46044;
-# Waiting until UPDATE t1 SET ... is blocked.
-# Sending:
-create table t2 select * from t1;;
-connection default;
-# Waiting until CREATE TABLE ... SELECT ... is blocked.
-# Let us check that SHOW FIELDS/DESCRIBE gets blocked.
-# Sending:
-show fields from t2;;
-connection con46044_2;
-# Wait until SHOW FIELDS gets blocked.
-unlock tables;
-connection con46044;
-# Reaping CREATE TABLE ... SELECT ... .
-connection default;
-# Reaping SHOW FIELDS ...
-Field Type Null Key Default Extra
-i int(11) YES NULL
-drop table t2;
-connection con46044_3;
-# Reaping UPDATE t1 statement
-connection con46044_2;
-lock tables t1 read;
-connection con46044_3;
-# Sending:
-update t1 set i = 4;
-connection con46044;
-# Waiting until UPDATE t1 SET ... is blocked.
-# Sending:
-create table t2 select * from t1;;
-connection default;
-# Waiting until CREATE TABLE ... SELECT ... is blocked.
-# Check that I_S query which reads only .FRMs gets blocked.
-# Sending:
-select column_name from information_schema.columns where table_schema='test' and table_name='t2';;
-connection con46044_2;
-# Wait until SELECT COLUMN_NAME FROM I_S.COLUMNS gets blocked.
-unlock tables;
-connection con46044;
-# Reaping CREATE TABLE ... SELECT ... .
-connection default;
-# Reaping SELECT COLUMN_NAME FROM I_S.COLUMNS
-column_name
-i
-drop table t2;
-connection con46044_3;
-# Reaping UPDATE t1 statement
-connection con46044_2;
-lock tables t1 read;
-connection con46044_3;
-# Sending:
-update t1 set i = 5;
-connection con46044;
-# Waiting until UPDATE t1 SET ... is blocked.
-# Sending:
-create table t2 select * from t1;;
-connection default;
-# Waiting until CREATE TABLE ... SELECT ... is blocked.
-# Finally, check that I_S query which does full-blown table open
-# also gets blocked.
-# Sending:
-select table_name, table_type, auto_increment, table_comment from information_schema.tables where table_schema='test' and table_name='t2';;
-connection con46044_2;
-# Wait until SELECT ... FROM I_S.TABLES gets blocked.
-unlock tables;
-connection con46044;
-# Reaping CREATE TABLE ... SELECT ... .
-connection default;
-# Reaping SELECT ... FROM I_S.TABLES
-table_name table_type auto_increment table_comment
-t2 BASE TABLE NULL
-drop table t2;
-connection con46044_3;
-# Reaping UPDATE t1 statement
-connection default;
-# Clean-up.
-disconnect con46044;
-disconnect con46044_2;
-disconnect con46044_3;
-drop table t1;
-#
-# Test for bug #46273 "MySQL 5.4.4 new MDL: Bug#989 is not fully fixed
-# in case of ALTER".
-#
-drop table if exists t1;
-set debug_sync= 'RESET';
-connect con46273,localhost,root,,test,,;
-connection default;
-create table t1 (c1 int primary key, c2 int, c3 int);
-insert into t1 values (1,1,0),(2,2,0),(3,3,0),(4,4,0),(5,5,0);
-begin;
-select * from t1 where c2 = 3;
-c1 c2 c3
-3 3 0
-#
-connection con46273;
-set debug_sync='alter_table_copy_after_lock_upgrade SIGNAL alter_table_locked WAIT_FOR alter_go';
-alter table t1 add column e int, rename to t2;;
-#
-connection default;
-set debug_sync='now WAIT_FOR alter_table_locked';
-set debug_sync='mdl_acquire_lock_wait SIGNAL alter_go';
-# The below statement should get ER_LOCK_DEADLOCK error
-# (i.e. it should not allow ALTER to proceed, and then
-# fail due to 't1' changing its name to 't2').
-update t1 set c3=c3+1 where c2 = 3;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-#
-connection con46273;
-# Reap ALTER TABLE.
-#
-connection default;
-disconnect con46273;
-# Clean-up.
-set debug_sync= 'RESET';
-drop table t2;
-#
-# Test for bug #46673 "Deadlock between FLUSH TABLES WITH READ LOCK
-# and DML".
-#
-drop tables if exists t1;
-connect con46673, localhost, root,,;
-connection default;
-create table t1 (i int);
-connection con46673;
-begin;
-insert into t1 values (1);
-connection default;
-# Statement below should not get blocked. And if after some
-# changes to code it is there should not be a deadlock between
-# it and transaction from connection 'con46673'.
-flush tables with read lock;
-unlock tables;
-connection con46673;
-delete from t1 where i = 1;
-commit;
-connection default;
-# Clean-up
-disconnect con46673;
-drop table t1;
-#
-# Bug#48210 FLUSH TABLES WITH READ LOCK deadlocks
-# against concurrent CREATE PROCEDURE
-#
-connect con2, localhost, root;
-# Test 1: CREATE PROCEDURE
-connection default;
-# Start CREATE PROCEDURE and open mysql.proc
-SET DEBUG_SYNC= 'after_open_table_mdl_shared SIGNAL table_opened WAIT_FOR grlwait';
-CREATE PROCEDURE p1() SELECT 1;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR table_opened';
-# Check that FLUSH must wait to get the GRL
-# and let CREATE PROCEDURE continue
-SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL grlwait';
-FLUSH TABLES WITH READ LOCK;
-connection default;
-connection con2;
-UNLOCK TABLES;
-connection default;
-SET DEBUG_SYNC= 'RESET';
-# Test 2: DROP PROCEDURE
-connection default;
-# Start DROP PROCEDURE and open tables
-SET DEBUG_SYNC= 'after_open_table_mdl_shared SIGNAL table_opened WAIT_FOR grlwait';
-DROP PROCEDURE p1;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR table_opened';
-# Check that FLUSH must wait to get the GRL
-# and let DROP PROCEDURE continue
-SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL grlwait';
-FLUSH TABLES WITH READ LOCK;
-connection default;
-# Once FLUSH TABLES WITH READ LOCK starts waiting
-# DROP PROCEDURE will be waked up and will drop
-# procedure. Global read lock will be granted after
-# this statement ends.
-#
-# Reaping DROP PROCEDURE.
-connection con2;
-# Reaping FTWRL.
-UNLOCK TABLES;
-connection default;
-SET DEBUG_SYNC= 'RESET';
-disconnect con2;
-#
-# Bug#50786 Assertion `thd->mdl_context.trans_sentinel() == __null'
-# failed in open_ltable()
-#
-# Supress warnings written to the log file
-call mtr.add_suppression("Wait on a lock was aborted due to a pending exclusive lock");
-DROP TABLE IF EXISTS t1, t2;
-connect con1,localhost,root;
-connect con2,localhost,root;
-connect con3,localhost,root;
-connection default;
-CREATE TABLE t1 (i INT);
-CREATE TABLE t2 (i INT);
-SET @old_general_log= @@global.general_log;
-SET @@global.general_log= 1;
-SET @old_log_output= @@global.log_output;
-SET @@global.log_output= 'TABLE';
-SET @old_sql_log_off= @@session.sql_log_off;
-SET @@session.sql_log_off= 1;
-# connection: con1
-connection con1;
-HANDLER t1 OPEN;
-# connection: con3
-connection con3;
-SET @@session.sql_log_off= 1;
-# connection: con2
-connection con2;
-SET DEBUG_SYNC= 'thr_multi_lock_after_thr_lock SIGNAL parked WAIT_FOR go';
-# Sending:
-SELECT 1;
-# connection: con3
-connection con3;
-SET DEBUG_SYNC= 'now WAIT_FOR parked';
-# connection: con1
-connection con1;
-# Sending:
-SELECT 1;
-# connection: con3
-connection con3;
-ALTER TABLE t1 ADD COLUMN j INT;
-# connection: default
-connection default;
-SET DEBUG_SYNC= 'now SIGNAL go';
-# connection: con1
-connection con1;
-# Reaping SELECT 1
-1
-1
-HANDLER t1 CLOSE;
-# connection: con2
-connection con2;
-# Reaping SELECT 1
-1
-1
-# connection: default
-connection default;
-DROP TABLE t1, t2;
-SET DEBUG_SYNC= 'RESET';
-disconnect con1;
-disconnect con2;
-disconnect con3;
-SET @@global.general_log= @old_general_log;
-SET @@global.log_output= @old_log_output;
-SET @@session.sql_log_off= @old_sql_log_off;
-#
-# Additional coverage for bug #50913 "Deadlock between
-# open_and_lock_tables_derived and MDL". The main test
-# case is in lock_multi.test
-#
-drop table if exists t1;
-set debug_sync= 'RESET';
-connect con50913_1,localhost,root;
-connect con50913_2,localhost,root;
-connection default;
-create table t1 (i int) engine=InnoDB;
-connection con50913_1;
-set debug_sync= 'alter_table_copy_after_lock_upgrade SIGNAL parked WAIT_FOR go';
-# Sending:
-alter table t1 add column j int, ALGORITHM=COPY;
-connection default;
-# Wait until ALTER TABLE gets blocked on a sync point after
-# acquiring thr_lock.c lock.
-set debug_sync= 'now WAIT_FOR parked';
-# The below statement should wait on MDL lock and not deadlock on
-# thr_lock.c lock.
-# Sending:
-truncate table t1;
-connection con50913_2;
-# Wait until TRUNCATE TABLE is blocked on MDL lock.
-# Unblock ALTER TABLE.
-set debug_sync= 'now SIGNAL go';
-connection con50913_1;
-# Reaping ALTER TABLE.
-connection default;
-# Reaping TRUNCATE TABLE.
-disconnect con50913_1;
-disconnect con50913_2;
-set debug_sync= 'RESET';
-drop table t1;
-#
-# Test for bug #50998 "Deadlock in MDL code during test
-# rqg_mdl_stability".
-# Also provides coverage for the case when addition of
-# waiting statement adds several loops in the waiters
-# graph and therefore several searches for deadlock
-# should be performed.
-drop table if exists t1;
-set debug_sync= 'RESET';
-connect con1,localhost,root;
-connect con2,localhost,root;
-connect con3,localhost,root;
-connection default;
-create table t1 (i int);
-connection con1;
-begin;
-select * from t1;
-i
-connection con2;
-begin;
-select * from t1;
-i
-connection default;
-# Start ALTER TABLE which will acquire SNW lock and
-# table lock and get blocked on sync point.
-set debug_sync= 'alter_table_copy_after_lock_upgrade SIGNAL parked WAIT_FOR go';
-# Sending:
-alter table t1 add column j int;
-connection con1;
-# Wait until ALTER TABLE gets blocked on a sync point.
-set debug_sync= 'now WAIT_FOR parked';
-# Sending:
-insert into t1 values (1);
-connection con2;
-# Sending:
-insert into t1 values (1);
-connection con3;
-# Wait until both 'con1' and 'con2' are blocked trying to acquire
-# SW lock on the table.
-# Unblock ALTER TABLE. Since it will try to upgrade SNW to X lock
-# deadlock with two loops in waiting graph will occur. Both loops
-# should be found and DML statements in both 'con1' and 'con2'
-# should be aborted with ER_LOCK_DEADLOCK errors.
-set debug_sync= 'now SIGNAL go';
-connection con1;
-# Reaping INSERT. It should end with ER_LOCK_DEADLOCK error and
-# not wait indefinitely (as it happened before the bugfix).
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-commit;
-connection con2;
-# Reaping INSERT.
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-commit;
-connection default;
-# Reap ALTER TABLE.
-disconnect con1;
-disconnect con2;
-disconnect con3;
-connection default;
-set debug_sync= 'RESET';
-drop table t1;
-#
-# Bug#42643: InnoDB does not support replication of TRUNCATE TABLE
-#
-# Ensure that a acquired lock is not given up due to a conflict.
-#
-connect con1,localhost,root,,test,,;
-connect con2,localhost,root,,test,,;
-connect con3,localhost,root,,test,,;
-connection default;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1),(2),(3);
-connection con1;
-LOCK TABLES t1 WRITE;
-SET debug_sync='upgrade_lock_for_truncate SIGNAL parked_truncate WAIT_FOR go_truncate';
-TRUNCATE TABLE t1;
-connection default;
-SET debug_sync='now WAIT_FOR parked_truncate';
-connection con2;
-SET debug_sync='after_open_table_ignore_flush SIGNAL parked_show WAIT_FOR go_show';
-SHOW FIELDS FROM t1;
-connection default;
-SET debug_sync='now WAIT_FOR parked_show';
-connection con3;
-SET debug_sync='after_flush_unlock SIGNAL parked_flush WAIT_FOR go_flush';
-FLUSH TABLES t1;
-connection default;
-SET debug_sync='now WAIT_FOR parked_flush';
-SET debug_sync='now SIGNAL go_truncate';
-# Ensure that truncate waits for a exclusive lock
-SET debug_sync= 'now SIGNAL go_show';
-connection con1;
-# Reaping...
-UNLOCK TABLES;
-connection con2;
-# Reaping...
-Field Type Null Key Default Extra
-a int(11) YES NULL
-connection default;
-SET debug_sync= 'now SIGNAL go_flush';
-connection con3;
-# Reaping...
-disconnect con1;
-disconnect con2;
-disconnect con3;
-connection default;
-SET debug_sync= 'RESET';
-DROP TABLE t1;
-#
-# Bug#52856 concurrent show columns or show full columns causes a crash!!!
-#
-CREATE TABLE t1(a CHAR(255));
-connect con1, localhost, root;
-SET DEBUG_SYNC= "get_schema_column SIGNAL waiting WAIT_FOR completed";
-SHOW FULL COLUMNS FROM t1;
-connection default;
-SET DEBUG_SYNC= "now WAIT_FOR waiting";
-SHOW FULL COLUMNS FROM t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-a char(255) latin1_swedish_ci YES NULL #
-SET DEBUG_SYNC= "now SIGNAL completed";
-connection con1;
-Field Type Collation Null Key Default Extra Privileges Comment
-a char(255) latin1_swedish_ci YES NULL #
-connection default;
-DROP TABLE t1;
-disconnect con1;
-#
-# Tests for schema-scope locks
-#
-DROP DATABASE IF EXISTS db1;
-DROP DATABASE IF EXISTS db2;
-connect con2, localhost, root;
-connect con3, localhost, root;
-# Test 1:
-# CREATE DATABASE blocks database DDL on the same database, but
-# not database DDL on different databases. Tests X vs X lock.
-#
-connection default;
-SET DEBUG_SYNC= 'after_wait_locked_schema_name SIGNAL locked WAIT_FOR blocked';
-# Sending:
-CREATE DATABASE db1;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-# Sending:
-CREATE DATABASE db1;
-connection con3;
-CREATE DATABASE db2;
-ALTER DATABASE db2 DEFAULT CHARACTER SET utf8;
-DROP DATABASE db2;
-SET DEBUG_SYNC= 'now SIGNAL blocked';
-connection default;
-# Reaping: CREATE DATABASE db1
-connection con2;
-# Reaping: CREATE DATABASE db1
-ERROR HY000: Can't create database 'db1'; database exists
-# Test 2:
-# ALTER DATABASE blocks database DDL on the same database, but
-# not database DDL on different databases. Tests X vs X lock.
-#
-connection default;
-SET DEBUG_SYNC= 'after_wait_locked_schema_name SIGNAL locked WAIT_FOR blocked';
-# Sending:
-ALTER DATABASE db1 DEFAULT CHARACTER SET utf8;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-# Sending:
-ALTER DATABASE db1 DEFAULT CHARACTER SET utf8;
-connection con3;
-CREATE DATABASE db2;
-ALTER DATABASE db2 DEFAULT CHARACTER SET utf8;
-DROP DATABASE db2;
-SET DEBUG_SYNC= 'now SIGNAL blocked';
-connection default;
-# Reaping: ALTER DATABASE db1 DEFAULT CHARACTER SET utf8
-connection con2;
-# Reaping: ALTER DATABASE db1 DEFAULT CHARACTER SET utf8
-connection default;
-SET DEBUG_SYNC= 'after_wait_locked_schema_name SIGNAL locked WAIT_FOR blocked';
-# Sending:
-ALTER DATABASE db1 DEFAULT CHARACTER SET utf8;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-# Sending:
-DROP DATABASE db1;
-connection con3;
-SET DEBUG_SYNC= 'now SIGNAL blocked';
-connection default;
-# Reaping: ALTER DATABASE db1 DEFAULT CHARACTER SET utf8
-connection con2;
-# Reaping: DROP DATABASE db1
-CREATE DATABASE db1;
-# Test 3:
-# Two ALTER..UPGRADE of the same database are mutually exclusive, but
-# two ALTER..UPGRADE of different databases are not. Tests X vs X lock.
-#
-connection default;
-SET DEBUG_SYNC= 'after_wait_locked_schema_name SIGNAL locked WAIT_FOR blocked';
-# Sending:
-ALTER DATABASE `#mysql50#a-b-c` UPGRADE DATA DIRECTORY NAME;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-# Sending:
-ALTER DATABASE `#mysql50#a-b-c` UPGRADE DATA DIRECTORY NAME;
-connection con3;
-ALTER DATABASE `#mysql50#a-b-c-d` UPGRADE DATA DIRECTORY NAME;
-SET DEBUG_SYNC= 'now SIGNAL blocked';
-connection default;
-# Reaping: ALTER DATABASE '#mysql50#a-b-c' UPGRADE DATA DIRECTORY NAME
-connection con2;
-# Reaping: ALTER DATABASE '#mysql50#a-b-c' UPGRADE DATA DIRECTORY NAME
-ERROR 42000: Unknown database '#mysql50#a-b-c'
-DROP DATABASE `a-b-c`;
-DROP DATABASE `a-b-c-d`;
-# Test 4:
-# DROP DATABASE blocks database DDL on the same database, but
-# not database DDL on different databases. Tests X vs X lock.
-#
-connection default;
-SET DEBUG_SYNC= 'after_wait_locked_schema_name SIGNAL locked WAIT_FOR blocked';
-# Sending:
-DROP DATABASE db1;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-# Sending:
-DROP DATABASE db1;
-connection con3;
-CREATE DATABASE db2;
-ALTER DATABASE db2 DEFAULT CHARACTER SET utf8;
-DROP DATABASE db2;
-SET DEBUG_SYNC= 'now SIGNAL blocked';
-connection default;
-# Reaping: DROP DATABASE db1
-connection con2;
-# Reaping: DROP DATABASE db1
-ERROR HY000: Can't drop database 'db1'; database doesn't exist
-connection default;
-CREATE DATABASE db1;
-SET DEBUG_SYNC= 'after_wait_locked_schema_name SIGNAL locked WAIT_FOR blocked';
-# Sending:
-DROP DATABASE db1;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-# Sending:
-ALTER DATABASE db1 DEFAULT CHARACTER SET utf8;
-connection con3;
-SET DEBUG_SYNC= 'now SIGNAL blocked';
-connection default;
-# Reaping: DROP DATABASE db1
-connection con2;
-# Reaping: ALTER DATABASE db1 DEFAULT CHARACTER SET utf8
-Got one of the listed errors
-# Test 5:
-# Locked database name prevents CREATE of tables in that database.
-# Tests X vs IX lock.
-#
-connection default;
-CREATE DATABASE db1;
-SET DEBUG_SYNC= 'after_wait_locked_schema_name SIGNAL locked WAIT_FOR blocked';
-# Sending:
-DROP DATABASE db1;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-# Sending:
-CREATE TABLE db1.t1 (a INT);
-connection con3;
-SET DEBUG_SYNC= 'now SIGNAL blocked';
-connection default;
-# Reaping: DROP DATABASE db1
-connection con2;
-# Reaping: CREATE TABLE db1.t1 (a INT)
-ERROR 42000: Unknown database 'db1'
-# Test 6:
-# Locked database name prevents RENAME of tables to/from that database.
-# Tests X vs IX lock.
-#
-connection default;
-CREATE DATABASE db1;
-CREATE TABLE db1.t1 (a INT);
-SET DEBUG_SYNC= 'after_wait_locked_schema_name SIGNAL locked WAIT_FOR blocked';
-# Sending:
-DROP DATABASE db1;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-# Sending:
-RENAME TABLE db1.t1 TO test.t1;
-connection con3;
-SET DEBUG_SYNC= 'now SIGNAL blocked';
-connection default;
-# Reaping: DROP DATABASE db1
-connection con2;
-# Reaping: RENAME TABLE db1.t1 TO test.t1
-ERROR 42S02: Table 'db1.t1' doesn't exist
-connection default;
-CREATE DATABASE db1;
-CREATE TABLE test.t2 (a INT);
-SET DEBUG_SYNC= 'after_wait_locked_schema_name SIGNAL locked WAIT_FOR blocked';
-# Sending:
-DROP DATABASE db1;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-# Sending:
-RENAME TABLE test.t2 TO db1.t2;
-connection con3;
-SET DEBUG_SYNC= 'now SIGNAL blocked';
-connection default;
-# Reaping: DROP DATABASE db1
-connection con2;
-# Reaping: RENAME TABLE test.t2 TO db1.t2
-Got one of the listed errors
-DROP TABLE test.t2;
-# Test 7:
-# Locked database name prevents DROP of tables in that database.
-# Tests X vs IX lock.
-#
-connection default;
-CREATE DATABASE db1;
-CREATE TABLE db1.t1 (a INT);
-SET DEBUG_SYNC= 'after_wait_locked_schema_name SIGNAL locked WAIT_FOR blocked';
-# Sending:
-DROP DATABASE db1;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-# Sending:
-DROP TABLE db1.t1;
-connection con3;
-SET DEBUG_SYNC= 'now SIGNAL blocked';
-connection default;
-# Reaping: DROP DATABASE db1
-connection con2;
-# Reaping: DROP TABLE db1.t1
-ERROR 42S02: Unknown table 'db1.t1'
-connection default;
-disconnect con2;
-disconnect con3;
-SET DEBUG_SYNC= 'RESET';
-#
-# End of tests for schema-scope locks
-#
-#
-# Tests of granted global S lock (FLUSH TABLE WITH READ LOCK)
-#
-CREATE DATABASE db1;
-CREATE TABLE db1.t1(a INT);
-connect con2, localhost, root;
-connect con3, localhost, root;
-connection default;
-FLUSH TABLE WITH READ LOCK;
-connection con2;
-CREATE TABLE db1.t2(a INT);
-connection default;
-UNLOCK TABLES;
-connection con2;
-# Reaping CREATE TABLE db1.t2(a INT)
-connection default;
-FLUSH TABLE WITH READ LOCK;
-connection con2;
-ALTER DATABASE db1 DEFAULT CHARACTER SET utf8;
-connection default;
-UNLOCK TABLES;
-connection con2;
-# Reaping ALTER DATABASE db1 DEFAULT CHARACTER SET utf8
-connection default;
-FLUSH TABLE WITH READ LOCK;
-connection con2;
-FLUSH TABLE WITH READ LOCK;
-UNLOCK TABLES;
-connection default;
-UNLOCK TABLES;
-DROP DATABASE db1;
-disconnect con2;
-disconnect con3;
-#
-# Bug#56292 Deadlock with ALTER TABLE and MERGE tables
-#
-DROP TABLE IF EXISTS t1, t2, m1;
-CREATE TABLE t1(a INT) engine=MyISAM;
-CREATE TABLE t2(a INT) engine=MyISAM;
-CREATE TABLE m1(a INT) engine=MERGE UNION=(t1, t2);
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (3), (4);
-connect con1, localhost, root;
-connect con2, localhost, root;
-connect con3, localhost, root;
-connection con1;
-# We need EXECUTE 2 since ALTER TABLE does SU => SNW => X and we want
-# to stop at the second upgrade.
-SET DEBUG_SYNC= 'mdl_upgrade_lock SIGNAL upgrade WAIT_FOR continue EXECUTE 2';
-# Sending:
-ALTER TABLE m1 engine=MERGE UNION=(t2, t1);
-connection con2;
-# Waiting for ALTER TABLE to try lock upgrade
-SET DEBUG_SYNC= 'now WAIT_FOR upgrade';
-SET DEBUG_SYNC= 'now SIGNAL continue';
-SET DEBUG_SYNC= 'now WAIT_FOR upgrade';
-# Sending:
-DELETE FROM t2 WHERE a = 3;
-connection con3;
-# Check that DELETE is waiting on a metadata lock and not a table lock.
-# Now that DELETE blocks on a metadata lock, we should be able to do
-# SELECT * FROM m1 here. SELECT used to be blocked by a DELETE table
-# lock request.
-SELECT * FROM m1 WHERE a < 3;
-connection default;
-# Resuming ALTER TABLE
-SET DEBUG_SYNC= 'now SIGNAL continue';
-connection con1;
-# Reaping: ALTER TABLE m1 engine=MERGE UNION=(t2, t1)
-connection con2;
-# Reaping: DELETE FROM t2 WHERE a = 3
-connection con3;
-# Reaping: SELECT * FROM m1 WHERE a < 3
-a
-1
-2
-connection default;
-DROP TABLE m1, t1, t2;
-SET DEBUG_SYNC= 'RESET';
-disconnect con1;
-disconnect con2;
-disconnect con3;
-#
-# MDEV-12620 - set lock_wait_timeout = 1;flush tables with read lock;
-# lock not released after timeout
-#
-CREATE TABLE t1(a INT) ENGINE=InnoDB;
-SET debug_sync='open_tables_after_open_and_process_table SIGNAL ready WAIT_FOR go';
-SELECT * FROM t1;
-connect con1,localhost,root,,;
-SET debug_sync='now WAIT_FOR ready';
-SET lock_wait_timeout=1;
-FLUSH TABLES WITH READ LOCK;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-SET debug_sync='now SIGNAL go';
-connection default;
-a
-SET debug_sync='RESET';
-DROP TABLE t1;
-disconnect con1;
diff --git a/mysql-test/r/merge-big.result b/mysql-test/r/merge-big.result
deleted file mode 100644
index 3b6e116986e..00000000000
--- a/mysql-test/r/merge-big.result
+++ /dev/null
@@ -1,28 +0,0 @@
-drop table if exists t1,t2,t3,t4,t5,t6;
-#
-# Bug#26379 - Combination of FLUSH TABLE and REPAIR TABLE
-# corrupts a MERGE table
-# Problem #3
-#
-CREATE TABLE t1 (c1 INT) ENGINE= MyISAM;
-LOCK TABLE t1 WRITE;
-connect con1,localhost,root,,;
-SET @orig_debug=@@debug;
-SET GLOBAL debug_dbug="+d,sleep_open_and_lock_after_open";
-INSERT INTO t1 VALUES (1);
-connection default;
-# Let INSERT go into thr_multi_lock().
-# Kick INSERT out of thr_multi_lock().
-FLUSH TABLES;
-# Let INSERT go through open_tables() where it sleeps.
-# Unlock and close table and wait for con1 to close too.
-FLUSH TABLES;
-# This should give no result.
-SELECT * FROM t1;
-c1
-UNLOCK TABLES;
-connection con1;
-SET GLOBAL debug_dbug=@orig_debug;
-disconnect con1;
-connection default;
-DROP TABLE t1;
diff --git a/mysql-test/r/merge.result b/mysql-test/r/merge.result
deleted file mode 100644
index ff6bdf4a07e..00000000000
--- a/mysql-test/r/merge.result
+++ /dev/null
@@ -1,3914 +0,0 @@
-set global storage_engine=myisam;
-set session storage_engine=myisam;
-drop table if exists t1,t2,t3,t4,t5,t6;
-drop database if exists mysqltest;
-create table t1 (a int not null primary key auto_increment, message char(20));
-create table t2 (a int not null primary key auto_increment, message char(20));
-INSERT INTO t1 (message) VALUES ("Testing"),("table"),("t1");
-INSERT INTO t2 (message) VALUES ("Testing"),("table"),("t2");
-create table t3 (a int not null, b char(20), key(a)) engine=MERGE UNION=(t1,t2);
-select * from t3;
-a b
-1 Testing
-2 table
-3 t1
-1 Testing
-2 table
-3 t2
-select * from t3 order by a desc;
-a b
-3 t1
-3 t2
-2 table
-2 table
-1 Testing
-1 Testing
-drop table t3;
-insert into t1 select NULL,message from t2;
-insert into t2 select NULL,message from t1;
-insert into t1 select NULL,message from t2;
-insert into t2 select NULL,message from t1;
-insert into t1 select NULL,message from t2;
-insert into t2 select NULL,message from t1;
-insert into t1 select NULL,message from t2;
-insert into t2 select NULL,message from t1;
-insert into t1 select NULL,message from t2;
-insert into t2 select NULL,message from t1;
-insert into t1 select NULL,message from t2;
-create table t3 (a int not null, b char(20), key(a)) engine=MERGE UNION=(test.t1,test.t2);
-explain select * from t3 where a < 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 range a a 4 NULL 18 Using where
-explain select * from t3 where a > 10 and a < 20;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 range a a 4 NULL 17 Using where
-select * from t3 where a = 10;
-a b
-10 Testing
-10 Testing
-select * from t3 where a < 10;
-a b
-1 Testing
-1 Testing
-2 table
-2 table
-3 t1
-3 t2
-4 Testing
-4 Testing
-5 table
-5 table
-6 t2
-6 t1
-7 Testing
-7 Testing
-8 table
-8 table
-9 t2
-9 t2
-select * from t3 where a > 10 and a < 20;
-a b
-11 table
-11 table
-12 t1
-12 t1
-13 Testing
-13 Testing
-14 table
-14 table
-15 t2
-15 t2
-16 Testing
-16 Testing
-17 table
-17 table
-18 t2
-18 t2
-19 Testing
-19 Testing
-explain select a from t3 order by a desc limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index NULL a 4 NULL 10 Using index
-select a from t3 order by a desc limit 10;
-a
-699
-698
-697
-696
-695
-694
-693
-692
-691
-690
-select a from t3 order by a desc limit 300,10;
-a
-416
-415
-415
-414
-414
-413
-413
-412
-412
-411
-delete from t3 where a=3;
-select * from t3 where a < 10;
-a b
-1 Testing
-1 Testing
-2 table
-2 table
-4 Testing
-4 Testing
-5 table
-5 table
-6 t2
-6 t1
-7 Testing
-7 Testing
-8 table
-8 table
-9 t2
-9 t2
-delete from t3 where a >= 6 and a <= 8;
-select * from t3 where a < 10;
-a b
-1 Testing
-1 Testing
-2 table
-2 table
-4 Testing
-4 Testing
-5 table
-5 table
-9 t2
-9 t2
-update t3 set a=3 where a=9;
-select * from t3 where a < 10;
-a b
-1 Testing
-1 Testing
-2 table
-2 table
-3 t2
-3 t2
-4 Testing
-4 Testing
-5 table
-5 table
-update t3 set a=6 where a=7;
-select * from t3 where a < 10;
-a b
-1 Testing
-1 Testing
-2 table
-2 table
-3 t2
-3 t2
-4 Testing
-4 Testing
-5 table
-5 table
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` int(11) NOT NULL,
- `b` char(20) DEFAULT NULL,
- KEY `a` (`a`)
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t1`,`t2`)
-create table t4 (a int not null, b char(10), key(a)) engine=MERGE UNION=(t1,t2);
-select * from t4;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-alter table t4 add column c int;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-flush tables;
-select * from t4;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-create database mysqltest;
-create table mysqltest.t6 (a int not null primary key auto_increment, message char(20));
-create table t5 (a int not null, b char(20), key(a)) engine=MERGE UNION=(test.t1,mysqltest.t6);
-show create table t5;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `a` int(11) NOT NULL,
- `b` char(20) DEFAULT NULL,
- KEY `a` (`a`)
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t1`,`mysqltest`.`t6`)
-alter table t5 engine=myisam;
-drop table t5, mysqltest.t6;
-drop database mysqltest;
-drop table t4,t3,t1,t2;
-create table t1 (c char(10)) engine=myisam;
-create table t2 (c char(10)) engine=myisam;
-create table t3 (c char(10)) union=(t1,t2) engine=merge;
-insert into t1 (c) values ('test1');
-insert into t1 (c) values ('test1');
-insert into t1 (c) values ('test1');
-insert into t2 (c) values ('test2');
-insert into t2 (c) values ('test2');
-insert into t2 (c) values ('test2');
-select * from t3;
-c
-test1
-test1
-test1
-test2
-test2
-test2
-select * from t3;
-c
-test1
-test1
-test1
-test2
-test2
-test2
-delete from t3 where 1=1;
-select * from t3;
-c
-select * from t1;
-c
-drop table t3,t2,t1;
-CREATE TABLE t1 (incr int not null, othr int not null, primary key(incr));
-CREATE TABLE t2 (incr int not null, othr int not null, primary key(incr));
-CREATE TABLE t3 (incr int not null, othr int not null, primary key(incr))
-ENGINE=MERGE UNION=(t1,t2);
-SELECT * from t3;
-incr othr
-INSERT INTO t1 VALUES ( 1,10),( 3,53),( 5,21),( 7,12),( 9,17);
-INSERT INTO t2 VALUES ( 2,24),( 4,33),( 6,41),( 8,26),( 0,32);
-INSERT INTO t1 VALUES (11,20),(13,43),(15,11),(17,22),(19,37);
-INSERT INTO t2 VALUES (12,25),(14,31),(16,42),(18,27),(10,30);
-SELECT * from t3 where incr in (1,2,3,4) order by othr;
-incr othr
-1 10
-2 24
-4 33
-3 53
-alter table t3 UNION=(t1);
-select count(*) from t3;
-count(*)
-10
-alter table t3 UNION=(t1,t2);
-select count(*) from t3;
-count(*)
-20
-alter table t3 ENGINE=MYISAM;
-select count(*) from t3;
-count(*)
-20
-drop table t3;
-CREATE TABLE t3 (incr int not null, othr int not null, primary key(incr))
-ENGINE=MERGE UNION=(t1,t2);
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `incr` int(11) NOT NULL,
- `othr` int(11) NOT NULL,
- PRIMARY KEY (`incr`)
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t1`,`t2`)
-alter table t3 drop primary key;
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `incr` int(11) NOT NULL,
- `othr` int(11) NOT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t1`,`t2`)
-drop table t3,t2,t1;
-create table t1 (a int not null, key(a)) engine=merge;
-select * from t1;
-a
-drop table t1;
-create table t1 (a int not null, b int not null, key(a,b));
-create table t2 (a int not null, b int not null, key(a,b));
-create table t3 (a int not null, b int not null, key(a,b)) ENGINE=MERGE UNION=(t1,t2);
-insert into t1 values (1,2),(2,1),(0,0),(4,4),(5,5),(6,6);
-insert into t2 values (1,1),(2,2),(0,0),(4,4),(5,5),(6,6);
-flush tables;
-select * from t3 where a=1 order by b limit 2;
-a b
-1 1
-1 2
-drop table t3,t1,t2;
-create table t1 (a int not null, b int not null auto_increment, primary key(a,b));
-create table t2 (a int not null, b int not null auto_increment, primary key(a,b));
-create table t3 (a int not null, b int not null, key(a,b)) UNION=(t1,t2) INSERT_METHOD=NO;
-create table t4 (a int not null, b int not null, key(a,b)) ENGINE=MERGE UNION=(t1,t2) INSERT_METHOD=NO;
-create table t5 (a int not null, b int not null auto_increment, primary key(a,b)) ENGINE=MERGE UNION=(t1,t2) INSERT_METHOD=FIRST;
-create table t6 (a int not null, b int not null auto_increment, primary key(a,b)) ENGINE=MERGE UNION=(t1,t2) INSERT_METHOD=LAST;
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` int(11) NOT NULL,
- `b` int(11) NOT NULL,
- KEY `a` (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create table t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `a` int(11) NOT NULL,
- `b` int(11) NOT NULL,
- KEY `a` (`a`,`b`)
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t1`,`t2`)
-show create table t5;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `a` int(11) NOT NULL,
- `b` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`a`,`b`)
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=FIRST UNION=(`t1`,`t2`)
-show create table t6;
-Table Create Table
-t6 CREATE TABLE `t6` (
- `a` int(11) NOT NULL,
- `b` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`a`,`b`)
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-insert into t1 values (1,NULL),(1,NULL),(1,NULL),(1,NULL);
-insert into t2 values (2,NULL),(2,NULL),(2,NULL),(2,NULL);
-select * from t3 order by b,a limit 3;
-a b
-select * from t4 order by b,a limit 3;
-a b
-1 1
-2 1
-1 2
-select * from t5 order by b,a limit 3,3;
-a b
-2 2
-1 3
-2 3
-select * from t6 order by b,a limit 6,3;
-a b
-1 4
-2 4
-insert into t5 values (5,1),(5,2);
-insert into t6 values (6,1),(6,2);
-select * from t1 order by a,b;
-a b
-1 1
-1 2
-1 3
-1 4
-5 1
-5 2
-select * from t2 order by a,b;
-a b
-2 1
-2 2
-2 3
-2 4
-6 1
-6 2
-select * from t4 order by a,b;
-a b
-1 1
-1 2
-1 3
-1 4
-2 1
-2 2
-2 3
-2 4
-5 1
-5 2
-6 1
-6 2
-insert into t3 values (3,1),(3,2),(3,3),(3,4);
-select * from t3 order by a,b;
-a b
-3 1
-3 2
-3 3
-3 4
-alter table t4 UNION=(t1,t2,t3);
-show create table t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `a` int(11) NOT NULL,
- `b` int(11) NOT NULL,
- KEY `a` (`a`,`b`)
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t1`,`t2`,`t3`)
-select * from t4 order by a,b;
-a b
-1 1
-1 2
-1 3
-1 4
-2 1
-2 2
-2 3
-2 4
-3 1
-3 2
-3 3
-3 4
-5 1
-5 2
-6 1
-6 2
-alter table t4 INSERT_METHOD=FIRST;
-show create table t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `a` int(11) NOT NULL,
- `b` int(11) NOT NULL,
- KEY `a` (`a`,`b`)
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=FIRST UNION=(`t1`,`t2`,`t3`)
-insert into t4 values (4,1),(4,2);
-select * from t1 order by a,b;
-a b
-1 1
-1 2
-1 3
-1 4
-4 1
-4 2
-5 1
-5 2
-select * from t2 order by a,b;
-a b
-2 1
-2 2
-2 3
-2 4
-6 1
-6 2
-select * from t3 order by a,b;
-a b
-3 1
-3 2
-3 3
-3 4
-select * from t4 order by a,b;
-a b
-1 1
-1 2
-1 3
-1 4
-2 1
-2 2
-2 3
-2 4
-3 1
-3 2
-3 3
-3 4
-4 1
-4 2
-5 1
-5 2
-6 1
-6 2
-select * from t5 order by a,b;
-a b
-1 1
-1 2
-1 3
-1 4
-2 1
-2 2
-2 3
-2 4
-4 1
-4 2
-5 1
-5 2
-6 1
-6 2
-select 1;
-1
-1
-insert into t5 values (1,NULL),(5,NULL);
-insert into t6 values (2,NULL),(6,NULL);
-select * from t1 order by a,b;
-a b
-1 1
-1 2
-1 3
-1 4
-1 5
-4 1
-4 2
-5 1
-5 2
-5 3
-select * from t2 order by a,b;
-a b
-2 1
-2 2
-2 3
-2 4
-2 5
-6 1
-6 2
-6 3
-select * from t5 order by a,b;
-a b
-1 1
-1 2
-1 3
-1 4
-1 5
-2 1
-2 2
-2 3
-2 4
-2 5
-4 1
-4 2
-5 1
-5 2
-5 3
-6 1
-6 2
-6 3
-select * from t6 order by a,b;
-a b
-1 1
-1 2
-1 3
-1 4
-1 5
-2 1
-2 2
-2 3
-2 4
-2 5
-4 1
-4 2
-5 1
-5 2
-5 3
-6 1
-6 2
-6 3
-insert into t1 values (99,NULL);
-select * from t4 where a+0 > 90;
-a b
-99 1
-insert t5 values (1,1);
-ERROR 23000: Duplicate entry '1-1' for key 'PRIMARY'
-insert t6 values (2,1);
-ERROR 23000: Duplicate entry '2-1' for key 'PRIMARY'
-insert t5 values (1,1) on duplicate key update b=b+10;
-insert t6 values (2,1) on duplicate key update b=b+20;
-select * from t5 where a < 3;
-a b
-1 2
-1 3
-1 4
-1 5
-1 11
-2 2
-2 3
-2 4
-2 5
-2 21
-drop table t6, t5, t4, t3, t2, t1;
-CREATE TABLE t1 ( a int(11) NOT NULL default '0', b int(11) NOT NULL default '0', PRIMARY KEY (a,b)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,1), (2,1);
-CREATE TABLE t2 ( a int(11) NOT NULL default '0', b int(11) NOT NULL default '0', PRIMARY KEY (a,b)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,2), (2,2);
-CREATE TABLE t3 ( a int(11) NOT NULL default '0', b int(11) NOT NULL default '0', KEY a (a,b)) ENGINE=MRG_MyISAM UNION=(t1,t2);
-select max(b) from t3 where a = 2;
-max(b)
-2
-select max(b) from t1 where a = 2;
-max(b)
-1
-drop table t3,t1,t2;
-create table t1 (a int not null);
-create table t2 (a int not null);
-insert into t1 values (1);
-insert into t2 values (2);
-create temporary table t3 (a int not null) ENGINE=MERGE UNION=(t1,t2);
-select * from t3;
-a
-1
-2
-create temporary table t4 (a int not null);
-create temporary table t5 (a int not null);
-insert into t4 values (1);
-insert into t5 values (2);
-create temporary table t6 (a int not null) ENGINE=MERGE UNION=(t4,t5);
-select * from t6;
-a
-1
-2
-drop table t6, t3, t1, t2, t4, t5;
-create temporary table t1 (a int not null);
-create temporary table t2 (a int not null);
-insert into t1 values (1);
-insert into t2 values (2);
-create table t3 (a int not null) ENGINE=MERGE UNION=(t1,t2);
-select * from t3;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-drop table t3, t2, t1;
-create table t1 (a int not null);
-create temporary table t2 (a int not null);
-insert into t1 values (1);
-insert into t2 values (2);
-create table t3 (a int not null) ENGINE=MERGE UNION=(t1,t2);
-select * from t3;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-drop table t3;
-create temporary table t3 (a int not null) ENGINE=MERGE UNION=(t1,t2);
-select * from t3;
-a
-1
-2
-drop table t3, t2, t1;
-# CREATE...SELECT is not implemented for MERGE tables.
-CREATE TEMPORARY TABLE t1 (c1 INT NOT NULL);
-CREATE TEMPORARY TABLE t2 (c1 INT NOT NULL);
-CREATE TABLE t3 (c1 INT NOT NULL);
-INSERT INTO t3 VALUES (3), (33);
-LOCK TABLES t3 READ;
-CREATE TEMPORARY TABLE t4 (c1 INT NOT NULL) ENGINE=MERGE UNION=(t1,t2)
-INSERT_METHOD=LAST SELECT * FROM t3;
-ERROR HY000: 'test.t4' is not of type 'BASE TABLE'
-SELECT * FROM t4;
-ERROR HY000: Table 't4' was not locked with LOCK TABLES
-UNLOCK TABLES;
-CREATE TEMPORARY TABLE t4 (c1 INT NOT NULL) ENGINE=MERGE UNION=(t1,t2)
-INSERT_METHOD=LAST;
-INSERT INTO t4 SELECT * FROM t3;
-# Alter temporary MERGE table.
-ALTER TABLE t4 UNION=(t1);
-LOCK TABLES t4 WRITE;
-# Alter temporary MERGE table under LOCk tables.
-ALTER TABLE t4 UNION=(t1,t2);
-UNLOCK TABLES;
-# MERGE table and function.
-CREATE FUNCTION f1 () RETURNS INT RETURN (SELECT max(c1) FROM t3);
-SELECT * FROM t4 WHERE c1 < f1();
-c1
-3
-DROP FUNCTION f1;
-DROP TABLE t4, t3, t2, t1;
-CREATE TABLE t1 (
-fileset_id tinyint(3) unsigned NOT NULL default '0',
-file_code varchar(32) NOT NULL default '',
-fileset_root_id tinyint(3) unsigned NOT NULL default '0',
-PRIMARY KEY (fileset_id,file_code),
-KEY files (fileset_id,fileset_root_id)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (2, '0000000111', 1), (2, '0000000112', 1), (2, '0000000113', 1),
-(2, '0000000114', 1), (2, '0000000115', 1), (2, '0000000116', 1), (2, '0000000117', 1),
-(2, '0000000118', 1), (2, '0000000119', 1), (2, '0000000120', 1);
-CREATE TABLE t2 (
-fileset_id tinyint(3) unsigned NOT NULL default '0',
-file_code varchar(32) NOT NULL default '',
-fileset_root_id tinyint(3) unsigned NOT NULL default '0',
-PRIMARY KEY (fileset_id,file_code),
-KEY files (fileset_id,fileset_root_id)
-) ENGINE=MRG_MyISAM UNION=(t1);
-EXPLAIN SELECT * FROM t2 IGNORE INDEX (files) WHERE fileset_id = 2
-AND file_code BETWEEN '0000000115' AND '0000000120' LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range PRIMARY PRIMARY 35 NULL 5 Using where
-EXPLAIN SELECT * FROM t2 WHERE fileset_id = 2
-AND file_code BETWEEN '0000000115' AND '0000000120' LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range PRIMARY,files PRIMARY 35 NULL 5 Using where
-EXPLAIN SELECT * FROM t1 WHERE fileset_id = 2
-AND file_code BETWEEN '0000000115' AND '0000000120' LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,files PRIMARY 35 NULL 5 Using index condition
-EXPLAIN SELECT * FROM t2 WHERE fileset_id = 2
-AND file_code = '0000000115' LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const PRIMARY,files PRIMARY 35 const,const 1
-DROP TABLE t2, t1;
-create table t1 (x int, y int, index xy(x, y));
-create table t2 (x int, y int, index xy(x, y));
-create table t3 (x int, y int, index xy(x, y)) engine=merge union=(t1,t2);
-insert into t1 values(1, 2);
-insert into t2 values(1, 3);
-select * from t3 where x = 1 and y < 5 order by y;
-x y
-1 2
-1 3
-select * from t3 where x = 1 and y < 5 order by y desc;
-x y
-1 3
-1 2
-drop table t1,t2,t3;
-create table t1 (a int);
-create table t2 (a int);
-insert into t1 values (0);
-insert into t2 values (1);
-create table t3 engine=merge union=(t1, t2) select * from t1;
-ERROR HY000: 'test.t3' is not of type 'BASE TABLE'
-create table t3 engine=merge union=(t1, t2) select * from t2;
-ERROR HY000: 'test.t3' is not of type 'BASE TABLE'
-create table t3 engine=merge union=(t1, t2) select (select max(a) from t2);
-ERROR HY000: 'test.t3' is not of type 'BASE TABLE'
-drop table t1, t2;
-create table t1 (
-a double(14,4),
-b varchar(10),
-index (a,b)
-) engine=merge union=(t2,t3);
-create table t2 (
-a double(14,4),
-b varchar(10),
-index (a,b)
-) engine=myisam;
-create table t3 (
-a double(14,4),
-b varchar(10),
-index (a,b)
-) engine=myisam;
-insert into t2 values ( null, '');
-insert into t2 values ( 9999999999.999, '');
-insert into t3 select * from t2;
-select min(a), max(a) from t1;
-min(a) max(a)
-9999999999.9990 9999999999.9990
-flush tables;
-select min(a), max(a) from t1;
-min(a) max(a)
-9999999999.9990 9999999999.9990
-drop table t1, t2, t3;
-create table t1 (a int,b int,c int, index (a,b,c));
-create table t2 (a int,b int,c int, index (a,b,c));
-create table t3 (a int,b int,c int, index (a,b,c))
-engine=merge union=(t1 ,t2);
-insert into t1 (a,b,c) values (1,1,0),(1,2,0);
-insert into t2 (a,b,c) values (1,1,1),(1,2,1);
-explain select a,b,c from t3 force index (a) where a=1 order by a,b,c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ref a a 5 const 2 Using where; Using index
-select a,b,c from t3 force index (a) where a=1 order by a,b,c;
-a b c
-1 1 0
-1 1 1
-1 2 0
-1 2 1
-explain select a,b,c from t3 force index (a) where a=1 order by a desc, b desc, c desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ref a a 5 const 2 Using where; Using index
-select a,b,c from t3 force index (a) where a=1 order by a desc, b desc, c desc;
-a b c
-1 2 1
-1 2 0
-1 1 1
-1 1 0
-show index from t3;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t3 1 a 1 a A NULL NULL NULL YES BTREE
-t3 1 a 2 b A NULL NULL NULL YES BTREE
-t3 1 a 3 c A NULL NULL NULL YES BTREE
-drop table t1, t2, t3;
-CREATE TABLE t1 ( a INT AUTO_INCREMENT PRIMARY KEY, b VARCHAR(10), UNIQUE (b) )
-ENGINE=MyISAM;
-CREATE TABLE t2 ( a INT AUTO_INCREMENT, b VARCHAR(10), INDEX (a), INDEX (b) )
-ENGINE=MERGE UNION (t1) INSERT_METHOD=FIRST;
-INSERT INTO t2 (b) VALUES (1) ON DUPLICATE KEY UPDATE b=2;
-INSERT INTO t2 (b) VALUES (1) ON DUPLICATE KEY UPDATE b=3;
-SELECT b FROM t2;
-b
-3
-DROP TABLE t1, t2;
-create table t1(a int);
-create table t2(a int);
-insert into t1 values (1);
-insert into t2 values (2);
-create table t3 (a int) engine=merge union=(t1, t2) insert_method=first;
-select * from t3;
-a
-1
-2
-insert t2 select * from t2;
-select * from t2;
-a
-2
-2
-insert t3 select * from t1;
-select * from t3;
-a
-1
-1
-2
-2
-insert t1 select * from t3;
-select * from t1;
-a
-1
-1
-1
-1
-2
-2
-select * from t2;
-a
-2
-2
-select * from t3;
-a
-1
-1
-1
-1
-2
-2
-2
-2
-check table t1, t2;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-test.t2 check status OK
-drop table t1, t2, t3;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES(2),(1);
-CREATE TABLE t2(a INT, KEY(a)) ENGINE=MERGE UNION=(t1);
-SELECT * FROM t2 WHERE a=2;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DROP TABLE t1, t2;
-CREATE TABLE t1(a INT) ENGINE=MEMORY;
-CREATE TABLE t2(a INT) ENGINE=MERGE UNION=(t1);
-SELECT * FROM t2;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DROP TABLE t1, t2;
-CREATE TABLE t2(a INT) ENGINE=MERGE UNION=(t3);
-SELECT * FROM t2;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DROP TABLE t2;
-CREATE TABLE t1(a INT, b TEXT);
-CREATE TABLE tm1(a TEXT, b INT) ENGINE=MERGE UNION=(t1);
-SELECT * FROM tm1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DROP TABLE t1, tm1;
-CREATE TABLE t1(a SMALLINT, b SMALLINT);
-CREATE TABLE tm1(a INT) ENGINE=MERGE UNION=(t1);
-SELECT * FROM tm1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DROP TABLE t1, tm1;
-CREATE TABLE t1(a SMALLINT, b SMALLINT, KEY(a, b));
-CREATE TABLE tm1(a SMALLINT, b SMALLINT, KEY(a)) ENGINE=MERGE UNION=(t1);
-SELECT * FROM tm1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DROP TABLE t1, tm1;
-CREATE TABLE t1(a SMALLINT, b SMALLINT, KEY(b));
-CREATE TABLE tm1(a SMALLINT, b SMALLINT, KEY(a)) ENGINE=MERGE UNION=(t1);
-SELECT * FROM tm1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DROP TABLE t1, tm1;
-CREATE TABLE t1(c1 VARCHAR(1));
-CREATE TABLE m1 LIKE t1;
-ALTER TABLE m1 ENGINE=MERGE UNION=(t1);
-SELECT * FROM m1;
-c1
-DROP TABLE t1, m1;
-CREATE TABLE t1(c1 VARCHAR(4), c2 TINYINT, c3 TINYINT, c4 TINYINT,
-c5 TINYINT, c6 TINYINT, c7 TINYINT, c8 TINYINT, c9 TINYINT);
-CREATE TABLE m1 LIKE t1;
-ALTER TABLE m1 ENGINE=MERGE UNION=(t1);
-SELECT * FROM m1;
-c1 c2 c3 c4 c5 c6 c7 c8 c9
-DROP TABLE t1, m1;
-CREATE TABLE t1 (a VARCHAR(255) CHARACTER SET latin1 COLLATE latin1_german2_ci,
-b INT, INDEX(a,b));
-CREATE TABLE t2 LIKE t1;
-CREATE TABLE t3 LIKE t1;
-ALTER TABLE t3 ENGINE=MERGE UNION=(t1,t2);
-INSERT INTO t1 VALUES ('ss',1);
-INSERT INTO t2 VALUES ('ss',2),(0xDF,2);
-SELECT COUNT(*) FROM t3 WHERE a=0xDF AND b=2;
-COUNT(*)
-2
-DROP TABLE t1,t2,t3;
-create table t1 (b bit(1));
-create table t2 (b bit(1));
-create table tm (b bit(1)) engine = merge union = (t1,t2);
-select * from tm;
-b
-drop table tm, t1, t2;
-create table t1 (a int) insert_method = last engine = merge;
-insert into t1 values (1);
-ERROR HY000: Table 't1' is read only
-create table t2 (a int) engine = myisam;
-alter table t1 union (t2);
-insert into t1 values (1);
-alter table t1 insert_method = no;
-insert into t1 values (1);
-ERROR HY000: Table 't1' is read only
-drop table t2;
-drop table t1;
-CREATE TABLE tm1(a INT) ENGINE=MERGE UNION=(t1, t2);
-SELECT * FROM tm1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-CHECK TABLE tm1;
-Table Op Msg_type Msg_text
-test.tm1 check Error Table 'test.t1' is differently defined or of non-MyISAM type or doesn't exist
-test.tm1 check Error Table 'test.t2' is differently defined or of non-MyISAM type or doesn't exist
-test.tm1 check Error Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-test.tm1 check error Corrupt
-CREATE TABLE t1(a INT);
-SELECT * FROM tm1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-CHECK TABLE tm1;
-Table Op Msg_type Msg_text
-test.tm1 check Error Table 'test.t2' is differently defined or of non-MyISAM type or doesn't exist
-test.tm1 check Error Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-test.tm1 check error Corrupt
-CREATE TABLE t2(a BLOB);
-SELECT * FROM tm1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-CHECK TABLE tm1;
-Table Op Msg_type Msg_text
-test.tm1 check Error Table 'test.t2' is differently defined or of non-MyISAM type or doesn't exist
-test.tm1 check Error Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-test.tm1 check error Corrupt
-ALTER TABLE t2 MODIFY a INT;
-SELECT * FROM tm1;
-a
-CHECK TABLE tm1;
-Table Op Msg_type Msg_text
-test.tm1 check status OK
-DROP TABLE tm1, t1, t2;
-CREATE TABLE t1(c1 INT);
-CREATE TABLE t2 (c1 INT) ENGINE=MERGE UNION=(t1) INSERT_METHOD=FIRST;
-CREATE TABLE IF NOT EXISTS t1 SELECT * FROM t2;
-Warnings:
-Note 1050 Table 't1' already exists
-DROP TABLE t1, t2;
-CREATE TABLE t1 (id INT NOT NULL, ref INT NOT NULL, INDEX (id)) ENGINE=MyISAM;
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 (id, ref) VALUES (1,3), (2,1), (3,2), (4,5), (4,4);
-INSERT INTO t1 SELECT * FROM t2;
-INSERT INTO t1 SELECT * FROM t2;
-CREATE TABLE t3 (id INT NOT NULL, ref INT NOT NULL, INDEX (id)) ENGINE=MERGE
-UNION(t1);
-SELECT * FROM t3 AS a INNER JOIN t3 AS b USING (id) WHERE a.ref < b.ref;
-id ref ref
-4 4 5
-4 4 5
-4 4 5
-4 4 5
-SELECT * FROM t3;
-id ref
-1 3
-2 1
-3 2
-4 5
-4 4
-1 3
-2 1
-3 2
-4 5
-4 4
-DELETE FROM a USING t3 AS a INNER JOIN t3 AS b USING (id) WHERE a.ref < b.ref;
-SELECT * FROM t3;
-id ref
-1 3
-2 1
-3 2
-4 5
-1 3
-2 1
-3 2
-4 5
-DROP TABLE t1, t2, t3;
-CREATE TABLE t1(a INT);
-CREATE TABLE m1(a INT) ENGINE=MERGE;
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TABLE `m1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1
-DROP TABLE m1;
-CREATE TABLE m1(a INT) ENGINE=MERGE UNION=();
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TABLE `m1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE m1 UNION=(t1);
-ALTER TABLE m1 UNION=();
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TABLE `m1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1, m1;
-CREATE TABLE t1(a INT);
-CREATE TABLE t2(a VARCHAR(10));
-CREATE TABLE m1(a INT) ENGINE=MERGE UNION=(t1, t2);
-CREATE TABLE m2(a INT) ENGINE=MERGE UNION=(t1);
-SELECT * FROM t1;
-a
-SELECT * FROM m1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-SELECT * FROM m2;
-a
-DROP TABLE t1, t2, m1, m2;
-End of 5.0 tests
-create table t1 (c1 int, index(c1));
-create table t2 (c1 int, index(c1)) engine=merge union=(t1);
-insert into t1 values (1);
-flush tables;
-select * from t2;
-c1
-1
-flush tables;
-truncate table t1;
-insert into t1 values (1);
-flush tables;
-select * from t2;
-c1
-1
-truncate table t1;
-insert into t1 values (1);
-drop table t1,t2;
-#
-# Extra tests for TRUNCATE.
-#
-# Truncate MERGE table.
-CREATE TABLE t1 (c1 INT, INDEX(c1));
-CREATE TABLE t2 (c1 INT, INDEX(c1));
-CREATE TABLE t3 (c1 INT, INDEX(c1)) ENGINE=MRG_MYISAM UNION=(t1,t2);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-SELECT * FROM t3;
-c1
-1
-2
-TRUNCATE TABLE t3;
-SELECT * FROM t3;
-c1
-#
-# Truncate child table.
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-TRUNCATE TABLE t1;
-SELECT * FROM t3;
-c1
-2
-#
-# Truncate MERGE table under locked tables.
-LOCK TABLE t1 WRITE, t2 WRITE, t3 WRITE;
-INSERT INTO t1 VALUES (1);
-TRUNCATE TABLE t3;
-SELECT * FROM t3;
-c1
-UNLOCK TABLES;
-SELECT * FROM t1;
-c1
-SELECT * FROM t2;
-c1
-#
-# Truncate child table under locked tables.
-LOCK TABLE t1 WRITE, t2 WRITE, t3 WRITE;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-TRUNCATE TABLE t1;
-SELECT * FROM t3;
-c1
-2
-UNLOCK TABLES;
-DROP TABLE t1, t2, t3;
-#
-# Truncate temporary MERGE table.
-CREATE TEMPORARY TABLE t1 (c1 INT, INDEX(c1));
-CREATE TEMPORARY TABLE t2 (c1 INT, INDEX(c1));
-CREATE TEMPORARY TABLE t3 (c1 INT, INDEX(c1)) ENGINE=MRG_MYISAM UNION=(t1,t2);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-SELECT * FROM t3;
-c1
-1
-2
-TRUNCATE TABLE t3;
-SELECT * FROM t3;
-c1
-#
-# Truncate temporary child table.
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-TRUNCATE TABLE t1;
-SELECT * FROM t3;
-c1
-2
-#
-# Truncate temporary MERGE table under locked tables.
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t4 (c1 INT, INDEX(c1));
-LOCK TABLE t4 WRITE;
-TRUNCATE TABLE t3;
-SELECT * FROM t3;
-c1
-SELECT * FROM t1;
-c1
-SELECT * FROM t2;
-c1
-#
-# Truncate temporary child table under locked tables.
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-TRUNCATE TABLE t1;
-SELECT * FROM t3;
-c1
-2
-SELECT * FROM t1;
-c1
-SELECT * FROM t2;
-c1
-2
-UNLOCK TABLES;
-DROP TABLE t1, t2, t3, t4;
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection default;
-CREATE TABLE t1 (c1 INT) ENGINE= MyISAM;
-CREATE TABLE t2 (c1 INT) ENGINE= MRG_MYISAM UNION= (t1) INSERT_METHOD= LAST;
-REPAIR TABLE t1;
-connection con1;
-INSERT INTO t2 VALUES (1);
-connection default;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-DROP TABLE t1, t2;
-CREATE TABLE t1 (c1 INT) ENGINE= MyISAM;
-CREATE TABLE t2 (c1 INT) ENGINE= MRG_MYISAM UNION= (t1) INSERT_METHOD= LAST;
-LOCK TABLE t1 WRITE;
-connection con1;
-INSERT INTO t2 VALUES (1);
-connection default;
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-UNLOCK TABLES;
-connection con1;
-connection default;
-DROP TABLE t1, t2;
-CREATE TABLE t1 (c1 INT) ENGINE= MyISAM;
-LOCK TABLE t1 WRITE;
-connection con1;
-INSERT INTO t1 VALUES (1);
-connection default;
-FLUSH TABLES;
-FLUSH TABLES;
-SELECT * FROM t1;
-c1
-UNLOCK TABLES;
-connection con1;
-connection default;
-DROP TABLE t1;
-disconnect con1;
-disconnect con2;
-#
-# Extra tests for Bug#26379 - Combination of FLUSH TABLE and
-# REPAIR TABLE corrupts a MERGE table
-#
-# CREATE ... SELECT is disabled for MERGE tables.
-#
-CREATE TABLE t1(c1 INT);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1) INSERT_METHOD=LAST;
-CREATE TABLE t3 ENGINE=MRG_MYISAM INSERT_METHOD=LAST SELECT * FROM t2;
-ERROR HY000: Table 't3' is read only
-SHOW CREATE TABLE t3;
-ERROR 42S02: Table 'test.t3' doesn't exist
-CREATE TABLE t3 ENGINE=MRG_MYISAM UNION=(t1) INSERT_METHOD=LAST
-SELECT * FROM t2;
-ERROR HY000: 'test.t3' is not of type 'BASE TABLE'
-SHOW CREATE TABLE t3;
-ERROR 42S02: Table 'test.t3' doesn't exist
-DROP TABLE t1, t2;
-#
-# Bug#37371 "CREATE TABLE LIKE merge loses UNION parameter"
-# Demonstrate that this is no longer the case.
-#
-# 1. Create like.
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE t2 (c1 INT);
-CREATE TABLE t3 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-INSERT INTO t3 VALUES (3);
-CREATE TABLE t4 LIKE t3;
-SHOW CREATE TABLE t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `c1` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-INSERT INTO t4 VALUES (4);
-DROP TABLE t4;
-#
-# 1. Create like with locked tables.
-LOCK TABLES t3 WRITE, t2 WRITE, t1 WRITE;
-CREATE TABLE t4 LIKE t3;
-ERROR HY000: Table 't4' was not locked with LOCK TABLES
-SHOW CREATE TABLE t4;
-ERROR HY000: Table 't4' was not locked with LOCK TABLES
-INSERT INTO t4 VALUES (4);
-ERROR HY000: Table 't4' was not locked with LOCK TABLES
-# Temporary tables can be created in spite of LOCK TABLES.
-# If the temporary MERGE table uses the locked children only,
-# it can even be used.
-CREATE TEMPORARY TABLE t4 LIKE t3;
-SHOW CREATE TABLE t4;
-Table Create Table
-t4 CREATE TEMPORARY TABLE `t4` (
- `c1` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-INSERT INTO t4 VALUES (4);
-UNLOCK TABLES;
-INSERT INTO t4 VALUES (4);
-DROP TABLE t4;
-#
-# Rename child.
-#
-# 1. Normal rename of non-MERGE table.
-CREATE TABLE t4 (c1 INT);
-INSERT INTO t4 VALUES (4);
-SELECT * FROM t4 ORDER BY c1;
-c1
-4
-RENAME TABLE t4 TO t5;
-SELECT * FROM t5 ORDER BY c1;
-c1
-4
-RENAME TABLE t5 TO t4;
-SELECT * FROM t4 ORDER BY c1;
-c1
-4
-DROP TABLE t4;
-#
-# 2. Normal rename.
-SELECT * FROM t3 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-4
-RENAME TABLE t2 TO t5;
-SELECT * FROM t3 ORDER BY c1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-RENAME TABLE t5 TO t2;
-SELECT * FROM t3 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-4
-#
-# 3. Normal rename with locked tables.
-LOCK TABLES t1 WRITE, t2 WRITE, t3 WRITE;
-SELECT * FROM t3 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-4
-RENAME TABLE t2 TO t5;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-SELECT * FROM t3 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-4
-RENAME TABLE t5 TO t2;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-SELECT * FROM t3 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-4
-UNLOCK TABLES;
-#
-# 4. Alter table rename.
-ALTER TABLE t2 RENAME TO t5;
-SELECT * FROM t3 ORDER BY c1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-ALTER TABLE t5 RENAME TO t2;
-SELECT * FROM t3 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-4
-#
-# 5. Alter table rename with locked tables.
-LOCK TABLES t1 WRITE, t2 WRITE, t3 WRITE;
-ALTER TABLE t2 RENAME TO t5;
-SELECT * FROM t3 ORDER BY c1;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-ALTER TABLE t5 RENAME TO t2;
-ERROR HY000: Table 't5' was not locked with LOCK TABLES
-UNLOCK TABLES;
-ALTER TABLE t5 RENAME TO t2;
-SELECT * FROM t3 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-4
-#
-# Rename parent.
-#
-# 1. Normal rename with locked tables.
-LOCK TABLES t1 WRITE, t2 WRITE, t3 WRITE;
-SELECT * FROM t3 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-4
-RENAME TABLE t3 TO t5;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-SELECT * FROM t3 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-4
-RENAME TABLE t5 TO t3;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-SELECT * FROM t3 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-4
-#
-# 5. Alter table rename with locked tables.
-ALTER TABLE t3 RENAME TO t5;
-SELECT * FROM t5 ORDER BY c1;
-ERROR HY000: Table 't5' was not locked with LOCK TABLES
-ALTER TABLE t5 RENAME TO t3;
-ERROR HY000: Table 't5' was not locked with LOCK TABLES
-UNLOCK TABLES;
-ALTER TABLE t5 RENAME TO t3;
-SELECT * FROM t3 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-4
-DROP TABLE t1, t2, t3;
-#
-# Drop locked tables.
-#
-# 1. Drop parent.
-CREATE TABLE t1 (c1 INT, INDEX(c1));
-CREATE TABLE t2 (c1 INT, INDEX(c1)) ENGINE=MRG_MYISAM UNION=(t1)
-INSERT_METHOD=LAST;
-LOCK TABLES t1 WRITE, t2 WRITE;
-INSERT INTO t1 VALUES (1);
-DROP TABLE t2;
-SELECT * FROM t2;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-SELECT * FROM t1;
-c1
-1
-UNLOCK TABLES;
-# 2. Drop child.
-CREATE TABLE t2 (c1 INT, INDEX(c1)) ENGINE=MRG_MYISAM UNION=(t1)
-INSERT_METHOD=LAST;
-LOCK TABLES t1 WRITE, t2 WRITE;
-INSERT INTO t1 VALUES (1);
-DROP TABLE t1;
-SELECT * FROM t2;
-ERROR HY000: Table 't1' was not locked with LOCK TABLES
-SELECT * FROM t1;
-ERROR HY000: Table 't1' was not locked with LOCK TABLES
-UNLOCK TABLES;
-DROP TABLE t2;
-#
-# ALTER TABLE. Change child list.
-#
-CREATE TABLE t1 (c1 INT, INDEX(c1));
-CREATE TABLE t2 (c1 INT, INDEX(c1));
-CREATE TABLE t3 (c1 INT, INDEX(c1));
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-INSERT INTO t3 VALUES (3);
-CREATE TABLE t4 (c1 INT, INDEX(c1)) ENGINE=MRG_MYISAM UNION=(t3,t2)
-INSERT_METHOD=LAST;
-# Shrink child list.
-ALTER TABLE t4 UNION=(t3);
-SHOW CREATE TABLE t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `c1` int(11) DEFAULT NULL,
- KEY `c1` (`c1`)
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t3`)
-SELECT * FROM t4 ORDER BY c1;
-c1
-3
-# Extend child list.
-ALTER TABLE t4 UNION=(t3,t2);
-SHOW CREATE TABLE t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `c1` int(11) DEFAULT NULL,
- KEY `c1` (`c1`)
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t3`,`t2`)
-SELECT * FROM t4 ORDER BY c1;
-c1
-2
-3
-#
-# ALTER TABLE under LOCK TABLES. Change child list.
-#
-LOCK TABLES t4 WRITE, t3 WRITE, t2 WRITE;
-# Shrink child list.
-ALTER TABLE t4 UNION=(t3);
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-# Extend child list within locked tables.
-ALTER TABLE t4 UNION=(t3,t2);
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-# Extend child list beyond locked tables.
-ALTER TABLE t4 UNION=(t3,t2,t1);
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-SHOW CREATE TABLE t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `c1` int(11) DEFAULT NULL,
- KEY `c1` (`c1`)
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t3`,`t2`)
-SELECT * FROM t4 ORDER BY c1;
-c1
-2
-3
-UNLOCK TABLES;
-DROP TABLE t4;
-#
-# ALTER TABLE under LOCK TABLES. Grave change, table re-creation.
-#
-CREATE TABLE t4 (c1 INT, INDEX(c1)) ENGINE=MRG_MYISAM UNION=(t1,t2,t3)
-INSERT_METHOD=LAST;
-# Lock parent first and then children.
-LOCK TABLES t4 WRITE, t3 WRITE, t2 WRITE, t1 WRITE;
-ALTER TABLE t4 DROP INDEX c1, ADD UNIQUE INDEX (c1);
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-ALTER TABLE t2 DROP INDEX c1, ADD UNIQUE INDEX (c1);
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-UNLOCK TABLES;
-# Lock children first and then parent.
-LOCK TABLES t1 WRITE, t2 WRITE, t3 WRITE, t4 WRITE;
-ALTER TABLE t4 DROP INDEX c1, ADD UNIQUE INDEX (c1);
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-ALTER TABLE t2 DROP INDEX c1, ADD UNIQUE INDEX (c1);
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-UNLOCK TABLES;
-# Lock parent between children.
-LOCK TABLES t3 WRITE, t2 WRITE, t4 WRITE, t1 WRITE;
-ALTER TABLE t4 DROP INDEX c1, ADD UNIQUE INDEX (c1);
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-ALTER TABLE t2 DROP INDEX c1, ADD UNIQUE INDEX (c1);
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-UNLOCK TABLES;
-DROP TABLE t1, t2, t3, t4;
-#
-# ALTER TABLE under LOCK TABLES. Simple change, no re-creation.
-#
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE t2 (c1 INT);
-CREATE TABLE t3 (c1 INT);
-CREATE TABLE t4 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1,t2,t3)
-INSERT_METHOD=LAST;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-INSERT INTO t3 VALUES (3);
-# Lock parent first and then children.
-LOCK TABLES t4 WRITE, t3 WRITE, t2 WRITE, t1 WRITE;
-ALTER TABLE t4 ALTER COLUMN c1 SET DEFAULT 44;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-ALTER TABLE t2 ALTER COLUMN c1 SET DEFAULT 22;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-UNLOCK TABLES;
-# Lock children first and then parent.
-LOCK TABLES t1 WRITE, t2 WRITE, t3 WRITE, t4 WRITE;
-ALTER TABLE t4 ALTER COLUMN c1 SET DEFAULT 44;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-ALTER TABLE t2 ALTER COLUMN c1 SET DEFAULT 22;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-UNLOCK TABLES;
-# Lock parent between children.
-LOCK TABLES t3 WRITE, t2 WRITE, t4 WRITE, t1 WRITE;
-ALTER TABLE t4 ALTER COLUMN c1 SET DEFAULT 44;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-ALTER TABLE t2 ALTER COLUMN c1 SET DEFAULT 22;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-UNLOCK TABLES;
-#
-# FLUSH TABLE under LOCK TABLES.
-#
-# Lock parent first and then children.
-LOCK TABLES t4 WRITE, t3 WRITE, t2 WRITE, t1 WRITE;
-FLUSH TABLE t4;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-FLUSH TABLE t2;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-FLUSH TABLES;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-UNLOCK TABLES;
-# Lock children first and then parent.
-LOCK TABLES t1 WRITE, t2 WRITE, t3 WRITE, t4 WRITE;
-FLUSH TABLE t4;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-FLUSH TABLE t2;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-FLUSH TABLES;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-UNLOCK TABLES;
-# Lock parent between children.
-LOCK TABLES t3 WRITE, t2 WRITE, t4 WRITE, t1 WRITE;
-FLUSH TABLE t4;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-FLUSH TABLE t2;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-FLUSH TABLES;
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-UNLOCK TABLES;
-#
-# Triggers
-#
-# Trigger on parent
-DELETE FROM t4 WHERE c1 = 4;
-CREATE TRIGGER t4_ai1 AFTER INSERT ON t4 FOR EACH ROW SET @a=1;
-SET @a=0;
-INSERT INTO t4 VALUES (4);
-SELECT @a;
-@a
-1
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-DROP TRIGGER t4_ai1;
-CHECK TABLE t3;
-Table Op Msg_type Msg_text
-test.t3 check status OK
-# Trigger on parent under LOCK TABLES
-LOCK TABLES t3 WRITE, t2 WRITE, t4 WRITE, t1 WRITE;
-CREATE TRIGGER t4_ai2 AFTER INSERT ON t4 FOR EACH ROW SET @a=1;
-SET @a=0;
-INSERT INTO t4 VALUES (4);
-SELECT @a;
-@a
-1
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-DROP TRIGGER t4_ai2;
-UNLOCK TABLES;
-CHECK TABLE t3;
-Table Op Msg_type Msg_text
-test.t3 check status OK
-#
-# Trigger on child
-DELETE FROM t4 WHERE c1 = 4;
-CREATE TRIGGER t3_ai3 AFTER INSERT ON t3 FOR EACH ROW SET @a=1;
-SET @a=0;
-INSERT INTO t4 VALUES (4);
-SELECT @a;
-@a
-0
-INSERT INTO t3 VALUES (33);
-SELECT @a;
-@a
-1
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-33
-DROP TRIGGER t3_ai3;
-CHECK TABLE t3;
-Table Op Msg_type Msg_text
-test.t3 check status OK
-# Trigger on child under LOCK TABLES
-LOCK TABLES t3 WRITE, t2 WRITE, t4 WRITE, t1 WRITE;
-CREATE TRIGGER t3_ai4 AFTER INSERT ON t3 FOR EACH ROW SET @a=1;
-SET @a=0;
-INSERT INTO t4 VALUES (4);
-SELECT @a;
-@a
-0
-INSERT INTO t3 VALUES (33);
-SELECT @a;
-@a
-1
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-33
-33
-DELETE FROM t4 WHERE c1 = 33;
-DROP TRIGGER t3_ai4;
-UNLOCK TABLES;
-CHECK TABLE t3;
-Table Op Msg_type Msg_text
-test.t3 check status OK
-#
-# Trigger with table use on child
-DELETE FROM t4 WHERE c1 = 4;
-CREATE TRIGGER t3_ai5 AFTER INSERT ON t3 FOR EACH ROW INSERT INTO t2 VALUES(22);
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-1
-INSERT INTO t4 VALUES (4);
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-INSERT INTO t3 VALUES (33);
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-22
-33
-DELETE FROM t4 WHERE c1 = 22;
-DELETE FROM t4 WHERE c1 = 33;
-DROP TRIGGER t3_ai5;
-UNLOCK TABLES;
-CHECK TABLE t2,t3;
-Table Op Msg_type Msg_text
-test.t2 check status OK
-test.t3 check status OK
-# Trigger with table use on child under LOCK TABLES
-LOCK TABLES t3 WRITE, t2 WRITE, t4 WRITE, t1 WRITE;
-CREATE TRIGGER t3_ai6 AFTER INSERT ON t3 FOR EACH ROW INSERT INTO t2 VALUES(22);
-INSERT INTO t4 VALUES (4);
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-INSERT INTO t3 VALUES (33);
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-4
-22
-33
-DROP TRIGGER t3_ai6;
-UNLOCK TABLES;
-check table t2,t3,t4;
-Table Op Msg_type Msg_text
-test.t2 check status OK
-test.t3 check status OK
-test.t4 check status OK
-DELETE FROM t4 WHERE c1 = 22;
-DELETE FROM t4 WHERE c1 = 33;
-# Trigger with table use on child under different LOCK TABLES
-DELETE FROM t4 WHERE c1 = 4;
-LOCK TABLES t4 WRITE,t3 WRITE, t2 WRITE, t1 WRITE;
-CREATE TRIGGER t3_ai7 AFTER INSERT ON t3 FOR EACH ROW INSERT INTO t2 VALUES(22);
-INSERT INTO t4 VALUES (4);
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-INSERT INTO t3 VALUES (33);
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-22
-33
-DROP TRIGGER t3_ai7;
-UNLOCK TABLES;
-check table t2,t3,t4;
-Table Op Msg_type Msg_text
-test.t2 check status OK
-test.t3 check status OK
-test.t4 check status OK
-DELETE FROM t4 WHERE c1 = 22;
-DELETE FROM t4 WHERE c1 = 33;
-#
-# Repair
-#
-REPAIR TABLE t4;
-Table Op Msg_type Msg_text
-test.t4 repair note The storage engine for the table doesn't support repair
-REPAIR TABLE t2;
-Table Op Msg_type Msg_text
-test.t2 repair status OK
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-LOCK TABLES t3 WRITE, t2 WRITE, t4 WRITE, t1 WRITE;
-REPAIR TABLE t4;
-Table Op Msg_type Msg_text
-test.t4 repair note The storage engine for the table doesn't support repair
-REPAIR TABLE t2;
-Table Op Msg_type Msg_text
-test.t2 repair status OK
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-UNLOCK TABLES;
-#
-# Optimize
-#
-OPTIMIZE TABLE t4;
-Table Op Msg_type Msg_text
-test.t4 optimize note The storage engine for the table doesn't support optimize
-OPTIMIZE TABLE t2;
-Table Op Msg_type Msg_text
-test.t2 optimize status OK
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-LOCK TABLES t3 WRITE, t2 WRITE, t4 WRITE, t1 WRITE;
-OPTIMIZE TABLE t4;
-Table Op Msg_type Msg_text
-test.t4 optimize note The storage engine for the table doesn't support optimize
-OPTIMIZE TABLE t2;
-Table Op Msg_type Msg_text
-test.t2 optimize status Table is already up to date
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-UNLOCK TABLES;
-#
-# Checksum
-#
-CHECKSUM TABLE t4;
-Table Checksum
-test.t4 149057747
-CHECKSUM TABLE t2;
-Table Checksum
-test.t2 3700403066
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-LOCK TABLES t3 WRITE, t2 WRITE, t4 WRITE, t1 WRITE;
-CHECKSUM TABLE t4;
-Table Checksum
-test.t4 149057747
-CHECKSUM TABLE t2;
-Table Checksum
-test.t2 3700403066
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-UNLOCK TABLES;
-#
-# Insert delayed
-#
-INSERT DELAYED INTO t4 VALUES(44);
-DELETE FROM t4 WHERE c1 = 44;
-INSERT DELAYED INTO t3 VALUES(33);
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-33
-LOCK TABLES t3 WRITE, t2 WRITE, t4 WRITE, t1 WRITE;
-INSERT DELAYED INTO t4 VALUES(444);
-Got one of the listed errors
-INSERT DELAYED INTO t3 VALUES(333);
-Got one of the listed errors
-SELECT * FROM t4 ORDER BY c1;
-c1
-1
-2
-3
-4
-33
-UNLOCK TABLES;
-DROP TABLE t1, t2, t3, t4;
-#
-# Recursive inclusion of merge tables in their union clauses.
-#
-CREATE TABLE t1 (c1 INT, INDEX(c1));
-CREATE TABLE t2 (c1 INT, INDEX(c1)) ENGINE=MRG_MYISAM UNION=(t1)
-INSERT_METHOD=LAST;
-CREATE TABLE t3 (c1 INT, INDEX(c1)) ENGINE=MRG_MYISAM UNION=(t2,t1)
-INSERT_METHOD=LAST;
-ALTER TABLE t2 UNION=(t3,t1);
-SELECT * FROM t2;
-ERROR HY000: Table 't3' is differently defined or of non-MyISAM type or doesn't exist
-DROP TABLE t1, t2, t3;
-CREATE TABLE t1 (c1 INT) ENGINE= MyISAM;
-CREATE TABLE t2 (c1 INT) ENGINE= MyISAM;
-CREATE TABLE t3 (c1 INT) ENGINE= MRG_MYISAM UNION= (t1, t2);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-SELECT * FROM t3;
-c1
-1
-2
-TRUNCATE TABLE t1;
-SELECT * FROM t3;
-c1
-2
-DROP TABLE t1, t2, t3;
-CREATE TABLE t1 (id INTEGER, grp TINYINT, id_rev INTEGER);
-SET @rnd_max= 2147483647;
-set @@read_buffer_size=2*1024*1024;
-CREATE TABLE t2 SELECT * FROM t1;
-INSERT INTO t1 (id, grp, id_rev) SELECT id, grp, id_rev FROM t2;
-INSERT INTO t2 (id, grp, id_rev) SELECT id, grp, id_rev FROM t1;
-INSERT INTO t1 (id, grp, id_rev) SELECT id, grp, id_rev FROM t2;
-INSERT INTO t2 (id, grp, id_rev) SELECT id, grp, id_rev FROM t1;
-INSERT INTO t1 (id, grp, id_rev) SELECT id, grp, id_rev FROM t2;
-CREATE TABLE t3 (id INTEGER, grp TINYINT, id_rev INTEGER)
-ENGINE= MRG_MYISAM UNION= (t1, t2);
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-130
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-80
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-210
-connect con1,localhost,root,,;
-SELECT COUNT(DISTINCT a1.id) FROM t3 AS a1, t3 AS a2
-WHERE a1.id = a2.id GROUP BY a2.grp;
-connection default;
-TRUNCATE TABLE t1;
-connection con1;
-disconnect con1;
-connection default;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-0
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-80
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-80
-DROP TABLE t1, t2, t3;
-CREATE TABLE t1 (c1 INT) ENGINE=MyISAM;
-CREATE TABLE t2 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1) INSERT_METHOD=LAST;
-INSERT INTO t2 VALUES (1);
-SELECT * FROM t2;
-c1
-1
-LOCK TABLES t2 WRITE, t1 WRITE;
-FLUSH TABLES;
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-UNLOCK TABLES;
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-LOCK TABLES t2 WRITE, t1 WRITE;
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-UNLOCK TABLES;
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1, t2;
-CREATE TABLE t1 ( a INT ) ENGINE=MyISAM;
-CREATE TABLE m1 ( a INT ) ENGINE=MRG_MYISAM UNION=(t1);
-LOCK TABLES t1 WRITE, m1 WRITE;
-FLUSH TABLE t1;
-UNLOCK TABLES;
-DROP TABLE m1, t1;
-CREATE TABLE t1 ( a INT ) ENGINE=MyISAM;
-CREATE TABLE m1 ( a INT ) ENGINE=MRG_MYISAM UNION=(t1);
-LOCK TABLES m1 WRITE, t1 WRITE;
-FLUSH TABLE t1;
-UNLOCK TABLES;
-DROP TABLE m1, t1;
-CREATE TABLE t1 (c1 INT, c2 INT) ENGINE= MyISAM;
-CREATE TABLE t2 (c1 INT, c2 INT) ENGINE= MyISAM;
-CREATE TABLE t3 (c1 INT, c2 INT) ENGINE= MRG_MYISAM UNION(t1, t2);
-INSERT INTO t1 VALUES (1, 1);
-INSERT INTO t2 VALUES (2, 2);
-SELECT * FROM t3;
-c1 c2
-1 1
-2 2
-ALTER TABLE t1 ENGINE= MEMORY;
-INSERT INTO t1 VALUES (0, 0);
-SELECT * FROM t3;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DROP TABLE t1, t2, t3;
-CREATE TABLE t1 (c1 INT, KEY(c1));
-CREATE TABLE t2 (c1 INT, KEY(c1)) ENGINE=MRG_MYISAM UNION=(t1)
-INSERT_METHOD=FIRST;
-LOCK TABLE t1 WRITE, t2 WRITE;
-FLUSH TABLES t2, t1;
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status Table is already up to date
-FLUSH TABLES t1;
-UNLOCK TABLES;
-FLUSH TABLES;
-INSERT INTO t1 VALUES (1);
-LOCK TABLE t1 WRITE, t2 WRITE;
-FLUSH TABLES t2, t1;
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-FLUSH TABLES t1;
-UNLOCK TABLES;
-DROP TABLE t1, t2;
-CREATE TABLE t1 (ID INT) ENGINE=MYISAM;
-CREATE TABLE m1 (ID INT) ENGINE=MRG_MYISAM UNION=(t1) INSERT_METHOD=FIRST;
-INSERT INTO t1 VALUES ();
-INSERT INTO m1 VALUES ();
-LOCK TABLE t1 WRITE, m1 WRITE;
-FLUSH TABLES m1, t1;
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-FLUSH TABLES m1, t1;
-UNLOCK TABLES;
-DROP TABLE t1, m1;
-CREATE TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1) INSERT_METHOD=FIRST;
-SELECT table_schema, table_name, table_type, engine, version, row_format, table_comment FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'test' and TABLE_NAME='tm1';
-table_schema table_name table_type engine version row_format table_comment
-test tm1 BASE TABLE NULL NULL NULL Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-Warnings:
-Warning 1168 Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DROP TABLE tm1;
-CREATE TABLE t1(C1 INT, C2 INT, KEY C1(C1), KEY C2(C2)) ENGINE=MYISAM;
-CREATE TABLE t2(C1 INT, C2 INT, KEY C1(C1), KEY C2(C2)) ENGINE=MYISAM;
-CREATE TABLE t3(C1 INT, C2 INT, KEY C1(C1), KEY C2(C2)) ENGINE=MYISAM;
-CREATE TABLE t4(C1 INT, C2 INT, KEY C1(C1), KEY C2(C2))
-ENGINE=MRG_MYISAM UNION=(t1, t2, t3);
-INSERT INTO t1 VALUES (1,1), (1,2),(1,3), (1,4);
-INSERT INTO t2 VALUES (2,1), (2,2),(2,3), (2,4);
-INSERT INTO t3 VALUES (3,1), (3,2),(3,3), (3,4);
-EXPLAIN SELECT COUNT(*) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-EXPLAIN SELECT COUNT(*) FROM t4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-DROP TABLE t1, t2, t3, t4;
-CREATE TABLE t1(a INT, KEY(a));
-INSERT INTO t1 VALUES(0),(1),(2),(3),(4);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-CREATE TABLE m1(a INT, KEY(a)) ENGINE=MERGE UNION=(t1);
-SELECT CARDINALITY FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA='test' AND TABLE_NAME='m1';
-CARDINALITY
-5
-SELECT CARDINALITY FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA='test' AND TABLE_NAME='m1';
-CARDINALITY
-5
-SELECT CARDINALITY FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA='test' AND TABLE_NAME='m1';
-CARDINALITY
-5
-SELECT CARDINALITY FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA='test' AND TABLE_NAME='m1';
-CARDINALITY
-5
-DROP TABLE t1, m1;
-#
-# Bug #40675 MySQL 5.1 crash with index merge algorithm and Merge tables
-#
-# create MYISAM table t1 and insert values into it
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES(1);
-# create MYISAM table t2 and insert values into it
-CREATE TABLE t2(a INT, b INT, dummy CHAR(16) DEFAULT '', KEY(a), KEY(b));
-INSERT INTO t2(a,b) VALUES
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
-(1,2);
-# Create the merge table t3
-CREATE TABLE t3(a INT, b INT, dummy CHAR(16) DEFAULT '', KEY(a), KEY(b))
-ENGINE=MERGE UNION=(t2) INSERT_METHOD=FIRST;
-# Lock tables t1 and t3 for write
-LOCK TABLES t1 WRITE, t3 WRITE;
-# Insert values into the merge table t3
-INSERT INTO t3(a,b) VALUES(1,2);
-# select from the join of t2 and t3 (The merge table)
-SELECT t3.a FROM t1,t3 WHERE t3.b=2 AND t3.a=1;
-a
-1
-1
-# Unlock the tables
-UNLOCK TABLES;
-# drop the created tables
-DROP TABLE t1, t2, t3;
-# insert duplicate value in child table while merge table doesn't have key
-create table t1 (
-col1 int(10),
-primary key (col1)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-CREATE TABLE m1 (
-col1 int(10) NOT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(t1);
-insert into m1 (col1) values (1);
-insert into m1 (col1) values (1);
-ERROR 23000: Can't write; duplicate key in table 'm1'
-drop table m1, t1;
-#
-# Bug#45800 crash when replacing into a merge table and there is a duplicate
-#
-# Replace duplicate value in child table when merge table doesn't have key
-CREATE TABLE t1 (c1 INT PRIMARY KEY) ENGINE=MyISAM;
-CREATE TABLE m1 (c1 INT NOT NULL) ENGINE=MRG_MyISAM INSERT_METHOD=LAST UNION=(t1);
-INSERT INTO m1 VALUES (666);
-SELECT * FROM m1;
-c1
-666
-# insert the duplicate value into the merge table
-REPLACE INTO m1 VALUES (666);
-SELECT * FROM m1;
-c1
-666
-DROP TABLE m1, t1;
-# Insert... on duplicate key update (with duplicate values in the table)
-CREATE TABLE t1 (c1 INT PRIMARY KEY) ENGINE=MyISAM;
-CREATE TABLE m1 (c1 INT NOT NULL) ENGINE=MRG_MyISAM INSERT_METHOD=LAST UNION=(t1);
-INSERT INTO m1 VALUES (666);
-SELECT * FROM m1;
-c1
-666
-# insert the duplicate value into the merge table
-INSERT INTO m1 VALUES (666) ON DUPLICATE KEY UPDATE c1=c1+1;
-SELECT * FROM m1;
-c1
-667
-DROP TABLE m1, t1;
-# Insert duplicate value on MERGE table, where, MERGE has a key but MyISAM has more keys
-CREATE TABLE t1 (c1 INT, c2 INT, UNIQUE (c1), UNIQUE (c2));
-CREATE TABLE m1 (c1 INT, c2 INT, UNIQUE (c1)) ENGINE=MRG_MyISAM INSERT_METHOD=LAST UNION=(t1);
-INSERT INTO m1 VALUES (1,2);
-# insert the duplicate value into the merge table
-INSERT INTO m1 VALUES (3,2);
-ERROR 23000: Can't write; duplicate key in table 'm1'
-DROP TABLE m1,t1;
-# Try to define MERGE and MyISAM with keys on different columns
-CREATE TABLE t1 (c1 INT, c2 INT, UNIQUE (c1));
-CREATE TABLE m1 (c1 INT, c2 INT, UNIQUE (c2)) ENGINE=MRG_MyISAM INSERT_METHOD=LAST UNION=(t1);
-# Try accessing the merge table for inserts (error occurs)
-INSERT INTO m1 VALUES (1,2);
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-INSERT INTO m1 VALUES (1,4);
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DROP TABLE m1,t1;
-CREATE TABLE t1 (
-col1 INT(10)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-CREATE VIEW v1 as SELECT * FROM t1;
-CREATE TABLE m1 (
-col1 INT(10)
-)ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(v1);
-#Select should detect that the child table is a view and fail.
-SELECT * FROM m1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DROP VIEW v1;
-DROP TABLE m1, t1;
-#
-# Bug #45796: invalid memory reads and writes when altering merge and
-# base tables
-#
-CREATE TABLE t1(c1 INT) ENGINE=MyISAM;
-CREATE TABLE m1(c1 INT) ENGINE=MERGE UNION=(t1);
-ALTER TABLE m1 ADD INDEX idx_c1(c1);
-SELECT * FROM m1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-ALTER TABLE t1 ADD INDEX idx_c1(c1);
-SELECT * FROM m1;
-c1
-DROP TABLE m1;
-DROP TABLE t1;
-#
-# Bug45781 infinite hang/crash in "opening tables" after handler tries to
-# open merge table
-#
-DROP TABLE IF EXISTS m1,t1;
-CREATE TABLE t1(a int)engine=myisam;
-CREATE TABLE t2(a int)engine=myisam;
-CREATE TABLE t3(a int)engine=myisam;
-CREATE TABLE t4(a int)engine=myisam;
-CREATE TABLE t5(a int)engine=myisam;
-CREATE TABLE t6(a int)engine=myisam;
-CREATE TABLE t7(a int)engine=myisam;
-CREATE TABLE m1(a int)engine=merge union=(t1,t2,t3,t4,t5,t6,t7);
-SELECT 1 FROM m1;
-1
-HANDLER m1 OPEN;
-ERROR HY000: Storage engine MRG_MyISAM of the table `test`.`m1` doesn't have this option
-DROP TABLE m1,t1,t2,t3,t4,t5,t6,t7;
-SELECT 1 FROM m1;
-ERROR 42S02: Table 'test.m1' doesn't exist
-#
-# Bug #46614: Assertion in show_create_trigger()
-#
-CREATE TABLE t1(a int);
-CREATE TABLE t2(a int);
-CREATE TABLE t3(a int) ENGINE = MERGE UNION(t1, t2);
-CREATE TRIGGER tr1 AFTER INSERT ON t3 FOR EACH ROW CALL foo();
-SHOW CREATE TRIGGER tr1;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-tr1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER tr1 AFTER INSERT ON t3 FOR EACH ROW CALL foo() latin1 latin1_swedish_ci latin1_swedish_ci #
-DROP TRIGGER tr1;
-DROP TABLE t1, t2, t3;
-#
-# BUG#48265 - MRG_MYISAM problem (works in 5.0.85, does't work in 5.1.40)
-#
-CREATE DATABASE `test/1`;
-CREATE TABLE `test/1`.`t/1`(a INT);
-CREATE TABLE m1(a INT) ENGINE=MERGE UNION=(`test/1`.`t/1`);
-SELECT * FROM m1;
-a
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TABLE `m1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`test/1`.`t/1`)
-DROP TABLE m1;
-CREATE TABLE `test/1`.m1(a INT) ENGINE=MERGE UNION=(`test/1`.`t/1`);
-SELECT * FROM `test/1`.m1;
-a
-SHOW CREATE TABLE `test/1`.m1;
-Table Create Table
-m1 CREATE TABLE `m1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t/1`)
-DROP TABLE `test/1`.m1;
-DROP TABLE `test/1`.`t/1`;
-CREATE TEMPORARY TABLE `test/1`.`t/1`(a INT);
-CREATE TEMPORARY TABLE m1(a INT) ENGINE=MERGE UNION=(`test/1`.`t/1`);
-SELECT * FROM m1;
-a
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TEMPORARY TABLE `m1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`test/1`.`t/1`)
-DROP TABLE m1;
-CREATE TEMPORARY TABLE `test/1`.m1(a INT) ENGINE=MERGE UNION=(`test/1`.`t/1`);
-SELECT * FROM `test/1`.m1;
-a
-SHOW CREATE TABLE `test/1`.m1;
-Table Create Table
-m1 CREATE TEMPORARY TABLE `m1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t/1`)
-DROP TABLE `test/1`.m1;
-DROP TABLE `test/1`.`t/1`;
-DROP DATABASE `test/1`;
-CREATE TABLE `t@1`(a INT);
-SELECT * FROM m1;
-a
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TABLE `m1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t@1`)
-DROP TABLE `t@1`;
-CREATE DATABASE `test@1`;
-CREATE TABLE `test@1`.`t@1`(a INT);
-FLUSH TABLE m1;
-SELECT * FROM m1;
-a
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TABLE `m1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`test@1`.`t@1`)
-DROP TABLE m1;
-DROP TABLE `test@1`.`t@1`;
-DROP DATABASE `test@1`;
-#
-# Bug#51494c rash with join, explain and 'sounds like' operator
-#
-CREATE TABLE t1 (a INT) ENGINE=MYISAM;
-INSERT INTO t1 VALUES(1);
-CREATE TABLE t2 (b INT NOT NULL,c INT,d INT,e BLOB NOT NULL,
-KEY idx0 (d, c)) ENGINE=MERGE;
-EXPLAIN SELECT * FROM t1 NATURAL RIGHT JOIN
-t2 WHERE b SOUNDS LIKE e AND d = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-DROP TABLE t2, t1;
-#
-# Bug#46339 - crash on REPAIR TABLE merge table USE_FRM
-#
-DROP TABLE IF EXISTS m1, t1;
-CREATE TABLE t1 (c1 INT) ENGINE=MYISAM;
-CREATE TABLE m1 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1) INSERT_METHOD=LAST;
-LOCK TABLE m1 READ;
-REPAIR TABLE m1 USE_FRM;
-Table Op Msg_type Msg_text
-test.m1 repair Error Table 'm1' was locked with a READ lock and can't be updated
-test.m1 repair status Operation failed
-UNLOCK TABLES;
-REPAIR TABLE m1 USE_FRM;
-Table Op Msg_type Msg_text
-test.m1 repair note The storage engine for the table doesn't support repair
-DROP TABLE m1,t1;
-CREATE TABLE m1 (f1 BIGINT) ENGINE=MRG_MyISAM UNION(t1);
-REPAIR TABLE m1 USE_FRM;
-Table Op Msg_type Msg_text
-test.m1 repair Warning Can't open table
-test.m1 repair error Corrupt
-CREATE TABLE t1 (f1 BIGINT) ENGINE = MyISAM;
-REPAIR TABLE m1 USE_FRM;
-Table Op Msg_type Msg_text
-test.m1 repair note The storage engine for the table doesn't support repair
-REPAIR TABLE m1;
-Table Op Msg_type Msg_text
-test.m1 repair note The storage engine for the table doesn't support repair
-DROP TABLE m1, t1;
-CREATE TEMPORARY TABLE m1 (f1 BIGINT) ENGINE=MRG_MyISAM UNION(t1);
-REPAIR TABLE m1 USE_FRM;
-Table Op Msg_type Msg_text
-test.m1 repair Error Table 'test.m1' doesn't exist
-test.m1 repair error Corrupt
-CREATE TEMPORARY TABLE t1 (f1 BIGINT) ENGINE=MyISAM;
-REPAIR TABLE m1 USE_FRM;
-Table Op Msg_type Msg_text
-m1 repair error Cannot repair temporary table from .frm file
-REPAIR TABLE m1;
-Table Op Msg_type Msg_text
-test.m1 repair note The storage engine for the table doesn't support repair
-DROP TABLE m1, t1;
-create temporary table t1_temp(i int);
-create temporary table tm_temp_temp (i int) engine=merge union=(t1_temp) insert_method=last;
-alter table tm_temp_temp insert_method=first;
-check table tm_temp_temp;
-Table Op Msg_type Msg_text
-test.tm_temp_temp check status OK
-drop temporary table t1_temp, tm_temp_temp;
-End of 5.1 tests
-#
-# MDEV-4277: Crash inside mi_killed_in_mariadb() with myisammrg
-#
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 ( i int ) engine=myisam;
-insert into t2 values (1),(2);
-create table t3 (a int, b int, filler char(100), key(a), key(b)) engine=myisam;
-create table t4 like t3;
-insert into t3
-select A.a+10*B.a+100*C.a,
-A.a+10*B.a+100*C.a,
-'filler-data-FILLER-DATA-qqq'
-from t1 A, t1 B, t1 C where C.a < 5;
-insert into t4
-select A.a+10*B.a+100*C.a,
-A.a+10*B.a+100*C.a,
-'filler-data-FILLER-DATA-qqq'
-from t1 A, t1 B, t1 C where C.a >= 5;
-create table t5 like t3;
-alter table t5 engine=merge;
-alter table t5 union(t3, t4);
-update t5 set b=999, a=999 where b>950;
-explain
-select * from t2, t5 where t5.a=999 and t5.b=999;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2
-1 SIMPLE t5 index_merge a,b a,b 5,5 NULL 6 Using intersect(a,b); Using where; Using join buffer (flat, BNL join)
-select * from t2, t5 where t5.a=999 and t5.b=999;
-i a b filler
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-1 999 999 filler-data-FILLER-DATA-qqq
-2 999 999 filler-data-FILLER-DATA-qqq
-drop table t5;
-drop table t1,t2,t3,t4;
-End of 5.3 tests
-CREATE TABLE t1(a INT, KEY(a)) ENGINE=merge;
-SELECT MAX(a) FROM t1;
-MAX(a)
-NULL
-DROP TABLE t1;
-#
-# An additional test case for Bug#27430 Crash in subquery code
-# when in PS and table DDL changed after PREPARE
-#
-# Test merge table with too many merge children.
-#
-drop table if exists t_parent;
-set @save_table_open_cache=@@global.table_open_cache;
-#
-# Set @@global.table_open_cache to minimum
-#
-set @@global.table_open_cache=400;
-select @@table_open_cache;
-@@table_open_cache
-400
-set @a=null;
-#
-# Create 400 merge children
-#
-set @a=concat("create table t_parent (a int) union(", @a,
-") insert_method=first engine=mrg_myisam");
-prepare stmt from @a;
-execute stmt;
-prepare stmt from "select * from t_parent";
-execute stmt;
-ERROR HY000: Prepared statement needs to be re-prepared
-execute stmt;
-ERROR HY000: Prepared statement needs to be re-prepared
-execute stmt;
-ERROR HY000: Prepared statement needs to be re-prepared
-deallocate prepare stmt;
-#
-# Create merge parent
-#
-#
-# Cleanup
-#
-drop table t_parent;
-set @@global.table_open_cache=@save_table_open_cache;
-DROP DATABASE IF EXISTS mysql_test1;
-CREATE DATABASE mysql_test1;
-CREATE TABLE t1 ... DATA DIRECTORY=... INDEX DIRECTORY=...
-CREATE TABLE mysql_test1.t2 ... DATA DIRECTORY=... INDEX DIRECTORY=...
-CREATE TABLE m1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1,mysql_test1.t2)
-INSERT_METHOD=LAST;
-INSERT INTO t1 VALUES (1);
-INSERT INTO mysql_test1.t2 VALUES (2);
-SELECT * FROM m1;
-c1
-1
-2
-DROP TABLE t1, mysql_test1.t2, m1;
-DROP DATABASE mysql_test1;
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE t2 (c1 INT);
-INSERT INTO t1 (c1) VALUES (1);
-CREATE TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1,t2) INSERT_METHOD=FIRST;
-CREATE TABLE t3 (c1 INT);
-INSERT INTO t3 (c1) VALUES (1);
-CREATE FUNCTION f1() RETURNS INT RETURN (SELECT MAX(c1) FROM t3);
-CREATE VIEW v1 AS SELECT foo.c1 c1, f1() c2, bar.c1 c3, f1() c4
-FROM tm1 foo, tm1 bar, t3;
-SELECT * FROM v1;
-c1 c2 c3 c4
-1 1 1 1
-DROP FUNCTION f1;
-DROP VIEW v1;
-DROP TABLE tm1, t1, t2, t3;
-CREATE TEMPORARY TABLE t1 (c1 INT);
-CREATE TEMPORARY TABLE t2 (c1 INT);
-CREATE TEMPORARY TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1,t2)
-INSERT_METHOD=FIRST;
-CREATE FUNCTION f1() RETURNS INT RETURN (SELECT MAX(c1) FROM tm1);
-INSERT INTO tm1 (c1) VALUES (1);
-SELECT f1() FROM (SELECT 1) AS c1;
-f1()
-1
-DROP FUNCTION f1;
-DROP TABLE tm1, t1, t2;
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-CREATE TEMPORARY TABLE t1 (c1 INT);
-CREATE TEMPORARY TABLE t2 (c1 INT);
-CREATE TEMPORARY TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1,t2);
-INSERT INTO t1 (c1) VALUES (1);
-RETURN (SELECT MAX(c1) FROM tm1);
-END|
-SELECT f1() FROM (SELECT 1 UNION SELECT 1) c1;
-f1()
-1
-DROP FUNCTION f1;
-DROP TABLE tm1, t1, t2;
-CREATE TABLE t1 (c1 INT) ENGINE=MyISAM;
-CREATE TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1) INSERT_METHOD=LAST;
-INSERT INTO tm1 VALUES (1);
-SELECT * FROM tm1;
-c1
-1
-DROP TABLE tm1, t1;
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-INSERT INTO tm1 VALUES (1);
-RETURN (SELECT MAX(c1) FROM tm1);
-END|
-CREATE TABLE t1 (c1 INT) ENGINE=MyISAM;
-CREATE TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1) INSERT_METHOD=LAST;
-SELECT f1();
-f1()
-1
-DROP FUNCTION f1;
-DROP TABLE tm1, t1;
-CREATE TABLE t1 (c1 INT) ENGINE=MyISAM;
-CREATE TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1) INSERT_METHOD=LAST;
-LOCK TABLE tm1 WRITE;
-INSERT INTO tm1 VALUES (1);
-SELECT * FROM tm1;
-c1
-1
-UNLOCK TABLES;
-DROP TABLE tm1, t1;
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-INSERT INTO tm1 VALUES (1);
-RETURN (SELECT MAX(c1) FROM tm1);
-END|
-CREATE TABLE t1 (c1 INT) ENGINE=MyISAM;
-CREATE TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1) INSERT_METHOD=LAST;
-LOCK TABLE tm1 WRITE;
-SELECT f1();
-f1()
-1
-UNLOCK TABLES;
-DROP FUNCTION f1;
-DROP TABLE tm1, t1;
-CREATE TABLE t1 (c1 INT) ENGINE=MyISAM;
-CREATE TABLE t2 (c1 INT) ENGINE=MyISAM;
-CREATE TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1) INSERT_METHOD=LAST;
-CREATE TRIGGER t2_ai AFTER INSERT ON t2
-FOR EACH ROW INSERT INTO tm1 VALUES(11);
-LOCK TABLE t2 WRITE;
-INSERT INTO t2 VALUES (2);
-SELECT * FROM tm1;
-c1
-11
-SELECT * FROM t2;
-c1
-2
-UNLOCK TABLES;
-DROP TRIGGER t2_ai;
-DROP TABLE tm1, t1, t2;
-CREATE TEMPORARY TABLE t1 (c1 INT) ENGINE=MyISAM;
-CREATE TEMPORARY TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1)
-INSERT_METHOD=LAST;
-INSERT INTO tm1 VALUES (1);
-SELECT * FROM tm1;
-c1
-1
-DROP TABLE tm1, t1;
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-INSERT INTO tm1 VALUES (1);
-RETURN (SELECT MAX(c1) FROM tm1);
-END|
-CREATE TEMPORARY TABLE t1 (c1 INT) ENGINE=MyISAM;
-CREATE TEMPORARY TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1)
-INSERT_METHOD=LAST;
-SELECT f1();
-f1()
-1
-DROP FUNCTION f1;
-DROP TABLE tm1, t1;
-CREATE TEMPORARY TABLE t1 (c1 INT) ENGINE=MyISAM;
-CREATE TEMPORARY TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1)
-INSERT_METHOD=LAST;
-CREATE TABLE t9 (c1 INT) ENGINE=MyISAM;
-LOCK TABLE t9 WRITE;
-INSERT INTO tm1 VALUES (1);
-SELECT * FROM tm1;
-c1
-1
-UNLOCK TABLES;
-DROP TABLE tm1, t1, t9;
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-INSERT INTO tm1 VALUES (1);
-RETURN (SELECT MAX(c1) FROM tm1);
-END|
-CREATE TEMPORARY TABLE t1 (c1 INT) ENGINE=MyISAM;
-CREATE TEMPORARY TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1)
-INSERT_METHOD=LAST;
-CREATE TABLE t9 (c1 INT) ENGINE=MyISAM;
-LOCK TABLE t9 WRITE;
-SELECT f1();
-f1()
-1
-UNLOCK TABLES;
-DROP FUNCTION f1;
-DROP TABLE tm1, t1, t9;
-CREATE TEMPORARY TABLE t1 (c1 INT) ENGINE=MyISAM;
-CREATE TEMPORARY TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1)
-INSERT_METHOD=LAST;
-CREATE TABLE t2 (c1 INT) ENGINE=MyISAM;
-CREATE TRIGGER t2_ai AFTER INSERT ON t2
-FOR EACH ROW INSERT INTO tm1 VALUES(11);
-LOCK TABLE t2 WRITE;
-INSERT INTO t2 VALUES (2);
-SELECT * FROM tm1;
-c1
-11
-SELECT * FROM t2;
-c1
-2
-UNLOCK TABLES;
-DROP TRIGGER t2_ai;
-DROP TABLE tm1, t1, t2;
-#
-# Don't allow an update of a MERGE child in a trigger
-# if the table's already being modified by the main
-# statement.
-#
-CREATE TABLE t1 (c1 INT) ENGINE=MyISAM;
-CREATE TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1)
-INSERT_METHOD=LAST;
-CREATE TRIGGER tm1_ai AFTER INSERT ON tm1
-FOR EACH ROW INSERT INTO t1 VALUES(11);
-LOCK TABLE tm1 WRITE, t1 WRITE;
-INSERT INTO tm1 VALUES (1);
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-SELECT * FROM tm1;
-c1
-1
-UNLOCK TABLES;
-LOCK TABLE t1 WRITE, tm1 WRITE;
-INSERT INTO tm1 VALUES (1);
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-SELECT * FROM tm1;
-c1
-1
-1
-UNLOCK TABLES;
-DROP TRIGGER tm1_ai;
-DROP TABLE tm1, t1;
-#
-# Don't select MERGE child when trying to get a prelocked table.
-#
-# Due to a limitation demonstrated by the previous test
-# we can no longer use a write-locked prelocked table.
-# The test is kept for historical purposes.
-#
-CREATE TABLE t1 (c1 INT) ENGINE=MyISAM;
-CREATE TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1)
-INSERT_METHOD=LAST;
-CREATE TRIGGER tm1_ai AFTER INSERT ON tm1
-FOR EACH ROW SELECT max(c1) FROM t1 INTO @var;
-LOCK TABLE tm1 WRITE, t1 WRITE;
-INSERT INTO tm1 VALUES (1);
-SELECT * FROM tm1;
-c1
-1
-UNLOCK TABLES;
-LOCK TABLE t1 WRITE, tm1 WRITE;
-INSERT INTO tm1 VALUES (1);
-SELECT * FROM tm1;
-c1
-1
-1
-UNLOCK TABLES;
-DROP TRIGGER tm1_ai;
-DROP TABLE tm1, t1;
-CREATE TABLE t1 (c1 INT) ENGINE=MyISAM;
-CREATE TABLE t2 (c1 INT) ENGINE=MyISAM;
-CREATE TABLE t3 (c1 INT) ENGINE=MyISAM;
-CREATE TABLE t4 (c1 INT) ENGINE=MyISAM;
-CREATE TABLE t5 (c1 INT) ENGINE=MyISAM;
-CREATE TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1,t2,t3,t4,t5)
-INSERT_METHOD=LAST;
-CREATE TRIGGER t2_au AFTER UPDATE ON t2
-FOR EACH ROW SELECT MAX(c1) FROM t1 INTO @var;
-CREATE FUNCTION f1() RETURNS INT
-RETURN (SELECT MAX(c1) FROM t4);
-LOCK TABLE tm1 WRITE, t1 WRITE, t2 WRITE, t3 WRITE, t4 WRITE, t5 WRITE;
-INSERT INTO t1 VALUES(1);
-INSERT INTO t2 VALUES(2);
-INSERT INTO t3 VALUES(3);
-INSERT INTO t4 VALUES(4);
-INSERT INTO t5 VALUES(5);
-connect con1,localhost,root,,;
-UPDATE t2, tm1 SET t2.c1=f1();
-connection default;
-FLUSH TABLES;
-FLUSH TABLES;
-UNLOCK TABLES;
-connection con1;
-disconnect con1;
-connection default;
-SELECT * FROM tm1;
-c1
-1
-4
-3
-4
-5
-DROP TRIGGER t2_au;
-DROP FUNCTION f1;
-DROP TABLE tm1, t1, t2, t3, t4, t5;
-#
-# Bug#47633 - assert in ha_myisammrg::info during OPTIMIZE
-#
-CREATE TEMPORARY TABLE t1 (c1 INT);
-ALTER TABLE t1 ENGINE=MERGE UNION(t_not_exists,t1);
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize Error Table 'test.t_not_exists' doesn't exist
-test.t1 optimize Error Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-test.t1 optimize error Corrupt
-DROP TABLE t1;
-#
-# Bug#36171 - CREATE TEMPORARY TABLE and MERGE engine
-# More tests with TEMPORARY MERGE table and permanent children.
-# First without locked tables.
-#
-DROP TABLE IF EXISTS t1, t2, t3, t4, m1, m2;
-#
-CREATE TABLE t1 (c1 INT, c2 INT) ENGINE=MyISAM;
-CREATE TABLE t2 (c1 INT, c2 INT) ENGINE=MyISAM;
-CREATE TEMPORARY TABLE m1 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TEMPORARY TABLE `m1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-SELECT * FROM m1;
-c1 c2
-INSERT INTO t1 VALUES (111, 121);
-INSERT INTO m1 VALUES (211, 221);
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-SELECT * FROM t1;
-c1 c2
-111 121
-SELECT * FROM t2;
-c1 c2
-211 221
-#
-ALTER TABLE m1 RENAME m2;
-SHOW CREATE TABLE m2;
-Table Create Table
-m2 CREATE TEMPORARY TABLE `m2` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-SELECT * FROM m2;
-c1 c2
-111 121
-211 221
-#
-CREATE TEMPORARY TABLE m1 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-ALTER TABLE m2 RENAME m1;
-ERROR 42S01: Table 'm1' already exists
-DROP TABLE m1;
-ALTER TABLE m2 RENAME m1;
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TEMPORARY TABLE `m1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-#
-ALTER TABLE m1 ADD COLUMN c3 INT;
-INSERT INTO m1 VALUES (212, 222, 232);
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-SELECT * FROM m1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-ALTER TABLE t1 ADD COLUMN c3 INT;
-ALTER TABLE t2 ADD COLUMN c3 INT;
-INSERT INTO m1 VALUES (212, 222, 232);
-SELECT * FROM m1;
-c1 c2 c3
-111 121 NULL
-211 221 NULL
-212 222 232
-#
-ALTER TABLE m1 DROP COLUMN c3;
-INSERT INTO m1 VALUES (213, 223);
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-SELECT * FROM m1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-ALTER TABLE t1 DROP COLUMN c3;
-ALTER TABLE t2 DROP COLUMN c3;
-INSERT INTO m1 VALUES (213, 223);
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-#
-CREATE TABLE t3 (c1 INT, c2 INT) ENGINE=MyISAM;
-ALTER TABLE m1 UNION=(t1,t2,t3);
-INSERT INTO m1 VALUES (311, 321);
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-311 321
-SELECT * FROM t1;
-c1 c2
-111 121
-SELECT * FROM t2;
-c1 c2
-211 221
-212 222
-213 223
-SELECT * FROM t3;
-c1 c2
-311 321
-#
-CREATE TEMPORARY TABLE t4 (c1 INT, c2 INT) ENGINE=MyISAM;
-ALTER TABLE m1 UNION=(t1,t2,t3,t4);
-INSERT INTO m1 VALUES (411, 421);
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-311 321
-411 421
-SELECT * FROM t1;
-c1 c2
-111 121
-SELECT * FROM t2;
-c1 c2
-211 221
-212 222
-213 223
-SELECT * FROM t3;
-c1 c2
-311 321
-SELECT * FROM t4;
-c1 c2
-411 421
-#
-ALTER TABLE m1 ENGINE=MyISAM;
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TEMPORARY TABLE `m1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO m1 VALUES (511, 521);
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-311 321
-411 421
-511 521
-#
-ALTER TABLE m1 ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-SELECT * FROM t1;
-c1 c2
-111 121
-SELECT * FROM t2;
-c1 c2
-211 221
-212 222
-213 223
-#
-CREATE TEMPORARY TABLE t1 (c1 INT, c2 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (611, 621);
-SELECT * FROM m1;
-c1 c2
-611 621
-211 221
-212 222
-213 223
-DROP TABLE t1;
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-#
-#
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TEMPORARY TABLE `m1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-#
-CREATE TABLE m2 SELECT * FROM m1;
-SHOW CREATE TABLE m2;
-Table Create Table
-m2 CREATE TABLE `m2` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM m2;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-DROP TABLE m2;
-#
-CREATE TEMPORARY TABLE m2 SELECT * FROM m1;
-SHOW CREATE TABLE m2;
-Table Create Table
-m2 CREATE TEMPORARY TABLE `m2` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM m2;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-DROP TABLE m2;
-#
-CREATE TABLE m2 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t3,t4)
-INSERT_METHOD=LAST;
-SELECT * FROM m2;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DROP TABLE m2;
-#
-CREATE TABLE m2 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t3,t4)
-INSERT_METHOD=LAST SELECT * FROM m1;
-ERROR HY000: 'test.m2' is not of type 'BASE TABLE'
-#
-CREATE TEMPORARY TABLE m2 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t3,t4)
-INSERT_METHOD=LAST SELECT * FROM m1;
-ERROR HY000: 'test.m2' is not of type 'BASE TABLE'
-#
-CREATE TABLE m2 LIKE m1;
-SHOW CREATE TABLE m2;
-Table Create Table
-m2 CREATE TABLE `m2` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-SELECT * FROM m2;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-INSERT INTO m2 SELECT * FROM m1;
-SELECT * FROM m2;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-111 121
-211 221
-212 222
-213 223
-DROP TABLE m2;
-#
-CREATE TEMPORARY TABLE m2 LIKE m1;
-SHOW CREATE TABLE m2;
-Table Create Table
-m2 CREATE TEMPORARY TABLE `m2` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-SELECT * FROM m2;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-111 121
-211 221
-212 222
-213 223
-INSERT INTO m2 SELECT * FROM m1;
-SELECT * FROM m2;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-111 121
-211 221
-212 222
-213 223
-111 121
-211 221
-212 222
-213 223
-111 121
-211 221
-212 222
-213 223
-DROP TABLE m2;
-#
-CREATE TEMPORARY TABLE m2 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t3,t4)
-INSERT_METHOD=LAST;
-INSERT INTO m2 SELECT * FROM m1;
-SELECT * FROM m2;
-c1 c2
-311 321
-411 421
-111 121
-211 221
-212 222
-213 223
-111 121
-211 221
-212 222
-213 223
-111 121
-211 221
-212 222
-213 223
-111 121
-211 221
-212 222
-213 223
-#
-#
-LOCK TABLE m1 WRITE, m2 WRITE;
-SELECT * FROM m1,m2 WHERE m1.c1=m2.c1;
-c1 c2 c1 c2
-111 121 111 121
-111 121 111 121
-111 121 111 121
-111 121 111 121
-211 221 211 221
-211 221 211 221
-211 221 211 221
-211 221 211 221
-212 222 212 222
-212 222 212 222
-212 222 212 222
-212 222 212 222
-213 223 213 223
-213 223 213 223
-213 223 213 223
-213 223 213 223
-111 121 111 121
-111 121 111 121
-111 121 111 121
-111 121 111 121
-211 221 211 221
-211 221 211 221
-211 221 211 221
-211 221 211 221
-212 222 212 222
-212 222 212 222
-212 222 212 222
-212 222 212 222
-213 223 213 223
-213 223 213 223
-213 223 213 223
-213 223 213 223
-111 121 111 121
-111 121 111 121
-111 121 111 121
-111 121 111 121
-211 221 211 221
-211 221 211 221
-211 221 211 221
-211 221 211 221
-212 222 212 222
-212 222 212 222
-212 222 212 222
-212 222 212 222
-213 223 213 223
-213 223 213 223
-213 223 213 223
-213 223 213 223
-111 121 111 121
-111 121 111 121
-111 121 111 121
-111 121 111 121
-211 221 211 221
-211 221 211 221
-211 221 211 221
-211 221 211 221
-212 222 212 222
-212 222 212 222
-212 222 212 222
-212 222 212 222
-213 223 213 223
-213 223 213 223
-213 223 213 223
-213 223 213 223
-UNLOCK TABLES;
-DROP TABLE t1, t2, t3, t4, m1, m2;
-#
-# Bug#36171 - CREATE TEMPORARY TABLE and MERGE engine
-# More tests with TEMPORARY MERGE table and permanent children.
-# (continued) Now the same with locked table.
-#
-CREATE TABLE t1 (c1 INT, c2 INT) ENGINE=MyISAM;
-CREATE TABLE t2 (c1 INT, c2 INT) ENGINE=MyISAM;
-CREATE TEMPORARY TABLE m1 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TEMPORARY TABLE `m1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-SELECT * FROM m1;
-c1 c2
-INSERT INTO t1 VALUES (111, 121);
-INSERT INTO m1 VALUES (211, 221);
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-SELECT * FROM t1;
-c1 c2
-111 121
-SELECT * FROM t2;
-c1 c2
-211 221
-#
-LOCK TABLE m1 WRITE, t1 WRITE, t2 WRITE;
-#
-ALTER TABLE m1 RENAME m2;
-SHOW CREATE TABLE m2;
-Table Create Table
-m2 CREATE TEMPORARY TABLE `m2` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-SELECT * FROM m2;
-c1 c2
-111 121
-211 221
-#
-CREATE TEMPORARY TABLE m1 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-ALTER TABLE m2 RENAME m1;
-ERROR 42S01: Table 'm1' already exists
-DROP TABLE m1;
-ALTER TABLE m2 RENAME m1;
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TEMPORARY TABLE `m1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-#
-ALTER TABLE m1 ADD COLUMN c3 INT;
-INSERT INTO m1 VALUES (212, 222, 232);
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-SELECT * FROM m1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-ALTER TABLE t1 ADD COLUMN c3 INT;
-ALTER TABLE t2 ADD COLUMN c3 INT;
-INSERT INTO m1 VALUES (212, 222, 232);
-SELECT * FROM m1;
-c1 c2 c3
-111 121 NULL
-211 221 NULL
-212 222 232
-#
-ALTER TABLE m1 DROP COLUMN c3;
-INSERT INTO m1 VALUES (213, 223);
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-SELECT * FROM m1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-ALTER TABLE t1 DROP COLUMN c3;
-ALTER TABLE t2 DROP COLUMN c3;
-INSERT INTO m1 VALUES (213, 223);
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-#
-UNLOCK TABLES;
-CREATE TABLE t3 (c1 INT, c2 INT) ENGINE=MyISAM;
-ALTER TABLE m1 UNION=(t1,t2,t3);
-LOCK TABLE m1 WRITE;
-INSERT INTO m1 VALUES (311, 321);
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-311 321
-SELECT * FROM t1;
-c1 c2
-111 121
-SELECT * FROM t2;
-c1 c2
-211 221
-212 222
-213 223
-SELECT * FROM t3;
-c1 c2
-311 321
-#
-CREATE TEMPORARY TABLE t4 (c1 INT, c2 INT) ENGINE=MyISAM;
-ALTER TABLE m1 UNION=(t1,t2,t3,t4);
-INSERT INTO m1 VALUES (411, 421);
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-311 321
-411 421
-SELECT * FROM t1;
-c1 c2
-111 121
-SELECT * FROM t2;
-c1 c2
-211 221
-212 222
-213 223
-SELECT * FROM t3;
-c1 c2
-311 321
-SELECT * FROM t4;
-c1 c2
-411 421
-#
-ALTER TABLE m1 ENGINE=MyISAM;
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TEMPORARY TABLE `m1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO m1 VALUES (511, 521);
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-311 321
-411 421
-511 521
-#
-ALTER TABLE m1 ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-SELECT * FROM t1;
-c1 c2
-111 121
-SELECT * FROM t2;
-c1 c2
-211 221
-212 222
-213 223
-#
-CREATE TEMPORARY TABLE t1 (c1 INT, c2 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (611, 621);
-SELECT * FROM m1;
-c1 c2
-611 621
-211 221
-212 222
-213 223
-DROP TABLE t1;
-SELECT * FROM m1;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-#
-#
-SHOW CREATE TABLE m1;
-Table Create Table
-m1 CREATE TEMPORARY TABLE `m1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-CREATE TABLE m2 SELECT * FROM m1;
-ERROR HY000: Table 'm2' was not locked with LOCK TABLES
-#
-CREATE TEMPORARY TABLE m2 SELECT * FROM m1;
-SHOW CREATE TABLE m2;
-Table Create Table
-m2 CREATE TEMPORARY TABLE `m2` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM m2;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-DROP TABLE m2;
-#
-CREATE TEMPORARY TABLE m2 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t3,t4)
-INSERT_METHOD=LAST;
-SELECT * FROM m2;
-c1 c2
-311 321
-411 421
-LOCK TABLE m1 WRITE, m2 WRITE;
-UNLOCK TABLES;
-DROP TABLE m2;
-LOCK TABLE m1 WRITE;
-#
-# ER_TABLE_NOT_LOCKED is returned in ps-protocol
-CREATE TABLE m2 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t3,t4)
-INSERT_METHOD=LAST SELECT * FROM m1;
-Got one of the listed errors
-#
-CREATE TEMPORARY TABLE m2 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t3,t4)
-INSERT_METHOD=LAST SELECT * FROM m1;
-ERROR HY000: 'test.m2' is not of type 'BASE TABLE'
-#
-CREATE TEMPORARY TABLE m2 LIKE m1;
-SHOW CREATE TABLE m2;
-Table Create Table
-m2 CREATE TEMPORARY TABLE `m2` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-LOCK TABLE m1 WRITE, m2 WRITE;
-SHOW CREATE TABLE m2;
-Table Create Table
-m2 CREATE TEMPORARY TABLE `m2` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`t1`,`t2`)
-SELECT * FROM m2;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-INSERT INTO m2 SELECT * FROM m1;
-SELECT * FROM m2;
-c1 c2
-111 121
-211 221
-212 222
-213 223
-111 121
-211 221
-212 222
-213 223
-DROP TABLE m2;
-#
-CREATE TEMPORARY TABLE m2 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t3,t4)
-INSERT_METHOD=LAST;
-LOCK TABLE m1 WRITE, m2 WRITE;
-INSERT INTO m2 SELECT * FROM m1;
-SELECT * FROM m2;
-c1 c2
-311 321
-411 421
-111 121
-211 221
-212 222
-213 223
-111 121
-211 221
-212 222
-213 223
-#
-UNLOCK TABLES;
-DROP TABLE t1, t2, t3, t4, m1, m2;
-#
-# Bug47098 assert in MDL_context::destroy on HANDLER
-# <damaged merge table> OPEN
-#
-# Test that merge tables are closed correctly when opened using
-# HANDLER ... OPEN.
-# The general case.
-DROP TABLE IF EXISTS t1, t2, t3;
-connect con1,localhost,root,,;
-CREATE TABLE t1 (c1 int);
-CREATE TABLE t2 (c1 int);
-CREATE TABLE t3 (c1 int) ENGINE = MERGE UNION (t1,t2);
-START TRANSACTION;
-HANDLER t3 OPEN;
-ERROR HY000: Storage engine MRG_MyISAM of the table `test`.`t3` doesn't have this option
-DROP TABLE t1, t2, t3;
-connection default;
-# all mdl_tickets must have been released.
-disconnect con1;
-# The bug-specific case.
-connect con1,localhost,root,,;
-CREATE TABLE t1 (c1 int);
-CREATE TABLE t2 (c1 int);
-CREATE TABLE t3 (c1 int) ENGINE = MERGE UNION (t1,t2);
-DROP TABLE t2;
-START TRANSACTION;
-HANDLER t3 OPEN;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DROP TABLE t1, t3;
-connection default;
-# all mdl_tickets must have been released.
-disconnect con1;
-#
-# A test case for Bug#47648 main.merge fails sporadically
-#
-# Make sure we correctly maintain lex->query_tables_last_own.
-#
-create table t1 (c1 int not null);
-create table t2 (c1 int not null);
-create table t3 (c1 int not null);
-create function f1 () returns int return (select max(c1) from t3);
-create table t4 (c1 int not null) engine=merge union=(t1,t2) insert_method=last ;
-select * from t4 where c1 < f1();
-c1
-prepare stmt from "select * from t4 where c1 < f1()";
-execute stmt;
-c1
-execute stmt;
-c1
-execute stmt;
-c1
-drop function f1;
-execute stmt;
-ERROR 42000: FUNCTION test.f1 does not exist
-execute stmt;
-ERROR 42000: FUNCTION test.f1 does not exist
-drop table t4, t3, t2, t1;
-#
-# Bug#51240 ALTER TABLE of a locked MERGE table fails
-#
-DROP TABLE IF EXISTS m1, t1;
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE m1 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1);
-LOCK TABLE m1 WRITE;
-ALTER TABLE m1 ADD INDEX (c1);
-UNLOCK TABLES;
-DROP TABLE m1, t1;
-#
-# Locking the merge table won't implicitly lock children.
-#
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE m1 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1);
-LOCK TABLE m1 WRITE;
-ALTER TABLE t1 ADD INDEX (c1);
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-LOCK TABLE m1 WRITE, t1 WRITE;
-ALTER TABLE t1 ADD INDEX (c1);
-UNLOCK TABLES;
-DROP TABLE m1, t1;
-#
-# Test for bug #37371 "CREATE TABLE LIKE merge loses UNION parameter"
-#
-drop tables if exists t1, m1, m2;
-create table t1 (i int) engine=myisam;
-create table m1 (i int) engine=mrg_myisam union=(t1) insert_method=first;
-create table m2 like m1;
-# Table definitions should match
-show create table m1;
-Table Create Table
-m1 CREATE TABLE `m1` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=FIRST UNION=(`t1`)
-show create table m2;
-Table Create Table
-m2 CREATE TABLE `m2` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=FIRST UNION=(`t1`)
-drop tables m1, m2, t1;
-#
-# Test case for Bug#54811 "Assert in mysql_lock_have_duplicate()"
-# Check that unique_table() works correctly for merge tables.
-#
-drop table if exists t1, t2, t3, m1, m2;
-create table t1 (a int);
-create table t2 (a int);
-create table t3 (b int);
-create view v1 as select * from t3,t1;
-create table m1 (a int) engine=merge union (t1, t2) insert_method=last;
-create table m2 (a int) engine=merge union (t1, t2) insert_method=first;
-create temporary table tmp (b int);
-insert into tmp (b) values (1);
-insert into t1 (a) values (1);
-insert into t3 (b) values (1);
-insert into m1 (a) values ((select max(a) from m1));
-ERROR HY000: Table 'm1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into m1 (a) values ((select max(a) from m2));
-ERROR HY000: Table 'm1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into m1 (a) values ((select max(a) from t1));
-ERROR HY000: Table 'm1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into m1 (a) values ((select max(a) from t2));
-ERROR HY000: Table 'm1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into m1 (a) values ((select max(a) from t3, m1));
-ERROR HY000: Table 'm1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into m1 (a) values ((select max(a) from t3, m2));
-ERROR HY000: Table 'm1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into m1 (a) values ((select max(a) from t3, t1));
-ERROR HY000: Table 'm1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into m1 (a) values ((select max(a) from t3, t2));
-ERROR HY000: Table 'm1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into m1 (a) values ((select max(a) from tmp, m1));
-ERROR HY000: Table 'm1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into m1 (a) values ((select max(a) from tmp, m2));
-ERROR HY000: Table 'm1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into m1 (a) values ((select max(a) from tmp, t1));
-ERROR HY000: Table 'm1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into m1 (a) values ((select max(a) from tmp, t2));
-ERROR HY000: Table 'm1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into m1 (a) values ((select max(a) from v1));
-ERROR HY000: The definition of table 'v1' prevents operation INSERT on table 'm1'
-insert into m1 (a) values ((select max(a) from tmp, v1));
-ERROR HY000: The definition of table 'v1' prevents operation INSERT on table 'm1'
-drop view v1;
-drop temporary table tmp;
-drop table t1, t2, t3, m1, m2;
-#
-# Bug#56494 Segfault in upgrade_shared_lock_to_exclusive() for
-# REPAIR of merge table
-#
-DROP TABLE IF EXISTS t1, t2, t_not_exists;
-CREATE TABLE t1(a INT);
-ALTER TABLE t1 engine= MERGE UNION (t_not_exists);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze Error Table 'test.t_not_exists' doesn't exist
-test.t1 analyze Error Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-test.t1 analyze error Corrupt
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check Error Table 'test.t_not_exists' is differently defined or of non-MyISAM type or doesn't exist
-test.t1 check Error Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-test.t1 check error Corrupt
-CHECKSUM TABLE t1;
-Table Checksum
-test.t1 NULL
-Warnings:
-Error 1146 Table 'test.t_not_exists' doesn't exist
-Error 1168 Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize Error Table 'test.t_not_exists' doesn't exist
-test.t1 optimize Error Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-test.t1 optimize error Corrupt
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair Error Table 'test.t_not_exists' is differently defined or of non-MyISAM type or doesn't exist
-test.t1 repair Error Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-test.t1 repair error Corrupt
-REPAIR TABLE t1 USE_FRM;
-Table Op Msg_type Msg_text
-test.t1 repair Warning Can't open table
-test.t1 repair error Corrupt
-DROP TABLE t1;
-CREATE TABLE t1(a INT);
-CREATE TABLE t2(a INT) engine= MERGE UNION (t1);
-REPAIR TABLE t2 USE_FRM;
-Table Op Msg_type Msg_text
-test.t2 repair note The storage engine for the table doesn't support repair
-DROP TABLE t1, t2;
-#
-# Bug#57002 Assert in upgrade_shared_lock_to_exclusive()
-# for ALTER TABLE + MERGE tables
-#
-DROP TABLE IF EXISTS t1, m1;
-CREATE TABLE t1(a INT) engine=myisam;
-CREATE TABLE m1(a INT) engine=merge UNION(t1);
-LOCK TABLES t1 READ, m1 WRITE;
-ALTER TABLE t1 engine=myisam;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-UNLOCK TABLES;
-DROP TABLE m1, t1;
-#
-# Test for bug #11754210 - "45777: CHECK TABLE DOESN'T SHOW ALL
-# PROBLEMS FOR MERGE TABLE COMPLIANCE IN 5.1"
-#
-drop tables if exists t1, t2, t3, t4, m1;
-create table t1(id int) engine=myisam;
-create view t3 as select 1 as id;
-create table t4(id int) engine=memory;
-create table m1(id int) engine=merge union=(t1,t2,t3,t4);
-select * from m1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-# The below CHECK and REPAIR TABLE statements should
-# report all problems with underlying tables:
-# - absence of 't2',
-# - missing base table for 't3',
-# - wrong engine of 't4'.
-check table m1;
-Table Op Msg_type Msg_text
-test.m1 check Error Table 'test.t2' is differently defined or of non-MyISAM type or doesn't exist
-test.m1 check Error Table 'test.t3' is differently defined or of non-MyISAM type or doesn't exist
-test.m1 check Error Table 'test.t4' is differently defined or of non-MyISAM type or doesn't exist
-test.m1 check Error Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-test.m1 check error Corrupt
-repair table m1;
-Table Op Msg_type Msg_text
-test.m1 repair Error Table 'test.t2' is differently defined or of non-MyISAM type or doesn't exist
-test.m1 repair Error Table 'test.t3' is differently defined or of non-MyISAM type or doesn't exist
-test.m1 repair Error Table 'test.t4' is differently defined or of non-MyISAM type or doesn't exist
-test.m1 repair Error Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-test.m1 repair error Corrupt
-# Clean-up.
-drop tables m1, t1, t4;
-drop view t3;
-#
-# MDEV-10424 - Assertion `ticket == __null' failed in
-# MDL_request::set_type
-#
-CREATE TABLE t1 (f1 INT) ENGINE=MyISAM;
-CREATE TABLE tmerge (f1 INT) ENGINE=MERGE UNION=(t1);
-PREPARE stmt FROM "ANALYZE TABLE tmerge, t1";
-EXECUTE stmt;
-Table Op Msg_type Msg_text
-test.tmerge analyze note The storage engine for the table doesn't support analyze
-test.t1 analyze status Table is already up to date
-EXECUTE stmt;
-Table Op Msg_type Msg_text
-test.tmerge analyze note The storage engine for the table doesn't support analyze
-test.t1 analyze status Table is already up to date
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1, tmerge;
-End of 5.5 tests
-#
-# Additional coverage for refactoring which is made as part
-# of fix for bug #27480 "Extend CREATE TEMPORARY TABLES privilege
-# to allow temp table operations".
-#
-# Check that prelocking works correctly for various variants of
-# merge tables.
-drop table if exists t1, t2, m1;
-drop function if exists f1;
-create table t1 (j int);
-insert into t1 values (1);
-create function f1() returns int return (select count(*) from m1);
-create temporary table t2 (a int) engine=myisam;
-insert into t2 values (1);
-create temporary table m1 (a int) engine=merge union=(t2);
-select f1() from t1;
-f1()
-1
-drop tables t2, m1;
-create table t2 (a int) engine=myisam;
-insert into t2 values (1);
-create table m1 (a int) engine=merge union=(t2);
-select f1() from t1;
-f1()
-1
-drop table m1;
-create temporary table m1 (a int) engine=merge union=(t2);
-select f1() from t1;
-f1()
-1
-drop tables t1, t2, m1;
-drop function f1;
-#
-# Check that REPAIR/CHECK and CHECKSUM statements work correctly
-# for various variants of merge tables.
-create table t1 (a int) engine=myisam;
-insert into t1 values (1);
-create table m1 (a int) engine=merge union=(t1);
-check table m1;
-Table Op Msg_type Msg_text
-test.m1 check status OK
-repair table m1;
-Table Op Msg_type Msg_text
-test.m1 repair note The storage engine for the table doesn't support repair
-checksum table m1;
-Table Checksum
-test.m1 3459908756
-drop tables t1, m1;
-create temporary table t1 (a int) engine=myisam;
-insert into t1 values (1);
-create temporary table m1 (a int) engine=merge union=(t1);
-check table m1;
-Table Op Msg_type Msg_text
-test.m1 check status OK
-repair table m1;
-Table Op Msg_type Msg_text
-test.m1 repair note The storage engine for the table doesn't support repair
-checksum table m1;
-Table Checksum
-test.m1 3459908756
-drop tables t1, m1;
-create table t1 (a int) engine=myisam;
-insert into t1 values (1);
-create temporary table m1 (a int) engine=merge union=(t1);
-check table m1;
-Table Op Msg_type Msg_text
-test.m1 check status OK
-repair table m1;
-Table Op Msg_type Msg_text
-test.m1 repair note The storage engine for the table doesn't support repair
-checksum table m1;
-Table Checksum
-test.m1 3459908756
-drop tables t1, m1;
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS m1;
-DROP TRIGGER IF EXISTS trg1;
-DROP TABLE IF EXISTS q1;
-DROP TABLE IF EXISTS q2;
-CREATE TABLE t1(a INT);
-CREATE TABLE m1(a INT) ENGINE = MERGE UNION (q1, q2);
-CREATE TRIGGER trg1 BEFORE DELETE ON t1
-FOR EACH ROW
-INSERT INTO m1 VALUES (1);
-DELETE FROM t1;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DROP TRIGGER trg1;
-DROP TABLE t1;
-DROP TABLE m1;
diff --git a/mysql-test/r/merge_debug.result b/mysql-test/r/merge_debug.result
deleted file mode 100644
index 51905e52d24..00000000000
--- a/mysql-test/r/merge_debug.result
+++ /dev/null
@@ -1,27 +0,0 @@
-set @default_storage_engine= @@global.storage_engine;
-set global storage_engine=myisam;
-set session storage_engine=myisam;
-call mtr.add_suppression("Index for table .*crashed' is corrupt; try to repair it");
-drop table if exists crashed,t2,t3,t4;
-SET @orig_debug=@@debug;
-CREATE TABLE crashed (c1 INT);
-CREATE TABLE t2 (c1 INT);
-CREATE TABLE t3 (c1 INT);
-CREATE TABLE t4 (c1 INT) ENGINE=MRG_MYISAM UNION=(crashed,t2,t3) INSERT_METHOD=LAST;
-INSERT INTO crashed VALUES (10);
-INSERT INTO t2 VALUES (20);
-INSERT INTO t3 VALUES (30);
-LOCK TABLES t3 WRITE, t2 WRITE, t4 WRITE, crashed WRITE;
-SET GLOBAL debug_dbug="+d,myisam_pretend_crashed_table_on_open";
-CREATE TRIGGER t1_ai AFTER INSERT ON crashed FOR EACH ROW INSERT INTO t2 VALUES(29);
-SET GLOBAL debug_dbug=@orig_debug;
-INSERT INTO t4 VALUES (39);
-ERROR HY000: Table 'crashed' was not locked with LOCK TABLES
-INSERT INTO crashed VALUES (11);
-ERROR HY000: Table 'crashed' was not locked with LOCK TABLES
-INSERT INTO t2 VALUES (21);
-INSERT INTO t3 VALUES (31);
-UNLOCK TABLES;
-DROP TRIGGER t1_ai;
-DROP TABLE t4,crashed,t2,t3;
-set global storage_engine=@default_storage_engine;
diff --git a/mysql-test/r/merge_innodb.result b/mysql-test/r/merge_innodb.result
deleted file mode 100644
index 5aa344a9391..00000000000
--- a/mysql-test/r/merge_innodb.result
+++ /dev/null
@@ -1,70 +0,0 @@
-DROP TABLE IF EXISTS t1, t2, t3, t4, t5;
-CREATE TABLE t1 (c1 varchar(100)) ENGINE=MyISAM;
-CREATE TABLE t2 (c1 varchar(100)) ENGINE=MyISAM;
-CREATE TABLE t3 (c1 varchar(100)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('Ann'), ('Alice');
-INSERT INTO t2 VALUES ('Bob'), ('Brian');
-INSERT INTO t3 VALUES ('Chris'), ('Charlie');
-CREATE TABLE t4 (c1 varchar(100)) ENGINE=MRG_MYISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-CREATE TABLE t5 (c1 varchar(100)) ENGINE=MRG_MYISAM UNION=(t1,t3)
-INSERT_METHOD=LAST;
-SELECT * FROM t5;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-SELECT * FROM t4;
-c1
-Ann
-Alice
-Bob
-Brian
-ALTER TABLE t2 ENGINE=InnoDB;
-SELECT * FROM t4;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-DELETE FROM t2 LIMIT 1;
-SELECT * FROM t4;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-INSERT INTO t4 VALUES ('Beware');
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-SELECT * FROM t4;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-SELECT * FROM t2;
-c1
-Brian
-SELECT * FROM t1;
-c1
-Ann
-Alice
-DROP TABLE t1, t2, t3, t4, t5;
-create table t1 (c1 varchar(100));
-create table t2 (c1 varchar(100));
-create view t3 as select * from t1;
-insert into t1 values ('ann'), ('alice');
-insert into t2 values ('bob'), ('brian');
-create temporary table t4 (c1 varchar(100)) engine=MERGE union=(t2, t1);
-create temporary table t5 (c1 varchar(100)) engine=MERGE union=(t3, t1);
-select * from t5;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-lock tables t1 read, t2 read, t3 read, t4 read;
-select * from t5;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-select * from t4;
-c1
-bob
-brian
-ann
-alice
-unlock tables;
-drop table t2;
-create view t2 as select * from t1;
-select * from t4;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-lock tables t1 read, t2 read, t3 read;
-select * from t4;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-select * from t4;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-select * from t4;
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-unlock tables;
-drop view t2, t3;
-drop table t1;
diff --git a/mysql-test/r/merge_mmap.result b/mysql-test/r/merge_mmap.result
deleted file mode 100644
index e8014259a4a..00000000000
--- a/mysql-test/r/merge_mmap.result
+++ /dev/null
@@ -1,190 +0,0 @@
-SET GLOBAL storage_engine = MyISAM;
-SET SESSION storage_engine = MyISAM;
-DROP TABLE IF EXISTS t1, t2, m1, m2;
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE t2 (c1 INT);
-CREATE TABLE m1 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-CREATE TABLE m2 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2), (3), (4);
-INSERT INTO m2 SELECT * FROM m1;
-SELECT * FROM m2;
-c1
-1
-2
-3
-4
-1
-2
-3
-4
-SELECT * FROM t2;
-c1
-2
-3
-4
-1
-2
-3
-4
-DROP TABLE m2, m1, t2, t1;
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE t2 (c1 INT);
-CREATE TEMPORARY TABLE m1 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-CREATE TABLE m2 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2), (3), (4);
-INSERT INTO m2 SELECT * FROM m1;
-SELECT * FROM m2;
-c1
-1
-2
-3
-4
-1
-2
-3
-4
-DROP TABLE m2, m1, t2, t1;
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE t2 (c1 INT);
-CREATE TABLE m1 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-CREATE TEMPORARY TABLE m2 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2), (3), (4);
-INSERT INTO m2 SELECT * FROM m1;
-SELECT * FROM m2;
-c1
-1
-2
-3
-4
-1
-2
-3
-4
-DROP TABLE m2, m1, t2, t1;
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE t2 (c1 INT);
-CREATE TEMPORARY TABLE m1 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-CREATE TEMPORARY TABLE m2 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2), (3), (4);
-INSERT INTO m2 SELECT * FROM m1;
-SELECT * FROM m2;
-c1
-1
-2
-3
-4
-1
-2
-3
-4
-DROP TABLE m2, m1, t2, t1;
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE t2 (c1 INT);
-CREATE TABLE m1 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-CREATE TABLE m2 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-LOCK TABLE m1 WRITE, m2 WRITE;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2), (3), (4);
-INSERT INTO m2 SELECT * FROM m1;
-SELECT * FROM m2;
-c1
-1
-2
-3
-4
-1
-2
-3
-4
-SELECT * FROM t2;
-c1
-2
-3
-4
-1
-2
-3
-4
-UNLOCK TABLES;
-DROP TABLE m2, m1, t2, t1;
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE t2 (c1 INT);
-CREATE TEMPORARY TABLE m1 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-CREATE TABLE m2 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-LOCK TABLE m1 WRITE, m2 WRITE;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2), (3), (4);
-INSERT INTO m2 SELECT * FROM m1;
-SELECT * FROM m2;
-c1
-1
-2
-3
-4
-1
-2
-3
-4
-UNLOCK TABLES;
-DROP TABLE m2, m1, t2, t1;
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE t2 (c1 INT);
-CREATE TABLE m1 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-CREATE TEMPORARY TABLE m2 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-LOCK TABLE m1 WRITE, m2 WRITE;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2), (3), (4);
-INSERT INTO m2 SELECT * FROM m1;
-SELECT * FROM m2;
-c1
-1
-2
-3
-4
-1
-2
-3
-4
-UNLOCK TABLES;
-DROP TABLE m2, m1, t2, t1;
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE t2 (c1 INT);
-CREATE TEMPORARY TABLE m1 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-CREATE TEMPORARY TABLE m2 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1,t2)
-INSERT_METHOD=LAST;
-LOCK TABLE m1 WRITE, m2 WRITE;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2), (3), (4);
-INSERT INTO m2 SELECT * FROM m1;
-SELECT * FROM m2;
-c1
-1
-2
-3
-4
-1
-2
-3
-4
-UNLOCK TABLES;
-DROP TABLE m2, m1, t2, t1;
-End of 6.0 tests
diff --git a/mysql-test/r/metadata.result b/mysql-test/r/metadata.result
deleted file mode 100644
index 7848390b62e..00000000000
--- a/mysql-test/r/metadata.result
+++ /dev/null
@@ -1,804 +0,0 @@
-drop table if exists t1,t2;
-select 1, 1.0, -1, "hello", NULL;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def 1 3 1 1 N 32897 0 63
-def 1.0 246 4 3 N 32897 1 63
-def -1 3 2 2 N 32897 0 63
-def hello 253 5 5 N 1 39 8
-def NULL 6 0 0 Y 32896 0 63
-1 1.0 -1 hello NULL
-1 1.0 -1 hello NULL
-SELECT
-1 AS c1,
-11 AS c2,
-111 AS c3,
-1111 AS c4,
-11111 AS c5,
-111111 AS c6,
-1111111 AS c7,
-11111111 AS c8,
-111111111 AS c9,
-1111111111 AS c10,
-11111111111 AS c11,
-111111111111 AS c12,
-1111111111111 AS c13,
-11111111111111 AS c14,
-111111111111111 AS c15,
-1111111111111111 AS c16,
-11111111111111111 AS c17,
-111111111111111111 AS c18,
-1111111111111111111 AS c19,
-11111111111111111111 AS c20,
-111111111111111111111 AS c21;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 3 1 1 N 32897 0 63
-def c2 3 2 2 N 32897 0 63
-def c3 3 3 3 N 32897 0 63
-def c4 3 4 4 N 32897 0 63
-def c5 3 5 5 N 32897 0 63
-def c6 3 6 6 N 32897 0 63
-def c7 3 7 7 N 32897 0 63
-def c8 3 8 8 N 32897 0 63
-def c9 3 9 9 N 32897 0 63
-def c10 8 10 10 N 32897 0 63
-def c11 8 11 11 N 32897 0 63
-def c12 8 12 12 N 32897 0 63
-def c13 8 13 13 N 32897 0 63
-def c14 8 14 14 N 32897 0 63
-def c15 8 15 15 N 32897 0 63
-def c16 8 16 16 N 32897 0 63
-def c17 8 17 17 N 32897 0 63
-def c18 8 18 18 N 32897 0 63
-def c19 8 19 19 N 32897 0 63
-def c20 8 20 20 N 32929 0 63
-def c21 246 22 21 N 32897 0 63
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21
-1 11 111 1111 11111 111111 1111111 11111111 111111111 1111111111 11111111111 111111111111 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111 11111111111111111111 111111111111111111111
-SELECT
--1 AS c1,
--11 AS c2,
--111 AS c3,
--1111 AS c4,
--11111 AS c5,
--111111 AS c6,
--1111111 AS c7,
--11111111 AS c8,
--111111111 AS c9,
--1111111111 AS c10,
--11111111111 AS c11,
--111111111111 AS c12,
--1111111111111 AS c13,
--11111111111111 AS c14,
--111111111111111 AS c15,
--1111111111111111 AS c16,
--11111111111111111 AS c17,
--111111111111111111 AS c18,
--1111111111111111111 AS c19,
--11111111111111111111 AS c20,
--111111111111111111111 AS c21;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c1 3 2 2 N 32897 0 63
-def c2 3 3 3 N 32897 0 63
-def c3 3 4 4 N 32897 0 63
-def c4 3 5 5 N 32897 0 63
-def c5 3 6 6 N 32897 0 63
-def c6 3 7 7 N 32897 0 63
-def c7 3 8 8 N 32897 0 63
-def c8 3 9 9 N 32897 0 63
-def c9 8 10 10 N 32897 0 63
-def c10 8 11 11 N 32897 0 63
-def c11 8 12 12 N 32897 0 63
-def c12 8 13 13 N 32897 0 63
-def c13 8 14 14 N 32897 0 63
-def c14 8 15 15 N 32897 0 63
-def c15 8 16 16 N 32897 0 63
-def c16 8 17 17 N 32897 0 63
-def c17 8 18 18 N 32897 0 63
-def c18 8 19 19 N 32897 0 63
-def c19 8 20 20 N 32897 0 63
-def c20 246 21 21 N 32897 0 63
-def c21 246 22 22 N 32897 0 63
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21
--1 -11 -111 -1111 -11111 -111111 -1111111 -11111111 -111111111 -1111111111 -11111111111 -111111111111 -1111111111111 -11111111111111 -111111111111111 -1111111111111111 -11111111111111111 -111111111111111111 -1111111111111111111 -11111111111111111111 -111111111111111111111
-create table t1 (a tinyint, b smallint, c mediumint, d int, e bigint, f float(3,2), g double(4,3), h decimal(5,4), i year, j date, k timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, l datetime, m enum('a','b'), n set('a','b'), o char(10));
-select * from t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a a 1 4 0 Y 32768 0 63
-def test t1 t1 b b 2 6 0 Y 32768 0 63
-def test t1 t1 c c 9 9 0 Y 32768 0 63
-def test t1 t1 d d 3 11 0 Y 32768 0 63
-def test t1 t1 e e 8 20 0 Y 32768 0 63
-def test t1 t1 f f 4 3 0 Y 32768 2 63
-def test t1 t1 g g 5 4 0 Y 32768 3 63
-def test t1 t1 h h 246 7 0 Y 32768 4 63
-def test t1 t1 i i 13 4 0 Y 32864 0 63
-def test t1 t1 j j 10 10 0 Y 128 0 63
-def test t1 t1 k k 7 19 0 N 9377 0 63
-def test t1 t1 l l 12 19 0 Y 128 0 63
-def test t1 t1 m m 254 1 0 Y 256 0 8
-def test t1 t1 n n 254 3 0 Y 2048 0 8
-def test t1 t1 o o 254 10 0 Y 0 0 8
-a b c d e f g h i j k l m n o
-select a b, b c from t1 as t2;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t2 a b 1 4 0 Y 32768 0 63
-def test t1 t2 b c 2 6 0 Y 32768 0 63
-b c
-drop table t1;
-CREATE TABLE t1 (id tinyint(3) default NULL, data varchar(255) default NULL);
-INSERT INTO t1 VALUES (1,'male'),(2,'female');
-CREATE TABLE t2 (id tinyint(3) unsigned default NULL, data char(3) default '0');
-INSERT INTO t2 VALUES (1,'yes'),(2,'no');
-select t1.id, t1.data, t2.data from t1, t2 where t1.id = t2.id;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 id id 1 3 1 Y 32768 0 63
-def test t1 t1 data data 253 255 6 Y 0 0 8
-def test t2 t2 data data 254 3 3 Y 0 0 8
-id data data
-1 male yes
-2 female no
-select t1.id, t1.data, t2.data from t1, t2 where t1.id = t2.id order by t1.id;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 id id 1 3 1 Y 32768 0 63
-def test t1 t1 data data 253 255 6 Y 0 0 8
-def test t2 t2 data data 254 3 3 Y 0 0 8
-id data data
-1 male yes
-2 female no
-select t1.id from t1 union select t2.id from t2;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def id id 246 4 1 Y 32768 0 63
-id
-1
-2
-drop table t1,t2;
-create table t1 ( a int, b varchar(30), primary key(a));
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-set @arg00=1 ;
-select @arg00 FROM t1 where a=1 union distinct select 1 FROM t1 where a=1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg00 @arg00 8 20 1 Y 32768 0 63
-@arg00
-1
-select * from (select @arg00) aaa;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def aaa @arg00 @arg00 8 20 1 Y 32768 0 63
-@arg00
-1
-select 1 union select 1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def 1 1 3 1 1 N 32769 0 63
-1
-1
-select * from (select 1 union select 1) aaa;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def aaa 1 1 3 1 1 N 32769 0 63
-1
-1
-drop table t1;
-create table t1 (i int);
-insert into t1 values (1),(2),(3);
-select * from t1 where i = 2;
-drop table t1;//
-affected rows: 0
-affected rows: 3
-info: Records: 3 Duplicates: 0 Warnings: 0
-i
-2
-affected rows: 1
-affected rows: 0
-create table t1 (id int(10));
-insert into t1 values (1);
-CREATE VIEW v1 AS select t1.id as id from t1;
-CREATE VIEW v2 AS select t1.id as renamed from t1;
-CREATE VIEW v3 AS select t1.id + 12 as renamed from t1;
-select * from v1 group by id limit 1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 v1 id id 3 10 1 Y 32768 0 63
-id
-1
-select * from v1 group by id limit 0;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test v1 v1 id id 3 10 0 Y 32768 0 63
-id
-select * from v1 where id=1000 group by id;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test v1 v1 id id 3 10 0 Y 32768 0 63
-id
-select * from v1 where id=1 group by id;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 v1 id id 3 10 1 Y 32768 0 63
-id
-1
-select * from v2 where renamed=1 group by renamed;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 v2 id renamed 3 10 1 Y 32768 0 63
-renamed
-1
-select * from v3 where renamed=1 group by renamed;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def v3 v3 renamed renamed 8 12 0 Y 32896 0 63
-renamed
-drop table t1;
-drop view v1,v2,v3;
-select a.* from (select 2147483648 as v_large) a;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def a v_large v_large 8 10 10 N 32769 0 63
-v_large
-2147483648
-select a.* from (select 214748364 as v_small) a;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def a v_small v_small 3 9 9 N 32769 0 63
-v_small
-214748364
-CREATE TABLE t1 (c1 CHAR(1));
-CREATE TABLE t2 (c2 CHAR(1));
-CREATE VIEW v1 AS SELECT t1.c1 FROM t1;
-CREATE VIEW v2 AS SELECT t2.c2 FROM t2;
-INSERT INTO t1 VALUES ('1'), ('2'), ('3');
-INSERT INTO t2 VALUES ('1'), ('2'), ('3'), ('2');
-SELECT v1.c1 FROM v1 JOIN t2 ON c1=c2 ORDER BY 1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 v1 c1 c1 254 1 1 Y 0 0 8
-c1
-1
-2
-2
-3
-SELECT v1.c1, v2.c2 FROM v1 JOIN v2 ON c1=c2;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test v1 v1 c1 c1 254 1 1 Y 0 0 8
-def test v2 v2 c2 c2 254 1 1 Y 0 0 8
-c1 c2
-1 1
-2 2
-3 3
-2 2
-SELECT v1.c1, v2.c2 FROM v1 JOIN v2 ON c1=c2 GROUP BY v1.c1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 v1 c1 c1 254 1 1 Y 32768 0 8
-def test t2 v2 c2 c2 254 1 1 Y 0 0 8
-c1 c2
-1 1
-2 2
-3 3
-SELECT v1.c1, v2.c2 FROM v1 JOIN v2 ON c1=c2 GROUP BY v1.c1 ORDER BY v2.c2;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 v1 c1 c1 254 1 1 Y 32768 0 8
-def test t2 v2 c2 c2 254 1 1 Y 0 0 8
-c1 c2
-1 1
-2 2
-3 3
-DROP VIEW v1,v2;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (i INT, d DATE);
-INSERT INTO t1 VALUES (1, '2008-01-01'), (2, '2008-01-02'), (3, '2008-01-03');
-SELECT COALESCE(d, d), IFNULL(d, d), IF(i, d, d),
-CASE i WHEN i THEN d ELSE d END, GREATEST(d, d), LEAST(d, d)
-FROM t1 ORDER BY RAND();
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-2008-01-01 2008-01-01 2008-01-01 2008-01-01 2008-01-01 2008-01-01
-2008-01-02 2008-01-02 2008-01-02 2008-01-02 2008-01-02 2008-01-02
-2008-01-03 2008-01-03 2008-01-03 2008-01-03 2008-01-03 2008-01-03
-COALESCE(d, d) IFNULL(d, d) IF(i, d, d) CASE i WHEN i THEN d ELSE d END GREATEST(d, d) LEAST(d, d)
-def CASE i WHEN i THEN d ELSE d END CASE i WHEN i THEN d ELSE d END 10 10 10 Y 128 0 63
-def COALESCE(d, d) COALESCE(d, d) 10 10 10 Y 128 0 63
-def GREATEST(d, d) GREATEST(d, d) 10 10 10 Y 128 0 63
-def IF(i, d, d) IF(i, d, d) 10 10 10 Y 128 0 63
-def IFNULL(d, d) IFNULL(d, d) 10 10 10 Y 128 0 63
-def LEAST(d, d) LEAST(d, d) 10 10 10 Y 128 0 63
-DROP TABLE t1;
-#
-# Bug#41788 mysql_fetch_field returns org_table == table by a view
-#
-CREATE TABLE t1 (f1 INT);
-CREATE VIEW v1 AS SELECT f1 FROM t1;
-SELECT f1 FROM v1 va;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test va va f1 f1 3 11 0 Y 32768 0 63
-f1
-DROP VIEW v1;
-DROP TABLE t1;
-End of 5.0 tests
-create table t1(
-# numeric types
-bool_col bool,
-boolean_col boolean,
-bit_col bit(5),
-tiny tinyint,
-tiny_uns tinyint unsigned,
-small smallint,
-small_uns smallint unsigned,
-medium mediumint,
-medium_uns mediumint unsigned,
-int_col int,
-int_col_uns int unsigned,
-big bigint,
-big_uns bigint unsigned,
-decimal_col decimal(10,5),
-# synonyms of DECIMAL
-numeric_col numeric(10),
-fixed_col fixed(10),
-dec_col dec(10),
-decimal_col_uns decimal(10,5) unsigned,
-fcol float,
-fcol_uns float unsigned,
-dcol double,
-double_precision_col double precision,
-dcol_uns double unsigned,
-# date/time types
-date_col date,
-time_col time,
-timestamp_col timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-year_col year,
-datetime_col datetime,
-# string types
-char_col char(5),
-varchar_col varchar(10),
-binary_col binary(10),
-varbinary_col varbinary(10),
-tinyblob_col tinyblob,
-blob_col blob,
-mediumblob_col mediumblob,
-longblob_col longblob,
-text_col text,
-mediumtext_col mediumtext,
-longtext_col longtext,
-enum_col enum("A","B","C"),
-set_col set("F","E","D")
-);
-select * from t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 bool_col bool_col 1 1 0 Y 32768 0 63
-def test t1 t1 boolean_col boolean_col 1 1 0 Y 32768 0 63
-def test t1 t1 bit_col bit_col 16 5 0 Y 32 0 63
-def test t1 t1 tiny tiny 1 4 0 Y 32768 0 63
-def test t1 t1 tiny_uns tiny_uns 1 3 0 Y 32800 0 63
-def test t1 t1 small small 2 6 0 Y 32768 0 63
-def test t1 t1 small_uns small_uns 2 5 0 Y 32800 0 63
-def test t1 t1 medium medium 9 9 0 Y 32768 0 63
-def test t1 t1 medium_uns medium_uns 9 8 0 Y 32800 0 63
-def test t1 t1 int_col int_col 3 11 0 Y 32768 0 63
-def test t1 t1 int_col_uns int_col_uns 3 10 0 Y 32800 0 63
-def test t1 t1 big big 8 20 0 Y 32768 0 63
-def test t1 t1 big_uns big_uns 8 20 0 Y 32800 0 63
-def test t1 t1 decimal_col decimal_col 246 12 0 Y 32768 5 63
-def test t1 t1 numeric_col numeric_col 246 11 0 Y 32768 0 63
-def test t1 t1 fixed_col fixed_col 246 11 0 Y 32768 0 63
-def test t1 t1 dec_col dec_col 246 11 0 Y 32768 0 63
-def test t1 t1 decimal_col_uns decimal_col_uns 246 11 0 Y 32800 5 63
-def test t1 t1 fcol fcol 4 12 0 Y 32768 31 63
-def test t1 t1 fcol_uns fcol_uns 4 12 0 Y 32800 31 63
-def test t1 t1 dcol dcol 5 22 0 Y 32768 31 63
-def test t1 t1 double_precision_col double_precision_col 5 22 0 Y 32768 31 63
-def test t1 t1 dcol_uns dcol_uns 5 22 0 Y 32800 31 63
-def test t1 t1 date_col date_col 10 10 0 Y 128 0 63
-def test t1 t1 time_col time_col 11 10 0 Y 128 0 63
-def test t1 t1 timestamp_col timestamp_col 7 19 0 N 9377 0 63
-def test t1 t1 year_col year_col 13 4 0 Y 32864 0 63
-def test t1 t1 datetime_col datetime_col 12 19 0 Y 128 0 63
-def test t1 t1 char_col char_col 254 5 0 Y 0 0 8
-def test t1 t1 varchar_col varchar_col 253 10 0 Y 0 0 8
-def test t1 t1 binary_col binary_col 254 10 0 Y 128 0 63
-def test t1 t1 varbinary_col varbinary_col 253 10 0 Y 128 0 63
-def test t1 t1 tinyblob_col tinyblob_col 252 255 0 Y 144 0 63
-def test t1 t1 blob_col blob_col 252 65535 0 Y 144 0 63
-def test t1 t1 mediumblob_col mediumblob_col 252 16777215 0 Y 144 0 63
-def test t1 t1 longblob_col longblob_col 252 4294967295 0 Y 144 0 63
-def test t1 t1 text_col text_col 252 65535 0 Y 16 0 8
-def test t1 t1 mediumtext_col mediumtext_col 252 16777215 0 Y 16 0 8
-def test t1 t1 longtext_col longtext_col 252 4294967295 0 Y 16 0 8
-def test t1 t1 enum_col enum_col 254 1 0 Y 256 0 8
-def test t1 t1 set_col set_col 254 5 0 Y 2048 0 8
-bool_col boolean_col bit_col tiny tiny_uns small small_uns medium medium_uns int_col int_col_uns big big_uns decimal_col numeric_col fixed_col dec_col decimal_col_uns fcol fcol_uns dcol double_precision_col dcol_uns date_col time_col timestamp_col year_col datetime_col char_col varchar_col binary_col varbinary_col tinyblob_col blob_col mediumblob_col longblob_col text_col mediumtext_col longtext_col enum_col set_col
-drop table t1;
-select cast('01:01:01' as time), cast('01:01:01' as time(2));
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def cast('01:01:01' as time) 11 10 8 Y 128 0 63
-def cast('01:01:01' as time(2)) 11 13 11 Y 128 2 63
-cast('01:01:01' as time) cast('01:01:01' as time(2))
-01:01:01 01:01:01.00
-#
-# MDEV-12854 Synchronize CREATE..SELECT data type and result set metadata data type for INT functions
-#
-SELECT
-STRCMP('a','b'),
-OCTET_LENGTH('a'),
-CHAR_LENGTH('a'),
-COERCIBILITY('a'),
-ASCII('a'),
-ORD('a'),
-CRC32('a'),
-UNCOMPRESSED_LENGTH(COMPRESS('a'));
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def STRCMP('a','b') 3 2 2 N 32897 0 63
-def OCTET_LENGTH('a') 3 10 1 N 32897 0 63
-def CHAR_LENGTH('a') 3 10 1 N 32897 0 63
-def COERCIBILITY('a') 3 10 1 N 32897 0 63
-def ASCII('a') 3 3 2 N 32897 0 63
-def ORD('a') 3 7 2 N 32897 0 63
-def CRC32('a') 3 10 10 N 32929 0 63
-def UNCOMPRESSED_LENGTH(COMPRESS('a')) 3 10 1 Y 32896 0 63
-STRCMP('a','b') OCTET_LENGTH('a') CHAR_LENGTH('a') COERCIBILITY('a') ASCII('a') ORD('a') CRC32('a') UNCOMPRESSED_LENGTH(COMPRESS('a'))
--1 1 1 4 97 97 3904355907 1
-SELECT
-INTERVAL(2,1,2,3),
-REGEXP_INSTR('a','a'),
-LOCATE('a','a'),
-FIND_IN_SET('b','a,b,c,d'),
-FIELD('a','a','b');
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def INTERVAL(2,1,2,3) 3 2 1 N 32897 0 63
-def REGEXP_INSTR('a','a') 3 11 1 N 32897 0 63
-def LOCATE('a','a') 3 11 1 N 32897 0 63
-def FIND_IN_SET('b','a,b,c,d') 3 3 1 N 32897 0 63
-def FIELD('a','a','b') 3 3 1 N 32897 0 63
-INTERVAL(2,1,2,3) REGEXP_INSTR('a','a') LOCATE('a','a') FIND_IN_SET('b','a,b,c,d') FIELD('a','a','b')
-2 1 1 2 1
-SELECT
-SIGN(1),
-BIT_COUNT(1);
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def SIGN(1) 3 2 1 N 32897 0 63
-def BIT_COUNT(1) 3 2 1 N 32897 0 63
-SIGN(1) BIT_COUNT(1)
-1 1
-SELECT
-BENCHMARK(0,0),
-SLEEP(0);
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def BENCHMARK(0,0) 3 1 1 N 32897 0 63
-def SLEEP(0) 3 1 1 N 32897 0 63
-BENCHMARK(0,0) SLEEP(0)
-0 0
-SELECT
-GET_LOCK('metadata',0),
-IS_FREE_LOCK('metadata'),
-RELEASE_LOCK('metadata');
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def GET_LOCK('metadata',0) 3 1 1 Y 32896 0 63
-def IS_FREE_LOCK('metadata') 3 1 1 Y 32896 0 63
-def RELEASE_LOCK('metadata') 3 1 1 Y 32896 0 63
-GET_LOCK('metadata',0) IS_FREE_LOCK('metadata') RELEASE_LOCK('metadata')
-1 0 1
-SELECT
-PERIOD_ADD(200801,2),
-PERIOD_DIFF(200802,200703),
-TO_DAYS('2007-10-07'),
-DAYOFMONTH('2007-02-03'),
-DAYOFWEEK('2007-02-03'),
-TO_SECONDS('2013-06-13');
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def PERIOD_ADD(200801,2) 3 6 6 N 32897 0 63
-def PERIOD_DIFF(200802,200703) 3 6 2 N 32897 0 63
-def TO_DAYS('2007-10-07') 3 6 6 Y 32896 0 63
-def DAYOFMONTH('2007-02-03') 3 2 1 Y 32896 0 63
-def DAYOFWEEK('2007-02-03') 3 1 1 Y 32896 0 63
-def TO_SECONDS('2013-06-13') 8 12 11 Y 32896 0 63
-PERIOD_ADD(200801,2) PERIOD_DIFF(200802,200703) TO_DAYS('2007-10-07') DAYOFMONTH('2007-02-03') DAYOFWEEK('2007-02-03') TO_SECONDS('2013-06-13')
-200803 11 733321 3 7 63538300800
-SELECT
-YEAR('2001-02-03 04:05:06.000007'),
-DAY('2001-02-03 04:05:06.000007'),
-HOUR('2001-02-03 04:05:06.000007'),
-MINUTE('2001-02-03 04:05:06.000007'),
-SECOND('2001-02-03 04:05:06.000007'),
-MICROSECOND('2001-02-03 04:05:06.000007');
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def YEAR('2001-02-03 04:05:06.000007') 3 4 4 Y 32896 0 63
-def DAY('2001-02-03 04:05:06.000007') 3 2 1 Y 32896 0 63
-def HOUR('2001-02-03 04:05:06.000007') 3 2 1 Y 32896 0 63
-def MINUTE('2001-02-03 04:05:06.000007') 3 2 1 Y 32896 0 63
-def SECOND('2001-02-03 04:05:06.000007') 3 2 1 Y 32896 0 63
-def MICROSECOND('2001-02-03 04:05:06.000007') 3 6 1 Y 32896 0 63
-YEAR('2001-02-03 04:05:06.000007') DAY('2001-02-03 04:05:06.000007') HOUR('2001-02-03 04:05:06.000007') MINUTE('2001-02-03 04:05:06.000007') SECOND('2001-02-03 04:05:06.000007') MICROSECOND('2001-02-03 04:05:06.000007')
-2001 3 4 5 6 7
-SELECT
-WEEK('2001-02-03 04:05:06.000007'),
-QUARTER('2001-02-03 04:05:06.000007'),
-YEARWEEK('2001-02-03 04:05:06.000007');
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def WEEK('2001-02-03 04:05:06.000007') 3 2 1 Y 32896 0 63
-def QUARTER('2001-02-03 04:05:06.000007') 3 1 1 Y 32896 0 63
-def YEARWEEK('2001-02-03 04:05:06.000007') 3 6 6 Y 32896 0 63
-WEEK('2001-02-03 04:05:06.000007') QUARTER('2001-02-03 04:05:06.000007') YEARWEEK('2001-02-03 04:05:06.000007')
-4 1 200104
-SELECT BIT_LENGTH(10);
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def BIT_LENGTH(10) 8 11 2 N 32897 0 63
-BIT_LENGTH(10)
-16
-SELECT 1|2, 1&2, 1<<2, 1>>2, ~0, 1^2;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def 1|2 8 21 1 N 32929 0 63
-def 1&2 8 21 1 N 32929 0 63
-def 1<<2 8 21 1 N 32929 0 63
-def 1>>2 8 21 1 N 32929 0 63
-def ~0 8 21 20 N 32929 0 63
-def 1^2 8 21 1 N 32929 0 63
-1|2 1&2 1<<2 1>>2 ~0 1^2
-3 0 4 0 18446744073709551615 3
-SELECT LAST_INSERT_ID();
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def LAST_INSERT_ID() 8 21 1 N 32929 0 63
-LAST_INSERT_ID()
-0
-SELECT ROW_COUNT(), FOUND_ROWS();
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def ROW_COUNT() 8 21 2 N 32897 0 63
-def FOUND_ROWS() 8 21 1 N 32897 0 63
-ROW_COUNT() FOUND_ROWS()
--1 1
-SELECT TIMESTAMPDIFF(MONTH,'2003-02-01','2003-05-01');
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def TIMESTAMPDIFF(MONTH,'2003-02-01','2003-05-01') 8 21 1 Y 32896 0 63
-TIMESTAMPDIFF(MONTH,'2003-02-01','2003-05-01')
-3
-#
-# MDEV-12856 Wrong result set metadata for DIV
-#
-SELECT
-2 DIV 1 AS d0l,
-222222222 DIV 1 AS d09,
-2222222222 DIV 1 AS d10;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def d0l 3 1 1 Y 32896 0 63
-def d09 3 9 9 Y 32896 0 63
-def d10 8 10 10 Y 32896 0 63
-d0l d09 d10
-2 222222222 2222222222
-#
-# MDEV-12862 Data type of @a:=1e0 depends on the session character set
-#
-SET NAMES utf8;
-CREATE TABLE t1 AS SELECT @:=1e0;
-SELECT * FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 @:=1e0 @:=1e0 5 3 1 N 36865 31 63
-@:=1e0
-1
-DROP TABLE t1;
-SET NAMES latin1;
-CREATE TABLE t1 AS SELECT @:=1e0;
-SELECT * FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 @:=1e0 @:=1e0 5 3 1 N 36865 31 63
-@:=1e0
-1
-DROP TABLE t1;
-#
-# MDEV-12869 Wrong metadata for integer additive and multiplicative operators
-#
-SELECT
-1+1,
-11+1,
-111+1,
-1111+1,
-11111+1,
-111111+1,
-1111111+1,
-11111111+1,
-111111111+1 LIMIT 0;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def 1+1 3 3 0 N 32897 0 63
-def 11+1 3 4 0 N 32897 0 63
-def 111+1 3 5 0 N 32897 0 63
-def 1111+1 3 6 0 N 32897 0 63
-def 11111+1 3 7 0 N 32897 0 63
-def 111111+1 3 8 0 N 32897 0 63
-def 1111111+1 3 9 0 N 32897 0 63
-def 11111111+1 8 10 0 N 32897 0 63
-def 111111111+1 8 11 0 N 32897 0 63
-1+1 11+1 111+1 1111+1 11111+1 111111+1 1111111+1 11111111+1 111111111+1
-SELECT
-1-1,
-11-1,
-111-1,
-1111-1,
-11111-1,
-111111-1,
-1111111-1,
-11111111-1,
-111111111-1 LIMIT 0;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def 1-1 3 3 0 N 32897 0 63
-def 11-1 3 4 0 N 32897 0 63
-def 111-1 3 5 0 N 32897 0 63
-def 1111-1 3 6 0 N 32897 0 63
-def 11111-1 3 7 0 N 32897 0 63
-def 111111-1 3 8 0 N 32897 0 63
-def 1111111-1 3 9 0 N 32897 0 63
-def 11111111-1 8 10 0 N 32897 0 63
-def 111111111-1 8 11 0 N 32897 0 63
-1-1 11-1 111-1 1111-1 11111-1 111111-1 1111111-1 11111111-1 111111111-1
-SELECT
-1*1,
-11*1,
-111*1,
-1111*1,
-11111*1,
-111111*1,
-1111111*1,
-11111111*1,
-111111111*1 LIMIT 0;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def 1*1 3 3 0 N 32897 0 63
-def 11*1 3 4 0 N 32897 0 63
-def 111*1 3 5 0 N 32897 0 63
-def 1111*1 3 6 0 N 32897 0 63
-def 11111*1 3 7 0 N 32897 0 63
-def 111111*1 3 8 0 N 32897 0 63
-def 1111111*1 3 9 0 N 32897 0 63
-def 11111111*1 8 10 0 N 32897 0 63
-def 111111111*1 8 11 0 N 32897 0 63
-1*1 11*1 111*1 1111*1 11111*1 111111*1 1111111*1 11111111*1 111111111*1
-SELECT
-1 MOD 1,
-11 MOD 1,
-111 MOD 1,
-1111 MOD 1,
-11111 MOD 1,
-111111 MOD 1,
-1111111 MOD 1,
-11111111 MOD 1,
-111111111 MOD 1,
-1111111111 MOD 1,
-11111111111 MOD 1 LIMIT 0;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def 1 MOD 1 3 1 0 Y 32896 0 63
-def 11 MOD 1 3 2 0 Y 32896 0 63
-def 111 MOD 1 3 3 0 Y 32896 0 63
-def 1111 MOD 1 3 4 0 Y 32896 0 63
-def 11111 MOD 1 3 5 0 Y 32896 0 63
-def 111111 MOD 1 3 6 0 Y 32896 0 63
-def 1111111 MOD 1 3 7 0 Y 32896 0 63
-def 11111111 MOD 1 3 8 0 Y 32896 0 63
-def 111111111 MOD 1 3 9 0 Y 32896 0 63
-def 1111111111 MOD 1 8 10 0 Y 32896 0 63
-def 11111111111 MOD 1 8 11 0 Y 32896 0 63
-1 MOD 1 11 MOD 1 111 MOD 1 1111 MOD 1 11111 MOD 1 111111 MOD 1 1111111 MOD 1 11111111 MOD 1 111111111 MOD 1 1111111111 MOD 1 11111111111 MOD 1
-SELECT
--(1),
--(11),
--(111),
--(1111),
--(11111),
--(111111),
--(1111111),
--(11111111),
--(111111111) LIMIT 0;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def -(1) 3 2 0 N 32897 0 63
-def -(11) 3 3 0 N 32897 0 63
-def -(111) 3 4 0 N 32897 0 63
-def -(1111) 3 5 0 N 32897 0 63
-def -(11111) 3 6 0 N 32897 0 63
-def -(111111) 3 7 0 N 32897 0 63
-def -(1111111) 3 8 0 N 32897 0 63
-def -(11111111) 3 9 0 N 32897 0 63
-def -(111111111) 8 10 0 N 32897 0 63
--(1) -(11) -(111) -(1111) -(11111) -(111111) -(1111111) -(11111111) -(111111111)
-SELECT
-ABS(1),
-ABS(11),
-ABS(111),
-ABS(1111),
-ABS(11111),
-ABS(111111),
-ABS(1111111),
-ABS(11111111),
-ABS(111111111),
-ABS(1111111111) LIMIT 0;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def ABS(1) 3 1 0 N 32897 0 63
-def ABS(11) 3 2 0 N 32897 0 63
-def ABS(111) 3 3 0 N 32897 0 63
-def ABS(1111) 3 4 0 N 32897 0 63
-def ABS(11111) 3 5 0 N 32897 0 63
-def ABS(111111) 3 6 0 N 32897 0 63
-def ABS(1111111) 3 7 0 N 32897 0 63
-def ABS(11111111) 3 8 0 N 32897 0 63
-def ABS(111111111) 3 9 0 N 32897 0 63
-def ABS(1111111111) 8 10 0 N 32897 0 63
-ABS(1) ABS(11) ABS(111) ABS(1111) ABS(11111) ABS(111111) ABS(1111111) ABS(11111111) ABS(111111111) ABS(1111111111)
-SELECT
-CEILING(1),
-CEILING(11),
-CEILING(111),
-CEILING(1111),
-CEILING(11111),
-CEILING(111111),
-CEILING(1111111),
-CEILING(11111111),
-CEILING(111111111),
-CEILING(1111111111) LIMIT 0;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def CEILING(1) 3 3 0 N 32897 0 63
-def CEILING(11) 3 4 0 N 32897 0 63
-def CEILING(111) 3 5 0 N 32897 0 63
-def CEILING(1111) 3 6 0 N 32897 0 63
-def CEILING(11111) 3 7 0 N 32897 0 63
-def CEILING(111111) 3 8 0 N 32897 0 63
-def CEILING(1111111) 3 9 0 N 32897 0 63
-def CEILING(11111111) 8 10 0 N 32897 0 63
-def CEILING(111111111) 8 11 0 N 32897 0 63
-def CEILING(1111111111) 8 12 0 N 32897 0 63
-CEILING(1) CEILING(11) CEILING(111) CEILING(1111) CEILING(11111) CEILING(111111) CEILING(1111111) CEILING(11111111) CEILING(111111111) CEILING(1111111111)
-SELECT
-FLOOR(1),
-FLOOR(11),
-FLOOR(111),
-FLOOR(1111),
-FLOOR(11111),
-FLOOR(111111),
-FLOOR(1111111),
-FLOOR(11111111),
-FLOOR(111111111),
-FLOOR(1111111111) LIMIT 0;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def FLOOR(1) 3 3 0 N 32897 0 63
-def FLOOR(11) 3 4 0 N 32897 0 63
-def FLOOR(111) 3 5 0 N 32897 0 63
-def FLOOR(1111) 3 6 0 N 32897 0 63
-def FLOOR(11111) 3 7 0 N 32897 0 63
-def FLOOR(111111) 3 8 0 N 32897 0 63
-def FLOOR(1111111) 3 9 0 N 32897 0 63
-def FLOOR(11111111) 8 10 0 N 32897 0 63
-def FLOOR(111111111) 8 11 0 N 32897 0 63
-def FLOOR(1111111111) 8 12 0 N 32897 0 63
-FLOOR(1) FLOOR(11) FLOOR(111) FLOOR(1111) FLOOR(11111) FLOOR(111111) FLOOR(1111111) FLOOR(11111111) FLOOR(111111111) FLOOR(1111111111)
-SELECT
-ROUND(1),
-ROUND(11),
-ROUND(111),
-ROUND(1111),
-ROUND(11111),
-ROUND(111111),
-ROUND(1111111),
-ROUND(11111111),
-ROUND(111111111),
-ROUND(1111111111) LIMIT 0;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def ROUND(1) 3 1 0 N 32897 0 63
-def ROUND(11) 3 2 0 N 32897 0 63
-def ROUND(111) 3 3 0 N 32897 0 63
-def ROUND(1111) 3 4 0 N 32897 0 63
-def ROUND(11111) 3 5 0 N 32897 0 63
-def ROUND(111111) 3 6 0 N 32897 0 63
-def ROUND(1111111) 3 7 0 N 32897 0 63
-def ROUND(11111111) 3 8 0 N 32897 0 63
-def ROUND(111111111) 3 9 0 N 32897 0 63
-def ROUND(1111111111) 8 10 0 N 32897 0 63
-ROUND(1) ROUND(11) ROUND(111) ROUND(1111) ROUND(11111) ROUND(111111) ROUND(1111111) ROUND(11111111) ROUND(111111111) ROUND(1111111111)
-#
-# MDEV-12546 Wrong metadata or data type for string user variables
-#
-SET @a='test';
-SELECT @a;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @a 251 16777215 4 Y 0 39 8
-@a
-test
-CREATE TABLE t1 AS SELECT @a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `@a` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SELECT @b1:=10, @b2:=@b2:=111111111111;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @b1:=10 3 2 2 N 32897 0 63
-def @b2:=@b2:=111111111111 8 12 12 N 32897 0 63
-@b1:=10 @b2:=@b2:=111111111111
-10 111111111111
-CREATE TABLE t1 AS SELECT @b1:=10, @b2:=111111111111;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `@b1:=10` int(2) NOT NULL,
- `@b2:=111111111111` bigint(12) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
diff --git a/mysql-test/r/mix2_myisam.result b/mysql-test/r/mix2_myisam.result
deleted file mode 100644
index 34764466d2a..00000000000
--- a/mysql-test/r/mix2_myisam.result
+++ /dev/null
@@ -1,2203 +0,0 @@
-call mtr.add_suppression("Can't find record in .*");
-SET SESSION STORAGE_ENGINE = MEMORY;
-drop table if exists t1,t2,t3,t4;
-drop database if exists mysqltest;
-create table t1 (id int unsigned not null auto_increment, code tinyint unsigned not null, name char(20) not null, primary key (id), key (code), unique (name)) engine=MyISAM;
-insert into t1 (code, name) values (1, 'Tim'), (1, 'Monty'), (2, 'David'), (2, 'Erik'), (3, 'Sasha'), (3, 'Jeremy'), (4, 'Matt');
-select id, code, name from t1 order by id;
-id code name
-1 1 Tim
-2 1 Monty
-3 2 David
-4 2 Erik
-5 3 Sasha
-6 3 Jeremy
-7 4 Matt
-update ignore t1 set id = 8, name = 'Sinisa' where id < 3;
-select id, code, name from t1 order by id;
-id code name
-2 1 Monty
-3 2 David
-4 2 Erik
-5 3 Sasha
-6 3 Jeremy
-7 4 Matt
-8 1 Sinisa
-update ignore t1 set id = id + 10, name = 'Ralph' where id < 4;
-select id, code, name from t1 order by id;
-id code name
-3 2 David
-4 2 Erik
-5 3 Sasha
-6 3 Jeremy
-7 4 Matt
-8 1 Sinisa
-12 1 Ralph
-drop table t1;
-CREATE TABLE t1 (
-id int(11) NOT NULL auto_increment,
-parent_id int(11) DEFAULT '0' NOT NULL,
-level tinyint(4) DEFAULT '0' NOT NULL,
-PRIMARY KEY (id),
-KEY parent_id (parent_id),
-KEY level (level)
-) engine=MyISAM;
-INSERT INTO t1 VALUES (1,0,0),(3,1,1),(4,1,1),(8,2,2),(9,2,2),(17,3,2),(22,4,2),(24,4,2),(28,5,2),(29,5,2),(30,5,2),(31,6,2),(32,6,2),(33,6,2),(203,7,2),(202,7,2),(20,3,2),(157,0,0),(193,5,2),(40,7,2),(2,1,1),(15,2,2),(6,1,1),(34,6,2),(35,6,2),(16,3,2),(7,1,1),(36,7,2),(18,3,2),(26,5,2),(27,5,2),(183,4,2),(38,7,2),(25,5,2),(37,7,2),(21,4,2),(19,3,2),(5,1,1),(179,5,2);
-update t1 set parent_id=parent_id+100;
-select * from t1 where parent_id=102;
-id parent_id level
-8 102 2
-9 102 2
-15 102 2
-update t1 set id=id+1000;
-update t1 set id=1024 where id=1009;
-Got one of the listed errors
-select * from t1;
-id parent_id level
-1001 100 0
-1003 101 1
-1004 101 1
-1008 102 2
-1009 102 2
-1017 103 2
-1022 104 2
-1024 104 2
-1028 105 2
-1029 105 2
-1030 105 2
-1031 106 2
-1032 106 2
-1033 106 2
-1203 107 2
-1202 107 2
-1020 103 2
-1157 100 0
-1193 105 2
-1040 107 2
-1002 101 1
-1015 102 2
-1006 101 1
-1034 106 2
-1035 106 2
-1016 103 2
-1007 101 1
-1036 107 2
-1018 103 2
-1026 105 2
-1027 105 2
-1183 104 2
-1038 107 2
-1025 105 2
-1037 107 2
-1021 104 2
-1019 103 2
-1005 101 1
-1179 105 2
-update ignore t1 set id=id+1;
-select * from t1;
-id parent_id level
-1001 100 0
-1003 101 1
-1004 101 1
-1008 102 2
-1010 102 2
-1017 103 2
-1023 104 2
-1024 104 2
-1028 105 2
-1029 105 2
-1030 105 2
-1031 106 2
-1032 106 2
-1033 106 2
-1204 107 2
-1203 107 2
-1020 103 2
-1158 100 0
-1194 105 2
-1041 107 2
-1002 101 1
-1015 102 2
-1006 101 1
-1034 106 2
-1035 106 2
-1016 103 2
-1007 101 1
-1036 107 2
-1018 103 2
-1026 105 2
-1027 105 2
-1184 104 2
-1039 107 2
-1025 105 2
-1038 107 2
-1022 104 2
-1019 103 2
-1005 101 1
-1180 105 2
-update ignore t1 set id=1023 where id=1010;
-select * from t1 where parent_id=102;
-id parent_id level
-1008 102 2
-1010 102 2
-1015 102 2
-explain select level from t1 where level=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref level level 1 const # Using index
-explain select level,id from t1 where level=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref level level 1 const #
-explain select level,id,parent_id from t1 where level=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref level level 1 const #
-select level,id from t1 where level=1;
-level id
-1 1003
-1 1004
-1 1002
-1 1006
-1 1007
-1 1005
-select level,id,parent_id from t1 where level=1;
-level id parent_id
-1 1003 101
-1 1004 101
-1 1002 101
-1 1006 101
-1 1007 101
-1 1005 101
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 id A # NULL NULL BTREE
-t1 1 parent_id 1 parent_id A # NULL NULL BTREE
-t1 1 level 1 level A # NULL NULL BTREE
-drop table t1;
-CREATE TABLE t1 (
-gesuchnr int(11) DEFAULT '0' NOT NULL,
-benutzer_id int(11) DEFAULT '0' NOT NULL,
-PRIMARY KEY (gesuchnr,benutzer_id)
-) engine=MyISAM;
-replace into t1 (gesuchnr,benutzer_id) values (2,1);
-replace into t1 (gesuchnr,benutzer_id) values (1,1);
-replace into t1 (gesuchnr,benutzer_id) values (1,1);
-select * from t1;
-gesuchnr benutzer_id
-1 1
-2 1
-drop table t1;
-create table t1 (a int) engine=MyISAM;
-insert into t1 values (1), (2);
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-delete from t1 where a = 1;
-select * from t1;
-a
-2
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-create table t1 (a int,b varchar(20)) engine=MyISAM;
-insert into t1 values (1,""), (2,"testing");
-delete from t1 where a = 1;
-select * from t1;
-a b
-2 testing
-create index skr on t1 (a);
-insert into t1 values (3,""), (4,"testing");
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 skr 1 a A # NULL NULL YES BTREE
-drop table t1;
-create table t1 (a int,b varchar(20),key(a)) engine=MyISAM;
-insert into t1 values (1,""), (2,"testing");
-select * from t1 where a = 1;
-a b
-1
-drop table t1;
-CREATE TABLE t1 (
-user_id int(10) DEFAULT '0' NOT NULL,
-name varchar(100),
-phone varchar(100),
-ref_email varchar(100) DEFAULT '' NOT NULL,
-detail varchar(200),
-PRIMARY KEY (user_id,ref_email)
-)engine=MyISAM;
-INSERT INTO t1 VALUES (10292,'sanjeev','29153373','sansh777@hotmail.com','xxx'),(10292,'shirish','2333604','shirish@yahoo.com','ddsds'),(10292,'sonali','323232','sonali@bolly.com','filmstar');
-select * from t1 where user_id=10292;
-user_id name phone ref_email detail
-10292 sanjeev 29153373 sansh777@hotmail.com xxx
-10292 shirish 2333604 shirish@yahoo.com ddsds
-10292 sonali 323232 sonali@bolly.com filmstar
-INSERT INTO t1 VALUES (10291,'sanjeev','29153373','sansh777@hotmail.com','xxx'),(10293,'shirish','2333604','shirish@yahoo.com','ddsds');
-select * from t1 where user_id=10292;
-user_id name phone ref_email detail
-10292 sanjeev 29153373 sansh777@hotmail.com xxx
-10292 shirish 2333604 shirish@yahoo.com ddsds
-10292 sonali 323232 sonali@bolly.com filmstar
-select * from t1 where user_id>=10292;
-user_id name phone ref_email detail
-10292 sanjeev 29153373 sansh777@hotmail.com xxx
-10292 shirish 2333604 shirish@yahoo.com ddsds
-10292 sonali 323232 sonali@bolly.com filmstar
-10293 shirish 2333604 shirish@yahoo.com ddsds
-select * from t1 where user_id>10292;
-user_id name phone ref_email detail
-10293 shirish 2333604 shirish@yahoo.com ddsds
-select * from t1 where user_id<10292;
-user_id name phone ref_email detail
-10291 sanjeev 29153373 sansh777@hotmail.com xxx
-drop table t1;
-CREATE TABLE t1 (a int not null, b int not null,c int not null,
-key(a),primary key(a,b), unique(c),key(a),unique(b)) ENGINE = MyISAM;
-Warnings:
-Note 1831 Duplicate index `a_2`. This is deprecated and will be disallowed in a future release
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 a A # NULL NULL BTREE
-t1 0 PRIMARY 2 b A # NULL NULL BTREE
-t1 0 c 1 c A # NULL NULL BTREE
-t1 0 b 1 b A # NULL NULL BTREE
-t1 1 a 1 a A # NULL NULL BTREE
-t1 1 a_2 1 a A # NULL NULL BTREE
-drop table t1;
-create table t1 (col1 int not null, col2 char(4) not null, primary key(col1)) ENGINE = MEMORY;
-alter table t1 engine=MyISAM;
-insert into t1 values ('1','1'),('5','2'),('2','3'),('3','4'),('4','4');
-select * from t1;
-col1 col2
-1 1
-5 2
-2 3
-3 4
-4 4
-update t1 set col2='7' where col1='4';
-select * from t1;
-col1 col2
-1 1
-5 2
-2 3
-3 4
-4 7
-alter table t1 add co3 int not null;
-select * from t1;
-col1 col2 co3
-1 1 0
-5 2 0
-2 3 0
-3 4 0
-4 7 0
-update t1 set col2='9' where col1='2';
-select * from t1;
-col1 col2 co3
-1 1 0
-5 2 0
-2 9 0
-3 4 0
-4 7 0
-drop table t1;
-create table t1 (a int not null , b int, primary key (a)) engine = MyISAM;
-create table t2 (a int not null , b int, primary key (a)) engine = MEMORY;
-insert into t1 VALUES (1,3) , (2,3), (3,3);
-select * from t1;
-a b
-1 3
-2 3
-3 3
-insert into t2 select * from t1;
-select * from t2;
-a b
-1 3
-2 3
-3 3
-delete from t1 where b = 3;
-select * from t1;
-a b
-insert into t1 select * from t2;
-select * from t1;
-a b
-3 3
-2 3
-1 3
-select * from t2;
-a b
-1 3
-2 3
-3 3
-drop table t1,t2;
-CREATE TABLE t1 (
-id int(11) NOT NULL auto_increment,
-ggid varchar(32) binary DEFAULT '' NOT NULL,
-email varchar(64) DEFAULT '' NOT NULL,
-passwd varchar(32) binary DEFAULT '' NOT NULL,
-PRIMARY KEY (id),
-UNIQUE ggid (ggid)
-) ENGINE=MyISAM;
-insert into t1 (ggid,passwd) values ('test1','xxx');
-insert into t1 (ggid,passwd) values ('test2','yyy');
-insert into t1 (ggid,passwd) values ('test2','this will fail');
-ERROR 23000: Duplicate entry 'test2' for key 'ggid'
-insert into t1 (ggid,id) values ('this will fail',1);
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-select * from t1 where ggid='test1';
-id ggid email passwd
-1 test1 xxx
-select * from t1 where passwd='xxx';
-id ggid email passwd
-1 test1 xxx
-select * from t1 where id=2;
-id ggid email passwd
-2 test2 yyy
-replace into t1 (ggid,id) values ('this will work',1);
-replace into t1 (ggid,passwd) values ('test2','this will work');
-update t1 set id=100,ggid='test2' where id=1;
-ERROR 23000: Duplicate entry 'test2' for key 'ggid'
-select * from t1;
-id ggid email passwd
-1 this will work
-3 test2 this will work
-select * from t1 where id=1;
-id ggid email passwd
-1 this will work
-select * from t1 where id=999;
-id ggid email passwd
-drop table t1;
-CREATE TABLE t1 (
-user_name varchar(12),
-password text,
-subscribed char(1),
-user_id int(11) DEFAULT '0' NOT NULL,
-quota bigint(20),
-weight double,
-access_date date,
-access_time time,
-approved datetime,
-dummy_primary_key int(11) NOT NULL auto_increment,
-PRIMARY KEY (dummy_primary_key)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('user_0','somepassword','N',0,0,0,'2000-09-07','23:06:59','2000-09-07 23:06:59',1);
-INSERT INTO t1 VALUES ('user_1','somepassword','Y',1,1,1,'2000-09-07','23:06:59','2000-09-07 23:06:59',2);
-INSERT INTO t1 VALUES ('user_2','somepassword','N',2,2,1.4142135623731,'2000-09-07','23:06:59','2000-09-07 23:06:59',3);
-INSERT INTO t1 VALUES ('user_3','somepassword','Y',3,3,1.7320508075689,'2000-09-07','23:06:59','2000-09-07 23:06:59',4);
-INSERT INTO t1 VALUES ('user_4','somepassword','N',4,4,2,'2000-09-07','23:06:59','2000-09-07 23:06:59',5);
-select user_name, password , subscribed, user_id, quota, weight, access_date, access_time, approved, dummy_primary_key from t1 order by user_name;
-user_name password subscribed user_id quota weight access_date access_time approved dummy_primary_key
-user_0 somepassword N 0 0 0 2000-09-07 23:06:59 2000-09-07 23:06:59 1
-user_1 somepassword Y 1 1 1 2000-09-07 23:06:59 2000-09-07 23:06:59 2
-user_2 somepassword N 2 2 1.4142135623731 2000-09-07 23:06:59 2000-09-07 23:06:59 3
-user_3 somepassword Y 3 3 1.7320508075689 2000-09-07 23:06:59 2000-09-07 23:06:59 4
-user_4 somepassword N 4 4 2 2000-09-07 23:06:59 2000-09-07 23:06:59 5
-drop table t1;
-CREATE TABLE t1 (
-id int(11) NOT NULL auto_increment,
-parent_id int(11) DEFAULT '0' NOT NULL,
-level tinyint(4) DEFAULT '0' NOT NULL,
-KEY (id),
-KEY parent_id (parent_id),
-KEY level (level)
-) engine=MyISAM;
-INSERT INTO t1 VALUES (1,0,0),(3,1,1),(4,1,1),(8,2,2),(9,2,2),(17,3,2),(22,4,2),(24,4,2),(28,5,2),(29,5,2),(30,5,2),(31,6,2),(32,6,2),(33,6,2),(203,7,2),(202,7,2),(20,3,2),(157,0,0),(193,5,2),(40,7,2),(2,1,1),(15,2,2),(6,1,1),(34,6,2),(35,6,2),(16,3,2),(7,1,1),(36,7,2),(18,3,2),(26,5,2),(27,5,2),(183,4,2),(38,7,2),(25,5,2),(37,7,2),(21,4,2),(19,3,2),(5,1,1);
-INSERT INTO t1 values (179,5,2);
-update t1 set parent_id=parent_id+100;
-select * from t1 where parent_id=102;
-id parent_id level
-8 102 2
-9 102 2
-15 102 2
-update t1 set id=id+1000;
-update t1 set id=1024 where id=1009;
-select * from t1;
-id parent_id level
-1001 100 0
-1003 101 1
-1004 101 1
-1008 102 2
-1024 102 2
-1017 103 2
-1022 104 2
-1024 104 2
-1028 105 2
-1029 105 2
-1030 105 2
-1031 106 2
-1032 106 2
-1033 106 2
-1203 107 2
-1202 107 2
-1020 103 2
-1157 100 0
-1193 105 2
-1040 107 2
-1002 101 1
-1015 102 2
-1006 101 1
-1034 106 2
-1035 106 2
-1016 103 2
-1007 101 1
-1036 107 2
-1018 103 2
-1026 105 2
-1027 105 2
-1183 104 2
-1038 107 2
-1025 105 2
-1037 107 2
-1021 104 2
-1019 103 2
-1005 101 1
-1179 105 2
-update ignore t1 set id=id+1;
-select * from t1;
-id parent_id level
-1002 100 0
-1004 101 1
-1005 101 1
-1009 102 2
-1025 102 2
-1018 103 2
-1023 104 2
-1025 104 2
-1029 105 2
-1030 105 2
-1031 105 2
-1032 106 2
-1033 106 2
-1034 106 2
-1204 107 2
-1203 107 2
-1021 103 2
-1158 100 0
-1194 105 2
-1041 107 2
-1003 101 1
-1016 102 2
-1007 101 1
-1035 106 2
-1036 106 2
-1017 103 2
-1008 101 1
-1037 107 2
-1019 103 2
-1027 105 2
-1028 105 2
-1184 104 2
-1039 107 2
-1026 105 2
-1038 107 2
-1022 104 2
-1020 103 2
-1006 101 1
-1180 105 2
-update ignore t1 set id=1023 where id=1010;
-select * from t1 where parent_id=102;
-id parent_id level
-1009 102 2
-1025 102 2
-1016 102 2
-explain select level from t1 where level=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref level level 1 const # Using index
-select level,id from t1 where level=1;
-level id
-1 1004
-1 1005
-1 1003
-1 1007
-1 1008
-1 1006
-select level,id,parent_id from t1 where level=1;
-level id parent_id
-1 1004 101
-1 1005 101
-1 1003 101
-1 1007 101
-1 1008 101
-1 1006 101
-select level,id from t1 where level=1 order by id;
-level id
-1 1003
-1 1004
-1 1005
-1 1006
-1 1007
-1 1008
-delete from t1 where level=1;
-select * from t1;
-id parent_id level
-1002 100 0
-1009 102 2
-1025 102 2
-1018 103 2
-1023 104 2
-1025 104 2
-1029 105 2
-1030 105 2
-1031 105 2
-1032 106 2
-1033 106 2
-1034 106 2
-1204 107 2
-1203 107 2
-1021 103 2
-1158 100 0
-1194 105 2
-1041 107 2
-1016 102 2
-1035 106 2
-1036 106 2
-1017 103 2
-1037 107 2
-1019 103 2
-1027 105 2
-1028 105 2
-1184 104 2
-1039 107 2
-1026 105 2
-1038 107 2
-1022 104 2
-1020 103 2
-1180 105 2
-drop table t1;
-CREATE TABLE t1 (
-sca_code char(6) NOT NULL,
-cat_code char(6) NOT NULL,
-sca_desc varchar(50),
-lan_code char(2) NOT NULL,
-sca_pic varchar(100),
-sca_sdesc varchar(50),
-sca_sch_desc varchar(16),
-PRIMARY KEY (sca_code, cat_code, lan_code),
-INDEX sca_pic (sca_pic)
-) engine = MyISAM ;
-INSERT INTO t1 ( sca_code, cat_code, sca_desc, lan_code, sca_pic, sca_sdesc, sca_sch_desc) VALUES ( 'PD', 'J', 'PENDANT', 'EN', NULL, NULL, 'PENDANT'),( 'RI', 'J', 'RING', 'EN', NULL, NULL, 'RING'),( 'QQ', 'N', 'RING', 'EN', 'not null', NULL, 'RING');
-select count(*) from t1 where sca_code = 'PD';
-count(*)
-1
-select count(*) from t1 where sca_code <= 'PD';
-count(*)
-1
-select count(*) from t1 where sca_pic is null;
-count(*)
-2
-alter table t1 drop index sca_pic, add index sca_pic (cat_code, sca_pic);
-select count(*) from t1 where sca_code='PD' and sca_pic is null;
-count(*)
-1
-select count(*) from t1 where cat_code='E';
-count(*)
-0
-alter table t1 drop index sca_pic, add index (sca_pic, cat_code);
-select count(*) from t1 where sca_code='PD' and sca_pic is null;
-count(*)
-1
-select count(*) from t1 where sca_pic >= 'n';
-count(*)
-1
-select sca_pic from t1 where sca_pic is null;
-sca_pic
-NULL
-NULL
-update t1 set sca_pic="test" where sca_pic is null;
-delete from t1 where sca_code='pd';
-drop table t1;
-set @a:=now();
-CREATE TABLE t1 (a int not null, b timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, primary key (a)) engine=MyISAM;
-insert into t1 (a) values(1),(2),(3);
-select t1.a from t1 natural join t1 as t2 where t1.b >= @a order by t1.a;
-a
-1
-2
-3
-select a from t1 natural join t1 as t2 where b >= @a order by a;
-a
-1
-2
-3
-update t1 set a=5 where a=1;
-select a from t1;
-a
-2
-3
-5
-drop table t1;
-create table t1 (a varchar(100) not null, primary key(a), b int not null) engine=MyISAM;
-insert into t1 values("hello",1),("world",2);
-select * from t1 order by b desc;
-a b
-world 2
-hello 1
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 a A # NULL NULL BTREE
-drop table t1;
-create table t1 (i int, j int ) ENGINE=MyISAM;
-insert into t1 values (1,2);
-select * from t1 where i=1 and j=2;
-i j
-1 2
-create index ax1 on t1 (i,j);
-select * from t1 where i=1 and j=2;
-i j
-1 2
-drop table t1;
-CREATE TABLE t1 (
-a int3 unsigned NOT NULL,
-b int1 unsigned NOT NULL,
-UNIQUE (a, b)
-) ENGINE = MyISAM;
-INSERT INTO t1 VALUES (1, 1);
-SELECT MIN(B),MAX(b) FROM t1 WHERE t1.a = 1;
-MIN(B) MAX(b)
-1 1
-drop table t1;
-CREATE TABLE t1 (a int unsigned NOT NULL) engine=MyISAM;
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t1;
-a
-1
-DROP TABLE t1;
-create table t1 (a int primary key,b int, c int, d int, e int, f int, g int, h int, i int, j int, k int, l int, m int, n int, o int, p int, q int, r int, s int, t int, u int, v int, w int, x int, y int, z int, a1 int, a2 int, a3 int, a4 int, a5 int, a6 int, a7 int, a8 int, a9 int, b1 int, b2 int, b3 int, b4 int, b5 int, b6 int) engine = MyISAM;
-insert into t1 values (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1);
-explain select * from t1 where a > 0 and a < 50;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY NULL NULL NULL #
-drop table t1;
-create table t1 (id int NOT NULL,id2 int NOT NULL,id3 int NOT NULL,dummy1 char(30),primary key (id,id2),index index_id3 (id3)) engine=MyISAM;
-insert into t1 values (0,0,0,'ABCDEFGHIJ'),(2,2,2,'BCDEFGHIJK'),(1,1,1,'CDEFGHIJKL');
-LOCK TABLES t1 WRITE;
-insert into t1 values (99,1,2,'D'),(1,1,2,'D');
-ERROR 23000: Duplicate entry '1-1' for key 'PRIMARY'
-select id from t1;
-id
-0
-1
-2
-99
-select id from t1;
-id
-0
-1
-2
-99
-UNLOCK TABLES;
-DROP TABLE t1;
-create table t1 (id int NOT NULL,id2 int NOT NULL,id3 int NOT NULL,dummy1 char(30),primary key (id,id2),index index_id3 (id3)) engine=MyISAM;
-insert into t1 values (0,0,0,'ABCDEFGHIJ'),(2,2,2,'BCDEFGHIJK'),(1,1,1,'CDEFGHIJKL');
-LOCK TABLES t1 WRITE;
-begin;
-insert into t1 values (99,1,2,'D'),(1,1,2,'D');
-ERROR 23000: Duplicate entry '1-1' for key 'PRIMARY'
-select id from t1;
-id
-0
-1
-2
-99
-insert ignore into t1 values (100,1,2,'D'),(1,1,99,'D');
-Warnings:
-Warning 1062 Duplicate entry '1-1' for key 'PRIMARY'
-commit;
-select id,id3 from t1;
-id id3
-0 0
-2 2
-1 1
-99 2
-100 2
-UNLOCK TABLES;
-DROP TABLE t1;
-create table t1 (a char(20), unique (a(5))) engine=MyISAM;
-drop table t1;
-create table t1 (a char(20), index (a(5))) engine=MyISAM;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(20) DEFAULT NULL,
- KEY `a` (`a`(5))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create temporary table t1 (a int not null auto_increment, primary key(a)) engine=MyISAM;
-insert into t1 values (NULL),(NULL),(NULL);
-delete from t1 where a=3;
-insert into t1 values (NULL);
-select * from t1;
-a
-1
-2
-4
-alter table t1 add b int;
-select * from t1;
-a b
-1 NULL
-2 NULL
-4 NULL
-drop table t1;
-create table t1
-(
-id int auto_increment primary key,
-name varchar(32) not null,
-value text not null,
-uid int not null,
-unique key(name,uid)
-) engine=MyISAM;
-insert into t1 values (1,'one','one value',101),
-(2,'two','two value',102),(3,'three','three value',103);
-set insert_id=5;
-replace into t1 (value,name,uid) values ('other value','two',102);
-delete from t1 where uid=102;
-set insert_id=5;
-replace into t1 (value,name,uid) values ('other value','two',102);
-set insert_id=6;
-replace into t1 (value,name,uid) values ('other value','two',102);
-select * from t1;
-id name value uid
-1 one one value 101
-3 three three value 103
-6 two other value 102
-drop table t1;
-create database mysqltest;
-create table mysqltest.t1 (a int not null) engine= MyISAM;
-insert into mysqltest.t1 values(1);
-create table mysqltest.t2 (a int not null) engine= MEMORY;
-insert into mysqltest.t2 values(1);
-create table mysqltest.t3 (a int not null) engine= MEMORY;
-insert into mysqltest.t3 values(1);
-commit;
-drop database mysqltest;
-show tables from mysqltest;
-ERROR 42000: Unknown database 'mysqltest'
-set autocommit=0;
-create table t1 (a int not null) engine= MyISAM;
-insert into t1 values(1),(2);
-truncate table t1;
-commit;
-truncate table t1;
-truncate table t1;
-select * from t1;
-a
-insert into t1 values(1),(2);
-delete from t1;
-select * from t1;
-a
-commit;
-drop table t1;
-set autocommit=1;
-create table t1 (a int not null) engine= MyISAM;
-insert into t1 values(1),(2);
-truncate table t1;
-insert into t1 values(1),(2);
-select * from t1;
-a
-1
-2
-truncate table t1;
-insert into t1 values(1),(2);
-delete from t1;
-select * from t1;
-a
-drop table t1;
-create table t1 (a int not null, b int not null, c int not null, primary key (a),key(b)) engine=MyISAM;
-insert into t1 values (3,3,3),(1,1,1),(2,2,2),(4,4,4);
-explain select * from t1 order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL # Using filesort
-explain select * from t1 order by b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL # Using filesort
-explain select * from t1 order by c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL # Using filesort
-explain select a from t1 order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL # Using index
-explain select b from t1 order by b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL b 4 NULL # Using index
-explain select a,b from t1 order by b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL # Using filesort
-explain select a,b from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL #
-explain select a,b,c from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL #
-drop table t1;
-create table t1 (t int not null default 1, key (t)) engine=MyISAM;
-desc t1;
-Field Type Null Key Default Extra
-t int(11) NO MUL 1
-drop table t1;
-CREATE TABLE t1 (
-number bigint(20) NOT NULL default '0',
-cname char(15) NOT NULL default '',
-carrier_id smallint(6) NOT NULL default '0',
-privacy tinyint(4) NOT NULL default '0',
-last_mod_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-last_mod_id smallint(6) NOT NULL default '0',
-last_app_date timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-last_app_id smallint(6) default '-1',
-version smallint(6) NOT NULL default '0',
-assigned_scps int(11) default '0',
-status tinyint(4) default '0'
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4077711111,'SeanWheeler',90,2,20020111112846,500,00000000000000,-1,2,3,1);
-INSERT INTO t1 VALUES (9197722223,'berry',90,3,20020111112809,500,20020102114532,501,4,10,0);
-INSERT INTO t1 VALUES (650,'San Francisco',0,0,20011227111336,342,00000000000000,-1,1,24,1);
-INSERT INTO t1 VALUES (302467,'Sue\'s Subshop',90,3,20020109113241,500,20020102115111,501,7,24,0);
-INSERT INTO t1 VALUES (6014911113,'SudzCarwash',520,1,20020102115234,500,20020102115259,501,33,32768,0);
-INSERT INTO t1 VALUES (333,'tubs',99,2,20020109113440,501,20020109113440,500,3,10,0);
-CREATE TABLE t2 (
-number bigint(20) NOT NULL default '0',
-cname char(15) NOT NULL default '',
-carrier_id smallint(6) NOT NULL default '0',
-privacy tinyint(4) NOT NULL default '0',
-last_mod_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-last_mod_id smallint(6) NOT NULL default '0',
-last_app_date timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-last_app_id smallint(6) default '-1',
-version smallint(6) NOT NULL default '0',
-assigned_scps int(11) default '0',
-status tinyint(4) default '0'
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (4077711111,'SeanWheeler',0,2,20020111112853,500,00000000000000,-1,2,3,1);
-INSERT INTO t2 VALUES (9197722223,'berry',90,3,20020111112818,500,20020102114532,501,4,10,0);
-INSERT INTO t2 VALUES (650,'San Francisco',90,0,20020109113158,342,00000000000000,-1,1,24,1);
-INSERT INTO t2 VALUES (333,'tubs',99,2,20020109113453,501,20020109113453,500,3,10,0);
-select * from t1;
-number cname carrier_id privacy last_mod_date last_mod_id last_app_date last_app_id version assigned_scps status
-4077711111 SeanWheeler 90 2 2002-01-11 11:28:46 500 0000-00-00 00:00:00 -1 2 3 1
-9197722223 berry 90 3 2002-01-11 11:28:09 500 2002-01-02 11:45:32 501 4 10 0
-650 San Francisco 0 0 2001-12-27 11:13:36 342 0000-00-00 00:00:00 -1 1 24 1
-302467 Sue's Subshop 90 3 2002-01-09 11:32:41 500 2002-01-02 11:51:11 501 7 24 0
-6014911113 SudzCarwash 520 1 2002-01-02 11:52:34 500 2002-01-02 11:52:59 501 33 32768 0
-333 tubs 99 2 2002-01-09 11:34:40 501 2002-01-09 11:34:40 500 3 10 0
-select * from t2;
-number cname carrier_id privacy last_mod_date last_mod_id last_app_date last_app_id version assigned_scps status
-4077711111 SeanWheeler 0 2 2002-01-11 11:28:53 500 0000-00-00 00:00:00 -1 2 3 1
-9197722223 berry 90 3 2002-01-11 11:28:18 500 2002-01-02 11:45:32 501 4 10 0
-650 San Francisco 90 0 2002-01-09 11:31:58 342 0000-00-00 00:00:00 -1 1 24 1
-333 tubs 99 2 2002-01-09 11:34:53 501 2002-01-09 11:34:53 500 3 10 0
-delete t1, t2 from t1 left join t2 on t1.number=t2.number where (t1.carrier_id=90 and t1.number=t2.number) or (t2.carrier_id=90 and t1.number=t2.number) or (t1.carrier_id=90 and t2.number is null);
-select * from t1;
-number cname carrier_id privacy last_mod_date last_mod_id last_app_date last_app_id version assigned_scps status
-6014911113 SudzCarwash 520 1 2002-01-02 11:52:34 500 2002-01-02 11:52:59 501 33 32768 0
-333 tubs 99 2 2002-01-09 11:34:40 501 2002-01-09 11:34:40 500 3 10 0
-select * from t2;
-number cname carrier_id privacy last_mod_date last_mod_id last_app_date last_app_id version assigned_scps status
-333 tubs 99 2 2002-01-09 11:34:53 501 2002-01-09 11:34:53 500 3 10 0
-select * from t2;
-number cname carrier_id privacy last_mod_date last_mod_id last_app_date last_app_id version assigned_scps status
-333 tubs 99 2 2002-01-09 11:34:53 501 2002-01-09 11:34:53 500 3 10 0
-drop table t1,t2;
-create table t1 (id int unsigned not null auto_increment, code tinyint unsigned not null, name char(20) not null, primary key (id), key (code), unique (name)) engine=MyISAM;
-BEGIN;
-SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE;
-SELECT @@tx_isolation,@@global.tx_isolation;
-@@tx_isolation @@global.tx_isolation
-SERIALIZABLE REPEATABLE-READ
-insert into t1 (code, name) values (1, 'Tim'), (1, 'Monty'), (2, 'David');
-select id, code, name from t1 order by id;
-id code name
-1 1 Tim
-2 1 Monty
-3 2 David
-COMMIT;
-BEGIN;
-SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;
-insert into t1 (code, name) values (2, 'Erik'), (3, 'Sasha');
-select id, code, name from t1 order by id;
-id code name
-1 1 Tim
-2 1 Monty
-3 2 David
-4 2 Erik
-5 3 Sasha
-COMMIT;
-BEGIN;
-SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
-insert into t1 (code, name) values (3, 'Jeremy'), (4, 'Matt');
-select id, code, name from t1 order by id;
-id code name
-1 1 Tim
-2 1 Monty
-3 2 David
-4 2 Erik
-5 3 Sasha
-6 3 Jeremy
-7 4 Matt
-COMMIT;
-DROP TABLE t1;
-create table t1 (n int(10), d int(10)) engine=MyISAM;
-create table t2 (n int(10), d int(10)) engine=MyISAM;
-insert into t1 values(1,1),(1,2);
-insert into t2 values(1,10),(2,20);
-UPDATE t1,t2 SET t1.d=t2.d,t2.d=30 WHERE t1.n=t2.n;
-select * from t1;
-n d
-1 10
-1 10
-select * from t2;
-n d
-1 30
-2 20
-drop table t1,t2;
-create table t1 (a int, b int) engine=MyISAM;
-insert into t1 values(20,null);
-select t2.b, ifnull(t2.b,"this is null") from t1 as t2 left join t1 as t3 on
-t2.b=t3.a;
-b ifnull(t2.b,"this is null")
-NULL this is null
-select t2.b, ifnull(t2.b,"this is null") from t1 as t2 left join t1 as t3 on
-t2.b=t3.a order by 1;
-b ifnull(t2.b,"this is null")
-NULL this is null
-insert into t1 values(10,null);
-select t2.b, ifnull(t2.b,"this is null") from t1 as t2 left join t1 as t3 on
-t2.b=t3.a order by 1;
-b ifnull(t2.b,"this is null")
-NULL this is null
-NULL this is null
-drop table t1;
-create table t1 (a varchar(10) not null) engine = MEMORY;
-create table t2 (b varchar(10) not null unique) engine=MyISAM;
-select t1.a from t1,t2 where t1.a=t2.b;
-a
-drop table t1,t2;
-create table t1 (a int not null, b int, primary key (a)) engine = MyISAM;
-create table t2 (a int not null, b int, primary key (a)) engine = MyISAM;
-insert into t1 values (10, 20);
-insert into t2 values (10, 20);
-update t1, t2 set t1.b = 150, t2.b = t1.b where t2.a = t1.a and t1.a = 10;
-drop table t1,t2;
-CREATE TABLE t1 (a int not null primary key, b int not null, unique (b)) engine=MyISAM;
-INSERT INTO t1 values (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9);
-UPDATE t1 set a=a+100 where b between 2 and 3 and a < 1000;
-SELECT * from t1;
-a b
-1 1
-102 2
-103 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 9
-drop table t1;
-CREATE TABLE t1 (a int not null primary key, b int not null, key (b)) engine=MyISAM;
-CREATE TABLE t2 (a int not null primary key, b int not null, key (b)) engine=MyISAM;
-INSERT INTO t1 values (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10),(11,11),(12,12);
-INSERT INTO t2 values (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9);
-update t1,t2 set t1.a=t1.a+100;
-select * from t1;
-a b
-101 1
-102 2
-103 3
-104 4
-105 5
-106 6
-107 7
-108 8
-109 9
-110 10
-111 11
-112 12
-update t1,t2 set t1.a=t1.a+100 where t1.a=101;
-select * from t1;
-a b
-201 1
-102 2
-103 3
-104 4
-105 5
-106 6
-107 7
-108 8
-109 9
-110 10
-111 11
-112 12
-update t1,t2 set t1.b=t1.b+10 where t1.b=2;
-select * from t1;
-a b
-201 1
-102 12
-103 3
-104 4
-105 5
-106 6
-107 7
-108 8
-109 9
-110 10
-111 11
-112 12
-update t1,t2 set t1.b=t1.b+2,t2.b=t1.b+10 where t1.b between 3 and 5 and t1.a=t2.a+100;
-select * from t1;
-a b
-201 1
-102 12
-103 5
-104 6
-105 7
-106 6
-107 7
-108 8
-109 9
-110 10
-111 11
-112 12
-select * from t2;
-a b
-1 1
-2 2
-3 13
-4 14
-5 15
-6 6
-7 7
-8 8
-9 9
-drop table t1,t2;
-CREATE TABLE t2 ( NEXT_T BIGINT NOT NULL PRIMARY KEY) ENGINE=MEMORY;
-CREATE TABLE t1 ( B_ID INTEGER NOT NULL PRIMARY KEY) ENGINE=MyISAM;
-SET AUTOCOMMIT=0;
-INSERT INTO t1 ( B_ID ) VALUES ( 1 );
-INSERT INTO t2 ( NEXT_T ) VALUES ( 1 );
-ROLLBACK;
-Warnings:
-Warning 1196 Some non-transactional changed tables couldn't be rolled back
-SELECT * FROM t1;
-B_ID
-1
-drop table t1,t2;
-create table t1 ( pk int primary key, parent int not null, child int not null, index (parent) ) engine = MyISAM;
-insert into t1 values (1,0,4), (2,1,3), (3,2,1), (4,1,2);
-select distinct parent,child from t1 order by parent;
-parent child
-0 4
-1 2
-1 3
-2 1
-drop table t1;
-create table t1 (a int not null auto_increment primary key, b int, c int, key(c)) engine=MyISAM;
-create table t2 (a int not null auto_increment primary key, b int) ENGINE = MEMORY;
-insert into t1 (b) values (null),(null),(null),(null),(null),(null),(null);
-insert into t2 (a) select b from t1;
-insert into t1 (b) select b from t2;
-insert into t2 (a) select b from t1;
-insert into t1 (a) select b from t2;
-insert into t2 (a) select b from t1;
-insert into t1 (a) select b from t2;
-insert into t2 (a) select b from t1;
-insert into t1 (a) select b from t2;
-insert into t2 (a) select b from t1;
-insert into t1 (a) select b from t2;
-insert into t2 (a) select b from t1;
-insert into t1 (a) select b from t2;
-insert into t2 (a) select b from t1;
-insert into t1 (a) select b from t2;
-insert into t2 (a) select b from t1;
-insert into t1 (a) select b from t2;
-insert into t2 (a) select b from t1;
-insert into t1 (a) select b from t2;
-select count(*) from t1;
-count(*)
-29267
-explain select * from t1 where c between 1 and 2500;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c c 5 NULL # Using index condition
-update t1 set c=a;
-explain select * from t1 where c between 1 and 2500;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c c 5 NULL # Using index condition
-drop table t1,t2;
-create table t1 (id int primary key auto_increment, fk int, index index_fk (fk)) engine=MyISAM;
-insert into t1 (id) values (null),(null),(null),(null),(null);
-update t1 set fk=69 where fk is null order by id limit 1;
-SELECT * from t1;
-id fk
-1 69
-2 NULL
-3 NULL
-4 NULL
-5 NULL
-drop table t1;
-create table t1 (a int not null, b int not null, key (a)) engine=MyISAM;
-insert into t1 values (1,1),(1,2),(1,3),(3,1),(3,2),(3,3),(3,1),(3,2),(3,3),(2,1),(2,2),(2,3);
-SET @tmp=0;
-update t1 set b=(@tmp:=@tmp+1) order by a;
-update t1 set b=99 where a=1 order by b asc limit 1;
-update t1 set b=100 where a=1 order by b desc limit 2;
-update t1 set a=a+10+b where a=1 order by b;
-select * from t1 order by a,b;
-a b
-2 4
-2 5
-2 6
-3 7
-3 8
-3 9
-3 10
-3 11
-3 12
-13 2
-111 100
-111 100
-drop table t1;
-create table t1 ( c char(8) not null ) engine=MyISAM;
-insert into t1 values ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7'),('8'),('9');
-insert into t1 values ('A'),('B'),('C'),('D'),('E'),('F');
-alter table t1 add b char(8) not null;
-alter table t1 add a char(8) not null;
-alter table t1 add primary key (a,b,c);
-update t1 set a=c, b=c;
-create table t2 (c char(8) not null, b char(8) not null, a char(8) not null, primary key(a,b,c)) engine=MyISAM;
-insert into t2 select * from t1;
-delete t1,t2 from t2,t1 where t1.a<'B' and t2.b=t1.b;
-drop table t1,t2;
-SET AUTOCOMMIT=1;
-create table t1 (a integer auto_increment primary key) engine=MyISAM;
-insert into t1 (a) values (NULL),(NULL);
-truncate table t1;
-insert into t1 (a) values (NULL),(NULL);
-SELECT * from t1;
-a
-1
-2
-drop table t1;
-CREATE TABLE t1 (col1 int(1))ENGINE=MyISAM;
-CREATE TABLE t2 (col1 int(1),stamp TIMESTAMP,INDEX stamp_idx
-(stamp))ENGINE=MyISAM;
-insert into t1 values (1),(2),(3);
-insert into t2 values (1, 20020204130000),(2, 20020204130000),(4,20020204310000 ),(5,20020204230000);
-Warnings:
-Warning 1265 Data truncated for column 'stamp' at row 3
-SELECT col1 FROM t1 UNION SELECT col1 FROM t2 WHERE stamp <
-'20020204120000' GROUP BY col1;
-col1
-1
-2
-3
-4
-drop table t1,t2;
-CREATE TABLE t1 (
-`id` int(10) unsigned NOT NULL auto_increment,
-`id_object` int(10) unsigned default '0',
-`id_version` int(10) unsigned NOT NULL default '1',
-`label` varchar(100) NOT NULL default '',
-`description` text,
-PRIMARY KEY (`id`),
-KEY `id_object` (`id_object`),
-KEY `id_version` (`id_version`)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES("6", "3382", "9", "Test", NULL), ("7", "102", "5", "Le Pekin (Test)", NULL),("584", "1794", "4", "Test de resto", NULL),("837", "1822", "6", "Test 3", NULL),("1119", "3524", "1", "Societe Test", NULL),("1122", "3525", "1", "Fournisseur Test", NULL);
-CREATE TABLE t2 (
-`id` int(10) unsigned NOT NULL auto_increment,
-`id_version` int(10) unsigned NOT NULL default '1',
-PRIMARY KEY (`id`),
-KEY `id_version` (`id_version`)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES("3524", "1"),("3525", "1"),("1794", "4"),("102", "5"),("1822", "6"),("3382", "9");
-SELECT t2.id, t1.`label` FROM t2 INNER JOIN
-(SELECT t1.id_object as id_object FROM t1 WHERE t1.`label` LIKE '%test%') AS lbl
-ON (t2.id = lbl.id_object) INNER JOIN t1 ON (t2.id = t1.id_object);
-id label
-3382 Test
-102 Le Pekin (Test)
-1794 Test de resto
-1822 Test 3
-3524 Societe Test
-3525 Fournisseur Test
-drop table t1,t2;
-create table t1 (a int, b varchar(200), c text not null) checksum=1 engine=MyISAM;
-create table t2 (a int, b varchar(200), c text not null) checksum=0 engine=MyISAM;
-create table t3 (a int, b varchar(200), c varchar(200) not null) checksum=1 engine=MEMORY;
-create table t4 (a int, b varchar(200), c varchar(200) not null) checksum=0 engine=MEMORY;
-create table t5 (a int, b varchar(200), c text not null) checksum=1 engine=MyISAM;
-create table t6 (a int, b varchar(200), c text not null) checksum=0 engine=MyISAM;
-insert t1 values (1, "aaa", "bbb"), (NULL, "", "ccccc"), (0, NULL, "");
-insert t2 select * from t1;
-insert t3 select * from t1;
-insert t4 select * from t1;
-insert t5 select * from t1;
-insert t6 select * from t1;
-checksum table t1, t2, t3, t4, t5, t6, t7 quick;
-Table Checksum
-test.t1 3442722830
-test.t2 NULL
-test.t3 NULL
-test.t4 NULL
-test.t5 3442722830
-test.t6 NULL
-test.t7 NULL
-Warnings:
-Error 1146 Table 'test.t7' doesn't exist
-checksum table t1, t2, t3, t4, t5, t6, t7;
-Table Checksum
-test.t1 3442722830
-test.t2 3442722830
-test.t3 3442722830
-test.t4 3442722830
-test.t5 3442722830
-test.t6 3442722830
-test.t7 NULL
-Warnings:
-Error 1146 Table 'test.t7' doesn't exist
-checksum table t1, t2, t3, t4, t5, t6, t7 extended;
-Table Checksum
-test.t1 3442722830
-test.t2 3442722830
-test.t3 3442722830
-test.t4 3442722830
-test.t5 3442722830
-test.t6 3442722830
-test.t7 NULL
-Warnings:
-Error 1146 Table 'test.t7' doesn't exist
-drop table t1,t2,t3, t4, t5, t6;
-create table t1 (id int, name char(10) not null, name2 char(10) not null) engine=MyISAM;
-insert into t1 values(1,'first','fff'),(2,'second','sss'),(3,'third','ttt');
-select trim(name2) from t1 union all select trim(name) from t1 union all select trim(id) from t1;
-trim(name2)
-fff
-sss
-ttt
-first
-second
-third
-1
-2
-3
-drop table t1;
-create table t1 (a int) engine=MyISAM;
-create table t2 like t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1,t2;
-flush status;
-show status like "binlog_cache_use";
-Variable_name Value
-Binlog_cache_use 0
-show status like "binlog_cache_disk_use";
-Variable_name Value
-Binlog_cache_disk_use 0
-create table t1 (a int) engine=MyISAM;
-show status like "binlog_cache_use";
-Variable_name Value
-Binlog_cache_use 0
-show status like "binlog_cache_disk_use";
-Variable_name Value
-Binlog_cache_disk_use 0
-begin;
-delete from t1;
-commit;
-show status like "binlog_cache_use";
-Variable_name Value
-Binlog_cache_use 0
-show status like "binlog_cache_disk_use";
-Variable_name Value
-Binlog_cache_disk_use 0
-drop table t1;
-create table t1 (c char(10), index (c,c)) engine=MyISAM;
-ERROR 42S21: Duplicate column name 'c'
-create table t1 (c1 char(10), c2 char(10), index (c1,c2,c1)) engine=MyISAM;
-ERROR 42S21: Duplicate column name 'c1'
-create table t1 (c1 char(10), c2 char(10), index (c1,c1,c2)) engine=MyISAM;
-ERROR 42S21: Duplicate column name 'c1'
-create table t1 (c1 char(10), c2 char(10), index (c2,c1,c1)) engine=MyISAM;
-ERROR 42S21: Duplicate column name 'c1'
-create table t1 (c1 char(10), c2 char(10)) engine=MyISAM;
-alter table t1 add key (c1,c1);
-ERROR 42S21: Duplicate column name 'c1'
-alter table t1 add key (c2,c1,c1);
-ERROR 42S21: Duplicate column name 'c1'
-alter table t1 add key (c1,c2,c1);
-ERROR 42S21: Duplicate column name 'c1'
-alter table t1 add key (c1,c1,c2);
-ERROR 42S21: Duplicate column name 'c1'
-drop table t1;
-create table t1(a int(1) , b int(1)) engine=MyISAM;
-insert into t1 values ('1111', '3333');
-select distinct concat(a, b) from t1;
-concat(a, b)
-11113333
-drop table t1;
-create temporary table t1 (a int) engine=MyISAM;
-insert into t1 values (4711);
-truncate t1;
-insert into t1 values (42);
-select * from t1;
-a
-42
-drop table t1;
-create table t1 (a int) engine=MyISAM;
-insert into t1 values (4711);
-truncate t1;
-insert into t1 values (42);
-select * from t1;
-a
-42
-drop table t1;
-create table t1 (a int not null, b int not null, c blob not null, d int not null, e int, primary key (a,b,c(255),d)) engine=MyISAM;
-insert into t1 values (2,2,"b",2,2),(1,1,"a",1,1),(3,3,"ab",3,3);
-select * from t1 order by a,b,c,d;
-a b c d e
-1 1 a 1 1
-2 2 b 2 2
-3 3 ab 3 3
-explain select * from t1 order by a,b,c,d;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using filesort
-drop table t1;
-create table t1 (a char(1), b char(1), key(a, b)) engine=MyISAM;
-insert into t1 values ('8', '6'), ('4', '7');
-select min(a) from t1;
-min(a)
-4
-select min(b) from t1 where a='8';
-min(b)
-6
-drop table t1;
-create table t1 (x bigint unsigned not null primary key) engine=MyISAM;
-insert into t1(x) values (0xfffffffffffffff0),(0xfffffffffffffff1);
-select * from t1;
-x
-18446744073709551600
-18446744073709551601
-select count(*) from t1 where x>0;
-count(*)
-2
-select count(*) from t1 where x=0;
-count(*)
-0
-select count(*) from t1 where x<0;
-count(*)
-0
-select count(*) from t1 where x < -16;
-count(*)
-0
-select count(*) from t1 where x = -16;
-count(*)
-0
-explain select count(*) from t1 where x > -16;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 8 NULL 2 Using where; Using index
-select count(*) from t1 where x > -16;
-count(*)
-2
-select * from t1 where x > -16;
-x
-18446744073709551600
-18446744073709551601
-select count(*) from t1 where x = 18446744073709551601;
-count(*)
-1
-drop table t1;
-set storage_engine=MyISAM;
-drop table if exists t1,t2,t3;
---- Testing varchar ---
---- Testing varchar ---
-create table t1 (v varchar(10), c char(10), t text);
-insert into t1 values('+ ', '+ ', '+ ');
-set @a=repeat(' ',20);
-insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
-Warnings:
-Note 1265 Data truncated for column 'v' at row 1
-select concat('*',v,'*',c,'*',t,'*') from t1;
-concat('*',v,'*',c,'*',t,'*')
-*+ *+*+ *
-*+ *+*+ *
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table t2 like t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table t3 select * from t1;
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 modify c varchar(10);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` varchar(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 modify v char(10);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` char(10) DEFAULT NULL,
- `c` varchar(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 modify t varchar(10);
-Warnings:
-Note 1265 Data truncated for column 't' at row 2
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` char(10) DEFAULT NULL,
- `c` varchar(10) DEFAULT NULL,
- `t` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select concat('*',v,'*',c,'*',t,'*') from t1;
-concat('*',v,'*',c,'*',t,'*')
-*+*+*+ *
-*+*+*+ *
-drop table t1,t2,t3;
-create table t1 (v varchar(10), c char(10), t text, key(v), key(c), key(t(10)));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `v` (`v`),
- KEY `c` (`c`),
- KEY `t` (`t`(10))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select count(*) from t1;
-count(*)
-270
-insert into t1 values(concat('a',char(1)),concat('a',char(1)),concat('a',char(1)));
-select count(*) from t1 where v='a';
-count(*)
-10
-select count(*) from t1 where c='a';
-count(*)
-10
-select count(*) from t1 where t='a';
-count(*)
-10
-select count(*) from t1 where v='a ';
-count(*)
-10
-select count(*) from t1 where c='a ';
-count(*)
-10
-select count(*) from t1 where t='a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-count(*)
-10
-select count(*) from t1 where v like 'a%';
-count(*)
-11
-select count(*) from t1 where c like 'a%';
-count(*)
-11
-select count(*) from t1 where t like 'a%';
-count(*)
-11
-select count(*) from t1 where v like 'a %';
-count(*)
-9
-explain select count(*) from t1 where v='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 13 const # Using where; Using index
-explain select count(*) from t1 where c='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref c c 11 const # Using where; Using index
-explain select count(*) from t1 where t='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref t t 13 const # Using where
-explain select count(*) from t1 where v like 'a%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 13 NULL # Using where; Using index
-explain select count(*) from t1 where v between 'a' and 'a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 13 const # Using where; Using index
-explain select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 13 const # Using where; Using index
-alter table t1 add unique(v);
-ERROR 23000: Duplicate entry '{ ' for key 'v_2'
-show warnings;
-Level Code Message
-Error 1062 Duplicate entry 'a' for key 'v_2'
-alter table t1 add key(v);
-Warnings:
-Note 1831 Duplicate index `v_2`. This is deprecated and will be disallowed in a future release
-select concat('*',v,'*',c,'*',t,'*') as qq from t1 where v='a';
-qq
-*a*a*a*
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-explain select * from t1 where v='a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v,v_2 # 13 const # #
-select v,count(*) from t1 group by v limit 10;
-v count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(c) from t1 group by v limit 10;
-v count(c)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(c) from t1 group by v limit 10;
-v count(c)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select c,count(*) from t1 group by c limit 10;
-c count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select c,count(t) from t1 group by c limit 10;
-c count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result c,count(t) from t1 group by c limit 10;
-c count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select t,count(*) from t1 group by t limit 10;
-t count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select t,count(t) from t1 group by t limit 10;
-t count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result t,count(t) from t1 group by t limit 10;
-t count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-alter table t1 modify v varchar(300), drop key v, drop key v_2, add key v (v);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(300) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `c` (`c`),
- KEY `t` (`t`(10)),
- KEY `v` (`v`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select count(*) from t1 where v='a';
-count(*)
-10
-select count(*) from t1 where v='a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-count(*)
-10
-select count(*) from t1 where v like 'a%';
-count(*)
-11
-select count(*) from t1 where v like 'a %';
-count(*)
-9
-explain select count(*) from t1 where v='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 303 const # Using where; Using index
-explain select count(*) from t1 where v like 'a%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 303 NULL # Using where; Using index
-explain select count(*) from t1 where v between 'a' and 'a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 303 const # Using where; Using index
-explain select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 303 const # Using where; Using index
-explain select * from t1 where v='a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 303 const # #
-select v,count(*) from t1 group by v limit 10;
-v count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-alter table t1 drop key v, add key v (v(30));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(300) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `c` (`c`),
- KEY `t` (`t`(10)),
- KEY `v` (`v`(30))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select count(*) from t1 where v='a';
-count(*)
-10
-select count(*) from t1 where v='a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-count(*)
-10
-select count(*) from t1 where v like 'a%';
-count(*)
-11
-select count(*) from t1 where v like 'a %';
-count(*)
-9
-explain select count(*) from t1 where v='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 33 const # Using where
-explain select count(*) from t1 where v like 'a%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 33 NULL # Using where
-explain select count(*) from t1 where v between 'a' and 'a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 33 const # Using where
-explain select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 33 const # Using where
-explain select * from t1 where v='a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 33 const # #
-select v,count(*) from t1 group by v limit 10;
-v count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-alter table t1 modify v varchar(600), drop key v, add key v (v);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(600) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `c` (`c`),
- KEY `t` (`t`(10)),
- KEY `v` (`v`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select v,count(*) from t1 group by v limit 10;
-v count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-drop table t1;
-create table t1 (a char(10), unique (a));
-insert into t1 values ('a ');
-insert into t1 values ('a ');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-alter table t1 modify a varchar(10);
-insert into t1 values ('a '),('a '),('a '),('a ');
-ERROR 23000: Duplicate entry 'a ' for key 'a'
-insert into t1 values ('a ');
-ERROR 23000: Duplicate entry 'a ' for key 'a'
-insert into t1 values ('a ');
-ERROR 23000: Duplicate entry 'a ' for key 'a'
-insert into t1 values ('a ');
-ERROR 23000: Duplicate entry 'a ' for key 'a'
-update t1 set a='a ' where a like 'a%';
-select concat(a,'.') from t1;
-concat(a,'.')
-a .
-update t1 set a='abc ' where a like 'a ';
-select concat(a,'.') from t1;
-concat(a,'.')
-a .
-update t1 set a='a ' where a like 'a %';
-select concat(a,'.') from t1;
-concat(a,'.')
-a .
-update t1 set a='a ' where a like 'a ';
-select concat(a,'.') from t1;
-concat(a,'.')
-a .
-drop table t1;
-create table t1 (v varchar(10), c char(10), t text, key(v(5)), key(c(5)), key(t(5)));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `v` (`v`(5)),
- KEY `c` (`c`(5)),
- KEY `t` (`t`(5))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (v char(10) character set utf8);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` char(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (v varchar(10), c char(10)) row_format=fixed;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED
-insert into t1 values('a','a'),('a ','a ');
-select concat('*',v,'*',c,'*') from t1;
-concat('*',v,'*',c,'*')
-*a*a*
-*a *a*
-drop table t1;
-create table t1 (v varchar(65530), key(v(10)));
-insert into t1 values(repeat('a',65530));
-select length(v) from t1 where v=repeat('a',65530);
-length(v)
-65530
-drop table t1;
-create table t1(a int, b varchar(12), key ba(b, a));
-insert into t1 values (1, 'A'), (20, NULL);
-explain select * from t1 where a=20 and b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref ba ba 20 const,const 1 Using where; Using index
-select * from t1 where a=20 and b is null;
-a b
-20 NULL
-drop table t1;
-create table t1 (v varchar(65530), key(v));
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-drop table t1;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1 (v varchar(65536));
-Warnings:
-Note 1246 Converting column 'v' from VARCHAR to TEXT
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` mediumtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1 (v varchar(65530) character set utf8);
-Warnings:
-Note 1246 Converting column 'v' from VARCHAR to TEXT
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` mediumtext CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set storage_engine=MEMORY;
-create table t1 (v varchar(16384)) engine=MyISAM;
-drop table t1;
-create table t1 (a char(1), b char(1), key(a, b)) engine=MyISAM;
-insert into t1 values ('8', '6'), ('4', '7');
-select min(a) from t1;
-min(a)
-4
-select min(b) from t1 where a='8';
-min(b)
-6
-drop table t1;
-CREATE TABLE t1 ( `a` int(11) NOT NULL auto_increment, `b` int(11) default NULL,PRIMARY KEY (`a`),UNIQUE KEY `b` (`b`)) ENGINE=MyISAM;
-insert into t1 (b) values (1);
-replace into t1 (b) values (2), (1), (3);
-select * from t1;
-a b
-3 1
-2 2
-4 3
-truncate table t1;
-insert into t1 (b) values (1);
-replace into t1 (b) values (2);
-replace into t1 (b) values (1);
-replace into t1 (b) values (3);
-select * from t1;
-a b
-3 1
-2 2
-4 3
-drop table t1;
-create table t1 (rowid int not null auto_increment, val int not null,primary
-key (rowid), unique(val)) engine=MyISAM;
-replace into t1 (val) values ('1'),('2');
-replace into t1 (val) values ('1'),('2');
-insert into t1 (val) values ('1'),('2');
-ERROR 23000: Duplicate entry '1' for key 'val'
-select * from t1;
-rowid val
-3 1
-4 2
-drop table t1;
-CREATE TABLE t1 (GRADE DECIMAL(4) NOT NULL, PRIMARY KEY (GRADE)) ENGINE=MyISAM;
-INSERT INTO t1 (GRADE) VALUES (151),(252),(343);
-SELECT GRADE FROM t1 WHERE GRADE > 160 AND GRADE < 300;
-GRADE
-252
-SELECT GRADE FROM t1 WHERE GRADE= 151;
-GRADE
-151
-DROP TABLE t1;
-create table t1 (f1 varchar(10), f2 varchar(10), primary key (f1,f2)) engine=MyISAM;
-create table t2 (f3 varchar(10), f4 varchar(10), key (f4)) engine=MyISAM;
-insert into t2 values ('aa','cc');
-insert into t1 values ('aa','bb'),('aa','cc');
-delete t1 from t1,t2 where f1=f3 and f4='cc';
-select * from t1;
-f1 f2
-drop table t1,t2;
-connect a,localhost,root,,;
-connect b,localhost,root,,;
-connection a;
-create table t1(a int not null, b int, c int, d int, primary key(a)) engine=MyISAM;
-insert into t1(a) values (1),(2),(3);
-commit;
-connection b;
-set autocommit = 0;
-update t1 set b = 5 where a = 2;
-commit;
-connection a;
-create trigger t1t before insert on t1 for each row begin set NEW.b = NEW.a * 10 + 5, NEW.c = NEW.a / 10; end |
-set autocommit = 0;
-connection a;
-insert into t1(a) values (10),(20),(30),(40),(50),(60),(70),(80),(90),(100),
-(11),(21),(31),(41),(51),(61),(71),(81),(91),(101),
-(12),(22),(32),(42),(52),(62),(72),(82),(92),(102),
-(13),(23),(33),(43),(53),(63),(73),(83),(93),(103),
-(14),(24),(34),(44),(54),(64),(74),(84),(94),(104);
-connection b;
-commit;
-connection a;
-commit;
-drop trigger t1t;
-drop table t1;
-disconnect a;
-disconnect b;
-connect a,localhost,root,,;
-connect b,localhost,root,,;
-connection a;
-create table t1(a int not null, b int, c int, d int, primary key(a)) engine=MyISAM;
-create table t2(a int not null, b int, c int, d int, primary key(a)) engine=MyISAM;
-create table t3(a int not null, b int, c int, d int, primary key(a)) engine=MyISAM;
-create table t4(a int not null, b int, c int, d int, primary key(a)) engine=MyISAM;
-create table t5(a int not null, b int, c int, d int, primary key(a)) engine=MyISAM;
-insert into t1(a) values (1),(2),(3);
-insert into t2(a) values (1),(2),(3);
-insert into t3(a) values (1),(2),(3);
-insert into t4(a) values (1),(2),(3);
-insert into t3(a) values (5),(7),(8);
-insert into t4(a) values (5),(7),(8);
-insert into t5(a) values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12);
-create trigger t1t before insert on t1 for each row begin
-INSERT INTO t2 SET a = NEW.a;
-end |
-create trigger t2t before insert on t2 for each row begin
-DELETE FROM t3 WHERE a = NEW.a;
-end |
-create trigger t3t before delete on t3 for each row begin
-UPDATE t4 SET b = b + 1 WHERE a = OLD.a;
-end |
-create trigger t4t before update on t4 for each row begin
-UPDATE t5 SET b = b + 1 where a = NEW.a;
-end |
-commit;
-set autocommit = 0;
-update t1 set b = b + 5 where a = 1;
-update t2 set b = b + 5 where a = 1;
-update t3 set b = b + 5 where a = 1;
-update t4 set b = b + 5 where a = 1;
-insert into t5(a) values(20);
-commit;
-connection b;
-set autocommit = 0;
-insert into t1(a) values(7);
-insert into t2(a) values(8);
-delete from t2 where a = 3;
-update t4 set b = b + 1 where a = 3;
-commit;
-drop trigger t1t;
-drop trigger t2t;
-drop trigger t3t;
-drop trigger t4t;
-drop table t1, t2, t3, t4, t5;
-connection default;
-disconnect a;
-disconnect b;
-create table t1(a date) engine=MyISAM;
-create table t2(a date, key(a)) engine=MyISAM;
-insert into t1 values('2005-10-01');
-insert into t2 values('2005-10-01');
-select * from t1, t2
-where t2.a between t1.a - interval 2 day and t1.a + interval 2 day;
-a a
-2005-10-01 2005-10-01
-drop table t1, t2;
-create table t1 (id int not null, f_id int not null, f int not null,
-primary key(f_id, id)) engine=MyISAM;
-create table t2 (id int not null,s_id int not null,s varchar(200),
-primary key(id)) engine=MyISAM;
-INSERT INTO t1 VALUES (8, 1, 3);
-INSERT INTO t1 VALUES (1, 2, 1);
-INSERT INTO t2 VALUES (1, 0, '');
-INSERT INTO t2 VALUES (8, 1, '');
-commit;
-DELETE ml.* FROM t1 AS ml LEFT JOIN t2 AS mm ON (mm.id=ml.id)
-WHERE mm.id IS NULL;
-select ml.* from t1 as ml left join t2 as mm on (mm.id=ml.id)
-where mm.id is null lock in share mode;
-id f_id f
-drop table t1,t2;
-connect a,localhost,root,,;
-connect b,localhost,root,,;
-connection a;
-create table t1(a int not null, b int, primary key(a)) engine=MyISAM;
-insert into t1 values(1,1),(2,2),(3,1),(4,2),(5,1),(6,2),(7,3);
-commit;
-set autocommit = 0;
-SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
-update t1 set b = 5 where b = 1;
-connection b;
-set autocommit = 0;
-SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
-select * from t1 where a = 7 and b = 3 for update;
-a b
-7 3
-connection a;
-commit;
-connection b;
-commit;
-drop table t1;
-connection default;
-disconnect a;
-disconnect b;
-CREATE TABLE t1 ( a int ) ENGINE=MyISAM;
-BEGIN;
-INSERT INTO t1 VALUES (1);
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-DROP TABLE t1;
diff --git a/mysql-test/r/mix2_myisam_ucs2.result b/mysql-test/r/mix2_myisam_ucs2.result
deleted file mode 100644
index 830d3b87eb5..00000000000
--- a/mysql-test/r/mix2_myisam_ucs2.result
+++ /dev/null
@@ -1,312 +0,0 @@
-create table t1 (
-a int, b char(10), c char(10), filler char(10), primary key(a, b(2)), unique key (a, c(2))
-) character set utf8 engine = MyISAM;
-create table t2 (
-a int, b char(10), c char(10), filler char(10), primary key(a, b(2)), unique key (a, c(2))
-) character set ucs2 engine = MyISAM;
-insert into t1 values (1,'abcdefg','abcdefg','one');
-insert into t1 values (2,'ijkilmn','ijkilmn','two');
-insert into t1 values (3,'qrstuvw','qrstuvw','three');
-insert into t1 values (4,_utf8 0xe880bd,_utf8 0xe880bd,'four');
-insert into t1 values (4,_utf8 0x5b,_utf8 0x5b,'five');
-insert into t1 values (4,_utf8 0xe880bde880bd,_utf8 0xe880bde880bd,'six');
-insert into t1 values (4,_utf8 0xe880bdD0B1e880bd,_utf8 0xe880bdD0B1e880bd,'seven');
-insert into t1 values (4,_utf8 0xD0B1,_utf8 0xD0B1,'eight');
-insert into t2 values (1,'abcdefg','abcdefg','one');
-insert into t2 values (2,'ijkilmn','ijkilmn','two');
-insert into t2 values (3,'qrstuvw','qrstuvw','three');
-insert into t2 values (4,_ucs2 0x00e400,_ucs2 0x00e400,'four');
-insert into t2 values (4,_ucs2 0x00640065,_ucs2 0x00640065,'five');
-insert into t2 values (4,_ucs2 0x00e400e50068,_ucs2 0x00e400e50068,'six');
-insert into t2 values (4,_ucs2 0x01fc,_ucs2 0x01fc,'seven');
-insert into t2 values (4,_ucs2 0x0120,_ucs2 0x0120,'eight');
-insert into t2 values (4,_ucs2 0x0563,_ucs2 0x0563,'ten');
-insert into t2 values (4,_ucs2 0x05630563,_ucs2 0x05630563,'eleven');
-insert into t2 values (4,_ucs2 0x0563001fc0563,_ucs2 0x0563001fc0563,'point');
-insert into t2 values (4,_ucs2 0x05612020,_ucs2 0x05612020,'taken');
-update t1 set filler = 'boo' where a = 1;
-update t2 set filler ='email' where a = 4;
-select a,hex(b),hex(c),filler from t1 order by filler;
-a hex(b) hex(c) filler
-1 61626364656667 61626364656667 boo
-4 D0B1 D0B1 eight
-4 5B 5B five
-4 E880BD E880BD four
-4 E880BDD0B1E880BD E880BDD0B1E880BD seven
-4 E880BDE880BD E880BDE880BD six
-3 71727374757677 71727374757677 three
-2 696A6B696C6D6E 696A6B696C6D6E two
-select a,hex(b),hex(c),filler from t2 order by filler;
-a hex(b) hex(c) filler
-4 05612020 05612020 email
-4 0000563001FC0563 0000563001FC0563 email
-4 05630563 05630563 email
-4 0563 0563 email
-4 0120 0120 email
-4 01FC 01FC email
-4 00E400E50068 00E400E50068 email
-4 00640065 00640065 email
-4 0000E400 0000E400 email
-1 0061006200630064006500660067 0061006200630064006500660067 one
-3 0071007200730074007500760077 0071007200730074007500760077 three
-2 0069006A006B0069006C006D006E 0069006A006B0069006C006D006E two
-drop table t1;
-drop table t2;
-create table t1 (
-a int, b varchar(10), c varchar(10), filler varchar(10), primary key(a, b(2)), unique key (a, c(2))
-) character set utf8 engine = MyISAM;
-create table t2 (
-a int, b varchar(10), c varchar(10), filler varchar(10), primary key(a, b(2)), unique key (a, c(2))
-) character set ucs2 engine = MyISAM;
-insert into t1 values (1,'abcdefg','abcdefg','one');
-insert into t1 values (2,'ijkilmn','ijkilmn','two');
-insert into t1 values (3,'qrstuvw','qrstuvw','three');
-insert into t1 values (4,_utf8 0xe880bd,_utf8 0xe880bd,'four');
-insert into t1 values (4,_utf8 0x5b,_utf8 0x5b,'five');
-insert into t1 values (4,_utf8 0xe880bde880bd,_utf8 0xe880bde880bd,'six');
-insert into t1 values (4,_utf8 0xe880bdD0B1e880bd,_utf8 0xe880bdD0B1e880bd,'seven');
-insert into t1 values (4,_utf8 0xD0B1,_utf8 0xD0B1,'eight');
-insert into t2 values (1,'abcdefg','abcdefg','one');
-insert into t2 values (2,'ijkilmn','ijkilmn','two');
-insert into t2 values (3,'qrstuvw','qrstuvw','three');
-insert into t2 values (4,_ucs2 0x00e400,_ucs2 0x00e400,'four');
-insert into t2 values (4,_ucs2 0x00640065,_ucs2 0x00640065,'five');
-insert into t2 values (4,_ucs2 0x00e400e50068,_ucs2 0x00e400e50068,'six');
-insert into t2 values (4,_ucs2 0x01fc,_ucs2 0x01fc,'seven');
-insert into t2 values (4,_ucs2 0x0120,_ucs2 0x0120,'eight');
-insert into t2 values (4,_ucs2 0x0563,_ucs2 0x0563,'ten');
-insert into t2 values (4,_ucs2 0x05630563,_ucs2 0x05630563,'eleven');
-insert into t2 values (4,_ucs2 0x0563001fc0563,_ucs2 0x0563001fc0563,'point');
-insert into t2 values (4,_ucs2 0x05612020,_ucs2 0x05612020,'taken');
-update t1 set filler = 'boo' where a = 1;
-update t2 set filler ='email' where a = 4;
-select a,hex(b),hex(c),filler from t1 order by filler;
-a hex(b) hex(c) filler
-1 61626364656667 61626364656667 boo
-4 D0B1 D0B1 eight
-4 5B 5B five
-4 E880BD E880BD four
-4 E880BDD0B1E880BD E880BDD0B1E880BD seven
-4 E880BDE880BD E880BDE880BD six
-3 71727374757677 71727374757677 three
-2 696A6B696C6D6E 696A6B696C6D6E two
-select a,hex(b),hex(c),filler from t2 order by filler;
-a hex(b) hex(c) filler
-4 05612020 05612020 email
-4 0000563001FC0563 0000563001FC0563 email
-4 05630563 05630563 email
-4 0563 0563 email
-4 0120 0120 email
-4 01FC 01FC email
-4 00E400E50068 00E400E50068 email
-4 00640065 00640065 email
-4 0000E400 0000E400 email
-1 0061006200630064006500660067 0061006200630064006500660067 one
-3 0071007200730074007500760077 0071007200730074007500760077 three
-2 0069006A006B0069006C006D006E 0069006A006B0069006C006D006E two
-drop table t1;
-drop table t2;
-create table t1 (
-a int, b text(10), c text(10), filler text(10), primary key(a, b(2)), unique key (a, c(2))
-) character set utf8 engine = MyISAM;
-create table t2 (
-a int, b text(10), c text(10), filler text(10), primary key(a, b(2)), unique key (a, c(2))
-) character set ucs2 engine = MyISAM;
-insert into t1 values (1,'abcdefg','abcdefg','one');
-insert into t1 values (2,'ijkilmn','ijkilmn','two');
-insert into t1 values (3,'qrstuvw','qrstuvw','three');
-insert into t1 values (4,_utf8 0xe880bd,_utf8 0xe880bd,'four');
-insert into t1 values (4,_utf8 0x5b,_utf8 0x5b,'five');
-insert into t1 values (4,_utf8 0xe880bde880bd,_utf8 0xe880bde880bd,'six');
-insert into t1 values (4,_utf8 0xe880bdD0B1e880bd,_utf8 0xe880bdD0B1e880bd,'seven');
-insert into t1 values (4,_utf8 0xD0B1,_utf8 0xD0B1,'eight');
-insert into t2 values (1,'abcdefg','abcdefg','one');
-insert into t2 values (2,'ijkilmn','ijkilmn','two');
-insert into t2 values (3,'qrstuvw','qrstuvw','three');
-insert into t2 values (4,_ucs2 0x00e400,_ucs2 0x00e400,'four');
-insert into t2 values (4,_ucs2 0x00640065,_ucs2 0x00640065,'five');
-insert into t2 values (4,_ucs2 0x00e400e50068,_ucs2 0x00e400e50068,'six');
-insert into t2 values (4,_ucs2 0x01fc,_ucs2 0x01fc,'seven');
-insert into t2 values (4,_ucs2 0x0120,_ucs2 0x0120,'eight');
-insert into t2 values (4,_ucs2 0x0563,_ucs2 0x0563,'ten');
-insert into t2 values (4,_ucs2 0x05630563,_ucs2 0x05630563,'eleven');
-insert into t2 values (4,_ucs2 0x0563001fc0563,_ucs2 0x0563001fc0563,'point');
-insert into t2 values (4,_ucs2 0x05612020,_ucs2 0x05612020,'taken');
-update t1 set filler = 'boo' where a = 1;
-update t2 set filler ='email' where a = 4;
-select a,hex(b),hex(c),filler from t1 order by filler;
-a hex(b) hex(c) filler
-1 61626364656667 61626364656667 boo
-4 D0B1 D0B1 eight
-4 5B 5B five
-4 E880BD E880BD four
-4 E880BDD0B1E880BD E880BDD0B1E880BD seven
-4 E880BDE880BD E880BDE880BD six
-3 71727374757677 71727374757677 three
-2 696A6B696C6D6E 696A6B696C6D6E two
-select a,hex(b),hex(c),filler from t2 order by filler;
-a hex(b) hex(c) filler
-4 0000E400 0000E400 email
-4 00640065 00640065 email
-4 00E400E50068 00E400E50068 email
-4 01FC 01FC email
-4 0120 0120 email
-4 0563 0563 email
-4 05630563 05630563 email
-4 0000563001FC0563 0000563001FC0563 email
-4 05612020 05612020 email
-1 0061006200630064006500660067 0061006200630064006500660067 one
-3 0071007200730074007500760077 0071007200730074007500760077 three
-2 0069006A006B0069006C006D006E 0069006A006B0069006C006D006E two
-drop table t1;
-drop table t2;
-create table t1 (
-a int, b blob(10), c blob(10), filler blob(10), primary key(a, b(2)), unique key (a, c(2))
-) character set utf8 engine = MyISAM;
-create table t2 (
-a int, b blob(10), c blob(10), filler blob(10), primary key(a, b(2)), unique key (a, c(2))
-) character set ucs2 engine = MyISAM;
-insert into t1 values (1,'abcdefg','abcdefg','one');
-insert into t1 values (2,'ijkilmn','ijkilmn','two');
-insert into t1 values (3,'qrstuvw','qrstuvw','three');
-insert into t1 values (4,_utf8 0xe880bd,_utf8 0xe880bd,'four');
-insert into t1 values (4,_utf8 0x5b,_utf8 0x5b,'five');
-insert into t1 values (4,_utf8 0xD0B1,_utf8 0xD0B1,'eight');
-insert into t2 values (1,'abcdefg','abcdefg','one');
-insert into t2 values (2,'ijkilmn','ijkilmn','two');
-insert into t2 values (3,'qrstuvw','qrstuvw','three');
-insert into t2 values (4,_ucs2 0x00e400,_ucs2 0x00e400,'four');
-insert into t2 values (4,_ucs2 0x00640065,_ucs2 0x00640065,'five');
-insert into t2 values (4,_ucs2 0x00e400e50068,_ucs2 0x00e400e50068,'six');
-insert into t2 values (4,_ucs2 0x01fc,_ucs2 0x01fc,'seven');
-insert into t2 values (4,_ucs2 0x0120,_ucs2 0x0120,'eight');
-insert into t2 values (4,_ucs2 0x0563,_ucs2 0x0563,'ten');
-insert into t2 values (4,_ucs2 0x05612020,_ucs2 0x05612020,'taken');
-update t1 set filler = 'boo' where a = 1;
-update t2 set filler ='email' where a = 4;
-select a,hex(b),hex(c),filler from t1 order by filler;
-a hex(b) hex(c) filler
-1 61626364656667 61626364656667 boo
-4 D0B1 D0B1 eight
-4 5B 5B five
-4 E880BD E880BD four
-3 71727374757677 71727374757677 three
-2 696A6B696C6D6E 696A6B696C6D6E two
-select a,hex(b),hex(c),filler from t2 order by filler;
-a hex(b) hex(c) filler
-4 0000E400 0000E400 email
-4 00640065 00640065 email
-4 00E400E50068 00E400E50068 email
-4 01FC 01FC email
-4 0120 0120 email
-4 0563 0563 email
-4 05612020 05612020 email
-1 61626364656667 61626364656667 one
-3 71727374757677 71727374757677 three
-2 696A6B696C6D6E 696A6B696C6D6E two
-drop table t1;
-drop table t2;
-commit;
-CREATE TABLE t1 (
-ind enum('0','1','2') NOT NULL default '0',
-string1 varchar(250) NOT NULL,
-PRIMARY KEY (ind)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-CREATE TABLE t2 (
-ind enum('0','1','2') NOT NULL default '0',
-string1 varchar(250) NOT NULL,
-PRIMARY KEY (ind)
-) ENGINE=MyISAM DEFAULT CHARSET=ucs2;
-INSERT INTO t1 VALUES ('1', ''),('2', '');
-INSERT INTO t2 VALUES ('1', ''),('2', '');
-SELECT hex(ind),hex(string1) FROM t1 ORDER BY string1;
-hex(ind) hex(string1)
-31
-32
-SELECT hex(ind),hex(string1) FROM t2 ORDER BY string1;
-hex(ind) hex(string1)
-0031
-0032
-drop table t1,t2;
-CREATE TABLE t1 (
-ind set('0','1','2') NOT NULL default '0',
-string1 varchar(250) NOT NULL,
-PRIMARY KEY (ind)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-CREATE TABLE t2 (
-ind set('0','1','2') NOT NULL default '0',
-string1 varchar(250) NOT NULL,
-PRIMARY KEY (ind)
-) ENGINE=MyISAM DEFAULT CHARSET=ucs2;
-INSERT INTO t1 VALUES ('1', ''),('2', '');
-INSERT INTO t2 VALUES ('1', ''),('2', '');
-SELECT hex(ind),hex(string1) FROM t1 ORDER BY string1;
-hex(ind) hex(string1)
-31
-32
-SELECT hex(ind),hex(string1) FROM t2 ORDER BY string1;
-hex(ind) hex(string1)
-0031
-0032
-drop table t1,t2;
-CREATE TABLE t1 (
-ind bit not null,
-string1 varchar(250) NOT NULL,
-PRIMARY KEY (ind)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-CREATE TABLE t2 (
-ind bit not null,
-string1 varchar(250) NOT NULL,
-PRIMARY KEY (ind)
-) ENGINE=MyISAM DEFAULT CHARSET=ucs2;
-insert into t1 values(0,''),(1,'');
-insert into t2 values(0,''),(1,'');
-select hex(ind),hex(string1) from t1 order by string1;
-hex(ind) hex(string1)
-0
-1
-select hex(ind),hex(string1) from t2 order by string1;
-hex(ind) hex(string1)
-0
-1
-drop table t1,t2;
-create table t2 (
-a int, b char(10), filler char(10), primary key(a, b(2))
-) character set utf8 engine = MyISAM;
-insert into t2 values (1,'abcdefg','one');
-insert into t2 values (2,'ijkilmn','two');
-insert into t2 values (3, 'qrstuvw','three');
-update t2 set a=5, filler='booo' where a=1;
-drop table t2;
-create table t2 (
-a int, b char(10), filler char(10), primary key(a, b(2))
-) character set ucs2 engine = MyISAM;
-insert into t2 values (1,'abcdefg','one');
-insert into t2 values (2,'ijkilmn','two');
-insert into t2 values (3, 'qrstuvw','three');
-update t2 set a=5, filler='booo' where a=1;
-drop table t2;
-create table t1(a int not null, b char(110),primary key(a,b(100))) engine=MyISAM default charset=utf8;
-insert into t1 values(1,'abcdefg'),(2,'defghijk');
-insert into t1 values(6,_utf8 0xD0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1);
-insert into t1 values(7,_utf8 0xD0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B2);
-select a,hex(b) from t1 order by b;
-a hex(b)
-1 61626364656667
-2 6465666768696A6B
-6 D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1
-7 D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B2
-update t1 set b = 'three' where a = 6;
-drop table t1;
-create table t1(a int not null, b text(110),primary key(a,b(100))) engine=MyISAM default charset=utf8;
-insert into t1 values(1,'abcdefg'),(2,'defghijk');
-insert into t1 values(6,_utf8 0xD0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1);
-insert into t1 values(7,_utf8 0xD0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B2);
-select a,hex(b) from t1 order by b;
-a hex(b)
-1 61626364656667
-2 6465666768696A6B
-6 D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1
-7 D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B1D0B2
-update t1 set b = 'three' where a = 6;
-drop table t1;
diff --git a/mysql-test/r/mrr_derived_crash_4610.result b/mysql-test/r/mrr_derived_crash_4610.result
deleted file mode 100644
index 3e38a0d4218..00000000000
--- a/mysql-test/r/mrr_derived_crash_4610.result
+++ /dev/null
@@ -1,19 +0,0 @@
-create table t1 (f1 char(4) primary key) engine=innodb charset=utf8 ;
-insert into t1 values ('aaaa');
-create table t2 (f2 text, f3 char(4) not null) engine=innodb charset=utf8 ;
-create table t3 (id int not null) engine=innodb charset=utf8 ;
-create table t4 (val int not null) engine=innodb charset=utf8;
-explain select 1 from
-(select f2, f3, val, count(id) from t4 join t2 left join t3 on 0) top
-join t1 on f1 = f3 where f3 = 'aaaa' order by val;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 const PRIMARY PRIMARY 12 const 1 Using index
-1 PRIMARY <derived2> ref key0 key0 13 const 0 Using where; Using filesort
-2 DERIVED t4 ALL NULL NULL NULL NULL 1
-2 DERIVED t2 ALL NULL NULL NULL NULL 1 Using join buffer (flat, BNL join)
-2 DERIVED t3 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-select 1 from
-(select f2, f3, val, count(id) from t4 join t2 left join t3 on 0) top
-join t1 on f1 = f3 where f3 = 'aaaa' order by val;
-1
-drop table t1, t2, t3, t4;
diff --git a/mysql-test/r/mrr_icp_extra.result b/mysql-test/r/mrr_icp_extra.result
deleted file mode 100644
index 95788b393dd..00000000000
--- a/mysql-test/r/mrr_icp_extra.result
+++ /dev/null
@@ -1,898 +0,0 @@
-call mtr.add_suppression("Can't find record in .*");
-set @mrr_icp_extra_tmp=@@optimizer_switch;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-SET NAMES latin1;
-CREATE TABLE t1
-(s1 char(10) COLLATE latin1_german1_ci,
-s2 char(10) COLLATE latin1_swedish_ci,
-KEY(s1),
-KEY(s2));
-INSERT INTO t1 VALUES ('a','a');
-INSERT INTO t1 VALUES ('b','b');
-INSERT INTO t1 VALUES ('c','c');
-INSERT INTO t1 VALUES ('d','d');
-INSERT INTO t1 VALUES ('e','e');
-INSERT INTO t1 VALUES ('f','f');
-INSERT INTO t1 VALUES ('g','g');
-INSERT INTO t1 VALUES ('h','h');
-INSERT INTO t1 VALUES ('i','i');
-INSERT INTO t1 VALUES ('j','j');
-EXPLAIN SELECT * FROM t1 WHERE s1='a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref s1 s1 11 const 1 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE s2='a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref s2 s2 11 const 1 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE s1='a' COLLATE latin1_german1_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref s1 s1 11 const 1 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE s2='a' COLLATE latin1_german1_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL s2 NULL NULL NULL 10 Using where
-EXPLAIN SELECT * FROM t1 WHERE s1 BETWEEN 'a' AND 'b' COLLATE latin1_german1_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range s1 s1 11 NULL 2 Using index condition; Rowid-ordered scan
-EXPLAIN SELECT * FROM t1 WHERE s2 BETWEEN 'a' AND 'b' COLLATE latin1_german1_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL s2 NULL NULL NULL 10 Using where
-EXPLAIN SELECT * FROM t1 WHERE s1 IN ('a','b' COLLATE latin1_german1_ci);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range s1 s1 11 NULL 2 Using index condition; Rowid-ordered scan
-EXPLAIN SELECT * FROM t1 WHERE s2 IN ('a','b' COLLATE latin1_german1_ci);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL s2 NULL NULL NULL 10 Using where
-EXPLAIN SELECT * FROM t1 WHERE s1 LIKE 'a' COLLATE latin1_german1_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range s1 s1 11 NULL 1 Using index condition; Rowid-ordered scan
-EXPLAIN SELECT * FROM t1 WHERE s2 LIKE 'a' COLLATE latin1_german1_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL s2 NULL NULL NULL 10 Using where
-DROP TABLE t1;
-#
-#
-CREATE TABLE t2 (a varchar(32), b int(11), c float, d double,
-UNIQUE KEY a (a,b,c), KEY b (b), KEY c (c));
-CREATE TABLE t1 (a varchar(32), b char(3), UNIQUE KEY a (a,b), KEY b (b));
-CREATE TABLE t3 (a varchar(32), b char(3), UNIQUE KEY a (a,b));
-INSERT INTO t3 SELECT * FROM t1;
-EXPLAIN
-SELECT d FROM t1, t2
-WHERE t2.b=14 AND t2.a=t1.a AND 5.1<t2.c AND t1.b='DE'
-ORDER BY t2.c LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT d FROM t1, t2
-WHERE t2.b=14 AND t2.a=t1.a AND 5.1<t2.c AND t1.b='DE'
-ORDER BY t2.c LIMIT 1;
-d
-DROP TABLE t1,t2,t3;
-#
-#
-create table t1(a int, b int, index(b));
-insert into t1 values (2, 1), (1, 1), (4, NULL), (3, NULL), (6, 2), (5, 2);
-insert into t1 values (2, 11), (1, 11), (4, 14), (3, 14), (6, 12), (5, 12);
-explain select * from t1 where b=1 or b is null order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null b b 5 const 4 Using index condition; Using where; Using filesort
-select * from t1 where b=1 or b is null order by a;
-a b
-1 1
-2 1
-3 NULL
-4 NULL
-explain select * from t1 where b=2 or b is null order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null b b 5 const 3 Using index condition; Using where; Using filesort
-select * from t1 where b=2 or b is null order by a;
-a b
-3 NULL
-4 NULL
-5 2
-6 2
-drop table t1;
-#
-#
-CREATE TABLE t1 (
-FieldKey varchar(36) NOT NULL default '',
-LongVal bigint(20) default NULL,
-StringVal mediumtext,
-KEY FieldKey (FieldKey),
-KEY LongField (FieldKey,LongVal),
-KEY StringField (FieldKey,StringVal(32))
-);
-INSERT INTO t1 VALUES ('0',3,'0'),('0',2,'1'),('0',1,'2'),('1',2,'1'),('1',1,'3'), ('1',0,'2'),('2',3,'0'),('2',2,'1'),('2',1,'2'),('2',3,'0'),('2',2,'1'),('2',1,'2'),('3',2,'1'),('3',1,'2'),('3','3','3');
-EXPLAIN SELECT * FROM t1 IGNORE INDEX (LongField, StringField) WHERE FieldKey > '2' ORDER BY LongVal;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range FieldKey FieldKey 38 NULL 4 Using index condition; Rowid-ordered scan; Using filesort
-EXPLAIN SELECT * FROM t1 IGNORE INDEX (FieldKey, LongField) WHERE FieldKey > '2' ORDER BY LongVal;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range StringField StringField 38 NULL 4 Using where; Using filesort
-SELECT * FROM t1 WHERE FieldKey > '2' ORDER BY LongVal;
-FieldKey LongVal StringVal
-3 1 2
-3 2 1
-3 3 3
-DROP TABLE t1;
-#
-#
-CREATE TABLE t1 (a int not null, b int, c int, key(b), key(c), key(a,b), key(c,a));
-INSERT into t1 values (0, null, 0), (0, null, 1), (0, null, 2), (0, null,3), (1,1,4);
-create table t2 (a int not null, b int, c int, key(b), key(c), key(a));
-INSERT into t2 values (1,1,1), (2,2,2);
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-explain select * from t1 force index (a) where a=0 or a=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 4 NULL 4 Using index condition; Using where; Rowid-ordered scan
-select * from t1 force index (a) where a=0 or a=2;
-a b c
-0 NULL 0
-0 NULL 1
-0 NULL 2
-0 NULL 3
-drop table t1;
-#
-#
-create table t1
-(
-pk1 int not null,
-pk2 int not null,
-key1 int not null,
-key2 int not null,
-pktail1ok int not null,
-pktail2ok int not null,
-pktail3bad int not null,
-pktail4bad int not null,
-pktail5bad int not null,
-pk2copy int not null,
-badkey int not null,
-filler1 char (200),
-filler2 char (200),
-key (key1),
-key (key2),
-/* keys with tails from CPK members */
-key (pktail1ok, pk1),
-key (pktail2ok, pk1, pk2),
-key (pktail3bad, pk2, pk1),
-key (pktail4bad, pk1, pk2copy),
-key (pktail5bad, pk1, pk2, pk2copy),
-primary key (pk1, pk2)
-);
-explain select * from t1 where pk1 = 1 and pk2 < 80 and key1=0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,key1 PRIMARY 8 NULL 7 Using index condition; Using where; Rowid-ordered scan
-select * from t1 where pk1 = 1 and pk2 < 80 and key1=0;
-pk1 pk2 key1 key2 pktail1ok pktail2ok pktail3bad pktail4bad pktail5bad pk2copy badkey filler1 filler2
-1 19 0 0 0 0 0 0 0 19 0 filler-data-19 filler2
-1 18 0 0 0 0 0 0 0 18 0 filler-data-18 filler2
-1 17 0 0 0 0 0 0 0 17 0 filler-data-17 filler2
-1 16 0 0 0 0 0 0 0 16 0 filler-data-16 filler2
-1 15 0 0 0 0 0 0 0 15 0 filler-data-15 filler2
-1 14 0 0 0 0 0 0 0 14 0 filler-data-14 filler2
-1 13 0 0 0 0 0 0 0 13 0 filler-data-13 filler2
-1 12 0 0 0 0 0 0 0 12 0 filler-data-12 filler2
-1 11 0 0 0 0 0 0 0 11 0 filler-data-11 filler2
-1 10 0 0 0 0 0 0 0 10 0 filler-data-10 filler2
-drop table t1;
-#
-#
-CREATE TABLE t1 (
-f1 int,
-f4 varchar(32),
-f5 int,
-PRIMARY KEY (f1),
-KEY (f4)
-);
-INSERT INTO t1 VALUES
-(5,'H',1), (9,'g',0), (527,'i',0), (528,'y',1), (529,'S',6),
-(530,'m',7), (531,'b',2), (532,'N',1), (533,'V',NULL), (534,'l',1),
-(535,'M',0), (536,'w',1), (537,'j',5), (538,'l',0), (539,'n',2),
-(540,'m',2), (541,'r',2), (542,'l',2), (543,'h',3),(544,'o',0),
-(956,'h',0), (957,'g',0), (958,'W',5), (959,'s',3), (960,'w',0),
-(961,'q',0), (962,'e',NULL), (963,'u',7), (964,'q',1), (965,'N',NULL),
-(966,'e',0), (967,'t',3), (968,'e',6), (969,'f',NULL), (970,'j',0),
-(971,'s',3), (972,'I',0), (973,'h',4), (974,'g',1), (975,'s',0),
-(976,'r',3), (977,'x',1), (978,'v',8), (979,'j',NULL), (980,'z',7),
-(981,'t',9), (982,'j',5), (983,'u',NULL), (984,'g',6), (985,'w',1),
-(986,'h',1), (987,'v',0), (988,'v',0), (989,'c',2), (990,'b',7),
-(991,'z',0), (992,'M',1), (993,'u',2), (994,'r',2), (995,'b',4),
-(996,'A',2), (997,'u',0), (998,'a',0), (999,'j',2), (1,'I',2);
-EXPLAIN
-SELECT * FROM t1
-WHERE (f1 < 535 OR f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,f4 f4 35 NULL 5 Using index condition; Using where; Rowid-ordered scan
-SELECT * FROM t1
-WHERE (f1 < 535 OR f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ;
-f1 f4 f5
-994 r 2
-996 A 2
-998 a 0
-drop table t1;
-#
-#
-drop table if exists t1,t2,t3;
---- Testing varchar ---
---- Testing varchar ---
-create table t1 (v varchar(10), c char(10), t text);
-insert into t1 values('+ ', '+ ', '+ ');
-set @a=repeat(' ',20);
-insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
-Warnings:
-Note 1265 Data truncated for column 'v' at row 1
-select concat('*',v,'*',c,'*',t,'*') from t1;
-concat('*',v,'*',c,'*',t,'*')
-*+ *+*+ *
-*+ *+*+ *
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table t2 like t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table t3 select * from t1;
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 modify c varchar(10);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` varchar(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 modify v char(10);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` char(10) DEFAULT NULL,
- `c` varchar(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 modify t varchar(10);
-Warnings:
-Note 1265 Data truncated for column 't' at row 2
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` char(10) DEFAULT NULL,
- `c` varchar(10) DEFAULT NULL,
- `t` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select concat('*',v,'*',c,'*',t,'*') from t1;
-concat('*',v,'*',c,'*',t,'*')
-*+*+*+ *
-*+*+*+ *
-drop table t1,t2,t3;
-create table t1 (v varchar(10), c char(10), t text, key(v), key(c), key(t(10)));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `v` (`v`),
- KEY `c` (`c`),
- KEY `t` (`t`(10))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select count(*) from t1;
-count(*)
-270
-insert into t1 values(concat('a',char(1)),concat('a',char(1)),concat('a',char(1)));
-select count(*) from t1 where v='a';
-count(*)
-10
-select count(*) from t1 where c='a';
-count(*)
-10
-select count(*) from t1 where t='a';
-count(*)
-10
-select count(*) from t1 where v='a ';
-count(*)
-10
-select count(*) from t1 where c='a ';
-count(*)
-10
-select count(*) from t1 where t='a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-count(*)
-10
-select count(*) from t1 where v like 'a%';
-count(*)
-11
-select count(*) from t1 where c like 'a%';
-count(*)
-11
-select count(*) from t1 where t like 'a%';
-count(*)
-11
-select count(*) from t1 where v like 'a %';
-count(*)
-9
-explain select count(*) from t1 where v='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 13 const # Using where; Using index
-explain select count(*) from t1 where c='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref c c 11 const # Using where; Using index
-explain select count(*) from t1 where t='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref t t 13 const # Using where
-explain select count(*) from t1 where v like 'a%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 13 NULL # Using where; Using index
-explain select count(*) from t1 where v between 'a' and 'a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 13 const # Using where; Using index
-explain select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 13 const # Using where; Using index
-alter table t1 add unique(v);
-ERROR 23000: Duplicate entry '{ ' for key 'v_2'
-show warnings;
-Level Code Message
-Error 1062 Duplicate entry 'a' for key 'v_2'
-alter table t1 add key(v);
-Warnings:
-Note 1831 Duplicate index `v_2`. This is deprecated and will be disallowed in a future release
-select concat('*',v,'*',c,'*',t,'*') as qq from t1 where v='a';
-qq
-*a*a*a*
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-explain select * from t1 where v='a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v,v_2 # 13 const # #
-select v,count(*) from t1 group by v limit 10;
-v count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(c) from t1 group by v limit 10;
-v count(c)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(c) from t1 group by v limit 10;
-v count(c)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select c,count(*) from t1 group by c limit 10;
-c count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select c,count(t) from t1 group by c limit 10;
-c count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result c,count(t) from t1 group by c limit 10;
-c count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select t,count(*) from t1 group by t limit 10;
-t count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select t,count(t) from t1 group by t limit 10;
-t count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result t,count(t) from t1 group by t limit 10;
-t count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-alter table t1 modify v varchar(300), drop key v, drop key v_2, add key v (v);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(300) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `c` (`c`),
- KEY `t` (`t`(10)),
- KEY `v` (`v`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select count(*) from t1 where v='a';
-count(*)
-10
-select count(*) from t1 where v='a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-count(*)
-10
-select count(*) from t1 where v like 'a%';
-count(*)
-11
-select count(*) from t1 where v like 'a %';
-count(*)
-9
-explain select count(*) from t1 where v='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 303 const # Using where; Using index
-explain select count(*) from t1 where v like 'a%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 303 NULL # Using where; Using index
-explain select count(*) from t1 where v between 'a' and 'a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 303 const # Using where; Using index
-explain select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 303 const # Using where; Using index
-explain select * from t1 where v='a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 303 const # #
-select v,count(*) from t1 group by v limit 10;
-v count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-alter table t1 drop key v, add key v (v(30));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(300) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `c` (`c`),
- KEY `t` (`t`(10)),
- KEY `v` (`v`(30))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select count(*) from t1 where v='a';
-count(*)
-10
-select count(*) from t1 where v='a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-count(*)
-10
-select count(*) from t1 where v like 'a%';
-count(*)
-11
-select count(*) from t1 where v like 'a %';
-count(*)
-9
-explain select count(*) from t1 where v='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 33 const # Using where
-explain select count(*) from t1 where v like 'a%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 33 NULL # Using where
-explain select count(*) from t1 where v between 'a' and 'a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 33 const # Using where
-explain select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 33 const # Using where
-explain select * from t1 where v='a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 33 const # #
-select v,count(*) from t1 group by v limit 10;
-v count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-alter table t1 modify v varchar(600), drop key v, add key v (v);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(600) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `c` (`c`),
- KEY `t` (`t`(10)),
- KEY `v` (`v`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select v,count(*) from t1 group by v limit 10;
-v count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-drop table t1;
-create table t1 (a char(10), unique (a));
-insert into t1 values ('a ');
-insert into t1 values ('a ');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-alter table t1 modify a varchar(10);
-insert into t1 values ('a '),('a '),('a '),('a ');
-ERROR 23000: Duplicate entry 'a ' for key 'a'
-insert into t1 values ('a ');
-ERROR 23000: Duplicate entry 'a ' for key 'a'
-insert into t1 values ('a ');
-ERROR 23000: Duplicate entry 'a ' for key 'a'
-insert into t1 values ('a ');
-ERROR 23000: Duplicate entry 'a ' for key 'a'
-update t1 set a='a ' where a like 'a%';
-select concat(a,'.') from t1;
-concat(a,'.')
-a .
-update t1 set a='abc ' where a like 'a ';
-select concat(a,'.') from t1;
-concat(a,'.')
-a .
-update t1 set a='a ' where a like 'a %';
-select concat(a,'.') from t1;
-concat(a,'.')
-a .
-update t1 set a='a ' where a like 'a ';
-select concat(a,'.') from t1;
-concat(a,'.')
-a .
-drop table t1;
-create table t1 (v varchar(10), c char(10), t text, key(v(5)), key(c(5)), key(t(5)));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `v` (`v`(5)),
- KEY `c` (`c`(5)),
- KEY `t` (`t`(5))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (v char(10) character set utf8);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` char(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (v varchar(10), c char(10)) row_format=fixed;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED
-insert into t1 values('a','a'),('a ','a ');
-select concat('*',v,'*',c,'*') from t1;
-concat('*',v,'*',c,'*')
-*a*a*
-*a *a*
-drop table t1;
-create table t1 (v varchar(65530), key(v(10)));
-insert into t1 values(repeat('a',65530));
-select length(v) from t1 where v=repeat('a',65530);
-length(v)
-65530
-drop table t1;
-create table t1(a int, b varchar(12), key ba(b, a));
-insert into t1 values (1, 'A'), (20, NULL);
-explain select * from t1 where a=20 and b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref ba ba 20 const,const 1 Using where; Using index
-select * from t1 where a=20 and b is null;
-a b
-20 NULL
-drop table t1;
-#
-#
-drop database if exists world;
-CREATE DATABASE world;
-use world;
-CREATE TABLE Country (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name)
-);
-CREATE TABLE City (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-);
-CREATE TABLE CountryLanguage (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-);
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
-AND (Population > 101000 AND Population < 102000);
-ID Name Country Population
-637 Mit Ghamr EGY 101801
-707 Marbella ESP 101144
-3792 Tartu EST 101246
-4032 Cambridge USA 101355
-explain
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
-AND (Population > 101000 AND Population < 102000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Country Population 4 NULL # Using index condition; Using where; Rowid-ordered scan
-explain
-SELECT * FROM City
-WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country Country,Population 3,4 NULL # Using sort_union(Country,Population); Using where
-SELECT * FROM City
-WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
-ID Name Country Population
-65 Abu Dhabi ARE 398695
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-750 Paarl ZAF 105768
-2865 Pak Pattan PAK 107800
-SELECT * FROM City
-WHERE Name LIKE 'M%' AND Population > 7000000;
-ID Name Country Population
-1024 Mumbai (Bombay) IND 10500000
-3580 Moscow RUS 8389200
-explain
-SELECT * FROM City
-WHERE Name LIKE 'M%' AND Population > 7000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL # Using index condition; Using where; Rowid-ordered scan
-explain
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Country # # NULL # Using index condition; Using where; Rowid-ordered scan
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
-ID Name Country Population
-1895 Harbin CHN 4289800
-1904 Jinan CHN 2278100
-1905 Hangzhou CHN 2190500
-1914 Guiyang CHN 1465200
-1916 Hefei CHN 1369100
-1923 Jilin CHN 1040000
-1927 Hohhot CHN 916700
-1928 Handan CHN 840000
-1937 Huainan CHN 700000
-1938 Jixi CHN 683885
-1944 Jinzhou CHN 570000
-1950 Hegang CHN 520000
-explain
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 500000 AND Country LIKE 'C%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Country # # NULL # Using index condition; Using where; Rowid-ordered scan
-SELECT * FROM City
-WHERE Name BETWEEN 'G' AND 'J' AND Population > 500000 AND Country LIKE 'C%';
-ID Name Country Population
-1895 Harbin CHN 4289800
-1905 Hangzhou CHN 2190500
-1914 Guiyang CHN 1465200
-1916 Hefei CHN 1369100
-1927 Hohhot CHN 916700
-1928 Handan CHN 840000
-1937 Huainan CHN 700000
-1950 Hegang CHN 520000
-drop database world;
-use test;
-set @mrr_icp_extra_tmp=@@optimizer_switch;
diff --git a/mysql-test/r/multi_statement.result b/mysql-test/r/multi_statement.result
deleted file mode 100644
index ff19cbdd698..00000000000
--- a/mysql-test/r/multi_statement.result
+++ /dev/null
@@ -1,51 +0,0 @@
-DROP TABLE IF EXISTS t1;
-select 1;
-1
-1
-select 2;
-select 3;
-select 4||||
-2
-2
-3
-3
-4
-4
-select 5;
-select 6;
-select 50, 'abc';'abcd'
-5
-5
-6
-6
-50 abc
-50 abc
-select "abcd'";'abcd'
-abcd'
-abcd'
-select "'abcd";'abcd'
-'abcd
-'abcd
-select 5'abcd'
-5
-5
-select 'finish';
-finish
-finish
-flush status;
-create table t1 (i int);
-insert into t1 values (1);
-select * from t1 where i = 1;
-insert into t1 values (2),(3),(4);
-select * from t1 where i = 2;
-select * from t1 where i = 3||||
-i
-1
-i
-2
-i
-3
-show status like 'Slow_queries'||||
-Variable_name Value
-Slow_queries 2
-drop table t1||||
diff --git a/mysql-test/r/multi_update.result b/mysql-test/r/multi_update.result
deleted file mode 100644
index 45239f6e090..00000000000
--- a/mysql-test/r/multi_update.result
+++ /dev/null
@@ -1,970 +0,0 @@
-create table t1(id1 int not null auto_increment primary key, t char(12));
-create table t2(id2 int not null, t char(12));
-create table t3(id3 int not null, t char(12), index(id3));
-select count(*) from t1 where id1 > 95;
-count(*)
-5
-select count(*) from t2 where id2 > 95;
-count(*)
-25
-select count(*) from t3 where id3 > 95;
-count(*)
-250
-update t1,t2,t3 set t1.t="aaa", t2.t="bbb", t3.t="cc" where t1.id1 = t2.id2 and t2.id2 = t3.id3 and t1.id1 > 90;
-select count(*) from t1 where t = "aaa";
-count(*)
-10
-select count(*) from t1 where id1 > 90;
-count(*)
-10
-select count(*) from t2 where t = "bbb";
-count(*)
-50
-select count(*) from t2 where id2 > 90;
-count(*)
-50
-select count(*) from t3 where t = "cc";
-count(*)
-500
-select count(*) from t3 where id3 > 90;
-count(*)
-500
-delete t1.*, t2.*, t3.* from t1,t2,t3 where t1.id1 = t2.id2 and t2.id2 = t3.id3 and t1.id1 > 95;
-check table t1, t2, t3;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-test.t2 check status OK
-test.t3 check status OK
-select count(*) from t1 where id1 > 95;
-count(*)
-0
-select count(*) from t2 where id2 > 95;
-count(*)
-0
-select count(*) from t3 where id3 > 95;
-count(*)
-0
-delete t1, t2, t3 from t1,t2,t3 where t1.id1 = t2.id2 and t2.id2 = t3.id3 and t1.id1 > 5;
-select count(*) from t1 where id1 > 5;
-count(*)
-0
-select count(*) from t2 where id2 > 5;
-count(*)
-0
-select count(*) from t3 where id3 > 5;
-count(*)
-0
-delete from t1, t2, t3 using t1,t2,t3 where t1.id1 = t2.id2 and t2.id2 = t3.id3 and t1.id1 > 0;
-select count(*) from t1 where id1;
-count(*)
-0
-select count(*) from t2 where id2;
-count(*)
-0
-select count(*) from t3 where id3;
-count(*)
-0
-drop table t1,t2,t3;
-create table t1(id1 int not null primary key, t varchar(100)) pack_keys = 1;
-create table t2(id2 int not null, t varchar(100), index(id2)) pack_keys = 1;
-delete t1 from t1,t2 where t1.id1 = t2.id2 and t1.id1 > 500;
-drop table t1,t2;
-CREATE TABLE t1 (
-id int(11) NOT NULL default '0',
-name varchar(10) default NULL,
-PRIMARY KEY (id)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'aaa'),(2,'aaa'),(3,'aaa');
-CREATE TABLE t2 (
-id int(11) NOT NULL default '0',
-name varchar(10) default NULL,
-PRIMARY KEY (id)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (2,'bbb'),(3,'bbb'),(4,'bbb');
-CREATE TABLE t3 (
-id int(11) NOT NULL default '0',
-mydate datetime default NULL,
-PRIMARY KEY (id)
-) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (1,'2002-02-04 00:00:00'),(3,'2002-05-12 00:00:00'),(5,'2002-05-12 00:00:00'),(6,'2002-06-22
-00:00:00'),(7,'2002-07-22 00:00:00');
-delete t1,t2,t3 from t1,t2,t3 where to_days(now())-to_days(t3.mydate)>=30 and t3.id=t1.id and t3.id=t2.id;
-select * from t3;
-id mydate
-1 2002-02-04 00:00:00
-5 2002-05-12 00:00:00
-6 2002-06-22 00:00:00
-7 2002-07-22 00:00:00
-DROP TABLE t1,t2,t3;
-CREATE TABLE IF NOT EXISTS `t1` (
-`id` int(11) NOT NULL auto_increment,
-`tst` text,
-`tst1` text,
-PRIMARY KEY (`id`)
-) ENGINE=MyISAM;
-CREATE TABLE IF NOT EXISTS `t2` (
-`ID` int(11) NOT NULL auto_increment,
-`ParId` int(11) default NULL,
-`tst` text,
-`tst1` text,
-PRIMARY KEY (`ID`),
-KEY `IX_ParId_t2` (`ParId`),
-FOREIGN KEY (`ParId`) REFERENCES `t1` (`id`)
-) ENGINE=MyISAM;
-INSERT INTO t1(tst,tst1) VALUES("MySQL","MySQL AB"), ("MSSQL","Microsoft"), ("ORACLE","ORACLE");
-INSERT INTO t2(ParId) VALUES(1), (2), (3);
-select * from t2;
-ID ParId tst tst1
-1 1 NULL NULL
-2 2 NULL NULL
-3 3 NULL NULL
-UPDATE t2, t1 SET t2.tst = t1.tst, t2.tst1 = t1.tst1 WHERE t2.ParId = t1.Id;
-select * from t2;
-ID ParId tst tst1
-1 1 MySQL MySQL AB
-2 2 MSSQL Microsoft
-3 3 ORACLE ORACLE
-drop table t1, t2 ;
-create table t1 (n numeric(10));
-create table t2 (n numeric(10));
-insert into t2 values (1),(2),(4),(8),(16),(32);
-select * from t2 left outer join t1 using (n);
-n
-1
-2
-4
-8
-16
-32
-delete t1,t2 from t2 left outer join t1 using (n);
-select * from t2 left outer join t1 using (n);
-n
-drop table t1,t2 ;
-create table t1 (n int(10) not null primary key, d int(10));
-create table t2 (n int(10) not null primary key, d int(10));
-insert into t1 values(1,1);
-insert into t2 values(1,10),(2,20);
-LOCK TABLES t1 write, t2 read;
-DELETE t1.*, t2.* FROM t1,t2 where t1.n=t2.n;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-UPDATE t1,t2 SET t1.d=t2.d,t2.d=30 WHERE t1.n=t2.n;
-ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
-UPDATE t1,t2 SET t1.d=t2.d WHERE t1.n=t2.n;
-unlock tables;
-LOCK TABLES t1 write, t2 write;
-UPDATE t1,t2 SET t1.d=t2.d WHERE t1.n=t2.n;
-select * from t1;
-n d
-1 10
-DELETE t1.*, t2.* FROM t1,t2 where t1.n=t2.n;
-select * from t1;
-n d
-select * from t2;
-n d
-2 20
-unlock tables;
-drop table t1,t2;
-set sql_safe_updates=1;
-create table t1 (n int(10), d int(10));
-create table t2 (n int(10), d int(10));
-insert into t1 values(1,1);
-insert into t2 values(1,10),(2,20);
-UPDATE t1,t2 SET t1.d=t2.d WHERE t1.n=t2.n;
-ERROR HY000: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
-set sql_safe_updates=0;
-drop table t1,t2;
-set timestamp=1038401397;
-create table t1 (n int(10) not null primary key, d int(10), t timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-create table t2 (n int(10) not null primary key, d int(10), t timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values(1,1,NULL);
-insert into t2 values(1,10,NULL),(2,20,NULL);
-set timestamp=1038000000;
-UPDATE t1,t2 SET t1.d=t2.d WHERE t1.n=t2.n;
-select n,d,unix_timestamp(t) from t1;
-n d unix_timestamp(t)
-1 10 1038000000
-select n,d,unix_timestamp(t) from t2;
-n d unix_timestamp(t)
-1 10 1038401397
-2 20 1038401397
-UPDATE t1,t2 SET 1=2 WHERE t1.n=t2.n;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1=2 WHERE t1.n=t2.n' at line 1
-drop table t1,t2;
-set timestamp=0;
-set sql_safe_updates=0;
-create table t1 (n int(10) not null primary key, d int(10));
-create table t2 (n int(10) not null primary key, d int(10));
-insert into t1 values(1,1), (3,3);
-insert into t2 values(1,10),(2,20);
-UPDATE t2 left outer join t1 on t1.n=t2.n SET t1.d=t2.d;
-select * from t1;
-n d
-1 10
-3 3
-select * from t2;
-n d
-1 10
-2 20
-drop table t1,t2;
-create table t1 (n int(10), d int(10));
-create table t2 (n int(10), d int(10));
-insert into t1 values(1,1),(1,2);
-insert into t2 values(1,10),(2,20);
-UPDATE t1,t2 SET t1.d=t2.d,t2.d=30 WHERE t1.n=t2.n;
-select * from t1;
-n d
-1 10
-1 10
-select * from t2;
-n d
-1 30
-2 20
-drop table t1,t2;
-create table t1 (n int(10), d int(10));
-create table t2 (n int(10), d int(10));
-insert into t1 values(1,1),(3,2);
-insert into t2 values(1,10),(1,20);
-UPDATE t1,t2 SET t1.d=t2.d,t2.d=30 WHERE t1.n=t2.n;
-select * from t1;
-n d
-1 10
-3 2
-select * from t2;
-n d
-1 30
-1 30
-UPDATE t1 a ,t2 b SET a.d=b.d,b.d=30 WHERE a.n=b.n;
-select * from t1;
-n d
-1 30
-3 2
-select * from t2;
-n d
-1 30
-1 30
-DELETE a, b FROM t1 a,t2 b where a.n=b.n;
-select * from t1;
-n d
-3 2
-select * from t2;
-n d
-drop table t1,t2;
-CREATE TABLE t1 ( broj int(4) unsigned NOT NULL default '0', naziv char(25) NOT NULL default 'NEPOZNAT', PRIMARY KEY (broj)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'jedan'),(2,'dva'),(3,'tri'),(4,'xxxxxxxxxx'),(5,'a'),(10,''),(11,''),(12,''),(13,'');
-CREATE TABLE t2 ( broj int(4) unsigned NOT NULL default '0', naziv char(25) NOT NULL default 'NEPOZNAT', PRIMARY KEY (broj)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,'jedan'),(2,'dva'),(3,'tri'),(4,'xxxxxxxxxx'),(5,'a');
-CREATE TABLE t3 ( broj int(4) unsigned NOT NULL default '0', naziv char(25) NOT NULL default 'NEPOZNAT', PRIMARY KEY (broj)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (1,'jedan'),(2,'dva');
-update t1,t2 set t1.naziv="aaaa" where t1.broj=t2.broj;
-update t1,t2,t3 set t1.naziv="bbbb", t2.naziv="aaaa" where t1.broj=t2.broj and t2.broj=t3.broj;
-drop table t1,t2,t3;
-CREATE TABLE t1 (a int not null primary key, b int not null, key (b));
-CREATE TABLE t2 (a int not null primary key, b int not null, key (b));
-INSERT INTO t1 values (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9);
-INSERT INTO t2 values (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9);
-update t1,t2 set t1.a=t1.a+100;
-select * from t1;
-a b
-101 1
-102 2
-103 3
-104 4
-105 5
-106 6
-107 7
-108 8
-109 9
-update t1,t2 set t1.a=t1.a+100 where t1.a=101;
-select * from t1;
-a b
-201 1
-102 2
-103 3
-104 4
-105 5
-106 6
-107 7
-108 8
-109 9
-update t1,t2 set t1.b=t1.b+10 where t1.b=2;
-select * from t1;
-a b
-201 1
-102 12
-103 3
-104 4
-105 5
-106 6
-107 7
-108 8
-109 9
-update t1,t2 set t1.b=t1.b+2,t2.b=t1.b+10 where t1.b between 3 and 5 and t2.a=t1.a-100;
-select * from t1;
-a b
-201 1
-102 12
-103 5
-104 6
-105 7
-106 6
-107 7
-108 8
-109 9
-select * from t2;
-a b
-1 1
-2 2
-3 13
-4 14
-5 15
-6 6
-7 7
-8 8
-9 9
-update t1,t2 set t1.b=t2.b, t1.a=t2.a where t1.a=t2.a and not exists (select * from t2 where t2.a > 10);
-drop table t1,t2;
-CREATE TABLE t3 ( KEY1 varchar(50) NOT NULL default '', PARAM_CORR_DISTANCE_RUSH double default NULL, PARAM_CORR_DISTANCE_GEM double default NULL, PARAM_AVG_TARE double default NULL, PARAM_AVG_NB_DAYS double default NULL, PARAM_DEFAULT_PROP_GEM_SRVC varchar(50) default NULL, PARAM_DEFAULT_PROP_GEM_NO_ETIK varchar(50) default NULL, PARAM_SCENARIO_COSTS varchar(50) default NULL, PARAM_DEFAULT_WAGON_COST double default NULL, tmp int(11) default NULL, PRIMARY KEY (KEY1)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('A',1,1,22,3.2,'R','R','BASE2',0.24,NULL);
-create table t1 (A varchar(1));
-insert into t1 values ("A") ,("B"),("C"),("D");
-create table t2(Z varchar(15));
-insert into t2(Z) select concat(a.a,b.a,c.a,d.a) from t1 as a, t1 as b, t1 as c, t1 as d;
-update t2,t3 set Z =param_scenario_costs;
-drop table t1,t2,t3;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1,1),(2,1),(3,1);
-insert into t2 values (1,1), (3,1);
-update t1 left join t2 on t1.a=t2.a set t1.b=2, t2.b=2 where t1.b=1 and t2.b=1 or t2.a is NULL;
-select t1.a, t1.b,t2.a, t2.b from t1 left join t2 on t1.a=t2.a where t1.b=1 and t2.b=1 or t2.a is NULL;
-a b a b
-2 2 NULL NULL
-drop table t1,t2;
-create table t1 (a int not null auto_increment primary key, b int not null);
-insert into t1 (b) values (1),(2),(3),(4);
-update t1, t1 as t2 set t1.b=t2.b+1 where t1.a=t2.a;
-select * from t1;
-a b
-1 2
-2 3
-3 4
-4 5
-drop table t1;
-create table t1(id1 smallint(5), field char(5));
-create table t2(id2 smallint(5), field char(5));
-insert into t1 values (1, 'a'), (2, 'aa');
-insert into t2 values (1, 'b'), (2, 'bb');
-select * from t1;
-id1 field
-1 a
-2 aa
-select * from t2;
-id2 field
-1 b
-2 bb
-update t2 inner join t1 on t1.id1=t2.id2
-set t2.field=t1.field
-where 0=1;
-update t2, t1 set t2.field=t1.field
-where t1.id1=t2.id2 and 0=1;
-delete t1, t2 from t2 inner join t1 on t1.id1=t2.id2
-where 0=1;
-delete t1, t2 from t2,t1
-where t1.id1=t2.id2 and 0=1;
-drop table t1,t2;
-CREATE TABLE t1 ( a int );
-CREATE TABLE t2 ( a int );
-DELETE t1 FROM t1, t2 AS t3;
-DELETE t4 FROM t1, t1 AS t4;
-DELETE t3 FROM t1 AS t3, t1 AS t4;
-DELETE t1 FROM t1 AS t3, t2 AS t4;
-ERROR 42S02: Unknown table 't1' in MULTI DELETE
-INSERT INTO t1 values (1),(2);
-INSERT INTO t2 values (1),(2);
-DELETE t1 FROM t1 AS t2, t2 AS t1 where t1.a=t2.a and t1.a=1;
-SELECT * from t1;
-a
-1
-2
-SELECT * from t2;
-a
-2
-DELETE t2 FROM t1 AS t2, t2 AS t1 where t1.a=t2.a and t1.a=2;
-SELECT * from t1;
-a
-1
-SELECT * from t2;
-a
-2
-DROP TABLE t1,t2;
-create table `t1` (`p_id` int(10) unsigned NOT NULL auto_increment, `p_code` varchar(20) NOT NULL default '', `p_active` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (`p_id`) );
-create table `t2` (`c2_id` int(10) unsigned NULL auto_increment, `c2_p_id` int(10) unsigned NOT NULL default '0', `c2_note` text NOT NULL, `c2_active` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (`c2_id`), KEY `c2_p_id` (`c2_p_id`) );
-insert into t1 values (0,'A01-Comp',1);
-insert into t1 values (0,'B01-Comp',1);
-insert into t2 values (0,1,'A Note',1);
-update t1 left join t2 on p_id = c2_p_id set c2_note = 'asdf-1' where p_id = 2;
-select * from t1;
-p_id p_code p_active
-1 A01-Comp 1
-2 B01-Comp 1
-select * from t2;
-c2_id c2_p_id c2_note c2_active
-1 1 A Note 1
-drop table t1, t2;
-connect root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root;
-create database mysqltest;
-create table mysqltest.t1 (a int, b int, primary key (a));
-create table mysqltest.t2 (a int, b int, primary key (a));
-create table mysqltest.t3 (a int, b int, primary key (a));
-create user mysqltest_1@localhost;
-grant select on mysqltest.* to mysqltest_1@localhost;
-grant update on mysqltest.t1 to mysqltest_1@localhost;
-connect user1,localhost,mysqltest_1,,mysqltest,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection user1;
-update t1, t2 set t1.b=1 where t1.a=t2.a;
-update t1, t2 set t1.b=(select t3.b from t3 where t1.a=t3.a) where t1.a=t2.a;
-connection root;
-revoke all privileges on mysqltest.t1 from mysqltest_1@localhost;
-revoke all privileges on mysqltest.* from mysqltest_1@localhost;
-delete from mysql.user where user=_binary'mysqltest_1';
-flush privileges;
-drop database mysqltest;
-connection default;
-disconnect user1;
-disconnect root;
-create table t1 (a int, primary key (a));
-create table t2 (a int, primary key (a));
-create table t3 (a int, primary key (a));
-delete t1,t3 from t1,t2 where t1.a=t2.a and t2.a=(select t3.a from t3 where t1.a=t3.a);
-ERROR 42S02: Unknown table 't3' in MULTI DELETE
-drop table t1, t2, t3;
-create table t1 (col1 int);
-create table t2 (col1 int);
-update t1,t2 set t1.col1 = (select max(col1) from t1) where t1.col1 = t2.col1;
-delete t1 from t1,t2 where t1.col1 < (select max(col1) from t1) and t1.col1 = t2.col1;
-ERROR HY000: Table 't1' is specified twice, both as a target for 'DELETE' and as a separate source for data
-drop table t1,t2;
-create table t1(a int);
-create table t2(a int);
-delete from t1,t2 using t1,t2 where t1.a=(select a from t1);
-ERROR HY000: Table 't1' is specified twice, both as a target for 'DELETE' and as a separate source for data
-drop table t1, t2;
-create table t1 (a int, b int);
-insert into t1 values (1, 2), (2, 3), (3, 4);
-create table t2 (a int);
-insert into t2 values (10), (20), (30);
-create view v1 as select a as b, a/10 as a from t2;
-connect locker,localhost,root,,test;
-connection locker;
-lock table t1 write;
-connect changer,localhost,root,,test;
-connection changer;
-alter table t1 add column c int default 100 after a;
-connect updater,localhost,root,,test;
-connection updater;
-update t1, v1 set t1.b=t1.a+t1.b+v1.b where t1.a=v1.a;
-connection locker;
-unlock tables;
-connection changer;
-connection updater;
-select * from t1;
-a c b
-1 100 13
-2 100 25
-3 100 37
-select * from t2;
-a
-10
-20
-30
-drop view v1;
-drop table t1, t2;
-connection default;
-disconnect locker;
-disconnect changer;
-disconnect updater;
-create table t1 (i1 int, i2 int, i3 int);
-create table t2 (id int, c1 varchar(20), c2 varchar(20));
-insert into t1 values (1,5,10),(3,7,12),(4,5,2),(9,10,15),(2,2,2);
-insert into t2 values (9,"abc","def"),(5,"opq","lmn"),(2,"test t","t test");
-select * from t1 order by i1;
-i1 i2 i3
-1 5 10
-2 2 2
-3 7 12
-4 5 2
-9 10 15
-select * from t2;
-id c1 c2
-9 abc def
-5 opq lmn
-2 test t t test
-update t1,t2 set t1.i2=15, t2.c2="ppc" where t1.i1=t2.id;
-select * from t1 order by i1;
-i1 i2 i3
-1 5 10
-2 15 2
-3 7 12
-4 5 2
-9 15 15
-select * from t2 order by id;
-id c1 c2
-2 test t ppc
-5 opq lmn
-9 abc ppc
-delete t1.*,t2.* from t1,t2 where t1.i2=t2.id;
-select * from t1 order by i1;
-i1 i2 i3
-2 15 2
-3 7 12
-9 15 15
-select * from t2 order by id;
-id c1 c2
-2 test t ppc
-9 abc ppc
-drop table t1, t2;
-create table t1 (i1 int auto_increment not null, i2 int, i3 int, primary key (i1));
-create table t2 (id int auto_increment not null, c1 varchar(20), c2 varchar(20), primary key(id));
-insert into t1 values (1,5,10),(3,7,12),(4,5,2),(9,10,15),(2,2,2);
-insert into t2 values (9,"abc","def"),(5,"opq","lmn"),(2,"test t","t test");
-select * from t1 order by i1;
-i1 i2 i3
-1 5 10
-2 2 2
-3 7 12
-4 5 2
-9 10 15
-select * from t2 order by id;
-id c1 c2
-2 test t t test
-5 opq lmn
-9 abc def
-update t1,t2 set t1.i2=15, t2.c2="ppc" where t1.i1=t2.id;
-select * from t1 order by i1;
-i1 i2 i3
-1 5 10
-2 15 2
-3 7 12
-4 5 2
-9 15 15
-select * from t2 order by id;
-id c1 c2
-2 test t ppc
-5 opq lmn
-9 abc ppc
-delete t1.*,t2.* from t1,t2 where t1.i2=t2.id;
-select * from t1 order by i1;
-i1 i2 i3
-2 15 2
-3 7 12
-9 15 15
-select * from t2 order by id;
-id c1 c2
-2 test t ppc
-9 abc ppc
-drop table t1, t2;
-#
-# Bug#49534: multitable IGNORE update with sql_safe_updates error
-# causes debug assertion
-#
-CREATE TABLE t1( a INT, KEY( a ) );
-INSERT INTO t1 VALUES (1), (2), (3);
-SET SESSION sql_safe_updates = 1;
-# Must not cause failed assertion
-UPDATE IGNORE t1, t1 t1a SET t1.a = 1 WHERE t1a.a = 1;
-ERROR HY000: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
-DROP TABLE t1;
-#
-# Bug#54543: update ignore with incorrect subquery leads to assertion
-# failure: inited==INDEX
-#
-SET SESSION sql_safe_updates = 0;
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1), (2);
-CREATE TABLE t2 ( a INT );
-INSERT INTO t2 VALUES (1), (2);
-CREATE TABLE t3 ( a INT );
-INSERT INTO t3 VALUES (1), (2);
-# Should not crash
-UPDATE IGNORE
-( SELECT ( SELECT COUNT(*) FROM t1 GROUP BY a, @v ) a FROM t2 ) x, t3
-SET t3.a = 0;
-Warnings:
-Warning 1242 Subquery returns more than 1 row
-Warning 1242 Subquery returns more than 1 row
-DROP TABLE t1, t2, t3;
-SET SESSION sql_safe_updates = DEFAULT;
-#
-# Bug#52157 various crashes and assertions with multi-table update, stored function
-#
-CREATE FUNCTION f1 () RETURNS BLOB RETURN 1;
-CREATE TABLE t1 (f1 DATE);
-INSERT INTO t1 VALUES('2001-01-01');
-UPDATE IGNORE (SELECT 1 FROM t1 WHERE f1 = (SELECT f1() FROM t1)) x, t1 SET f1 = 1;
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-CREATE view v1 as SELECT f1() FROM t1;
-UPDATE IGNORE (SELECT 1 FROM t1 WHERE f1 = (select * from v1)) x, t1 SET f1 = 1;
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-DROP VIEW v1;
-DROP FUNCTION f1;
-DROP TABLE t1;
-#
-# MDEV-4123: Incorrect results after multi-table update or
-# assertion `!table || (!table->read_set ||
-# bitmap_is_set(table->read_set, field_index))' failure
-#
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1 (
-id int(10) unsigned NOT NULL,
-level tinyint(3) unsigned NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t1 VALUES (2519583,1);
-DROP TABLE IF EXISTS t2;
-Warnings:
-Note 1051 Unknown table 'test.t2'
-CREATE TABLE t2 (
-club_id int(11) NOT NULL DEFAULT '0',
-profile_id int(11) NOT NULL DEFAULT '0',
-member_level_id int(11) NOT NULL DEFAULT '0',
-PRIMARY KEY (profile_id,club_id)
-);
-INSERT INTO t2 VALUES (2,2519583,12);
-DROP TABLE IF EXISTS t3;
-Warnings:
-Note 1051 Unknown table 'test.t3'
-CREATE TABLE t3 (
-member_level_id int(11) unsigned NOT NULL DEFAULT '0',
-map_level int(11) unsigned NOT NULL DEFAULT '0',
-map_status int(11) unsigned NOT NULL DEFAULT '0',
-PRIMARY KEY (member_level_id)
-);
-INSERT INTO t3 VALUES (12,12,1);
-CREATE
-VIEW v1 AS
-select club_id,profile_id,
-map_level AS member_level_id,map_status AS member_status
-from (t2 tc join t3 map
-on(((tc.member_level_id = map.member_level_id) and
-(club_id = 2))));
-select level, count(*) as cnt from t1 group by level;
-level cnt
-1 1
-UPDATE t1 c LEFT JOIN v1 t ON (c.id = t.profile_id AND t.club_id = 2)
-SET c.level = IF (t.member_status IS NULL, 1, IF (t.member_status = 1, 2,3));
-select level, count(*) as cnt from t1 group by level;
-level cnt
-2 1
-drop view v1;
-drop table t1,t2,t3;
-end of tests
-#
-# BUG#57373: Multi update+InnoDB reports ER_KEY_NOT_FOUND if a
-# table is updated twice
-#
-CREATE TABLE t1(
-pk INT,
-a INT,
-PRIMARY KEY (pk)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (0,0);
-UPDATE t1 AS A, t1 AS B SET A.pk = 1, B.a = 2;
-
-# Should be (1,2)
-SELECT * FROM t1;
-pk a
-1 2
-DROP TABLE t1;
-#
-# BUG#11882110: UPDATE REPORTS ER_KEY_NOT_FOUND IF TABLE IS
-# UPDATED TWICE
-#
-CREATE TABLE t1 (
-col_int_key int,
-pk int,
-col_int int,
-key(col_int_key),
-primary key (pk)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,2,3);
-
-CREATE TABLE t2 (
-col_int_key int,
-pk_1 int,
-pk_2 int,
-col_int int,
-key(col_int_key),
-primary key (pk_1,pk_2)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,2,3,4);
-
-UPDATE t1 AS A NATURAL JOIN t1 B SET A.pk=5,B.pk=7;
-
-SELECT * FROM t1;
-col_int_key pk col_int
-1 7 3
-
-UPDATE t2 AS A NATURAL JOIN t2 B SET A.pk_1=5,B.pk_1=7;
-
-UPDATE t2 AS A NATURAL JOIN t2 B SET A.pk_2=10,B.pk_2=11;
-
-SELECT * FROM t2;
-col_int_key pk_1 pk_2 col_int
-1 7 11 4
-DROP TABLE t1,t2;
-#
-# MDEV-6139: UPDATE w/ join against MRG_MyISAM table with read-only
-# sub-table fails
-# MDEV-6193: Problems with multi-table updates that JOIN against
-# read-only table
-#
-CREATE TABLE t1 (
-id int(10) unsigned,
-a int(11)
-) ENGINE=MyISAM;
-CREATE TABLE t3 (
-id int(10) unsigned,
-b int(11)
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-id int(10) unsigned,
-b int(11)
-) ENGINE=MRG_MyISAM UNION=(t3);
-FLUSH TABLES;
-update t1 join t2 using (id) set t1.a=t2.b;
-create view v2 as select * from t2;
-update t1 join v2 using (id) set t1.a=0;
-create view v1 as select * from t3;
-update t1 join v1 using (id) set t1.a=0;
-update t1 join INFORMATION_SCHEMA.CHARACTER_SETS on (id=MAXLEN) set t1.a=0;
-create view v3 as select t2.id, t3.b from t2 join t3 using(id);
-update t1 join v3 using (id) set t1.a=0;
-drop view v1, v2, v3;
-drop table t2, t3, t1;
-#
-# MDEV-7613: MariaDB 5.5.40 server crash on update table left join
-# with a view
-#
-CREATE TABLE `t1` (
-`f1` varchar(6) COLLATE latin1_general_ci DEFAULT NULL,
-`f2` varchar(6) COLLATE latin1_general_ci DEFAULT NULL,
-`f3` varchar(7) COLLATE latin1_general_ci DEFAULT NULL,
-`f4` varchar(15) COLLATE latin1_general_ci DEFAULT NULL,
-`f5` datetime DEFAULT NULL,
-`f6` varchar(2) COLLATE latin1_general_ci DEFAULT NULL,
-`f7` varchar(2) COLLATE latin1_general_ci DEFAULT NULL,
-`ff1` int(1) DEFAULT NULL,
-`ff2` int(1) DEFAULT NULL,
-`ff3` int(1) DEFAULT NULL,
-`ff4` int(1) DEFAULT NULL,
-`ff5` int(1) DEFAULT NULL,
-`ff6` int(1) DEFAULT NULL,
-`ff7` int(1) DEFAULT NULL,
-`ff8` int(2) DEFAULT NULL,
-`ff9` int(1) DEFAULT NULL,
-`ff10` int(1) DEFAULT NULL,
-`ff11` int(1) DEFAULT NULL,
-`ff12` int(1) DEFAULT NULL,
-`ff13` int(1) DEFAULT NULL,
-`ff14` int(1) DEFAULT NULL,
-`ff15` int(1) DEFAULT NULL,
-`f8` varchar(70) COLLATE latin1_general_ci DEFAULT NULL,
-`f9` varchar(20) COLLATE latin1_general_ci DEFAULT NULL,
-`f10` varchar(50) COLLATE latin1_general_ci NOT NULL,
-`f11` varchar(50) COLLATE latin1_general_ci DEFAULT NULL,
-`f12` varchar(255) COLLATE latin1_general_ci DEFAULT NULL,
-`f13` text COLLATE latin1_general_ci,
-`f14` time DEFAULT NULL,
-`f15` varchar(30) COLLATE latin1_general_ci DEFAULT NULL,
-`fg1` int(11) DEFAULT NULL,
-`fg2` int(11) DEFAULT NULL,
-`fg3` int(11) DEFAULT NULL,
-`fg4` int(11) DEFAULT NULL,
-`fg5` int(11) DEFAULT NULL,
-`fg6` int(11) DEFAULT NULL,
-`fg7` int(11) DEFAULT NULL,
-`fg9` int(11) DEFAULT NULL,
-`fg10` int(11) DEFAULT NULL,
-`fg11` int(11) DEFAULT NULL,
-`fg12` int(11) DEFAULT NULL,
-`fg13` int(11) DEFAULT NULL,
-`fg14` int(11) DEFAULT NULL,
-`fg15` int(11) DEFAULT NULL,
-`f16` double DEFAULT NULL,
-`f17` double DEFAULT NULL,
-`f18` int(11) DEFAULT NULL,
-`f19` int(11) DEFAULT NULL,
-`f20` varchar(255) COLLATE latin1_general_ci DEFAULT NULL,
-`f21` int(11) DEFAULT NULL,
-`f22` int(11) DEFAULT NULL,
-`f23` int(11) DEFAULT NULL,
-`f24` double DEFAULT NULL,
-`f25` int(11) DEFAULT NULL,
-`f26` double DEFAULT NULL,
-`f27` int(11) DEFAULT NULL,
-`f28` int(11) DEFAULT NULL,
-`f29` double DEFAULT NULL,
-`f30` int(11) DEFAULT NULL,
-`f31` double DEFAULT NULL,
-`PZ` double DEFAULT NULL,
-`f32` varchar(50) COLLATE latin1_general_ci DEFAULT NULL,
-`f33` varchar(50) COLLATE latin1_general_ci DEFAULT NULL,
-`f34` varchar(50) COLLATE latin1_general_ci DEFAULT NULL,
-`f35` varchar(30) COLLATE latin1_general_ci DEFAULT NULL,
-`f36` varchar(20) COLLATE latin1_general_ci DEFAULT NULL,
-`f37` varchar(50) COLLATE latin1_general_ci DEFAULT NULL,
-`f20_2` varchar(20) COLLATE latin1_general_ci DEFAULT NULL,
-`f38` varchar(30) COLLATE latin1_general_ci DEFAULT NULL COMMENT 'Email = E-Mail / Whitemail = Brief',
-`insert_ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
-PRIMARY KEY (`f10`),
-KEY `f5_f12` (`f5`,`f12`),
-KEY `f5_f20` (`f5`,`f20`),
-KEY `f5_f33` (`f5`,`f33`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci ROW_FORMAT=COMPACT;
-INSERT INTO `t1` VALUES ('2011/2','201105','2011/19','gstfbnfr','2011-05-06
-00:00:00','gg','Ag',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,'','','','','','','21:56:28','',0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,NULL,0,0,'Dffgult',1,0,0,NULL,0,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ggggil',NULL),('2008/4','200812','2008/50','hgckbgfx','2008-12-08
-00:00:00','gg','Ag',2,NULL,2,1,1,1,1,24,1,NULL,1,1,1,2,0,'gusschlifßlich
-zugg
-gflffonifrfn','88.77.79.214','10001614','fg-gtgggggdgtfn','fg-gtgggggdgtfn','birgit.tfrpfllf@gggx.df','11:55:21',NULL,1,0,1,1,1,1,1,1,0,1,1,1,0,0,NULL,NULL,0,4,'ffrtrgg',1,6,10,1.66666666666667,4,1,10,14,1.4,1,NULL,NULL,'out',NULL,NULL,'49','ggobilcogg','k.A.',NULL,'ggggil',NULL),('2008/4','200812','2008/51','hgckbgfx','2008-12-15
-00:00:00','gg','Ag',4,5,5,4,5,5,5,NULL,4,5,1,1,1,4,0,'gusschlifßlich zugg
-gflffonifrfn','79.197.185.64','10001686','fg-gtgggggdgtfn','fg-gtgggggdgtfn','kgtjg@swfftys.df','09:28:42',NULL,1,1,1,1,1,1,1,1,1,1,1,1,0,0,NULL,NULL,0,5,'ffrtrgg',1,7,11,4.71428571428571,16,1.2,12,49,4.08111111111111,1,NULL,NULL,'out',NULL,NULL,'49','ggobilcogg','k.A.',NULL,'ggggil',NULL),('2008/4','200812','2008/50','nufchti','2008-12-08
-00:00:00','gg','Ag',4,1,1,5,5,5,5,12,4,5,1,1,2,1,0,'gusschlifßlich zugg
-gflffonifrfn','89.54.151.216','10001700','fg-gtgggggdgtfn','fg-gtgggggdgtfn','H_K2006@frffnft.df','16:41:45',NULL,1,1,1,1,1,1,1,1,1,1,1,1,0,0,NULL,NULL,0,5,'ffrtrgg',1,7,10,4.28571428571429,11,2.6,12,41,1.58111111111111,1,NULL,NULL,'ffrtrgg
-Bgckofficf 5','vb5','Nufchtfr,
-Iris','49','ggobilcogg','grfurt','Intfrn','ggggil',NULL),('2008/4','200812','2008/50','junghdro','2008-12-11
-00:00:00','Do','Ag',2,2,5,5,4,4,2,72,2,5,2,2,1,1,0,'gusschlifßlich zugg
-gflffonifrfn','84.61.20.216','10001849','fg-ggriff','fg-ggriff','schofnf-glftfr@grcor.df','20:18:05',NULL,1,1,1,1,1,1,1,1,1,1,1,1,0,0,NULL,NULL,0,5,'ffrtrgg',1,7,24,1.42857142857141,12,2.4,12,16,1,1,NULL,NULL,'ffrtrgg
-Bgckofficf 5','vb5','Junghfinrich,
-Dorothfg','49','ggobilcogg','grfurt','Intfrn','ggggil',NULL),('2008/4','200812','2008/50','fbflktj','2008-12-08
-00:00:00','gg','Ag',4,2,2,5,1,1,1,24,NULL,NULL,NULL,NULL,NULL,0,0,'Kgggfrg
-bzw. DigiCggg
-Funktion','217.84.62.6','10001888','fg-Kündigungfn','fg-Kündigungfn','f.frofschkf@gggx.df','21:05:59',NULL,1,1,1,1,1,1,1,0,0,0,0,0,0,0,NULL,NULL,0,0,'ffrtrgg',1,7,16,2.28571428571429,0,NULL,7,16,2.28571428571429,0,NULL,NULL,'out',NULL,'gbfl,
-Kgtjg','49','ggobilcogg','k.A.','gxtfrn','ggggil',NULL),('2008/4','200812','2008/50','gltggggri','2008-12-09
-00:00:00','Di','Ag',4,1,1,4,2,1,2,16,1,2,2,2,2,2,0,'gusschlifßlich zugg
-gflffonifrfn','81.171.157.211','10001988','fg-gtgggggdgtfn','fg-gtgggggdgtfn','bistfr@nftcolognf.df','11:07:54',NULL,1,1,1,1,1,1,1,1,1,1,1,1,0,0,NULL,NULL,0,5,'ffrtrgg',1,7,21,1,11,2.2,12,12,2.66666666666667,1,NULL,NULL,'out',NULL,NULL,'49','ggobilcogg','k.A.','gxtfrn','ggggil',NULL),('2008/4','200812','2008/50','ggufllfsg','2008-12-09
-00:00:00','Di','Ag',2,2,2,2,1,1,2,12,2,2,2,1,1,2,0,'ggobilfs
-Intfrnft','62.154.142.186','10002097','fg-gtgggggdgtfn','fg-gtgggggdgtfn','norbfrtwfdlich@fgggil.df','09:42:11',NULL,1,1,1,1,1,1,1,1,1,1,1,1,0,0,NULL,NULL,0,5,'ffrtrgg',1,7,12,1.71428571428571,8,1.6,12,20,1.66666666666667,1,NULL,NULL,'ffrtrgg
-Bgckofficf 1','vb1','Mufllfr,
-ggbinf','49','ggobilcogg','grfurt','Intfrn','ggggil',NULL),('2008/4','200812','2008/50','wggnfg','2008-12-09
-00:00:00','Di','Ag',5,5,5,5,5,5,5,12,5,5,5,5,5,5,0,'gls grsgtz für
-Ffstnftz','85.180.141.246','10002127','fg-Kündigungfn','fg-Kündigungfn','rfinhgrt.gdolph@yghoo.df','17:44:11',NULL,1,1,1,1,1,1,1,1,1,1,1,1,0,0,NULL,NULL,0,5,'ffrtrgg',1,7,15,5,25,5,12,60,5,1,NULL,NULL,'ffrtrgg
-Bgckofficf 1','vb1','Wggnfr,
-Annftt','49','ggobilcogg','grfurt','Intfrn','ggggil',NULL),('2008/4','200812','2008/50','schubrbf','2008-12-10
-00:00:00','Mi','Ag',1,2,NULL,2,1,2,1,24,NULL,NULL,NULL,NULL,NULL,0,0,'Kgggfrg
-bzw. DigiCggg
-Funktion','91.40.98.242','10002160','fg-gtgggggdgtfn','fg-gtgggggdgtfn','olgf.lifb@gggx.nft','18:18:25',NULL,1,1,0,1,1,1,1,0,0,0,0,0,0,0,NULL,NULL,0,0,'ffrtrgg',1,6,11,1.81111111111111,0,NULL,6,11,1.81111111111111,0,NULL,NULL,'out',NULL,NULL,'49','ggobilcogg','k.A.','gxtfrn','ggggil',NULL);
-CREATE TABLE `t2` (
-`ft1` datetime DEFAULT NULL,
-`ft2` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
-`ft3` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
-`ft4` varchar(255) COLLATE latin1_general_ci NOT NULL DEFAULT '',
-`ft5` varchar(255) COLLATE latin1_general_ci NOT NULL DEFAULT '',
-`ft6` varchar(255) COLLATE latin1_general_ci DEFAULT NULL,
-`ft6_2` varchar(255) COLLATE latin1_general_ci DEFAULT NULL,
-`ft7` varchar(255) COLLATE latin1_general_ci DEFAULT NULL,
-`ft8` varchar(255) COLLATE latin1_general_ci DEFAULT NULL,
-`ft9` varchar(255) COLLATE latin1_general_ci DEFAULT NULL,
-`ft10` varchar(255) COLLATE latin1_general_ci DEFAULT NULL,
-PRIMARY KEY (`ft4`,`ft5`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t2` VALUES ('2013-03-13 00:00:00','2013-03-13 00:00:00','9999-12-31 00:00:00','#','extern FP f32 2','Default','Intern','DEFAULT',NULL,NULL,NULL),('2013-03-13 00:00:00','2013-03-13 00:00:00','9999-12-31 00:00:00','#','extern FP f32 3','Default','Intern','DEFAULT',NULL,NULL,NULL);
-CREATE TABLE `t3` (
-`fe1` int(10) NOT NULL DEFAULT '0',
-`fe2` char(50) COLLATE latin1_general_ci DEFAULT 'nn',
-`f34` char(50) COLLATE latin1_general_ci DEFAULT NULL,
-`fe3` double DEFAULT NULL,
-`fe4` double DEFAULT NULL,
-`fe5` char(4) COLLATE latin1_general_ci DEFAULT NULL,
-`f32` char(50) COLLATE latin1_general_ci DEFAULT NULL,
-`fe6` int(3) DEFAULT '0',
-`fe7` char(1) COLLATE latin1_general_ci DEFAULT NULL,
-`ft6` char(50) COLLATE latin1_general_ci DEFAULT NULL,
-`f33` char(4) COLLATE latin1_general_ci DEFAULT NULL COMMENT 'virtuelle f33s',
-`fe8` char(4) COLLATE latin1_general_ci DEFAULT NULL COMMENT 'aus dem ADS',
-`f37` char(50) COLLATE latin1_general_ci DEFAULT NULL,
-`fe9` char(50) COLLATE latin1_general_ci DEFAULT NULL,
-`fe10` int(5) DEFAULT '0',
-`fe11` int(10) DEFAULT '0',
-`fe12` char(50) COLLATE latin1_general_ci DEFAULT NULL,
-`fe13` double DEFAULT NULL,
-`fe14` char(50) COLLATE latin1_general_ci DEFAULT NULL,
-`fe15` date DEFAULT NULL,
-`fe16` date DEFAULT NULL,
-`fe17` int(10) DEFAULT '0',
-`fe18` date NOT NULL DEFAULT '0000-00-00',
-`ft3` date NOT NULL DEFAULT '0000-00-00',
-PRIMARY KEY (`fe1`),
-KEY `fe2` (`fe2`,`fe18`,`ft3`),
-KEY `f33` (`f33`),
-KEY `fe8` (`fe8`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci ROW_FORMAT=COMPACT COMMENT='CustomerService und Outsourcer Userinformationen';
-INSERT INTO `t3` VALUES (1,'aabggn','gab, glgna',0,NULL,NULL,'gxtgrn D gnd g
-gggsbgrg',0,NULL,'gxtgrn','dsa','dsa','gggsbgrg','0',91611,0,'0',0,'agsggschigdgn','2014-08-11','2014-09-05',0,'2011-01-01','2014-08-11'),(4,'aabigr','gab,
-Iggr',0,NULL,NULL,'gxtgrn D gnd g
-gggsbgrg',0,NULL,'gxtgrn','dsa','dsa','gggsbgrg','0',0,0,'0',0,'agsggschigdgn','2014-08-11','2014-09-05',0,'2012-10-01','2014-08-11'),(7,'abgcrist','gbg,
-ghristggna',15182,1,'ja','ggshilfg gxtgrn 1',1,NULL,'gg
-galgs','ag1','ag1','grfgrt','0',11941,0,'0',0,'agsggschigdgn','2014-01-11',NULL,11802051,'1900-01-01','2010-06-10'),(8,'abgcrist','gbg,
-ghristggna',15182,1,'ja','Zgntralg gftgr galgs Bgtrgggng 1',1,NULL,'gg
-galgs','sb1','sb1','grfgrt','0',11941,0,'0',0,'agsggschigdgn','2014-01-11',NULL,11802051,'2010-07-01','2012-08-11'),(9,'abgcrist','gbg,
-ghristggna',15182,1,'ja','galgs Inbggnd 2',1,NULL,'gg
-galgs','si2','si2','grfgrt','0',11941,0,'0',0,'agsggschigdgn','2014-01-11',NULL,11802051,'2012-09-01','2014-01-11'),(10,'abgcgr','gbg,
-ggrnglgg',14962,1,NULL,'galgs Ogtbggnd 1',1,NULL,'gg
-galgs','sg1','sg1','grfgrt','0',12401,0,'abgcrn',1,NULL,NULL,NULL,11800647,'1900-01-01','2010-11-10'),(11,'abgcgr','gbg,
-ggrnglgg',14962,1,NULL,'galgs Ogtbggnd 1',1,NULL,'gg
-galgs','sg1','sg1','grfgrt','0',12401,0,'abgcrn',1,NULL,NULL,NULL,11800647,'2010-12-01','2011-08-11'),(12,'abgcgr','gbg,
-ggrnglgg',14962,1,NULL,'galgs Ogtbggnd 2',1,NULL,'gg
-galgs','sg2','sg2','grfgrt','0',12401,0,'abgcrn',1,NULL,NULL,NULL,11800647,'2011-09-01','2012-01-11'),(13,'abgcgr','gbg,
-ggrnglgg',14962,0.75,NULL,'galgs Ogtbggnd 2',1,NULL,'gg
-galgs','sg2','sg2','grfgrt','0',12401,0,'abgcrn',1,NULL,NULL,'2011-09-11',11800647,'2012-02-01','2011-08-11'),(14,'rgghrsgr','gbg,
-gigrid',14781,1,'ja','Fgrdgrgngsmanaggmgnt 1',1,NULL,'gg
-Zahlgng','fm1','fm1','grfgrt','0',12141,0,'0',1,NULL,NULL,NULL,11010781,'1900-01-01','2012-08-11');
-CREATE ALGORITHM=MERGE
-DEFINER=`root`@`localhost` SQL SECURITY DEFINER
-VIEW `v1` AS select `t1a`.`ft1` AS `ft1`,`t1a`.`ft2` AS `ft2`,`t1a`.`ft3` AS `ft3`,`t1a`.`ft4` AS `ft4`,`t1a`.`ft5` AS `ft5`,`t1a`.`ft6` AS `ft6`,`t1a`.`ft6_2` AS `ft6_2`,`t1a`.`ft7` AS `ft7`,`t1a`.`ft8` AS `ft8`,`t1a`.`ft9` AS `ft9`,`t1a`.`ft10` AS `ft10` from `t2` `t1a` where (if((`t1a`.`ft10` = 'virtuell'),0,1) = 1);
-CREATE ALGORITHM=UNDEFINED
-DEFINER=`root`@`localhost` SQL SECURITY DEFINER
-VIEW `v2` AS select distinct `t1b`.`fe2` AS `fe2`,min(`t1b`.`fe18`) AS `fe18`,max(`t1b`.`ft3`) AS `ft3` from `t3` `t1b` where ((`t1b`.`fe2` <> '') and (curdate() >= `t1b`.`fe18`)) group by `t1b`.`fe2`;
-CREATE ALGORITHM=UNDEFINED
-DEFINER=`root`@`localhost` SQL SECURITY DEFINER
-VIEW `v3` AS select `t1c`.`fe2` AS `fe2`,`t1c`.`f34` AS `f34`,`t1c`.`f33` AS `f33`,`t1c`.`f32` AS `f32`,`t1c`.`f37` AS `f37`,`t1c`.`fe10` AS `fe10`,if((`tov`.`ft6` in ('klarmobil','callmobile')),`tov`.`ft9`,`tov`.`ft6`) AS `ft6_1`,`tov`.`ft6_2` AS `ft6_2`,`ua`.`fe18` AS `fe18`,`ua`.`ft3` AS `ft3` from ((`t3` `t1c` left join `v2` `ua` on((`t1c`.`fe2` = `ua`.`fe2`))) left join `v1` `tov` on((`t1c`.`fe8` = `tov`.`ft4`))) where (`t1c`.`ft3` = `ua`.`ft3`) group by `t1c`.`fe2`,`t1c`.`f34`,`t1c`.`f33`,`t1c`.`f32` order by `t1c`.`f34`;
-UPDATE t1 t1 left join v3 t2 on t1.f4 = t2.fe2 SET t1.f20 = t2.ft6_1, t1.f32 = t2.f32, t1.f33 = t2.f33, t1.f37 = t2.f37 WHERE f5 >= '2015-02-01';
-#MDEV-8018: main.multi_update fails with --ps-protocol
-prepare stmt1 from "UPDATE t1 t1 left join v3 t2 on t1.f4 = t2.fe2 SET t1.f20 = t2.ft6_1, t1.f32 = t2.f32, t1.f33 = t2.f33, t1.f37 = t2.f37 WHERE f5 >= '2015-02-01'";
-execute stmt1;
-execute stmt1;
-deallocate prepare stmt1;
-drop view v3,v2,v1;
-drop table t1,t2,t3;
-end of 5.5 tests
-create table t1 (c1 int, c3 int);
-insert t1(c3) values (1), (2), (3), (4), (5), (6), (7), (8);
-create table t2 select * from t1;
-update t1, t2 set t1.c1=t2.c3 where t1.c3=t2.c3 order by t1.c3 limit 3;
-select * from t1;
-c1 c3
-1 1
-2 2
-3 3
-NULL 4
-NULL 5
-NULL 6
-NULL 7
-NULL 8
-update t1 set c1=NULL;
-update t1, t2 set t1.c1=t2.c3 where t1.c3=t2.c3 order by t1.c3 desc limit 2;
-select * from t1;
-c1 c3
-NULL 1
-NULL 2
-NULL 3
-NULL 4
-NULL 5
-NULL 6
-7 7
-8 8
-drop table t1, t2;
diff --git a/mysql-test/r/multi_update2.result b/mysql-test/r/multi_update2.result
deleted file mode 100644
index 3712e638f40..00000000000
--- a/mysql-test/r/multi_update2.result
+++ /dev/null
@@ -1,25 +0,0 @@
-DROP TABLE IF EXISTS t1,t2;
-CREATE TABLE t1 ( a INT NOT NULL, b INT NOT NULL) ;
-# The protocolling of many inserts into t1 is suppressed.
-ALTER TABLE t1 ADD INDEX i1(a);
-DELETE FROM t1 WHERE a > 2000000;
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 SELECT * FROM t1;
-SELECT 't2 rows before small delete', COUNT(*) FROM t1;
-t2 rows before small delete COUNT(*)
-t2 rows before small delete 2000000
-DELETE t1,t2 FROM t1,t2 WHERE t1.b=t2.a AND t1.a < 2;
-SELECT 't2 rows after small delete', COUNT(*) FROM t2;
-t2 rows after small delete COUNT(*)
-t2 rows after small delete 1999999
-SELECT 't1 rows after small delete', COUNT(*) FROM t1;
-t1 rows after small delete COUNT(*)
-t1 rows after small delete 1999999
-DELETE t1,t2 FROM t1,t2 WHERE t1.b=t2.a AND t1.a < 100*1000;
-SELECT 't2 rows after big delete', COUNT(*) FROM t2;
-t2 rows after big delete COUNT(*)
-t2 rows after big delete 1900001
-SELECT 't1 rows after big delete', COUNT(*) FROM t1;
-t1 rows after big delete COUNT(*)
-t1 rows after big delete 1900001
-DROP TABLE t1,t2;
diff --git a/mysql-test/r/multi_update_binlog.result b/mysql-test/r/multi_update_binlog.result
deleted file mode 100644
index e77a4530dbf..00000000000
--- a/mysql-test/r/multi_update_binlog.result
+++ /dev/null
@@ -1,61 +0,0 @@
-CALL mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.");
-CREATE TABLE `t1` (
-`a` int(11) NOT NULL auto_increment,
-`b` int(11) default NULL,
-PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
-CREATE TABLE `t2` (
-`a` int(11) NOT NULL auto_increment,
-`b` int(11) default NULL,
-PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
-set @sav_binlog_format= @@session.binlog_format;
-set @@session.binlog_format= mixed;
-insert into t1 values (1,1),(2,2);
-insert into t2 values (1,1),(4,4);
-reset master;
-UPDATE t2,t1 SET t2.a=t1.a+2;
-ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
-select * from t2 /* must be (3,1), (4,4) */;
-a b
-3 1
-4 4
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Annotate_rows # # UPDATE t2,t1 SET t2.a=t1.a+2
-master-bin.000001 # Table_map # # table_id: # (test.t2)
-master-bin.000001 # Update_rows_v1 # # table_id: # flags: STMT_END_F
-master-bin.000001 # Query # # COMMIT
-delete from t1;
-delete from t2;
-insert into t1 values (1,2),(3,4),(4,4);
-insert into t2 values (1,2),(3,4),(4,4);
-reset master;
-UPDATE t2,t1 SET t2.a=t2.b where t2.a=t1.a;
-ERROR 23000: Duplicate entry '4' for key 'PRIMARY'
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Annotate_rows # # UPDATE t2,t1 SET t2.a=t2.b where t2.a=t1.a
-master-bin.000001 # Table_map # # table_id: # (test.t2)
-master-bin.000001 # Update_rows_v1 # # table_id: # flags: STMT_END_F
-master-bin.000001 # Query # # COMMIT
-drop table t1, t2;
-set @@session.binlog_format= @sav_binlog_format;
-CREATE TABLE t1 (a int, PRIMARY KEY (a));
-CREATE TABLE t2 (a int, PRIMARY KEY (a));
-CREATE TABLE t3 (a int, PRIMARY KEY (a)) ENGINE=MyISAM;
-create trigger trg_del_t3 before delete on t3 for each row insert into t1 values (1);
-insert into t2 values (1),(2);
-insert into t3 values (1),(2);
-reset master;
-delete t3.* from t2,t3 where t2.a=t3.a;
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-select count(*) from t1 /* must be 1 */;
-count(*)
-1
-select count(*) from t3 /* must be 1 */;
-count(*)
-1
-drop table t1, t2, t3;
diff --git a/mysql-test/r/multi_update_innodb.result b/mysql-test/r/multi_update_innodb.result
deleted file mode 100644
index 5890fd24f5f..00000000000
--- a/mysql-test/r/multi_update_innodb.result
+++ /dev/null
@@ -1,153 +0,0 @@
-#
-# BUG#57373: Multi update+InnoDB reports ER_KEY_NOT_FOUND if a
-# table is updated twice
-#
-CREATE TABLE t1(
-pk INT,
-a INT,
-b INT,
-PRIMARY KEY (pk)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (0,0,0);
-UPDATE t1 AS A, t1 AS B SET A.pk = 1, B.a = 2;
-ERROR HY000: Primary key/partition key update is not allowed since the table is updated both as 'A' and 'B'
-SELECT * FROM t1;
-pk a b
-0 0 0
-CREATE VIEW v1 AS SELECT * FROM t1;
-UPDATE v1 AS A, t1 AS B SET A.pk = 1, B.a = 2;
-ERROR HY000: Primary key/partition key update is not allowed since the table is updated both as 'A' and 'B'
-SELECT * FROM t1;
-pk a b
-0 0 0
-UPDATE t1 AS A, t1 AS B SET A.a = 1, B.b = 2;
-# Should be (0,1,2)
-SELECT * FROM t1;
-pk a b
-0 1 2
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# BUG#11882110: UPDATE REPORTS ER_KEY_NOT_FOUND IF TABLE IS
-# UPDATED TWICE
-#
-CREATE TABLE t1 (
-col_int_key int,
-pk int,
-col_int int,
-key(col_int_key),
-primary key (pk)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1,2,3);
-
-CREATE TABLE t2 (
-col_int_key int,
-pk_1 int,
-pk_2 int,
-col_int int,
-key(col_int_key),
-primary key (pk_1,pk_2)
-) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (1,2,3,4);
-
-UPDATE t1 AS A NATURAL JOIN t1 B SET A.pk=5,B.pk=7;
-ERROR HY000: Primary key/partition key update is not allowed since the table is updated both as 'A' and 'B'
-
-SELECT * FROM t1;
-col_int_key pk col_int
-1 2 3
-
-UPDATE t2 AS A NATURAL JOIN t2 B SET A.pk_1=5,B.pk_1=7;
-ERROR HY000: Primary key/partition key update is not allowed since the table is updated both as 'A' and 'B'
-
-UPDATE t2 AS A NATURAL JOIN t2 B SET A.pk_2=10,B.pk_2=11;
-ERROR HY000: Primary key/partition key update is not allowed since the table is updated both as 'A' and 'B'
-
-SELECT * FROM t2;
-col_int_key pk_1 pk_2 col_int
-1 2 3 4
-DROP TABLE t1,t2;
-
-# Bug mdev-5970
-# Bug#13256831 - ERROR 1032 (HY000): CAN'T FIND RECORD
-
-CREATE TABLE t1 (f1 INT PRIMARY KEY, f2 INT) ENGINE=InnoDB;
-CREATE TABLE t2 (f1 INT PRIMARY KEY, f2 INT) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (5, 7);
-INSERT INTO t2 VALUES (6, 97);
-CREATE ALGORITHM = MERGE VIEW v1 AS
-SELECT a2.f1 AS f1, a2.f2 AS f2
-FROM t1 AS a1 JOIN t2 AS a2 ON a1.f2 > a2.f1
-WITH LOCAL CHECK OPTION;
-SELECT * FROM v1;
-f1 f2
-6 97
-UPDATE v1 SET f1 = 1;
-SELECT * FROM v1;
-f1 f2
-1 97
-DROP TABLE t1, t2;
-DROP VIEW v1;
-#
-# MDEV-5973: MySQL Bug#11757486:49539: NON-DESCRIPTIVE ERR (ERROR 0
-# FROM STORAGE ENGINE) WITH MULTI-TABLE UPDATE
-#
-CREATE TABLE table_11757486 (field1 tinyint) ENGINE=INNODB;
-INSERT INTO table_11757486 VALUES (0),(0);
-SET SESSION SQL_MODE='STRICT_ALL_TABLES';
-UPDATE IGNORE (SELECT 128 as col1) x, table_11757486 SET field1=x.col1;
-Warnings:
-Warning 1264 Out of range value for column 'field1' at row 1
-Warning 1264 Out of range value for column 'field1' at row 2
-UPDATE IGNORE table_11757486 SET field1=128;
-Warnings:
-Warning 1264 Out of range value for column 'field1' at row 1
-Warning 1264 Out of range value for column 'field1' at row 2
-UPDATE (SELECT 128 as col1) x, table_11757486 SET field1=x.col1;
-ERROR 22003: Out of range value for column 'field1' at row 1
-UPDATE table_11757486 SET field1=128;
-ERROR 22003: Out of range value for column 'field1' at row 1
-SET SESSION SQL_MODE='';
-UPDATE IGNORE (SELECT 128 as col1) x, table_11757486 SET field1=x.col1;
-Warnings:
-Warning 1264 Out of range value for column 'field1' at row 1
-Warning 1264 Out of range value for column 'field1' at row 2
-UPDATE IGNORE table_11757486 SET field1=128;
-Warnings:
-Warning 1264 Out of range value for column 'field1' at row 1
-Warning 1264 Out of range value for column 'field1' at row 2
-DROP TABLE table_11757486;
-SET SESSION SQL_MODE=default;
-create table t1 (
-aclid bigint not null primary key,
-status tinyint(1) not null
-) engine = innodb;
-create table t2 (
-refid bigint not null primary key,
-aclid bigint, index idx_acl(aclid)
-) engine = innodb;
-insert into t2 values(1,null);
-delete t2, t1 from t2 left join t1 on (t2.aclid=t1.aclid) where t2.refid='1';
-drop table t1, t2;
-create table t1 ( c char(8) not null ) engine=innodb;
-insert into t1 values ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7'),('8'),('9');
-insert into t1 values ('A'),('B'),('C'),('D'),('E'),('F');
-alter table t1 add b char(8) not null;
-alter table t1 add a char(8) not null;
-alter table t1 add primary key (a,b,c);
-update t1 set a=c, b=c;
-create table t2 like t1;
-insert into t2 select * from t1;
-delete t1,t2 from t2,t1 where t1.a<'B' and t2.b=t1.b;
-drop table t1,t2;
-create table t1 ( c char(8) not null ) engine=innodb;
-insert into t1 values ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7'),('8'),('9');
-insert into t1 values ('A'),('B'),('C'),('D'),('E'),('F');
-alter table t1 add b char(8) not null;
-alter table t1 add a char(8) not null;
-alter table t1 add primary key (a,b,c);
-update t1 set a=c, b=c;
-create table t2 like t1;
-insert into t2 select * from t1;
-delete t1,t2 from t2,t1 where t1.a<'B' and t2.b=t1.b;
-drop table t1,t2;
diff --git a/mysql-test/r/multi_update_tiny_hash.result b/mysql-test/r/multi_update_tiny_hash.result
deleted file mode 100644
index d8983123aac..00000000000
--- a/mysql-test/r/multi_update_tiny_hash.result
+++ /dev/null
@@ -1,45 +0,0 @@
-drop table if exists t1, t2;
-#
-# Bug #36676: multiupdate using LEFT JOIN updates only
-# first row or fails with an error:
-# ERROR 1022 (23000): Can't write; duplicate key in table ''
-#
-
-#
-# Multiupdate creates MyISAM temporary table without MEMORY table
-#
-CREATE TABLE t1 (ID INT);
-CREATE TABLE t2 (ID INT,
-s1 TEXT, s2 TEXT, s3 VARCHAR(10), s4 TEXT, s5 VARCHAR(10));
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1,'test', 'test', 'test', 'test', 'test'),
-(2,'test', 'test', 'test', 'test', 'test');
-SELECT * FROM t1 LEFT JOIN t2 USING(ID);
-ID s1 s2 s3 s4 s5
-1 test test test test test
-2 test test test test test
-UPDATE t1 LEFT JOIN t2 USING(ID) SET s1 = 'changed';
-UPDATE t1 JOIN t2 USING(ID) SET s2 = 'changed';
-UPDATE t1 LEFT JOIN t2 USING(ID) SET s3 = 'changed';
-UPDATE t1 LEFT JOIN t2 USING(ID) SET s4 = 'changed', s5 = 'changed';
-SELECT * FROM t1 LEFT JOIN t2 USING(ID);
-ID s1 s2 s3 s4 s5
-1 changed changed changed changed changed
-2 changed changed changed changed changed
-DROP TABLE t1, t2;
-#
-# Multiupdate creates temporary MyISAM table from MEMORY table
-#
-CREATE TABLE t1 (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
-CREATE TABLE t2 (id INT, s1 CHAR(255));
-INSERT INTO t1 VALUES (0), (0), (0), (0), (0), (0), (0), (0);
-INSERT INTO t1 (SELECT 0 FROM t1);
-INSERT INTO t1 (SELECT 0 FROM t1);
-INSERT INTO t1 (SELECT 0 FROM t1);
-INSERT INTO t2 (SELECT ID, 'a' FROM t1);
-UPDATE t1 LEFT JOIN t2 USING(id) SET s1 = 'b';
-SELECT DISTINCT s1 FROM t1 LEFT JOIN t2 USING(id);
-s1
-b
-DROP TABLE t1, t2;
-# End of 5.0 tests
diff --git a/mysql-test/r/myisam-big.result b/mysql-test/r/myisam-big.result
deleted file mode 100644
index fd0bcb1224b..00000000000
--- a/mysql-test/r/myisam-big.result
+++ /dev/null
@@ -1,46 +0,0 @@
-drop table if exists t1,t2;
-create table t1 (id int, sometext varchar(100)) engine=myisam;
-insert into t1 values (1, "hello"),(2, "hello2"),(4, "hello3"),(4, "hello4");
-create table t2 like t1;
-insert into t1 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t1;
-select count(*) from t1;
-count(*)
-131072
-connect con2,localhost,root,,;
-connection con2;
-alter table t1 add index (id), add index(sometext), add index(sometext,id);
-alter table t1 disable keys;
-alter table t1 enable keys;
-connection default;
-connection con2;
-disconnect con2;
-connection default;
-drop table t1,t2;
diff --git a/mysql-test/r/myisam-blob.result b/mysql-test/r/myisam-blob.result
deleted file mode 100644
index 46be1bdbd49..00000000000
--- a/mysql-test/r/myisam-blob.result
+++ /dev/null
@@ -1,47 +0,0 @@
-drop table if exists t1;
-CREATE TABLE t1 (data LONGBLOB) ENGINE=myisam;
-INSERT INTO t1 (data) VALUES (NULL);
-UPDATE t1 set data=repeat('a',18*1024*1024);
-select length(data) from t1;
-length(data)
-18874368
-delete from t1 where left(data,1)='a';
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-truncate table t1;
-INSERT INTO t1 (data) VALUES (repeat('a',1*1024*1024));
-INSERT INTO t1 (data) VALUES (repeat('b',16*1024*1024-1024));
-delete from t1 where left(data,1)='b';
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-UPDATE t1 set data=repeat('c',17*1024*1024);
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-delete from t1 where left(data,1)='c';
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 set data=repeat('a',18*1024*1024);
-select length(data) from t1;
-length(data)
-18874368
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 modify data blob;
-Warnings:
-Warning 1265 Data truncated for column 'data' at row 1
-select length(data) from t1;
-length(data)
-65535
-drop table t1;
-CREATE TABLE t1 (data BLOB) ENGINE=myisam;
-INSERT INTO t1 (data) VALUES (NULL);
-UPDATE IGNORE t1 set data=repeat('a',18*1024*1024);
-Warnings:
-Warning 1265 Data truncated for column 'data' at row 1
-select length(data) from t1;
-length(data)
-65535
-drop table t1;
diff --git a/mysql-test/r/myisam-optimize.result b/mysql-test/r/myisam-optimize.result
deleted file mode 100644
index 9de3c24301f..00000000000
--- a/mysql-test/r/myisam-optimize.result
+++ /dev/null
@@ -1,83 +0,0 @@
-#
-# MDEV-8475 stale .TMM file causes Aria engine to stop serving the table
-#
-create table t1 (pk int primary key, i int) engine=MyISAM;
-insert into t1 values (1,1),(2,2);
-connect con1,localhost,root,,;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `pk` int(11) NOT NULL,
- `i` int(11) DEFAULT NULL,
- PRIMARY KEY (`pk`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-disconnect con1;
-connect con1,localhost,root,,;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `pk` int(11) NOT NULL,
- `i` int(11) DEFAULT NULL,
- PRIMARY KEY (`pk`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status Table is already up to date
-disconnect con1;
-connect con1,localhost,root,,;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `pk` int(11) NOT NULL,
- `i` int(11) DEFAULT NULL,
- PRIMARY KEY (`pk`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status Table is already up to date
-disconnect con1;
-connection default;
-DROP TABLE t1;
-create table t1 (pk int primary key, i int) engine=aria;
-insert into t1 values (1,1),(2,2);
-connect con1,localhost,root,,;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `pk` int(11) NOT NULL,
- `i` int(11) DEFAULT NULL,
- PRIMARY KEY (`pk`)
-) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-disconnect con1;
-connect con1,localhost,root,,;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `pk` int(11) NOT NULL,
- `i` int(11) DEFAULT NULL,
- PRIMARY KEY (`pk`)
-) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status Table is already up to date
-disconnect con1;
-connect con1,localhost,root,,;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `pk` int(11) NOT NULL,
- `i` int(11) DEFAULT NULL,
- PRIMARY KEY (`pk`)
-) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status Table is already up to date
-disconnect con1;
-connection default;
-DROP TABLE t1;
diff --git a/mysql-test/r/myisam-system.result b/mysql-test/r/myisam-system.result
deleted file mode 100644
index e489f87948a..00000000000
--- a/mysql-test/r/myisam-system.result
+++ /dev/null
@@ -1,19 +0,0 @@
-drop table if exists t1,t2;
-create table t1 (a int) engine=myisam;
-drop table if exists t1;
-Warnings:
-Warning 1017 Can't find file: './test/t1.MYI' (errno: 2 "No such file or directory")
-create table t1 (a int) engine=myisam;
-select * from t1;
-ERROR HY000: Can't find file: './test/t1.MYI' (errno: 2 "No such file or directory")
-drop table t1;
-Warnings:
-Warning 1017 Can't find file: './test/t1.MYI' (errno: 2 "No such file or directory")
-create table t1 (a int) engine=myisam;
-select * from t1;
-ERROR HY000: File './test/t1.MYD' not found (Errcode: 2 "No such file or directory")
-drop table t1;
-Warnings:
-Warning 1017 Can't find file: './test/t1.MYI' (errno: 2 "No such file or directory")
-drop table t1;
-ERROR 42S02: Unknown table 'test.t1'
diff --git a/mysql-test/r/myisam.result b/mysql-test/r/myisam.result
deleted file mode 100644
index cbc475cfd8a..00000000000
--- a/mysql-test/r/myisam.result
+++ /dev/null
@@ -1,2671 +0,0 @@
-call mtr.add_suppression("Can't find record in '.*'");
-call mtr.add_suppression("Table 't1' is marked as crashed and should be repaired");
-drop table if exists t1,t2,t3;
-SET SQL_WARNINGS=1;
-CREATE TABLE t1 (
-STRING_DATA char(255) default NULL,
-KEY string_data (STRING_DATA)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA');
-INSERT INTO t1 VALUES ('DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD');
-INSERT INTO t1 VALUES ('FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF');
-INSERT INTO t1 VALUES ('FGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG');
-INSERT INTO t1 VALUES ('HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH');
-INSERT INTO t1 VALUES ('WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW');
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-create table t1 (a tinyint not null auto_increment, b blob not null, primary key (a));
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-repair table t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-delete from t1 where (a & 1);
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-repair table t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-create table t1 (a int not null auto_increment, b int not null, primary key (a), index(b));
-insert into t1 (b) values (1),(2),(2),(2),(2);
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 a A 5 NULL NULL BTREE
-t1 1 b 1 b A 1 NULL NULL BTREE
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status Table is already up to date
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 a A 5 NULL NULL BTREE
-t1 1 b 1 b A 1 NULL NULL BTREE
-drop table t1;
-create table t1 (a int not null, b int not null, c int not null, primary key (a),key(b)) engine=myisam;
-insert into t1 values (3,3,3),(1,1,1),(2,2,2),(4,4,4);
-explain select * from t1 order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using filesort
-explain select * from t1 order by b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using filesort
-explain select * from t1 order by c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using filesort
-explain select a from t1 order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 4 Using index
-explain select b from t1 order by b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL b 4 NULL 4 Using index
-explain select a,b from t1 order by b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using filesort
-explain select a,b from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-explain select a,b,c from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-drop table t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-LOCK TABLES t1 WRITE;
-INSERT INTO t1 VALUES (1), (2), (3);
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-DROP TABLE t1;
-create table t1 ( t1 char(255), key(t1(250)));
-insert t1 values ('137513751375137513751375137513751375137569516951695169516951695169516951695169');
-insert t1 values ('178417841784178417841784178417841784178403420342034203420342034203420342034203');
-insert t1 values ('213872387238723872387238723872387238723867376737673767376737673767376737673767');
-insert t1 values ('242624262426242624262426242624262426242607890789078907890789078907890789078907');
-insert t1 values ('256025602560256025602560256025602560256011701170117011701170117011701170117011');
-insert t1 values ('276027602760276027602760276027602760276001610161016101610161016101610161016101');
-insert t1 values ('281528152815281528152815281528152815281564956495649564956495649564956495649564');
-insert t1 values ('292129212921292129212921292129212921292102100210021002100210021002100210021002');
-insert t1 values ('380638063806380638063806380638063806380634483448344834483448344834483448344834');
-insert t1 values ('411641164116411641164116411641164116411616301630163016301630163016301630163016');
-insert t1 values ('420842084208420842084208420842084208420899889988998899889988998899889988998899');
-insert t1 values ('438443844384438443844384438443844384438482448244824482448244824482448244824482');
-insert t1 values ('443244324432443244324432443244324432443239613961396139613961396139613961396139');
-insert t1 values ('485448544854485448544854485448544854485477847784778477847784778477847784778477');
-insert t1 values ('494549454945494549454945494549454945494555275527552755275527552755275527552755');
-insert t1 values ('538647864786478647864786478647864786478688918891889188918891889188918891889188');
-insert t1 values ('565556555655565556555655565556555655565554845484548454845484548454845484548454');
-insert t1 values ('607860786078607860786078607860786078607856665666566656665666566656665666566656');
-insert t1 values ('640164016401640164016401640164016401640141274127412741274127412741274127412741');
-insert t1 values ('719471947194719471947194719471947194719478717871787178717871787178717871787178');
-insert t1 values ('742574257425742574257425742574257425742549604960496049604960496049604960496049');
-insert t1 values ('887088708870887088708870887088708870887035963596359635963596359635963596359635');
-insert t1 values ('917791779177917791779177917791779177917773857385738573857385738573857385738573');
-insert t1 values ('933293329332933293329332933293329332933278987898789878987898789878987898789878');
-insert t1 values ('963896389638963896389638963896389638963877807780778077807780778077807780778077');
-delete from t1 where t1>'2';
-insert t1 values ('70'), ('84'), ('60'), ('20'), ('76'), ('89'), ('49'), ('50'),
-('88'), ('61'), ('42'), ('98'), ('39'), ('30'), ('25'), ('66'), ('61'), ('48'),
-('80'), ('84'), ('98'), ('19'), ('91'), ('42'), ('47');
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-create table t1 (i1 int, i2 int, i3 int, i4 int, i5 int, i6 int, i7 int, i8
-int, i9 int, i10 int, i11 int, i12 int, i13 int, i14 int, i15 int, i16 int, i17
-int, i18 int, i19 int, i20 int, i21 int, i22 int, i23 int, i24 int, i25 int,
-i26 int, i27 int, i28 int, i29 int, i30 int, i31 int, i32 int, i33 int, i34
-int, i35 int, i36 int, i37 int, i38 int, i39 int, i40 int, i41 int, i42 int,
-i43 int, i44 int, i45 int, i46 int, i47 int, i48 int, i49 int, i50 int, i51
-int, i52 int, i53 int, i54 int, i55 int, i56 int, i57 int, i58 int, i59 int,
-i60 int, i61 int, i62 int, i63 int, i64 int, i65 int, i66 int, i67 int, i68
-int, i69 int, i70 int, i71 int, i72 int, i73 int, i74 int, i75 int, i76 int,
-i77 int, i78 int, i79 int, i80 int, i81 int, i82 int, i83 int, i84 int, i85
-int, i86 int, i87 int, i88 int, i89 int, i90 int, i91 int, i92 int, i93 int,
-i94 int, i95 int, i96 int, i97 int, i98 int, i99 int, i100 int, i101 int, i102
-int, i103 int, i104 int, i105 int, i106 int, i107 int, i108 int, i109 int, i110
-int, i111 int, i112 int, i113 int, i114 int, i115 int, i116 int, i117 int, i118
-int, i119 int, i120 int, i121 int, i122 int, i123 int, i124 int, i125 int, i126
-int, i127 int, i128 int, i129 int, i130 int, i131 int, i132 int, i133 int, i134
-int, i135 int, i136 int, i137 int, i138 int, i139 int, i140 int, i141 int, i142
-int, i143 int, i144 int, i145 int, i146 int, i147 int, i148 int, i149 int, i150
-int, i151 int, i152 int, i153 int, i154 int, i155 int, i156 int, i157 int, i158
-int, i159 int, i160 int, i161 int, i162 int, i163 int, i164 int, i165 int, i166
-int, i167 int, i168 int, i169 int, i170 int, i171 int, i172 int, i173 int, i174
-int, i175 int, i176 int, i177 int, i178 int, i179 int, i180 int, i181 int, i182
-int, i183 int, i184 int, i185 int, i186 int, i187 int, i188 int, i189 int, i190
-int, i191 int, i192 int, i193 int, i194 int, i195 int, i196 int, i197 int, i198
-int, i199 int, i200 int, i201 int, i202 int, i203 int, i204 int, i205 int, i206
-int, i207 int, i208 int, i209 int, i210 int, i211 int, i212 int, i213 int, i214
-int, i215 int, i216 int, i217 int, i218 int, i219 int, i220 int, i221 int, i222
-int, i223 int, i224 int, i225 int, i226 int, i227 int, i228 int, i229 int, i230
-int, i231 int, i232 int, i233 int, i234 int, i235 int, i236 int, i237 int, i238
-int, i239 int, i240 int, i241 int, i242 int, i243 int, i244 int, i245 int, i246
-int, i247 int, i248 int, i249 int, i250 int, i251 int, i252 int, i253 int, i254
-int, i255 int, i256 int, i257 int, i258 int, i259 int, i260 int, i261 int, i262
-int, i263 int, i264 int, i265 int, i266 int, i267 int, i268 int, i269 int, i270
-int, i271 int, i272 int, i273 int, i274 int, i275 int, i276 int, i277 int, i278
-int, i279 int, i280 int, i281 int, i282 int, i283 int, i284 int, i285 int, i286
-int, i287 int, i288 int, i289 int, i290 int, i291 int, i292 int, i293 int, i294
-int, i295 int, i296 int, i297 int, i298 int, i299 int, i300 int, i301 int, i302
-int, i303 int, i304 int, i305 int, i306 int, i307 int, i308 int, i309 int, i310
-int, i311 int, i312 int, i313 int, i314 int, i315 int, i316 int, i317 int, i318
-int, i319 int, i320 int, i321 int, i322 int, i323 int, i324 int, i325 int, i326
-int, i327 int, i328 int, i329 int, i330 int, i331 int, i332 int, i333 int, i334
-int, i335 int, i336 int, i337 int, i338 int, i339 int, i340 int, i341 int, i342
-int, i343 int, i344 int, i345 int, i346 int, i347 int, i348 int, i349 int, i350
-int, i351 int, i352 int, i353 int, i354 int, i355 int, i356 int, i357 int, i358
-int, i359 int, i360 int, i361 int, i362 int, i363 int, i364 int, i365 int, i366
-int, i367 int, i368 int, i369 int, i370 int, i371 int, i372 int, i373 int, i374
-int, i375 int, i376 int, i377 int, i378 int, i379 int, i380 int, i381 int, i382
-int, i383 int, i384 int, i385 int, i386 int, i387 int, i388 int, i389 int, i390
-int, i391 int, i392 int, i393 int, i394 int, i395 int, i396 int, i397 int, i398
-int, i399 int, i400 int, i401 int, i402 int, i403 int, i404 int, i405 int, i406
-int, i407 int, i408 int, i409 int, i410 int, i411 int, i412 int, i413 int, i414
-int, i415 int, i416 int, i417 int, i418 int, i419 int, i420 int, i421 int, i422
-int, i423 int, i424 int, i425 int, i426 int, i427 int, i428 int, i429 int, i430
-int, i431 int, i432 int, i433 int, i434 int, i435 int, i436 int, i437 int, i438
-int, i439 int, i440 int, i441 int, i442 int, i443 int, i444 int, i445 int, i446
-int, i447 int, i448 int, i449 int, i450 int, i451 int, i452 int, i453 int, i454
-int, i455 int, i456 int, i457 int, i458 int, i459 int, i460 int, i461 int, i462
-int, i463 int, i464 int, i465 int, i466 int, i467 int, i468 int, i469 int, i470
-int, i471 int, i472 int, i473 int, i474 int, i475 int, i476 int, i477 int, i478
-int, i479 int, i480 int, i481 int, i482 int, i483 int, i484 int, i485 int, i486
-int, i487 int, i488 int, i489 int, i490 int, i491 int, i492 int, i493 int, i494
-int, i495 int, i496 int, i497 int, i498 int, i499 int, i500 int, i501 int, i502
-int, i503 int, i504 int, i505 int, i506 int, i507 int, i508 int, i509 int, i510
-int, i511 int, i512 int, i513 int, i514 int, i515 int, i516 int, i517 int, i518
-int, i519 int, i520 int, i521 int, i522 int, i523 int, i524 int, i525 int, i526
-int, i527 int, i528 int, i529 int, i530 int, i531 int, i532 int, i533 int, i534
-int, i535 int, i536 int, i537 int, i538 int, i539 int, i540 int, i541 int, i542
-int, i543 int, i544 int, i545 int, i546 int, i547 int, i548 int, i549 int, i550
-int, i551 int, i552 int, i553 int, i554 int, i555 int, i556 int, i557 int, i558
-int, i559 int, i560 int, i561 int, i562 int, i563 int, i564 int, i565 int, i566
-int, i567 int, i568 int, i569 int, i570 int, i571 int, i572 int, i573 int, i574
-int, i575 int, i576 int, i577 int, i578 int, i579 int, i580 int, i581 int, i582
-int, i583 int, i584 int, i585 int, i586 int, i587 int, i588 int, i589 int, i590
-int, i591 int, i592 int, i593 int, i594 int, i595 int, i596 int, i597 int, i598
-int, i599 int, i600 int, i601 int, i602 int, i603 int, i604 int, i605 int, i606
-int, i607 int, i608 int, i609 int, i610 int, i611 int, i612 int, i613 int, i614
-int, i615 int, i616 int, i617 int, i618 int, i619 int, i620 int, i621 int, i622
-int, i623 int, i624 int, i625 int, i626 int, i627 int, i628 int, i629 int, i630
-int, i631 int, i632 int, i633 int, i634 int, i635 int, i636 int, i637 int, i638
-int, i639 int, i640 int, i641 int, i642 int, i643 int, i644 int, i645 int, i646
-int, i647 int, i648 int, i649 int, i650 int, i651 int, i652 int, i653 int, i654
-int, i655 int, i656 int, i657 int, i658 int, i659 int, i660 int, i661 int, i662
-int, i663 int, i664 int, i665 int, i666 int, i667 int, i668 int, i669 int, i670
-int, i671 int, i672 int, i673 int, i674 int, i675 int, i676 int, i677 int, i678
-int, i679 int, i680 int, i681 int, i682 int, i683 int, i684 int, i685 int, i686
-int, i687 int, i688 int, i689 int, i690 int, i691 int, i692 int, i693 int, i694
-int, i695 int, i696 int, i697 int, i698 int, i699 int, i700 int, i701 int, i702
-int, i703 int, i704 int, i705 int, i706 int, i707 int, i708 int, i709 int, i710
-int, i711 int, i712 int, i713 int, i714 int, i715 int, i716 int, i717 int, i718
-int, i719 int, i720 int, i721 int, i722 int, i723 int, i724 int, i725 int, i726
-int, i727 int, i728 int, i729 int, i730 int, i731 int, i732 int, i733 int, i734
-int, i735 int, i736 int, i737 int, i738 int, i739 int, i740 int, i741 int, i742
-int, i743 int, i744 int, i745 int, i746 int, i747 int, i748 int, i749 int, i750
-int, i751 int, i752 int, i753 int, i754 int, i755 int, i756 int, i757 int, i758
-int, i759 int, i760 int, i761 int, i762 int, i763 int, i764 int, i765 int, i766
-int, i767 int, i768 int, i769 int, i770 int, i771 int, i772 int, i773 int, i774
-int, i775 int, i776 int, i777 int, i778 int, i779 int, i780 int, i781 int, i782
-int, i783 int, i784 int, i785 int, i786 int, i787 int, i788 int, i789 int, i790
-int, i791 int, i792 int, i793 int, i794 int, i795 int, i796 int, i797 int, i798
-int, i799 int, i800 int, i801 int, i802 int, i803 int, i804 int, i805 int, i806
-int, i807 int, i808 int, i809 int, i810 int, i811 int, i812 int, i813 int, i814
-int, i815 int, i816 int, i817 int, i818 int, i819 int, i820 int, i821 int, i822
-int, i823 int, i824 int, i825 int, i826 int, i827 int, i828 int, i829 int, i830
-int, i831 int, i832 int, i833 int, i834 int, i835 int, i836 int, i837 int, i838
-int, i839 int, i840 int, i841 int, i842 int, i843 int, i844 int, i845 int, i846
-int, i847 int, i848 int, i849 int, i850 int, i851 int, i852 int, i853 int, i854
-int, i855 int, i856 int, i857 int, i858 int, i859 int, i860 int, i861 int, i862
-int, i863 int, i864 int, i865 int, i866 int, i867 int, i868 int, i869 int, i870
-int, i871 int, i872 int, i873 int, i874 int, i875 int, i876 int, i877 int, i878
-int, i879 int, i880 int, i881 int, i882 int, i883 int, i884 int, i885 int, i886
-int, i887 int, i888 int, i889 int, i890 int, i891 int, i892 int, i893 int, i894
-int, i895 int, i896 int, i897 int, i898 int, i899 int, i900 int, i901 int, i902
-int, i903 int, i904 int, i905 int, i906 int, i907 int, i908 int, i909 int, i910
-int, i911 int, i912 int, i913 int, i914 int, i915 int, i916 int, i917 int, i918
-int, i919 int, i920 int, i921 int, i922 int, i923 int, i924 int, i925 int, i926
-int, i927 int, i928 int, i929 int, i930 int, i931 int, i932 int, i933 int, i934
-int, i935 int, i936 int, i937 int, i938 int, i939 int, i940 int, i941 int, i942
-int, i943 int, i944 int, i945 int, i946 int, i947 int, i948 int, i949 int, i950
-int, i951 int, i952 int, i953 int, i954 int, i955 int, i956 int, i957 int, i958
-int, i959 int, i960 int, i961 int, i962 int, i963 int, i964 int, i965 int, i966
-int, i967 int, i968 int, i969 int, i970 int, i971 int, i972 int, i973 int, i974
-int, i975 int, i976 int, i977 int, i978 int, i979 int, i980 int, i981 int, i982
-int, i983 int, i984 int, i985 int, i986 int, i987 int, i988 int, i989 int, i990
-int, i991 int, i992 int, i993 int, i994 int, i995 int, i996 int, i997 int, i998
-int, i999 int, i1000 int, b blob) row_format=dynamic;
-insert into t1 values (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, "Sergei");
-update t1 set b=repeat('a',256);
-update t1 set i1=0, i2=0, i3=0, i4=0, i5=0, i6=0, i7=0;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-delete from t1 where i8=1;
-select i1,i2 from t1;
-i1 i2
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE `t1` (
-`post_id` mediumint(8) unsigned NOT NULL auto_increment,
-`topic_id` mediumint(8) unsigned NOT NULL default '0',
-`post_time` datetime NOT NULL default '0000-00-00 00:00:00',
-`post_text` text NOT NULL,
-`icon_url` varchar(10) NOT NULL default '',
-`sign` tinyint(1) unsigned NOT NULL default '0',
-`post_edit` varchar(150) NOT NULL default '',
-`poster_login` varchar(35) NOT NULL default '',
-`ip` varchar(15) NOT NULL default '',
-PRIMARY KEY (`post_id`),
-KEY `post_time` (`post_time`),
-KEY `ip` (`ip`),
-KEY `poster_login` (`poster_login`),
-KEY `topic_id` (`topic_id`),
-FULLTEXT KEY `post_text` (`post_text`)
-) ENGINE=MyISAM;
-INSERT IGNORE INTO t1 (post_text) VALUES ('ceci est un test'),('ceci est un test'),('ceci est un test'),('ceci est un test'),('ceci est un test');
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-CREATE TABLE t1 (a varchar(255), b varchar(255), c varchar(255), d varchar(255), e varchar(255), KEY t1 (a, b, c, d, e));
-ERROR 42000: Specified key was too long; max key length is 1000 bytes
-CREATE TABLE t1 (a varchar(255), b varchar(255), c varchar(255), d varchar(255), e varchar(255));
-ALTER TABLE t1 ADD INDEX t1 (a, b, c, d, e);
-ERROR 42000: Specified key was too long; max key length is 1000 bytes
-DROP TABLE t1;
-CREATE TABLE t1 (a int not null, b int, c int, key(b), key(c), key(a,b), key(c,a));
-INSERT into t1 values (0,null,0), (0,null,1), (0,null,2), (0,null,3), (1,1,4);
-create table t2 (a int not null, b int, c int, key(b), key(c), key(a));
-INSERT into t2 values (1,1,1), (2,2,2);
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 b 1 b A 5 NULL NULL YES BTREE
-t1 1 c 1 c A 5 NULL NULL YES BTREE
-t1 1 a 1 a A 1 NULL NULL BTREE
-t1 1 a 2 b A 5 NULL NULL YES BTREE
-t1 1 c_2 1 c A 5 NULL NULL YES BTREE
-t1 1 c_2 2 a A 5 NULL NULL BTREE
-explain select * from t1,t2 where t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL a NULL NULL NULL 2
-1 SIMPLE t1 ALL a NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-explain select * from t1,t2 force index(a) where t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL a NULL NULL NULL 2
-1 SIMPLE t1 ALL a NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-explain select * from t1 force index(a),t2 force index(a) where t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL a NULL NULL NULL 2
-1 SIMPLE t1 ref a a 4 test.t2.a 3
-INSERT into t1 values (2,4,5), (7,8,4), (8,3,1), (9,7,2), (5,5,9);
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 b 1 b A 10 NULL NULL YES BTREE
-t1 1 c 1 c A 10 NULL NULL YES BTREE
-t1 1 a 1 a A 10 NULL NULL BTREE
-t1 1 a 2 b A 10 NULL NULL YES BTREE
-t1 1 c_2 1 c A 10 NULL NULL YES BTREE
-t1 1 c_2 2 a A 10 NULL NULL BTREE
-explain select * from t1,t2 where t1.b=t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL b NULL NULL NULL 2 Using where
-1 SIMPLE t1 ref b b 5 test.t2.b 1
-delete from t1 where t1.a>1;
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 b 1 b A 5 NULL NULL YES BTREE
-t1 1 c 1 c A 5 NULL NULL YES BTREE
-t1 1 a 1 a A 1 NULL NULL BTREE
-t1 1 a 2 b A 5 NULL NULL YES BTREE
-t1 1 c_2 1 c A 5 NULL NULL YES BTREE
-t1 1 c_2 2 a A 5 NULL NULL BTREE
-explain select * from t1,t2 force index(c) where t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2
-1 SIMPLE t1 ALL a NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-explain select * from t1 where a=0 or a=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a NULL NULL NULL 5 Using where
-explain select * from t1 force index (a) where a=0 or a=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 4 NULL 4 Using index condition; Using where
-explain select * from t1 where c=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref c,c_2 c 5 const 1
-explain select * from t1 use index() where c=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 Using where
-drop table t1,t2;
-create table t1 (a int not null auto_increment primary key, b varchar(255));
-insert into t1 (b) values (repeat('a',100)),(repeat('b',100)),(repeat('c',100));
-update t1 set b=repeat(left(b,1),200) where a=1;
-delete from t1 where (a & 1)= 0;
-update t1 set b=repeat('e',200) where a=1;
-flush tables;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-update t1 set b=repeat(left(b,1),255) where a between 1 and 5;
-update t1 set b=repeat(left(b,1),10) where a between 32 and 43;
-update t1 set b=repeat(left(b,1),2) where a between 64 and 66;
-update t1 set b=repeat(left(b,1),65) where a between 67 and 70;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-insert into t1 (b) values (repeat('z',100));
-update t1 set b="test" where left(b,1) > 'n';
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-create table t1 ( a text not null, key a (a(20)));
-insert into t1 values ('aaa '),('aaa'),('aa');
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-repair table t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-select concat(a,'.') from t1 where a='aaa';
-concat(a,'.')
-aaa .
-aaa.
-select concat(a,'.') from t1 where binary a='aaa';
-concat(a,'.')
-aaa.
-update t1 set a='bbb' where a='aaa';
-select concat(a,'.') from t1;
-concat(a,'.')
-bbb.
-bbb.
-aa.
-drop table t1;
-create table t1(a text not null, b text not null, c text not null, index (a(10),b(10),c(10)));
-insert into t1 values('807780', '477', '165');
-insert into t1 values('807780', '477', '162');
-insert into t1 values('807780', '472', '162');
-select * from t1 where a='807780' and b='477' and c='165';
-a b c
-807780 477 165
-drop table t1;
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1 (a varchar(150) NOT NULL, KEY (a));
-INSERT t1 VALUES ("can \tcan");
-INSERT t1 VALUES ("can can");
-INSERT t1 VALUES ("can");
-SELECT * FROM t1;
-a
-can can
-can
-can can
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-create table t1 (a blob);
-insert into t1 values('a '),('a');
-select concat(a,'.') from t1 where a='a';
-concat(a,'.')
-a.
-select concat(a,'.') from t1 where a='a ';
-concat(a,'.')
-a .
-alter table t1 add key(a(2));
-select concat(a,'.') from t1 where a='a';
-concat(a,'.')
-a.
-select concat(a,'.') from t1 where a='a ';
-concat(a,'.')
-a .
-drop table t1;
-create table t1 (a int not null auto_increment primary key, b text not null, unique b (b(20)));
-insert into t1 (b) values ('a'),('b'),('c');
-select concat(b,'.') from t1;
-concat(b,'.')
-a.
-b.
-c.
-update t1 set b='b ' where a=2;
-update t1 set b='b ' where a > 1;
-ERROR 23000: Duplicate entry 'b ' for key 'b'
-insert into t1 (b) values ('b');
-ERROR 23000: Duplicate entry 'b' for key 'b'
-select * from t1;
-a b
-1 a
-2 b
-3 c
-delete from t1 where b='b';
-select a,concat(b,'.') from t1;
-a concat(b,'.')
-1 a.
-3 c.
-drop table t1;
-create table t1 (a int not null);
-create table t2 (a int not null, primary key (a));
-insert into t1 values (1);
-insert into t2 values (1),(2);
-select sql_big_result distinct t1.a from t1,t2 order by t2.a;
-a
-1
-select distinct t1.a from t1,t2 order by t2.a;
-a
-1
-select sql_big_result distinct t1.a from t1,t2;
-a
-1
-explain select sql_big_result distinct t1.a from t1,t2 order by t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 Using temporary
-1 SIMPLE t2 index NULL PRIMARY 4 NULL 2 Using index
-explain select distinct t1.a from t1,t2 order by t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 Using temporary
-1 SIMPLE t2 index NULL PRIMARY 4 NULL 2 Using index
-drop table t1,t2;
-create table t1 (
-c1 varchar(32),
-key (c1)
-) engine=myisam;
-alter table t1 disable keys;
-insert into t1 values ('a'), ('b');
-select c1 from t1 order by c1 limit 1;
-c1
-a
-drop table t1;
-create table t1 (a int not null, primary key(a));
-create table t2 (a int not null, b int not null, primary key(a,b));
-insert into t1 values (1),(2),(3),(4),(5),(6);
-insert into t2 values (1,1),(2,1);
-lock tables t1 read local, t2 read local;
-select straight_join * from t1,t2 force index (primary) where t1.a=t2.a;
-a a b
-1 1 1
-2 2 1
-connect root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-insert into t2 values(2,0);
-disconnect root;
-connection default;
-select straight_join * from t1,t2 force index (primary) where t1.a=t2.a;
-a a b
-1 1 1
-2 2 1
-unlock tables;
-drop table t1,t2;
-CREATE TABLE t1 (c1 varchar(250) NOT NULL);
-CREATE TABLE t2 (c1 varchar(250) NOT NULL, PRIMARY KEY (c1));
-INSERT INTO t1 VALUES ('test000001'), ('test000002'), ('test000003');
-INSERT INTO t2 VALUES ('test000002'), ('test000003'), ('test000004');
-LOCK TABLES t1 READ LOCAL, t2 READ LOCAL;
-SELECT t1.c1 AS t1c1, t2.c1 AS t2c1 FROM t1, t2
-WHERE t1.c1 = t2.c1 HAVING t1c1 != t2c1;
-t1c1 t2c1
-connect con1,localhost,root,,;
-connection con1;
-INSERT INTO t2 VALUES ('test000001'), ('test000005');
-disconnect con1;
-connection default;
-SELECT t1.c1 AS t1c1, t2.c1 AS t2c1 FROM t1, t2
-WHERE t1.c1 = t2.c1 HAVING t1c1 != t2c1;
-t1c1 t2c1
-UNLOCK TABLES;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (`a` int(11) NOT NULL default '0', `b` int(11) NOT NULL default '0', UNIQUE KEY `a` USING RTREE (`a`,`b`)) ENGINE=MyISAM;
-Got one of the listed errors
-create table t1 (a int, b varchar(200), c text not null) checksum=1;
-create table t2 (a int, b varchar(200), c text not null) checksum=0;
-insert t1 values (1, "aaa", "bbb"), (NULL, "", "ccccc"), (0, NULL, "");
-insert t2 select * from t1;
-checksum table t1, t2, t3 quick;
-Table Checksum
-test.t1 3442722830
-test.t2 NULL
-test.t3 NULL
-Warnings:
-Error 1146 Table 'test.t3' doesn't exist
-checksum table t1, t2, t3;
-Table Checksum
-test.t1 3442722830
-test.t2 3442722830
-test.t3 NULL
-Warnings:
-Error 1146 Table 'test.t3' doesn't exist
-checksum table t1, t2, t3 extended;
-Table Checksum
-test.t1 3442722830
-test.t2 3442722830
-test.t3 NULL
-Warnings:
-Error 1146 Table 'test.t3' doesn't exist
-alter table t1 add d int default 30, add e bigint default 300000, add f decimal(30) default 442;
-checksum table t1;
-Table Checksum
-test.t1 2924214226
-drop table t1,t2;
-create table t1 (a int, key (a));
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE
-alter table t1 disable keys;
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE disabled
-create table t2 (a int);
-set @@rand_seed1=31415926,@@rand_seed2=2718281828;
-insert t1 select * from t2;
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE disabled
-alter table t1 enable keys;
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A 1000 NULL NULL YES BTREE
-alter table t1 engine=heap;
-alter table t1 disable keys;
-Warnings:
-Note 1031 Storage engine MEMORY of the table `test`.`t1` doesn't have this option
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a NULL 500 NULL NULL YES HASH
-drop table t1,t2;
-create table t1 ( a tinytext, b char(1), index idx (a(1),b) );
-insert into t1 values (null,''), (null,'');
-explain select count(*) from t1 where a is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx idx 4 const 1 Using where
-select count(*) from t1 where a is null;
-count(*)
-2
-drop table t1;
-create table t1 (c1 int, c2 varchar(4) not null default '',
-key(c2(3))) default charset=utf8;
-insert into t1 values (1,'A'), (2, 'B'), (3, 'A');
-update t1 set c2='A B' where c1=2;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-create table t1 (c1 int);
-insert into t1 values (1),(2),(3),(4);
-checksum table t1;
-Table Checksum
-test.t1 149057747
-delete from t1 where c1 = 1;
-create table t2 as select * from t1;
-checksum table t1;
-Table Checksum
-test.t1 984116287
-checksum table t2;
-Table Checksum
-test.t2 984116287
-drop table t1, t2;
-show variables like 'myisam_stats_method';
-Variable_name Value
-myisam_stats_method NULLS_UNEQUAL
-create table t1 (a int, key(a));
-insert into t1 values (0),(1),(2),(3),(4);
-insert into t1 select NULL from t1;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A 10 NULL NULL YES BTREE
-insert into t1 values (11);
-delete from t1 where a=11;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A 10 NULL NULL YES BTREE
-set myisam_stats_method=nulls_equal;
-show variables like 'myisam_stats_method';
-Variable_name Value
-myisam_stats_method NULLS_EQUAL
-insert into t1 values (11);
-delete from t1 where a=11;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A 5 NULL NULL YES BTREE
-insert into t1 values (11);
-delete from t1 where a=11;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A 5 NULL NULL YES BTREE
-set myisam_stats_method=DEFAULT;
-show variables like 'myisam_stats_method';
-Variable_name Value
-myisam_stats_method NULLS_UNEQUAL
-insert into t1 values (11);
-delete from t1 where a=11;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A 10 NULL NULL YES BTREE
-insert into t1 values (11);
-delete from t1 where a=11;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A 10 NULL NULL YES BTREE
-drop table t1;
-set myisam_stats_method=nulls_ignored;
-show variables like 'myisam_stats_method';
-Variable_name Value
-myisam_stats_method NULLS_IGNORED
-create table t1 (
-a char(3), b char(4), c char(5), d char(6),
-key(a,b,c,d)
-);
-insert into t1 values ('bcd','def1', NULL, 'zz');
-insert into t1 values ('bcd','def2', NULL, 'zz');
-insert into t1 values ('bce','def1', 'yuu', NULL);
-insert into t1 values ('bce','def2', NULL, 'quux');
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A 2 NULL NULL YES BTREE
-t1 1 a 2 b A 4 NULL NULL YES BTREE
-t1 1 a 3 c A 4 NULL NULL YES BTREE
-t1 1 a 4 d A 4 NULL NULL YES BTREE
-delete from t1;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A 0 NULL NULL YES BTREE
-t1 1 a 2 b A 0 NULL NULL YES BTREE
-t1 1 a 3 c A 0 NULL NULL YES BTREE
-t1 1 a 4 d A 0 NULL NULL YES BTREE
-set myisam_stats_method=DEFAULT;
-drop table t1;
-create table t1(
-cip INT NOT NULL,
-time TIME NOT NULL,
-score INT NOT NULL DEFAULT 0,
-bob TINYBLOB
-);
-insert into t1 (cip, time) VALUES (1, '00:01'), (2, '00:02'), (3,'00:03');
-insert into t1 (cip, bob, time) VALUES (4, 'a', '00:04'), (5, 'b', '00:05'),
-(6, 'c', '00:06');
-select * from t1 where bob is null and cip=1;
-cip time score bob
-1 00:01:00 0 NULL
-create index bug on t1 (bob(22), cip, time);
-select * from t1 where bob is null and cip=1;
-cip time score bob
-1 00:01:00 0 NULL
-drop table t1;
-create table t1 (
-id1 int not null auto_increment,
-id2 int not null default '0',
-t text not null,
-primary key (id1),
-key x (id2, t(32))
-) engine=myisam;
-insert into t1 (id2, t) values
-(10, 'abc'), (10, 'abc'), (10, 'abc'),
-(20, 'abc'), (20, 'abc'), (20, 'def'),
-(10, 'abc'), (10, 'abc');
-select count(*) from t1 where id2 = 10;
-count(*)
-5
-select count(id1) from t1 where id2 = 10;
-count(id1)
-5
-drop table t1;
-CREATE TABLE t1(a TINYINT, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES(1);
-SELECT MAX(a) FROM t1 IGNORE INDEX(a);
-MAX(a)
-1
-ALTER TABLE t1 DISABLE KEYS;
-SELECT MAX(a) FROM t1;
-MAX(a)
-1
-SELECT MAX(a) FROM t1 IGNORE INDEX(a);
-MAX(a)
-1
-DROP TABLE t1;
-CREATE TABLE t1(a CHAR(9), b VARCHAR(7)) ENGINE=MyISAM;
-INSERT INTO t1(a) VALUES('xxxxxxxxx'),('xxxxxxxxx');
-UPDATE t1 AS ta1,t1 AS ta2 SET ta1.b='aaaaaa',ta2.b='bbbbbb';
-SELECT * FROM t1;
-a b
-xxxxxxxxx bbbbbb
-xxxxxxxxx bbbbbb
-DROP TABLE t1;
-SET @@myisam_repair_threads=2;
-SHOW VARIABLES LIKE 'myisam_repair%';
-Variable_name Value
-myisam_repair_threads 2
-CREATE TABLE t1 (
-`_id` int(11) NOT NULL default '0',
-`url` text,
-`email` text,
-`description` text,
-`loverlap` int(11) default NULL,
-`roverlap` int(11) default NULL,
-`lneighbor_id` int(11) default NULL,
-`rneighbor_id` int(11) default NULL,
-`length_` int(11) default NULL,
-`sequence` mediumtext,
-`name` text,
-`_obj_class` text NOT NULL,
-PRIMARY KEY (`_id`),
-UNIQUE KEY `sequence_name_index` (`name`(50)),
-KEY (`length_`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES
-(1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample1',''),
-(2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample2',''),
-(3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample3',''),
-(4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample4',''),
-(5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample5',''),
-(6,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample6',''),
-(7,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample7',''),
-(8,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample8',''),
-(9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample9','');
-SELECT _id FROM t1;
-_id
-1
-2
-3
-4
-5
-6
-7
-8
-9
-DELETE FROM t1 WHERE _id < 8;
-SELECT table_name, engine, version, row_format, Table_rows, Data_free, create_options, table_comment FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'test' and TABLE_NAME='t1';
-table_name engine version row_format Table_rows Data_free create_options table_comment
-t1 MyISAM 10 Dynamic 2 140
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-SELECT table_name, engine, version, row_format, Table_rows, Data_free, create_options, table_comment FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'test' and TABLE_NAME='t1';
-table_name engine version row_format Table_rows Data_free create_options table_comment
-t1 MyISAM 10 Dynamic 2 0
-SELECT _id FROM t1;
-_id
-8
-9
-DROP TABLE t1;
-CREATE TABLE t1 (
-`_id` int(11) NOT NULL default '0',
-`url` text,
-`email` text,
-`description` text,
-`loverlap` int(11) default NULL,
-`roverlap` int(11) default NULL,
-`lneighbor_id` int(11) default NULL,
-`rneighbor_id` int(11) default NULL,
-`length_` int(11) default NULL,
-`sequence` mediumtext,
-`name` text,
-`_obj_class` text NOT NULL,
-PRIMARY KEY (`_id`),
-UNIQUE KEY `sequence_name_index` (`name`(50)),
-KEY (`length_`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES
-(1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample1',''),
-(2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample2',''),
-(3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample3',''),
-(4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample4',''),
-(5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample5',''),
-(6,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample6',''),
-(7,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample7',''),
-(8,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample8',''),
-(9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample9','');
-SELECT _id FROM t1;
-_id
-1
-2
-3
-4
-5
-6
-7
-8
-9
-DELETE FROM t1 WHERE _id < 8;
-SELECT table_name, engine, version, row_format, Table_rows, Data_free, create_options, table_comment FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'test' and TABLE_NAME='t1';
-table_name engine version row_format Table_rows Data_free create_options table_comment
-t1 MyISAM 10 Dynamic 2 140
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-REPAIR TABLE t1 QUICK;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-SELECT table_name, engine, version, row_format, Table_rows, Data_free, create_options, table_comment FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'test' and TABLE_NAME='t1';
-table_name engine version row_format Table_rows Data_free create_options table_comment
-t1 MyISAM 10 Dynamic 2 140
-SELECT _id FROM t1;
-_id
-8
-9
-DROP TABLE t1;
-SET @@myisam_repair_threads=1;
-SHOW VARIABLES LIKE 'myisam_repair%';
-Variable_name Value
-myisam_repair_threads 1
-CREATE TABLE t1(a VARCHAR(16));
-INSERT INTO t1 VALUES('aaaaaaaa'),(NULL);
-UPDATE t1 AS ta1, t1 AS ta2 SET ta1.a='aaaaaaaaaaaaaaaa';
-SELECT * FROM t1;
-a
-aaaaaaaaaaaaaaaa
-aaaaaaaaaaaaaaaa
-DROP TABLE t1;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES(1),(2);
-UPDATE t1,t1 AS t2 SET t1.a=t1.a+2 WHERE t1.a=t2.a-1;
-SELECT * FROM t1 ORDER BY a;
-a
-2
-3
-DROP TABLE t1;
-CREATE TABLE t1 (c1 TEXT) AVG_ROW_LENGTH=70100 MAX_ROWS=4100100100;
-SELECT table_name, engine, version, row_format, max_data_length, max_index_length, create_options, table_comment FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'test' and TABLE_NAME='t1';
-table_name engine version row_format max_data_length max_index_length create_options table_comment
-t1 MyISAM 10 Dynamic 72057594037927935 17179868160 max_rows=4100100100 avg_row_length=70100
-DROP TABLE t1;
-CREATE TABLE t1 (c1 TEXT NOT NULL, KEY c1 (c1(10))) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)), (CHAR(9,65)),
-(''), (''), (''), (''),
-(' B'), (' B'), (' B'), (' B');
-SELECT DISTINCT COUNT(*) FROM t1 WHERE c1 = '';
-COUNT(*)
-4
-SELECT DISTINCT length(c1), c1 FROM t1 WHERE c1 = '';
-length(c1) c1
-0
-SELECT DISTINCT COUNT(*) FROM t1 IGNORE INDEX (c1) WHERE c1 = '';
-COUNT(*)
-4
-SELECT DISTINCT length(c1), c1 FROM t1 IGNORE INDEX (c1) WHERE c1 = '';
-length(c1) c1
-0
-SELECT DISTINCT length(c1), c1 FROM t1 ORDER BY c1;
-length(c1) c1
-2 A
-0
-2 B
-DROP TABLE t1;
-End of 4.1 tests
-set storage_engine=MyISAM;
-drop table if exists t1,t2,t3;
---- Testing varchar ---
---- Testing varchar ---
-create table t1 (v varchar(10), c char(10), t text);
-insert into t1 values('+ ', '+ ', '+ ');
-set @a=repeat(' ',20);
-insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
-Warnings:
-Note 1265 Data truncated for column 'v' at row 1
-select concat('*',v,'*',c,'*',t,'*') from t1;
-concat('*',v,'*',c,'*',t,'*')
-*+ *+*+ *
-*+ *+*+ *
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table t2 like t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table t3 select * from t1;
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 modify c varchar(10);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` varchar(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 modify v char(10);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` char(10) DEFAULT NULL,
- `c` varchar(10) DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 modify t varchar(10);
-Warnings:
-Note 1265 Data truncated for column 't' at row 2
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` char(10) DEFAULT NULL,
- `c` varchar(10) DEFAULT NULL,
- `t` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select concat('*',v,'*',c,'*',t,'*') from t1;
-concat('*',v,'*',c,'*',t,'*')
-*+*+*+ *
-*+*+*+ *
-drop table t1,t2,t3;
-create table t1 (v varchar(10), c char(10), t text, key(v), key(c), key(t(10)));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `v` (`v`),
- KEY `c` (`c`),
- KEY `t` (`t`(10))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select count(*) from t1;
-count(*)
-270
-insert into t1 values(concat('a',char(1)),concat('a',char(1)),concat('a',char(1)));
-select count(*) from t1 where v='a';
-count(*)
-10
-select count(*) from t1 where c='a';
-count(*)
-10
-select count(*) from t1 where t='a';
-count(*)
-10
-select count(*) from t1 where v='a ';
-count(*)
-10
-select count(*) from t1 where c='a ';
-count(*)
-10
-select count(*) from t1 where t='a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-count(*)
-10
-select count(*) from t1 where v like 'a%';
-count(*)
-11
-select count(*) from t1 where c like 'a%';
-count(*)
-11
-select count(*) from t1 where t like 'a%';
-count(*)
-11
-select count(*) from t1 where v like 'a %';
-count(*)
-9
-explain select count(*) from t1 where v='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 13 const # Using where; Using index
-explain select count(*) from t1 where c='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref c c 11 const # Using where; Using index
-explain select count(*) from t1 where t='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref t t 13 const # Using where
-explain select count(*) from t1 where v like 'a%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 13 NULL # Using where; Using index
-explain select count(*) from t1 where v between 'a' and 'a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 13 const # Using where; Using index
-explain select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 13 const # Using where; Using index
-alter table t1 add unique(v);
-ERROR 23000: Duplicate entry '{ ' for key 'v_2'
-show warnings;
-Level Code Message
-Error 1062 Duplicate entry 'a' for key 'v_2'
-alter table t1 add key(v);
-Warnings:
-Note 1831 Duplicate index `v_2`. This is deprecated and will be disallowed in a future release
-select concat('*',v,'*',c,'*',t,'*') as qq from t1 where v='a';
-qq
-*a*a*a*
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-*a *a*a *
-explain select * from t1 where v='a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v,v_2 # 13 const # #
-select v,count(*) from t1 group by v limit 10;
-v count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(c) from t1 group by v limit 10;
-v count(c)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(c) from t1 group by v limit 10;
-v count(c)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select c,count(*) from t1 group by c limit 10;
-c count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select c,count(t) from t1 group by c limit 10;
-c count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result c,count(t) from t1 group by c limit 10;
-c count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select t,count(*) from t1 group by t limit 10;
-t count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select t,count(t) from t1 group by t limit 10;
-t count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result t,count(t) from t1 group by t limit 10;
-t count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-alter table t1 modify v varchar(300), drop key v, drop key v_2, add key v (v);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(300) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `c` (`c`),
- KEY `t` (`t`(10)),
- KEY `v` (`v`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select count(*) from t1 where v='a';
-count(*)
-10
-select count(*) from t1 where v='a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-count(*)
-10
-select count(*) from t1 where v like 'a%';
-count(*)
-11
-select count(*) from t1 where v like 'a %';
-count(*)
-9
-explain select count(*) from t1 where v='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 303 const # Using where; Using index
-explain select count(*) from t1 where v like 'a%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 303 NULL # Using where; Using index
-explain select count(*) from t1 where v between 'a' and 'a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 303 const # Using where; Using index
-explain select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 303 const # Using where; Using index
-explain select * from t1 where v='a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 303 const # #
-select v,count(*) from t1 group by v limit 10;
-v count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-alter table t1 drop key v, add key v (v(30));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(300) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `c` (`c`),
- KEY `t` (`t`(10)),
- KEY `v` (`v`(30))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select count(*) from t1 where v='a';
-count(*)
-10
-select count(*) from t1 where v='a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ';
-count(*)
-10
-select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-count(*)
-10
-select count(*) from t1 where v like 'a%';
-count(*)
-11
-select count(*) from t1 where v like 'a %';
-count(*)
-9
-explain select count(*) from t1 where v='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 33 const # Using where
-explain select count(*) from t1 where v like 'a%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 33 NULL # Using where
-explain select count(*) from t1 where v between 'a' and 'a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 33 const # Using where
-explain select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 33 const # Using where
-explain select * from t1 where v='a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 33 const # #
-select v,count(*) from t1 group by v limit 10;
-v count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-alter table t1 modify v varchar(600), drop key v, add key v (v);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(600) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `c` (`c`),
- KEY `t` (`t`(10)),
- KEY `v` (`v`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select v,count(*) from t1 group by v limit 10;
-v count(*)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-select sql_big_result v,count(t) from t1 group by v limit 10;
-v count(t)
-a 1
-a 10
-b 10
-c 10
-d 10
-e 10
-f 10
-g 10
-h 10
-i 10
-drop table t1;
-create table t1 (a char(10), unique (a));
-insert into t1 values ('a ');
-insert into t1 values ('a ');
-ERROR 23000: Duplicate entry 'a' for key 'a'
-alter table t1 modify a varchar(10);
-insert into t1 values ('a '),('a '),('a '),('a ');
-ERROR 23000: Duplicate entry 'a ' for key 'a'
-insert into t1 values ('a ');
-ERROR 23000: Duplicate entry 'a ' for key 'a'
-insert into t1 values ('a ');
-ERROR 23000: Duplicate entry 'a ' for key 'a'
-insert into t1 values ('a ');
-ERROR 23000: Duplicate entry 'a ' for key 'a'
-update t1 set a='a ' where a like 'a%';
-select concat(a,'.') from t1;
-concat(a,'.')
-a .
-update t1 set a='abc ' where a like 'a ';
-select concat(a,'.') from t1;
-concat(a,'.')
-a .
-update t1 set a='a ' where a like 'a %';
-select concat(a,'.') from t1;
-concat(a,'.')
-a .
-update t1 set a='a ' where a like 'a ';
-select concat(a,'.') from t1;
-concat(a,'.')
-a .
-drop table t1;
-create table t1 (v varchar(10), c char(10), t text, key(v(5)), key(c(5)), key(t(5)));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL,
- `t` text DEFAULT NULL,
- KEY `v` (`v`(5)),
- KEY `c` (`c`(5)),
- KEY `t` (`t`(5))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (v char(10) character set utf8);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` char(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (v varchar(10), c char(10)) row_format=fixed;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(10) DEFAULT NULL,
- `c` char(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED
-insert into t1 values('a','a'),('a ','a ');
-select concat('*',v,'*',c,'*') from t1;
-concat('*',v,'*',c,'*')
-*a*a*
-*a *a*
-drop table t1;
-create table t1 (v varchar(65530), key(v(10)));
-insert into t1 values(repeat('a',65530));
-select length(v) from t1 where v=repeat('a',65530);
-length(v)
-65530
-drop table t1;
-create table t1(a int, b varchar(12), key ba(b, a));
-insert into t1 values (1, 'A'), (20, NULL);
-explain select * from t1 where a=20 and b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref ba ba 20 const,const 1 Using where; Using index
-select * from t1 where a=20 and b is null;
-a b
-20 NULL
-drop table t1;
-create table t1 (v varchar(65530), key(v));
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-drop table if exists t1;
-set statement sql_mode = 'NO_ENGINE_SUBSTITUTION' for
-create table t1 (v varchar(65536));
-Warnings:
-Note 1246 Converting column 'v' from VARCHAR to TEXT
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` mediumtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set statement sql_mode = 'NO_ENGINE_SUBSTITUTION' for
-create table t1 (v varchar(65530) character set utf8);
-Warnings:
-Note 1246 Converting column 'v' from VARCHAR to TEXT
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` mediumtext CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set statement sql_mode='' for
-create table t1 (v varchar(65535));
-Warnings:
-Note 1246 Converting column 'v' from VARCHAR to TEXT
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set storage_engine=MyISAM;
-set @save_concurrent_insert=@@concurrent_insert;
-set global concurrent_insert=1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3),(4),(5);
-lock table t1 read local;
-connect con1,localhost,root,,;
-connection con1;
-insert into t1 values(6),(7);
-connection default;
-unlock tables;
-delete from t1 where a>=3 and a<=4;
-lock table t1 read local;
-connection con1;
-set global concurrent_insert=2;
-insert into t1 values (8),(9);
-connection default;
-unlock tables;
-insert into t1 values (10),(11),(12);
-select * from t1;
-a
-1
-2
-11
-10
-5
-6
-7
-8
-9
-12
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-disconnect con1;
-create table t1 (a int, b varchar(30) default "hello");
-insert into t1 (a) values (1),(2),(3),(4),(5);
-lock table t1 read local;
-connect con1,localhost,root,,;
-connection con1;
-insert into t1 (a) values(6),(7);
-connection default;
-unlock tables;
-delete from t1 where a>=3 and a<=4;
-lock table t1 read local;
-connection con1;
-set global concurrent_insert=2;
-insert into t1 (a) values (8),(9);
-connection default;
-unlock tables;
-insert into t1 (a) values (10),(11),(12);
-select a from t1;
-a
-1
-2
-11
-10
-5
-6
-7
-8
-9
-12
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-disconnect con1;
-set global concurrent_insert=@save_concurrent_insert;
-create table t1 (a int, key(a));
-insert into t1 values (1),(2),(3),(4),(NULL),(NULL),(NULL),(NULL);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A 8 NULL NULL YES BTREE
-alter table t1 disable keys;
-alter table t1 enable keys;
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A 8 NULL NULL YES BTREE
-drop table t1;
-create table t1 (c1 int) engine=myisam pack_keys=0;
-create table t2 (c1 int) engine=myisam pack_keys=1;
-create table t3 (c1 int) engine=myisam pack_keys=default;
-create table t4 (c1 int) engine=myisam pack_keys=2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '2' at line 1
-drop table t1, t2, t3;
-CREATE TABLE t1(a INT, b INT, KEY inx (a), UNIQUE KEY uinx (b)) ENGINE=MyISAM;
-INSERT INTO t1(a,b) VALUES (1,1),(2,2),(3,3),(4,4),(5,5);
-SELECT a FROM t1 FORCE INDEX (inx) WHERE a=1;
-a
-1
-ALTER TABLE t1 DISABLE KEYS;
-SELECT a FROM t1 FORCE INDEX (inx) WHERE a=1;
-a
-1
-SELECT a FROM t1 USE INDEX (inx) WHERE a=1;
-a
-1
-SELECT b FROM t1 FORCE INDEX (uinx) WHERE b=1;
-b
-1
-SELECT b FROM t1 USE INDEX (uinx) WHERE b=1;
-b
-1
-SELECT a FROM t1 FORCE INDEX (inx,uinx) WHERE a=1;
-a
-1
-ALTER TABLE t1 ENABLE KEYS;
-SELECT a FROM t1 FORCE INDEX (inx) WHERE a=1;
-a
-1
-DROP TABLE t1;
-CREATE TABLE t1 (c1 INT, c2 INT, UNIQUE INDEX (c1), INDEX (c2)) ENGINE=MYISAM;
-SHOW TABLE STATUS LIKE 't1';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 0 # # # 1024 # # # # # # # # N
-INSERT INTO t1 VALUES (1,1);
-SHOW TABLE STATUS LIKE 't1';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 1 # # # 3072 # # # # # # # # N
-ALTER TABLE t1 DISABLE KEYS;
-SHOW TABLE STATUS LIKE 't1';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 1 # # # 3072 # # # # # # # # N
-ALTER TABLE t1 ENABLE KEYS;
-SHOW TABLE STATUS LIKE 't1';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 1 # # # 3072 # # # # # # # # N
-ALTER TABLE t1 DISABLE KEYS;
-SHOW TABLE STATUS LIKE 't1';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 1 # # # 3072 # # # # # # # # N
-ALTER TABLE t1 ENABLE KEYS;
-SHOW TABLE STATUS LIKE 't1';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 1 # # # 3072 # # # # # # # # N
-# Enable keys with parallel repair
-SET @@myisam_repair_threads=2;
-ALTER TABLE t1 DISABLE KEYS;
-ALTER TABLE t1 ENABLE KEYS;
-SET @@myisam_repair_threads=1;
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-CREATE TABLE t1 (id int NOT NULL, ref int NOT NULL, INDEX (id)) ENGINE=MyISAM;
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 (id, ref) VALUES (1,3), (2,1), (3,2), (4,5), (4,4);
-INSERT INTO t1 SELECT * FROM t2;
-SELECT * FROM t1 AS a INNER JOIN t1 AS b USING (id) WHERE a.ref < b.ref;
-id ref ref
-4 4 5
-SELECT * FROM t1;
-id ref
-1 3
-2 1
-3 2
-4 5
-4 4
-DELETE FROM a USING t1 AS a INNER JOIN t1 AS b USING (id) WHERE a.ref < b.ref;
-SELECT * FROM t1;
-id ref
-1 3
-2 1
-3 2
-4 5
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a INT) ENGINE=MyISAM CHECKSUM=1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 VALUES (0);
-UPDATE t1 SET a=1;
-SELECT a FROM t1;
-a
-1
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-INSERT INTO t1 VALUES (0), (5), (4), (2);
-UPDATE t1 SET a=2;
-SELECT a FROM t1;
-a
-2
-2
-2
-2
-2
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-#
-# Bug #49465: valgrind warnings and incorrect live checksum...
-#
-CREATE TABLE t1(
-a VARCHAR(1), b VARCHAR(1), c VARCHAR(1),
-f VARCHAR(1), g VARCHAR(1), h VARCHAR(1),
-i VARCHAR(1), j VARCHAR(1), k VARCHAR(1)) CHECKSUM=1;
-INSERT INTO t1 VALUES('', '', '', '', '', '', '', '', '');
-CHECKSUM TABLE t1 QUICK;
-Table Checksum
-test.t1 467455460
-CHECKSUM TABLE t1 EXTENDED;
-Table Checksum
-test.t1 467455460
-DROP TABLE t1;
-#
-# BUG#48438 - crash with error in unioned query against merge table and view...
-#
-SET GLOBAL table_open_cache=3;
-CREATE TABLE t1(a INT);
-SELECT 1 FROM t1 AS a1, t1 AS a2, t1 AS a3, t1 AS a4 FOR UPDATE;
-1
-SELECT TABLE_ROWS, DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES
-WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-TABLE_ROWS DATA_LENGTH
-0 0
-DROP TABLE t1;
-SET GLOBAL table_open_cache=DEFAULT;
-End of 5.0 tests
-create table t1 (a int not null, key `a` (a) key_block_size=1024);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=1024
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int not null, key `a` (a) key_block_size=2048);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=2048
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a varchar(2048), key `a` (a));
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(2048) DEFAULT NULL,
- KEY `a` (`a`(1000))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a varchar(2048), key `a` (a) key_block_size=1024);
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(2048) DEFAULT NULL,
- KEY `a` (`a`(1000)) KEY_BLOCK_SIZE=4096
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int not null, b varchar(2048), key (a), key(b)) key_block_size=1024;
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(2048) DEFAULT NULL,
- KEY `a` (`a`),
- KEY `b` (`b`(1000)) KEY_BLOCK_SIZE=4096
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=1024
-alter table t1 key_block_size=2048;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(2048) DEFAULT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=1024,
- KEY `b` (`b`(1000)) KEY_BLOCK_SIZE=4096
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=2048
-alter table t1 add c int, add key (c);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(2048) DEFAULT NULL,
- `c` int(11) DEFAULT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=1024,
- KEY `b` (`b`(1000)) KEY_BLOCK_SIZE=4096,
- KEY `c` (`c`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=2048
-alter table t1 key_block_size=0;
-alter table t1 add d int, add key (d);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(2048) DEFAULT NULL,
- `c` int(11) DEFAULT NULL,
- `d` int(11) DEFAULT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=1024,
- KEY `b` (`b`(1000)) KEY_BLOCK_SIZE=4096,
- KEY `c` (`c`) KEY_BLOCK_SIZE=2048,
- KEY `d` (`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int not null, b varchar(2048), key (a), key(b)) key_block_size=8192;
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(2048) DEFAULT NULL,
- KEY `a` (`a`),
- KEY `b` (`b`(1000))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=8192
-drop table t1;
-create table t1 (a int not null, b varchar(512), key (a), key(b));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(512) DEFAULT NULL,
- KEY `a` (`a`),
- KEY `b` (`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 key_block_size=2048;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(512) DEFAULT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=1024,
- KEY `b` (`b`) KEY_BLOCK_SIZE=3072
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=2048
-alter table t1 add c int, add key (c);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(512) DEFAULT NULL,
- `c` int(11) DEFAULT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=1024,
- KEY `b` (`b`) KEY_BLOCK_SIZE=4096,
- KEY `c` (`c`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=2048
-alter table t1 key_block_size=4096;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(512) DEFAULT NULL,
- `c` int(11) DEFAULT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=1024,
- KEY `b` (`b`),
- KEY `c` (`c`) KEY_BLOCK_SIZE=2048
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=4096
-alter table t1 key_block_size=0;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(512) DEFAULT NULL,
- `c` int(11) DEFAULT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=1024,
- KEY `b` (`b`) KEY_BLOCK_SIZE=4096,
- KEY `c` (`c`) KEY_BLOCK_SIZE=2048
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 add d int, add key (d);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(512) DEFAULT NULL,
- `c` int(11) DEFAULT NULL,
- `d` int(11) DEFAULT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=1024,
- KEY `b` (`b`) KEY_BLOCK_SIZE=4096,
- KEY `c` (`c`) KEY_BLOCK_SIZE=2048,
- KEY `d` (`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 key_block_size=8192;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(512) DEFAULT NULL,
- `c` int(11) DEFAULT NULL,
- `d` int(11) DEFAULT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=1024,
- KEY `b` (`b`) KEY_BLOCK_SIZE=4096,
- KEY `c` (`c`) KEY_BLOCK_SIZE=2048,
- KEY `d` (`d`) KEY_BLOCK_SIZE=1024
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=8192
-drop table t1;
-create table t1 (a int not null, b varchar(2048), key (a) key_block_size=1024, key(b)) key_block_size=8192;
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(2048) DEFAULT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=1024,
- KEY `b` (`b`(1000))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=8192
-drop table t1;
-create table t1 (a int not null, b int, key (a) key_block_size=1024, key(b) key_block_size=8192) key_block_size=16384;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) DEFAULT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=1024,
- KEY `b` (`b`) KEY_BLOCK_SIZE=8192
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=16384
-drop table t1;
-create table t1 (a int not null, key `a` (a) key_block_size=512);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=1024
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a varchar(2048), key `a` (a) key_block_size=1000000000000000000);
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(2048) DEFAULT NULL,
- KEY `a` (`a`(1000)) KEY_BLOCK_SIZE=4096
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int not null, key `a` (a) key_block_size=1025);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- KEY `a` (`a`) KEY_BLOCK_SIZE=2048
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int not null, key key_block_size=1024 (a));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '=1024 (a))' at line 1
-create table t1 (a int not null, key `a` key_block_size=1024 (a));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_block_size=1024 (a))' at line 1
-CREATE TABLE t1 (
-c1 INT,
-c2 VARCHAR(300),
-KEY (c1) KEY_BLOCK_SIZE 1024,
-KEY (c2) KEY_BLOCK_SIZE 8192
-);
-INSERT INTO t1 VALUES (10, REPEAT('a', CEIL(RAND(10) * 300))),
-(11, REPEAT('b', CEIL(RAND() * 300))),
-(12, REPEAT('c', CEIL(RAND() * 300))),
-(13, REPEAT('d', CEIL(RAND() * 300))),
-(14, REPEAT('e', CEIL(RAND() * 300))),
-(15, REPEAT('f', CEIL(RAND() * 300))),
-(16, REPEAT('g', CEIL(RAND() * 300))),
-(17, REPEAT('h', CEIL(RAND() * 300))),
-(18, REPEAT('i', CEIL(RAND() * 300))),
-(19, REPEAT('j', CEIL(RAND() * 300))),
-(20, REPEAT('k', CEIL(RAND() * 300))),
-(21, REPEAT('l', CEIL(RAND() * 300))),
-(22, REPEAT('m', CEIL(RAND() * 300))),
-(23, REPEAT('n', CEIL(RAND() * 300))),
-(24, REPEAT('o', CEIL(RAND() * 300))),
-(25, REPEAT('p', CEIL(RAND() * 300))),
-(26, REPEAT('q', CEIL(RAND() * 300))),
-(27, REPEAT('r', CEIL(RAND() * 300))),
-(28, REPEAT('s', CEIL(RAND() * 300))),
-(29, REPEAT('t', CEIL(RAND() * 300))),
-(30, REPEAT('u', CEIL(RAND() * 300))),
-(31, REPEAT('v', CEIL(RAND() * 300))),
-(32, REPEAT('w', CEIL(RAND() * 300))),
-(33, REPEAT('x', CEIL(RAND() * 300))),
-(34, REPEAT('y', CEIL(RAND() * 300))),
-(35, REPEAT('z', CEIL(RAND() * 300)));
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-DELETE FROM t1 WHERE c1 >= 10;
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 CHAR(130),
-c2 VARCHAR(1)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES(REPEAT("a",128), 'b');
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-1
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-1
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 CHAR(130),
-c2 VARCHAR(1)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES(REPEAT("a",128), 'b');
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-1
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-REPAIR TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-1
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 CHAR(130),
-c2 VARCHAR(1)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES(REPEAT("a",128), 'b');
-INSERT INTO t1 VALUES('b', 'b');
-INSERT INTO t1 VALUES('c', 'b');
-DELETE FROM t1 WHERE c1='b';
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-2
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-2
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 CHAR(130),
-c2 VARCHAR(1),
-KEY (c1)
-) ENGINE=MyISAM;
-# Insert 100 rows. Query log disabled.
-UPDATE t1 SET c1=REPEAT("a",128) LIMIT 90;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-100
-ALTER TABLE t1 ENGINE=MyISAM;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-100
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 CHAR(50),
-c2 VARCHAR(1)
-) ENGINE=MyISAM DEFAULT CHARSET UTF8;
-INSERT INTO t1 VALUES(REPEAT(_utf8 x'e0ae85',43), 'b');
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-1
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-1
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 CHAR(50),
-c2 VARCHAR(1)
-) ENGINE=MyISAM DEFAULT CHARSET UTF8;
-INSERT INTO t1 VALUES(REPEAT(_utf8 x'e0ae85',43), 'b');
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-1
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-REPAIR TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-1
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 CHAR(50),
-c2 VARCHAR(1)
-) ENGINE=MyISAM DEFAULT CHARSET UTF8;
-INSERT INTO t1 VALUES(REPEAT(_utf8 x'e0ae85',43), 'b');
-INSERT INTO t1 VALUES('b', 'b');
-INSERT INTO t1 VALUES('c', 'b');
-DELETE FROM t1 WHERE c1='b';
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-2
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-2
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 CHAR(50),
-c2 VARCHAR(1),
-KEY (c1)
-) ENGINE=MyISAM DEFAULT CHARSET UTF8;
-# Insert 100 rows. Query log disabled.
-UPDATE t1 SET c1=REPEAT(_utf8 x'e0ae85',43) LIMIT 90;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-100
-ALTER TABLE t1 ENGINE=MyISAM;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-100
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 VARCHAR(10) NOT NULL,
-c2 CHAR(10) DEFAULT NULL,
-c3 VARCHAR(10) NOT NULL,
-KEY (c1),
-KEY (c2)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0;
-
-MyISAM file: MYSQLD_DATADIR/test/t1
-Record format: Packed
-Character set: utf8_general_ci (33)
-Data records: 0 Deleted blocks: 0
-Recordlength: 94
-
-table description:
-Key Start Len Index Type
-1 2 30 multip. varchar
-2 33 30 multip. char NULL
-DROP TABLE t1;
-create table t1 (n int not null, c char(1)) transactional=1;
-Warnings:
-Warning 1478 Table storage engine 'MyISAM' does not support the create option 'TRANSACTIONAL=1'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `n` int(11) NOT NULL,
- `c` char(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 TRANSACTIONAL=1
-drop table t1;
-CREATE TABLE t1 (line LINESTRING NOT NULL) engine=myisam;
-INSERT INTO t1 VALUES (GeomFromText("LINESTRING(0 0)"));
-checksum table t1;
-Table Checksum
-test.t1 310616673
-CREATE TABLE t2 (line LINESTRING NOT NULL) engine=myisam;
-INSERT INTO t2 VALUES (GeomFromText("LINESTRING(0 0)"));
-checksum table t2;
-Table Checksum
-test.t2 310616673
-CREATE TABLE t3 select * from t1;
-checksum table t3;
-Table Checksum
-test.t3 310616673
-drop table t1,t2,t3;
-create table t1 (a1 int,a2 int,a3 int,a4 int,a5 int,a6 int,a7 int,a8 int,a9 int,a10 int,a11 int,a12 int,a13 int,a14 int,a15 int,a16 int,a17 int,a18 int,a19 int,a20 int,a21 int,a22 int,a23 int,a24 int,a25 int,a26 int,a27 int,a28 int,a29 int,a30 int,a31 int,a32 int,
-key(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32)) engine=myisam;
-drop table t1;
-create table t1 (a1 int,a2 int,a3 int,a4 int,a5 int,a6 int,a7 int,a8 int,a9 int,a10 int,a11 int,a12 int,a13 int,a14 int,a15 int,a16 int,a17 int,a18 int,a19 int,a20 int,a21 int,a22 int,a23 int,a24 int,a25 int,a26 int,a27 int,a28 int,a29 int,a30 int,a31 int,a32 int, a33 int,
-key(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33)) engine=myisam;
-ERROR 42000: Too many key parts specified; max 32 parts allowed
-CREATE TABLE t1 (
-c INT,
-d bit(1),
-e INT,
-f VARCHAR(1),
-g BIT(1),
-h BIT(1),
-KEY (h, d, e, g)
-);
-INSERT INTO t1 VALUES
-( 3, 1, 1, 'a', 0, 0 ),
-( 3, 1, 5, 'a', 0, 0 ),
-( 10, 1, 2, 'a', 0, 1 ),
-( 10, 1, 3, 'a', 0, 1 ),
-( 10, 1, 4, 'a', 0, 1 );
-SELECT f FROM t1 WHERE d = 1 AND e = 2 AND g = 0 AND h = 1;
-f
-a
-SELECT h+0, d + 0, e, g + 0 FROM t1;
-h+0 d + 0 e g + 0
-0 1 1 0
-0 1 5 0
-1 1 2 0
-1 1 3 0
-1 1 4 0
-DROP TABLE t1;
-CREATE TABLE t1(a INT, b CHAR(10), KEY(a), KEY(b));
-INSERT INTO t1 VALUES(1,'0'),(2,'0'),(3,'0'),(4,'0'),(5,'0'),
-(6,'0'),(7,'0');
-INSERT INTO t1 SELECT a+10,b FROM t1;
-INSERT INTO t1 SELECT a+20,b FROM t1;
-INSERT INTO t1 SELECT a+40,b FROM t1;
-INSERT INTO t1 SELECT a+80,b FROM t1;
-INSERT INTO t1 SELECT a+160,b FROM t1;
-INSERT INTO t1 SELECT a+320,b FROM t1;
-INSERT INTO t1 SELECT a+640,b FROM t1;
-INSERT INTO t1 SELECT a+1280,b FROM t1;
-INSERT INTO t1 SELECT a+2560,b FROM t1;
-INSERT INTO t1 SELECT a+5120,b FROM t1;
-SET myisam_sort_buffer_size=4;
-Warnings:
-Warning 1292 Truncated incorrect myisam_sort_buffer_size value: '4'
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair error myisam_sort_buffer_size is too small. X
-test.t1 repair warning Number of rows changed from 0 to 7168
-test.t1 repair status OK
-SET myisam_repair_threads=2;
-REPAIR TABLE t1;
-SET myisam_repair_threads=@@global.myisam_repair_threads;
-SET myisam_sort_buffer_size=@@global.myisam_sort_buffer_size;
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-#
-# BUG#49628 - corrupt table after legal SQL, LONGTEXT column
-#
-CREATE TABLE t1(a INT, b LONGTEXT, UNIQUE(a));
-REPLACE INTO t1 VALUES
-(1, REPEAT('a', 129015)),(1, NULL),
-(2, NULL),(3, NULL),(4, NULL),(5, NULL),(6, NULL),(7, NULL),
-(1, REPEAT('b', 129016)),(1, NULL),
-(1, REPEAT('c', 129015)),(1, REPEAT('d', 129015));
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-#
-# Bug#51304: checksum table gives different results
-# for same data when using bit fields
-#
-CREATE TABLE t1(a INT, b BIT(1));
-INSERT INTO t1 VALUES(1, 0), (2, 1);
-CREATE TABLE t2 SELECT * FROM t1;
-FLUSH TABLES;
-CHECKSUM TABLE t1 EXTENDED;
-Table Checksum
-test.t1 3775188275
-CHECKSUM TABLE t2 EXTENDED;
-Table Checksum
-test.t2 3775188275
-CHECKSUM TABLE t3 EXTENDED;
-Table Checksum
-test.t3 3775188275
-DROP TABLE t1, t2, t3;
-#
-# BUG#51307 - widespread corruption with partitions and insert...select
-#
-CREATE TABLE t1(a CHAR(255), KEY(a));
-SELECT * FROM t1, t1 AS a1;
-a a
-SET myisam_sort_buffer_size=4;
-Warnings:
-Warning 1292 Truncated incorrect myisam_sort_buffer_size value: '4'
-INSERT INTO t1 VALUES
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0');
-Warnings:
-Error 1034 myisam_sort_buffer_size is too small. X
-Error 1034 Number of rows changed from 0 to 157
-SET myisam_sort_buffer_size=@@global.myisam_sort_buffer_size;
-INSERT INTO t1 VALUES('1');
-SELECT * FROM t1, t1 AS a1 WHERE t1.a=1 AND a1.a=1;
-a a
-1 1
-DROP TABLE t1;
-#
-# BUG#47444 - --myisam_repair_threads>1can result in all index
-# cardinalities=1
-#
-SET myisam_repair_threads=2;
-SET myisam_sort_buffer_size=4096;
-CREATE TABLE t1(a CHAR(255), KEY(a), KEY(a), KEY(a));
-Warnings:
-Note 1831 Duplicate index `a_2`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `a_3`. This is deprecated and will be disallowed in a future release
-INSERT INTO t1 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9),(0),(1),(2),(3);
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-SELECT CARDINALITY FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
-CARDINALITY
-14
-14
-14
-DROP TABLE t1;
-SET myisam_sort_buffer_size=@@global.myisam_sort_buffer_size;
-SET myisam_repair_threads=@@global.myisam_repair_threads;
-#
-# BUG#11757032 - 49030: OPTIMIZE TABLE BREAKS MYISAM TABLE WHEN
-# USING MYISAM_USE_MMAP ON WINDOWS
-#
-SET GLOBAL myisam_use_mmap=1;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES(1),(2);
-DELETE FROM t1 WHERE a=1;
-FLUSH TABLE t1;
-LOCK TABLE t1 WRITE;
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-INSERT INTO t1 VALUES(3);
-UNLOCK TABLES;
-SELECT * FROM t1;
-a
-2
-3
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-SET GLOBAL myisam_use_mmap=default;
-#
-# BUG 11756869 - 48848: MYISAMCHK DOING SORT RECOVER IN CERTAIN
-# CASES RESETS DATA POINTER TO SMAL
-#
-CREATE TABLE t1(a INT, KEY(a));
-ALTER TABLE t1 DISABLE KEYS;
-SET @before:= (SELECT MAX_DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='t1' AND TABLE_SCHEMA='test');
-FLUSH TABLES;
-SET @after:= (SELECT MAX_DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='t1' AND TABLE_SCHEMA='test');
-SELECT @before=@after;
-@before=@after
-1
-DROP TABLE t1;
-End of 5.1 tests
-#
-# Bug#51327 MyISAM table is automatically repaired on ALTER
-# even if myisam-recover is OFF
-#
-call mtr.add_suppression("Got an error from thread_id=.*ha_myisam.cc:");
-call mtr.add_suppression("MySQL thread id .*, query id .* localhost.*root Checking table");
-call mtr.add_suppression(" '\..test.t1'");
-# Test that we can exchange a crashed partition with a table
-SELECT @@global.myisam_recover_options;
-@@global.myisam_recover_options
-OFF
-CREATE TABLE t1 (a INT, KEY (a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1), (2);
-FLUSH TABLES;
-# replacing t.MYI with a corrupt + unclosed one created by doing:
-# 'create table t1 (a int key(a))' head -c1024 t1.MYI > corrupt_t1.MYI
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check warning 1 client is using or hasn't closed the table properly
-test.t1 check error Size of indexfile is: 1024 Should be: 2048
-test.t1 check warning Size of datafile is: 14 Should be: 7
-test.t1 check error Corrupt
-# Alter table should report error and not auto-repair the table.
-ALTER TABLE t1 ENGINE = MyISAM;
-ERROR HY000: Table 't1' is marked as crashed and should be repaired
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check warning Table is marked as crashed
-test.t1 check warning 1 client is using or hasn't closed the table properly
-test.t1 check error Size of indexfile is: 1024 Should be: 2048
-test.t1 check warning Size of datafile is: 14 Should be: 7
-test.t1 check error Corrupt
-DROP TABLE t1;
-#
-# MDEV-3870 - Valgrind warnings on OPTIMIZE MyISAM or Aria TABLE with
-# disabled keys
-#
-CREATE TABLE t1 (a INT, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4),(3),(1),(0);
-ALTER TABLE t1 DISABLE KEYS;
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-DROP TABLE t1;
-CREATE TABLE t1(a INT, b CHAR(10), KEY(a), KEY(b)) engine=myisam;
-INSERT INTO t1 VALUES(1,'0'),(2,'0'),(3,'0'),(4,'0'),(5,'0'),
-(6,'0'),(7,'0');
-flush tables test.t1 for export;
-insert into t1 values (8,'0');
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-unlock tables;
-drop table t1;
-show variables like 'myisam_block_size';
-Variable_name Value
-myisam_block_size 1024
-select @@global.myisam_block_size;
-@@global.myisam_block_size
-1024
diff --git a/mysql-test/r/myisam_crash_before_flush_keys.result b/mysql-test/r/myisam_crash_before_flush_keys.result
deleted file mode 100644
index 7d929ffb644..00000000000
--- a/mysql-test/r/myisam_crash_before_flush_keys.result
+++ /dev/null
@@ -1,30 +0,0 @@
-#
-# BUG#41330 - Myisam table open count set to zero before index blocks are written.
-#
-# Don't test this under valgrind, memory leaks will occur
-# Binary must be compiled with debug for crash to occur
-call mtr.add_suppression("Got an error from thread_id=.*ha_myisam.cc:");
-call mtr.add_suppression("MySQL thread id .*, query id .* localhost.*root Checking table");
-flush tables;
-SET GLOBAL delay_key_write=ALL;
-CREATE TABLE t1(a INT,
-b INT,
-PRIMARY KEY(a , b),
-KEY(b)) ENGINE=MyISAM DELAY_KEY_WRITE = 1;
-INSERT INTO t1 VALUES (1,2),(2,3),(3,4),(4,5),(5,6);
-# Setup the mysqld to crash at certain point
-SET SESSION debug_dbug="d,crash_before_flush_keys";
-# Write file to make mysql-test-run.pl expect crash
-# Run the crashing query
-FLUSH TABLE t1;
-ERROR HY000: Lost connection to MySQL server during query
-# Write file to make mysql-test-run.pl start the server
-# Turn on reconnect
-# Call script that will poll the server waiting for
-# it to be back online again
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check warning 1 client is using or hasn't closed the table properly
-test.t1 check error Size of indexfile is: 1024 Should be: 3072
-test.t1 check error Corrupt
-DROP TABLE t1;
diff --git a/mysql-test/r/myisam_debug.result b/mysql-test/r/myisam_debug.result
deleted file mode 100644
index 6232e3eac0e..00000000000
--- a/mysql-test/r/myisam_debug.result
+++ /dev/null
@@ -1,43 +0,0 @@
-#
-# BUG#40827 - Killing insert-select to MyISAM can cause table corruption
-#
-CONNECT insertConn, localhost, root,,;
-CREATE TABLE `t1` (
-`id` BIGINT(20) ,
-`id1` BIGINT(20) AUTO_INCREMENT,
-KEY(id1), KEY(id)
-) ENGINE=MyISAM;
-CREATE TABLE `t2` (
-`id` BIGINT(20) ,
-`id1` BIGINT(20) AUTO_INCREMENT,
-KEY (id1), KEY(id)
-) ENGINE=MyISAM;
-INSERT INTO t2 (id) VALUES (123);
-connection insertConn;
-SET SESSION debug_dbug='+d,wait_in_enable_indexes';
-# Send insert data
-INSERT INTO t1(id) SELECT id FROM t2;
-connection default;
-# Wait for insert data to reach the debug point
-SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST
-WHERE STATE = 'wait_in_enable_indexes' AND
-INFO = "INSERT INTO t1(id) SELECT id FROM t2"
-INTO @thread_id;
-KILL QUERY @thread_id;
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1,t2;
-disconnect insertConn;
-call mtr.add_suppression("Index for table '.*test.t1\\.MYI' is corrupt; try to repair it");
-create table t1 (a int, index(a));
-lock tables t1 write;
-insert t1 values (1),(2),(1);
-set @old_dbug=@@debug_dbug;
-set debug_dbug='+d,mi_lock_database_failure';
-unlock tables;
-Warnings:
-Error 126 Index for table './test/t1.MYI' is corrupt; try to repair it
-Error 1030 Got error 22 "Invalid argument" from storage engine MyISAM
-set debug_dbug=@old_dbug;
-drop table t1;
diff --git a/mysql-test/r/myisam_enable_keys-10506.result b/mysql-test/r/myisam_enable_keys-10506.result
deleted file mode 100644
index 77a5ba8a6ea..00000000000
--- a/mysql-test/r/myisam_enable_keys-10506.result
+++ /dev/null
@@ -1,115 +0,0 @@
-call mtr.add_suppression("Can't find record in '.*'");
-CREATE TABLE t1 (
-pk INT AUTO_INCREMENT,
-i INT,
-d DATE,
-dt DATETIME,
-v VARCHAR(1),
-PRIMARY KEY (pk),
-KEY (dt)
-) ENGINE=MyISAM;
-INSERT INTO t1 (i, d, dt, v) VALUES
-(9, '2005-07-23', '2004-05-13 01:01:39', 't'),
-(2, '2009-11-01', '2003-12-24 07:39:29', 'h'),
-(6, NULL, '2008-07-03 05:32:22', 'l'),
-(6, '2007-07-16', '2008-08-28 18:46:11', 'j'),
-(5, NULL, '2001-07-12 21:27:00', 'h'),
-(3, '2007-07-22', '1900-01-01 00:00:00', 'p'),
-(2, '2000-11-21', '2007-05-25 11:58:54', 'g'),
-(6, '1900-01-01', '2009-06-03 17:11:10', 'i'),
-(2, '2008-02-10', '2001-06-15 16:20:07', 'p'),
-(3, '2009-06-04', '1900-01-01 00:00:00', 'h'),
-(9, '2007-04-25', '1900-01-01 00:00:00', 'e'),
-(9, '2006-03-02', '1900-01-01 00:00:00', 'e'),
-(1, '1900-01-01', '2002-11-08 09:33:27', 'u'),
-(7, '2008-07-13', '2007-08-07 17:35:52', 'j'),
-(0, '2004-11-12', '2006-05-01 00:00:00', 'e'),
-(0, '1900-01-01', '2003-05-01 00:00:00', 'z'),
-(1, '2009-09-02', '2007-02-12 09:30:49', 'w'),
-(0, '2004-11-06', '1900-01-01 00:00:00', 't'),
-(4, '2003-01-06', '2002-07-03 02:51:11', 'i'),
-(6, '2006-01-14', '2008-02-26 04:57:32', 'i'),
-(0, '2002-01-19', '2009-02-12 00:00:00', 'i'),
-(8, '2007-02-12', '1900-01-01 00:00:00', 'b'),
-(4, '1900-01-01', '2001-05-16 05:28:40', 'm'),
-(2, '2005-07-16', NULL, 'j'),
-(1, '2004-09-04', '2001-01-24 21:45:18', 'v'),
-(3, '2009-07-01', NULL, NULL),
-(2, '2009-07-21', '2002-07-24 00:00:00', 'h'),
-(4, NULL, '2001-11-03 12:22:30', 'q'),
-(1, '2002-06-22', '2008-06-17 03:17:59', 'f'),
-(7, '2005-06-23', '2005-12-24 00:00:00', 'p'),
-(6, '2001-05-20', '2008-10-23 00:00:00', NULL),
-(3, '2001-10-01', '2000-10-12 16:32:35', 'o'),
-(3, '2001-01-07', '2005-09-11 10:09:54', 'w'),
-(6, '2007-11-02', '2009-09-10 01:44:18', 'l'),
-(6, NULL, NULL, 'i'),
-(9, NULL, '2002-05-18 15:21:55', 'd'),
-(4, '2008-12-21', '2004-10-15 10:09:54', 'j'),
-(6, '2003-10-05', '2009-07-13 03:51:02', 'e'),
-(2, '2001-03-03', '1900-01-01 00:00:00', 'e'),
-(2, '2007-04-04', '2001-11-08 21:14:52', 'q'),
-(5, NULL, '2006-12-02 00:00:00', 'm'),
-(0, '2009-01-04', '1900-01-01 00:00:00', NULL),
-(8, '2008-04-03', '2005-01-01 11:55:18', 'q'),
-(8, NULL, '2005-02-28 03:44:02', 'w'),
-(0, '2003-08-22', NULL, 'c'),
-(9, '1900-01-01', NULL, 'y'),
-(NULL, NULL, '2006-08-25 16:28:09', 'g'),
-(5, '2004-07-04', '2002-08-11 00:00:00', 'z'),
-(1, '1900-01-01', '2007-07-22 21:19:18', 'm'),
-(2, '2007-02-04', '2006-02-10 18:41:38', 't'),
-(2, '1900-01-01', '2009-02-16 14:58:58', 'd'),
-(7, '2001-03-14', '2007-08-14 00:00:00', 'h'),
-(0, NULL, '1900-01-01 00:00:00', NULL),
-(1, '2008-10-05', NULL, 'f'),
-(6, '2001-11-25', '2008-12-03 06:59:23', 'l'),
-(NULL, '2003-01-27', '2008-10-04 00:00:00', 'g'),
-(8, '2008-08-08', '2009-07-07 07:00:21', 'v'),
-(8, '2006-07-03', '2001-04-15 00:00:00', NULL),
-(5, '2002-11-21', '2007-07-08 04:01:58', 'm'),
-(5, '2006-04-08', '2007-09-23 00:01:35', 'i'),
-(5, '2001-05-06', '2008-05-15 00:00:00', 'h'),
-(7, '1900-01-01', '1900-01-01 00:00:00', 'u'),
-(30, '2007-04-16', '2004-03-05 23:35:38', 'o'),
-(NULL, '1900-01-01', '2007-08-25 01:32:47', 'z'),
-(6, '2004-12-03', '1900-01-01 00:00:00', 'o'),
-(8, '2001-06-23', '1900-01-01 00:00:00', 'f'),
-(NULL, '2008-12-15', '2001-05-19 08:28:28', 'a'),
-(9, '2000-02-15', '2009-09-03 06:07:22', 'd'),
-(2, '2001-08-05', '2006-10-08 07:17:27', 'k'),
-(5, '2004-01-17', '2003-09-06 20:36:01', 'd'),
-(4, '2003-10-01', '2001-02-05 18:10:49', 'u'),
-(4, '2003-07-28', '2001-01-07 16:11:37', 'h'),
-(0, '1900-01-01', '2008-08-01 05:26:38', 'w'),
-(9, '1900-01-01', '2001-05-08 00:00:00', 't'),
-(1, '2000-04-17', '2008-07-10 21:26:28', 'i'),
-(8, '2002-01-05', '2006-08-06 20:56:35', 'k'),
-(9, '2001-04-10', '2003-02-17 00:00:00', 'z'),
-(0, '2009-12-04', NULL, 'h'),
-(7, NULL, '2004-10-27 00:29:57', 'h'),
-(2, '2006-03-07', '2008-03-04 06:14:13', 'b'),
-(0, '2001-10-15', '2001-03-17 00:00:00', 'm'),
-(5, '1900-01-01', '2009-02-21 11:35:50', 'i'),
-(4, NULL, '1900-01-01 00:00:00', 'w'),
-(5, '2009-04-05', '1900-01-01 00:00:00', 'm'),
-(6, '2001-03-19', '2001-04-12 00:00:00', 'q'),
-(NULL, '2009-12-08', '2001-12-04 20:21:01', 'k'),
-(2, '2005-02-09', '2001-05-27 08:41:01', 'l'),
-(9, '2004-05-25', '2004-09-18 00:00:00', 'c'),
-(3, '2005-01-17', '2002-09-12 11:18:48', 'd'),
-(0, '2003-08-28', '1900-01-01 00:00:00', 'k'),
-(6, '2006-10-11', '2003-10-28 03:31:02', 'a'),
-(5, '1900-01-01', '2001-08-22 10:20:09', 'p'),
-(8, '1900-01-01', '2008-04-24 00:00:00', 'o'),
-(4, '2005-08-18', '2006-11-10 10:08:49', 'e'),
-(NULL, '2007-03-12', '2007-10-16 00:00:00', 'n'),
-(1, '2000-11-18', '2009-05-27 12:25:07', 't'),
-(4, '2001-03-03', NULL, 'u'),
-(3, '2003-09-11', '2001-09-10 18:10:10', 'f'),
-(4, '2007-06-17', '1900-01-01 00:00:00', 't'),
-(NULL, '2008-09-11', '2004-06-07 23:17:09', 'k');
-ALTER TABLE t1 ADD UNIQUE KEY ind1 (pk, d, i, v);
-ALTER TABLE t1 ADD UNIQUE KEY ind2 (d, v);
-ERROR 23000: Duplicate entry '2008-09-11-k' for key 'ind2'
-DROP TABLE t1;
diff --git a/mysql-test/r/myisam_explain_non_select_all.result b/mysql-test/r/myisam_explain_non_select_all.result
deleted file mode 100644
index 09e662f5d6a..00000000000
--- a/mysql-test/r/myisam_explain_non_select_all.result
+++ /dev/null
@@ -1,2929 +0,0 @@
-set @save_storage_engine= @@session.default_storage_engine;
-set session default_storage_engine = MyISAM;
-#1
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-#
-# query: UPDATE t1 SET a = 10 WHERE a < 10
-# select: SELECT * FROM t1 WHERE a < 10
-#
-EXPLAIN UPDATE t1 SET a = 10 WHERE a < 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 SET a = 10 WHERE a < 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a < 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` < 10
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 4
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd_next 4
-Handler_update 3
-
-DROP TABLE t1;
-#2
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-#
-# query: DELETE FROM t1 WHERE a < 10
-# select: SELECT * FROM t1 WHERE a < 10
-#
-EXPLAIN DELETE FROM t1 WHERE a < 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 WHERE a < 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a < 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` < 10
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 4
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 3
-Handler_read_rnd_next 4
-
-DROP TABLE t1;
-#3
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-#
-# query: DELETE FROM t1 USING t1 WHERE a = 1
-# select: SELECT * FROM t1 WHERE a = 1
-#
-EXPLAIN DELETE FROM t1 USING t1 WHERE a = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 USING t1 WHERE a = 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a = 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 4
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 1
-Handler_read_rnd_next 4
-
-DROP TABLE t1;
-#4
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1), (2), (3);
-#
-# query: UPDATE t1, t2 SET t1.a = 10 WHERE t1.a = 1
-# select: SELECT * FROM t1, t2 WHERE t1.a = 1
-#
-EXPLAIN UPDATE t1, t2 SET t1.a = 10 WHERE t1.a = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1, t2 SET t1.a = 10 WHERE t1.a = 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1, t2 WHERE t1.a = 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` = 1
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 8
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd_next 8
-Handler_update 1
-
-DROP TABLE t1, t2;
-#5
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1), (2), (3);
-#
-# query: UPDATE t1 t11, (SELECT * FROM t2) t12 SET t11.a = 10 WHERE t11.a = 1
-# select: SELECT * FROM t1 t11, (SELECT * FROM t2) t12 WHERE t11.a = 1
-#
-EXPLAIN UPDATE t1 t11, (SELECT * FROM t2) t12 SET t11.a = 10 WHERE t11.a = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t11 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3
-2 DERIVED t2 ALL NULL NULL NULL NULL 3
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 t11, (SELECT * FROM t2) t12 SET t11.a = 10 WHERE t11.a = 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t11 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3 100.00
-2 DERIVED t2 ALL NULL NULL NULL NULL 3 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 t11, (SELECT * FROM t2) t12 WHERE t11.a = 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t11 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t11`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` `t11` join `test`.`t2` where `test`.`t11`.`a` = 1
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 8
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd_next 12
-Handler_update 1
-
-DROP TABLE t1, t2;
-#6
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1), (2), (3);
-#
-# query: UPDATE t1 SET a = 10 WHERE 1 IN (SELECT 1 FROM t2 WHERE t2.b < 3)
-# select: SELECT * FROM t1 WHERE 1 IN (SELECT 1 FROM t2 WHERE t2.b < 3)
-#
-EXPLAIN UPDATE t1 SET a = 10 WHERE 1 IN (SELECT 1 FROM t2 WHERE t2.b < 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 3 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 SET a = 10 WHERE 1 IN (SELECT 1 FROM t2 WHERE t2.b < 3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 3 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-Handler_read_rnd_next 1
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 1 IN (SELECT 1 FROM t2 WHERE t2.b < 3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` < 3
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 1
-Handler_read_rnd_next 8
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd_next 5
-Handler_update 3
-
-DROP TABLE t1, t2;
-#7
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1), (2), (3);
-#
-# query: UPDATE t1 SET a = 10 WHERE a IN (SELECT b FROM t2 WHERE t1.a < 3)
-# select: SELECT * FROM t1 WHERE a IN (SELECT b FROM t2 WHERE t1.a < 3)
-#
-EXPLAIN UPDATE t1 SET a = 10 WHERE a IN (SELECT b FROM t2 WHERE t1.a < 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 SET a = 10 WHERE a IN (SELECT b FROM t2 WHERE t1.a < 3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a IN (SELECT b FROM t2 WHERE t1.a < 3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 100.00 Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`a` and `test`.`t1`.`a` < 3
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 8
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd_next 7
-Handler_update 2
-
-DROP TABLE t1, t2;
-#7
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1), (2), (3);
-#
-# query: UPDATE t1, t2 SET a = 10 WHERE a IN (SELECT b FROM t2 WHERE t2.b < 3)
-# select: SELECT * FROM t1, t2 WHERE a IN (SELECT b FROM t2 WHERE t2.b < 3)
-#
-EXPLAIN UPDATE t1, t2 SET a = 10 WHERE a IN (SELECT b FROM t2 WHERE t2.b < 3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1, t2 SET a = 10 WHERE a IN (SELECT b FROM t2 WHERE t2.b < 3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1, t2 WHERE a IN (SELECT b FROM t2 WHERE t2.b < 3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` semi join (`test`.`t2`) join `test`.`t2` where `test`.`t2`.`b` < 3
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 3
-Handler_read_rnd_next 12
-# Status of testing query execution:
-Variable_name Value
-Handler_read_key 3
-Handler_read_rnd_next 16
-Handler_update 2
-
-DROP TABLE t1, t2;
-#8
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1), (2), (3);
-#
-# query: UPDATE t1 t11, (SELECT * FROM t2) t12 SET t11.a = t11.a + 10
-# select: SELECT * FROM t1 t11, (SELECT * FROM t2) t12
-#
-EXPLAIN UPDATE t1 t11, (SELECT * FROM t2) t12 SET t11.a = t11.a + 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t11 ALL NULL NULL NULL NULL 3
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3
-2 DERIVED t2 ALL NULL NULL NULL NULL 3
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 t11, (SELECT * FROM t2) t12 SET t11.a = t11.a + 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t11 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3 100.00
-2 DERIVED t2 ALL NULL NULL NULL NULL 3 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 t11, (SELECT * FROM t2) t12;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t11 ALL NULL NULL NULL NULL 3 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t11`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` `t11` join `test`.`t2`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 8
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd 3
-Handler_read_rnd_deleted 1
-Handler_read_rnd_next 24
-Handler_update 3
-
-DROP TABLE t1, t2;
-#9
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1), (2), (3);
-#
-# query: UPDATE t1 t11, (SELECT 1 FROM DUAL) t12 SET t11.a = t11.a + 10
-# select: SELECT * FROM t1 t11, (SELECT 1 FROM DUAL) t12
-#
-EXPLAIN UPDATE t1 t11, (SELECT 1 FROM DUAL) t12 SET t11.a = t11.a + 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 1
-1 PRIMARY t11 ALL NULL NULL NULL NULL 3
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL No tables used
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 t11, (SELECT 1 FROM DUAL) t12 SET t11.a = t11.a + 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t11 ALL NULL NULL NULL NULL 3 100.00
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-Handler_read_rnd_next 1
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 t11, (SELECT 1 FROM DUAL) t12;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t11 ALL NULL NULL NULL NULL 3 100.00
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t11`.`a` AS `a`,1 AS `1` from `test`.`t1` `t11`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-Handler_read_rnd_next 1
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 5
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd 3
-Handler_read_rnd_next 9
-Handler_update 3
-
-DROP TABLE t1, t2;
-#10
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1), (2), (3);
-#
-# query: UPDATE t1 t11, (SELECT * FROM t2) t12 SET t11.a = 10 WHERE t11.a > 1
-# select: SELECT * FROM t1 t11, (SELECT * FROM t2) t12 WHERE t11.a > 1
-#
-EXPLAIN UPDATE t1 t11, (SELECT * FROM t2) t12 SET t11.a = 10 WHERE t11.a > 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t11 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3
-2 DERIVED t2 ALL NULL NULL NULL NULL 3
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 t11, (SELECT * FROM t2) t12 SET t11.a = 10 WHERE t11.a > 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t11 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3 100.00
-2 DERIVED t2 ALL NULL NULL NULL NULL 3 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 t11, (SELECT * FROM t2) t12 WHERE t11.a > 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t11 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t11`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` `t11` join `test`.`t2` where `test`.`t11`.`a` > 1
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 8
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd_next 16
-Handler_update 2
-
-DROP TABLE t1, t2;
-#11
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-#
-# query: DELETE FROM t1 WHERE a > 1 LIMIT 1
-# select: SELECT * FROM t1 WHERE a > 1 LIMIT 1
-#
-EXPLAIN DELETE FROM t1 WHERE a > 1 LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 WHERE a > 1 LIMIT 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a > 1 LIMIT 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 1 limit 1
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 2
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 1
-Handler_read_rnd_next 2
-
-DROP TABLE t1;
-#12
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-#
-# query: DELETE FROM t1 WHERE 0
-# select: SELECT * FROM t1 WHERE 0
-#
-EXPLAIN DELETE FROM t1 WHERE 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 WHERE 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-# Status of testing query execution:
-Variable_name Value
-
-DROP TABLE t1;
-#13
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-#
-# query: DELETE FROM t1 USING t1 WHERE 0
-# select: SELECT * FROM t1 WHERE 0
-#
-EXPLAIN DELETE FROM t1 USING t1 WHERE 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 USING t1 WHERE 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-# Status of testing query execution:
-Variable_name Value
-
-DROP TABLE t1;
-#14
-CREATE TABLE t1 (a INT, b INT, UNIQUE KEY (a), KEY (b));
-INSERT INTO t1 VALUES (3, 3), (7, 7);
-#
-# query: DELETE FROM t1 WHERE a = 3
-# select: SELECT * FROM t1 WHERE a = 3
-#
-EXPLAIN DELETE FROM t1 WHERE a = 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 1 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 WHERE a = 3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range a a 5 NULL 1 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a = 3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 const a a 5 const 1 100.00
-Warnings:
-Note 1003 select 3 AS `a`,3 AS `b` from `test`.`t1` where 1
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-Handler_read_key 1
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 1
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 1
-Handler_read_key 1
-
-DROP TABLE t1;
-#15
-CREATE TABLE t1 (a INT, b INT, UNIQUE KEY (a), KEY (b));
-INSERT INTO t1 VALUES (3, 3), (7, 7);
-#
-# query: DELETE FROM t1 WHERE a < 3
-# select: SELECT * FROM t1 WHERE a < 3
-#
-EXPLAIN DELETE FROM t1 WHERE a < 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 1 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 WHERE a < 3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range a a 5 NULL 1 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a < 3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range a a 5 NULL 1 100.00 Using index condition
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` < 3
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 1
-# Status of testing query execution:
-Variable_name Value
-Handler_read_key 1
-
-DROP TABLE t1;
-#16
-CREATE TABLE t1 ( a int PRIMARY KEY );
-#
-# query: DELETE FROM t1 WHERE t1.a > 0 ORDER BY t1.a
-# select: SELECT * FROM t1 WHERE t1.a > 0 ORDER BY t1.a
-#
-EXPLAIN DELETE FROM t1 WHERE t1.a > 0 ORDER BY t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 WHERE t1.a > 0 ORDER BY t1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE t1.a > 0 ORDER BY t1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select NULL AS `a` from `test`.`t1` where 0 order by NULL
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-Handler_read_rnd_next 1
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 1
-# Status of testing query execution:
-Variable_name Value
-Handler_read_key 1
-
-INSERT INTO t1 VALUES (1), (2), (3);
-#
-# query: DELETE FROM t1 WHERE t1.a > 0 ORDER BY t1.a
-# select: SELECT * FROM t1 WHERE t1.a > 0 ORDER BY t1.a
-#
-EXPLAIN DELETE FROM t1 WHERE t1.a > 0 ORDER BY t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 WHERE t1.a > 0 ORDER BY t1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE t1.a > 0 ORDER BY t1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 0 order by `test`.`t1`.`a`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 1
-Handler_read_next 3
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 3
-Handler_read_key 1
-Handler_read_next 3
-
-DROP TABLE t1;
-#17
-CREATE TABLE t1(a INT PRIMARY KEY);
-INSERT INTO t1 VALUES (4),(3),(1),(2);
-#
-# query: DELETE FROM t1 WHERE (@a:= a) ORDER BY a LIMIT 1
-# select: SELECT * FROM t1 WHERE (@a:= a) ORDER BY a LIMIT 1
-#
-EXPLAIN DELETE FROM t1 WHERE (@a:= a) ORDER BY a LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 1 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 WHERE (@a:= a) ORDER BY a LIMIT 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 1 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (@a:= a) ORDER BY a LIMIT 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 1 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where @a:=`test`.`t1`.`a` order by `test`.`t1`.`a` limit 1
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_first 1
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 1
-Handler_read_first 1
-
-DROP TABLE t1;
-#18
-CREATE TABLE t1 (a DATE, b TIME, c INT, KEY c(c), KEY b(b), KEY a(a));
-INSERT INTO t1 VALUES (), (), (), (), (), (), (), (), (), ();
-UPDATE t1 SET a = c, b = c;
-#
-# query: DELETE FROM t1 ORDER BY a ASC, b ASC LIMIT 1
-# select: SELECT * FROM t1 ORDER BY a ASC, b ASC LIMIT 1
-#
-EXPLAIN DELETE FROM t1 ORDER BY a ASC, b ASC LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 ORDER BY a ASC, b ASC LIMIT 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 ORDER BY a ASC, b ASC LIMIT 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using filesort
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c` from `test`.`t1` order by `test`.`t1`.`a`,`test`.`t1`.`b` limit 1
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 11
-Sort_priority_queue_sorts 1
-Sort_rows 1
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 1
-Handler_read_rnd 1
-Handler_read_rnd_next 11
-Sort_rows 10
-Sort_scan 1
-
-DROP TABLE t1;
-#19
-CREATE TABLE t1 (a1 INT NOT NULL, b1 INT NOT NULL);
-CREATE TABLE t2 (a2 INT NOT NULL, b2 INT NOT NULL, PRIMARY KEY (a2,b2));
-CREATE TABLE t3 (a3 INT NOT NULL, b3 INT NOT NULL, PRIMARY KEY (a3,b3));
-INSERT INTO t1 VALUES (1,1), (2,1), (1,3);
-INSERT INTO t2 VALUES (1,1), (2,2), (3,3);
-INSERT INTO t3 VALUES (1,1), (2,1), (1,3);
-#
-# query: DELETE t1,t2,t3 FROM t1,t2,t3 WHERE a1=a2 AND b2=a3 AND b1=b3
-# select: SELECT * FROM t1,t2,t3 WHERE a1=a2 AND b2=a3 AND b1=b3
-#
-EXPLAIN DELETE t1,t2,t3 FROM t1,t2,t3 WHERE a1=a2 AND b2=a3 AND b1=b3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 test.t1.a1 1
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 8 test.t2.b2,test.t1.b1 1
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE t1,t2,t3 FROM t1,t2,t3 WHERE a1=a2 AND b2=a3 AND b1=b3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 test.t1.a1 1 100.00
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 8 test.t2.b2,test.t1.b1 1 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1,t2,t3 WHERE a1=a2 AND b2=a3 AND b1=b3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 test.t1.a1 1 100.00 Using index
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 8 test.t2.b2,test.t1.b1 1 100.00 Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`b1` AS `b1`,`test`.`t2`.`a2` AS `a2`,`test`.`t2`.`b2` AS `b2`,`test`.`t3`.`a3` AS `a3`,`test`.`t3`.`b3` AS `b3` from `test`.`t1` join `test`.`t2` join `test`.`t3` where `test`.`t2`.`a2` = `test`.`t1`.`a1` and `test`.`t3`.`a3` = `test`.`t2`.`b2` and `test`.`t3`.`b3` = `test`.`t1`.`b1`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 6
-Handler_read_next 3
-Handler_read_rnd_next 4
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 8
-Handler_read_key 6
-Handler_read_next 3
-Handler_read_rnd 5
-Handler_read_rnd_next 4
-
-DROP TABLE t1, t2, t3;
-#20
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 VALUES (1), (2), (3);
-#
-# query: UPDATE t1 SET a = 10 WHERE a IN (SELECT a FROM t2)
-# select: SELECT * FROM t1 WHERE a IN (SELECT a FROM t2)
-#
-EXPLAIN UPDATE t1 SET a = 10 WHERE a IN (SELECT a FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 SET a = 10 WHERE a IN (SELECT a FROM t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a IN (SELECT a FROM t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where 1
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 3
-Handler_read_rnd_next 8
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd_next 10
-Handler_update 3
-
-DROP TABLE t1, t2;
-#21
-CREATE TABLE t1 (a1 INT);
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
-CREATE TABLE t2 (a2 VARCHAR(10));
-INSERT INTO t2 VALUES (1), (2), (3), (4), (5);
-SET @save_optimizer_switch= @@optimizer_switch;
-#
-# query: DELETE FROM t1 WHERE a1 IN (SELECT a2 FROM t2 WHERE a2 > 2)
-# select: SELECT * FROM t1 WHERE a1 IN (SELECT a2 FROM t2 WHERE a2 > 2)
-#
-EXPLAIN DELETE FROM t1 WHERE a1 IN (SELECT a2 FROM t2 WHERE a2 > 2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 5 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 WHERE a1 IN (SELECT a2 FROM t2 WHERE a2 > 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a1 IN (SELECT a2 FROM t2 WHERE a2 > 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`>(<in_optimizer>(`test`.`t1`.`a1`,<exists>(/* select#2 */ select `test`.`t2`.`a2` from `test`.`t2` where `test`.`t2`.`a2` > 2 and <cache>(`test`.`t1`.`a1`) = `test`.`t2`.`a2`)))
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 5
-Handler_read_rnd_next 30
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 3
-Handler_read_rnd_next 30
-
-SET @@optimizer_switch= @save_optimizer_switch;
-TRUNCATE t1;
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
-#
-# query: DELETE FROM t1 WHERE a1 IN (SELECT a2 FROM t2 WHERE a2 > 2)
-# select: SELECT * FROM t1 WHERE a1 IN (SELECT a2 FROM t2 WHERE a2 > 2)
-#
-EXPLAIN DELETE FROM t1 WHERE a1 IN (SELECT a2 FROM t2 WHERE a2 > 2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 5 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 WHERE a1 IN (SELECT a2 FROM t2 WHERE a2 > 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a1 IN (SELECT a2 FROM t2 WHERE a2 > 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 5 100.00 Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`a2` > 2 and `test`.`t1`.`a1` = `test`.`t2`.`a2`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 12
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 3
-Handler_read_rnd_next 30
-
-DROP TABLE t1, t2;
-#22
-CREATE TABLE t1 (i INT, j INT);
-INSERT INTO t1 VALUES (1, 1), (2, 2), (3, 3), (4, 4), (5, 5);
-#
-# query: UPDATE t1 SET i = 10
-# select: SELECT * FROM t1
-#
-EXPLAIN UPDATE t1 SET i = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 SET i = 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`j` AS `j` from `test`.`t1`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 6
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd_next 6
-Handler_update 5
-
-DROP TABLE t1;
-#23
-CREATE TABLE t1 (i INT, j INT);
-INSERT INTO t1 VALUES (1, 1), (2, 2), (3, 3), (4, 4), (5, 5);
-#
-# query: DELETE FROM t1
-# select: SELECT * FROM t1
-#
-EXPLAIN DELETE FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL 5 Deleting all rows
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL 5 NULL Deleting all rows
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`j` AS `j` from `test`.`t1`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 6
-# Status of testing query execution:
-Variable_name Value
-
-DROP TABLE t1;
-#24
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2(a INT, b INT, c INT, d INT, INDEX(a, b, c));
-INSERT INTO t2 (a, b, c) SELECT i, i, i FROM t1;
-INSERT INTO t2 (a, b, c) SELECT t1.i, t1.i, t1.i FROM t1, t1 x1, t1 x2;
-#
-# query: DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5
-# select: SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5
-#
-EXPLAIN DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 15 NULL 5 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index NULL a 15 NULL 5 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index NULL a 15 NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_first 1
-Handler_read_next 4
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 5
-Handler_read_first 1
-Handler_read_next 4
-
-DROP TABLE t1, t2;
-#25
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t2 (i INT);
-#
-# query: INSERT INTO t2 SELECT * FROM t1
-# select: SELECT * FROM t1
-#
-EXPLAIN INSERT INTO t2 SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED INSERT INTO t2 SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`i` AS `i` from `test`.`t1`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 4
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd_next 4
-Handler_write 3
-
-DROP TABLE t1, t2;
-#26
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t2 (i INT);
-#
-# query: REPLACE INTO t2 SELECT * FROM t1
-# select: SELECT * FROM t1
-#
-EXPLAIN REPLACE INTO t2 SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED REPLACE INTO t2 SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`i` AS `i` from `test`.`t1`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 4
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd_next 4
-Handler_write 3
-
-DROP TABLE t1, t2;
-#27
-CREATE TABLE t1 (i INT);
-#
-# query: INSERT INTO t1 SET i = 10
-# select:
-#
-EXPLAIN INSERT INTO t1 SET i = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED INSERT INTO t1 SET i = 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL 100.00 NULL
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-# Status of testing query execution:
-Variable_name Value
-Handler_write 1
-
-DROP TABLE t1;
-#28
-CREATE TABLE t1 (i INT);
-#
-# query: REPLACE INTO t1 SET i = 10
-# select:
-#
-EXPLAIN REPLACE INTO t1 SET i = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED REPLACE INTO t1 SET i = 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL 100.00 NULL
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-# Status of testing query execution:
-Variable_name Value
-Handler_write 1
-
-DROP TABLE t1;
-#29
-CREATE TABLE t1 (a INT, i INT PRIMARY KEY);
-INSERT INTO t1 (i) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-#
-# query: DELETE FROM t1 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5
-# select: SELECT * FROM t1 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5
-#
-EXPLAIN DELETE FROM t1 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 5 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 5 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 8 100.00 Using index condition
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`i` AS `i` from `test`.`t1` where `test`.`t1`.`i` > 10 and `test`.`t1`.`i` <= 18 order by `test`.`t1`.`i` limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 1
-Handler_read_next 4
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 5
-Handler_read_key 1
-Handler_read_next 4
-
-DROP TABLE t1;
-#30
-CREATE TABLE t1(a INT, i CHAR(2), INDEX(i(1)));
-INSERT INTO t1 (i) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-#
-# query: DELETE FROM t1 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5
-# select: SELECT * FROM t1 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5
-#
-EXPLAIN DELETE FROM t1 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 26 Using where; Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 26 100.00 Using where; Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL i NULL NULL NULL 26 100.00 Using where; Using filesort
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`i` AS `i` from `test`.`t1` where `test`.`t1`.`i` > 10 and `test`.`t1`.`i` <= 18 order by `test`.`t1`.`i` limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 27
-Sort_priority_queue_sorts 1
-Sort_rows 5
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 5
-Handler_read_rnd 5
-Handler_read_rnd_next 27
-Sort_rows 8
-Sort_scan 1
-
-DROP TABLE t1;
-#31
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 (i) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2(a INT, b INT, c INT, d INT, INDEX(a, b, c));
-INSERT INTO t2 (a, b, c) SELECT i, i, i FROM t1;
-#
-# query: DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5
-# select: SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5
-#
-EXPLAIN DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 Using where; Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using where; Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using where; Using filesort
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 27
-Sort_priority_queue_sorts 1
-Sort_rows 1
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 1
-Handler_read_rnd 1
-Handler_read_rnd_next 27
-Sort_rows 1
-Sort_scan 1
-
-DROP TABLE t1, t2;
-#32
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 (i) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2(a INT, b INT, c INT, d INT, INDEX(a, b, c));
-INSERT INTO t2 (a, b, c) SELECT i, i, i FROM t1;
-INSERT INTO t2 (a, b, c) SELECT t1.i, t1.i, t1.i FROM t1, t1 x1, t1 x2;
-#
-# query: DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5
-# select: SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5
-#
-EXPLAIN DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 15 NULL 5 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index NULL a 15 NULL 5 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index NULL a 15 NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_first 1
-Handler_read_next 4
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 5
-Handler_read_first 1
-Handler_read_next 4
-
-DROP TABLE t1, t2;
-#33
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 (i) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), d CHAR(2), INDEX (a,b(1),c));
-INSERT INTO t2 SELECT i, i, i, i FROM t1;
-#
-# query: DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5
-# select: SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5
-#
-EXPLAIN DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 Using where; Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using where; Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using where; Using filesort
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 27
-Sort_priority_queue_sorts 1
-Sort_rows 1
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 1
-Handler_read_rnd 1
-Handler_read_rnd_next 27
-Sort_rows 1
-Sort_scan 1
-
-DROP TABLE t1, t2;
-#34
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 (i) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), d CHAR(2), INDEX (a,b,c))
-ENGINE=HEAP;
-INSERT INTO t2 SELECT i, i, i, i FROM t1;
-#
-# query: DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5
-# select: SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5
-#
-EXPLAIN DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 Using where; Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using where; Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using where; Using filesort
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd 1
-Handler_read_rnd_next 27
-Sort_priority_queue_sorts 1
-Sort_rows 1
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 1
-Handler_read_rnd 1
-Handler_read_rnd_next 27
-Sort_rows 1
-Sort_scan 1
-
-DROP TABLE t1, t2;
-#35
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 (i) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35),(36),(37),(38),(39),
-(40),(41),(42);
-CREATE TABLE t2 (i INT, key1 INT, key2 INT, INDEX (key1), INDEX (key2));
-INSERT INTO t2 (key1, key2) SELECT i, i FROM t1;
-#
-# query: DELETE FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1
-# select: SELECT * FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1
-#
-EXPLAIN DELETE FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index_merge key1,key2 key1,key2 5,5 NULL 7 Using sort_union(key1,key2); Using where; Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index_merge key1,key2 key1,key2 5,5 NULL 7 100.00 Using sort_union(key1,key2); Using where; Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index_merge key1,key2 key1,key2 5,5 NULL 7 100.00 Using sort_union(key1,key2); Using where; Using filesort
-Warnings:
-Note 1003 select `test`.`t2`.`i` AS `i`,`test`.`t2`.`key1` AS `key1`,`test`.`t2`.`key2` AS `key2` from `test`.`t2` where `test`.`t2`.`key1` < 13 or `test`.`t2`.`key2` < 14 order by `test`.`t2`.`key1`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 2
-Handler_read_next 7
-Handler_read_rnd 4
-Sort_range 1
-Sort_rows 4
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 4
-Handler_read_key 2
-Handler_read_next 7
-Handler_read_rnd 8
-Sort_range 1
-Sort_rows 4
-
-DROP TABLE t1, t2;
-#36
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 (i) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2(a INT, i INT PRIMARY KEY);
-INSERT INTO t2 (i) SELECT i FROM t1;
-#
-# query: DELETE FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5
-# select: SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5
-#
-EXPLAIN DELETE FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 5 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 5 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`i` AS `i` from `test`.`t2` where `test`.`t2`.`i` > 10 and `test`.`t2`.`i` <= 18 order by `test`.`t2`.`i` desc limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 1
-Handler_read_prev 4
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 5
-Handler_read_key 1
-Handler_read_prev 4
-
-DROP TABLE t1, t2;
-#37
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 (i) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), INDEX (a, b));
-INSERT INTO t2 SELECT i, i, i FROM t1;
-#
-# query: DELETE FROM t2 ORDER BY a, b DESC LIMIT 5
-# select: SELECT * FROM t2 ORDER BY a, b DESC LIMIT 5
-#
-EXPLAIN DELETE FROM t2 ORDER BY a, b DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t2 ORDER BY a, b DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 ORDER BY a, b DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using filesort
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` order by `test`.`t2`.`a`,`test`.`t2`.`b` desc limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 27
-Sort_priority_queue_sorts 1
-Sort_rows 5
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 5
-Handler_read_rnd 5
-Handler_read_rnd_next 27
-Sort_rows 26
-Sort_scan 1
-
-DROP TABLE t1, t2;
-#38
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c INT, INDEX (a, b));
-INSERT INTO t2 (a, b) SELECT i, i FROM t1;
-INSERT INTO t2 (a, b) SELECT t1.i, t1.i FROM t1, t1 x1, t1 x2;
-#
-# query: DELETE FROM t2 ORDER BY a DESC, b DESC LIMIT 5
-# select: SELECT * FROM t2 ORDER BY a DESC, b DESC LIMIT 5
-#
-EXPLAIN DELETE FROM t2 ORDER BY a DESC, b DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 6 NULL 5
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t2 ORDER BY a DESC, b DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index NULL a 6 NULL 5 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 ORDER BY a DESC, b DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index NULL a 6 NULL 5 100.00
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` order by `test`.`t2`.`a` desc,`test`.`t2`.`b` desc limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_last 1
-Handler_read_prev 4
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 5
-Handler_read_last 1
-Handler_read_prev 4
-
-DROP TABLE t1, t2;
-#39
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2(a INT, i INT PRIMARY KEY);
-INSERT INTO t2 (i) SELECT i FROM t1;
-#
-# query: UPDATE t2 SET a = 10 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5
-# select: SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5
-#
-EXPLAIN UPDATE t2 SET a = 10 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 5 Using where; Using buffer
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t2 SET a = 10 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 5 100.00 Using where; Using buffer
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 8 100.00 Using index condition
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`i` AS `i` from `test`.`t2` where `test`.`t2`.`i` > 10 and `test`.`t2`.`i` <= 18 order by `test`.`t2`.`i` limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 1
-Handler_read_next 4
-# Status of testing query execution:
-Variable_name Value
-Handler_read_key 1
-Handler_read_next 4
-Handler_read_rnd 5
-Handler_update 5
-
-DROP TABLE t1, t2;
-#40
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2(a INT, i CHAR(2), INDEX(i(1)));
-INSERT INTO t2 (i) SELECT i FROM t1;
-#
-# query: UPDATE t2 SET a = 10 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5
-# select: SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5
-#
-EXPLAIN UPDATE t2 SET a = 10 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 Using where; Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t2 SET a = 10 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using where; Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL i NULL NULL NULL 26 100.00 Using where; Using filesort
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`i` AS `i` from `test`.`t2` where `test`.`t2`.`i` > 10 and `test`.`t2`.`i` <= 18 order by `test`.`t2`.`i` limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 27
-Sort_priority_queue_sorts 1
-Sort_rows 5
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd 5
-Handler_read_rnd_next 27
-Handler_update 5
-Sort_priority_queue_sorts 1
-Sort_rows 5
-Sort_scan 1
-
-DROP TABLE t1, t2;
-#41
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2(a INT, b INT, c INT, d INT, INDEX(a, b, c));
-INSERT INTO t2 (a, b, c) SELECT i, i, i FROM t1;
-#
-# query: UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5
-# select: SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5
-#
-EXPLAIN UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 Using where; Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using where; Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using where; Using filesort
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 27
-Sort_priority_queue_sorts 1
-Sort_rows 1
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd 1
-Handler_read_rnd_next 27
-Handler_update 1
-Sort_priority_queue_sorts 1
-Sort_rows 1
-Sort_scan 1
-
-DROP TABLE t1, t2;
-#42
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2(a INT, b INT, c INT, d INT, INDEX(a, b, c));
-INSERT INTO t2 (a, b, c) SELECT i, i, i FROM t1;
-INSERT INTO t2 (a, b, c) SELECT t1.i, t1.i, t1.i FROM t1, t1 x1, t1 x2;
-#
-# query: UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5
-# select: SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5
-#
-EXPLAIN UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 15 NULL 5 Using where; Using buffer
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index NULL a 15 NULL 5 100.00 Using where; Using buffer
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index NULL a 15 NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_first 1
-Handler_read_next 4
-# Status of testing query execution:
-Variable_name Value
-Handler_read_first 1
-Handler_read_next 4
-Handler_read_rnd 5
-Handler_update 5
-
-DROP TABLE t1, t2;
-#43
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), d CHAR(2), INDEX (a,b(1),c));
-INSERT INTO t2 SELECT i, i, i, i FROM t1;
-#
-# query: UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5
-# select: SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5
-#
-EXPLAIN UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 Using where; Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using where; Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using where; Using filesort
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 27
-Sort_priority_queue_sorts 1
-Sort_rows 1
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd 1
-Handler_read_rnd_next 27
-Sort_priority_queue_sorts 1
-Sort_rows 1
-Sort_scan 1
-
-DROP TABLE t1, t2;
-#44
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), d CHAR(2), INDEX (a,b,c))
-ENGINE=HEAP;
-INSERT INTO t2 SELECT i, i, i, i FROM t1;
-#
-# query: UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5
-# select: SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5
-#
-EXPLAIN UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 Using where; Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using where; Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using where; Using filesort
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd 1
-Handler_read_rnd_next 27
-Sort_priority_queue_sorts 1
-Sort_rows 1
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd 1
-Handler_read_rnd_next 27
-Sort_priority_queue_sorts 1
-Sort_rows 1
-Sort_scan 1
-
-DROP TABLE t1, t2;
-#45
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35),(36),(37),(38),(39),
-(40),(41),(42);
-CREATE TABLE t2 (i INT, key1 INT, key2 INT, INDEX (key1), INDEX (key2));
-INSERT INTO t2 (key1, key2) SELECT i, i FROM t1;
-#
-# query: UPDATE t2 SET i = 123 WHERE key1 < 13 or key2 < 14 ORDER BY key1
-# select: SELECT * FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1
-#
-EXPLAIN UPDATE t2 SET i = 123 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index_merge key1,key2 key1,key2 5,5 NULL 7 Using sort_union(key1,key2); Using where; Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t2 SET i = 123 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index_merge key1,key2 key1,key2 5,5 NULL 7 100.00 Using sort_union(key1,key2); Using where; Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index_merge key1,key2 key1,key2 5,5 NULL 7 100.00 Using sort_union(key1,key2); Using where; Using filesort
-Warnings:
-Note 1003 select `test`.`t2`.`i` AS `i`,`test`.`t2`.`key1` AS `key1`,`test`.`t2`.`key2` AS `key2` from `test`.`t2` where `test`.`t2`.`key1` < 13 or `test`.`t2`.`key2` < 14 order by `test`.`t2`.`key1`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 2
-Handler_read_next 7
-Handler_read_rnd 4
-Sort_range 1
-Sort_rows 4
-# Status of testing query execution:
-Variable_name Value
-Handler_read_key 2
-Handler_read_next 7
-Handler_read_rnd 8
-Handler_update 4
-Sort_range 1
-Sort_rows 4
-
-DROP TABLE t1, t2;
-#46
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2(a INT, i INT PRIMARY KEY);
-INSERT INTO t2 (i) SELECT i FROM t1;
-#
-# query: UPDATE t2 SET a = 10 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5
-# select: SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5
-#
-EXPLAIN UPDATE t2 SET a = 10 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 5 Using where; Using buffer
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t2 SET a = 10 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 5 100.00 Using where; Using buffer
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`i` AS `i` from `test`.`t2` where `test`.`t2`.`i` > 10 and `test`.`t2`.`i` <= 18 order by `test`.`t2`.`i` desc limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 1
-Handler_read_prev 4
-# Status of testing query execution:
-Variable_name Value
-Handler_read_key 1
-Handler_read_prev 4
-Handler_read_rnd 5
-Handler_update 5
-
-DROP TABLE t1, t2;
-#47
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), INDEX (a, b));
-INSERT INTO t2 SELECT i, i, i FROM t1;
-#
-# query: UPDATE t2 SET c = 10 ORDER BY a, b DESC LIMIT 5
-# select: SELECT * FROM t2 ORDER BY a, b DESC LIMIT 5
-#
-EXPLAIN UPDATE t2 SET c = 10 ORDER BY a, b DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t2 SET c = 10 ORDER BY a, b DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 ORDER BY a, b DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 26 100.00 Using filesort
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` order by `test`.`t2`.`a`,`test`.`t2`.`b` desc limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 27
-Sort_priority_queue_sorts 1
-Sort_rows 5
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd 5
-Handler_read_rnd_next 27
-Handler_update 4
-Sort_priority_queue_sorts 1
-Sort_rows 5
-Sort_scan 1
-
-DROP TABLE t1, t2;
-#48
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c INT, INDEX (a, b));
-INSERT INTO t2 (a, b) SELECT i, i FROM t1;
-INSERT INTO t2 (a, b) SELECT t1.i, t1.i FROM t1, t1 x1, t1 x2;
-#
-# query: UPDATE t2 SET c = 10 ORDER BY a DESC, b DESC LIMIT 5
-# select: SELECT * FROM t2 ORDER BY a DESC, b DESC LIMIT 5
-#
-EXPLAIN UPDATE t2 SET c = 10 ORDER BY a DESC, b DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 6 NULL 5 Using buffer
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t2 SET c = 10 ORDER BY a DESC, b DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index NULL a 6 NULL 5 100.00 Using buffer
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2 ORDER BY a DESC, b DESC LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index NULL a 6 NULL 5 100.00
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` order by `test`.`t2`.`a` desc,`test`.`t2`.`b` desc limit 5
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_last 1
-Handler_read_prev 4
-# Status of testing query execution:
-Variable_name Value
-Handler_read_last 1
-Handler_read_prev 4
-Handler_read_rnd 5
-Handler_update 5
-
-DROP TABLE t1, t2;
-#49
-CREATE TABLE t1 (
-pk INT NOT NULL AUTO_INCREMENT,
-c1_idx CHAR(1) DEFAULT 'y',
-c2 INT,
-PRIMARY KEY (pk),
-INDEX c1_idx (c1_idx)
-);
-INSERT INTO t1 VALUES (1,'y',1), (2,'n',2), (3,'y',3), (4,'n',4);
-#
-# query: UPDATE t1 SET c2 = 0 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2
-# select: SELECT * FROM t1 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2
-#
-EXPLAIN UPDATE t1 SET c2 = 0 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c1_idx c1_idx 2 NULL 2 Using where; Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 SET c2 = 0 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range c1_idx c1_idx 2 NULL 2 100.00 Using where; Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ref c1_idx c1_idx 2 const 2 100.00 Using index condition; Using where; Using filesort
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`c1_idx` AS `c1_idx`,`test`.`t1`.`c2` AS `c2` from `test`.`t1` where `test`.`t1`.`c1_idx` = 'y' order by `test`.`t1`.`pk` desc limit 2
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 1
-Handler_read_next 2
-Sort_priority_queue_sorts 1
-Sort_range 1
-Sort_rows 2
-# Status of testing query execution:
-Variable_name Value
-Handler_read_key 1
-Handler_read_next 2
-Handler_read_rnd 2
-Handler_update 2
-Sort_priority_queue_sorts 1
-Sort_range 1
-Sort_rows 2
-
-#
-# query: DELETE FROM t1 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2
-# select: SELECT * FROM t1 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2
-#
-EXPLAIN DELETE FROM t1 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range c1_idx c1_idx 2 NULL 2 Using where; Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM t1 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range c1_idx c1_idx 2 NULL 2 100.00 Using where; Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ref c1_idx c1_idx 2 const 2 100.00 Using index condition; Using where; Using filesort
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`c1_idx` AS `c1_idx`,`test`.`t1`.`c2` AS `c2` from `test`.`t1` where `test`.`t1`.`c1_idx` = 'y' order by `test`.`t1`.`pk` desc limit 2
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 1
-Handler_read_next 2
-Sort_priority_queue_sorts 1
-Sort_range 1
-Sort_rows 2
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 2
-Handler_read_key 1
-Handler_read_next 2
-Handler_read_rnd 2
-Sort_range 1
-Sort_rows 2
-
-DROP TABLE t1;
-#50
-CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY);
-INSERT INTO t1 VALUES (),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),();
-#
-# query: UPDATE t1 SET a=a+10 WHERE a > 34
-# select: SELECT * FROM t1 WHERE a > 34
-#
-EXPLAIN UPDATE t1 SET a=a+10 WHERE a > 34;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 Using where; Using buffer
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 SET a=a+10 WHERE a > 34;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 100.00 Using where; Using buffer
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a > 34;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 34
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 1
-Handler_read_next 2
-# Status of testing query execution:
-Variable_name Value
-Handler_read_key 1
-Handler_read_next 2
-Handler_read_rnd 2
-Handler_update 2
-
-DROP TABLE t1;
-#51
-CREATE TABLE t1 (c1 INT, c2 INT, c3 INT);
-CREATE TABLE t2 (c1 INT, c2 INT);
-INSERT INTO t1 VALUES (1, 1, 10), (2, 2, 20);
-#
-# query: UPDATE t1 LEFT JOIN t2 ON t1.c1 = t2.c1 SET t2.c2 = 10
-# select: SELECT * FROM t1 LEFT JOIN t2 ON t1.c1 = t2.c1
-#
-EXPLAIN UPDATE t1 LEFT JOIN t2 ON t1.c1 = t2.c1 SET t2.c2 = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 0 Const row not found
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 LEFT JOIN t2 ON t1.c1 = t2.c1 SET t2.c2 = 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-Handler_read_rnd_next 1
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 LEFT JOIN t2 ON t1.c1 = t2.c1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1`,`test`.`t1`.`c2` AS `c2`,`test`.`t1`.`c3` AS `c3`,NULL AS `c1`,NULL AS `c2` from `test`.`t1`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-Handler_read_rnd_next 1
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 4
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd_next 4
-
-#
-# query: UPDATE t1 LEFT JOIN t2 ON t1.c1 = t2.c1 SET t2.c2 = 10 WHERE t1.c3 = 10
-# select: SELECT * FROM t1 LEFT JOIN t2 ON t1.c1 = t2.c1 WHERE t1.c3 = 10
-#
-EXPLAIN UPDATE t1 LEFT JOIN t2 ON t1.c1 = t2.c1 SET t2.c2 = 10 WHERE t1.c3 = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 0 Const row not found
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 LEFT JOIN t2 ON t1.c1 = t2.c1 SET t2.c2 = 10 WHERE t1.c3 = 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-Handler_read_rnd_next 1
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 LEFT JOIN t2 ON t1.c1 = t2.c1 WHERE t1.c3 = 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1`,`test`.`t1`.`c2` AS `c2`,`test`.`t1`.`c3` AS `c3`,NULL AS `c1`,NULL AS `c2` from `test`.`t1` where `test`.`t1`.`c3` = 10
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-Handler_read_rnd_next 1
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 4
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd_next 4
-
-DROP TABLE t1, t2;
-#52
-CREATE TABLE t1(f1 INT, f2 INT);
-CREATE TABLE t2(f3 INT, f4 INT);
-CREATE INDEX IDX ON t2(f3);
-INSERT INTO t1 VALUES(1,0),(2,0);
-INSERT INTO t2 VALUES(1,1),(2,2);
-#
-# query: UPDATE t1 SET t1.f2=(SELECT MAX(t2.f4) FROM t2 WHERE t2.f3=t1.f1)
-# select: SELECT (SELECT MAX(t2.f4) FROM t2 WHERE t2.f3=t1.f1) FROM t1
-#
-EXPLAIN UPDATE t1 SET t1.f2=(SELECT MAX(t2.f4) FROM t2 WHERE t2.f3=t1.f1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 DEPENDENT SUBQUERY t2 ALL IDX NULL NULL NULL 2 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 SET t1.f2=(SELECT MAX(t2.f4) FROM t2 WHERE t2.f3=t1.f1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t2 ALL IDX NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.f1' of SELECT #2 was resolved in SELECT #1
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT (SELECT MAX(t2.f4) FROM t2 WHERE t2.f3=t1.f1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t2 ALL IDX NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.f1' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select <expr_cache><`test`.`t1`.`f1`>((/* select#2 */ select max(`test`.`t2`.`f4`) from `test`.`t2` where `test`.`t2`.`f3` = `test`.`t1`.`f1`)) AS `(SELECT MAX(t2.f4) FROM t2 WHERE t2.f3=t1.f1)` from `test`.`t1`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 2
-Handler_read_rnd_next 9
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd_next 9
-Handler_update 2
-
-DROP TABLE t1, t2;
-#55
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (1);
-SET @a = NULL;
-EXPLAIN DELETE FROM t1 WHERE (@a:= a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1 Using where
-DROP TABLE t1;
-#56
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-DELETE FROM t1 USING t1 WHERE uknown_column = 12345;
-ERROR 42S22: Unknown column 'uknown_column' in 'where clause'
-EXPLAIN EXTENDED DELETE FROM t1 USING t1 WHERE uknown_column = 12345;
-ERROR 42S22: Unknown column 'uknown_column' in 'where clause'
-DROP TABLE t1;
-#57
-CREATE TABLE t1(f1 INT);
-EXPLAIN EXTENDED UPDATE t1 SET f2=1 ORDER BY f2;
-ERROR 42S22: Unknown column 'f2' in 'order clause'
-UPDATE t1 SET f2=1 ORDER BY f2;
-ERROR 42S22: Unknown column 'f2' in 'order clause'
-DROP TABLE t1;
-#62
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0), (1);
-CREATE VIEW v1 AS SELECT t11.a, t12.a AS b FROM t1 t11, t1 t12;
-#
-# query: UPDATE v1 SET a = 1 WHERE a > 0
-# select: SELECT * FROM v1 WHERE a > 0
-#
-EXPLAIN UPDATE v1 SET a = 1 WHERE a > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t11 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t12 ALL NULL NULL NULL NULL 2
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE v1 SET a = 1 WHERE a > 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t11 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t12 ALL NULL NULL NULL NULL 2 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM v1 WHERE a > 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t11 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t12 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t11`.`a` AS `a`,`test`.`t12`.`a` AS `b` from `test`.`t1` `t11` join `test`.`t1` `t12` where `test`.`t11`.`a` > 0
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 6
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd 1
-Handler_read_rnd_deleted 1
-Handler_read_rnd_next 8
-
-#
-# query: UPDATE t1, v1 SET v1.a = 1 WHERE t1.a = v1.a
-# select: SELECT * FROM t1, v1 WHERE t1.a = v1.a
-#
-EXPLAIN UPDATE t1, v1 SET v1.a = 1 WHERE t1.a = v1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t11 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t12 ALL NULL NULL NULL NULL 2
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1, v1 SET v1.a = 1 WHERE t1.a = v1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t11 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t12 ALL NULL NULL NULL NULL 2 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1, v1 WHERE t1.a = v1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t11 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE t12 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (incremental, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t11`.`a` AS `a`,`test`.`t12`.`a` AS `b` from `test`.`t1` join `test`.`t1` `t11` join `test`.`t1` `t12` where `test`.`t11`.`a` = `test`.`t1`.`a`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 9
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd 2
-Handler_read_rnd_deleted 1
-Handler_read_rnd_next 18
-Handler_update 1
-
-DROP TABLE t1;
-DROP VIEW v1;
-#63
-CREATE TABLE t1 (a INT, PRIMARY KEY(a));
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
-CREATE VIEW v1 (a) AS SELECT a FROM t1;
-#
-# query: DELETE FROM v1 WHERE a < 4
-# select: SELECT * FROM v1 WHERE a < 4
-#
-EXPLAIN DELETE FROM v1 WHERE a < 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 Using where
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE FROM v1 WHERE a < 4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 100.00 Using where
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM v1 WHERE a < 4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` < 4
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_first 1
-Handler_read_next 3
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 3
-Handler_read_first 1
-Handler_read_next 3
-
-DROP TABLE t1;
-DROP VIEW v1;
-#64
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY(a));
-INSERT INTO t1 VALUES (1,2), (2,3), (3,4), (4,5), (5,10);
-CREATE TABLE t2 (x INT);
-INSERT INTO t2 VALUES (1), (2), (3), (4);
-CREATE VIEW v1 (a,c) AS SELECT a, b+1 FROM t1;
-#
-# query: DELETE v1 FROM t2, v1 WHERE t2.x = v1.a
-# select: SELECT * FROM t2, v1 WHERE t2.x = v1.a
-#
-EXPLAIN DELETE v1 FROM t2, v1 WHERE t2.x = v1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.x 1
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE v1 FROM t2, v1 WHERE t2.x = v1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 100.00 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.x 1 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2, v1 WHERE t2.x = v1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 100.00 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.x 1 100.00
-Warnings:
-Note 1003 select `test`.`t2`.`x` AS `x`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` + 1 AS `c` from `test`.`t2` join `test`.`t1` where `test`.`t1`.`a` = `test`.`t2`.`x`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 4
-Handler_read_rnd_next 5
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 4
-Handler_read_key 4
-Handler_read_rnd 4
-Handler_read_rnd_next 5
-
-DROP TABLE t1,t2;
-DROP VIEW v1;
-#65
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY(a));
-INSERT INTO t1 VALUES (1,2), (2,3), (3,4), (4,5), (5,10);
-CREATE TABLE t2 (x INT);
-INSERT INTO t2 VALUES (1), (2), (3), (4);
-CREATE VIEW v1 (a,c) AS SELECT a, b+1 FROM t1;
-#
-# query: DELETE v1 FROM t2, v1 WHERE t2.x = v1.a
-# select: SELECT * FROM t2, v1 WHERE t2.x = v1.a
-#
-EXPLAIN DELETE v1 FROM t2, v1 WHERE t2.x = v1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.x 1
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED DELETE v1 FROM t2, v1 WHERE t2.x = v1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 100.00 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.x 1 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t2, v1 WHERE t2.x = v1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 100.00 Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.x 1 100.00
-Warnings:
-Note 1003 select `test`.`t2`.`x` AS `x`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` + 1 AS `c` from `test`.`t2` join `test`.`t1` where `test`.`t1`.`a` = `test`.`t2`.`x`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 4
-Handler_read_rnd_next 5
-# Status of testing query execution:
-Variable_name Value
-Handler_delete 4
-Handler_read_key 4
-Handler_read_rnd 4
-Handler_read_rnd_next 5
-
-DROP TABLE t1,t2;
-DROP VIEW v1;
-#66
-CREATE TABLE t1 (a INT);
-CREATE VIEW v1 (x) AS SELECT a FROM t1;
-#
-# query: INSERT INTO v1 VALUES (10)
-# select: SELECT NULL
-#
-EXPLAIN INSERT INTO v1 VALUES (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED INSERT INTO v1 VALUES (10);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL 100.00 NULL
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select NULL AS `NULL`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-# Status of testing query execution:
-Variable_name Value
-Handler_write 1
-
-DROP TABLE t1;
-DROP VIEW v1;
-#67
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1), (2), (3);
-CREATE VIEW v1 (x) AS SELECT b FROM t2;
-#
-# query: INSERT INTO v1 SELECT * FROM t1
-# select: SELECT * FROM t1
-#
-EXPLAIN INSERT INTO v1 SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 Const row not found
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED INSERT INTO v1 SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-Handler_read_rnd_next 1
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 select NULL AS `a` from `test`.`t1`
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-Handler_read_rnd_next 1
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 1
-# Status of testing query execution:
-Variable_name Value
-Handler_read_rnd_next 1
-
-DROP TABLE t1, t2;
-DROP VIEW v1;
-#68
-CREATE TABLE t1 (i INT);
-EXPLAIN INSERT DELAYED INTO t1 VALUES (1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-DROP TABLE t1;
-#69
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1), (2), (3);
-#
-# query: UPDATE t1 SET a = 10 WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x)
-# select: SELECT * FROM t1 WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x)
-#
-EXPLAIN UPDATE t1 SET a = 10 WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-2 DEPENDENT SUBQUERY <derived3> index_subquery key0 key0 5 func 2
-3 DERIVED t2 ALL NULL NULL NULL NULL 3 Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 SET a = 10 WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY <derived3> index_subquery key0 key0 5 func 2 100.00
-3 DERIVED t2 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 3 100.00
-3 DERIVED t2 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join ((/* select#3 */ select `test`.`t2`.`b` AS `b` from `test`.`t2` order by `test`.`t2`.`b` limit 2,2) `x`) where 1
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 3
-Handler_read_rnd_next 10
-Sort_priority_queue_sorts 1
-Sort_rows 3
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_read_key 3
-Handler_read_rnd_next 8
-Handler_update 1
-Sort_priority_queue_sorts 1
-Sort_rows 3
-Sort_scan 1
-
-#
-# query: UPDATE t1, t2 SET a = 10 WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x)
-# select: SELECT * FROM t1, t2 WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x)
-#
-EXPLAIN UPDATE t1, t2 SET a = 10 WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 3
-3 DERIVED t2 ALL NULL NULL NULL NULL 3 Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1, t2 SET a = 10 WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 100.00
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 3 100.00
-3 DERIVED t2 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1, t2 WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (flat, BNL join)
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 3 100.00
-3 DERIVED t2 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` semi join ((/* select#3 */ select `test`.`t2`.`b` AS `b` from `test`.`t2` order by `test`.`t2`.`b` limit 2,2) `x`) join `test`.`t2` where 1
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 3
-Handler_read_rnd_next 10
-Sort_priority_queue_sorts 1
-Sort_rows 3
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_read_key 3
-Handler_read_rnd_next 10
-Sort_priority_queue_sorts 1
-Sort_rows 3
-Sort_scan 1
-
-#
-# query: UPDATE t1, (SELECT * FROM t2) y SET a = 10 WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x)
-# select: SELECT * FROM t1, (SELECT * FROM t2) y WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x)
-#
-EXPLAIN UPDATE t1, (SELECT * FROM t2) y SET a = 10 WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3
-3 MATERIALIZED <derived4> ALL NULL NULL NULL NULL 3
-4 DERIVED t2 ALL NULL NULL NULL NULL 3 Using filesort
-2 DERIVED t2 ALL NULL NULL NULL NULL 3
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1, (SELECT * FROM t2) y SET a = 10 WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 4 func 1 100.00
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 3 100.00
-3 MATERIALIZED <derived4> ALL NULL NULL NULL NULL 3 100.00
-4 DERIVED t2 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-2 DERIVED t2 ALL NULL NULL NULL NULL 3 100.00
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT * FROM t1, (SELECT * FROM t2) y WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 4 func 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 100.00 Using join buffer (flat, BNL join)
-3 MATERIALIZED <derived4> ALL NULL NULL NULL NULL 3 100.00
-4 DERIVED t2 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` semi join ((/* select#4 */ select `test`.`t2`.`b` AS `b` from `test`.`t2` order by `test`.`t2`.`b` limit 2,2) `x`) join `test`.`t2` where 1
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_key 3
-Handler_read_rnd_next 10
-Sort_priority_queue_sorts 1
-Sort_rows 3
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_read_key 3
-Handler_read_rnd_next 10
-Sort_priority_queue_sorts 1
-Sort_rows 3
-Sort_scan 1
-
-DROP TABLE t1,t2;
-#70
-CREATE TABLE t1 (c1 INT KEY);
-CREATE TABLE t2 (c2 INT);
-CREATE TABLE t3 (c3 INT);
-EXPLAIN EXTENDED UPDATE t3 SET c3 = (
-SELECT COUNT(d1.c1)
-FROM (
-SELECT a11.c1 FROM t1 AS a11
-STRAIGHT_JOIN t2 AS a21 ON a21.c2 = a11.c1
-JOIN t1 AS a12 ON a12.c1 = a11.c1
-) d1
-);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 0 100.00
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-DROP TABLE t1, t2, t3;
-#73
-CREATE TABLE t1 (id INT);
-CREATE TABLE t2 (id INT);
-INSERT INTO t1 VALUES (1), (2);
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 USING(id) GROUP BY t1.id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 0 Const row not found; Using temporary; Using filesort
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-DROP TABLE t1,t2;
-#74
-CREATE TABLE t1(a INT PRIMARY KEY);
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
-# used key is modified & Using temporary
-#
-# query: UPDATE t1 SET a=a+1 WHERE a>10
-# select: SELECT a t1 FROM t1 WHERE a>10
-#
-EXPLAIN UPDATE t1 SET a=a+1 WHERE a>10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 Using where; Using buffer
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 SET a=a+1 WHERE a>10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 100.00 Using where; Using buffer
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT a t1 FROM t1 WHERE a>10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 4 NULL 5 20.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `t1` from `test`.`t1` where `test`.`t1`.`a` > 10
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_first 1
-Handler_read_next 5
-# Status of testing query execution:
-Variable_name Value
-Handler_read_key 1
-
-# used key is modified & Using filesort
-#
-# query: UPDATE t1 SET a=a+1 WHERE a>10 ORDER BY a+20
-# select: SELECT a t1 FROM t1 WHERE a>10 ORDER BY a+20
-#
-EXPLAIN UPDATE t1 SET a=a+1 WHERE a>10 ORDER BY a+20;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 Using where; Using filesort
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED UPDATE t1 SET a=a+1 WHERE a>10 ORDER BY a+20;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 100.00 Using where; Using filesort
-# Status of EXPLAIN EXTENDED query
-Variable_name Value
-FLUSH STATUS;
-FLUSH TABLES;
-EXPLAIN EXTENDED SELECT a t1 FROM t1 WHERE a>10 ORDER BY a+20;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 4 NULL 5 20.00 Using where; Using index; Using filesort
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `t1` from `test`.`t1` where `test`.`t1`.`a` > 10 order by `test`.`t1`.`a` + 20
-# Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
-Variable_name Value
-# Status of "equivalent" SELECT query execution:
-Variable_name Value
-Handler_read_rnd_next 6
-Sort_scan 1
-# Status of testing query execution:
-Variable_name Value
-Handler_read_key 1
-Sort_range 1
-
-DROP TABLE t1;
-#
-# Bug #12949629: CLIENT LOSES CONNECTION AFTER EXECUTING A PROCEDURE WITH
-# EXPLAIN UPDATE/DEL/INS
-#
-CREATE TABLE t1 (i INT);
-CREATE TABLE t2 (i INT);
-CREATE PROCEDURE p1() BEGIN EXPLAIN INSERT INTO t1 VALUES (1);END|
-CREATE PROCEDURE p2() BEGIN INSERT INTO t1 VALUES (1);END|
-CREATE PROCEDURE p3() BEGIN EXPLAIN INSERT INTO t1 SELECT 1;END|
-CREATE PROCEDURE p4() BEGIN INSERT INTO t1 SELECT 1;END|
-CREATE PROCEDURE p5() BEGIN EXPLAIN REPLACE INTO t1 VALUES (1);END|
-CREATE PROCEDURE p6() BEGIN REPLACE INTO t1 VALUES (1);END|
-CREATE PROCEDURE p7() BEGIN EXPLAIN REPLACE INTO t1 SELECT 1;END|
-CREATE PROCEDURE p8() BEGIN REPLACE INTO t1 SELECT 1;END|
-CREATE PROCEDURE p9() BEGIN EXPLAIN UPDATE t1 SET i = 10;END|
-CREATE PROCEDURE p10() BEGIN UPDATE t1 SET i = 10;END|
-CREATE PROCEDURE p11() BEGIN EXPLAIN UPDATE t1,t2 SET t1.i = 10 WHERE t1.i = t2.i ;END|
-CREATE PROCEDURE p12() BEGIN UPDATE t1,t2 SET t1.i = 10 WHERE t1.i = t2.i ;END|
-CREATE PROCEDURE p13() BEGIN EXPLAIN DELETE FROM t1;END|
-CREATE PROCEDURE p14() BEGIN DELETE FROM t1;END|
-CREATE PROCEDURE p15() BEGIN EXPLAIN DELETE FROM t1 USING t1;END|
-CREATE PROCEDURE p16() BEGIN DELETE FROM t1 USING t1;END|
-CALL p16();
-DROP PROCEDURE p16;
-CALL p15();
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 Const row not found
-DROP PROCEDURE p15;
-CALL p14();
-DROP PROCEDURE p14;
-CALL p13();
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL 0 Deleting all rows
-DROP PROCEDURE p13;
-CALL p12();
-DROP PROCEDURE p12;
-CALL p11();
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-DROP PROCEDURE p11;
-CALL p10();
-DROP PROCEDURE p10;
-CALL p9();
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 0
-DROP PROCEDURE p9;
-CALL p8();
-DROP PROCEDURE p8;
-CALL p7();
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-DROP PROCEDURE p7;
-CALL p6();
-DROP PROCEDURE p6;
-CALL p5();
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-DROP PROCEDURE p5;
-CALL p4();
-DROP PROCEDURE p4;
-CALL p3();
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-DROP PROCEDURE p3;
-CALL p2();
-DROP PROCEDURE p2;
-CALL p1();
-id select_type table type possible_keys key key_len ref rows Extra
-1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL
-DROP PROCEDURE p1;
-DROP TABLE t1, t2;
-#
-set default_storage_engine= @save_storage_engine;
-set optimizer_switch=default;
diff --git a/mysql-test/r/myisam_icp.result b/mysql-test/r/myisam_icp.result
deleted file mode 100644
index 6a70521cd72..00000000000
--- a/mysql-test/r/myisam_icp.result
+++ /dev/null
@@ -1,986 +0,0 @@
-set @myisam_icp_tmp=@@optimizer_switch;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-#
-# Bug#36981 - "innodb crash when selecting for update"
-#
-CREATE TABLE t1 (
-c1 CHAR(1),
-c2 CHAR(10),
-KEY (c1)
-);
-INSERT INTO t1 VALUES ('3', null);
-SELECT * FROM t1 WHERE c1='3' FOR UPDATE;
-c1 c2
-3 NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 SELECT A.a + 10*(B.a + 10*C.a) FROM t1 A, t1 B, t1 C;
-CREATE TABLE t3 (
-c1 CHAR(10) NOT NULL,
-c2 CHAR(10) NOT NULL,
-c3 CHAR(200) NOT NULL,
-KEY (c1)
-);
-INSERT INTO t3
-SELECT CONCAT('c-',1000+t2.a,'=w'), CONCAT('c-',1000+ t2.a,'=w'), 'filler'
- FROM t2;
-INSERT INTO t3
-SELECT CONCAT('c-',1000+t2.a,'=w'), CONCAT('c-',2000+t2.a,'=w'), 'filler-1'
- FROM t2;
-INSERT INTO t3
-SELECT CONCAT('c-',1000+t2.a,'=w'), CONCAT('c-',3000+t2.a,'=w'), 'filler-2'
- FROM t2;
-SELECT c1,c3 FROM t3 WHERE c1 >= 'c-1994=w' and c1 != 'c-1996=w' FOR UPDATE;
-c1 c3
-c-1994=w filler
-c-1994=w filler-1
-c-1994=w filler-2
-c-1995=w filler
-c-1995=w filler-1
-c-1995=w filler-2
-c-1997=w filler
-c-1997=w filler-1
-c-1997=w filler-2
-c-1998=w filler
-c-1998=w filler-1
-c-1998=w filler-2
-c-1999=w filler
-c-1999=w filler-1
-c-1999=w filler-2
-DROP TABLE t1,t2,t3;
-#
-# Bug#42580 - Innodb's ORDER BY ..LIMIT returns no rows for
-# null-safe operator <=> NULL
-#
-CREATE TABLE t1(
-c1 DATE NOT NULL,
-c2 DATE NULL,
-c3 DATETIME,
-c4 TIMESTAMP,
-PRIMARY KEY(c1),
-UNIQUE(c2)
-);
-
-INSERT INTO t1 VALUES('0000-00-00', '0000-00-00', '2008-01-04', '2008-01-05');
-INSERT INTO t1 VALUES('2007-05-25', '2007-05-25', '2007-05-26', '2007-05-26');
-INSERT INTO t1 VALUES('2008-01-01', NULL , '2008-01-02', '2008-01-03');
-INSERT INTO t1 VALUES('2008-01-17', NULL , NULL , '2009-01-29');
-INSERT INTO t1 VALUES('2009-01-29', '2009-01-29', '2009-01-29', '2009-01-29');
-
-SELECT * FROM t1 WHERE c2 <=> NULL ORDER BY c1,c2;
-c1 c2 c3 c4
-2008-01-01 NULL 2008-01-02 00:00:00 2008-01-03 00:00:00
-2008-01-17 NULL NULL 2009-01-29 00:00:00
-
-SELECT * FROM t1 WHERE c2 <=> NULL ORDER BY c1,c2 LIMIT 2;
-c1 c2 c3 c4
-2008-01-01 NULL 2008-01-02 00:00:00 2008-01-03 00:00:00
-2008-01-17 NULL NULL 2009-01-29 00:00:00
-
-DROP TABLE t1;
-#
-# Bug#43617 - Innodb returns wrong results with timestamp's range value
-# in IN clause
-# (Note: Fixed by patch for BUG#42580)
-#
-CREATE TABLE t1(
-c1 TIMESTAMP NOT NULL,
-c2 TIMESTAMP NULL,
-c3 DATE,
-c4 DATETIME,
-PRIMARY KEY(c1),
-UNIQUE INDEX(c2)
-);
-INSERT INTO t1 VALUES
-('0000-00-00 00:00:00','0000-00-00 00:00:00','2008-01-04','2008-01-05 00:00:00'),
-('1971-01-01 00:00:01','1980-01-01 00:00:01','2009-01-01','2009-01-02 00:00:00'),
-('1999-01-01 00:00:00','1999-01-01 00:00:00', NULL, NULL),
-('2007-05-23 09:15:28','2007-05-23 09:15:28','2007-05-24','2007-05-24 09:15:28'),
-('2007-05-27 00:00:00','2007-05-25 00:00:00','2007-05-26','2007-05-26 00:00:00'),
-('2008-01-01 00:00:00', NULL, '2008-01-02','2008-01-03 00:00:00'),
-('2009-01-29 11:11:27','2009-01-29 11:11:27','2009-01-29','2009-01-29 11:11:27'),
-('2038-01-09 03:14:07','2038-01-09 03:14:07','2009-01-05','2009-01-06 00:00:00');
-
-SELECT *
-FROM t1
-WHERE c2 IN ('1971-01-01 00:00:01','2038-01-09 03:14:07')
-ORDER BY c2;
-c1 c2 c3 c4
-2038-01-09 03:14:07 2038-01-09 03:14:07 2009-01-05 2009-01-06 00:00:00
-
-SELECT *
-FROM t1
-WHERE c2 IN ('1971-01-01 00:00:01','2038-01-09 03:14:07')
-ORDER BY c2 LIMIT 2;
-c1 c2 c3 c4
-2038-01-09 03:14:07 2038-01-09 03:14:07 2009-01-05 2009-01-06 00:00:00
-
-SELECT *
-FROM t1
-WHERE c2 IN ('1971-01-01 00:00:01','2038-01-09 03:14:07')
-ORDER BY c2 DESC;
-c1 c2 c3 c4
-2038-01-09 03:14:07 2038-01-09 03:14:07 2009-01-05 2009-01-06 00:00:00
-
-SELECT *
-FROM t1
-WHERE c2 IN ('1971-01-01 00:00:01','2038-01-09 03:14:07')
-ORDER BY c2 DESC LIMIT 2;
-c1 c2 c3 c4
-2038-01-09 03:14:07 2038-01-09 03:14:07 2009-01-05 2009-01-06 00:00:00
-
-DROP TABLE t1;
-#
-# BUG#43618: MyISAM&Maria returns wrong results with 'between'
-# on timestamp
-#
-CREATE TABLE t1(
-ts TIMESTAMP NOT NULL,
-c char NULL,
-PRIMARY KEY(ts)
-);
-INSERT INTO t1 VALUES
-('1971-01-01','a'),
-('2007-05-25','b'),
-('2008-01-01','c'),
-('2038-01-09','d');
-
-# Execute select with invalid timestamp, desc ordering
-SELECT *
-FROM t1
-WHERE ts BETWEEN '0000-00-00' AND '2010-00-01 00:00:00'
-ORDER BY ts DESC
-LIMIT 2;
-ts c
-2008-01-01 00:00:00 c
-2007-05-25 00:00:00 b
-
-# Should use index condition
-EXPLAIN
-SELECT *
-FROM t1
-WHERE ts BETWEEN '0000-00-00' AND '2010-00-01 00:00:00'
-ORDER BY ts DESC
-LIMIT 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using where
-
-DROP TABLE t1;
-#
-# BUG#49906: Assertion failed - Field_varstring::val_str in field.cc
-# (Note: Fixed by patch for LP BUG#625841)
-#
-CREATE TABLE t1 (
-f1 VARCHAR(1024),
-f2 VARCHAR(10),
-INDEX test_idx USING BTREE (f2,f1(5))
-);
-INSERT INTO t1 VALUES ('a','c'), ('b','d');
-SELECT f1
-FROM t1
-WHERE f2 LIKE 'd'
-ORDER BY f1;
-f1
-b
-DROP TABLE t1;
-#
-# Bug#52660 - "Perf. regr. using ICP for MyISAM on range queries on
-# an index containing TEXT"
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 SELECT A.a + 10*(B.a) FROM t1 A, t1 B;
-CREATE TABLE t3 (
-c1 TINYTEXT NOT NULL,
-i1 INT NOT NULL,
-KEY (c1(6),i1)
-);
-INSERT INTO t3 SELECT CONCAT('c-',1000+t2.a,'=w'), 1 FROM t2;
-EXPLAIN
-SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 range c1 c1 8 NULL 3 Using where
-SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w';
-c1
-c-1004=w
-c-1005=w
-c-1006=w
-EXPLAIN
-SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w' and i1 > 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 range c1 c1 12 NULL 2 Using where
-SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w' and i1 > 2;
-c1
-EXPLAIN
-SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w' or i1 > 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL c1 NULL NULL NULL 100 Using where
-SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w' or i1 > 2;
-c1
-c-1004=w
-c-1005=w
-c-1006=w
-DROP TABLE t1, t2, t3;
-#
-# Bug#40992 - InnoDB: Crash when engine_condition_pushdown is on
-#
-CREATE TABLE t (
-dummy INT PRIMARY KEY,
-a INT UNIQUE,
-b INT
-);
-INSERT INTO t VALUES (1,1,1),(3,3,3),(5,5,5);
-SELECT * FROM t WHERE a > 2 FOR UPDATE;
-dummy a b
-3 3 3
-5 5 5
-DROP TABLE t;
-#
-# Bug#35080 - Innodb crash at mem_block_get_len line 72
-#
-CREATE TABLE t1 (
-t1_autoinc INT(11) NOT NULL AUTO_INCREMENT,
-uuid VARCHAR(36) DEFAULT NULL,
-PRIMARY KEY (t1_autoinc),
-KEY k (uuid)
-);
-CREATE TABLE t2 (
-t2_autoinc INT(11) NOT NULL AUTO_INCREMENT,
-uuid VARCHAR(36) DEFAULT NULL,
-date DATETIME DEFAULT NULL,
-PRIMARY KEY (t2_autoinc),
-KEY k (uuid)
-);
-CREATE VIEW v1 AS
-SELECT t1_autoinc, uuid
-FROM t1
-WHERE (ISNULL(uuid) OR (uuid like '%-%'));
-CREATE VIEW v2 AS
-SELECT t2_autoinc, uuid, date
-FROM t2
-WHERE (ISNULL(uuid) OR (LENGTH(uuid) = 36));
-CREATE PROCEDURE delete_multi (IN uuid CHAR(36))
-DELETE v1, v2 FROM v1 INNER JOIN v2
-ON v1.uuid = v2.uuid
-WHERE v1.uuid = @uuid;
-SET @uuid = UUID();
-INSERT INTO v1 (uuid) VALUES (@uuid);
-INSERT INTO v2 (uuid, date) VALUES (@uuid, '2009-09-09');
-CALL delete_multi(@uuid);
-DROP procedure delete_multi;
-DROP table t1,t2;
-DROP view v1,v2;
-#
-# Bug#41996 - multi-table delete crashes server (InnoDB table)
-#
-CREATE TABLE t1 (
-b BIGINT,
-i INT,
-KEY (b)
-);
-INSERT INTO t1 VALUES (2, 2);
-DELETE t1 FROM t1 a, t1 WHERE a.i=t1.b;
-DROP TABLE t1;
-#
-# Bug#43448 - Server crashes on multi table delete with Innodb
-#
-CREATE TABLE t1 (
-id1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-t CHAR(12)
-);
-CREATE TABLE t2 (
-id2 INT NOT NULL,
-t CHAR(12)
-);
-CREATE TABLE t3(
-id3 INT NOT NULL,
-t CHAR(12),
-INDEX(id3)
-);
-CREATE PROCEDURE insert_data ()
-BEGIN
-DECLARE i1 INT DEFAULT 20;
-DECLARE i2 INT;
-DECLARE i3 INT;
-WHILE (i1 > 0) DO
-INSERT INTO t1(t) VALUES (i1);
-SET i2 = 2;
-WHILE (i2 > 0) DO
-INSERT INTO t2(id2, t) VALUES (i1, i2);
-SET i3 = 2;
-WHILE (i3 > 0) DO
-INSERT INTO t3(id3, t) VALUES (i1, i2);
-SET i3 = i3 -1;
-END WHILE;
-SET i2 = i2 -1;
-END WHILE;
-SET i1 = i1 - 1;
-END WHILE;
-END |
-CALL insert_data();
-SELECT COUNT(*) FROM t1 WHERE id1 > 10;
-COUNT(*)
-10
-SELECT COUNT(*) FROM t2 WHERE id2 > 10;
-COUNT(*)
-20
-SELECT COUNT(*) FROM t3 WHERE id3 > 10;
-COUNT(*)
-40
-DELETE t1, t2, t3
-FROM t1, t2, t3
-WHERE t1.id1 = t2.id2 AND t2.id2 = t3.id3 AND t1.id1 > 3;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-3
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-6
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-12
-DROP PROCEDURE insert_data;
-DROP TABLE t1, t2, t3;
-#
-# Bug#57372 "Multi-table updates and deletes fail when running with ICP
-# against InnoDB"
-#
-CREATE TABLE t1 (
-a INT KEY,
-b INT
-);
-CREATE TABLE t2 (
-a INT KEY,
-b INT
-);
-INSERT INTO t1 VALUES (1, 101), (2, 102), (3, 103), (4, 104), (5, 105);
-INSERT INTO t2 VALUES (1, 1), (2, 2), (3, 3), (4, 4), (5, 5);
-UPDATE t1, t2
-SET t1.a = t1.a + 100, t2.b = t1.a + 10
-WHERE t1.a BETWEEN 2 AND 4 AND t2.a = t1.b - 100;
-SELECT * FROM t1;
-a b
-1 101
-102 102
-103 103
-104 104
-5 105
-SELECT * FROM t2;
-a b
-1 1
-2 12
-3 13
-4 14
-5 5
-DROP TABLE t1, t2;
-#
-# Bug#52605 - "Adding LIMIT 1 clause to query with complex range
-# predicate causes wrong results"
-#
-CREATE TABLE t1 (
-pk INT NOT NULL,
-c1 INT,
-PRIMARY KEY (pk),
-KEY k1 (c1)
-);
-INSERT INTO t1 VALUES (1,NULL);
-INSERT INTO t1 VALUES (2,6);
-INSERT INTO t1 VALUES (3,NULL);
-INSERT INTO t1 VALUES (4,6);
-INSERT INTO t1 VALUES (5,NULL);
-INSERT INTO t1 VALUES (6,NULL);
-INSERT INTO t1 VALUES (7,9);
-INSERT INTO t1 VALUES (8,0);
-SELECT pk, c1
-FROM t1
-WHERE (pk BETWEEN 4 AND 5 OR pk < 2) AND c1 < 240
-ORDER BY c1
-LIMIT 1;
-pk c1
-4 6
-EXPLAIN SELECT pk, c1
-FROM t1
-WHERE (pk BETWEEN 4 AND 5 OR pk < 2) AND c1 < 240
-ORDER BY c1
-LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,k1 k1 5 NULL 4 Using where
-DROP TABLE t1;
-#
-#
-# Bug#59259 "Incorrect rows returned for a correlated subquery
-# when ICP is on"
-#
-CREATE TABLE t1 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t1 VALUES (11,0);
-INSERT INTO t1 VALUES (12,5);
-INSERT INTO t1 VALUES (15,0);
-CREATE TABLE t2 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t2 VALUES (11,1);
-INSERT INTO t2 VALUES (12,2);
-INSERT INTO t2 VALUES (15,4);
-set @save_optimizer_switch= @@optimizer_switch;
-set optimizer_switch='semijoin=off';
-EXPLAIN
-SELECT * FROM t1
-WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON it.i=it.i WHERE it.pk-t1.i<10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-2 DEPENDENT SUBQUERY it eq_ref PRIMARY PRIMARY 4 func 1 Using index condition
-2 DEPENDENT SUBQUERY t2 index NULL PRIMARY 4 NULL 3 Using index; Using join buffer (flat, BNL join)
-SELECT * FROM t1
-WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON it.i=it.i WHERE it.pk-t1.i<10);
-pk i
-12 5
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1, t2;
-#
-# Bug #58816 "Extra temporary duplicate rows in result set when
-# switching ICP off"
-#
-set @save_optimizer_switch= @@optimizer_switch;
-CREATE TABLE t1 (
-pk INT NOT NULL,
-c1 INT NOT NULL,
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (1,9),(2,7),(3,6),(4,3),(5,1);
-EXPLAIN SELECT pk, c1 FROM t1 WHERE pk <> 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 5 Using where
-SET SESSION optimizer_switch='index_condition_pushdown=off';
-SELECT pk, c1 FROM t1 WHERE pk <> 3;
-pk c1
-1 9
-2 7
-4 3
-5 1
-DROP TABLE t1;
-set optimizer_switch= @save_optimizer_switch;
-#
-# Bug#58837: ICP crash or valgrind error due to uninitialized
-# value in innobase_index_cond
-#
-CREATE TABLE t1 (
-t1_int INT,
-t1_time TIME
-);
-CREATE TABLE t2 (
-t2_int int PRIMARY KEY,
-t2_int2 INT
-);
-INSERT IGNORE INTO t2 VALUES ();
-INSERT INTO t1 VALUES ();
-SELECT * FROM t1 AS t1a
-WHERE NOT EXISTS (SELECT * FROM t1 AS t1b
-WHERE t1b.t1_int NOT IN
-(SELECT t2.t2_int FROM t2
-WHERE t1b.t1_time LIKE t1b.t1_int
-OR t1b.t1_time <> t2.t2_int2
-AND 6=7));
-t1_int t1_time
-DROP TABLE t1,t2;
-#
-# Bug#59186: Wrong results of join when ICP is enabled
-# (fixed by the patch for LP bug #694092)
-#
-CREATE TABLE t1 (
-pk INTEGER NOT NULL,
-c1 VARCHAR(3) NOT NULL,
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (1,'y'),(0,'or');
-CREATE TABLE t2 (
-pk INTEGER NOT NULL,
-c1 VARCHAR(3) NOT NULL,
-c2 VARCHAR(6) NOT NULL,
-PRIMARY KEY (pk)
-);
-INSERT INTO t2 VALUES (6,'y','RPOYT'),(10,'m','JINQE');
-EXPLAIN
-SELECT c2 FROM t1 JOIN t2 ON t1.c1 = t2.c1
-WHERE (t2.pk <= 4 AND t1.pk IN (2,1)) OR
-(t1.pk > 1 AND t2.pk BETWEEN 6 AND 6);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 2 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 2 Using index condition; Using where; Rowid-ordered scan; Using join buffer (flat, BNL join)
-SELECT c2 FROM t1 JOIN t2 ON t1.c1 = t2.c1
-WHERE (t2.pk <= 4 AND t1.pk IN (2,1)) OR
-(t1.pk > 1 AND t2.pk BETWEEN 6 AND 6);
-c2
-DROP TABLE t1, t2;
-#
-# Bug#58838: "Wrong results with HAVING + LIMIT without GROUP BY when
-# ICP is enabled".
-# (Fixed by the patches for LP bugs #668644, #702322)
-#
-CREATE TABLE t1 (
-pk INT NOT NULL,
-c1 INT,
-PRIMARY KEY (pk),
-KEY col_int_key (c1)
-);
-INSERT INTO t1 VALUES (1,37),(2,8),(3,-25),(4,NULL),(5,55);
-SELECT pk FROM t1 WHERE c1 <> 1 HAVING pk = 3 ORDER BY pk LIMIT 0;
-pk
-SELECT pk FROM t1 WHERE c1 <> 1 HAVING pk = 3 ORDER BY pk LIMIT 1;
-pk
-3
-SELECT pk FROM t1 WHERE c1 <> 1 HAVING pk = 3 ORDER BY pk LIMIT 2;
-pk
-3
-SELECT pk FROM t1 WHERE c1 <> 1 HAVING pk = 3 ORDER BY pk LIMIT 5;
-pk
-3
-DROP TABLE t1;
-#
-# Bug#59483 "Crash on INSERT/REPLACE in
-# rec_convert_dtuple_to_rec_comp with ICP on"
-#
-CREATE TABLE t1 (
-pk INTEGER AUTO_INCREMENT PRIMARY KEY,
-i1 INTEGER,
-c1 CHAR(6),
-i2 INTEGER NOT NULL,
-KEY (i2)
-);
-INSERT INTO t1 VALUES
-(NULL, 4, 'that', 8),
-(NULL, 1, 'she', 6),
-(NULL, 6, 'tell', 2);
-SELECT * FROM t1 WHERE i2 IN (3, 6) LIMIT 2 FOR UPDATE;
-pk i1 c1 i2
-2 1 she 6
-INSERT INTO t1 (i2) VALUES (1);
-DROP TABLE t1;
-#
-# Bug #11766678 - 59843:
-# USING UNINITIALISED VALUE IN USES_INDEX_FIELDS_ONLY
-#
-CREATE TABLE t1 (
-col999 FLOAT NOT NULL,
-COL1000 VARBINARY(179) NOT NULL,
-col1003 DATE DEFAULT NULL,
-KEY idx4267 (col1000, col1003)
-);
-INSERT IGNORE INTO t1 VALUES (),();
-Warnings:
-Warning 1364 Field 'col999' doesn't have a default value
-Warning 1364 Field 'COL1000' doesn't have a default value
-SELECT col999 FROM t1 WHERE col1000 = "3" AND col1003 <=> sysdate();
-col999
-DROP TABLE t1;
-#
-# BUG#12822678 - ICP WITH STRAIGHT_JOIN
-#
-CREATE TABLE t1 (
-i1 INTEGER NOT NULL,
-d1 DOUBLE,
-KEY k1 (d1)
-);
-INSERT INTO t1 VALUES (10,1), (17,NULL), (22,NULL);
-CREATE TABLE t2 (
-pk INTEGER NOT NULL,
-i1 INTEGER NOT NULL,
-PRIMARY KEY (pk)
-);
-INSERT INTO t2 VALUES (4,1);
-EXPLAIN
-SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1
-WHERE t2.pk <> t1.d1 AND t2.pk = 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL k1 9 NULL 3 Using index
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 Using where
-SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1
-WHERE t2.pk <> t1.d1 AND t2.pk = 4;
-d1 pk i1
-1 4 1
-EXPLAIN
-SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1
-WHERE t1.d1 <> t2.pk AND t2.pk = 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL k1 9 NULL 3 Using index
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 Using where
-SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1
-WHERE t1.d1 <> t2.pk AND t2.pk = 4;
-d1 pk i1
-1 4 1
-DROP TABLE t1, t2;
-#
-# BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
-#
-CREATE TABLE t1 ( f11 int) ;
-INSERT IGNORE INTO t1 VALUES (0);
-CREATE TABLE t2 ( f10 int) ;
-INSERT IGNORE INTO t2 VALUES (0);
-CREATE TABLE t3 ( f1 int NOT NULL , f10 int, PRIMARY KEY (f1)) ;
-INSERT IGNORE INTO t3 VALUES (6,0),(10,0);
-CREATE TABLE t4 ( f11 int) ;
-INSERT IGNORE INTO t4 VALUES
-(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(NULL),
-(0),(0),(0),(0),(0),(0),(0),(0),(0),(0);
-set @tmp_778434=@@optimizer_switch;
-SET optimizer_switch='materialization=off,in_to_exists=on,subquery_cache=off,semijoin=off';
-SELECT * FROM t1 INNER JOIN t2 ON t2.f10 = t1.f11
-WHERE (6, 234) IN (
-SELECT t3.f1, t3.f1
-FROM t3 JOIN t4 ON t4.f11 = t3.f10
-);
-f11 f10
-DROP TABLE t1,t2,t3,t4;
-set optimizer_switch= @tmp_778434;
-#
-# Bug#885168: ICP for one index + potential ORDER BY for another
-#
-CREATE TABLE t1 (a varchar(64), b varchar(10), INDEX(a), INDEX(b)) ;
-INSERT INTO t1 VALUES
-('Ohio','Iowa'), ('k','d'), ('bdkpj','mbdkpjdanp'), ('d','xdmbdkpjda'),
-('fkxdmbdkpjdanpje','o'), ('f','Pennsylvan'), ('Virginia','ei');
-SET SESSION optimizer_switch='index_condition_pushdown=off';
-EXPLAIN
-SELECT * FROM t1
-WHERE NOT(b = 'Texas') AND b BETWEEN 'wy' AND 'y' OR b = 'Pennsylvania'
- ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range b b 13 NULL 2 Using where; Rowid-ordered scan; Using filesort
-SELECT * FROM t1
-WHERE NOT(b = 'Texas') AND b BETWEEN 'wy' AND 'y' OR b = 'Pennsylvania'
- ORDER BY a;
-a b
-d xdmbdkpjda
-SET SESSION optimizer_switch='index_condition_pushdown=on';
-EXPLAIN
-SELECT * FROM t1
-WHERE NOT(b = 'Texas') AND b BETWEEN 'wy' AND 'y' OR b = 'Pennsylvania'
- ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range b b 13 NULL 2 Using index condition; Using where; Rowid-ordered scan; Using filesort
-SELECT * FROM t1
-WHERE NOT(b = 'Texas') AND b BETWEEN 'wy' AND 'y' OR b = 'Pennsylvania'
- ORDER BY a;
-a b
-d xdmbdkpjda
-DROP TABLE t1;
-#
-# Bug#886145: join with ICP + ORDER BY
-#
-CREATE TABLE t1 (b int NOT NULL, c int, a varchar(1024), PRIMARY KEY (b));
-INSERT INTO t1 VALUES (1,4,'Ill');
-CREATE TABLE t2 (a varchar(1024), KEY (a(512)));
-INSERT INTO t2 VALUES
-('Ill'), ('eckqzsflbzaffti'), ('w'), ('she'), ('gxbwypqtjzwywwer'), ('w');
-SET SESSION optimizer_switch='index_condition_pushdown=off';
-EXPLAIN
-SELECT t1.b, t1.c FROM t1, t2 WHERE t1.a = t2.a AND t1.b != 0
-HAVING t1.c != 5 ORDER BY t1.c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t2 ref a a 515 const 1 Using where
-SELECT t1.b, t1.c FROM t1, t2 WHERE t1.a = t2.a AND t1.b != 0
-HAVING t1.c != 5 ORDER BY t1.c;
-b c
-1 4
-SET SESSION optimizer_switch='index_condition_pushdown=on';
-EXPLAIN
-SELECT t1.b, t1.c FROM t1, t2 WHERE t1.a = t2.a AND t1.b != 0
-HAVING t1.c != 5 ORDER BY t1.c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t2 ref a a 515 const 1 Using where
-SELECT t1.b, t1.c FROM t1, t2 WHERE t1.a = t2.a AND t1.b != 0
-HAVING t1.c != 5 ORDER BY t1.c;
-b c
-1 4
-DROP TABLE t1,t2;
-#
-# Bug#879871: InnoDB: possible ICP + GROUP BY primary index
-#
-CREATE TABLE t1 (
-a int NOT NULL, b int, c varchar(1), d varchar(1),
-PRIMARY KEY (a), KEY c (c,b)
-);
-INSERT INTO t1 VALUES (10,8,'g','g');
-SET SESSION optimizer_switch='index_condition_pushdown=off';
-SELECT a FROM t1 WHERE c IS NULL AND d IS NOT NULL GROUP BY 1;
-a
-SET SESSION optimizer_switch='index_condition_pushdown=on';
-SELECT a FROM t1 WHERE c IS NULL AND d IS NOT NULL GROUP BY 1;
-a
-DROP TABLE t1;
-#
-# Bug#904832: an attempt to perform an index condition pushdown
-# of a condition containing a subquery
-#
-CREATE TABLE t1 (
-a INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
-b INT, c INT, d DATE NOT NULL, e VARCHAR(1),
-KEY (c), KEY (d), KEY k2(b), KEY k3(b), KEY k4(b)
-);
-Warnings:
-Note 1831 Duplicate index `k3`. This is deprecated and will be disallowed in a future release
-Note 1831 Duplicate index `k4`. This is deprecated and will be disallowed in a future release
-INSERT INTO t1 (b,c,d,e) VALUES
-(6,5,'2006-05-25','y'),(1,5,'2008-01-23','t'),
-(6,5,'2007-06-18','d'),(4,5,'1900-01-01','r'),
-(8,5,'1900-01-01','m'),(4,5,'2006-03-09','b'),
-(4,5,'2001-06-05','x'),(1,5,'2008-01-23','t'),
-(6,5,'2007-06-18','d'),(4,5,'1900-01-01','r'),
-(8,5,'1900-01-01','m'),(4,5,'2006-03-09','b'),
-(4,5,'2001-06-05','x'),(1,5,'2008-01-23','t'),
-(4,5,'1900-01-01','r'),(8,5,'1900-01-01','m'),
-(4,5,'2006-03-09','b'),(4,5,'2001-06-05','x'),
-(1,5,'2008-01-23','t'),(6,5,'2007-06-18','d'),
-(4,5,'1900-01-01','r'),(8,5,'1900-01-01','m'),
-(4,5,'2006-03-09','b'),(4,5,'2001-06-05','f'),
-(4,5,'2001-06-05','x'),(8,5,'1900-01-01','m'),
-(4,5,'2006-03-09','b'),(4,5,'2001-06-05','x'),
-(1,5,'2008-01-23','t'),(6,5,'2007-06-18','d'),
-(4,5,'1900-01-01','r'),(8,5,'1900-01-01','m'),
-(4,5,'2006-03-09','b'),(6,5,'2007-06-18','d'),
-(6,5,'2007-06-18','d'),(4,5,'1900-01-01','r'),
-(8,5,'1900-01-01','m'),(4,5,'2006-03-09','b'),
-(6,5,'2007-06-18','d'),(4,5,'1900-01-01','r'),
-(8,5,'1900-01-01','m'),(4,5,'2006-03-09','b'),
-(4,5,'2006-03-09','b'),(4,5,'2001-06-05','x'),
-(1,5,'2008-01-23','t'),(6,5,'2007-06-18','d'),
-(4,5,'1900-01-01','r'),(8,5,'1900-01-01','m'),
-(4,5,'2006-03-09','b'),(4,5,'2001-06-05','x'),
-(4,5,'2001-06-05','x'),(1,5,'2008-01-23','t'),
-(6,5,'2007-06-18','d'),(4,5,'1900-01-01','r'),
-(8,5,'1900-01-01','m'),(4,5,'2006-03-09','b'),
-(4,5,'2001-06-05','x'),(1,5,'2008-01-23','t'),
-(6,5,'2007-06-18','d'),(4,1,'1900-01-01','r'),
-(8,8,'1900-01-01','m'),(4,1,'2006-03-09','b'),
-(4,1,'2001-06-05','x'),(7,1,'2006-05-28','g');
-CREATE TABLE t2 (
-f INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
-g INT,
-h VARCHAR(1),
-KEY (g)
-);
-INSERT INTO t2 (g,h) VALUES
-(3,'e'),(1,'u'),(4,'v'),(9,'u'),(6,'i'),(1,'x'),
-(5,'l'),(8,'y'),(0,'p'),(0,'f'),(0,'p'),(7,'d'),
-(7,'f'),(5,'j'),(3,'e'),(1,'u'),(4,'v'),(9,'u'),
-(6,'i'),(1,'x'),(5,'l'),(8,'y'),(0,'p'),(0,'f'),
-(0,'p'),(0,'f'),(0,'p'),(7,'d'),(7,'f'),(5,'j'),
-(3,'e'),(1,'u'),(4,'v'),(9,'u'),(6,'i'),(1,'x'),
-(7,'d'),(7,'f'),(5,'j'),(3,'e'),(1,'u'),(4,'v'),
-(9,'u'),(6,'i'),(1,'x'),(5,'l'),(8,'y'),(0,'p'),
-(0,'f'),(0,'p'),(7,'d'),(7,'f'),(5,'j'),(3,'e'),
-(1,'u'),(4,'v'),(9,'u'),(6,'i'),(1,'x'),(5,'l'),
-(6,'q'),(2,'n'),(4,'r'),(4,'b'),(8,'y'),(0,'p'),
-(0,'f'),(0,'p'),(7,'d'),(7,'f'),(5,'j'),(3,'e'),
-(1,'u'),(4,'v'),(9,'u'),(6,'i'),(1,'x'),(5,'l'),
-(8,'y'),(0,'p'),(0,'f'),(0,'p'),(7,'d'),(7,'f'),
-(5,'j'),(3,'e'),(1,'u'),(4,'v'),(9,'u'),(6,'i'),
-(1,'x'),(5,'l'),(8,'y'),(0,'p'),(0,'f'),(0,'p'),
-(0,'f'),(0,'p'),(7,'d'),(7,'f'),(5,'j'),(3,'e'),
-(1,'u'),(4,'v'),(9,'u'),(6,'i'),(1,'x'),(7,'d'),
-(7,'f'),(5,'j'),(3,'e'),(1,'u'),(0,'f'),(0,'p'),
-(7,'d'),(7,'f'),(5,'j'),(3,'e'),(1,'u'),(4,'v'),
-(9,'u'),(6,'i'),(1,'x'),(5,'l'),(8,'y'),(0,'p'),
-(0,'f'),(0,'p'),(0,'f'),(0,'p'),(7,'d'),(7,'f'),
-(5,'j'),(3,'e'),(1,'u'),(4,'v'),(9,'u'),(6,'i'),
-(1,'x'),(7,'d'),(7,'f'),(5,'j'),(3,'e'),(1,'u'),
-(4,'v'),(9,'u'),(6,'i'),(1,'x'),(5,'l'),(8,'y'),
-(0,'p'),(0,'f'),(0,'p'),(7,'d'),(7,'f'),(5,'j'),
-(3,'e'),(1,'u'),(4,'v'),(9,'u'),(6,'i'),(1,'x'),
-(5,'l'),(6,'q'),(2,'n'),(4,'r'),(4,'b'),(8,'y'),
-(0,'p'),(0,'f'),(0,'p'),(7,'d'),(7,'f'),(5,'j'),
-(3,'e'),(1,'u'),(4,'v'),(9,'u'),(6,'i'),(1,'x'),
-(7,'f'),(5,'j'),(3,'e'),(1,'u'),(4,'v'),(9,'u');
-SET @save_optimize_switch=@@optimizer_switch;
-SET optimizer_switch='materialization=on';
-EXPLAIN
-SELECT COUNT(*) FROM t1 AS t, t2
-WHERE c = g
-AND (EXISTS (SELECT * FROM t1, t2 WHERE a = f AND h <= t.e AND a > t.b)
-OR a = 0 AND h < 'z' );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t ALL PRIMARY,c NULL NULL NULL 64 Using where
-1 PRIMARY t2 ref g g 5 test.t.c 19 Using where
-2 DEPENDENT SUBQUERY t1 index PRIMARY PRIMARY 4 NULL 64 Using where; Using index
-2 DEPENDENT SUBQUERY t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where
-SELECT COUNT(*) FROM t1 AS t, t2
-WHERE c = g
-AND (EXISTS (SELECT * FROM t1, t2 WHERE a = f AND h <= t.e AND a > t.b)
-OR a = 0 AND h < 'z' );
-COUNT(*)
-1478
-SELECT COUNT(*) FROM t1 AS t, t2
-WHERE c = g
-AND (EXISTS (SELECT * FROM t1, t2 WHERE a = f AND h <= t.e AND a > t.b)
-OR a = 0 AND h < 'z' );
-COUNT(*)
-1478
-SET optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t2;
-# check "Handler_pushed" status varuiables
-CREATE TABLE t1 (
-c1 CHAR(1),
-c2 CHAR(1),
-KEY (c1)
-);
-INSERT INTO t1 VALUES ('3', '3'),('4','4'),('5','5');
-flush status;
-show status like "Handler_icp%";
-Variable_name Value
-Handler_icp_attempts 0
-Handler_icp_match 0
-SELECT * FROM t1 FORCE INDEX(c1) WHERE (c1='3' or c1='4') and c1 % 2 = 0 ;
-c1 c2
-4 4
-show status like "Handler_icp%";
-Variable_name Value
-Handler_icp_attempts 2
-Handler_icp_match 1
-SELECT * FROM t1 WHERE (c2='3' or c2='4') and c2 % 2 = 0 ;
-c1 c2
-4 4
-show status like "Handler_icp%";
-Variable_name Value
-Handler_icp_attempts 2
-Handler_icp_match 1
-DROP TABLE t1;
-create table t1 (a int,b char(5),primary key (a), key (b(1)));
-insert ignore into t1 values ('a','b');
-Warnings:
-Warning 1366 Incorrect integer value: 'a' for column 'a' at row 1
-select 1 from t1 where a and b >= 'aa';
-1
-drop table t1;
-#
-# Bug#58015 "Assert in row_sel_field_store_in_mysql_format
-# when running innodb_mrr_icp test"
-#
-create table t1 (a char(2) charset utf8,b double, primary key (a(1)),key (b));
-insert into t1 values ('',1);
-select 1 from t1 where b <= 1 and a <> '';
-1
-drop table t1;
-#
-# MDEV-4778: Incorrect results from Aria/MyISAM SELECT using index with prefix length on TEXT column
-#
-CREATE TABLE t1 (
-c1 TEXT ,
-c2 VARCHAR(2) ,
-INDEX idx1 (c2,c1(2)),
-INDEX idx2 (c2,c1(1))
-);
-INSERT INTO t1 (c1,c2) VALUES ('aa','x'), ('a' ,'y');
-SELECT * FROM t1 IGNORE INDEX(idx1,idx2) WHERE (c1='aa' AND c2='x') OR (c1='a' AND c2='y');
-c1 c2
-aa x
-a y
-EXPLAIN
-SELECT * FROM t1 FORCE INDEX(idx1) WHERE (c1='aa' AND c2='x') OR (c1='a' AND c2='y');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx1 idx1 10 NULL 2 Using where
-SELECT * FROM t1 FORCE INDEX(idx1) WHERE (c1='aa' AND c2='x') OR (c1='a' AND c2='y');
-c1 c2
-aa x
-a y
-SELECT * FROM t1 FORCE INDEX(idx2) WHERE (c1='aa' AND c2='x') OR (c1='a' AND c2='y');
-c1 c2
-aa x
-a y
-DROP TABLE t1;
-drop table if exists t0, t1, t1i, t1m;
-#
-# BUG#826935 Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))' failed
-#
-CREATE TABLE t1 ( a int, b varchar(1024), c int, KEY (c), KEY (c,a)) ;
-INSERT INTO t1 VALUES
-(NULL,'x','-678428672'),
-(NULL,'ok',NULL),
-(796262400,'byluovkgwoukfxedyeffsedajyqkyhpaqqpozn', NULL),
-(7,'STQUF',146014208),
-(955711488,'WWVOR','-1515388928');
-SELECT b FROM t1 WHERE a != 1 AND c IS NULL ORDER BY 1;
-b
-byluovkgwoukfxedyeffsedajyqkyhpaqqpozn
-DROP TABLE t1;
-#
-# Bug#870046: ICP for a GROUP BY query
-#
-CREATE TABLE t1 (a int, b varchar(1), c varchar(1), INDEX idx(b));
-INSERT INTO t1 VALUES (2,'x','x'), (5,'x','y');
-SET SESSION optimizer_switch='index_condition_pushdown=off';
-EXPLAIN
-SELECT a, MIN(c) FROM t1 WHERE b = 'x' AND c > 'x' GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx idx 4 const 1 Using where; Using temporary; Using filesort
-SELECT a, MIN(c) FROM t1 WHERE b = 'x' AND c > 'x' GROUP BY a;
-a MIN(c)
-5 y
-SET SESSION optimizer_switch='index_condition_pushdown=on';
-EXPLAIN
-SELECT a, MIN(c) FROM t1 WHERE b = 'x' AND c > 'x' GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx idx 4 const 1 Using index condition; Using where; Using temporary; Using filesort
-SELECT a, MIN(c) FROM t1 WHERE b = 'x' AND c > 'x' GROUP BY a;
-a MIN(c)
-5 y
-DROP TABLE t1;
-#
-# BUG#887026: Wrong result with ICP, outer join, subquery in maria-5.3-icp
-#
-CREATE TABLE t1 (c varchar(1));
-INSERT INTO t1 VALUES ('c'), ('c');
-CREATE TABLE t2 (c varchar(1), b int);
-INSERT INTO t2 VALUES ('d', NULL),('d', NULL);
-CREATE TABLE t3 (c varchar(1));
-INSERT INTO t3 VALUES ('c');
-INSERT INTO t3 VALUES ('c');
-CREATE TABLE t4 ( b int, c varchar(1), KEY (b));
-INSERT INTO t4 VALUES (7,'c');
-INSERT INTO t4 VALUES (7,'c');
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-# Must be t1,t2,t3,t4, with t4 having Full-scan-on-NULL but not Using index condition
-explain
-SELECT * FROM t1 LEFT JOIN t2 ON t1.c=t2.b
-WHERE
-t2.b NOT IN (SELECT t4.b FROM t3 STRAIGHT_JOIN t4 WHERE t4.b <= 2 AND t4.c = t3.c);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 2
-2 MATERIALIZED t4 range b b 5 NULL 1 Using index condition; Using where; Rowid-ordered scan; Using join buffer (flat, BNL join)
-SELECT * FROM t1 LEFT JOIN t2 ON t1.c=t2.b
-WHERE
-t2.b NOT IN (SELECT t4.b FROM t3 STRAIGHT_JOIN t4 WHERE t4.b <= 2 AND t4.c = t3.c);
-c c b
-c NULL NULL
-c NULL NULL
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-SET optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t2,t3,t4;
-#
-# BUG#1000051: Query with simple join and ORDER BY takes thousands times longer when run with ICP
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, col int, filler char(100), key(a, col));
-insert into t1 select A.a + 10*B.a, 1234, 'filler' from t0 A, t0 B, t0 C;
-set @tmp_10000051= @@optimizer_switch;
-set optimizer_switch='mrr=off';
-# Must not use ICP:
-explain select * from t1 where a between 5 and 8 order by a desc, col desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 39 Using where
-set optimizer_switch= @tmp_10000051;
-# Must not use ICP:
-explain select * from t1 where a=3 and col > 500 order by a desc, col desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 10 NULL 10 Using where
-drop table t0, t1;
-set optimizer_switch=@myisam_icp_tmp;
diff --git a/mysql-test/r/myisam_icp_notembedded.result b/mysql-test/r/myisam_icp_notembedded.result
deleted file mode 100644
index 789259d62f1..00000000000
--- a/mysql-test/r/myisam_icp_notembedded.result
+++ /dev/null
@@ -1,22 +0,0 @@
-drop table if exists t1,t2;
-set @myisam_icp_notembedded_tmp=@@optimizer_switch;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-#
-# BUG#933412: Server crashes in _mi_put_key_in_record on KILL QUERY with ICP, STRAIGHT_JOIN
-#
-CREATE TABLE t1 (
-b INT,
-c VARCHAR(1) NOT NULL,
-d DATETIME,
-KEY (c, b)
-) ENGINE=MyISAM;
-# INSERT some data
-CREATE TABLE t2 ( a INT ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-(7),(3),(7),(3);
-connect con2,127.0.0.1,root,,test;
-# Now run a number of ICP queries while trying to kill them
-disconnect con2;
-connection default;
-DROP TABLE t1,t2;
-set optimizer_switch=@myisam_icp_notembedded_tmp;
diff --git a/mysql-test/r/myisam_mrr.result b/mysql-test/r/myisam_mrr.result
deleted file mode 100644
index 511e6a8d01f..00000000000
--- a/mysql-test/r/myisam_mrr.result
+++ /dev/null
@@ -1,639 +0,0 @@
-drop table if exists t0, t1, t2, t3;
-set @myisam_mrr_tmp=@@optimizer_switch;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set @mrr_buffer_size_save= @@mrr_buffer_size;
-set mrr_buffer_size=79;
-Warnings:
-Warning 1292 Truncated incorrect mrr_buffer_size value: '79'
-create table t1(a int);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2(a int);
-insert into t2 select A.a + 10*(B.a + 10*C.a) from t1 A, t1 B, t1 C;
-create table t3 (
-a char(8) not null, b char(8) not null, filler char(200),
-key(a)
-);
-insert into t3 select @a:=concat('c-', 1000+ A.a, '=w'), @a, 'filler' from t2 A;
-insert into t3 select concat('c-', 1000+A.a, '=w'), concat('c-', 2000+A.a, '=w'),
-'filler-1' from t2 A;
-insert into t3 select concat('c-', 1000+A.a, '=w'), concat('c-', 3000+A.a, '=w'),
-'filler-2' from t2 A;
-select a,filler from t3 where a >= 'c-9011=w';
-a filler
-select a,filler from t3 where a >= 'c-1011=w' and a <= 'c-1015=w';
-a filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1011=w filler-1
-c-1012=w filler-1
-c-1013=w filler-1
-c-1014=w filler-1
-c-1015=w filler-1
-c-1011=w filler-2
-c-1012=w filler-2
-c-1013=w filler-2
-c-1014=w filler-2
-c-1015=w filler-2
-select a,filler from t3 where (a>='c-1011=w' and a <= 'c-1013=w') or
-(a>='c-1014=w' and a <= 'c-1015=w');
-a filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1011=w filler-1
-c-1012=w filler-1
-c-1013=w filler-1
-c-1014=w filler-1
-c-1015=w filler-1
-c-1011=w filler-2
-c-1012=w filler-2
-c-1013=w filler-2
-c-1014=w filler-2
-c-1015=w filler-2
-insert into t3 values ('c-1013=z', 'c-1013=z', 'err');
-insert into t3 values ('a-1014=w', 'a-1014=w', 'err');
-select a,filler from t3 where (a>='c-1011=w' and a <= 'c-1013=w') or
-(a>='c-1014=w' and a <= 'c-1015=w');
-a filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1011=w filler-1
-c-1012=w filler-1
-c-1013=w filler-1
-c-1014=w filler-1
-c-1015=w filler-1
-c-1011=w filler-2
-c-1012=w filler-2
-c-1013=w filler-2
-c-1014=w filler-2
-c-1015=w filler-2
-delete from t3 where b in ('c-1013=z', 'a-1014=w');
-select a,filler from t3 where a='c-1011=w' or a='c-1012=w' or a='c-1013=w' or
-a='c-1014=w' or a='c-1015=w';
-a filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1011=w filler-1
-c-1012=w filler-1
-c-1013=w filler-1
-c-1014=w filler-1
-c-1015=w filler-1
-c-1011=w filler-2
-c-1012=w filler-2
-c-1013=w filler-2
-c-1014=w filler-2
-c-1015=w filler-2
-insert into t3 values ('c-1013=w', 'del-me', 'inserted');
-select a,filler from t3 where a='c-1011=w' or a='c-1012=w' or a='c-1013=w' or
-a='c-1014=w' or a='c-1015=w';
-a filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1011=w filler-1
-c-1012=w filler-1
-c-1013=w filler-1
-c-1014=w filler-1
-c-1015=w filler-1
-c-1011=w filler-2
-c-1012=w filler-2
-c-1013=w filler-2
-c-1014=w filler-2
-c-1015=w filler-2
-c-1013=w inserted
-delete from t3 where b='del-me';
-alter table t3 add primary key(b);
-select b,filler from t3 where (b>='c-1011=w' and b<= 'c-1018=w') or
-b IN ('c-1019=w', 'c-1020=w', 'c-1021=w',
-'c-1022=w', 'c-1023=w', 'c-1024=w');
-b filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1016=w filler
-c-1017=w filler
-c-1018=w filler
-c-1019=w filler
-c-1020=w filler
-c-1021=w filler
-c-1022=w filler
-c-1023=w filler
-c-1024=w filler
-select b,filler from t3 where (b>='c-1011=w' and b<= 'c-1020=w') or
-b IN ('c-1021=w', 'c-1022=w', 'c-1023=w');
-b filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1016=w filler
-c-1017=w filler
-c-1018=w filler
-c-1019=w filler
-c-1020=w filler
-c-1021=w filler
-c-1022=w filler
-c-1023=w filler
-select b,filler from t3 where (b>='c-1011=w' and b<= 'c-1018=w') or
-b IN ('c-1019=w', 'c-1020=w') or
-(b>='c-1021=w' and b<= 'c-1023=w');
-b filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1016=w filler
-c-1017=w filler
-c-1018=w filler
-c-1019=w filler
-c-1020=w filler
-c-1021=w filler
-c-1022=w filler
-c-1023=w filler
-drop table if exists t4;
-create table t4 (a varchar(10), b int, c char(10), filler char(200),
-key idx1 (a, b, c));
-insert into t4 (filler) select concat('NULL-', 15-a) from t2 order by a limit 15;
-insert into t4 (a,b,c,filler)
-select 'b-1',NULL,'c-1', concat('NULL-', 15-a) from t2 order by a limit 15;
-insert into t4 (a,b,c,filler)
-select 'b-1',NULL,'c-222', concat('NULL-', 15-a) from t2 order by a limit 15;
-insert into t4 (a,b,c,filler)
-select 'bb-1',NULL,'cc-2', concat('NULL-', 15-a) from t2 order by a limit 15;
-insert into t4 (a,b,c,filler)
-select 'zz-1',NULL,'cc-2', 'filler-data' from t2 order by a limit 500;
-explain
-select * from t4 where a IS NULL and b IS NULL and (c IS NULL or c='no-such-row1'
- or c='no-such-row2');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 range idx1 idx1 29 NULL 10 Using index condition; Using where; Rowid-ordered scan
-select * from t4 where a IS NULL and b IS NULL and (c IS NULL or c='no-such-row1'
- or c='no-such-row2');
-a b c filler
-NULL NULL NULL NULL-15
-NULL NULL NULL NULL-14
-NULL NULL NULL NULL-13
-NULL NULL NULL NULL-12
-NULL NULL NULL NULL-11
-NULL NULL NULL NULL-10
-NULL NULL NULL NULL-9
-NULL NULL NULL NULL-8
-NULL NULL NULL NULL-7
-NULL NULL NULL NULL-6
-NULL NULL NULL NULL-5
-NULL NULL NULL NULL-4
-NULL NULL NULL NULL-3
-NULL NULL NULL NULL-2
-NULL NULL NULL NULL-1
-explain
-select * from t4 where (a ='b-1' or a='bb-1') and b IS NULL and (c='c-1' or c='cc-2');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 range idx1 idx1 29 NULL 21 Using index condition; Using where; Rowid-ordered scan
-select * from t4 where (a ='b-1' or a='bb-1') and b IS NULL and (c='c-1' or c='cc-2');
-a b c filler
-b-1 NULL c-1 NULL-15
-b-1 NULL c-1 NULL-14
-b-1 NULL c-1 NULL-13
-b-1 NULL c-1 NULL-12
-b-1 NULL c-1 NULL-11
-b-1 NULL c-1 NULL-10
-b-1 NULL c-1 NULL-9
-b-1 NULL c-1 NULL-8
-b-1 NULL c-1 NULL-7
-b-1 NULL c-1 NULL-6
-b-1 NULL c-1 NULL-5
-b-1 NULL c-1 NULL-4
-b-1 NULL c-1 NULL-3
-b-1 NULL c-1 NULL-2
-b-1 NULL c-1 NULL-1
-bb-1 NULL cc-2 NULL-15
-bb-1 NULL cc-2 NULL-14
-bb-1 NULL cc-2 NULL-13
-bb-1 NULL cc-2 NULL-12
-bb-1 NULL cc-2 NULL-11
-bb-1 NULL cc-2 NULL-10
-bb-1 NULL cc-2 NULL-9
-bb-1 NULL cc-2 NULL-8
-bb-1 NULL cc-2 NULL-7
-bb-1 NULL cc-2 NULL-6
-bb-1 NULL cc-2 NULL-5
-bb-1 NULL cc-2 NULL-4
-bb-1 NULL cc-2 NULL-3
-bb-1 NULL cc-2 NULL-2
-bb-1 NULL cc-2 NULL-1
-select * from t4 ignore index(idx1) where (a ='b-1' or a='bb-1') and b IS NULL and (c='c-1' or c='cc-2');
-a b c filler
-b-1 NULL c-1 NULL-15
-b-1 NULL c-1 NULL-14
-b-1 NULL c-1 NULL-13
-b-1 NULL c-1 NULL-12
-b-1 NULL c-1 NULL-11
-b-1 NULL c-1 NULL-10
-b-1 NULL c-1 NULL-9
-b-1 NULL c-1 NULL-8
-b-1 NULL c-1 NULL-7
-b-1 NULL c-1 NULL-6
-b-1 NULL c-1 NULL-5
-b-1 NULL c-1 NULL-4
-b-1 NULL c-1 NULL-3
-b-1 NULL c-1 NULL-2
-b-1 NULL c-1 NULL-1
-bb-1 NULL cc-2 NULL-15
-bb-1 NULL cc-2 NULL-14
-bb-1 NULL cc-2 NULL-13
-bb-1 NULL cc-2 NULL-12
-bb-1 NULL cc-2 NULL-11
-bb-1 NULL cc-2 NULL-10
-bb-1 NULL cc-2 NULL-9
-bb-1 NULL cc-2 NULL-8
-bb-1 NULL cc-2 NULL-7
-bb-1 NULL cc-2 NULL-6
-bb-1 NULL cc-2 NULL-5
-bb-1 NULL cc-2 NULL-4
-bb-1 NULL cc-2 NULL-3
-bb-1 NULL cc-2 NULL-2
-bb-1 NULL cc-2 NULL-1
-drop table t1, t2, t3, t4;
-create table t1 (a int, b int not null,unique key (a,b),index(b));
-insert ignore into t1 values (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(null,7),(9,9),(8,8),(7,7),(null,9),(null,9),(6,6);
-Warnings:
-Warning 1062 Duplicate entry '6-6' for key 'a'
-create table t2 like t1;
-insert into t2 select * from t1;
-alter table t1 modify b blob not null, add c int not null, drop key a, add unique key (a,b(20),c), drop key b, add key (b(10));
-select * from t1 where a is null;
-a b c
-NULL 7 0
-NULL 9 0
-NULL 9 0
-select * from t1 where (a is null or a > 0 and a < 3) and b > 7 limit 3;
-a b c
-NULL 9 0
-NULL 9 0
-select * from t1 where a is null and b=9 or a is null and b=7 limit 3;
-a b c
-NULL 7 0
-NULL 9 0
-NULL 9 0
-drop table t1, t2;
-set @@mrr_buffer_size= @mrr_buffer_size_save;
-CREATE TABLE t1 (
-ID int(10) unsigned NOT NULL AUTO_INCREMENT,
-col1 int(10) unsigned DEFAULT NULL,
-key1 int(10) unsigned NOT NULL DEFAULT '0',
-key2 int(10) unsigned DEFAULT NULL,
-text1 text,
-text2 text,
-col2 smallint(6) DEFAULT '100',
-col3 enum('headers','bodyandsubject') NOT NULL DEFAULT 'bodyandsubject',
-col4 tinyint(3) unsigned NOT NULL DEFAULT '0',
-PRIMARY KEY (ID),
-KEY (key1),
-KEY (key2)
-) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-INSERT INTO t1 VALUES
-(1,NULL,1130,NULL,'Hello',NULL,100,'bodyandsubject',0),
-(2,NULL,1130,NULL,'bye',NULL,100,'bodyandsubject',0),
-(3,NULL,1130,NULL,'red',NULL,100,'bodyandsubject',0),
-(4,NULL,1130,NULL,'yellow',NULL,100,'bodyandsubject',0),
-(5,NULL,1130,NULL,'blue',NULL,100,'bodyandsubject',0);
-select * FROM t1 WHERE key1=1130 AND col1 IS NULL ORDER BY text1;
-ID col1 key1 key2 text1 text2 col2 col3 col4
-5 NULL 1130 NULL blue NULL 100 bodyandsubject 0
-2 NULL 1130 NULL bye NULL 100 bodyandsubject 0
-1 NULL 1130 NULL Hello NULL 100 bodyandsubject 0
-3 NULL 1130 NULL red NULL 100 bodyandsubject 0
-4 NULL 1130 NULL yellow NULL 100 bodyandsubject 0
-drop table t1;
-
-BUG#37851: Crash in test_if_skip_sort_order tab->select is zero
-
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-int_key int(11) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY int_key (int_key)
-);
-INSERT INTO t2 VALUES (1,1),(2,6),(3,0);
-EXPLAIN EXTENDED
-SELECT MIN(t1.pk)
-FROM t1 WHERE EXISTS (
-SELECT t2.pk
-FROM t2
-WHERE t2.int_key IS NULL
-GROUP BY t2.pk
-);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t2 ref int_key int_key 5 const 1 100.00 Using index condition
-Warnings:
-Note 1003 /* select#1 */ select min(`test`.`t1`.`pk`) AS `MIN(t1.pk)` from `test`.`t1` where 0
-DROP TABLE t1, t2;
-#
-# BUG#42048 Discrepancy between MyISAM and Maria's ICP implementation
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b char(20), filler char(200), key(a,b(10)));
-insert into t1 select A.a + 10*(B.a + 10*C.a), 'bbb','filler' from t0 A, t0 B, t0 C;
-update t1 set b=repeat(char(65+a), 20) where a < 25;
-This must show range + using index condition:
-explain select * from t1 where a < 10 and b = repeat(char(65+a), 20);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 19 Using index condition; Using where
-select * from t1 where a < 10 and b = repeat(char(65+a), 20);
-a b filler
-0 AAAAAAAAAAAAAAAAAAAA filler
-1 BBBBBBBBBBBBBBBBBBBB filler
-2 CCCCCCCCCCCCCCCCCCCC filler
-3 DDDDDDDDDDDDDDDDDDDD filler
-4 EEEEEEEEEEEEEEEEEEEE filler
-5 FFFFFFFFFFFFFFFFFFFF filler
-6 GGGGGGGGGGGGGGGGGGGG filler
-7 HHHHHHHHHHHHHHHHHHHH filler
-8 IIIIIIIIIIIIIIIIIIII filler
-9 JJJJJJJJJJJJJJJJJJJJ filler
-drop table t0,t1;
-#
-# BUG#41136: ORDER BY + range access: EXPLAIN shows "Using MRR" while MRR is actually not used
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b int, key(a));
-insert into t1 select A.a + 10 *(B.a + 10*C.a), A.a + 10 *(B.a + 10*C.a) from t0 A, t0 B, t0 C;
-This mustn't show "Using MRR":
-explain select * from t1 where a < 20 order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 20 Using index condition
-drop table t0, t1;
-#
-# Part of MWL#67: DS-MRR backport: add an @@optimizer_switch flag for
-# index_condition pushdown:
-# - engine_condition_pushdown does not affect ICP
-select @@optimizer_switch like '%index_condition_pushdown=on%';
-@@optimizer_switch like '%index_condition_pushdown=on%'
-1
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b int, key(a));
-insert into t1 select A.a + 10 *(B.a + 10*C.a), A.a + 10 *(B.a + 10*C.a) from t0 A, t0 B, t0 C;
-A query that will use ICP:
-explain select * from t1 where a < 20;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 20 Using index condition; Rowid-ordered scan
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='index_condition_pushdown=off';
-explain select * from t1 where a < 20;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 20 Using where; Rowid-ordered scan
-set optimizer_switch='index_condition_pushdown=on';
-explain select * from t1 where a < 20;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 20 Using index condition; Rowid-ordered scan
-set optimizer_switch=@save_optimizer_switch;
-#
-# BUG#629684: Unreachable code in multi_range_read.cc in maria-5.3-dsmrr-cpk
-#
-delete from t0 where a > 2;
-insert into t0 values (NULL),(NULL);
-insert into t1 values (NULL, 1234), (NULL, 5678);
-set @save_join_cache_level=@@join_cache_level;
-set @@join_cache_level=6;
-explain
-select * from t0, t1 where t0.a<=>t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 5
-1 SIMPLE t1 ref a a 5 test.t0.a 1 Using index condition(BKA); Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-select * from t0, t1 where t0.a<=>t1.a;
-a a b
-0 0 0
-1 1 1
-2 2 2
-NULL NULL 1234
-NULL NULL 1234
-NULL NULL 5678
-NULL NULL 5678
-set @@join_cache_level=@save_join_cache_level;
-drop table t0, t1;
-#
-# BUG#625841: Assertion `!table || (!table->read_set || bitmap_is_set
-# (table->read_set, field_index))' on REPLACE ... SELECT with MRR
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (
-key1 varchar(10),
-col1 char(255), col2 char(255),
-col3 char(244), col4 char(255),
-key(key1)
-);
-create table t2 like t1;
-insert into t1
-select
-1000+A.a+100*B.a + 10*C.a,
-'col1val', 'col2val',
-'col3val', 'col4val'
-from t0 A, t0 B, t0 C;
-REPLACE INTO t2(col2,col3,col4)
-SELECT col2,col3,col4
-FROM t1
-WHERE `key1` LIKE CONCAT( LEFT( '1' , 7 ) , '%' )
-ORDER BY col1 LIMIT 7;
-drop table t0, t1, t2;
-#
-# BUG#670417: Diverging results in maria-5.3-mwl128-dsmrr-cpk with join buffer (incremental, BKA join)
-#
-set @save_join_cache_level = @@join_cache_level;
-set join_cache_level = 6;
-set @save_join_buffer_size=@@join_buffer_size;
-set join_buffer_size = 136;
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_int_key int(11) NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-);
-INSERT INTO t1 VALUES
-(10,8,'v','v'),(11,8,'f','f'), (12,5,'v','v'),
-(13,8,'s','s'),(14,8,'a','a'),(15,6,'p','p'),
-(16,7,'z','z'),(17,2,'a','a'),(18,5,'h','h'),
-(19,7,'h','h'),(20,2,'v','v'),(21,9,'v','v'),
-(22,142,'b','b'),(23,3,'y','y'),(24,0,'v','v'),
-(25,3,'m','m'),(26,5,'z','z'),(27,9,'n','n'),
-(28,1,'d','d'),(29,107,'a','a');
-INSERT INTO t1 VALUES
-(110,8,'v','v'),(111,8,'f','f'), (112,5,'v','v'),
-(113,8,'s','s'),(114,8,'a','a'),(115,6,'p','p'),
-(116,7,'z','z'),(117,2,'a','a'),(118,5,'h','h'),
-(119,7,'h','h'),(120,2,'v','v'),(121,9,'v','v'),
-(122,142,'b','b'),(123,3,'y','y'),(124,0,'v','v'),
-(125,3,'m','m'),(126,5,'z','z'),(127,9,'n','n'),
-(128,1,'d','d'),(129,107,'a','a');
-SELECT COUNT(*)
-FROM
-t1 AS table2, t1 AS table3
-where
-table3.col_varchar_key = table2.col_varchar_key AND
-table3.col_varchar_key = table2.col_varchar_nokey AND
-table3.pk<>0;
-COUNT(*)
-200
-EXPLAIN SELECT COUNT(*)
-FROM
-t1 AS table2, t1 AS table3
-where
-table3.col_varchar_key = table2.col_varchar_key AND
-table3.col_varchar_key = table2.col_varchar_nokey AND
-table3.pk<>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE table2 ALL col_varchar_key NULL NULL NULL 40 Using where
-1 SIMPLE table3 ref PRIMARY,col_varchar_key col_varchar_key 3 test.table2.col_varchar_key 5 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-set join_cache_level= @save_join_cache_level;
-set join_buffer_size= @save_join_buffer_size;
-drop table t1;
-#
-# BUG#730133: Wrong result with jkl = 7, BKA, ICP in maria-5.3 + compound index
-#
-set @tmp_730133_jcl= @@join_cache_level;
-set join_cache_level = 7;
-set @tmp_730133_os= @@optimizer_switch;
-set optimizer_switch= 'join_cache_hashed=off,join_cache_bka=on,index_condition_pushdown=on,optimize_join_buffer_size=on';
-CREATE TABLE t1 (f1 int, f2 int, f3 int, f4 int, f5 int, KEY (f4,f3));
-INSERT IGNORE INTO t1 VALUES ('2','9','5','0','0'),('4','7','0','0','0'),
-('6','97','190','0','0'),('7','3','6','0','0'),('11','101','186','0','0'),
-('14','194','226','0','0'),('15','148','133','0','0'),
-('16','9','6','0','0'),('17','9','3','0','0'),('18','1','8','0','0'),
-('19','1','5','0','0'),('20','5','7','0','0');
-explain
-SELECT COUNT(alias2.f2)
-FROM
-t1 STRAIGHT_JOIN
-t1 AS alias3 STRAIGHT_JOIN
-t1 AS alias2 FORCE KEY (f4)
-WHERE
-alias2.f4=alias3.f5 AND
-alias2.f3 > alias3.f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL f4 10 NULL 12 Using index
-1 SIMPLE alias3 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE alias2 ref f4 f4 5 test.alias3.f5 2 Using index condition(BKA); Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-SELECT COUNT(alias2.f2)
-FROM
-t1 STRAIGHT_JOIN
-t1 AS alias3 STRAIGHT_JOIN
-t1 AS alias2 FORCE KEY (f4)
-WHERE
-alias2.f4=alias3.f5 AND
-alias2.f3 > alias3.f1;
-COUNT(alias2.f2)
-768
-set @@join_cache_level= @tmp_730133_jcl;
-set @@optimizer_switch= @tmp_730133_os;
-drop table t1;
-#
-# Test of MRR handler counters
-#
-flush status;
-show status like 'Handler_mrr%';
-Variable_name Value
-Handler_mrr_init 0
-Handler_mrr_key_refills 0
-Handler_mrr_rowid_refills 0
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b int, filler char(200), key(a));
-insert into t1
-select A.a+10*B.a+100*C.a+1000*D.a, 123,'filler' from t0 A, t0 B, t0 C, t0 D;
-explain select sum(b) from t1 where a < 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 8 Using index condition; Rowid-ordered scan
-# This should show one MRR scan and no re-fills:
-flush status;
-select sum(b) from t1 where a < 10;
-sum(b)
-1230
-show status like 'handler_mrr%';
-Variable_name Value
-Handler_mrr_init 1
-Handler_mrr_key_refills 0
-Handler_mrr_rowid_refills 0
-set @mrr_buffer_size_save= @@mrr_buffer_size;
-set mrr_buffer_size=128;
-explain select sum(b) from t1 where a < 1600;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 1380 Using index condition; Rowid-ordered scan
-# This should show one MRR scan and one extra rowid sort:
-flush status;
-select sum(b) from t1 where a < 1600;
-sum(b)
-196800
-show status like 'handler_mrr%';
-Variable_name Value
-Handler_mrr_init 1
-Handler_mrr_key_refills 0
-Handler_mrr_rowid_refills 1
-set @@mrr_buffer_size= @mrr_buffer_size_save;
-#Now, let's check BKA:
-set @join_cache_level_save= @@join_cache_level;
-set @join_buffer_size_save= @@join_buffer_size;
-set join_cache_level=6;
-explain select sum(t1.b) from t0,t1 where t0.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-1 SIMPLE t1 ref a a 5 test.t0.a 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-flush status;
-select sum(t1.b) from t0,t1 where t0.a=t1.a;
-sum(t1.b)
-1230
-show status like 'handler_mrr%';
-Variable_name Value
-Handler_mrr_init 1
-Handler_mrr_key_refills 0
-Handler_mrr_rowid_refills 0
-set join_buffer_size=10;
-explain select sum(t1.b) from t0,t1 where t0.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-1 SIMPLE t1 ref a a 5 test.t0.a 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-flush status;
-select sum(t1.b) from t0,t1 where t0.a=t1.a;
-sum(t1.b)
-1230
-show status like 'handler_mrr%';
-Variable_name Value
-Handler_mrr_init ok
-Handler_mrr_key_refills ok
-Handler_mrr_rowid_refills ok
-set join_cache_level= @join_cache_level_save;
-set join_buffer_size= @join_buffer_size_save;
-drop table t0, t1;
-set optimizer_switch= @myisam_mrr_tmp;
diff --git a/mysql-test/r/myisam_optimize.result b/mysql-test/r/myisam_optimize.result
deleted file mode 100644
index f71d524fadb..00000000000
--- a/mysql-test/r/myisam_optimize.result
+++ /dev/null
@@ -1,45 +0,0 @@
-call mtr.add_suppression(" marked as crashed and should be repaired");
-create table t1 (a int auto_increment primary key, b text);
-insert t1 (b) select repeat("A", 100);
-insert t1 (b) select repeat("B", 200) from t1;
-insert t1 (b) select repeat("C", 300) from t1;
-delete from t1 where a < 3;
-explain select a, left(b,10) from t1 order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using filesort
-select left(b,10), a from t1 order by a;
-left(b,10) a
-CCCCCCCCCC 3
-CCCCCCCCCC 4
-set debug_sync='myisam_before_repair_by_sort wait_for go';
-optimize table t1;
-connect con1,localhost,root,,;
-select a, left(b,10) from t1 order by a;
-connect con2,localhost,root,,;
-set debug_sync='now signal go';
-connection default;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-connection con1;
-a left(b,10)
-3 CCCCCCCCCC
-4 CCCCCCCCCC
-disconnect con1;
-disconnect con2;
-connection default;
-drop table t1;
-set debug_sync='reset';
-# End of 5.5 tests
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT t1 VALUES (1);
-LOCK TABLE t1 WRITE;
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-SELECT * FROM INFORMATION_SCHEMA.TABLES;
-SELECT * FROM t1;
-i
-1
-UNLOCK TABLES;
-DROP TABLE t1;
-# End of 10.0 tests
diff --git a/mysql-test/r/myisam_recover.result b/mysql-test/r/myisam_recover.result
deleted file mode 100644
index 12184ad0ca6..00000000000
--- a/mysql-test/r/myisam_recover.result
+++ /dev/null
@@ -1,154 +0,0 @@
-call mtr.add_suppression("Table 't1' is marked as crashed and should be repaired");
-#
-# Tests for corrupted MyISAM tables and MyISAMMRG tables with corrupted
-# children..
-#
-# Run with --myisam-recover=force option.
-#
-# Preparation: we need to make sure that the merge parent
-# is never left in the table cache when closed, since this may
-# have effect on merge children.
-# For that, we set the table cache to minimal size and populate it
-# in a concurrent connection.
-connect con1,localhost,root,,test,,;
-connection con1;
-#
-# Minimal values.
-#
-call mtr.add_suppression("Got an error from thread_id=.*ha_myisam.cc:");
-call mtr.add_suppression("MySQL thread id .*, query id .* localhost.*root Checking table");
-call mtr.add_suppression(" '\..test.t1'");
-set global table_open_cache=256;
-set global table_definition_cache=400;
-drop procedure if exists p_create;
-create procedure p_create()
-begin
-declare i int default 1;
-set @lock_table_stmt="lock table ";
-set @drop_table_stmt="drop table ";
-while i < @@global.table_definition_cache + 1 do
-set @table_name=concat("t_", i);
-set @opt_comma=if(i=1, "", ", ");
-set @lock_table_stmt=concat(@lock_table_stmt, @opt_comma,
-@table_name, " read");
-set @drop_table_stmt=concat(@drop_table_stmt, @opt_comma, @table_name);
-set @create_table_stmt=concat("create table if not exists ",
-@table_name, " (a int)");
-prepare stmt from @create_table_stmt;
-execute stmt;
-deallocate prepare stmt;
-set i= i+1;
-end while;
-end|
-call p_create();
-drop procedure p_create;
-connection default;
-#
-# We have to disable the ps-protocol, to avoid
-# "Prepared statement needs to be re-prepared" errors
-# -- table def versions change all the time with full table cache.
-#
-drop table if exists t1, t1_mrg, t1_copy;
-#
-# Prepare a MERGE engine table, that refers to a corrupted
-# child.
-#
-create table t1 (a int, key(a)) engine=myisam;
-create table t1_mrg (a int) union (t1) engine=merge;
-#
-# Create a table with a corrupted index file:
-# save an old index file, insert more rows,
-# overwrite the new index file with the old one.
-#
-insert into t1 (a) values (1), (2), (3);
-flush table t1;
-insert into t1 (a) values (4), (5), (6);
-flush table t1;
-# check table is needed to mark the table as crashed.
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check warning Size of datafile is: 42 Should be: 21
-test.t1 check error Record-count is not ok; is 6 Should be: 3
-test.t1 check warning Found 6 key parts. Should be: 3
-test.t1 check error Corrupt
-#
-# At this point we have a merge table t1_mrg pointing to t1,
-# and t1 is corrupted, and will be auto-repaired at open.
-# Check that this doesn't lead to memory corruption.
-#
-select * from t1_mrg;
-a
-1
-2
-3
-4
-5
-6
-Warnings:
-Error 145 Table 't1' is marked as crashed and should be repaired
-Error 1194 Table 't1' is marked as crashed and should be repaired
-Error 1034 Number of rows changed from 3 to 6
-#
-# Cleanup
-#
-drop table t1, t1_mrg;
-connection con1;
-unlock tables;
-prepare stmt from @drop_table_stmt;
-execute stmt;
-deallocate prepare stmt;
-set @@global.table_definition_cache=default;
-set @@global.table_open_cache=default;
-disconnect con1;
-connection default;
-#
-# 18075170 - sql node restart required to avoid deadlock after
-# restore
-#
-# Check that auto-repair for MyISAM tables can now happen in the
-# middle of transaction, without aborting it.
-connection default;
-create table t1 (a int, key(a)) engine=myisam;
-create table t2 (a int);
-insert into t2 values (1);
-# Create a table with a corrupted index file:
-# save an old index file, insert more rows,
-# overwrite the new index file with the old one.
-insert into t1 (a) values (1);
-flush table t1;
-insert into t1 (a) values (4);
-flush table t1;
-# Check table is needed to mark the table as crashed.
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check warning Size of datafile is: 14 Should be: 7
-test.t1 check error Record-count is not ok; is 2 Should be: 1
-test.t1 check warning Found 2 key parts. Should be: 1
-test.t1 check error Corrupt
-# At this point we have a corrupt t1
-set autocommit = 0;
-select * from t2;
-a
-1
-# Without fix select from t1 will break the transaction. After the fix
-# transaction should be active and should hold lock on table t2. Alter
-# table from con2 will wait only if the transaction is not broken.
-select * from t1;
-a
-1
-4
-Warnings:
-Error 145 Table 't1' is marked as crashed and should be repaired
-Error 1194 Table 't1' is marked as crashed and should be repaired
-Error 1034 Number of rows changed from 1 to 2
-connect con2, localhost, root;
-ALTER TABLE t2 ADD val INT;
-connection default;
-# With fix we should have alter table waiting for t2 lock here.
-ROLLBACK;
-SET autocommit = 1;
-connection con2;
-connection default;
-disconnect con2;
-# Cleanup
-drop table t1, t2;
diff --git a/mysql-test/r/myisampack.result b/mysql-test/r/myisampack.result
deleted file mode 100644
index 13321695360..00000000000
--- a/mysql-test/r/myisampack.result
+++ /dev/null
@@ -1,213 +0,0 @@
-DROP TABLE IF EXISTS t1,t2,t3;
-CREATE TABLE t1(c1 DOUBLE, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 DOUBLE,
-c6 DOUBLE, c7 DOUBLE, c8 DOUBLE, c9 DOUBLE, a INT PRIMARY KEY);
-INSERT INTO t1 VALUES
-(-3.31168791059336e-06,-3.19054655887874e-06,-1.06528081684847e-05,-1.227278240089e-06,-1.66718069164799e-06,-2.59038972510885e-06,-2.83145227805303e-06,-4.09678491270648e-07,-2.22610091291797e-06,6),
-(0.0030743000272545,2.53222044316438e-05,2.78674650061845e-05,1.95914465544536e-05,1.7347572525984e-05,1.87513810069614e-05,1.69882826885005e-05,2.44449336987598e-05,1.89914629921774e-05,9),
-(2.85229319423495e-05,3.05970988282259e-05,3.77161100113133e-05,2.3055238978766e-05,2.08241267364615e-05,2.28009504270553e-05,2.12070165658947e-05,2.84350091565409e-05,2.3366822910704e-05,3),
-(0,0,0,0,0,0,0,0,0,12),
-(3.24544577570754e-05,3.44619021870993e-05,4.37561613201124e-05,2.57556808726748e-05,2.3195354640561e-05,2.58532400758869e-05,2.34934241667179e-05,3.1621640063232e-05,2.58229982746189e-05,19),
-(2.53222044316438e-05,0.00445071933455582,2.97447268116016e-05,2.12379514059868e-05,1.86777776502663e-05,2.0170058676712e-05,1.8946030385445e-05,2.66040037173511e-05,2.09161899668946e-05,20),
-(3.03462382611645e-05,3.26517930083994e-05,3.5242025468662e-05,2.53219745106391e-05,2.24384532945004e-05,2.4052346047657e-05,2.23865572957053e-05,3.1634313969082e-05,2.48285463481801e-05,21),
-(1.95914465544536e-05,2.12379514059868e-05,2.27808649037128e-05,0.000341724375366877,1.4512761275113e-05,1.56475828693953e-05,1.44372366441415e-05,2.07952121981765e-05,1.61488256935919e-05,28),
-(1.7347572525984e-05,1.86777776502663e-05,2.04116907052727e-05,1.4512761275113e-05,0.000432162526082388,1.38116514014465e-05,1.2712914948904e-05,1.82503165178506e-05,1.43043075345922e-05,30),
-(1.68339762136661e-05,1.77836497166611e-05,2.36328309295222e-05,1.30183423732016e-05,1.18674654241553e-05,1.32467273128652e-05,1.24581739117775e-05,1.55624190959406e-05,1.33010638508213e-05,31),
-(1.89643062824415e-05,2.06997140070717e-05,2.29045490159364e-05,1.57918175731019e-05,1.39864987449492e-05,1.50580274578455e-05,1.45908734129609e-05,1.95329296993327e-05,1.5814709481221e-05,32),
-(1.69882826885005e-05,1.8946030385445e-05,2.00820439721439e-05,1.44372366441415e-05,1.2712914948904e-05,1.35209686474184e-05,0.00261563314789896,1.78285095864627e-05,1.46699314500019e-05,34),
-(2.0278186540684e-05,2.18923409729654e-05,2.39981539939738e-05,1.71774589459438e-05,1.54654355357383e-05,1.62731485707636e-05,1.49253140625051e-05,2.18229800160297e-05,1.71923561673718e-05,35),
-(2.44449336987598e-05,2.66040037173511e-05,2.84860148925308e-05,2.07952121981765e-05,1.82503165178506e-05,1.97667730441441e-05,1.78285095864627e-05,0.00166478601822712,2.0299952103232e-05,36),
-(1.89914629921774e-05,2.09161899668946e-05,2.26026841007872e-05,1.61488256935919e-05,1.43043075345922e-05,1.52609063290127e-05,1.46699314500019e-05,2.0299952103232e-05,0.00306670170971682,39),
-(0,0,0,0,0,0,0,0,0,41),
-(0,0,0,0,0,0,0,0,0,17),
-(0,0,0,0,0,0,0,0,0,18),
-(2.51880677333017e-05,2.63051795435778e-05,2.79874748974906e-05,2.02888886670845e-05,1.8178636318197e-05,1.91308527003585e-05,1.83260023644133e-05,2.4422300558171e-05,1.96411467520551e-05,44),
-(2.22402118719591e-05,2.37546284320705e-05,2.58463051055541e-05,1.83391609130854e-05,1.6300720519646e-05,1.74559091886791e-05,1.63733785575587e-05,2.26616253279828e-05,1.79541237435621e-05,45),
-(3.01092775359837e-05,3.23865212934412e-05,4.09444584045994e-05,0,2.15470966302776e-05,2.39082636344032e-05,2.28296706429177e-05,2.9007671511595e-05,2.44201138973326e-05,46);
-FLUSH TABLES;
-CHECK TABLE t1 EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-drop table if exists t1;
-create table t1(f1 int, f2 char(255));
-insert into t1 values(1, 'foo'), (2, 'bar');
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-flush tables;
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize Error Table 't1' is read only
-test.t1 optimize status Operation failed
-repair table t1;
-Table Op Msg_type Msg_text
-test.t1 repair Error Table 't1' is read only
-test.t1 repair status Operation failed
-drop table t1;
-#
-# BUG#41541 - Valgrind warnings on packed MyISAM table
-#
-CREATE TABLE t1(f1 VARCHAR(200), f2 TEXT);
-INSERT INTO t1 VALUES ('foo', 'foo1'), ('bar', 'bar1');
-FLUSH TABLE t1;
-# Compress the table using MYISAMPACK tool
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-1024
-DROP TABLE t1;
-#
-# Bug #43973 - backup_myisam.test fails on 6.0-bugteam
-#
-CREATE DATABASE mysql_db1;
-CREATE TABLE mysql_db1.t1 (c1 VARCHAR(5), c2 int);
-CREATE INDEX i1 ON mysql_db1.t1 (c1, c2);
-INSERT INTO mysql_db1.t1 VALUES ('A',1);
-INSERT INTO mysql_db1.t1 SELECT * FROM mysql_db1.t1;
-INSERT INTO mysql_db1.t1 SELECT * FROM mysql_db1.t1;
-INSERT INTO mysql_db1.t1 SELECT * FROM mysql_db1.t1;
-INSERT INTO mysql_db1.t1 SELECT * FROM mysql_db1.t1;
-INSERT INTO mysql_db1.t1 SELECT * FROM mysql_db1.t1;
-INSERT INTO mysql_db1.t1 SELECT * FROM mysql_db1.t1;
-INSERT INTO mysql_db1.t1 SELECT * FROM mysql_db1.t1;
-FLUSH TABLE mysql_db1.t1;
-# Compress the table using MYISAMPACK tool
-# Run MYISAMCHK tool on the compressed table
-SELECT COUNT(*) FROM mysql_db1.t1 WHERE c2 < 5;
-COUNT(*)
-128
-# ===== myisampack.1 =====
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES(20);
-CREATE TABLE t2(a INT);
-INSERT INTO t2 VALUES(40);
-FLUSH TABLE t1,t2;
-#If the myisampack --join operation is successful, we have table t3(.frm)
-#so we should be able to query about the table from server.
-SELECT COUNT(a) FROM t3;
-COUNT(a)
-1024
-# ===== myisampack.2 =====
-FLUSH TABLE t3;
-#Tests the myisampack join operation with an existing destination .frm file,
-#the command should return correct exit status(0) and
-#we should be able to query the table.
-SELECT COUNT(a) FROM t3;
-COUNT(a)
-1024
-# ===== myisampack.3 =====
-DROP TABLE t3;
-#Tests the myisampack join operation without frm file for the first and second table
-#No frm file is generated in this and we shouldn't be able to access the newly
-#created table
-SELECT COUNT(a) FROM t3;
-ERROR 42S02: Table 'test.t3' doesn't exist
-# ===== myisampack.4 =====
-#Tests the myisampack join operation with an existing destination .frm,.MYI,.MDI
-#the command should fail with exit status 2
-myisampack: Can't create/write to file (Errcode: 17 "File exists")
-Aborted: file is not compressed
-DROP TABLE t1,t2,t3;
-DROP TABLE mysql_db1.t1;
-DROP DATABASE mysql_db1;
-#
-# BUG#11761180 - 53646: MYISAMPACK CORRUPTS TABLES WITH FULLTEXT INDEXES
-#
-CREATE TABLE t1(a CHAR(4), FULLTEXT(a));
-INSERT INTO t1 VALUES('aaaa'),('bbbb'),('cccc');
-FLUSH TABLE t1;
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-SELECT * FROM t1 WHERE MATCH(a) AGAINST('aaaa' IN BOOLEAN MODE);
-a
-aaaa
-SELECT * FROM t1 WHERE MATCH(a) AGAINST('aaaa');
-a
-aaaa
-DROP TABLE t1;
-# Test table with key_reflength > rec_reflength
-CREATE TABLE t1(a CHAR(30), FULLTEXT(a));
-# Populating a table, so it's index file exceeds 65K
-# Populating a table, so index file has second level fulltext tree
-FLUSH TABLE t1;
-# Compressing table
-# Fixing index (repair by sort)
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-FLUSH TABLE t1;
-# Fixing index (repair with keycache)
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
-create table `t1` (`id` varchar(15) DEFAULT NULL) ENGINE=MyISAM ROW_FORMAT=FIXED;
-insert into t1 values ('aaa'),('bbb'),('ccc'),('ddd'),('eee');
-insert into t1 (select * from t1);
-insert into t1 (select * from t1);
-insert into t1 (select * from t1);
-insert into t1 (select * from t1);
-checksum table t1;
-Table Checksum
-test.t1 2696656816
-insert into t1 values(NULL);
-checksum table t1;
-Table Checksum
-test.t1 2679879600
-flush table t1;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-checksum table t1;
-Table Checksum
-test.t1 2679879600
-alter table t1 checksum=1 row_format=fixed;
-checksum table t1;
-Table Checksum
-test.t1 2679879600
-flush table t1;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-checksum table t1;
-Table Checksum
-test.t1 2679879600
-alter table t1 row_format=dynamic checksum=0;
-checksum table t1;
-Table Checksum
-test.t1 2330021136
-flush table t1;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-checksum table t1;
-Table Checksum
-test.t1 2330021136
-alter table t1 checksum=1 row_format=dynamic;
-checksum table t1;
-Table Checksum
-test.t1 2330021136
-flush table t1;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-checksum table t1;
-Table Checksum
-test.t1 2330021136
-drop table t1;
-#
-# BUG#11751736: DROP DATABASE STATEMENT SHOULD REMOVE .OLD SUFFIX FROM
-# DATABASE DIRECTORY
-#
-CREATE DATABASE db1;
-CREATE TABLE db1.t1(c1 INT) ENGINE=MyISAM;
-DROP DATABASE db1;
diff --git a/mysql-test/r/mysql-bug41486.result b/mysql-test/r/mysql-bug41486.result
deleted file mode 100644
index d5760dcb1b9..00000000000
--- a/mysql-test/r/mysql-bug41486.result
+++ /dev/null
@@ -1,19 +0,0 @@
-DROP TABLE IF EXISTS t1;
-SET @old_max_allowed_packet= @@global.max_allowed_packet;
-SET @@global.max_allowed_packet = 2 * 1024 * 1024 + 1024;
-connect con1, localhost, root,,;
-CREATE TABLE t1(data LONGBLOB);
-INSERT INTO t1 SELECT REPEAT('1', 2*1024*1024);
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-1
-SET @old_general_log = @@global.general_log;
-SET @@global.general_log = 0;
-SET @@global.general_log = @old_general_log;
-SELECT LENGTH(data) FROM t1;
-LENGTH(data)
-2097152
-DROP TABLE t1;
-disconnect con1;
-connection default;
-SET @@global.max_allowed_packet = @old_max_allowed_packet;
diff --git a/mysql-test/r/mysql-bug45236.result b/mysql-test/r/mysql-bug45236.result
deleted file mode 100644
index c1e41d62b63..00000000000
--- a/mysql-test/r/mysql-bug45236.result
+++ /dev/null
@@ -1,11 +0,0 @@
-DROP TABLE IF EXISTS t1;
-SET @old_max_allowed_packet= @@global.max_allowed_packet;
-SET @@global.max_allowed_packet = 1024 * 1024 + 1024;
-connect con1, localhost, root,,;
-CREATE TABLE t1(data LONGBLOB);
-INSERT INTO t1 SELECT CONCAT(REPEAT('1', 1024*1024 - 27),
-"\'\r dummydb dummyhost");
-DROP TABLE t1;
-disconnect con1;
-connection default;
-SET @@global.max_allowed_packet = @old_max_allowed_packet;
diff --git a/mysql-test/r/mysql.result b/mysql-test/r/mysql.result
deleted file mode 100644
index 09f014da627..00000000000
--- a/mysql-test/r/mysql.result
+++ /dev/null
@@ -1,604 +0,0 @@
-set GLOBAL sql_mode="";
-set LOCAL sql_mode="";
-drop table if exists t1,t2,t3;
-create table t1(a int);
-insert into t1 values(1);
-ERROR at line 9: DELIMITER must be followed by a 'delimiter' character or string
-
-Test default delimiter ;
-a
-1
-
-Test delimiter without arg
-
-Test delimiter :
-a
-1
-
-Test delimiter :
-a
-1
-
-Test delimiter :;
-a
-1
-
-Test delimiter //
-a
-1
-
-Test delimiter MySQL
-a
-1
-
-Test delimiter delimiter
-a
-1
-Tables_in_test
-t1
-t2
-t3
-Tables_in_test
-t1
-_
-Test delimiter : from command line
-a
-1
-_
-Test delimiter :; from command line
-a
-1
-_
-Test 'go' command(vertical output) G
-*************************** 1. row ***************************
-a: 1
-_
-Test 'go' command g
-a
-1
-drop table t1;
-create table t1(a int);
-lock tables t1 write;
-database()
-test
-unlock tables;
-drop table t1;
-+----------------------+------------+--------+
-| concat('>',col1,'<') | col2 | col3 |
-+----------------------+------------+--------+
-| >a < | b | 123421 |
-| >a < | 0123456789 | 4 |
-| >abcd< | | 4 |
-+----------------------+------------+--------+
-+-------------------+
-| __tañgè Ñãmé |
-+-------------------+
-| John Doe |
-+-------------------+
-+-------------------+
-| John Doe |
-+-------------------+
-| __tañgè Ñãmé |
-+-------------------+
-+------+------+---------------------------+
-| i | j | k |
-+------+------+---------------------------+
-| 1 | NULL | NULL |
-| NULL | NULL | <-----------------------> |
-| NULL | NULL | <----- |
-| NULL | NULL | Τη γλώσσα |
-| NULL | NULL | á›–áš´ áš·á›–á› |
-+------+------+---------------------------+
-i j k
-NULL 1 NULL
-Field Type Null Key Default Extra
-i int(11) YES NULL
-j int(11) NO NULL
-k int(11) YES NULL
-+------+---+------+
-| i | j | k |
-+------+---+------+
-| NULL | 1 | NULL |
-+------+---+------+
-+-------+---------+------+-----+---------+-------+
-| Field | Type | Null | Key | Default | Extra |
-+-------+---------+------+-----+---------+-------+
-| i | int(11) | YES | | NULL | |
-| j | int(11) | NO | | NULL | |
-| k | int(11) | YES | | NULL | |
-+-------+---------+------+-----+---------+-------+
-i s1
-1 x
-2 NULL
-3
-+------+------+
-| i | s1 |
-+------+------+
-| 1 | x |
-| 2 | NULL |
-| 3 | |
-+------+------+
-unhex('zz')
-NULL
-+-------------+
-| unhex('zz') |
-+-------------+
-| NULL |
-+-------------+
-create table t1(a int, b varchar(255), c int);
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b varchar(255) YES NULL
-c int(11) YES NULL
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b varchar(255) YES NULL
-c int(11) YES NULL
-drop table t1;
-1
-1
-ERROR 1064 (42000) at line 3: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-ERROR at line 1: USE must be followed by a database name
-1 +1
-2
-1 +1
-2
-1 +1
-2
-1 +1
-2
-\
-\\
-';
-';
-create table t17583 (a int);
-insert into t17583 (a) values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t17583 select a from t17583;
-insert into t17583 select a from t17583;
-insert into t17583 select a from t17583;
-insert into t17583 select a from t17583;
-insert into t17583 select a from t17583;
-insert into t17583 select a from t17583;
-insert into t17583 select a from t17583;
-select count(*) from t17583;
-count(*)
-1280
-drop table t17583;
-Test connect without db- or host-name => reconnect
-Test connect with dbname only => new dbname, old hostname
-ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'connecttest' at line 1
-Test connect with _invalid_ dbname only => new invalid dbname, old hostname
-ERROR 1049 (42000) at line 1: Unknown database 'invalid'
-ERROR 1049 (42000) at line 1: Unknown database 'invalid'
-Test connect with dbname + hostname
-Test connect with dbname + _invalid_ hostname
-ERROR 2005 (HY000) at line 1: Unknown MySQL server host 'invalid_hostname' (errno)
-ERROR 2005 (HY000) at line 1: Unknown MySQL server host 'invalid_hostname' (errno)
-The commands reported in the bug report
-ERROR 2005 (HY000) at line 1: Unknown MySQL server host 'cyril has found a bug :)XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' (errno)
-Too long dbname
-ERROR 1102 (42000) at line 1: Incorrect database name 'test_really_long_dbnamexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
-Too long hostname
-ERROR 2005 (HY000) at line 1: Unknown MySQL server host 'cyrils_superlonghostnameXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' (errno)
-1
-1
-ERROR at line 1: DELIMITER cannot contain a backslash character
-ERROR at line 1: DELIMITER cannot contain a backslash character
-1
-1
-1
-1
-This is a file starting with UTF8 BOM 0xEFBBBF
-This is a file starting with UTF8 BOM 0xEFBBBF
-delimiter
-1
-2
-2
-2
-2
-@z:='1' @z=database()
-1 NULL
-1
-1
-1
-1
-COUNT (*)
-1
-COUNT (*)
-1
-COUNT (*)
-1
-ERROR 2005 (HY000) at line 1: Unknown MySQL server host 'invalid_hostname' (errno)
-End of 5.0 tests
-WARNING: --server-arg option not supported in this configuration.
-*************************** 1. row ***************************
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-1: 1
-2: 2
-3: 3
-4: 4
-5: 5
-6: 6
-7: 7
-8: 8
-9: 9
-0: 0
-+---+
-| 1 |
-+---+
-| 1 |
-+---+
-Warning (Code 1286): Unknown storage engine 'nonexistent'
-Warning (Code 1266): Using storage engine MyISAM for table 't2'
-Warning (Code 1286): Unknown storage engine 'nonexistent2'
-Warning (Code 1266): Using storage engine MyISAM for table 't2'
-Error (Code 1050): Table 't2' already exists
-drop tables t1, t2;
-Variable_name Value
-lc_messages ru_RU
-<TABLE BORDER=1><TR><TH>&lt;</TH></TR><TR><TD>&lt; &amp; &gt;</TD></TR></TABLE>create table t1 (a char(5));
-insert into t1 values ('\0b\0');
-a
-\0b\0
-a
-\0b\0
-+------+
-| a |
-+------+
-| b |
-+------+
-*************************** 1. row ***************************
-a: b
-<TABLE BORDER=1><TR><TH>a</TH></TR><TR><TD> b </TD></TR></TABLE><?xml version="1.0"?>
-
-<resultset statement="select a from t1
-" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <row>
- <field name="a"> b </field>
- </row>
-</resultset>
-drop table t1;
-
-Bug #47147: mysql client option --skip-column-names does not apply to vertical output
-
-*************************** 1. row ***************************
-1
-
-#
-# Bug #54899: --one-database option cannot handle DROP/CREATE DATABASE
-# commands.
-#
-CREATE DATABASE connected_db;
-USE connected_db;
-SHOW TABLES;
-Tables_in_connected_db
-table_in_connected_db
-DROP DATABASE connected_db;
-
-#
-# Testing --one-database option
-#
-CREATE DATABASE connected_db;
-SHOW TABLES IN connected_db;
-Tables_in_connected_db
-t1
-SHOW TABLES IN test;
-Tables_in_test
-t1
-USE test;
-DROP TABLE t1;
-DROP DATABASE connected_db;
-
-SHOW TABLES IN test;
-Tables_in_test
-SHOW TABLES IN test1;
-Tables_in_test1
-DROP DATABASE test1;
-
-#
-# Checking --one-database option followed by the execution of
-# connect command.
-#
-CREATE DATABASE connected_db;
-SHOW TABLES IN connected_db;
-Tables_in_connected_db
-t1
-t2
-SHOW TABLES IN test;
-Tables_in_test
-t1
-t2
-DROP TABLE test.t1;
-DROP TABLE test.t2;
-DROP DATABASE connected_db;
-
-#
-# Checking --one-database option with no database specified
-# at command-line.
-#
-SHOW TABLES IN test;
-Tables_in_test
-
-#
-# Checking --one-database option with non_existent_db
-# specified with USE command
-#
-CREATE DATABASE connected_db;
-SHOW TABLES IN connected_db;
-Tables_in_connected_db
-table_in_connected_db
-
-SHOW TABLES IN connected_db;
-Tables_in_connected_db
-table_in_connected_db
-DROP DATABASE connected_db;
-create database `aa``bb````cc`;
-DATABASE()
-aa`bb``cc
-DATABASE()
-test
-DATABASE()
-aa`bb``cc
-DATABASE()
-test
-DATABASE()
-aa`bb``cc
-drop database `aa``bb````cc`;
-a
->>\ndelimiter\n<<
-+-------------------+
-| a |
-| aaaaaaaaaaaaaaaaa |
-+-------------------+
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-6572 "USE dbname" with a bad sequence erroneously connects to a wrong database
-#
-#
-# End of 10.1 tests
-#
-ERROR 1300 (HY000): Invalid utf8 character string: 'test\xF0\x9F\x98\x81 '
-ERROR 1300 (HY000): Invalid binary character string: 'test\xF0\x9F\x98\x81 '
-ERROR 1300 (HY000) at line 2: Invalid utf8 character string: 'test\xF0\x9F\x98\x81'
-set GLOBAL sql_mode=default;
-
-End of tests
-create table `a1\``b1` (a int);
-show tables;
-Tables_in_test
-a1\`b1
-insert `a1\``b1` values (1),(2);
-show create table `a1\``b1`;
-Table Create Table
-a1\`b1 CREATE TABLE `a1\``b1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `a1\``b1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `a1\``b1` VALUES (1),(2);
-insert `a1\``b1` values (4),(5);
-show create table `a1\``b1`;
-Table Create Table
-a1\`b1 CREATE TABLE `a1\``b1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from `a1\``b1`;
-a
-1
-2
-drop table `a1\``b1`;
-set sql_mode=ansi_quotes;
-create table "a1\""b1" (a int);
-show tables;
-Tables_in_test
-a1\"b1
-insert "a1\""b1" values (1),(2);
-show create table "a1\""b1";
-Table Create Table
-a1\"b1 CREATE TABLE "a1\""b1" (
- "a" int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE "a1\""b1" (
- "a" int(11) DEFAULT NULL
-);
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO "a1\""b1" VALUES (1),(2);
-insert "a1\""b1" values (4),(5);
-show create table "a1\""b1";
-Table Create Table
-a1\"b1 CREATE TABLE "a1\""b1" (
- "a" int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from "a1\""b1";
-a
-1
-2
-drop table "a1\""b1";
-set sql_mode=default;
diff --git a/mysql-test/r/mysql5613mysql.result b/mysql-test/r/mysql5613mysql.result
deleted file mode 100644
index 183af7211d3..00000000000
--- a/mysql-test/r/mysql5613mysql.result
+++ /dev/null
@@ -1,302 +0,0 @@
-#
-# MDEV-4819 Upgrade from MySQL 5.6 does not work
-# Testing that we can open system tables created in MySQL-5.6 (5.6.13)
-#
-SHOW CREATE TABLE columns_priv;
-Table Create Table
-columns_priv CREATE TABLE `columns_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Column_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
- PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`,`Column_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column privileges'
-SELECT * FROM columns_priv LIMIT 0;
-Host Db User Table_name Column_name Timestamp Column_priv
-DROP TABLE columns_priv;
-SHOW CREATE TABLE db;
-Table Create Table
-db CREATE TABLE `db` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- PRIMARY KEY (`Host`,`Db`,`User`),
- KEY `User` (`User`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Database privileges'
-SELECT * FROM db LIMIT 0;
-Host Db User Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Grant_priv References_priv Index_priv Alter_priv Create_tmp_table_priv Lock_tables_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Execute_priv Event_priv Trigger_priv
-DROP TABLE db;
-SHOW CREATE TABLE event;
-Table Create Table
-event CREATE TABLE `event` (
- `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `name` char(64) NOT NULL DEFAULT '',
- `body` longblob NOT NULL,
- `definer` char(77) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `execute_at` datetime DEFAULT NULL,
- `interval_value` int(11) DEFAULT NULL,
- `interval_field` enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') DEFAULT NULL,
- `created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `last_executed` datetime DEFAULT NULL,
- `starts` datetime DEFAULT NULL,
- `ends` datetime DEFAULT NULL,
- `status` enum('ENABLED','DISABLED','SLAVESIDE_DISABLED') NOT NULL DEFAULT 'ENABLED',
- `on_completion` enum('DROP','PRESERVE') NOT NULL DEFAULT 'DROP',
- `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH') NOT NULL DEFAULT '',
- `comment` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `originator` int(10) unsigned NOT NULL,
- `time_zone` char(64) CHARACTER SET latin1 NOT NULL DEFAULT 'SYSTEM',
- `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `body_utf8` longblob DEFAULT NULL,
- PRIMARY KEY (`db`,`name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Events'
-SELECT * FROM event LIMIT 0;
-db name body definer execute_at interval_value interval_field created modified last_executed starts ends status on_completion sql_mode comment originator time_zone character_set_client collation_connection db_collation body_utf8
-DROP TABLE event;
-SHOW CREATE TABLE func;
-Table Create Table
-func CREATE TABLE `func` (
- `name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `ret` tinyint(1) NOT NULL DEFAULT 0,
- `dl` char(128) COLLATE utf8_bin NOT NULL DEFAULT '',
- `type` enum('function','aggregate') CHARACTER SET utf8 NOT NULL,
- PRIMARY KEY (`name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User defined functions'
-SELECT * FROM func LIMIT 0;
-name ret dl type
-DROP TABLE func;
-SHOW CREATE TABLE plugin;
-Table Create Table
-plugin CREATE TABLE `plugin` (
- `name` varchar(64) NOT NULL DEFAULT '',
- `dl` varchar(128) NOT NULL DEFAULT '',
- PRIMARY KEY (`name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL plugins'
-SELECT * FROM plugin LIMIT 0;
-name dl
-DROP TABLE plugin;
-SHOW CREATE TABLE proc;
-Table Create Table
-proc CREATE TABLE `proc` (
- `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `name` char(64) NOT NULL DEFAULT '',
- `type` enum('FUNCTION','PROCEDURE') NOT NULL,
- `specific_name` char(64) NOT NULL DEFAULT '',
- `language` enum('SQL') NOT NULL DEFAULT 'SQL',
- `sql_data_access` enum('CONTAINS_SQL','NO_SQL','READS_SQL_DATA','MODIFIES_SQL_DATA') NOT NULL DEFAULT 'CONTAINS_SQL',
- `is_deterministic` enum('YES','NO') NOT NULL DEFAULT 'NO',
- `security_type` enum('INVOKER','DEFINER') NOT NULL DEFAULT 'DEFINER',
- `param_list` blob NOT NULL,
- `returns` longblob NOT NULL DEFAULT '',
- `body` longblob NOT NULL,
- `definer` char(77) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH') NOT NULL DEFAULT '',
- `comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
- `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `body_utf8` longblob DEFAULT NULL,
- PRIMARY KEY (`db`,`name`,`type`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stored Procedures'
-SELECT * FROM proc LIMIT 0;
-db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment character_set_client collation_connection db_collation body_utf8
-DROP TABLE proc;
-SHOW CREATE TABLE procs_priv;
-Table Create Table
-procs_priv CREATE TABLE `procs_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Routine_name` char(64) CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Routine_type` enum('FUNCTION','PROCEDURE') COLLATE utf8_bin NOT NULL,
- `Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Proc_priv` set('Execute','Alter Routine','Grant') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- PRIMARY KEY (`Host`,`Db`,`User`,`Routine_name`,`Routine_type`),
- KEY `Grantor` (`Grantor`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Procedure privileges'
-SELECT * FROM procs_priv LIMIT 0;
-Host Db User Routine_name Routine_type Grantor Proc_priv Timestamp
-DROP TABLE procs_priv;
-SHOW CREATE TABLE proxies_priv;
-Table Create Table
-proxies_priv CREATE TABLE `proxies_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Proxied_host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Proxied_user` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
- `With_grant` tinyint(1) NOT NULL DEFAULT 0,
- `Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- PRIMARY KEY (`Host`,`User`,`Proxied_host`,`Proxied_user`),
- KEY `Grantor` (`Grantor`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User proxy privileges'
-SELECT * FROM proxies_priv LIMIT 0;
-Host User Proxied_host Proxied_user With_grant Grantor Timestamp
-DROP TABLE proxies_priv;
-SHOW CREATE TABLE servers;
-Table Create Table
-servers CREATE TABLE `servers` (
- `Server_name` char(64) NOT NULL DEFAULT '',
- `Host` char(64) NOT NULL DEFAULT '',
- `Db` char(64) NOT NULL DEFAULT '',
- `Username` char(64) NOT NULL DEFAULT '',
- `Password` char(64) NOT NULL DEFAULT '',
- `Port` int(4) NOT NULL DEFAULT 0,
- `Socket` char(64) NOT NULL DEFAULT '',
- `Wrapper` char(64) NOT NULL DEFAULT '',
- `Owner` char(64) NOT NULL DEFAULT '',
- PRIMARY KEY (`Server_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table'
-SELECT * FROM servers LIMIT 0;
-Server_name Host Db Username Password Port Socket Wrapper Owner
-DROP TABLE servers;
-SHOW CREATE TABLE tables_priv;
-Table Create Table
-tables_priv CREATE TABLE `tables_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `Table_priv` set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
- PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`),
- KEY `Grantor` (`Grantor`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table privileges'
-SELECT * FROM tables_priv LIMIT 0;
-Host Db User Table_name Grantor Timestamp Table_priv Column_priv
-DROP TABLE tables_priv;
-SHOW CREATE TABLE time_zone_leap_second;
-Table Create Table
-time_zone_leap_second CREATE TABLE `time_zone_leap_second` (
- `Transition_time` bigint(20) NOT NULL,
- `Correction` int(11) NOT NULL,
- PRIMARY KEY (`Transition_time`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Leap seconds information for time zones'
-SELECT * FROM time_zone_leap_second LIMIT 0;
-Transition_time Correction
-DROP TABLE time_zone_leap_second;
-SHOW CREATE TABLE time_zone;
-Table Create Table
-time_zone CREATE TABLE `time_zone` (
- `Time_zone_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `Use_leap_seconds` enum('Y','N') NOT NULL DEFAULT 'N',
- PRIMARY KEY (`Time_zone_id`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zones'
-SELECT * FROM time_zone LIMIT 0;
-Time_zone_id Use_leap_seconds
-DROP TABLE time_zone;
-SHOW CREATE TABLE time_zone_name;
-Table Create Table
-time_zone_name CREATE TABLE `time_zone_name` (
- `Name` char(64) NOT NULL,
- `Time_zone_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`Name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone names'
-SELECT * FROM time_zone_name LIMIT 0;
-Name Time_zone_id
-DROP TABLE time_zone_name;
-SHOW CREATE TABLE time_zone_transition;
-Table Create Table
-time_zone_transition CREATE TABLE `time_zone_transition` (
- `Time_zone_id` int(10) unsigned NOT NULL,
- `Transition_time` bigint(20) NOT NULL,
- `Transition_type_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`Time_zone_id`,`Transition_time`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone transitions'
-SELECT * FROM time_zone_transition LIMIT 0;
-Time_zone_id Transition_time Transition_type_id
-DROP TABLE time_zone_transition;
-SHOW CREATE TABLE time_zone_transition_type;
-Table Create Table
-time_zone_transition_type CREATE TABLE `time_zone_transition_type` (
- `Time_zone_id` int(10) unsigned NOT NULL,
- `Transition_type_id` int(10) unsigned NOT NULL,
- `Offset` int(11) NOT NULL DEFAULT 0,
- `Is_DST` tinyint(3) unsigned NOT NULL DEFAULT 0,
- `Abbreviation` char(8) NOT NULL DEFAULT '',
- PRIMARY KEY (`Time_zone_id`,`Transition_type_id`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone transition types'
-SELECT * FROM time_zone_transition_type LIMIT 0;
-Time_zone_id Transition_type_id Offset Is_DST Abbreviation
-DROP TABLE time_zone_transition_type;
-SHOW CREATE TABLE user;
-Table Create Table
-user CREATE TABLE `user` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Password` char(41) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Reload_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Shutdown_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Process_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `File_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_db_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Super_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Repl_slave_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Repl_client_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_user_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tablespace_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `ssl_type` enum('','ANY','X509','SPECIFIED') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `ssl_cipher` blob NOT NULL,
- `x509_issuer` blob NOT NULL,
- `x509_subject` blob NOT NULL,
- `max_questions` int(11) unsigned NOT NULL DEFAULT 0,
- `max_updates` int(11) unsigned NOT NULL DEFAULT 0,
- `max_connections` int(11) unsigned NOT NULL DEFAULT 0,
- `max_user_connections` int(11) unsigned NOT NULL DEFAULT 0,
- `plugin` char(64) COLLATE utf8_bin DEFAULT '',
- `authentication_string` text COLLATE utf8_bin DEFAULT NULL,
- `password_expired` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- PRIMARY KEY (`Host`,`User`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and global privileges'
-SELECT * FROM user LIMIT 0;
-Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv Create_tablespace_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections max_user_connections plugin authentication_string password_expired
-DROP TABLE user;
diff --git a/mysql-test/r/mysql57_virtual.result b/mysql-test/r/mysql57_virtual.result
deleted file mode 100644
index 8186aa7cdec..00000000000
--- a/mysql-test/r/mysql57_virtual.result
+++ /dev/null
@@ -1,38 +0,0 @@
-#
-# Test that we can use tables created in MySQL 5.7
-#
-SHOW CREATE TABLE mysql57_virtual;
-Table Create Table
-mysql57_virtual CREATE TABLE `mysql57_virtual` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) GENERATED ALWAYS AS (`a` + 1) VIRTUAL,
- `c` int(11) GENERATED ALWAYS AS (`a` + 3) STORED
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into mysql57_virtual (a) values (1),(2);
-select * from mysql57_virtual;
-a b c
-1 2 4
-2 3 5
-alter online table mysql57_virtual comment "I am now a MariaDB table";
-ERROR 0A000: LOCK=NONE is not supported. Reason: COPY algorithm requires a lock. Try LOCK=SHARED
-alter table mysql57_virtual comment "I am now a MariaDB table";
-SHOW CREATE TABLE mysql57_virtual;
-Table Create Table
-mysql57_virtual CREATE TABLE `mysql57_virtual` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) GENERATED ALWAYS AS (`a` + 1) VIRTUAL,
- `c` int(11) GENERATED ALWAYS AS (`a` + 3) STORED
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='I am now a MariaDB table'
-DROP TABLE mysql57_virtual;
-#
-# Check MySQL 5.7 syntax
-#
-create table t1 (a int, b int generated always as (a+1) STORED, c int generated always as (a+2) VIRTUAL);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) GENERATED ALWAYS AS (`a` + 1) STORED,
- `c` int(11) GENERATED ALWAYS AS (`a` + 2) VIRTUAL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
diff --git a/mysql-test/r/mysql_binary_mode.result b/mysql-test/r/mysql_binary_mode.result
deleted file mode 100644
index cb230037108..00000000000
--- a/mysql-test/r/mysql_binary_mode.result
+++ /dev/null
@@ -1,50 +0,0 @@
-RESET MASTER;
-# Bug#33048 Not able to recover binary/blob data correctly using mysqlbinlog
-# --------------------------------------------------------------------------
-# The test verify that 0x00 and 0x0D0A sequence can be handled correctly by
-# mysql
-
-CREATE TABLE `A
-B` (c1 CHAR(100));
-# It is a faked statement. ASCII 0 is in the original statement, it would
-# make the test result to become a binary file which was difficult to get
-# the diff result if the original query was logged in the result.
-INSERT INTO `A\r\nB` VALUES("A\0B");
-
-INSERT INTO `A
-B` VALUES("A
-B");
-SELECT HEX(c1) FROM `A
-B`;
-HEX(c1)
-410042
-410D0A42
-
-FLUSH LOGS;
-DROP TABLE `A
-B`;
-
-RESET MASTER;
-# '--exec mysql ...' without --binary-mode option
-# It creates the table with a wrong table name and generates an error.
-# (error output was suppressed to make the test case platform agnostic)
-
-# It is not in binary_mode, so table name '0x410D0A42' can be translated to
-# '0x410A42' by mysql depending on the OS - Windows or Unix-like.
-DROP TABLE `TABLE_NAME_MASKED`;
-
-# In binary_mode, table name '0x410D0A42' and string '0x410042' can be
-# handled correctly.
-RESET MASTER;
-SELECT HEX(c1) FROM `A
-B`;
-HEX(c1)
-410042
-410D0A42
-
-DROP TABLE `A
-B`;
-RESET MASTER;
-include/assert.inc [Table and contents created through mysqltest match 0x610D0A62.]
-include/assert.inc [Table and contents created while replaying binary log without --binary-mode set match 0x61(0D)0A62.]
-include/assert.inc [Table and contents created while replaying binary log with --binary-mode set match 0x610D0A62.]
diff --git a/mysql-test/r/mysql_client_test.result b/mysql-test/r/mysql_client_test.result
deleted file mode 100644
index 83ef8d442b3..00000000000
--- a/mysql-test/r/mysql_client_test.result
+++ /dev/null
@@ -1,126 +0,0 @@
-SET @old_general_log= @@global.general_log;
-SET @old_slow_query_log= @@global.slow_query_log;
-call mtr.add_suppression(" Error reading file './client_test_db/test_frm_bug.frm'");
-call mtr.add_suppression(" IP address .* could not be resolved");
-ok
-
-# cat MYSQL_TMP_DIR/test_wl4435.out.log
-# ------------------------------------
-
-exec_counter: 0
-num_fields: 4
- - 0: name: 'a1'/'a1'; table: 't1'/'t1'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
- - 1: name: 'a2'/'a2'; table: 't1'/'t1'; db: 'client_test_db'; catalog: 'def'; length: 32; max_length: 0; type: 254; decimals: 0
- - 2: name: 'a3'/'a3'; table: 't1'/'t1'; db: 'client_test_db'; catalog: 'def'; length: 4; max_length: 0; type: 5; decimals: 2
- - 3: name: 'a4'/'a4'; table: 't1'/'t1'; db: 'client_test_db'; catalog: 'def'; length: 5; max_length: 0; type: 246; decimals: 1
-Data:
- int: 1; str: '11'; dbl: 12.340000; dec: '56.7';
- int: 2; str: '12'; dbl: 56.780000; dec: '90.1';
- int: 3; str: '13'; dbl: 23.450000; dec: '67.8';
-EOF
-mysql_stmt_next_result(): 0; field_count: 5
-num_fields: 5
- - 0: name: 'b0'/'b0'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
- - 1: name: 'b1'/'b1'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
- - 2: name: 'b2'/'b2'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 32; max_length: 0; type: 254; decimals: 0
- - 3: name: 'b3'/'b3'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 4; max_length: 0; type: 5; decimals: 2
- - 4: name: 'b4'/'b4'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 5; max_length: 0; type: 246; decimals: 1
-Data:
- int: 100; int: 10; str: '110'; dbl: 70.700000; dec: '10.1';
- int: 200; int: 20; str: '120'; dbl: 80.800000; dec: '20.2';
- int: 300; int: 30; str: '130'; dbl: 90.900000; dec: '30.3';
-EOF
-mysql_stmt_next_result(): 0; field_count: 8
-num_fields: 8
- - 0: name: 'v_str_1'/'v_str_1'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 32; max_length: 0; type: 254; decimals: 0
- - 1: name: 'v_dbl_1'/'v_dbl_1'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 4; max_length: 0; type: 5; decimals: 2
- - 2: name: 'v_dec_1'/'v_dec_1'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 8; max_length: 0; type: 246; decimals: 3
- - 3: name: 'v_int_1'/'v_int_1'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
- - 4: name: 'v_str_2'/'v_str_2'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 64; max_length: 0; type: 254; decimals: 0
- - 5: name: 'v_dbl_2'/'v_dbl_2'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 5; max_length: 0; type: 5; decimals: 3
- - 6: name: 'v_dec_2'/'v_dec_2'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 9; max_length: 0; type: 246; decimals: 4
- - 7: name: 'v_int_2'/'v_int_2'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
-Data:
- str: 'test_1'; dbl: 12.340000; dec: '567.891'; int: 2345; str: 'test_2'; dbl: 67.891000; dec: '234.6789'; int: 6789;
-EOF
-mysql_stmt_next_result(): 0; field_count: 0
-
-exec_counter: 1
-num_fields: 4
- - 0: name: 'a1'/'a1'; table: 't1'/'t1'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
- - 1: name: 'a2'/'a2'; table: 't1'/'t1'; db: 'client_test_db'; catalog: 'def'; length: 32; max_length: 0; type: 254; decimals: 0
- - 2: name: 'a3'/'a3'; table: 't1'/'t1'; db: 'client_test_db'; catalog: 'def'; length: 4; max_length: 0; type: 5; decimals: 2
- - 3: name: 'a4'/'a4'; table: 't1'/'t1'; db: 'client_test_db'; catalog: 'def'; length: 5; max_length: 0; type: 246; decimals: 1
-Data:
- int: 1; str: '11'; dbl: 12.340000; dec: '56.7';
- int: 2; str: '12'; dbl: 56.780000; dec: '90.1';
- int: 3; str: '13'; dbl: 23.450000; dec: '67.8';
-EOF
-mysql_stmt_next_result(): 0; field_count: 5
-num_fields: 5
- - 0: name: 'b0'/'b0'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
- - 1: name: 'b1'/'b1'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
- - 2: name: 'b2'/'b2'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 32; max_length: 0; type: 254; decimals: 0
- - 3: name: 'b3'/'b3'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 4; max_length: 0; type: 5; decimals: 2
- - 4: name: 'b4'/'b4'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 5; max_length: 0; type: 246; decimals: 1
-Data:
- int: 100; int: 10; str: '110'; dbl: 70.700000; dec: '10.1';
- int: 200; int: 20; str: '120'; dbl: 80.800000; dec: '20.2';
- int: 300; int: 30; str: '130'; dbl: 90.900000; dec: '30.3';
-EOF
-mysql_stmt_next_result(): 0; field_count: 8
-num_fields: 8
- - 0: name: 'v_str_1'/'v_str_1'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 32; max_length: 0; type: 254; decimals: 0
- - 1: name: 'v_dbl_1'/'v_dbl_1'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 4; max_length: 0; type: 5; decimals: 2
- - 2: name: 'v_dec_1'/'v_dec_1'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 8; max_length: 0; type: 246; decimals: 3
- - 3: name: 'v_int_1'/'v_int_1'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
- - 4: name: 'v_str_2'/'v_str_2'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 64; max_length: 0; type: 254; decimals: 0
- - 5: name: 'v_dbl_2'/'v_dbl_2'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 5; max_length: 0; type: 5; decimals: 3
- - 6: name: 'v_dec_2'/'v_dec_2'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 9; max_length: 0; type: 246; decimals: 4
- - 7: name: 'v_int_2'/'v_int_2'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
-Data:
- str: 'test_1'; dbl: 12.340000; dec: '567.891'; int: 2345; str: 'test_2'; dbl: 67.891000; dec: '234.6789'; int: 6789;
-EOF
-mysql_stmt_next_result(): 0; field_count: 0
-
-exec_counter: 2
-num_fields: 4
- - 0: name: 'a1'/'a1'; table: 't1'/'t1'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
- - 1: name: 'a2'/'a2'; table: 't1'/'t1'; db: 'client_test_db'; catalog: 'def'; length: 32; max_length: 0; type: 254; decimals: 0
- - 2: name: 'a3'/'a3'; table: 't1'/'t1'; db: 'client_test_db'; catalog: 'def'; length: 4; max_length: 0; type: 5; decimals: 2
- - 3: name: 'a4'/'a4'; table: 't1'/'t1'; db: 'client_test_db'; catalog: 'def'; length: 5; max_length: 0; type: 246; decimals: 1
-Data:
- int: 1; str: '11'; dbl: 12.340000; dec: '56.7';
- int: 2; str: '12'; dbl: 56.780000; dec: '90.1';
- int: 3; str: '13'; dbl: 23.450000; dec: '67.8';
-EOF
-mysql_stmt_next_result(): 0; field_count: 5
-num_fields: 5
- - 0: name: 'b0'/'b0'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
- - 1: name: 'b1'/'b1'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
- - 2: name: 'b2'/'b2'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 32; max_length: 0; type: 254; decimals: 0
- - 3: name: 'b3'/'b3'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 4; max_length: 0; type: 5; decimals: 2
- - 4: name: 'b4'/'b4'; table: 't2'/'t2'; db: 'client_test_db'; catalog: 'def'; length: 5; max_length: 0; type: 246; decimals: 1
-Data:
- int: 100; int: 10; str: '110'; dbl: 70.700000; dec: '10.1';
- int: 200; int: 20; str: '120'; dbl: 80.800000; dec: '20.2';
- int: 300; int: 30; str: '130'; dbl: 90.900000; dec: '30.3';
-EOF
-mysql_stmt_next_result(): 0; field_count: 8
-num_fields: 8
- - 0: name: 'v_str_1'/'v_str_1'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 32; max_length: 0; type: 254; decimals: 0
- - 1: name: 'v_dbl_1'/'v_dbl_1'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 4; max_length: 0; type: 5; decimals: 2
- - 2: name: 'v_dec_1'/'v_dec_1'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 8; max_length: 0; type: 246; decimals: 3
- - 3: name: 'v_int_1'/'v_int_1'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
- - 4: name: 'v_str_2'/'v_str_2'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 64; max_length: 0; type: 254; decimals: 0
- - 5: name: 'v_dbl_2'/'v_dbl_2'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 5; max_length: 0; type: 5; decimals: 3
- - 6: name: 'v_dec_2'/'v_dec_2'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 9; max_length: 0; type: 246; decimals: 4
- - 7: name: 'v_int_2'/'v_int_2'; table: 'p1'/'p1'; db: 'client_test_db'; catalog: 'def'; length: 11; max_length: 0; type: 3; decimals: 0
-Data:
- str: 'test_1'; dbl: 12.340000; dec: '567.891'; int: 2345; str: 'test_2'; dbl: 67.891000; dec: '234.6789'; int: 6789;
-EOF
-mysql_stmt_next_result(): 0; field_count: 0
-# ------------------------------------
-
-SET @@global.general_log= @old_general_log;
-SET @@global.slow_query_log= @old_slow_query_log;
diff --git a/mysql-test/r/mysql_client_test_comp.result b/mysql-test/r/mysql_client_test_comp.result
deleted file mode 100644
index 096331db4f1..00000000000
--- a/mysql-test/r/mysql_client_test_comp.result
+++ /dev/null
@@ -1,5 +0,0 @@
-SET @old_slow_query_log= @@global.slow_query_log;
-call mtr.add_suppression(" Error reading file './client_test_db/test_frm_bug.frm'");
-call mtr.add_suppression(" IP address .* could not be resolved");
-ok
-SET @@global.slow_query_log= @old_slow_query_log;
diff --git a/mysql-test/r/mysql_client_test_nonblock.result b/mysql-test/r/mysql_client_test_nonblock.result
deleted file mode 100644
index 391794f082f..00000000000
--- a/mysql-test/r/mysql_client_test_nonblock.result
+++ /dev/null
@@ -1,7 +0,0 @@
-SET @old_general_log= @@global.general_log;
-SET @old_slow_query_log= @@global.slow_query_log;
-call mtr.add_suppression(" Error reading file './client_test_db/test_frm_bug.frm'");
-call mtr.add_suppression(" IP address .* could not be resolved");
-ok
-SET @@global.general_log= @old_general_log;
-SET @@global.slow_query_log= @old_slow_query_log;
diff --git a/mysql-test/r/mysql_comments.result b/mysql-test/r/mysql_comments.result
deleted file mode 100644
index 9ba8dff3d55..00000000000
--- a/mysql-test/r/mysql_comments.result
+++ /dev/null
@@ -1,64 +0,0 @@
-set global sql_mode="";
-drop table if exists t1;
-drop function if exists foofct;
-drop procedure if exists empty;
-drop procedure if exists foosp;
-drop procedure if exists nicesp;
-drop trigger if exists t1_empty;
-drop trigger if exists t1_bi;
-"Pass 1 : --disable-comments"
-1
-1
-2
-2
-foofct("call 1")
-call 1
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nreturn\n\n\n\nx latin1 latin1_swedish_ci latin1_swedish_ci
-foofct("call 2")
-call 2
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nbegin\n \n \n \n\n \n\n \n return x;\nend latin1 latin1_swedish_ci latin1_swedish_ci
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-empty CREATE DEFINER=`root`@`localhost` PROCEDURE `empty`()\nbegin\nend latin1 latin1_swedish_ci latin1_swedish_ci
-id data
-foo 42
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-foosp CREATE DEFINER=`root`@`localhost` PROCEDURE `foosp`()\ninsert into test.t1\n\n\n\n\n \n\n \n values ("foo", 42) latin1 latin1_swedish_ci latin1_swedish_ci
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-nicesp CREATE DEFINER=`root`@`localhost` PROCEDURE `nicesp`(a int)\nbegin\n \n declare b int;\n declare c float;\n\n \n \n\n \nend latin1 latin1_swedish_ci latin1_swedish_ci
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_empty CREATE DEFINER=`root`@`localhost` trigger t1_empty after delete on t1\nfor each row\nbegin\nend latin1 latin1_swedish_ci latin1_swedish_ci --TIME--
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi CREATE DEFINER=`root`@`localhost` trigger t1_bi before insert on t1\nfor each row\nbegin\n\n\n\n \n declare b int;\n declare c float;\n\n \n \n\n \n set NEW.data := 12;\nend latin1 latin1_swedish_ci latin1_swedish_ci --TIME--
-id data
-trig 12
-"Pass 2 : --enable-comments"
-1
-1
-2
-2
-foofct("call 1")
-call 1
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nreturn\n-- comment 1a\n# comment 1b\n/* comment 1c */\nx # after body, on same line latin1 latin1_swedish_ci latin1_swedish_ci
-foofct("call 2")
-call 2
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nbegin\n -- comment 1a\n # comment 1b\n /*\n comment 1c\n */\n\n -- empty line below\n\n -- empty line above\n return x;\nend latin1 latin1_swedish_ci latin1_swedish_ci
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-empty CREATE DEFINER=`root`@`localhost` PROCEDURE `empty`()\nbegin\nend latin1 latin1_swedish_ci latin1_swedish_ci
-id data
-foo 42
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-foosp CREATE DEFINER=`root`@`localhost` PROCEDURE `foosp`()\ninsert into test.t1\n## These comments are part of the procedure body, and should be kept.\n# Comment 2a\n-- Comment 2b\n/* Comment 2c */\n -- empty line below\n\n -- empty line above\n values ("foo", 42) # comment 3, still part of the body latin1 latin1_swedish_ci latin1_swedish_ci
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-nicesp CREATE DEFINER=`root`@`localhost` PROCEDURE `nicesp`(a int)\nbegin\n -- declare some variables here\n declare b int;\n declare c float;\n\n -- do more stuff here\n -- commented nicely and so on\n\n -- famous last words ...\nend latin1 latin1_swedish_ci latin1_swedish_ci
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_empty CREATE DEFINER=`root`@`localhost` trigger t1_empty after delete on t1\nfor each row\nbegin\nend latin1 latin1_swedish_ci latin1_swedish_ci --TIME--
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi CREATE DEFINER=`root`@`localhost` trigger t1_bi before insert on t1\nfor each row\nbegin\n# comment 1a\n-- comment 1b\n/*\n comment 1c\n*/\n -- declare some variables here\n declare b int;\n declare c float;\n\n -- do more stuff here\n -- commented nicely and so on\n\n -- famous last words ...\n set NEW.data := 12;\nend latin1 latin1_swedish_ci latin1_swedish_ci --TIME--
-id data
-trig 12
-set global sql_mode=default;
-End of 5.0 tests
diff --git a/mysql-test/r/mysql_cp932.result b/mysql-test/r/mysql_cp932.result
deleted file mode 100644
index e15c97720cd..00000000000
--- a/mysql-test/r/mysql_cp932.result
+++ /dev/null
@@ -1,10 +0,0 @@
-ƒ\
-ƒ\
-c_cp932
-ƒ\
-ƒ\
-ƒ\
-ソ
-ソ
-ƒ\
-ƒ\
diff --git a/mysql-test/r/mysql_embedded.result b/mysql-test/r/mysql_embedded.result
deleted file mode 100644
index 3ba79a01e44..00000000000
--- a/mysql-test/r/mysql_embedded.result
+++ /dev/null
@@ -1,5 +0,0 @@
-#
-# Bug#12561297 : LIBMYSQLD/EXAMPLE/MYSQL_EMBEDDED IS ABORTING.
-#
-1
-1
diff --git a/mysql-test/r/mysql_locale_posix.result b/mysql-test/r/mysql_locale_posix.result
deleted file mode 100644
index 72a473bb89e..00000000000
--- a/mysql-test/r/mysql_locale_posix.result
+++ /dev/null
@@ -1,72 +0,0 @@
-SET NAMES utf8;
-DROP DATABASE IF EXISTS `ó`;
-DROP DATABASE IF EXISTS `Ä‚Å‚`;
-DROP DATABASE IF EXISTS `цÐ`;
-DROP DATABASE IF EXISTS `ó`;
-
-iso88591
-@@character_set_client
-latin1
-Database: ó
-+--------+
-| Tables |
-+--------+
-+--------+
-
-iso88592
-@@character_set_client
-latin2
-Database: ó
-+--------+
-| Tables |
-+--------+
-+--------+
-
-koi8r
-@@character_set_client
-koi8r
-Database: ó
-+--------+
-| Tables |
-+--------+
-+--------+
-
-utf8
-@@character_set_client
-utf8
-Database: ó
-+--------+
-| Tables |
-+--------+
-+--------+
-Database: ó
-+--------+
-| Tables |
-+--------+
-+--------+
-Database: Ä‚Å‚
-+--------+
-| Tables |
-+--------+
-+--------+
-Database: цÐ
-+--------+
-| Tables |
-+--------+
-+--------+
-SHOW DATABASES LIKE 'ó';
-Database (ó)
-ó
-SHOW DATABASES LIKE 'Ä‚Å‚';
-Database (Ä‚Å‚)
-Ä‚Å‚
-SHOW DATABASES LIKE 'цÐ';
-Database (цÐ)
-цÐ
-SHOW DATABASES LIKE 'ó';
-Database (ó)
-ó
-DROP DATABASE `ó`;
-DROP DATABASE `Ä‚Å‚`;
-DROP DATABASE `цÐ`;
-DROP DATABASE `ó`;
diff --git a/mysql-test/r/mysql_not_windows.result b/mysql-test/r/mysql_not_windows.result
deleted file mode 100644
index 1df62d9a12d..00000000000
--- a/mysql-test/r/mysql_not_windows.result
+++ /dev/null
@@ -1,11 +0,0 @@
-Bug #54466 client 5.5 built from source lacks "pager" support
-a
-1
-
-End of tests
-1
-1
-2
-2
-X
-3
diff --git a/mysql-test/r/mysql_protocols.result b/mysql-test/r/mysql_protocols.result
deleted file mode 100644
index c6207c4f4f5..00000000000
--- a/mysql-test/r/mysql_protocols.result
+++ /dev/null
@@ -1,10 +0,0 @@
-<default>
- ok
-TCP
- ok
-SOCKET
- ok
-ERROR 2047 (HY000): Wrong or unknown protocol
-ERROR 2047 (HY000): Wrong or unknown protocol
-Unknown option to protocol: NullS
-Alternatives are: 'TCP','SOCKET','PIPE','MEMORY'
diff --git a/mysql-test/r/mysql_tzinfo_to_sql_symlink.result b/mysql-test/r/mysql_tzinfo_to_sql_symlink.result
deleted file mode 100644
index 03543244105..00000000000
--- a/mysql-test/r/mysql_tzinfo_to_sql_symlink.result
+++ /dev/null
@@ -1,91 +0,0 @@
-#
-# MDEV-5226 mysql_tzinfo_to_sql errors with tzdata 2013f and above
-#
-# Verbose run
-set @prep=if((select count(*) from information_schema.global_variables where variable_name='wsrep_on'), 'SET GLOBAL wsrep_replicate_myisam=?', 'do ?');
-prepare set_wsrep_myisam from @prep;
-set @toggle=1; execute set_wsrep_myisam using @toggle;
-TRUNCATE TABLE time_zone;
-TRUNCATE TABLE time_zone_name;
-TRUNCATE TABLE time_zone_transition;
-TRUNCATE TABLE time_zone_transition_type;
-INSERT INTO time_zone (Use_leap_seconds) VALUES ('N');
-SET @time_zone_id= LAST_INSERT_ID();
-INSERT INTO time_zone_name (Name, Time_zone_id) VALUES ('GMT', @time_zone_id);
-INSERT INTO time_zone_transition_type (Time_zone_id, Transition_type_id, Offset, Is_DST, Abbreviation) VALUES
- (@time_zone_id, 0, 0, 0, 'GMT')
-;
-Warning: Unable to load 'MYSQLTEST_VARDIR/zoneinfo/garbage' as time zone. Skipping it.
-Warning: Unable to load 'MYSQLTEST_VARDIR/zoneinfo/ignored.tab' as time zone. Skipping it.
-INSERT INTO time_zone (Use_leap_seconds) VALUES ('N');
-SET @time_zone_id= LAST_INSERT_ID();
-INSERT INTO time_zone_name (Name, Time_zone_id) VALUES ('posix/GMT', @time_zone_id);
-INSERT INTO time_zone_transition_type (Time_zone_id, Transition_type_id, Offset, Is_DST, Abbreviation) VALUES
- (@time_zone_id, 0, 0, 0, 'GMT')
-;
-Warning: Unable to load 'MYSQLTEST_VARDIR/zoneinfo/posix/garbage' as time zone. Skipping it.
-Warning: Unable to load 'MYSQLTEST_VARDIR/zoneinfo/posix/ignored.tab' as time zone. Skipping it.
-Warning: Skipping directory 'MYSQLTEST_VARDIR/zoneinfo/posix/posix': to avoid infinite symlink recursion.
-ALTER TABLE time_zone_transition ORDER BY Time_zone_id, Transition_time;
-ALTER TABLE time_zone_transition_type ORDER BY Time_zone_id, Transition_type_id;
-set @toggle=0; execute set_wsrep_myisam using @toggle;
-# Silent run
-set @prep=if((select count(*) from information_schema.global_variables where variable_name='wsrep_on'), 'SET GLOBAL wsrep_replicate_myisam=?', 'do ?');
-prepare set_wsrep_myisam from @prep;
-set @toggle=1; execute set_wsrep_myisam using @toggle;
-TRUNCATE TABLE time_zone;
-TRUNCATE TABLE time_zone_name;
-TRUNCATE TABLE time_zone_transition;
-TRUNCATE TABLE time_zone_transition_type;
-INSERT INTO time_zone (Use_leap_seconds) VALUES ('N');
-SET @time_zone_id= LAST_INSERT_ID();
-INSERT INTO time_zone_name (Name, Time_zone_id) VALUES ('GMT', @time_zone_id);
-INSERT INTO time_zone_transition_type (Time_zone_id, Transition_type_id, Offset, Is_DST, Abbreviation) VALUES
- (@time_zone_id, 0, 0, 0, 'GMT')
-;
-Warning: Unable to load 'MYSQLTEST_VARDIR/zoneinfo/garbage' as time zone. Skipping it.
-INSERT INTO time_zone (Use_leap_seconds) VALUES ('N');
-SET @time_zone_id= LAST_INSERT_ID();
-INSERT INTO time_zone_name (Name, Time_zone_id) VALUES ('posix/GMT', @time_zone_id);
-INSERT INTO time_zone_transition_type (Time_zone_id, Transition_type_id, Offset, Is_DST, Abbreviation) VALUES
- (@time_zone_id, 0, 0, 0, 'GMT')
-;
-Warning: Unable to load 'MYSQLTEST_VARDIR/zoneinfo/posix/garbage' as time zone. Skipping it.
-ALTER TABLE time_zone_transition ORDER BY Time_zone_id, Transition_time;
-ALTER TABLE time_zone_transition_type ORDER BY Time_zone_id, Transition_type_id;
-set @toggle=0; execute set_wsrep_myisam using @toggle;
-#
-# Testing with explicit timezonefile
-#
-set @prep=if((select count(*) from information_schema.global_variables where variable_name='wsrep_on'), 'SET GLOBAL wsrep_replicate_myisam=?', 'do ?');
-prepare set_wsrep_myisam from @prep;
-set @toggle=1; execute set_wsrep_myisam using @toggle;
-INSERT INTO time_zone (Use_leap_seconds) VALUES ('N');
-SET @time_zone_id= LAST_INSERT_ID();
-INSERT INTO time_zone_name (Name, Time_zone_id) VALUES ('XXX', @time_zone_id);
-INSERT INTO time_zone_transition_type (Time_zone_id, Transition_type_id, Offset, Is_DST, Abbreviation) VALUES
- (@time_zone_id, 0, 0, 0, 'GMT')
-;
-set @toggle=0; execute set_wsrep_myisam using @toggle;
-#
-# Testing --leap
-#
-set @prep=if((select count(*) from information_schema.global_variables where variable_name='wsrep_on'), 'SET GLOBAL wsrep_replicate_myisam=?', 'do ?');
-prepare set_wsrep_myisam from @prep;
-set @toggle=1; execute set_wsrep_myisam using @toggle;
-TRUNCATE TABLE time_zone_leap_second;
-ALTER TABLE time_zone_leap_second ORDER BY Transition_time;
-set @toggle=0; execute set_wsrep_myisam using @toggle;
-#
-# MDEV-6236 - [PATCH] mysql_tzinfo_to_sql may produce invalid SQL
-#
-set @prep=if((select count(*) from information_schema.global_variables where variable_name='wsrep_on'), 'SET GLOBAL wsrep_replicate_myisam=?', 'do ?');
-prepare set_wsrep_myisam from @prep;
-set @toggle=1; execute set_wsrep_myisam using @toggle;
-TRUNCATE TABLE time_zone;
-TRUNCATE TABLE time_zone_name;
-TRUNCATE TABLE time_zone_transition;
-TRUNCATE TABLE time_zone_transition_type;
-ALTER TABLE time_zone_transition ORDER BY Time_zone_id, Transition_time;
-ALTER TABLE time_zone_transition_type ORDER BY Time_zone_id, Transition_type_id;
-set @toggle=0; execute set_wsrep_myisam using @toggle;
diff --git a/mysql-test/r/mysql_upgrade-6984.result b/mysql-test/r/mysql_upgrade-6984.result
deleted file mode 100644
index 6c711b4847f..00000000000
--- a/mysql-test/r/mysql_upgrade-6984.result
+++ /dev/null
@@ -1,68 +0,0 @@
-update mysql.user set password=password("foo") where user='root';
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.innodb_table_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.user OK
-
-Repairing tables
-mysql.innodb_index_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.innodb_table_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.transaction_registry
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-connect con1,localhost,root,foo,,,;
-update mysql.user set password='' where user='root';
-flush privileges;
-set global event_scheduler=OFF;
diff --git a/mysql-test/r/mysql_upgrade.result b/mysql-test/r/mysql_upgrade.result
deleted file mode 100644
index 08efe0e8bc8..00000000000
--- a/mysql-test/r/mysql_upgrade.result
+++ /dev/null
@@ -1,592 +0,0 @@
-set sql_mode="";
-Run mysql_upgrade once
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-Run it again - should say already completed
-This installation of MySQL is already upgraded to VERSION, use --force if you still need to run mysql_upgrade
-Force should run it regardless of whether it has been run before
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-CREATE USER mysqltest1@'%' IDENTIFIED by 'sakila';
-GRANT ALL ON *.* TO mysqltest1@'%';
-Run mysql_upgrade with password protected account
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-DROP USER mysqltest1@'%';
-Version check failed. Got the following error when calling the 'mysql' command line client
-ERROR 1045 (28000): Access denied for user 'mysqltest1'@'localhost' (using password: YES)
-FATAL ERROR: Upgrade failed
-Run mysql_upgrade with a non existing server socket
-mysqlcheck: Got error: 2005: Unknown MySQL server host 'not_existing_host' (errno) when trying to connect
-FATAL ERROR: Upgrade failed
-set GLOBAL sql_mode='STRICT_ALL_TABLES,ANSI_QUOTES,NO_ZERO_DATE';
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-set GLOBAL sql_mode=default;
-#
-# Bug #41569 mysql_upgrade (ver 5.1) add 3 fields to mysql.proc table
-# but does not set values.
-#
-CREATE PROCEDURE testproc() BEGIN END;
-UPDATE mysql.proc SET character_set_client = NULL WHERE name LIKE 'testproc';
-UPDATE mysql.proc SET collation_connection = NULL WHERE name LIKE 'testproc';
-UPDATE mysql.proc SET db_collation = NULL WHERE name LIKE 'testproc';
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-CALL testproc();
-DROP PROCEDURE testproc;
-WARNING: NULL values of the 'character_set_client' column ('mysql.proc' table) have been updated with a default value (latin1). Please verify if necessary.
-WARNING: NULL values of the 'collation_connection' column ('mysql.proc' table) have been updated with a default value (latin1_swedish_ci). Please verify if necessary.
-WARNING: NULL values of the 'db_collation' column ('mysql.proc' table) have been updated with default values. Please verify if necessary.
-#
-# Bug #53613: mysql_upgrade incorrectly revokes
-# TRIGGER privilege on given table
-#
-GRANT USAGE ON *.* TO 'user3'@'%';
-GRANT ALL PRIVILEGES ON `roelt`.`test2` TO 'user3'@'%';
-Run mysql_upgrade with all privileges on a user
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-SHOW GRANTS FOR 'user3'@'%';
-Grants for user3@%
-GRANT USAGE ON *.* TO 'user3'@'%'
-GRANT ALL PRIVILEGES ON `roelt`.`test2` TO 'user3'@'%'
-DROP USER 'user3'@'%';
-End of 5.1 tests
-The --upgrade-system-tables option was used, user tables won't be touched.
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views... Skipped
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names ... Skipped
-Phase 6/7: Checking and upgrading tables... Skipped
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-#
-# Bug#11827359 60223: MYSQL_UPGRADE PROBLEM WITH OPTION
-# SKIP-WRITE-BINLOG
-#
-# Droping the previously created mysql_upgrade_info file..
-# Running mysql_upgrade with --skip-write-binlog..
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-#
-# Bug #21489398: MYSQL_UPGRADE: FATAL ERROR: UPGRADE FAILED - IMPROVE ERROR
-#
-Run mysql_upgrade with unauthorized access
-Version check failed. Got the following error when calling the 'mysql' command line client
-ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
-FATAL ERROR: Upgrade failed
-#
-# MDEV-4332 Increase username length from 16 characters
-# MDEV-6068, MDEV-6178 mysql_upgrade breaks databases with long user names
-#
-connection default;
-GRANT SELECT ON mysql.* TO very_long_user_name_number_1;
-GRANT SELECT ON mysql.* TO very_long_user_name_number_2;
-GRANT ALL ON *.* TO even_longer_user_name_number_3_to_test_the_grantor_and_definer_field_length@localhost WITH GRANT OPTION;
-GRANT INSERT ON mysql.user TO very_long_user_name_number_1;
-GRANT INSERT ON mysql.user TO very_long_user_name_number_2;
-GRANT UPDATE (User) ON mysql.db TO very_long_user_name_number_1;
-GRANT UPDATE (User) ON mysql.db TO very_long_user_name_number_2;
-CREATE PROCEDURE test.pr() BEGIN END;
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-SELECT definer FROM mysql.proc WHERE db = 'test' AND name = 'pr';
-definer
-even_longer_user_name_number_3_to_test_the_grantor_and_definer_field_length@localhost
-SELECT grantor FROM mysql.tables_priv WHERE db = 'mysql' AND table_name = 'user';
-grantor
-even_longer_user_name_number_3_to_test_the_grantor_and_definer_field_length@localhost
-even_longer_user_name_number_3_to_test_the_grantor_and_definer_field_length@localhost
-DROP USER very_long_user_name_number_1, very_long_user_name_number_2, even_longer_user_name_number_3_to_test_the_grantor_and_definer_field_length@localhost;
-DROP PROCEDURE test.pr;
-use test;
-call mtr.add_suppression('Column last_update in table `mysql`.`innodb_table_stats` is INT NOT NULL but should be');
-alter table mysql.innodb_table_stats modify last_update int not null;
-create table extralongname_extralongname_extralongname_extralongname_ext (
-id int(10) unsigned not null,
-created_date date not null,
-created timestamp not null,
-primary key (created,id,created_date)
-) engine=innodb stats_persistent=1 default charset=latin1
-partition by range (year(created_date))
-subpartition by hash (month(created_date))
-subpartitions 2 (
-partition p2007 values less than (2008),
-partition p2008 values less than (2009)
-);
-select length(table_name) from mysql.innodb_table_stats;
-length(table_name)
-79
-79
-79
-79
-drop table extralongname_extralongname_extralongname_extralongname_ext;
-End of 10.0 tests
-set sql_mode=default;
-# Droping the previously created mysql_upgrade_info file..
-create table test.t1(a int) engine=MyISAM;
-# Trying to enforce InnoDB for all tables
-SET GLOBAL enforce_storage_engine=InnoDB;
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-test.t1 OK
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-# Should return 2
-SELECT count(*) FROM information_schema.tables where ENGINE="InnoDB";
-count(*)
-3
-SHOW CREATE TABLE test.t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE test.t1;
-SET GLOBAL enforce_storage_engine=NULL;
-End of 10.1 tests
-Start of 10.3 tests
-#
-# Ensure that mysql_upgrade correctly sets truncate_versioning_priv
-# on upgrade from 10.2
-#
-flush privileges;
-CREATE USER 'user3'@'%';
-GRANT USAGE ON *.* TO 'user3'@'%';
-GRANT ALL PRIVILEGES ON `roelt`.`test2` TO 'user3'@'%';
-alter table mysql.user drop column Delete_history_priv;
-alter table mysql.db drop column Delete_history_priv;
-Run mysql_upgrade with all privileges on a user
-flush privileges;
-SHOW GRANTS FOR 'user3'@'%';
-Grants for user3@%
-GRANT USAGE ON *.* TO 'user3'@'%'
-GRANT ALL PRIVILEGES ON `roelt`.`test2` TO 'user3'@'%'
-DROP USER 'user3'@'%';
-update mysql.db set Delete_history_priv='Y' where db like 'test%';
diff --git a/mysql-test/r/mysql_upgrade_no_innodb.result b/mysql-test/r/mysql_upgrade_no_innodb.result
deleted file mode 100644
index 8e051bb7c16..00000000000
--- a/mysql-test/r/mysql_upgrade_no_innodb.result
+++ /dev/null
@@ -1,57 +0,0 @@
-The --upgrade-system-tables option was used, user tables won't be touched.
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.innodb_table_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.user OK
-
-Repairing tables
-mysql.innodb_index_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.innodb_table_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.transaction_registry
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views... Skipped
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names ... Skipped
-Phase 6/7: Checking and upgrading tables... Skipped
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
diff --git a/mysql-test/r/mysql_upgrade_noengine.result b/mysql-test/r/mysql_upgrade_noengine.result
deleted file mode 100644
index 7b3b1610ee0..00000000000
--- a/mysql-test/r/mysql_upgrade_noengine.result
+++ /dev/null
@@ -1,308 +0,0 @@
-install soname 'ha_blackhole';
-install soname 'ha_archive';
-create table t1 (a int) engine=blackhole;
-create table t2 (a int) engine=archive;
-select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t1';
-table_catalog def
-table_schema test
-table_name t1
-table_type BASE TABLE
-engine BLACKHOLE
-row_format Fixed
-table_rows 0
-data_length 0
-table_comment
-select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t2';
-table_catalog def
-table_schema test
-table_name t2
-table_type BASE TABLE
-engine ARCHIVE
-row_format Compressed
-table_rows 0
-data_length 521
-table_comment
-flush tables;
-uninstall plugin blackhole;
-uninstall plugin archive;
-select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t1';
-table_catalog def
-table_schema test
-table_name t1
-table_type BASE TABLE
-engine BLACKHOLE
-row_format NULL
-table_rows NULL
-data_length NULL
-table_comment Unknown storage engine 'BLACKHOLE'
-Warnings:
-Level Warning
-Code 1286
-Message Unknown storage engine 'BLACKHOLE'
-select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t2';
-table_catalog def
-table_schema test
-table_name t2
-table_type BASE TABLE
-engine ARCHIVE
-row_format NULL
-table_rows NULL
-data_length NULL
-table_comment Unknown storage engine 'ARCHIVE'
-Warnings:
-Level Warning
-Code 1286
-Message Unknown storage engine 'ARCHIVE'
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-test.t1
-Error : Unknown storage engine 'BLACKHOLE'
-error : Corrupt
-test.t2
-Error : Unknown storage engine 'ARCHIVE'
-error : Corrupt
-
-Repairing tables
-test.t1
-Error : Unknown storage engine 'BLACKHOLE'
-error : Corrupt
-test.t2
-Error : Unknown storage engine 'ARCHIVE'
-error : Corrupt
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t1';
-table_catalog def
-table_schema test
-table_name t1
-table_type BASE TABLE
-engine BLACKHOLE
-row_format NULL
-table_rows NULL
-data_length NULL
-table_comment Unknown storage engine 'BLACKHOLE'
-Warnings:
-Level Warning
-Code 1286
-Message Unknown storage engine 'BLACKHOLE'
-select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t2';
-table_catalog def
-table_schema test
-table_name t2
-table_type BASE TABLE
-engine ARCHIVE
-row_format NULL
-table_rows NULL
-data_length NULL
-table_comment Unknown storage engine 'ARCHIVE'
-Warnings:
-Level Warning
-Code 1286
-Message Unknown storage engine 'ARCHIVE'
-alter table mysql.user drop column default_role, drop column max_statement_time;
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-test.t1
-Error : Unknown storage engine 'BLACKHOLE'
-error : Corrupt
-test.t2
-Error : Unknown storage engine 'ARCHIVE'
-error : Corrupt
-
-Repairing tables
-test.t1
-Error : Unknown storage engine 'BLACKHOLE'
-error : Corrupt
-test.t2
-Error : Unknown storage engine 'ARCHIVE'
-error : Corrupt
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t1';
-table_catalog def
-table_schema test
-table_name t1
-table_type BASE TABLE
-engine BLACKHOLE
-row_format NULL
-table_rows NULL
-data_length NULL
-table_comment Unknown storage engine 'BLACKHOLE'
-Warnings:
-Level Warning
-Code 1286
-Message Unknown storage engine 'BLACKHOLE'
-select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t2';
-table_catalog def
-table_schema test
-table_name t2
-table_type BASE TABLE
-engine ARCHIVE
-row_format NULL
-table_rows NULL
-data_length NULL
-table_comment Unknown storage engine 'ARCHIVE'
-Warnings:
-Level Warning
-Code 1286
-Message Unknown storage engine 'ARCHIVE'
-alter table mysql.user drop column default_role, drop column max_statement_time;
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Upgrading from a version before MariaDB-10.1
-Phase 2/7: Installing used storage engines
-Checking for tables with unknown storage engine
-installing plugin for 'archive' storage engine
-installing plugin for 'blackhole' storage engine
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-test.t1 OK
-test.t2 OK
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t1';
-table_catalog def
-table_schema test
-table_name t1
-table_type BASE TABLE
-engine BLACKHOLE
-row_format Fixed
-table_rows 0
-data_length 0
-table_comment
-select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t2';
-table_catalog def
-table_schema test
-table_name t2
-table_type BASE TABLE
-engine ARCHIVE
-row_format Compressed
-table_rows 0
-data_length 521
-table_comment
-drop table t1, t2;
-uninstall plugin blackhole;
-uninstall plugin archive;
diff --git a/mysql-test/r/mysql_upgrade_ssl.result b/mysql-test/r/mysql_upgrade_ssl.result
deleted file mode 100644
index 172a1401cdb..00000000000
--- a/mysql-test/r/mysql_upgrade_ssl.result
+++ /dev/null
@@ -1,49 +0,0 @@
-#
-# Bug#55672 mysql_upgrade dies with internal error
-#
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
diff --git a/mysql-test/r/mysql_upgrade_view.result b/mysql-test/r/mysql_upgrade_view.result
deleted file mode 100644
index 813138b57a8..00000000000
--- a/mysql-test/r/mysql_upgrade_view.result
+++ /dev/null
@@ -1,403 +0,0 @@
-set sql_log_bin=0;
-drop table if exists t1,v1,v2,v3,v4,v1badcheck;
-drop view if exists t1,v1,v2,v3,v4,v1badcheck;
-create table t1(a int);
-create table kv(k varchar(30) NOT NULL PRIMARY KEY,v varchar(50));
-create view v1 as select 1;
-repair table t1 quick;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-repair table t1 extended;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-repair table t1 use_frm;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-repair table t1 from mysql;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'from mysql' at line 1
-repair view v1 quick;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'quick' at line 1
-repair view v1 extended;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'extended' at line 1
-repair view v1 use_frm;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'use_frm' at line 1
-repair view v1 from mysql;
-Table Op Msg_type Msg_text
-test.v1 repair status OK
-check view v1 quick;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'quick' at line 1
-check view v1 fast;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'fast' at line 1
-check view v1 medium;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'medium' at line 1
-check view v1 extended;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'extended' at line 1
-check view v1 changed;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'changed' at line 1
-check view v1 for upgrade;
-Table Op Msg_type Msg_text
-test.v1 check status OK
-drop view v1;
-flush tables;
-check view v1;
-Table Op Msg_type Msg_text
-test.v1 check status OK
-check view v1badcheck;
-Table Op Msg_type Msg_text
-test.v1badcheck check note View text checksum failed
-check view v2;
-Table Op Msg_type Msg_text
-test.v2 check status OK
-check view v3;
-Table Op Msg_type Msg_text
-test.v3 check status OK
-check view v1 for upgrade;
-Table Op Msg_type Msg_text
-test.v1 check error Upgrade required. Please do "REPAIR VIEW `v1`" or dump/reload to fix it!
-check view v1badcheck for upgrade;
-Table Op Msg_type Msg_text
-test.v1badcheck check note View text checksum failed
-check view v2 for upgrade;
-Table Op Msg_type Msg_text
-test.v2 check error Upgrade required. Please do "REPAIR VIEW `v2`" or dump/reload to fix it!
-check view v3 for upgrade;
-Table Op Msg_type Msg_text
-test.v3 check error Upgrade required. Please do "REPAIR VIEW `v3`" or dump/reload to fix it!
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.innodb_table_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.user OK
-
-Repairing tables
-mysql.innodb_index_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.innodb_table_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.transaction_registry
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views
-test.v1 OK
-test.v1badcheck OK
-test.v2 OK
-test.v3 OK
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-test.kv OK
-test.t1 OK
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=MERGE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` utf8 utf8_general_ci
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=TEMPTABLE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t1`.`a` AS `a` from `t1` utf8 utf8_general_ci
-show create view v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select `t1`.`a` AS `a` from `t1` utf8 utf8_general_ci
-set sql_log_bin=1;
-REPAIR VIEW v1,v2;
-Table Op Msg_type Msg_text
-test.v1 repair status OK
-test.v2 repair status OK
-REPAIR VIEW v1badcheck;
-Table Op Msg_type Msg_text
-test.v1badcheck repair status OK
-REPAIR NO_WRITE_TO_BINLOG VIEW v3;
-Table Op Msg_type Msg_text
-test.v3 repair status OK
-set sql_log_bin=0;
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; REPAIR VIEW v1,v2
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; REPAIR VIEW v1badcheck
-LOAD DATA INFILE 'MYSQLD_DATADIR/test/v1.frm' REPLACE INTO TABLE kv FIELDS TERMINATED BY '=';
-SELECT k,v from kv where k in ('md5','algorithm');
-k v
-algorithm 1
-md5 5e6eaf216e7b016fcedfd4e1113517af
-SELECT k from kv where k ='mariadb-version';
-k
-mariadb-version
-truncate table kv;
-LOAD DATA INFILE 'MYSQLD_DATADIR/test/v2.frm' REPLACE INTO TABLE kv FIELDS TERMINATED BY '=';
-SELECT k,v from kv where k in ('md5','algorithm');
-k v
-algorithm 2
-md5 5e6eaf216e7b016fcedfd4e1113517af
-SELECT k from kv where k ='mariadb-version';
-k
-mariadb-version
-truncate table kv;
-LOAD DATA INFILE 'MYSQLD_DATADIR/test/v3.frm' REPLACE INTO TABLE kv FIELDS TERMINATED BY '=';
-SELECT k,v from kv where k in ('md5','algorithm');
-k v
-algorithm 0
-md5 5e6eaf216e7b016fcedfd4e1113517af
-SELECT k from kv where k ='mariadb-version';
-k
-mariadb-version
-truncate table kv;
-LOAD DATA INFILE 'MYSQLD_DATADIR/test/v1badcheck.frm' REPLACE INTO TABLE kv FIELDS TERMINATED BY '=';
-SELECT k,v from kv where k in ('md5','algorithm');
-k v
-algorithm 1
-md5 5e6eaf216e7b016fcedfd4e1113517af
-SELECT k from kv where k ='mariadb-version';
-k
-mariadb-version
-truncate table kv;
-drop view if exists v1,v2,v3,v1badcheck;
-rename table mysql.event to mysql.ev_bk;
-flush tables;
-create algorithm=temptable view v4 as select a from t1;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=MERGE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` utf8 utf8_general_ci
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=TEMPTABLE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t1`.`a` AS `a` from `t1` utf8 utf8_general_ci
-show create view v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select `t1`.`a` AS `a` from `t1` utf8 utf8_general_ci
-show create view v4;
-View Create View character_set_client collation_connection
-v4 CREATE ALGORITHM=TEMPTABLE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v4` AS select `t1`.`a` AS `a` from `t1` latin1 latin1_swedish_ci
-MySQL upgrade detected
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.ev_bk OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.innodb_table_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.user OK
-
-Repairing tables
-mysql.innodb_index_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.innodb_table_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.transaction_registry
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views from mysql
-test.v1 OK
-test.v2 OK
-test.v3 OK
-test.v4 OK
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names
-Phase 6/7: Checking and upgrading tables
-Processing databases
-information_schema
-mtr
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-performance_schema
-test
-test.kv OK
-test.t1 OK
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-flush tables;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=TEMPTABLE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` utf8 utf8_general_ci
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=MERGE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t1`.`a` AS `a` from `t1` utf8 utf8_general_ci
-show create view v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select `t1`.`a` AS `a` from `t1` utf8 utf8_general_ci
-show create view v4;
-View Create View character_set_client collation_connection
-v4 CREATE ALGORITHM=TEMPTABLE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v4` AS select `t1`.`a` AS `a` from `t1` latin1 latin1_swedish_ci
-LOAD DATA INFILE 'MYSQLD_DATADIR/test/v1.frm' REPLACE INTO TABLE kv FIELDS TERMINATED BY '=';
-SELECT k,v from kv where k in ('md5','algorithm');
-k v
-algorithm 2
-md5 5e6eaf216e7b016fcedfd4e1113517af
-SELECT k from kv where k ='mariadb-version';
-k
-mariadb-version
-truncate table kv;
-drop view if exists v1,v2,v3;
-drop table mysql.event;
-rename table mysql.ev_bk to mysql.event;
-test.kv OK
-test.t1 OK
-test.v1 OK
-test.v2 OK
-test.v3 OK
-test.v4 OK
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; REPAIR VIEW v1,v2
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; REPAIR VIEW v1badcheck
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; REPAIR TABLE `kv` USE_FRM
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; REPAIR TABLE `t1` USE_FRM
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; REPAIR VIEW `v1` FROM MYSQL
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; REPAIR VIEW `v2` FROM MYSQL
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; REPAIR VIEW `v3` FROM MYSQL
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; REPAIR VIEW `v4` FROM MYSQL
-drop table if exists kv;
-drop view v1,v2,v3,v4;
-rename table mysql.event to mysql.ev_bk;
-flush tables;
-The --upgrade-system-tables option was used, user tables won't be touched.
-MySQL upgrade detected
-Phase 1/7: Checking and upgrading mysql database
-Processing databases
-mysql
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.ev_bk OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.innodb_table_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.user OK
-
-Repairing tables
-mysql.innodb_index_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.innodb_table_stats
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-mysql.transaction_registry
-Error : Unknown storage engine 'InnoDB'
-error : Corrupt
-Phase 2/7: Installing used storage engines... Skipped
-Phase 3/7: Fixing views from mysql
-test.v1 OK
-test.v2 OK
-test.v3 OK
-Phase 4/7: Running 'mysql_fix_privilege_tables'
-Phase 5/7: Fixing table and database names ... Skipped
-Phase 6/7: Checking and upgrading tables... Skipped
-Phase 7/7: Running 'FLUSH PRIVILEGES'
-OK
-drop table mysql.event;
-rename table mysql.ev_bk to mysql.event;
-drop view v1,v2,v3;
-drop table t1;
diff --git a/mysql-test/r/mysqladmin.result b/mysql-test/r/mysqladmin.result
deleted file mode 100644
index 8a9b009946b..00000000000
--- a/mysql-test/r/mysqladmin.result
+++ /dev/null
@@ -1,19 +0,0 @@
-mysqld is alive
-mysqladmin: unknown variable 'database=db1'
-Warning: mysqladmin: unknown variable 'loose-database=db2'
-mysqld is alive
-#
-# Bug#58221 : mysqladmin --sleep=x --count=x keeps looping
-#
-# Executing mysqladmin with --sleep=1 and --count=2.
-# Done.
-# Displaying the output :
-mysqld is alive
-mysqld is alive
-#
-# BUG#11766184 - 59234: cmdline clients crash --defaults-extra-file
-# with no .cnf or .ini extension.
-#
-# Creating an empty file 'cnf_file'
-# Using --defaults-extra-file option with 'cnf_file'.
-mysqld is alive
diff --git a/mysql-test/r/mysqlbinlog-innodb.result b/mysql-test/r/mysqlbinlog-innodb.result
deleted file mode 100644
index 2971a69fb4d..00000000000
--- a/mysql-test/r/mysqlbinlog-innodb.result
+++ /dev/null
@@ -1,85 +0,0 @@
-SET TIMESTAMP=1000000000;
-CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=innodb;
-CREATE DATABASE test2;
-RESET MASTER;
-USE test2;
-BEGIN;
-USE test;
-INSERT INTO t1 VALUES (1);
-USE test2;
-COMMIT;
-BEGIN;
-USE test;
-INSERT INTO t1 VALUES (2);
-USE test2;
-COMMIT;
-USE test;
-SELECT * FROM t1 ORDER BY a;
-a
-1
-2
-FLUSH LOGS;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-ROLLBACK/*!*/;
-BEGIN
-/*!*/;
-use `test`/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-INSERT INTO t1 VALUES (1)
-/*!*/;
-COMMIT/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-INSERT INTO t1 VALUES (2)
-/*!*/;
-COMMIT/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-ROLLBACK/*!*/;
-BEGIN
-/*!*/;
-use `foo`/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-INSERT INTO t1 VALUES (1)
-/*!*/;
-COMMIT/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-INSERT INTO t1 VALUES (2)
-/*!*/;
-COMMIT/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-DROP DATABASE test2;
-DROP TABLE t1;
diff --git a/mysql-test/r/mysqlbinlog.result b/mysql-test/r/mysqlbinlog.result
deleted file mode 100644
index 668952d20d7..00000000000
--- a/mysql-test/r/mysqlbinlog.result
+++ /dev/null
@@ -1,1259 +0,0 @@
-reset master;
-set timestamp=1000000000;
-drop table if exists t1,t2,t3,t4,t5,t03,t04;
-create table t1 (word varchar(20));
-create table t2 (id int auto_increment not null primary key);
-insert into t1 values ("abirvalg");
-insert into t2 values ();
-load data infile '../../std_data/words3.dat' into table t1;
-load data infile '../../std_data/words3.dat' into table t1;
-load data infile '../../std_data/words3.dat' into table t1;
-load data infile '../../std_data/words3.dat' into table t1;
-load data infile '../../std_data/words3.dat' into table t1;
-insert into t1 values ("Alas");
-flush logs;
-
---- Local --
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-ROLLBACK/*!*/;
-use `test`/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-DROP TABLE IF EXISTS `t1`,`t2`,`t3`,`t4`,`t5`,`t03`,`t04` /* generated by server */
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-create table t1 (word varchar(20))
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-create table t2 (id int auto_increment not null primary key)
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-insert into t1 values ("abirvalg")
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET INSERT_ID=1/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-insert into t2 values ()
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`word`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`word`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`word`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`word`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-
---- Broken LOAD DATA --
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-BEGIN
-/*!*/;
-use `test`/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`word`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-insert into t1 values ("Alas")
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-
---- --database --
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-ROLLBACK/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET INSERT_ID=1/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-
---- --start-position --
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-BEGIN
-/*!*/;
-use `test`/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-insert into t1 values ("Alas")
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-
---- Remote --
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-ROLLBACK/*!*/;
-use `test`/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-DROP TABLE IF EXISTS `t1`,`t2`,`t3`,`t4`,`t5`,`t03`,`t04` /* generated by server */
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-create table t1 (word varchar(20))
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-create table t2 (id int auto_increment not null primary key)
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-insert into t1 values ("abirvalg")
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET INSERT_ID=1/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-insert into t2 values ()
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`word`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`word`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`word`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`word`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-
---- Broken LOAD DATA --
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-BEGIN
-/*!*/;
-use `test`/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`word`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-insert into t1 values ("Alas")
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-
---- --database --
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-ROLLBACK/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET INSERT_ID=1/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-
---- --start-position --
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-BEGIN
-/*!*/;
-use `test`/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-insert into t1 values ("Alas")
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-
---- reading stdin --
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-ROLLBACK/*!*/;
-SET TIMESTAMP=1108844556/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-BEGIN
-/*!*/;
-use `test`/*!*/;
-SET TIMESTAMP=1108844555/*!*/;
-insert t1 values (1)
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-SET TIMESTAMP=1108844556/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-BEGIN
-/*!*/;
-use `test`/*!*/;
-SET TIMESTAMP=1108844555/*!*/;
-insert t1 values (1)
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-drop table t1,t2;
-flush logs;
-flush logs;
-select * from t5 /* must be (1),(1) */;
-a
-1
-1
-drop table t5;
-flush logs;
-create table t5 (c1 int, c2 varchar(128) character set latin1 not null);
-insert into t5 values (1, date_format('2001-01-01','%W'));
-set lc_time_names=de_DE;
-insert into t5 values (2, date_format('2001-01-01','%W'));
-set lc_time_names=en_US;
-insert into t5 values (3, date_format('2001-01-01','%W'));
-select * from t5 order by c1;
-c1 c2
-1 Monday
-2 Montag
-3 Monday
-flush logs;
-drop table t5;
-select * from t5 order by c1;
-c1 c2
-1 Monday
-2 Montag
-3 Monday
-drop table t5;
-drop procedure if exists p1;
-flush logs;
-create procedure p1()
-begin
-select 1;
-end;
-//
-flush logs;
-call p1();
-1
-1
-drop procedure p1;
-call p1();
-ERROR 42000: PROCEDURE test.p1 does not exist
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-use `test`/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`()
-begin
-select 1;
-end
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-call p1();
-1
-1
-drop procedure p1;
-flush logs;
-create table t1 (a varchar(64) character set utf8);
-load data infile '../../std_data/loaddata6.dat' into table t1;
-set character_set_database=koi8r;
-load data infile '../../std_data/loaddata6.dat' into table t1;
-set character_set_database=latin1;
-load data infile '../../std_data/loaddata6.dat' into table t1;
-load data infile '../../std_data/loaddata6.dat' into table t1;
-set character_set_database=koi8r;
-load data infile '../../std_data/loaddata6.dat' into table t1;
-set character_set_database=latin1;
-load data infile '../../std_data/loaddata6.dat' into table t1;
-load data infile '../../std_data/loaddata6.dat' into table t1 character set koi8r;
-select hex(a) from t1;
-hex(a)
-C3BF
-D0AA
-C3BF
-C3BF
-D0AA
-C3BF
-D0AA
-drop table t1;
-flush logs;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-use `test`/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-create table t1 (a varchar(64) character set utf8)
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`a`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.collation_database=7/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`a`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`a`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`a`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.collation_database=7/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`a`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`a`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` CHARACTER SET koi8r FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`a`)
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-COMMIT
-/*!*/;
-SET TIMESTAMP=1000000000/*!*/;
-DROP TABLE `t1` /* generated by server */
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-CREATE TABLE t1 (c1 CHAR(10));
-FLUSH LOGS;
-INSERT INTO t1 VALUES ('0123456789');
-FLUSH LOGS;
-DROP TABLE t1;
-We expect this value to be 2 (one for the INSERT, one for COMMIT).
-The bug being tested was that 'Query' lines were not preceded by '#'
-If the line is in the table, it had to have been preceded by a '#'
-
-SELECT COUNT(*) AS `BUG#28293_expect_2` FROM patch WHERE a LIKE '#%Query%';
-BUG#28293_expect_2
-2
-DROP TABLE patch;
-FLUSH LOGS;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES(connection_id());
-FLUSH LOGS;
-DROP TABLE t1;
-connect con1, localhost, root, , test;
-connection con1;
-disconnect con1;
-connection default;
-1
-DROP TABLE t1;
-shell> mysqlbinlog std_data/corrupt-relay-bin.000624 > var/tmp/bug31793.sql
-FLUSH LOGS;
-Bug#31611 Security risk with BINLOG statement
-SET BINLOG_FORMAT=ROW;
-CREATE DATABASE mysqltest1;
-CREATE USER untrusted@localhost;
-GRANT SELECT ON mysqltest1.* TO untrusted@localhost;
-SHOW GRANTS FOR untrusted@localhost;
-Grants for untrusted@localhost
-GRANT USAGE ON *.* TO 'untrusted'@'localhost'
-GRANT SELECT ON `mysqltest1`.* TO 'untrusted'@'localhost'
-USE mysqltest1;
-CREATE TABLE t1 (a INT, b CHAR(64));
-flush logs;
-INSERT INTO t1 VALUES (1,USER());
-flush logs;
-mysqlbinlog var/log/master-bin.000018 > var/tmp/bug31611.sql
-connect unsecure,localhost,untrusted,,mysqltest1;
-mysql mysqltest1 -uuntrusted < var/tmp/bug31611.sql
-connection unsecure;
-INSERT INTO t1 VALUES (1,USER());
-ERROR 42000: INSERT command denied to user 'untrusted'@'localhost' for table 't1'
-SELECT * FROM t1;
-a b
-1 root@localhost
-connection default;
-DROP DATABASE mysqltest1;
-DROP USER untrusted@localhost;
-Bug#32580 mysqlbinlog cannot read binlog event with user variables
-connection default;
-USE test;
-SET BINLOG_FORMAT = STATEMENT;
-FLUSH LOGS;
-CREATE TABLE t1 (a_real FLOAT, an_int INT, a_decimal DECIMAL(5,2), a_string CHAR(32));
-SET @a_real = rand(20) * 1000;
-SET @an_int = 1000;
-SET @a_decimal = CAST(rand(19) * 999 AS DECIMAL(5,2));
-SET @a_string = 'Just a test';
-INSERT INTO t1 VALUES (@a_real, @an_int, @a_decimal, @a_string);
-FLUSH LOGS;
-SELECT * FROM t1;
-a_real 158.883
-an_int 1000
-a_decimal 907.79
-a_string Just a test
-DROP TABLE t1;
->> mysqlbinlog var/log/master-bin.000020 > var/tmp/bug32580.sql
->> mysql test < var/tmp/bug32580.sql
-SELECT * FROM t1;
-a_real 158.883
-an_int 1000
-a_decimal 907.79
-a_string Just a test
-DROP TABLE t1;
-SET @@global.server_id= 4294967295;
-RESET MASTER;
-FLUSH LOGS;
-SELECT
-(@a:=LOAD_FILE("MYSQLTEST_VARDIR/tmp/mysqlbinlog_bug37313.binlog"))
-IS NOT NULL;
-(@a:=LOAD_FILE("MYSQLTEST_VARDIR/tmp/mysqlbinlog_bug37313.binlog"))
-IS NOT NULL
-1
-*** Unsigned server_id 4294967295 is found: 1 ***
-SET @@global.server_id= 1;
-RESET MASTER;
-FLUSH LOGS;
-RESET MASTER;
-FLUSH LOGS;
-#
-# Test if the 'BEGIN', 'ROLLBACK' and 'COMMIT' are output if the database specified exists
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-ROLLBACK/*!*/;
-use `test`/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=0/*!*/;
-SET @@session.sql_mode=0/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-create table t1(a int) engine= innodb
-/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-insert into t1 (a) values (1)
-/*!*/;
-COMMIT/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-create table t3(a int) engine= innodb
-/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-insert into t3 (a) values (2)
-/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-ROLLBACK
-/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-create table t5(a int) engine= NDB
-/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-insert into t5 (a) values (3)
-/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-COMMIT
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-#
-# Test if the 'BEGIN', 'ROLLBACK' and 'COMMIT' are output if the database specified does not exist
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-ROLLBACK/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=0/*!*/;
-SET @@session.sql_mode=0/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-BEGIN
-/*!*/;
-COMMIT/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-ROLLBACK
-/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1253783037/*!*/;
-COMMIT
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-#
-# Test if the 'SAVEPOINT', 'ROLLBACK TO' are output if the database specified exists
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-SET TIMESTAMP=1266652094/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=0/*!*/;
-SET @@session.sql_mode=0/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1266652094/*!*/;
-SavePoint mixed_cases
-/*!*/;
-use `db1`/*!*/;
-SET TIMESTAMP=1266652094/*!*/;
-INSERT INTO db1.t2 VALUES("in savepoint mixed_cases")
-/*!*/;
-SET TIMESTAMP=1266652094/*!*/;
-INSERT INTO db1.t1 VALUES(40)
-/*!*/;
-SET TIMESTAMP=1266652094/*!*/;
-ROLLBACK TO mixed_cases
-/*!*/;
-SET TIMESTAMP=1266652094/*!*/;
-INSERT INTO db1.t2 VALUES("after rollback to")
-/*!*/;
-SET TIMESTAMP=1266652094/*!*/;
-INSERT INTO db1.t1 VALUES(50)
-/*!*/;
-COMMIT/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-#
-# Test if the 'SAVEPOINT', 'ROLLBACK TO' are output if the database specified does not exist
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-SET TIMESTAMP=1266652094/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=0/*!*/;
-SET @@session.sql_mode=0/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-BEGIN
-/*!*/;
-SET TIMESTAMP=1266652094/*!*/;
-SavePoint mixed_cases
-/*!*/;
-SET TIMESTAMP=1266652094/*!*/;
-ROLLBACK TO mixed_cases
-/*!*/;
-COMMIT/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-End of 5.0 tests
-End of 5.1 tests
-# Expect deprecation warning.
-# Expect deprecation warning again.
-RESET MASTER;
-CREATE DATABASE test1;
-USE test1;
-CREATE TABLE t1(id int);
-DROP DATABASE test1;
-CREATE DATABASE test1;
-USE test1;
-CREATE TABLE t1(id int);
-DROP TABLE t1;
-DROP DATABASE test1;
-FLUSH LOGS;
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000002 # Binlog_checkpoint # # master-bin.000002
-master-bin.000002 # Gtid # # GTID #-#-#
-master-bin.000002 # Query # # CREATE DATABASE test1
-master-bin.000002 # Gtid # # GTID #-#-#
-master-bin.000002 # Query # # use `test1`; CREATE TABLE t1(id int)
-master-bin.000002 # Gtid # # GTID #-#-#
-master-bin.000002 # Query # # DROP DATABASE test1
-master-bin.000002 # Gtid # # GTID #-#-#
-master-bin.000002 # Query # # CREATE DATABASE test1
-master-bin.000002 # Gtid # # GTID #-#-#
-master-bin.000002 # Query # # use `test1`; CREATE TABLE t1(id int)
-master-bin.000002 # Gtid # # GTID #-#-#
-master-bin.000002 # Query # # use `test1`; DROP TABLE `t1` /* generated by server */
-master-bin.000002 # Gtid # # GTID #-#-#
-master-bin.000002 # Query # # DROP DATABASE test1
-RESET MASTER;
-USE test;
-CREATE TABLE t1 (a INT);
-SET GLOBAL SERVER_ID = 2;
-DROP TABLE t1;
-FLUSH LOGS;
-SHOW TABLES IN test;
-Tables_in_test
-t1
-SHOW TABLES IN test;
-Tables_in_test
-SET GLOBAL SERVER_ID = 1;
-#
-# MDEV-4645: Incorrect reads of frozen binlog events;
-# FDE corrupted in relay log
-#
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-# at 4
-#130807 20:29:20 server id 1 end_log_pos 106
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# 4 |20 ae 02 52 |0f |01 00 00 00 |66 00 00 00 |6a 00 00 00 |00 01
-#
-# 17 04 00 35 2e 31 2e 36 33 2d 67 6f 6f 67 6c 65 2d |..5.1.63-google-|
-# 27 64 65 62 75 67 2d 6c 6f 67 00 00 00 00 00 00 00 |debug-log.......|
-# 37 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
-# 47 00 00 00 00 20 ae 02 52 17 38 0d 00 08 00 12 00 |.... ..R.8......|
-# 57 04 04 04 04 12 00 00 53 00 04 1a 08 00 00 00 08 |.......S........|
-# 67 08 08 02 |...|
-#
-# Event: Start: binlog v 4, server v 5.1.63-google-debug-log created 130807 20:29:20 at startup
-ROLLBACK/*!*/;
-BINLOG '
-IK4CUg8BAAAAZgAAAGoAAAAAAQQANS4xLjYzLWdvb2dsZS1kZWJ1Zy1sb2cAAAAAAAAAAAAAAAAA
-AAAAAAAAAAAAAAAAAAAgrgJSFzgNAAgAEgAEBAQEEgAAUwAEGggAAAAICAgC
-'/*!*/;
-# at 106
-#130807 20:29:24 server id 1 end_log_pos 207
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# 6a |24 ae 02 52 |02 |01 00 00 00 |65 00 00 00 |cf 00 00 00 |00 00
-#
-# 81 01 00 00 00 00 00 00 00 00 00 00 1a 00 00 00 40 |...............@|
-# 91 00 00 01 00 00 00 00 00 00 00 00 06 03 73 74 64 |.............std|
-# a1 04 08 00 08 00 08 00 00 63 72 65 61 74 65 20 74 |........create t|
-# b1 61 62 6c 65 20 74 65 73 74 2e 74 31 20 28 69 64 |able test.t1 (id|
-# c1 20 69 6e 74 20 6e 6f 74 20 6e 75 6c 6c 29 | int not null)|
-#
-# Event: Query thread_id=1 exec_time=0 error_code=0
-SET TIMESTAMP=1375907364/*!*/;
-SET @@session.pseudo_thread_id=1/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=0/*!*/;
-SET @@session.sql_mode=0/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-create table test.t1 (id int not null)
-/*!*/;
-# at 207
-#130807 20:29:26 server id 1 end_log_pos 305
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# cf |26 ae 02 52 |02 |01 00 00 00 |62 00 00 00 |31 01 00 00 |00 00
-#
-# e6 01 00 00 00 00 00 00 00 00 00 00 1a 00 00 00 40 |...............@|
-# f6 00 00 01 00 00 00 00 00 00 00 00 06 03 73 74 64 |.............std|
-# 106 04 08 00 08 00 08 00 00 69 6e 73 65 72 74 20 69 |........insert i|
-# 116 6e 74 6f 20 74 65 73 74 2e 74 31 20 28 69 64 29 |nto test.t1 (id)|
-# 126 20 76 61 6c 75 65 73 20 28 31 29 | values (1)|
-#
-# Event: Query thread_id=1 exec_time=0 error_code=0
-SET TIMESTAMP=1375907366/*!*/;
-insert into test.t1 (id) values (1)
-/*!*/;
-# at 305
-#130807 20:29:28 server id 1 end_log_pos 386
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# 131 |28 ae 02 52 |02 |01 00 00 00 |51 00 00 00 |82 01 00 00 |00 00
-#
-# 148 01 00 00 00 00 00 00 00 00 00 00 1a 00 00 00 40 |...............@|
-# 158 00 00 01 00 00 00 00 00 00 00 00 06 03 73 74 64 |.............std|
-# 168 04 08 00 08 00 08 00 00 64 72 6f 70 20 74 61 62 |........drop tab|
-# 178 6c 65 20 74 65 73 74 2e 74 31 |le test.t1|
-#
-# Event: Query thread_id=1 exec_time=0 error_code=0
-SET TIMESTAMP=1375907368/*!*/;
-drop table test.t1
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-# at 4
-#130807 20:25:35 server id 1 end_log_pos 106
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# 4 |3f ad 02 52 |0f |01 00 00 00 |66 00 00 00 |6a 00 00 00 |00 00
-#
-# 17 04 00 35 2e 31 2e 36 33 2d 67 6f 6f 67 6c 65 2d |..5.1.63-google-|
-# 27 64 65 62 75 67 2d 6c 6f 67 00 00 00 00 00 00 00 |debug-log.......|
-# 37 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
-# 47 00 00 00 00 3f ad 02 52 1b 38 0d 00 08 00 12 00 |....?..R.8......|
-# 57 04 04 04 04 12 00 00 53 00 04 1a 08 00 00 00 08 |.......S........|
-# 67 08 08 02 |...|
-#
-# Event: Start: binlog v 4, server v 5.1.63-google-debug-log created 130807 20:25:35 at startup
-ROLLBACK/*!*/;
-BINLOG '
-P60CUg8BAAAAZgAAAGoAAAAAAAQANS4xLjYzLWdvb2dsZS1kZWJ1Zy1sb2cAAAAAAAAAAAAAAAAA
-AAAAAAAAAAAAAAAAAAA/rQJSGzgNAAgAEgAEBAQEEgAAUwAEGggAAAAICAgC
-'/*!*/;
-# at 106
-#130807 20:25:41 server id 1 end_log_pos 211
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# 6a |45 ad 02 52 |02 |01 00 00 00 |69 00 00 00 |d3 00 00 00 |00 00
-#
-# 85 01 00 00 00 01 00 00 00 00 00 00 1a 00 00 00 40 |...............@|
-# 95 00 00 01 00 00 00 00 00 00 00 00 06 03 73 74 64 |.............std|
-# a5 04 08 00 08 00 08 00 00 63 72 65 61 74 65 20 74 |........create t|
-# b5 61 62 6c 65 20 74 65 73 74 2e 74 31 20 28 69 64 |able test.t1 (id|
-# c5 20 69 6e 74 20 6e 6f 74 20 6e 75 6c 6c 29 | int not null)|
-#
-# Event: Query thread_id=1 exec_time=1 error_code=0
-SET TIMESTAMP=1375907141/*!*/;
-SET @@session.pseudo_thread_id=1/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=0/*!*/;
-SET @@session.sql_mode=0/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-create table test.t1 (id int not null)
-/*!*/;
-# at 211
-#130807 20:25:44 server id 1 end_log_pos 313
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# d3 |48 ad 02 52 |02 |01 00 00 00 |66 00 00 00 |39 01 00 00 |00 00
-#
-# ee 01 00 00 00 00 00 00 00 00 00 00 1a 00 00 00 40 |...............@|
-# fe 00 00 01 00 00 00 00 00 00 00 00 06 03 73 74 64 |.............std|
-# 10e 04 08 00 08 00 08 00 00 69 6e 73 65 72 74 20 69 |........insert i|
-# 11e 6e 74 6f 20 74 65 73 74 2e 74 31 20 28 69 64 29 |nto test.t1 (id)|
-# 12e 20 76 61 6c 75 65 73 20 28 31 29 | values (1)|
-#
-# Event: Query thread_id=1 exec_time=0 error_code=0
-SET TIMESTAMP=1375907144/*!*/;
-insert into test.t1 (id) values (1)
-/*!*/;
-# at 313
-#130807 20:25:48 server id 1 end_log_pos 398
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# 139 |4c ad 02 52 |02 |01 00 00 00 |55 00 00 00 |8e 01 00 00 |00 00
-#
-# 154 01 00 00 00 00 00 00 00 00 00 00 1a 00 00 00 40 |...............@|
-# 164 00 00 01 00 00 00 00 00 00 00 00 06 03 73 74 64 |.............std|
-# 174 04 08 00 08 00 08 00 00 64 72 6f 70 20 74 61 62 |........drop tab|
-# 184 6c 65 20 74 65 73 74 2e 74 31 |le test.t1|
-#
-# Event: Query thread_id=1 exec_time=0 error_code=0
-SET TIMESTAMP=1375907148/*!*/;
-drop table test.t1
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-# at 4
-#130807 20:20:55 server id 1 end_log_pos 106
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# 4 |27 ac 02 52 |0f |01 00 00 00 |66 00 00 00 |6a 00 00 00 |00 01
-#
-# 17 04 00 35 2e 31 2e 36 33 2d 67 6f 6f 67 6c 65 2d |..5.1.63-google-|
-# 27 64 65 62 75 67 2d 6c 6f 67 00 00 00 00 00 00 00 |debug-log.......|
-# 37 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
-# 47 00 00 00 00 27 ac 02 52 1f 38 0d 00 08 00 12 00 |....'..R.8......|
-# 57 04 04 04 04 12 00 00 53 00 04 1a 08 00 00 00 08 |.......S........|
-# 67 08 08 02 |...|
-#
-# Event: Start: binlog v 4, server v 5.1.63-google-debug-log created 130807 20:20:55 at startup
-ROLLBACK/*!*/;
-BINLOG '
-J6wCUg8BAAAAZgAAAGoAAAAAAQQANS4xLjYzLWdvb2dsZS1kZWJ1Zy1sb2cAAAAAAAAAAAAAAAAA
-AAAAAAAAAAAAAAAAAAAnrAJSHzgNAAgAEgAEBAQEEgAAUwAEGggAAAAICAgC
-'/*!*/;
-# at 106
-#130807 20:21:19 server id 1 end_log_pos 215
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# 6a |3f ac 02 52 |02 |01 00 00 00 |6d 00 00 00 |d7 00 00 00 |00 00
-#
-# 89 01 00 00 00 00 00 00 00 00 00 00 1a 00 00 00 40 |...............@|
-# 99 00 00 01 00 00 00 00 00 00 00 00 06 03 73 74 64 |.............std|
-# a9 04 08 00 08 00 08 00 00 63 72 65 61 74 65 20 74 |........create t|
-# b9 61 62 6c 65 20 74 65 73 74 2e 74 31 20 28 69 64 |able test.t1 (id|
-# c9 20 69 6e 74 20 6e 6f 74 20 6e 75 6c 6c 29 | int not null)|
-#
-# Event: Query thread_id=1 exec_time=0 error_code=0
-SET TIMESTAMP=1375906879/*!*/;
-SET @@session.pseudo_thread_id=1/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=0/*!*/;
-SET @@session.sql_mode=0/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-create table test.t1 (id int not null)
-/*!*/;
-# at 215
-#130807 20:21:31 server id 1 end_log_pos 321
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# d7 |4b ac 02 52 |02 |01 00 00 00 |6a 00 00 00 |41 01 00 00 |00 00
-#
-# f6 01 00 00 00 00 00 00 00 00 00 00 1a 00 00 00 40 |...............@|
-# 106 00 00 01 00 00 00 00 00 00 00 00 06 03 73 74 64 |.............std|
-# 116 04 08 00 08 00 08 00 00 69 6e 73 65 72 74 20 69 |........insert i|
-# 126 6e 74 6f 20 74 65 73 74 2e 74 31 20 28 69 64 29 |nto test.t1 (id)|
-# 136 20 76 61 6c 75 65 73 20 28 31 29 | values (1)|
-#
-# Event: Query thread_id=1 exec_time=0 error_code=0
-SET TIMESTAMP=1375906891/*!*/;
-insert into test.t1 (id) values (1)
-/*!*/;
-# at 321
-#130807 20:21:41 server id 1 end_log_pos 410
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# 141 |55 ac 02 52 |02 |01 00 00 00 |59 00 00 00 |9a 01 00 00 |00 00
-#
-# 160 01 00 00 00 00 00 00 00 00 00 00 1a 00 00 00 40 |...............@|
-# 170 00 00 01 00 00 00 00 00 00 00 00 06 03 73 74 64 |.............std|
-# 180 04 08 00 08 00 08 00 00 64 72 6f 70 20 74 61 62 |........drop tab|
-# 190 6c 65 20 74 65 73 74 2e 74 31 |le test.t1|
-#
-# Event: Query thread_id=1 exec_time=0 error_code=0
-SET TIMESTAMP=1375906901/*!*/;
-drop table test.t1
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-# at 4
-#130807 20:38:51 server id 1 end_log_pos 106
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# 4 |5b b0 02 52 |0f |01 00 00 00 |66 00 00 00 |6a 00 00 00 |00 00
-#
-# 17 04 00 35 2e 31 2e 36 33 2d 67 6f 6f 67 6c 65 2d |..5.1.63-google-|
-# 27 64 65 62 75 67 2d 6c 6f 67 00 00 00 00 00 00 00 |debug-log.......|
-# 37 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
-# 47 00 00 00 00 5b b0 02 52 13 38 0d 00 08 00 12 00 |....[..R.8......|
-# 57 04 04 04 04 12 00 00 53 00 04 1a 08 00 00 00 08 |.......S........|
-# 67 08 08 02 |...|
-#
-# Event: Start: binlog v 4, server v 5.1.63-google-debug-log created 130807 20:38:51 at startup
-ROLLBACK/*!*/;
-BINLOG '
-W7ACUg8BAAAAZgAAAGoAAAAAAAQANS4xLjYzLWdvb2dsZS1kZWJ1Zy1sb2cAAAAAAAAAAAAAAAAA
-AAAAAAAAAAAAAAAAAABbsAJSEzgNAAgAEgAEBAQEEgAAUwAEGggAAAAICAgC
-'/*!*/;
-# at 106
-#130807 20:38:53 server id 1 end_log_pos 203
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# 6a |5d b0 02 52 |02 |01 00 00 00 |61 00 00 00 |cb 00 00 00 |00 00
-#
-# 7d 01 00 00 00 00 00 00 00 00 00 00 1a 00 00 00 40 |...............@|
-# 8d 00 00 01 00 00 00 00 00 00 00 00 06 03 73 74 64 |.............std|
-# 9d 04 08 00 08 00 08 00 00 63 72 65 61 74 65 20 74 |........create t|
-# ad 61 62 6c 65 20 74 65 73 74 2e 74 31 20 28 69 64 |able test.t1 (id|
-# bd 20 69 6e 74 20 6e 6f 74 20 6e 75 6c 6c 29 | int not null)|
-#
-# Event: Query thread_id=1 exec_time=0 error_code=0
-SET TIMESTAMP=1375907933/*!*/;
-SET @@session.pseudo_thread_id=1/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=0/*!*/;
-SET @@session.sql_mode=0/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-create table test.t1 (id int not null)
-/*!*/;
-# at 203
-#130807 20:38:55 server id 1 end_log_pos 297
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# cb |5f b0 02 52 |02 |01 00 00 00 |5e 00 00 00 |29 01 00 00 |00 00
-#
-# de 01 00 00 00 00 00 00 00 00 00 00 1a 00 00 00 40 |...............@|
-# ee 00 00 01 00 00 00 00 00 00 00 00 06 03 73 74 64 |.............std|
-# fe 04 08 00 08 00 08 00 00 69 6e 73 65 72 74 20 69 |........insert i|
-# 10e 6e 74 6f 20 74 65 73 74 2e 74 31 20 28 69 64 29 |nto test.t1 (id)|
-# 11e 20 76 61 6c 75 65 73 20 28 31 29 | values (1)|
-#
-# Event: Query thread_id=1 exec_time=0 error_code=0
-SET TIMESTAMP=1375907935/*!*/;
-insert into test.t1 (id) values (1)
-/*!*/;
-# at 297
-#130807 20:38:57 server id 1 end_log_pos 374
-# Position
-# |Timestamp |Type |Master ID |Size |Master Pos |Flags
-# 129 |61 b0 02 52 |02 |01 00 00 00 |4d 00 00 00 |76 01 00 00 |00 00
-#
-# 13c 01 00 00 00 00 00 00 00 00 00 00 1a 00 00 00 40 |...............@|
-# 14c 00 00 01 00 00 00 00 00 00 00 00 06 03 73 74 64 |.............std|
-# 15c 04 08 00 08 00 08 00 00 64 72 6f 70 20 74 61 62 |........drop tab|
-# 16c 6c 65 20 74 65 73 74 2e 74 31 |le test.t1|
-#
-# Event: Query thread_id=1 exec_time=0 error_code=0
-SET TIMESTAMP=1375907937/*!*/;
-drop table test.t1
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-mysqlbinlog Ver VER for OS at ARCH
diff --git a/mysql-test/r/mysqlbinlog_raw_mode.result b/mysql-test/r/mysqlbinlog_raw_mode.result
deleted file mode 100644
index b64a2148a82..00000000000
--- a/mysql-test/r/mysqlbinlog_raw_mode.result
+++ /dev/null
@@ -1,274 +0,0 @@
-reset master;
-set timestamp=1000000000;
-drop table if exists t1;
-CREATE TABLE t1 (c01 BIT);
-INSERT INTO t1 VALUES (0);
-INSERT INTO t1 VALUES (1);
-DROP TABLE t1;
-CREATE TABLE t1 (c01 BIT(7));
-INSERT INTO t1 VALUES (1);
-INSERT INTO t1 VALUES (2);
-INSERT INTO t1 VALUES (4);
-INSERT INTO t1 VALUES (8);
-INSERT INTO t1 VALUES (16);
-INSERT INTO t1 VALUES (32);
-INSERT INTO t1 VALUES (64);
-INSERT INTO t1 VALUES (127);
-DELETE FROM t1 WHERE c01=127;
-UPDATE t1 SET c01=15 WHERE c01=16;
-DROP TABLE t1;
-CREATE TABLE t1 (a BIT(20), b CHAR(2));
-INSERT INTO t1 VALUES (b'00010010010010001001', 'ab');
-DROP TABLE t1;
-CREATE TABLE t1 (c02 BIT(64));
-INSERT INTO t1 VALUES (1);
-INSERT INTO t1 VALUES (2);
-INSERT INTO t1 VALUES (128);
-INSERT INTO t1 VALUES (b'1111111111111111111111111111111111111111111111111111111111111111');
-DROP TABLE t1;
-CREATE TABLE t1 (c03 TINYINT);
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t1 VALUES (-128);
-UPDATE t1 SET c03=2 WHERE c03=1;
-DELETE FROM t1 WHERE c03=-128;
-DROP TABLE t1;
-CREATE TABLE t1 (c04 TINYINT UNSIGNED);
-INSERT INTO t1 VALUES (128), (255);
-UPDATE t1 SET c04=2 WHERE c04=1;
-DELETE FROM t1 WHERE c04=255;
-DROP TABLE t1;
-CREATE TABLE t1 (c06 BOOL);
-INSERT INTO t1 VALUES (TRUE);
-DELETE FROM t1 WHERE c06=TRUE;
-DROP TABLE t1;
-CREATE TABLE t1 (c07 SMALLINT);
-INSERT INTO t1 VALUES (1234);
-DELETE FROM t1 WHERE c07=1234;
-DROP TABLE t1;
-CREATE TABLE t1 (c08 SMALLINT UNSIGNED);
-INSERT INTO t1 VALUES (32768), (65535);
-UPDATE t1 SET c08=2 WHERE c08=32768;
-DELETE FROM t1 WHERE c08=65535;
-DROP TABLE t1;
-CREATE TABLE t1 (c10 MEDIUMINT);
-INSERT INTO t1 VALUES (12345);
-DELETE FROM t1 WHERE c10=12345;
-DROP TABLE t1;
-CREATE TABLE t1 (c11 MEDIUMINT UNSIGNED);
-INSERT INTO t1 VALUES (8388608), (16777215);
-UPDATE t1 SET c11=2 WHERE c11=8388608;
-DELETE FROM t1 WHERE c11=16777215;
-DROP TABLE t1;
-CREATE TABLE t1 (c13 INT);
-INSERT INTO t1 VALUES (123456);
-DELETE FROM t1 WHERE c13=123456;
-DROP TABLE t1;
-CREATE TABLE t1 (c14 INT UNSIGNED);
-INSERT INTO t1 VALUES (2147483648), (4294967295);
-UPDATE t1 SET c14=2 WHERE c14=2147483648;
-DELETE FROM t1 WHERE c14=4294967295;
-DROP TABLE t1;
-CREATE TABLE t1 (c16 BIGINT);
-INSERT INTO t1 VALUES (1234567890);
-DELETE FROM t1 WHERE c16=1234567890;
-DROP TABLE t1;
-CREATE TABLE t1 (c17 BIGINT UNSIGNED);
-INSERT INTO t1 VALUES (9223372036854775808), (18446744073709551615);
-UPDATE t1 SET c17=2 WHERE c17=9223372036854775808;
-DELETE FROM t1 WHERE c17=18446744073709551615;
-DROP TABLE t1;
-CREATE TABLE t1 (c19 FLOAT);
-INSERT INTO t1 VALUES (123.2234);
-DELETE FROM t1 WHERE c19>123;
-DROP TABLE t1;
-CREATE TABLE t1 (c22 DOUBLE);
-INSERT INTO t1 VALUES (123434.22344545);
-DELETE FROM t1 WHERE c22>123434;
-DROP TABLE t1;
-CREATE TABLE t1 (c25 DECIMAL(10,5));
-INSERT INTO t1 VALUES (124.45);
-INSERT INTO t1 VALUES (-543.21);
-DELETE FROM t1 WHERE c25=124.45;
-DROP TABLE t1;
-CREATE TABLE t1 (c28 DATE);
-INSERT INTO t1 VALUES ('2001-02-03');
-DELETE FROM t1 WHERE c28='2001-02-03';
-DROP TABLE t1;
-CREATE TABLE t1 (c29 DATETIME);
-INSERT INTO t1 VALUES ('2001-02-03 10:20:30');
-DELETE FROM t1 WHERE c29='2001-02-03 10:20:30';
-DROP TABLE t1;
-CREATE TABLE t1 (c30 TIMESTAMP);
-INSERT INTO t1 VALUES ('2001-02-03 10:20:30');
-DELETE FROM t1 WHERE c30='2001-02-03 10:20:30';
-DROP TABLE t1;
-CREATE TABLE t1 (c31 TIME);
-INSERT INTO t1 VALUES ('11:22:33');
-DELETE FROM t1 WHERE c31='11:22:33';
-DROP TABLE t1;
-CREATE TABLE t1 (c32 YEAR);
-INSERT INTO t1 VALUES ('2001');
-DELETE FROM t1 WHERE c32=2001;
-DROP TABLE t1;
-CREATE TABLE t1 (c33 CHAR);
-INSERT INTO t1 VALUES ('a');
-DELETE FROM t1 WHERE c33='a';
-DROP TABLE t1;
-CREATE TABLE t1 (c34 CHAR(0));
-INSERT INTO t1 VALUES ('');
-DELETE FROM t1 WHERE c34='';
-DROP TABLE t1;
-CREATE TABLE t1 (c35 CHAR(1));
-INSERT INTO t1 VALUES ('b');
-DELETE FROM t1 WHERE c35='b';
-DROP TABLE t1;
-CREATE TABLE t1 (c36 CHAR(255));
-INSERT INTO t1 VALUES (repeat('c',255));
-DELETE FROM t1 WHERE c36>'c';
-DROP TABLE t1;
-CREATE TABLE t1 (c37 NATIONAL CHAR);
-INSERT INTO t1 VALUES ('a');
-DELETE FROM t1 WHERE c37='a';
-DROP TABLE t1;
-CREATE TABLE t1 (c38 NATIONAL CHAR(0));
-INSERT INTO t1 VALUES ('');
-DELETE FROM t1 WHERE c38='';
-DROP TABLE t1;
-CREATE TABLE t1 (c39 NATIONAL CHAR(1));
-INSERT INTO t1 VALUES ('a');
-DELETE FROM t1 WHERE c39='a';
-DROP TABLE t1;
-CREATE TABLE t1 (c40 NATIONAL CHAR(255));
-INSERT INTO t1 VALUES (repeat('a', 255));
-INSERT INTO t1 VALUES (repeat(_latin1 0xDF, 255));
-DELETE FROM t1 WHERE c40>'a';
-DROP TABLE t1;
-CREATE TABLE t1 (c45 VARCHAR(0));
-INSERT INTO t1 VALUES ('');
-DELETE FROM t1 WHERE c45='';
-DROP TABLE t1;
-CREATE TABLE t1 (c46 VARCHAR(1));
-INSERT INTO t1 VALUES ('a');
-DELETE FROM t1 WHERE c46='a';
-DROP TABLE t1;
-CREATE TABLE t1 (c47 VARCHAR(255));
-INSERT INTO t1 VALUES (repeat('a',255));
-DELETE FROM t1 WHERE c47>'a';
-DROP TABLE t1;
-CREATE TABLE t1 (c48 VARCHAR(261));
-INSERT INTO t1 VALUES (repeat('a',261));
-DELETE FROM t1 WHERE c48>'a';
-DROP TABLE t1;
-CREATE TABLE t1 (c49 NATIONAL VARCHAR(0));
-INSERT INTO t1 VALUES ('');
-DELETE FROM t1 WHERE c49='';
-DROP TABLE t1;
-CREATE TABLE t1 (c50 NATIONAL VARCHAR(1));
-INSERT INTO t1 VALUES ('a');
-DELETE FROM t1 WHERE c50='a';
-DROP TABLE t1;
-CREATE TABLE t1 (c51 NATIONAL VARCHAR(255));
-INSERT INTO t1 VALUES (repeat('a',255));
-INSERT INTO t1 VALUES (repeat(_latin1 0xDF, 255));
-DELETE FROM t1 WHERE c51>'a';
-DROP TABLE t1;
-CREATE TABLE t1 (c52 NATIONAL VARCHAR(261));
-INSERT INTO t1 VALUES (repeat('a',261));
-INSERT INTO t1 VALUES (repeat(_latin1 0xDF, 261));
-DELETE FROM t1 WHERE c52>'a';
-DROP TABLE t1;
-CREATE TABLE t1 (c57 BINARY);
-INSERT INTO t1 VALUES (0x00);
-INSERT INTO t1 VALUES (0x02);
-INSERT INTO t1 VALUES ('a');
-DELETE FROM t1 WHERE c57='a';
-DROP TABLE t1;
-CREATE TABLE t1 (c58 BINARY(0));
-INSERT INTO t1 VALUES ('');
-DELETE FROM t1 WHERE c58='';
-DROP TABLE t1;
-CREATE TABLE t1 (c59 BINARY(1));
-INSERT INTO t1 VALUES (0x00);
-INSERT INTO t1 VALUES (0x02);
-INSERT INTO t1 VALUES ('a');
-DELETE FROM t1 WHERE c59='a';
-DROP TABLE t1;
-CREATE TABLE t1 (c60 BINARY(255));
-INSERT INTO t1 VALUES (0x00);
-INSERT INTO t1 VALUES (0x02);
-INSERT INTO t1 VALUES (repeat('a\0',120));
-DELETE FROM t1 WHERE c60<0x02;
-DROP TABLE t1;
-CREATE TABLE t1 (c61 VARBINARY(0));
-INSERT INTO t1 VALUES ('');
-DELETE FROM t1 WHERE c61='';
-DROP TABLE t1;
-CREATE TABLE t1 (c62 VARBINARY(1));
-INSERT INTO t1 VALUES (0x00);
-INSERT INTO t1 VALUES (0x02);
-INSERT INTO t1 VALUES ('a');
-DELETE FROM t1 WHERE c62=0x02;
-DROP TABLE t1;
-CREATE TABLE t1 (c63 VARBINARY(255));
-INSERT INTO t1 VALUES (0x00);
-INSERT INTO t1 VALUES (0x02);
-INSERT INTO t1 VALUES (repeat('a\0',120));
-DELETE FROM t1 WHERE c63=0x02;
-DROP TABLE t1;
-flush logs;
-CREATE TABLE t1 (c65 TINYBLOB);
-INSERT INTO t1 VALUES ('tinyblob1');
-DELETE FROM t1 WHERE c65='tinyblob1';
-DROP TABLE t1;
-CREATE TABLE t1 (c68 BLOB);
-INSERT INTO t1 VALUES ('blob1');
-DELETE FROM t1 WHERE c68='blob1';
-DROP TABLE t1;
-CREATE TABLE t1 (c71 MEDIUMBLOB);
-INSERT INTO t1 VALUES ('mediumblob1');
-DELETE FROM t1 WHERE c71='mediumblob1';
-DROP TABLE t1;
-CREATE TABLE t1 (c74 LONGBLOB);
-INSERT INTO t1 VALUES ('longblob1');
-DELETE FROM t1 WHERE c74='longblob1';
-DROP TABLE t1;
-CREATE TABLE t1 (c66 TINYTEXT);
-INSERT INTO t1 VALUES ('tinytext1');
-DELETE FROM t1 WHERE c66='tinytext1';
-DROP TABLE t1;
-CREATE TABLE t1 (c69 TEXT);
-INSERT INTO t1 VALUES ('text1');
-DELETE FROM t1 WHERE c69='text1';
-DROP TABLE t1;
-CREATE TABLE t1 (c72 MEDIUMTEXT);
-INSERT INTO t1 VALUES ('mediumtext1');
-DELETE FROM t1 WHERE c72='mediumtext1';
-DROP TABLE t1;
-CREATE TABLE t1 (c75 LONGTEXT);
-INSERT INTO t1 VALUES ('longtext1');
-DELETE FROM t1 WHERE c75='longtext1';
-DROP TABLE t1;
-CREATE TABLE t1 (c77 ENUM('a','b','c'));
-INSERT INTO t1 VALUES ('b');
-DELETE FROM t1 WHERE c77='b';
-DROP TABLE t1;
-CREATE TABLE t1 (c78 SET('a','b','c','d','e','f'));
-INSERT INTO t1 VALUES ('a,b');
-INSERT INTO t1 VALUES ('a,c');
-INSERT INTO t1 VALUES ('b,c');
-INSERT INTO t1 VALUES ('a,b,c');
-INSERT INTO t1 VALUES ('a,b,c,d');
-INSERT INTO t1 VALUES ('a,b,c,d,e');
-INSERT INTO t1 VALUES ('a,b,c,d,e,f');
-DELETE FROM t1 WHERE c78='a,b';
-DROP TABLE t1;
-CREATE TABLE t1 (a int NOT NULL DEFAULT 0, b int NOT NULL DEFAULT 0);
-CREATE TABLE t2 (a int NOT NULL DEFAULT 0, b int NOT NULL DEFAULT 0);
-INSERT INTO t1 SET a=1;
-INSERT INTO t1 SET b=1;
-INSERT INTO t2 SET a=1;
-INSERT INTO t2 SET b=1;
-UPDATE t1, t2 SET t1.a=10, t2.a=20;
-DROP TABLE t1,t2;
-flush logs;
-End of tests
diff --git a/mysql-test/r/mysqlbinlog_row_big.result b/mysql-test/r/mysqlbinlog_row_big.result
deleted file mode 100644
index a90ba9d79b6..00000000000
--- a/mysql-test/r/mysqlbinlog_row_big.result
+++ /dev/null
@@ -1,101 +0,0 @@
-#
-# Preparatory cleanup.
-#
-DROP TABLE IF EXISTS t1;
-#
-# We need a fixed timestamp to avoid varying results.
-#
-SET timestamp=1000000000;
-#
-# We need big packets.
-#
-# Capture initial value to reset at the end of the test
-# Now adjust max_allowed_packet
-SET @@global.max_allowed_packet= 1024*1024*1024;
-max_allowed_packet is a global variable.
-In order for the preceding change in max_allowed_packets' value
-to be seen and used, we must start a new connection.
-The change does not take effect with the current one.
-For simplicity, we just disconnect / reconnect connection default here.
-disconnect default;
-connect default, localhost,root,,;
-#
-# Delete all existing binary logs.
-#
-RESET MASTER;
-#
-# Create a test table.
-#
-CREATE TABLE t1 (
-c1 LONGTEXT
-) ENGINE=MyISAM DEFAULT CHARSET latin1;
-#
-# Show how many rows are affected by each statement.
-#
-#
-# Insert some big rows.
-#
-64MB
-INSERT INTO t1 VALUES (REPEAT('ManyMegaByteBlck', 4194304));
-affected rows: 1
-32MB
-INSERT INTO t1 VALUES (REPEAT('ManyMegaByteBlck', 2097152));
-affected rows: 1
-4MB
-INSERT INTO t1 VALUES (REPEAT('ManyMegaByteBlck', 262144));
-affected rows: 1
-512KB
-INSERT INTO t1 VALUES (REPEAT('ManyMegaByteBlck', 32768));
-affected rows: 1
-#
-# Show what we have in the table.
-# Do not display the column value itself, just its length.
-#
-SELECT LENGTH(c1) FROM t1;
-LENGTH(c1) 67108864
-LENGTH(c1) 33554432
-LENGTH(c1) 4194304
-LENGTH(c1) 524288
-affected rows: 4
-#
-# Grow the rows by updating.
-#
-UPDATE t1 SET c1 = CONCAT(c1, c1);
-affected rows: 4
-info: Rows matched: 4 Changed: 4 Warnings: 0
-#
-# Show what we have in the table.
-# Do not display the column value itself, just its length.
-#
-SELECT LENGTH(c1) FROM t1;
-LENGTH(c1) 134217728
-LENGTH(c1) 1048576
-LENGTH(c1) 67108864
-LENGTH(c1) 8388608
-affected rows: 4
-#
-# Delete the rows.
-#
-DELETE FROM t1 WHERE c1 >= 'ManyMegaByteBlck';
-affected rows: 4
-#
-# Hide how many rows are affected by each statement.
-#
-#
-# Flush all log buffers to the log file.
-#
-FLUSH LOGS;
-#
-# Call mysqlbinlog to display the log file contents.
-# NOTE: The output of mysqlbinlog is redirected to
-# $MYSQLTEST_VARDIR/tmp/mysqlbinlog_big_1.out
-# If you want to examine it, disable remove_file
-# at the bottom of the test script.
-#
-#
-# Cleanup.
-#
-# reset variable value to pass testcase checks
-SET @@global.max_allowed_packet = 16777216;
-DROP TABLE t1;
-remove_file $MYSQLTEST_VARDIR/tmp/mysqlbinlog_big_1.out
diff --git a/mysql-test/r/mysqlbinlog_row_compressed.result b/mysql-test/r/mysqlbinlog_row_compressed.result
deleted file mode 100644
index cbea1cf9def..00000000000
--- a/mysql-test/r/mysqlbinlog_row_compressed.result
+++ /dev/null
@@ -1,485 +0,0 @@
-SET GLOBAL log_bin_compress=on;
-SET GLOBAL log_bin_compress_min_len=10;
-CREATE TABLE t1 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 TINYINT, f4 MEDIUMINT, f5 BIGINT, f6 INT, f7 INT, f8 char(1));
-CREATE TABLE t2 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 INT, f4 INT, f5 MEDIUMINT, f6 INT, f7 INT, f8 char(1));
-INSERT INTO t1 VALUES (10, 1, 2, 3, 4, 5, 6, 7, "");
-INSERT INTO t1 VALUES (11, 1, 2, 3, 4, 5, 6, 7, NULL);
-INSERT INTO t1 VALUES (12, 1, 2, 3, NULL, 5, 6, 7, "A");
-INSERT INTO t1 VALUES (13, 1, 2, 3, 0, 5, 6, 7, "A");
-INSERT INTO t2 SELECT * FROM t1;
-UPDATE t2 SET f4=5 WHERE f4>0 or f4 is NULL;
-DELETE FROM t1;
-DELETE FROM t2;
-FLUSH BINARY LOGS;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-# at 4
-#<date> server id 1 end_log_pos 256 CRC32 XXX Start: xxx
-ROLLBACK/*!*/;
-# at 256
-#<date> server id 1 end_log_pos 285 CRC32 XXX Gtid list []
-# at 285
-#<date> server id 1 end_log_pos 329 CRC32 XXX Binlog checkpoint master-bin.000001
-# at 329
-#<date> server id 1 end_log_pos 371 CRC32 XXX GTID 0-1-1 ddl
-/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
-/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
-/*!100001 SET @@session.server_id=1*//*!*/;
-/*!100001 SET @@session.gtid_seq_no=1*//*!*/;
-# at 371
-#<date> server id 1 end_log_pos 533 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0
-use `test`/*!*/;
-SET TIMESTAMP=X/*!*/;
-SET @@session.pseudo_thread_id=5/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-CREATE TABLE t1 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 TINYINT, f4 MEDIUMINT, f5 BIGINT, f6 INT, f7 INT, f8 char(1))
-/*!*/;
-# at 533
-#<date> server id 1 end_log_pos 575 CRC32 XXX GTID 0-1-2 ddl
-/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
-# at 575
-#<date> server id 1 end_log_pos 727 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-CREATE TABLE t2 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 INT, f4 INT, f5 MEDIUMINT, f6 INT, f7 INT, f8 char(1))
-/*!*/;
-# at 727
-#<date> server id 1 end_log_pos 769 CRC32 XXX GTID 0-1-3
-/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
-BEGIN
-/*!*/;
-# at 769
-# at 843
-#<date> server id 1 end_log_pos 843 CRC32 XXX Annotate_rows:
-#Q> INSERT INTO t1 VALUES (10, 1, 2, 3, 4, 5, 6, 7, "")
-#<date> server id 1 end_log_pos 899 CRC32 XXX Table_map: `test`.`t1` mapped to number num
-# at 899
-#<date> server id 1 end_log_pos 967 CRC32 XXX Write_compressed_rows: table id 31 flags: STMT_END_F
-### INSERT INTO `test`.`t1`
-### SET
-### @1=10 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */
-### @5=4 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-# Number of rows: 1
-# at 967
-#<date> server id 1 end_log_pos 1040 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 1040
-#<date> server id 1 end_log_pos 1082 CRC32 XXX GTID 0-1-4
-/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
-BEGIN
-/*!*/;
-# at 1082
-# at 1158
-#<date> server id 1 end_log_pos 1158 CRC32 XXX Annotate_rows:
-#Q> INSERT INTO t1 VALUES (11, 1, 2, 3, 4, 5, 6, 7, NULL)
-#<date> server id 1 end_log_pos 1214 CRC32 XXX Table_map: `test`.`t1` mapped to number num
-# at 1214
-#<date> server id 1 end_log_pos 1281 CRC32 XXX Write_compressed_rows: table id 31 flags: STMT_END_F
-### INSERT INTO `test`.`t1`
-### SET
-### @1=11 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */
-### @5=4 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */
-# Number of rows: 1
-# at 1281
-#<date> server id 1 end_log_pos 1354 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 1354
-#<date> server id 1 end_log_pos 1396 CRC32 XXX GTID 0-1-5
-/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
-BEGIN
-/*!*/;
-# at 1396
-# at 1474
-#<date> server id 1 end_log_pos 1474 CRC32 XXX Annotate_rows:
-#Q> INSERT INTO t1 VALUES (12, 1, 2, 3, NULL, 5, 6, 7, "A")
-#<date> server id 1 end_log_pos 1530 CRC32 XXX Table_map: `test`.`t1` mapped to number num
-# at 1530
-#<date> server id 1 end_log_pos 1596 CRC32 XXX Write_compressed_rows: table id 31 flags: STMT_END_F
-### INSERT INTO `test`.`t1`
-### SET
-### @1=12 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */
-### @5=NULL /* MEDIUMINT meta=0 nullable=1 is_null=1 */
-### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-# Number of rows: 1
-# at 1596
-#<date> server id 1 end_log_pos 1669 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 1669
-#<date> server id 1 end_log_pos 1711 CRC32 XXX GTID 0-1-6
-/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
-BEGIN
-/*!*/;
-# at 1711
-# at 1786
-#<date> server id 1 end_log_pos 1786 CRC32 XXX Annotate_rows:
-#Q> INSERT INTO t1 VALUES (13, 1, 2, 3, 0, 5, 6, 7, "A")
-#<date> server id 1 end_log_pos 1842 CRC32 XXX Table_map: `test`.`t1` mapped to number num
-# at 1842
-#<date> server id 1 end_log_pos 1909 CRC32 XXX Write_compressed_rows: table id 31 flags: STMT_END_F
-### INSERT INTO `test`.`t1`
-### SET
-### @1=13 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */
-### @5=0 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-# Number of rows: 1
-# at 1909
-#<date> server id 1 end_log_pos 1982 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 1982
-#<date> server id 1 end_log_pos 2024 CRC32 XXX GTID 0-1-7
-/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
-BEGIN
-/*!*/;
-# at 2024
-# at 2078
-#<date> server id 1 end_log_pos 2078 CRC32 XXX Annotate_rows:
-#Q> INSERT INTO t2 SELECT * FROM t1
-#<date> server id 1 end_log_pos 2134 CRC32 XXX Table_map: `test`.`t2` mapped to number num
-# at 2134
-#<date> server id 1 end_log_pos 2225 CRC32 XXX Write_compressed_rows: table id 32 flags: STMT_END_F
-### INSERT INTO `test`.`t2`
-### SET
-### @1=10 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=4 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-### INSERT INTO `test`.`t2`
-### SET
-### @1=11 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=4 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */
-### INSERT INTO `test`.`t2`
-### SET
-### @1=12 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=NULL /* INT meta=0 nullable=1 is_null=1 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-### INSERT INTO `test`.`t2`
-### SET
-### @1=13 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=0 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-# Number of rows: 4
-# at 2225
-#<date> server id 1 end_log_pos 2298 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 2298
-#<date> server id 1 end_log_pos 2340 CRC32 XXX GTID 0-1-8
-/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
-BEGIN
-/*!*/;
-# at 2340
-# at 2406
-#<date> server id 1 end_log_pos 2406 CRC32 XXX Annotate_rows:
-#Q> UPDATE t2 SET f4=5 WHERE f4>0 or f4 is NULL
-#<date> server id 1 end_log_pos 2462 CRC32 XXX Table_map: `test`.`t2` mapped to number num
-# at 2462
-#<date> server id 1 end_log_pos 2561 CRC32 XXX Update_compressed_rows: table id 32 flags: STMT_END_F
-### UPDATE `test`.`t2`
-### WHERE
-### @1=10 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=4 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-### SET
-### @1=10 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=5 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-### UPDATE `test`.`t2`
-### WHERE
-### @1=11 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=4 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */
-### SET
-### @1=11 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=5 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */
-### UPDATE `test`.`t2`
-### WHERE
-### @1=12 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=NULL /* INT meta=0 nullable=1 is_null=1 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-### SET
-### @1=12 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=5 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-# Number of rows: 3
-# at 2561
-#<date> server id 1 end_log_pos 2634 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 2634
-#<date> server id 1 end_log_pos 2676 CRC32 XXX GTID 0-1-9
-/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
-BEGIN
-/*!*/;
-# at 2676
-# at 2713
-#<date> server id 1 end_log_pos 2713 CRC32 XXX Annotate_rows:
-#Q> DELETE FROM t1
-#<date> server id 1 end_log_pos 2769 CRC32 XXX Table_map: `test`.`t1` mapped to number num
-# at 2769
-#<date> server id 1 end_log_pos 2861 CRC32 XXX Delete_compressed_rows: table id 31 flags: STMT_END_F
-### DELETE FROM `test`.`t1`
-### WHERE
-### @1=10 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */
-### @5=4 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-### DELETE FROM `test`.`t1`
-### WHERE
-### @1=11 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */
-### @5=4 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */
-### DELETE FROM `test`.`t1`
-### WHERE
-### @1=12 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */
-### @5=NULL /* MEDIUMINT meta=0 nullable=1 is_null=1 */
-### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-### DELETE FROM `test`.`t1`
-### WHERE
-### @1=13 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */
-### @5=0 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-# Number of rows: 4
-# at 2861
-#<date> server id 1 end_log_pos 2934 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 2934
-#<date> server id 1 end_log_pos 2976 CRC32 XXX GTID 0-1-10
-/*!100001 SET @@session.gtid_seq_no=10*//*!*/;
-BEGIN
-/*!*/;
-# at 2976
-# at 3013
-#<date> server id 1 end_log_pos 3013 CRC32 XXX Annotate_rows:
-#Q> DELETE FROM t2
-#<date> server id 1 end_log_pos 3069 CRC32 XXX Table_map: `test`.`t2` mapped to number num
-# at 3069
-#<date> server id 1 end_log_pos 3154 CRC32 XXX Delete_compressed_rows: table id 32 flags: STMT_END_F
-### DELETE FROM `test`.`t2`
-### WHERE
-### @1=10 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=5 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-### DELETE FROM `test`.`t2`
-### WHERE
-### @1=11 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=5 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */
-### DELETE FROM `test`.`t2`
-### WHERE
-### @1=12 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=5 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-### DELETE FROM `test`.`t2`
-### WHERE
-### @1=13 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=0 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-# Number of rows: 4
-# at 3154
-#<date> server id 1 end_log_pos 3227 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 3227
-#<date> server id 1 end_log_pos 3275 CRC32 XXX Rotate to master-bin.000002 pos: 4
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-
-Test mysqlbinlog | mysql type point-in-time recovery with compressed events.
-
-FLUSH BINARY LOGS;
-CREATE TABLE t3 (a INT PRIMARY KEY, b INT, c VARCHAR(100));
-INSERT INTO t3 VALUES (0, 10, "hello");
-BEGIN;
-INSERT INTO t3 VALUES (1, 10, "cat"), (2, 10, "mouse"), (3, 10, "dog");
-INSERT INTO t3 VALUES (4, 10, "goodbye");
-COMMIT;
-UPDATE t3 SET b=b+100 where a<>1;
-DELETE FROM t3 WHERE a=2;
-SET @old_image=@@binlog_row_image;
-SET binlog_row_image=minimal;
-INSERT INTO t3 VALUES (5, 20, "red"), (6, 30, "green"), (7, 40, "blue");
-INSERT INTO t3 VALUES (8, 20, "rigel");
-UPDATE t3 SET c = concat("colour of ", c) WHERE a > 5;
-UPDATE t3 SET b=b*2 WHERE a IN (5,6,7);
-DELETE FROM t3 WHERE a=6;
-SET binlog_row_image=@old_image;
-SELECT * FROM t3 ORDER BY a;
-a b c
-0 110 hello
-1 10 cat
-3 110 dog
-4 110 goodbye
-5 40 red
-7 80 colour of blue
-8 20 colour of rigel
-FLUSH LOGS;
-DROP TABLE t3;
-SELECT * FROM t3 ORDER BY a;
-a b c
-0 110 hello
-1 10 cat
-3 110 dog
-4 110 goodbye
-5 40 red
-7 80 colour of blue
-8 20 colour of rigel
-DROP TABLE t1,t2,t3;
-SET GLOBAL log_bin_compress=off;
-SET GLOBAL log_bin_compress_min_len=256;
diff --git a/mysql-test/r/mysqlbinlog_row_minimal.result b/mysql-test/r/mysqlbinlog_row_minimal.result
deleted file mode 100644
index 6417a528638..00000000000
--- a/mysql-test/r/mysqlbinlog_row_minimal.result
+++ /dev/null
@@ -1,332 +0,0 @@
-CREATE TABLE t1 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 TINYINT, f4 MEDIUMINT, f5 BIGINT, f6 INT, f7 INT, f8 char(1));
-CREATE TABLE t2 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 INT, f4 INT, f5 MEDIUMINT, f6 INT, f7 INT, f8 char(1));
-INSERT INTO t1 VALUES (10, 1, 2, 3, 4, 5, 6, 7, "");
-INSERT INTO t1 VALUES (11, 1, 2, 3, 4, 5, 6, 7, NULL);
-INSERT INTO t1 VALUES (12, 1, 2, 3, NULL, 5, 6, 7, "A");
-INSERT INTO t1 VALUES (13, 1, 2, 3, 0, 5, 6, 7, "A");
-INSERT INTO t2 SELECT * FROM t1;
-UPDATE t2 SET f4=5 WHERE f4>0 or f4 is NULL;
-DELETE FROM t1;
-DELETE FROM t2;
-FLUSH BINARY LOGS;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-# at 4
-#<date> server id 1 end_log_pos 256 CRC32 XXX Start: xxx
-ROLLBACK/*!*/;
-# at 256
-#<date> server id 1 end_log_pos 285 CRC32 XXX Gtid list []
-# at 285
-#<date> server id 1 end_log_pos 329 CRC32 XXX Binlog checkpoint master-bin.000001
-# at 329
-#<date> server id 1 end_log_pos 371 CRC32 XXX GTID 0-1-1 ddl
-/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
-/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
-/*!100001 SET @@session.server_id=1*//*!*/;
-/*!100001 SET @@session.gtid_seq_no=1*//*!*/;
-# at 371
-#<date> server id 1 end_log_pos 555 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-use `test`/*!*/;
-SET TIMESTAMP=X/*!*/;
-SET @@session.pseudo_thread_id=5/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-CREATE TABLE t1 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 TINYINT, f4 MEDIUMINT, f5 BIGINT, f6 INT, f7 INT, f8 char(1))
-/*!*/;
-# at 555
-#<date> server id 1 end_log_pos 597 CRC32 XXX GTID 0-1-2 ddl
-/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
-# at 597
-#<date> server id 1 end_log_pos 774 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-CREATE TABLE t2 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 INT, f4 INT, f5 MEDIUMINT, f6 INT, f7 INT, f8 char(1))
-/*!*/;
-# at 774
-#<date> server id 1 end_log_pos 816 CRC32 XXX GTID 0-1-3
-/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
-BEGIN
-/*!*/;
-# at 816
-# at 890
-#<date> server id 1 end_log_pos 890 CRC32 XXX Annotate_rows:
-#Q> INSERT INTO t1 VALUES (10, 1, 2, 3, 4, 5, 6, 7, "")
-#<date> server id 1 end_log_pos 946 CRC32 XXX Table_map: `test`.`t1` mapped to number num
-# at 946
-#<date> server id 1 end_log_pos 1015 CRC32 XXX Write_rows: table id 31 flags: STMT_END_F
-### INSERT INTO `test`.`t1`
-### SET
-### @1=10 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */
-### @5=4 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-# Number of rows: 1
-# at 1015
-#<date> server id 1 end_log_pos 1088 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 1088
-#<date> server id 1 end_log_pos 1130 CRC32 XXX GTID 0-1-4
-/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
-BEGIN
-/*!*/;
-# at 1130
-# at 1206
-#<date> server id 1 end_log_pos 1206 CRC32 XXX Annotate_rows:
-#Q> INSERT INTO t1 VALUES (11, 1, 2, 3, 4, 5, 6, 7, NULL)
-#<date> server id 1 end_log_pos 1262 CRC32 XXX Table_map: `test`.`t1` mapped to number num
-# at 1262
-#<date> server id 1 end_log_pos 1330 CRC32 XXX Write_rows: table id 31 flags: STMT_END_F
-### INSERT INTO `test`.`t1`
-### SET
-### @1=11 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */
-### @5=4 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */
-# Number of rows: 1
-# at 1330
-#<date> server id 1 end_log_pos 1403 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 1403
-#<date> server id 1 end_log_pos 1445 CRC32 XXX GTID 0-1-5
-/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
-BEGIN
-/*!*/;
-# at 1445
-# at 1523
-#<date> server id 1 end_log_pos 1523 CRC32 XXX Annotate_rows:
-#Q> INSERT INTO t1 VALUES (12, 1, 2, 3, NULL, 5, 6, 7, "A")
-#<date> server id 1 end_log_pos 1579 CRC32 XXX Table_map: `test`.`t1` mapped to number num
-# at 1579
-#<date> server id 1 end_log_pos 1646 CRC32 XXX Write_rows: table id 31 flags: STMT_END_F
-### INSERT INTO `test`.`t1`
-### SET
-### @1=12 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */
-### @5=NULL /* MEDIUMINT meta=0 nullable=1 is_null=1 */
-### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-# Number of rows: 1
-# at 1646
-#<date> server id 1 end_log_pos 1719 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 1719
-#<date> server id 1 end_log_pos 1761 CRC32 XXX GTID 0-1-6
-/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
-BEGIN
-/*!*/;
-# at 1761
-# at 1836
-#<date> server id 1 end_log_pos 1836 CRC32 XXX Annotate_rows:
-#Q> INSERT INTO t1 VALUES (13, 1, 2, 3, 0, 5, 6, 7, "A")
-#<date> server id 1 end_log_pos 1892 CRC32 XXX Table_map: `test`.`t1` mapped to number num
-# at 1892
-#<date> server id 1 end_log_pos 1962 CRC32 XXX Write_rows: table id 31 flags: STMT_END_F
-### INSERT INTO `test`.`t1`
-### SET
-### @1=13 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */
-### @5=0 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-# Number of rows: 1
-# at 1962
-#<date> server id 1 end_log_pos 2035 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 2035
-#<date> server id 1 end_log_pos 2077 CRC32 XXX GTID 0-1-7
-/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
-BEGIN
-/*!*/;
-# at 2077
-# at 2131
-#<date> server id 1 end_log_pos 2131 CRC32 XXX Annotate_rows:
-#Q> INSERT INTO t2 SELECT * FROM t1
-#<date> server id 1 end_log_pos 2187 CRC32 XXX Table_map: `test`.`t2` mapped to number num
-# at 2187
-#<date> server id 1 end_log_pos 2354 CRC32 XXX Write_rows: table id 32 flags: STMT_END_F
-### INSERT INTO `test`.`t2`
-### SET
-### @1=10 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=4 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-### INSERT INTO `test`.`t2`
-### SET
-### @1=11 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=4 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */
-### INSERT INTO `test`.`t2`
-### SET
-### @1=12 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=NULL /* INT meta=0 nullable=1 is_null=1 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-### INSERT INTO `test`.`t2`
-### SET
-### @1=13 /* INT meta=0 nullable=0 is_null=0 */
-### @2=1 /* INT meta=0 nullable=1 is_null=0 */
-### @3=2 /* INT meta=0 nullable=1 is_null=0 */
-### @4=3 /* INT meta=0 nullable=1 is_null=0 */
-### @5=0 /* INT meta=0 nullable=1 is_null=0 */
-### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */
-### @7=6 /* INT meta=0 nullable=1 is_null=0 */
-### @8=7 /* INT meta=0 nullable=1 is_null=0 */
-### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
-# Number of rows: 4
-# at 2354
-#<date> server id 1 end_log_pos 2427 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 2427
-#<date> server id 1 end_log_pos 2469 CRC32 XXX GTID 0-1-8
-/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
-BEGIN
-/*!*/;
-# at 2469
-# at 2535
-#<date> server id 1 end_log_pos 2535 CRC32 XXX Annotate_rows:
-#Q> UPDATE t2 SET f4=5 WHERE f4>0 or f4 is NULL
-#<date> server id 1 end_log_pos 2591 CRC32 XXX Table_map: `test`.`t2` mapped to number num
-# at 2591
-#<date> server id 1 end_log_pos 2665 CRC32 XXX Update_rows: table id 32 flags: STMT_END_F
-### UPDATE `test`.`t2`
-### WHERE
-### @1=10 /* INT meta=0 nullable=0 is_null=0 */
-### @5=4 /* INT meta=0 nullable=1 is_null=0 */
-### SET
-### @5=5 /* INT meta=0 nullable=1 is_null=0 */
-### UPDATE `test`.`t2`
-### WHERE
-### @1=11 /* INT meta=0 nullable=0 is_null=0 */
-### @5=4 /* INT meta=0 nullable=1 is_null=0 */
-### SET
-### @5=5 /* INT meta=0 nullable=1 is_null=0 */
-### UPDATE `test`.`t2`
-### WHERE
-### @1=12 /* INT meta=0 nullable=0 is_null=0 */
-### @5=NULL /* INT meta=0 nullable=1 is_null=1 */
-### SET
-### @5=5 /* INT meta=0 nullable=1 is_null=0 */
-# Number of rows: 3
-# at 2665
-#<date> server id 1 end_log_pos 2738 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 2738
-#<date> server id 1 end_log_pos 2780 CRC32 XXX GTID 0-1-9
-/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
-BEGIN
-/*!*/;
-# at 2780
-# at 2817
-#<date> server id 1 end_log_pos 2817 CRC32 XXX Annotate_rows:
-#Q> DELETE FROM t1
-#<date> server id 1 end_log_pos 2873 CRC32 XXX Table_map: `test`.`t1` mapped to number num
-# at 2873
-#<date> server id 1 end_log_pos 2927 CRC32 XXX Delete_rows: table id 31 flags: STMT_END_F
-### DELETE FROM `test`.`t1`
-### WHERE
-### @1=10 /* INT meta=0 nullable=0 is_null=0 */
-### DELETE FROM `test`.`t1`
-### WHERE
-### @1=11 /* INT meta=0 nullable=0 is_null=0 */
-### DELETE FROM `test`.`t1`
-### WHERE
-### @1=12 /* INT meta=0 nullable=0 is_null=0 */
-### DELETE FROM `test`.`t1`
-### WHERE
-### @1=13 /* INT meta=0 nullable=0 is_null=0 */
-# Number of rows: 4
-# at 2927
-#<date> server id 1 end_log_pos 3000 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 3000
-#<date> server id 1 end_log_pos 3042 CRC32 XXX GTID 0-1-10
-/*!100001 SET @@session.gtid_seq_no=10*//*!*/;
-BEGIN
-/*!*/;
-# at 3042
-# at 3079
-#<date> server id 1 end_log_pos 3079 CRC32 XXX Annotate_rows:
-#Q> DELETE FROM t2
-#<date> server id 1 end_log_pos 3135 CRC32 XXX Table_map: `test`.`t2` mapped to number num
-# at 3135
-#<date> server id 1 end_log_pos 3189 CRC32 XXX Delete_rows: table id 32 flags: STMT_END_F
-### DELETE FROM `test`.`t2`
-### WHERE
-### @1=10 /* INT meta=0 nullable=0 is_null=0 */
-### DELETE FROM `test`.`t2`
-### WHERE
-### @1=11 /* INT meta=0 nullable=0 is_null=0 */
-### DELETE FROM `test`.`t2`
-### WHERE
-### @1=12 /* INT meta=0 nullable=0 is_null=0 */
-### DELETE FROM `test`.`t2`
-### WHERE
-### @1=13 /* INT meta=0 nullable=0 is_null=0 */
-# Number of rows: 4
-# at 3189
-#<date> server id 1 end_log_pos 3262 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 3262
-#<date> server id 1 end_log_pos 3310 CRC32 XXX Rotate to master-bin.000002 pos: 4
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-DROP TABLE t1,t2;
diff --git a/mysql-test/r/mysqlbinlog_stmt_compressed.result b/mysql-test/r/mysqlbinlog_stmt_compressed.result
deleted file mode 100644
index cd8e98c1ee3..00000000000
--- a/mysql-test/r/mysqlbinlog_stmt_compressed.result
+++ /dev/null
@@ -1,207 +0,0 @@
-SET GLOBAL log_bin_compress=on;
-SET GLOBAL log_bin_compress_min_len=10;
-CREATE TABLE t1 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 TINYINT, f4 MEDIUMINT, f5 BIGINT, f6 INT, f7 INT, f8 char(1));
-CREATE TABLE t2 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 INT, f4 INT, f5 MEDIUMINT, f6 INT, f7 INT, f8 char(1));
-INSERT INTO t1 VALUES (10, 1, 2, 3, 4, 5, 6, 7, "");
-INSERT INTO t1 VALUES (11, 1, 2, 3, 4, 5, 6, 7, NULL);
-INSERT INTO t1 VALUES (12, 1, 2, 3, NULL, 5, 6, 7, "A");
-INSERT INTO t1 VALUES (13, 1, 2, 3, 0, 5, 6, 7, "A");
-INSERT INTO t2 SELECT * FROM t1;
-UPDATE t2 SET f4=5 WHERE f4>0 or f4 is NULL;
-DELETE FROM t1;
-DELETE FROM t2;
-FLUSH BINARY LOGS;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-# at 4
-#<date> server id 1 end_log_pos 256 CRC32 XXX Start: xxx
-ROLLBACK/*!*/;
-# at 256
-#<date> server id 1 end_log_pos 285 CRC32 XXX Gtid list []
-# at 285
-#<date> server id 1 end_log_pos 329 CRC32 XXX Binlog checkpoint master-bin.000001
-# at 329
-#<date> server id 1 end_log_pos 371 CRC32 XXX GTID 0-1-1 ddl
-/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
-/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
-/*!100001 SET @@session.server_id=1*//*!*/;
-/*!100001 SET @@session.gtid_seq_no=1*//*!*/;
-# at 371
-#<date> server id 1 end_log_pos 533 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0
-use `test`/*!*/;
-SET TIMESTAMP=X/*!*/;
-SET @@session.pseudo_thread_id=5/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-CREATE TABLE t1 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 TINYINT, f4 MEDIUMINT, f5 BIGINT, f6 INT, f7 INT, f8 char(1))
-/*!*/;
-# at 533
-#<date> server id 1 end_log_pos 575 CRC32 XXX GTID 0-1-2 ddl
-/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
-# at 575
-#<date> server id 1 end_log_pos 727 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-CREATE TABLE t2 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 INT, f4 INT, f5 MEDIUMINT, f6 INT, f7 INT, f8 char(1))
-/*!*/;
-# at 727
-#<date> server id 1 end_log_pos 769 CRC32 XXX GTID 0-1-3
-/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
-BEGIN
-/*!*/;
-# at 769
-#<date> server id 1 end_log_pos 897 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-INSERT INTO t1 VALUES (10, 1, 2, 3, 4, 5, 6, 7, "")
-/*!*/;
-# at 897
-#<date> server id 1 end_log_pos 970 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 970
-#<date> server id 1 end_log_pos 1012 CRC32 XXX GTID 0-1-4
-/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
-BEGIN
-/*!*/;
-# at 1012
-#<date> server id 1 end_log_pos 1140 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-INSERT INTO t1 VALUES (11, 1, 2, 3, 4, 5, 6, 7, NULL)
-/*!*/;
-# at 1140
-#<date> server id 1 end_log_pos 1213 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 1213
-#<date> server id 1 end_log_pos 1255 CRC32 XXX GTID 0-1-5
-/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
-BEGIN
-/*!*/;
-# at 1255
-#<date> server id 1 end_log_pos 1385 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-INSERT INTO t1 VALUES (12, 1, 2, 3, NULL, 5, 6, 7, "A")
-/*!*/;
-# at 1385
-#<date> server id 1 end_log_pos 1458 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 1458
-#<date> server id 1 end_log_pos 1500 CRC32 XXX GTID 0-1-6
-/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
-BEGIN
-/*!*/;
-# at 1500
-#<date> server id 1 end_log_pos 1627 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-INSERT INTO t1 VALUES (13, 1, 2, 3, 0, 5, 6, 7, "A")
-/*!*/;
-# at 1627
-#<date> server id 1 end_log_pos 1700 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 1700
-#<date> server id 1 end_log_pos 1742 CRC32 XXX GTID 0-1-7
-/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
-BEGIN
-/*!*/;
-# at 1742
-#<date> server id 1 end_log_pos 1850 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-INSERT INTO t2 SELECT * FROM t1
-/*!*/;
-# at 1850
-#<date> server id 1 end_log_pos 1923 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 1923
-#<date> server id 1 end_log_pos 1965 CRC32 XXX GTID 0-1-8
-/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
-BEGIN
-/*!*/;
-# at 1965
-#<date> server id 1 end_log_pos 2082 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-UPDATE t2 SET f4=5 WHERE f4>0 or f4 is NULL
-/*!*/;
-# at 2082
-#<date> server id 1 end_log_pos 2155 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 2155
-#<date> server id 1 end_log_pos 2197 CRC32 XXX GTID 0-1-9
-/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
-BEGIN
-/*!*/;
-# at 2197
-#<date> server id 1 end_log_pos 2288 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-DELETE FROM t1
-/*!*/;
-# at 2288
-#<date> server id 1 end_log_pos 2361 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 2361
-#<date> server id 1 end_log_pos 2403 CRC32 XXX GTID 0-1-10
-/*!100001 SET @@session.gtid_seq_no=10*//*!*/;
-BEGIN
-/*!*/;
-# at 2403
-#<date> server id 1 end_log_pos 2494 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-DELETE FROM t2
-/*!*/;
-# at 2494
-#<date> server id 1 end_log_pos 2567 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
-SET TIMESTAMP=X/*!*/;
-COMMIT
-/*!*/;
-# at 2567
-#<date> server id 1 end_log_pos 2615 CRC32 XXX Rotate to master-bin.000002 pos: 4
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-
-Test mysqlbinlog | mysql type point-in-time recovery with compressed events.
-
-FLUSH BINARY LOGS;
-CREATE TABLE t3 (a INT PRIMARY KEY, b INT, c VARCHAR(100));
-INSERT INTO t3 VALUES (0, 10, "hello");
-BEGIN;
-INSERT INTO t3 VALUES (1, 10, "cat"), (2, 10, "mouse"), (3, 10, "dog");
-INSERT INTO t3 VALUES (4, 10, "goodbye");
-COMMIT;
-DELETE FROM t3 WHERE a=2;
-SELECT * FROM t3 ORDER BY a;
-a b c
-0 10 hello
-1 10 cat
-3 10 dog
-4 10 goodbye
-FLUSH LOGS;
-DROP TABLE t3;
-SELECT * FROM t3 ORDER BY a;
-a b c
-0 10 hello
-1 10 cat
-3 10 dog
-4 10 goodbye
-DROP TABLE t1,t2,t3;
-SET GLOBAL log_bin_compress=off;
-SET GLOBAL log_bin_compress_min_len=256;
diff --git a/mysql-test/r/mysqlcheck.result b/mysql-test/r/mysqlcheck.result
deleted file mode 100644
index 7259b68be50..00000000000
--- a/mysql-test/r/mysqlcheck.result
+++ /dev/null
@@ -1,483 +0,0 @@
-call mtr.add_suppression("Invalid .old.. table or database name");
-DROP TABLE IF EXISTS t1, `t``1`, `t 1`, test.`t.1`, v1;
-drop view if exists t1, `t``1`, `t 1`, test.`t.1`, v1;
-drop database if exists client_test_db;
-mtr.global_suppressions OK
-mtr.test_suppressions OK
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-mtr.global_suppressions Table is already up to date
-mtr.test_suppressions Table is already up to date
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats
-note : Table does not support optimize, doing recreate + analyze instead
-status : OK
-mysql.innodb_table_stats
-note : Table does not support optimize, doing recreate + analyze instead
-status : OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry
-note : Table does not support optimize, doing recreate + analyze instead
-status : OK
-mysql.user OK
-mysql.column_stats OK
-mysql.columns_priv OK
-mysql.db OK
-mysql.event OK
-mysql.func OK
-mysql.gtid_slave_pos OK
-mysql.help_category OK
-mysql.help_keyword OK
-mysql.help_relation OK
-mysql.help_topic OK
-mysql.host OK
-mysql.index_stats OK
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin OK
-mysql.proc OK
-mysql.procs_priv OK
-mysql.proxies_priv OK
-mysql.roles_mapping OK
-mysql.servers OK
-mysql.table_stats OK
-mysql.tables_priv OK
-mysql.time_zone OK
-mysql.time_zone_leap_second OK
-mysql.time_zone_name OK
-mysql.time_zone_transition OK
-mysql.time_zone_transition_type OK
-mysql.transaction_registry OK
-mysql.user OK
-mysql.column_stats Table is already up to date
-mysql.columns_priv Table is already up to date
-mysql.db Table is already up to date
-mysql.event Table is already up to date
-mysql.func Table is already up to date
-mysql.gtid_slave_pos Table is already up to date
-mysql.help_category Table is already up to date
-mysql.help_keyword Table is already up to date
-mysql.help_relation Table is already up to date
-mysql.help_topic Table is already up to date
-mysql.host Table is already up to date
-mysql.index_stats Table is already up to date
-mysql.innodb_index_stats
-note : Table does not support optimize, doing recreate + analyze instead
-status : OK
-mysql.innodb_table_stats
-note : Table does not support optimize, doing recreate + analyze instead
-status : OK
-mysql.plugin Table is already up to date
-mysql.proc Table is already up to date
-mysql.procs_priv Table is already up to date
-mysql.proxies_priv Table is already up to date
-mysql.roles_mapping Table is already up to date
-mysql.servers Table is already up to date
-mysql.table_stats Table is already up to date
-mysql.tables_priv Table is already up to date
-mysql.time_zone Table is already up to date
-mysql.time_zone_leap_second Table is already up to date
-mysql.time_zone_name Table is already up to date
-mysql.time_zone_transition Table is already up to date
-mysql.time_zone_transition_type Table is already up to date
-mysql.transaction_registry
-note : Table does not support optimize, doing recreate + analyze instead
-status : OK
-mysql.user Table is already up to date
-create table t1 (a int) engine=myisam;
-create view v1 as select * from t1;
-test.t1 OK
-test.t1 Table is already up to date
-test.t1 OK
-test.t1 Table is already up to date
-drop view v1;
-drop table t1;
-create table `t``1`(a int) engine=myisam;
-create table `t 1`(a int) engine=myisam;
-test.t 1 OK
-test.t`1 OK
-drop table `t``1`, `t 1`;
-create database d_bug25347;
-use d_bug25347;
-create table t_bug25347 (a int) engine=myisam;
-create view v_bug25347 as select * from t_bug25347;
-insert into t_bug25347 values (1),(2),(3);
-flush tables;
-removing and creating
-d_bug25347.t_bug25347
-Error : Incorrect file format 't_bug25347'
-error : Corrupt
-insert into t_bug25347 values (4),(5),(6);
-ERROR HY000: Incorrect file format 't_bug25347'
-d_bug25347.t_bug25347
-warning : Number of rows changed from 0 to 3
-status : OK
-insert into t_bug25347 values (7),(8),(9);
-select * from t_bug25347;
-a
-1
-2
-3
-7
-8
-9
-select * from v_bug25347;
-a
-1
-2
-3
-7
-8
-9
-drop view v_bug25347;
-drop table t_bug25347;
-drop database d_bug25347;
-use test;
-create view v1 as select * from information_schema.routines;
-check table v1, information_schema.routines;
-Table Op Msg_type Msg_text
-test.v1 check status OK
-information_schema.routines check note The storage engine for the table doesn't support check
-drop view v1;
-call mtr.add_suppression("Error reading file './test/t1.frm'");
-CREATE TABLE t1(a INT) engine=myisam;
-CREATE TABLE t2(a INT) engine=myisam;
-test.t1
-Error : Incorrect information in file: './test/t1.frm'
-error : Corrupt
-test.t2 OK
-DROP TABLE t1, t2;
-End of 5.0 tests
-create table t1(a int) engine=myisam;
-create view v1 as select * from t1;
-show tables;
-Tables_in_test
-t1
-v1
-show tables;
-Tables_in_test
-#mysql50#v-1
-t1
-v1
-test.t1 OK
-show tables;
-Tables_in_test
-t1
-v-1
-v1
-drop view v1, `v-1`;
-drop table t1;
-SET NAMES utf8;
-CREATE TABLE `#mysql50#@` (a INT) engine=myisam;
-SHOW TABLES;
-Tables_in_test
-#mysql50#@
-SET NAMES DEFAULT;
-mysqlcheck --fix-table-names --databases test
-SET NAMES utf8;
-SHOW TABLES;
-Tables_in_test
-@
-DROP TABLE `@`;
-CREATE TABLE `Ñ` (a INT) engine=myisam;
-SET NAMES DEFAULT;
-call mtr.add_suppression("@003f.frm' \\(errno: 22\\)");
-mysqlcheck --default-character-set="latin1" --databases test
-call mtr.add_suppression("Can't find file: '..test.@003f.frm'");
-test.?
-Error : Table doesn't exist
-status : Operation failed
-mysqlcheck --default-character-set="utf8" --databases test
-test.Ñ OK
-SET NAMES utf8;
-DROP TABLE `Ñ`;
-SET NAMES DEFAULT;
-CREATE DATABASE `#mysql50#a@b`;
-USE `#mysql50#a@b`;
-CREATE TABLE `#mysql50#c@d` (a INT) engine=myisam;
-CREATE TABLE t1 (a INT) engine=myisam;
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS
-WHERE TRIGGER_SCHEMA="#mysql50#a@b" ORDER BY trigger_name;
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def #mysql50#a@b tr1 INSERT def #mysql50#a@b #mysql50#c@d 1 NULL SET NEW.a = 10 * NEW.a ROW BEFORE NULL NULL OLD NEW NULL root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-def #mysql50#a@b tr2 INSERT def #mysql50#a@b t1 1 NULL SET NEW.a = 100 * NEW.a ROW BEFORE NULL NULL OLD NEW NULL root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-mysqlcheck --fix-db-names --fix-table-names --all-databases
-USE `a@b`;
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS
-WHERE TRIGGER_SCHEMA="a@b" ORDER BY trigger_name;
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def a@b tr1 INSERT def a@b c@d 1 NULL SET NEW.a = 10 * NEW.a ROW BEFORE NULL NULL OLD NEW NULL root@localhost utf8 utf8_general_ci latin1_swedish_ci
-def a@b tr2 INSERT def a@b t1 1 NULL SET NEW.a = 100 * NEW.a ROW BEFORE NULL NULL OLD NEW NULL root@localhost utf8 utf8_general_ci latin1_swedish_ci
-INSERT INTO `c@d` VALUES (2), (1);
-SELECT * FROM `c@d`;
-a
-20
-10
-INSERT INTO t1 VALUES (3), (5);
-SELECT * FROM t1;
-a
-300
-500
-DROP DATABASE `a@b`;
-USE test;
-#
-# Bug #31821: --all-in-1 and --fix-table-names don't work together
-#
-drop table if exists `#mysql50#t1-1`;
-create table `#mysql50#t1-1` (a int) engine=myisam;
-show tables like 't1-1';
-Tables_in_test (t1-1)
-t1-1
-drop table `t1-1`;
-create table `#mysql50#t1-1` (a int) engine=myisam;
-show tables like 't1-1';
-Tables_in_test (t1-1)
-t1-1
-drop table `t1-1`;
-End of 5.1 tests
-#
-# Bug #35269: mysqlcheck behaves different depending on order of parameters
-#
-#
-# Bug#11755431 47205: MAP 'REPAIR TABLE' TO RECREATE +ANALYZE FOR
-# ENGINES NOT SUPPORTING NATIVE
-#
-DROP TABLE IF EXISTS bug47205;
-#
-# Test 1: Check that ALTER TABLE ... rebuilds the table
-CREATE TABLE bug47205(a VARCHAR(20) PRIMARY KEY)
-DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci engine=innodb;
-INSERT INTO bug47205 VALUES ("foobar");
-FLUSH TABLE bug47205;
-# Replace the FRM with a 5.0 FRM that will require upgrade
-# Should indicate that ALTER TABLE ... FORCE is needed
-CHECK TABLE bug47205 FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.bug47205 check error Table rebuild required. Please do "ALTER TABLE `bug47205` FORCE" or dump/reload to fix it!
-# ALTER TABLE ... FORCE should rebuild the table
-ALTER TABLE bug47205 FORCE;
-# Table should now be ok
-CHECK TABLE bug47205 FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.bug47205 check status OK
-DROP TABLE bug47205;
-#
-# Test 2: InnoDB - REPAIR not supported
-CREATE TABLE bug47205(a VARCHAR(20) PRIMARY KEY)
-DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci engine=innodb;
-FLUSH TABLE bug47205;
-# Replace the FRM with a 5.0 FRM that will require upgrade
-# Should indicate that ALTER TABLE .. FORCE is needed
-CHECK TABLE bug47205 FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.bug47205 check error Table rebuild required. Please do "ALTER TABLE `bug47205` FORCE" or dump/reload to fix it!
-# Running mysqlcheck to check and upgrade
-test.bug47205
-error : Table rebuild required. Please do "ALTER TABLE `bug47205` FORCE" or dump/reload to fix it!
-
-Repairing tables
-# Table should now be ok
-CHECK TABLE bug47205 FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.bug47205 check status OK
-DROP TABLE bug47205;
-#
-# Test 3: MyISAM - REPAIR supported
-# Use an old FRM that will require upgrade
-# Should indicate that REPAIR TABLE is needed
-CHECK TABLE bug47205 FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.bug47205 check error Upgrade required. Please do "REPAIR TABLE `bug47205`" or dump/reload to fix it!
-# Running mysqlcheck to check and upgrade
-test.bug47205 Needs upgrade
-
-Repairing tables
-test.bug47205 OK
-# Table should now be ok
-CHECK TABLE bug47205 FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.bug47205 check status OK
-DROP TABLE bug47205;
-#
-#MDEV-6128:[PATCH] mysqlcheck wrongly escapes '.' in table names
-#
-create table `t.1` (id int);
-create view `v.1` as select 1;
-mysqlcheck test t.1
-test.t.1 OK
-mysqlcheck --all-in-1 test t.1
-test.t.1 OK
-mysqlcheck --all-in-1 --databases --process-views test
-test.t.1 OK
-test.v.1 OK
-create table `t.2`(a varchar(20) primary key) default character set utf8 collate utf8_general_ci engine=innodb;
-flush table `t.2`;
-mysqlcheck --check-upgrade --auto-repair test
-test.t.1 OK
-test.t.2
-error : Table rebuild required. Please do "ALTER TABLE `t.2` FORCE" or dump/reload to fix it!
-test.t.3 Needs upgrade
-
-Repairing tables
-test.t.3 OK
-check table `t.1`, `t.2`, `t.3`;
-Table Op Msg_type Msg_text
-test.t.1 check status OK
-test.t.2 check status OK
-test.t.3 check status OK
-check table `t.1`, `t.2`, `t.3` for upgrade;
-Table Op Msg_type Msg_text
-test.t.1 check status OK
-test.t.2 check status OK
-test.t.3 check status OK
-drop view `v.1`;
-drop table test.`t.1`, `t.2`, `t.3`;
-#
-# MDEV-8123 mysqlcheck: new --process-views option conflicts with --quick, --extended and such
-#
-create view v1 as select 1;
-mysqlcheck --process-views test
-test.v1 OK
-mysqlcheck --process-views --extended test
-test.v1 OK
-mysqlcheck --process-views --fast test
-mysqlcheck --process-views --quick test
-test.v1 OK
-mysqlcheck --process-views --check-only-changed test
-mysqlcheck --process-views --medium-check test
-test.v1 OK
-mysqlcheck --process-views --check-upgrade test
-test.v1 OK
-drop view v1;
-#
-# MDEV-8124 mysqlcheck: --auto-repair runs REPAIR TABLE instead of REPAIR VIEW on views
-#
-create table t1(a int);
-mysqlcheck --process-views --check-upgrade --auto-repair test
-test.t1 OK
-test.v1 Needs upgrade
-
-Repairing views
-test.v1 OK
-drop view v1;
-drop table t1;
-create table `#mysql50#t1``1` (a int) engine=myisam;
-show tables;
-Tables_in_test
-t1`1
-drop table `t1``1`;
-call mtr.add_suppression("ha_myisam");
-call mtr.add_suppression("Checking table");
-create database mysqltest1;
-create table mysqltest1.t1 (a int) engine=myisam;
-create table t2 (a int);
-check table mysqltest1.t1;
-Table Op Msg_type Msg_text
-mysqltest1.t1 check warning Size of datafile is: 4 Should be: 0
-mysqltest1.t1 check error got error: 0 when reading datafile at record: 0
-mysqltest1.t1 check error Corrupt
-mtr.global_suppressions Table is already up to date
-mtr.test_suppressions Table is already up to date
-mysql.column_stats Table is already up to date
-mysql.columns_priv Table is already up to date
-mysql.db Table is already up to date
-mysql.event Table is already up to date
-mysql.func Table is already up to date
-mysql.gtid_slave_pos Table is already up to date
-mysql.help_category Table is already up to date
-mysql.help_keyword Table is already up to date
-mysql.help_relation Table is already up to date
-mysql.help_topic Table is already up to date
-mysql.host Table is already up to date
-mysql.index_stats Table is already up to date
-mysql.innodb_index_stats OK
-mysql.innodb_table_stats OK
-mysql.plugin Table is already up to date
-mysql.proc Table is already up to date
-mysql.procs_priv Table is already up to date
-mysql.proxies_priv Table is already up to date
-mysql.roles_mapping Table is already up to date
-mysql.servers Table is already up to date
-mysql.table_stats Table is already up to date
-mysql.tables_priv Table is already up to date
-mysql.time_zone Table is already up to date
-mysql.time_zone_leap_second Table is already up to date
-mysql.time_zone_name Table is already up to date
-mysql.time_zone_transition Table is already up to date
-mysql.time_zone_transition_type Table is already up to date
-mysql.transaction_registry OK
-mysql.user Table is already up to date
-mysqltest1.t1
-warning : Table is marked as crashed
-warning : Size of datafile is: 4 Should be: 0
-error : got error: 0 when reading datafile at record: 0
-error : Corrupt
-test.t2 Table is already up to date
-
-Repairing tables
-mysqltest1.t1 OK
-drop table t2;
-drop database mysqltest1;
-#
-#MDEV-7384 [PATCH] add PERSISENT FOR ALL option to mysqlanalyze/mysqlcheck
-#
-create table t1(a int);
-insert into t1 (a) values (1), (2), (3);
-select * from mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test.t1 Engine-independent statistics collected
-status : OK
-select * from mysql.column_stats where db_name = 'test' and table_name = 't1';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 1 3 0.0000 4.0000 1.0000 0 NULL NULL
-drop table t1;
diff --git a/mysql-test/r/mysqld--defaults-file.result b/mysql-test/r/mysqld--defaults-file.result
deleted file mode 100644
index 5fd5ca8d95a..00000000000
--- a/mysql-test/r/mysqld--defaults-file.result
+++ /dev/null
@@ -1,12 +0,0 @@
-Could not open required defaults file: /path/with/no/extension
-Fatal error in defaults handling. Program aborted
-Could not open required defaults file: /path/with.ext
-Fatal error in defaults handling. Program aborted
-Could not open required defaults file: MYSQL_TEST_DIR/relative/path/with.ext
-Fatal error in defaults handling. Program aborted
-Could not open required defaults file: MYSQL_TEST_DIR/relative/path/without/extension
-Fatal error in defaults handling. Program aborted
-Could not open required defaults file: MYSQL_TEST_DIR/with.ext
-Fatal error in defaults handling. Program aborted
-Could not open required defaults file: MYSQL_TEST_DIR/no_extension
-Fatal error in defaults handling. Program aborted
diff --git a/mysql-test/r/mysqld--help,win.rdiff b/mysql-test/r/mysqld--help,win.rdiff
deleted file mode 100644
index 367744f6f5d..00000000000
--- a/mysql-test/r/mysqld--help,win.rdiff
+++ /dev/null
@@ -1,124 +0,0 @@
---- a/mysql-test/r/mysqld--help.result
-+++ b/mysql-test/r/mysqld--help.result
-@@ -381,7 +381,6 @@ The following options may be given as the first argument:
- The number of segments in a key cache
- -L, --language=name Client error messages in given language. May be given as
- a full path. Deprecated. Use --lc-messages-dir instead.
-- --large-pages Enable support for large pages
- --lc-messages=name Set the language used for the error messages.
- -L, --lc-messages-dir=name
- Directory where error messages are
-@@ -603,6 +602,7 @@ The following options may be given as the first argument:
- Use MySQL-5.6 (instead of MariaDB-5.3) format for TIME,
- DATETIME, TIMESTAMP columns.
- (Defaults to on; use --skip-mysql56-temporal-format to disable.)
-+ --named-pipe Enable the named pipe (NT)
- --net-buffer-length=#
- Buffer length for TCP/IP and socket communication
- --net-read-timeout=#
-@@ -1048,6 +1048,9 @@ The following options may be given as the first argument:
- characteristics (isolation level, read only/read
- write,snapshot - but not any work done / data modified
- within the transaction).
-+ --shared-memory Enable the shared memory
-+ --shared-memory-base-name=name
-+ Base name of shared memory
- --show-slave-auth-info
- Show user and password in SHOW SLAVE HOSTS on this
- master.
-@@ -1171,6 +1174,10 @@ The following options may be given as the first argument:
- Log slow queries to given log file. Defaults logging to
- 'hostname'-slow.log. Must be enabled to activate other
- slow log options
-+ --slow-start-timeout=#
-+ Maximum number of milliseconds that the service control
-+ manager should wait before trying to kill the windows
-+ service during startup(Default: 15000).
- --socket=name Socket file to use for connection
- --sort-buffer-size=#
- Each thread that needs to do a sort allocates a buffer of
-@@ -1190,6 +1197,7 @@ The following options may be given as the first argument:
- EMPTY_STRING_IS_NULL, SIMULTANEOUS_ASSIGNMENT
- --stack-trace Print a symbolic stack trace on failure
- (Defaults to on; use --skip-stack-trace to disable.)
-+ --standalone Dummy option to start as a standalone program (NT).
- --standard-compliant-cte
- Allow only CTEs compliant to SQL standard
- (Defaults to on; use --skip-standard-compliant-cte to disable.)
-@@ -1257,6 +1265,11 @@ The following options may be given as the first argument:
- --thread-pool-max-threads=#
- Maximum allowed number of worker threads in the thread
- pool
-+ --thread-pool-min-threads=#
-+ Minimum number of threads in the thread pool.
-+ --thread-pool-mode=name
-+ Chose implementation of the threadpool. One of: windows,
-+ generic
- --thread-pool-oversubscribe=#
- How many additional active worker threads in a group are
- allowed.
-@@ -1295,8 +1308,8 @@ The following options may be given as the first argument:
- automatically convert it to an on-disk MyISAM or Aria
- table.
- -t, --tmpdir=name Path for temporary files. Several paths may be specified,
-- separated by a colon (:), in this case they are used in a
-- round-robin fashion
-+ separated by a semicolon (;), in this case they are used
-+ in a round-robin fashion
- --transaction-alloc-block-size=#
- Allocation block size for transactions to be stored in
- binary log
-@@ -1430,7 +1443,6 @@ key-cache-block-size 1024
- key-cache-division-limit 100
- key-cache-file-hash-size 512
- key-cache-segments 0
--large-pages FALSE
- lc-messages en_US
- lc-messages-dir MYSQL_SHAREDIR/
- lc-time-names en_US
-@@ -1502,6 +1514,7 @@ myisam-sort-buffer-size 134216704
- myisam-stats-method NULLS_UNEQUAL
- myisam-use-mmap FALSE
- mysql56-temporal-format TRUE
-+named-pipe FALSE
- net-buffer-length 16384
- net-read-timeout 30
- net-retry-count 10
-@@ -1612,6 +1625,8 @@ session-track-schema TRUE
- session-track-state-change FALSE
- session-track-system-variables autocommit,character_set_client,character_set_connection,character_set_results,time_zone
- session-track-transaction-info OFF
-+shared-memory FALSE
-+shared-memory-base-name MYSQL
- show-slave-auth-info FALSE
- silent-startup FALSE
- skip-grant-tables TRUE
-@@ -1638,6 +1653,7 @@ slave-transaction-retry-interval 0
- slave-type-conversions
- slow-launch-time 2
- slow-query-log FALSE
-+slow-start-timeout 15000
- sort-buffer-size 2097152
- sql-mode STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
- stack-trace TRUE
-@@ -1652,9 +1668,9 @@ sync-relay-log 10000
- sync-relay-log-info 10000
- sysdate-is-now FALSE
- system-versioning-alter-history ERROR
--table-cache 431
-+table-cache 2000
- table-definition-cache 400
--table-open-cache 431
-+table-open-cache 2000
- table-open-cache-instances 8
- tc-heuristic-recover OFF
- tcp-keepalive-interval 0
-@@ -1663,6 +1679,8 @@ tcp-keepalive-time 0
- thread-cache-size 151
- thread-pool-idle-timeout 60
- thread-pool-max-threads 65536
-+thread-pool-min-threads 1
-+thread-pool-mode windows
- thread-pool-oversubscribe 3
- thread-pool-prio-kickup-timer 1000
- thread-pool-priority auto
diff --git a/mysql-test/r/mysqld--help.result b/mysql-test/r/mysqld--help.result
deleted file mode 100644
index ef6a49df08b..00000000000
--- a/mysql-test/r/mysqld--help.result
+++ /dev/null
@@ -1,1687 +0,0 @@
-Windows bug: happens when a new line is exactly at the right offset.
-The following options may be given as the first argument:
---print-defaults Print the program argument list and exit.
---no-defaults Don't read default options from any option file.
---defaults-file=# Only read default options from the given file #.
---defaults-extra-file=# Read this file after the global files are read.
-
- --allow-suspicious-udfs
- Allows use of UDFs consisting of only one symbol xxx()
- without corresponding xxx_init() or xxx_deinit(). That
- also means that one can load any function from any
- library, for example exit() from libc.so
- -a, --ansi Use ANSI SQL syntax instead of MySQL syntax. This mode
- will also set transaction isolation level 'serializable'.
- --auto-increment-increment[=#]
- Auto-increment columns are incremented by this
- --auto-increment-offset[=#]
- Offset added to Auto-increment columns. Used when
- auto-increment-increment != 1
- --autocommit Set default value for autocommit (0 or 1)
- (Defaults to on; use --skip-autocommit to disable.)
- --automatic-sp-privileges
- Creating and dropping stored procedures alters ACLs
- (Defaults to on; use --skip-automatic-sp-privileges to disable.)
- --back-log=# The number of outstanding connection requests MariaDB can
- have. This comes into play when the main MariaDB thread
- gets very many connection requests in a very short time
- (Automatically configured unless set explicitly)
- -b, --basedir=name Path to installation directory. All paths are usually
- resolved relative to this
- --big-tables Old variable, which if set to 1, allows large result sets
- by saving all temporary sets to disk, avoiding 'table
- full' errors. No longer needed, as the server now handles
- this automatically. sql_big_tables is a synonym.
- --bind-address=name IP address to bind to.
- --binlog-annotate-row-events
- Tells the master to annotate RBR events with the
- statement that caused these events
- (Defaults to on; use --skip-binlog-annotate-row-events to disable.)
- --binlog-cache-size=#
- The size of the transactional cache for updates to
- transactional engines for the binary log. If you often
- use transactions containing many statements, you can
- increase this to get more performance
- --binlog-checksum=name
- Type of BINLOG_CHECKSUM_ALG. Include checksum for log
- events in the binary log. One of: NONE, CRC32
- --binlog-commit-wait-count=#
- If non-zero, binlog write will wait at most
- binlog_commit_wait_usec microseconds for at least this
- many commits to queue up for group commit to the binlog.
- This can reduce I/O on the binlog and provide increased
- opportunity for parallel apply on the slave, but too high
- a value will decrease commit throughput.
- --binlog-commit-wait-usec=#
- Maximum time, in microseconds, to wait for more commits
- to queue up for binlog group commit. Only takes effect if
- the value of binlog_commit_wait_count is non-zero.
- --binlog-direct-non-transactional-updates
- Causes updates to non-transactional engines using
- statement format to be written directly to binary log.
- Before using this option make sure that there are no
- dependencies between transactional and non-transactional
- tables such as in the statement INSERT INTO t_myisam
- SELECT * FROM t_innodb; otherwise, slaves may diverge
- from the master.
- --binlog-do-db=name Tells the master it should log updates for the specified
- database, and exclude all others not explicitly
- mentioned.
- --binlog-file-cache-size=#
- The size of file cache for the binary log
- --binlog-format=name
- What form of binary logging the master will use: either
- ROW for row-based binary logging, STATEMENT for
- statement-based binary logging, or MIXED. MIXED is
- statement-based binary logging except for those
- statements where only row-based is correct: those which
- involve user-defined functions (i.e. UDFs) or the UUID()
- function; for those, row-based binary logging is
- automatically used.
- --binlog-ignore-db=name
- Tells the master that updates to the given database
- should not be logged to the binary log.
- --binlog-optimize-thread-scheduling
- Run fast part of group commit in a single thread, to
- optimize kernel thread scheduling. On by default. Disable
- to run each transaction in group commit in its own
- thread, which can be slower at very high concurrency.
- This option is mostly for testing one algorithm versus
- the other, and it should not normally be necessary to
- change it.
- (Defaults to on; use --skip-binlog-optimize-thread-scheduling to disable.)
- --binlog-row-event-max-size=#
- The maximum size of a row-based binary log event in
- bytes. Rows will be grouped into events smaller than this
- size if possible. The value has to be a multiple of 256.
- --binlog-row-image=name
- Controls whether rows should be logged in 'FULL',
- 'NOBLOB' or 'MINIMAL' formats. 'FULL', means that all
- columns in the before and after image are logged.
- 'NOBLOB', means that mysqld avoids logging blob columns
- whenever possible (eg, blob column was not changed or is
- not part of primary key). 'MINIMAL', means that a PK
- equivalent (PK columns or full row if there is no PK in
- the table) is logged in the before image, and only
- changed columns are logged in the after image. (Default:
- FULL).
- --binlog-stmt-cache-size=#
- The size of the statement cache for updates to
- non-transactional engines for the binary log. If you
- often use statements updating a great number of rows, you
- can increase this to get more performance.
- --bootstrap Used by mysql installation scripts.
- --bulk-insert-buffer-size=#
- Size of tree cache used in bulk insert optimisation. Note
- that this is a limit per thread!
- --character-set-client-handshake
- Don't ignore client side character set value sent during
- handshake.
- (Defaults to on; use --skip-character-set-client-handshake to disable.)
- --character-set-filesystem=name
- Set the filesystem character set.
- -C, --character-set-server=name
- Set the default character set.
- --character-sets-dir=name
- Directory where character sets are
- -r, --chroot=name Chroot mysqld daemon during startup.
- --collation-server=name
- Set the default collation.
- --column-compression-threshold=#
- Minimum column data length eligible for compression
- --column-compression-zlib-level=#
- zlib compression level (1 gives best speed, 9 gives best
- compression)
- --column-compression-zlib-strategy=name
- The strategy parameter is used to tune the compression
- algorithm. Use the value DEFAULT_STRATEGY for normal
- data, FILTERED for data produced by a filter (or
- predictor), HUFFMAN_ONLY to force Huffman encoding only
- (no string match), or RLE to limit match distances to one
- (run-length encoding). Filtered data consists mostly of
- small values with a somewhat random distribution. In this
- case, the compression algorithm is tuned to compress them
- better. The effect of FILTERED is to force more Huffman
- coding and less string matching; it is somewhat
- intermediate between DEFAULT_STRATEGY and HUFFMAN_ONLY.
- RLE is designed to be almost as fast as HUFFMAN_ONLY, but
- give better compression for PNG image data. The strategy
- parameter only affects the compression ratio but not the
- correctness of the compressed output even if it is not
- set appropriately. FIXED prevents the use of dynamic
- Huffman codes, allowing for a simpler decoder for special
- applications.
- --column-compression-zlib-wrap
- Generate zlib header and trailer and compute adler32
- check value. It can be used with storage engines that
- don't provide data integrity verification to detect data
- corruption.
- --completion-type=name
- The transaction completion type. One of: NO_CHAIN, CHAIN,
- RELEASE
- --concurrent-insert[=name]
- Use concurrent insert with MyISAM. One of: NEVER, AUTO,
- ALWAYS
- --console Write error output on screen; don't remove the console
- window on windows.
- --core-file Write core on errors.
- -h, --datadir=name Path to the database root directory
- --date-format=name The DATE format (ignored)
- --datetime-format=name
- The DATETIME format (ignored)
- --deadlock-search-depth-long=#
- Long search depth for the two-step deadlock detection
- --deadlock-search-depth-short=#
- Short search depth for the two-step deadlock detection
- --deadlock-timeout-long=#
- Long timeout for the two-step deadlock detection (in
- microseconds)
- --deadlock-timeout-short=#
- Short timeout for the two-step deadlock detection (in
- microseconds)
- --default-regex-flags=name
- Default flags for the regex library. Any combination of:
- DOTALL, DUPNAMES, EXTENDED, EXTRA, MULTILINE, UNGREEDY
- --default-storage-engine=name
- The default storage engine for new tables
- --default-time-zone=name
- Set the default time zone.
- --default-tmp-storage-engine=name
- The default storage engine for user-created temporary
- tables
- --default-week-format=#
- The default week format used by WEEK() functions
- --delay-key-write[=name]
- Specifies how MyISAM tables handles CREATE TABLE
- DELAY_KEY_WRITE. If set to ON, the default, any DELAY KEY
- WRITEs are honored. The key buffer is then flushed only
- when the table closes, speeding up writes. MyISAM tables
- should be automatically checked upon startup in this
- case, and --external locking should not be used, as it
- can lead to index corruption. If set to OFF, DELAY KEY
- WRITEs are ignored, while if set to ALL, all new opened
- tables are treated as if created with DELAY KEY WRITEs
- enabled.
- --delayed-insert-limit=#
- After inserting delayed_insert_limit rows, the INSERT
- DELAYED handler will check if there are any SELECT
- statements pending. If so, it allows these to execute
- before continuing.
- --delayed-insert-timeout=#
- How long a INSERT DELAYED thread should wait for INSERT
- statements before terminating
- --delayed-queue-size=#
- What size queue (in rows) should be allocated for
- handling INSERT DELAYED. If the queue becomes full, any
- client that does INSERT DELAYED will wait until there is
- room in the queue again
- --div-precision-increment=#
- Precision of the result of '/' operator will be increased
- on that value
- --encrypt-binlog Encrypt binary logs (including relay logs)
- --encrypt-tmp-disk-tables
- Encrypt temporary on-disk tables (created as part of
- query execution)
- --encrypt-tmp-files Encrypt temporary files (created for filesort, binary log
- cache, etc)
- --enforce-storage-engine=name
- Force the use of a storage engine for new tables
- --event-scheduler[=name]
- Enable the event scheduler. Possible values are ON, OFF,
- and DISABLED (keep the event scheduler completely
- deactivated, it cannot be activated run-time)
- --expensive-subquery-limit=#
- The maximum number of rows a subquery may examine in
- order to be executed during optimization and used for
- constant optimization
- --expire-logs-days=#
- If non-zero, binary logs will be purged after
- expire_logs_days days; possible purges happen at startup
- and at binary log rotation
- --explicit-defaults-for-timestamp
- This option causes CREATE TABLE to create all TIMESTAMP
- columns as NULL with DEFAULT NULL attribute, Without this
- option, TIMESTAMP columns are NOT NULL and have implicit
- DEFAULT clauses.
- --external-locking Use system (external) locking (disabled by default).
- With this option enabled you can run myisamchk to test
- (not repair) tables while the MySQL server is running.
- Disable with --skip-external-locking.
- --extra-max-connections=#
- The number of connections on extra-port
- --extra-port=# Extra port number to use for tcp connections in a
- one-thread-per-connection manner. 0 means don't use
- another port
- --flashback Setup the server to use flashback. This enables binary
- log in row mode and will enable extra logging for DDL's
- needed by flashback feature
- --flush Flush MyISAM tables to disk between SQL commands
- --flush-time=# A dedicated thread is created to flush all tables at the
- given interval
- --ft-boolean-syntax=name
- List of operators for MATCH ... AGAINST ( ... IN BOOLEAN
- MODE)
- --ft-max-word-len=# The maximum length of the word to be included in a
- FULLTEXT index. Note: FULLTEXT indexes must be rebuilt
- after changing this variable
- --ft-min-word-len=# The minimum length of the word to be included in a
- FULLTEXT index. Note: FULLTEXT indexes must be rebuilt
- after changing this variable
- --ft-query-expansion-limit=#
- Number of best matches to use for query expansion
- --ft-stopword-file=name
- Use stopwords from this file instead of built-in list
- --gdb Set up signals usable for debugging. Deprecated, use
- --general-log Log connections and queries to a table or log file.
- Defaults logging to a file 'hostname'.log or a table
- mysql.general_logif --log-output=TABLE is used.
- --general-log-file=name
- Log connections and queries to given file
- --getopt-prefix-matching
- Recognize command-line options by their unambiguos
- prefixes.
- (Defaults to on; use --skip-getopt-prefix-matching to disable.)
- --group-concat-max-len=#
- The maximum length of the result of function
- GROUP_CONCAT()
- --gtid-domain-id=# Used with global transaction ID to identify logically
- independent replication streams. When events can
- propagate through multiple parallel paths (for example
- multiple masters), each independent source server must
- use a distinct domain_id. For simple tree-shaped
- replication topologies, it can be left at its default, 0.
- --gtid-ignore-duplicates
- When set, different master connections in multi-source
- replication are allowed to receive and process event
- groups with the same GTID (when using GTID mode). Only
- one will be applied, any others will be ignored. Within a
- given replication domain, just the sequence number will
- be used to decide whether a given GTID has been already
- applied; this means it is the responsibility of the user
- to ensure that GTID sequence numbers are strictly
- increasing.
- --gtid-pos-auto-engines=name
- List of engines for which to automatically create a
- mysql.gtid_slave_pos_ENGINE table, if a transaction using
- that engine is replicated. This can be used to avoid
- introducing cross-engine transactions, if engines are
- used different from that used by table
- mysql.gtid_slave_pos
- --gtid-strict-mode Enforce strict seq_no ordering of events in the binary
- log. Slave stops with an error if it encounters an event
- that would cause it to generate an out-of-order binlog if
- executed.
- -?, --help Display this help and exit.
- --histogram-size=# Number of bytes used for a histogram. If set to 0, no
- histograms are created by ANALYZE.
- --histogram-type=name
- Specifies type of the histograms created by ANALYZE.
- Possible values are: SINGLE_PREC_HB - single precision
- height-balanced, DOUBLE_PREC_HB - double precision
- height-balanced.
- --host-cache-size=# How many host names should be cached to avoid resolving.
- (Automatically configured unless set explicitly)
- --idle-readonly-transaction-timeout=#
- The number of seconds the server waits for read-only idle
- transaction
- --idle-transaction-timeout=#
- The number of seconds the server waits for idle
- transaction
- --idle-write-transaction-timeout=#
- The number of seconds the server waits for write idle
- transaction
- --ignore-builtin-innodb
- Disable initialization of builtin InnoDB plugin
- --ignore-db-dirs=name
- Specifies a directory to add to the ignore list when
- collecting database names from the datadir. Put a blank
- argument to reset the list accumulated so far.
- --init-connect=name Command(s) that are executed for each new connection
- (unless the user has SUPER privilege)
- --init-file=name Read SQL commands from this file at startup
- --init-rpl-role=name
- Set the replication role. One of: MASTER, SLAVE
- --init-slave=name Command(s) that are executed by a slave server each time
- the SQL thread starts
- --interactive-timeout=#
- The number of seconds the server waits for activity on an
- interactive connection before closing it
- --join-buffer-size=#
- The size of the buffer that is used for joins
- --join-buffer-space-limit=#
- The limit of the space for all join buffers used by a
- query
- --join-cache-level=#
- Controls what join operations can be executed with join
- buffers. Odd numbers are used for plain join buffers
- while even numbers are used for linked buffers
- --keep-files-on-create
- Don't overwrite stale .MYD and .MYI even if no directory
- is specified
- --key-buffer-size=# The size of the buffer used for index blocks for MyISAM
- tables. Increase this to get better index handling (for
- all reads and multiple writes) to as much as you can
- afford
- --key-cache-age-threshold=#
- This characterizes the number of hits a hot block has to
- be untouched until it is considered aged enough to be
- downgraded to a warm block. This specifies the percentage
- ratio of that number of hits to the total number of
- blocks in key cache
- --key-cache-block-size=#
- The default size of key cache blocks
- --key-cache-division-limit=#
- The minimum percentage of warm blocks in key cache
- --key-cache-file-hash-size=#
- Number of hash buckets for open and changed files. If
- you have a lot of MyISAM files open you should increase
- this for faster flush of changes. A good value is
- probably 1/10 of number of possible open MyISAM files.
- --key-cache-segments=#
- The number of segments in a key cache
- -L, --language=name Client error messages in given language. May be given as
- a full path. Deprecated. Use --lc-messages-dir instead.
- --large-pages Enable support for large pages
- --lc-messages=name Set the language used for the error messages.
- -L, --lc-messages-dir=name
- Directory where error messages are
- --lc-time-names=name
- Set the language used for the month names and the days of
- the week.
- --local-infile Enable LOAD DATA LOCAL INFILE
- (Defaults to on; use --skip-local-infile to disable.)
- --lock-wait-timeout=#
- Timeout in seconds to wait for a lock before returning an
- error.
- --log-basename=name Basename for all log files and the .pid file. This sets
- all log file names at once (in 'datadir') and is normally
- the only option you need for specifying log files. Sets
- names for --log-bin, --log-bin-index, --relay-log,
- --relay-log-index, --general-log-file,
- --log-slow-query-log-file, --log-error-file, and
- --pid-file
- --log-bin[=name] Log update queries in binary format. Optional argument
- should be name for binary log. If not given
- 'datadir'/'log-basename'-bin or 'datadir'/mysql-bin will
- be used (the later if --log-basename is not specified).
- We strongly recommend to use either --log-basename or
- specify a filename to ensure that replication doesn't
- stop if the real hostname of the computer changes.
- --log-bin-compress Whether the binary log can be compressed
- --log-bin-compress-min-len[=#]
- Minimum length of sql statement(in statement mode) or
- record(in row mode)that can be compressed.
- --log-bin-index=name
- File that holds the names for last binary log files.
- --log-bin-trust-function-creators
- If set to FALSE (the default), then when --log-bin is
- used, creation of a stored function (or trigger) is
- allowed only to users having the SUPER privilege and only
- if this stored function (trigger) may not break binary
- logging. Note that if ALL connections to this server
- ALWAYS use row-based binary logging, the security issues
- do not exist and the binary logging cannot break, so you
- can safely set this to TRUE
- --log-disabled-statements=name
- Don't log certain types of statements to general log. Any
- combination of: slave, sp
- --log-error[=name] Log errors to file (instead of stdout). If file name is
- not specified then 'datadir'/'log-basename'.err or the
- 'pid-file' path with extension .err is used
- --log-isam[=name] Log all MyISAM changes to file.
- --log-output=name How logs should be written. Any combination of: NONE,
- FILE, TABLE
- --log-queries-not-using-indexes
- Log queries that are executed without benefit of any
- index to the slow log if it is open. Same as
- log_slow_filter='not_using_index'
- --log-short-format Don't log extra information to update and slow-query
- logs.
- --log-slave-updates Tells the slave to log the updates from the slave thread
- to the binary log. You will need to turn it on if you
- plan to daisy-chain the slaves.
- --log-slow-admin-statements
- Log slow OPTIMIZE, ANALYZE, ALTER and other
- administrative statements to the slow log if it is open.
- Resets or sets the option 'admin' in
- log_slow_disabled_statements
- --log-slow-disabled-statements=name
- Don't log certain types of statements to slow log. Any
- combination of: admin, call, slave, sp
- --log-slow-filter=name
- Log only certain types of queries to the slow log. If
- variable empty alll kind of queries are logged. All
- types are bound by slow_query_time, except
- 'not_using_index' which is always logged if enabled. Any
- combination of: admin, filesort, filesort_on_disk,
- filesort_priority_queue, full_join, full_scan,
- not_using_index, query_cache, query_cache_miss, tmp_table,
- tmp_table_on_disk
- --log-slow-rate-limit=#
- Write to slow log every #th slow query. Set to 1 to log
- everything. Increase it to reduce the size of the slow or
- the performance impact of slow logging
- --log-slow-slave-statements
- Log slow statements executed by slave thread to the slow
- log if it is open. Resets or sets the option 'slave' in
- log_slow_disabled_statements
- --log-slow-verbosity=name
- Verbosity level for the slow log. Any combination of:
- innodb, query_plan, explain
- --log-tc=name Path to transaction coordinator log (used for
- transactions that affect more than one storage engine,
- when binary log is disabled).
- --log-tc-size=# Size of transaction coordinator log.
- -W, --log-warnings[=#]
- Log some not critical warnings to the general log
- file.Value can be between 0 and 11. Higher values mean
- more verbosity
- --long-query-time=# Log all queries that have taken more than long_query_time
- seconds to execute to the slow query log file. The
- argument will be treated as a decimal value with
- microsecond precision
- --low-priority-updates
- INSERT/DELETE/UPDATE has lower priority than selects
- --lower-case-table-names[=#]
- If set to 1 table names are stored in lowercase on disk
- and table names will be case-insensitive. Should be set
- to 2 if you are using a case insensitive file system
- --master-info-file=name
- The location and name of the file that remembers the
- master and where the I/O replication thread is in the
- master's binlogs. Defaults to master.info
- --master-retry-count=#
- The number of tries the slave will make to connect to the
- master before giving up.
- --master-verify-checksum
- Force checksum verification of logged events in the
- binary log before sending them to slaves or printing them
- in the output of SHOW BINLOG EVENTS
- --max-allowed-packet=#
- Max packet length to send to or receive from the server
- --max-binlog-cache-size=#
- Sets the total size of the transactional cache
- --max-binlog-size=# Binary log will be rotated automatically when the size
- exceeds this value.
- --max-binlog-stmt-cache-size=#
- Sets the total size of the statement cache
- --max-connect-errors=#
- If there is more than this number of interrupted
- connections from a host this host will be blocked from
- further connections
- --max-connections=# The number of simultaneous clients allowed
- --max-delayed-threads=#
- Don't start more than this number of threads to handle
- INSERT DELAYED statements. If set to zero INSERT DELAYED
- will be not used
- --max-digest-length=#
- Maximum length considered for digest text.
- --max-error-count=# Max number of errors/warnings to store for a statement
- --max-heap-table-size=#
- Don't allow creation of heap tables bigger than this
- --max-join-size=# Joins that are probably going to read more than
- max_join_size records return an error
- --max-length-for-sort-data=#
- Max number of bytes in sorted records
- --max-long-data-size=#
- The maximum BLOB length to send to server from
- mysql_send_long_data API. Deprecated option; use
- max_allowed_packet instead.
- --max-prepared-stmt-count=#
- Maximum number of prepared statements in the server
- --max-recursive-iterations[=#]
- Maximum number of iterations when executing recursive
- queries
- --max-relay-log-size=#
- relay log will be rotated automatically when the size
- exceeds this value. If 0 at startup, it's set to
- max_binlog_size
- --max-seeks-for-key=#
- Limit assumed max number of seeks when looking up rows
- based on a key
- --max-session-mem-used=#
- Amount of memory a single user session is allowed to
- allocate. This limits the value of the session variable
- MEM_USED
- --max-sort-length=# The number of bytes to use when sorting BLOB or TEXT
- values (only the first max_sort_length bytes of each
- value are used; the rest are ignored)
- --max-sp-recursion-depth[=#]
- Maximum stored procedure recursion depth
- --max-statement-time=#
- A query that has taken more than max_statement_time
- seconds will be aborted. The argument will be treated as
- a decimal value with microsecond precision. A value of 0
- (default) means no timeout
- --max-tmp-tables=# Unused, will be removed.
- --max-user-connections=#
- The maximum number of active connections for a single
- user (0 = no limit)
- --max-write-lock-count=#
- After this many write locks, allow some read locks to run
- in between
- --memlock Lock mysqld in memory.
- --metadata-locks-cache-size=#
- Unused
- --metadata-locks-hash-instances=#
- Unused
- --min-examined-row-limit=#
- Don't write queries to slow log that examine fewer rows
- than that
- --mrr-buffer-size=# Size of buffer to use when using MRR with range access
- --multi-range-count=#
- Ignored. Use mrr_buffer_size instead
- --myisam-block-size=#
- Block size to be used for MyISAM index pages
- --myisam-data-pointer-size=#
- Default pointer size to be used for MyISAM tables
- --myisam-max-sort-file-size=#
- Don't use the fast sort index method to created index if
- the temporary file would get bigger than this
- --myisam-mmap-size=#
- Restricts the total memory used for memory mapping of
- MySQL tables
- --myisam-recover-options[=name]
- Specifies how corrupted tables should be automatically
- repaired. Any combination of: DEFAULT, BACKUP, FORCE,
- QUICK, BACKUP_ALL, OFF
- --myisam-repair-threads=#
- If larger than 1, when repairing a MyISAM table all
- indexes will be created in parallel, with one thread per
- index. The value of 1 disables parallel repair
- --myisam-sort-buffer-size=#
- The buffer that is allocated when sorting the index when
- doing a REPAIR or when creating indexes with CREATE INDEX
- or ALTER TABLE
- --myisam-stats-method=name
- Specifies how MyISAM index statistics collection code
- should treat NULLs. Possible values of name are
- NULLS_UNEQUAL (default behavior for 4.1 and later),
- NULLS_EQUAL (emulate 4.0 behavior), and NULLS_IGNORED
- --myisam-use-mmap Use memory mapping for reading and writing MyISAM tables
- --mysql56-temporal-format
- Use MySQL-5.6 (instead of MariaDB-5.3) format for TIME,
- DATETIME, TIMESTAMP columns.
- (Defaults to on; use --skip-mysql56-temporal-format to disable.)
- --net-buffer-length=#
- Buffer length for TCP/IP and socket communication
- --net-read-timeout=#
- Number of seconds to wait for more data from a connection
- before aborting the read
- --net-retry-count=# If a read on a communication port is interrupted, retry
- this many times before giving up
- --net-write-timeout=#
- Number of seconds to wait for a block to be written to a
- connection before aborting the write
- --old Use compatible behavior from previous MariaDB version.
- See also --old-mode
- --old-alter-table Use old, non-optimized alter table
- --old-mode=name Used to emulate old behavior from earlier MariaDB or
- MySQL versions. Any combination of:
- NO_DUP_KEY_WARNINGS_WITH_IGNORE, NO_PROGRESS_INFO,
- ZERO_DATE_TIME_CAST
- --old-passwords Use old password encryption method (needed for 4.0 and
- older clients)
- --old-style-user-limits
- Enable old-style user limits (before 5.0.3, user
- resources were counted per each user+host vs. per
- account).
- --open-files-limit=#
- If this is not 0, then mysqld will use this value to
- reserve file descriptors to use with setrlimit(). If this
- value is 0 or autoset then mysqld will reserve
- max_connections*5 or max_connections + table_cache*2
- (whichever is larger) number of file descriptors
- (Automatically configured unless set explicitly)
- --optimizer-prune-level=#
- Controls the heuristic(s) applied during query
- optimization to prune less-promising partial plans from
- the optimizer search space. Meaning: 0 - do not apply any
- heuristic, thus perform exhaustive search; 1 - prune
- plans based on number of retrieved rows
- --optimizer-search-depth=#
- Maximum depth of search performed by the query optimizer.
- Values larger than the number of relations in a query
- result in better query plans, but take longer to compile
- a query. Values smaller than the number of tables in a
- relation result in faster optimization, but may produce
- very bad query plans. If set to 0, the system will
- automatically pick a reasonable value.
- --optimizer-selectivity-sampling-limit=#
- Controls number of record samples to check condition
- selectivity
- --optimizer-switch=name
- Fine-tune the optimizer behavior. Takes a comma-separated
- list of option=value pairs, where value is on, off, or
- default, and options are: index_merge, index_merge_union,
- index_merge_sort_union, index_merge_intersection,
- index_merge_sort_intersection, engine_condition_pushdown,
- index_condition_pushdown, derived_merge,
- derived_with_keys, firstmatch, loosescan, materialization,
- in_to_exists, semijoin, partial_match_rowid_merge,
- partial_match_table_scan, subquery_cache, mrr,
- mrr_cost_based, mrr_sort_keys, outer_join_with_cache,
- semijoin_with_cache, join_cache_incremental,
- join_cache_hashed, join_cache_bka,
- optimize_join_buffer_size, table_elimination,
- extended_keys, exists_to_in, orderby_uses_equalities,
- condition_pushdown_for_derived, split_materialized
- --optimizer-use-condition-selectivity=#
- Controls selectivity of which conditions the optimizer
- takes into account to calculate cardinality of a partial
- join when it searches for the best execution plan
- Meaning: 1 - use selectivity of index backed range
- conditions to calculate the cardinality of a partial join
- if the last joined table is accessed by full table scan
- or an index scan, 2 - use selectivity of index backed
- range conditions to calculate the cardinality of a
- partial join in any case, 3 - additionally always use
- selectivity of range conditions that are not backed by
- any index to calculate the cardinality of a partial join,
- 4 - use histograms to calculate selectivity of range
- conditions that are not backed by any index to calculate
- the cardinality of a partial join.5 - additionally use
- selectivity of certain non-range predicates calculated on
- record samples
- --performance-schema
- Enable the performance schema.
- --performance-schema-accounts-size=#
- Maximum number of instrumented user@host accounts. Use 0
- to disable, -1 for automated sizing.
- --performance-schema-consumer-events-stages-current
- Default startup value for the events_stages_current
- consumer.
- --performance-schema-consumer-events-stages-history
- Default startup value for the events_stages_history
- consumer.
- --performance-schema-consumer-events-stages-history-long
- Default startup value for the events_stages_history_long
- consumer.
- --performance-schema-consumer-events-statements-current
- Default startup value for the events_statements_current
- consumer.
- (Defaults to on; use --skip-performance-schema-consumer-events-statements-current to disable.)
- --performance-schema-consumer-events-statements-history
- Default startup value for the events_statements_history
- consumer.
- --performance-schema-consumer-events-statements-history-long
- Default startup value for the
- events_statements_history_long consumer.
- --performance-schema-consumer-events-waits-current
- Default startup value for the events_waits_current
- consumer.
- --performance-schema-consumer-events-waits-history
- Default startup value for the events_waits_history
- consumer.
- --performance-schema-consumer-events-waits-history-long
- Default startup value for the events_waits_history_long
- consumer.
- --performance-schema-consumer-global-instrumentation
- Default startup value for the global_instrumentation
- consumer.
- (Defaults to on; use --skip-performance-schema-consumer-global-instrumentation to disable.)
- --performance-schema-consumer-statements-digest
- Default startup value for the statements_digest consumer.
- (Defaults to on; use --skip-performance-schema-consumer-statements-digest to disable.)
- --performance-schema-consumer-thread-instrumentation
- Default startup value for the thread_instrumentation
- consumer.
- (Defaults to on; use --skip-performance-schema-consumer-thread-instrumentation to disable.)
- --performance-schema-digests-size=#
- Size of the statement digest. Use 0 to disable, -1 for
- automated sizing.
- --performance-schema-events-stages-history-long-size=#
- Number of rows in EVENTS_STAGES_HISTORY_LONG. Use 0 to
- disable, -1 for automated sizing.
- --performance-schema-events-stages-history-size=#
- Number of rows per thread in EVENTS_STAGES_HISTORY. Use 0
- to disable, -1 for automated sizing.
- --performance-schema-events-statements-history-long-size=#
- Number of rows in EVENTS_STATEMENTS_HISTORY_LONG. Use 0
- to disable, -1 for automated sizing.
- --performance-schema-events-statements-history-size=#
- Number of rows per thread in EVENTS_STATEMENTS_HISTORY.
- Use 0 to disable, -1 for automated sizing.
- --performance-schema-events-waits-history-long-size=#
- Number of rows in EVENTS_WAITS_HISTORY_LONG. Use 0 to
- disable, -1 for automated sizing.
- --performance-schema-events-waits-history-size=#
- Number of rows per thread in EVENTS_WAITS_HISTORY. Use 0
- to disable, -1 for automated sizing.
- --performance-schema-hosts-size=#
- Maximum number of instrumented hosts. Use 0 to disable,
- -1 for automated sizing.
- --performance-schema-instrument[=name]
- Default startup value for a performance schema
- instrument.
- --performance-schema-max-cond-classes=#
- Maximum number of condition instruments.
- --performance-schema-max-cond-instances=#
- Maximum number of instrumented condition objects. Use 0
- to disable, -1 for automated sizing.
- --performance-schema-max-digest-length=#
- Maximum length considered for digest text, when stored in
- performance_schema tables.
- --performance-schema-max-file-classes=#
- Maximum number of file instruments.
- --performance-schema-max-file-handles=#
- Maximum number of opened instrumented files.
- --performance-schema-max-file-instances=#
- Maximum number of instrumented files. Use 0 to disable,
- -1 for automated sizing.
- --performance-schema-max-mutex-classes=#
- Maximum number of mutex instruments.
- --performance-schema-max-mutex-instances=#
- Maximum number of instrumented MUTEX objects. Use 0 to
- disable, -1 for automated sizing.
- --performance-schema-max-rwlock-classes=#
- Maximum number of rwlock instruments.
- --performance-schema-max-rwlock-instances=#
- Maximum number of instrumented RWLOCK objects. Use 0 to
- disable, -1 for automated sizing.
- --performance-schema-max-socket-classes=#
- Maximum number of socket instruments.
- --performance-schema-max-socket-instances=#
- Maximum number of opened instrumented sockets. Use 0 to
- disable, -1 for automated sizing.
- --performance-schema-max-stage-classes=#
- Maximum number of stage instruments.
- --performance-schema-max-statement-classes=#
- Maximum number of statement instruments.
- --performance-schema-max-table-handles=#
- Maximum number of opened instrumented tables. Use 0 to
- disable, -1 for automated sizing.
- --performance-schema-max-table-instances=#
- Maximum number of instrumented tables. Use 0 to disable,
- -1 for automated sizing.
- --performance-schema-max-thread-classes=#
- Maximum number of thread instruments.
- --performance-schema-max-thread-instances=#
- Maximum number of instrumented threads. Use 0 to disable,
- -1 for automated sizing.
- --performance-schema-session-connect-attrs-size=#
- Size of session attribute string buffer per thread. Use 0
- to disable, -1 for automated sizing.
- --performance-schema-setup-actors-size=#
- Maximum number of rows in SETUP_ACTORS.
- --performance-schema-setup-objects-size=#
- Maximum number of rows in SETUP_OBJECTS.
- --performance-schema-users-size=#
- Maximum number of instrumented users. Use 0 to disable,
- -1 for automated sizing.
- --pid-file=name Pid file used by safe_mysqld
- --plugin-dir=name Directory for plugins
- --plugin-load=name Semicolon-separated list of plugins to load, where each
- plugin is specified as ether a plugin_name=library_file
- pair or only a library_file. If the latter case, all
- plugins from a given library_file will be loaded.
- --plugin-load-add=name
- Optional semicolon-separated list of plugins to load.
- This option adds to the list specified by --plugin-load
- in an incremental way. It can be specified many times,
- adding more plugins every time.
- --plugin-maturity=name
- The lowest desirable plugin maturity. Plugins less mature
- than that will not be installed or loaded. One of:
- unknown, experimental, alpha, beta, gamma, stable
- -P, --port=# Port number to use for connection or 0 to default to,
- my.cnf, $MYSQL_TCP_PORT, /etc/services, built-in default
- (3306), whatever comes first
- --port-open-timeout=#
- Maximum time in seconds to wait for the port to become
- free. (Default: No wait).
- --preload-buffer-size=#
- The size of the buffer that is allocated when preloading
- indexes
- --profiling-history-size=#
- Number of statements about which profiling information is
- maintained. If set to 0, no profiles are stored. See SHOW
- PROFILES.
- --progress-report-time=#
- Seconds between sending progress reports to the client
- for time-consuming statements. Set to 0 to disable
- progress reporting.
- --proxy-protocol-networks=name
- Enable proxy protocol for these source networks. The
- syntax is a comma separated list of IPv4 and IPv6
- networks. If the network doesn't contain mask, it is
- considered to be a single host. "*" represents all
- networks and must the only directive on the line. String
- "localhost" represents non-TCP local connections (Unix
- domain socket, Windows named pipe or shared memory).
- --query-alloc-block-size=#
- Allocation block size for query parsing and execution
- --query-cache-limit=#
- Don't cache results that are bigger than this
- --query-cache-min-res-unit=#
- The minimum size for blocks allocated by the query cache
- --query-cache-size=#
- The memory allocated to store results from old queries
- --query-cache-strip-comments
- Strip all comments from a query before storing it in the
- query cache
- --query-cache-type=name
- OFF = Don't cache or retrieve results. ON = Cache all
- results except SELECT SQL_NO_CACHE ... queries. DEMAND =
- Cache only SELECT SQL_CACHE ... queries
- --query-cache-wlock-invalidate
- Invalidate queries in query cache on LOCK for write
- --query-prealloc-size=#
- Persistent buffer for query parsing and execution
- --range-alloc-block-size=#
- Allocation block size for storing ranges during
- optimization
- --read-binlog-speed-limit=#
- Maximum speed(KB/s) to read binlog from master (0 = no
- limit)
- --read-buffer-size=#
- Each thread that does a sequential scan allocates a
- buffer of this size for each table it scans. If you do
- many sequential scans, you may want to increase this
- value
- --read-only Make all non-temporary tables read-only, with the
- exception for replication (slave) threads and users with
- the SUPER privilege
- --read-rnd-buffer-size=#
- When reading rows in sorted order after a sort, the rows
- are read through this buffer to avoid a disk seeks
- --relay-log=name The location and name to use for relay logs.
- --relay-log-index=name
- The location and name to use for the file that keeps a
- list of the last relay logs
- --relay-log-info-file=name
- The location and name of the file that remembers where
- the SQL replication thread is in the relay logs.
- --relay-log-purge if disabled - do not purge relay logs. if enabled - purge
- them as soon as they are no more needed.
- (Defaults to on; use --skip-relay-log-purge to disable.)
- --relay-log-recovery
- Enables automatic relay log recovery right after the
- database startup, which means that the IO Thread starts
- re-fetching from the master right after the last
- transaction processed.
- --relay-log-space-limit=#
- Maximum space to use for all relay logs
- --replicate-annotate-row-events
- Tells the slave to write annotate rows events received
- from the master to its own binary log. Ignored if
- log_slave_updates is not set
- (Defaults to on; use --skip-replicate-annotate-row-events to disable.)
- --replicate-do-db=name
- Tells the slave thread to restrict replication to the
- specified database. To specify more than one database,
- use the directive multiple times, once for each database.
- Note that this will only work if you do not use
- cross-database queries such as UPDATE some_db.some_table
- SET foo='bar' while having selected a different or no
- database. If you need cross database updates to work,
- make sure you have 3.23.28 or later, and use
- replicate-wild-do-table=db_name.%.
- --replicate-do-table=name
- Tells the slave thread to restrict replication to the
- specified table. To specify more than one table, use the
- directive multiple times, once for each table. This will
- work for cross-database updates, in contrast to
- replicate-do-db.
- --replicate-events-marked-for-skip=name
- Whether the slave should replicate events that were
- created with @@skip_replication=1 on the master. Default
- REPLICATE (no events are skipped). Other values are
- FILTER_ON_SLAVE (events will be sent by the master but
- ignored by the slave) and FILTER_ON_MASTER (events marked
- with @@skip_replication=1 will be filtered on the master
- and never be sent to the slave).
- --replicate-ignore-db=name
- Tells the slave thread to not replicate to the specified
- database. To specify more than one database to ignore,
- use the directive multiple times, once for each database.
- This option will not work if you use cross database
- updates. If you need cross database updates to work, make
- sure you have 3.23.28 or later, and use
- replicate-wild-ignore-table=db_name.%.
- --replicate-ignore-table=name
- Tells the slave thread to not replicate to the specified
- table. To specify more than one table to ignore, use the
- directive multiple times, once for each table. This will
- work for cross-database updates, in contrast to
- replicate-ignore-db.
- --replicate-rewrite-db=name
- Updates to a database with a different name than the
- original. Example:
- replicate-rewrite-db=master_db_name->slave_db_name.
- --replicate-same-server-id
- In replication, if set to 1, do not skip events having
- our server id. Default value is 0 (to break infinite
- loops in circular replication). Can't be set to 1 if
- --log-slave-updates is used.
- --replicate-wild-do-table=name
- Tells the slave thread to restrict replication to the
- tables that match the specified wildcard pattern. To
- specify more than one table, use the directive multiple
- times, once for each table. This will work for
- cross-database updates. Example:
- replicate-wild-do-table=foo%.bar% will replicate only
- updates to tables in all databases that start with foo
- and whose table names start with bar.
- --replicate-wild-ignore-table=name
- Tells the slave thread to not replicate to the tables
- that match the given wildcard pattern. To specify more
- than one table to ignore, use the directive multiple
- times, once for each table. This will work for
- cross-database updates. Example:
- replicate-wild-ignore-table=foo%.bar% will not do updates
- to tables in databases that start with foo and whose
- table names start with bar.
- --report-host=name Hostname or IP of the slave to be reported to the master
- during slave registration. Will appear in the output of
- SHOW SLAVE HOSTS. Leave unset if you do not want the
- slave to register itself with the master. Note that it is
- not sufficient for the master to simply read the IP of
- the slave off the socket once the slave connects. Due to
- NAT and other routing issues, that IP may not be valid
- for connecting to the slave from the master or other
- hosts
- --report-password=name
- The account password of the slave to be reported to the
- master during slave registration
- --report-port=# Port for connecting to slave reported to the master
- during slave registration. Set it only if the slave is
- listening on a non-default port or if you have a special
- tunnel from the master or other clients to the slave. If
- not sure, leave this option unset
- --report-user=name The account user name of the slave to be reported to the
- master during slave registration
- --rowid-merge-buff-size=#
- The size of the buffers used [NOT] IN evaluation via
- partial matching
- --rpl-semi-sync-master-enabled
- Enable semi-synchronous replication master (disabled by
- default).
- --rpl-semi-sync-master-timeout=#
- The timeout value (in ms) for semi-synchronous
- replication in the master
- --rpl-semi-sync-master-trace-level=#
- The tracing level for semi-sync replication.
- --rpl-semi-sync-master-wait-no-slave
- Wait until timeout when no semi-synchronous replication
- slave available (enabled by default).
- (Defaults to on; use --skip-rpl-semi-sync-master-wait-no-slave to disable.)
- --rpl-semi-sync-master-wait-point=name
- Should transaction wait for semi-sync ack after having
- synced binlog, or after having committed in storage
- engine.. One of: AFTER_SYNC, AFTER_COMMIT
- --rpl-semi-sync-slave-delay-master
- Only write master info file when ack is needed.
- --rpl-semi-sync-slave-enabled
- Enable semi-synchronous replication slave (disabled by
- default).
- --rpl-semi-sync-slave-kill-conn-timeout[=#]
- Timeout for the mysql connection used to kill the slave
- io_thread's connection on master. This timeout comes into
- play when stop slave is executed.
- --rpl-semi-sync-slave-trace-level=#
- The tracing level for semi-sync replication.
- --safe-mode Skip some optimize stages (for testing). Deprecated.
- --safe-user-create Don't allow new user creation by the user who has no
- write privileges to the mysql.user table.
- --secure-auth Disallow authentication for accounts that have old
- (pre-4.1) passwords
- (Defaults to on; use --skip-secure-auth to disable.)
- --secure-file-priv=name
- Limit LOAD DATA, SELECT ... OUTFILE, and LOAD_FILE() to
- files within specified directory
- --server-id=# Uniquely identifies the server instance in the community
- of replication partners
- --session-track-schema
- Track changes to the default schema.
- (Defaults to on; use --skip-session-track-schema to disable.)
- --session-track-state-change
- Track changes to the session state.
- --session-track-system-variables=name
- Track changes in registered system variables.
- --session-track-transaction-info=name
- Track changes to the transaction attributes. OFF to
- disable; STATE to track just transaction state (Is there
- an active transaction? Does it have any data? etc.);
- CHARACTERISTICS to track transaction state and report all
- statements needed to start a transaction withthe same
- characteristics (isolation level, read only/read
- write,snapshot - but not any work done / data modified
- within the transaction).
- --show-slave-auth-info
- Show user and password in SHOW SLAVE HOSTS on this
- master.
- --silent-startup Don't print [Note] to the error log during startup.
- --skip-bdb Deprecated option; Exist only for compatibility with old
- my.cnf files
- --skip-grant-tables Start without grant tables. This gives all users FULL
- ACCESS to all tables.
- --skip-host-cache Don't cache host names.
- --skip-name-resolve Don't resolve hostnames. All hostnames are IP's or
- 'localhost'.
- --skip-networking Don't allow connection with TCP/IP
- --skip-show-database
- Don't allow 'SHOW DATABASE' commands
- --skip-slave-start If set, slave is not autostarted.
- --slave-compressed-protocol
- Use compression on master/slave protocol
- --slave-ddl-exec-mode=name
- How replication events should be executed. Legal values
- are STRICT and IDEMPOTENT (default). In IDEMPOTENT mode,
- replication will not stop for DDL operations that are
- idempotent. This means that CREATE TABLE is treated as
- CREATE TABLE OR REPLACE and DROP TABLE is treated as DROP
- TABLE IF EXISTS.
- --slave-domain-parallel-threads=#
- Maximum number of parallel threads to use on slave for
- events in a single replication domain. When using
- multiple domains, this can be used to limit a single
- domain from grabbing all threads and thus stalling other
- domains. The default of 0 means to allow a domain to grab
- as many threads as it wants, up to the value of
- slave_parallel_threads.
- --slave-exec-mode=name
- How replication events should be executed. Legal values
- are STRICT (default) and IDEMPOTENT. In IDEMPOTENT mode,
- replication will not stop for operations that are
- idempotent. For example, in row based replication
- attempts to delete rows that doesn't exist will be
- ignored. In STRICT mode, replication will stop on any
- unexpected difference between the master and the slave.
- --slave-load-tmpdir=name
- The location where the slave should put its temporary
- files when replicating a LOAD DATA INFILE command
- --slave-max-allowed-packet=#
- The maximum packet length to sent successfully from the
- master to slave.
- --slave-net-timeout=#
- Number of seconds to wait for more data from any
- master/slave connection before aborting the read
- --slave-parallel-max-queued=#
- Limit on how much memory SQL threads should use per
- parallel replication thread when reading ahead in the
- relay log looking for opportunities for parallel
- replication. Only used when --slave-parallel-threads > 0.
- --slave-parallel-mode=name
- Controls what transactions are applied in parallel when
- using --slave-parallel-threads. Possible values:
- "optimistic" tries to apply most transactional DML in
- parallel, and handles any conflicts with rollback and
- retry. "conservative" limits parallelism in an effort to
- avoid any conflicts. "aggressive" tries to maximise the
- parallelism, possibly at the cost of increased conflict
- rate. "minimal" only parallelizes the commit steps of
- transactions. "none" disables parallel apply completely.
- --slave-parallel-threads=#
- If non-zero, number of threads to spawn to apply in
- parallel events on the slave that were group-committed on
- the master or were logged with GTID in different
- replication domains. Note that these threads are in
- addition to the IO and SQL threads, which are always
- created by a replication slave
- --slave-parallel-workers=#
- Alias for slave_parallel_threads
- --slave-run-triggers-for-rbr=name
- Modes for how triggers in row-base replication on slave
- side will be executed. Legal values are NO (default), YES
- and LOGGING. NO means that trigger for RBR will not be
- running on slave. YES and LOGGING means that triggers
- will be running on slave, if there was not triggers
- running on the master for the statement. LOGGING also
- means results of that the executed triggers work will be
- written to the binlog.
- --slave-skip-errors=name
- Tells the slave thread to continue replication when a
- query event returns an error from the provided list
- --slave-sql-verify-checksum
- Force checksum verification of replication events after
- reading them from relay log. Note: Events are always
- checksum-verified by slave on receiving them from the
- network before writing them to the relay log
- (Defaults to on; use --skip-slave-sql-verify-checksum to disable.)
- --slave-transaction-retries=#
- Number of times the slave SQL thread will retry a
- transaction in case it failed with a deadlock, elapsed
- lock wait timeout or listed in
- slave_transaction_retry_errors, before giving up and
- stopping
- --slave-transaction-retry-errors=name
- Tells the slave thread to retry transaction for
- replication when a query event returns an error from the
- provided list. Deadlock and elapsed lock wait timeout
- errors are automatically added to this list
- --slave-transaction-retry-interval=#
- Interval of the slave SQL thread will retry a transaction
- in case it failed with a deadlock or elapsed lock wait
- timeout or listed in slave_transaction_retry_errors
- --slave-type-conversions=name
- Set of slave type conversions that are enabled. If the
- variable is empty, no conversions are allowed and it is
- expected that the types match exactly. Any combination
- of: ALL_LOSSY, ALL_NON_LOSSY
- --slow-launch-time=#
- If creating the thread takes longer than this value (in
- seconds), the Slow_launch_threads counter will be
- incremented
- --slow-query-log Log slow queries to a table or log file. Defaults logging
- to a file 'hostname'-slow.log or a table mysql.slow_log
- if --log-output=TABLE is used. Must be enabled to
- activate other slow log options.
- --slow-query-log-file=name
- Log slow queries to given log file. Defaults logging to
- 'hostname'-slow.log. Must be enabled to activate other
- slow log options
- --socket=name Socket file to use for connection
- --sort-buffer-size=#
- Each thread that needs to do a sort allocates a buffer of
- this size
- --sql-mode=name Sets the sql mode. Any combination of: REAL_AS_FLOAT,
- PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE,
- IGNORE_BAD_TABLE_OPTIONS, ONLY_FULL_GROUP_BY,
- NO_UNSIGNED_SUBTRACTION, NO_DIR_IN_CREATE, POSTGRESQL,
- ORACLE, MSSQL, DB2, MAXDB, NO_KEY_OPTIONS,
- NO_TABLE_OPTIONS, NO_FIELD_OPTIONS, MYSQL323, MYSQL40,
- ANSI, NO_AUTO_VALUE_ON_ZERO, NO_BACKSLASH_ESCAPES,
- STRICT_TRANS_TABLES, STRICT_ALL_TABLES, NO_ZERO_IN_DATE,
- NO_ZERO_DATE, ALLOW_INVALID_DATES,
- ERROR_FOR_DIVISION_BY_ZERO, TRADITIONAL,
- NO_AUTO_CREATE_USER, HIGH_NOT_PRECEDENCE,
- NO_ENGINE_SUBSTITUTION, PAD_CHAR_TO_FULL_LENGTH,
- EMPTY_STRING_IS_NULL, SIMULTANEOUS_ASSIGNMENT
- --stack-trace Print a symbolic stack trace on failure
- (Defaults to on; use --skip-stack-trace to disable.)
- --standard-compliant-cte
- Allow only CTEs compliant to SQL standard
- (Defaults to on; use --skip-standard-compliant-cte to disable.)
- --stored-program-cache=#
- The soft upper limit for number of cached stored routines
- for one connection.
- --strict-password-validation
- When password validation plugins are enabled, reject
- passwords that cannot be validated (passwords specified
- as a hash)
- (Defaults to on; use --skip-strict-password-validation to disable.)
- -s, --symbolic-links
- Enable symbolic link support.
- --sync-binlog=# Synchronously flush binary log to disk after every #th
- event. Use 0 (default) to disable synchronous flushing
- --sync-frm Sync .frm files to disk on creation
- (Defaults to on; use --skip-sync-frm to disable.)
- --sync-master-info=#
- Synchronously flush master info to disk after every #th
- event. Use 0 to disable synchronous flushing
- --sync-relay-log=# Synchronously flush relay log to disk after every #th
- event. Use 0 to disable synchronous flushing
- --sync-relay-log-info=#
- Synchronously flush relay log info to disk after every
- #th transaction. Use 0 to disable synchronous flushing
- --sysdate-is-now Non-default option to alias SYSDATE() to NOW() to make it
- safe-replicable. Since 5.0, SYSDATE() returns a `dynamic'
- value different for different invocations, even within
- the same statement.
- --system-versioning-alter-history=name
- Versioning ALTER TABLE mode. ERROR: Fail ALTER with
- error; KEEP: Keep historical system rows and subject them
- to ALTER;
- --table-cache=# Deprecated; use --table-open-cache instead.
- --table-definition-cache=#
- The number of cached table definitions
- --table-open-cache=#
- The number of cached open tables
- --table-open-cache-instances=#
- Maximum number of table cache instances
- --tc-heuristic-recover=name
- Decision to use in heuristic recover process. One of: OFF,
- COMMIT, ROLLBACK
- --tcp-keepalive-interval=#
- The interval, in seconds, between when successive
- keep-alive packets are sent if no acknowledgement is
- received.If set to 0, system dependent default is used.
- (Automatically configured unless set explicitly)
- --tcp-keepalive-probes=#
- The number of unacknowledged probes to send before
- considering the connection dead and notifying the
- application layer.If set to 0, system dependent default
- is used. (Automatically configured unless set explicitly)
- --tcp-keepalive-time=#
- Timeout, in milliseconds, with no activity until the
- first TCP keep-alive packet is sent.If set to 0, system
- dependent default is used. (Automatically configured
- unless set explicitly)
- --thread-cache-size=#
- How many threads we should keep in a cache for reuse.
- These are freed after 5 minutes of idle time
- --thread-pool-idle-timeout=#
- Timeout in seconds for an idle thread in the thread
- pool.Worker thread will be shut down after timeout
- --thread-pool-max-threads=#
- Maximum allowed number of worker threads in the thread
- pool
- --thread-pool-oversubscribe=#
- How many additional active worker threads in a group are
- allowed.
- --thread-pool-prio-kickup-timer=#
- The number of milliseconds before a dequeued low-priority
- statement is moved to the high-priority queue
- --thread-pool-priority=name
- Threadpool priority. High priority connections usually
- start executing earlier than low priority.If priority set
- to 'auto', the the actual priority(low or high) is
- determined based on whether or not connection is inside
- transaction.
- --thread-pool-size=#
- Number of thread groups in the pool. This parameter is
- roughly equivalent to maximum number of concurrently
- executing threads (threads in a waiting state do not
- count as executing).
- --thread-pool-stall-limit=#
- Maximum query execution time in milliseconds,before an
- executing non-yielding thread is considered stalled.If a
- worker thread is stalled, additional worker thread may be
- created to handle remaining clients.
- --thread-stack=# The stack size for each thread
- --time-format=name The TIME format (ignored)
- --timed-mutexes Specify whether to time mutexes. Deprecated, has no
- effect.
- --tmp-disk-table-size=#
- Max size for data for an internal temporary on-disk
- MyISAM or Aria table.
- --tmp-memory-table-size=#
- If an internal in-memory temporary table exceeds this
- size, MariaDB will automatically convert it to an on-disk
- MyISAM or Aria table. Same as tmp_table_size.
- --tmp-table-size=# Alias for tmp_memory_table_size. If an internal in-memory
- temporary table exceeds this size, MariaDB will
- automatically convert it to an on-disk MyISAM or Aria
- table.
- -t, --tmpdir=name Path for temporary files. Several paths may be specified,
- separated by a colon (:), in this case they are used in a
- round-robin fashion
- --transaction-alloc-block-size=#
- Allocation block size for transactions to be stored in
- binary log
- --transaction-isolation=name
- Default transaction isolation level. One of:
- READ-UNCOMMITTED, READ-COMMITTED, REPEATABLE-READ,
- SERIALIZABLE
- --transaction-prealloc-size=#
- Persistent buffer for transactions to be stored in binary
- log
- --transaction-read-only
- Default transaction access mode. True if transactions are
- read-only.
- --updatable-views-with-limit=name
- YES = Don't issue an error message (warning only) if a
- VIEW without presence of a key of the underlying table is
- used in queries with a LIMIT clause for updating. NO =
- Prohibit update of a VIEW, which does not contain a key
- of the underlying table and the query uses a LIMIT clause
- (usually get from GUI tools)
- --use-stat-tables=name
- Specifies how to use system statistics tables. One of:
- NEVER, COMPLEMENTARY, PREFERABLY
- -u, --user=name Run mysqld daemon as user.
- --userstat Enables statistics gathering for USER_STATISTICS,
- CLIENT_STATISTICS, INDEX_STATISTICS and TABLE_STATISTICS
- tables in the INFORMATION_SCHEMA
- -v, --verbose Used with --help option for detailed help.
- -V, --version[=name]
- Output version information and exit.
- --wait-timeout=# The number of seconds the server waits for activity on a
- connection before closing it
-
-Variables (--variable-name=value)
-allow-suspicious-udfs FALSE
-auto-increment-increment 1
-auto-increment-offset 1
-autocommit TRUE
-automatic-sp-privileges TRUE
-back-log 80
-big-tables FALSE
-bind-address (No default value)
-binlog-annotate-row-events TRUE
-binlog-cache-size 32768
-binlog-checksum CRC32
-binlog-commit-wait-count 0
-binlog-commit-wait-usec 100000
-binlog-direct-non-transactional-updates FALSE
-binlog-file-cache-size 16384
-binlog-format MIXED
-binlog-optimize-thread-scheduling TRUE
-binlog-row-event-max-size 8192
-binlog-row-image FULL
-binlog-stmt-cache-size 32768
-bulk-insert-buffer-size 8388608
-character-set-client-handshake TRUE
-character-set-filesystem binary
-character-sets-dir MYSQL_CHARSETSDIR/
-chroot (No default value)
-column-compression-threshold 100
-column-compression-zlib-level 6
-column-compression-zlib-strategy DEFAULT_STRATEGY
-column-compression-zlib-wrap FALSE
-completion-type NO_CHAIN
-concurrent-insert AUTO
-console TRUE
-date-format %Y-%m-%d
-datetime-format %Y-%m-%d %H:%i:%s
-deadlock-search-depth-long 15
-deadlock-search-depth-short 4
-deadlock-timeout-long 50000000
-deadlock-timeout-short 10000
-default-regex-flags
-default-storage-engine myisam
-default-time-zone (No default value)
-default-tmp-storage-engine (No default value)
-default-week-format 0
-delay-key-write ON
-delayed-insert-limit 100
-delayed-insert-timeout 300
-delayed-queue-size 1000
-div-precision-increment 4
-encrypt-binlog FALSE
-encrypt-tmp-disk-tables FALSE
-encrypt-tmp-files FALSE
-enforce-storage-engine (No default value)
-event-scheduler OFF
-expensive-subquery-limit 100
-expire-logs-days 0
-explicit-defaults-for-timestamp FALSE
-external-locking FALSE
-extra-max-connections 1
-extra-port 0
-flashback FALSE
-flush FALSE
-flush-time 0
-ft-boolean-syntax + -><()~*:""&|
-ft-max-word-len 84
-ft-min-word-len 4
-ft-query-expansion-limit 20
-ft-stopword-file (No default value)
-gdb FALSE
-general-log FALSE
-getopt-prefix-matching FALSE
-group-concat-max-len 1048576
-gtid-domain-id 0
-gtid-ignore-duplicates FALSE
-gtid-pos-auto-engines
-gtid-strict-mode FALSE
-help TRUE
-histogram-size 0
-histogram-type SINGLE_PREC_HB
-host-cache-size 279
-idle-readonly-transaction-timeout 0
-idle-transaction-timeout 0
-idle-write-transaction-timeout 0
-ignore-builtin-innodb FALSE
-ignore-db-dirs
-init-connect
-init-file (No default value)
-init-rpl-role MASTER
-init-slave
-interactive-timeout 28800
-join-buffer-size 262144
-join-buffer-space-limit 2097152
-join-cache-level 2
-keep-files-on-create FALSE
-key-buffer-size 134217728
-key-cache-age-threshold 300
-key-cache-block-size 1024
-key-cache-division-limit 100
-key-cache-file-hash-size 512
-key-cache-segments 0
-large-pages FALSE
-lc-messages en_US
-lc-messages-dir MYSQL_SHAREDIR/
-lc-time-names en_US
-local-infile TRUE
-lock-wait-timeout 86400
-log-bin (No default value)
-log-bin-compress FALSE
-log-bin-compress-min-len 256
-log-bin-index (No default value)
-log-bin-trust-function-creators FALSE
-log-disabled-statements sp
-log-error
-log-isam myisam.log
-log-output FILE
-log-queries-not-using-indexes FALSE
-log-short-format FALSE
-log-slave-updates FALSE
-log-slow-admin-statements TRUE
-log-slow-disabled-statements sp
-log-slow-filter admin,filesort,filesort_on_disk,filesort_priority_queue,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
-log-slow-rate-limit 1
-log-slow-slave-statements TRUE
-log-slow-verbosity
-log-tc tc.log
-log-warnings 2
-long-query-time 10
-low-priority-updates FALSE
-lower-case-table-names 1
-master-info-file master.info
-master-retry-count 86400
-master-verify-checksum FALSE
-max-allowed-packet 16777216
-max-binlog-cache-size 18446744073709547520
-max-binlog-size 1073741824
-max-binlog-stmt-cache-size 18446744073709547520
-max-connect-errors 100
-max-connections 151
-max-delayed-threads 20
-max-digest-length 1024
-max-error-count 64
-max-heap-table-size 16777216
-max-join-size 18446744073709551615
-max-length-for-sort-data 1024
-max-long-data-size 16777216
-max-prepared-stmt-count 16382
-max-recursive-iterations 18446744073709551615
-max-relay-log-size 1073741824
-max-seeks-for-key 18446744073709551615
-max-session-mem-used 9223372036854775807
-max-sort-length 1024
-max-sp-recursion-depth 0
-max-statement-time 0
-max-tmp-tables 32
-max-user-connections 0
-max-write-lock-count 18446744073709551615
-memlock FALSE
-metadata-locks-cache-size 1024
-metadata-locks-hash-instances 8
-min-examined-row-limit 0
-mrr-buffer-size 262144
-multi-range-count 256
-myisam-block-size 1024
-myisam-data-pointer-size 6
-myisam-max-sort-file-size 9223372036853727232
-myisam-mmap-size 18446744073709551615
-myisam-recover-options BACKUP,QUICK
-myisam-repair-threads 1
-myisam-sort-buffer-size 134216704
-myisam-stats-method NULLS_UNEQUAL
-myisam-use-mmap FALSE
-mysql56-temporal-format TRUE
-net-buffer-length 16384
-net-read-timeout 30
-net-retry-count 10
-net-write-timeout 60
-old FALSE
-old-alter-table FALSE
-old-mode
-old-passwords FALSE
-old-style-user-limits FALSE
-optimizer-prune-level 1
-optimizer-search-depth 62
-optimizer-selectivity-sampling-limit 100
-optimizer-switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on
-optimizer-use-condition-selectivity 1
-performance-schema FALSE
-performance-schema-accounts-size -1
-performance-schema-consumer-events-stages-current FALSE
-performance-schema-consumer-events-stages-history FALSE
-performance-schema-consumer-events-stages-history-long FALSE
-performance-schema-consumer-events-statements-current TRUE
-performance-schema-consumer-events-statements-history FALSE
-performance-schema-consumer-events-statements-history-long FALSE
-performance-schema-consumer-events-waits-current FALSE
-performance-schema-consumer-events-waits-history FALSE
-performance-schema-consumer-events-waits-history-long FALSE
-performance-schema-consumer-global-instrumentation TRUE
-performance-schema-consumer-statements-digest TRUE
-performance-schema-consumer-thread-instrumentation TRUE
-performance-schema-digests-size -1
-performance-schema-events-stages-history-long-size -1
-performance-schema-events-stages-history-size -1
-performance-schema-events-statements-history-long-size -1
-performance-schema-events-statements-history-size -1
-performance-schema-events-waits-history-long-size -1
-performance-schema-events-waits-history-size -1
-performance-schema-hosts-size -1
-performance-schema-instrument
-performance-schema-max-cond-classes 80
-performance-schema-max-cond-instances -1
-performance-schema-max-digest-length 1024
-performance-schema-max-file-classes 50
-performance-schema-max-file-handles 32768
-performance-schema-max-file-instances -1
-performance-schema-max-mutex-classes 200
-performance-schema-max-mutex-instances -1
-performance-schema-max-rwlock-classes 40
-performance-schema-max-rwlock-instances -1
-performance-schema-max-socket-classes 10
-performance-schema-max-socket-instances -1
-performance-schema-max-stage-classes 160
-performance-schema-max-statement-classes 200
-performance-schema-max-table-handles -1
-performance-schema-max-table-instances -1
-performance-schema-max-thread-classes 50
-performance-schema-max-thread-instances -1
-performance-schema-session-connect-attrs-size -1
-performance-schema-setup-actors-size 100
-performance-schema-setup-objects-size 100
-performance-schema-users-size -1
-port 3306
-port-open-timeout 0
-preload-buffer-size 32768
-profiling-history-size 15
-progress-report-time 5
-protocol-version 10
-proxy-protocol-networks
-query-alloc-block-size 16384
-query-cache-limit 1048576
-query-cache-min-res-unit 4096
-query-cache-size 1048576
-query-cache-strip-comments FALSE
-query-cache-type OFF
-query-cache-wlock-invalidate FALSE
-query-prealloc-size 24576
-range-alloc-block-size 4096
-read-binlog-speed-limit 0
-read-buffer-size 131072
-read-only FALSE
-read-rnd-buffer-size 262144
-relay-log (No default value)
-relay-log-index (No default value)
-relay-log-info-file relay-log.info
-relay-log-purge TRUE
-relay-log-recovery FALSE
-relay-log-space-limit 0
-replicate-annotate-row-events TRUE
-replicate-events-marked-for-skip REPLICATE
-replicate-same-server-id FALSE
-report-host (No default value)
-report-password (No default value)
-report-port 0
-report-user (No default value)
-rowid-merge-buff-size 8388608
-rpl-semi-sync-master-enabled FALSE
-rpl-semi-sync-master-timeout 10000
-rpl-semi-sync-master-trace-level 32
-rpl-semi-sync-master-wait-no-slave TRUE
-rpl-semi-sync-master-wait-point AFTER_COMMIT
-rpl-semi-sync-slave-delay-master FALSE
-rpl-semi-sync-slave-enabled FALSE
-rpl-semi-sync-slave-kill-conn-timeout 5
-rpl-semi-sync-slave-trace-level 32
-safe-user-create FALSE
-secure-auth TRUE
-secure-file-priv (No default value)
-server-id 1
-session-track-schema TRUE
-session-track-state-change FALSE
-session-track-system-variables autocommit,character_set_client,character_set_connection,character_set_results,time_zone
-session-track-transaction-info OFF
-show-slave-auth-info FALSE
-silent-startup FALSE
-skip-grant-tables TRUE
-skip-name-resolve FALSE
-skip-networking FALSE
-skip-show-database FALSE
-skip-slave-start FALSE
-slave-compressed-protocol FALSE
-slave-ddl-exec-mode IDEMPOTENT
-slave-domain-parallel-threads 0
-slave-exec-mode STRICT
-slave-max-allowed-packet 1073741824
-slave-net-timeout 60
-slave-parallel-max-queued 131072
-slave-parallel-mode conservative
-slave-parallel-threads 0
-slave-parallel-workers 0
-slave-run-triggers-for-rbr NO
-slave-skip-errors OFF
-slave-sql-verify-checksum TRUE
-slave-transaction-retries 10
-slave-transaction-retry-errors 1213,1205
-slave-transaction-retry-interval 0
-slave-type-conversions
-slow-launch-time 2
-slow-query-log FALSE
-sort-buffer-size 2097152
-sql-mode STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-stack-trace TRUE
-standard-compliant-cte TRUE
-stored-program-cache 256
-strict-password-validation TRUE
-symbolic-links FALSE
-sync-binlog 0
-sync-frm FALSE
-sync-master-info 10000
-sync-relay-log 10000
-sync-relay-log-info 10000
-sysdate-is-now FALSE
-system-versioning-alter-history ERROR
-table-cache 431
-table-definition-cache 400
-table-open-cache 431
-table-open-cache-instances 8
-tc-heuristic-recover OFF
-tcp-keepalive-interval 0
-tcp-keepalive-probes 0
-tcp-keepalive-time 0
-thread-cache-size 151
-thread-pool-idle-timeout 60
-thread-pool-max-threads 65536
-thread-pool-oversubscribe 3
-thread-pool-prio-kickup-timer 1000
-thread-pool-priority auto
-thread-pool-stall-limit 500
-thread-stack 299008
-time-format %H:%i:%s
-timed-mutexes FALSE
-tmp-disk-table-size 18446744073709551615
-tmp-memory-table-size 16777216
-tmp-table-size 16777216
-transaction-alloc-block-size 8192
-transaction-isolation REPEATABLE-READ
-transaction-prealloc-size 4096
-transaction-read-only FALSE
-updatable-views-with-limit YES
-use-stat-tables NEVER
-userstat FALSE
-verbose TRUE
-wait-timeout 28800
-
-To see what values a running MySQL server is using, type
-'mysqladmin variables' instead of 'mysqld --verbose --help'.
diff --git a/mysql-test/r/mysqld_help_crash-9183.result b/mysql-test/r/mysqld_help_crash-9183.result
deleted file mode 100644
index c0e5323d6d7..00000000000
--- a/mysql-test/r/mysqld_help_crash-9183.result
+++ /dev/null
@@ -1,3 +0,0 @@
-rename table mysql.plugin to test.plugin;
-flush tables;
-rename table test.plugin to mysql.plugin;
diff --git a/mysql-test/r/mysqld_option_err.result b/mysql-test/r/mysqld_option_err.result
deleted file mode 100644
index 4afcc5e0cb1..00000000000
--- a/mysql-test/r/mysqld_option_err.result
+++ /dev/null
@@ -1,8 +0,0 @@
-Test that unknown option is not silently ignored.
-Test bad binlog format.
-Test bad default storage engine.
-Test non-numeric value passed to number option.
-Test that bad value for plugin enum option is rejected correctly.
-Test that --help --verbose works
-Test that --not-known-option --help --verbose gives error
-Done.
diff --git a/mysql-test/r/mysqldump-compat.result b/mysql-test/r/mysqldump-compat.result
deleted file mode 100644
index f15cc7a1d7a..00000000000
--- a/mysql-test/r/mysqldump-compat.result
+++ /dev/null
@@ -1,4 +0,0 @@
-CREATE DATABASE mysqldump_30126;
-USE mysqldump_30126;
-CREATE TABLE t1 (c1 int);
-DROP DATABASE mysqldump_30126;
diff --git a/mysql-test/r/mysqldump-max.result b/mysql-test/r/mysqldump-max.result
deleted file mode 100644
index b75eb969da6..00000000000
--- a/mysql-test/r/mysqldump-max.result
+++ /dev/null
@@ -1,352 +0,0 @@
-drop table if exists t1, t2, t3, t4, t5, t6;
-create table t1 (id int(8), name varchar(32));
-create table t2 (id int(8), name varchar(32)) ENGINE="MyISAM";
-create table t3 (id int(8), name varchar(32)) ENGINE="MEMORY";
-create table t4 (id int(8), name varchar(32)) ENGINE="HEAP";
-create table t5 (id int(8), name varchar(32)) ENGINE="ARCHIVE";
-create table t6 (id int(8), name varchar(32)) ENGINE="InnoDB";
-insert into t1 values (1, 'first value');
-insert into t1 values (2, 'first value');
-insert into t1 values (3, 'first value');
-insert into t1 values (4, 'first value');
-insert into t1 values (5, 'first value');
-insert into t2 values (1, 'first value');
-insert into t2 values (2, 'first value');
-insert into t2 values (3, 'first value');
-insert into t2 values (4, 'first value');
-insert into t2 values (5, 'first value');
-insert into t3 values (1, 'first value');
-insert into t3 values (2, 'first value');
-insert into t3 values (3, 'first value');
-insert into t3 values (4, 'first value');
-insert into t3 values (5, 'first value');
-insert into t4 values (1, 'first value');
-insert into t4 values (2, 'first value');
-insert into t4 values (3, 'first value');
-insert into t4 values (4, 'first value');
-insert into t4 values (5, 'first value');
-insert into t5 values (1, 'first value');
-insert into t5 values (2, 'first value');
-insert into t5 values (3, 'first value');
-insert into t5 values (4, 'first value');
-insert into t5 values (5, 'first value');
-insert into t6 values (1, 'first value');
-insert into t6 values (2, 'first value');
-insert into t6 values (3, 'first value');
-insert into t6 values (4, 'first value');
-insert into t6 values (5, 'first value');
-select * from t1;
-id name
-1 first value
-2 first value
-3 first value
-4 first value
-5 first value
-select * from t2;
-id name
-1 first value
-2 first value
-3 first value
-4 first value
-5 first value
-select * from t3;
-id name
-1 first value
-2 first value
-3 first value
-4 first value
-5 first value
-select * from t4;
-id name
-1 first value
-2 first value
-3 first value
-4 first value
-5 first value
-select * from t5;
-id name
-1 first value
-2 first value
-3 first value
-4 first value
-5 first value
-select * from t6;
-id name
-1 first value
-2 first value
-3 first value
-4 first value
-5 first value
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `test`;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `id` int(8) DEFAULT NULL,
- `name` varchar(32) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT DELAYED IGNORE INTO `t1` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-DROP TABLE IF EXISTS `t2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t2` (
- `id` int(8) DEFAULT NULL,
- `name` varchar(32) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
-INSERT DELAYED IGNORE INTO `t2` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
-/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
-DROP TABLE IF EXISTS `t3`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t3` (
- `id` int(8) DEFAULT NULL,
- `name` varchar(32) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40000 ALTER TABLE `t3` DISABLE KEYS */;
-INSERT DELAYED IGNORE INTO `t3` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
-/*!40000 ALTER TABLE `t3` ENABLE KEYS */;
-DROP TABLE IF EXISTS `t4`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t4` (
- `id` int(8) DEFAULT NULL,
- `name` varchar(32) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40000 ALTER TABLE `t4` DISABLE KEYS */;
-INSERT DELAYED IGNORE INTO `t4` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
-/*!40000 ALTER TABLE `t4` ENABLE KEYS */;
-DROP TABLE IF EXISTS `t5`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t5` (
- `id` int(8) DEFAULT NULL,
- `name` varchar(32) DEFAULT NULL
-) ENGINE=ARCHIVE DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40000 ALTER TABLE `t5` DISABLE KEYS */;
-INSERT DELAYED IGNORE INTO `t5` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
-/*!40000 ALTER TABLE `t5` ENABLE KEYS */;
-DROP TABLE IF EXISTS `t6`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t6` (
- `id` int(8) DEFAULT NULL,
- `name` varchar(32) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40000 ALTER TABLE `t6` DISABLE KEYS */;
-INSERT IGNORE INTO `t6` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
-/*!40000 ALTER TABLE `t6` ENABLE KEYS */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `test`;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `id` int(8) DEFAULT NULL,
- `name` varchar(32) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT DELAYED INTO `t1` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-DROP TABLE IF EXISTS `t2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t2` (
- `id` int(8) DEFAULT NULL,
- `name` varchar(32) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
-INSERT DELAYED INTO `t2` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
-/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
-DROP TABLE IF EXISTS `t3`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t3` (
- `id` int(8) DEFAULT NULL,
- `name` varchar(32) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40000 ALTER TABLE `t3` DISABLE KEYS */;
-INSERT DELAYED INTO `t3` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
-/*!40000 ALTER TABLE `t3` ENABLE KEYS */;
-DROP TABLE IF EXISTS `t4`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t4` (
- `id` int(8) DEFAULT NULL,
- `name` varchar(32) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40000 ALTER TABLE `t4` DISABLE KEYS */;
-INSERT DELAYED INTO `t4` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
-/*!40000 ALTER TABLE `t4` ENABLE KEYS */;
-DROP TABLE IF EXISTS `t5`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t5` (
- `id` int(8) DEFAULT NULL,
- `name` varchar(32) DEFAULT NULL
-) ENGINE=ARCHIVE DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40000 ALTER TABLE `t5` DISABLE KEYS */;
-INSERT DELAYED INTO `t5` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
-/*!40000 ALTER TABLE `t5` ENABLE KEYS */;
-DROP TABLE IF EXISTS `t6`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t6` (
- `id` int(8) DEFAULT NULL,
- `name` varchar(32) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40000 ALTER TABLE `t6` DISABLE KEYS */;
-INSERT INTO `t6` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
-/*!40000 ALTER TABLE `t6` ENABLE KEYS */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop table t1;
-drop table t2;
-drop table t3;
-drop table t4;
-drop table t5;
-drop table t6;
-SELECT @@global.storage_engine INTO @old_engine;
-SET GLOBAL storage_engine=InnoDB;
-CREATE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES();
-SELECT COUNT(*) FROM v1;
-COUNT(*)
-1
-SELECT COUNT(*) FROM v1;
-COUNT(*)
-1
-DROP VIEW v1;
-DROP TABLE t1;
-SET GLOBAL storage_engine=@old_engine;
-connect c1,127.0.0.1,root,,test,$MASTER_MYPORT,;
-connect c2,127.0.0.1,root,,test,$MASTER_MYPORT,;
-connect c3,127.0.0.1,root,,test,$MASTER_MYPORT,;
-connection default;
-SET binlog_format= mixed;
-RESET MASTER;
-CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (1,0), (2,0);
-SELECT GET_LOCK("block_queries_1", 120);
-GET_LOCK("block_queries_1", 120)
-1
-connection c3;
-SELECT GET_LOCK("block_queries_2", 120);
-GET_LOCK("block_queries_2", 120)
-1
-connection c1;
-SET @c= 0;
-SELECT IF(@c<1, @c:=@c+1, GET_LOCK("block_queries_1", 120)) FROM t1 ORDER BY a;
-connection c2;
-SET binlog_format="row";
-SET @d= 10;
-UPDATE t2 SET b=IF(@d<=10, @d:=@d+1, GET_LOCK("block_queries_2", 120)) ORDER BY a;
-connection default;
-# Make sure other queries are running (and waiting).
-SELECT RELEASE_LOCK("block_queries_1");
-RELEASE_LOCK("block_queries_1")
-1
-connection c3;
-SELECT RELEASE_LOCK("block_queries_2");
-RELEASE_LOCK("block_queries_2")
-1
-connection c1;
-IF(@c<1, @c:=@c+1, GET_LOCK("block_queries_1", 120))
-1
-1
-connection c2;
-connection default;
-SELECT * FROM t2 ORDER BY a;
-a b
-1 11
-2 1
-DROP TABLE t1;
-DROP TABLE t2;
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Query # # use `test`; INSERT INTO t2 VALUES (1,0), (2,0)
-master-bin.000001 # Xid # # COMMIT /* XID */
--- CHANGE MASTER TO MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=<pos>;
-SELECT * FROM t1 ORDER BY a;
-a
-1
-2
-SELECT * FROM t2 ORDER BY a;
-a b
-1 0
-2 0
-DROP TABLE t1,t2;
diff --git a/mysql-test/r/mysqldump-nl.result b/mysql-test/r/mysqldump-nl.result
deleted file mode 100644
index d2d0e09546b..00000000000
--- a/mysql-test/r/mysqldump-nl.result
+++ /dev/null
@@ -1,169 +0,0 @@
-create database `mysqltest1
-1tsetlqsym`;
-use `mysqltest1
-1tsetlqsym`;
-create table `t1
-1t` (`foobar
-raboof` int);
-create view `v1
-1v` as select * from `t1
-1t`;
-create procedure sp() select * from `v1
-1v`;
-flush tables;
-use test;
-
---
--- Current Database: `mysqltest1
--- 1tsetlqsym`
---
-
-/*!40000 DROP DATABASE IF EXISTS `mysqltest1
-1tsetlqsym`*/;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest1
-1tsetlqsym` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `mysqltest1
-1tsetlqsym`;
-
---
--- Table structure for table `t1
--- 1t`
---
-
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1
-1t` (
- `foobar
-raboof` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `t1
--- 1t`
---
-
---
--- Temporary table structure for view `v1
--- 1v`
---
-
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `v1
-1v` (
- `foobar
-raboof` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-
---
--- Dumping routines for database 'mysqltest1
--- 1tsetlqsym'
---
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `sp`()
-select * from `v1
-1v` ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-
---
--- Current Database: `mysqltest1
--- 1tsetlqsym`
---
-
-USE `mysqltest1
-1tsetlqsym`;
-
---
--- Final view structure for view `v1
--- 1v`
---
-
-/*!50001 DROP TABLE IF EXISTS `v1
-1v`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v1
-1v` AS select `t1
-1t`.`foobar
-raboof` AS `foobar
-raboof` from `t1
-1t` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-show tables from `mysqltest1
-1tsetlqsym`;
-Tables_in_mysqltest1
-1tsetlqsym
-t1
-1t
-v1
-1v
-drop database `mysqltest1
-1tsetlqsym`;
-create database `test```;
-create database `test\``
-\! ls
-#`;
-show databases like 'test%';
-Database (test%)
-test
-test\`
-\! ls
-#
-test`
-
---
--- Current Database: `test```
---
-
-/*!40000 DROP DATABASE IF EXISTS `test```*/;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test``` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `test```;
-
---
--- Current Database: `test\``
--- \! ls
--- #`
---
-
-/*!40000 DROP DATABASE IF EXISTS `test\``
-\! ls
-#`*/;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test\``
-\! ls
-#` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `test\``
-\! ls
-#`;
-drop database `test```;
-drop database `test\``
-\! ls
-#`;
diff --git a/mysql-test/r/mysqldump-no-binlog.result b/mysql-test/r/mysqldump-no-binlog.result
deleted file mode 100644
index 78bc19b7cba..00000000000
--- a/mysql-test/r/mysqldump-no-binlog.result
+++ /dev/null
@@ -1 +0,0 @@
-mysqldump: Error: Binlogging on server not active
diff --git a/mysql-test/r/mysqldump.result b/mysql-test/r/mysqldump.result
deleted file mode 100644
index a1e206dffd7..00000000000
--- a/mysql-test/r/mysqldump.result
+++ /dev/null
@@ -1,5830 +0,0 @@
-call mtr.add_suppression("@003f.frm' \\(errno: 22\\)");
-# Bug#37938 Test "mysqldump" lacks various insert statements
-# Turn off concurrent inserts to avoid random errors
-# NOTE: We reset the variable back to saved value at the end of test
-SET @OLD_CONCURRENT_INSERT = @@GLOBAL.CONCURRENT_INSERT;
-SET @@GLOBAL.CONCURRENT_INSERT = 0;
-DROP TABLE IF EXISTS t1, `"t"1`, t1aa, t2, t2aa, t3;
-drop database if exists mysqldump_test_db;
-drop database if exists db1;
-drop database if exists db2;
-drop view if exists v1, v2, v3;
-CREATE TABLE t1(a INT, KEY (a)) KEY_BLOCK_SIZE=1024;
-INSERT INTO t1 VALUES (1), (2);
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="test">
- <table_structure name="t1">
- <field Field="a" Type="int(11)" Null="YES" Key="MUL" Default="NULL" Extra="" Comment="" />
- <key Table="t1" Non_unique="1" Key_name="a" Seq_in_index="1" Column_name="a" Collation="A" Null="YES" Index_type="BTREE" Comment="" Index_comment="" />
- </table_structure>
- <table_data name="t1">
- <row>
- <field name="a">1</field>
- </row>
- <row>
- <field name="a">2</field>
- </row>
- </table_data>
-</database>
-</mysqldump>
-DROP TABLE t1;
-#
-# Bug#2005 Long decimal comparison bug.
-#
-CREATE TABLE t1 (a decimal(64, 20));
-INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"),
-("0987654321098765432109876543210987654321");
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` decimal(64,20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t1` VALUES (1234567890123456789012345678901234567890.00000000000000000000),(987654321098765432109876543210987654321.00000000000000000000);
-DROP TABLE t1;
-#
-# Bug#2055 mysqldump should replace "-inf" numeric field values with "NULL"
-#
-CREATE TABLE t1 (a double);
-INSERT IGNORE INTO t1 VALUES ('-9e999999');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t1` VALUES (-1.7976931348623157e308);
-DROP TABLE t1;
-#
-# Bug#3361 mysqldump quotes DECIMAL values inconsistently
-#
-CREATE TABLE t1 (a DECIMAL(10,5), b FLOAT);
-INSERT INTO t1 VALUES (1.2345, 2.3456);
-INSERT INTO t1 VALUES ('1.2345', 2.3456);
-INSERT INTO t1 VALUES ("1.2345", 2.3456);
-SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ANSI_QUOTES';
-INSERT INTO t1 VALUES (1.2345, 2.3456);
-INSERT INTO t1 VALUES ('1.2345', 2.3456);
-INSERT INTO t1 VALUES ("1.2345", 2.3456);
-ERROR 42S22: Unknown column '1.2345' in 'field list'
-SET SQL_MODE=@OLD_SQL_MODE;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` decimal(10,5) DEFAULT NULL,
- `b` float DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t1` VALUES (1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` decimal(10,5) DEFAULT NULL,
- `b` float DEFAULT NULL
-);
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t1` VALUES (1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` decimal(10,5) DEFAULT NULL,
- `b` float DEFAULT NULL
-);
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` decimal(10,5) DEFAULT NULL,
- `b` float DEFAULT NULL
-);
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-INSERT INTO `t1` VALUES (1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456),(1.23450,2.3456);
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE t1;
-CREATE TABLE t1(a int, b text, c varchar(3));
-INSERT INTO t1 VALUES (1, "test", "tes"), (2, "TEST", "TES");
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="test">
- <table_structure name="t1">
- <field Field="a" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <field Field="b" Type="text" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <field Field="c" Type="varchar(3)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- </table_structure>
- <table_data name="t1">
- <row>
- <field name="a">1</field>
- <field name="b">test</field>
- <field name="c">tes</field>
- </row>
- <row>
- <field name="a">2</field>
- <field name="b">TEST</field>
- <field name="c">TES</field>
- </row>
- </table_data>
-</database>
-</mysqldump>
-DROP TABLE t1;
-#
-# Bug#1707 mysqldump -X does't quote field and table names
-#
-CREATE TABLE t1 (`a"b"` char(2));
-INSERT INTO t1 VALUES ("1\""), ("\"2");
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="test">
- <table_structure name="t1">
- <field Field="a&quot;b&quot;" Type="char(2)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- </table_structure>
- <table_data name="t1">
- <row>
- <field name="a&quot;b&quot;">1&quot;</field>
- </row>
- <row>
- <field name="a&quot;b&quot;">&quot;2</field>
- </row>
- </table_data>
-</database>
-</mysqldump>
-DROP TABLE t1;
-#
-# Bug#1994 mysqldump does not correctly dump UCS2 data
-# Bug#4261 mysqldump 10.7 (mysql 4.1.2) --skip-extended-insert drops NULL from inserts
-#
-CREATE TABLE t1 (a VARCHAR(255)) DEFAULT CHARSET koi8r;
-INSERT INTO t1 VALUES (_koi8r x'C1C2C3C4C5'), (NULL);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` varchar(255) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=koi8r;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES ('абцде');
-INSERT INTO `t1` VALUES (NULL);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE t1;
-#
-# Bug#2634 mysqldump in --compatible=mysql4
-#
-CREATE TABLE t1 (a int) ENGINE=MYISAM;
-INSERT INTO t1 VALUES (1), (2);
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL40' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) TYPE=MyISAM;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (1),(2);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) TYPE=MyISAM;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (1),(2);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE t1;
-#
-# Bug#2592 mysqldump doesn't quote "tricky" names correctly
-#
-create table ```a` (i int);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE ```a` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-drop table ```a`;
-#
-# Bug#2591 mysqldump quotes names inconsistently
-#
-create table t1(a int);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS "t1";
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE "t1" (
- "a" int(11) DEFAULT NULL
-);
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES "t1" WRITE;
-/*!40000 ALTER TABLE "t1" DISABLE KEYS */;
-/*!40000 ALTER TABLE "t1" ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-set global sql_mode='ANSI_QUOTES';
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS "t1";
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE "t1" (
- "a" int(11) DEFAULT NULL
-);
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES "t1" WRITE;
-/*!40000 ALTER TABLE "t1" DISABLE KEYS */;
-/*!40000 ALTER TABLE "t1" ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-set global sql_mode=default;
-drop table t1;
-#
-# Bug#2705 mysqldump --tab extra output
-#
-create table t1(a int);
-insert into t1 values (1),(2),(3);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-1
-2
-3
-drop table t1;
-#
-# Bug#6101 create database problem
-#
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `test`;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-create database mysqldump_test_db character set latin2 collate latin2_bin;
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_test_db` /*!40100 DEFAULT CHARACTER SET latin2 COLLATE latin2_bin */;
-
-USE `mysqldump_test_db`;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop database mysqldump_test_db;
-#
-# Bug#7020 mysqldump --compatible=mysql40 should set --skip-set-charset --default-char...
-# Check that we don't dump in UTF8 in compatible mode by default,
-# but use the default compiled values, or the values given in
-# --default-character-set=xxx. However, we should dump in UTF8
-# if it is explicitly set.
-CREATE TABLE t1 (a CHAR(10));
-INSERT INTO t1 VALUES (_latin1 'ÄÖÜß');
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` char(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES ('ÄÖÜß');
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-#
-# Bug#8063 make test mysqldump [ fail ]
-# We cannot test this command because its output depends
-# on --default-character-set incompiled into "mysqldump" program.
-# If the future we can move this command into a separate test with
-# checking that "mysqldump" is compiled with "latin1"
-#
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-CREATE TABLE `t1` (
- `a` char(10) DEFAULT NULL
-) TYPE=MyISAM;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES ('Ž™šá');
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-CREATE TABLE `t1` (
- `a` char(10) DEFAULT NULL
-) TYPE=MyISAM;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES ('Ž™šá');
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-CREATE TABLE `t1` (
- `a` char(10) DEFAULT NULL
-) TYPE=MyISAM;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES ('ÄÖÜß');
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE t1;
-#
-# WL#2319 Exclude Tables from dump
-#
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int);
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t2 VALUES (4),(5),(6);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t2` WRITE;
-/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
-INSERT INTO `t2` VALUES (4),(5),(6);
-/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# Bug#8830 mysqldump --skip-extended-insert causes --hex-blob to dump wrong values
-#
-CREATE TABLE t1 (`b` blob);
-INSERT INTO `t1` VALUES (0x602010000280100005E71A);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `b` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (0x602010000280100005E71A);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE t1;
-#
-# Test for --insert-ignore
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t1 VALUES (4),(5),(6);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT IGNORE INTO `t1` VALUES (1),(2),(3),(4),(5),(6);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT DELAYED IGNORE INTO `t1` VALUES (1),(2),(3),(4),(5),(6);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE t1;
-#
-# Bug#10286 mysqldump -c crashes on table that has many fields with long
-# names
-#
-create table t1 (
-F_c4ca4238a0b923820dcc509a6f75849b int,
-F_c81e728d9d4c2f636f067f89cc14862c int,
-F_eccbc87e4b5ce2fe28308fd9f2a7baf3 int,
-F_a87ff679a2f3e71d9181a67b7542122c int,
-F_e4da3b7fbbce2345d7772b0674a318d5 int,
-F_1679091c5a880faf6fb5e6087eb1b2dc int,
-F_8f14e45fceea167a5a36dedd4bea2543 int,
-F_c9f0f895fb98ab9159f51fd0297e236d int,
-F_45c48cce2e2d7fbdea1afc51c7c6ad26 int,
-F_d3d9446802a44259755d38e6d163e820 int,
-F_6512bd43d9caa6e02c990b0a82652dca int,
-F_c20ad4d76fe97759aa27a0c99bff6710 int,
-F_c51ce410c124a10e0db5e4b97fc2af39 int,
-F_aab3238922bcc25a6f606eb525ffdc56 int,
-F_9bf31c7ff062936a96d3c8bd1f8f2ff3 int,
-F_c74d97b01eae257e44aa9d5bade97baf int,
-F_70efdf2ec9b086079795c442636b55fb int,
-F_6f4922f45568161a8cdf4ad2299f6d23 int,
-F_1f0e3dad99908345f7439f8ffabdffc4 int,
-F_98f13708210194c475687be6106a3b84 int,
-F_3c59dc048e8850243be8079a5c74d079 int,
-F_b6d767d2f8ed5d21a44b0e5886680cb9 int,
-F_37693cfc748049e45d87b8c7d8b9aacd int,
-F_1ff1de774005f8da13f42943881c655f int,
-F_8e296a067a37563370ded05f5a3bf3ec int,
-F_4e732ced3463d06de0ca9a15b6153677 int,
-F_02e74f10e0327ad868d138f2b4fdd6f0 int,
-F_33e75ff09dd601bbe69f351039152189 int,
-F_6ea9ab1baa0efb9e19094440c317e21b int,
-F_34173cb38f07f89ddbebc2ac9128303f int,
-F_c16a5320fa475530d9583c34fd356ef5 int,
-F_6364d3f0f495b6ab9dcf8d3b5c6e0b01 int,
-F_182be0c5cdcd5072bb1864cdee4d3d6e int,
-F_e369853df766fa44e1ed0ff613f563bd int,
-F_1c383cd30b7c298ab50293adfecb7b18 int,
-F_19ca14e7ea6328a42e0eb13d585e4c22 int,
-F_a5bfc9e07964f8dddeb95fc584cd965d int,
-F_a5771bce93e200c36f7cd9dfd0e5deaa int,
-F_d67d8ab4f4c10bf22aa353e27879133c int,
-F_d645920e395fedad7bbbed0eca3fe2e0 int,
-F_3416a75f4cea9109507cacd8e2f2aefc int,
-F_a1d0c6e83f027327d8461063f4ac58a6 int,
-F_17e62166fc8586dfa4d1bc0e1742c08b int,
-F_f7177163c833dff4b38fc8d2872f1ec6 int,
-F_6c8349cc7260ae62e3b1396831a8398f int,
-F_d9d4f495e875a2e075a1a4a6e1b9770f int,
-F_67c6a1e7ce56d3d6fa748ab6d9af3fd7 int,
-F_642e92efb79421734881b53e1e1b18b6 int,
-F_f457c545a9ded88f18ecee47145a72c0 int,
-F_c0c7c76d30bd3dcaefc96f40275bdc0a int,
-F_2838023a778dfaecdc212708f721b788 int,
-F_9a1158154dfa42caddbd0694a4e9bdc8 int,
-F_d82c8d1619ad8176d665453cfb2e55f0 int,
-F_a684eceee76fc522773286a895bc8436 int,
-F_b53b3a3d6ab90ce0268229151c9bde11 int,
-F_9f61408e3afb633e50cdf1b20de6f466 int,
-F_72b32a1f754ba1c09b3695e0cb6cde7f int,
-F_66f041e16a60928b05a7e228a89c3799 int,
-F_093f65e080a295f8076b1c5722a46aa2 int,
-F_072b030ba126b2f4b2374f342be9ed44 int,
-F_7f39f8317fbdb1988ef4c628eba02591 int,
-F_44f683a84163b3523afe57c2e008bc8c int,
-F_03afdbd66e7929b125f8597834fa83a4 int,
-F_ea5d2f1c4608232e07d3aa3d998e5135 int,
-F_fc490ca45c00b1249bbe3554a4fdf6fb int,
-F_3295c76acbf4caaed33c36b1b5fc2cb1 int,
-F_735b90b4568125ed6c3f678819b6e058 int,
-F_a3f390d88e4c41f2747bfa2f1b5f87db int,
-F_14bfa6bb14875e45bba028a21ed38046 int,
-F_7cbbc409ec990f19c78c75bd1e06f215 int,
-F_e2c420d928d4bf8ce0ff2ec19b371514 int,
-F_32bb90e8976aab5298d5da10fe66f21d int,
-F_d2ddea18f00665ce8623e36bd4e3c7c5 int,
-F_ad61ab143223efbc24c7d2583be69251 int,
-F_d09bf41544a3365a46c9077ebb5e35c3 int,
-F_fbd7939d674997cdb4692d34de8633c4 int,
-F_28dd2c7955ce926456240b2ff0100bde int,
-F_35f4a8d465e6e1edc05f3d8ab658c551 int,
-F_d1fe173d08e959397adf34b1d77e88d7 int,
-F_f033ab37c30201f73f142449d037028d int,
-F_43ec517d68b6edd3015b3edc9a11367b int,
-F_9778d5d219c5080b9a6a17bef029331c int,
-F_fe9fc289c3ff0af142b6d3bead98a923 int,
-F_68d30a9594728bc39aa24be94b319d21 int,
-F_3ef815416f775098fe977004015c6193 int,
-F_93db85ed909c13838ff95ccfa94cebd9 int,
-F_c7e1249ffc03eb9ded908c236bd1996d int,
-F_2a38a4a9316c49e5a833517c45d31070 int,
-F_7647966b7343c29048673252e490f736 int,
-F_8613985ec49eb8f757ae6439e879bb2a int,
-F_54229abfcfa5649e7003b83dd4755294 int,
-F_92cc227532d17e56e07902b254dfad10 int,
-F_98dce83da57b0395e163467c9dae521b int,
-F_f4b9ec30ad9f68f89b29639786cb62ef int,
-F_812b4ba287f5ee0bc9d43bbf5bbe87fb int,
-F_26657d5ff9020d2abefe558796b99584 int,
-F_e2ef524fbf3d9fe611d5a8e90fefdc9c int,
-F_ed3d2c21991e3bef5e069713af9fa6ca int,
-F_ac627ab1ccbdb62ec96e702f07f6425b int,
-F_f899139df5e1059396431415e770c6dd int,
-F_38b3eff8baf56627478ec76a704e9b52 int,
-F_ec8956637a99787bd197eacd77acce5e int,
-F_6974ce5ac660610b44d9b9fed0ff9548 int,
-F_c9e1074f5b3f9fc8ea15d152add07294 int,
-F_65b9eea6e1cc6bb9f0cd2a47751a186f int,
-F_f0935e4cd5920aa6c7c996a5ee53a70f int,
-F_a97da629b098b75c294dffdc3e463904 int,
-F_a3c65c2974270fd093ee8a9bf8ae7d0b int,
-F_2723d092b63885e0d7c260cc007e8b9d int,
-F_5f93f983524def3dca464469d2cf9f3e int,
-F_698d51a19d8a121ce581499d7b701668 int,
-F_7f6ffaa6bb0b408017b62254211691b5 int,
-F_73278a4a86960eeb576a8fd4c9ec6997 int,
-F_5fd0b37cd7dbbb00f97ba6ce92bf5add int,
-F_2b44928ae11fb9384c4cf38708677c48 int,
-F_c45147dee729311ef5b5c3003946c48f int,
-F_eb160de1de89d9058fcb0b968dbbbd68 int,
-F_5ef059938ba799aaa845e1c2e8a762bd int,
-F_07e1cd7dca89a1678042477183b7ac3f int,
-F_da4fb5c6e93e74d3df8527599fa62642 int,
-F_4c56ff4ce4aaf9573aa5dff913df997a int,
-F_a0a080f42e6f13b3a2df133f073095dd int,
-F_202cb962ac59075b964b07152d234b70 int,
-F_c8ffe9a587b126f152ed3d89a146b445 int,
-F_3def184ad8f4755ff269862ea77393dd int,
-F_069059b7ef840f0c74a814ec9237b6ec int,
-F_ec5decca5ed3d6b8079e2e7e7bacc9f2 int,
-F_76dc611d6ebaafc66cc0879c71b5db5c int,
-F_d1f491a404d6854880943e5c3cd9ca25 int,
-F_9b8619251a19057cff70779273e95aa6 int,
-F_1afa34a7f984eeabdbb0a7d494132ee5 int,
-F_65ded5353c5ee48d0b7d48c591b8f430 int,
-F_9fc3d7152ba9336a670e36d0ed79bc43 int,
-F_02522a2b2726fb0a03bb19f2d8d9524d int,
-F_7f1de29e6da19d22b51c68001e7e0e54 int,
-F_42a0e188f5033bc65bf8d78622277c4e int,
-F_3988c7f88ebcb58c6ce932b957b6f332 int,
-F_013d407166ec4fa56eb1e1f8cbe183b9 int,
-F_e00da03b685a0dd18fb6a08af0923de0 int,
-F_1385974ed5904a438616ff7bdb3f7439 int,
-F_0f28b5d49b3020afeecd95b4009adf4c int,
-F_a8baa56554f96369ab93e4f3bb068c22 int,
-F_903ce9225fca3e988c2af215d4e544d3 int,
-F_0a09c8844ba8f0936c20bd791130d6b6 int,
-F_2b24d495052a8ce66358eb576b8912c8 int,
-F_a5e00132373a7031000fd987a3c9f87b int,
-F_8d5e957f297893487bd98fa830fa6413 int,
-F_47d1e990583c9c67424d369f3414728e int,
-F_f2217062e9a397a1dca429e7d70bc6ca int,
-F_7ef605fc8dba5425d6965fbd4c8fbe1f int,
-F_a8f15eda80c50adb0e71943adc8015cf int,
-F_37a749d808e46495a8da1e5352d03cae int,
-F_b3e3e393c77e35a4a3f3cbd1e429b5dc int,
-F_1d7f7abc18fcb43975065399b0d1e48e int,
-F_2a79ea27c279e471f4d180b08d62b00a int,
-F_1c9ac0159c94d8d0cbedc973445af2da int,
-F_6c4b761a28b734fe93831e3fb400ce87 int,
-F_06409663226af2f3114485aa4e0a23b4 int,
-F_140f6969d5213fd0ece03148e62e461e int,
-F_b73ce398c39f506af761d2277d853a92 int,
-F_bd4c9ab730f5513206b999ec0d90d1fb int,
-F_82aa4b0af34c2313a562076992e50aa3 int,
-F_0777d5c17d4066b82ab86dff8a46af6f int,
-F_fa7cdfad1a5aaf8370ebeda47a1ff1c3 int,
-F_9766527f2b5d3e95d4a733fcfb77bd7e int,
-F_7e7757b1e12abcb736ab9a754ffb617a int,
-F_5878a7ab84fb43402106c575658472fa int,
-F_006f52e9102a8d3be2fe5614f42ba989 int,
-F_3636638817772e42b59d74cff571fbb3 int,
-F_149e9677a5989fd342ae44213df68868 int,
-F_a4a042cf4fd6bfb47701cbc8a1653ada int,
-F_1ff8a7b5dc7a7d1f0ed65aaa29c04b1e int,
-F_f7e6c85504ce6e82442c770f7c8606f0 int,
-F_bf8229696f7a3bb4700cfddef19fa23f int,
-F_82161242827b703e6acf9c726942a1e4 int,
-F_38af86134b65d0f10fe33d30dd76442e int,
-F_96da2f590cd7246bbde0051047b0d6f7 int,
-F_8f85517967795eeef66c225f7883bdcb int,
-F_8f53295a73878494e9bc8dd6c3c7104f int,
-F_045117b0e0a11a242b9765e79cbf113f int,
-F_fc221309746013ac554571fbd180e1c8 int,
-F_4c5bde74a8f110656874902f07378009 int,
-F_cedebb6e872f539bef8c3f919874e9d7 int,
-F_6cdd60ea0045eb7a6ec44c54d29ed402 int,
-F_eecca5b6365d9607ee5a9d336962c534 int,
-F_9872ed9fc22fc182d371c3e9ed316094 int,
-F_31fefc0e570cb3860f2a6d4b38c6490d int,
-F_9dcb88e0137649590b755372b040afad int,
-F_a2557a7b2e94197ff767970b67041697 int,
-F_cfecdb276f634854f3ef915e2e980c31 int,
-F_0aa1883c6411f7873cb83dacb17b0afc int,
-F_58a2fc6ed39fd083f55d4182bf88826d int,
-F_bd686fd640be98efaae0091fa301e613 int,
-F_a597e50502f5ff68e3e25b9114205d4a int,
-F_0336dcbab05b9d5ad24f4333c7658a0e int,
-F_084b6fbb10729ed4da8c3d3f5a3ae7c9 int,
-F_85d8ce590ad8981ca2c8286f79f59954 int,
-F_0e65972dce68dad4d52d063967f0a705 int,
-F_84d9ee44e457ddef7f2c4f25dc8fa865 int,
-F_3644a684f98ea8fe223c713b77189a77 int,
-F_757b505cfd34c64c85ca5b5690ee5293 int,
-F_854d6fae5ee42911677c739ee1734486 int,
-F_e2c0be24560d78c5e599c2a9c9d0bbd2 int,
-F_274ad4786c3abca69fa097b85867d9a4 int,
-F_eae27d77ca20db309e056e3d2dcd7d69 int,
-F_7eabe3a1649ffa2b3ff8c02ebfd5659f int,
-F_69adc1e107f7f7d035d7baf04342e1ca int,
-F_091d584fced301b442654dd8c23b3fc9 int,
-F_b1d10e7bafa4421218a51b1e1f1b0ba2 int,
-F_6f3ef77ac0e3619e98159e9b6febf557 int,
-F_eb163727917cbba1eea208541a643e74 int,
-F_1534b76d325a8f591b52d302e7181331 int,
-F_979d472a84804b9f647bc185a877a8b5 int,
-F_ca46c1b9512a7a8315fa3c5a946e8265 int,
-F_3b8a614226a953a8cd9526fca6fe9ba5 int,
-F_45fbc6d3e05ebd93369ce542e8f2322d int,
-F_63dc7ed1010d3c3b8269faf0ba7491d4 int,
-F_e96ed478dab8595a7dbda4cbcbee168f int,
-F_c0e190d8267e36708f955d7ab048990d int,
-F_ec8ce6abb3e952a85b8551ba726a1227 int,
-F_060ad92489947d410d897474079c1477 int,
-F_bcbe3365e6ac95ea2c0343a2395834dd int,
-F_115f89503138416a242f40fb7d7f338e int,
-F_13fe9d84310e77f13a6d184dbf1232f3 int,
-F_d1c38a09acc34845c6be3a127a5aacaf int,
-F_9cfdf10e8fc047a44b08ed031e1f0ed1 int,
-F_705f2172834666788607efbfca35afb3 int,
-F_74db120f0a8e5646ef5a30154e9f6deb int,
-F_57aeee35c98205091e18d1140e9f38cf int,
-F_6da9003b743b65f4c0ccd295cc484e57 int,
-F_9b04d152845ec0a378394003c96da594 int,
-F_be83ab3ecd0db773eb2dc1b0a17836a1 int,
-F_e165421110ba03099a1c0393373c5b43 int,
-F_289dff07669d7a23de0ef88d2f7129e7 int,
-F_577ef1154f3240ad5b9b413aa7346a1e int,
-F_01161aaa0b6d1345dd8fe4e481144d84 int,
-F_539fd53b59e3bb12d203f45a912eeaf2 int,
-F_ac1dd209cbcc5e5d1c6e28598e8cbbe8 int,
-F_555d6702c950ecb729a966504af0a635 int,
-F_335f5352088d7d9bf74191e006d8e24c int,
-F_f340f1b1f65b6df5b5e3f94d95b11daf int,
-F_e4a6222cdb5b34375400904f03d8e6a5 int,
-F_cb70ab375662576bd1ac5aaf16b3fca4 int,
-F_9188905e74c28e489b44e954ec0b9bca int,
-F_0266e33d3f546cb5436a10798e657d97 int,
-F_38db3aed920cf82ab059bfccbd02be6a int,
-F_3cec07e9ba5f5bb252d13f5f431e4bbb int,
-F_621bf66ddb7c962aa0d22ac97d69b793 int,
-F_077e29b11be80ab57e1a2ecabb7da330 int,
-F_6c9882bbac1c7093bd25041881277658 int,
-F_19f3cd308f1455b3fa09a282e0d496f4 int,
-F_03c6b06952c750899bb03d998e631860 int,
-F_c24cd76e1ce41366a4bbe8a49b02a028 int,
-F_c52f1bd66cc19d05628bd8bf27af3ad6 int,
-F_fe131d7f5a6b38b23cc967316c13dae2 int,
-F_f718499c1c8cef6730f9fd03c8125cab int,
-F_d96409bf894217686ba124d7356686c9 int,
-F_502e4a16930e414107ee22b6198c578f int,
-F_cfa0860e83a4c3a763a7e62d825349f7 int,
-F_a4f23670e1833f3fdb077ca70bbd5d66 int,
-F_b1a59b315fc9a3002ce38bbe070ec3f5 int,
-F_36660e59856b4de58a219bcf4e27eba3 int,
-F_8c19f571e251e61cb8dd3612f26d5ecf int,
-F_d6baf65e0b240ce177cf70da146c8dc8 int,
-F_e56954b4f6347e897f954495eab16a88 int,
-F_f7664060cc52bc6f3d620bcedc94a4b6 int,
-F_eda80a3d5b344bc40f3bc04f65b7a357 int,
-F_8f121ce07d74717e0b1f21d122e04521 int,
-F_06138bc5af6023646ede0e1f7c1eac75 int,
-F_39059724f73a9969845dfe4146c5660e int,
-F_7f100b7b36092fb9b06dfb4fac360931 int,
-F_7a614fd06c325499f1680b9896beedeb int,
-F_4734ba6f3de83d861c3176a6273cac6d int,
-F_d947bf06a885db0d477d707121934ff8 int,
-F_63923f49e5241343aa7acb6a06a751e7 int,
-F_db8e1af0cb3aca1ae2d0018624204529 int,
-F_20f07591c6fcb220ffe637cda29bb3f6 int,
-F_07cdfd23373b17c6b337251c22b7ea57 int,
-F_d395771085aab05244a4fb8fd91bf4ee int,
-F_92c8c96e4c37100777c7190b76d28233 int,
-F_e3796ae838835da0b6f6ea37bcf8bcb7 int,
-F_6a9aeddfc689c1d0e3b9ccc3ab651bc5 int,
-F_0f49c89d1e7298bb9930789c8ed59d48 int,
-F_46ba9f2a6976570b0353203ec4474217 int,
-F_0e01938fc48a2cfb5f2217fbfb00722d int,
-F_16a5cdae362b8d27a1d8f8c7b78b4330 int,
-F_918317b57931b6b7a7d29490fe5ec9f9 int,
-F_48aedb8880cab8c45637abc7493ecddd int,
-F_839ab46820b524afda05122893c2fe8e int,
-F_f90f2aca5c640289d0a29417bcb63a37 int,
-F_9c838d2e45b2ad1094d42f4ef36764f6 int,
-F_1700002963a49da13542e0726b7bb758 int,
-F_53c3bce66e43be4f209556518c2fcb54 int,
-F_6883966fd8f918a4aa29be29d2c386fb int,
-F_49182f81e6a13cf5eaa496d51fea6406 int,
-F_d296c101daa88a51f6ca8cfc1ac79b50 int,
-F_9fd81843ad7f202f26c1a174c7357585 int,
-F_26e359e83860db1d11b6acca57d8ea88 int,
-F_ef0d3930a7b6c95bd2b32ed45989c61f int,
-F_94f6d7e04a4d452035300f18b984988c int,
-F_34ed066df378efacc9b924ec161e7639 int,
-F_577bcc914f9e55d5e4e4f82f9f00e7d4 int,
-F_11b9842e0a271ff252c1903e7132cd68 int,
-F_37bc2f75bf1bcfe8450a1a41c200364c int,
-F_496e05e1aea0a9c4655800e8a7b9ea28 int,
-F_b2eb7349035754953b57a32e2841bda5 int,
-F_8e98d81f8217304975ccb23337bb5761 int,
-F_a8c88a0055f636e4a163a5e3d16adab7 int,
-F_eddea82ad2755b24c4e168c5fc2ebd40 int,
-F_06eb61b839a0cefee4967c67ccb099dc int,
-F_9dfcd5e558dfa04aaf37f137a1d9d3e5 int,
-F_950a4152c2b4aa3ad78bdd6b366cc179 int,
-F_158f3069a435b314a80bdcb024f8e422 int,
-F_758874998f5bd0c393da094e1967a72b int,
-F_ad13a2a07ca4b7642959dc0c4c740ab6 int,
-F_3fe94a002317b5f9259f82690aeea4cd int,
-F_5b8add2a5d98b1a652ea7fd72d942dac int,
-F_432aca3a1e345e339f35a30c8f65edce int,
-F_8d3bba7425e7c98c50f52ca1b52d3735 int,
-F_320722549d1751cf3f247855f937b982 int,
-F_caf1a3dfb505ffed0d024130f58c5cfa int,
-F_5737c6ec2e0716f3d8a7a5c4e0de0d9a int,
-F_bc6dc48b743dc5d013b1abaebd2faed2 int,
-F_f2fc990265c712c49d51a18a32b39f0c int,
-F_89f0fd5c927d466d6ec9a21b9ac34ffa int,
-F_a666587afda6e89aec274a3657558a27 int,
-F_b83aac23b9528732c23cc7352950e880 int,
-F_cd00692c3bfe59267d5ecfac5310286c int,
-F_6faa8040da20ef399b63a72d0e4ab575 int,
-F_fe73f687e5bc5280214e0486b273a5f9 int);
-insert into t1 (F_8d3bba7425e7c98c50f52ca1b52d3735) values (1);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `F_c4ca4238a0b923820dcc509a6f75849b` int(11) DEFAULT NULL,
- `F_c81e728d9d4c2f636f067f89cc14862c` int(11) DEFAULT NULL,
- `F_eccbc87e4b5ce2fe28308fd9f2a7baf3` int(11) DEFAULT NULL,
- `F_a87ff679a2f3e71d9181a67b7542122c` int(11) DEFAULT NULL,
- `F_e4da3b7fbbce2345d7772b0674a318d5` int(11) DEFAULT NULL,
- `F_1679091c5a880faf6fb5e6087eb1b2dc` int(11) DEFAULT NULL,
- `F_8f14e45fceea167a5a36dedd4bea2543` int(11) DEFAULT NULL,
- `F_c9f0f895fb98ab9159f51fd0297e236d` int(11) DEFAULT NULL,
- `F_45c48cce2e2d7fbdea1afc51c7c6ad26` int(11) DEFAULT NULL,
- `F_d3d9446802a44259755d38e6d163e820` int(11) DEFAULT NULL,
- `F_6512bd43d9caa6e02c990b0a82652dca` int(11) DEFAULT NULL,
- `F_c20ad4d76fe97759aa27a0c99bff6710` int(11) DEFAULT NULL,
- `F_c51ce410c124a10e0db5e4b97fc2af39` int(11) DEFAULT NULL,
- `F_aab3238922bcc25a6f606eb525ffdc56` int(11) DEFAULT NULL,
- `F_9bf31c7ff062936a96d3c8bd1f8f2ff3` int(11) DEFAULT NULL,
- `F_c74d97b01eae257e44aa9d5bade97baf` int(11) DEFAULT NULL,
- `F_70efdf2ec9b086079795c442636b55fb` int(11) DEFAULT NULL,
- `F_6f4922f45568161a8cdf4ad2299f6d23` int(11) DEFAULT NULL,
- `F_1f0e3dad99908345f7439f8ffabdffc4` int(11) DEFAULT NULL,
- `F_98f13708210194c475687be6106a3b84` int(11) DEFAULT NULL,
- `F_3c59dc048e8850243be8079a5c74d079` int(11) DEFAULT NULL,
- `F_b6d767d2f8ed5d21a44b0e5886680cb9` int(11) DEFAULT NULL,
- `F_37693cfc748049e45d87b8c7d8b9aacd` int(11) DEFAULT NULL,
- `F_1ff1de774005f8da13f42943881c655f` int(11) DEFAULT NULL,
- `F_8e296a067a37563370ded05f5a3bf3ec` int(11) DEFAULT NULL,
- `F_4e732ced3463d06de0ca9a15b6153677` int(11) DEFAULT NULL,
- `F_02e74f10e0327ad868d138f2b4fdd6f0` int(11) DEFAULT NULL,
- `F_33e75ff09dd601bbe69f351039152189` int(11) DEFAULT NULL,
- `F_6ea9ab1baa0efb9e19094440c317e21b` int(11) DEFAULT NULL,
- `F_34173cb38f07f89ddbebc2ac9128303f` int(11) DEFAULT NULL,
- `F_c16a5320fa475530d9583c34fd356ef5` int(11) DEFAULT NULL,
- `F_6364d3f0f495b6ab9dcf8d3b5c6e0b01` int(11) DEFAULT NULL,
- `F_182be0c5cdcd5072bb1864cdee4d3d6e` int(11) DEFAULT NULL,
- `F_e369853df766fa44e1ed0ff613f563bd` int(11) DEFAULT NULL,
- `F_1c383cd30b7c298ab50293adfecb7b18` int(11) DEFAULT NULL,
- `F_19ca14e7ea6328a42e0eb13d585e4c22` int(11) DEFAULT NULL,
- `F_a5bfc9e07964f8dddeb95fc584cd965d` int(11) DEFAULT NULL,
- `F_a5771bce93e200c36f7cd9dfd0e5deaa` int(11) DEFAULT NULL,
- `F_d67d8ab4f4c10bf22aa353e27879133c` int(11) DEFAULT NULL,
- `F_d645920e395fedad7bbbed0eca3fe2e0` int(11) DEFAULT NULL,
- `F_3416a75f4cea9109507cacd8e2f2aefc` int(11) DEFAULT NULL,
- `F_a1d0c6e83f027327d8461063f4ac58a6` int(11) DEFAULT NULL,
- `F_17e62166fc8586dfa4d1bc0e1742c08b` int(11) DEFAULT NULL,
- `F_f7177163c833dff4b38fc8d2872f1ec6` int(11) DEFAULT NULL,
- `F_6c8349cc7260ae62e3b1396831a8398f` int(11) DEFAULT NULL,
- `F_d9d4f495e875a2e075a1a4a6e1b9770f` int(11) DEFAULT NULL,
- `F_67c6a1e7ce56d3d6fa748ab6d9af3fd7` int(11) DEFAULT NULL,
- `F_642e92efb79421734881b53e1e1b18b6` int(11) DEFAULT NULL,
- `F_f457c545a9ded88f18ecee47145a72c0` int(11) DEFAULT NULL,
- `F_c0c7c76d30bd3dcaefc96f40275bdc0a` int(11) DEFAULT NULL,
- `F_2838023a778dfaecdc212708f721b788` int(11) DEFAULT NULL,
- `F_9a1158154dfa42caddbd0694a4e9bdc8` int(11) DEFAULT NULL,
- `F_d82c8d1619ad8176d665453cfb2e55f0` int(11) DEFAULT NULL,
- `F_a684eceee76fc522773286a895bc8436` int(11) DEFAULT NULL,
- `F_b53b3a3d6ab90ce0268229151c9bde11` int(11) DEFAULT NULL,
- `F_9f61408e3afb633e50cdf1b20de6f466` int(11) DEFAULT NULL,
- `F_72b32a1f754ba1c09b3695e0cb6cde7f` int(11) DEFAULT NULL,
- `F_66f041e16a60928b05a7e228a89c3799` int(11) DEFAULT NULL,
- `F_093f65e080a295f8076b1c5722a46aa2` int(11) DEFAULT NULL,
- `F_072b030ba126b2f4b2374f342be9ed44` int(11) DEFAULT NULL,
- `F_7f39f8317fbdb1988ef4c628eba02591` int(11) DEFAULT NULL,
- `F_44f683a84163b3523afe57c2e008bc8c` int(11) DEFAULT NULL,
- `F_03afdbd66e7929b125f8597834fa83a4` int(11) DEFAULT NULL,
- `F_ea5d2f1c4608232e07d3aa3d998e5135` int(11) DEFAULT NULL,
- `F_fc490ca45c00b1249bbe3554a4fdf6fb` int(11) DEFAULT NULL,
- `F_3295c76acbf4caaed33c36b1b5fc2cb1` int(11) DEFAULT NULL,
- `F_735b90b4568125ed6c3f678819b6e058` int(11) DEFAULT NULL,
- `F_a3f390d88e4c41f2747bfa2f1b5f87db` int(11) DEFAULT NULL,
- `F_14bfa6bb14875e45bba028a21ed38046` int(11) DEFAULT NULL,
- `F_7cbbc409ec990f19c78c75bd1e06f215` int(11) DEFAULT NULL,
- `F_e2c420d928d4bf8ce0ff2ec19b371514` int(11) DEFAULT NULL,
- `F_32bb90e8976aab5298d5da10fe66f21d` int(11) DEFAULT NULL,
- `F_d2ddea18f00665ce8623e36bd4e3c7c5` int(11) DEFAULT NULL,
- `F_ad61ab143223efbc24c7d2583be69251` int(11) DEFAULT NULL,
- `F_d09bf41544a3365a46c9077ebb5e35c3` int(11) DEFAULT NULL,
- `F_fbd7939d674997cdb4692d34de8633c4` int(11) DEFAULT NULL,
- `F_28dd2c7955ce926456240b2ff0100bde` int(11) DEFAULT NULL,
- `F_35f4a8d465e6e1edc05f3d8ab658c551` int(11) DEFAULT NULL,
- `F_d1fe173d08e959397adf34b1d77e88d7` int(11) DEFAULT NULL,
- `F_f033ab37c30201f73f142449d037028d` int(11) DEFAULT NULL,
- `F_43ec517d68b6edd3015b3edc9a11367b` int(11) DEFAULT NULL,
- `F_9778d5d219c5080b9a6a17bef029331c` int(11) DEFAULT NULL,
- `F_fe9fc289c3ff0af142b6d3bead98a923` int(11) DEFAULT NULL,
- `F_68d30a9594728bc39aa24be94b319d21` int(11) DEFAULT NULL,
- `F_3ef815416f775098fe977004015c6193` int(11) DEFAULT NULL,
- `F_93db85ed909c13838ff95ccfa94cebd9` int(11) DEFAULT NULL,
- `F_c7e1249ffc03eb9ded908c236bd1996d` int(11) DEFAULT NULL,
- `F_2a38a4a9316c49e5a833517c45d31070` int(11) DEFAULT NULL,
- `F_7647966b7343c29048673252e490f736` int(11) DEFAULT NULL,
- `F_8613985ec49eb8f757ae6439e879bb2a` int(11) DEFAULT NULL,
- `F_54229abfcfa5649e7003b83dd4755294` int(11) DEFAULT NULL,
- `F_92cc227532d17e56e07902b254dfad10` int(11) DEFAULT NULL,
- `F_98dce83da57b0395e163467c9dae521b` int(11) DEFAULT NULL,
- `F_f4b9ec30ad9f68f89b29639786cb62ef` int(11) DEFAULT NULL,
- `F_812b4ba287f5ee0bc9d43bbf5bbe87fb` int(11) DEFAULT NULL,
- `F_26657d5ff9020d2abefe558796b99584` int(11) DEFAULT NULL,
- `F_e2ef524fbf3d9fe611d5a8e90fefdc9c` int(11) DEFAULT NULL,
- `F_ed3d2c21991e3bef5e069713af9fa6ca` int(11) DEFAULT NULL,
- `F_ac627ab1ccbdb62ec96e702f07f6425b` int(11) DEFAULT NULL,
- `F_f899139df5e1059396431415e770c6dd` int(11) DEFAULT NULL,
- `F_38b3eff8baf56627478ec76a704e9b52` int(11) DEFAULT NULL,
- `F_ec8956637a99787bd197eacd77acce5e` int(11) DEFAULT NULL,
- `F_6974ce5ac660610b44d9b9fed0ff9548` int(11) DEFAULT NULL,
- `F_c9e1074f5b3f9fc8ea15d152add07294` int(11) DEFAULT NULL,
- `F_65b9eea6e1cc6bb9f0cd2a47751a186f` int(11) DEFAULT NULL,
- `F_f0935e4cd5920aa6c7c996a5ee53a70f` int(11) DEFAULT NULL,
- `F_a97da629b098b75c294dffdc3e463904` int(11) DEFAULT NULL,
- `F_a3c65c2974270fd093ee8a9bf8ae7d0b` int(11) DEFAULT NULL,
- `F_2723d092b63885e0d7c260cc007e8b9d` int(11) DEFAULT NULL,
- `F_5f93f983524def3dca464469d2cf9f3e` int(11) DEFAULT NULL,
- `F_698d51a19d8a121ce581499d7b701668` int(11) DEFAULT NULL,
- `F_7f6ffaa6bb0b408017b62254211691b5` int(11) DEFAULT NULL,
- `F_73278a4a86960eeb576a8fd4c9ec6997` int(11) DEFAULT NULL,
- `F_5fd0b37cd7dbbb00f97ba6ce92bf5add` int(11) DEFAULT NULL,
- `F_2b44928ae11fb9384c4cf38708677c48` int(11) DEFAULT NULL,
- `F_c45147dee729311ef5b5c3003946c48f` int(11) DEFAULT NULL,
- `F_eb160de1de89d9058fcb0b968dbbbd68` int(11) DEFAULT NULL,
- `F_5ef059938ba799aaa845e1c2e8a762bd` int(11) DEFAULT NULL,
- `F_07e1cd7dca89a1678042477183b7ac3f` int(11) DEFAULT NULL,
- `F_da4fb5c6e93e74d3df8527599fa62642` int(11) DEFAULT NULL,
- `F_4c56ff4ce4aaf9573aa5dff913df997a` int(11) DEFAULT NULL,
- `F_a0a080f42e6f13b3a2df133f073095dd` int(11) DEFAULT NULL,
- `F_202cb962ac59075b964b07152d234b70` int(11) DEFAULT NULL,
- `F_c8ffe9a587b126f152ed3d89a146b445` int(11) DEFAULT NULL,
- `F_3def184ad8f4755ff269862ea77393dd` int(11) DEFAULT NULL,
- `F_069059b7ef840f0c74a814ec9237b6ec` int(11) DEFAULT NULL,
- `F_ec5decca5ed3d6b8079e2e7e7bacc9f2` int(11) DEFAULT NULL,
- `F_76dc611d6ebaafc66cc0879c71b5db5c` int(11) DEFAULT NULL,
- `F_d1f491a404d6854880943e5c3cd9ca25` int(11) DEFAULT NULL,
- `F_9b8619251a19057cff70779273e95aa6` int(11) DEFAULT NULL,
- `F_1afa34a7f984eeabdbb0a7d494132ee5` int(11) DEFAULT NULL,
- `F_65ded5353c5ee48d0b7d48c591b8f430` int(11) DEFAULT NULL,
- `F_9fc3d7152ba9336a670e36d0ed79bc43` int(11) DEFAULT NULL,
- `F_02522a2b2726fb0a03bb19f2d8d9524d` int(11) DEFAULT NULL,
- `F_7f1de29e6da19d22b51c68001e7e0e54` int(11) DEFAULT NULL,
- `F_42a0e188f5033bc65bf8d78622277c4e` int(11) DEFAULT NULL,
- `F_3988c7f88ebcb58c6ce932b957b6f332` int(11) DEFAULT NULL,
- `F_013d407166ec4fa56eb1e1f8cbe183b9` int(11) DEFAULT NULL,
- `F_e00da03b685a0dd18fb6a08af0923de0` int(11) DEFAULT NULL,
- `F_1385974ed5904a438616ff7bdb3f7439` int(11) DEFAULT NULL,
- `F_0f28b5d49b3020afeecd95b4009adf4c` int(11) DEFAULT NULL,
- `F_a8baa56554f96369ab93e4f3bb068c22` int(11) DEFAULT NULL,
- `F_903ce9225fca3e988c2af215d4e544d3` int(11) DEFAULT NULL,
- `F_0a09c8844ba8f0936c20bd791130d6b6` int(11) DEFAULT NULL,
- `F_2b24d495052a8ce66358eb576b8912c8` int(11) DEFAULT NULL,
- `F_a5e00132373a7031000fd987a3c9f87b` int(11) DEFAULT NULL,
- `F_8d5e957f297893487bd98fa830fa6413` int(11) DEFAULT NULL,
- `F_47d1e990583c9c67424d369f3414728e` int(11) DEFAULT NULL,
- `F_f2217062e9a397a1dca429e7d70bc6ca` int(11) DEFAULT NULL,
- `F_7ef605fc8dba5425d6965fbd4c8fbe1f` int(11) DEFAULT NULL,
- `F_a8f15eda80c50adb0e71943adc8015cf` int(11) DEFAULT NULL,
- `F_37a749d808e46495a8da1e5352d03cae` int(11) DEFAULT NULL,
- `F_b3e3e393c77e35a4a3f3cbd1e429b5dc` int(11) DEFAULT NULL,
- `F_1d7f7abc18fcb43975065399b0d1e48e` int(11) DEFAULT NULL,
- `F_2a79ea27c279e471f4d180b08d62b00a` int(11) DEFAULT NULL,
- `F_1c9ac0159c94d8d0cbedc973445af2da` int(11) DEFAULT NULL,
- `F_6c4b761a28b734fe93831e3fb400ce87` int(11) DEFAULT NULL,
- `F_06409663226af2f3114485aa4e0a23b4` int(11) DEFAULT NULL,
- `F_140f6969d5213fd0ece03148e62e461e` int(11) DEFAULT NULL,
- `F_b73ce398c39f506af761d2277d853a92` int(11) DEFAULT NULL,
- `F_bd4c9ab730f5513206b999ec0d90d1fb` int(11) DEFAULT NULL,
- `F_82aa4b0af34c2313a562076992e50aa3` int(11) DEFAULT NULL,
- `F_0777d5c17d4066b82ab86dff8a46af6f` int(11) DEFAULT NULL,
- `F_fa7cdfad1a5aaf8370ebeda47a1ff1c3` int(11) DEFAULT NULL,
- `F_9766527f2b5d3e95d4a733fcfb77bd7e` int(11) DEFAULT NULL,
- `F_7e7757b1e12abcb736ab9a754ffb617a` int(11) DEFAULT NULL,
- `F_5878a7ab84fb43402106c575658472fa` int(11) DEFAULT NULL,
- `F_006f52e9102a8d3be2fe5614f42ba989` int(11) DEFAULT NULL,
- `F_3636638817772e42b59d74cff571fbb3` int(11) DEFAULT NULL,
- `F_149e9677a5989fd342ae44213df68868` int(11) DEFAULT NULL,
- `F_a4a042cf4fd6bfb47701cbc8a1653ada` int(11) DEFAULT NULL,
- `F_1ff8a7b5dc7a7d1f0ed65aaa29c04b1e` int(11) DEFAULT NULL,
- `F_f7e6c85504ce6e82442c770f7c8606f0` int(11) DEFAULT NULL,
- `F_bf8229696f7a3bb4700cfddef19fa23f` int(11) DEFAULT NULL,
- `F_82161242827b703e6acf9c726942a1e4` int(11) DEFAULT NULL,
- `F_38af86134b65d0f10fe33d30dd76442e` int(11) DEFAULT NULL,
- `F_96da2f590cd7246bbde0051047b0d6f7` int(11) DEFAULT NULL,
- `F_8f85517967795eeef66c225f7883bdcb` int(11) DEFAULT NULL,
- `F_8f53295a73878494e9bc8dd6c3c7104f` int(11) DEFAULT NULL,
- `F_045117b0e0a11a242b9765e79cbf113f` int(11) DEFAULT NULL,
- `F_fc221309746013ac554571fbd180e1c8` int(11) DEFAULT NULL,
- `F_4c5bde74a8f110656874902f07378009` int(11) DEFAULT NULL,
- `F_cedebb6e872f539bef8c3f919874e9d7` int(11) DEFAULT NULL,
- `F_6cdd60ea0045eb7a6ec44c54d29ed402` int(11) DEFAULT NULL,
- `F_eecca5b6365d9607ee5a9d336962c534` int(11) DEFAULT NULL,
- `F_9872ed9fc22fc182d371c3e9ed316094` int(11) DEFAULT NULL,
- `F_31fefc0e570cb3860f2a6d4b38c6490d` int(11) DEFAULT NULL,
- `F_9dcb88e0137649590b755372b040afad` int(11) DEFAULT NULL,
- `F_a2557a7b2e94197ff767970b67041697` int(11) DEFAULT NULL,
- `F_cfecdb276f634854f3ef915e2e980c31` int(11) DEFAULT NULL,
- `F_0aa1883c6411f7873cb83dacb17b0afc` int(11) DEFAULT NULL,
- `F_58a2fc6ed39fd083f55d4182bf88826d` int(11) DEFAULT NULL,
- `F_bd686fd640be98efaae0091fa301e613` int(11) DEFAULT NULL,
- `F_a597e50502f5ff68e3e25b9114205d4a` int(11) DEFAULT NULL,
- `F_0336dcbab05b9d5ad24f4333c7658a0e` int(11) DEFAULT NULL,
- `F_084b6fbb10729ed4da8c3d3f5a3ae7c9` int(11) DEFAULT NULL,
- `F_85d8ce590ad8981ca2c8286f79f59954` int(11) DEFAULT NULL,
- `F_0e65972dce68dad4d52d063967f0a705` int(11) DEFAULT NULL,
- `F_84d9ee44e457ddef7f2c4f25dc8fa865` int(11) DEFAULT NULL,
- `F_3644a684f98ea8fe223c713b77189a77` int(11) DEFAULT NULL,
- `F_757b505cfd34c64c85ca5b5690ee5293` int(11) DEFAULT NULL,
- `F_854d6fae5ee42911677c739ee1734486` int(11) DEFAULT NULL,
- `F_e2c0be24560d78c5e599c2a9c9d0bbd2` int(11) DEFAULT NULL,
- `F_274ad4786c3abca69fa097b85867d9a4` int(11) DEFAULT NULL,
- `F_eae27d77ca20db309e056e3d2dcd7d69` int(11) DEFAULT NULL,
- `F_7eabe3a1649ffa2b3ff8c02ebfd5659f` int(11) DEFAULT NULL,
- `F_69adc1e107f7f7d035d7baf04342e1ca` int(11) DEFAULT NULL,
- `F_091d584fced301b442654dd8c23b3fc9` int(11) DEFAULT NULL,
- `F_b1d10e7bafa4421218a51b1e1f1b0ba2` int(11) DEFAULT NULL,
- `F_6f3ef77ac0e3619e98159e9b6febf557` int(11) DEFAULT NULL,
- `F_eb163727917cbba1eea208541a643e74` int(11) DEFAULT NULL,
- `F_1534b76d325a8f591b52d302e7181331` int(11) DEFAULT NULL,
- `F_979d472a84804b9f647bc185a877a8b5` int(11) DEFAULT NULL,
- `F_ca46c1b9512a7a8315fa3c5a946e8265` int(11) DEFAULT NULL,
- `F_3b8a614226a953a8cd9526fca6fe9ba5` int(11) DEFAULT NULL,
- `F_45fbc6d3e05ebd93369ce542e8f2322d` int(11) DEFAULT NULL,
- `F_63dc7ed1010d3c3b8269faf0ba7491d4` int(11) DEFAULT NULL,
- `F_e96ed478dab8595a7dbda4cbcbee168f` int(11) DEFAULT NULL,
- `F_c0e190d8267e36708f955d7ab048990d` int(11) DEFAULT NULL,
- `F_ec8ce6abb3e952a85b8551ba726a1227` int(11) DEFAULT NULL,
- `F_060ad92489947d410d897474079c1477` int(11) DEFAULT NULL,
- `F_bcbe3365e6ac95ea2c0343a2395834dd` int(11) DEFAULT NULL,
- `F_115f89503138416a242f40fb7d7f338e` int(11) DEFAULT NULL,
- `F_13fe9d84310e77f13a6d184dbf1232f3` int(11) DEFAULT NULL,
- `F_d1c38a09acc34845c6be3a127a5aacaf` int(11) DEFAULT NULL,
- `F_9cfdf10e8fc047a44b08ed031e1f0ed1` int(11) DEFAULT NULL,
- `F_705f2172834666788607efbfca35afb3` int(11) DEFAULT NULL,
- `F_74db120f0a8e5646ef5a30154e9f6deb` int(11) DEFAULT NULL,
- `F_57aeee35c98205091e18d1140e9f38cf` int(11) DEFAULT NULL,
- `F_6da9003b743b65f4c0ccd295cc484e57` int(11) DEFAULT NULL,
- `F_9b04d152845ec0a378394003c96da594` int(11) DEFAULT NULL,
- `F_be83ab3ecd0db773eb2dc1b0a17836a1` int(11) DEFAULT NULL,
- `F_e165421110ba03099a1c0393373c5b43` int(11) DEFAULT NULL,
- `F_289dff07669d7a23de0ef88d2f7129e7` int(11) DEFAULT NULL,
- `F_577ef1154f3240ad5b9b413aa7346a1e` int(11) DEFAULT NULL,
- `F_01161aaa0b6d1345dd8fe4e481144d84` int(11) DEFAULT NULL,
- `F_539fd53b59e3bb12d203f45a912eeaf2` int(11) DEFAULT NULL,
- `F_ac1dd209cbcc5e5d1c6e28598e8cbbe8` int(11) DEFAULT NULL,
- `F_555d6702c950ecb729a966504af0a635` int(11) DEFAULT NULL,
- `F_335f5352088d7d9bf74191e006d8e24c` int(11) DEFAULT NULL,
- `F_f340f1b1f65b6df5b5e3f94d95b11daf` int(11) DEFAULT NULL,
- `F_e4a6222cdb5b34375400904f03d8e6a5` int(11) DEFAULT NULL,
- `F_cb70ab375662576bd1ac5aaf16b3fca4` int(11) DEFAULT NULL,
- `F_9188905e74c28e489b44e954ec0b9bca` int(11) DEFAULT NULL,
- `F_0266e33d3f546cb5436a10798e657d97` int(11) DEFAULT NULL,
- `F_38db3aed920cf82ab059bfccbd02be6a` int(11) DEFAULT NULL,
- `F_3cec07e9ba5f5bb252d13f5f431e4bbb` int(11) DEFAULT NULL,
- `F_621bf66ddb7c962aa0d22ac97d69b793` int(11) DEFAULT NULL,
- `F_077e29b11be80ab57e1a2ecabb7da330` int(11) DEFAULT NULL,
- `F_6c9882bbac1c7093bd25041881277658` int(11) DEFAULT NULL,
- `F_19f3cd308f1455b3fa09a282e0d496f4` int(11) DEFAULT NULL,
- `F_03c6b06952c750899bb03d998e631860` int(11) DEFAULT NULL,
- `F_c24cd76e1ce41366a4bbe8a49b02a028` int(11) DEFAULT NULL,
- `F_c52f1bd66cc19d05628bd8bf27af3ad6` int(11) DEFAULT NULL,
- `F_fe131d7f5a6b38b23cc967316c13dae2` int(11) DEFAULT NULL,
- `F_f718499c1c8cef6730f9fd03c8125cab` int(11) DEFAULT NULL,
- `F_d96409bf894217686ba124d7356686c9` int(11) DEFAULT NULL,
- `F_502e4a16930e414107ee22b6198c578f` int(11) DEFAULT NULL,
- `F_cfa0860e83a4c3a763a7e62d825349f7` int(11) DEFAULT NULL,
- `F_a4f23670e1833f3fdb077ca70bbd5d66` int(11) DEFAULT NULL,
- `F_b1a59b315fc9a3002ce38bbe070ec3f5` int(11) DEFAULT NULL,
- `F_36660e59856b4de58a219bcf4e27eba3` int(11) DEFAULT NULL,
- `F_8c19f571e251e61cb8dd3612f26d5ecf` int(11) DEFAULT NULL,
- `F_d6baf65e0b240ce177cf70da146c8dc8` int(11) DEFAULT NULL,
- `F_e56954b4f6347e897f954495eab16a88` int(11) DEFAULT NULL,
- `F_f7664060cc52bc6f3d620bcedc94a4b6` int(11) DEFAULT NULL,
- `F_eda80a3d5b344bc40f3bc04f65b7a357` int(11) DEFAULT NULL,
- `F_8f121ce07d74717e0b1f21d122e04521` int(11) DEFAULT NULL,
- `F_06138bc5af6023646ede0e1f7c1eac75` int(11) DEFAULT NULL,
- `F_39059724f73a9969845dfe4146c5660e` int(11) DEFAULT NULL,
- `F_7f100b7b36092fb9b06dfb4fac360931` int(11) DEFAULT NULL,
- `F_7a614fd06c325499f1680b9896beedeb` int(11) DEFAULT NULL,
- `F_4734ba6f3de83d861c3176a6273cac6d` int(11) DEFAULT NULL,
- `F_d947bf06a885db0d477d707121934ff8` int(11) DEFAULT NULL,
- `F_63923f49e5241343aa7acb6a06a751e7` int(11) DEFAULT NULL,
- `F_db8e1af0cb3aca1ae2d0018624204529` int(11) DEFAULT NULL,
- `F_20f07591c6fcb220ffe637cda29bb3f6` int(11) DEFAULT NULL,
- `F_07cdfd23373b17c6b337251c22b7ea57` int(11) DEFAULT NULL,
- `F_d395771085aab05244a4fb8fd91bf4ee` int(11) DEFAULT NULL,
- `F_92c8c96e4c37100777c7190b76d28233` int(11) DEFAULT NULL,
- `F_e3796ae838835da0b6f6ea37bcf8bcb7` int(11) DEFAULT NULL,
- `F_6a9aeddfc689c1d0e3b9ccc3ab651bc5` int(11) DEFAULT NULL,
- `F_0f49c89d1e7298bb9930789c8ed59d48` int(11) DEFAULT NULL,
- `F_46ba9f2a6976570b0353203ec4474217` int(11) DEFAULT NULL,
- `F_0e01938fc48a2cfb5f2217fbfb00722d` int(11) DEFAULT NULL,
- `F_16a5cdae362b8d27a1d8f8c7b78b4330` int(11) DEFAULT NULL,
- `F_918317b57931b6b7a7d29490fe5ec9f9` int(11) DEFAULT NULL,
- `F_48aedb8880cab8c45637abc7493ecddd` int(11) DEFAULT NULL,
- `F_839ab46820b524afda05122893c2fe8e` int(11) DEFAULT NULL,
- `F_f90f2aca5c640289d0a29417bcb63a37` int(11) DEFAULT NULL,
- `F_9c838d2e45b2ad1094d42f4ef36764f6` int(11) DEFAULT NULL,
- `F_1700002963a49da13542e0726b7bb758` int(11) DEFAULT NULL,
- `F_53c3bce66e43be4f209556518c2fcb54` int(11) DEFAULT NULL,
- `F_6883966fd8f918a4aa29be29d2c386fb` int(11) DEFAULT NULL,
- `F_49182f81e6a13cf5eaa496d51fea6406` int(11) DEFAULT NULL,
- `F_d296c101daa88a51f6ca8cfc1ac79b50` int(11) DEFAULT NULL,
- `F_9fd81843ad7f202f26c1a174c7357585` int(11) DEFAULT NULL,
- `F_26e359e83860db1d11b6acca57d8ea88` int(11) DEFAULT NULL,
- `F_ef0d3930a7b6c95bd2b32ed45989c61f` int(11) DEFAULT NULL,
- `F_94f6d7e04a4d452035300f18b984988c` int(11) DEFAULT NULL,
- `F_34ed066df378efacc9b924ec161e7639` int(11) DEFAULT NULL,
- `F_577bcc914f9e55d5e4e4f82f9f00e7d4` int(11) DEFAULT NULL,
- `F_11b9842e0a271ff252c1903e7132cd68` int(11) DEFAULT NULL,
- `F_37bc2f75bf1bcfe8450a1a41c200364c` int(11) DEFAULT NULL,
- `F_496e05e1aea0a9c4655800e8a7b9ea28` int(11) DEFAULT NULL,
- `F_b2eb7349035754953b57a32e2841bda5` int(11) DEFAULT NULL,
- `F_8e98d81f8217304975ccb23337bb5761` int(11) DEFAULT NULL,
- `F_a8c88a0055f636e4a163a5e3d16adab7` int(11) DEFAULT NULL,
- `F_eddea82ad2755b24c4e168c5fc2ebd40` int(11) DEFAULT NULL,
- `F_06eb61b839a0cefee4967c67ccb099dc` int(11) DEFAULT NULL,
- `F_9dfcd5e558dfa04aaf37f137a1d9d3e5` int(11) DEFAULT NULL,
- `F_950a4152c2b4aa3ad78bdd6b366cc179` int(11) DEFAULT NULL,
- `F_158f3069a435b314a80bdcb024f8e422` int(11) DEFAULT NULL,
- `F_758874998f5bd0c393da094e1967a72b` int(11) DEFAULT NULL,
- `F_ad13a2a07ca4b7642959dc0c4c740ab6` int(11) DEFAULT NULL,
- `F_3fe94a002317b5f9259f82690aeea4cd` int(11) DEFAULT NULL,
- `F_5b8add2a5d98b1a652ea7fd72d942dac` int(11) DEFAULT NULL,
- `F_432aca3a1e345e339f35a30c8f65edce` int(11) DEFAULT NULL,
- `F_8d3bba7425e7c98c50f52ca1b52d3735` int(11) DEFAULT NULL,
- `F_320722549d1751cf3f247855f937b982` int(11) DEFAULT NULL,
- `F_caf1a3dfb505ffed0d024130f58c5cfa` int(11) DEFAULT NULL,
- `F_5737c6ec2e0716f3d8a7a5c4e0de0d9a` int(11) DEFAULT NULL,
- `F_bc6dc48b743dc5d013b1abaebd2faed2` int(11) DEFAULT NULL,
- `F_f2fc990265c712c49d51a18a32b39f0c` int(11) DEFAULT NULL,
- `F_89f0fd5c927d466d6ec9a21b9ac34ffa` int(11) DEFAULT NULL,
- `F_a666587afda6e89aec274a3657558a27` int(11) DEFAULT NULL,
- `F_b83aac23b9528732c23cc7352950e880` int(11) DEFAULT NULL,
- `F_cd00692c3bfe59267d5ecfac5310286c` int(11) DEFAULT NULL,
- `F_6faa8040da20ef399b63a72d0e4ab575` int(11) DEFAULT NULL,
- `F_fe73f687e5bc5280214e0486b273a5f9` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` (`F_c4ca4238a0b923820dcc509a6f75849b`, `F_c81e728d9d4c2f636f067f89cc14862c`, `F_eccbc87e4b5ce2fe28308fd9f2a7baf3`, `F_a87ff679a2f3e71d9181a67b7542122c`, `F_e4da3b7fbbce2345d7772b0674a318d5`, `F_1679091c5a880faf6fb5e6087eb1b2dc`, `F_8f14e45fceea167a5a36dedd4bea2543`, `F_c9f0f895fb98ab9159f51fd0297e236d`, `F_45c48cce2e2d7fbdea1afc51c7c6ad26`, `F_d3d9446802a44259755d38e6d163e820`, `F_6512bd43d9caa6e02c990b0a82652dca`, `F_c20ad4d76fe97759aa27a0c99bff6710`, `F_c51ce410c124a10e0db5e4b97fc2af39`, `F_aab3238922bcc25a6f606eb525ffdc56`, `F_9bf31c7ff062936a96d3c8bd1f8f2ff3`, `F_c74d97b01eae257e44aa9d5bade97baf`, `F_70efdf2ec9b086079795c442636b55fb`, `F_6f4922f45568161a8cdf4ad2299f6d23`, `F_1f0e3dad99908345f7439f8ffabdffc4`, `F_98f13708210194c475687be6106a3b84`, `F_3c59dc048e8850243be8079a5c74d079`, `F_b6d767d2f8ed5d21a44b0e5886680cb9`, `F_37693cfc748049e45d87b8c7d8b9aacd`, `F_1ff1de774005f8da13f42943881c655f`, `F_8e296a067a37563370ded05f5a3bf3ec`, `F_4e732ced3463d06de0ca9a15b6153677`, `F_02e74f10e0327ad868d138f2b4fdd6f0`, `F_33e75ff09dd601bbe69f351039152189`, `F_6ea9ab1baa0efb9e19094440c317e21b`, `F_34173cb38f07f89ddbebc2ac9128303f`, `F_c16a5320fa475530d9583c34fd356ef5`, `F_6364d3f0f495b6ab9dcf8d3b5c6e0b01`, `F_182be0c5cdcd5072bb1864cdee4d3d6e`, `F_e369853df766fa44e1ed0ff613f563bd`, `F_1c383cd30b7c298ab50293adfecb7b18`, `F_19ca14e7ea6328a42e0eb13d585e4c22`, `F_a5bfc9e07964f8dddeb95fc584cd965d`, `F_a5771bce93e200c36f7cd9dfd0e5deaa`, `F_d67d8ab4f4c10bf22aa353e27879133c`, `F_d645920e395fedad7bbbed0eca3fe2e0`, `F_3416a75f4cea9109507cacd8e2f2aefc`, `F_a1d0c6e83f027327d8461063f4ac58a6`, `F_17e62166fc8586dfa4d1bc0e1742c08b`, `F_f7177163c833dff4b38fc8d2872f1ec6`, `F_6c8349cc7260ae62e3b1396831a8398f`, `F_d9d4f495e875a2e075a1a4a6e1b9770f`, `F_67c6a1e7ce56d3d6fa748ab6d9af3fd7`, `F_642e92efb79421734881b53e1e1b18b6`, `F_f457c545a9ded88f18ecee47145a72c0`, `F_c0c7c76d30bd3dcaefc96f40275bdc0a`, `F_2838023a778dfaecdc212708f721b788`, `F_9a1158154dfa42caddbd0694a4e9bdc8`, `F_d82c8d1619ad8176d665453cfb2e55f0`, `F_a684eceee76fc522773286a895bc8436`, `F_b53b3a3d6ab90ce0268229151c9bde11`, `F_9f61408e3afb633e50cdf1b20de6f466`, `F_72b32a1f754ba1c09b3695e0cb6cde7f`, `F_66f041e16a60928b05a7e228a89c3799`, `F_093f65e080a295f8076b1c5722a46aa2`, `F_072b030ba126b2f4b2374f342be9ed44`, `F_7f39f8317fbdb1988ef4c628eba02591`, `F_44f683a84163b3523afe57c2e008bc8c`, `F_03afdbd66e7929b125f8597834fa83a4`, `F_ea5d2f1c4608232e07d3aa3d998e5135`, `F_fc490ca45c00b1249bbe3554a4fdf6fb`, `F_3295c76acbf4caaed33c36b1b5fc2cb1`, `F_735b90b4568125ed6c3f678819b6e058`, `F_a3f390d88e4c41f2747bfa2f1b5f87db`, `F_14bfa6bb14875e45bba028a21ed38046`, `F_7cbbc409ec990f19c78c75bd1e06f215`, `F_e2c420d928d4bf8ce0ff2ec19b371514`, `F_32bb90e8976aab5298d5da10fe66f21d`, `F_d2ddea18f00665ce8623e36bd4e3c7c5`, `F_ad61ab143223efbc24c7d2583be69251`, `F_d09bf41544a3365a46c9077ebb5e35c3`, `F_fbd7939d674997cdb4692d34de8633c4`, `F_28dd2c7955ce926456240b2ff0100bde`, `F_35f4a8d465e6e1edc05f3d8ab658c551`, `F_d1fe173d08e959397adf34b1d77e88d7`, `F_f033ab37c30201f73f142449d037028d`, `F_43ec517d68b6edd3015b3edc9a11367b`, `F_9778d5d219c5080b9a6a17bef029331c`, `F_fe9fc289c3ff0af142b6d3bead98a923`, `F_68d30a9594728bc39aa24be94b319d21`, `F_3ef815416f775098fe977004015c6193`, `F_93db85ed909c13838ff95ccfa94cebd9`, `F_c7e1249ffc03eb9ded908c236bd1996d`, `F_2a38a4a9316c49e5a833517c45d31070`, `F_7647966b7343c29048673252e490f736`, `F_8613985ec49eb8f757ae6439e879bb2a`, `F_54229abfcfa5649e7003b83dd4755294`, `F_92cc227532d17e56e07902b254dfad10`, `F_98dce83da57b0395e163467c9dae521b`, `F_f4b9ec30ad9f68f89b29639786cb62ef`, `F_812b4ba287f5ee0bc9d43bbf5bbe87fb`, `F_26657d5ff9020d2abefe558796b99584`, `F_e2ef524fbf3d9fe611d5a8e90fefdc9c`, `F_ed3d2c21991e3bef5e069713af9fa6ca`, `F_ac627ab1ccbdb62ec96e702f07f6425b`, `F_f899139df5e1059396431415e770c6dd`, `F_38b3eff8baf56627478ec76a704e9b52`, `F_ec8956637a99787bd197eacd77acce5e`, `F_6974ce5ac660610b44d9b9fed0ff9548`, `F_c9e1074f5b3f9fc8ea15d152add07294`, `F_65b9eea6e1cc6bb9f0cd2a47751a186f`, `F_f0935e4cd5920aa6c7c996a5ee53a70f`, `F_a97da629b098b75c294dffdc3e463904`, `F_a3c65c2974270fd093ee8a9bf8ae7d0b`, `F_2723d092b63885e0d7c260cc007e8b9d`, `F_5f93f983524def3dca464469d2cf9f3e`, `F_698d51a19d8a121ce581499d7b701668`, `F_7f6ffaa6bb0b408017b62254211691b5`, `F_73278a4a86960eeb576a8fd4c9ec6997`, `F_5fd0b37cd7dbbb00f97ba6ce92bf5add`, `F_2b44928ae11fb9384c4cf38708677c48`, `F_c45147dee729311ef5b5c3003946c48f`, `F_eb160de1de89d9058fcb0b968dbbbd68`, `F_5ef059938ba799aaa845e1c2e8a762bd`, `F_07e1cd7dca89a1678042477183b7ac3f`, `F_da4fb5c6e93e74d3df8527599fa62642`, `F_4c56ff4ce4aaf9573aa5dff913df997a`, `F_a0a080f42e6f13b3a2df133f073095dd`, `F_202cb962ac59075b964b07152d234b70`, `F_c8ffe9a587b126f152ed3d89a146b445`, `F_3def184ad8f4755ff269862ea77393dd`, `F_069059b7ef840f0c74a814ec9237b6ec`, `F_ec5decca5ed3d6b8079e2e7e7bacc9f2`, `F_76dc611d6ebaafc66cc0879c71b5db5c`, `F_d1f491a404d6854880943e5c3cd9ca25`, `F_9b8619251a19057cff70779273e95aa6`, `F_1afa34a7f984eeabdbb0a7d494132ee5`, `F_65ded5353c5ee48d0b7d48c591b8f430`, `F_9fc3d7152ba9336a670e36d0ed79bc43`, `F_02522a2b2726fb0a03bb19f2d8d9524d`, `F_7f1de29e6da19d22b51c68001e7e0e54`, `F_42a0e188f5033bc65bf8d78622277c4e`, `F_3988c7f88ebcb58c6ce932b957b6f332`, `F_013d407166ec4fa56eb1e1f8cbe183b9`, `F_e00da03b685a0dd18fb6a08af0923de0`, `F_1385974ed5904a438616ff7bdb3f7439`, `F_0f28b5d49b3020afeecd95b4009adf4c`, `F_a8baa56554f96369ab93e4f3bb068c22`, `F_903ce9225fca3e988c2af215d4e544d3`, `F_0a09c8844ba8f0936c20bd791130d6b6`, `F_2b24d495052a8ce66358eb576b8912c8`, `F_a5e00132373a7031000fd987a3c9f87b`, `F_8d5e957f297893487bd98fa830fa6413`, `F_47d1e990583c9c67424d369f3414728e`, `F_f2217062e9a397a1dca429e7d70bc6ca`, `F_7ef605fc8dba5425d6965fbd4c8fbe1f`, `F_a8f15eda80c50adb0e71943adc8015cf`, `F_37a749d808e46495a8da1e5352d03cae`, `F_b3e3e393c77e35a4a3f3cbd1e429b5dc`, `F_1d7f7abc18fcb43975065399b0d1e48e`, `F_2a79ea27c279e471f4d180b08d62b00a`, `F_1c9ac0159c94d8d0cbedc973445af2da`, `F_6c4b761a28b734fe93831e3fb400ce87`, `F_06409663226af2f3114485aa4e0a23b4`, `F_140f6969d5213fd0ece03148e62e461e`, `F_b73ce398c39f506af761d2277d853a92`, `F_bd4c9ab730f5513206b999ec0d90d1fb`, `F_82aa4b0af34c2313a562076992e50aa3`, `F_0777d5c17d4066b82ab86dff8a46af6f`, `F_fa7cdfad1a5aaf8370ebeda47a1ff1c3`, `F_9766527f2b5d3e95d4a733fcfb77bd7e`, `F_7e7757b1e12abcb736ab9a754ffb617a`, `F_5878a7ab84fb43402106c575658472fa`, `F_006f52e9102a8d3be2fe5614f42ba989`, `F_3636638817772e42b59d74cff571fbb3`, `F_149e9677a5989fd342ae44213df68868`, `F_a4a042cf4fd6bfb47701cbc8a1653ada`, `F_1ff8a7b5dc7a7d1f0ed65aaa29c04b1e`, `F_f7e6c85504ce6e82442c770f7c8606f0`, `F_bf8229696f7a3bb4700cfddef19fa23f`, `F_82161242827b703e6acf9c726942a1e4`, `F_38af86134b65d0f10fe33d30dd76442e`, `F_96da2f590cd7246bbde0051047b0d6f7`, `F_8f85517967795eeef66c225f7883bdcb`, `F_8f53295a73878494e9bc8dd6c3c7104f`, `F_045117b0e0a11a242b9765e79cbf113f`, `F_fc221309746013ac554571fbd180e1c8`, `F_4c5bde74a8f110656874902f07378009`, `F_cedebb6e872f539bef8c3f919874e9d7`, `F_6cdd60ea0045eb7a6ec44c54d29ed402`, `F_eecca5b6365d9607ee5a9d336962c534`, `F_9872ed9fc22fc182d371c3e9ed316094`, `F_31fefc0e570cb3860f2a6d4b38c6490d`, `F_9dcb88e0137649590b755372b040afad`, `F_a2557a7b2e94197ff767970b67041697`, `F_cfecdb276f634854f3ef915e2e980c31`, `F_0aa1883c6411f7873cb83dacb17b0afc`, `F_58a2fc6ed39fd083f55d4182bf88826d`, `F_bd686fd640be98efaae0091fa301e613`, `F_a597e50502f5ff68e3e25b9114205d4a`, `F_0336dcbab05b9d5ad24f4333c7658a0e`, `F_084b6fbb10729ed4da8c3d3f5a3ae7c9`, `F_85d8ce590ad8981ca2c8286f79f59954`, `F_0e65972dce68dad4d52d063967f0a705`, `F_84d9ee44e457ddef7f2c4f25dc8fa865`, `F_3644a684f98ea8fe223c713b77189a77`, `F_757b505cfd34c64c85ca5b5690ee5293`, `F_854d6fae5ee42911677c739ee1734486`, `F_e2c0be24560d78c5e599c2a9c9d0bbd2`, `F_274ad4786c3abca69fa097b85867d9a4`, `F_eae27d77ca20db309e056e3d2dcd7d69`, `F_7eabe3a1649ffa2b3ff8c02ebfd5659f`, `F_69adc1e107f7f7d035d7baf04342e1ca`, `F_091d584fced301b442654dd8c23b3fc9`, `F_b1d10e7bafa4421218a51b1e1f1b0ba2`, `F_6f3ef77ac0e3619e98159e9b6febf557`, `F_eb163727917cbba1eea208541a643e74`, `F_1534b76d325a8f591b52d302e7181331`, `F_979d472a84804b9f647bc185a877a8b5`, `F_ca46c1b9512a7a8315fa3c5a946e8265`, `F_3b8a614226a953a8cd9526fca6fe9ba5`, `F_45fbc6d3e05ebd93369ce542e8f2322d`, `F_63dc7ed1010d3c3b8269faf0ba7491d4`, `F_e96ed478dab8595a7dbda4cbcbee168f`, `F_c0e190d8267e36708f955d7ab048990d`, `F_ec8ce6abb3e952a85b8551ba726a1227`, `F_060ad92489947d410d897474079c1477`, `F_bcbe3365e6ac95ea2c0343a2395834dd`, `F_115f89503138416a242f40fb7d7f338e`, `F_13fe9d84310e77f13a6d184dbf1232f3`, `F_d1c38a09acc34845c6be3a127a5aacaf`, `F_9cfdf10e8fc047a44b08ed031e1f0ed1`, `F_705f2172834666788607efbfca35afb3`, `F_74db120f0a8e5646ef5a30154e9f6deb`, `F_57aeee35c98205091e18d1140e9f38cf`, `F_6da9003b743b65f4c0ccd295cc484e57`, `F_9b04d152845ec0a378394003c96da594`, `F_be83ab3ecd0db773eb2dc1b0a17836a1`, `F_e165421110ba03099a1c0393373c5b43`, `F_289dff07669d7a23de0ef88d2f7129e7`, `F_577ef1154f3240ad5b9b413aa7346a1e`, `F_01161aaa0b6d1345dd8fe4e481144d84`, `F_539fd53b59e3bb12d203f45a912eeaf2`, `F_ac1dd209cbcc5e5d1c6e28598e8cbbe8`, `F_555d6702c950ecb729a966504af0a635`, `F_335f5352088d7d9bf74191e006d8e24c`, `F_f340f1b1f65b6df5b5e3f94d95b11daf`, `F_e4a6222cdb5b34375400904f03d8e6a5`, `F_cb70ab375662576bd1ac5aaf16b3fca4`, `F_9188905e74c28e489b44e954ec0b9bca`, `F_0266e33d3f546cb5436a10798e657d97`, `F_38db3aed920cf82ab059bfccbd02be6a`, `F_3cec07e9ba5f5bb252d13f5f431e4bbb`, `F_621bf66ddb7c962aa0d22ac97d69b793`, `F_077e29b11be80ab57e1a2ecabb7da330`, `F_6c9882bbac1c7093bd25041881277658`, `F_19f3cd308f1455b3fa09a282e0d496f4`, `F_03c6b06952c750899bb03d998e631860`, `F_c24cd76e1ce41366a4bbe8a49b02a028`, `F_c52f1bd66cc19d05628bd8bf27af3ad6`, `F_fe131d7f5a6b38b23cc967316c13dae2`, `F_f718499c1c8cef6730f9fd03c8125cab`, `F_d96409bf894217686ba124d7356686c9`, `F_502e4a16930e414107ee22b6198c578f`, `F_cfa0860e83a4c3a763a7e62d825349f7`, `F_a4f23670e1833f3fdb077ca70bbd5d66`, `F_b1a59b315fc9a3002ce38bbe070ec3f5`, `F_36660e59856b4de58a219bcf4e27eba3`, `F_8c19f571e251e61cb8dd3612f26d5ecf`, `F_d6baf65e0b240ce177cf70da146c8dc8`, `F_e56954b4f6347e897f954495eab16a88`, `F_f7664060cc52bc6f3d620bcedc94a4b6`, `F_eda80a3d5b344bc40f3bc04f65b7a357`, `F_8f121ce07d74717e0b1f21d122e04521`, `F_06138bc5af6023646ede0e1f7c1eac75`, `F_39059724f73a9969845dfe4146c5660e`, `F_7f100b7b36092fb9b06dfb4fac360931`, `F_7a614fd06c325499f1680b9896beedeb`, `F_4734ba6f3de83d861c3176a6273cac6d`, `F_d947bf06a885db0d477d707121934ff8`, `F_63923f49e5241343aa7acb6a06a751e7`, `F_db8e1af0cb3aca1ae2d0018624204529`, `F_20f07591c6fcb220ffe637cda29bb3f6`, `F_07cdfd23373b17c6b337251c22b7ea57`, `F_d395771085aab05244a4fb8fd91bf4ee`, `F_92c8c96e4c37100777c7190b76d28233`, `F_e3796ae838835da0b6f6ea37bcf8bcb7`, `F_6a9aeddfc689c1d0e3b9ccc3ab651bc5`, `F_0f49c89d1e7298bb9930789c8ed59d48`, `F_46ba9f2a6976570b0353203ec4474217`, `F_0e01938fc48a2cfb5f2217fbfb00722d`, `F_16a5cdae362b8d27a1d8f8c7b78b4330`, `F_918317b57931b6b7a7d29490fe5ec9f9`, `F_48aedb8880cab8c45637abc7493ecddd`, `F_839ab46820b524afda05122893c2fe8e`, `F_f90f2aca5c640289d0a29417bcb63a37`, `F_9c838d2e45b2ad1094d42f4ef36764f6`, `F_1700002963a49da13542e0726b7bb758`, `F_53c3bce66e43be4f209556518c2fcb54`, `F_6883966fd8f918a4aa29be29d2c386fb`, `F_49182f81e6a13cf5eaa496d51fea6406`, `F_d296c101daa88a51f6ca8cfc1ac79b50`, `F_9fd81843ad7f202f26c1a174c7357585`, `F_26e359e83860db1d11b6acca57d8ea88`, `F_ef0d3930a7b6c95bd2b32ed45989c61f`, `F_94f6d7e04a4d452035300f18b984988c`, `F_34ed066df378efacc9b924ec161e7639`, `F_577bcc914f9e55d5e4e4f82f9f00e7d4`, `F_11b9842e0a271ff252c1903e7132cd68`, `F_37bc2f75bf1bcfe8450a1a41c200364c`, `F_496e05e1aea0a9c4655800e8a7b9ea28`, `F_b2eb7349035754953b57a32e2841bda5`, `F_8e98d81f8217304975ccb23337bb5761`, `F_a8c88a0055f636e4a163a5e3d16adab7`, `F_eddea82ad2755b24c4e168c5fc2ebd40`, `F_06eb61b839a0cefee4967c67ccb099dc`, `F_9dfcd5e558dfa04aaf37f137a1d9d3e5`, `F_950a4152c2b4aa3ad78bdd6b366cc179`, `F_158f3069a435b314a80bdcb024f8e422`, `F_758874998f5bd0c393da094e1967a72b`, `F_ad13a2a07ca4b7642959dc0c4c740ab6`, `F_3fe94a002317b5f9259f82690aeea4cd`, `F_5b8add2a5d98b1a652ea7fd72d942dac`, `F_432aca3a1e345e339f35a30c8f65edce`, `F_8d3bba7425e7c98c50f52ca1b52d3735`, `F_320722549d1751cf3f247855f937b982`, `F_caf1a3dfb505ffed0d024130f58c5cfa`, `F_5737c6ec2e0716f3d8a7a5c4e0de0d9a`, `F_bc6dc48b743dc5d013b1abaebd2faed2`, `F_f2fc990265c712c49d51a18a32b39f0c`, `F_89f0fd5c927d466d6ec9a21b9ac34ffa`, `F_a666587afda6e89aec274a3657558a27`, `F_b83aac23b9528732c23cc7352950e880`, `F_cd00692c3bfe59267d5ecfac5310286c`, `F_6faa8040da20ef399b63a72d0e4ab575`, `F_fe73f687e5bc5280214e0486b273a5f9`) VALUES (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop table t1;
-#
-# Test for --add-drop-database
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1),(2),(3);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-/*!40000 DROP DATABASE IF EXISTS `test`*/;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `test`;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (1),(2),(3);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE t1;
-#
-# Bug#9558 mysqldump --no-data db t1 t2 format still dumps data
-#
-CREATE DATABASE mysqldump_test_db;
-USE mysqldump_test_db;
-CREATE TABLE t1 ( a INT );
-CREATE TABLE t2 ( a INT );
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (1), (2);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-DROP TABLE IF EXISTS `t2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-DROP TABLE IF EXISTS `t2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="mysqldump_test_db">
- <table_structure name="t1">
- <field Field="a" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- </table_structure>
- <table_structure name="t2">
- <field Field="a" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- </table_structure>
-</database>
-</mysqldump>
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="mysqldump_test_db">
- <table_structure name="t1">
- <field Field="a" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- </table_structure>
- <table_structure name="t2">
- <field Field="a" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- </table_structure>
-</database>
-</mysqldump>
-DROP TABLE t1, t2;
-DROP DATABASE mysqldump_test_db;
-#
-# Testing with tables and databases that don't exists
-# or contains illegal characters
-# (Bug#9358 mysqldump crashes if tablename starts with \)
-#
-create database mysqldump_test_db;
-use mysqldump_test_db;
-create table t1(a varchar(30) primary key, b int not null);
-create table t2(a varchar(30) primary key, b int not null);
-create table t3(a varchar(30) primary key, b int not null);
-test_sequence
------- Testing with illegal table names ------
-mysqldump: Couldn't find table: "\d-2-1.sql"
-mysqldump: Couldn't find table: "\t1"
-mysqldump: Couldn't find table: "\t1"
-mysqldump: Couldn't find table: "\\t1"
-mysqldump: Couldn't find table: "t\1"
-mysqldump: Couldn't find table: "t\1"
-mysqldump: Couldn't find table: "t/1"
-mysqldump: Couldn't find table: "T_1"
-mysqldump: Couldn't find table: "T%1"
-mysqldump: Couldn't find table: "T'1"
-mysqldump: Couldn't find table: "T_1"
-mysqldump: Couldn't find table: "T_"
-test_sequence
------- Testing with illegal database names ------
-mysqldump: Got error: 1049: "Unknown database 'mysqldump_test_d'" when selecting the database
-mysqldump: Got error: 1049: "Unknown database 'mysqld\ump_test_db'" when selecting the database
-drop table t1, t2, t3;
-drop database mysqldump_test_db;
-use test;
-#
-# Bug#9657 mysqldump xml ( -x ) does not format NULL fields correctly
-#
-create table t1 (a int(10));
-create table t2 (pk int primary key auto_increment,
-a int(10), b varchar(30), c datetime, d blob, e text);
-insert into t1 values (NULL), (10), (20);
-insert into t2 (a, b) values (NULL, NULL),(10, NULL),(NULL, "twenty"),(30, "thirty");
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="test">
- <table_data name="t1">
- <row>
- <field name="a" xsi:nil="true" />
- </row>
- <row>
- <field name="a">10</field>
- </row>
- <row>
- <field name="a">20</field>
- </row>
- </table_data>
- <table_data name="t2">
- <row>
- <field name="pk">1</field>
- <field name="a" xsi:nil="true" />
- <field name="b" xsi:nil="true" />
- <field name="c" xsi:nil="true" />
- <field name="d" xsi:nil="true" />
- <field name="e" xsi:nil="true" />
- </row>
- <row>
- <field name="pk">2</field>
- <field name="a">10</field>
- <field name="b" xsi:nil="true" />
- <field name="c" xsi:nil="true" />
- <field name="d" xsi:nil="true" />
- <field name="e" xsi:nil="true" />
- </row>
- <row>
- <field name="pk">3</field>
- <field name="a" xsi:nil="true" />
- <field name="b">twenty</field>
- <field name="c" xsi:nil="true" />
- <field name="d" xsi:nil="true" />
- <field name="e" xsi:nil="true" />
- </row>
- <row>
- <field name="pk">4</field>
- <field name="a">30</field>
- <field name="b">thirty</field>
- <field name="c" xsi:nil="true" />
- <field name="d" xsi:nil="true" />
- <field name="e" xsi:nil="true" />
- </row>
- </table_data>
-</database>
-</mysqldump>
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (NULL),(10),(20);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-
-LOCK TABLES `t2` WRITE;
-/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
-INSERT INTO `t2` VALUES (1,NULL,NULL,NULL,NULL,NULL),(2,10,NULL,NULL,NULL,NULL),(3,NULL,'twenty',NULL,NULL,NULL),(4,30,'thirty',NULL,NULL,NULL);
-/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (NULL),(10),(20);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-DROP TABLE IF EXISTS `t2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t2` (
- `pk` int(11) NOT NULL AUTO_INCREMENT,
- `a` int(10) DEFAULT NULL,
- `b` varchar(30) DEFAULT NULL,
- `c` datetime DEFAULT NULL,
- `d` blob DEFAULT NULL,
- `e` text DEFAULT NULL,
- PRIMARY KEY (`pk`)
-) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t2` WRITE;
-/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
-INSERT INTO `t2` VALUES (1,NULL,NULL,NULL,NULL,NULL),(2,10,NULL,NULL,NULL,NULL),(3,NULL,'twenty',NULL,NULL,NULL),(4,30,'thirty',NULL,NULL,NULL);
-/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop table t1, t2;
-#
-# Bug#12123 mysqldump --tab results in text file which can't be imported
-#
-create table t1 (a text character set utf8, b text character set latin1);
-insert t1 values (0x4F736E616272C3BC636B, 0x4BF66C6E);
-select * from t1;
-a b
-Osnabrück Köln
-test.t1: Records: 1 Deleted: 0 Skipped: 0 Warnings: 0
-select * from t1;
-a b
-Osnabrück Köln
-drop table t1;
-#
-# Bug#15328 Segmentation fault occurred if my.cnf is invalid for escape sequence
-#
---fields-optionally-enclosed-by="
-#
-# Bug#19025 mysqldump doesn't correctly dump "auto_increment = [int]"
-#
-create table `t1` (
-t1_name varchar(255) default null,
-t1_id int(10) unsigned not null auto_increment,
-key (t1_name),
-primary key (t1_id)
-) auto_increment = 1000 default charset=latin1;
-insert into t1 (t1_name) values('bla');
-insert into t1 (t1_name) values('bla');
-insert into t1 (t1_name) values('bla');
-select * from t1;
-t1_name t1_id
-bla 1000
-bla 1001
-bla 1002
-show create table `t1`;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t1_name` varchar(255) DEFAULT NULL,
- `t1_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`t1_id`),
- KEY `t1_name` (`t1_name`)
-) ENGINE=MyISAM AUTO_INCREMENT=1003 DEFAULT CHARSET=latin1
-DROP TABLE `t1`;
-select * from t1;
-t1_name t1_id
-bla 1000
-bla 1001
-bla 1002
-show create table `t1`;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t1_name` varchar(255) DEFAULT NULL,
- `t1_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`t1_id`),
- KEY `t1_name` (`t1_name`)
-) ENGINE=MyISAM AUTO_INCREMENT=1003 DEFAULT CHARSET=latin1
-drop table `t1`;
-#
-# Bug#18536 wrong table order
-#
-create table t1(a int);
-create table t2(a int);
-create table t3(a int);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t3`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t3` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-DROP TABLE IF EXISTS `t2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop table t1, t2, t3;
-#
-# Bug#21288 mysqldump segmentation fault when using --where
-#
-create table t1 (a int);
-mysqldump: Couldn't execute 'SELECT /*!40001 SQL_NO_CACHE */ `a` FROM `t1` WHERE xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx': You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' at line 1 (1064)
-mysqldump: Got error: 1064: "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' at line 1" when retrieving data from server
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop table t1;
-#
-# Bug#13926 --order-by-primary fails if PKEY contains quote character
-#
-DROP TABLE IF EXISTS `t1`;
-CREATE TABLE `t1` (
-`a b` INT,
-`c"d` INT,
-`e``f` INT,
-PRIMARY KEY (`a b`, `c"d`, `e``f`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-insert into t1 values (0815, 4711, 2006);
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS "t1";
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE "t1" (
- "a b" int(11) NOT NULL,
- "c""d" int(11) NOT NULL,
- "e`f" int(11) NOT NULL,
- PRIMARY KEY ("a b","c""d","e`f")
-);
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES "t1" WRITE;
-/*!40000 ALTER TABLE "t1" DISABLE KEYS */;
-INSERT INTO "t1" VALUES (815,4711,2006);
-/*!40000 ALTER TABLE "t1" ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a b` int(11) NOT NULL,
- `c"d` int(11) NOT NULL,
- `e``f` int(11) NOT NULL,
- PRIMARY KEY (`a b`,`c"d`,`e``f`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (815,4711,2006);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE `t1`;
-End of 4.1 tests
-#
-# Bug#10213 mysqldump crashes when dumping VIEWs(on MacOS X)
-#
-create database db1;
-use db1;
-CREATE TABLE t2 (
-a varchar(30) default NULL,
-KEY a (a(5))
-);
-INSERT INTO t2 VALUES ('alfred');
-INSERT INTO t2 VALUES ('angie');
-INSERT INTO t2 VALUES ('bingo');
-INSERT INTO t2 VALUES ('waffle');
-INSERT INTO t2 VALUES ('lemon');
-create view v2 as select * from t2 where a like 'a%' with check option;
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t2` (
- `a` varchar(30) DEFAULT NULL,
- KEY `a` (`a`(5))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t2` WRITE;
-/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
-INSERT INTO `t2` VALUES ('alfred'),('angie'),('bingo'),('waffle'),('lemon');
-/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
-UNLOCK TABLES;
-DROP TABLE IF EXISTS `v2`;
-/*!50001 DROP VIEW IF EXISTS `v2`*/;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `v2` (
- `a` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-/*!50001 DROP TABLE IF EXISTS `v2`*/;
-/*!50001 DROP VIEW IF EXISTS `v2`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v2` AS select `t2`.`a` AS `a` from `t2` where `t2`.`a` like 'a%' */
-/*!50002 WITH CASCADED CHECK OPTION */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop table t2;
-drop view v2;
-drop database db1;
-use test;
-#
-# Bug#10713 mysqldump includes database in create view and referenced tables
-#
-create database db2;
-use db2;
-create table t1 (a int);
-create table t2 (a int, b varchar(10), primary key(a));
-insert into t2 values (1, "on"), (2, "off"), (10, "pol"), (12, "meg");
-insert into t1 values (289), (298), (234), (456), (789);
-create view v1 as select * from t2;
-create view v2 as select * from t1;
-drop table t1, t2;
-drop view v1, v2;
-drop database db2;
-use test;
-create database db1;
-use db1;
-show tables;
-Tables_in_db1
-t1
-t2
-v1
-v2
-select * from t2 order by a;
-a b
-1 on
-2 off
-10 pol
-12 meg
-drop table t1, t2;
-drop database db1;
-use test;
-create table t1(a int);
-create view v1 as select * from t1;
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-DROP TABLE IF EXISTS `v1`;
-/*!50001 DROP VIEW IF EXISTS `v1`*/;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `v1` (
- `a` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-/*!50001 DROP TABLE IF EXISTS `v1`*/;
-/*!50001 DROP VIEW IF EXISTS `v1`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v1` AS select `t1`.`a` AS `a` from `t1` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop view v1;
-drop table t1;
-#
-# Bug#10213 mysqldump crashes when dumping VIEWs(on MacOS X)
-#
-create database mysqldump_test_db;
-use mysqldump_test_db;
-CREATE TABLE t2 (
-a varchar(30) default NULL,
-KEY a (a(5))
-);
-INSERT INTO t2 VALUES ('alfred');
-INSERT INTO t2 VALUES ('angie');
-INSERT INTO t2 VALUES ('bingo');
-INSERT INTO t2 VALUES ('waffle');
-INSERT INTO t2 VALUES ('lemon');
-create view v2 as select * from t2 where a like 'a%' with check option;
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t2` (
- `a` varchar(30) DEFAULT NULL,
- KEY `a` (`a`(5))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t2` WRITE;
-/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
-INSERT INTO `t2` VALUES ('alfred'),('angie'),('bingo'),('waffle'),('lemon');
-/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
-UNLOCK TABLES;
-DROP TABLE IF EXISTS `v2`;
-/*!50001 DROP VIEW IF EXISTS `v2`*/;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `v2` (
- `a` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-/*!50001 DROP TABLE IF EXISTS `v2`*/;
-/*!50001 DROP VIEW IF EXISTS `v2`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v2` AS select `t2`.`a` AS `a` from `t2` where `t2`.`a` like 'a%' */
-/*!50002 WITH CASCADED CHECK OPTION */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop table t2;
-drop view v2;
-drop database mysqldump_test_db;
-use test;
-#
-# Bug#9756 mysql client failing on dumps containing certain \ sequences
-#
-CREATE TABLE t1 (a char(10));
-INSERT INTO t1 VALUES ('\'');
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` char(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES ('\'');
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE t1;
-#
-# Bug#10927 mysqldump: Can't reload dump with view that consist of other view
-#
-create table t1(a int, b int, c varchar(30));
-insert into t1 values(1, 2, "one"), (2, 4, "two"), (3, 6, "three");
-create view v3 as
-select * from t1;
-create view v1 as
-select * from v3 where b in (1, 2, 3, 4, 5, 6, 7);
-create view v2 as
-select v3.a from v3, v1 where v1.a=v3.a and v3.b=3 limit 1;
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` varchar(30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (1,2,'one'),(2,4,'two'),(3,6,'three');
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-DROP TABLE IF EXISTS `v1`;
-/*!50001 DROP VIEW IF EXISTS `v1`*/;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `v1` (
- `a` tinyint NOT NULL,
- `b` tinyint NOT NULL,
- `c` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-DROP TABLE IF EXISTS `v2`;
-/*!50001 DROP VIEW IF EXISTS `v2`*/;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `v2` (
- `a` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-DROP TABLE IF EXISTS `v3`;
-/*!50001 DROP VIEW IF EXISTS `v3`*/;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `v3` (
- `a` tinyint NOT NULL,
- `b` tinyint NOT NULL,
- `c` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-/*!50001 DROP TABLE IF EXISTS `v1`*/;
-/*!50001 DROP VIEW IF EXISTS `v1`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v1` AS select `v3`.`a` AS `a`,`v3`.`b` AS `b`,`v3`.`c` AS `c` from `v3` where `v3`.`b` in (1,2,3,4,5,6,7) */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-/*!50001 DROP TABLE IF EXISTS `v2`*/;
-/*!50001 DROP VIEW IF EXISTS `v2`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v2` AS select `v3`.`a` AS `a` from (`v3` join `v1`) where `v1`.`a` = `v3`.`a` and `v3`.`b` = 3 limit 1 */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-/*!50001 DROP TABLE IF EXISTS `v3`*/;
-/*!50001 DROP VIEW IF EXISTS `v3`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v3` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b`,`t1`.`c` AS `c` from `t1` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop view v1, v2, v3;
-drop table t1;
-#
-# Test for dumping triggers
-#
-CREATE TABLE t1 (a int, b bigint default NULL);
-CREATE TABLE t2 (a int);
-create trigger trg1 before insert on t1 for each row
-begin
-if new.a > 10 then
-set new.a := 10;
-set new.a := 11;
-end if;
-end|
-create trigger trg2 before update on t1 for each row begin
-if old.a % 2 = 0 then set new.b := 12; end if;
-end|
-set sql_mode="traditional"|
-create trigger trg3 after update on t1 for each row
-begin
-if new.a = -1 then
-set @fired:= "Yes";
-end if;
-end|
-create trigger trg4 before insert on t2 for each row
-begin
-if new.a > 10 then
-set @fired:= "No";
-end if;
-end|
-set sql_mode=default|
-show triggers like "t1";
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg1 INSERT t1 begin
-if new.a > 10 then
-set new.a := 10;
-set new.a := 11;
-end if;
-end BEFORE 0000-00-00 00:00:00 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-trg2 UPDATE t1 begin
-if old.a % 2 = 0 then set new.b := 12; end if;
-end BEFORE 0000-00-00 00:00:00 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-trg3 UPDATE t1 begin
-if new.a = -1 then
-set @fired:= "Yes";
-end if;
-end AFTER 0000-00-00 00:00:00 STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-INSERT INTO t1 (a) VALUES (1),(2),(3),(22);
-update t1 set a = 4 where a=3;
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `test`;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (1,NULL),(2,NULL),(4,NULL),(11,NULL);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 trigger trg1 before insert on t1 for each row
-begin
-if new.a > 10 then
-set new.a := 10;
-set new.a := 11;
-end if;
-end */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 trigger trg2 before update on t1 for each row begin
-if old.a % 2 = 0 then set new.b := 12; end if;
-end */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 trigger trg3 after update on t1 for each row
-begin
-if new.a = -1 then
-set @fired:= "Yes";
-end if;
-end */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-DROP TABLE IF EXISTS `t2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t2` WRITE;
-/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
-/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 trigger trg4 before insert on t2 for each row
-begin
-if new.a > 10 then
-set @fired:= "No";
-end if;
-end */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `test`;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (1,NULL),(2,NULL),(4,NULL),(11,NULL);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-DROP TABLE IF EXISTS `t2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t2` WRITE;
-/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
-/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop table t1;
-show tables;
-Tables_in_test
-t1
-t2
-show triggers;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg1 INSERT t1 begin
-if new.a > 10 then
-set new.a := 10;
-set new.a := 11;
-end if;
-end BEFORE # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-trg2 UPDATE t1 begin
-if old.a % 2 = 0 then set new.b := 12; end if;
-end BEFORE # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-trg3 UPDATE t1 begin
-if new.a = -1 then
-set @fired:= "Yes";
-end if;
-end AFTER # STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-trg4 INSERT t2 begin
-if new.a > 10 then
-set @fired:= "No";
-end if;
-end BEFORE # STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-DROP TABLE t1, t2;
-#
-# Bug#9136 my_print_defaults changed behaviour between 4.1.7 and 4.1.10a
-# Bug#12917 The --defaults-extra-file option is ignored by the 5.0 client binaries
-# (Problems with --defaults-extra-file option)
-#
---port=1234
---port=1234
-#
-# Test of fix to Bug#12597 mysqldump dumps triggers wrongly
-#
-DROP TABLE IF EXISTS `test1`;
-Warnings:
-Note 1051 Unknown table 'test.test1'
-CREATE TABLE `test1` (
-`a1` int(11) default NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-DROP TABLE IF EXISTS `test2`;
-Warnings:
-Note 1051 Unknown table 'test.test2'
-CREATE TABLE `test2` (
-`a2` int(11) default NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-CREATE TRIGGER `testref` BEFORE INSERT ON `test1` FOR EACH ROW BEGIN
-INSERT INTO test2 SET a2 = NEW.a1; END //
-INSERT INTO `test1` VALUES (1);
-SELECT * FROM `test2`;
-a2
-1
-SHOW TRIGGERS;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-testref INSERT test1 BEGIN
-INSERT INTO test2 SET a2 = NEW.a1; END BEFORE # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-SELECT * FROM `test1`;
-a1
-1
-SELECT * FROM `test2`;
-a2
-1
-DROP TRIGGER testref;
-DROP TABLE test1;
-DROP TABLE test2;
-#
-# Bug#9056 mysqldump does not dump routines
-#
-DROP TABLE IF EXISTS t1;
-DROP FUNCTION IF EXISTS bug9056_func1;
-DROP FUNCTION IF EXISTS bug9056_func2;
-DROP PROCEDURE IF EXISTS bug9056_proc1;
-DROP PROCEDURE IF EXISTS bug9056_proc2;
-DROP PROCEDURE IF EXISTS `a'b`;
-CREATE TABLE t1 (id int);
-INSERT INTO t1 VALUES(1), (2), (3), (4), (5);
-CREATE FUNCTION `bug9056_func1`(a INT, b INT) RETURNS int(11) RETURN a+b //
-CREATE PROCEDURE `bug9056_proc1`(IN a INT, IN b INT, OUT c INT)
-BEGIN SELECT a+b INTO c; end //
-create function bug9056_func2(f1 char binary) returns char
-begin
-set f1= concat( 'hello', f1 );
-return f1;
-end //
-CREATE PROCEDURE bug9056_proc2(OUT a INT)
-BEGIN
-select sum(id) from t1 into a;
-END //
-set sql_mode='ansi';
-create procedure `a'b` () select 1;
-set sql_mode='';
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `test`;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `id` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (1),(2),(3),(4),(5);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!50003 DROP FUNCTION IF EXISTS `bug9056_func1` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `bug9056_func1`(a INT, b INT) RETURNS int(11)
-RETURN a+b ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP FUNCTION IF EXISTS `bug9056_func2` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `bug9056_func2`(f1 char binary) RETURNS char(1) CHARSET latin1
-begin
-set f1= concat( 'hello', f1 );
-return f1;
-end ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `a'b` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI' */ ;
-DELIMITER ;;
-CREATE DEFINER="root"@"localhost" PROCEDURE "a'b"()
-select 1 ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `bug9056_proc1` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `bug9056_proc1`(IN a INT, IN b INT, OUT c INT)
-BEGIN SELECT a+b INTO c; end ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `bug9056_proc2` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `bug9056_proc2`(OUT a INT)
-BEGIN
-select sum(id) from t1 into a;
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP FUNCTION bug9056_func1;
-DROP FUNCTION bug9056_func2;
-DROP PROCEDURE bug9056_proc1;
-DROP PROCEDURE bug9056_proc2;
-DROP PROCEDURE `a'b`;
-drop table t1;
-#
-# Bug#13052 mysqldump timestamp reloads broken
-#
-drop table if exists t1;
-create table t1 (`d` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, unique (`d`));
-set time_zone='+00:00';
-insert into t1 values ('2003-10-25 22:00:00'),('2003-10-25 23:00:00');
-select * from t1;
-d
-2003-10-25 22:00:00
-2003-10-25 23:00:00
-set time_zone='Europe/Moscow';
-select * from t1;
-d
-2003-10-26 02:00:00
-2003-10-26 02:00:00
-set global time_zone='Europe/Moscow';
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `test`;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `d` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- UNIQUE KEY `d` (`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES ('2003-10-25 22:00:00'),('2003-10-25 23:00:00');
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `test`;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `d` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- UNIQUE KEY `d` (`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES ('2003-10-26 02:00:00'),('2003-10-26 02:00:00');
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop table t1;
-set global time_zone=default;
-set time_zone=default;
-#
-# Test of fix to Bug#13146 ansi quotes break loading of triggers
-#
-DROP TABLE IF EXISTS `t1 test`;
-DROP TABLE IF EXISTS `t2 test`;
-CREATE TABLE `t1 test` (
-`a1` int(11) default NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-CREATE TABLE `t2 test` (
-`a2` int(11) default NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-CREATE TRIGGER `test trig` BEFORE INSERT ON `t1 test` FOR EACH ROW BEGIN
-INSERT INTO `t2 test` SET a2 = NEW.a1; END //
-INSERT INTO `t1 test` VALUES (1);
-INSERT INTO `t1 test` VALUES (2);
-INSERT INTO `t1 test` VALUES (3);
-SELECT * FROM `t2 test`;
-a2
-1
-2
-3
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS "t1 test";
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE "t1 test" (
- "a1" int(11) DEFAULT NULL
-);
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES "t1 test" WRITE;
-/*!40000 ALTER TABLE "t1 test" DISABLE KEYS */;
-INSERT INTO "t1 test" VALUES (1),(2),(3);
-/*!40000 ALTER TABLE "t1 test" ENABLE KEYS */;
-UNLOCK TABLES;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `test trig` BEFORE INSERT ON `t1 test` FOR EACH ROW BEGIN
-INSERT INTO `t2 test` SET a2 = NEW.a1; END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-DROP TABLE IF EXISTS "t2 test";
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE "t2 test" (
- "a2" int(11) DEFAULT NULL
-);
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES "t2 test" WRITE;
-/*!40000 ALTER TABLE "t2 test" DISABLE KEYS */;
-INSERT INTO "t2 test" VALUES (1),(2),(3);
-/*!40000 ALTER TABLE "t2 test" ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TRIGGER `test trig`;
-DROP TABLE `t1 test`;
-DROP TABLE `t2 test`;
-#
-# Bug#12838 mysqldump -x with views exits with error
-#
-drop table if exists t1;
-create table t1 (a int, b varchar(32), c varchar(32));
-insert into t1 values (1, 'first value', 'xxxx');
-insert into t1 values (2, 'second value', 'tttt');
-insert into t1 values (3, 'third value', 'vvv vvv');
-create view v1 as select * from t1;
-create view v0 as select * from v1;
-create view v2 as select * from v0;
-select * from v2;
-a b c
-1 first value xxxx
-2 second value tttt
-3 third value vvv vvv
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `test`;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` varchar(32) DEFAULT NULL,
- `c` varchar(32) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (1,'first value','xxxx'),(2,'second value','tttt'),(3,'third value','vvv vvv');
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-DROP TABLE IF EXISTS `v0`;
-/*!50001 DROP VIEW IF EXISTS `v0`*/;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `v0` (
- `a` tinyint NOT NULL,
- `b` tinyint NOT NULL,
- `c` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-DROP TABLE IF EXISTS `v1`;
-/*!50001 DROP VIEW IF EXISTS `v1`*/;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `v1` (
- `a` tinyint NOT NULL,
- `b` tinyint NOT NULL,
- `c` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-DROP TABLE IF EXISTS `v2`;
-/*!50001 DROP VIEW IF EXISTS `v2`*/;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `v2` (
- `a` tinyint NOT NULL,
- `b` tinyint NOT NULL,
- `c` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-
-USE `test`;
-/*!50001 DROP TABLE IF EXISTS `v0`*/;
-/*!50001 DROP VIEW IF EXISTS `v0`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v0` AS select `v1`.`a` AS `a`,`v1`.`b` AS `b`,`v1`.`c` AS `c` from `v1` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-/*!50001 DROP TABLE IF EXISTS `v1`*/;
-/*!50001 DROP VIEW IF EXISTS `v1`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b`,`t1`.`c` AS `c` from `t1` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-/*!50001 DROP TABLE IF EXISTS `v2`*/;
-/*!50001 DROP VIEW IF EXISTS `v2`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v2` AS select `v0`.`a` AS `a`,`v0`.`b` AS `b`,`v0`.`c` AS `c` from `v0` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop view v2;
-drop view v0;
-drop view v1;
-drop table t1;
-#
-# Bug#14554 mysqldump does not separate words "ROW" and "BEGIN"
-# for tables with trigger created in the IGNORE_SPACE sql mode.
-#
-SET @old_sql_mode = @@SQL_MODE;
-SET SQL_MODE = IGNORE_SPACE;
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER tr1 BEFORE INSERT ON t1
-FOR EACH ROW
-BEGIN
-SET new.a = 0;
-END|
-SET SQL_MODE = @old_sql_mode;
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `test`;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER tr1 BEFORE INSERT ON t1
-FOR EACH ROW
-BEGIN
-SET new.a = 0;
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TRIGGER tr1;
-DROP TABLE t1;
-#
-# Bug#13318 Bad result with empty field and --hex-blob
-#
-create table t1 (a binary(1), b blob);
-insert into t1 values ('','');
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` binary(1) DEFAULT NULL,
- `b` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (0x00,'');
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` binary(1) DEFAULT NULL,
- `b` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (0x00,'');
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop table t1;
-#
-# Bug#14871 Invalid view dump output
-#
-create table t1 (a int);
-insert into t1 values (289), (298), (234), (456), (789);
-create definer = CURRENT_USER view v1 as select * from t1;
-create SQL SECURITY INVOKER view v2 as select * from t1;
-create view v3 as select * from t1 with local check option;
-create algorithm=merge view v4 as select * from t1 with cascaded check option;
-create algorithm =temptable view v5 as select * from t1;
-drop table t1;
-drop view v1, v2, v3, v4, v5;
-show tables;
-Tables_in_test
-t1
-v1
-v2
-v3
-v4
-v5
-select * from v3 order by a;
-a
-234
-289
-298
-456
-789
-drop table t1;
-drop view v1, v2, v3, v4, v5;
-#
-# Bug#16878 dump of trigger
-#
-create table t1 (a int, created datetime);
-create table t2 (b int, created datetime);
-create trigger tr1 before insert on t1 for each row set
-new.created=now();
-create trigger tr2 after insert on t1
-for each row
-begin
-insert into t2 set b=new.a and created=new.created;
-end|
-drop trigger tr1;
-drop trigger tr2;
-drop table t1, t2;
-show triggers;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-tr1 INSERT t1 set
-new.created=now() BEFORE # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-tr2 INSERT t1 begin
-insert into t2 set b=new.a and created=new.created;
-end AFTER # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-drop trigger tr1;
-drop trigger tr2;
-drop table t1, t2;
-#
-# Bug#18462 mysqldump does not dump view structures correctly
-#
-create table t (qty int, price int);
-insert into t values(3, 50);
-insert into t values(5, 51);
-create view v1 as select qty, price, qty*price as value from t;
-create view v2 as select qty from v1;
-mysqldump {
-/*!50001 DROP TABLE IF EXISTS `v1`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v1` AS select `t`.`qty` AS `qty`,`t`.`price` AS `price`,`t`.`qty` * `t`.`price` AS `value` from `t` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-
-} mysqldump {
-/*!50001 DROP TABLE IF EXISTS `v2`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v2` AS select `v1`.`qty` AS `qty` from `v1` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-
-} mysqldump
-drop view v1;
-drop view v2;
-drop table t;
-#
-# Bug#14857 Reading dump files with single statement stored routines fails.
-# fixed by patch for Bug#16878
-#
-/*!50003 CREATE FUNCTION `f`() RETURNS bigint(20)
-return 42 */|
-/*!50003 CREATE PROCEDURE `p`()
-select 42 */|
-show create function f;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-f CREATE DEFINER=`root`@`localhost` FUNCTION `f`() RETURNS bigint(20)
-return 42 latin1 latin1_swedish_ci latin1_swedish_ci
-show create procedure p;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p CREATE DEFINER=`root`@`localhost` PROCEDURE `p`()
-select 42 latin1 latin1_swedish_ci latin1_swedish_ci
-drop function f;
-drop procedure p;
-#
-# Bug#17371 Unable to dump a schema with invalid views
-#
-create table t1 ( id serial );
-create view v1 as select * from t1;
-drop table t1;
-mysqldump {
-
--- failed on view `v1`: CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `test`.`t1`.`id` AS `id` from `t1`
-
-} mysqldump
-drop view v1;
-# Bug#17201 Spurious 'DROP DATABASE' in output,
-# also confusion between tables and views.
-# Example code from Markus Popp
-create database mysqldump_test_db;
-use mysqldump_test_db;
-create table t1 (id int);
-create view v1 as select * from t1;
-insert into t1 values (1232131);
-insert into t1 values (4711);
-insert into t1 values (3231);
-insert into t1 values (0815);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-/*!40000 DROP DATABASE IF EXISTS `mysqldump_test_db`*/;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_test_db` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `mysqldump_test_db`;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `id` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (1232131),(4711),(3231),(815);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-DROP TABLE IF EXISTS `v1`;
-/*!50001 DROP VIEW IF EXISTS `v1`*/;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `v1` (
- `id` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-
-USE `mysqldump_test_db`;
-/*!50001 DROP TABLE IF EXISTS `v1`*/;
-/*!50001 DROP VIEW IF EXISTS `v1`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v1` AS select `t1`.`id` AS `id` from `t1` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop view v1;
-drop table t1;
-drop database mysqldump_test_db;
-#
-# Bug#21014 Segmentation fault of mysqldump on view
-#
-create database mysqldump_tables;
-use mysqldump_tables;
-create table basetable ( id serial, tag varchar(64) );
-create database mysqldump_views;
-use mysqldump_views;
-create view nasishnasifu as select mysqldump_tables.basetable.id from mysqldump_tables.basetable;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_tables` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `mysqldump_tables`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `basetable` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `tag` varchar(64) DEFAULT NULL,
- UNIQUE KEY `id` (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_views` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `mysqldump_views`;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `nasishnasifu` (
- `id` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-
-USE `mysqldump_tables`;
-
-USE `mysqldump_views`;
-/*!50001 DROP TABLE IF EXISTS `nasishnasifu`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `nasishnasifu` AS select `mysqldump_tables`.`basetable`.`id` AS `id` from `mysqldump_tables`.`basetable` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-drop view nasishnasifu;
-drop database mysqldump_views;
-drop table mysqldump_tables.basetable;
-drop database mysqldump_tables;
-#
-# Bug#20221 Dumping of multiple databases containing view(s) yields maleformed dumps
-#
-create database mysqldump_dba;
-use mysqldump_dba;
-create table t1 (f1 int, f2 int);
-insert into t1 values (1,1);
-create view v1 as select f1, f2 from t1;
-create database mysqldump_dbb;
-use mysqldump_dbb;
-create table t1 (f1 int, f2 int);
-insert into t1 values (2,2);
-create view v1 as select f1, f2 from t1;
-drop view v1;
-drop table t1;
-drop database mysqldump_dbb;
-use mysqldump_dba;
-drop view v1;
-drop table t1;
-drop database mysqldump_dba;
-select * from mysqldump_dba.v1;
-f1 f2
-1 1
-select * from mysqldump_dbb.v1;
-f1 f2
-2 2
-use mysqldump_dba;
-drop view v1;
-drop table t1;
-drop database mysqldump_dba;
-use mysqldump_dbb;
-drop view v1;
-drop table t1;
-drop database mysqldump_dbb;
-use test;
-#
-# Bug#21215 mysqldump creating incomplete backups without warning
-#
-create user mysqltest_1@localhost;
-create table t1(a int, b varchar(34));
-reset master;
-mysqldump: Couldn't execute 'FLUSH /*!40101 LOCAL */ TABLES': Access denied; you need (at least one of) the RELOAD privilege(s) for this operation (1227)
-mysqldump: Couldn't execute 'FLUSH /*!40101 LOCAL */ TABLES': Access denied; you need (at least one of) the RELOAD privilege(s) for this operation (1227)
-grant RELOAD on *.* to mysqltest_1@localhost;
-mysqldump: Couldn't execute 'SHOW MASTER STATUS': Access denied; you need (at least one of) the SUPER, REPLICATION CLIENT privilege(s) for this operation (1227)
-mysqldump: Couldn't execute 'SHOW MASTER STATUS': Access denied; you need (at least one of) the SUPER, REPLICATION CLIENT privilege(s) for this operation (1227)
-grant REPLICATION CLIENT on *.* to mysqltest_1@localhost;
-drop table t1;
-drop user mysqltest_1@localhost;
-#
-# Bug#21424 mysqldump failing to export/import views
-#
-connect root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root;
-create database mysqldump_myDB;
-use mysqldump_myDB;
-create user myDB_User@localhost;
-grant create, create view, select, insert on mysqldump_myDB.* to myDB_User@localhost;
-create table t1 (c1 int);
-insert into t1 values (3);
-connect user1,localhost,myDB_User,,mysqldump_myDB,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection user1;
-use mysqldump_myDB;
-create table u1 (f1 int);
-insert into u1 values (4);
-create view v1 (c1) as select * from t1;
-connection root;
-use mysqldump_myDB;
-drop view v1;
-drop table t1;
-drop table u1;
-revoke all privileges on mysqldump_myDB.* from myDB_User@localhost;
-drop user myDB_User@localhost;
-drop database mysqldump_myDB;
-flush privileges;
-# Bug#21424 continues from here.
-# Restore. Flush Privileges test ends.
-#
-connection user1;
-use mysqldump_myDB;
-select * from mysqldump_myDB.v1;
-c1
-3
-select * from mysqldump_myDB.u1;
-f1
-4
-connection root;
-disconnect user1;
-use mysqldump_myDB;
-drop view v1;
-drop table t1;
-drop table u1;
-revoke all privileges on mysqldump_myDB.* from myDB_User@localhost;
-drop user myDB_User@localhost;
-drop database mysqldump_myDB;
-connection default;
-disconnect root;
-use test;
-#
-# Bug #21527 mysqldump incorrectly tries to LOCK TABLES on the
-# information_schema database.
-#
-# Bug #33762: mysqldump can not dump INFORMATION_SCHEMA
-#
-DROP TABLE IF EXISTS `TABLES`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TEMPORARY TABLE `TABLES` (
- `TABLE_CATALOG` varchar(512) NOT NULL DEFAULT '',
- `TABLE_SCHEMA` varchar(64) NOT NULL DEFAULT '',
- `TABLE_NAME` varchar(64) NOT NULL DEFAULT '',
- `TABLE_TYPE` varchar(64) NOT NULL DEFAULT '',
- `ENGINE` varchar(64) DEFAULT NULL,
- `VERSION` bigint(21) unsigned DEFAULT NULL,
- `ROW_FORMAT` varchar(10) DEFAULT NULL,
- `TABLE_ROWS` bigint(21) unsigned DEFAULT NULL,
- `AVG_ROW_LENGTH` bigint(21) unsigned DEFAULT NULL,
- `DATA_LENGTH` bigint(21) unsigned DEFAULT NULL,
- `MAX_DATA_LENGTH` bigint(21) unsigned DEFAULT NULL,
- `INDEX_LENGTH` bigint(21) unsigned DEFAULT NULL,
- `DATA_FREE` bigint(21) unsigned DEFAULT NULL,
- `AUTO_INCREMENT` bigint(21) unsigned DEFAULT NULL,
- `CREATE_TIME` datetime DEFAULT NULL,
- `UPDATE_TIME` datetime DEFAULT NULL,
- `CHECK_TIME` datetime DEFAULT NULL,
- `TABLE_COLLATION` varchar(32) DEFAULT NULL,
- `CHECKSUM` bigint(21) unsigned DEFAULT NULL,
- `CREATE_OPTIONS` varchar(2048) DEFAULT NULL,
- `TABLE_COMMENT` varchar(2048) NOT NULL DEFAULT '',
- `MAX_INDEX_LENGTH` bigint(21) unsigned DEFAULT NULL,
- `TEMPORARY` varchar(1) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-#
-# Bug#19745 mysqldump --xml produces invalid xml
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (f1 int(10), data MEDIUMBLOB);
-INSERT INTO t1 VALUES(1,0xff00fef0);
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="test">
- <table_structure name="t1">
- <field Field="f1" Type="int(10)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <field Field="data" Type="mediumblob" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- </table_structure>
- <table_data name="t1">
- <row>
- <field name="f1">1</field>
- <field name="data" xsi:type="xs:hexBinary">FF00FEF0</field>
- </row>
- </table_data>
-</database>
-</mysqldump>
-DROP TABLE t1;
-#
-# Bug#26346 stack + buffer overrun in mysqldump
-#
-CREATE TABLE t1(a int);
-INSERT INTO t1 VALUES (1), (2);
-mysqldump: Input filename too long: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-DROP TABLE t1;
-CREATE TABLE t2 (a INT) ENGINE=MyISAM;
-CREATE TABLE t3 (a INT) ENGINE=MyISAM;
-CREATE TABLE t1 (a INT) ENGINE=merge UNION=(t2, t3);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t2`,`t3`);
-/*!40101 SET character_set_client = @saved_cs_client */;
-DROP TABLE IF EXISTS `t2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t2` WRITE;
-/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
-/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
-UNLOCK TABLES;
-DROP TABLE IF EXISTS `t3`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t3` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t3` WRITE;
-/*!40000 ALTER TABLE `t3` DISABLE KEYS */;
-/*!40000 ALTER TABLE `t3` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE t1, t2, t3;
-#
-# Bug#23491 MySQLDump prefix function call in a view by database name
-#
-create database bug23491_original;
-create database bug23491_restore;
-use bug23491_original;
-create table t1 (c1 int);
-create view v1 as select * from t1;
-create procedure p1() select 1;
-create function f1() returns int return 1;
-create view v2 as select f1();
-create function f2() returns int return f1();
-create view v3 as select bug23491_original.f1();
-use bug23491_restore;
-show create view bug23491_restore.v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `f1`() AS `f1()` latin1 latin1_swedish_ci
-show create view bug23491_restore.v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select `bug23491_original`.`f1`() AS `bug23491_original.f1()` latin1 latin1_swedish_ci
-drop database bug23491_original;
-drop database bug23491_restore;
-use test;
-#
-# Bug#27293 mysqldump crashes when dumping routines
-# defined by a different user
-#
-# Bug#22761 mysqldump reports no errors when using
-# --routines without mysql.proc privileges
-#
-create database mysqldump_test_db;
-grant all privileges on mysqldump_test_db.* to user1;
-grant all privileges on mysqldump_test_db.* to user2;
-connect user27293,localhost,user1,,mysqldump_test_db,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection user27293;
-create procedure mysqldump_test_db.sp1() select 'hello';
-
--- insufficient privileges to SHOW CREATE PROCEDURE `sp1`
--- does user2 have permissions on mysql.proc?
-
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`user1`@`%` PROCEDURE `sp1`()
-select 'hello' ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-drop procedure sp1;
-connection default;
-disconnect user27293;
-drop user user1;
-drop user user2;
-drop database mysqldump_test_db;
-#
-# Bug#28522 buffer overrun by '\0' byte using --hex-blob.
-#
-CREATE TABLE t1 (c1 INT, c2 LONGBLOB);
-INSERT INTO t1 SET c1=11, c2=REPEAT('q',509);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL,
- `c2` longblob DEFAULT NULL
-);
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t1` VALUES (11,0x7171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171);
-DROP TABLE t1;
-#
-# Bug#28524 mysqldump --skip-add-drop-table is not
-# compatible with views
-#
-CREATE VIEW v1 AS SELECT 1;
-DROP VIEW v1;
-SELECT * FROM v1;
-1
-1
-DROP VIEW v1;
-#
-# Bug#29788 mysqldump discards the NO_AUTO_VALUE_ON_ZERO value of
-# the SQL_MODE variable after the dumping of triggers.
-#
-CREATE TABLE t1 (c1 INT);
-CREATE TRIGGER t1bd BEFORE DELETE ON t1 FOR EACH ROW BEGIN END;
-CREATE TABLE t2 (c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
-SET @TMP_SQL_MODE = @@SQL_MODE;
-SET SQL_MODE = 'NO_AUTO_VALUE_ON_ZERO';
-INSERT INTO t2 VALUES (0), (1), (2);
-SET SQL_MODE = @TMP_SQL_MODE;
-SELECT * FROM t2;
-c1
-0
-1
-2
-SELECT * FROM t2;
-c1
-0
-1
-2
-DROP TABLE t1,t2;
-#
-# Bug#29815 new option for suppressing last line of mysqldump:
-# "Dump completed on"
-#
-# --skip-dump-date:
---
-
-
-
--- Dump completed
-# --dump-date:
---
-
-
-
--- Dump completed on DATE
-# --dump-date (default):
---
-
-
-
--- Dump completed on DATE
-#
-# Bug #42635: mysqldump includes views that were excluded using
-# the --ignore-table option
-#
-create database db42635;
-use db42635;
-create table t1 (id int);
-create view db42635.v1 (c) as select * from db42635.t1;
-create view db42635.v2 (c) as select * from db42635.t1;
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `id` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-DROP TABLE IF EXISTS `v2`;
-/*!50001 DROP VIEW IF EXISTS `v2`*/;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `v2` (
- `c` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-/*!50001 DROP TABLE IF EXISTS `v2`*/;
-/*!50001 DROP VIEW IF EXISTS `v2`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v2` AS select `t1`.`id` AS `c` from `t1` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-use test;
-drop database db42635;
-#
-# Bug#33550 mysqldump 4.0 compatibility broken
-#
-SET NAMES utf8;
-CREATE TABLE `straße` ( f1 INT );
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `straße`;
-CREATE TABLE `straße` (
- `f1` int(11) DEFAULT NULL
-) TYPE=MyISAM;
-
-LOCK TABLES `straße` WRITE;
-/*!40000 ALTER TABLE `straße` DISABLE KEYS */;
-/*!40000 ALTER TABLE `straße` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `straße`;
-CREATE TABLE `straße` (
- `f1` int(11) DEFAULT NULL
-) TYPE=MyISAM;
-
-LOCK TABLES `straße` WRITE;
-/*!40000 ALTER TABLE `straße` DISABLE KEYS */;
-/*!40000 ALTER TABLE `straße` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE `straße`;
-CREATE TABLE `כדשגכחךלדגכחשךדגחכךלדגכ` ( f1 INT );
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `כדשגכחךלדגכחשךדגחכךלדגכ`;
-CREATE TABLE `כדשגכחךלדגכחשךדגחכךלדגכ` (
- `f1` int(11) DEFAULT NULL
-) TYPE=MyISAM;
-
-LOCK TABLES `כדשגכחךלדגכחשךדגחכךלדגכ` WRITE;
-/*!40000 ALTER TABLE `כדשגכחךלדגכחשךדגחכךלדגכ` DISABLE KEYS */;
-/*!40000 ALTER TABLE `כדשגכחךלדגכחשךדגחכךלדגכ` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE `כדשגכחךלדגכחשךדגחכךלדגכ`;
-SET NAMES latin1;
-#
-# End of 5.0 tests
-#
-drop table if exists t1;
-CREATE TABLE t1(a int, b int);
-INSERT INTO t1 VALUES (1,1);
-INSERT INTO t1 VALUES (2,3);
-INSERT INTO t1 VALUES (3,4), (4,5);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-REPLACE INTO `t1` VALUES (1,1),(2,3),(3,4),(4,5);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE t1;
-create table t1 (a text , b text);
-create table t2 (a text , b text);
-insert t1 values ("Duck, Duck", "goose");
-insert t1 values ("Duck, Duck", "pidgeon");
-insert t2 values ("We the people", "in order to perform");
-insert t2 values ("a more perfect", "union");
-select * from t1;
-a b
-Duck, Duck goose
-Duck, Duck pidgeon
-select * from t2;
-a b
-We the people in order to perform
-a more perfect union
-test.t1: Records: 2 Deleted: 0 Skipped: 0 Warnings: 0
-test.t2: Records: 2 Deleted: 0 Skipped: 0 Warnings: 0
-select * from t1;
-a b
-Duck, Duck goose
-Duck, Duck pidgeon
-Duck, Duck goose
-Duck, Duck pidgeon
-select * from t2;
-a b
-We the people in order to perform
-a more perfect union
-We the people in order to perform
-a more perfect union
-create table words(a varchar(255));
-create table words2(b varchar(255));
-select * from t1;
-a b
-Duck, Duck goose
-Duck, Duck pidgeon
-Duck, Duck goose
-Duck, Duck pidgeon
-Duck, Duck goose
-Duck, Duck pidgeon
-select * from t2;
-a b
-We the people in order to perform
-a more perfect union
-We the people in order to perform
-a more perfect union
-We the people in order to perform
-a more perfect union
-select * from words;
-a
-Aarhus
-Aaron
-Ababa
-aback
-abaft
-abandon
-abandoned
-abandoning
-abandonment
-abandons
-Aarhus
-Aaron
-Ababa
-aback
-abaft
-abandon
-abandoned
-abandoning
-abandonment
-abandons
-abase
-abased
-abasement
-abasements
-abases
-abash
-abashed
-abashes
-abashing
-abasing
-abate
-abated
-abatement
-abatements
-abater
-abates
-abating
-Abba
-abbe
-abbey
-abbeys
-abbot
-abbots
-Abbott
-abbreviate
-abbreviated
-abbreviates
-abbreviating
-abbreviation
-abbreviations
-Abby
-abdomen
-abdomens
-abdominal
-abduct
-abducted
-abduction
-abductions
-abductor
-abductors
-abducts
-Abe
-abed
-Abel
-Abelian
-Abelson
-Aberdeen
-Abernathy
-aberrant
-aberration
-select * from words2;
-b
-abase
-abased
-abasement
-abasements
-abases
-abash
-abashed
-abashes
-abashing
-abasing
-abate
-abated
-abatement
-abatements
-abater
-abates
-abating
-Abba
-abbe
-abbey
-abbeys
-abbot
-abbots
-Abbott
-abbreviate
-abbreviated
-abbreviates
-abbreviating
-abbreviation
-abbreviations
-Abby
-abdomen
-abdomens
-abdominal
-abduct
-abducted
-abduction
-abductions
-abductor
-abductors
-abducts
-Abe
-abed
-Abel
-Abelian
-Abelson
-Aberdeen
-Abernathy
-aberrant
-aberration
-drop table words;
-drop table t1;
-drop table t2;
-drop table words2;
-#
-# Bug#16853 mysqldump doesn't show events
-#
-create database first;
-use first;
-set time_zone = 'UTC';
-create event ee1 on schedule at '2035-12-31 20:01:23' do set @a=5;
-show events;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-first ee1 root@localhost UTC ONE TIME 2035-12-31 20:01:23 NULL NULL NULL NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-show create event ee1;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ee1 UTC CREATE DEFINER=`root`@`localhost` EVENT `ee1` ON SCHEDULE AT '2035-12-31 20:01:23' ON COMPLETION NOT PRESERVE ENABLE DO set @a=5 latin1 latin1_swedish_ci latin1_swedish_ci
-drop database first;
-create database second;
-use second;
-show events;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-second ee1 root@localhost UTC ONE TIME 2035-12-31 20:01:23 NULL NULL NULL NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-show create event ee1;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ee1 UTC CREATE DEFINER=`root`@`localhost` EVENT `ee1` ON SCHEDULE AT '2035-12-31 20:01:23' ON COMPLETION NOT PRESERVE ENABLE DO set @a=5 latin1 latin1_swedish_ci latin1_swedish_ci
-create event ee2 on schedule at '2018-12-31 21:01:23' do set @a=5;
-create event ee3 on schedule at '2030-12-31 22:01:23' do set @a=5;
-show events;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-second ee1 root@localhost UTC ONE TIME 2035-12-31 20:01:23 NULL NULL NULL NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-second ee2 root@localhost UTC ONE TIME 2018-12-31 21:01:23 NULL NULL NULL NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-second ee3 root@localhost UTC ONE TIME 2030-12-31 22:01:23 NULL NULL NULL NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-drop database second;
-create database third;
-use third;
-show events;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-third ee1 root@localhost UTC ONE TIME 2035-12-31 20:01:23 NULL NULL NULL NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-third ee2 root@localhost UTC ONE TIME 2018-12-31 21:01:23 NULL NULL NULL NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-third ee3 root@localhost UTC ONE TIME 2030-12-31 22:01:23 NULL NULL NULL NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-drop database third;
-set time_zone = 'SYSTEM';
-use test;
-#
-# Bug#17201 Spurious 'DROP DATABASE' in output,
-# also confusion between tables and views.
-# Example code from Markus Popp
-#
-create database mysqldump_test_db;
-use mysqldump_test_db;
-create table t1 (id int);
-create view v1 as select * from t1;
-insert into t1 values (1232131);
-insert into t1 values (4711);
-insert into t1 values (3231);
-insert into t1 values (0815);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-/*!40000 DROP DATABASE IF EXISTS `mysqldump_test_db`*/;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_test_db` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `mysqldump_test_db`;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `id` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (1232131),(4711),(3231),(815);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-DROP TABLE IF EXISTS `v1`;
-/*!50001 DROP VIEW IF EXISTS `v1`*/;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `v1` (
- `id` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-
-USE `mysqldump_test_db`;
-/*!50001 DROP TABLE IF EXISTS `v1`*/;
-/*!50001 DROP VIEW IF EXISTS `v1`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = latin1 */;
-/*!50001 SET character_set_results = latin1 */;
-/*!50001 SET collation_connection = latin1_swedish_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `v1` AS select `t1`.`id` AS `id` from `t1` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-drop view v1;
-drop table t1;
-drop database mysqldump_test_db;
-#
-# Bug#30027 mysqldump does not dump views properly.
-#
-
-# Cleanup.
-DROP DATABASE IF EXISTS mysqldump_test_db;
-
-# Create objects.
-CREATE DATABASE mysqldump_test_db;
-set names koi8r;
-CREATE VIEW mysqldump_test_db.v2 AS SELECT 1 AS ËÏÌÏÎËÁ1;
-CREATE VIEW mysqldump_test_db.v1 AS SELECT ËÏÌÏÎËÁ1 FROM mysqldump_test_db.v2;
-set names latin1;
-
-# Dump mysqldump_test_db to bug30027.sql.
-
-# Drop mysqldump_test_db.
-DROP DATABASE mysqldump_test_db;
-
-# Restore mysqldump_test_db from bug30027.sql.
-
-# Check the view.
-set names utf8;
-SHOW CREATE VIEW mysqldump_test_db.v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqldump_test_db`.`v1` AS select `v2`.`колонка1` AS `колонка1` from `mysqldump_test_db`.`v2` koi8r koi8r_general_ci
-SHOW CREATE VIEW mysqldump_test_db.v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqldump_test_db`.`v2` AS select 1 AS `колонка1` koi8r koi8r_general_ci
-set names latin1;
-
-# Cleanup.
-DROP DATABASE mysqldump_test_db;
-#
-# Bug#29938 wrong behavior of mysqldump --skip-events
-# with --all-databases
-#
-TRUNCATE mysql.event;
-USE test;
-CREATE event e29938 ON SCHEDULE AT '2035-12-31 20:01:23' DO SET @bug29938=29938;
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-test e29938 root@localhost SYSTEM ONE TIME 2035-12-31 20:01:23 NULL NULL NULL NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-TRUNCATE mysql.event;
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-#
-# Bug#31113 mysqldump 5.1 can't handle a dash ("-") in database names
-#
-create database `test-database`;
-use `test-database`;
-create table test (a int);
-DROP TABLE IF EXISTS `test`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `test` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-LOCK TABLES `test` WRITE;
-/*!40000 ALTER TABLE `test` DISABLE KEYS */;
-/*!40000 ALTER TABLE `test` ENABLE KEYS */;
-UNLOCK TABLES;
-drop database `test-database`;
-use test;
-
-# -----------------------------------------------------------------
-# -- Bug#30217 Views: changes in metadata behaviour between 5.0 and 5.1.
-# -----------------------------------------------------------------
-
-DROP DATABASE IF EXISTS mysqldump_test_db;
-CREATE DATABASE mysqldump_test_db;
-use mysqldump_test_db;
-
-CREATE VIEW v1(x, y) AS SELECT 'a', 'a';
-
-SELECT view_definition
-FROM INFORMATION_SCHEMA.VIEWS
-WHERE table_schema = 'mysqldump_test_db' AND table_name = 'v1';
-view_definition
-select 'a' AS `x`,'a' AS `y`
-
----> Dumping mysqldump_test_db to bug30217.sql
-
-DROP DATABASE mysqldump_test_db;
-use test;
-
----> Restoring mysqldump_test_db...
-
-SELECT view_definition
-FROM INFORMATION_SCHEMA.VIEWS
-WHERE table_schema = 'mysqldump_test_db' AND table_name = 'v1';
-view_definition
-select 'a' AS `x`,'a' AS `y`
-
-DROP DATABASE mysqldump_test_db;
-
-# -- End of test case for Bug#32538.
-
-#
-# Bug#37377 Incorrect DROP TABLE statement in dump of a VIEW using --tab
-#
-create table t1 (a int);
-create view v1 as select a from t1;
-drop view v1;
-drop table t1;
-drop view v1;
-drop table t1;
-#
-# Bug#28071 mysqlimport does not quote or escape table name
-#
-drop table if exists `load`;
-create table `load` (a varchar(255));
-test.load: Records: 70 Deleted: 0 Skipped: 0 Warnings: 0
-select count(*) from `load`;
-count(*)
-70
-drop table `load`;
-SET @@GLOBAL.CONCURRENT_INSERT = @OLD_CONCURRENT_INSERT;
-
-Bug #34861 - mysqldump with --tab gives weird output for triggers.
-
-CREATE TABLE t1 (f1 INT);
-CREATE TRIGGER tr1 BEFORE UPDATE ON t1 FOR EACH ROW SET @f1 = 1;
-CREATE PROCEDURE pr1 () SELECT "Meow";
-CREATE EVENT ev1 ON SCHEDULE AT '2030-01-01 00:00:00' DO SELECT "Meow";
-
-SHOW TRIGGERS;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-tr1 UPDATE t1 SET @f1 = 1 BEFORE # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-test ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SELECT name,body FROM mysql.proc WHERE NAME = 'pr1';
-name body
-pr1 SELECT "Meow"
-
-dump table; if anything goes to stdout, it ends up here: ---------------
-
-drop everything
-DROP EVENT ev1;
-DROP TRIGGER tr1;
-DROP TABLE t1;
-DROP PROCEDURE pr1;
-
-reload table; this should restore table and trigger
-SHOW TRIGGERS;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-tr1 UPDATE t1 SET @f1 = 1 BEFORE # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-SELECT name,body FROM mysql.proc WHERE NAME = 'pr1';
-name body
-
-reload db; this should restore routines and events
-SHOW TRIGGERS;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-tr1 UPDATE t1 SET @f1 = 1 BEFORE # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW EVENTS;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-test ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SELECT name,body FROM mysql.proc WHERE NAME = 'pr1';
-name body
-pr1 SELECT "Meow"
-
-cleanup
-DROP EVENT IF EXISTS ev1;
-DROP PROCEDURE IF EXISTS pr1;
-DROP TRIGGER IF EXISTS tr1;
-DROP TABLE IF EXISTS t1;
-#
-# Bug #30946: mysqldump silently ignores --default-character-set
-# when used with --tab
-#
-# Also see outfile_loaddata.test
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a INT, b CHAR(10) CHARSET koi8r, c CHAR(10) CHARSET latin1);
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t1 VALUES (1, 'ABC-ÐБВ', 'DEF-ÂÃÄ'), (2, NULL, NULL);
-# error on multi-character ENCLOSED/ESCAPED BY
-# default '--default-charset' (binary):
-##################################################
-1 ABC-áâ÷ DEF-ÂÃÄ
-2 \N \N
-##################################################
-TRUNCATE t2;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary;
-SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
-a b c
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-# utf8:
-##################################################
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 \N \N
-##################################################
-TRUNCATE t2;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET utf8;
-SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
-a b c
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-# latin1 (data corruption is expected):
-##################################################
-1 ABC-??? DEF-ÂÃÄ
-2 \N \N
-##################################################
-TRUNCATE t2;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET latin1 ;
-SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
-a b c
-1 ABC-??? DEF-ÂÃÄ
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-# koi8r (data corruption is expected):
-##################################################
-1 ABC-áâ÷ DEF-???
-2 \N \N
-##################################################
-TRUNCATE t2;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET koi8r;
-SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
-a b c
-1 ABC-ÐБВ DEF-???
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-SET NAMES default;
-DROP TABLE t1, t2;
-#
-# Bug #53088: mysqldump with -T & --default-character-set set
-# truncates text/blob to 766 chars
-#
-# Also see outfile_loaddata.test
-#
-CREATE TABLE t1 (a BLOB) CHARSET latin1;
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t1 VALUES (REPEAT('.', 800));
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET latin1;
-# should be 800
-SELECT LENGTH(a) FROM t2;
-LENGTH(a)
-800
-DROP TABLE t1, t2;
-#
-# Bug #13618 : mysqldump --xml ommit comment on table field
-#
-CREATE TABLE `comment_table` (i INT COMMENT 'FIELD COMMENT') COMMENT = 'TABLE COMMENT';
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="test">
- <table_structure name="comment_table">
- <field Field="i" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="FIELD COMMENT" />
- </table_structure>
- <table_data name="comment_table">
- </table_data>
-</database>
-</mysqldump>
-DROP TABLE `comment_table`;
-#
-# BUG#11766310 : 59398: MYSQLDUMP 5.1 CAN'T HANDLE A DASH ("-") IN
-# DATABASE NAMES IN ALTER DATABASE
-#
-CREATE DATABASE `test-database`;
-USE `test-database`;
-CREATE TABLE `test` (`c1` VARCHAR(10)) ENGINE=MYISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-CREATE TRIGGER `trig` BEFORE INSERT ON `test` FOR EACH ROW BEGIN
-END |
-ALTER DATABASE `test-database` CHARACTER SET latin1 COLLATE latin1_swedish_ci;
-ALTER DATABASE `test-database` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `test` (
- `c1` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-ALTER DATABASE `test-database` CHARACTER SET latin1 COLLATE latin1_swedish_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `trig` BEFORE INSERT ON `test` FOR EACH ROW BEGIN
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `test-database` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-DROP DATABASE `test-database`;
-USE test;
-#
-# BUG#11760384 : 52792: mysqldump in XML mode does not dump routines.
-#
-CREATE DATABASE BUG52792;
-USE BUG52792;
-CREATE TABLE t1 (c1 INT, c2 VARCHAR(20));
-CREATE TABLE t2 (c1 INT);
-INSERT INTO t1 VALUES (1, 'aaa'), (2, 'bbb'), (3, 'ccc');
-INSERT INTO t2 VALUES (1),(2),(3);
-# Stored Procedures.
-CREATE PROCEDURE simpleproc1 (OUT param1 INT)
-BEGIN
-SELECT COUNT(*) INTO param1 FROM t1;
-END//
-CREATE PROCEDURE simpleproc2 (OUT param1 INT)
-BEGIN
-SELECT COUNT(*) INTO param1 FROM t2;
-END//
-# Events.
-CREATE EVENT e1 ON SCHEDULE EVERY 1 SECOND DO DROP DATABASE BUG52792;
-CREATE EVENT e2 ON SCHEDULE EVERY 1 SECOND DO DROP DATABASE BUG52792;
-# Functions.
-CREATE FUNCTION `hello1` (s CHAR(20))
-RETURNS CHAR(50) DETERMINISTIC
-RETURN CONCAT('Hello, ' ,s ,'!');
-CREATE FUNCTION `hello2` (s CHAR(20))
-RETURNS CHAR(50) DETERMINISTIC
-RETURN CONCAT(']]>, ' , s ,'!');
-# Triggers.
-CREATE TRIGGER trig1 BEFORE INSERT ON t2
-FOR EACH ROW BEGIN
-INSERT INTO t2 VALUES(1);
-END;
-|
-CREATE TRIGGER trig2 AFTER INSERT ON t2
-FOR EACH ROW BEGIN
-INSERT INTO t2 VALUES(1, ']]>');
-INSERT INTO t2 VALUES(2, '<![CDATA]]>');
-INSERT INTO t2 VALUES(3, '<![CDATA[');
-INSERT INTO t2 VALUES(4, '< > & \ " _');
-END;
-|
-# Views
-CREATE VIEW v1 AS SELECT * FROM t1;
-CREATE VIEW v2 AS SELECT * FROM t2;
-
-# Dumping BUG52792 database in xml format.
-
-# Running 'replace_regex on timestamp'
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="BUG52792">
- <table_structure name="t1">
- <field Field="c1" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <field Field="c2" Type="varchar(20)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <options Name="t1" Engine="MyISAM" Version="10" Row_format="Dynamic" Rows="3" Avg_row_length="20" Data_length="60" Max_data_length="281474976710655" Index_length="1024" Data_free="0" Create_time="--TIME--" Update_time="--TIME--" Collation="latin1_swedish_ci" Create_options="" Comment="" Max_index_length="17179868160" Temporary="N" />
- </table_structure>
- <table_data name="t1">
- <row>
- <field name="c1">1</field>
- <field name="c2">aaa</field>
- </row>
- <row>
- <field name="c1">2</field>
- <field name="c2">bbb</field>
- </row>
- <row>
- <field name="c1">3</field>
- <field name="c2">ccc</field>
- </row>
- </table_data>
- <table_structure name="t2">
- <field Field="c1" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <options Name="t2" Engine="MyISAM" Version="10" Row_format="Fixed" Rows="3" Avg_row_length="7" Data_length="21" Max_data_length="1970324836974591" Index_length="1024" Data_free="0" Create_time="--TIME--" Update_time="--TIME--" Collation="latin1_swedish_ci" Create_options="" Comment="" Max_index_length="17179868160" Temporary="N" />
- </table_structure>
- <table_data name="t2">
- <row>
- <field name="c1">1</field>
- </row>
- <row>
- <field name="c1">2</field>
- </row>
- <row>
- <field name="c1">3</field>
- </row>
- </table_data>
- <triggers name="t2">
- <trigger Trigger="trig1" sql_mode="" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci" Created="--TIME--">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` TRIGGER trig1 BEFORE INSERT ON t2
-FOR EACH ROW BEGIN
-INSERT INTO t2 VALUES(1);
-END
-]]>
- </trigger>
- <trigger Trigger="trig2" sql_mode="" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci" Created="--TIME--">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` TRIGGER trig2 AFTER INSERT ON t2
-FOR EACH ROW BEGIN
-INSERT INTO t2 VALUES(1, ']]]]><![CDATA[>');
-INSERT INTO t2 VALUES(2, '<![CDATA]]]]><![CDATA[>');
-INSERT INTO t2 VALUES(3, '<![CDATA[');
-INSERT INTO t2 VALUES(4, '< > & \ " _');
-END
-]]>
- </trigger>
- </triggers>
- <table_structure name="v1">
- <field Field="c1" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <field Field="c2" Type="varchar(20)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <options Name="v1" Comment="VIEW" />
- </table_structure>
- <table_structure name="v2">
- <field Field="c1" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <options Name="v2" Comment="VIEW" />
- </table_structure>
- <events>
- <event Event="e1" sql_mode="" time_zone="SYSTEM" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` EVENT `e1` ON SCHEDULE EVERY 1 SECOND STARTS '--TIME--' ON COMPLETION NOT PRESERVE ENABLE DO DROP DATABASE BUG52792
-]]>
- </event>
- <event Event="e2" sql_mode="" time_zone="SYSTEM" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` EVENT `e2` ON SCHEDULE EVERY 1 SECOND STARTS '--TIME--' ON COMPLETION NOT PRESERVE ENABLE DO DROP DATABASE BUG52792
-]]>
- </event>
- </events>
- <routines>
- <routine Function="hello1" sql_mode="" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` FUNCTION `hello1`(s CHAR(20)) RETURNS char(50) CHARSET latin1
- DETERMINISTIC
-RETURN CONCAT('Hello, ' ,s ,'!')
-]]>
- </routine>
- <routine Function="hello2" sql_mode="" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` FUNCTION `hello2`(s CHAR(20)) RETURNS char(50) CHARSET latin1
- DETERMINISTIC
-RETURN CONCAT(']]]]><![CDATA[>, ' , s ,'!')
-]]>
- </routine>
- <routine Procedure="simpleproc1" sql_mode="" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` PROCEDURE `simpleproc1`(OUT param1 INT)
-BEGIN
-SELECT COUNT(*) INTO param1 FROM t1;
-END
-]]>
- </routine>
- <routine Procedure="simpleproc2" sql_mode="" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` PROCEDURE `simpleproc2`(OUT param1 INT)
-BEGIN
-SELECT COUNT(*) INTO param1 FROM t2;
-END
-]]>
- </routine>
- </routines>
-</database>
-</mysqldump>
-
-# Dumping BUG52792 database in xml format with comments.
-
-# Running 'replace_regex on timestamp'
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="BUG52792">
-<!--
--
-- Table structure for table `t1`
--
-
- -->
- <table_structure name="t1">
- <field Field="c1" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <field Field="c2" Type="varchar(20)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <options Name="t1" Engine="MyISAM" Version="10" Row_format="Dynamic" Rows="3" Avg_row_length="20" Data_length="60" Max_data_length="281474976710655" Index_length="1024" Data_free="0" Create_time="--TIME--" Update_time="--TIME--" Collation="latin1_swedish_ci" Create_options="" Comment="" Max_index_length="17179868160" Temporary="N" />
- </table_structure>
-<!--
--
-- Dumping data for table `t1`
--
- -->
- <table_data name="t1">
- <row>
- <field name="c1">1</field>
- <field name="c2">aaa</field>
- </row>
- <row>
- <field name="c1">2</field>
- <field name="c2">bbb</field>
- </row>
- <row>
- <field name="c1">3</field>
- <field name="c2">ccc</field>
- </row>
- </table_data>
-<!--
--
-- Table structure for table `t2`
--
-
- -->
- <table_structure name="t2">
- <field Field="c1" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <options Name="t2" Engine="MyISAM" Version="10" Row_format="Fixed" Rows="3" Avg_row_length="7" Data_length="21" Max_data_length="1970324836974591" Index_length="1024" Data_free="0" Create_time="--TIME--" Update_time="--TIME--" Collation="latin1_swedish_ci" Create_options="" Comment="" Max_index_length="17179868160" Temporary="N" />
- </table_structure>
-<!--
--
-- Dumping data for table `t2`
--
- -->
- <table_data name="t2">
- <row>
- <field name="c1">1</field>
- </row>
- <row>
- <field name="c1">2</field>
- </row>
- <row>
- <field name="c1">3</field>
- </row>
- </table_data>
- <triggers name="t2">
- <trigger Trigger="trig1" sql_mode="" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci" Created="--TIME--">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` TRIGGER trig1 BEFORE INSERT ON t2
-FOR EACH ROW BEGIN
-INSERT INTO t2 VALUES(1);
-END
-]]>
- </trigger>
- <trigger Trigger="trig2" sql_mode="" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci" Created="--TIME--">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` TRIGGER trig2 AFTER INSERT ON t2
-FOR EACH ROW BEGIN
-INSERT INTO t2 VALUES(1, ']]]]><![CDATA[>');
-INSERT INTO t2 VALUES(2, '<![CDATA]]]]><![CDATA[>');
-INSERT INTO t2 VALUES(3, '<![CDATA[');
-INSERT INTO t2 VALUES(4, '< > & \ " _');
-END
-]]>
- </trigger>
- </triggers>
-<!--
--
-- Table structure for table `v1`
--
-
- -->
- <table_structure name="v1">
- <field Field="c1" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <field Field="c2" Type="varchar(20)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <options Name="v1" Comment="VIEW" />
- </table_structure>
-<!--
--
-- Table structure for table `v2`
--
-
- -->
- <table_structure name="v2">
- <field Field="c1" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <options Name="v2" Comment="VIEW" />
- </table_structure>
-<!--
--
-- Dumping events for database 'BUG52792'
--
- -->
- <events>
- <event Event="e1" sql_mode="" time_zone="SYSTEM" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` EVENT `e1` ON SCHEDULE EVERY 1 SECOND STARTS '--TIME--' ON COMPLETION NOT PRESERVE ENABLE DO DROP DATABASE BUG52792
-]]>
- </event>
- <event Event="e2" sql_mode="" time_zone="SYSTEM" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` EVENT `e2` ON SCHEDULE EVERY 1 SECOND STARTS '--TIME--' ON COMPLETION NOT PRESERVE ENABLE DO DROP DATABASE BUG52792
-]]>
- </event>
- </events>
-<!--
--
-- Dumping routines for database 'BUG52792'
--
- -->
- <routines>
- <routine Function="hello1" sql_mode="" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` FUNCTION `hello1`(s CHAR(20)) RETURNS char(50) CHARSET latin1
- DETERMINISTIC
-RETURN CONCAT('Hello, ' ,s ,'!')
-]]>
- </routine>
- <routine Function="hello2" sql_mode="" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` FUNCTION `hello2`(s CHAR(20)) RETURNS char(50) CHARSET latin1
- DETERMINISTIC
-RETURN CONCAT(']]]]><![CDATA[>, ' , s ,'!')
-]]>
- </routine>
- <routine Procedure="simpleproc1" sql_mode="" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` PROCEDURE `simpleproc1`(OUT param1 INT)
-BEGIN
-SELECT COUNT(*) INTO param1 FROM t1;
-END
-]]>
- </routine>
- <routine Procedure="simpleproc2" sql_mode="" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` PROCEDURE `simpleproc2`(OUT param1 INT)
-BEGIN
-SELECT COUNT(*) INTO param1 FROM t2;
-END
-]]>
- </routine>
- </routines>
-</database>
-</mysqldump>
-
-# Test to check 'Insufficient privileges' error.
-
-GRANT ALL PRIVILEGES ON BUG52792.* TO user1;
-connect conn_1, localhost, user1, , BUG52792, $MASTER_MYPORT, $MASTER_MYSOCK;
-connection conn_1;
-# Running 'replace_regex on timestamp'
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="BUG52792">
- <table_structure name="t1">
- <field Field="c1" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <field Field="c2" Type="varchar(20)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <options Name="t1" Engine="MyISAM" Version="10" Row_format="Dynamic" Rows="3" Avg_row_length="20" Data_length="60" Max_data_length="281474976710655" Index_length="1024" Data_free="0" Create_time="--TIME--" Update_time="--TIME--" Collation="latin1_swedish_ci" Create_options="" Comment="" Max_index_length="17179868160" Temporary="N" />
- </table_structure>
- <table_data name="t1">
- <row>
- <field name="c1">1</field>
- <field name="c2">aaa</field>
- </row>
- <row>
- <field name="c1">2</field>
- <field name="c2">bbb</field>
- </row>
- <row>
- <field name="c1">3</field>
- <field name="c2">ccc</field>
- </row>
- </table_data>
- <table_structure name="t2">
- <field Field="c1" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <options Name="t2" Engine="MyISAM" Version="10" Row_format="Fixed" Rows="3" Avg_row_length="7" Data_length="21" Max_data_length="1970324836974591" Index_length="1024" Data_free="0" Create_time="--TIME--" Update_time="--TIME--" Collation="latin1_swedish_ci" Create_options="" Comment="" Max_index_length="17179868160" Temporary="N" />
- </table_structure>
- <table_data name="t2">
- <row>
- <field name="c1">1</field>
- </row>
- <row>
- <field name="c1">2</field>
- </row>
- <row>
- <field name="c1">3</field>
- </row>
- </table_data>
- <triggers name="t2">
- <trigger Trigger="trig1" sql_mode="" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci" Created="--TIME--">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` TRIGGER trig1 BEFORE INSERT ON t2
-FOR EACH ROW BEGIN
-INSERT INTO t2 VALUES(1);
-END
-]]>
- </trigger>
- <trigger Trigger="trig2" sql_mode="" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci" Created="--TIME--">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` TRIGGER trig2 AFTER INSERT ON t2
-FOR EACH ROW BEGIN
-INSERT INTO t2 VALUES(1, ']]]]><![CDATA[>');
-INSERT INTO t2 VALUES(2, '<![CDATA]]]]><![CDATA[>');
-INSERT INTO t2 VALUES(3, '<![CDATA[');
-INSERT INTO t2 VALUES(4, '< > & \ " _');
-END
-]]>
- </trigger>
- </triggers>
- <table_structure name="v1">
- <field Field="c1" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <field Field="c2" Type="varchar(20)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <options Name="v1" Comment="VIEW" />
- </table_structure>
- <table_structure name="v2">
- <field Field="c1" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <options Name="v2" Comment="VIEW" />
- </table_structure>
- <events>
- <event Event="e1" sql_mode="" time_zone="SYSTEM" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` EVENT `e1` ON SCHEDULE EVERY 1 SECOND STARTS '--TIME--' ON COMPLETION NOT PRESERVE ENABLE DO DROP DATABASE BUG52792
-]]>
- </event>
- <event Event="e2" sql_mode="" time_zone="SYSTEM" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` EVENT `e2` ON SCHEDULE EVERY 1 SECOND STARTS '--TIME--' ON COMPLETION NOT PRESERVE ENABLE DO DROP DATABASE BUG52792
-]]>
- </event>
- </events>
- <routines>
-<!--
-- insufficient privileges to SHOW CREATE FUNCTION `hello1`
- -->
-<!-- - does user1 have permissions on mysql.proc?
-
- -->
-connection default;
-disconnect conn_1;
-DROP USER user1;
-DROP DATABASE BUG52792;
-# UTF-8
-CREATE DATABASE BUG52792;
-USE BUG52792;
-SET NAMES utf8;
-CREATE FUNCTION `straße` ( c1 CHAR(20))
-RETURNS CHAR(50) DETERMINISTIC
-RETURN CONCAT(']]>, ', s, '!');
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="BUG52792">
- <routines>
- <routine Function="straße" sql_mode="" character_set_client="utf8" collation_connection="utf8_general_ci" Database_Collation="latin1_swedish_ci">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` FUNCTION `straße`( c1 CHAR(20)) RETURNS char(50) CHARSET latin1
- DETERMINISTIC
-RETURN CONCAT(']]]]><![CDATA[>, ', s, '!')
-]]>
- </routine>
- </routines>
-</database>
-</mysqldump>
-DROP DATABASE BUG52792;
-USE test;
-#
-# End of 5.1 tests
-#
-#
-# Verify that two modes can be given in --compatible;
-# and are reflected in SET SQL_MODE in the mysqldump output.
-# Also verify that a prefix of the mode's name is enough.
-#
-CREATE TABLE t1 (a INT);
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,NO_TABLE_OPTIONS,NO_FIELD_OPTIONS' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-);
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE t1;
-#
-# Bug#12809202 61854: MYSQLDUMP --SINGLE-TRANSACTION --FLUSH-LOG BREAKS
-# CONSISTENCY
-#
-DROP DATABASE IF EXISTS b12809202_db;
-CREATE DATABASE b12809202_db;
-CREATE TABLE b12809202_db.t1 (c1 INT);
-CREATE TABLE b12809202_db.t2 (c1 INT);
-INSERT INTO b12809202_db.t1 VALUES (1), (2), (3);
-INSERT INTO b12809202_db.t2 VALUES (1), (2), (3);
-# Starting mysqldump with --single-transaction & --flush-logs options..
-# Note : In the following dump the transaction
-# should start only after the logs are
-# flushed, as 'flush logs' causes implicit
-# commit starting 5.5.
-
-#### Dump starts here ####
--- Connecting to localhost...
--- main : logs flushed successfully!
--- Starting transaction...
--- Setting savepoint...
--- Retrieving table structure for table t1...
--- Sending SELECT query...
--- Retrieving rows...
--- Rolling back to savepoint sp...
--- Retrieving table structure for table t2...
--- Sending SELECT query...
--- Retrieving rows...
--- Rolling back to savepoint sp...
--- Releasing savepoint...
--- Disconnecting from localhost...
-
-#### Dump ends here ####
-DROP TABLE b12809202_db.t1;
-DROP TABLE b12809202_db.t2;
-DROP DATABASE b12809202_db;
-#
-# Delete all existing binary logs.
-#
-RESET MASTER;
-#
-# Bug#45740 MYSQLDUMP DOESN'T DUMP GENERAL_LOG AND SLOW_QUERY CAUSES RESTORE PROBLEM
-#
-SET @old_log_output_state= @@global.log_output;
-SET @old_general_log_state= @@global.general_log;
-SET @old_slow_query_log_state= @@global.slow_query_log;
-call mtr.add_suppression("Failed to write to mysql.general_log");
-SET @@global.log_output="TABLE";
-SET @@global.general_log='OFF';
-SET @@global.slow_query_log='OFF';
-DROP DATABASE mysql;
-SHOW CREATE TABLE mysql.general_log;
-Table Create Table
-general_log CREATE TABLE `general_log` (
- `event_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `command_type` varchar(64) NOT NULL,
- `argument` mediumtext NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log'
-SHOW CREATE TABLE mysql.slow_log;
-Table Create Table
-slow_log CREATE TABLE `slow_log` (
- `start_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `query_time` time(6) NOT NULL,
- `lock_time` time(6) NOT NULL,
- `rows_sent` int(11) NOT NULL,
- `rows_examined` int(11) NOT NULL,
- `db` varchar(512) NOT NULL,
- `last_insert_id` int(11) NOT NULL,
- `insert_id` int(11) NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `sql_text` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `rows_affected` int(11) NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log'
-SET @@global.log_output= @old_log_output_state;
-SET @@global.slow_query_log= @old_slow_query_log_state;
-SET @@global.general_log= @old_general_log_state;
-# MDEV-5481 mysqldump fails to dump geometry types properly
-create table t1 (g GEOMETRY) CHARSET koi8r;
-create table t2 (g GEOMETRY) CHARSET koi8r;
-insert into t1 values (point(1,1)), (point(2,2));
-##################################################
-\0\0\0\0\0\0\0\0\0\0\0\0\0ð?\0\0\0\0\0\0ð?
-\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@
-##################################################
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET koi8r;
-select astext(g) from t2;
-astext(g)
-POINT(1 1)
-POINT(2 2)
-drop table t1, t2;
-#
-# End of 5.1 tests
-#
-#
-# Bug #20772273 : MYSQLIMPORT --USE-THREADS DOESN'T USE MULTIPLE THREADS
-#
-CREATE DATABASE db_20772273;
-USE db_20772273;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (1), (2);
-CREATE TABLE t2(a INT);
-INSERT INTO t2 VALUES (3), (4);
-SELECT * FROM t1;
-a
-1
-2
-SELECT * FROM t2;
-a
-3
-4
-SELECT * FROM t1;
-a
-1
-2
-SELECT * FROM t2;
-a
-3
-4
-DROP TABLE t1;
-DROP TABLE t2;
-DROP DATABASE db_20772273;
-USE test;
-#
-# Bug #25717383: MYSQLDUMP MAY EXECUTE ANY ARBITRARY QUERY
-#
-CREATE DATABASE bug25717383;
-use bug25717383;
-CREATE TABLE `tab
-one` (a int);
-CREATE VIEW `view
-one` as SELECT * FROM `tab
-one`;
-CREATE PROCEDURE `proc
-one`() SELECT * from `tab
-one`;
-CREATE TEMPORARY TABLE `temp
-one` (id INT);
-CREATE TRIGGER `trig
-one` BEFORE INSERT ON `tab
-one` FOR EACH ROW SET NEW.a = 1;
-CREATE EVENT `event
-one` ON SCHEDULE AT '2030-01-01 00:00:00' DO SET @a=5;
-SHOW TABLES FROM bug25717383;
-Tables_in_bug25717383
-tab
-one
-view
-one
-SHOW TRIGGERS FROM bug25717383;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trig
-one INSERT tab
-one SET NEW.a = 1 BEFORE # root@localhost utf8 utf8_general_ci latin1_swedish_ci
-SHOW EVENTS FROM bug25717383;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-bug25717383 event
-one root@localhost SYSTEM ONE TIME # NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci latin1_swedish_ci
-SELECT ROUTINE_NAME FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA='bug25717383' AND ROUTINE_TYPE= 'PROCEDURE'
- ORDER BY ROUTINE_NAME;
-ROUTINE_NAME
-proc
-one
-SHOW TABLES FROM bug25717383;
-Tables_in_bug25717383
-tab
-one
-view
-one
-SHOW TRIGGERS FROM bug25717383;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trig
-one INSERT tab
-one SET NEW.a = 1 BEFORE # root@localhost utf8 utf8_general_ci latin1_swedish_ci
-SHOW EVENTS FROM bug25717383;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-bug25717383 event
-one root@localhost SYSTEM ONE TIME # NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci latin1_swedish_ci
-SELECT ROUTINE_NAME FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA='bug25717383' AND ROUTINE_TYPE= 'PROCEDURE'
- ORDER BY ROUTINE_NAME;
-ROUTINE_NAME
-proc
-one
-DROP DATABASE bug25717383;
-Usage: mysqldump [OPTIONS] database [tables]
-OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]
-OR mysqldump [OPTIONS] --all-databases [OPTIONS]
-For more options, use mysqldump --help
-#
-# MDEV-9001 - [PATCH] Fix DB name quoting in mysqldump --routine
-#
-CREATE DATABASE `a\"'``b`;
-USE `a\"'``b`;
-CREATE PROCEDURE p1() BEGIN END;
-ALTER DATABASE `a\"'``b` COLLATE utf8_general_ci;
-ALTER DATABASE `a\"'``b` CHARACTER SET latin1 COLLATE latin1_swedish_ci ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8 */ ;
-/*!50003 SET character_set_results = utf8 */ ;
-/*!50003 SET collation_connection = utf8_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`()
-BEGIN END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-ALTER DATABASE `a\"'``b` CHARACTER SET utf8 COLLATE utf8_general_ci ;
-DROP DATABASE `a\"'``b`;
-use test;
-#
-# Test mysqldump with --disable-query-logs
-#
-create table t1 (a int);
-insert into t1 values (1);
-drop table t1;
-select * from t1;
-a
-1
-drop table t1;
-#
-# MDEV-9124 mysqldump does not dump data if table name is same as view earlier on
-#
-CREATE DATABASE db1 CHARSET=utf8;
-CREATE DATABASE db2 CHARSET=utf8;
-USE db2;
-CREATE TABLE nonunique_table_name (i1 serial) ENGINE=MEMORY;
-INSERT INTO nonunique_table_name VALUES (1),(2);
-CREATE TABLE nonunique_table_view_name (i2 int) ENGINE=InnoDB;
-INSERT INTO nonunique_table_view_name VALUES (3),(4);
-use db1;
-CREATE TABLE basetable (id smallint) ENGINE=MyISAM;
-CREATE TABLE nonunique_table_name (i3 smallint) ENGINE=MERGE UNION (basetable) INSERT_METHOD=LAST;
-INSERT INTO nonunique_table_name VALUES (5),(6);
-CREATE VIEW nonunique_table_view_name AS SELECT 1;
-
-##################################################
-# --compact --databases db1 db2
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `db1` /*!40100 DEFAULT CHARACTER SET utf8 */;
-
-USE `db1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `basetable` (
- `id` smallint(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `basetable` VALUES (5),(6);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `nonunique_table_name` (
- `i3` smallint(6) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=utf8 INSERT_METHOD=LAST UNION=(`basetable`);
-/*!40101 SET character_set_client = @saved_cs_client */;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `nonunique_table_view_name` (
- `1` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `db2` /*!40100 DEFAULT CHARACTER SET utf8 */;
-
-USE `db2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `nonunique_table_name` (
- `i1` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- UNIQUE KEY `i1` (`i1`)
-) ENGINE=MEMORY AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `nonunique_table_name` VALUES (1),(2);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `nonunique_table_view_name` (
- `i2` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `nonunique_table_view_name` VALUES (3),(4);
-
-USE `db1`;
-/*!50001 DROP TABLE IF EXISTS `nonunique_table_view_name`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = utf8 */;
-/*!50001 SET character_set_results = utf8 */;
-/*!50001 SET collation_connection = utf8_general_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `nonunique_table_view_name` AS select 1 AS `1` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-
-USE `db2`;
-
-##################################################
-# --compact db2
-
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `nonunique_table_name` (
- `i1` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- UNIQUE KEY `i1` (`i1`)
-) ENGINE=MEMORY AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `nonunique_table_name` VALUES (1),(2);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `nonunique_table_view_name` (
- `i2` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `nonunique_table_view_name` VALUES (3),(4);
-
-##################################################
-# --compact --delayed-insert --no-data-med=0 --databases db2 db1
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `db2` /*!40100 DEFAULT CHARACTER SET utf8 */;
-
-USE `db2`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `nonunique_table_name` (
- `i1` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- UNIQUE KEY `i1` (`i1`)
-) ENGINE=MEMORY AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT DELAYED INTO `nonunique_table_name` VALUES (1),(2);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `nonunique_table_view_name` (
- `i2` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `nonunique_table_view_name` VALUES (3),(4);
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `db1` /*!40100 DEFAULT CHARACTER SET utf8 */;
-
-USE `db1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `basetable` (
- `id` smallint(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT DELAYED INTO `basetable` VALUES (5),(6);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `nonunique_table_name` (
- `i3` smallint(6) DEFAULT NULL
-) ENGINE=MRG_MyISAM DEFAULT CHARSET=utf8 INSERT_METHOD=LAST UNION=(`basetable`);
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `nonunique_table_name` VALUES (5),(6);
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `nonunique_table_view_name` (
- `1` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-
-USE `db2`;
-
-USE `db1`;
-/*!50001 DROP TABLE IF EXISTS `nonunique_table_view_name`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = utf8 */;
-/*!50001 SET character_set_results = utf8 */;
-/*!50001 SET collation_connection = utf8_general_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `nonunique_table_view_name` AS select 1 AS `1` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-
-DROP DATABASE db1;
-DROP DATABASE db2;
-FOUND 1 /Database: mysql/ in bug11505.sql
-#
-# Test for --add-drop-trigger
-#
-use test;
-CREATE TABLE t1 (a int, b int);
-CREATE TRIGGER tt1_t1 BEFORE INSERT ON t1 FOR EACH ROW
-SET NEW.b=NEW.a + 10;
-INSERT INTO t1 (a) VALUES (1),(2),(3);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
-
-USE `test`;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8 */ ;
-/*!50003 SET character_set_results = utf8 */ ;
-/*!50003 SET collation_connection = utf8_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = '' */ ;
-/*!50032 DROP TRIGGER IF EXISTS tt1_t1 */;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER tt1_t1 BEFORE INSERT ON t1 FOR EACH ROW
-SET NEW.b=NEW.a + 10 */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-DROP TABLE t1;
-#
-# Test for Invisible columns
-#
-create database d;
-use d;
-# Invisble field table
-create table t1(a int , b int invisible);
-insert into t1 values(1);
-insert into t1(a,b) values(1,2);
-# not invisible field table --complete-insert wont be used
-create table t2(a int , b int);
-insert into t2(a,b) values(1,2);
-insert into t2(a,b) values(1,2);
-# Invisble field table
-create table t3(invisible int , `a b c & $!@#$%^&*( )` int invisible default 4, `ds=~!@ \# $% ^ & * ( ) _ - = +` int invisible default 5);
-insert into t3 values(1);
-insert into t3 values(5);
-insert into t3 values(2);
-insert into t3(`invisible`, `a b c & $!@#$%^&*( )`, `ds=~!@ \# $% ^ & * ( ) _ - = +` ) values(1,2,3);
-CREATE TABLE t4(ËÃÃŒÃÎËÃ1 INT);
-insert into t4 values(1);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) INVISIBLE DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t1` (`a`, `b`) VALUES (1,NULL),(1,2);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t2` VALUES (1,2),(1,2);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t3` (
- `invisible` int(11) DEFAULT NULL,
- `a b c & $!@#$%^&*( )` int(11) INVISIBLE DEFAULT 4,
- `ds=~!@ \# $% ^ & * ( ) _ - = +` int(11) INVISIBLE DEFAULT 5
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t3` (`invisible`, `a b c & $!@#$%^&*( )`, `ds=~!@ \# $% ^ & * ( ) _ - = +`) VALUES (1,4,5),(5,4,5),(2,4,5),(1,2,3);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t4` (
- `ËÃÃŒÃÎËÃ1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t4` VALUES (1);
-#Check side effect on --complete insert
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) INVISIBLE DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t1` (`a`, `b`) VALUES (1,NULL),(1,2);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t2` (`a`, `b`) VALUES (1,2),(1,2);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t3` (
- `invisible` int(11) DEFAULT NULL,
- `a b c & $!@#$%^&*( )` int(11) INVISIBLE DEFAULT 4,
- `ds=~!@ \# $% ^ & * ( ) _ - = +` int(11) INVISIBLE DEFAULT 5
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t3` (`invisible`, `a b c & $!@#$%^&*( )`, `ds=~!@ \# $% ^ & * ( ) _ - = +`) VALUES (1,4,5),(5,4,5),(2,4,5),(1,2,3);
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t4` (
- `ËÃÃŒÃÎËÃ1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-INSERT INTO `t4` (`ËÃÃŒÃÎËÃ1`) VALUES (1);
-#Check xml
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="d">
- <table_structure name="t1">
- <field Field="a" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <field Field="b" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="INVISIBLE" Comment="" />
- </table_structure>
- <table_data name="t1">
- <row>
- <field name="a">1</field>
- <field name="b" xsi:nil="true" />
- </row>
- <row>
- <field name="a">1</field>
- <field name="b">2</field>
- </row>
- </table_data>
- <table_structure name="t2">
- <field Field="a" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <field Field="b" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- </table_structure>
- <table_data name="t2">
- <row>
- <field name="a">1</field>
- <field name="b">2</field>
- </row>
- <row>
- <field name="a">1</field>
- <field name="b">2</field>
- </row>
- </table_data>
- <table_structure name="t3">
- <field Field="invisible" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- <field Field="a b c &amp; $!@#$%^&amp;*( )" Type="int(11)" Null="YES" Key="" Default="4" Extra="INVISIBLE" Comment="" />
- <field Field="ds=~!@ \# $% ^ &amp; * ( ) _ - = +" Type="int(11)" Null="YES" Key="" Default="5" Extra="INVISIBLE" Comment="" />
- </table_structure>
- <table_data name="t3">
- <row>
- <field name="invisible">1</field>
- <field name="a b c &amp; $!@#$%^&amp;*( )">4</field>
- <field name="ds=~!@ \# $% ^ &amp; * ( ) _ - = +">5</field>
- </row>
- <row>
- <field name="invisible">5</field>
- <field name="a b c &amp; $!@#$%^&amp;*( )">4</field>
- <field name="ds=~!@ \# $% ^ &amp; * ( ) _ - = +">5</field>
- </row>
- <row>
- <field name="invisible">2</field>
- <field name="a b c &amp; $!@#$%^&amp;*( )">4</field>
- <field name="ds=~!@ \# $% ^ &amp; * ( ) _ - = +">5</field>
- </row>
- <row>
- <field name="invisible">1</field>
- <field name="a b c &amp; $!@#$%^&amp;*( )">2</field>
- <field name="ds=~!@ \# $% ^ &amp; * ( ) _ - = +">3</field>
- </row>
- </table_data>
- <table_structure name="t4">
- <field Field="ËÃÃŒÃÎËÃ1" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
- </table_structure>
- <table_data name="t4">
- <row>
- <field name="ËÃÃŒÃÎËÃ1">1</field>
- </row>
- </table_data>
-</database>
-</mysqldump>
-DROP table t1,t2,t3;
-select * from t1;
-a
-1
-1
-select a,b from t1;
-a b
-1 NULL
-1 2
-select * from t2;
-a b
-1 2
-1 2
-select * from t3;
-invisible
-1
-5
-2
-1
-desc t3;
-Field Type Null Key Default Extra
-invisible int(11) YES NULL
-a b c & $!@#$%^&*( ) int(11) YES 4 INVISIBLE
-ds=~!@ \# $% ^ & * ( ) _ - = + int(11) YES 5 INVISIBLE
-drop database d;
diff --git a/mysql-test/r/mysqldump_restore.result b/mysql-test/r/mysqldump_restore.result
deleted file mode 100644
index 9eac8b253de..00000000000
--- a/mysql-test/r/mysqldump_restore.result
+++ /dev/null
@@ -1,110 +0,0 @@
-# Set concurrent_insert = 0 to prevent random errors
-# will reset to original value at the end of the test
-SET @old_concurrent_insert = @@global.concurrent_insert;
-SET @@global.concurrent_insert = 0;
-# Pre-test cleanup
-DROP TABLE IF EXISTS t1;
-# Begin tests
-#
-# Bug#2005 Long decimal comparison bug.
-#
-CREATE TABLE t1 (a DECIMAL(64, 20));
-INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"),
-("0987654321098765432109876543210987654321");
-# Begin testing mysqldump output + restore
-# Create 'original table name - <table>_orig
-SET @orig_table_name = CONCAT('test.t1', '_orig');
-# Rename original table
-ALTER TABLE test.t1 RENAME to test.t1_orig;
-# Recreate table from mysqldump output
-# Compare original and recreated tables
-# Recreated table: test.t1
-# Original table: test.t1_orig
-include/diff_tables.inc [test.t1, test.t1_orig]
-# Cleanup
-DROP TABLE test.t1, test.t1_orig;
-#
-# Bug#3361 mysqldump quotes DECIMAL values inconsistently
-#
-CREATE TABLE t1 (a DECIMAL(10,5), b FLOAT);
-INSERT INTO t1 VALUES (1.2345, 2.3456);
-INSERT INTO t1 VALUES ('1.2345', 2.3456);
-INSERT INTO t1 VALUES ("1.2345", 2.3456);
-SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ANSI_QUOTES';
-INSERT INTO t1 VALUES (1.2345, 2.3456);
-INSERT INTO t1 VALUES ('1.2345', 2.3456);
-INSERT INTO t1 VALUES ("1.2345", 2.3456);
-ERROR 42S22: Unknown column '1.2345' in 'field list'
-SET SQL_MODE=@OLD_SQL_MODE;
-# Begin testing mysqldump output + restore
-# Create 'original table name - <table>_orig
-SET @orig_table_name = CONCAT('test.t1', '_orig');
-# Rename original table
-ALTER TABLE test.t1 RENAME to test.t1_orig;
-# Recreate table from mysqldump output
-# Compare original and recreated tables
-# Recreated table: test.t1
-# Original table: test.t1_orig
-include/diff_tables.inc [test.t1, test.t1_orig]
-# Cleanup
-DROP TABLE test.t1, test.t1_orig;
-#
-# Bug#1994 mysqldump does not correctly dump UCS2 data
-# Bug#4261 mysqldump 10.7 (mysql 4.1.2) --skip-extended-insert drops NULL from inserts
-#
-CREATE TABLE t1 (a VARCHAR(255)) DEFAULT CHARSET koi8r;
-INSERT INTO t1 VALUES (_koi8r x'C1C2C3C4C5'), (NULL);
-# Begin testing mysqldump output + restore
-# Create 'original table name - <table>_orig
-SET @orig_table_name = CONCAT('test.t1', '_orig');
-# Rename original table
-ALTER TABLE test.t1 RENAME to test.t1_orig;
-# Recreate table from mysqldump output
-# Compare original and recreated tables
-# Recreated table: test.t1
-# Original table: test.t1_orig
-include/diff_tables.inc [test.t1, test.t1_orig]
-# Cleanup
-DROP TABLE test.t1, test.t1_orig;
-#
-# WL#2319 Exclude Tables from dump
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t2 VALUES (4),(5),(6);
-# Begin testing mysqldump output + restore
-# Create 'original table name - <table>_orig
-SET @orig_table_name = CONCAT('test.t2', '_orig');
-# Rename original table
-ALTER TABLE test.t2 RENAME to test.t2_orig;
-# Recreate table from mysqldump output
-# Compare original and recreated tables
-# Recreated table: test.t2
-# Original table: test.t2_orig
-include/diff_tables.inc [test.t2, test.t2_orig]
-# Cleanup
-DROP TABLE test.t2, test.t2_orig;
-DROP TABLE t1;
-#
-# Bug#8830 mysqldump --skip-extended-insert causes --hex-blob to dump wrong values
-#
-CREATE TABLE t1 (`b` blob);
-INSERT INTO `t1` VALUES (0x602010000280100005E71A);
-# Begin testing mysqldump output + restore
-# Create 'original table name - <table>_orig
-SET @orig_table_name = CONCAT('test.t1', '_orig');
-# Rename original table
-ALTER TABLE test.t1 RENAME to test.t1_orig;
-# Recreate table from mysqldump output
-# Compare original and recreated tables
-# Recreated table: test.t1
-# Original table: test.t1_orig
-include/diff_tables.inc [test.t1, test.t1_orig]
-# Cleanup
-DROP TABLE test.t1, test.t1_orig;
-# End tests
-# Cleanup
-# Reset concurrent_insert to its original value
-SET @@global.concurrent_insert = @old_concurrent_insert;
-# remove mysqldumpfile
diff --git a/mysql-test/r/mysqlhotcopy_myisam.result b/mysql-test/r/mysqlhotcopy_myisam.result
deleted file mode 100644
index 6080697a7a1..00000000000
--- a/mysql-test/r/mysqlhotcopy_myisam.result
+++ /dev/null
@@ -1,164 +0,0 @@
-DROP DATABASE IF EXISTS hotcopy_test;
-CREATE DATABASE hotcopy_test;
-USE hotcopy_test;
-CREATE TABLE t1 (c1 int, c2 varchar(20)) ENGINE=MyISAM;
-CREATE TABLE t2 (c1 int, c2 varchar(20)) ENGINE=MyISAM;
-CREATE TABLE t3 (c1 int, c2 varchar(20)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'aaaaaaaaaaaaaaaaaaaa'),(2, 'bbbbbbbbbbbbbbbbbbbbbbb');
-Warnings:
-Warning 1406 Data too long for column 'c2' at row 2
-INSERT INTO t2 VALUES (1,'aaaaaaaaaaaaaaaaaaaa'),(2, 'bbbbbbbbbbbbbbbbbbbbbbb');
-Warnings:
-Warning 1406 Data too long for column 'c2' at row 2
-INSERT INTO t3 VALUES (1,'aaaaaaaaaaaaaaaaaaaa'),(2, 'bbbbbbbbbbbbbbbbbbbbbbb');
-Warnings:
-Warning 1406 Data too long for column 'c2' at row 2
-db.opt
-t1.MYD
-t1.MYI
-t1.frm
-t2.MYD
-t2.MYI
-t2.frm
-t3.MYD
-t3.MYI
-t3.frm
-db.opt
-t1.MYD
-t1.MYI
-t1.frm
-t2.MYD
-t2.MYI
-t2.frm
-t3.MYD
-t3.MYI
-t3.frm
-USE hotcopy_save;
-SELECT * FROM t1;
-c1 c2
-1 aaaaaaaaaaaaaaaaaaaa
-2 bbbbbbbbbbbbbbbbbbbb
-SELECT * FROM t2;
-c1 c2
-1 aaaaaaaaaaaaaaaaaaaa
-2 bbbbbbbbbbbbbbbbbbbb
-SELECT * FROM t3;
-c1 c2
-1 aaaaaaaaaaaaaaaaaaaa
-2 bbbbbbbbbbbbbbbbbbbb
-USE hotcopy_test;
-DELETE FROM t1;
-SELECT * FROM t1;
-c1 c2
-USE hotcopy_save;
-SELECT * FROM t1;
-c1 c2
-1 aaaaaaaaaaaaaaaaaaaa
-2 bbbbbbbbbbbbbbbbbbbb
-SELECT * FROM t2;
-c1 c2
-1 aaaaaaaaaaaaaaaaaaaa
-2 bbbbbbbbbbbbbbbbbbbb
-SELECT * FROM t3;
-c1 c2
-1 aaaaaaaaaaaaaaaaaaaa
-2 bbbbbbbbbbbbbbbbbbbb
-USE hotcopy_test;
-DROP TABLE t2;
-db.opt
-t1.MYD
-t1.MYI
-t1.frm
-t3.MYD
-t3.MYI
-t3.frm
-FLUSH TABLES;
-SELECT * FROM t1;
-c1 c2
-1 aaaaaaaaaaaaaaaaaaaa
-2 bbbbbbbbbbbbbbbbbbbb
-SELECT * FROM t2;
-c1 c2
-1 aaaaaaaaaaaaaaaaaaaa
-2 bbbbbbbbbbbbbbbbbbbb
-SELECT * FROM t3;
-c1 c2
-1 aaaaaaaaaaaaaaaaaaaa
-2 bbbbbbbbbbbbbbbbbbbb
-USE hotcopy_test;
-db.opt
-t1.MYD
-t1.MYI
-t1.frm
-t2.MYD
-t2.MYI
-t2.frm
-t3.MYD
-t3.MYI
-t3.frm
-DROP DATABASE hotcopy_save;
-db.opt
-t1.MYD
-t1.MYI
-t1.frm
-t2.MYD
-t2.MYI
-t2.frm
-t3.MYD
-t3.MYI
-t3.frm
-DROP DATABASE hotcopy_save;
-db.opt
-t1.MYD
-t1.MYI
-t1.frm
-t2.MYD
-t2.MYI
-t2.frm
-t3.MYD
-t3.MYI
-t3.frm
-db.opt
-t1.MYD
-t1.MYI
-t1.frm
-t2.MYD
-t2.MYI
-t2.frm
-t3.MYD
-t3.MYI
-t3.frm
-db.opt
-t1.MYD
-t1.MYI
-t1.frm
-t2.MYD
-t2.MYI
-t2.frm
-t3.MYD
-t3.MYI
-t3.frm
-db.opt
-t1.MYD
-t1.MYI
-t1.frm
-t2.MYD
-t2.MYI
-t2.frm
-t3.MYD
-t3.MYI
-t3.frm
-db.opt
-t1.MYD
-t1.MYI
-t1.frm
-t2.MYD
-t2.MYI
-t2.frm
-t3.MYD
-t3.MYI
-t3.frm
-DROP DATABASE hotcopy_test_cpy;
-DROP DATABASE hotcopy_test;
-DROP DATABASE hotcopy_save;
-DROP DATABASE hotcopy_save_old;
diff --git a/mysql-test/r/mysqlshow.result b/mysql-test/r/mysqlshow.result
deleted file mode 100644
index 609fb771bb8..00000000000
--- a/mysql-test/r/mysqlshow.result
+++ /dev/null
@@ -1,78 +0,0 @@
-DROP TABLE IF EXISTS t1,t2,test1,test2;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1),(2),(3);
-CREATE TABLE t2 (a int, b int);
-show tables;
-Tables_in_test
-t1
-t2
-select "--------------------" as "";
-
---------------------
-Database: test
-+--------+
-| Tables |
-+--------+
-| t1 |
-| t2 |
-+--------+
-select "---- -v ------------" as "";
-
----- -v ------------
-Database: test
-+--------+----------+
-| Tables | Columns |
-+--------+----------+
-| t1 | 1 |
-| t2 | 2 |
-+--------+----------+
-2 rows in set.
-
-select "---- -v -v ---------" as "";
-
----- -v -v ---------
-Database: test
-+--------+----------+------------+
-| Tables | Columns | Total Rows |
-+--------+----------+------------+
-| t1 | 1 | 3 |
-| t2 | 2 | 0 |
-+--------+----------+------------+
-2 rows in set.
-
-select "----- -t -----------" as "";
-
------ -t -----------
-Database: test
-+--------+------------+
-| Tables | table_type |
-+--------+------------+
-| t1 | BASE TABLE |
-| t2 | BASE TABLE |
-+--------+------------+
-select "---- -v -t ---------" as "";
-
----- -v -t ---------
-Database: test
-+--------+------------+----------+
-| Tables | table_type | Columns |
-+--------+------------+----------+
-| t1 | BASE TABLE | 1 |
-| t2 | BASE TABLE | 2 |
-+--------+------------+----------+
-2 rows in set.
-
-select "---- -v -v -t ------" as "";
-
----- -v -v -t ------
-Database: test
-+--------+------------+----------+------------+
-| Tables | table_type | Columns | Total Rows |
-+--------+------------+----------+------------+
-| t1 | BASE TABLE | 1 | 3 |
-| t2 | BASE TABLE | 2 | 0 |
-+--------+------------+----------+------------+
-2 rows in set.
-
-DROP TABLE t1, t2;
-End of 5.0 tests
diff --git a/mysql-test/r/mysqlslap.result b/mysql-test/r/mysqlslap.result
deleted file mode 100644
index d3c5107dee3..00000000000
--- a/mysql-test/r/mysqlslap.result
+++ /dev/null
@@ -1,257 +0,0 @@
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64));
-INSERT INTO t1 VALUES (1, 'This is a test');
-select * from t1;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64)) Engine = heap;
-create table t2(foo1 varchar(32), foo2 varchar(32));
-INSERT INTO t1 VALUES (1, 'This is a test');
-insert into t2 values ('test', 'test2');
-select * from t1;
-select * from t2;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64)) Engine = myisam;
-create table t2(foo1 varchar(32), foo2 varchar(32));
-INSERT INTO t1 VALUES (1, 'This is a test');
-insert into t2 values ('test', 'test2');
-select * from t1;
-select * from t2;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64)) Engine = heap;
-create table t2(foo1 varchar(32), foo2 varchar(32));
-INSERT INTO t1 VALUES (1, 'This is a test');
-insert into t2 values ('test', 'test2');
-SHOW TABLES;
-select * from t1;
-select * from t2;
-SHOW TABLES;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64)) Engine = myisam;
-create table t2(foo1 varchar(32), foo2 varchar(32));
-INSERT INTO t1 VALUES (1, 'This is a test');
-insert into t2 values ('test', 'test2');
-SHOW TABLES;
-select * from t1;
-select * from t2;
-SHOW TABLES;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64)) Engine = heap;
-create table t2(foo1 varchar(32), foo2 varchar(32));
-INSERT INTO t1 VALUES (1, 'This is a test');
-insert into t2 values ('test', 'test2');
-SET AUTOCOMMIT=0;
-SHOW TABLES;
-SET AUTOCOMMIT=0;
-select * from t1;
-COMMIT;
-select * from t2;
-COMMIT;
-select * from t1;
-COMMIT;
-select * from t2;
-COMMIT;
-select * from t1;
-COMMIT;
-select * from t2;
-COMMIT;
-COMMIT;
-SHOW TABLES;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-CREATE SCHEMA `mysqlslap`;
-use mysqlslap;
-CREATE TABLE t1 (id int, name varchar(64)) Engine = myisam;
-create table t2(foo1 varchar(32), foo2 varchar(32));
-INSERT INTO t1 VALUES (1, 'This is a test');
-insert into t2 values ('test', 'test2');
-SET AUTOCOMMIT=0;
-SHOW TABLES;
-SET AUTOCOMMIT=0;
-select * from t1;
-COMMIT;
-select * from t2;
-COMMIT;
-select * from t1;
-COMMIT;
-select * from t2;
-COMMIT;
-select * from t1;
-COMMIT;
-select * from t2;
-COMMIT;
-COMMIT;
-SHOW TABLES;
-DROP SCHEMA IF EXISTS `mysqlslap`;
-#
-# Bug #29985: mysqlslap -- improper handling of resultsets in SPROCs
-#
-DROP PROCEDURE IF EXISTS p1;
-CREATE PROCEDURE p1() SELECT 1;
-DROP PROCEDURE p1;
-#
-# Bug #11765157 - 58090: mysqlslap drops schema specified in
-# create_schema if auto-generate-sql also set.
-#
-# 'bug58090' database should not be present.
-SHOW DATABASES;
-Database
-information_schema
-mtr
-mysql
-performance_schema
-test
-# 'bug58090' database should be present.
-SHOW DATABASES;
-Database
-bug58090
-information_schema
-mtr
-mysql
-performance_schema
-test
-DROP DATABASE bug58090;
-#
-# Bug #11766072 - 59107: MYSQLSLAP CRASHES IF STARTED WITH NO ARGUMENTS ON WINDOWS
-#
-Benchmark
- Average number of seconds to run all queries: TIME seconds
- Minimum number of seconds to run all queries: TIME seconds
- Maximum number of seconds to run all queries: TIME seconds
- Number of clients running queries: 1
- Average number of queries per client: 0
-
-#
-# MDEV-4684 - Enhancement request: --init-command support for mysqlslap
-#
-DROP TABLE t1;
diff --git a/mysql-test/r/mysqltest.result b/mysql-test/r/mysqltest.result
deleted file mode 100644
index fe269152357..00000000000
--- a/mysql-test/r/mysqltest.result
+++ /dev/null
@@ -1,992 +0,0 @@
--1 before test
-<No error> before test
-SET GLOBAL max_connections = 1000;
-select otto from (select 1 as otto) as t1;
-otto
-1
-select otto from (select 1 as otto) as t1;
-otto
-1
-select friedrich from (select 1 as otto) as t1;
-mysqltest: At line 1: query 'select friedrich from (select 1 as otto) as t1' failed: 1054: Unknown column 'friedrich' in 'field list'
-select friedrich from (select 1 as otto) as t1;
-ERROR 42S22: Unknown column 'friedrich' in 'field list'
-select otto from (select 1 as otto) as t1;
-otto
-1
-select otto from (select 1 as otto) as t1;
-mysqltest: At line 1: query 'select otto from (select 1 as otto) as t1' succeeded - should have failed with sqlstate 42S22...
-mysqltest: At line 1: expecting a SQL-state (00000) from query 'remove_file MYSQLTEST_VARDIR/tmp/test_nonexistent.tmp' which cannot produce one...
-select friedrich from (select 1 as otto) as t1;
-ERROR 42S22: Unknown column 'friedrich' in 'field list'
-select friedrich from (select 1 as otto) as t1;
-mysqltest: At line 1: query 'select friedrich from (select 1 as otto) as t1' failed with wrong sqlstate 42S22: 'Unknown column 'friedrich' in 'field list'', instead of 00000...
-select otto from (select 1 as otto) as t1;
-otto
-1
-
-select 0 as "after_successful_stmt_errno" ;
-after_successful_stmt_errno
-0
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-ER_PARSE_ERROR
-select 1064 as "after_wrong_syntax_errno" ;
-after_wrong_syntax_errno
-1064
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-ER_PARSE_ERROR
-select 1064 as "after_let_var_equal_value" ;
-after_let_var_equal_value
-1064
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-set @my_var= 'abc' ;
-
-select 0 as "after_set_var_equal_value" ;
-after_set_var_equal_value
-0
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-ER_PARSE_ERROR
-select 1064 as "after_disable_warnings_command" ;
-after_disable_warnings_command
-1064
-drop table if exists t1 ;
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-drop table if exists t1 ;
-
-select 0 as "after_disable_warnings" ;
-after_disable_warnings
-0
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-select 3 from t1 ;
-ERROR 42S02: Table 'test.t1' doesn't exist
-ER_NO_SUCH_TABLE
-select 1146 as "after_minus_masked" ;
-after_minus_masked
-1146
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-select 3 from t1 ;
-ERROR 42S02: Table 'test.t1' doesn't exist
-ER_NO_SUCH_TABLE
-select 1146 as "after_!_masked" ;
-after_!_masked
-1146
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-select -1 as "after_let_errno_equal_value" ;
-after_let_errno_equal_value
--1
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-prepare stmt from "select 3 from t1" ;
-ERROR 42S02: Table 'test.t1' doesn't exist
-ER_NO_SUCH_TABLE
-select 1146 as "after_failing_prepare" ;
-after_failing_prepare
-1146
-create table t1 ( f1 char(10));
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-prepare stmt from "select 3 from t1" ;
-
-select 0 as "after_successful_prepare" ;
-after_successful_prepare
-0
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-execute stmt;
-3
-
-select 0 as "after_successful_execute" ;
-after_successful_execute
-0
-drop table t1;
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-execute stmt;
-ERROR 42S02: Table 'test.t1' doesn't exist
-ER_NO_SUCH_TABLE
-select 1146 as "after_failing_execute" ;
-after_failing_execute
-1146
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-execute __stmt_;
-ERROR HY000: Unknown prepared statement handler (__stmt_) given to EXECUTE
-ER_UNKNOWN_STMT_HANDLER
-select 1243 as "after_failing_execute" ;
-after_failing_execute
-1243
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-deallocate prepare stmt;
-
-select 0 as "after_successful_deallocate" ;
-after_successful_deallocate
-0
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-deallocate prepare __stmt_;
-ERROR HY000: Unknown prepared statement handler (__stmt_) given to DEALLOCATE PREPARE
-ER_UNKNOWN_STMT_HANDLER
-select 1243 as "after_failing_deallocate" ;
-after_failing_deallocate
-1243
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-ER_PARSE_ERROR
-select 1064 as "after_--disable_abort_on_error" ;
-after_--disable_abort_on_error
-1064
-select 3 from t1 ;
-ERROR 42S02: Table 'test.t1' doesn't exist
-select 3 from t1 ;
-ERROR 42S02: Table 'test.t1' doesn't exist
-select 3 from t1 ;
-ERROR 42S02: Table 'test.t1' doesn't exist
-ER_NO_SUCH_TABLE
-select 1146 as "after_!errno_masked_error" ;
-after_!errno_masked_error
-1146
-select 3 from t1;
-mysqltest: At line 1: query 'select 3 from t1' failed with wrong errno 1146: 'Table 'test.t1' doesn't exist', instead of 1000...
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
- is empty
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'nonsense' at line 1
- is empty
-garbage ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-ER_PARSE_ERROR
-select 1064 as "after_--enable_abort_on_error" ;
-after_--enable_abort_on_error
-1064
-select 3 from t1 ;
-ERROR 42S02: Table 'test.t1' doesn't exist
-select 3 from t1;
-mysqltest: At line 1: query 'select 3 from t1' failed with wrong errno 1146: 'Table 'test.t1' doesn't exist', instead of 1064...
-garbage;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-select 2;
-select 3;
-3
-3
-select 5;
-ERROR 42S02: Table 'test.t1' doesn't exist
-select 7;
-7
-7
-mysqltest: At line 1: End of line junk detected: "OCNE"
-connect con1,localhost,root,,;
-connection default;
-disconnect con1;
-select 5 from t1;
-lower
-case
-name
-abc
-xyz
- is empty
- is empty
-"Yes it's empty"
-hello
-hello
-;;;;;;;;
-# MySQL: -- The
-mysqltest: At line 1: Extra argument '6' passed to 'sleep'
-mysqltest: At line 1: Extra argument '6' passed to 'sleep'
-mysqltest: At line 1: Extra argument 'A comment
-show status' passed to 'sleep'
-mysqltest: At line 1: End of line junk detected: "sleep 7
-# Another comment
-"
-mysqltest: At line 1: Extra argument 'comment
-# comment 3
-disable_query_log' passed to 'disconnect'
-mysqltest: At line 1: Extra argument 'comment
-# comment 3
-disable_query_log' passed to 'disconnect'
-mysqltest: At line 1: End of line junk detected: "disconnect default
-
-#
-# comment
-# comment2
-
-# comment 3
---disable_query_log
-"
-mysqltest: At line 1: End of line junk detected: "disconnect default # comment
-# comment part2
-
-# comment 3
---disable_query_log
-"
-mysqltest: At line 1: Extra delimiter ";" found
-mysqltest: At line 1: Extra delimiter ";" found
-mysqltest: At line 1: Spurious text after `query` expression
-mysqltest: At line 1: Spurious text after `query` expression
-mysqltest: At line 2: Spurious text after `query` expression
-mysqltest: At line 1: Missing argument(s) to 'error'
-mysqltest: At line 1: Missing argument(s) to 'error'
-mysqltest: At line 1: The sqlstate definition must start with an uppercase S
-mysqltest: At line 1: The error name definition must start with an uppercase E or W or H
-mysqltest: At line 1: Invalid argument to error: '9eeeee' - the errno may only consist of digits[0-9]
-mysqltest: At line 1: Invalid argument to error: '1sssss' - the errno may only consist of digits[0-9]
-mysqltest: At line 1: The sqlstate must be exactly 5 chars long
-mysqltest: At line 1: The sqlstate may only consist of digits[0-9] and _uppercase_ letters
-mysqltest: At line 1: The sqlstate must be exactly 5 chars long
-mysqltest: At line 1: Unknown SQL error name 'E9999'
-mysqltest: At line 1: Invalid argument to error: '999e9' - the errno may only consist of digits[0-9]
-mysqltest: At line 1: Invalid argument to error: '9b' - the errno may only consist of digits[0-9]
-mysqltest: At line 1: Too many errorcodes specified
-MySQL
-"MySQL"
-MySQL: The world''s most popular open source database
-"MySQL: The world's most popular open source database"
-MySQL: The world''s
-most popular open
-source database
-# MySQL: The world''s
-# most popular open
-# source database
-- MySQL: The world''s
-- most popular open
-- source database
-- MySQL: The world''s
--- most popular
--- open source database
-# MySQL: The
---world''s
-# most popular
--- open
-- source database
-"MySQL: The world's most popular; open source database"
-"MySQL: The world's most popular ; open source database"
-"MySQL: The world's most popular ;open source database"
-echo message echo message
-
-mysqltest: At line 1: Missing argument in exec
-MySQL
-"MySQL"
-MySQL: The
-world''s most
-popular open
-source database
-# MySQL: The
-# world''s most
-# popular open
-# source database
--- MySQL: The
--- world''s most
--- popular
--- open source database
-# MySQL: The
-- world''s most
--- popular open
-# source database
-'# MySQL: The
-- world''s most
--- popular open
-# source database'
-"# MySQL: The
-- world''s most
--- popular open
-# source database"
-hej
-hej
-hej
-1
-
-
-a long variable content
-a long variable content
-a long a long variable content variable content
-a long \$where variable content
-
-banana = banana
-Not a banana: ba\$cat\$cat
-with\`some"escaped\'quotes
-with\`some"escaped\'quotes
-single'tick`backtick
-mysqltest: At line 1: Missing arguments to let
-mysqltest: At line 1: Missing variable name in let
-mysqltest: At line 1: Missing assignment operator in let
-mysqltest: At line 1: Missing assignment operator in let
-mysqltest: At line 1: Missing assignment operator in let
-mysqltest: At line 1: Missing variable name in let
-mysqltest: At line 1: Missing variable name in let
-mysqltest: At line 1: Missing assignment operator in let
-# Execute: --echo # <whatever> success: $success
-# <whatever> success: 1
-# Execute: echo # <whatever> success: $success ;
-# <whatever> success: 1
-# The next two variants work fine and expand the content of $success
-# Execute: --echo $success
-1
-# Execute: echo $success ;
-1
-# Check if let $B = $A is an assignment per value.
-let $A = initial value of A;
-let $B = initial value of B;
-let $B = $A
-# Content of $A is: initial value of B
-let $A = changed value of A;
-# Content of $B is: initial value of B
-let $B = changed value of B;
-# Content of $A is: changed value of A
-var2: content of variable 1
-var3: content of variable 1 content of variable 1
-length of var3 is longer than 0
-var1
-hi 1 hi there
-var2
-2
-var2 again
-2
-var3 two columns with same name
-1 2 3
-var4 from query that returns NULL
-var5 from query that returns no row
-failing query in let
-create table t1 (a varchar(100));
-insert into t1 values ('`select 42`');
-`select 42`
-insert into t1 values ('$dollar');
-$dollar
-`select 42`
-drop table t1;
-mysqltest: At line 1: query 'let $var2= `failing query`' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'failing query' at line 1
-mysqltest: At line 1: Missing required argument 'filename' to command 'source'
-mysqltest: At line 1: Could not open 'non_existingFile' for reading, errno: 2
-mysqltest: In included file "MYSQLTEST_VARDIR/tmp/recursive.sql":
-included from MYSQLTEST_VARDIR/tmp/recursive.sql at line 1:
-included from MYSQLTEST_VARDIR/tmp/recursive.sql at line 1:
-included from MYSQLTEST_VARDIR/tmp/recursive.sql at line 1:
-included from MYSQLTEST_VARDIR/tmp/recursive.sql at line 1:
-included from MYSQLTEST_VARDIR/tmp/recursive.sql at line 1:
-included from MYSQLTEST_VARDIR/tmp/recursive.sql at line 1:
-included from MYSQLTEST_VARDIR/tmp/recursive.sql at line 1:
-included from MYSQLTEST_VARDIR/tmp/recursive.sql at line 1:
-included from MYSQLTEST_VARDIR/tmp/recursive.sql at line 1:
-included from MYSQLTEST_VARDIR/tmp/recursive.sql at line 1:
-included from MYSQLTEST_VARDIR/tmp/recursive.sql at line 1:
-included from MYSQLTEST_VARDIR/tmp/recursive.sql at line 1:
-included from MYSQLTEST_VARDIR/tmp/recursive.sql at line 1:
-included from MYSQLTEST_VARDIR/tmp/recursive.sql at line 1:
-included from <stdin> at line 1:
-At line 1: Source directives are nesting too deep
-garbage ;
-mysqltest: In included file "MYSQLTEST_VARDIR/tmp/error.sql":
-included from <stdin> at line 1:
-At line 1: query 'garbage ' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-
-2 = outer loop variable after while
-here is the sourced script
-
-2 = outer loop variable before dec
-
-1 = outer loop variable after dec
-
-1 = outer loop variable after while
-here is the sourced script
-
-1 = outer loop variable before dec
-
-0 = outer loop variable after dec
-outer=2 ifval=0
-outer=1 ifval=1
-here is the sourced script
-ERROR 42S02: Table 'test.nowhere' doesn't exist
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'else' at line 1
-
-In loop
-here is the sourced script
-
-In loop
-here is the sourced script
-
-In loop
-here is the sourced script
-
-In loop
-here is the sourced script
-
-In loop
-here is the sourced script
-
-In loop
-here is the sourced script
-
-In loop
-here is the sourced script
-
-In loop
-here is the sourced script
-
-In loop
-here is the sourced script
-here is the sourced script
-"hello"
-"hello"
-mysqltest: At line 2: Invalid argument to sleep "xyz"
-mysqltest: At line 2: Invalid argument to real_sleep "xyz"
-mysqltest: At line 1: Missing required argument 'sleep_delay' to command 'sleep'
-mysqltest: At line 1: Missing required argument 'sleep_delay' to command 'real_sleep'
-mysqltest: At line 1: Invalid argument to sleep "abc"
-mysqltest: At line 1: Invalid argument to real_sleep "abc"
-1
-101
--99
-mysqltest: At line 1: Missing argument to inc
-mysqltest: At line 1: The argument to inc must be a variable (start with $)
-mysqltest: At line 1: Cannot perform inc/dec on a non-numeric value
-mysqltest: At line 1: End of line junk detected: "1000"
-mysqltest: At line 1: Cannot perform inc/dec on a non-numeric value
-mysqltest: At line 1: Cannot perform inc/dec on a non-numeric value
--96
--96
--1
-99
-mysqltest: At line 1: Missing argument to dec
-mysqltest: At line 1: The argument to dec must be a variable (start with $)
-mysqltest: At line 1: Cannot perform inc/dec on a non-numeric value
-mysqltest: At line 1: End of line junk detected: "1000"
-mysqltest: At line 1: Cannot perform inc/dec on a non-numeric value
-mysqltest: At line 1: Cannot perform inc/dec on a non-numeric value
-mysqltest: At line 1: Missing arguments to system, nothing to do!
-mysqltest: At line 1: Missing arguments to system, nothing to do!
-system command 'NonExistsinfComamdn 2> /dev/null' failed
-test
-test2
-test3
-test4
-outer
-true-inner
-true-inner again
-true-outer
-Counter is greater than 0, (counter=10)
-Counter should still be 10, is 10
-Counter is not 0, (counter=0)
-Not space var works
-Counter is true, (counter=alpha)
-while with string, only once
-5<7
-5<7 again
-5<7 still
-5<6
-5>=5
-5>=5 again
-5>3
-5==5
-5!=8
-5!=five
-5==3+2
-5 == 5
-hello == hello
-hello == hello
-hello != goodbye
-'quoted' == ''quoted''
-two words
-'two words'
-"two words"
-two words are two words
-right answer
-anything goes
-0 != string
-mysqltest: At line 2: Only == and != are supported for string values
-mysqltest: At line 2: Found junk '~= 6' after $variable in condition
-mysqltest: At line 2: Expression in if/while must beging with $, ` or a number
-mysqltest: At line 1: Missing right operand in comparison
-mysqltest: At line 1: Missing right operand in comparison
-counter is 2
-counter is 3
-counter is 4
-counter is 5
-counter is 6
-counter is 7
-1
-Testing while with not
-mysqltest: In included file "MYSQLTEST_VARDIR/tmp/mysqltest_while.inc":
-included from <stdin> at line 1:
-At line 64: Nesting too deeply
-mysqltest: At line 1: missing '(' in while
-mysqltest: At line 1: missing ')' in while
-mysqltest: At line 1: Missing '{' after while. Found "dec $i"
-mysqltest: At line 1: Stray '}' - end of block before beginning
-mysqltest: At line 1: Stray 'end' command - end of block before beginning
-{;
-mysqltest: At line 1: query '{' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '{' at line 1
-mysqltest: At line 1: Missing '{' after while. Found "echo hej"
-mysqltest: At line 3: Missing end of block
-mysqltest: At line 3: Missing end of block
-mysqltest: At line 1: missing '(' in if
-mysqltest: At line 1: Stray 'end' command - end of block before beginning
-select "b" bs col1, "c" bs col2;
-col1 col2
-b c
-seledt "b" bs dol1, "d" bs dol2;
-dol1 dol2
-b d
-mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a'
-mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a;'
-mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a'
-mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a '
-OK
-mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a b c'
-mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a b c '
-select "a" as col1, "c" as col2;
-col1 col2
-b c
-select "a" as col1, "c" as col2;
-col1 col2
-b d
-mysqltest: At line 1: Wrong column number to replace_column in 'replace_column a'
-mysqltest: At line 1: Wrong number of arguments to replace_column in 'replace_column 1'
-mysqltest: At line 1: Wrong column number to replace_column in 'replace_column a b'
-mysqltest: At line 1: Wrong column number to replace_column in 'replace_column a 1'
-mysqltest: At line 1: Wrong column number to replace_column in 'replace_column 1 b c '
-select "LONG_STRING" as x;
-x
-LONG_STRING
-dog
-mysqltest: At line 1: Invalid integer argument "10!"
-mysqltest: At line 1: Invalid integer argument "a"
-mysqltest: At line 1: Missing required argument 'connection name' to command 'connect'
-mysqltest: At line 1: Missing required argument 'connection name' to command 'connect'
-mysqltest: At line 1: Missing required argument 'host' to command 'connect'
-mysqltest: At line 1: Missing required argument 'host' to command 'connect'
-mysqltest: At line 1: query 'connect con2,localhost,root,,illegal_db' failed: 1049: Unknown database 'illegal_db'
-mysqltest: At line 1: Illegal argument for port: 'illegal_port'
-mysqltest: At line 1: Illegal option to connect: SMTP
-200 connects succeeded
-connect test_con1,localhost,root,,;
-disconnect test_con1;
-mysqltest: In included file "MYSQLTEST_VARDIR/tmp/mysqltest.sql":
-included from <stdin> at line 1:
-At line 3: connection 'test_con1' not found in connection pool
-connect test_con1,localhost,root,,;
-mysqltest: In included file "MYSQLTEST_VARDIR/tmp/mysqltest.sql":
-included from <stdin> at line 1:
-At line 2: Connection test_con1 already exists
-connect con1,localhost,root,,;
-connection default;
-connection con1;
-disconnect con1;
-connect con2,localhost,root,,*NO-ONE*;
-show tables;
-ERROR 3D000: No database selected
-disconnect con2;
-connection default;
-connect con1,localhost,root,,;
-connection default;
-connection con1;
-disconnect con1;
-connection default;
-Output from mysqltest-x.inc
-Output from mysqltest-x.inc
-Output from mysqltest-x.inc
-mysqltest: Could not open './non_existing_file.inc' for reading, errno: 2
-failing_statement;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'failing_statement' at line 1
-failing_statement;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'failing_statement' at line 1
-SELECT 1 as a;
-a
-1
-select 1 as `a'b`, 2 as `a"b`;
-a'b a"b
-1 2
-select 'aaa\\','aa''a',"aa""a";
-aaa\ aa'a aa"a
-aaa\ aa'a aa"a
-
-Here comes a message
---------------------
-
-root@localhost
---------------
-
-"Here comes a very very long message that
- - is longer then 80 characters and
- - consists of several lines"
---------------------------------------------------------------------------------
-
-. Here comes a very very long message that
-. - is longer then 80 characters and
-. - consists of several lines
---------------------------------------------------------------------------------
-this will be executed
-this will be executed
-mysqltest: The test didn't produce any output
-Failing multi statement query
-create table t1 (a int primary key);
-insert into t1 values (1);
-select 'select-me';
-insertz 'error query'||||
-mysqltest: At line 3: query 'create table t1 (a int primary key);
-insert into t1 values (1);
-select 'select-me';
-insertz 'error query'' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'insertz 'error query'' at line 1
-drop table t1;
-mysqltest: At line 3: query 'create table t1 (a int primary key);
-insert into t1 values (1);
-select 'select-me';
-insertz 'error query'' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'insertz 'error query'' at line 1
-drop table t1;
-Multi statement using expected error
-create table t1 (a int primary key);
-insert into t1 values (1);
-select 'select-me';
-insertz error query||||
-select-me
-select-me
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'insertz error query' at line 1
-drop table t1;
-drop table t1;
-sleep;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'sleep' at line 1
-sleep;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'sleep' at line 1
-;
-ERROR 42000: Query was empty
-select "b" as col1, "c" as col2;
-col1 col2
-b c
-select "b" as col1, "b" as col2, "c" as col3;
-col1 col2 col3
-b b c
-seled "b" bs col1, "d" bs col2;
-col1 col2
-b d
-select "raspberry and strawberry","blackberry","tomato";
-raspberry and strawberry blackberry tomato
-raspberry and strawberry blackberry tomato
-mysqltest: At line 1: Error parsing replace_regex "a"
-mysqltest: At line 1: Error parsing replace_regex "a;"
-mysqltest: At line 1: Error parsing replace_regex "a"
-mysqltest: At line 1: Error parsing replace_regex "a "
-mysqltest: At line 1: Error parsing replace_regex "a b"
-mysqltest: At line 1: Error parsing replace_regex "/a b c"
-mysqltest: At line 1: Error parsing replace_regex "/a /b c "
-create table t1 (a int, b int);
-insert into t1 values (1,3);
-insert into t1 values (2,4);
-select * from t1;
-a D
-1 1
-1 4
-drop table t1;
-y
-txt
-b is b and more is more
-txt2
-b is b or more is more
-txt3
-a is a and less is more
-sflfdt 'ABCDfF bbddff h' bs txt;
-txt
-ABCDfF bbddff h
-create table t2 ( a char(10));
-garbage;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'garbage' at line 1
-garbage;
-Got one of the listed errors
-garbage;
-Got one of the listed errors
-insert into t1 values ("Abcd");
-Got one of the listed errors
-garbage;
-SELECT * FROM non_existing_table;
-drop table t2;
-create table t1 ( f1 char(10));
-insert into t1 values ("Abcd");
-select * from t1;
-f1
-Abcd
-select * from t2;;
-ERROR 42S02: Table 'test.t2' doesn't exist
-select * from t1;
-f1
-Abcd
-select * from t1;;
-Result coming up
-f1
-Abcd
-select * from t1;;
-f1
-Abcd
-select * from t1;;
-mysqltest: At line 2: Cannot run query on connection between send and reap
-drop table t1;
-mysqltest: At line 1: Missing required argument 'filename' to command 'remove_file'
-mysqltest: At line 1: Missing required argument 'directory' to command 'remove_files_wildcard'
-mysqltest: At line 1: Missing required argument 'filename' to command 'write_file'
-mysqltest: At line 1: End of file encountered before 'EOF' delimiter was found
-Content for test_file1
-mysqltest: At line 1: File already exist: 'MYSQLTEST_VARDIR/tmp/test_file1.tmp'
-These lines should be repeated,
-if things work as expected
-These lines should be repeated,
-if things work as expected
-Some data
-for cat_file command
-of mysqltest
-mysqltest: At line 1: command "cat_file" failed with error: 1 my_errno: 2 errno: 2
-mysqltest: At line 1: Missing required argument 'filename' to command 'file_exists'
-mysqltest: At line 1: Missing required argument 'from_file' to command 'copy_file'
-mysqltest: At line 1: Missing required argument 'to_file' to command 'copy_file'
-mysqltest: At line 1: Missing required argument 'from_file' to command 'move_file'
-mysqltest: At line 1: Missing required argument 'to_file' to command 'move_file'
-mysqltest: At line 1: Missing required argument 'mode' to command 'chmod'
-mysqltest: At line 1: You must write a 4 digit octal number for mode
-mysqltest: At line 1: You must write a 4 digit octal number for mode
-mysqltest: At line 1: Missing required argument 'filename' to command 'chmod'
-mysqltest: At line 1: You must write a 4 digit octal number for mode
-mysqltest: At line 1: You must write a 4 digit octal number for mode
-hello
-hello
-hello
-mysqltest: At line 1: Max delimiter length(16) exceeded
-hello
-hello
-val is 5
-val is 5
-mysqltest: At line 1: test of die
-Some output
-create table t1( a int, b char(255), c timestamp);
-insert into t1 values(1, 'Line 1', '2007-04-05'), (2, "Part 2", '2007-04-05');
-insert into t1 values(1, 'Line 1', '2007-04-05'), (2, "Part 3", '2007-04-05');
-select * from t1;
-a b c
-1 Line 1 2007-04-05 00:00:00
-2 Part 2 2007-04-05 00:00:00
-1 Line 1 2007-04-05 00:00:00
-2 Part 3 2007-04-05 00:00:00
-select * from t1;
-a b c
-1 Line 1 2007-04-05 00:00:00
-1 Line 1 2007-04-05 00:00:00
-2 Part 2 2007-04-05 00:00:00
-2 Part 3 2007-04-05 00:00:00
-select * from t1;
-a b c
-1 Line 1 2007-04-05 00:00:00
-2 Part 2 2007-04-05 00:00:00
-1 Line 1 2007-04-05 00:00:00
-2 Part 3 2007-04-05 00:00:00
-select * from t1;
-select '';
-
-
-select "h";
-h
-h
-select "he";
-he
-he
-select "hep";
-hep
-hep
-select "hepp";
-hepp
-hepp
-drop table t1;
-SELECT 2 as "my_col"
-UNION
-SELECT 1;
-my_col
-1
-2
-SELECT 2 as "my_col" UNION SELECT 1;
-my_col
-1
-2
-SELECT 2 as "my_col"
-UNION
-SELECT 1;
-my_col
-1
-2
-SELECT '2' as "3"
-UNION
-SELECT '1';
-3
-1
-2
-CREATE TABLE t1( a CHAR);
-SELECT * FROM t1;
-a
-DROP TABLE t1;
-SELECT NULL as "my_col1",2 AS "my_col2"
-UNION
-SELECT NULL,1;
-my_col1 my_col2
-NULL 2
-NULL 1
-SELECT NULL as "my_col1",2 AS "my_col2"
-UNION
-SELECT NULL,1;
-my_col1 my_col2
-NULL 1
-NULL 2
-SELECT 2 as "my_col1",NULL AS "my_col2"
-UNION
-SELECT 1,NULL;
-my_col1 my_col2
-2 NULL
-1 NULL
-SELECT 2 as "my_col1",NULL AS "my_col2"
-UNION
-SELECT 1,NULL;
-my_col1 my_col2
-1 NULL
-2 NULL
-SET @a = 17;
-SELECT 2 as "my_col"
-UNION
-SELECT 1;
-my_col
-2
-1
-SELECT 2 as "my_col"
-UNION
-SELECT 1;
-my_col
-1
-2
-SELECT '2' as "my_col1",2 as "my_col2"
-UNION
-SELECT '1',1 from t2;
-ERROR 42S02: Table 'test.t2' doesn't exist
-SELECT '1' as "my_col1",2 as "my_col2"
-UNION
-SELECT '2',1;
-my_col1 my_col2
-# 1
-# 2
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 SET f1 = 1024;
-INSERT INTO t1 SELECT f1 - 1 FROM t1;
-INSERT INTO t1 SELECT f1 - 2 FROM t1;
-INSERT INTO t1 SELECT f1 - 4 FROM t1;
-INSERT INTO t1 SELECT f1 - 8 FROM t1;
-INSERT INTO t1 SELECT f1 - 16 FROM t1;
-INSERT INTO t1 SELECT f1 - 32 FROM t1;
-INSERT INTO t1 SELECT f1 - 64 FROM t1;
-INSERT INTO t1 SELECT f1 - 128 FROM t1;
-INSERT INTO t1 SELECT f1 - 256 FROM t1;
-INSERT INTO t1 SELECT f1 - 512 FROM t1;
-SELECT * FROM t1;
-DROP TABLE t1;
-select "500g blåbærsyltetøy" as "will be lower cased";
-will be lower cased
-500g blåbærsyltetøy
-SELECT "UPPER" AS "WILL NOT BE lower cased";
-WILL NOT BE lower cased
-UPPER
-UP
-SELECT 0 as "UP AGAIN";
-UP AGAIN
-0
-select "abcdef" as "uvwxyz";
-uvwxyz
-abcdef
-select "xyz" as name union select "abc" as name order by name desc;
-name
-abc
-xyz
-select 1 as "some new text";
-some new text
-1
-select 0 as "will not lower case ÄËÐ";
-will not lower case ÄËÐ
-0
-CREATE TABLE t1(
-a int, b varchar(255), c datetime
-);
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b varchar(255) YES NULL
-c datetime YES NULL
-statement=SHOW COLUMNS FROM t1 row_number=1, column_name="Type", Value=int(11)
-statement="SHOW COLUMNS FROM t1" row_number=1, column_name="Type", Value=int(11)
-statement=SHOW COLUMNS FROM t1 row_number=1, column_name=Default, Value=NULL
-value= ->A B<-
-value= 1
-value= 2
-mysqltest: At line 1: query_get_value - argument list started with '(' must be ended with ')'
-mysqltest: At line 1: Missing required argument 'query' to command 'query_get_value'
-mysqltest: At line 1: Missing required argument 'column name' to command 'query_get_value'
-mysqltest: At line 1: Missing required argument 'row number' to command 'query_get_value'
-value= No such row
-value= No such row
-mysqltest: At line 1: Invalid row number: 'notnumber'
-mysqltest: At line 1: Could not find column 'column_not_exists' in the result of 'SHOW COLUMNS FROM t1'
-mysqltest: At line 1: Query 'SET @A = 1' didn't return a result set
-mysqltest: At line 1: Could not find column '1 AS B' in the result of 'SELECT 1 AS A'
-value= No such row
-mysqltest: At line 1: query 'let $value= query_get_value(SHOW COLNS FROM t1, Field, 1)' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'COLNS FROM t1' at line 1
-
-Field Type Null Key Default Extra
-a int(11) YES -><- NULL
-b varchar(255) YES -><- NULL
-c datetime YES -><- NULL
-
-Number of columns with Default NULL: 3
-
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-b varchar(255) YES NULL
-c datetime YES NULL
-drop table t1;
-mysqltest: At line 1: query 'change_user root,,inexistent' failed: 1049: Unknown database 'inexistent'
-mysqltest: At line 1: query 'change_user inexistent,,test' failed: 1045: Access denied for user 'inexistent'@'localhost' (using password: NO)
-mysqltest: At line 1: query 'change_user root,inexistent,test' failed: 1045: Access denied for user 'root'@'localhost' (using password: YES)
-REPLACED_FILE1.txt
-file1.txt
-file2.txt
-file11.txt
-dir-list.txt
-SELECT 'c:\\a.txt' AS col;
-col
-z
-select 1;
-1
-1
-select 1;
-1
-1
--- a comment for the server;
-mysqltest: At line 1: Found line beginning with -- that didn't contain a valid mysqltest command, check your syntax or use # if you intended to write a comment
-connect con1,localhost,root,,;
-con1
-connect con2,localhost,root,,;
-con2
-connection default;
-default
-connection con1;
-con1
-connection con2;
-con2
-connection con1;
-con1
-connection con2;
-con2
-disconnect con1;
-con2
-disconnect con2;
--closed_connection-
-connection default;
-set sql_mode=no_backslash_escapes;
-select "foo\""bar";
-foo\"bar
-foo\"bar
-set sql_mode=default;
-End of tests
diff --git a/mysql-test/r/mysqltest_256.result b/mysql-test/r/mysqltest_256.result
deleted file mode 100644
index 043c7208382..00000000000
--- a/mysql-test/r/mysqltest_256.result
+++ /dev/null
@@ -1 +0,0 @@
-# Done
diff --git a/mysql-test/r/mysqltest_cont_on_error.result b/mysql-test/r/mysqltest_cont_on_error.result
deleted file mode 100644
index eaa17028f8d..00000000000
--- a/mysql-test/r/mysqltest_cont_on_error.result
+++ /dev/null
@@ -1,7 +0,0 @@
-select error;
-mysqltest: At line 1: query 'select error' failed: 1054: Unknown column 'error' in 'field list'
-SELECT ERROR;
-mysqltest: At line 1: query 'SELECT ERROR' failed: 1054: Unknown column 'ERROR' in 'field list'
-SELECT 2;
-2
-2
diff --git a/mysql-test/r/mysqltest_ps.result b/mysql-test/r/mysqltest_ps.result
deleted file mode 100644
index 153098ff088..00000000000
--- a/mysql-test/r/mysqltest_ps.result
+++ /dev/null
@@ -1,34 +0,0 @@
-select 1 + "2 a";
-1 + "2 a"
-3
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '2 a'
-create table t (a int primary key, b blob default '');
-select a, (2*a) AS a from t group by a;
-a a
-Warnings:
-Warning 1052 Column 'a' in group statement is ambiguous
-drop table t;
-select 1 + "2 a";
-1 + "2 a"
-3
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '2 a'
-create table t (a int primary key, b blob default '');
-select a, (2*a) AS a from t group by a;
-a a
-Warnings:
-Warning 1052 Column 'a' in group statement is ambiguous
-Warning 1052 Column 'a' in group statement is ambiguous
-drop table t;
-select 1 + "2 a";
-1 + "2 a"
-3
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '2 a'
-create table t (a int primary key, b blob default '');
-select a, (2*a) AS a from t group by a;
-a a
-Warnings:
-Warning 1052 Column 'a' in group statement is ambiguous
-drop table t;
diff --git a/mysql-test/r/named_pipe.result b/mysql-test/r/named_pipe.result
deleted file mode 100644
index 66da9a874b4..00000000000
--- a/mysql-test/r/named_pipe.result
+++ /dev/null
@@ -1,2160 +0,0 @@
-connect pipe_con,localhost,root,,,,,PIPE;
-drop table if exists t1,t2,t3,t4;
-CREATE TABLE t1 (
-Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
-Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
-);
-INSERT INTO t1 VALUES (9410,9412);
-select period from t1;
-period
-9410
-select * from t1;
-Period Varor_period
-9410 9412
-select t1.* from t1;
-Period Varor_period
-9410 9412
-CREATE TABLE t2 (
-auto int not null auto_increment,
-fld1 int(6) unsigned zerofill DEFAULT '000000' NOT NULL,
-companynr tinyint(2) unsigned zerofill DEFAULT '00' NOT NULL,
-fld3 char(30) DEFAULT '' NOT NULL,
-fld4 char(35) DEFAULT '' NOT NULL,
-fld5 char(35) DEFAULT '' NOT NULL,
-fld6 char(4) DEFAULT '' NOT NULL,
-UNIQUE fld1 (fld1),
-KEY fld3 (fld3),
-PRIMARY KEY (auto)
-);
-select t2.fld3 from t2 where companynr = 58 and fld3 like "%imaginable%";
-fld3
-imaginable
-select fld3 from t2 where fld3 like "%cultivation" ;
-fld3
-cultivation
-select t2.fld3,companynr from t2 where companynr = 57+1 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3,companynr from t2 where companynr = 58 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3 from t2 order by fld3 desc limit 10;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select fld3 from t2 order by fld3 desc limit 5;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-select fld3 from t2 order by fld3 desc limit 5,5;
-fld3
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select t2.fld3 from t2 where fld3 = 'honeysuckle';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'hon_ysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle%';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'h%le';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle_';
-fld3
-select t2.fld3 from t2 where fld3 LIKE 'don_t_find_me_please%';
-fld3
-explain select t2.fld3 from t2 where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld1) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3,not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-explain select fld3 from t2 use index (not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-fld3
-honeysuckle
-honoring
-explain select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld3 fld3 30 NULL 2 Using where; Using index
-select fld1,fld3 from t2 where fld3="Colombo" or fld3 = "nondecreasing" order by fld3;
-fld1 fld3
-148504 Colombo
-068305 Colombo
-000000 nondecreasing
-select fld1,fld3 from t2 where companynr = 37 and fld3 = 'appendixes';
-fld1 fld3
-232605 appendixes
-1232605 appendixes
-1232606 appendixes
-1232607 appendixes
-1232608 appendixes
-1232609 appendixes
-select fld1 from t2 where fld1=250501 or fld1="250502";
-fld1
-250501
-250502
-explain select fld1 from t2 where fld1=250501 or fld1="250502";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 2 Using where; Using index
-select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-fld1
-250501
-250502
-250505
-250601
-explain select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 4 Using where; Using index
-select fld1,fld3 from t2 where companynr = 37 and fld3 like 'f%';
-fld1 fld3
-012001 flanking
-013602 foldout
-013606 fingerings
-018007 fanatic
-018017 featherweight
-018054 fetters
-018103 flint
-018104 flopping
-036002 funereal
-038017 fetched
-038205 firearm
-058004 Fenton
-088303 feminine
-186002 freakish
-188007 flurried
-188505 fitting
-198006 furthermore
-202301 Fitzpatrick
-208101 fiftieth
-208113 freest
-218008 finishers
-218022 feed
-218401 faithful
-226205 foothill
-226209 furnishings
-228306 forthcoming
-228311 fated
-231315 freezes
-232102 forgivably
-238007 filial
-238008 fixedly
-select fld3 from t2 where fld3 like "L%" and fld3 = "ok";
-fld3
-select fld3 from t2 where (fld3 like "C%" and fld3 = "Chantilly");
-fld3
-Chantilly
-select fld1,fld3 from t2 where fld1 like "25050%";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select fld1,fld3 from t2 where fld1 like "25050_";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select distinct companynr from t2;
-companynr
-00
-37
-36
-50
-58
-29
-40
-53
-65
-41
-34
-68
-select distinct companynr from t2 order by companynr;
-companynr
-00
-29
-34
-36
-37
-40
-41
-50
-53
-58
-65
-68
-select distinct companynr from t2 order by companynr desc;
-companynr
-68
-65
-58
-53
-50
-41
-40
-37
-36
-34
-29
-00
-select distinct t2.fld3,period from t2,t1 where companynr=37 and fld3 like "O%";
-fld3 period
-obliterates 9410
-offload 9410
-opaquely 9410
-organizer 9410
-overestimating 9410
-overlay 9410
-select distinct fld3 from t2 where companynr = 34 order by fld3;
-fld3
-absentee
-accessed
-ahead
-alphabetic
-Asiaticizations
-attitude
-aye
-bankruptcies
-belays
-Blythe
-bomb
-boulevard
-bulldozes
-cannot
-caressing
-charcoal
-checksumming
-chess
-clubroom
-colorful
-cosy
-creator
-crying
-Darius
-diffusing
-duality
-Eiffel
-Epiphany
-Ernestine
-explorers
-exterminated
-famine
-forked
-Gershwins
-heaving
-Hodges
-Iraqis
-Italianization
-Lagos
-landslide
-libretto
-Majorca
-mastering
-narrowed
-occurred
-offerers
-Palestine
-Peruvianizes
-pharmaceutic
-poisoning
-population
-Pygmalion
-rats
-realest
-recording
-regimented
-retransmitting
-reviver
-rouses
-scars
-sicker
-sleepwalk
-stopped
-sugars
-translatable
-uncles
-unexpected
-uprisings
-versatility
-vest
-select distinct fld3 from t2 limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct fld3 from t2 having fld3 like "A%" limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%";
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-Adl
-adm
-Ado
-ads
-adv
-aer
-aff
-afi
-afl
-afo
-agi
-ahe
-aim
-air
-Ald
-alg
-ali
-all
-alp
-alr
-ama
-ame
-amm
-ana
-and
-ane
-Ang
-ani
-Ann
-Ant
-api
-app
-aqu
-Ara
-arc
-Arm
-arr
-Art
-Asi
-ask
-asp
-ass
-ast
-att
-aud
-Aug
-aut
-ave
-avo
-awe
-aye
-Azt
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" order by a limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%" limit 10;
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-create table t3 (
-period int not null,
-name char(32) not null,
-companynr int not null,
-price double(11,0),
-price2 double(11,0),
-key (period),
-key (name)
-);
-create temporary table tmp engine = myisam select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-alter table t3 add t2nr int not null auto_increment primary key first;
-drop table tmp;
-SET BIG_TABLES=1;
-select distinct concat(fld3," ",fld3) as namn from t2,t3 where t2.fld1=t3.t2nr order by namn limit 10;
-namn
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-SET BIG_TABLES=0;
-select distinct concat(fld3," ",fld3) from t2,t3 where t2.fld1=t3.t2nr order by fld3 limit 10;
-concat(fld3," ",fld3)
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-select distinct fld5 from t2 limit 10;
-fld5
-neat
-Steinberg
-jarring
-tinily
-balled
-persist
-attainments
-fanatic
-measures
-rightfulness
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=1;
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=0;
-select distinct fld3,repeat("a",length(fld3)),count(*) from t2 group by companynr,fld3 limit 100,10;
-fld3 repeat("a",length(fld3)) count(*)
-circus aaaaaa 1
-cited aaaaa 1
-Colombo aaaaaaa 1
-congresswoman aaaaaaaaaaaaa 1
-contrition aaaaaaaaaa 1
-corny aaaaa 1
-cultivation aaaaaaaaaaa 1
-definiteness aaaaaaaaaaaa 1
-demultiplex aaaaaaaaaaa 1
-disappointing aaaaaaaaaaaaa 1
-select distinct companynr,rtrim(space(512+companynr)) from t3 order by 1,2;
-companynr rtrim(space(512+companynr))
-37
-78
-101
-154
-311
-447
-512
-select distinct fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by fld3;
-fld3
-explain select t3.t2nr,fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by t3.t2nr,fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL fld1 NULL NULL NULL 1199 Using where; Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.fld1 1 Using where; Using index
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL period NULL NULL NULL 41810 Using filesort
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index period period 4 NULL 1
-1 SIMPLE t1 ref period period 4 test.t3.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t1.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index period period 4 NULL 1
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-select period from t1;
-period
-9410
-select period from t1 where period=1900;
-period
-select fld3,period from t1,t2 where fld1 = 011401 order by period;
-fld3 period
-breaking 9410
-select fld3,period from t2,t3 where t2.fld1 = 011401 and t2.fld1=t3.t2nr and t3.period=1001;
-fld3 period
-breaking 1001
-explain select fld3,period from t2,t3 where t2.fld1 = 011401 and t3.t2nr=t2.fld1 and 1001 = t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const fld1 fld1 4 const 1
-1 SIMPLE t3 const PRIMARY,period PRIMARY 4 const 1
-select fld3,period from t2,t1 where companynr*10 = 37*10;
-fld3 period
-breaking 9410
-Romans 9410
-intercepted 9410
-bewilderingly 9410
-astound 9410
-admonishing 9410
-sumac 9410
-flanking 9410
-combed 9410
-subjective 9410
-scatterbrain 9410
-Eulerian 9410
-Kane 9410
-overlay 9410
-perturb 9410
-goblins 9410
-annihilates 9410
-Wotan 9410
-snatching 9410
-concludes 9410
-laterally 9410
-yelped 9410
-grazing 9410
-Baird 9410
-celery 9410
-misunderstander 9410
-handgun 9410
-foldout 9410
-mystic 9410
-succumbed 9410
-Nabisco 9410
-fingerings 9410
-aging 9410
-afield 9410
-ammonium 9410
-boat 9410
-intelligibility 9410
-Augustine 9410
-teethe 9410
-dreaded 9410
-scholastics 9410
-audiology 9410
-wallet 9410
-parters 9410
-eschew 9410
-quitter 9410
-neat 9410
-Steinberg 9410
-jarring 9410
-tinily 9410
-balled 9410
-persist 9410
-attainments 9410
-fanatic 9410
-measures 9410
-rightfulness 9410
-capably 9410
-impulsive 9410
-starlet 9410
-terminators 9410
-untying 9410
-announces 9410
-featherweight 9410
-pessimist 9410
-daughter 9410
-decliner 9410
-lawgiver 9410
-stated 9410
-readable 9410
-attrition 9410
-cascade 9410
-motors 9410
-interrogate 9410
-pests 9410
-stairway 9410
-dopers 9410
-testicle 9410
-Parsifal 9410
-leavings 9410
-postulation 9410
-squeaking 9410
-contrasted 9410
-leftover 9410
-whiteners 9410
-erases 9410
-Punjab 9410
-Merritt 9410
-Quixotism 9410
-sweetish 9410
-dogging 9410
-scornfully 9410
-bellow 9410
-bills 9410
-cupboard 9410
-sureties 9410
-puddings 9410
-fetters 9410
-bivalves 9410
-incurring 9410
-Adolph 9410
-pithed 9410
-Miles 9410
-trimmings 9410
-tragedies 9410
-skulking 9410
-flint 9410
-flopping 9410
-relaxing 9410
-offload 9410
-suites 9410
-lists 9410
-animized 9410
-multilayer 9410
-standardizes 9410
-Judas 9410
-vacuuming 9410
-dentally 9410
-humanness 9410
-inch 9410
-Weissmuller 9410
-irresponsibly 9410
-luckily 9410
-culled 9410
-medical 9410
-bloodbath 9410
-subschema 9410
-animals 9410
-Micronesia 9410
-repetitions 9410
-Antares 9410
-ventilate 9410
-pityingly 9410
-interdependent 9410
-Graves 9410
-neonatal 9410
-chafe 9410
-honoring 9410
-realtor 9410
-elite 9410
-funereal 9410
-abrogating 9410
-sorters 9410
-Conley 9410
-lectured 9410
-Abraham 9410
-Hawaii 9410
-cage 9410
-hushes 9410
-Simla 9410
-reporters 9410
-Dutchman 9410
-descendants 9410
-groupings 9410
-dissociate 9410
-coexist 9410
-Beebe 9410
-Taoism 9410
-Connally 9410
-fetched 9410
-checkpoints 9410
-rusting 9410
-galling 9410
-obliterates 9410
-traitor 9410
-resumes 9410
-analyzable 9410
-terminator 9410
-gritty 9410
-firearm 9410
-minima 9410
-Selfridge 9410
-disable 9410
-witchcraft 9410
-betroth 9410
-Manhattanize 9410
-imprint 9410
-peeked 9410
-swelling 9410
-interrelationships 9410
-riser 9410
-Gandhian 9410
-peacock 9410
-bee 9410
-kanji 9410
-dental 9410
-scarf 9410
-chasm 9410
-insolence 9410
-syndicate 9410
-alike 9410
-imperial 9410
-convulsion 9410
-railway 9410
-validate 9410
-normalizes 9410
-comprehensive 9410
-chewing 9410
-denizen 9410
-schemer 9410
-chronicle 9410
-Kline 9410
-Anatole 9410
-partridges 9410
-brunch 9410
-recruited 9410
-dimensions 9410
-Chicana 9410
-announced 9410
-praised 9410
-employing 9410
-linear 9410
-quagmire 9410
-western 9410
-relishing 9410
-serving 9410
-scheduling 9410
-lore 9410
-eventful 9410
-arteriole 9410
-disentangle 9410
-cured 9410
-Fenton 9410
-avoidable 9410
-drains 9410
-detectably 9410
-husky 9410
-impelling 9410
-undoes 9410
-evened 9410
-squeezes 9410
-destroyer 9410
-rudeness 9410
-beaner 9410
-boorish 9410
-Everhart 9410
-encompass 9410
-mushrooms 9410
-Alison 9410
-externally 9410
-pellagra 9410
-cult 9410
-creek 9410
-Huffman 9410
-Majorca 9410
-governing 9410
-gadfly 9410
-reassigned 9410
-intentness 9410
-craziness 9410
-psychic 9410
-squabbled 9410
-burlesque 9410
-capped 9410
-extracted 9410
-DiMaggio 9410
-exclamation 9410
-subdirectory 9410
-Gothicism 9410
-feminine 9410
-metaphysically 9410
-sanding 9410
-Miltonism 9410
-freakish 9410
-index 9410
-straight 9410
-flurried 9410
-denotative 9410
-coming 9410
-commencements 9410
-gentleman 9410
-gifted 9410
-Shanghais 9410
-sportswriting 9410
-sloping 9410
-navies 9410
-leaflet 9410
-shooter 9410
-Joplin 9410
-babies 9410
-assails 9410
-admiring 9410
-swaying 9410
-Goldstine 9410
-fitting 9410
-Norwalk 9410
-analogy 9410
-deludes 9410
-cokes 9410
-Clayton 9410
-exhausts 9410
-causality 9410
-sating 9410
-icon 9410
-throttles 9410
-communicants 9410
-dehydrate 9410
-priceless 9410
-publicly 9410
-incidentals 9410
-commonplace 9410
-mumbles 9410
-furthermore 9410
-cautioned 9410
-parametrized 9410
-registration 9410
-sadly 9410
-positioning 9410
-babysitting 9410
-eternal 9410
-hoarder 9410
-congregates 9410
-rains 9410
-workers 9410
-sags 9410
-unplug 9410
-garage 9410
-boulder 9410
-specifics 9410
-Teresa 9410
-Winsett 9410
-convenient 9410
-buckboards 9410
-amenities 9410
-resplendent 9410
-sews 9410
-participated 9410
-Simon 9410
-certificates 9410
-Fitzpatrick 9410
-Evanston 9410
-misted 9410
-textures 9410
-save 9410
-count 9410
-rightful 9410
-chaperone 9410
-Lizzy 9410
-clenched 9410
-effortlessly 9410
-accessed 9410
-beaters 9410
-Hornblower 9410
-vests 9410
-indulgences 9410
-infallibly 9410
-unwilling 9410
-excrete 9410
-spools 9410
-crunches 9410
-overestimating 9410
-ineffective 9410
-humiliation 9410
-sophomore 9410
-star 9410
-rifles 9410
-dialysis 9410
-arriving 9410
-indulge 9410
-clockers 9410
-languages 9410
-Antarctica 9410
-percentage 9410
-ceiling 9410
-specification 9410
-regimented 9410
-ciphers 9410
-pictures 9410
-serpents 9410
-allot 9410
-realized 9410
-mayoral 9410
-opaquely 9410
-hostess 9410
-fiftieth 9410
-incorrectly 9410
-decomposition 9410
-stranglings 9410
-mixture 9410
-electroencephalography 9410
-similarities 9410
-charges 9410
-freest 9410
-Greenberg 9410
-tinting 9410
-expelled 9410
-warm 9410
-smoothed 9410
-deductions 9410
-Romano 9410
-bitterroot 9410
-corset 9410
-securing 9410
-environing 9410
-cute 9410
-Crays 9410
-heiress 9410
-inform 9410
-avenge 9410
-universals 9410
-Kinsey 9410
-ravines 9410
-bestseller 9410
-equilibrium 9410
-extents 9410
-relatively 9410
-pressure 9410
-critiques 9410
-befouled 9410
-rightfully 9410
-mechanizing 9410
-Latinizes 9410
-timesharing 9410
-Aden 9410
-embassies 9410
-males 9410
-shapelessly 9410
-mastering 9410
-Newtonian 9410
-finishers 9410
-abates 9410
-teem 9410
-kiting 9410
-stodgy 9410
-feed 9410
-guitars 9410
-airships 9410
-store 9410
-denounces 9410
-Pyle 9410
-Saxony 9410
-serializations 9410
-Peruvian 9410
-taxonomically 9410
-kingdom 9410
-stint 9410
-Sault 9410
-faithful 9410
-Ganymede 9410
-tidiness 9410
-gainful 9410
-contrary 9410
-Tipperary 9410
-tropics 9410
-theorizers 9410
-renew 9410
-already 9410
-terminal 9410
-Hegelian 9410
-hypothesizer 9410
-warningly 9410
-journalizing 9410
-nested 9410
-Lars 9410
-saplings 9410
-foothill 9410
-labeled 9410
-imperiously 9410
-reporters 9410
-furnishings 9410
-precipitable 9410
-discounts 9410
-excises 9410
-Stalin 9410
-despot 9410
-ripeness 9410
-Arabia 9410
-unruly 9410
-mournfulness 9410
-boom 9410
-slaughter 9410
-Sabine 9410
-handy 9410
-rural 9410
-organizer 9410
-shipyard 9410
-civics 9410
-inaccuracy 9410
-rules 9410
-juveniles 9410
-comprised 9410
-investigations 9410
-stabilizes 9410
-seminaries 9410
-Hunter 9410
-sporty 9410
-test 9410
-weasels 9410
-CERN 9410
-tempering 9410
-afore 9410
-Galatean 9410
-techniques 9410
-error 9410
-veranda 9410
-severely 9410
-Cassites 9410
-forthcoming 9410
-guides 9410
-vanish 9410
-lied 9410
-sawtooth 9410
-fated 9410
-gradually 9410
-widens 9410
-preclude 9410
-evenhandedly 9410
-percentage 9410
-disobedience 9410
-humility 9410
-gleaning 9410
-petted 9410
-bloater 9410
-minion 9410
-marginal 9410
-apiary 9410
-measures 9410
-precaution 9410
-repelled 9410
-primary 9410
-coverings 9410
-Artemia 9410
-navigate 9410
-spatial 9410
-Gurkha 9410
-meanwhile 9410
-Melinda 9410
-Butterfield 9410
-Aldrich 9410
-previewing 9410
-glut 9410
-unaffected 9410
-inmate 9410
-mineral 9410
-impending 9410
-meditation 9410
-ideas 9410
-miniaturizes 9410
-lewdly 9410
-title 9410
-youthfulness 9410
-creak 9410
-Chippewa 9410
-clamored 9410
-freezes 9410
-forgivably 9410
-reduce 9410
-McGovern 9410
-Nazis 9410
-epistle 9410
-socializes 9410
-conceptions 9410
-Kevin 9410
-uncovering 9410
-chews 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-raining 9410
-infest 9410
-compartment 9410
-minting 9410
-ducks 9410
-roped 9410
-waltz 9410
-Lillian 9410
-repressions 9410
-chillingly 9410
-noncritical 9410
-lithograph 9410
-spongers 9410
-parenthood 9410
-posed 9410
-instruments 9410
-filial 9410
-fixedly 9410
-relives 9410
-Pandora 9410
-watering 9410
-ungrateful 9410
-secures 9410
-poison 9410
-dusted 9410
-encompasses 9410
-presentation 9410
-Kantian 9410
-select fld3,period,price,price2 from t2,t3 where t2.fld1=t3.t2nr and period >= 1001 and period <= 1002 and t2.companynr = 37 order by fld3,period, price;
-fld3 period price price2
-admonishing 1002 28357832 8723648
-analyzable 1002 28357832 8723648
-annihilates 1001 5987435 234724
-Antares 1002 28357832 8723648
-astound 1001 5987435 234724
-audiology 1001 5987435 234724
-Augustine 1002 28357832 8723648
-Baird 1002 28357832 8723648
-bewilderingly 1001 5987435 234724
-breaking 1001 5987435 234724
-Conley 1001 5987435 234724
-dentally 1002 28357832 8723648
-dissociate 1002 28357832 8723648
-elite 1001 5987435 234724
-eschew 1001 5987435 234724
-Eulerian 1001 5987435 234724
-flanking 1001 5987435 234724
-foldout 1002 28357832 8723648
-funereal 1002 28357832 8723648
-galling 1002 28357832 8723648
-Graves 1001 5987435 234724
-grazing 1001 5987435 234724
-groupings 1001 5987435 234724
-handgun 1001 5987435 234724
-humility 1002 28357832 8723648
-impulsive 1002 28357832 8723648
-inch 1001 5987435 234724
-intelligibility 1001 5987435 234724
-jarring 1001 5987435 234724
-lawgiver 1001 5987435 234724
-lectured 1002 28357832 8723648
-Merritt 1002 28357832 8723648
-neonatal 1001 5987435 234724
-offload 1002 28357832 8723648
-parters 1002 28357832 8723648
-pityingly 1002 28357832 8723648
-puddings 1002 28357832 8723648
-Punjab 1001 5987435 234724
-quitter 1002 28357832 8723648
-realtor 1001 5987435 234724
-relaxing 1001 5987435 234724
-repetitions 1001 5987435 234724
-resumes 1001 5987435 234724
-Romans 1002 28357832 8723648
-rusting 1001 5987435 234724
-scholastics 1001 5987435 234724
-skulking 1002 28357832 8723648
-stated 1002 28357832 8723648
-suites 1002 28357832 8723648
-sureties 1001 5987435 234724
-testicle 1002 28357832 8723648
-tinily 1002 28357832 8723648
-tragedies 1001 5987435 234724
-trimmings 1001 5987435 234724
-vacuuming 1001 5987435 234724
-ventilate 1001 5987435 234724
-wallet 1001 5987435 234724
-Weissmuller 1002 28357832 8723648
-Wotan 1002 28357832 8723648
-select t2.fld1,fld3,period,price,price2 from t2,t3 where t2.fld1>= 18201 and t2.fld1 <= 18811 and t2.fld1=t3.t2nr and period = 1001 and t2.companynr = 37;
-fld1 fld3 period price price2
-018201 relaxing 1001 5987435 234724
-018601 vacuuming 1001 5987435 234724
-018801 inch 1001 5987435 234724
-018811 repetitions 1001 5987435 234724
-create table t4 (
-companynr tinyint(2) unsigned zerofill NOT NULL default '00',
-companyname char(30) NOT NULL default '',
-PRIMARY KEY (companynr),
-UNIQUE KEY companyname(companyname)
-) ENGINE=MyISAM MAX_ROWS=50 PACK_KEYS=1 COMMENT='companynames';
-select STRAIGHT_JOIN t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select SQL_SMALL_RESULT t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select * from t1,t1 t12;
-Period Varor_period Period Varor_period
-9410 9412 9410 9412
-select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505;
-fld1 fld1
-250501 250501
-250502 250501
-250503 250501
-250504 250501
-250505 250501
-250501 250502
-250502 250502
-250503 250502
-250504 250502
-250505 250502
-250501 250503
-250502 250503
-250503 250503
-250504 250503
-250505 250503
-250501 250504
-250502 250504
-250503 250504
-250504 250504
-250505 250504
-250501 250505
-250502 250505
-250503 250505
-250504 250505
-250505 250505
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-insert into t2 (fld1, companynr) values (999999,99);
-select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-companynr companyname
-99 NULL
-select count(*) from t2 left join t4 using (companynr) where t4.companynr is not null;
-count(*)
-1199
-explain select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1 Using where; Not exists
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200 Using where; Not exists
-select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-companynr companyname
-select count(*) from t2 left join t4 using (companynr) where companynr is not null;
-count(*)
-1200
-explain select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-delete from t2 where fld1=999999;
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 and t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 and companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0 or t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where ifnull(t2.companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0 or companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where ifnull(companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-SET optimizer_switch=@save_optimizer_switch;
-select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-companynr companynr
-37 36
-41 40
-explain select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 index NULL PRIMARY 1 NULL 12 Using index; Using temporary
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where; Using join buffer (flat, BNL join)
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where t2.fld1 = 38208 and t2.fld1=t3.t2nr and period = 1008 or t2.fld1 = 38008 and t2.fld1 =t3.t2nr and period = 1008;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t2.fld1 = 38208 or t2.fld1 = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t3.t2nr = 38208 or t3.t2nr = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select period from t1 where (((period > 0) or period < 10000 or (period = 1900)) and (period=1900 and period <= 1901) or (period=1903 and (period=1903)) and period>=1902) or ((period=1904 or period=1905) or (period=1906 or period>1907)) or (period=1908 and period = 1909);
-period
-9410
-select period from t1 where ((period > 0 and period < 1) or (((period > 0 and period < 100) and (period > 10)) or (period > 10)) or (period > 0 and (period > 5 or period > 6)));
-period
-9410
-select a.fld1 from t2 as a,t2 b where ((a.fld1 = 250501 and a.fld1=b.fld1) or a.fld1=250502 or a.fld1=250503 or (a.fld1=250505 and a.fld1<=b.fld1 and b.fld1>=a.fld1)) and a.fld1=b.fld1;
-fld1
-250501
-250502
-250503
-250505
-select fld1 from t2 where fld1 in (250502,98005,98006,250503,250605,250606) and fld1 >=250502 and fld1 not in (250605,250606);
-fld1
-250502
-250503
-select fld1 from t2 where fld1 between 250502 and 250504;
-fld1
-250502
-250503
-250504
-select fld3 from t2 where (((fld3 like "_%L%" ) or (fld3 like "%ok%")) and ( fld3 like "L%" or fld3 like "G%")) and fld3 like "L%" ;
-fld3
-label
-labeled
-labeled
-landslide
-laterally
-leaflet
-lewdly
-Lillian
-luckily
-select count(*) from t1;
-count(*)
-1
-select companynr,count(*),sum(fld1) from t2 group by companynr;
-companynr count(*) sum(fld1)
-00 82 10355753
-29 95 14473298
-34 70 17788966
-36 215 22786296
-37 588 83602098
-40 37 6618386
-41 52 12816335
-50 11 1595438
-53 4 793210
-58 23 2254293
-65 10 2284055
-68 12 3097288
-select companynr,count(*) from t2 group by companynr order by companynr desc limit 5;
-companynr count(*)
-68 12
-65 10
-58 23
-53 4
-50 11
-select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-explain extended select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 100.00 Using where
-Warnings:
-Note 1003 select count(0) AS `count(*)`,min(`test`.`t2`.`fld4`) AS `min(fld4)`,max(`test`.`t2`.`fld4`) AS `max(fld4)`,sum(`test`.`t2`.`fld1`) AS `sum(fld1)`,avg(`test`.`t2`.`fld1`) AS `avg(fld1)`,std(`test`.`t2`.`fld1`) AS `std(fld1)`,variance(`test`.`t2`.`fld1`) AS `variance(fld1)` from `test`.`t2` where `test`.`t2`.`companynr` = 34 and `test`.`t2`.`fld4` <> ''
-select companynr,count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 group by companynr limit 3;
-companynr count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-00 82 Anthony windmills 10355753 126289.6707 115550.9757 13352027981.7087
-29 95 abut wetness 14473298 152350.5053 8368.5480 70032594.9026
-34 70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-select companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select /*! SQL_SMALL_RESULT */ companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select companynr,count(price),sum(price),min(price),max(price),avg(price) from t3 group by companynr ;
-companynr count(price) sum(price) min(price) max(price) avg(price)
-37 12543 309394878010 5987435 39654943 24666736.6667
-78 8362 414611089292 726498 98439034 49582766.0000
-101 4181 3489454238 834598 834598 834598.0000
-154 4181 4112197254950 983543950 983543950 983543950.0000
-311 4181 979599938 234298 234298 234298.0000
-447 4181 9929180954 2374834 2374834 2374834.0000
-512 4181 3288532102 786542 786542 786542.0000
-select distinct mod(companynr,10) from t4 group by companynr;
-mod(companynr,10)
-0
-9
-4
-6
-7
-1
-3
-8
-5
-select distinct 1 from t4 group by companynr;
-1
-1
-select count(distinct fld1) from t2;
-count(distinct fld1)
-1199
-select companynr,count(distinct fld1) from t2 group by companynr;
-companynr count(distinct fld1)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(*) from t2 group by companynr;
-companynr count(*)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,1000))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,1000)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,200))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,200)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct floor(fld1/100)) from t2 group by companynr;
-companynr count(distinct floor(fld1/100))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select companynr,count(distinct concat(repeat(65,1000),floor(fld1/100))) from t2 group by companynr;
-companynr count(distinct concat(repeat(65,1000),floor(fld1/100)))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select sum(fld1),fld3 from t2 where fld3="Romans" group by fld1 limit 10;
-sum(fld1) fld3
-11402 Romans
-select name,count(*) from t3 where name='cloakroom' group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name='cloakroom' and price>10 group by name;
-name count(*)
-cloakroom 4181
-select count(*) from t3 where name='cloakroom' and price2=823742;
-count(*)
-4181
-select name,count(*) from t3 where name='cloakroom' and price2=823742 group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name >= "extramarital" and price <= 39654943 group by name;
-name count(*)
-extramarital 4181
-gazer 4181
-gems 4181
-Iranizes 4181
-spates 4181
-tucked 4181
-violinist 4181
-select t2.fld3,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld3 count(*)
-spates 4181
-select companynr|0,companyname from t4 group by 1;
-companynr|0 companyname
-0 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by t2.companynr order by companyname;
-companynr companyname count(*)
-29 company 1 95
-68 company 10 12
-50 company 11 11
-34 company 2 70
-36 company 3 215
-37 company 4 588
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-00 Unknown 82
-select t2.fld1,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld1 count(*)
-158402 4181
-select sum(Period)/count(*) from t1;
-sum(Period)/count(*)
-9410.0000
-select companynr,count(price) as "count",sum(price) as "sum" ,abs(sum(price)/count(price)-avg(price)) as "diff",(0+count(price))*companynr as func from t3 group by companynr;
-companynr count sum diff func
-37 12543 309394878010 0.0000 464091
-78 8362 414611089292 0.0000 652236
-101 4181 3489454238 0.0000 422281
-154 4181 4112197254950 0.0000 643874
-311 4181 979599938 0.0000 1300291
-447 4181 9929180954 0.0000 1868907
-512 4181 3288532102 0.0000 2140672
-select companynr,sum(price)/count(price) as avg from t3 group by companynr having avg > 70000000 order by avg;
-companynr avg
-154 983543950.0000
-select companynr,count(*) from t2 group by companynr order by 2 desc;
-companynr count(*)
-37 588
-36 215
-29 95
-00 82
-34 70
-41 52
-40 37
-58 23
-68 12
-50 11
-65 10
-53 4
-select companynr,count(*) from t2 where companynr > 40 group by companynr order by 2 desc;
-companynr count(*)
-41 52
-58 23
-68 12
-50 11
-65 10
-53 4
-select t2.fld4,t2.fld1,count(price),sum(price),min(price),max(price),avg(price) from t3,t2 where t3.companynr = 37 and t2.fld1 = t3.t2nr group by fld1,t2.fld4;
-fld4 fld1 count(price) sum(price) min(price) max(price) avg(price)
-teethe 000001 1 5987435 5987435 5987435 5987435.0000
-dreaded 011401 1 5987435 5987435 5987435 5987435.0000
-scholastics 011402 1 28357832 28357832 28357832 28357832.0000
-audiology 011403 1 39654943 39654943 39654943 39654943.0000
-wallet 011501 1 5987435 5987435 5987435 5987435.0000
-parters 011701 1 5987435 5987435 5987435 5987435.0000
-eschew 011702 1 28357832 28357832 28357832 28357832.0000
-quitter 011703 1 39654943 39654943 39654943 39654943.0000
-neat 012001 1 5987435 5987435 5987435 5987435.0000
-Steinberg 012003 1 39654943 39654943 39654943 39654943.0000
-balled 012301 1 5987435 5987435 5987435 5987435.0000
-persist 012302 1 28357832 28357832 28357832 28357832.0000
-attainments 012303 1 39654943 39654943 39654943 39654943.0000
-capably 012501 1 5987435 5987435 5987435 5987435.0000
-impulsive 012602 1 28357832 28357832 28357832 28357832.0000
-starlet 012603 1 39654943 39654943 39654943 39654943.0000
-featherweight 012701 1 5987435 5987435 5987435 5987435.0000
-pessimist 012702 1 28357832 28357832 28357832 28357832.0000
-daughter 012703 1 39654943 39654943 39654943 39654943.0000
-lawgiver 013601 1 5987435 5987435 5987435 5987435.0000
-stated 013602 1 28357832 28357832 28357832 28357832.0000
-readable 013603 1 39654943 39654943 39654943 39654943.0000
-testicle 013801 1 5987435 5987435 5987435 5987435.0000
-Parsifal 013802 1 28357832 28357832 28357832 28357832.0000
-leavings 013803 1 39654943 39654943 39654943 39654943.0000
-squeaking 013901 1 5987435 5987435 5987435 5987435.0000
-contrasted 016001 1 5987435 5987435 5987435 5987435.0000
-leftover 016201 1 5987435 5987435 5987435 5987435.0000
-whiteners 016202 1 28357832 28357832 28357832 28357832.0000
-erases 016301 1 5987435 5987435 5987435 5987435.0000
-Punjab 016302 1 28357832 28357832 28357832 28357832.0000
-Merritt 016303 1 39654943 39654943 39654943 39654943.0000
-sweetish 018001 1 5987435 5987435 5987435 5987435.0000
-dogging 018002 1 28357832 28357832 28357832 28357832.0000
-scornfully 018003 1 39654943 39654943 39654943 39654943.0000
-fetters 018012 1 28357832 28357832 28357832 28357832.0000
-bivalves 018013 1 39654943 39654943 39654943 39654943.0000
-skulking 018021 1 5987435 5987435 5987435 5987435.0000
-flint 018022 1 28357832 28357832 28357832 28357832.0000
-flopping 018023 1 39654943 39654943 39654943 39654943.0000
-Judas 018032 1 28357832 28357832 28357832 28357832.0000
-vacuuming 018033 1 39654943 39654943 39654943 39654943.0000
-medical 018041 1 5987435 5987435 5987435 5987435.0000
-bloodbath 018042 1 28357832 28357832 28357832 28357832.0000
-subschema 018043 1 39654943 39654943 39654943 39654943.0000
-interdependent 018051 1 5987435 5987435 5987435 5987435.0000
-Graves 018052 1 28357832 28357832 28357832 28357832.0000
-neonatal 018053 1 39654943 39654943 39654943 39654943.0000
-sorters 018061 1 5987435 5987435 5987435 5987435.0000
-epistle 018062 1 28357832 28357832 28357832 28357832.0000
-Conley 018101 1 5987435 5987435 5987435 5987435.0000
-lectured 018102 1 28357832 28357832 28357832 28357832.0000
-Abraham 018103 1 39654943 39654943 39654943 39654943.0000
-cage 018201 1 5987435 5987435 5987435 5987435.0000
-hushes 018202 1 28357832 28357832 28357832 28357832.0000
-Simla 018402 1 28357832 28357832 28357832 28357832.0000
-reporters 018403 1 39654943 39654943 39654943 39654943.0000
-coexist 018601 1 5987435 5987435 5987435 5987435.0000
-Beebe 018602 1 28357832 28357832 28357832 28357832.0000
-Taoism 018603 1 39654943 39654943 39654943 39654943.0000
-Connally 018801 1 5987435 5987435 5987435 5987435.0000
-fetched 018802 1 28357832 28357832 28357832 28357832.0000
-checkpoints 018803 1 39654943 39654943 39654943 39654943.0000
-gritty 018811 1 5987435 5987435 5987435 5987435.0000
-firearm 018812 1 28357832 28357832 28357832 28357832.0000
-minima 019101 1 5987435 5987435 5987435 5987435.0000
-Selfridge 019102 1 28357832 28357832 28357832 28357832.0000
-disable 019103 1 39654943 39654943 39654943 39654943.0000
-witchcraft 019201 1 5987435 5987435 5987435 5987435.0000
-betroth 030501 1 5987435 5987435 5987435 5987435.0000
-Manhattanize 030502 1 28357832 28357832 28357832 28357832.0000
-imprint 030503 1 39654943 39654943 39654943 39654943.0000
-swelling 031901 1 5987435 5987435 5987435 5987435.0000
-interrelationships 036001 1 5987435 5987435 5987435 5987435.0000
-riser 036002 1 28357832 28357832 28357832 28357832.0000
-bee 038001 1 5987435 5987435 5987435 5987435.0000
-kanji 038002 1 28357832 28357832 28357832 28357832.0000
-dental 038003 1 39654943 39654943 39654943 39654943.0000
-railway 038011 1 5987435 5987435 5987435 5987435.0000
-validate 038012 1 28357832 28357832 28357832 28357832.0000
-normalizes 038013 1 39654943 39654943 39654943 39654943.0000
-Kline 038101 1 5987435 5987435 5987435 5987435.0000
-Anatole 038102 1 28357832 28357832 28357832 28357832.0000
-partridges 038103 1 39654943 39654943 39654943 39654943.0000
-recruited 038201 1 5987435 5987435 5987435 5987435.0000
-dimensions 038202 1 28357832 28357832 28357832 28357832.0000
-Chicana 038203 1 39654943 39654943 39654943 39654943.0000
-select t3.companynr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 group by companynr,fld3;
-companynr fld3 sum(price)
-512 boat 786542
-512 capably 786542
-512 cupboard 786542
-512 decliner 786542
-512 descendants 786542
-512 dopers 786542
-512 erases 786542
-512 Micronesia 786542
-512 Miles 786542
-512 skies 786542
-select t2.companynr,count(*),min(fld3),max(fld3),sum(price),avg(price) from t2,t3 where t3.companynr >= 30 and t3.companynr <= 58 and t3.t2nr = t2.fld1 and 1+1=2 group by t2.companynr;
-companynr count(*) min(fld3) max(fld3) sum(price) avg(price)
-00 1 Omaha Omaha 5987435 5987435.0000
-36 1 dubbed dubbed 28357832 28357832.0000
-37 83 Abraham Wotan 1908978016 22999735.1325
-50 2 scribbled tapestry 68012775 34006387.5000
-select t3.companynr+0,t3.t2nr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 37 group by 1,t3.t2nr,fld3,fld3,fld3,fld3,fld3 order by fld1;
-t3.companynr+0 t2nr fld3 sum(price)
-37 1 Omaha 5987435
-37 11401 breaking 5987435
-37 11402 Romans 28357832
-37 11403 intercepted 39654943
-37 11501 bewilderingly 5987435
-37 11701 astound 5987435
-37 11702 admonishing 28357832
-37 11703 sumac 39654943
-37 12001 flanking 5987435
-37 12003 combed 39654943
-37 12301 Eulerian 5987435
-37 12302 dubbed 28357832
-37 12303 Kane 39654943
-37 12501 annihilates 5987435
-37 12602 Wotan 28357832
-37 12603 snatching 39654943
-37 12701 grazing 5987435
-37 12702 Baird 28357832
-37 12703 celery 39654943
-37 13601 handgun 5987435
-37 13602 foldout 28357832
-37 13603 mystic 39654943
-37 13801 intelligibility 5987435
-37 13802 Augustine 28357832
-37 13803 teethe 39654943
-37 13901 scholastics 5987435
-37 16001 audiology 5987435
-37 16201 wallet 5987435
-37 16202 parters 28357832
-37 16301 eschew 5987435
-37 16302 quitter 28357832
-37 16303 neat 39654943
-37 18001 jarring 5987435
-37 18002 tinily 28357832
-37 18003 balled 39654943
-37 18012 impulsive 28357832
-37 18013 starlet 39654943
-37 18021 lawgiver 5987435
-37 18022 stated 28357832
-37 18023 readable 39654943
-37 18032 testicle 28357832
-37 18033 Parsifal 39654943
-37 18041 Punjab 5987435
-37 18042 Merritt 28357832
-37 18043 Quixotism 39654943
-37 18051 sureties 5987435
-37 18052 puddings 28357832
-37 18053 tapestry 39654943
-37 18061 trimmings 5987435
-37 18062 humility 28357832
-37 18101 tragedies 5987435
-37 18102 skulking 28357832
-37 18103 flint 39654943
-37 18201 relaxing 5987435
-37 18202 offload 28357832
-37 18402 suites 28357832
-37 18403 lists 39654943
-37 18601 vacuuming 5987435
-37 18602 dentally 28357832
-37 18603 humanness 39654943
-37 18801 inch 5987435
-37 18802 Weissmuller 28357832
-37 18803 irresponsibly 39654943
-37 18811 repetitions 5987435
-37 18812 Antares 28357832
-37 19101 ventilate 5987435
-37 19102 pityingly 28357832
-37 19103 interdependent 39654943
-37 19201 Graves 5987435
-37 30501 neonatal 5987435
-37 30502 scribbled 28357832
-37 30503 chafe 39654943
-37 31901 realtor 5987435
-37 36001 elite 5987435
-37 36002 funereal 28357832
-37 38001 Conley 5987435
-37 38002 lectured 28357832
-37 38003 Abraham 39654943
-37 38011 groupings 5987435
-37 38012 dissociate 28357832
-37 38013 coexist 39654943
-37 38101 rusting 5987435
-37 38102 galling 28357832
-37 38103 obliterates 39654943
-37 38201 resumes 5987435
-37 38202 analyzable 28357832
-37 38203 terminator 39654943
-select sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1= t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008;
-sum(price)
-234298
-select t2.fld1,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1 = t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008 or t3.t2nr = t2.fld1 and t2.fld1 = 38008 group by t2.fld1;
-fld1 sum(price)
-038008 234298
-explain select fld3 from t2 where 1>2 or 2>3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select fld3 from t2 where fld1=fld1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199
-select companynr,fld1 from t2 HAVING fld1=250501 or fld1=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,fld1 from t2 WHERE fld1>=250501 HAVING fld1<=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,count(*) as count,sum(fld1) as sum from t2 group by companynr having count > 40 and sum/count >= 120000;
-companynr count sum
-00 82 10355753
-29 95 14473298
-34 70 17788966
-37 588 83602098
-41 52 12816335
-select companynr from t2 group by companynr having count(*) > 40 and sum(fld1)/count(*) >= 120000 ;
-companynr
-00
-29
-34
-37
-41
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by companyname having t2.companynr >= 40;
-companynr companyname count(*)
-68 company 10 12
-50 company 11 11
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-select count(*) from t2;
-count(*)
-1199
-select count(*) from t2 where fld1 < 098024;
-count(*)
-387
-select min(fld1) from t2 where fld1>= 098024;
-min(fld1)
-98024
-select max(fld1) from t2 where fld1>= 098024;
-max(fld1)
-1232609
-select count(*) from t3 where price2=76234234;
-count(*)
-4181
-select count(*) from t3 where companynr=512 and price2=76234234;
-count(*)
-4181
-explain select min(fld1),max(fld1),count(*) from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(fld1),max(fld1),count(*) from t2;
-min(fld1) max(fld1) count(*)
-0 1232609 1199
-select min(t2nr),max(t2nr) from t3 where t2nr=2115 and price2=823742;
-min(t2nr) max(t2nr)
-2115 2115
-select count(*),min(t2nr),max(t2nr) from t3 where name='spates' and companynr=78;
-count(*) min(t2nr) max(t2nr)
-4181 4 41804
-select t2nr,count(*) from t3 where name='gems' group by t2nr limit 20;
-t2nr count(*)
-9 1
-19 1
-29 1
-39 1
-49 1
-59 1
-69 1
-79 1
-89 1
-99 1
-109 1
-119 1
-129 1
-139 1
-149 1
-159 1
-169 1
-179 1
-189 1
-199 1
-select max(t2nr) from t3 where price=983543950;
-max(t2nr)
-41807
-select t1.period from t3 = t1 limit 1;
-period
-1001
-select t1.period from t1 as t1 limit 1;
-period
-9410
-select t1.period as "Nuvarande period" from t1 as t1 limit 1;
-Nuvarande period
-9410
-select period as ok_period from t1 limit 1;
-ok_period
-9410
-select period as ok_period from t1 group by ok_period limit 1;
-ok_period
-9410
-select 1+1 as summa from t1 group by summa limit 1;
-summa
-2
-select period as "Nuvarande period" from t1 group by "Nuvarande period" limit 1;
-Nuvarande period
-9410
-show tables;
-Tables_in_test
-t1
-t2
-t3
-t4
-show tables from test like "s%";
-Tables_in_test (s%)
-show tables from test like "t?";
-Tables_in_test (t?)
-show full columns from t2;
-Field Type Collation Null Key Default Extra Privileges Comment
-auto int(11) NULL NO PRI NULL auto_increment #
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-companynr tinyint(2) unsigned zerofill NULL NO 00 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 'f%';
-Field Type Collation Null Key Default Extra Privileges Comment
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 's%';
-Field Type Collation Null Key Default Extra Privileges Comment
-show keys from t2;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t2 0 PRIMARY 1 auto A 1199 NULL NULL BTREE
-t2 0 fld1 1 fld1 A 1199 NULL NULL BTREE
-t2 1 fld3 1 fld3 A NULL NULL NULL BTREE
-drop table t4, t3, t2, t1;
-CREATE TABLE t1 (
-cont_nr int(11) NOT NULL auto_increment,
-ver_nr int(11) NOT NULL default '0',
-aufnr int(11) NOT NULL default '0',
-username varchar(50) NOT NULL default '',
-hdl_nr int(11) NOT NULL default '0',
-eintrag date NOT NULL default '0000-00-00',
-st_klasse varchar(40) NOT NULL default '',
-st_wert varchar(40) NOT NULL default '',
-st_zusatz varchar(40) NOT NULL default '',
-st_bemerkung varchar(255) NOT NULL default '',
-kunden_art varchar(40) NOT NULL default '',
-mcbs_knr int(11) default NULL,
-mcbs_aufnr int(11) NOT NULL default '0',
-schufa_status char(1) default '?',
-bemerkung text,
-wirknetz text,
-wf_igz int(11) NOT NULL default '0',
-tarifcode varchar(80) default NULL,
-recycle char(1) default NULL,
-sim varchar(30) default NULL,
-mcbs_tpl varchar(30) default NULL,
-emp_nr int(11) NOT NULL default '0',
-laufzeit int(11) default NULL,
-hdl_name varchar(30) default NULL,
-prov_hdl_nr int(11) NOT NULL default '0',
-auto_wirknetz varchar(50) default NULL,
-auto_billing varchar(50) default NULL,
-touch timestamp NOT NULL,
-kategorie varchar(50) default NULL,
-kundentyp varchar(20) NOT NULL default '',
-sammel_rech_msisdn varchar(30) NOT NULL default '',
-p_nr varchar(9) NOT NULL default '',
-suffix char(3) NOT NULL default '',
-PRIMARY KEY (cont_nr),
-KEY idx_aufnr(aufnr),
-KEY idx_hdl_nr(hdl_nr),
-KEY idx_st_klasse(st_klasse),
-KEY ver_nr(ver_nr),
-KEY eintrag_idx(eintrag),
-KEY emp_nr_idx(emp_nr),
-KEY wf_igz(wf_igz),
-KEY touch(touch),
-KEY hdl_tag(eintrag,hdl_nr),
-KEY prov_hdl_nr(prov_hdl_nr),
-KEY mcbs_aufnr(mcbs_aufnr),
-KEY kundentyp(kundentyp),
-KEY p_nr(p_nr,suffix)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3359356,405,3359356,'Mustermann Musterfrau',52500,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1485525,2122316,'+','','N',1909160,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',3,24,'MobilCom Shop Koeln',52500,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359357,468,3359357,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1503580,2139699,'+','','P',1909171,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359358,407,3359358,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1501358,2137473,'N','','N',1909159,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359359,468,3359359,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1507831,2143894,'+','','P',1909162,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359360,0,0,'Mustermann Musterfrau',29674907,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1900169997,2414578,'+',NULL,'N',1909148,'',NULL,NULL,'RV99066_2',20,NULL,'POS',29674907,NULL,NULL,20010202105916,'Mobilfunk','','','97317481','007');
-INSERT INTO t1 VALUES (3359361,406,3359361,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag storniert','','(7001-84):Storno, Kd. möchte nicht mehr','privat',NULL,0,'+','','P',1909150,'MobilComSuper92000D1(Akquise)',NULL,NULL,'MS9ND1',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359362,406,3359362,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1509984,2145874,'+','','P',1909154,'MobilComSuper92000D1(Akquise)',NULL,NULL,'MS9ND1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-SELECT ELT(FIELD(kundentyp,'PP','PPA','PG','PGA','FK','FKA','FP','FPA','K','KA','V','VA',''), 'Privat (Private Nutzung)','Privat (Private Nutzung) Sitz im Ausland','Privat (geschaeftliche Nutzung)','Privat (geschaeftliche Nutzung) Sitz im Ausland','Firma (Kapitalgesellschaft)','Firma (Kapitalgesellschaft) Sitz im Ausland','Firma (Personengesellschaft)','Firma (Personengesellschaft) Sitz im Ausland','oeff. rechtl. Koerperschaft','oeff. rechtl. Koerperschaft Sitz im Ausland','Eingetragener Verein','Eingetragener Verein Sitz im Ausland','Typ unbekannt') AS Kundentyp ,kategorie FROM t1 WHERE hdl_nr < 2000000 AND kategorie IN ('Prepaid','Mobilfunk') AND st_klasse = 'Workflow' GROUP BY kundentyp ORDER BY kategorie;
-Kundentyp kategorie
-Privat (Private Nutzung) Mobilfunk
-Warnings:
-Warning 1052 Column 'kundentyp' in group statement is ambiguous
-drop table t1;
-connection default;
-disconnect pipe_con;
-FOUND 1 /\[ERROR\] Create named pipe failed/ in second-mysqld.err
diff --git a/mysql-test/r/negation_elimination.result b/mysql-test/r/negation_elimination.result
deleted file mode 100644
index 1b08baee60a..00000000000
--- a/mysql-test/r/negation_elimination.result
+++ /dev/null
@@ -1,506 +0,0 @@
-drop table if exists t1;
-create table t1 (a int, key (a));
-insert into t1 values (NULL), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
-(10), (11), (12), (13), (14), (15), (16), (17), (18), (19);
-explain select * from t1 where not(not(a));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 20 Using where; Using index
-select * from t1 where not(not(a));
-a
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-explain select * from t1 where not(not(not(a > 10)));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 10 Using where; Using index
-select * from t1 where not(not(not(a > 10)));
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-explain select * from t1 where not(not(not(a < 5) and not(a > 10)));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 5 Using where; Using index
-select * from t1 where not(not(not(a < 5) and not(a > 10)));
-a
-5
-6
-7
-8
-9
-10
-explain select * from t1 where not(a = 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 19 Using where; Using index
-select * from t1 where not(a = 10);
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-11
-12
-13
-14
-15
-16
-17
-18
-19
-explain select * from t1 where not(a != 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 5 const 1 Using index
-select * from t1 where not(a != 1);
-a
-1
-explain select * from t1 where not(a < 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 11 Using where; Using index
-select * from t1 where not(a < 10);
-a
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-explain select * from t1 where not(a >= 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 9 Using where; Using index
-select * from t1 where not(a >= 10);
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-explain select * from t1 where not(a > 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 10 Using where; Using index
-select * from t1 where not(a > 10);
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-explain select * from t1 where not(a <= 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 10 Using where; Using index
-select * from t1 where not(a <= 10);
-a
-11
-12
-13
-14
-15
-16
-17
-18
-19
-explain select * from t1 where not(a is null);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 20 Using where; Using index
-select * from t1 where not(a is null);
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-explain select * from t1 where not(a is not null);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 5 const 1 Using where; Using index
-select * from t1 where not(a is not null);
-a
-NULL
-explain select * from t1 where not(a < 5 or a > 15);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 10 Using where; Using index
-select * from t1 where not(a < 5 or a > 15);
-a
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-explain select * from t1 where not(a < 15 and a > 5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 12 Using where; Using index
-select * from t1 where not(a < 15 and a > 5);
-a
-0
-1
-2
-3
-4
-5
-15
-16
-17
-18
-19
-explain select * from t1 where a = 2 or not(a < 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 12 Using where; Using index
-select * from t1 where a = 2 or not(a < 10);
-a
-2
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-explain select * from t1 where a > 5 and not(a > 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 4 Using where; Using index
-select * from t1 where a > 5 and not(a > 10);
-a
-6
-7
-8
-9
-10
-explain select * from t1 where a > 5 xor a < 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 21 Using where; Using index
-select * from t1 where a > 5 xor a < 10;
-a
-0
-1
-2
-3
-4
-5
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-explain select * from t1 where a = 2 or not(a < 5 or a > 15);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 11 Using where; Using index
-select * from t1 where a = 2 or not(a < 5 or a > 15);
-a
-2
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-explain select * from t1 where a = 7 or not(a < 15 and a > 5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 13 Using where; Using index
-select * from t1 where a = 7 or not(a < 15 and a > 5);
-a
-0
-1
-2
-3
-4
-5
-7
-15
-16
-17
-18
-19
-explain select * from t1 where NULL or not(a < 15 and a > 5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 12 Using where; Using index
-select * from t1 where NULL or not(a < 15 and a > 5);
-a
-0
-1
-2
-3
-4
-5
-15
-16
-17
-18
-19
-explain select * from t1 where not(NULL and a > 5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 6 Using where; Using index
-select * from t1 where not(NULL and a > 5);
-a
-0
-1
-2
-3
-4
-5
-explain select * from t1 where not(NULL or a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-select * from t1 where not(NULL or a);
-a
-explain select * from t1 where not(NULL and a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 5 const 1 Using index
-select * from t1 where not(NULL and a);
-a
-0
-explain select * from t1 where not((a < 5 or a < 10) and (not(a > 16) or a > 17));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 11 Using where; Using index
-select * from t1 where not((a < 5 or a < 10) and (not(a > 16) or a > 17));
-a
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-explain select * from t1 where not((a < 5 and a < 10) and (not(a > 16) or a > 17));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 15 Using where; Using index
-select * from t1 where not((a < 5 and a < 10) and (not(a > 16) or a > 17));
-a
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-explain select * from t1 where ((a between 5 and 15) and (not(a like 10)));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 10 Using where; Using index
-select * from t1 where ((a between 5 and 15) and (not(a like 10)));
-a
-5
-6
-7
-8
-9
-11
-12
-13
-14
-15
-# XOR (Note: XOR is negated by negating one of the operands)
-# Should return 6,7
-SELECT * FROM t1 WHERE ((a > 5) XOR (a > 7));
-a
-6
-7
-# Should return 0..5,8..19
-SELECT * FROM t1 WHERE ((NOT (a > 5)) XOR (a > 7));
-a
-0
-1
-2
-3
-4
-5
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-SELECT * FROM t1 WHERE ((a > 5) XOR (NOT (a > 7)));
-a
-0
-1
-2
-3
-4
-5
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-SELECT * FROM t1 WHERE NOT ((a > 5) XOR (a > 7));
-a
-0
-1
-2
-3
-4
-5
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-# Should return 6,7
-SELECT * FROM t1 WHERE NOT ((NOT (a > 5)) XOR (a > 7));
-a
-6
-7
-SELECT * FROM t1 WHERE NOT ((a > 5) XOR (NOT (a > 7)));
-a
-6
-7
-# Should return 0..5,8..19
-SELECT * FROM t1 WHERE NOT ((NOT (a > 5)) XOR (NOT (a > 7)));
-a
-0
-1
-2
-3
-4
-5
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-# Should have empty result
-SELECT * FROM t1 WHERE (NULL XOR (a > 7));
-a
-SELECT * FROM t1 WHERE NOT (NULL XOR (a > 7));
-a
-# Should be simplified to "...WHERE (a XOR a)
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE NOT ((NOT a) XOR (a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index NULL a 5 NULL 21 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` xor `test`.`t1`.`a`
-# Should be simplified to "...WHERE (a XOR a)
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE NOT (a XOR (NOT a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index NULL a 5 NULL 21 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` xor `test`.`t1`.`a`
-# End XOR
-delete from t1 where a > 3;
-select a, not(not(a)) from t1;
-a not(not(a))
-NULL NULL
-0 0
-1 1
-2 1
-3 1
-explain extended select a, not(not(a)), not(a <= 2 and not(a)), not(a not like "1"), not (a not in (1,2)), not(a != 2) from t1 where not(not(a)) having not(not(a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range a a 5 NULL 4 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`a` <> 0 AS `not(not(a))`,`test`.`t1`.`a` > 2 or `test`.`t1`.`a` <> 0 AS `not(a <= 2 and not(a))`,`test`.`t1`.`a` like '1' AS `not(a not like "1")`,`test`.`t1`.`a` in (1,2) AS `not (a not in (1,2))`,`test`.`t1`.`a` = 2 AS `not(a != 2)` from `test`.`t1` where `test`.`t1`.`a` <> 0 having `test`.`t1`.`a` <> 0
-drop table t1;
diff --git a/mysql-test/r/no-threads.result b/mysql-test/r/no-threads.result
deleted file mode 100644
index 9bc2dad6e2a..00000000000
--- a/mysql-test/r/no-threads.result
+++ /dev/null
@@ -1,13 +0,0 @@
-select 1+1;
-1+1
-2
-select 1+2;
-1+2
-3
-SHOW GLOBAL VARIABLES LIKE 'thread_handling';
-Variable_name Value
-thread_handling no-threads
-select @@session.thread_handling;
-ERROR HY000: Variable 'thread_handling' is a GLOBAL variable
-set GLOBAL thread_handling='one-thread';
-ERROR HY000: Variable 'thread_handling' is a read only variable
diff --git a/mysql-test/r/no_binlog.result b/mysql-test/r/no_binlog.result
deleted file mode 100644
index 6ae267664fd..00000000000
--- a/mysql-test/r/no_binlog.result
+++ /dev/null
@@ -1,2 +0,0 @@
-SHOW BINARY LOGS;
-ERROR HY000: You are not using binary logging
diff --git a/mysql-test/r/no_password_column-mdev-11170.result b/mysql-test/r/no_password_column-mdev-11170.result
deleted file mode 100644
index 6195100436d..00000000000
--- a/mysql-test/r/no_password_column-mdev-11170.result
+++ /dev/null
@@ -1,169 +0,0 @@
-#
-# MDEV-11170: MariaDB 10.2 cannot start on MySQL 5.7 datadir:
-# Fatal error: mysql.user table is damaged or in
-# unsupported 3.20 format
-#
-create table backup_user like mysql.user;
-insert into backup_user select * from mysql.user;
-#
-# Original mysql.user table
-#
-describe mysql.user;
-Field Type Null Key Default Extra
-Host char(60) NO PRI
-User char(80) NO PRI
-Password char(41) NO
-Select_priv enum('N','Y') NO N
-Insert_priv enum('N','Y') NO N
-Update_priv enum('N','Y') NO N
-Delete_priv enum('N','Y') NO N
-Create_priv enum('N','Y') NO N
-Drop_priv enum('N','Y') NO N
-Reload_priv enum('N','Y') NO N
-Shutdown_priv enum('N','Y') NO N
-Process_priv enum('N','Y') NO N
-File_priv enum('N','Y') NO N
-Grant_priv enum('N','Y') NO N
-References_priv enum('N','Y') NO N
-Index_priv enum('N','Y') NO N
-Alter_priv enum('N','Y') NO N
-Show_db_priv enum('N','Y') NO N
-Super_priv enum('N','Y') NO N
-Create_tmp_table_priv enum('N','Y') NO N
-Lock_tables_priv enum('N','Y') NO N
-Execute_priv enum('N','Y') NO N
-Repl_slave_priv enum('N','Y') NO N
-Repl_client_priv enum('N','Y') NO N
-Create_view_priv enum('N','Y') NO N
-Show_view_priv enum('N','Y') NO N
-Create_routine_priv enum('N','Y') NO N
-Alter_routine_priv enum('N','Y') NO N
-Create_user_priv enum('N','Y') NO N
-Event_priv enum('N','Y') NO N
-Trigger_priv enum('N','Y') NO N
-Create_tablespace_priv enum('N','Y') NO N
-Delete_history_priv enum('N','Y') NO N
-ssl_type enum('','ANY','X509','SPECIFIED') NO
-ssl_cipher blob NO NULL
-x509_issuer blob NO NULL
-x509_subject blob NO NULL
-max_questions int(11) unsigned NO 0
-max_updates int(11) unsigned NO 0
-max_connections int(11) unsigned NO 0
-max_user_connections int(11) NO 0
-plugin char(64) NO
-authentication_string text NO NULL
-password_expired enum('N','Y') NO N
-is_role enum('N','Y') NO N
-default_role char(80) NO
-max_statement_time decimal(12,6) NO 0.000000
-#
-# Drop the password column.
-#
-alter table mysql.user drop column password;
-flush privileges;
-#
-# Create users without the password column present.
-#
-create user foo;
-create user goo identified by "foo";
-select OLD_PASSWORD("ioo");
-OLD_PASSWORD("ioo")
-7a8f886d28473e85
-create user ioo identified with "mysql_old_password" as "7a8f886d28473e85";
-#
-# Check if users have grants loaded correctly.
-#
-show grants for foo;
-Grants for foo@%
-GRANT USAGE ON *.* TO 'foo'@'%'
-show grants for goo;
-Grants for goo@%
-GRANT USAGE ON *.* TO 'goo'@'%' IDENTIFIED BY PASSWORD '*F3A2A51A9B0F2BE2468926B4132313728C250DBF'
-show grants for ioo;
-Grants for ioo@%
-GRANT USAGE ON *.* TO 'ioo'@'%' IDENTIFIED BY PASSWORD '7a8f886d28473e85'
-select user, host, select_priv, plugin, authentication_string from mysql.user
-where user like "%oo"
-order by user;
-user host select_priv plugin authentication_string
-foo % N
-goo % N mysql_native_password *F3A2A51A9B0F2BE2468926B4132313728C250DBF
-ioo % N mysql_old_password 7a8f886d28473e85
-#
-# Test setting password.
-#
-SET PASSWORD FOR foo=PASSWORD("bar");
-show grants for foo;
-Grants for foo@%
-GRANT USAGE ON *.* TO 'foo'@'%' IDENTIFIED BY PASSWORD '*E8D46CE25265E545D225A8A6F1BAF642FEBEE5CB'
-show grants for goo;
-Grants for goo@%
-GRANT USAGE ON *.* TO 'goo'@'%' IDENTIFIED BY PASSWORD '*F3A2A51A9B0F2BE2468926B4132313728C250DBF'
-show grants for ioo;
-Grants for ioo@%
-GRANT USAGE ON *.* TO 'ioo'@'%' IDENTIFIED BY PASSWORD '7a8f886d28473e85'
-select user, host, select_priv, plugin, authentication_string from mysql.user
-where user like "%oo"
-order by user;
-user host select_priv plugin authentication_string
-foo % N mysql_native_password *E8D46CE25265E545D225A8A6F1BAF642FEBEE5CB
-goo % N mysql_native_password *F3A2A51A9B0F2BE2468926B4132313728C250DBF
-ioo % N mysql_old_password 7a8f886d28473e85
-#
-# Test flush privileges without password column.
-#
-flush privileges;
-show grants for foo;
-Grants for foo@%
-GRANT USAGE ON *.* TO 'foo'@'%' IDENTIFIED BY PASSWORD '*E8D46CE25265E545D225A8A6F1BAF642FEBEE5CB'
-show grants for goo;
-Grants for goo@%
-GRANT USAGE ON *.* TO 'goo'@'%' IDENTIFIED BY PASSWORD '*F3A2A51A9B0F2BE2468926B4132313728C250DBF'
-show grants for ioo;
-Grants for ioo@%
-GRANT USAGE ON *.* TO 'ioo'@'%' IDENTIFIED BY PASSWORD '7a8f886d28473e85'
-#
-# Test granting of privileges.
-#
-grant select on *.* to foo;
-grant select on *.* to goo;
-grant select on *.* to ioo;
-show grants for foo;
-Grants for foo@%
-GRANT SELECT ON *.* TO 'foo'@'%' IDENTIFIED BY PASSWORD '*E8D46CE25265E545D225A8A6F1BAF642FEBEE5CB'
-show grants for goo;
-Grants for goo@%
-GRANT SELECT ON *.* TO 'goo'@'%' IDENTIFIED BY PASSWORD '*F3A2A51A9B0F2BE2468926B4132313728C250DBF'
-show grants for ioo;
-Grants for ioo@%
-GRANT SELECT ON *.* TO 'ioo'@'%' IDENTIFIED BY PASSWORD '7a8f886d28473e85'
-#
-# Check to see if grants are stable on flush.
-#
-flush privileges;
-show grants for foo;
-Grants for foo@%
-GRANT SELECT ON *.* TO 'foo'@'%' IDENTIFIED BY PASSWORD '*E8D46CE25265E545D225A8A6F1BAF642FEBEE5CB'
-show grants for goo;
-Grants for goo@%
-GRANT SELECT ON *.* TO 'goo'@'%' IDENTIFIED BY PASSWORD '*F3A2A51A9B0F2BE2468926B4132313728C250DBF'
-show grants for ioo;
-Grants for ioo@%
-GRANT SELECT ON *.* TO 'ioo'@'%' IDENTIFIED BY PASSWORD '7a8f886d28473e85'
-#
-# Check internal table representation.
-#
-select user, host, select_priv, plugin, authentication_string from mysql.user
-where user like "%oo"
-order by user;
-user host select_priv plugin authentication_string
-foo % Y mysql_native_password *E8D46CE25265E545D225A8A6F1BAF642FEBEE5CB
-goo % Y mysql_native_password *F3A2A51A9B0F2BE2468926B4132313728C250DBF
-ioo % Y mysql_old_password 7a8f886d28473e85
-#
-# Reset to final original state.
-#
-drop table mysql.user;
-rename table backup_user to mysql.user;
-flush privileges;
diff --git a/mysql-test/r/non_blocking_api.result b/mysql-test/r/non_blocking_api.result
deleted file mode 100644
index 4cb5c270f38..00000000000
--- a/mysql-test/r/non_blocking_api.result
+++ /dev/null
@@ -1,14 +0,0 @@
-drop table if exists t1;
-connect con_nonblock,localhost,root,,test;
-connect con_normal,localhost,root,,test;
-connection con_nonblock;
-CREATE TABLE t1 (a INT PRIMARY KEY);
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t1;
-a
-1
-SELECT * FROM t1;
-a
-1
-connection con_normal;
-DROP TABLE t1;
diff --git a/mysql-test/r/not_embedded_server.result b/mysql-test/r/not_embedded_server.result
deleted file mode 100644
index ba68ca8619b..00000000000
--- a/mysql-test/r/not_embedded_server.result
+++ /dev/null
@@ -1,137 +0,0 @@
-call mtr.add_suppression("Can't open and lock privilege tables: Table 'user' was not locked with LOCK TABLES");
-SHOW VARIABLES like 'slave_skip_errors';
-Variable_name Value
-slave_skip_errors OFF
-#
-# Bug#58026: massive recursion and crash in regular expression handling
-#
-SELECT '1' RLIKE RPAD('1', 10000, '(');
-Got one of the listed errors
-#
-# WL#4284: Transactional DDL locking
-#
-# FLUSH PRIVILEGES should not implicitly unlock locked tables.
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (c1 INT);
-LOCK TABLES t1 READ;
-FLUSH PRIVILEGES;
-ERROR HY000: Table 'user' was not locked with LOCK TABLES
-UNLOCK TABLES;
-DROP TABLE t1;
-#
-# Bug#54812: assert in Diagnostics_area::set_ok_status during EXPLAIN
-#
-CREATE USER nopriv_user@localhost;
-connection default;
-DROP TABLE IF EXISTS t1,t2,t3;
-DROP FUNCTION IF EXISTS f;
-CREATE TABLE t1 (key1 INT PRIMARY KEY);
-CREATE TABLE t2 (key2 INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE FUNCTION f() RETURNS INT RETURN 1;
-GRANT FILE ON *.* TO 'nopriv_user'@'localhost';
-FLUSH PRIVILEGES;
-connect con1,localhost,nopriv_user,,;
-connection con1;
-SELECT MAX(key1) FROM t1 WHERE f() < 1 INTO OUTFILE '<outfile>';
-ERROR 42000: execute command denied to user 'nopriv_user'@'localhost' for routine 'test.f'
-INSERT INTO t2 SELECT MAX(key1) FROM t1 WHERE f() < 1;
-ERROR 42000: execute command denied to user 'nopriv_user'@'localhost' for routine 'test.f'
-SELECT MAX(key1) INTO @dummy FROM t1 WHERE f() < 1;
-ERROR 42000: execute command denied to user 'nopriv_user'@'localhost' for routine 'test.f'
-CREATE TABLE t3 (i INT) AS SELECT MAX(key1) FROM t1 WHERE f() < 1;
-ERROR 42000: execute command denied to user 'nopriv_user'@'localhost' for routine 'test.f'
-disconnect con1;
-connection default;
-DROP TABLE t1,t2;
-DROP FUNCTION f;
-DROP USER nopriv_user@localhost;
-#
-# End Bug#54812
-#
-
-#
-# Test for Bug#12601974 - STORED PROCEDURE SQL_MODE=NO_BACKSLASH_ESCAPES
-# IGNORED AND BREAKS REPLICATION
-#
-SET @org_mode=@@sql_mode;
-SET @@sql_mode='';
-# USER NAME CONTAINING BACKSLASH IN CREATE USER OPERATION
-CREATE USER 'user\'s_12601974'@'localhost';
-CREATE USER 'user\'s_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\'s_12601974'@'localhost'
-DROP USER 'user\'s_12601974'@'localhost';
-CREATE USER 'user\"s_12601974'@'localhost';
-CREATE USER 'user\"s_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\"s_12601974'@'localhost'
-DROP USER 'user\"s_12601974'@'localhost';
-CREATE USER 'user\bs_12601974'@'localhost';
-CREATE USER 'user\bs_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'users_12601974'@'localhost'
-DROP USER 'user\bs_12601974'@'localhost';
-CREATE USER 'user\ns_12601974'@'localhost';
-CREATE USER 'user\ns_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\ns_12601974'@'localhost'
-DROP USER 'user\ns_12601974'@'localhost';
-CREATE USER 'user\rs_12601974'@'localhost';
-CREATE USER 'user\rs_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\rs_12601974'@'localhost'
-DROP USER 'user\rs_12601974'@'localhost';
-CREATE USER 'user\ts_12601974'@'localhost';
-CREATE USER 'user\ts_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user s_12601974'@'localhost'
-DROP USER 'user\ts_12601974'@'localhost';
-CREATE USER 'user\\s_12601974'@'localhost';
-CREATE USER 'user\\s_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\\s_12601974'@'localhost'
-DROP USER 'user\\s_12601974'@'localhost';
-CREATE USER 'user\%s_12601974'@'localhost';
-CREATE USER 'user\%s_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\\%s_12601974'@'localhost'
-DROP USER 'user\%s_12601974'@'localhost';
-CREATE USER 'user\_s_12601974'@'localhost';
-CREATE USER 'user\_s_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\\_s_12601974'@'localhost'
-DROP USER 'user\_s_12601974'@'localhost';
-
-# END OF CASE - USER NAME CONTAINING BACKSLASH IN CREATE USER OPERATION
-SET @@sql_mode='NO_BACKSLASH_ESCAPES';
-# USER NAME CONTAINING BACKSLASH IN DROP USER OPERATION
-CREATE USER 'user\"s_12601974'@'localhost';
-CREATE USER 'user\"s_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\"s_12601974'@'localhost'
-DROP USER 'user\"s_12601974'@'localhost';
-CREATE USER 'user\bs_12601974'@'localhost';
-CREATE USER 'user\bs_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\bs_12601974'@'localhost'
-DROP USER 'user\bs_12601974'@'localhost';
-CREATE USER 'user\ns_12601974'@'localhost';
-CREATE USER 'user\ns_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\ns_12601974'@'localhost'
-DROP USER 'user\ns_12601974'@'localhost';
-CREATE USER 'user\rs_12601974'@'localhost';
-CREATE USER 'user\rs_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\rs_12601974'@'localhost'
-DROP USER 'user\rs_12601974'@'localhost';
-CREATE USER 'user\ts_12601974'@'localhost';
-CREATE USER 'user\ts_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\ts_12601974'@'localhost'
-DROP USER 'user\ts_12601974'@'localhost';
-CREATE USER 'user\\s_12601974'@'localhost';
-CREATE USER 'user\\s_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\\s_12601974'@'localhost'
-DROP USER 'user\\s_12601974'@'localhost';
-CREATE USER 'user\%s_12601974'@'localhost';
-CREATE USER 'user\%s_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\%s_12601974'@'localhost'
-DROP USER 'user\%s_12601974'@'localhost';
-CREATE USER 'user\_s_12601974'@'localhost';
-CREATE USER 'user\_s_12601974'@'localhost';
-ERROR HY000: Operation CREATE USER failed for 'user\_s_12601974'@'localhost'
-DROP USER 'user\_s_12601974'@'localhost';
-
-# END OF CASE - USER NAME CONTAINING BACKSLASH IN CREATE USER OPERATION
-SET @@sql_mode= @org_mode;
-
-#End of Test for Bug#12601974
diff --git a/mysql-test/r/not_partition.result b/mysql-test/r/not_partition.result
deleted file mode 100644
index 3d6f3fe39a3..00000000000
--- a/mysql-test/r/not_partition.result
+++ /dev/null
@@ -1,101 +0,0 @@
-DROP TABLE IF EXISTS t1;
-FLUSH TABLES;
-SELECT * FROM t1;
-ERROR 42000: Unknown storage engine 'partition'
-TRUNCATE TABLE t1;
-ERROR 42000: Unknown storage engine 'partition'
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze Error Unknown storage engine 'partition'
-test.t1 analyze error Corrupt
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check Error Unknown storage engine 'partition'
-test.t1 check error Corrupt
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize Error Unknown storage engine 'partition'
-test.t1 optimize error Corrupt
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair Error Unknown storage engine 'partition'
-test.t1 repair error Corrupt
-ALTER TABLE t1 REPAIR PARTITION ALL;
-ERROR HY000: The 'partitioning' feature is disabled; you need MariaDB built with '--with-plugin-partition' to have it working
-ALTER TABLE t1 CHECK PARTITION ALL;
-ERROR HY000: The 'partitioning' feature is disabled; you need MariaDB built with '--with-plugin-partition' to have it working
-ALTER TABLE t1 OPTIMIZE PARTITION ALL;
-ERROR HY000: The 'partitioning' feature is disabled; you need MariaDB built with '--with-plugin-partition' to have it working
-ALTER TABLE t1 ANALYZE PARTITION ALL;
-ERROR HY000: The 'partitioning' feature is disabled; you need MariaDB built with '--with-plugin-partition' to have it working
-ALTER TABLE t1 REBUILD PARTITION ALL;
-ERROR 42000: Unknown storage engine 'partition'
-ALTER TABLE t1 TRUNCATE PARTITION ALL;
-ERROR HY000: The 'partitioning' feature is disabled; you need MariaDB built with '--with-plugin-partition' to have it working
-ALTER TABLE t1 ENGINE Memory;
-ERROR 42000: Unknown storage engine 'partition'
-ALTER TABLE t1 ADD (new INT);
-ERROR 42000: Unknown storage engine 'partition'
-DROP TABLE t1;
-CREATE TABLE t1 (
-firstname VARCHAR(25) NOT NULL,
-lastname VARCHAR(25) NOT NULL,
-username VARCHAR(16) NOT NULL,
-email VARCHAR(35),
-joined DATE NOT NULL
-)
-PARTITION BY KEY(joined)
-PARTITIONS 6;
-ERROR HY000: The 'partitioning' feature is disabled; you need MariaDB built with '--with-plugin-partition' to have it working
-ALTER TABLE t1 PARTITION BY KEY(joined) PARTITIONS 2;
-ERROR HY000: The 'partitioning' feature is disabled; you need MariaDB built with '--with-plugin-partition' to have it working
-drop table t1;
-ERROR 42S02: Unknown table 'test.t1'
-CREATE TABLE t1 (
-firstname VARCHAR(25) NOT NULL,
-lastname VARCHAR(25) NOT NULL,
-username VARCHAR(16) NOT NULL,
-email VARCHAR(35),
-joined DATE NOT NULL
-)
-PARTITION BY RANGE( YEAR(joined) ) (
-PARTITION p0 VALUES LESS THAN (1960),
-PARTITION p1 VALUES LESS THAN (1970),
-PARTITION p2 VALUES LESS THAN (1980),
-PARTITION p3 VALUES LESS THAN (1990),
-PARTITION p4 VALUES LESS THAN MAXVALUE
-);
-ERROR HY000: The 'partitioning' feature is disabled; you need MariaDB built with '--with-plugin-partition' to have it working
-drop table t1;
-ERROR 42S02: Unknown table 'test.t1'
-CREATE TABLE t1 (id INT, purchased DATE)
-PARTITION BY RANGE( YEAR(purchased) )
-SUBPARTITION BY HASH( TO_DAYS(purchased) )
-SUBPARTITIONS 2 (
-PARTITION p0 VALUES LESS THAN (1990),
-PARTITION p1 VALUES LESS THAN (2000),
-PARTITION p2 VALUES LESS THAN MAXVALUE
-);
-ERROR HY000: The 'partitioning' feature is disabled; you need MariaDB built with '--with-plugin-partition' to have it working
-drop table t1;
-ERROR 42S02: Unknown table 'test.t1'
-create table t1 (a varchar(10) charset latin1 collate latin1_bin);
-insert into t1 values (''),(' '),('a'),('a '),('a ');
-explain partitions select * from t1 where a='a ' OR a='a';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 Using where
-drop table t1;
-#
-# bug#11760213-52599: ALTER TABLE REMOVE PARTITIONING ON NON-PARTITIONED
-# TABLE CORRUPTS MYISAM
-DROP TABLE if exists `t1`;
-CREATE TABLE `t1`(`a` INT)ENGINE=myisam;
-ALTER TABLE `t1` ADD COLUMN `b` INT;
-CREATE UNIQUE INDEX `i1` ON `t1`(`b`);
-CREATE UNIQUE INDEX `i2` ON `t1`(`a`);
-ALTER TABLE `t1` ADD PRIMARY KEY (`a`);
-ALTER TABLE `t1` REMOVE PARTITIONING;
-CHECK TABLE `t1` EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
diff --git a/mysql-test/r/not_staging.require b/mysql-test/r/not_staging.require
deleted file mode 100644
index 3073f02c045..00000000000
--- a/mysql-test/r/not_staging.require
+++ /dev/null
@@ -1,2 +0,0 @@
-using_staging_run
-0
diff --git a/mysql-test/r/not_true.require b/mysql-test/r/not_true.require
deleted file mode 100644
index 0032832f3d1..00000000000
--- a/mysql-test/r/not_true.require
+++ /dev/null
@@ -1,2 +0,0 @@
-TRUE
-NULL
diff --git a/mysql-test/r/not_valgrind.require b/mysql-test/r/not_valgrind.require
deleted file mode 100644
index 5d779c6bfcb..00000000000
--- a/mysql-test/r/not_valgrind.require
+++ /dev/null
@@ -1,2 +0,0 @@
-using_valgrind
-0
diff --git a/mysql-test/r/null.result b/mysql-test/r/null.result
deleted file mode 100644
index 2fa89a2d001..00000000000
--- a/mysql-test/r/null.result
+++ /dev/null
@@ -1,1864 +0,0 @@
-drop table if exists t1, t2;
-select null,\N,isnull(null),isnull(1/0),isnull(1/0 = null),ifnull(null,1),ifnull(null,"TRUE"),ifnull("TRUE","ERROR"),1/0 is null,1 is not null;
-NULL NULL isnull(null) isnull(1/0) isnull(1/0 = null) ifnull(null,1) ifnull(null,"TRUE") ifnull("TRUE","ERROR") 1/0 is null 1 is not null
-NULL NULL 1 1 1 1 TRUE TRUE 1 1
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-explain extended select null,\N,isnull(null),isnull(1/0),isnull(1/0 = null),ifnull(null,1),ifnull(null,"TRUE"),ifnull("TRUE","ERROR"),1/0 is null,1 is not null;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select NULL AS `NULL`,NULL AS `NULL`,NULL is null AS `isnull(null)`,1 / 0 is null AS `isnull(1/0)`,1 / 0 = NULL is null AS `isnull(1/0 = null)`,ifnull(NULL,1) AS `ifnull(null,1)`,ifnull(NULL,'TRUE') AS `ifnull(null,"TRUE")`,ifnull('TRUE','ERROR') AS `ifnull("TRUE","ERROR")`,1 / 0 is null AS `1/0 is null`,1 is not null AS `1 is not null`
-select 1 | NULL,1 & NULL,1+NULL,1-NULL;
-1 | NULL 1 & NULL 1+NULL 1-NULL
-NULL NULL NULL NULL
-select NULL=NULL,NULL<>NULL,IFNULL(NULL,1.1)+0,IFNULL(NULL,1) | 0;
-NULL=NULL NULL<>NULL IFNULL(NULL,1.1)+0 IFNULL(NULL,1) | 0
-NULL NULL 1.1 1
-select strcmp("a",NULL),(1<NULL)+0.0,NULL regexp "a",null like "a%","a%" like null;
-strcmp("a",NULL) (1<NULL)+0.0 NULL regexp "a" null like "a%" "a%" like null
-NULL NULL NULL NULL NULL
-select concat("a",NULL),replace(NULL,"a","b"),replace("string","i",NULL),replace("string",NULL,"i"),insert("abc",1,1,NULL),left(NULL,1);
-concat("a",NULL) replace(NULL,"a","b") replace("string","i",NULL) replace("string",NULL,"i") insert("abc",1,1,NULL) left(NULL,1)
-NULL NULL NULL NULL NULL NULL
-select repeat("a",0),repeat("ab",5+5),repeat("ab",-1),reverse(NULL);
-repeat("a",0) repeat("ab",5+5) repeat("ab",-1) reverse(NULL)
- abababababababababab NULL
-select field(NULL,"a","b","c");
-field(NULL,"a","b","c")
-0
-select 2 between null and 1,2 between 3 AND NULL,NULL between 1 and 2,2 between NULL and 3, 2 between 1 AND null;
-2 between null and 1 2 between 3 AND NULL NULL between 1 and 2 2 between NULL and 3 2 between 1 AND null
-0 0 NULL NULL NULL
-explain extended select 2 between null and 1,2 between 3 AND NULL,NULL between 1 and 2,2 between NULL and 3, 2 between 1 AND null;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 2 between NULL and 1 AS `2 between null and 1`,2 between 3 and NULL AS `2 between 3 AND NULL`,NULL between 1 and 2 AS `NULL between 1 and 2`,2 between NULL and 3 AS `2 between NULL and 3`,2 between 1 and NULL AS `2 between 1 AND null`
-SELECT NULL AND NULL, 1 AND NULL, NULL AND 1, NULL OR NULL, 0 OR NULL, NULL OR 0;
-NULL AND NULL 1 AND NULL NULL AND 1 NULL OR NULL 0 OR NULL NULL OR 0
-NULL NULL NULL NULL NULL NULL
-SELECT (NULL OR NULL) IS NULL;
-(NULL OR NULL) IS NULL
-1
-select NULL AND 0, 0 and NULL;
-NULL AND 0 0 and NULL
-0 0
-select inet_ntoa(null),inet_aton(null),inet_aton("122.256"),inet_aton("122.226."),inet_aton("");
-inet_ntoa(null) inet_aton(null) inet_aton("122.256") inet_aton("122.226.") inet_aton("")
-NULL NULL NULL NULL NULL
-explain extended select inet_ntoa(null),inet_aton(null),inet_aton("122.256"),inet_aton("122.226."),inet_aton("");
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select inet_ntoa(NULL) AS `inet_ntoa(null)`,inet_aton(NULL) AS `inet_aton(null)`,inet_aton('122.256') AS `inet_aton("122.256")`,inet_aton('122.226.') AS `inet_aton("122.226.")`,inet_aton('') AS `inet_aton("")`
-select not null is true, not null or true, not null and false, not null <=> null;
-not null is true not null or true not null and false not null <=> null
-1 1 0 0
-create table t1 (x int);
-insert into t1 values (null);
-select * from t1 where x != 0;
-x
-drop table t1;
-CREATE TABLE t1 (
-indexed_field int default NULL,
-KEY indexed_field (indexed_field)
-);
-INSERT INTO t1 VALUES (NULL),(NULL);
-SELECT * FROM t1 WHERE indexed_field=NULL;
-indexed_field
-SELECT * FROM t1 WHERE indexed_field IS NULL;
-indexed_field
-NULL
-NULL
-SELECT * FROM t1 WHERE indexed_field<=>NULL;
-indexed_field
-NULL
-NULL
-DROP TABLE t1;
-create table t1 (a int, b int) engine=myisam;
-insert into t1 values(20,null);
-select t2.b, ifnull(t2.b,"this is null") from t1 as t2 left join t1 as t3 on
-t2.b=t3.a;
-b ifnull(t2.b,"this is null")
-NULL this is null
-select t2.b, ifnull(t2.b,"this is null") from t1 as t2 left join t1 as t3 on
-t2.b=t3.a order by 1;
-b ifnull(t2.b,"this is null")
-NULL this is null
-insert into t1 values(10,null);
-select t2.b, ifnull(t2.b,"this is null") from t1 as t2 left join t1 as t3 on
-t2.b=t3.a order by 1;
-b ifnull(t2.b,"this is null")
-NULL this is null
-NULL this is null
-drop table t1;
-CREATE TABLE t1 (a varchar(16) NOT NULL default '', b smallint(6) NOT NULL default 0, c datetime NOT NULL default '0000-00-00 00:00:00', d smallint(6) NOT NULL default 0);
-INSERT IGNORE INTO t1 SET a = "", d= "2003-01-14 03:54:55";
-Warnings:
-Warning 1265 Data truncated for column 'd' at row 1
-UPDATE IGNORE t1 SET d=1/NULL;
-Warnings:
-Warning 1048 Column 'd' cannot be null
-UPDATE IGNORE t1 SET d=NULL;
-Warnings:
-Warning 1048 Column 'd' cannot be null
-INSERT INTO t1 (a) values (null);
-ERROR 23000: Column 'a' cannot be null
-INSERT INTO t1 (a) values (1/null);
-ERROR 23000: Column 'a' cannot be null
-INSERT IGNORE INTO t1 (a) values (null),(null);
-Warnings:
-Warning 1048 Column 'a' cannot be null
-Warning 1048 Column 'a' cannot be null
-INSERT INTO t1 (b) values (null);
-ERROR 23000: Column 'b' cannot be null
-INSERT INTO t1 (b) values (1/null);
-ERROR 23000: Column 'b' cannot be null
-INSERT IGNORE INTO t1 (b) values (null),(null);
-Warnings:
-Warning 1048 Column 'b' cannot be null
-Warning 1048 Column 'b' cannot be null
-INSERT INTO t1 (c) values (null);
-ERROR 23000: Column 'c' cannot be null
-INSERT INTO t1 (c) values (1/null);
-ERROR 23000: Column 'c' cannot be null
-INSERT IGNORE INTO t1 (c) values (null),(null);
-Warnings:
-Warning 1048 Column 'c' cannot be null
-Warning 1048 Column 'c' cannot be null
-INSERT INTO t1 (d) values (null);
-ERROR 23000: Column 'd' cannot be null
-INSERT INTO t1 (d) values (1/null);
-ERROR 23000: Column 'd' cannot be null
-INSERT IGNORE INTO t1 (d) values (null),(null);
-Warnings:
-Warning 1048 Column 'd' cannot be null
-Warning 1048 Column 'd' cannot be null
-select * from t1;
-a b c d
- 0 0000-00-00 00:00:00 0
- 0 0000-00-00 00:00:00 0
- 0 0000-00-00 00:00:00 0
- 0 0000-00-00 00:00:00 0
- 0 0000-00-00 00:00:00 0
- 0 0000-00-00 00:00:00 0
- 0 0000-00-00 00:00:00 0
- 0 0000-00-00 00:00:00 0
- 0 0000-00-00 00:00:00 0
-drop table t1;
-create table t1 (a int not null, b int not null, index idx(a));
-insert into t1 values
-(1,1), (2,2), (3,3), (4,4), (5,5), (6,6),
-(7,7), (8,8), (9,9), (10,10), (11,11), (12,12);
-explain select * from t1 where a between 2 and 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 4 NULL 2 Using index condition
-explain select * from t1 where a between 2 and 3 or b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 4 NULL 2 Using index condition
-drop table t1;
-select cast(NULL as signed);
-cast(NULL as signed)
-NULL
-create table t1(i int, key(i));
-insert into t1 values(1);
-insert into t1 select i*2 from t1;
-insert into t1 select i*2 from t1;
-insert into t1 select i*2 from t1;
-insert into t1 select i*2 from t1;
-insert into t1 select i*2 from t1;
-insert into t1 select i*2 from t1;
-insert into t1 select i*2 from t1;
-insert into t1 select i*2 from t1;
-insert into t1 select i*2 from t1;
-insert into t1 values(null);
-explain select * from t1 where i=2 or i is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null i i 5 const 9 Using where; Using index
-select count(*) from t1 where i=2 or i is null;
-count(*)
-10
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 change i i int not null;
-Warnings:
-Warning 1265 Data truncated for column 'i' at row 513
-explain select * from t1 where i=2 or i is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref i i 4 const 7 Using index
-select count(*) from t1 where i=2 or i is null;
-count(*)
-9
-drop table t1;
-set names latin2;
-create table t1 select
-null as c00,
-if(1, null, 'string') as c01,
-if(0, null, 'string') as c02,
-ifnull(null, 'string') as c03,
-ifnull('string', null) as c04,
-case when 0 then null else 'string' end as c05,
-case when 1 then null else 'string' end as c06,
-coalesce(null, 'string') as c07,
-coalesce('string', null) as c08,
-least('string',null) as c09,
-least(null, 'string') as c10,
-greatest('string',null) as c11,
-greatest(null, 'string') as c12,
-nullif('string', null) as c13,
-nullif(null, 'string') as c14,
-trim('string' from null) as c15,
-trim(null from 'string') as c16,
-substring_index('string', null, 1) as c17,
-substring_index(null, 'string', 1) as c18,
-elt(1, null, 'string') as c19,
-elt(1, 'string', null) as c20,
-concat('string', null) as c21,
-concat(null, 'string') as c22,
-concat_ws('sep', 'string', null) as c23,
-concat_ws('sep', null, 'string') as c24,
-concat_ws(null, 'string', 'string') as c25,
-make_set(3, 'string', null) as c26,
-make_set(3, null, 'string') as c27,
-export_set(3, null, 'off', 'sep') as c29,
-export_set(3, 'on', null, 'sep') as c30,
-export_set(3, 'on', 'off', null) as c31,
-replace(null, 'from', 'to') as c32,
-replace('str', null, 'to') as c33,
-replace('str', 'from', null) as c34,
-insert('str', 1, 2, null) as c35,
-insert(null, 1, 2, 'str') as c36,
-lpad('str', 10, null) as c37,
-rpad(null, 10, 'str') as c38;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c00` binary(0) DEFAULT NULL,
- `c01` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c02` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c03` varchar(6) CHARACTER SET latin2 NOT NULL,
- `c04` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c05` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c06` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c07` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c08` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c09` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c10` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c11` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c12` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c13` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c14` binary(0) DEFAULT NULL,
- `c15` char(0) CHARACTER SET latin2 DEFAULT NULL,
- `c16` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c17` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c18` char(0) CHARACTER SET latin2 DEFAULT NULL,
- `c19` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c20` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c21` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c22` varchar(6) CHARACTER SET latin2 DEFAULT NULL,
- `c23` varchar(9) CHARACTER SET latin2 DEFAULT NULL,
- `c24` varchar(9) CHARACTER SET latin2 DEFAULT NULL,
- `c25` varchar(12) CHARACTER SET latin2 DEFAULT NULL,
- `c26` varchar(7) CHARACTER SET latin2 DEFAULT NULL,
- `c27` varchar(7) CHARACTER SET latin2 DEFAULT NULL,
- `c29` varchar(381) CHARACTER SET latin2 DEFAULT NULL,
- `c30` varchar(317) CHARACTER SET latin2 DEFAULT NULL,
- `c31` varchar(192) CHARACTER SET latin2 DEFAULT NULL,
- `c32` char(0) CHARACTER SET latin2 DEFAULT NULL,
- `c33` varchar(3) CHARACTER SET latin2 DEFAULT NULL,
- `c34` varchar(3) CHARACTER SET latin2 DEFAULT NULL,
- `c35` varchar(3) CHARACTER SET latin2 DEFAULT NULL,
- `c36` varchar(3) CHARACTER SET latin2 DEFAULT NULL,
- `c37` varchar(10) CHARACTER SET latin2 DEFAULT NULL,
- `c38` varchar(10) CHARACTER SET latin2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select
-case 'str' when 'STR' then 'str' when null then 'null' end as c01,
-case 'str' when null then 'null' when 'STR' then 'str' end as c02,
-field(null, 'str1', 'str2') as c03,
-field('str1','STR1', null) as c04,
-field('str1', null, 'STR1') as c05,
-'string' in ('STRING', null) as c08,
-'string' in (null, 'STRING') as c09;
-c01 c02 c03 c04 c05 c08 c09
-str str 0 1 2 1 1
-set names latin1;
-create table bug19145a (e enum('a','b','c') default 'b' , s set('x', 'y', 'z') default 'y' ) engine=MyISAM;
-create table bug19145b (e enum('a','b','c') default null, s set('x', 'y', 'z') default null) engine=MyISAM;
-create table bug19145c (e enum('a','b','c') not null default 'b' , s set('x', 'y', 'z') not null default 'y' ) engine=MyISAM;
-create table bug19145setnotnulldefaultnull (e enum('a','b','c') default null, s set('x', 'y', 'z') not null default null) engine=MyISAM;
-ERROR 42000: Invalid default value for 's'
-create table bug19145enumnotnulldefaultnull (e enum('a','b','c') not null default null, s set('x', 'y', 'z') default null) engine=MyISAM;
-ERROR 42000: Invalid default value for 'e'
-alter table bug19145a alter column e set default null;
-alter table bug19145a alter column s set default null;
-alter table bug19145a add column (i int);
-alter table bug19145b alter column e set default null;
-alter table bug19145b alter column s set default null;
-alter table bug19145b add column (i int);
-alter table bug19145c alter column e set default null;
-ERROR 42000: Invalid default value for 'e'
-alter table bug19145c alter column s set default null;
-ERROR 42000: Invalid default value for 's'
-alter table bug19145c add column (i int);
-show create table bug19145a;
-Table Create Table
-bug19145a CREATE TABLE `bug19145a` (
- `e` enum('a','b','c') DEFAULT NULL,
- `s` set('x','y','z') DEFAULT NULL,
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create table bug19145b;
-Table Create Table
-bug19145b CREATE TABLE `bug19145b` (
- `e` enum('a','b','c') DEFAULT NULL,
- `s` set('x','y','z') DEFAULT NULL,
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create table bug19145c;
-Table Create Table
-bug19145c CREATE TABLE `bug19145c` (
- `e` enum('a','b','c') NOT NULL DEFAULT 'b',
- `s` set('x','y','z') NOT NULL DEFAULT 'y',
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table bug19145a;
-drop table bug19145b;
-drop table bug19145c;
-# End of 4.1 tests
-#
-# Bug #31471: decimal_bin_size: Assertion `scale >= 0 &&
-# precision > 0 && scale <= precision'
-#
-CREATE TABLE t1 (a DECIMAL (1, 0) ZEROFILL, b DECIMAL (1, 0) ZEROFILL);
-INSERT INTO t1 (a, b) VALUES (0, 0);
-CREATE TABLE t2 SELECT IFNULL(a, b) FROM t1;
-DESCRIBE t2;
-Field Type Null Key Default Extra
-IFNULL(a, b) decimal(1,0) unsigned YES NULL
-DROP TABLE t2;
-CREATE TABLE t2 SELECT IFNULL(a, NULL) FROM t1;
-DESCRIBE t2;
-Field Type Null Key Default Extra
-IFNULL(a, NULL) decimal(1,0) YES NULL
-DROP TABLE t2;
-CREATE TABLE t2 SELECT IFNULL(NULL, b) FROM t1;
-DESCRIBE t2;
-Field Type Null Key Default Extra
-IFNULL(NULL, b) decimal(1,0) YES NULL
-DROP TABLE t1, t2;
-# End of 5.0 tests
-#
-# MDEV-4895 Valgrind warnings (Conditional jump or move depends on uninitialised value) in Field_datetime::get_date on GREATEST(..) IS NULL
-#
-CREATE TABLE t1 (dt DATETIME NOT NULL);
-INSERT INTO t1 VALUES (NOW()),(NOW());
-EXPLAIN
-SELECT * FROM t1 WHERE concat( dt, '2012-12-21 12:12:12' ) IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 WHERE concat( dt, '2012-12-21 12:12:12' ) IS NULL;
-dt
-DROP TABLE t1;
-CREATE TABLE t1 (dt INT NOT NULL);
-INSERT INTO t1 VALUES (1),(2);
-EXPLAIN
-SELECT * FROM t1 WHERE concat( dt, '1' ) IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 WHERE concat( dt, '1' ) IS NULL;
-dt
-DROP TABLE t1;
-CREATE TABLE t1 (dt INT NOT NULL);
-INSERT INTO t1 VALUES (1),(2);
-EXPLAIN
-SELECT * FROM t1 WHERE NOT (concat( dt, '1' ) IS NOT NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 WHERE NOT (concat( dt, '1' ) IS NOT NULL);
-dt
-DROP TABLE t1;
-#
-# Bug mdev-5132: crash when exeicuting a join query
-# with IS NULL and IS NOT NULL in where
-#
-CREATE TABLE t1 (a DATE, b INT, c INT, KEY(a), KEY(b), KEY(c)) ENGINE=MyISAM;
-CREATE TABLE t2 (d DATE) ENGINE=MyISAM;
-SELECT * FROM t1,t2 WHERE 1 IS NOT NULL AND t1.b IS NULL;
-a b c d
-DROP TABLE t1,t2;
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-7001 Bad result for NOT NOT STRCMP('a','b') and NOT NOT NULLIF(2,3)
-#
-SELECT NOT NOT NULLIF(2,3);
-NOT NOT NULLIF(2,3)
-1
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-7146 NULLIF returns unexpected result with a YEAR field
-#
-CREATE TABLE t1 (a YEAR(2));
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-INSERT INTO t1 VALUES (0);
-SELECT a,NULLIF(a,2000),NULLIF(2000,a) FROM t1;
-a NULLIF(a,2000) NULLIF(2000,a)
-00 NULL NULL
-SELECT a,NULLIF(a,2001),NULLIF(2001,a) FROM t1;
-a NULLIF(a,2001) NULLIF(2001,a)
-00 0 2001
-DROP TABLE t1;
-#
-# MDEV-7005 NULLIF does not work as documented
-#
-CREATE TABLE t1 (a TIME);
-CREATE TABLE t2 AS SELECT a,NULLIF(a,a), CASE WHEN a=a THEN NULL ELSE a END FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` time DEFAULT NULL,
- `NULLIF(a,a)` time DEFAULT NULL,
- `CASE WHEN a=a THEN NULL ELSE a END` time DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1,t2;
-SELECT NULLIF(_latin1'a' COLLATE latin1_general_ci, _latin1'a' COLLATE latin1_bin);
-ERROR HY000: Illegal mix of collations (latin1_general_ci,EXPLICIT) and (latin1_bin,EXPLICIT) for operation 'nullif'
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t1 AS SELECT
-NULLIF(1,1),
-NULLIF(1,1.0),
-NULLIF(1,1e0),
-NULLIF(1,'2001-01-01'),
-NULLIF(1,TIME'00:00:00');
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '2001-01-01'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `NULLIF(1,1)` int(1) DEFAULT NULL,
- `NULLIF(1,1.0)` int(1) DEFAULT NULL,
- `NULLIF(1,1e0)` int(1) DEFAULT NULL,
- `NULLIF(1,'2001-01-01')` int(1) DEFAULT NULL,
- `NULLIF(1,TIME'00:00:00')` int(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t1 AS SELECT
-NULLIF(1.0,1),
-NULLIF(1.0,1.0),
-NULLIF(1.0,1e0),
-NULLIF(1.0,'2001-01-01'),
-NULLIF(1.0,TIME'00:00:00');
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '2001-01-01'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `NULLIF(1.0,1)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0,1.0)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0,1e0)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0,'2001-01-01')` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0,TIME'00:00:00')` decimal(2,1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t1 AS SELECT
-NULLIF(1e0,1),
-NULLIF(1e0,1.0),
-NULLIF(1e0,1e0),
-NULLIF(1e0,'2001-01-01'),
-NULLIF(1e0,TIME'00:00:00');
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '2001-01-01'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `NULLIF(1e0,1)` double DEFAULT NULL,
- `NULLIF(1e0,1.0)` double DEFAULT NULL,
- `NULLIF(1e0,1e0)` double DEFAULT NULL,
- `NULLIF(1e0,'2001-01-01')` double DEFAULT NULL,
- `NULLIF(1e0,TIME'00:00:00')` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
-NULLIF('1',1),
-NULLIF('1',1.0),
-NULLIF('1',1e0),
-NULLIF('1','2001-01-01'),
-NULLIF('1',TIME'00:00:00');
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `NULLIF('1',1)` varchar(1) DEFAULT NULL,
- `NULLIF('1',1.0)` varchar(1) DEFAULT NULL,
- `NULLIF('1',1e0)` varchar(1) DEFAULT NULL,
- `NULLIF('1','2001-01-01')` varchar(1) DEFAULT NULL,
- `NULLIF('1',TIME'00:00:00')` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t1 AS SELECT
-NULLIF(TIMESTAMP'2001-01-01 00:00:00',1),
-NULLIF(TIMESTAMP'2001-01-01 00:00:00',1.0),
-NULLIF(TIMESTAMP'2001-01-01 00:00:00',1e0),
-NULLIF(TIMESTAMP'2001-01-01 00:00:00','2001-01-01'),
-NULLIF(TIMESTAMP'2001-01-01 00:00:00',TIME'00:00:00');
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-Warning 1292 Incorrect datetime value: '1.0'
-Warning 1292 Incorrect datetime value: '1'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `NULLIF(TIMESTAMP'2001-01-01 00:00:00',1)` datetime DEFAULT NULL,
- `NULLIF(TIMESTAMP'2001-01-01 00:00:00',1.0)` datetime DEFAULT NULL,
- `NULLIF(TIMESTAMP'2001-01-01 00:00:00',1e0)` datetime DEFAULT NULL,
- `NULLIF(TIMESTAMP'2001-01-01 00:00:00','2001-01-01')` datetime DEFAULT NULL,
- `NULLIF(TIMESTAMP'2001-01-01 00:00:00',TIME'00:00:00')` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t1 AS SELECT
-NULLIF(DATE'2001-01-01',1),
-NULLIF(DATE'2001-01-01',1.0),
-NULLIF(DATE'2001-01-01',1e0),
-NULLIF(DATE'2001-01-01','2001-01-01'),
-NULLIF(DATE'2001-01-01',TIME'00:00:00');
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-Warning 1292 Incorrect datetime value: '1.0'
-Warning 1292 Incorrect datetime value: '1'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `NULLIF(DATE'2001-01-01',1)` date DEFAULT NULL,
- `NULLIF(DATE'2001-01-01',1.0)` date DEFAULT NULL,
- `NULLIF(DATE'2001-01-01',1e0)` date DEFAULT NULL,
- `NULLIF(DATE'2001-01-01','2001-01-01')` date DEFAULT NULL,
- `NULLIF(DATE'2001-01-01',TIME'00:00:00')` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
-NULLIF(TIME'00:00:01',1),
-NULLIF(TIME'00:00:01',1.0),
-NULLIF(TIME'00:00:01',1e0),
-NULLIF(TIME'00:00:01','00:00:00'),
-NULLIF(TIME'00:00:01',DATE'2001-01-01');
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `NULLIF(TIME'00:00:01',1)` time DEFAULT NULL,
- `NULLIF(TIME'00:00:01',1.0)` time DEFAULT NULL,
- `NULLIF(TIME'00:00:01',1e0)` time DEFAULT NULL,
- `NULLIF(TIME'00:00:01','00:00:00')` time DEFAULT NULL,
- `NULLIF(TIME'00:00:01',DATE'2001-01-01')` time DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1
-(
-c_tinyint TINYINT,
-c_smallint SMALLINT,
-c_int INT,
-c_bigint BIGINT,
-c_float FLOAT,
-c_double DOUBLE,
-c_decimal103 DECIMAL(10,3),
-c_varchar10 VARCHAR(10),
-c_tinytext TINYTEXT,
-c_text TEXT,
-c_mediumtext MEDIUMTEXT,
-c_longtext LONGTEXT,
-c_tinyblob TINYBLOB,
-c_blob BLOB,
-c_mediumblob MEDIUMBLOB,
-c_longblob LONGBLOB,
-c_enum ENUM('one','two','tree'),
-c_datetime3 DATETIME(3),
-c_timestamp3 TIMESTAMP(3),
-c_date DATE,
-c_time TIME
-);
-#
-# Checking that the return type depends only on args[0], even when compared to a super type
-#
-CREATE TABLE t2 AS SELECT
-NULLIF(c_tinyint, 1),
-NULLIF(c_tinyint, c_smallint),
-NULLIF(c_tinyint, c_tinyint),
-NULLIF(c_tinyint, c_int),
-NULLIF(c_tinyint, c_bigint),
-NULLIF(c_tinyint, c_float),
-NULLIF(c_tinyint, c_double),
-NULLIF(c_tinyint, c_decimal103),
-NULLIF(c_tinyint, c_varchar10),
-NULLIF(c_tinyint, c_text),
-NULLIF(c_tinyint, c_blob),
-NULLIF(c_tinyint, c_enum),
-NULLIF(c_tinyint, c_datetime3),
-NULLIF(c_tinyint, c_timestamp3),
-NULLIF(c_tinyint, c_date),
-NULLIF(c_tinyint, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_tinyint, 1)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_smallint)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_tinyint)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_int)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_bigint)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_float)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_double)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_decimal103)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_varchar10)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_text)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_blob)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_enum)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_datetime3)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_timestamp3)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_date)` tinyint(4) DEFAULT NULL,
- `NULLIF(c_tinyint, c_time)` tinyint(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_smallint, 1),
-NULLIF(c_smallint, c_smallint),
-NULLIF(c_smallint, c_tinyint),
-NULLIF(c_smallint, c_int),
-NULLIF(c_smallint, c_bigint),
-NULLIF(c_smallint, c_float),
-NULLIF(c_smallint, c_double),
-NULLIF(c_smallint, c_decimal103),
-NULLIF(c_smallint, c_varchar10),
-NULLIF(c_smallint, c_text),
-NULLIF(c_smallint, c_blob),
-NULLIF(c_smallint, c_enum),
-NULLIF(c_smallint, c_datetime3),
-NULLIF(c_smallint, c_timestamp3),
-NULLIF(c_smallint, c_date),
-NULLIF(c_smallint, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_smallint, 1)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_smallint)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_tinyint)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_int)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_bigint)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_float)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_double)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_decimal103)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_varchar10)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_text)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_blob)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_enum)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_datetime3)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_timestamp3)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_date)` smallint(6) DEFAULT NULL,
- `NULLIF(c_smallint, c_time)` smallint(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_int, 1),
-NULLIF(c_int, c_smallint),
-NULLIF(c_int, c_tinyint),
-NULLIF(c_int, c_int),
-NULLIF(c_int, c_bigint),
-NULLIF(c_int, c_float),
-NULLIF(c_int, c_double),
-NULLIF(c_int, c_decimal103),
-NULLIF(c_int, c_varchar10),
-NULLIF(c_int, c_text),
-NULLIF(c_int, c_blob),
-NULLIF(c_int, c_enum),
-NULLIF(c_int, c_datetime3),
-NULLIF(c_int, c_timestamp3),
-NULLIF(c_int, c_date),
-NULLIF(c_int, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_int, 1)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_smallint)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_tinyint)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_int)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_bigint)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_float)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_double)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_decimal103)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_varchar10)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_text)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_blob)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_enum)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_datetime3)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_timestamp3)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_date)` int(11) DEFAULT NULL,
- `NULLIF(c_int, c_time)` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_bigint, 1),
-NULLIF(c_bigint, c_smallint),
-NULLIF(c_bigint, c_tinyint),
-NULLIF(c_bigint, c_int),
-NULLIF(c_bigint, c_bigint),
-NULLIF(c_bigint, c_float),
-NULLIF(c_bigint, c_double),
-NULLIF(c_bigint, c_decimal103),
-NULLIF(c_bigint, c_varchar10),
-NULLIF(c_bigint, c_text),
-NULLIF(c_bigint, c_blob),
-NULLIF(c_bigint, c_enum),
-NULLIF(c_bigint, c_datetime3),
-NULLIF(c_bigint, c_timestamp3),
-NULLIF(c_bigint, c_date),
-NULLIF(c_bigint, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_bigint, 1)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_smallint)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_tinyint)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_int)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_bigint)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_float)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_double)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_decimal103)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_varchar10)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_text)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_blob)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_enum)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_datetime3)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_timestamp3)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_date)` bigint(20) DEFAULT NULL,
- `NULLIF(c_bigint, c_time)` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_float, 1),
-NULLIF(c_float, c_smallint),
-NULLIF(c_float, c_tinyint),
-NULLIF(c_float, c_int),
-NULLIF(c_float, c_bigint),
-NULLIF(c_float, c_float),
-NULLIF(c_float, c_double),
-NULLIF(c_float, c_decimal103),
-NULLIF(c_float, c_varchar10),
-NULLIF(c_float, c_text),
-NULLIF(c_float, c_blob),
-NULLIF(c_float, c_enum),
-NULLIF(c_float, c_datetime3),
-NULLIF(c_float, c_timestamp3),
-NULLIF(c_float, c_date),
-NULLIF(c_float, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_float, 1)` float DEFAULT NULL,
- `NULLIF(c_float, c_smallint)` float DEFAULT NULL,
- `NULLIF(c_float, c_tinyint)` float DEFAULT NULL,
- `NULLIF(c_float, c_int)` float DEFAULT NULL,
- `NULLIF(c_float, c_bigint)` float DEFAULT NULL,
- `NULLIF(c_float, c_float)` float DEFAULT NULL,
- `NULLIF(c_float, c_double)` float DEFAULT NULL,
- `NULLIF(c_float, c_decimal103)` float DEFAULT NULL,
- `NULLIF(c_float, c_varchar10)` float DEFAULT NULL,
- `NULLIF(c_float, c_text)` float DEFAULT NULL,
- `NULLIF(c_float, c_blob)` float DEFAULT NULL,
- `NULLIF(c_float, c_enum)` float DEFAULT NULL,
- `NULLIF(c_float, c_datetime3)` float DEFAULT NULL,
- `NULLIF(c_float, c_timestamp3)` float DEFAULT NULL,
- `NULLIF(c_float, c_date)` float DEFAULT NULL,
- `NULLIF(c_float, c_time)` float DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_double, 1),
-NULLIF(c_double, c_smallint),
-NULLIF(c_double, c_tinyint),
-NULLIF(c_double, c_int),
-NULLIF(c_double, c_bigint),
-NULLIF(c_double, c_float),
-NULLIF(c_double, c_double),
-NULLIF(c_double, c_decimal103),
-NULLIF(c_double, c_varchar10),
-NULLIF(c_double, c_text),
-NULLIF(c_double, c_blob),
-NULLIF(c_double, c_enum),
-NULLIF(c_double, c_datetime3),
-NULLIF(c_double, c_timestamp3),
-NULLIF(c_double, c_date),
-NULLIF(c_double, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_double, 1)` double DEFAULT NULL,
- `NULLIF(c_double, c_smallint)` double DEFAULT NULL,
- `NULLIF(c_double, c_tinyint)` double DEFAULT NULL,
- `NULLIF(c_double, c_int)` double DEFAULT NULL,
- `NULLIF(c_double, c_bigint)` double DEFAULT NULL,
- `NULLIF(c_double, c_float)` double DEFAULT NULL,
- `NULLIF(c_double, c_double)` double DEFAULT NULL,
- `NULLIF(c_double, c_decimal103)` double DEFAULT NULL,
- `NULLIF(c_double, c_varchar10)` double DEFAULT NULL,
- `NULLIF(c_double, c_text)` double DEFAULT NULL,
- `NULLIF(c_double, c_blob)` double DEFAULT NULL,
- `NULLIF(c_double, c_enum)` double DEFAULT NULL,
- `NULLIF(c_double, c_datetime3)` double DEFAULT NULL,
- `NULLIF(c_double, c_timestamp3)` double DEFAULT NULL,
- `NULLIF(c_double, c_date)` double DEFAULT NULL,
- `NULLIF(c_double, c_time)` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_decimal103, 1),
-NULLIF(c_decimal103, c_smallint),
-NULLIF(c_decimal103, c_tinyint),
-NULLIF(c_decimal103, c_int),
-NULLIF(c_decimal103, c_bigint),
-NULLIF(c_decimal103, c_float),
-NULLIF(c_decimal103, c_double),
-NULLIF(c_decimal103, c_decimal103),
-NULLIF(c_decimal103, c_varchar10),
-NULLIF(c_decimal103, c_text),
-NULLIF(c_decimal103, c_blob),
-NULLIF(c_decimal103, c_enum),
-NULLIF(c_decimal103, c_datetime3),
-NULLIF(c_decimal103, c_timestamp3),
-NULLIF(c_decimal103, c_date),
-NULLIF(c_decimal103, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_decimal103, 1)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_smallint)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_tinyint)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_int)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_bigint)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_float)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_double)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_decimal103)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_varchar10)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_text)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_blob)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_enum)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_datetime3)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_timestamp3)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_date)` decimal(10,3) DEFAULT NULL,
- `NULLIF(c_decimal103, c_time)` decimal(10,3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_varchar10, 1),
-NULLIF(c_varchar10, c_smallint),
-NULLIF(c_varchar10, c_tinyint),
-NULLIF(c_varchar10, c_int),
-NULLIF(c_varchar10, c_bigint),
-NULLIF(c_varchar10, c_float),
-NULLIF(c_varchar10, c_double),
-NULLIF(c_varchar10, c_decimal103),
-NULLIF(c_varchar10, c_varchar10),
-NULLIF(c_varchar10, c_text),
-NULLIF(c_varchar10, c_blob),
-NULLIF(c_varchar10, c_enum),
-NULLIF(c_varchar10, c_datetime3),
-NULLIF(c_varchar10, c_timestamp3),
-NULLIF(c_varchar10, c_date),
-NULLIF(c_varchar10, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_varchar10, 1)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_smallint)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_tinyint)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_int)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_bigint)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_float)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_double)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_decimal103)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_varchar10)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_text)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_blob)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_enum)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_datetime3)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_timestamp3)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_date)` varchar(10) DEFAULT NULL,
- `NULLIF(c_varchar10, c_time)` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_tinytext, 1),
-NULLIF(c_tinytext, c_smallint),
-NULLIF(c_tinytext, c_tinyint),
-NULLIF(c_tinytext, c_int),
-NULLIF(c_tinytext, c_bigint),
-NULLIF(c_tinytext, c_float),
-NULLIF(c_tinytext, c_double),
-NULLIF(c_tinytext, c_decimal103),
-NULLIF(c_tinytext, c_varchar10),
-NULLIF(c_tinytext, c_text),
-NULLIF(c_tinytext, c_blob),
-NULLIF(c_tinytext, c_enum),
-NULLIF(c_tinytext, c_datetime3),
-NULLIF(c_tinytext, c_timestamp3),
-NULLIF(c_tinytext, c_date),
-NULLIF(c_tinytext, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_tinytext, 1)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_smallint)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_tinyint)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_int)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_bigint)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_float)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_double)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_decimal103)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_varchar10)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_text)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_blob)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_enum)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_datetime3)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_timestamp3)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_date)` tinytext DEFAULT NULL,
- `NULLIF(c_tinytext, c_time)` tinytext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_text, 1),
-NULLIF(c_text, c_smallint),
-NULLIF(c_text, c_tinyint),
-NULLIF(c_text, c_int),
-NULLIF(c_text, c_bigint),
-NULLIF(c_text, c_float),
-NULLIF(c_text, c_double),
-NULLIF(c_text, c_decimal103),
-NULLIF(c_text, c_varchar10),
-NULLIF(c_text, c_text),
-NULLIF(c_text, c_blob),
-NULLIF(c_text, c_enum),
-NULLIF(c_text, c_datetime3),
-NULLIF(c_text, c_timestamp3),
-NULLIF(c_text, c_date),
-NULLIF(c_text, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_text, 1)` text DEFAULT NULL,
- `NULLIF(c_text, c_smallint)` text DEFAULT NULL,
- `NULLIF(c_text, c_tinyint)` text DEFAULT NULL,
- `NULLIF(c_text, c_int)` text DEFAULT NULL,
- `NULLIF(c_text, c_bigint)` text DEFAULT NULL,
- `NULLIF(c_text, c_float)` text DEFAULT NULL,
- `NULLIF(c_text, c_double)` text DEFAULT NULL,
- `NULLIF(c_text, c_decimal103)` text DEFAULT NULL,
- `NULLIF(c_text, c_varchar10)` text DEFAULT NULL,
- `NULLIF(c_text, c_text)` text DEFAULT NULL,
- `NULLIF(c_text, c_blob)` text DEFAULT NULL,
- `NULLIF(c_text, c_enum)` text DEFAULT NULL,
- `NULLIF(c_text, c_datetime3)` text DEFAULT NULL,
- `NULLIF(c_text, c_timestamp3)` text DEFAULT NULL,
- `NULLIF(c_text, c_date)` text DEFAULT NULL,
- `NULLIF(c_text, c_time)` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_mediumtext, 1),
-NULLIF(c_mediumtext, c_smallint),
-NULLIF(c_mediumtext, c_tinyint),
-NULLIF(c_mediumtext, c_int),
-NULLIF(c_mediumtext, c_bigint),
-NULLIF(c_mediumtext, c_float),
-NULLIF(c_mediumtext, c_double),
-NULLIF(c_mediumtext, c_decimal103),
-NULLIF(c_mediumtext, c_varchar10),
-NULLIF(c_mediumtext, c_text),
-NULLIF(c_mediumtext, c_blob),
-NULLIF(c_mediumtext, c_enum),
-NULLIF(c_mediumtext, c_datetime3),
-NULLIF(c_mediumtext, c_timestamp3),
-NULLIF(c_mediumtext, c_date),
-NULLIF(c_mediumtext, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_mediumtext, 1)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_smallint)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_tinyint)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_int)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_bigint)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_float)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_double)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_decimal103)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_varchar10)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_text)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_blob)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_enum)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_datetime3)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_timestamp3)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_date)` mediumtext DEFAULT NULL,
- `NULLIF(c_mediumtext, c_time)` mediumtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_longtext, 1),
-NULLIF(c_longtext, c_smallint),
-NULLIF(c_longtext, c_tinyint),
-NULLIF(c_longtext, c_int),
-NULLIF(c_longtext, c_bigint),
-NULLIF(c_longtext, c_float),
-NULLIF(c_longtext, c_double),
-NULLIF(c_longtext, c_decimal103),
-NULLIF(c_longtext, c_varchar10),
-NULLIF(c_longtext, c_text),
-NULLIF(c_longtext, c_blob),
-NULLIF(c_longtext, c_enum),
-NULLIF(c_longtext, c_datetime3),
-NULLIF(c_longtext, c_timestamp3),
-NULLIF(c_longtext, c_date),
-NULLIF(c_longtext, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_longtext, 1)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_smallint)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_tinyint)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_int)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_bigint)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_float)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_double)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_decimal103)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_varchar10)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_text)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_blob)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_enum)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_datetime3)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_timestamp3)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_date)` longtext DEFAULT NULL,
- `NULLIF(c_longtext, c_time)` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_tinyblob, 1),
-NULLIF(c_tinyblob, c_smallint),
-NULLIF(c_tinyblob, c_tinyint),
-NULLIF(c_tinyblob, c_int),
-NULLIF(c_tinyblob, c_bigint),
-NULLIF(c_tinyblob, c_float),
-NULLIF(c_tinyblob, c_double),
-NULLIF(c_tinyblob, c_decimal103),
-NULLIF(c_tinyblob, c_varchar10),
-NULLIF(c_tinyblob, c_text),
-NULLIF(c_tinyblob, c_blob),
-NULLIF(c_tinyblob, c_enum),
-NULLIF(c_tinyblob, c_datetime3),
-NULLIF(c_tinyblob, c_timestamp3),
-NULLIF(c_tinyblob, c_date),
-NULLIF(c_tinyblob, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_tinyblob, 1)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_smallint)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_tinyint)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_int)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_bigint)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_float)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_double)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_decimal103)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_varchar10)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_text)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_blob)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_enum)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_datetime3)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_timestamp3)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_date)` tinyblob DEFAULT NULL,
- `NULLIF(c_tinyblob, c_time)` tinyblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_blob, 1),
-NULLIF(c_blob, c_smallint),
-NULLIF(c_blob, c_tinyint),
-NULLIF(c_blob, c_int),
-NULLIF(c_blob, c_bigint),
-NULLIF(c_blob, c_float),
-NULLIF(c_blob, c_double),
-NULLIF(c_blob, c_decimal103),
-NULLIF(c_blob, c_varchar10),
-NULLIF(c_blob, c_text),
-NULLIF(c_blob, c_blob),
-NULLIF(c_blob, c_enum),
-NULLIF(c_blob, c_datetime3),
-NULLIF(c_blob, c_timestamp3),
-NULLIF(c_blob, c_date),
-NULLIF(c_blob, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_blob, 1)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_smallint)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_tinyint)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_int)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_bigint)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_float)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_double)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_decimal103)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_varchar10)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_text)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_blob)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_enum)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_datetime3)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_timestamp3)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_date)` blob DEFAULT NULL,
- `NULLIF(c_blob, c_time)` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_mediumblob, 1),
-NULLIF(c_mediumblob, c_smallint),
-NULLIF(c_mediumblob, c_tinyint),
-NULLIF(c_mediumblob, c_int),
-NULLIF(c_mediumblob, c_bigint),
-NULLIF(c_mediumblob, c_float),
-NULLIF(c_mediumblob, c_double),
-NULLIF(c_mediumblob, c_decimal103),
-NULLIF(c_mediumblob, c_varchar10),
-NULLIF(c_mediumblob, c_text),
-NULLIF(c_mediumblob, c_blob),
-NULLIF(c_mediumblob, c_enum),
-NULLIF(c_mediumblob, c_datetime3),
-NULLIF(c_mediumblob, c_timestamp3),
-NULLIF(c_mediumblob, c_date),
-NULLIF(c_mediumblob, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_mediumblob, 1)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_smallint)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_tinyint)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_int)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_bigint)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_float)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_double)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_decimal103)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_varchar10)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_text)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_blob)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_enum)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_datetime3)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_timestamp3)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_date)` mediumblob DEFAULT NULL,
- `NULLIF(c_mediumblob, c_time)` mediumblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_longblob, 1),
-NULLIF(c_longblob, c_smallint),
-NULLIF(c_longblob, c_tinyint),
-NULLIF(c_longblob, c_int),
-NULLIF(c_longblob, c_bigint),
-NULLIF(c_longblob, c_float),
-NULLIF(c_longblob, c_double),
-NULLIF(c_longblob, c_decimal103),
-NULLIF(c_longblob, c_varchar10),
-NULLIF(c_longblob, c_text),
-NULLIF(c_longblob, c_blob),
-NULLIF(c_longblob, c_enum),
-NULLIF(c_longblob, c_datetime3),
-NULLIF(c_longblob, c_timestamp3),
-NULLIF(c_longblob, c_date),
-NULLIF(c_longblob, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_longblob, 1)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_smallint)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_tinyint)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_int)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_bigint)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_float)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_double)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_decimal103)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_varchar10)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_text)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_blob)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_enum)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_datetime3)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_timestamp3)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_date)` longblob DEFAULT NULL,
- `NULLIF(c_longblob, c_time)` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_enum, 1),
-NULLIF(c_enum, c_smallint),
-NULLIF(c_enum, c_tinyint),
-NULLIF(c_enum, c_int),
-NULLIF(c_enum, c_bigint),
-NULLIF(c_enum, c_float),
-NULLIF(c_enum, c_double),
-NULLIF(c_enum, c_decimal103),
-NULLIF(c_enum, c_varchar10),
-NULLIF(c_enum, c_text),
-NULLIF(c_enum, c_blob),
-NULLIF(c_enum, c_enum),
-NULLIF(c_enum, c_datetime3),
-NULLIF(c_enum, c_timestamp3),
-NULLIF(c_enum, c_date),
-NULLIF(c_enum, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_enum, 1)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_smallint)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_tinyint)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_int)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_bigint)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_float)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_double)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_decimal103)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_varchar10)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_text)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_blob)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_enum)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_datetime3)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_timestamp3)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_date)` varchar(4) DEFAULT NULL,
- `NULLIF(c_enum, c_time)` varchar(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_datetime3, 1),
-NULLIF(c_datetime3, c_smallint),
-NULLIF(c_datetime3, c_tinyint),
-NULLIF(c_datetime3, c_int),
-NULLIF(c_datetime3, c_bigint),
-NULLIF(c_datetime3, c_float),
-NULLIF(c_datetime3, c_double),
-NULLIF(c_datetime3, c_decimal103),
-NULLIF(c_datetime3, c_varchar10),
-NULLIF(c_datetime3, c_text),
-NULLIF(c_datetime3, c_blob),
-NULLIF(c_datetime3, c_enum),
-NULLIF(c_datetime3, c_datetime3),
-NULLIF(c_datetime3, c_timestamp3),
-NULLIF(c_datetime3, c_date),
-NULLIF(c_datetime3, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_datetime3, 1)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_smallint)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_tinyint)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_int)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_bigint)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_float)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_double)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_decimal103)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_varchar10)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_text)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_blob)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_enum)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_datetime3)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_timestamp3)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_date)` datetime(3) DEFAULT NULL,
- `NULLIF(c_datetime3, c_time)` datetime(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_timestamp3, 1),
-NULLIF(c_timestamp3, c_smallint),
-NULLIF(c_timestamp3, c_tinyint),
-NULLIF(c_timestamp3, c_int),
-NULLIF(c_timestamp3, c_bigint),
-NULLIF(c_timestamp3, c_float),
-NULLIF(c_timestamp3, c_double),
-NULLIF(c_timestamp3, c_decimal103),
-NULLIF(c_timestamp3, c_varchar10),
-NULLIF(c_timestamp3, c_text),
-NULLIF(c_timestamp3, c_blob),
-NULLIF(c_timestamp3, c_enum),
-NULLIF(c_timestamp3, c_datetime3),
-NULLIF(c_timestamp3, c_timestamp3),
-NULLIF(c_timestamp3, c_date),
-NULLIF(c_timestamp3, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_timestamp3, 1)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_smallint)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_tinyint)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_int)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_bigint)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_float)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_double)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_decimal103)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_varchar10)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_text)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_blob)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_enum)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_datetime3)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_timestamp3)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_date)` timestamp(3) NULL DEFAULT NULL,
- `NULLIF(c_timestamp3, c_time)` timestamp(3) NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_date, 1),
-NULLIF(c_date, c_smallint),
-NULLIF(c_date, c_tinyint),
-NULLIF(c_date, c_int),
-NULLIF(c_date, c_bigint),
-NULLIF(c_date, c_float),
-NULLIF(c_date, c_double),
-NULLIF(c_date, c_decimal103),
-NULLIF(c_date, c_varchar10),
-NULLIF(c_date, c_text),
-NULLIF(c_date, c_blob),
-NULLIF(c_date, c_enum),
-NULLIF(c_date, c_datetime3),
-NULLIF(c_date, c_timestamp3),
-NULLIF(c_date, c_date),
-NULLIF(c_date, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_date, 1)` date DEFAULT NULL,
- `NULLIF(c_date, c_smallint)` date DEFAULT NULL,
- `NULLIF(c_date, c_tinyint)` date DEFAULT NULL,
- `NULLIF(c_date, c_int)` date DEFAULT NULL,
- `NULLIF(c_date, c_bigint)` date DEFAULT NULL,
- `NULLIF(c_date, c_float)` date DEFAULT NULL,
- `NULLIF(c_date, c_double)` date DEFAULT NULL,
- `NULLIF(c_date, c_decimal103)` date DEFAULT NULL,
- `NULLIF(c_date, c_varchar10)` date DEFAULT NULL,
- `NULLIF(c_date, c_text)` date DEFAULT NULL,
- `NULLIF(c_date, c_blob)` date DEFAULT NULL,
- `NULLIF(c_date, c_enum)` date DEFAULT NULL,
- `NULLIF(c_date, c_datetime3)` date DEFAULT NULL,
- `NULLIF(c_date, c_timestamp3)` date DEFAULT NULL,
- `NULLIF(c_date, c_date)` date DEFAULT NULL,
- `NULLIF(c_date, c_time)` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(c_time, 1),
-NULLIF(c_time, c_smallint),
-NULLIF(c_time, c_tinyint),
-NULLIF(c_time, c_int),
-NULLIF(c_time, c_bigint),
-NULLIF(c_time, c_float),
-NULLIF(c_time, c_double),
-NULLIF(c_time, c_decimal103),
-NULLIF(c_time, c_varchar10),
-NULLIF(c_time, c_text),
-NULLIF(c_time, c_blob),
-NULLIF(c_time, c_enum),
-NULLIF(c_time, c_datetime3),
-NULLIF(c_time, c_timestamp3),
-NULLIF(c_time, c_date),
-NULLIF(c_time, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(c_time, 1)` time DEFAULT NULL,
- `NULLIF(c_time, c_smallint)` time DEFAULT NULL,
- `NULLIF(c_time, c_tinyint)` time DEFAULT NULL,
- `NULLIF(c_time, c_int)` time DEFAULT NULL,
- `NULLIF(c_time, c_bigint)` time DEFAULT NULL,
- `NULLIF(c_time, c_float)` time DEFAULT NULL,
- `NULLIF(c_time, c_double)` time DEFAULT NULL,
- `NULLIF(c_time, c_decimal103)` time DEFAULT NULL,
- `NULLIF(c_time, c_varchar10)` time DEFAULT NULL,
- `NULLIF(c_time, c_text)` time DEFAULT NULL,
- `NULLIF(c_time, c_blob)` time DEFAULT NULL,
- `NULLIF(c_time, c_enum)` time DEFAULT NULL,
- `NULLIF(c_time, c_datetime3)` time DEFAULT NULL,
- `NULLIF(c_time, c_timestamp3)` time DEFAULT NULL,
- `NULLIF(c_time, c_date)` time DEFAULT NULL,
- `NULLIF(c_time, c_time)` time DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-#
-# Checking that the return type depends only on args[0], even if compared to a field
-#
-CREATE TABLE t2 AS SELECT
-NULLIF(1, 1),
-NULLIF(1, c_smallint),
-NULLIF(1, c_tinyint),
-NULLIF(1, c_int),
-NULLIF(1, c_bigint),
-NULLIF(1, c_float),
-NULLIF(1, c_double),
-NULLIF(1, c_decimal103),
-NULLIF(1, c_varchar10),
-NULLIF(1, c_text),
-NULLIF(1, c_blob),
-NULLIF(1, c_enum),
-NULLIF(1, c_datetime3),
-NULLIF(1, c_timestamp3),
-NULLIF(1, c_date),
-NULLIF(1, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(1, 1)` int(1) DEFAULT NULL,
- `NULLIF(1, c_smallint)` int(1) DEFAULT NULL,
- `NULLIF(1, c_tinyint)` int(1) DEFAULT NULL,
- `NULLIF(1, c_int)` int(1) DEFAULT NULL,
- `NULLIF(1, c_bigint)` int(1) DEFAULT NULL,
- `NULLIF(1, c_float)` int(1) DEFAULT NULL,
- `NULLIF(1, c_double)` int(1) DEFAULT NULL,
- `NULLIF(1, c_decimal103)` int(1) DEFAULT NULL,
- `NULLIF(1, c_varchar10)` int(1) DEFAULT NULL,
- `NULLIF(1, c_text)` int(1) DEFAULT NULL,
- `NULLIF(1, c_blob)` int(1) DEFAULT NULL,
- `NULLIF(1, c_enum)` int(1) DEFAULT NULL,
- `NULLIF(1, c_datetime3)` int(1) DEFAULT NULL,
- `NULLIF(1, c_timestamp3)` int(1) DEFAULT NULL,
- `NULLIF(1, c_date)` int(1) DEFAULT NULL,
- `NULLIF(1, c_time)` int(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(1.0, 1),
-NULLIF(1.0, c_smallint),
-NULLIF(1.0, c_tinyint),
-NULLIF(1.0, c_int),
-NULLIF(1.0, c_bigint),
-NULLIF(1.0, c_float),
-NULLIF(1.0, c_double),
-NULLIF(1.0, c_decimal103),
-NULLIF(1.0, c_varchar10),
-NULLIF(1.0, c_text),
-NULLIF(1.0, c_blob),
-NULLIF(1.0, c_enum),
-NULLIF(1.0, c_datetime3),
-NULLIF(1.0, c_timestamp3),
-NULLIF(1.0, c_date),
-NULLIF(1.0, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(1.0, 1)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_smallint)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_tinyint)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_int)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_bigint)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_float)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_double)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_decimal103)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_varchar10)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_text)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_blob)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_enum)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_datetime3)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_timestamp3)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_date)` decimal(2,1) DEFAULT NULL,
- `NULLIF(1.0, c_time)` decimal(2,1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(1e0, 1),
-NULLIF(1e0, c_smallint),
-NULLIF(1e0, c_tinyint),
-NULLIF(1e0, c_int),
-NULLIF(1e0, c_bigint),
-NULLIF(1e0, c_float),
-NULLIF(1e0, c_double),
-NULLIF(1e0, c_decimal103),
-NULLIF(1e0, c_varchar10),
-NULLIF(1e0, c_text),
-NULLIF(1e0, c_blob),
-NULLIF(1e0, c_enum),
-NULLIF(1e0, c_datetime3),
-NULLIF(1e0, c_timestamp3),
-NULLIF(1e0, c_date),
-NULLIF(1e0, c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(1e0, 1)` double DEFAULT NULL,
- `NULLIF(1e0, c_smallint)` double DEFAULT NULL,
- `NULLIF(1e0, c_tinyint)` double DEFAULT NULL,
- `NULLIF(1e0, c_int)` double DEFAULT NULL,
- `NULLIF(1e0, c_bigint)` double DEFAULT NULL,
- `NULLIF(1e0, c_float)` double DEFAULT NULL,
- `NULLIF(1e0, c_double)` double DEFAULT NULL,
- `NULLIF(1e0, c_decimal103)` double DEFAULT NULL,
- `NULLIF(1e0, c_varchar10)` double DEFAULT NULL,
- `NULLIF(1e0, c_text)` double DEFAULT NULL,
- `NULLIF(1e0, c_blob)` double DEFAULT NULL,
- `NULLIF(1e0, c_enum)` double DEFAULT NULL,
- `NULLIF(1e0, c_datetime3)` double DEFAULT NULL,
- `NULLIF(1e0, c_timestamp3)` double DEFAULT NULL,
- `NULLIF(1e0, c_date)` double DEFAULT NULL,
- `NULLIF(1e0, c_time)` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF('1', 1),
-NULLIF('1', c_smallint),
-NULLIF('1', c_tinyint),
-NULLIF('1', c_int),
-NULLIF('1', c_bigint),
-NULLIF('1', c_float),
-NULLIF('1', c_double),
-NULLIF('1', c_decimal103),
-NULLIF('1', c_varchar10),
-NULLIF('1', c_text),
-NULLIF('1', c_blob),
-NULLIF('1', c_enum),
-NULLIF('1', c_datetime3),
-NULLIF('1', c_timestamp3),
-NULLIF('1', c_date),
-NULLIF('1', c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF('1', 1)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_smallint)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_tinyint)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_int)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_bigint)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_float)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_double)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_decimal103)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_varchar10)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_text)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_blob)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_enum)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_datetime3)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_timestamp3)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_date)` varchar(1) DEFAULT NULL,
- `NULLIF('1', c_time)` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT
-NULLIF(TIME'10:10:10', 1),
-NULLIF(TIME'10:10:10', c_smallint),
-NULLIF(TIME'10:10:10', c_tinyint),
-NULLIF(TIME'10:10:10', c_int),
-NULLIF(TIME'10:10:10', c_bigint),
-NULLIF(TIME'10:10:10', c_float),
-NULLIF(TIME'10:10:10', c_double),
-NULLIF(TIME'10:10:10', c_decimal103),
-NULLIF(TIME'10:10:10', c_varchar10),
-NULLIF(TIME'10:10:10', c_text),
-NULLIF(TIME'10:10:10', c_blob),
-NULLIF(TIME'10:10:10', c_enum),
-NULLIF(TIME'10:10:10', c_datetime3),
-NULLIF(TIME'10:10:10', c_timestamp3),
-NULLIF(TIME'10:10:10', c_date),
-NULLIF(TIME'10:10:10', c_time)
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `NULLIF(TIME'10:10:10', 1)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_smallint)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_tinyint)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_int)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_bigint)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_float)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_double)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_decimal103)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_varchar10)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_text)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_blob)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_enum)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_datetime3)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_timestamp3)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_date)` time DEFAULT NULL,
- `NULLIF(TIME'10:10:10', c_time)` time DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# MDEV-7759 NULLIF(x,y) is not equal to CASE WHEN x=y THEN NULL ELSE x END
-#
-CREATE TABLE t1 (a YEAR);
-INSERT INTO t1 VALUES (2010),(2020);
-SELECT * FROM t1 WHERE a=2010 AND NULLIF(10.1,a) IS NULL;
-a
-2010
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=2010 AND NULLIF(10.1,a) IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2010
-SELECT * FROM t1 WHERE a=2010 AND CASE WHEN 10.1=a THEN NULL ELSE 10.1 END IS NULL;
-a
-2010
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=2010 AND CASE WHEN 10.1=a THEN NULL ELSE 10.1 END IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2010
-DROP TABLE t1;
-# Two warnings expected
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t1 AS SELECT
-NULLIF(TIMESTAMP'2001-01-01 00:00:00',1) AS a,
-CASE WHEN TIMESTAMP'2001-01-01 00:00:00'=1 THEN NULL
-ELSE TIMESTAMP'2001-01-01 00:00:00'
- END AS b;
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-Warning 1292 Incorrect datetime value: '1'
-DROP TABLE t1;
-#
-# MDEV-8785 Wrong results for EXPLAIN EXTENDED...WHERE NULLIF(latin1_col, _utf8'a' COLLATE utf8_bin) IS NOT NULL
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1);
-INSERT INTO t1 VALUES ('a'),('A');
-SELECT a, NULLIF(a,_utf8'a' COLLATE utf8_bin) IS NULL FROM t1;
-a NULLIF(a,_utf8'a' COLLATE utf8_bin) IS NULL
-a 1
-A 0
-SELECT CHARSET(NULLIF(a,_utf8'a' COLLATE utf8_bin)) FROM t1;
-CHARSET(NULLIF(a,_utf8'a' COLLATE utf8_bin))
-latin1
-latin1
-EXPLAIN EXTENDED SELECT NULLIF(a,_utf8'a' COLLATE utf8_bin) IS NULL AS expr FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 select (case when convert(`test`.`t1`.`a` using utf8) = _utf8'a' collate utf8_bin then NULL else `test`.`t1`.`a` end) is null AS `expr` from `test`.`t1`
-DROP TABLE t1;
-#
-# MDEV-8740 Wrong result for SELECT..WHERE year_field=10 AND NULLIF(year_field,2011.1)='2011'
-#
-CREATE TABLE t1 (a YEAR);
-INSERT INTO t1 VALUES (2010),(2011);
-SELECT a=10 AND NULLIF(a,2011.1)='2011' AS cond FROM t1;
-cond
-0
-0
-SELECT * FROM t1 WHERE a=10;
-a
-2010
-SELECT * FROM t1 WHERE NULLIF(a,2011.1)='2011';
-a
-SELECT * FROM t1 WHERE a=10 AND NULLIF(a,2011.1)='2011';
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a=10 AND NULLIF(a,2011.1)='2011';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2010 and (case when 2010 = 2011 then NULL else `test`.`t1`.`a` end) = '2011'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a=10 AND NULLIF(a,2011.1)=CONCAT('2011',RAND());
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2010 and (case when 2010 = 2011 then NULL else `test`.`t1`.`a` end) = concat('2011',rand())
-DROP TABLE t1;
-#
-# MDEV-8754 Wrong result for SELECT..WHERE year_field=2020 AND NULLIF(year_field,2010)='2020'
-#
-CREATE TABLE t1 (a YEAR);
-INSERT INTO t1 VALUES (2010),(2020);
-SELECT * FROM t1 WHERE a=2020;
-a
-2020
-SELECT * FROM t1 WHERE NULLIF(a,2010)='2020';
-a
-2020
-SELECT * FROM t1 WHERE a=2020 AND NULLIF(a,2010)='2020';
-a
-2020
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a=2020 AND NULLIF(a,2010)='2020';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2020 and (case when 2020 = 2010 then NULL else `test`.`t1`.`a` end) = '2020'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a=2020 AND NULLIF(a,2010)=CONCAT('2020',RAND());
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2020 and (case when 2020 = 2010 then NULL else `test`.`t1`.`a` end) = concat('2020',rand())
-DROP TABLE t1;
-#
-# MDEV-9181 (NULLIF(count(table.col)), 0) gives wrong result on 10.1.x
-#
-CREATE TABLE t1 (c1 varchar(50) DEFAULT NULL);
-INSERT INTO t1 (c1) VALUES ('hello'), ('hello\r\n'), ('hello'),('hello');
-SELECT NULLIF(COUNT(c1),0) FROM t1;
-NULLIF(COUNT(c1),0)
-4
-SELECT CASE WHEN COUNT(c1)=0 THEN NULL ELSE COUNT(c1) END FROM t1;
-CASE WHEN COUNT(c1)=0 THEN NULL ELSE COUNT(c1) END
-4
-SELECT NULLIF(COUNT(c1)+0,0) AS c1,NULLIF(CAST(COUNT(c1) AS SIGNED),0) AS c2,NULLIF(CONCAT(COUNT(c1)),0) AS c3 FROM t1;
-c1 c2 c3
-4 4 4
-SELECT NULLIF(COUNT(DISTINCT c1),0) FROM t1;
-NULLIF(COUNT(DISTINCT c1),0)
-2
-SELECT CASE WHEN COUNT(DISTINCT c1)=0 THEN NULL ELSE COUNT(DISTINCT c1) END FROM t1;
-CASE WHEN COUNT(DISTINCT c1)=0 THEN NULL ELSE COUNT(DISTINCT c1) END
-2
-DROP TABLE t1;
-CREATE TABLE t1 (
-id INT NOT NULL,
-c1 INT DEFAULT NULL
-);
-INSERT INTO t1 VALUES (1,1),(1,2),(2,3),(2,4);
-SELECT NULLIF(COUNT(c1),0) AS c1,NULLIF(COUNT(c1)+0,0) AS c1_wrapped,CASE WHEN COUNT(c1) IS NULL THEN 0 ELSE COUNT(c1) END AS c1_case FROM t1 GROUP BY id;
-c1 c1_wrapped c1_case
-2 2 2
-2 2 2
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-SET @a=0;
-SELECT NULLIF(LAST_VALUE(@a:=@a+1,a),0) FROM t1;
-NULLIF(LAST_VALUE(@a:=@a+1,a),0)
-1
-2
-3
-SELECT @a;
-@a
-6
-SET @a=0;
-SELECT NULLIF(AVG(a),0), NULLIF(AVG(LAST_VALUE(@a:=@a+1,a)),0) FROM t1;
-NULLIF(AVG(a),0) NULLIF(AVG(LAST_VALUE(@a:=@a+1,a)),0)
-2.0000 2.0000
-SELECT @a;
-@a
-3
-EXPLAIN EXTENDED SELECT NULLIF(a,0) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 select nullif(`test`.`t1`.`a`,0) AS `NULLIF(a,0)` from `test`.`t1`
-EXPLAIN EXTENDED SELECT NULLIF(AVG(a),0) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 select nullif(<cache>(avg(`test`.`t1`.`a`)),0) AS `NULLIF(AVG(a),0)` from `test`.`t1`
-DROP TABLE t1;
-create table t1 (col1 varchar(50));
-create view v1 AS select nullif(count(distinct col1),0) from t1;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select nullif(count(distinct `t1`.`col1`),0) AS `nullif(count(distinct col1),0)` from `t1` latin1 latin1_swedish_ci
-drop view v1;
-drop table t1;
-create table t1 (col1 varchar(50) default null);
-insert into t1 (col1) values ('hello'), ('hello'), ('hello');
-create view v1 as select nullif(count(col1),0) from t1;
-select * from v1;
-nullif(count(col1),0)
-3
-select nullif(count(col1),0) from t1;
-nullif(count(col1),0)
-3
-drop view v1;
-drop table t1;
-select nullif((select 1), (select 2));
-nullif((select 1), (select 2))
-1
-create table t1 (f int);
-insert into t1 values (1),(2);
-select nullif( not f, 1 ) from t1;
-nullif( not f, 1 )
-0
-0
-drop table t1;
-set names utf8;
-create table t1 (f1 varchar(10));
-insert into t1 values ('2015-12-31');
-select power( timestamp( nullif( '2002-09-08', f1 ) ), 24 ) from t1;
-ERROR 22003: DOUBLE value is out of range in 'pow(cast((case when '2002-09-08' = `test`.`t1`.`f1` then NULL else '2002-09-08' end) as datetime(6)),24)'
-drop table t1;
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES (1),(2);
-PREPARE stmt FROM "SELECT * FROM t1 WHERE NULLIF( ( 1, 2 ) IN ( SELECT 3, 4 ), 1 )";
-EXECUTE stmt;
-f1
-EXECUTE stmt;
-f1
-DROP TABLE t1;
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 WHERE NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(i = ROUND(0), 14), 13), 12), 11), 10), 9), 8), 7), 6), 5), 4), 3), 2), 1);
-i
-DROP TABLE t1;
-#
-# MDEV-10347 mysqld got signal 11
-#
-CREATE TABLE t1 (f1 VARCHAR(10), f2 VARCHAR(40));
-CREATE TABLE t2 (f3 VARCHAR(20));
-PREPARE stmt FROM "
- SELECT (
- SELECT IFNULL(f3,4) FROM t2
- WHERE IFNULL(NULLIF(f1,''),1)
- ) AS sq
- FROM t1
- GROUP BY f2
-";
-EXECUTE stmt;
-sq
-DEALLOCATE PREPARE stmt;
-DROP TABLE t2,t1;
-#
-# MDEV-10236 Where expression with NOT function gives incorrect result
-#
-CREATE TABLE t1 (c1 INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE ((c1 IS NOT NULL) >= (NOT TRUE)) IS NOT NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where `test`.`t1`.`c1` is not null >= 0 is not null
-SELECT * FROM t1 WHERE ((c1 IS NOT NULL) >= (NOT TRUE)) IS NOT NULL;
-c1
-1
-2
-3
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
diff --git a/mysql-test/r/null_key.result b/mysql-test/r/null_key.result
deleted file mode 100644
index 4b4a4b80dee..00000000000
--- a/mysql-test/r/null_key.result
+++ /dev/null
@@ -1,466 +0,0 @@
-drop table if exists t1,t2;
-create table t1 (a int, b int not null,unique key (a,b),index(b)) engine=myisam;
-insert ignore into t1 values (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(null,7),(9,9),(8,8),(7,7),(null,9),(null,9),(6,6);
-Warnings:
-Warning 1062 Duplicate entry '6-6' for key 'a'
-explain select * from t1 where a is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 5 const 3 Using where; Using index
-explain select * from t1 where a is null and b = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a,b a 9 const,const 1 Using where; Using index
-explain select * from t1 where a is null and b = 7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a,b a 9 const,const 1 Using where; Using index
-explain select * from t1 where a=2 and b = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const a,b a 9 const,const 1 Using index
-explain select * from t1 where a<=>b limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 9 NULL 12 Using where; Using index
-explain select * from t1 where (a is null or a > 0 and a < 3) and b < 5 limit 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a,b a 9 NULL 3 Using where; Using index
-explain select * from t1 where (a is null or a = 7) and b=7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null a,b a 9 const,const 2 Using where; Using index
-explain select * from t1 where (a is null or a = 7) and b=7 order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null a,b a 9 const,const 2 Using where; Using index; Using filesort
-explain select * from t1 where (a is null and b>a) or a is null and b=7 limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a,b a 5 const 3 Using where; Using index
-explain select * from t1 where a is null and b=9 or a is null and b=7 limit 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a,b a 9 NULL 3 Using where; Using index
-explain select * from t1 where a > 1 and a < 3 limit 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 1 Using where; Using index
-explain select * from t1 where a > 8 and a < 9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 1 Using where; Using index
-select * from t1 where a is null;
-a b
-NULL 7
-NULL 9
-NULL 9
-select * from t1 where a is null and b = 7;
-a b
-NULL 7
-select * from t1 where a<=>b limit 2;
-a b
-1 1
-2 2
-select * from t1 where (a is null or a > 0 and a < 3) and b < 5 limit 3;
-a b
-1 1
-2 2
-select * from t1 where (a is null or a > 0 and a < 3) and b > 7 limit 3;
-a b
-NULL 9
-NULL 9
-select * from t1 where (a is null or a = 7) and b=7;
-a b
-7 7
-NULL 7
-select * from t1 where a is null and b=9 or a is null and b=7 limit 3;
-a b
-NULL 7
-NULL 9
-NULL 9
-select * from t1 where a > 1 and a < 3 limit 1;
-a b
-2 2
-select * from t1 where a > 8 and a < 9;
-a b
-create table t2 like t1;
-insert into t2 select * from t1;
-alter table t1 modify b blob not null, add c int not null, drop key a, add unique key (a,b(20),c), drop key b, add key (b(10));
-explain select * from t1 where a is null and b = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a,b a 5 const 3 Using where
-explain select * from t1 where a is null and b = 2 and c=0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a,b a 5 const 3 Using where
-explain select * from t1 where a is null and b = 7 and c=0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a,b a 5 const 3 Using where
-explain select * from t1 where a=2 and b = 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a,b a 5 const 1 Using where
-explain select * from t1 where a<=>b limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 12 Using where
-explain select * from t1 where (a is null or a > 0 and a < 3) and b < 5 and c=0 limit 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a,b a 5 NULL 5 Using where
-explain select * from t1 where (a is null or a = 7) and b=7 and c=0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null a,b a 5 const 4 Using where
-explain select * from t1 where (a is null and b>a) or a is null and b=7 limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a,b a 5 const 3 Using where
-explain select * from t1 where a is null and b=9 or a is null and b=7 limit 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a,b a 5 const 3 Using where
-explain select * from t1 where a > 1 and a < 3 limit 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 1 Using where
-explain select * from t1 where a is null and b=7 or a > 1 and a < 3 limit 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a,b a 5 NULL 4 Using where
-explain select * from t1 where a > 8 and a < 9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 1 Using where
-explain select * from t1 where b like "6%";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range b b 12 NULL 1 Using where
-select * from t1 where a is null;
-a b c
-NULL 7 0
-NULL 9 0
-NULL 9 0
-select * from t1 where a is null and b = 7 and c=0;
-a b c
-NULL 7 0
-select * from t1 where a<=>b limit 2;
-a b c
-1 1 0
-2 2 0
-select * from t1 where (a is null or a > 0 and a < 3) and b < 5 limit 3;
-a b c
-1 1 0
-2 2 0
-select * from t1 where (a is null or a > 0 and a < 3) and b > 7 limit 3;
-a b c
-NULL 9 0
-NULL 9 0
-select * from t1 where (a is null or a = 7) and b=7 and c=0;
-a b c
-7 7 0
-NULL 7 0
-select * from t1 where a is null and b=9 or a is null and b=7 limit 3;
-a b c
-NULL 7 0
-NULL 9 0
-NULL 9 0
-select * from t1 where b like "6%";
-a b c
-6 6 0
-drop table t1;
-rename table t2 to t1;
-alter table t1 modify b int null;
-insert into t1 values (7,null), (8,null), (8,7);
-explain select * from t1 where a = 7 and (b=7 or b is null);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null a,b a 10 const,const 2 Using where; Using index
-select * from t1 where a = 7 and (b=7 or b is null);
-a b
-7 7
-7 NULL
-explain select * from t1 where (a = 7 or a is null) and (b=7 or b is null);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null a,b a 5 const 4 Using where; Using index
-select * from t1 where (a = 7 or a is null) and (b=7 or b is null);
-a b
-7 NULL
-7 7
-NULL 7
-explain select * from t1 where (a = 7 or a is null) and (a = 7 or a is null);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null a a 5 const 5 Using where; Using index
-select * from t1 where (a = 7 or a is null) and (a = 7 or a is null);
-a b
-7 NULL
-7 7
-NULL 7
-NULL 9
-NULL 9
-create table t2 (a int);
-insert into t2 values (7),(8);
-explain select * from t2 straight_join t1 where t1.a=t2.a and b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t1 ref a,b a 10 test.t2.a,const 2 Using where; Using index
-drop index b on t1;
-explain select * from t2,t1 where t1.a=t2.a and b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t1 ref a a 10 test.t2.a,const 2 Using where; Using index
-select * from t2,t1 where t1.a=t2.a and b is null;
-a a b
-7 7 NULL
-8 8 NULL
-explain select * from t2,t1 where t1.a=t2.a and (b= 7 or b is null);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t1 ref_or_null a a 10 test.t2.a,const 4 Using where; Using index
-select * from t2,t1 where t1.a=t2.a and (b= 7 or b is null);
-a a b
-7 7 7
-7 7 NULL
-8 8 7
-8 8 NULL
-explain select * from t2,t1 where (t1.a=t2.a or t1.a is null) and b= 7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2
-1 SIMPLE t1 ref_or_null a a 10 test.t2.a,const 4 Using where; Using index
-select * from t2,t1 where (t1.a=t2.a or t1.a is null) and b= 7;
-a a b
-7 7 7
-7 NULL 7
-8 8 7
-8 NULL 7
-explain select * from t2,t1 where (t1.a=t2.a or t1.a is null) and (b= 7 or b is null);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2
-1 SIMPLE t1 ref_or_null a a 5 test.t2.a 4 Using where; Using index
-select * from t2,t1 where (t1.a=t2.a or t1.a is null) and (b= 7 or b is null);
-a a b
-7 7 NULL
-7 7 7
-7 NULL 7
-8 8 NULL
-8 8 7
-8 NULL 7
-insert into t2 values (null),(6);
-delete from t1 where a=8;
-explain select * from t2,t1 where t1.a=t2.a or t1.a is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4
-1 SIMPLE t1 ref_or_null a a 5 test.t2.a 4 Using where; Using index
-explain select * from t2,t1 where t1.a<=>t2.a or (t1.a is null and t1.b <> 9);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4
-1 SIMPLE t1 ref_or_null a a 5 test.t2.a 4 Using where; Using index
-select * from t2,t1 where t1.a<=>t2.a or (t1.a is null and t1.b <> 9);
-a a b
-7 7 NULL
-7 7 7
-7 NULL 7
-8 NULL 7
-NULL NULL 7
-NULL NULL 9
-NULL NULL 9
-6 6 6
-6 NULL 7
-drop table t1,t2;
-CREATE TABLE t1 (
-id int(10) unsigned NOT NULL auto_increment,
-uniq_id int(10) unsigned default NULL,
-PRIMARY KEY (id),
-UNIQUE KEY idx1 (uniq_id)
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-id int(10) unsigned NOT NULL auto_increment,
-uniq_id int(10) unsigned default NULL,
-PRIMARY KEY (id)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,NULL),(2,NULL),(3,1),(4,2),(5,NULL),(6,NULL),(7,3),(8,4),(9,NULL),(10,NULL);
-INSERT INTO t2 VALUES (1,NULL),(2,NULL),(3,1),(4,2),(5,NULL),(6,NULL),(7,3),(8,4),(9,NULL),(10,NULL);
-explain select id from t1 where uniq_id is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1 idx1 5 const 5 Using index condition
-explain select id from t1 where uniq_id =1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const idx1 idx1 5 const 1
-UPDATE t1 SET id=id+100 where uniq_id is null;
-UPDATE t2 SET id=id+100 where uniq_id is null;
-select id from t1 where uniq_id is null;
-id
-101
-102
-105
-106
-109
-110
-select id from t2 where uniq_id is null;
-id
-101
-102
-105
-106
-109
-110
-DELETE FROM t1 WHERE uniq_id IS NULL;
-DELETE FROM t2 WHERE uniq_id IS NULL;
-SELECT * FROM t1 ORDER BY uniq_id, id;
-id uniq_id
-3 1
-4 2
-7 3
-8 4
-SELECT * FROM t2 ORDER BY uniq_id, id;
-id uniq_id
-3 1
-4 2
-7 3
-8 4
-DROP table t1,t2;
-CREATE TABLE `t1` (
-`order_id` char(32) NOT NULL default '',
-`product_id` char(32) NOT NULL default '',
-`product_type` int(11) NOT NULL default '0',
-PRIMARY KEY (`order_id`,`product_id`,`product_type`)
-) ENGINE=MyISAM;
-CREATE TABLE `t2` (
-`order_id` char(32) NOT NULL default '',
-`product_id` char(32) NOT NULL default '',
-`product_type` int(11) NOT NULL default '0',
-PRIMARY KEY (`order_id`,`product_id`,`product_type`)
-) ENGINE=MyISAM;
-INSERT INTO t1 (order_id, product_id, product_type) VALUES
-('3d7ce39b5d4b3e3d22aaafe9b633de51',1206029, 3),
-('3d7ce39b5d4b3e3d22aaafe9b633de51',5880836, 3),
-('9d9aad7764b5b2c53004348ef8d34500',2315652, 3);
-INSERT INTO t2 (order_id, product_id, product_type) VALUES
-('9d9aad7764b5b2c53004348ef8d34500',2315652, 3);
-select t1.* from t1
-left join t2 using(order_id, product_id, product_type)
-where t2.order_id=NULL;
-order_id product_id product_type
-select t1.* from t1
-left join t2 using(order_id, product_id, product_type)
-where t2.order_id is NULL;
-order_id product_id product_type
-3d7ce39b5d4b3e3d22aaafe9b633de51 1206029 3
-3d7ce39b5d4b3e3d22aaafe9b633de51 5880836 3
-drop table t1,t2;
-create table t1 (id int);
-insert into t1 values (null), (0);
-create table t2 (id int);
-insert into t2 values (null);
-select * from t1, t2 where t1.id = t2.id;
-id id
-alter table t1 add key id (id);
-select * from t1, t2 where t1.id = t2.id;
-id id
-drop table t1,t2;
-create table t1 (
-id integer,
-id2 integer not null,
-index (id),
-index (id2)
-);
-insert ignore into t1 values(null,null),(1,1);
-Warnings:
-Warning 1048 Column 'id2' cannot be null
-select * from t1;
-id id2
-NULL 0
-1 1
-select * from t1 where id <=> null;
-id id2
-NULL 0
-select * from t1 where id <=> null or id > 0;
-id id2
-NULL 0
-1 1
-select * from t1 where id is null or id > 0;
-id id2
-NULL 0
-1 1
-select * from t1 where id2 <=> null or id2 > 0;
-id id2
-1 1
-select * from t1 where id2 is null or id2 > 0;
-id id2
-1 1
-delete from t1 where id <=> NULL;
-select * from t1;
-id id2
-1 1
-drop table t1;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int, b int, INDEX idx(a));
-CREATE TABLE t3 (b int, INDEX idx(b));
-CREATE TABLE t4 (b int, INDEX idx(b));
-INSERT INTO t1 VALUES (1), (2), (3), (4);
-INSERT INTO t2 VALUES (1, 1), (3, 1);
-INSERT INTO t3 VALUES
-(NULL), (NULL), (NULL), (NULL), (NULL),
-(NULL), (NULL), (NULL), (NULL), (NULL);
-INSERT INTO t4 SELECT * FROM t3;
-INSERT INTO t3 SELECT * FROM t4;
-INSERT INTO t4 SELECT * FROM t3;
-INSERT INTO t3 SELECT * FROM t4;
-INSERT INTO t4 SELECT * FROM t3;
-INSERT INTO t3 SELECT * FROM t4;
-INSERT INTO t4 SELECT * FROM t3;
-INSERT INTO t3 SELECT * FROM t4;
-INSERT INTO t4 SELECT * FROM t3;
-INSERT INTO t3 SELECT * FROM t4;
-INSERT INTO t4 SELECT * FROM t3;
-INSERT INTO t3 SELECT * FROM t4;
-INSERT INTO t4 SELECT * FROM t3;
-INSERT INTO t3 SELECT * FROM t4;
-INSERT INTO t4 SELECT * FROM t3;
-INSERT INTO t3 SELECT * FROM t4;
-INSERT INTO t3 VALUES (2), (3);
-ANALYZE table t1, t2, t3;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-test.t2 analyze status OK
-test.t3 analyze status OK
-SELECT COUNT(*) FROM t3;
-COUNT(*)
-15972
-EXPLAIN SELECT SQL_CALC_FOUND_ROWS * FROM t1 LEFT JOIN t2 ON t1.a=t2.a
-LEFT JOIN t3 ON t2.b=t3.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 ref idx idx 5 test.t1.a 1 Using where
-1 SIMPLE t3 ref idx idx 5 test.t2.b 1 Using where; Using index
-FLUSH STATUS ;
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 LEFT JOIN t2 ON t1.a=t2.a
-LEFT JOIN t3 ON t2.b=t3.b;
-a a b b
-1 1 1 NULL
-2 NULL NULL NULL
-3 3 1 NULL
-4 NULL NULL NULL
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-4
-SHOW STATUS LIKE "handler_read%";
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 6
-Handler_read_last 0
-Handler_read_next 2
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 5
-DROP TABLE t1,t2,t3,t4;
-CREATE TABLE t1 (
-a int(11) default NULL,
-b int(11) default NULL,
-KEY a (a,b)
-);
-INSERT INTO t1 VALUES (0,10),(0,11),(0,12);
-CREATE TABLE t2 (
-a int(11) default NULL,
-b int(11) default NULL,
-KEY a (a)
-);
-INSERT INTO t2 VALUES (3,NULL),(3,11),(3,12);
-SELECT * FROM t2 inner join t1 WHERE ( t1.a = 0 OR t1.a IS NULL) AND t2.a = 3 AND t2.b = t1.b;
-a b a b
-3 11 0 11
-3 12 0 12
-drop table t1, t2;
-End of 5.0 tests
-#
-# BUG#727667 Wrong result with OR + NOT NULL in maria-5.3
-#
-CREATE TABLE t1 (
-f3 int(11),
-f10 varchar(1),
-KEY (f3)
-);
-INSERT INTO t1 VALUES ('9','k'),(NULL,'r');
-SELECT * FROM t1 WHERE (f3 = 83) OR (f10 = 'z' AND f3 IS NULL);
-f3 f10
-DROP TABLE t1;
diff --git a/mysql-test/r/odbc.result b/mysql-test/r/odbc.result
deleted file mode 100644
index 3dbac12ca7c..00000000000
--- a/mysql-test/r/odbc.result
+++ /dev/null
@@ -1,29 +0,0 @@
-drop table if exists t1;
-set @@session.sql_auto_is_null=1;
-select {fn length("hello")}, { date "1997-10-20" };
-{fn length("hello")} 1997-10-20
-5 1997-10-20
-create table t1 (a int not null auto_increment,b int not null,primary key (a,b));
-insert into t1 SET A=NULL,B=1;
-insert into t1 SET a=null,b=2;
-select * from t1 where a is null and b=2;
-a b
-select * from t1 where a is null;
-a b
-2 2
-explain select * from t1 where b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-drop table t1;
-CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY);
-INSERT INTO t1 VALUES (NULL);
-SELECT sql_no_cache a, last_insert_id() FROM t1 WHERE a IS NULL;
-a last_insert_id()
-1 1
-SELECT sql_no_cache a, last_insert_id() FROM t1 WHERE a IS NULL;
-a last_insert_id()
-SELECT sql_no_cache a, last_insert_id() FROM t1;
-a last_insert_id()
-1 1
-DROP TABLE t1;
-set @@session.sql_auto_is_null=default;
diff --git a/mysql-test/r/olap.result b/mysql-test/r/olap.result
deleted file mode 100644
index bcc96d4951d..00000000000
--- a/mysql-test/r/olap.result
+++ /dev/null
@@ -1,818 +0,0 @@
-drop table if exists t1,t2;
-set @sav_dpi= @@div_precision_increment;
-set div_precision_increment= 5;
-show variables like 'div_precision_increment';
-Variable_name Value
-div_precision_increment 5
-create table t1 (product varchar(32), country_id int not null, year int, profit int);
-insert into t1 values ( 'Computer', 2,2000, 1200),
-( 'TV', 1, 1999, 150),
-( 'Calculator', 1, 1999,50),
-( 'Computer', 1, 1999,1500),
-( 'Computer', 1, 2000,1500),
-( 'TV', 1, 2000, 150),
-( 'TV', 2, 2000, 100),
-( 'TV', 2, 2000, 100),
-( 'Calculator', 1, 2000,75),
-( 'Calculator', 2, 2000,75),
-( 'TV', 1, 1999, 100),
-( 'Computer', 1, 1999,1200),
-( 'Computer', 2, 2000,1500),
-( 'Calculator', 2, 2000,75),
-( 'Phone', 3, 2003,10)
-;
-create table t2 (country_id int primary key, country char(20) not null);
-insert into t2 values (1, 'USA'),(2,'India'), (3,'Finland');
-select product, sum(profit) from t1 group by product;
-product sum(profit)
-Calculator 275
-Computer 6900
-Phone 10
-TV 600
-select product, sum(profit) from t1 group by product with rollup;
-product sum(profit)
-Calculator 275
-Computer 6900
-Phone 10
-TV 600
-NULL 7785
-select product, sum(profit) from t1 group by 1 with rollup;
-product sum(profit)
-Calculator 275
-Computer 6900
-Phone 10
-TV 600
-NULL 7785
-select product, sum(profit),avg(profit) from t1 group by product with rollup;
-product sum(profit) avg(profit)
-Calculator 275 68.75000
-Computer 6900 1380.00000
-Phone 10 10.00000
-TV 600 120.00000
-NULL 7785 519.00000
-select product, country_id , year, sum(profit) from t1 group by product, country_id, year;
-product country_id year sum(profit)
-Calculator 1 1999 50
-Calculator 1 2000 75
-Calculator 2 2000 150
-Computer 1 1999 2700
-Computer 1 2000 1500
-Computer 2 2000 2700
-Phone 3 2003 10
-TV 1 1999 250
-TV 1 2000 150
-TV 2 2000 200
-select product, country_id , year, sum(profit) from t1 group by product, country_id, year with rollup;
-product country_id year sum(profit)
-Calculator 1 1999 50
-Calculator 1 2000 75
-Calculator 1 NULL 125
-Calculator 2 2000 150
-Calculator 2 NULL 150
-Calculator NULL NULL 275
-Computer 1 1999 2700
-Computer 1 2000 1500
-Computer 1 NULL 4200
-Computer 2 2000 2700
-Computer 2 NULL 2700
-Computer NULL NULL 6900
-Phone 3 2003 10
-Phone 3 NULL 10
-Phone NULL NULL 10
-TV 1 1999 250
-TV 1 2000 150
-TV 1 NULL 400
-TV 2 2000 200
-TV 2 NULL 200
-TV NULL NULL 600
-NULL NULL NULL 7785
-explain extended select product, country_id , year, sum(profit) from t1 group by product, country_id, year with rollup;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 15 100.00 Using filesort
-Warnings:
-Note 1003 select `test`.`t1`.`product` AS `product`,`test`.`t1`.`country_id` AS `country_id`,`test`.`t1`.`year` AS `year`,sum(`test`.`t1`.`profit`) AS `sum(profit)` from `test`.`t1` group by `test`.`t1`.`product`,`test`.`t1`.`country_id`,`test`.`t1`.`year` with rollup
-select product, country_id , sum(profit) from t1 group by product desc, country_id with rollup;
-product country_id sum(profit)
-TV 1 400
-TV 2 200
-TV NULL 600
-Phone 3 10
-Phone NULL 10
-Computer 1 4200
-Computer 2 2700
-Computer NULL 6900
-Calculator 1 125
-Calculator 2 150
-Calculator NULL 275
-NULL NULL 7785
-select product, country_id , year, sum(profit) from t1 group by product, country_id, year with rollup limit 5;
-product country_id year sum(profit)
-Calculator 1 1999 50
-Calculator 1 2000 75
-Calculator 1 NULL 125
-Calculator 2 2000 150
-Calculator 2 NULL 150
-select product, country_id , year, sum(profit) from t1 group by product, country_id, year with rollup limit 3,3;
-product country_id year sum(profit)
-Calculator 2 2000 150
-Calculator 2 NULL 150
-Calculator NULL NULL 275
-select product, country_id, count(*), count(distinct year) from t1 group by product, country_id;
-product country_id count(*) count(distinct year)
-Calculator 1 2 2
-Calculator 2 2 1
-Computer 1 3 2
-Computer 2 2 1
-Phone 3 1 1
-TV 1 3 2
-TV 2 2 1
-select product, country_id, count(*), count(distinct year) from t1 group by product, country_id with rollup;
-product country_id count(*) count(distinct year)
-Calculator 1 2 2
-Calculator 2 2 1
-Calculator NULL 4 2
-Computer 1 3 2
-Computer 2 2 1
-Computer NULL 5 2
-Phone 3 1 1
-Phone NULL 1 1
-TV 1 3 2
-TV 2 2 1
-TV NULL 5 2
-NULL NULL 15 3
-select product, country_id , year, sum(profit) from t1 group by product, country_id, year with rollup having country_id = 1;
-product country_id year sum(profit)
-Calculator 1 1999 50
-Calculator 1 2000 75
-Calculator 1 NULL 125
-Computer 1 1999 2700
-Computer 1 2000 1500
-Computer 1 NULL 4200
-TV 1 1999 250
-TV 1 2000 150
-TV 1 NULL 400
-select product, country_id , year, sum(profit) from t1 group by product, country_id, year with rollup having sum(profit) > 200;
-product country_id year sum(profit)
-Calculator NULL NULL 275
-Computer 1 1999 2700
-Computer 1 2000 1500
-Computer 1 NULL 4200
-Computer 2 2000 2700
-Computer 2 NULL 2700
-Computer NULL NULL 6900
-TV 1 1999 250
-TV 1 NULL 400
-TV NULL NULL 600
-NULL NULL NULL 7785
-select product, country_id , year, sum(profit) from t1 group by product, country_id, year with rollup having sum(profit) > 7000;
-product country_id year sum(profit)
-NULL NULL NULL 7785
-select concat(product,':',country_id) as 'prod', concat(":",year,":") as 'year',1+1, sum(profit)/count(*) from t1 group by 1,2 with rollup;
-prod year 1+1 sum(profit)/count(*)
-Calculator:1 :1999: 2 50.00000
-Calculator:1 :2000: 2 75.00000
-Calculator:1 NULL 2 62.50000
-Calculator:2 :2000: 2 75.00000
-Calculator:2 NULL 2 75.00000
-Computer:1 :1999: 2 1350.00000
-Computer:1 :2000: 2 1500.00000
-Computer:1 NULL 2 1400.00000
-Computer:2 :2000: 2 1350.00000
-Computer:2 NULL 2 1350.00000
-Phone:3 :2003: 2 10.00000
-Phone:3 NULL 2 10.00000
-TV:1 :1999: 2 125.00000
-TV:1 :2000: 2 150.00000
-TV:1 NULL 2 133.33333
-TV:2 :2000: 2 100.00000
-TV:2 NULL 2 100.00000
-NULL NULL 2 519.00000
-select product, sum(profit)/count(*) from t1 group by product with rollup;
-product sum(profit)/count(*)
-Calculator 68.75000
-Computer 1380.00000
-Phone 10.00000
-TV 120.00000
-NULL 519.00000
-select left(product,4) as prod, sum(profit)/count(*) from t1 group by prod with rollup;
-prod sum(profit)/count(*)
-Calc 68.75000
-Comp 1380.00000
-Phon 10.00000
-TV 120.00000
-NULL 519.00000
-select concat(product,':',country_id), 1+1, sum(profit)/count(*) from t1 group by concat(product,':',country_id) with rollup;
-concat(product,':',country_id) 1+1 sum(profit)/count(*)
-Calculator:1 2 62.50000
-Calculator:2 2 75.00000
-Computer:1 2 1400.00000
-Computer:2 2 1350.00000
-Phone:3 2 10.00000
-TV:1 2 133.33333
-TV:2 2 100.00000
-NULL 2 519.00000
-select product, country , year, sum(profit) from t1,t2 where t1.country_id=t2.country_id group by product, country, year with rollup;
-product country year sum(profit)
-Calculator India 2000 150
-Calculator India NULL 150
-Calculator USA 1999 50
-Calculator USA 2000 75
-Calculator USA NULL 125
-Calculator NULL NULL 275
-Computer India 2000 2700
-Computer India NULL 2700
-Computer USA 1999 2700
-Computer USA 2000 1500
-Computer USA NULL 4200
-Computer NULL NULL 6900
-Phone Finland 2003 10
-Phone Finland NULL 10
-Phone NULL NULL 10
-TV India 2000 200
-TV India NULL 200
-TV USA 1999 250
-TV USA 2000 150
-TV USA NULL 400
-TV NULL NULL 600
-NULL NULL NULL 7785
-select product, `sum` from (select product, sum(profit) as 'sum' from t1 group by product with rollup) as tmp where product is null;
-product sum
-NULL 7785
-select product from t1 where exists (select product, country_id , sum(profit) from t1 as t2 where t1.product=t2.product group by product, country_id with rollup having sum(profit) > 6000);
-product
-Computer
-Computer
-Computer
-Computer
-Computer
-select product, country_id , year, sum(profit) from t1 group by product, country_id, year having country_id is NULL;
-product country_id year sum(profit)
-select concat(':',product,':'), sum(profit),avg(profit) from t1 group by product with rollup;
-concat(':',product,':') sum(profit) avg(profit)
-:Calculator: 275 68.75000
-:Computer: 6900 1380.00000
-:Phone: 10 10.00000
-:TV: 600 120.00000
-NULL 7785 519.00000
-select product, country_id , year, sum(profit) from t1 group by product, country_id, year with cube;
-ERROR 42000: This version of MariaDB doesn't yet support 'CUBE'
-explain select product, country_id , year, sum(profit) from t1 group by product, country_id, year with cube;
-ERROR 42000: This version of MariaDB doesn't yet support 'CUBE'
-select product, country_id , year, sum(profit) from t1 group by product, country_id, year with cube union all select product, country_id , year, sum(profit) from t1 group by product, country_id, year with rollup;
-ERROR 42000: This version of MariaDB doesn't yet support 'CUBE'
-drop table t1,t2;
-CREATE TABLE t1 (i int);
-INSERT INTO t1 VALUES(100);
-CREATE TABLE t2 (i int);
-INSERT INTO t2 VALUES (100),(200);
-SELECT i, COUNT(*) FROM t1 GROUP BY i WITH ROLLUP;
-i COUNT(*)
-100 1
-NULL 1
-SELECT t1.i, t2.i, COUNT(*) FROM t1,t2 GROUP BY t1.i,t2.i WITH ROLLUP;
-i i COUNT(*)
-100 100 1
-100 200 1
-100 NULL 2
-NULL NULL 2
-drop table t1,t2;
-CREATE TABLE user_day(
-user_id INT NOT NULL,
-date DATE NOT NULL,
-UNIQUE INDEX user_date (user_id, date)
-);
-INSERT INTO user_day VALUES
-(1, '2004-06-06' ),
-(1, '2004-06-07' ),
-(2, '2004-06-06' );
-SELECT
-d.date AS day,
-COUNT(d.user_id) as sample,
-COUNT(next_day.user_id) AS not_cancelled
-FROM user_day d
-LEFT JOIN user_day next_day
-ON next_day.user_id=d.user_id AND
-next_day.date= DATE_ADD( d.date, interval 1 day )
-GROUP BY day;
-day sample not_cancelled
-2004-06-06 2 1
-2004-06-07 1 0
-SELECT
-d.date AS day,
-COUNT(d.user_id) as sample,
-COUNT(next_day.user_id) AS not_cancelled
-FROM user_day d
-LEFT JOIN user_day next_day
-ON next_day.user_id=d.user_id AND
-next_day.date= DATE_ADD( d.date, interval 1 day )
-GROUP BY day
-WITH ROLLUP;
-day sample not_cancelled
-2004-06-06 2 1
-2004-06-07 1 0
-NULL 3 1
-DROP TABLE user_day;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES
-(1,4),
-(2,2), (2,2),
-(4,1), (4,1), (4,1), (4,1),
-(2,1), (2,1);
-SELECT SUM(b) FROM t1 GROUP BY a WITH ROLLUP;
-SUM(b)
-4
-6
-4
-14
-SELECT DISTINCT SUM(b) FROM t1 GROUP BY a WITH ROLLUP;
-SUM(b)
-4
-6
-14
-SELECT SUM(b), COUNT(DISTINCT b) FROM t1 GROUP BY a WITH ROLLUP;
-SUM(b) COUNT(DISTINCT b)
-4 1
-6 2
-4 1
-14 3
-SELECT DISTINCT SUM(b), COUNT(DISTINCT b) FROM t1 GROUP BY a WITH ROLLUP;
-SUM(b) COUNT(DISTINCT b)
-4 1
-6 2
-14 3
-SELECT SUM(b), COUNT(*) FROM t1 GROUP BY a WITH ROLLUP;
-SUM(b) COUNT(*)
-4 1
-6 4
-4 4
-14 9
-SELECT DISTINCT SUM(b), COUNT(*) FROM t1 GROUP BY a WITH ROLLUP;
-SUM(b) COUNT(*)
-4 1
-6 4
-4 4
-14 9
-SELECT SUM(b), COUNT(DISTINCT b), COUNT(*) FROM t1 GROUP BY a WITH ROLLUP;
-SUM(b) COUNT(DISTINCT b) COUNT(*)
-4 1 1
-6 2 4
-4 1 4
-14 3 9
-SELECT DISTINCT SUM(b), COUNT(DISTINCT b), COUNT(*) FROM t1
-GROUP BY a WITH ROLLUP;
-SUM(b) COUNT(DISTINCT b) COUNT(*)
-4 1 1
-6 2 4
-4 1 4
-14 3 9
-SELECT a, sum(b) FROM t1 GROUP BY a,b WITH ROLLUP;
-a sum(b)
-1 4
-1 4
-2 2
-2 4
-2 6
-4 4
-4 4
-NULL 14
-SELECT DISTINCT a, sum(b) FROM t1 GROUP BY a,b WITH ROLLUP;
-a sum(b)
-1 4
-2 2
-2 4
-2 6
-4 4
-NULL 14
-SELECT b, a, sum(b) FROM t1 GROUP BY a,b WITH ROLLUP;
-b a sum(b)
-4 1 4
-NULL 1 4
-1 2 2
-2 2 4
-NULL 2 6
-1 4 4
-NULL 4 4
-NULL NULL 14
-SELECT DISTINCT b,a, sum(b) FROM t1 GROUP BY a,b WITH ROLLUP;
-b a sum(b)
-4 1 4
-NULL 1 4
-1 2 2
-2 2 4
-NULL 2 6
-1 4 4
-NULL 4 4
-NULL NULL 14
-ALTER TABLE t1 ADD COLUMN c INT;
-SELECT a,b,sum(c) FROM t1 GROUP BY a,b,c WITH ROLLUP;
-a b sum(c)
-1 4 NULL
-1 4 NULL
-1 NULL NULL
-2 1 NULL
-2 1 NULL
-2 2 NULL
-2 2 NULL
-2 NULL NULL
-4 1 NULL
-4 1 NULL
-4 NULL NULL
-NULL NULL NULL
-SELECT distinct a,b,sum(c) FROM t1 GROUP BY a,b,c WITH ROLLUP;
-a b sum(c)
-1 4 NULL
-1 NULL NULL
-2 1 NULL
-2 2 NULL
-2 NULL NULL
-4 1 NULL
-4 NULL NULL
-NULL NULL NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES
-(1,4),
-(2,2), (2,2),
-(4,1), (4,1), (4,1), (4,1),
-(2,1), (2,1);
-SELECT a, SUM(b) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1;
-a SUM(b)
-1 4
-SELECT SQL_CALC_FOUND_ROWS a, SUM(b) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1;
-a SUM(b)
-1 4
-DROP TABLE t1;
-CREATE TABLE t1 (a int(11) NOT NULL);
-INSERT INTO t1 VALUES (1),(2);
-SELECT a, SUM(a) m FROM t1 GROUP BY a WITH ROLLUP;
-a m
-1 1
-2 2
-NULL 3
-SELECT * FROM ( SELECT a, SUM(a) m FROM t1 GROUP BY a WITH ROLLUP ) t2;
-a m
-1 1
-2 2
-NULL 3
-DROP TABLE t1;
-set div_precision_increment= @sav_dpi;
-CREATE TABLE t1 (a int(11));
-INSERT INTO t1 VALUES (1),(2);
-SELECT a, SUM(a), SUM(a)+1 FROM (SELECT a FROM t1 UNION select 2) d
-GROUP BY a;
-a SUM(a) SUM(a)+1
-1 1 2
-2 2 3
-SELECT a, SUM(a), SUM(a)+1 FROM (SELECT a FROM t1 UNION select 2) d
-GROUP BY a WITH ROLLUP;
-a SUM(a) SUM(a)+1
-1 1 2
-2 2 3
-NULL 3 4
-SELECT a, SUM(a), SUM(a)+1 FROM (SELECT 1 a UNION select 2) d
-GROUP BY a;
-a SUM(a) SUM(a)+1
-1 1 2
-2 2 3
-SELECT a, SUM(a), SUM(a)+1 FROM (SELECT 1 a UNION select 2) d
-GROUP BY a WITH ROLLUP;
-a SUM(a) SUM(a)+1
-1 1 2
-2 2 3
-NULL 3 4
-SELECT a, SUM(a), SUM(a)+1, CONCAT(SUM(a),'x'), SUM(a)+SUM(a), SUM(a)
-FROM (SELECT 1 a, 2 b UNION SELECT 2,3 UNION SELECT 5,6 ) d
-GROUP BY a WITH ROLLUP;
-a SUM(a) SUM(a)+1 CONCAT(SUM(a),'x') SUM(a)+SUM(a) SUM(a)
-1 1 2 1x 2 1
-2 2 3 2x 4 2
-5 5 6 5x 10 5
-NULL 8 9 8x 16 8
-DROP TABLE t1;
-CREATE TABLE t1 (a int(11));
-INSERT INTO t1 VALUES (1),(2);
-SELECT a, a+1, SUM(a) FROM t1 GROUP BY a WITH ROLLUP;
-a a+1 SUM(a)
-1 2 1
-2 3 2
-NULL NULL 3
-SELECT a+1 FROM t1 GROUP BY a WITH ROLLUP;
-a+1
-2
-3
-NULL
-SELECT a+SUM(a) FROM t1 GROUP BY a WITH ROLLUP;
-a+SUM(a)
-2
-4
-NULL
-SELECT a, a+1 as b FROM t1 GROUP BY a WITH ROLLUP HAVING b > 2;
-a b
-2 3
-SELECT a, a+1 as b FROM t1 GROUP BY a WITH ROLLUP HAVING a IS NULL;
-a b
-NULL NULL
-SELECT a, a+1 as b FROM t1 GROUP BY a WITH ROLLUP HAVING b IS NULL;
-a b
-NULL NULL
-SELECT IFNULL(a, 'TEST') FROM t1 GROUP BY a WITH ROLLUP;
-IFNULL(a, 'TEST')
-1
-2
-TEST
-CREATE TABLE t2 (a int, b int);
-INSERT INTO t2 VALUES
-(1,4),
-(2,2), (2,2),
-(4,1), (4,1), (4,1), (4,1),
-(2,1), (2,1);
-SELECT a,b,SUM(b) FROM t2 GROUP BY a,b WITH ROLLUP;
-a b SUM(b)
-1 4 4
-1 NULL 4
-2 1 2
-2 2 4
-2 NULL 6
-4 1 4
-4 NULL 4
-NULL NULL 14
-SELECT a,b,SUM(b), a+b as c FROM t2
-GROUP BY a,b WITH ROLLUP HAVING c IS NULL;
-a b SUM(b) c
-1 NULL 4 NULL
-2 NULL 6 NULL
-4 NULL 4 NULL
-NULL NULL 14 NULL
-SELECT IFNULL(a, 'TEST'), COALESCE(b, 'TEST') FROM t2
-GROUP BY a, b WITH ROLLUP;
-IFNULL(a, 'TEST') COALESCE(b, 'TEST')
-1 4
-1 TEST
-2 1
-2 2
-2 TEST
-4 1
-4 TEST
-TEST TEST
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT(10) NOT NULL, b INT(10) NOT NULL);
-INSERT INTO t1 VALUES (1, 1);
-INSERT INTO t1 VALUES (1, 2);
-SELECT a, b, a AS c, COUNT(*) AS count FROM t1 GROUP BY a, b, c WITH ROLLUP;
-a b c count
-1 1 1 1
-1 1 NULL 1
-1 2 1 1
-1 2 NULL 1
-1 NULL NULL 2
-NULL NULL NULL 2
-DROP TABLE t1;
-CREATE TABLE t1 (a int(11) NOT NULL);
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM (SELECT a, a + 1, COUNT(*) FROM t1 GROUP BY a WITH ROLLUP) t;
-a a + 1 COUNT(*)
-1 2 1
-2 3 1
-NULL NULL 2
-SELECT * FROM (SELECT a, LENGTH(a), COUNT(*) FROM t1 GROUP BY a WITH ROLLUP) t;
-a LENGTH(a) COUNT(*)
-1 1 1
-2 1 1
-NULL NULL 2
-DROP TABLE t1;
-create table t1 ( a varchar(9), b int );
-insert into t1 values('a',1),(null,2);
-select a, max(b) from t1 group by a with rollup;
-a max(b)
-NULL 2
-a 1
-NULL 2
-select distinct a, max(b) from t1 group by a with rollup;
-a max(b)
-NULL 2
-a 1
-drop table t1;
-create table t1 (a varchar(22) not null , b int);
-insert into t1 values ("2006-07-01 21:30", 1), ("2006-07-01 23:30", 10);
-select left(a,10), a, sum(b) from t1 group by 1,2 with rollup;
-left(a,10) a sum(b)
-2006-07-01 2006-07-01 21:30 1
-2006-07-01 2006-07-01 23:30 10
-2006-07-01 NULL 11
-NULL NULL 11
-select left(a,10) x, a, sum(b) from t1 group by x,a with rollup;
-x a sum(b)
-2006-07-01 2006-07-01 21:30 1
-2006-07-01 2006-07-01 23:30 10
-2006-07-01 NULL 11
-NULL NULL 11
-drop table t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1
-VALUES (2,10),(3,30),(2,40),(1,10),(2,30),(1,20),(2,10);
-SELECT a, SUM(b) FROM t1 GROUP BY a WITH ROLLUP;
-a SUM(b)
-1 30
-2 90
-3 30
-NULL 150
-SELECT DISTINCT a, SUM(b) FROM t1 GROUP BY a WITH ROLLUP;
-a SUM(b)
-1 30
-2 90
-3 30
-NULL 150
-SELECT a, b, COUNT(*) FROM t1 GROUP BY a,b WITH ROLLUP;
-a b COUNT(*)
-1 10 1
-1 20 1
-1 NULL 2
-2 10 2
-2 30 1
-2 40 1
-2 NULL 4
-3 30 1
-3 NULL 1
-NULL NULL 7
-SELECT DISTINCT a, b, COUNT(*) FROM t1 GROUP BY a,b WITH ROLLUP;
-a b COUNT(*)
-1 10 1
-1 20 1
-1 NULL 2
-2 10 2
-2 30 1
-2 40 1
-2 NULL 4
-3 30 1
-3 NULL 1
-NULL NULL 7
-SELECT 'x', a, SUM(b) FROM t1 GROUP BY 1,2 WITH ROLLUP;
-x a SUM(b)
-x 1 30
-x 2 90
-x 3 30
-x NULL 150
-NULL NULL 150
-SELECT DISTINCT 'x', a, SUM(b) FROM t1 GROUP BY 1,2 WITH ROLLUP;
-x a SUM(b)
-x 1 30
-x 2 90
-x 3 30
-x NULL 150
-NULL NULL 150
-SELECT DISTINCT 'x', a, SUM(b) FROM t1 GROUP BY 1,2 WITH ROLLUP;
-x a SUM(b)
-x 1 30
-x 2 90
-x 3 30
-x NULL 150
-NULL NULL 150
-DROP TABLE t1;
-CREATE TABLE t1(id int, type char(1));
-INSERT INTO t1 VALUES
-(1,"A"),(2,"C"),(3,"A"),(4,"A"),(5,"B"),
-(6,"B"),(7,"A"),(8,"C"),(9,"A"),(10,"C");
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT type FROM t1 GROUP BY type WITH ROLLUP;
-type
-A
-B
-C
-NULL
-SELECT type FROM v1 GROUP BY type WITH ROLLUP;
-type
-A
-B
-C
-NULL
-EXPLAIN SELECT type FROM v1 GROUP BY type WITH ROLLUP;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 Using filesort
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (a int(11) NOT NULL);
-INSERT INTO t1 VALUES (1),(2);
-CREATE VIEW v1 AS
-SELECT a, LENGTH(a), COUNT(*) FROM t1 GROUP BY a WITH ROLLUP;
-DESC v1;
-Field Type Null Key Default Extra
-a int(11) YES 0
-LENGTH(a) int(10) YES NULL
-COUNT(*) bigint(21) NO 0
-SELECT * FROM v1;
-a LENGTH(a) COUNT(*)
-1 1 1
-2 1 1
-NULL NULL 2
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (a int, KEY (a));
-INSERT INTO t1 VALUES (3), (1), (4), (1), (3), (1), (1);
-SELECT * FROM (SELECT a, SUM(a) FROM t1 GROUP BY a WITH ROLLUP) as t;
-a SUM(a)
-1 4
-3 6
-4 4
-NULL 14
-DROP TABLE t1;
-#
-# Bug#31095: Unexpected NULL constant caused server crash.
-#
-create table t1(a int);
-insert into t1 values (1),(2),(3);
-select count(a) from t1 group by null with rollup;
-count(a)
-3
-3
-drop table t1;
-##############################################################
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES(0);
-SELECT 1 FROM t1 GROUP BY (DATE(NULL)) WITH ROLLUP;
-1
-1
-1
-DROP TABLE t1;
-#
-# Bug #48131: crash group by with rollup, distinct,
-# filesort, with temporary tables
-#
-CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY);
-INSERT INTO t1 VALUES (1), (2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (100);
-SELECT a, b FROM t1, t2 GROUP BY a, b WITH ROLLUP;
-a b
-1 100
-1 NULL
-2 100
-2 NULL
-NULL NULL
-SELECT DISTINCT b FROM t1, t2 GROUP BY a, b WITH ROLLUP;
-b
-100
-NULL
-DROP TABLE t1, t2;
-#
-# Bug #48475: DISTINCT is ignored with GROUP BY WITH ROLLUP
-# and only const tables
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (b INT);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (1);
-SELECT DISTINCT b FROM t1, t2 GROUP BY a, b WITH ROLLUP;
-b
-1
-NULL
-DROP TABLE t1, t2;
-End of 5.0 tests
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12886 Different default for INT and BIGINT column in a VIEW for a SELECT with ROLLUP
-#
-CREATE TABLE t1 (a int(11) NOT NULL);
-INSERT INTO t1 VALUES (1),(2);
-CREATE OR REPLACE VIEW v1 AS SELECT a, LENGTH(a), COUNT(*) FROM t1 GROUP BY a WITH ROLLUP;
-DESCRIBE v1;
-Field Type Null Key Default Extra
-a int(11) YES 0
-LENGTH(a) int(10) YES NULL
-COUNT(*) bigint(21) NO 0
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (a bigint(11) NOT NULL);
-INSERT INTO t1 VALUES (1),(2);
-CREATE OR REPLACE VIEW v1 AS SELECT a, LENGTH(a), COUNT(*) FROM t1 GROUP BY a WITH ROLLUP;
-DESCRIBE v1;
-Field Type Null Key Default Extra
-a bigint(20) YES 0
-LENGTH(a) int(10) YES NULL
-COUNT(*) bigint(21) NO 0
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-9410 VIEW over a ROLLUP query reports too large columns
-#
-CREATE TABLE t1 (a int(10) NOT NULL, b int(20) NOT NULL);
-INSERT INTO t1 VALUES (1,1),(2,2);
-CREATE VIEW v1 AS SELECT a,b FROM t1;
-DESC v1;
-Field Type Null Key Default Extra
-a int(10) NO NULL
-b int(20) NO NULL
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT a, b FROM t1 GROUP BY a,b;
-DESC v1;
-Field Type Null Key Default Extra
-a int(10) NO NULL
-b int(20) NO NULL
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT a, b FROM t1 GROUP BY a,b WITH ROLLUP;
-DESC v1;
-Field Type Null Key Default Extra
-a int(11) YES 0
-b int(20) YES 0
-DROP VIEW v1;
-DROP TABLE t1;
diff --git a/mysql-test/r/old-mode.result b/mysql-test/r/old-mode.result
deleted file mode 100644
index 73ad613048a..00000000000
--- a/mysql-test/r/old-mode.result
+++ /dev/null
@@ -1,182 +0,0 @@
-drop table if exists t1,t2;
-create table t1 (a int, b varchar(200), c text not null) checksum=1;
-create table t2 (a int, b varchar(200), c text not null) checksum=0;
-insert t1 values (1, "aaa", "bbb"), (NULL, "", "ccccc"), (0, NULL, "");
-insert t2 select * from t1;
-checksum table t1, t2;
-Table Checksum
-test.t1 2948697075
-test.t2 2948697075
-checksum table t1, t2 quick;
-Table Checksum
-test.t1 NULL
-test.t2 NULL
-checksum table t1, t2 extended;
-Table Checksum
-test.t1 2948697075
-test.t2 2948697075
-drop table t1,t2;
-SHOW PROCESSLIST;
-Id User Host db Command Time State Info
-<Id> root <Host> test Query <Time> <State> SHOW PROCESSLIST
-#
-# MDEV-5372 Make "CAST(time_expr AS DATETIME)" compatible with the SQL Standard)
-#
-set @@old_mode=zero_date_time_cast;
-SELECT CAST(TIME'-10:30:30' AS DATETIME);
-CAST(TIME'-10:30:30' AS DATETIME)
-NULL
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '-10:30:30'
-SELECT CAST(TIME'10:20:30' AS DATETIME);
-CAST(TIME'10:20:30' AS DATETIME)
-0000-00-00 10:20:30
-SELECT CAST(TIME'830:20:30' AS DATETIME);
-CAST(TIME'830:20:30' AS DATETIME)
-0000-01-03 14:20:30
-CREATE TABLE t1 (a DATETIME);
-INSERT IGNORE INTO t1 VALUES (TIME'-10:20:30');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-INSERT INTO t1 VALUES (TIME'10:20:30');
-INSERT INTO t1 VALUES (TIME'830:20:30');
-SELECT * FROM t1;
-a
-0000-00-00 00:00:00
-0000-00-00 10:20:30
-0000-01-03 14:20:30
-DROP TABLE t1;
-CREATE TABLE t1 (a TIMESTAMP);
-INSERT IGNORE INTO t1 VALUES (TIME'-10:20:30');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-INSERT IGNORE INTO t1 VALUES (TIME'10:20:30');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-INSERT IGNORE INTO t1 VALUES (TIME'830:20:30');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-SELECT * FROM t1;
-a
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-DROP TABLE t1;
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES (TIME'-10:20:30');
-INSERT INTO t1 VALUES (TIME'10:20:30');
-INSERT INTO t1 VALUES (TIME'830:20:30');
-SELECT a, CAST(a AS DATETIME), TO_DAYS(a) FROM t1;
-a CAST(a AS DATETIME) TO_DAYS(a)
--10:20:30 NULL NULL
-10:20:30 0000-00-00 10:20:30 NULL
-830:20:30 0000-01-03 14:20:30 NULL
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '-10:20:30'
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-DROP TABLE t1;
-SELECT TO_DAYS(TIME'-10:20:30');
-TO_DAYS(TIME'-10:20:30')
-NULL
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '-10:20:30'
-SELECT TO_DAYS(TIME'10:20:30');
-TO_DAYS(TIME'10:20:30')
-NULL
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '10:20:30'
-SELECT TO_DAYS(TIME'830:20:30');
-TO_DAYS(TIME'830:20:30')
-3
-CREATE TABLE t1 (a DATETIME, b TIME);
-INSERT INTO t1 VALUES (NULL, '00:20:12');
-INSERT INTO t1 VALUES (NULL, '-00:20:12');
-SELECT IF(1,ADDDATE(IFNULL(a,b),0),1) FROM t1;
-IF(1,ADDDATE(IFNULL(a,b),0),1)
-NULL
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00 00:20:12'
-Warning 1292 Truncated incorrect datetime value: '-00:20:12'
-DROP TABLE t1;
-#
-# MDEV-6649 Different warnings for TIME and TIME(N) when @@old_mode=zero_date_time_cast
-#
-SET @@global.mysql56_temporal_format=true;
-SET @@old_mode=zero_date_time_cast;
-CREATE TABLE t1 (a TIME,b TIME(1));
-INSERT INTO t1 VALUES (TIME'830:20:30',TIME'830:20:30');
-SELECT TO_DAYS(a), TO_DAYS(b) FROM t1;
-TO_DAYS(a) TO_DAYS(b)
-NULL NULL
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'b' at row 1
-DROP TABLE t1;
-SET @@global.mysql56_temporal_format=false;
-SET @@old_mode=zero_date_time_cast;
-CREATE TABLE t1 (a TIME,b TIME(1));
-INSERT INTO t1 VALUES (TIME'830:20:30',TIME'830:20:30');
-SELECT TO_DAYS(a), TO_DAYS(b) FROM t1;
-TO_DAYS(a) TO_DAYS(b)
-NULL NULL
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'b' at row 1
-DROP TABLE t1;
-SET @@global.mysql56_temporal_format=DEFAULT;
-set time_zone='Europe/Moscow';
-set global mysql56_temporal_format=false;
-create table t1 (a timestamp);
-set timestamp=1288477526;
-insert t1 values (null);
-insert t1 values ();
-set timestamp=1288481126;
-insert t1 values (null);
-insert t1 values ();
-select a, unix_timestamp(a) from t1;
-a unix_timestamp(a)
-2010-10-31 02:25:26 1288477526
-2010-10-31 02:25:26 1288477526
-2010-10-31 02:25:26 1288481126
-2010-10-31 02:25:26 1288481126
-set global mysql56_temporal_format=true;
-select a, unix_timestamp(a) from t1;
-a unix_timestamp(a)
-2010-10-31 02:25:26 1288477526
-2010-10-31 02:25:26 1288477526
-2010-10-31 02:25:26 1288481126
-2010-10-31 02:25:26 1288481126
-alter table t1 modify a timestamp;
-select a, unix_timestamp(a) from t1;
-a unix_timestamp(a)
-2010-10-31 02:25:26 1288477526
-2010-10-31 02:25:26 1288477526
-2010-10-31 02:25:26 1288481126
-2010-10-31 02:25:26 1288481126
-drop table t1;
-set global mysql56_temporal_format=false;
-create table t1 (a timestamp);
-set timestamp=1288477526;
-insert t1 values (null);
-set timestamp=1288481126;
-insert t1 values (null);
-select a, unix_timestamp(a) from t1;
-a unix_timestamp(a)
-2010-10-31 02:25:26 1288477526
-2010-10-31 02:25:26 1288481126
-set global mysql56_temporal_format=true;
-select a, unix_timestamp(a) from t1;
-a unix_timestamp(a)
-2010-10-31 02:25:26 1288477526
-2010-10-31 02:25:26 1288481126
-create table t2 (a timestamp);
-insert t2 select a from t1;
-select a, unix_timestamp(a) from t2;
-a unix_timestamp(a)
-2010-10-31 02:25:26 1288477526
-2010-10-31 02:25:26 1288481126
-drop table t1, t2;
-set time_zone=DEFAULT;
diff --git a/mysql-test/r/one_thread_per_connection.require b/mysql-test/r/one_thread_per_connection.require
deleted file mode 100644
index b2efbca6441..00000000000
--- a/mysql-test/r/one_thread_per_connection.require
+++ /dev/null
@@ -1,2 +0,0 @@
-@@thread_handling
-one-thread-per-connection
diff --git a/mysql-test/r/openssl_1.result b/mysql-test/r/openssl_1.result
deleted file mode 100644
index ca8d71895e2..00000000000
--- a/mysql-test/r/openssl_1.result
+++ /dev/null
@@ -1,231 +0,0 @@
-set local sql_mode="";
-set global sql_mode="";
-drop table if exists t1;
-create table t1(f1 int);
-insert into t1 values (5);
-grant select on test.* to ssl_user1@localhost require SSL;
-grant select on test.* to ssl_user2@localhost require cipher "AES256-SHA";
-grant select on test.* to ssl_user3@localhost require cipher "AES256-SHA" AND SUBJECT "/C=FI/ST=Helsinki/L=Helsinki/O=MariaDB/CN=client";
-grant select on test.* to ssl_user4@localhost require cipher "AES256-SHA" AND SUBJECT "/C=FI/ST=Helsinki/L=Helsinki/O=MariaDB/CN=client" ISSUER "/CN=cacert/C=FI/ST=Helsinki/L=Helsinki/O=MariaDB";
-grant select on test.* to ssl_user5@localhost require cipher "AES256-SHA" AND SUBJECT "xxx";
-flush privileges;
-connect con1,localhost,ssl_user1,,,,,SSL-CIPHER=AES256-SHA;
-connect(localhost,ssl_user2,,test,MASTER_PORT,MASTER_SOCKET);
-connect con2,localhost,ssl_user2,,,,,SSL-CIPHER=AES128-SHA;
-ERROR 28000: Access denied for user 'ssl_user2'@'localhost' (using password: NO)
-connect con2,localhost,ssl_user2,,,,,SSL-CIPHER=AES256-SHA;
-connect con3,localhost,ssl_user3,,,,,SSL-CIPHER=AES256-SHA;
-connect con4,localhost,ssl_user4,,,,,SSL-CIPHER=AES256-SHA;
-connect(localhost,ssl_user5,,test,MASTER_PORT,MASTER_SOCKET);
-connect con5,localhost,ssl_user5,,,,,SSL-CIPHER=AES256-SHA;
-ERROR 28000: Access denied for user 'ssl_user5'@'localhost' (using password: NO)
-connection con1;
-SHOW STATUS LIKE 'Ssl_cipher';
-Variable_name Value
-Ssl_cipher AES256-SHA
-select * from t1;
-f1
-5
-delete from t1;
-ERROR 42000: DELETE command denied to user 'ssl_user1'@'localhost' for table 't1'
-connection con2;
-SHOW STATUS LIKE 'Ssl_cipher';
-Variable_name Value
-Ssl_cipher AES256-SHA
-select * from t1;
-f1
-5
-delete from t1;
-ERROR 42000: DELETE command denied to user 'ssl_user2'@'localhost' for table 't1'
-connection con3;
-SHOW STATUS LIKE 'Ssl_cipher';
-Variable_name Value
-Ssl_cipher AES256-SHA
-select * from t1;
-f1
-5
-delete from t1;
-ERROR 42000: DELETE command denied to user 'ssl_user3'@'localhost' for table 't1'
-connection con4;
-SHOW STATUS LIKE 'Ssl_cipher';
-Variable_name Value
-Ssl_cipher AES256-SHA
-select * from t1;
-f1
-5
-delete from t1;
-ERROR 42000: DELETE command denied to user 'ssl_user4'@'localhost' for table 't1'
-connection default;
-disconnect con1;
-disconnect con2;
-disconnect con3;
-disconnect con4;
-drop user ssl_user1@localhost, ssl_user2@localhost,
-ssl_user3@localhost, ssl_user4@localhost, ssl_user5@localhost;
-drop table t1;
-mysqltest: Could not open connection 'default': 2026 SSL connection error: xxxx
-mysqltest: Could not open connection 'default': 2026 SSL connection error: xxxx
-mysqltest: Could not open connection 'default': 2026 SSL connection error: xxxx
-mysqltest: Could not open connection 'default': 2026 SSL connection error: xxxx
-mysqltest: Could not open connection 'default': 2026 SSL connection error: xxxx
-SHOW STATUS LIKE 'Ssl_cipher';
-Variable_name Value
-Ssl_cipher AES256-SHA
-have_ssl
-1
-End of 5.0 tests
-DROP TABLE IF EXISTS thread_status;
-DROP EVENT IF EXISTS event_status;
-SET GLOBAL event_scheduler=1;
-CREATE EVENT event_status
-ON SCHEDULE AT NOW()
-ON COMPLETION NOT PRESERVE
-DO
-BEGIN
-CREATE TABLE thread_status
-SELECT variable_name, variable_value
-FROM information_schema.session_status
-WHERE variable_name LIKE 'SSL_ACCEPTS' OR
-variable_name LIKE 'SSL_CALLBACK_CACHE_HITS';
-END$$
-SELECT variable_name, variable_value FROM thread_status;
-variable_name variable_value
-SSL_ACCEPTS #
-SSL_CALLBACK_CACHE_HITS #
-DROP TABLE thread_status;
-SET GLOBAL event_scheduler=0;
-SHOW STATUS LIKE 'Ssl_cipher';
-Variable_name Value
-Ssl_cipher AES128-SHA
-SHOW STATUS LIKE 'Ssl_cipher';
-Variable_name Value
-Ssl_cipher AES128-SHA
-mysqltest: Could not open connection 'default': 2026 SSL connection error: xxxxCREATE TABLE t1(a int);
-INSERT INTO t1 VALUES (1), (2);
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-);
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (1),(2);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-);
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (1),(2);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `t1`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-);
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-LOCK TABLES `t1` WRITE;
-/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
-INSERT INTO `t1` VALUES (1),(2);
-/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
-mysqldump: Got error: 2026: SSL connection error: xxxx
-DROP TABLE t1;
-Variable_name Value
-Ssl_cipher AES256-SHA
-Variable_name Value
-Ssl_cipher AES128-SHA
-select 'is still running; no cipher request crashed the server' as result from dual;
-result
-is still running; no cipher request crashed the server
-GRANT SELECT ON test.* TO bug42158@localhost REQUIRE X509;
-FLUSH PRIVILEGES;
-connect con1,localhost,bug42158,,,,,SSL;
-SELECT (VARIABLE_VALUE <> '') AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher';
-have_ssl
-1
-disconnect con1;
-connection default;
-DROP USER bug42158@localhost;
-set global sql_mode=default;
-End of 5.1 tests
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-ERROR: Failed on connect: SSL connection error \ No newline at end of file
diff --git a/mysql-test/r/openssl_6975,tlsv10.result b/mysql-test/r/openssl_6975,tlsv10.result
deleted file mode 100644
index b76a91bd134..00000000000
--- a/mysql-test/r/openssl_6975,tlsv10.result
+++ /dev/null
@@ -1,27 +0,0 @@
-create user ssl_sslv3@localhost;
-grant select on test.* to ssl_sslv3@localhost require cipher "AES128-SHA";
-create user ssl_tls12@localhost;
-grant select on test.* to ssl_tls12@localhost require cipher "AES128-SHA256";
-TLS1.2 ciphers: user is ok with any cipher
-ERROR 2026 (HY000): SSL connection error: sslv3 alert handshake failure
-ERROR 2026 (HY000): SSL connection error: sslv3 alert handshake failure
-TLS1.2 ciphers: user requires SSLv3 cipher AES128-SHA
-ERROR 2026 (HY000): SSL connection error: sslv3 alert handshake failure
-ERROR 2026 (HY000): SSL connection error: sslv3 alert handshake failure
-TLS1.2 ciphers: user requires TLSv1.2 cipher AES128-SHA256
-ERROR 2026 (HY000): SSL connection error: sslv3 alert handshake failure
-ERROR 2026 (HY000): SSL connection error: sslv3 alert handshake failure
-SSLv3 ciphers: user is ok with any cipher
-Variable_name Value
-Ssl_cipher AES256-SHA
-Variable_name Value
-Ssl_cipher DHE-RSA-AES256-SHA
-SSLv3 ciphers: user requires SSLv3 cipher AES128-SHA
-Variable_name Value
-Ssl_cipher AES128-SHA
-ERROR 1045 (28000): Access denied for user 'ssl_sslv3'@'localhost' (using password: NO)
-SSLv3 ciphers: user requires TLSv1.2 cipher AES128-SHA256
-ERROR 1045 (28000): Access denied for user 'ssl_tls12'@'localhost' (using password: NO)
-ERROR 1045 (28000): Access denied for user 'ssl_tls12'@'localhost' (using password: NO)
-drop user ssl_sslv3@localhost;
-drop user ssl_tls12@localhost;
diff --git a/mysql-test/r/openssl_6975,tlsv12.result b/mysql-test/r/openssl_6975,tlsv12.result
deleted file mode 100644
index c16e503c339..00000000000
--- a/mysql-test/r/openssl_6975,tlsv12.result
+++ /dev/null
@@ -1,27 +0,0 @@
-create user ssl_sslv3@localhost;
-grant select on test.* to ssl_sslv3@localhost require cipher "AES128-SHA";
-create user ssl_tls12@localhost;
-grant select on test.* to ssl_tls12@localhost require cipher "AES128-SHA256";
-TLS1.2 ciphers: user is ok with any cipher
-Variable_name Value
-Ssl_cipher AES128-SHA256
-Variable_name Value
-Ssl_cipher DHE-RSA-AES256-GCM-SHA384
-TLS1.2 ciphers: user requires SSLv3 cipher AES128-SHA
-ERROR 1045 (28000): Access denied for user 'ssl_sslv3'@'localhost' (using password: NO)
-ERROR 1045 (28000): Access denied for user 'ssl_sslv3'@'localhost' (using password: NO)
-TLS1.2 ciphers: user requires TLSv1.2 cipher AES128-SHA256
-Variable_name Value
-Ssl_cipher AES128-SHA256
-ERROR 1045 (28000): Access denied for user 'ssl_tls12'@'localhost' (using password: NO)
-SSLv3 ciphers: user is ok with any cipher
-ERROR 2026 (HY000): SSL connection error: sslv3 alert handshake failure
-ERROR 2026 (HY000): SSL connection error: sslv3 alert handshake failure
-SSLv3 ciphers: user requires SSLv3 cipher AES128-SHA
-ERROR 2026 (HY000): SSL connection error: sslv3 alert handshake failure
-ERROR 2026 (HY000): SSL connection error: sslv3 alert handshake failure
-SSLv3 ciphers: user requires TLSv1.2 cipher AES128-SHA256
-ERROR 2026 (HY000): SSL connection error: sslv3 alert handshake failure
-ERROR 2026 (HY000): SSL connection error: sslv3 alert handshake failure
-drop user ssl_sslv3@localhost;
-drop user ssl_tls12@localhost;
diff --git a/mysql-test/r/opt_tvc.result b/mysql-test/r/opt_tvc.result
deleted file mode 100644
index 0ecae5bf157..00000000000
--- a/mysql-test/r/opt_tvc.result
+++ /dev/null
@@ -1,658 +0,0 @@
-create table t1 (a int, b int);
-insert into t1
-values (1,2), (4,6), (9,7),
-(1,1), (2,5), (7,8);
-create table t2 (a int, b int, c int);
-insert into t2
-values (1,2,3), (5,1,2), (4,3,7),
-(8,9,0), (10,7,1), (5,5,1);
-create table t3 (a int, b varchar(16), index idx(a));
-insert into t3 values
-(1, "abc"), (3, "egh"), (8, "axxx"), (10, "abc"),
-(2, "ccw"), (8, "wqqe"), (7, "au"), (9, "waa"),
-(3, "rass"), (9, "ert"), (9, "lok"), (8, "aww"),
-(1, "todd"), (3, "rew"), (8, "aww"), (3, "sw"),
-(11, "llk"), (7, "rbw"), (1, "sm"), (2, "jyp"),
-(4, "yq"), (5, "pled"), (12, "ligin"), (12, "toww"),
-(6, "mxm"), (15, "wanone"), (9, "sunqq"), (2, "abe");
-# optimization is not used
-select * from t1 where a in (1,2);
-a b
-1 2
-1 1
-2 5
-explain extended select * from t1 where a in (1,2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` in (1,2)
-# set minimum number of values in VALUEs list when optimization works to 2
-set @@in_predicate_conversion_threshold= 2;
-# single IN-predicate in WHERE-part
-select * from t1 where a in (1,2);
-a b
-1 2
-1 1
-2 5
-select * from t1
-where a in
-(
-select *
-from (values (1),(2)) as tvc_0
-);
-a b
-1 2
-1 1
-2 5
-explain extended select * from t1 where a in (1,2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) where `test`.`t1`.`a` = `tvc_0`.`1`
-explain extended select * from t1
-where a in
-(
-select *
-from (values (1),(2)) as tvc_0
-);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) where `test`.`t1`.`a` = `tvc_0`.`1`
-# AND-condition with IN-predicates in WHERE-part
-select * from t1
-where a in (1,2) and
-b in (1,5);
-a b
-1 1
-2 5
-select * from t1
-where a in
-(
-select *
-from (values (1),(2)) as tvc_0
-)
-and b in
-(
-select *
-from (values (1),(5)) as tvc_1
-);
-a b
-1 1
-2 5
-explain extended select * from t1
-where a in (1,2) and
-b in (1,5);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery4> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-4 MATERIALIZED <derived5> ALL NULL NULL NULL NULL 2 100.00
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
-5 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) semi join ((values (1),(5)) `tvc_1`) where `test`.`t1`.`b` = `tvc_1`.`1`
-explain extended select * from t1
-where a in
-(
-select *
-from (values (1),(2)) as tvc_0
-)
-and b in
-(
-select *
-from (values (1),(5)) as tvc_1
-);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery4> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-4 MATERIALIZED <derived5> ALL NULL NULL NULL NULL 2 100.00
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
-5 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) semi join ((values (1),(5)) `tvc_1`) where `test`.`t1`.`b` = `tvc_1`.`1`
-# subquery with IN-predicate
-select * from t1
-where a in
-(
-select a
-from t2 where b in (3,4)
-);
-a b
-4 6
-select * from t1
-where a in
-(
-select a from t2
-where b in
-(
-select *
-from (values (3),(4)) as tvc_0
-)
-);
-a b
-4 6
-explain extended select * from t1
-where a in
-(
-select a
-from t2 where b in (3,4)
-);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED <derived4> ALL NULL NULL NULL NULL 2 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (3),(4)) `tvc_0` join `test`.`t2`) where `test`.`t2`.`b` = `tvc_0`.`3`
-explain extended select * from t1
-where a in
-(
-select a from t2
-where b in
-(
-select *
-from (values (3),(4)) as tvc_0
-)
-);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED <derived4> ALL NULL NULL NULL NULL 2 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (3),(4)) `tvc_0` join `test`.`t2`) where `test`.`t2`.`b` = `tvc_0`.`3`
-# derived table with IN-predicate
-select * from
-(
-select *
-from t1
-where a in (1,2)
-) as dr_table;
-a b
-1 2
-1 1
-2 5
-select * from
-(
-select *
-from t1
-where a in
-(
-select *
-from (values (1),(2))
-as tvc_0
-)
-) as dr_table;
-a b
-1 2
-1 1
-2 5
-explain extended select * from
-(
-select *
-from t1
-where a in (1,2)
-) as dr_table;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery3> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED <derived4> ALL NULL NULL NULL NULL 2 100.00
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) where `test`.`t1`.`a` = `tvc_0`.`1`
-explain extended select * from
-(
-select *
-from t1
-where a in
-(
-select *
-from (values (1),(2))
-as tvc_0
-)
-) as dr_table;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery3> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED <derived4> ALL NULL NULL NULL NULL 2 100.00
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) where `test`.`t1`.`a` = `tvc_0`.`1`
-# non-recursive CTE with IN-predicate
-with tvc_0 as
-(
-select *
-from t1
-where a in (1,2)
-)
-select * from tvc_0;
-a b
-1 2
-1 1
-2 5
-select * from
-(
-select *
-from t1
-where a in
-(
-select *
-from (values (1),(2))
-as tvc_0
-)
-) as dr_table;
-a b
-1 2
-1 1
-2 5
-explain extended with tvc_0 as
-(
-select *
-from t1
-where a in (1,2)
-)
-select * from tvc_0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery3> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED <derived4> ALL NULL NULL NULL NULL 2 100.00
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 with tvc_0 as (/* select#2 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) where `test`.`t1`.`a` in (1,2))/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) where `test`.`t1`.`a` = `tvc_0`.`1`
-explain extended select * from
-(
-select *
-from t1
-where a in
-(
-select *
-from (values (1),(2))
-as tvc_0
-)
-) as dr_table;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery3> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED <derived4> ALL NULL NULL NULL NULL 2 100.00
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) where `test`.`t1`.`a` = `tvc_0`.`1`
-# VIEW with IN-predicate
-create view v1 as
-select *
-from t1
-where a in (1,2);
-create view v2 as
-select *
-from t1
-where a in
-(
-select *
-from (values (1),(2))
-as tvc_0
-)
-;
-select * from v1;
-a b
-1 2
-1 1
-2 5
-select * from v2;
-a b
-1 2
-1 1
-2 5
-explain extended select * from v1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery3> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED <derived4> ALL NULL NULL NULL NULL 2 100.00
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) where `test`.`t1`.`a` = `tvc_0`.`1`
-explain extended select * from v2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery3> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED <derived4> ALL NULL NULL NULL NULL 2 100.00
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) where `test`.`t1`.`a` = `tvc_0`.`1`
-drop view v1,v2;
-# subselect defined by derived table with IN-predicate
-select * from t1
-where a in
-(
-select 1
-from
-(
-select *
-from t1
-where a in (1,2)
-)
-as dr_table
-);
-a b
-1 2
-1 1
-select * from t1
-where a in
-(
-select 1
-from
-(
-select *
-from t1
-where a in
-(
-select *
-from (values (1),(2))
-as tvc_0
-)
-)
-as dr_table
-);
-a b
-1 2
-1 1
-explain extended select * from t1
-where a in
-(
-select 1
-from
-(
-select *
-from t1
-where a in (1,2)
-)
-as dr_table
-);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED <derived5> ALL NULL NULL NULL NULL 2 100.00
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-5 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0` join `test`.`t1`) where `test`.`t1`.`a` = 1 and `test`.`t1`.`a` = `tvc_0`.`1`
-explain extended select * from t1
-where a in
-(
-select 1
-from
-(
-select *
-from t1
-where a in
-(
-select *
-from (values (1),(2))
-as tvc_0
-)
-)
-as dr_table
-);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED <derived5> ALL NULL NULL NULL NULL 2 100.00
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-5 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0` join `test`.`t1`) where `test`.`t1`.`a` = 1 and `test`.`t1`.`a` = `tvc_0`.`1`
-# derived table with IN-predicate and group by
-select * from
-(
-select max(a),b
-from t1
-where b in (3,5)
-group by b
-) as dr_table;
-max(a) b
-2 5
-select * from
-(
-select max(a),b
-from t1
-where b in
-(
-select *
-from (values (3),(5))
-as tvc_0
-)
-group by b
-) as dr_table;
-max(a) b
-2 5
-explain extended select * from
-(
-select max(a),b
-from t1
-where b in (3,5)
-group by b
-) as dr_table;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 12 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 6 100.00 Using temporary; Using filesort
-2 DERIVED <subquery3> eq_ref distinct_key distinct_key 4 func 1 100.00
-3 MATERIALIZED <derived4> ALL NULL NULL NULL NULL 2 100.00
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `dr_table`.`max(a)` AS `max(a)`,`dr_table`.`b` AS `b` from (/* select#2 */ select max(`test`.`t1`.`a`) AS `max(a)`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (3),(5)) `tvc_0`) where 1 group by `test`.`t1`.`b`) `dr_table`
-explain extended select * from
-(
-select max(a),b
-from t1
-where b in
-(
-select *
-from (values (3),(5))
-as tvc_0
-)
-group by b
-) as dr_table;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 12 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 6 100.00 Using temporary; Using filesort
-2 DERIVED <subquery3> eq_ref distinct_key distinct_key 4 func 1 100.00
-3 MATERIALIZED <derived4> ALL NULL NULL NULL NULL 2 100.00
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `dr_table`.`max(a)` AS `max(a)`,`dr_table`.`b` AS `b` from (/* select#2 */ select max(`test`.`t1`.`a`) AS `max(a)`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (3),(5)) `tvc_0`) where 1 group by `test`.`t1`.`b`) `dr_table`
-# prepare statement
-prepare stmt from "select * from t1 where a in (1,2)";
-execute stmt;
-a b
-1 2
-1 1
-2 5
-execute stmt;
-a b
-1 2
-1 1
-2 5
-deallocate prepare stmt;
-# use inside out access from tvc rows
-set @@in_predicate_conversion_threshold= default;
-select * from t3 where a in (1,4,10);
-a b
-1 abc
-1 todd
-1 sm
-4 yq
-10 abc
-explain extended select * from t3 where a in (1,4,10);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 range idx idx 5 NULL 5 100.00 Using index condition
-Warnings:
-Note 1003 select `test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b` from `test`.`t3` where `test`.`t3`.`a` in (1,4,10)
-set @@in_predicate_conversion_threshold= 2;
-select * from t3 where a in (1,4,10);
-a b
-1 abc
-1 todd
-1 sm
-4 yq
-10 abc
-explain extended select * from t3 where a in (1,4,10);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t3 ref idx idx 5 tvc_0.1 3 100.00
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b` from `test`.`t3` semi join ((values (1),(4),(10)) `tvc_0`) where `test`.`t3`.`a` = `tvc_0`.`1`
-# use vectors in IN predeicate
-set @@in_predicate_conversion_threshold= 4;
-select * from t1 where (a,b) in ((1,2),(3,4));
-a b
-1 2
-explain extended select * from t1 where (a,b) in ((1,2),(3,4));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1,2),(3,4)) `tvc_0`) where `test`.`t1`.`a` = `tvc_0`.`1` and `test`.`t1`.`b` = `tvc_0`.`2`
-set @@in_predicate_conversion_threshold= 2;
-# trasformation works for the one IN predicate and doesn't work for the other
-set @@in_predicate_conversion_threshold= 5;
-select * from t2
-where (a,b) in ((1,2),(8,9)) and
-(a,c) in ((1,3),(8,0),(5,1));
-a b c
-1 2 3
-8 9 0
-explain extended select * from t2
-where (a,b) in ((1,2),(8,9)) and
-(a,c) in ((1,3),(8,0),(5,1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` semi join ((values (1,3),(8,0),(5,1)) `tvc_0`) where `test`.`t2`.`a` = `tvc_0`.`1` and `test`.`t2`.`c` = `tvc_0`.`3` and (`tvc_0`.`1`,`test`.`t2`.`b`) in (<cache>((1,2)),<cache>((8,9)))
-set @@in_predicate_conversion_threshold= 2;
-#
-# mdev-14281: conversion of NOT IN predicate into subquery predicate
-#
-select * from t1
-where (a,b) not in ((1,2),(8,9), (5,1));
-a b
-4 6
-9 7
-1 1
-2 5
-7 8
-select * from t1
-where (a,b) not in (select * from (values (1,2),(8,9), (5,1)) as tvc_0);
-a b
-4 6
-9 7
-1 1
-2 5
-7 8
-explain extended select * from t1
-where (a,b) not in ((1,2),(8,9), (5,1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where !<expr_cache><`test`.`t1`.`a`,`test`.`t1`.`b`>(<in_optimizer>((`test`.`t1`.`a`,`test`.`t1`.`b`),(`test`.`t1`.`a`,`test`.`t1`.`b`) in ( <materialize> (/* select#2 */ select `tvc_0`.`1`,`tvc_0`.`2` from (values (1,2),(8,9),(5,1)) `tvc_0` ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`1` and `test`.`t1`.`b` = `<subquery2>`.`2`))))
-explain extended select * from t1
-where (a,b) not in (select * from (values (1,2),(8,9), (5,1)) as tvc_0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where !<expr_cache><`test`.`t1`.`a`,`test`.`t1`.`b`>(<in_optimizer>((`test`.`t1`.`a`,`test`.`t1`.`b`),(`test`.`t1`.`a`,`test`.`t1`.`b`) in ( <materialize> (/* select#2 */ select `tvc_0`.`1`,`tvc_0`.`2` from (values (1,2),(8,9),(5,1)) `tvc_0` ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`1` and `test`.`t1`.`b` = `<subquery2>`.`2`))))
-select * from t1
-where b < 7 and (a,b) not in ((1,2),(8,9), (5,1));
-a b
-4 6
-1 1
-2 5
-explain extended select * from t1
-where b < 7 and (a,b) not in ((1,2),(8,9), (5,1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`b` < 7 and !<expr_cache><`test`.`t1`.`a`,`test`.`t1`.`b`>(<in_optimizer>((`test`.`t1`.`a`,`test`.`t1`.`b`),(`test`.`t1`.`a`,`test`.`t1`.`b`) in ( <materialize> (/* select#2 */ select `tvc_0`.`1`,`tvc_0`.`2` from (values (1,2),(8,9),(5,1)) `tvc_0` ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`1` and `test`.`t1`.`b` = `<subquery2>`.`2`))))
-select * from t2
-where (a,c) not in ((1,2),(8,9), (5,1));
-a b c
-1 2 3
-5 1 2
-4 3 7
-8 9 0
-10 7 1
-explain extended select * from t2
-where (a,c) not in ((1,2),(8,9), (5,1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where !<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`c`>(<in_optimizer>((`test`.`t2`.`a`,`test`.`t2`.`c`),(`test`.`t2`.`a`,`test`.`t2`.`c`) in ( <materialize> (/* select#2 */ select `tvc_0`.`1`,`tvc_0`.`2` from (values (1,2),(8,9),(5,1)) `tvc_0` ), <primary_index_lookup>(`test`.`t2`.`a` in <temporary table> on distinct_key where `test`.`t2`.`a` = `<subquery2>`.`1` and `test`.`t2`.`c` = `<subquery2>`.`2`))))
-drop table t1, t2, t3;
-set @@in_predicate_conversion_threshold= default;
-#
-# MDEV-14947: conversion of TVC with only NULL values
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (3), (2), (7);
-SELECT * FROM t1 WHERE i IN (NULL, NULL, NULL, NULL, NULL);
-i
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE i IN (NULL, NULL, NULL, NULL, NULL);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`i` AS `i` from `test`.`t1` where `test`.`t1`.`i` in (NULL,NULL,NULL,NULL,NULL)
-SET in_predicate_conversion_threshold= 5;
-SELECT * FROM t1 WHERE i IN (NULL, NULL, NULL, NULL, NULL);
-i
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE i IN (NULL, NULL, NULL, NULL, NULL);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 2 100.00 Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i` from `test`.`t1` semi join ((values (NULL),(NULL),(NULL),(NULL),(NULL)) `tvc_0`) where `test`.`t1`.`i` = `tvc_0`.`NULL`
-SET in_predicate_conversion_threshold= default;
-DROP TABLE t1;
-#
-# MDEV-14835: conversion of TVC with BIGINT or YEAR values
-#
-SET @@in_predicate_conversion_threshold= 2;
-CREATE TABLE t1 (a BIGINT);
-CREATE TABLE t2 (y YEAR);
-INSERT INTO t1 VALUES (1), (2), (3);
-INSERT INTO t2 VALUES (2009), (2010), (2011);
-SELECT * FROM t1 WHERE a IN ('1','5','3');
-a
-1
-3
-SELECT * FROM t2 WHERE y IN ('2009','2011');
-y
-2009
-2011
-DROP TABLE t1,t2;
-SET @@in_predicate_conversion_threshold= default;
diff --git a/mysql-test/r/order_by-mdev-10122.result b/mysql-test/r/order_by-mdev-10122.result
deleted file mode 100644
index 57c0ecdd970..00000000000
--- a/mysql-test/r/order_by-mdev-10122.result
+++ /dev/null
@@ -1,127 +0,0 @@
-#
-# MariaDB does not support group functions in some contexts where MySQL does
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10),(20),(30);
-# All these queries must pass, not returning "Invalid use of group function".
-(SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a));
-a
-10
-20
-30
-(SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a)) LIMIT 1;
-a
-10
-(SELECT a FROM t1 GROUP BY a ORDER BY a,GROUP_CONCAT(a));
-a
-10
-20
-30
-(SELECT a FROM t1 GROUP BY a ORDER BY a,GROUP_CONCAT(a)) LIMIT 1;
-a
-10
-(SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a)) ORDER BY a;
-a
-10
-20
-30
-(SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a)) ORDER BY a LIMIT 1;
-a
-10
-(SELECT a FROM t1 GROUP BY a ORDER BY a,GROUP_CONCAT(a)) ORDER BY a;
-a
-10
-20
-30
-(SELECT a FROM t1 GROUP BY a ORDER BY a,GROUP_CONCAT(a)) ORDER BY a LIMIT 1;
-a
-10
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a));
-a
-1
-10
-20
-30
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a)) LIMIT 1;
-a
-1
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a)) ORDER BY a;
-a
-1
-10
-20
-30
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a)) ORDER BY a LIMIT 1;
-a
-1
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY a,GROUP_CONCAT(a));
-a
-1
-10
-20
-30
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY a,GROUP_CONCAT(a)) LIMIT 1;
-a
-1
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY a,GROUP_CONCAT(a)) ORDER BY a;
-a
-1
-10
-20
-30
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY a,GROUP_CONCAT(a)) ORDER BY a LIMIT 1;
-a
-1
-(SELECT a FROM t1 GROUP BY a ORDER BY MAX(a)) ORDER BY a;
-a
-10
-20
-30
-(SELECT a FROM t1 GROUP BY a ORDER BY MAX(a)) ORDER BY a LIMIT 1;
-a
-10
-(SELECT a FROM t1 GROUP BY a ORDER BY a,MAX(a)) ORDER BY a;
-a
-10
-20
-30
-(SELECT a FROM t1 GROUP BY a ORDER BY a,MAX(a)) ORDER BY a LIMIT 1;
-a
-10
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY MAX(a));
-a
-1
-10
-20
-30
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY MAX(a)) LIMIT 1;
-a
-1
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY MAX(a)) ORDER BY a;
-a
-1
-10
-20
-30
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY MAX(a)) ORDER BY a LIMIT 1;
-a
-1
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY a,MAX(a));
-a
-1
-10
-20
-30
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY a,MAX(a)) LIMIT 1;
-a
-1
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY a,MAX(a)) ORDER BY a;
-a
-1
-10
-20
-30
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY a,MAX(a)) ORDER BY a LIMIT 1;
-a
-1
-drop table t1;
diff --git a/mysql-test/r/order_by.result b/mysql-test/r/order_by.result
deleted file mode 100644
index e2b05ccec9e..00000000000
--- a/mysql-test/r/order_by.result
+++ /dev/null
@@ -1,3255 +0,0 @@
-call mtr.add_suppression("Sort aborted.*");
-drop table if exists t1,t2,t3;
-call mtr.add_suppression("Out of sort memory; increase server sort buffer size");
-CREATE TABLE t1 (
-id int(6) DEFAULT '0' NOT NULL,
-idservice int(5),
-clee char(20) NOT NULL,
-flag char(1),
-KEY id (id),
-PRIMARY KEY (clee)
-);
-INSERT INTO t1 VALUES (2,4,'6067169d','Y');
-INSERT INTO t1 VALUES (2,5,'606716d1','Y');
-INSERT INTO t1 VALUES (2,1,'606717c1','Y');
-INSERT INTO t1 VALUES (3,1,'6067178d','Y');
-INSERT INTO t1 VALUES (2,6,'60671515','Y');
-INSERT INTO t1 VALUES (2,7,'60671569','Y');
-INSERT INTO t1 VALUES (2,3,'dd','Y');
-CREATE TABLE t2 (
-id int(6) NOT NULL auto_increment,
-description varchar(40) NOT NULL,
-idform varchar(40),
-ordre int(6) unsigned DEFAULT '0' NOT NULL,
-image varchar(60),
-PRIMARY KEY (id),
-KEY id (id,ordre)
-);
-INSERT INTO t2 VALUES (1,'Emettre un appel d''offres','en_construction.html',10,'emettre.gif');
-INSERT INTO t2 VALUES (2,'Emettre des soumissions','en_construction.html',20,'emettre.gif');
-INSERT INTO t2 VALUES (7,'Liste des t2','t2_liste_form.phtml',51060,'link.gif');
-INSERT INTO t2 VALUES (8,'Consulter les soumissions','consulter_soumissions.phtml',200,'link.gif');
-INSERT INTO t2 VALUES (9,'Ajouter un type de materiel','typeMateriel_ajoute_form.phtml',51000,'link.gif');
-INSERT INTO t2 VALUES (10,'Lister/modifier un type de materiel','typeMateriel_liste_form.phtml',51010,'link.gif');
-INSERT INTO t2 VALUES (3,'Créer une fiche de client','clients_ajoute_form.phtml',40000,'link.gif');
-INSERT INTO t2 VALUES (4,'Modifier des clients','en_construction.html',40010,'link.gif');
-INSERT INTO t2 VALUES (5,'Effacer des clients','en_construction.html',40020,'link.gif');
-INSERT INTO t2 VALUES (6,'Ajouter un service','t2_ajoute_form.phtml',51050,'link.gif');
-select t1.id,t1.idservice,t2.ordre,t2.description from t1, t2 where t1.id = 2 and t1.idservice = t2.id order by t2.ordre;
-id idservice ordre description
-2 1 10 Emettre un appel d'offres
-2 3 40000 Créer une fiche de client
-2 4 40010 Modifier des clients
-2 5 40020 Effacer des clients
-2 6 51050 Ajouter un service
-2 7 51060 Liste des t2
-drop table t1,t2;
-create table t1 (first char(10),last char(10));
-insert into t1 values ("Michael","Widenius");
-insert into t1 values ("Allan","Larsson");
-insert into t1 values ("David","Axmark");
-select concat(first," ",last) as name from t1 order by name;
-name
-Allan Larsson
-David Axmark
-Michael Widenius
-select concat(last," ",first) as name from t1 order by name;
-name
-Axmark David
-Larsson Allan
-Widenius Michael
-drop table t1;
-create table t1 (i int);
-insert into t1 values(1),(2),(1),(2),(1),(2),(3);
-select distinct i from t1;
-i
-1
-2
-3
-select distinct i from t1 order by rand(5);
-i
-1
-3
-2
-select distinct i from t1 order by i desc;
-i
-3
-2
-1
-select distinct i from t1 order by 1-i;
-i
-3
-2
-1
-select distinct i from t1 order by mod(i,2),i;
-i
-2
-1
-3
-drop table t1;
-create table t1 ( pk int primary key, name varchar(255) not null, number varchar(255) not null);
-insert into t1 values (1, 'Gamma', '123'), (2, 'Gamma Ext', '123a'), (3, 'Alpha', '001'), (4, 'Beta', '200c');
-select distinct t1.name as 'Building Name',t1.number as 'Building Number' from t1 order by t1.name asc;
-Building Name Building Number
-Alpha 001
-Beta 200c
-Gamma 123
-Gamma Ext 123a
-drop table t1;
-create table t1 (id int not null,col1 int not null,col2 int not null,index(col1));
-insert into t1 values(1,2,2),(2,2,1),(3,1,2),(4,1,1),(5,1,4),(6,2,3),(7,3,1),(8,2,4);
-select * from t1 order by col1,col2;
-id col1 col2
-4 1 1
-3 1 2
-5 1 4
-2 2 1
-1 2 2
-6 2 3
-8 2 4
-7 3 1
-select col1 from t1 order by id;
-col1
-2
-2
-1
-1
-1
-2
-3
-2
-select col1 as id from t1 order by id;
-id
-1
-1
-1
-2
-2
-2
-2
-3
-select concat(col1) as id from t1 order by id;
-id
-1
-1
-1
-2
-2
-2
-2
-3
-drop table t1;
-CREATE TABLE t1 (id int auto_increment primary key,aika varchar(40),aikakentta timestamp);
-insert into t1 (aika) values ('Keskiviikko');
-insert into t1 (aika) values ('Tiistai');
-insert into t1 (aika) values ('Maanantai');
-insert into t1 (aika) values ('Sunnuntai');
-SELECT FIELD(SUBSTRING(t1.aika,1,2),'Ma','Ti','Ke','To','Pe','La','Su') AS test FROM t1 ORDER by test;
-test
-1
-2
-3
-7
-drop table t1;
-CREATE TABLE t1
-(
-a int unsigned NOT NULL,
-b int unsigned NOT NULL,
-c int unsigned NOT NULL,
-UNIQUE(a),
-INDEX(b),
-INDEX(c)
-);
-CREATE TABLE t2
-(
-c int unsigned NOT NULL,
-i int unsigned NOT NULL,
-INDEX(c)
-);
-CREATE TABLE t3
-(
-c int unsigned NOT NULL,
-v varchar(64),
-INDEX(c)
-);
-INSERT INTO t1 VALUES (1,1,1);
-INSERT INTO t1 VALUES (2,1,2);
-INSERT INTO t1 VALUES (3,2,1);
-INSERT INTO t1 VALUES (4,2,2);
-INSERT INTO t2 VALUES (1,50);
-INSERT INTO t2 VALUES (2,25);
-INSERT INTO t3 VALUES (1,'123 Park Place');
-INSERT INTO t3 VALUES (2,'453 Boardwalk');
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-SELECT a,b,if(b = 1,i,if(b = 2,v,''))
-FROM t1
-LEFT JOIN t2 USING(c)
-LEFT JOIN t3 ON t3.c = t1.c;
-a b if(b = 1,i,if(b = 2,v,''))
-1 1 50
-2 1 25
-3 2 123 Park Place
-4 2 453 Boardwalk
-SELECT a,b,if(b = 1,i,if(b = 2,v,''))
-FROM t1
-LEFT JOIN t2 ON t1.c = t2.c
-LEFT JOIN t3 ON t3.c = t1.c;
-a b if(b = 1,i,if(b = 2,v,''))
-1 1 50
-2 1 25
-3 2 123 Park Place
-4 2 453 Boardwalk
-SELECT a,b,if(b = 1,i,if(b = 2,v,''))
-FROM t1
-LEFT JOIN t2 USING(c)
-LEFT JOIN t3 ON t3.c = t1.c
-ORDER BY a;
-a b if(b = 1,i,if(b = 2,v,''))
-1 1 50
-2 1 25
-3 2 123 Park Place
-4 2 453 Boardwalk
-SELECT a,b,if(b = 1,i,if(b = 2,v,''))
-FROM t1
-LEFT JOIN t2 ON t1.c = t2.c
-LEFT JOIN t3 ON t3.c = t1.c
-ORDER BY a;
-a b if(b = 1,i,if(b = 2,v,''))
-1 1 50
-2 1 25
-3 2 123 Park Place
-4 2 453 Boardwalk
-SET optimizer_switch=@save_optimizer_switch;
-drop table t1,t2,t3;
-create table t1 (ID int not null primary key, TransactionID int not null);
-insert into t1 (ID, TransactionID) values (1, 87), (2, 89), (3, 92), (4, 94), (5, 486), (6, 490), (7, 753), (9, 828), (10, 832), (11, 834), (12, 840);
-create table t2 (ID int not null primary key, GroupID int not null);
-insert into t2 (ID, GroupID) values (87, 87), (89, 89), (92, 92), (94, 94), (486, 486), (490, 490),(753, 753), (828, 828), (832, 832), (834, 834), (840, 840);
-create table t3 (ID int not null primary key, DateOfAction date not null);
-insert into t3 (ID, DateOfAction) values (87, '1999-07-19'), (89, '1999-07-19'), (92, '1999-07-19'), (94, '1999-07-19'), (486, '1999-07-18'), (490, '2000-03-27'), (753, '2000-03-28'), (828, '1999-07-27'), (832, '1999-07-27'),(834, '1999-07-27'), (840, '1999-07-27');
-select t3.DateOfAction, t1.TransactionID from t1 join t2 join t3 where t2.ID = t1.TransactionID and t3.ID = t2.GroupID order by t3.DateOfAction, t1.TransactionID;
-DateOfAction TransactionID
-1999-07-18 486
-1999-07-19 87
-1999-07-19 89
-1999-07-19 92
-1999-07-19 94
-1999-07-27 828
-1999-07-27 832
-1999-07-27 834
-1999-07-27 840
-2000-03-27 490
-2000-03-28 753
-select t3.DateOfAction, t1.TransactionID from t1 join t2 join t3 where t2.ID = t1.TransactionID and t3.ID = t2.GroupID order by t1.TransactionID,t3.DateOfAction;
-DateOfAction TransactionID
-1999-07-19 87
-1999-07-19 89
-1999-07-19 92
-1999-07-19 94
-1999-07-18 486
-2000-03-27 490
-2000-03-28 753
-1999-07-27 828
-1999-07-27 832
-1999-07-27 834
-1999-07-27 840
-drop table t1,t2,t3;
-CREATE TABLE t1 (
-member_id int(11) NOT NULL auto_increment,
-inschrijf_datum varchar(20) NOT NULL default '',
-lastchange_datum varchar(20) NOT NULL default '',
-nickname varchar(20) NOT NULL default '',
-password varchar(8) NOT NULL default '',
-voornaam varchar(30) NOT NULL default '',
-tussenvoegsels varchar(10) NOT NULL default '',
-achternaam varchar(50) NOT NULL default '',
-straat varchar(100) NOT NULL default '',
-postcode varchar(10) NOT NULL default '',
-wijk varchar(40) NOT NULL default '',
-plaats varchar(50) NOT NULL default '',
-telefoon varchar(10) NOT NULL default '',
-geboortedatum date NOT NULL default '0000-00-00',
-geslacht varchar(5) NOT NULL default '',
-email varchar(80) NOT NULL default '',
-uin varchar(15) NOT NULL default '',
-homepage varchar(100) NOT NULL default '',
-internet varchar(15) NOT NULL default '',
-scherk varchar(30) NOT NULL default '',
-favo_boek varchar(50) NOT NULL default '',
-favo_tijdschrift varchar(50) NOT NULL default '',
-favo_tv varchar(50) NOT NULL default '',
-favo_eten varchar(50) NOT NULL default '',
-favo_muziek varchar(30) NOT NULL default '',
-info text NOT NULL default '',
-ipnr varchar(30) NOT NULL default '',
-PRIMARY KEY (member_id)
-) ENGINE=MyISAM PACK_KEYS=1;
-insert into t1 (member_id) values (1),(2),(3);
-select member_id, nickname, voornaam FROM t1
-ORDER by lastchange_datum DESC LIMIT 2;
-member_id nickname voornaam
-1
-2
-drop table t1;
-create table t1 (a int not null, b int, c varchar(10), key (a, b, c));
-insert into t1 values (1, NULL, NULL), (1, NULL, 'b'), (1, 1, NULL), (1, 1, 'b'), (1, 1, 'b'), (2, 1, 'a'), (2, 1, 'b'), (2, 2, 'a'), (2, 2, 'b'), (2, 3, 'c'),(1,3,'b');
-explain select * from t1 where (a = 1 and b is null and c = 'b') or (a > 2) order by a desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 22 NULL 2 Using where; Using index
-select * from t1 where (a = 1 and b is null and c = 'b') or (a > 2) order by a desc;
-a b c
-1 NULL b
-explain select * from t1 where a >= 1 and a < 3 order by a desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 4 NULL 10 Using where; Using index
-select * from t1 where a >= 1 and a < 3 order by a desc;
-a b c
-2 3 c
-2 2 b
-2 2 a
-2 1 b
-2 1 a
-1 3 b
-1 1 b
-1 1 b
-1 1 NULL
-1 NULL b
-1 NULL NULL
-explain select * from t1 where a = 1 order by a desc, b desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 4 const 5 Using where; Using index
-select * from t1 where a = 1 order by a desc, b desc;
-a b c
-1 3 b
-1 1 b
-1 1 b
-1 1 NULL
-1 NULL b
-1 NULL NULL
-explain select * from t1 where a = 1 and b is null order by a desc, b desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 9 const,const 2 Using where; Using index; Using filesort
-select * from t1 where a = 1 and b is null order by a desc, b desc;
-a b c
-1 NULL NULL
-1 NULL b
-explain select * from t1 where a >= 1 and a < 3 and b >0 order by a desc,b desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 9 NULL 8 Using where; Using index
-explain select * from t1 where a = 2 and b >0 order by a desc,b desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 9 NULL 5 Using where; Using index
-explain select * from t1 where a = 2 and b is null order by a desc,b desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 9 const,const 1 Using where; Using index; Using filesort
-explain select * from t1 where a = 2 and (b is null or b > 0) order by a
-desc,b desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 9 NULL 6 Using where; Using index
-explain select * from t1 where a = 2 and b > 0 order by a desc,b desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 9 NULL 5 Using where; Using index
-explain select * from t1 where a = 2 and b < 2 order by a desc,b desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 9 NULL 2 Using where; Using index
-explain select * from t1 where a = 1 order by b desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 4 const 5 Using where; Using index
-explain select * from t1 where a = 2 and b > 0 order by a desc,b desc,b,a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 9 NULL 5 Using where; Using index
-explain select * from t1 where a = 2 and b < 2 order by a desc,a,b desc,a,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 9 NULL 2 Using where; Using index
-select * from t1 where a = 1 order by b desc;
-a b c
-1 3 b
-1 1 b
-1 1 b
-1 1 NULL
-1 NULL b
-1 NULL NULL
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 modify b int not null, modify c varchar(10) not null;
-Warnings:
-Warning 1265 Data truncated for column 'b' at row 1
-Warning 1265 Data truncated for column 'c' at row 1
-Warning 1265 Data truncated for column 'b' at row 2
-Warning 1265 Data truncated for column 'c' at row 3
-explain select * from t1 order by a, b, c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 20 NULL 11 Using index
-select * from t1 order by a, b, c;
-a b c
-1 0
-1 0 b
-1 1
-1 1 b
-1 1 b
-1 3 b
-2 1 a
-2 1 b
-2 2 a
-2 2 b
-2 3 c
-explain select * from t1 order by a desc, b desc, c desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 20 NULL 11 Using index
-select * from t1 order by a desc, b desc, c desc;
-a b c
-2 3 c
-2 2 b
-2 2 a
-2 1 b
-2 1 a
-1 3 b
-1 1 b
-1 1 b
-1 1
-1 0 b
-1 0
-explain select * from t1 where (a = 1 and b = 1 and c = 'b') or (a > 2) order by a desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 20 NULL 3 Using where; Using index
-select * from t1 where (a = 1 and b = 1 and c = 'b') or (a > 2) order by a desc;
-a b c
-1 1 b
-1 1 b
-explain select * from t1 where a < 2 and b <= 1 order by a desc, b desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 4 NULL 6 Using where; Using index
-select * from t1 where a < 2 and b <= 1 order by a desc, b desc;
-a b c
-1 1 b
-1 1 b
-1 1
-1 0 b
-1 0
-select count(*) from t1 where a < 5 and b > 0;
-count(*)
-9
-select * from t1 where a < 5 and b > 0 order by a desc,b desc;
-a b c
-2 3 c
-2 2 b
-2 2 a
-2 1 b
-2 1 a
-1 3 b
-1 1 b
-1 1 b
-1 1
-explain select * from t1 where a between 1 and 3 and b <= 1 order by a desc, b desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 8 NULL 10 Using where; Using index
-select * from t1 where a between 1 and 3 and b <= 1 order by a desc, b desc;
-a b c
-2 1 b
-2 1 a
-1 1 b
-1 1 b
-1 1
-1 0 b
-1 0
-explain select * from t1 where a between 0 and 1 order by a desc, b desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 4 NULL 5 Using where; Using index
-select * from t1 where a between 0 and 1 order by a desc, b desc;
-a b c
-1 3 b
-1 1 b
-1 1 b
-1 1
-1 0 b
-1 0
-drop table t1;
-CREATE TABLE t1 (
-gid int(10) unsigned NOT NULL auto_increment,
-cid smallint(5) unsigned NOT NULL default '0',
-PRIMARY KEY (gid),
-KEY component_id (cid)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (103853,108),(103867,108),(103962,108),(104505,108),(104619,108),(104620,108);
-ALTER TABLE t1 add skr int(10) not null;
-CREATE TABLE t2 (
-gid int(10) unsigned NOT NULL default '0',
-uid smallint(5) unsigned NOT NULL default '1',
-sid tinyint(3) unsigned NOT NULL default '1',
-PRIMARY KEY (gid),
-KEY uid (uid),
-KEY status_id (sid)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (103853,250,5),(103867,27,5),(103962,27,5),(104505,117,5),(104619,75,5),(104620,15,5);
-CREATE TABLE t3 (
-uid smallint(6) NOT NULL auto_increment,
-PRIMARY KEY (uid)
-) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (1),(15),(27),(75),(117),(250);
-ALTER TABLE t3 add skr int(10) not null;
-select t1.gid, t2.sid, t3.uid from t2, t1, t3 where t2.gid = t1.gid and t2.uid = t3.uid order by t3.uid, t1.gid;
-gid sid uid
-104620 5 15
-103867 5 27
-103962 5 27
-104619 5 75
-104505 5 117
-103853 5 250
-select t1.gid, t2.sid, t3.uid from t3, t2, t1 where t2.gid = t1.gid and t2.uid = t3.uid order by t3.uid, t1.gid;
-gid sid uid
-104620 5 15
-103867 5 27
-103962 5 27
-104619 5 75
-104505 5 117
-103853 5 250
-EXPLAIN select t1.gid, t2.sid, t3.uid from t3, t2, t1 where t2.gid = t1.gid and t2.uid = t3.uid order by t1.gid, t3.uid;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL PRIMARY,uid NULL NULL NULL 6 Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 2 test.t2.uid 1 Using where; Using index
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.gid 1 Using index
-EXPLAIN SELECT t1.gid, t3.uid from t1, t3 where t1.gid = t3.uid order by t1.gid,t3.skr;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL PRIMARY NULL NULL NULL 6 Using temporary; Using filesort
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t3.uid 1 Using where; Using index
-EXPLAIN SELECT t1.gid, t2.sid, t3.uid from t2, t1, t3 where t2.gid = t1.gid and t2.uid = t3.uid order by t3.uid, t1.gid;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL PRIMARY,uid NULL NULL NULL 6 Using temporary; Using filesort
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.gid 1 Using index
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 2 test.t2.uid 1 Using where; Using index
-EXPLAIN SELECT t1.gid, t3.uid from t1, t3 where t1.gid = t3.uid order by t3.skr,t1.gid;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL PRIMARY NULL NULL NULL 6 Using temporary; Using filesort
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t3.uid 1 Using where; Using index
-EXPLAIN SELECT t1.gid, t3.uid from t1, t3 where t1.skr = t3.uid order by t1.gid,t3.skr;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 2 test.t1.skr 1 Using index condition
-drop table t1,t2,t3;
-CREATE TABLE t1 (
-`titre` char(80) NOT NULL default '',
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`date` datetime NOT NULL default '0000-00-00 00:00:00',
-`auteur` char(35) NOT NULL default '',
-`icone` tinyint(2) unsigned NOT NULL default '0',
-`lastauteur` char(35) NOT NULL default '',
-`nbrep` smallint(6) unsigned NOT NULL default '0',
-`dest` char(35) NOT NULL default '',
-`lu` tinyint(1) unsigned NOT NULL default '0',
-`vue` mediumint(8) unsigned NOT NULL default '0',
-`ludest` tinyint(1) unsigned NOT NULL default '0',
-`ouvert` tinyint(1) unsigned NOT NULL default '1',
-PRIMARY KEY (`numeropost`),
-KEY `date` (`date`),
-KEY `dest` (`dest`,`ludest`),
-KEY `auteur` (`auteur`,`lu`),
-KEY `auteur_2` (`auteur`,`date`),
-KEY `dest_2` (`dest`,`date`)
-) CHECKSUM=1;
-CREATE TABLE t2 (
-`numeropost` mediumint(8) unsigned NOT NULL default '0',
-`pseudo` char(35) NOT NULL default '',
-PRIMARY KEY (`numeropost`,`pseudo`),
-KEY `pseudo` (`pseudo`)
-);
-INSERT INTO t1 (titre,auteur,dest) VALUES ('test','joce','bug');
-INSERT INTO t2 (numeropost,pseudo) VALUES (1,'joce'),(1,'bug');
-SELECT titre,t1.numeropost,auteur,icone,nbrep,0,date,vue,ouvert,lastauteur,dest FROM t2 LEFT JOIN t1 USING(numeropost) WHERE t2.pseudo='joce' ORDER BY date DESC LIMIT 0,30;
-titre numeropost auteur icone nbrep 0 date vue ouvert lastauteur dest
-test 1 joce 0 0 0 0000-00-00 00:00:00 0 1 bug
-SELECT titre,numeropost,auteur,icone,nbrep,0,date,vue,ouvert,lastauteur,dest FROM t2 LEFT JOIN t1 USING(numeropost) WHERE t2.pseudo='joce' ORDER BY date DESC LIMIT 0,30;
-titre numeropost auteur icone nbrep 0 date vue ouvert lastauteur dest
-test 1 joce 0 0 0 0000-00-00 00:00:00 0 1 bug
-SELECT titre,t1.numeropost,auteur,icone,nbrep,'0',date,vue,ouvert,lastauteur,dest FROM t2 LEFT JOIN t1 USING(numeropost) WHERE t2.pseudo='joce' ORDER BY date DESC LIMIT 0,30;
-titre numeropost auteur icone nbrep 0 date vue ouvert lastauteur dest
-test 1 joce 0 0 0 0000-00-00 00:00:00 0 1 bug
-SELECT titre,numeropost,auteur,icone,nbrep,'0',date,vue,ouvert,lastauteur,dest FROM t2 LEFT JOIN t1 USING(numeropost) WHERE t2.pseudo='joce' ORDER BY date DESC LIMIT 0,30;
-titre numeropost auteur icone nbrep 0 date vue ouvert lastauteur dest
-test 1 joce 0 0 0 0000-00-00 00:00:00 0 1 bug
-drop table t1,t2;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (1, 2);
-INSERT INTO t1 VALUES (3, 4);
-INSERT INTO t1 VALUES (5, NULL);
-SELECT * FROM t1 ORDER BY b;
-a b
-5 NULL
-1 2
-3 4
-SELECT * FROM t1 ORDER BY b DESC;
-a b
-3 4
-1 2
-5 NULL
-SELECT * FROM t1 ORDER BY (a + b);
-a b
-5 NULL
-1 2
-3 4
-SELECT * FROM t1 ORDER BY (a + b) DESC;
-a b
-3 4
-1 2
-5 NULL
-DROP TABLE t1;
-create table t1(id int not null auto_increment primary key, t char(12));
-explain select id,t from t1 order by id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1000 Using filesort
-explain select id,t from t1 force index (primary) order by id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 1000
-drop table t1;
-CREATE TABLE t1 (
-FieldKey varchar(36) NOT NULL default '',
-LongVal bigint(20) default NULL,
-StringVal mediumtext,
-KEY FieldKey (FieldKey),
-KEY LongField (FieldKey,LongVal),
-KEY StringField (FieldKey,StringVal(32))
-);
-INSERT INTO t1 VALUES ('0',3,'0'),('0',2,'1'),('0',1,'2'),('1',2,'1'),('1',1,'3'), ('1',0,'2'),('2',3,'0'),('2',2,'1'),('2',1,'2'),('2',3,'0'),('2',2,'1'),('2',1,'2'),('3',2,'1'),('3',1,'2'),('3','3','3');
-EXPLAIN SELECT * FROM t1 WHERE FieldKey = '1' ORDER BY LongVal;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref FieldKey,LongField,StringField LongField 38 const 3 Using where
-SELECT * FROM t1 WHERE FieldKey = '1' ORDER BY LongVal;
-FieldKey LongVal StringVal
-1 0 2
-1 1 3
-1 2 1
-DS-MRR: use two IGNORE INDEX queries, otherwise we get cost races, because
-DS-MRR: records_in_range/read_time return the same numbers for all three indexes
-EXPLAIN SELECT * FROM t1 IGNORE INDEX (LongField, StringField) WHERE FieldKey > '2' ORDER BY LongVal;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range FieldKey FieldKey 38 NULL 4 Using index condition; Using filesort
-EXPLAIN SELECT * FROM t1 IGNORE INDEX (FieldKey, LongField) WHERE FieldKey > '2' ORDER BY LongVal;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range StringField StringField 38 NULL 4 Using where; Using filesort
-SELECT * FROM t1 WHERE FieldKey > '2' ORDER BY LongVal;
-FieldKey LongVal StringVal
-3 1 2
-3 2 1
-3 3 3
-EXPLAIN SELECT * FROM t1 WHERE FieldKey > '2' ORDER BY FieldKey, LongVal;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range FieldKey,LongField,StringField LongField 38 NULL 4 Using where
-SELECT * FROM t1 WHERE FieldKey > '2' ORDER BY FieldKey, LongVal;
-FieldKey LongVal StringVal
-3 1 2
-3 2 1
-3 3 3
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-SET @id=0;
-UPDATE t1 SET a=0 ORDER BY (a=@id), b;
-DROP TABLE t1;
-CREATE TABLE t1 ( id smallint(6) unsigned NOT NULL default '0', menu tinyint(4) NOT NULL default '0', KEY id (id), KEY menu (menu)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (11384, 2),(11392, 2);
-SELECT id FROM t1 WHERE id <11984 AND menu =2 ORDER BY id DESC LIMIT 1 ;
-id
-11392
-drop table t1;
-create table t1(a int, b int, index(b));
-insert into t1 values (2, 1), (1, 1), (4, NULL), (3, NULL), (6, 2), (5, 2);
-insert into t1 values (12, 11), (11, 11), (14, 3), (13, 5), (16, 12), (15, 12);
-explain select * from t1 where b=1 or b is null order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null b b 5 const 4 Using index condition; Using where; Using filesort
-select * from t1 where b=1 or b is null order by a;
-a b
-1 1
-2 1
-3 NULL
-4 NULL
-explain select * from t1 where b=2 or b is null order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null b b 5 const 3 Using index condition; Using where; Using filesort
-select * from t1 where b=2 or b is null order by a;
-a b
-3 NULL
-4 NULL
-5 2
-6 2
-drop table t1;
-create table t1 (a int not null auto_increment, b int not null, c int not null, d int not null,
-key(a,b,d), key(c,b,a));
-create table t2 like t1;
-insert into t1 values (NULL, 1, 2, 0), (NULL, 2, 1, 1), (NULL, 3, 4, 2), (NULL, 4, 3, 3);
-insert into t2 select null, b, c, d from t1;
-insert into t1 select null, b, c, d from t2;
-insert into t2 select null, b, c, d from t1;
-insert into t1 select null, b, c, d from t2;
-insert into t2 select null, b, c, d from t1;
-insert into t1 select null, b, c, d from t2;
-insert into t2 select null, b, c, d from t1;
-insert into t1 select null, b, c, d from t2;
-insert into t2 select null, b, c, d from t1;
-insert into t1 select null, b, c, d from t2;
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-set @row=10;
-insert into t1 select 1, b, c + (@row:=@row - 1) * 10, d - @row from t2 limit 10;
-select * from t1 where a=1 and b in (1) order by c, b, a;
-a b c d
-1 1 2 0
-1 1 12 -1
-1 1 52 -5
-1 1 92 -9
-select * from t1 where a=1 and b in (1);
-a b c d
-1 1 92 -9
-1 1 52 -5
-1 1 12 -1
-1 1 2 0
-drop table t1, t2;
-create table t1 (col1 int, col int);
-create table t2 (col2 int, col int);
-insert into t1 values (1,1),(2,2),(3,3);
-insert into t2 values (1,3),(2,2),(3,1);
-select t1.* , t2.col as t2_col from t1 left join t2 on (t1.col1=t2.col2)
-order by col;
-col1 col t2_col
-1 1 3
-2 2 2
-3 3 1
-select col1 as col, col from t1 order by col;
-ERROR 23000: Column 'col' in order clause is ambiguous
-select t1.col as c1, t2.col as c2 from t1, t2 where t1.col1=t2.col2
-order by col;
-ERROR 23000: Column 'col' in order clause is ambiguous
-select t1.col as c1, t2.col as c2 from t1, t2 where t1.col1=t2.col2
-order by col;
-ERROR 23000: Column 'col' in order clause is ambiguous
-select col1 from t1, t2 where t1.col1=t2.col2 order by col;
-ERROR 23000: Column 'col' in order clause is ambiguous
-select t1.col as t1_col, t2.col2 from t1, t2 where t1.col1=t2.col2
-order by col;
-ERROR 23000: Column 'col' in order clause is ambiguous
-select t1.col as t1_col, t2.col from t1, t2 where t1.col1=t2.col2
-order by col;
-t1_col col
-3 1
-2 2
-1 3
-select col2 as c, col as c from t2 order by col;
-c c
-3 1
-2 2
-1 3
-select col2 as col, col as col2 from t2 order by col;
-col col2
-1 3
-2 2
-3 1
-select t2.col2, t2.col, t2.col from t2 order by col;
-col2 col col
-3 1 1
-2 2 2
-1 3 3
-select t2.col2 as col from t2 order by t2.col;
-col
-3
-2
-1
-select t2.col2 as col, t2.col from t2 order by t2.col;
-col col
-3 1
-2 2
-1 3
-select t2.col2, t2.col, t2.col from t2 order by t2.col;
-col2 col col
-3 1 1
-2 2 2
-1 3 3
-drop table t1, t2;
-create table t1 (a char(25));
-insert into t1 set a = repeat('x', 20);
-insert into t1 set a = concat(repeat('x', 19), 'z');
-insert into t1 set a = concat(repeat('x', 19), 'ab');
-insert into t1 set a = concat(repeat('x', 19), 'aa');
-set max_sort_length=20;
-select a from t1 order by a;
-a
-xxxxxxxxxxxxxxxxxxxab
-xxxxxxxxxxxxxxxxxxxaa
-xxxxxxxxxxxxxxxxxxxx
-xxxxxxxxxxxxxxxxxxxz
-drop table t1;
-create table t1 (
-`sid` decimal(8,0) default null,
-`wnid` varchar(11) not null default '',
-key `wnid14` (`wnid`(4)),
-key `wnid` (`wnid`)
-) engine=myisam default charset=latin1;
-insert into t1 (`sid`, `wnid`) values
-('10100','01019000000'),('37986','01019000000'),('37987','01019010000'),
-('39560','01019090000'),('37989','01019000000'),('37990','01019011000'),
-('37991','01019011000'),('37992','01019019000'),('37993','01019030000'),
-('37994','01019090000'),('475','02070000000'),('25253','02071100000'),
-('25255','02071100000'),('25256','02071110000'),('25258','02071130000'),
-('25259','02071190000'),('25260','02071200000'),('25261','02071210000'),
-('25262','02071290000'),('25263','02071300000'),('25264','02071310000'),
-('25265','02071310000'),('25266','02071320000'),('25267','02071320000'),
-('25269','02071330000'),('25270','02071340000'),('25271','02071350000'),
-('25272','02071360000'),('25273','02071370000'),('25281','02071391000'),
-('25282','02071391000'),('25283','02071399000'),('25284','02071400000'),
-('25285','02071410000'),('25286','02071410000'),('25287','02071420000'),
-('25288','02071420000'),('25291','02071430000'),('25290','02071440000'),
-('25292','02071450000'),('25293','02071460000'),('25294','02071470000'),
-('25295','02071491000'),('25296','02071491000'),('25297','02071499000');
-explain select * from t1 where wnid like '0101%' order by wnid;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range wnid14,wnid wnid 13 NULL 10 Using where
-select * from t1 where wnid like '0101%' order by wnid;
-sid wnid
-10100 01019000000
-37986 01019000000
-37989 01019000000
-37987 01019010000
-37990 01019011000
-37991 01019011000
-37992 01019019000
-37993 01019030000
-39560 01019090000
-37994 01019090000
-drop table t1;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (2), (1), (1), (2), (1);
-SELECT a FROM t1 ORDER BY a;
-a
-1
-1
-1
-2
-2
-(SELECT a FROM t1) ORDER BY a;
-a
-1
-1
-1
-2
-2
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (1,30), (2,20), (1,10), (2,30), (1,20), (2,10);
-(SELECT b,a FROM t1 ORDER BY a,b) ORDER BY b,a;
-b a
-10 1
-10 2
-20 1
-20 2
-30 1
-30 2
-(SELECT b FROM t1 ORDER BY b DESC) ORDER BY b ASC;
-b
-10
-10
-20
-20
-30
-30
-(SELECT b,a FROM t1 ORDER BY b,a) ORDER BY a,b;
-b a
-10 1
-20 1
-30 1
-10 2
-20 2
-30 2
-(SELECT b,a FROM t1 ORDER by b,a LIMIT 3) ORDER by a,b;
-b a
-10 1
-20 1
-10 2
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-SELECT a + 1 AS num FROM t1 ORDER BY 30 - num;
-num
-3
-2
-SELECT CONCAT('test', a) AS str FROM t1 ORDER BY UPPER(str);
-str
-test1
-test2
-SELECT a + 1 AS num FROM t1 GROUP BY 30 - num;
-num
-3
-2
-SELECT a + 1 AS num FROM t1 HAVING 30 - num;
-num
-2
-3
-SELECT a + 1 AS num, num + 1 FROM t1;
-ERROR 42S22: Unknown column 'num' in 'field list'
-SELECT a + 1 AS num, (select num + 2 FROM t1 LIMIT 1) FROM t1;
-num (select num + 2 FROM t1 LIMIT 1)
-2 4
-3 5
-SELECT a.a + 1 AS num FROM t1 a JOIN t1 b ON num = b.a;
-ERROR 42S22: Unknown column 'num' in 'on clause'
-DROP TABLE t1;
-CREATE TABLE bug25126 (
-val int unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY
-);
-UPDATE bug25126 SET MissingCol = MissingCol;
-ERROR 42S22: Unknown column 'MissingCol' in 'field list'
-UPDATE bug25126 SET val = val ORDER BY MissingCol;
-ERROR 42S22: Unknown column 'MissingCol' in 'order clause'
-UPDATE bug25126 SET val = val ORDER BY val;
-UPDATE bug25126 SET val = 1 ORDER BY val;
-UPDATE bug25126 SET val = 1 ORDER BY MissingCol;
-ERROR 42S22: Unknown column 'MissingCol' in 'order clause'
-UPDATE bug25126 SET val = 1 ORDER BY val, MissingCol;
-ERROR 42S22: Unknown column 'MissingCol' in 'order clause'
-UPDATE bug25126 SET val = MissingCol ORDER BY MissingCol;
-ERROR 42S22: Unknown column 'MissingCol' in 'order clause'
-UPDATE bug25126 SET MissingCol = 1 ORDER BY val, MissingCol;
-ERROR 42S22: Unknown column 'MissingCol' in 'order clause'
-UPDATE bug25126 SET MissingCol = 1 ORDER BY MissingCol;
-ERROR 42S22: Unknown column 'MissingCol' in 'order clause'
-UPDATE bug25126 SET MissingCol = val ORDER BY MissingCol;
-ERROR 42S22: Unknown column 'MissingCol' in 'order clause'
-UPDATE bug25126 SET MissingCol = MissingCol ORDER BY MissingCol;
-ERROR 42S22: Unknown column 'MissingCol' in 'order clause'
-DROP TABLE bug25126;
-CREATE TABLE t1 (a int);
-SELECT p.a AS val, q.a AS val1 FROM t1 p, t1 q ORDER BY val > 1;
-val val1
-SELECT p.a AS val, q.a AS val FROM t1 p, t1 q ORDER BY val;
-ERROR 23000: Column 'val' in order clause is ambiguous
-SELECT p.a AS val, q.a AS val FROM t1 p, t1 q ORDER BY val > 1;
-ERROR 23000: Column 'val' in order clause is ambiguous
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (3), (2), (4), (1);
-SELECT a, IF(a IN (2,3), a, a+10) FROM t1
-ORDER BY IF(a IN (2,3), a, a+10);
-a IF(a IN (2,3), a, a+10)
-2 2
-3 3
-1 11
-4 14
-SELECT a, IF(a NOT IN (2,3), a, a+10) FROM t1
-ORDER BY IF(a NOT IN (2,3), a, a+10);
-a IF(a NOT IN (2,3), a, a+10)
-1 1
-4 4
-2 12
-3 13
-SELECT a, IF(a IN (2,3), a, a+10) FROM t1
-ORDER BY IF(a NOT IN (2,3), a, a+10);
-a IF(a IN (2,3), a, a+10)
-1 11
-4 14
-2 2
-3 3
-SELECT a, IF(a BETWEEN 2 AND 3, a, a+10) FROM t1
-ORDER BY IF(a BETWEEN 2 AND 3, a, a+10);
-a IF(a BETWEEN 2 AND 3, a, a+10)
-2 2
-3 3
-1 11
-4 14
-SELECT a, IF(a NOT BETWEEN 2 AND 3, a, a+10) FROM t1
-ORDER BY IF(a NOT BETWEEN 2 AND 3, a, a+10);
-a IF(a NOT BETWEEN 2 AND 3, a, a+10)
-1 1
-4 4
-2 12
-3 13
-SELECT a, IF(a BETWEEN 2 AND 3, a, a+10) FROM t1
-ORDER BY IF(a NOT BETWEEN 2 AND 3, a, a+10);
-a IF(a BETWEEN 2 AND 3, a, a+10)
-1 11
-4 14
-2 2
-3 3
-SELECT IF(a IN (1,2), a, '') as x1, IF(a NOT IN (1,2), a, '') as x2
-FROM t1 GROUP BY x1, x2;
-x1 x2
- 3
- 4
-1
-2
-SELECT IF(a IN (1,2), a, '') as x1, IF(a NOT IN (1,2), a, '') as x2
-FROM t1 GROUP BY x1, IF(a NOT IN (1,2), a, '');
-x1 x2
- 3
- 4
-1
-2
-SELECT a, a IN (1,2) FROM t1 ORDER BY a IN (1,2);
-a a IN (1,2)
-3 0
-4 0
-2 1
-1 1
-SELECT a FROM t1 ORDER BY a IN (1,2);
-a
-3
-4
-2
-1
-SELECT a+10 FROM t1 ORDER BY a IN (1,2);
-a+10
-13
-14
-12
-11
-SELECT a, IF(a IN (1,2), a, a+10) FROM t1
-ORDER BY IF(a IN (3,4), a, a+10);
-a IF(a IN (1,2), a, a+10)
-3 13
-4 14
-1 1
-2 2
-DROP TABLE t1;
-create table t1 (a int not null, b int not null, c int not null);
-insert t1 values (1,1,1),(1,1,2),(1,2,1);
-select a, b from t1 group by a, b order by sum(c);
-a b
-1 2
-1 1
-drop table t1;
-CREATE TABLE t1 (a int, b int, PRIMARY KEY (a));
-INSERT INTO t1 VALUES (1,1), (2,2), (3,3);
-explain SELECT t1.b as a, t2.b as c FROM
-t1 LEFT JOIN t1 t2 ON (t1.a = t2.a AND t2.a = 2)
-ORDER BY c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 Using where
-SELECT t2.b as c FROM
-t1 LEFT JOIN t1 t2 ON (t1.a = t2.a AND t2.a = 2)
-ORDER BY c;
-c
-NULL
-NULL
-2
-explain SELECT t1.b as a, t2.b as c FROM
-t1 JOIN t1 t2 ON (t1.a = t2.a AND t2.a = 2)
-ORDER BY c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 SELECT * from t1;
-CREATE TABLE t3 LIKE t1;
-INSERT INTO t3 SELECT * from t1;
-CREATE TABLE t4 LIKE t1;
-INSERT INTO t4 SELECT * from t1;
-INSERT INTO t1 values (0,0),(4,4);
-SELECT t2.b FROM t1 LEFT JOIN (t2, t3 LEFT JOIN t4 ON t3.a=t4.a)
-ON (t1.a=t2.a AND t1.b=t3.b) order by t2.b;
-b
-NULL
-NULL
-1
-2
-3
-DROP TABLE t1,t2,t3,t4;
-create table t1 (a int, b int, c int);
-insert into t1 values (1,2,3), (9,8,3), (19,4,3), (1,4,9);
-select a,(sum(b)/sum(c)) as ratio from t1 group by a order by sum(b)/sum(c) asc;
-a ratio
-1 0.5000
-19 1.3333
-9 2.6667
-drop table t1;
-CREATE TABLE t1 (a INT UNSIGNED NOT NULL, b TIME);
-INSERT INTO t1 (a) VALUES (100000), (0), (100), (1000000),(10000), (1000), (10);
-UPDATE t1 SET b = SEC_TO_TIME(a);
-SELECT a, b FROM t1 ORDER BY b DESC;
-a b
-1000000 277:46:40
-100000 27:46:40
-10000 02:46:40
-1000 00:16:40
-100 00:01:40
-10 00:00:10
-0 00:00:00
-SELECT a, b FROM t1 ORDER BY SEC_TO_TIME(a) DESC;
-a b
-1000000 277:46:40
-100000 27:46:40
-10000 02:46:40
-1000 00:16:40
-100 00:01:40
-10 00:00:10
-0 00:00:00
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY (a), UNIQUE KEY b (b));
-INSERT INTO t1 VALUES (1,1),(2,2);
-CREATE TABLE t2 (a INT, b INT, KEY a (a,b));
-INSERT INTO t2 VALUES (1,1),(1,2),(2,1),(2,2);
-EXPLAIN SELECT 1 FROM t1,t2 WHERE t1.b=2 AND t1.a=t2.a ORDER BY t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY,b b 5 const 1
-1 SIMPLE t2 ref a a 5 const 2 Using where; Using index
-DROP TABLE t1,t2;
-CREATE TABLE t1(
-id int auto_increment PRIMARY KEY, c2 int, c3 int, INDEX k2(c2), INDEX k3(c3));
-INSERT INTO t1 (c2,c3) VALUES
-(31,34),(35,38),(34,31),(32,35),(31,39),
-(11,14),(15,18),(14,11),(12,15),(11,19);
-INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
-INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
-INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
-INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
-INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
-INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
-INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
-INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
-INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
-INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
-INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
-INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
-UPDATE t1 SET c2=20 WHERE id%100 = 0;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-40960
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 SELECT * FROM t1 ORDER BY id;
-EXPLAIN SELECT id,c3 FROM t2 WHERE c2=11 ORDER BY c3 LIMIT 20;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index k2 k3 5 NULL 111 Using where
-EXPLAIN SELECT id,c3 FROM t2 WHERE c2=11 ORDER BY c3 LIMIT 4000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref k2 k2 5 const 7341 Using where; Using filesort
-EXPLAIN SELECT id,c3 FROM t2 WHERE c2 BETWEEN 10 AND 12 ORDER BY c3 LIMIT 20;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index k2 k3 5 NULL 73 Using where
-EXPLAIN SELECT id,c3 FROM t2 WHERE c2 BETWEEN 20 AND 30 ORDER BY c3 LIMIT 4000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range k2 k2 5 NULL 386 Using index condition; Using filesort
-SELECT id,c3 FROM t2 WHERE c2=11 ORDER BY c3 LIMIT 20;
-id c3
-6 14
-16 14
-26 14
-36 14
-46 14
-56 14
-66 14
-76 14
-86 14
-96 14
-106 14
-116 14
-126 14
-136 14
-146 14
-156 14
-166 14
-176 14
-186 14
-196 14
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-a INT,
-b INT,
-PRIMARY KEY (a),
-KEY ab(a, b)
-);
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3),(4,4);
-INSERT INTO t1 SELECT a + 4, b + 4 FROM t1;
-INSERT INTO t1 SELECT a + 8, b + 8 FROM t1;
-INSERT INTO t1 SELECT a +16, b +16 FROM t1;
-INSERT INTO t1 SELECT a +32, b +32 FROM t1;
-INSERT INTO t1 SELECT a +64, b +64 FROM t1;
-EXPLAIN SELECT a FROM t1 IGNORE INDEX FOR GROUP BY (a, ab) GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 128 Using index
-SELECT a FROM t1 IGNORE INDEX FOR GROUP BY (a, ab) GROUP BY a;
-a
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126
-127
-128
-SELECT @tmp_tables_after = @tmp_tables_before ;
-@tmp_tables_after = @tmp_tables_before
-1
-EXPLAIN SELECT a FROM t1 IGNORE INDEX FOR ORDER BY (a, ab) ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 128 Using index
-SELECT a FROM t1 IGNORE INDEX FOR ORDER BY (a, ab) ORDER BY a;
-a
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126
-127
-128
-SELECT @tmp_tables_after = @tmp_tables_before;
-@tmp_tables_after = @tmp_tables_before
-1
-DROP TABLE t1;
-#
-# Bug#31590: Wrong error message on sort buffer being too small.
-#
-create table t1(a int, b tinytext);
-insert into t1 values (1,2),(3,2);
-set session sort_buffer_size= 1000;
-Warnings:
-Warning 1292 Truncated incorrect sort_buffer_size value: '1000'
-set session max_sort_length= 2180;
-CALL mtr.add_suppression("Out of sort memory");
-select * from t1 order by b;
-ERROR HY001: Out of sort memory, consider increasing server sort buffer size
-drop table t1;
-set session sort_buffer_size= 30000;
-#
-# Bug #39844: Query Crash Mysql Server 5.0.67
-#
-CREATE TABLE t1 (a INT PRIMARY KEY);
-CREATE TABLE t2 (a INT PRIMARY KEY, b INT);
-CREATE TABLE t3 (c INT);
-INSERT INTO t1 (a) VALUES (1), (2);
-INSERT INTO t2 (a,b) VALUES (1,2), (2,3);
-INSERT INTO t3 (c) VALUES (1), (2);
-SELECT
-(SELECT t1.a FROM t1, t2 WHERE t1.a = t2.b AND t2.a = t3.c ORDER BY t1.a)
-FROM t3;
-(SELECT t1.a FROM t1, t2 WHERE t1.a = t2.b AND t2.a = t3.c ORDER BY t1.a)
-2
-NULL
-DROP TABLE t1, t2, t3;
-#
-# Bug #42760: Select doesn't return desired results when we have null
-# values
-#
-CREATE TABLE t1 (
-a INT,
-c INT,
-UNIQUE KEY a_c (a,c),
-KEY (a));
-INSERT INTO t1 VALUES (1, 10), (2, NULL);
-# Must use ref-or-null on the a_c index
-EXPLAIN
-SELECT 1 AS col FROM t1 WHERE a=2 AND (c=10 OR c IS NULL) ORDER BY c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null a_c,a a_c 10 const,const 2 Using where; Using index; Using filesort
-# Must return 1 row
-SELECT 1 AS col FROM t1 WHERE a=2 AND (c=10 OR c IS NULL) ORDER BY c;
-col
-1
-# Must use ref-or-null on the a_c index
-EXPLAIN
-SELECT 1 AS col FROM t1 WHERE a=2 AND (c=10 OR c IS NULL) ORDER BY c DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-x x x ref_or_null a_c,a x x x x x
-# Must return 1 row
-SELECT 1 AS col FROM t1 WHERE a=2 AND (c=10 OR c IS NULL) ORDER BY c DESC;
-col
-1
-DROP TABLE t1;
-End of 5.0 tests
-CREATE TABLE t2 (a varchar(32), b int(11), c float, d double,
-UNIQUE KEY a (a,b,c), KEY b (b), KEY c (c));
-CREATE TABLE t1 (a varchar(32), b char(3), UNIQUE KEY a (a,b), KEY b (b));
-CREATE TABLE t3 (a varchar(32), b char(3), UNIQUE KEY a (a,b));
-INSERT INTO t3 SELECT * FROM t1;
-EXPLAIN
-SELECT d FROM t1, t2
-WHERE t2.b=14 AND t2.a=t1.a AND 5.1<t2.c AND t1.b='DE'
-ORDER BY t2.c LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a,b b 4 const 4 Using index condition; Using where; Using temporary; Using filesort
-1 SIMPLE t2 ref a,b,c a 40 test.t1.a,const 11 Using index condition
-SELECT d FROM t1, t2
-WHERE t2.b=14 AND t2.a=t1.a AND 5.1<t2.c AND t1.b='DE'
-ORDER BY t2.c LIMIT 1;
-d
-52.5
-EXPLAIN
-SELECT d FROM t3 AS t1, t2 AS t2
-WHERE t2.b=14 AND t2.a=t1.a AND 5.1<t2.c AND t1.b='DE'
-ORDER BY t2.c LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a,b,c c 5 NULL 420 Using where
-1 SIMPLE t1 ref a a 39 test.t2.a,const 10 Using where; Using index
-SELECT d FROM t3 AS t1, t2 AS t2
-WHERE t2.b=14 AND t2.a=t1.a AND 5.1<t2.c AND t1.b='DE'
-ORDER BY t2.c LIMIT 1;
-d
-52.5
-SELECT t1.*,t2.* FROM t1, t2
-WHERE t2.b=14 AND t2.a=t1.a AND 5.1<t2.c AND t1.b='DE'
-ORDER BY t2.c LIMIT 5;
-a b a b c d
-ppfcz1 DE ppfcz1 14 6 52.5
-ppfcz1 DE ppfcz1 14 7 55.5
-ppfcz1 DE ppfcz1 14 8 57.5
-ppfcz1 DE ppfcz1 14 9 59.5
-ppfcz1 DE ppfcz1 14 10 61.5
-SELECT t1.*, t2.* FROM t3 AS t1, t2 AS t2
-WHERE t2.b=14 AND t2.a=t1.a AND 5.1<t2.c AND t1.b='DE'
-ORDER BY t2.c LIMIT 5;
-a b a b c d
-ppfcz1 DE ppfcz1 14 6 52.5
-ppfcz1 DE ppfcz1 14 7 55.5
-ppfcz1 DE ppfcz1 14 8 57.5
-ppfcz1 DE ppfcz1 14 9 59.5
-ppfcz1 DE ppfcz1 14 10 61.5
-DROP TABLE t1,t2,t3;
-#
-# WL#1393 - Optimizing filesort with small limit
-#
-CREATE TABLE t1(f0 int auto_increment primary key, f1 int, f2 varchar(200));
-INSERT INTO t1(f1, f2) VALUES
-(0,"0"),(1,"1"),(2,"2"),(3,"3"),(4,"4"),(5,"5"),
-(6,"6"),(7,"7"),(8,"8"),(9,"9"),(10,"10"),
-(11,"11"),(12,"12"),(13,"13"),(14,"14"),(15,"15"),
-(16,"16"),(17,"17"),(18,"18"),(19,"19"),(20,"20"),
-(21,"21"),(22,"22"),(23,"23"),(24,"24"),(25,"25"),
-(26,"26"),(27,"27"),(28,"28"),(29,"29"),(30,"30"),
-(31,"31"),(32,"32"),(33,"33"),(34,"34"),(35,"35"),
-(36,"36"),(37,"37"),(38,"38"),(39,"39"),(40,"40"),
-(41,"41"),(42,"42"),(43,"43"),(44,"44"),(45,"45"),
-(46,"46"),(47,"47"),(48,"48"),(49,"49"),(50,"50"),
-(51,"51"),(52,"52"),(53,"53"),(54,"54"),(55,"55"),
-(56,"56"),(57,"57"),(58,"58"),(59,"59"),(60,"60"),
-(61,"61"),(62,"62"),(63,"63"),(64,"64"),(65,"65"),
-(66,"66"),(67,"67"),(68,"68"),(69,"69"),(70,"70"),
-(71,"71"),(72,"72"),(73,"73"),(74,"74"),(75,"75"),
-(76,"76"),(77,"77"),(78,"78"),(79,"79"),(80,"80"),
-(81,"81"),(82,"82"),(83,"83"),(84,"84"),(85,"85"),
-(86,"86"),(87,"87"),(88,"88"),(89,"89"),(90,"90"),
-(91,"91"),(92,"92"),(93,"93"),(94,"94"),(95,"95"),
-(96,"96"),(97,"97"),(98,"98"),(99,"99");
-SELECT * FROM t1 ORDER BY f1 ASC, f0 LIMIT 100;
-f0 f1 f2
-1 0 0
-2 1 1
-3 2 2
-4 3 3
-5 4 4
-6 5 5
-7 6 6
-8 7 7
-9 8 8
-10 9 9
-11 10 10
-12 11 11
-13 12 12
-14 13 13
-15 14 14
-16 15 15
-17 16 16
-18 17 17
-19 18 18
-20 19 19
-21 20 20
-22 21 21
-23 22 22
-24 23 23
-25 24 24
-26 25 25
-27 26 26
-28 27 27
-29 28 28
-30 29 29
-31 30 30
-32 31 31
-33 32 32
-34 33 33
-35 34 34
-36 35 35
-37 36 36
-38 37 37
-39 38 38
-40 39 39
-41 40 40
-42 41 41
-43 42 42
-44 43 43
-45 44 44
-46 45 45
-47 46 46
-48 47 47
-49 48 48
-50 49 49
-51 50 50
-52 51 51
-53 52 52
-54 53 53
-55 54 54
-56 55 55
-57 56 56
-58 57 57
-59 58 58
-60 59 59
-61 60 60
-62 61 61
-63 62 62
-64 63 63
-65 64 64
-66 65 65
-67 66 66
-68 67 67
-69 68 68
-70 69 69
-71 70 70
-72 71 71
-73 72 72
-74 73 73
-75 74 74
-76 75 75
-77 76 76
-78 77 77
-79 78 78
-80 79 79
-81 80 80
-82 81 81
-83 82 82
-84 83 83
-85 84 84
-86 85 85
-87 86 86
-88 87 87
-89 88 88
-90 89 89
-91 90 90
-92 91 91
-93 92 92
-94 93 93
-95 94 94
-96 95 95
-97 96 96
-98 97 97
-99 98 98
-100 99 99
-SELECT * FROM t1 ORDER BY f1 ASC, f0 LIMIT 30;
-f0 f1 f2
-1 0 0
-2 1 1
-3 2 2
-4 3 3
-5 4 4
-6 5 5
-7 6 6
-8 7 7
-9 8 8
-10 9 9
-11 10 10
-12 11 11
-13 12 12
-14 13 13
-15 14 14
-16 15 15
-17 16 16
-18 17 17
-19 18 18
-20 19 19
-21 20 20
-22 21 21
-23 22 22
-24 23 23
-25 24 24
-26 25 25
-27 26 26
-28 27 27
-29 28 28
-30 29 29
-SELECT * FROM t1 ORDER BY f1 ASC, f0 LIMIT 0;
-f0 f1 f2
-SELECT * FROM t1 ORDER BY f2 DESC, f0 LIMIT 30;
-f0 f1 f2
-100 99 99
-99 98 98
-98 97 97
-97 96 96
-96 95 95
-95 94 94
-94 93 93
-93 92 92
-92 91 91
-91 90 90
-10 9 9
-90 89 89
-89 88 88
-88 87 87
-87 86 86
-86 85 85
-85 84 84
-84 83 83
-83 82 82
-82 81 81
-81 80 80
-9 8 8
-80 79 79
-79 78 78
-78 77 77
-77 76 76
-76 75 75
-75 74 74
-74 73 73
-73 72 72
-SELECT * FROM t1 ORDER BY f2 DESC, f0 LIMIT 0;
-f0 f1 f2
-SELECT * FROM t1 WHERE f1>10 ORDER BY f2, f0 LIMIT 20;
-f0 f1 f2
-12 11 11
-13 12 12
-14 13 13
-15 14 14
-16 15 15
-17 16 16
-18 17 17
-19 18 18
-20 19 19
-21 20 20
-22 21 21
-23 22 22
-24 23 23
-25 24 24
-26 25 25
-27 26 26
-28 27 27
-29 28 28
-30 29 29
-31 30 30
-SELECT * FROM t1 WHERE f1>10 ORDER BY f2, f0 LIMIT 0;
-f0 f1 f2
-SELECT * FROM t1 WHERE f1>10 ORDER BY f2, f0 LIMIT 10 OFFSET 10;
-f0 f1 f2
-22 21 21
-23 22 22
-24 23 23
-25 24 24
-26 25 25
-27 26 26
-28 27 27
-29 28 28
-30 29 29
-31 30 30
-SELECT * FROM t1 WHERE f1>10 ORDER BY f2, f0 LIMIT 0 OFFSET 10;
-f0 f1 f2
-set sort_buffer_size= 32768;
-CREATE TEMPORARY TABLE tmp (f1 int, f2 varchar(20));
-INSERT INTO tmp SELECT f1, f2 FROM t1;
-INSERT INTO t1(f1, f2) SELECT * FROM tmp;
-INSERT INTO tmp SELECT f1, f2 FROM t1;
-INSERT INTO t1(f1, f2) SELECT * FROM tmp;
-SELECT * FROM t1 ORDER BY f1 ASC, f0 LIMIT 30;
-f0 f1 f2
-1 0 0
-101 0 0
-201 0 0
-301 0 0
-401 0 0
-2 1 1
-102 1 1
-202 1 1
-302 1 1
-402 1 1
-3 2 2
-103 2 2
-203 2 2
-303 2 2
-403 2 2
-4 3 3
-104 3 3
-204 3 3
-304 3 3
-404 3 3
-5 4 4
-105 4 4
-205 4 4
-305 4 4
-405 4 4
-6 5 5
-106 5 5
-206 5 5
-306 5 5
-406 5 5
-SELECT * FROM t1 ORDER BY f1 ASC, f0 LIMIT 0;
-f0 f1 f2
-SELECT * FROM t1 ORDER BY f2 DESC, f0 LIMIT 30;
-f0 f1 f2
-100 99 99
-200 99 99
-300 99 99
-400 99 99
-500 99 99
-99 98 98
-199 98 98
-299 98 98
-399 98 98
-499 98 98
-98 97 97
-198 97 97
-298 97 97
-398 97 97
-498 97 97
-97 96 96
-197 96 96
-297 96 96
-397 96 96
-497 96 96
-96 95 95
-196 95 95
-296 95 95
-396 95 95
-496 95 95
-95 94 94
-195 94 94
-295 94 94
-395 94 94
-495 94 94
-SELECT * FROM t1 ORDER BY f2 DESC, f0 LIMIT 0;
-f0 f1 f2
-SELECT * FROM t1 WHERE f1>10 ORDER BY f2, f0 LIMIT 20;
-f0 f1 f2
-12 11 11
-112 11 11
-212 11 11
-312 11 11
-412 11 11
-13 12 12
-113 12 12
-213 12 12
-313 12 12
-413 12 12
-14 13 13
-114 13 13
-214 13 13
-314 13 13
-414 13 13
-15 14 14
-115 14 14
-215 14 14
-315 14 14
-415 14 14
-SELECT * FROM t1 WHERE f1>10 ORDER BY f2, f0 LIMIT 0;
-f0 f1 f2
-SELECT * FROM t1 WHERE f1>10 ORDER BY f2, f0 LIMIT 10 OFFSET 10;
-f0 f1 f2
-14 13 13
-114 13 13
-214 13 13
-314 13 13
-414 13 13
-15 14 14
-115 14 14
-215 14 14
-315 14 14
-415 14 14
-SELECT * FROM t1 WHERE f1>10 ORDER BY f2, f0 LIMIT 0 OFFSET 10;
-f0 f1 f2
-set sort_buffer_size= 32768;
-SELECT SQL_CALC_FOUND_ROWS * FROM t1
-ORDER BY f1, f0 LIMIT 30;
-f0 f1 f2
-1 0 0
-101 0 0
-201 0 0
-301 0 0
-401 0 0
-2 1 1
-102 1 1
-202 1 1
-302 1 1
-402 1 1
-3 2 2
-103 2 2
-203 2 2
-303 2 2
-403 2 2
-4 3 3
-104 3 3
-204 3 3
-304 3 3
-404 3 3
-5 4 4
-105 4 4
-205 4 4
-305 4 4
-405 4 4
-6 5 5
-106 5 5
-206 5 5
-306 5 5
-406 5 5
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-500
-SELECT SQL_CALC_FOUND_ROWS * FROM t1
-ORDER BY f1, f0 LIMIT 0;
-f0 f1 f2
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-500
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE f1>10
-ORDER BY f2, f0 LIMIT 20;
-f0 f1 f2
-12 11 11
-112 11 11
-212 11 11
-312 11 11
-412 11 11
-13 12 12
-113 12 12
-213 12 12
-313 12 12
-413 12 12
-14 13 13
-114 13 13
-214 13 13
-314 13 13
-414 13 13
-15 14 14
-115 14 14
-215 14 14
-315 14 14
-415 14 14
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-445
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE f1>10
-ORDER BY f2, f0 LIMIT 0;
-f0 f1 f2
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-445
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE f1>10
-ORDER BY f2, f0 LIMIT 10 OFFSET 10;
-f0 f1 f2
-14 13 13
-114 13 13
-214 13 13
-314 13 13
-414 13 13
-15 14 14
-115 14 14
-215 14 14
-315 14 14
-415 14 14
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-445
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE f1>10
-ORDER BY f2, f0 LIMIT 0 OFFSET 10;
-f0 f1 f2
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-445
-set sort_buffer_size= 327680;
-SELECT * FROM t1 JOIN tmp on t1.f2=tmp.f2
-ORDER BY tmp.f1, f0 LIMIT 30;
-f0 f1 f2 f1 f2
-1 0 0 0 0
-1 0 0 0 0
-1 0 0 0 0
-101 0 0 0 0
-101 0 0 0 0
-101 0 0 0 0
-201 0 0 0 0
-201 0 0 0 0
-201 0 0 0 0
-301 0 0 0 0
-301 0 0 0 0
-301 0 0 0 0
-401 0 0 0 0
-401 0 0 0 0
-401 0 0 0 0
-2 1 1 1 1
-2 1 1 1 1
-2 1 1 1 1
-102 1 1 1 1
-102 1 1 1 1
-102 1 1 1 1
-202 1 1 1 1
-202 1 1 1 1
-202 1 1 1 1
-302 1 1 1 1
-302 1 1 1 1
-302 1 1 1 1
-402 1 1 1 1
-402 1 1 1 1
-402 1 1 1 1
-SELECT * FROM t1 JOIN tmp on t1.f2=tmp.f2
-ORDER BY tmp.f1, f0 LIMIT 30 OFFSET 30;
-f0 f1 f2 f1 f2
-3 2 2 2 2
-3 2 2 2 2
-3 2 2 2 2
-103 2 2 2 2
-103 2 2 2 2
-103 2 2 2 2
-203 2 2 2 2
-203 2 2 2 2
-203 2 2 2 2
-303 2 2 2 2
-303 2 2 2 2
-303 2 2 2 2
-403 2 2 2 2
-403 2 2 2 2
-403 2 2 2 2
-4 3 3 3 3
-4 3 3 3 3
-4 3 3 3 3
-104 3 3 3 3
-104 3 3 3 3
-104 3 3 3 3
-204 3 3 3 3
-204 3 3 3 3
-204 3 3 3 3
-304 3 3 3 3
-304 3 3 3 3
-304 3 3 3 3
-404 3 3 3 3
-404 3 3 3 3
-404 3 3 3 3
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 JOIN tmp on t1.f2=tmp.f2
-ORDER BY tmp.f1, f0 LIMIT 30 OFFSET 30;
-f0 f1 f2 f1 f2
-3 2 2 2 2
-3 2 2 2 2
-3 2 2 2 2
-103 2 2 2 2
-103 2 2 2 2
-103 2 2 2 2
-203 2 2 2 2
-203 2 2 2 2
-203 2 2 2 2
-303 2 2 2 2
-303 2 2 2 2
-303 2 2 2 2
-403 2 2 2 2
-403 2 2 2 2
-403 2 2 2 2
-4 3 3 3 3
-4 3 3 3 3
-4 3 3 3 3
-104 3 3 3 3
-104 3 3 3 3
-104 3 3 3 3
-204 3 3 3 3
-204 3 3 3 3
-204 3 3 3 3
-304 3 3 3 3
-304 3 3 3 3
-304 3 3 3 3
-404 3 3 3 3
-404 3 3 3 3
-404 3 3 3 3
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-1500
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 JOIN tmp on t1.f2=tmp.f2
-WHERE t1.f2>20
-ORDER BY tmp.f1, f0 LIMIT 30 OFFSET 30;
-f0 f1 f2 f1 f2
-24 23 23 23 23
-24 23 23 23 23
-24 23 23 23 23
-124 23 23 23 23
-124 23 23 23 23
-124 23 23 23 23
-224 23 23 23 23
-224 23 23 23 23
-224 23 23 23 23
-324 23 23 23 23
-324 23 23 23 23
-324 23 23 23 23
-424 23 23 23 23
-424 23 23 23 23
-424 23 23 23 23
-25 24 24 24 24
-25 24 24 24 24
-25 24 24 24 24
-125 24 24 24 24
-125 24 24 24 24
-125 24 24 24 24
-225 24 24 24 24
-225 24 24 24 24
-225 24 24 24 24
-325 24 24 24 24
-325 24 24 24 24
-325 24 24 24 24
-425 24 24 24 24
-425 24 24 24 24
-425 24 24 24 24
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-1185
-CREATE VIEW v1 as SELECT * FROM t1 ORDER BY f1, f0 LIMIT 30;
-SELECT * FROM v1;
-f0 f1 f2
-1 0 0
-101 0 0
-201 0 0
-301 0 0
-401 0 0
-2 1 1
-102 1 1
-202 1 1
-302 1 1
-402 1 1
-3 2 2
-103 2 2
-203 2 2
-303 2 2
-403 2 2
-4 3 3
-104 3 3
-204 3 3
-304 3 3
-404 3 3
-5 4 4
-105 4 4
-205 4 4
-305 4 4
-405 4 4
-6 5 5
-106 5 5
-206 5 5
-306 5 5
-406 5 5
-drop view v1;
-CREATE VIEW v1 as SELECT * FROM t1 ORDER BY f1, f0 LIMIT 100;
-SELECT * FROM v1 ORDER BY f2, f0 LIMIT 30;
-f0 f1 f2
-1 0 0
-101 0 0
-201 0 0
-301 0 0
-401 0 0
-2 1 1
-102 1 1
-202 1 1
-302 1 1
-402 1 1
-11 10 10
-111 10 10
-211 10 10
-311 10 10
-411 10 10
-12 11 11
-112 11 11
-212 11 11
-312 11 11
-412 11 11
-13 12 12
-113 12 12
-213 12 12
-313 12 12
-413 12 12
-14 13 13
-114 13 13
-214 13 13
-314 13 13
-414 13 13
-CREATE VIEW v2 as SELECT * FROM t1 ORDER BY f2, f0 LIMIT 100;
-SELECT * FROM v1 JOIN v2 on v1.f1=v2.f1 ORDER BY v1.f2,v1.f0,v2.f0
-LIMIT 30;
-f0 f1 f2 f0 f1 f2
-1 0 0 1 0 0
-1 0 0 101 0 0
-1 0 0 201 0 0
-1 0 0 301 0 0
-1 0 0 401 0 0
-101 0 0 1 0 0
-101 0 0 101 0 0
-101 0 0 201 0 0
-101 0 0 301 0 0
-101 0 0 401 0 0
-201 0 0 1 0 0
-201 0 0 101 0 0
-201 0 0 201 0 0
-201 0 0 301 0 0
-201 0 0 401 0 0
-301 0 0 1 0 0
-301 0 0 101 0 0
-301 0 0 201 0 0
-301 0 0 301 0 0
-301 0 0 401 0 0
-401 0 0 1 0 0
-401 0 0 101 0 0
-401 0 0 201 0 0
-401 0 0 301 0 0
-401 0 0 401 0 0
-2 1 1 2 1 1
-2 1 1 102 1 1
-2 1 1 202 1 1
-2 1 1 302 1 1
-2 1 1 402 1 1
-SELECT floor(f1/10) f3, count(f2) FROM t1
-GROUP BY 1 ORDER BY 2,1 LIMIT 5;
-f3 count(f2)
-0 50
-1 50
-2 50
-3 50
-4 50
-SELECT floor(f1/10) f3, count(f2) FROM t1
-GROUP BY 1 ORDER BY 2,1 LIMIT 0;
-f3 count(f2)
-CREATE PROCEDURE wl1393_sp_test()
-BEGIN
-SELECT * FROM t1 WHERE f1>10 ORDER BY f2, f0 LIMIT 30;
-SELECT * FROM t1 WHERE f1>10 ORDER BY f2, f0 LIMIT 15 OFFSET 15;
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE f1>10
-ORDER BY f2, f0 LIMIT 15 OFFSET 15;
-SELECT FOUND_ROWS();
-SELECT * FROM v1 ORDER BY f2, f0 LIMIT 30;
-END|
-CALL wl1393_sp_test()|
-f0 f1 f2
-12 11 11
-112 11 11
-212 11 11
-312 11 11
-412 11 11
-13 12 12
-113 12 12
-213 12 12
-313 12 12
-413 12 12
-14 13 13
-114 13 13
-214 13 13
-314 13 13
-414 13 13
-15 14 14
-115 14 14
-215 14 14
-315 14 14
-415 14 14
-16 15 15
-116 15 15
-216 15 15
-316 15 15
-416 15 15
-17 16 16
-117 16 16
-217 16 16
-317 16 16
-417 16 16
-f0 f1 f2
-15 14 14
-115 14 14
-215 14 14
-315 14 14
-415 14 14
-16 15 15
-116 15 15
-216 15 15
-316 15 15
-416 15 15
-17 16 16
-117 16 16
-217 16 16
-317 16 16
-417 16 16
-f0 f1 f2
-15 14 14
-115 14 14
-215 14 14
-315 14 14
-415 14 14
-16 15 15
-116 15 15
-216 15 15
-316 15 15
-416 15 15
-17 16 16
-117 16 16
-217 16 16
-317 16 16
-417 16 16
-FOUND_ROWS()
-445
-f0 f1 f2
-1 0 0
-101 0 0
-201 0 0
-301 0 0
-401 0 0
-2 1 1
-102 1 1
-202 1 1
-302 1 1
-402 1 1
-11 10 10
-111 10 10
-211 10 10
-311 10 10
-411 10 10
-12 11 11
-112 11 11
-212 11 11
-312 11 11
-412 11 11
-13 12 12
-113 12 12
-213 12 12
-313 12 12
-413 12 12
-14 13 13
-114 13 13
-214 13 13
-314 13 13
-414 13 13
-DROP PROCEDURE wl1393_sp_test|
-SELECT d1.f1, d1.f2 FROM t1
-LEFT JOIN (SELECT * FROM t1 ORDER BY f1 LIMIT 30) d1 on t1.f1=d1.f1
-ORDER BY d1.f2 DESC LIMIT 30;
-f1 f2
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-5 5
-4 4
-4 4
-4 4
-4 4
-4 4
-SELECT * FROM t1 WHERE f1 = (SELECT f1 FROM t1 ORDER BY 1 LIMIT 1);
-f0 f1 f2
-1 0 0
-101 0 0
-201 0 0
-301 0 0
-401 0 0
-SELECT * FROM t1 WHERE f1 = (SELECT f1 FROM t1 ORDER BY 1 LIMIT 2);
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1, tmp;
-DROP VIEW v1, v2;
-# end of WL#1393 - Optimizing filesort with small limit
-#
-# Bug #58761
-# Crash in Field::is_null in field.h on subquery in WHERE clause
-#
-CREATE TABLE t1 (
-pk INT NOT NULL AUTO_INCREMENT,
-col_int_key INT DEFAULT NULL,
-col_varchar_key VARCHAR(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-);
-INSERT INTO t1 VALUES (27,7,'x');
-INSERT INTO t1 VALUES (28,6,'m');
-INSERT INTO t1 VALUES (29,4,'c');
-CREATE TABLE where_subselect
-SELECT DISTINCT `pk` AS field1 , `pk` AS field2
-FROM t1 AS alias1
-WHERE alias1 . `col_int_key` > 229
-OR alias1 . `col_varchar_key` IS NOT NULL
-GROUP BY field1, field2
-;
-SELECT *
-FROM where_subselect
-WHERE (field1, field2) IN (
-SELECT DISTINCT `pk` AS field1 , `pk` AS field2
-FROM t1 AS alias1
-WHERE alias1 . `col_int_key` > 229
-OR alias1 . `col_varchar_key` IS NOT NULL
-GROUP BY field1, field2
-);
-field1 field2
-27 27
-28 28
-29 29
-DROP TABLE t1;
-DROP TABLE where_subselect;
-# End of Bug #58761
-CREATE TABLE t1 (
-id1 INT NULL,
-id2 INT NOT NULL,
-junk INT NOT NULL,
-PRIMARY KEY (id1, id2, junk),
-INDEX id2_j_id1 (id2, junk, id1)
-);
-INSERT INTO t1 VALUES (1, 1, 1), (2, 1, 2), (3, 1, 3), (4, 1, 4);
-INSERT INTO t1 VALUES (5, 2, 1), (6, 2, 2), (7, 2, 3), (8, 2, 4);
-INSERT INTO t1 VALUES (9, 3, 1), (10, 3, 2), (11, 3, 3), (12, 3, 4);
-INSERT INTO t1 VALUES (13, 4, 1), (14, 4, 2), (15, 4, 3), (16, 4, 4);
-INSERT INTO t1 VALUES (17, 5, 1), (18, 5, 2), (19, 5, 3), (20, 5, 4);
-INSERT INTO t1 VALUES (21, 6, 1), (22, 6, 2), (23, 6, 3), (24, 6, 4);
-INSERT INTO t1 VALUES (25, 7, 1), (26, 7, 2), (27, 7, 3), (28, 7, 4);
-INSERT INTO t1 VALUES (29, 8, 1), (30, 8, 2), (31, 8, 3), (32, 8, 4);
-INSERT INTO t1 VALUES (33, 9, 1), (34, 9, 2), (35, 9, 3), (36, 9, 4);
-EXPLAIN SELECT id1 FROM t1 WHERE id2 = 4 ORDER BY id1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref id2_j_id1 id2_j_id1 4 const 4 Using where; Using index; Using filesort
-SELECT id1 FROM t1 WHERE id2 = 4 ORDER BY id1;
-id1
-13
-14
-15
-16
-DROP TABLE t1;
-CREATE TABLE t1 (
-a INT,
-b INT NOT NULL,
-c char(100),
-KEY (b, c),
-KEY (b, a, c)
-)
-DEFAULT CHARSET = utf8;
-INSERT INTO t1 VALUES
-(1, 1, 1),
-(2, 2, 2),
-(3, 3, 3),
-(4, 4, 4),
-(5, 5, 5),
-(6, 6, 6),
-(7, 7, 7),
-(8, 8, 8),
-(9, 9, 9);
-INSERT INTO t1 SELECT a + 10, b, c FROM t1;
-INSERT INTO t1 SELECT a + 20, b, c FROM t1;
-INSERT INTO t1 SELECT a + 40, b, c FROM t1;
-INSERT INTO t1 SELECT a + 80, b, c FROM t1;
-INSERT INTO t1 SELECT a + 160, b, c FROM t1;
-INSERT INTO t1 SELECT a + 320, b, c FROM t1;
-INSERT INTO t1 SELECT a + 640, b, c FROM t1;
-INSERT INTO t1 SELECT a + 1280, b, c FROM t1 LIMIT 80;
-EXPLAIN
-SELECT a FROM t1 WHERE b = 1 ORDER BY c DESC LIMIT 9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range b,b_2 b 4 NULL 226 Using where
-SELECT a FROM t1 WHERE b = 1 ORDER BY c DESC LIMIT 9;
-a
-2071
-2061
-2051
-2041
-2031
-2021
-2011
-2001
-1991
-EXPLAIN
-SELECT DISTINCT a FROM t1 WHERE b = 1 ORDER BY c DESC LIMIT 0, 9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range b,b_2 b 4 NULL 226 Using where; Using temporary
-SELECT DISTINCT a FROM t1 WHERE b = 1 ORDER BY c DESC LIMIT 0, 9;
-a
-2071
-2061
-2051
-2041
-2031
-2021
-2011
-2001
-1991
-DROP TABLE t1;
-#
-# Bug #43029: FORCE INDEX FOR ORDER BY is ignored when join buffering
-# is used
-#
-CREATE TABLE t1 (a INT, b INT, KEY (a));
-INSERT INTO t1 VALUES (0, NULL), (1, NULL), (2, NULL), (3, NULL);
-INSERT INTO t1 SELECT a+4, b FROM t1;
-INSERT INTO t1 SELECT a+8, b FROM t1;
-CREATE TABLE t2 (a INT, b INT);
-INSERT INTO t2 VALUES (0,NULL), (1,NULL), (2,NULL), (3,NULL), (4,NULL);
-INSERT INTO t2 SELECT a+4, b FROM t2;
-# shouldn't have "using filesort"
-EXPLAIN
-SELECT * FROM t1 FORCE INDEX FOR ORDER BY (a), t2 WHERE t1.a < 2 ORDER BY t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 2 Using index condition; Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-# should have "using filesort"
-EXPLAIN
-SELECT * FROM t1 USE INDEX FOR ORDER BY (a), t2 WHERE t1.a < 2 ORDER BY t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 2 Using index condition; Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-# should have "using filesort"
-EXPLAIN
-SELECT * FROM t1 FORCE INDEX FOR JOIN (a), t2 WHERE t1.a < 2 ORDER BY t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 2 Using index condition; Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-DROP TABLE t1, t2;
-#
-# Bug #50394: Regression in EXPLAIN with index scan, LIMIT, GROUP BY and
-# ORDER BY computed col
-#
-CREATE TABLE t1 ( a INT NOT NULL, b INT NOT NULL, KEY( a, b ) );
-INSERT INTO t1 VALUES (1, 1), (2, 2), (3, 3), (4, 4), (5, 5);
-INSERT INTO t1 SELECT a + 5, b + 5 FROM t1;
-CREATE TABLE t2( a INT PRIMARY KEY, b INT );
-INSERT INTO t2 VALUES (1, 1), (2, 2), (3, 3), (4, 4), (5, 5);
-INSERT INTO t2 SELECT a + 5, b + 5 FROM t2;
-EXPLAIN
-SELECT count(*) AS c, t1.a
-FROM t1 JOIN t2 ON t1.b = t2.a
-WHERE t2.b = 1
-GROUP BY t1.a
-ORDER by c
-LIMIT 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 8 NULL 10 Using index; Using temporary; Using filesort
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.b 1 Using where
-DROP TABLE t1, t2;
-#
-# Bug #707848: WHERE condition with OR + ORDER BY + field substitution
-#
-CREATE TABLE t1 (a int PRIMARY KEY);
-INSERT INTO t1 VALUES
-(9), (7), (11), (15), (2), (4), (1), (5), (14), (54), (3), (8);
-EXPLAIN EXTENDED
-SELECT * FROM t1 r JOIN t1 s ON r.a = s.a
-WHERE s.a IN (2,9) OR s.a < 100 AND s.a != 0
-ORDER BY 1 LIMIT 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE r range PRIMARY PRIMARY 4 NULL 12 100.00 Using where; Using index
-1 SIMPLE s eq_ref PRIMARY PRIMARY 4 test.r.a 1 100.00 Using index
-Warnings:
-Note 1003 select `test`.`r`.`a` AS `a`,`test`.`s`.`a` AS `a` from `test`.`t1` `r` join `test`.`t1` `s` where `test`.`s`.`a` = `test`.`r`.`a` and (`test`.`r`.`a` in (2,9) or `test`.`r`.`a` < 100 and `test`.`r`.`a` <> 0) order by 1 limit 10
-SELECT * FROM t1 r JOIN t1 s ON r.a = s.a
-WHERE s.a IN (2,9) OR s.a < 100 AND s.a != 0
-ORDER BY 1 LIMIT 10;
-a a
-1 1
-2 2
-3 3
-4 4
-5 5
-7 7
-8 8
-9 9
-11 11
-14 14
-DROP TABLE t1;
-#
-# Bug #59110: Memory leak of QUICK_SELECT_I allocated memory
-# and
-# Bug #59308: Incorrect result for
-SELECT DISTINCT <col>... ORDER BY <col> DESC
-
-# Use Valgrind to detect #59110!
-#
-CREATE TABLE t1 (a INT,KEY (a));
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
-EXPLAIN SELECT DISTINCT a,1 FROM t1 WHERE a <> 1 ORDER BY a DESC;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 10 Using where; Using index
-SELECT DISTINCT a,1 FROM t1 WHERE a <> 1 ORDER BY a DESC;
-a 1
-10 1
-9 1
-8 1
-7 1
-6 1
-5 1
-4 1
-3 1
-2 1
-DROP TABLE t1;
-#
-# Bug#11765255 58201:
-# VALGRIND/CRASH WHEN ORDERING BY MULTIPLE AGGREGATE FUNCTIONS
-#
-select 1 order by max(1) + min(1);
-1
-1
-End of 5.1 tests
-#
-# Bug #38745: MySQL 5.1 optimizer uses filesort for ORDER BY
-# when it should use index
-#
-CREATE TABLE t1 (i1 integer NOT NULL PRIMARY KEY);
-CREATE TABLE t2 (i2 integer NOT NULL PRIMARY KEY);
-CREATE TABLE t3 (i3 integer);
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12);
-INSERT INTO t2 SELECT * FROM t1;
-EXPLAIN EXTENDED
-SELECT t1.*, t2.* FROM t1 JOIN t2 ON t1.i1 = t2.i2
-LEFT JOIN t3 ON t2.i2 = t3.i3
-ORDER BY t1.i1 LIMIT 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 system NULL NULL NULL NULL 0 0.00 Const row not found
-1 SIMPLE t1 index PRIMARY PRIMARY 4 NULL 5 100.00 Using index
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.i1 1 100.00 Using index
-Warnings:
-Note 1003 select `test`.`t1`.`i1` AS `i1`,`test`.`t2`.`i2` AS `i2` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`i2` = `test`.`t1`.`i1` order by `test`.`t1`.`i1` limit 5
-SELECT t1.*, t2.* FROM t1 JOIN t2 ON t1.i1 = t2.i2
-LEFT JOIN t3 ON t2.i2 = t3.i3
-ORDER BY t1.i1 LIMIT 5;
-i1 i2
-1 1
-2 2
-3 3
-4 4
-5 5
-DROP TABLE t1, t2, t3;
-#
-# Fix of LP BUG#793589 Wrong result with double ORDER BY
-#
-CREATE TABLE t1 ( b int) ;
-INSERT INTO t1 VALUES (8),(9);
-CREATE TABLE t2 ( a int, b int, PRIMARY KEY (a)) ;
-INSERT INTO t2 VALUES (6,7),(7,7),(8,1),(9,7),(10,1),(11,5),(12,2),(13,0),(14,1),(15,8),(16,1),(17,1),(18,9),(19,1),(20,5);
-SELECT t2.b AS field1 FROM t1, t2 WHERE t1.b = t2.a GROUP BY field1 ORDER BY t1.b, field1;
-field1
-1
-7
-SELECT t2.b, t1.b FROM t1, t2 WHERE t1.b = t2.a GROUP BY t2.b ORDER BY t1.b, t2.b;
-b b
-1 8
-7 9
-SELECT t2.b,t1.b FROM t1, t2 WHERE t1.b = t2.a GROUP BY t2.b ORDER BY t1.b;
-b b
-1 8
-7 9
-SELECT t2.b FROM t1, t2 WHERE t1.b = t2.a GROUP BY t2.b ORDER BY t1.b;
-b
-1
-7
-# field1 removed from ORDER BY
-explain extended
-SELECT t2.b AS field1 FROM t1, t2 WHERE t1.b = t2.a GROUP BY field1 ORDER BY t1.b, field1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where; Using temporary; Using filesort
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.b 1 100.00
-Warnings:
-Note 1003 select `test`.`t2`.`b` AS `field1` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`a` = `test`.`t1`.`b` group by `test`.`t2`.`b` order by `test`.`t1`.`b`
-explain extended
-SELECT t2.b, t1.b FROM t1, t2 WHERE t1.b = t2.a GROUP BY t2.b ORDER BY t1.b, t2.b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where; Using temporary; Using filesort
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.b 1 100.00
-Warnings:
-Note 1003 select `test`.`t2`.`b` AS `b`,`test`.`t1`.`b` AS `b` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`a` = `test`.`t1`.`b` group by `test`.`t2`.`b` order by `test`.`t1`.`b`
-explain extended
-SELECT t2.b,t1.b FROM t1, t2 WHERE t1.b = t2.a GROUP BY t2.b ORDER BY t1.b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where; Using temporary; Using filesort
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.b 1 100.00
-Warnings:
-Note 1003 select `test`.`t2`.`b` AS `b`,`test`.`t1`.`b` AS `b` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`a` = `test`.`t1`.`b` group by `test`.`t2`.`b` order by `test`.`t1`.`b`
-explain extended
-SELECT t2.b FROM t1, t2 WHERE t1.b = t2.a GROUP BY t2.b ORDER BY t1.b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where; Using temporary; Using filesort
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.b 1 100.00
-Warnings:
-Note 1003 select `test`.`t2`.`b` AS `b` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`a` = `test`.`t1`.`b` group by `test`.`t2`.`b` order by `test`.`t1`.`b`
-drop table t1,t2;
-End of 5.2 tests
-#
-# Bug mdev-449: ORDER BY with small sort_buffer_size
-#
-CREATE TABLE t1(f0 int auto_increment primary key, f1 int, f2 varchar(200));
-INSERT INTO t1(f1, f2) VALUES
-(0,"0"),(1,"1"),(2,"2"),(3,"3"),(4,"4"),(5,"5"),
-(6,"6"),(7,"7"),(8,"8"),(9,"9"),(10,"10"),
-(11,"11"),(12,"12"),(13,"13"),(14,"14"),(15,"15"),
-(16,"16"),(17,"17"),(18,"18"),(19,"19"),(20,"20"),
-(21,"21"),(22,"22"),(23,"23"),(24,"24"),(25,"25"),
-(26,"26"),(27,"27"),(28,"28"),(29,"29"),(30,"30"),
-(31,"31"),(32,"32"),(33,"33"),(34,"34"),(35,"35"),
-(36,"36"),(37,"37"),(38,"38"),(39,"39"),(40,"40"),
-(41,"41"),(42,"42"),(43,"43"),(44,"44"),(45,"45"),
-(46,"46"),(47,"47"),(48,"48"),(49,"49"),(50,"50"),
-(51,"51"),(52,"52"),(53,"53"),(54,"54"),(55,"55"),
-(56,"56"),(57,"57"),(58,"58"),(59,"59"),(60,"60"),
-(61,"61"),(62,"62"),(63,"63"),(64,"64"),(65,"65"),
-(66,"66"),(67,"67"),(68,"68"),(69,"69"),(70,"70"),
-(71,"71"),(72,"72"),(73,"73"),(74,"74"),(75,"75"),
-(76,"76"),(77,"77"),(78,"78"),(79,"79"),(80,"80"),
-(81,"81"),(82,"82"),(83,"83"),(84,"84"),(85,"85"),
-(86,"86"),(87,"87"),(88,"88"),(89,"89"),(90,"90"),
-(91,"91"),(92,"92"),(93,"93"),(94,"94"),(95,"95"),
-(96,"96"),(97,"97"),(98,"98"),(99,"99");
-set @save_sort_buffer_size= @@sort_buffer_size;
-set sort_buffer_size= 2000;
-SELECT * FROM t1 ORDER BY f1 DESC, f0;
-f0 f1 f2
-100 99 99
-99 98 98
-98 97 97
-97 96 96
-96 95 95
-95 94 94
-94 93 93
-93 92 92
-92 91 91
-91 90 90
-90 89 89
-89 88 88
-88 87 87
-87 86 86
-86 85 85
-85 84 84
-84 83 83
-83 82 82
-82 81 81
-81 80 80
-80 79 79
-79 78 78
-78 77 77
-77 76 76
-76 75 75
-75 74 74
-74 73 73
-73 72 72
-72 71 71
-71 70 70
-70 69 69
-69 68 68
-68 67 67
-67 66 66
-66 65 65
-65 64 64
-64 63 63
-63 62 62
-62 61 61
-61 60 60
-60 59 59
-59 58 58
-58 57 57
-57 56 56
-56 55 55
-55 54 54
-54 53 53
-53 52 52
-52 51 51
-51 50 50
-50 49 49
-49 48 48
-48 47 47
-47 46 46
-46 45 45
-45 44 44
-44 43 43
-43 42 42
-42 41 41
-41 40 40
-40 39 39
-39 38 38
-38 37 37
-37 36 36
-36 35 35
-35 34 34
-34 33 33
-33 32 32
-32 31 31
-31 30 30
-30 29 29
-29 28 28
-28 27 27
-27 26 26
-26 25 25
-25 24 24
-24 23 23
-23 22 22
-22 21 21
-21 20 20
-20 19 19
-19 18 18
-18 17 17
-17 16 16
-16 15 15
-15 14 14
-14 13 13
-13 12 12
-12 11 11
-11 10 10
-10 9 9
-9 8 8
-8 7 7
-7 6 6
-6 5 5
-5 4 4
-4 3 3
-3 2 2
-2 1 1
-1 0 0
-set sort_buffer_size= @save_sort_buffer_size;
-DROP TABLE t1;
-End of 5.3 tests
-#
-# Bug 54599: discarded fast range scan for query with
-# GROUP BY + ORDER BY + LIMIT
-#
-create table t0 (a int);
-insert into t0 values (0), (1), (2), (3), (4), (5), (6), (7), (8), (9);
-create table t1 (a int, b int, index idx1(a,b), index idx2(b,a));
-insert into t1
-select 1000*s4.a+100*s3.a+10*s2.a + s1.a, 1000*s4.a+100*s3.a+10*s2.a+s1.a
-from t0 s1, t0 s2, t0 s3, t0 s4;
-analyze table t1;
-explain
-select b, count(*) num_cnt from t1
-where a > 9750 group by b order by num_cnt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx1 idx1 5 NULL 502 Using where; Using index; Using temporary; Using filesort
-flush status;
-select b, count(*) num_cnt from t1
-where a > 9750 group by b order by num_cnt;
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 250
-Handler_read_last 0
-Handler_read_next 249
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 249
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 250
-explain
-select b, count(*) num_cnt from t1
-where a > 9750 group by b order by num_cnt limit 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx1 idx1 5 NULL 502 Using where; Using index; Using temporary; Using filesort
-flush status;
-select b, count(*) num_cnt from t1
-where a > 9750 group by b order by num_cnt limit 1;
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 250
-Handler_read_last 0
-Handler_read_next 249
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 1
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 250
-drop table t0, t1;
-#
-# LP bug #1002508 : the number of expected rows to be examined is off
-# (bug #13528826)
-#
-CREATE TABLE t1(a int PRIMARY KEY, b int) ENGINE=myisam;
-INSERT INTO t1 VALUES
-(5, 10), (2, 70), (7, 80), (6, 20), (1, 50), (9, 40), (8, 30), (3, 60);
-CREATE TABLE t2 (p int, a int, INDEX i_a(a)) ENGINE=myisam;
-INSERT INTO t2 VALUES
-(103, 7), (109, 3), (102, 3), (108, 1), (106, 3),
-(107, 7), (105, 1), (101, 3), (100, 7), (110, 1);
-EXPLAIN
-SELECT t1.a FROM t1 LEFT JOIN t2 ON t1.a=t2.a ORDER BY t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 8 Using index
-1 SIMPLE t2 ref i_a i_a 5 test.t1.a 2 Using index
-EXPLAIN
-SELECT t1.a FROM t1 LEFT JOIN t2 ON t1.a=t2.a ORDER BY t1.a LIMIT 8;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 4 Using index
-1 SIMPLE t2 ref i_a i_a 5 test.t1.a 2 Using index
-EXPLAIN
-SELECT t1.a FROM t1 LEFT JOIN t2 ON t1.a=t2.a ORDER BY t1.a LIMIT 100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 8 Using index
-1 SIMPLE t2 ref i_a i_a 5 test.t1.a 2 Using index
-DROP TABLE t1,t2;
-#
-# MDEV-4974 memory leak in 5.5.32-MariaDB-1~wheezy-log
-#
-set sort_buffer_size=default;
-set max_sort_length=default;
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (b int,
-col1 varchar(255),
-col2 varchar(255)
-) character set utf8;
-insert into t2 select
-A.a+10*B.a,
-concat('wow-wow-col1-value-', A.a+10*B.a+100*C.a),
-concat('wow-wow-col2-value-', A.a+10*B.a+100*C.a)
-from
-t1 A, t1 B, t1 C where C.a < 8;
-create table t3 as
-select distinct A.col1 as XX, B.col1 as YY
-from
-t2 A, t2 B
-where A.b = B.b
-order by A.col2, B.col2 limit 10, 1000000;
-drop table t1,t2,t3;
-#
-# mdev-10705 : long order by list that can be skipped
-#
-SELECT 1
-UNION
-( SELECT 2
-ORDER BY NULL, @a0 := 3, @a1 := 3, @a2 := 3, @a3 := 3, @a4 := 3,
-@a5 := 3, @a6 := 3, @a7 := 3, @a8 := 3, @a9 := 3, @a10 := 3 );
-1
-1
-2
-#
-# mdev-6706: semi-join with duplicate weedout + ORDER BY
-#
-CREATE TABLE t1 (f1 VARCHAR(3)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo');
-CREATE TABLE t2 (f2 VARCHAR(3)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('bar'),('baz');
-CREATE TABLE t3
-(i3_key INT, f3_key VARCHAR(3), f3 VARCHAR(3), KEY(f3_key,i3_key))
-ENGINE=MyISAM;
-INSERT INTO t3 VALUES (0,'qux','qux'),(8,'bar','bar');
-SELECT CONCAT( f1, f2 ) AS field FROM t1, t2
-WHERE f1 = ANY ( SELECT f1
-FROM t1
-LEFT JOIN ( t3 AS t3a, t3 AS t3b )
-ON ( t3b.f3_key = t3a.f3 )
-WHERE t3a.f3 < f1 OR t3b.f3 != f1 );
-field
-foobar
-foobaz
-SELECT CONCAT( f1, f2 ) AS field FROM t1, t2
-WHERE f1 = ANY ( SELECT f1
-FROM t1
-LEFT JOIN ( t3 AS t3a, t3 AS t3b )
-ON ( t3b.f3_key = t3a.f3 )
-WHERE t3a.f3 < f1 OR t3b.f3 != f1 )
-ORDER BY field;
-field
-foobar
-foobaz
-EXPLAIN EXTENDED SELECT CONCAT( f1, f2 ) AS field FROM t1, t2
-WHERE f1 = ANY ( SELECT f1
-FROM t1
-LEFT JOIN ( t3 AS t3a, t3 AS t3b )
-ON ( t3b.f3_key = t3a.f3 )
-WHERE t3a.f3 < f1 OR t3b.f3 != f1 )
-ORDER BY field;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00 Using temporary; Using filesort
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t3a ALL NULL NULL NULL NULL 2 100.00 Using where; Start temporary
-1 PRIMARY t3b ref f3_key f3_key 6 test.t3a.f3 1 100.00 Using where; End temporary
-Warnings:
-Note 1003 select concat('foo',`test`.`t2`.`f2`) AS `field` from `test`.`t2` semi join ((`test`.`t3` `t3a` join `test`.`t3` `t3b`)) where `test`.`t3a`.`f3` < 'foo' or `test`.`t3b`.`f3` <> 'foo' order by concat('foo',`test`.`t2`.`f2`)
-DROP TABLE t1,t2,t3;
-End of 5.5 tests
-#
-# MDEV-5884: EXPLAIN UPDATE ... ORDER BY LIMIT shows wrong #rows
-#
-create table t2(a int);
-insert into t2 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (key1 int, col1 int, key(key1));
-insert into t1
-select A.a + 10 * B.a + 100 * C.a, 1234 from t2 A, t2 B, t2 C;
-# Should show rows=2, not rows=100
-explain update t1 set key1=key1+1 where key1 between 10 and 110 order by key1 limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range key1 key1 5 NULL 2 Using where; Using buffer
-drop table t1,t2;
-#
-# MDEV-465: Optimizer : wrong index choice, leading to strong performances issues
-#
-CREATE TABLE t1 (
-id1 int(10) unsigned NOT NULL auto_increment,
-id2 tinyint(3) unsigned NOT NULL default '0',
-id3 tinyint(3) unsigned NOT NULL default '0',
-id4 int(10) unsigned NOT NULL default '0',
-date timestamp NOT NULL default CURRENT_TIMESTAMP,
-PRIMARY KEY (id1),
-KEY id_234_date (id2,id3,id4,date),
-KEY id_23_date (id2,id3,date)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-# t1 has "bad" index declaration order..
-CREATE TABLE t2 (
-id1 int(10) unsigned NOT NULL auto_increment,
-id2 tinyint(3) unsigned NOT NULL default '0',
-id3 tinyint(3) unsigned NOT NULL default '0',
-id4 int(10) unsigned NOT NULL default '0',
-date timestamp NOT NULL default CURRENT_TIMESTAMP,
-PRIMARY KEY (id1),
-KEY id_23_date (id2,id3,date),
-KEY id_234_date (id2,id3,id4,date)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-# t2 has a "good" index declaration order
-INSERT INTO t1 (id2,id3,id4) VALUES (1,1,1),(1,1,1),(1,1,1),(1,1,1),(1,0,1),(1,2,1),(1,3,1);
-INSERT INTO t2 (id2,id3,id4) VALUES (1,1,1),(1,1,1),(1,1,1),(1,1,1),(1,0,1),(1,2,1),(1,3,1);
-# The following two must both use id_23_date and no "using filesort":
-EXPLAIN SELECT id1 FROM t1 WHERE id2=1 AND id3=1 ORDER BY date DESC LIMIT 0,4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range id_234_date,id_23_date id_23_date 2 NULL 3 Using where
-# See above query
-EXPLAIN SELECT id1 FROM t2 WHERE id2=1 AND id3=1 ORDER BY date DESC LIMIT 0,4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref id_23_date,id_234_date id_23_date 2 const,const 3 Using where
-drop table t1,t2;
-#
-# MDEV-8989: ORDER BY optimizer ignores equality propagation
-#
-set @tmp_8989=@@optimizer_switch;
-set optimizer_switch='orderby_uses_equalities=on';
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int);
-insert into t1 select A.a + B.a* 10 + C.a * 100 from t0 A, t0 B, t0 C;
-create table t2 (
-pk int primary key,
-a int, b int,
-filler char(200),
-key(a)
-);
-insert into t2 select a, 1000-a, 1000-a, repeat('abc-',50) from t1 where a<200 limit 200;
-create table t3 (
-pk int primary key,
-a int, b int,
-filler char(200),
-key(a)
-);
-insert into t3 select a, 1000-a, 1000-a, repeat('abc-',50) from t1;
-insert into t3 select a+1000, 1000+a, 1000+a, repeat('abc-',50) from t1;
-# The optimizer produces an order of 't2,t3' for this join
-#
-# Case #1 (from the bug report):
-# Q1 can take advantage of t2.a to resolve ORDER BY limit w/o sorting
-explain
-select t2.pk,t2.a,t2.b,t3.pk,t3.a,t3.b
-from t2, t3 where t2.a=t3.a order by t2.a limit 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index a a 5 NULL 5 Using where
-1 SIMPLE t3 ref a a 5 test.t2.a 1
-#
-# This is Q2 which used to have "Using temporary; using filesort" but
-# has the same query plan as Q1:
-#
-explain
-select t2.pk,t2.a,t2.b,t3.pk,t3.a,t3.b
-from t2, t3 where t2.a=t3.a order by t3.a limit 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index a a 5 NULL 5 Using where
-1 SIMPLE t3 ref a a 5 test.t2.a 1
-select t2.pk,t2.a,t2.b,t3.pk,t3.a,t3.b
-from t2, t3 where t2.a=t3.a order by t2.a limit 5;
-pk a b pk a b
-199 801 801 199 801 801
-198 802 802 198 802 802
-197 803 803 197 803 803
-196 804 804 196 804 804
-195 805 805 195 805 805
-select t2.pk,t2.a,t2.b,t3.pk,t3.a,t3.b
-from t2, t3 where t2.a=t3.a order by t3.a limit 5;
-pk a b pk a b
-199 801 801 199 801 801
-198 802 802 198 802 802
-197 803 803 197 803 803
-196 804 804 196 804 804
-195 805 805 195 805 805
-#
-# Case #2: here, only "Using temporary" is removed. "Using filesort" remains.
-#
-explain
-select t2.pk,t2.a,t2.b,t3.pk,t3.a,t3.b
-from t2, t3 where t2.a=t3.a order by t2.a limit 25;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL a NULL NULL NULL 200 Using where; Using filesort
-1 SIMPLE t3 ref a a 5 test.t2.a 1
-explain
-select t2.pk,t2.a,t2.b,t3.pk,t3.a,t3.b
-from t2, t3 where t2.a=t3.a order by t3.a limit 25;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL a NULL NULL NULL 200 Using where; Using filesort
-1 SIMPLE t3 ref a a 5 test.t2.a 1
-select t2.pk,t2.a,t2.b,t3.pk,t3.a,t3.b
-from t2, t3 where t2.a=t3.a order by t2.a limit 25;
-pk a b pk a b
-199 801 801 199 801 801
-198 802 802 198 802 802
-197 803 803 197 803 803
-196 804 804 196 804 804
-195 805 805 195 805 805
-194 806 806 194 806 806
-193 807 807 193 807 807
-192 808 808 192 808 808
-191 809 809 191 809 809
-190 810 810 190 810 810
-189 811 811 189 811 811
-188 812 812 188 812 812
-187 813 813 187 813 813
-186 814 814 186 814 814
-185 815 815 185 815 815
-184 816 816 184 816 816
-183 817 817 183 817 817
-182 818 818 182 818 818
-181 819 819 181 819 819
-180 820 820 180 820 820
-179 821 821 179 821 821
-178 822 822 178 822 822
-177 823 823 177 823 823
-176 824 824 176 824 824
-175 825 825 175 825 825
-select t2.pk,t2.a,t2.b,t3.pk,t3.a,t3.b
-from t2, t3 where t2.a=t3.a order by t3.a limit 25;
-pk a b pk a b
-199 801 801 199 801 801
-198 802 802 198 802 802
-197 803 803 197 803 803
-196 804 804 196 804 804
-195 805 805 195 805 805
-194 806 806 194 806 806
-193 807 807 193 807 807
-192 808 808 192 808 808
-191 809 809 191 809 809
-190 810 810 190 810 810
-189 811 811 189 811 811
-188 812 812 188 812 812
-187 813 813 187 813 813
-186 814 814 186 814 814
-185 815 815 185 815 815
-184 816 816 184 816 816
-183 817 817 183 817 817
-182 818 818 182 818 818
-181 819 819 181 819 819
-180 820 820 180 820 820
-179 821 821 179 821 821
-178 822 822 178 822 822
-177 823 823 177 823 823
-176 824 824 176 824 824
-175 825 825 175 825 825
-#
-# Case #3: single table access (the code that decides whether we need
-# "Using temporary" is not invoked)
-#
-explain select * from t3 where b=a order by a limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index NULL a 5 NULL 10 Using where
-# This must not use filesort. The query plan should be like the query above:
-explain select * from t3 where b=a order by b limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index NULL a 5 NULL 10 Using where
-drop table t0,t1,t2,t3;
-set @@optimizer_switch=@tmp_8989;
-set optimizer_switch='orderby_uses_equalities=on';
-#
-# MDEV-10880: Assertions `keypart_map' or
-# `prebuilt->search_tuple->n_fields > 0' fail on DISTINCT and
-# GROUP BY constant
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY);
-INSERT INTO t1 VALUES (1),(2),(3);
-SELECT DISTINCT pk FROM t1 GROUP BY 'foo';
-pk
-1
-SELECT DISTINCT pk FROM t1;
-pk
-1
-2
-3
-DROP TABLE t1;
-#
-# MDEV-13994: Bad join results with orderby_uses_equalities=on
-#
-CREATE TABLE books (
-id int(16) NOT NULL AUTO_INCREMENT,
-library_id int(16) NOT NULL DEFAULT 0,
-wings_id int(12) NOT NULL DEFAULT 0,
-scheduled_for_removal int(1) DEFAULT 0,
-PRIMARY KEY (id),
-KEY library_idx (library_id)
-) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
-INSERT INTO books VALUES (32625,8663,707,0),(32624,8663,505,1);
-CREATE TABLE wings (
-id int(11) NOT NULL AUTO_INCREMENT,
-department_id int(11) DEFAULT NULL,
-PRIMARY KEY (id)
-) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
-INSERT INTO wings VALUES (505,11745),(707,11768);
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='orderby_uses_equalities=off';
-SELECT wings.id as wing_id, wings.department_id FROM wings
-WHERE wings.id IN ( SELECT books.wings_id FROM books
-WHERE books.library_id = 8663 AND
-books.scheduled_for_removal=0 )
-ORDER BY wings.id;
-wing_id department_id
-707 11768
-SET optimizer_switch='orderby_uses_equalities=on';
-SELECT wings.id as wing_id, wings.department_id FROM wings
-WHERE wings.id IN ( SELECT books.wings_id FROM books
-WHERE books.library_id = 8663 AND
-books.scheduled_for_removal=0 )
-ORDER BY wings.id;
-wing_id department_id
-707 11768
-explain extended SELECT wings.id as wing_id, wings.department_id FROM wings
-WHERE wings.id IN ( SELECT books.wings_id FROM books
-WHERE books.library_id = 8663 AND
-books.scheduled_for_removal=0 )
-ORDER BY wings.id;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 1 100.00 Using temporary; Using filesort
-1 PRIMARY wings eq_ref PRIMARY PRIMARY 4 test.books.wings_id 1 100.00
-2 MATERIALIZED books ref library_idx library_idx 4 const 1 100.00 Using where
-Warnings:
-Note 1003 select `test`.`wings`.`id` AS `wing_id`,`test`.`wings`.`department_id` AS `department_id` from `test`.`wings` semi join (`test`.`books`) where `test`.`books`.`library_id` = 8663 and `test`.`books`.`scheduled_for_removal` = 0 and `test`.`wings`.`id` = `test`.`books`.`wings_id` order by `test`.`wings`.`id`
-set optimizer_switch= @save_optimizer_switch;
-DROP TABLE books, wings;
diff --git a/mysql-test/r/order_by_innodb.result b/mysql-test/r/order_by_innodb.result
deleted file mode 100644
index 3ff1f92e94a..00000000000
--- a/mysql-test/r/order_by_innodb.result
+++ /dev/null
@@ -1,123 +0,0 @@
-drop table if exists t0,t1,t2,t3;
-#
-# MDEV-6434: Wrong result (extra rows) with ORDER BY, multiple-column index, InnoDB
-#
-CREATE TABLE t1 (a INT, b INT, c INT, d TEXT, KEY idx(a,b,c)) ENGINE=InnoDB;
-INSERT INTO t1 (a,c) VALUES
-(8, 9),(8, 10),(13, 15),(16, 17),(16, 18),(16, 19),(20, 21),
-(20, 22),(20, 24),(20, 25),(20, 26),(20, 27),(20, 28);
-SELECT * FROM t1 WHERE a = 8 AND (b = 1 OR b IS NULL) ORDER BY c;
-a b c d
-8 NULL 9 NULL
-8 NULL 10 NULL
-DROP TABLE t1;
-#
-# MDEV-9457: Poor query plan chosen for ORDER BY query by a recent 10.1
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (
-pk int primary key,
-key1 int,
-key2 int,
-col1 char(255),
-key(key1),
-key(key2)
-) engine=innodb;
-set @a=-1;
-insert into t1
-select
-@a:=@a+1,
-@a,
-@a,
-repeat('abcd', 63)
-from t0 A, t0 B, t0 C, t0 D;
-# The following must NOT use 'index' on PK.
-# It should use index_merge(key1,key2) + filesort
-explain
-select *
-from t1
-where key1<3 or key2<3
-order by pk;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2 key1,key2 5,5 NULL # Using sort_union(key1,key2); Using where; Using filesort
-explain
-select *
-from t1
-where key1<3 or key2<3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2 key1,key2 5,5 NULL # Using sort_union(key1,key2); Using where
-drop table t0, t1;
-#
-# MDEV-14071: wrong results with orderby_uses_equalities=on
-# (duplicate of MDEV-13994)
-#
-CREATE TABLE t1 (i int, j int, z int,PRIMARY KEY (i,j), KEY (z)) ENGINE=InnoDB;
-CREATE TABLE t2 (i int, j int, PRIMARY KEY (i,j)) ENGINE=InnoDB;
-CREATE TABLE t3 (j int, n varchar(5), PRIMARY KEY (j)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-(127,0,1),(188,0,1),(206,0,1),(218,0,1),(292,0,1),(338,0,1),(375,0,1),
-(381,0,1),(409,0,1),(466,0,1),(469,0,1),(498,0,1),(656,0,1);
-INSERT INTO t1 VALUES
-(77,4,0),(86,7,0),(96,6,0),(96,7,0),(99,9,0),(99,10,0),(99,11,0),(104,4,0),
-(106,5,0),(148,6,0),(177,6,0),(181,5,0),(188,8,0),(218,8,0),(253,7,0),
-(268,4,0),(338,4,0),(409,7,0),(466,8,0),(469,8,0),(498,8,0),(656,8,0);
-INSERT INTO t2 VALUES
-(127,7),(188,8),(188,9),(206,6),(218,8),(218,9),(292,7),(338,4),(338,5),
-(375,6),(381,5),(409,7),(409,8),(466,8),(466,9),(469,8),(469,9),(498,8),
-(498,9),(656,8),(656,9);
-INSERT INTO t3 VALUES
-(4,'four'),(5,'five'),(6,'six'),(7,'seven'),(8,'eight'),(9,'nine');
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='orderby_uses_equalities=off';
-SELECT i,n
-FROM t1 INNER JOIN t2 USING (i,j) LEFT JOIN t3 USING (j)
-WHERE i IN (SELECT i FROM t1 WHERE z=1) AND z=0 ORDER BY i;
-i n
-188 eight
-218 eight
-338 four
-409 seven
-466 eight
-469 eight
-498 eight
-656 eight
-SELECT i,n
-FROM t1 x INNER JOIN t2 USING (i,j) LEFT JOIN t3 USING (j)
-WHERE EXISTS (SELECT * FROM t1 WHERE i=x.i AND z=1) AND z=0 ORDER BY i;
-i n
-188 eight
-218 eight
-338 four
-409 seven
-466 eight
-469 eight
-498 eight
-656 eight
-SET optimizer_switch='orderby_uses_equalities=on';
-SELECT i,n
-FROM t1 INNER JOIN t2 USING (i,j) LEFT JOIN t3 USING (j)
-WHERE i IN (SELECT i FROM t1 WHERE z=1) AND z=0 ORDER BY i;
-i n
-188 eight
-218 eight
-338 four
-409 seven
-466 eight
-469 eight
-498 eight
-656 eight
-SELECT i,n
-FROM t1 x INNER JOIN t2 USING (i,j) LEFT JOIN t3 USING (j)
-WHERE EXISTS (SELECT * FROM t1 WHERE i=x.i AND z=1) AND z=0 ORDER BY i;
-i n
-188 eight
-218 eight
-338 four
-409 seven
-466 eight
-469 eight
-498 eight
-656 eight
-set optimizer_switch= @save_optimizer_switch;
-DROP TABLE t1,t2,t3;
diff --git a/mysql-test/r/order_by_optimizer.result b/mysql-test/r/order_by_optimizer.result
deleted file mode 100644
index 8f128552a86..00000000000
--- a/mysql-test/r/order_by_optimizer.result
+++ /dev/null
@@ -1,30 +0,0 @@
-drop table if exists t0,t1,t2,t3;
-#
-# MDEV-7885: EXPLAIN shows wrong info for ORDER BY query
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int);
-insert into t1 select A.a + B.a* 10 + C.a * 100 from t0 A, t0 B, t0 C;
-create table t2 (key1 int, col1 int, key(key1));
-insert into t2 select a,a from t0;
-insert into t2 select 15,15 from t1;
-alter table t2 add key2 int, add key(key2);
-# This must show "Using filesort":
-explain
-select * from t2 ignore index for order by (key1) where col1<0 order by key1 limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1010 Using where; Using filesort
-drop table t0, t1, t2;
-#
-# MDEV-8857: [Upstream too] EXPLAIN incorrectly shows Distinct for tables using join buffer
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, filler char(200), key(a));
-insert into t1 select A.a + B.a* 10, 'AAAAAAAAAAAAAAAAAAAA' from t0 A, t0 B where B.a in (0,1);
-explain select distinct A.a from t0 A, t1 B where A.a+B.a> 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE A ALL NULL NULL NULL NULL 10 Using temporary
-1 SIMPLE B index NULL a 5 NULL 20 Using where; Using index; Using join buffer (flat, BNL join)
-drop table t0, t1;
diff --git a/mysql-test/r/order_by_optimizer_innodb.result b/mysql-test/r/order_by_optimizer_innodb.result
deleted file mode 100644
index 0b62ba997d8..00000000000
--- a/mysql-test/r/order_by_optimizer_innodb.result
+++ /dev/null
@@ -1,98 +0,0 @@
-drop table if exists t0,t1,t2,t3;
-#
-# MDEV-6402: Optimizer doesn't choose best execution plan when composite key is used
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int);
-insert into t1 select A.a + B.a* 10 + C.a * 100 from t0 A, t0 B, t0 C;
-CREATE TABLE t2 (
-pk1 int(11) NOT NULL,
-pk2 int(11) NOT NULL,
-fd5 bigint(20) DEFAULT NULL,
-filler1 char(200),
-filler2 char(200),
-PRIMARY KEY (pk1,pk2),
-UNIQUE KEY ux_pk1_fd5 (pk1,fd5)
-) ENGINE=InnoDB;
-insert into t2
-select
-round(log(2,t1.a+1)),
-t1.a,
-t1.a,
-REPEAT('filler-data-', 10),
-REPEAT('filler-data-', 10)
-from
-t1;
-select pk1, count(*) from t2 group by pk1;
-pk1 count(*)
-0 1
-1 1
-2 3
-3 6
-4 11
-5 23
-6 45
-7 91
-8 181
-9 362
-10 276
-# The following should use range(ux_pk1_fd5), two key parts (key_len=5+8=13)
-EXPLAIN SELECT * FROM t2 USE INDEX(ux_pk1_fd5) WHERE pk1=9 AND fd5 < 500 ORDER BY fd5 DESC LIMIT 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range ux_pk1_fd5 ux_pk1_fd5 13 NULL 138 Using where
-# This also must use range, not ref. key_len must be 13
-EXPLAIN SELECT * FROM t2 WHERE pk1=9 AND fd5 < 500 ORDER BY fd5 DESC LIMIT 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range PRIMARY,ux_pk1_fd5 ux_pk1_fd5 13 NULL 138 Using where
-drop table t0,t1, t2;
-#
-# MDEV-6814: Server crashes in calculate_key_len on query with ORDER BY
-#
-CREATE TABLE t1 (f1 INT, f2 INT, f3 INT, KEY(f2),KEY(f2,f1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,5,0),(2,6,0);
-SELECT * FROM t1 WHERE f1 < 3 AND f2 IS NULL ORDER BY f1;
-f1 f2 f3
-DROP TABLE t1;
-#
-# MDEV-6796: Unable to skip filesort when using implicit extended key
-#
-CREATE TABLE t1 (
-pk1 int(11) NOT NULL,
-pk2 varchar(64) NOT NULL,
-col1 varchar(16) DEFAULT NULL,
-PRIMARY KEY (pk1,pk2),
-KEY key1 (pk1,col1)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-CREATE TABLE t2 (
-pk1 int(11) NOT NULL,
-pk2 varchar(64) NOT NULL,
-col1 varchar(16) DEFAULT NULL,
-PRIMARY KEY (pk1,pk2),
-KEY key1 (pk1,col1,pk2)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT INTO `t1` VALUES
-(12321321,'a8f5f167f44f4964e6c998dee827110c','video'),
-(12321321,'d77a17a3659ffa60c54e0ea17b6c6d16','video'),
-(12321321,'wwafdsafdsafads','video'),
-(12321321,'696aa249f0738e8181957dd57c2d7d0b','video-2014-09-23'),
-(12321321,'802f9f29584b486f356693e3aa4ef0af','video=sdsd'),
-(12321321,'2f94543ff74aab82e9a058b4e8316d75','video=sdsdsds'),
-(12321321,'c1316b9df0d203fd1b9035308de52a0a','video=sdsdsdsdsd');
-insert into t2 select * from t1;
-# this must not use filesort:
-explain SELECT pk2
-FROM t1 USE INDEX(key1)
-WHERE pk1 = 123
-AND col1 = 'video'
-ORDER BY pk2 DESC LIMIT 21;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref key1 key1 55 const,const 1 Using where; Using index
-# this must not use filesort, either:
-explain SELECT pk2
-FROM t2 USE INDEX(key1)
-WHERE pk1 = 123 AND col1 = 'video'
-ORDER BY pk2 DESC LIMIT 21;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref key1 key1 55 const,const 1 Using where; Using index
-drop table t1, t2;
diff --git a/mysql-test/r/order_by_sortkey.result b/mysql-test/r/order_by_sortkey.result
deleted file mode 100644
index c1d9609eb47..00000000000
--- a/mysql-test/r/order_by_sortkey.result
+++ /dev/null
@@ -1,161 +0,0 @@
-CREATE TABLE t1(
-f0 int auto_increment PRIMARY KEY,
-f1 int,
-f2 varchar(200)
-);
-INSERT INTO t1(f1, f2) VALUES
-(0,"0"),(1,"1"),(2,"2"),(3,"3"),(4,"4"),(5,"5"),
-(6,"6"),(7,"7"),(8,"8"),(9,"9"),(10,"10"),
-(11,"11"),(12,"12"),(13,"13"),(14,"14"),(15,"15"),
-(16,"16"),(17,"17"),(18,"18"),(19,"19"),(20,"20"),
-(21,"21"),(22,"22"),(23,"23"),(24,"24"),(25,"25"),
-(26,"26"),(27,"27"),(28,"28"),(29,"29"),(30,"30"),
-(31,"31"),(32,"32"),(33,"33"),(34,"34"),(35,"35"),
-(36,"36"),(37,"37"),(38,"38"),(39,"39"),(40,"40"),
-(41,"41"),(42,"42"),(43,"43"),(44,"44"),(45,"45"),
-(46,"46"),(47,"47"),(48,"48"),(49,"49"),(50,"50"),
-(51,"51"),(52,"52"),(53,"53"),(54,"54"),(55,"55"),
-(56,"56"),(57,"57"),(58,"58"),(59,"59"),(60,"60"),
-(61,"61"),(62,"62"),(63,"63"),(64,"64"),(65,"65"),
-(66,"66"),(67,"67"),(68,"68"),(69,"69"),(70,"70"),
-(71,"71"),(72,"72"),(73,"73"),(74,"74"),(75,"75"),
-(76,"76"),(77,"77"),(78,"78"),(79,"79"),(80,"80"),
-(81,"81"),(82,"82"),(83,"83"),(84,"84"),(85,"85"),
-(86,"86"),(87,"87"),(88,"88"),(89,"89"),(90,"90"),
-(91,"91"),(92,"92"),(93,"93"),(94,"94"),(95,"95"),
-(96,"96"),(97,"97"),(98,"98"),(99,"99");
-CREATE TEMPORARY TABLE tmp (f1 int, f2 varchar(20));
-INSERT INTO tmp SELECT f1,f2 FROM t1;
-INSERT INTO t1(f1,f2) SELECT * FROM tmp;
-INSERT INTO tmp SELECT f1,f2 FROM t1;
-INSERT INTO t1(f1,f2) SELECT * FROM tmp;
-INSERT INTO t1(f1,f2) SELECT * FROM tmp;
-INSERT INTO tmp SELECT f1,f2 FROM t1;
-INSERT INTO t1(f1,f2) SELECT * FROM tmp;
-INSERT INTO tmp SELECT f1,f2 FROM t1;
-INSERT INTO t1(f1,f2) SELECT * FROM tmp;
-INSERT INTO tmp SELECT f1,f2 FROM t1;
-INSERT INTO t1(f1,f2) SELECT * FROM tmp;
-INSERT INTO tmp SELECT f1,f2 FROM t1;
-INSERT INTO t1(f1,f2) SELECT * FROM tmp;
-INSERT INTO tmp SELECT f1,f2 FROM t1;
-INSERT INTO t1(f1,f2) SELECT * FROM tmp;
-set sort_buffer_size= 32768;
-FLUSH STATUS;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SELECT * FROM t1 ORDER BY f2 LIMIT 100;
-f0 f1 f2
-1 0 0
-101 0 0
-201 0 0
-301 0 0
-401 0 0
-501 0 0
-601 0 0
-701 0 0
-801 0 0
-901 0 0
-1001 0 0
-1101 0 0
-1201 0 0
-1301 0 0
-1401 0 0
-1501 0 0
-1601 0 0
-1701 0 0
-1801 0 0
-1901 0 0
-2001 0 0
-2101 0 0
-2201 0 0
-2301 0 0
-2401 0 0
-2501 0 0
-2601 0 0
-2701 0 0
-2801 0 0
-2901 0 0
-3001 0 0
-3101 0 0
-3201 0 0
-3301 0 0
-3401 0 0
-3501 0 0
-3601 0 0
-3701 0 0
-3801 0 0
-3901 0 0
-4001 0 0
-4101 0 0
-4201 0 0
-4301 0 0
-4401 0 0
-4501 0 0
-4601 0 0
-4701 0 0
-4801 0 0
-4901 0 0
-5001 0 0
-5101 0 0
-5201 0 0
-5301 0 0
-5401 0 0
-5501 0 0
-5601 0 0
-5701 0 0
-5801 0 0
-5901 0 0
-6001 0 0
-6101 0 0
-6201 0 0
-6301 0 0
-6401 0 0
-6501 0 0
-6601 0 0
-6701 0 0
-6801 0 0
-6901 0 0
-7001 0 0
-7101 0 0
-7201 0 0
-7301 0 0
-7401 0 0
-7501 0 0
-7601 0 0
-7701 0 0
-7801 0 0
-7901 0 0
-8001 0 0
-8101 0 0
-8201 0 0
-8301 0 0
-8401 0 0
-8501 0 0
-8601 0 0
-8701 0 0
-8801 0 0
-8901 0 0
-9001 0 0
-9101 0 0
-9201 0 0
-9301 0 0
-9401 0 0
-9501 0 0
-9601 0 0
-9701 0 0
-9801 0 0
-9901 0 0
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 100
-Sort_scan 1
-DROP TABLE t1, tmp;
diff --git a/mysql-test/r/order_by_zerolength-4285.result b/mysql-test/r/order_by_zerolength-4285.result
deleted file mode 100644
index e6902105f20..00000000000
--- a/mysql-test/r/order_by_zerolength-4285.result
+++ /dev/null
@@ -1,27 +0,0 @@
-create table t1 (pk int primary key);
-insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
-select * from t1 order by now(), cast(pk as char(0));
-pk
-1
-10
-2
-3
-4
-5
-6
-7
-8
-9
-show warnings;
-Level Code Message
-Warning 1292 Truncated incorrect CHAR(0) value: '1'
-Warning 1292 Truncated incorrect CHAR(0) value: '2'
-Warning 1292 Truncated incorrect CHAR(0) value: '3'
-Warning 1292 Truncated incorrect CHAR(0) value: '4'
-Warning 1292 Truncated incorrect CHAR(0) value: '5'
-Warning 1292 Truncated incorrect CHAR(0) value: '6'
-Warning 1292 Truncated incorrect CHAR(0) value: '7'
-Warning 1292 Truncated incorrect CHAR(0) value: '8'
-Warning 1292 Truncated incorrect CHAR(0) value: '9'
-Warning 1292 Truncated incorrect CHAR(0) value: '10'
-drop table t1;
diff --git a/mysql-test/r/order_fill_sortbuf.result b/mysql-test/r/order_fill_sortbuf.result
deleted file mode 100644
index 6a0bd9d966b..00000000000
--- a/mysql-test/r/order_fill_sortbuf.result
+++ /dev/null
@@ -1,11 +0,0 @@
-drop table if exists t1,t2;
-set @@sort_buffer_size=32804;
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL default '0',
-`id2` int(11) NOT NULL default '0',
-`id3` int(11) NOT NULL default '0');
-create table t2 select id2 from t1 order by id3;
-select count(*) from t2;
-count(*)
-4000
-drop table t1,t2;
diff --git a/mysql-test/r/outfile.result b/mysql-test/r/outfile.result
deleted file mode 100644
index 4c439c37e4d..00000000000
--- a/mysql-test/r/outfile.result
+++ /dev/null
Binary files differ
diff --git a/mysql-test/r/outfile_loaddata.result b/mysql-test/r/outfile_loaddata.result
deleted file mode 100644
index ca3a42c087c..00000000000
--- a/mysql-test/r/outfile_loaddata.result
+++ /dev/null
@@ -1,270 +0,0 @@
-DROP TABLE IF EXISTS t1, t2;
-#
-# Bug#31663 FIELDS TERMINATED BY special character
-#
-CREATE TABLE t1 (i1 int, i2 int, c1 VARCHAR(256), c2 VARCHAR(256));
-INSERT INTO t1 VALUES (101, 202, '-r-', '=raker=');
-# FIELDS TERMINATED BY 'raker', warning:
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' FIELDS TERMINATED BY 'raker' FROM t1;
-Warnings:
-Warning 1475 First character of the FIELDS TERMINATED string is ambiguous; please use non-optional and non-empty FIELDS ENCLOSED BY
-SELECT LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt');
-LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt')
-101raker202raker-r-raker=raker=
-
-CREATE TABLE t2 SELECT * FROM t1;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' INTO TABLE t2 FIELDS TERMINATED BY 'raker';
-Warnings:
-Warning 1262 Row 1 was truncated; it contained more data than there were input columns
-SELECT * FROM t2;
-i1 i2 c1 c2
-101 202 -r- =raker=
-101 202 -r- =
-DROP TABLE t2;
-# Only numeric fields, FIELDS TERMINATED BY 'r', no warnings:
-SELECT i1, i2 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' FIELDS TERMINATED BY 'r' FROM t1;
-SELECT LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt');
-LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt')
-101r202
-
-CREATE TABLE t2 SELECT i1, i2 FROM t1;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' INTO TABLE t2 FIELDS TERMINATED BY 'r';
-SELECT i1, i2 FROM t2;
-i1 i2
-101 202
-101 202
-DROP TABLE t2;
-# FIELDS TERMINATED BY '0', warning:
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' FIELDS TERMINATED BY '0' FROM t1;
-Warnings:
-Warning 1475 First character of the FIELDS TERMINATED string is ambiguous; please use non-optional and non-empty FIELDS ENCLOSED BY
-SELECT LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt');
-LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt')
-10102020-r-0=raker=
-
-CREATE TABLE t2 SELECT * FROM t1;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' INTO TABLE t2 FIELDS TERMINATED BY '0';
-Warnings:
-Warning 1262 Row 1 was truncated; it contained more data than there were input columns
-SELECT * FROM t2;
-i1 i2 c1 c2
-101 202 -r- =raker=
-1 1 2 2
-DROP TABLE t2;
-# FIELDS OPTIONALLY ENCLOSED BY '"' TERMINATED BY '0', warning:
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' FIELDS OPTIONALLY ENCLOSED BY '"' TERMINATED BY '0' FROM t1;
-Warnings:
-Warning 1475 First character of the FIELDS TERMINATED string is ambiguous; please use non-optional and non-empty FIELDS ENCLOSED BY
-SELECT LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt');
-LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt')
-10102020"-r-"0"=raker="
-
-CREATE TABLE t2 SELECT * FROM t1;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' INTO TABLE t2 FIELDS OPTIONALLY ENCLOSED BY '"' TERMINATED BY '0';
-Warnings:
-Warning 1262 Row 1 was truncated; it contained more data than there were input columns
-SELECT * FROM t2;
-i1 i2 c1 c2
-101 202 -r- =raker=
-1 1 2 2
-DROP TABLE t2;
-# Only string fields, FIELDS OPTIONALLY ENCLOSED BY '"' TERMINATED BY '0', no warnings:
-SELECT c1, c2 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' FIELDS OPTIONALLY ENCLOSED BY '"' TERMINATED BY '0' FROM t1;
-SELECT LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt');
-LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt')
-"-r-"0"=raker="
-
-CREATE TABLE t2 SELECT c1, c2 FROM t1;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' INTO TABLE t2 FIELDS OPTIONALLY ENCLOSED BY '"' TERMINATED BY '0';
-SELECT c1, c2 FROM t2;
-c1 c2
--r- =raker=
--r- =raker=
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Bug#32533: SELECT INTO OUTFILE never escapes multibyte character
-#
-CREATE TABLE t1 (c1 VARCHAR(256));
-INSERT INTO t1 VALUES (0xC3);
-SELECT HEX(c1) FROM t1;
-HEX(c1)
-C3
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug32533.txt' FIELDS ENCLOSED BY 0xC3 FROM t1;
-Warnings:
-Warning 1638 Non-ASCII separator arguments are not fully supported
-TRUNCATE t1;
-SELECT HEX(LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug32533.txt'));
-HEX(LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug32533.txt'))
-C35CC3C30A
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug32533.txt' INTO TABLE t1 FIELDS ENCLOSED BY 0xC3;
-Warnings:
-Warning 1638 Non-ASCII separator arguments are not fully supported
-SELECT HEX(c1) FROM t1;
-HEX(c1)
-C3
-DROP TABLE t1;
-# End of 5.0 tests.
-#
-# Bug #30946: mysqldump silently ignores --default-character-set
-# when used with --tab
-#
-# Also see mysqldump.test
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a INT, b CHAR(10) CHARSET koi8r, c CHAR(10) CHARSET latin1);
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t1 VALUES (1, 'ABC-ÐБВ', 'DEF-ÂÃÄ'), (2, NULL, NULL);
-# Error on multi-character ENCLOSED/ESCAPED BY
-SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FIELDS ENCLOSED BY '12345';
-ERROR 42000: Field separator argument is not what is expected; check the manual
-SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FIELDS ESCAPED BY '12345';
-ERROR 42000: Field separator argument is not what is expected; check the manual
-# "Not implemented" warning on multibyte ENCLOSED/ESCAPED BY character,
-# LOAD DATA rises error or has unpredictable result -- to be fixed later
-SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FIELDS ENCLOSED BY 'ÑŠ';
-Warnings:
-Warning 1638 Non-ASCII separator arguments are not fully supported
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary FIELDS ENCLOSED BY 'ÑŠ';
-ERROR 42000: Field separator argument is not what is expected; check the manual
-SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FIELDS ESCAPED BY 'ÑŠ';
-Warnings:
-Warning 1638 Non-ASCII separator arguments are not fully supported
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary FIELDS ESCAPED BY 'ÑŠ';
-ERROR 42000: Field separator argument is not what is expected; check the manual
-SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FIELDS TERMINATED BY 'ÑŠ';
-Warnings:
-Warning 1638 Non-ASCII separator arguments are not fully supported
-##################################################
-1ÑŠABC-áâ÷ÑŠDEF-ÂÃÄ
-2ÑŠ\NÑŠ\N
-##################################################
-TRUNCATE t2;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary FIELDS TERMINATED BY 'ÑŠ';
-Warnings:
-Warning 1638 Non-ASCII separator arguments are not fully supported
-SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
-a b c
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-SELECT * FROM t1;
-a b c
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-SELECT * FROM t2;
-a b c
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' LINES STARTING BY 'ÑŠ';
-Warnings:
-Warning 1638 Non-ASCII separator arguments are not fully supported
-##################################################
-ÑŠ1 ABC-áâ÷ DEF-ÂÃÄ
-ÑŠ2 \N \N
-##################################################
-TRUNCATE t2;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary LINES STARTING BY 'ÑŠ';
-Warnings:
-Warning 1638 Non-ASCII separator arguments are not fully supported
-SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
-a b c
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' LINES TERMINATED BY 'ÑŠ';
-Warnings:
-Warning 1638 Non-ASCII separator arguments are not fully supported
-##################################################
-1 ABC-áâ÷ DEF-ÂÃÄÑŠ2 \N \NÑŠ##################################################
-TRUNCATE t2;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary LINES TERMINATED BY 'ÑŠ';
-Warnings:
-Warning 1638 Non-ASCII separator arguments are not fully supported
-SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
-a b c
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-SELECT * FROM t1;
-a b c
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-SELECT * FROM t2;
-a b c
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-# Default (binary) charset:
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FROM t1;
-##################################################
-1 ABC-áâ÷ DEF-ÂÃÄ
-2 \N \N
-##################################################
-TRUNCATE t2;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary;
-SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
-a b c
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-# latin1 charset (INTO OUTFILE warning is expected):
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' CHARACTER SET latin1 FROM t1;
-Warnings:
-Warning 1366 Incorrect string value: '\xE1\xE2\xF7' for column 'b' at row 1
-##################################################
-1 ABC-??? DEF-ÂÃÄ
-2 \N \N
-##################################################
-TRUNCATE t2;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET latin1 ;
-SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
-a b c
-1 ABC-??? DEF-ÂÃÄ
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-# KOI8-R charset (INTO OUTFILE warning is expected):
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' CHARACTER SET koi8r FROM t1;
-Warnings:
-Warning 1366 Incorrect string value: '\xC2\xC3\xC4' for column 'c' at row 1
-##################################################
-1 ABC-áâ÷ DEF-???
-2 \N \N
-##################################################
-TRUNCATE t2;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET koi8r;
-SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
-a b c
-1 ABC-ÐБВ DEF-???
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-# UTF-8 charset:
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' CHARACTER SET utf8 FROM t1;
-##################################################
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 \N \N
-##################################################
-TRUNCATE t2;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET utf8;
-SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
-a b c
-1 ABC-ÐБВ DEF-ÂÃÄ
-2 NULL NULL
-SET NAMES default;
-DROP TABLE t1, t2;
-#
-# Bug #53088: mysqldump with -T & --default-character-set set
-# truncates text/blob to 766 chars
-#
-# Also see mysqldump.test
-#
-CREATE TABLE t1 (a BLOB) CHARSET latin1;
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t1 VALUES (REPEAT('.', 800));
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug53088.txt' CHARACTER SET latin1 FROM t1;
-# should be greater than 800
-SELECT LENGTH(LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug53088.txt'));
-LENGTH(LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug53088.txt'))
-801
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug53088.txt' INTO TABLE t2;
-# should be 800
-SELECT LENGTH(a) FROM t2;
-LENGTH(a)
-800
-DROP TABLE t1, t2;
-# End of 5.1 tests.
diff --git a/mysql-test/r/overflow.result b/mysql-test/r/overflow.result
deleted file mode 100644
index a3e93aa5cba..00000000000
--- a/mysql-test/r/overflow.result
+++ /dev/null
@@ -1,6 +0,0 @@
-connect con1,localhost,root,,;
-connection con1;
-drop database AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA;
-Got one of the listed errors
-connection default;
-disconnect con1;
diff --git a/mysql-test/r/packet.result b/mysql-test/r/packet.result
deleted file mode 100644
index 254ad93d78e..00000000000
--- a/mysql-test/r/packet.result
+++ /dev/null
@@ -1,38 +0,0 @@
-set @max_allowed_packet=@@global.max_allowed_packet;
-set @net_buffer_length=@@global.net_buffer_length;
-set global max_allowed_packet=100;
-Warnings:
-Warning 1292 Truncated incorrect max_allowed_packet value: '100'
-Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
-set global net_buffer_length=100;
-Warnings:
-Warning 1292 Truncated incorrect net_buffer_length value: '100'
-SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;
-len
-1024
-select repeat('a',2000);
-repeat('a',2000)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-connect con1,localhost,root,,;
-connection con1;
-select @@net_buffer_length, @@max_allowed_packet;
-@@net_buffer_length @@max_allowed_packet
-1024 1024
-SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;
-ERROR 08S01: Got a packet bigger than 'max_allowed_packet' bytes
-connection default;
-disconnect con1;
-set global max_allowed_packet=default;
-set global net_buffer_length=default;
-connect con2,localhost,root,,;
-connection con2;
-SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;
-len
-100
-select length(repeat('a',2000));
-length(repeat('a',2000))
-2000
-connection default;
-disconnect con2;
-set global max_allowed_packet=@max_allowed_packet;
-set global net_buffer_length=@net_buffer_length;
diff --git a/mysql-test/r/parser.result b/mysql-test/r/parser.result
deleted file mode 100644
index a1c6e86a129..00000000000
--- a/mysql-test/r/parser.result
+++ /dev/null
@@ -1,1351 +0,0 @@
-SET @save_sql_mode=@@sql_mode;
-set SQL_MODE='';
-create table ADDDATE(a int);
-drop table ADDDATE;
-create table ADDDATE (a int);
-drop table ADDDATE;
-create table BIT_AND(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'BIT_AND(a int)' at line 1
-create table BIT_AND (a int);
-drop table BIT_AND;
-create table BIT_OR(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'BIT_OR(a int)' at line 1
-create table BIT_OR (a int);
-drop table BIT_OR;
-create table BIT_XOR(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'BIT_XOR(a int)' at line 1
-create table BIT_XOR (a int);
-drop table BIT_XOR;
-create table CAST(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CAST(a int)' at line 1
-create table CAST (a int);
-drop table CAST;
-create table COUNT(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'COUNT(a int)' at line 1
-create table COUNT (a int);
-drop table COUNT;
-create table CURDATE(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CURDATE(a int)' at line 1
-create table CURDATE (a int);
-drop table CURDATE;
-create table CURTIME(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CURTIME(a int)' at line 1
-create table CURTIME (a int);
-drop table CURTIME;
-create table DATE_ADD(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DATE_ADD(a int)' at line 1
-create table DATE_ADD (a int);
-drop table DATE_ADD;
-create table DATE_SUB(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DATE_SUB(a int)' at line 1
-create table DATE_SUB (a int);
-drop table DATE_SUB;
-create table EXTRACT(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'EXTRACT(a int)' at line 1
-create table EXTRACT (a int);
-drop table EXTRACT;
-create table GROUP_CONCAT(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP_CONCAT(a int)' at line 1
-create table GROUP_CONCAT (a int);
-drop table GROUP_CONCAT;
-create table GROUP_UNIQUE_USERS(a int);
-drop table GROUP_UNIQUE_USERS;
-create table GROUP_UNIQUE_USERS (a int);
-drop table GROUP_UNIQUE_USERS;
-create table MAX(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'MAX(a int)' at line 1
-create table MAX (a int);
-drop table MAX;
-create table MID(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'MID(a int)' at line 1
-create table MID (a int);
-drop table MID;
-create table MIN(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'MIN(a int)' at line 1
-create table MIN (a int);
-drop table MIN;
-create table NOW(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NOW(a int)' at line 1
-create table NOW (a int);
-drop table NOW;
-create table POSITION(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'POSITION(a int)' at line 1
-create table POSITION (a int);
-drop table POSITION;
-create table SESSION_USER(a int);
-drop table SESSION_USER;
-create table SESSION_USER (a int);
-drop table SESSION_USER;
-create table STD(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'STD(a int)' at line 1
-create table STD (a int);
-drop table STD;
-create table STDDEV(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'STDDEV(a int)' at line 1
-create table STDDEV (a int);
-drop table STDDEV;
-create table STDDEV_POP(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'STDDEV_POP(a int)' at line 1
-create table STDDEV_POP (a int);
-drop table STDDEV_POP;
-create table STDDEV_SAMP(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'STDDEV_SAMP(a int)' at line 1
-create table STDDEV_SAMP (a int);
-drop table STDDEV_SAMP;
-create table SUBDATE(a int);
-drop table SUBDATE;
-create table SUBDATE (a int);
-drop table SUBDATE;
-create table SUBSTR(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SUBSTR(a int)' at line 1
-create table SUBSTR (a int);
-drop table SUBSTR;
-create table SUBSTRING(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SUBSTRING(a int)' at line 1
-create table SUBSTRING (a int);
-drop table SUBSTRING;
-create table SUM(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SUM(a int)' at line 1
-create table SUM (a int);
-drop table SUM;
-create table SYSDATE(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SYSDATE(a int)' at line 1
-create table SYSDATE (a int);
-drop table SYSDATE;
-create table SYSTEM_USER(a int);
-drop table SYSTEM_USER;
-create table SYSTEM_USER (a int);
-drop table SYSTEM_USER;
-create table TRIM(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TRIM(a int)' at line 1
-create table TRIM (a int);
-drop table TRIM;
-create table UNIQUE_USERS(a int);
-drop table UNIQUE_USERS;
-create table UNIQUE_USERS (a int);
-drop table UNIQUE_USERS;
-create table VARIANCE(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VARIANCE(a int)' at line 1
-create table VARIANCE (a int);
-drop table VARIANCE;
-create table VAR_POP(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VAR_POP(a int)' at line 1
-create table VAR_POP (a int);
-drop table VAR_POP;
-create table VAR_SAMP(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VAR_SAMP(a int)' at line 1
-create table VAR_SAMP (a int);
-drop table VAR_SAMP;
-set SQL_MODE='IGNORE_SPACE';
-create table ADDDATE(a int);
-drop table ADDDATE;
-create table ADDDATE (a int);
-drop table ADDDATE;
-create table BIT_AND(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'BIT_AND(a int)' at line 1
-create table BIT_AND (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'BIT_AND (a int)' at line 1
-create table BIT_OR(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'BIT_OR(a int)' at line 1
-create table BIT_OR (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'BIT_OR (a int)' at line 1
-create table BIT_XOR(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'BIT_XOR(a int)' at line 1
-create table BIT_XOR (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'BIT_XOR (a int)' at line 1
-create table CAST(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CAST(a int)' at line 1
-create table CAST (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CAST (a int)' at line 1
-create table COUNT(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'COUNT(a int)' at line 1
-create table COUNT (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'COUNT (a int)' at line 1
-create table CURDATE(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CURDATE(a int)' at line 1
-create table CURDATE (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CURDATE (a int)' at line 1
-create table CURTIME(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CURTIME(a int)' at line 1
-create table CURTIME (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CURTIME (a int)' at line 1
-create table DATE_ADD(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DATE_ADD(a int)' at line 1
-create table DATE_ADD (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DATE_ADD (a int)' at line 1
-create table DATE_SUB(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DATE_SUB(a int)' at line 1
-create table DATE_SUB (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DATE_SUB (a int)' at line 1
-create table EXTRACT(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'EXTRACT(a int)' at line 1
-create table EXTRACT (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'EXTRACT (a int)' at line 1
-create table GROUP_CONCAT(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP_CONCAT(a int)' at line 1
-create table GROUP_CONCAT (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP_CONCAT (a int)' at line 1
-create table GROUP_UNIQUE_USERS(a int);
-drop table GROUP_UNIQUE_USERS;
-create table GROUP_UNIQUE_USERS (a int);
-drop table GROUP_UNIQUE_USERS;
-create table MAX(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'MAX(a int)' at line 1
-create table MAX (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'MAX (a int)' at line 1
-create table MID(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'MID(a int)' at line 1
-create table MID (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'MID (a int)' at line 1
-create table MIN(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'MIN(a int)' at line 1
-create table MIN (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'MIN (a int)' at line 1
-create table NOW(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NOW(a int)' at line 1
-create table NOW (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NOW (a int)' at line 1
-create table POSITION(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'POSITION(a int)' at line 1
-create table POSITION (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'POSITION (a int)' at line 1
-create table SESSION_USER(a int);
-drop table SESSION_USER;
-create table SESSION_USER (a int);
-drop table SESSION_USER;
-create table STD(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'STD(a int)' at line 1
-create table STD (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'STD (a int)' at line 1
-create table STDDEV(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'STDDEV(a int)' at line 1
-create table STDDEV (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'STDDEV (a int)' at line 1
-create table STDDEV_POP(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'STDDEV_POP(a int)' at line 1
-create table STDDEV_POP (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'STDDEV_POP (a int)' at line 1
-create table STDDEV_SAMP(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'STDDEV_SAMP(a int)' at line 1
-create table STDDEV_SAMP (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'STDDEV_SAMP (a int)' at line 1
-create table SUBDATE(a int);
-drop table SUBDATE;
-create table SUBDATE (a int);
-drop table SUBDATE;
-create table SUBSTR(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SUBSTR(a int)' at line 1
-create table SUBSTR (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SUBSTR (a int)' at line 1
-create table SUBSTRING(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SUBSTRING(a int)' at line 1
-create table SUBSTRING (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SUBSTRING (a int)' at line 1
-create table SUM(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SUM(a int)' at line 1
-create table SUM (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SUM (a int)' at line 1
-create table SYSDATE(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SYSDATE(a int)' at line 1
-create table SYSDATE (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SYSDATE (a int)' at line 1
-create table SYSTEM_USER(a int);
-drop table SYSTEM_USER;
-create table SYSTEM_USER (a int);
-drop table SYSTEM_USER;
-create table TRIM(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TRIM(a int)' at line 1
-create table TRIM (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TRIM (a int)' at line 1
-create table UNIQUE_USERS(a int);
-drop table UNIQUE_USERS;
-create table UNIQUE_USERS (a int);
-drop table UNIQUE_USERS;
-create table VARIANCE(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VARIANCE(a int)' at line 1
-create table VARIANCE (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VARIANCE (a int)' at line 1
-create table VAR_POP(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VAR_POP(a int)' at line 1
-create table VAR_POP (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VAR_POP (a int)' at line 1
-create table VAR_SAMP(a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VAR_SAMP(a int)' at line 1
-create table VAR_SAMP (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VAR_SAMP (a int)' at line 1
-DROP TABLE IF EXISTS table_25930_a;
-DROP TABLE IF EXISTS table_25930_b;
-SET SQL_MODE = 'ANSI_QUOTES';
-CREATE TABLE table_25930_a ( "blah" INT );
-CREATE TABLE table_25930_b SELECT "blah" - 1 FROM table_25930_a;
-desc table_25930_b;
-Field Type Null Key Default Extra
-"blah" - 1 bigint(12) YES NULL
-DROP TABLE table_25930_a;
-DROP TABLE table_25930_b;
-SET @@sql_mode=@save_sql_mode;
-DROP PROCEDURE IF EXISTS p26030;
-select "non terminated"$$
-non terminated
-non terminated
-select "terminated";$$
-terminated
-terminated
-select "non terminated, space" $$
-non terminated, space
-non terminated, space
-select "terminated, space"; $$
-terminated, space
-terminated, space
-select "non terminated, comment" /* comment */$$
-non terminated, comment
-non terminated, comment
-select "terminated, comment"; /* comment */$$
-terminated, comment
-terminated, comment
-select "stmt 1";select "stmt 2 non terminated"$$
-stmt 1
-stmt 1
-stmt 2 non terminated
-stmt 2 non terminated
-select "stmt 1";select "stmt 2 terminated";$$
-stmt 1
-stmt 1
-stmt 2 terminated
-stmt 2 terminated
-select "stmt 1";select "stmt 2 non terminated, space" $$
-stmt 1
-stmt 1
-stmt 2 non terminated, space
-stmt 2 non terminated, space
-select "stmt 1";select "stmt 2 terminated, space"; $$
-stmt 1
-stmt 1
-stmt 2 terminated, space
-stmt 2 terminated, space
-select "stmt 1";select "stmt 2 non terminated, comment" /* comment */$$
-stmt 1
-stmt 1
-stmt 2 non terminated, comment
-stmt 2 non terminated, comment
-select "stmt 1";select "stmt 2 terminated, comment"; /* comment */$$
-stmt 1
-stmt 1
-stmt 2 terminated, comment
-stmt 2 terminated, comment
-select "stmt 1"; select "space, stmt 2"$$
-stmt 1
-stmt 1
-space, stmt 2
-space, stmt 2
-select "stmt 1";/* comment */select "comment, stmt 2"$$
-stmt 1
-stmt 1
-comment, stmt 2
-comment, stmt 2
-DROP PROCEDURE IF EXISTS p26030; CREATE PROCEDURE p26030() BEGIN SELECT 1; END; CALL p26030()
-$$
-1
-1
-DROP PROCEDURE IF EXISTS p26030; CREATE PROCEDURE p26030() SELECT 1; CALL p26030()
-$$
-1
-1
-DROP PROCEDURE p26030;
-select pi(3.14);
-ERROR 42000: Incorrect parameter count in the call to native function 'pi'
-select tan();
-ERROR 42000: Incorrect parameter count in the call to native function 'tan'
-select tan(1, 2);
-ERROR 42000: Incorrect parameter count in the call to native function 'tan'
-select makedate(1);
-ERROR 42000: Incorrect parameter count in the call to native function 'makedate'
-select makedate(1, 2, 3);
-ERROR 42000: Incorrect parameter count in the call to native function 'makedate'
-select maketime();
-ERROR 42000: Incorrect parameter count in the call to native function 'maketime'
-select maketime(1);
-ERROR 42000: Incorrect parameter count in the call to native function 'maketime'
-select maketime(1, 2);
-ERROR 42000: Incorrect parameter count in the call to native function 'maketime'
-select maketime(1, 2, 3, 4);
-ERROR 42000: Incorrect parameter count in the call to native function 'maketime'
-select atan();
-ERROR 42000: Incorrect parameter count in the call to native function 'atan'
-select atan2(1, 2, 3);
-ERROR 42000: Incorrect parameter count in the call to native function 'atan2'
-select concat();
-ERROR 42000: Incorrect parameter count in the call to native function 'concat'
-select concat("foo");
-concat("foo")
-foo
-select concat_ws();
-ERROR 42000: Incorrect parameter count in the call to native function 'concat_ws'
-select concat_ws("foo");
-ERROR 42000: Incorrect parameter count in the call to native function 'concat_ws'
-select encrypt();
-ERROR 42000: Incorrect parameter count in the call to native function 'encrypt'
-select encrypt(1, 2, 3);
-ERROR 42000: Incorrect parameter count in the call to native function 'encrypt'
-select des_encrypt("p1", "p2", "not expected");
-ERROR 42000: Incorrect parameter count in the call to native function 'des_encrypt'
-select des_decrypt("p1", "p2", "not expected");
-ERROR 42000: Incorrect parameter count in the call to native function 'des_decrypt'
-select elt();
-ERROR 42000: Incorrect parameter count in the call to native function 'elt'
-select elt(1);
-ERROR 42000: Incorrect parameter count in the call to native function 'elt'
-select export_set();
-ERROR 42000: Incorrect parameter count in the call to native function 'export_set'
-select export_set("p1");
-ERROR 42000: Incorrect parameter count in the call to native function 'export_set'
-select export_set("p1", "p2");
-ERROR 42000: Incorrect parameter count in the call to native function 'export_set'
-select export_set("p1", "p2", "p3", "p4", "p5", "p6");
-ERROR 42000: Incorrect parameter count in the call to native function 'export_set'
-select field();
-ERROR 42000: Incorrect parameter count in the call to native function 'field'
-select field("p1");
-ERROR 42000: Incorrect parameter count in the call to native function 'field'
-select from_unixtime();
-ERROR 42000: Incorrect parameter count in the call to native function 'from_unixtime'
-select from_unixtime(1, 2, 3);
-ERROR 42000: Incorrect parameter count in the call to native function 'from_unixtime'
-select unix_timestamp(1, 2);
-ERROR 42000: Incorrect parameter count in the call to native function 'unix_timestamp'
-select greatest();
-ERROR 42000: Incorrect parameter count in the call to native function 'greatest'
-select greatest(12);
-ERROR 42000: Incorrect parameter count in the call to native function 'greatest'
-select last_insert_id(1, 2);
-ERROR 42000: Incorrect parameter count in the call to native function 'last_insert_id'
-select least();
-ERROR 42000: Incorrect parameter count in the call to native function 'least'
-select least(12);
-ERROR 42000: Incorrect parameter count in the call to native function 'least'
-select locate();
-ERROR 42000: Incorrect parameter count in the call to native function 'locate'
-select locate(1);
-ERROR 42000: Incorrect parameter count in the call to native function 'locate'
-select locate(1, 2, 3, 4);
-ERROR 42000: Incorrect parameter count in the call to native function 'locate'
-select log();
-ERROR 42000: Incorrect parameter count in the call to native function 'log'
-select log(1, 2, 3);
-ERROR 42000: Incorrect parameter count in the call to native function 'log'
-select make_set();
-ERROR 42000: Incorrect parameter count in the call to native function 'make_set'
-select make_set(1);
-ERROR 42000: Incorrect parameter count in the call to native function 'make_set'
-select master_pos_wait();
-ERROR 42000: Incorrect parameter count in the call to native function 'master_pos_wait'
-select master_pos_wait(1);
-ERROR 42000: Incorrect parameter count in the call to native function 'master_pos_wait'
-select master_pos_wait(1, 2, 3, 4, 5);
-ERROR 42000: Incorrect parameter count in the call to native function 'master_pos_wait'
-select rand(1, 2, 3);
-ERROR 42000: Incorrect parameter count in the call to native function 'rand'
-select round(1, 2, 3);
-ERROR 42000: Incorrect parameter count in the call to native function 'round'
-select yearweek();
-ERROR 42000: Incorrect parameter count in the call to native function 'yearweek'
-select yearweek(1, 2, 3);
-ERROR 42000: Incorrect parameter count in the call to native function 'yearweek'
-select abs(3);
-abs(3)
-3
-select abs(3 AS three);
-ERROR 42000: Incorrect parameters in the call to native function 'abs'
-select abs(3 three);
-ERROR 42000: Incorrect parameters in the call to native function 'abs'
-select abs(3 AS "three");
-ERROR 42000: Incorrect parameters in the call to native function 'abs'
-select abs(3 "three");
-ERROR 42000: Incorrect parameters in the call to native function 'abs'
-set @bar="bar";
-set @foobar="foobar";
-select instr("foobar", "bar");
-instr("foobar", "bar")
-4
-select instr("foobar" AS p1, "bar");
-ERROR 42000: Incorrect parameters in the call to native function 'instr'
-select instr("foobar" p1, "bar");
-ERROR 42000: Incorrect parameters in the call to native function 'instr'
-select instr("foobar" AS "p1", "bar");
-ERROR 42000: Incorrect parameters in the call to native function 'instr'
-select instr("foobar" "p1", "bar");
-instr("foobar" "p1", "bar")
-4
-select instr(@foobar "p1", "bar");
-ERROR 42000: Incorrect parameters in the call to native function 'instr'
-select instr("foobar", "bar" AS p2);
-ERROR 42000: Incorrect parameters in the call to native function 'instr'
-select instr("foobar", "bar" p2);
-ERROR 42000: Incorrect parameters in the call to native function 'instr'
-select instr("foobar", "bar" AS "p2");
-ERROR 42000: Incorrect parameters in the call to native function 'instr'
-select instr("foobar", "bar" "p2");
-instr("foobar", "bar" "p2")
-0
-select instr("foobar", @bar "p2");
-ERROR 42000: Incorrect parameters in the call to native function 'instr'
-select instr("foobar" AS p1, "bar" AS p2);
-ERROR 42000: Incorrect parameters in the call to native function 'instr'
-select conv(255, 10, 16);
-conv(255, 10, 16)
-FF
-select conv(255 AS p1, 10, 16);
-ERROR 42000: Incorrect parameters in the call to native function 'conv'
-select conv(255 p1, 10, 16);
-ERROR 42000: Incorrect parameters in the call to native function 'conv'
-select conv(255 AS "p1", 10, 16);
-ERROR 42000: Incorrect parameters in the call to native function 'conv'
-select conv(255 "p1", 10, 16);
-ERROR 42000: Incorrect parameters in the call to native function 'conv'
-select conv(255, 10 AS p2, 16);
-ERROR 42000: Incorrect parameters in the call to native function 'conv'
-select conv(255, 10 p2, 16);
-ERROR 42000: Incorrect parameters in the call to native function 'conv'
-select conv(255, 10 AS "p2", 16);
-ERROR 42000: Incorrect parameters in the call to native function 'conv'
-select conv(255, 10 "p2", 16);
-ERROR 42000: Incorrect parameters in the call to native function 'conv'
-select conv(255, 10, 16 AS p3);
-ERROR 42000: Incorrect parameters in the call to native function 'conv'
-select conv(255, 10, 16 p3);
-ERROR 42000: Incorrect parameters in the call to native function 'conv'
-select conv(255, 10, 16 AS "p3");
-ERROR 42000: Incorrect parameters in the call to native function 'conv'
-select conv(255, 10, 16 "p3");
-ERROR 42000: Incorrect parameters in the call to native function 'conv'
-select conv(255 AS p1, 10 AS p2, 16 AS p3);
-ERROR 42000: Incorrect parameters in the call to native function 'conv'
-select atan(10);
-atan(10)
-1.4711276743037347
-select atan(10 AS p1);
-ERROR 42000: Incorrect parameters in the call to native function 'atan'
-select atan(10 p1);
-ERROR 42000: Incorrect parameters in the call to native function 'atan'
-select atan(10 AS "p1");
-ERROR 42000: Incorrect parameters in the call to native function 'atan'
-select atan(10 "p1");
-ERROR 42000: Incorrect parameters in the call to native function 'atan'
-select atan(10, 20);
-atan(10, 20)
-0.4636476090008061
-select atan(10 AS p1, 20);
-ERROR 42000: Incorrect parameters in the call to native function 'atan'
-select atan(10 p1, 20);
-ERROR 42000: Incorrect parameters in the call to native function 'atan'
-select atan(10 AS "p1", 20);
-ERROR 42000: Incorrect parameters in the call to native function 'atan'
-select atan(10 "p1", 20);
-ERROR 42000: Incorrect parameters in the call to native function 'atan'
-select atan(10, 20 AS p2);
-ERROR 42000: Incorrect parameters in the call to native function 'atan'
-select atan(10, 20 p2);
-ERROR 42000: Incorrect parameters in the call to native function 'atan'
-select atan(10, 20 AS "p2");
-ERROR 42000: Incorrect parameters in the call to native function 'atan'
-select atan(10, 20 "p2");
-ERROR 42000: Incorrect parameters in the call to native function 'atan'
-select atan(10 AS p1, 20 AS p2);
-ERROR 42000: Incorrect parameters in the call to native function 'atan'
-DROP TABLE IF EXISTS t1;
-SELECT STR_TO_DATE('10:00 PM', '%h:%i %p') + INTERVAL 10 MINUTE;
-STR_TO_DATE('10:00 PM', '%h:%i %p') + INTERVAL 10 MINUTE
-22:10:00
-SELECT STR_TO_DATE('10:00 PM', '%h:%i %p') + INTERVAL (INTERVAL(1,2,3) + 1) MINUTE;
-STR_TO_DATE('10:00 PM', '%h:%i %p') + INTERVAL (INTERVAL(1,2,3) + 1) MINUTE
-22:01:00
-SELECT "1997-12-31 23:59:59" + INTERVAL 1 SECOND;
-"1997-12-31 23:59:59" + INTERVAL 1 SECOND
-1998-01-01 00:00:00
-SELECT 1 + INTERVAL(1,0,1,2) + 1;
-1 + INTERVAL(1,0,1,2) + 1
-4
-SELECT INTERVAL(1^1,0,1,2) + 1;
-INTERVAL(1^1,0,1,2) + 1
-2
-SELECT INTERVAL(1,0+1,2,3) * 5.5;
-INTERVAL(1,0+1,2,3) * 5.5
-5.5
-SELECT INTERVAL(3,3,1+3,4+4) / 0.5;
-INTERVAL(3,3,1+3,4+4) / 0.5
-2.0000
-SELECT (INTERVAL(1,0,1,2) + 5) * 7 + INTERVAL(1,0,1,2) / 2;
-(INTERVAL(1,0,1,2) + 5) * 7 + INTERVAL(1,0,1,2) / 2
-50.0000
-SELECT INTERVAL(1,0,1,2) + 1, 5 * INTERVAL(1,0,1,2);
-INTERVAL(1,0,1,2) + 1 5 * INTERVAL(1,0,1,2)
-3 10
-SELECT INTERVAL(0,(1*5)/2) + INTERVAL(5,4,3);
-INTERVAL(0,(1*5)/2) + INTERVAL(5,4,3)
-2
-SELECT 1^1 + INTERVAL 1+1 SECOND & 1 + INTERVAL 1+1 SECOND;
-1^1 + INTERVAL 1+1 SECOND & 1 + INTERVAL 1+1 SECOND
-NULL
-SELECT 1%2 - INTERVAL 1^1 SECOND | 1%2 - INTERVAL 1^1 SECOND;
-1%2 - INTERVAL 1^1 SECOND | 1%2 - INTERVAL 1^1 SECOND
-NULL
-CREATE TABLE t1 (a INT, b DATETIME);
-INSERT INTO t1 VALUES (INTERVAL(3,2,1) + 1, "1997-12-31 23:59:59" + INTERVAL 1 SECOND);
-SELECT * FROM t1 WHERE a = INTERVAL(3,2,1) + 1;
-a b
-3 1998-01-01 00:00:00
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1,t2,t3;
-CREATE TABLE t1 (a1 INT, a2 INT, a3 INT, a4 DATETIME);
-CREATE TABLE t2 LIKE t1;
-CREATE TABLE t3 LIKE t1;
-SELECT t1.* FROM t1 AS t0, { OJ t2 INNER JOIN t1 ON (t1.a1=t2.a1) } WHERE t0.a3=2;
-a1 a2 a3 a4
-SELECT t1.*,t2.* FROM { OJ ((t1 INNER JOIN t2 ON (t1.a1=t2.a2)) LEFT OUTER JOIN t3 ON t3.a3=t2.a1)};
-a1 a2 a3 a4 a1 a2 a3 a4
-SELECT t1.*,t2.* FROM { OJ ((t1 LEFT OUTER JOIN t2 ON t1.a3=t2.a2) INNER JOIN t3 ON (t3.a1=t2.a2))};
-a1 a2 a3 a4 a1 a2 a3 a4
-SELECT t1.*,t2.* FROM { OJ (t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a2) CROSS JOIN t3 ON (t3.a2=t2.a3)};
-a1 a2 a3 a4 a1 a2 a3 a4
-SELECT * FROM {oj t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a3} WHERE t1.a2 > 10;
-a1 a2 a3 a4 a1 a2 a3 a4
-SELECT {fn CONCAT(a1,a2)} FROM t1;
-{fn CONCAT(a1,a2)}
-UPDATE t3 SET a4={d '1789-07-14'} WHERE a1=0;
-SELECT a1, a4 FROM t2 WHERE a4 LIKE {fn UCASE('1789-07-14')};
-a1 a4
-DROP TABLE t1, t2, t3;
-#
-# End of 5.1 tests
-#
-#
-# Bug#17075846 : unquoted file names for variable values are
-# accepted but parsed incorrectly
-#
-SET default_storage_engine=a.myisam;
-ERROR 42000: Incorrect argument type to variable 'default_storage_engine'
-SET default_storage_engine = .a.MyISAM;
-ERROR 42000: Incorrect argument type to variable 'default_storage_engine'
-SET default_storage_engine = a.b.MyISAM;
-ERROR 42000: Incorrect argument type to variable 'default_storage_engine'
-SET default_storage_engine = `a`.MyISAM;
-ERROR 42000: Incorrect argument type to variable 'default_storage_engine'
-SET default_storage_engine = `a`.`MyISAM`;
-ERROR 42000: Incorrect argument type to variable 'default_storage_engine'
-set default_storage_engine = "a.MYISAM";
-ERROR 42000: Unknown storage engine 'a.MYISAM'
-set default_storage_engine = 'a.MYISAM';
-ERROR 42000: Unknown storage engine 'a.MYISAM'
-set default_storage_engine = `a.MYISAM`;
-ERROR 42000: Unknown storage engine 'a.MYISAM'
-CREATE TABLE t1 (s VARCHAR(100));
-CREATE TRIGGER trigger1 BEFORE INSERT ON t1 FOR EACH ROW
-SET default_storage_engine = NEW.INNODB;
-ERROR 42S22: Unknown column 'INNODB' in 'NEW'
-DROP TABLE t1;
-select 0==0;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '=0' at line 1
-select 1=!0, 1 = ! 0;
-1=!0 1 = ! 0
-1 1
-select !!0, ! ! 0;
-!!0 ! ! 0
-0 0
-select 2>!0, 2 > ! 0;
-2>!0 2 > ! 0
-1 1
-select 0<=!0, 0 <= !0;
-0<=!0 0 <= !0
-1 1
-select 1<<!0, 1 << !0;
-1<<!0 1 << !0
-2 2
-select 0<!0, 0 < ! 0;
-0<!0 0 < ! 0
-1 1
-#
-# MDEV-11171 Assertion `m_cpp_buf <= ptr && ptr <= m_cpp_buf + m_buf_length' failed in Lex_input_stream::body_utf8_append(const char*, const char*)
-#
-CREATE TABLE t1 (id INT);
-CREATE TRIGGER tr AFTER DELETE ON t1 FOR EACH ROW SET @a = 1\;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '\' at line 1
-PREPARE stmt FROM 'CREATE TRIGGER tr AFTER DELETE ON t1 FOR EACH ROW SET @a = 1\\';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '\' at line 1
-DROP TABLE t1;
-#
-# MDEV-7792 - SQL Parsing Error - UNION AND ORDER BY WITH JOIN
-#
-CREATE TABLE t1(a INT);
-SELECT * FROM t1 JOIN ((SELECT 1 AS b) UNION ALL (SELECT 2 AS b) ORDER BY b DESC) s1 WHERE a=1;
-a b
-DROP TABLE t1;
-#
-# Test of collective fix for three parser bugs:
-#
-# Bug #17727401, Bug #17426017, Bug #17473479:
-# The server accepts wrong syntax and then fails in different ways
-#
-CREATE TABLE t1 (i INT);
-# bug #17426017
-SELECT (SELECT EXISTS(SELECT * LIMIT 1 ORDER BY VALUES (c00)));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY VALUES (c00)))' at line 1
-# bug#17473479
-CREATE TABLE a(a int);
-CREATE TABLE b(a int);
-DELETE FROM b ORDER BY(SELECT 1 FROM a ORDER BY a ORDER BY a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY a)' at line 1
-DROP TABLE a, b;
-# bug #17727401
-SELECT '' IN (SELECT '1' c FROM t1 ORDER BY '' ORDER BY '') FROM t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY '') FROM t1' at line 1
-# regression & coverage tests
-# uniform syntax for FROM DUAL clause:
-SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
-FOR UPDATE;
-1
-1
-SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
-PROCEDURE ANALYSE() FOR UPDATE;
-ERROR HY000: Can't use ORDER clause with this procedure
-SELECT 1 FROM
-(SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
-FOR UPDATE) a;
-1
-1
-SELECT 1 FROM
-(SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
-PROCEDURE ANALYSE() FOR UPDATE) a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE() FOR UPDATE) a' at line 3
-SELECT 1 FROM t1
-WHERE EXISTS(SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
-FOR UPDATE);
-1
-SELECT 1 FROM t1
-WHERE EXISTS(SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
-PROCEDURE ANALYSE() FOR UPDATE);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE() FOR UPDATE)' at line 3
-SELECT 1 FROM t1
-UNION
-SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
-FOR UPDATE;
-1
-1
-SELECT 1 FROM t1
-UNION
-SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
-PROCEDURE ANALYSE() FOR UPDATE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE() FOR UPDATE' at line 4
-SELECT 1 FROM DUAL PROCEDURE ANALYSE()
-UNION
-SELECT 1 FROM t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION
-SELECT 1 FROM t1' at line 2
-(SELECT 1 FROM t1)
-UNION
-(SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
-FOR UPDATE);
-1
-1
-(SELECT 1 FROM t1)
-UNION
-(SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
-PROCEDURE ANALYSE() FOR UPDATE);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE() FOR UPDATE)' at line 4
-# "FOR UPDATE" tests
-SELECT 1 FROM t1 UNION SELECT 1 FROM t1 ORDER BY 1 LIMIT 1;
-1
-SELECT 1 FROM t1 FOR UPDATE UNION SELECT 1 FROM t1 ORDER BY 1 LIMIT 1;
-1
-SELECT 1 FROM t1 UNION SELECT 1 FROM t1 ORDER BY 1 LIMIT 1 FOR UPDATE;
-1
-# "INTO" clause tests
-SELECT 1 FROM t1 INTO @var17727401;
-Warnings:
-Warning 1329 No data - zero rows fetched, selected, or processed
-SELECT 1 FROM DUAL INTO @var17727401;
-SELECT 1 INTO @var17727401;
-SELECT 1 INTO @var17727401 FROM t1;
-Warnings:
-Warning 1329 No data - zero rows fetched, selected, or processed
-SELECT 1 INTO @var17727401 FROM DUAL;
-SELECT 1 INTO @var17727401_1 FROM t1 INTO @var17727401_2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var17727401_2' at line 1
-SELECT 1 INTO @var17727401_1 FROM DUAL
-INTO @var17727401_2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var17727401_2' at line 2
-SELECT 1 INTO @var17727401 FROM t1 WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1 LIMIT 1;
-Warnings:
-Warning 1329 No data - zero rows fetched, selected, or processed
-SELECT 1 FROM t1 WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1 LIMIT 1 INTO @var17727401;
-Warnings:
-Warning 1329 No data - zero rows fetched, selected, or processed
-SELECT 1 FROM t1 WHERE 1 INTO @var17727401 GROUP BY 1 HAVING 1 ORDER BY 1 LIMIT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP BY 1 HAVING 1 ORDER BY 1 LIMIT 1' at line 1
-SELECT 1 INTO @var17727401_1
-FROM t1 WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1 LIMIT 1
-INTO @var17727401_2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var17727401_2' at line 3
-SELECT (SELECT 1 FROM t1 INTO @var17727401);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var17727401)' at line 1
-SELECT 1 FROM (SELECT 1 FROM t1 INTO @var17727401) a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var17727401) a' at line 1
-SELECT EXISTS(SELECT 1 FROM t1 INTO @var17727401);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var17727401)' at line 1
-SELECT 1 FROM t1 INTO @var17727401 UNION SELECT 1 FROM t1 INTO t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1 INTO t1' at line 1
-(SELECT 1 FROM t1 INTO @var17727401) UNION (SELECT 1 FROM t1 INTO t1);
-ERROR HY000: Incorrect usage of UNION and INTO
-SELECT 1 FROM t1 UNION SELECT 1 FROM t1 INTO @var17727401;
-Warnings:
-Warning 1329 No data - zero rows fetched, selected, or processed
-SELECT 1 INTO @var17727401 FROM t1 PROCEDURE ANALYSE();
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE()' at line 1
-SELECT 1 FROM t1 PROCEDURE ANALYSE() INTO @var17727401;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var17727401' at line 1
-# ORDER and LIMIT clause combinations
-(SELECT 1 FROM t1 ORDER BY 1) ORDER BY 1;
-1
-(SELECT 1 FROM t1 LIMIT 1) LIMIT 1;
-1
-((SELECT 1 FROM t1 ORDER BY 1) ORDER BY 1) ORDER BY 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY 1) ORDER BY 1' at line 1
-((SELECT 1 FROM t1 LIMIT 1) LIMIT 1) LIMIT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LIMIT 1) LIMIT 1' at line 1
-(SELECT 1 FROM t1 ORDER BY 1) LIMIT 1;
-1
-(SELECT 1 FROM t1 LIMIT 1) ORDER BY 1;
-1
-((SELECT 1 FROM t1 ORDER BY 1) LIMIT 1) ORDER BY 1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LIMIT 1) ORDER BY 1)' at line 1
-((SELECT 1 FROM t1 LIMIT 1) ORDER BY 1) LIMIT 1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY 1) LIMIT 1)' at line 1
-SELECT 1 FROM t1 UNION SELECT 1 FROM t1 ORDER BY 1;
-1
-SELECT (SELECT 1 FROM t1 UNION SELECT 1 FROM t1 ORDER BY 1);
-(SELECT 1 FROM t1 UNION SELECT 1 FROM t1 ORDER BY 1)
-NULL
-SELECT 1 FROM (SELECT 1 FROM t1 UNION SELECT 1 FROM t1 ORDER BY 1) a;
-1
-SELECT 1 FROM t1 UNION SELECT 1 FROM t1 LIMIT 1;
-1
-SELECT (SELECT 1 FROM t1 UNION SELECT 1 FROM t1 LIMIT 1);
-(SELECT 1 FROM t1 UNION SELECT 1 FROM t1 LIMIT 1)
-NULL
-SELECT 1 FROM (SELECT 1 FROM t1 UNION SELECT 1 FROM t1 LIMIT 1) a;
-1
-SELECT 1 FROM t1 UNION SELECT 1 FROM t1 ORDER BY 1 LIMIT 1;
-1
-SELECT (SELECT 1 FROM t1 UNION SELECT 1 FROM t1 ORDER BY 1 LIMIT 1);
-(SELECT 1 FROM t1 UNION SELECT 1 FROM t1 ORDER BY 1 LIMIT 1)
-NULL
-SELECT 1 FROM (SELECT 1 FROM t1 UNION SELECT 1 FROM t1 ORDER BY 1 LIMIT 1) a;
-1
-SELECT 1 FROM t1 UNION SELECT 1 FROM t1 LIMIT 1 ORDER BY 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY 1' at line 1
-SELECT (SELECT 1 FROM t1 UNION SELECT 1 FROM t1 LIMIT 1 ORDER BY 1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY 1)' at line 1
-SELECT 1 FROM (SELECT 1 FROM t1 UNION SELECT 1 FROM t1 LIMIT 1 ORDER BY 1) a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY 1) a' at line 1
-SELECT 1 FROM t1 ORDER BY 1 UNION SELECT 1 FROM t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1' at line 1
-SELECT (SELECT 1 FROM t1 ORDER BY 1 UNION SELECT 1 FROM t1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1)' at line 1
-SELECT 1 FROM (SELECT 1 FROM t1 ORDER BY 1 UNION SELECT 1 FROM t1) a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1) a' at line 1
-SELECT 1 FROM t1 LIMIT 1 UNION SELECT 1 FROM t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1' at line 1
-SELECT (SELECT 1 FROM t1 LIMIT 1 UNION SELECT 1 FROM t1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1)' at line 1
-SELECT 1 FROM (SELECT 1 FROM t1 LIMIT 1 UNION SELECT 1 FROM t1) a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1) a' at line 1
-SELECT 1 FROM t1 ORDER BY 1 LIMIT 1 UNION SELECT 1 FROM t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1' at line 1
-SELECT (SELECT 1 FROM t1 ORDER BY 1 LIMIT 1 UNION SELECT 1 FROM t1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1)' at line 1
-SELECT 1 FROM (SELECT 1 FROM t1 ORDER BY 1 LIMIT 1 UNION SELECT 1 FROM t1) a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1) a' at line 1
-SELECT 1 FROM t1 LIMIT 1 ORDER BY 1 UNION SELECT 1 FROM t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY 1 UNION SELECT 1 FROM t1' at line 1
-SELECT (SELECT 1 FROM t1 LIMIT 1 ORDER BY 1 UNION SELECT 1 FROM t1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY 1 UNION SELECT 1 FROM t1)' at line 1
-SELECT 1 FROM (SELECT 1 FROM t1 LIMIT 1 ORDER BY 1 UNION SELECT 1 FROM t1) a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY 1 UNION SELECT 1 FROM t1) a' at line 1
-SELECT 1 FROM t1 ORDER BY 1 UNION SELECT 1 FROM t1 ORDER BY 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1 ORDER BY 1' at line 1
-SELECT (SELECT 1 FROM t1 ORDER BY 1 UNION SELECT 1 FROM t1 ORDER BY 1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1 ORDER BY 1)' at line 1
-SELECT 1 FROM (SELECT 1 FROM t1 ORDER BY 1 UNION SELECT 1 FROM t1 ORDER BY 1) a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1 ORDER BY 1) a' at line 1
-SELECT 1 FROM t1 LIMIT 1 UNION SELECT 1 FROM t1 LIMIT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1 LIMIT 1' at line 1
-SELECT (SELECT 1 FROM t1 LIMIT 1 UNION SELECT 1 FROM t1 LIMIT 1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1 LIMIT 1)' at line 1
-SELECT 1 FROM (SELECT 1 FROM t1 LIMIT 1 UNION SELECT 1 FROM t1 LIMIT 1) a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1 LIMIT 1) a' at line 1
-SELECT 1 FROM t1 LIMIT 1 UNION SELECT 1 FROM t1 ORDER BY 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1 ORDER BY 1' at line 1
-SELECT (SELECT 1 FROM t1 LIMIT 1 UNION SELECT 1 FROM t1 ORDER BY 1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1 ORDER BY 1)' at line 1
-SELECT 1 FROM (SELECT 1 FROM t1 LIMIT 1 UNION SELECT 1 FROM t1 ORDER BY 1) a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1 ORDER BY 1) a' at line 1
-SELECT 1 FROM t1 ORDER BY 1 UNION SELECT 1 FROM t1 LIMIT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1 LIMIT 1' at line 1
-SELECT (SELECT 1 FROM t1 ORDER BY 1 UNION SELECT 1 FROM t1 LIMIT 1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1 LIMIT 1)' at line 1
-SELECT 1 FROM (SELECT 1 FROM t1 ORDER BY 1 UNION SELECT 1 FROM t1 LIMIT 1) a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 FROM t1 LIMIT 1) a' at line 1
-DROP TABLE t1;
-#
-# MDEV-8380: Subquery parse error
-#
-CREATE TABLE t1 ( a INT);
-INSERT INTO t1 VALUES ( 2 );
-SELECT *
-FROM ( (SELECT a FROM t1 ORDER BY a) UNION (SELECT 1 as b ORDER BY b ) ) AS a1
-WHERE a1.a = 1 OR a1.a = 2;
-a
-2
-1
-DROP TABLE t1;
-#
-# MDEV-10080 Derived tables allow double LIMIT clause
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-SELECT * FROM (SELECT * FROM t1 LIMIT 1 LIMIT 2) t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LIMIT 2) t1' at line 1
-DROP TABLE t1;
-#
-# MDEV-10109 Disallow syntactically INSERT .. SELECT .. {ORDER BY ..| LIMIT ..} .. UNION ..
-#
-INSERT INTO t1 SELECT 1 ORDER BY 1 UNION SELECT 2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 2' at line 1
-INSERT INTO t1 SELECT 1 LIMIT 1 UNION SELECT 2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 2' at line 1
-CREATE TABLE t1 AS SELECT 1 ORDER BY 1 UNION SELECT 2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 2' at line 1
-CREATE TABLE t1 AS SELECT 1 LIMIT 1 UNION SELECT 2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 2' at line 1
-#
-# MDEV-8909 union parser cleanup
-#
-# UNION with a non-parenthesized term
-# The following two queries return a wrong result
-# This will change when MDEV-10120 is fixed
-# For now, we're testing the parser.
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10),(20),(30);
-SELECT 1 AS a UNION SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a);
-a
-1
-SELECT 1 AS a UNION SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a ORDER BY a);
-a
-1
-DROP TABLE t1;
-# UNION with a parenthesed term
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10),(20),(30);
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a ORDER BY a) LIMIT 2);
-a
-1
-10
-20
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a));
-a
-1
-10
-20
-30
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a)) LIMIT 1;
-a
-1
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a)) ORDER BY a;
-a
-1
-10
-20
-30
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a ORDER BY GROUP_CONCAT(a)) ORDER BY a LIMIT 1;
-a
-1
-DROP TABLE t1;
-# UNION with a parenthesized term with ROLLUP
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10),(20),(30);
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a WITH ROLLUP);
-a
-1
-10
-20
-30
-NULL
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a WITH ROLLUP) LIMIT 1;
-a
-1
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a WITH ROLLUP) ORDER BY a LIMIT 1;
-a
-NULL
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a WITH ROLLUP LIMIT 2);
-a
-1
-10
-20
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a WITH ROLLUP ORDER BY a);
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a WITH ROLLUP ORDER BY GROUP_CONCAT(a));
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a WITH ROLLUP ORDER BY GROUP_CONCAT(a ORDER BY a));
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-DROP TABLE t1;
-# UNION with a non-parethesized term with ROLLUP
-# This will change after: MDEV-10120 Wrong result of UNION .. ORDER BY GROUP_CONCAT()
-# Currently we're testing the parser only
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10),(20),(30);
-SELECT 1 AS a UNION SELECT a FROM t1 GROUP BY a WITH ROLLUP ORDER BY GROUP_CONCAT(a);
-a
-1
-SELECT 1 AS a UNION SELECT a FROM t1 GROUP BY a WITH ROLLUP ORDER BY GROUP_CONCAT(a ORDER BY a);
-a
-1
-SELECT 1 AS a UNION SELECT a FROM t1 GROUP BY a WITH ROLLUP ORDER BY GROUP_CONCAT(a ORDER BY a) LIMIT 1;
-a
-1
-DROP TABLE t1;
-# Derived table with ROLLUP
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10),(20),(30);
-SELECT * FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1;
-a
-10
-20
-30
-NULL
-SELECT * FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 LIMIT 1;
-a
-10
-SELECT * FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 ORDER BY a;
-a
-NULL
-10
-20
-30
-SELECT * FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 ORDER BY a LIMIT 1;
-a
-NULL
-SELECT * FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 ORDER BY a DESC LIMIT 1;
-a
-30
-SELECT a, GROUP_CONCAT(a) FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 ORDER BY GROUP_CONCAT(a);
-a GROUP_CONCAT(a)
-10 10,20,30
-SELECT a, GROUP_CONCAT(a) FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 ORDER BY GROUP_CONCAT(a ORDER BY a);
-a GROUP_CONCAT(a)
-10 10,20,30
-SELECT a, GROUP_CONCAT(a) FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 ORDER BY GROUP_CONCAT(a) LIMIT 1;
-a GROUP_CONCAT(a)
-10 10,20,30
-SELECT a, GROUP_CONCAT(a) FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 ORDER BY GROUP_CONCAT(a ORDER BY a) LIMIT 1;
-a GROUP_CONCAT(a)
-10 10,20,30
-SELECT a, GROUP_CONCAT(a) FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 GROUP BY a ORDER BY GROUP_CONCAT(a);
-a GROUP_CONCAT(a)
-NULL NULL
-10 10
-20 20
-30 30
-SELECT a, GROUP_CONCAT(a) FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 GROUP BY a ORDER BY GROUP_CONCAT(a ORDER BY a);
-a GROUP_CONCAT(a)
-NULL NULL
-10 10
-20 20
-30 30
-SELECT a, GROUP_CONCAT(a) FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 GROUP BY a ORDER BY GROUP_CONCAT(a) DESC;
-a GROUP_CONCAT(a)
-30 30
-20 20
-10 10
-NULL NULL
-SELECT a, GROUP_CONCAT(a) FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 GROUP BY a ORDER BY GROUP_CONCAT(a ORDER BY a) DESC;
-a GROUP_CONCAT(a)
-30 30
-20 20
-10 10
-NULL NULL
-SELECT a, GROUP_CONCAT(a) FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 GROUP BY a ORDER BY GROUP_CONCAT(a) LIMIT 1;
-a GROUP_CONCAT(a)
-NULL NULL
-SELECT a, GROUP_CONCAT(a) FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 GROUP BY a ORDER BY GROUP_CONCAT(a ORDER BY a) LIMIT 1;
-a GROUP_CONCAT(a)
-NULL NULL
-SELECT a, GROUP_CONCAT(a) FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 GROUP BY a ORDER BY GROUP_CONCAT(a) DESC LIMIT 1;
-a GROUP_CONCAT(a)
-30 30
-SELECT a, GROUP_CONCAT(a) FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP) t1 GROUP BY a ORDER BY GROUP_CONCAT(a ORDER BY a) DESC LIMIT 1;
-a GROUP_CONCAT(a)
-30 30
-SELECT * FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY a) t1;
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT * FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY a LIMIT 1) t1;
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT * FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY GROUP_CONCAT(a)) t1;
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT * FROM (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY GROUP_CONCAT(a ORDER BY a)) t1;
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-DROP TABLE t1;
-# Subquery, one row, ROLLUP
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10);
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP HAVING a IS NULL);
-(SELECT * FROM t1 GROUP BY a WITH ROLLUP HAVING a IS NULL)
-NULL
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP HAVING a IS NOT NULL);
-(SELECT * FROM t1 GROUP BY a WITH ROLLUP HAVING a IS NOT NULL)
-10
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP LIMIT 1);
-(SELECT * FROM t1 GROUP BY a WITH ROLLUP LIMIT 1)
-10
-SELECT (SELECT GROUP_CONCAT(a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1);
-(SELECT GROUP_CONCAT(a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1)
-10
-SELECT (SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1);
-(SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1)
-10
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP HAVING a IS NULL) FROM t1;
-(SELECT * FROM t1 GROUP BY a WITH ROLLUP HAVING a IS NULL)
-NULL
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP HAVING a IS NOT NULL) FROM t1;
-(SELECT * FROM t1 GROUP BY a WITH ROLLUP HAVING a IS NOT NULL)
-10
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP LIMIT 1) FROM t1;
-(SELECT * FROM t1 GROUP BY a WITH ROLLUP LIMIT 1)
-10
-SELECT (SELECT GROUP_CONCAT(a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1) FROM t1;
-(SELECT GROUP_CONCAT(a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1)
-10
-SELECT (SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1) FROM t1;
-(SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1)
-10
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP);
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT GROUP_CONCAT(a) FROM t1 GROUP BY a WITH ROLLUP);
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT GROUP_CONCAT(a) FROM t1 GROUP BY a WITH ROLLUP) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY a);
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY a LIMIT 1);
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY GROUP_CONCAT(a));
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT (SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP ORDER BY a LIMIT 1) AS a;
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY a) FROM t1;
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY a LIMIT 1) FROM t1;
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY GROUP_CONCAT(a)) FROM t1;
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT (SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP ORDER BY a LIMIT 1) AS a FROM t1;
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-DROP TABLE t1;
-# Subquery, multiple rows, ROLLUP
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10),(20),(30);
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP LIMIT 1);
-(SELECT * FROM t1 GROUP BY a WITH ROLLUP LIMIT 1)
-10
-SELECT (SELECT GROUP_CONCAT(a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1);
-(SELECT GROUP_CONCAT(a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1)
-10
-SELECT (SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1);
-(SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1)
-10
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP LIMIT 1) FROM t1;
-(SELECT * FROM t1 GROUP BY a WITH ROLLUP LIMIT 1)
-10
-10
-10
-SELECT (SELECT GROUP_CONCAT(a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1) FROM t1;
-(SELECT GROUP_CONCAT(a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1)
-10
-10
-10
-SELECT (SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1) FROM t1;
-(SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1)
-10
-10
-10
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP);
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT GROUP_CONCAT(a) FROM t1 GROUP BY a WITH ROLLUP);
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT GROUP_CONCAT(a) FROM t1 GROUP BY a WITH ROLLUP) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY a);
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY a LIMIT 1);
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY GROUP_CONCAT(a));
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT (SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP ORDER BY a LIMIT 1) AS a;
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY a) FROM t1;
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY a LIMIT 1) FROM t1;
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT (SELECT * FROM t1 GROUP BY a WITH ROLLUP ORDER BY GROUP_CONCAT(a)) FROM t1;
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT (SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP ORDER BY a LIMIT 1) AS a FROM t1;
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-DROP TABLE t1;
-
-MDEV-10101 Wrong error message of SELECT 1 UNION (SELECT 1 FROM t1 GROUP BY 1 WITH ROLLUP)
-
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10),(20),(30);
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a WITH ROLLUP);
-a
-1
-10
-20
-30
-NULL
-(SELECT a FROM t1 GROUP BY a WITH ROLLUP) UNION SELECT 1;
-a
-10
-20
-30
-NULL
-1
-SELECT a FROM t1 GROUP BY a WITH ROLLUP UNION SELECT 1;
-a
-10
-20
-30
-NULL
-1
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a WITH ROLLUP) LIMIT 1;
-a
-1
-(SELECT a FROM t1 GROUP BY a WITH ROLLUP) UNION SELECT 1 LIMIT 1;
-a
-10
-SELECT a FROM t1 GROUP BY a WITH ROLLUP UNION SELECT 1 LIMIT 1;
-a
-10
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a WITH ROLLUP) ORDER BY a LIMIT 1;
-a
-NULL
-(SELECT a FROM t1 GROUP BY a WITH ROLLUP) UNION SELECT 1 ORDER BY a LIMIT 1;
-a
-NULL
-SELECT a FROM t1 GROUP BY a WITH ROLLUP UNION SELECT 1 ORDER BY a LIMIT 1;
-a
-NULL
-SELECT 1 AS a UNION (SELECT a FROM t1 GROUP BY a WITH ROLLUP LIMIT 2);
-a
-1
-10
-20
-(SELECT a FROM t1 GROUP BY a WITH ROLLUP LIMIT 2) UNION SELECT 1;
-a
-10
-20
-1
-DROP TABLE t1;
-#
-# MDEV-10779 Failing assertion lex->proc_list.elements == 0 or syntax error on PROCEDURE ANALYSE in UNION
-#
-CREATE TABLE t1 (i INT);
-(SELECT * FROM t1 PROCEDURE ANALYSE(10, 10))
-UNION
-(SELECT * FROM t1 PROCEDURE ANALYSE(10, 10));
-ERROR HY000: Incorrect usage of UNION and SELECT ... PROCEDURE ANALYSE()
-(SELECT * FROM t1 PROCEDURE ANALYSE(10, 10))
-UNION
-SELECT * FROM t1 PROCEDURE ANALYSE(10, 10);
-ERROR HY000: Incorrect usage of UNION and SELECT ... PROCEDURE ANALYSE()
-(SELECT * FROM t1 PROCEDURE ANALYSE(10, 10))
-UNION
-(SELECT 1);
-ERROR HY000: Incorrect usage of UNION and SELECT ... PROCEDURE ANALYSE()
-(SELECT * FROM t1 PROCEDURE ANALYSE(10, 10))
-UNION
-SELECT 1;
-ERROR HY000: Incorrect usage of UNION and SELECT ... PROCEDURE ANALYSE()
-SELECT * FROM t1 PROCEDURE ANALYSE(10, 10)
-UNION
-(SELECT * FROM t1 PROCEDURE ANALYSE(10, 10));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION
-(SELECT * FROM t1 PROCEDURE ANALYSE(10, 10))' at line 2
-SELECT * FROM t1 PROCEDURE ANALYSE(10, 10)
-UNION
-SELECT * FROM t1 PROCEDURE ANALYSE(10, 10);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION
-SELECT * FROM t1 PROCEDURE ANALYSE(10, 10)' at line 2
-SELECT * FROM t1 PROCEDURE ANALYSE(10, 10)
-UNION
-(SELECT 1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION
-(SELECT 1)' at line 2
-SELECT * FROM t1 PROCEDURE ANALYSE(10, 10)
-UNION
-SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION
-SELECT 1' at line 2
-DROP TABLE t1;
-create table t1 (a serial null);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'null)' at line 1
-create table t1 (a serial auto_increment);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'auto_increment)' at line 1
-create table t1 (a serial serial default value);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'serial default value)' at line 1
-create table t1 (a serial collate binary);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'collate binary)' at line 1
-create table t1 (i int, vc serial as (i));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as (i))' at line 1
-create function fs() returns serial return 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'serial return 1' at line 1
-create table t1 ( id serial );
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- UNIQUE KEY `id` (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-#
-# MDEV-10343 Providing compatibility for basic SQL data types
-#
-CREATE TABLE clob (clob int);
-DROP TABLE clob;
-CREATE TABLE raw (raw int);
-DROP TABLE raw;
-CREATE TABLE varchar2 (varchar2 int);
-DROP TABLE varchar2;
-#
-# MDEV-15620 Crash when using "SET @@NEW.a=expr" inside a trigger
-#
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET @@NEW.a=0;
-ERROR HY000: Unknown structured system variable or ROW routine variable 'NEW'
-DROP TABLE t1;
-#
-# MDEV-15664 sql_mode=ORACLE: Make TRIM return NULL instead of empty string
-#
-CREATE TABLE trim_oracle (trim_oracle int);
-DROP TABLE trim_oracle;
-#
-# MDEV-15615 Unexpected syntax error instead of "Unknown system variable" inside an SP
-#
-BEGIN NOT ATOMIC
-DECLARE a INT;
-SET GLOBAL a=10;
-END;
-$$
-ERROR HY000: Unknown system variable 'a'
diff --git a/mysql-test/r/parser_bug21114_innodb.result b/mysql-test/r/parser_bug21114_innodb.result
deleted file mode 100644
index e39b63f571d..00000000000
--- a/mysql-test/r/parser_bug21114_innodb.result
+++ /dev/null
@@ -1,867 +0,0 @@
-drop table if exists abs;
-drop table if exists bug21114_child;
-SHOW CREATE TABLE abs;
-Table Create Table
-abs CREATE TABLE `abs` (
- `col1` int(11) NOT NULL,
- `col2` int(11) NOT NULL,
- `col3` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`col1`,`col2`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SHOW CREATE TABLE bug21114_child;
-Table Create Table
-bug21114_child CREATE TABLE `bug21114_child` (
- `pk` int(11) NOT NULL,
- `fk_col1` int(11) NOT NULL,
- `fk_col2` int(11) NOT NULL,
- `fk_col3` int(11) NOT NULL,
- `fk_col4` int(11) NOT NULL,
- KEY `fk_fct` (`fk_col1`,`fk_col2`),
- KEY `fk_fct_space` (`fk_col3`,`fk_col4`),
- CONSTRAINT `fk_fct` FOREIGN KEY (`fk_col1`, `fk_col2`) REFERENCES `abs` (`col1`, `col2`),
- CONSTRAINT `fk_fct_space` FOREIGN KEY (`fk_col3`, `fk_col4`) REFERENCES `abs` (`col1`, `col2`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE bug21114_child;
-DROP TABLE abs;
-drop table if exists field;
-drop table if exists bug21114_child;
-SHOW CREATE TABLE field;
-Table Create Table
-field CREATE TABLE `field` (
- `col1` int(11) NOT NULL,
- `col2` int(11) NOT NULL,
- `col3` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`col1`,`col2`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SHOW CREATE TABLE bug21114_child;
-Table Create Table
-bug21114_child CREATE TABLE `bug21114_child` (
- `pk` int(11) NOT NULL,
- `fk_col1` int(11) NOT NULL,
- `fk_col2` int(11) NOT NULL,
- `fk_col3` int(11) NOT NULL,
- `fk_col4` int(11) NOT NULL,
- KEY `fk_fct` (`fk_col1`,`fk_col2`),
- KEY `fk_fct_space` (`fk_col3`,`fk_col4`),
- CONSTRAINT `fk_fct` FOREIGN KEY (`fk_col1`, `fk_col2`) REFERENCES `field` (`col1`, `col2`),
- CONSTRAINT `fk_fct_space` FOREIGN KEY (`fk_col3`, `fk_col4`) REFERENCES `field` (`col1`, `col2`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE bug21114_child;
-DROP TABLE field;
-drop table if exists format;
-drop table if exists bug21114_child;
-SHOW CREATE TABLE format;
-Table Create Table
-format CREATE TABLE `format` (
- `col1` int(11) NOT NULL,
- `col2` int(11) NOT NULL,
- `col3` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`col1`,`col2`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SHOW CREATE TABLE bug21114_child;
-Table Create Table
-bug21114_child CREATE TABLE `bug21114_child` (
- `pk` int(11) NOT NULL,
- `fk_col1` int(11) NOT NULL,
- `fk_col2` int(11) NOT NULL,
- `fk_col3` int(11) NOT NULL,
- `fk_col4` int(11) NOT NULL,
- KEY `fk_fct` (`fk_col1`,`fk_col2`),
- KEY `fk_fct_space` (`fk_col3`,`fk_col4`),
- CONSTRAINT `fk_fct` FOREIGN KEY (`fk_col1`, `fk_col2`) REFERENCES `format` (`col1`, `col2`),
- CONSTRAINT `fk_fct_space` FOREIGN KEY (`fk_col3`, `fk_col4`) REFERENCES `format` (`col1`, `col2`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-DROP TABLE bug21114_child;
-DROP TABLE format;
-drop table if exists acos;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE acos;
-drop table if exists adddate;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE adddate;
-drop table if exists addtime;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE addtime;
-drop table if exists aes_decrypt;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE aes_decrypt;
-drop table if exists aes_encrypt;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE aes_encrypt;
-drop table if exists area;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE area;
-drop table if exists asbinary;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE asbinary;
-drop table if exists asin;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE asin;
-drop table if exists astext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE astext;
-drop table if exists aswkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE aswkb;
-drop table if exists aswkt;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE aswkt;
-drop table if exists atan;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE atan;
-drop table if exists atan2;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE atan2;
-drop table if exists benchmark;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE benchmark;
-drop table if exists bin;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE bin;
-drop table if exists bit_count;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE bit_count;
-drop table if exists bit_length;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE bit_length;
-drop table if exists ceil;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE ceil;
-drop table if exists ceiling;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE ceiling;
-drop table if exists centroid;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE centroid;
-drop table if exists character_length;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE character_length;
-drop table if exists char_length;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE char_length;
-drop table if exists coercibility;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE coercibility;
-drop table if exists compress;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE compress;
-drop table if exists concat;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE concat;
-drop table if exists concat_ws;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE concat_ws;
-drop table if exists connection_id;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE connection_id;
-drop table if exists conv;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE conv;
-drop table if exists convert_tz;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE convert_tz;
-drop table if exists cos;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE cos;
-drop table if exists cot;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE cot;
-drop table if exists crc32;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE crc32;
-drop table if exists crosses;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE crosses;
-drop table if exists datediff;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE datediff;
-drop table if exists date_format;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE date_format;
-drop table if exists dayname;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE dayname;
-drop table if exists dayofmonth;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE dayofmonth;
-drop table if exists dayofweek;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE dayofweek;
-drop table if exists dayofyear;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE dayofyear;
-drop table if exists decode;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE decode;
-drop table if exists degrees;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE degrees;
-drop table if exists des_decrypt;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE des_decrypt;
-drop table if exists des_encrypt;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE des_encrypt;
-drop table if exists dimension;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE dimension;
-drop table if exists disjoint;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE disjoint;
-drop table if exists elt;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE elt;
-drop table if exists encode;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE encode;
-drop table if exists encrypt;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE encrypt;
-drop table if exists endpoint;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE endpoint;
-drop table if exists envelope;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE envelope;
-drop table if exists equals;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE equals;
-drop table if exists exp;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE exp;
-drop table if exists export_set;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE export_set;
-drop table if exists exteriorring;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE exteriorring;
-drop table if exists extractvalue;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE extractvalue;
-drop table if exists find_in_set;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE find_in_set;
-drop table if exists floor;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE floor;
-drop table if exists found_rows;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE found_rows;
-drop table if exists from_days;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE from_days;
-drop table if exists from_unixtime;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE from_unixtime;
-drop table if exists geomcollfromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE geomcollfromtext;
-drop table if exists geomcollfromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE geomcollfromwkb;
-drop table if exists geometrycollectionfromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE geometrycollectionfromtext;
-drop table if exists geometrycollectionfromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE geometrycollectionfromwkb;
-drop table if exists geometryfromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE geometryfromtext;
-drop table if exists geometryfromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE geometryfromwkb;
-drop table if exists geometryn;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE geometryn;
-drop table if exists geometrytype;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE geometrytype;
-drop table if exists geomfromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE geomfromtext;
-drop table if exists geomfromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE geomfromwkb;
-drop table if exists get_lock;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE get_lock;
-drop table if exists glength;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE glength;
-drop table if exists greatest;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE greatest;
-drop table if exists hex;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE hex;
-drop table if exists ifnull;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE ifnull;
-drop table if exists inet_aton;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE inet_aton;
-drop table if exists inet_ntoa;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE inet_ntoa;
-drop table if exists instr;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE instr;
-drop table if exists interiorringn;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE interiorringn;
-drop table if exists intersects;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE intersects;
-drop table if exists isclosed;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE isclosed;
-drop table if exists isempty;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE isempty;
-drop table if exists isnull;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE isnull;
-drop table if exists issimple;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE issimple;
-drop table if exists is_free_lock;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE is_free_lock;
-drop table if exists is_used_lock;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE is_used_lock;
-drop table if exists last_day;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE last_day;
-drop table if exists last_insert_id;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE last_insert_id;
-drop table if exists lcase;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE lcase;
-drop table if exists least;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE least;
-drop table if exists length;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE length;
-drop table if exists linefromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE linefromtext;
-drop table if exists linefromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE linefromwkb;
-drop table if exists linestringfromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE linestringfromtext;
-drop table if exists linestringfromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE linestringfromwkb;
-drop table if exists ln;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE ln;
-drop table if exists load_file;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE load_file;
-drop table if exists locate;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE locate;
-drop table if exists log;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE log;
-drop table if exists log10;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE log10;
-drop table if exists log2;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE log2;
-drop table if exists lower;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE lower;
-drop table if exists lpad;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE lpad;
-drop table if exists ltrim;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE ltrim;
-drop table if exists makedate;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE makedate;
-drop table if exists maketime;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE maketime;
-drop table if exists make_set;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE make_set;
-drop table if exists master_pos_wait;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE master_pos_wait;
-drop table if exists mbrcontains;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE mbrcontains;
-drop table if exists mbrdisjoint;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE mbrdisjoint;
-drop table if exists mbrequal;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE mbrequal;
-drop table if exists mbrintersects;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE mbrintersects;
-drop table if exists mbroverlaps;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE mbroverlaps;
-drop table if exists mbrtouches;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE mbrtouches;
-drop table if exists mbrwithin;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE mbrwithin;
-drop table if exists md5;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE md5;
-drop table if exists mlinefromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE mlinefromtext;
-drop table if exists mlinefromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE mlinefromwkb;
-drop table if exists monthname;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE monthname;
-drop table if exists mpointfromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE mpointfromtext;
-drop table if exists mpointfromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE mpointfromwkb;
-drop table if exists mpolyfromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE mpolyfromtext;
-drop table if exists mpolyfromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE mpolyfromwkb;
-drop table if exists multilinestringfromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE multilinestringfromtext;
-drop table if exists multilinestringfromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE multilinestringfromwkb;
-drop table if exists multipointfromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE multipointfromtext;
-drop table if exists multipointfromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE multipointfromwkb;
-drop table if exists multipolygonfromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE multipolygonfromtext;
-drop table if exists multipolygonfromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE multipolygonfromwkb;
-drop table if exists name_const;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE name_const;
-drop table if exists nullif;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE nullif;
-drop table if exists numgeometries;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE numgeometries;
-drop table if exists numinteriorrings;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE numinteriorrings;
-drop table if exists numpoints;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE numpoints;
-drop table if exists oct;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE oct;
-drop table if exists octet_length;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE octet_length;
-drop table if exists ord;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE ord;
-drop table if exists overlaps;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE overlaps;
-drop table if exists period_add;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE period_add;
-drop table if exists period_diff;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE period_diff;
-drop table if exists pi;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE pi;
-drop table if exists pointfromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE pointfromtext;
-drop table if exists pointfromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE pointfromwkb;
-drop table if exists pointn;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE pointn;
-drop table if exists polyfromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE polyfromtext;
-drop table if exists polyfromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE polyfromwkb;
-drop table if exists polygonfromtext;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE polygonfromtext;
-drop table if exists polygonfromwkb;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE polygonfromwkb;
-drop table if exists pow;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE pow;
-drop table if exists power;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE power;
-drop table if exists quote;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE quote;
-drop table if exists radians;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE radians;
-drop table if exists rand;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE rand;
-drop table if exists release_lock;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE release_lock;
-drop table if exists reverse;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE reverse;
-drop table if exists round;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE round;
-drop table if exists row_count;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE row_count;
-drop table if exists rpad;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE rpad;
-drop table if exists rtrim;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE rtrim;
-drop table if exists sec_to_time;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE sec_to_time;
-drop table if exists session_user;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE session_user;
-drop table if exists sha;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE sha;
-drop table if exists sha1;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE sha1;
-drop table if exists sign;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE sign;
-drop table if exists sin;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE sin;
-drop table if exists sleep;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE sleep;
-drop table if exists soundex;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE soundex;
-drop table if exists space;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE space;
-drop table if exists sqrt;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE sqrt;
-drop table if exists srid;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE srid;
-drop table if exists startpoint;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE startpoint;
-drop table if exists strcmp;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE strcmp;
-drop table if exists str_to_date;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE str_to_date;
-drop table if exists subdate;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE subdate;
-drop table if exists substring_index;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE substring_index;
-drop table if exists subtime;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE subtime;
-drop table if exists system_user;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE system_user;
-drop table if exists tan;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE tan;
-drop table if exists timediff;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE timediff;
-drop table if exists time_format;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE time_format;
-drop table if exists time_to_sec;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE time_to_sec;
-drop table if exists touches;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE touches;
-drop table if exists to_days;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE to_days;
-drop table if exists ucase;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE ucase;
-drop table if exists uncompress;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE uncompress;
-drop table if exists uncompressed_length;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE uncompressed_length;
-drop table if exists unhex;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE unhex;
-drop table if exists unix_timestamp;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE unix_timestamp;
-drop table if exists updatexml;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE updatexml;
-drop table if exists upper;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE upper;
-drop table if exists uuid;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE uuid;
-drop table if exists version;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE version;
-drop table if exists weekday;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE weekday;
-drop table if exists weekofyear;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE weekofyear;
-drop table if exists within;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE within;
-drop table if exists x;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE x;
-drop table if exists y;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE y;
-drop table if exists yearweek;
-drop table if exists bug21114_child;
-DROP TABLE bug21114_child;
-DROP TABLE yearweek;
diff --git a/mysql-test/r/parser_not_embedded.result b/mysql-test/r/parser_not_embedded.result
deleted file mode 100644
index 25349e51577..00000000000
--- a/mysql-test/r/parser_not_embedded.result
+++ /dev/null
@@ -1,104 +0,0 @@
-#
-# Bug#39559: dump of stored procedures / functions with C-style
-# comment can't be read back
-#
-+----------+--------+
-| expected | result |
-+----------+--------+
-| 2 | 2 |
-+----------+--------+
-+----------+--------+
-| expected | result |
-+----------+--------+
-| 1 | 1 |
-+----------+--------+
-+----------+--------+
-| expected | result |
-+----------+--------+
-| 3 | 3 |
-+----------+--------+
-+----------+--------+
-| expected | result |
-+----------+--------+
-| 2 | 2 |
-+----------+--------+
-+----------+--------+
-| expected | result |
-+----------+--------+
-| 7 | 7 |
-+----------+--------+
-+----------+--------+
-| expected | result |
-+----------+--------+
-| 8 | 8 |
-+----------+--------+
-+----------+--------+
-| expected | result |
-+----------+--------+
-| 7 | 7 |
-+----------+--------+
-+----------+--------+
-| expected | result |
-+----------+--------+
-| 4 | 4 |
-+----------+--------+
-+----------+--------+
-| expected | result |
-+----------+--------+
-| 4 | 4 |
-+----------+--------+
-# Bug#46527 "COMMIT AND CHAIN RELEASE does not make sense"
-#
-COMMIT AND CHAIN RELEASE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RELEASE' at line 1
-COMMIT AND NO CHAIN RELEASE;
-disconnect default;
-connect default, localhost, root,,;
-COMMIT RELEASE;
-disconnect default;
-connect default, localhost, root,,;
-COMMIT CHAIN RELEASE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CHAIN RELEASE' at line 1
-COMMIT NO CHAIN RELEASE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CHAIN RELEASE' at line 1
-COMMIT AND NO RELEASE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RELEASE' at line 1
-COMMIT AND RELEASE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RELEASE' at line 1
-COMMIT NO RELEASE;
-COMMIT CHAIN NO RELEASE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CHAIN NO RELEASE' at line 1
-COMMIT NO CHAIN NO RELEASE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CHAIN NO RELEASE' at line 1
-COMMIT AND RELEASE CHAIN;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RELEASE CHAIN' at line 1
-COMMIT AND NO CHAIN NO RELEASE;
-ROLLBACK AND CHAIN RELEASE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RELEASE' at line 1
-ROLLBACK AND NO CHAIN RELEASE;
-disconnect default;
-connect default, localhost, root,,;
-ROLLBACK RELEASE;
-disconnect default;
-connect default, localhost, root,,;
-ROLLBACK CHAIN RELEASE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CHAIN RELEASE' at line 1
-ROLLBACK NO CHAIN RELEASE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CHAIN RELEASE' at line 1
-disconnect default;
-connect default, localhost, root,,;
-ROLLBACK AND NO RELEASE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RELEASE' at line 1
-ROLLBACK AND RELEASE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RELEASE' at line 1
-ROLLBACK NO RELEASE;
-ROLLBACK CHAIN NO RELEASE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CHAIN NO RELEASE' at line 1
-ROLLBACK NO CHAIN NO RELEASE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CHAIN NO RELEASE' at line 1
-ROLLBACK AND RELEASE CHAIN;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RELEASE CHAIN' at line 1
-ROLLBACK AND NO CHAIN NO RELEASE;
-#
-# End of 5.5 tests
-#
diff --git a/mysql-test/r/parser_precedence.result b/mysql-test/r/parser_precedence.result
deleted file mode 100644
index 4330c8a2045..00000000000
--- a/mysql-test/r/parser_precedence.result
+++ /dev/null
@@ -1,748 +0,0 @@
-drop table if exists t1_30237_bool;
-set sql_mode=NO_UNSIGNED_SUBTRACTION;
-create table t1_30237_bool(A boolean, B boolean, C boolean);
-insert into t1_30237_bool values
-(FALSE, FALSE, FALSE),
-(FALSE, FALSE, NULL),
-(FALSE, FALSE, TRUE),
-(FALSE, NULL, FALSE),
-(FALSE, NULL, NULL),
-(FALSE, NULL, TRUE),
-(FALSE, TRUE, FALSE),
-(FALSE, TRUE, NULL),
-(FALSE, TRUE, TRUE),
-(NULL, FALSE, FALSE),
-(NULL, FALSE, NULL),
-(NULL, FALSE, TRUE),
-(NULL, NULL, FALSE),
-(NULL, NULL, NULL),
-(NULL, NULL, TRUE),
-(NULL, TRUE, FALSE),
-(NULL, TRUE, NULL),
-(NULL, TRUE, TRUE),
-(TRUE, FALSE, FALSE),
-(TRUE, FALSE, NULL),
-(TRUE, FALSE, TRUE),
-(TRUE, NULL, FALSE),
-(TRUE, NULL, NULL),
-(TRUE, NULL, TRUE),
-(TRUE, TRUE, FALSE),
-(TRUE, TRUE, NULL),
-(TRUE, TRUE, TRUE) ;
-Testing OR, XOR, AND
-select A, B, A OR B, A XOR B, A AND B
-from t1_30237_bool where C is null order by A, B;
-A B A OR B A XOR B A AND B
-NULL NULL NULL NULL NULL
-NULL 0 NULL NULL 0
-NULL 1 1 NULL NULL
-0 NULL NULL NULL 0
-0 0 0 0 0
-0 1 1 1 0
-1 NULL 1 NULL NULL
-1 0 1 1 0
-1 1 1 0 1
-Testing that OR is associative
-select A, B, C, (A OR B) OR C, A OR (B OR C), A OR B OR C
-from t1_30237_bool order by A, B, C;
-A B C (A OR B) OR C A OR (B OR C) A OR B OR C
-NULL NULL NULL NULL NULL NULL
-NULL NULL 0 NULL NULL NULL
-NULL NULL 1 1 1 1
-NULL 0 NULL NULL NULL NULL
-NULL 0 0 NULL NULL NULL
-NULL 0 1 1 1 1
-NULL 1 NULL 1 1 1
-NULL 1 0 1 1 1
-NULL 1 1 1 1 1
-0 NULL NULL NULL NULL NULL
-0 NULL 0 NULL NULL NULL
-0 NULL 1 1 1 1
-0 0 NULL NULL NULL NULL
-0 0 0 0 0 0
-0 0 1 1 1 1
-0 1 NULL 1 1 1
-0 1 0 1 1 1
-0 1 1 1 1 1
-1 NULL NULL 1 1 1
-1 NULL 0 1 1 1
-1 NULL 1 1 1 1
-1 0 NULL 1 1 1
-1 0 0 1 1 1
-1 0 1 1 1 1
-1 1 NULL 1 1 1
-1 1 0 1 1 1
-1 1 1 1 1 1
-select count(*) from t1_30237_bool
-where ((A OR B) OR C) != (A OR (B OR C));
-count(*)
-0
-Testing that XOR is associative
-select A, B, C, (A XOR B) XOR C, A XOR (B XOR C), A XOR B XOR C
-from t1_30237_bool order by A, B, C;
-A B C (A XOR B) XOR C A XOR (B XOR C) A XOR B XOR C
-NULL NULL NULL NULL NULL NULL
-NULL NULL 0 NULL NULL NULL
-NULL NULL 1 NULL NULL NULL
-NULL 0 NULL NULL NULL NULL
-NULL 0 0 NULL NULL NULL
-NULL 0 1 NULL NULL NULL
-NULL 1 NULL NULL NULL NULL
-NULL 1 0 NULL NULL NULL
-NULL 1 1 NULL NULL NULL
-0 NULL NULL NULL NULL NULL
-0 NULL 0 NULL NULL NULL
-0 NULL 1 NULL NULL NULL
-0 0 NULL NULL NULL NULL
-0 0 0 0 0 0
-0 0 1 1 1 1
-0 1 NULL NULL NULL NULL
-0 1 0 1 1 1
-0 1 1 0 0 0
-1 NULL NULL NULL NULL NULL
-1 NULL 0 NULL NULL NULL
-1 NULL 1 NULL NULL NULL
-1 0 NULL NULL NULL NULL
-1 0 0 1 1 1
-1 0 1 0 0 0
-1 1 NULL NULL NULL NULL
-1 1 0 0 0 0
-1 1 1 1 1 1
-select count(*) from t1_30237_bool
-where ((A XOR B) XOR C) != (A XOR (B XOR C));
-count(*)
-0
-Testing that AND is associative
-select A, B, C, (A AND B) AND C, A AND (B AND C), A AND B AND C
-from t1_30237_bool order by A, B, C;
-A B C (A AND B) AND C A AND (B AND C) A AND B AND C
-NULL NULL NULL NULL NULL NULL
-NULL NULL 0 0 0 0
-NULL NULL 1 NULL NULL NULL
-NULL 0 NULL 0 0 0
-NULL 0 0 0 0 0
-NULL 0 1 0 0 0
-NULL 1 NULL NULL NULL NULL
-NULL 1 0 0 0 0
-NULL 1 1 NULL NULL NULL
-0 NULL NULL 0 0 0
-0 NULL 0 0 0 0
-0 NULL 1 0 0 0
-0 0 NULL 0 0 0
-0 0 0 0 0 0
-0 0 1 0 0 0
-0 1 NULL 0 0 0
-0 1 0 0 0 0
-0 1 1 0 0 0
-1 NULL NULL NULL NULL NULL
-1 NULL 0 0 0 0
-1 NULL 1 NULL NULL NULL
-1 0 NULL 0 0 0
-1 0 0 0 0 0
-1 0 1 0 0 0
-1 1 NULL NULL NULL NULL
-1 1 0 0 0 0
-1 1 1 1 1 1
-select count(*) from t1_30237_bool
-where ((A AND B) AND C) != (A AND (B AND C));
-count(*)
-0
-Testing that AND has precedence over OR
-select A, B, C, (A OR B) AND C, A OR (B AND C), A OR B AND C
-from t1_30237_bool order by A, B, C;
-A B C (A OR B) AND C A OR (B AND C) A OR B AND C
-NULL NULL NULL NULL NULL NULL
-NULL NULL 0 0 NULL NULL
-NULL NULL 1 NULL NULL NULL
-NULL 0 NULL NULL NULL NULL
-NULL 0 0 0 NULL NULL
-NULL 0 1 NULL NULL NULL
-NULL 1 NULL NULL NULL NULL
-NULL 1 0 0 NULL NULL
-NULL 1 1 1 1 1
-0 NULL NULL NULL NULL NULL
-0 NULL 0 0 0 0
-0 NULL 1 NULL NULL NULL
-0 0 NULL 0 0 0
-0 0 0 0 0 0
-0 0 1 0 0 0
-0 1 NULL NULL NULL NULL
-0 1 0 0 0 0
-0 1 1 1 1 1
-1 NULL NULL NULL 1 1
-1 NULL 0 0 1 1
-1 NULL 1 1 1 1
-1 0 NULL NULL 1 1
-1 0 0 0 1 1
-1 0 1 1 1 1
-1 1 NULL NULL 1 1
-1 1 0 0 1 1
-1 1 1 1 1 1
-select count(*) from t1_30237_bool
-where (A OR (B AND C)) != (A OR B AND C);
-count(*)
-0
-select A, B, C, (A AND B) OR C, A AND (B OR C), A AND B OR C
-from t1_30237_bool order by A, B, C;
-A B C (A AND B) OR C A AND (B OR C) A AND B OR C
-NULL NULL NULL NULL NULL NULL
-NULL NULL 0 NULL NULL NULL
-NULL NULL 1 1 NULL 1
-NULL 0 NULL NULL NULL NULL
-NULL 0 0 0 0 0
-NULL 0 1 1 NULL 1
-NULL 1 NULL NULL NULL NULL
-NULL 1 0 NULL NULL NULL
-NULL 1 1 1 NULL 1
-0 NULL NULL NULL 0 NULL
-0 NULL 0 0 0 0
-0 NULL 1 1 0 1
-0 0 NULL NULL 0 NULL
-0 0 0 0 0 0
-0 0 1 1 0 1
-0 1 NULL NULL 0 NULL
-0 1 0 0 0 0
-0 1 1 1 0 1
-1 NULL NULL NULL NULL NULL
-1 NULL 0 NULL NULL NULL
-1 NULL 1 1 1 1
-1 0 NULL NULL NULL NULL
-1 0 0 0 0 0
-1 0 1 1 1 1
-1 1 NULL 1 1 1
-1 1 0 1 1 1
-1 1 1 1 1 1
-select count(*) from t1_30237_bool
-where ((A AND B) OR C) != (A AND B OR C);
-count(*)
-0
-Testing that AND has precedence over XOR
-select A, B, C, (A XOR B) AND C, A XOR (B AND C), A XOR B AND C
-from t1_30237_bool order by A, B, C;
-A B C (A XOR B) AND C A XOR (B AND C) A XOR B AND C
-NULL NULL NULL NULL NULL NULL
-NULL NULL 0 0 NULL NULL
-NULL NULL 1 NULL NULL NULL
-NULL 0 NULL NULL NULL NULL
-NULL 0 0 0 NULL NULL
-NULL 0 1 NULL NULL NULL
-NULL 1 NULL NULL NULL NULL
-NULL 1 0 0 NULL NULL
-NULL 1 1 NULL NULL NULL
-0 NULL NULL NULL NULL NULL
-0 NULL 0 0 0 0
-0 NULL 1 NULL NULL NULL
-0 0 NULL 0 0 0
-0 0 0 0 0 0
-0 0 1 0 0 0
-0 1 NULL NULL NULL NULL
-0 1 0 0 0 0
-0 1 1 1 1 1
-1 NULL NULL NULL NULL NULL
-1 NULL 0 0 1 1
-1 NULL 1 NULL NULL NULL
-1 0 NULL NULL 1 1
-1 0 0 0 1 1
-1 0 1 1 1 1
-1 1 NULL 0 NULL NULL
-1 1 0 0 1 1
-1 1 1 0 0 0
-select count(*) from t1_30237_bool
-where (A XOR (B AND C)) != (A XOR B AND C);
-count(*)
-0
-select A, B, C, (A AND B) XOR C, A AND (B XOR C), A AND B XOR C
-from t1_30237_bool order by A, B, C;
-A B C (A AND B) XOR C A AND (B XOR C) A AND B XOR C
-NULL NULL NULL NULL NULL NULL
-NULL NULL 0 NULL NULL NULL
-NULL NULL 1 NULL NULL NULL
-NULL 0 NULL NULL NULL NULL
-NULL 0 0 0 0 0
-NULL 0 1 1 NULL 1
-NULL 1 NULL NULL NULL NULL
-NULL 1 0 NULL NULL NULL
-NULL 1 1 NULL 0 NULL
-0 NULL NULL NULL 0 NULL
-0 NULL 0 0 0 0
-0 NULL 1 1 0 1
-0 0 NULL NULL 0 NULL
-0 0 0 0 0 0
-0 0 1 1 0 1
-0 1 NULL NULL 0 NULL
-0 1 0 0 0 0
-0 1 1 1 0 1
-1 NULL NULL NULL NULL NULL
-1 NULL 0 NULL NULL NULL
-1 NULL 1 NULL NULL NULL
-1 0 NULL NULL NULL NULL
-1 0 0 0 0 0
-1 0 1 1 1 1
-1 1 NULL NULL NULL NULL
-1 1 0 1 1 1
-1 1 1 0 0 0
-select count(*) from t1_30237_bool
-where ((A AND B) XOR C) != (A AND B XOR C);
-count(*)
-0
-Testing that XOR has precedence over OR
-select A, B, C, (A XOR B) OR C, A XOR (B OR C), A XOR B OR C
-from t1_30237_bool order by A, B, C;
-A B C (A XOR B) OR C A XOR (B OR C) A XOR B OR C
-NULL NULL NULL NULL NULL NULL
-NULL NULL 0 NULL NULL NULL
-NULL NULL 1 1 NULL 1
-NULL 0 NULL NULL NULL NULL
-NULL 0 0 NULL NULL NULL
-NULL 0 1 1 NULL 1
-NULL 1 NULL NULL NULL NULL
-NULL 1 0 NULL NULL NULL
-NULL 1 1 1 NULL 1
-0 NULL NULL NULL NULL NULL
-0 NULL 0 NULL NULL NULL
-0 NULL 1 1 1 1
-0 0 NULL NULL NULL NULL
-0 0 0 0 0 0
-0 0 1 1 1 1
-0 1 NULL 1 1 1
-0 1 0 1 1 1
-0 1 1 1 1 1
-1 NULL NULL NULL NULL NULL
-1 NULL 0 NULL NULL NULL
-1 NULL 1 1 0 1
-1 0 NULL 1 NULL 1
-1 0 0 1 1 1
-1 0 1 1 0 1
-1 1 NULL NULL 0 NULL
-1 1 0 0 0 0
-1 1 1 1 0 1
-select count(*) from t1_30237_bool
-where ((A XOR B) OR C) != (A XOR B OR C);
-count(*)
-0
-select A, B, C, (A OR B) XOR C, A OR (B XOR C), A OR B XOR C
-from t1_30237_bool order by A, B, C;
-A B C (A OR B) XOR C A OR (B XOR C) A OR B XOR C
-NULL NULL NULL NULL NULL NULL
-NULL NULL 0 NULL NULL NULL
-NULL NULL 1 NULL NULL NULL
-NULL 0 NULL NULL NULL NULL
-NULL 0 0 NULL NULL NULL
-NULL 0 1 NULL 1 1
-NULL 1 NULL NULL NULL NULL
-NULL 1 0 1 1 1
-NULL 1 1 0 NULL NULL
-0 NULL NULL NULL NULL NULL
-0 NULL 0 NULL NULL NULL
-0 NULL 1 NULL NULL NULL
-0 0 NULL NULL NULL NULL
-0 0 0 0 0 0
-0 0 1 1 1 1
-0 1 NULL NULL NULL NULL
-0 1 0 1 1 1
-0 1 1 0 0 0
-1 NULL NULL NULL 1 1
-1 NULL 0 1 1 1
-1 NULL 1 0 1 1
-1 0 NULL NULL 1 1
-1 0 0 1 1 1
-1 0 1 0 1 1
-1 1 NULL NULL 1 1
-1 1 0 1 1 1
-1 1 1 0 1 1
-select count(*) from t1_30237_bool
-where (A OR (B XOR C)) != (A OR B XOR C);
-count(*)
-0
-drop table t1_30237_bool;
-Testing that NOT has precedence over OR
-select (NOT FALSE) OR TRUE, NOT (FALSE OR TRUE), NOT FALSE OR TRUE;
-(NOT FALSE) OR TRUE NOT (FALSE OR TRUE) NOT FALSE OR TRUE
-1 0 1
-Testing that NOT has precedence over XOR
-select (NOT FALSE) XOR FALSE, NOT (FALSE XOR FALSE), NOT FALSE XOR FALSE;
-(NOT FALSE) XOR FALSE NOT (FALSE XOR FALSE) NOT FALSE XOR FALSE
-1 1 1
-Testing that NOT has precedence over AND
-select (NOT FALSE) AND FALSE, NOT (FALSE AND FALSE), NOT FALSE AND FALSE;
-(NOT FALSE) AND FALSE NOT (FALSE AND FALSE) NOT FALSE AND FALSE
-0 1 0
-Testing that NOT is associative
-select NOT NOT TRUE, NOT NOT NOT FALSE;
-NOT NOT TRUE NOT NOT NOT FALSE
-1 1
-Testing that IS has precedence over NOT
-select (NOT NULL) IS TRUE, NOT (NULL IS TRUE), NOT NULL IS TRUE;
-(NOT NULL) IS TRUE NOT (NULL IS TRUE) NOT NULL IS TRUE
-0 1 1
-select (NOT NULL) IS NOT TRUE, NOT (NULL IS NOT TRUE), NOT NULL IS NOT TRUE;
-(NOT NULL) IS NOT TRUE NOT (NULL IS NOT TRUE) NOT NULL IS NOT TRUE
-1 0 0
-select (NOT NULL) IS FALSE, NOT (NULL IS FALSE), NOT NULL IS FALSE;
-(NOT NULL) IS FALSE NOT (NULL IS FALSE) NOT NULL IS FALSE
-0 1 1
-select (NOT NULL) IS NOT FALSE, NOT (NULL IS NOT FALSE), NOT NULL IS NOT FALSE;
-(NOT NULL) IS NOT FALSE NOT (NULL IS NOT FALSE) NOT NULL IS NOT FALSE
-1 0 0
-select (NOT TRUE) IS UNKNOWN, NOT (TRUE IS UNKNOWN), NOT TRUE IS UNKNOWN;
-(NOT TRUE) IS UNKNOWN NOT (TRUE IS UNKNOWN) NOT TRUE IS UNKNOWN
-0 1 1
-select (NOT TRUE) IS NOT UNKNOWN, NOT (TRUE IS NOT UNKNOWN), NOT TRUE IS NOT UNKNOWN;
-(NOT TRUE) IS NOT UNKNOWN NOT (TRUE IS NOT UNKNOWN) NOT TRUE IS NOT UNKNOWN
-1 0 0
-select (NOT TRUE) IS NULL, NOT (TRUE IS NULL), NOT TRUE IS NULL;
-(NOT TRUE) IS NULL NOT (TRUE IS NULL) NOT TRUE IS NULL
-0 1 1
-select (NOT TRUE) IS NOT NULL, NOT (TRUE IS NOT NULL), NOT TRUE IS NOT NULL;
-(NOT TRUE) IS NOT NULL NOT (TRUE IS NOT NULL) NOT TRUE IS NOT NULL
-1 0 0
-Testing that IS [NOT] TRUE/FALSE/UNKNOWN predicates are not associative
-select TRUE IS TRUE IS TRUE IS TRUE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IS TRUE IS TRUE' at line 1
-select FALSE IS NOT TRUE IS NOT TRUE IS NOT TRUE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IS NOT TRUE IS NOT TRUE' at line 1
-select NULL IS FALSE IS FALSE IS FALSE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IS FALSE IS FALSE' at line 1
-select TRUE IS NOT FALSE IS NOT FALSE IS NOT FALSE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IS NOT FALSE IS NOT FALSE' at line 1
-select FALSE IS UNKNOWN IS UNKNOWN IS UNKNOWN;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IS UNKNOWN IS UNKNOWN' at line 1
-select TRUE IS NOT UNKNOWN IS NOT UNKNOWN IS NOT UNKNOWN;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IS NOT UNKNOWN IS NOT UNKNOWN' at line 1
-Testing that IS [NOT] NULL predicates are associative
-select FALSE IS NULL IS NULL IS NULL;
-FALSE IS NULL IS NULL IS NULL
-0
-select TRUE IS NOT NULL IS NOT NULL IS NOT NULL;
-TRUE IS NOT NULL IS NOT NULL IS NOT NULL
-1
-Testing that comparison operators are left associative
-select 1 <=> 2 <=> 2, (1 <=> 2) <=> 2, 1 <=> (2 <=> 2);
-1 <=> 2 <=> 2 (1 <=> 2) <=> 2 1 <=> (2 <=> 2)
-0 0 1
-select 1 = 2 = 2, (1 = 2) = 2, 1 = (2 = 2);
-1 = 2 = 2 (1 = 2) = 2 1 = (2 = 2)
-0 0 1
-select 1 != 2 != 3, (1 != 2) != 3, 1 != (2 != 3);
-1 != 2 != 3 (1 != 2) != 3 1 != (2 != 3)
-1 1 0
-select 1 <> 2 <> 3, (1 <> 2) <> 3, 1 <> (2 <> 3);
-1 <> 2 <> 3 (1 <> 2) <> 3 1 <> (2 <> 3)
-1 1 0
-select 1 < 2 < 3, (1 < 2) < 3, 1 < (2 < 3);
-1 < 2 < 3 (1 < 2) < 3 1 < (2 < 3)
-1 1 0
-select 3 <= 2 <= 1, (3 <= 2) <= 1, 3 <= (2 <= 1);
-3 <= 2 <= 1 (3 <= 2) <= 1 3 <= (2 <= 1)
-1 1 0
-select 1 > 2 > 3, (1 > 2) > 3, 1 > (2 > 3);
-1 > 2 > 3 (1 > 2) > 3 1 > (2 > 3)
-0 0 1
-select 1 >= 2 >= 3, (1 >= 2) >= 3, 1 >= (2 >= 3);
-1 >= 2 >= 3 (1 >= 2) >= 3 1 >= (2 >= 3)
-0 0 1
-Testing that | is associative
-select 0xF0 | 0x0F | 0x55, (0xF0 | 0x0F) | 0x55, 0xF0 | (0x0F | 0x55);
-0xF0 | 0x0F | 0x55 (0xF0 | 0x0F) | 0x55 0xF0 | (0x0F | 0x55)
-255 255 255
-Testing that & is associative
-select 0xF5 & 0x5F & 0x55, (0xF5 & 0x5F) & 0x55, 0xF5 & (0x5F & 0x55);
-0xF5 & 0x5F & 0x55 (0xF5 & 0x5F) & 0x55 0xF5 & (0x5F & 0x55)
-85 85 85
-Testing that << is left associative
-select 4 << 3 << 2, (4 << 3) << 2, 4 << (3 << 2);
-4 << 3 << 2 (4 << 3) << 2 4 << (3 << 2)
-128 128 16384
-Testing that >> is left associative
-select 256 >> 3 >> 2, (256 >> 3) >> 2, 256 >> (3 >> 2);
-256 >> 3 >> 2 (256 >> 3) >> 2 256 >> (3 >> 2)
-8 8 256
-Testing that & has precedence over |
-select 0xF0 & 0x0F | 0x55, (0xF0 & 0x0F) | 0x55, 0xF0 & (0x0F | 0x55);
-0xF0 & 0x0F | 0x55 (0xF0 & 0x0F) | 0x55 0xF0 & (0x0F | 0x55)
-85 85 80
-select 0x55 | 0xF0 & 0x0F, (0x55 | 0xF0) & 0x0F, 0x55 | (0xF0 & 0x0F);
-0x55 | 0xF0 & 0x0F (0x55 | 0xF0) & 0x0F 0x55 | (0xF0 & 0x0F)
-85 5 85
-Testing that << has precedence over |
-select 0x0F << 4 | 0x0F, (0x0F << 4) | 0x0F, 0x0F << (4 | 0x0F);
-0x0F << 4 | 0x0F (0x0F << 4) | 0x0F 0x0F << (4 | 0x0F)
-255 255 491520
-select 0x0F | 0x0F << 4, (0x0F | 0x0F) << 4, 0x0F | (0x0F << 4);
-0x0F | 0x0F << 4 (0x0F | 0x0F) << 4 0x0F | (0x0F << 4)
-255 240 255
-Testing that >> has precedence over |
-select 0xF0 >> 4 | 0xFF, (0xF0 >> 4) | 0xFF, 0xF0 >> (4 | 0xFF);
-0xF0 >> 4 | 0xFF (0xF0 >> 4) | 0xFF 0xF0 >> (4 | 0xFF)
-255 255 0
-select 0xFF | 0xF0 >> 4, (0xFF | 0xF0) >> 4, 0xFF | (0xF0 >> 4);
-0xFF | 0xF0 >> 4 (0xFF | 0xF0) >> 4 0xFF | (0xF0 >> 4)
-255 15 255
-Testing that << has precedence over &
-select 0x0F << 4 & 0xF0, (0x0F << 4) & 0xF0, 0x0F << (4 & 0xF0);
-0x0F << 4 & 0xF0 (0x0F << 4) & 0xF0 0x0F << (4 & 0xF0)
-240 240 15
-select 0xF0 & 0x0F << 4, (0xF0 & 0x0F) << 4, 0xF0 & (0x0F << 4);
-0xF0 & 0x0F << 4 (0xF0 & 0x0F) << 4 0xF0 & (0x0F << 4)
-240 0 240
-Testing that >> has precedence over &
-select 0xF0 >> 4 & 0x55, (0xF0 >> 4) & 0x55, 0xF0 >> (4 & 0x55);
-0xF0 >> 4 & 0x55 (0xF0 >> 4) & 0x55 0xF0 >> (4 & 0x55)
-5 5 15
-select 0x0F & 0xF0 >> 4, (0x0F & 0xF0) >> 4, 0x0F & (0xF0 >> 4);
-0x0F & 0xF0 >> 4 (0x0F & 0xF0) >> 4 0x0F & (0xF0 >> 4)
-15 0 15
-Testing that >> and << have the same precedence
-select 0xFF >> 4 << 2, (0xFF >> 4) << 2, 0xFF >> (4 << 2);
-0xFF >> 4 << 2 (0xFF >> 4) << 2 0xFF >> (4 << 2)
-60 60 0
-select 0x0F << 4 >> 2, (0x0F << 4) >> 2, 0x0F << (4 >> 2);
-0x0F << 4 >> 2 (0x0F << 4) >> 2 0x0F << (4 >> 2)
-60 60 30
-Testing that binary + is associative
-select 1 + 2 + 3, (1 + 2) + 3, 1 + (2 + 3);
-1 + 2 + 3 (1 + 2) + 3 1 + (2 + 3)
-6 6 6
-Testing that binary - is left associative
-select 1 - 2 - 3, (1 - 2) - 3, 1 - (2 - 3);
-1 - 2 - 3 (1 - 2) - 3 1 - (2 - 3)
--4 -4 2
-Testing that binary + and binary - have the same precedence
-select 1 + 2 - 3, (1 + 2) - 3, 1 + (2 - 3);
-1 + 2 - 3 (1 + 2) - 3 1 + (2 - 3)
-0 0 0
-select 1 - 2 + 3, (1 - 2) + 3, 1 - (2 + 3);
-1 - 2 + 3 (1 - 2) + 3 1 - (2 + 3)
-2 2 -4
-Testing that binary + has precedence over |
-select 0xF0 + 0x0F | 0x55, (0xF0 + 0x0F) | 0x55, 0xF0 + (0x0F | 0x55);
-0xF0 + 0x0F | 0x55 (0xF0 + 0x0F) | 0x55 0xF0 + (0x0F | 0x55)
-255 255 335
-select 0x55 | 0xF0 + 0x0F, (0x55 | 0xF0) + 0x0F, 0x55 | (0xF0 + 0x0F);
-0x55 | 0xF0 + 0x0F (0x55 | 0xF0) + 0x0F 0x55 | (0xF0 + 0x0F)
-255 260 255
-Testing that binary + has precedence over &
-select 0xF0 + 0x0F & 0x55, (0xF0 + 0x0F) & 0x55, 0xF0 + (0x0F & 0x55);
-0xF0 + 0x0F & 0x55 (0xF0 + 0x0F) & 0x55 0xF0 + (0x0F & 0x55)
-85 85 245
-select 0x55 & 0xF0 + 0x0F, (0x55 & 0xF0) + 0x0F, 0x55 & (0xF0 + 0x0F);
-0x55 & 0xF0 + 0x0F (0x55 & 0xF0) + 0x0F 0x55 & (0xF0 + 0x0F)
-85 95 85
-Testing that binary + has precedence over <<
-select 2 + 3 << 4, (2 + 3) << 4, 2 + (3 << 4);
-2 + 3 << 4 (2 + 3) << 4 2 + (3 << 4)
-80 80 50
-select 3 << 4 + 2, (3 << 4) + 2, 3 << (4 + 2);
-3 << 4 + 2 (3 << 4) + 2 3 << (4 + 2)
-192 50 192
-Testing that binary + has precedence over >>
-select 4 + 3 >> 2, (4 + 3) >> 2, 4 + (3 >> 2);
-4 + 3 >> 2 (4 + 3) >> 2 4 + (3 >> 2)
-1 1 4
-select 3 >> 2 + 1, (3 >> 2) + 1, 3 >> (2 + 1);
-3 >> 2 + 1 (3 >> 2) + 1 3 >> (2 + 1)
-0 1 0
-Testing that binary - has precedence over |
-select 0xFF - 0x0F | 0x55, (0xFF - 0x0F) | 0x55, 0xFF - (0x0F | 0x55);
-0xFF - 0x0F | 0x55 (0xFF - 0x0F) | 0x55 0xFF - (0x0F | 0x55)
-245 245 160
-select 0x55 | 0xFF - 0xF0, (0x55 | 0xFF) - 0xF0, 0x55 | (0xFF - 0xF0);
-0x55 | 0xFF - 0xF0 (0x55 | 0xFF) - 0xF0 0x55 | (0xFF - 0xF0)
-95 15 95
-Testing that binary - has precedence over &
-select 0xFF - 0xF0 & 0x55, (0xFF - 0xF0) & 0x55, 0xFF - (0xF0 & 0x55);
-0xFF - 0xF0 & 0x55 (0xFF - 0xF0) & 0x55 0xFF - (0xF0 & 0x55)
-5 5 175
-select 0x55 & 0xFF - 0xF0, (0x55 & 0xFF) - 0xF0, 0x55 & (0xFF - 0xF0);
-0x55 & 0xFF - 0xF0 (0x55 & 0xFF) - 0xF0 0x55 & (0xFF - 0xF0)
-5 -155 5
-Testing that binary - has precedence over <<
-select 16 - 3 << 2, (16 - 3) << 2, 16 - (3 << 2);
-16 - 3 << 2 (16 - 3) << 2 16 - (3 << 2)
-52 52 4
-select 4 << 3 - 2, (4 << 3) - 2, 4 << (3 - 2);
-4 << 3 - 2 (4 << 3) - 2 4 << (3 - 2)
-8 30 8
-Testing that binary - has precedence over >>
-select 16 - 3 >> 2, (16 - 3) >> 2, 16 - (3 >> 2);
-16 - 3 >> 2 (16 - 3) >> 2 16 - (3 >> 2)
-3 3 16
-select 16 >> 3 - 2, (16 >> 3) - 2, 16 >> (3 - 2);
-16 >> 3 - 2 (16 >> 3) - 2 16 >> (3 - 2)
-8 0 8
-Testing that * is associative
-select 2 * 3 * 4, (2 * 3) * 4, 2 * (3 * 4);
-2 * 3 * 4 (2 * 3) * 4 2 * (3 * 4)
-24 24 24
-Testing that * has precedence over |
-select 2 * 0x40 | 0x0F, (2 * 0x40) | 0x0F, 2 * (0x40 | 0x0F);
-2 * 0x40 | 0x0F (2 * 0x40) | 0x0F 2 * (0x40 | 0x0F)
-143 143 158
-select 0x0F | 2 * 0x40, (0x0F | 2) * 0x40, 0x0F | (2 * 0x40);
-0x0F | 2 * 0x40 (0x0F | 2) * 0x40 0x0F | (2 * 0x40)
-143 960 143
-Testing that * has precedence over &
-select 2 * 0x40 & 0x55, (2 * 0x40) & 0x55, 2 * (0x40 & 0x55);
-2 * 0x40 & 0x55 (2 * 0x40) & 0x55 2 * (0x40 & 0x55)
-0 0 128
-select 0xF0 & 2 * 0x40, (0xF0 & 2) * 0x40, 0xF0 & (2 * 0x40);
-0xF0 & 2 * 0x40 (0xF0 & 2) * 0x40 0xF0 & (2 * 0x40)
-128 0 128
-Testing that * has precedence over <<
-select 5 * 3 << 4, (5 * 3) << 4, 5 * (3 << 4);
-5 * 3 << 4 (5 * 3) << 4 5 * (3 << 4)
-240 240 240
-select 2 << 3 * 4, (2 << 3) * 4, 2 << (3 * 4);
-2 << 3 * 4 (2 << 3) * 4 2 << (3 * 4)
-8192 64 8192
-Testing that * has precedence over >>
-select 3 * 4 >> 2, (3 * 4) >> 2, 3 * (4 >> 2);
-3 * 4 >> 2 (3 * 4) >> 2 3 * (4 >> 2)
-3 3 3
-select 4 >> 2 * 3, (4 >> 2) * 3, 4 >> (2 * 3);
-4 >> 2 * 3 (4 >> 2) * 3 4 >> (2 * 3)
-0 3 0
-Testing that * has precedence over binary +
-select 2 * 3 + 4, (2 * 3) + 4, 2 * (3 + 4);
-2 * 3 + 4 (2 * 3) + 4 2 * (3 + 4)
-10 10 14
-select 2 + 3 * 4, (2 + 3) * 4, 2 + (3 * 4);
-2 + 3 * 4 (2 + 3) * 4 2 + (3 * 4)
-14 20 14
-Testing that * has precedence over binary -
-select 4 * 3 - 2, (4 * 3) - 2, 4 * (3 - 2);
-4 * 3 - 2 (4 * 3) - 2 4 * (3 - 2)
-10 10 4
-select 4 - 3 * 2, (4 - 3) * 2, 4 - (3 * 2);
-4 - 3 * 2 (4 - 3) * 2 4 - (3 * 2)
--2 2 -2
-Testing that / is left associative
-select 15 / 5 / 3, (15 / 5) / 3, 15 / (5 / 3);
-15 / 5 / 3 (15 / 5) / 3 15 / (5 / 3)
-1.00000000 1.00000000 9.0000
-Testing that / has precedence over |
-select 105 / 5 | 2, (105 / 5) | 2, 105 / (5 | 2);
-105 / 5 | 2 (105 / 5) | 2 105 / (5 | 2)
-23 23 15.0000
-select 105 | 2 / 5, (105 | 2) / 5, 105 | (2 / 5);
-105 | 2 / 5 (105 | 2) / 5 105 | (2 / 5)
-105 21.4000 105
-Testing that / has precedence over &
-select 105 / 5 & 0x0F, (105 / 5) & 0x0F, 105 / (5 & 0x0F);
-105 / 5 & 0x0F (105 / 5) & 0x0F 105 / (5 & 0x0F)
-5 5 21.0000
-select 0x0F & 105 / 5, (0x0F & 105) / 5, 0x0F & (105 / 5);
-0x0F & 105 / 5 (0x0F & 105) / 5 0x0F & (105 / 5)
-5 1.8000 5
-Testing that / has precedence over <<
-select 0x80 / 4 << 2, (0x80 / 4) << 2, 0x80 / (4 << 2);
-0x80 / 4 << 2 (0x80 / 4) << 2 0x80 / (4 << 2)
-128 128 8.0000
-select 0x80 << 4 / 2, (0x80 << 4) / 2, 0x80 << (4 / 2);
-0x80 << 4 / 2 (0x80 << 4) / 2 0x80 << (4 / 2)
-512 1024.0000 512
-Testing that / has precedence over >>
-select 0x80 / 4 >> 2, (0x80 / 4) >> 2, 0x80 / (4 >> 2);
-0x80 / 4 >> 2 (0x80 / 4) >> 2 0x80 / (4 >> 2)
-8 8 128.0000
-select 0x80 >> 4 / 2, (0x80 >> 4) / 2, 0x80 >> (4 / 2);
-0x80 >> 4 / 2 (0x80 >> 4) / 2 0x80 >> (4 / 2)
-32 4.0000 32
-Testing that / has precedence over binary +
-select 0x80 / 2 + 2, (0x80 / 2) + 2, 0x80 / (2 + 2);
-0x80 / 2 + 2 (0x80 / 2) + 2 0x80 / (2 + 2)
-66.0000 66.0000 32.0000
-select 0x80 + 2 / 2, (0x80 + 2) / 2, 0x80 + (2 / 2);
-0x80 + 2 / 2 (0x80 + 2) / 2 0x80 + (2 / 2)
-129.0000 65.0000 129.0000
-Testing that / has precedence over binary -
-select 0x80 / 4 - 2, (0x80 / 4) - 2, 0x80 / (4 - 2);
-0x80 / 4 - 2 (0x80 / 4) - 2 0x80 / (4 - 2)
-30.0000 30.0000 64.0000
-select 0x80 - 4 / 2, (0x80 - 4) / 2, 0x80 - (4 / 2);
-0x80 - 4 / 2 (0x80 - 4) / 2 0x80 - (4 / 2)
-126.0000 62.0000 126.0000
-Testing that ^ is associative
-select 0xFF ^ 0xF0 ^ 0x0F, (0xFF ^ 0xF0) ^ 0x0F, 0xFF ^ (0xF0 ^ 0x0F);
-0xFF ^ 0xF0 ^ 0x0F (0xFF ^ 0xF0) ^ 0x0F 0xFF ^ (0xF0 ^ 0x0F)
-0 0 0
-select 0xFF ^ 0xF0 ^ 0x55, (0xFF ^ 0xF0) ^ 0x55, 0xFF ^ (0xF0 ^ 0x55);
-0xFF ^ 0xF0 ^ 0x55 (0xFF ^ 0xF0) ^ 0x55 0xFF ^ (0xF0 ^ 0x55)
-90 90 90
-Testing that ^ has precedence over |
-select 0xFF ^ 0xF0 | 0x0F, (0xFF ^ 0xF0) | 0x0F, 0xFF ^ (0xF0 | 0x0F);
-0xFF ^ 0xF0 | 0x0F (0xFF ^ 0xF0) | 0x0F 0xFF ^ (0xF0 | 0x0F)
-15 15 0
-select 0xF0 | 0xFF ^ 0xF0, (0xF0 | 0xFF) ^ 0xF0, 0xF0 | (0xFF ^ 0xF0);
-0xF0 | 0xFF ^ 0xF0 (0xF0 | 0xFF) ^ 0xF0 0xF0 | (0xFF ^ 0xF0)
-255 15 255
-Testing that ^ has precedence over &
-select 0xFF ^ 0xF0 & 0x0F, (0xFF ^ 0xF0) & 0x0F, 0xFF ^ (0xF0 & 0x0F);
-0xFF ^ 0xF0 & 0x0F (0xFF ^ 0xF0) & 0x0F 0xFF ^ (0xF0 & 0x0F)
-15 15 255
-select 0x0F & 0xFF ^ 0xF0, (0x0F & 0xFF) ^ 0xF0, 0x0F & (0xFF ^ 0xF0);
-0x0F & 0xFF ^ 0xF0 (0x0F & 0xFF) ^ 0xF0 0x0F & (0xFF ^ 0xF0)
-15 255 15
-Testing that ^ has precedence over <<
-select 0xFF ^ 0xF0 << 2, (0xFF ^ 0xF0) << 2, 0xFF ^ (0xF0 << 2);
-0xFF ^ 0xF0 << 2 (0xFF ^ 0xF0) << 2 0xFF ^ (0xF0 << 2)
-60 60 831
-select 0x0F << 2 ^ 0xFF, (0x0F << 2) ^ 0xFF, 0x0F << (2 ^ 0xFF);
-0x0F << 2 ^ 0xFF (0x0F << 2) ^ 0xFF 0x0F << (2 ^ 0xFF)
-0 195 0
-Testing that ^ has precedence over >>
-select 0xFF ^ 0xF0 >> 2, (0xFF ^ 0xF0) >> 2, 0xFF ^ (0xF0 >> 2);
-0xFF ^ 0xF0 >> 2 (0xFF ^ 0xF0) >> 2 0xFF ^ (0xF0 >> 2)
-3 3 195
-select 0xFF >> 2 ^ 0xF0, (0xFF >> 2) ^ 0xF0, 0xFF >> (2 ^ 0xF0);
-0xFF >> 2 ^ 0xF0 (0xFF >> 2) ^ 0xF0 0xFF >> (2 ^ 0xF0)
-0 207 0
-Testing that ^ has precedence over binary +
-select 0xFF ^ 0xF0 + 0x0F, (0xFF ^ 0xF0) + 0x0F, 0xFF ^ (0xF0 + 0x0F);
-0xFF ^ 0xF0 + 0x0F (0xFF ^ 0xF0) + 0x0F 0xFF ^ (0xF0 + 0x0F)
-30 30 0
-select 0x0F + 0xFF ^ 0xF0, (0x0F + 0xFF) ^ 0xF0, 0x0F + (0xFF ^ 0xF0);
-0x0F + 0xFF ^ 0xF0 (0x0F + 0xFF) ^ 0xF0 0x0F + (0xFF ^ 0xF0)
-30 510 30
-Testing that ^ has precedence over binary -
-select 0xFF ^ 0xF0 - 1, (0xFF ^ 0xF0) - 1, 0xFF ^ (0xF0 - 1);
-0xFF ^ 0xF0 - 1 (0xFF ^ 0xF0) - 1 0xFF ^ (0xF0 - 1)
-14 14 16
-select 0x55 - 0x0F ^ 0x55, (0x55 - 0x0F) ^ 0x55, 0x55 - (0x0F ^ 0x55);
-0x55 - 0x0F ^ 0x55 (0x55 - 0x0F) ^ 0x55 0x55 - (0x0F ^ 0x55)
--5 19 -5
-Testing that ^ has precedence over *
-select 0xFF ^ 0xF0 * 2, (0xFF ^ 0xF0) * 2, 0xFF ^ (0xF0 * 2);
-0xFF ^ 0xF0 * 2 (0xFF ^ 0xF0) * 2 0xFF ^ (0xF0 * 2)
-30 30 287
-select 2 * 0xFF ^ 0xF0, (2 * 0xFF) ^ 0xF0, 2 * (0xFF ^ 0xF0);
-2 * 0xFF ^ 0xF0 (2 * 0xFF) ^ 0xF0 2 * (0xFF ^ 0xF0)
-30 270 30
-Testing that ^ has precedence over /
-select 0xFF ^ 0xF0 / 2, (0xFF ^ 0xF0) / 2, 0xFF ^ (0xF0 / 2);
-0xFF ^ 0xF0 / 2 (0xFF ^ 0xF0) / 2 0xFF ^ (0xF0 / 2)
-7.5000 7.5000 135
-select 0xF2 / 2 ^ 0xF0, (0xF2 / 2) ^ 0xF0, 0xF2 / (2 ^ 0xF0);
-0xF2 / 2 ^ 0xF0 (0xF2 / 2) ^ 0xF0 0xF2 / (2 ^ 0xF0)
-1.0000 137 1.0000
-Testing that ^ has precedence over %
-select 0xFF ^ 0xF0 % 0x20, (0xFF ^ 0xF0) % 0x20, 0xFF ^ (0xF0 % 0x20);
-0xFF ^ 0xF0 % 0x20 (0xFF ^ 0xF0) % 0x20 0xFF ^ (0xF0 % 0x20)
-15 15 239
-select 0xFF % 0x20 ^ 0xF0, (0xFF % 0x20) ^ 0xF0, 0xFF % (0x20 ^ 0xF0);
-0xFF % 0x20 ^ 0xF0 (0xFF % 0x20) ^ 0xF0 0xFF % (0x20 ^ 0xF0)
-47 239 47
-Testing that ^ has precedence over DIV
-select 0xFF ^ 0xF0 DIV 2, (0xFF ^ 0xF0) DIV 2, 0xFF ^ (0xF0 DIV 2);
-0xFF ^ 0xF0 DIV 2 (0xFF ^ 0xF0) DIV 2 0xFF ^ (0xF0 DIV 2)
-7 7 135
-select 0xF2 DIV 2 ^ 0xF0, (0xF2 DIV 2) ^ 0xF0, 0xF2 DIV (2 ^ 0xF0);
-0xF2 DIV 2 ^ 0xF0 (0xF2 DIV 2) ^ 0xF0 0xF2 DIV (2 ^ 0xF0)
-1 137 1
-Testing that ^ has precedence over MOD
-select 0xFF ^ 0xF0 MOD 0x20, (0xFF ^ 0xF0) MOD 0x20, 0xFF ^ (0xF0 MOD 0x20);
-0xFF ^ 0xF0 MOD 0x20 (0xFF ^ 0xF0) MOD 0x20 0xFF ^ (0xF0 MOD 0x20)
-15 15 239
-select 0xFF MOD 0x20 ^ 0xF0, (0xFF MOD 0x20) ^ 0xF0, 0xFF MOD (0x20 ^ 0xF0);
-0xFF MOD 0x20 ^ 0xF0 (0xFF MOD 0x20) ^ 0xF0 0xFF MOD (0x20 ^ 0xF0)
-47 239 47
diff --git a/mysql-test/r/parser_stack.result b/mysql-test/r/parser_stack.result
deleted file mode 100644
index a0040fc6ae6..00000000000
--- a/mysql-test/r/parser_stack.result
+++ /dev/null
@@ -1,306 +0,0 @@
-use test;
-SELECT
-((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
-((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
-((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
-1
-))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
-))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
-))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
-;
-1
-1
-prepare stmt from
-"
-SELECT
-((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
-((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
-((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
-1
-))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
-))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
-))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
-"
-;
-execute stmt;
-1
-1
-drop view if exists view_overflow;
-CREATE VIEW view_overflow AS
-SELECT
-((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
-((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
-((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
-1
-))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
-))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
-))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
-;
-SELECT * from view_overflow;
-1
-1
-drop view view_overflow;
-drop procedure if exists proc_overflow;
-CREATE PROCEDURE proc_overflow()
-BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-select 1;
-select 2;
-select 3;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END $$
-call proc_overflow();
-1
-1
-2
-2
-3
-3
-drop procedure proc_overflow;
-drop function if exists func_overflow;
-create function func_overflow() returns int
-BEGIN
-DECLARE x int default 0;
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-SET x=x+1;
-SET x=x+2;
-SET x=x+3;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-return x;
-END $$
-select func_overflow();
-func_overflow()
-6
-drop function func_overflow;
-drop table if exists table_overflow;
-create table table_overflow(a int, b int);
-create trigger trigger_overflow before insert on table_overflow
-for each row
-BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN BEGIN
-SET NEW.b := NEW.a;
-SET NEW.b := NEW.b + 1;
-SET NEW.b := NEW.b + 2;
-SET NEW.b := NEW.b + 3;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END; END; END; END; END; END; END; END; END; END; END; END;
-END $$
-insert into table_overflow set a=10;
-insert into table_overflow set a=20;
-select * from table_overflow;
-a b
-10 16
-20 26
-drop table table_overflow;
-drop procedure if exists proc_35577;
-CREATE PROCEDURE proc_35577()
-BEGIN
-DECLARE z_done INT DEFAULT 0;
-DECLARE t_done VARCHAR(5000);
-outer_loop: LOOP
-IF t_done=1 THEN
-LEAVE outer_loop;
-END IF;
-inner_block:BEGIN
-DECLARE z_done INT DEFAULT 0;
-SET z_done = 0;
-inner_loop: LOOP
-IF z_done=1 THEN
-LEAVE inner_loop;
-END IF;
-IF (t_done = 'a') THEN
-IF (t_done <> 0) THEN
-IF ( t_done > 0) THEN
-IF (t_done = 'a') THEN
-SET t_done = 'a';
-ELSEIF (t_done = 'a') THEN
-SET t_done = 'a';
-ELSEIF(t_done = 'a') THEN
-SET t_done = 'a';
-ELSEIF(t_done = 'a') THEN
-SET t_done = 'a';
-ELSEIF(t_done = 'a') THEN
-SET t_done = 'a';
-ELSEIF(t_done = 'a') THEN
-SET t_done = 'a';
-ELSEIF(t_done = 'a') THEN
-SET t_done = 'a';
-ELSEIF(t_done = 'a') THEN
-SET t_done = 'a';
-END IF;
-END IF;
-END IF;
-END IF;
-END LOOP inner_loop;
-END inner_block;
-END LOOP outer_loop;
-END $$
-drop procedure proc_35577;
-drop procedure if exists p_37269;
-create procedure p_37269()
-begin
-declare done int default 0;
-declare varb int default 0;
-declare vara int default 0;
-repeat
-select now();
-until done end repeat;
-while varb do
-select now();
-begin
-select now();
-repeat
-select now();
-until done end repeat;
-if vara then
-select now();
-repeat
-select now();
-loop
-select now();
-end loop;
-repeat
-select now();
-label1: while varb do
-select now();
-end while label1;
-if vara then
-select now();
-repeat
-select now();
-until done end repeat;
-begin
-select now();
-while varb do
-select now();
-label1: while varb do
-select now();
-end while label1;
-if vara then
-select now();
-while varb do
-select now();
-loop
-select now();
-end loop;
-repeat
-select now();
-loop
-select now();
-while varb do
-select now();
-end while;
-repeat
-select now();
-label1: loop
-select now();
-if vara then
-select now();
-end if;
-end loop label1;
-until done end repeat;
-end loop;
-until done end repeat;
-end while;
-end if;
-end while;
-end;
-end if;
-until done end repeat;
-until done end repeat;
-end if;
-end;
-end while;
-end $$
-drop procedure p_37269;
-drop procedure if exists p_37228;
-create procedure p_37228 ()
-BEGIN
-DECLARE v INT DEFAULT 123;
-IF (v > 1) THEN SET v = 1;
-ELSEIF (v < 10) THEN SET v = 10;
-ELSEIF (v < 11) THEN SET v = 11;
-ELSEIF (v < 12) THEN SET v = 12;
-ELSEIF (v < 13) THEN SET v = 13;
-ELSEIF (v < 14) THEN SET v = 14;
-ELSEIF (v < 15) THEN SET v = 15;
-ELSEIF (v < 16) THEN SET v = 16;
-ELSEIF (v < 17) THEN SET v = 17;
-ELSEIF (v < 18) THEN SET v = 18;
-ELSEIF (v < 19) THEN SET v = 19;
-ELSEIF (v < 20) THEN SET v = 20;
-ELSEIF (v < 21) THEN SET v = 21;
-ELSEIF (v < 22) THEN SET v = 22;
-ELSEIF (v < 23) THEN SET v = 23;
-ELSEIF (v < 24) THEN SET v = 24;
-ELSEIF (v < 25) THEN SET v = 25;
-ELSEIF (v < 26) THEN SET v = 26;
-ELSEIF (v < 27) THEN SET v = 27;
-ELSEIF (v < 28) THEN SET v = 28;
-ELSEIF (v < 29) THEN SET v = 29;
-ELSEIF (v < 30) THEN SET v = 30;
-ELSEIF (v < 31) THEN SET v = 31;
-ELSEIF (v < 32) THEN SET v = 32;
-ELSEIF (v < 33) THEN SET v = 33;
-ELSEIF (v < 34) THEN SET v = 34;
-ELSEIF (v < 35) THEN SET v = 35;
-ELSEIF (v < 36) THEN SET v = 36;
-ELSEIF (v < 37) THEN SET v = 37;
-ELSEIF (v < 38) THEN SET v = 38;
-ELSEIF (v < 39) THEN SET v = 39;
-END IF;
-END $$
-drop procedure p_37228;
diff --git a/mysql-test/r/partition.result b/mysql-test/r/partition.result
deleted file mode 100644
index fd76da09d78..00000000000
--- a/mysql-test/r/partition.result
+++ /dev/null
@@ -1,2663 +0,0 @@
-drop table if exists t1, t2;
-#
-# Bug#11765667: bug#58655: ASSERTION FAILED,
-# SERVER CRASHES WITH MYSQLD GOT SIGNAL 6
-#
-CREATE TABLE t1 (
-id MEDIUMINT NOT NULL AUTO_INCREMENT,
-dt DATE, st VARCHAR(255), uid INT,
-id2nd LONGBLOB, filler VARCHAR(255), PRIMARY KEY(id, dt)
-);
-INSERT INTO t1 (dt, st, uid, id2nd, filler) VALUES
-('1991-03-14', 'Initial Insert', 200, 1234567, 'No Data'),
-('1991-02-26', 'Initial Insert', 201, 1234567, 'No Data'),
-('1992-03-16', 'Initial Insert', 234, 1234567, 'No Data'),
-('1992-07-02', 'Initial Insert', 287, 1234567, 'No Data'),
-('1991-05-26', 'Initial Insert', 256, 1234567, 'No Data'),
-('1991-04-25', 'Initial Insert', 222, 1234567, 'No Data'),
-('1993-03-12', 'Initial Insert', 267, 1234567, 'No Data'),
-('1993-03-14', 'Initial Insert', 291, 1234567, 'No Data'),
-('1991-12-20', 'Initial Insert', 298, 1234567, 'No Data'),
-('1994-10-31', 'Initial Insert', 220, 1234567, 'No Data');
-ALTER TABLE t1 PARTITION BY LIST (YEAR(dt)) (
-PARTITION d1 VALUES IN (1991, 1994),
-PARTITION d2 VALUES IN (1993),
-PARTITION d3 VALUES IN (1992, 1995, 1996)
-);
-INSERT INTO t1 (dt, st, uid, id2nd, filler) VALUES
-('1991-07-14', 'After Partitioning Insert', 299, 1234567, 'Insert row');
-UPDATE t1 SET filler='Updating the row' WHERE uid=298;
-DROP TABLE t1;
-#
-# Bug#59297: Can't find record in 'tablename' on update inner join
-#
-CREATE TABLE t1 (
-a char(2) NOT NULL,
-b char(2) NOT NULL,
-c int(10) unsigned NOT NULL,
-d varchar(255) DEFAULT NULL,
-e varchar(1000) DEFAULT NULL,
-PRIMARY KEY (a, b, c),
-KEY (a),
-KEY (a, b)
-)
-/*!50100 PARTITION BY KEY (a)
-PARTITIONS 20 */;
-INSERT INTO t1 (a, b, c, d, e) VALUES
-('07', '03', 343, '1', '07_03_343'),
-('01', '04', 343, '2', '01_04_343'),
-('01', '06', 343, '3', '01_06_343'),
-('01', '07', 343, '4', '01_07_343'),
-('01', '08', 343, '5', '01_08_343'),
-('01', '09', 343, '6', '01_09_343'),
-('03', '03', 343, '7', '03_03_343'),
-('03', '06', 343, '8', '03_06_343'),
-('03', '07', 343, '9', '03_07_343'),
-('04', '03', 343, '10', '04_03_343'),
-('04', '06', 343, '11', '04_06_343'),
-('05', '03', 343, '12', '05_03_343'),
-('11', '03', 343, '13', '11_03_343'),
-('11', '04', 343, '14', '11_04_343')
-;
-UPDATE t1 AS A,
-(SELECT '03' AS a, '06' AS b, 343 AS c, 'last' AS d) AS B
-SET A.e = B.d
-WHERE A.a = '03'
-AND A.b = '06'
-AND A.c = 343;
-DROP TABLE t1;
-#
-# Bug#59503: explain extended crash in get_mm_leaf
-#
-CREATE TABLE t1 (a VARCHAR(51) CHARACTER SET latin1)
-ENGINE=MyISAM
-PARTITION BY KEY (a) PARTITIONS 1;
-INSERT INTO t1 VALUES ('a'),('b'),('c');
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE a > 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select 1 AS `1` from `test`.`t1` where `test`.`t1`.`a` > 1
-DROP TABLE t1;
-#
-# Bug#57778: failed primary key add to partitioned innodb table
-# inconsistent and crashes
-#
-CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL)
-PARTITION BY KEY (a) PARTITIONS 2;
-INSERT INTO t1 VALUES (0,1), (0,2);
-ALTER TABLE t1 ADD PRIMARY KEY (a);
-ERROR 23000: Duplicate entry '0' for key 'PRIMARY'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-PARTITIONS 2
-SELECT * FROM t1;
-a b
-0 1
-0 2
-UPDATE t1 SET a = 1, b = 1 WHERE a = 0 AND b = 2;
-ALTER TABLE t1 ADD PRIMARY KEY (a);
-SELECT * FROM t1;
-a b
-1 1
-0 1
-ALTER TABLE t1 DROP PRIMARY KEY;
-SELECT * FROM t1;
-a b
-1 1
-0 1
-DROP TABLE t1;
-#
-# Bug#57113: ha_partition::extra(ha_extra_function):
-# Assertion `m_extra_cache' failed
-CREATE TABLE t1
-(id INT NOT NULL PRIMARY KEY,
-name VARCHAR(16) NOT NULL,
-year YEAR,
-INDEX name (name(8))
-)
-PARTITION BY HASH(id) PARTITIONS 2;
-INSERT INTO t1 VALUES ( 1, 'FooBar', '1924' );
-CREATE TABLE t2 (id INT);
-INSERT INTO t2 VALUES (1),(2);
-UPDATE t1, t2 SET t1.year = '1955' WHERE t1.name = 'FooBar';
-DROP TABLE t1, t2;
-#
-# Bug#55458: Partitioned MyISAM table gets crashed by multi-table update
-#
-CREATE TABLE t1 (
-`id` int NOT NULL,
-`user_num` int DEFAULT NULL,
-PRIMARY KEY (`id`)
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1,8601);
-INSERT INTO t1 VALUES (2,8601);
-INSERT INTO t1 VALUES (3,8601);
-INSERT INTO t1 VALUES (4,8601);
-CREATE TABLE t2 (
-`id` int(11) NOT NULL,
-`user_num` int DEFAULT NULL,
-`name` varchar(64) NOT NULL,
-PRIMARY KEY (`id`)
-) ENGINE=MyISAM CHARSET=latin1
-PARTITION BY HASH (id)
-PARTITIONS 2;
-INSERT INTO t2 VALUES (1,8601,'John');
-INSERT INTO t2 VALUES (2,8601,'JS');
-INSERT INTO t2 VALUES (3,8601,'John S');
-UPDATE t1, t2 SET t2.name = 'John Smith' WHERE t1.user_num = t2.user_num;
-DROP TABLE t1, t2;
-# Bug#39338: Fieldnames in
-# INFORMATIONSCHEMA.PARTITIONS.PARTITION_EXPRESSION become unescaped
-# NOTE: the partition expression is saved as a string, so changing from
-# normal quotes to ansi quotes does not change the expression, only
-# for partition by KEY.
-CREATE TABLE t1 (
-ID int(11) NOT NULL,
-`aaaa,aaaaa` tinyint(3) UNSIGNED NOT NULL DEFAULT '0',
-ddddddddd int(11) NOT NULL DEFAULT '0',
-new_field0 varchar(50),
-PRIMARY KEY(ID, `aaaa,aaaaa`, ddddddddd))
-PARTITION BY RANGE(ID)
-PARTITIONS 3
-SUBPARTITION BY LINEAR KEY(ID,`aaaa,aaaaa`)
-SUBPARTITIONS 2 (
-PARTITION p01 VALUES LESS THAN(100),
-PARTITION p11 VALUES LESS THAN(200),
-PARTITION p21 VALUES LESS THAN MAXVALUE);
-SELECT PARTITION_EXPRESSION, SUBPARTITION_EXPRESSION FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME='t1';
-PARTITION_EXPRESSION SUBPARTITION_EXPRESSION
-`ID` `ID`,`aaaa,aaaaa`
-`ID` `ID`,`aaaa,aaaaa`
-`ID` `ID`,`aaaa,aaaaa`
-`ID` `ID`,`aaaa,aaaaa`
-`ID` `ID`,`aaaa,aaaaa`
-`ID` `ID`,`aaaa,aaaaa`
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `ID` int(11) NOT NULL,
- `aaaa,aaaaa` tinyint(3) unsigned NOT NULL DEFAULT 0,
- `ddddddddd` int(11) NOT NULL DEFAULT 0,
- `new_field0` varchar(50) DEFAULT NULL,
- PRIMARY KEY (`ID`,`aaaa,aaaaa`,`ddddddddd`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`ID`)
-SUBPARTITION BY LINEAR KEY (`ID`,`aaaa,aaaaa`)
-SUBPARTITIONS 2
-(PARTITION `p01` VALUES LESS THAN (100) ENGINE = MyISAM,
- PARTITION `p11` VALUES LESS THAN (200) ENGINE = MyISAM,
- PARTITION `p21` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-drop table t1;
-CREATE TABLE t1 (a INT, b INT)
-PARTITION BY LIST (a)
-SUBPARTITION BY HASH (b)
-(PARTITION p1 VALUES IN (1));
-ALTER TABLE t1 ADD COLUMN c INT;
-DROP TABLE t1;
-CREATE TABLE t1 (
-a int NOT NULL,
-b int NOT NULL);
-CREATE TABLE t2 (
-a int NOT NULL,
-b int NOT NULL,
-INDEX(b)
-)
-PARTITION BY HASH(a) PARTITIONS 2;
-INSERT INTO t1 VALUES (399, 22);
-INSERT INTO t2 VALUES (1, 22), (1, 42);
-INSERT INTO t2 SELECT 1, 399 FROM t2, t1
-WHERE t1.b = t2.b;
-DROP TABLE t1, t2;
-CREATE TABLE t1 (
-a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
-b varchar(10),
-PRIMARY KEY (a)
-)
-PARTITION BY RANGE (UNIX_TIMESTAMP(a)) (
-PARTITION p1 VALUES LESS THAN (1199134800),
-PARTITION pmax VALUES LESS THAN MAXVALUE
-);
-INSERT INTO t1 VALUES ('2007-07-30 17:35:48', 'p1');
-INSERT INTO t1 VALUES ('2009-07-14 17:35:55', 'pmax');
-INSERT INTO t1 VALUES ('2009-09-21 17:31:42', 'pmax');
-SELECT * FROM t1;
-a b
-2007-07-30 17:35:48 p1
-2009-07-14 17:35:55 pmax
-2009-09-21 17:31:42 pmax
-SELECT * FROM t1 where a between '2007-01-01' and '2007-08-01';
-a b
-2007-07-30 17:35:48 p1
-EXPLAIN PARTITIONS SELECT * FROM t1 where a between '2007-01-01' and '2007-08-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 system PRIMARY NULL NULL NULL 1
-EXPLAIN PARTITIONS SELECT * FROM t1 where a = '2007-07-30 17:35:48';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 system PRIMARY NULL NULL NULL 1
-ALTER TABLE t1 REORGANIZE PARTITION pmax INTO (
-PARTITION p3 VALUES LESS THAN (1247688000),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-SELECT * FROM t1;
-a b
-2007-07-30 17:35:48 p1
-2009-07-14 17:35:55 pmax
-2009-09-21 17:31:42 pmax
-SELECT * FROM t1 where a between '2007-01-01' and '2007-08-01';
-a b
-2007-07-30 17:35:48 p1
-EXPLAIN PARTITIONS SELECT * FROM t1 where a between '2007-01-01' and '2007-08-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 system PRIMARY NULL NULL NULL 1
-EXPLAIN PARTITIONS SELECT * FROM t1 where a = '2007-07-30 17:35:48';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 system PRIMARY NULL NULL NULL 1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp NOT NULL DEFAULT current_timestamp(),
- `b` varchar(10) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (unix_timestamp(`a`))
-(PARTITION `p1` VALUES LESS THAN (1199134800) ENGINE = MyISAM,
- PARTITION `p3` VALUES LESS THAN (1247688000) ENGINE = MyISAM,
- PARTITION `pmax` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-DROP TABLE t1;
-create table t1 (a int NOT NULL, b varchar(5) NOT NULL)
-default charset=utf8
-partition by list (a)
-subpartition by key (b)
-(partition p0 values in (1),
-partition p1 values in (2));
-drop table t1;
-create table t1 (a int, b int, key(a))
-partition by list (a)
-( partition p0 values in (1),
-partition p1 values in (2));
-insert into t1 values (1,1),(2,1),(2,2),(2,3);
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-show indexes from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A 1 NULL NULL YES BTREE
-drop table t1;
-create table t1 (a int)
-partition by hash (a);
-create index i on t1 (a);
-insert into t1 values (1);
-insert into t1 select * from t1;
-create index i on t1 (a);
-ERROR 42000: Duplicate key name 'i'
-create index i2 on t1 (a);
-Warnings:
-Note 1831 Duplicate index `i2`. This is deprecated and will be disallowed in a future release
-drop table t1;
-CREATE TABLE t1 (a INT, FOREIGN KEY (a) REFERENCES t0 (a))
-ENGINE=MyISAM
-PARTITION BY HASH (a);
-ERROR HY000: Foreign key clause is not yet supported in conjunction with partitioning
-CREATE TABLE t1 (
-pk INT NOT NULL AUTO_INCREMENT,
-PRIMARY KEY (pk)
-)
-/*!50100 PARTITION BY HASH (pk)
-PARTITIONS 2 */;
-INSERT INTO t1 VALUES (NULL);
-INSERT INTO t1 VALUES (NULL);
-INSERT INTO t1 VALUES (NULL);
-SELECT * FROM t1 WHERE pk < 0 ORDER BY pk;
-pk
-DROP TABLE t1;
-SET sql_mode=no_engine_substitution;
-CREATE TABLE t1 (a INT)
-ENGINE=NonExistentEngine;
-ERROR 42000: Unknown storage engine 'NonExistentEngine'
-CREATE TABLE t1 (a INT)
-ENGINE=NonExistentEngine
-PARTITION BY HASH (a);
-ERROR 42000: Unknown storage engine 'NonExistentEngine'
-CREATE TABLE t1 (a INT)
-ENGINE=Memory;
-ALTER TABLE t1 ENGINE=NonExistentEngine;
-ERROR 42000: Unknown storage engine 'NonExistentEngine'
-ALTER TABLE t1
-PARTITION BY HASH (a)
-(PARTITION p0 ENGINE=Memory,
-PARTITION p1 ENGINE=NonExistentEngine);
-ERROR 42000: Unknown storage engine 'NonExistentEngine'
-ALTER TABLE t1 ENGINE=NonExistentEngine;
-ERROR 42000: Unknown storage engine 'NonExistentEngine'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SET sql_mode='';
-CREATE TABLE t1 (a INT)
-ENGINE=NonExistentEngine;
-Warnings:
-Warning 1286 Unknown storage engine 'NonExistentEngine'
-Warning 1266 Using storage engine MyISAM for table 't1'
-DROP TABLE t1;
-CREATE TABLE t1 (a INT)
-ENGINE=NonExistentEngine
-PARTITION BY HASH (a);
-Warnings:
-Warning 1286 Unknown storage engine 'NonExistentEngine'
-Warning 1266 Using storage engine MyISAM for table 't1'
-DROP TABLE t1;
-CREATE TABLE t1 (a INT)
-ENGINE=Memory;
-ALTER TABLE t1 ENGINE=NonExistentEngine;
-Warnings:
-Warning 1286 Unknown storage engine 'NonExistentEngine'
-ALTER TABLE t1
-PARTITION BY HASH (a)
-(PARTITION p0 ENGINE=Memory,
-PARTITION p1 ENGINE=NonExistentEngine);
-Warnings:
-Warning 1286 Unknown storage engine 'NonExistentEngine'
-ALTER TABLE t1 ENGINE=NonExistentEngine;
-Warnings:
-Warning 1286 Unknown storage engine 'NonExistentEngine'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
- PARTITION BY HASH (`a`)
-(PARTITION `p0` ENGINE = MEMORY,
- PARTITION `p1` ENGINE = MEMORY)
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a INT NOT NULL, KEY(a))
-PARTITION BY RANGE(a)
-(PARTITION p1 VALUES LESS THAN (200), PARTITION pmax VALUES LESS THAN MAXVALUE);
-INSERT INTO t1 VALUES (2), (40), (40), (70), (60), (90), (199);
-SELECT a FROM t1 WHERE a BETWEEN 60 AND 95 ORDER BY a ASC;
-a
-60
-70
-90
-SELECT a FROM t1 WHERE a BETWEEN 60 AND 95;
-a
-60
-70
-90
-INSERT INTO t1 VALUES (200), (250), (210);
-SELECT a FROM t1 WHERE a BETWEEN 60 AND 220 ORDER BY a ASC;
-a
-60
-70
-90
-199
-200
-210
-SELECT a FROM t1 WHERE a BETWEEN 200 AND 220 ORDER BY a ASC;
-a
-200
-210
-SELECT a FROM t1 WHERE a BETWEEN 60 AND 95 ORDER BY a DESC;
-a
-90
-70
-60
-SELECT a FROM t1 WHERE a BETWEEN 60 AND 220 ORDER BY a DESC;
-a
-210
-200
-199
-90
-70
-60
-SELECT a FROM t1 WHERE a BETWEEN 200 AND 220 ORDER BY a DESC;
-a
-210
-200
-SELECT a FROM t1 WHERE a BETWEEN 60 AND 220;
-a
-199
-200
-210
-60
-70
-90
-SELECT a FROM t1 WHERE a BETWEEN 200 AND 220;
-a
-200
-210
-SELECT a FROM t1 WHERE a BETWEEN 60 AND 95;
-a
-60
-70
-90
-SELECT a FROM t1 WHERE a BETWEEN 60 AND 220;
-a
-199
-200
-210
-60
-70
-90
-SELECT a FROM t1 WHERE a BETWEEN 200 AND 220;
-a
-200
-210
-DROP TABLE t1;
-CREATE TABLE t1 (
-a INT NOT NULL,
-b MEDIUMINT NOT NULL,
-c INT NOT NULL,
-KEY b (b)
-) ENGINE=MyISAM
-PARTITION BY LIST (a) (
-PARTITION p0 VALUES IN (1)
-);
-INSERT INTO t1 VALUES (1,1,0), (1,1,1), (1,1,2), (1,1,53), (1,1,4), (1,1,5),
-(1,1,6), (1,1,7), (1,1,8), (1,1,9), (1,1,10), (1,1,11), (1,1,12), (1,1,13),
-(1,1,14), (1,1,15), (1,1,16), (1,1,67), (1,1,18), (1,1,19), (1,1,20), (1,1,21),
-(1,1,22), (1,1,23), (1,1,24), (1,1,75), (1,1,26), (1,1,27), (1,1,128),
-(1,1,79), (1,1,30), (1,1,31), (1,1,32), (1,1,33), (1,1,34), (1,1,85), (1,1,36),
-(1,1,37), (1,1,38), (1,1,39), (1,1,40), (1,1,241), (1,1,42), (1,1,43),
-(1,1,44), (1,1,45), (1,1,46), (1,1,147), (1,1,48), (1,1,49), (1,2,0), (1,2,1),
-(1,2,2), (1,2,3), (1,2,4), (1,2,5), (1,2,6), (1,2,7), (1,2,8), (1,2,9),
-(1,2,10), (1,2,11), (1,2,12), (1,2,13), (1,2,14), (1,2,15), (1,2,16), (1,2,17),
-(1,2,18), (1,2,19), (1,2,20), (1,2,21), (1,2,22), (1,2,23), (1,2,24), (1,2,25),
-(1,2,26), (1,2,27), (1,2,28), (1,2,29), (1,2,30), (1,2,31), (1,2,32), (1,2,33),
-(1,2,34), (1,2,35), (1,2,36), (1,2,37), (1,2,38), (1,2,39), (1,2,40), (1,2,41),
-(1,2,42), (1,2,43), (1,2,44), (1,2,45), (1,2,46), (1,2,47), (1,2,48), (1,2,49),
-(1,6,0), (1,6,1), (1,6,2), (1,6,3), (1,6,4), (1,6,5), (1,6,6), (1,6,7),
-(1,6,8), (1,6,9), (1,6,10), (1,6,11), (1,6,12), (1,6,13), (1,6,14), (1,6,15),
-(1,6,16), (1,6,17), (1,6,18), (1,6,19), (1,6,20), (1,6,21), (1,6,22), (1,6,23),
-(1,6,24), (1,6,25), (1,6,26), (1,6,27), (1,6,28), (1,6,29), (1,6,30), (1,6,31),
-(1,6,32), (1,6,33), (1,6,34), (1,6,35), (1,6,36), (1,6,37), (1,6,38), (1,6,39),
-(1,6,40), (1,6,41), (1,6,42), (1,6,43), (1,6,44), (1,6,45), (1,6,46), (1,6,47),
-(1,6,48), (1,6,49), (1,7,0), (1,7,1), (1,7,2), (1,7,3), (1,7,4), (1,7,5),
-(1,7,6), (1,7,7), (1,7,8), (1,7,9), (1,7,10), (1,7,11), (1,7,12), (1,7,13),
-(1,7,14), (1,7,15), (1,7,16), (1,7,17), (1,7,18), (1,7,19), (1,7,20), (1,7,21),
-(1,7,22), (1,7,23), (1,7,24), (1,7,25), (1,7,26), (1,7,27), (1,7,28), (1,7,29),
-(1,7,30), (1,7,31), (1,7,32), (1,7,33), (1,7,34), (1,7,35), (1,7,38), (1,7,39),
-(1,7,90), (1,7,41), (1,7,43), (1,7,48), (1,7,49), (1,9,0), (1,9,1), (1,9,2),
-(1,9,3), (1,9,4), (1,9,5), (1,9,6), (1,9,7), (1,9,8), (1,9,9), (1,9,10),
-(1,9,11), (1,9,12), (1,9,13), (1,9,14), (1,9,15), (1,9,16), (1,9,17), (1,9,18),
-(1,9,19), (1,9,20), (1,9,21), (1,9,22), (1,9,23), (1,9,24), (1,9,25), (1,9,26),
-(1,9,29), (1,9,32), (1,9,35), (1,9,38), (1,10,0), (1,10,1), (1,10,2), (1,10,3),
-(1,10,4), (1,10,5), (1,10,6), (1,10,7), (1,10,8), (1,10,9), (1,10,10),
-(1,10,11), (1,10,13), (1,10,14), (1,10,15), (1,10,16), (1,10,17), (1,10,18),
-(1,10,22), (1,10,24), (1,10,25), (1,10,26), (1,10,28), (1,10,131), (1,10,33),
-(1,10,84), (1,10,35), (1,10,40), (1,10,42), (1,10,49), (1,11,0), (1,11,1),
-(1,11,2), (1,11,3), (1,11,4), (1,11,5), (1,11,6), (1,11,7), (1,11,8), (1,11,9),
-(1,11,10), (1,11,11), (1,11,12), (1,11,13), (1,11,14), (1,11,15), (1,11,16),
-(1,11,17), (1,11,18), (1,11,19), (1,11,20), (1,11,21), (1,11,22), (1,11,23),
-(1,11,24), (1,11,25), (1,11,26), (1,11,27), (1,11,28), (1,11,30), (1,11,31),
-(1,11,32), (1,11,33), (1,11,34), (1,11,35), (1,11,37), (1,11,39), (1,11,40),
-(1,11,42), (1,11,44), (1,11,45), (1,11,47), (1,11,48), (1,14,104), (1,14,58),
-(1,14,12), (1,14,13), (1,14,15), (1,14,16), (1,14,17), (1,14,34), (1,15,0),
-(1,15,1), (1,15,2), (1,15,3), (1,15,4), (1,15,5), (1,15,7), (1,15,9),
-(1,15,15), (1,15,27), (1,15,49), (1,16,0), (1,16,1), (1,16,3), (1,17,4),
-(1,19,1);
-SELECT COUNT(*) FROM t1 WHERE b NOT IN ( 1,2,6,7,9,10,11 );
-COUNT(*)
-24
-SELECT SUM(c) FROM t1 WHERE b NOT IN ( 1,2,6,7,9,10,11 );
-SUM(c)
-400
-SELECT SUM(c+0.0) FROM t1 WHERE b NOT IN ( 1,2,6,7,9,10,11 );
-SUM(c+0.0)
-400.0
-ALTER TABLE t1 DROP INDEX b;
-SELECT COUNT(*) FROM t1 WHERE b NOT IN ( 1,2,6,7,9,10,11 );
-COUNT(*)
-24
-SELECT SUM(c) FROM t1 WHERE b NOT IN ( 1,2,6,7,9,10,11 );
-SUM(c)
-400
-ALTER TABLE t1 ENGINE = Memory;
-SELECT COUNT(*) FROM t1 WHERE b NOT IN ( 1,2,6,7,9,10,11 );
-COUNT(*)
-24
-SELECT SUM(c) FROM t1 WHERE b NOT IN ( 1,2,6,7,9,10,11 );
-SUM(c)
-400
-ALTER TABLE t1 ADD INDEX b USING HASH (b);
-SELECT COUNT(*) FROM t1 WHERE b NOT IN ( 1,2,6,7,9,10,11 );
-COUNT(*)
-24
-SELECT SUM(c) FROM t1 WHERE b NOT IN ( 1,2,6,7,9,10,11 );
-SUM(c)
-400
-DROP TABLE t1;
-CREATE TABLE `t1` (
-`c1` int(11) DEFAULT NULL,
-KEY `c1` (`c1`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-CREATE TABLE `t2` (
-`c1` int(11) DEFAULT NULL,
-KEY `c1` (`c1`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (c1) (PARTITION a VALUES LESS THAN (100) ENGINE = MyISAM, PARTITION b VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */;
-INSERT INTO `t1` VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),(13),(14),(15),(16),(17),(18),(19),(20);
-INSERT INTO `t2` VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),(13),(14),(15),(16),(17),(18),(19),(20);
-EXPLAIN PARTITIONS SELECT c1 FROM t1 WHERE (c1 > 10 AND c1 < 13) OR (c1 > 17 AND c1 < 20);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 NULL range c1 c1 5 NULL 4 Using where; Using index
-FLUSH STATUS;
-SELECT c1 FROM t1 WHERE (c1 > 10 AND c1 < 13) OR (c1 > 17 AND c1 < 20);
-c1
-11
-12
-18
-19
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 4
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-EXPLAIN PARTITIONS SELECT c1 FROM t2 WHERE (c1 > 10 AND c1 < 13) OR (c1 > 17 AND c1 < 20);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 a range c1 c1 5 NULL 4 Using where; Using index
-FLUSH STATUS;
-SELECT c1 FROM t2 WHERE (c1 > 10 AND c1 < 13) OR (c1 > 17 AND c1 < 20);
-c1
-11
-12
-18
-19
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 4
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-DROP TABLE t1,t2;
-CREATE TABLE `t1` (
-`c1` int(11) DEFAULT NULL,
-KEY `c1` (`c1`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-CREATE TABLE `t2` (
-`c1` int(11) DEFAULT NULL,
-KEY `c1` (`c1`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-/*!50100 PARTITION BY RANGE (c1)
-(PARTITION a VALUES LESS THAN (100) ENGINE = MyISAM,
-PARTITION b VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */;
-INSERT INTO `t1` VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),(13),(14),(15),(16),(17),(18),(19),(20);
-INSERT INTO `t2` VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),(13),(14),(15),(16),(17),(18),(19),(20);
-EXPLAIN PARTITIONS SELECT c1 FROM t1 WHERE (c1 > 2 AND c1 < 5);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 NULL range c1 c1 5 NULL 2 Using where; Using index
-FLUSH STATUS;
-SELECT c1 FROM t1 WHERE (c1 > 2 AND c1 < 5);
-c1
-3
-4
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 2
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-EXPLAIN PARTITIONS SELECT c1 FROM t2 WHERE (c1 > 2 AND c1 < 5);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 a range c1 c1 5 NULL 2 Using where; Using index
-FLUSH STATUS;
-SELECT c1 FROM t2 WHERE (c1 > 2 AND c1 < 5);
-c1
-3
-4
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 2
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-EXPLAIN PARTITIONS SELECT c1 FROM t1 WHERE (c1 > 12 AND c1 < 15);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 NULL range c1 c1 5 NULL 2 Using where; Using index
-FLUSH STATUS;
-SELECT c1 FROM t1 WHERE (c1 > 12 AND c1 < 15);
-c1
-13
-14
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 2
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-EXPLAIN PARTITIONS SELECT c1 FROM t2 WHERE (c1 > 12 AND c1 < 15);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 a range c1 c1 5 NULL 2 Using where; Using index
-FLUSH STATUS;
-SELECT c1 FROM t2 WHERE (c1 > 12 AND c1 < 15);
-c1
-13
-14
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 2
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-DROP TABLE t1,t2;
-create table t1 (a int) partition by list ((a/3)*10 div 1)
-(partition p0 values in (0), partition p1 values in (1));
-ERROR HY000: This partition function is not allowed
-CREATE TABLE t1 (
-d DATE NOT NULL
-)
-PARTITION BY RANGE( YEAR(d) ) (
-PARTITION p0 VALUES LESS THAN (1960),
-PARTITION p1 VALUES LESS THAN (1970),
-PARTITION p2 VALUES LESS THAN (1980),
-PARTITION p3 VALUES LESS THAN (1990)
-);
-ALTER TABLE t1 ADD PARTITION (
-PARTITION `p5` VALUES LESS THAN (2010)
-COMMENT 'APSTART \' APEND'
-);
-SELECT * FROM t1 LIMIT 1;
-d
-DROP TABLE t1;
-create table t1 (id int auto_increment, s1 int, primary key (id));
-insert into t1 values (null,1);
-insert into t1 values (null,6);
-select * from t1;
-id s1
-1 1
-2 6
-alter table t1 partition by range (id) (
-partition p0 values less than (3),
-partition p1 values less than maxvalue
-);
-drop table t1;
-create table t1 (a int)
-partition by key(a)
-partitions 0.2+e1;
-ERROR 42000: Only integers allowed as number here near '0.2+e1' at line 3
-create table t1 (a int)
-partition by key(a)
-partitions -1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1' at line 3
-create table t1 (a int)
-partition by key(a)
-partitions 1.5;
-ERROR 42000: Only integers allowed as number here near '1.5' at line 3
-create table t1 (a int)
-partition by key(a)
-partitions 1e+300;
-ERROR 42000: Only integers allowed as number here near '1e+300' at line 3
-create table t1 (a int)
-partition by list (a)
-(partition p0 values in (1));
-create procedure pz()
-alter table t1 engine = myisam;
-call pz();
-call pz();
-drop procedure pz;
-drop table t1;
-create table t1 (a bigint)
-partition by range (a)
-(partition p0 values less than (0xFFFFFFFFFFFFFFFF),
-partition p1 values less than (10));
-ERROR HY000: VALUES value for partition 'p0' must have type INT
-create table t1 (a bigint)
-partition by list (a)
-(partition p0 values in (0xFFFFFFFFFFFFFFFF),
-partition p1 values in (10));
-ERROR HY000: VALUES value for partition 'p0' must have type INT
-create table t1 (a bigint unsigned)
-partition by range (a)
-(partition p0 values less than (100),
-partition p1 values less than MAXVALUE);
-insert into t1 values (1);
-drop table t1;
-create table t1 (a bigint unsigned)
-partition by hash (a);
-insert into t1 values (0xFFFFFFFFFFFFFFFD);
-insert into t1 values (0xFFFFFFFFFFFFFFFE);
-select * from t1 where (a + 1) < 10;
-a
-select * from t1 where (a + 1) > 10;
-a
-18446744073709551613
-18446744073709551614
-drop table t1;
-create table t1 (a int)
-partition by key(a)
-(partition p0 engine = MEMORY);
-drop table t1;
-create table t1 (a int)
-partition by range (a)
-subpartition by key (a)
-(partition p0 values less than (1));
-alter table t1 add partition (partition p1 values less than (2));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-SUBPARTITION BY KEY (`a`)
-(PARTITION `p0` VALUES LESS THAN (1) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN (2) ENGINE = MyISAM)
-alter table t1 reorganize partition p1 into (partition p1 values less than (3));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-SUBPARTITION BY KEY (`a`)
-(PARTITION `p0` VALUES LESS THAN (1) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN (3) ENGINE = MyISAM)
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by key (a);
-select count(*) from t1;
-count(*)
-0
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) NOT NULL,
- `c` int(11) NOT NULL,
- PRIMARY KEY (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by key (a, b);
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by key (a)
-partitions 3
-(partition x1, partition x2, partition x3);
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by key (a)
-partitions 3
-(partition x1 nodegroup 0,
-partition x2 nodegroup 1,
-partition x3 nodegroup 2);
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by key (a)
-partitions 3
-(partition x1 engine myisam,
-partition x2 engine myisam,
-partition x3 engine myisam);
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by key (a)
-partitions 3
-(partition x1 tablespace ts1,
-partition x2 tablespace ts2,
-partition x3 tablespace ts3);
-CREATE TABLE t2 LIKE t1;
-drop table t2;
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (a)
-partitions 3
-(partition x1 values in (1,2,9,4) tablespace ts1,
-partition x2 values in (3, 11, 5, 7) tablespace ts2,
-partition x3 values in (16, 8, 5+19, 70-43) tablespace ts3);
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (b*a)
-partitions 3
-(partition x1 values in (1,2,9,4) tablespace ts1,
-partition x2 values in (3, 11, 5, 7) tablespace ts2,
-partition x3 values in (16, 8, 5+19, 70-43) tablespace ts3);
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (b*a)
-(partition x1 values in (1) tablespace ts1,
-partition x2 values in (3, 11, 5, 7) tablespace ts2,
-partition x3 values in (16, 8, 5+19, 70-43) tablespace ts3);
-drop table t1;
-CREATE TABLE t1 (
-a int not null)
-partition by key(a);
-LOCK TABLES t1 WRITE;
-insert into t1 values (1);
-insert into t1 values (2);
-insert into t1 values (3);
-insert into t1 values (4);
-UNLOCK TABLES;
-drop table t1;
-CREATE TABLE t1 (a int, name VARCHAR(50), purchased DATE)
-PARTITION BY RANGE (a)
-(PARTITION p0 VALUES LESS THAN (3),
-PARTITION p1 VALUES LESS THAN (7),
-PARTITION p2 VALUES LESS THAN (9),
-PARTITION p3 VALUES LESS THAN (11));
-INSERT INTO t1 VALUES
-(1, 'desk organiser', '2003-10-15'),
-(2, 'CD player', '1993-11-05'),
-(3, 'TV set', '1996-03-10'),
-(4, 'bookcase', '1982-01-10'),
-(5, 'exercise bike', '2004-05-09'),
-(6, 'sofa', '1987-06-05'),
-(7, 'popcorn maker', '2001-11-22'),
-(8, 'acquarium', '1992-08-04'),
-(9, 'study desk', '1984-09-16'),
-(10, 'lava lamp', '1998-12-25');
-SELECT * from t1 ORDER BY a;
-a name purchased
-1 desk organiser 2003-10-15
-2 CD player 1993-11-05
-3 TV set 1996-03-10
-4 bookcase 1982-01-10
-5 exercise bike 2004-05-09
-6 sofa 1987-06-05
-7 popcorn maker 2001-11-22
-8 acquarium 1992-08-04
-9 study desk 1984-09-16
-10 lava lamp 1998-12-25
-ALTER TABLE t1 DROP PARTITION p0;
-SELECT * from t1 ORDER BY a;
-a name purchased
-3 TV set 1996-03-10
-4 bookcase 1982-01-10
-5 exercise bike 2004-05-09
-6 sofa 1987-06-05
-7 popcorn maker 2001-11-22
-8 acquarium 1992-08-04
-9 study desk 1984-09-16
-10 lava lamp 1998-12-25
-drop table t1;
-CREATE TABLE t1 (a int)
-PARTITION BY LIST (a)
-(PARTITION p0 VALUES IN (1,2,3), PARTITION p1 VALUES IN (4,5,6));
-insert into t1 values (1),(2),(3),(4),(5),(6);
-select * from t1;
-a
-1
-2
-3
-4
-5
-6
-truncate t1;
-select * from t1;
-a
-truncate t1;
-select * from t1;
-a
-drop table t1;
-CREATE TABLE t1 (a int, b int, primary key(a,b))
-PARTITION BY KEY(b,a) PARTITIONS 4;
-insert into t1 values (0,0),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6);
-select * from t1 where a = 4;
-a b
-4 4
-drop table t1;
-CREATE TABLE t1 (c1 INT, c2 INT, PRIMARY KEY USING BTREE (c1,c2)) ENGINE=MEMORY
-PARTITION BY KEY(c2,c1) PARTITIONS 4;
-INSERT INTO t1 VALUES (0,0),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6);
-SELECT * FROM t1 WHERE c1 = 4;
-c1 c2
-4 4
-DROP TABLE t1;
-CREATE TABLE t1 (a int)
-PARTITION BY LIST (a)
-PARTITIONS 1
-(PARTITION x1 VALUES IN (1) ENGINE=MEMORY);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `x1` VALUES IN (1) ENGINE = MEMORY)
-drop table t1;
-CREATE TABLE t1 (a int, unique(a))
-PARTITION BY LIST (a)
-(PARTITION x1 VALUES IN (10), PARTITION x2 VALUES IN (20));
-REPLACE t1 SET a = 4;
-ERROR HY000: Table has no partition for value 4
-drop table t1;
-CREATE TABLE t1 (a int)
-PARTITION BY LIST (a)
-(PARTITION x1 VALUES IN (2), PARTITION x2 VALUES IN (3));
-insert into t1 values (2), (3);
-insert into t1 values (4);
-ERROR HY000: Table has no partition for value 4
-insert into t1 values (1);
-ERROR HY000: Table has no partition for value 1
-drop table t1;
-CREATE TABLE t1 (a int)
-PARTITION BY HASH(a)
-PARTITIONS 5;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY HASH (`a`)
-PARTITIONS 5
-drop table t1;
-CREATE TABLE t1 (a int)
-PARTITION BY RANGE (a)
-(PARTITION x1 VALUES LESS THAN (2));
-insert into t1 values (1);
-update t1 set a = 5;
-ERROR HY000: Table has no partition for value 5
-drop table t1;
-CREATE TABLE t1 (a int)
-PARTITION BY LIST (a)
-(PARTITION x1 VALUES IN (10), PARTITION x2 VALUES IN (20));
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-drop table t1;
-create table t1
-(a int)
-partition by range (a)
-( partition p0 values less than(10),
-partition p1 values less than (20),
-partition p2 values less than (25));
-alter table t1 reorganize partition p2 into (partition p2 values less than (30));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (10) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN (20) ENGINE = MyISAM,
- PARTITION `p2` VALUES LESS THAN (30) ENGINE = MyISAM)
-drop table t1;
-CREATE TABLE t1 (a int, b int)
-PARTITION BY RANGE (a)
-(PARTITION x0 VALUES LESS THAN (2),
-PARTITION x1 VALUES LESS THAN (4),
-PARTITION x2 VALUES LESS THAN (6),
-PARTITION x3 VALUES LESS THAN (8),
-PARTITION x4 VALUES LESS THAN (10),
-PARTITION x5 VALUES LESS THAN (12),
-PARTITION x6 VALUES LESS THAN (14),
-PARTITION x7 VALUES LESS THAN (16),
-PARTITION x8 VALUES LESS THAN (18),
-PARTITION x9 VALUES LESS THAN (20));
-ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2 INTO
-(PARTITION x1 VALUES LESS THAN (6));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `x1` VALUES LESS THAN (6) ENGINE = MyISAM,
- PARTITION `x3` VALUES LESS THAN (8) ENGINE = MyISAM,
- PARTITION `x4` VALUES LESS THAN (10) ENGINE = MyISAM,
- PARTITION `x5` VALUES LESS THAN (12) ENGINE = MyISAM,
- PARTITION `x6` VALUES LESS THAN (14) ENGINE = MyISAM,
- PARTITION `x7` VALUES LESS THAN (16) ENGINE = MyISAM,
- PARTITION `x8` VALUES LESS THAN (18) ENGINE = MyISAM,
- PARTITION `x9` VALUES LESS THAN (20) ENGINE = MyISAM)
-drop table t1;
-create table t1 (a int not null, b int not null) partition by LIST (a+b) (
-partition p0 values in (12),
-partition p1 values in (14)
-);
-insert into t1 values (10,1);
-ERROR HY000: Table has no partition for value 11
-drop table t1;
-create table t1 (f1 integer,f2 integer, f3 varchar(10), primary key(f1,f2))
-partition by range(f1) subpartition by hash(f2) subpartitions 2
-(partition p1 values less than (0),
-partition p2 values less than (2),
-partition p3 values less than (2147483647));
-insert into t1 values(10,10,'10');
-insert into t1 values(2,2,'2');
-select * from t1 where f1 = 2;
-f1 f2 f3
-2 2 2
-drop table t1;
-create table t1 (f1 integer,f2 integer, unique index(f1))
-partition by range(f1 div 2)
-subpartition by hash(f1) subpartitions 2
-(partition partb values less than (2),
-partition parte values less than (4),
-partition partf values less than (10000));
-insert into t1 values(10,1);
-select * from t1 where f1 = 10;
-f1 f2
-10 1
-drop table t1;
-set session default_storage_engine= 'memory';
-create table t1 (f_int1 int(11) default null) engine = memory
-partition by range (f_int1) subpartition by hash (f_int1)
-(partition part1 values less than (1000)
-(subpartition subpart11 engine = memory));
-drop table t1;
-set session default_storage_engine='myisam';
-create table t1 (f_int1 integer, f_int2 integer, primary key (f_int1))
-partition by hash(f_int1) partitions 2;
-insert into t1 values (1,1),(2,2);
-replace into t1 values (1,1),(2,2);
-drop table t1;
-create table t1 (s1 int, unique (s1)) partition by list (s1) (partition x1 VALUES in (10), partition x2 values in (20));
-alter table t1 add partition (partition x3 values in (30));
-drop table t1;
-create table t1 (a int)
-partition by key(a)
-partitions 2
-(partition p0 engine=myisam, partition p1 engine=myisam);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-(PARTITION `p0` ENGINE = MyISAM,
- PARTITION `p1` ENGINE = MyISAM)
-alter table t1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-(PARTITION `p0` ENGINE = MyISAM,
- PARTITION `p1` ENGINE = MyISAM)
-alter table t1 engine=myisam;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-(PARTITION `p0` ENGINE = MyISAM,
- PARTITION `p1` ENGINE = MyISAM)
-alter table t1 engine=heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-(PARTITION `p0` ENGINE = MEMORY,
- PARTITION `p1` ENGINE = MEMORY)
-alter table t1 remove partitioning;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int)
-engine=myisam
-partition by key(a)
-partitions 2
-(partition p0 engine=myisam, partition p1 engine=myisam);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-(PARTITION `p0` ENGINE = MyISAM,
- PARTITION `p1` ENGINE = MyISAM)
-alter table t1 add column b int remove partitioning;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1
-engine=myisam
-partition by key(a)
-(partition p0 engine=myisam, partition p1);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-(PARTITION `p0` ENGINE = MyISAM,
- PARTITION `p1` ENGINE = MyISAM)
-alter table t1
-engine=heap
-partition by key(a)
-(partition p0, partition p1 engine=heap);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-(PARTITION `p0` ENGINE = MEMORY,
- PARTITION `p1` ENGINE = MEMORY)
-alter table t1 engine=myisam, add column c int remove partitioning;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1
-engine=heap
-partition by key (a)
-(partition p0, partition p1);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-(PARTITION `p0` ENGINE = MEMORY,
- PARTITION `p1` ENGINE = MEMORY)
-alter table t1
-partition by key (a)
-(partition p0, partition p1);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-(PARTITION `p0` ENGINE = MEMORY,
- PARTITION `p1` ENGINE = MEMORY)
-alter table t1
-engine=heap
-partition by key (a)
-(partition p0, partition p1);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-(PARTITION `p0` ENGINE = MEMORY,
- PARTITION `p1` ENGINE = MEMORY)
-alter table t1
-partition by key(a)
-(partition p0, partition p1 engine=heap);
-alter table t1
-partition by key(a)
-(partition p0 engine=heap, partition p1);
-alter table t1
-engine=heap
-partition by key (a)
-(partition p0 engine=heap, partition p1 engine=myisam);
-ERROR HY000: The mix of handlers in the partitions is not allowed in this version of MariaDB
-alter table t1
-partition by key (a)
-(partition p0 engine=heap, partition p1 engine=myisam);
-ERROR HY000: The mix of handlers in the partitions is not allowed in this version of MariaDB
-drop table t1;
-CREATE TABLE t1 (
-f_int1 INTEGER, f_int2 INTEGER,
-f_char1 CHAR(10), f_char2 CHAR(10), f_charbig VARCHAR(1000)
-)
-PARTITION BY RANGE(f_int1 DIV 2)
-SUBPARTITION BY HASH(f_int1)
-SUBPARTITIONS 2
-(PARTITION parta VALUES LESS THAN (0),
-PARTITION partb VALUES LESS THAN (5),
-PARTITION parte VALUES LESS THAN (10),
-PARTITION partf VALUES LESS THAN (2147483647));
-INSERT INTO t1 SET f_int1 = NULL , f_int2 = -20, f_char1 = CAST(-20 AS CHAR),
-f_char2 = CAST(-20 AS CHAR), f_charbig = '#NULL#';
-SELECT * FROM t1 WHERE f_int1 IS NULL;
-f_int1 f_int2 f_char1 f_char2 f_charbig
-NULL -20 -20 -20 #NULL#
-SELECT * FROM t1;
-f_int1 f_int2 f_char1 f_char2 f_charbig
-NULL -20 -20 -20 #NULL#
-drop table t1;
-CREATE TABLE t1 (
-f_int1 INTEGER, f_int2 INTEGER,
-f_char1 CHAR(10), f_char2 CHAR(10), f_charbig VARCHAR(1000) )
-PARTITION BY LIST(MOD(f_int1,2))
-SUBPARTITION BY KEY(f_int1)
-(PARTITION part1 VALUES IN (-1) (SUBPARTITION sp1, SUBPARTITION sp2),
-PARTITION part2 VALUES IN (0) (SUBPARTITION sp3, SUBPARTITION sp5),
-PARTITION part3 VALUES IN (1) (SUBPARTITION sp4, SUBPARTITION sp6));
-INSERT INTO t1 SET f_int1 = 2, f_int2 = 2, f_char1 = '2', f_char2 = '2', f_charbig = '===2===';
-INSERT INTO t1 SET f_int1 = 2, f_int2 = 2, f_char1 = '2', f_char2 = '2', f_charbig = '===2===';
-SELECT * FROM t1 WHERE f_int1 IS NULL;
-f_int1 f_int2 f_char1 f_char2 f_charbig
-drop table t1;
-create procedure p ()
-begin
-create table t1 (s1 mediumint,s2 mediumint)
-partition by list (s2)
-(partition p1 values in (0),
-partition p2 values in (1));
-end//
-call p()//
-drop procedure p//
-drop table t1;
-create procedure p ()
-begin
-create table t1 (a int not null,b int not null,c int not null,primary key (a,b))
-partition by range (a)
-subpartition by hash (a+b)
-(partition x1 values less than (1)
-(subpartition x11,
-subpartition x12),
-partition x2 values less than (5)
-(subpartition x21,
-subpartition x22));
-end//
-call p()//
-drop procedure p//
-drop table t1//
-create table t1 (a int,b int,c int,key(a,b))
-partition by range (a)
-partitions 3
-(partition x1 values less than (0) tablespace ts1,
-partition x2 values less than (10) tablespace ts2,
-partition x3 values less than maxvalue tablespace ts3);
-insert into t1 values (NULL, 1, 1);
-insert into t1 values (0, 1, 1);
-insert into t1 values (12, 1, 1);
-select partition_name, partition_description, table_rows
-from information_schema.partitions where table_schema ='test';
-partition_name partition_description table_rows
-x1 0 1
-x2 10 1
-x3 MAXVALUE 1
-drop table t1;
-create table t1 (a int,b int, c int)
-partition by list(a)
-partitions 2
-(partition x123 values in (11,12),
-partition x234 values in (1 ,NULL, NULL));
-ERROR HY000: Multiple definition of same constant in list partitioning
-create table t1 (a int,b int, c int)
-partition by list(a)
-partitions 2
-(partition x123 values in (11, NULL),
-partition x234 values in (1 ,NULL));
-ERROR HY000: Multiple definition of same constant in list partitioning
-create table t1 (a int,b int, c int)
-partition by list(a)
-partitions 2
-(partition x123 values in (11, 12),
-partition x234 values in (5, 1));
-insert into t1 values (NULL,1,1);
-ERROR HY000: Table has no partition for value NULL
-drop table t1;
-create table t1 (a int,b int, c int)
-partition by list(a)
-partitions 2
-(partition x123 values in (11, 12),
-partition x234 values in (NULL, 1));
-insert into t1 values (11,1,6);
-insert into t1 values (NULL,1,1);
-select partition_name, partition_description, table_rows
-from information_schema.partitions where table_schema ='test';
-partition_name partition_description table_rows
-x123 11,12 1
-x234 NULL,1 1
-drop table t1;
-create table t1 (a int)
-partition by list (a)
-(partition p0 values in (1));
-alter table t1 rebuild partition;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-drop table t1;
-create table t1 (a int)
-partition by list (a)
-(partition p0 values in (5));
-insert into t1 values (0);
-ERROR HY000: Table has no partition for value 0
-drop table t1;
-create table t1 (a int)
-partition by range (a) subpartition by hash (a)
-(partition p0 values less than (100));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-SUBPARTITION BY HASH (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = MyISAM)
-alter table t1 add partition (partition p1 values less than (200)
-(subpartition subpart21));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-SUBPARTITION BY HASH (`a`)
-(PARTITION `p0` VALUES LESS THAN (100)
- (SUBPARTITION `p0sp0` ENGINE = MyISAM),
- PARTITION `p1` VALUES LESS THAN (200)
- (SUBPARTITION `subpart21` ENGINE = MyISAM))
-drop table t1;
-create table t1 (a int)
-partition by key (a);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-alter table t1 add partition (partition p1);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-(PARTITION `p0` ENGINE = MyISAM,
- PARTITION `p1` ENGINE = MyISAM)
-drop table t1;
-create table t1 (a int, b int)
-partition by range (a)
-subpartition by hash(a)
-(partition p0 values less than (0) (subpartition sp0),
-partition p1 values less than (1));
-ERROR 42000: Wrong number of subpartitions defined, mismatch with previous setting near ')' at line 5
-create table t1 (a int, b int)
-partition by range (a)
-subpartition by hash(a)
-(partition p0 values less than (0),
-partition p1 values less than (1) (subpartition sp0));
-ERROR 42000: Wrong number of subpartitions defined, mismatch with previous setting near 'subpartition sp0))' at line 5
-create table t1 (a int, b int)
-partition by list (a)
-subpartition by hash(a)
-(partition p0 values in (0),
-partition p1 values in (1) (subpartition sp0));
-ERROR 42000: Wrong number of subpartitions defined, mismatch with previous setting near 'subpartition sp0))' at line 5
-create table t1 (a int)
-partition by hash (a)
-(partition p0 (subpartition sp0));
-ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
-create table t1 (a int)
-partition by range (a)
-(partition p0 values less than (1));
-alter table t1 add partition (partition p1 values in (2));
-ERROR HY000: Only LIST PARTITIONING can use VALUES IN in partition definition
-alter table t1 add partition (partition p1);
-ERROR HY000: Syntax error: RANGE PARTITIONING requires definition of VALUES LESS THAN for each partition
-drop table t1;
-create table t1 (a int)
-partition by list (a)
-(partition p0 values in (1));
-alter table t1 add partition (partition p1 values less than (2));
-ERROR HY000: Only RANGE PARTITIONING can use VALUES LESS THAN in partition definition
-alter table t1 add partition (partition p1);
-ERROR HY000: Syntax error: LIST PARTITIONING requires definition of VALUES IN for each partition
-drop table t1;
-create table t1 (a int)
-partition by hash (a)
-(partition p0);
-alter table t1 add partition (partition p1 values less than (2));
-ERROR HY000: Only RANGE PARTITIONING can use VALUES LESS THAN in partition definition
-alter table t1 add partition (partition p1 values in (2));
-ERROR HY000: Only LIST PARTITIONING can use VALUES IN in partition definition
-drop table t1;
-create table t1 (a int)
-partition by list (a)
-(partition p0 values in (1));
-alter table t1 rebuild partition;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-drop table t1;
-create table t2 (s1 int not null auto_increment, primary key (s1)) partition by list (s1) (partition p1 values in (1),partition p2 values in (2),partition p3 values in (3),partition p4 values in (4));
-insert into t2 values (null),(null),(null);
-select * from t2;
-s1
-1
-2
-3
-select * from t2 where s1 < 2;
-s1
-1
-update t2 set s1 = s1 + 1 order by s1 desc;
-select * from t2 where s1 < 3;
-s1
-2
-select * from t2 where s1 = 2;
-s1
-2
-drop table t2;
-create temporary table t1 (a int) partition by hash(a);
-ERROR HY000: Cannot create temporary table with partitions
-create table t1 (a int, b int) partition by list (a)
-(partition p1 values in (1), partition p2 values in (2));
-alter table t1 add primary key (b);
-ERROR HY000: A PRIMARY KEY must include all columns in the table's partitioning function
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p1` VALUES IN (1) ENGINE = MyISAM,
- PARTITION `p2` VALUES IN (2) ENGINE = MyISAM)
-drop table t1;
-create table t1 (a int unsigned not null auto_increment primary key)
-partition by key(a);
-alter table t1 rename t2, add c char(10), comment "no comment";
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `c` char(10) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='no comment'
- PARTITION BY KEY (`a`)
-drop table t2;
-create table t1 (f1 int) partition by hash (f1) as select 1;
-drop table t1;
-prepare stmt1 from 'create table t1 (s1 int) partition by hash (s1)';
-execute stmt1;
-execute stmt1;
-ERROR 42S01: Table 't1' already exists
-drop table t1;
-CREATE PROCEDURE test.p1(IN i INT)
-BEGIN
-DECLARE CONTINUE HANDLER FOR sqlexception BEGIN END;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (num INT,PRIMARY KEY(num));
-START TRANSACTION;
-INSERT INTO t1 VALUES(i);
-savepoint t1_save;
-INSERT INTO t1 VALUES (14);
-ROLLBACK to savepoint t1_save;
-COMMIT;
-END|
-CALL test.p1(12);
-Warnings:
-Warning 1196 Some non-transactional changed tables couldn't be rolled back
-CALL test.p1(13);
-Warnings:
-Warning 1196 Some non-transactional changed tables couldn't be rolled back
-drop table t1;
-drop procedure test.p1;
-CREATE TABLE t1 (a int not null)
-partition by key(a)
-(partition p0 COMMENT='first partition');
-drop table t1;
-CREATE TABLE t1 (`a b` int not null)
-partition by key(`a b`);
-drop table t1;
-CREATE TABLE t1 (`a b` int not null)
-partition by hash(`a b`);
-drop table t1;
-create table t1 (f1 integer) partition by range(f1)
-(partition p1 values less than (0), partition p2 values less than (10));
-insert into t1 set f1 = null;
-select * from t1 where f1 is null;
-f1
-NULL
-explain partitions select * from t1 where f1 is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 system NULL NULL NULL NULL 1
-drop table t1;
-create table t1 (f1 integer) partition by list(f1)
-(partition p1 values in (1), partition p2 values in (null));
-insert into t1 set f1 = null;
-insert into t1 set f1 = 1;
-select * from t1 where f1 is null or f1 = 1;
-f1
-1
-NULL
-drop table t1;
-create table t1 (f1 smallint)
-partition by list (f1) (partition p0 values in (null));
-insert into t1 values (null);
-select * from t1 where f1 is null;
-f1
-NULL
-select * from t1 where f1 < 1;
-f1
-select * from t1 where f1 <= NULL;
-f1
-select * from t1 where f1 < NULL;
-f1
-select * from t1 where f1 >= NULL;
-f1
-select * from t1 where f1 > NULL;
-f1
-select * from t1 where f1 > 1;
-f1
-drop table t1;
-create table t1 (f1 smallint)
-partition by range (f1) (partition p0 values less than (0));
-insert into t1 values (null);
-select * from t1 where f1 is null;
-f1
-NULL
-drop table t1;
-create table t1 (f1 integer) partition by list(f1)
-(
-partition p1 values in (1),
-partition p2 values in (NULL),
-partition p3 values in (2),
-partition p4 values in (3),
-partition p5 values in (4)
-);
-insert into t1 values (1),(2),(3),(4),(null);
-select * from t1 where f1 < 3;
-f1
-1
-2
-explain partitions select * from t1 where f1 < 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p3 ALL NULL NULL NULL NULL 2 Using where
-select * from t1 where f1 is null;
-f1
-NULL
-explain partitions select * from t1 where f1 is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system NULL NULL NULL NULL 1
-drop table t1;
-create table t1 (f1 int) partition by list(f1 div 2)
-(
-partition p1 values in (1),
-partition p2 values in (NULL),
-partition p3 values in (2),
-partition p4 values in (3),
-partition p5 values in (4)
-);
-insert into t1 values (2),(4),(6),(8),(null);
-select * from t1 where f1 < 3;
-f1
-2
-explain partitions select * from t1 where f1 < 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2,p3,p4,p5 ALL NULL NULL NULL NULL 5 Using where
-select * from t1 where f1 is null;
-f1
-NULL
-explain partitions select * from t1 where f1 is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system NULL NULL NULL NULL 1
-drop table t1;
-create table t1 (a int) partition by LIST(a) (
-partition pn values in (NULL),
-partition p0 values in (0),
-partition p1 values in (1),
-partition p2 values in (2)
-);
-insert into t1 values (NULL),(0),(1),(2);
-select * from t1 where a is null or a < 2;
-a
-NULL
-0
-1
-explain partitions select * from t1 where a is null or a < 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pn,p0,p1 ALL NULL NULL NULL NULL 3 Using where
-select * from t1 where a is null or a < 0 or a > 1;
-a
-NULL
-2
-explain partitions select * from t1 where a is null or a < 0 or a > 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pn,p2 ALL NULL NULL NULL NULL 2 Using where
-drop table t1;
-CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY, name VARCHAR(20))
-ENGINE=MyISAM DEFAULT CHARSET=latin1
-PARTITION BY RANGE(id)
-(PARTITION p0 VALUES LESS THAN (10) ENGINE = MyISAM,
-PARTITION p1 VALUES LESS THAN (20) ENGINE = MyISAM,
-PARTITION p2 VALUES LESS THAN (30) ENGINE = MyISAM);
-SHOW TABLE STATUS;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Dynamic 0 0 0 0 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL partitioned 0 N
-DROP TABLE t1;
-create table t1 (a bigint unsigned)
-partition by list (a)
-(partition p0 values in (0-1));
-ERROR HY000: Partition constant is out of partition function domain
-create table t1 (a bigint unsigned)
-partition by range (a)
-(partition p0 values less than (10));
-insert into t1 values (0xFFFFFFFFFFFFFFFF);
-ERROR HY000: Table has no partition for value 18446744073709551615
-drop table t1;
-create table t1 (a int)
-partition by list (a)
-(partition `s1 s2` values in (0));
-drop table t1;
-create table t1 (a int)
-partition by list (a)
-(partition `7` values in (0));
-drop table t1;
-create table t1 (a int)
-partition by list (a)
-(partition `s1 s2 ` values in (0));
-ERROR HY000: Incorrect partition name
-create table t1 (a int)
-partition by list (a)
-subpartition by hash (a)
-(partition p1 values in (0) (subpartition `p1 p2 `));
-ERROR HY000: Incorrect partition name
-CREATE TABLE t1 (a int)
-PARTITION BY LIST (a)
-(PARTITION p0 VALUES IN (NULL));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p0` VALUES IN (NULL) ENGINE = MyISAM)
-DROP TABLE t1;
-CREATE TABLE t1 (a int)
-PARTITION BY RANGE(a)
-(PARTITION p0 VALUES LESS THAN (NULL));
-ERROR HY000: Not allowed to use NULL value in VALUES LESS THAN
-create table t1 (s1 int auto_increment primary key)
-partition by list (s1)
-(partition p1 values in (1),
-partition p2 values in (2),
-partition p3 values in (3));
-insert into t1 values (null);
-insert into t1 values (null);
-insert into t1 values (null);
-select auto_increment from information_schema.tables where table_name='t1';
-auto_increment
-4
-select * from t1;
-s1
-1
-2
-3
-drop table t1;
-create table t1 (a int) engine=memory
-partition by key(a);
-insert into t1 values (1);
-create index inx1 on t1(a);
-drop table t1;
-create table t1 (a int)
-PARTITION BY KEY (a)
-(PARTITION p0);
-set session sql_mode='no_table_options';
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-)
- PARTITION BY KEY (`a`)
-(PARTITION `p0`)
-set session sql_mode='';
-drop table t1;
-create table t1 (a int)
-partition by key (a)
-(partition p0 engine = MERGE);
-ERROR HY000: Engine cannot be used in partitioned tables
-create table t1 (a varchar(1))
-partition by key (a)
-as select 'a';
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-drop table t1;
-CREATE TABLE t1 (a int) ENGINE = MYISAM PARTITION BY KEY(a);
-INSERT into t1 values (1), (2);
-SHOW TABLE STATUS;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 2 7 14 0 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL partitioned 0 N
-DELETE from t1 where a = 1;
-SHOW TABLE STATUS;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 1 14 14 0 0 7 NULL NULL NULL NULL latin1_swedish_ci NULL partitioned 0 N
-ALTER TABLE t1 OPTIMIZE PARTITION p0;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-SHOW TABLE STATUS;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 1 7 7 0 1024 0 NULL NULL NULL NULL latin1_swedish_ci NULL partitioned 0 N
-DROP TABLE t1;
-CREATE TABLE t1 (a int, index(a)) PARTITION BY KEY(a);
-ALTER TABLE t1 DISABLE KEYS;
-ALTER TABLE t1 ENABLE KEYS;
-DROP TABLE t1;
-create table t1 (a int)
-engine=MEMORY
-partition by key (a);
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize note The storage engine for the table doesn't support optimize
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze note The storage engine for the table doesn't support analyze
-drop table t1;
-drop procedure if exists mysqltest_1;
-create table t1 (a int)
-partition by list (a)
-(partition p0 values in (0));
-insert into t1 values (0);
-create procedure mysqltest_1 ()
-begin
-begin
-declare continue handler for sqlexception begin end;
-update ignore t1 set a = 1 where a = 0;
-end;
-prepare stmt1 from 'alter table t1';
-execute stmt1;
-end//
-call mysqltest_1()//
-drop table t1;
-drop procedure mysqltest_1;
-create table t1 (a int, index(a))
-partition by hash(a);
-insert into t1 values (1),(2);
-select * from t1 ORDER BY a DESC;
-a
-2
-1
-drop table t1;
-create table t1 (a bigint unsigned not null, primary key(a))
-engine = myisam
-partition by key (a)
-partitions 10;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(20) unsigned NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-PARTITIONS 10
-insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE),
-(18446744073709551613), (18446744073709551612);
-select * from t1;
-a
-18446744073709551612
-18446744073709551613
-18446744073709551614
-18446744073709551615
-select * from t1 where a = 18446744073709551615;
-a
-18446744073709551615
-delete from t1 where a = 18446744073709551615;
-select * from t1;
-a
-18446744073709551612
-18446744073709551613
-18446744073709551614
-drop table t1;
-CREATE TABLE t1 (
-num int(11) NOT NULL, cs int(11) NOT NULL)
-PARTITION BY RANGE (num) SUBPARTITION BY HASH (
-cs) SUBPARTITIONS 2 (PARTITION p_X VALUES LESS THAN MAXVALUE);
-ALTER TABLE t1
-REORGANIZE PARTITION p_X INTO (
-PARTITION p_100 VALUES LESS THAN (100),
-PARTITION p_X VALUES LESS THAN MAXVALUE
-);
-drop table t1;
-CREATE TABLE t2 (
-taken datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
-id int(11) NOT NULL DEFAULT '0',
-PRIMARY KEY (id,taken),
-KEY taken (taken)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t2 VALUES
-('2006-09-27 21:50:01',16421),
-('2006-10-02 21:50:01',16421),
-('2006-09-27 21:50:01',19092),
-('2006-09-28 21:50:01',19092),
-('2006-09-29 21:50:01',19092),
-('2006-09-30 21:50:01',19092),
-('2006-10-01 21:50:01',19092),
-('2006-10-02 21:50:01',19092),
-('2006-09-27 21:50:01',22589),
-('2006-09-29 21:50:01',22589);
-CREATE TABLE t1 (
-id int(8) NOT NULL,
-PRIMARY KEY (id)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES
-(16421),
-(19092),
-(22589);
-CREATE TABLE t4 (
-taken datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
-id int(11) NOT NULL DEFAULT '0',
-PRIMARY KEY (id,taken),
-KEY taken (taken)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-PARTITION BY RANGE (to_days(taken))
-(
-PARTITION p01 VALUES LESS THAN (732920) ,
-PARTITION p02 VALUES LESS THAN (732950) ,
-PARTITION p03 VALUES LESS THAN MAXVALUE ) ;
-INSERT INTO t4 select * from t2;
-set @f_date='2006-09-28';
-set @t_date='2006-10-02';
-SELECT t1.id AS MyISAM_part
-FROM t1
-WHERE t1.id IN (
-SELECT distinct id
-FROM t4
-WHERE taken BETWEEN @f_date AND date_add(@t_date, INTERVAL 1 DAY))
-ORDER BY t1.id;
-MyISAM_part
-16421
-19092
-22589
-drop table t1, t2, t4;
-CREATE TABLE t1 (
-taken datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
-id int(11) NOT NULL DEFAULT '0',
-status varchar(20) NOT NULL DEFAULT '',
-PRIMARY KEY (id,taken)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-PARTITION BY RANGE (to_days(taken))
-(
-PARTITION p15 VALUES LESS THAN (732950) ,
-PARTITION p16 VALUES LESS THAN MAXVALUE ) ;
-INSERT INTO t1 VALUES
-('2006-09-27 21:50:01',22589,'Open'),
-('2006-09-29 21:50:01',22589,'Verified');
-DROP TABLE IF EXISTS t2;
-Warnings:
-Note 1051 Unknown table 'test.t2'
-CREATE TABLE t2 (
-id int(8) NOT NULL,
-severity tinyint(4) NOT NULL DEFAULT '0',
-priority tinyint(4) NOT NULL DEFAULT '0',
-status varchar(20) DEFAULT NULL,
-alien tinyint(4) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t2 VALUES
-(22589,1,1,'Need Feedback',0);
-SELECT t2.id FROM t2 WHERE t2.id IN (SELECT id FROM t1 WHERE status = 'Verified');
-id
-22589
-drop table t1, t2;
-create table t1 (c1 varchar(255),c2 tinyint,primary key(c1))
-partition by key (c1) partitions 10 ;
-insert into t1 values ('aaa','1') on duplicate key update c2 = c2 + 1;
-insert into t1 values ('aaa','1') on duplicate key update c2 = c2 + 1;
-select * from t1;
-c1 c2
-aaa 2
-drop table t1;
-create table t1 (s1 bigint) partition by list (s1) (partition p1 values in (-9223372036854775808));
-drop table t1;
-create table t1(a int auto_increment, b int, primary key (b, a))
-partition by hash(b) partitions 2;
-insert into t1 values (null, 1);
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 1 9 9 0 0 0 1 NULL NULL NULL latin1_swedish_ci NULL partitioned 0 N
-drop table t1;
-create table t1(a int auto_increment primary key)
-partition by key(a) partitions 2;
-insert into t1 values (null), (null), (null);
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 3 7 21 0 0 0 4 NULL NULL NULL latin1_swedish_ci NULL partitioned 0 N
-drop table t1;
-CREATE TABLE t1(a INT NOT NULL, b TINYBLOB, KEY(a))
-PARTITION BY RANGE(a) ( PARTITION p0 VALUES LESS THAN (32));
-INSERT INTO t1 VALUES (1, REPEAT('a', 10));
-INSERT INTO t1 SELECT a + 1, b FROM t1;
-INSERT INTO t1 SELECT a + 2, b FROM t1;
-INSERT INTO t1 SELECT a + 4, b FROM t1;
-INSERT INTO t1 SELECT a + 8, b FROM t1;
-ALTER TABLE t1 ADD PARTITION (PARTITION p1 VALUES LESS THAN (64));
-ALTER TABLE t1 DROP PARTITION p1;
-DROP TABLE t1;
-create table t (s1 int) engine=myisam partition by key (s1);
-create trigger t_ad after delete on t for each row insert into t values (old.s1);
-insert into t values (1);
-drop table t;
-create table t2 (b int);
-create table t1 (b int)
-PARTITION BY RANGE (t2.b) (
-PARTITION p1 VALUES LESS THAN (10),
-PARTITION p2 VALUES LESS THAN (20)
-) select * from t2;
-ERROR 42S22: Unknown column 't2.b' in 'partition function'
-create table t1 (a int)
-PARTITION BY RANGE (b) (
-PARTITION p1 VALUES LESS THAN (10),
-PARTITION p2 VALUES LESS THAN (20)
-) select * from t2;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`b`)
-(PARTITION `p1` VALUES LESS THAN (10) ENGINE = MyISAM,
- PARTITION `p2` VALUES LESS THAN (20) ENGINE = MyISAM)
-drop table t1, t2;
-create table t1
-(s1 timestamp on update current_timestamp, s2 int)
-partition by key(s1) partitions 3;
-insert into t1 values (null,null);
-drop table t1;
-create table t1 (
-c0 int,
-c1 bigint,
-c2 set('sweet'),
-key (c2,c1,c0),
-key(c0)
-) engine=myisam partition by hash (c0) partitions 5;
-insert ignore into t1 set c0 = -6502262, c1 = 3992917, c2 = 35019;
-insert ignore into t1 set c0 = 241221, c1 = -6862346, c2 = 56644;
-select c1 from t1 group by (select c0 from t1 limit 1);
-c1
--6862346
-drop table t1;
-CREATE TABLE t1(a int)
-PARTITION BY RANGE (a) (
-PARTITION p1 VALUES LESS THAN (10),
-PARTITION p2 VALUES LESS THAN (20)
-);
-ALTER TABLE t1 OPTIMIZE PARTITION p1 EXTENDED;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'EXTENDED' at line 1
-ALTER TABLE t1 ANALYZE PARTITION p1 EXTENDED;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'EXTENDED' at line 1
-ALTER TABLE t1 ANALYZE PARTITION p1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-ALTER TABLE t1 CHECK PARTITION p1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-ALTER TABLE t1 REPAIR PARTITION p1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-ALTER TABLE t1 OPTIMIZE PARTITION p1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-DROP TABLE t1;
-CREATE TABLE t1 (s1 BIGINT UNSIGNED)
-PARTITION BY RANGE (s1) (
-PARTITION p0 VALUES LESS THAN (0),
-PARTITION p1 VALUES LESS THAN (1),
-PARTITION p2 VALUES LESS THAN (18446744073709551615)
-);
-INSERT INTO t1 VALUES (0), (18446744073709551614);
-INSERT INTO t1 VALUES (18446744073709551615);
-ERROR HY000: Table has no partition for value 18446744073709551615
-DROP TABLE t1;
-CREATE TABLE t1 (s1 BIGINT UNSIGNED)
-PARTITION BY RANGE (s1) (
-PARTITION p0 VALUES LESS THAN (0),
-PARTITION p1 VALUES LESS THAN (1),
-PARTITION p2 VALUES LESS THAN (18446744073709551614),
-PARTITION p3 VALUES LESS THAN MAXVALUE
-);
-INSERT INTO t1 VALUES (-1), (0), (18446744073709551613),
-(18446744073709551614), (18446744073709551615);
-Warnings:
-Warning 1264 Out of range value for column 's1' at row 1
-SELECT * FROM t1;
-s1
-0
-0
-18446744073709551613
-18446744073709551614
-18446744073709551615
-SELECT * FROM t1 WHERE s1 = 0;
-s1
-0
-0
-SELECT * FROM t1 WHERE s1 = 18446744073709551614;
-s1
-18446744073709551614
-SELECT * FROM t1 WHERE s1 = 18446744073709551615;
-s1
-18446744073709551615
-DROP TABLE t1;
-CREATE TABLE t1 (s1 BIGINT UNSIGNED)
-PARTITION BY RANGE (s1) (
-PARTITION p0 VALUES LESS THAN (0),
-PARTITION p1 VALUES LESS THAN (1),
-PARTITION p2 VALUES LESS THAN (18446744073709551615),
-PARTITION p3 VALUES LESS THAN MAXVALUE
-);
-DROP TABLE t1;
-CREATE TABLE t1
-(int_column INT, char_column CHAR(5),
-PRIMARY KEY(char_column,int_column))
-PARTITION BY KEY(char_column,int_column)
-PARTITIONS 101;
-INSERT INTO t1 (int_column, char_column) VALUES
-( 39868 ,'zZZRW'),
-( 545592 ,'zZzSD'),
-( 4936 ,'zzzsT'),
-( 9274 ,'ZzZSX'),
-( 970185 ,'ZZzTN'),
-( 786036 ,'zZzTO'),
-( 37240 ,'zZzTv'),
-( 313801 ,'zzzUM'),
-( 782427 ,'ZZZva'),
-( 907955 ,'zZZvP'),
-( 453491 ,'zzZWV'),
-( 756594 ,'ZZZXU'),
-( 718061 ,'ZZzZH');
-SELECT * FROM t1 ORDER BY char_column DESC;
-int_column char_column
-718061 ZZzZH
-756594 ZZZXU
-453491 zzZWV
-907955 zZZvP
-782427 ZZZva
-313801 zzzUM
-37240 zZzTv
-786036 zZzTO
-970185 ZZzTN
-9274 ZzZSX
-4936 zzzsT
-545592 zZzSD
-39868 zZZRW
-DROP TABLE t1;
-CREATE TABLE t1(id MEDIUMINT NOT NULL AUTO_INCREMENT,
-user CHAR(25), PRIMARY KEY(id))
-PARTITION BY RANGE(id)
-SUBPARTITION BY hash(id) subpartitions 2
-(PARTITION pa1 values less than (10),
-PARTITION pa2 values less than (20),
-PARTITION pa11 values less than MAXVALUE);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` mediumint(9) NOT NULL AUTO_INCREMENT,
- `user` char(25) DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`id`)
-SUBPARTITION BY HASH (`id`)
-SUBPARTITIONS 2
-(PARTITION `pa1` VALUES LESS THAN (10) ENGINE = MyISAM,
- PARTITION `pa2` VALUES LESS THAN (20) ENGINE = MyISAM,
- PARTITION `pa11` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-drop table t1;
-CREATE TABLE t1 (
-`ID` bigint(20) NOT NULL AUTO_INCREMENT,
-`createdDate` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-`number` int,
-PRIMARY KEY (`ID`, number)
-)
-PARTITION BY RANGE (number) (
-PARTITION p0 VALUES LESS THAN (6),
-PARTITION p1 VALUES LESS THAN (11)
-);
-create table t2 (
-`ID` bigint(20),
-`createdDate` TIMESTAMP,
-`number` int
-);
-INSERT INTO t1 SET number=1;
-insert into t2 select * from t1;
-SELECT SLEEP(1);
-SLEEP(1)
-0
-UPDATE t1 SET number=6;
-select count(*) from t1, t2 where t1.createdDate = t2.createdDate;
-count(*)
-1
-drop table t1, t2;
-SET @orig_sql_mode = @@SQL_MODE;
-SET SQL_MODE='STRICT_ALL_TABLES,ERROR_FOR_DIVISION_BY_ZERO';
-CREATE TABLE t1 (c1 INT)
-PARTITION BY LIST(1 DIV c1) (
-PARTITION p0 VALUES IN (NULL),
-PARTITION p1 VALUES IN (1)
-);
-INSERT INTO t1 VALUES (0);
-ERROR 22012: Division by 0
-SELECT * FROM t1;
-c1
-TRUNCATE t1;
-INSERT INTO t1 VALUES (NULL), (0), (1), (2);
-ERROR 22012: Division by 0
-SELECT * FROM t1;
-c1
-NULL
-DROP TABLE t1;
-SET SQL_MODE= @orig_sql_mode;
-create table t1 (s1 int) partition by hash(s1) partitions 2;
-create index i on t1 (s1);
-insert into t1 values (1);
-insert into t1 select s1 from t1;
-insert into t1 select s1 from t1;
-insert into t1 select s1 from t1 order by s1 desc;
-select * from t1;
-s1
-1
-1
-1
-1
-1
-1
-1
-1
-drop table t1;
-create table t1 (s1 int) partition by range(s1)
-(partition pa1 values less than (10),
-partition pa2 values less than MAXVALUE);
-create index i on t1 (s1);
-insert into t1 values (1);
-insert into t1 select s1 from t1;
-insert into t1 select s1 from t1;
-insert into t1 select s1 from t1 order by s1 desc;
-select * from t1;
-s1
-1
-1
-1
-1
-1
-1
-1
-1
-drop table t1;
-create table t1 (s1 int) partition by range(s1)
-(partition pa1 values less than (10),
-partition pa2 values less than MAXVALUE);
-create index i on t1 (s1);
-insert into t1 values (20);
-insert into t1 select s1 from t1;
-insert into t1 select s1 from t1;
-insert into t1 select s1 from t1 order by s1 desc;
-select * from t1;
-s1
-20
-20
-20
-20
-20
-20
-20
-20
-drop table t1;
-create table t1 (s1 int) partition by range(s1)
-(partition pa1 values less than (10),
-partition pa2 values less than MAXVALUE);
-create index i on t1 (s1);
-insert into t1 values (1), (2), (3), (4), (5), (6), (7), (8);
-insert into t1 select s1 from t1;
-insert into t1 select s1 from t1;
-insert into t1 select s1 from t1;
-insert into t1 select s1 from t1;
-insert into t1 select s1 from t1 order by s1 desc;
-insert into t1 select s1 from t1 where s1=3;
-select count(*) from t1;
-count(*)
-288
-drop table t1;
-#
-# Bug#42944: partition not pruned correctly
-#
-CREATE TABLE t1 (a int) PARTITION BY RANGE (a)
-(PARTITION p0 VALUES LESS THAN (100),
-PARTITION p1 VALUES LESS THAN (200),
-PARTITION p2 VALUES LESS THAN (300),
-PARTITION p3 VALUES LESS THAN MAXVALUE);
-INSERT INTO t1 VALUES (10), (100), (200), (300), (400);
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a>=200;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2,p3 ALL NULL NULL NULL NULL 3 Using where
-DROP TABLE t1;
-CREATE TABLE t1 ( a INT, b INT, c INT, KEY bc(b, c) )
-PARTITION BY KEY (a, b) PARTITIONS 3
-;
-INSERT INTO t1 VALUES
-(17, 1, -8),
-(3, 1, -7),
-(23, 1, -6),
-(22, 1, -5),
-(11, 1, -4),
-(21, 1, -3),
-(19, 1, -2),
-(30, 1, -1),
-(20, 1, 1),
-(16, 1, 2),
-(18, 1, 3),
-(9, 1, 4),
-(15, 1, 5),
-(28, 1, 6),
-(29, 1, 7),
-(25, 1, 8),
-(10, 1, 9),
-(13, 1, 10),
-(27, 1, 11),
-(24, 1, 12),
-(12, 1, 13),
-(26, 1, 14),
-(14, 1, 15)
-;
-SELECT b, c FROM t1 WHERE b = 1 GROUP BY b, c;
-b c
-1 -8
-1 -7
-1 -6
-1 -5
-1 -4
-1 -3
-1 -2
-1 -1
-1 1
-1 2
-1 3
-1 4
-1 5
-1 6
-1 7
-1 8
-1 9
-1 10
-1 11
-1 12
-1 13
-1 14
-1 15
-EXPLAIN
-SELECT b, c FROM t1 WHERE b = 1 GROUP BY b, c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range bc bc 10 NULL 7 Using where; Using index for group-by
-DROP TABLE t1;
-#
-# Bug #45807: crash accessing partitioned table and sql_mode
-# contains ONLY_FULL_GROUP_BY
-# Bug#46923: select count(*) from partitioned table fails with
-# ONLY_FULL_GROUP_BY
-#
-SET SESSION SQL_MODE='ONLY_FULL_GROUP_BY';
-CREATE TABLE t1(id INT,KEY(id)) ENGINE=MYISAM
-PARTITION BY HASH(id) PARTITIONS 2;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-0
-DROP TABLE t1;
-SET SESSION SQL_MODE=DEFAULT;
-#
-# Bug#46198: Hang after failed ALTER TABLE on partitioned table.
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (s1 INT PRIMARY KEY) PARTITION BY HASH(s1);
-LOCK TABLES t1 WRITE, t1 b READ;
-UNLOCK TABLES;
-ALTER TABLE t1 DROP PARTITION p1;
-ERROR HY000: DROP PARTITION can only be used on RANGE/LIST partitions
-SELECT * FROM t1;
-s1
-DROP TABLE t1;
-CREATE TABLE t1 (s1 VARCHAR(5) PRIMARY KEY) PARTITION BY KEY(s1);
-LOCK TABLES t1 WRITE, t1 b READ;
-UNLOCK TABLES;
-ALTER TABLE t1 ADD COLUMN (s3 VARCHAR(5) UNIQUE);
-ERROR HY000: A UNIQUE INDEX must include all columns in the table's partitioning function
-SELECT * FROM t1;
-s1
-DROP TABLE t1;
-#
-# BUG#51868 - crash with myisam_use_mmap and partitioned myisam tables
-#
-SET GLOBAL myisam_use_mmap=1;
-CREATE TABLE t1(a INT) PARTITION BY HASH(a) PARTITIONS 1;
-INSERT INTO t1 VALUES(0);
-FLUSH TABLE t1;
-TRUNCATE TABLE t1;
-INSERT INTO t1 VALUES(0);
-DROP TABLE t1;
-SET GLOBAL myisam_use_mmap=default;
-#
-# Bug#13580775 ASSERTION FAILED: RECORD_LENGTH == M_RECORD_LENGTH,
-# FILE FILESORT_UTILS.CC
-#
-CREATE TABLE t1 (
-a INT PRIMARY KEY,
-b INT,
-c CHAR(1),
-d INT,
-KEY (c,d)
-) PARTITION BY KEY () PARTITIONS 1;
-INSERT INTO t1 VALUES (1,1,'a',1), (2,2,'a',1);
-SELECT 1 FROM t1 WHERE 1 IN
-(SELECT group_concat(b)
-FROM t1
-WHERE c > geomfromtext('point(1 1)')
-GROUP BY b
-);
-1
-1
-1
-DROP TABLE t1;
-#
-# Bug#13011410 CRASH IN FILESORT CODE WITH GROUP BY/ROLLUP
-#
-CREATE TABLE t1 (
-a INT,
-b MEDIUMINT,
-c VARCHAR(300) CHARACTER SET hp8 COLLATE hp8_bin,
-PRIMARY KEY (a,c(299)))
-ENGINE=myisam
-PARTITION BY LINEAR KEY () PARTITIONS 2;
-INSERT INTO t1 VALUES (1,2,'test'), (2,3,'hi'), (4,5,'bye');
-SELECT 1 FROM t1 WHERE b < SOME
-( SELECT 1 FROM t1 WHERE a >= 1
-GROUP BY b WITH ROLLUP
-HAVING b > geomfromtext("")
-);
-ERROR HY000: Illegal parameter data types mediumint and geometry for operation '>'
-DROP TABLE t1;
-
-MDEV-612 Valgrind error in ha_maria::check_if_incompatible_data
-
-CREATE TABLE t1 (a INT, b INT, KEY(a)) ENGINE=Aria PARTITION BY KEY(a) PARTITIONS 2;
-ALTER TABLE t1 ADD KEY (b);
-drop table t1;
-End of 5.1 tests
-#
-# BUG#55385: UPDATE statement throws an error, but still updates
-# the table entries
-CREATE TABLE t1_part (
-partkey int,
-nokey int
-) PARTITION BY LINEAR HASH(partkey) PARTITIONS 3;
-INSERT INTO t1_part VALUES (1, 1) , (10, 10);
-CREATE VIEW v1 AS SELECT * FROM t1_part;
-
-# Should be (1,1),(10,10)
-SELECT * FROM t1_part;
-partkey nokey
-1 1
-10 10
-
-# Case 1
-# Update is refused because partitioning key is updated
-UPDATE t1_part AS A NATURAL JOIN t1_part B SET A.partkey = 2, B.nokey = 3;
-ERROR HY000: Primary key/partition key update is not allowed since the table is updated both as 'A' and 'B'
-UPDATE t1_part AS A NATURAL JOIN t1_part B SET A.nokey = 2, B.partkey = 3;
-ERROR HY000: Primary key/partition key update is not allowed since the table is updated both as 'A' and 'B'
-
-# Case 2
-# Like 1, but partition accessed through a view
-UPDATE t1_part AS A NATURAL JOIN v1 as B SET A.nokey = 2 , B.partkey = 3;
-ERROR HY000: Primary key/partition key update is not allowed since the table is updated both as 'A' and 'B'
-UPDATE v1 AS A NATURAL JOIN t1_part as B SET A.nokey = 2 , B.partkey = 3;
-ERROR HY000: Primary key/partition key update is not allowed since the table is updated both as 'A' and 'B'
-
-# Should be (1,1),(10,10)
-SELECT * FROM t1_part;
-partkey nokey
-1 1
-10 10
-
-# Case 3
-# Update is accepted because partitioning key is not updated
-UPDATE t1_part AS A NATURAL JOIN t1_part B SET A.nokey = 2 , B.nokey = 3;
-
-# Should be (1,3),(10,3)
-SELECT * FROM t1_part;
-partkey nokey
-1 3
-10 3
-
-DROP VIEW v1;
-DROP TABLE t1_part;
-#
-# BUG#598247: partition.test produces valgrind errors in 5.3-based branches
-#
-CREATE TABLE t1 (
-a INT DEFAULT NULL,
-b DOUBLE DEFAULT NULL,
-c INT DEFAULT NULL,
-KEY idx2(b,a)
-) engine=myisam PARTITION BY HASH(c) PARTITIONS 3;
-INSERT INTO t1 VALUES (6,8,9);
-INSERT INTO t1 VALUES (6,8,10);
-SELECT 1 FROM t1 JOIN t1 AS t2 USING (a);
-1
-1
-1
-1
-1
-drop table t1;
-#
-# LP BUG#1001117 Crash on a simple select that uses a temptable view
-# MySQL Bug #12330344 Crash and/or valgrind errors in free_io_cache with join, view,
-# partitioned table
-#
-CREATE TABLE t1(a INT PRIMARY KEY) PARTITION BY LINEAR KEY (a);
-CREATE ALGORITHM=TEMPTABLE VIEW vtmp AS
-SELECT 1 FROM t1 AS t1_0 JOIN t1 ON t1_0.a LIKE (SELECT 1 FROM t1);
-SELECT * FROM vtmp;
-1
-DROP VIEW vtmp;
-DROP TABLE t1;
-#
-# MDEV-365 "Got assertion when doing alter table on a partition"
-#
-CREATE TABLE t1 ( i INT ) ENGINE=Aria PARTITION BY HASH(i) PARTITIONS 2;
-INSERT INTO t1 VALUES (1),(2),(2),(3),(4);
-ALTER TABLE t1 ADD PARTITION PARTITIONS 2;
-SELECT * from t1 order by i;
-i
-1
-2
-2
-3
-4
-DROP TABLE t1;
-#
-# MDEV-5555: Incorrect index_merge on BTREE indices
-#
-CREATE TABLE t1 (
-id bigint(20) unsigned NOT NULL,
-id2 bigint(20) unsigned NOT NULL,
-dob date DEFAULT NULL,
-address char(100) DEFAULT NULL,
-city char(35) DEFAULT NULL,
-hours_worked_per_week smallint(5) unsigned DEFAULT NULL,
-weeks_worked_last_year tinyint(3) unsigned DEFAULT NULL,
-KEY dob (dob),
-KEY address (address),
-KEY city (city),
-KEY hours_worked_per_week (hours_worked_per_week),
-KEY weeks_worked_last_year (weeks_worked_last_year)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-PARTITION BY KEY (id) PARTITIONS 5;
-# Insert some rows
-select * from t1 where hours_worked_per_week = 40 and weeks_worked_last_year = 52 and dob < '1949-11-21';
-id id2 dob address city hours_worked_per_week weeks_worked_last_year
-16 16 1949-11-07 address16 city16 40 52
-50 50 1923-09-08 address50 city50 40 52
-select * from t1 IGNORE INDEX(dob, weeks_worked_last_year, hours_worked_per_week) where hours_worked_per_week = 40 and weeks_worked_last_year = 52 and dob < '1949-11-21';
-id id2 dob address city hours_worked_per_week weeks_worked_last_year
-16 16 1949-11-07 address16 city16 40 52
-50 50 1923-09-08 address50 city50 40 52
-drop table t1;
-#
-# MDEV-6322: The PARTITION engine can return wrong query results
-#
-CREATE TABLE t1 (
-CustomerID varchar(5) DEFAULT NULL,
-CompanyName varchar(40) DEFAULT NULL,
-ContactName varchar(30) DEFAULT NULL,
-ContactTitle varchar(30) DEFAULT NULL,
-Address varchar(60) DEFAULT NULL,
-City varchar(15) DEFAULT NULL,
-Region varchar(15) DEFAULT NULL,
-PostalCode varchar(10) DEFAULT NULL,
-Country varchar(15) NOT NULL,
-Phone varchar(24) DEFAULT NULL,
-Fax varchar(24) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-PARTITION BY LIST COLUMNS(Country)
-(PARTITION p1 VALUES IN ('Germany','Austria','Switzerland','Poland'),
-PARTITION p2 VALUES IN ('USA','Canada','Mexico'),
-PARTITION p3 VALUES IN ('Spain','Portugal','Italy'),
-PARTITION p4 VALUES IN ('UK','Ireland'),
-PARTITION p5 VALUES IN ('France','Belgium'),
-PARTITION p6 VALUES IN ('Sweden','Finland','Denmark','Norway'),
-PARTITION p7 VALUES IN ('Venezuela','Argentina','Brazil')
-);
-INSERT INTO t1 (CustomerID, City, Country) VALUES
-('ANATR','México D.F','Mexico'),
-('ANTON','México D.F','Mexico'),
-('BOTTM','Tsawassen','Canada'),
-('CENTC','México D.F','Mexico'),
-('GREAL','Eugene','USA'),
-('HUNGC','Elgin','USA'),
-('LAUGB','Vancouver','Canada'),
-('LAZYK','Walla Walla','USA'),
-('LETSS','San Francisco','USA'),
-('LONEP','Portland','USA');
-SELECT * FROM t1 WHERE Country = 'USA';
-CustomerID CompanyName ContactName ContactTitle Address City Region PostalCode Country Phone Fax
-GREAL NULL NULL NULL NULL Eugene NULL NULL USA NULL NULL
-HUNGC NULL NULL NULL NULL Elgin NULL NULL USA NULL NULL
-LAZYK NULL NULL NULL NULL Walla Walla NULL NULL USA NULL NULL
-LETSS NULL NULL NULL NULL San Francisco NULL NULL USA NULL NULL
-LONEP NULL NULL NULL NULL Portland NULL NULL USA NULL NULL
-DROP TABLE t1;
-CREATE TABLE t1 ( d DATE NOT NULL)
-PARTITION BY RANGE( YEAR(d) ) (
-PARTITION p0 VALUES LESS THAN (1960),
-PARTITION p1 VALUES LESS THAN (1970),
-PARTITION p2 VALUES LESS THAN (1980),
-PARTITION p3 VALUES LESS THAN (1990)
-);
-ALTER TABLE t1 ADD PARTITION IF NOT EXISTS(
-PARTITION `p5` VALUES LESS THAN (2010)
-COMMENT 'APSTART \' APEND'
-);
-ALTER TABLE t1 ADD PARTITION IF NOT EXISTS(
-PARTITION `p5` VALUES LESS THAN (2010)
-COMMENT 'APSTART \' APEND'
-);
-Warnings:
-Note 1517 Duplicate partition name p5
-alter table t1 drop partition if exists p5;
-alter table t1 drop partition if exists p5;
-Warnings:
-Note 1507 Error in list of partitions to DROP
-DROP TABLE t1;
-CREATE TABLE t1 (a INT) ENGINE=MyISAM PARTITION BY RANGE(a) (PARTITION p1 VALUES LESS THAN (0));
-ALTER TABLE t1 ADD PARTITION (PARTITION p2 VALUES LESS THAN (1));
-PREPARE stmt FROM 'ALTER TABLE t1 ADD PARTITION IF NOT EXISTS (PARTITION p2 VALUES LESS THAN (2))';
-EXECUTE stmt;
-Warnings:
-Note 1517 Duplicate partition name p2
-EXECUTE stmt;
-Warnings:
-Note 1517 Duplicate partition name p2
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# End of 10.0 tests
-#
-#
-# MDEV-8283 crash in get_mm_leaf with xor on binary col
-#
-CREATE TABLE t1(a BINARY(80)) PARTITION BY KEY(a) PARTITIONS 3;
-SELECT 1 FROM t1 WHERE a XOR 'a';
-1
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
diff --git a/mysql-test/r/partition_alter.result b/mysql-test/r/partition_alter.result
deleted file mode 100644
index e42604ba056..00000000000
--- a/mysql-test/r/partition_alter.result
+++ /dev/null
@@ -1,129 +0,0 @@
-CREATE TABLE `test_data` (
-`hid` bigint(20) unsigned NOT NULL,
-`itid` bigint(20) unsigned NOT NULL,
-`clocktime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-`values` double(16,4) NOT NULL,
-PRIMARY KEY (`hid`,`itid`,`clocktime`)
-) ;
-INSERT INTO `test_data` (`hid`, `itid`, `clocktime`, `values`) VALUES
-(1, 1, '2015-03-10 06:25:16', 0.0000),
-(1, 1, '2015-03-10 06:26:24', 0.0000),
-(1, 1, '2015-03-10 06:27:32', 0.0000),
-(1, 1, '2015-03-10 06:28:40', 0.0000),
-(1, 1, '2015-03-10 06:29:49', 0.0000),
-(1, 1, '2015-03-10 06:30:57', 0.0000),
-(1, 1, '2015-03-10 06:32:05', 0.0000),
-(1, 1, '2015-03-10 06:33:14', 0.0000),
-(1, 1, '2015-03-10 06:34:22', 0.0000),
-(1, 1, '2015-03-10 06:35:30', 0.0000),
-(1, 1, '2015-03-10 06:36:39', 0.0000),
-(1, 1, '2015-03-10 06:37:47', 0.0000),
-(1, 1, '2015-03-10 06:38:55', 0.0000),
-(1, 1, '2015-03-10 06:40:03', 0.0000),
-(1, 1, '2015-03-10 06:41:09', 0.0000),
-(1, 1, '2015-03-10 06:42:21', 0.0000),
-(1, 1, '2015-03-10 06:43:29', 0.0000),
-(1, 1, '2015-03-10 06:44:37', 0.0000),
-(1, 1, '2015-03-10 06:45:46', 0.0000),
-(1, 1, '2015-03-10 06:47:05', 0.0000),
-(1, 1, '2015-03-10 06:48:21', 0.0000),
-(1, 1, '2015-03-10 06:49:41', 0.0000),
-(1, 1, '2015-03-10 06:50:58', 0.0000),
-(1, 1, '2015-03-10 06:52:08', 0.0000),
-(1, 1, '2015-03-10 06:53:17', 0.0000),
-(1, 1, '2015-03-10 06:54:25', 0.0000),
-(563, 1, '2015-03-17 14:28:28', 0.3125),
-(563, 1, '2015-03-17 14:29:39', 0.2775),
-(563, 1, '2015-03-17 14:30:49', 0.2675);
-CREATE PROCEDURE `create_part_max`()
-alter table `test_data`
- partition by range(unix_timestamp(clocktime)) (
-partition partMAX values less than MAXVALUE
-);
-call create_part_max();
-call create_part_max();
-drop procedure create_part_max;
-prepare stmt from "alter table `test_data`
- partition by range(unix_timestamp(clocktime)) (
- partition partMAX values less than MAXVALUE
- )";
-execute stmt;
-execute stmt;
-deallocate prepare stmt;
-drop table test_data;
-create table t1(id int, d date not null, b bool not null default 0, primary key(id,d))
-engine=innodb
-partition by range columns (d) (
-partition p1 values less than ('2016-10-18'),
-partition p2 values less than ('2020-10-19'));
-insert t1 values (0, '2000-01-02', 0);
-insert t1 values (1, '2020-01-02', 10);
-alter table t1 add check (b in (0, 1));
-ERROR 23000: CONSTRAINT `CONSTRAINT_1` failed for `test`.`#sql-temporary`
-alter table t1 add check (b in (0, 10));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL,
- `d` date NOT NULL,
- `b` tinyint(1) NOT NULL DEFAULT 0,
- PRIMARY KEY (`id`,`d`),
- CONSTRAINT `CONSTRAINT_1` CHECK (`b` in (0,10))
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY RANGE COLUMNS(`d`)
-(PARTITION `p1` VALUES LESS THAN ('2016-10-18') ENGINE = InnoDB,
- PARTITION `p2` VALUES LESS THAN ('2020-10-19') ENGINE = InnoDB)
-insert t1 values (2, '2020-01-03', 20);
-ERROR 23000: CONSTRAINT `CONSTRAINT_1` failed for `test`.`t1`
-drop table t1;
-create table t1(id int, d date not null, b bool not null default 0, primary key(id,d))
-partition by range columns (d) (
-partition p1 values less than ('2016-10-18'),
-partition p2 values less than ('2020-10-19'));
-insert t1 values (0, '2000-01-02', 0);
-insert t1 values (1, '2020-01-02', 10);
-alter table t1 add check (b in (0, 1));
-ERROR 23000: CONSTRAINT `CONSTRAINT_1` failed for `test`.`#sql-temporary`
-alter table t1 add check (b in (0, 10));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL,
- `d` date NOT NULL,
- `b` tinyint(1) NOT NULL DEFAULT 0,
- PRIMARY KEY (`id`,`d`),
- CONSTRAINT `CONSTRAINT_1` CHECK (`b` in (0,10))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE COLUMNS(`d`)
-(PARTITION `p1` VALUES LESS THAN ('2016-10-18') ENGINE = MyISAM,
- PARTITION `p2` VALUES LESS THAN ('2020-10-19') ENGINE = MyISAM)
-insert t1 values (2, '2020-01-03', 20);
-ERROR 23000: CONSTRAINT `CONSTRAINT_1` failed for `test`.`t1`
-drop table t1;
-create table t1 (id_1 int auto_increment, id_2 int, id_3 int, d1 date, dt1 datetime default current_timestamp, dt2 datetime default current_timestamp on update current_timestamp, primary key (id_2, id_3), key(id_1)) partition by hash(id_2) partitions 3 (partition p01, partition p02, partition p03);
-insert into t1 values(0, 1, 1, NULL, now(), now());
-alter online table t1 delay_key_write=1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id_1` int(11) NOT NULL AUTO_INCREMENT,
- `id_2` int(11) NOT NULL,
- `id_3` int(11) NOT NULL,
- `d1` date DEFAULT NULL,
- `dt1` datetime DEFAULT current_timestamp(),
- `dt2` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- PRIMARY KEY (`id_2`,`id_3`),
- KEY `id_1` (`id_1`)
-) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 DELAY_KEY_WRITE=1
- PARTITION BY HASH (`id_2`)
-(PARTITION `p01` ENGINE = MyISAM,
- PARTITION `p02` ENGINE = MyISAM,
- PARTITION `p03` ENGINE = MyISAM)
-drop table t1;
-create or replace table t1 (x int) partition by hash (x) (partition p1, partition p2);
-lock table t1 write;
-alter table t1 add partition (partition p1);
-ERROR HY000: Duplicate partition name p1
-alter table t1 add partition (partition p1);
-ERROR HY000: Duplicate partition name p1
-drop table t1;
diff --git a/mysql-test/r/partition_binlog.result b/mysql-test/r/partition_binlog.result
deleted file mode 100644
index 21eca8f1c00..00000000000
--- a/mysql-test/r/partition_binlog.result
+++ /dev/null
@@ -1,54 +0,0 @@
-DROP TABLE IF EXISTS t1;
-#
-# Bug#58147: ALTER TABLE w/ TRUNCATE PARTITION fails
-# but the statement is written to binlog
-#
-CREATE TABLE t1(id INT)
-PARTITION BY RANGE (id)
-(PARTITION p0 VALUES LESS THAN (100),
-PARTITION pmax VALUES LESS THAN (MAXVALUE));
-INSERT INTO t1 VALUES (1), (10), (100), (1000);
-ALTER TABLE t1 TRUNCATE PARTITION p1;
-ERROR HY000: Unknown partition 'p1' in table 't1'
-ALTER TABLE t1 DROP PARTITION p1;
-ERROR HY000: Error in list of partitions to DROP
-# No error returned, output in table format instead:
-ALTER TABLE t1 ANALYZE PARTITION p1;
-Table Op Msg_type Msg_text
-test.t1 analyze error Error in list of partitions to test.t1
-ALTER TABLE t1 CHECK PARTITION p1;
-Table Op Msg_type Msg_text
-test.t1 check error Error in list of partitions to test.t1
-ALTER TABLE t1 OPTIMIZE PARTITION p1;
-Table Op Msg_type Msg_text
-test.t1 optimize error Error in list of partitions to test.t1
-ALTER TABLE t1 REPAIR PARTITION p1;
-Table Op Msg_type Msg_text
-test.t1 repair error Error in list of partitions to test.t1
-ALTER TABLE t1 ANALYZE PARTITION p0;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-ALTER TABLE t1 CHECK PARTITION p0;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-ALTER TABLE t1 OPTIMIZE PARTITION p0;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-ALTER TABLE t1 REPAIR PARTITION p0;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-ALTER TABLE t1 TRUNCATE PARTITION p0;
-ALTER TABLE t1 DROP PARTITION p0;
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; ALTER TABLE t1 ANALYZE PARTITION p0
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; ALTER TABLE t1 OPTIMIZE PARTITION p0
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; ALTER TABLE t1 REPAIR PARTITION p0
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; ALTER TABLE t1 TRUNCATE PARTITION p0
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; ALTER TABLE t1 DROP PARTITION p0
-DROP TABLE t1;
diff --git a/mysql-test/r/partition_binlog_stmt.result b/mysql-test/r/partition_binlog_stmt.result
deleted file mode 100644
index 5b9df742f70..00000000000
--- a/mysql-test/r/partition_binlog_stmt.result
+++ /dev/null
@@ -1,13 +0,0 @@
-DROP TABLE IF EXISTS t1;
-#
-# Bug#51851: Server with SBR locks mutex twice on LOAD DATA into
-# partitioned MyISAM table
-CREATE TABLE t1
-(id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-name TINYBLOB NOT NULL,
-modified TIMESTAMP DEFAULT '0000-00-00 00:00:00',
-INDEX namelocs (name(255))) ENGINE = MyISAM
-PARTITION BY HASH(id) PARTITIONS 2;
-LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/init_file.txt'
-INTO TABLE t1 (name);
-DROP TABLE t1;
diff --git a/mysql-test/r/partition_blackhole.result b/mysql-test/r/partition_blackhole.result
deleted file mode 100644
index 225cc1886fd..00000000000
--- a/mysql-test/r/partition_blackhole.result
+++ /dev/null
@@ -1,7 +0,0 @@
-DROP TABLE IF EXISTS t1;
-CREATE TABLE `t1` (
-`id` int(11) default NULL
-) ENGINE=BLACKHOLE DEFAULT CHARSET=latin1 PARTITION BY HASH (id) ;
-SELECT * FROM t1;
-id
-DROP TABLE t1;
diff --git a/mysql-test/r/partition_bug18198.result b/mysql-test/r/partition_bug18198.result
deleted file mode 100644
index ee7bf514807..00000000000
--- a/mysql-test/r/partition_bug18198.result
+++ /dev/null
@@ -1,173 +0,0 @@
-drop table if exists t1;
-create table t1 (col1 datetime)
-partition by range(datediff(col1,col1))
-(partition p0 values less than (10), partition p1 values less than (30));
-drop table t1;
-create table t1 (col1 int)
-partition by range(greatest(col1,10))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(isnull(col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(least(col1,12))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(case when col1>0 then 10 else 20 end)
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(ifnull(col1,5))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(nullif(col1,5))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(bit_length(col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 char(5))
-partition by range(bit_length(col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(char_length(col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 char(5))
-partition by range(char_length(col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 char(5))
-partition by range(character_length(col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(find_in_set(col1,1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 char(5))
-partition by range(find_in_set(col1,'1'))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(instr(col1,3))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 char(5))
-partition by range(instr(col1,'3'))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 char(5))
-partition by range(length(col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 char(5))
-partition by range(locate(1,col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(locate(1,col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 char(5))
-partition by range(octet_length(col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 char(5))
-partition by range(position(1 in col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(position(1 in col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 char(5))
-partition by range(strcmp(col1,2))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(strcmp(col1,2))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(crc32(col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(round(col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(sign(col1))
-(partition p0 values less than (2), partition p1 values less than (6));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 datetime)
-partition by range(period_add(col1,5))
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 datetime, col2 datetime)
-partition by range(period_diff(col1,col2))
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int, col2 int)
-partition by range(period_diff(col1,col2))
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 datetime)
-partition by range(timestampdiff(day,5,col1))
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 date)
-partition by range(unix_timestamp(col1))
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-create table t1 (col1 datetime)
-partition by range(week(col1))
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 varchar(25))
-partition by range(cast(col1 as signed))
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 varchar(25))
-partition by range(convert(col1,unsigned))
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(col1 | 20)
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(col1 & 20)
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(col1 ^ 20)
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(col1 << 20)
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(col1 >> 20)
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(~col1)
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(bit_count(col1))
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
-create table t1 (col1 int)
-partition by range(inet_aton(col1))
-(partition p0 values less than (10), partition p1 values less than (30));
-ERROR HY000: This partition function is not allowed
diff --git a/mysql-test/r/partition_cache.result b/mysql-test/r/partition_cache.result
deleted file mode 100644
index 697ba1bcd15..00000000000
--- a/mysql-test/r/partition_cache.result
+++ /dev/null
@@ -1,211 +0,0 @@
-SET global query_cache_type=ON;
-SET local query_cache_type=ON;
-SET SESSION STORAGE_ENGINE = InnoDB;
-drop table if exists t1,t2,t3;
-set @save_query_cache_size = @@global.query_cache_size;
-set GLOBAL query_cache_size = 1355776;
-flush status;
-set autocommit=0;
-create table t1 (a int not null) PARTITION BY KEY (a) PARTITIONS 3;
-insert into t1 values (1),(2),(3);
-select * from t1;
-a
-1
-2
-3
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-drop table t1;
-commit;
-set autocommit=1;
-begin;
-create table t1 (a int not null) PARTITION BY KEY (a) PARTITIONS 3;
-insert into t1 values (1),(2),(3);
-select * from t1;
-a
-1
-2
-3
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-drop table t1;
-commit;
-create table t1 (a int not null) PARTITION BY KEY (a) PARTITIONS 3;
-create table t2 (a int not null) PARTITION BY KEY (a) PARTITIONS 3;
-create table t3 (a int not null) PARTITION BY KEY (a) PARTITIONS 3;
-insert into t1 values (1),(2);
-insert into t2 values (1),(2);
-insert into t3 values (1),(2);
-select * from t1;
-a
-1
-2
-select * from t2;
-a
-1
-2
-select * from t3;
-a
-1
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 3
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-begin;
-select * from t1;
-a
-1
-2
-select * from t2;
-a
-1
-2
-select * from t3;
-a
-1
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-insert into t1 values (3);
-insert into t2 values (3);
-insert into t1 values (4);
-select * from t1;
-a
-1
-2
-3
-4
-select * from t2;
-a
-1
-2
-3
-select * from t3;
-a
-1
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-commit;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-drop table t3,t2,t1;
-CREATE TABLE t1 (id int(11) NOT NULL auto_increment, PRIMARY KEY (id)) PARTITION BY HASH (id) PARTITIONS 3;
-select count(*) from t1;
-count(*)
-0
-insert into t1 (id) values (0);
-select count(*) from t1;
-count(*)
-1
-drop table t1;
-connect connection1,localhost,root,,;
-SET SESSION STORAGE_ENGINE = InnoDB;
-SET @@autocommit=1;
-connection default;
-SHOW VARIABLES LIKE 'have_query_cache';
-Variable_name Value
-have_query_cache YES
-SET GLOBAL query_cache_size = 204800;
-flush status;
-SET @@autocommit=1;
-SET SESSION STORAGE_ENGINE = InnoDB;
-CREATE TABLE t2 (s1 int, s2 varchar(1000), key(s1)) PARTITION BY KEY (s1) PARTITIONS 3;
-INSERT INTO t2 VALUES (1,repeat('a',10)),(2,repeat('a',10)),(3,repeat('a',10)),(4,repeat('a',10));
-COMMIT;
-START TRANSACTION;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-0
-UPDATE t2 SET s2 = 'w' WHERE s1 = 3;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-connection connection1;
-START TRANSACTION;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-0
-INSERT INTO t2 VALUES (5,'w');
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-1
-COMMIT;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-connection default;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-1
-COMMIT;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-connection connection1;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-2
-START TRANSACTION;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-2
-INSERT INTO t2 VALUES (6,'w');
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-3
-connection default;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-2
-START TRANSACTION;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-2
-DELETE from t2 WHERE s1=3;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-1
-COMMIT;
-connection connection1;
-COMMIT;
-SELECT sql_cache count(*) FROM t2 WHERE s2 = 'w';
-count(*)
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-disconnect connection1;
-connection default;
-set @@global.query_cache_size = @save_query_cache_size;
-drop table t2;
-SET global query_cache_type=default;
diff --git a/mysql-test/r/partition_cache_innodb.result b/mysql-test/r/partition_cache_innodb.result
deleted file mode 100644
index e6e69ee686e..00000000000
--- a/mysql-test/r/partition_cache_innodb.result
+++ /dev/null
@@ -1,154 +0,0 @@
-SET global query_cache_type=ON;
-SET local query_cache_type=ON;
-SET SESSION STORAGE_ENGINE = innodb;
-drop table if exists t1;
-set @save_query_cache_size = @@global.query_cache_size;
-# Test that partitions works with query cache
-flush query cache;
-SET GLOBAL query_cache_size=1024*1024*512;
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL ,
-`created_at` datetime NOT NULL,
-`cool` tinyint default 0
-);
-ALTER TABLE t1 PARTITION BY RANGE (TO_DAYS(created_at)) (
-PARTITION month_2010_4 VALUES LESS THAN (734258),
-PARTITION month_2010_5 VALUES LESS THAN (734289),
-PARTITION month_max VALUES LESS THAN MAXVALUE
-);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL,
- `created_at` datetime NOT NULL,
- `cool` tinyint(4) DEFAULT 0
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY RANGE (to_days(`created_at`))
-(PARTITION `month_2010_4` VALUES LESS THAN (734258) ENGINE = InnoDB,
- PARTITION `month_2010_5` VALUES LESS THAN (734289) ENGINE = InnoDB,
- PARTITION `month_max` VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
-INSERT INTO t1 VALUES (1, now(), 0);
-flush status;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 2
-drop table t1;
-# Test that sub-partitions works with query cache
-flush query cache;
-SET GLOBAL query_cache_size=1024*1024*512;
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL ,
-`created_at` datetime NOT NULL,
-`cool` tinyint default 0
-)
-PARTITION BY RANGE (TO_DAYS(created_at))
-subpartition by hash(cool) subpartitions 3 (
-PARTITION month_2010_4 VALUES LESS THAN (734258),
-PARTITION month_2010_5 VALUES LESS THAN (734289),
-PARTITION month_max VALUES LESS THAN MAXVALUE
-);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL,
- `created_at` datetime NOT NULL,
- `cool` tinyint(4) DEFAULT 0
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY RANGE (to_days(`created_at`))
-SUBPARTITION BY HASH (`cool`)
-SUBPARTITIONS 3
-(PARTITION `month_2010_4` VALUES LESS THAN (734258) ENGINE = InnoDB,
- PARTITION `month_2010_5` VALUES LESS THAN (734289) ENGINE = InnoDB,
- PARTITION `month_max` VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
-INSERT INTO t1 VALUES (1, now(), 0);
-flush status;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 2
-drop table t1;
-#
-# MySQL bug#53775 Query on partitioned table returns cached result
-# from previous transaction
-#
-flush query cache;
-flush status;
-SET GLOBAL query_cache_size=1024*1024*512;
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL ,
-`created_at` datetime NOT NULL,
-`cool` tinyint default 0
-);
-ALTER TABLE t1 PARTITION BY RANGE (TO_DAYS(created_at)) (
-PARTITION month_2010_4 VALUES LESS THAN (734258),
-PARTITION month_2010_5 VALUES LESS THAN (734289),
-PARTITION month_max VALUES LESS THAN MAXVALUE
-);
-INSERT INTO t1 VALUES (1, now(), 0);
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-BEGIN;
-UPDATE `t1` SET `cool` = 1 WHERE `id` = 1;
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-1
-ROLLBACK;
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-BEGIN;
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-ROLLBACK;
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-drop table t1;
-set @@global.query_cache_size = @save_query_cache_size;
-SET global query_cache_type=default;
diff --git a/mysql-test/r/partition_cache_myisam.result b/mysql-test/r/partition_cache_myisam.result
deleted file mode 100644
index d8e4f837ff7..00000000000
--- a/mysql-test/r/partition_cache_myisam.result
+++ /dev/null
@@ -1,156 +0,0 @@
-SET global query_cache_type=ON;
-SET local query_cache_type=ON;
-SET SESSION STORAGE_ENGINE = myisam;
-drop table if exists t1;
-set @save_query_cache_size = @@global.query_cache_size;
-# Test that partitions works with query cache
-flush query cache;
-SET GLOBAL query_cache_size=1024*1024*512;
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL ,
-`created_at` datetime NOT NULL,
-`cool` tinyint default 0
-);
-ALTER TABLE t1 PARTITION BY RANGE (TO_DAYS(created_at)) (
-PARTITION month_2010_4 VALUES LESS THAN (734258),
-PARTITION month_2010_5 VALUES LESS THAN (734289),
-PARTITION month_max VALUES LESS THAN MAXVALUE
-);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL,
- `created_at` datetime NOT NULL,
- `cool` tinyint(4) DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (to_days(`created_at`))
-(PARTITION `month_2010_4` VALUES LESS THAN (734258) ENGINE = MyISAM,
- PARTITION `month_2010_5` VALUES LESS THAN (734289) ENGINE = MyISAM,
- PARTITION `month_max` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-INSERT INTO t1 VALUES (1, now(), 0);
-flush status;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 2
-drop table t1;
-# Test that sub-partitions works with query cache
-flush query cache;
-SET GLOBAL query_cache_size=1024*1024*512;
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL ,
-`created_at` datetime NOT NULL,
-`cool` tinyint default 0
-)
-PARTITION BY RANGE (TO_DAYS(created_at))
-subpartition by hash(cool) subpartitions 3 (
-PARTITION month_2010_4 VALUES LESS THAN (734258),
-PARTITION month_2010_5 VALUES LESS THAN (734289),
-PARTITION month_max VALUES LESS THAN MAXVALUE
-);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL,
- `created_at` datetime NOT NULL,
- `cool` tinyint(4) DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (to_days(`created_at`))
-SUBPARTITION BY HASH (`cool`)
-SUBPARTITIONS 3
-(PARTITION `month_2010_4` VALUES LESS THAN (734258) ENGINE = MyISAM,
- PARTITION `month_2010_5` VALUES LESS THAN (734289) ENGINE = MyISAM,
- PARTITION `month_max` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-INSERT INTO t1 VALUES (1, now(), 0);
-flush status;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-0
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 2
-drop table t1;
-#
-# MySQL bug#53775 Query on partitioned table returns cached result
-# from previous transaction
-#
-flush query cache;
-flush status;
-SET GLOBAL query_cache_size=1024*1024*512;
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL ,
-`created_at` datetime NOT NULL,
-`cool` tinyint default 0
-);
-ALTER TABLE t1 PARTITION BY RANGE (TO_DAYS(created_at)) (
-PARTITION month_2010_4 VALUES LESS THAN (734258),
-PARTITION month_2010_5 VALUES LESS THAN (734289),
-PARTITION month_max VALUES LESS THAN MAXVALUE
-);
-INSERT INTO t1 VALUES (1, now(), 0);
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-BEGIN;
-UPDATE `t1` SET `cool` = 1 WHERE `id` = 1;
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-1
-ROLLBACK;
-Warnings:
-Warning 1196 Some non-transactional changed tables couldn't be rolled back
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-1
-BEGIN;
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-1
-ROLLBACK;
-SELECT cool FROM `t1` WHERE (`t1`.id = 1) LIMIT 1;
-cool
-1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 2
-drop table t1;
-set @@global.query_cache_size = @save_query_cache_size;
-SET global query_cache_type=default;
diff --git a/mysql-test/r/partition_charset.result b/mysql-test/r/partition_charset.result
deleted file mode 100644
index f8f75e8bee7..00000000000
--- a/mysql-test/r/partition_charset.result
+++ /dev/null
@@ -1,22 +0,0 @@
-drop table if exists t1;
-set names utf8;
-create table t1 (s1 int)
-partition by list (s1)
-(partition c values in (1),
-partition Ç values in (3));
-insert into t1 values (1),(3);
-select * from t1;
-s1
-1
-3
-flush tables;
-set names latin1;
-select * from t1;
-s1
-1
-3
-drop table t1;
-create table t1 (a varchar(1), primary key (a))
-partition by list (ascii(a))
-(partition p1 values in (65));
-ERROR HY000: This partition function is not allowed
diff --git a/mysql-test/r/partition_column.result b/mysql-test/r/partition_column.result
deleted file mode 100644
index 041c485c1a8..00000000000
--- a/mysql-test/r/partition_column.result
+++ /dev/null
@@ -1,672 +0,0 @@
-drop table if exists t1;
-#
-# Bug#52815: LIST COLUMNS doesn't insert rows in correct partition
-# if muliple columns used
-CREATE TABLE t1 (
-id INT NOT NULL,
-name VARCHAR(255),
-department VARCHAR(10),
-country VARCHAR(255)
-) PARTITION BY LIST COLUMNS (department, country) (
-PARTITION first_office VALUES IN (('dep1', 'Russia'), ('dep1', 'Croatia')),
-PARTITION second_office VALUES IN (('dep2', 'Russia'))
-);
-INSERT INTO t1 VALUES(1, 'Ann', 'dep1', 'Russia');
-INSERT INTO t1 VALUES(2, 'Bob', 'dep1', 'Croatia');
-INSERT INTO t1 VALUES(3, 'Cecil', 'dep2', 'Russia');
-INSERT INTO t1 VALUES(3, 'Dan', 'dep2', 'Croatia');
-ERROR HY000: Table has no partition for value from column_list
-SELECT PARTITION_NAME,TABLE_ROWS
-FROM INFORMATION_SCHEMA.PARTITIONS
-WHERE TABLE_NAME = 't1';
-PARTITION_NAME TABLE_ROWS
-first_office 2
-second_office 1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL,
- `name` varchar(255) DEFAULT NULL,
- `department` varchar(10) DEFAULT NULL,
- `country` varchar(255) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`department`,`country`)
-(PARTITION `first_office` VALUES IN (('dep1','Russia'),('dep1','Croatia')) ENGINE = MyISAM,
- PARTITION `second_office` VALUES IN (('dep2','Russia')) ENGINE = MyISAM)
-SELECT * FROM t1 WHERE department = 'dep2' and country = 'Croatia';
-id name department country
-SELECT * FROM t1 WHERE department = 'dep1' and country = 'Croatia';
-id name department country
-2 Bob dep1 Croatia
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL)
-PARTITION BY RANGE COLUMNS (a)
-(PARTITION p0 VALUES LESS THAN (0));
-ERROR HY000: Field 'a' is of a not allowed type for this type of partitioning
-CREATE TABLE t1 (a BLOB)
-PARTITION BY RANGE COLUMNS (a)
-(PARTITION p0 VALUES LESS THAN ("X"));
-ERROR HY000: A BLOB field is not allowed in partition function
-CREATE TABLE t1 (a TEXT)
-PARTITION BY RANGE COLUMNS (a)
-(PARTITION p0 VALUES LESS THAN ("X"));
-ERROR HY000: A BLOB field is not allowed in partition function
-CREATE TABLE t1 (a FLOAT)
-PARTITION BY RANGE COLUMNS (a)
-(PARTITION p0 VALUES LESS THAN (0.0));
-ERROR HY000: Field 'a' is of a not allowed type for this type of partitioning
-CREATE TABLE t1 (a DOUBLE)
-PARTITION BY RANGE COLUMNS (a)
-(PARTITION p0 VALUES LESS THAN (0.0));
-ERROR HY000: Field 'a' is of a not allowed type for this type of partitioning
-CREATE TABLE t1 (d TIMESTAMP)
-PARTITION BY RANGE COLUMNS(d)
-(PARTITION p0 VALUES LESS THAN ('2000-01-01'),
-PARTITION p1 VALUES LESS THAN ('2040-01-01'));
-ERROR HY000: Field 'd' is of a not allowed type for this type of partitioning
-CREATE TABLE t1 (d BIT(1))
-PARTITION BY RANGE COLUMNS(d)
-(PARTITION p0 VALUES LESS THAN (0),
-PARTITION p1 VALUES LESS THAN (1));
-ERROR HY000: Field 'd' is of a not allowed type for this type of partitioning
-CREATE TABLE t1 (d ENUM("YES","NO"))
-PARTITION BY RANGE COLUMNS(d)
-(PARTITION p0 VALUES LESS THAN ("NO"),
-PARTITION p1 VALUES LESS THAN (MAXVALUE));
-ERROR HY000: Field 'd' is of a not allowed type for this type of partitioning
-CREATE TABLE t1 (d SET("Car","MC"))
-PARTITION BY RANGE COLUMNS(d)
-(PARTITION p0 VALUES LESS THAN ("MC"),
-PARTITION p1 VALUES LESS THAN (MAXVALUE));
-ERROR HY000: Field 'd' is of a not allowed type for this type of partitioning
-create table t1 (a int, b int)
-partition by range columns (a,b)
-( partition p0 values less than (maxvalue, 10),
-partition p1 values less than (maxvalue, maxvalue));
-ERROR HY000: VALUES LESS THAN value must be strictly increasing for each partition
-create table t1 (a int, b int, c int)
-partition by range columns (a,b,c)
-( partition p0 values less than (1, maxvalue, 10),
-partition p1 values less than (1, maxvalue, maxvalue));
-ERROR HY000: VALUES LESS THAN value must be strictly increasing for each partition
-create table t1 (a varchar(5) character set ucs2 collate ucs2_bin)
-partition by range columns (a)
-(partition p0 values less than (0x0041));
-insert into t1 values (0x00410000);
-select hex(a) from t1 where a like 'A_';
-hex(a)
-00410000
-explain partitions select hex(a) from t1 where a like 'A_';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-alter table t1 remove partitioning;
-select hex(a) from t1 where a like 'A_';
-hex(a)
-00410000
-create index a on t1 (a);
-select hex(a) from t1 where a like 'A_';
-hex(a)
-00410000
-insert into t1 values ('A_');
-select hex(a) from t1;
-hex(a)
-00410000
-0041005F
-drop table t1;
-create table t1 (a varchar(1) character set latin1 collate latin1_general_ci)
-partition by range columns(a)
-( partition p0 values less than ('a'),
-partition p1 values less than ('b'),
-partition p2 values less than ('c'),
-partition p3 values less than ('d'));
-insert into t1 values ('A'),('a'),('B'),('b'),('C'),('c');
-select * from t1 where a > 'B' collate latin1_bin;
-a
-a
-b
-C
-c
-select * from t1 where a <> 'B' collate latin1_bin;
-a
-A
-a
-b
-C
-c
-alter table t1 remove partitioning;
-select * from t1 where a > 'B' collate latin1_bin;
-a
-a
-b
-C
-c
-select * from t1 where a <> 'B' collate latin1_bin;
-a
-A
-a
-b
-C
-c
-drop table t1;
-create table t1 (a varchar(2) character set latin1,
-b varchar(2) character set latin1)
-partition by list columns(a,b)
-(partition p0 values in (('a','a')));
-insert into t1 values ('A','A');
-select * from t1 where b <> 'a' collate latin1_bin AND
-a = 'A' collate latin1_bin;
-a b
-A A
-alter table t1 remove partitioning;
-select * from t1 where b <> 'a' collate latin1_bin AND
-a = 'A' collate latin1_bin;
-a b
-A A
-drop table t1;
-create table t1 (a varchar(5))
-partition by list columns(a)
-( partition p0 values in ('\''),
- partition p1 values in ('\\'),
- partition p2 values in ('\0'));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`)
-(PARTITION `p0` VALUES IN ('''') ENGINE = MyISAM,
- PARTITION `p1` VALUES IN ('\\') ENGINE = MyISAM,
- PARTITION `p2` VALUES IN ('\0') ENGINE = MyISAM)
-drop table t1;
-set @@sql_mode=allow_invalid_dates;
-create table t1 (a char, b char, c date)
-partition by range columns (a,b,c)
-( partition p0 values less than (0,0,to_days('3000-11-31')));
-ERROR HY000: Partition column values of incorrect type
-create table t1 (a char, b char, c date)
-partition by range columns (a,b,c)
-( partition p0 values less than (0,0,'3000-11-31'));
-ERROR HY000: Partition column values of incorrect type
-set @@sql_mode='';
-create table t1 (a int, b char(10), c varchar(25), d datetime)
-partition by range columns(a,b,c,d)
-subpartition by hash (to_seconds(d))
-subpartitions 4
-( partition p0 values less than (1, 0, MAXVALUE, '1900-01-01'),
-partition p1 values less than (1, 'a', MAXVALUE, '1999-01-01'),
-partition p2 values less than (1, 'a', MAXVALUE, MAXVALUE),
-partition p3 values less than (1, MAXVALUE, MAXVALUE, MAXVALUE));
-ERROR HY000: Partition column values of incorrect type
-create table t1 (a int, b char(10), c varchar(25), d datetime)
-partition by range columns(a,b,c,d)
-subpartition by hash (to_seconds(d))
-subpartitions 4
-( partition p0 values less than (1, '0', MAXVALUE, '1900-01-01'),
-partition p1 values less than (1, 'a', MAXVALUE, '1999-01-01'),
-partition p2 values less than (1, 'b', MAXVALUE, MAXVALUE),
-partition p3 values less than (1, MAXVALUE, MAXVALUE, MAXVALUE));
-select partition_method, partition_expression, partition_description
-from information_schema.partitions where table_name = "t1";
-partition_method partition_expression partition_description
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,'0',MAXVALUE,'1900-01-01'
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,'0',MAXVALUE,'1900-01-01'
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,'0',MAXVALUE,'1900-01-01'
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,'0',MAXVALUE,'1900-01-01'
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,'a',MAXVALUE,'1999-01-01'
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,'a',MAXVALUE,'1999-01-01'
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,'a',MAXVALUE,'1999-01-01'
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,'a',MAXVALUE,'1999-01-01'
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,'b',MAXVALUE,MAXVALUE
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,'b',MAXVALUE,MAXVALUE
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,'b',MAXVALUE,MAXVALUE
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,'b',MAXVALUE,MAXVALUE
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,MAXVALUE,MAXVALUE,MAXVALUE
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,MAXVALUE,MAXVALUE,MAXVALUE
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,MAXVALUE,MAXVALUE,MAXVALUE
-RANGE COLUMNS `a`,`b`,`c`,`d` 1,MAXVALUE,MAXVALUE,MAXVALUE
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` char(10) DEFAULT NULL,
- `c` varchar(25) DEFAULT NULL,
- `d` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE COLUMNS(`a`,`b`,`c`,`d`)
-SUBPARTITION BY HASH (to_seconds(`d`))
-SUBPARTITIONS 4
-(PARTITION `p0` VALUES LESS THAN (1,'0',MAXVALUE,'1900-01-01') ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN (1,'a',MAXVALUE,'1999-01-01') ENGINE = MyISAM,
- PARTITION `p2` VALUES LESS THAN (1,'b',MAXVALUE,MAXVALUE) ENGINE = MyISAM,
- PARTITION `p3` VALUES LESS THAN (1,MAXVALUE,MAXVALUE,MAXVALUE) ENGINE = MyISAM)
-drop table t1;
-create table t1 (a int, b int)
-partition by range columns (a,b)
-(partition p0 values less than (NULL, maxvalue));
-ERROR HY000: Not allowed to use NULL value in VALUES LESS THAN
-create table t1 (a int, b int)
-partition by list columns(a,b)
-( partition p0 values in ((maxvalue, 0)));
-Got one of the listed errors
-create table t1 (a int, b int)
-partition by list columns (a,b)
-( partition p0 values in ((0,0)));
-alter table t1 add partition
-(partition p1 values in (maxvalue, maxvalue));
-Got one of the listed errors
-drop table t1;
-create table t1 (a int, b int)
-partition by key (a,a);
-ERROR HY000: Duplicate partition field name 'a'
-create table t1 (a int, b int)
-partition by list columns(a,a)
-( partition p values in ((1,1)));
-ERROR HY000: Duplicate partition field name 'a'
-create table t1 (a int signed)
-partition by list (a)
-( partition p0 values in (1, 3, 5, 7, 9, NULL),
-partition p1 values in (2, 4, 6, 8, 0));
-insert into t1 values (NULL),(0),(1),(2),(2),(4),(4),(4),(8),(8);
-select * from t1 where NULL <= a;
-a
-select * from t1 where a is null;
-a
-NULL
-explain partitions select * from t1 where a is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 2 Using where
-select * from t1 where a <= 1;
-a
-1
-0
-drop table t1;
-create table t1 (a int signed)
-partition by list columns(a)
-( partition p0 values in (1, 3, 5, 7, 9, NULL),
-partition p1 values in (2, 4, 6, 8, 0));
-insert into t1 values (NULL),(0),(1),(2),(2),(4),(4),(4),(8),(8);
-select * from t1 where a <= NULL;
-a
-select * from t1 where a is null;
-a
-NULL
-explain partitions select * from t1 where a is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 2 Using where
-select * from t1 where a <= 1;
-a
-1
-0
-drop table t1;
-create table t1 (a int, b int)
-partition by list columns(a,b)
-( partition p0 values in ((1, NULL), (2, NULL), (NULL, NULL)),
-partition p1 values in ((1,1), (2,2)),
-partition p2 values in ((3, NULL), (NULL, 1)));
-select partition_method, partition_expression, partition_description
-from information_schema.partitions where table_name = "t1";
-partition_method partition_expression partition_description
-LIST COLUMNS `a`,`b` (1,NULL),(2,NULL),(NULL,NULL)
-LIST COLUMNS `a`,`b` (1,1),(2,2)
-LIST COLUMNS `a`,`b` (3,NULL),(NULL,1)
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`,`b`)
-(PARTITION `p0` VALUES IN ((1,NULL),(2,NULL),(NULL,NULL)) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN ((1,1),(2,2)) ENGINE = MyISAM,
- PARTITION `p2` VALUES IN ((3,NULL),(NULL,1)) ENGINE = MyISAM)
-insert into t1 values (3, NULL);
-insert into t1 values (NULL, 1);
-insert into t1 values (NULL, NULL);
-insert into t1 values (1, NULL);
-insert into t1 values (2, NULL);
-insert into t1 values (1,1);
-insert into t1 values (2,2);
-select * from t1 where a = 1;
-a b
-1 NULL
-1 1
-select * from t1 where a = 2;
-a b
-2 NULL
-2 2
-select * from t1 where a > 8;
-a b
-select * from t1 where a not between 8 and 8;
-a b
-1 NULL
-2 NULL
-1 1
-2 2
-3 NULL
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`,`b`)
-(PARTITION `p0` VALUES IN ((1,NULL),(2,NULL),(NULL,NULL)) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN ((1,1),(2,2)) ENGINE = MyISAM,
- PARTITION `p2` VALUES IN ((3,NULL),(NULL,1)) ENGINE = MyISAM)
-drop table t1;
-create table t1 (a int)
-partition by list (a)
-( partition p0 values in (1),
-partition p1 values in (1));
-ERROR HY000: Multiple definition of same constant in list partitioning
-create table t1 (a int)
-partition by list (a)
-( partition p0 values in (2, 1),
-partition p1 values in (4, NULL, 3));
-select partition_method, partition_expression, partition_description
-from information_schema.partitions where table_name = "t1";
-partition_method partition_expression partition_description
-LIST `a` 2,1
-LIST `a` NULL,4,3
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p0` VALUES IN (2,1) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN (NULL,4,3) ENGINE = MyISAM)
-insert into t1 values (1);
-insert into t1 values (2);
-insert into t1 values (3);
-insert into t1 values (4);
-insert into t1 values (NULL);
-insert into t1 values (5);
-ERROR HY000: Table has no partition for value 5
-drop table t1;
-create table t1 (a int)
-partition by list columns(a)
-( partition p0 values in (2, 1),
-partition p1 values in ((4), (NULL), (3)));
-ERROR 42000: Row expressions in VALUES IN only allowed for multi-field column partitioning near '))' at line 4
-create table t1 (a int)
-partition by list columns(a)
-( partition p0 values in (2, 1),
-partition p1 values in (4, NULL, 3));
-select partition_method, partition_expression, partition_description
-from information_schema.partitions where table_name = "t1";
-partition_method partition_expression partition_description
-LIST COLUMNS `a` 2,1
-LIST COLUMNS `a` 4,NULL,3
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`)
-(PARTITION `p0` VALUES IN (2,1) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN (4,NULL,3) ENGINE = MyISAM)
-insert into t1 values (1);
-insert into t1 values (2);
-insert into t1 values (3);
-insert into t1 values (4);
-insert into t1 values (NULL);
-insert into t1 values (5);
-ERROR HY000: Table has no partition for value from column_list
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`)
-(PARTITION `p0` VALUES IN (2,1) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN (4,NULL,3) ENGINE = MyISAM)
-drop table t1;
-create table t1 (a int, b char(10), c varchar(5), d int)
-partition by range columns(a,b,c)
-subpartition by key (c,d)
-subpartitions 3
-( partition p0 values less than (1,'abc','abc'),
-partition p1 values less than (2,'abc','abc'),
-partition p2 values less than (3,'abc','abc'),
-partition p3 values less than (4,'abc','abc'));
-select partition_method, partition_expression, partition_description
-from information_schema.partitions where table_name = "t1";
-partition_method partition_expression partition_description
-RANGE COLUMNS `a`,`b`,`c` 1,'abc','abc'
-RANGE COLUMNS `a`,`b`,`c` 1,'abc','abc'
-RANGE COLUMNS `a`,`b`,`c` 1,'abc','abc'
-RANGE COLUMNS `a`,`b`,`c` 2,'abc','abc'
-RANGE COLUMNS `a`,`b`,`c` 2,'abc','abc'
-RANGE COLUMNS `a`,`b`,`c` 2,'abc','abc'
-RANGE COLUMNS `a`,`b`,`c` 3,'abc','abc'
-RANGE COLUMNS `a`,`b`,`c` 3,'abc','abc'
-RANGE COLUMNS `a`,`b`,`c` 3,'abc','abc'
-RANGE COLUMNS `a`,`b`,`c` 4,'abc','abc'
-RANGE COLUMNS `a`,`b`,`c` 4,'abc','abc'
-RANGE COLUMNS `a`,`b`,`c` 4,'abc','abc'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` char(10) DEFAULT NULL,
- `c` varchar(5) DEFAULT NULL,
- `d` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE COLUMNS(`a`,`b`,`c`)
-SUBPARTITION BY KEY (`c`,`d`)
-SUBPARTITIONS 3
-(PARTITION `p0` VALUES LESS THAN (1,'abc','abc') ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN (2,'abc','abc') ENGINE = MyISAM,
- PARTITION `p2` VALUES LESS THAN (3,'abc','abc') ENGINE = MyISAM,
- PARTITION `p3` VALUES LESS THAN (4,'abc','abc') ENGINE = MyISAM)
-insert into t1 values (1,'a','b',1),(2,'a','b',2),(3,'a','b',3);
-insert into t1 values (1,'b','c',1),(2,'b','c',2),(3,'b','c',3);
-insert into t1 values (1,'c','d',1),(2,'c','d',2),(3,'c','d',3);
-insert into t1 values (1,'d','e',1),(2,'d','e',2),(3,'d','e',3);
-select * from t1 where (a = 1 AND b < 'd' AND (c = 'b' OR (c = 'c' AND d = 1)) OR
-(a = 1 AND b >= 'a' AND (c = 'c' OR (c = 'd' AND d = 2))));
-a b c d
-1 a b 1
-1 b c 1
-drop table t1;
-create table t1 (a int, b varchar(2), c int)
-partition by range columns (a, b, c)
-(partition p0 values less than (1, 'A', 1),
-partition p1 values less than (1, 'B', 1));
-select partition_method, partition_expression, partition_description
-from information_schema.partitions where table_name = "t1";
-partition_method partition_expression partition_description
-RANGE COLUMNS `a`,`b`,`c` 1,'A',1
-RANGE COLUMNS `a`,`b`,`c` 1,'B',1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` varchar(2) DEFAULT NULL,
- `c` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE COLUMNS(`a`,`b`,`c`)
-(PARTITION `p0` VALUES LESS THAN (1,'A',1) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN (1,'B',1) ENGINE = MyISAM)
-insert into t1 values (1, 'A', 1);
-explain partitions select * from t1 where a = 1 AND b <= 'A' and c = 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 system NULL NULL NULL NULL 1
-select * from t1 where a = 1 AND b <= 'A' and c = 1;
-a b c
-1 A 1
-drop table t1;
-create table t1 (a char, b char, c char)
-partition by list columns(a)
-( partition p0 values in ('a'));
-insert into t1 (a) values ('a');
-select * from t1 where a = 'a';
-a b c
-a NULL NULL
-drop table t1;
-create table t1 (d time)
-partition by range columns(d)
-( partition p0 values less than ('2000-01-01'),
-partition p1 values less than ('2040-01-01'));
-ERROR HY000: Partition column values of incorrect type
-create table t1 (a int, b int)
-partition by range columns(a,b)
-(partition p0 values less than (maxvalue, 10));
-drop table t1;
-create table t1 (d date)
-partition by range columns(d)
-( partition p0 values less than ('2000-01-01'),
-partition p1 values less than ('2009-01-01'));
-drop table t1;
-create table t1 (d date)
-partition by range columns(d)
-( partition p0 values less than ('1999-01-01'),
-partition p1 values less than ('2000-01-01'));
-drop table t1;
-create table t1 (d date)
-partition by range columns(d)
-( partition p0 values less than ('2000-01-01'),
-partition p1 values less than ('3000-01-01'));
-drop table t1;
-create table t1 (a int, b int)
-partition by range columns(a,b)
-(partition p2 values less than (99,99),
-partition p1 values less than (99,999));
-insert into t1 values (99,998);
-select * from t1 where b = 998;
-a b
-99 998
-drop table t1;
-create table t1 as select to_seconds(null) as to_seconds;
-select data_type from information_schema.columns
-where table_schema='test' and column_name='to_seconds';
-data_type
-bigint
-drop table t1;
-create table t1 (a int, b int)
-partition by list columns(a,b)
-(partition p0 values in ((maxvalue,maxvalue)));
-ERROR 42000: Cannot use MAXVALUE as value in VALUES IN near 'maxvalue,maxvalue)))' at line 3
-create table t1 (a int, b int)
-partition by range columns(a,b)
-(partition p0 values less than (maxvalue,maxvalue));
-drop table t1;
-create table t1 (a int)
-partition by list columns(a)
-(partition p0 values in (0));
-select partition_method from information_schema.partitions where table_name='t1';
-partition_method
-LIST COLUMNS
-drop table t1;
-create table t1 (a char(6))
-partition by range columns(a)
-(partition p0 values less than ('H23456'),
-partition p1 values less than ('M23456'));
-insert into t1 values ('F23456');
-select * from t1;
-a
-F23456
-drop table t1;
-create table t1 (a char(6))
-partition by range columns(a)
-(partition p0 values less than (H23456),
-partition p1 values less than (M23456));
-ERROR 42S22: Unknown column 'H23456' in 'field list'
-create table t1 (a char(6))
-partition by range columns(a)
-(partition p0 values less than (23456),
-partition p1 values less than (23456));
-ERROR HY000: Partition column values of incorrect type
-create table t1 (a int, b int)
-partition by range columns(a,b)
-(partition p0 values less than (10));
-ERROR 42000: Inconsistency in usage of column lists for partitioning near '))' at line 3
-create table t1 (a int, b int)
-partition by range columns(a,b)
-(partition p0 values less than (1,1,1);
-ERROR HY000: Inconsistency in usage of column lists for partitioning
-create table t1 (a int, b int)
-partition by range columns(a,b)
-(partition p0 values less than (1, 0),
-partition p1 values less than (2, maxvalue),
-partition p2 values less than (3, 3),
-partition p3 values less than (10, maxvalue));
-insert into t1 values (11,0);
-ERROR HY000: Table has no partition for value from column_list
-insert into t1 values (0,1),(1,1),(2,1),(3,1),(3,4),(4,9),(9,1);
-select * from t1;
-a b
-0 1
-1 1
-2 1
-3 1
-3 4
-4 9
-9 1
-alter table t1
-partition by range columns(b,a)
-(partition p0 values less than (1,2),
-partition p1 values less than (3,3),
-partition p2 values less than (9,5));
-explain partitions select * from t1 where b < 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 5 Using where
-select * from t1 where b < 2;
-a b
-0 1
-1 1
-2 1
-3 1
-9 1
-explain partitions select * from t1 where b < 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2 ALL NULL NULL NULL NULL 7 Using where
-select * from t1 where b < 4;
-a b
-0 1
-1 1
-2 1
-3 1
-9 1
-alter table t1 reorganize partition p1 into
-(partition p11 values less than (2,2),
-partition p12 values less than (3,3));
-alter table t1 reorganize partition p0 into
-(partition p01 values less than (0,3),
-partition p02 values less than (1,1));
-ERROR HY000: Reorganize of range partitions cannot change total ranges except for last partition where it can extend the range
-alter table t1 reorganize partition p2 into
-(partition p2 values less than(9,6,1));
-ERROR HY000: Inconsistency in usage of column lists for partitioning
-alter table t1 reorganize partition p2 into
-(partition p2 values less than (10));
-ERROR HY000: Inconsistency in usage of column lists for partitioning
-alter table t1 reorganize partition p2 into
-(partition p21 values less than (4,7),
-partition p22 values less than (9,5));
-explain partitions select * from t1 where b < 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p11,p12,p21 ALL NULL NULL NULL NULL 6 Using where
-select * from t1 where b < 4;
-a b
-0 1
-1 1
-2 1
-3 1
-9 1
-drop table t1;
-create table t1 (a int, b int)
-partition by list columns(a,b)
-subpartition by hash (b)
-subpartitions 2
-(partition p0 values in ((0,0), (1,1)),
-partition p1 values in ((1000,1000)));
-insert into t1 values (1000,1000);
-drop table t1;
-create table t1 (a char, b char, c char)
-partition by range columns(a,b,c)
-( partition p0 values less than ('a','b','c'));
-alter table t1 add partition
-(partition p1 values less than ('b','c','d'));
-drop table t1;
diff --git a/mysql-test/r/partition_column_prune.result b/mysql-test/r/partition_column_prune.result
deleted file mode 100644
index 95b45f4dea5..00000000000
--- a/mysql-test/r/partition_column_prune.result
+++ /dev/null
@@ -1,66 +0,0 @@
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
-create table t1 (a char, b char, c char)
-partition by range columns(a,b,c)
-( partition p0 values less than ('a','b','c'));
-insert into t1 values ('a', NULL, 'd');
-explain partitions select * from t1 where a = 'a' AND c = 'd';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-select * from t1 where a = 'a' AND c = 'd';
-a b c
-a NULL d
-drop table t1;
-create table t1 (a int not null) partition by range columns(a) (
-partition p0 values less than (10),
-partition p1 values less than (20),
-partition p2 values less than (30),
-partition p3 values less than (40),
-partition p4 values less than (50),
-partition p5 values less than (60),
-partition p6 values less than (70)
-);
-insert into t1 values (5),(15),(25),(35),(45),(55),(65);
-insert into t1 values (5),(15),(25),(35),(45),(55),(65);
-create table t2 (a int not null) partition by range(a) (
-partition p0 values less than (10),
-partition p1 values less than (20),
-partition p2 values less than (30),
-partition p3 values less than (40),
-partition p4 values less than (50),
-partition p5 values less than (60),
-partition p6 values less than (70)
-);
-insert into t2 values (5),(15),(25),(35),(45),(55),(65);
-insert into t2 values (5),(15),(25),(35),(45),(55),(65);
-explain partitions select * from t1 where a > 35 and a < 45;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p3,p4 ALL NULL NULL NULL NULL 4 Using where
-explain partitions select * from t2 where a > 35 and a < 45;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p3,p4 ALL NULL NULL NULL NULL 4 Using where
-drop table t1, t2;
-create table t1 (a int not null, b int not null )
-partition by range columns(a,b) (
-partition p01 values less than (2,10),
-partition p02 values less than (2,20),
-partition p03 values less than (2,30),
-partition p11 values less than (4,10),
-partition p12 values less than (4,20),
-partition p13 values less than (4,30),
-partition p21 values less than (6,10),
-partition p22 values less than (6,20),
-partition p23 values less than (6,30)
-);
-insert into t1 values (2,5), (2,15), (2,25),
-(4,5), (4,15), (4,25), (6,5), (6,15), (6,25);
-insert into t1 select * from t1;
-explain partitions select * from t1 where a=2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p01,p02,p03,p11 ALL NULL NULL NULL NULL 8 Using where
-explain partitions select * from t1 where a=4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p11,p12,p13,p21 ALL NULL NULL NULL NULL 8 Using where
-explain partitions select * from t1 where a=2 and b < 22;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p01,p02,p03 ALL NULL NULL NULL NULL 6 Using where
-drop table t1;
diff --git a/mysql-test/r/partition_csv.result b/mysql-test/r/partition_csv.result
deleted file mode 100644
index 836c49682b2..00000000000
--- a/mysql-test/r/partition_csv.result
+++ /dev/null
@@ -1,58 +0,0 @@
-call mtr.add_suppression("Failed to write to mysql.general_log");
-drop table if exists t1;
-create table t1 (a int)
-engine = csv
-partition by list (a)
-(partition p0 values in (null));
-ERROR HY000: Engine cannot be used in partitioned tables
-USE mysql;
-TRUNCATE TABLE general_log;
-SET @old_general_log_state = @@global.general_log;
-SET GLOBAL general_log = 0;
-ALTER TABLE general_log ENGINE = MyISAM;
-ALTER TABLE general_log PARTITION BY RANGE (TO_DAYS(event_time))
-(PARTITION p0 VALUES LESS THAN (733144), PARTITION p1 VALUES LESS THAN (3000000));
-ERROR HY000: Incorrect usage of PARTITION and log table
-ALTER TABLE general_log ENGINE = CSV;
-SET GLOBAL general_log = @old_general_log_state;
-use test;
-#
-# Bug#40281: partitioning the general log table crashes the server
-#
-# set up partitioned log, and switch to it
-USE mysql;
-SET @old_general_log_state = @@global.general_log;
-SET GLOBAL general_log = 0;
-CREATE TABLE gl_partitioned LIKE general_log;
-ALTER TABLE gl_partitioned ENGINE=myisam;
-ALTER TABLE gl_partitioned PARTITION BY HASH (thread_id) PARTITIONS 10;
-ALTER TABLE general_log RENAME TO gl_nonpartitioned;
-ALTER TABLE gl_partitioned RENAME TO general_log;
-SELECT @@global.log_output INTO @old_glo;
-SET GLOBAL log_output='table';
-SET GLOBAL general_log =1;
-# do some things to be logged to partitioned log, should fail
-USE /* 1 */ test;
-CREATE TABLE t1 (i INT);
-connect con1,localhost,root,,;
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t1;
-i
-1
-disconnect con1;
-connection default;
-USE mysql;
-SET GLOBAL general_log =0;
-ALTER TABLE general_log RENAME TO gl_partitioned;
-ALTER TABLE gl_nonpartitioned RENAME TO general_log;
-# show whether we actually logged anything (no) to general_log
-SELECT COUNT(argument) FROM gl_partitioned;
-COUNT(argument)
-0
-DROP TABLE gl_partitioned;
-SET GLOBAL log_output = @old_glo;
-SET GLOBAL general_log = 1;
-USE /* 2 */ test;
-DROP TABLE t1;
-SET GLOBAL general_log = @old_general_log_state;
-End of 5.1 tests
diff --git a/mysql-test/r/partition_datatype.result b/mysql-test/r/partition_datatype.result
deleted file mode 100644
index 2e518c194f0..00000000000
--- a/mysql-test/r/partition_datatype.result
+++ /dev/null
@@ -1,1353 +0,0 @@
-drop table if exists t1;
-# test with not null
-create table t1 (a bit not null) partition by key (a);
-insert into t1 values (b'1');
-select hex(a) from t1 where a = b'1';
-hex(a)
-1
-drop table t1;
-create table t1 (a tinyint not null) partition by key (a);
-insert into t1 values (2);
-select * from t1 where a = 2;
-a
-2
-drop table t1;
-create table t1 (a smallint not null) partition by key (a);
-insert into t1 values (2);
-select * from t1 where a = 2;
-a
-2
-drop table t1;
-create table t1 (a mediumint not null) partition by key (a);
-insert into t1 values (2);
-select * from t1 where a = 2;
-a
-2
-drop table t1;
-create table t1 (a int not null) partition by key (a);
-insert into t1 values (2);
-select * from t1 where a = 2;
-a
-2
-drop table t1;
-create table t1 (a bigint not null) partition by key (a);
-insert into t1 values (2);
-select * from t1 where a = 2;
-a
-2
-drop table t1;
-create table t1 (a float not null) partition by key (a);
-insert into t1 values (0.5);
-select * from t1 where a = 0.5;
-a
-0.5
-drop table t1;
-create table t1 (a double not null) partition by key (a);
-insert into t1 values (0.5);
-select * from t1 where a = 0.5;
-a
-0.5
-drop table t1;
-create table t1 (a decimal(4,2) not null) partition by key (a);
-insert into t1 values (2.1);
-select * from t1 where a = 2.1;
-a
-2.10
-drop table t1;
-create table t1 (a date not null) partition by key (a);
-insert into t1 values ('2001-01-01');
-select * from t1 where a = '2001-01-01';
-a
-2001-01-01
-drop table t1;
-create table t1 (a datetime not null) partition by key (a);
-insert into t1 values ('2001-01-01 01:02:03');
-select * from t1 where a = '2001-01-01 01:02:03';
-a
-2001-01-01 01:02:03
-drop table t1;
-create table t1 (a timestamp not null) partition by key (a);
-insert into t1 values ('2001-01-01 01:02:03');
-select * from t1 where a = '2001-01-01 01:02:03';
-a
-2001-01-01 01:02:03
-drop table t1;
-create table t1 (a time not null) partition by key (a);
-insert into t1 values ('01:02:03');
-select * from t1 where a = '01:02:03';
-a
-01:02:03
-drop table t1;
-create table t1 (a year not null) partition by key (a);
-insert into t1 values ('2001');
-select * from t1 where a = '2001';
-a
-2001
-drop table t1;
-create table t1 (a varchar(10) character set utf8 not null) partition by key (a);
-insert into t1 values ('abc');
-select * from t1 where a = 'abc';
-a
-abc
-drop table t1;
-create table t1 (a varchar(300) character set utf8 not null) partition by key (a);
-insert into t1 values ('abc');
-select * from t1 where a = 'abc';
-a
-abc
-drop table t1;
-create table t1 (a varchar(10) character set latin1 not null) partition by key (a);
-insert into t1 values ('abc');
-select * from t1 where a = 'abc';
-a
-abc
-drop table t1;
-create table t1 (a varchar(300) character set latin1 not null) partition by key (a);
-insert into t1 values ('abc');
-select * from t1 where a = 'abc';
-a
-abc
-drop table t1;
-create table t1 (a char(10) character set utf8 not null) partition by key (a);
-insert into t1 values ('abc');
-select * from t1 where a = 'abc';
-a
-abc
-drop table t1;
-create table t1 (a char(10) character set latin1 not null) partition by key (a);
-insert into t1 values ('abc');
-select * from t1 where a = 'abc';
-a
-abc
-drop table t1;
-create table t1 (a enum('y','n') not null) partition by key (a);
-insert into t1 values ('y');
-select * from t1 where a = 'y';
-a
-y
-drop table t1;
-create table t1 (a set('y','n') not null) partition by key (a);
-insert into t1 values ('y');
-select * from t1 where a = 'y';
-a
-y
-drop table t1;
-# test with null allowed
-create table t1 (a bit) partition by key (a);
-insert into t1 values (b'1');
-insert into t1 values (NULL);
-select hex(a) from t1 where a = b'1';
-hex(a)
-1
-select hex(a) from t1 where a is NULL;
-hex(a)
-NULL
-select hex(a) from t1 order by a;
-hex(a)
-NULL
-1
-drop table t1;
-create table t1 (a tinyint) partition by key (a);
-insert into t1 values (2);
-select * from t1 where a = 2;
-a
-2
-drop table t1;
-create table t1 (a smallint) partition by key (a);
-insert into t1 values (2);
-select * from t1 where a = 2;
-a
-2
-drop table t1;
-create table t1 (a mediumint) partition by key (a);
-insert into t1 values (2);
-select * from t1 where a = 2;
-a
-2
-drop table t1;
-create table t1 (a int) partition by key (a);
-insert into t1 values (2);
-select * from t1 where a = 2;
-a
-2
-drop table t1;
-create table t1 (a bigint) partition by key (a);
-insert into t1 values (2);
-select * from t1 where a = 2;
-a
-2
-drop table t1;
-create table t1 (a float) partition by key (a);
-insert into t1 values (0.5);
-select * from t1 where a = 0.5;
-a
-0.5
-drop table t1;
-create table t1 (a double) partition by key (a);
-insert into t1 values (0.5);
-select * from t1 where a = 0.5;
-a
-0.5
-drop table t1;
-create table t1 (a decimal(4,2)) partition by key (a);
-insert into t1 values (2.1);
-select * from t1 where a = 2.1;
-a
-2.10
-drop table t1;
-create table t1 (a date) partition by key (a);
-insert into t1 values ('2001-01-01');
-select * from t1 where a = '2001-01-01';
-a
-2001-01-01
-drop table t1;
-create table t1 (a datetime) partition by key (a);
-insert into t1 values ('2001-01-01 01:02:03');
-select * from t1 where a = '2001-01-01 01:02:03';
-a
-2001-01-01 01:02:03
-drop table t1;
-create table t1 (a timestamp null) partition by key (a);
-insert into t1 values ('2001-01-01 01:02:03');
-select * from t1 where a = '2001-01-01 01:02:03';
-a
-2001-01-01 01:02:03
-drop table t1;
-create table t1 (a time) partition by key (a);
-insert into t1 values ('01:02:03');
-select * from t1 where a = '01:02:03';
-a
-01:02:03
-drop table t1;
-create table t1 (a year) partition by key (a);
-insert into t1 values ('2001');
-select * from t1 where a = '2001';
-a
-2001
-drop table t1;
-create table t1 (a varchar(10) character set utf8) partition by key (a);
-insert into t1 values ('abc');
-select * from t1 where a = 'abc';
-a
-abc
-drop table t1;
-create table t1 (a varchar(300) character set utf8) partition by key (a);
-insert into t1 values ('abc');
-select * from t1 where a = 'abc';
-a
-abc
-drop table t1;
-create table t1 (a varchar(10) character set latin1) partition by key (a);
-insert into t1 values ('abc');
-select * from t1 where a = 'abc';
-a
-abc
-drop table t1;
-create table t1 (a varchar(300) character set latin1) partition by key (a);
-insert into t1 values ('abc');
-select * from t1 where a = 'abc';
-a
-abc
-drop table t1;
-create table t1 (a char(10) character set utf8) partition by key (a);
-insert into t1 values ('abc');
-select * from t1 where a = 'abc';
-a
-abc
-drop table t1;
-create table t1 (a char(10) character set latin1) partition by key (a);
-insert into t1 values ('abc');
-select * from t1 where a = 'abc';
-a
-abc
-drop table t1;
-create table t1 (a enum('y','n')) partition by key (a);
-insert into t1 values ('y');
-select * from t1 where a = 'y';
-a
-y
-drop table t1;
-create table t1 (a set('y','n')) partition by key (a);
-insert into t1 values ('y');
-select * from t1 where a = 'y';
-a
-y
-drop table t1;
-create table t1 (a varchar(3068)) partition by key (a);
-insert into t1 values ('bbbb');
-insert into t1 values ('aaaa');
-select * from t1 where a = 'aaaa';
-a
-aaaa
-select * from t1 where a like 'aaa%';
-a
-aaaa
-select * from t1 where a = 'bbbb';
-a
-bbbb
-drop table t1;
-create table t1 (a varchar(3069)) partition by key (a);
-insert into t1 values ('bbbb');
-insert into t1 values ('aaaa');
-select * from t1 where a = 'aaaa';
-a
-aaaa
-select * from t1 where a like 'aaa%';
-a
-aaaa
-select * from t1 where a = 'bbbb';
-a
-bbbb
-drop table t1;
-create table t1 (a varchar(3070) not null) partition by key (a);
-insert into t1 values ('bbbb');
-insert into t1 values ('aaaa');
-select * from t1 where a = 'aaaa';
-a
-aaaa
-select * from t1 where a like 'aaa%';
-a
-aaaa
-select * from t1 where a = 'bbbb';
-a
-bbbb
-drop table t1;
-set sql_mode='';
-create table t1 (a varchar(3070)) partition by key (a);
-ERROR HY000: The total length of the partitioning fields is too large
-create table t1 (a varchar(65532) not null) partition by key (a);
-ERROR HY000: The total length of the partitioning fields is too large
-create table t1 (a varchar(65533)) partition by key (a);
-ERROR HY000: A BLOB field is not allowed in partition function
-create table t1 (a varchar(65534) not null) partition by key (a);
-ERROR HY000: A BLOB field is not allowed in partition function
-create table t1 (a varchar(65535)) partition by key (a);
-ERROR HY000: A BLOB field is not allowed in partition function
-set sql_mode=default;
-create table t1 (a bit(27), primary key (a)) engine=myisam
-partition by hash (a)
-(partition p0, partition p1, partition p2);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bit(27) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY HASH (`a`)
-(PARTITION `p0` ENGINE = MyISAM,
- PARTITION `p1` ENGINE = MyISAM,
- PARTITION `p2` ENGINE = MyISAM)
-insert into t1 values (1),(4),(7),(10),(13),(16),(19),(22),(25),(28),(31),(34);
-select hex(a) from t1 where a = 7;
-hex(a)
-7
-drop table t1;
-#
-# Bug#28928: UNIX_TIMESTAMP() should be considered unary monotonic
-# by partition pruning
-SET @old_time_zone= @@session.time_zone;
-SET @@session.time_zone = 'UTC';
-# Using MyISAM to get stable values on TABLE_ROWS in I_S.PARTITIONS
-CREATE TABLE t1
-(a TIMESTAMP NULL,
-tz varchar(16))
-ENGINE = MyISAM;
-CREATE TABLE t2 LIKE t1;
-ALTER TABLE t2 PARTITION BY RANGE (UNIX_TIMESTAMP(a))
-(PARTITION `p0` VALUES LESS THAN (0),
-PARTITION `p-2000` VALUES LESS THAN (UNIX_TIMESTAMP(20000101)),
-PARTITION `p-2011-MSK` VALUES LESS THAN (UNIX_TIMESTAMP(20110326230000)),
-PARTITION `p-2011-MSD-1` VALUES LESS THAN (UNIX_TIMESTAMP(20111029220000)),
-PARTITION `p-2011-MSD-2` VALUES LESS THAN (UNIX_TIMESTAMP(20111029230000)),
-PARTITION `p-2012-MSK-1` VALUES LESS THAN (UNIX_TIMESTAMP(20111030000000)),
-PARTITION `p-2012-MSK-2` VALUES LESS THAN (UNIX_TIMESTAMP(20120324230000)),
-PARTITION `pEnd` VALUES LESS THAN (UNIX_TIMESTAMP(20380119031407)),
-PARTITION `pMax` VALUES LESS THAN MAXVALUE);
-# Test 'odd' values
-INSERT INTO t1 VALUES (NULL, 'UTC');
-INSERT INTO t1 VALUES ('0000-00-00 00:00:00', 'UTC');
-# Test invalid values
-INSERT IGNORE INTO t1 VALUES ('1901-01-01 00:00:00', 'UTCI');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-INSERT IGNORE INTO t1 VALUES ('1969-12-31 23:59:59', 'UTCI');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-INSERT IGNORE INTO t1 VALUES ('2038-01-19 03:14:08', 'UTCI');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-INSERT IGNORE INTO t1 VALUES ('1970-01-01 00:00:00', 'UTCI');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-# Test start range
-INSERT INTO t1 VALUES ('1970-01-01 00:00:01', 'UTC');
-INSERT INTO t1 VALUES ('1974-02-05 21:28:16', 'UTC');
-# Test end range
-INSERT INTO t1 VALUES ('2038-01-19 03:14:06', 'UTC');
-INSERT INTO t1 VALUES ('2038-01-19 03:14:07', 'UTC');
-# Test Daylight saving shift
-INSERT INTO t1 VALUES ('2011-03-26 22:59:59', 'UTC');
-INSERT INTO t1 VALUES ('2011-03-26 23:00:00', 'UTC');
-INSERT INTO t1 VALUES ('2011-03-26 23:00:01', 'UTC');
-INSERT INTO t1 VALUES ('2011-10-29 21:59:59', 'UTC');
-INSERT INTO t1 VALUES ('2011-10-29 22:00:00', 'UTC');
-INSERT INTO t1 VALUES ('2011-10-29 22:00:01', 'UTC');
-INSERT INTO t1 VALUES ('2011-10-29 22:59:59', 'UTC');
-INSERT INTO t1 VALUES ('2011-10-29 23:00:00', 'UTC');
-INSERT INTO t1 VALUES ('2011-10-29 23:00:01', 'UTC');
-INSERT INTO t1 VALUES ('2011-10-29 23:59:59', 'UTC');
-INSERT INTO t1 VALUES ('2011-10-30 00:00:00', 'UTC');
-INSERT INTO t1 VALUES ('2011-10-30 00:00:01', 'UTC');
-SET @@session.time_zone = 'Europe/Moscow';
-# Test 'odd' values
-INSERT INTO t1 VALUES (NULL, 'Moscow');
-INSERT INTO t1 VALUES ('0000-00-00 00:00:00', 'Moscow');
-# Test invalid values
-INSERT IGNORE INTO t1 VALUES ('0000-00-00 03:00:00', 'MoscowI');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-INSERT IGNORE INTO t1 VALUES ('1901-01-01 00:00:00', 'MoscowI');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-INSERT IGNORE INTO t1 VALUES ('1969-12-31 23:59:59', 'MoscowI');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-INSERT IGNORE INTO t1 VALUES ('1970-01-01 02:29:29', 'MoscowI');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-INSERT IGNORE INTO t1 VALUES ('2038-01-19 06:14:08', 'MoscowI');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-INSERT IGNORE INTO t1 VALUES ('1970-01-01 03:00:00', 'MoscowI');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-# values truncated to 03:00:00 due to daylight saving shift
-INSERT IGNORE INTO t1 VALUES ('2011-03-27 02:00:00', 'MoscowI');
-Warnings:
-Warning 1299 Invalid TIMESTAMP value in column 'a' at row 1
-INSERT IGNORE INTO t1 VALUES ('2011-03-27 02:00:01', 'MoscowI');
-Warnings:
-Warning 1299 Invalid TIMESTAMP value in column 'a' at row 1
-INSERT IGNORE INTO t1 VALUES ('2011-03-27 02:59:59', 'MoscowI');
-Warnings:
-Warning 1299 Invalid TIMESTAMP value in column 'a' at row 1
-# Test start range
-INSERT INTO t1 VALUES ('1970-01-01 03:00:01', 'Moscow');
-INSERT INTO t1 VALUES ('1974-02-05 21:28:16', 'Moscow');
-# Test end range
-INSERT INTO t1 VALUES ('2038-01-19 06:14:06', 'Moscow');
-INSERT INTO t1 VALUES ('2038-01-19 06:14:07', 'Moscow');
-# Test Daylight saving shift
-INSERT INTO t1 VALUES ('2011-03-27 01:59:59', 'Moscow');
-INSERT INTO t1 VALUES ('2011-03-27 03:00:00', 'Moscow');
-INSERT INTO t1 VALUES ('2011-03-27 03:00:01', 'Moscow');
-INSERT INTO t1 VALUES ('2011-10-30 01:59:59', 'Moscow');
-# All values between 02:00 and 02:59:59 will be interpretated as DST
-INSERT INTO t1 VALUES ('2011-10-30 02:00:00', 'MoscowD');
-INSERT INTO t1 VALUES ('2011-10-30 02:00:01', 'MoscowD');
-INSERT INTO t1 VALUES ('2011-10-30 02:59:59', 'MoscowD');
-INSERT INTO t1 VALUES ('2011-10-30 03:00:00', 'Moscow');
-INSERT INTO t1 VALUES ('2011-10-30 03:00:01', 'Moscow');
-SET @@session.time_zone = 'UTC';
-INSERT INTO t2 SELECT * FROM t1;
-SELECT PARTITION_NAME, TABLE_ROWS FROM INFORMATION_SCHEMA.PARTITIONS
-WHERE TABLE_NAME = 't2';
-PARTITION_NAME TABLE_ROWS
-p0 2
-p-2000 16
-p-2011-MSK 2
-p-2011-MSD-1 9
-p-2011-MSD-2 6
-p-2012-MSK-1 3
-p-2012-MSK-2 4
-pEnd 2
-pMax 2
-SELECT * FROM t1 ORDER BY a, tz;
-a tz
-NULL Moscow
-NULL UTC
-0000-00-00 00:00:00 Moscow
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 UTC
-0000-00-00 00:00:00 UTCI
-0000-00-00 00:00:00 UTCI
-0000-00-00 00:00:00 UTCI
-0000-00-00 00:00:00 UTCI
-1970-01-01 00:00:01 Moscow
-1970-01-01 00:00:01 UTC
-1974-02-05 18:28:16 Moscow
-1974-02-05 21:28:16 UTC
-2011-03-26 22:59:59 Moscow
-2011-03-26 22:59:59 UTC
-2011-03-26 23:00:00 Moscow
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 UTC
-2011-03-26 23:00:01 Moscow
-2011-03-26 23:00:01 UTC
-2011-10-29 21:59:59 Moscow
-2011-10-29 21:59:59 UTC
-2011-10-29 22:00:00 MoscowD
-2011-10-29 22:00:00 UTC
-2011-10-29 22:00:01 MoscowD
-2011-10-29 22:00:01 UTC
-2011-10-29 22:59:59 MoscowD
-2011-10-29 22:59:59 UTC
-2011-10-29 23:00:00 UTC
-2011-10-29 23:00:01 UTC
-2011-10-29 23:59:59 UTC
-2011-10-30 00:00:00 Moscow
-2011-10-30 00:00:00 UTC
-2011-10-30 00:00:01 Moscow
-2011-10-30 00:00:01 UTC
-2038-01-19 03:14:06 Moscow
-2038-01-19 03:14:06 UTC
-2038-01-19 03:14:07 Moscow
-2038-01-19 03:14:07 UTC
-SELECT * FROM t2 ORDER BY a, tz;
-a tz
-NULL Moscow
-NULL UTC
-0000-00-00 00:00:00 Moscow
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 UTC
-0000-00-00 00:00:00 UTCI
-0000-00-00 00:00:00 UTCI
-0000-00-00 00:00:00 UTCI
-0000-00-00 00:00:00 UTCI
-1970-01-01 00:00:01 Moscow
-1970-01-01 00:00:01 UTC
-1974-02-05 18:28:16 Moscow
-1974-02-05 21:28:16 UTC
-2011-03-26 22:59:59 Moscow
-2011-03-26 22:59:59 UTC
-2011-03-26 23:00:00 Moscow
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 UTC
-2011-03-26 23:00:01 Moscow
-2011-03-26 23:00:01 UTC
-2011-10-29 21:59:59 Moscow
-2011-10-29 21:59:59 UTC
-2011-10-29 22:00:00 MoscowD
-2011-10-29 22:00:00 UTC
-2011-10-29 22:00:01 MoscowD
-2011-10-29 22:00:01 UTC
-2011-10-29 22:59:59 MoscowD
-2011-10-29 22:59:59 UTC
-2011-10-29 23:00:00 UTC
-2011-10-29 23:00:01 UTC
-2011-10-29 23:59:59 UTC
-2011-10-30 00:00:00 Moscow
-2011-10-30 00:00:00 UTC
-2011-10-30 00:00:01 Moscow
-2011-10-30 00:00:01 UTC
-2038-01-19 03:14:06 Moscow
-2038-01-19 03:14:06 UTC
-2038-01-19 03:14:07 Moscow
-2038-01-19 03:14:07 UTC
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-01 00:00:00' and '2011-03-26 23:00:00' ORDER BY a, tz;
-a tz
-2011-03-26 22:59:59 Moscow
-2011-03-26 22:59:59 UTC
-2011-03-26 23:00:00 Moscow
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-01 00:00:00' and '2011-03-26 23:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSK,p-2011-MSD-1 ALL NULL NULL NULL NULL 11 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-01 00:00:00' and '2011-03-26 22:59:59' ORDER BY a, tz;
-a tz
-2011-03-26 22:59:59 Moscow
-2011-03-26 22:59:59 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-01 00:00:00' and '2011-03-26 22:59:59' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSK ALL NULL NULL NULL NULL 2 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-26 22:59:59' and '2011-03-28 00:00:00' ORDER BY a, tz;
-a tz
-2011-03-26 22:59:59 Moscow
-2011-03-26 22:59:59 UTC
-2011-03-26 23:00:00 Moscow
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 UTC
-2011-03-26 23:00:01 Moscow
-2011-03-26 23:00:01 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-26 22:59:59' and '2011-03-28 00:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSK,p-2011-MSD-1 ALL NULL NULL NULL NULL 11 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-26 23:00:00' and '2011-03-28 00:00:00' ORDER BY a, tz;
-a tz
-2011-03-26 23:00:00 Moscow
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 UTC
-2011-03-26 23:00:01 Moscow
-2011-03-26 23:00:01 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-26 23:00:00' and '2011-03-28 00:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSD-1 ALL NULL NULL NULL NULL 9 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 23:00:00' ORDER BY a, tz;
-a tz
-2011-10-29 21:59:59 Moscow
-2011-10-29 21:59:59 UTC
-2011-10-29 22:00:00 MoscowD
-2011-10-29 22:00:00 UTC
-2011-10-29 22:00:01 MoscowD
-2011-10-29 22:00:01 UTC
-2011-10-29 22:59:59 MoscowD
-2011-10-29 22:59:59 UTC
-2011-10-29 23:00:00 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 23:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSD-1,p-2011-MSD-2,p-2012-MSK-1 ALL NULL NULL NULL NULL 18 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 22:59:59' ORDER BY a, tz;
-a tz
-2011-10-29 21:59:59 Moscow
-2011-10-29 21:59:59 UTC
-2011-10-29 22:00:00 MoscowD
-2011-10-29 22:00:00 UTC
-2011-10-29 22:00:01 MoscowD
-2011-10-29 22:00:01 UTC
-2011-10-29 22:59:59 MoscowD
-2011-10-29 22:59:59 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 22:59:59' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSD-1,p-2011-MSD-2 ALL NULL NULL NULL NULL 15 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-29 22:59:59' and '2011-10-31 00:00:00' ORDER BY a, tz;
-a tz
-2011-10-29 22:59:59 MoscowD
-2011-10-29 22:59:59 UTC
-2011-10-29 23:00:00 UTC
-2011-10-29 23:00:01 UTC
-2011-10-29 23:59:59 UTC
-2011-10-30 00:00:00 Moscow
-2011-10-30 00:00:00 UTC
-2011-10-30 00:00:01 Moscow
-2011-10-30 00:00:01 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-29 22:59:59' and '2011-10-31 00:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSD-2,p-2012-MSK-1,p-2012-MSK-2 ALL NULL NULL NULL NULL 13 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-29 23:00:00' and '2011-10-31 00:00:00' ORDER BY a, tz;
-a tz
-2011-10-29 23:00:00 UTC
-2011-10-29 23:00:01 UTC
-2011-10-29 23:59:59 UTC
-2011-10-30 00:00:00 Moscow
-2011-10-30 00:00:00 UTC
-2011-10-30 00:00:01 Moscow
-2011-10-30 00:00:01 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-29 23:00:00' and '2011-10-31 00:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2012-MSK-1,p-2012-MSK-2 ALL NULL NULL NULL NULL 7 Using where; Using filesort
-# Test end range changes
-DELETE FROM t2 WHERE a = 0;
-INSERT IGNORE INTO t2 VALUES ('1970-01-01 00:00:00', 'UTC');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-35
-SELECT COUNT(*) FROM t2 WHERE a = 0;
-COUNT(*)
-1
-SELECT * FROM t2 ORDER BY a, tz LIMIT 3;
-a tz
-NULL Moscow
-NULL UTC
-0000-00-00 00:00:00 UTC
-SELECT * FROM t2 ORDER BY a DESC, tz LIMIT 3;
-a tz
-2038-01-19 03:14:07 Moscow
-2038-01-19 03:14:07 UTC
-2038-01-19 03:14:06 Moscow
-UPDATE IGNORE t2 SET a = TIMESTAMPADD(SECOND, 1, a);
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00'
-Warning 1264 Out of range value for column 'a' at row 34
-Warning 1264 Out of range value for column 'a' at row 35
-SELECT MIN(a), MAX(a) FROM t2;
-MIN(a) MAX(a)
-0000-00-00 00:00:00 2038-01-19 03:14:07
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-35
-SELECT COUNT(*) FROM t2 WHERE a = 0;
-COUNT(*)
-2
-SELECT PARTITION_NAME, TABLE_ROWS FROM INFORMATION_SCHEMA.PARTITIONS
-WHERE TABLE_NAME = 't2';
-PARTITION_NAME TABLE_ROWS
-p0 3
-p-2000 6
-p-2011-MSK 0
-p-2011-MSD-1 9
-p-2011-MSD-2 6
-p-2012-MSK-1 4
-p-2012-MSK-2 5
-pEnd 0
-pMax 2
-SELECT * FROM t2 ORDER BY a, tz;
-a tz
-NULL Moscow
-NULL UTC
-NULL UTC
-0000-00-00 00:00:00 Moscow
-0000-00-00 00:00:00 UTC
-1970-01-01 00:00:02 Moscow
-1970-01-01 00:00:02 UTC
-1974-02-05 18:28:17 Moscow
-1974-02-05 21:28:17 UTC
-2011-03-26 23:00:00 Moscow
-2011-03-26 23:00:00 UTC
-2011-03-26 23:00:01 Moscow
-2011-03-26 23:00:01 MoscowI
-2011-03-26 23:00:01 MoscowI
-2011-03-26 23:00:01 MoscowI
-2011-03-26 23:00:01 UTC
-2011-03-26 23:00:02 Moscow
-2011-03-26 23:00:02 UTC
-2011-10-29 22:00:00 Moscow
-2011-10-29 22:00:00 UTC
-2011-10-29 22:00:01 MoscowD
-2011-10-29 22:00:01 UTC
-2011-10-29 22:00:02 MoscowD
-2011-10-29 22:00:02 UTC
-2011-10-29 23:00:00 MoscowD
-2011-10-29 23:00:00 UTC
-2011-10-29 23:00:01 UTC
-2011-10-29 23:00:02 UTC
-2011-10-30 00:00:00 UTC
-2011-10-30 00:00:01 Moscow
-2011-10-30 00:00:01 UTC
-2011-10-30 00:00:02 Moscow
-2011-10-30 00:00:02 UTC
-2038-01-19 03:14:07 Moscow
-2038-01-19 03:14:07 UTC
-# Test start range changes
-INSERT IGNORE INTO t2 VALUES ('1970-01-01 00:00:00', 'UTC');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-36
-SELECT COUNT(*) FROM t2 WHERE a = 0;
-COUNT(*)
-3
-SELECT * FROM t2 ORDER BY a, tz LIMIT 3;
-a tz
-NULL Moscow
-NULL UTC
-NULL UTC
-SELECT * FROM t2 ORDER BY a DESC, tz LIMIT 3;
-a tz
-2038-01-19 03:14:07 Moscow
-2038-01-19 03:14:07 UTC
-2011-10-30 00:00:02 Moscow
-UPDATE IGNORE t2 SET a = TIMESTAMPADD(SECOND, -1, a);
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00'
-Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00'
-Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00'
-SELECT MIN(a), MAX(a) FROM t2;
-MIN(a) MAX(a)
-1970-01-01 00:00:01 2038-01-19 03:14:06
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-36
-SELECT COUNT(*) FROM t2 WHERE a = 0;
-COUNT(*)
-0
-SELECT PARTITION_NAME, TABLE_ROWS FROM INFORMATION_SCHEMA.PARTITIONS
-WHERE TABLE_NAME = 't2';
-PARTITION_NAME TABLE_ROWS
-p0 6
-p-2000 4
-p-2011-MSK 2
-p-2011-MSD-1 9
-p-2011-MSD-2 6
-p-2012-MSK-1 3
-p-2012-MSK-2 4
-pEnd 2
-pMax 0
-SELECT * FROM t2 ORDER BY a, tz;
-a tz
-NULL Moscow
-NULL Moscow
-NULL UTC
-NULL UTC
-NULL UTC
-NULL UTC
-1970-01-01 00:00:01 Moscow
-1970-01-01 00:00:01 UTC
-1974-02-05 18:28:16 Moscow
-1974-02-05 21:28:16 UTC
-2011-03-26 22:59:59 Moscow
-2011-03-26 22:59:59 UTC
-2011-03-26 23:00:00 Moscow
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 MoscowI
-2011-03-26 23:00:00 UTC
-2011-03-26 23:00:01 Moscow
-2011-03-26 23:00:01 UTC
-2011-10-29 21:59:59 Moscow
-2011-10-29 21:59:59 UTC
-2011-10-29 22:00:00 MoscowD
-2011-10-29 22:00:00 UTC
-2011-10-29 22:00:01 MoscowD
-2011-10-29 22:00:01 UTC
-2011-10-29 22:59:59 MoscowD
-2011-10-29 22:59:59 UTC
-2011-10-29 23:00:00 UTC
-2011-10-29 23:00:01 UTC
-2011-10-29 23:59:59 UTC
-2011-10-30 00:00:00 Moscow
-2011-10-30 00:00:00 UTC
-2011-10-30 00:00:01 Moscow
-2011-10-30 00:00:01 UTC
-2038-01-19 03:14:06 Moscow
-2038-01-19 03:14:06 UTC
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` timestamp NULL DEFAULT NULL,
- `tz` varchar(16) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (unix_timestamp(`a`))
-(PARTITION `p0` VALUES LESS THAN (0) ENGINE = MyISAM,
- PARTITION `p-2000` VALUES LESS THAN (946684800) ENGINE = MyISAM,
- PARTITION `p-2011-MSK` VALUES LESS THAN (1301180400) ENGINE = MyISAM,
- PARTITION `p-2011-MSD-1` VALUES LESS THAN (1319925600) ENGINE = MyISAM,
- PARTITION `p-2011-MSD-2` VALUES LESS THAN (1319929200) ENGINE = MyISAM,
- PARTITION `p-2012-MSK-1` VALUES LESS THAN (1319932800) ENGINE = MyISAM,
- PARTITION `p-2012-MSK-2` VALUES LESS THAN (1332630000) ENGINE = MyISAM,
- PARTITION `pEnd` VALUES LESS THAN (2147483647) ENGINE = MyISAM,
- PARTITION `pMax` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-TRUNCATE TABLE t2;
-SET @@session.time_zone = 'Europe/Moscow';
-INSERT INTO t2 SELECT * FROM t1;
-SELECT PARTITION_NAME, TABLE_ROWS FROM INFORMATION_SCHEMA.PARTITIONS
-WHERE TABLE_NAME = 't2';
-PARTITION_NAME TABLE_ROWS
-p0 2
-p-2000 16
-p-2011-MSK 2
-p-2011-MSD-1 9
-p-2011-MSD-2 6
-p-2012-MSK-1 3
-p-2012-MSK-2 4
-pEnd 2
-pMax 2
-SELECT * FROM t1 ORDER BY a, tz;
-a tz
-NULL Moscow
-NULL UTC
-0000-00-00 00:00:00 Moscow
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 UTC
-0000-00-00 00:00:00 UTCI
-0000-00-00 00:00:00 UTCI
-0000-00-00 00:00:00 UTCI
-0000-00-00 00:00:00 UTCI
-1970-01-01 03:00:01 Moscow
-1970-01-01 03:00:01 UTC
-1974-02-05 21:28:16 Moscow
-1974-02-06 00:28:16 UTC
-2011-03-27 01:59:59 Moscow
-2011-03-27 01:59:59 UTC
-2011-03-27 03:00:00 Moscow
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 UTC
-2011-03-27 03:00:01 Moscow
-2011-03-27 03:00:01 UTC
-2011-10-30 01:59:59 Moscow
-2011-10-30 01:59:59 UTC
-2011-10-30 02:00:00 MoscowD
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:01 MoscowD
-2011-10-30 02:00:01 UTC
-2011-10-30 02:59:59 MoscowD
-2011-10-30 02:59:59 UTC
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:01 UTC
-2011-10-30 02:59:59 UTC
-2011-10-30 03:00:00 Moscow
-2011-10-30 03:00:00 UTC
-2011-10-30 03:00:01 Moscow
-2011-10-30 03:00:01 UTC
-2038-01-19 06:14:06 Moscow
-2038-01-19 06:14:06 UTC
-2038-01-19 06:14:07 Moscow
-2038-01-19 06:14:07 UTC
-SELECT * FROM t2 ORDER BY a, tz;
-a tz
-NULL Moscow
-NULL UTC
-0000-00-00 00:00:00 Moscow
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 MoscowI
-0000-00-00 00:00:00 UTC
-0000-00-00 00:00:00 UTCI
-0000-00-00 00:00:00 UTCI
-0000-00-00 00:00:00 UTCI
-0000-00-00 00:00:00 UTCI
-1970-01-01 03:00:01 Moscow
-1970-01-01 03:00:01 UTC
-1974-02-05 21:28:16 Moscow
-1974-02-06 00:28:16 UTC
-2011-03-27 01:59:59 Moscow
-2011-03-27 01:59:59 UTC
-2011-03-27 03:00:00 Moscow
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 UTC
-2011-03-27 03:00:01 Moscow
-2011-03-27 03:00:01 UTC
-2011-10-30 01:59:59 Moscow
-2011-10-30 01:59:59 UTC
-2011-10-30 02:00:00 MoscowD
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:01 MoscowD
-2011-10-30 02:00:01 UTC
-2011-10-30 02:59:59 MoscowD
-2011-10-30 02:59:59 UTC
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:01 UTC
-2011-10-30 02:59:59 UTC
-2011-10-30 03:00:00 Moscow
-2011-10-30 03:00:00 UTC
-2011-10-30 03:00:01 Moscow
-2011-10-30 03:00:01 UTC
-2038-01-19 06:14:06 Moscow
-2038-01-19 06:14:06 UTC
-2038-01-19 06:14:07 Moscow
-2038-01-19 06:14:07 UTC
-# Testing the leap from 01:59:59 to 03:00:00
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-01 00:00:00' and '2011-03-27 03:00:00' ORDER BY a, tz;
-a tz
-2011-03-27 01:59:59 Moscow
-2011-03-27 01:59:59 UTC
-2011-03-27 03:00:00 Moscow
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-01 00:00:00' and '2011-03-27 03:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSK,p-2011-MSD-1 ALL NULL NULL NULL NULL 11 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-01 00:00:00' and '2011-03-27 01:59:59' ORDER BY a, tz;
-a tz
-2011-03-27 01:59:59 Moscow
-2011-03-27 01:59:59 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-01 00:00:00' and '2011-03-27 01:59:59' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSK ALL NULL NULL NULL NULL 2 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-26 01:59:59' and '2011-03-28 00:00:00' ORDER BY a, tz;
-a tz
-2011-03-27 01:59:59 Moscow
-2011-03-27 01:59:59 UTC
-2011-03-27 03:00:00 Moscow
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 UTC
-2011-03-27 03:00:01 Moscow
-2011-03-27 03:00:01 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-26 01:59:59' and '2011-03-28 00:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSK,p-2011-MSD-1 ALL NULL NULL NULL NULL 11 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-26 03:00:00' and '2011-03-28 00:00:00' ORDER BY a, tz;
-a tz
-2011-03-27 01:59:59 Moscow
-2011-03-27 01:59:59 UTC
-2011-03-27 03:00:00 Moscow
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 UTC
-2011-03-27 03:00:01 Moscow
-2011-03-27 03:00:01 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-03-26 03:00:00' and '2011-03-28 00:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSK,p-2011-MSD-1 ALL NULL NULL NULL NULL 11 Using where; Using filesort
-# Testing the leap from 02:59:59 to 02:00:00
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 02:00:00' ORDER BY a, tz;
-a tz
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 02:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSD-1 ALL NULL NULL NULL NULL 9 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 02:59:59' ORDER BY a, tz;
-a tz
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 02:59:59' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSD-1 ALL NULL NULL NULL NULL 9 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 03:00:00' ORDER BY a, tz;
-a tz
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 03:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSD-1 ALL NULL NULL NULL NULL 9 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 01:59:59' ORDER BY a, tz;
-a tz
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 01:59:59' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSD-1 ALL NULL NULL NULL NULL 9 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-29 02:00:00' and '2011-10-31 00:00:00' ORDER BY a, tz;
-a tz
-2011-10-30 01:59:59 Moscow
-2011-10-30 01:59:59 UTC
-2011-10-30 02:00:00 MoscowD
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:01 MoscowD
-2011-10-30 02:00:01 UTC
-2011-10-30 02:59:59 MoscowD
-2011-10-30 02:59:59 UTC
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:01 UTC
-2011-10-30 02:59:59 UTC
-2011-10-30 03:00:00 Moscow
-2011-10-30 03:00:00 UTC
-2011-10-30 03:00:01 Moscow
-2011-10-30 03:00:01 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-29 02:00:00' and '2011-10-31 00:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSD-1,p-2011-MSD-2,p-2012-MSK-1,p-2012-MSK-2 ALL NULL NULL NULL NULL 22 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-29 02:59:59' and '2011-10-31 00:00:00' ORDER BY a, tz;
-a tz
-2011-10-30 01:59:59 Moscow
-2011-10-30 01:59:59 UTC
-2011-10-30 02:00:00 MoscowD
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:01 MoscowD
-2011-10-30 02:00:01 UTC
-2011-10-30 02:59:59 MoscowD
-2011-10-30 02:59:59 UTC
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:01 UTC
-2011-10-30 02:59:59 UTC
-2011-10-30 03:00:00 Moscow
-2011-10-30 03:00:00 UTC
-2011-10-30 03:00:01 Moscow
-2011-10-30 03:00:01 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-29 02:59:59' and '2011-10-31 00:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSD-1,p-2011-MSD-2,p-2012-MSK-1,p-2012-MSK-2 ALL NULL NULL NULL NULL 22 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-29 03:00:00' and '2011-10-31 00:00:00' ORDER BY a, tz;
-a tz
-2011-10-30 01:59:59 Moscow
-2011-10-30 01:59:59 UTC
-2011-10-30 02:00:00 MoscowD
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:01 MoscowD
-2011-10-30 02:00:01 UTC
-2011-10-30 02:59:59 MoscowD
-2011-10-30 02:59:59 UTC
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:01 UTC
-2011-10-30 02:59:59 UTC
-2011-10-30 03:00:00 Moscow
-2011-10-30 03:00:00 UTC
-2011-10-30 03:00:01 Moscow
-2011-10-30 03:00:01 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-29 03:00:00' and '2011-10-31 00:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSD-1,p-2011-MSD-2,p-2012-MSK-1,p-2012-MSK-2 ALL NULL NULL NULL NULL 22 Using where; Using filesort
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-29 01:59:59' and '2011-10-31 00:00:00' ORDER BY a, tz;
-a tz
-2011-10-30 01:59:59 Moscow
-2011-10-30 01:59:59 UTC
-2011-10-30 02:00:00 MoscowD
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:01 MoscowD
-2011-10-30 02:00:01 UTC
-2011-10-30 02:59:59 MoscowD
-2011-10-30 02:59:59 UTC
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:01 UTC
-2011-10-30 02:59:59 UTC
-2011-10-30 03:00:00 Moscow
-2011-10-30 03:00:00 UTC
-2011-10-30 03:00:01 Moscow
-2011-10-30 03:00:01 UTC
-EXPLAIN PARTITIONS
-SELECT * FROM t2
-WHERE a BETWEEN '2011-10-29 01:59:59' and '2011-10-31 00:00:00' ORDER BY a, tz;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p-2011-MSD-1,p-2011-MSD-2,p-2012-MSK-1,p-2012-MSK-2 ALL NULL NULL NULL NULL 22 Using where; Using filesort
-# Test end range changes
-DELETE FROM t2 WHERE a = 0;
-INSERT IGNORE INTO t2 VALUES ('1970-01-01 00:00:00', 'Moscow');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-35
-SELECT COUNT(*) FROM t2 WHERE a = 0;
-COUNT(*)
-1
-SELECT * FROM t2 ORDER BY a, tz LIMIT 3;
-a tz
-NULL Moscow
-NULL UTC
-0000-00-00 00:00:00 Moscow
-SELECT * FROM t2 ORDER BY a DESC, tz LIMIT 3;
-a tz
-2038-01-19 06:14:07 Moscow
-2038-01-19 06:14:07 UTC
-2038-01-19 06:14:06 Moscow
-UPDATE IGNORE t2 SET a = TIMESTAMPADD(SECOND, 1, a);
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00'
-Warning 1299 Invalid TIMESTAMP value in column 'a' at row 8
-Warning 1299 Invalid TIMESTAMP value in column 'a' at row 9
-Warning 1264 Out of range value for column 'a' at row 34
-Warning 1264 Out of range value for column 'a' at row 35
-SELECT MIN(a), MAX(a) FROM t2;
-MIN(a) MAX(a)
-0000-00-00 00:00:00 2038-01-19 06:14:07
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-35
-SELECT COUNT(*) FROM t2 WHERE a = 0;
-COUNT(*)
-2
-SELECT PARTITION_NAME, TABLE_ROWS FROM INFORMATION_SCHEMA.PARTITIONS
-WHERE TABLE_NAME = 't2';
-PARTITION_NAME TABLE_ROWS
-p0 3
-p-2000 6
-p-2011-MSK 0
-p-2011-MSD-1 9
-p-2011-MSD-2 8
-p-2012-MSK-1 0
-p-2012-MSK-2 7
-pEnd 0
-pMax 2
-SELECT * FROM t2 ORDER BY a, tz;
-a tz
-NULL Moscow
-NULL Moscow
-NULL UTC
-0000-00-00 00:00:00 Moscow
-0000-00-00 00:00:00 UTC
-1970-01-01 03:00:02 Moscow
-1970-01-01 03:00:02 UTC
-1974-02-05 21:28:17 Moscow
-1974-02-06 00:28:17 UTC
-2011-03-27 03:00:00 Moscow
-2011-03-27 03:00:00 UTC
-2011-03-27 03:00:01 Moscow
-2011-03-27 03:00:01 MoscowI
-2011-03-27 03:00:01 MoscowI
-2011-03-27 03:00:01 MoscowI
-2011-03-27 03:00:01 UTC
-2011-03-27 03:00:02 Moscow
-2011-03-27 03:00:02 UTC
-2011-10-30 02:00:00 Moscow
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:01 MoscowD
-2011-10-30 02:00:01 UTC
-2011-10-30 02:00:01 UTC
-2011-10-30 02:00:02 MoscowD
-2011-10-30 02:00:02 UTC
-2011-10-30 02:00:02 UTC
-2011-10-30 03:00:00 MoscowD
-2011-10-30 03:00:00 UTC
-2011-10-30 03:00:00 UTC
-2011-10-30 03:00:01 Moscow
-2011-10-30 03:00:01 UTC
-2011-10-30 03:00:02 Moscow
-2011-10-30 03:00:02 UTC
-2038-01-19 06:14:07 Moscow
-2038-01-19 06:14:07 UTC
-# Test start range changes
-INSERT IGNORE INTO t2 VALUES ('1970-01-01 00:00:00', 'Moscow');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-36
-SELECT COUNT(*) FROM t2 WHERE a = 0;
-COUNT(*)
-3
-SELECT * FROM t2 ORDER BY a, tz LIMIT 3;
-a tz
-NULL Moscow
-NULL Moscow
-NULL UTC
-SELECT * FROM t2 ORDER BY a DESC, tz LIMIT 3;
-a tz
-2038-01-19 06:14:07 Moscow
-2038-01-19 06:14:07 UTC
-2011-10-30 03:00:02 Moscow
-UPDATE IGNORE t2 SET a = TIMESTAMPADD(SECOND, -1, a);
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00'
-Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00'
-Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00'
-Warning 1299 Invalid TIMESTAMP value in column 'a' at row 18
-Warning 1299 Invalid TIMESTAMP value in column 'a' at row 19
-SELECT MIN(a), MAX(a) FROM t2;
-MIN(a) MAX(a)
-1970-01-01 03:00:01 2038-01-19 06:14:06
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-36
-SELECT COUNT(*) FROM t2 WHERE a = 0;
-COUNT(*)
-0
-SELECT PARTITION_NAME, TABLE_ROWS FROM INFORMATION_SCHEMA.PARTITIONS
-WHERE TABLE_NAME = 't2';
-PARTITION_NAME TABLE_ROWS
-p0 6
-p-2000 4
-p-2011-MSK 0
-p-2011-MSD-1 11
-p-2011-MSD-2 9
-p-2012-MSK-1 0
-p-2012-MSK-2 4
-pEnd 2
-pMax 0
-SELECT * FROM t2 ORDER BY a, tz;
-a tz
-NULL Moscow
-NULL Moscow
-NULL Moscow
-NULL Moscow
-NULL UTC
-NULL UTC
-1970-01-01 03:00:01 Moscow
-1970-01-01 03:00:01 UTC
-1974-02-05 21:28:16 Moscow
-1974-02-06 00:28:16 UTC
-2011-03-27 03:00:00 Moscow
-2011-03-27 03:00:00 Moscow
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 MoscowI
-2011-03-27 03:00:00 UTC
-2011-03-27 03:00:00 UTC
-2011-03-27 03:00:01 Moscow
-2011-03-27 03:00:01 UTC
-2011-10-30 01:59:59 Moscow
-2011-10-30 01:59:59 UTC
-2011-10-30 02:00:00 MoscowD
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:00 UTC
-2011-10-30 02:00:01 MoscowD
-2011-10-30 02:00:01 UTC
-2011-10-30 02:00:01 UTC
-2011-10-30 02:59:59 MoscowD
-2011-10-30 02:59:59 UTC
-2011-10-30 02:59:59 UTC
-2011-10-30 03:00:00 Moscow
-2011-10-30 03:00:00 UTC
-2011-10-30 03:00:01 Moscow
-2011-10-30 03:00:01 UTC
-2038-01-19 06:14:06 Moscow
-2038-01-19 06:14:06 UTC
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` timestamp NULL DEFAULT NULL,
- `tz` varchar(16) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (unix_timestamp(`a`))
-(PARTITION `p0` VALUES LESS THAN (0) ENGINE = MyISAM,
- PARTITION `p-2000` VALUES LESS THAN (946684800) ENGINE = MyISAM,
- PARTITION `p-2011-MSK` VALUES LESS THAN (1301180400) ENGINE = MyISAM,
- PARTITION `p-2011-MSD-1` VALUES LESS THAN (1319925600) ENGINE = MyISAM,
- PARTITION `p-2011-MSD-2` VALUES LESS THAN (1319929200) ENGINE = MyISAM,
- PARTITION `p-2012-MSK-1` VALUES LESS THAN (1319932800) ENGINE = MyISAM,
- PARTITION `p-2012-MSK-2` VALUES LESS THAN (1332630000) ENGINE = MyISAM,
- PARTITION `pEnd` VALUES LESS THAN (2147483647) ENGINE = MyISAM,
- PARTITION `pMax` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-TRUNCATE TABLE t2;
-DROP TABLE t1, t2;
-SET @@session.time_zone= @old_time_zone;
diff --git a/mysql-test/r/partition_debug_sync.result b/mysql-test/r/partition_debug_sync.result
deleted file mode 100644
index b79385686b7..00000000000
--- a/mysql-test/r/partition_debug_sync.result
+++ /dev/null
@@ -1,66 +0,0 @@
-DROP TABLE IF EXISTS t1, t2;
-SET DEBUG_SYNC= 'RESET';
-#
-# Bug#42438: Crash ha_partition::change_table_ptr
-# Test when remove partitioning is done while drop table is waiting
-# for the table.
-# After MDL was introduced, there is no longer any race, so test is done
-# by adding a small sleep to verify that the delete waits. This happens
-# only until ALTER tries to upgrade its MDL lock, which ends up in MDL
-# deadlock which is correctly reported.
-connect con1, localhost, root,,;
-SET DEBUG_SYNC= 'RESET';
-CREATE TABLE t1
-(a INTEGER,
-b INTEGER NOT NULL,
-KEY (b))
-ENGINE = MYISAM
-/*!50100 PARTITION BY RANGE (a)
-(PARTITION p0 VALUES LESS THAN (2),
-PARTITION p1 VALUES LESS THAN (20),
-PARTITION p2 VALUES LESS THAN (100),
-PARTITION p3 VALUES LESS THAN MAXVALUE ) */;
-SET DEBUG_SYNC= 'alter_table_before_create_table_no_lock SIGNAL removing_partitioning WAIT_FOR waiting_for_alter';
-SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL waiting_for_upgrade';
-ALTER TABLE t1 REMOVE PARTITIONING;
-connection default;
-SET DEBUG_SYNC= 'now WAIT_FOR removing_partitioning';
-SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL waiting_for_alter';
-SET DEBUG_SYNC= 'rm_table_no_locks_before_delete_table WAIT_FOR waiting_for_upgrade';
-DROP TABLE IF EXISTS t1;
-connection con1;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-connection default;
-SET DEBUG_SYNC= 'RESET';
-connection con1;
-SET DEBUG_SYNC= 'RESET';
-#
-# Bug#42438: Crash ha_partition::change_table_ptr
-# Test when remove partitioning is failing due to drop table is already
-# in progress.
-# After MDL was introduced, there is no longer any race, so test is done
-# by adding a small sleep to verify that the alter waits.
-CREATE TABLE t2
-(a INTEGER,
-b INTEGER NOT NULL,
-KEY (b))
-ENGINE = MYISAM
-PARTITION BY RANGE (a) (PARTITION p0 VALUES LESS THAN (2),
-PARTITION p1 VALUES LESS THAN (20),
-PARTITION p2 VALUES LESS THAN (100),
-PARTITION p3 VALUES LESS THAN MAXVALUE);
-SET DEBUG_SYNC= 'alter_table_before_open_tables SIGNAL removing_partitions WAIT_FOR waiting_for_alter';
-SET DEBUG_SYNC= 'alter_table_before_rename_result_table WAIT_FOR delete_done';
-ALTER TABLE t2 REMOVE PARTITIONING;
-connection default;
-SET DEBUG_SYNC= 'now WAIT_FOR removing_partitions';
-SET DEBUG_SYNC= 'rm_table_no_locks_before_delete_table SIGNAL waiting_for_alter';
-SET DEBUG_SYNC= 'rm_table_no_locks_before_binlog SIGNAL delete_done';
-DROP TABLE IF EXISTS t2;
-connection con1;
-ERROR 42S02: Table 'test.t2' doesn't exist
-SET DEBUG_SYNC= 'RESET';
-disconnect con1;
-connection default;
-SET DEBUG_SYNC= 'RESET';
-End of 5.1 tests
diff --git a/mysql-test/r/partition_default.result b/mysql-test/r/partition_default.result
deleted file mode 100644
index db3b714bbcc..00000000000
--- a/mysql-test/r/partition_default.result
+++ /dev/null
@@ -1,1267 +0,0 @@
-create table t1 (a int, b int)
-PARTITION BY LIST (a)
-(
-PARTITION p2 VALUES IN (4,5,6),
-PARTITION p1 VALUES IN (1)
-)
-;
-insert into t1 values (10,10);
-ERROR HY000: Table has no partition for value 10
-drop table t1;
-create table t1 (a int, b int)
-PARTITION BY LIST (a)
-(
-PARTITION p2 VALUES IN (4,5,6),
-PARTITION p1 VALUES IN (1),
-PARTITION p0 DEFAULT
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p2` VALUES IN (4,5,6) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN (1) ENGINE = MyISAM,
- PARTITION `p0` DEFAULT ENGINE = MyISAM)
-insert into t1 values (10,10);
-insert into t1 values (4,4);
-select * from t1;
-a b
-4 4
-10 10
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 0
-p2 1
-drop table t1;
-create table t1 (a int, b int)
-PARTITION BY LIST (a)
-(
-PARTITION p2 VALUES IN (4,5,6),
-PARTITION p1 VALUES IN (1),
-PARTITION p0 DEFAULT,
-PARTITION p3 DEFAULT
-)
-;
-ERROR HY000: Only one DEFAULT partition allowed
-create table t1 (a int, b int)
-PARTITION BY LIST (a)
-(
-PARTITION p0 DEFAULT,
-PARTITION p2 VALUES IN (4,5,6),
-PARTITION p1 VALUES IN (1),
-PARTITION p3 DEFAULT
-)
-;
-ERROR HY000: Only one DEFAULT partition allowed
-create table t1 (a int, b int)
-PARTITION BY LIST (a)
-(
-PARTITION p0 DEFAULT,
-PARTITION p2 VALUES IN (4,5,6),
-PARTITION p1 VALUES IN (1)
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p0` DEFAULT ENGINE = MyISAM,
- PARTITION `p2` VALUES IN (4,5,6) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN (1) ENGINE = MyISAM)
-insert into t1 values (10,10);
-select * from t1;
-a b
-10 10
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 0
-p2 0
-drop table t1;
-create table t1 (a int, b int)
-PARTITION BY LIST (a)
-(
-PARTITION p0 DEFAULT,
-PARTITION p2 VALUES IN (4,5,6),
-PARTITION p1 VALUES IN (1, 0)
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p0` DEFAULT ENGINE = MyISAM,
- PARTITION `p2` VALUES IN (4,5,6) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN (1,0) ENGINE = MyISAM)
-insert into t1 values (10,10);
-select * from t1;
-a b
-10 10
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 0
-p2 0
-drop table t1;
-create table t1 (a int, b int)
-PARTITION BY LIST COLUMNS(a,b)
-(
-PARTITION p2 VALUES IN ((1,4),(2,5),(3,6)),
-PARTITION p1 VALUES IN ((1,1),(0,0)),
-PARTITION p0 DEFAULT
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`,`b`)
-(PARTITION `p2` VALUES IN ((1,4),(2,5),(3,6)) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN ((1,1),(0,0)) ENGINE = MyISAM,
- PARTITION `p0` DEFAULT ENGINE = MyISAM)
-insert into t1 values (10,10);
-select * from t1;
-a b
-10 10
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 0
-p2 0
-drop table t1;
-create table t1 (a int, b int)
-PARTITION BY LIST COLUMNS(a,b)
-(
-PARTITION p2 VALUES IN ((1,4),(2,5),(3,6)),
-PARTITION p1 VALUES IN ((1,1),(0,0)),
-PARTITION p0 DEFAULT,
-PARTITION p3 DEFAULT
-)
-;
-ERROR HY000: Only one DEFAULT partition allowed
-create table t1 (a int, b int)
-PARTITION BY LIST COLUMNS(a,b)
-(
-PARTITION p0 DEFAULT,
-PARTITION p2 VALUES IN ((1,4),(2,5),(3,6)),
-PARTITION p1 VALUES IN ((1,1),(0,0)),
-PARTITION p3 DEFAULT
-)
-;
-ERROR HY000: Only one DEFAULT partition allowed
-create table t1 (a int, b int)
-PARTITION BY LIST (a)
-(
-PARTITION p2 VALUES IN (4,5,6),
-PARTITION p1 VALUES IN (1,20),
-PARTITION p0 default
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p2` VALUES IN (4,5,6) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN (1,20) ENGINE = MyISAM,
- PARTITION `p0` DEFAULT ENGINE = MyISAM)
-insert into t1 values (10,10);
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 0
-p2 0
-select * from t1 where a=10;
-a b
-10 10
-select * from t1 where a<=10;
-a b
-10 10
-select * from t1 where a<=20;
-a b
-10 10
-select * from t1 where a>=10;
-a b
-10 10
-select * from t1 where a>=5;
-a b
-10 10
-insert into t1 values (20,20),(5,5);
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 1
-p2 1
-select * from t1 where a=10;
-a b
-10 10
-select * from t1 where a<=10;
-a b
-5 5
-10 10
-select * from t1 where a<=20;
-a b
-5 5
-20 20
-10 10
-select * from t1 where a>=10;
-a b
-20 20
-10 10
-select * from t1 where a>=5;
-a b
-5 5
-20 20
-10 10
-explain partitions select * from t1 where a=10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-explain partitions select * from t1 where a=5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system NULL NULL NULL NULL 1
-select * from t1 where a=10 or a=5;
-a b
-5 5
-10 10
-explain partitions select * from t1 where a=10 or a=5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2,p0 ALL NULL NULL NULL NULL 2 Using where
-drop table t1;
-create table t1 (a int, b int)
-PARTITION BY LIST COLUMNS(a,b)
-(
-PARTITION p2 VALUES IN ((1,4),(2,5),(3,6),(5,5)),
-PARTITION p1 VALUES IN ((1,1),(20,20)),
-PARTITION p0 DEFAULT
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`,`b`)
-(PARTITION `p2` VALUES IN ((1,4),(2,5),(3,6),(5,5)) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN ((1,1),(20,20)) ENGINE = MyISAM,
- PARTITION `p0` DEFAULT ENGINE = MyISAM)
-insert into t1 values (10,10);
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 0
-p2 0
-select * from t1 where a=10 and b=10;
-a b
-10 10
-explain partitions select * from t1 where a=10 and b=10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-select * from t1 where a=10;
-a b
-10 10
-explain partitions select * from t1 where a=10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-select * from t1 where a<=10;
-a b
-10 10
-select * from t1 where a>=10;
-a b
-10 10
-insert into t1 values (20,20),(5,5);
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 1
-p2 1
-select * from t1 where a=10 and b=10;
-a b
-10 10
-explain partitions select * from t1 where a=10 and b=10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-select * from t1 where a=10 and b=10 or a=20 and b=20;
-a b
-20 20
-10 10
-explain partitions select * from t1 where a=10 and b=10 or a=20 and b=20;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p0 ALL NULL NULL NULL NULL 2 Using where
-drop table t1;
-create table t1 (a int, b int);
-insert into t1 values (10,10),(2,5),(0,0);
-select * from t1;
-a b
-10 10
-2 5
-0 0
-alter table t1
-PARTITION BY LIST (a+b)
-(
-PARTITION p2 VALUES IN (1,2,3,7),
-PARTITION p1 VALUES IN (21,0),
-PARTITION p0 DEFAULT
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a` + `b`)
-(PARTITION `p2` VALUES IN (1,2,3,7) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN (21,0) ENGINE = MyISAM,
- PARTITION `p0` DEFAULT ENGINE = MyISAM)
-select * from t1;
-a b
-2 5
-0 0
-10 10
-explain partitions select * from t1 where a=2 and b=5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system NULL NULL NULL NULL 1
-explain partitions select * from t1 where a=10 and b=10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-drop table t1;
-create table t1 (a int, b int);
-insert into t1 values (10,10),(2,5),(0,0);
-select * from t1;
-a b
-10 10
-2 5
-0 0
-alter table t1
-PARTITION BY LIST (a+5)
-(
-PARTITION p2 VALUES IN (1,2,3,7),
-PARTITION p1 VALUES IN (0),
-PARTITION p0 DEFAULT
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a` + 5)
-(PARTITION `p2` VALUES IN (1,2,3,7) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN (0) ENGINE = MyISAM,
- PARTITION `p0` DEFAULT ENGINE = MyISAM)
-select * from t1;
-a b
-2 5
-10 10
-0 0
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 2
-p1 0
-p2 1
-explain partitions select * from t1 where a>=2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2,p1,p0 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t1 where a>=2 and a<=3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2,p0 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t1 where a=10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 2 Using where
-drop table t1;
-CREATE TABLE t1 (a DATE, KEY(a))
-PARTITION BY LIST (TO_DAYS(a))
-(PARTITION `pDEF` DEFAULT,
-PARTITION `p2001-01-01` VALUES IN (TO_DAYS('2001-01-01')),
-PARTITION `pNULL` VALUES IN (NULL),
-PARTITION `p0000-01-02` VALUES IN (TO_DAYS('0000-01-02')),
-PARTITION `p1001-01-01` VALUES IN (TO_DAYS('1001-01-01')));
-INSERT INTO t1 VALUES ('0000-00-00'), ('0000-01-02'), ('0001-01-01'),
-('1001-00-00'), ('1001-01-01'), ('1002-00-00'), ('2001-01-01');
-SELECT * FROM t1 WHERE a < '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a <= '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a >= '1001-01-01';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-01-01';
-a
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-01-01';
-a
-1001-01-01
-SELECT * FROM t1 WHERE a < '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-SELECT * FROM t1 WHERE a <= '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a >= '1001-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-00-00';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-00-00';
-a
-1001-00-00
-# Disabling warnings for the invalid date
-SELECT * FROM t1 WHERE a < '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a <= '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a >= '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a > '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a = '1999-02-31';
-a
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-a
-0001-01-01
-1001-00-00
-1001-01-01
-# test without index
-ALTER TABLE t1 DROP KEY a;
-SELECT * FROM t1 WHERE a < '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a <= '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a >= '1001-01-01';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-01-01';
-a
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-01-01';
-a
-1001-01-01
-SELECT * FROM t1 WHERE a < '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-SELECT * FROM t1 WHERE a <= '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a >= '1001-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-00-00';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-00-00';
-a
-1001-00-00
-# Disabling warnings for the invalid date
-SELECT * FROM t1 WHERE a < '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a <= '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a >= '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a > '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a = '1999-02-31';
-a
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-a
-0001-01-01
-1001-00-00
-1001-01-01
-DROP TABLE t1;
-# TO_SECONDS, test of LIST and index
-CREATE TABLE t1 (a DATE, KEY(a))
-PARTITION BY LIST (TO_SECONDS(a))
-(PARTITION `pDEF` DEFAULT,
-PARTITION `p2001-01-01` VALUES IN (TO_SECONDS('2001-01-01')),
-PARTITION `pNULL` VALUES IN (NULL),
-PARTITION `p0000-01-02` VALUES IN (TO_SECONDS('0000-01-02')),
-PARTITION `p1001-01-01` VALUES IN (TO_SECONDS('1001-01-01')));
-INSERT INTO t1 VALUES ('0000-00-00'), ('0000-01-02'), ('0001-01-01'),
-('1001-00-00'), ('1001-01-01'), ('1002-00-00'), ('2001-01-01');
-SELECT * FROM t1 WHERE a < '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a <= '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a >= '1001-01-01';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-01-01';
-a
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-01-01';
-a
-1001-01-01
-SELECT * FROM t1 WHERE a < '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-SELECT * FROM t1 WHERE a <= '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a >= '1001-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-00-00';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-00-00';
-a
-1001-00-00
-# Disabling warnings for the invalid date
-SELECT * FROM t1 WHERE a < '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a <= '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a >= '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a > '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a = '1999-02-31';
-a
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-a
-0001-01-01
-1001-00-00
-1001-01-01
-# test without index
-ALTER TABLE t1 DROP KEY a;
-SELECT * FROM t1 WHERE a < '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a <= '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a >= '1001-01-01';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-01-01';
-a
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-01-01';
-a
-1001-01-01
-SELECT * FROM t1 WHERE a < '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-SELECT * FROM t1 WHERE a <= '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a >= '1001-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-00-00';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-00-00';
-a
-1001-00-00
-# Disabling warnings for the invalid date
-SELECT * FROM t1 WHERE a < '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a <= '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a >= '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a > '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a = '1999-02-31';
-a
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-a
-0001-01-01
-1001-00-00
-1001-01-01
-DROP TABLE t1;
-create table t1 (a int, b int);
-insert into t1 values (10,10),(2,5),(0,0);
-select * from t1;
-a b
-10 10
-2 5
-0 0
-alter table t1
-PARTITION BY LIST (a)
-(
-PARTITION p2 VALUES IN (1,2,3),
-PARTITION p1 VALUES IN (20,0),
-PARTITION p0 DEFAULT
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p2` VALUES IN (1,2,3) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN (20,0) ENGINE = MyISAM,
- PARTITION `p0` DEFAULT ENGINE = MyISAM)
-select * from t1;
-a b
-2 5
-0 0
-10 10
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 1
-p2 1
-explain partitions select * from t1 where a=2 and b=5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system NULL NULL NULL NULL 1
-explain partitions select * from t1 where a=10 and b=10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-alter table t1
-PARTITION BY LIST (a)
-(
-PARTITION p2 VALUES IN (1,2,3),
-PARTITION p1 VALUES IN (20,0),
-PARTITION p0 VALUES IN (10)
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p2` VALUES IN (1,2,3) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN (20,0) ENGINE = MyISAM,
- PARTITION `p0` VALUES IN (10) ENGINE = MyISAM)
-select * from t1;
-a b
-2 5
-0 0
-10 10
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 1
-p2 1
-explain partitions select * from t1 where a=2 and b=5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system NULL NULL NULL NULL 1
-explain partitions select * from t1 where a=10 and b=10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-alter table t1
-PARTITION BY LIST (a)
-(
-PARTITION p2 DEFAULT,
-PARTITION p1 VALUES IN (20,0),
-PARTITION p0 VALUES IN (10)
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p2` DEFAULT ENGINE = MyISAM,
- PARTITION `p1` VALUES IN (20,0) ENGINE = MyISAM,
- PARTITION `p0` VALUES IN (10) ENGINE = MyISAM)
-select * from t1;
-a b
-2 5
-0 0
-10 10
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 1
-p2 1
-explain partitions select * from t1 where a=2 and b=5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system NULL NULL NULL NULL 1
-explain partitions select * from t1 where a=10 and b=10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-alter table t1 drop partition p2;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p1` VALUES IN (20,0) ENGINE = MyISAM,
- PARTITION `p0` VALUES IN (10) ENGINE = MyISAM)
-select * from t1;
-a b
-0 0
-10 10
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 1
-alter table t1 add partition (PARTITION pd DEFAULT);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p1` VALUES IN (20,0) ENGINE = MyISAM,
- PARTITION `p0` VALUES IN (10) ENGINE = MyISAM,
- PARTITION `pd` DEFAULT ENGINE = MyISAM)
-alter table t1 add partition (PARTITION pdd DEFAULT);
-ERROR HY000: Only one DEFAULT partition allowed
-alter table t1 drop partition pd;
-alter table t1 add partition (PARTITION pdd DEFAULT,
-PARTITION pd DEFAULT);
-ERROR HY000: Only one DEFAULT partition allowed
-drop table t1;
-create table t1 (a int, b int);
-insert into t1 values (10,10),(2,5),(0,0);
-select * from t1;
-a b
-10 10
-2 5
-0 0
-alter table t1
-PARTITION BY LIST COLUMNS(a,b)
-(
-PARTITION p2 VALUES IN ((1,4),(2,5),(3,6)),
-PARTITION p1 VALUES IN ((1,1),(0,0)),
-PARTITION p0 DEFAULT
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`,`b`)
-(PARTITION `p2` VALUES IN ((1,4),(2,5),(3,6)) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN ((1,1),(0,0)) ENGINE = MyISAM,
- PARTITION `p0` DEFAULT ENGINE = MyISAM)
-select * from t1;
-a b
-2 5
-0 0
-10 10
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 1
-p2 1
-explain partitions select * from t1 where a=2 and b=5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system NULL NULL NULL NULL 1
-explain partitions select * from t1 where a=10 and b=10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-alter table t1
-PARTITION BY LIST COLUMNS(a,b)
-(
-PARTITION p2 VALUES IN ((1,4),(2,5),(3,6)),
-PARTITION p1 VALUES IN ((1,1),(0,0)),
-PARTITION p0 VALUES IN ((10,10))
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`,`b`)
-(PARTITION `p2` VALUES IN ((1,4),(2,5),(3,6)) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN ((1,1),(0,0)) ENGINE = MyISAM,
- PARTITION `p0` VALUES IN ((10,10)) ENGINE = MyISAM)
-select * from t1;
-a b
-2 5
-0 0
-10 10
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 1
-p2 1
-explain partitions select * from t1 where a=2 and b=5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system NULL NULL NULL NULL 1
-explain partitions select * from t1 where a=10 and b=10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-alter table t1
-PARTITION BY LIST COLUMNS(a,b)
-(
-PARTITION p2 DEFAULT,
-PARTITION p1 VALUES IN ((1,1),(0,0)),
-PARTITION p0 VALUES IN ((10,10))
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`,`b`)
-(PARTITION `p2` DEFAULT ENGINE = MyISAM,
- PARTITION `p1` VALUES IN ((1,1),(0,0)) ENGINE = MyISAM,
- PARTITION `p0` VALUES IN ((10,10)) ENGINE = MyISAM)
-select * from t1;
-a b
-2 5
-0 0
-10 10
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 1
-p2 1
-explain partitions select * from t1 where a=2 and b=5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system NULL NULL NULL NULL 1
-explain partitions select * from t1 where a=10 and b=10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-alter table t1 drop partition p2;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`,`b`)
-(PARTITION `p1` VALUES IN ((1,1),(0,0)) ENGINE = MyISAM,
- PARTITION `p0` VALUES IN ((10,10)) ENGINE = MyISAM)
-select * from t1;
-a b
-0 0
-10 10
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 1
-p1 1
-alter table t1 add partition (PARTITION pd DEFAULT);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`,`b`)
-(PARTITION `p1` VALUES IN ((1,1),(0,0)) ENGINE = MyISAM,
- PARTITION `p0` VALUES IN ((10,10)) ENGINE = MyISAM,
- PARTITION `pd` DEFAULT ENGINE = MyISAM)
-alter table t1 add partition (PARTITION pdd DEFAULT);
-ERROR HY000: Only one DEFAULT partition allowed
-alter table t1 drop partition pd;
-alter table t1 add partition (PARTITION pdd DEFAULT,
-PARTITION pd DEFAULT);
-ERROR HY000: Only one DEFAULT partition allowed
-drop table t1;
-create table t1 (a int)
-PARTITION BY LIST (a)
-(
-PARTITION p2 VALUES IN (4,5,6),
-PARTITION p1 VALUES IN (1),
-PARTITION pd DEFAULT
-)
-;
-insert into t1 values (1),(2),(3),(4);
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p1 1
-p2 1
-pd 2
-alter table t1 add partition
-(partition p0 VALUES IN (2,3));
-select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
-partition_name table_rows
-p0 0
-p1 1
-p2 1
-pd 2
-drop table t1;
-create table t1 (a int, b int)
-PARTITION BY LIST COLUMNS(a,b)
-(
-PARTITION p0 DEFAULT,
-PARTITION p2 VALUES IN ((1,4),(2,5),(3,6)),
-PARTITION p1 VALUES IN ((1,1),(0,0))
-)
-;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`,`b`)
-(PARTITION `p0` DEFAULT ENGINE = MyISAM,
- PARTITION `p2` VALUES IN ((1,4),(2,5),(3,6)) ENGINE = MyISAM,
- PARTITION `p1` VALUES IN ((1,1),(0,0)) ENGINE = MyISAM)
-drop table t1;
-#
-# MDEV-10765: Wrong result - query does not retrieve values from
-# default partition on a table partitioned by list columns
-#
-create table t1 (i int, j int) partition by list columns(i,j) (partition p1 values in ((10,10)), partition p2 default);
-insert into t1 values (10,1);
-select * from t1 where i = 10;
-i j
-10 1
-explain partitions
-select * from t1 where i = 10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2 system NULL NULL NULL NULL 1
-select * from t1 where i = 10 and j=1;
-i j
-10 1
-explain partitions
-select * from t1 where i = 10 and j=1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system NULL NULL NULL NULL 1
-insert into t1 values (10,10);
-select * from t1 where i = 10 and j=10;
-i j
-10 10
-explain partitions
-select * from t1 where i = 10 and j=10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 system NULL NULL NULL NULL 1
-drop table t1;
-create table t1
-(
-a int not null,
-b int not null,
-c int
-)
-partition by list columns(a,b)
-(
-partition p1 values in ((10,10)),
-partition p2 values in ((10,20)),
-partition p3 values in ((10,30)),
-partition p4 values in ((10,40)),
-partition p5 values in ((10,50))
-);
-insert into t1 values
-(10,10,1234),
-(10,20,1234),
-(10,30,1234),
-(10,40,1234),
-(10,50,1234);
-explain partitions
-select * from t1
-where a>=10 and (a <=10 and b <=30);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2,p3 ALL NULL NULL NULL NULL 3 Using where
-drop table t1;
-#
-# MDEV-10763: Wrong result - server does not return NULL values
-# from default list partition after ALTER table
-#
-create table t1 (i int) partition by list (i) ( partition p1 default);
-insert into t1 values (null);
-select * from t1 where i is null;
-i
-NULL
-alter table t1 partition by list (i) ( partition p1 values in (1), partition p2 default);
-select * from t1 where i is null;
-i
-NULL
-explain partitions
-select * from t1 where i is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system NULL NULL NULL NULL 1
-alter table t1 partition by list (i) (
-partition p0 values in (NULL),
-partition p1 values in (1),
-partition p2 default);
-select * from t1 where i is null;
-i
-NULL
-explain partitions
-select * from t1 where i is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-drop table t1;
-#
-# MDEV-12395: DROP PARTITION does not work as expected when
-# table has DEFAULT LIST partition
-#
-CREATE TABLE t1 (i INT)
-PARTITION BY LIST (i)
-(PARTITION p VALUES IN (1,2,3,4),
-PARTITION pdef DEFAULT);
-INSERT INTO t1 VALUES (1),(10);
-ALTER TABLE t1 DROP PARTITION p;
-SELECT * FROM t1;
-i
-10
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`i`)
-(PARTITION `pdef` DEFAULT ENGINE = MyISAM)
-DROP TABLE t1;
-CREATE TABLE t1 (i INT)
-PARTITION BY LIST (i)
-(PARTITION p VALUES IN (1,2,3,4),
-PARTITION pdef DEFAULT);
-INSERT INTO t1 VALUES (1),(10);
-ALTER TABLE t1 DROP PARTITION pdef;
-SELECT * FROM t1;
-i
-1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`i`)
-(PARTITION `p` VALUES IN (1,2,3,4) ENGINE = MyISAM)
-DROP TABLE t1;
diff --git a/mysql-test/r/partition_disabled.result b/mysql-test/r/partition_disabled.result
deleted file mode 100644
index c78552beb9d..00000000000
--- a/mysql-test/r/partition_disabled.result
+++ /dev/null
@@ -1,108 +0,0 @@
-DROP TABLE IF EXISTS t1;
-FLUSH TABLES;
-SELECT * FROM t1;
-ERROR HY000: The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-TRUNCATE TABLE t1;
-ERROR HY000: The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze Error The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-test.t1 analyze error Corrupt
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check Error The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-test.t1 check error Corrupt
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize Error The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-test.t1 optimize error Corrupt
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair Error The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-test.t1 repair error Corrupt
-ALTER TABLE t1 REPAIR PARTITION ALL;
-Table Op Msg_type Msg_text
-test.t1 repair Error The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-test.t1 repair error Corrupt
-ALTER TABLE t1 CHECK PARTITION ALL;
-Table Op Msg_type Msg_text
-test.t1 check Error The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-test.t1 check error Corrupt
-ALTER TABLE t1 OPTIMIZE PARTITION ALL;
-Table Op Msg_type Msg_text
-test.t1 optimize Error The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-test.t1 optimize error Corrupt
-ALTER TABLE t1 ANALYZE PARTITION ALL;
-Table Op Msg_type Msg_text
-test.t1 analyze Error The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-test.t1 analyze error Corrupt
-ALTER TABLE t1 REBUILD PARTITION ALL;
-ERROR HY000: The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-ALTER TABLE t1 ENGINE Memory;
-ERROR HY000: The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-ALTER TABLE t1 ADD (new INT);
-ERROR HY000: The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-DROP TABLE t1;
-CREATE TABLE t1 (
-firstname VARCHAR(25) NOT NULL,
-lastname VARCHAR(25) NOT NULL,
-username VARCHAR(16) NOT NULL,
-email VARCHAR(35),
-joined DATE NOT NULL
-)
-PARTITION BY KEY(joined)
-PARTITIONS 6;
-ERROR HY000: The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-ALTER TABLE t1 PARTITION BY KEY(joined) PARTITIONS 2;
-ERROR HY000: The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-drop table t1;
-ERROR 42S02: Unknown table 'test.t1'
-CREATE TABLE t1 (
-firstname VARCHAR(25) NOT NULL,
-lastname VARCHAR(25) NOT NULL,
-username VARCHAR(16) NOT NULL,
-email VARCHAR(35),
-joined DATE NOT NULL
-)
-PARTITION BY RANGE( YEAR(joined) ) (
-PARTITION p0 VALUES LESS THAN (1960),
-PARTITION p1 VALUES LESS THAN (1970),
-PARTITION p2 VALUES LESS THAN (1980),
-PARTITION p3 VALUES LESS THAN (1990),
-PARTITION p4 VALUES LESS THAN MAXVALUE
-);
-ERROR HY000: The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-drop table t1;
-ERROR 42S02: Unknown table 'test.t1'
-CREATE TABLE t1 (id INT, purchased DATE)
-PARTITION BY RANGE( YEAR(purchased) )
-SUBPARTITION BY HASH( TO_DAYS(purchased) )
-SUBPARTITIONS 2 (
-PARTITION p0 VALUES LESS THAN (1990),
-PARTITION p1 VALUES LESS THAN (2000),
-PARTITION p2 VALUES LESS THAN MAXVALUE
-);
-ERROR HY000: The MariaDB server is running with the --skip-partition option so it cannot execute this statement
-drop table t1;
-ERROR 42S02: Unknown table 'test.t1'
-create table t1 (a varchar(10) charset latin1 collate latin1_bin);
-insert into t1 values (''),(' '),('a'),('a '),('a ');
-explain partitions select * from t1 where a='a ' OR a='a';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 Using where
-drop table t1;
-#
-# bug#11760213-52599: ALTER TABLE REMOVE PARTITIONING ON NON-PARTITIONED
-# TABLE CORRUPTS MYISAM
-DROP TABLE if exists `t1`;
-CREATE TABLE `t1`(`a` INT)ENGINE=myisam;
-ALTER TABLE `t1` ADD COLUMN `b` INT;
-CREATE UNIQUE INDEX `i1` ON `t1`(`b`);
-CREATE UNIQUE INDEX `i2` ON `t1`(`a`);
-ALTER TABLE `t1` ADD PRIMARY KEY (`a`);
-ALTER TABLE `t1` REMOVE PARTITIONING;
-ERROR HY000: Partition management on a not partitioned table is not possible
-CHECK TABLE `t1` EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
diff --git a/mysql-test/r/partition_error.result b/mysql-test/r/partition_error.result
deleted file mode 100644
index 349e9771367..00000000000
--- a/mysql-test/r/partition_error.result
+++ /dev/null
@@ -1,1868 +0,0 @@
-drop table if exists t1, t2;
-#
-# Bug#60039: crash when exchanging a partition on
-# nonpartitioned table with a view
-#
-CREATE TABLE t1 (a int);
-CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1;
-ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE v1;
-ERROR 42000: Can't open table
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug#13608188 - 64038: CRASH IN HANDLER::HA_THD ON ALTER TABLE AFTER
-# REPAIR NON-EXISTING PARTITION
-#
-CREATE TABLE t1 ( a INT, b INT );
-INSERT INTO t1 VALUES (5,3),(5,6);
-ALTER TABLE t1 PARTITION BY KEY(b) PARTITIONS 3 ;
-ALTER TABLE t1 REPAIR PARTITION p1, p3;
-Table Op Msg_type Msg_text
-test.t1 repair error Error in list of partitions to test.t1
-ALTER TABLE t1 ORDER BY b;
-DROP TABLE t1;
-#
-# Bug#13593865 - 64037: CRASH IN HA_PARTITION::CREATE_HANDLERS ON
-# ALTER TABLE AFTER DROP PARTITION
-#
-CREATE TABLE t1 (a INT)
-PARTITION BY RANGE (a)
-(PARTITION p0 VALUES LESS THAN (0),
-PARTITION p1 VALUES LESS THAN MAXVALUE ) ;
-ALTER TABLE t1 DROP PARTITION p1;
-ALTER TABLE t1 ANALYZE PARTITION p0, p1;
-Table Op Msg_type Msg_text
-test.t1 analyze error Error in list of partitions to test.t1
-ALTER TABLE t1 COMMENT 'altered';
-DROP TABLE t1;
-#
-# Bug#57924: crash when creating partitioned table with
-# multiple columns in the partition key
-#
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY (a,b))
-PARTITION BY KEY(a, b, a);
-ERROR HY000: Duplicate partition field name 'a'
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY (a,b))
-PARTITION BY KEY(A, b);
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY (a,b))
-PARTITION BY KEY(a, b, A);
-ERROR HY000: Duplicate partition field name 'a'
-#
-# Bug#54483: valgrind errors when making warnings for multiline inserts
-# into partition
-#
-CREATE TABLE t1 (a VARBINARY(10))
-PARTITION BY RANGE (DAYOFWEEK(a))
-(PARTITION a1 VALUES LESS THAN (60));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a CHAR(10))
-PARTITION BY RANGE (DAYOFWEEK(a))
-(PARTITION a1 VALUES LESS THAN (60));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY RANGE (DAYOFWEEK(a))
-(PARTITION a1 VALUES LESS THAN (60));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIMESTAMP)
-PARTITION BY RANGE (DAYOFWEEK(a))
-(PARTITION a1 VALUES LESS THAN (60));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY RANGE (DAYOFWEEK(a))
-(PARTITION a1 VALUES LESS THAN (60));
-INSERT IGNORE INTO t1 VALUES ('test'),('a'),('5');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-Warning 1265 Data truncated for column 'a' at row 2
-Warning 1265 Data truncated for column 'a' at row 3
-SHOW WARNINGS;
-Level Code Message
-Warning 1265 Data truncated for column 'a' at row 1
-Warning 1265 Data truncated for column 'a' at row 2
-Warning 1265 Data truncated for column 'a' at row 3
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY RANGE (DAYOFWEEK(a))
-(PARTITION a1 VALUES LESS THAN (60));
-INSERT IGNORE INTO t1 VALUES ('test'),('a'),('5');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-Warning 1265 Data truncated for column 'a' at row 2
-Warning 1265 Data truncated for column 'a' at row 3
-SHOW WARNINGS;
-Level Code Message
-Warning 1265 Data truncated for column 'a' at row 1
-Warning 1265 Data truncated for column 'a' at row 2
-Warning 1265 Data truncated for column 'a' at row 3
-DROP TABLE t1;
-CREATE TABLE t1 (a TIME)
-PARTITION BY RANGE (DAYOFWEEK(a))
-(PARTITION a1 VALUES LESS THAN (60));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-SHOW WARNINGS;
-Level Code Message
-Error 1486 Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (TO_DAYS(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (TO_DAYS(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (TO_DAYS(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (TO_DAYS(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (TO_DAYS(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (DAYOFMONTH(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (DAYOFMONTH(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (DAYOFMONTH(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (DAYOFMONTH(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (DAYOFMONTH(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (MONTH(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (MONTH(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (MONTH(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (MONTH(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (MONTH(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (DAYOFYEAR(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (DAYOFYEAR(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (DAYOFYEAR(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (DAYOFYEAR(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (DAYOFYEAR(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (HOUR(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (HOUR(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (HOUR(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (HOUR(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (HOUR(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (MINUTE(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (MINUTE(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (MINUTE(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (MINUTE(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (MINUTE(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (QUARTER(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (QUARTER(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (QUARTER(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (QUARTER(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (QUARTER(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (SECOND(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (SECOND(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (SECOND(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (SECOND(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (SECOND(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (YEARWEEK(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (YEARWEEK(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (YEARWEEK(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (YEARWEEK(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (YEARWEEK(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (WEEKDAY(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (WEEKDAY(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (WEEKDAY(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (WEEKDAY(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (WEEKDAY(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-# TO_SECONDS() is added in 5.5.
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (TO_SECONDS(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (TO_SECONDS(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (TO_SECONDS(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (TO_SECONDS(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (TO_SECONDS(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (TIME_TO_SEC(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (TIME_TO_SEC(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (TIME_TO_SEC(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (TIME_TO_SEC(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (TIME_TO_SEC(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (FROM_DAYS(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (FROM_DAYS(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (FROM_DAYS(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (TO_DAYS(FROM_DAYS(a)));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (FROM_DAYS(a));
-ERROR HY000: The PARTITION function returns the wrong type
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (TO_DAYS(FROM_DAYS(a)));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (FROM_DAYS(a));
-ERROR HY000: The PARTITION function returns the wrong type
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (MICROSECOND(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (MICROSECOND(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (MICROSECOND(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (MICROSECOND(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (MICROSECOND(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-# Bug#57071
-CREATE TABLE t1
-(`date` date,
-`extracted_week` int,
-`yearweek` int,
-`week` int,
-`default_week_format` int)
-PARTITION BY LIST (EXTRACT(WEEK FROM date) % 3)
-(PARTITION p0 VALUES IN (0),
-PARTITION p1 VALUES IN (1),
-PARTITION p2 VALUES IN (2));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1
-(`date` date,
-`extracted_week` int,
-`yearweek` int,
-`week` int,
-`default_week_format` int);
-SET @old_default_week_format := @@default_week_format;
-SET default_week_format = 0;
-INSERT INTO t1 VALUES ('2000-01-01', EXTRACT(WEEK FROM '2000-01-01'), YEARWEEK('2000-01-01'), WEEK('2000-01-01'), @@default_week_format);
-SET default_week_format = 1;
-INSERT INTO t1 VALUES ('2000-01-01', EXTRACT(WEEK FROM '2000-01-01'), YEARWEEK('2000-01-01'), WEEK('2000-01-01'), @@default_week_format);
-SET default_week_format = 2;
-INSERT INTO t1 VALUES ('2000-01-01', EXTRACT(WEEK FROM '2000-01-01'), YEARWEEK('2000-01-01'), WEEK('2000-01-01'), @@default_week_format);
-SET default_week_format = 3;
-INSERT INTO t1 VALUES ('2000-01-01', EXTRACT(WEEK FROM '2000-01-01'), YEARWEEK('2000-01-01'), WEEK('2000-01-01'), @@default_week_format);
-SET default_week_format = 4;
-INSERT INTO t1 VALUES ('2000-01-01', EXTRACT(WEEK FROM '2000-01-01'), YEARWEEK('2000-01-01'), WEEK('2000-01-01'), @@default_week_format);
-SET default_week_format = 5;
-INSERT INTO t1 VALUES ('2000-01-01', EXTRACT(WEEK FROM '2000-01-01'), YEARWEEK('2000-01-01'), WEEK('2000-01-01'), @@default_week_format);
-SET default_week_format = 6;
-INSERT INTO t1 VALUES ('2000-01-01', EXTRACT(WEEK FROM '2000-01-01'), YEARWEEK('2000-01-01'), WEEK('2000-01-01'), @@default_week_format);
-SET default_week_format = 7;
-INSERT INTO t1 VALUES ('2000-01-01', EXTRACT(WEEK FROM '2000-01-01'), YEARWEEK('2000-01-01'), WEEK('2000-01-01'), @@default_week_format);
-SELECT * FROM t1;
-date extracted_week yearweek week default_week_format
-2000-01-01 0 199952 0 0
-2000-01-01 0 199952 0 1
-2000-01-01 52 199952 52 2
-2000-01-01 52 199952 52 3
-2000-01-01 0 199952 0 4
-2000-01-01 0 199952 0 5
-2000-01-01 52 199952 52 6
-2000-01-01 52 199952 52 7
-SET default_week_format = @old_default_week_format;
-DROP TABLE t1;
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(YEAR FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(YEAR FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(YEAR FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(YEAR FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(YEAR FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(YEAR_MONTH FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(YEAR_MONTH FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(YEAR_MONTH FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(YEAR_MONTH FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(YEAR_MONTH FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(QUARTER FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(QUARTER FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(QUARTER FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(QUARTER FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(QUARTER FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(MONTH FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(MONTH FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(MONTH FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(MONTH FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(MONTH FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-# EXTRACT(WEEK...) is disallowed, see bug#57071.
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(WEEK FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(WEEK FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(WEEK FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(WEEK FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(WEEK FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(DAY FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(DAY FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(DAY FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(DAY FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(DAY FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(DAY_HOUR FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(DAY_HOUR FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(DAY_HOUR FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(DAY_HOUR FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(DAY_HOUR FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(DAY_MINUTE FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(DAY_MINUTE FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(DAY_MINUTE FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(DAY_MINUTE FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(DAY_MINUTE FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(DAY_SECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(DAY_SECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(DAY_SECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(DAY_SECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(DAY_SECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(HOUR FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(HOUR FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(HOUR FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(HOUR FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(HOUR FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(HOUR_MINUTE FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(HOUR_MINUTE FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(HOUR_MINUTE FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(HOUR_MINUTE FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(HOUR_MINUTE FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(HOUR_SECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(HOUR_SECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(HOUR_SECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(HOUR_SECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(HOUR_SECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(MINUTE FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(MINUTE FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(MINUTE FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(MINUTE FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(MINUTE FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(MINUTE_SECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(MINUTE_SECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(MINUTE_SECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(MINUTE_SECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(MINUTE_SECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(SECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(SECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(SECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(SECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(SECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(MICROSECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(MICROSECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(DAY_MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(DAY_MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(DAY_MICROSECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(DAY_MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(DAY_MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(HOUR_MICROSECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(HOUR_MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(HOUR_MICROSECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(HOUR_MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(HOUR_MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(MINUTE_MICROSECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(MINUTE_MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(MINUTE_MICROSECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(MINUTE_MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(MINUTE_MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (EXTRACT(SECOND_MICROSECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (EXTRACT(SECOND_MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (EXTRACT(SECOND_MICROSECOND FROM a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (EXTRACT(SECOND_MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (EXTRACT(SECOND_MICROSECOND FROM a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME, b DATE)
-PARTITION BY HASH (DATEDIFF(a, b));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATE, b DATETIME)
-PARTITION BY HASH (DATEDIFF(a, b));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME, b DATE)
-PARTITION BY HASH (DATEDIFF(a, b));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b VARCHAR(10))
-PARTITION BY HASH (DATEDIFF(a, b));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT, b DATETIME)
-PARTITION BY HASH (DATEDIFF(a, b));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a TIME)
-PARTITION BY HASH (TIME_TO_SEC(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE)
-PARTITION BY HASH (TIME_TO_SEC(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a DATETIME)
-PARTITION BY HASH (TIME_TO_SEC(a));
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(10))
-PARTITION BY HASH (TIME_TO_SEC(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (TIME_TO_SEC(a));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-#
-# Bug#50036: Inconsistent errors when using TIMESTAMP
-# columns/expressions
-# 1. correct and appropriate errors in light of
-# the fix for BUG#42849:
-CREATE TABLE t1 (c TIMESTAMP)
-PARTITION BY RANGE (TO_DAYS(c))
-(PARTITION p0 VALUES LESS THAN (10000),
-PARTITION p1 VALUES LESS THAN (MAXVALUE));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t2 (c TIMESTAMP);
-ALTER TABLE t2
-PARTITION BY RANGE (TO_DAYS(c))
-(PARTITION p0 VALUES LESS THAN (10000),
-PARTITION p1 VALUES LESS THAN (MAXVALUE));
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (c TIMESTAMP)
-PARTITION BY RANGE COLUMNS(c)
-(PARTITION p0 VALUES LESS THAN ('2000-01-01 00:00:00'),
-PARTITION p1 VALUES LESS THAN (MAXVALUE));
-ERROR HY000: Field 'c' is of a not allowed type for this type of partitioning
-ALTER TABLE t2 PARTITION BY RANGE COLUMNS(c)
-(PARTITION p0 VALUES LESS THAN ('2000-01-01 00:00:00'),
-PARTITION p1 VALUES LESS THAN (MAXVALUE));
-ERROR HY000: Field 'c' is of a not allowed type for this type of partitioning
-DROP TABLE t2;
-# 2. These errors where questionable before the fix:
-# VALUES clause are checked first, clearified the error message.
-CREATE TABLE t1 (c TIMESTAMP)
-PARTITION BY RANGE (c)
-(PARTITION p0 VALUES LESS THAN ('2000-01-01 00:00:00'),
-PARTITION p1 VALUES LESS THAN (MAXVALUE));
-ERROR HY000: VALUES value for partition 'p0' must have type INT
-# TIMESTAMP is not INT (e.g. UNIX_TIMESTAMP).
-CREATE TABLE t1 (c TIMESTAMP)
-PARTITION BY RANGE (UNIX_TIMESTAMP(c))
-(PARTITION p0 VALUES LESS THAN ('2000-01-01 00:00:00'),
-PARTITION p1 VALUES LESS THAN (MAXVALUE));
-ERROR HY000: VALUES value for partition 'p0' must have type INT
-CREATE TABLE t1 (c TIMESTAMP)
-PARTITION BY RANGE (UNIX_TIMESTAMP(c))
-(PARTITION p0 VALUES LESS THAN (UNIX_TIMESTAMP(20000101000000)),
-PARTITION p1 VALUES LESS THAN (MAXVALUE));
-DROP TABLE t1;
-# Changed error from ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR
-CREATE TABLE t1 (c TIMESTAMP)
-PARTITION BY HASH (c) PARTITIONS 4;
-ERROR HY000: Field 'c' is of a not allowed type for this type of partitioning
-# Moved to partition_myisam, since it was MyISAM specific
-# Added test with existing TIMESTAMP partitioning (when it was allowed).
-#
-# Bug#49477: Assertion `0' failed in ha_partition.cc:5530
-# with temporary table and partitions
-#
-CREATE TABLE t1 (a INT) PARTITION BY HASH(a);
-CREATE TEMPORARY TABLE tmp_t1 LIKE t1;
-ERROR HY000: Cannot create temporary table with partitions
-DROP TABLE t1;
-#
-# Bug#42954: SQL MODE 'NO_DIR_IN_CREATE' does not work with
-# subpartitions
-SET @org_mode=@@sql_mode;
-SET @@sql_mode='NO_DIR_IN_CREATE';
-SELECT @@sql_mode;
-@@sql_mode
-NO_DIR_IN_CREATE
-CREATE TABLE t1 (id INT, purchased DATE)
-PARTITION BY RANGE(YEAR(purchased))
-SUBPARTITION BY HASH(TO_DAYS(purchased))
-(PARTITION p0 VALUES LESS THAN MAXVALUE
-DATA DIRECTORY = '/tmp/not-existing'
-INDEX DIRECTORY = '/tmp/not-existing');
-Warnings:
-Warning 1618 <DATA DIRECTORY> option ignored
-Warning 1618 <INDEX DIRECTORY> option ignored
-Warning 1618 <DATA DIRECTORY> option ignored
-Warning 1618 <INDEX DIRECTORY> option ignored
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) DEFAULT NULL,
- `purchased` date DEFAULT NULL
-) ENGINE=<curr_engine> DEFAULT CHARSET=latin1
- PARTITION BY RANGE (year(`purchased`))
-SUBPARTITION BY HASH (to_days(`purchased`))
-(PARTITION `p0` VALUES LESS THAN MAXVALUE ENGINE = <curr_engine>)
-DROP TABLE t1;
-CREATE TABLE t1 (id INT, purchased DATE)
-PARTITION BY RANGE(YEAR(purchased))
-SUBPARTITION BY HASH(TO_DAYS(purchased)) SUBPARTITIONS 2
-(PARTITION p0 VALUES LESS THAN MAXVALUE
-(SUBPARTITION sp0
-DATA DIRECTORY = '/tmp/not-existing'
-INDEX DIRECTORY = '/tmp/not-existing',
-SUBPARTITION sp1));
-Warnings:
-Warning 1618 <DATA DIRECTORY> option ignored
-Warning 1618 <INDEX DIRECTORY> option ignored
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) DEFAULT NULL,
- `purchased` date DEFAULT NULL
-) ENGINE=<curr_engine> DEFAULT CHARSET=latin1
- PARTITION BY RANGE (year(`purchased`))
-SUBPARTITION BY HASH (to_days(`purchased`))
-(PARTITION `p0` VALUES LESS THAN MAXVALUE
- (SUBPARTITION `sp0` ENGINE = <curr_engine>,
- SUBPARTITION `sp1` ENGINE = <curr_engine>))
-DROP TABLE t1;
-CREATE TABLE t1 (id INT, purchased DATE)
-PARTITION BY RANGE(YEAR(purchased))
-(PARTITION p0 VALUES LESS THAN MAXVALUE
-DATA DIRECTORY = '/tmp/not-existing'
-INDEX DIRECTORY = '/tmp/not-existing');
-Warnings:
-Warning 1618 <DATA DIRECTORY> option ignored
-Warning 1618 <INDEX DIRECTORY> option ignored
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) DEFAULT NULL,
- `purchased` date DEFAULT NULL
-) ENGINE=<curr_engine> DEFAULT CHARSET=latin1
- PARTITION BY RANGE (year(`purchased`))
-(PARTITION `p0` VALUES LESS THAN MAXVALUE ENGINE = <curr_engine>)
-DROP TABLE t1;
-SET @@sql_mode= @org_mode;
-CREATE TABLE t1 (a INTEGER NOT NULL, PRIMARY KEY (a));
-INSERT INTO t1 VALUES (1),(1);
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-DROP TABLE t1;
-CREATE TABLE t1 (a INTEGER NOT NULL, PRIMARY KEY (a))
-PARTITION BY KEY (a) PARTITIONS 2;
-INSERT INTO t1 VALUES (1),(1);
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-DROP TABLE t1;
-CREATE TABLE t1 (
-a int
-)
-PARTITION BY RANGE (a)
-(
-PARTITION p0 VALUES LESS THAN (1),
-PARTITION p1 VALU ES LESS THAN (2)
-);
-ERROR HY000: Syntax error: RANGE PARTITIONING requires definition of VALUES LESS THAN for each partition
-partition by list (a)
-partitions 3
-(partition x1 values in (1,2,9,4) tablespace ts1,
-partition x2 values in (3, 11, 5, 7) tablespace ts2,
-partition x3 values in (16, 8, 5+19, 70-43) tablespace ts3);
-ERROR 42000: Partitioning can not be used stand-alone in query near 'partition by list (a)
-partitions 3
-(partition x1 values in (1,2,9,4) tablespace ' at line 1
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (a)
-partitions 2;
-ERROR HY000: For LIST partitions each partition must be defined
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (sin(a))
-partitions 3
-(partition x1 values in (1,2,9,4) tablespace ts1,
-partition x2 values in (3, 11, 5, 7) tablespace ts2,
-partition x3 values in (16, 8, 5+19, 70-43) tablespace ts3);
-ERROR HY000: This partition function is not allowed
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by key (a+2)
-partitions 3
-(partition x1 tablespace ts1,
-partition x2 tablespace ts2,
-partition x3 tablespace ts3);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '+2)
-partitions 3
-(partition x1 tablespace ts1,
-partition x2 tablespace ts2,
-part' at line 6
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by key (a)
-partitions 3
-(partition tablespace ts1,
-partition x2 tablespace ts2,
-partition x3 tablespace ts3);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ts1,
-partition x2 tablespace ts2,
-partition x3 tablespace ts3)' at line 8
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by key (a,d)
-partitions 3
-(partition x1 tablespace ts1,
-partition x2 tablespace ts2,
-partition x3 tablespace ts3);
-ERROR HY000: Field in list of fields for partition function not found in table
-select load_file('$MYSQLD_DATADIR/test/t1.par');
-load_file('$MYSQLD_DATADIR/test/t1.par')
-NULL
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by hash (a + d)
-partitions 3
-(partition x1 tablespace ts1,
-partition x2 tablespace ts2,
-partition x3 tablespace ts3);
-ERROR 42S22: Unknown column 'd' in 'partition function'
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by hash (sin(a))
-partitions 3
-(partition x1 tablespace ts1,
-partition x2 tablespace ts2,
-partition x3 tablespace ts3);
-ERROR HY000: This partition function is not allowed
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by key (a)
-partitions 3
-(partition x1, partition x2);
-ERROR 42000: Wrong number of partitions defined, mismatch with previous setting near ')' at line 8
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by hash (rand(a))
-partitions 2
-(partition x1, partition x2);
-ERROR 42000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed near ')
-partitions 2
-(partition x1, partition x2)' at line 6
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (rand(a))
-partitions 2
-(partition x1 values less than (0), partition x2 values less than (2));
-ERROR 42000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed near ')
-partitions 2
-(partition x1 values less than (0), partition x2 values less than' at line 6
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (rand(a))
-partitions 2
-(partition x1 values in (1), partition x2 values in (2));
-ERROR 42000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed near ')
-partitions 2
-(partition x1 values in (1), partition x2 values in (2))' at line 6
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by hash (a)
-partitions 2
-(partition x1 values less than (4),
-partition x2 values less than (5));
-ERROR HY000: Only RANGE PARTITIONING can use VALUES LESS THAN in partition definition
-select load_file('$MYSQLD_DATADIR/test/t1.par');
-load_file('$MYSQLD_DATADIR/test/t1.par')
-NULL
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by hash (a)
-partitions 2
-(partition x1 values in (4),
-partition x2 values in (5));
-ERROR HY000: Only LIST PARTITIONING can use VALUES IN in partition definition
-select load_file('$MYSQLD_DATADIR/test/t1.par');
-load_file('$MYSQLD_DATADIR/test/t1.par')
-NULL
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by hash (a)
-partitions 2
-(partition x1 values in (4,6),
-partition x2 values in (5,7));
-ERROR HY000: Only LIST PARTITIONING can use VALUES IN in partition definition
-select load_file('$MYSQLD_DATADIR/test/t1.par');
-load_file('$MYSQLD_DATADIR/test/t1.par')
-NULL
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by key (a)
-subpartition by key (b);
-ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
-select load_file('$MYSQLD_DATADIR/test/t1.par');
-load_file('$MYSQLD_DATADIR/test/t1.par')
-NULL
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by key (a)
-subpartition by key (a, b);
-ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
-select load_file('$MYSQLD_DATADIR/test/t1.par');
-load_file('$MYSQLD_DATADIR/test/t1.par')
-NULL
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by key (a)
-subpartition by hash (a+b);
-ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
-select load_file('$MYSQLD_DATADIR/test/t1.par');
-load_file('$MYSQLD_DATADIR/test/t1.par')
-NULL
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by key (a)
-subpartition by key (b);
-ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
-select load_file('$MYSQLD_DATADIR/test/t1.par');
-load_file('$MYSQLD_DATADIR/test/t1.par')
-NULL
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by key (a)
-subpartition by key (a, b);
-ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
-select load_file('$MYSQLD_DATADIR/test/t1.par');
-load_file('$MYSQLD_DATADIR/test/t1.par')
-NULL
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by key (a)
-subpartition by hash (a+b);
-ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
-select load_file('$MYSQLD_DATADIR/test/t1.par');
-load_file('$MYSQLD_DATADIR/test/t1.par')
-NULL
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by key (a)
-subpartition by hash (rand(a+b));
-ERROR 42000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed near ')' at line 7
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by key (a)
-subpartition by hash (sin(a+b))
-(partition x1 (subpartition x11, subpartition x12),
-partition x2 (subpartition x21, subpartition x22));
-ERROR HY000: This partition function is not allowed
-select load_file('$MYSQLD_DATADIR/test/t1.par');
-load_file('$MYSQLD_DATADIR/test/t1.par')
-NULL
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by range (a)
-subpartition by key (a+b)
-(partition x1 values less than (1) (subpartition x11, subpartition x12),
-partition x2 values less than (2) (subpartition x21, subpartition x22));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '+b)
-(partition x1 values less than (1) (subpartition x11, subpartition x12),
-par' at line 7
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by range (a)
-subpartition by key (a,d)
-(partition x1 values less than (1) (subpartition x11, subpartition x12),
-partition x2 values less than (2) (subpartition x21, subpartition x22));
-ERROR HY000: Field in list of fields for partition function not found in table
-select load_file('$MYSQLD_DATADIR/test/t1.par');
-load_file('$MYSQLD_DATADIR/test/t1.par')
-NULL
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by key (a)
-subpartition by hash (3+4);
-ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by range (a)
-subpartition by hash (a+d)
-(partition x1 values less than (1) (subpartition x11, subpartition x12),
-partition x2 values less than (2) (subpartition x21, subpartition x22));
-ERROR 42S22: Unknown column 'd' in 'partition function'
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (a);
-ERROR HY000: For RANGE partitions each partition must be defined
-select load_file('$MYSQLD_DATADIR/test/t1.par');
-load_file('$MYSQLD_DATADIR/test/t1.par')
-NULL
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (a+d)
-partitions 2
-(partition x1 values less than (4) tablespace ts1,
-partition x2 values less than (8) tablespace ts2);
-ERROR 42S22: Unknown column 'd' in 'partition function'
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (4.0) tablespace ts1,
-partition x2 values less than (8) tablespace ts2);
-ERROR HY000: VALUES value for partition 'x1' must have type INT
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (3+4)
-partitions 2
-(partition x1 values less than (4) tablespace ts1,
-partition x2 values less than (8) tablespace ts2);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (4),
-partition x2);
-ERROR HY000: Syntax error: RANGE PARTITIONING requires definition of VALUES LESS THAN for each partition
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (a)
-partitions 2
-(partition x1 values in (4),
-partition x2);
-ERROR HY000: Only LIST PARTITIONING can use VALUES IN in partition definition
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (a)
-partitions 2
-(partition x1 values in (4),
-partition x2 values less than (5));
-ERROR HY000: Only LIST PARTITIONING can use VALUES IN in partition definition
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (a)
-partitions 2
-(partition x1 values less than 4,
-partition x2 values less than (5));
-ERROR HY000: Only RANGE PARTITIONING can use VALUES LESS THAN in partition definition
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (a)
-partitions 2
-(partition x1 values less than maxvalue,
-partition x2 values less than (5));
-ERROR HY000: MAXVALUE can only be used in last partition definition
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (a)
-partitions 2
-(partition x1 values less than maxvalue,
-partition x2 values less than maxvalue);
-ERROR HY000: MAXVALUE can only be used in last partition definition
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (4),
-partition x2 values less than (3));
-ERROR HY000: VALUES LESS THAN value must be strictly increasing for each partition
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (sin(a))
-partitions 2
-(partition x1 values less than (4),
-partition x2 values less than (5));
-ERROR HY000: This partition function is not allowed
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by list (a)
-subpartition by hash (a+b)
-subpartitions 3
-( partition x1 values in (1,2,4)
-( subpartition x11 nodegroup 0,
-subpartition x12 nodegroup 1),
-partition x2 values in (3,5,6)
-( subpartition x21 nodegroup 0,
-subpartition x22 nodegroup 1)
-);
-ERROR 42000: Wrong number of subpartitions defined, mismatch with previous setting near '),
-partition x2 values in (3,5,6)
-( subpartition x21 nodegroup 0,
-subpartition x' at line 11
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by list (a)
-subpartition by hash (a+b)
-( partition x1 values in (1)
-( subpartition x11 nodegroup 0,
-subpartition xextra,
-subpartition x12 nodegroup 1),
-partition x2 values in (2)
-( subpartition x21 nodegroup 0,
-subpartition x22 nodegroup 1)
-);
-ERROR 42000: Wrong number of subpartitions defined, mismatch with previous setting near ')
-)' at line 14
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by key (a)
-subpartition by list (a+b)
-( partition x1
-( subpartition x11 engine myisam,
-subpartition x12 engine myisam),
-partition x2
-( subpartition x21 engine myisam,
-subpartition x22 engine myisam)
-);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'list (a+b)
-( partition x1
-( subpartition x11 engine myisam,
-subpartition x12 eng' at line 7
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by key (a)
-subpartition by list (a+b)
-( partition x1
-( subpartition x11 engine myisam values in (0),
-subpartition x12 engine myisam values in (1)),
-partition x2
-( subpartition x21 engine myisam values in (0),
-subpartition x22 engine myisam values in (1))
-);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'list (a+b)
-( partition x1
-( subpartition x11 engine myisam values in (0),
-subpar' at line 7
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (a);
-ERROR HY000: For LIST partitions each partition must be defined
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (3+4)
-partitions 2
-(partition x1 values in (4) tablespace ts1,
-partition x2 values in (8) tablespace ts2);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (a+d)
-partitions 2
-(partition x1 values in (4) tablespace ts1,
-partition x2 values in (8) tablespace ts2);
-ERROR 42S22: Unknown column 'd' in 'partition function'
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (a)
-partitions 2
-(partition x1 values in (4),
-partition x2);
-ERROR HY000: Syntax error: LIST PARTITIONING requires definition of VALUES IN for each partition
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (a)
-partitions 2
-(partition x1 values in (4),
-partition x2 values less than (5));
-ERROR HY000: Only RANGE PARTITIONING can use VALUES LESS THAN in partition definition
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (a)
-partitions 2
-(partition x1 values in (4,6),
-partition x2);
-ERROR HY000: Syntax error: LIST PARTITIONING requires definition of VALUES IN for each partition
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (a)
-partitions 2
-(partition x1 values in (4, 12+9),
-partition x2 values in (3, 21));
-ERROR HY000: Multiple definition of same constant in list partitioning
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (a)
-partitions 2
-(partition x1 values in (4.0, 12+8),
-partition x2 values in (3, 21));
-ERROR HY000: VALUES value for partition 'x1' must have type INT
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (a)
-partitions 2
-(partition x1 values in 4,
-partition x2 values in (5));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '4,
-partition x2 values in (5))' at line 8
-CREATE TABLE t1 (a int)
-PARTITION BY RANGE (a)
-(PARTITION p0 VALUES LESS THAN (x1));
-ERROR 42S22: Unknown column 'x1' in 'partition function'
-CREATE TABLE t1(a int)
-PARTITION BY RANGE (a) (PARTITION p1 VALUES LESS THAN(5));
-insert into t1 values (10);
-ERROR HY000: Table has no partition for value 10
-drop table t1;
-create table t1 (a bigint unsigned)
-partition by range (a)
-(partition p0 values less than (-1));
-ERROR HY000: Partition constant is out of partition function domain
-create table t1 (v varchar(12))
-partition by range (ascii(v))
-(partition p0 values less than (10));
-ERROR HY000: This partition function is not allowed
-create table t1 (a int)
-partition by hash (rand(a));
-ERROR 42000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed near ')' at line 2
-create table t1 (a int)
-partition by hash(CURTIME() + a);
-ERROR 42000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed near ')' at line 2
-create table t1 (a int)
-partition by hash (NOW()+a);
-ERROR 42000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed near ')' at line 2
-create table t1 (a int)
-partition by hash (extract(hour from convert_tz(a, '+00:00', '+00:00')));
-ERROR HY000: This partition function is not allowed
-create table t1 (a int)
-partition by range (a + (select count(*) from t1))
-(partition p1 values less than (1));
-ERROR HY000: This partition function is not allowed
-create table t1 (a char(10))
-partition by hash (extractvalue(a,'a'));
-ERROR HY000: This partition function is not allowed
-#
-# Bug #42849: innodb crash with varying time_zone on partitioned
-# timestamp primary key
-#
-CREATE TABLE old (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (UNIX_TIMESTAMP(a)) (
-PARTITION p VALUES LESS THAN (1219089600),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (a) (
-PARTITION p VALUES LESS THAN (20080819),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Field 'a' is of a not allowed type for this type of partitioning
-ALTER TABLE old
-PARTITION BY RANGE (a) (
-PARTITION p VALUES LESS THAN (20080819),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Field 'a' is of a not allowed type for this type of partitioning
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (a+0) (
-PARTITION p VALUES LESS THAN (20080819),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (a+0) (
-PARTITION p VALUES LESS THAN (20080819),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (a % 2) (
-PARTITION p VALUES LESS THAN (20080819),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (a % 2) (
-PARTITION p VALUES LESS THAN (20080819),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (ABS(a)) (
-PARTITION p VALUES LESS THAN (20080819),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (ABS(a)) (
-PARTITION p VALUES LESS THAN (20080819),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (CEILING(a)) (
-PARTITION p VALUES LESS THAN (20080819),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (CEILING(a)) (
-PARTITION p VALUES LESS THAN (20080819),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (FLOOR(a)) (
-PARTITION p VALUES LESS THAN (20080819),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (FLOOR(a)) (
-PARTITION p VALUES LESS THAN (20080819),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (TO_DAYS(a)) (
-PARTITION p VALUES LESS THAN (733638),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (TO_DAYS(a)) (
-PARTITION p VALUES LESS THAN (733638),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (DAYOFYEAR(a)) (
-PARTITION p VALUES LESS THAN (231),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (DAYOFYEAR(a)) (
-PARTITION p VALUES LESS THAN (231),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (DAYOFMONTH(a)) (
-PARTITION p VALUES LESS THAN (19),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (DAYOFMONTH(a)) (
-PARTITION p VALUES LESS THAN (19),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (DAYOFWEEK(a)) (
-PARTITION p VALUES LESS THAN (3),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (DAYOFWEEK(a)) (
-PARTITION p VALUES LESS THAN (3),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (MONTH(a)) (
-PARTITION p VALUES LESS THAN (8),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (MONTH(a)) (
-PARTITION p VALUES LESS THAN (8),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (HOUR(a)) (
-PARTITION p VALUES LESS THAN (17),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (HOUR(a)) (
-PARTITION p VALUES LESS THAN (17),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (MINUTE(a)) (
-PARTITION p VALUES LESS THAN (55),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (MINUTE(a)) (
-PARTITION p VALUES LESS THAN (55),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (QUARTER(a)) (
-PARTITION p VALUES LESS THAN (3),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (QUARTER(a)) (
-PARTITION p VALUES LESS THAN (3),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (SECOND(a)) (
-PARTITION p VALUES LESS THAN (7),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (SECOND(a)) (
-PARTITION p VALUES LESS THAN (7),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (YEARWEEK(a)) (
-PARTITION p VALUES LESS THAN (200833),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (YEARWEEK(a)) (
-PARTITION p VALUES LESS THAN (200833),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (YEAR(a)) (
-PARTITION p VALUES LESS THAN (2008),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (YEAR(a)) (
-PARTITION p VALUES LESS THAN (2008),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (WEEKDAY(a)) (
-PARTITION p VALUES LESS THAN (3),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (WEEKDAY(a)) (
-PARTITION p VALUES LESS THAN (3),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (TIME_TO_SEC(a)) (
-PARTITION p VALUES LESS THAN (64507),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (TIME_TO_SEC(a)) (
-PARTITION p VALUES LESS THAN (64507),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (EXTRACT(DAY FROM a)) (
-PARTITION p VALUES LESS THAN (18),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (EXTRACT(DAY FROM a)) (
-PARTITION p VALUES LESS THAN (18),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL, b TIMESTAMP NOT NULL, PRIMARY KEY(a,b))
-PARTITION BY RANGE (DATEDIFF(a, a)) (
-PARTITION p VALUES LESS THAN (18),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (DATEDIFF(a, a)) (
-PARTITION p VALUES LESS THAN (18),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (YEAR(a + 0)) (
-PARTITION p VALUES LESS THAN (2008),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (YEAR(a + 0)) (
-PARTITION p VALUES LESS THAN (2008),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (TO_DAYS(a + '2008-01-01')) (
-PARTITION p VALUES LESS THAN (733638),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (TO_DAYS(a + '2008-01-01')) (
-PARTITION p VALUES LESS THAN (733638),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP NOT NULL PRIMARY KEY)
-PARTITION BY RANGE (YEAR(a + '2008-01-01')) (
-PARTITION p VALUES LESS THAN (2008),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (YEAR(a + '2008-01-01')) (
-PARTITION p VALUES LESS THAN (2008),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old ADD COLUMN b DATE;
-CREATE TABLE new (a TIMESTAMP, b DATE)
-PARTITION BY RANGE (YEAR(a + b)) (
-PARTITION p VALUES LESS THAN (2008),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (YEAR(a + b)) (
-PARTITION p VALUES LESS THAN (2008),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP, b DATE)
-PARTITION BY RANGE (TO_DAYS(a + b)) (
-PARTITION p VALUES LESS THAN (733638),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (TO_DAYS(a + b)) (
-PARTITION p VALUES LESS THAN (733638),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP, b date)
-PARTITION BY RANGE (UNIX_TIMESTAMP(a + b)) (
-PARTITION p VALUES LESS THAN (1219089600),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old
-PARTITION BY RANGE (UNIX_TIMESTAMP(a + b)) (
-PARTITION p VALUES LESS THAN (1219089600),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-CREATE TABLE new (a TIMESTAMP, b TIMESTAMP)
-PARTITION BY RANGE (UNIX_TIMESTAMP(a + b)) (
-PARTITION p VALUES LESS THAN (1219089600),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-ALTER TABLE old MODIFY b TIMESTAMP;
-ALTER TABLE old
-PARTITION BY RANGE (UNIX_TIMESTAMP(a + b)) (
-PARTITION p VALUES LESS THAN (1219089600),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-DROP TABLE old;
-#
-# Bug #56709: Memory leaks at running the 5.1 test suite
-#
-CREATE TABLE t1 (a TIMESTAMP NOT NULL PRIMARY KEY);
-ALTER TABLE t1
-PARTITION BY RANGE (EXTRACT(DAY FROM a)) (
-PARTITION p VALUES LESS THAN (18),
-PARTITION pmax VALUES LESS THAN MAXVALUE);
-ERROR HY000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
-DROP TABLE t1;
-End of 5.1 tests
-create table t1 (a int) partition by list (values(a) div 1) (partition p0 values in (0), partition p1 values in (1));
-ERROR HY000: This partition function is not allowed
-create table t1 (a int) partition by list (uuid_short()) (partition p0 values in (0), partition p1 values in (1));
-ERROR 42000: Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed near ') (partition p0 values in (0), partition p1 values in (1))' at line 1
-End of 5.5 tests
-CREATE TABLE t1 (a INT)
-PARTITION BY LIST (a)
-SUBPARTITION BY HASH (a) SUBPARTITIONS 2
-(PARTITION p1 VALUES IN (1) COMMENT "Comment in p1"
- (SUBPARTITION p1spFirst COMMENT "SubPartition comment in p1spFirst",
-SUBPARTITION p1spSecond COMMENT "SubPartition comment in p1spSecond"),
-PARTITION p2 VALUES IN (2) COMMENT "Comment in p2"
- (SUBPARTITION p2spFirst COMMENT "SubPartition comment in p2spFirst",
-SUBPARTITION p2spSecond COMMENT "SubPartition comment in p2spSecond"));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-SUBPARTITION BY HASH (`a`)
-(PARTITION `p1` VALUES IN (1)
- (SUBPARTITION `p1spFirst` COMMENT = 'SubPartition comment in p1spFirst' ENGINE = MyISAM,
- SUBPARTITION `p1spSecond` COMMENT = 'SubPartition comment in p1spSecond' ENGINE = MyISAM),
- PARTITION `p2` VALUES IN (2)
- (SUBPARTITION `p2spFirst` COMMENT = 'SubPartition comment in p2spFirst' ENGINE = MyISAM,
- SUBPARTITION `p2spSecond` COMMENT = 'SubPartition comment in p2spSecond' ENGINE = MyISAM))
-SELECT PARTITION_NAME, SUBPARTITION_NAME, PARTITION_COMMENT FROM INFORMATION_SCHEMA.PARTITIONS
-WHERE TABLE_NAME = 't1' AND TABLE_SCHEMA = 'test';
-PARTITION_NAME SUBPARTITION_NAME PARTITION_COMMENT
-p1 p1spFirst SubPartition comment in p1spFirst
-p1 p1spSecond SubPartition comment in p1spSecond
-p2 p2spFirst SubPartition comment in p2spFirst
-p2 p2spSecond SubPartition comment in p2spSecond
-DROP TABLE t1;
-CREATE TABLE t1 (a INT)
-PARTITION BY LIST (a)
-SUBPARTITION BY HASH (a) SUBPARTITIONS 2
-(PARTITION p1 VALUES IN (1)
-(SUBPARTITION p1spFirst COMMENT "SubPartition comment in p1spFirst",
-SUBPARTITION p1spSecond),
-PARTITION p2 VALUES IN (2) COMMENT "Comment in p2"
- (SUBPARTITION p2spFirst,
-SUBPARTITION p2spSecond COMMENT "SubPartition comment in p2spSecond"));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-SUBPARTITION BY HASH (`a`)
-(PARTITION `p1` VALUES IN (1)
- (SUBPARTITION `p1spFirst` COMMENT = 'SubPartition comment in p1spFirst' ENGINE = MyISAM,
- SUBPARTITION `p1spSecond` ENGINE = MyISAM),
- PARTITION `p2` VALUES IN (2)
- (SUBPARTITION `p2spFirst` COMMENT = 'Comment in p2' ENGINE = MyISAM,
- SUBPARTITION `p2spSecond` COMMENT = 'SubPartition comment in p2spSecond' ENGINE = MyISAM))
-SELECT PARTITION_NAME, SUBPARTITION_NAME, PARTITION_COMMENT FROM INFORMATION_SCHEMA.PARTITIONS
-WHERE TABLE_NAME = 't1' AND TABLE_SCHEMA = 'test';
-PARTITION_NAME SUBPARTITION_NAME PARTITION_COMMENT
-p1 p1spFirst SubPartition comment in p1spFirst
-p1 p1spSecond
-p2 p2spFirst Comment in p2
-p2 p2spSecond SubPartition comment in p2spSecond
-DROP TABLE t1;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t1
-(a INT ,
-KEY inx_a (a) )
-PARTITION BY RANGE (a)
-SUBPARTITION BY HASH (a) SUBPARTITIONS 2
-(PARTITION pUpTo10 VALUES LESS THAN (10) COMMENT
-"This is a long comment (2050 ascii characters) 50 pUpTo10 partition ......80-!.................. 100 ................................................................................................ 200....................................................................................................................................................................................................................................................................................................... 500 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1000 ..............1024-|.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1500 .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 2000 ......................................2048-|++"
- (SUBPARTITION `p-10sp0` ,SUBPARTITION `p-10sp1` ),
-PARTITION pMax VALUES LESS THAN MAXVALUE COMMENT
-"This is a long comment (2050 ascii characters) 50 pMax partition comment .80-!.................. 100 ................................................................................................ 200....................................................................................................................................................................................................................................................................................................... 500 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1000 ..............1024-|.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1500 .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 2000 ......................................2048-|++"
- (SUBPARTITION `pMaxsp0` ,SUBPARTITION `pMaxsp1` ));
-Warnings:
-Warning 1793 Comment for table partition 'pUpTo10' is too long (max = 1024)
-Warning 1793 Comment for table partition 'pMax' is too long (max = 1024)
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- KEY `inx_a` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-SUBPARTITION BY HASH (`a`)
-(PARTITION `pUpTo10` VALUES LESS THAN (10)
- (SUBPARTITION `p-10sp0` COMMENT = 'This is a long comment (2050 ascii characters) 50 pUpTo10 partition ......80-!.................. 100 ................................................................................................ 200....................................................................................................................................................................................................................................................................................................... 500 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1000 ..............1024-|' ENGINE = MyISAM,
- SUBPARTITION `p-10sp1` COMMENT = 'This is a long comment (2050 ascii characters) 50 pUpTo10 partition ......80-!.................. 100 ................................................................................................ 200....................................................................................................................................................................................................................................................................................................... 500 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1000 ..............1024-|' ENGINE = MyISAM),
- PARTITION `pMax` VALUES LESS THAN MAXVALUE
- (SUBPARTITION `pMaxsp0` COMMENT = 'This is a long comment (2050 ascii characters) 50 pMax partition comment .80-!.................. 100 ................................................................................................ 200....................................................................................................................................................................................................................................................................................................... 500 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1000 ..............1024-|' ENGINE = MyISAM,
- SUBPARTITION `pMaxsp1` COMMENT = 'This is a long comment (2050 ascii characters) 50 pMax partition comment .80-!.................. 100 ................................................................................................ 200....................................................................................................................................................................................................................................................................................................... 500 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1000 ..............1024-|' ENGINE = MyISAM))
-SELECT PARTITION_NAME, SUBPARTITION_NAME, PARTITION_COMMENT FROM INFORMATION_SCHEMA.PARTITIONS
-WHERE TABLE_NAME = 't1' AND TABLE_SCHEMA = 'test';
-PARTITION_NAME SUBPARTITION_NAME PARTITION_COMMENT
-pUpTo10 p-10sp0 This is a long comment (2050 ascii characters) 50 pUpTo10 partition ......80-!
-pUpTo10 p-10sp1 This is a long comment (2050 ascii characters) 50 pUpTo10 partition ......80-!
-pMax pMaxsp0 This is a long comment (2050 ascii characters) 50 pMax partition comment .80-!
-pMax pMaxsp1 This is a long comment (2050 ascii characters) 50 pMax partition comment .80-!
-DROP TABLE t1;
diff --git a/mysql-test/r/partition_example.result b/mysql-test/r/partition_example.result
deleted file mode 100644
index 3aa1ed639ca..00000000000
--- a/mysql-test/r/partition_example.result
+++ /dev/null
@@ -1,31 +0,0 @@
-install plugin example soname 'ha_example.so';
-create table t1 (a int not null)
-engine=example
-partition by list (a)
-(partition p0 values in (1), partition p1 values in (2));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL
-) ENGINE=EXAMPLE DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p0` VALUES IN (1) ENGINE = EXAMPLE,
- PARTITION `p1` VALUES IN (2) ENGINE = EXAMPLE)
-drop table t1;
-create table t1 (a int not null)
-engine=example ull=12340
-partition by list (a)
-(partition p0 values in (1), partition p1 values in (2));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL
-) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `ull`=12340
- PARTITION BY LIST (`a`)
-(PARTITION `p0` VALUES IN (1) ENGINE = EXAMPLE,
- PARTITION `p1` VALUES IN (2) ENGINE = EXAMPLE)
-drop table t1;
-select 1;
-1
-1
-uninstall plugin example;
diff --git a/mysql-test/r/partition_exchange.result b/mysql-test/r/partition_exchange.result
deleted file mode 100644
index 3bce5aec8e2..00000000000
--- a/mysql-test/r/partition_exchange.result
+++ /dev/null
@@ -1,1299 +0,0 @@
-DROP TABLE IF EXISTS t1, t2, t3, t, tp, tsp, tmp;
-#
-# Bug#11894100: EXCHANGE PARTITION CAN'T BE EXECUTED IF
-# ROW_FORMAT WAS SET EXPLICITLY
-#
-# Same definition (both have ROW_FORMAT set)
-CREATE TABLE t1 (
-id int(11) NOT NULL AUTO_INCREMENT,
-year year(2) DEFAULT NULL,
-modified timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-PRIMARY KEY (id)
-) ENGINE=InnoDB ROW_FORMAT=COMPACT
-PARTITION BY HASH (id)
-PARTITIONS 2;
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-CREATE TABLE t2 LIKE t1;
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-ALTER TABLE t2 REMOVE PARTITIONING;
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-SHOW CREATE TABLE t1;
-Table t1
-Create Table CREATE TABLE `t1` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
- PARTITION BY HASH (`id`)
-PARTITIONS 2
-SHOW CREATE TABLE t2;
-Table t2
-Create Table CREATE TABLE `t2` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
-SELECT TABLE_NAME, TABLE_TYPE, ENGINE, ROW_FORMAT, CREATE_OPTIONS
-FROM INFORMATION_SCHEMA.TABLES
-WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME IN ('t1', 't2')
-ORDER BY TABLE_NAME;
-TABLE_NAME t1
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Compact
-CREATE_OPTIONS row_format=COMPACT partitioned
-TABLE_NAME t2
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Compact
-CREATE_OPTIONS row_format=COMPACT
-ALTER TABLE t1 EXCHANGE PARTITION p1 WITH TABLE t2;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-SHOW CREATE TABLE t1;
-Table t1
-Create Table CREATE TABLE `t1` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
- PARTITION BY HASH (`id`)
-PARTITIONS 2
-SHOW CREATE TABLE t2;
-Table t2
-Create Table CREATE TABLE `t2` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
-SELECT TABLE_NAME, TABLE_TYPE, ENGINE, ROW_FORMAT, CREATE_OPTIONS
-FROM INFORMATION_SCHEMA.TABLES
-WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME IN ('t1', 't2')
-ORDER BY TABLE_NAME;
-TABLE_NAME t1
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Compact
-CREATE_OPTIONS row_format=COMPACT partitioned
-TABLE_NAME t2
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Compact
-CREATE_OPTIONS row_format=COMPACT
-DROP TABLE t2;
-# Only the partitioned table have ROW_FORMAT set.
-CREATE TABLE t2 (
-id int(11) NOT NULL AUTO_INCREMENT,
-year year(2) DEFAULT NULL,
-modified timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-PRIMARY KEY (id)
-) ENGINE=InnoDB;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-ALTER TABLE t1 EXCHANGE PARTITION p1 WITH TABLE t2;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-SHOW CREATE TABLE t1;
-Table t1
-Create Table CREATE TABLE `t1` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
- PARTITION BY HASH (`id`)
-PARTITIONS 2
-SHOW CREATE TABLE t2;
-Table t2
-Create Table CREATE TABLE `t2` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT TABLE_NAME, TABLE_TYPE, ENGINE, ROW_FORMAT, CREATE_OPTIONS
-FROM INFORMATION_SCHEMA.TABLES
-WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME IN ('t1', 't2')
-ORDER BY TABLE_NAME;
-TABLE_NAME t1
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Compact
-CREATE_OPTIONS row_format=COMPACT partitioned
-TABLE_NAME t2
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Compact
-CREATE_OPTIONS
-# Only the non partitioned table have ROW_FORMAT set.
-DROP TABLE t1, t2;
-CREATE TABLE t1 (
-id int(11) NOT NULL AUTO_INCREMENT,
-year year(2) DEFAULT NULL,
-modified timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-PRIMARY KEY (id)
-) ENGINE=InnoDB
-PARTITION BY HASH (id)
-PARTITIONS 2;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-CREATE TABLE t2 (
-id int(11) NOT NULL AUTO_INCREMENT,
-year year(2) DEFAULT NULL,
-modified timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-PRIMARY KEY (id)
-) ENGINE=InnoDB ROW_FORMAT = COMPACT;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-ALTER TABLE t1 EXCHANGE PARTITION p1 WITH TABLE t2;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-SHOW CREATE TABLE t1;
-Table t1
-Create Table CREATE TABLE `t1` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY HASH (`id`)
-PARTITIONS 2
-SHOW CREATE TABLE t2;
-Table t2
-Create Table CREATE TABLE `t2` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
-SELECT TABLE_NAME, TABLE_TYPE, ENGINE, ROW_FORMAT, CREATE_OPTIONS
-FROM INFORMATION_SCHEMA.TABLES
-WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME IN ('t1', 't2')
-ORDER BY TABLE_NAME;
-TABLE_NAME t1
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Compact
-CREATE_OPTIONS partitioned
-TABLE_NAME t2
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Compact
-CREATE_OPTIONS row_format=COMPACT
-# No table have ROW_FORMAT set.
-DROP TABLE t1, t2;
-CREATE TABLE t1 (
-id int(11) NOT NULL AUTO_INCREMENT,
-year year(2) DEFAULT NULL,
-modified timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-PRIMARY KEY (id)
-) ENGINE=InnoDB
-PARTITION BY HASH (id)
-PARTITIONS 2;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-CREATE TABLE t2 (
-id int(11) NOT NULL AUTO_INCREMENT,
-year year(2) DEFAULT NULL,
-modified timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-PRIMARY KEY (id)
-) ENGINE=InnoDB;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-ALTER TABLE t1 EXCHANGE PARTITION p1 WITH TABLE t2;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-SHOW CREATE TABLE t1;
-Table t1
-Create Table CREATE TABLE `t1` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY HASH (`id`)
-PARTITIONS 2
-SHOW CREATE TABLE t2;
-Table t2
-Create Table CREATE TABLE `t2` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT TABLE_NAME, TABLE_TYPE, ENGINE, ROW_FORMAT, CREATE_OPTIONS
-FROM INFORMATION_SCHEMA.TABLES
-WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME IN ('t1', 't2')
-ORDER BY TABLE_NAME;
-TABLE_NAME t1
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Compact
-CREATE_OPTIONS partitioned
-TABLE_NAME t2
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Compact
-CREATE_OPTIONS
-# Not same ROW_FORMAT as default (but same).
-DROP TABLE t1, t2;
-CREATE TABLE t1 (
-id int(11) NOT NULL AUTO_INCREMENT,
-year year(2) DEFAULT NULL,
-modified timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-PRIMARY KEY (id)
-) ENGINE=InnoDB ROW_FORMAT = REDUNDANT
-PARTITION BY HASH (id)
-PARTITIONS 2;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-CREATE TABLE t2 (
-id int(11) NOT NULL AUTO_INCREMENT,
-year year(2) DEFAULT NULL,
-modified timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-PRIMARY KEY (id)
-) ENGINE=InnoDB ROW_FORMAT = REDUNDANT;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-ALTER TABLE t1 EXCHANGE PARTITION p1 WITH TABLE t2;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-SHOW CREATE TABLE t1;
-Table t1
-Create Table CREATE TABLE `t1` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT
- PARTITION BY HASH (`id`)
-PARTITIONS 2
-SHOW CREATE TABLE t2;
-Table t2
-Create Table CREATE TABLE `t2` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT
-SELECT TABLE_NAME, TABLE_TYPE, ENGINE, ROW_FORMAT, CREATE_OPTIONS
-FROM INFORMATION_SCHEMA.TABLES
-WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME IN ('t1', 't2')
-ORDER BY TABLE_NAME;
-TABLE_NAME t1
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Redundant
-CREATE_OPTIONS row_format=REDUNDANT partitioned
-TABLE_NAME t2
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Redundant
-CREATE_OPTIONS row_format=REDUNDANT
-# Not same ROW_FORMAT as default (tables differs).
-DROP TABLE t1, t2;
-CREATE TABLE t1 (
-id int(11) NOT NULL AUTO_INCREMENT,
-year year(2) DEFAULT NULL,
-modified timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-PRIMARY KEY (id)
-) ENGINE=InnoDB
-PARTITION BY HASH (id)
-PARTITIONS 2;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-CREATE TABLE t2 (
-id int(11) NOT NULL AUTO_INCREMENT,
-year year(2) DEFAULT NULL,
-modified timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-PRIMARY KEY (id)
-) ENGINE=InnoDB ROW_FORMAT = REDUNDANT;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-ALTER TABLE t1 EXCHANGE PARTITION p1 WITH TABLE t2;
-ERROR HY000: Non matching attribute 'ROW_FORMAT' between partition and table
-SHOW CREATE TABLE t1;
-Table t1
-Create Table CREATE TABLE `t1` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY HASH (`id`)
-PARTITIONS 2
-SHOW CREATE TABLE t2;
-Table t2
-Create Table CREATE TABLE `t2` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT
-SELECT TABLE_NAME, TABLE_TYPE, ENGINE, ROW_FORMAT, CREATE_OPTIONS
-FROM INFORMATION_SCHEMA.TABLES
-WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME IN ('t1', 't2')
-ORDER BY TABLE_NAME;
-TABLE_NAME t1
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Compact
-CREATE_OPTIONS partitioned
-TABLE_NAME t2
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Redundant
-CREATE_OPTIONS row_format=REDUNDANT
-# Different than default (forced ROW_TYPE)
-DROP TABLE t1, t2;
-CREATE TABLE t1 (
-id int(11) NOT NULL AUTO_INCREMENT,
-year year(2) DEFAULT NULL,
-modified timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-PRIMARY KEY (id)
-) ENGINE=InnoDB ROW_FORMAT = COMPACT
-PARTITION BY HASH (id)
-PARTITIONS 2;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-CREATE TABLE t2 (
-id int(11) NOT NULL AUTO_INCREMENT,
-year year(2) DEFAULT NULL,
-modified timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
-PRIMARY KEY (id)
-) ENGINE=InnoDB ROW_FORMAT = REDUNDANT;
-Warnings:
-Level Note
-Code 1287
-Message 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-ALTER TABLE t1 EXCHANGE PARTITION p1 WITH TABLE t2;
-ERROR HY000: Non matching attribute 'ROW_FORMAT' between partition and table
-SHOW CREATE TABLE t1;
-Table t1
-Create Table CREATE TABLE `t1` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
- PARTITION BY HASH (`id`)
-PARTITIONS 2
-SHOW CREATE TABLE t2;
-Table t2
-Create Table CREATE TABLE `t2` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `year` year(2) DEFAULT NULL,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT
-SELECT TABLE_NAME, TABLE_TYPE, ENGINE, ROW_FORMAT, CREATE_OPTIONS
-FROM INFORMATION_SCHEMA.TABLES
-WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME IN ('t1', 't2')
-ORDER BY TABLE_NAME;
-TABLE_NAME t1
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Compact
-CREATE_OPTIONS row_format=COMPACT partitioned
-TABLE_NAME t2
-TABLE_TYPE BASE TABLE
-ENGINE InnoDB
-ROW_FORMAT Redundant
-CREATE_OPTIONS row_format=REDUNDANT
-DROP TABLE t1, t2;
-#
-# Bug#56484: !table || (!table->read_set ||
-# bitmap_is_set(table->read_set, field_index))
-#
-CREATE TABLE t1 (a INT NOT NULL,b TIME NOT NULL DEFAULT '00:00:00')
-ENGINE=MyISAM
-PARTITION BY HASH (a) PARTITIONS 2;
-CREATE TABLE t2 (a INT) ENGINE=MYISAM;
-ALTER TABLE t1 EXCHANGE PARTITION p1 WITH TABLE t2;
-ERROR HY000: Tables have different definitions
-DROP TABLE t1, t2;
-#
-# Bug#55784: Foreign key integrity broken by alter table
-#
-CREATE TABLE t1 (s1 INT PRIMARY KEY) ENGINE=InnoDB;
-CREATE TABLE t2 (s1 INT, FOREIGN KEY (s1) REFERENCES t1 (s1)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t2 VALUES (1),(2),(3);
-CREATE TABLE t3 (s1 INT PRIMARY KEY)
-ENGINE=InnoDB
-PARTITION BY LIST (s1)
-(PARTITION p1 VALUES IN (1,2,3));
-ALTER TABLE t3 EXCHANGE PARTITION p1 WITH TABLE t1;
-ERROR HY000: Table to exchange with partition has foreign key references: 't1'
-DROP TABLE t2, t1, t3;
-# Tests for WL#4445
-CREATE TABLE t (a INT,
-b VARCHAR(55),
-PRIMARY KEY (a))
-ENGINE = MyISAM;
-CREATE TABLE tp (a INT,
-b VARCHAR(55),
-PRIMARY KEY (a))
-ENGINE = MyISAM
-PARTITION BY RANGE (a)
-(PARTITION p0 VALUES LESS THAN (100),
-PARTITION p1 VALUES LESS THAN MAXVALUE);
-CREATE TABLE tsp (a INT,
-b VARCHAR(55),
-PRIMARY KEY (a))
-ENGINE = MyISAM
-PARTITION BY RANGE (a)
-SUBPARTITION BY HASH(a)
-(PARTITION p0 VALUES LESS THAN (100)
-(SUBPARTITION sp0,
-SUBPARTITION sp1),
-PARTITION p1 VALUES LESS THAN MAXVALUE
-(SUBPARTITION sp2,
-SUBPARTITION sp3));
-INSERT INTO t VALUES (1, "First value"), (3, "Three"), (5, "Five"), (99, "End of values");
-INSERT INTO tp VALUES (2, "First value"), (10, "Ten"), (50, "Fifty"), (200, "Two hundred, end of values"), (61, "Sixty one"), (62, "Sixty two"), (63, "Sixty three"), (64, "Sixty four"), (161, "161"), (162, "162"), (163, "163"), (164, "164");
-INSERT INTO tsp VALUES (2, "First value"), (10, "Ten"), (50, "Fifty"), (200, "Two hundred, end of values"), (61, "Sixty one"), (62, "Sixty two"), (63, "Sixty three"), (64, "Sixty four"), (161, "161"), (162, "162"), (163, "163"), (164, "164");
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE tp;
-Table Create Table
-tp CREATE TABLE `tp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-SELECT * FROM t;
-a b
-1 First value
-3 Three
-5 Five
-99 End of values
-SELECT * FROM tp;
-a b
-10 Ten
-161 161
-162 162
-163 163
-164 164
-2 First value
-200 Two hundred, end of values
-50 Fifty
-61 Sixty one
-62 Sixty two
-63 Sixty three
-64 Sixty four
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE tp;
-Table Create Table
-tp CREATE TABLE `tp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-SELECT * FROM t;
-a b
-10 Ten
-2 First value
-50 Fifty
-61 Sixty one
-62 Sixty two
-63 Sixty three
-64 Sixty four
-SELECT * FROM tp;
-a b
-1 First value
-161 161
-162 162
-163 163
-164 164
-200 Two hundred, end of values
-3 Three
-5 Five
-99 End of values
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SELECT * FROM t;
-a b
-1 First value
-3 Three
-5 Five
-99 End of values
-SELECT * FROM tp;
-a b
-10 Ten
-161 161
-162 162
-163 163
-164 164
-2 First value
-200 Two hundred, end of values
-50 Fifty
-61 Sixty one
-62 Sixty two
-63 Sixty three
-64 Sixty four
-ALTER TABLE tp EXCHANGE PARTITION p1 WITH TABLE t;
-ERROR HY000: Found a row that does not match the partition
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE tp;
-Table Create Table
-tp CREATE TABLE `tp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-SELECT * FROM t;
-a b
-1 First value
-3 Three
-5 Five
-99 End of values
-SELECT * FROM tp;
-a b
-10 Ten
-161 161
-162 162
-163 163
-164 164
-2 First value
-200 Two hundred, end of values
-50 Fifty
-61 Sixty one
-62 Sixty two
-63 Sixty three
-64 Sixty four
-# Test list of partitions
-ALTER TABLE tp EXCHANGE PARTITION p1 WITH TABLE t IGNORE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IGNORE' at line 1
-ALTER TABLE tp EXCHANGE PARTITION p0,p1 WITH TABLE t IGNORE;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'p1 WITH TABLE t IGNORE' at line 1
-ALTER TABLE tp EXCHANGE PARTITION p0,p1 WITH TABLE t;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'p1 WITH TABLE t' at line 1
-ALTER TABLE tp EXCHANGE PARTITION (p0,p1) WITH TABLE t;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(p0,p1) WITH TABLE t' at line 1
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE (t,t2);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(t,t2)' at line 1
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t,t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't2' at line 1
-ALTER TABLE tp EXCHANGE PARTITION non_existent WITH TABLE t;
-ERROR HY000: Unknown partition 'non_existent' in table 'tp'
-ALTER TABLE tsp EXCHANGE PARTITION p0 WITH TABLE t;
-ERROR HY000: Subpartitioned table, use subpartition instead of partition
-ALTER TABLE tsp EXCHANGE PARTITION sp0 WITH TABLE tp;
-ERROR HY000: Table to exchange with partition is partitioned: 'tp'
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE tp;
-Table Create Table
-tp CREATE TABLE `tp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-SHOW CREATE TABLE tsp;
-Table Create Table
-tsp CREATE TABLE `tsp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-SUBPARTITION BY HASH (`a`)
-(PARTITION `p0` VALUES LESS THAN (100)
- (SUBPARTITION `sp0` ENGINE = MyISAM,
- SUBPARTITION `sp1` ENGINE = MyISAM),
- PARTITION `p1` VALUES LESS THAN MAXVALUE
- (SUBPARTITION `sp2` ENGINE = MyISAM,
- SUBPARTITION `sp3` ENGINE = MyISAM))
-SELECT * FROM t;
-a b
-1 First value
-3 Three
-5 Five
-99 End of values
-SELECT * FROM tp;
-a b
-10 Ten
-161 161
-162 162
-163 163
-164 164
-2 First value
-200 Two hundred, end of values
-50 Fifty
-61 Sixty one
-62 Sixty two
-63 Sixty three
-64 Sixty four
-# Test exchange partition
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE tp;
-Table Create Table
-tp CREATE TABLE `tp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-SELECT * FROM t;
-a b
-10 Ten
-2 First value
-50 Fifty
-61 Sixty one
-62 Sixty two
-63 Sixty three
-64 Sixty four
-SELECT * FROM tp;
-a b
-1 First value
-161 161
-162 162
-163 163
-164 164
-200 Two hundred, end of values
-3 Three
-5 Five
-99 End of values
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE tp;
-Table Create Table
-tp CREATE TABLE `tp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-SELECT * FROM t;
-a b
-1 First value
-3 Three
-5 Five
-99 End of values
-SELECT * FROM tp;
-a b
-10 Ten
-161 161
-162 162
-163 163
-164 164
-2 First value
-200 Two hundred, end of values
-50 Fifty
-61 Sixty one
-62 Sixty two
-63 Sixty three
-64 Sixty four
-# Test exchange subpartition
-ALTER TABLE tsp EXCHANGE PARTITION sp1 WITH TABLE t;
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE tsp;
-Table Create Table
-tsp CREATE TABLE `tsp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-SUBPARTITION BY HASH (`a`)
-(PARTITION `p0` VALUES LESS THAN (100)
- (SUBPARTITION `sp0` ENGINE = MyISAM,
- SUBPARTITION `sp1` ENGINE = MyISAM),
- PARTITION `p1` VALUES LESS THAN MAXVALUE
- (SUBPARTITION `sp2` ENGINE = MyISAM,
- SUBPARTITION `sp3` ENGINE = MyISAM))
-SELECT * FROM t;
-a b
-61 Sixty one
-63 Sixty three
-SELECT * FROM tsp;
-a b
-1 First value
-10 Ten
-161 161
-162 162
-163 163
-164 164
-2 First value
-200 Two hundred, end of values
-3 Three
-5 Five
-50 Fifty
-62 Sixty two
-64 Sixty four
-99 End of values
-ALTER TABLE tsp EXCHANGE PARTITION sp1 WITH TABLE t;
-ALTER TABLE t ENGINE = InnoDB;
-ALTER TABLE tp ENGINE = InnoDB;
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SHOW CREATE TABLE tp;
-Table Create Table
-tp CREATE TABLE `tp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = InnoDB,
- PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
-SELECT * FROM t;
-a b
-1 First value
-3 Three
-5 Five
-99 End of values
-SELECT * FROM tp;
-a b
-10 Ten
-161 161
-162 162
-163 163
-164 164
-2 First value
-200 Two hundred, end of values
-50 Fifty
-61 Sixty one
-62 Sixty two
-63 Sixty three
-64 Sixty four
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SHOW CREATE TABLE tp;
-Table Create Table
-tp CREATE TABLE `tp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = InnoDB,
- PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
-SELECT * FROM t;
-a b
-10 Ten
-2 First value
-50 Fifty
-61 Sixty one
-62 Sixty two
-63 Sixty three
-64 Sixty four
-SELECT * FROM tp;
-a b
-1 First value
-161 161
-162 162
-163 163
-164 164
-200 Two hundred, end of values
-3 Three
-5 Five
-99 End of values
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-# test different engines
-ALTER TABLE t ENGINE = MyISAM;
-ALTER TABLE tp ENGINE = InnoDB;
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE tp;
-Table Create Table
-tp CREATE TABLE `tp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = InnoDB,
- PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-ERROR HY000: The mix of handlers in the partitions is not allowed in this version of MariaDB
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE tp;
-Table Create Table
-tp CREATE TABLE `tp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = InnoDB,
- PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
-# Test different charsets
-ALTER TABLE t ENGINE = MyISAM;
-CREATE TABLE tmp LIKE t;
-INSERT INTO tmp SELECT * FROM t;
-RENAME TABLE t TO tmp2, tmp TO t;
-ALTER TABLE tp ENGINE = MyISAM;
-ALTER TABLE t CHARACTER SET = koi8r COLLATE koi8r_general_ci;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-ERROR HY000: Non matching attribute 'CHARACTER SET' between partition and table
-DROP TABLE t;
-# Test multiple different table options
-CREATE TABLE t (a INT,
-b VARCHAR(55),
-PRIMARY KEY (a))
-ENGINE = MyISAM MAX_ROWS = 100000 MIN_ROWS = 1000;
-INSERT INTO t SELECT * FROM tmp2;
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=1000 MAX_ROWS=100000
-SHOW CREATE TABLE tp;
-Table Create Table
-tp CREATE TABLE `tp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-ERROR HY000: Non matching attribute 'MAX_ROWS' between partition and table
-SHOW WARNINGS;
-Level Code Message
-Error 1731 Non matching attribute 'MAX_ROWS' between partition and table
-Error 1731 Non matching attribute 'MIN_ROWS' between partition and table
-DROP TABLE t;
-RENAME TABLE tmp2 TO t;
-ALTER TABLE t ADD KEY ba_key (b, a);
-ALTER TABLE tp ADD KEY ba_key (b, a);
-ALTER TABLE tsp ADD KEY ba_key (b, a);
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `ba_key` (`b`,`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE tp;
-Table Create Table
-tp CREATE TABLE `tp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `ba_key` (`b`,`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-SELECT * FROM t;
-a b
-10 Ten
-2 First value
-50 Fifty
-61 Sixty one
-62 Sixty two
-63 Sixty three
-64 Sixty four
-SELECT * FROM tp;
-a b
-1 First value
-161 161
-162 162
-163 163
-164 164
-200 Two hundred, end of values
-3 Three
-5 Five
-99 End of values
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-ALTER TABLE t DROP KEY ba_key;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-ERROR HY000: Tables have different definitions
-ALTER TABLE t ADD KEY b_key (b);
-ALTER TABLE tsp EXCHANGE PARTITION sp1 WITH TABLE t;
-ERROR HY000: Tables have different definitions
-ALTER TABLE t ADD KEY ba_key (b, a);
-ALTER TABLE t DROP KEY b_key;
-ALTER TABLE t CHANGE a c INT;
-ALTER TABLE tsp EXCHANGE PARTITION sp1 WITH TABLE t;
-ERROR HY000: Tables have different definitions
-ALTER TABLE t CHANGE c a INT;
-# test temporary table
-ALTER TABLE t ENGINE = MyISAM;
-ALTER TABLE tp ENGINE = MyISAM;
-CREATE TEMPORARY TABLE tmp LIKE t;
-INSERT INTO tmp SELECT * FROM t;
-ALTER TABLE t RENAME TO tmp2;
-ALTER TABLE tmp RENAME TO t;
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TEMPORARY TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `ba_key` (`b`,`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE tp;
-Table Create Table
-tp CREATE TABLE `tp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `ba_key` (`b`,`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-ERROR HY000: Table to exchange with partition is temporary: 't'
-SHOW CREATE TABLE t;
-Table Create Table
-t CREATE TEMPORARY TABLE `t` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `ba_key` (`b`,`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE tp;
-Table Create Table
-tp CREATE TABLE `tp` (
- `a` int(11) NOT NULL,
- `b` varchar(55) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `ba_key` (`b`,`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (100) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-DROP TEMPORARY TABLE t;
-ALTER TABLE tmp2 RENAME TO t;
-# Test non partitioned table
-ALTER TABLE tp REMOVE PARTITIONING;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-ERROR HY000: Partition management on a not partitioned table is not possible
-DROP TABLE t, tp, tsp;
-# Test with general_log
-use mysql;
-SET @old_general_log_state = @@global.general_log;
-SET GLOBAL general_log = 0;
-ALTER TABLE general_log ENGINE = MyISAM;
-CREATE TABLE t LIKE general_log;
-ALTER TABLE t PARTITION BY RANGE (UNIX_TIMESTAMP(event_time) DIV 1)
-(PARTITION p0 VALUES LESS THAN (123456789),
-PARTITION pMAX VALUES LESS THAN MAXVALUE);
-ALTER TABLE t EXCHANGE PARTITION p0 WITH TABLE general_log;
-ERROR HY000: You cannot 'ALTER PARTITION' a log table if logging is enabled
-ALTER TABLE general_log ENGINE = CSV;
-SET @@global.general_log = @old_general_log_state;
-DROP TABLE t;
-use test;
-# Test with LOCK TABLE
-CREATE TABLE tp
-(a VARCHAR(24),
-b DATETIME,
-PRIMARY KEY (a,b))
-PARTITION BY RANGE COLUMNS (a, b)
-(PARTITION p0 VALUES LESS THAN ("Middle", '0000-00-00'),
-PARTITION p1 VALUES LESS THAN (MAXVALUE, '9999-12-31 23:59:59'));
-CREATE TABLE t LIKE tp;
-ALTER TABLE t REMOVE PARTITIONING;
-CREATE TABLE t2 LIKE t;
-INSERT INTO tp VALUES ("First in tp", '2000-01-02 03:04:25'), ("Zebra in tp", '0000-00-00 00:00:00'), ("Second in tp", '2010-01-01 05:12:24');
-INSERT INTO t VALUES ("First in t", '2000-01-02 03:04:25'), ("a test in t", '0000-00-00 00:00:00'), ("Echo in t", '2010-01-01 05:12:24');
-# tp_lock '0' t_lock 'READ' t2_lock 'READ' count '17'
-LOCK TABLE t READ, t2 READ;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1100 Table 'tp' was not locked with LOCK TABLES
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-Error 1100 Table 'tp' was not locked with LOCK TABLES
-UNLOCK TABLES;
-# tp_lock '0' t_lock 'WRITE' t2_lock 'READ' count '16'
-LOCK TABLE t WRITE, t2 READ;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1100 Table 'tp' was not locked with LOCK TABLES
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-Error 1100 Table 'tp' was not locked with LOCK TABLES
-UNLOCK TABLES;
-# tp_lock 'READ' t_lock '0' t2_lock 'READ' count '15'
-LOCK TABLE tp READ, t2 READ;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 'tp' was locked with a READ lock and can't be updated
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 'tp' was locked with a READ lock and can't be updated
-UNLOCK TABLES;
-# tp_lock 'READ' t_lock 'READ' t2_lock 'READ' count '14'
-LOCK TABLE t READ, tp READ, t2 READ;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 'tp' was locked with a READ lock and can't be updated
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 'tp' was locked with a READ lock and can't be updated
-UNLOCK TABLES;
-# tp_lock 'READ' t_lock 'WRITE' t2_lock 'READ' count '13'
-LOCK TABLE t WRITE, tp READ, t2 READ;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 'tp' was locked with a READ lock and can't be updated
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 'tp' was locked with a READ lock and can't be updated
-UNLOCK TABLES;
-# tp_lock 'WRITE' t_lock '0' t2_lock 'READ' count '12'
-LOCK TABLE tp WRITE, t2 READ;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1100 Table 't' was not locked with LOCK TABLES
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 't2' was locked with a READ lock and can't be updated
-UNLOCK TABLES;
-# tp_lock 'WRITE' t_lock 'READ' t2_lock 'READ' count '11'
-LOCK TABLE t READ, tp WRITE, t2 READ;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 't' was locked with a READ lock and can't be updated
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 't2' was locked with a READ lock and can't be updated
-UNLOCK TABLES;
-# tp_lock 'WRITE' t_lock 'WRITE' t2_lock 'READ' count '10'
-LOCK TABLE t WRITE, tp WRITE, t2 READ;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 't2' was locked with a READ lock and can't be updated
-UNLOCK TABLES;
-# tp_lock '0' t_lock '0' t2_lock 'WRITE' count '9'
-LOCK TABLE t2 WRITE;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1100 Table 'tp' was not locked with LOCK TABLES
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-Error 1100 Table 'tp' was not locked with LOCK TABLES
-UNLOCK TABLES;
-# tp_lock '0' t_lock 'READ' t2_lock 'WRITE' count '8'
-LOCK TABLE t READ, t2 WRITE;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1100 Table 'tp' was not locked with LOCK TABLES
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-Error 1100 Table 'tp' was not locked with LOCK TABLES
-UNLOCK TABLES;
-# tp_lock '0' t_lock 'WRITE' t2_lock 'WRITE' count '7'
-LOCK TABLE t WRITE, t2 WRITE;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1100 Table 'tp' was not locked with LOCK TABLES
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-Error 1100 Table 'tp' was not locked with LOCK TABLES
-UNLOCK TABLES;
-# tp_lock 'READ' t_lock '0' t2_lock 'WRITE' count '6'
-LOCK TABLE tp READ, t2 WRITE;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 'tp' was locked with a READ lock and can't be updated
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 'tp' was locked with a READ lock and can't be updated
-UNLOCK TABLES;
-# tp_lock 'READ' t_lock 'READ' t2_lock 'WRITE' count '5'
-LOCK TABLE t READ, tp READ, t2 WRITE;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 'tp' was locked with a READ lock and can't be updated
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 'tp' was locked with a READ lock and can't be updated
-UNLOCK TABLES;
-# tp_lock 'READ' t_lock 'WRITE' t2_lock 'WRITE' count '4'
-LOCK TABLE t WRITE, tp READ, t2 WRITE;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 'tp' was locked with a READ lock and can't be updated
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 'tp' was locked with a READ lock and can't be updated
-UNLOCK TABLES;
-# tp_lock 'WRITE' t_lock '0' t2_lock 'WRITE' count '3'
-LOCK TABLE tp WRITE, t2 WRITE;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1100 Table 't' was not locked with LOCK TABLES
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-UNLOCK TABLES;
-# tp_lock 'WRITE' t_lock 'READ' t2_lock 'WRITE' count '2'
-LOCK TABLE t READ, tp WRITE, t2 WRITE;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-Error 1099 Table 't' was locked with a READ lock and can't be updated
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-UNLOCK TABLES;
-# tp_lock 'WRITE' t_lock 'WRITE' t2_lock 'WRITE' count '1'
-LOCK TABLE t WRITE, tp WRITE, t2 WRITE;
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
-SHOW WARNINGS;
-Level Code Message
-ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t2;
-SHOW WARNINGS;
-Level Code Message
-UNLOCK TABLES;
-DROP TABLE t, t2, tp;
diff --git a/mysql-test/r/partition_explicit_prune.result b/mysql-test/r/partition_explicit_prune.result
deleted file mode 100644
index bfcfe7deef6..00000000000
--- a/mysql-test/r/partition_explicit_prune.result
+++ /dev/null
@@ -1,1872 +0,0 @@
-#
-# Bug#13559657: PARTITION SELECTION DOES NOT WORK WITH VIEWS
-#
-CREATE TABLE t1 (a int)
-ENGINE = InnoDB
-PARTITION BY HASH (a) PARTITIONS 2;
-INSERT INTO t1 VALUES (0), (1), (2), (3);
-CREATE VIEW v1 AS SELECT a FROM t1 PARTITION (p0);
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` PARTITION (`p0`) latin1 latin1_swedish_ci
-FLUSH STATUS;
-SELECT * FROM v1;
-a
-0
-2
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_RND_NEXT 3
-HANDLER_TMP_WRITE 24
-# 4 locks (1 table, 1 partition lock/unlock)
-FLUSH STATUS;
-SELECT a FROM t1 PARTITION (p0);
-a
-0
-2
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_RND_NEXT 3
-HANDLER_TMP_WRITE 24
-# 4 locks (1 table, 1 partition lock/unlock)
-FLUSH STATUS;
-INSERT INTO v1 VALUES (10);
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-HANDLER_WRITE 2
-# 4 locks (1 table, 1 partition lock/unlock)
-FLUSH STATUS;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_TMP_WRITE 24
-# 2 locks (1 table, all partitions pruned)
-FLUSH STATUS;
-SELECT * FROM v1;
-a
-0
-10
-2
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_RND_NEXT 4
-HANDLER_TMP_WRITE 24
-# 4 locks (1 table, 1 partition lock/unlock)
-FLUSH STATUS;
-SELECT a FROM t1 PARTITION (p0);
-a
-0
-10
-2
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_RND_NEXT 4
-HANDLER_TMP_WRITE 24
-# 4 locks (1 table, 1 partition lock/unlock)
-SELECT * FROM t1;
-a
-0
-1
-10
-2
-3
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT a FROM t1 PARTITION (p0) WITH CHECK OPTION;
-FLUSH STATUS;
-INSERT INTO v1 VALUES (20);
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-HANDLER_WRITE 2
-# 4 locks (1 table, 1 partition lock/unlock)
-FLUSH STATUS;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_TMP_WRITE 24
-# 2 locks (1 table, all partitions pruned)
-SELECT * FROM v1;
-a
-0
-10
-2
-20
-SELECT * FROM t1;
-a
-0
-1
-10
-2
-20
-3
-DROP VIEW v1;
-CREATE VIEW v1 AS
-SELECT a FROM t1 PARTITION (p0) WHERE a = 30 WITH CHECK OPTION;
-FLUSH STATUS;
-INSERT INTO v1 VALUES (30);
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-HANDLER_WRITE 2
-# 4 locks (1 table, 1 partition lock/unlock)
-FLUSH STATUS;
-INSERT INTO v1 VALUES (31);
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_ROLLBACK 1
-HANDLER_TMP_WRITE 24
-# 2 locks (1 table, all partitions pruned)
-FLUSH STATUS;
-INSERT INTO v1 VALUES (32);
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_ROLLBACK 1
-HANDLER_TMP_WRITE 24
-# 4 locks (1 table, 1 partition lock/unlock)
-SELECT * FROM v1;
-a
-30
-SELECT * FROM t1;
-a
-0
-1
-10
-2
-20
-3
-30
-DROP VIEW v1;
-DROP TABLE t1;
-# Original tests for WL#5217
-# Must have InnoDB as engine to get the same statistics results.
-# embedded uses MyISAM as default. CREATE SELECT uses the default engine.
-SET @old_default_storage_engine = @@default_storage_engine;
-SET @@default_storage_engine = 'InnoDB';
-# Test to show if I_S affects HANDLER_ counts
-FLUSH STATUS;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_TMP_WRITE 24
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_READ_RND_NEXT 28
-HANDLER_TMP_WRITE 51
-# OK, seems to add number of variables processed before HANDLER_WRITE
-# and number of variables + 1 evaluated in the previous call in RND_NEXT
-CREATE TABLE t1
-(a INT NOT NULL,
-b varchar (64),
-INDEX (b,a),
-PRIMARY KEY (a))
-ENGINE = InnoDB
-PARTITION BY RANGE (a)
-SUBPARTITION BY HASH (a) SUBPARTITIONS 2
-(PARTITION pNeg VALUES LESS THAN (0)
-(SUBPARTITION subp0,
-SUBPARTITION subp1),
-PARTITION `p0-9` VALUES LESS THAN (10)
-(SUBPARTITION subp2,
-SUBPARTITION subp3),
-PARTITION `p10-99` VALUES LESS THAN (100)
-(SUBPARTITION subp4,
-SUBPARTITION subp5),
-PARTITION `p100-99999` VALUES LESS THAN (100000)
-(SUBPARTITION subp6,
-SUBPARTITION subp7));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(64) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `b` (`b`,`a`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-SUBPARTITION BY HASH (`a`)
-(PARTITION `pNeg` VALUES LESS THAN (0)
- (SUBPARTITION `subp0` ENGINE = InnoDB,
- SUBPARTITION `subp1` ENGINE = InnoDB),
- PARTITION `p0-9` VALUES LESS THAN (10)
- (SUBPARTITION `subp2` ENGINE = InnoDB,
- SUBPARTITION `subp3` ENGINE = InnoDB),
- PARTITION `p10-99` VALUES LESS THAN (100)
- (SUBPARTITION `subp4` ENGINE = InnoDB,
- SUBPARTITION `subp5` ENGINE = InnoDB),
- PARTITION `p100-99999` VALUES LESS THAN (100000)
- (SUBPARTITION `subp6` ENGINE = InnoDB,
- SUBPARTITION `subp7` ENGINE = InnoDB))
-# First test that the syntax is OK
-SHOW CREATE TABLE t1 PARTITION (subp0);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PARTITION (subp0)' at line 1
-# Not a correct partition list
-INSERT INTO t1 PARTITION () VALUES (1, "error");
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') VALUES (1, "error")' at line 1
-INSERT INTO t1 PARTITION (pNonExisting) VALUES (1, "error");
-ERROR HY000: Unknown partition 'pNonExisting' in table 't1'
-INSERT INTO t1 PARTITION (pNeg, pNonExisting) VALUES (1, "error");
-ERROR HY000: Unknown partition 'pNonExisting' in table 't1'
-# Duplicate partitions and overlapping partitions and subpartitios is OK
-FLUSH STATUS;
-INSERT INTO t1 PARTITION (pNeg, pNeg) VALUES (-1, "pNeg(-subp1)");
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-HANDLER_WRITE 2
-# Should be 1 commit
-# 4 external locks (due to pruning of locks)
-# (1 ha_partition + 1 ha_innobase) x 2 (lock + unlock)
-# and 18 write (1 ha_innobase + 17 internal I_S write)
-INSERT INTO t1 PARTITION (pNeg, subp0) VALUES (-3, "pNeg(-subp1)");
-INSERT INTO t1 PARTITION (pNeg, subp0) VALUES (-2, "(pNeg-)subp0");
-# should be correct
-INSERT INTO t1 PARTITION (`p100-99999`) VALUES (100, "`p100-99999`(-subp6)"), (101, "`p100-99999`(-subp7)"), (1000, "`p100-99999`(-subp6)");
-INSERT INTO t1 PARTITION(`p10-99`,subp3) VALUES (1, "subp3"), (10, "p10-99");
-FLUSH STATUS;
-INSERT INTO t1 PARTITION(subp3) VALUES (3, "subp3");
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-HANDLER_WRITE 2
-# Should be 1 commit
-# 4 external locks
-# (1 ha_partition + 1 ha_innobase) x 2 (lock + unlock)
-# and 18 write (1 ha_innobase + 17 internal I_S write)
-FLUSH STATUS;
-LOCK TABLE t1 WRITE;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-# should be 1 commit
-# 9 locks (1 ha_partition + 8 ha_innobase)
-# 17 writes (internal I_S)
-INSERT INTO t1 PARTITION(`p0-9`) VALUES (5, "p0-9:subp3");
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 2
-HANDLER_READ_RND_NEXT 28
-HANDLER_TMP_WRITE 51
-HANDLER_WRITE 2
-# + 1 commit
-# + 19 rnd next (internal I_S)
-# + 19 write (18 internal I_S + 1 insert)
-UNLOCK TABLES;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 2
-HANDLER_READ_RND_NEXT 56
-HANDLER_TMP_WRITE 78
-HANDLER_WRITE 2
-# + 9 locks (unlocks)
-# + 19 rnd next (internal I_S)
-# + 18 write (internal I_S)
-# Not matching partitions with inserted value
-INSERT INTO t1 PARTITION (pNeg, pNeg) VALUES (1, "error");
-ERROR HY000: Found a row not matching the given partition set
-INSERT INTO t1 PARTITION (pNeg, subp0) VALUES (1, "error");
-ERROR HY000: Found a row not matching the given partition set
-INSERT INTO t1 PARTITION (`p100-99999`) VALUES (1, "error"), (10, "error");
-ERROR HY000: Found a row not matching the given partition set
-INSERT INTO t1 VALUES (1000000, "error"), (9999999, "error");
-ERROR HY000: Table has no partition for value 1000000
-INSERT INTO t1 PARTITION (`p100-99999`) VALUES (1000000, "error"), (9999999, "error");
-ERROR HY000: Table has no partition for value 1000000
-INSERT INTO t1 PARTITION (pNeg, subp4) VALUES (-7, "pNeg(-subp1)"), (-10, "pNeg(-subp0)"), (-1, "pNeg(-subp1)"), (-99, "pNeg(-subp1)");
-Got one of the listed errors
-SELECT * FROM t1 ORDER BY a;
-a b
--3 pNeg(-subp1)
--2 (pNeg-)subp0
--1 pNeg(-subp1)
-1 subp3
-3 subp3
-5 p0-9:subp3
-10 p10-99
-100 `p100-99999`(-subp6)
-101 `p100-99999`(-subp7)
-1000 `p100-99999`(-subp6)
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-SET @save_innodb_stats_on_metadata=@@global.innodb_stats_on_metadata;
-SET @@global.innodb_stats_on_metadata=ON;
-SELECT PARTITION_NAME, SUBPARTITION_NAME, TABLE_ROWS
-FROM INFORMATION_SCHEMA.PARTITIONS
-WHERE TABLE_SCHEMA = 'test'
-AND TABLE_NAME = 't1' ORDER BY SUBPARTITION_NAME;
-PARTITION_NAME SUBPARTITION_NAME TABLE_ROWS
-pNeg subp0 1
-pNeg subp1 2
-p0-9 subp2 0
-p0-9 subp3 3
-p10-99 subp4 1
-p10-99 subp5 0
-p100-99999 subp6 2
-p100-99999 subp7 1
-SET @@global.innodb_stats_on_metadata=@save_innodb_stats_on_metadata;
-FLUSH STATUS;
-SELECT * FROM t1 PARTITION (pNonexistent);
-ERROR HY000: Unknown partition 'pNonexistent' in table 't1'
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_TMP_WRITE 24
-# should have failed before locking (only 17 internal I_S writes)
-FLUSH STATUS;
-SELECT * FROM t1 PARTITION (subp2);
-a b
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_FIRST 1
-HANDLER_TMP_WRITE 24
-# Should be 1 commit
-# 4 locks (1 ha_partition + 1 ha_innobase) x 2 (lock/unlock)
-# 1 read first (also calls index_read)
-# 2 read key (first from innobase_get_index and second from index first)
-# 17 writes (internal I_S)
-FLUSH STATUS;
-SELECT * FROM t1 PARTITION (subp2,pNeg) AS TableAlias;
-a b
--2 (pNeg-)subp0
--3 pNeg(-subp1)
--1 pNeg(-subp1)
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_FIRST 3
-HANDLER_READ_NEXT 3
-HANDLER_TMP_WRITE 24
-# Should be 1 commit
-# 8 locks (1 ha_partition + 2 + 1 ha_innobase) x 2
-# 3 read first (one for each partition)
-# 6 read key (3 from read first and 3 from innobase_get_index)
-# 3 read next (one next call after each read row)
-# 17 writes (internal I_S)
-FLUSH STATUS;
-LOCK TABLE t1 READ, t1 as TableAlias READ;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-# 1 commit
-# 18 locks
-# 18 READ KEY from opening a new partition table instance,
-# (1 innobase_get_index for each index, per partition, 1 x 2 x 8 = 16
-# + info(HA_STATUS_CONST) call on the partition with the most number
-# of rows, 2 innobase_get_index for updating both index statistics)
-# 17 writes (internal I_S)
-SELECT * FROM t1 PARTITION (subp3) AS TableAlias;
-a b
-5 p0-9:subp3
-1 subp3
-3 subp3
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 2
-HANDLER_READ_FIRST 1
-HANDLER_READ_NEXT 3
-HANDLER_READ_RND_NEXT 28
-HANDLER_TMP_WRITE 51
-# + 1 commit
-# + 1 read first (read first key from index in one partition)
-# + 2 read key (innobase_get_index from index_init + from index_first)
-# + 3 read next (one after each row)
-# + 19 rnd next (from the last I_S query)
-# + 18 write (internal I_S)
-SELECT COUNT(*) FROM t1 PARTITION (`p10-99`);
-COUNT(*)
-1
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 3
-HANDLER_READ_FIRST 3
-HANDLER_READ_NEXT 4
-HANDLER_READ_RND_NEXT 56
-HANDLER_TMP_WRITE 78
-# + 1 commit
-# + 2 read first (one for each subpart)
-# + 4 read key (innobase_get_index from index_init + from index_first)
-# + 1 read next (one after each row)
-# + 19 rnd next (from the last I_S query)
-# + 18 write (internal I_S)
-SELECT * FROM t1 WHERE a = 1000000;
-a b
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 4
-HANDLER_READ_FIRST 3
-HANDLER_READ_NEXT 4
-HANDLER_READ_RND_NEXT 84
-HANDLER_TMP_WRITE 105
-# No matching partition, only internal I_S.
-SELECT * FROM t1 PARTITION (pNeg) WHERE a = 100;
-a b
-UNLOCK TABLES;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 5
-HANDLER_READ_FIRST 3
-HANDLER_READ_NEXT 4
-HANDLER_READ_RND_NEXT 112
-HANDLER_TMP_WRITE 132
-# + 18 for unlock (same as lock above) (100 is not in pNeg, no match)
-# Test that EXPLAIN PARTITION works
-EXPLAIN PARTITIONS SELECT * FROM t1 PARTITION (pNonexistent);
-ERROR HY000: Unknown partition 'pNonexistent' in table 't1'
-EXPLAIN PARTITIONS SELECT * FROM t1 PARTITION (subp2);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0-9_subp2 index NULL b 71 NULL 2 Using index
-FLUSH STATUS;
-EXPLAIN PARTITIONS SELECT * FROM t1 PARTITION (subp2,pNeg) AS TableAlias;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE TableAlias pNeg_subp0,pNeg_subp1,p0-9_subp2 index NULL b 71 NULL 4 Using index
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-# 8 locks (1 ha_partition + 3 ha_innobase) x 2 (lock/unlock)
-EXPLAIN PARTITIONS SELECT * FROM t1 PARTITION (subp3) AS TableAlias;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE TableAlias p0-9_subp3 index NULL b 71 NULL 3 Using index
-EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 PARTITION (`p10-99`);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p10-99_subp4,p10-99_subp5 index NULL PRIMARY 4 NULL 2 Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 1000000;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1 PARTITION (pNeg) WHERE a = 100;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-# Test how it changes the alias/keywords/reserved words
-SELECT * FROM t1 PARTITION;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-SELECT * FROM t1 `PARTITION`;
-a b
--2 (pNeg-)subp0
-5 p0-9:subp3
-10 p10-99
--3 pNeg(-subp1)
--1 pNeg(-subp1)
-1 subp3
-3 subp3
-100 `p100-99999`(-subp6)
-1000 `p100-99999`(-subp6)
-101 `p100-99999`(-subp7)
-SELECT * FROM t1 AS PARTITION;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PARTITION' at line 1
-SELECT * FROM t1 AS `PARTITION`;
-a b
--2 (pNeg-)subp0
-5 p0-9:subp3
-10 p10-99
--3 pNeg(-subp1)
--1 pNeg(-subp1)
-1 subp3
-3 subp3
-100 `p100-99999`(-subp6)
-1000 `p100-99999`(-subp6)
-101 `p100-99999`(-subp7)
-#
-# Test REPLACE
-#
-FLUSH STATUS;
-REPLACE INTO t1 PARTITION (subp0) VALUES (-21, 'Should fail!');
-ERROR HY000: Found a row not matching the given partition set
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_ROLLBACK 1
-HANDLER_TMP_WRITE 24
-HANDLER_WRITE 1
-# 2 locks (1 ha_partition) x 2 (lock/unlock), Was 4 locks before WL4443
-# explicit pruning says part_id 0 and implicit pruning says part_id 1
-# so no partition will be locked!
-# 0 rollback (since no locked partition)
-# 17 writes (I_S internal)
-FLUSH STATUS;
-REPLACE INTO t1 PARTITION (subp1) VALUES (-21, 'Insert by REPLACE');
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-HANDLER_WRITE 2
-# 1 commit
-# 4 locks (1 ha_partition + 1 ha_innobase) x 2 (lock/unlock)
-# 18 writes (17 I_S internal, 1 ha_innobase)
-SELECT * FROM t1 PARTITION (pNeg);
-a b
--2 (pNeg-)subp0
--21 Insert by REPLACE
--3 pNeg(-subp1)
--1 pNeg(-subp1)
-FLUSH STATUS;
-REPLACE INTO t1 PARTITION (subp1) VALUES (-21, 'REPLACEd by REPLACE');
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_KEY 2
-HANDLER_TMP_WRITE 24
-HANDLER_UPDATE 2
-HANDLER_WRITE 2
-# 1 commit
-# 4 locks (1 ha_partition + 1 ha_innobase) x 2 (lock/unlock)
-# 2 read key (1 innobase_get_index when init the index + 1 index read
-# to get the position to update)
-# 1 update (updated one row, since there is no delete trigger, update
-# is used instead of delete+insert)
-# 18 write (17 from I_S, 1 for the failed insert)
-SELECT * FROM t1 PARTITION (pNeg);
-a b
--2 (pNeg-)subp0
--3 pNeg(-subp1)
--1 pNeg(-subp1)
--21 REPLACEd by REPLACE
-FLUSH STATUS;
-LOCK TABLE t1 WRITE;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-# 1 commit
-# 9 locks
-# 17 write (internal I_S)
-DELETE FROM t1 PARTITION(subp1) WHERE b = "REPLACEd by REPLACE";
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 2
-HANDLER_DELETE 2
-HANDLER_READ_KEY 1
-HANDLER_READ_NEXT 1
-HANDLER_READ_RND_NEXT 28
-HANDLER_TMP_WRITE 51
-# + 1 commit
-# + 1 delete (one row deleted)
-# + 3 read key (1 innodb_get_index in records_in_range,
-# 1 innodb_get_index in index_init, 1 index_read in index_read_first)
-# + 1 read next (search for another row in secondary index)
-# + 19 rnd next (internal I_S)
-# + 18 write (internal I_S)
-REPLACE INTO t1 PARTITION (subp0) VALUES (-21, 'Should fail!');
-ERROR HY000: Found a row not matching the given partition set
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 2
-HANDLER_DELETE 2
-HANDLER_READ_KEY 1
-HANDLER_READ_NEXT 1
-HANDLER_READ_RND_NEXT 56
-HANDLER_ROLLBACK 1
-HANDLER_TMP_WRITE 78
-HANDLER_WRITE 1
-# Failed before start_stmt/execution.
-# + 19 rnd next (internal I_S)
-# 0 rollback (No partition had called start_stmt, all parts pruned)
-# + 18 write (internal I_S)
-REPLACE INTO t1 PARTITION (pNeg) VALUES (-21, 'Insert by REPLACE');
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 3
-HANDLER_DELETE 2
-HANDLER_READ_KEY 1
-HANDLER_READ_NEXT 1
-HANDLER_READ_RND_NEXT 84
-HANDLER_ROLLBACK 1
-HANDLER_TMP_WRITE 105
-HANDLER_WRITE 3
-# + 1 commit
-# + 19 rnd next (internal I_S)
-# + 19 write (18 internal I_S + 1 real write)
-REPLACE INTO t1 PARTITION (subp1) VALUES (-21, 'REPLACEd by REPLACE');
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 4
-HANDLER_DELETE 2
-HANDLER_READ_KEY 3
-HANDLER_READ_NEXT 1
-HANDLER_READ_RND_NEXT 112
-HANDLER_ROLLBACK 1
-HANDLER_TMP_WRITE 132
-HANDLER_UPDATE 2
-HANDLER_WRITE 5
-# + 1 commit
-# + 2 read key (see non locked query)
-# + 19 rnd next (internal I_S)
-# + 1 update (see non locked query)
-# + 19 write (18 internal I_S + 1 failed write)
-SELECT * FROM t1 PARTITION (subp1);
-a b
--3 pNeg(-subp1)
--1 pNeg(-subp1)
--21 REPLACEd by REPLACE
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 5
-HANDLER_DELETE 2
-HANDLER_READ_FIRST 1
-HANDLER_READ_KEY 3
-HANDLER_READ_NEXT 4
-HANDLER_READ_RND_NEXT 140
-HANDLER_ROLLBACK 1
-HANDLER_TMP_WRITE 159
-HANDLER_UPDATE 2
-HANDLER_WRITE 5
-# + 1 commit
-# + 1 read first
-# + 2 read key
-# + 3 read next
-# + 19 rnd next (internal I_S)
-# + 18 write (internal I_S)
-UNLOCK TABLES;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 5
-HANDLER_DELETE 2
-HANDLER_READ_FIRST 1
-HANDLER_READ_KEY 3
-HANDLER_READ_NEXT 4
-HANDLER_READ_RND_NEXT 168
-HANDLER_ROLLBACK 1
-HANDLER_TMP_WRITE 186
-HANDLER_UPDATE 2
-HANDLER_WRITE 5
-# + 9 locks
-# + 19 rnd next (internal I_S)
-# + 18 write (internal I_S)
-#
-# Test LOAD
-#
-SELECT * FROM t1 PARTITION (pNeg, `p10-99`);
-a b
--2 (pNeg-)subp0
-10 p10-99
--3 pNeg(-subp1)
--1 pNeg(-subp1)
--21 REPLACEd by REPLACE
-FLUSH STATUS;
-SELECT * FROM t1 PARTITION (pNeg, `p10-99`) INTO OUTFILE 'loadtest.txt';
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_FIRST 4
-HANDLER_READ_NEXT 5
-HANDLER_TMP_WRITE 24
-# 1 commit
-# 10 locks (1 ha_partition + 4 ha_innobase) x 2 (lock/unlock)
-# 4 read first (for reading the first row in 4 partitions)
-# 8 read key (4 from read first + 4 for index init)
-# 5 read next (one after each row)
-# 17 write (internal I_S)
-FLUSH STATUS;
-ALTER TABLE t1 TRUNCATE PARTITION pNeg, `p10-99`;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-# 10 locks (table + 4 partition) x (lock + unlock)
-SELECT * FROM t1 PARTITION (pNeg, `p10-99`);
-a b
-FLUSH STATUS;
-LOAD DATA INFILE 'loadtest.txt' INTO TABLE t1 PARTITION (pNeg);
-ERROR HY000: Found a row not matching the given partition set
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_ROLLBACK 1
-HANDLER_TMP_WRITE 24
-HANDLER_WRITE 3
-# 6 locks (1 ha_partition + 2 ha_innobase) x 2 (lock+unlock)
-# 1 rollback
-SELECT * FROM t1 PARTITION (pNeg, `p10-99`);
-a b
-FLUSH STATUS;
-LOAD DATA INFILE 'loadtest.txt' INTO TABLE t1 PARTITION (pNeg, subp4, subp5);
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-HANDLER_WRITE 10
-# 10 lock (1 ha_partition + 4 ha_innobase) x 2 (lock + unlock)
-ALTER TABLE t1 TRUNCATE PARTITION pNeg, `p10-99`;
-FLUSH STATUS;
-LOCK TABLE t1 WRITE;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-# 9 locks
-# 18 read key (ALTER forces table to be closed, see above for open)
-LOAD DATA INFILE 'loadtest.txt' INTO TABLE t1 PARTITION (pNeg, `p10-99`);
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 2
-HANDLER_READ_RND_NEXT 28
-HANDLER_TMP_WRITE 51
-HANDLER_WRITE 10
-# + 23 write (18 internal I_S + 5 rows)
-UNLOCK TABLES;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 2
-HANDLER_READ_RND_NEXT 56
-HANDLER_TMP_WRITE 78
-HANDLER_WRITE 10
-# + 9 locks
-#
-# Test UPDATE
-#
-FLUSH STATUS;
-UPDATE t1 PARTITION(subp0) SET b = concat(b, ', Updated');
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_RND_NEXT 2
-HANDLER_TMP_WRITE 24
-HANDLER_UPDATE 2
-# 1 commit
-# 4 lock (1 ha_partition + 1 ha_innobase) x 2 (lock + unlock)
-# 1 read first (read first row, called from first rnd_next)
-# 2 read key (innobase_get_index from rnd_init +
-# read next row from second rnd_next)
-# 1 update (update the row)
-SELECT * FROM t1 PARTITION (subp0) ORDER BY a;
-a b
--2 (pNeg-)subp0, Updated
-FLUSH STATUS;
-UPDATE t1 PARTITION(subp0) SET b = concat(b, ', Updated2') WHERE a = -2;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_KEY 1
-HANDLER_TMP_WRITE 24
-HANDLER_UPDATE 2
-# 1 commit
-# 4 lock
-# 1 read key
-# 1 update
-FLUSH STATUS;
-UPDATE t1 PARTITION(subp0) SET a = -4, b = concat(b, ', Updated from a = -2')
-WHERE a = -2;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_KEY 1
-HANDLER_READ_RND 1
-HANDLER_TMP_WRITE 24
-HANDLER_UPDATE 2
-# 1 commit
-# 4 lock
-# 2 read key - (2 index read)
-# 1 read rnd - rnd_pos
-# 1 update
-FLUSH STATUS;
-UPDATE t1 PARTITION(subp0) SET b = concat(b, ', Updated2') WHERE a = 100;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-# Nothing, since impossible PARTITION+WHERE clause.
-FLUSH STATUS;
-UPDATE t1 PARTITION(subp0) SET a = -2, b = concat(b, ', Updated from a = 100')
-WHERE a = 100;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-# Nothing, since impossible PARTITION+WHERE clause.
-FLUSH STATUS;
-UPDATE t1 PARTITION(`p100-99999`) SET a = -2, b = concat(b, ', Updated from a = 100')
-WHERE a = 100;
-ERROR HY000: Found a row not matching the given partition set
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_READ_KEY 1
-HANDLER_READ_RND 1
-HANDLER_ROLLBACK 1
-HANDLER_TMP_WRITE 24
-HANDLER_UPDATE 1
-# 6 lock
-# 4 read key (1 index init + 1 index read + 1 rnd init + 1 rnd pos)
-# 1 read rnd (rnd pos)
-# 1 rollback
-FLUSH STATUS;
-UPDATE t1 PARTITION(`p100-99999`, pNeg) SET a = -4, b = concat(b, ', Updated from a = 100')
-WHERE a = 100;
-Got one of the listed errors
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_READ_KEY 1
-HANDLER_READ_RND 1
-HANDLER_ROLLBACK 1
-HANDLER_TMP_WRITE 24
-HANDLER_UPDATE 1
-HANDLER_WRITE 1
-# 10 locks
-# 4 read key
-# 1 read rnd
-# 1 rollback
-# 18 write (17 internal I_S + 1 failed insert)
-FLUSH STATUS;
-UPDATE t1 PARTITION(`p100-99999`, pNeg) SET a = -222, b = concat(b, ', Updated from a = 100')
-WHERE a = 100;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_DELETE 1
-HANDLER_READ_KEY 1
-HANDLER_READ_RND 1
-HANDLER_TMP_WRITE 24
-HANDLER_UPDATE 1
-HANDLER_WRITE 1
-# 1 commit
-# 1 delete
-# 4 read key
-# 1 read rnd
-# 18 write (17 internal I_S + 1 insert)
-SELECT * FROM t1 ORDER BY a;
-a b
--222 `p100-99999`(-subp6), Updated from a = 100
--21 REPLACEd by REPLACE
--4 (pNeg-)subp0, Updated, Updated2, Updated from a = -2
--3 pNeg(-subp1)
--1 pNeg(-subp1)
-1 subp3
-3 subp3
-5 p0-9:subp3
-10 p10-99
-101 `p100-99999`(-subp7)
-1000 `p100-99999`(-subp6)
-# Test of non matching partition (i.e ER_NO_PARTITION_FOUND)
-FLUSH STATUS;
-UPDATE t1 SET b = concat(b, ', Updated2') WHERE a = 1000000;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-# Nothing (no matching partition found)
-FLUSH STATUS;
-UPDATE t1 PARTITION (pNeg) SET b = concat(b, ', Updated2') WHERE a = 1000000;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-# Nothing (no matching partition found)
-FLUSH STATUS;
-LOCK TABLE t1 WRITE;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-# 9 locks
-UPDATE t1 PARTITION (subp7) SET b = concat(b, ', Updated to 103'), a = 103 WHERE a = 101;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 2
-HANDLER_READ_KEY 1
-HANDLER_READ_RND 1
-HANDLER_READ_RND_NEXT 28
-HANDLER_TMP_WRITE 51
-HANDLER_UPDATE 2
-# + 4 read key
-# + 1 read rnd
-# + 1 update
-UPDATE t1 PARTITION (`p100-99999`) SET b = concat(b, ', Updated to 110'), a = 110 WHERE a = 103;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 3
-HANDLER_DELETE 1
-HANDLER_READ_KEY 2
-HANDLER_READ_RND 2
-HANDLER_READ_RND_NEXT 56
-HANDLER_TMP_WRITE 78
-HANDLER_UPDATE 3
-HANDLER_WRITE 1
-# + 1 delete
-# + 4 read key
-# + 1 read rnd
-# + 19 write (18 internal I_S + 1 insert)
-UNLOCK TABLES;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 3
-HANDLER_DELETE 1
-HANDLER_READ_KEY 2
-HANDLER_READ_RND 2
-HANDLER_READ_RND_NEXT 84
-HANDLER_TMP_WRITE 105
-HANDLER_UPDATE 3
-HANDLER_WRITE 1
-+ 9 locks
-#
-# Test DELETE
-#
-SELECT * FROM t1 ORDER BY b, a;
-a b
--4 (pNeg-)subp0, Updated, Updated2, Updated from a = -2
-5 p0-9:subp3
-10 p10-99
--3 pNeg(-subp1)
--1 pNeg(-subp1)
--21 REPLACEd by REPLACE
-1 subp3
-3 subp3
-1000 `p100-99999`(-subp6)
--222 `p100-99999`(-subp6), Updated from a = 100
-110 `p100-99999`(-subp7), Updated to 103, Updated to 110
-FLUSH STATUS;
-DELETE FROM t1 PARTITION (pNeg) WHERE a = -1;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_DELETE 2
-HANDLER_READ_KEY 1
-HANDLER_TMP_WRITE 24
-# 1 delete
-# 4 locks (pruning works!).
-# 1 read key (index read)
-FLUSH STATUS;
-DELETE FROM t1 PARTITION (subp1) WHERE b like '%subp1%';
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_DELETE 2
-HANDLER_READ_RND_NEXT 3
-HANDLER_TMP_WRITE 24
-# 1 delete
-# 4 locks
-# 1 read first
-# 2 read key
-# 3 read rnd
-FLUSH STATUS;
-LOCK TABLE t1 WRITE;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-# 9 locks
-DELETE FROM t1 PARTITION (subp1) WHERE b = 'p0-9:subp3';
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 2
-HANDLER_READ_KEY 1
-HANDLER_READ_RND_NEXT 28
-HANDLER_TMP_WRITE 51
-# + 3 read key (1 innodb_get_index in records_in_range
-# + 1 innobase_get_index in index_init + 1 index read)
-DELETE FROM t1 PARTITION (`p0-9`) WHERE b = 'p0-9:subp3';
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 3
-HANDLER_DELETE 2
-HANDLER_READ_KEY 3
-HANDLER_READ_NEXT 1
-HANDLER_READ_RND_NEXT 56
-HANDLER_TMP_WRITE 78
-# + 1 delete
-# + 6 read key (same as above, but for two subpartitions)
-# + 1 read next (read next after found row)
-UNLOCK TABLES;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 3
-HANDLER_DELETE 2
-HANDLER_READ_KEY 3
-HANDLER_READ_NEXT 1
-HANDLER_READ_RND_NEXT 84
-HANDLER_TMP_WRITE 105
-# + 9 locks
-# Test multi-table DELETE
-# Can be expressed in two different ways.
-CREATE TABLE t2 LIKE t1;
-FLUSH STATUS;
-INSERT INTO t2 PARTITION (`p10-99`, subp3, `p100-99999`) SELECT * FROM t1 PARTITION (subp3, `p10-99`, `p100-99999`);
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_FIRST 5
-HANDLER_READ_NEXT 5
-HANDLER_TMP_WRITE 24
-HANDLER_WRITE 10
-# 24 locks (2 table, 5 + 5 subpartitions lock/unlock)
-FLUSH STATUS;
-ALTER TABLE t2 TRUNCATE PARTITION `p10-99`, `p0-9`, `p100-99999`;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-# 14 locks (1 table, 6 subpartitions lock/unlock)
-FLUSH STATUS;
-INSERT INTO t2 PARTITION (subp3) SELECT * FROM t1 PARTITION (subp3, `p10-99`, `p100-99999`);
-ERROR HY000: Found a row not matching the given partition set
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_READ_FIRST 5
-HANDLER_ROLLBACK 1
-HANDLER_TMP_WRITE 24
-HANDLER_WRITE 1
-# 16 locks (2 tables, 1 + 5 subpartitions lock/unlock)
-FLUSH STATUS;
-INSERT IGNORE INTO t2 PARTITION (subp3) SELECT * FROM t1 PARTITION (subp3, `p10-99`, `p100-99999`);
-Warnings:
-Warning 1748 Found a row not matching the given partition set
-Warning 1748 Found a row not matching the given partition set
-Warning 1748 Found a row not matching the given partition set
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_FIRST 5
-HANDLER_READ_NEXT 5
-HANDLER_TMP_WRITE 24
-HANDLER_WRITE 7
-# 16 locks (2 tables, 1 + 5 subpartitions lock/unlock)
-TRUNCATE TABLE t2;
-FLUSH STATUS;
-INSERT INTO t2 SELECT * FROM t1 PARTITION (subp3, `p10-99`, `p100-99999`);
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_FIRST 5
-HANDLER_READ_NEXT 5
-HANDLER_TMP_WRITE 24
-HANDLER_WRITE 10
-# 30 locks (2 table, 8 + 5 subpartitions lock/unlock)
-FLUSH STATUS;
-CREATE TABLE t3 SELECT * FROM t1 PARTITION (pNeg,subp3,`p100-99999`);
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_FIRST 5
-HANDLER_READ_NEXT 7
-HANDLER_TMP_WRITE 24
-HANDLER_WRITE 7
-# 14 locks (2 table, 5 subpartitions lock/unlock)
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(64) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `b` (`b`,`a`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-SUBPARTITION BY HASH (`a`)
-(PARTITION `pNeg` VALUES LESS THAN (0)
- (SUBPARTITION `subp0` ENGINE = InnoDB,
- SUBPARTITION `subp1` ENGINE = InnoDB),
- PARTITION `p0-9` VALUES LESS THAN (10)
- (SUBPARTITION `subp2` ENGINE = InnoDB,
- SUBPARTITION `subp3` ENGINE = InnoDB),
- PARTITION `p10-99` VALUES LESS THAN (100)
- (SUBPARTITION `subp4` ENGINE = InnoDB,
- SUBPARTITION `subp5` ENGINE = InnoDB),
- PARTITION `p100-99999` VALUES LESS THAN (100000)
- (SUBPARTITION `subp6` ENGINE = InnoDB,
- SUBPARTITION `subp7` ENGINE = InnoDB))
-SELECT * FROM t1;
-a b
--4 (pNeg-)subp0, Updated, Updated2, Updated from a = -2
-10 p10-99
--21 REPLACEd by REPLACE
-1 subp3
-3 subp3
-1000 `p100-99999`(-subp6)
--222 `p100-99999`(-subp6), Updated from a = 100
-110 `p100-99999`(-subp7), Updated to 103, Updated to 110
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) NOT NULL,
- `b` varchar(64) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `b` (`b`,`a`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-SUBPARTITION BY HASH (`a`)
-(PARTITION `pNeg` VALUES LESS THAN (0)
- (SUBPARTITION `subp0` ENGINE = InnoDB,
- SUBPARTITION `subp1` ENGINE = InnoDB),
- PARTITION `p0-9` VALUES LESS THAN (10)
- (SUBPARTITION `subp2` ENGINE = InnoDB,
- SUBPARTITION `subp3` ENGINE = InnoDB),
- PARTITION `p10-99` VALUES LESS THAN (100)
- (SUBPARTITION `subp4` ENGINE = InnoDB,
- SUBPARTITION `subp5` ENGINE = InnoDB),
- PARTITION `p100-99999` VALUES LESS THAN (100000)
- (SUBPARTITION `subp6` ENGINE = InnoDB,
- SUBPARTITION `subp7` ENGINE = InnoDB))
-SELECT * FROM t2;
-a b
-10 p10-99
-1 subp3
-3 subp3
-1000 `p100-99999`(-subp6)
-110 `p100-99999`(-subp7), Updated to 103, Updated to 110
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` int(11) NOT NULL,
- `b` varchar(64) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SELECT * FROM t3;
-a b
--4 (pNeg-)subp0, Updated, Updated2, Updated from a = -2
--21 REPLACEd by REPLACE
-1 subp3
-3 subp3
-1000 `p100-99999`(-subp6)
--222 `p100-99999`(-subp6), Updated from a = 100
-110 `p100-99999`(-subp7), Updated to 103, Updated to 110
-FLUSH STATUS;
-DELETE t1 PARTITION (pNeg), t3 FROM t1, t3
-WHERE t1.a = t3.a AND t3.b = 'subp3';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PARTITION (pNeg), t3 FROM t1, t3
-WHERE t1.a = t3.a AND t3.b = 'subp3'' at line 1
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_TMP_WRITE 24
-# Multi table delete without any matching rows
-FLUSH STATUS;
-DELETE t1, t2 FROM t1 PARTITION (pNeg), t3, t2 PARTITION (subp3)
-WHERE t1.a = t3.a AND t3.b = 'subp3' AND t3.a = t2.a;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_READ_RND_NEXT 3
-HANDLER_TMP_WRITE 24
-# 12 locks (3 in t1, 1 in t3, 2 in t2) x 2 (lock + unlock)
-# 1 read first (first rnd_next in t2)
-# 4 read key (1 innodb_get_index in rnd_init in t2 + index read in t2
-# + 2 innodb_get_index in index_init in t1)
-# 3 read rnd next (3 rnd next in t2, 2 rows + 1 empty)
-# Multi table delete matching all rows in subp3 (2 rows in per table)
-FLUSH STATUS;
-DELETE FROM t2, t3 USING t2 PARTITION (`p0-9`), t3, t1 PARTITION (subp3)
-WHERE t1.a = t3.a AND t3.b = 'subp3' AND t2.a = t1.a;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_DELETE 6
-HANDLER_READ_FIRST 1
-HANDLER_READ_KEY 2
-HANDLER_READ_NEXT 2
-HANDLER_READ_RND 4
-HANDLER_READ_RND_NEXT 16
-HANDLER_TMP_WRITE 24
-# 4 delete (2 in t2 + 2 in t3)
-# 12 locks (3 in t2, 1 in t3, 2 in t1) x 2 (lock + unlock)
-# 3 read first (1 in t1 + 1 in t3 + 1 in t3, for second row in t1)
-# 17 read key (1 index_init in t1 + 1 read first in t1 +
-# 2 index_init in t2 + 1 index read in t2 +
-# 1 index_init in t3 + 1 index read in t3 +
-# 1 index read in t2 +
-# 1 index_init in t3 + 1 index read in t3 +
-# 2 index_init in t2 + 2 index read in t2 (from rnd_pos)
-# 1 index_init in t3 + 2 index read in t3 (from rnd_pos))
-# 2 read next (1 in t1 + 1 in t1, second row)
-# 4 read rnd (position on 4 found rows to delete)
-# 16 rnd next (8 in t3 + 8 in t3, for second row)
-SELECT * FROM t1 ORDER BY a;
-a b
--222 `p100-99999`(-subp6), Updated from a = 100
--21 REPLACEd by REPLACE
--4 (pNeg-)subp0, Updated, Updated2, Updated from a = -2
-1 subp3
-3 subp3
-10 p10-99
-110 `p100-99999`(-subp7), Updated to 103, Updated to 110
-1000 `p100-99999`(-subp6)
-SELECT * FROM t2 ORDER BY a;
-a b
-10 p10-99
-110 `p100-99999`(-subp7), Updated to 103, Updated to 110
-1000 `p100-99999`(-subp6)
-SELECT * FROM t3 ORDER BY a;
-a b
--222 `p100-99999`(-subp6), Updated from a = 100
--21 REPLACEd by REPLACE
--4 (pNeg-)subp0, Updated, Updated2, Updated from a = -2
-110 `p100-99999`(-subp7), Updated to 103, Updated to 110
-1000 `p100-99999`(-subp6)
-# Test TRUNCATE TABLE (should fail, since one should use
-# ALTER TABLE ... TRUNCATE PARTITION instead)
-TRUNCATE TABLE t1 PARTITION(`p10-99`);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PARTITION(`p10-99`)' at line 1
-# Test of locking in TRUNCATE PARTITION
-# Note that it does not support truncating subpartitions
-FLUSH STATUS;
-ALTER TABLE t1 TRUNCATE PARTITION pNeg;
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
-VARIABLE_NAME VARIABLE_VALUE
-HANDLER_COMMIT 1
-HANDLER_TMP_WRITE 24
-# 6 locks (lock/unlock two subpartitions + table)
-# Test on non partitioned table
-SELECT * FROM t3 PARTITION (pNeg);
-ERROR HY000: PARTITION () clause on non partitioned table
-DROP TABLE t1, t2, t3;
-# Test from superseeded WL# 2682
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
-CREATE TABLE `t1` (
-`id` int(11) default NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-PARTITION BY RANGE (id) (
-PARTITION p0 VALUES LESS THAN (6) ENGINE = MyISAM,
-PARTITION p1 VALUES LESS THAN (11) ENGINE = MyISAM,
-PARTITION p2 VALUES LESS THAN (16) ENGINE = MyISAM,
-PARTITION p3 VALUES LESS THAN (21) ENGINE = MyISAM);
-INSERT INTO `t1` VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10),
-(11), (12), (13), (14), (15), (16), (17), (18), (19), (20);
-SELECT * FROM t1;
-id
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-SELECT * FROM t1 PARTITION (p0);
-id
-1
-2
-3
-4
-5
-SELECT * FROM t1 PARTITION (p1);
-id
-6
-7
-8
-9
-10
-SELECT * FROM t1 PARTITION (p2);
-id
-11
-12
-13
-14
-15
-SELECT * FROM t1 PARTITION (p3);
-id
-16
-17
-18
-19
-20
-SELECT * FROM t1 PARTITION (p3) WHERE id = 2;
-id
-SELECT * FROM t1 PARTITION (foo);
-ERROR HY000: Unknown partition 'foo' in table 't1'
-CREATE TABLE `t2` (
-`id` int(11) NOT NULL DEFAULT 0,
-PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-PARTITION BY RANGE (id) (
-PARTITION p0 VALUES LESS THAN (6) ENGINE = MyISAM,
-PARTITION p1 VALUES LESS THAN (11) ENGINE = MyISAM,
-PARTITION p2 VALUES LESS THAN (16) ENGINE = MyISAM,
-PARTITION p3 VALUES LESS THAN (21) ENGINE = MyISAM);
-INSERT INTO `t2` VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10),
-(11), (12), (13), (14), (15), (16), (17), (18), (19), (20);
-SELECT * FROM t2;
-id
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-SELECT * FROM t2 PARTITION (p0);
-id
-1
-2
-3
-4
-5
-SELECT * FROM t2 PARTITION (p1);
-id
-6
-7
-8
-9
-10
-SELECT * FROM t2 PARTITION (p2);
-id
-11
-12
-13
-14
-15
-SELECT * FROM t2 PARTITION (p3);
-id
-16
-17
-18
-19
-20
-SELECT * FROM t2 PARTITION (p3) ORDER BY id;
-id
-16
-17
-18
-19
-20
-SELECT * FROM t2 PARTITION (p3) WHERE id = 2;
-id
-SELECT * FROM t2 PARTITION (foo);
-ERROR HY000: Unknown partition 'foo' in table 't2'
-CREATE TABLE `t3` (
-`id` int(32) default NULL,
-`name` varchar(32) default NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-PARTITION BY LIST (id) (
-PARTITION p0 VALUES IN (1,3,5,7),
-PARTITION p1 VALUES IN (0,2,4,6,8),
-PARTITION p2 VALUES IN (9,10,11,12,13)
-);
-INSERT INTO `t3` VALUES (1,'first'), (3,'third'),(5,'fifth'),(7,'seventh'),(0,'zilch'),(2,'second'),(4,'fourth'),(6,'sixth'),(8,'eighth'),(9,'ninth'),(10,'tenth'),(11,'eleventh'),(12,'twelfth'),(13,'thirteenth');
-SELECT * FROM `t3`;
-id name
-1 first
-3 third
-5 fifth
-7 seventh
-0 zilch
-2 second
-4 fourth
-6 sixth
-8 eighth
-9 ninth
-10 tenth
-11 eleventh
-12 twelfth
-13 thirteenth
-SELECT * FROM `t3` PARTITION (p0);
-id name
-1 first
-3 third
-5 fifth
-7 seventh
-SELECT * FROM `t3` PARTITION (p1);
-id name
-0 zilch
-2 second
-4 fourth
-6 sixth
-8 eighth
-SELECT * FROM `t3` PARTITION (p2);
-id name
-9 ninth
-10 tenth
-11 eleventh
-12 twelfth
-13 thirteenth
-SELECT * FROM `t3` PARTITION (p2) ORDER BY id;
-id name
-9 ninth
-10 tenth
-11 eleventh
-12 twelfth
-13 thirteenth
-DROP TABLE IF EXISTS `t4`;
-Warnings:
-Note 1051 Unknown table 'test.t4'
-CREATE TABLE `t4` (
-`id` int(32) default NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 PARTITION BY HASH (id) ;
-INSERT INTO `t4` SELECT * FROM `t2`;
-INSERT INTO `t4` SELECT * FROM `t2` ORDER BY id;
-CREATE TABLE `t5` (
-id int(32),
-name varchar(64),
-purchased date)
-PARTITION BY RANGE( YEAR(purchased) )
-SUBPARTITION BY HASH( TO_DAYS(purchased) ) (
-PARTITION p0 VALUES LESS THAN (1990) (
-SUBPARTITION s0,
-SUBPARTITION s1
-),
-PARTITION p1 VALUES LESS THAN (2000) (
-SUBPARTITION s2,
-SUBPARTITION s3
-),
-PARTITION p2 VALUES LESS THAN MAXVALUE (
-SUBPARTITION s4,
-SUBPARTITION s5
-)
-);
-INSERT INTO `t5` VALUES (1, 'aaaaaaa', '2006-01-05 00:00:00');
-INSERT INTO `t5` VALUES (2, 'bbbbbbb', '2005-08-05 00:00:00');
-INSERT INTO `t5` VALUES (3, 'ccccccc', '1985-08-07 00:00:00');
-INSERT INTO `t5` VALUES (4, 'ddddddd', '2000-01-01 00:00:00');
-INSERT INTO `t5` VALUES (5, 'eeeeeee', '1999-12-01 00:00:00');
-INSERT INTO `t5` VALUES (6, 'fffffff', '2003-11-12 00:00:00');
-INSERT INTO `t5` VALUES (7, 'ggggggg', '1990-01-05 00:00:00');
-INSERT INTO `t5` VALUES (8, 'hhhhhhh', '1978-01-05 00:00:00');
-INSERT INTO `t5` VALUES (9, 'iiiiiii', '1979-01-05 00:00:00');
-INSERT INTO `t5` VALUES (10, 'jjjjjjj', '1992-01-05 00:00:00');
-INSERT INTO `t5` VALUES (11, 'kkkkkkk', '1993-01-05 00:00:00');
-INSERT INTO `t5` VALUES (12, 'mmmmmmm', '1994-01-05 00:00:00');
-INSERT INTO `t5` VALUES (13, 'nnnnnnn', '1989-01-05 00:00:00');
-INSERT INTO `t5` VALUES (14, 'ooooooo', '1983-12-05 00:00:00');
-INSERT INTO `t5` VALUES (15, 'ppppppp', '1986-06-05 00:00:00');
-INSERT INTO `t5` VALUES (16, 'qqqqqqq', '1974-04-11 00:00:00');
-INSERT INTO `t5` VALUES (17, 'qqqqqqq', '1960-03-15 00:00:00');
-INSERT INTO `t5` VALUES (18, 'sssssss', '1950-09-23 00:00:00');
-INSERT INTO `t5` VALUES (19, 'ttttttt', '1999-08-02 00:00:00');
-INSERT INTO `t5` VALUES (20, 'uuuuuuu', '1994-05-28 00:00:00');
-SELECT * FROM `t5`;
-id name purchased
-8 hhhhhhh 1978-01-05
-13 nnnnnnn 1989-01-05
-14 ooooooo 1983-12-05
-18 sssssss 1950-09-23
-3 ccccccc 1985-08-07
-9 iiiiiii 1979-01-05
-15 ppppppp 1986-06-05
-16 qqqqqqq 1974-04-11
-17 qqqqqqq 1960-03-15
-5 eeeeeee 1999-12-01
-12 mmmmmmm 1994-01-05
-7 ggggggg 1990-01-05
-10 jjjjjjj 1992-01-05
-11 kkkkkkk 1993-01-05
-19 ttttttt 1999-08-02
-20 uuuuuuu 1994-05-28
-2 bbbbbbb 2005-08-05
-6 fffffff 2003-11-12
-1 aaaaaaa 2006-01-05
-4 ddddddd 2000-01-01
-SELECT * FROM `t5` PARTITION(p0) ORDER BY id;
-id name purchased
-3 ccccccc 1985-08-07
-8 hhhhhhh 1978-01-05
-9 iiiiiii 1979-01-05
-13 nnnnnnn 1989-01-05
-14 ooooooo 1983-12-05
-15 ppppppp 1986-06-05
-16 qqqqqqq 1974-04-11
-17 qqqqqqq 1960-03-15
-18 sssssss 1950-09-23
-SELECT * FROM `t5` PARTITION(s0) ORDER BY id;
-id name purchased
-8 hhhhhhh 1978-01-05
-13 nnnnnnn 1989-01-05
-14 ooooooo 1983-12-05
-18 sssssss 1950-09-23
-SELECT * FROM `t5` PARTITION(s1) ORDER BY id;
-id name purchased
-3 ccccccc 1985-08-07
-9 iiiiiii 1979-01-05
-15 ppppppp 1986-06-05
-16 qqqqqqq 1974-04-11
-17 qqqqqqq 1960-03-15
-SELECT * FROM `t5` PARTITION(p1) ORDER BY id;
-id name purchased
-5 eeeeeee 1999-12-01
-7 ggggggg 1990-01-05
-10 jjjjjjj 1992-01-05
-11 kkkkkkk 1993-01-05
-12 mmmmmmm 1994-01-05
-19 ttttttt 1999-08-02
-20 uuuuuuu 1994-05-28
-SELECT * FROM `t5` PARTITION(s2) ORDER BY id;
-id name purchased
-5 eeeeeee 1999-12-01
-12 mmmmmmm 1994-01-05
-SELECT * FROM `t5` PARTITION(s3) ORDER BY id;
-id name purchased
-7 ggggggg 1990-01-05
-10 jjjjjjj 1992-01-05
-11 kkkkkkk 1993-01-05
-19 ttttttt 1999-08-02
-20 uuuuuuu 1994-05-28
-SELECT * FROM `t5` PARTITION(p2) ORDER BY id;
-id name purchased
-1 aaaaaaa 2006-01-05
-2 bbbbbbb 2005-08-05
-4 ddddddd 2000-01-01
-6 fffffff 2003-11-12
-SELECT * FROM `t5` PARTITION(s4) ORDER BY id;
-id name purchased
-2 bbbbbbb 2005-08-05
-6 fffffff 2003-11-12
-SELECT * FROM `t5` PARTITION(s5) ORDER BY id;
-id name purchased
-1 aaaaaaa 2006-01-05
-4 ddddddd 2000-01-01
-drop table t1,t2,t3,t4,t5;
-create table t1 (a int) partition by hash(a) partitions 3;
-insert into t1 values(1),(2),(3);
-explain partitions select * from t1 where a=1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 partition (p1) where a=1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 partition (p1) where a=1 or a=2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 partition (p2) where a=1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-drop table t1;
-#
-# Bug#59864: Crash if table empty: DELETE FROM t2 PARTITION (subp3).
-#
-CREATE TABLE t1
-(a INT NOT NULL,
-b varchar (64),
-INDEX (b,a),
-PRIMARY KEY (a))
-PARTITION BY RANGE (a)
-SUBPARTITION BY HASH (a) SUBPARTITIONS 3
-(PARTITION pNeg VALUES LESS THAN (0)
-(SUBPARTITION subp0,
-SUBPARTITION subp1,
-SUBPARTITION subp2),
-PARTITION `p0-29` VALUES LESS THAN (30)
-(SUBPARTITION subp3,
-SUBPARTITION subp4,
-SUBPARTITION subp5),
-PARTITION `p30-299` VALUES LESS THAN (300)
-(SUBPARTITION subp6,
-SUBPARTITION subp7,
-SUBPARTITION subp8),
-PARTITION `p300-2999` VALUES LESS THAN (3000)
-(SUBPARTITION subp9,
-SUBPARTITION subp10,
-SUBPARTITION subp11),
-PARTITION `p3000-299999` VALUES LESS THAN (300000)
-(SUBPARTITION subp12,
-SUBPARTITION subp13,
-SUBPARTITION subp14));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(64) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `b` (`b`,`a`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-SUBPARTITION BY HASH (`a`)
-(PARTITION `pNeg` VALUES LESS THAN (0)
- (SUBPARTITION `subp0` ENGINE = InnoDB,
- SUBPARTITION `subp1` ENGINE = InnoDB,
- SUBPARTITION `subp2` ENGINE = InnoDB),
- PARTITION `p0-29` VALUES LESS THAN (30)
- (SUBPARTITION `subp3` ENGINE = InnoDB,
- SUBPARTITION `subp4` ENGINE = InnoDB,
- SUBPARTITION `subp5` ENGINE = InnoDB),
- PARTITION `p30-299` VALUES LESS THAN (300)
- (SUBPARTITION `subp6` ENGINE = InnoDB,
- SUBPARTITION `subp7` ENGINE = InnoDB,
- SUBPARTITION `subp8` ENGINE = InnoDB),
- PARTITION `p300-2999` VALUES LESS THAN (3000)
- (SUBPARTITION `subp9` ENGINE = InnoDB,
- SUBPARTITION `subp10` ENGINE = InnoDB,
- SUBPARTITION `subp11` ENGINE = InnoDB),
- PARTITION `p3000-299999` VALUES LESS THAN (300000)
- (SUBPARTITION `subp12` ENGINE = InnoDB,
- SUBPARTITION `subp13` ENGINE = InnoDB,
- SUBPARTITION `subp14` ENGINE = InnoDB))
-INSERT INTO t1 VALUES (-9, "negative nine"), (-8, "-8"), (-7, "-7"), (-6, "-6"), (-5, "-5"), (-4, "-4"), (-3, "-3"), (-2, "-2"), (-1, "-1");
-INSERT INTO t1 VALUES (9, "nine"), (8, "8"), (7, "7"), (6, "6"), (5, "5"), (4, "4"), (3, "3"), (2, "2"), (1, "1");
-INSERT INTO t1 VALUES (39, "Thirty nine"), (38, "38"), (37, "37"), (36, "36"), (35, "35"), (34, "34"), (33, "33"), (32, "32"), (31, "31");
-INSERT INTO t1 VALUES (339, "Three hundred thirty nine"), (338, "338"), (337, "337"), (336, "336"), (335, "335"), (334, "334"), (333, "333"), (332, "332"), (331, "331");
-INSERT INTO t1 VALUES (3339, "Three thousand three hundred thirty nine"), (3338, "3338"), (3337, "3337"), (3336, "3336"), (3335, "3335"), (3334, "3334"), (3333, "3333"), (3332, "3332"), (3331, "3331");
-SELECT * FROM t1;
-a b
--1 -1
--2 -2
--3 -3
--4 -4
--5 -5
--6 -6
--7 -7
--8 -8
--9 negative nine
-1 1
-2 2
-3 3
-31 31
-32 32
-33 33
-331 331
-332 332
-333 333
-3331 3331
-3332 3332
-3333 3333
-3334 3334
-3335 3335
-3336 3336
-3337 3337
-3338 3338
-3339 Three thousand three hundred thirty nine
-334 334
-335 335
-336 336
-337 337
-338 338
-339 Three hundred thirty nine
-34 34
-35 35
-36 36
-37 37
-38 38
-39 Thirty nine
-4 4
-5 5
-6 6
-7 7
-8 8
-9 nine
-SELECT * FROM t1 PARTITION (subp3);
-a b
-3 3
-6 6
-9 nine
-DELETE FROM t1 PARTITION (subp3);
-SELECT * FROM t1;
-a b
--1 -1
--2 -2
--3 -3
--4 -4
--5 -5
--6 -6
--7 -7
--8 -8
--9 negative nine
-1 1
-2 2
-31 31
-32 32
-33 33
-331 331
-332 332
-333 333
-3331 3331
-3332 3332
-3333 3333
-3334 3334
-3335 3335
-3336 3336
-3337 3337
-3338 3338
-3339 Three thousand three hundred thirty nine
-334 334
-335 335
-336 336
-337 337
-338 338
-339 Three hundred thirty nine
-34 34
-35 35
-36 36
-37 37
-38 38
-39 Thirty nine
-4 4
-5 5
-7 7
-8 8
-SELECT * FROM t1 PARTITION (subp3);
-a b
-DELETE FROM t1 PARTITION (`p0-29`);
-SELECT * FROM t1;
-a b
--1 -1
--2 -2
--3 -3
--4 -4
--5 -5
--6 -6
--7 -7
--8 -8
--9 negative nine
-31 31
-32 32
-33 33
-331 331
-332 332
-333 333
-3331 3331
-3332 3332
-3333 3333
-3334 3334
-3335 3335
-3336 3336
-3337 3337
-3338 3338
-3339 Three thousand three hundred thirty nine
-334 334
-335 335
-336 336
-337 337
-338 338
-339 Three hundred thirty nine
-34 34
-35 35
-36 36
-37 37
-38 38
-39 Thirty nine
-SELECT * FROM t1 PARTITION (`p0-29`);
-a b
-ALTER TABLE t1 PARTITION BY HASH (a) PARTITIONS 3;
-DELETE FROM t1 PARTITION (p2);
-SELECT * FROM t1;
-a b
--1 -1
--3 -3
--4 -4
--6 -6
--7 -7
--9 negative nine
-31 31
-33 33
-331 331
-333 333
-3331 3331
-3333 3333
-3334 3334
-3336 3336
-3337 3337
-3339 Three thousand three hundred thirty nine
-334 334
-336 336
-337 337
-339 Three hundred thirty nine
-34 34
-36 36
-37 37
-39 Thirty nine
-SELECT * FROM t1 PARTITION (p2);
-a b
-DROP TABLE t1;
-#
-# Test explicit partition selection on a non partitioned temp table
-#
-CREATE TEMPORARY TABLE t1 (a INT);
-SELECT * FROM t1 PARTITION(pNonexisting);
-ERROR HY000: PARTITION () clause on non partitioned table
-DROP TEMPORARY TABLE t1;
-#
-# Test CREATE LIKE does not take PARTITION clause
-#
-CREATE TABLE t1 (a INT) PARTITION BY HASH (a) PARTITIONS 3;
-CREATE TABLE t2 LIKE t1 PARTITION (p0, p2);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PARTITION (p0, p2)' at line 1
-DROP TABLE t1;
-SET @@default_storage_engine = @old_default_storage_engine;
diff --git a/mysql-test/r/partition_grant.result b/mysql-test/r/partition_grant.result
deleted file mode 100644
index cd8f8a970d0..00000000000
--- a/mysql-test/r/partition_grant.result
+++ /dev/null
@@ -1,51 +0,0 @@
-drop schema if exists mysqltest_1;
-create schema mysqltest_1;
-use mysqltest_1;
-create table t1 (a int) partition by list (a) (partition p1 values in (1), partition p2 values in (2), partition p3 values in (3));
-insert into t1 values (1),(2);
-create user mysqltest_1@localhost;
-grant usage on *.* to mysqltest_1@localhost;
-revoke all privileges on *.* from mysqltest_1@localhost;
-grant select,alter on mysqltest_1.* to mysqltest_1@localhost;
-connect conn1,localhost,mysqltest_1,,mysqltest_1;
-show grants for current_user;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT SELECT, ALTER ON `mysqltest_1`.* TO 'mysqltest_1'@'localhost'
-alter table t1 add b int;
-alter table t1 drop partition p2;
-ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table 't1'
-disconnect conn1;
-connection default;
-grant drop on mysqltest_1.* to mysqltest_1@localhost;
-connect conn2,localhost,mysqltest_1,,mysqltest_1;
-alter table t1 drop partition p2;
-disconnect conn2;
-connection default;
-revoke alter on mysqltest_1.* from mysqltest_1@localhost;
-connect conn3,localhost,mysqltest_1,,mysqltest_1;
-alter table t1 drop partition p3;
-ERROR 42000: ALTER command denied to user 'mysqltest_1'@'localhost' for table 't1'
-disconnect conn3;
-connection default;
-revoke select,alter,drop on mysqltest_1.* from mysqltest_1@localhost;
-drop table t1;
-create table t1 (s1 int);
-insert into t1 values (1);
-grant alter on mysqltest_1.* to mysqltest_1@localhost;
-connect conn4,localhost,mysqltest_1,,mysqltest_1;
-connection conn4;
-alter table t1 partition by list (s1) (partition p1 values in (2));
-ERROR HY000: Table has no partition for some existing values
-connection default;
-grant select, alter on mysqltest_1.* to mysqltest_1@localhost;
-disconnect conn4;
-connect conn5,localhost,mysqltest_1,,mysqltest_1;
-alter table t1 partition by list (s1) (partition p1 values in (2));
-ERROR HY000: Table has no partition for value 1
-disconnect conn5;
-connection default;
-drop table t1;
-drop user mysqltest_1@localhost;
-drop schema mysqltest_1;
-End of 5.1 tests
diff --git a/mysql-test/r/partition_hash.result b/mysql-test/r/partition_hash.result
deleted file mode 100644
index 9a63db3f974..00000000000
--- a/mysql-test/r/partition_hash.result
+++ /dev/null
@@ -1,202 +0,0 @@
-drop table if exists t1;
-CREATE TABLE t1 (c1 INT)
-PARTITION BY HASH (c1)
-PARTITIONS 15;
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
-ALTER TABLE t1 COALESCE PARTITION 13;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 INT)
-PARTITION BY LINEAR HASH (c1)
-PARTITIONS 5;
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
-ALTER TABLE t1 COALESCE PARTITION 3;
-DROP TABLE t1;
-create table t1 (a int unsigned)
-partition by hash(a div 2)
-partitions 4;
-insert into t1 values (null),(0),(1),(2),(3),(4),(5),(6),(7);
-select * from t1 where a < 0;
-a
-select * from t1 where a is null or (a >= 5 and a <= 7);
-a
-NULL
-5
-6
-7
-select * from t1 where a is null;
-a
-NULL
-select * from t1 where a is not null;
-a
-0
-1
-2
-3
-4
-5
-6
-7
-select * from t1 where a >= 1 and a < 3;
-a
-1
-2
-select * from t1 where a >= 3 and a <= 5;
-a
-3
-4
-5
-select * from t1 where a > 2 and a < 4;
-a
-3
-select * from t1 where a > 3 and a <= 6;
-a
-4
-5
-6
-select * from t1 where a > 5;
-a
-6
-7
-select * from t1 where a >= 1 and a <= 5;
-a
-1
-2
-3
-4
-5
-explain partitions select * from t1 where a < 0;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3 ALL NULL NULL NULL NULL 9 Using where
-explain partitions select * from t1 where a is null or (a >= 5 and a <= 7);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p2,p3 ALL NULL NULL NULL NULL 7 Using where
-explain partitions select * from t1 where a is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t1 where a is not null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3 ALL NULL NULL NULL NULL 9 Using where
-explain partitions select * from t1 where a >= 1 and a < 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 5 Using where
-explain partitions select * from t1 where a >= 3 and a <= 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2 ALL NULL NULL NULL NULL 4 Using where
-explain partitions select * from t1 where a > 2 and a < 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a > 3 and a <= 6;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2,p3 ALL NULL NULL NULL NULL 4 Using where
-explain partitions select * from t1 where a > 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3 ALL NULL NULL NULL NULL 9 Using where
-explain partitions select * from t1 where a >= 1 and a <= 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2 ALL NULL NULL NULL NULL 7 Using where
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by hash (a + 2)
-partitions 3
-(partition x1 tablespace ts1,
-partition x2 tablespace ts2,
-partition x3 tablespace ts3);
-insert into t1 values (1,1,1);
-insert into t1 values (2,1,1);
-insert into t1 values (3,1,1);
-insert into t1 values (4,1,1);
-insert into t1 values (5,1,1);
-select * from t1;
-a b c
-1 1 1
-4 1 1
-2 1 1
-5 1 1
-3 1 1
-update t1 set c=3 where b=1;
-select * from t1;
-a b c
-1 1 3
-4 1 3
-2 1 3
-5 1 3
-3 1 3
-select b from t1 where a=3;
-b
-1
-select b,c from t1 where a=1 AND b=1;
-b c
-1 3
-delete from t1 where a=1;
-delete from t1 where c=3;
-select * from t1;
-a b c
-ALTER TABLE t1
-partition by hash (a + 3)
-partitions 3
-(partition x1 tablespace ts1,
-partition x2 tablespace ts2,
-partition x3 tablespace ts3);
-select * from t1;
-a b c
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by hash (a)
-(partition x1);
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by key (a)
-(partition x1);
-drop table t1;
-CREATE TABLE t1 (f1 INTEGER, f2 char(20)) ENGINE = 'MYISAM' PARTITION BY HASH(f1) PARTITIONS 2;
-INSERT INTO t1 SET f1 = 0 - 1, f2 = '#######';
-select * from t1;
-f1 f2
--1 #######
-drop table t1;
-set sql_mode="";
-CREATE TABLE t1 (s1 int) ENGINE=BLACKHOLE PARTITION BY HASH (s1);
-INSERT INTO t1 VALUES (0);
-DROP TABLE t1;
-set sql_mode=default;
-create table t1 (c1 int DEFAULT NULL,
-c2 varchar (30) DEFAULT NULL,
-c3 date DEFAULT NULL)
-engine = myisam
-partition by hash (to_days(c3))
-partitions 12;
-insert into t1 values
-(136,'abc','2002-01-05'),(142,'abc','2002-02-14'),(162,'abc','2002-06-28'),
-(182,'abc','2002-11-09'),(158,'abc','2002-06-01'),(184,'abc','2002-11-22');
-select * from t1;
-c1 c2 c3
-136 abc 2002-01-05
-158 abc 2002-06-01
-142 abc 2002-02-14
-162 abc 2002-06-28
-182 abc 2002-11-09
-184 abc 2002-11-22
-select * from t1 where c3 between '2002-01-01' and '2002-12-31';
-c1 c2 c3
-136 abc 2002-01-05
-158 abc 2002-06-01
-142 abc 2002-02-14
-162 abc 2002-06-28
-182 abc 2002-11-09
-184 abc 2002-11-22
-drop table t1;
-CREATE TABLE t1 (c1 INT) ENGINE=MyISAM PARTITION BY HASH(c1) PARTITIONS 1;
-INSERT DELAYED INTO t1 VALUES (1);
-DROP TABLE t1;
diff --git a/mysql-test/r/partition_innodb.result b/mysql-test/r/partition_innodb.result
deleted file mode 100644
index d27abc07984..00000000000
--- a/mysql-test/r/partition_innodb.result
+++ /dev/null
@@ -1,927 +0,0 @@
-call mtr.add_suppression("Deadlock found when trying to get lock; try restarting transaction");
-set global default_storage_engine='innodb';
-set session default_storage_engine='innodb';
-drop table if exists t1, t2;
-#
-# Bug#13694811: THE OPTIMIZER WRONGLY USES THE FIRST
-# INNODB PARTITION STATISTICS
-#
-CREATE TABLE t1
-(a INT,
-b varchar(64),
-PRIMARY KEY (a),
-KEY (b))
-ENGINE = InnoDB
-PARTITION BY RANGE (a)
-SUBPARTITION BY HASH (a) SUBPARTITIONS 10
-(PARTITION pNeg VALUES LESS THAN (0),
-PARTITION p0 VALUES LESS THAN (1000),
-PARTITION pMAX VALUES LESS THAN MAXVALUE);
-# Only one row in the first 10 subpartitions
-INSERT INTO t1 VALUES (-1, 'Only negative pk value');
-INSERT INTO t1 VALUES (0, 'Mod Zero'), (1, 'One'), (2, 'Two'), (3, 'Three'),
-(10, 'Zero'), (11, 'Mod One'), (12, 'Mod Two'), (13, 'Mod Three'),
-(20, '0'), (21, '1'), (22, '2'), (23, '3'),
-(4, '4'), (5, '5'), (6, '6'), (7, '7'), (8, '8'), (9, '9');
-INSERT INTO t1 SELECT a + 30, b FROM t1 WHERE a >= 0;
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-EXPLAIN SELECT b FROM t1 WHERE b between 'L' and 'N' AND a > -100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,b b 67 NULL 34 Using where; Using index
-DROP TABLE t1;
-#
-# Bug#13007154: Crash in keys_to_use_for_scanning with ORDER BY
-# and PARTITIONING
-#
-CREATE TABLE t1 (a INT, KEY(a))
-ENGINE = InnoDB
-PARTITION BY KEY (a) PARTITIONS 1;
-SELECT 1 FROM t1 WHERE a > (SELECT LAST_INSERT_ID() FROM t1 LIMIT 0)
-ORDER BY a;
-1
-DROP TABLE t1;
-#
-# Bug#56287: crash when using Partition datetime in sub in query
-#
-CREATE TABLE t1
-(c1 bigint(20) unsigned NOT NULL AUTO_INCREMENT,
-c2 varchar(40) not null default '',
-c3 datetime not NULL,
-PRIMARY KEY (c1,c3),
-KEY partidx(c3))
-ENGINE=InnoDB
-PARTITION BY RANGE (TO_DAYS(c3))
-(PARTITION p200912 VALUES LESS THAN (to_days('2010-01-01')),
-PARTITION p201103 VALUES LESS THAN (to_days('2011-04-01')),
-PARTITION p201912 VALUES LESS THAN MAXVALUE);
-insert into t1(c2,c3) values ("Test row",'2010-01-01 00:00:00');
-SELECT PARTITION_NAME, TABLE_ROWS FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME = 't1' AND TABLE_SCHEMA = 'test';
-PARTITION_NAME TABLE_ROWS
-p200912 0
-p201103 1
-p201912 0
-SELECT count(*) FROM t1 p where c3 in
-(select c3 from t1 t where t.c3 < timestamp '2011-04-26 19:19:44'
- and t.c3 > timestamp '2011-04-26 19:18:44') ;
-count(*)
-0
-DROP TABLE t1;
-#
-# Bug#54747: Deadlock between REORGANIZE PARTITION and
-# SELECT is not detected
-#
-SET @old_innodb_thread_concurrency := @@innodb_thread_concurrency;
-SET @old_innodb_thread_sleep_delay := @@innodb_thread_sleep_delay;
-SET GLOBAL innodb_thread_concurrency = 1;
-CREATE TABLE t1
-(user_num BIGINT,
-hours SMALLINT,
-KEY user_num (user_num))
-ENGINE = InnoDB
-PARTITION BY RANGE COLUMNS (hours)
-(PARTITION hour_003 VALUES LESS THAN (3),
-PARTITION hour_004 VALUES LESS THAN (4),
-PARTITION hour_005 VALUES LESS THAN (5),
-PARTITION hour_last VALUES LESS THAN (MAXVALUE));
-INSERT INTO t1 VALUES (1, 1), (2, 2), (3, 3), (4, 4), (5, 5);
-BEGIN;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-5
-connect con1,localhost,root,,;
-# SEND a ALTER PARTITION which waits on the ongoing transaction.
-ALTER TABLE t1
-REORGANIZE PARTITION hour_003, hour_004 INTO
-(PARTITION oldest VALUES LESS THAN (4));
-# Connection default wait until the ALTER is in 'waiting for table...'
-# state and then continue the transaction by trying a SELECT
-connection default;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-5
-COMMIT;
-# reaping ALTER.
-connection con1;
-# Cleaning up.
-disconnect con1;
-connection default;
-SET GLOBAL innodb_thread_concurrency = @old_innodb_thread_concurrency;
-SET GLOBAL innodb_thread_sleep_delay = @old_innodb_thread_sleep_delay;
-DROP TABLE t1;
-#
-# Bug#50418: DROP PARTITION does not interact with transactions
-#
-CREATE TABLE t1 (
-id INT AUTO_INCREMENT NOT NULL,
-name CHAR(50) NOT NULL,
-myDate DATE NOT NULL,
-PRIMARY KEY (id, myDate),
-INDEX idx_date (myDate)
-) ENGINE=InnoDB
-PARTITION BY RANGE ( TO_DAYS(myDate) ) (
-PARTITION p0 VALUES LESS THAN (734028),
-PARTITION p1 VALUES LESS THAN (734029),
-PARTITION p2 VALUES LESS THAN (734030),
-PARTITION p3 VALUES LESS THAN MAXVALUE
-) ;
-INSERT INTO t1 VALUES
-(NULL, 'Lachlan', '2009-09-13'),
-(NULL, 'Clint', '2009-09-13'),
-(NULL, 'John', '2009-09-14'),
-(NULL, 'Dave', '2009-09-14'),
-(NULL, 'Jeremy', '2009-09-15'),
-(NULL, 'Scott', '2009-09-15'),
-(NULL, 'Jeff', '2009-09-16'),
-(NULL, 'Joe', '2009-09-16');
-SET AUTOCOMMIT=0;
-SELECT * FROM t1 FOR UPDATE;
-id name myDate
-1 Lachlan 2009-09-13
-2 Clint 2009-09-13
-3 John 2009-09-14
-4 Dave 2009-09-14
-5 Jeremy 2009-09-15
-6 Scott 2009-09-15
-7 Jeff 2009-09-16
-8 Joe 2009-09-16
-UPDATE t1 SET name = 'Mattias' WHERE id = 7;
-SELECT * FROM t1 WHERE id = 7;
-id name myDate
-7 Mattias 2009-09-16
-connect con1, localhost, root,,;
-SET lock_wait_timeout = 1;
-# After the patch it will wait and fail on timeout.
-ALTER TABLE t1 DROP PARTITION p3;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-SHOW WARNINGS;
-Level Code Message
-Error 1205 Lock wait timeout exceeded; try restarting transaction
-disconnect con1;
-connection default;
-SELECT * FROM t1;
-id name myDate
-1 Lachlan 2009-09-13
-2 Clint 2009-09-13
-3 John 2009-09-14
-4 Dave 2009-09-14
-5 Jeremy 2009-09-15
-6 Scott 2009-09-15
-7 Mattias 2009-09-16
-8 Joe 2009-09-16
-# No changes.
-COMMIT;
-DROP TABLE t1;
-#
-# Bug#51830: Incorrect partition pruning on range partition (regression)
-#
-CREATE TABLE t1 (a INT NOT NULL)
-ENGINE = InnoDB
-PARTITION BY RANGE(a)
-(PARTITION p10 VALUES LESS THAN (10),
-PARTITION p30 VALUES LESS THAN (30),
-PARTITION p50 VALUES LESS THAN (50),
-PARTITION p70 VALUES LESS THAN (70),
-PARTITION p90 VALUES LESS THAN (90));
-INSERT INTO t1 VALUES (10),(30),(50);
-INSERT INTO t1 VALUES (70);
-INSERT INTO t1 VALUES (80);
-INSERT INTO t1 VALUES (89);
-INSERT INTO t1 VALUES (90);
-ERROR HY000: Table has no partition for value 90
-INSERT INTO t1 VALUES (100);
-ERROR HY000: Table has no partition for value 100
-insert INTO t1 VALUES (110);
-ERROR HY000: Table has no partition for value 110
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 90;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 90;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 90;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 89;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p90 ALL NULL NULL NULL NULL 3 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 89;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p90 ALL NULL NULL NULL NULL 3 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 89;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 100;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 100;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 100;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-DROP TABLE t1;
-#
-# Bug#50104: Partitioned table with just 1 partion works with fk
-#
-CREATE TABLE t2 (
-id INT,
-PRIMARY KEY (id)
-) ENGINE=InnoDB ;
-CREATE TABLE t1 (
-id INT NOT NULL AUTO_INCREMENT,
-parent_id INT DEFAULT NULL,
-PRIMARY KEY (id),
-KEY parent_id (parent_id)
-) ENGINE=InnoDB;
-ALTER TABLE t1 PARTITION BY HASH (id) PARTITIONS 1;
-ALTER TABLE t1 ADD CONSTRAINT test_ibfk_1 FOREIGN KEY (parent_id) REFERENCES t2 (id);
-ERROR HY000: Foreign key clause is not yet supported in conjunction with partitioning
-ALTER TABLE t1 PARTITION BY HASH (id) PARTITIONS 2;
-ALTER TABLE t1 ADD CONSTRAINT test_ibfk_1 FOREIGN KEY (parent_id) REFERENCES t2 (id);
-ERROR HY000: Foreign key clause is not yet supported in conjunction with partitioning
-DROP TABLE t1, t2;
-create table t1 (a varchar(5), b int signed, c varchar(10), d datetime)
-partition by range columns(b,c)
-subpartition by hash(to_seconds(d))
-( partition p0 values less than (2, 'b'),
-partition p1 values less than (4, 'd'),
-partition p2 values less than (10, 'za'));
-insert into t1 values ('a', 3, 'w', '2001-10-27 04:34:00');
-insert into t1 values ('r', 7, 'w', '2001-10-27 05:34:00');
-insert into t1 values ('g', 10, 'w', '2001-10-27 06:34:00');
-update t1 set a = 'c' where a > 'f';
-drop table t1;
-create table t1 (a varchar(5))
-engine=memory
-partition by range columns(a)
-( partition p0 values less than ('m'),
-partition p1 values less than ('za'));
-insert into t1 values ('j');
-update t1 set a = 'z' where (a >= 'j');
-drop table t1;
-create table t1 (a varchar(5))
-engine=myisam
-partition by range columns(a)
-( partition p0 values less than ('m'),
-partition p1 values less than ('za'));
-insert into t1 values ('j');
-update t1 set a = 'z' where (a >= 'j');
-drop table t1;
-create table t1 (a varchar(5))
-engine=innodb
-partition by range columns(a)
-( partition p0 values less than ('m'),
-partition p1 values less than ('za'));
-insert into t1 values ('j');
-update t1 set a = 'z' where (a >= 'j');
-drop table t1;
-create table t1 (a int not null,
-b datetime not null,
-primary key (a,b))
-engine=innodb
-partition by range (to_days(b))
-subpartition by hash (a)
-subpartitions 2
-( partition p0 values less than (to_days('2009-01-01')),
-partition p1 values less than (to_days('2009-02-01')),
-partition p2 values less than (to_days('2009-03-01')),
-partition p3 values less than maxvalue);
-alter table t1 reorganize partition p1,p2 into
-( partition p2 values less than (to_days('2009-03-01')));
-drop table t1;
-CREATE TABLE t1 (id INT PRIMARY KEY, data INT) ENGINE = InnoDB
-PARTITION BY RANGE(id) (
-PARTITION p0 VALUES LESS THAN (5),
-PARTITION p1 VALUES LESS THAN (10),
-PARTITION p2 VALUES LESS THAN MAXVALUE
-);
-INSERT INTO t1 VALUES (1,1), (2,2), (3,3), (4,4), (5,5), (6,6), (7,7), (8,8),
-(9,9), (10,10), (11,11);
-SET @old_tx_isolation := @@session.tx_isolation;
-SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
-SET autocommit = 0;
-UPDATE t1 SET DATA = data*2 WHERE id = 3;
-UPDATE t1 SET data = data*2 WHERE data = 2;
-SET @@session.tx_isolation = @old_tx_isolation;
-DROP TABLE t1;
-# Bug#37721, test of ORDER BY on PK and WHERE on INDEX
-CREATE TABLE t1 (
-a INT,
-b INT,
-PRIMARY KEY (a),
-INDEX (b))
-ENGINE InnoDB
-PARTITION BY HASH(a)
-PARTITIONS 3;
-INSERT INTO t1 VALUES (0,0),(4,0),(2,0);
-SELECT a FROM t1 WHERE b = 0 ORDER BY a ASC;
-a
-0
-2
-4
-SELECT a FROM t1 WHERE b = 0 ORDER BY a DESC;
-a
-4
-2
-0
-ALTER TABLE t1 DROP INDEX b;
-SELECT a FROM t1 WHERE b = 0 ORDER BY a ASC;
-a
-0
-2
-4
-SELECT a FROM t1 WHERE b = 0 ORDER BY a DESC;
-a
-4
-2
-0
-DROP TABLE t1;
-CREATE TABLE t1 (
-a VARCHAR(600),
-b VARCHAR(600),
-PRIMARY KEY (a),
-INDEX (b))
-ENGINE InnoDB
-PARTITION BY KEY(a)
-PARTITIONS 3;
-INSERT INTO t1 VALUES (concat(repeat('MySQL',100),'1'),repeat('0',257));
-INSERT INTO t1 VALUES (concat(repeat('MySQL',100),'3'),repeat('0',257));
-INSERT INTO t1 VALUES (concat(repeat('MySQL',100),'2'),repeat('0',257));
-SELECT right(a,1) FROM t1 WHERE b = repeat('0',257) ORDER BY a ASC;
-right(a,1)
-1
-2
-3
-SELECT right(a,1) FROM t1 WHERE b = repeat('0',257) ORDER BY a DESC;
-right(a,1)
-3
-2
-1
-ALTER TABLE t1 DROP INDEX b;
-SELECT right(a,1) FROM t1 WHERE b = repeat('0',257) ORDER BY a ASC;
-right(a,1)
-1
-2
-3
-SELECT right(a,1) FROM t1 WHERE b = repeat('0',257) ORDER BY a DESC;
-right(a,1)
-3
-2
-1
-DROP TABLE t1;
-# Bug#32948
-CREATE TABLE t1 (c1 INT, PRIMARY KEY (c1)) ENGINE=INNODB;
-CREATE TABLE t2 (c1 INT, PRIMARY KEY (c1),
-FOREIGN KEY (c1) REFERENCES t1 (c1)
-ON DELETE CASCADE)
-ENGINE=INNODB;
-ALTER TABLE t1 PARTITION BY HASH(c1) PARTITIONS 5;
-ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails
-ALTER TABLE t1 ENGINE=MyISAM;
-ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails
-DROP TABLE t2;
-DROP TABLE t1;
-create table t1 (a int) engine=innodb partition by hash(a) ;
-show table status like 't1';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 InnoDB 10 Dynamic 2 8192 16384 0 0 # NULL # NULL NULL latin1_swedish_ci NULL partitioned 0 N
-drop table t1;
-create table t1 (a int)
-engine = innodb
-partition by key (a);
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 InnoDB 10 Dynamic 2 8192 16384 0 0 # NULL # NULL NULL latin1_swedish_ci NULL partitioned 0 N
-insert into t1 values (0), (1), (2), (3);
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 InnoDB 10 Dynamic 4 4096 16384 0 0 # NULL # NULL NULL latin1_swedish_ci NULL partitioned 0 N
-drop table t1;
-create table t1 (a int auto_increment primary key)
-engine = innodb
-partition by key (a);
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 InnoDB 10 Dynamic 2 8192 16384 0 0 # 1 # NULL NULL latin1_swedish_ci NULL partitioned 0 N
-insert into t1 values (NULL), (NULL), (NULL), (NULL);
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 InnoDB 10 Dynamic 4 4096 16384 0 0 # 5 # NULL NULL latin1_swedish_ci NULL partitioned 0 N
-insert into t1 values (NULL), (NULL), (NULL), (NULL);
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 InnoDB 10 Dynamic 8 2048 16384 0 0 # 9 # NULL NULL latin1_swedish_ci NULL partitioned 0 N
-drop table t1;
-create table t1 (a int)
-partition by key (a)
-(partition p1 engine = innodb);
-alter table t1 rebuild partition p1;
-alter table t1 rebuild partition p1;
-alter table t1 rebuild partition p1;
-alter table t1 rebuild partition p1;
-alter table t1 rebuild partition p1;
-alter table t1 rebuild partition p1;
-alter table t1 rebuild partition p1;
-drop table t1;
-create table t1 (a date)
-engine = innodb
-partition by range (year(a))
-(partition p0 values less than (2006),
-partition p1 values less than (2007));
-explain partitions select * from t1
-where a between '2006-01-01' and '2007-06-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 ALL NULL NULL NULL NULL 2 Using where
-drop table t1;
-SET SQL_MODE="";
-create table t1 (a int)
-engine = x
-partition by key (a);
-Warnings:
-Warning 1286 Unknown storage engine 'x'
-Warning 1266 Using storage engine InnoDB for table 't1'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-drop table t1;
-create table t1 (a int)
-engine = innodb
-partition by list (a)
-(partition p0 values in (0));
-alter table t1 engine = x;
-Warnings:
-Warning 1286 Unknown storage engine 'x'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p0` VALUES IN (0) ENGINE = InnoDB)
-drop table t1;
-SET SQL_MODE=default;
-create table t1
-(
-id int unsigned auto_increment,
-time datetime not null,
-first_name varchar(40),
-last_name varchar(50),
-primary key (id, time),
-index first_index (first_name),
-index last_index (last_name)
-) engine=Innodb partition by range (to_days(time)) (
-partition p1 values less than (to_days('2007-02-07')),
-partition p2 values less than (to_days('2007-02-08')),
-partition p3 values less than MAXVALUE
-);
-insert into t1 (time, first_name, last_name) values ('2007-02-07', 'Q', 'Robert'),
-('2007-02-07', 'Mark', 'Nate'), ('2007-02-07', 'Nate', 'Oscar'),
-('2007-02-07', 'Zack', 'Alice'), ('2007-02-07', 'Jack', 'Kathy'),
-('2007-02-06', 'Alice', 'Alice'), ('2007-02-06', 'Brian', 'Charles'),
-('2007-02-06', 'Charles', 'David'), ('2007-02-06', 'David', 'Eric'),
-('2007-02-07', 'Hector', 'Isaac'), ('2007-02-07', 'Oscar', 'Patricia'),
-('2007-02-07', 'Patricia', 'Q'), ('2007-02-07', 'X', 'Yuri'),
-('2007-02-07', 'Robert', 'Shawn'), ('2007-02-07', 'Kathy', 'Lois'),
-('2007-02-07', 'Eric', 'Francis'), ('2007-02-06', 'Shawn', 'Theron'),
-('2007-02-06', 'U', 'Vincent'), ('2007-02-06', 'Francis', 'George'),
-('2007-02-06', 'George', 'Hector'), ('2007-02-06', 'Vincent', 'Walter'),
-('2007-02-06', 'Walter', 'X'), ('2007-02-07', 'Lois', 'Mark'),
-('2007-02-07', 'Yuri', 'Zack'), ('2007-02-07', 'Isaac', 'Jack'),
-('2007-02-07', 'Sharon', 'Mark'), ('2007-02-07', 'Michael', 'Michelle'),
-('2007-02-07', 'Derick', 'Nathan'), ('2007-02-07', 'Peter', 'Xavier'),
-('2007-02-07', 'Fred', 'Harold'), ('2007-02-07', 'Katherine', 'Lisa'),
-('2007-02-07', 'Tom', 'Rina'), ('2007-02-07', 'Jerry', 'Victor'),
-('2007-02-07', 'Alexander', 'Terry'), ('2007-02-07', 'Justin', 'John'),
-('2007-02-07', 'Greg', 'Ernest'), ('2007-02-07', 'Robert', 'Q'),
-('2007-02-07', 'Nate', 'Mark'), ('2007-02-07', 'Oscar', 'Nate'),
-('2007-02-07', 'Alice', 'Zack'), ('2007-02-07', 'Kathy', 'Jack'),
-('2007-02-06', 'Alice', 'Alice'), ('2007-02-06', 'Charles', 'Brian'),
-('2007-02-06', 'David', 'Charles'), ('2007-02-06', 'Eric', 'David'),
-('2007-02-07', 'Isaac', 'Hector'), ('2007-02-07', 'Patricia', 'Oscar'),
-('2007-02-07', 'Q', 'Patricia'), ('2007-02-07', 'Yuri', 'X'),
-('2007-02-07', 'Shawn', 'Robert'), ('2007-02-07', 'Lois', 'Kathy'),
-('2007-02-07', 'Francis', 'Eric'), ('2007-02-06', 'Theron', 'Shawn'),
-('2007-02-06', 'Vincent', 'U'), ('2007-02-06', 'George', 'Francis'),
-('2007-02-06', 'Hector', 'George'), ('2007-02-06', 'Walter', 'Vincent'),
-('2007-02-06', 'X', 'Walter'), ('2007-02-07', 'Mark', 'Lois'),
-('2007-02-07', 'Zack', 'Yuri'), ('2007-02-07', 'Jack', 'Isaac'),
-('2007-02-07', 'Mark', 'Sharon'), ('2007-02-07', 'Michelle', 'Michael'),
-('2007-02-07', 'Nathan', 'Derick'), ('2007-02-07', 'Xavier', 'Peter'),
-('2007-02-07', 'Harold', 'Fred'), ('2007-02-07', 'Lisa', 'Katherine'),
-('2007-02-07', 'Rina', 'Tom'), ('2007-02-07', 'Victor', 'Jerry'),
-('2007-02-07', 'Terry', 'Alexander'), ('2007-02-07', 'John', 'Justin'),
-('2007-02-07', 'Ernest', 'Greg');
-SELECT * FROM t1 WHERE first_name='Andy' OR last_name='Jake';
-id time first_name last_name
-drop table t1;
-CREATE TABLE t1 (a DOUBLE NOT NULL, KEY(a)) ENGINE=InnoDB
-PARTITION BY KEY(a) PARTITIONS 10;
-INSERT INTO t1 VALUES(1),(2);
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-2
-DROP TABLE t1;
-create table t1 (int_column int, char_column char(5))
-PARTITION BY RANGE (int_column) subpartition by key (char_column) subpartitions 2
-(PARTITION p1 VALUES LESS THAN (5) ENGINE = InnoDB);
-alter table t1
-ENGINE = MyISAM
-PARTITION BY RANGE (int_column)
-subpartition by key (char_column) subpartitions 2
-(PARTITION p1 VALUES LESS THAN (5));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `int_column` int(11) DEFAULT NULL,
- `char_column` char(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`int_column`)
-SUBPARTITION BY KEY (`char_column`)
-SUBPARTITIONS 2
-(PARTITION `p1` VALUES LESS THAN (5) ENGINE = MyISAM)
-drop table t1;
-CREATE TABLE t1 (a INT) ENGINE=InnoDB
-PARTITION BY list(a) (PARTITION p1 VALUES IN (1));
-CREATE INDEX i1 ON t1 (a);
-DROP TABLE t1;
-#
-# Bug#54783: optimize table crashes with invalid timestamp default value and NO_ZERO_DATE
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT, b TIMESTAMP DEFAULT '0000-00-00 00:00:00')
-ENGINE=INNODB PARTITION BY LINEAR HASH (a) PARTITIONS 1;
-SET @old_mode = @@sql_mode;
-SET SESSION sql_mode = 'NO_ZERO_DATE';
-OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
-test.t1 optimize error Invalid default value for 'b'
-test.t1 optimize status Operation failed
-Warnings:
-Warning 1265 Data truncated for column 'b' at row 1
-Error 1067 Invalid default value for 'b'
-SET SESSION sql_mode = @old_mode;
-DROP TABLE t1;
-#
-# Bug#57985 "ONLINE/FAST ALTER PARTITION can fail and leave the
-# table unusable".
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a bigint not null, b int not null, PRIMARY KEY (a))
-ENGINE = InnoDB PARTITION BY KEY(a) PARTITIONS 2;
-INSERT INTO t1 values (0,1), (1,2);
-# The below ALTER should fail. It should leave the
-# table in its original, non-corrupted, usable state.
-ALTER TABLE t1 ADD UNIQUE KEY (b);
-ERROR HY000: A UNIQUE INDEX must include all columns in the table's partitioning function
-# The below statements should succeed, as ALTER should
-# have left table intact.
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(20) NOT NULL,
- `b` int(11) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-PARTITIONS 2
-SELECT * FROM t1;
-a b
-1 2
-0 1
-DROP TABLE t1;
-#
-# Bug #17299181 CREATE_TIME AND UPDATE_TIME ARE
-# WRONG FOR PARTITIONED TABLES
-#
-CREATE TABLE t1 (a int, PRIMARY KEY (a)) ENGINE=InnoDB
-PARTITION BY HASH (a) PARTITIONS 2;
-SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE
-CREATE_TIME IS NOT NULL AND TABLE_NAME='t1';
-COUNT(*)
-1
-DROP TABLE t1;
-#
-# BUG#12912171 - ASSERTION FAILED: QUICK->HEAD->READ_SET ==
-# SAVE_READ_SET
-#
-CREATE TABLE t1 (
-a INT,
-b INT,
-c INT,
-PRIMARY KEY (c,a), KEY (a),KEY (a)
-) ENGINE=INNODB PARTITION BY KEY () PARTITIONS 2;
-Warnings:
-Note 1831 Duplicate index `a_2`. This is deprecated and will be disallowed in a future release
-INSERT INTO t1 VALUES (1,5,1),(2,4,1),(3,3,1),(4,2,1),(5,1,1);
-UPDATE t1 SET b = 0, c=1 WHERE a <=>0;
-SELECT * FROM t1;
-a b c
-1 5 1
-2 4 1
-3 3 1
-4 2 1
-5 1 1
-DROP TABLE t1;
-#
-# MDEV-5102 : MySQL Bug 69851
-#
-CREATE TABLE t1 (
-`col1` bigint(20) unsigned NOT NULL ,
-`col2` bigint(20) unsigned NOT NULL ,
-`col3` datetime NOT NULL ,
-PRIMARY KEY (`col3`),
-KEY (`col1`),
-KEY (`col2`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-PARTITION BY RANGE (TO_DAYS(col3))
-(
-PARTITION p_20130310 VALUES LESS THAN (735303) ENGINE = InnoDB,
-PARTITION p_20130311 VALUES LESS THAN (735304) ENGINE = InnoDB,
-PARTITION p_20130312 VALUES LESS THAN (735305) ENGINE = InnoDB
-);
-INSERT INTO `t1` VALUES (2,96,'2013-03-08 16:28:05');
-INSERT INTO `t1` VALUES (1,2,'2013-03-08 16:47:39');
-INSERT INTO `t1` VALUES (1,2,'2013-03-08 16:50:27');
-INSERT INTO `t1` VALUES (1,2,'2013-03-11 16:33:04');
-INSERT INTO `t1` VALUES (1,2,'2013-03-11 16:33:24');
-INSERT INTO `t1` VALUES (2,2,'2013-03-12 10:11:48');
-SELECT * FROM t1 WHERE col1 = 1 AND col2 = 2
-AND col3 BETWEEN '2013-03-08 00:00:00' AND '2013-03-12 12:00:00'
-GROUP BY 1, 2, 3;
-col1 col2 col3
-1 2 2013-03-08 16:47:39
-1 2 2013-03-08 16:50:27
-1 2 2013-03-11 16:33:04
-1 2 2013-03-11 16:33:24
-EXPLAIN SELECT * FROM t1 WHERE col1 = 1 AND col2 = 2
-AND col3 BETWEEN '2013-03-08 00:00:00' AND '2013-03-12 12:00:00'
-GROUP BY 1, 2, 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,col1,col2 PRIMARY 5 NULL # Using where; Using filesort
-SELECT * FROM t1 USE INDEX () WHERE col1 = 1 AND col2 = 2
-AND col3 BETWEEN '2013-03-08 00:00:00' AND '2013-03-12 12:00:00'
-GROUP BY 1, 2, 3;
-col1 col2 col3
-1 2 2013-03-08 16:47:39
-1 2 2013-03-08 16:50:27
-1 2 2013-03-11 16:33:04
-1 2 2013-03-11 16:33:24
-DROP TABLE t1;
-#
-# MDEV-5177: ha_partition and innodb index intersection produce fewer rows (MySQL Bug#70703)
-#
-create table t1 (
-a int not null,
-b int not null,
-pk int not null,
-primary key (pk),
-key(a),
-key(b)
-) engine=innodb partition by hash(pk) partitions 10;
-insert into t1 values (1,2,4);
-insert into t1 values (1,0,17);
-insert into t1 values (1,2,25);
-insert into t1 values (10,20,122);
-insert into t1 values (10,20,123);
-create table t2 (a int);
-insert into t2 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t1 select 1,2, 200 + A.a + 10*B.a + 100*C.a from t2 A, t2 B, t2 C;
-insert into t1 select 10+A.a + 10*B.a + 100*C.a + 1000*D.a,
-10+A.a + 10*B.a + 100*C.a + 1000*D.a,
-2000 + A.a + 10*B.a + 100*C.a + 1000*D.a
-from t2 A, t2 B, t2 C ,t2 D;
-explain select * from t1 where a=1 and b=2 and pk between 1 and 999999 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge PRIMARY,a,b b,a 4,4 NULL # Using intersect(b,a); Using where; Using index
-create temporary table t3 as
-select * from t1 where a=1 and b=2 and pk between 1 and 999 ;
-select count(*) from t3;
-count(*)
-802
-drop table t3;
-create temporary table t3 as
-select * from t1 ignore index(a,b) where a=1 and b=2 and pk between 1 and 999 ;
-select count(*) from t3;
-count(*)
-802
-drop table t3;
-drop table t1,t2;
-#
-# MySQL Bug#71095: Wrong results with PARTITION BY LIST COLUMNS()
-#
-create table t1(c1 int, c2 int, c3 int, c4 int,
-primary key(c1,c2)) engine=InnoDB
-partition by list columns(c2)
-(partition p1 values in (1,2) engine=InnoDB,
-partition p2 values in (3,4) engine=InnoDB);
-insert into t1 values (1,1,1,1),(2,3,1,1);
-select * from t1 where c1=2 and c2=3;
-c1 c2 c3 c4
-2 3 1 1
-drop table t1;
-#
-# MySQL Bug#72803: Wrong "Impossible where" with LIST partitioning
-# also MDEV-6240: Wrong "Impossible where" with LIST partitioning
-#
-CREATE TABLE t1 ( d DATE) ENGINE = InnoDB
-PARTITION BY LIST COLUMNS (d)
-(
-PARTITION p0 VALUES IN ('1990-01-01','1991-01-01'),
-PARTITION p1 VALUES IN ('1981-01-01')
-);
-INSERT INTO t1 (d) VALUES ('1991-01-01');
-SELECT * FROM t1 WHERE d = '1991-01-01';
-d
-1991-01-01
-DROP TABLE t1;
-set global default_storage_engine=default;
-#
-# MDEV-9455: [ERROR] mysqld got signal 11
-#
-CREATE TABLE `t1` (
-`DIARY_TOTAL_DAY_SEQ` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
-`IMORY_ID` bigint(20) NOT NULL,
-`NAME` varchar(75) DEFAULT NULL,
-`DATETIME` varchar(10) NOT NULL DEFAULT '',
-`DAILY_CALL_CNT` int(11) DEFAULT NULL,
-`DAILY_SMS_CNT` int(11) DEFAULT NULL,
-`NUMBER` varchar(64) DEFAULT NULL,
-`DURATION` varchar(16) DEFAULT NULL,
-PRIMARY KEY (`DIARY_TOTAL_DAY_SEQ`,`DATETIME`),
-KEY `IDX_t1_01` (`IMORY_ID`,`DATETIME`)
-) AUTO_INCREMENT=328702514 DEFAULT CHARSET=utf8mb4
-PARTITION BY RANGE COLUMNS(`DATETIME`)
-(PARTITION p0 VALUES LESS THAN ('2015-10-01') ENGINE = InnoDB,
-PARTITION p1 VALUES LESS THAN ('2015-11-01') ENGINE = InnoDB,
-PARTITION p2 VALUES LESS THAN ('2015-12-01') ENGINE = InnoDB,
-PARTITION p3 VALUES LESS THAN ('2016-01-01') ENGINE = InnoDB,
-PARTITION p4 VALUES LESS THAN ('2016-02-01') ENGINE = InnoDB,
-PARTITION p5 VALUES LESS THAN ('2016-03-01') ENGINE = InnoDB,
-PARTITION p6 VALUES LESS THAN ('2016-04-01') ENGINE = InnoDB,
-PARTITION p7 VALUES LESS THAN ('2016-05-01') ENGINE = InnoDB,
-PARTITION p8 VALUES LESS THAN ('2016-06-01') ENGINE = InnoDB,
-PARTITION p9 VALUES LESS THAN ('2016-07-01') ENGINE = InnoDB,
-PARTITION p10 VALUES LESS THAN ('2016-08-01') ENGINE = InnoDB)
-;
-CREATE TABLE `t2` (
-`DIARY_SEQ` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
-`IMORY_ID` bigint(20) NOT NULL,
-`CALL_TYPE` varchar(1) DEFAULT NULL,
-`DATA_TYPE` varchar(1) DEFAULT NULL,
-`FEATURES` varchar(1) DEFAULT NULL,
-`NAME` varchar(75) DEFAULT NULL,
-`NUMBER` varchar(64) DEFAULT NULL,
-`DATETIME` datetime NOT NULL,
-`REG_DATE` datetime NOT NULL,
-`TITLE` varchar(50) DEFAULT NULL,
-`BODY` varchar(4200) DEFAULT NULL,
-`MIME_TYPE` varchar(32) DEFAULT NULL,
-`DURATION` varchar(16) DEFAULT NULL,
-`DEVICE_ID` varchar(64) DEFAULT NULL,
-`DEVICE_NAME` varchar(32) DEFAULT NULL,
-PRIMARY KEY (`DIARY_SEQ`,`DATETIME`,`REG_DATE`),
-KEY `IDX_TB_DIARY_01` (`IMORY_ID`,`DATETIME`,`CALL_TYPE`,`NUMBER`),
-KEY `IDX_TB_DIARY_02` (`REG_DATE`)
-) AUTO_INCREMENT=688799006 DEFAULT CHARSET=utf8mb4
-PARTITION BY RANGE COLUMNS(REG_DATE)
-(PARTITION p0 VALUES LESS THAN ('2015-10-01') ENGINE = InnoDB,
-PARTITION p1 VALUES LESS THAN ('2015-11-01') ENGINE = InnoDB,
-PARTITION p2 VALUES LESS THAN ('2015-12-01') ENGINE = InnoDB,
-PARTITION p3 VALUES LESS THAN ('2016-01-01') ENGINE = InnoDB,
-PARTITION p4 VALUES LESS THAN ('2016-02-01') ENGINE = InnoDB,
-PARTITION p5 VALUES LESS THAN ('2016-03-01') ENGINE = InnoDB,
-PARTITION p6 VALUES LESS THAN ('2016-04-01') ENGINE = InnoDB,
-PARTITION p7 VALUES LESS THAN ('2016-05-01') ENGINE = InnoDB,
-PARTITION p8 VALUES LESS THAN ('2016-06-01') ENGINE = InnoDB,
-PARTITION p9 VALUES LESS THAN ('2016-07-01') ENGINE = InnoDB,
-PARTITION p10 VALUES LESS THAN ('2016-08-01') ENGINE = InnoDB)
-;
-SELECT
-A.IMORY_ID,
-A.NUMBER,
-A.NAME,
-DATE_FORMAT(A.DATETIME, '%Y-%m-%d') AS TARGET_DATE,
-SUM( CASE WHEN A.DATA_TYPE='1' THEN 1 ELSE 0 END) AS CALL_CNT,
-SUM( CASE WHEN A.DATA_TYPE IN ('2', '3') THEN 1 ELSE 0 END) AS SMS_CNT,
-SUM(CAST(A.DURATION AS INT)) AS DURATION,
-( SELECT COUNT(*)
-FROM t1
-WHERE IMORY_ID=A.IMORY_ID
-AND NUMBER=A.NUMBER
-AND NAME=A.NAME
-AND DATETIME = DATE_FORMAT(A.DATETIME, '%Y-%m-%d')
-) STATS_COUNT
-FROM t2 A
-WHERE A.IMORY_ID = 55094102
-AND A.DATETIME LIKE (
-SELECT CONCAT (DATE_FORMAT(DATETIME, '%Y-%m-%d') ,'%')
-FROM t2
-WHERE IMORY_ID=55094102
-AND DIARY_SEQ IN ( 608351221, 608351225, 608351229 )
-group by DATE_FORMAT(DATETIME, '%Y-%m-%d')
-)
-GROUP BY A.IMORY_ID, A.NUMBER, A.NAME, DATE_FORMAT(A.DATETIME, '%Y-%m-%d')
-;
-IMORY_ID NUMBER NAME TARGET_DATE CALL_CNT SMS_CNT DURATION STATS_COUNT
-drop table t2, t1;
-set global default_storage_engine='innodb';
-#
-# MDEV-5963: InnoDB: Assertion failure in file row0sel.cc line 2503,
-# Failing assertion: 0 with "key ptr now exceeds key end by 762 bytes"
-# (independent testcase for Oracle Bug#13947868)
-#
-CREATE TABLE t1 (f1 VARCHAR(512) CHARACTER SET utf8) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('j');
-CREATE TABLE t2 (
-f2 VARCHAR(5) CHARACTER SET latin1,
-f3 VARCHAR(5) CHARACTER SET utf8,
-f4 INT,
-f5 VARCHAR(512) CHARACTER SET utf8,
-f6 VARCHAR(256) CHARACTER SET utf8,
-key (f2),
-key (f3),
-key (f5)
-) ENGINE=InnoDB PARTITION BY LIST COLUMNS (f4)
-SUBPARTITION BY KEY(f6) SUBPARTITIONS 4 (
-PARTITION p0 VALUES IN (1,3,9,null),
-PARTITION p1 VALUES IN (2,4,0)
-);
-INSERT INTO t2 VALUES
-('k','s',3,'b','j'),('a','b',NULL,'v','j'),('c','m',9,'t',NULL),
-('b','l',9,'b',NULL),('i','y',3,'o','w'),('c','m',NULL,'a','m'),
-('f','o',9,'m','w'),('f','q',NULL,'o','a');
-CREATE TABLE t3 LIKE t2;
-SELECT * FROM t1 INNER JOIN t2 ON ( f5 = f1 );
-f1 f2 f3 f4 f5 f6
-INSERT INTO t3 SELECT * FROM t2 WHERE f3 = 'm' AND f2 ='c';
-DROP TABLE t1,t2,t3;
-set global default_storage_engine=default;
-#
-# Bug#13737949: CRASH IN HA_PARTITION::INDEX_INIT
-# Bug#18694052: SERVER CRASH IN HA_PARTITION::INIT_RECORD_PRIORITY_QUEUE
-#
-CREATE TABLE t1
-(a INT,
-b INT,
-PRIMARY KEY (a))
-ENGINE = InnoDB
-PARTITION BY HASH (a) PARTITIONS 3;
-START TRANSACTION WITH CONSISTENT SNAPSHOT;
-connect con1, localhost, root,,;
-ALTER TABLE t1 ADD INDEX idx1 (b);
-connection default;
-SELECT b FROM t1 WHERE b = 0;
-ERROR HY000: Table definition has changed, please retry transaction
-SELECT b FROM t1 WHERE b = 0;
-ERROR HY000: Table definition has changed, please retry transaction
-disconnect con1;
-DROP TABLE t1;
-# Same test without partitioning
-CREATE TABLE t1
-(a INT,
-b INT,
-PRIMARY KEY (a))
-ENGINE = InnoDB;
-START TRANSACTION WITH CONSISTENT SNAPSHOT;
-connect con1, localhost, root,,;
-ALTER TABLE t1 ADD INDEX idx1 (b);
-connection default;
-SELECT b FROM t1 WHERE b = 0;
-ERROR HY000: Table definition has changed, please retry transaction
-SELECT b FROM t1 WHERE b = 0;
-ERROR HY000: Table definition has changed, please retry transaction
-disconnect con1;
-DROP TABLE t1;
-#
-# Bug#26390658 RENAMING A PARTITIONED TABLE DOES NOT UPDATE
-# MYSQL.INNODB_TABLE_STATS
-#
-CREATE DATABASE test_jfg;
-CREATE TABLE test_jfg.test_jfg1 (id int(10) unsigned NOT NULL,PRIMARY
-KEY (id)) ENGINE=InnoDB DEFAULT CHARSET=latin1 STATS_PERSISTENT=1;
-CREATE TABLE test_jfg.test_jfg2 (id int(10) unsigned NOT NULL,PRIMARY
-KEY (id)) ENGINE=InnoDB DEFAULT CHARSET=latin1 STATS_PERSISTENT=1
-PARTITION BY RANGE ( id ) (PARTITION p1000 VALUES LESS THAN (1000)
-ENGINE = InnoDB,PARTITION pmax VALUES LESS THAN MAXVALUE ENGINE =
-InnoDB);
-SELECT database_name, table_name FROM mysql.innodb_table_stats WHERE
-database_name = 'test_jfg';
-database_name table_name
-test_jfg test_jfg1
-test_jfg test_jfg2#P#p1000
-test_jfg test_jfg2#P#pmax
-RENAME TABLE test_jfg.test_jfg1 TO test_jfg.test_jfg11;
-RENAME TABLE test_jfg.test_jfg2 TO test_jfg.test_jfg12;
-SELECT database_name, table_name FROM mysql.innodb_table_stats WHERE
-database_name = 'test_jfg';
-database_name table_name
-test_jfg test_jfg11
-test_jfg test_jfg12#P#p1000
-test_jfg test_jfg12#P#pmax
-DROP DATABASE test_jfg;
diff --git a/mysql-test/r/partition_innodb_plugin.result b/mysql-test/r/partition_innodb_plugin.result
deleted file mode 100644
index 6842ff04caa..00000000000
--- a/mysql-test/r/partition_innodb_plugin.result
+++ /dev/null
@@ -1,156 +0,0 @@
-call mtr.add_suppression("InnoDB: Table .* does not exist in the InnoDB internal data dictionary .*");
-call mtr.add_suppression("Deadlock found when trying to get lock; try restarting transaction");
-#
-# Bug#11766879/Bug#60106: DIFF BETWEEN # OF INDEXES IN MYSQL VS INNODB,
-# PARTITONING, ON INDEX CREATE
-# Bug#12696518: MEMORY LEAKS IN HA_PARTITION (VALGRIND TESTS ON TRUNK)
-#
-CREATE TABLE t1 (
-id bigint NOT NULL AUTO_INCREMENT,
-time date,
-id2 bigint not null,
-PRIMARY KEY (id,time)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8
-/*!50100 PARTITION BY RANGE(TO_DAYS(time))
-(PARTITION p10 VALUES LESS THAN (734708) ENGINE = InnoDB,
-PARTITION p20 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */;
-INSERT INTO t1 (time,id2) VALUES ('2011-07-24',1);
-INSERT INTO t1 (time,id2) VALUES ('2011-07-25',1);
-INSERT INTO t1 (time,id2) VALUES ('2011-07-25',1);
-CREATE UNIQUE INDEX uk_time_id2 on t1(time,id2);
-ERROR 23000: Duplicate entry '2011-07-25-1' for key 'uk_time_id2'
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-3
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `time` date NOT NULL,
- `id2` bigint(20) NOT NULL,
- PRIMARY KEY (`id`,`time`)
-) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8
- PARTITION BY RANGE (to_days(`time`))
-(PARTITION `p10` VALUES LESS THAN (734708) ENGINE = InnoDB,
- PARTITION `p20` VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
-DROP TABLE t1;
-call mtr.add_suppression("InnoDB: Error: table `test`.`t1` .* InnoDB internal");
-#
-# Bug#55091: Server crashes on ADD PARTITION after a failed attempt
-#
-SET @old_innodb_file_per_table = @@global.innodb_file_per_table;
-SET @old_innodb_strict_mode = @@global.innodb_strict_mode;
-SET @@global.innodb_file_per_table = ON,
-@@global.innodb_strict_mode = ON;
-connect con1,localhost,root,,;
-CREATE TABLE t1 (id INT NOT NULL
-PRIMARY KEY,
-user_num CHAR(10)
-) ENGINE = InnoDB
-KEY_BLOCK_SIZE=4
-PARTITION BY HASH(id) PARTITIONS 1;
-t1#P#p0.ibd
-t1.frm
-t1.par
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL,
- `user_num` char(10) DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=4
- PARTITION BY HASH (`id`)
-PARTITIONS 1
-SET GLOBAL innodb_file_per_table = OFF;
-disconnect con1;
-connect con2,localhost,root,,;
-LOCK TABLE t1 WRITE;
-# ALTER fails because COMPRESSED/KEY_BLOCK_SIZE
-# are incompatible with innodb_file_per_table = OFF;
-ALTER TABLE t1 ADD PARTITION PARTITIONS 1;
-ERROR HY000: Got error 140 "Wrong create options" from storage engine InnoDB
-t1#P#p0.ibd
-t1.frm
-t1.par
-# This SET is not needed to reproduce the bug,
-# it is here just to make the test case more realistic
-SET innodb_strict_mode = OFF;
-ALTER TABLE t1 ADD PARTITION PARTITIONS 2;
-Warnings:
-Warning 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
-Warning 1478 InnoDB: ignoring KEY_BLOCK_SIZE=4.
-Warning 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
-Warning 1478 InnoDB: ignoring KEY_BLOCK_SIZE=4.
-Warning 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
-Warning 1478 InnoDB: ignoring KEY_BLOCK_SIZE=4.
-t1.frm
-t1.par
-ALTER TABLE t1 REBUILD PARTITION p0;
-Warnings:
-Warning 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
-Warning 1478 InnoDB: ignoring KEY_BLOCK_SIZE=4.
-UNLOCK TABLES;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) NOT NULL,
- `user_num` char(10) DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=4
- PARTITION BY HASH (`id`)
-PARTITIONS 3
-DROP TABLE t1;
-disconnect con2;
-connection default;
-SET @@global.innodb_strict_mode = @old_innodb_strict_mode;
-SET @@global.innodb_file_per_table = @old_innodb_file_per_table;
-SET NAMES utf8;
-CREATE TABLE `t``\""e` (a INT, PRIMARY KEY (a))
-ENGINE=InnoDB
-PARTITION BY RANGE (a)
-SUBPARTITION BY HASH (a)
-(PARTITION `p0``\""e` VALUES LESS THAN (100)
-(SUBPARTITION `sp0``\""e`,
-SUBPARTITION `sp1``\""e`),
-PARTITION `p1``\""e` VALUES LESS THAN (MAXVALUE)
-(SUBPARTITION `sp2``\""e`,
-SUBPARTITION `sp3``\""e`));
-INSERT INTO `t``\""e` VALUES (0), (2), (6), (10), (14), (18), (22);
-START TRANSACTION;
-connect con1,localhost,root,,;
-SET NAMES utf8;
-START TRANSACTION;
-connection default;
-UPDATE `t``\""e` SET a = 16 WHERE a = 0;
-connection con1;
-UPDATE `t``\""e` SET a = 8 WHERE a = 22;
-UPDATE `t``\""e` SET a = 12 WHERE a = 0;
-connection default;
-SELECT lock_table, COUNT(*) FROM INFORMATION_SCHEMA.INNODB_LOCKS
-GROUP BY lock_table;
-lock_table COUNT(*)
-`test`.`t``\""e` /* Partition `p0``\""e`, Subpartition `sp0``\""e` */ 2
-set @old_sql_mode = @@sql_mode;
-set sql_mode = 'ANSI_QUOTES';
-SELECT lock_table, COUNT(*) FROM INFORMATION_SCHEMA.INNODB_LOCKS
-GROUP BY lock_table;
-lock_table COUNT(*)
-"test"."t`\""""e" /* Partition "p0`\""""e", Subpartition "sp0`\""""e" */ 2
-set @@sql_mode = @old_sql_mode;
-UPDATE `t``\""e` SET a = 4 WHERE a = 22;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-# First table reported in 'SHOW ENGINE InnoDB STATUS'
-SHOW ENGINE InnoDB STATUS;
-Type Name Status
-InnoDB index PRIMARY of table `test`.`t``\""e` /* Partition `p0``\""e`, Subpartition `sp0``\""e` */
-set @old_sql_mode = @@sql_mode;
-set sql_mode = 'ANSI_QUOTES';
-SHOW ENGINE InnoDB STATUS;
-Type Name Status
-InnoDB index PRIMARY of table `test`.`t``\""e` /* Partition `p0``\""e`, Subpartition `sp0``\""e` */
-set @@sql_mode = @old_sql_mode;
-connection con1;
-ROLLBACK;
-disconnect con1;
-connection default;
-DROP TABLE `t``\""e`;
diff --git a/mysql-test/r/partition_innodb_semi_consistent.result b/mysql-test/r/partition_innodb_semi_consistent.result
deleted file mode 100644
index 208bd0214f7..00000000000
--- a/mysql-test/r/partition_innodb_semi_consistent.result
+++ /dev/null
@@ -1,161 +0,0 @@
-drop table if exists t1;
-connect a,localhost,root,,;
-connect b,localhost,root,,;
-connection a;
-set binlog_format=mixed;
-set session transaction isolation level repeatable read;
-create table t1(a int not null)
-engine=innodb
-DEFAULT CHARSET=latin1
-PARTITION BY RANGE(a)
-(PARTITION p0 VALUES LESS THAN (20),
-PARTITION p1 VALUES LESS THAN MAXVALUE);
-insert into t1 values (1),(2),(3),(4),(5),(6),(7);
-set autocommit=0;
-select * from t1 where a=3 lock in share mode;
-a
-3
-connection b;
-set binlog_format=mixed;
-set session transaction isolation level repeatable read;
-set autocommit=0;
-update t1 set a=10 where a=5;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-commit;
-connection a;
-commit;
-connection b;
-set session transaction isolation level read committed;
-update t1 set a=10 where a=5;
-connection a;
-select * from t1 where a=2 for update;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-select * from t1 where a=2 limit 1 for update;
-a
-2
-connection b;
-update t1 set a=11 where a=6;
-update t1 set a=12 where a=2;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-update t1 set a=13 where a=1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection a;
-commit;
-connection b;
-update t1 set a=14 where a=1;
-commit;
-connection a;
-select * from t1;
-a
-10
-11
-14
-2
-3
-4
-7
-drop table t1;
-connection default;
-disconnect a;
-disconnect b;
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-SET SESSION AUTOCOMMIT = 0;
-SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
-set binlog_format=mixed;
-connection con1;
-CREATE TABLE t1 (a INT PRIMARY KEY, b VARCHAR(256))
-ENGINE = InnoDB
-PARTITION BY RANGE (a)
-(PARTITION p0 VALUES LESS THAN (300),
-PARTITION p1 VALUES LESS THAN MAXVALUE);
-INSERT INTO t1 VALUES (1,2);
-# 1. test for locking:
-BEGIN;
-UPDATE t1 SET b = 12 WHERE a = 1;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-SELECT * FROM t1;
-a b
-1 12
-connection con2;
-UPDATE t1 SET b = 21 WHERE a = 1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-ROLLBACK;
-connection con1;
-SELECT * FROM t1;
-a b
-1 12
-ROLLBACK;
-# 2. test for serialized update:
-CREATE TABLE t2 (a INT);
-TRUNCATE t1;
-INSERT INTO t1 VALUES (1,'init');
-CREATE PROCEDURE p1()
-BEGIN
-# retry the UPDATE in case it times out the lock before con1 has time
-# to COMMIT.
-DECLARE do_retry INT DEFAULT 0;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET do_retry = 1;
-retry_loop:LOOP
-UPDATE t1 SET b = CONCAT(b, '+con2') WHERE a = 1;
-IF do_retry = 0 THEN
-LEAVE retry_loop;
-END IF;
-SET do_retry = 0;
-END LOOP;
-INSERT INTO t2 VALUES ();
-END|
-BEGIN;
-UPDATE t1 SET b = CONCAT(b, '+con1') WHERE a = 1;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-SELECT * FROM t1;
-a b
-1 init+con1
-connection con2;
-CALL p1;;
-connection con1;
-SELECT * FROM t1;
-a b
-1 init+con1
-COMMIT;
-SELECT * FROM t1;
-a b
-1 init+con1
-connection con2;
-SELECT * FROM t1;
-a b
-1 init+con1+con2
-COMMIT;
-connection con1;
-# 3. test for updated key column:
-TRUNCATE t1;
-DELETE FROM t2;
-INSERT INTO t1 VALUES (1,'init');
-BEGIN;
-UPDATE t1 SET a = 2, b = CONCAT(b, '+con1') WHERE a = 1;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-SELECT * FROM t1;
-a b
-2 init+con1
-connection con2;
-CALL p1;;
-connection con1;
-SELECT * FROM t1;
-a b
-2 init+con1
-COMMIT;
-SELECT * FROM t1;
-a b
-2 init+con1
-connection con2;
-SELECT * FROM t1;
-a b
-2 init+con1
-connection default;
-disconnect con1;
-disconnect con2;
-DROP PROCEDURE p1;
-DROP TABLE t1, t2;
diff --git a/mysql-test/r/partition_innodb_stmt.result b/mysql-test/r/partition_innodb_stmt.result
deleted file mode 100644
index 543d4734216..00000000000
--- a/mysql-test/r/partition_innodb_stmt.result
+++ /dev/null
@@ -1,50 +0,0 @@
-SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;
-CREATE TABLE t1
-(
-id SMALLINT NOT NULL,
-PRIMARY KEY (id)
-) ENGINE=innodb
-PARTITION BY RANGE (id)
-(
-PARTITION p1 VALUES LESS THAN (2),
-PARTITION p2 VALUES LESS THAN (4),
-PARTITION p3 VALUES LESS THAN (10)
-);
-INSERT INTO t1 VALUES (1),(2),(3);
-# Test READ COMMITTED -> REPEATABLE READ
-FLUSH TABLES;
-SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
-BEGIN;
-SELECT * FROM t1;
-id
-1
-2
-3
-connect con1, localhost, root,,;
-connection con1;
-SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
-BEGIN;
-INSERT INTO t1 VALUES(7);
-COMMIT;
-connection default;
-COMMIT;
-FLUSH TABLES;
-# Test REPEATABLE READ -> READ COMMITTED
-SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
-BEGIN;
-SELECT * FROM t1;
-id
-1
-2
-3
-7
-connection con1;
-SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
-BEGIN;
-INSERT INTO t1 VALUES(9);
-ERROR HY000: Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.
-COMMIT;
-disconnect con1;
-connection default;
-COMMIT;
-DROP TABLE t1;
diff --git a/mysql-test/r/partition_key_cache.result b/mysql-test/r/partition_key_cache.result
deleted file mode 100644
index f1b174ca249..00000000000
--- a/mysql-test/r/partition_key_cache.result
+++ /dev/null
@@ -1,442 +0,0 @@
-DROP TABLE IF EXISTS t1, t2, v, x;
-# Actual test of key caches
-# Verifing that reads/writes use the key cache correctly
-SELECT @org_key_cache_buffer_size:= @@global.default.key_buffer_size;
-@org_key_cache_buffer_size:= @@global.default.key_buffer_size
-1048576
-# Minimize default key cache (almost disabled).
-SET @@global.default.key_buffer_size = 4096;
-CREATE TABLE t1 (
-a INT,
-b INT,
-c INT NOT NULL,
-PRIMARY KEY (a),
-KEY `inx_b` (b))
-PARTITION BY RANGE (a)
-SUBPARTITION BY HASH (a)
-(PARTITION p0 VALUES LESS THAN (1167602410)
-(SUBPARTITION sp0,
-SUBPARTITION sp1),
-PARTITION p1 VALUES LESS THAN MAXVALUE
-(SUBPARTITION sp2,
-SUBPARTITION sp3));
-CREATE TABLE t2 (
-a INT,
-b INT,
-c INT NOT NULL,
-PRIMARY KEY (a),
-KEY `inx_b` (b));
-FLUSH TABLES;
-FLUSH STATUS;
-SET @a:=1167602400;
-CREATE VIEW v AS SELECT 1 UNION SELECT 2 UNION SELECT 3 UNION SELECT 4;
-CREATE VIEW x AS SELECT 1 FROM v,v a,v b;
-FLUSH STATUS;
-INSERT t1 SELECT @a, @a * (1 - ((@a % 2) * 2)) , 1167612400 - (@a:=@a+1) FROM x, x y;
-reads vs requests
-reads == requests
-writes vs requests
-writes == requests
-# row distribution:
-SELECT PARTITION_NAME, SUBPARTITION_NAME, TABLE_ROWS FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_SCHEMA='test' and TABLE_NAME='t1';
-PARTITION_NAME SUBPARTITION_NAME TABLE_ROWS
-p0 sp0 5
-p0 sp1 5
-p1 sp2 2043
-p1 sp3 2043
-DROP VIEW x;
-DROP VIEW v;
-FLUSH TABLES;
-FLUSH STATUS;
-SELECT COUNT(b) FROM t1 WHERE b >= 0;
-COUNT(b)
-2048
-Zero key reads?
-Yes!
-INSERT t2 SELECT a,b,c FROM t1;
-reads vs requests
-reads == requests
-writes vs requests
-writes == requests
-FLUSH STATUS;
-SELECT COUNT(b) FROM t2 WHERE b >= 0;
-COUNT(b)
-2048
-Zero key reads?
-Yes!
-FLUSH TABLES;
-# Setting the default key cache to 1M
-SET GLOBAL key_buffer_size = 1024*1024;
-FLUSH STATUS;
-# All these have to read the indexes
-LOAD INDEX INTO CACHE t1 PARTITION (p1);
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-Zero key reads?
-No!
-SELECT COUNT(b) FROM t1 WHERE b >= 0;
-COUNT(b)
-2048
-Zero key reads?
-No!
-SELECT COUNT(b) FROM t2 WHERE b >= 0;
-COUNT(b)
-2048
-Zero key reads?
-No!
-# All these should be able to use the key cache
-SELECT COUNT(b) FROM t1 WHERE b >= 0;
-COUNT(b)
-2048
-Zero key reads?
-Yes!
-SELECT COUNT(b) FROM t2 WHERE b >= 0;
-COUNT(b)
-2048
-Zero key reads?
-Yes!
-FLUSH TABLES;
-LOAD INDEX INTO CACHE t1 PARTITION (p1,p0);
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-Zero key reads?
-No!
-# should not be zero
-SELECT COUNT(b) FROM t1 WHERE b >= 0;
-COUNT(b)
-2048
-Zero key reads?
-Yes!
-LOAD INDEX INTO CACHE t2;
-Table Op Msg_type Msg_text
-test.t2 preload_keys status OK
-Zero key reads?
-No!
-# should not be zero
-SELECT COUNT(b) FROM t2 WHERE b >= 0;
-COUNT(b)
-2048
-Zero key reads?
-Yes!
-FLUSH TABLES;
-LOAD INDEX INTO CACHE t1 PARTITION (p1,p0) IGNORE LEAVES;
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-Zero key reads?
-No!
-# should not be zero
-SELECT COUNT(b) FROM t1 WHERE b >= 0;
-COUNT(b)
-2048
-Zero key reads?
-No!
-LOAD INDEX INTO CACHE t2 IGNORE LEAVES;
-Table Op Msg_type Msg_text
-test.t2 preload_keys status OK
-Zero key reads?
-No!
-# should not be zero
-SELECT COUNT(b) FROM t2 WHERE b >= 0;
-COUNT(b)
-2048
-Zero key reads?
-No!
-TRUNCATE TABLE t2;
-INSERT t2 SELECT a,b,c FROM t1;
-reads vs requests
-reads != requests
-writes vs requests
-writes != requests
-DROP TABLE t1,t2;
-SET GLOBAL hot_cache.key_buffer_size = 1024*1024;
-SET GLOBAL warm_cache.key_buffer_size = 1024*1024;
-SET @@global.cold_cache.key_buffer_size = 1024*1024;
-SELECT @@global.default.key_buffer_size a, @@global.default.key_cache_block_size b, @@global.default.key_cache_age_threshold c, @@global.default.key_cache_division_limit d;
-a b c d
-1048576 1024 300 100
-SELECT @@global.hot_cache.key_buffer_size a, @@global.hot_cache.key_cache_block_size b, @@global.hot_cache.key_cache_age_threshold c, @@global.hot_cache.key_cache_division_limit d;
-a b c d
-1048576 1024 300 100
-SELECT @@global.warm_cache.key_buffer_size a, @@global.warm_cache.key_cache_block_size b, @@global.warm_cache.key_cache_age_threshold c, @@global.warm_cache.key_cache_division_limit d;
-a b c d
-1048576 1024 300 100
-SELECT @@global.cold_cache.key_buffer_size a, @@global.cold_cache.key_cache_block_size b, @@global.cold_cache.key_cache_age_threshold c, @@global.cold_cache.key_cache_division_limit d;
-a b c d
-1048576 1024 300 100
-CREATE TABLE t1 (
-a INT,
-b VARCHAR(257),
-c INT NOT NULL,
-PRIMARY KEY (a),
-KEY `inx_b` (b),
-KEY `inx_c`(c))
-PARTITION BY RANGE (a)
-SUBPARTITION BY HASH (a)
-(PARTITION p0 VALUES LESS THAN (10)
-(SUBPARTITION sp0,
-SUBPARTITION sp1),
-PARTITION p1 VALUES LESS THAN MAXVALUE
-(SUBPARTITION sp2,
-SUBPARTITION sp3));
-CREATE TABLE t2 (
-a INT,
-b VARCHAR(257),
-c INT NOT NULL,
-PRIMARY KEY (a),
-KEY `inx_b` (b),
-KEY `inx_c`(c));
-SET @a:=1167602400;
-CREATE VIEW v AS SELECT 1 UNION SELECT 2 UNION SELECT 3 UNION SELECT 4;
-CREATE VIEW x AS SELECT 1 FROM v,v a,v b;
-INSERT t1 SELECT @a, CONCAT('X_', @a, ' MySQL'), 1167612400 - (@a:=@a+1) FROM x, x a;
-DROP VIEW x;
-DROP VIEW v;
-INSERT t2 SELECT a, b, c FROM t1;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-4096
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-4096
-FLUSH TABLES;
-# Restrict partitioned commands to partitioned tables only
-CACHE INDEX t2 PARTITION (p0) KEY (`inx_b`) IN hot_cache;
-ERROR HY000: Partition management on a not partitioned table is not possible
-CACHE INDEX t2 PARTITION (p0,`p1`) INDEX (`PRIMARY`) IN hot_cache;
-ERROR HY000: Partition management on a not partitioned table is not possible
-CACHE INDEX t2 PARTITION (`p1`) INDEX (`PRIMARY`,`inx_b`) IN hot_cache;
-ERROR HY000: Partition management on a not partitioned table is not possible
-CACHE INDEX t2 PARTITION (ALL) KEY (`inx_b`,`PRIMARY`) IN hot_cache;
-ERROR HY000: Partition management on a not partitioned table is not possible
-# Basic key cache testing
-# The manual correctly says: "The syntax of CACHE INDEX enables you to
-# specify that only particular indexes from a table should be assigned
-# to the cache. The current implementation assigns all the table's
-# indexes to the cache, so there is no reason to specify anything
-# other than the table name."
-# So the most of the test only tests the syntax
-CACHE INDEX t2 INDEX (`inx_b`) IN hot_cache;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-CACHE INDEX t2 KEY (`PRIMARY`) IN warm_cache;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-CACHE INDEX t2 KEY (`PRIMARY`,`inx_b`) IN cold_cache;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-CACHE INDEX t2 INDEX (inx_b,`PRIMARY`) IN default;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-CACHE INDEX t1 PARTITION (p0) KEY (`inx_b`) IN cold_cache;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-CACHE INDEX t1 PARTITIONS (p0) KEY (`inx_b`) IN cold_cache;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PARTITIONS (p0) KEY (`inx_b`) IN cold_cache' at line 1
-# only one table at a time if specifying partitions
-CACHE INDEX t1,t2 PARTITION (p0) KEY (`inx_b`) IN cold_cache;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PARTITION (p0) KEY (`inx_b`) IN cold_cache' at line 1
-CACHE INDEX t1 PARTITION (`p0`,p1) INDEX (`PRIMARY`) IN warm_cache;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-CACHE INDEX t1 PARTITION (`p1`) INDEX (`PRIMARY`,inx_b) IN hot_cache;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-CACHE INDEX t1 PARTITION (ALL) KEY (`inx_b`,`PRIMARY`) IN default;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-CACHE INDEX t1 PARTITION (ALL) IN hot_cache;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-CACHE INDEX t1 INDEX (`inx_b`) IN default;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-CACHE INDEX t1 KEY (`PRIMARY`) IN hot_cache;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-CACHE INDEX t1 KEY (`PRIMARY`,`inx_b`) IN warm_cache;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-CACHE INDEX t1 INDEX (`inx_b`,`PRIMARY`) IN cold_cache;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-CACHE INDEX t1 IN hot_cache;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-# Test of non existent key cache:
-CACHE INDEX t1 IN non_existent_key_cache;
-ERROR HY000: Unknown key cache 'non_existent_key_cache'
-# Basic testing of LOAD INDEX
-LOAD INDEX INTO CACHE t2;
-Table Op Msg_type Msg_text
-test.t2 preload_keys status OK
-# PRIMARY and secondary keys have different block sizes
-LOAD INDEX INTO CACHE t2 ignore leaves;
-Table Op Msg_type Msg_text
-test.t2 preload_keys error Indexes use different block sizes
-test.t2 preload_keys status Operation failed
-# Must have INDEX or KEY before the index list
-LOAD INDEX INTO CACHE t2 (`PRIMARY`);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(`PRIMARY`)' at line 1
-# Test of IGNORE LEAVES
-LOAD INDEX INTO CACHE t2 INDEX (`PRIMARY`);
-Table Op Msg_type Msg_text
-test.t2 preload_keys status OK
-LOAD INDEX INTO CACHE t2 KEY (`PRIMARY`,`inx_b`) IGNORE LEAVES;
-Table Op Msg_type Msg_text
-test.t2 preload_keys error Indexes use different block sizes
-test.t2 preload_keys status Operation failed
-CACHE INDEX t2 IN warm_cache;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-CACHE INDEX t1 IN cold_cache;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-LOAD INDEX INTO CACHE t2 KEY (`PRIMARY`) IGNORE LEAVES;
-Table Op Msg_type Msg_text
-test.t2 preload_keys error Indexes use different block sizes
-test.t2 preload_keys status Operation failed
-CACHE INDEX t2 INDEX (`inx_b`, `inx_c`) IN hot_cache;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-LOAD INDEX INTO CACHE t2 KEY (`inx_b`, `inx_c`) IGNORE LEAVES;
-Table Op Msg_type Msg_text
-test.t2 preload_keys error Indexes use different block sizes
-test.t2 preload_keys status Operation failed
-CACHE INDEX t2 IN warm_cache;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-CACHE INDEX t2 INDEX (`PRIMARY`, `inx_c`) IN hot_cache;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-LOAD INDEX INTO CACHE t2 KEY (`PRIMARY`,`inx_c`) IGNORE LEAVES;
-Table Op Msg_type Msg_text
-test.t2 preload_keys error Indexes use different block sizes
-test.t2 preload_keys status Operation failed
-CACHE INDEX t2 INDEX (`inx_b`,`PRIMARY`) IN default;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-LOAD INDEX INTO CACHE t2 KEY (`PRIMARY`,`inx_b`);
-Table Op Msg_type Msg_text
-test.t2 preload_keys status OK
-CACHE INDEX t2 IN default;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache status OK
-LOAD INDEX INTO CACHE t2 IGNORE LEAVES;
-Table Op Msg_type Msg_text
-test.t2 preload_keys error Indexes use different block sizes
-test.t2 preload_keys status Operation failed
-LOAD INDEX INTO CACHE t2 PARTITION (p1) INDEX (`PRIMARY`);
-ERROR HY000: Partition management on a not partitioned table is not possible
-LOAD INDEX INTO CACHE t1, t2;
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-test.t2 preload_keys status OK
-# only one table at a time if specifying partitions
-LOAD INDEX INTO CACHE t1 PARTITION (p0), t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' t2' at line 1
-LOAD INDEX INTO CACHE t1 IGNORE LEAVES;
-Table Op Msg_type Msg_text
-test.t1 preload_keys error Indexes use different block sizes
-test.t1 preload_keys error Subpartition sp2 returned error
-test.t1 preload_keys status Operation failed
-LOAD INDEX INTO CACHE t1 INDEX (`PRIMARY`);
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-LOAD INDEX INTO CACHE t1 INDEX (`PRIMARY`,`inx_b`) IGNORE LEAVES;
-Table Op Msg_type Msg_text
-test.t1 preload_keys error Indexes use different block sizes
-test.t1 preload_keys error Subpartition sp2 returned error
-test.t1 preload_keys status Operation failed
-LOAD INDEX INTO CACHE t1 INDEX (`inx_b`) IGNORE LEAVES;
-Table Op Msg_type Msg_text
-test.t1 preload_keys error Indexes use different block sizes
-test.t1 preload_keys error Subpartition sp2 returned error
-test.t1 preload_keys status Operation failed
-LOAD INDEX INTO CACHE t1 INDEX (`PRIMARY`) IGNORE LEAVES;
-Table Op Msg_type Msg_text
-test.t1 preload_keys error Indexes use different block sizes
-test.t1 preload_keys error Subpartition sp2 returned error
-test.t1 preload_keys status Operation failed
-LOAD INDEX INTO CACHE t1 INDEX (`PRIMARY`,`inx_b`);
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-LOAD INDEX INTO CACHE t1 PARTITION (p1) INDEX (`PRIMARY`);
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-LOAD INDEX INTO CACHE t1 PARTITION (`p1`,p0) KEY (`PRIMARY`) IGNORE LEAVES;
-Table Op Msg_type Msg_text
-test.t1 preload_keys error Indexes use different block sizes
-test.t1 preload_keys error Subpartition sp2 returned error
-test.t1 preload_keys status Operation failed
-LOAD INDEX INTO CACHE t1 PARTITION (ALL);
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-LOAD INDEX INTO CACHE t1 PARTITIONS ALL;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PARTITIONS ALL' at line 1
-LOAD INDEX INTO CACHE t1 PARTITION (p1,`p0`) IGNORE LEAVES;
-Table Op Msg_type Msg_text
-test.t1 preload_keys error Indexes use different block sizes
-test.t1 preload_keys error Subpartition sp2 returned error
-test.t1 preload_keys status Operation failed
-DROP INDEX `inx_b` on t1;
-DROP INDEX `inx_b` on t2;
-CACHE INDEX t2 PARTITION (p0) KEY (`inx_b`) IN hot_cache;
-ERROR HY000: Partition management on a not partitioned table is not possible
-CACHE INDEX t2 INDEX (`inx_b`) IN hot_cache;
-Table Op Msg_type Msg_text
-test.t2 assign_to_keycache Error Key 'inx_b' doesn't exist in table 't2'
-test.t2 assign_to_keycache status Operation failed
-CACHE INDEX t1 PARTITION (p0) KEY (`inx_b`) IN hot_cache;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache error Subpartition sp0 returned error
-test.t1 assign_to_keycache Error Key 'inx_b' doesn't exist in table 't1'
-test.t1 assign_to_keycache status Operation failed
-CACHE INDEX t1 INDEX (`inx_b`) IN hot_cache;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache error Subpartition sp0 returned error
-test.t1 assign_to_keycache Error Key 'inx_b' doesn't exist in table 't1'
-test.t1 assign_to_keycache status Operation failed
-DROP TABLE t1,t2;
-#
-# Bug#12361113: crash when load index into cache
-#
-# Note that this creates an empty disabled key cache!
-SET GLOBAL key_cache_none.key_cache_block_size = 1024;
-CREATE TABLE t1 (a INT, b INTEGER NOT NULL, KEY (b) )
-ENGINE = MYISAM
-PARTITION BY HASH(a) PARTITIONS 2;
-INSERT INTO t1 VALUES (1, 1);
-CACHE INDEX t1 IN key_cache_none;
-ERROR HY000: Unknown key cache 'key_cache_none'
-CACHE INDEX t1 PARTITION (p0) IN key_cache_none;
-ERROR HY000: Unknown key cache 'key_cache_none'
-CACHE INDEX t1 PARTITION (p1) IN key_cache_none;
-ERROR HY000: Unknown key cache 'key_cache_none'
-CACHE INDEX t1 PARTITION (p0) KEY (`b`) IN key_cache_none;
-ERROR HY000: Unknown key cache 'key_cache_none'
-CACHE INDEX t1 PARTITION (p1) KEY (`b`) IN key_cache_none;
-ERROR HY000: Unknown key cache 'key_cache_none'
-# The bug crashed the server at LOAD INDEX below. Now it will succeed
-# since the default cache is used due to CACHE INDEX failed for
-# key_cache_none.
-LOAD INDEX INTO CACHE t1;
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-DROP TABLE t1;
-# Clean up
-SET GLOBAL hot_cache.key_buffer_size = 0;
-SET GLOBAL warm_cache.key_buffer_size = 0;
-SET @@global.cold_cache.key_buffer_size = 0;
-SELECT @@global.default.key_buffer_size a, @@global.default.key_cache_block_size b, @@global.default.key_cache_age_threshold c, @@global.default.key_cache_division_limit d;
-a b c d
-1048576 1024 300 100
-SELECT @@global.hot_cache.key_buffer_size a, @@global.hot_cache.key_cache_block_size b, @@global.hot_cache.key_cache_age_threshold c, @@global.hot_cache.key_cache_division_limit d;
-a b c d
-0 1024 300 100
-SELECT @@global.warm_cache.key_buffer_size a, @@global.warm_cache.key_cache_block_size b, @@global.warm_cache.key_cache_age_threshold c, @@global.warm_cache.key_cache_division_limit d;
-a b c d
-0 1024 300 100
-SELECT @@global.cold_cache.key_buffer_size a, @@global.cold_cache.key_cache_block_size b, @@global.cold_cache.key_cache_age_threshold c, @@global.cold_cache.key_cache_division_limit d;
-a b c d
-0 1024 300 100
-SET @@global.default.key_buffer_size = @org_key_cache_buffer_size;
diff --git a/mysql-test/r/partition_list.result b/mysql-test/r/partition_list.result
deleted file mode 100644
index 91c1c106cea..00000000000
--- a/mysql-test/r/partition_list.result
+++ /dev/null
@@ -1,336 +0,0 @@
-drop table if exists t1;
-create table t1 (a int unsigned)
-partition by list (a)
-(partition p0 values in (0),
-partition p1 values in (1),
-partition pnull values in (null),
-partition p2 values in (2));
-insert into t1 values (null),(0),(1),(2);
-select * from t1 where a < 2;
-a
-0
-1
-select * from t1 where a <= 0;
-a
-0
-select * from t1 where a < 1;
-a
-0
-select * from t1 where a > 0;
-a
-1
-2
-select * from t1 where a > 1;
-a
-2
-select * from t1 where a >= 0;
-a
-0
-1
-2
-select * from t1 where a >= 1;
-a
-1
-2
-select * from t1 where a is null;
-a
-NULL
-select * from t1 where a is not null;
-a
-0
-1
-2
-select * from t1 where a is null or a > 0;
-a
-1
-NULL
-2
-drop table t1;
-create table t1 (a int unsigned, b int)
-partition by list (a)
-subpartition by hash (b)
-subpartitions 2
-(partition p0 values in (0),
-partition p1 values in (1),
-partition pnull values in (null, 2),
-partition p3 values in (3));
-select partition_method, partition_expression, partition_description
-from information_schema.partitions where table_name = "t1";
-partition_method partition_expression partition_description
-LIST `a` 0
-LIST `a` 0
-LIST `a` 1
-LIST `a` 1
-LIST `a` NULL,2
-LIST `a` NULL,2
-LIST `a` 3
-LIST `a` 3
-insert into t1 values (0,0),(0,1),(1,0),(1,1),(null,0),(null,1);
-insert into t1 values (2,0),(2,1),(3,0),(3,1);
-explain partitions select * from t1 where a is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pnull_pnullsp0,pnull_pnullsp1 ALL NULL NULL NULL NULL 4 Using where
-select * from t1 where a is null;
-a b
-NULL 0
-NULL 1
-explain partitions select * from t1 where a = 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pnull_pnullsp0,pnull_pnullsp1 ALL NULL NULL NULL NULL 4 Using where
-select * from t1 where a = 2;
-a b
-2 0
-2 1
-select * from t1 where a <= 0;
-a b
-0 0
-0 1
-select * from t1 where a < 3;
-a b
-0 0
-0 1
-1 0
-1 1
-2 0
-2 1
-select * from t1 where a >= 1 or a is null;
-a b
-1 0
-1 1
-NULL 0
-2 0
-NULL 1
-2 1
-3 0
-3 1
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null)
-partition by list(a)
-partitions 2
-(partition x123 values in (1,5,6),
-partition x234 values in (4,7,8));
-INSERT into t1 VALUES (1,1,1);
-INSERT into t1 VALUES (2,1,1);
-ERROR HY000: Table has no partition for value 2
-INSERT into t1 VALUES (3,1,1);
-ERROR HY000: Table has no partition for value 3
-INSERT into t1 VALUES (4,1,1);
-INSERT into t1 VALUES (5,1,1);
-INSERT into t1 VALUES (6,1,1);
-INSERT into t1 VALUES (7,1,1);
-INSERT into t1 VALUES (8,1,1);
-INSERT into t1 VALUES (9,1,1);
-ERROR HY000: Table has no partition for value 9
-INSERT into t1 VALUES (1,2,1);
-INSERT into t1 VALUES (1,3,1);
-INSERT into t1 VALUES (1,4,1);
-INSERT into t1 VALUES (7,2,1);
-INSERT into t1 VALUES (7,3,1);
-INSERT into t1 VALUES (7,4,1);
-SELECT * from t1;
-a b c
-1 1 1
-5 1 1
-6 1 1
-1 2 1
-1 3 1
-1 4 1
-4 1 1
-7 1 1
-8 1 1
-7 2 1
-7 3 1
-7 4 1
-SELECT * from t1 WHERE a=1;
-a b c
-1 1 1
-1 2 1
-1 3 1
-1 4 1
-SELECT * from t1 WHERE a=7;
-a b c
-7 1 1
-7 2 1
-7 3 1
-7 4 1
-SELECT * from t1 WHERE b=2;
-a b c
-1 2 1
-7 2 1
-UPDATE t1 SET a=8 WHERE a=7 AND b=3;
-SELECT * from t1;
-a b c
-1 1 1
-5 1 1
-6 1 1
-1 2 1
-1 3 1
-1 4 1
-4 1 1
-7 1 1
-8 1 1
-7 2 1
-8 3 1
-7 4 1
-UPDATE t1 SET a=8 WHERE a=5 AND b=1;
-SELECT * from t1;
-a b c
-1 1 1
-6 1 1
-1 2 1
-1 3 1
-1 4 1
-4 1 1
-7 1 1
-8 1 1
-7 2 1
-8 3 1
-7 4 1
-8 1 1
-DELETE from t1 WHERE a=8;
-SELECT * from t1;
-a b c
-1 1 1
-6 1 1
-1 2 1
-1 3 1
-1 4 1
-4 1 1
-7 1 1
-7 2 1
-7 4 1
-DELETE from t1 WHERE a=2;
-SELECT * from t1;
-a b c
-1 1 1
-6 1 1
-1 2 1
-1 3 1
-1 4 1
-4 1 1
-7 1 1
-7 2 1
-7 4 1
-DELETE from t1 WHERE a=5 OR a=6;
-SELECT * from t1;
-a b c
-1 1 1
-1 2 1
-1 3 1
-1 4 1
-4 1 1
-7 1 1
-7 2 1
-7 4 1
-ALTER TABLE t1
-partition by list(a)
-partitions 2
-(partition x123 values in (1,5,6),
-partition x234 values in (4,7,8));
-SELECT * from t1;
-a b c
-1 1 1
-1 2 1
-1 3 1
-1 4 1
-4 1 1
-7 1 1
-7 2 1
-7 4 1
-INSERT into t1 VALUES (6,2,1);
-INSERT into t1 VALUES (2,2,1);
-ERROR HY000: Table has no partition for value 2
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by list (a)
-subpartition by hash (a+b)
-( partition x1 values in (1,2,3)
-( subpartition x11 nodegroup 0,
-subpartition x12 nodegroup 1),
-partition x2 values in (4,5,6)
-( subpartition x21 nodegroup 0,
-subpartition x22 nodegroup 1)
-);
-INSERT into t1 VALUES (1,1,1);
-INSERT into t1 VALUES (4,1,1);
-INSERT into t1 VALUES (7,1,1);
-ERROR HY000: Table has no partition for value 7
-UPDATE t1 SET a=5 WHERE a=1;
-SELECT * from t1;
-a b c
-5 1 1
-4 1 1
-UPDATE t1 SET a=6 WHERE a=4;
-SELECT * from t1;
-a b c
-5 1 1
-6 1 1
-DELETE from t1 WHERE a=6;
-SELECT * from t1;
-a b c
-5 1 1
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by list (a)
-(partition x1 values in (1,2,9,4) tablespace ts1);
-drop table t1;
-CREATE TABLE t1 (s1 int) PARTITION BY LIST (s1)
-(PARTITION p1 VALUES IN (1),
-PARTITION p2 VALUES IN (2),
-PARTITION p3 VALUES IN (3),
-PARTITION p4 VALUES IN (4),
-PARTITION p5 VALUES IN (5));
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
-SELECT COUNT(*) FROM t1 WHERE s1 < 3;
-COUNT(*)
-2
-DROP TABLE t1;
-create table t1 (a int auto_increment primary key)
-auto_increment=100
-partition by list (a)
-(partition p0 values in (1, 100));
-create index inx on t1 (a);
-insert into t1 values (null);
-select * from t1;
-a
-100
-drop table t1;
-create table t1 (a char(1))
-partition by list (ascii(ucase(a)))
-(partition p1 values in (2));
-ERROR HY000: This partition function is not allowed
-#
-# MDEV-11681: PARTITION BY LIST COLUMNS with default partition:
-# Assertion `part_info->num_list_values' failed in
-# get_part_iter_for_interval_cols_via_map
-#
-CREATE TABLE t1 (f int) PARTITION BY LIST COLUMNS (f) (PARTITION pdef DEFAULT);
-insert into t1 values (1),(2);
-select * from t1 where f = 1;
-f
-1
-drop table t1;
-CREATE TABLE t1 (f int, d int) PARTITION BY LIST COLUMNS (f,d) (PARTITION pdef DEFAULT);
-insert into t1 values (1,1),(2,2);
-select * from t1 where f = 1 and d = 1 ;
-f d
-1 1
-drop table t1;
-CREATE TABLE t1 (f int) PARTITION BY LIST (f) (PARTITION pdef DEFAULT);
-insert into t1 values (1),(2);
-select * from t1 where f = 1;
-f
-1
-drop table t1;
-#end of 10.2 tests
diff --git a/mysql-test/r/partition_mgm.result b/mysql-test/r/partition_mgm.result
deleted file mode 100644
index 37733a4e764..00000000000
--- a/mysql-test/r/partition_mgm.result
+++ /dev/null
@@ -1,95 +0,0 @@
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT PRIMARY KEY)
-ENGINE MYISAM
-PARTITION BY HASH (a)
-PARTITIONS 1;
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
-ALTER TABLE t1 REORGANIZE PARTITION;
-DROP TABLE t1;
-create table t1 (a int)
-partition by range (a)
-subpartition by key (a)
-(partition p0 values less than (10) (subpartition sp00, subpartition sp01),
-partition p1 values less than (20) (subpartition sp10, subpartition sp11));
-alter table t1 reorganize partition p0 into
-(partition p0 values less than (10) (subpartition sp00,
-subpartition sp01, subpartition sp02));
-ERROR HY000: Wrong number of subpartitions defined, mismatch with previous setting
-drop table t1;
-CREATE TABLE t1 (f_date DATE, f_varchar VARCHAR(30))
-PARTITION BY HASH(YEAR(f_date)) PARTITIONS 2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f_date` date DEFAULT NULL,
- `f_varchar` varchar(30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY HASH (year(`f_date`))
-PARTITIONS 2
-ALTER TABLE t1 COALESCE PARTITION 1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f_date` date DEFAULT NULL,
- `f_varchar` varchar(30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY HASH (year(`f_date`))
-PARTITIONS 1
-drop table t1;
-create table t1 (a int)
-partition by list (a)
-subpartition by hash (a)
-(partition p11 values in (1,2),
-partition p12 values in (3,4));
-alter table t1 REORGANIZE partition p11, p12 INTO
-(partition p1 values in (1,2,3,4));
-alter table t1 REORGANIZE partition p1 INTO
-(partition p11 values in (1,2),
-partition p12 values in (3,4));
-drop table t1;
-CREATE TABLE t1 (a INT)
-/*!50100 PARTITION BY HASH (a)
-/* Test
-of multi-line
-comment */
-PARTITIONS 5 */;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY HASH (`a`)
-PARTITIONS 5
-DROP TABLE t1;
-CREATE TABLE t1 (a INT)
-/*!50100 PARTITION BY HASH (a)
--- with a single line comment embedded
-PARTITIONS 5 */;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY HASH (`a`)
-PARTITIONS 5
-DROP TABLE t1;
-CREATE TABLE t1 (a INT)
-/*!50100 PARTITION BY HASH (a)
-PARTITIONS 5 */;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY HASH (`a`)
-PARTITIONS 5
-DROP TABLE t1;
-CREATE TABLE t1 (a INT) /*!50100 PARTITION BY HASH (a) PARTITIONS 5 */;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY HASH (`a`)
-PARTITIONS 5
-DROP TABLE t1;
diff --git a/mysql-test/r/partition_mgm_err.result b/mysql-test/r/partition_mgm_err.result
deleted file mode 100644
index e3c4bbf2af7..00000000000
--- a/mysql-test/r/partition_mgm_err.result
+++ /dev/null
@@ -1,160 +0,0 @@
-drop table if exists t1;
-CREATE TABLE t1 (a int, b int)
-PARTITION BY RANGE (a)
-(PARTITION x0 VALUES LESS THAN (2),
-PARTITION x1 VALUES LESS THAN (4),
-PARTITION x2 VALUES LESS THAN (6),
-PARTITION x3 VALUES LESS THAN (8),
-PARTITION x4 VALUES LESS THAN (10),
-PARTITION x5 VALUES LESS THAN (12),
-PARTITION x6 VALUES LESS THAN (14),
-PARTITION x7 VALUES LESS THAN (16),
-PARTITION x8 VALUES LESS THAN (18),
-PARTITION x9 VALUES LESS THAN (20));
-ALTER TABLE t1 REORGANIZE PARTITION x0,x1 INTO
-(PARTITION x01 VALUES LESS THAN (2),
-PARTITION x11 VALUES LESS THAN (5));
-ERROR HY000: Reorganize of range partitions cannot change total ranges except for last partition where it can extend the range
-ALTER TABLE t1 DROP PARTITION x0, x1, x2, x3, x3;
-ERROR HY000: Error in list of partitions to DROP
-ALTER TABLE t1 DROP PARTITION x0, x1, x2, x10;
-ERROR HY000: Error in list of partitions to DROP
-ALTER TABLE t1 DROP PARTITION x10, x1, x2, x1;
-ERROR HY000: Error in list of partitions to DROP
-ALTER TABLE t1 DROP PARTITION x10, x1, x2, x3;
-ERROR HY000: Error in list of partitions to DROP
-ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10 INTO
-(PARTITION x11 VALUES LESS THAN (22));
-ERROR HY000: More partitions to reorganize than there are partitions
-ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2 INTO
-(PARTITION x3 VALUES LESS THAN (6));
-ERROR HY000: Duplicate partition name x3
-ALTER TABLE t1 REORGANIZE PARTITION x0, x2 INTO
-(PARTITION x11 VALUES LESS THAN (2));
-ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
-ALTER TABLE t1 REORGANIZE PARTITION x0, x1, x1 INTO
-(PARTITION x11 VALUES LESS THAN (4));
-ERROR HY000: Error in list of partitions to REORGANIZE
-ALTER TABLE t1 REORGANIZE PARTITION x0,x1 INTO
-(PARTITION x01 VALUES LESS THAN (5));
-ERROR HY000: Reorganize of range partitions cannot change total ranges except for last partition where it can extend the range
-ALTER TABLE t1 REORGANIZE PARTITION x0,x1 INTO
-(PARTITION x01 VALUES LESS THAN (4),
-PARTITION x11 VALUES LESS THAN (2));
-ERROR HY000: VALUES LESS THAN value must be strictly increasing for each partition
-ALTER TABLE t1 REORGANIZE PARTITION x0,x1 INTO
-(PARTITION x01 VALUES LESS THAN (6),
-PARTITION x11 VALUES LESS THAN (4));
-ERROR HY000: VALUES LESS THAN value must be strictly increasing for each partition
-DROP TABLE t1;
-CREATE TABLE t1 (a int)
-PARTITION BY KEY (a)
-PARTITIONS 2;
-ALTER TABLE t1 ADD PARTITION (PARTITION p1);
-ERROR HY000: Duplicate partition name p1
-DROP TABLE t1;
-CREATE TABLE t1 (a int)
-PARTITION BY KEY (a)
-(PARTITION x0, PARTITION x1, PARTITION x2, PARTITION x3, PARTITION x3);
-ERROR HY000: Duplicate partition name x3
-CREATE TABLE t1 (a int)
-PARTITION BY RANGE (a)
-SUBPARTITION BY KEY (a)
-SUBPARTITIONS 2
-(PARTITION x0 VALUES LESS THAN (4),
-PARTITION x1 VALUES LESS THAN (8));
-ALTER TABLE t1 ADD PARTITION (PARTITION x2 VALUES LESS THAN (5)
-(SUBPARTITION sp0, SUBPARTITION sp1));
-ERROR HY000: VALUES LESS THAN value must be strictly increasing for each partition
-ALTER TABLE t1 ADD PARTITION (PARTITION x2 VALUES LESS THAN (12)
-(SUBPARTITION sp0, SUBPARTITION sp1, SUBPARTITION sp2));
-ERROR HY000: Trying to Add partition(s) with wrong number of subpartitions
-DROP TABLE t1;
-CREATE TABLE t1 (a int)
-PARTITION BY LIST (a)
-(PARTITION x0 VALUES IN (1,2,3),
-PARTITION x1 VALUES IN (4,5,6));
-ALTER TABLE t1 ADD PARTITION (PARTITION x2 VALUES IN (3,4));
-ERROR HY000: Multiple definition of same constant in list partitioning
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-ALTER TABLE t1 ADD PARTITION PARTITIONS 1;
-ERROR HY000: Partition management on a not partitioned table is not possible
-ALTER TABLE t1 DROP PARTITION x1;
-ERROR HY000: Partition management on a not partitioned table is not possible
-ALTER TABLE t1 COALESCE PARTITION 1;
-ERROR HY000: Partition management on a not partitioned table is not possible
-ALTER TABLE t1 ANALYZE PARTITION p1;
-ERROR HY000: Partition management on a not partitioned table is not possible
-ALTER TABLE t1 CHECK PARTITION p1;
-ERROR HY000: Partition management on a not partitioned table is not possible
-ALTER TABLE t1 OPTIMIZE PARTITION p1;
-ERROR HY000: Partition management on a not partitioned table is not possible
-ALTER TABLE t1 REPAIR PARTITION p1;
-ERROR HY000: Partition management on a not partitioned table is not possible
-DROP TABLE t1;
-CREATE TABLE t1 (a int)
-PARTITION BY KEY (a)
-(PARTITION x0, PARTITION x1);
-ALTER TABLE t1 ADD PARTITION PARTITIONS 0;
-ERROR HY000: At least one partition must be added
-ALTER TABLE t1 ADD PARTITION PARTITIONS 8192;
-ERROR HY000: Too many partitions (including subpartitions) were defined
-ALTER TABLE t1 DROP PARTITION x0;
-ERROR HY000: DROP PARTITION can only be used on RANGE/LIST partitions
-ALTER TABLE t1 COALESCE PARTITION 1;
-ALTER TABLE t1 COALESCE PARTITION 1;
-ERROR HY000: Cannot remove all partitions, use DROP TABLE instead
-DROP TABLE t1;
-CREATE TABLE t1 (a int)
-PARTITION BY RANGE (a)
-(PARTITION x0 VALUES LESS THAN (4),
-PARTITION x1 VALUES LESS THAN (8));
-ALTER TABLE t1 ADD PARTITION PARTITIONS 1;
-ERROR HY000: For RANGE partitions each partition must be defined
-ALTER TABLE t1 DROP PARTITION x2;
-ERROR HY000: Error in list of partitions to DROP
-ALTER TABLE t1 COALESCE PARTITION 1;
-ERROR HY000: COALESCE PARTITION can only be used on HASH/KEY partitions
-ALTER TABLE t1 DROP PARTITION x1;
-ALTER TABLE t1 DROP PARTITION x0;
-ERROR HY000: Cannot remove all partitions, use DROP TABLE instead
-DROP TABLE t1;
-CREATE TABLE t1 ( id INT NOT NULL,
-fname VARCHAR(50) NOT NULL,
-lname VARCHAR(50) NOT NULL,
-hired DATE NOT NULL )
-PARTITION BY RANGE(YEAR(hired)) (
-PARTITION p1 VALUES LESS THAN (1991),
-PARTITION p2 VALUES LESS THAN (1996),
-PARTITION p3 VALUES LESS THAN (2001),
-PARTITION p4 VALUES LESS THAN (2005));
-ALTER TABLE t1 ADD PARTITION (
-PARTITION p5 VALUES LESS THAN (2010),
-PARTITION p6 VALUES LESS THAN MAXVALUE);
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 PARTITION BY KEY(a) PARTITIONS 2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-PARTITIONS 2
-DROP TABLE t1;
-CREATE TABLE t1 (a INT) PARTITION BY HASH(a);
-ALTER TABLE t1 ADD PARTITION PARTITIONS 4;
-DROP TABLE t1;
-CREATE TABLE t1 (s1 int, s2 int)
-PARTITION BY LIST (s1)
-SUBPARTITION BY KEY (s2) (
-PARTITION p1 VALUES IN (0) (SUBPARTITION p1b),
-PARTITION p2 VALUES IN (2) (SUBPARTITION p1b)
-);
-ERROR HY000: Duplicate partition name p1b
diff --git a/mysql-test/r/partition_mgm_err2.result b/mysql-test/r/partition_mgm_err2.result
deleted file mode 100644
index 7e5763b8f1b..00000000000
--- a/mysql-test/r/partition_mgm_err2.result
+++ /dev/null
@@ -1,2 +0,0 @@
-INSERT INTO t1 VALUES (15);
-DROP TABLE t1;
diff --git a/mysql-test/r/partition_myisam.result b/mysql-test/r/partition_myisam.result
deleted file mode 100644
index 8f35075261a..00000000000
--- a/mysql-test/r/partition_myisam.result
+++ /dev/null
@@ -1,262 +0,0 @@
-DROP TABLE IF EXISTS t1, t2;
-#
-# BUG#11933226 - 60681: CHECKSUM TABLE RETURNS 0 FOR PARTITIONED TABLE
-#
-CREATE TABLE t1 (
-i INT
-)
-ENGINE=MyISAM
-PARTITION BY RANGE (i)
-(PARTITION p3 VALUES LESS THAN (3),
-PARTITION p5 VALUES LESS THAN (5),
-PARTITION pMax VALUES LESS THAN MAXVALUE);
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5), (6);
-CHECKSUM TABLE t1;
-Table Checksum
-test.t1 2653438147
-ALTER TABLE t1 CHECKSUM = 1;
-CHECKSUM TABLE t1 EXTENDED;
-Table Checksum
-test.t1 2653438147
-# Before patch this returned 0!
-CHECKSUM TABLE t1;
-Table Checksum
-test.t1 2653438147
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 CHECKSUM=1
- PARTITION BY RANGE (`i`)
-(PARTITION `p3` VALUES LESS THAN (3) ENGINE = MyISAM,
- PARTITION `p5` VALUES LESS THAN (5) ENGINE = MyISAM,
- PARTITION `pMax` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-DROP TABLE t1;
-# Same test without partitioning
-CREATE TABLE t1 (
-i INT
-) ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5), (6);
-CHECKSUM TABLE t1;
-Table Checksum
-test.t1 2653438147
-ALTER TABLE t1 CHECKSUM = 1;
-CHECKSUM TABLE t1 EXTENDED;
-Table Checksum
-test.t1 2653438147
-CHECKSUM TABLE t1;
-Table Checksum
-test.t1 2653438147
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 CHECKSUM=1
-DROP TABLE t1;
-#
-# Bug#31931: Mix of handlers error message
-#
-CREATE TABLE t1 (a INT)
-PARTITION BY HASH (a)
-( PARTITION p0 ENGINE=MyISAM,
-PARTITION p1);
-ERROR HY000: The mix of handlers in the partitions is not allowed in this version of MariaDB
-CREATE TABLE t1 (a INT)
-PARTITION BY LIST (a)
-SUBPARTITION BY HASH (a)
-( PARTITION p0 VALUES IN (0)
-( SUBPARTITION s0, SUBPARTITION s1 ENGINE=MyISAM, SUBPARTITION s2),
-PARTITION p1 VALUES IN (1)
-( SUBPARTITION s3 ENGINE=MyISAM, SUBPARTITION s4, SUBPARTITION s5 ENGINE=MyISAM));
-ERROR HY000: The mix of handlers in the partitions is not allowed in this version of MariaDB
-#
-# Bug#49161: Out of memory; restart server and try again (needed 2 bytes)
-#
-CREATE TABLE t1 (a INT)
-ENGINE = MyISAM
-PARTITION BY HASH (a);
-FLUSH TABLES;
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check Error Failed to read from the .par file
-test.t1 check error Corrupt
-SELECT * FROM t1;
-ERROR HY000: Failed to read from the .par file
-# Note that it is currently impossible to drop a partitioned table
-# without the .par file
-DROP TABLE t1;
-ERROR HY000: Got error 1 "Operation not permitted" from storage engine partition
-#
-# Bug#50392: insert_id is not reset for partitioned tables
-# auto_increment on duplicate entry
-CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY)
-ENGINE = MyISAM;
-SET INSERT_ID= 13;
-INSERT INTO t1 VALUES (NULL);
-SET INSERT_ID= 12;
-# For transactional engines, 12 will not be inserted, since the failing
-# statement is rolled back.
-INSERT INTO t1 VALUES (NULL), (NULL), (NULL);
-ERROR 23000: Duplicate entry '13' for key 'PRIMARY'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1
-INSERT INTO t1 VALUES (NULL);
-# NOTE: 12 exists only in non transactional engines!
-SELECT * FROM t1;
-a
-12
-13
-14
-DROP TABLE t1;
-CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY)
-ENGINE = MyISAM
-PARTITION BY KEY(a);
-SET INSERT_ID= 13;
-INSERT INTO t1 VALUES (NULL);
-SET INSERT_ID= 12;
-INSERT INTO t1 VALUES (NULL), (NULL), (NULL);
-ERROR 23000: Duplicate entry '13' for key 'PRIMARY'
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1
- PARTITION BY KEY (`a`)
-INSERT INTO t1 VALUES (NULL);
-SELECT * FROM t1;
-a
-12
-13
-14
-DROP TABLE t1;
-# Bug#30102 test
-CREATE TABLE t1 (a INT)
-ENGINE = MyISAM
-PARTITION BY RANGE (a)
-(PARTITION p0 VALUES LESS THAN (6),
-PARTITION `p1....................` VALUES LESS THAN (9),
-PARTITION p2 VALUES LESS THAN MAXVALUE);
-# List of files in database `test`, all original t1-files here
-t1#P#p0.MYD
-t1#P#p0.MYI
-t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYD
-t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYI
-t1#P#p2.MYD
-t1#P#p2.MYI
-t1.frm
-t1.par
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-# Renaming to a file name where the first partition is 250 chars
-# and the second partition is 350 chars
-RENAME TABLE t1 TO `t2_new..............................................end`;
-Got one of the listed errors
-# List of files in database `test`, should not be any t2-files here
-# List of files in database `test`, should be all t1-files here
-t1#P#p0.MYD
-t1#P#p0.MYI
-t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYD
-t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYI
-t1#P#p2.MYD
-t1#P#p2.MYI
-t1.frm
-t1.par
-SELECT * FROM t1;
-a
-1
-10
-2
-3
-4
-5
-6
-7
-8
-9
-# List of files in database `test`, should be all t1-files here
-t1#P#p0.MYD
-t1#P#p0.MYI
-t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYD
-t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYI
-t1#P#p2.MYD
-t1#P#p2.MYI
-t1.frm
-t1.par
-# Renaming to a file name where the first partition is 156 chars
-# and the second partition is 256 chars
-RENAME TABLE t1 TO `t2_............................_end`;
-Got one of the listed errors
-# List of files in database `test`, should not be any t2-files here
-# List of files in database `test`, should be all t1-files here
-t1#P#p0.MYD
-t1#P#p0.MYI
-t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYD
-t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYI
-t1#P#p2.MYD
-t1#P#p2.MYI
-t1.frm
-t1.par
-SELECT * FROM t1;
-a
-1
-10
-2
-3
-4
-5
-6
-7
-8
-9
-DROP TABLE t1;
-# Should not be any files left here
-# End of bug#30102 test.
-# Test of post-push fix for bug#11766249/59316
-CREATE TABLE t1 (a INT, b VARCHAR(255), PRIMARY KEY (a))
-ENGINE = MyISAM
-PARTITION BY RANGE (a)
-(PARTITION p0 VALUES LESS THAN (0) MAX_ROWS=100,
-PARTITION p1 VALUES LESS THAN (100) MAX_ROWS=100,
-PARTITION pMax VALUES LESS THAN MAXVALUE);
-INSERT INTO t1 VALUES (1, "Partition p1, first row");
-DROP TABLE t1;
-#
-# MDEV-10418 Assertion `m_extra_cache' failed
-# in ha_partition::late_extra_cache(uint)
-#
-CREATE TABLE t1 (f1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 INT) ENGINE=MyISAM PARTITION BY RANGE(f2) (PARTITION pmax VALUES LESS THAN MAXVALUE);
-INSERT INTO t2 VALUES (8);
-CREATE ALGORITHM = MERGE VIEW v AS SELECT f2 FROM t2, t1;
-UPDATE v SET f2 = 1;
-SELECT * FROM t2;
-f2
-1
-DROP VIEW v;
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# bug#11760213-52599: ALTER TABLE REMOVE PARTITIONING ON NON-PARTITIONED
-# TABLE CORRUPTS MYISAM
-DROP TABLE if exists `t1`;
-CREATE TABLE `t1`(`a` INT)ENGINE=myisam;
-ALTER TABLE `t1` ADD COLUMN `b` INT;
-CREATE UNIQUE INDEX `i1` ON `t1`(`b`);
-CREATE UNIQUE INDEX `i2` ON `t1`(`a`);
-ALTER TABLE `t1` ADD PRIMARY KEY (`a`);
-ALTER TABLE `t1` REMOVE PARTITIONING;
-ERROR HY000: Partition management on a not partitioned table is not possible
-CHECK TABLE `t1` EXTENDED;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-DROP TABLE t1;
diff --git a/mysql-test/r/partition_not_blackhole.result b/mysql-test/r/partition_not_blackhole.result
deleted file mode 100644
index ff1e51df892..00000000000
--- a/mysql-test/r/partition_not_blackhole.result
+++ /dev/null
@@ -1,16 +0,0 @@
-DROP TABLE IF EXISTS t1;
-#
-# Bug#46086: crash when dropping a partitioned table and
-# the original engine is disabled
-# Copy a .frm and .par file which was created with:
-# create table `t1` (`id` int primary key) engine=blackhole
-# partition by key () partitions 1;
-SHOW TABLES;
-Tables_in_test
-t1
-SHOW CREATE TABLE t1;
-ERROR HY000: Failed to read from the .par file
-DROP TABLE t1;
-ERROR HY000: Got error 1 "Operation not permitted" from storage engine partition
-t1.frm
-t1.par
diff --git a/mysql-test/r/partition_not_windows.result b/mysql-test/r/partition_not_windows.result
deleted file mode 100644
index 03282ac134a..00000000000
--- a/mysql-test/r/partition_not_windows.result
+++ /dev/null
@@ -1,97 +0,0 @@
-create table t1 (a int) engine myisam
-partition by range (a)
-subpartition by hash (a)
-(partition p0 VALUES LESS THAN (1) DATA DIRECTORY = 'MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/tmp'
-(SUBPARTITION subpart00, SUBPARTITION subpart01));
-# Checking if file exists before alter
-ALTER TABLE t1 REORGANIZE PARTITION p0 INTO
-(partition p1 VALUES LESS THAN (1) DATA DIRECTORY = 'MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/tmp'
-(SUBPARTITION subpart10, SUBPARTITION subpart11),
-partition p2 VALUES LESS THAN (2) DATA DIRECTORY = 'MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/tmp'
-(SUBPARTITION subpart20, SUBPARTITION subpart21));
-# Checking if file exists after alter
-drop table t1;
-set @org_mode=@@sql_mode;
-set @@sql_mode='NO_DIR_IN_CREATE';
-select @@sql_mode;
-@@sql_mode
-NO_DIR_IN_CREATE
-create table t1 (i int )
-partition by range (i)
-(
-partition p01 values less than (1000)
-data directory='/not/existing'
- index directory='/not/existing'
-);
-Warnings:
-Warning 1618 <DATA DIRECTORY> option ignored
-Warning 1618 <INDEX DIRECTORY> option ignored
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`i`)
-(PARTITION `p01` VALUES LESS THAN (1000) ENGINE = MyISAM)
-DROP TABLE t1, t2;
-set @@sql_mode=@org_mode;
-CREATE TABLE t1(a INT)
-PARTITION BY KEY (a)
-(PARTITION p0 DATA DIRECTORY 'MYSQLD_DATADIR/test');
-ERROR HY000: Incorrect arguments to DATA DIRECTORY
-CREATE TABLE t1(a INT)
-PARTITION BY KEY (a)
-(PARTITION p0 INDEX DIRECTORY 'MYSQLD_DATADIR/test');
-ERROR HY000: Incorrect arguments to INDEX DIRECTORY
-CREATE TABLE ts (id INT, purchased DATE)
-PARTITION BY RANGE(YEAR(purchased))
-SUBPARTITION BY HASH(TO_DAYS(purchased)) (
-PARTITION p0 VALUES LESS THAN (1990) (
-SUBPARTITION s0a
-DATA DIRECTORY = 'MYSQLD_DATADIR/test',
-SUBPARTITION s0b
-DATA DIRECTORY = 'MYSQLD_DATADIR/test'
-));
-ERROR HY000: Incorrect arguments to DATA DIRECTORY
-CREATE TABLE ts (id INT, purchased DATE)
-PARTITION BY RANGE(YEAR(purchased))
-SUBPARTITION BY HASH(TO_DAYS(purchased)) (
-PARTITION p0 VALUES LESS THAN (1990) (
-SUBPARTITION s0a
-INDEX DIRECTORY = 'MYSQLD_DATADIR/test',
-SUBPARTITION s0b
-INDEX DIRECTORY = 'MYSQLD_DATADIR/test'
-));
-ERROR HY000: Incorrect arguments to INDEX DIRECTORY
-DROP TABLE IF EXISTS `example`;
-CREATE TABLE `example` (
-`ID_EXAMPLE` int(10) unsigned NOT NULL AUTO_INCREMENT,
-`DESCRIPTION` varchar(30) NOT NULL,
-`LEVEL` smallint(5) unsigned DEFAULT NULL,
-PRIMARY KEY (`ID_EXAMPLE`)
-) ENGINE = MYISAM
-PARTITION BY HASH(ID_EXAMPLE)(
-PARTITION p0 DATA DIRECTORY = 'MYSQLTEST_VARDIR/p0Data'
-INDEX DIRECTORY = 'MYSQLTEST_VARDIR/p0Index',
-PARTITION p1 DATA DIRECTORY = 'MYSQLTEST_VARDIR/p1Data'
-INDEX DIRECTORY = 'MYSQLTEST_VARDIR/p1Index',
-PARTITION p2 DATA DIRECTORY = 'MYSQLTEST_VARDIR/p2Data'
-INDEX DIRECTORY = 'MYSQLTEST_VARDIR/p2Index',
-PARTITION p3 DATA DIRECTORY = 'MYSQLTEST_VARDIR/p3Data'
-INDEX DIRECTORY = 'MYSQLTEST_VARDIR/p3Index'
-);
-# Checking that MyISAM .MYD and .MYI are in test db and data/idx dir
-DROP TABLE example;
-CREATE TABLE `example` (
-`ID_EXAMPLE` int(10) unsigned NOT NULL AUTO_INCREMENT,
-`DESCRIPTION` varchar(30) NOT NULL,
-`LEVEL` smallint(5) unsigned DEFAULT NULL,
-PRIMARY KEY (`ID_EXAMPLE`)
-) ENGINE = MYISAM
-PARTITION BY HASH(ID_EXAMPLE)(
-PARTITION p0 DATA DIRECTORY = '/not/existent/p0Data',
-PARTITION p1 DATA DIRECTORY = '/not/existent/p1Data',
-PARTITION p2 DATA DIRECTORY = '/not/existent/p2Data',
-PARTITION p3 DATA DIRECTORY = '/not/existent/p3Data'
-);
-ERROR HY000: Can't create/write to file '/not/existent/p0Data/example#P#p0.MYD' (Errcode: 2 "No such file or directory")
diff --git a/mysql-test/r/partition_open_files_limit.result b/mysql-test/r/partition_open_files_limit.result
deleted file mode 100644
index fed32a69c44..00000000000
--- a/mysql-test/r/partition_open_files_limit.result
+++ /dev/null
@@ -1,22 +0,0 @@
-DROP TABLE IF EXISTS `t1`;
-# Bug#46922: crash when adding partitions and open_files_limit is reached
-CREATE TABLE t1 (a INT PRIMARY KEY)
-ENGINE=MyISAM PARTITION BY KEY () PARTITIONS 1;
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11);
-# if the bug exists, then crash will happen here
-ALTER TABLE t1 ADD PARTITION PARTITIONS 511;
-ERROR HY000: Out of resources when opening file '<partition file>' (Errcode: 24 "Too many open files")
-SELECT * FROM t1;
-a
-1
-10
-11
-2
-3
-4
-5
-6
-7
-8
-9
-DROP TABLE t1;
diff --git a/mysql-test/r/partition_order.result b/mysql-test/r/partition_order.result
deleted file mode 100644
index cecfc90eefb..00000000000
--- a/mysql-test/r/partition_order.result
+++ /dev/null
@@ -1,785 +0,0 @@
-drop table if exists t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int unsigned not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b tinyint not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b tinyint unsigned not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b smallint not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b smallint unsigned not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b mediumint not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b mediumint unsigned not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b bigint unsigned not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b bigint not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b bigint not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b float not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b double not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b double unsigned not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b float unsigned not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b double precision not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b double precision unsigned not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b decimal not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (2, 5);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b char(10) not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, '1');
-INSERT into t1 values (2, '5');
-INSERT into t1 values (30, '4');
-INSERT into t1 values (35, '2');
-select * from t1 force index (b) where b > 0 order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b varchar(10) not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, '1');
-INSERT into t1 values (2, '5');
-INSERT into t1 values (30, '4');
-INSERT into t1 values (35, '2');
-select * from t1 force index (b) where b > '0' order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b varchar(10) not null,
-primary key(a),
-index (b(5)))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, '1');
-INSERT into t1 values (2, '5');
-INSERT into t1 values (30, '4');
-INSERT into t1 values (35, '2');
-select * from t1 force index (b) where b > '0' order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b varchar(10) binary not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, '1');
-INSERT into t1 values (2, '5');
-INSERT into t1 values (30, '4');
-INSERT into t1 values (35, '2');
-select * from t1 force index (b) where b > '0' order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b tinytext not null,
-primary key(a),
-index (b(10)))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, '1');
-INSERT into t1 values (2, '5');
-INSERT into t1 values (30, '4');
-INSERT into t1 values (35, '2');
-select * from t1 force index (b) where b > '0' order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b text not null,
-primary key(a),
-index (b(10)))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, '1');
-INSERT into t1 values (2, '5');
-INSERT into t1 values (30, '4');
-INSERT into t1 values (35, '2');
-select * from t1 force index (b) where b > '0' order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b mediumtext not null,
-primary key(a),
-index (b(10)))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, '1');
-INSERT into t1 values (2, '5');
-INSERT into t1 values (30, '4');
-INSERT into t1 values (35, '2');
-select * from t1 force index (b) where b > '0' order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b longtext not null,
-primary key(a),
-index (b(10)))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, '1');
-INSERT into t1 values (2, '5');
-INSERT into t1 values (30, '4');
-INSERT into t1 values (35, '2');
-select * from t1 force index (b) where b > '0' order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b enum('1','2', '4', '5') not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, '1');
-INSERT into t1 values (2, '5');
-INSERT into t1 values (30, '4');
-INSERT into t1 values (35, '2');
-select * from t1 force index (b) where b >= '1' order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b set('1','2', '4', '5') not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, '1');
-INSERT into t1 values (2, '5');
-INSERT into t1 values (30, '4');
-INSERT into t1 values (35, '2');
-select * from t1 force index (b) where b >= '1' order by b;
-a b
-1 1
-35 2
-30 4
-2 5
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b date not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, '2001-01-01');
-INSERT into t1 values (2, '2005-01-01');
-INSERT into t1 values (30, '2004-01-01');
-INSERT into t1 values (35, '2002-01-01');
-select * from t1 force index (b) where b > '2000-01-01' order by b;
-a b
-1 2001-01-01
-35 2002-01-01
-30 2004-01-01
-2 2005-01-01
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b datetime not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, '2001-01-01 00:00:00');
-INSERT into t1 values (2, '2005-01-01 00:00:00');
-INSERT into t1 values (30, '2004-01-01 00:00:00');
-INSERT into t1 values (35, '2002-01-01 00:00:00');
-select * from t1 force index (b) where b > '2000-01-01 00:00:00' order by b;
-a b
-1 2001-01-01 00:00:00
-35 2002-01-01 00:00:00
-30 2004-01-01 00:00:00
-2 2005-01-01 00:00:00
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b timestamp not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, '2001-01-01 00:00:00');
-INSERT into t1 values (2, '2005-01-01 00:00:00');
-INSERT into t1 values (30, '2004-01-01 00:00:00');
-INSERT into t1 values (35, '2002-01-01 00:00:00');
-select * from t1 force index (b) where b > '2000-01-01 00:00:00' order by b;
-a b
-1 2001-01-01 00:00:00
-35 2002-01-01 00:00:00
-30 2004-01-01 00:00:00
-2 2005-01-01 00:00:00
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b time not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, '01:00:00');
-INSERT into t1 values (2, '05:00:00');
-INSERT into t1 values (30, '04:00:00');
-INSERT into t1 values (35, '02:00:00');
-select * from t1 force index (b) where b > '00:00:00' order by b;
-a b
-1 01:00:00
-35 02:00:00
-30 04:00:00
-2 05:00:00
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b year not null,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 2001);
-INSERT into t1 values (2, 2005);
-INSERT into t1 values (30, 2004);
-INSERT into t1 values (35, 2002);
-select * from t1 force index (b) where b > 2000 order by b;
-a b
-1 2001
-35 2002
-30 2004
-2 2005
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b bit(5) not null,
-c int,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, b'00001', NULL);
-INSERT into t1 values (2, b'00101', 2);
-INSERT into t1 values (30, b'00100', 2);
-INSERT into t1 values (35, b'00010', NULL);
-select a from t1 force index (b) where b > b'00000' order by b;
-a
-1
-35
-30
-2
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b bit(15) not null,
-c int,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, b'000000000000001', NULL);
-INSERT into t1 values (2, b'001010000000101', 2);
-INSERT into t1 values (30, b'001000000000100', 2);
-INSERT into t1 values (35, b'000100000000010', NULL);
-select a from t1 force index (b) where b > b'000000000000000' order by b;
-a
-1
-35
-30
-2
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int,
-primary key(a),
-index (b))
-partition by range (a)
-partitions 2
-(partition x1 values less than (25),
-partition x2 values less than (100));
-INSERT into t1 values (1, 1);
-INSERT into t1 values (5, NULL);
-INSERT into t1 values (2, 4);
-INSERT into t1 values (3, 3);
-INSERT into t1 values (4, 5);
-INSERT into t1 values (7, 1);
-INSERT into t1 values (6, 6);
-INSERT into t1 values (30, 4);
-INSERT into t1 values (35, 2);
-INSERT into t1 values (40, NULL);
-select * from t1 force index (b) where b < 10 OR b IS NULL order by b;
-a b
-5 NULL
-40 NULL
-1 1
-7 1
-35 2
-3 3
-30 4
-2 4
-4 5
-6 6
-select * from t1 force index (b) where b < 10 ORDER BY b;
-a b
-1 1
-7 1
-35 2
-3 3
-30 4
-2 4
-4 5
-6 6
-select * from t1 force index (b) where b < 10 ORDER BY b DESC;
-a b
-6 6
-4 5
-2 4
-30 4
-3 3
-35 2
-7 1
-1 1
-drop table t1;
-create table t1 (a int not null, b int, c varchar(20), key (a,b,c))
-partition by range (b)
-(partition p0 values less than (5),
-partition p1 values less than (10));
-INSERT into t1 values (1,1,'1'),(2,2,'2'),(1,3,'3'),(2,4,'4'),(1,5,'5');
-INSERT into t1 values (2,6,'6'),(1,7,'7'),(2,8,'8'),(1,9,'9');
-INSERT into t1 values (1, NULL, NULL), (2, NULL, '10');
-select * from t1 where a = 1 order by a desc, b desc;
-a b c
-1 9 9
-1 7 7
-1 5 5
-1 3 3
-1 1 1
-1 NULL NULL
-select * from t1 where a = 1 order by b desc;
-a b c
-1 9 9
-1 7 7
-1 5 5
-1 3 3
-1 1 1
-1 NULL NULL
-drop table t1;
diff --git a/mysql-test/r/partition_pruning.result b/mysql-test/r/partition_pruning.result
deleted file mode 100644
index 422132dd1c3..00000000000
--- a/mysql-test/r/partition_pruning.result
+++ /dev/null
@@ -1,3486 +0,0 @@
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
-#
-# Bug#53806: Wrong estimates for range query in partitioned MyISAM table
-# Bug#46754: 'rows' field doesn't reflect partition pruning
-#
-CREATE TABLE t1 (a INT PRIMARY KEY)
-PARTITION BY RANGE (a) (
-PARTITION p0 VALUES LESS THAN (1),
-PARTITION p1 VALUES LESS THAN (2),
-PARTITION p2 VALUES LESS THAN (3),
-PARTITION p3 VALUES LESS THAN (4),
-PARTITION p4 VALUES LESS THAN (5),
-PARTITION p5 VALUES LESS THAN (6),
-PARTITION max VALUES LESS THAN MAXVALUE);
-INSERT INTO t1 VALUES (-1),(0),(1),(2),(3),(4),(5),(6),(7),(8);
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-# # # # # # # # # 3 #
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 7;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-# # # # # # # # # 9 #
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-# # # # # # # # # 3 #
-DROP TABLE t1;
-#
-# Bug#49742: Partition Pruning not working correctly for RANGE
-#
-CREATE TABLE t1 (a INT PRIMARY KEY)
-PARTITION BY RANGE (a) (
-PARTITION p0 VALUES LESS THAN (1),
-PARTITION p1 VALUES LESS THAN (2),
-PARTITION p2 VALUES LESS THAN (3),
-PARTITION p3 VALUES LESS THAN (4),
-PARTITION p4 VALUES LESS THAN (5),
-PARTITION p5 VALUES LESS THAN (6),
-PARTITION max VALUES LESS THAN MAXVALUE);
-INSERT INTO t1 VALUES (-1),(0),(1),(2),(3),(4),(5),(6),(7),(8);
-SELECT * FROM t1 WHERE a < 1;
-a
--1
-0
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 index PRIMARY PRIMARY 4 NULL 2 Using where; Using index
-SELECT * FROM t1 WHERE a < 2;
-a
--1
-0
-1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 index PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE a < 3;
-a
--1
-0
-1
-2
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2 index PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-SELECT * FROM t1 WHERE a < 4;
-a
--1
-0
-1
-2
-3
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3 index PRIMARY PRIMARY 4 NULL 5 Using where; Using index
-SELECT * FROM t1 WHERE a < 5;
-a
--1
-0
-1
-2
-3
-4
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3,p4 index PRIMARY PRIMARY 4 NULL 6 Using where; Using index
-SELECT * FROM t1 WHERE a < 6;
-a
--1
-0
-1
-2
-3
-4
-5
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 6;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3,p4,p5 index PRIMARY PRIMARY 4 NULL 7 Using where; Using index
-SELECT * FROM t1 WHERE a < 7;
-a
--1
-0
-1
-2
-3
-4
-5
-6
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 7;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3,p4,p5,max range PRIMARY PRIMARY 4 NULL 9 Using where; Using index
-SELECT * FROM t1 WHERE a <= 1;
-a
--1
-0
-1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 index PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE a <= 2;
-a
--1
-0
-1
-2
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2 index PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-SELECT * FROM t1 WHERE a <= 3;
-a
--1
-0
-1
-2
-3
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3 index PRIMARY PRIMARY 4 NULL 5 Using where; Using index
-SELECT * FROM t1 WHERE a <= 4;
-a
--1
-0
-1
-2
-3
-4
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3,p4 index PRIMARY PRIMARY 4 NULL 6 Using where; Using index
-SELECT * FROM t1 WHERE a <= 5;
-a
--1
-0
-1
-2
-3
-4
-5
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3,p4,p5 index PRIMARY PRIMARY 4 NULL 7 Using where; Using index
-SELECT * FROM t1 WHERE a <= 6;
-a
--1
-0
-1
-2
-3
-4
-5
-6
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 6;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3,p4,p5,max range PRIMARY PRIMARY 4 NULL 9 Using where; Using index
-SELECT * FROM t1 WHERE a <= 7;
-a
--1
-0
-1
-2
-3
-4
-5
-6
-7
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 7;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3,p4,p5,max range PRIMARY PRIMARY 4 NULL 9 Using where; Using index
-SELECT * FROM t1 WHERE a = 1;
-a
-1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 system PRIMARY NULL NULL NULL 1
-SELECT * FROM t1 WHERE a = 2;
-a
-2
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system PRIMARY NULL NULL NULL 1
-SELECT * FROM t1 WHERE a = 3;
-a
-3
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p3 system PRIMARY NULL NULL NULL 1
-SELECT * FROM t1 WHERE a = 4;
-a
-4
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p4 system PRIMARY NULL NULL NULL 1
-SELECT * FROM t1 WHERE a = 5;
-a
-5
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p5 system PRIMARY NULL NULL NULL 1
-SELECT * FROM t1 WHERE a = 6;
-a
-6
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 6;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 max const PRIMARY PRIMARY 4 const 1 Using index
-SELECT * FROM t1 WHERE a = 7;
-a
-7
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 7;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 max const PRIMARY PRIMARY 4 const 1 Using index
-SELECT * FROM t1 WHERE a >= 1;
-a
-1
-2
-3
-4
-5
-6
-7
-8
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2,p3,p4,p5,max index PRIMARY PRIMARY 4 NULL 8 Using where; Using index
-SELECT * FROM t1 WHERE a >= 2;
-a
-2
-3
-4
-5
-6
-7
-8
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2,p3,p4,p5,max index PRIMARY PRIMARY 4 NULL 7 Using where; Using index
-SELECT * FROM t1 WHERE a >= 3;
-a
-3
-4
-5
-6
-7
-8
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p3,p4,p5,max index PRIMARY PRIMARY 4 NULL 6 Using where; Using index
-SELECT * FROM t1 WHERE a >= 4;
-a
-4
-5
-6
-7
-8
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p4,p5,max index PRIMARY PRIMARY 4 NULL 5 Using where; Using index
-SELECT * FROM t1 WHERE a >= 5;
-a
-5
-6
-7
-8
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p5,max index PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-SELECT * FROM t1 WHERE a >= 6;
-a
-6
-7
-8
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 6;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE a >= 7;
-a
-7
-8
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 7;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE a > 1;
-a
-2
-3
-4
-5
-6
-7
-8
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2,p3,p4,p5,max index PRIMARY PRIMARY 4 NULL 7 Using where; Using index
-SELECT * FROM t1 WHERE a > 2;
-a
-3
-4
-5
-6
-7
-8
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p3,p4,p5,max index PRIMARY PRIMARY 4 NULL 6 Using where; Using index
-SELECT * FROM t1 WHERE a > 3;
-a
-4
-5
-6
-7
-8
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p4,p5,max index PRIMARY PRIMARY 4 NULL 5 Using where; Using index
-SELECT * FROM t1 WHERE a > 4;
-a
-5
-6
-7
-8
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p5,max index PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-SELECT * FROM t1 WHERE a > 5;
-a
-6
-7
-8
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE a > 6;
-a
-7
-8
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 6;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE a > 7;
-a
-8
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 7;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-DROP TABLE t1;
-CREATE TABLE t1 (a INT PRIMARY KEY)
-PARTITION BY RANGE (a) (
-PARTITION p0 VALUES LESS THAN (1),
-PARTITION p1 VALUES LESS THAN (2),
-PARTITION p2 VALUES LESS THAN (3),
-PARTITION p3 VALUES LESS THAN (4),
-PARTITION p4 VALUES LESS THAN (5),
-PARTITION max VALUES LESS THAN MAXVALUE);
-INSERT INTO t1 VALUES (-1),(0),(1),(2),(3),(4),(5),(6),(7);
-SELECT * FROM t1 WHERE a < 1;
-a
--1
-0
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 index PRIMARY PRIMARY 4 NULL 2 Using where; Using index
-SELECT * FROM t1 WHERE a < 2;
-a
--1
-0
-1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 index PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE a < 3;
-a
--1
-0
-1
-2
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2 index PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-SELECT * FROM t1 WHERE a < 4;
-a
--1
-0
-1
-2
-3
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3 index PRIMARY PRIMARY 4 NULL 5 Using where; Using index
-SELECT * FROM t1 WHERE a < 5;
-a
--1
-0
-1
-2
-3
-4
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3,p4 index PRIMARY PRIMARY 4 NULL 6 Using where; Using index
-SELECT * FROM t1 WHERE a < 6;
-a
--1
-0
-1
-2
-3
-4
-5
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 6;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3,p4,max range PRIMARY PRIMARY 4 NULL 8 Using where; Using index
-SELECT * FROM t1 WHERE a <= 1;
-a
--1
-0
-1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 index PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE a <= 2;
-a
--1
-0
-1
-2
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2 index PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-SELECT * FROM t1 WHERE a <= 3;
-a
--1
-0
-1
-2
-3
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3 index PRIMARY PRIMARY 4 NULL 5 Using where; Using index
-SELECT * FROM t1 WHERE a <= 4;
-a
--1
-0
-1
-2
-3
-4
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3,p4 index PRIMARY PRIMARY 4 NULL 6 Using where; Using index
-SELECT * FROM t1 WHERE a <= 5;
-a
--1
-0
-1
-2
-3
-4
-5
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3,p4,max range PRIMARY PRIMARY 4 NULL 8 Using where; Using index
-SELECT * FROM t1 WHERE a <= 6;
-a
--1
-0
-1
-2
-3
-4
-5
-6
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 6;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3,p4,max range PRIMARY PRIMARY 4 NULL 8 Using where; Using index
-SELECT * FROM t1 WHERE a = 1;
-a
-1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 system PRIMARY NULL NULL NULL 1
-SELECT * FROM t1 WHERE a = 2;
-a
-2
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system PRIMARY NULL NULL NULL 1
-SELECT * FROM t1 WHERE a = 3;
-a
-3
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p3 system PRIMARY NULL NULL NULL 1
-SELECT * FROM t1 WHERE a = 4;
-a
-4
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p4 system PRIMARY NULL NULL NULL 1
-SELECT * FROM t1 WHERE a = 5;
-a
-5
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 max const PRIMARY PRIMARY 4 const 1 Using index
-SELECT * FROM t1 WHERE a = 6;
-a
-6
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 6;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 max const PRIMARY PRIMARY 4 const 1 Using index
-SELECT * FROM t1 WHERE a >= 1;
-a
-1
-2
-3
-4
-5
-6
-7
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2,p3,p4,max index PRIMARY PRIMARY 4 NULL 7 Using where; Using index
-SELECT * FROM t1 WHERE a >= 2;
-a
-2
-3
-4
-5
-6
-7
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2,p3,p4,max index PRIMARY PRIMARY 4 NULL 6 Using where; Using index
-SELECT * FROM t1 WHERE a >= 3;
-a
-3
-4
-5
-6
-7
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p3,p4,max index PRIMARY PRIMARY 4 NULL 5 Using where; Using index
-SELECT * FROM t1 WHERE a >= 4;
-a
-4
-5
-6
-7
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p4,max index PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-SELECT * FROM t1 WHERE a >= 5;
-a
-5
-6
-7
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE a >= 6;
-a
-6
-7
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 6;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE a > 1;
-a
-2
-3
-4
-5
-6
-7
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2,p3,p4,max index PRIMARY PRIMARY 4 NULL 6 Using where; Using index
-SELECT * FROM t1 WHERE a > 2;
-a
-3
-4
-5
-6
-7
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p3,p4,max index PRIMARY PRIMARY 4 NULL 5 Using where; Using index
-SELECT * FROM t1 WHERE a > 3;
-a
-4
-5
-6
-7
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p4,max index PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-SELECT * FROM t1 WHERE a > 4;
-a
-5
-6
-7
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE a > 5;
-a
-6
-7
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE a > 6;
-a
-7
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 6;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL 3 Using where; Using index
-DROP TABLE t1;
-# test of RANGE and index
-CREATE TABLE t1 (a DATE, KEY(a))
-PARTITION BY RANGE (TO_DAYS(a))
-(PARTITION `pNULL` VALUES LESS THAN (0),
-PARTITION `p0001-01-01` VALUES LESS THAN (366 + 1),
-PARTITION `p1001-01-01` VALUES LESS THAN (TO_DAYS('1001-01-01') + 1),
-PARTITION `p2001-01-01` VALUES LESS THAN (TO_DAYS('2001-01-01') + 1));
-INSERT INTO t1 VALUES ('0000-00-00'), ('0000-01-02'), ('0001-01-01'),
-('1001-00-00'), ('1001-01-01'), ('1002-00-00'), ('2001-01-01');
-SELECT * FROM t1 WHERE a < '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a <= '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a >= '1001-01-01';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-01-01';
-a
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-01-01';
-a
-1001-01-01
-SELECT * FROM t1 WHERE a < '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-SELECT * FROM t1 WHERE a <= '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a >= '1001-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-00-00';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-00-00';
-a
-1001-00-00
-# Disabling warnings for the invalid date
-SELECT * FROM t1 WHERE a < '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a <= '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a >= '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a > '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a = '1999-02-31';
-a
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-a
-0001-01-01
-1001-00-00
-1001-01-01
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01 range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01 range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p1001-01-01,p2001-01-01 range a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p2001-01-01 range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1001-01-01 system a NULL NULL NULL 1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01 range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01 range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p1001-01-01,p2001-01-01 range a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p1001-01-01,p2001-01-01 range a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL ref a a 4 const 1 Using index
-# Disabling warnings for the invalid date
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01,p2001-01-01 range a a 4 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01,p2001-01-01 range a a 4 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p2001-01-01 index a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p2001-01-01 index a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL ref a a 4 const 1 Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01,p2001-01-01 range a a 4 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01 range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p1001-01-01,p2001-01-01 range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01 range a a 4 NULL 3 Using where; Using index
-# test without index
-ALTER TABLE t1 DROP KEY a;
-SELECT * FROM t1 WHERE a < '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a <= '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a >= '1001-01-01';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-01-01';
-a
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-01-01';
-a
-1001-01-01
-SELECT * FROM t1 WHERE a < '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-SELECT * FROM t1 WHERE a <= '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a >= '1001-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-00-00';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-00-00';
-a
-1001-00-00
-# Disabling warnings for the invalid date
-SELECT * FROM t1 WHERE a < '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a <= '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a >= '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a > '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a = '1999-02-31';
-a
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-a
-0001-01-01
-1001-00-00
-1001-01-01
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p1001-01-01,p2001-01-01 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p2001-01-01 ALL NULL NULL NULL NULL 4 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1001-01-01 system NULL NULL NULL NULL 1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p1001-01-01,p2001-01-01 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p1001-01-01,p2001-01-01 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL ALL NULL NULL NULL NULL 3 Using where
-# Disabling warnings for the invalid date
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01,p2001-01-01 ALL NULL NULL NULL NULL 7 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01,p2001-01-01 ALL NULL NULL NULL NULL 7 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p2001-01-01 ALL NULL NULL NULL NULL 4 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p2001-01-01 ALL NULL NULL NULL NULL 4 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL ALL NULL NULL NULL NULL 3 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01,p2001-01-01 ALL NULL NULL NULL NULL 7 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p1001-01-01,p2001-01-01 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-DROP TABLE t1;
-# test of LIST and index
-CREATE TABLE t1 (a DATE, KEY(a))
-PARTITION BY LIST (TO_DAYS(a))
-(PARTITION `p0001-01-01` VALUES IN (TO_DAYS('0001-01-01')),
-PARTITION `p2001-01-01` VALUES IN (TO_DAYS('2001-01-01')),
-PARTITION `pNULL` VALUES IN (NULL),
-PARTITION `p0000-01-02` VALUES IN (TO_DAYS('0000-01-02')),
-PARTITION `p1001-01-01` VALUES IN (TO_DAYS('1001-01-01')));
-INSERT INTO t1 VALUES ('0000-00-00'), ('0000-01-02'), ('0001-01-01'),
-('1001-00-00'), ('1001-01-01'), ('1002-00-00'), ('2001-01-01');
-SELECT * FROM t1 WHERE a < '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a <= '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a >= '1001-01-01';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-01-01';
-a
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-01-01';
-a
-1001-01-01
-SELECT * FROM t1 WHERE a < '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-SELECT * FROM t1 WHERE a <= '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a >= '1001-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-00-00';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-00-00';
-a
-1001-00-00
-# Disabling warnings for the invalid date
-SELECT * FROM t1 WHERE a < '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a <= '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a >= '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a > '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a = '1999-02-31';
-a
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-a
-0001-01-01
-1001-00-00
-1001-01-01
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02 range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 range a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL,p1001-01-01 range a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1001-01-01 system a NULL NULL NULL 1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02 range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02 range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL,p1001-01-01 range a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL,p1001-01-01 range a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL ref a a 4 const 1 Using index
-# Disabling warnings for the invalid date
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 range a a 4 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 range a a 4 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL index a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL index a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL ref a a 4 const 1 Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 range a a 4 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 range a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p1001-01-01 index a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p1001-01-01 range a a 4 NULL 3 Using where; Using index
-# test without index
-ALTER TABLE t1 DROP KEY a;
-SELECT * FROM t1 WHERE a < '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a <= '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a >= '1001-01-01';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-01-01';
-a
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-01-01';
-a
-1001-01-01
-SELECT * FROM t1 WHERE a < '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-SELECT * FROM t1 WHERE a <= '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a >= '1001-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-00-00';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-00-00';
-a
-1001-00-00
-# Disabling warnings for the invalid date
-SELECT * FROM t1 WHERE a < '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a <= '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a >= '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a > '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a = '1999-02-31';
-a
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-a
-0001-01-01
-1001-00-00
-1001-01-01
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL,p1001-01-01 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL ALL NULL NULL NULL NULL 4 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1001-01-01 system NULL NULL NULL NULL 1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL,p1001-01-01 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL,p1001-01-01 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL ALL NULL NULL NULL NULL 3 Using where
-# Disabling warnings for the invalid date
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL ALL NULL NULL NULL NULL 4 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL ALL NULL NULL NULL NULL 4 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL ALL NULL NULL NULL NULL 3 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p1001-01-01 ALL NULL NULL NULL NULL 4 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p1001-01-01 ALL NULL NULL NULL NULL 5 Using where
-DROP TABLE t1;
-# TO_SECONDS, test of LIST and index
-CREATE TABLE t1 (a DATE, KEY(a))
-PARTITION BY LIST (TO_SECONDS(a))
-(PARTITION `p0001-01-01` VALUES IN (TO_SECONDS('0001-01-01')),
-PARTITION `p2001-01-01` VALUES IN (TO_SECONDS('2001-01-01')),
-PARTITION `pNULL` VALUES IN (NULL),
-PARTITION `p0000-01-02` VALUES IN (TO_SECONDS('0000-01-02')),
-PARTITION `p1001-01-01` VALUES IN (TO_SECONDS('1001-01-01')));
-INSERT INTO t1 VALUES ('0000-00-00'), ('0000-01-02'), ('0001-01-01'),
-('1001-00-00'), ('1001-01-01'), ('1002-00-00'), ('2001-01-01');
-SELECT * FROM t1 WHERE a < '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a <= '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a >= '1001-01-01';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-01-01';
-a
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-01-01';
-a
-1001-01-01
-SELECT * FROM t1 WHERE a < '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-SELECT * FROM t1 WHERE a <= '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a >= '1001-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-00-00';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-00-00';
-a
-1001-00-00
-# Disabling warnings for the invalid date
-SELECT * FROM t1 WHERE a < '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a <= '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a >= '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a > '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a = '1999-02-31';
-a
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-a
-0001-01-01
-1001-00-00
-1001-01-01
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02 range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 range a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL,p1001-01-01 range a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1001-01-01 system a NULL NULL NULL 1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02 range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02 range a a 4 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL,p1001-01-01 range a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL,p1001-01-01 range a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL ref a a 4 const 1 Using index
-# Disabling warnings for the invalid date
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 range a a 4 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 range a a 4 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL index a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL index a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL ref a a 4 const 1 Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 range a a 4 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 range a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p1001-01-01 index a a 4 NULL 4 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p1001-01-01 range a a 4 NULL 3 Using where; Using index
-# test without index
-ALTER TABLE t1 DROP KEY a;
-SELECT * FROM t1 WHERE a < '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a <= '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a >= '1001-01-01';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-01-01';
-a
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-01-01';
-a
-1001-01-01
-SELECT * FROM t1 WHERE a < '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-SELECT * FROM t1 WHERE a <= '1001-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-SELECT * FROM t1 WHERE a >= '1001-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a > '1001-00-00';
-a
-1001-01-01
-1002-00-00
-2001-01-01
-SELECT * FROM t1 WHERE a = '1001-00-00';
-a
-1001-00-00
-# Disabling warnings for the invalid date
-SELECT * FROM t1 WHERE a < '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a <= '1999-02-31';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a >= '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a > '1999-02-31';
-a
-2001-01-01
-SELECT * FROM t1 WHERE a = '1999-02-31';
-a
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-a
-0000-00-00
-0000-01-02
-0001-01-01
-1001-00-00
-1001-01-01
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-a
-1001-00-00
-1001-01-01
-1002-00-00
-SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-a
-0001-01-01
-1001-00-00
-1001-01-01
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL,p1001-01-01 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL ALL NULL NULL NULL NULL 4 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1001-01-01 system NULL NULL NULL NULL 1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL,p1001-01-01 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL,p1001-01-01 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL ALL NULL NULL NULL NULL 3 Using where
-# Disabling warnings for the invalid date
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL ALL NULL NULL NULL NULL 4 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2001-01-01,pNULL ALL NULL NULL NULL NULL 4 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1999-02-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL ALL NULL NULL NULL NULL 3 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pNULL,p1001-01-01 ALL NULL NULL NULL NULL 4 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0001-01-01,pNULL,p1001-01-01 ALL NULL NULL NULL NULL 5 Using where
-DROP TABLE t1;
-# Test with DATETIME column NOT NULL
-CREATE TABLE t1 (
-a int(10) unsigned NOT NULL,
-b DATETIME NOT NULL,
-PRIMARY KEY (a, b)
-) PARTITION BY RANGE (TO_DAYS(b))
-(PARTITION p20090401 VALUES LESS THAN (TO_DAYS('2009-04-02')),
-PARTITION p20090402 VALUES LESS THAN (TO_DAYS('2009-04-03')),
-PARTITION p20090403 VALUES LESS THAN (TO_DAYS('2009-04-04')),
-PARTITION p20090404 VALUES LESS THAN (TO_DAYS('2009-04-05')),
-PARTITION p20090405 VALUES LESS THAN MAXVALUE);
-INSERT INTO t1 VALUES (1, '2009-01-01'), (1, '2009-04-01'), (2, '2009-04-01'),
-(1, '2009-04-02'), (2, '2009-04-02'), (1, '2009-04-02 23:59:59'),
-(1, '2009-04-03'), (2, '2009-04-03'), (1, '2009-04-04'), (2, '2009-04-04'),
-(1, '2009-04-05'), (1, '2009-04-06'), (1, '2009-04-07');
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 9 NULL 6 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 index NULL PRIMARY 9 NULL 8 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 index NULL PRIMARY 9 NULL 2 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b < CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 9 NULL 6 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b <= CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 9 NULL 6 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b = CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090402 index NULL PRIMARY 9 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b >= CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 13 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b > CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 9 NULL 6 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 index NULL PRIMARY 9 NULL 8 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 index NULL PRIMARY 9 NULL 2 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 9 NULL 6 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 index NULL PRIMARY 9 NULL 8 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 index NULL PRIMARY 9 NULL 2 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 9 NULL 6 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 9 NULL 6 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090402 index NULL PRIMARY 9 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 13 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 9 NULL 6 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 index NULL PRIMARY 9 NULL 8 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 index NULL PRIMARY 9 NULL 2 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b < CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 index NULL PRIMARY 9 NULL 8 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b <= CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 index NULL PRIMARY 9 NULL 8 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b = CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 index NULL PRIMARY 9 NULL 2 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b >= CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b > CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b < CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 9 NULL 6 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b <= CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 9 NULL 6 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b = CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090402 index NULL PRIMARY 9 NULL 3 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b >= CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 13 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b > CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403,p20090404,p20090405 index NULL PRIMARY 9 NULL 13 Using where; Using index
-DROP TABLE t1;
-# Test with DATE column NOT NULL
-CREATE TABLE t1 (
-a int(10) unsigned NOT NULL,
-b DATE NOT NULL,
-PRIMARY KEY (a, b)
-) PARTITION BY RANGE (TO_DAYS(b))
-(PARTITION p20090401 VALUES LESS THAN (TO_DAYS('2009-04-02')),
-PARTITION p20090402 VALUES LESS THAN (TO_DAYS('2009-04-03')),
-PARTITION p20090403 VALUES LESS THAN (TO_DAYS('2009-04-04')),
-PARTITION p20090404 VALUES LESS THAN (TO_DAYS('2009-04-05')),
-PARTITION p20090405 VALUES LESS THAN MAXVALUE);
-INSERT INTO t1 VALUES (1, '2009-01-01'), (1, '2009-04-01'), (2, '2009-04-01'),
-(1, '2009-04-02'), (2, '2009-04-02'), (1, '2009-04-03'), (2, '2009-04-03'),
-(1, '2009-04-04'), (2, '2009-04-04'), (1, '2009-04-05'), (1, '2009-04-06'),
-(1, '2009-04-07');
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 7 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 index NULL PRIMARY 7 NULL 7 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 index NULL PRIMARY 7 NULL 2 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 7 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090404,p20090405 index NULL PRIMARY 7 NULL 8 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b < CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 7 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b <= CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 7 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b = CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b >= CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 7 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b > CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 7 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 7 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 index NULL PRIMARY 7 NULL 7 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 index NULL PRIMARY 7 NULL 2 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 7 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090404,p20090405 index NULL PRIMARY 7 NULL 8 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 7 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 index NULL PRIMARY 7 NULL 7 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 index NULL PRIMARY 7 NULL 2 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 7 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090404,p20090405 index NULL PRIMARY 7 NULL 8 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 7 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 7 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 7 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 7 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 7 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 index NULL PRIMARY 7 NULL 7 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 index NULL PRIMARY 7 NULL 2 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 7 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090404,p20090405 index NULL PRIMARY 7 NULL 8 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b < CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 index NULL PRIMARY 7 NULL 7 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b <= CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 index NULL PRIMARY 7 NULL 7 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b = CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b >= CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090404,p20090405 index NULL PRIMARY 7 NULL 8 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b > CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090404,p20090405 index NULL PRIMARY 7 NULL 8 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b < CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 7 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b <= CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 index NULL PRIMARY 7 NULL 5 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b = CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b >= CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 7 NULL 10 Using where; Using index
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b > CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 index NULL PRIMARY 7 NULL 10 Using where; Using index
-DROP TABLE t1;
-# Test with DATETIME column NULL
-CREATE TABLE t1 (
-a int(10) unsigned NOT NULL,
-b DATETIME NULL
-) PARTITION BY RANGE (TO_DAYS(b))
-(PARTITION p20090401 VALUES LESS THAN (TO_DAYS('2009-04-02')),
-PARTITION p20090402 VALUES LESS THAN (TO_DAYS('2009-04-03')),
-PARTITION p20090403 VALUES LESS THAN (TO_DAYS('2009-04-04')),
-PARTITION p20090404 VALUES LESS THAN (TO_DAYS('2009-04-05')),
-PARTITION p20090405 VALUES LESS THAN MAXVALUE);
-INSERT INTO t1 VALUES (1, '2009-01-01'), (1, '2009-04-01'), (2, '2009-04-01'),
-(1, '2009-04-02'), (2, '2009-04-02'), (1, '2009-04-02 23:59:59'),
-(1, '2009-04-03'), (2, '2009-04-03'), (1, '2009-04-04'), (2, '2009-04-04'),
-(1, '2009-04-05'), (1, '2009-04-06'), (1, '2009-04-07');
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 ALL NULL NULL NULL NULL 8 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 ALL NULL NULL NULL NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b < CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b <= CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b = CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090402 ALL NULL NULL NULL NULL 3 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b >= CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 13 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b > CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 ALL NULL NULL NULL NULL 8 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 ALL NULL NULL NULL NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 ALL NULL NULL NULL NULL 8 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 ALL NULL NULL NULL NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090402 ALL NULL NULL NULL NULL 3 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 13 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 ALL NULL NULL NULL NULL 8 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 ALL NULL NULL NULL NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b < CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 ALL NULL NULL NULL NULL 8 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b <= CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 ALL NULL NULL NULL NULL 8 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b = CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 ALL NULL NULL NULL NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b >= CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b > CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b < CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b <= CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 6 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b = CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090402 ALL NULL NULL NULL NULL 3 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b >= CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 13 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b > CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 13 Using where
-DROP TABLE t1;
-# Test with DATE column NULL
-CREATE TABLE t1 (
-a int(10) unsigned NOT NULL,
-b DATE NULL
-) PARTITION BY RANGE (TO_DAYS(b))
-(PARTITION p20090401 VALUES LESS THAN (TO_DAYS('2009-04-02')),
-PARTITION p20090402 VALUES LESS THAN (TO_DAYS('2009-04-03')),
-PARTITION p20090403 VALUES LESS THAN (TO_DAYS('2009-04-04')),
-PARTITION p20090404 VALUES LESS THAN (TO_DAYS('2009-04-05')),
-PARTITION p20090405 VALUES LESS THAN MAXVALUE);
-INSERT INTO t1 VALUES (1, '2009-01-01'), (1, '2009-04-01'), (2, '2009-04-01'),
-(1, '2009-04-02'), (2, '2009-04-02'), (1, '2009-04-03'), (2, '2009-04-03'),
-(1, '2009-04-04'), (2, '2009-04-04'), (1, '2009-04-05'), (1, '2009-04-06'),
-(1, '2009-04-07');
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 ALL NULL NULL NULL NULL 7 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 ALL NULL NULL NULL NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > CAST('2009-04-03' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090404,p20090405 ALL NULL NULL NULL NULL 8 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b < CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b <= CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b = CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b >= CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b > CAST('2009-04-02 23:59:59' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 ALL NULL NULL NULL NULL 7 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 ALL NULL NULL NULL NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > CAST('2009-04-03' AS DATE);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090404,p20090405 ALL NULL NULL NULL NULL 8 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 ALL NULL NULL NULL NULL 7 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 ALL NULL NULL NULL NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > '2009-04-03 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090404,p20090405 ALL NULL NULL NULL NULL 8 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > '2009-04-02 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b <= '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 ALL NULL NULL NULL NULL 7 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b = '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090403 ALL NULL NULL NULL NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b >= '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b > '2009-04-03';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090404,p20090405 ALL NULL NULL NULL NULL 8 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b < CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 ALL NULL NULL NULL NULL 7 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b <= CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402,p20090403 ALL NULL NULL NULL NULL 7 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b = CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b >= CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090404,p20090405 ALL NULL NULL NULL NULL 8 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b > CAST('2009-04-03 00:00:01' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090404,p20090405 ALL NULL NULL NULL NULL 8 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b < CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b <= CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090402 ALL NULL NULL NULL NULL 5 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b = CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b >= CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE b > CAST('2009-04-02 23:59:58' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p20090401,p20090403,p20090404,p20090405 ALL NULL NULL NULL NULL 10 Using where
-DROP TABLE t1;
-# For better code coverage of the patch
-CREATE TABLE t1 (
-a int(10) unsigned NOT NULL,
-b DATE
-) PARTITION BY RANGE ( TO_DAYS(b) )
-(PARTITION p20090401 VALUES LESS THAN (TO_DAYS('2009-04-02')),
-PARTITION p20090402 VALUES LESS THAN (TO_DAYS('2009-04-03')),
-PARTITION p20090403 VALUES LESS THAN (TO_DAYS('2009-04-04')),
-PARTITION p20090404 VALUES LESS THAN (TO_DAYS('2009-04-05')),
-PARTITION p20090405 VALUES LESS THAN MAXVALUE);
-INSERT INTO t1 VALUES (1, '2009-01-01'), (2, NULL);
-# test with an invalid date, which lead to item->null_value is set.
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE b < CAST('2009-04-99' AS DATETIME);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1292 Incorrect datetime value: '2009-04-99'
-DROP TABLE t1;
-CREATE TABLE t1
-(a INT NOT NULL AUTO_INCREMENT,
-b DATETIME,
-PRIMARY KEY (a,b),
-KEY (b))
-PARTITION BY RANGE (to_days(b))
-(PARTITION p0 VALUES LESS THAN (733681) COMMENT = 'LESS THAN 2008-10-01',
-PARTITION p1 VALUES LESS THAN (733712) COMMENT = 'LESS THAN 2008-11-01',
-PARTITION pX VALUES LESS THAN MAXVALUE);
-SELECT a,b FROM t1 WHERE b >= '2008-12-01' AND b < '2009-12-00';
-a b
-DROP TABLE t1;
-create table t1 ( a int not null) partition by hash(a) partitions 2;
-insert into t1 values (1),(2),(3);
-explain select * from t1 where a=5 and a=6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-drop table t1;
-create table t1 (
-a int(11) not null
-) partition by hash (a) partitions 2;
-insert into t1 values (1),(2),(3);
-explain partitions select * from t1 where a=1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a=2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-explain partitions select * from t1 where a=1 or a=2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 3 Using where
-create table t2 (
-a int not null,
-b int not null
-) partition by key(a,b) partitions 2;
-insert into t2 values (1,1),(2,2),(3,3);
-explain partitions select * from t2 where a=1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t2 where b=1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t2 where a=1 and b=1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0 ALL NULL NULL NULL NULL 2 Using where
-create table t3 (
-a int
-)
-partition by range (a*1) (
-partition p0 values less than (10),
-partition p1 values less than (20)
-);
-insert into t3 values (5),(15);
-explain partitions select * from t3 where a=11;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t3 where a=10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t3 where a=20;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t3 where a=30;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-create table t4 (a int not null, b int not null) partition by LIST (a+b) (
-partition p0 values in (12),
-partition p1 values in (14)
-);
-insert into t4 values (10,2), (10,4);
-explain partitions select * from t4 where (a=10 and b=1) or (a=10 and b=2);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 p0 system NULL NULL NULL NULL 1
-explain partitions select * from t4
-where (a=10 and b=1) or (a=10 and b=2) or (a=10 and b = 3);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 p0 system NULL NULL NULL NULL 1
-explain partitions select * from t4 where (a=10 and b=2) or (a=10 and b=3)
-or (a=10 and b = 4);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 p0,p1 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t4 where (a=10 and b=1) or a=11;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 p0,p1 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t4 where (a=10 and b=2) or a=11;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 p0,p1 ALL NULL NULL NULL NULL 2 Using where
-drop table t1, t2, t3, t4;
-create table t5 (a int not null, b int not null,
-c int not null, d int not null)
-partition by LIST(a+b) subpartition by HASH (c+d) subpartitions 2
-(
-partition p0 values in (12),
-partition p1 values in (14)
-);
-insert into t5 values (10,2,0,0), (10,4,0,0), (10,2,0,1), (10,4,0,1);
-explain partitions select * from t5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t5 p0_p0sp0,p0_p0sp1,p1_p1sp0,p1_p1sp1 ALL NULL NULL NULL NULL 4
-explain partitions select * from t5
-where (a=10 and b=1) or (a=10 and b=2) or (a=10 and b = 3);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t5 p0_p0sp0,p0_p0sp1 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t5 where (a=10 and b=2) or (a=10 and b=3)
-or (a=10 and b = 4);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t5 p0_p0sp0,p0_p0sp1,p1_p1sp0,p1_p1sp1 ALL NULL NULL NULL NULL 4 Using where
-explain partitions select * from t5 where (c=1 and d=1);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t5 p0_p0sp0,p1_p1sp0 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t5 where (c=2 and d=1);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t5 p0_p0sp1,p1_p1sp1 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t5 where (a=10 and b=2 and c=1 and d=1) or
-(c=2 and d=1);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t5 p0_p0sp0,p0_p0sp1,p1_p1sp1 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t5 where (a=10 and b=2 and c=1 and d=1) or
-(b=2 and c=2 and d=1);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t5 p0_p0sp0,p0_p0sp1,p1_p1sp1 ALL NULL NULL NULL NULL 3 Using where
-create table t6 (a int not null) partition by LIST(a) (
-partition p1 values in (1),
-partition p3 values in (3),
-partition p5 values in (5),
-partition p7 values in (7),
-partition p9 values in (9)
-);
-insert into t6 values (1),(3),(5);
-explain partitions select * from t6 where a < 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t6 where a <= 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t6 p1 system NULL NULL NULL NULL 1
-explain partitions select * from t6 where a > 9;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t6 where a >= 9;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t6 where a > 0 and a < 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t6 p1,p3 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t6 where a > 5 and a < 12;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t6 where a > 3 and a < 8 ;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t6 p5,p7 system NULL NULL NULL NULL 1
-explain partitions select * from t6 where a >= 0 and a <= 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t6 p1,p3,p5 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t6 where a >= 5 and a <= 12;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t6 p5,p7,p9 system NULL NULL NULL NULL 1
-explain partitions select * from t6 where a >= 3 and a <= 8;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t6 p3,p5,p7 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t6 where a > 3 and a < 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-drop table t6;
-create table t6 (a int unsigned not null) partition by LIST(a) (
-partition p1 values in (1),
-partition p3 values in (3),
-partition p5 values in (5),
-partition p7 values in (7),
-partition p9 values in (9)
-);
-insert into t6 values (1),(3),(5);
-explain partitions select * from t6 where a < 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t6 where a <= 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t6 p1 system NULL NULL NULL NULL 1
-explain partitions select * from t6 where a > 9;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t6 where a >= 9;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t6 where a > 0 and a < 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t6 p1,p3 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t6 where a > 5 and a < 12;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t6 where a > 3 and a < 8 ;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t6 p5,p7 system NULL NULL NULL NULL 1
-explain partitions select * from t6 where a >= 0 and a <= 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t6 p1,p3,p5 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t6 where a >= 5 and a <= 12;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t6 p5,p7,p9 system NULL NULL NULL NULL 1
-explain partitions select * from t6 where a >= 3 and a <= 8;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t6 p3,p5,p7 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t6 where a > 3 and a < 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-create table t7 (a int not null) partition by RANGE(a) (
-partition p10 values less than (10),
-partition p30 values less than (30),
-partition p50 values less than (50),
-partition p70 values less than (70),
-partition p90 values less than (90)
-);
-insert into t7 values (10),(30),(50);
-explain partitions select * from t7 where a < 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a < 9;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a <= 9;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a = 9;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a >= 9;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p10,p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a > 9;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a < 10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a <= 10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p10,p30 system NULL NULL NULL NULL 1
-explain partitions select * from t7 where a = 10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p30 system NULL NULL NULL NULL 1
-explain partitions select * from t7 where a >= 10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a > 10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a < 89;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p10,p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a <= 89;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p10,p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a = 89;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a > 89;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a >= 89;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a < 90;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p10,p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a <= 90;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p10,p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a = 90;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a > 90;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a >= 90;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a > 91;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a > 11 and a < 29;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-drop table t7;
-create table t7 (a int unsigned not null) partition by RANGE(a) (
-partition p10 values less than (10),
-partition p30 values less than (30),
-partition p50 values less than (50),
-partition p70 values less than (70),
-partition p90 values less than (90)
-);
-insert into t7 values (10),(30),(50);
-explain partitions select * from t7 where a < 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a < 9;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a <= 9;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a = 9;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a >= 9;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p10,p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a > 9;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a < 10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a <= 10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p10,p30 system NULL NULL NULL NULL 1
-explain partitions select * from t7 where a = 10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p30 system NULL NULL NULL NULL 1
-explain partitions select * from t7 where a >= 10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a > 10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a < 89;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p10,p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a <= 89;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p10,p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a = 89;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a > 89;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a >= 89;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a < 90;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p10,p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a <= 90;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t7 p10,p30,p50,p70,p90 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t7 where a = 90;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a > 90;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a >= 90;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a > 91;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t7 where a > 11 and a < 29;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-create table t8 (a date not null) partition by RANGE(YEAR(a)) (
-partition p0 values less than (1980),
-partition p1 values less than (1990),
-partition p2 values less than (2000)
-);
-insert into t8 values ('1985-05-05'),('1995-05-05');
-explain partitions select * from t8 where a < '1980-02-02';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-create table t9 (a date not null) partition by RANGE(TO_DAYS(a)) (
-partition p0 values less than (732299), -- 2004-12-19
-partition p1 values less than (732468), -- 2005-06-06
-partition p2 values less than (732664) -- 2005-12-19
-);
-insert into t9 values ('2005-05-05'), ('2005-04-04');
-explain partitions select * from t9 where a < '2004-12-19';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t9 where a <= '2004-12-19';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t9 p0,p1 ALL NULL NULL NULL NULL 2 Using where
-drop table t5,t6,t7,t8,t9;
-create table t1 (
-a1 int not null
-)
-partition by range (a1) (
-partition p0 values less than (3),
-partition p1 values less than (6),
-partition p2 values less than (9)
-);
-insert into t1 values (1),(2),(3);
-explain partitions select * from t1 where a1 > 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t1 where a1 >= 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2 system NULL NULL NULL NULL 1
-explain partitions select * from t1 where a1 < 3 and a1 > 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-drop table t1;
-create table t3 (a int, b int)
-partition by list(a) subpartition by hash(b) subpartitions 4 (
-partition p0 values in (1),
-partition p1 values in (2),
-partition p2 values in (3),
-partition p3 values in (4)
-);
-insert into t3 values (1,1),(2,2),(3,3);
-explain partitions select * from t3 where a=2 or b=1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 p0_p0sp1,p1_p1sp0,p1_p1sp1,p1_p1sp2,p1_p1sp3,p2_p2sp1,p3_p3sp1 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t3 where a=4 or b=2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 p0_p0sp2,p1_p1sp2,p2_p2sp2,p3_p3sp0,p3_p3sp1,p3_p3sp2,p3_p3sp3 system NULL NULL NULL NULL 1
-explain partitions select * from t3 where (a=2 or b=1) and (a=4 or b=2) ;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 p1_p1sp2,p3_p3sp1 system NULL NULL NULL NULL 1
-drop table t3;
-create table t1 (a int) partition by hash(a) partitions 2;
-insert into t1 values (1),(2);
-explain partitions select * from t1 where a is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t1 where a is not null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 2 Using where
-drop table t1;
-create table t1 (a int not null, b int not null, key(a), key(b))
-partition by hash(a) partitions 4;
-insert into t1 values (1,1),(2,2),(3,3),(4,4);
-insert into t1 values (5,5),(6,6),(7,7),(8,8);
-explain partitions
-select * from t1 X, t1 Y
-where X.b = Y.b and (X.a=1 or X.a=2) and (Y.a=2 or Y.a=3);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE X p1,p2 range a,b a 4 NULL 4 Using where
-1 SIMPLE Y p2,p3 ref a,b b 4 test.X.b 2 Using where
-explain partitions
-select * from t1 X, t1 Y where X.a = Y.a and (X.a=1 or X.a=2);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE X p1,p2 range a a 4 NULL 4 Using where
-1 SIMPLE Y p1,p2 ref a a 4 test.X.a 2
-drop table t1;
-create table t1 (a int) partition by hash(a) partitions 20;
-insert into t1 values (1),(2),(3);
-explain partitions select * from t1 where a > 1 and a < 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 system NULL NULL NULL NULL 1
-explain partitions select * from t1 where a >= 1 and a < 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a > 1 and a <= 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2,p3 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a >= 1 and a <= 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2,p3 ALL NULL NULL NULL NULL 3 Using where
-drop table t1;
-create table t1 (a int, b int)
-partition by list(a) subpartition by hash(b) subpartitions 20
-(
-partition p0 values in (0),
-partition p1 values in (1),
-partition p2 values in (2),
-partition p3 values in (3)
-);
-insert into t1 values (1,1),(2,2),(3,3);
-explain partitions select * from t1 where b > 1 and b < 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0_p0sp2,p1_p1sp2,p2_p2sp2,p3_p3sp2 system NULL NULL NULL NULL 1
-explain partitions select * from t1 where b > 1 and b < 3 and (a =1 or a =2);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1_p1sp2,p2_p2sp2 system NULL NULL NULL NULL 1
-drop table t1;
-create table t1 (a int) partition by list(a) (
-partition p0 values in (1,2),
-partition p1 values in (3,4)
-);
-insert into t1 values (1),(1),(2),(2),(3),(4),(3),(4);
-flush status;
-update t1 set a=100 where a=5;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 0
-flush status;
-update t1 set a=100 where a+1=5+1;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 10
-flush status;
-delete from t1 where a=5;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 0
-flush status;
-delete from t1 where a+1=5+1;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 10
-create table t2 like t1;
-insert into t2 select * from t2;
-flush status;
-update t1,t2 set t1.a=1000, t2.a=1000 where t1.a=5 and t2.a=5;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 0
-flush status;
-delete t1,t2 from t1, t2 where t1.a=5 and t2.a=5;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 0
-drop table t1,t2;
-CREATE TABLE `t1` (
-`a` int(11) default NULL
-);
-INSERT INTO t1 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-CREATE TABLE `t2` (
-`a` int(11) default NULL,
-KEY `a` (`a`)
-) ;
-insert into t2 select A.a + 10*(B.a + 10* C.a) from t1 A, t1 B, t1 C ;
-insert into t1 select a from t2;
-drop table t2;
-CREATE TABLE `t2` (
-`a` int(11) default NULL,
-`b` int(11) default NULL
-)
-PARTITION BY RANGE (a) (
-PARTITION p0 VALUES LESS THAN (200),
-PARTITION p1 VALUES LESS THAN (400),
-PARTITION p2 VALUES LESS THAN (600),
-PARTITION p3 VALUES LESS THAN (800),
-PARTITION p4 VALUES LESS THAN (1001));
-insert into t2 select a,1 from t1 where a < 200;
-insert into t2 select a,2 from t1 where a >= 200 and a < 400;
-insert into t2 select a,3 from t1 where a >= 400 and a < 600;
-insert into t2 select a,4 from t1 where a >= 600 and a < 800;
-insert into t2 select a,5 from t1 where a >= 800 and a < 1001;
-explain partitions select * from t2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1,p2,p3,p4 ALL NULL NULL NULL NULL 1010
-explain partitions select * from t2 where a < 801 and a > 200;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p1,p2,p3,p4 ALL NULL NULL NULL NULL 800 Using where
-explain partitions select * from t2 where a < 801 and a > 800;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p4 ALL NULL NULL NULL NULL 200 Using where
-explain partitions select * from t2 where a > 600;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p3,p4 ALL NULL NULL NULL NULL 400 Using where
-explain partitions select * from t2 where a > 600 and b = 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p3,p4 ALL NULL NULL NULL NULL 400 Using where
-explain partitions select * from t2 where a > 600 and b = 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p3,p4 ALL NULL NULL NULL NULL 400 Using where
-explain partitions select * from t2 where a > 600 and b = 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p3,p4 ALL NULL NULL NULL NULL 400 Using where
-explain partitions select * from t2 where b = 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1,p2,p3,p4 ALL NULL NULL NULL NULL 1010 Using where
-flush status;
-update t2 set b = 100 where b = 6;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 1015
-flush status;
-update t2 set a = 1002 where a = 1001;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 0
-flush status;
-update t2 set b = 6 where a = 600;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 201
-flush status;
-update t2 set b = 6 where a > 600 and a < 800;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 201
-flush status;
-delete from t2 where a > 600;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 402
-drop table t2;
-CREATE TABLE `t2` (
-`a` int(11) default NULL,
-`b` int(11) default NULL,
-index (b)
-)
-PARTITION BY RANGE (a) (
-PARTITION p0 VALUES LESS THAN (200),
-PARTITION p1 VALUES LESS THAN (400),
-PARTITION p2 VALUES LESS THAN (600),
-PARTITION p3 VALUES LESS THAN (800),
-PARTITION p4 VALUES LESS THAN (1001));
-insert into t2 select a,1 from t1 where a < 100;
-insert into t2 select a,2 from t1 where a >= 200 and a < 300;
-insert into t2 select a,3 from t1 where a >= 300 and a < 400;
-insert into t2 select a,4 from t1 where a >= 400 and a < 500;
-insert into t2 select a,5 from t1 where a >= 500 and a < 600;
-insert into t2 select a,6 from t1 where a >= 600 and a < 700;
-insert into t2 select a,7 from t1 where a >= 700 and a < 800;
-insert into t2 select a,8 from t1 where a >= 800 and a < 900;
-insert into t2 select a,9 from t1 where a >= 900 and a < 1001;
-explain partitions select * from t2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1,p2,p3,p4 ALL NULL NULL NULL NULL 910
-explain partitions select * from t2 where a = 101;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0 ALL NULL NULL NULL NULL 110 Using where
-explain partitions select * from t2 where a = 550;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p2 ALL NULL NULL NULL NULL 200 Using where
-explain partitions select * from t2 where a = 833;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p4 ALL NULL NULL NULL NULL 200 Using where
-explain partitions select * from t2 where (a = 100 OR a = 900);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p4 ALL NULL NULL NULL NULL 310 Using where
-explain partitions select * from t2 where (a > 100 AND a < 600);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1,p2 ALL NULL NULL NULL NULL 510 Using where
-explain partitions select * from t2 where b = 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1,p2,p3,p4 ref b b 5 const 76
-explain extended select * from t2 where b = 6;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ref b b 5 const 76 100.00
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`b` = 6
-explain partitions select * from t2 where b = 6;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1,p2,p3,p4 ref b b 5 const 76
-explain extended select * from t2 where b in (1,3,5);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL b NULL NULL NULL 910 40.66 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`b` in (1,3,5)
-explain partitions select * from t2 where b in (1,3,5);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1,p2,p3,p4 ALL b NULL NULL NULL 910 Using where
-explain extended select * from t2 where b in (2,4,6);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL b NULL NULL NULL 910 25.05 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`b` in (2,4,6)
-explain partitions select * from t2 where b in (2,4,6);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1,p2,p3,p4 ALL b NULL NULL NULL 910 Using where
-explain extended select * from t2 where b in (7,8,9);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL b NULL NULL NULL 910 36.70 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`b` in (7,8,9)
-explain partitions select * from t2 where b in (7,8,9);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1,p2,p3,p4 ALL b NULL NULL NULL 910 Using where
-explain extended select * from t2 where b > 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL b NULL NULL NULL 910 44.84 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`b` > 5
-explain partitions select * from t2 where b > 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1,p2,p3,p4 ALL b NULL NULL NULL 910 Using where
-explain extended select * from t2 where b > 5 and b < 8;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL b NULL NULL NULL 910 22.09 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`b` > 5 and `test`.`t2`.`b` < 8
-explain partitions select * from t2 where b > 5 and b < 8;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1,p2,p3,p4 ALL b NULL NULL NULL 910 Using where
-explain extended select * from t2 where b > 5 and b < 7;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 range b b 5 NULL 76 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`b` > 5 and `test`.`t2`.`b` < 7
-explain partitions select * from t2 where b > 5 and b < 7;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1,p2,p3,p4 range b b 5 NULL 76 Using where
-explain extended select * from t2 where b > 0 and b < 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL b NULL NULL NULL 910 41.65 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`b` > 0 and `test`.`t2`.`b` < 5
-explain partitions select * from t2 where b > 0 and b < 5;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1,p2,p3,p4 ALL b NULL NULL NULL 910 Using where
-flush status;
-update t2 set a = 111 where b = 10;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 0
-show status like 'Handler_read_key';
-Variable_name Value
-Handler_read_key 5
-flush status;
-update t2 set a = 111 where b in (5,6);
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 915
-show status like 'Handler_read_key';
-Variable_name Value
-Handler_read_key 0
-flush status;
-update t2 set a = 222 where b = 7;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 0
-show status like 'Handler_read_key';
-Variable_name Value
-Handler_read_key 5
-flush status;
-delete from t2 where b = 7;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 0
-show status like 'Handler_read_key';
-Variable_name Value
-Handler_read_key 5
-flush status;
-delete from t2 where b > 5;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 815
-show status like 'Handler_read_rnd_deleted';
-Variable_name Value
-Handler_read_rnd_deleted 400
-show status like 'Handler_read_key';
-Variable_name Value
-Handler_read_key 0
-show status like 'Handler_read_prev';
-Variable_name Value
-Handler_read_prev 0
-show status like 'Handler_read_next';
-Variable_name Value
-Handler_read_next 0
-flush status;
-delete from t2 where b < 5 or b > 3;
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 515
-show status like 'Handler_read_rnd_deleted';
-Variable_name Value
-Handler_read_rnd_deleted 700
-show status like 'Handler_read_key';
-Variable_name Value
-Handler_read_key 0
-show status like 'Handler_read_prev';
-Variable_name Value
-Handler_read_prev 0
-show status like 'Handler_read_next';
-Variable_name Value
-Handler_read_next 0
-drop table t1, t2;
-create table t1 ( f_int1 mediumint, f_int2 integer)
-partition by list(mod(f_int1,4)) (
-partition p_3 values in (-3),
-partition p_2 values in (-2),
-partition p_1 values in (-1),
-partition p0 values in (0),
-partition p1 values in (1),
-partition p2 values in (2),
-partition p3 values in (3)
-);
-insert into t1 values (9, 9), (8, 8), (7, 7), (6, 6), (5, 5),
-(4, 4), (3, 3), (2, 2), (1, 1);
-select * from t1 where f_int1 between 5 and 15 order by f_int1;
-f_int1 f_int2
-5 5
-6 6
-7 7
-8 8
-9 9
-drop table t1;
-create table t1 (f_int1 integer) partition by list(abs(mod(f_int1,2)))
-subpartition by hash(f_int1) subpartitions 2
-(
-partition part1 values in (0),
-partition part2 values in (1),
-partition part4 values in (null)
-);
-insert into t1 set f_int1 = null;
-select * from t1 where f_int1 is null;
-f_int1
-NULL
-explain partitions select * from t1 where f_int1 is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 part4_part4sp0 system NULL NULL NULL NULL 1
-drop table t1;
-create table t1 (a int not null, b int not null)
-partition by list(a)
-subpartition by hash(b) subpartitions 4
-(
-partition p0 values in (1),
-partition p1 values in (2),
-partition p2 values in (3)
-);
-insert into t1 values (1,1),(1,2),(1,3),(1,4),
-(2,1),(2,2),(2,3),(2,4);
-explain partitions select * from t1 where a=1 AND (b=1 OR b=2);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0_p0sp1,p0_p0sp2 ALL NULL NULL NULL NULL 2 Using where
-drop table t1;
-create table t1 (a int, b int not null)
-partition by list(a)
-subpartition by hash(b) subpartitions 2
-(
-partition p0 values in (1),
-partition p1 values in (2),
-partition p2 values in (3),
-partition pn values in (NULL)
-);
-insert into t1 values (1,1),(1,2),(1,3),(1,4),
-(2,1),(2,2),(2,3),(2,4), (NULL,1);
-explain partitions select * from t1 where a IS NULL AND (b=1 OR b=2);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pn_pnsp0,pn_pnsp1 system NULL NULL NULL NULL 1
-explain partitions select * from t1 where (a IS NULL or a < 1) AND (b=1 OR b=2);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pn_pnsp0,pn_pnsp1 system NULL NULL NULL NULL 1
-explain partitions select * from t1 where (a IS NULL or a < 2) AND (b=1 OR b=2);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0_p0sp0,p0_p0sp1,pn_pnsp0,pn_pnsp1 ALL NULL NULL NULL NULL 5 Using where
-explain partitions select * from t1 where (a IS NULL or a <= 1) AND (b=1 OR b=2);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0_p0sp0,p0_p0sp1,pn_pnsp0,pn_pnsp1 ALL NULL NULL NULL NULL 5 Using where
-drop table t1;
-create table t1 ( a int) partition by list (MOD(a, 10))
-( partition p0 values in (0), partition p1 values in (1),
-partition p2 values in (2), partition p3 values in (3),
-partition p4 values in (4), partition p5 values in (5),
-partition p6 values in (6), partition pn values in (NULL)
-);
-insert into t1 values (NULL), (0),(1),(2),(3),(4),(5),(6);
-explain partitions select * from t1 where a is null or a < 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2,p3,p4,p5,p6,pn ALL NULL NULL NULL NULL 8 Using where
-drop table t1;
-create table t1 (s1 int) partition by list (s1)
-(partition p1 values in (0),
-partition p2 values in (1),
-partition p3 values in (null));
-insert into t1 values (0),(1),(null);
-select count(*) from t1 where s1 < 0 or s1 is null;
-count(*)
-1
-explain partitions select count(*) from t1 where s1 < 0 or s1 is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p3 system NULL NULL NULL NULL 1
-drop table t1;
-create table t1 (a char(32) primary key)
-partition by key()
-partitions 100;
-insert into t1 values ('na');
-select * from t1;
-a
-na
-select * from t1 where a like 'n%';
-a
-na
-drop table t1;
-create table t1 (s1 varchar(15)) partition by key (s1);
-select * from t1 where s1 = 0 or s1 is null;
-s1
-insert into t1 values ('aa'),('bb'),('0');
-explain partitions select * from t1 where s1 = 0 or s1 is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 3 Using where
-drop table t1;
-create table t2 (a int, b int)
-partition by LIST(a)
-subpartition by HASH(b) subpartitions 40
-( partition p_0_long_partition_name values in(1),
-partition p_1_long_partition_name values in(2));
-insert into t2 values (1,1),(2,2);
-explain partitions select * from t2;
-id 1
-select_type SIMPLE
-table t2
-partitions p_0_long_partition_name_p_0_long_partition_namesp0,p_0_long_partition_name_p_0_long_partition_namesp1,p_0_long_partition_name_p_0_long_partition_namesp2,p_0_long_partition_name_p_0_long_partition_namesp3,p_0_long_partition_name_p_0_long_partition_namesp4,p_0_long_partition_name_p_0_long_partition_namesp5,p_0_long_partition_name_p_0_long_partition_namesp6,p_0_long_partition_name_p_0_long_partition_namesp7,p_0_long_partition_name_p_0_long_partition_namesp8,p_0_long_partition_name_p_0_long_partition_namesp9,p_0_long_partition_name_p_0_long_partition_namesp10,p_0_long_partition_name_p_0_long_partition_namesp11,p_0_long_partition_name_p_0_long_partition_namesp12,p_0_long_partition_name_p_0_long_partition_namesp13,p_0_long_partition_name_p_0_long_partition_namesp14,p_0_long_partition_name_p_0_long_partition_namesp15,p_0_long_partition_name_p_0_long_partition_namesp16,p_0_long_partition_name_p_0_long_partition_namesp17,p_0_long_partition_name_p_0_long_partition_namesp18,p_0_long_partition_name_p_0_long_partition_namesp19,p_0_long_partition_name_p_0_long_partition_namesp20,p_0_long_partition_name_p_0_long_partition_namesp21,p_0_long_partition_name_p_0_long_partition_namesp22,p_0_long_partition_name_p_0_long_partition_namesp23,p_0_long_partition_name_p_0_long_partition_namesp24,p_0_long_partition_name_p_0_long_partition_namesp25,p_0_long_partition_name_p_0_long_partition_namesp26,p_0_long_partition_name_p_0_long_partition_namesp27,p_0_long_partition_name_p_0_long_partition_namesp28,p_0_long_partition_name_p_0_long_partition_namesp29,p_0_long_partition_name_p_0_long_partition_namesp30,p_0_long_partition_name_p_0_long_partition_namesp31,p_0_long_partition_name_p_0_long_partition_namesp32,p_0_long_partition_name_p_0_long_partition_namesp33,p_0_long_partition_name_p_0_long_partition_namesp34,p_0_long_partition_name_p_0_long_partition_namesp35,p_0_long_partition_name_p_0_long_partition_namesp36,p_0_long_partition_name_p_0_long_partition_namesp37,p_0_long_partition_name_p_0_long_partition_namesp38,p_0_long_partition_name_p_0_long_partition_namesp39,p_1_long_partition_name_p_1_long_partition_namesp0,p_1_long_partition_name_p_1_long_partition_namesp1,p_1_long_partition_name_p_1_long_partition_namesp2,p_1_long_partition_name_p_1_long_partition_namesp3,p_1_long_partition_name_p_1_long_partition_namesp4,p_1_long_partition_name_p_1_long_partition_namesp5,p_1_long_partition_name_p_1_long_partition_namesp6,p_1_long_partition_name_p_1_long_partition_namesp7,p_1_long_partition_name_p_1_long_partition_namesp8,p_1_long_partition_name_p_1_long_partition_namesp9,p_1_long_partition_name_p_1_long_partition_namesp10,p_1_long_partition_name_p_1_long_partition_namesp11,p_1_long_partition_name_p_1_long_partition_namesp12,p_1_long_partition_name_p_1_long_partition_namesp13,p_1_long_partition_name_p_1_long_partition_namesp14,p_1_long_partition_name_p_1_long_partition_namesp15,p_1_long_partition_name_p_1_long_partition_namesp16,p_1_long_partition_name_p_1_long_partition_namesp17,p_1_long_partition_name_p_1_long_partition_namesp18,p_1_long_partition_name_p_1_long_partition_namesp19,p_1_long_partition_name_p_1_long_partition_namesp20,p_1_long_partition_name_p_1_long_partition_namesp21,p_1_long_partition_name_p_1_long_partition_namesp22,p_1_long_partition_name_p_1_long_partition_namesp23,p_1_long_partition_name_p_1_long_partition_namesp24,p_1_long_partition_name_p_1_long_partition_namesp25,p_1_long_partition_name_p_1_long_partition_namesp26,p_1_long_partition_name_p_1_long_partition_namesp27,p_1_long_partition_name_p_1_long_partition_namesp28,p_1_long_partition_name_p_1_long_partition_namesp29,p_1_long_partition_name_p_1_long_partition_namesp30,p_1_long_partition_name_p_1_long_partition_namesp31,p_1_long_partition_name_p_1_long_partition_namesp32,p_1_long_partition_name_p_1_long_partition_namesp33,p_1_long_partition_name_p_1_long_partition_namesp34,p_1_long_partition_name_p_1_long_partition_namesp35,p_1_long_partition_name_p_1_long_partition_namesp36,p_1_long_partition_name_p_1_long_partition_namesp37,p_1_long_partition_name_p_1_long_partition_namesp38,p_1_long_partition_name_p_1_long_partition_namesp39
-type ALL
-possible_keys NULL
-key NULL
-key_len NULL
-ref NULL
-rows 2
-Extra
-drop table t2;
-create table t1 (s1 int);
-explain partitions select 1 from t1 union all select 2;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 NULL system NULL NULL NULL NULL 0 Const row not found
-2 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-drop table t1;
-create table t1 (a bigint unsigned not null) partition by range(a) (
-partition p0 values less than (10),
-partition p1 values less than (100),
-partition p2 values less than (1000),
-partition p3 values less than (18446744073709551000),
-partition p4 values less than (18446744073709551614)
-);
-insert into t1 values (5),(15),(105),(1005);
-insert into t1 values (18446744073709551000+1);
-insert into t1 values (18446744073709551614-1);
-explain partitions select * from t1 where a < 10;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-explain partitions select * from t1
-where a >= 18446744073709551000-1 and a <= 18446744073709551000+1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p3,p4 ALL NULL NULL NULL NULL 3 Using where
-explain partitions select * from t1
-where a between 18446744073709551001 and 18446744073709551002;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p4 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a = 18446744073709551000;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p4 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a = 18446744073709551613;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p4 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a = 18446744073709551614;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-drop table t1;
-create table t1 (a int)
-partition by range(a) (
-partition p0 values less than (64),
-partition p1 values less than (128),
-partition p2 values less than (255)
-);
-create table t2 (a int)
-partition by range(a+0) (
-partition p0 values less than (64),
-partition p1 values less than (128),
-partition p2 values less than (255)
-);
-insert into t1 values (0x20), (0x20), (0x41), (0x41), (0xFE), (0xFE);
-insert into t2 values (0x20), (0x20), (0x41), (0x41), (0xFE), (0xFE);
-explain partitions select * from t1 where a=0;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t2 where a=0;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a=0xFE;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t2 where a=0xFE;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p2 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a > 0xFE AND a <= 0xFF;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t2 where a > 0xFE AND a <= 0xFF;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t1 where a >= 0xFE AND a <= 0xFF;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t2 where a >= 0xFE AND a <= 0xFF;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p2 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a < 64 AND a >= 63;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t2 where a < 64 AND a >= 63;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a <= 64 AND a >= 63;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 4 Using where
-explain partitions select * from t2 where a <= 64 AND a >= 63;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 p0,p1 ALL NULL NULL NULL NULL 4 Using where
-drop table t1;
-drop table t2;
-create table t1(a bigint unsigned not null) partition by range(a+0) (
-partition p1 values less than (10),
-partition p2 values less than (20),
-partition p3 values less than (2305561538531885056),
-partition p4 values less than (2305561538531950591)
-);
-insert into t1 values (9),(19),(0xFFFF0000FFFF000-1), (0xFFFF0000FFFFFFF-1);
-insert into t1 values (9),(19),(0xFFFF0000FFFF000-1), (0xFFFF0000FFFFFFF-1);
-explain partitions select * from t1 where
-a >= 2305561538531885056-10 and a <= 2305561538531885056-8;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p3 ALL NULL NULL NULL NULL 4 Using where
-explain partitions select * from t1 where
-a > 0xFFFFFFFFFFFFFFEC and a < 0xFFFFFFFFFFFFFFEE;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t1 where a>=0 and a <= 0xFFFFFFFFFFFFFFFF;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2,p3,p4 ALL NULL NULL NULL NULL 8 Using where
-drop table t1;
-create table t1 (a bigint) partition by range(a+0) (
-partition p1 values less than (-1000),
-partition p2 values less than (-10),
-partition p3 values less than (10),
-partition p4 values less than (1000)
-);
-insert into t1 values (-15),(-5),(5),(15),(-15),(-5),(5),(15);
-explain partitions select * from t1 where a>-2 and a <=0;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p3 ALL NULL NULL NULL NULL 4 Using where
-drop table t1;
-CREATE TABLE t1 ( recdate DATETIME NOT NULL )
-PARTITION BY RANGE( TO_DAYS(recdate) ) (
-PARTITION p0 VALUES LESS THAN ( TO_DAYS('2007-03-08') ),
-PARTITION p1 VALUES LESS THAN ( TO_DAYS('2007-04-01') )
-);
-INSERT INTO t1 VALUES ('2007-03-01 12:00:00');
-INSERT INTO t1 VALUES ('2007-03-07 12:00:00');
-INSERT INTO t1 VALUES ('2007-03-08 12:00:00');
-INSERT INTO t1 VALUES ('2007-03-15 12:00:00');
-must use p0 only:
-explain partitions select * from t1 where recdate < '2007-03-08 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 2 Using where
-drop table t1;
-CREATE TABLE t1 ( recdate DATETIME NOT NULL )
-PARTITION BY RANGE( YEAR(recdate) ) (
-PARTITION p0 VALUES LESS THAN (2006),
-PARTITION p1 VALUES LESS THAN (2007)
-);
-INSERT INTO t1 VALUES ('2005-03-01 12:00:00');
-INSERT INTO t1 VALUES ('2005-03-01 12:00:00');
-INSERT INTO t1 VALUES ('2006-03-01 12:00:00');
-INSERT INTO t1 VALUES ('2006-03-01 12:00:00');
-must use p0 only:
-explain partitions select * from t1 where recdate < '2006-01-01 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 2 Using where
-drop table t1;
-#
-# BUG#33730 Full table scan instead selected partitions for query more than 10 partitions
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int)
-partition by range(a+0) (
-partition p0 values less than (64),
-partition p1 values less than (128),
-partition p2 values less than (255)
-);
-insert into t1 select A.a + 10*B.a from t0 A, t0 B;
-explain partitions select * from t1 where a between 10 and 13;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 64 Using where
-explain partitions select * from t1 where a between 10 and 10+33;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1,p2 ALL NULL NULL NULL NULL 100 Using where
-drop table t0, t1;
-#
-# Bug#71095: Wrong results with PARTITION BY LIST COLUMNS()
-#
-CREATE TABLE t1
-(c1 int,
-c2 int,
-c3 int,
-c4 int,
-PRIMARY KEY (c1,c2))
-PARTITION BY LIST COLUMNS (c2)
-(PARTITION p1 VALUES IN (1,2),
-PARTITION p2 VALUES IN (3,4));
-INSERT INTO t1 VALUES (1, 1, 1, 1), (2, 3, 1, 1);
-INSERT INTO t1 VALUES (1, 2, 1, 1), (2, 4, 1, 1);
-SELECT * FROM t1 WHERE c1 = 1 AND c2 < 1;
-c1 c2 c3 c4
-SELECT * FROM t1 WHERE c1 = 1 AND c2 <= 1;
-c1 c2 c3 c4
-1 1 1 1
-SELECT * FROM t1 WHERE c1 = 1 AND c2 = 1;
-c1 c2 c3 c4
-1 1 1 1
-SELECT * FROM t1 WHERE c1 = 1 AND c2 >= 1;
-c1 c2 c3 c4
-1 1 1 1
-1 2 1 1
-SELECT * FROM t1 WHERE c1 = 1 AND c2 > 1;
-c1 c2 c3 c4
-1 2 1 1
-SELECT * FROM t1 WHERE c1 = 1 AND c2 < 3;
-c1 c2 c3 c4
-1 1 1 1
-1 2 1 1
-SELECT * FROM t1 WHERE c1 = 1 AND c2 <= 3;
-c1 c2 c3 c4
-1 1 1 1
-1 2 1 1
-SELECT * FROM t1 WHERE c1 = 2 AND c2 <= 3;
-c1 c2 c3 c4
-2 3 1 1
-SELECT * FROM t1 WHERE c1 = 2 AND c2 = 3;
-c1 c2 c3 c4
-2 3 1 1
-SELECT * FROM t1 WHERE c1 = 2 AND c2 >= 3;
-c1 c2 c3 c4
-2 3 1 1
-2 4 1 1
-SELECT * FROM t1 WHERE c1 = 2 AND c2 > 3;
-c1 c2 c3 c4
-2 4 1 1
-SELECT * FROM t1 WHERE c1 = 2 AND c2 < 4;
-c1 c2 c3 c4
-2 3 1 1
-SELECT * FROM t1 WHERE c1 = 2 AND c2 <= 4;
-c1 c2 c3 c4
-2 3 1 1
-2 4 1 1
-SELECT * FROM t1 WHERE c1 = 2 AND c2 = 4;
-c1 c2 c3 c4
-2 4 1 1
-SELECT * FROM t1 WHERE c1 = 2 AND c2 >= 4;
-c1 c2 c3 c4
-2 4 1 1
-SELECT * FROM t1 WHERE c1 = 2 AND c2 > 4;
-c1 c2 c3 c4
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 1 AND c2 < 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 1 AND c2 <= 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 range PRIMARY PRIMARY 8 NULL 1 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 1 AND c2 = 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 const PRIMARY PRIMARY 8 const,const 1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 1 AND c2 >= 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2 range PRIMARY PRIMARY 8 NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 1 AND c2 > 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2 range PRIMARY PRIMARY 8 NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 1 AND c2 < 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1 range PRIMARY PRIMARY 8 NULL 1 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 1 AND c2 <= 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2 range PRIMARY PRIMARY 8 NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 2 AND c2 <= 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2 range PRIMARY PRIMARY 8 NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 2 AND c2 = 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 const PRIMARY PRIMARY 8 const,const 1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 2 AND c2 >= 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 range PRIMARY PRIMARY 8 NULL 1 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 2 AND c2 > 3;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 range PRIMARY PRIMARY 8 NULL 1 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 2 AND c2 < 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2 range PRIMARY PRIMARY 8 NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 2 AND c2 <= 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p1,p2 range PRIMARY PRIMARY 8 NULL 2 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 2 AND c2 = 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 const PRIMARY PRIMARY 8 const,const 1
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 2 AND c2 >= 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p2 range PRIMARY PRIMARY 8 NULL 1 Using where
-EXPLAIN PARTITIONS SELECT * FROM t1 WHERE c1 = 2 AND c2 > 4;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-DROP TABLE t1;
-#
-# MDEV-6239: Partition pruning is not working as expected in an inner query
-#
-create table t1
-(
-company_id bigint(5),
-dept_id bigint(5),
-emp_id bigint(5),
-emp_name varchar(100),
-primary key (company_id, emp_id)
-) partition by list (company_id) (
-partition p_1000 values in (1000),
-partition p_2000 values in (2000),
-partition p_3000 values in (3000)
-);
-create table t2
-(
-company_id bigint(5),
-dept_id bigint(5),
-dept_name varchar(100),
-primary key (company_id, dept_id)
-) partition by list (company_id) (
-partition p_1000 values in (1000),
-partition p_2000 values in (2000),
-partition p_3000 values in (3000)
-);
-insert into t2 values
-(1000, 10, 'Engineering'),
-(1000, 20, 'Product Management'),
-(1000, 30, 'QA'),
-(2000, 40, 'Support'),
-(2000, 50, 'Professional Services');
-insert into t1 values
-(1000, 10, 1, 'John'),
-(1000, 10, 2, 'Smith'),
-(1000, 20, 3, 'Jacob'),
-(1000, 20, 4, 'Brian'),
-(1000, 30, 5, 'Chris'),
-(1000, 30, 6, 'Ryan'),
-(2000, 40, 7, 'Karin'),
-(2000, 40, 8, 'Jay'),
-(2000, 50, 9, 'Ana'),
-(2000, 50, 10, 'Jessica');
-# Table t2 should have only partition p_1000.
-explain partitions
-select * from t1
-where company_id = 1000
-and dept_id in (select dept_id from t2 where COMPANY_ID = 1000);
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 p_1000 ref PRIMARY PRIMARY 8 const 2 Using index
-1 PRIMARY t1 p_1000 ALL PRIMARY NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-drop table t1,t2;
-#
-# MDEV-9505: Valgrind failure in SEL_ARG::store_min,find_used_partitions,...
-#
-create table t1 (a int, b char(10), c varchar(5), d int)
-partition by range columns(a,b,c)
-subpartition by key (c,d)
-subpartitions 3
-( partition p0 values less than (1,'abc','abc'),
-partition p1 values less than (2,'abc','abc'),
-partition p2 values less than (3,'abc','abc'),
-partition p3 values less than (4,'abc','abc')
-);
-insert into t1 values (1,'a','b',1),(2,'a','b',2),(3,'a','b',3);
-select * from t1 where (a = 1 AND b < 'd' AND (c = 'b' OR (c = 'c' AND d = 1)) OR
-(a = 1 AND b >= 'a' AND (c = 'c' OR (c = 'd' AND d = 2))));
-a b c d
-1 a b 1
-drop table t1;
diff --git a/mysql-test/r/partition_range.result b/mysql-test/r/partition_range.result
deleted file mode 100644
index 7ae029d488c..00000000000
--- a/mysql-test/r/partition_range.result
+++ /dev/null
@@ -1,984 +0,0 @@
-drop table if exists t1, t2;
-#
-# Bug#48229: group by performance issue of partitioned table
-#
-CREATE TABLE t1 (
-a INT,
-b INT,
-KEY a (a,b)
-)
-PARTITION BY HASH (a) PARTITIONS 1;
-INSERT INTO t1 VALUES (0, 580092), (3, 894076), (4, 805483), (4, 913540), (6, 611137), (8, 171602), (9, 599495), (9, 746305), (10, 272829), (10, 847519), (12, 258869), (12, 929028), (13, 288970), (15, 20971), (15, 105839), (16, 788272), (17, 76914), (18, 827274), (19, 802258), (20, 123677), (20, 587729), (22, 701449), (25, 31565), (25, 230782), (25, 442887), (25, 733139), (25, 851020);
-EXPLAIN SELECT a, MAX(b) FROM t1 WHERE a IN (10, 100, 3) GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 4 Using where; Using index
-DROP TABLE t1;
-create table t1 (a DATETIME)
-partition by range (TO_DAYS(a))
-subpartition by hash(to_seconds(a))
-(partition p0 values less than (1));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (to_days(`a`))
-SUBPARTITION BY HASH (to_seconds(`a`))
-(PARTITION `p0` VALUES LESS THAN (1) ENGINE = MyISAM)
-drop table t1;
-create table t1 (a int)
-partition by range (a)
-( partition p0 values less than (NULL),
-partition p1 values less than (MAXVALUE));
-ERROR HY000: Not allowed to use NULL value in VALUES LESS THAN
-create table t1 (a datetime not null)
-partition by range (TO_SECONDS(a))
-( partition p0 VALUES LESS THAN (TO_SECONDS('2007-03-08 00:00:00')),
-partition p1 VALUES LESS THAN (TO_SECONDS('2007-04-01 00:00:00')));
-select partition_method, partition_expression, partition_description
-from information_schema.partitions where table_name = "t1";
-partition_method partition_expression partition_description
-RANGE to_seconds(`a`) 63340531200
-RANGE to_seconds(`a`) 63342604800
-INSERT INTO t1 VALUES ('2007-03-01 12:00:00'), ('2007-03-07 12:00:00');
-INSERT INTO t1 VALUES ('2007-03-08 12:00:00'), ('2007-03-15 12:00:00');
-explain partitions select * from t1 where a < '2007-03-08 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a < '2007-03-08 00:00:01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 4 Using where
-explain partitions select * from t1 where a <= '2007-03-08 00:00:00';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 4 Using where
-explain partitions select * from t1 where a <= '2007-03-07 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a < '2007-03-07 23:59:59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 2 Using where
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` datetime NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (to_seconds(`a`))
-(PARTITION `p0` VALUES LESS THAN (63340531200) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN (63342604800) ENGINE = MyISAM)
-drop table t1;
-create table t1 (a date)
-partition by range(to_seconds(a))
-(partition p0 values less than (to_seconds('2004-01-01')),
-partition p1 values less than (to_seconds('2005-01-01')));
-insert into t1 values ('2003-12-30'),('2004-12-31');
-select * from t1;
-a
-2003-12-30
-2004-12-31
-explain partitions select * from t1 where a <= '2003-12-31';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-select * from t1 where a <= '2003-12-31';
-a
-2003-12-30
-explain partitions select * from t1 where a <= '2005-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 2 Using where
-select * from t1 where a <= '2005-01-01';
-a
-2003-12-30
-2004-12-31
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (to_seconds(`a`))
-(PARTITION `p0` VALUES LESS THAN (63240134400) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN (63271756800) ENGINE = MyISAM)
-drop table t1;
-create table t1 (a datetime)
-partition by range(to_seconds(a))
-(partition p0 values less than (to_seconds('2004-01-01 12:00:00')),
-partition p1 values less than (to_seconds('2005-01-01 12:00:00')));
-insert into t1 values ('2004-01-01 11:59:29'),('2005-01-01 11:59:59');
-select * from t1;
-a
-2004-01-01 11:59:29
-2005-01-01 11:59:59
-explain partitions select * from t1 where a <= '2004-01-01 11:59.59';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
-select * from t1 where a <= '2004-01-01 11:59:59';
-a
-2004-01-01 11:59:29
-explain partitions select * from t1 where a <= '2005-01-01';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 2 Using where
-select * from t1 where a <= '2005-01-01';
-a
-2004-01-01 11:59:29
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (to_seconds(`a`))
-(PARTITION `p0` VALUES LESS THAN (63240177600) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN (63271800000) ENGINE = MyISAM)
-drop table t1;
-create table t1 (a int, b char(20))
-partition by range columns(a,b)
-(partition p0 values less than (1));
-ERROR 42000: Inconsistency in usage of column lists for partitioning near '))' at line 3
-create table t1 (a int, b char(20))
-partition by range(a)
-(partition p0 values less than (1,"b"));
-ERROR HY000: Cannot have more than one value for this type of RANGE partitioning
-create table t1 (a int, b char(20))
-partition by range(a)
-(partition p0 values less than (1,"b"));
-ERROR HY000: Cannot have more than one value for this type of RANGE partitioning
-create table t1 (a int, b char(20))
-partition by range columns(b)
-(partition p0 values less than ("b"));
-drop table t1;
-create table t1 (a int)
-partition by range (a)
-( partition p0 values less than (maxvalue));
-alter table t1 add partition (partition p1 values less than (100000));
-ERROR HY000: MAXVALUE can only be used in last partition definition
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
-drop table t1;
-create table t1 (a integer)
-partition by range (a)
-( partition p0 values less than (4),
-partition p1 values less than (100));
-create trigger tr1 before insert on t1
-for each row begin
-set @a = 1;
-end|
-alter table t1 drop partition p0;
-drop table t1;
-create table t1 (a integer)
-partition by range (a)
-( partition p0 values less than (4),
-partition p1 values less than (100));
-LOCK TABLES t1 WRITE;
-alter table t1 drop partition p0;
-alter table t1 reorganize partition p1 into
-( partition p0 values less than (4),
-partition p1 values less than (100));
-alter table t1 add partition ( partition p2 values less than (200));
-UNLOCK TABLES;
-drop table t1;
-create table t1 (a int unsigned)
-partition by range (a)
-(partition pnull values less than (0),
-partition p0 values less than (1),
-partition p1 values less than(2));
-insert into t1 values (null),(0),(1);
-select * from t1 where a is null;
-a
-NULL
-select * from t1 where a >= 0;
-a
-0
-1
-select * from t1 where a < 0;
-a
-select * from t1 where a <= 0;
-a
-0
-select * from t1 where a > 1;
-a
-explain partitions select * from t1 where a is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pnull system NULL NULL NULL NULL 1
-explain partitions select * from t1 where a >= 0;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a < 0;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain partitions select * from t1 where a <= 0;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pnull,p0 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a > 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-drop table t1;
-create table t1 (a int unsigned, b int unsigned)
-partition by range (a)
-subpartition by hash (b)
-subpartitions 2
-(partition pnull values less than (0),
-partition p0 values less than (1),
-partition p1 values less than(2));
-insert into t1 values (null,0),(null,1),(0,0),(0,1),(1,0),(1,1);
-select * from t1 where a is null;
-a b
-NULL 0
-NULL 1
-select * from t1 where a >= 0;
-a b
-0 0
-0 1
-1 0
-1 1
-select * from t1 where a < 0;
-a b
-select * from t1 where a <= 0;
-a b
-0 0
-0 1
-select * from t1 where a > 1;
-a b
-explain partitions select * from t1 where a is null;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pnull_pnullsp0,pnull_pnullsp1 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a >= 0;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p0_p0sp0,p0_p0sp1,p1_p1sp0,p1_p1sp1 ALL NULL NULL NULL NULL 4 Using where
-explain partitions select * from t1 where a < 0;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pnull_pnullsp0,pnull_pnullsp1 ALL NULL NULL NULL NULL 2 Using where
-explain partitions select * from t1 where a <= 0;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 pnull_pnullsp0,pnull_pnullsp1,p0_p0sp0,p0_p0sp1 ALL NULL NULL NULL NULL 4 Using where
-explain partitions select * from t1 where a > 1;
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (a)
-partitions 3
-(partition x1 values less than (5) tablespace ts1,
-partition x2 values less than (10) tablespace ts2,
-partition x3 values less than maxvalue tablespace ts3);
-INSERT into t1 values (1, 1, 1);
-INSERT into t1 values (6, 1, 1);
-INSERT into t1 values (10, 1, 1);
-INSERT into t1 values (15, 1, 1);
-select * from t1;
-a b c
-1 1 1
-6 1 1
-10 1 1
-15 1 1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) NOT NULL,
- `c` int(11) NOT NULL,
- PRIMARY KEY (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `x1` VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = MyISAM,
- PARTITION `x2` VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = MyISAM,
- PARTITION `x3` VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = MyISAM)
-ALTER TABLE t1
-partition by range (a)
-partitions 3
-(partition x1 values less than (5) tablespace ts1,
-partition x2 values less than (10) tablespace ts2,
-partition x3 values less than maxvalue tablespace ts3);
-select * from t1;
-a b c
-1 1 1
-6 1 1
-10 1 1
-15 1 1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) NOT NULL,
- `c` int(11) NOT NULL,
- PRIMARY KEY (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `x1` VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = MyISAM,
- PARTITION `x2` VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = MyISAM,
- PARTITION `x3` VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = MyISAM)
-drop table if exists t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null)
-partition by range (a)
-partitions 3
-(partition x1 values less than (5) tablespace ts1,
-partition x2 values less than (10) tablespace ts2,
-partition x3 values less than maxvalue tablespace ts3);
-INSERT into t1 values (1, 1, 1);
-INSERT into t1 values (6, 1, 1);
-INSERT into t1 values (10, 1, 1);
-INSERT into t1 values (15, 1, 1);
-select * from t1;
-a b c
-1 1 1
-6 1 1
-10 1 1
-15 1 1
-ALTER TABLE t1
-partition by range (a)
-partitions 3
-(partition x1 values less than (5) tablespace ts1,
-partition x2 values less than (10) tablespace ts2,
-partition x3 values less than maxvalue tablespace ts3);
-select * from t1;
-a b c
-1 1 1
-6 1 1
-10 1 1
-15 1 1
-drop table if exists t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (a)
-partitions 3
-(partition x1 values less than (5) tablespace ts1,
-partition x2 values less than (10) tablespace ts2,
-partition x3 values less than (15) tablespace ts3);
-INSERT into t1 values (1, 1, 1);
-INSERT into t1 values (6, 1, 1);
-INSERT into t1 values (10, 1, 1);
-INSERT into t1 values (15, 1, 1);
-ERROR HY000: Table has no partition for value 15
-select * from t1;
-a b c
-1 1 1
-6 1 1
-10 1 1
-ALTER TABLE t1
-partition by range (a)
-partitions 3
-(partition x1 values less than (5) tablespace ts1,
-partition x2 values less than (10) tablespace ts2,
-partition x3 values less than (15) tablespace ts3);
-select * from t1;
-a b c
-1 1 1
-6 1 1
-10 1 1
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key(a,b))
-partition by range (a)
-(partition x1 values less than (1));
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by range (a)
-subpartition by hash (a+b)
-( partition x1 values less than (1)
-( subpartition x11,
-subpartition x12),
-partition x2 values less than (5)
-( subpartition x21,
-subpartition x22)
-);
-SELECT * from t1;
-a b c
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) NOT NULL,
- `c` int(11) NOT NULL,
- PRIMARY KEY (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-SUBPARTITION BY HASH (`a` + `b`)
-(PARTITION `x1` VALUES LESS THAN (1)
- (SUBPARTITION `x11` ENGINE = MyISAM,
- SUBPARTITION `x12` ENGINE = MyISAM),
- PARTITION `x2` VALUES LESS THAN (5)
- (SUBPARTITION `x21` ENGINE = MyISAM,
- SUBPARTITION `x22` ENGINE = MyISAM))
-ALTER TABLE t1 ADD COLUMN d int;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) NOT NULL,
- `c` int(11) NOT NULL,
- `d` int(11) DEFAULT NULL,
- PRIMARY KEY (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-SUBPARTITION BY HASH (`a` + `b`)
-(PARTITION `x1` VALUES LESS THAN (1)
- (SUBPARTITION `x11` ENGINE = MyISAM,
- SUBPARTITION `x12` ENGINE = MyISAM),
- PARTITION `x2` VALUES LESS THAN (5)
- (SUBPARTITION `x21` ENGINE = MyISAM,
- SUBPARTITION `x22` ENGINE = MyISAM))
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by range (a)
-subpartition by hash (a+b)
-( partition x1 values less than (1)
-( subpartition x11 tablespace t1 engine myisam nodegroup 0,
-subpartition x12 tablespace t2 engine myisam nodegroup 1),
-partition x2 values less than (5)
-( subpartition x21 tablespace t1 engine myisam nodegroup 0,
-subpartition x22 tablespace t2 engine myisam nodegroup 1)
-);
-SELECT * from t1;
-a b c
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by range (a)
-subpartition by hash (a+b)
-( partition x1 values less than (1)
-( subpartition x11 tablespace t1 nodegroup 0,
-subpartition x12 tablespace t2 nodegroup 1),
-partition x2 values less than (5)
-( subpartition x21 tablespace t1 nodegroup 0,
-subpartition x22 tablespace t2 nodegroup 1)
-);
-SELECT * from t1;
-a b c
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by range (a)
-subpartition by hash (a+b)
-( partition x1 values less than (1)
-( subpartition x11 engine myisam nodegroup 0,
-subpartition x12 engine myisam nodegroup 1),
-partition x2 values less than (5)
-( subpartition x21 engine myisam nodegroup 0,
-subpartition x22 engine myisam nodegroup 1)
-);
-INSERT into t1 VALUES (1,1,1);
-INSERT into t1 VALUES (4,1,1);
-INSERT into t1 VALUES (5,1,1);
-ERROR HY000: Table has no partition for value 5
-SELECT * from t1;
-a b c
-1 1 1
-4 1 1
-ALTER TABLE t1
-partition by range (a)
-subpartition by hash (a+b)
-( partition x1 values less than (1)
-( subpartition x11 engine myisam nodegroup 0,
-subpartition x12 engine myisam nodegroup 1),
-partition x2 values less than (5)
-( subpartition x21 engine myisam nodegroup 0,
-subpartition x22 engine myisam nodegroup 1)
-);
-SELECT * from t1;
-a b c
-1 1 1
-4 1 1
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by range (a)
-subpartition by hash (a+b)
-( partition x1 values less than (1)
-( subpartition x11 tablespace t1 engine myisam,
-subpartition x12 tablespace t2 engine myisam),
-partition x2 values less than (5)
-( subpartition x21 tablespace t1 engine myisam,
-subpartition x22 tablespace t2 engine myisam)
-);
-INSERT into t1 VALUES (1,1,1);
-INSERT into t1 VALUES (4,1,1);
-INSERT into t1 VALUES (5,1,1);
-ERROR HY000: Table has no partition for value 5
-SELECT * from t1;
-a b c
-1 1 1
-4 1 1
-ALTER TABLE t1
-partition by range (a)
-subpartition by hash (a+b)
-( partition x1 values less than (1)
-( subpartition x11 tablespace t1 engine myisam,
-subpartition x12 tablespace t2 engine myisam),
-partition x2 values less than (5)
-( subpartition x21 tablespace t1 engine myisam,
-subpartition x22 tablespace t2 engine myisam)
-);
-SELECT * from t1;
-a b c
-1 1 1
-4 1 1
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by range (a)
-subpartition by hash (a+b)
-( partition x1 values less than (1)
-( subpartition x11 tablespace t1,
-subpartition x12 tablespace t2),
-partition x2 values less than (5)
-( subpartition x21 tablespace t1,
-subpartition x22 tablespace t2)
-);
-INSERT into t1 VALUES (1,1,1);
-INSERT into t1 VALUES (4,1,1);
-INSERT into t1 VALUES (5,1,1);
-ERROR HY000: Table has no partition for value 5
-SELECT * from t1;
-a b c
-1 1 1
-4 1 1
-ALTER TABLE t1
-partition by range (a)
-subpartition by hash (a+b)
-( partition x1 values less than (1)
-( subpartition x11 tablespace t1 engine myisam,
-subpartition x12 tablespace t2 engine myisam),
-partition x2 values less than (5)
-( subpartition x21 tablespace t1 engine myisam,
-subpartition x22 tablespace t2 engine myisam)
-);
-SELECT * from t1;
-a b c
-1 1 1
-4 1 1
-drop table t1;
-CREATE TABLE t1 (
-a int not null,
-b int not null,
-c int not null,
-primary key (a,b))
-partition by range (a)
-subpartition by hash (a+b)
-( partition x1 values less than (1)
-( subpartition x11 engine myisam,
-subpartition x12 engine myisam),
-partition x2 values less than (5)
-( subpartition x21 engine myisam,
-subpartition x22 engine myisam)
-);
-INSERT into t1 VALUES (1,1,1);
-INSERT into t1 VALUES (4,1,1);
-INSERT into t1 VALUES (5,1,1);
-ERROR HY000: Table has no partition for value 5
-SELECT * from t1;
-a b c
-1 1 1
-4 1 1
-ALTER TABLE t1
-partition by range (a)
-subpartition by hash (a+b)
-( partition x1 values less than (1)
-( subpartition x11 engine myisam,
-subpartition x12 engine myisam),
-partition x2 values less than (5)
-( subpartition x21 engine myisam,
-subpartition x22 engine myisam)
-);
-SELECT * from t1;
-a b c
-1 1 1
-4 1 1
-drop table t1;
-CREATE TABLE t1 (c1 int default NULL, c2 varchar(30) default NULL,
-c3 date default NULL) engine=myisam
-PARTITION BY RANGE (year(c3)) (PARTITION p0 VALUES LESS THAN (1995),
-PARTITION p1 VALUES LESS THAN (1996) , PARTITION p2 VALUES LESS THAN (1997) ,
-PARTITION p3 VALUES LESS THAN (1998) , PARTITION p4 VALUES LESS THAN (1999) ,
-PARTITION p5 VALUES LESS THAN (2000) , PARTITION p6 VALUES LESS THAN (2001) ,
-PARTITION p7 VALUES LESS THAN (2002) , PARTITION p8 VALUES LESS THAN (2003) ,
-PARTITION p9 VALUES LESS THAN (2004) , PARTITION p10 VALUES LESS THAN (2010),
-PARTITION p11 VALUES LESS THAN MAXVALUE );
-INSERT INTO t1 VALUES (1, 'testing partitions', '1995-07-17'),
-(3, 'testing partitions','1995-07-31'),
-(5, 'testing partitions','1995-08-13'),
-(7, 'testing partitions','1995-08-26'),
-(9, 'testing partitions','1995-09-09'),
-(0, 'testing partitions','2000-07-10'),
-(2, 'testing partitions','2000-07-23'),
-(4, 'testing partitions','2000-08-05'),
-(6, 'testing partitions','2000-08-19'),
-(8, 'testing partitions','2000-09-01');
-SELECT COUNT(*) FROM t1 WHERE c3 BETWEEN '1996-12-31' AND '2000-12-31';
-COUNT(*)
-5
-SELECT COUNT(*) FROM t1 WHERE c3 < '2000-12-31';
-COUNT(*)
-10
-DROP TABLE t1;
-create table t1 (a bigint unsigned)
-partition by range (a)
-(partition p0 values less than (10),
-partition p1 values less than (0));
-ERROR HY000: VALUES LESS THAN value must be strictly increasing for each partition
-create table t1 (a bigint unsigned)
-partition by range (a)
-(partition p0 values less than (0),
-partition p1 values less than (10));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(20) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (0) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN (10) ENGINE = MyISAM)
-drop table t1;
-create table t1 (a bigint unsigned)
-partition by range (a)
-(partition p0 values less than (2),
-partition p1 values less than (10));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(20) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`a`)
-(PARTITION `p0` VALUES LESS THAN (2) ENGINE = MyISAM,
- PARTITION `p1` VALUES LESS THAN (10) ENGINE = MyISAM)
-insert into t1 values (0xFFFFFFFFFFFFFFFF);
-ERROR HY000: Table has no partition for value 18446744073709551615
-drop table t1;
-create table t1 (a int)
-partition by range (MOD(a,3))
-subpartition by hash(a)
-subpartitions 2
-(partition p0 values less than (1),
-partition p1 values less than (2),
-partition p2 values less than (3),
-partition p3 values less than (4));
-ALTER TABLE t1 DROP PARTITION p3;
-ALTER TABLE t1 DROP PARTITION p1;
-ALTER TABLE t1 DROP PARTITION p2;
-drop table t1;
-create table t1 (a int)
-partition by range (MOD(a,3))
-subpartition by hash(a)
-subpartitions 2
-(partition p0 values less than (1),
-partition p1 values less than (2),
-partition p2 values less than (3),
-partition p3 values less than (4));
-ALTER TABLE t1 DROP PARTITION p0;
-ALTER TABLE t1 DROP PARTITION p1;
-ALTER TABLE t1 DROP PARTITION p2;
-drop table t1;
-create table t1 (a int DEFAULT NULL,
-b varchar(30) DEFAULT NULL,
-c date DEFAULT NULL)
-ENGINE=MYISAM DEFAULT CHARSET=latin1;
-insert into t1 values (1, 'abc', '1995-01-01');
-insert into t1 values (1, 'abc', '1995-01-02');
-insert into t1 values (1, 'abc', '1995-01-03');
-insert into t1 values (1, 'abc', '1995-01-04');
-insert into t1 values (1, 'abc', '1995-01-05');
-insert into t1 values (1, 'abc', '1995-01-06');
-insert into t1 values (1, 'abc', '1995-01-07');
-insert into t1 values (1, 'abc', '1995-01-08');
-insert into t1 values (1, 'abc', '1995-01-09');
-insert into t1 values (1, 'abc', '1995-01-10');
-insert into t1 values (1, 'abc', '1995-01-11');
-insert into t1 values (1, 'abc', '1995-01-12');
-insert into t1 values (1, 'abc', '1995-01-13');
-insert into t1 values (1, 'abc', '1995-01-14');
-insert into t1 values (1, 'abc', '1995-01-15');
-insert into t1 values (1, 'abc', '1997-01-01');
-insert into t1 values (1, 'abc', '1997-01-02');
-insert into t1 values (1, 'abc', '1997-01-03');
-insert into t1 values (1, 'abc', '1997-01-04');
-insert into t1 values (1, 'abc', '1997-01-05');
-insert into t1 values (1, 'abc', '1997-01-06');
-insert into t1 values (1, 'abc', '1997-01-07');
-insert into t1 values (1, 'abc', '1997-01-08');
-insert into t1 values (1, 'abc', '1997-01-09');
-insert into t1 values (1, 'abc', '1997-01-10');
-insert into t1 values (1, 'abc', '1997-01-11');
-insert into t1 values (1, 'abc', '1997-01-12');
-insert into t1 values (1, 'abc', '1997-01-13');
-insert into t1 values (1, 'abc', '1997-01-14');
-insert into t1 values (1, 'abc', '1997-01-15');
-insert into t1 values (1, 'abc', '1998-01-01');
-insert into t1 values (1, 'abc', '1998-01-02');
-insert into t1 values (1, 'abc', '1998-01-03');
-insert into t1 values (1, 'abc', '1998-01-04');
-insert into t1 values (1, 'abc', '1998-01-05');
-insert into t1 values (1, 'abc', '1998-01-06');
-insert into t1 values (1, 'abc', '1998-01-07');
-insert into t1 values (1, 'abc', '1998-01-08');
-insert into t1 values (1, 'abc', '1998-01-09');
-insert into t1 values (1, 'abc', '1998-01-10');
-insert into t1 values (1, 'abc', '1998-01-11');
-insert into t1 values (1, 'abc', '1998-01-12');
-insert into t1 values (1, 'abc', '1998-01-13');
-insert into t1 values (1, 'abc', '1998-01-14');
-insert into t1 values (1, 'abc', '1998-01-15');
-insert into t1 values (1, 'abc', '1999-01-01');
-insert into t1 values (1, 'abc', '1999-01-02');
-insert into t1 values (1, 'abc', '1999-01-03');
-insert into t1 values (1, 'abc', '1999-01-04');
-insert into t1 values (1, 'abc', '1999-01-05');
-insert into t1 values (1, 'abc', '1999-01-06');
-insert into t1 values (1, 'abc', '1999-01-07');
-insert into t1 values (1, 'abc', '1999-01-08');
-insert into t1 values (1, 'abc', '1999-01-09');
-insert into t1 values (1, 'abc', '1999-01-10');
-insert into t1 values (1, 'abc', '1999-01-11');
-insert into t1 values (1, 'abc', '1999-01-12');
-insert into t1 values (1, 'abc', '1999-01-13');
-insert into t1 values (1, 'abc', '1999-01-14');
-insert into t1 values (1, 'abc', '1999-01-15');
-insert into t1 values (1, 'abc', '2000-01-01');
-insert into t1 values (1, 'abc', '2000-01-02');
-insert into t1 values (1, 'abc', '2000-01-03');
-insert into t1 values (1, 'abc', '2000-01-04');
-insert into t1 values (1, 'abc', '2000-01-05');
-insert into t1 values (1, 'abc', '2000-01-06');
-insert into t1 values (1, 'abc', '2000-01-07');
-insert into t1 values (1, 'abc', '2000-01-08');
-insert into t1 values (1, 'abc', '2000-01-09');
-insert into t1 values (1, 'abc', '2000-01-15');
-insert into t1 values (1, 'abc', '2000-01-11');
-insert into t1 values (1, 'abc', '2000-01-12');
-insert into t1 values (1, 'abc', '2000-01-13');
-insert into t1 values (1, 'abc', '2000-01-14');
-insert into t1 values (1, 'abc', '2000-01-15');
-insert into t1 values (1, 'abc', '2001-01-01');
-insert into t1 values (1, 'abc', '2001-01-02');
-insert into t1 values (1, 'abc', '2001-01-03');
-insert into t1 values (1, 'abc', '2001-01-04');
-insert into t1 values (1, 'abc', '2001-01-05');
-insert into t1 values (1, 'abc', '2001-01-06');
-insert into t1 values (1, 'abc', '2001-01-07');
-insert into t1 values (1, 'abc', '2001-01-08');
-insert into t1 values (1, 'abc', '2001-01-09');
-insert into t1 values (1, 'abc', '2001-01-15');
-insert into t1 values (1, 'abc', '2001-01-11');
-insert into t1 values (1, 'abc', '2001-01-12');
-insert into t1 values (1, 'abc', '2001-01-13');
-insert into t1 values (1, 'abc', '2001-01-14');
-insert into t1 values (1, 'abc', '2001-01-15');
-alter table t1
-partition by range (year(c))
-(partition p5 values less than (2000), partition p10 values less than (2010));
-alter table t1
-reorganize partition p5 into
-(partition p1 values less than (1996),
-partition p2 values less than (1997),
-partition p3 values less than (1998),
-partition p4 values less than (1999),
-partition p5 values less than (2000));
-drop table t1;
-CREATE TABLE t1 (a date)
-PARTITION BY RANGE (TO_DAYS(a))
-(PARTITION p3xx VALUES LESS THAN (TO_DAYS('2004-01-01')),
-PARTITION p401 VALUES LESS THAN (TO_DAYS('2004-02-01')),
-PARTITION p402 VALUES LESS THAN (TO_DAYS('2004-03-01')),
-PARTITION p403 VALUES LESS THAN (TO_DAYS('2004-04-01')),
-PARTITION p404 VALUES LESS THAN (TO_DAYS('2004-05-01')),
-PARTITION p405 VALUES LESS THAN (TO_DAYS('2004-06-01')),
-PARTITION p406 VALUES LESS THAN (TO_DAYS('2004-07-01')),
-PARTITION p407 VALUES LESS THAN (TO_DAYS('2004-08-01')),
-PARTITION p408 VALUES LESS THAN (TO_DAYS('2004-09-01')),
-PARTITION p409 VALUES LESS THAN (TO_DAYS('2004-10-01')),
-PARTITION p410 VALUES LESS THAN (TO_DAYS('2004-11-01')),
-PARTITION p411 VALUES LESS THAN (TO_DAYS('2004-12-01')),
-PARTITION p412 VALUES LESS THAN (TO_DAYS('2005-01-01')),
-PARTITION p501 VALUES LESS THAN (TO_DAYS('2005-02-01')),
-PARTITION p502 VALUES LESS THAN (TO_DAYS('2005-03-01')),
-PARTITION p503 VALUES LESS THAN (TO_DAYS('2005-04-01')),
-PARTITION p504 VALUES LESS THAN (TO_DAYS('2005-05-01')),
-PARTITION p505 VALUES LESS THAN (TO_DAYS('2005-06-01')),
-PARTITION p506 VALUES LESS THAN (TO_DAYS('2005-07-01')),
-PARTITION p507 VALUES LESS THAN (TO_DAYS('2005-08-01')),
-PARTITION p508 VALUES LESS THAN (TO_DAYS('2005-09-01')),
-PARTITION p509 VALUES LESS THAN (TO_DAYS('2005-10-01')),
-PARTITION p510 VALUES LESS THAN (TO_DAYS('2005-11-01')),
-PARTITION p511 VALUES LESS THAN (TO_DAYS('2005-12-01')),
-PARTITION p512 VALUES LESS THAN (TO_DAYS('2006-01-01')),
-PARTITION p601 VALUES LESS THAN (TO_DAYS('2006-02-01')),
-PARTITION p602 VALUES LESS THAN (TO_DAYS('2006-03-01')),
-PARTITION p603 VALUES LESS THAN (TO_DAYS('2006-04-01')),
-PARTITION p604 VALUES LESS THAN (TO_DAYS('2006-05-01')),
-PARTITION p605 VALUES LESS THAN (TO_DAYS('2006-06-01')),
-PARTITION p606 VALUES LESS THAN (TO_DAYS('2006-07-01')),
-PARTITION p607 VALUES LESS THAN (TO_DAYS('2006-08-01')));
-INSERT INTO t1 VALUES ('2003-01-13'),('2003-06-20'),('2003-08-30');
-INSERT INTO t1 VALUES ('2003-04-13'),('2003-07-20'),('2003-10-30');
-INSERT INTO t1 VALUES ('2003-05-13'),('2003-11-20'),('2003-12-30');
-INSERT INTO t1 VALUES ('2004-01-13'),('2004-01-20'),('2004-01-30');
-INSERT INTO t1 VALUES ('2004-02-13'),('2004-02-20'),('2004-02-28');
-INSERT INTO t1 VALUES ('2004-03-13'),('2004-03-20'),('2004-03-30');
-INSERT INTO t1 VALUES ('2004-04-13'),('2004-04-20'),('2004-04-30');
-INSERT INTO t1 VALUES ('2004-05-13'),('2004-05-20'),('2004-05-30');
-INSERT INTO t1 VALUES ('2004-06-13'),('2004-06-20'),('2004-06-30');
-INSERT INTO t1 VALUES ('2004-07-13'),('2004-07-20'),('2004-07-30');
-INSERT INTO t1 VALUES ('2004-08-13'),('2004-08-20'),('2004-08-30');
-INSERT INTO t1 VALUES ('2004-09-13'),('2004-09-20'),('2004-09-30');
-INSERT INTO t1 VALUES ('2004-10-13'),('2004-10-20'),('2004-10-30');
-INSERT INTO t1 VALUES ('2004-11-13'),('2004-11-20'),('2004-11-30');
-INSERT INTO t1 VALUES ('2004-12-13'),('2004-12-20'),('2004-12-30');
-INSERT INTO t1 VALUES ('2005-01-13'),('2005-01-20'),('2005-01-30');
-INSERT INTO t1 VALUES ('2005-02-13'),('2005-02-20'),('2005-02-28');
-INSERT INTO t1 VALUES ('2005-03-13'),('2005-03-20'),('2005-03-30');
-INSERT INTO t1 VALUES ('2005-04-13'),('2005-04-20'),('2005-04-30');
-INSERT INTO t1 VALUES ('2005-05-13'),('2005-05-20'),('2005-05-30');
-INSERT INTO t1 VALUES ('2005-06-13'),('2005-06-20'),('2005-06-30');
-INSERT INTO t1 VALUES ('2005-07-13'),('2005-07-20'),('2005-07-30');
-INSERT INTO t1 VALUES ('2005-08-13'),('2005-08-20'),('2005-08-30');
-INSERT INTO t1 VALUES ('2005-09-13'),('2005-09-20'),('2005-09-30');
-INSERT INTO t1 VALUES ('2005-10-13'),('2005-10-20'),('2005-10-30');
-INSERT INTO t1 VALUES ('2005-11-13'),('2005-11-20'),('2005-11-30');
-INSERT INTO t1 VALUES ('2005-12-13'),('2005-12-20'),('2005-12-30');
-INSERT INTO t1 VALUES ('2006-01-13'),('2006-01-20'),('2006-01-30');
-INSERT INTO t1 VALUES ('2006-02-13'),('2006-02-20'),('2006-02-28');
-INSERT INTO t1 VALUES ('2006-03-13'),('2006-03-20'),('2006-03-30');
-INSERT INTO t1 VALUES ('2006-04-13'),('2006-04-20'),('2006-04-30');
-INSERT INTO t1 VALUES ('2006-05-13'),('2006-05-20'),('2006-05-30');
-INSERT INTO t1 VALUES ('2006-06-13'),('2006-06-20'),('2006-06-30');
-INSERT INTO t1 VALUES ('2006-07-13'),('2006-07-20'),('2006-07-30');
-SELECT * FROM t1
-WHERE a >= '2004-07-01' AND a <= '2004-09-30';
-a
-2004-07-13
-2004-07-20
-2004-07-30
-2004-08-13
-2004-08-20
-2004-08-30
-2004-09-13
-2004-09-20
-2004-09-30
-EXPLAIN PARTITIONS SELECT * FROM t1
-WHERE a >= '2004-07-01' AND a <= '2004-09-30';
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p3xx,p407,p408,p409 ALL NULL NULL NULL NULL 18 Using where
-SELECT * from t1
-WHERE (a >= '2004-07-01' AND a <= '2004-09-30') OR
-(a >= '2005-07-01' AND a <= '2005-09-30');
-a
-2004-07-13
-2004-07-20
-2004-07-30
-2004-08-13
-2004-08-20
-2004-08-30
-2004-09-13
-2004-09-20
-2004-09-30
-2005-07-13
-2005-07-20
-2005-07-30
-2005-08-13
-2005-08-20
-2005-08-30
-2005-09-13
-2005-09-20
-2005-09-30
-EXPLAIN PARTITIONS SELECT * from t1
-WHERE (a >= '2004-07-01' AND a <= '2004-09-30') OR
-(a >= '2005-07-01' AND a <= '2005-09-30');
-id select_type table partitions type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 p3xx,p407,p408,p409,p507,p508,p509 ALL NULL NULL NULL NULL 27 Using where
-DROP TABLE t1;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-CREATE TABLE t2 (
-defid int(10) unsigned NOT NULL,
-day int(10) unsigned NOT NULL,
-count int(10) unsigned NOT NULL,
-filler char(200),
-KEY (defid,day)
-)
-PARTITION BY RANGE (day) (
-PARTITION p7 VALUES LESS THAN (20070401) ,
-PARTITION p8 VALUES LESS THAN (20070501));
-insert into t2 select 20, 20070311, 1, 'filler' from t1 A, t1 B;
-insert into t2 select 20, 20070411, 1, 'filler' from t1 A, t1 B;
-insert into t2 values(52, 20070321, 123, 'filler') ;
-insert into t2 values(52, 20070322, 456, 'filler') ;
-select sum(count) from t2 ch where ch.defid in (50,52) and ch.day between 20070320 and 20070401 group by defid;
-sum(count)
-579
-drop table t1, t2;
-#
-# Bug#50939: Loose Index Scan unduly relies on engine to remember range
-# endpoints
-#
-CREATE TABLE t1 (
-a INT,
-b INT,
-KEY ( a, b )
-) PARTITION BY HASH (a) PARTITIONS 1;
-CREATE TABLE t2 (
-a INT,
-b INT,
-KEY ( a, b )
-);
-INSERT INTO t1 VALUES (1, 1), (2, 2), (3, 3), (4, 4), (5, 5);
-INSERT INTO t1 SELECT a + 5, b + 5 FROM t1;
-INSERT INTO t1 SELECT a + 10, b + 10 FROM t1;
-INSERT INTO t1 SELECT a + 20, b + 20 FROM t1;
-INSERT INTO t1 SELECT a + 40, b + 40 FROM t1;
-INSERT INTO t2 SELECT * FROM t1;
-# plans should be identical
-EXPLAIN SELECT a, MAX(b) FROM t1 WHERE a IN (10,100) GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 2 Using where; Using index
-EXPLAIN SELECT a, MAX(b) FROM t2 WHERE a IN (10,100) GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 5 NULL 2 Using where; Using index for group-by
-FLUSH status;
-SELECT a, MAX(b) FROM t1 WHERE a IN (10, 100) GROUP BY a;
-a MAX(b)
-10 10
-# Should be no more than 4 reads.
-SHOW status LIKE 'handler_read_key';
-Variable_name Value
-Handler_read_key 2
-FLUSH status;
-SELECT a, MAX(b) FROM t2 WHERE a IN (10, 100) GROUP BY a;
-a MAX(b)
-10 10
-# Should be no more than 4 reads.
-SHOW status LIKE 'handler_read_key';
-Variable_name Value
-Handler_read_key 4
-DROP TABLE t1, t2;
diff --git a/mysql-test/r/partition_rename_longfilename.result b/mysql-test/r/partition_rename_longfilename.result
deleted file mode 100644
index e6bea554481..00000000000
--- a/mysql-test/r/partition_rename_longfilename.result
+++ /dev/null
@@ -1,66 +0,0 @@
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (a INT)
-PARTITION BY RANGE (a)
-(PARTITION p0 VALUES LESS THAN (6),
-PARTITION `p1....................` VALUES LESS THAN (9),
-PARTITION p2 VALUES LESS THAN MAXVALUE);
-# List of files in database `test`, all original t1-files here
-t1#P#p0.MYD
-t1#P#p0.MYI
-t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYD
-t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYI
-t1#P#p2.MYD
-t1#P#p2.MYI
-t1.frm
-t1.par
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-# Renaming to a file name where the first partition is 155 chars
-# and the second partition is 255 chars
-RENAME TABLE t1 TO `t2_............................end`;
-# List of files in database `test`, should not be any t1-files here
-# List of files in database `test`, should be all t2-files here
-t2_@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002eend#P#p0.MYD
-t2_@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002eend#P#p0.MYI
-t2_@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002eend#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYD
-t2_@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002eend#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYI
-t2_@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002eend#P#p2.MYD
-t2_@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002eend#P#p2.MYI
-t2_@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002eend.frm
-t2_@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002eend.par
-SELECT * FROM `t2_............................end`;
-a
-1
-10
-2
-3
-4
-5
-6
-7
-8
-9
-RENAME TABLE `t2_............................end` to t1;
-# List of files in database `test`, should be all t1-files here
-t1#P#p0.MYD
-t1#P#p0.MYI
-t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYD
-t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYI
-t1#P#p2.MYD
-t1#P#p2.MYI
-t1.frm
-t1.par
-SELECT * FROM t1;
-a
-1
-10
-2
-3
-4
-5
-6
-7
-8
-9
-DROP TABLE t1;
-# Should not be any files left here
-# End of bug#30102 test.
diff --git a/mysql-test/r/partition_symlink.result b/mysql-test/r/partition_symlink.result
deleted file mode 100644
index 90048eb3438..00000000000
--- a/mysql-test/r/partition_symlink.result
+++ /dev/null
@@ -1,179 +0,0 @@
-DROP TABLE IF EXISTS t1;
-DROP DATABASE IF EXISTS mysqltest2;
-#
-# Test for WL#4445: EXCHANGE PARTITION
-#
-CREATE TABLE t1 (a INT)
-ENGINE = MyISAM
-PARTITION BY LIST (a)
-(PARTITION p0 VALUES IN (0)
-DATA DIRECTORY 'MYSQLTEST_VARDIR/tmp'
- INDEX DIRECTORY 'MYSQLTEST_VARDIR/tmp',
-PARTITION p1 VALUES IN (1)
-DATA DIRECTORY 'MYSQLTEST_VARDIR/tmp'
- INDEX DIRECTORY 'MYSQLTEST_VARDIR/tmp',
-PARTITION p2 VALUES IN (2));
-CREATE TABLE t2 (a INT)
-ENGINE = MyISAM
-DATA DIRECTORY 'MYSQLTEST_VARDIR/tmp'
- INDEX DIRECTORY 'MYSQLTEST_VARDIR/tmp';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST (`a`)
-(PARTITION `p0` VALUES IN (0) DATA DIRECTORY = 'MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/tmp' ENGINE = MyISAM,
- PARTITION `p1` VALUES IN (1) DATA DIRECTORY = 'MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/tmp' ENGINE = MyISAM,
- PARTITION `p2` VALUES IN (2) ENGINE = MyISAM)
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 DATA DIRECTORY='MYSQLTEST_VARDIR/tmp/' INDEX DIRECTORY='MYSQLTEST_VARDIR/tmp/'
-INSERT INTO t1 VALUES (0), (1), (2);
-ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2;
-ALTER TABLE t1 EXCHANGE PARTITION p2 WITH TABLE t2;
-ERROR HY000: Tables have different definitions
-SELECT * FROM t1;
-a
-1
-2
-SELECT * FROM t2;
-a
-0
-DROP TABLE t1, t2;
-# Creating two non colliding tables mysqltest2.t1 and test.t1
-# test.t1 have partitions in mysqltest2-directory!
-# user root:
-CREATE USER mysqltest_1@localhost;
-CREATE DATABASE mysqltest2;
-USE mysqltest2;
-CREATE TABLE t1 (a INT) ENGINE = MyISAM;
-INSERT INTO t1 VALUES (0);
-connect con1,localhost,mysqltest_1,,;
-# user mysqltest_1:
-USE test;
-CREATE TABLE t1 (a INT)
-ENGINE = MyISAM
-PARTITION BY LIST (a) (
-PARTITION p0 VALUES IN (0)
-DATA DIRECTORY 'MYSQLTEST_VARDIR/tmp'
- INDEX DIRECTORY 'MYSQLTEST_VARDIR/tmp',
-PARTITION p1 VALUES IN (1)
-DATA DIRECTORY 'MYSQLTEST_VARDIR/tmp'
- INDEX DIRECTORY 'MYSQLTEST_VARDIR/tmp',
-PARTITION p2 VALUES IN (2)
-);
-# without the patch for bug#32091 this would create
-# files mysqltest2/t1.MYD + .MYI and possible overwrite
-# the mysqltest2.t1 table (depending on bug#32111)
-ALTER TABLE t1 REMOVE PARTITIONING;
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t1;
-a
-1
-connection default;
-# user root:
-USE mysqltest2;
-FLUSH TABLES;
-# if the patch works, this should be different
-# and before the patch they were the same!
-SELECT * FROM t1;
-a
-0
-USE test;
-SELECT * FROM t1;
-a
-1
-DROP TABLE t1;
-DROP DATABASE mysqltest2;
-# test that symlinks can not overwrite files when CREATE TABLE
-# user root:
-CREATE DATABASE mysqltest2;
-USE mysqltest2;
-CREATE TABLE t1 (a INT)
-ENGINE = MyISAM
-PARTITION BY LIST (a) (
-PARTITION p0 VALUES IN (0)
-DATA DIRECTORY 'MYSQLTEST_VARDIR/tmp'
- INDEX DIRECTORY 'MYSQLTEST_VARDIR/tmp',
-PARTITION p1 VALUES IN (1)
-DATA DIRECTORY 'MYSQLTEST_VARDIR/tmp'
- INDEX DIRECTORY 'MYSQLTEST_VARDIR/tmp'
- );
-connection con1;
-# user mysqltest_1:
-USE test;
-CREATE TABLE t1 (a INT)
-ENGINE = MyISAM
-PARTITION BY LIST (a) (
-PARTITION p0 VALUES IN (0)
-DATA DIRECTORY 'MYSQLTEST_VARDIR/tmp'
- INDEX DIRECTORY 'MYSQLTEST_VARDIR/tmp',
-PARTITION p1 VALUES IN (1)
-DATA DIRECTORY 'MYSQLTEST_VARDIR/tmp'
- INDEX DIRECTORY 'MYSQLTEST_VARDIR/tmp'
- );
-Got one of the listed errors
-CREATE TABLE t1 (a INT)
-ENGINE = MyISAM
-PARTITION BY LIST (a) (
-PARTITION p0 VALUES IN (0)
-DATA DIRECTORY 'MYSQLTEST_VARDIR/tmp'
- INDEX DIRECTORY 'MYSQLTEST_VARDIR/tmp',
-PARTITION p1 VALUES IN (1)
-DATA DIRECTORY 'MYSQLTEST_VARDIR/tmp'
- INDEX DIRECTORY 'MYSQLTEST_VARDIR/tmp'
- );
-Got one of the listed errors
-connection default;
-# user root (cleanup):
-DROP DATABASE mysqltest2;
-USE test;
-DROP USER mysqltest_1@localhost;
-disconnect con1;
-create table t2 (i int )
-ENGINE = MyISAM
-partition by range (i)
-(
-partition p01 values less than (1000)
-data directory="MYSQLTEST_VARDIR/tmp"
- index directory="MYSQLTEST_VARDIR/tmp"
-);
-set @org_mode=@@sql_mode;
-set @@sql_mode='NO_DIR_IN_CREATE';
-select @@sql_mode;
-@@sql_mode
-NO_DIR_IN_CREATE
-create table t1 (i int )
-ENGINE = MyISAM
-partition by range (i)
-(
-partition p01 values less than (1000)
-data directory='/not/existing'
- index directory='/not/existing'
-);
-Warnings:
-Warning 1618 <DATA DIRECTORY> option ignored
-Warning 1618 <INDEX DIRECTORY> option ignored
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (`i`)
-(PARTITION `p01` VALUES LESS THAN (1000) ENGINE = MyISAM)
-DROP TABLE t1, t2;
-set @@sql_mode=@org_mode;
-create table t1 (a int)
-ENGINE = MyISAM
-partition by key (a)
-(partition p0 DATA DIRECTORY 'part-data' INDEX DIRECTORY 'part-data');
-Got one of the listed errors
-create table t1 (a int)
-ENGINE = MyISAM
-partition by key (a)
-(partition p0,
-partition p1 DATA DIRECTORY 'part-data' INDEX DIRECTORY 'part-data');
-Got one of the listed errors
diff --git a/mysql-test/r/partition_sync.result b/mysql-test/r/partition_sync.result
deleted file mode 100644
index 18cc506e849..00000000000
--- a/mysql-test/r/partition_sync.result
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# Bug #43867 ALTER TABLE on a partitioned table
-# causes unnecessary deadlocks
-#
-CREATE TABLE t1 (a int) PARTITION BY RANGE (a)
-(PARTITION p0 VALUES LESS THAN (1),
-PARTITION p1 VALUES LESS THAN (2));
-INSERT INTO t1 VALUES (0),(1);
-connect con1,localhost,root;
-connection con1;
-BEGIN;
-SELECT * FROM t1;
-a
-0
-1
-connection default;
-ALTER TABLE t1 DROP PARTITION p3;
-ERROR HY000: Error in list of partitions to DROP
-connection con1;
-# This failed with deadlock and should not do so.
-SELECT * FROM t1;
-a
-0
-1
-connection default;
-disconnect con1;
-DROP TABLE t1;
-#
-# Bug #46654 False deadlock on concurrent DML/DDL
-# with partitions, inconsistent behavior
-#
-DROP TABLE IF EXISTS tbl_with_partitions;
-CREATE TABLE tbl_with_partitions ( i INT )
-PARTITION BY HASH(i);
-INSERT INTO tbl_with_partitions VALUES (1);
-connect con2,localhost,root;
-connect con3,localhost,root;
-connection con3;
-LOCK TABLE tbl_with_partitions READ;
-# Access table with disabled autocommit
-connection default;
-SET AUTOCOMMIT = 0;
-SELECT * FROM tbl_with_partitions;
-i
-1
-# Alter table, abort after prepare
-connection con2;
-set session debug_dbug="+d,abort_copy_table";
-ALTER TABLE tbl_with_partitions ADD COLUMN f INT;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-# Try accessing the table after Alter aborted.
-# This used to give ER_LOCK_DEADLOCK.
-connection default;
-SELECT * FROM tbl_with_partitions;
-i
-1
-connection con3;
-UNLOCK TABLES;
-# Cleanup
-connection default;
-disconnect con2;
-disconnect con3;
-DROP TABLE tbl_with_partitions;
diff --git a/mysql-test/r/partition_truncate.result b/mysql-test/r/partition_truncate.result
deleted file mode 100644
index 7a82e47d818..00000000000
--- a/mysql-test/r/partition_truncate.result
+++ /dev/null
@@ -1,26 +0,0 @@
-drop table if exists t1, t2, t3, t4;
-create table t1 (a int)
-partition by list (a)
-(partition p1 values in (0));
-alter table t1 truncate partition p1,p1;
-ERROR HY000: Incorrect partition name
-alter table t1 truncate partition p0;
-ERROR HY000: Unknown partition 'p0' in table 't1'
-drop table t1;
-create table t1 (a int)
-partition by list (a)
-subpartition by hash (a)
-subpartitions 1
-(partition p1 values in (1)
-(subpartition sp1));
-alter table t1 truncate partition sp1;
-ERROR HY000: Incorrect partition name
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1), (3), (8);
-alter table t1 truncate partition p0;
-ERROR HY000: Partition management on a not partitioned table is not possible
-select count(*) from t1;
-count(*)
-3
-drop table t1;
diff --git a/mysql-test/r/partition_utf8.result b/mysql-test/r/partition_utf8.result
deleted file mode 100644
index 7718e651423..00000000000
--- a/mysql-test/r/partition_utf8.result
+++ /dev/null
@@ -1,53 +0,0 @@
-set names utf8;
-create table t1 (a varchar(2) character set cp1250)
-partition by list columns (a)
-( partition p0 values in (0x81));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(2) CHARACTER SET cp1250 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`)
-(PARTITION `p0` VALUES IN (_cp1250 0x81) ENGINE = MyISAM)
-drop table t1;
-create table t1 (a varchar(2) character set cp1250)
-partition by list columns (a)
-( partition p0 values in (0x80));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(2) CHARACTER SET cp1250 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`)
-(PARTITION `p0` VALUES IN ('€') ENGINE = MyISAM)
-drop table t1;
-create table t1 (a varchar(1500), b varchar(1570))
-partition by list columns(a,b)
-( partition p0 values in (('a','b')));
-ERROR HY000: The total length of the partitioning fields is too large
-create table t1 (a varchar(1023) character set utf8 collate utf8_spanish2_ci)
-partition by range columns(a)
-( partition p0 values less than ('CZ'),
-partition p1 values less than ('CH'),
-partition p2 values less than ('D'));
-insert into t1 values ('czz'),('chi'),('ci'),('cg');
-select * from t1 where a between 'cg' AND 'ci';
-a
-ci
-cg
-drop table t1;
-create table t1 (a varchar(2) character set ucs2)
-partition by list columns (a)
-(partition p0 values in (0x2020),
-partition p1 values in (''));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY LIST COLUMNS(`a`)
-(PARTITION `p0` VALUES IN ('†') ENGINE = MyISAM,
- PARTITION `p1` VALUES IN ('') ENGINE = MyISAM)
-insert into t1 values ('');
-insert into t1 values (_ucs2 0x2020);
-drop table t1;
diff --git a/mysql-test/r/partition_windows.result b/mysql-test/r/partition_windows.result
deleted file mode 100644
index 756690925f8..00000000000
--- a/mysql-test/r/partition_windows.result
+++ /dev/null
@@ -1,30 +0,0 @@
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-c1 int(10) unsigned NOT NULL AUTO_INCREMENT,
-c2 varchar(30) NOT NULL,
-c3 smallint(5) unsigned DEFAULT NULL,
-PRIMARY KEY (c1)
-) ENGINE = MYISAM
-PARTITION BY HASH(c1)(
-PARTITION p0
-DATA DIRECTORY = 'C:/mysqltest/p0Data'
- INDEX DIRECTORY = 'D:/mysqltest/p0Index',
-PARTITION p1,
-PARTITION p2
-DATA DIRECTORY = 'E:/mysqltest/p2Data'
- INDEX DIRECTORY = 'F:/mysqltest/p2Index'
-);
-Warnings:
-Warning 1618 <DATA DIRECTORY> option ignored
-Warning 1618 <INDEX DIRECTORY> option ignored
-Warning 1618 <DATA DIRECTORY> option ignored
-Warning 1618 <INDEX DIRECTORY> option ignored
-INSERT INTO t1 VALUES (NULL, "first", 1);
-INSERT INTO t1 VALUES (NULL, "second", 2);
-INSERT INTO t1 VALUES (NULL, "third", 3);
-ALTER TABLE t1 ADD PARTITION (PARTITION p3 DATA DIRECTORY = 'G:/mysqltest/p3Data' INDEX DIRECTORY = 'H:/mysqltest/p3Index');
-Warnings:
-Warning 1618 <DATA DIRECTORY> option ignored
-Warning 1618 <INDEX DIRECTORY> option ignored
-INSERT INTO t1 VALUES (NULL, "last", 4);
-DROP TABLE t1;
diff --git a/mysql-test/r/perror-win.result b/mysql-test/r/perror-win.result
deleted file mode 100644
index 139b566757f..00000000000
--- a/mysql-test/r/perror-win.result
+++ /dev/null
@@ -1,7 +0,0 @@
-MySQL error code 150: Foreign key constraint is incorrectly formed
-Win32 error code 150: System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed.
-OS error code 23: Too many open files in system
-Win32 error code 23: Data error (cyclic redundancy check).
-MySQL error code 1062 (ER_DUP_ENTRY): Duplicate entry '%-.192s' for key %d
-Win32 error code 1062: The service has not been started.
-Illegal error code: 30000
diff --git a/mysql-test/r/perror.result b/mysql-test/r/perror.result
deleted file mode 100644
index 432a4fd4c04..00000000000
--- a/mysql-test/r/perror.result
+++ /dev/null
@@ -1,6 +0,0 @@
-Illegal error code: 10000
-MySQL error code 1062 (ER_DUP_ENTRY): Duplicate entry '%-.192s' for key %d
-MySQL error code 1408 (ER_STARTUP): %s: ready for connections.
-Version: '%s' socket: '%s' port: %d %s
-MySQL error code 1459 (ER_TABLE_NEEDS_UPGRADE): Upgrade required. Please do "REPAIR %s %`s" or dump/reload to fix it!
-MySQL error code 1461 (ER_MAX_PREPARED_STMT_COUNT_REACHED): Can't create more than max_prepared_stmt_count statements (current value: %lu)
diff --git a/mysql-test/r/plugin.result b/mysql-test/r/plugin.result
deleted file mode 100644
index 3a141a25b5c..00000000000
--- a/mysql-test/r/plugin.result
+++ /dev/null
@@ -1,333 +0,0 @@
-CREATE TABLE t1(a int) ENGINE=EXAMPLE;
-ERROR 42000: Unknown storage engine 'EXAMPLE'
-INSTALL PLUGIN example SONAME 'ha_example';
-INSTALL PLUGIN EXAMPLE SONAME 'ha_example';
-ERROR HY000: Plugin 'EXAMPLE' already installed
-UNINSTALL PLUGIN example;
-INSTALL SONAME 'ha_example';
-select * from information_schema.plugins where plugin_library like 'ha_example%';
-PLUGIN_NAME EXAMPLE
-PLUGIN_VERSION 0.1
-PLUGIN_STATUS ACTIVE
-PLUGIN_TYPE STORAGE ENGINE
-PLUGIN_TYPE_VERSION #
-PLUGIN_LIBRARY ha_example.so
-PLUGIN_LIBRARY_VERSION 1.13
-PLUGIN_AUTHOR Brian Aker, MySQL AB
-PLUGIN_DESCRIPTION Example storage engine
-PLUGIN_LICENSE GPL
-LOAD_OPTION ON
-PLUGIN_MATURITY Experimental
-PLUGIN_AUTH_VERSION 0.1
-PLUGIN_NAME UNUSABLE
-PLUGIN_VERSION 3.14
-PLUGIN_STATUS ACTIVE
-PLUGIN_TYPE DAEMON
-PLUGIN_TYPE_VERSION #
-PLUGIN_LIBRARY ha_example.so
-PLUGIN_LIBRARY_VERSION 1.13
-PLUGIN_AUTHOR Sergei Golubchik
-PLUGIN_DESCRIPTION Unusable Daemon
-PLUGIN_LICENSE GPL
-LOAD_OPTION ON
-PLUGIN_MATURITY Experimental
-PLUGIN_AUTH_VERSION 3.14.15.926
-CREATE TABLE t1 (a int) ENGINE=EXAMPLE;
-CREATE TABLE t2 (a int) ENGINE=EXAMPLE;
-FLUSH TABLES;
-SELECT * FROM t1;
-a
-set global example_ulong_var=500;
-set global example_enum_var= e1;
-set session example_int_var= -1;
-show status like 'example%';
-Variable_name Value
-Example_func_example enum_var is 0, ulong_var is 500, int_var is -1, double_var is 8.500000, really
-show variables like 'example%';
-Variable_name Value
-example_double_thdvar 8.500000
-example_double_var 8.500000
-example_enum_var e1
-example_int_var -1
-example_ulong_var 500
-example_varopt_default 5
-select @@session.example_int_var;
-@@session.example_int_var
--1
-UNINSTALL SONAME 'ha_example';
-Warnings:
-Warning 1620 Plugin is busy and will be uninstalled on shutdown
-select * from information_schema.plugins where plugin_library like 'ha_example%';
-PLUGIN_NAME EXAMPLE
-PLUGIN_VERSION 0.1
-PLUGIN_STATUS DELETED
-PLUGIN_TYPE STORAGE ENGINE
-PLUGIN_TYPE_VERSION #
-PLUGIN_LIBRARY ha_example.so
-PLUGIN_LIBRARY_VERSION 1.13
-PLUGIN_AUTHOR Brian Aker, MySQL AB
-PLUGIN_DESCRIPTION Example storage engine
-PLUGIN_LICENSE GPL
-LOAD_OPTION ON
-PLUGIN_MATURITY Experimental
-PLUGIN_AUTH_VERSION 0.1
-DROP TABLE t1;
-select * from information_schema.plugins where plugin_library like 'ha_example%';
-SELECT * FROM t2;
-ERROR 42000: Unknown storage engine 'EXAMPLE'
-DROP TABLE t2;
-UNINSTALL PLUGIN EXAMPLE;
-ERROR 42000: PLUGIN EXAMPLE does not exist
-UNINSTALL PLUGIN non_exist;
-ERROR 42000: PLUGIN non_exist does not exist
-UNINSTALL SONAME 'non_exist';
-ERROR 42000: SONAME non_exist.so does not exist
-#
-# Bug#32034: check_func_enum() does not check correct values but set it
-# to impossible int val
-#
-INSTALL PLUGIN example SONAME 'ha_example';
-SET GLOBAL example_enum_var= e1;
-SET GLOBAL example_enum_var= e2;
-SET GLOBAL example_enum_var= impossible;
-ERROR 42000: Variable 'example_enum_var' can't be set to the value of 'impossible'
-UNINSTALL PLUGIN example;
-INSTALL PLUGIN example SONAME 'ha_example';
-select @@session.sql_mode into @old_sql_mode;
-set session sql_mode='';
-set global example_ulong_var=500;
-select @@global.example_ulong_var;
-@@global.example_ulong_var
-500
-set global example_ulong_var=1111;
-Warnings:
-Warning 1292 Truncated incorrect example_ulong_var value: '1111'
-select @@global.example_ulong_var;
-@@global.example_ulong_var
-1000
-set session sql_mode='STRICT_ALL_TABLES';
-set global example_ulong_var=500;
-select @@global.example_ulong_var;
-@@global.example_ulong_var
-500
-set global example_ulong_var=1111;
-ERROR 42000: Variable 'example_ulong_var' can't be set to the value of '1111'
-select @@global.example_ulong_var;
-@@global.example_ulong_var
-500
-set session sql_mode=@old_sql_mode;
-set session old=bla;
-ERROR 42000: Variable 'old' can't be set to the value of 'bla'
-#legal values
-CREATE TABLE t1 ( a int complex='c,f,f,f' ) ENGINE=example ULL=10000 STR='dskj' one_or_two='one' YESNO=0;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `complex`='c,f,f,f'
-) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `ULL`=10000 `STR`='dskj' `one_or_two`='one' `YESNO`=0
-drop table t1;
-SET @OLD_SQL_MODE=@@SQL_MODE;
-SET SQL_MODE='IGNORE_BAD_TABLE_OPTIONS';
-#illegal value fixed
-CREATE TABLE t1 (a int, b int) ENGINE=example ULL=10000000000000000000 one_or_two='ttt' YESNO=SSS;
-Warnings:
-Warning 1912 Incorrect value '10000000000000000000' for option 'ULL'
-Warning 1912 Incorrect value 'ttt' for option 'one_or_two'
-Warning 1912 Incorrect value 'SSS' for option 'YESNO'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `ULL`=10000000000000000000 `one_or_two`='ttt' `YESNO`=SSS
-#alter table
-alter table t1 ULL=10000000;
-Warnings:
-Note 1105 EXAMPLE DEBUG: ULL 4294967290 -> 10000000
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `one_or_two`='ttt' `YESNO`=SSS `ULL`=10000000
-alter table t1 change a a int complex='c,c,c';
-Warnings:
-Note 1105 EXAMPLE DEBUG: Field `a` COMPLEX '(null)' -> 'c,c,c'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `complex`='c,c,c',
- `b` int(11) DEFAULT NULL
-) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `one_or_two`='ttt' `YESNO`=SSS `ULL`=10000000
-alter table t1 one_or_two=two;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `complex`='c,c,c',
- `b` int(11) DEFAULT NULL
-) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `YESNO`=SSS `ULL`=10000000 `one_or_two`=two
-drop table t1;
-#illegal value error
-SET SQL_MODE='';
-CREATE TABLE t1 (a int) ENGINE=example ULL=10000000000000000000 one_or_two='ttt' YESNO=SSS;
-ERROR HY000: Incorrect value '10000000000000000000' for option 'ULL'
-CREATE TABLE t1 (a int) ENGINE=example ULL=10.00;
-ERROR 42000: Only integers allowed as number here near '10.00' at line 1
-CREATE TABLE t1 (a int) ENGINE=example ULL=1e2;
-ERROR 42000: Only integers allowed as number here near '1e2' at line 1
-CREATE TABLE t1 (a int) ENGINE=example ULL=0x1234;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `ULL`=4660
-SET example_varopt_default=33;
-select create_options from information_schema.tables where table_schema='test' and table_name='t1';
-create_options
-`ULL`=4660
-ALTER TABLE t1 ULL=DEFAULT;
-Warnings:
-Note 1105 EXAMPLE DEBUG: ULL 4660 -> 4294967295
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=EXAMPLE DEFAULT CHARSET=latin1
-DROP TABLE t1;
-create table t1 (a int) engine=example;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `VAROPT`=33
-drop table t1;
-create table t1 (a int) engine=example varopt=15;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `varopt`=15
-alter table t1 varopt=default;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `VAROPT`=33
-drop table t1;
-SET @@SQL_MODE=@OLD_SQL_MODE;
-select 1;
-1
-1
-UNINSTALL PLUGIN example;
-#
-# Bug #16194302 SUPPORT FOR FLOATING-POINT SYSTEM
-# VARIABLES USING THE PLUGIN INTERFACE.
-#
-INSTALL PLUGIN example SONAME 'ha_example';
-SET GLOBAL example_double_var = -0.1;
-Warnings:
-Warning 1292 Truncated incorrect example_double_var value: '-0.1'
-SELECT @@GLOBAL.example_double_var;
-@@GLOBAL.example_double_var
-0.500000
-SET GLOBAL example_double_var = 0.000001;
-Warnings:
-Warning 1292 Truncated incorrect example_double_var value: '0.000001'
-SELECT @@GLOBAL.example_double_var;
-@@GLOBAL.example_double_var
-0.500000
-SET GLOBAL example_double_var = 0.4;
-Warnings:
-Warning 1292 Truncated incorrect example_double_var value: '0.4'
-SELECT @@GLOBAL.example_double_var;
-@@GLOBAL.example_double_var
-0.500000
-SET GLOBAL example_double_var = 123.456789;
-SELECT @@GLOBAL.example_double_var;
-@@GLOBAL.example_double_var
-123.456789
-SET GLOBAL example_double_var = 500;
-SELECT @@GLOBAL.example_double_var;
-@@GLOBAL.example_double_var
-500.000000
-SET GLOBAL example_double_var = 999.999999;
-SELECT @@GLOBAL.example_double_var;
-@@GLOBAL.example_double_var
-999.999999
-SET GLOBAL example_double_var = 1000.51;
-Warnings:
-Warning 1292 Truncated incorrect example_double_var value: '1000.51'
-SELECT @@GLOBAL.example_double_var;
-@@GLOBAL.example_double_var
-1000.500000
-SET SESSION example_double_thdvar = -0.1;
-Warnings:
-Warning 1292 Truncated incorrect example_double_thdvar value: '-0.1'
-SELECT @@SESSION.example_double_thdvar;
-@@SESSION.example_double_thdvar
-0.500000
-SET SESSION example_double_thdvar = 0.000001;
-Warnings:
-Warning 1292 Truncated incorrect example_double_thdvar value: '0.000001'
-SELECT @@SESSION.example_double_thdvar;
-@@SESSION.example_double_thdvar
-0.500000
-SET SESSION example_double_thdvar = 0.4;
-Warnings:
-Warning 1292 Truncated incorrect example_double_thdvar value: '0.4'
-SELECT @@SESSION.example_double_thdvar;
-@@SESSION.example_double_thdvar
-0.500000
-SET SESSION example_double_thdvar = 123.456789;
-SELECT @@SESSION.example_double_thdvar;
-@@SESSION.example_double_thdvar
-123.456789
-SET SESSION example_double_thdvar = 500;
-SELECT @@SESSION.example_double_thdvar;
-@@SESSION.example_double_thdvar
-500.000000
-SET SESSION example_double_thdvar = 999.999999;
-SELECT @@SESSION.example_double_thdvar;
-@@SESSION.example_double_thdvar
-999.999999
-SET SESSION example_double_thdvar = 1000.51;
-Warnings:
-Warning 1292 Truncated incorrect example_double_thdvar value: '1000.51'
-SELECT @@SESSION.example_double_thdvar;
-@@SESSION.example_double_thdvar
-1000.500000
-UNINSTALL PLUGIN example;
-UNINSTALL PLUGIN MyISAM;
-ERROR HY000: Built-in plugins cannot be deleted
-select plugin_name from information_schema.plugins where plugin_library like 'ha_example%';
-plugin_name
-install soname 'ha_example';
-select plugin_name from information_schema.plugins where plugin_library like 'ha_example%';
-plugin_name
-EXAMPLE
-UNUSABLE
-uninstall plugin example;
-select plugin_name from information_schema.plugins where plugin_library like 'ha_example%';
-plugin_name
-UNUSABLE
-install soname 'ha_example';
-select plugin_name from information_schema.plugins where plugin_library like 'ha_example%';
-plugin_name
-EXAMPLE
-UNUSABLE
-uninstall soname 'ha_example';
-select plugin_name from information_schema.plugins where plugin_library like 'ha_example%';
-plugin_name
-#
-# MDEV-5309 - RENAME TABLE does not check for existence of the table's
-# engine
-#
-INSTALL PLUGIN example SONAME 'ha_example';
-CREATE TABLE t1(a INT) ENGINE=EXAMPLE;
-SELECT * FROM t1;
-a
-FLUSH TABLES;
-UNINSTALL PLUGIN example;
-RENAME TABLE t1 TO t2;
-ERROR 42S02: Table 'test.t1' doesn't exist
-DROP TABLE t1;
diff --git a/mysql-test/r/plugin_auth.result b/mysql-test/r/plugin_auth.result
deleted file mode 100644
index e470cc010c0..00000000000
--- a/mysql-test/r/plugin_auth.result
+++ /dev/null
@@ -1,491 +0,0 @@
-SET GLOBAL SQL_MODE="";
-SET LOCAL SQL_MODE="";
-SELECT PLUGIN_STATUS, PLUGIN_TYPE, PLUGIN_DESCRIPTION
-FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_NAME='test_plugin_server';
-PLUGIN_STATUS ACTIVE
-PLUGIN_TYPE AUTHENTICATION
-PLUGIN_DESCRIPTION plugin API test plugin
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-SELECT plugin,authentication_string FROM mysql.user WHERE User='plug';
-plugin authentication_string
-test_plugin_server plug_dest
-## test plugin auth
-ERROR 28000: Access denied for user 'plug'@'localhost' (using password: YES)
-GRANT PROXY ON plug_dest TO plug;
-test proxies_priv columns
-SELECT * FROM mysql.proxies_priv WHERE user !='root';
-Host User Proxied_host Proxied_user With_grant Grantor Timestamp
-xx plug % plug_dest 0 root@localhost xx
-test mysql.proxies_priv;
-SHOW CREATE TABLE mysql.proxies_priv;
-Table Create Table
-proxies_priv CREATE TABLE `proxies_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Proxied_host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Proxied_user` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `With_grant` tinyint(1) NOT NULL DEFAULT 0,
- `Grantor` char(141) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- PRIMARY KEY (`Host`,`User`,`Proxied_host`,`Proxied_user`),
- KEY `Grantor` (`Grantor`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User proxy privileges'
-connect plug_con,localhost,plug,plug_dest;
-connection plug_con;
-select USER(),CURRENT_USER();
-USER() CURRENT_USER()
-plug@localhost plug_dest@%
-## test SET PASSWORD
-SET PASSWORD = PASSWORD('plug_dest');
-connection default;
-disconnect plug_con;
-## test bad credentials
-ERROR 28000: Access denied for user 'plug'@'localhost' (using password: YES)
-## test bad default plugin : should get CR_AUTH_PLUGIN_CANNOT_LOAD
-## test correct default plugin
-connect plug_con_rightp,localhost,plug,plug_dest,,,,,auth_test_plugin;
-connection plug_con_rightp;
-select USER(),CURRENT_USER();
-USER() CURRENT_USER()
-plug@localhost plug_dest@%
-connection default;
-disconnect plug_con_rightp;
-## test no_auto_create_user sql mode with plugin users
-SET @@sql_mode=no_auto_create_user;
-GRANT INSERT ON TEST.* TO grant_user IDENTIFIED WITH 'test_plugin_server';
-SET @@sql_mode="";
-DROP USER grant_user;
-## test utf-8 user name
-CREATE USER `Ÿ` IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-GRANT PROXY ON plug_dest TO `Ÿ`;
-connect non_ascii,localhost,Ÿ,plug_dest;
-connection non_ascii;
-select USER(),CURRENT_USER();
-USER() CURRENT_USER()
-Ÿ@localhost plug_dest@%
-connection default;
-disconnect non_ascii;
-DROP USER `Ÿ`;
-## test GRANT ... IDENTIFIED WITH/BY ...
-CREATE DATABASE test_grant_db;
-# create new user via GRANT WITH
-GRANT ALL PRIVILEGES ON test_grant_db.* TO new_grant_user
-IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-GRANT PROXY ON plug_dest TO new_grant_user;
-connect plug_con_grant,localhost,new_grant_user,plug_dest;
-connection plug_con_grant;
-select USER(),CURRENT_USER();
-USER() CURRENT_USER()
-new_grant_user@localhost plug_dest@%
-USE test_grant_db;
-CREATE TABLE t1 (a INT);
-DROP TABLE t1;
-connection default;
-disconnect plug_con_grant;
-REVOKE ALL PRIVILEGES ON test_grant_db.* FROM new_grant_user;
-# try re-create existing user via GRANT IDENTIFIED BY
-GRANT ALL PRIVILEGES ON test_grant_db.* TO new_grant_user
-IDENTIFIED BY 'new_password';
-connect(localhost,new_grant_user,plug_dest,test,MYSQL_PORT,MYSQL_SOCK);
-connect plug_con_grant_deny,localhost,new_grant_user,plug_dest;
-ERROR 28000: Access denied for user 'new_grant_user'@'localhost' (using password: YES)
-connect plug_con_grant,localhost,new_grant_user,new_password;
-connection plug_con_grant;
-select USER(),CURRENT_USER();
-USER() CURRENT_USER()
-new_grant_user@localhost new_grant_user@%
-USE test_grant_db;
-CREATE TABLE t1 (a INT);
-DROP TABLE t1;
-connection default;
-disconnect plug_con_grant;
-DROP USER new_grant_user;
-# try re-create existing user via GRANT IDENTIFIED WITH
-GRANT ALL PRIVILEGES ON test_grant_db.* TO plug
-IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-GRANT ALL PRIVILEGES ON test_grant_db.* TO plug_dest
-IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-REVOKE SELECT on test_grant_db.* FROM joro
-INDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'' at line 2
-REVOKE SELECT on test_grant_db.* FROM joro
-INDENTIFIED BY 'plug_dest_passwd';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INDENTIFIED BY 'plug_dest_passwd'' at line 2
-REVOKE SELECT on test_grant_db.* FROM joro
-INDENTIFIED BY PASSWORD 'plug_dest_passwd';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INDENTIFIED BY PASSWORD 'plug_dest_passwd'' at line 2
-DROP DATABASE test_grant_db;
-## GRANT PROXY tests
-CREATE USER grant_plug IDENTIFIED WITH 'test_plugin_server'
-AS 'grant_plug_dest';
-CREATE USER grant_plug_dest IDENTIFIED BY 'grant_plug_dest_passwd';
-CREATE USER grant_plug_dest2 IDENTIFIED BY 'grant_plug_dest_passwd2';
-# ALL PRIVILEGES doesn't include PROXY
-GRANT ALL PRIVILEGES ON *.* TO grant_plug;
-ERROR 28000: Access denied for user 'grant_plug'@'localhost' (using password: YES)
-GRANT ALL PRIVILEGES,PROXY ON grant_plug_dest TO grant_plug;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROXY ON grant_plug_dest TO grant_plug' at line 1
-this should fail : can't combine PROXY
-GRANT ALL SELECT,PROXY ON grant_plug_dest TO grant_plug;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT,PROXY ON grant_plug_dest TO grant_plug' at line 1
-# this should fail : no such grant
-REVOKE PROXY ON grant_plug_dest FROM grant_plug;
-ERROR 42000: There is no such grant defined for user 'grant_plug' on host '%'
-connect grant_plug_dest_con,localhost,grant_plug_dest,grant_plug_dest_passwd;
-connection grant_plug_dest_con;
-in grant_plug_dest_con
-## testing what an ordinary user can grant
-this should fail : no rights to grant all
-GRANT PROXY ON ''@'%%' TO grant_plug;
-ERROR 28000: Access denied for user 'grant_plug_dest'@'localhost'
-this should fail : not the same user
-GRANT PROXY ON grant_plug TO grant_plug_dest;
-ERROR 28000: Access denied for user 'grant_plug_dest'@'localhost'
-This is a valid grant
-GRANT PROXY ON grant_plug_dest TO grant_plug;
-REVOKE PROXY ON grant_plug_dest FROM grant_plug;
-this should work : same user
-GRANT PROXY ON grant_plug_dest TO grant_plug_dest2;
-REVOKE PROXY ON grant_plug_dest FROM grant_plug_dest2;
-this should fail : not the same user
-GRANT PROXY ON grant_plug_dest@localhost TO grant_plug WITH GRANT OPTION;
-ERROR 28000: Access denied for user 'grant_plug_dest'@'localhost'
-this should fail : not the same user
-REVOKE PROXY ON grant_plug_dest@localhost FROM grant_plug;
-ERROR 28000: Access denied for user 'grant_plug_dest'@'localhost'
-this should fail : can't create users
-GRANT PROXY ON grant_plug_dest TO grant_plug@localhost;
-ERROR 42000: You are not allowed to create a user with GRANT
-connection default;
-in default connection
-disconnect grant_plug_dest_con;
-# test what root can grant
-should work : root has PROXY to all users
-GRANT PROXY ON ''@'%%' TO grant_plug;
-REVOKE PROXY ON ''@'%%' FROM grant_plug;
-should work : root has PROXY to all users
-GRANT PROXY ON ''@'%%' TO proxy_admin IDENTIFIED BY 'test'
-WITH GRANT OPTION;
-need USAGE : PROXY doesn't contain it.
-GRANT USAGE on *.* TO proxy_admin;
-connect proxy_admin_con,localhost,proxy_admin,test;
-connection proxy_admin_con;
-in proxy_admin_con;
-should work : proxy_admin has proxy to ''@'%%'
-GRANT PROXY ON future_user TO grant_plug;
-connection default;
-in default connection
-disconnect proxy_admin_con;
-SHOW GRANTS FOR grant_plug;
-Grants for grant_plug@%
-GRANT ALL PRIVILEGES ON *.* TO 'grant_plug'@'%' IDENTIFIED VIA test_plugin_server USING 'grant_plug_dest'
-GRANT PROXY ON 'future_user'@'%' TO 'grant_plug'@'%'
-REVOKE PROXY ON future_user FROM grant_plug;
-SHOW GRANTS FOR grant_plug;
-Grants for grant_plug@%
-GRANT ALL PRIVILEGES ON *.* TO 'grant_plug'@'%' IDENTIFIED VIA test_plugin_server USING 'grant_plug_dest'
-## testing drop user
-CREATE USER test_drop@localhost;
-GRANT PROXY ON future_user TO test_drop@localhost;
-SHOW GRANTS FOR test_drop@localhost;
-Grants for test_drop@localhost
-GRANT USAGE ON *.* TO 'test_drop'@'localhost'
-GRANT PROXY ON 'future_user'@'%' TO 'test_drop'@'localhost'
-DROP USER test_drop@localhost;
-SELECT * FROM mysql.proxies_priv WHERE Host = 'test_drop' AND User = 'localhost';
-Host User Proxied_host Proxied_user With_grant Grantor Timestamp
-DROP USER proxy_admin;
-DROP USER grant_plug,grant_plug_dest,grant_plug_dest2;
-## END GRANT PROXY tests
-## cleanup
-DROP USER plug;
-DROP USER plug_dest;
-## @@proxy_user tests
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-GRANT PROXY ON plug_dest TO plug;
-SELECT USER(),CURRENT_USER(),@@LOCAL.proxy_user;
-USER() CURRENT_USER() @@LOCAL.proxy_user
-root@localhost root@localhost NULL
-SELECT @@GLOBAL.proxy_user;
-ERROR HY000: Variable 'proxy_user' is a SESSION variable
-SELECT @@LOCAL.proxy_user;
-@@LOCAL.proxy_user
-NULL
-SET GLOBAL proxy_user = 'test';
-ERROR HY000: Variable 'proxy_user' is a read only variable
-SET LOCAL proxy_user = 'test';
-ERROR HY000: Variable 'proxy_user' is a read only variable
-SELECT @@LOCAL.proxy_user;
-@@LOCAL.proxy_user
-NULL
-connect plug_con,localhost,plug,plug_dest;
-connection plug_con;
-# in connection plug_con
-SELECT @@LOCAL.proxy_user;
-@@LOCAL.proxy_user
-'plug'@'%'
-connection default;
-# in connection default
-disconnect plug_con;
-## cleanup
-DROP USER plug;
-DROP USER plug_dest;
-## END @@proxy_user tests
-## @@external_user tests
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-GRANT PROXY ON plug_dest TO plug;
-SELECT USER(),CURRENT_USER(),@@LOCAL.external_user;
-USER() CURRENT_USER() @@LOCAL.external_user
-root@localhost root@localhost NULL
-SELECT @@GLOBAL.external_user;
-ERROR HY000: Variable 'external_user' is a SESSION variable
-SELECT @@LOCAL.external_user;
-@@LOCAL.external_user
-NULL
-SET GLOBAL external_user = 'test';
-ERROR HY000: Variable 'external_user' is a read only variable
-SET LOCAL external_user = 'test';
-ERROR HY000: Variable 'external_user' is a read only variable
-SELECT @@LOCAL.external_user;
-@@LOCAL.external_user
-NULL
-connect plug_con,localhost,plug,plug_dest;
-connection plug_con;
-# in connection plug_con
-SELECT @@LOCAL.external_user;
-@@LOCAL.external_user
-plug_dest
-connection default;
-# in connection default
-disconnect plug_con;
-## cleanup
-DROP USER plug;
-DROP USER plug_dest;
-## END @@external_user tests
-#
-# Bug #56798 : Wrong credentials assigned when using a proxy user.
-#
-GRANT ALL PRIVILEGES ON *.* TO power_user;
-GRANT USAGE ON anonymous_db.* TO ''@'%%'
- IDENTIFIED WITH 'test_plugin_server' AS 'power_user';
-GRANT PROXY ON power_user TO ''@'%%';
-CREATE DATABASE confidential_db;
-connect plug_con,localhost, test_login_user, power_user, confidential_db;
-SELECT user(),current_user(),@@proxy_user;
-user() current_user() @@proxy_user
-test_login_user@localhost power_user@% ''@'%%'
-connection default;
-disconnect plug_con;
-DROP USER power_user;
-DROP USER ''@'%%';
-DROP DATABASE confidential_db;
-# Test case #2 (crash with double grant proxy)
-CREATE USER ''@'%%' IDENTIFIED WITH 'test_plugin_server' AS 'standard_user';
-CREATE USER standard_user;
-CREATE DATABASE shared;
-GRANT ALL PRIVILEGES ON shared.* TO standard_user;
-GRANT PROXY ON standard_user TO ''@'%%';
-#should not crash
-GRANT PROXY ON standard_user TO ''@'%%';
-DROP USER ''@'%%';
-DROP USER standard_user;
-DROP DATABASE shared;
-#
-# Bug #57551 : Live upgrade fails between 5.1.52 -> 5.5.7-rc
-#
-CALL mtr.add_suppression("Missing system table mysql.proxies_priv.");
-DROP TABLE mysql.proxies_priv;
-# Must come back with mysql.proxies_priv absent.
-SELECT * FROM mysql.proxies_priv;
-ERROR 42S02: Table 'mysql.proxies_priv' doesn't exist
-CREATE USER u1@localhost;
-GRANT ALL PRIVILEGES ON *.* TO u1@localhost;
-REVOKE ALL PRIVILEGES ON *.* FROM u1@localhost;
-GRANT ALL PRIVILEGES ON *.* TO u1@localhost;
-CREATE USER u2@localhost;
-GRANT ALL PRIVILEGES ON *.* TO u2@localhost;
-# access denied because of no privileges to root
-GRANT PROXY ON u2@localhost TO u1@localhost;
-ERROR 28000: Access denied for user 'root'@'localhost'
-# access denied because of no privileges to root
-REVOKE PROXY ON u2@localhost FROM u1@localhost;
-ERROR 28000: Access denied for user 'root'@'localhost'
-# go try graning proxy on itself, so that it will need the table
-connect proxy_granter_con,localhost,u2,;
-connection proxy_granter_con;
-GRANT PROXY ON u2@localhost TO u1@localhost;
-ERROR 42S02: Table 'mysql.proxies_priv' doesn't exist
-REVOKE PROXY ON u2@localhost FROM u1@localhost;
-ERROR 42S02: Table 'mysql.proxies_priv' doesn't exist
-connection default;
-disconnect proxy_granter_con;
-# test if REVOKE works without the proxies_priv table
-REVOKE ALL PRIVILEGES ON *.* FROM u1@localhost, u2@localhost;
-# test if DROP USER work without the proxies_priv table
-DROP USER u1@localhost,u2@localhost;
-# test if FLUSH PRIVILEGES works without the proxies_priv table
-FLUSH PRIVILEGES;
-SELECT Host,User,Proxied_host,Proxied_user,With_grant FROM mysql.proxies_priv;
-Host localhost
-User root
-Proxied_host
-Proxied_user
-With_grant 1
-FLUSH PRIVILEGES;
-#
-# Bug#58139 : default-auth option not recognized in MySQL standard
-# command line clients
-#
-# Executing 'mysql'
-1
-1
-# Executing 'mysqladmin'
-mysqld is alive
-# Executing 'mysqldump'
-# Executing 'mysql_upgrade'
-#
-# Bug #59657: Move the client authentication_pam plugin into the
-# server repository
-#
-CREATE USER uplain@localhost IDENTIFIED WITH 'cleartext_plugin_server'
- AS 'cleartext_test';
-## test plugin auth
-ERROR 28000: Access denied for user 'uplain'@'localhost' (using password: YES)
-connect cleartext_con,localhost,uplain,cleartext_test;
-connection cleartext_con;
-select USER(),CURRENT_USER();
-USER() CURRENT_USER()
-uplain@localhost uplain@localhost
-connection default;
-disconnect cleartext_con;
-DROP USER uplain@localhost;
-#
-# Bug #59038 : mysql.user.authentication_string column
-# causes configuration wizard to fail
-INSERT IGNORE INTO mysql.user(
-Host,
-User,
-Password,
-Select_priv,
-Insert_priv,
-Update_priv,
-Delete_priv,
-Create_priv,
-Drop_priv,
-Reload_priv,
-Shutdown_priv,
-Process_priv,
-File_priv,
-Grant_priv,
-References_priv,
-Index_priv,
-Alter_priv,
-Show_db_priv,
-Super_priv,
-Create_tmp_table_priv,
-Lock_tables_priv,
-Execute_priv,
-Repl_slave_priv,
-Repl_client_priv,
-/*!50001
-Create_view_priv,
-Show_view_priv,
-Create_routine_priv,
-Alter_routine_priv,
-Create_user_priv,
-*/
-ssl_type,
-ssl_cipher,
-x509_issuer,
-x509_subject,
-max_questions,
-max_updates,
-max_connections)
-VALUES (
-'localhost',
-'inserttest', '',
-'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y',
-'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y',
-/*!50001 'Y', 'Y', 'Y', 'Y', 'Y', */'', '', '', '', '0', '0', '0');
-Warnings:
-Warning 1364 Field 'authentication_string' doesn't have a default value
-FLUSH PRIVILEGES;
-DROP USER inserttest@localhost;
-SELECT IS_NULLABLE, COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE
-COLUMN_NAME IN ('authentication_string', 'plugin') AND
-TABLE_NAME='user' AND
-TABLE_SCHEMA='mysql'
-ORDER BY COLUMN_NAME;
-IS_NULLABLE COLUMN_NAME
-NO authentication_string
-NO plugin
-#
-# Bug #11936829: diff. between mysql.user (authentication_string)
-# in fresh and upgraded 5.5.11
-#
-SELECT IS_NULLABLE, COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS
-WHERE TABLE_SCHEMA= 'mysql' AND TABLE_NAME= 'user' AND
-COLUMN_NAME IN ('plugin', 'authentication_string')
-ORDER BY COLUMN_NAME;
-IS_NULLABLE COLUMN_NAME
-NO authentication_string
-NO plugin
-ALTER TABLE mysql.user MODIFY plugin char(64) DEFAULT '' NOT NULL;
-ALTER TABLE mysql.user MODIFY authentication_string TEXT NOT NULL;
-Run mysql_upgrade on a 5.5.10 external authentication column layout
-SELECT IS_NULLABLE, COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS
-WHERE TABLE_SCHEMA= 'mysql' AND TABLE_NAME= 'user' AND
-COLUMN_NAME IN ('plugin', 'authentication_string')
-ORDER BY COLUMN_NAME;
-IS_NULLABLE COLUMN_NAME
-NO authentication_string
-NO plugin
-#
-# Bug # 11766641: 59792: BIN/MYSQL -UUNKNOWN -PUNKNOWN
-# .-> USING PASSWORD: NO
-#
-# shoud contain "using password=yes"
-ERROR 1045 (28000): Access denied for user 'unknown'@'localhost' (using password: YES)
-# shoud contain "using password=no"
-ERROR 1045 (28000): Access denied for user 'unknown'@'localhost' (using password: NO)
-#
-# Bug #12610784: SET PASSWORD INCORRECTLY KEEP AN OLD EMPTY PASSWORD
-#
-CREATE USER bug12610784@localhost;
-SET PASSWORD FOR bug12610784@localhost = PASSWORD('secret');
-ERROR 28000: Access denied for user 'bug12610784'@'localhost' (using password: NO)
-connect b12610784,localhost,bug12610784,secret,test;
-connection default;
-disconnect b12610784;
-DROP USER bug12610784@localhost;
-#
-# Bug #12818542: PAM: ADDING PASSWORD FOR AN ACCOUNT DISABLES PAM
-# AUTHENTICATION SETTINGS
-#
-CREATE USER bug12818542@localhost
-IDENTIFIED WITH 'test_plugin_server' AS 'bug12818542_dest';
-CREATE USER bug12818542_dest@localhost
-IDENTIFIED BY 'bug12818542_dest_passwd';
-GRANT PROXY ON bug12818542_dest@localhost TO bug12818542@localhost;
-connect bug12818542_con,localhost,bug12818542,bug12818542_dest;
-connection bug12818542_con;
-SELECT USER(),CURRENT_USER();
-USER() CURRENT_USER()
-bug12818542@localhost bug12818542_dest@localhost
-SET PASSWORD = PASSWORD('bruhaha');
-connection default;
-disconnect bug12818542_con;
-connect bug12818542_con2,localhost,bug12818542,bug12818542_dest;
-connection bug12818542_con2;
-SELECT USER(),CURRENT_USER();
-USER() CURRENT_USER()
-bug12818542@localhost bug12818542_dest@localhost
-connection default;
-disconnect bug12818542_con2;
-DROP USER bug12818542@localhost;
-DROP USER bug12818542_dest@localhost;
-SET GLOBAL SQL_MODE=default;
-End of 5.5 tests
diff --git a/mysql-test/r/plugin_auth_qa.result b/mysql-test/r/plugin_auth_qa.result
deleted file mode 100644
index 4f274c45971..00000000000
--- a/mysql-test/r/plugin_auth_qa.result
+++ /dev/null
@@ -1,326 +0,0 @@
-set sql_mode="";
-CREATE DATABASE test_user_db;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-========== test 1.1 ======================================================
-CREATE USER plug IDENTIFIED WITH test_plugin_server;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server
-DROP USER plug;
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH test_plugin_server;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server
-REVOKE ALL PRIVILEGES ON test_user_db.* FROM plug;
-DROP USER plug;
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server
-DROP USER plug;
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server
-REVOKE ALL PRIVILEGES ON test_user_db.* FROM plug;
-DROP USER plug;
-CREATE USER plug IDENTIFIED WITH test_plugin_server AS '';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server
-DROP USER plug;
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH test_plugin_server AS '';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server
-REVOKE ALL PRIVILEGES ON test_user_db.* FROM plug;
-DROP USER plug;
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server' AS;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-CREATE USER plug IDENTIFIED WITH test_plugin_server AS plug_dest;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'plug_dest' at line 1
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH test_plugin_server AS plug_dest;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'plug_dest' at line 1
-========== test 1.1 syntax errors ========================================
-CREATE USER plug IDENTIFIED WITH AS plug_dest;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS plug_dest' at line 1
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH AS plug_dest;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS plug_dest' at line 1
-CREATE USER plug IDENTIFIED WITH;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-CREATE USER plug IDENTIFIED AS '';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS ''' at line 1
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED AS '';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS ''' at line 1
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' IDENTIFIED WITH 'test_plugin_server';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IDENTIFIED WITH 'test_plugin_server'' at line 1
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug
-IDENTIFIED WITH 'test_plugin_server' IDENTIFIED WITH 'test_plugin_server';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IDENTIFIED WITH 'test_plugin_server'' at line 2
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS '' AS 'plug_dest';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS 'plug_dest'' at line 1
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug AS '' AS 'plug_dest';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS '' AS 'plug_dest'' at line 1
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS ''
-IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IDENTIFIED WITH test_plugin_server AS 'plug_dest'' at line 2
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server' AS ''
- IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IDENTIFIED WITH test_plugin_server AS 'plug_dest'' at line 2
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd'
-IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'' at line 2
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED BY 'plug_dest_passwd'
- IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'' at line 2
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'
-USER plug_dest IDENTIFIED by 'plug_dest_pwd';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'USER plug_dest IDENTIFIED by 'plug_dest_pwd'' at line 2
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'
- USER plug_dest IDENTIFIED by 'plug_dest_pwd';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'USER plug_dest IDENTIFIED by 'plug_dest_pwd'' at line 2
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'
-plug_dest IDENTIFIED by 'plug_dest_pwd';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'plug_dest IDENTIFIED by 'plug_dest_pwd'' at line 2
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'
- plug_dest IDENTIFIED by 'plug_dest_pwd';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'plug_dest IDENTIFIED by 'plug_dest_pwd'' at line 2
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'
-IDENTIFIED by 'plug_dest_pwd';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IDENTIFIED by 'plug_dest_pwd'' at line 2
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'
- IDENTIFIED by 'plug_dest_pwd';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IDENTIFIED by 'plug_dest_pwd'' at line 2
-========== test 1.1 combinations ==========================
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-========== test 1.1.1.6/1.1.2.5 ============================
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server plug_dest
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server plug_dest
-plug_dest
-DROP USER plug, plug_dest;
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server plug_dest
-DROP USER plug;
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug_dest
-DROP USER plug_dest;
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server plug_dest
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server plug_dest
-plug_dest
-DROP USER plug, plug_dest;
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server plug_dest
-DROP USER plug;
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug_dest
-DROP USER plug_dest;
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server plug_dest
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug_dest IDENTIFIED BY 'plug_dest_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server plug_dest
-plug_dest
-DROP USER plug, plug_dest;
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server plug_dest
-DROP USER plug;
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug_dest IDENTIFIED BY 'plug_dest_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug_dest
-DROP USER plug_dest;
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server';
-DROP USER plug;
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-ERROR HY000: Operation CREATE USER failed for 'plug'@'%'
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server';
-ERROR HY000: Operation CREATE USER failed for 'plug'@'%'
-DROP USER plug;
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
-user plugin authentication_string password
-plug test_plugin_server plug_dest
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED BY 'plug_dest_passwd';
-SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
-user plugin authentication_string password
-plug *939AEE68989794C0F408277411C26055CDF41119
-DROP USER plug;
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-CREATE USER plug IDENTIFIED BY 'plug_dest_passwd';
-ERROR HY000: Operation CREATE USER failed for 'plug'@'%'
-DROP USER plug;
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-CREATE USER plug_dest IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
-user plugin authentication_string password
-plug test_plugin_server plug_dest
-plug_dest test_plugin_server plug_dest
-DROP USER plug,plug_dest;
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
-SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
-user plugin authentication_string password
-plug test_plugin_server plug_dest
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug_dest
-IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
-user plugin authentication_string password
-plug test_plugin_server plug_dest
-plug_dest test_plugin_server plug_dest
-DROP USER plug,plug_dest;
-========== test 1.1.1.1/1.1.2.1/1.1.1.5 ====================
-SET NAMES utf8;
-CREATE USER plüg IDENTIFIED WITH 'test_plugin_server' AS 'plüg_dest';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plüg test_plugin_server plüg_dest
-DROP USER plüg;
-CREATE USER plüg_dest IDENTIFIED BY 'plug_dest_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plüg_dest
-DROP USER plüg_dest;
-SET NAMES ascii;
-CREATE USER 'plüg' IDENTIFIED WITH 'test_plugin_server' AS 'plüg_dest';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-pl??g test_plugin_server pl??g_dest
-DROP USER 'plüg';
-CREATE USER 'plüg_dest' IDENTIFIED BY 'plug_dest_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-pl??g_dest
-DROP USER 'plüg_dest';
-SET NAMES latin1;
-========== test 1.1.1.5 ====================================
-CREATE USER 'plüg' IDENTIFIED WITH 'test_plügin_server' AS 'plüg_dest';
-ERROR HY000: Plugin 'test_plügin_server' is not loaded
-CREATE USER 'plug' IDENTIFIED WITH 'test_plugin_server' AS 'plüg_dest';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server plüg_dest
-DROP USER 'plug';
-CREATE USER 'plüg_dest' IDENTIFIED BY 'plug_dest_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plüg_dest
-DROP USER 'plüg_dest';
-SET NAMES utf8;
-CREATE USER plüg IDENTIFIED WITH 'test_plügin_server' AS 'plüg_dest';
-ERROR HY000: Plugin 'test_plügin_server' is not loaded
-CREATE USER 'plüg' IDENTIFIED WITH 'test_plugin_server' AS 'plüg_dest';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plüg test_plugin_server plüg_dest
-DROP USER 'plüg';
-CREATE USER 'plüg_dest' IDENTIFIED BY 'plug_dest_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plüg_dest
-DROP USER 'plüg_dest';
-CREATE USER plüg IDENTIFIED WITH test_plugin_server AS 'plüg_dest';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plüg test_plugin_server plüg_dest
-DROP USER plüg;
-CREATE USER plüg_dest IDENTIFIED BY 'plug_dest_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plüg_dest
-DROP USER plüg_dest;
-========== test 1.1.1.2/1.1.2.2=============================
-SET @auth_name= 'test_plugin_server';
-CREATE USER plug IDENTIFIED WITH @auth_name AS 'plug_dest';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@auth_name AS 'plug_dest'' at line 1
-SET @auth_string= 'plug_dest';
-CREATE USER plug IDENTIFIED WITH test_plugin_server AS @auth_string;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@auth_string' at line 1
-========== test 1.1.1.3/1.1.2.3=============================
-CREATE USER plug IDENTIFIED WITH 'hh''s_test_plugin_server' AS 'plug_dest';
-ERROR HY000: Plugin 'hh's_test_plugin_server' is not loaded
-CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'hh''s_plug_dest';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug test_plugin_server hh's_plug_dest
-DROP USER plug;
-CREATE USER 'hh''s_plug_dest' IDENTIFIED BY 'plug_dest_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-hh's_plug_dest
-DROP USER 'hh''s_plug_dest';
-========== test 1.1.1.4 ====================================
-CREATE USER plug IDENTIFIED WITH hh''s_test_plugin_server AS 'plug_dest';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '''s_test_plugin_server AS 'plug_dest'' at line 1
-========== test 1.1.3.1 ====================================
-GRANT INSERT ON test_user_db.* TO grant_user IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-grant_user test_plugin_server plug_dest
-CREATE USER plug_dest;
-DROP USER plug_dest;
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug_dest;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-grant_user test_plugin_server plug_dest
-plug_dest
-DROP USER grant_user,plug_dest;
-set @save_sql_mode= @@sql_mode;
-SET @@sql_mode=no_auto_create_user;
-GRANT INSERT ON test_user_db.* TO grant_user IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-grant_user test_plugin_server plug_dest
-CREATE USER plug_dest;
-DROP USER plug_dest;
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug_dest;
-ERROR 28000: Can't find any matching row in the user table
-DROP USER grant_user;
-GRANT INSERT ON test_user_db.* TO grant_user IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-grant_user test_plugin_server plug_dest
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
-user plugin authentication_string password
-grant_user test_plugin_server plug_dest
-plug_dest *939AEE68989794C0F408277411C26055CDF41119
-DROP USER plug_dest;
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug_dest IDENTIFIED BY 'plug_user_passwd';
-SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
-user plugin authentication_string password
-grant_user test_plugin_server plug_dest
-plug_dest *560881EB651416CEF77314D07D55EDCD5FC1BD6D
-DROP USER grant_user,plug_dest;
-set @@sql_mode= @save_sql_mode;
-DROP DATABASE test_user_db;
diff --git a/mysql-test/r/plugin_auth_qa_1.result b/mysql-test/r/plugin_auth_qa_1.result
deleted file mode 100644
index 42a7b1491c0..00000000000
--- a/mysql-test/r/plugin_auth_qa_1.result
+++ /dev/null
@@ -1,330 +0,0 @@
-CREATE DATABASE test_user_db;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-========== test 1.1.3.2 ====================================
-CREATE USER plug_user IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-GRANT PROXY ON plug_dest TO plug_user;
-current_user()
-plug_dest@%
-user()
-plug_user@localhost
-Tables_in_test_user_db
-t1
-REVOKE PROXY ON plug_dest FROM plug_user;
-ERROR 1045 (28000): Access denied for user 'plug_user'@'localhost' (using password: YES)
-DROP USER plug_user,plug_dest;
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug_user
-IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug_dest IDENTIFIED BY 'plug_dest_passwd';
-GRANT PROXY ON plug_dest TO plug_user;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug_dest
-plug_user test_plugin_server plug_dest
-1)
-current_user()
-plug_dest@%
-user()
-plug_user@localhost
-Tables_in_test_user_db
-t1
-REVOKE ALL PRIVILEGES ON test_user_db.* FROM 'plug_user';
-2)
-current_user()
-plug_dest@%
-user()
-plug_user@localhost
-Tables_in_test_user_db
-t1
-REVOKE PROXY ON plug_dest FROM plug_user;
-3)
-ERROR 1045 (28000): Access denied for user 'plug_user'@'localhost' (using password: YES)
-DROP USER plug_user,plug_dest;
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug_user
-IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-1)
-ERROR 1045 (28000): Access denied for user 'plug_user'@'localhost' (using password: YES)
-GRANT PROXY ON plug_dest TO plug_user;
-2)
-current_user()
-plug_dest@%
-user()
-plug_user@localhost
-Tables_in_test_user_db
-t1
-REVOKE ALL PRIVILEGES ON test_user_db.* FROM 'plug_user';
-DROP USER plug_user,plug_dest;
-========== test 1.2 ========================================
-GRANT ALL PRIVILEGES ON test_user_db.* TO plug_user
-IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-GRANT PROXY ON plug_dest TO plug_user;
-current_user()
-plug_dest@%
-user()
-plug_user@localhost
-RENAME USER plug_dest TO new_dest;
-ERROR 1045 (28000): Access denied for user 'plug_user'@'localhost' (using password: YES)
-GRANT PROXY ON new_dest TO plug_user;
-ERROR 1045 (28000): Access denied for user 'plug_user'@'localhost' (using password: YES)
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-new_dest
-plug_user test_plugin_server plug_dest
-DROP USER plug_user,new_dest;
-CREATE USER plug_user
-IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-ERROR 1045 (28000): Access denied for user 'plug_user'@'localhost' (using password: YES)
-GRANT PROXY ON plug_dest TO plug_user;
-current_user()
-plug_dest@%
-user()
-plug_user@localhost
-RENAME USER plug_dest TO new_dest;
-ERROR 1045 (28000): Access denied for user 'plug_user'@'localhost' (using password: YES)
-GRANT PROXY ON new_dest TO plug_user;
-ERROR 1045 (28000): Access denied for user 'plug_user'@'localhost' (using password: YES)
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-new_dest
-plug_user test_plugin_server plug_dest
-DROP USER plug_user,new_dest;
-CREATE USER plug_user
-IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-GRANT PROXY ON plug_dest TO plug_user;
-connect plug_user,localhost,plug_user,plug_dest;
-select USER(),CURRENT_USER();
-USER() CURRENT_USER()
-plug_user@localhost plug_dest@%
-connection default;
-disconnect plug_user;
-RENAME USER plug_user TO new_user;
-connect plug_user,localhost,new_user,plug_dest;
-select USER(),CURRENT_USER();
-USER() CURRENT_USER()
-new_user@localhost plug_dest@%
-connection default;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-new_user test_plugin_server plug_dest
-plug_dest
-disconnect plug_user;
-UPDATE mysql.user SET user='plug_user' WHERE user='new_user';
-FLUSH PRIVILEGES;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug_dest
-plug_user test_plugin_server plug_dest
-DROP USER plug_dest,plug_user;
-========== test 1.3 ========================================
-CREATE USER plug_user
-IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-GRANT PROXY ON plug_dest TO plug_user;
-connect plug_user,localhost,plug_user,plug_dest;
-select USER(),CURRENT_USER();
-USER() CURRENT_USER()
-plug_user@localhost plug_dest@%
-connection default;
-disconnect plug_user;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-plug_dest
-plug_user test_plugin_server plug_dest
-UPDATE mysql.user SET user='new_user' WHERE user='plug_user';
-FLUSH PRIVILEGES;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-new_user test_plugin_server plug_dest
-plug_dest
-UPDATE mysql.user SET authentication_string='new_dest' WHERE user='new_user';
-FLUSH PRIVILEGES;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-new_user test_plugin_server new_dest
-plug_dest
-UPDATE mysql.user SET plugin='new_plugin_server' WHERE user='new_user';
-FLUSH PRIVILEGES;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-new_user new_plugin_server new_dest
-plug_dest
-ERROR HY000: Plugin 'new_plugin_server' is not loaded
-UPDATE mysql.user SET plugin='test_plugin_server' WHERE user='new_user';
-UPDATE mysql.user SET USER='new_dest' WHERE user='plug_dest';
-FLUSH PRIVILEGES;
-GRANT PROXY ON new_dest TO new_user;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-new_dest
-new_user test_plugin_server new_dest
-connect plug_user,localhost,new_user,new_dest;
-select USER(),CURRENT_USER();
-USER() CURRENT_USER()
-new_user@localhost new_dest@%
-connection default;
-disconnect plug_user;
-UPDATE mysql.user SET USER='plug_dest' WHERE user='new_dest';
-FLUSH PRIVILEGES;
-CREATE USER new_dest IDENTIFIED BY 'new_dest_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-new_dest
-new_user test_plugin_server new_dest
-plug_dest
-GRANT ALL PRIVILEGES ON test.* TO new_user;
-connect plug_user,localhost,new_dest,new_dest_passwd;
-select USER(),CURRENT_USER();
-USER() CURRENT_USER()
-new_dest@localhost new_dest@%
-connection default;
-disconnect plug_user;
-DROP USER new_user,new_dest,plug_dest;
-========== test 2, 2.1, 2.2 ================================
-CREATE USER ''@'%%' IDENTIFIED WITH test_plugin_server AS 'proxied_user';
-CREATE USER proxied_user IDENTIFIED BY 'proxied_user_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
- test_plugin_server proxied_user
-proxied_user
-connect proxy_con,localhost,proxied_user,proxied_user_passwd;
-SELECT USER(),CURRENT_USER();
-USER() CURRENT_USER()
-proxied_user@localhost proxied_user@%
-========== test 2.2.1 ======================================
-SELECT @@proxy_user;
-@@proxy_user
-NULL
-connection default;
-disconnect proxy_con;
-ERROR 28000: Access denied for user 'proxy_user'@'localhost' (using password: YES)
-GRANT PROXY ON proxied_user TO ''@'%%';
-connect proxy_con,localhost,proxied_user,proxied_user_passwd;
-SELECT USER(),CURRENT_USER();
-USER() CURRENT_USER()
-proxied_user@localhost proxied_user@%
-connection default;
-disconnect proxy_con;
-connect proxy_con,localhost,proxy_user,proxied_user;
-SELECT USER(),CURRENT_USER();
-USER() CURRENT_USER()
-proxy_user@localhost proxied_user@%
-========== test 2.2.1 ======================================
-SELECT @@proxy_user;
-@@proxy_user
-''@'%%'
-connection default;
-disconnect proxy_con;
-DROP USER ''@'%%',proxied_user;
-GRANT ALL PRIVILEGES ON test_user_db.* TO ''@'%%'
-IDENTIFIED WITH test_plugin_server AS 'proxied_user';
-CREATE USER proxied_user IDENTIFIED BY 'proxied_user_passwd';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
- test_plugin_server proxied_user
-proxied_user
-connect proxy_con,localhost,proxied_user,proxied_user_passwd;
-SELECT USER(),CURRENT_USER();
-USER() CURRENT_USER()
-proxied_user@localhost proxied_user@%
-SELECT @@proxy_user;
-@@proxy_user
-NULL
-connection default;
-disconnect proxy_con;
-ERROR 28000: Access denied for user 'proxy_user'@'localhost' (using password: YES)
-GRANT PROXY ON proxied_user TO ''@'%%';
-connect proxy_con,localhost,proxied_user,proxied_user_passwd;
-SELECT USER(),CURRENT_USER();
-USER() CURRENT_USER()
-proxied_user@localhost proxied_user@%
-connection default;
-disconnect proxy_con;
-connect proxy_con,localhost,proxy_user,proxied_user;
-SELECT USER(),CURRENT_USER();
-USER() CURRENT_USER()
-proxy_user@localhost proxied_user@%
-SELECT @@proxy_user;
-@@proxy_user
-''@'%%'
-connection default;
-disconnect proxy_con;
-DROP USER ''@'%%',proxied_user;
-CREATE USER ''@'%%' IDENTIFIED WITH test_plugin_server AS 'proxied_user';
-CREATE USER proxied_user_1 IDENTIFIED BY 'proxied_user_1_pwd';
-CREATE USER proxied_user_2 IDENTIFIED BY 'proxied_user_2_pwd';
-CREATE USER proxied_user_3 IDENTIFIED BY 'proxied_user_3_pwd';
-CREATE USER proxied_user_4 IDENTIFIED BY 'proxied_user_4_pwd';
-CREATE USER proxied_user_5 IDENTIFIED BY 'proxied_user_5_pwd';
-GRANT PROXY ON proxied_user_1 TO ''@'%%';
-GRANT PROXY ON proxied_user_2 TO ''@'%%';
-GRANT PROXY ON proxied_user_3 TO ''@'%%';
-GRANT PROXY ON proxied_user_4 TO ''@'%%';
-GRANT PROXY ON proxied_user_5 TO ''@'%%';
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
- test_plugin_server proxied_user
-proxied_user_1
-proxied_user_2
-proxied_user_3
-proxied_user_4
-proxied_user_5
-connect proxy_con_1,localhost,proxied_user_1,'proxied_user_1_pwd';
-connect proxy_con_2,localhost,proxied_user_2,proxied_user_2_pwd;
-connect proxy_con_3,localhost,proxied_user_3,proxied_user_3_pwd;
-connect proxy_con_4,localhost,proxied_user_4,proxied_user_4_pwd;
-connect proxy_con_5,localhost,proxied_user_5,proxied_user_5_pwd;
-connection proxy_con_1;
-SELECT USER(),CURRENT_USER();
-USER() CURRENT_USER()
-proxied_user_1@localhost proxied_user_1@%
-SELECT @@proxy_user;
-@@proxy_user
-NULL
-connection proxy_con_2;
-SELECT USER(),CURRENT_USER();
-USER() CURRENT_USER()
-proxied_user_2@localhost proxied_user_2@%
-SELECT @@proxy_user;
-@@proxy_user
-NULL
-connection proxy_con_3;
-SELECT USER(),CURRENT_USER();
-USER() CURRENT_USER()
-proxied_user_3@localhost proxied_user_3@%
-SELECT @@proxy_user;
-@@proxy_user
-NULL
-connection proxy_con_4;
-SELECT USER(),CURRENT_USER();
-USER() CURRENT_USER()
-proxied_user_4@localhost proxied_user_4@%
-SELECT @@proxy_user;
-@@proxy_user
-NULL
-connection proxy_con_5;
-SELECT USER(),CURRENT_USER();
-USER() CURRENT_USER()
-proxied_user_5@localhost proxied_user_5@%
-SELECT @@proxy_user;
-@@proxy_user
-NULL
-connection default;
-disconnect proxy_con_1;
-disconnect proxy_con_2;
-disconnect proxy_con_3;
-disconnect proxy_con_4;
-disconnect proxy_con_5;
-DROP USER ''@'%%',proxied_user_1,proxied_user_2,proxied_user_3,proxied_user_4,proxied_user_5;
-========== test 3 ==========================================
-GRANT ALL PRIVILEGES ON *.* TO plug_user
-IDENTIFIED WITH test_plugin_server AS 'plug_dest';
-CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
-GRANT PROXY ON plug_dest TO plug_user;
-FLUSH PRIVILEGES;
-DROP USER plug_user, plug_dest;
-DROP DATABASE test_user_db;
diff --git a/mysql-test/r/plugin_auth_qa_2.result b/mysql-test/r/plugin_auth_qa_2.result
deleted file mode 100644
index fa88530be6a..00000000000
--- a/mysql-test/r/plugin_auth_qa_2.result
+++ /dev/null
@@ -1,132 +0,0 @@
-CREATE DATABASE test_user_db;
-========== test 1.1.3.2 ====================================
-=== check contens of components of info ====================
-CREATE USER qa_test_1_user IDENTIFIED WITH qa_auth_interface AS 'qa_test_1_dest';
-CREATE USER qa_test_1_dest IDENTIFIED BY 'dest_passwd';
-GRANT ALL PRIVILEGES ON test_user_db.* TO qa_test_1_dest identified by 'dest_passwd';
-GRANT PROXY ON qa_test_1_dest TO qa_test_1_user;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-qa_test_1_dest
-qa_test_1_user qa_auth_interface qa_test_1_dest
-SELECT @@proxy_user;
-@@proxy_user
-NULL
-SELECT @@external_user;
-@@external_user
-NULL
-exec MYSQL -h localhost -P MASTER_MYPORT -u qa_test_1_user --password=qa_test_1_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
-current_user() user() @@local.proxy_user @@local.external_user
-qa_test_1_user@% qa_test_1_user@localhost NULL NULL
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-qa_test_1_dest
-qa_test_1_user qa_auth_interface qa_test_1_dest
-DROP USER qa_test_1_user;
-DROP USER qa_test_1_dest;
-=== Assign values to components of info ====================
-CREATE USER qa_test_2_user IDENTIFIED WITH qa_auth_interface AS 'qa_test_2_dest';
-CREATE USER qa_test_2_dest IDENTIFIED BY 'dest_passwd';
-CREATE USER authenticated_as IDENTIFIED BY 'dest_passwd';
-GRANT ALL PRIVILEGES ON test_user_db.* TO qa_test_2_dest identified by 'dest_passwd';
-GRANT PROXY ON qa_test_2_dest TO qa_test_2_user;
-GRANT PROXY ON authenticated_as TO qa_test_2_user;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-authenticated_as
-qa_test_2_dest
-qa_test_2_user qa_auth_interface qa_test_2_dest
-SELECT @@proxy_user;
-@@proxy_user
-NULL
-SELECT @@external_user;
-@@external_user
-NULL
-exec MYSQL -h localhost -P MASTER_MYPORT -u qa_test_2_user --password=qa_test_2_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
-current_user() user() @@local.proxy_user @@local.external_user
-authenticated_as@% user_name@localhost 'qa_test_2_user'@'%' externaluser
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-authenticated_as
-qa_test_2_dest
-qa_test_2_user qa_auth_interface qa_test_2_dest
-DROP USER qa_test_2_user;
-DROP USER qa_test_2_dest;
-DROP USER authenticated_as;
-=== Assign too high values for *length, which should have no effect ====
-CREATE USER qa_test_3_user IDENTIFIED WITH qa_auth_interface AS 'qa_test_3_dest';
-CREATE USER qa_test_3_dest IDENTIFIED BY 'dest_passwd';
-GRANT ALL PRIVILEGES ON test_user_db.* TO qa_test_3_dest identified by 'dest_passwd';
-GRANT PROXY ON qa_test_3_dest TO qa_test_3_user;
-exec MYSQL -h localhost -P MASTER_MYPORT -u qa_test_3_user --password=qa_test_3_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
-current_user() user() @@local.proxy_user @@local.external_user
-qa_test_3_dest@% qa_test_3_user@localhost 'qa_test_3_user'@'%' qa_test_3_dest
-DROP USER qa_test_3_user;
-DROP USER qa_test_3_dest;
-=== Assign too low values for *length, which should have no effect ====
-CREATE USER qa_test_4_user IDENTIFIED WITH qa_auth_interface AS 'qa_test_4_dest';
-CREATE USER qa_test_4_dest IDENTIFIED BY 'dest_passwd';
-GRANT ALL PRIVILEGES ON test_user_db.* TO qa_test_4_dest identified by 'dest_passwd';
-GRANT PROXY ON qa_test_4_dest TO qa_test_4_user;
-exec MYSQL -h localhost -P MASTER_MYPORT -u qa_test_4_user --password=qa_test_4_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
-current_user() user() @@local.proxy_user @@local.external_user
-qa_test_4_dest@% qa_test_4_user@localhost 'qa_test_4_user'@'%' qa_test_4_dest
-DROP USER qa_test_4_user;
-DROP USER qa_test_4_dest;
-=== Assign empty string especially to authenticated_as (in plugin) ====
-CREATE USER qa_test_5_user IDENTIFIED WITH qa_auth_interface AS 'qa_test_5_dest';
-CREATE USER qa_test_5_dest IDENTIFIED BY 'dest_passwd';
-CREATE USER ''@'localhost' IDENTIFIED BY 'dest_passwd';
-GRANT ALL PRIVILEGES ON test_user_db.* TO qa_test_5_dest identified by 'dest_passwd';
-GRANT ALL PRIVILEGES ON test_user_db.* TO ''@'localhost' identified by 'dest_passwd';
-GRANT PROXY ON qa_test_5_dest TO qa_test_5_user;
-GRANT PROXY ON qa_test_5_dest TO ''@'localhost';
-SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
-user plugin authentication_string password
- *DFCACE76914AD7BD801FC1A1ECF6562272621A22
-qa_test_5_dest *DFCACE76914AD7BD801FC1A1ECF6562272621A22
-qa_test_5_user qa_auth_interface qa_test_5_dest
-exec MYSQL -h localhost -P MASTER_MYPORT --user=qa_test_5_user --password=qa_test_5_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
-ERROR 1045 (28000): Access denied for user 'qa_test_5_user'@'localhost' (using password: YES)
-DROP USER qa_test_5_user;
-DROP USER qa_test_5_dest;
-DROP USER ''@'localhost';
-=== Assign 'root' especially to authenticated_as (in plugin) ====
-CREATE USER qa_test_6_user IDENTIFIED WITH qa_auth_interface AS 'qa_test_6_dest';
-CREATE USER qa_test_6_dest IDENTIFIED BY 'dest_passwd';
-GRANT ALL PRIVILEGES ON test_user_db.* TO qa_test_6_dest identified by 'dest_passwd';
-GRANT PROXY ON qa_test_6_dest TO qa_test_6_user;
-SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
-user plugin authentication_string password
-qa_test_6_dest *DFCACE76914AD7BD801FC1A1ECF6562272621A22
-qa_test_6_user qa_auth_interface qa_test_6_dest
-exec MYSQL -h localhost -P MASTER_MYPORT --user=qa_test_6_user --password=qa_test_6_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
-ERROR 1045 (28000): Access denied for user 'qa_test_6_user'@'localhost' (using password: YES)
-GRANT PROXY ON qa_test_6_dest TO root IDENTIFIED WITH qa_auth_interface AS 'qa_test_6_dest';
-SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
-user plugin authentication_string password
-qa_test_6_dest *DFCACE76914AD7BD801FC1A1ECF6562272621A22
-qa_test_6_user qa_auth_interface qa_test_6_dest
-exec MYSQL -h localhost -P MASTER_MYPORT --user=root --password=qa_test_6_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
-ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
-REVOKE PROXY ON qa_test_6_dest FROM root;
-SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
-user plugin authentication_string
-qa_test_6_dest
-qa_test_6_user qa_auth_interface qa_test_6_dest
-exec MYSQL -h localhost -P MASTER_MYPORT --user=root --password=qa_test_6_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
-ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
-DROP USER qa_test_6_user;
-DROP USER qa_test_6_dest;
-DELETE FROM mysql.user WHERE user='root' AND plugin='qa_auth_interface';
-SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
-user plugin authentication_string password
-=== Test of the --default_auth option for clients ====
-CREATE USER qa_test_11_user IDENTIFIED WITH qa_auth_interface AS 'qa_test_11_dest';
-CREATE USER qa_test_11_dest IDENTIFIED BY 'dest_passwd';
-GRANT ALL PRIVILEGES ON test_user_db.* TO qa_test_11_dest identified by 'dest_passwd';
-GRANT PROXY ON qa_test_11_dest TO qa_test_11_user;
-exec MYSQL --default_auth=qa_auth_client -h localhost -P MASTER_MYPORT -u qa_test_11_user --password=qa_test_11_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
-ERROR 1045 (28000): Access denied for user 'qa_test_11_user'@'localhost' (using password: YES)
-DROP USER qa_test_11_user, qa_test_11_dest;
-DROP DATABASE test_user_db;
diff --git a/mysql-test/r/plugin_auth_qa_3.result b/mysql-test/r/plugin_auth_qa_3.result
deleted file mode 100644
index 62a37a21478..00000000000
--- a/mysql-test/r/plugin_auth_qa_3.result
+++ /dev/null
@@ -1,11 +0,0 @@
-CREATE DATABASE test_user_db;
-CREATE USER qa_test_11_user IDENTIFIED WITH qa_auth_server AS 'qa_test_11_dest';
-GRANT ALL PRIVILEGES ON test_user_db.* TO qa_test_11_dest identified by 'dest_passwd';
-GRANT PROXY ON qa_test_11_dest TO qa_test_11_user;
-exec MYSQL --default_auth=qa_auth_client -h localhost -P MASTER_MYPORT -u qa_test_11_user --password=qa_test_11_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
-current_user() user() @@local.proxy_user @@local.external_user
-qa_test_11_dest@% qa_test_11_user@localhost 'qa_test_11_user'@'%' NULL
-exec MYSQL --default_auth=qa_auth_client -h localhost -P MASTER_MYPORT -u qa_test_2_user --password=qa_test_11_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
-ERROR 1045 (28000): Access denied for user 'qa_test_2_user'@'localhost' (using password: YES)
-DROP USER qa_test_11_user, qa_test_11_dest;
-DROP DATABASE test_user_db;
diff --git a/mysql-test/r/plugin_innodb.result b/mysql-test/r/plugin_innodb.result
deleted file mode 100644
index 48510ad8745..00000000000
--- a/mysql-test/r/plugin_innodb.result
+++ /dev/null
@@ -1,11 +0,0 @@
-install plugin example soname 'ha_example.so';
-create table t1(a int) engine=example;
-drop table t1;
-alter table mysql.plugin engine=innodb;
-restart
-create table t1(a int) engine=example;
-select * from t1;
-a
-drop table t1;
-alter table mysql.plugin engine=myisam;
-uninstall plugin example;
diff --git a/mysql-test/r/plugin_load.result b/mysql-test/r/plugin_load.result
deleted file mode 100644
index 35bacf670a5..00000000000
--- a/mysql-test/r/plugin_load.result
+++ /dev/null
@@ -1,10 +0,0 @@
-SELECT @@global.example_enum_var = 'e2';
-@@global.example_enum_var = 'e2'
-1
-select plugin_name, plugin_status from information_schema.plugins
-where plugin_name in ('SIMPLE_PARSER', 'EXAMPLE',
-'DAEMON_EXAMPLE', 'TWO_QUESTIONS', 'THREE_ATTEMPTS');
-plugin_name plugin_status
-EXAMPLE ACTIVE
-daemon_example ACTIVE
-simple_parser ACTIVE
diff --git a/mysql-test/r/plugin_load_option.result b/mysql-test/r/plugin_load_option.result
deleted file mode 100644
index fec41bac8e6..00000000000
--- a/mysql-test/r/plugin_load_option.result
+++ /dev/null
@@ -1,7 +0,0 @@
-UNINSTALL PLUGIN example;
-ERROR HY000: Plugin 'example' is force_plus_permanent and can not be unloaded
-SELECT PLUGIN_NAME, PLUGIN_STATUS, LOAD_OPTION FROM INFORMATION_SCHEMA.PLUGINS
-WHERE PLUGIN_NAME IN ('MyISAM', 'EXAMPLE');
-PLUGIN_NAME PLUGIN_STATUS LOAD_OPTION
-MyISAM ACTIVE FORCE
-EXAMPLE ACTIVE FORCE_PLUS_PERMANENT
diff --git a/mysql-test/r/plugin_loaderr.result b/mysql-test/r/plugin_loaderr.result
deleted file mode 100644
index fbb144a7b90..00000000000
--- a/mysql-test/r/plugin_loaderr.result
+++ /dev/null
@@ -1,13 +0,0 @@
-call mtr.add_suppression("InnoDB");
-SELECT
-PLUGIN_NAME,PLUGIN_STATUS,PLUGIN_TYPE,PLUGIN_LIBRARY,PLUGIN_LIBRARY_VERSION,LOAD_OPTION
-FROM INFORMATION_SCHEMA.PLUGINS WHERE plugin_name = 'innodb';
-PLUGIN_NAME InnoDB
-PLUGIN_STATUS INACTIVE
-PLUGIN_TYPE STORAGE ENGINE
-PLUGIN_LIBRARY NULL
-PLUGIN_LIBRARY_VERSION NULL
-LOAD_OPTION ON
-#
-# MDEV-6351 --plugin=force has no effect for built-in plugins
-#
diff --git a/mysql-test/r/plugin_maturity.result b/mysql-test/r/plugin_maturity.result
deleted file mode 100644
index cd47830cbd3..00000000000
--- a/mysql-test/r/plugin_maturity.result
+++ /dev/null
@@ -1,8 +0,0 @@
-INSTALL PLUGIN example SONAME 'ha_example.so';
-ERROR HY000: Can't open shared library 'ha_example.so' (errno: 1, Loading of experimental plugin EXAMPLE is prohibited by --plugin-maturity=stable)
-INSTALL SONAME 'ha_example.so';
-ERROR HY000: Can't open shared library 'ha_example.so' (errno: 1, Loading of experimental plugin EXAMPLE is prohibited by --plugin-maturity=stable)
-show warnings;
-Level Code Message
-Error 1126 Can't open shared library 'ha_example.so' (errno: 1, Loading of experimental plugin EXAMPLE is prohibited by --plugin-maturity=stable)
-Error 1126 Can't open shared library 'ha_example.so' (errno: 1, Loading of experimental plugin UNUSABLE is prohibited by --plugin-maturity=stable)
diff --git a/mysql-test/r/plugin_not_embedded.result b/mysql-test/r/plugin_not_embedded.result
deleted file mode 100644
index 2edf6c496d3..00000000000
--- a/mysql-test/r/plugin_not_embedded.result
+++ /dev/null
@@ -1,18 +0,0 @@
-#
-# Bug#51770: UNINSTALL PLUGIN requires no privileges
-#
-CREATE USER bug51770@localhost;
-GRANT INSERT ON mysql.plugin TO bug51770@localhost;
-connect con1,localhost,bug51770,,;
-INSTALL PLUGIN example SONAME 'ha_example.so';
-UNINSTALL PLUGIN example;
-ERROR 42000: DELETE command denied to user 'bug51770'@'localhost' for table 'plugin'
-connection default;
-GRANT DELETE ON mysql.plugin TO bug51770@localhost;
-connection con1;
-UNINSTALL PLUGIN example;
-disconnect con1;
-connection default;
-DROP USER bug51770@localhost;
-INSTALL PLUGIN example SONAME '../ha_example.so';
-ERROR HY000: No paths allowed for shared library
diff --git a/mysql-test/r/plugin_vars.result b/mysql-test/r/plugin_vars.result
deleted file mode 100644
index 0e382427b1d..00000000000
--- a/mysql-test/r/plugin_vars.result
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# MDEV-5345 - Deadlock between mysql_change_user(), SHOW VARIABLES and
-# INSTALL PLUGIN
-#
-CREATE PROCEDURE p_install(x INT)
-BEGIN
-DECLARE CONTINUE HANDLER FOR 1126 BEGIN END;
-WHILE x DO
-SET x= x - 1;
-INSTALL PLUGIN no_such_plugin SONAME 'no_such_object';
-END WHILE;
-END|
-CREATE PROCEDURE p_show_vars(x INT)
-WHILE x DO
-SET x= x - 1;
-SHOW VARIABLES;
-END WHILE|
-connect con1, localhost, root,,;
-connect con2, localhost, root,,;
-connection con1;
-CALL p_install(100);
-connection con2;
-CALL p_show_vars(100);
-connection default;
-connection con1;
-connection con2;
-connection default;
-disconnect con1;
-disconnect con2;
-USE test;
-DROP PROCEDURE p_install;
-DROP PROCEDURE p_show_vars;
diff --git a/mysql-test/r/pool_of_threads.result b/mysql-test/r/pool_of_threads.result
deleted file mode 100644
index b25d8d1e50e..00000000000
--- a/mysql-test/r/pool_of_threads.result
+++ /dev/null
@@ -1,2188 +0,0 @@
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-drop table if exists t1,t2,t3,t4;
-CREATE TABLE t1 (
-Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
-Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
-);
-INSERT INTO t1 VALUES (9410,9412);
-select period from t1;
-period
-9410
-select * from t1;
-Period Varor_period
-9410 9412
-select t1.* from t1;
-Period Varor_period
-9410 9412
-CREATE TABLE t2 (
-auto int not null auto_increment,
-fld1 int(6) unsigned zerofill DEFAULT '000000' NOT NULL,
-companynr tinyint(2) unsigned zerofill DEFAULT '00' NOT NULL,
-fld3 char(30) DEFAULT '' NOT NULL,
-fld4 char(35) DEFAULT '' NOT NULL,
-fld5 char(35) DEFAULT '' NOT NULL,
-fld6 char(4) DEFAULT '' NOT NULL,
-UNIQUE fld1 (fld1),
-KEY fld3 (fld3),
-PRIMARY KEY (auto)
-);
-select t2.fld3 from t2 where companynr = 58 and fld3 like "%imaginable%";
-fld3
-imaginable
-select fld3 from t2 where fld3 like "%cultivation" ;
-fld3
-cultivation
-select t2.fld3,companynr from t2 where companynr = 57+1 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3,companynr from t2 where companynr = 58 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3 from t2 order by fld3 desc limit 10;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select fld3 from t2 order by fld3 desc limit 5;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-select fld3 from t2 order by fld3 desc limit 5,5;
-fld3
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select t2.fld3 from t2 where fld3 = 'honeysuckle';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'hon_ysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle%';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'h%le';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle_';
-fld3
-select t2.fld3 from t2 where fld3 LIKE 'don_t_find_me_please%';
-fld3
-explain select t2.fld3 from t2 where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld1) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3,not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-explain select fld3 from t2 use index (not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-fld3
-honeysuckle
-honoring
-explain select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld3 fld3 30 NULL 2 Using where; Using index
-select fld1,fld3 from t2 where fld3="Colombo" or fld3 = "nondecreasing" order by fld3;
-fld1 fld3
-148504 Colombo
-068305 Colombo
-000000 nondecreasing
-select fld1,fld3 from t2 where companynr = 37 and fld3 = 'appendixes';
-fld1 fld3
-232605 appendixes
-1232605 appendixes
-1232606 appendixes
-1232607 appendixes
-1232608 appendixes
-1232609 appendixes
-select fld1 from t2 where fld1=250501 or fld1="250502";
-fld1
-250501
-250502
-explain select fld1 from t2 where fld1=250501 or fld1="250502";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 2 Using where; Using index
-select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-fld1
-250501
-250502
-250505
-250601
-explain select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 4 Using where; Using index
-select fld1,fld3 from t2 where companynr = 37 and fld3 like 'f%';
-fld1 fld3
-012001 flanking
-013602 foldout
-013606 fingerings
-018007 fanatic
-018017 featherweight
-018054 fetters
-018103 flint
-018104 flopping
-036002 funereal
-038017 fetched
-038205 firearm
-058004 Fenton
-088303 feminine
-186002 freakish
-188007 flurried
-188505 fitting
-198006 furthermore
-202301 Fitzpatrick
-208101 fiftieth
-208113 freest
-218008 finishers
-218022 feed
-218401 faithful
-226205 foothill
-226209 furnishings
-228306 forthcoming
-228311 fated
-231315 freezes
-232102 forgivably
-238007 filial
-238008 fixedly
-select fld3 from t2 where fld3 like "L%" and fld3 = "ok";
-fld3
-select fld3 from t2 where (fld3 like "C%" and fld3 = "Chantilly");
-fld3
-Chantilly
-select fld1,fld3 from t2 where fld1 like "25050%";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select fld1,fld3 from t2 where fld1 like "25050_";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select distinct companynr from t2;
-companynr
-00
-37
-36
-50
-58
-29
-40
-53
-65
-41
-34
-68
-select distinct companynr from t2 order by companynr;
-companynr
-00
-29
-34
-36
-37
-40
-41
-50
-53
-58
-65
-68
-select distinct companynr from t2 order by companynr desc;
-companynr
-68
-65
-58
-53
-50
-41
-40
-37
-36
-34
-29
-00
-select distinct t2.fld3,period from t2,t1 where companynr=37 and fld3 like "O%";
-fld3 period
-obliterates 9410
-offload 9410
-opaquely 9410
-organizer 9410
-overestimating 9410
-overlay 9410
-select distinct fld3 from t2 where companynr = 34 order by fld3;
-fld3
-absentee
-accessed
-ahead
-alphabetic
-Asiaticizations
-attitude
-aye
-bankruptcies
-belays
-Blythe
-bomb
-boulevard
-bulldozes
-cannot
-caressing
-charcoal
-checksumming
-chess
-clubroom
-colorful
-cosy
-creator
-crying
-Darius
-diffusing
-duality
-Eiffel
-Epiphany
-Ernestine
-explorers
-exterminated
-famine
-forked
-Gershwins
-heaving
-Hodges
-Iraqis
-Italianization
-Lagos
-landslide
-libretto
-Majorca
-mastering
-narrowed
-occurred
-offerers
-Palestine
-Peruvianizes
-pharmaceutic
-poisoning
-population
-Pygmalion
-rats
-realest
-recording
-regimented
-retransmitting
-reviver
-rouses
-scars
-sicker
-sleepwalk
-stopped
-sugars
-translatable
-uncles
-unexpected
-uprisings
-versatility
-vest
-select distinct fld3 from t2 limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct fld3 from t2 having fld3 like "A%" limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%";
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-Adl
-adm
-Ado
-ads
-adv
-aer
-aff
-afi
-afl
-afo
-agi
-ahe
-aim
-air
-Ald
-alg
-ali
-all
-alp
-alr
-ama
-ame
-amm
-ana
-and
-ane
-Ang
-ani
-Ann
-Ant
-api
-app
-aqu
-Ara
-arc
-Arm
-arr
-Art
-Asi
-ask
-asp
-ass
-ast
-att
-aud
-Aug
-aut
-ave
-avo
-awe
-aye
-Azt
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" order by a limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%" limit 10;
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-create table t3 (
-period int not null,
-name char(32) not null,
-companynr int not null,
-price double(11,0),
-price2 double(11,0),
-key (period),
-key (name)
-);
-create temporary table tmp engine = myisam select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-alter table t3 add t2nr int not null auto_increment primary key first;
-drop table tmp;
-SET BIG_TABLES=1;
-select distinct concat(fld3," ",fld3) as namn from t2,t3 where t2.fld1=t3.t2nr order by namn limit 10;
-namn
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-SET BIG_TABLES=0;
-select distinct concat(fld3," ",fld3) from t2,t3 where t2.fld1=t3.t2nr order by fld3 limit 10;
-concat(fld3," ",fld3)
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-select distinct fld5 from t2 limit 10;
-fld5
-neat
-Steinberg
-jarring
-tinily
-balled
-persist
-attainments
-fanatic
-measures
-rightfulness
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=1;
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=0;
-select distinct fld3,repeat("a",length(fld3)),count(*) from t2 group by companynr,fld3 limit 100,10;
-fld3 repeat("a",length(fld3)) count(*)
-circus aaaaaa 1
-cited aaaaa 1
-Colombo aaaaaaa 1
-congresswoman aaaaaaaaaaaaa 1
-contrition aaaaaaaaaa 1
-corny aaaaa 1
-cultivation aaaaaaaaaaa 1
-definiteness aaaaaaaaaaaa 1
-demultiplex aaaaaaaaaaa 1
-disappointing aaaaaaaaaaaaa 1
-select distinct companynr,rtrim(space(512+companynr)) from t3 order by 1,2;
-companynr rtrim(space(512+companynr))
-37
-78
-101
-154
-311
-447
-512
-select distinct fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by fld3;
-fld3
-explain select t3.t2nr,fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by t3.t2nr,fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL fld1 NULL NULL NULL 1199 Using where; Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.fld1 1 Using where; Using index
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL period NULL NULL NULL 41810 Using filesort
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index period period 4 NULL 1
-1 SIMPLE t1 ref period period 4 test.t3.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t1.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index period period 4 NULL 1
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-select period from t1;
-period
-9410
-select period from t1 where period=1900;
-period
-select fld3,period from t1,t2 where fld1 = 011401 order by period;
-fld3 period
-breaking 9410
-select fld3,period from t2,t3 where t2.fld1 = 011401 and t2.fld1=t3.t2nr and t3.period=1001;
-fld3 period
-breaking 1001
-explain select fld3,period from t2,t3 where t2.fld1 = 011401 and t3.t2nr=t2.fld1 and 1001 = t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const fld1 fld1 4 const 1
-1 SIMPLE t3 const PRIMARY,period PRIMARY 4 const 1
-select fld3,period from t2,t1 where companynr*10 = 37*10;
-fld3 period
-breaking 9410
-Romans 9410
-intercepted 9410
-bewilderingly 9410
-astound 9410
-admonishing 9410
-sumac 9410
-flanking 9410
-combed 9410
-subjective 9410
-scatterbrain 9410
-Eulerian 9410
-Kane 9410
-overlay 9410
-perturb 9410
-goblins 9410
-annihilates 9410
-Wotan 9410
-snatching 9410
-concludes 9410
-laterally 9410
-yelped 9410
-grazing 9410
-Baird 9410
-celery 9410
-misunderstander 9410
-handgun 9410
-foldout 9410
-mystic 9410
-succumbed 9410
-Nabisco 9410
-fingerings 9410
-aging 9410
-afield 9410
-ammonium 9410
-boat 9410
-intelligibility 9410
-Augustine 9410
-teethe 9410
-dreaded 9410
-scholastics 9410
-audiology 9410
-wallet 9410
-parters 9410
-eschew 9410
-quitter 9410
-neat 9410
-Steinberg 9410
-jarring 9410
-tinily 9410
-balled 9410
-persist 9410
-attainments 9410
-fanatic 9410
-measures 9410
-rightfulness 9410
-capably 9410
-impulsive 9410
-starlet 9410
-terminators 9410
-untying 9410
-announces 9410
-featherweight 9410
-pessimist 9410
-daughter 9410
-decliner 9410
-lawgiver 9410
-stated 9410
-readable 9410
-attrition 9410
-cascade 9410
-motors 9410
-interrogate 9410
-pests 9410
-stairway 9410
-dopers 9410
-testicle 9410
-Parsifal 9410
-leavings 9410
-postulation 9410
-squeaking 9410
-contrasted 9410
-leftover 9410
-whiteners 9410
-erases 9410
-Punjab 9410
-Merritt 9410
-Quixotism 9410
-sweetish 9410
-dogging 9410
-scornfully 9410
-bellow 9410
-bills 9410
-cupboard 9410
-sureties 9410
-puddings 9410
-fetters 9410
-bivalves 9410
-incurring 9410
-Adolph 9410
-pithed 9410
-Miles 9410
-trimmings 9410
-tragedies 9410
-skulking 9410
-flint 9410
-flopping 9410
-relaxing 9410
-offload 9410
-suites 9410
-lists 9410
-animized 9410
-multilayer 9410
-standardizes 9410
-Judas 9410
-vacuuming 9410
-dentally 9410
-humanness 9410
-inch 9410
-Weissmuller 9410
-irresponsibly 9410
-luckily 9410
-culled 9410
-medical 9410
-bloodbath 9410
-subschema 9410
-animals 9410
-Micronesia 9410
-repetitions 9410
-Antares 9410
-ventilate 9410
-pityingly 9410
-interdependent 9410
-Graves 9410
-neonatal 9410
-chafe 9410
-honoring 9410
-realtor 9410
-elite 9410
-funereal 9410
-abrogating 9410
-sorters 9410
-Conley 9410
-lectured 9410
-Abraham 9410
-Hawaii 9410
-cage 9410
-hushes 9410
-Simla 9410
-reporters 9410
-Dutchman 9410
-descendants 9410
-groupings 9410
-dissociate 9410
-coexist 9410
-Beebe 9410
-Taoism 9410
-Connally 9410
-fetched 9410
-checkpoints 9410
-rusting 9410
-galling 9410
-obliterates 9410
-traitor 9410
-resumes 9410
-analyzable 9410
-terminator 9410
-gritty 9410
-firearm 9410
-minima 9410
-Selfridge 9410
-disable 9410
-witchcraft 9410
-betroth 9410
-Manhattanize 9410
-imprint 9410
-peeked 9410
-swelling 9410
-interrelationships 9410
-riser 9410
-Gandhian 9410
-peacock 9410
-bee 9410
-kanji 9410
-dental 9410
-scarf 9410
-chasm 9410
-insolence 9410
-syndicate 9410
-alike 9410
-imperial 9410
-convulsion 9410
-railway 9410
-validate 9410
-normalizes 9410
-comprehensive 9410
-chewing 9410
-denizen 9410
-schemer 9410
-chronicle 9410
-Kline 9410
-Anatole 9410
-partridges 9410
-brunch 9410
-recruited 9410
-dimensions 9410
-Chicana 9410
-announced 9410
-praised 9410
-employing 9410
-linear 9410
-quagmire 9410
-western 9410
-relishing 9410
-serving 9410
-scheduling 9410
-lore 9410
-eventful 9410
-arteriole 9410
-disentangle 9410
-cured 9410
-Fenton 9410
-avoidable 9410
-drains 9410
-detectably 9410
-husky 9410
-impelling 9410
-undoes 9410
-evened 9410
-squeezes 9410
-destroyer 9410
-rudeness 9410
-beaner 9410
-boorish 9410
-Everhart 9410
-encompass 9410
-mushrooms 9410
-Alison 9410
-externally 9410
-pellagra 9410
-cult 9410
-creek 9410
-Huffman 9410
-Majorca 9410
-governing 9410
-gadfly 9410
-reassigned 9410
-intentness 9410
-craziness 9410
-psychic 9410
-squabbled 9410
-burlesque 9410
-capped 9410
-extracted 9410
-DiMaggio 9410
-exclamation 9410
-subdirectory 9410
-Gothicism 9410
-feminine 9410
-metaphysically 9410
-sanding 9410
-Miltonism 9410
-freakish 9410
-index 9410
-straight 9410
-flurried 9410
-denotative 9410
-coming 9410
-commencements 9410
-gentleman 9410
-gifted 9410
-Shanghais 9410
-sportswriting 9410
-sloping 9410
-navies 9410
-leaflet 9410
-shooter 9410
-Joplin 9410
-babies 9410
-assails 9410
-admiring 9410
-swaying 9410
-Goldstine 9410
-fitting 9410
-Norwalk 9410
-analogy 9410
-deludes 9410
-cokes 9410
-Clayton 9410
-exhausts 9410
-causality 9410
-sating 9410
-icon 9410
-throttles 9410
-communicants 9410
-dehydrate 9410
-priceless 9410
-publicly 9410
-incidentals 9410
-commonplace 9410
-mumbles 9410
-furthermore 9410
-cautioned 9410
-parametrized 9410
-registration 9410
-sadly 9410
-positioning 9410
-babysitting 9410
-eternal 9410
-hoarder 9410
-congregates 9410
-rains 9410
-workers 9410
-sags 9410
-unplug 9410
-garage 9410
-boulder 9410
-specifics 9410
-Teresa 9410
-Winsett 9410
-convenient 9410
-buckboards 9410
-amenities 9410
-resplendent 9410
-sews 9410
-participated 9410
-Simon 9410
-certificates 9410
-Fitzpatrick 9410
-Evanston 9410
-misted 9410
-textures 9410
-save 9410
-count 9410
-rightful 9410
-chaperone 9410
-Lizzy 9410
-clenched 9410
-effortlessly 9410
-accessed 9410
-beaters 9410
-Hornblower 9410
-vests 9410
-indulgences 9410
-infallibly 9410
-unwilling 9410
-excrete 9410
-spools 9410
-crunches 9410
-overestimating 9410
-ineffective 9410
-humiliation 9410
-sophomore 9410
-star 9410
-rifles 9410
-dialysis 9410
-arriving 9410
-indulge 9410
-clockers 9410
-languages 9410
-Antarctica 9410
-percentage 9410
-ceiling 9410
-specification 9410
-regimented 9410
-ciphers 9410
-pictures 9410
-serpents 9410
-allot 9410
-realized 9410
-mayoral 9410
-opaquely 9410
-hostess 9410
-fiftieth 9410
-incorrectly 9410
-decomposition 9410
-stranglings 9410
-mixture 9410
-electroencephalography 9410
-similarities 9410
-charges 9410
-freest 9410
-Greenberg 9410
-tinting 9410
-expelled 9410
-warm 9410
-smoothed 9410
-deductions 9410
-Romano 9410
-bitterroot 9410
-corset 9410
-securing 9410
-environing 9410
-cute 9410
-Crays 9410
-heiress 9410
-inform 9410
-avenge 9410
-universals 9410
-Kinsey 9410
-ravines 9410
-bestseller 9410
-equilibrium 9410
-extents 9410
-relatively 9410
-pressure 9410
-critiques 9410
-befouled 9410
-rightfully 9410
-mechanizing 9410
-Latinizes 9410
-timesharing 9410
-Aden 9410
-embassies 9410
-males 9410
-shapelessly 9410
-mastering 9410
-Newtonian 9410
-finishers 9410
-abates 9410
-teem 9410
-kiting 9410
-stodgy 9410
-feed 9410
-guitars 9410
-airships 9410
-store 9410
-denounces 9410
-Pyle 9410
-Saxony 9410
-serializations 9410
-Peruvian 9410
-taxonomically 9410
-kingdom 9410
-stint 9410
-Sault 9410
-faithful 9410
-Ganymede 9410
-tidiness 9410
-gainful 9410
-contrary 9410
-Tipperary 9410
-tropics 9410
-theorizers 9410
-renew 9410
-already 9410
-terminal 9410
-Hegelian 9410
-hypothesizer 9410
-warningly 9410
-journalizing 9410
-nested 9410
-Lars 9410
-saplings 9410
-foothill 9410
-labeled 9410
-imperiously 9410
-reporters 9410
-furnishings 9410
-precipitable 9410
-discounts 9410
-excises 9410
-Stalin 9410
-despot 9410
-ripeness 9410
-Arabia 9410
-unruly 9410
-mournfulness 9410
-boom 9410
-slaughter 9410
-Sabine 9410
-handy 9410
-rural 9410
-organizer 9410
-shipyard 9410
-civics 9410
-inaccuracy 9410
-rules 9410
-juveniles 9410
-comprised 9410
-investigations 9410
-stabilizes 9410
-seminaries 9410
-Hunter 9410
-sporty 9410
-test 9410
-weasels 9410
-CERN 9410
-tempering 9410
-afore 9410
-Galatean 9410
-techniques 9410
-error 9410
-veranda 9410
-severely 9410
-Cassites 9410
-forthcoming 9410
-guides 9410
-vanish 9410
-lied 9410
-sawtooth 9410
-fated 9410
-gradually 9410
-widens 9410
-preclude 9410
-evenhandedly 9410
-percentage 9410
-disobedience 9410
-humility 9410
-gleaning 9410
-petted 9410
-bloater 9410
-minion 9410
-marginal 9410
-apiary 9410
-measures 9410
-precaution 9410
-repelled 9410
-primary 9410
-coverings 9410
-Artemia 9410
-navigate 9410
-spatial 9410
-Gurkha 9410
-meanwhile 9410
-Melinda 9410
-Butterfield 9410
-Aldrich 9410
-previewing 9410
-glut 9410
-unaffected 9410
-inmate 9410
-mineral 9410
-impending 9410
-meditation 9410
-ideas 9410
-miniaturizes 9410
-lewdly 9410
-title 9410
-youthfulness 9410
-creak 9410
-Chippewa 9410
-clamored 9410
-freezes 9410
-forgivably 9410
-reduce 9410
-McGovern 9410
-Nazis 9410
-epistle 9410
-socializes 9410
-conceptions 9410
-Kevin 9410
-uncovering 9410
-chews 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-raining 9410
-infest 9410
-compartment 9410
-minting 9410
-ducks 9410
-roped 9410
-waltz 9410
-Lillian 9410
-repressions 9410
-chillingly 9410
-noncritical 9410
-lithograph 9410
-spongers 9410
-parenthood 9410
-posed 9410
-instruments 9410
-filial 9410
-fixedly 9410
-relives 9410
-Pandora 9410
-watering 9410
-ungrateful 9410
-secures 9410
-poison 9410
-dusted 9410
-encompasses 9410
-presentation 9410
-Kantian 9410
-select fld3,period,price,price2 from t2,t3 where t2.fld1=t3.t2nr and period >= 1001 and period <= 1002 and t2.companynr = 37 order by fld3,period, price;
-fld3 period price price2
-admonishing 1002 28357832 8723648
-analyzable 1002 28357832 8723648
-annihilates 1001 5987435 234724
-Antares 1002 28357832 8723648
-astound 1001 5987435 234724
-audiology 1001 5987435 234724
-Augustine 1002 28357832 8723648
-Baird 1002 28357832 8723648
-bewilderingly 1001 5987435 234724
-breaking 1001 5987435 234724
-Conley 1001 5987435 234724
-dentally 1002 28357832 8723648
-dissociate 1002 28357832 8723648
-elite 1001 5987435 234724
-eschew 1001 5987435 234724
-Eulerian 1001 5987435 234724
-flanking 1001 5987435 234724
-foldout 1002 28357832 8723648
-funereal 1002 28357832 8723648
-galling 1002 28357832 8723648
-Graves 1001 5987435 234724
-grazing 1001 5987435 234724
-groupings 1001 5987435 234724
-handgun 1001 5987435 234724
-humility 1002 28357832 8723648
-impulsive 1002 28357832 8723648
-inch 1001 5987435 234724
-intelligibility 1001 5987435 234724
-jarring 1001 5987435 234724
-lawgiver 1001 5987435 234724
-lectured 1002 28357832 8723648
-Merritt 1002 28357832 8723648
-neonatal 1001 5987435 234724
-offload 1002 28357832 8723648
-parters 1002 28357832 8723648
-pityingly 1002 28357832 8723648
-puddings 1002 28357832 8723648
-Punjab 1001 5987435 234724
-quitter 1002 28357832 8723648
-realtor 1001 5987435 234724
-relaxing 1001 5987435 234724
-repetitions 1001 5987435 234724
-resumes 1001 5987435 234724
-Romans 1002 28357832 8723648
-rusting 1001 5987435 234724
-scholastics 1001 5987435 234724
-skulking 1002 28357832 8723648
-stated 1002 28357832 8723648
-suites 1002 28357832 8723648
-sureties 1001 5987435 234724
-testicle 1002 28357832 8723648
-tinily 1002 28357832 8723648
-tragedies 1001 5987435 234724
-trimmings 1001 5987435 234724
-vacuuming 1001 5987435 234724
-ventilate 1001 5987435 234724
-wallet 1001 5987435 234724
-Weissmuller 1002 28357832 8723648
-Wotan 1002 28357832 8723648
-select t2.fld1,fld3,period,price,price2 from t2,t3 where t2.fld1>= 18201 and t2.fld1 <= 18811 and t2.fld1=t3.t2nr and period = 1001 and t2.companynr = 37;
-fld1 fld3 period price price2
-018201 relaxing 1001 5987435 234724
-018601 vacuuming 1001 5987435 234724
-018801 inch 1001 5987435 234724
-018811 repetitions 1001 5987435 234724
-create table t4 (
-companynr tinyint(2) unsigned zerofill NOT NULL default '00',
-companyname char(30) NOT NULL default '',
-PRIMARY KEY (companynr),
-UNIQUE KEY companyname(companyname)
-) ENGINE=MyISAM MAX_ROWS=50 PACK_KEYS=1 COMMENT='companynames';
-select STRAIGHT_JOIN t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select SQL_SMALL_RESULT t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select * from t1,t1 t12;
-Period Varor_period Period Varor_period
-9410 9412 9410 9412
-select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505;
-fld1 fld1
-250501 250501
-250502 250501
-250503 250501
-250504 250501
-250505 250501
-250501 250502
-250502 250502
-250503 250502
-250504 250502
-250505 250502
-250501 250503
-250502 250503
-250503 250503
-250504 250503
-250505 250503
-250501 250504
-250502 250504
-250503 250504
-250504 250504
-250505 250504
-250501 250505
-250502 250505
-250503 250505
-250504 250505
-250505 250505
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-insert into t2 (fld1, companynr) values (999999,99);
-select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-companynr companyname
-99 NULL
-select count(*) from t2 left join t4 using (companynr) where t4.companynr is not null;
-count(*)
-1199
-explain select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1 Using where; Not exists
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200 Using where; Not exists
-select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-companynr companyname
-select count(*) from t2 left join t4 using (companynr) where companynr is not null;
-count(*)
-1200
-explain select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-delete from t2 where fld1=999999;
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 and t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 and companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0 or t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where ifnull(t2.companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0 or companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where ifnull(companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-SET optimizer_switch=@save_optimizer_switch;
-select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-companynr companynr
-37 36
-41 40
-explain select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 index NULL PRIMARY 1 NULL 12 Using index; Using temporary
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where; Using join buffer (flat, BNL join)
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where t2.fld1 = 38208 and t2.fld1=t3.t2nr and period = 1008 or t2.fld1 = 38008 and t2.fld1 =t3.t2nr and period = 1008;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t2.fld1 = 38208 or t2.fld1 = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t3.t2nr = 38208 or t3.t2nr = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select period from t1 where (((period > 0) or period < 10000 or (period = 1900)) and (period=1900 and period <= 1901) or (period=1903 and (period=1903)) and period>=1902) or ((period=1904 or period=1905) or (period=1906 or period>1907)) or (period=1908 and period = 1909);
-period
-9410
-select period from t1 where ((period > 0 and period < 1) or (((period > 0 and period < 100) and (period > 10)) or (period > 10)) or (period > 0 and (period > 5 or period > 6)));
-period
-9410
-select a.fld1 from t2 as a,t2 b where ((a.fld1 = 250501 and a.fld1=b.fld1) or a.fld1=250502 or a.fld1=250503 or (a.fld1=250505 and a.fld1<=b.fld1 and b.fld1>=a.fld1)) and a.fld1=b.fld1;
-fld1
-250501
-250502
-250503
-250505
-select fld1 from t2 where fld1 in (250502,98005,98006,250503,250605,250606) and fld1 >=250502 and fld1 not in (250605,250606);
-fld1
-250502
-250503
-select fld1 from t2 where fld1 between 250502 and 250504;
-fld1
-250502
-250503
-250504
-select fld3 from t2 where (((fld3 like "_%L%" ) or (fld3 like "%ok%")) and ( fld3 like "L%" or fld3 like "G%")) and fld3 like "L%" ;
-fld3
-label
-labeled
-labeled
-landslide
-laterally
-leaflet
-lewdly
-Lillian
-luckily
-select count(*) from t1;
-count(*)
-1
-select companynr,count(*),sum(fld1) from t2 group by companynr;
-companynr count(*) sum(fld1)
-00 82 10355753
-29 95 14473298
-34 70 17788966
-36 215 22786296
-37 588 83602098
-40 37 6618386
-41 52 12816335
-50 11 1595438
-53 4 793210
-58 23 2254293
-65 10 2284055
-68 12 3097288
-select companynr,count(*) from t2 group by companynr order by companynr desc limit 5;
-companynr count(*)
-68 12
-65 10
-58 23
-53 4
-50 11
-select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-explain extended select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 100.00 Using where
-Warnings:
-Note 1003 select count(0) AS `count(*)`,min(`test`.`t2`.`fld4`) AS `min(fld4)`,max(`test`.`t2`.`fld4`) AS `max(fld4)`,sum(`test`.`t2`.`fld1`) AS `sum(fld1)`,avg(`test`.`t2`.`fld1`) AS `avg(fld1)`,std(`test`.`t2`.`fld1`) AS `std(fld1)`,variance(`test`.`t2`.`fld1`) AS `variance(fld1)` from `test`.`t2` where `test`.`t2`.`companynr` = 34 and `test`.`t2`.`fld4` <> ''
-select companynr,count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 group by companynr limit 3;
-companynr count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-00 82 Anthony windmills 10355753 126289.6707 115550.9757 13352027981.7087
-29 95 abut wetness 14473298 152350.5053 8368.5480 70032594.9026
-34 70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-select companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select /*! SQL_SMALL_RESULT */ companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select companynr,count(price),sum(price),min(price),max(price),avg(price) from t3 group by companynr ;
-companynr count(price) sum(price) min(price) max(price) avg(price)
-37 12543 309394878010 5987435 39654943 24666736.6667
-78 8362 414611089292 726498 98439034 49582766.0000
-101 4181 3489454238 834598 834598 834598.0000
-154 4181 4112197254950 983543950 983543950 983543950.0000
-311 4181 979599938 234298 234298 234298.0000
-447 4181 9929180954 2374834 2374834 2374834.0000
-512 4181 3288532102 786542 786542 786542.0000
-select distinct mod(companynr,10) from t4 group by companynr;
-mod(companynr,10)
-0
-9
-4
-6
-7
-1
-3
-8
-5
-select distinct 1 from t4 group by companynr;
-1
-1
-select count(distinct fld1) from t2;
-count(distinct fld1)
-1199
-select companynr,count(distinct fld1) from t2 group by companynr;
-companynr count(distinct fld1)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(*) from t2 group by companynr;
-companynr count(*)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,1000))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,1000)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,200))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,200)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct floor(fld1/100)) from t2 group by companynr;
-companynr count(distinct floor(fld1/100))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select companynr,count(distinct concat(repeat(65,1000),floor(fld1/100))) from t2 group by companynr;
-companynr count(distinct concat(repeat(65,1000),floor(fld1/100)))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select sum(fld1),fld3 from t2 where fld3="Romans" group by fld1 limit 10;
-sum(fld1) fld3
-11402 Romans
-select name,count(*) from t3 where name='cloakroom' group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name='cloakroom' and price>10 group by name;
-name count(*)
-cloakroom 4181
-select count(*) from t3 where name='cloakroom' and price2=823742;
-count(*)
-4181
-select name,count(*) from t3 where name='cloakroom' and price2=823742 group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name >= "extramarital" and price <= 39654943 group by name;
-name count(*)
-extramarital 4181
-gazer 4181
-gems 4181
-Iranizes 4181
-spates 4181
-tucked 4181
-violinist 4181
-select t2.fld3,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld3 count(*)
-spates 4181
-select companynr|0,companyname from t4 group by 1;
-companynr|0 companyname
-0 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by t2.companynr order by companyname;
-companynr companyname count(*)
-29 company 1 95
-68 company 10 12
-50 company 11 11
-34 company 2 70
-36 company 3 215
-37 company 4 588
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-00 Unknown 82
-select t2.fld1,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld1 count(*)
-158402 4181
-select sum(Period)/count(*) from t1;
-sum(Period)/count(*)
-9410.0000
-select companynr,count(price) as "count",sum(price) as "sum" ,abs(sum(price)/count(price)-avg(price)) as "diff",(0+count(price))*companynr as func from t3 group by companynr;
-companynr count sum diff func
-37 12543 309394878010 0.0000 464091
-78 8362 414611089292 0.0000 652236
-101 4181 3489454238 0.0000 422281
-154 4181 4112197254950 0.0000 643874
-311 4181 979599938 0.0000 1300291
-447 4181 9929180954 0.0000 1868907
-512 4181 3288532102 0.0000 2140672
-select companynr,sum(price)/count(price) as avg from t3 group by companynr having avg > 70000000 order by avg;
-companynr avg
-154 983543950.0000
-select companynr,count(*) from t2 group by companynr order by 2 desc;
-companynr count(*)
-37 588
-36 215
-29 95
-00 82
-34 70
-41 52
-40 37
-58 23
-68 12
-50 11
-65 10
-53 4
-select companynr,count(*) from t2 where companynr > 40 group by companynr order by 2 desc;
-companynr count(*)
-41 52
-58 23
-68 12
-50 11
-65 10
-53 4
-select t2.fld4,t2.fld1,count(price),sum(price),min(price),max(price),avg(price) from t3,t2 where t3.companynr = 37 and t2.fld1 = t3.t2nr group by fld1,t2.fld4;
-fld4 fld1 count(price) sum(price) min(price) max(price) avg(price)
-teethe 000001 1 5987435 5987435 5987435 5987435.0000
-dreaded 011401 1 5987435 5987435 5987435 5987435.0000
-scholastics 011402 1 28357832 28357832 28357832 28357832.0000
-audiology 011403 1 39654943 39654943 39654943 39654943.0000
-wallet 011501 1 5987435 5987435 5987435 5987435.0000
-parters 011701 1 5987435 5987435 5987435 5987435.0000
-eschew 011702 1 28357832 28357832 28357832 28357832.0000
-quitter 011703 1 39654943 39654943 39654943 39654943.0000
-neat 012001 1 5987435 5987435 5987435 5987435.0000
-Steinberg 012003 1 39654943 39654943 39654943 39654943.0000
-balled 012301 1 5987435 5987435 5987435 5987435.0000
-persist 012302 1 28357832 28357832 28357832 28357832.0000
-attainments 012303 1 39654943 39654943 39654943 39654943.0000
-capably 012501 1 5987435 5987435 5987435 5987435.0000
-impulsive 012602 1 28357832 28357832 28357832 28357832.0000
-starlet 012603 1 39654943 39654943 39654943 39654943.0000
-featherweight 012701 1 5987435 5987435 5987435 5987435.0000
-pessimist 012702 1 28357832 28357832 28357832 28357832.0000
-daughter 012703 1 39654943 39654943 39654943 39654943.0000
-lawgiver 013601 1 5987435 5987435 5987435 5987435.0000
-stated 013602 1 28357832 28357832 28357832 28357832.0000
-readable 013603 1 39654943 39654943 39654943 39654943.0000
-testicle 013801 1 5987435 5987435 5987435 5987435.0000
-Parsifal 013802 1 28357832 28357832 28357832 28357832.0000
-leavings 013803 1 39654943 39654943 39654943 39654943.0000
-squeaking 013901 1 5987435 5987435 5987435 5987435.0000
-contrasted 016001 1 5987435 5987435 5987435 5987435.0000
-leftover 016201 1 5987435 5987435 5987435 5987435.0000
-whiteners 016202 1 28357832 28357832 28357832 28357832.0000
-erases 016301 1 5987435 5987435 5987435 5987435.0000
-Punjab 016302 1 28357832 28357832 28357832 28357832.0000
-Merritt 016303 1 39654943 39654943 39654943 39654943.0000
-sweetish 018001 1 5987435 5987435 5987435 5987435.0000
-dogging 018002 1 28357832 28357832 28357832 28357832.0000
-scornfully 018003 1 39654943 39654943 39654943 39654943.0000
-fetters 018012 1 28357832 28357832 28357832 28357832.0000
-bivalves 018013 1 39654943 39654943 39654943 39654943.0000
-skulking 018021 1 5987435 5987435 5987435 5987435.0000
-flint 018022 1 28357832 28357832 28357832 28357832.0000
-flopping 018023 1 39654943 39654943 39654943 39654943.0000
-Judas 018032 1 28357832 28357832 28357832 28357832.0000
-vacuuming 018033 1 39654943 39654943 39654943 39654943.0000
-medical 018041 1 5987435 5987435 5987435 5987435.0000
-bloodbath 018042 1 28357832 28357832 28357832 28357832.0000
-subschema 018043 1 39654943 39654943 39654943 39654943.0000
-interdependent 018051 1 5987435 5987435 5987435 5987435.0000
-Graves 018052 1 28357832 28357832 28357832 28357832.0000
-neonatal 018053 1 39654943 39654943 39654943 39654943.0000
-sorters 018061 1 5987435 5987435 5987435 5987435.0000
-epistle 018062 1 28357832 28357832 28357832 28357832.0000
-Conley 018101 1 5987435 5987435 5987435 5987435.0000
-lectured 018102 1 28357832 28357832 28357832 28357832.0000
-Abraham 018103 1 39654943 39654943 39654943 39654943.0000
-cage 018201 1 5987435 5987435 5987435 5987435.0000
-hushes 018202 1 28357832 28357832 28357832 28357832.0000
-Simla 018402 1 28357832 28357832 28357832 28357832.0000
-reporters 018403 1 39654943 39654943 39654943 39654943.0000
-coexist 018601 1 5987435 5987435 5987435 5987435.0000
-Beebe 018602 1 28357832 28357832 28357832 28357832.0000
-Taoism 018603 1 39654943 39654943 39654943 39654943.0000
-Connally 018801 1 5987435 5987435 5987435 5987435.0000
-fetched 018802 1 28357832 28357832 28357832 28357832.0000
-checkpoints 018803 1 39654943 39654943 39654943 39654943.0000
-gritty 018811 1 5987435 5987435 5987435 5987435.0000
-firearm 018812 1 28357832 28357832 28357832 28357832.0000
-minima 019101 1 5987435 5987435 5987435 5987435.0000
-Selfridge 019102 1 28357832 28357832 28357832 28357832.0000
-disable 019103 1 39654943 39654943 39654943 39654943.0000
-witchcraft 019201 1 5987435 5987435 5987435 5987435.0000
-betroth 030501 1 5987435 5987435 5987435 5987435.0000
-Manhattanize 030502 1 28357832 28357832 28357832 28357832.0000
-imprint 030503 1 39654943 39654943 39654943 39654943.0000
-swelling 031901 1 5987435 5987435 5987435 5987435.0000
-interrelationships 036001 1 5987435 5987435 5987435 5987435.0000
-riser 036002 1 28357832 28357832 28357832 28357832.0000
-bee 038001 1 5987435 5987435 5987435 5987435.0000
-kanji 038002 1 28357832 28357832 28357832 28357832.0000
-dental 038003 1 39654943 39654943 39654943 39654943.0000
-railway 038011 1 5987435 5987435 5987435 5987435.0000
-validate 038012 1 28357832 28357832 28357832 28357832.0000
-normalizes 038013 1 39654943 39654943 39654943 39654943.0000
-Kline 038101 1 5987435 5987435 5987435 5987435.0000
-Anatole 038102 1 28357832 28357832 28357832 28357832.0000
-partridges 038103 1 39654943 39654943 39654943 39654943.0000
-recruited 038201 1 5987435 5987435 5987435 5987435.0000
-dimensions 038202 1 28357832 28357832 28357832 28357832.0000
-Chicana 038203 1 39654943 39654943 39654943 39654943.0000
-select t3.companynr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 group by companynr,fld3;
-companynr fld3 sum(price)
-512 boat 786542
-512 capably 786542
-512 cupboard 786542
-512 decliner 786542
-512 descendants 786542
-512 dopers 786542
-512 erases 786542
-512 Micronesia 786542
-512 Miles 786542
-512 skies 786542
-select t2.companynr,count(*),min(fld3),max(fld3),sum(price),avg(price) from t2,t3 where t3.companynr >= 30 and t3.companynr <= 58 and t3.t2nr = t2.fld1 and 1+1=2 group by t2.companynr;
-companynr count(*) min(fld3) max(fld3) sum(price) avg(price)
-00 1 Omaha Omaha 5987435 5987435.0000
-36 1 dubbed dubbed 28357832 28357832.0000
-37 83 Abraham Wotan 1908978016 22999735.1325
-50 2 scribbled tapestry 68012775 34006387.5000
-select t3.companynr+0,t3.t2nr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 37 group by 1,t3.t2nr,fld3,fld3,fld3,fld3,fld3 order by fld1;
-t3.companynr+0 t2nr fld3 sum(price)
-37 1 Omaha 5987435
-37 11401 breaking 5987435
-37 11402 Romans 28357832
-37 11403 intercepted 39654943
-37 11501 bewilderingly 5987435
-37 11701 astound 5987435
-37 11702 admonishing 28357832
-37 11703 sumac 39654943
-37 12001 flanking 5987435
-37 12003 combed 39654943
-37 12301 Eulerian 5987435
-37 12302 dubbed 28357832
-37 12303 Kane 39654943
-37 12501 annihilates 5987435
-37 12602 Wotan 28357832
-37 12603 snatching 39654943
-37 12701 grazing 5987435
-37 12702 Baird 28357832
-37 12703 celery 39654943
-37 13601 handgun 5987435
-37 13602 foldout 28357832
-37 13603 mystic 39654943
-37 13801 intelligibility 5987435
-37 13802 Augustine 28357832
-37 13803 teethe 39654943
-37 13901 scholastics 5987435
-37 16001 audiology 5987435
-37 16201 wallet 5987435
-37 16202 parters 28357832
-37 16301 eschew 5987435
-37 16302 quitter 28357832
-37 16303 neat 39654943
-37 18001 jarring 5987435
-37 18002 tinily 28357832
-37 18003 balled 39654943
-37 18012 impulsive 28357832
-37 18013 starlet 39654943
-37 18021 lawgiver 5987435
-37 18022 stated 28357832
-37 18023 readable 39654943
-37 18032 testicle 28357832
-37 18033 Parsifal 39654943
-37 18041 Punjab 5987435
-37 18042 Merritt 28357832
-37 18043 Quixotism 39654943
-37 18051 sureties 5987435
-37 18052 puddings 28357832
-37 18053 tapestry 39654943
-37 18061 trimmings 5987435
-37 18062 humility 28357832
-37 18101 tragedies 5987435
-37 18102 skulking 28357832
-37 18103 flint 39654943
-37 18201 relaxing 5987435
-37 18202 offload 28357832
-37 18402 suites 28357832
-37 18403 lists 39654943
-37 18601 vacuuming 5987435
-37 18602 dentally 28357832
-37 18603 humanness 39654943
-37 18801 inch 5987435
-37 18802 Weissmuller 28357832
-37 18803 irresponsibly 39654943
-37 18811 repetitions 5987435
-37 18812 Antares 28357832
-37 19101 ventilate 5987435
-37 19102 pityingly 28357832
-37 19103 interdependent 39654943
-37 19201 Graves 5987435
-37 30501 neonatal 5987435
-37 30502 scribbled 28357832
-37 30503 chafe 39654943
-37 31901 realtor 5987435
-37 36001 elite 5987435
-37 36002 funereal 28357832
-37 38001 Conley 5987435
-37 38002 lectured 28357832
-37 38003 Abraham 39654943
-37 38011 groupings 5987435
-37 38012 dissociate 28357832
-37 38013 coexist 39654943
-37 38101 rusting 5987435
-37 38102 galling 28357832
-37 38103 obliterates 39654943
-37 38201 resumes 5987435
-37 38202 analyzable 28357832
-37 38203 terminator 39654943
-select sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1= t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008;
-sum(price)
-234298
-select t2.fld1,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1 = t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008 or t3.t2nr = t2.fld1 and t2.fld1 = 38008 group by t2.fld1;
-fld1 sum(price)
-038008 234298
-explain select fld3 from t2 where 1>2 or 2>3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select fld3 from t2 where fld1=fld1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199
-select companynr,fld1 from t2 HAVING fld1=250501 or fld1=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,fld1 from t2 WHERE fld1>=250501 HAVING fld1<=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,count(*) as count,sum(fld1) as sum from t2 group by companynr having count > 40 and sum/count >= 120000;
-companynr count sum
-00 82 10355753
-29 95 14473298
-34 70 17788966
-37 588 83602098
-41 52 12816335
-select companynr from t2 group by companynr having count(*) > 40 and sum(fld1)/count(*) >= 120000 ;
-companynr
-00
-29
-34
-37
-41
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by companyname having t2.companynr >= 40;
-companynr companyname count(*)
-68 company 10 12
-50 company 11 11
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-select count(*) from t2;
-count(*)
-1199
-select count(*) from t2 where fld1 < 098024;
-count(*)
-387
-select min(fld1) from t2 where fld1>= 098024;
-min(fld1)
-98024
-select max(fld1) from t2 where fld1>= 098024;
-max(fld1)
-1232609
-select count(*) from t3 where price2=76234234;
-count(*)
-4181
-select count(*) from t3 where companynr=512 and price2=76234234;
-count(*)
-4181
-explain select min(fld1),max(fld1),count(*) from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(fld1),max(fld1),count(*) from t2;
-min(fld1) max(fld1) count(*)
-0 1232609 1199
-select min(t2nr),max(t2nr) from t3 where t2nr=2115 and price2=823742;
-min(t2nr) max(t2nr)
-2115 2115
-select count(*),min(t2nr),max(t2nr) from t3 where name='spates' and companynr=78;
-count(*) min(t2nr) max(t2nr)
-4181 4 41804
-select t2nr,count(*) from t3 where name='gems' group by t2nr limit 20;
-t2nr count(*)
-9 1
-19 1
-29 1
-39 1
-49 1
-59 1
-69 1
-79 1
-89 1
-99 1
-109 1
-119 1
-129 1
-139 1
-149 1
-159 1
-169 1
-179 1
-189 1
-199 1
-select max(t2nr) from t3 where price=983543950;
-max(t2nr)
-41807
-select t1.period from t3 = t1 limit 1;
-period
-1001
-select t1.period from t1 as t1 limit 1;
-period
-9410
-select t1.period as "Nuvarande period" from t1 as t1 limit 1;
-Nuvarande period
-9410
-select period as ok_period from t1 limit 1;
-ok_period
-9410
-select period as ok_period from t1 group by ok_period limit 1;
-ok_period
-9410
-select 1+1 as summa from t1 group by summa limit 1;
-summa
-2
-select period as "Nuvarande period" from t1 group by "Nuvarande period" limit 1;
-Nuvarande period
-9410
-show tables;
-Tables_in_test
-t1
-t2
-t3
-t4
-show tables from test like "s%";
-Tables_in_test (s%)
-show tables from test like "t?";
-Tables_in_test (t?)
-show full columns from t2;
-Field Type Collation Null Key Default Extra Privileges Comment
-auto int(11) NULL NO PRI NULL auto_increment #
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-companynr tinyint(2) unsigned zerofill NULL NO 00 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 'f%';
-Field Type Collation Null Key Default Extra Privileges Comment
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 's%';
-Field Type Collation Null Key Default Extra Privileges Comment
-show keys from t2;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t2 0 PRIMARY 1 auto A 1199 NULL NULL BTREE
-t2 0 fld1 1 fld1 A 1199 NULL NULL BTREE
-t2 1 fld3 1 fld3 A NULL NULL NULL BTREE
-drop table t4, t3, t2, t1;
-CREATE TABLE t1 (
-cont_nr int(11) NOT NULL auto_increment,
-ver_nr int(11) NOT NULL default '0',
-aufnr int(11) NOT NULL default '0',
-username varchar(50) NOT NULL default '',
-hdl_nr int(11) NOT NULL default '0',
-eintrag date NOT NULL default '0000-00-00',
-st_klasse varchar(40) NOT NULL default '',
-st_wert varchar(40) NOT NULL default '',
-st_zusatz varchar(40) NOT NULL default '',
-st_bemerkung varchar(255) NOT NULL default '',
-kunden_art varchar(40) NOT NULL default '',
-mcbs_knr int(11) default NULL,
-mcbs_aufnr int(11) NOT NULL default '0',
-schufa_status char(1) default '?',
-bemerkung text,
-wirknetz text,
-wf_igz int(11) NOT NULL default '0',
-tarifcode varchar(80) default NULL,
-recycle char(1) default NULL,
-sim varchar(30) default NULL,
-mcbs_tpl varchar(30) default NULL,
-emp_nr int(11) NOT NULL default '0',
-laufzeit int(11) default NULL,
-hdl_name varchar(30) default NULL,
-prov_hdl_nr int(11) NOT NULL default '0',
-auto_wirknetz varchar(50) default NULL,
-auto_billing varchar(50) default NULL,
-touch timestamp NOT NULL,
-kategorie varchar(50) default NULL,
-kundentyp varchar(20) NOT NULL default '',
-sammel_rech_msisdn varchar(30) NOT NULL default '',
-p_nr varchar(9) NOT NULL default '',
-suffix char(3) NOT NULL default '',
-PRIMARY KEY (cont_nr),
-KEY idx_aufnr(aufnr),
-KEY idx_hdl_nr(hdl_nr),
-KEY idx_st_klasse(st_klasse),
-KEY ver_nr(ver_nr),
-KEY eintrag_idx(eintrag),
-KEY emp_nr_idx(emp_nr),
-KEY wf_igz(wf_igz),
-KEY touch(touch),
-KEY hdl_tag(eintrag,hdl_nr),
-KEY prov_hdl_nr(prov_hdl_nr),
-KEY mcbs_aufnr(mcbs_aufnr),
-KEY kundentyp(kundentyp),
-KEY p_nr(p_nr,suffix)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3359356,405,3359356,'Mustermann Musterfrau',52500,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1485525,2122316,'+','','N',1909160,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',3,24,'MobilCom Shop Koeln',52500,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359357,468,3359357,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1503580,2139699,'+','','P',1909171,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359358,407,3359358,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1501358,2137473,'N','','N',1909159,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359359,468,3359359,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1507831,2143894,'+','','P',1909162,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359360,0,0,'Mustermann Musterfrau',29674907,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1900169997,2414578,'+',NULL,'N',1909148,'',NULL,NULL,'RV99066_2',20,NULL,'POS',29674907,NULL,NULL,20010202105916,'Mobilfunk','','','97317481','007');
-INSERT INTO t1 VALUES (3359361,406,3359361,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag storniert','','(7001-84):Storno, Kd. möchte nicht mehr','privat',NULL,0,'+','','P',1909150,'MobilComSuper92000D1(Akquise)',NULL,NULL,'MS9ND1',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359362,406,3359362,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1509984,2145874,'+','','P',1909154,'MobilComSuper92000D1(Akquise)',NULL,NULL,'MS9ND1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-SELECT ELT(FIELD(kundentyp,'PP','PPA','PG','PGA','FK','FKA','FP','FPA','K','KA','V','VA',''), 'Privat (Private Nutzung)','Privat (Private Nutzung) Sitz im Ausland','Privat (geschaeftliche Nutzung)','Privat (geschaeftliche Nutzung) Sitz im Ausland','Firma (Kapitalgesellschaft)','Firma (Kapitalgesellschaft) Sitz im Ausland','Firma (Personengesellschaft)','Firma (Personengesellschaft) Sitz im Ausland','oeff. rechtl. Koerperschaft','oeff. rechtl. Koerperschaft Sitz im Ausland','Eingetragener Verein','Eingetragener Verein Sitz im Ausland','Typ unbekannt') AS Kundentyp ,kategorie FROM t1 WHERE hdl_nr < 2000000 AND kategorie IN ('Prepaid','Mobilfunk') AND st_klasse = 'Workflow' GROUP BY kundentyp ORDER BY kategorie;
-Kundentyp kategorie
-Privat (Private Nutzung) Mobilfunk
-Warnings:
-Warning 1052 Column 'kundentyp' in group statement is ambiguous
-drop table t1;
-SET optimizer_switch=@save_optimizer_switch;
-connection default;
-SELECT sleep(50);
-connect con2,localhost,root,,;
-SELECT sleep(50);
-# -- Success: more than --thread_pool_max_threads normal connections not possible
-connect extracon,127.0.0.1,root,,test,$MASTER_EXTRA_PORT,;
-connection extracon;
-SELECT 'Connection on extra port ok';
-Connection on extra port ok
-Connection on extra port ok
-SELECT sleep(5.5);
-connect extracon2,127.0.0.1,root,,test,$MASTER_EXTRA_PORT,;
-connection extracon2;
-SELECT 'Connection on extra port 2 ok';
-Connection on extra port 2 ok
-Connection on extra port 2 ok
-# -- Success: more than --extra-max-connections + 1 normal connections not possible
-connection extracon2;
-KILL QUERY <default_connection_ID>;
-KILL QUERY <con2_connection_ID>;
-connection default;
-sleep(50)
-1
-connection con2;
-sleep(50)
-1
-connection extracon;
-sleep(5.5)
-0
diff --git a/mysql-test/r/preload.result b/mysql-test/r/preload.result
deleted file mode 100644
index 7ed0c62f33a..00000000000
--- a/mysql-test/r/preload.result
+++ /dev/null
@@ -1,169 +0,0 @@
-drop table if exists t1, t2;
-create table t1 (
-a int not null auto_increment,
-b char(16) not null,
-primary key (a),
-key (b)
-);
-create table t2(
-a int not null auto_increment,
-b char(16) not null,
-primary key (a),
-key (b)
-);
-insert into t1(b) values
-('test0'),
-('test1'),
-('test2'),
-('test3'),
-('test4'),
-('test5'),
-('test6'),
-('test7');
-insert into t2(b) select b from t1;
-insert into t1(b) select b from t2;
-insert into t2(b) select b from t1;
-insert into t1(b) select b from t2;
-insert into t2(b) select b from t1;
-insert into t1(b) select b from t2;
-insert into t2(b) select b from t1;
-insert into t1(b) select b from t2;
-insert into t2(b) select b from t1;
-insert into t1(b) select b from t2;
-insert into t2(b) select b from t1;
-insert into t1(b) select b from t2;
-insert into t2(b) select b from t1;
-insert into t1(b) select b from t2;
-insert into t2(b) select b from t1;
-insert into t1(b) select b from t2;
-insert into t2(b) select b from t1;
-insert into t1(b) select b from t2;
-select count(*) from t1;
-count(*)
-33448
-select count(*) from t2;
-count(*)
-20672
-flush tables;
-flush status;
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 0
-Key_reads 0
-select count(*) from t1 where b = 'test1';
-count(*)
-4181
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 294
-Key_reads 60
-select count(*) from t1 where b = 'test1';
-count(*)
-4181
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 588
-Key_reads 60
-flush tables;
-flush status;
-select @@preload_buffer_size;
-@@preload_buffer_size
-32768
-load index into cache t1;
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 774
-Key_reads 774
-select count(*) from t1 where b = 'test1';
-count(*)
-4181
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 1068
-Key_reads 774
-flush tables;
-flush status;
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 0
-Key_reads 0
-set session preload_buffer_size=256*1024;
-select @@preload_buffer_size;
-@@preload_buffer_size
-262144
-load index into cache t1 ignore leaves;
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 17
-Key_reads 17
-select count(*) from t1 where b = 'test1';
-count(*)
-4181
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 311
-Key_reads 75
-flush tables;
-flush status;
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 0
-Key_reads 0
-set session preload_buffer_size=1*1024;
-select @@preload_buffer_size;
-@@preload_buffer_size
-1024
-load index into cache t1, t2 key (primary,b) ignore leaves;
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-test.t2 preload_keys status OK
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 785
-Key_reads 785
-select count(*) from t1 where b = 'test1';
-count(*)
-4181
-select count(*) from t2 where b = 'test1';
-count(*)
-2584
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 1266
-Key_reads 821
-flush tables;
-flush status;
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 0
-Key_reads 0
-load index into cache t3, t2 key (primary,b) ;
-Table Op Msg_type Msg_text
-test.t3 preload_keys Error Table 'test.t3' doesn't exist
-test.t3 preload_keys status Operation failed
-test.t2 preload_keys status OK
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 478
-Key_reads 478
-flush tables;
-flush status;
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 0
-Key_reads 0
-load index into cache t3 key (b), t2 key (c) ;
-Table Op Msg_type Msg_text
-test.t3 preload_keys Error Table 'test.t3' doesn't exist
-test.t3 preload_keys status Operation failed
-test.t2 preload_keys Error Key 'c' doesn't exist in table 't2'
-test.t2 preload_keys status Operation failed
-show status like "key_read%";
-Variable_name Value
-Key_read_requests 0
-Key_reads 0
-drop table t1, t2;
diff --git a/mysql-test/r/processlist.result b/mysql-test/r/processlist.result
deleted file mode 100644
index b8e2271530d..00000000000
--- a/mysql-test/r/processlist.result
+++ /dev/null
@@ -1,45 +0,0 @@
-SET DEBUG_SYNC = 'dispatch_command_before_set_time WAIT_FOR do_set_time';
-SELECT 1;
-connect con1,localhost,root,,;
-SET DEBUG_SYNC = 'fill_schema_processlist_after_unow SIGNAL do_set_time WAIT_FOR fill_schema_proceed';
-SELECT ID, TIME,TIME_MS FROM INFORMATION_SCHEMA.PROCESSLIST WHERE CONCAT(":", ID, ":") = ":TID:";
-connection default;
-1
-1
-SET DEBUG_SYNC = 'now SIGNAL fill_schema_proceed';
-connection con1;
-ID TIME TIME_MS
-TID 0 0.000
-set debug_sync='reset';
-connection default;
-connection con1;
-SET debug_dbug="+d,sleep_inject_query_done_debug_sync";
-select sleep(5);
-sleep(5)
-0
-connection default;
-SET DEBUG_SYNC = 'now WAIT_FOR query_done';
-select command, time < 5 from information_schema.processlist where id != connection_id();
-command time < 5
-Sleep 1
-disconnect con1;
-set debug_sync='reset';
-connection default;
-#
-# 10.1 tests
-#
-#
-# MDEV-7807 information_schema.processlist truncates queries with binary strings
-#
-SET NAMES utf8;
-SELECT INFO, INFO_BINARY, 'xxx😎yyy' AS utf8mb4_string FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%xxx%yyy%';
-INFO SELECT INFO, INFO_BINARY, 'xxx????yyy' AS utf8mb4_string FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%xxx%yyy%'
-INFO_BINARY SELECT INFO, INFO_BINARY, 'xxx😎yyy' AS utf8mb4_string FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%xxx%yyy%'
-utf8mb4_string xxx😎yyy
-Warnings:
-Level Warning
-Code 1366
-Message Incorrect string value: '\xF0\x9F\x98\x8Eyy...' for column 'INFO' at row 1
-#
-# End of 10.1 tests
-#
diff --git a/mysql-test/r/profiling.result b/mysql-test/r/profiling.result
deleted file mode 100644
index 6590d89bc89..00000000000
--- a/mysql-test/r/profiling.result
+++ /dev/null
@@ -1,422 +0,0 @@
-show profiles;
-Query_ID Duration Query
-show profile all;
-Status Duration CPU_user CPU_system Context_voluntary Context_involuntary Block_ops_in Block_ops_out Messages_sent Messages_received Page_faults_major Page_faults_minor Swaps Source_function Source_file Source_line
-show session variables like 'profil%';
-Variable_name Value
-profiling OFF
-profiling_history_size 15
-select @@profiling;
-@@profiling
-0
-set @start_value= @@global.profiling_history_size;
-set global profiling_history_size=100;
-show global variables like 'profil%';
-Variable_name Value
-profiling OFF
-profiling_history_size 100
-set session profiling = ON;
-set session profiling_history_size=30;
-show session variables like 'profil%';
-Variable_name Value
-profiling ON
-profiling_history_size 30
-select @@profiling;
-@@profiling
-1
-create table t1 (
-a int,
-b int
-);
-insert into t1 values (1,1), (2,null), (3, 4);
-insert into t1 values (5,1), (6,null), (7, 4);
-insert into t1 values (1,1), (2,null), (3, 4);
-insert into t1 values (5,1), (6,null), (7, 4);
-select max(x) from (select sum(a) as x from t1 group by b) as teeone;
-max(x)
-20
-insert into t1 select * from t1;
-select count(*) from t1;
-count(*)
-24
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-select count(*) from t1;
-count(*)
-192
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-select count(*) from t1;
-count(*)
-1536
-select sum(a) from t1;
-sum(a)
-6144
-select sum(a) from t1 group by b;
-sum(a)
-2048
-1536
-2560
-select sum(a) + sum(b) from t1 group by b;
-sum(a) + sum(b)
-NULL
-2048
-4608
-select max(x) from (select sum(a) as x from t1 group by b) as teeone;
-max(x)
-2560
-select '012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890' as big_string;
-big_string
-012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890
-show profiles;
-Query_ID Duration Query
-1 # set session profiling_history_size=30
-2 # show session variables like 'profil%'
-3 # select @@profiling
-4 # create table t1 (
-a int,
-b int
-)
-5 # insert into t1 values (1,1), (2,null), (3, 4)
-6 # insert into t1 values (5,1), (6,null), (7, 4)
-7 # insert into t1 values (1,1), (2,null), (3, 4)
-8 # insert into t1 values (5,1), (6,null), (7, 4)
-9 # select max(x) from (select sum(a) as x from t1 group by b) as teeone
-10 # insert into t1 select * from t1
-11 # select count(*) from t1
-12 # insert into t1 select * from t1
-13 # insert into t1 select * from t1
-14 # insert into t1 select * from t1
-15 # select count(*) from t1
-16 # insert into t1 select * from t1
-17 # insert into t1 select * from t1
-18 # insert into t1 select * from t1
-19 # select count(*) from t1
-20 # select sum(a) from t1
-21 # select sum(a) from t1 group by b
-22 # select sum(a) + sum(b) from t1 group by b
-23 # select max(x) from (select sum(a) as x from t1 group by b) as teeone
-24 # select '0123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345
-show profile for query 15;
-show profile cpu for query 15;
-show profile cpu, block io for query 15;
-show profile cpu for query 9 limit 2 offset 2;
-show profile cpu for query 10 limit 0;
-show profile cpu for query 65534;
-show profile memory;
-show profile block io;
-show profile context switches;
-show profile page faults;
-show profile ipc;
-show profile swaps limit 1 offset 2;
-show profile source;
-show profile all for query 0 limit 0;
-show profile all for query 15;
-select * from information_schema.profiling;
-select query_id, state, duration from information_schema.profiling;
-select query_id, sum(duration) from information_schema.profiling group by query_id;
-select query_id, count(*) from information_schema.profiling group by query_id;
-select sum(duration) from information_schema.profiling;
-select query_id, count(*), sum(duration) from information_schema.profiling group by query_id;
-select CPU_user, CPU_system, Context_voluntary, Context_involuntary, Block_ops_in, Block_ops_out, Messages_sent, Messages_received, Page_faults_major, Page_faults_minor, Swaps, Source_function, Source_file, Source_line from information_schema.profiling;
-drop table if exists t1, t2, t3;
-Warnings:
-Note 1051 Unknown table 'test.t2'
-Note 1051 Unknown table 'test.t3'
-create table t1 (id int );
-create table t2 (id int not null);
-create table t3 (id int not null primary key);
-insert into t1 values (1), (2), (3);
-insert into t2 values (1), (2), (3);
-insert into t3 values (1), (2), (3);
-show profiles;
-Query_ID Duration Query
-10 # insert into t1 select * from t1
-11 # select count(*) from t1
-12 # insert into t1 select * from t1
-13 # insert into t1 select * from t1
-14 # insert into t1 select * from t1
-15 # select count(*) from t1
-16 # insert into t1 select * from t1
-17 # insert into t1 select * from t1
-18 # insert into t1 select * from t1
-19 # select count(*) from t1
-20 # select sum(a) from t1
-21 # select sum(a) from t1 group by b
-22 # select sum(a) + sum(b) from t1 group by b
-23 # select max(x) from (select sum(a) as x from t1 group by b) as teeone
-24 # select '0123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345
-25 # select * from information_schema.profiling
-26 # select query_id, state, duration from information_schema.profiling
-27 # select query_id, sum(duration) from information_schema.profiling group by query_id
-28 # select query_id, count(*) from information_schema.profiling group by query_id
-29 # select sum(duration) from information_schema.profiling
-30 # select query_id, count(*), sum(duration) from information_schema.profiling group by query_id
-31 # select CPU_user, CPU_system, Context_voluntary, Context_involuntary, Block_ops_in, Block_ops_out, Messages_sent, Messages_received, Page_faults_major, Page_faults_minor, Swaps, Source_function, Source_file, Source_line from information_schema.profiling
-32 # drop table if exists t1, t2, t3
-33 # SHOW WARNINGS
-34 # create table t1 (id int )
-35 # create table t2 (id int not null)
-36 # create table t3 (id int not null primary key)
-37 # insert into t1 values (1), (2), (3)
-38 # insert into t2 values (1), (2), (3)
-39 # insert into t3 values (1), (2), (3)
-select * from t1;
-id
-1
-2
-3
-show profiles;
-Query_ID Duration Query
-11 # select count(*) from t1
-12 # insert into t1 select * from t1
-13 # insert into t1 select * from t1
-14 # insert into t1 select * from t1
-15 # select count(*) from t1
-16 # insert into t1 select * from t1
-17 # insert into t1 select * from t1
-18 # insert into t1 select * from t1
-19 # select count(*) from t1
-20 # select sum(a) from t1
-21 # select sum(a) from t1 group by b
-22 # select sum(a) + sum(b) from t1 group by b
-23 # select max(x) from (select sum(a) as x from t1 group by b) as teeone
-24 # select '0123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345
-25 # select * from information_schema.profiling
-26 # select query_id, state, duration from information_schema.profiling
-27 # select query_id, sum(duration) from information_schema.profiling group by query_id
-28 # select query_id, count(*) from information_schema.profiling group by query_id
-29 # select sum(duration) from information_schema.profiling
-30 # select query_id, count(*), sum(duration) from information_schema.profiling group by query_id
-31 # select CPU_user, CPU_system, Context_voluntary, Context_involuntary, Block_ops_in, Block_ops_out, Messages_sent, Messages_received, Page_faults_major, Page_faults_minor, Swaps, Source_function, Source_file, Source_line from information_schema.profiling
-32 # drop table if exists t1, t2, t3
-33 # SHOW WARNINGS
-34 # create table t1 (id int )
-35 # create table t2 (id int not null)
-36 # create table t3 (id int not null primary key)
-37 # insert into t1 values (1), (2), (3)
-38 # insert into t2 values (1), (2), (3)
-39 # insert into t3 values (1), (2), (3)
-40 # select * from t1
-This ^^ should end in "select * from t1;"
-delete from t1;
-insert into t1 values (1), (2), (3);
-insert into t1 values (1), (2), (3);
-select * from t1;
-id
-1
-2
-3
-1
-2
-3
-show profiles;
-Query_ID Duration Query
-15 # select count(*) from t1
-16 # insert into t1 select * from t1
-17 # insert into t1 select * from t1
-18 # insert into t1 select * from t1
-19 # select count(*) from t1
-20 # select sum(a) from t1
-21 # select sum(a) from t1 group by b
-22 # select sum(a) + sum(b) from t1 group by b
-23 # select max(x) from (select sum(a) as x from t1 group by b) as teeone
-24 # select '0123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345
-25 # select * from information_schema.profiling
-26 # select query_id, state, duration from information_schema.profiling
-27 # select query_id, sum(duration) from information_schema.profiling group by query_id
-28 # select query_id, count(*) from information_schema.profiling group by query_id
-29 # select sum(duration) from information_schema.profiling
-30 # select query_id, count(*), sum(duration) from information_schema.profiling group by query_id
-31 # select CPU_user, CPU_system, Context_voluntary, Context_involuntary, Block_ops_in, Block_ops_out, Messages_sent, Messages_received, Page_faults_major, Page_faults_minor, Swaps, Source_function, Source_file, Source_line from information_schema.profiling
-32 # drop table if exists t1, t2, t3
-33 # SHOW WARNINGS
-34 # create table t1 (id int )
-35 # create table t2 (id int not null)
-36 # create table t3 (id int not null primary key)
-37 # insert into t1 values (1), (2), (3)
-38 # insert into t2 values (1), (2), (3)
-39 # insert into t3 values (1), (2), (3)
-40 # select * from t1
-41 # delete from t1
-42 # insert into t1 values (1), (2), (3)
-43 # insert into t1 values (1), (2), (3)
-44 # select * from t1
-set session profiling = OFF;
-select sum(id) from t1;
-sum(id)
-12
-show profiles;
-Query_ID Duration Query
-15 # select count(*) from t1
-16 # insert into t1 select * from t1
-17 # insert into t1 select * from t1
-18 # insert into t1 select * from t1
-19 # select count(*) from t1
-20 # select sum(a) from t1
-21 # select sum(a) from t1 group by b
-22 # select sum(a) + sum(b) from t1 group by b
-23 # select max(x) from (select sum(a) as x from t1 group by b) as teeone
-24 # select '0123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345
-25 # select * from information_schema.profiling
-26 # select query_id, state, duration from information_schema.profiling
-27 # select query_id, sum(duration) from information_schema.profiling group by query_id
-28 # select query_id, count(*) from information_schema.profiling group by query_id
-29 # select sum(duration) from information_schema.profiling
-30 # select query_id, count(*), sum(duration) from information_schema.profiling group by query_id
-31 # select CPU_user, CPU_system, Context_voluntary, Context_involuntary, Block_ops_in, Block_ops_out, Messages_sent, Messages_received, Page_faults_major, Page_faults_minor, Swaps, Source_function, Source_file, Source_line from information_schema.profiling
-32 # drop table if exists t1, t2, t3
-33 # SHOW WARNINGS
-34 # create table t1 (id int )
-35 # create table t2 (id int not null)
-36 # create table t3 (id int not null primary key)
-37 # insert into t1 values (1), (2), (3)
-38 # insert into t2 values (1), (2), (3)
-39 # insert into t3 values (1), (2), (3)
-40 # select * from t1
-41 # delete from t1
-42 # insert into t1 values (1), (2), (3)
-43 # insert into t1 values (1), (2), (3)
-44 # select * from t1
-set session profiling = ON;
-select @@profiling;
-@@profiling
-1
-create function f1() returns varchar(50) return 'hello';
-select @@profiling;
-@@profiling
-1
-select * from t1 where id <> f1();
-id
-1
-2
-3
-1
-2
-3
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'hello'
-Warning 1292 Truncated incorrect DOUBLE value: 'hello'
-Warning 1292 Truncated incorrect DOUBLE value: 'hello'
-Warning 1292 Truncated incorrect DOUBLE value: 'hello'
-Warning 1292 Truncated incorrect DOUBLE value: 'hello'
-Warning 1292 Truncated incorrect DOUBLE value: 'hello'
-select @@profiling;
-@@profiling
-1
-set session profiling = OFF;
-drop table if exists profile_log;
-Warnings:
-Note 1051 Unknown table 'test.profile_log'
-create table profile_log (how_many int);
-drop procedure if exists p1;
-drop procedure if exists p2;
-drop procedure if exists p3;
-create procedure p1 ()
-modifies sql data
-begin
-set profiling = ON;
-select 'This p1 should show up in profiling';
-insert into profile_log select count(*) from information_schema.profiling;
-end//
-create procedure p2()
-deterministic
-begin
-set profiling = ON;
-call p1();
-select 'This p2 should show up in profiling';
-end//
-create procedure p3 ()
-reads sql data
-begin
-set profiling = ON;
-select 'This p3 should show up in profiling';
-show profile;
-end//
-first call to p1
-call p1;
-select * from profile_log;
-second call to p1
-call p1;
-select * from profile_log;
-third call to p1
-call p1;
-select * from profile_log;
-set session profiling = OFF;
-call p2;
-set session profiling = OFF;
-call p3;
-show profiles;
-drop procedure if exists p1;
-drop procedure if exists p2;
-drop procedure if exists p3;
-drop table if exists profile_log;
-set session profiling = ON;
-drop table if exists t2;
-create table t2 (id int not null);
-create trigger t2_bi before insert on t2 for each row set @x=0;
-select @@profiling;
-@@profiling
-1
-insert into t2 values (1), (2), (3);
-select @@profiling;
-@@profiling
-1
-set session profiling = ON;
-drop table if exists t1, t2;
-create table t1 (id int not null primary key);
-create table t2 (id int not null primary key, id1 int not null);
-select @@profiling;
-@@profiling
-1
-alter table t2 add foreign key (id1) references t1 (id) on delete cascade;
-select @@profiling;
-@@profiling
-1
-lock table t1 write;
-select @@profiling;
-@@profiling
-1
-unlock table;
-select @@profiling;
-@@profiling
-1
-set autocommit=0;
-select @@profiling, @@autocommit;
-@@profiling @@autocommit
-1 0
-begin;
-select @@profiling;
-@@profiling
-1
-insert into t1 values (1);
-insert into t2 values (1,1);
-testing referential integrity cascade
-delete from t1 where id = 1;
-select @@profiling;
-@@profiling
-1
-testing rollback
-rollback;
-select @@profiling;
-@@profiling
-1
-testing commit
-begin;
-select @@profiling;
-@@profiling
-1
-commit;
-select @@profiling;
-@@profiling
-1
-drop table if exists t1, t2, t3;
-drop view if exists v1;
-Warnings:
-Note 4092 Unknown VIEW: 'test.v1'
-drop function if exists f1;
-set session profiling = OFF;
-set global profiling_history_size= @start_value;
-End of 5.0 tests
diff --git a/mysql-test/r/progress_976225.result b/mysql-test/r/progress_976225.result
deleted file mode 100644
index a96b7b411e3..00000000000
--- a/mysql-test/r/progress_976225.result
+++ /dev/null
@@ -1,11 +0,0 @@
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-CREATE TABLE t2 (b INT) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (3),(4);
-OPTIMIZE TABLE t1, t2;
-Table Op Msg_type Msg_text
-test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
-test.t1 optimize status OK
-test.t2 optimize note Table does not support optimize, doing recreate + analyze instead
-test.t2 optimize status OK
-drop table t1, t2;
diff --git a/mysql-test/r/ps.result b/mysql-test/r/ps.result
deleted file mode 100644
index 45e3f60e431..00000000000
--- a/mysql-test/r/ps.result
+++ /dev/null
@@ -1,5242 +0,0 @@
-call mtr.add_suppression('Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.');
-drop table if exists t1,t2,t3,t4;
-drop database if exists mysqltest1;
-drop database if exists client_test_db;
-create table t1
-(
-a int primary key,
-b char(10)
-);
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-set @a=2;
-prepare stmt1 from 'select * from t1 where a <= ?';
-execute stmt1 using @a;
-a b
-1 one
-2 two
-set @a=3;
-execute stmt1 using @a;
-a b
-1 one
-2 two
-3 three
-deallocate prepare no_such_statement;
-ERROR HY000: Unknown prepared statement handler (no_such_statement) given to DEALLOCATE PREPARE
-execute stmt1;
-ERROR HY000: Incorrect arguments to EXECUTE
-prepare stmt2 from 'prepare nested_stmt from "select 1"';
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-prepare stmt2 from 'execute stmt1';
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-prepare stmt2 from 'deallocate prepare z';
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-prepare stmt3 from 'insert into t1 values (?,?)';
-set @arg1=5, @arg2='five';
-execute stmt3 using @arg1, @arg2;
-select * from t1 where a>3;
-a b
-4 four
-5 five
-prepare stmt4 from 'update t1 set a=? where b=?';
-set @arg1=55, @arg2='five';
-execute stmt4 using @arg1, @arg2;
-select * from t1 where a>3;
-a b
-4 four
-55 five
-prepare stmt4 from 'create table t2 (a int)';
-execute stmt4;
-prepare stmt4 from 'drop table t2';
-execute stmt4;
-execute stmt4;
-ERROR 42S02: Unknown table 'test.t2'
-prepare stmt5 from 'select ? + a from t1';
-set @a=1;
-execute stmt5 using @a;
-? + a
-2
-3
-4
-5
-56
-execute stmt5 using @no_such_var;
-? + a
-NULL
-NULL
-NULL
-NULL
-NULL
-set @nullvar=1;
-set @nullvar=NULL;
-execute stmt5 using @nullvar;
-? + a
-NULL
-NULL
-NULL
-NULL
-NULL
-set @nullvar2=NULL;
-execute stmt5 using @nullvar2;
-? + a
-NULL
-NULL
-NULL
-NULL
-NULL
-prepare stmt6 from 'select 1; select2';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'select2' at line 1
-prepare stmt6 from 'insert into t1 values (5,"five"); select2';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'select2' at line 1
-explain prepare stmt6 from 'insert into t1 values (5,"five"); select2';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'from 'insert into t1 values (5,"five"); select2'' at line 1
-create table t2
-(
-a int
-);
-insert into t2 values (0);
-set @arg00=NULL ;
-prepare stmt1 from 'select 1 FROM t2 where a=?' ;
-execute stmt1 using @arg00 ;
-1
-prepare stmt1 from @nosuchvar;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NULL' at line 1
-set @ivar= 1234;
-prepare stmt1 from @ivar;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1234' at line 1
-set @fvar= 123.4567;
-prepare stmt1 from @fvar;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '123.4567' at line 1
-drop table t1,t2;
-deallocate prepare stmt3;
-deallocate prepare stmt4;
-deallocate prepare stmt5;
-PREPARE stmt1 FROM "select _utf8 'A' collate utf8_bin = ?";
-set @var='A';
-EXECUTE stmt1 USING @var;
-_utf8 'A' collate utf8_bin = ?
-1
-DEALLOCATE PREPARE stmt1;
-create table t1 (id int);
-prepare stmt1 from "select FOUND_ROWS()";
-select SQL_CALC_FOUND_ROWS * from t1;
-id
-execute stmt1;
-FOUND_ROWS()
-0
-insert into t1 values (1);
-select SQL_CALC_FOUND_ROWS * from t1;
-id
-1
-execute stmt1;
-FOUND_ROWS()
-1
-execute stmt1;
-FOUND_ROWS()
-1
-deallocate prepare stmt1;
-drop table t1;
-create table t1
-(
-c1 tinyint, c2 smallint, c3 mediumint, c4 int,
-c5 integer, c6 bigint, c7 float, c8 double,
-c9 double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
-c13 date, c14 datetime, c15 timestamp, c16 time,
-c17 year, c18 bit, c19 bool, c20 char,
-c21 char(10), c22 varchar(30), c23 tinyblob, c24 tinytext,
-c25 blob, c26 text, c27 mediumblob, c28 mediumtext,
-c29 longblob, c30 longtext, c31 enum('one', 'two', 'three'),
-c32 set('monday', 'tuesday', 'wednesday')
-) engine = MYISAM ;
-create table t2 like t1;
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch="partial_match_rowid_merge=off,partial_match_table_scan=off";
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-set @stmt= ' explain SELECT (SELECT SUM(c1 + c12 + 0.0) FROM t2 where (t1.c2 - 0e-3) = t2.c2 GROUP BY t1.c15 LIMIT 1) as scalar_s, exists (select 1.0e+0 from t2 where t2.c3 * 9.0000000000 = t1.c4) as exists_s, c5 * 4 in (select c6 + 0.3e+1 from t2) as in_s, (c7 - 4, c8 - 4) in (select c9 + 4.0, c10 + 40e-1 from t2) as in_row_s FROM t1, (select c25 x, c32 y from t2) tt WHERE x * 1 = c25 ' ;
-prepare stmt1 from @stmt ;
-execute stmt1 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-6 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-5 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-4 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-execute stmt1 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-6 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-5 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-4 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-explain SELECT (SELECT SUM(c1 + c12 + 0.0) FROM t2 where (t1.c2 - 0e-3) = t2.c2 GROUP BY t1.c15 LIMIT 1) as scalar_s, exists (select 1.0e+0 from t2 where t2.c3 * 9.0000000000 = t1.c4) as exists_s, c5 * 4 in (select c6 + 0.3e+1 from t2) as in_s, (c7 - 4, c8 - 4) in (select c9 + 4.0, c10 + 40e-1 from t2) as in_row_s FROM t1, (select c25 x, c32 y from t2) tt WHERE x * 1 = c25;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-6 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-5 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-4 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-deallocate prepare stmt1;
-set optimizer_switch=@tmp_optimizer_switch;
-drop tables t1,t2;
-set @@optimizer_switch=@save_optimizer_switch;
-set @arg00=1;
-prepare stmt1 from ' create table t1 (m int) as select 1 as m ' ;
-execute stmt1 ;
-select m from t1;
-m
-1
-drop table t1;
-prepare stmt1 from ' create table t1 (m int) as select ? as m ' ;
-execute stmt1 using @arg00;
-select m from t1;
-m
-1
-deallocate prepare stmt1;
-drop table t1;
-create table t1 (id int(10) unsigned NOT NULL default '0',
-name varchar(64) NOT NULL default '',
-PRIMARY KEY (id), UNIQUE KEY `name` (`name`));
-insert into t1 values (1,'1'),(2,'2'),(3,'3'),(4,'4'),(5,'5'),(6,'6'),(7,'7');
-prepare stmt1 from 'select name from t1 where id=? or id=?';
-set @id1=1,@id2=6;
-execute stmt1 using @id1, @id2;
-name
-1
-6
-select name from t1 where id=1 or id=6;
-name
-1
-6
-deallocate prepare stmt1;
-drop table t1;
-create table t1 ( a int primary key, b varchar(30)) engine = MYISAM ;
-prepare stmt1 from ' show table status from test like ''t1%'' ';
-execute stmt1;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Dynamic 0 0 0 4294967295 1024 0 NULL # # # latin1_swedish_ci NULL 288230376151710720 N
-show table status from test like 't1%' ;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Dynamic 0 0 0 4294967295 1024 0 NULL # # # latin1_swedish_ci NULL 288230376151710720 N
-deallocate prepare stmt1 ;
-drop table t1;
-create table t1(a varchar(2), b varchar(3));
-prepare stmt1 from "select a, b from t1 where (not (a='aa' and b < 'zzz'))";
-execute stmt1;
-a b
-execute stmt1;
-a b
-deallocate prepare stmt1;
-drop table t1;
-prepare stmt1 from "select 1 into @var";
-execute stmt1;
-execute stmt1;
-prepare stmt1 from "create table t1 select 1 as i";
-execute stmt1;
-drop table t1;
-execute stmt1;
-prepare stmt1 from "insert into t1 select i from t1";
-execute stmt1;
-execute stmt1;
-prepare stmt1 from "select * from t1 into outfile '<MYSQLTEST_VARDIR>/tmp/f1.txt'";
-execute stmt1;
-deallocate prepare stmt1;
-drop table t1;
-prepare stmt1 from 'select 1';
-prepare STMT1 from 'select 2';
-execute sTmT1;
-2
-2
-deallocate prepare StMt1;
-deallocate prepare Stmt1;
-ERROR HY000: Unknown prepared statement handler (Stmt1) given to DEALLOCATE PREPARE
-set names utf8;
-prepare `ü` from 'select 1234';
-execute `ü` ;
-1234
-1234
-set names latin1;
-execute `ü`;
-1234
-1234
-deallocate prepare `ü`;
-set names default;
-create table t1 (a varchar(10)) charset=utf8;
-insert into t1 (a) values ('yahoo');
-set character_set_connection=latin1;
-prepare stmt from 'select a from t1 where a like ?';
-set @var='google';
-execute stmt using @var;
-a
-execute stmt using @var;
-a
-deallocate prepare stmt;
-drop table t1;
-create table t1 (a bigint(20) not null primary key auto_increment);
-insert into t1 (a) values (null);
-select * from t1;
-a
-1
-prepare stmt from "insert into t1 (a) values (?)";
-set @var=null;
-execute stmt using @var;
-select * from t1;
-a
-1
-2
-drop table t1;
-create table t1 (a timestamp not null);
-prepare stmt from "insert into t1 (a) values (?)";
-execute stmt using @var;
-select * from t1;
-deallocate prepare stmt;
-drop table t1;
-prepare stmt from "select 'abc' like convert('abc' using utf8)";
-execute stmt;
-'abc' like convert('abc' using utf8)
-1
-execute stmt;
-'abc' like convert('abc' using utf8)
-1
-deallocate prepare stmt;
-create table t1 ( a bigint );
-prepare stmt from 'select a from t1 where a between ? and ?';
-set @a=1;
-execute stmt using @a, @a;
-a
-execute stmt using @a, @a;
-a
-execute stmt using @a, @a;
-a
-drop table t1;
-deallocate prepare stmt;
-create table t1 (a int);
-prepare stmt from "select * from t1 where 1 > (1 in (SELECT * FROM t1))";
-execute stmt;
-a
-execute stmt;
-a
-execute stmt;
-a
-drop table t1;
-deallocate prepare stmt;
-create table t1 (a int, b int);
-insert into t1 (a, b) values (1,1), (1,2), (2,1), (2,2);
-prepare stmt from
-"explain select * from t1 where t1.a=2 and t1.a=t1.b and t1.b > 1 + ?";
-set @v=5;
-execute stmt using @v;
-id select_type table type possible_keys key key_len ref rows Extra
-- - - - - - - - NULL Impossible WHERE
-set @v=0;
-execute stmt using @v;
-id select_type table type possible_keys key key_len ref rows Extra
-- - - - - - - - 4 Using where
-set @v=5;
-execute stmt using @v;
-id select_type table type possible_keys key key_len ref rows Extra
-- - - - - - - - NULL Impossible WHERE
-drop table t1;
-deallocate prepare stmt;
-create table t1 (a int);
-insert into t1 (a) values (1), (2), (3), (4);
-set @precision=10000000000;
-select rand(),
-cast(rand(10)*@precision as unsigned integer) from t1;
-rand() cast(rand(10)*@precision as unsigned integer)
-- 6570515220
-- 1282061302
-- 6698761160
-- 9647622201
-prepare stmt from
-"select rand(),
- cast(rand(10)*@precision as unsigned integer),
- cast(rand(?)*@precision as unsigned integer) from t1";
-set @var=1;
-execute stmt using @var;
-rand() cast(rand(10)*@precision as unsigned integer) cast(rand(?)*@precision as unsigned integer)
-- 6570515220 -
-- 1282061302 -
-- 6698761160 -
-- 9647622201 -
-set @var=2;
-execute stmt using @var;
-rand() cast(rand(10)*@precision as unsigned integer) cast(rand(?)*@precision as unsigned integer)
-- 6570515220 6555866465
-- 1282061302 1223466193
-- 6698761160 6449731874
-- 9647622201 8578261098
-set @var=3;
-execute stmt using @var;
-rand() cast(rand(10)*@precision as unsigned integer) cast(rand(?)*@precision as unsigned integer)
-- 6570515220 9057697560
-- 1282061302 3730790581
-- 6698761160 1480860535
-- 9647622201 6211931236
-drop table t1;
-deallocate prepare stmt;
-create database mysqltest1;
-create table t1 (a int);
-create table mysqltest1.t1 (a int);
-select * from t1, mysqltest1.t1;
-a a
-prepare stmt from "select * from t1, mysqltest1.t1";
-execute stmt;
-a a
-execute stmt;
-a a
-execute stmt;
-a a
-drop table t1;
-drop table mysqltest1.t1;
-drop database mysqltest1;
-deallocate prepare stmt;
-select '1.1' as a, '1.2' as a UNION SELECT '2.1', '2.2';
-a a
-1.1 1.2
-2.1 2.2
-prepare stmt from
-"select '1.1' as a, '1.2' as a UNION SELECT '2.1', '2.2'";
-execute stmt;
-a a
-1.1 1.2
-2.1 2.2
-execute stmt;
-a a
-1.1 1.2
-2.1 2.2
-execute stmt;
-a a
-1.1 1.2
-2.1 2.2
-deallocate prepare stmt;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-create table t2 select * from t1;
-prepare stmt FROM 'create table t2 select * from t1';
-drop table t2;
-execute stmt;
-drop table t2;
-execute stmt;
-execute stmt;
-ERROR 42S01: Table 't2' already exists
-drop table t2;
-execute stmt;
-drop table t1,t2;
-deallocate prepare stmt;
-create table t1 (a int);
-insert into t1 (a) values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-prepare stmt from "select sql_calc_found_rows * from t1 limit 2";
-execute stmt;
-a
-1
-2
-select found_rows();
-found_rows()
-10
-execute stmt;
-a
-1
-2
-select found_rows();
-found_rows()
-10
-execute stmt;
-a
-1
-2
-select found_rows();
-found_rows()
-10
-deallocate prepare stmt;
-drop table t1;
-CREATE TABLE t1 (N int, M tinyint);
-INSERT INTO t1 VALUES (1,0),(1,0),(2,0),(2,0),(3,0);
-PREPARE stmt FROM 'UPDATE t1 AS P1 INNER JOIN (SELECT N FROM t1 GROUP BY N HAVING COUNT(M) > 1) AS P2 ON P1.N = P2.N SET P1.M = 2';
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-prepare stmt from "select ? is null, ? is not null, ?";
-select @no_such_var is null, @no_such_var is not null, @no_such_var;
-@no_such_var is null @no_such_var is not null @no_such_var
-1 0 NULL
-execute stmt using @no_such_var, @no_such_var, @no_such_var;
-? is null ? is not null ?
-1 0 NULL
-set @var='abc';
-select @var is null, @var is not null, @var;
-@var is null @var is not null @var
-0 1 abc
-execute stmt using @var, @var, @var;
-? is null ? is not null ?
-0 1 abc
-set @var=null;
-select @var is null, @var is not null, @var;
-@var is null @var is not null @var
-1 0 NULL
-execute stmt using @var, @var, @var;
-? is null ? is not null ?
-1 0 NULL
-create table t1 (pnum char(3));
-create table t2 (pnum char(3));
-prepare stmt from "select pnum from t2 having pnum in (select 'p1' from t1)";
-execute stmt;
-pnum
-execute stmt;
-pnum
-execute stmt;
-pnum
-deallocate prepare stmt;
-drop table t1, t2;
-drop table if exists t1;
-create temporary table if not exists t1 (a1 int);
-prepare stmt from "delete t1 from t1 where (cast(a1/3 as unsigned) * 3) = a1";
-drop temporary table t1;
-create temporary table if not exists t1 (a1 int);
-execute stmt;
-drop temporary table t1;
-create temporary table if not exists t1 (a1 int);
-execute stmt;
-drop temporary table t1;
-create temporary table if not exists t1 (a1 int);
-execute stmt;
-drop temporary table t1;
-deallocate prepare stmt;
-create table t1 (a varchar(20));
-insert into t1 values ('foo');
-prepare stmt FROM 'SELECT char_length (a) FROM t1';
-prepare stmt2 FROM 'SELECT not_a_function (a) FROM t1';
-ERROR 42000: FUNCTION test.not_a_function does not exist
-drop table t1;
-prepare stmt from "SELECT SQL_CALC_FOUND_ROWS 'foo' UNION SELECT 'bar' LIMIT 0";
-execute stmt;
-foo
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-2
-execute stmt;
-foo
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-2
-deallocate prepare stmt;
-drop table if exists t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-create table t1 (c1 int(11) not null, c2 int(11) not null,
-primary key (c1,c2), key c2 (c2), key c1 (c1));
-insert into t1 values (200887, 860);
-insert into t1 values (200887, 200887);
-select * from t1 where (c1=200887 and c2=200887) or c2=860;
-c1 c2
-200887 860
-200887 200887
-prepare stmt from
-"select * from t1 where (c1=200887 and c2=200887) or c2=860";
-execute stmt;
-c1 c2
-200887 860
-200887 200887
-prepare stmt from
-"select * from t1 where (c1=200887 and c2=?) or c2=?";
-set @a=200887, @b=860;
-execute stmt using @a, @b;
-c1 c2
-200887 860
-200887 200887
-deallocate prepare stmt;
-drop table t1;
-create table t1 (
-id bigint(20) not null auto_increment,
-code varchar(20) character set utf8 collate utf8_bin not null default '',
-company_name varchar(250) character set utf8 collate utf8_bin default null,
-setup_mode tinyint(4) default null,
-start_date datetime default null,
-primary key (id), unique key code (code)
-);
-create table t2 (
-id bigint(20) not null auto_increment,
-email varchar(250) character set utf8 collate utf8_bin default null,
-name varchar(250) character set utf8 collate utf8_bin default null,
-t1_id bigint(20) default null,
-password varchar(250) character set utf8 collate utf8_bin default null,
-primary_contact tinyint(4) not null default '0',
-email_opt_in tinyint(4) not null default '1',
-primary key (id), unique key email (email), key t1_id (t1_id),
-constraint t2_fk1 foreign key (t1_id) references t1 (id)
-);
-insert into t1 values
-(1, 'demo', 'demo s', 0, current_date()),
-(2, 'code2', 'name 2', 0, current_date()),
-(3, 'code3', 'name 3', 0, current_date());
-insert into t2 values
-(2, 'email1', 'name1', 3, 'password1', 0, 0),
-(3, 'email2', 'name1', 1, 'password2', 1, 0),
-(5, 'email3', 'name3', 2, 'password3', 0, 0);
-prepare stmt from 'select t2.id from t2, t1 where (t1.id=? and t2.t1_id=t1.id)';
-set @a=1;
-execute stmt using @a;
-id
-3
-select t2.id from t2, t1 where (t1.id=1 and t2.t1_id=t1.id);
-id
-3
-deallocate prepare stmt;
-drop table t1, t2;
-create table t1 (id int);
-prepare stmt from "insert into t1 (id) select id from t1 union select id from t1";
-execute stmt;
-execute stmt;
-deallocate prepare stmt;
-drop table t1;
-create table t1 (
-id int(11) unsigned not null primary key auto_increment,
-partner_id varchar(35) not null,
-t1_status_id int(10) unsigned
-);
-insert into t1 values ("1", "partner1", "10"), ("2", "partner2", "10"),
-("3", "partner3", "10"), ("4", "partner4", "10");
-create table t2 (
-id int(11) unsigned not null default '0',
-t1_line_id int(11) unsigned not null default '0',
-article_id varchar(20),
-sequence int(11) not null default '0',
-primary key (id,t1_line_id)
-);
-insert into t2 values ("1", "1", "sup", "0"), ("2", "1", "sup", "1"),
-("2", "2", "sup", "2"), ("2", "3", "sup", "3"),
-("2", "4", "imp", "4"), ("3", "1", "sup", "0"),
-("4", "1", "sup", "0");
-create table t3 (
-id int(11) not null default '0',
-preceding_id int(11) not null default '0',
-primary key (id,preceding_id)
-);
-create table t4 (
-user_id varchar(50) not null,
-article_id varchar(20) not null,
-primary key (user_id,article_id)
-);
-insert into t4 values("nicke", "imp");
-prepare stmt from
-'select distinct t1.partner_id
-from t1 left join t3 on t1.id = t3.id
- left join t1 pp on pp.id = t3.preceding_id
-where
- exists (
- select *
- from t2 as pl_inner
- where pl_inner.id = t1.id
- and pl_inner.sequence <= (
- select min(sequence) from t2 pl_seqnr
- where pl_seqnr.id = t1.id
- )
- and exists (
- select * from t4
- where t4.article_id = pl_inner.article_id
- and t4.user_id = ?
- )
- )
- and t1.id = ?
-group by t1.id
-having count(pp.id) = 0';
-set @user_id = 'nicke';
-set @id = '2';
-execute stmt using @user_id, @id;
-partner_id
-execute stmt using @user_id, @id;
-partner_id
-deallocate prepare stmt;
-drop table t1, t2, t3, t4;
-prepare stmt from 'select ?=?';
-set @a='CHRISTINE ';
-set @b='CHRISTINE';
-execute stmt using @a, @b;
-?=?
-1
-execute stmt using @a, @b;
-?=?
-1
-set @a=1, @b=2;
-execute stmt using @a, @b;
-?=?
-0
-set @a='CHRISTINE ';
-set @b='CHRISTINE';
-execute stmt using @a, @b;
-?=?
-1
-deallocate prepare stmt;
-create table t1 (a int);
-prepare stmt from "select ??";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?' at line 1
-prepare stmt from "select ?FROM t1";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?FROM t1' at line 1
-prepare stmt from "select FROM t1 WHERE?=1";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM t1 WHERE?=1' at line 1
-prepare stmt from "update t1 set a=a+?WHERE 1";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?WHERE 1' at line 1
-select ?;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?' at line 1
-select ??;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '??' at line 1
-select ? from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? from t1' at line 1
-drop table t1;
-prepare stmt from "select @@time_zone";
-execute stmt;
-@@time_zone
-SYSTEM
-set @@time_zone:='Japan';
-execute stmt;
-@@time_zone
-Japan
-prepare stmt from "select @@tx_isolation";
-execute stmt;
-@@tx_isolation
-REPEATABLE-READ
-set transaction isolation level read committed;
-execute stmt;
-@@tx_isolation
-REPEATABLE-READ
-set transaction isolation level serializable;
-execute stmt;
-@@tx_isolation
-REPEATABLE-READ
-set @@tx_isolation=default;
-execute stmt;
-@@tx_isolation
-REPEATABLE-READ
-deallocate prepare stmt;
-prepare stmt from "create temporary table t1 (letter enum('','a','b','c')
-not null)";
-execute stmt;
-drop table t1;
-execute stmt;
-drop table t1;
-execute stmt;
-drop table t1;
-set names latin1;
-prepare stmt from "create table t1 (a enum('test') default 'test')
- character set utf8";
-execute stmt;
-drop table t1;
-execute stmt;
-drop table t1;
-execute stmt;
-drop table t1;
-set names default;
-deallocate prepare stmt;
-create table t1 (
-word_id mediumint(8) unsigned not null default '0',
-formatted varchar(20) not null default ''
-);
-insert into t1 values
-(80,'pendant'), (475,'pretendants'), (989,'tendances'),
-(1019,'cependant'),(1022,'abondance'),(1205,'independants'),
-(13,'lessiver'),(25,'lambiner'),(46,'situer'),(71,'terminer'),
-(82,'decrocher');
-select count(*) from t1 where formatted like '%NDAN%';
-count(*)
-6
-select count(*) from t1 where formatted like '%ER';
-count(*)
-5
-prepare stmt from "select count(*) from t1 where formatted like ?";
-set @like="%NDAN%";
-execute stmt using @like;
-count(*)
-6
-set @like="%ER";
-execute stmt using @like;
-count(*)
-5
-set @like="%NDAN%";
-execute stmt using @like;
-count(*)
-6
-set @like="%ER";
-execute stmt using @like;
-count(*)
-5
-deallocate prepare stmt;
-drop table t1;
-prepare stmt from 'create table t1 (a varchar(10) character set utf8)';
-execute stmt;
-insert ignore into t1 (a) values (repeat('a', 20));
-select length(a) from t1;
-length(a)
-10
-drop table t1;
-execute stmt;
-insert ignore into t1 (a) values (repeat('a', 20));
-select length(a) from t1;
-length(a)
-10
-drop table t1;
-deallocate prepare stmt;
-create table t1 (col1 integer, col2 integer);
-insert into t1 values(100,100),(101,101),(102,102),(103,103);
-prepare stmt from 'select col1, col2 from t1 where (col1, col2) in ((?,?))';
-set @a=100, @b=100;
-execute stmt using @a,@b;
-col1 col2
-100 100
-set @a=101, @b=101;
-execute stmt using @a,@b;
-col1 col2
-101 101
-set @a=102, @b=102;
-execute stmt using @a,@b;
-col1 col2
-102 102
-set @a=102, @b=103;
-execute stmt using @a,@b;
-col1 col2
-deallocate prepare stmt;
-drop table t1;
-set @old_max_prepared_stmt_count= @@max_prepared_stmt_count;
-show variables like 'max_prepared_stmt_count';
-Variable_name Value
-max_prepared_stmt_count 16382
-show status like 'prepared_stmt_count';
-Variable_name Value
-Prepared_stmt_count 0
-select @@max_prepared_stmt_count;
-@@max_prepared_stmt_count
-16382
-set global max_prepared_stmt_count=-1;
-Warnings:
-Warning 1292 Truncated incorrect max_prepared_stmt_count value: '-1'
-select @@max_prepared_stmt_count;
-@@max_prepared_stmt_count
-0
-set global max_prepared_stmt_count=10000000000000000;
-Warnings:
-Warning 1292 Truncated incorrect max_prepared_stmt_count value: '10000000000000000'
-select @@max_prepared_stmt_count;
-@@max_prepared_stmt_count
-1048576
-set global max_prepared_stmt_count=default;
-select @@max_prepared_stmt_count;
-@@max_prepared_stmt_count
-16382
-set @@max_prepared_stmt_count=1;
-ERROR HY000: Variable 'max_prepared_stmt_count' is a GLOBAL variable and should be set with SET GLOBAL
-set max_prepared_stmt_count=1;
-ERROR HY000: Variable 'max_prepared_stmt_count' is a GLOBAL variable and should be set with SET GLOBAL
-set local max_prepared_stmt_count=1;
-ERROR HY000: Variable 'max_prepared_stmt_count' is a GLOBAL variable and should be set with SET GLOBAL
-set global max_prepared_stmt_count=1;
-select @@max_prepared_stmt_count;
-@@max_prepared_stmt_count
-1
-set global max_prepared_stmt_count=0;
-select @@max_prepared_stmt_count;
-@@max_prepared_stmt_count
-0
-show status like 'prepared_stmt_count';
-Variable_name Value
-Prepared_stmt_count 0
-prepare stmt from "select 1";
-ERROR 42000: Can't create more than max_prepared_stmt_count statements (current value: 0)
-show status like 'prepared_stmt_count';
-Variable_name Value
-Prepared_stmt_count 0
-set global max_prepared_stmt_count=1;
-prepare stmt from "select 1";
-show status like 'prepared_stmt_count';
-Variable_name Value
-Prepared_stmt_count 1
-prepare stmt1 from "select 1";
-ERROR 42000: Can't create more than max_prepared_stmt_count statements (current value: 1)
-show status like 'prepared_stmt_count';
-Variable_name Value
-Prepared_stmt_count 1
-deallocate prepare stmt;
-show status like 'prepared_stmt_count';
-Variable_name Value
-Prepared_stmt_count 0
-prepare stmt from "select 1";
-show status like 'prepared_stmt_count';
-Variable_name Value
-Prepared_stmt_count 1
-prepare stmt from "select 2";
-show status like 'prepared_stmt_count';
-Variable_name Value
-Prepared_stmt_count 1
-show status like 'prepared_stmt_count';
-Variable_name Value
-Prepared_stmt_count 1
-select @@max_prepared_stmt_count;
-@@max_prepared_stmt_count
-1
-set global max_prepared_stmt_count=0;
-prepare stmt from "select 1";
-ERROR 42000: Can't create more than max_prepared_stmt_count statements (current value: 0)
-execute stmt;
-ERROR HY000: Unknown prepared statement handler (stmt) given to EXECUTE
-show status like 'prepared_stmt_count';
-Variable_name Value
-Prepared_stmt_count 0
-prepare stmt from "select 1";
-ERROR 42000: Can't create more than max_prepared_stmt_count statements (current value: 0)
-show status like 'prepared_stmt_count';
-Variable_name Value
-Prepared_stmt_count 0
-set global max_prepared_stmt_count=3;
-select @@max_prepared_stmt_count;
-@@max_prepared_stmt_count
-3
-show status like 'prepared_stmt_count';
-Variable_name Value
-Prepared_stmt_count 0
-prepare stmt from "select 1";
-connect con1,localhost,root,,;
-connection con1;
-prepare stmt from "select 2";
-prepare stmt1 from "select 3";
-prepare stmt2 from "select 4";
-ERROR 42000: Can't create more than max_prepared_stmt_count statements (current value: 3)
-connection default;
-prepare stmt2 from "select 4";
-ERROR 42000: Can't create more than max_prepared_stmt_count statements (current value: 3)
-select @@max_prepared_stmt_count;
-@@max_prepared_stmt_count
-3
-show status like 'prepared_stmt_count';
-Variable_name Value
-Prepared_stmt_count 3
-disconnect con1;
-connection default;
-deallocate prepare stmt;
-select @@max_prepared_stmt_count;
-@@max_prepared_stmt_count
-3
-show status like 'prepared_stmt_count';
-Variable_name Value
-Prepared_stmt_count 0
-set global max_prepared_stmt_count= @old_max_prepared_stmt_count;
-drop table if exists t1;
-create temporary table if not exists t1 (a1 int);
-prepare stmt from "delete t1 from t1 where (cast(a1/3 as unsigned) * 3) = a1";
-drop temporary table t1;
-create temporary table if not exists t1 (a1 int);
-execute stmt;
-drop temporary table t1;
-create temporary table if not exists t1 (a1 int);
-execute stmt;
-drop temporary table t1;
-create temporary table if not exists t1 (a1 int);
-execute stmt;
-drop temporary table t1;
-deallocate prepare stmt;
-CREATE TABLE t1(
-ID int(10) unsigned NOT NULL auto_increment,
-Member_ID varchar(15) NOT NULL default '',
-Action varchar(12) NOT NULL,
-Action_Date datetime NOT NULL,
-Track varchar(15) default NULL,
-User varchar(12) default NULL,
-Date_Updated timestamp NOT NULL default CURRENT_TIMESTAMP on update
-CURRENT_TIMESTAMP,
-PRIMARY KEY (ID),
-KEY Action (Action),
-KEY Action_Date (Action_Date)
-);
-INSERT INTO t1(Member_ID, Action, Action_Date, Track) VALUES
-('111111', 'Disenrolled', '2006-03-01', 'CAD' ),
-('111111', 'Enrolled', '2006-03-01', 'CAD' ),
-('111111', 'Disenrolled', '2006-07-03', 'CAD' ),
-('222222', 'Enrolled', '2006-03-07', 'CAD' ),
-('222222', 'Enrolled', '2006-03-07', 'CHF' ),
-('222222', 'Disenrolled', '2006-08-02', 'CHF' ),
-('333333', 'Enrolled', '2006-03-01', 'CAD' ),
-('333333', 'Disenrolled', '2006-03-01', 'CAD' ),
-('444444', 'Enrolled', '2006-03-01', 'CAD' ),
-('555555', 'Disenrolled', '2006-03-01', 'CAD' ),
-('555555', 'Enrolled', '2006-07-21', 'CAD' ),
-('555555', 'Disenrolled', '2006-03-01', 'CHF' ),
-('666666', 'Enrolled', '2006-02-09', 'CAD' ),
-('666666', 'Enrolled', '2006-05-12', 'CHF' ),
-('666666', 'Disenrolled', '2006-06-01', 'CAD' );
-PREPARE STMT FROM
-"SELECT GROUP_CONCAT(Track SEPARATOR ', ') FROM t1
- WHERE Member_ID=? AND Action='Enrolled' AND
- (Track,Action_Date) IN (SELECT Track, MAX(Action_Date) FROM t1
- WHERE Member_ID=?
- GROUP BY Track
- HAVING Track>='CAD' AND
- MAX(Action_Date)>'2006-03-01')";
-SET @id='111111';
-EXECUTE STMT USING @id,@id;
-GROUP_CONCAT(Track SEPARATOR ', ')
-NULL
-SET @id='222222';
-EXECUTE STMT USING @id,@id;
-GROUP_CONCAT(Track SEPARATOR ', ')
-CAD
-DEALLOCATE PREPARE STMT;
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (i INT, INDEX(i));
-INSERT INTO t1 VALUES (1);
-PREPARE stmt FROM "SELECT (COUNT(i) = 1), COUNT(i) FROM t1 WHERE i = ?";
-SET @a = 0;
-EXECUTE stmt USING @a;
-(COUNT(i) = 1) COUNT(i)
-0 0
-SET @a = 1;
-EXECUTE stmt USING @a;
-(COUNT(i) = 1) COUNT(i)
-1 1
-SET @a = 0;
-EXECUTE stmt USING @a;
-(COUNT(i) = 1) COUNT(i)
-0 0
-PREPARE stmt FROM "SELECT (AVG(i) = 1), AVG(i) FROM t1 WHERE i = ?";
-SET @a = 0;
-EXECUTE stmt USING @a;
-(AVG(i) = 1) AVG(i)
-NULL NULL
-SET @a = 1;
-EXECUTE stmt USING @a;
-(AVG(i) = 1) AVG(i)
-1 1.0000
-SET @a = 0;
-EXECUTE stmt USING @a;
-(AVG(i) = 1) AVG(i)
-NULL NULL
-PREPARE stmt FROM "SELECT (VARIANCE(i) = 1), VARIANCE(i) FROM t1 WHERE i = ?";
-SET @a = 0;
-EXECUTE stmt USING @a;
-(VARIANCE(i) = 1) VARIANCE(i)
-NULL NULL
-SET @a = 1;
-EXECUTE stmt USING @a;
-(VARIANCE(i) = 1) VARIANCE(i)
-0 0.0000
-SET @a = 0;
-EXECUTE stmt USING @a;
-(VARIANCE(i) = 1) VARIANCE(i)
-NULL NULL
-PREPARE stmt FROM "SELECT (STDDEV(i) = 1), STDDEV(i) FROM t1 WHERE i = ?";
-SET @a = 0;
-EXECUTE stmt USING @a;
-(STDDEV(i) = 1) STDDEV(i)
-NULL NULL
-SET @a = 1;
-EXECUTE stmt USING @a;
-(STDDEV(i) = 1) STDDEV(i)
-0 0.0000
-SET @a = 0;
-EXECUTE stmt USING @a;
-(STDDEV(i) = 1) STDDEV(i)
-NULL NULL
-PREPARE stmt FROM "SELECT (BIT_OR(i) = 1), BIT_OR(i) FROM t1 WHERE i = ?";
-SET @a = 0;
-EXECUTE stmt USING @a;
-(BIT_OR(i) = 1) BIT_OR(i)
-0 0
-SET @a = 1;
-EXECUTE stmt USING @a;
-(BIT_OR(i) = 1) BIT_OR(i)
-1 1
-SET @a = 0;
-EXECUTE stmt USING @a;
-(BIT_OR(i) = 1) BIT_OR(i)
-0 0
-PREPARE stmt FROM "SELECT (BIT_AND(i) = 1), BIT_AND(i) FROM t1 WHERE i = ?";
-SET @a = 0;
-EXECUTE stmt USING @a;
-(BIT_AND(i) = 1) BIT_AND(i)
-0 18446744073709551615
-SET @a = 1;
-EXECUTE stmt USING @a;
-(BIT_AND(i) = 1) BIT_AND(i)
-1 1
-SET @a = 0;
-EXECUTE stmt USING @a;
-(BIT_AND(i) = 1) BIT_AND(i)
-0 18446744073709551615
-PREPARE stmt FROM "SELECT (BIT_XOR(i) = 1), BIT_XOR(i) FROM t1 WHERE i = ?";
-SET @a = 0;
-EXECUTE stmt USING @a;
-(BIT_XOR(i) = 1) BIT_XOR(i)
-0 0
-SET @a = 1;
-EXECUTE stmt USING @a;
-(BIT_XOR(i) = 1) BIT_XOR(i)
-1 1
-SET @a = 0;
-EXECUTE stmt USING @a;
-(BIT_XOR(i) = 1) BIT_XOR(i)
-0 0
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (i INT);
-PREPARE st_19182
-FROM "CREATE TABLE t2 (i INT, j INT, KEY (i), KEY(j)) SELECT i FROM t1";
-EXECUTE st_19182;
-DESC t2;
-Field Type Null Key Default Extra
-j int(11) YES MUL NULL
-i int(11) YES MUL NULL
-DROP TABLE t2;
-EXECUTE st_19182;
-DESC t2;
-Field Type Null Key Default Extra
-j int(11) YES MUL NULL
-i int(11) YES MUL NULL
-DEALLOCATE PREPARE st_19182;
-DROP TABLE t2, t1;
-drop database if exists mysqltest;
-drop table if exists t1, t2;
-create database mysqltest character set utf8;
-prepare stmt1 from "create table mysqltest.t1 (c char(10))";
-prepare stmt2 from "create table mysqltest.t2 select 'test'";
-execute stmt1;
-execute stmt2;
-show create table mysqltest.t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-show create table mysqltest.t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `test` varchar(4) CHARACTER SET latin1 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8
-drop table mysqltest.t1;
-drop table mysqltest.t2;
-alter database mysqltest character set latin1;
-execute stmt1;
-execute stmt2;
-show create table mysqltest.t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create table mysqltest.t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `test` varchar(4) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop database mysqltest;
-deallocate prepare stmt1;
-deallocate prepare stmt2;
-execute stmt;
-show create table t1;
-drop table t1;
-execute stmt;
-show create table t1;
-drop table t1;
-deallocate prepare stmt;
-CREATE TABLE t1(a int);
-INSERT INTO t1 VALUES (2), (3), (1);
-PREPARE st1 FROM
-'(SELECT a FROM t1) UNION (SELECT a+10 FROM t1) ORDER BY RAND()*0+a';
-EXECUTE st1;
-a
-1
-2
-3
-11
-12
-13
-EXECUTE st1;
-a
-1
-2
-3
-11
-12
-13
-DEALLOCATE PREPARE st1;
-DROP TABLE t1;
-create table t1 (a int, b tinyint);
-prepare st1 from 'update t1 set b= (str_to_date(a, a))';
-execute st1;
-deallocate prepare st1;
-drop table t1;
-End of 4.1 tests.
-create table t1 (a varchar(20));
-insert into t1 values ('foo');
-prepare stmt FROM 'SELECT char_length (a) FROM t1';
-prepare stmt2 FROM 'SELECT not_a_function (a) FROM t1';
-ERROR 42000: FUNCTION test.not_a_function does not exist
-drop table t1;
-create table t1 (a char(3) not null, b char(3) not null,
-c char(3) not null, primary key (a, b, c));
-create table t2 like t1;
-prepare stmt from
-"select t1.a from (t1 left outer join t2 on t2.a=1 and t1.b=t2.b)
- where t1.a=1";
-execute stmt;
-a
-execute stmt;
-a
-execute stmt;
-a
-prepare stmt from
-"select t1.a, t1.b, t1.c, t2.a, t2.b, t2.c from
-(t1 left outer join t2 on t2.a=? and t1.b=t2.b)
-left outer join t2 t3 on t3.a=? where t1.a=?";
-set @a:=1, @b:=1, @c:=1;
-execute stmt using @a, @b, @c;
-a b c a b c
-execute stmt using @a, @b, @c;
-a b c a b c
-execute stmt using @a, @b, @c;
-a b c a b c
-deallocate prepare stmt;
-drop table t1,t2;
-SET @aux= "SELECT COUNT(*)
- FROM INFORMATION_SCHEMA.COLUMNS A,
- INFORMATION_SCHEMA.COLUMNS B
- WHERE A.TABLE_SCHEMA = B.TABLE_SCHEMA
- AND A.TABLE_NAME = B.TABLE_NAME
- AND A.COLUMN_NAME = B.COLUMN_NAME AND
- A.TABLE_NAME = 'user'";
-prepare my_stmt from @aux;
-execute my_stmt;
-COUNT(*)
-47
-Warnings:
-Warning 1286 Unknown storage engine 'InnoDB'
-Warning 1286 Unknown storage engine 'InnoDB'
-Warning 1286 Unknown storage engine 'InnoDB'
-execute my_stmt;
-COUNT(*)
-47
-Warnings:
-Warning 1286 Unknown storage engine 'InnoDB'
-Warning 1286 Unknown storage engine 'InnoDB'
-Warning 1286 Unknown storage engine 'InnoDB'
-execute my_stmt;
-COUNT(*)
-47
-Warnings:
-Warning 1286 Unknown storage engine 'InnoDB'
-Warning 1286 Unknown storage engine 'InnoDB'
-Warning 1286 Unknown storage engine 'InnoDB'
-deallocate prepare my_stmt;
-drop procedure if exists p1|
-drop table if exists t1|
-create table t1 (id int)|
-insert into t1 values(1)|
-create procedure p1(a int, b int)
-begin
-declare c int;
-select max(id)+1 into c from t1;
-insert into t1 select a+b;
-insert into t1 select a-b;
-insert into t1 select a-c;
-end|
-set @a= 3, @b= 4|
-prepare stmt from "call p1(?, ?)"|
-execute stmt using @a, @b|
-execute stmt using @a, @b|
-select * from t1|
-id
-1
-7
--1
-1
-7
--1
--5
-deallocate prepare stmt|
-drop procedure p1|
-drop table t1|
-create table t1 (a int);
-insert into t1 (a) values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-prepare stmt from "select * from t1 limit ?, ?";
-set @offset=0, @limit=1;
-execute stmt using @offset, @limit;
-a
-1
-select * from t1 limit 0, 1;
-a
-1
-set @offset=3, @limit=2;
-execute stmt using @offset, @limit;
-a
-4
-5
-select * from t1 limit 3, 2;
-a
-4
-5
-prepare stmt from "select * from t1 limit ?";
-execute stmt using @limit;
-a
-1
-2
-prepare stmt from "select * from t1 where a in (select a from t1 limit ?)";
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-prepare stmt from "select * from t1 union all select * from t1 limit ?, ?";
-set @offset=9;
-set @limit=2;
-execute stmt using @offset, @limit;
-a
-10
-1
-prepare stmt from "(select * from t1 limit ?, ?) union all
- (select * from t1 limit ?, ?) order by a limit ?";
-execute stmt using @offset, @limit, @offset, @limit, @limit;
-a
-10
-10
-drop table t1;
-deallocate prepare stmt;
-CREATE TABLE b12651_T1(a int) ENGINE=MYISAM;
-CREATE TABLE b12651_T2(b int) ENGINE=MYISAM;
-CREATE VIEW b12651_V1 as SELECT b FROM b12651_T2;
-PREPARE b12651 FROM 'SELECT 1 FROM b12651_T1 WHERE a IN (SELECT b FROM b12651_V1)';
-EXECUTE b12651;
-1
-DROP VIEW b12651_V1;
-DROP TABLE b12651_T1, b12651_T2;
-DEALLOCATE PREPARE b12651;
-create table t1 (id int);
-prepare ins_call from "insert into t1 (id) values (1)";
-execute ins_call;
-select row_count();
-row_count()
-1
-drop table t1;
-create table t1 (a int, b int);
-insert into t1 (a,b) values (2,8),(1,9),(3,7);
-prepare stmt from "select * from t1 order by ?";
-set @a=NULL;
-execute stmt using @a;
-a b
-2 8
-1 9
-3 7
-set @a=1;
-execute stmt using @a;
-a b
-1 9
-2 8
-3 7
-set @a=2;
-execute stmt using @a;
-a b
-3 7
-2 8
-1 9
-deallocate prepare stmt;
-select * from t1 order by 1;
-a b
-1 9
-2 8
-3 7
-prepare stmt from "select * from t1 order by ?+1";
-set @a=0;
-execute stmt using @a;
-a b
-2 8
-1 9
-3 7
-set @a=1;
-execute stmt using @a;
-a b
-2 8
-1 9
-3 7
-deallocate prepare stmt;
-select * from t1 order by 1+1;
-a b
-2 8
-1 9
-3 7
-drop table t1;
-create table t1 (a int);
-create table t2 like t1;
-create table t3 like t2;
-prepare stmt from "repair table t1";
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-prepare stmt from "optimize table t1";
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 optimize status Table is already up to date
-prepare stmt from "analyze table t1";
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-prepare stmt from "repair table t1, t2, t3";
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-test.t2 repair status OK
-test.t3 repair status OK
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-test.t2 repair status OK
-test.t3 repair status OK
-prepare stmt from "optimize table t1, t2, t3";
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-test.t2 optimize status OK
-test.t3 optimize status OK
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 optimize status Table is already up to date
-test.t2 optimize status Table is already up to date
-test.t3 optimize status Table is already up to date
-prepare stmt from "analyze table t1, t2, t3";
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-test.t2 analyze status Table is already up to date
-test.t3 analyze status Table is already up to date
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-test.t2 analyze status Table is already up to date
-test.t3 analyze status Table is already up to date
-prepare stmt from "repair table t1, t4, t3";
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-test.t4 repair Error Table 'test.t4' doesn't exist
-test.t4 repair status Operation failed
-test.t3 repair status OK
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-test.t4 repair Error Table 'test.t4' doesn't exist
-test.t4 repair status Operation failed
-test.t3 repair status OK
-prepare stmt from "optimize table t1, t3, t4";
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-test.t3 optimize status OK
-test.t4 optimize Error Table 'test.t4' doesn't exist
-test.t4 optimize status Operation failed
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 optimize status Table is already up to date
-test.t3 optimize status Table is already up to date
-test.t4 optimize Error Table 'test.t4' doesn't exist
-test.t4 optimize status Operation failed
-prepare stmt from "analyze table t4, t1";
-execute stmt;
-Table Op Msg_type Msg_text
-test.t4 analyze Error Table 'test.t4' doesn't exist
-test.t4 analyze status Operation failed
-test.t1 analyze status Table is already up to date
-execute stmt;
-Table Op Msg_type Msg_text
-test.t4 analyze Error Table 'test.t4' doesn't exist
-test.t4 analyze status Operation failed
-test.t1 analyze status Table is already up to date
-deallocate prepare stmt;
-drop table t1, t2, t3;
-create database mysqltest_long_database_name_to_thrash_heap;
-use test;
-create table t1 (i int);
-prepare stmt from "alter table test.t1 rename t1";
-use mysqltest_long_database_name_to_thrash_heap;
-execute stmt;
-show tables like 't1';
-Tables_in_mysqltest_long_database_name_to_thrash_heap (t1)
-prepare stmt from "alter table test.t1 rename t1";
-use test;
-execute stmt;
-show tables like 't1';
-Tables_in_test (t1)
-use mysqltest_long_database_name_to_thrash_heap;
-show tables like 't1';
-Tables_in_mysqltest_long_database_name_to_thrash_heap (t1)
-t1
-deallocate prepare stmt;
-use mysqltest_long_database_name_to_thrash_heap;
-prepare stmt_create from "create table t1 (i int)";
-prepare stmt_insert from "insert into t1 (i) values (1)";
-prepare stmt_update from "update t1 set i=2";
-prepare stmt_delete from "delete from t1 where i=2";
-prepare stmt_select from "select * from t1";
-prepare stmt_alter from "alter table t1 add column (b int)";
-prepare stmt_alter1 from "alter table t1 drop column b";
-prepare stmt_analyze from "analyze table t1";
-prepare stmt_optimize from "optimize table t1";
-prepare stmt_show from "show tables like 't1'";
-prepare stmt_truncate from "truncate table t1";
-prepare stmt_drop from "drop table t1";
-drop table t1;
-use test;
-execute stmt_create;
-show tables like 't1';
-Tables_in_test (t1)
-use mysqltest_long_database_name_to_thrash_heap;
-show tables like 't1';
-Tables_in_mysqltest_long_database_name_to_thrash_heap (t1)
-t1
-use test;
-execute stmt_insert;
-select * from mysqltest_long_database_name_to_thrash_heap.t1;
-i
-1
-execute stmt_update;
-select * from mysqltest_long_database_name_to_thrash_heap.t1;
-i
-2
-execute stmt_delete;
-execute stmt_select;
-i
-execute stmt_alter;
-show columns from mysqltest_long_database_name_to_thrash_heap.t1;
-Field Type Null Key Default Extra
-i int(11) YES NULL
-b int(11) YES NULL
-execute stmt_alter1;
-show columns from mysqltest_long_database_name_to_thrash_heap.t1;
-Field Type Null Key Default Extra
-i int(11) YES NULL
-execute stmt_analyze;
-Table Op Msg_type Msg_text
-mysqltest_long_database_name_to_thrash_heap.t1 analyze status Table is already up to date
-execute stmt_optimize;
-Table Op Msg_type Msg_text
-mysqltest_long_database_name_to_thrash_heap.t1 optimize status Table is already up to date
-execute stmt_show;
-Tables_in_mysqltest_long_database_name_to_thrash_heap (t1)
-t1
-execute stmt_truncate;
-execute stmt_drop;
-show tables like 't1';
-Tables_in_test (t1)
-use mysqltest_long_database_name_to_thrash_heap;
-show tables like 't1';
-Tables_in_mysqltest_long_database_name_to_thrash_heap (t1)
-drop database mysqltest_long_database_name_to_thrash_heap;
-prepare stmt_create from "create table t1 (i int)";
-ERROR 3D000: No database selected
-prepare stmt_insert from "insert into t1 (i) values (1)";
-ERROR 3D000: No database selected
-prepare stmt_update from "update t1 set i=2";
-ERROR 3D000: No database selected
-prepare stmt_delete from "delete from t1 where i=2";
-ERROR 3D000: No database selected
-prepare stmt_select from "select * from t1";
-ERROR 3D000: No database selected
-prepare stmt_alter from "alter table t1 add column (b int)";
-ERROR 3D000: No database selected
-prepare stmt_alter1 from "alter table t1 drop column b";
-ERROR 3D000: No database selected
-prepare stmt_analyze from "analyze table t1";
-ERROR 3D000: No database selected
-prepare stmt_optimize from "optimize table t1";
-ERROR 3D000: No database selected
-prepare stmt_show from "show tables like 't1'";
-ERROR 3D000: No database selected
-prepare stmt_truncate from "truncate table t1";
-ERROR 3D000: No database selected
-prepare stmt_drop from "drop table t1";
-ERROR 3D000: No database selected
-create temporary table t1 (i int);
-ERROR 3D000: No database selected
-use test;
-DROP TABLE IF EXISTS t1, t2, t3;
-CREATE TABLE t1 (i BIGINT, j BIGINT);
-CREATE TABLE t2 (i BIGINT);
-CREATE TABLE t3 (i BIGINT, j BIGINT);
-PREPARE stmt FROM "SELECT * FROM t1 JOIN t2 ON (t2.i = t1.i)
- LEFT JOIN t3 ON ((t3.i, t3.j) = (t1.i, t1.j))
- WHERE t1.i = ?";
-SET @a= 1;
-EXECUTE stmt USING @a;
-i j i i j
-EXECUTE stmt USING @a;
-i j i i j
-DEALLOCATE PREPARE stmt;
-DROP TABLE IF EXISTS t1, t2, t3;
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (i INT KEY);
-CREATE TABLE t2 (i INT);
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (1);
-PREPARE stmt FROM "SELECT t2.i FROM t1 LEFT JOIN t2 ON t2.i = t1.i
- WHERE t1.i = ?";
-SET @arg= 1;
-EXECUTE stmt USING @arg;
-i
-1
-SET @arg= 2;
-EXECUTE stmt USING @arg;
-i
-NULL
-SET @arg= 1;
-EXECUTE stmt USING @arg;
-i
-1
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1, t2;
-CREATE TABLE t1 (i INT);
-CREATE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES (1), (2);
-SELECT t1.i FROM t1 JOIN v1 ON t1.i = v1.i
-WHERE EXISTS (SELECT * FROM t1 WHERE v1.i = 1);
-i
-1
-PREPARE stmt FROM "SELECT t1.i FROM t1 JOIN v1 ON t1.i = v1.i
-WHERE EXISTS (SELECT * FROM t1 WHERE v1.i = 1)";
-EXECUTE stmt;
-i
-1
-EXECUTE stmt;
-i
-1
-DEALLOCATE PREPARE stmt;
-DROP VIEW v1;
-DROP TABLE t1;
-DROP PROCEDURE IF EXISTS p1;
-flush status;
-prepare sq from 'show status like "slow_queries"';
-execute sq;
-Variable_name Value
-Slow_queries 0
-prepare no_index from 'select 1 from information_schema.tables limit 1';
-execute sq;
-Variable_name Value
-Slow_queries 0
-execute no_index;
-1
-1
-execute sq;
-Variable_name Value
-Slow_queries 1
-deallocate prepare no_index;
-deallocate prepare sq;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-CREATE TABLE t2 (b int);
-INSERT INTO t2 VALUES (NULL);
-SELECT a FROM t1 WHERE (SELECT b FROM t2) IS NULL;
-a
-1
-2
-PREPARE stmt FROM 'SELECT a FROM t1 WHERE (SELECT b FROM t2) IS NULL';
-EXECUTE stmt;
-a
-1
-2
-DEALLOCATE PREPARE stmt;
-PREPARE stmt FROM 'SELECT a FROM t1 WHERE (SELECT b FROM t2 limit ?) IS NULL';
-SET @arg=1;
-EXECUTE stmt USING @arg;
-a
-1
-2
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1,t2;
-drop table if exists t1;
-create table t1 (s1 char(20));
-prepare stmt from "alter table t1 modify s1 int";
-execute stmt;
-execute stmt;
-drop table t1;
-deallocate prepare stmt;
-drop table if exists t1;
-create table t1 (a int, b int);
-prepare s_6895 from "alter table t1 drop column b";
-execute s_6895;
-show columns from t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-drop table t1;
-create table t1 (a int, b int);
-execute s_6895;
-show columns from t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-drop table t1;
-create table t1 (a int, b int);
-execute s_6895;
-show columns from t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-deallocate prepare s_6895;
-drop table t1;
-create table t1 (i int primary key auto_increment) comment='comment for table t1';
-create table t2 (i int, j int, k int);
-prepare stmt from "alter table t1 auto_increment=100";
-execute stmt;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`i`)
-) ENGINE=MyISAM AUTO_INCREMENT=100 DEFAULT CHARSET=latin1 COMMENT='comment for table t1'
-flush tables;
-select * from t2;
-i j k
-execute stmt;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`i`)
-) ENGINE=MyISAM AUTO_INCREMENT=100 DEFAULT CHARSET=latin1 COMMENT='comment for table t1'
-deallocate prepare stmt;
-drop table t1, t2;
-set @old_character_set_server= @@character_set_server;
-set @@character_set_server= latin1;
-prepare stmt from "create database mysqltest_1";
-execute stmt;
-show create database mysqltest_1;
-Database Create Database
-mysqltest_1 CREATE DATABASE `mysqltest_1` /*!40100 DEFAULT CHARACTER SET latin1 */
-drop database mysqltest_1;
-set @@character_set_server= utf8;
-execute stmt;
-show create database mysqltest_1;
-Database Create Database
-mysqltest_1 CREATE DATABASE `mysqltest_1` /*!40100 DEFAULT CHARACTER SET utf8 */
-drop database mysqltest_1;
-deallocate prepare stmt;
-set @@character_set_server= @old_character_set_server;
-drop tables if exists t1;
-create table t1 (id int primary key auto_increment, value varchar(10));
-insert into t1 (id, value) values (1, 'FIRST'), (2, 'SECOND'), (3, 'THIRD');
-prepare stmt from "insert into t1 (id, value) select * from (select 4 as i, 'FOURTH' as v) as y on duplicate key update v = 'DUP'";
-execute stmt;
-ERROR 42S22: Unknown column 'v' in 'field list'
-execute stmt;
-ERROR 42S22: Unknown column 'v' in 'field list'
-deallocate prepare stmt;
-prepare stmt from "insert into t1 (id, value) select * from (select 4 as id, 'FOURTH' as value) as y on duplicate key update y.value = 'DUP'";
-execute stmt;
-ERROR 42S22: Unknown column 'y.value' in 'field list'
-execute stmt;
-ERROR 42S22: Unknown column 'y.value' in 'field list'
-deallocate prepare stmt;
-drop tables t1;
-prepare stmt from "create table t1 select ?";
-set @a=1.0;
-execute stmt using @a;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `?` decimal(2,1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-drop table if exists t1;
-create table t1 (a bigint unsigned, b bigint(20) unsigned);
-prepare stmt from "insert into t1 values (?,?)";
-set @a= 9999999999999999;
-set @b= 14632475938453979136;
-insert into t1 values (@a, @b);
-select * from t1 where a = @a and b = @b;
-a b
-9999999999999999 14632475938453979136
-execute stmt using @a, @b;
-select * from t1 where a = @a and b = @b;
-a b
-9999999999999999 14632475938453979136
-9999999999999999 14632475938453979136
-deallocate prepare stmt;
-drop table t1;
-drop view if exists v1;
-drop table if exists t1;
-create table t1 (a int, b int);
-insert into t1 values (1,1), (2,2), (3,3);
-insert into t1 values (3,1), (1,2), (2,3);
-prepare stmt from "create view v1 as select * from t1";
-execute stmt;
-drop table t1;
-create table t1 (a int, b int);
-drop view v1;
-execute stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` latin1 latin1_swedish_ci
-drop view v1;
-prepare stmt from "create view v1 (c,d) as select a,b from t1";
-execute stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `c`,`t1`.`b` AS `d` from `t1` latin1 latin1_swedish_ci
-select * from v1;
-c d
-drop view v1;
-execute stmt;
-deallocate prepare stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `c`,`t1`.`b` AS `d` from `t1` latin1 latin1_swedish_ci
-select * from v1;
-c d
-drop view v1;
-prepare stmt from "create view v1 (c) as select b+1 from t1";
-execute stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`b` + 1 AS `c` from `t1` latin1 latin1_swedish_ci
-select * from v1;
-c
-drop view v1;
-execute stmt;
-deallocate prepare stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`b` + 1 AS `c` from `t1` latin1 latin1_swedish_ci
-select * from v1;
-c
-drop view v1;
-prepare stmt from "create view v1 (c,d,e,f) as select a,b,a in (select a+2 from t1), a = all (select a from t1) from t1";
-execute stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `c`,`t1`.`b` AS `d`,`t1`.`a` in (select `t1`.`a` + 2 from `t1`) AS `e`,`t1`.`a` = all (select `t1`.`a` from `t1`) AS `f` from `t1` latin1 latin1_swedish_ci
-select * from v1;
-c d e f
-drop view v1;
-execute stmt;
-deallocate prepare stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `c`,`t1`.`b` AS `d`,`t1`.`a` in (select `t1`.`a` + 2 from `t1`) AS `e`,`t1`.`a` = all (select `t1`.`a` from `t1`) AS `f` from `t1` latin1 latin1_swedish_ci
-select * from v1;
-c d e f
-drop view v1;
-prepare stmt from "create or replace view v1 as select 1";
-execute stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 AS `1` latin1 latin1_swedish_ci
-select * from v1;
-1
-1
-execute stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 AS `1` latin1 latin1_swedish_ci
-deallocate prepare stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 AS `1` latin1 latin1_swedish_ci
-select * from v1;
-1
-1
-drop view v1;
-prepare stmt from "create view v1 as select 1, 1";
-execute stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 AS `1`,1 AS `My_exp_1` latin1 latin1_swedish_ci
-select * from v1;
-1 My_exp_1
-1 1
-drop view v1;
-execute stmt;
-deallocate prepare stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 AS `1`,1 AS `My_exp_1` latin1 latin1_swedish_ci
-select * from v1;
-1 My_exp_1
-1 1
-drop view v1;
-prepare stmt from "create view v1 (x) as select a from t1 where a > 1";
-execute stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `x` from `t1` where `t1`.`a` > 1 latin1 latin1_swedish_ci
-select * from v1;
-x
-drop view v1;
-execute stmt;
-deallocate prepare stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `x` from `t1` where `t1`.`a` > 1 latin1 latin1_swedish_ci
-select * from v1;
-x
-drop view v1;
-prepare stmt from "create view v1 as select * from `t1` `b`";
-execute stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `b`.`a` AS `a`,`b`.`b` AS `b` from `t1` `b` latin1 latin1_swedish_ci
-select * from v1;
-a b
-drop view v1;
-execute stmt;
-deallocate prepare stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `b`.`a` AS `a`,`b`.`b` AS `b` from `t1` `b` latin1 latin1_swedish_ci
-select * from v1;
-a b
-drop view v1;
-prepare stmt from "create view v1 (a,b,c) as select * from t1";
-execute stmt;
-ERROR HY000: View's SELECT and view's field list have different column counts
-execute stmt;
-ERROR HY000: View's SELECT and view's field list have different column counts
-deallocate prepare stmt;
-drop table t1;
-create temporary table t1 (a int, b int);
-prepare stmt from "create view v1 as select * from t1";
-execute stmt;
-ERROR HY000: View's SELECT refers to a temporary table 't1'
-execute stmt;
-ERROR HY000: View's SELECT refers to a temporary table 't1'
-deallocate prepare stmt;
-drop table t1;
-prepare stmt from "create view v1 as select * from t1";
-ERROR 42S02: Table 'test.t1' doesn't exist
-prepare stmt from "create view v1 as select * from `t1` `b`";
-ERROR 42S02: Table 'test.t1' doesn't exist
-prepare stmt from "select ?";
-set @arg= 123456789.987654321;
-select @arg;
-@arg
-123456789.987654321
-execute stmt using @arg;
-?
-123456789.987654321
-set @arg= "string";
-select @arg;
-@arg
-string
-execute stmt using @arg;
-?
-string
-set @arg= 123456;
-select @arg;
-@arg
-123456
-execute stmt using @arg;
-?
-123456
-set @arg= cast(-12345.54321 as decimal(20, 10));
-select @arg;
-@arg
--12345.5432100000
-execute stmt using @arg;
-?
--12345.5432100000
-deallocate prepare stmt;
-#
-# Bug#48508: Crash on prepared statement re-execution.
-#
-create table t1(b int);
-insert into t1 values (0);
-create view v1 AS select 1 as a from t1 where b;
-prepare stmt from "select * from v1 where a";
-execute stmt;
-a
-execute stmt;
-a
-deallocate prepare stmt;
-drop table t1;
-drop view v1;
-create table t1(a bigint);
-create table t2(b tinyint);
-insert into t2 values (null);
-prepare stmt from "select 1 from t1 join t2 on a xor b where b > 1 and a =1";
-execute stmt;
-1
-execute stmt;
-1
-deallocate prepare stmt;
-drop table t1,t2;
-#
-#
-# Bug #49570: Assertion failed: !(order->used & map)
-# on re-execution of prepared statement
-#
-CREATE TABLE t1(a INT PRIMARY KEY);
-INSERT INTO t1 VALUES(0), (1);
-PREPARE stmt FROM
-"SELECT 1 FROM t1 JOIN t1 t2 USING(a) GROUP BY t2.a, t1.a";
-EXECUTE stmt;
-1
-1
-1
-EXECUTE stmt;
-1
-1
-1
-EXECUTE stmt;
-1
-1
-1
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-End of 5.0 tests.
-create procedure proc_1() reset query cache;
-call proc_1();
-call proc_1();
-call proc_1();
-create function func_1() returns int deterministic begin reset query cache; return 1; end|
-ERROR 0A000: RESET is not allowed in stored function or trigger
-create function func_1() returns int deterministic begin call proc_1(); return 1; end|
-select func_1(), func_1(), func_1() from dual;
-ERROR 0A000: RESET is not allowed in stored function or trigger
-drop function func_1;
-drop procedure proc_1;
-prepare abc from "reset query cache";
-execute abc;
-execute abc;
-execute abc;
-deallocate prepare abc;
-create procedure proc_1() reset master;
-create function func_1() returns int begin reset master; return 1; end|
-ERROR 0A000: RESET is not allowed in stored function or trigger
-create function func_1() returns int begin call proc_1(); return 1; end|
-select func_1(), func_1(), func_1() from dual;
-ERROR 0A000: RESET is not allowed in stored function or trigger
-drop function func_1;
-drop procedure proc_1;
-prepare abc from "reset master";
-execute abc;
-execute abc;
-execute abc;
-deallocate prepare abc;
-create procedure proc_1() reset slave;
-call proc_1();
-call proc_1();
-call proc_1();
-create function func_1() returns int begin reset slave; return 1; end|
-ERROR 0A000: RESET is not allowed in stored function or trigger
-create function func_1() returns int begin call proc_1(); return 1; end|
-select func_1(), func_1(), func_1() from dual;
-ERROR 0A000: RESET is not allowed in stored function or trigger
-drop function func_1;
-drop procedure proc_1;
-prepare abc from "reset slave";
-execute abc;
-execute abc;
-execute abc;
-deallocate prepare abc;
-create procedure proc_1(a integer) kill a;
-call proc_1(0);
-ERROR HY000: Unknown thread id: 0
-call proc_1(0);
-ERROR HY000: Unknown thread id: 0
-call proc_1(0);
-ERROR HY000: Unknown thread id: 0
-drop procedure proc_1;
-create function func_1() returns int begin kill 0; return 1; end|
-select func_1() from dual;
-ERROR HY000: Unknown thread id: 0
-select func_1() from dual;
-ERROR HY000: Unknown thread id: 0
-select func_1() from dual;
-ERROR HY000: Unknown thread id: 0
-drop function func_1;
-prepare abc from "kill 0";
-execute abc;
-ERROR HY000: Unknown thread id: 0
-execute abc;
-ERROR HY000: Unknown thread id: 0
-execute abc;
-ERROR HY000: Unknown thread id: 0
-deallocate prepare abc;
-create procedure proc_1() flush hosts;
-call proc_1();
-call proc_1();
-call proc_1();
-call proc_1();
-create function func_1() returns int begin flush hosts; return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function func_1() returns int begin call proc_1(); return 1; end|
-select func_1(), func_1(), func_1() from dual;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop function func_1;
-drop procedure proc_1;
-prepare abc from "flush hosts";
-execute abc;
-execute abc;
-execute abc;
-deallocate prepare abc;
-create procedure proc_1() flush privileges;
-call proc_1();
-call proc_1();
-call proc_1();
-create function func_1() returns int begin flush privileges; return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function func_1() returns int begin call proc_1(); return 1; end|
-select func_1(), func_1(), func_1() from dual;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop function func_1;
-drop procedure proc_1;
-prepare abc from "flush privileges";
-deallocate prepare abc;
-create procedure proc_1() flush tables with read lock;
-call proc_1();
-unlock tables;
-call proc_1();
-unlock tables;
-call proc_1();
-unlock tables;
-create function func_1() returns int begin flush tables with read lock; return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function func_1() returns int begin call proc_1(); return 1; end|
-select func_1(), func_1(), func_1() from dual;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop function func_1;
-drop procedure proc_1;
-prepare abc from "flush tables with read lock";
-execute abc;
-execute abc;
-execute abc;
-deallocate prepare abc;
-unlock tables;
-create procedure proc_1() flush tables;
-call proc_1();
-call proc_1();
-call proc_1();
-create function func_1() returns int begin flush tables; return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function func_1() returns int begin call proc_1(); return 1; end|
-select func_1(), func_1(), func_1() from dual;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop function func_1;
-drop procedure proc_1;
-prepare abc from "flush tables";
-execute abc;
-execute abc;
-execute abc;
-deallocate prepare abc;
-create procedure proc_1() flush tables;
-flush tables;
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-select Host, User from mysql.user limit 0;
-Host User
-select Host, Db from mysql.host limit 0;
-Host Db
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-mysql host 0 0
-mysql user 0 0
-call proc_1();
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-select Host, User from mysql.user limit 0;
-Host User
-select Host, Db from mysql.host limit 0;
-Host Db
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-mysql host 0 0
-mysql user 0 0
-call proc_1();
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-select Host, User from mysql.user limit 0;
-Host User
-select Host, Db from mysql.host limit 0;
-Host Db
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-mysql host 0 0
-mysql user 0 0
-call proc_1();
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-select Host, User from mysql.user limit 0;
-Host User
-select Host, Db from mysql.host limit 0;
-Host Db
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-mysql host 0 0
-mysql user 0 0
-flush tables;
-create function func_1() returns int begin flush tables; return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function func_1() returns int begin call proc_1(); return 1; end|
-select func_1(), func_1(), func_1() from dual;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop function func_1;
-drop procedure proc_1;
-flush tables;
-select Host, User from mysql.user limit 0;
-Host User
-select Host, Db from mysql.host limit 0;
-Host Db
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-mysql host 0 0
-mysql user 0 0
-prepare abc from "flush tables";
-execute abc;
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-select Host, User from mysql.user limit 0;
-Host User
-select Host, Db from mysql.host limit 0;
-Host Db
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-mysql host 0 0
-mysql user 0 0
-execute abc;
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-select Host, User from mysql.user limit 0;
-Host User
-select Host, Db from mysql.host limit 0;
-Host Db
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-mysql host 0 0
-mysql user 0 0
-execute abc;
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-select Host, User from mysql.user limit 0;
-Host User
-select Host, Db from mysql.host limit 0;
-Host Db
-show open tables from mysql;
-Database Table In_use Name_locked
-mysql general_log 0 0
-mysql host 0 0
-mysql user 0 0
-flush tables;
-deallocate prepare abc;
-create procedure proc_1() flush logs;
-call proc_1();
-call proc_1();
-call proc_1();
-create function func_1() returns int begin flush logs; return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function func_1() returns int begin call proc_1(); return 1; end|
-select func_1(), func_1(), func_1() from dual;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop function func_1;
-drop procedure proc_1;
-prepare abc from "flush logs";
-execute abc;
-execute abc;
-execute abc;
-deallocate prepare abc;
-create procedure proc_1() flush status;
-call proc_1();
-call proc_1();
-call proc_1();
-create function func_1() returns int begin flush status; return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function func_1() returns int begin call proc_1(); return 1; end|
-select func_1(), func_1(), func_1() from dual;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop function func_1;
-drop procedure proc_1;
-prepare abc from "flush status";
-execute abc;
-execute abc;
-execute abc;
-deallocate prepare abc;
-create procedure proc_1() flush slave;
-call proc_1();
-call proc_1();
-call proc_1();
-create function func_1() returns int begin flush slave; return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function func_1() returns int begin call proc_1(); return 1; end|
-select func_1(), func_1(), func_1() from dual;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop function func_1;
-drop procedure proc_1;
-prepare abc from "flush slave";
-execute abc;
-execute abc;
-execute abc;
-deallocate prepare abc;
-create procedure proc_1() flush master;
-create function func_1() returns int begin flush master; return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function func_1() returns int begin call proc_1(); return 1; end|
-select func_1(), func_1(), func_1() from dual;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop function func_1;
-drop procedure proc_1;
-prepare abc from "flush master";
-deallocate prepare abc;
-create procedure proc_1() flush des_key_file;
-call proc_1();
-call proc_1();
-call proc_1();
-create function func_1() returns int begin flush des_key_file; return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function func_1() returns int begin call proc_1(); return 1; end|
-select func_1(), func_1(), func_1() from dual;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop function func_1;
-drop procedure proc_1;
-prepare abc from "flush des_key_file";
-execute abc;
-execute abc;
-execute abc;
-deallocate prepare abc;
-create procedure proc_1() flush user_resources;
-call proc_1();
-call proc_1();
-call proc_1();
-create function func_1() returns int begin flush user_resources; return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function func_1() returns int begin call proc_1(); return 1; end|
-select func_1(), func_1(), func_1() from dual;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop function func_1;
-drop procedure proc_1;
-prepare abc from "flush user_resources";
-execute abc;
-execute abc;
-execute abc;
-deallocate prepare abc;
-create procedure proc_1() start slave;
-drop procedure proc_1;
-create function func_1() returns int begin start slave; return 1; end|
-drop function func_1;
-prepare abc from "start slave";
-deallocate prepare abc;
-create procedure proc_1() stop slave;
-drop procedure proc_1;
-create function func_1() returns int begin stop slave; return 1; end|
-drop function func_1;
-prepare abc from "stop slave";
-deallocate prepare abc;
-create procedure proc_1() show binlog events;
-drop procedure proc_1;
-create function func_1() returns int begin show binlog events; return 1; end|
-ERROR 0A000: Not allowed to return a result set from a function
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "show binlog events";
-deallocate prepare abc;
-create procedure proc_1() show slave status;
-drop procedure proc_1;
-create function func_1() returns int begin show slave status; return 1; end|
-ERROR 0A000: Not allowed to return a result set from a function
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "show slave status";
-deallocate prepare abc;
-create procedure proc_1() show master status;
-drop procedure proc_1;
-create function func_1() returns int begin show master status; return 1; end|
-ERROR 0A000: Not allowed to return a result set from a function
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "show master status";
-deallocate prepare abc;
-create procedure proc_1() show master logs;
-drop procedure proc_1;
-create function func_1() returns int begin show master logs; return 1; end|
-ERROR 0A000: Not allowed to return a result set from a function
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "show master logs";
-deallocate prepare abc;
-create procedure proc_1() show events;
-call proc_1();
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-call proc_1();
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-call proc_1();
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-drop procedure proc_1;
-create function func_1() returns int begin show events; return 1; end|
-ERROR 0A000: Not allowed to return a result set from a function
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "show events";
-execute abc;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-execute abc;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-execute abc;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-deallocate prepare abc;
-drop procedure if exists a;
-create procedure a() select 42;
-create procedure proc_1(a char(2)) show create procedure a;
-call proc_1("bb");
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-a STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `a`()
-select 42 latin1 latin1_swedish_ci latin1_swedish_ci
-call proc_1("bb");
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-a STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `a`()
-select 42 latin1 latin1_swedish_ci latin1_swedish_ci
-call proc_1("bb");
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-a STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `a`()
-select 42 latin1 latin1_swedish_ci latin1_swedish_ci
-drop procedure proc_1;
-create function func_1() returns int begin show create procedure a; return 1; end|
-ERROR 0A000: Not allowed to return a result set from a function
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "show create procedure a";
-execute abc;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-a STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `a`()
-select 42 latin1 latin1_swedish_ci latin1_swedish_ci
-execute abc;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-a STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `a`()
-select 42 latin1 latin1_swedish_ci latin1_swedish_ci
-execute abc;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-a STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `a`()
-select 42 latin1 latin1_swedish_ci latin1_swedish_ci
-deallocate prepare abc;
-drop procedure a;
-drop function if exists a;
-create function a() returns int return 42+13;
-create procedure proc_1(a char(2)) show create function a;
-call proc_1("bb");
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-a STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `a`() RETURNS int(11)
-return 42+13 latin1 latin1_swedish_ci latin1_swedish_ci
-call proc_1("bb");
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-a STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `a`() RETURNS int(11)
-return 42+13 latin1 latin1_swedish_ci latin1_swedish_ci
-call proc_1("bb");
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-a STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `a`() RETURNS int(11)
-return 42+13 latin1 latin1_swedish_ci latin1_swedish_ci
-drop procedure proc_1;
-create function func_1() returns int begin show create function a; return 1; end|
-ERROR 0A000: Not allowed to return a result set from a function
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "show create function a";
-execute abc;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-a STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `a`() RETURNS int(11)
-return 42+13 latin1 latin1_swedish_ci latin1_swedish_ci
-execute abc;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-a STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `a`() RETURNS int(11)
-return 42+13 latin1 latin1_swedish_ci latin1_swedish_ci
-execute abc;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-a STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `a`() RETURNS int(11)
-return 42+13 latin1 latin1_swedish_ci latin1_swedish_ci
-deallocate prepare abc;
-drop function a;
-drop table if exists tab1;
-create table tab1(a int, b char(1), primary key(a,b));
-create procedure proc_1() show create table tab1;
-call proc_1();
-Table Create Table
-tab1 CREATE TABLE `tab1` (
- `a` int(11) NOT NULL,
- `b` char(1) NOT NULL,
- PRIMARY KEY (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-call proc_1();
-Table Create Table
-tab1 CREATE TABLE `tab1` (
- `a` int(11) NOT NULL,
- `b` char(1) NOT NULL,
- PRIMARY KEY (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-call proc_1();
-Table Create Table
-tab1 CREATE TABLE `tab1` (
- `a` int(11) NOT NULL,
- `b` char(1) NOT NULL,
- PRIMARY KEY (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop procedure proc_1;
-create function func_1() returns int begin show create table tab1; return 1; end|
-ERROR 0A000: Not allowed to return a result set from a function
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "show create table tab1";
-execute abc;
-Table Create Table
-tab1 CREATE TABLE `tab1` (
- `a` int(11) NOT NULL,
- `b` char(1) NOT NULL,
- PRIMARY KEY (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-execute abc;
-Table Create Table
-tab1 CREATE TABLE `tab1` (
- `a` int(11) NOT NULL,
- `b` char(1) NOT NULL,
- PRIMARY KEY (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-execute abc;
-Table Create Table
-tab1 CREATE TABLE `tab1` (
- `a` int(11) NOT NULL,
- `b` char(1) NOT NULL,
- PRIMARY KEY (`a`,`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-deallocate prepare abc;
-drop table tab1;
-drop view if exists v1;
-drop table if exists t1;
-create table t1(a int, b char(5));
-insert into t1 values (1, "one"), (1, "edno"), (2, "two"), (2, "dve");
-create view v1 as
-(select a, count(*) from t1 group by a)
-union all
-(select b, count(*) from t1 group by b);
-create procedure proc_1() show create view v1;
-call proc_1();
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS (select `t1`.`a` AS `a`,count(0) AS `count(*)` from `t1` group by `t1`.`a`) union all (select `t1`.`b` AS `b`,count(0) AS `count(*)` from `t1` group by `t1`.`b`) latin1 latin1_swedish_ci
-call proc_1();
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS (select `t1`.`a` AS `a`,count(0) AS `count(*)` from `t1` group by `t1`.`a`) union all (select `t1`.`b` AS `b`,count(0) AS `count(*)` from `t1` group by `t1`.`b`) latin1 latin1_swedish_ci
-call proc_1();
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS (select `t1`.`a` AS `a`,count(0) AS `count(*)` from `t1` group by `t1`.`a`) union all (select `t1`.`b` AS `b`,count(0) AS `count(*)` from `t1` group by `t1`.`b`) latin1 latin1_swedish_ci
-drop procedure proc_1;
-create function func_1() returns int begin show create view v1; return 1; end|
-ERROR 0A000: Not allowed to return a result set from a function
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "show create view v1";
-execute abc;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS (select `t1`.`a` AS `a`,count(0) AS `count(*)` from `t1` group by `t1`.`a`) union all (select `t1`.`b` AS `b`,count(0) AS `count(*)` from `t1` group by `t1`.`b`) latin1 latin1_swedish_ci
-execute abc;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS (select `t1`.`a` AS `a`,count(0) AS `count(*)` from `t1` group by `t1`.`a`) union all (select `t1`.`b` AS `b`,count(0) AS `count(*)` from `t1` group by `t1`.`b`) latin1 latin1_swedish_ci
-execute abc;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS (select `t1`.`a` AS `a`,count(0) AS `count(*)` from `t1` group by `t1`.`a`) union all (select `t1`.`b` AS `b`,count(0) AS `count(*)` from `t1` group by `t1`.`b`) latin1 latin1_swedish_ci
-deallocate prepare abc;
-drop view v1;
-drop table t1;
-create procedure proc_1() install plugin my_plug soname 'some_plugin.so';
-call proc_1();
-Got one of the listed errors
-call proc_1();
-Got one of the listed errors
-call proc_1();
-Got one of the listed errors
-drop procedure proc_1;
-create function func_1() returns int begin install plugin my_plug soname '/tmp/plugin'; return 1; end|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "install plugin my_plug soname 'some_plugin.so'";
-deallocate prepare abc;
-create procedure proc_1() uninstall plugin my_plug;
-call proc_1();
-ERROR 42000: PLUGIN my_plug does not exist
-call proc_1();
-ERROR 42000: PLUGIN my_plug does not exist
-call proc_1();
-ERROR 42000: PLUGIN my_plug does not exist
-drop procedure proc_1;
-create function func_1() returns int begin uninstall plugin my_plug; return 1; end|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "uninstall plugin my_plug";
-execute abc;
-ERROR 42000: PLUGIN my_plug does not exist
-execute abc;
-ERROR 42000: PLUGIN my_plug does not exist
-execute abc;
-ERROR 42000: PLUGIN my_plug does not exist
-deallocate prepare abc;
-drop database if exists mysqltest_xyz;
-create procedure proc_1() create database mysqltest_xyz;
-call proc_1();
-drop database if exists mysqltest_xyz;
-call proc_1();
-call proc_1();
-ERROR HY000: Can't create database 'mysqltest_xyz'; database exists
-drop database if exists mysqltest_xyz;
-call proc_1();
-drop database if exists mysqltest_xyz;
-drop procedure proc_1;
-create function func_1() returns int begin create database mysqltest_xyz; return 1; end|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "create database mysqltest_xyz";
-execute abc;
-drop database if exists mysqltest_xyz;
-execute abc;
-execute abc;
-ERROR HY000: Can't create database 'mysqltest_xyz'; database exists
-drop database if exists mysqltest_xyz;
-execute abc;
-drop database if exists mysqltest_xyz;
-deallocate prepare abc;
-drop table if exists t1;
-create table t1 (a int, b char(5));
-insert into t1 values (1, "one"), (2, "two"), (3, "three");
-create procedure proc_1() checksum table xyz;
-call proc_1();
-Table Checksum
-test.xyz NULL
-Warnings:
-Error 1146 Table 'test.xyz' doesn't exist
-call proc_1();
-Table Checksum
-test.xyz NULL
-Warnings:
-Error 1146 Table 'test.xyz' doesn't exist
-call proc_1();
-Table Checksum
-test.xyz NULL
-Warnings:
-Error 1146 Table 'test.xyz' doesn't exist
-drop procedure proc_1;
-create function func_1() returns int begin checksum table t1; return 1; end|
-ERROR 0A000: Not allowed to return a result set from a function
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "checksum table t1";
-execute abc;
-Table Checksum
-test.t1 645809265
-execute abc;
-Table Checksum
-test.t1 645809265
-execute abc;
-Table Checksum
-test.t1 645809265
-deallocate prepare abc;
-create procedure proc_1() create user pstest_xyz@localhost;
-call proc_1();
-drop user pstest_xyz@localhost;
-call proc_1();
-call proc_1();
-ERROR HY000: Operation CREATE USER failed for 'pstest_xyz'@'localhost'
-drop user pstest_xyz@localhost;
-call proc_1();
-drop user pstest_xyz@localhost;
-drop procedure proc_1;
-create function func_1() returns int begin create user pstest_xyz@localhost; return 1; end|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "create user pstest_xyz@localhost";
-execute abc;
-drop user pstest_xyz@localhost;
-execute abc;
-execute abc;
-ERROR HY000: Operation CREATE USER failed for 'pstest_xyz'@'localhost'
-drop user pstest_xyz@localhost;
-execute abc;
-drop user pstest_xyz@localhost;
-deallocate prepare abc;
-drop event if exists xyz;
-create function func_1() returns int begin create event xyz on schedule at now() do select 123; return 1; end|
-ERROR HY000: Recursion of EVENT DDL statements is forbidden when body is present
-select func_1(), func_1(), func_1() from dual;
-ERROR 42000: FUNCTION test.func_1 does not exist
-drop function func_1;
-ERROR 42000: FUNCTION test.func_1 does not exist
-prepare abc from "create event xyz on schedule at now() do select 123";
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-deallocate prepare abc;
-ERROR HY000: Unknown prepared statement handler (abc) given to DEALLOCATE PREPARE
-drop event if exists xyz;
-create event xyz on schedule every 5 minute disable do select 123;
-create procedure proc_1() alter event xyz comment 'xyz';
-call proc_1();
-drop event xyz;
-create event xyz on schedule every 5 minute disable do select 123;
-call proc_1();
-drop event xyz;
-create event xyz on schedule every 5 minute disable do select 123;
-call proc_1();
-drop event xyz;
-drop procedure proc_1;
-create function func_1() returns int begin alter event xyz comment 'xyz'; return 1; end|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-prepare abc from "alter event xyz comment 'xyz'";
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-deallocate prepare abc;
-ERROR HY000: Unknown prepared statement handler (abc) given to DEALLOCATE PREPARE
-drop event if exists xyz;
-create event xyz on schedule every 5 minute disable do select 123;
-create procedure proc_1() drop event xyz;
-call proc_1();
-create event xyz on schedule every 5 minute disable do select 123;
-call proc_1();
-call proc_1();
-ERROR HY000: Unknown event 'xyz'
-drop procedure proc_1;
-create function func_1() returns int begin drop event xyz; return 1; end|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-prepare abc from "drop event xyz";
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-deallocate prepare abc;
-ERROR HY000: Unknown prepared statement handler (abc) given to DEALLOCATE PREPARE
-drop table if exists t1;
-create table t1 (a int, b char(5)) engine=myisam;
-insert into t1 values (1, "one"), (2, "two"), (3, "three");
-SET GLOBAL new_cache.key_buffer_size=128*1024;
-create procedure proc_1() cache index t1 in new_cache;
-call proc_1();
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-call proc_1();
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-call proc_1();
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-drop procedure proc_1;
-SET GLOBAL second_cache.key_buffer_size=128*1024;
-prepare abc from "cache index t1 in second_cache";
-execute abc;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-execute abc;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-execute abc;
-Table Op Msg_type Msg_text
-test.t1 assign_to_keycache status OK
-deallocate prepare abc;
-drop table t1;
-drop table if exists t1;
-drop table if exists t2;
-create table t1 (a int, b char(5)) engine=myisam;
-insert into t1 values (1, "one"), (2, "two"), (3, "three");
-create table t2 (a int, b char(5)) engine=myisam;
-insert into t2 values (1, "one"), (2, "two"), (3, "three");
-create procedure proc_1() load index into cache t1 ignore leaves;
-call proc_1();
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-call proc_1();
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-call proc_1();
-Table Op Msg_type Msg_text
-test.t1 preload_keys status OK
-drop procedure proc_1;
-create function func_1() returns int begin load index into cache t1 ignore leaves; return 1; end|
-ERROR 0A000: Not allowed to return a result set from a function
-prepare abc from "load index into cache t2 ignore leaves";
-execute abc;
-Table Op Msg_type Msg_text
-test.t2 preload_keys status OK
-execute abc;
-Table Op Msg_type Msg_text
-test.t2 preload_keys status OK
-execute abc;
-Table Op Msg_type Msg_text
-test.t2 preload_keys status OK
-deallocate prepare abc;
-drop table t1, t2;
-create procedure proc_1() show errors;
-call proc_1();
-Level Code Message
-call proc_1();
-Level Code Message
-call proc_1();
-Level Code Message
-drop procedure proc_1;
-create function func_1() returns int begin show errors; return 1; end|
-ERROR 0A000: Not allowed to return a result set from a function
-prepare abc from "show errors";
-deallocate prepare abc;
-drop table if exists t1;
-drop table if exists t2;
-create procedure proc_1() show warnings;
-drop table if exists t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-call proc_1();
-Level Code Message
-Note 1051 Unknown table 'test.t1'
-drop table if exists t2;
-Warnings:
-Note 1051 Unknown table 'test.t2'
-call proc_1();
-Level Code Message
-Note 1051 Unknown table 'test.t2'
-drop table if exists t1, t2;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-Note 1051 Unknown table 'test.t2'
-call proc_1();
-Level Code Message
-Note 1051 Unknown table 'test.t1'
-Note 1051 Unknown table 'test.t2'
-drop procedure proc_1;
-create function func_1() returns int begin show warnings; return 1; end|
-ERROR 0A000: Not allowed to return a result set from a function
-prepare abc from "show warnings";
-drop table if exists t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-execute abc;
-Level Code Message
-Note 1051 Unknown table 'test.t1'
-drop table if exists t2;
-Warnings:
-Note 1051 Unknown table 'test.t2'
-execute abc;
-Level Code Message
-Note 1051 Unknown table 'test.t2'
-drop table if exists t1, t2;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-Note 1051 Unknown table 'test.t2'
-execute abc;
-Level Code Message
-Note 1051 Unknown table 'test.t1'
-Note 1051 Unknown table 'test.t2'
-deallocate prepare abc;
-set @my_password="password";
-set @my_data="clear text to encode";
-prepare stmt1 from 'select decode(encode(?, ?), ?)';
-execute stmt1 using @my_data, @my_password, @my_password;
-decode(encode(?, ?), ?)
-clear text to encode
-set @my_data="more text to encode";
-execute stmt1 using @my_data, @my_password, @my_password;
-decode(encode(?, ?), ?)
-more text to encode
-set @my_password="new password";
-execute stmt1 using @my_data, @my_password, @my_password;
-decode(encode(?, ?), ?)
-more text to encode
-deallocate prepare stmt1;
-set @to_format="123456789.123456789";
-set @dec=0;
-prepare stmt2 from 'select format(?, ?)';
-execute stmt2 using @to_format, @dec;
-format(?, ?)
-123,456,789
-set @dec=4;
-execute stmt2 using @to_format, @dec;
-format(?, ?)
-123,456,789.1235
-set @dec=6;
-execute stmt2 using @to_format, @dec;
-format(?, ?)
-123,456,789.123457
-set @dec=2;
-execute stmt2 using @to_format, @dec;
-format(?, ?)
-123,456,789.12
-set @to_format="100";
-execute stmt2 using @to_format, @dec;
-format(?, ?)
-100.00
-set @to_format="1000000";
-execute stmt2 using @to_format, @dec;
-format(?, ?)
-1,000,000.00
-set @to_format="10000";
-execute stmt2 using @to_format, @dec;
-format(?, ?)
-10,000.00
-deallocate prepare stmt2;
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (i INT);
-INSERT INTO t2 VALUES (2);
-LOCK TABLE t1 READ, t2 WRITE;
-connect conn1, localhost, root, , ;
-PREPARE stmt1 FROM "SELECT i FROM t1";
-PREPARE stmt2 FROM "INSERT INTO t2 (i) VALUES (3)";
-EXECUTE stmt1;
-i
-1
-EXECUTE stmt2;
-connection default;
-SELECT * FROM t2;
-i
-2
-UNLOCK TABLES;
-SELECT * FROM t2;
-i
-2
-3
-ALTER TABLE t1 ADD COLUMN j INT;
-ALTER TABLE t2 ADD COLUMN j INT;
-INSERT INTO t1 VALUES (4, 5);
-INSERT INTO t2 VALUES (4, 5);
-connection conn1;
-EXECUTE stmt1;
-i
-1
-4
-EXECUTE stmt2;
-SELECT * FROM t2;
-i j
-2 NULL
-3 NULL
-4 5
-3 NULL
-disconnect conn1;
-connection default;
-DROP TABLE t1, t2;
-drop table if exists t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-prepare stmt
-from "create table t1 (c char(100) character set utf8, key (c(10)))";
-execute stmt;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(100) CHARACTER SET utf8 DEFAULT NULL,
- KEY `c` (`c`(10))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-execute stmt;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(100) CHARACTER SET utf8 DEFAULT NULL,
- KEY `c` (`c`(10))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-drop table if exists t1, t2;
-create table t1 (a int, b int);
-create table t2 like t1;
-insert into t1 (a, b) values (1,1), (1,2), (1,3), (1,4), (1,5),
-(2,2), (2,3), (2,1), (3,1), (4,1), (4,2), (4,3), (4,4), (4,5), (4,6);
-insert into t2 select a, max(b) from t1 group by a;
-prepare stmt from "delete from t2 where (select (select max(b) from t1 group
-by a having a < 2) x from t1) > 10000";
-delete from t2 where (select (select max(b) from t1 group
-by a having a < 2) x from t1) > 10000;
-ERROR 21000: Subquery returns more than 1 row
-execute stmt;
-ERROR 21000: Subquery returns more than 1 row
-execute stmt;
-ERROR 21000: Subquery returns more than 1 row
-deallocate prepare stmt;
-drop table t1, t2;
-#
-# Bug#27430 Crash in subquery code when in PS and table DDL changed
-# after PREPARE
-#
-# This part of the test doesn't work in embedded server, this is
-# why it's here. For the main test see ps_ddl*.test
-
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show events where (1) in (select * from t1)";
-execute stmt;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-drop table t1;
-deallocate prepare stmt;
-#
-# Bug#49141: Encode function is significantly slower in 5.1 compared to 5.0
-#
-prepare encode from "select encode(?, ?) into @ciphertext";
-prepare decode from "select decode(?, ?) into @plaintext";
-set @str="abc", @key="cba";
-execute encode using @str, @key;
-execute decode using @ciphertext, @key;
-select @plaintext;
-@plaintext
-abc
-set @str="bcd", @key="dcb";
-execute encode using @str, @key;
-execute decode using @ciphertext, @key;
-select @plaintext;
-@plaintext
-bcd
-deallocate prepare encode;
-deallocate prepare decode;
-#
-# Bug#52124 memory leaks like a sieve in datetime, timestamp, time, date fields + warnings
-#
-CREATE TABLE t1 (a DATETIME NOT NULL, b TINYINT);
-INSERT INTO t1 VALUES (0, 0),(0, 0);
-PREPARE stmt FROM "SELECT 1 FROM t1 WHERE
-ROW(a, b) >= ROW('1', (SELECT 1 FROM t1 WHERE a > 1234))";
-EXECUTE stmt;
-1
-EXECUTE stmt;
-1
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# Bug#54494 crash with explain extended and prepared statements
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (1),(2);
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-PREPARE stmt FROM 'EXPLAIN EXTENDED SELECT 1 FROM t1 RIGHT JOIN t1 t2 ON 1';
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select 1 AS `1` from `test`.`t1` `t2` left join `test`.`t1` on(1) where 1
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select 1 AS `1` from `test`.`t1` `t2` left join `test`.`t1` on(1) where 1
-DEALLOCATE PREPARE stmt;
-SET optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1;
-#
-# Bug#54488 crash when using explain and prepared statements with subqueries
-#
-CREATE TABLE t1(f1 INT);
-INSERT INTO t1 VALUES (1),(1);
-PREPARE stmt FROM 'EXPLAIN SELECT 1 FROM t1 WHERE (SELECT (SELECT 1 FROM t1 GROUP BY f1))';
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-
-End of 5.1 tests.
-#
-# lp:1001500 Crash on the second execution of the PS for
-# a query with degenerated conjunctive condition
-# (see also mysql bug#12582849)
-#
-CREATE TABLE t1 (
-pk INTEGER AUTO_INCREMENT,
-col_int_nokey INTEGER,
-col_int_key INTEGER,
-col_varchar_key VARCHAR(1),
-col_varchar_nokey VARCHAR(1),
-PRIMARY KEY (pk),
-KEY (col_int_key),
-KEY (col_varchar_key, col_int_key)
-);
-INSERT INTO t1 (
-col_int_key, col_int_nokey,
-col_varchar_key, col_varchar_nokey
-) VALUES
-(4, 2, 'v', 'v'),
-(62, 150, 'v', 'v');
-CREATE TABLE t2 (
-pk INTEGER AUTO_INCREMENT,
-col_int_nokey INTEGER,
-col_int_key INTEGER,
-col_varchar_key VARCHAR(1),
-col_varchar_nokey VARCHAR(1),
-PRIMARY KEY (pk),
-KEY (col_int_key),
-KEY (col_varchar_key, col_int_key)
-);
-INSERT INTO t2 (
-col_int_key, col_int_nokey,
-col_varchar_key, col_varchar_nokey
-) VALUES
-(8, NULL, 'x', 'x'),
-(7, 8, 'd', 'd');
-PREPARE stmt FROM '
-SELECT
- ( SELECT MAX( SQ1_alias2 .col_int_nokey ) AS SQ1_field1
- FROM ( t2 AS SQ1_alias1 RIGHT JOIN t1 AS SQ1_alias2
- ON ( SQ1_alias2.col_varchar_key = SQ1_alias1.col_varchar_nokey )
- )
- WHERE SQ1_alias2.pk < alias1.col_int_nokey OR alias1.pk
- ) AS field1
-FROM ( t1 AS alias1 JOIN t2 AS alias2 ON alias2.pk )
-GROUP BY field1
-';
-EXECUTE stmt;
-field1
-150
-EXECUTE stmt;
-field1
-150
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1, t2;
-
-#
-# WL#4435: Support OUT-parameters in prepared statements.
-#
-
-DROP PROCEDURE IF EXISTS p_string;
-DROP PROCEDURE IF EXISTS p_double;
-DROP PROCEDURE IF EXISTS p_int;
-DROP PROCEDURE IF EXISTS p_decimal;
-
-CREATE PROCEDURE p_string(
-IN v0 INT,
-OUT v1 CHAR(32),
-IN v2 CHAR(32),
-INOUT v3 CHAR(32))
-BEGIN
-SET v0 = -1;
-SET v1 = 'test_v1';
-SET v2 = 'n/a';
-SET v3 = 'test_v3';
-END|
-
-CREATE PROCEDURE p_double(
-IN v0 INT,
-OUT v1 DOUBLE(4, 2),
-IN v2 DOUBLE(4, 2),
-INOUT v3 DOUBLE(4, 2))
-BEGIN
-SET v0 = -1;
-SET v1 = 12.34;
-SET v2 = 98.67;
-SET v3 = 56.78;
-END|
-
-CREATE PROCEDURE p_int(
-IN v0 CHAR(10),
-OUT v1 INT,
-IN v2 INT,
-INOUT v3 INT)
-BEGIN
-SET v0 = 'n/a';
-SET v1 = 1234;
-SET v2 = 9876;
-SET v3 = 5678;
-END|
-
-CREATE PROCEDURE p_decimal(
-IN v0 INT,
-OUT v1 DECIMAL(4, 2),
-IN v2 DECIMAL(4, 2),
-INOUT v3 DECIMAL(4, 2))
-BEGIN
-SET v0 = -1;
-SET v1 = 12.34;
-SET v2 = 98.67;
-SET v3 = 56.78;
-END|
-
-PREPARE stmt_str FROM 'CALL p_string(?, ?, ?, ?)';
-PREPARE stmt_dbl FROM 'CALL p_double(?, ?, ?, ?)';
-PREPARE stmt_int FROM 'CALL p_int(?, ?, ?, ?)';
-PREPARE stmt_dec FROM 'CALL p_decimal(?, ?, ?, ?)';
-
-SET @x_str_1 = NULL;
-SET @x_str_2 = NULL;
-SET @x_str_3 = NULL;
-SET @x_dbl_1 = NULL;
-SET @x_dbl_2 = NULL;
-SET @x_dbl_3 = NULL;
-SET @x_int_1 = NULL;
-SET @x_int_2 = NULL;
-SET @x_int_3 = NULL;
-SET @x_dec_1 = NULL;
-SET @x_dec_2 = NULL;
-SET @x_dec_3 = NULL;
-
--- Testing strings...
-
-EXECUTE stmt_str USING @x_int_1, @x_str_1, @x_str_2, @x_str_3;
-SELECT @x_int_1, @x_str_1, @x_str_2, @x_str_3;
-@x_int_1 @x_str_1 @x_str_2 @x_str_3
-NULL test_v1 NULL test_v3
-
-EXECUTE stmt_str USING @x_int_1, @x_str_1, @x_str_2, @x_str_3;
-SELECT @x_int_1, @x_str_1, @x_str_2, @x_str_3;
-@x_int_1 @x_str_1 @x_str_2 @x_str_3
-NULL test_v1 NULL test_v3
-
--- Testing doubles...
-
-EXECUTE stmt_dbl USING @x_int_1, @x_dbl_1, @x_dbl_2, @x_dbl_3;
-SELECT @x_int_1, @x_dbl_1, @x_dbl_2, @x_dbl_3;
-@x_int_1 @x_dbl_1 @x_dbl_2 @x_dbl_3
-NULL 12.34 NULL 56.78
-
-EXECUTE stmt_dbl USING @x_int_1, @x_dbl_1, @x_dbl_2, @x_dbl_3;
-SELECT @x_int_1, @x_dbl_1, @x_dbl_2, @x_dbl_3;
-@x_int_1 @x_dbl_1 @x_dbl_2 @x_dbl_3
-NULL 12.34 NULL 56.78
-
--- Testing ints...
-
-EXECUTE stmt_int USING @x_str_1, @x_int_1, @x_int_2, @x_int_3;
-SELECT @x_str_1, @x_int_1, @x_int_2, @x_int_3;
-@x_str_1 @x_int_1 @x_int_2 @x_int_3
-test_v1 1234 NULL 5678
-
-EXECUTE stmt_int USING @x_str_1, @x_int_1, @x_int_2, @x_int_3;
-SELECT @x_str_1, @x_int_1, @x_int_2, @x_int_3;
-@x_str_1 @x_int_1 @x_int_2 @x_int_3
-test_v1 1234 NULL 5678
-
--- Testing decs...
-
-EXECUTE stmt_dec USING @x_int_1, @x_dec_1, @x_dec_2, @x_dec_3;
-SELECT @x_int_1, @x_dec_1, @x_dec_2, @x_dec_3;
-@x_int_1 @x_dec_1 @x_dec_2 @x_dec_3
-1234 12.34 NULL 56.78
-
-EXECUTE stmt_dec USING @x_int_1, @x_dec_1, @x_dec_2, @x_dec_3;
-SELECT @x_int_1, @x_dec_1, @x_dec_2, @x_dec_3;
-@x_int_1 @x_dec_1 @x_dec_2 @x_dec_3
-1234 12.34 NULL 56.78
-
-DEALLOCATE PREPARE stmt_str;
-DEALLOCATE PREPARE stmt_dbl;
-DEALLOCATE PREPARE stmt_int;
-DEALLOCATE PREPARE stmt_dec;
-
-DROP PROCEDURE p_string;
-DROP PROCEDURE p_double;
-DROP PROCEDURE p_int;
-DROP PROCEDURE p_decimal;
-
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-
-CREATE PROCEDURE p1(OUT v1 CHAR(10))
-SET v1 = 'test1';
-
-CREATE PROCEDURE p2(OUT v2 CHAR(10))
-BEGIN
-SET @query = 'CALL p1(?)';
-PREPARE stmt1 FROM @query;
-EXECUTE stmt1 USING @u1;
-DEALLOCATE PREPARE stmt1;
-SET v2 = @u1;
-END|
-
-CALL p2(@a);
-SELECT @a;
-@a
-test1
-
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-
-TINYINT
-
-CREATE PROCEDURE p1(OUT v TINYINT)
-SET v = 127;
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = 127;
-@a @a = 127
-127 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-SMALLINT
-
-CREATE PROCEDURE p1(OUT v SMALLINT)
-SET v = 32767;
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = 32767;
-@a @a = 32767
-32767 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-MEDIUMINT
-
-CREATE PROCEDURE p1(OUT v MEDIUMINT)
-SET v = 8388607;
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = 8388607;
-@a @a = 8388607
-8388607 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-INT
-
-CREATE PROCEDURE p1(OUT v INT)
-SET v = 2147483647;
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = 2147483647;
-@a @a = 2147483647
-2147483647 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-BIGINT
-
-CREATE PROCEDURE p1(OUT v BIGINT)
-SET v = 9223372036854775807;
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = 9223372036854775807;
-@a @a = 9223372036854775807
-9223372036854775807 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-BIT(11)
-
-CREATE PROCEDURE p1(OUT v BIT(11))
-SET v = b'10100100101';
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` bigint(20) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = b'10100100101';
-@a @a = b'10100100101'
-1317 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-TIMESTAMP
-
-CREATE PROCEDURE p1(OUT v TIMESTAMP)
-SET v = '2007-11-18 15:01:02';
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = '2007-11-18 15:01:02';
-@a @a = '2007-11-18 15:01:02'
-2007-11-18 15:01:02 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-DATETIME
-
-CREATE PROCEDURE p1(OUT v DATETIME)
-SET v = '1234-11-12 12:34:59';
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = '1234-11-12 12:34:59';
-@a @a = '1234-11-12 12:34:59'
-1234-11-12 12:34:59 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-TIME
-
-CREATE PROCEDURE p1(OUT v TIME)
-SET v = '123:45:01';
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = '123:45:01';
-@a @a = '123:45:01'
-123:45:01 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-DATE
-
-CREATE PROCEDURE p1(OUT v DATE)
-SET v = '1234-11-12';
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = '1234-11-12';
-@a @a = '1234-11-12'
-1234-11-12 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-YEAR
-
-CREATE PROCEDURE p1(OUT v YEAR)
-SET v = 2010;
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` bigint(20) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = 2010;
-@a @a = 2010
-2010 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-FLOAT(7, 4)
-
-CREATE PROCEDURE p1(OUT v FLOAT(7, 4))
-SET v = 123.4567;
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a - 123.4567 < 0.00001;
-@a @a - 123.4567 < 0.00001
-123.45670318603516 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-DOUBLE(8, 5)
-
-CREATE PROCEDURE p1(OUT v DOUBLE(8, 5))
-SET v = 123.45678;
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a - 123.45678 < 0.000001;
-@a @a - 123.45678 < 0.000001
-123.45678 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-DECIMAL(9, 6)
-
-CREATE PROCEDURE p1(OUT v DECIMAL(9, 6))
-SET v = 123.456789;
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` decimal(65,38) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = 123.456789;
-@a @a = 123.456789
-123.456789 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-CHAR(32)
-
-CREATE PROCEDURE p1(OUT v CHAR(32))
-SET v = REPEAT('a', 16);
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = REPEAT('a', 16);
-@a @a = REPEAT('a', 16)
-aaaaaaaaaaaaaaaa 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-VARCHAR(32)
-
-CREATE PROCEDURE p1(OUT v VARCHAR(32))
-SET v = REPEAT('b', 16);
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = REPEAT('b', 16);
-@a @a = REPEAT('b', 16)
-bbbbbbbbbbbbbbbb 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-TINYTEXT
-
-CREATE PROCEDURE p1(OUT v TINYTEXT)
-SET v = REPEAT('c', 16);
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = REPEAT('c', 16);
-@a @a = REPEAT('c', 16)
-cccccccccccccccc 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-TEXT
-
-CREATE PROCEDURE p1(OUT v TEXT)
-SET v = REPEAT('d', 16);
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = REPEAT('d', 16);
-@a @a = REPEAT('d', 16)
-dddddddddddddddd 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-MEDIUMTEXT
-
-CREATE PROCEDURE p1(OUT v MEDIUMTEXT)
-SET v = REPEAT('e', 16);
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = REPEAT('e', 16);
-@a @a = REPEAT('e', 16)
-eeeeeeeeeeeeeeee 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-LONGTEXT
-
-CREATE PROCEDURE p1(OUT v LONGTEXT)
-SET v = REPEAT('f', 16);
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = REPEAT('f', 16);
-@a @a = REPEAT('f', 16)
-ffffffffffffffff 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-BINARY(32)
-
-CREATE PROCEDURE p1(OUT v BINARY(32))
-SET v = REPEAT('g', 32);
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = REPEAT('g', 32);
-@a @a = REPEAT('g', 32)
-gggggggggggggggggggggggggggggggg 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-VARBINARY(32)
-
-CREATE PROCEDURE p1(OUT v VARBINARY(32))
-SET v = REPEAT('h', 16);
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = REPEAT('h', 16);
-@a @a = REPEAT('h', 16)
-hhhhhhhhhhhhhhhh 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-TINYBLOB
-
-CREATE PROCEDURE p1(OUT v TINYBLOB)
-SET v = REPEAT('i', 16);
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = REPEAT('i', 16);
-@a @a = REPEAT('i', 16)
-iiiiiiiiiiiiiiii 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-BLOB
-
-CREATE PROCEDURE p1(OUT v BLOB)
-SET v = REPEAT('j', 16);
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = REPEAT('j', 16);
-@a @a = REPEAT('j', 16)
-jjjjjjjjjjjjjjjj 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-MEDIUMBLOB
-
-CREATE PROCEDURE p1(OUT v MEDIUMBLOB)
-SET v = REPEAT('k', 16);
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = REPEAT('k', 16);
-@a @a = REPEAT('k', 16)
-kkkkkkkkkkkkkkkk 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-LONGBLOB
-
-CREATE PROCEDURE p1(OUT v LONGBLOB)
-SET v = REPEAT('l', 16);
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = REPEAT('l', 16);
-@a @a = REPEAT('l', 16)
-llllllllllllllll 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-SET('aaa', 'bbb')
-
-CREATE PROCEDURE p1(OUT v SET('aaa', 'bbb'))
-SET v = 'aaa';
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = 'aaa';
-@a @a = 'aaa'
-aaa 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-ENUM('aaa', 'bbb')
-
-CREATE PROCEDURE p1(OUT v ENUM('aaa', 'bbb'))
-SET v = 'aaa';
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TEMPORARY TABLE tmp1 AS SELECT @a AS c1;
-SHOW CREATE TABLE tmp1;
-Table Create Table
-tmp1 CREATE TEMPORARY TABLE `tmp1` (
- `c1` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT @a, @a = 'aaa';
-@a @a = 'aaa'
-aaa 1
-DROP TEMPORARY TABLE tmp1;
-DROP PROCEDURE p1;
-
-# End of WL#4435.
-#
-# WL#4284: Transactional DDL locking
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT);
-BEGIN;
-SELECT * FROM t1;
-a
-# Test that preparing a CREATE TABLE does not take a exclusive metdata lock.
-PREPARE stmt1 FROM "CREATE TABLE t1 AS SELECT 1";
-EXECUTE stmt1;
-ERROR 42S01: Table 't1' already exists
-DEALLOCATE PREPARE stmt1;
-DROP TABLE t1;
-#
-# WL#4284: Transactional DDL locking
-#
-# Test that metadata locks taken during prepare are released.
-#
-connect con1,localhost,root,,;
-connection default;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT);
-connection con1;
-BEGIN;
-PREPARE stmt1 FROM "SELECT * FROM t1";
-connection default;
-DROP TABLE t1;
-disconnect con1;
-
-#
-# Bug#56115: invalid memory reads when PS selecting from
-# information_schema tables
-# Bug#58701: crash in Field::make_field, cursor-protocol
-#
-# NOTE: MTR should be run both with --ps-protocol and --cursor-protocol.
-#
-
-SELECT *
-FROM (SELECT 1 UNION SELECT 2) t;
-1
-1
-2
-
-# Bug#13805127: Stored program cache produces wrong result in same THD
-
-PREPARE s1 FROM
-"
-SELECT c1, t2.c2, count(c3)
-FROM
- (
- SELECT 3 as c2 FROM dual WHERE @x = 1
- UNION
- SELECT 2 FROM dual WHERE @x = 1 OR @x = 2
- ) AS t1,
- (
- SELECT '2012-03-01 01:00:00' AS c1, 3 as c2, 1 as c3 FROM dual
- UNION
- SELECT '2012-03-01 02:00:00', 3, 2 FROM dual
- UNION
- SELECT '2012-03-01 01:00:00', 2, 1 FROM dual
- ) AS t2
-WHERE t2.c2 = t1.c2
-GROUP BY c1, c2
-";
-
-SET @x = 1;
-SELECT c1, t2.c2, count(c3)
-FROM
-(
-SELECT 3 as c2 FROM dual WHERE @x = 1
-UNION
-SELECT 2 FROM dual WHERE @x = 1 OR @x = 2
-) AS t1,
-(
-SELECT '2012-03-01 01:00:00' AS c1, 3 as c2, 1 as c3 FROM dual
-UNION
-SELECT '2012-03-01 02:00:00', 3, 2 FROM dual
-UNION
-SELECT '2012-03-01 01:00:00', 2, 1 FROM dual
-) AS t2
-WHERE t2.c2 = t1.c2
-GROUP BY c1, c2;
-c1 c2 count(c3)
-2012-03-01 01:00:00 2 1
-2012-03-01 01:00:00 3 1
-2012-03-01 02:00:00 3 1
-
-EXECUTE s1;
-c1 c2 count(c3)
-2012-03-01 01:00:00 2 1
-2012-03-01 01:00:00 3 1
-2012-03-01 02:00:00 3 1
-
-SET @x = 2;
-SELECT c1, t2.c2, count(c3)
-FROM
-(
-SELECT 3 as c2 FROM dual WHERE @x = 1
-UNION
-SELECT 2 FROM dual WHERE @x = 1 OR @x = 2
-) AS t1,
-(
-SELECT '2012-03-01 01:00:00' AS c1, 3 as c2, 1 as c3 FROM dual
-UNION
-SELECT '2012-03-01 02:00:00', 3, 2 FROM dual
-UNION
-SELECT '2012-03-01 01:00:00', 2, 1 FROM dual
-) AS t2
-WHERE t2.c2 = t1.c2
-GROUP BY c1, c2;
-c1 c2 count(c3)
-2012-03-01 01:00:00 2 1
-
-EXECUTE s1;
-c1 c2 count(c3)
-2012-03-01 01:00:00 2 1
-
-SET @x = 1;
-SELECT c1, t2.c2, count(c3)
-FROM
-(
-SELECT 3 as c2 FROM dual WHERE @x = 1
-UNION
-SELECT 2 FROM dual WHERE @x = 1 OR @x = 2
-) AS t1,
-(
-SELECT '2012-03-01 01:00:00' AS c1, 3 as c2, 1 as c3 FROM dual
-UNION
-SELECT '2012-03-01 02:00:00', 3, 2 FROM dual
-UNION
-SELECT '2012-03-01 01:00:00', 2, 1 FROM dual
-) AS t2
-WHERE t2.c2 = t1.c2
-GROUP BY c1, c2;
-c1 c2 count(c3)
-2012-03-01 01:00:00 2 1
-2012-03-01 01:00:00 3 1
-2012-03-01 02:00:00 3 1
-
-EXECUTE s1;
-c1 c2 count(c3)
-2012-03-01 01:00:00 2 1
-2012-03-01 01:00:00 3 1
-2012-03-01 02:00:00 3 1
-DEALLOCATE PREPARE s1;
-prepare stmt from "select date('2010-10-10') between '2010-09-09' and ?";
-set @a='2010-11-11';
-execute stmt using @a;
-date('2010-10-10') between '2010-09-09' and ?
-1
-execute stmt using @a;
-date('2010-10-10') between '2010-09-09' and ?
-1
-set @a='2010-08-08';
-execute stmt using @a;
-date('2010-10-10') between '2010-09-09' and ?
-0
-execute stmt using @a;
-date('2010-10-10') between '2010-09-09' and ?
-0
-#
-# Bug #892725: look-up is changed for a full scan when executing PS
-#
-create table t1 (a int primary key, b int);
-insert into t1 values
-(7,70), (3,40), (4,40), (8,70), (1,70), (9,50), (2,70);
-prepare st from 'select * from t1 where a=8';
-flush status;
-execute st;
-a b
-8 70
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-flush status;
-execute st;
-a b
-8 70
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-flush status;
-select * from t1 use index() where a=3;
-a b
-3 40
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 8
-flush status;
-execute st;
-a b
-8 70
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-deallocate prepare st;
-drop table t1;
-#
-# Bug mdev-5410: crash at the execution of PS with subselect
-# formed by UNION with global ORDER BY
-#
-CREATE TABLE t1 (a int DEFAULT NULL);
-INSERT INTO t1 VALUES (2), (4);
-CREATE TABLE t2 (b int DEFAULT NULL);
-INSERT INTO t2 VALUES (1), (3);
-PREPARE stmt FROM "
-SELECT c1 FROM (SELECT (SELECT a FROM t1 WHERE t1.a <= t2.b
- UNION ALL
- SELECT a FROM t1 WHERE t1.a+3<= t2.b
- ORDER BY a DESC) AS c1 FROM t2) t3;
-";
-EXECUTE stmt;
-c1
-NULL
-2
-EXECUTE stmt;
-c1
-NULL
-2
-DROP TABLE t1,t2;
-#
-# MDEV-5369: Wrong result (0 instead of NULL) on 2nd execution of
-# PS with LEFT JOIN, TEMPTABLE view
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (0),(8);
-CREATE TABLE t2 (pk INT PRIMARY KEY) ENGINE=MyISAM;
-CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
-SELECT SUM(pk) FROM t1 LEFT JOIN v2 ON a = pk;
-SUM(pk)
-NULL
-PREPARE stmt FROM "SELECT SUM(pk) FROM t1 LEFT JOIN v2 ON a = pk";
-EXECUTE stmt;
-SUM(pk)
-NULL
-EXECUTE stmt;
-SUM(pk)
-NULL
-DEALLOCATE PREPARE stmt;
-DROP VIEW v2;
-DROP TABLE t1, t2;
-# End of 5.3 tests
-#
-# MDEV-5505: Assertion `! is_set()' fails on PREPARE SELECT
-# with out of range in GROUP BY
-#
-CREATE TABLE t1 (a INT);
-PREPARE stmt FROM "SELECT 1 FROM t1 GROUP BY 0 OR 18446744073709551615+1";
-ERROR 22003: BIGINT UNSIGNED value is out of range in '18446744073709551615 + 1'
-SELECT 1 FROM t1 GROUP BY 0 OR 18446744073709551615+1;
-ERROR 22003: BIGINT UNSIGNED value is out of range in '18446744073709551615 + 1'
-drop table t1;
-# End of 5.3 tests
-#
-# MDEV-8756: MariaDB 10.0.21 crashes during PREPARE
-#
-CREATE TABLE t1 ( id INT(10), value INT(10) );
-CREATE TABLE t2 ( id INT(10) );
-SET @save_sql_mode= @@sql_mode;
-SET SESSION sql_mode = 'ONLY_FULL_GROUP_BY';
-PREPARE stmt FROM 'UPDATE t1 t1 SET value = (SELECT 1 FROM t2 WHERE id = t1.id)';
-execute stmt;
-insert into t1 values (1,10),(2,10),(3,10);
-insert into t2 values (1),(2);
-execute stmt;
-select * from t1;
-id value
-1 1
-2 1
-3 NULL
-deallocate prepare stmt;
-SET SESSION sql_mode = @save_sql_mode;
-DROP TABLE t1,t2;
-#
-# MDEV-8833: Crash of server on prepared statement with
-# conversion to semi-join
-#
-CREATE TABLE t1 (column1 INT);
-INSERT INTO t1 VALUES (3),(9);
-CREATE TABLE t2 (column2 INT);
-INSERT INTO t2 VALUES (1),(4);
-CREATE TABLE t3 (column3 INT);
-INSERT INTO t3 VALUES (6),(8);
-CREATE TABLE t4 (column4 INT);
-INSERT INTO t4 VALUES (2),(5);
-PREPARE stmt FROM "SELECT ( SELECT MAX( table1.column1 ) AS field1
-FROM t1 AS table1
-WHERE table3.column3 IN ( SELECT table2.column2 AS field2 FROM t2 AS table2 )
-) AS sq
-FROM t3 AS table3, t4 AS table4";
-EXECUTE stmt;
-sq
-NULL
-NULL
-NULL
-NULL
-EXECUTE stmt;
-sq
-NULL
-NULL
-NULL
-NULL
-deallocate prepare stmt;
-drop table t1,t2,t3,t4;
-#
-# MDEV-11859: the plans for the first and the second executions
-# of PS are not the same
-#
-create table t1 (id int, c varchar(3), key idx(c))engine=myisam;
-insert into t1 values (3,'bar'), (1,'xxx'), (2,'foo'), (5,'yyy');
-prepare stmt1 from
-"explain extended
- select * from t1 where (1, 2) in ( select 3, 4 ) or c = 'foo'";
-execute stmt1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ref idx idx 6 const 1 100.00 Using index condition
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`c` AS `c` from `test`.`t1` where `test`.`t1`.`c` = 'foo'
-execute stmt1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ref idx idx 6 const 1 100.00 Using index condition
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`c` AS `c` from `test`.`t1` where `test`.`t1`.`c` = 'foo'
-deallocate prepare stmt1;
-prepare stmt1 from
-"select * from t1 where (1, 2) in ( select 3, 4 ) or c = 'foo'";
-flush status;
-execute stmt1;
-id c
-2 foo
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 1
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-flush status;
-execute stmt1;
-id c
-2 foo
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 1
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-deallocate prepare stmt1;
-prepare stmt2 from
-"explain extended
- select * from t1 where (1, 2) in ( select 3, 4 )";
-execute stmt2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`c` AS `c` from `test`.`t1` where 0
-execute stmt2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`c` AS `c` from `test`.`t1` where 0
-deallocate prepare stmt2;
-drop table t1;
-#
-# MDEV-9208: Function->Function->View = Mysqld segfault
-# (Server crashes in Dependency_marker::visit_field on 2nd
-# execution with merged subquery)
-#
-CREATE TABLE t1 (i1 INT);
-insert into t1 values(1),(2);
-CREATE TABLE t2 (i2 INT);
-insert into t2 values(1),(2);
-prepare stmt from "
- select 1 from (
- select
- if (i1<0, 0, 0) as f1,
- (select f1) as f2
- from t1, t2
- ) sq
-";
-execute stmt;
-1
-1
-1
-1
-1
-execute stmt;
-1
-1
-1
-1
-1
-drop table t1,t2;
-#
-# MDEV-9619: Assertion `null_ref_table' failed in virtual
-# table_map Item_direct_view_ref::used_tables() const on 2nd
-# execution of PS
-#
-CREATE TABLE t1 (f1 VARCHAR(10)) ENGINE=MyISAM;
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES ('a'),('b');
-CREATE TABLE t2 (f2 VARCHAR(10)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('c'),('d');
-PREPARE stmt FROM "SELECT * FROM v1 WHERE f1 = SOME ( SELECT f2 FROM t2 )";
-EXECUTE stmt;
-f1
-EXECUTE stmt;
-f1
-insert into t1 values ('c');
-EXECUTE stmt;
-f1
-c
-EXECUTE stmt;
-f1
-c
-deallocate prepare stmt;
-drop view v1;
-drop table t1,t2;
-CREATE TABLE t1 (f1 VARCHAR(10)) ENGINE=MyISAM;
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES ('a'),('b');
-CREATE TABLE t2 (f2 VARCHAR(10)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('c'),('d');
-PREPARE stmt FROM "SELECT * FROM v1 WHERE (f1,f1) = SOME ( SELECT f2,f2 FROM t2 )";
-EXECUTE stmt;
-f1
-EXECUTE stmt;
-f1
-insert into t1 values ('c');
-EXECUTE stmt;
-f1
-c
-EXECUTE stmt;
-f1
-c
-deallocate prepare stmt;
-drop view v1;
-drop table t1,t2;
-CREATE TABLE t1 (column1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3),(9);
-CREATE TABLE t2 (column2 INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1),(4);
-CREATE TABLE t3 (column3 INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (6),(8);
-CREATE TABLE t4 (column4 INT) ENGINE=MyISAM;
-INSERT INTO t4 VALUES (2),(5);
-PREPARE stmt FROM "
-SELECT (
- SELECT MAX( table1.column1 ) AS field1
- FROM t1 AS table1
- WHERE (111,table3.column3) IN ( SELECT 111,table2.column2 AS field2 FROM t2 AS table2 )
-) AS sq
-FROM t3 AS table3, t4 AS table4 GROUP BY sq
-";
-EXECUTE stmt;
-sq
-NULL
-EXECUTE stmt;
-sq
-NULL
-deallocate prepare stmt;
-drop table t1,t2,t3,t4;
-create table t1 (a int, b int, c int);
-create table t2 (x int, y int, z int);
-create table t3 as select * from t1;
-insert into t1 values (1,2,3),(4,5,6),(100,200,300),(400,500,600);
-insert into t2 values (1,2,3),(7,8,9),(100,200,300),(400,500,600);
-insert into t3 values (1,2,3),(11,12,13),(100,0,0),(400,500,600);
-set @optimizer_switch_save=@@optimizer_switch;
-set @join_cache_level_save=@@join_cache_level;
-set optimizer_switch='materialization=off';
-set join_cache_level=0;
-select * from t1 where (select a,b from t3 where t3.c=t1.c) in (select x,y from t2 where t1.c= t2.z);
-a b c
-1 2 3
-400 500 600
-prepare stmt from "select * from t1 where (select a,b from t3 where t3.c=t1.c) in (select x,y from t2 where t1.c= t2.z)";
-EXECUTE stmt;
-a b c
-1 2 3
-400 500 600
-EXECUTE stmt;
-a b c
-1 2 3
-400 500 600
-create view v1 as select * from t1;
-create view v2 as select * from t2;
-create view v3 as select * from t3;
-select * from v1 where (select a,b from v3 where v3.c=v1.c) in (select x,y from v2 where v1.c= v2.z);
-a b c
-1 2 3
-400 500 600
-prepare stmt from "select * from v1 where (select a,b from v3 where v3.c=v1.c) in (select x,y from v2 where v1.c= v2.z)";
-EXECUTE stmt;
-a b c
-1 2 3
-400 500 600
-EXECUTE stmt;
-a b c
-1 2 3
-400 500 600
-set optimizer_switch=@optimizer_switch_save;
-set join_cache_level=@join_cache_level_save;
-deallocate prepare stmt;
-drop view v1,v2,v3;
-drop table t1,t2,t3;
-#
-# MDEV-10657: incorrect result returned with binary protocol
-# (prepared statements)
-#
-create table t1 (code varchar(10) primary key);
-INSERT INTO t1(code) VALUES ('LINE1'), ('LINE2'), ('LINE3');
-SELECT X.*
-FROM
-(SELECT CODE, RN
-FROM
-(SELECT A.CODE, @cnt := @cnt + 1 AS RN
-FROM t1 A, (SELECT @cnt := 0) C) T
-) X;
-CODE RN
-LINE1 1
-LINE2 2
-LINE3 3
-drop table t1;
-# End of 5.5 tests
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10709 Expressions as parameters to Dynamic SQL
-#
-#
-# Using a simple expressions as an EXECUTE parameter
-#
-PREPARE stmt FROM 'SELECT ? FROM DUAL';
-EXECUTE stmt USING 10;
-?
-10
-DEALLOCATE PREPARE stmt;
-PREPARE stmt FROM 'SELECT ? FROM DUAL';
-EXECUTE stmt USING TO_BASE64('xxx');
-?
-eHh4
-DEALLOCATE PREPARE stmt;
-PREPARE stmt FROM 'SELECT ?+? FROM DUAL';
-EXECUTE stmt USING 10, 10 + 10;
-?+?
-30
-DEALLOCATE PREPARE stmt;
-PREPARE stmt FROM 'SELECT CONCAT(?,?) FROM DUAL';
-EXECUTE stmt USING 'xxx', CONCAT('yyy','zzz');
-CONCAT(?,?)
-xxxyyyzzz
-DEALLOCATE PREPARE stmt;
-#
-# Testing disallowed expressions in USING
-#
-PREPARE stmt FROM 'SELECT ? FROM DUAL';
-EXECUTE stmt USING (SELECT 1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1)' at line 1
-DEALLOCATE PREPARE stmt;
-CREATE FUNCTION f1() RETURNS VARCHAR(10) RETURN 'test';
-PREPARE stmt FROM 'SELECT ? FROM DUAL';
-EXECUTE stmt USING f1();
-ERROR 42000: EXECUTE..USING does not support subqueries or stored functions
-DEALLOCATE PREPARE stmt;
-DROP FUNCTION f1;
-#
-# Testing erroneous expressions in USING
-#
-PREPARE stmt FROM 'SELECT ?';
-EXECUTE stmt USING _latin1'a'=_latin2'a';
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (latin2_general_ci,COERCIBLE) for operation '='
-DEALLOCATE PREPARE stmt;
-PREPARE stmt FROM 'SELECT ?';
-EXECUTE stmt USING ROW(1,2);
-ERROR 21000: Operand should contain 1 column(s)
-DEALLOCATE PREPARE stmt;
-#
-# Creating tables from EXECUTE parameters
-#
-PREPARE stmt FROM 'CREATE TABLE t1 AS SELECT ? AS c1 FROM DUAL';
-EXECUTE stmt USING 10;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(2) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE stmt USING 10.123;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` decimal(5,3) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE stmt USING 10.123e0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` double NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE stmt USING CURRENT_DATE;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` date NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE stmt USING CURRENT_TIMESTAMP;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` datetime NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE stmt USING CURRENT_TIMESTAMP(3);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` datetime(3) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE stmt USING CURRENT_TIMESTAMP(6);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` datetime(6) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE stmt USING CURRENT_TIME;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` time NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE stmt USING CURRENT_TIME(3);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` time(3) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE stmt USING CURRENT_TIME(6);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` time(6) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DEALLOCATE PREPARE stmt;
-#
-# Using a user variable as an EXECUTE..USING out parameter
-#
-CREATE PROCEDURE p1(OUT a INT)
-BEGIN
-SET a:= 10;
-END;
-/
-SET @a=1;
-CALL p1(@a);
-SELECT @a;
-@a
-10
-SET @a=2;
-PREPARE stmt FROM 'CALL p1(?)';
-EXECUTE stmt USING @a;
-SELECT @a;
-@a
-10
-DROP PROCEDURE p1;
-#
-# Using an SP variable as an EXECUTE..USING out parameter
-#
-CREATE PROCEDURE p1 (OUT a INT)
-BEGIN
-SET a=10;
-END;
-/
-CREATE PROCEDURE p2 (OUT a INT)
-BEGIN
-PREPARE stmt FROM 'CALL p1(?)';
-EXECUTE stmt USING a;
-END;
-/
-SET @a= 1;
-CALL p2(@a);
-SELECT @a;
-@a
-10
-DROP PROCEDURE p2;
-DROP PROCEDURE p1;
-#
-# Testing re-prepare on a table metadata update between PREPARE and EXECUTE
-#
-CREATE TABLE t1 (a INT);
-CREATE PROCEDURE p1(a INT)
-BEGIN
-INSERT INTO t1 VALUES (a);
-END;
-/
-PREPARE stmt FROM 'CALL p1(?)';
-EXECUTE stmt USING 10;
-SELECT * FROM t1;
-a
-10
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET NEW.a=NEW.a+1;
-EXECUTE stmt USING 20;
-SELECT * FROM t1;
-a
-10
-21
-DEALLOCATE PREPARE stmt;
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# End of MDEV-10709 Expressions as parameters to Dynamic SQL
-#
-#
-# MDEV-10585 EXECUTE IMMEDIATE statement
-#
-EXECUTE IMMEDIATE 'SELECT 1 AS a';
-a
-1
-SET @a=10;
-EXECUTE IMMEDIATE 'SELECT ? AS a' USING @a;
-a
-10
-EXECUTE IMMEDIATE 'SELECT ? AS a' USING 20;
-a
-20
-#
-# Erroneous queries
-#
-EXECUTE IMMEDIATE 'xxx';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'xxx' at line 1
-EXECUTE IMMEDIATE 'SELECT 1' USING @a;
-ERROR HY000: Incorrect arguments to EXECUTE
-EXECUTE IMMEDIATE 'SELECT ?';
-ERROR HY000: Incorrect arguments to EXECUTE
-EXECUTE IMMEDIATE 'EXECUTE IMMEDIATE "SELECT 1"';
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-EXECUTE IMMEDIATE 'PREPARE stmt FROM "SELECT 1"';
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-EXECUTE IMMEDIATE 'EXECUTE stmt';
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-EXECUTE IMMEDIATE 'DEALLOCATE PREPARE stmt';
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-EXECUTE IMMEDIATE 'SELECT ?' USING _latin1'a'=_latin2'a';
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (latin2_general_ci,COERCIBLE) for operation '='
-EXECUTE IMMEDIATE 'SELECT ?' USING ROW(1,2);
-ERROR 21000: Operand should contain 1 column(s)
-#
-# Testing disallowed expressions in USING
-#
-EXECUTE IMMEDIATE 'SELECT ? FROM DUAL' USING (SELECT 1);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1)' at line 1
-CREATE FUNCTION f1() RETURNS VARCHAR(10) RETURN 'test';
-EXECUTE IMMEDIATE 'SELECT ? FROM DUAL' USING f1();
-ERROR 42000: EXECUTE..USING does not support subqueries or stored functions
-DROP FUNCTION f1;
-#
-# DDL
-#
-EXECUTE IMMEDIATE 'CREATE TABLE t1 (a INT)';
-EXECUTE IMMEDIATE 'SHOW CREATE TABLE t1';
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-EXECUTE IMMEDIATE 'DROP TABLE t1';
-SET @stmt= 'CREATE TABLE t1 (a INT)';
-EXECUTE IMMEDIATE @stmt;
-SET @stmt= 'SHOW CREATE TABLE t1';
-EXECUTE IMMEDIATE @stmt;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SET @stmt= 'DROP TABLE t1';
-EXECUTE IMMEDIATE @stmt;
-#
-# DDL with parameters
-#
-SET @a= 10, @b= 10.1, @c= 10e0, @d='str';
-EXECUTE IMMEDIATE
-'CREATE TABLE t1 AS SELECT ? AS a,? AS b,? AS c,? AS d'
- USING @a,@b,@c,@d;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(20) NOT NULL,
- `b` decimal(3,1) NOT NULL,
- `c` double NOT NULL,
- `d` tinytext NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE IMMEDIATE
-'CREATE TABLE t1 AS SELECT ? AS a,? AS b,? AS c,? AS d'
- USING 10, 10.1, 10e0, 'str';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(2) NOT NULL,
- `b` decimal(3,1) NOT NULL,
- `c` double NOT NULL,
- `d` varchar(3) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE IMMEDIATE
-'CREATE TABLE t1 AS SELECT ? AS t1,? AS t2, ? AS d1,? AS dt1, ? AS dt2'
- USING TIME'10:20:30',
-TIME'10:20:30.123',
-DATE'2001-01-01',
-TIMESTAMP'2001-01-01 10:20:30',
-TIMESTAMP'2001-01-01 10:20:30.123';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t1` time NOT NULL,
- `t2` time(3) NOT NULL,
- `d1` date NOT NULL,
- `dt1` datetime NOT NULL,
- `dt2` datetime(3) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# Using a user variable as an EXECUTE IMMEDIATE..USING out parameter
-#
-CREATE PROCEDURE p1(OUT a INT)
-BEGIN
-SET a:= 10;
-END;
-/
-SET @a=1;
-CALL p1(@a);
-SELECT @a;
-@a
-10
-SET @a=2;
-EXECUTE IMMEDIATE 'CALL p1(?)' USING @a;
-SELECT @a;
-@a
-10
-DROP PROCEDURE p1;
-#
-# Using an SP variable as an EXECUTE IMMEDIATE..USING out parameter
-#
-CREATE PROCEDURE p1 (OUT a INT)
-BEGIN
-SET a=10;
-END;
-/
-CREATE PROCEDURE p2 (OUT a INT)
-BEGIN
-EXECUTE IMMEDIATE 'CALL p1(?)' USING a;
-END;
-/
-SET @a= 1;
-CALL p2(@a);
-SELECT @a;
-@a
-10
-DROP PROCEDURE p2;
-DROP PROCEDURE p1;
-#
-# Changing user variables
-#
-SET @a=10;
-EXECUTE IMMEDIATE 'SET @a=@a+1';
-SELECT @a;
-@a
-11
-#
-# SET STATEMENT
-#
-SET @@max_sort_length=1024;
-EXECUTE IMMEDIATE 'SET STATEMENT max_sort_length=1025 FOR SELECT @@max_sort_length';
-@@max_sort_length
-1025
-SELECT @@max_sort_length;
-@@max_sort_length
-1024
-SET @@max_sort_length=DEFAULT;
-#
-# Similar to prepared EXECUTE, IMMEDIATE is not allowed in stored functions
-#
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-EXECUTE IMMEDIATE 'DO 1';
-RETURN 1;
-END;
-$$
-ERROR 0A000: Dynamic SQL is not allowed in stored function or trigger
-#
-# Status variables
-#
-CREATE FUNCTION get_status_var(name TEXT) RETURNS INT
-RETURN (SELECT CAST(VARIABLE_VALUE AS INT)
-FROM INFORMATION_SCHEMA.SESSION_STATUS
-WHERE VARIABLE_NAME=name);
-CREATE PROCEDURE test_status_var(name TEXT)
-BEGIN
-SET @cnt0=get_status_var(name);
-EXECUTE IMMEDIATE 'DO 1';
-SET @cnt1=get_status_var(name);
-SELECT @cnt1-@cnt0 AS increment;
-END;
-$$
-# Note, EXECUTE IMMEDIATE does not increment COM_EXECUTE_SQL
-# It increments COM_EXECUTE_IMMEDIATE instead.
-CALL test_status_var('COM_EXECUTE_SQL');
-increment
-0
-CALL test_status_var('COM_EXECUTE_IMMEDIATE');
-increment
-1
-CALL test_status_var('COM_STMT_PREPARE');
-increment
-1
-CALL test_status_var('COM_STMT_EXECUTE');
-increment
-1
-CALL test_status_var('COM_STMT_CLOSE');
-increment
-1
-DROP PROCEDURE test_status_var;
-DROP FUNCTION get_status_var;
-#
-# End of MDEV-10585 EXECUTE IMMEDIATE statement
-#
-#
-# MDEV-10866 Extend PREPARE and EXECUTE IMMEDIATE to understand expressions
-#
-#
-# Testing erroneous and diallowed prepare source
-#
-EXECUTE IMMEDIATE CONCAT(_latin1'SELECT 1 AS c FROM ', _latin2 'DUAL');
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (latin2_general_ci,COERCIBLE) for operation 'concat'
-PREPARE stmt FROM CONCAT(_latin1'SELECT 1 AS c FROM ', _latin2 'DUAL');
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (latin2_general_ci,COERCIBLE) for operation 'concat'
-EXECUTE IMMEDIATE (SELECT 'SELECT 1');
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 'SELECT 1')' at line 1
-PREPARE stmt FROM (SELECT 'SELECT 1');
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 'SELECT 1')' at line 1
-EXECUTE IMMEDIATE a;
-ERROR 42S22: Unknown column 'a' in 'field list'
-PREPARE stmt FROM a;
-ERROR 42S22: Unknown column 'a' in 'field list'
-EXECUTE IMMEDIATE NULL;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NULL' at line 1
-PREPARE stmt FROM NULL;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NULL' at line 1
-EXECUTE IMMEDIATE CONCAT(NULL);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NULL' at line 1
-PREPARE stmt FROM CONCAT(NULL);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NULL' at line 1
-EXECUTE IMMEDIATE ? USING 'SELECT 1';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? USING 'SELECT 1'' at line 1
-EXECUTE IMMEDIATE 10;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '10' at line 1
-EXECUTE IMMEDIATE TIME'10:20:30';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '10:20:30' at line 1
-EXECUTE IMMEDIATE ROW('SELECT 1','SELECT 2');
-ERROR 21000: Operand should contain 1 column(s)
-EXECUTE IMMEDIATE MAX('SELECT 1 AS c');
-ERROR HY000: Invalid use of group function
-EXECUTE IMMEDIATE DEFAULT(a);
-ERROR 42S22: Unknown column 'a' in 'field list'
-EXECUTE IMMEDIATE VALUE(a);
-ERROR 42S22: Unknown column 'a' in 'field list'
-CREATE FUNCTION f1() RETURNS VARCHAR(64) RETURN 't1';
-EXECUTE IMMEDIATE f1();
-ERROR 42000: EXECUTE IMMEDIATE does not support subqueries or stored functions
-PREPARE stmt FROM f1();
-ERROR 42000: PREPARE..FROM does not support subqueries or stored functions
-DROP FUNCTION f1;
-EXECUTE IMMEDIATE non_existent();
-ERROR 42000: EXECUTE IMMEDIATE does not support subqueries or stored functions
-#
-# Testing literals in prepare source
-#
-EXECUTE IMMEDIATE N'SELECT 1 AS c';
-c
-1
-EXECUTE IMMEDIATE _latin1'SELECT 1 AS c';
-c
-1
-EXECUTE IMMEDIATE 'SELECT ' '1' ' AS c' ' FROM ' 'DUAL';
-c
-1
-EXECUTE IMMEDIATE 0x53454C4543542031 /*This is 'SELECT 1'*/;
-1
-1
-#
-# Testing user variables in prepare source
-#
-SET @stmt='SELECT 1 AS c FROM DUAL';
-EXECUTE IMMEDIATE @stmt;
-c
-1
-PREPARE stmt FROM @stmt;
-EXECUTE stmt;
-c
-1
-DEALLOCATE PREPARE stmt;
-SET @table_name='DUAL';
-EXECUTE IMMEDIATE CONCAT('SELECT 1 AS a FROM ', @table_name);
-a
-1
-PREPARE stmt FROM CONCAT('SELECT 1 AS a FROM ', @table_name);
-EXECUTE stmt;
-a
-1
-DEALLOCATE PREPARE stmt;
-#
-# Testing SP parameters and variables in prepare source
-#
-CREATE PROCEDURE p1(table_name VARCHAR(64))
-BEGIN
-EXECUTE IMMEDIATE CONCAT('SELECT 1 AS c FROM ', table_name);
-END;
-$$
-CALL p1('DUAL');
-c
-1
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE table_name VARCHAR(64) DEFAULT 'DUAL';
-EXECUTE IMMEDIATE CONCAT('SELECT 1 AS c FROM ', table_name);
-END;
-$$
-CALL p1();
-c
-1
-DROP PROCEDURE p1;
-#
-# Testing complex expressions
-#
-EXECUTE IMMEDIATE CONVERT('SELECT 1 AS c' USING utf8);
-c
-1
-EXECUTE IMMEDIATE CAST('SELECT 1 AS c' AS CHAR);
-c
-1
-EXECUTE IMMEDIATE _latin1'SELECT 1 AS c' COLLATE latin1_bin;
-c
-1
-EXECUTE IMMEDIATE (((('SELECT 1 AS c'))));
-c
-1
-EXECUTE IMMEDIATE CASE WHEN 1>2 THEN 'SELECT 1 AS c' ELSE 'SELECT 2 AS c' END;
-c
-2
-EXECUTE IMMEDIATE TRIM('SELECT 1 AS c');
-c
-1
-EXECUTE IMMEDIATE SUBSTRING('SELECT 1 AS c' FROM 1);
-c
-1
-EXECUTE IMMEDIATE COALESCE(NULL, 'SELECT 1 AS c');
-c
-1
-#
-# Testing SET STATEMENT and system variables
-#
-CREATE TABLE t1 (a INT);
-SET STATEMENT max_sort_length=1025 FOR EXECUTE IMMEDIATE CONCAT('INSERT INTO t1 VALUES (', @@max_sort_length, ')');
-SELECT * FROM t1;
-a
-1025
-DROP TABLE t1;
-#
-# End of MDEV-10866 Extend PREPARE and EXECUTE IMMEDIATE to understand expressions
-#
-#
-# End of 10.2 tests
-#
-#
-# MDEV-11360 Dynamic SQL: DEFAULT as a bind parameter
-#
-CREATE TABLE t1 (a INT DEFAULT 10, b INT DEFAULT NULL);
-EXECUTE IMMEDIATE 'INSERT INTO t1 VALUES (?,?)' USING DEFAULT, DEFAULT;
-SELECT * FROM t1;
-a b
-10 NULL
-UPDATE t1 SET a=20, b=30;
-SELECT * FROM t1;
-a b
-20 30
-EXECUTE IMMEDIATE 'UPDATE t1 SET a=?,b=?' USING DEFAULT, DEFAULT;
-SELECT * FROM t1;
-a b
-10 NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a INT DEFAULT 10);
-EXECUTE IMMEDIATE 'INSERT INTO t1 VALUES (?+1)' USING DEFAULT;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'INSERT INTO t1 VALUES (CONCAT(?,?))' USING DEFAULT, 'test';
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-DROP TABLE t1;
-CREATE TABLE t1 (a INT DEFAULT 10);
-INSERT INTO t1 VALUES (20);
-EXECUTE IMMEDIATE 'UPDATE t1 SET a=?+1' USING DEFAULT;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'UPDATE t1 SET a=CONCAT(?,?)' USING DEFAULT, 'test';
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-DROP TABLE t1;
-EXECUTE IMMEDIATE 'SELECT CAST(? AS SIGNED)' USING DEFAULT;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT CAST(? AS DOUBLE)' USING DEFAULT;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT CAST(? AS CHAR)' USING DEFAULT;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT CAST(? AS DECIMAL(10,1))' USING DEFAULT;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT CAST(? AS TIME)' USING DEFAULT;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT CAST(? AS DATE)' USING DEFAULT;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT CAST(? AS DATETIME)' USING DEFAULT;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT ?+1' USING DEFAULT;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT CONCAT(?,?)' USING DEFAULT,'test';
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-EXECUTE IMMEDIATE 'SELECT 1 LIMIT ?' USING DEFAULT;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-CREATE TABLE t1 (a INT DEFAULT 10);
-INSERT INTO t1 VALUES (1),(2),(3);
-EXECUTE IMMEDIATE 'SELECT * FROM t1 LIMIT ?' USING DEFAULT;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-DROP TABLE t1;
-# The output of this query in 'Note' is a syntactically incorrect query.
-# But as it's never logged, it's ok. It should be human readable only.
-EXECUTE IMMEDIATE 'EXPLAIN EXTENDED SELECT ?' USING DEFAULT;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select default AS `?`
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-EXECUTE IMMEDIATE 'EXPLAIN EXTENDED SELECT * FROM t1 WHERE ?+a<=>?+a' USING DEFAULT,DEFAULT;
-ERROR HY000: Default/ignore value is not supported for such parameter usage
-DROP TABLE t1;
-#
-# MDEV-11780 Crash with PREPARE + SP out parameter + literal
-#
-CREATE OR REPLACE PROCEDURE p1(OUT a INT)
-BEGIN
-SET a=10;
-END;
-$$
-PREPARE stmt FROM 'CALL p1(?)';
-EXECUTE stmt USING 10;
-ERROR 42000: OUT or INOUT argument 1 for routine test.p1 is not a variable or NEW pseudo-variable in BEFORE trigger
-EXECUTE stmt USING DEFAULT;
-ERROR 42000: OUT or INOUT argument 1 for routine test.p1 is not a variable or NEW pseudo-variable in BEFORE trigger
-EXECUTE stmt USING IGNORE;
-ERROR 42000: OUT or INOUT argument 1 for routine test.p1 is not a variable or NEW pseudo-variable in BEFORE trigger
-DEALLOCATE PREPARE stmt;
-EXECUTE IMMEDIATE 'CALL p1(?)' USING 10;
-ERROR 42000: OUT or INOUT argument 1 for routine test.p1 is not a variable or NEW pseudo-variable in BEFORE trigger
-EXECUTE IMMEDIATE 'CALL p1(?)' USING DEFAULT;
-ERROR 42000: OUT or INOUT argument 1 for routine test.p1 is not a variable or NEW pseudo-variable in BEFORE trigger
-EXECUTE IMMEDIATE 'CALL p1(?)' USING IGNORE;
-ERROR 42000: OUT or INOUT argument 1 for routine test.p1 is not a variable or NEW pseudo-variable in BEFORE trigger
-DROP PROCEDURE p1;
-#
-# MDEV-14434 Wrong result for CHARSET(CONCAT(?,const))
-#
-SET NAMES utf8;
-EXECUTE IMMEDIATE "SELECT CHARSET(CONCAT(5,_latin1'a'))";
-CHARSET(CONCAT(5,_latin1'a'))
-latin1
-EXECUTE IMMEDIATE "SELECT CHARSET(CONCAT(?,_latin1'a'))" USING 5;
-CHARSET(CONCAT(?,_latin1'a'))
-latin1
-EXECUTE IMMEDIATE "SELECT CHARSET(CONCAT(?,_latin1'a'))" USING 5.5;
-CHARSET(CONCAT(?,_latin1'a'))
-latin1
-EXECUTE IMMEDIATE "SELECT CHARSET(CONCAT(?,_latin1'a'))" USING 5.5e0;
-CHARSET(CONCAT(?,_latin1'a'))
-latin1
-EXECUTE IMMEDIATE "SELECT CHARSET(CONCAT(?,_latin1'a'))" USING TIME'10:20:30';
-CHARSET(CONCAT(?,_latin1'a'))
-latin1
-EXECUTE IMMEDIATE "SELECT CHARSET(CONCAT(?,_latin1'a'))" USING TIMESTAMP'2001-01-01 10:20:30';
-CHARSET(CONCAT(?,_latin1'a'))
-latin1
-EXECUTE IMMEDIATE "SELECT COERCIBILITY(?)" USING 5;
-COERCIBILITY(?)
-5
-EXECUTE IMMEDIATE "SELECT COERCIBILITY(?)" USING 5.5;
-COERCIBILITY(?)
-5
-EXECUTE IMMEDIATE "SELECT COERCIBILITY(?)" USING 5.5e0;
-COERCIBILITY(?)
-5
-EXECUTE IMMEDIATE "SELECT COERCIBILITY(?)" USING TIME'10:20:30';
-COERCIBILITY(?)
-5
-EXECUTE IMMEDIATE "SELECT COERCIBILITY(?)" USING TIMESTAMP'2001-01-01 10:20:30';
-COERCIBILITY(?)
-5
-#
-# MDEV-14435 Different UNSIGNED flag of out user variable for YEAR parameter for direct vs prepared CALL
-#
-CREATE PROCEDURE p1(OUT v INT UNSIGNED) SET v = 2010;
-CALL p1(@a);
-PREPARE stmt FROM 'CALL p1(?)';
-EXECUTE stmt USING @b;
-DEALLOCATE PREPARE stmt;
-CREATE TABLE t1 AS SELECT @a AS a, @b AS b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(20) unsigned DEFAULT NULL,
- `b` bigint(20) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1(OUT v YEAR) SET v = 2010;
-CALL p1(@a);
-PREPARE stmt FROM 'CALL p1(?)';
-EXECUTE stmt USING @b;
-DEALLOCATE PREPARE stmt;
-CREATE TABLE t1 AS SELECT @a AS a, @b AS b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(20) unsigned DEFAULT NULL,
- `b` bigint(20) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1(OUT v BIT(16)) SET v = 2010;
-CALL p1(@a);
-PREPARE stmt FROM 'CALL p1(?)';
-EXECUTE stmt USING @b;
-DEALLOCATE PREPARE stmt;
-CREATE TABLE t1 AS SELECT @a AS a, @b AS b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(20) unsigned DEFAULT NULL,
- `b` bigint(20) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# MDEV-14426 Assertion in Diagnostics_area::set_error_status when using a bad datetime with PS and SP
-#
-CREATE PROCEDURE p1(OUT a VARCHAR(20))
-BEGIN
-SET a=10;
-END;
-$$
-BEGIN NOT ATOMIC
-DECLARE a DATETIME;
-CALL p1(a);
-END;
-$$
-ERROR 22007: Incorrect datetime value: '10' for column 'a' at row 1
-BEGIN NOT ATOMIC
-DECLARE a DATETIME;
-EXECUTE IMMEDIATE 'CALL p1(?)' USING a;
-END;
-$$
-ERROR 22007: Incorrect datetime value: '10' for column 'a' at row 1
-BEGIN NOT ATOMIC
-DECLARE a DATETIME;
-PREPARE stmt FROM 'CALL p1(?)';
-EXECUTE stmt USING a;
-DEALLOCATE PREPARE stmt;
-END;
-$$
-ERROR 22007: Incorrect datetime value: '10' for column 'a' at row 1
-DROP PROCEDURE p1;
-#
-# MDEV-14454 Binary protocol returns wrong collation ID for SP OUT parameters
-#
-CREATE PROCEDURE p1(OUT v CHAR(32) CHARACTER SET utf8) SET v='aaa';
-PREPARE stmt1 FROM 'CALL p1(?)';
-EXECUTE stmt1 USING @a;
-CREATE TABLE t1 AS SELECT @a AS c1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` longtext CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# MDEV-14467 Item_param: replace {INT|DECIMAL|REAL|STRING|TIME}_VALUE with Type_handler
-#
-EXECUTE IMMEDIATE 'EXPLAIN EXTENDED SELECT 1 FROM DUAL LIMIT ?' USING 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 1 AS `1` limit 10
-EXECUTE IMMEDIATE 'EXPLAIN EXTENDED SELECT 1 FROM DUAL LIMIT ?' USING 10.1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 1 AS `1` limit 10
-EXECUTE IMMEDIATE 'EXPLAIN EXTENDED SELECT 1 FROM DUAL LIMIT ?' USING 10.1e0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 1 AS `1` limit 10
-EXECUTE IMMEDIATE 'EXPLAIN EXTENDED SELECT 1 FROM DUAL LIMIT ?' USING '10';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 1 AS `1` limit 10
-EXECUTE IMMEDIATE 'EXPLAIN EXTENDED SELECT 1 FROM DUAL LIMIT ?' USING TIME'10:10:10';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select 1 AS `1` limit 101010
-EXECUTE IMMEDIATE 'CREATE OR REPLACE TABLE t1 AS SELECT 1 AS a,? AS b' USING 1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL,
- `b` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE IMMEDIATE 'CREATE OR REPLACE TABLE t1 AS SELECT 10 AS a,? AS b' USING 10;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(2) NOT NULL,
- `b` int(2) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE IMMEDIATE 'CREATE OR REPLACE TABLE t1 AS SELECT 999999999 AS a,? AS b' USING 999999999;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(9) NOT NULL,
- `b` int(9) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXECUTE IMMEDIATE 'CREATE OR REPLACE TABLE t1 AS SELECT 2147483647 AS a,? AS b' USING 2147483647;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(10) NOT NULL,
- `b` bigint(10) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# MDEV-14603 signal 11 with short stacktrace
-#
-SET NAMES utf8;
-CREATE TABLE t1(i INT);
-CREATE PROCEDURE p1(tn VARCHAR(32))
-EXECUTE IMMEDIATE CONCAT('ANALYZE TABLE ',tn);
-CALL p1('t1');
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-DROP PROCEDURE p1;
-DROP TABLE t1;
-SET NAMES utf8;
-CREATE PROCEDURE p1()
-EXECUTE IMMEDIATE CONCAT('SELECT ',CONVERT(RAND() USING latin1));
-CALL p1();
-DROP PROCEDURE p1;
-SET NAMES utf8;
-CREATE PROCEDURE p1()
-BEGIN
-PREPARE stmt FROM CONCAT('SELECT ',CONVERT(RAND() USING latin1));
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-END;
-$$
-CALL p1();
-DROP PROCEDURE p1;
-SET NAMES utf8;
-CREATE PROCEDURE p1(a VARCHAR(10) CHARACTER SET utf8)
-EXECUTE IMMEDIATE 'SELECT ?' USING CONCAT(a, CONVERT(RAND() USING latin1));
-CALL p1('x');
-DROP PROCEDURE p1;
-SET NAMES utf8;
-CREATE PROCEDURE p1(a VARCHAR(10) CHARACTER SET utf8)
-BEGIN
-PREPARE stmt FROM 'SELECT ?';
-EXECUTE stmt USING CONCAT(a, CONVERT(RAND() USING latin1));
-DEALLOCATE PREPARE stmt;
-END;
-$$
-CALL p1('x');
-DROP PROCEDURE p1;
diff --git a/mysql-test/r/ps_10nestset.result b/mysql-test/r/ps_10nestset.result
deleted file mode 100644
index ff63485a5f9..00000000000
--- a/mysql-test/r/ps_10nestset.result
+++ /dev/null
@@ -1,76 +0,0 @@
-drop table if exists t1;
-create table t1 (
-id INTEGER AUTO_INCREMENT PRIMARY KEY,
-emp CHAR(10) NOT NULL,
-salary DECIMAL(6,2) NOT NULL,
-l INTEGER NOT NULL,
-r INTEGER NOT NULL);
-prepare st_ins from 'insert into t1 set emp = ?, salary = ?, l = ?, r = ?';
-set @arg_nam= 'Jerry';
-set @arg_sal= 1000;
-set @arg_l= 1;
-set @arg_r= 12;
-execute st_ins using @arg_nam, @arg_sal, @arg_l, @arg_r ;
-set @arg_nam= 'Bert';
-set @arg_sal= 900;
-set @arg_l= 2;
-set @arg_r= 3;
-execute st_ins using @arg_nam, @arg_sal, @arg_l, @arg_r ;
-set @arg_nam= 'Chuck';
-set @arg_sal= 900;
-set @arg_l= 4;
-set @arg_r= 11;
-execute st_ins using @arg_nam, @arg_sal, @arg_l, @arg_r ;
-set @arg_nam= 'Donna';
-set @arg_sal= 800;
-set @arg_l= 5;
-set @arg_r= 6;
-execute st_ins using @arg_nam, @arg_sal, @arg_l, @arg_r ;
-set @arg_nam= 'Eddie';
-set @arg_sal= 700;
-set @arg_l= 7;
-set @arg_r= 8;
-execute st_ins using @arg_nam, @arg_sal, @arg_l, @arg_r ;
-set @arg_nam= 'Fred';
-set @arg_sal= 600;
-set @arg_l= 9;
-set @arg_r= 10;
-execute st_ins using @arg_nam, @arg_sal, @arg_l, @arg_r ;
-select * from t1;
-id emp salary l r
-1 Jerry 1000.00 1 12
-2 Bert 900.00 2 3
-3 Chuck 900.00 4 11
-4 Donna 800.00 5 6
-5 Eddie 700.00 7 8
-6 Fred 600.00 9 10
-prepare st_raise_base from 'update t1 set salary = salary * ( 1 + ? ) where r - l = 1';
-prepare st_raise_mgr from 'update t1 set salary = salary + ? where r - l > 1';
-set @arg_percent= .10;
-set @arg_amount= 100;
-execute st_raise_base using @arg_percent;
-execute st_raise_mgr using @arg_amount;
-execute st_raise_base using @arg_percent;
-execute st_raise_mgr using @arg_amount;
-execute st_raise_base using @arg_percent;
-execute st_raise_mgr using @arg_amount;
-select * from t1;
-id emp salary l r
-1 Jerry 1300.00 1 12
-2 Bert 1197.90 2 3
-3 Chuck 1200.00 4 11
-4 Donna 1064.80 5 6
-5 Eddie 931.70 7 8
-6 Fred 798.60 9 10
-prepare st_round from 'update t1 set salary = salary + ? - ( salary MOD ? )';
-set @arg_round= 50;
-execute st_round using @arg_round, @arg_round;
-select * from t1;
-id emp salary l r
-1 Jerry 1350.00 1 12
-2 Bert 1200.00 2 3
-3 Chuck 1250.00 4 11
-4 Donna 1100.00 5 6
-5 Eddie 950.00 7 8
-6 Fred 800.00 9 10
-drop table t1;
diff --git a/mysql-test/r/ps_11bugs.result b/mysql-test/r/ps_11bugs.result
deleted file mode 100644
index 3bc7039583b..00000000000
--- a/mysql-test/r/ps_11bugs.result
+++ /dev/null
@@ -1,193 +0,0 @@
-drop table if exists t1, t2;
-CREATE TABLE t1(session_id char(9) NOT NULL);
-INSERT INTO t1 VALUES ("abc");
-SELECT * FROM t1;
-session_id
-abc
-prepare st_1180 from 'SELECT * FROM t1 WHERE ?="1111" and session_id = "abc"';
-set @arg1= 'abc';
-execute st_1180 using @arg1;
-session_id
-set @arg1= '1111';
-execute st_1180 using @arg1;
-session_id
-abc
-set @arg1= 'abc';
-execute st_1180 using @arg1;
-session_id
-drop table t1;
-create table t1 (
-c_01 char(6), c_02 integer, c_03 real, c_04 int(3), c_05 varchar(20),
-c_06 date, c_07 char(1), c_08 real, c_09 int(11), c_10 time,
-c_11 char(6), c_12 integer, c_13 real, c_14 int(3), c_15 varchar(20),
-c_16 date, c_17 char(1), c_18 real, c_19 int(11), c_20 text);
-prepare st_1644 from 'insert into t1 values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
-set @arg01= 'row_1';
-set @arg02= 1;
-set @arg03= 1.1;
-set @arg04= 111;
-set @arg05= 'row_one';
-set @arg06= '2004-10-12';
-set @arg07= '1';
-set @arg08= 1.1;
-set @arg09= '100100100';
-set @arg10= '12:34:56';
-set @arg11= 'row_1';
-set @arg12= 1;
-set @arg13= 1.1;
-set @arg14= 111;
-set @arg15= 'row_one';
-set @arg16= '2004-10-12';
-set @arg17= '1';
-set @arg18= 1.1;
-set @arg19= '100100100';
-set @arg20= '12:34:56';
-execute st_1644 using @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08, @arg09, @arg10,
-@arg11, @arg12, @arg13, @arg14, @arg15, @arg16, @arg17, @arg18, @arg19, @arg20;
-set @arg01= NULL;
-set @arg02= NULL;
-set @arg03= NULL;
-set @arg04= NULL;
-set @arg05= NULL;
-set @arg06= NULL;
-set @arg07= NULL;
-set @arg08= NULL;
-set @arg09= NULL;
-set @arg10= NULL;
-set @arg11= NULL;
-set @arg12= NULL;
-set @arg13= NULL;
-set @arg14= NULL;
-set @arg15= NULL;
-set @arg16= NULL;
-set @arg17= NULL;
-set @arg18= NULL;
-set @arg19= NULL;
-set @arg20= NULL;
-execute st_1644 using @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08, @arg09, @arg10,
-@arg11, @arg12, @arg13, @arg14, @arg15, @arg16, @arg17, @arg18, @arg19, @arg20;
-set @arg01= 'row_3';
-set @arg02= 3;
-set @arg03= 3.3;
-set @arg04= 333;
-set @arg05= 'row_three';
-set @arg06= '2004-10-12';
-set @arg07= '3';
-set @arg08= 3.3;
-set @arg09= '300300300';
-set @arg10= '12:34:56';
-set @arg11= 'row_3';
-set @arg12= 3;
-set @arg13= 3.3;
-set @arg14= 333;
-set @arg15= 'row_three';
-set @arg16= '2004-10-12';
-set @arg17= '3';
-set @arg18= 3.3;
-set @arg19= '300300300';
-set @arg20= '12:34:56';
-execute st_1644 using @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08, @arg09, @arg10,
-@arg11, @arg12, @arg13, @arg14, @arg15, @arg16, @arg17, @arg18, @arg19, @arg20;
-select * from t1;
-c_01 c_02 c_03 c_04 c_05 c_06 c_07 c_08 c_09 c_10 c_11 c_12 c_13 c_14 c_15 c_16 c_17 c_18 c_19 c_20
-row_1 1 1.1 111 row_one 2004-10-12 1 1.1 100100100 12:34:56 row_1 1 1.1 111 row_one 2004-10-12 1 1.1 100100100 12:34:56
-NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-row_3 3 3.3 333 row_three 2004-10-12 3 3.3 300300300 12:34:56 row_3 3 3.3 333 row_three 2004-10-12 3 3.3 300300300 12:34:56
-drop table t1;
-create table t1(
-cola varchar(50) not null,
-colb varchar(8) not null,
-colc varchar(12) not null,
-cold varchar(2) not null,
-primary key (cola, colb, cold));
-create table t2(
-cola varchar(50) not null,
-colb varchar(8) not null,
-colc varchar(2) not null,
-cold float,
-primary key (cold));
-insert into t1 values ('aaaa', 'yyyy', 'yyyy-dd-mm', 'R');
-insert into t2 values ('aaaa', 'yyyy', 'R', 203), ('bbbb', 'zzzz', 'C', 201);
-prepare st_1676 from 'select a.cola, a.colb, a.cold from t1 a, t2 b where a.cola = ? and a.colb = ? and a.cold = ? and b.cola = a.cola and b.colb = a.colb and b.colc = a.cold';
-set @arg0= "aaaa";
-set @arg1= "yyyy";
-set @arg2= "R";
-execute st_1676 using @arg0, @arg1, @arg2;
-cola colb cold
-aaaa yyyy R
-drop table t1, t2;
-create table t1 (a int primary key);
-insert into t1 values (1);
-explain select * from t1 where 3 in (select (1+1) union select 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-select * from t1 where 3 in (select (1+1) union select 1);
-a
-prepare st_18492 from 'select * from t1 where 3 in (select (1+1) union select 1)';
-execute st_18492;
-a
-drop table t1;
-create table t1 (a int, b varchar(4));
-create table t2 (a int, b varchar(4), primary key(a));
-prepare stmt1 from 'insert into t1 (a, b) values (?, ?)';
-prepare stmt2 from 'insert into t2 (a, b) values (?, ?)';
-set @intarg= 11;
-set @varchararg= '2222';
-execute stmt1 using @intarg, @varchararg;
-execute stmt2 using @intarg, @varchararg;
-set @intarg= 12;
-execute stmt1 using @intarg, @UNDEFINED;
-execute stmt2 using @intarg, @UNDEFINED;
-set @intarg= 13;
-execute stmt1 using @UNDEFINED, @varchararg;
-execute stmt2 using @UNDEFINED, @varchararg;
-ERROR 23000: Column 'a' cannot be null
-set @intarg= 14;
-set @nullarg= Null;
-execute stmt1 using @UNDEFINED, @nullarg;
-execute stmt2 using @nullarg, @varchararg;
-ERROR 23000: Column 'a' cannot be null
-select * from t1;
-a b
-11 2222
-12 NULL
-NULL 2222
-NULL NULL
-select * from t2;
-a b
-11 2222
-12 NULL
-drop table t1;
-drop table t2;
-CREATE TABLE t1 (a INT);
-PREPARE stmt FROM 'select 1 from `t1` where `a` = any (select (@@tmpdir))';
-EXECUTE stmt;
-1
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-CREATE TABLE t2 (a INT PRIMARY KEY);
-INSERT INTO t2 VALUES (400000), (400001);
-SET @@sort_buffer_size=400000;
-CREATE FUNCTION p1(i INT) RETURNS INT
-BEGIN
-SET @@sort_buffer_size= i;
-RETURN i + 1;
-END|
-SELECT * FROM t2 WHERE a = @@sort_buffer_size AND p1(@@sort_buffer_size + 1) > a - 1;
-a
-400000
-DROP TABLE t2;
-DROP FUNCTION p1;
-SELECT CONCAT(@@sort_buffer_size);
-CONCAT(@@sort_buffer_size)
-400001
-SELECT LEFT("12345", @@ft_boolean_syntax);
-LEFT("12345", @@ft_boolean_syntax)
-
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '+ -><()~*:""&|'
-SET @@sort_buffer_size=DEFAULT;
-End of 5.0 tests.
diff --git a/mysql-test/r/ps_1general.result b/mysql-test/r/ps_1general.result
deleted file mode 100644
index 035372a1359..00000000000
--- a/mysql-test/r/ps_1general.result
+++ /dev/null
@@ -1,793 +0,0 @@
-drop table if exists t5, t6, t7, t8;
-drop database if exists mysqltest ;
-drop database if exists client_test_db;
-drop database if exists testtets;
-drop table if exists t1Aa,t2Aa,v1Aa,v2Aa;
-drop view if exists t1Aa,t2Aa,v1Aa,v2Aa;
-test_sequence
------- basic tests ------
-drop table if exists t1, t9 ;
-create table t1
-(
-a int, b varchar(30),
-primary key(a)
-) engine = 'MYISAM' ;
-create table t9
-(
-c1 tinyint, c2 smallint, c3 mediumint, c4 int,
-c5 integer, c6 bigint, c7 float, c8 double,
-c9 double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
-c13 date, c14 datetime, c15 timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
-ON UPDATE CURRENT_TIMESTAMP, c16 time,
-c17 year, c18 tinyint, c19 bool, c20 char,
-c21 char(10), c22 varchar(30), c23 tinyblob, c24 tinytext,
-c25 blob, c26 text, c27 mediumblob, c28 mediumtext,
-c29 longblob, c30 longtext, c31 enum('one', 'two', 'three'),
-c32 set('monday', 'tuesday', 'wednesday'),
-primary key(c1)
-) engine = 'MYISAM' ;
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-PREPARE stmt FROM ' select * from t1 where a = ? ' ;
-SET @var= 2 ;
-EXECUTE stmt USING @var ;
-a b
-2 two
-select * from t1 where a = @var ;
-a b
-2 two
-DEALLOCATE PREPARE stmt ;
-prepare stmt1 from ' select 1 as my_col ' ;
-prepare stmt1 from ' select ? as my_col ' ;
-prepare ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-prepare stmt1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-prepare stmt1 from ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-prepare_garbage stmt1 from ' select 1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'prepare_garbage stmt1 from ' select 1 '' at line 1
-prepare stmt1 from_garbage ' select 1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'from_garbage ' select 1 '' at line 1
-prepare stmt1 from ' select_garbage 1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'select_garbage 1' at line 1
-prepare from ' select 1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'from ' select 1 '' at line 1
-prepare stmt1 ' select 1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' select 1 '' at line 1
-prepare ? from ' select ? as my_col ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? from ' select ? as my_col '' at line 1
-set @arg00='select 1 as my_col';
-prepare stmt1 from @arg00;
-set @arg00='';
-prepare stmt1 from @arg00;
-ERROR 42000: Query was empty
-set @arg00=NULL;
-prepare stmt1 from @arg01;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NULL' at line 1
-prepare stmt1 from ' select * from t1 where a <= 2 ' ;
-prepare stmt1 from ' select * from t1 where x <= 2 ' ;
-ERROR 42S22: Unknown column 'x' in 'where clause'
-prepare stmt1 from ' insert into t1(a,x) values(?,?) ' ;
-ERROR 42S22: Unknown column 'x' in 'field list'
-prepare stmt1 from ' insert into t1(x,a) values(?,?) ' ;
-ERROR 42S22: Unknown column 'x' in 'field list'
-drop table if exists not_exist ;
-prepare stmt1 from ' select * from not_exist where a <= 2 ' ;
-ERROR 42S02: Table 'test.not_exist' doesn't exist
-prepare stmt1 from ' insert into t1 values(? ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-prepare stmt1 from ' select a, b from t1
- where a=? and where ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'where' at line 2
-execute never_prepared ;
-ERROR HY000: Unknown prepared statement handler (never_prepared) given to EXECUTE
-prepare stmt1 from ' select * from t1 where a <= 2 ' ;
-prepare stmt1 from ' select * from not_exist where a <= 2 ' ;
-ERROR 42S02: Table 'test.not_exist' doesn't exist
-execute stmt1 ;
-ERROR HY000: Unknown prepared statement handler (stmt1) given to EXECUTE
-create table t5
-(
-a int primary key,
-b char(30),
-c int
-);
-insert into t5( a, b, c) values( 1, 'original table', 1);
-prepare stmt2 from ' select * from t5 ' ;
-execute stmt2 ;
-a b c
-1 original table 1
-drop table t5 ;
-execute stmt2 ;
-ERROR 42S02: Table 'test.t5' doesn't exist
-create table t5
-(
-a int primary key,
-b char(30),
-c int
-);
-insert into t5( a, b, c) values( 9, 'recreated table', 9);
-execute stmt2 ;
-a b c
-9 recreated table 9
-drop table t5 ;
-create table t5
-(
-a int primary key,
-c int,
-b char(30)
-);
-insert into t5( a, b, c) values( 9, 'recreated table', 9);
-execute stmt2 ;
-a c b
-9 9 recreated table
-drop table t5 ;
-create table t5
-(
-a int primary key,
-b char(30),
-c int,
-d timestamp default '2008-02-23 09:23:45'
-);
-insert into t5( a, b, c) values( 9, 'recreated table', 9);
-execute stmt2 ;
-a b c d
-9 recreated table 9 2008-02-23 09:23:45
-drop table t5 ;
-create table t5
-(
-a int primary key,
-d timestamp default '2008-02-23 09:23:45',
-b char(30),
-c int
-);
-insert into t5( a, b, c) values( 9, 'recreated table', 9);
-execute stmt2 ;
-a d b c
-9 2008-02-23 09:23:45 recreated table 9
-drop table t5 ;
-create table t5
-(
-a timestamp default '2004-02-29 18:01:59',
-b char(30),
-c int
-);
-insert into t5( b, c) values( 'recreated table', 9);
-execute stmt2 ;
-a b c
-2004-02-29 18:01:59 recreated table 9
-drop table t5 ;
-create table t5
-(
-f1 int primary key,
-f2 char(30),
-f3 int
-);
-insert into t5( f1, f2, f3) values( 9, 'recreated table', 9);
-execute stmt2 ;
-f1 f2 f3
-9 recreated table 9
-drop table t5 ;
-prepare stmt1 from ' select * from t1 where a <= 2 ' ;
-execute stmt1 ;
-a b
-1 one
-2 two
-set @arg00=1 ;
-set @arg01='two' ;
-prepare stmt1 from ' select * from t1 where a <= ? ' ;
-execute stmt1 using @arg00;
-a b
-1 one
-execute stmt1 ;
-ERROR HY000: Incorrect arguments to EXECUTE
-execute stmt1 using @arg00, @arg01;
-ERROR HY000: Incorrect arguments to EXECUTE
-execute stmt1 using @not_set;
-a b
-deallocate prepare never_prepared ;
-ERROR HY000: Unknown prepared statement handler (never_prepared) given to DEALLOCATE PREPARE
-prepare stmt1 from ' select * from t1 where a <= 2 ' ;
-prepare stmt1 from ' select * from not_exist where a <= 2 ' ;
-ERROR 42S02: Table 'test.not_exist' doesn't exist
-deallocate prepare stmt1;
-ERROR HY000: Unknown prepared statement handler (stmt1) given to DEALLOCATE PREPARE
-create table t5
-(
-a int primary key,
-b char(10)
-);
-prepare stmt2 from ' select a,b from t5 where a <= 2 ' ;
-drop table t5 ;
-deallocate prepare stmt2;
-prepare stmt1 from ' select a from t1 where a <= 2 ' ;
-prepare stmt2 from ' select b from t1 where a <= 2 ' ;
-execute stmt2 ;
-b
-one
-two
-execute stmt1 ;
-a
-1
-2
-prepare stmt1 from ' select a from t1 where a <= 2 ' ;
-prepare stmt2 from ' select a from t1 where a <= 2 ' ;
-execute stmt2 ;
-a
-1
-2
-execute stmt1 ;
-a
-1
-2
-deallocate prepare stmt1 ;
-execute stmt2 ;
-a
-1
-2
-test_sequence
------- show and misc tests ------
-drop table if exists t2;
-create table t2
-(
-a int primary key, b char(10)
-);
-prepare stmt4 from ' show databases ';
-execute stmt4;
-Database
-information_schema
-mtr
-mysql
-performance_schema
-test
-prepare stmt4 from ' show tables from test like ''t2%'' ';
-execute stmt4;
-Tables_in_test (t2%)
-t2
-prepare stmt4 from ' show columns from t2 where field in (select ?) ';
-SET @arg00="a";
-execute stmt4 using @arg00;
-Field Type Null Key Default Extra
-a int(11) NO PRI NULL
-SET @arg00="b";
-execute stmt4 using @arg00;
-Field Type Null Key Default Extra
-b char(10) YES NULL
-SET @arg00=1;
-execute stmt4 using @arg00;
-Field Type Null Key Default Extra
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-prepare stmt4 from ' show columns from t2 from test like ''a%'' ';
-execute stmt4;
-Field Type Null Key Default Extra
-a int(11) NO PRI NULL
-create index t2_idx on t2(b);
-prepare stmt4 from ' show index from t2 from test ';
-execute stmt4;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t2 0 PRIMARY 1 a A 0 NULL NULL BTREE
-t2 1 t2_idx 1 b A NULL NULL NULL YES BTREE
-prepare stmt4 from ' show table status from test like ''t2%'' ';
-execute stmt4;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t2 MyISAM 10 Fixed 0 0 0 # 1024 0 NULL # # # latin1_swedish_ci NULL # N
-prepare stmt4 from ' show table status from test like ''t9%'' ';
-execute stmt4;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t9 MyISAM 10 Dynamic 2 212 424 # 2048 0 NULL # # # latin1_swedish_ci NULL # N
-prepare stmt4 from ' show status like ''Threads_running'' ';
-execute stmt4;
-Variable_name Value
-Threads_running #
-prepare stmt4 from ' show variables like ''sql_mode'' ';
-execute stmt4;
-Variable_name Value
-sql_mode STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-prepare stmt4 from ' show engine myisam logs ';
-execute stmt4;
-Type Name Status
-prepare stmt4 from ' show grants for user ';
-prepare stmt4 from ' show create table t2 ';
-prepare stmt4 from ' show master status ';
-prepare stmt4 from ' show master logs ';
-prepare stmt4 from ' show slave status ';
-prepare stmt4 from ' show warnings limit 20 ';
-prepare stmt4 from ' show errors limit 20 ';
-prepare stmt4 from ' show storage engines ';
-execute stmt4;
-drop table if exists t5;
-prepare stmt1 from ' drop table if exists t5 ' ;
-execute stmt1 ;
-Warnings:
-Note 1051 Unknown table 'test.t5'
-prepare stmt1 from ' drop table t5 ' ;
-execute stmt1 ;
-ERROR 42S02: Unknown table 'test.t5'
-prepare stmt1 from ' SELECT @@version ' ;
-execute stmt1 ;
-@@version
-<version>
-prepare stmt_do from ' do @var:= (1 in (select a from t1)) ' ;
-prepare stmt_set from ' set @var= (1 in (select a from t1)) ' ;
-execute stmt_do ;
-content of @var is:
-1
-execute stmt_set ;
-content of @var is:
-1
-execute stmt_do ;
-content of @var is:
-1
-execute stmt_set ;
-content of @var is:
-1
-execute stmt_do ;
-content of @var is:
-1
-execute stmt_set ;
-content of @var is:
-1
-drop table if exists t5 ;
-create table t5 (a int) ;
-prepare stmt_do from ' do @var:= (1 in (select a from t5)) ' ;
-prepare stmt_set from ' set @var= (1 in (select a from t5)) ' ;
-execute stmt_do ;
-content of @var is:
-0
-execute stmt_set ;
-content of @var is:
-0
-execute stmt_do ;
-content of @var is:
-0
-execute stmt_set ;
-content of @var is:
-0
-execute stmt_do ;
-content of @var is:
-0
-execute stmt_set ;
-content of @var is:
-0
-drop table t5 ;
-deallocate prepare stmt_do ;
-deallocate prepare stmt_set ;
-prepare stmt1 from ' prepare stmt2 from '' select 1 '' ' ;
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-prepare stmt1 from ' execute stmt2 ' ;
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-prepare stmt1 from ' deallocate prepare never_prepared ' ;
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-prepare stmt1 from 'alter view v1 as select 2';
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-prepare stmt4 from ' use test ' ;
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-prepare stmt3 from ' create database mysqltest ';
-create database mysqltest ;
-prepare stmt3 from ' drop database mysqltest ';
-drop database mysqltest ;
-prepare stmt3 from ' describe t2 ';
-execute stmt3;
-Field Type Null Key Default Extra
-a int(11) NO PRI NULL
-b char(10) YES MUL NULL
-drop table t2 ;
-execute stmt3;
-ERROR 42S02: Table 'test.t2' doesn't exist
-prepare stmt3 from ' lock tables t1 read ' ;
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-prepare stmt3 from ' unlock tables ' ;
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-prepare stmt1 from ' load data infile ''<MYSQLTEST_VARDIR>/tmp/data.txt''
- into table t1 fields terminated by ''\t'' ';
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-prepare stmt1 from ' select * into outfile ''<MYSQLTEST_VARDIR>/tmp/data.txt'' from t1 ';
-execute stmt1 ;
-prepare stmt1 from ' optimize table t1 ' ;
-prepare stmt1 from ' analyze table t1 ' ;
-prepare stmt1 from ' checksum table t1 ' ;
-prepare stmt1 from ' repair table t1 ' ;
-prepare stmt1 from ' handler t1 open ';
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-prepare stmt3 from ' commit ' ;
-prepare stmt3 from ' rollback ' ;
-prepare stmt4 from ' SET sql_mode=ansi ';
-execute stmt4;
-select 'a' || 'b' ;
-'a' || 'b'
-ab
-prepare stmt4 from ' SET sql_mode="" ';
-execute stmt4;
-select '2' || '3' ;
-'2' || '3'
-1
-prepare stmt5 from ' select ''2'' || ''3'' ' ;
-execute stmt5;
-'2' || '3'
-1
-SET sql_mode=ansi;
-execute stmt5;
-'2' || '3'
-1
-SET sql_mode="";
-prepare stmt1 from ' flush local privileges ' ;
-prepare stmt1 from ' reset query cache ' ;
-prepare stmt1 from ' KILL 0 ';
-prepare stmt1 from ' explain select a from t1 order by b ';
-execute stmt1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def id 8 3 1 Y 32928 0 63
-def select_type 253 19 6 N 1 39 8
-def table 253 64 2 Y 0 39 8
-def type 253 10 3 Y 0 39 8
-def possible_keys 253 4_OR_8_K 0 Y 0 39 8
-def key 253 64 0 Y 0 39 8
-def key_len 253 4_OR_8_K 0 Y 0 39 8
-def ref 253 2048 0 Y 0 39 8
-def rows 8 10 1 Y 32928 0 63
-def Extra 253 255 14 N 1 39 8
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using filesort
-SET @arg00=1 ;
-prepare stmt1 from ' explain select a from t1 where a > ? order by b ';
-execute stmt1 using @arg00;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def id 8 3 1 Y 32928 0 63
-def select_type 253 19 6 N 1 39 8
-def table 253 64 2 Y 0 39 8
-def type 253 10 5 Y 0 39 8
-def possible_keys 253 4_OR_8_K 7 Y 0 39 8
-def key 253 64 7 Y 0 39 8
-def key_len 253 4_OR_8_K 1 Y 0 39 8
-def ref 253 2048 0 Y 0 39 8
-def rows 8 10 1 Y 32928 0 63
-def Extra 253 255 37 N 1 39 8
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 Using index condition; Using filesort
-drop table if exists t2;
-create table t2 (id smallint, name varchar(20)) ;
-prepare stmt1 from ' insert into t2 values(?, ?) ' ;
-set @id= 9876 ;
-set @arg00= 'MySQL - Open Source Database' ;
-set @arg01= "'" ;
-set @arg02= '"' ;
-set @arg03= "my'sql'" ;
-set @arg04= 'my"sql"' ;
-insert into t2 values ( @id , @arg00 );
-Warnings:
-Warning 1265 Data truncated for column 'name' at row 1
-insert into t2 values ( @id , @arg01 );
-insert into t2 values ( @id , @arg02 );
-insert into t2 values ( @id , @arg03 );
-insert into t2 values ( @id , @arg04 );
-prepare stmt1 from ' select * from t2 where id= ? and name= ? ';
-execute stmt1 using @id, @arg00 ;
-id name
-execute stmt1 using @id, @arg01 ;
-id name
-9876 '
-execute stmt1 using @id, @arg02 ;
-id name
-9876 "
-execute stmt1 using @id, @arg03 ;
-id name
-9876 my'sql'
-execute stmt1 using @id, @arg04 ;
-id name
-9876 my"sql"
-drop table t2;
-test_sequence
------- create/drop/alter/rename tests ------
-drop table if exists t2, t3;
-prepare stmt_drop from ' drop table if exists t2 ' ;
-execute stmt_drop;
-prepare stmt_create from ' create table t2 (
- a int primary key, b char(10)) ';
-execute stmt_create;
-prepare stmt3 from ' create table t3 like t2 ';
-execute stmt3;
-drop table t3;
-set @arg00=1;
-prepare stmt3 from ' create table t3 (m int) select ? as m ' ;
-execute stmt3 using @arg00;
-select m from t3;
-m
-1
-drop table t3;
-prepare stmt3 from ' create index t2_idx on t2(b) ';
-prepare stmt3 from ' drop index t2_idx on t2 ' ;
-prepare stmt3 from ' alter table t2 drop primary key ';
-drop table if exists new_t2;
-prepare stmt3 from ' rename table t2 to new_t2 ';
-execute stmt3;
-execute stmt3;
-ERROR 42S01: Table 'new_t2' already exists
-rename table new_t2 to t2;
-drop table t2;
-prepare stmt1 from ' rename table t5 to t6, t7 to t8 ' ;
-create table t5 (a int) ;
-execute stmt1 ;
-ERROR 42S02: Table 'test.t7' doesn't exist
-create table t7 (a int) ;
-execute stmt1 ;
-execute stmt1 ;
-ERROR 42S01: Table 't6' already exists
-rename table t6 to t5, t8 to t7 ;
-execute stmt1 ;
-drop table t6, t8 ;
-test_sequence
------- big statement tests ------
-(select 'ABC' as my_const_col from t1 where
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 ) ;
-my_const_col
-ABC
-ABC
-ABC
-ABC
-prepare stmt1 from "select 'ABC' as my_const_col from t1 where
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 AND
-1 = 1 " ;
-execute stmt1 ;
-my_const_col
-ABC
-ABC
-ABC
-ABC
-execute stmt1 ;
-my_const_col
-ABC
-ABC
-ABC
-ABC
-(select 'ABC' as my_const_col FROM t1 WHERE
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' ) ;
-my_const_col
-ABC
-ABC
-ABC
-ABC
-prepare stmt1 from "select 'ABC' as my_const_col FROM t1 WHERE
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' AND
-'1234567890123456789012345678901234567890123456789012345678901234567890'
-= '1234567890123456789012345678901234567890123456789012345678901234567890' " ;
-execute stmt1 ;
-my_const_col
-ABC
-ABC
-ABC
-ABC
-execute stmt1 ;
-my_const_col
-ABC
-ABC
-ABC
-ABC
-select 'ABC' as my_const_col FROM t1 WHERE
-@arg00=@arg00 and @arg00=@arg00 and @arg00=@arg00 and @arg00=@arg00 and
-@arg00=@arg00 and @arg00=@arg00 and @arg00=@arg00 and @arg00=@arg00 and
-@arg00=@arg00 and @arg00=@arg00 and @arg00=@arg00 and @arg00=@arg00 and
-@arg00=@arg00 and @arg00=@arg00 and @arg00=@arg00 and @arg00=@arg00 and
-@arg00=@arg00 and @arg00=@arg00 and @arg00=@arg00 and @arg00=@arg00 and
-@arg00=@arg00 and @arg00=@arg00 and @arg00=@arg00 and @arg00=@arg00 and
-@arg00=@arg00 ;
-my_const_col
-ABC
-ABC
-ABC
-ABC
-prepare stmt1 from ' select ''ABC'' as my_const_col FROM t1 WHERE
- ? = ? and ? = ? and ? = ? and ? = ? and
- ? = ? and ? = ? and ? = ? and ? = ? and
- ? = ? and ? = ? and ? = ? and ? = ? and
- ? = ? and ? = ? and ? = ? and ? = ? and
- ? = ? and ? = ? and ? = ? and ? = ? and
- ? = ? and ? = ? and ? = ? and ? = ? and
- ? = ? ' ;
-execute stmt1 using
-@arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00;
-my_const_col
-ABC
-ABC
-ABC
-ABC
-execute stmt1 using
-@arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07,
-@arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16, @arg17,
-@arg20, @arg21, @arg22, @arg23, @arg24, @arg25, @arg26, @arg27,
-@arg30, @arg31, @arg32, @arg33, @arg34, @arg35, @arg36, @arg37,
-@arg40, @arg41, @arg42, @arg43, @arg44, @arg45, @arg46, @arg47,
-@arg50, @arg51, @arg52, @arg53, @arg54, @arg55, @arg56, @arg57,
-@arg60, @arg61 ;
-my_const_col
-ABC
-ABC
-ABC
-ABC
-drop table if exists t5 ;
-set @col_num= 1000 ;
-select @string as "" ;
-
-create table t5( c999 int,c998 int,c997 int,c996 int,c995 int,c994 int,c993 int,c992 int,c991 int,c990 int,c989 int,c988 int,c987 int,c986 int,c985 int,c984 int,c983 int,c982 int,c981 int,c980 int,c979 int,c978 int,c977 int,c976 int,c975 int,c974 int,c973 int,c972 int,c971 int,c970 int,c969 int,c968 int,c967 int,c966 int,c965 int,c964 int,c963 int,c962 int,c961 int,c960 int,c959 int,c958 int,c957 int,c956 int,c955 int,c954 int,c953 int,c952 int,c951 int,c950 int,c949 int,c948 int,c947 int,c946 int,c945 int,c944 int,c943 int,c942 int,c941 int,c940 int,c939 int,c938 int,c937 int,c936 int,c935 int,c934 int,c933 int,c932 int,c931 int,c930 int,c929 int,c928 int,c927 int,c926 int,c925 int,c924 int,c923 int,c922 int,c921 int,c920 int,c919 int,c918 int,c917 int,c916 int,c915 int,c914 int,c913 int,c912 int,c911 int,c910 int,c909 int,c908 int,c907 int,c906 int,c905 int,c904 int,c903 int,c902 int,c901 int,c900 int,c899 int,c898 int,c897 int,c896 int,c895 int,c894 int,c893 int,c892 int,c891 int,c890 int,c889 int,c888 int,c887 int,c886 int,c885 int,c884 int,c883 int,c882 int,c881 int,c880 int,c879 int,c878 int,c877 int,c876 int,c875 int,c874 int,c873 int,c872 int,c871 int,c870 int,c869 int,c868 int,c867 int,c866 int,c865 int,c864 int,c863 int,c862 int,c861 int,c860 int,c859 int,c858 int,c857 int,c856 int,c855 int,c854 int,c853 int,c852 int,c851 int,c850 int,c849 int,c848 int,c847 int,c846 int,c845 int,c844 int,c843 int,c842 int,c841 int,c840 int,c839 int,c838 int,c837 int,c836 int,c835 int,c834 int,c833 int,c832 int,c831 int,c830 int,c829 int,c828 int,c827 int,c826 int,c825 int,c824 int,c823 int,c822 int,c821 int,c820 int,c819 int,c818 int,c817 int,c816 int,c815 int,c814 int,c813 int,c812 int,c811 int,c810 int,c809 int,c808 int,c807 int,c806 int,c805 int,c804 int,c803 int,c802 int,c801 int,c800 int,c799 int,c798 int,c797 int,c796 int,c795 int,c794 int,c793 int,c792 int,c791 int,c790 int,c789 int,c788 int,c787 int,c786 int,c785 int,c784 int,c783 int,c782 int,c781 int,c780 int,c779 int,c778 int,c777 int,c776 int,c775 int,c774 int,c773 int,c772 int,c771 int,c770 int,c769 int,c768 int,c767 int,c766 int,c765 int,c764 int,c763 int,c762 int,c761 int,c760 int,c759 int,c758 int,c757 int,c756 int,c755 int,c754 int,c753 int,c752 int,c751 int,c750 int,c749 int,c748 int,c747 int,c746 int,c745 int,c744 int,c743 int,c742 int,c741 int,c740 int,c739 int,c738 int,c737 int,c736 int,c735 int,c734 int,c733 int,c732 int,c731 int,c730 int,c729 int,c728 int,c727 int,c726 int,c725 int,c724 int,c723 int,c722 int,c721 int,c720 int,c719 int,c718 int,c717 int,c716 int,c715 int,c714 int,c713 int,c712 int,c711 int,c710 int,c709 int,c708 int,c707 int,c706 int,c705 int,c704 int,c703 int,c702 int,c701 int,c700 int,c699 int,c698 int,c697 int,c696 int,c695 int,c694 int,c693 int,c692 int,c691 int,c690 int,c689 int,c688 int,c687 int,c686 int,c685 int,c684 int,c683 int,c682 int,c681 int,c680 int,c679 int,c678 int,c677 int,c676 int,c675 int,c674 int,c673 int,c672 int,c671 int,c670 int,c669 int,c668 int,c667 int,c666 int,c665 int,c664 int,c663 int,c662 int,c661 int,c660 int,c659 int,c658 int,c657 int,c656 int,c655 int,c654 int,c653 int,c652 int,c651 int,c650 int,c649 int,c648 int,c647 int,c646 int,c645 int,c644 int,c643 int,c642 int,c641 int,c640 int,c639 int,c638 int,c637 int,c636 int,c635 int,c634 int,c633 int,c632 int,c631 int,c630 int,c629 int,c628 int,c627 int,c626 int,c625 int,c624 int,c623 int,c622 int,c621 int,c620 int,c619 int,c618 int,c617 int,c616 int,c615 int,c614 int,c613 int,c612 int,c611 int,c610 int,c609 int,c608 int,c607 int,c606 int,c605 int,c604 int,c603 int,c602 int,c601 int,c600 int,c599 int,c598 int,c597 int,c596 int,c595 int,c594 int,c593 int,c592 int,c591 int,c590 int,c589 int,c588 int,c587 int,c586 int,c585 int,c584 int,c583 int,c582 int,c581 int,c580 int,c579 int,c578 int,c577 int,c576 int,c575 int,c574 int,c573 int,c572 int,c571 int,c570 int,c569 int,c568 int,c567 int,c566 int,c565 int,c564 int,c563 int,c562 int,c561 int,c560 int,c559 int,c558 int,c557 int,c556 int,c555 int,c554 int,c553 int,c552 int,c551 int,c550 int,c549 int,c548 int,c547 int,c546 int,c545 int,c544 int,c543 int,c542 int,c541 int,c540 int,c539 int,c538 int,c537 int,c536 int,c535 int,c534 int,c533 int,c532 int,c531 int,c530 int,c529 int,c528 int,c527 int,c526 int,c525 int,c524 int,c523 int,c522 int,c521 int,c520 int,c519 int,c518 int,c517 int,c516 int,c515 int,c514 int,c513 int,c512 int,c511 int,c510 int,c509 int,c508 int,c507 int,c506 int,c505 int,c504 int,c503 int,c502 int,c501 int,c500 int,c499 int,c498 int,c497 int,c496 int,c495 int,c494 int,c493 int,c492 int,c491 int,c490 int,c489 int,c488 int,c487 int,c486 int,c485 int,c484 int,c483 int,c482 int,c481 int,c480 int,c479 int,c478 int,c477 int,c476 int,c475 int,c474 int,c473 int,c472 int,c471 int,c470 int,c469 int,c468 int,c467 int,c466 int,c465 int,c464 int,c463 int,c462 int,c461 int,c460 int,c459 int,c458 int,c457 int,c456 int,c455 int,c454 int,c453 int,c452 int,c451 int,c450 int,c449 int,c448 int,c447 int,c446 int,c445 int,c444 int,c443 int,c442 int,c441 int,c440 int,c439 int,c438 int,c437 int,c436 int,c435 int,c434 int,c433 int,c432 int,c431 int,c430 int,c429 int,c428 int,c427 int,c426 int,c425 int,c424 int,c423 int,c422 int,c421 int,c420 int,c419 int,c418 int,c417 int,c416 int,c415 int,c414 int,c413 int,c412 int,c411 int,c410 int,c409 int,c408 int,c407 int,c406 int,c405 int,c404 int,c403 int,c402 int,c401 int,c400 int,c399 int,c398 int,c397 int,c396 int,c395 int,c394 int,c393 int,c392 int,c391 int,c390 int,c389 int,c388 int,c387 int,c386 int,c385 int,c384 int,c383 int,c382 int,c381 int,c380 int,c379 int,c378 int,c377 int,c376 int,c375 int,c374 int,c373 int,c372 int,c371 int,c370 int,c369 int,c368 int,c367 int,c366 int,c365 int,c364 int,c363 int,c362 int,c361 int,c360 int,c359 int,c358 int,c357 int,c356 int,c355 int,c354 int,c353 int,c352 int,c351 int,c350 int,c349 int,c348 int,c347 int,c346 int,c345 int,c344 int,c343 int,c342 int,c341 int,c340 int,c339 int,c338 int,c337 int,c336 int,c335 int,c334 int,c333 int,c332 int,c331 int,c330 int,c329 int,c328 int,c327 int,c326 int,c325 int,c324 int,c323 int,c322 int,c321 int,c320 int,c319 int,c318 int,c317 int,c316 int,c315 int,c314 int,c313 int,c312 int,c311 int,c310 int,c309 int,c308 int,c307 int,c306 int,c305 int,c304 int,c303 int,c302 int,c301 int,c300 int,c299 int,c298 int,c297 int,c296 int,c295 int,c294 int,c293 int,c292 int,c291 int,c290 int,c289 int,c288 int,c287 int,c286 int,c285 int,c284 int,c283 int,c282 int,c281 int,c280 int,c279 int,c278 int,c277 int,c276 int,c275 int,c274 int,c273 int,c272 int,c271 int,c270 int,c269 int,c268 int,c267 int,c266 int,c265 int,c264 int,c263 int,c262 int,c261 int,c260 int,c259 int,c258 int,c257 int,c256 int,c255 int,c254 int,c253 int,c252 int,c251 int,c250 int,c249 int,c248 int,c247 int,c246 int,c245 int,c244 int,c243 int,c242 int,c241 int,c240 int,c239 int,c238 int,c237 int,c236 int,c235 int,c234 int,c233 int,c232 int,c231 int,c230 int,c229 int,c228 int,c227 int,c226 int,c225 int,c224 int,c223 int,c222 int,c221 int,c220 int,c219 int,c218 int,c217 int,c216 int,c215 int,c214 int,c213 int,c212 int,c211 int,c210 int,c209 int,c208 int,c207 int,c206 int,c205 int,c204 int,c203 int,c202 int,c201 int,c200 int,c199 int,c198 int,c197 int,c196 int,c195 int,c194 int,c193 int,c192 int,c191 int,c190 int,c189 int,c188 int,c187 int,c186 int,c185 int,c184 int,c183 int,c182 int,c181 int,c180 int,c179 int,c178 int,c177 int,c176 int,c175 int,c174 int,c173 int,c172 int,c171 int,c170 int,c169 int,c168 int,c167 int,c166 int,c165 int,c164 int,c163 int,c162 int,c161 int,c160 int,c159 int,c158 int,c157 int,c156 int,c155 int,c154 int,c153 int,c152 int,c151 int,c150 int,c149 int,c148 int,c147 int,c146 int,c145 int,c144 int,c143 int,c142 int,c141 int,c140 int,c139 int,c138 int,c137 int,c136 int,c135 int,c134 int,c133 int,c132 int,c131 int,c130 int,c129 int,c128 int,c127 int,c126 int,c125 int,c124 int,c123 int,c122 int,c121 int,c120 int,c119 int,c118 int,c117 int,c116 int,c115 int,c114 int,c113 int,c112 int,c111 int,c110 int,c109 int,c108 int,c107 int,c106 int,c105 int,c104 int,c103 int,c102 int,c101 int,c100 int,c99 int,c98 int,c97 int,c96 int,c95 int,c94 int,c93 int,c92 int,c91 int,c90 int,c89 int,c88 int,c87 int,c86 int,c85 int,c84 int,c83 int,c82 int,c81 int,c80 int,c79 int,c78 int,c77 int,c76 int,c75 int,c74 int,c73 int,c72 int,c71 int,c70 int,c69 int,c68 int,c67 int,c66 int,c65 int,c64 int,c63 int,c62 int,c61 int,c60 int,c59 int,c58 int,c57 int,c56 int,c55 int,c54 int,c53 int,c52 int,c51 int,c50 int,c49 int,c48 int,c47 int,c46 int,c45 int,c44 int,c43 int,c42 int,c41 int,c40 int,c39 int,c38 int,c37 int,c36 int,c35 int,c34 int,c33 int,c32 int,c31 int,c30 int,c29 int,c28 int,c27 int,c26 int,c25 int,c24 int,c23 int,c22 int,c21 int,c20 int,c19 int,c18 int,c17 int,c16 int,c15 int,c14 int,c13 int,c12 int,c11 int,c10 int,c9 int,c8 int,c7 int,c6 int,c5 int,c4 int,c3 int,c2 int,c1 int,c0 int)
-prepare stmt1 from @string ;
-execute stmt1 ;
-select @string as "" ;
-
-insert into t5 values(1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 )
-prepare stmt1 from @string ;
-execute stmt1 ;
-prepare stmt1 from ' select * from t5 ' ;
-execute stmt1 ;
-drop table t1, t5, t9;
-#
-# testcase for bug#11765413 - Crash with dependent subquery and
-# prepared statement
-create table t1 (c1 int);
-insert into t1 values (1);
-prepare stmt1 from "select 1 from t1 where 1=(select 1 from t1 having c1)";
-execute stmt1;
-1
-1
-drop prepare stmt1;
-drop table t1;
-select ?+1;
-Got one of the listed errors
diff --git a/mysql-test/r/ps_2myisam.result b/mysql-test/r/ps_2myisam.result
deleted file mode 100644
index 3906875da92..00000000000
--- a/mysql-test/r/ps_2myisam.result
+++ /dev/null
@@ -1,3492 +0,0 @@
-use test;
-drop table if exists t1, t9 ;
-create table t1
-(
-a int, b varchar(30),
-primary key(a)
-) engine = 'MYISAM' ;
-create table t9
-(
-c1 tinyint, c2 smallint, c3 mediumint, c4 int,
-c5 integer, c6 bigint, c7 float, c8 double,
-c9 double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
-c13 date, c14 datetime, c15 timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
-ON UPDATE CURRENT_TIMESTAMP, c16 time,
-c17 year, c18 tinyint, c19 bool, c20 char,
-c21 char(10), c22 varchar(30), c23 tinyblob, c24 tinytext,
-c25 blob, c26 text, c27 mediumblob, c28 mediumtext,
-c29 longblob, c30 longtext, c31 enum('one', 'two', 'three'),
-c32 set('monday', 'tuesday', 'wednesday'),
-primary key(c1)
-) engine = 'MYISAM' ;
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-test_sequence
------- simple select tests ------
-prepare stmt1 from ' select * from t9 order by c1 ' ;
-execute stmt1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t9 t9 c1 c1 1 4 1 N 53251 0 63
-def test t9 t9 c2 c2 2 6 1 Y 32768 0 63
-def test t9 t9 c3 c3 9 9 1 Y 32768 0 63
-def test t9 t9 c4 c4 3 11 1 Y 32768 0 63
-def test t9 t9 c5 c5 3 11 1 Y 32768 0 63
-def test t9 t9 c6 c6 8 20 1 Y 32768 0 63
-def test t9 t9 c7 c7 4 12 1 Y 32768 31 63
-def test t9 t9 c8 c8 5 22 1 Y 32768 31 63
-def test t9 t9 c9 c9 5 22 1 Y 32768 31 63
-def test t9 t9 c10 c10 5 22 1 Y 32768 31 63
-def test t9 t9 c11 c11 246 9 6 Y 32768 4 63
-def test t9 t9 c12 c12 246 10 6 Y 32768 4 63
-def test t9 t9 c13 c13 10 10 10 Y 128 0 63
-def test t9 t9 c14 c14 12 19 19 Y 128 0 63
-def test t9 t9 c15 c15 7 19 19 N 9377 0 63
-def test t9 t9 c16 c16 11 10 8 Y 128 0 63
-def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
-def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
-def test t9 t9 c19 c19 1 1 1 Y 32768 0 63
-def test t9 t9 c20 c20 254 1 1 Y 0 0 8
-def test t9 t9 c21 c21 254 10 10 Y 0 0 8
-def test t9 t9 c22 c22 253 30 30 Y 0 0 8
-def test t9 t9 c23 c23 252 255 8 Y 144 0 63
-def test t9 t9 c24 c24 252 255 8 Y 16 0 8
-def test t9 t9 c25 c25 252 65535 4 Y 144 0 63
-def test t9 t9 c26 c26 252 65535 4 Y 16 0 8
-def test t9 t9 c27 c27 252 16777215 10 Y 144 0 63
-def test t9 t9 c28 c28 252 16777215 10 Y 16 0 8
-def test t9 t9 c29 c29 252 4294967295 8 Y 144 0 63
-def test t9 t9 c30 c30 252 4294967295 8 Y 16 0 8
-def test t9 t9 c31 c31 254 5 3 Y 256 0 8
-def test t9 t9 c32 c32 254 24 7 Y 2048 0 8
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30 c31 c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-9 9 9 9 9 9 9 9 9 9 9.0000 9.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 0 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext two tuesday
-set @arg00='SELECT' ;
-@arg00 a from t1 where a=1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 a from t1 where a=1' at line 1
-prepare stmt1 from ' ? a from t1 where a=1 ';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? a from t1 where a=1' at line 1
-set @arg00=1 ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-1 one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-1 one
-set @arg00='lion' ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-lion one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-lion one
-set @arg00=NULL ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-NULL one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-NULL one
-set @arg00=1 ;
-select b, a - @arg00 from t1 where a=1 ;
-b a - @arg00
-one 0
-prepare stmt1 from ' select b, a - ? from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-b a - ?
-one 0
-set @arg00=null ;
-select @arg00 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select ? as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-select @arg00 + 1 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select ? + 1 as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-select 1 + @arg00 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select 1 + ? as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-set @arg00='MySQL' ;
-select substr(@arg00,1,2) from t1 where a=1 ;
-substr(@arg00,1,2)
-My
-prepare stmt1 from ' select substr(?,1,2) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr(?,1,2)
-My
-set @arg00=3 ;
-select substr('MySQL',@arg00,5) from t1 where a=1 ;
-substr('MySQL',@arg00,5)
-SQL
-prepare stmt1 from ' select substr(''MySQL'',?,5) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr('MySQL',?,5)
-SQL
-select substr('MySQL',1,@arg00) from t1 where a=1 ;
-substr('MySQL',1,@arg00)
-MyS
-prepare stmt1 from ' select substr(''MySQL'',1,?) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr('MySQL',1,?)
-MyS
-set @arg00='MySQL' ;
-select a , concat(@arg00,b) from t1 order by a;
-a concat(@arg00,b)
-1 MySQLone
-2 MySQLtwo
-3 MySQLthree
-4 MySQLfour
-prepare stmt1 from ' select a , concat(?,b) from t1 order by a ' ;
-execute stmt1 using @arg00;
-a concat(?,b)
-1 MySQLone
-2 MySQLtwo
-3 MySQLthree
-4 MySQLfour
-select a , concat(b,@arg00) from t1 order by a ;
-a concat(b,@arg00)
-1 oneMySQL
-2 twoMySQL
-3 threeMySQL
-4 fourMySQL
-prepare stmt1 from ' select a , concat(b,?) from t1 order by a ' ;
-execute stmt1 using @arg00;
-a concat(b,?)
-1 oneMySQL
-2 twoMySQL
-3 threeMySQL
-4 fourMySQL
-set @arg00='MySQL' ;
-select group_concat(@arg00,b order by a) from t1
-group by 'a' ;
-group_concat(@arg00,b order by a)
-MySQLone,MySQLtwo,MySQLthree,MySQLfour
-prepare stmt1 from ' select group_concat(?,b order by a) from t1
-group by ''a'' ' ;
-execute stmt1 using @arg00;
-group_concat(?,b order by a)
-MySQLone,MySQLtwo,MySQLthree,MySQLfour
-select group_concat(b,@arg00 order by a) from t1
-group by 'a' ;
-group_concat(b,@arg00 order by a)
-oneMySQL,twoMySQL,threeMySQL,fourMySQL
-prepare stmt1 from ' select group_concat(b,? order by a) from t1
-group by ''a'' ' ;
-execute stmt1 using @arg00;
-group_concat(b,? order by a)
-oneMySQL,twoMySQL,threeMySQL,fourMySQL
-set @arg00='first' ;
-set @arg01='second' ;
-set @arg02=NULL;
-select @arg00, @arg01 from t1 where a=1 ;
-@arg00 @arg01
-first second
-prepare stmt1 from ' select ?, ? from t1 where a=1 ' ;
-execute stmt1 using @arg00, @arg01 ;
-? ?
-first second
-execute stmt1 using @arg02, @arg01 ;
-? ?
-NULL second
-execute stmt1 using @arg00, @arg02 ;
-? ?
-first NULL
-execute stmt1 using @arg02, @arg02 ;
-? ?
-NULL NULL
-drop table if exists t5 ;
-create table t5 (id1 int(11) not null default '0',
-value2 varchar(100), value1 varchar(100)) ;
-insert into t5 values (1,'hh','hh'),(2,'hh','hh'),
-(1,'ii','ii'),(2,'ii','ii') ;
-prepare stmt1 from ' select id1,value1 from t5 where id1=? or value1=? order by id1,value1 ' ;
-set @arg00=1 ;
-set @arg01='hh' ;
-execute stmt1 using @arg00, @arg01 ;
-id1 value1
-1 hh
-1 ii
-2 hh
-drop table t5 ;
-drop table if exists t5 ;
-create table t5(session_id char(9) not null) ;
-insert into t5 values ('abc') ;
-prepare stmt1 from ' select * from t5
-where ?=''1111'' and session_id = ''abc'' ' ;
-set @arg00='abc' ;
-execute stmt1 using @arg00 ;
-session_id
-set @arg00='1111' ;
-execute stmt1 using @arg00 ;
-session_id
-abc
-set @arg00='abc' ;
-execute stmt1 using @arg00 ;
-session_id
-drop table t5 ;
-set @arg00='FROM' ;
-select a @arg00 t1 where a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 t1 where a=1' at line 1
-prepare stmt1 from ' select a ? t1 where a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? t1 where a=1' at line 1
-set @arg00='t1' ;
-select a from @arg00 where a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 where a=1' at line 1
-prepare stmt1 from ' select a from ? where a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? where a=1' at line 1
-set @arg00='WHERE' ;
-select a from t1 @arg00 a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 a=1' at line 1
-prepare stmt1 from ' select a from t1 ? a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? a=1' at line 1
-set @arg00=1 ;
-select a FROM t1 where a=@arg00 ;
-a
-1
-prepare stmt1 from ' select a FROM t1 where a=? ' ;
-execute stmt1 using @arg00 ;
-a
-1
-set @arg00=1000 ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=NULL ;
-select a FROM t1 where a=@arg00 ;
-a
-prepare stmt1 from ' select a FROM t1 where a=? ' ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=4 ;
-select a FROM t1 where a=sqrt(@arg00) ;
-a
-2
-prepare stmt1 from ' select a FROM t1 where a=sqrt(?) ' ;
-execute stmt1 using @arg00 ;
-a
-2
-set @arg00=NULL ;
-select a FROM t1 where a=sqrt(@arg00) ;
-a
-prepare stmt1 from ' select a FROM t1 where a=sqrt(?) ' ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=2 ;
-set @arg01=3 ;
-select a FROM t1 where a in (@arg00,@arg01) order by a;
-a
-2
-3
-prepare stmt1 from ' select a FROM t1 where a in (?,?) order by a ';
-execute stmt1 using @arg00, @arg01;
-a
-2
-3
-set @arg00= 'one' ;
-set @arg01= 'two' ;
-set @arg02= 'five' ;
-prepare stmt1 from ' select b FROM t1 where b in (?,?,?) order by b ' ;
-execute stmt1 using @arg00, @arg01, @arg02 ;
-b
-one
-two
-prepare stmt1 from ' select b FROM t1 where b like ? ';
-set @arg00='two' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00='tw%' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00='%wo' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00=null ;
-insert into t9 set c1= 0, c5 = NULL ;
-select c5 from t9 where c5 > NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 > ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 < NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 < ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 = NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 = ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 <=> NULL ;
-c5
-NULL
-prepare stmt1 from ' select c5 from t9 where c5 <=> ? ';
-execute stmt1 using @arg00 ;
-c5
-NULL
-delete from t9 where c1= 0 ;
-set @arg00='>' ;
-select a FROM t1 where a @arg00 1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 1' at line 1
-prepare stmt1 from ' select a FROM t1 where a ? 1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? 1' at line 1
-set @arg00=1 ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL group by a - @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL group by a - ? ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00='two' ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL having b <> @arg00 order by a ;
-a b
-1 one
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL having b <> ? order by a ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-3 three
-4 four
-set @arg00=1 ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL order by a - @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL order by a - ? ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=2 ;
-select a,b from t1 order by 2 ;
-a b
-4 four
-1 one
-3 three
-2 two
-prepare stmt1 from ' select a,b from t1
-order by ? ';
-execute stmt1 using @arg00;
-a b
-4 four
-1 one
-3 three
-2 two
-set @arg00=1 ;
-execute stmt1 using @arg00;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=0 ;
-execute stmt1 using @arg00;
-ERROR 42S22: Unknown column '?' in 'order clause'
-set @arg00=1;
-prepare stmt1 from ' select a,b from t1 order by a
-limit 1 ';
-execute stmt1 ;
-a b
-1 one
-prepare stmt1 from ' select a,b from t1 order by a limit ? ';
-execute stmt1 using @arg00;
-a b
-1 one
-set @arg00='b' ;
-set @arg01=0 ;
-set @arg02=2 ;
-set @arg03=2 ;
-select sum(a), @arg00 from t1 where a > @arg01
-and b is not null group by substr(b,@arg02)
-having sum(a) <> @arg03 ;
-sum(a) @arg00
-3 b
-1 b
-4 b
-prepare stmt1 from ' select sum(a), ? from t1 where a > ?
-and b is not null group by substr(b,?)
-having sum(a) <> ? ';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03;
-sum(a) ?
-3 b
-1 b
-4 b
-test_sequence
------- join tests ------
-select first.a as a1, second.a as a2
-from t1 first, t1 second
-where first.a = second.a order by a1 ;
-a1 a2
-1 1
-2 2
-3 3
-4 4
-prepare stmt1 from ' select first.a as a1, second.a as a2
- from t1 first, t1 second
- where first.a = second.a order by a1 ';
-execute stmt1 ;
-a1 a2
-1 1
-2 2
-3 3
-4 4
-set @arg00='ABC';
-set @arg01='two';
-set @arg02='one';
-select first.a, @arg00, second.a FROM t1 first, t1 second
-where @arg01 = first.b or first.a = second.a or second.b = @arg02
-order by second.a, first.a;
-a @arg00 a
-1 ABC 1
-2 ABC 1
-3 ABC 1
-4 ABC 1
-2 ABC 2
-2 ABC 3
-3 ABC 3
-2 ABC 4
-4 ABC 4
-prepare stmt1 from ' select first.a, ?, second.a FROM t1 first, t1 second
- where ? = first.b or first.a = second.a or second.b = ?
- order by second.a, first.a';
-execute stmt1 using @arg00, @arg01, @arg02;
-a ? a
-1 ABC 1
-2 ABC 1
-3 ABC 1
-4 ABC 1
-2 ABC 2
-2 ABC 3
-3 ABC 3
-2 ABC 4
-4 ABC 4
-drop table if exists t2 ;
-create table t2 as select * from t1 ;
-set @query1= 'SELECT * FROM t2 join t1 on (t1.a=t2.a) order by t2.a ' ;
-set @query2= 'SELECT * FROM t2 natural join t1 order by t2.a ' ;
-set @query3= 'SELECT * FROM t2 join t1 using(a) order by t2.a ' ;
-set @query4= 'SELECT * FROM t2 left join t1 on(t1.a=t2.a) order by t2.a ' ;
-set @query5= 'SELECT * FROM t2 natural left join t1 order by t2.a ' ;
-set @query6= 'SELECT * FROM t2 left join t1 using(a) order by t2.a ' ;
-set @query7= 'SELECT * FROM t2 right join t1 on(t1.a=t2.a) order by t2.a ' ;
-set @query8= 'SELECT * FROM t2 natural right join t1 order by t2.a ' ;
-set @query9= 'SELECT * FROM t2 right join t1 using(a) order by t2.a ' ;
-the join statement is:
-SELECT * FROM t2 right join t1 using(a) order by t2.a
-prepare stmt1 from @query9 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural right join t1 order by t2.a
-prepare stmt1 from @query8 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 right join t1 on(t1.a=t2.a) order by t2.a
-prepare stmt1 from @query7 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-the join statement is:
-SELECT * FROM t2 left join t1 using(a) order by t2.a
-prepare stmt1 from @query6 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural left join t1 order by t2.a
-prepare stmt1 from @query5 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 left join t1 on(t1.a=t2.a) order by t2.a
-prepare stmt1 from @query4 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-the join statement is:
-SELECT * FROM t2 join t1 using(a) order by t2.a
-prepare stmt1 from @query3 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural join t1 order by t2.a
-prepare stmt1 from @query2 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 join t1 on (t1.a=t2.a) order by t2.a
-prepare stmt1 from @query1 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-drop table t2 ;
-test_sequence
------- subquery tests ------
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ''two'') ';
-execute stmt1 ;
-a b
-2 two
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = 'two' ) and b=@arg00 ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ''two'') and b=? ';
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = @arg00 ) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ? ) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=3 ;
-set @arg01='three' ;
-select a,b FROM t1 where (a,b) in (select 3, 'three');
-a b
-3 three
-select a FROM t1 where (a,b) in (select @arg00,@arg01);
-a
-3
-prepare stmt1 from ' select a FROM t1 where (a,b) in (select ?, ?) ';
-execute stmt1 using @arg00, @arg01;
-a
-3
-set @arg00=1 ;
-set @arg01='two' ;
-set @arg02=2 ;
-set @arg03='two' ;
-select a, @arg00, b FROM t1 outer_table where
-b=@arg01 and a = (select @arg02 from t1 where b = @arg03 ) ;
-a @arg00 b
-2 1 two
-prepare stmt1 from ' select a, ?, b FROM t1 outer_table where
- b=? and a = (select ? from t1 where b = ? ) ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-a ? b
-2 1 two
-prepare stmt1 from 'select c4 FROM t9 where
- c13 = (select MAX(b) from t1 where a = ?) and c22 = ? ' ;
-execute stmt1 using @arg01, @arg02;
-c4
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = outer_table.b ) order by a ';
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = outer_table.b ) and b=@arg00 ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = outer_table.b) and b=? ';
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=2 ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where a = @arg00 and b = outer_table.b) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where a = ? and b = outer_table.b) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=2 ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where outer_table.a = @arg00 and a=2) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where outer_table.a = ? and a=2) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=1 ;
-set @arg01='two' ;
-set @arg02=2 ;
-set @arg03='two' ;
-select a, @arg00, b FROM t1 outer_table where
-b=@arg01 and a = (select @arg02 from t1 where outer_table.b = @arg03
-and outer_table.a=a ) ;
-a @arg00 b
-2 1 two
-prepare stmt1 from ' select a, ?, b FROM t1 outer_table where
- b=? and a = (select ? from t1 where outer_table.b = ?
- and outer_table.a=a ) ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-a ? b
-2 1 two
-set @arg00=1 ;
-set @arg01=0 ;
-select a, @arg00
-from ( select a - @arg00 as a from t1 where a=@arg00 ) as t2
-where a=@arg01;
-a @arg00
-0 1
-prepare stmt1 from ' select a, ?
- from ( select a - ? as a from t1 where a=? ) as t2
- where a=? ';
-execute stmt1 using @arg00, @arg00, @arg00, @arg01 ;
-a ?
-0 1
-drop table if exists t2 ;
-create table t2 as select * from t1;
-prepare stmt1 from ' select a in (select a from t2) from t1 ' ;
-execute stmt1 ;
-a in (select a from t2)
-1
-1
-1
-1
-drop table if exists t5, t6, t7 ;
-create table t5 (a int , b int) ;
-create table t6 like t5 ;
-create table t7 like t5 ;
-insert into t5 values (0, 100), (1, 2), (1, 3), (2, 2), (2, 7),
-(2, -1), (3, 10) ;
-insert into t6 values (0, 0), (1, 1), (2, 1), (3, 1), (4, 1) ;
-insert into t7 values (3, 3), (2, 2), (1, 1) ;
-prepare stmt1 from ' select a, (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1) from t7 ' ;
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-drop table t5, t6, t7 ;
-drop table if exists t2 ;
-create table t2 as select * from t9;
-set @stmt= ' SELECT
- (SELECT SUM(c1 + c12 + 0.0) FROM t2
- where (t9.c2 - 0e-3) = t2.c2
- GROUP BY t9.c15 LIMIT 1) as scalar_s,
- exists (select 1.0e+0 from t2
- where t2.c3 * 9.0000000000 = t9.c4) as exists_s,
- c5 * 4 in (select c6 + 0.3e+1 from t2) as in_s,
- (c7 - 4, c8 - 4) in (select c9 + 4.0, c10 + 40e-1 from t2) as in_row_s
-FROM t9,
-(select c25 x, c32 y from t2) tt WHERE x = c25 ' ;
-prepare stmt1 from @stmt ;
-execute stmt1 ;
-execute stmt1 ;
-set @stmt= concat('explain ',@stmt);
-prepare stmt1 from @stmt ;
-execute stmt1 ;
-execute stmt1 ;
-set @stmt= ' SELECT
- (SELECT SUM(c1+c12+?) FROM t2 where (t9.c2-?)=t2.c2
- GROUP BY t9.c15 LIMIT 1) as scalar_s,
- exists (select ? from t2
- where t2.c3*?=t9.c4) as exists_s,
- c5*? in (select c6+? from t2) as in_s,
- (c7-?, c8-?) in (select c9+?, c10+? from t2) as in_row_s
-FROM t9,
-(select c25 x, c32 y from t2) tt WHERE x =c25 ' ;
-set @arg00= 0.0 ;
-set @arg01= 0e-3 ;
-set @arg02= 1.0e+0 ;
-set @arg03= 9.0000000000 ;
-set @arg04= 4 ;
-set @arg05= 0.3e+1 ;
-set @arg06= 4 ;
-set @arg07= 4 ;
-set @arg08= 4.0 ;
-set @arg09= 40e-1 ;
-prepare stmt1 from @stmt ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-set @stmt= concat('explain ',@stmt);
-prepare stmt1 from @stmt ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-drop table t2 ;
-select 1 < (select a from t1) ;
-ERROR 21000: Subquery returns more than 1 row
-prepare stmt1 from ' select 1 < (select a from t1) ' ;
-execute stmt1 ;
-ERROR 21000: Subquery returns more than 1 row
-select 1 as my_col ;
-my_col
-1
-test_sequence
------- union tests ------
-prepare stmt1 from ' select a FROM t1 where a=1
- union distinct
- select a FROM t1 where a=1 ';
-execute stmt1 ;
-a
-1
-execute stmt1 ;
-a
-1
-prepare stmt1 from ' select a FROM t1 where a=1
- union all
- select a FROM t1 where a=1 ';
-execute stmt1 ;
-a
-1
-1
-prepare stmt1 from ' SELECT 1, 2 union SELECT 1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT 1 union SELECT 1, 2 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT * from t1 union SELECT 1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT 1 union SELECT * from t1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-set @arg00=1 ;
-select @arg00 FROM t1 where a=1
-union distinct
-select 1 FROM t1 where a=1;
-@arg00
-1
-prepare stmt1 from ' select ? FROM t1 where a=1
- union distinct
- select 1 FROM t1 where a=1 ' ;
-execute stmt1 using @arg00;
-?
-1
-set @arg00=1 ;
-select 1 FROM t1 where a=1
-union distinct
-select @arg00 FROM t1 where a=1;
-1
-1
-prepare stmt1 from ' select 1 FROM t1 where a=1
- union distinct
- select ? FROM t1 where a=1 ' ;
-execute stmt1 using @arg00;
-1
-1
-set @arg00='a' ;
-select @arg00 FROM t1 where a=1
-union distinct
-select @arg00 FROM t1 where a=1;
-@arg00
-a
-prepare stmt1 from ' select ? FROM t1 where a=1
- union distinct
- select ? FROM t1 where a=1 ';
-execute stmt1 using @arg00, @arg00;
-?
-a
-prepare stmt1 from ' select ?
- union distinct
- select ? ';
-execute stmt1 using @arg00, @arg00;
-?
-a
-set @arg00='a' ;
-set @arg01=1 ;
-set @arg02='a' ;
-set @arg03=2 ;
-select @arg00 FROM t1 where a=@arg01
-union distinct
-select @arg02 FROM t1 where a=@arg03;
-@arg00
-a
-prepare stmt1 from ' select ? FROM t1 where a=?
- union distinct
- select ? FROM t1 where a=? ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03;
-?
-a
-set @arg00=1 ;
-prepare stmt1 from ' select sum(a) + 200, ? from t1
-union distinct
-select sum(a) + 200, 1 from t1
-group by b ' ;
-execute stmt1 using @arg00;
-sum(a) + 200 ?
-210 1
-204 1
-201 1
-203 1
-202 1
-set @Oporto='Oporto' ;
-set @Lisboa='Lisboa' ;
-set @0=0 ;
-set @1=1 ;
-set @2=2 ;
-set @3=3 ;
-set @4=4 ;
-select @Oporto,@Lisboa,@0,@1,@2,@3,@4 ;
-@Oporto @Lisboa @0 @1 @2 @3 @4
-Oporto Lisboa 0 1 2 3 4
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-group by b
-union distinct
-select sum(a) + 200, @Lisboa from t1
-group by b ;
-the_sum the_town
-204 Oporto
-201 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-201 Lisboa
-203 Lisboa
-202 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- group by b
- union distinct
- select sum(a) + 200, ? from t1
- group by b ' ;
-execute stmt1 using @Oporto, @Lisboa;
-the_sum the_town
-204 Oporto
-201 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-201 Lisboa
-203 Lisboa
-202 Lisboa
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-where a > @1
-group by b
-union distinct
-select sum(a) + 200, @Lisboa from t1
-where a > @2
-group by b ;
-the_sum the_town
-204 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-203 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- where a > ?
- group by b
- union distinct
- select sum(a) + 200, ? from t1
- where a > ?
- group by b ' ;
-execute stmt1 using @Oporto, @1, @Lisboa, @2;
-the_sum the_town
-204 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-203 Lisboa
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-where a > @1
-group by b
-having avg(a) > @2
-union distinct
-select sum(a) + 200, @Lisboa from t1
-where a > @2
-group by b
-having avg(a) > @3;
-the_sum the_town
-204 Oporto
-203 Oporto
-204 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- where a > ?
- group by b
- having avg(a) > ?
- union distinct
- select sum(a) + 200, ? from t1
- where a > ?
- group by b
- having avg(a) > ? ';
-execute stmt1 using @Oporto, @1, @2, @Lisboa, @2, @3;
-the_sum the_town
-204 Oporto
-203 Oporto
-204 Lisboa
-test_sequence
------- explain select tests ------
-prepare stmt1 from ' explain select * from t9 ' ;
-execute stmt1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def id 8 3 1 Y 32928 0 63
-def select_type 253 19 6 N 1 39 8
-def table 253 64 2 Y 0 39 8
-def type 253 10 3 Y 0 39 8
-def possible_keys 253 4_OR_8_K 0 Y 0 39 8
-def key 253 64 0 Y 0 39 8
-def key_len 253 4_OR_8_K 0 Y 0 39 8
-def ref 253 2048 0 Y 0 39 8
-def rows 8 10 1 Y 32928 0 63
-def Extra 253 255 0 N 1 39 8
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t9 ALL NULL NULL NULL NULL 2
-drop table if exists t2 ;
-create table t2 (s varchar(25), fulltext(s))
-ENGINE = 'MYISAM' ;
-insert into t2 values ('Gravedigger'), ('Greed'),('Hollow Dogs') ;
-commit ;
-prepare stmt1 from ' select s from t2 where match (s) against (?) ' ;
-set @arg00='Dogs' ;
-execute stmt1 using @arg00 ;
-s
-Hollow Dogs
-prepare stmt1 from ' SELECT s FROM t2
-where match (s) against (concat(?,''digger'')) ';
-set @arg00='Grave' ;
-execute stmt1 using @arg00 ;
-s
-Gravedigger
-drop table t2 ;
-test_sequence
------- delete tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'delete from t1 where a=2' ;
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-execute stmt1;
-insert into t1 values(0,NULL);
-set @arg00=NULL;
-prepare stmt1 from 'delete from t1 where b=?' ;
-execute stmt1 using @arg00;
-select a,b from t1 where b is NULL ;
-a b
-0 NULL
-set @arg00='one';
-execute stmt1 using @arg00;
-select a,b from t1 where b=@arg00;
-a b
-prepare stmt1 from 'truncate table t1' ;
-test_sequence
------- update tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'update t1 set b=''a=two'' where a=2' ;
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-2 a=two
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-2 a=two
-set @arg00=NULL;
-prepare stmt1 from 'update t1 set b=? where a=2' ;
-execute stmt1 using @arg00;
-select a,b from t1 where a=2;
-a b
-2 NULL
-set @arg00='two';
-execute stmt1 using @arg00;
-select a,b from t1 where a=2;
-a b
-2 two
-set @arg00=2;
-prepare stmt1 from 'update t1 set b=NULL where a=?' ;
-execute stmt1 using @arg00;
-select a,b from t1 where a=@arg00;
-a b
-2 NULL
-update t1 set b='two' where a=@arg00;
-set @arg00=2000;
-execute stmt1 using @arg00;
-select a,b from t1 where a=@arg00;
-a b
-set @arg00=2;
-set @arg01=22;
-prepare stmt1 from 'update t1 set a=? where a=?' ;
-execute stmt1 using @arg00, @arg00;
-select a,b from t1 where a=@arg00;
-a b
-2 two
-execute stmt1 using @arg01, @arg00;
-select a,b from t1 where a=@arg01;
-a b
-22 two
-execute stmt1 using @arg00, @arg01;
-select a,b from t1 where a=@arg00;
-a b
-2 two
-set @arg00=NULL;
-set @arg01=2;
-set sql_mode = '';
-execute stmt1 using @arg00, @arg01;
-Warnings:
-Warning 1048 Column 'a' cannot be null
-set sql_mode = default;
-select a,b from t1 order by a;
-a b
-0 two
-1 one
-3 three
-4 four
-set @arg00=0;
-execute stmt1 using @arg01, @arg00;
-select a,b from t1 order by a;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=23;
-set @arg01='two';
-set @arg02=2;
-set @arg03='two';
-set @arg04=2;
-drop table if exists t2;
-create table t2 as select a,b from t1 ;
-prepare stmt1 from 'update t1 set a=? where b=?
- and a in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 where a = @arg00 ;
-a b
-23 two
-prepare stmt1 from 'update t1 set a=? where b=?
- and a not in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 order by a ;
-a b
-1 one
-2 two
-3 three
-4 four
-drop table t2 ;
-create table t2
-(
-a int, b varchar(30),
-primary key(a)
-) engine = 'MYISAM' ;
-insert into t2(a,b) select a, b from t1 ;
-prepare stmt1 from 'update t1 set a=? where b=?
- and a in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 where a = @arg00 ;
-a b
-23 two
-prepare stmt1 from 'update t1 set a=? where b=?
- and a not in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 order by a ;
-a b
-1 one
-2 two
-3 three
-4 four
-drop table t2 ;
-set @arg00=1;
-prepare stmt1 from 'update t1 set b=''bla''
-where a=2
-limit 1';
-execute stmt1 ;
-select a,b from t1 where b = 'bla' ;
-a b
-2 bla
-prepare stmt1 from 'update t1 set b=''bla'' where a=2 limit ?';
-execute stmt1 using @arg00;
-test_sequence
------- insert tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'insert into t1 values(5, ''five'' )';
-execute stmt1;
-select a,b from t1 where a = 5;
-a b
-5 five
-set @arg00='six' ;
-prepare stmt1 from 'insert into t1 values(6, ? )';
-execute stmt1 using @arg00;
-select a,b from t1 where b = @arg00;
-a b
-6 six
-execute stmt1 using @arg00;
-ERROR 23000: Duplicate entry '6' for key 'PRIMARY'
-set @arg00=NULL ;
-prepare stmt1 from 'insert into t1 values(0, ? )';
-execute stmt1 using @arg00;
-select a,b from t1 where b is NULL;
-a b
-0 NULL
-set @arg00=8 ;
-set @arg01='eight' ;
-prepare stmt1 from 'insert into t1 values(?, ? )';
-execute stmt1 using @arg00, @arg01 ;
-select a,b from t1 where b = @arg01;
-a b
-8 eight
-set @NULL= null ;
-set @arg00= 'abc' ;
-execute stmt1 using @NULL, @NULL ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @NULL ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @arg00 ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @arg00 ;
-ERROR 23000: Column 'a' cannot be null
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @arg00 ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @arg00 ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 abc
-10002 abc
-delete from t1 where a > 10000 ;
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @NULL ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @NULL ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 NULL
-10002 NULL
-delete from t1 where a > 10000 ;
-set @arg01= 10000 + 10 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 9 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 8 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 7 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 6 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 5 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 4 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 3 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @arg01 ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 10001
-10002 10002
-10003 10003
-10004 10004
-10005 10005
-10006 10006
-10007 10007
-10008 10008
-10009 10009
-10010 10010
-delete from t1 where a > 10000 ;
-set @arg00=81 ;
-set @arg01='8-1' ;
-set @arg02=82 ;
-set @arg03='8-2' ;
-prepare stmt1 from 'insert into t1 values(?,?),(?,?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-select a,b from t1 where a in (@arg00,@arg02) ;
-a b
-81 8-1
-82 8-2
-set @arg00=9 ;
-set @arg01='nine' ;
-prepare stmt1 from 'insert into t1 set a=?, b=? ';
-execute stmt1 using @arg00, @arg01 ;
-select a,b from t1 where a = @arg00 ;
-a b
-9 nine
-set @arg00=6 ;
-set @arg01=1 ;
-prepare stmt1 from 'insert into t1 set a=?, b=''sechs''
- on duplicate key update a=a + ?, b=concat(b,''modified'') ';
-execute stmt1 using @arg00, @arg01;
-select * from t1 order by a;
-a b
-0 NULL
-1 one
-2 two
-3 three
-4 four
-5 five
-7 sixmodified
-8 eight
-9 nine
-81 8-1
-82 8-2
-set @arg00=81 ;
-set @arg01=1 ;
-execute stmt1 using @arg00, @arg01;
-ERROR 23000: Duplicate entry '82' for key 'PRIMARY'
-drop table if exists t2 ;
-create table t2 (id int auto_increment primary key)
-ENGINE= 'MYISAM' ;
-prepare stmt1 from ' select last_insert_id() ' ;
-insert into t2 values (NULL) ;
-execute stmt1 ;
-last_insert_id()
-1
-insert into t2 values (NULL) ;
-execute stmt1 ;
-last_insert_id()
-2
-drop table t2 ;
-set @1000=1000 ;
-set @x1000_2="x1000_2" ;
-set @x1000_3="x1000_3" ;
-set @x1000="x1000" ;
-set @1100=1100 ;
-set @x1100="x1100" ;
-set @100=100 ;
-set @updated="updated" ;
-insert into t1 values(1000,'x1000_1') ;
-insert into t1 values(@1000,@x1000_2),(@1000,@x1000_3)
-on duplicate key update a = a + @100, b = concat(b,@updated) ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 x1000_3
-1100 x1000_1updated
-delete from t1 where a >= 1000 ;
-insert into t1 values(1000,'x1000_1') ;
-prepare stmt1 from ' insert into t1 values(?,?),(?,?)
- on duplicate key update a = a + ?, b = concat(b,?) ';
-execute stmt1 using @1000, @x1000_2, @1000, @x1000_3, @100, @updated ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 x1000_3
-1100 x1000_1updated
-delete from t1 where a >= 1000 ;
-insert into t1 values(1000,'x1000_1') ;
-execute stmt1 using @1000, @x1000_2, @1100, @x1000_3, @100, @updated ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1200 x1000_1updatedupdated
-delete from t1 where a >= 1000 ;
-prepare stmt1 from ' replace into t1 (a,b) select 100, ''hundred'' ';
-execute stmt1;
-execute stmt1;
-execute stmt1;
-test_sequence
------- multi table tests ------
-delete from t1 ;
-delete from t9 ;
-insert into t1(a,b) values (1, 'one'), (2, 'two'), (3, 'three') ;
-insert into t9 (c1,c21)
-values (1, 'one'), (2, 'two'), (3, 'three') ;
-prepare stmt_delete from " delete t1, t9
- from t1, t9 where t1.a=t9.c1 and t1.b='updated' ";
-prepare stmt_update from " update t1, t9
- set t1.b='updated', t9.c21='updated'
- where t1.a=t9.c1 and t1.a=? ";
-prepare stmt_select1 from " select a, b from t1 order by a" ;
-prepare stmt_select2 from " select c1, c21 from t9 order by c1" ;
-set @arg00= 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-2 two
-3 three
-execute stmt_select2 ;
-c1 c21
-2 two
-3 three
-set @arg00= @arg00 + 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-3 three
-execute stmt_select2 ;
-c1 c21
-3 three
-set @arg00= @arg00 + 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-execute stmt_select2 ;
-c1 c21
-set @arg00= @arg00 + 1 ;
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-insert into t1 values(0,NULL) ;
-set @duplicate='duplicate ' ;
-set @1000=1000 ;
-set @5=5 ;
-select a,b from t1 where a < 5 order by a ;
-a b
-0 NULL
-1 one
-2 two
-3 three
-4 four
-insert into t1 select a + @1000, concat(@duplicate,b) from t1
-where a < @5 ;
-affected rows: 5
-info: Records: 5 Duplicates: 0 Warnings: 0
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 NULL
-1001 duplicate one
-1002 duplicate two
-1003 duplicate three
-1004 duplicate four
-delete from t1 where a >= 1000 ;
-prepare stmt1 from ' insert into t1 select a + ?, concat(?,b) from t1
-where a < ? ' ;
-execute stmt1 using @1000, @duplicate, @5;
-affected rows: 5
-info: Records: 5 Duplicates: 0 Warnings: 0
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 NULL
-1001 duplicate one
-1002 duplicate two
-1003 duplicate three
-1004 duplicate four
-delete from t1 where a >= 1000 ;
-set @1=1 ;
-set @2=2 ;
-set @100=100 ;
-set @float=1.00;
-set @five='five' ;
-drop table if exists t2;
-create table t2 like t1 ;
-insert into t2 (b,a)
-select @duplicate, sum(first.a) from t1 first, t1 second
-where first.a <> @5 and second.b = first.b
-and second.b <> @five
-group by second.b
-having sum(second.a) > @2
-union
-select b, a + @100 from t1
-where (a,b) in ( select sqrt(a+@1)+CAST(@float AS signed),b
-from t1);
-affected rows: 3
-info: Records: 3 Duplicates: 0 Warnings: 0
-select a,b from t2 order by a ;
-a b
-3 duplicate
-4 duplicate
-103 three
-delete from t2 ;
-prepare stmt1 from ' insert into t2 (b,a)
-select ?, sum(first.a)
- from t1 first, t1 second
- where first.a <> ? and second.b = first.b and second.b <> ?
- group by second.b
- having sum(second.a) > ?
-union
-select b, a + ? from t1
- where (a,b) in ( select sqrt(a+?)+CAST(? AS signed),b
- from t1 ) ' ;
-execute stmt1 using @duplicate, @5, @five, @2, @100, @1, @float ;
-affected rows: 3
-info: Records: 3 Duplicates: 0 Warnings: 0
-select a,b from t2 order by a ;
-a b
-3 duplicate
-4 duplicate
-103 three
-drop table t2;
-drop table if exists t5 ;
-set @arg01= 8;
-set @arg02= 8.0;
-set @arg03= 80.00000000000e-1;
-set @arg04= 'abc' ;
-set @arg05= CAST('abc' as binary) ;
-set @arg06= '1991-08-05' ;
-set @arg07= CAST('1991-08-05' as date);
-set @arg08= '1991-08-05 01:01:01' ;
-set @arg09= CAST('1991-08-05 01:01:01' as datetime) ;
-set @arg10= unix_timestamp('1991-01-01 01:01:01');
-set @arg11= YEAR('1991-01-01 01:01:01');
-set @arg12= 8 ;
-set @arg12= NULL ;
-set @arg13= 8.0 ;
-set @arg13= NULL ;
-set @arg14= 'abc';
-set @arg14= NULL ;
-set @arg15= CAST('abc' as binary) ;
-set @arg15= NULL ;
-create table t5 engine = MyISAM as select
-8 as const01, @arg01 as param01,
-8.0 as const02, @arg02 as param02,
-80.00000000000e-1 as const03, @arg03 as param03,
-'abc' as const04, @arg04 as param04,
-CAST('abc' as binary) as const05, @arg05 as param05,
-'1991-08-05' as const06, @arg06 as param06,
-CAST('1991-08-05' as date) as const07, @arg07 as param07,
-'1991-08-05 01:01:01' as const08, @arg08 as param08,
-CAST('1991-08-05 01:01:01' as datetime) as const09, @arg09 as param09,
-unix_timestamp('1991-01-01 01:01:01') as const10, @arg10 as param10,
-YEAR('1991-01-01 01:01:01') as const11, @arg11 as param11,
-NULL as const12, @arg12 as param12,
-@arg13 as param13,
-@arg14 as param14,
-@arg15 as param15;
-show create table t5 ;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `const01` int(1) NOT NULL,
- `param01` bigint(20) DEFAULT NULL,
- `const02` decimal(2,1) NOT NULL,
- `param02` decimal(65,38) DEFAULT NULL,
- `const03` double NOT NULL,
- `param03` double DEFAULT NULL,
- `const04` varchar(3) NOT NULL,
- `param04` longtext DEFAULT NULL,
- `const05` varbinary(3) DEFAULT NULL,
- `param05` longblob DEFAULT NULL,
- `const06` varchar(10) NOT NULL,
- `param06` longtext DEFAULT NULL,
- `const07` date DEFAULT NULL,
- `param07` longtext DEFAULT NULL,
- `const08` varchar(19) NOT NULL,
- `param08` longtext DEFAULT NULL,
- `const09` datetime DEFAULT NULL,
- `param09` longtext DEFAULT NULL,
- `const10` bigint(17) DEFAULT NULL,
- `param10` bigint(20) DEFAULT NULL,
- `const11` int(4) DEFAULT NULL,
- `param11` bigint(20) DEFAULT NULL,
- `const12` binary(0) DEFAULT NULL,
- `param12` bigint(20) DEFAULT NULL,
- `param13` decimal(65,38) DEFAULT NULL,
- `param14` longtext DEFAULT NULL,
- `param15` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t5 ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t5 t5 const01 const01 3 1 1 N 36865 0 63
-def test t5 t5 param01 param01 8 20 1 Y 32768 0 63
-def test t5 t5 const02 const02 246 4 3 N 36865 1 63
-def test t5 t5 param02 param02 246 67 40 Y 32768 38 63
-def test t5 t5 const03 const03 5 17 1 N 36865 31 63
-def test t5 t5 param03 param03 5 23 1 Y 32768 31 63
-def test t5 t5 const04 const04 253 3 3 N 4097 0 8
-def test t5 t5 param04 param04 252 4294967295 3 Y 16 0 8
-def test t5 t5 const05 const05 253 3 3 Y 128 0 63
-def test t5 t5 param05 param05 252 4294967295 3 Y 144 0 63
-def test t5 t5 const06 const06 253 10 10 N 4097 0 8
-def test t5 t5 param06 param06 252 4294967295 10 Y 16 0 8
-def test t5 t5 const07 const07 10 10 10 Y 128 0 63
-def test t5 t5 param07 param07 252 4294967295 10 Y 16 0 8
-def test t5 t5 const08 const08 253 19 19 N 4097 0 8
-def test t5 t5 param08 param08 252 4294967295 19 Y 16 0 8
-def test t5 t5 const09 const09 12 19 19 Y 128 0 63
-def test t5 t5 param09 param09 252 4294967295 19 Y 16 0 8
-def test t5 t5 const10 const10 8 17 9 Y 32768 0 63
-def test t5 t5 param10 param10 8 20 9 Y 32768 0 63
-def test t5 t5 const11 const11 3 4 4 Y 32768 0 63
-def test t5 t5 param11 param11 8 20 4 Y 32768 0 63
-def test t5 t5 const12 const12 254 0 0 Y 128 0 63
-def test t5 t5 param12 param12 8 20 0 Y 32768 0 63
-def test t5 t5 param13 param13 246 67 0 Y 32768 38 63
-def test t5 t5 param14 param14 252 4294967295 0 Y 16 0 8
-def test t5 t5 param15 param15 252 4294967295 0 Y 144 0 63
-const01 8
-param01 8
-const02 8.0
-param02 8.00000000000000000000000000000000000000
-const03 8
-param03 8
-const04 abc
-param04 abc
-const05 abc
-param05 abc
-const06 1991-08-05
-param06 1991-08-05
-const07 1991-08-05
-param07 1991-08-05
-const08 1991-08-05 01:01:01
-param08 1991-08-05 01:01:01
-const09 1991-08-05 01:01:01
-param09 1991-08-05 01:01:01
-const10 662680861
-param10 662680861
-const11 1991
-param11 1991
-const12 NULL
-param12 NULL
-param13 NULL
-param14 NULL
-param15 NULL
-drop table t5 ;
-test_sequence
------- data type conversion tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-insert into t9 set c1= 0, c15= '1991-01-01 01:01:01' ;
-select * from t9 order by c1 ;
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30 c31 c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-9 9 9 9 9 9 9 9 9 9 9.0000 9.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 0 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext two tuesday
-test_sequence
------- select @parameter:= column ------
-prepare full_info from "select @arg01, @arg02, @arg03, @arg04,
- @arg05, @arg06, @arg07, @arg08,
- @arg09, @arg10, @arg11, @arg12,
- @arg13, @arg14, @arg15, @arg16,
- @arg17, @arg18, @arg19, @arg20,
- @arg21, @arg22, @arg23, @arg24,
- @arg25, @arg26, @arg27, @arg28,
- @arg29, @arg30, @arg31, @arg32" ;
-select @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
-@arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
-@arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
-@arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
-@arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
-@arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
-@arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
-@arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= 1 ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-select @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
-@arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
-@arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
-@arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
-@arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
-@arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
-@arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
-@arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= 0 ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select
- @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
- @arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
- @arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
- @arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
- @arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
- @arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
- @arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
- @arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= ?" ;
-set @my_key= 1 ;
-execute stmt1 using @my_key ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-set @my_key= 0 ;
-execute stmt1 using @my_key ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select ? := c1 from t9 where c1= 1" ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ':= c1 from t9 where c1= 1' at line 1
-test_sequence
------- select column, .. into @parm,.. ------
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
-c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
-c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
-@arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
-@arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
-@arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= 1 ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
-c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
-c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
-@arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
-@arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
-@arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= 0 ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
- c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
- c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
- @arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
- @arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
- @arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= ?" ;
-set @my_key= 1 ;
-execute stmt1 using @my_key ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-set @my_key= 0 ;
-execute stmt1 using @my_key ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select c1 into ? from t9 where c1= 1" ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? from t9 where c1= 1' at line 1
-test_sequence
--- insert into numeric columns --
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20 ) ;
-set @arg00= 21 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22 )" ;
-execute stmt1 ;
-set @arg00= 23;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0,
-30.0, 30.0, 30.0 ) ;
-set @arg00= 31.0 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 32.0, 32.0, 32.0, 32.0, 32.0, 32.0, 32.0, 32.0,
- 32.0, 32.0, 32.0 )" ;
-execute stmt1 ;
-set @arg00= 33.0;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( '40', '40', '40', '40', '40', '40', '40', '40',
-'40', '40', '40' ) ;
-set @arg00= '41' ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( '42', '42', '42', '42', '42', '42', '42', '42',
- '42', '42', '42' )" ;
-execute stmt1 ;
-set @arg00= '43';
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary) ) ;
-set @arg00= CAST('51' as binary) ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary) )" ;
-execute stmt1 ;
-set @arg00= CAST('53' as binary) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 2 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 60, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
-NULL, NULL, NULL ) ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 61, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 62, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL )" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 63, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8.0 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 71, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 73, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 81, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 83, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12
-from t9 where c1 >= 20
-order by c1 ;
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c12
-20 20 20 20 20 20 20 20 20 20 20.0000
-21 21 21 21 21 21 21 21 21 21 21.0000
-22 22 22 22 22 22 22 22 22 22 22.0000
-23 23 23 23 23 23 23 23 23 23 23.0000
-30 30 30 30 30 30 30 30 30 30 30.0000
-31 31 31 31 31 31 31 31 31 31 31.0000
-32 32 32 32 32 32 32 32 32 32 32.0000
-33 33 33 33 33 33 33 33 33 33 33.0000
-40 40 40 40 40 40 40 40 40 40 40.0000
-41 41 41 41 41 41 41 41 41 41 41.0000
-42 42 42 42 42 42 42 42 42 42 42.0000
-43 43 43 43 43 43 43 43 43 43 43.0000
-50 50 50 50 50 50 50 50 50 50 50.0000
-51 51 51 51 51 51 51 51 51 51 51.0000
-52 52 52 52 52 52 52 52 52 52 52.0000
-53 53 53 53 53 53 53 53 53 53 53.0000
-60 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-61 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-62 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-63 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-71 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-73 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-81 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-83 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-test_sequence
--- select .. where numeric column = .. --
-set @arg00= 20;
-select 'true' as found from t9
-where c1= 20 and c2= 20 and c3= 20 and c4= 20 and c5= 20 and c6= 20 and c7= 20
-and c8= 20 and c9= 20 and c10= 20 and c12= 20;
-found
-true
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c2= 20 and c3= 20 and c4= 20 and c5= 20 and c6= 20 and c7= 20
- and c8= 20 and c9= 20 and c10= 20 and c12= 20 ";
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20.0;
-select 'true' as found from t9
-where c1= 20.0 and c2= 20.0 and c3= 20.0 and c4= 20.0 and c5= 20.0 and c6= 20.0
-and c7= 20.0 and c8= 20.0 and c9= 20.0 and c10= 20.0 and c12= 20.0;
-found
-true
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20.0 and c2= 20.0 and c3= 20.0 and c4= 20.0 and c5= 20.0 and c6= 20.0
- and c7= 20.0 and c8= 20.0 and c9= 20.0 and c10= 20.0 and c12= 20.0 ";
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-select 'true' as found from t9
-where c1= '20' and c2= '20' and c3= '20' and c4= '20' and c5= '20' and c6= '20'
- and c7= '20' and c8= '20' and c9= '20' and c10= '20' and c12= '20';
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= '20' and c2= '20' and c3= '20' and c4= '20' and c5= '20' and c6= '20'
- and c7= '20' and c8= '20' and c9= '20' and c10= '20' and c12= '20' ";
-execute stmt1 ;
-found
-true
-set @arg00= '20';
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-select 'true' as found from t9
-where c1= CAST('20' as binary) and c2= CAST('20' as binary) and
-c3= CAST('20' as binary) and c4= CAST('20' as binary) and
-c5= CAST('20' as binary) and c6= CAST('20' as binary) and
-c7= CAST('20' as binary) and c8= CAST('20' as binary) and
-c9= CAST('20' as binary) and c10= CAST('20' as binary) and
-c12= CAST('20' as binary);
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= CAST('20' as binary) and c2= CAST('20' as binary) and
- c3= CAST('20' as binary) and c4= CAST('20' as binary) and
- c5= CAST('20' as binary) and c6= CAST('20' as binary) and
- c7= CAST('20' as binary) and c8= CAST('20' as binary) and
- c9= CAST('20' as binary) and c10= CAST('20' as binary) and
- c12= CAST('20' as binary) ";
-execute stmt1 ;
-found
-true
-set @arg00= CAST('20' as binary) ;
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-delete from t9 ;
-test_sequence
--- some numeric overflow experiments --
-prepare my_insert from "insert into t9
- ( c21, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 'O', ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-prepare my_select from "select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12
-from t9 where c21 = 'O' ";
-prepare my_delete from "delete from t9 where c21 = 'O' ";
-set @arg00= 9223372036854775807 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 9.22337e18
-c8 9.223372036854776e18
-c9 9.223372036854776e18
-c10 9.223372036854776e18
-c12 9999.9999
-execute my_delete ;
-set @arg00= '9223372036854775807' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 9.22337e18
-c8 9.223372036854776e18
-c9 9.223372036854776e18
-c10 9.223372036854776e18
-c12 9999.9999
-execute my_delete ;
-set @arg00= -9223372036854775808 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -9.22337e18
-c8 -9.223372036854776e18
-c9 -9.223372036854776e18
-c10 -9.223372036854776e18
-c12 -9999.9999
-execute my_delete ;
-set @arg00= '-9223372036854775808' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -9.22337e18
-c8 -9.223372036854776e18
-c9 -9.223372036854776e18
-c10 -9.223372036854776e18
-c12 -9999.9999
-execute my_delete ;
-set @arg00= 1.11111111111111111111e+50 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 3.40282e38
-c8 1.111111111111111e50
-c9 1.111111111111111e50
-c10 1.111111111111111e50
-c12 9999.9999
-execute my_delete ;
-set @arg00= '1.11111111111111111111e+50' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 3.40282e38
-c8 1.111111111111111e50
-c9 1.111111111111111e50
-c10 1.111111111111111e50
-c12 9999.9999
-execute my_delete ;
-set @arg00= -1.11111111111111111111e+50 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -3.40282e38
-c8 -1.111111111111111e50
-c9 -1.111111111111111e50
-c10 -1.111111111111111e50
-c12 -9999.9999
-execute my_delete ;
-set @arg00= '-1.11111111111111111111e+50' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -3.40282e38
-c8 -1.111111111111111e50
-c9 -1.111111111111111e50
-c10 -1.111111111111111e50
-c12 -9999.9999
-execute my_delete ;
-test_sequence
--- insert into string columns --
-set sql_mode = '';
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 20, '20', '20', '20', '20', '20', '20', '20', '20', '20', '20', '20' ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '21' ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 21, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 22, '22', '22', '22', '22', '22', '22', '22', '22', '22', '22', '22' )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '23';
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 23, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 30, CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary) ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '31' ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 31, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 32, CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary) )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= CAST('33' as binary);
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 33, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 41 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 41, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 43;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 43, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 50, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 51.0 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 51, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 52, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 53.0;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 53, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 54, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1,
-5.4e+1, 5.4e+1, 5.4e+1 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 5.5e+1 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 55, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 56, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1,
- 5.6e+1, 5.6e+1, 5.6e+1 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 5.7e+1;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 57, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set sql_mode = default;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 60, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL ) ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 61, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 62, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL )" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 63, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 2 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 71, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 73, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 81, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 83, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-select c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30
-from t9 where c1 >= 20
-order by c1 ;
-c1 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30
-20 2 20 20 20 20 20 20 20 20 20 20
-21 2 21 21 21 21 21 21 21 21 21 21
-22 2 22 22 22 22 22 22 22 22 22 22
-23 2 23 23 23 23 23 23 23 23 23 23
-30 3 30 30 30 30 30 30 30 30 30 30
-31 3 31 31 31 31 31 31 31 31 31 31
-32 3 32 32 32 32 32 32 32 32 32 32
-33 3 33 33 33 33 33 33 33 33 33 33
-40 4 40 40 40 40 40 40 40 40 40 40
-41 4 41 41 41 41 41 41 41 41 41 41
-42 4 42 42 42 42 42 42 42 42 42 42
-43 4 43 43 43 43 43 43 43 43 43 43
-50 5 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0
-51 5 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0
-52 5 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0
-53 5 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0
-54 5 54 54 54 54 54 54 54 54 54 54
-55 6 55 55 55 55 55 55 55 55 55 55
-56 6 56 56 56 56 56 56 56 56 56 56
-57 6 57 57 57 57 57 57 57 57 57 57
-60 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-61 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-62 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-63 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-71 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-73 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-81 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-83 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-test_sequence
--- select .. where string column = .. --
-set @arg00= '20';
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr('20',1+length(c20)))= '20' and c21= '20' and
-c22= '20' and c23= '20' and c24= '20' and c25= '20' and c26= '20' and
-c27= '20' and c28= '20' and c29= '20' and c30= '20' ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr('20',1+length(c20)))= '20' and c21= '20' and
- c22= '20' and c23= '20' and c24= '20' and c25= '20' and c26= '20' and
- c27= '20' and c28= '20' and c29= '20' and c30= '20'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= CAST('20' as binary);
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(CAST('20' as binary),1+length(c20)))
-= CAST('20' as binary) and c21= CAST('20' as binary)
-and c22= CAST('20' as binary) and c23= CAST('20' as binary) and
-c24= CAST('20' as binary) and c25= CAST('20' as binary) and
-c26= CAST('20' as binary) and c27= CAST('20' as binary) and
-c28= CAST('20' as binary) and c29= CAST('20' as binary) and
-c30= CAST('20' as binary) ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20))) = @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and
-c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(CAST('20' as binary),1+length(c20)))
- = CAST('20' as binary) and c21= CAST('20' as binary)
- and c22= CAST('20' as binary) and c23= CAST('20' as binary) and
- c24= CAST('20' as binary) and c25= CAST('20' as binary) and
- c26= CAST('20' as binary) and c27= CAST('20' as binary) and
- c28= CAST('20' as binary) and c29= CAST('20' as binary) and
- c30= CAST('20' as binary)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20))) = ? and c21= ? and
- c22= ? and c23= ? and c25= ? and c26= ? and c27= ? and c28= ? and
- c29= ? and c30= ?";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20;
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20,1+length(c20)))= 20 and c21= 20 and
-c22= 20 and c23= 20 and c24= 20 and c25= 20 and c26= 20 and
-c27= 20 and c28= 20 and c29= 20 and c30= 20 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20,1+length(c20)))= 20 and c21= 20 and
- c22= 20 and c23= 20 and c24= 20 and c25= 20 and c26= 20 and
- c27= 20 and c28= 20 and c29= 20 and c30= 20" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20.0;
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20.0,1+length(c20)))= 20.0 and c21= 20.0 and
-c22= 20.0 and c23= 20.0 and c24= 20.0 and c25= 20.0 and c26= 20.0 and
-c27= 20.0 and c28= 20.0 and c29= 20.0 and c30= 20.0 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20.0,1+length(c20)))= 20.0 and c21= 20.0 and
- c22= 20.0 and c23= 20.0 and c24= 20.0 and c25= 20.0 and c26= 20.0 and
- c27= 20.0 and c28= 20.0 and c29= 20.0 and c30= 20.0" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-delete from t9 ;
-test_sequence
--- insert into date/time columns --
-set sql_mode = '';
-set @arg00= '1991-01-01 01:01:01' ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 20, '1991-01-01 01:01:01', '1991-01-01 01:01:01', '1991-01-01 01:01:01',
-'1991-01-01 01:01:01', '1991-01-01 01:01:01') ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 21, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 22, '1991-01-01 01:01:01', '1991-01-01 01:01:01', '1991-01-01 01:01:01',
- '1991-01-01 01:01:01', '1991-01-01 01:01:01')" ;
-execute stmt1 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 23, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-set @arg00= CAST('1991-01-01 01:01:01' as datetime) ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 30, CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime)) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 31, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 32, CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime))" ;
-execute stmt1 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 33, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-set @arg00= 2000000000 ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 40, 2000000000, 2000000000, 2000000000, 2000000000, 2000000000 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 41, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 42, 2000000000, 2000000000, 2000000000, 2000000000, 2000000000 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 43, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-set @arg00= 1.0e+10 ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 50, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 51, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 52, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 53, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-set sql_mode = default;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 60, NULL, NULL, '1991-01-01 01:01:01',
-NULL, NULL) ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 61, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 62, NULL, NULL, '1991-01-01 01:01:01',
- NULL, NULL)" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 63, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 71, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 73, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8.0 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 81, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 83, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-select c1, c13, c14, c15, c16, c17 from t9 order by c1 ;
-c1 c13 c14 c15 c16 c17
-20 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-21 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-22 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-23 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-30 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-31 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-32 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-33 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-40 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-41 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-42 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-43 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-50 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-51 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-52 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-53 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-60 NULL NULL 1991-01-01 01:01:01 NULL NULL
-61 NULL NULL 1991-01-01 01:01:01 NULL NULL
-62 NULL NULL 1991-01-01 01:01:01 NULL NULL
-63 NULL NULL 1991-01-01 01:01:01 NULL NULL
-71 NULL NULL 1991-01-01 01:01:01 NULL NULL
-73 NULL NULL 1991-01-01 01:01:01 NULL NULL
-81 NULL NULL 1991-01-01 01:01:01 NULL NULL
-83 NULL NULL 1991-01-01 01:01:01 NULL NULL
-test_sequence
--- select .. where date/time column = .. --
-set @arg00= '1991-01-01 01:01:01' ;
-select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 01:01:01' AS DATE) and c14= '1991-01-01 01:01:01' and
-c15= '1991-01-01 01:01:01' and
-c17= '1991-01-01 01:01:01' ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c13= CAST(@arg00 AS DATE) and c14= @arg00 and c15= @arg00
-and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 01:01:01' AS DATE) and c14= '1991-01-01 01:01:01' and
- c15= '1991-01-01 01:01:01' and
- c17= '1991-01-01 01:01:01'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST(? AS DATE) and c14= ? and c15= ? and c17= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= CAST('1991-01-01 01:01:01' as datetime) ;
-select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 00:00:00' as datetime) and
-c14= CAST('1991-01-01 01:01:01' as datetime) and
-c15= CAST('1991-01-01 01:01:01' as datetime) and
-c17= CAST('1991-01-01 01:01:01' as datetime) ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c13= CAST(@arg00 AS DATE) and c14= @arg00 and c15= @arg00
-and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 00:00:00' as datetime) and
- c14= CAST('1991-01-01 01:01:01' as datetime) and
- c15= CAST('1991-01-01 01:01:01' as datetime) and
- c17= CAST('1991-01-01 01:01:01' as datetime)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST(? AS DATE) and c14= ? and c15= ? and c17= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= '01:01:01' ;
-select 'true' as found from t9 where c1= 20 and c16= '01:01:01' ;
-found
-true
-select 'true' as found from t9 where c1= 20 and c16= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= '01:01:01'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= CAST('01:01:01' as time) ;
-select 'true' as found from t9 where c1= 20 and c16= CAST('01:01:01' as time) ;
-found
-true
-select 'true' as found from t9 where c1= 20 and c16= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= CAST('01:01:01' as time)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= 1991 ;
-select 'true' as found from t9
-where c1= 20 and c17= 1991 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c17= 1991" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c17= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= 1.991e+3 ;
-select 'true' as found from t9
-where c1= 20 and abs(c17 - 1.991e+3) < 0.01 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and abs(c17 - @arg00) < 0.01 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and abs(c17 - 1.991e+3) < 0.01" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and abs(c17 - ?) < 0.01" ;
-execute stmt1 using @arg00 ;
-found
-true
-drop table t1, t9;
diff --git a/mysql-test/r/ps_3innodb.result b/mysql-test/r/ps_3innodb.result
deleted file mode 100644
index 9f5c8956dd8..00000000000
--- a/mysql-test/r/ps_3innodb.result
+++ /dev/null
@@ -1,3475 +0,0 @@
-use test;
-drop table if exists t1, t9 ;
-create table t1
-(
-a int, b varchar(30),
-primary key(a)
-) engine = 'InnoDB' ;
-create table t9
-(
-c1 tinyint, c2 smallint, c3 mediumint, c4 int,
-c5 integer, c6 bigint, c7 float, c8 double,
-c9 double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
-c13 date, c14 datetime, c15 timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
-ON UPDATE CURRENT_TIMESTAMP, c16 time,
-c17 year, c18 tinyint, c19 bool, c20 char,
-c21 char(10), c22 varchar(30), c23 tinyblob, c24 tinytext,
-c25 blob, c26 text, c27 mediumblob, c28 mediumtext,
-c29 longblob, c30 longtext, c31 enum('one', 'two', 'three'),
-c32 set('monday', 'tuesday', 'wednesday'),
-primary key(c1)
-) engine = 'InnoDB' ;
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-test_sequence
------- simple select tests ------
-prepare stmt1 from ' select * from t9 order by c1 ' ;
-execute stmt1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t9 t9 c1 c1 1 4 1 N 53251 0 63
-def test t9 t9 c2 c2 2 6 1 Y 32768 0 63
-def test t9 t9 c3 c3 9 9 1 Y 32768 0 63
-def test t9 t9 c4 c4 3 11 1 Y 32768 0 63
-def test t9 t9 c5 c5 3 11 1 Y 32768 0 63
-def test t9 t9 c6 c6 8 20 1 Y 32768 0 63
-def test t9 t9 c7 c7 4 12 1 Y 32768 31 63
-def test t9 t9 c8 c8 5 22 1 Y 32768 31 63
-def test t9 t9 c9 c9 5 22 1 Y 32768 31 63
-def test t9 t9 c10 c10 5 22 1 Y 32768 31 63
-def test t9 t9 c11 c11 246 9 6 Y 32768 4 63
-def test t9 t9 c12 c12 246 10 6 Y 32768 4 63
-def test t9 t9 c13 c13 10 10 10 Y 128 0 63
-def test t9 t9 c14 c14 12 19 19 Y 128 0 63
-def test t9 t9 c15 c15 7 19 19 N 9377 0 63
-def test t9 t9 c16 c16 11 10 8 Y 128 0 63
-def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
-def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
-def test t9 t9 c19 c19 1 1 1 Y 32768 0 63
-def test t9 t9 c20 c20 254 1 1 Y 0 0 8
-def test t9 t9 c21 c21 254 10 10 Y 0 0 8
-def test t9 t9 c22 c22 253 30 30 Y 0 0 8
-def test t9 t9 c23 c23 252 255 8 Y 144 0 63
-def test t9 t9 c24 c24 252 255 8 Y 16 0 8
-def test t9 t9 c25 c25 252 65535 4 Y 144 0 63
-def test t9 t9 c26 c26 252 65535 4 Y 16 0 8
-def test t9 t9 c27 c27 252 16777215 10 Y 144 0 63
-def test t9 t9 c28 c28 252 16777215 10 Y 16 0 8
-def test t9 t9 c29 c29 252 4294967295 8 Y 144 0 63
-def test t9 t9 c30 c30 252 4294967295 8 Y 16 0 8
-def test t9 t9 c31 c31 254 5 3 Y 256 0 8
-def test t9 t9 c32 c32 254 24 7 Y 2048 0 8
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30 c31 c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-9 9 9 9 9 9 9 9 9 9 9.0000 9.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 0 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext two tuesday
-set @arg00='SELECT' ;
-@arg00 a from t1 where a=1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 a from t1 where a=1' at line 1
-prepare stmt1 from ' ? a from t1 where a=1 ';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? a from t1 where a=1' at line 1
-set @arg00=1 ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-1 one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-1 one
-set @arg00='lion' ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-lion one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-lion one
-set @arg00=NULL ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-NULL one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-NULL one
-set @arg00=1 ;
-select b, a - @arg00 from t1 where a=1 ;
-b a - @arg00
-one 0
-prepare stmt1 from ' select b, a - ? from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-b a - ?
-one 0
-set @arg00=null ;
-select @arg00 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select ? as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-select @arg00 + 1 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select ? + 1 as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-select 1 + @arg00 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select 1 + ? as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-set @arg00='MySQL' ;
-select substr(@arg00,1,2) from t1 where a=1 ;
-substr(@arg00,1,2)
-My
-prepare stmt1 from ' select substr(?,1,2) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr(?,1,2)
-My
-set @arg00=3 ;
-select substr('MySQL',@arg00,5) from t1 where a=1 ;
-substr('MySQL',@arg00,5)
-SQL
-prepare stmt1 from ' select substr(''MySQL'',?,5) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr('MySQL',?,5)
-SQL
-select substr('MySQL',1,@arg00) from t1 where a=1 ;
-substr('MySQL',1,@arg00)
-MyS
-prepare stmt1 from ' select substr(''MySQL'',1,?) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr('MySQL',1,?)
-MyS
-set @arg00='MySQL' ;
-select a , concat(@arg00,b) from t1 order by a;
-a concat(@arg00,b)
-1 MySQLone
-2 MySQLtwo
-3 MySQLthree
-4 MySQLfour
-prepare stmt1 from ' select a , concat(?,b) from t1 order by a ' ;
-execute stmt1 using @arg00;
-a concat(?,b)
-1 MySQLone
-2 MySQLtwo
-3 MySQLthree
-4 MySQLfour
-select a , concat(b,@arg00) from t1 order by a ;
-a concat(b,@arg00)
-1 oneMySQL
-2 twoMySQL
-3 threeMySQL
-4 fourMySQL
-prepare stmt1 from ' select a , concat(b,?) from t1 order by a ' ;
-execute stmt1 using @arg00;
-a concat(b,?)
-1 oneMySQL
-2 twoMySQL
-3 threeMySQL
-4 fourMySQL
-set @arg00='MySQL' ;
-select group_concat(@arg00,b order by a) from t1
-group by 'a' ;
-group_concat(@arg00,b order by a)
-MySQLone,MySQLtwo,MySQLthree,MySQLfour
-prepare stmt1 from ' select group_concat(?,b order by a) from t1
-group by ''a'' ' ;
-execute stmt1 using @arg00;
-group_concat(?,b order by a)
-MySQLone,MySQLtwo,MySQLthree,MySQLfour
-select group_concat(b,@arg00 order by a) from t1
-group by 'a' ;
-group_concat(b,@arg00 order by a)
-oneMySQL,twoMySQL,threeMySQL,fourMySQL
-prepare stmt1 from ' select group_concat(b,? order by a) from t1
-group by ''a'' ' ;
-execute stmt1 using @arg00;
-group_concat(b,? order by a)
-oneMySQL,twoMySQL,threeMySQL,fourMySQL
-set @arg00='first' ;
-set @arg01='second' ;
-set @arg02=NULL;
-select @arg00, @arg01 from t1 where a=1 ;
-@arg00 @arg01
-first second
-prepare stmt1 from ' select ?, ? from t1 where a=1 ' ;
-execute stmt1 using @arg00, @arg01 ;
-? ?
-first second
-execute stmt1 using @arg02, @arg01 ;
-? ?
-NULL second
-execute stmt1 using @arg00, @arg02 ;
-? ?
-first NULL
-execute stmt1 using @arg02, @arg02 ;
-? ?
-NULL NULL
-drop table if exists t5 ;
-create table t5 (id1 int(11) not null default '0',
-value2 varchar(100), value1 varchar(100)) ;
-insert into t5 values (1,'hh','hh'),(2,'hh','hh'),
-(1,'ii','ii'),(2,'ii','ii') ;
-prepare stmt1 from ' select id1,value1 from t5 where id1=? or value1=? order by id1,value1 ' ;
-set @arg00=1 ;
-set @arg01='hh' ;
-execute stmt1 using @arg00, @arg01 ;
-id1 value1
-1 hh
-1 ii
-2 hh
-drop table t5 ;
-drop table if exists t5 ;
-create table t5(session_id char(9) not null) ;
-insert into t5 values ('abc') ;
-prepare stmt1 from ' select * from t5
-where ?=''1111'' and session_id = ''abc'' ' ;
-set @arg00='abc' ;
-execute stmt1 using @arg00 ;
-session_id
-set @arg00='1111' ;
-execute stmt1 using @arg00 ;
-session_id
-abc
-set @arg00='abc' ;
-execute stmt1 using @arg00 ;
-session_id
-drop table t5 ;
-set @arg00='FROM' ;
-select a @arg00 t1 where a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 t1 where a=1' at line 1
-prepare stmt1 from ' select a ? t1 where a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? t1 where a=1' at line 1
-set @arg00='t1' ;
-select a from @arg00 where a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 where a=1' at line 1
-prepare stmt1 from ' select a from ? where a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? where a=1' at line 1
-set @arg00='WHERE' ;
-select a from t1 @arg00 a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 a=1' at line 1
-prepare stmt1 from ' select a from t1 ? a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? a=1' at line 1
-set @arg00=1 ;
-select a FROM t1 where a=@arg00 ;
-a
-1
-prepare stmt1 from ' select a FROM t1 where a=? ' ;
-execute stmt1 using @arg00 ;
-a
-1
-set @arg00=1000 ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=NULL ;
-select a FROM t1 where a=@arg00 ;
-a
-prepare stmt1 from ' select a FROM t1 where a=? ' ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=4 ;
-select a FROM t1 where a=sqrt(@arg00) ;
-a
-2
-prepare stmt1 from ' select a FROM t1 where a=sqrt(?) ' ;
-execute stmt1 using @arg00 ;
-a
-2
-set @arg00=NULL ;
-select a FROM t1 where a=sqrt(@arg00) ;
-a
-prepare stmt1 from ' select a FROM t1 where a=sqrt(?) ' ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=2 ;
-set @arg01=3 ;
-select a FROM t1 where a in (@arg00,@arg01) order by a;
-a
-2
-3
-prepare stmt1 from ' select a FROM t1 where a in (?,?) order by a ';
-execute stmt1 using @arg00, @arg01;
-a
-2
-3
-set @arg00= 'one' ;
-set @arg01= 'two' ;
-set @arg02= 'five' ;
-prepare stmt1 from ' select b FROM t1 where b in (?,?,?) order by b ' ;
-execute stmt1 using @arg00, @arg01, @arg02 ;
-b
-one
-two
-prepare stmt1 from ' select b FROM t1 where b like ? ';
-set @arg00='two' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00='tw%' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00='%wo' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00=null ;
-insert into t9 set c1= 0, c5 = NULL ;
-select c5 from t9 where c5 > NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 > ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 < NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 < ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 = NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 = ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 <=> NULL ;
-c5
-NULL
-prepare stmt1 from ' select c5 from t9 where c5 <=> ? ';
-execute stmt1 using @arg00 ;
-c5
-NULL
-delete from t9 where c1= 0 ;
-set @arg00='>' ;
-select a FROM t1 where a @arg00 1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 1' at line 1
-prepare stmt1 from ' select a FROM t1 where a ? 1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? 1' at line 1
-set @arg00=1 ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL group by a - @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL group by a - ? ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00='two' ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL having b <> @arg00 order by a ;
-a b
-1 one
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL having b <> ? order by a ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-3 three
-4 four
-set @arg00=1 ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL order by a - @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL order by a - ? ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=2 ;
-select a,b from t1 order by 2 ;
-a b
-4 four
-1 one
-3 three
-2 two
-prepare stmt1 from ' select a,b from t1
-order by ? ';
-execute stmt1 using @arg00;
-a b
-4 four
-1 one
-3 three
-2 two
-set @arg00=1 ;
-execute stmt1 using @arg00;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=0 ;
-execute stmt1 using @arg00;
-ERROR 42S22: Unknown column '?' in 'order clause'
-set @arg00=1;
-prepare stmt1 from ' select a,b from t1 order by a
-limit 1 ';
-execute stmt1 ;
-a b
-1 one
-prepare stmt1 from ' select a,b from t1 order by a limit ? ';
-execute stmt1 using @arg00;
-a b
-1 one
-set @arg00='b' ;
-set @arg01=0 ;
-set @arg02=2 ;
-set @arg03=2 ;
-select sum(a), @arg00 from t1 where a > @arg01
-and b is not null group by substr(b,@arg02)
-having sum(a) <> @arg03 ;
-sum(a) @arg00
-3 b
-1 b
-4 b
-prepare stmt1 from ' select sum(a), ? from t1 where a > ?
-and b is not null group by substr(b,?)
-having sum(a) <> ? ';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03;
-sum(a) ?
-3 b
-1 b
-4 b
-test_sequence
------- join tests ------
-select first.a as a1, second.a as a2
-from t1 first, t1 second
-where first.a = second.a order by a1 ;
-a1 a2
-1 1
-2 2
-3 3
-4 4
-prepare stmt1 from ' select first.a as a1, second.a as a2
- from t1 first, t1 second
- where first.a = second.a order by a1 ';
-execute stmt1 ;
-a1 a2
-1 1
-2 2
-3 3
-4 4
-set @arg00='ABC';
-set @arg01='two';
-set @arg02='one';
-select first.a, @arg00, second.a FROM t1 first, t1 second
-where @arg01 = first.b or first.a = second.a or second.b = @arg02
-order by second.a, first.a;
-a @arg00 a
-1 ABC 1
-2 ABC 1
-3 ABC 1
-4 ABC 1
-2 ABC 2
-2 ABC 3
-3 ABC 3
-2 ABC 4
-4 ABC 4
-prepare stmt1 from ' select first.a, ?, second.a FROM t1 first, t1 second
- where ? = first.b or first.a = second.a or second.b = ?
- order by second.a, first.a';
-execute stmt1 using @arg00, @arg01, @arg02;
-a ? a
-1 ABC 1
-2 ABC 1
-3 ABC 1
-4 ABC 1
-2 ABC 2
-2 ABC 3
-3 ABC 3
-2 ABC 4
-4 ABC 4
-drop table if exists t2 ;
-create table t2 as select * from t1 ;
-set @query1= 'SELECT * FROM t2 join t1 on (t1.a=t2.a) order by t2.a ' ;
-set @query2= 'SELECT * FROM t2 natural join t1 order by t2.a ' ;
-set @query3= 'SELECT * FROM t2 join t1 using(a) order by t2.a ' ;
-set @query4= 'SELECT * FROM t2 left join t1 on(t1.a=t2.a) order by t2.a ' ;
-set @query5= 'SELECT * FROM t2 natural left join t1 order by t2.a ' ;
-set @query6= 'SELECT * FROM t2 left join t1 using(a) order by t2.a ' ;
-set @query7= 'SELECT * FROM t2 right join t1 on(t1.a=t2.a) order by t2.a ' ;
-set @query8= 'SELECT * FROM t2 natural right join t1 order by t2.a ' ;
-set @query9= 'SELECT * FROM t2 right join t1 using(a) order by t2.a ' ;
-the join statement is:
-SELECT * FROM t2 right join t1 using(a) order by t2.a
-prepare stmt1 from @query9 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural right join t1 order by t2.a
-prepare stmt1 from @query8 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 right join t1 on(t1.a=t2.a) order by t2.a
-prepare stmt1 from @query7 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-the join statement is:
-SELECT * FROM t2 left join t1 using(a) order by t2.a
-prepare stmt1 from @query6 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural left join t1 order by t2.a
-prepare stmt1 from @query5 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 left join t1 on(t1.a=t2.a) order by t2.a
-prepare stmt1 from @query4 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-the join statement is:
-SELECT * FROM t2 join t1 using(a) order by t2.a
-prepare stmt1 from @query3 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural join t1 order by t2.a
-prepare stmt1 from @query2 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 join t1 on (t1.a=t2.a) order by t2.a
-prepare stmt1 from @query1 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-drop table t2 ;
-test_sequence
------- subquery tests ------
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ''two'') ';
-execute stmt1 ;
-a b
-2 two
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = 'two' ) and b=@arg00 ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ''two'') and b=? ';
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = @arg00 ) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ? ) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=3 ;
-set @arg01='three' ;
-select a,b FROM t1 where (a,b) in (select 3, 'three');
-a b
-3 three
-select a FROM t1 where (a,b) in (select @arg00,@arg01);
-a
-3
-prepare stmt1 from ' select a FROM t1 where (a,b) in (select ?, ?) ';
-execute stmt1 using @arg00, @arg01;
-a
-3
-set @arg00=1 ;
-set @arg01='two' ;
-set @arg02=2 ;
-set @arg03='two' ;
-select a, @arg00, b FROM t1 outer_table where
-b=@arg01 and a = (select @arg02 from t1 where b = @arg03 ) ;
-a @arg00 b
-2 1 two
-prepare stmt1 from ' select a, ?, b FROM t1 outer_table where
- b=? and a = (select ? from t1 where b = ? ) ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-a ? b
-2 1 two
-prepare stmt1 from 'select c4 FROM t9 where
- c13 = (select MAX(b) from t1 where a = ?) and c22 = ? ' ;
-execute stmt1 using @arg01, @arg02;
-c4
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = outer_table.b ) order by a ';
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = outer_table.b ) and b=@arg00 ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = outer_table.b) and b=? ';
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=2 ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where a = @arg00 and b = outer_table.b) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where a = ? and b = outer_table.b) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=2 ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where outer_table.a = @arg00 and a=2) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where outer_table.a = ? and a=2) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=1 ;
-set @arg01='two' ;
-set @arg02=2 ;
-set @arg03='two' ;
-select a, @arg00, b FROM t1 outer_table where
-b=@arg01 and a = (select @arg02 from t1 where outer_table.b = @arg03
-and outer_table.a=a ) ;
-a @arg00 b
-2 1 two
-prepare stmt1 from ' select a, ?, b FROM t1 outer_table where
- b=? and a = (select ? from t1 where outer_table.b = ?
- and outer_table.a=a ) ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-a ? b
-2 1 two
-set @arg00=1 ;
-set @arg01=0 ;
-select a, @arg00
-from ( select a - @arg00 as a from t1 where a=@arg00 ) as t2
-where a=@arg01;
-a @arg00
-0 1
-prepare stmt1 from ' select a, ?
- from ( select a - ? as a from t1 where a=? ) as t2
- where a=? ';
-execute stmt1 using @arg00, @arg00, @arg00, @arg01 ;
-a ?
-0 1
-drop table if exists t2 ;
-create table t2 as select * from t1;
-prepare stmt1 from ' select a in (select a from t2) from t1 ' ;
-execute stmt1 ;
-a in (select a from t2)
-1
-1
-1
-1
-drop table if exists t5, t6, t7 ;
-create table t5 (a int , b int) ;
-create table t6 like t5 ;
-create table t7 like t5 ;
-insert into t5 values (0, 100), (1, 2), (1, 3), (2, 2), (2, 7),
-(2, -1), (3, 10) ;
-insert into t6 values (0, 0), (1, 1), (2, 1), (3, 1), (4, 1) ;
-insert into t7 values (3, 3), (2, 2), (1, 1) ;
-prepare stmt1 from ' select a, (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1) from t7 ' ;
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-drop table t5, t6, t7 ;
-drop table if exists t2 ;
-create table t2 as select * from t9;
-set @stmt= ' SELECT
- (SELECT SUM(c1 + c12 + 0.0) FROM t2
- where (t9.c2 - 0e-3) = t2.c2
- GROUP BY t9.c15 LIMIT 1) as scalar_s,
- exists (select 1.0e+0 from t2
- where t2.c3 * 9.0000000000 = t9.c4) as exists_s,
- c5 * 4 in (select c6 + 0.3e+1 from t2) as in_s,
- (c7 - 4, c8 - 4) in (select c9 + 4.0, c10 + 40e-1 from t2) as in_row_s
-FROM t9,
-(select c25 x, c32 y from t2) tt WHERE x = c25 ' ;
-prepare stmt1 from @stmt ;
-execute stmt1 ;
-execute stmt1 ;
-set @stmt= concat('explain ',@stmt);
-prepare stmt1 from @stmt ;
-execute stmt1 ;
-execute stmt1 ;
-set @stmt= ' SELECT
- (SELECT SUM(c1+c12+?) FROM t2 where (t9.c2-?)=t2.c2
- GROUP BY t9.c15 LIMIT 1) as scalar_s,
- exists (select ? from t2
- where t2.c3*?=t9.c4) as exists_s,
- c5*? in (select c6+? from t2) as in_s,
- (c7-?, c8-?) in (select c9+?, c10+? from t2) as in_row_s
-FROM t9,
-(select c25 x, c32 y from t2) tt WHERE x =c25 ' ;
-set @arg00= 0.0 ;
-set @arg01= 0e-3 ;
-set @arg02= 1.0e+0 ;
-set @arg03= 9.0000000000 ;
-set @arg04= 4 ;
-set @arg05= 0.3e+1 ;
-set @arg06= 4 ;
-set @arg07= 4 ;
-set @arg08= 4.0 ;
-set @arg09= 40e-1 ;
-prepare stmt1 from @stmt ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-set @stmt= concat('explain ',@stmt);
-prepare stmt1 from @stmt ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-drop table t2 ;
-select 1 < (select a from t1) ;
-ERROR 21000: Subquery returns more than 1 row
-prepare stmt1 from ' select 1 < (select a from t1) ' ;
-execute stmt1 ;
-ERROR 21000: Subquery returns more than 1 row
-select 1 as my_col ;
-my_col
-1
-test_sequence
------- union tests ------
-prepare stmt1 from ' select a FROM t1 where a=1
- union distinct
- select a FROM t1 where a=1 ';
-execute stmt1 ;
-a
-1
-execute stmt1 ;
-a
-1
-prepare stmt1 from ' select a FROM t1 where a=1
- union all
- select a FROM t1 where a=1 ';
-execute stmt1 ;
-a
-1
-1
-prepare stmt1 from ' SELECT 1, 2 union SELECT 1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT 1 union SELECT 1, 2 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT * from t1 union SELECT 1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT 1 union SELECT * from t1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-set @arg00=1 ;
-select @arg00 FROM t1 where a=1
-union distinct
-select 1 FROM t1 where a=1;
-@arg00
-1
-prepare stmt1 from ' select ? FROM t1 where a=1
- union distinct
- select 1 FROM t1 where a=1 ' ;
-execute stmt1 using @arg00;
-?
-1
-set @arg00=1 ;
-select 1 FROM t1 where a=1
-union distinct
-select @arg00 FROM t1 where a=1;
-1
-1
-prepare stmt1 from ' select 1 FROM t1 where a=1
- union distinct
- select ? FROM t1 where a=1 ' ;
-execute stmt1 using @arg00;
-1
-1
-set @arg00='a' ;
-select @arg00 FROM t1 where a=1
-union distinct
-select @arg00 FROM t1 where a=1;
-@arg00
-a
-prepare stmt1 from ' select ? FROM t1 where a=1
- union distinct
- select ? FROM t1 where a=1 ';
-execute stmt1 using @arg00, @arg00;
-?
-a
-prepare stmt1 from ' select ?
- union distinct
- select ? ';
-execute stmt1 using @arg00, @arg00;
-?
-a
-set @arg00='a' ;
-set @arg01=1 ;
-set @arg02='a' ;
-set @arg03=2 ;
-select @arg00 FROM t1 where a=@arg01
-union distinct
-select @arg02 FROM t1 where a=@arg03;
-@arg00
-a
-prepare stmt1 from ' select ? FROM t1 where a=?
- union distinct
- select ? FROM t1 where a=? ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03;
-?
-a
-set @arg00=1 ;
-prepare stmt1 from ' select sum(a) + 200, ? from t1
-union distinct
-select sum(a) + 200, 1 from t1
-group by b ' ;
-execute stmt1 using @arg00;
-sum(a) + 200 ?
-210 1
-204 1
-201 1
-203 1
-202 1
-set @Oporto='Oporto' ;
-set @Lisboa='Lisboa' ;
-set @0=0 ;
-set @1=1 ;
-set @2=2 ;
-set @3=3 ;
-set @4=4 ;
-select @Oporto,@Lisboa,@0,@1,@2,@3,@4 ;
-@Oporto @Lisboa @0 @1 @2 @3 @4
-Oporto Lisboa 0 1 2 3 4
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-group by b
-union distinct
-select sum(a) + 200, @Lisboa from t1
-group by b ;
-the_sum the_town
-204 Oporto
-201 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-201 Lisboa
-203 Lisboa
-202 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- group by b
- union distinct
- select sum(a) + 200, ? from t1
- group by b ' ;
-execute stmt1 using @Oporto, @Lisboa;
-the_sum the_town
-204 Oporto
-201 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-201 Lisboa
-203 Lisboa
-202 Lisboa
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-where a > @1
-group by b
-union distinct
-select sum(a) + 200, @Lisboa from t1
-where a > @2
-group by b ;
-the_sum the_town
-204 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-203 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- where a > ?
- group by b
- union distinct
- select sum(a) + 200, ? from t1
- where a > ?
- group by b ' ;
-execute stmt1 using @Oporto, @1, @Lisboa, @2;
-the_sum the_town
-204 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-203 Lisboa
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-where a > @1
-group by b
-having avg(a) > @2
-union distinct
-select sum(a) + 200, @Lisboa from t1
-where a > @2
-group by b
-having avg(a) > @3;
-the_sum the_town
-204 Oporto
-203 Oporto
-204 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- where a > ?
- group by b
- having avg(a) > ?
- union distinct
- select sum(a) + 200, ? from t1
- where a > ?
- group by b
- having avg(a) > ? ';
-execute stmt1 using @Oporto, @1, @2, @Lisboa, @2, @3;
-the_sum the_town
-204 Oporto
-203 Oporto
-204 Lisboa
-test_sequence
------- explain select tests ------
-prepare stmt1 from ' explain select * from t9 ' ;
-execute stmt1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def id 8 3 1 Y 32928 0 63
-def select_type 253 19 6 N 1 39 8
-def table 253 64 2 Y 0 39 8
-def type 253 10 3 Y 0 39 8
-def possible_keys 253 4_OR_8_K 0 Y 0 39 8
-def key 253 64 0 Y 0 39 8
-def key_len 253 4_OR_8_K 0 Y 0 39 8
-def ref 253 2048 0 Y 0 39 8
-def rows 8 10 1 Y 32928 0 63
-def Extra 253 255 0 N 1 39 8
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t9 ALL NULL NULL NULL NULL 2
-test_sequence
------- delete tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'delete from t1 where a=2' ;
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-execute stmt1;
-insert into t1 values(0,NULL);
-set @arg00=NULL;
-prepare stmt1 from 'delete from t1 where b=?' ;
-execute stmt1 using @arg00;
-select a,b from t1 where b is NULL ;
-a b
-0 NULL
-set @arg00='one';
-execute stmt1 using @arg00;
-select a,b from t1 where b=@arg00;
-a b
-prepare stmt1 from 'truncate table t1' ;
-test_sequence
------- update tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'update t1 set b=''a=two'' where a=2' ;
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-2 a=two
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-2 a=two
-set @arg00=NULL;
-prepare stmt1 from 'update t1 set b=? where a=2' ;
-execute stmt1 using @arg00;
-select a,b from t1 where a=2;
-a b
-2 NULL
-set @arg00='two';
-execute stmt1 using @arg00;
-select a,b from t1 where a=2;
-a b
-2 two
-set @arg00=2;
-prepare stmt1 from 'update t1 set b=NULL where a=?' ;
-execute stmt1 using @arg00;
-select a,b from t1 where a=@arg00;
-a b
-2 NULL
-update t1 set b='two' where a=@arg00;
-set @arg00=2000;
-execute stmt1 using @arg00;
-select a,b from t1 where a=@arg00;
-a b
-set @arg00=2;
-set @arg01=22;
-prepare stmt1 from 'update t1 set a=? where a=?' ;
-execute stmt1 using @arg00, @arg00;
-select a,b from t1 where a=@arg00;
-a b
-2 two
-execute stmt1 using @arg01, @arg00;
-select a,b from t1 where a=@arg01;
-a b
-22 two
-execute stmt1 using @arg00, @arg01;
-select a,b from t1 where a=@arg00;
-a b
-2 two
-set @arg00=NULL;
-set @arg01=2;
-set sql_mode = '';
-execute stmt1 using @arg00, @arg01;
-Warnings:
-Warning 1048 Column 'a' cannot be null
-set sql_mode = default;
-select a,b from t1 order by a;
-a b
-0 two
-1 one
-3 three
-4 four
-set @arg00=0;
-execute stmt1 using @arg01, @arg00;
-select a,b from t1 order by a;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=23;
-set @arg01='two';
-set @arg02=2;
-set @arg03='two';
-set @arg04=2;
-drop table if exists t2;
-create table t2 as select a,b from t1 ;
-prepare stmt1 from 'update t1 set a=? where b=?
- and a in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 where a = @arg00 ;
-a b
-23 two
-prepare stmt1 from 'update t1 set a=? where b=?
- and a not in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 order by a ;
-a b
-1 one
-2 two
-3 three
-4 four
-drop table t2 ;
-create table t2
-(
-a int, b varchar(30),
-primary key(a)
-) engine = 'InnoDB' ;
-insert into t2(a,b) select a, b from t1 ;
-prepare stmt1 from 'update t1 set a=? where b=?
- and a in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 where a = @arg00 ;
-a b
-23 two
-prepare stmt1 from 'update t1 set a=? where b=?
- and a not in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 order by a ;
-a b
-1 one
-2 two
-3 three
-4 four
-drop table t2 ;
-set @arg00=1;
-prepare stmt1 from 'update t1 set b=''bla''
-where a=2
-limit 1';
-execute stmt1 ;
-select a,b from t1 where b = 'bla' ;
-a b
-2 bla
-prepare stmt1 from 'update t1 set b=''bla'' where a=2 limit ?';
-execute stmt1 using @arg00;
-test_sequence
------- insert tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'insert into t1 values(5, ''five'' )';
-execute stmt1;
-select a,b from t1 where a = 5;
-a b
-5 five
-set @arg00='six' ;
-prepare stmt1 from 'insert into t1 values(6, ? )';
-execute stmt1 using @arg00;
-select a,b from t1 where b = @arg00;
-a b
-6 six
-execute stmt1 using @arg00;
-ERROR 23000: Duplicate entry '6' for key 'PRIMARY'
-set @arg00=NULL ;
-prepare stmt1 from 'insert into t1 values(0, ? )';
-execute stmt1 using @arg00;
-select a,b from t1 where b is NULL;
-a b
-0 NULL
-set @arg00=8 ;
-set @arg01='eight' ;
-prepare stmt1 from 'insert into t1 values(?, ? )';
-execute stmt1 using @arg00, @arg01 ;
-select a,b from t1 where b = @arg01;
-a b
-8 eight
-set @NULL= null ;
-set @arg00= 'abc' ;
-execute stmt1 using @NULL, @NULL ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @NULL ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @arg00 ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @arg00 ;
-ERROR 23000: Column 'a' cannot be null
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @arg00 ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @arg00 ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 abc
-10002 abc
-delete from t1 where a > 10000 ;
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @NULL ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @NULL ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 NULL
-10002 NULL
-delete from t1 where a > 10000 ;
-set @arg01= 10000 + 10 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 9 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 8 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 7 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 6 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 5 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 4 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 3 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @arg01 ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 10001
-10002 10002
-10003 10003
-10004 10004
-10005 10005
-10006 10006
-10007 10007
-10008 10008
-10009 10009
-10010 10010
-delete from t1 where a > 10000 ;
-set @arg00=81 ;
-set @arg01='8-1' ;
-set @arg02=82 ;
-set @arg03='8-2' ;
-prepare stmt1 from 'insert into t1 values(?,?),(?,?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-select a,b from t1 where a in (@arg00,@arg02) ;
-a b
-81 8-1
-82 8-2
-set @arg00=9 ;
-set @arg01='nine' ;
-prepare stmt1 from 'insert into t1 set a=?, b=? ';
-execute stmt1 using @arg00, @arg01 ;
-select a,b from t1 where a = @arg00 ;
-a b
-9 nine
-set @arg00=6 ;
-set @arg01=1 ;
-prepare stmt1 from 'insert into t1 set a=?, b=''sechs''
- on duplicate key update a=a + ?, b=concat(b,''modified'') ';
-execute stmt1 using @arg00, @arg01;
-select * from t1 order by a;
-a b
-0 NULL
-1 one
-2 two
-3 three
-4 four
-5 five
-7 sixmodified
-8 eight
-9 nine
-81 8-1
-82 8-2
-set @arg00=81 ;
-set @arg01=1 ;
-execute stmt1 using @arg00, @arg01;
-ERROR 23000: Duplicate entry '82' for key 'PRIMARY'
-drop table if exists t2 ;
-create table t2 (id int auto_increment primary key)
-ENGINE= 'InnoDB' ;
-prepare stmt1 from ' select last_insert_id() ' ;
-insert into t2 values (NULL) ;
-execute stmt1 ;
-last_insert_id()
-1
-insert into t2 values (NULL) ;
-execute stmt1 ;
-last_insert_id()
-2
-drop table t2 ;
-set @1000=1000 ;
-set @x1000_2="x1000_2" ;
-set @x1000_3="x1000_3" ;
-set @x1000="x1000" ;
-set @1100=1100 ;
-set @x1100="x1100" ;
-set @100=100 ;
-set @updated="updated" ;
-insert into t1 values(1000,'x1000_1') ;
-insert into t1 values(@1000,@x1000_2),(@1000,@x1000_3)
-on duplicate key update a = a + @100, b = concat(b,@updated) ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 x1000_3
-1100 x1000_1updated
-delete from t1 where a >= 1000 ;
-insert into t1 values(1000,'x1000_1') ;
-prepare stmt1 from ' insert into t1 values(?,?),(?,?)
- on duplicate key update a = a + ?, b = concat(b,?) ';
-execute stmt1 using @1000, @x1000_2, @1000, @x1000_3, @100, @updated ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 x1000_3
-1100 x1000_1updated
-delete from t1 where a >= 1000 ;
-insert into t1 values(1000,'x1000_1') ;
-execute stmt1 using @1000, @x1000_2, @1100, @x1000_3, @100, @updated ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1200 x1000_1updatedupdated
-delete from t1 where a >= 1000 ;
-prepare stmt1 from ' replace into t1 (a,b) select 100, ''hundred'' ';
-execute stmt1;
-execute stmt1;
-execute stmt1;
-test_sequence
------- multi table tests ------
-delete from t1 ;
-delete from t9 ;
-insert into t1(a,b) values (1, 'one'), (2, 'two'), (3, 'three') ;
-insert into t9 (c1,c21)
-values (1, 'one'), (2, 'two'), (3, 'three') ;
-prepare stmt_delete from " delete t1, t9
- from t1, t9 where t1.a=t9.c1 and t1.b='updated' ";
-prepare stmt_update from " update t1, t9
- set t1.b='updated', t9.c21='updated'
- where t1.a=t9.c1 and t1.a=? ";
-prepare stmt_select1 from " select a, b from t1 order by a" ;
-prepare stmt_select2 from " select c1, c21 from t9 order by c1" ;
-set @arg00= 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-2 two
-3 three
-execute stmt_select2 ;
-c1 c21
-2 two
-3 three
-set @arg00= @arg00 + 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-3 three
-execute stmt_select2 ;
-c1 c21
-3 three
-set @arg00= @arg00 + 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-execute stmt_select2 ;
-c1 c21
-set @arg00= @arg00 + 1 ;
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-insert into t1 values(0,NULL) ;
-set @duplicate='duplicate ' ;
-set @1000=1000 ;
-set @5=5 ;
-select a,b from t1 where a < 5 order by a ;
-a b
-0 NULL
-1 one
-2 two
-3 three
-4 four
-insert into t1 select a + @1000, concat(@duplicate,b) from t1
-where a < @5 ;
-affected rows: 5
-info: Records: 5 Duplicates: 0 Warnings: 0
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 NULL
-1001 duplicate one
-1002 duplicate two
-1003 duplicate three
-1004 duplicate four
-delete from t1 where a >= 1000 ;
-prepare stmt1 from ' insert into t1 select a + ?, concat(?,b) from t1
-where a < ? ' ;
-execute stmt1 using @1000, @duplicate, @5;
-affected rows: 5
-info: Records: 5 Duplicates: 0 Warnings: 0
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 NULL
-1001 duplicate one
-1002 duplicate two
-1003 duplicate three
-1004 duplicate four
-delete from t1 where a >= 1000 ;
-set @1=1 ;
-set @2=2 ;
-set @100=100 ;
-set @float=1.00;
-set @five='five' ;
-drop table if exists t2;
-create table t2 like t1 ;
-insert into t2 (b,a)
-select @duplicate, sum(first.a) from t1 first, t1 second
-where first.a <> @5 and second.b = first.b
-and second.b <> @five
-group by second.b
-having sum(second.a) > @2
-union
-select b, a + @100 from t1
-where (a,b) in ( select sqrt(a+@1)+CAST(@float AS signed),b
-from t1);
-affected rows: 3
-info: Records: 3 Duplicates: 0 Warnings: 0
-select a,b from t2 order by a ;
-a b
-3 duplicate
-4 duplicate
-103 three
-delete from t2 ;
-prepare stmt1 from ' insert into t2 (b,a)
-select ?, sum(first.a)
- from t1 first, t1 second
- where first.a <> ? and second.b = first.b and second.b <> ?
- group by second.b
- having sum(second.a) > ?
-union
-select b, a + ? from t1
- where (a,b) in ( select sqrt(a+?)+CAST(? AS signed),b
- from t1 ) ' ;
-execute stmt1 using @duplicate, @5, @five, @2, @100, @1, @float ;
-affected rows: 3
-info: Records: 3 Duplicates: 0 Warnings: 0
-select a,b from t2 order by a ;
-a b
-3 duplicate
-4 duplicate
-103 three
-drop table t2;
-drop table if exists t5 ;
-set @arg01= 8;
-set @arg02= 8.0;
-set @arg03= 80.00000000000e-1;
-set @arg04= 'abc' ;
-set @arg05= CAST('abc' as binary) ;
-set @arg06= '1991-08-05' ;
-set @arg07= CAST('1991-08-05' as date);
-set @arg08= '1991-08-05 01:01:01' ;
-set @arg09= CAST('1991-08-05 01:01:01' as datetime) ;
-set @arg10= unix_timestamp('1991-01-01 01:01:01');
-set @arg11= YEAR('1991-01-01 01:01:01');
-set @arg12= 8 ;
-set @arg12= NULL ;
-set @arg13= 8.0 ;
-set @arg13= NULL ;
-set @arg14= 'abc';
-set @arg14= NULL ;
-set @arg15= CAST('abc' as binary) ;
-set @arg15= NULL ;
-create table t5 engine = MyISAM as select
-8 as const01, @arg01 as param01,
-8.0 as const02, @arg02 as param02,
-80.00000000000e-1 as const03, @arg03 as param03,
-'abc' as const04, @arg04 as param04,
-CAST('abc' as binary) as const05, @arg05 as param05,
-'1991-08-05' as const06, @arg06 as param06,
-CAST('1991-08-05' as date) as const07, @arg07 as param07,
-'1991-08-05 01:01:01' as const08, @arg08 as param08,
-CAST('1991-08-05 01:01:01' as datetime) as const09, @arg09 as param09,
-unix_timestamp('1991-01-01 01:01:01') as const10, @arg10 as param10,
-YEAR('1991-01-01 01:01:01') as const11, @arg11 as param11,
-NULL as const12, @arg12 as param12,
-@arg13 as param13,
-@arg14 as param14,
-@arg15 as param15;
-show create table t5 ;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `const01` int(1) NOT NULL,
- `param01` bigint(20) DEFAULT NULL,
- `const02` decimal(2,1) NOT NULL,
- `param02` decimal(65,38) DEFAULT NULL,
- `const03` double NOT NULL,
- `param03` double DEFAULT NULL,
- `const04` varchar(3) NOT NULL,
- `param04` longtext DEFAULT NULL,
- `const05` varbinary(3) DEFAULT NULL,
- `param05` longblob DEFAULT NULL,
- `const06` varchar(10) NOT NULL,
- `param06` longtext DEFAULT NULL,
- `const07` date DEFAULT NULL,
- `param07` longtext DEFAULT NULL,
- `const08` varchar(19) NOT NULL,
- `param08` longtext DEFAULT NULL,
- `const09` datetime DEFAULT NULL,
- `param09` longtext DEFAULT NULL,
- `const10` bigint(17) DEFAULT NULL,
- `param10` bigint(20) DEFAULT NULL,
- `const11` int(4) DEFAULT NULL,
- `param11` bigint(20) DEFAULT NULL,
- `const12` binary(0) DEFAULT NULL,
- `param12` bigint(20) DEFAULT NULL,
- `param13` decimal(65,38) DEFAULT NULL,
- `param14` longtext DEFAULT NULL,
- `param15` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t5 ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t5 t5 const01 const01 3 1 1 N 36865 0 63
-def test t5 t5 param01 param01 8 20 1 Y 32768 0 63
-def test t5 t5 const02 const02 246 4 3 N 36865 1 63
-def test t5 t5 param02 param02 246 67 40 Y 32768 38 63
-def test t5 t5 const03 const03 5 17 1 N 36865 31 63
-def test t5 t5 param03 param03 5 23 1 Y 32768 31 63
-def test t5 t5 const04 const04 253 3 3 N 4097 0 8
-def test t5 t5 param04 param04 252 4294967295 3 Y 16 0 8
-def test t5 t5 const05 const05 253 3 3 Y 128 0 63
-def test t5 t5 param05 param05 252 4294967295 3 Y 144 0 63
-def test t5 t5 const06 const06 253 10 10 N 4097 0 8
-def test t5 t5 param06 param06 252 4294967295 10 Y 16 0 8
-def test t5 t5 const07 const07 10 10 10 Y 128 0 63
-def test t5 t5 param07 param07 252 4294967295 10 Y 16 0 8
-def test t5 t5 const08 const08 253 19 19 N 4097 0 8
-def test t5 t5 param08 param08 252 4294967295 19 Y 16 0 8
-def test t5 t5 const09 const09 12 19 19 Y 128 0 63
-def test t5 t5 param09 param09 252 4294967295 19 Y 16 0 8
-def test t5 t5 const10 const10 8 17 9 Y 32768 0 63
-def test t5 t5 param10 param10 8 20 9 Y 32768 0 63
-def test t5 t5 const11 const11 3 4 4 Y 32768 0 63
-def test t5 t5 param11 param11 8 20 4 Y 32768 0 63
-def test t5 t5 const12 const12 254 0 0 Y 128 0 63
-def test t5 t5 param12 param12 8 20 0 Y 32768 0 63
-def test t5 t5 param13 param13 246 67 0 Y 32768 38 63
-def test t5 t5 param14 param14 252 4294967295 0 Y 16 0 8
-def test t5 t5 param15 param15 252 4294967295 0 Y 144 0 63
-const01 8
-param01 8
-const02 8.0
-param02 8.00000000000000000000000000000000000000
-const03 8
-param03 8
-const04 abc
-param04 abc
-const05 abc
-param05 abc
-const06 1991-08-05
-param06 1991-08-05
-const07 1991-08-05
-param07 1991-08-05
-const08 1991-08-05 01:01:01
-param08 1991-08-05 01:01:01
-const09 1991-08-05 01:01:01
-param09 1991-08-05 01:01:01
-const10 662680861
-param10 662680861
-const11 1991
-param11 1991
-const12 NULL
-param12 NULL
-param13 NULL
-param14 NULL
-param15 NULL
-drop table t5 ;
-test_sequence
------- data type conversion tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-insert into t9 set c1= 0, c15= '1991-01-01 01:01:01' ;
-select * from t9 order by c1 ;
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30 c31 c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-9 9 9 9 9 9 9 9 9 9 9.0000 9.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 0 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext two tuesday
-test_sequence
------- select @parameter:= column ------
-prepare full_info from "select @arg01, @arg02, @arg03, @arg04,
- @arg05, @arg06, @arg07, @arg08,
- @arg09, @arg10, @arg11, @arg12,
- @arg13, @arg14, @arg15, @arg16,
- @arg17, @arg18, @arg19, @arg20,
- @arg21, @arg22, @arg23, @arg24,
- @arg25, @arg26, @arg27, @arg28,
- @arg29, @arg30, @arg31, @arg32" ;
-select @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
-@arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
-@arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
-@arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
-@arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
-@arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
-@arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
-@arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= 1 ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-select @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
-@arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
-@arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
-@arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
-@arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
-@arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
-@arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
-@arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= 0 ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select
- @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
- @arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
- @arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
- @arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
- @arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
- @arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
- @arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
- @arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= ?" ;
-set @my_key= 1 ;
-execute stmt1 using @my_key ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-set @my_key= 0 ;
-execute stmt1 using @my_key ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select ? := c1 from t9 where c1= 1" ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ':= c1 from t9 where c1= 1' at line 1
-test_sequence
------- select column, .. into @parm,.. ------
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
-c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
-c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
-@arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
-@arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
-@arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= 1 ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
-c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
-c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
-@arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
-@arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
-@arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= 0 ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
- c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
- c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
- @arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
- @arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
- @arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= ?" ;
-set @my_key= 1 ;
-execute stmt1 using @my_key ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-set @my_key= 0 ;
-execute stmt1 using @my_key ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select c1 into ? from t9 where c1= 1" ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? from t9 where c1= 1' at line 1
-test_sequence
--- insert into numeric columns --
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20 ) ;
-set @arg00= 21 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22 )" ;
-execute stmt1 ;
-set @arg00= 23;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0,
-30.0, 30.0, 30.0 ) ;
-set @arg00= 31.0 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 32.0, 32.0, 32.0, 32.0, 32.0, 32.0, 32.0, 32.0,
- 32.0, 32.0, 32.0 )" ;
-execute stmt1 ;
-set @arg00= 33.0;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( '40', '40', '40', '40', '40', '40', '40', '40',
-'40', '40', '40' ) ;
-set @arg00= '41' ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( '42', '42', '42', '42', '42', '42', '42', '42',
- '42', '42', '42' )" ;
-execute stmt1 ;
-set @arg00= '43';
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary) ) ;
-set @arg00= CAST('51' as binary) ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary) )" ;
-execute stmt1 ;
-set @arg00= CAST('53' as binary) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 2 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 60, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
-NULL, NULL, NULL ) ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 61, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 62, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL )" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 63, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8.0 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 71, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 73, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 81, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 83, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12
-from t9 where c1 >= 20
-order by c1 ;
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c12
-20 20 20 20 20 20 20 20 20 20 20.0000
-21 21 21 21 21 21 21 21 21 21 21.0000
-22 22 22 22 22 22 22 22 22 22 22.0000
-23 23 23 23 23 23 23 23 23 23 23.0000
-30 30 30 30 30 30 30 30 30 30 30.0000
-31 31 31 31 31 31 31 31 31 31 31.0000
-32 32 32 32 32 32 32 32 32 32 32.0000
-33 33 33 33 33 33 33 33 33 33 33.0000
-40 40 40 40 40 40 40 40 40 40 40.0000
-41 41 41 41 41 41 41 41 41 41 41.0000
-42 42 42 42 42 42 42 42 42 42 42.0000
-43 43 43 43 43 43 43 43 43 43 43.0000
-50 50 50 50 50 50 50 50 50 50 50.0000
-51 51 51 51 51 51 51 51 51 51 51.0000
-52 52 52 52 52 52 52 52 52 52 52.0000
-53 53 53 53 53 53 53 53 53 53 53.0000
-60 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-61 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-62 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-63 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-71 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-73 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-81 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-83 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-test_sequence
--- select .. where numeric column = .. --
-set @arg00= 20;
-select 'true' as found from t9
-where c1= 20 and c2= 20 and c3= 20 and c4= 20 and c5= 20 and c6= 20 and c7= 20
-and c8= 20 and c9= 20 and c10= 20 and c12= 20;
-found
-true
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c2= 20 and c3= 20 and c4= 20 and c5= 20 and c6= 20 and c7= 20
- and c8= 20 and c9= 20 and c10= 20 and c12= 20 ";
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20.0;
-select 'true' as found from t9
-where c1= 20.0 and c2= 20.0 and c3= 20.0 and c4= 20.0 and c5= 20.0 and c6= 20.0
-and c7= 20.0 and c8= 20.0 and c9= 20.0 and c10= 20.0 and c12= 20.0;
-found
-true
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20.0 and c2= 20.0 and c3= 20.0 and c4= 20.0 and c5= 20.0 and c6= 20.0
- and c7= 20.0 and c8= 20.0 and c9= 20.0 and c10= 20.0 and c12= 20.0 ";
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-select 'true' as found from t9
-where c1= '20' and c2= '20' and c3= '20' and c4= '20' and c5= '20' and c6= '20'
- and c7= '20' and c8= '20' and c9= '20' and c10= '20' and c12= '20';
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= '20' and c2= '20' and c3= '20' and c4= '20' and c5= '20' and c6= '20'
- and c7= '20' and c8= '20' and c9= '20' and c10= '20' and c12= '20' ";
-execute stmt1 ;
-found
-true
-set @arg00= '20';
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-select 'true' as found from t9
-where c1= CAST('20' as binary) and c2= CAST('20' as binary) and
-c3= CAST('20' as binary) and c4= CAST('20' as binary) and
-c5= CAST('20' as binary) and c6= CAST('20' as binary) and
-c7= CAST('20' as binary) and c8= CAST('20' as binary) and
-c9= CAST('20' as binary) and c10= CAST('20' as binary) and
-c12= CAST('20' as binary);
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= CAST('20' as binary) and c2= CAST('20' as binary) and
- c3= CAST('20' as binary) and c4= CAST('20' as binary) and
- c5= CAST('20' as binary) and c6= CAST('20' as binary) and
- c7= CAST('20' as binary) and c8= CAST('20' as binary) and
- c9= CAST('20' as binary) and c10= CAST('20' as binary) and
- c12= CAST('20' as binary) ";
-execute stmt1 ;
-found
-true
-set @arg00= CAST('20' as binary) ;
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-delete from t9 ;
-test_sequence
--- some numeric overflow experiments --
-prepare my_insert from "insert into t9
- ( c21, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 'O', ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-prepare my_select from "select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12
-from t9 where c21 = 'O' ";
-prepare my_delete from "delete from t9 where c21 = 'O' ";
-set @arg00= 9223372036854775807 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 9.22337e18
-c8 9.223372036854776e18
-c9 9.223372036854776e18
-c10 9.223372036854776e18
-c12 9999.9999
-execute my_delete ;
-set @arg00= '9223372036854775807' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 9.22337e18
-c8 9.223372036854776e18
-c9 9.223372036854776e18
-c10 9.223372036854776e18
-c12 9999.9999
-execute my_delete ;
-set @arg00= -9223372036854775808 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -9.22337e18
-c8 -9.223372036854776e18
-c9 -9.223372036854776e18
-c10 -9.223372036854776e18
-c12 -9999.9999
-execute my_delete ;
-set @arg00= '-9223372036854775808' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -9.22337e18
-c8 -9.223372036854776e18
-c9 -9.223372036854776e18
-c10 -9.223372036854776e18
-c12 -9999.9999
-execute my_delete ;
-set @arg00= 1.11111111111111111111e+50 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 3.40282e38
-c8 1.111111111111111e50
-c9 1.111111111111111e50
-c10 1.111111111111111e50
-c12 9999.9999
-execute my_delete ;
-set @arg00= '1.11111111111111111111e+50' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 3.40282e38
-c8 1.111111111111111e50
-c9 1.111111111111111e50
-c10 1.111111111111111e50
-c12 9999.9999
-execute my_delete ;
-set @arg00= -1.11111111111111111111e+50 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -3.40282e38
-c8 -1.111111111111111e50
-c9 -1.111111111111111e50
-c10 -1.111111111111111e50
-c12 -9999.9999
-execute my_delete ;
-set @arg00= '-1.11111111111111111111e+50' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -3.40282e38
-c8 -1.111111111111111e50
-c9 -1.111111111111111e50
-c10 -1.111111111111111e50
-c12 -9999.9999
-execute my_delete ;
-test_sequence
--- insert into string columns --
-set sql_mode = '';
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 20, '20', '20', '20', '20', '20', '20', '20', '20', '20', '20', '20' ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '21' ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 21, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 22, '22', '22', '22', '22', '22', '22', '22', '22', '22', '22', '22' )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '23';
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 23, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 30, CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary) ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '31' ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 31, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 32, CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary) )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= CAST('33' as binary);
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 33, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 41 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 41, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 43;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 43, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 50, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 51.0 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 51, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 52, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 53.0;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 53, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 54, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1,
-5.4e+1, 5.4e+1, 5.4e+1 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 5.5e+1 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 55, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 56, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1,
- 5.6e+1, 5.6e+1, 5.6e+1 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 5.7e+1;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 57, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set sql_mode = default;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 60, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL ) ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 61, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 62, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL )" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 63, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 2 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 71, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 73, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 81, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 83, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-select c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30
-from t9 where c1 >= 20
-order by c1 ;
-c1 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30
-20 2 20 20 20 20 20 20 20 20 20 20
-21 2 21 21 21 21 21 21 21 21 21 21
-22 2 22 22 22 22 22 22 22 22 22 22
-23 2 23 23 23 23 23 23 23 23 23 23
-30 3 30 30 30 30 30 30 30 30 30 30
-31 3 31 31 31 31 31 31 31 31 31 31
-32 3 32 32 32 32 32 32 32 32 32 32
-33 3 33 33 33 33 33 33 33 33 33 33
-40 4 40 40 40 40 40 40 40 40 40 40
-41 4 41 41 41 41 41 41 41 41 41 41
-42 4 42 42 42 42 42 42 42 42 42 42
-43 4 43 43 43 43 43 43 43 43 43 43
-50 5 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0
-51 5 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0
-52 5 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0
-53 5 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0
-54 5 54 54 54 54 54 54 54 54 54 54
-55 6 55 55 55 55 55 55 55 55 55 55
-56 6 56 56 56 56 56 56 56 56 56 56
-57 6 57 57 57 57 57 57 57 57 57 57
-60 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-61 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-62 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-63 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-71 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-73 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-81 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-83 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-test_sequence
--- select .. where string column = .. --
-set @arg00= '20';
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr('20',1+length(c20)))= '20' and c21= '20' and
-c22= '20' and c23= '20' and c24= '20' and c25= '20' and c26= '20' and
-c27= '20' and c28= '20' and c29= '20' and c30= '20' ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr('20',1+length(c20)))= '20' and c21= '20' and
- c22= '20' and c23= '20' and c24= '20' and c25= '20' and c26= '20' and
- c27= '20' and c28= '20' and c29= '20' and c30= '20'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= CAST('20' as binary);
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(CAST('20' as binary),1+length(c20)))
-= CAST('20' as binary) and c21= CAST('20' as binary)
-and c22= CAST('20' as binary) and c23= CAST('20' as binary) and
-c24= CAST('20' as binary) and c25= CAST('20' as binary) and
-c26= CAST('20' as binary) and c27= CAST('20' as binary) and
-c28= CAST('20' as binary) and c29= CAST('20' as binary) and
-c30= CAST('20' as binary) ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20))) = @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and
-c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(CAST('20' as binary),1+length(c20)))
- = CAST('20' as binary) and c21= CAST('20' as binary)
- and c22= CAST('20' as binary) and c23= CAST('20' as binary) and
- c24= CAST('20' as binary) and c25= CAST('20' as binary) and
- c26= CAST('20' as binary) and c27= CAST('20' as binary) and
- c28= CAST('20' as binary) and c29= CAST('20' as binary) and
- c30= CAST('20' as binary)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20))) = ? and c21= ? and
- c22= ? and c23= ? and c25= ? and c26= ? and c27= ? and c28= ? and
- c29= ? and c30= ?";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20;
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20,1+length(c20)))= 20 and c21= 20 and
-c22= 20 and c23= 20 and c24= 20 and c25= 20 and c26= 20 and
-c27= 20 and c28= 20 and c29= 20 and c30= 20 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20,1+length(c20)))= 20 and c21= 20 and
- c22= 20 and c23= 20 and c24= 20 and c25= 20 and c26= 20 and
- c27= 20 and c28= 20 and c29= 20 and c30= 20" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20.0;
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20.0,1+length(c20)))= 20.0 and c21= 20.0 and
-c22= 20.0 and c23= 20.0 and c24= 20.0 and c25= 20.0 and c26= 20.0 and
-c27= 20.0 and c28= 20.0 and c29= 20.0 and c30= 20.0 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20.0,1+length(c20)))= 20.0 and c21= 20.0 and
- c22= 20.0 and c23= 20.0 and c24= 20.0 and c25= 20.0 and c26= 20.0 and
- c27= 20.0 and c28= 20.0 and c29= 20.0 and c30= 20.0" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-delete from t9 ;
-test_sequence
--- insert into date/time columns --
-set sql_mode = '';
-set @arg00= '1991-01-01 01:01:01' ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 20, '1991-01-01 01:01:01', '1991-01-01 01:01:01', '1991-01-01 01:01:01',
-'1991-01-01 01:01:01', '1991-01-01 01:01:01') ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 21, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 22, '1991-01-01 01:01:01', '1991-01-01 01:01:01', '1991-01-01 01:01:01',
- '1991-01-01 01:01:01', '1991-01-01 01:01:01')" ;
-execute stmt1 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 23, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-set @arg00= CAST('1991-01-01 01:01:01' as datetime) ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 30, CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime)) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 31, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 32, CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime))" ;
-execute stmt1 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 33, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-set @arg00= 2000000000 ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 40, 2000000000, 2000000000, 2000000000, 2000000000, 2000000000 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 41, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 42, 2000000000, 2000000000, 2000000000, 2000000000, 2000000000 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 43, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-set @arg00= 1.0e+10 ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 50, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 51, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 52, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 53, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-set sql_mode = default;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 60, NULL, NULL, '1991-01-01 01:01:01',
-NULL, NULL) ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 61, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 62, NULL, NULL, '1991-01-01 01:01:01',
- NULL, NULL)" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 63, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 71, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 73, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8.0 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 81, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 83, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-select c1, c13, c14, c15, c16, c17 from t9 order by c1 ;
-c1 c13 c14 c15 c16 c17
-20 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-21 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-22 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-23 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-30 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-31 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-32 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-33 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-40 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-41 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-42 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-43 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-50 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-51 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-52 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-53 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-60 NULL NULL 1991-01-01 01:01:01 NULL NULL
-61 NULL NULL 1991-01-01 01:01:01 NULL NULL
-62 NULL NULL 1991-01-01 01:01:01 NULL NULL
-63 NULL NULL 1991-01-01 01:01:01 NULL NULL
-71 NULL NULL 1991-01-01 01:01:01 NULL NULL
-73 NULL NULL 1991-01-01 01:01:01 NULL NULL
-81 NULL NULL 1991-01-01 01:01:01 NULL NULL
-83 NULL NULL 1991-01-01 01:01:01 NULL NULL
-test_sequence
--- select .. where date/time column = .. --
-set @arg00= '1991-01-01 01:01:01' ;
-select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 01:01:01' AS DATE) and c14= '1991-01-01 01:01:01' and
-c15= '1991-01-01 01:01:01' and
-c17= '1991-01-01 01:01:01' ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c13= CAST(@arg00 AS DATE) and c14= @arg00 and c15= @arg00
-and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 01:01:01' AS DATE) and c14= '1991-01-01 01:01:01' and
- c15= '1991-01-01 01:01:01' and
- c17= '1991-01-01 01:01:01'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST(? AS DATE) and c14= ? and c15= ? and c17= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= CAST('1991-01-01 01:01:01' as datetime) ;
-select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 00:00:00' as datetime) and
-c14= CAST('1991-01-01 01:01:01' as datetime) and
-c15= CAST('1991-01-01 01:01:01' as datetime) and
-c17= CAST('1991-01-01 01:01:01' as datetime) ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c13= CAST(@arg00 AS DATE) and c14= @arg00 and c15= @arg00
-and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 00:00:00' as datetime) and
- c14= CAST('1991-01-01 01:01:01' as datetime) and
- c15= CAST('1991-01-01 01:01:01' as datetime) and
- c17= CAST('1991-01-01 01:01:01' as datetime)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST(? AS DATE) and c14= ? and c15= ? and c17= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= '01:01:01' ;
-select 'true' as found from t9 where c1= 20 and c16= '01:01:01' ;
-found
-true
-select 'true' as found from t9 where c1= 20 and c16= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= '01:01:01'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= CAST('01:01:01' as time) ;
-select 'true' as found from t9 where c1= 20 and c16= CAST('01:01:01' as time) ;
-found
-true
-select 'true' as found from t9 where c1= 20 and c16= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= CAST('01:01:01' as time)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= 1991 ;
-select 'true' as found from t9
-where c1= 20 and c17= 1991 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c17= 1991" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c17= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= 1.991e+3 ;
-select 'true' as found from t9
-where c1= 20 and abs(c17 - 1.991e+3) < 0.01 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and abs(c17 - @arg00) < 0.01 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and abs(c17 - 1.991e+3) < 0.01" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and abs(c17 - ?) < 0.01" ;
-execute stmt1 using @arg00 ;
-found
-true
-drop table t1, t9;
diff --git a/mysql-test/r/ps_4heap.result b/mysql-test/r/ps_4heap.result
deleted file mode 100644
index 46b4d9c58e5..00000000000
--- a/mysql-test/r/ps_4heap.result
+++ /dev/null
@@ -1,3476 +0,0 @@
-use test;
-drop table if exists t1, t9 ;
-create table t1
-(
-a int, b varchar(30),
-primary key(a)
-) engine = 'HEAP' ;
-drop table if exists t9;
-create table t9
-(
-c1 tinyint, c2 smallint, c3 mediumint, c4 int,
-c5 integer, c6 bigint, c7 float, c8 double,
-c9 double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
-c13 date, c14 datetime, c15 timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
-ON UPDATE CURRENT_TIMESTAMP, c16 time,
-c17 year, c18 tinyint, c19 bool, c20 char,
-c21 char(10), c22 varchar(30), c23 varchar(100), c24 varchar(100),
-c25 varchar(100), c26 varchar(100), c27 varchar(100), c28 varchar(100),
-c29 varchar(100), c30 varchar(100), c31 enum('one', 'two', 'three'),
-c32 set('monday', 'tuesday', 'wednesday'),
-primary key(c1)
-) engine = 'HEAP' ;
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-test_sequence
------- simple select tests ------
-prepare stmt1 from ' select * from t9 order by c1 ' ;
-execute stmt1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t9 t9 c1 c1 1 4 1 N 53251 0 63
-def test t9 t9 c2 c2 2 6 1 Y 32768 0 63
-def test t9 t9 c3 c3 9 9 1 Y 32768 0 63
-def test t9 t9 c4 c4 3 11 1 Y 32768 0 63
-def test t9 t9 c5 c5 3 11 1 Y 32768 0 63
-def test t9 t9 c6 c6 8 20 1 Y 32768 0 63
-def test t9 t9 c7 c7 4 12 1 Y 32768 31 63
-def test t9 t9 c8 c8 5 22 1 Y 32768 31 63
-def test t9 t9 c9 c9 5 22 1 Y 32768 31 63
-def test t9 t9 c10 c10 5 22 1 Y 32768 31 63
-def test t9 t9 c11 c11 246 9 6 Y 32768 4 63
-def test t9 t9 c12 c12 246 10 6 Y 32768 4 63
-def test t9 t9 c13 c13 10 10 10 Y 128 0 63
-def test t9 t9 c14 c14 12 19 19 Y 128 0 63
-def test t9 t9 c15 c15 7 19 19 N 9377 0 63
-def test t9 t9 c16 c16 11 10 8 Y 128 0 63
-def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
-def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
-def test t9 t9 c19 c19 1 1 1 Y 32768 0 63
-def test t9 t9 c20 c20 254 1 1 Y 0 0 8
-def test t9 t9 c21 c21 254 10 10 Y 0 0 8
-def test t9 t9 c22 c22 253 30 30 Y 0 0 8
-def test t9 t9 c23 c23 253 100 8 Y 0 0 8
-def test t9 t9 c24 c24 253 100 8 Y 0 0 8
-def test t9 t9 c25 c25 253 100 4 Y 0 0 8
-def test t9 t9 c26 c26 253 100 4 Y 0 0 8
-def test t9 t9 c27 c27 253 100 10 Y 0 0 8
-def test t9 t9 c28 c28 253 100 10 Y 0 0 8
-def test t9 t9 c29 c29 253 100 8 Y 0 0 8
-def test t9 t9 c30 c30 253 100 8 Y 0 0 8
-def test t9 t9 c31 c31 254 5 3 Y 256 0 8
-def test t9 t9 c32 c32 254 24 7 Y 2048 0 8
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30 c31 c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-9 9 9 9 9 9 9 9 9 9 9.0000 9.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 0 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext two tuesday
-set @arg00='SELECT' ;
-@arg00 a from t1 where a=1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 a from t1 where a=1' at line 1
-prepare stmt1 from ' ? a from t1 where a=1 ';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? a from t1 where a=1' at line 1
-set @arg00=1 ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-1 one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-1 one
-set @arg00='lion' ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-lion one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-lion one
-set @arg00=NULL ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-NULL one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-NULL one
-set @arg00=1 ;
-select b, a - @arg00 from t1 where a=1 ;
-b a - @arg00
-one 0
-prepare stmt1 from ' select b, a - ? from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-b a - ?
-one 0
-set @arg00=null ;
-select @arg00 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select ? as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-select @arg00 + 1 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select ? + 1 as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-select 1 + @arg00 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select 1 + ? as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-set @arg00='MySQL' ;
-select substr(@arg00,1,2) from t1 where a=1 ;
-substr(@arg00,1,2)
-My
-prepare stmt1 from ' select substr(?,1,2) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr(?,1,2)
-My
-set @arg00=3 ;
-select substr('MySQL',@arg00,5) from t1 where a=1 ;
-substr('MySQL',@arg00,5)
-SQL
-prepare stmt1 from ' select substr(''MySQL'',?,5) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr('MySQL',?,5)
-SQL
-select substr('MySQL',1,@arg00) from t1 where a=1 ;
-substr('MySQL',1,@arg00)
-MyS
-prepare stmt1 from ' select substr(''MySQL'',1,?) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr('MySQL',1,?)
-MyS
-set @arg00='MySQL' ;
-select a , concat(@arg00,b) from t1 order by a;
-a concat(@arg00,b)
-1 MySQLone
-2 MySQLtwo
-3 MySQLthree
-4 MySQLfour
-prepare stmt1 from ' select a , concat(?,b) from t1 order by a ' ;
-execute stmt1 using @arg00;
-a concat(?,b)
-1 MySQLone
-2 MySQLtwo
-3 MySQLthree
-4 MySQLfour
-select a , concat(b,@arg00) from t1 order by a ;
-a concat(b,@arg00)
-1 oneMySQL
-2 twoMySQL
-3 threeMySQL
-4 fourMySQL
-prepare stmt1 from ' select a , concat(b,?) from t1 order by a ' ;
-execute stmt1 using @arg00;
-a concat(b,?)
-1 oneMySQL
-2 twoMySQL
-3 threeMySQL
-4 fourMySQL
-set @arg00='MySQL' ;
-select group_concat(@arg00,b order by a) from t1
-group by 'a' ;
-group_concat(@arg00,b order by a)
-MySQLone,MySQLtwo,MySQLthree,MySQLfour
-prepare stmt1 from ' select group_concat(?,b order by a) from t1
-group by ''a'' ' ;
-execute stmt1 using @arg00;
-group_concat(?,b order by a)
-MySQLone,MySQLtwo,MySQLthree,MySQLfour
-select group_concat(b,@arg00 order by a) from t1
-group by 'a' ;
-group_concat(b,@arg00 order by a)
-oneMySQL,twoMySQL,threeMySQL,fourMySQL
-prepare stmt1 from ' select group_concat(b,? order by a) from t1
-group by ''a'' ' ;
-execute stmt1 using @arg00;
-group_concat(b,? order by a)
-oneMySQL,twoMySQL,threeMySQL,fourMySQL
-set @arg00='first' ;
-set @arg01='second' ;
-set @arg02=NULL;
-select @arg00, @arg01 from t1 where a=1 ;
-@arg00 @arg01
-first second
-prepare stmt1 from ' select ?, ? from t1 where a=1 ' ;
-execute stmt1 using @arg00, @arg01 ;
-? ?
-first second
-execute stmt1 using @arg02, @arg01 ;
-? ?
-NULL second
-execute stmt1 using @arg00, @arg02 ;
-? ?
-first NULL
-execute stmt1 using @arg02, @arg02 ;
-? ?
-NULL NULL
-drop table if exists t5 ;
-create table t5 (id1 int(11) not null default '0',
-value2 varchar(100), value1 varchar(100)) ;
-insert into t5 values (1,'hh','hh'),(2,'hh','hh'),
-(1,'ii','ii'),(2,'ii','ii') ;
-prepare stmt1 from ' select id1,value1 from t5 where id1=? or value1=? order by id1,value1 ' ;
-set @arg00=1 ;
-set @arg01='hh' ;
-execute stmt1 using @arg00, @arg01 ;
-id1 value1
-1 hh
-1 ii
-2 hh
-drop table t5 ;
-drop table if exists t5 ;
-create table t5(session_id char(9) not null) ;
-insert into t5 values ('abc') ;
-prepare stmt1 from ' select * from t5
-where ?=''1111'' and session_id = ''abc'' ' ;
-set @arg00='abc' ;
-execute stmt1 using @arg00 ;
-session_id
-set @arg00='1111' ;
-execute stmt1 using @arg00 ;
-session_id
-abc
-set @arg00='abc' ;
-execute stmt1 using @arg00 ;
-session_id
-drop table t5 ;
-set @arg00='FROM' ;
-select a @arg00 t1 where a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 t1 where a=1' at line 1
-prepare stmt1 from ' select a ? t1 where a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? t1 where a=1' at line 1
-set @arg00='t1' ;
-select a from @arg00 where a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 where a=1' at line 1
-prepare stmt1 from ' select a from ? where a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? where a=1' at line 1
-set @arg00='WHERE' ;
-select a from t1 @arg00 a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 a=1' at line 1
-prepare stmt1 from ' select a from t1 ? a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? a=1' at line 1
-set @arg00=1 ;
-select a FROM t1 where a=@arg00 ;
-a
-1
-prepare stmt1 from ' select a FROM t1 where a=? ' ;
-execute stmt1 using @arg00 ;
-a
-1
-set @arg00=1000 ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=NULL ;
-select a FROM t1 where a=@arg00 ;
-a
-prepare stmt1 from ' select a FROM t1 where a=? ' ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=4 ;
-select a FROM t1 where a=sqrt(@arg00) ;
-a
-2
-prepare stmt1 from ' select a FROM t1 where a=sqrt(?) ' ;
-execute stmt1 using @arg00 ;
-a
-2
-set @arg00=NULL ;
-select a FROM t1 where a=sqrt(@arg00) ;
-a
-prepare stmt1 from ' select a FROM t1 where a=sqrt(?) ' ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=2 ;
-set @arg01=3 ;
-select a FROM t1 where a in (@arg00,@arg01) order by a;
-a
-2
-3
-prepare stmt1 from ' select a FROM t1 where a in (?,?) order by a ';
-execute stmt1 using @arg00, @arg01;
-a
-2
-3
-set @arg00= 'one' ;
-set @arg01= 'two' ;
-set @arg02= 'five' ;
-prepare stmt1 from ' select b FROM t1 where b in (?,?,?) order by b ' ;
-execute stmt1 using @arg00, @arg01, @arg02 ;
-b
-one
-two
-prepare stmt1 from ' select b FROM t1 where b like ? ';
-set @arg00='two' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00='tw%' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00='%wo' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00=null ;
-insert into t9 set c1= 0, c5 = NULL ;
-select c5 from t9 where c5 > NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 > ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 < NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 < ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 = NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 = ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 <=> NULL ;
-c5
-NULL
-prepare stmt1 from ' select c5 from t9 where c5 <=> ? ';
-execute stmt1 using @arg00 ;
-c5
-NULL
-delete from t9 where c1= 0 ;
-set @arg00='>' ;
-select a FROM t1 where a @arg00 1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 1' at line 1
-prepare stmt1 from ' select a FROM t1 where a ? 1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? 1' at line 1
-set @arg00=1 ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL group by a - @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL group by a - ? ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00='two' ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL having b <> @arg00 order by a ;
-a b
-1 one
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL having b <> ? order by a ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-3 three
-4 four
-set @arg00=1 ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL order by a - @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL order by a - ? ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=2 ;
-select a,b from t1 order by 2 ;
-a b
-4 four
-1 one
-3 three
-2 two
-prepare stmt1 from ' select a,b from t1
-order by ? ';
-execute stmt1 using @arg00;
-a b
-4 four
-1 one
-3 three
-2 two
-set @arg00=1 ;
-execute stmt1 using @arg00;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=0 ;
-execute stmt1 using @arg00;
-ERROR 42S22: Unknown column '?' in 'order clause'
-set @arg00=1;
-prepare stmt1 from ' select a,b from t1 order by a
-limit 1 ';
-execute stmt1 ;
-a b
-1 one
-prepare stmt1 from ' select a,b from t1 order by a limit ? ';
-execute stmt1 using @arg00;
-a b
-1 one
-set @arg00='b' ;
-set @arg01=0 ;
-set @arg02=2 ;
-set @arg03=2 ;
-select sum(a), @arg00 from t1 where a > @arg01
-and b is not null group by substr(b,@arg02)
-having sum(a) <> @arg03 ;
-sum(a) @arg00
-3 b
-1 b
-4 b
-prepare stmt1 from ' select sum(a), ? from t1 where a > ?
-and b is not null group by substr(b,?)
-having sum(a) <> ? ';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03;
-sum(a) ?
-3 b
-1 b
-4 b
-test_sequence
------- join tests ------
-select first.a as a1, second.a as a2
-from t1 first, t1 second
-where first.a = second.a order by a1 ;
-a1 a2
-1 1
-2 2
-3 3
-4 4
-prepare stmt1 from ' select first.a as a1, second.a as a2
- from t1 first, t1 second
- where first.a = second.a order by a1 ';
-execute stmt1 ;
-a1 a2
-1 1
-2 2
-3 3
-4 4
-set @arg00='ABC';
-set @arg01='two';
-set @arg02='one';
-select first.a, @arg00, second.a FROM t1 first, t1 second
-where @arg01 = first.b or first.a = second.a or second.b = @arg02
-order by second.a, first.a;
-a @arg00 a
-1 ABC 1
-2 ABC 1
-3 ABC 1
-4 ABC 1
-2 ABC 2
-2 ABC 3
-3 ABC 3
-2 ABC 4
-4 ABC 4
-prepare stmt1 from ' select first.a, ?, second.a FROM t1 first, t1 second
- where ? = first.b or first.a = second.a or second.b = ?
- order by second.a, first.a';
-execute stmt1 using @arg00, @arg01, @arg02;
-a ? a
-1 ABC 1
-2 ABC 1
-3 ABC 1
-4 ABC 1
-2 ABC 2
-2 ABC 3
-3 ABC 3
-2 ABC 4
-4 ABC 4
-drop table if exists t2 ;
-create table t2 as select * from t1 ;
-set @query1= 'SELECT * FROM t2 join t1 on (t1.a=t2.a) order by t2.a ' ;
-set @query2= 'SELECT * FROM t2 natural join t1 order by t2.a ' ;
-set @query3= 'SELECT * FROM t2 join t1 using(a) order by t2.a ' ;
-set @query4= 'SELECT * FROM t2 left join t1 on(t1.a=t2.a) order by t2.a ' ;
-set @query5= 'SELECT * FROM t2 natural left join t1 order by t2.a ' ;
-set @query6= 'SELECT * FROM t2 left join t1 using(a) order by t2.a ' ;
-set @query7= 'SELECT * FROM t2 right join t1 on(t1.a=t2.a) order by t2.a ' ;
-set @query8= 'SELECT * FROM t2 natural right join t1 order by t2.a ' ;
-set @query9= 'SELECT * FROM t2 right join t1 using(a) order by t2.a ' ;
-the join statement is:
-SELECT * FROM t2 right join t1 using(a) order by t2.a
-prepare stmt1 from @query9 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural right join t1 order by t2.a
-prepare stmt1 from @query8 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 right join t1 on(t1.a=t2.a) order by t2.a
-prepare stmt1 from @query7 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-the join statement is:
-SELECT * FROM t2 left join t1 using(a) order by t2.a
-prepare stmt1 from @query6 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural left join t1 order by t2.a
-prepare stmt1 from @query5 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 left join t1 on(t1.a=t2.a) order by t2.a
-prepare stmt1 from @query4 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-the join statement is:
-SELECT * FROM t2 join t1 using(a) order by t2.a
-prepare stmt1 from @query3 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural join t1 order by t2.a
-prepare stmt1 from @query2 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 join t1 on (t1.a=t2.a) order by t2.a
-prepare stmt1 from @query1 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-drop table t2 ;
-test_sequence
------- subquery tests ------
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ''two'') ';
-execute stmt1 ;
-a b
-2 two
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = 'two' ) and b=@arg00 ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ''two'') and b=? ';
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = @arg00 ) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ? ) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=3 ;
-set @arg01='three' ;
-select a,b FROM t1 where (a,b) in (select 3, 'three');
-a b
-3 three
-select a FROM t1 where (a,b) in (select @arg00,@arg01);
-a
-3
-prepare stmt1 from ' select a FROM t1 where (a,b) in (select ?, ?) ';
-execute stmt1 using @arg00, @arg01;
-a
-3
-set @arg00=1 ;
-set @arg01='two' ;
-set @arg02=2 ;
-set @arg03='two' ;
-select a, @arg00, b FROM t1 outer_table where
-b=@arg01 and a = (select @arg02 from t1 where b = @arg03 ) ;
-a @arg00 b
-2 1 two
-prepare stmt1 from ' select a, ?, b FROM t1 outer_table where
- b=? and a = (select ? from t1 where b = ? ) ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-a ? b
-2 1 two
-prepare stmt1 from 'select c4 FROM t9 where
- c13 = (select MAX(b) from t1 where a = ?) and c22 = ? ' ;
-execute stmt1 using @arg01, @arg02;
-c4
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = outer_table.b ) order by a ';
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = outer_table.b ) and b=@arg00 ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = outer_table.b) and b=? ';
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=2 ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where a = @arg00 and b = outer_table.b) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where a = ? and b = outer_table.b) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=2 ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where outer_table.a = @arg00 and a=2) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where outer_table.a = ? and a=2) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=1 ;
-set @arg01='two' ;
-set @arg02=2 ;
-set @arg03='two' ;
-select a, @arg00, b FROM t1 outer_table where
-b=@arg01 and a = (select @arg02 from t1 where outer_table.b = @arg03
-and outer_table.a=a ) ;
-a @arg00 b
-2 1 two
-prepare stmt1 from ' select a, ?, b FROM t1 outer_table where
- b=? and a = (select ? from t1 where outer_table.b = ?
- and outer_table.a=a ) ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-a ? b
-2 1 two
-set @arg00=1 ;
-set @arg01=0 ;
-select a, @arg00
-from ( select a - @arg00 as a from t1 where a=@arg00 ) as t2
-where a=@arg01;
-a @arg00
-0 1
-prepare stmt1 from ' select a, ?
- from ( select a - ? as a from t1 where a=? ) as t2
- where a=? ';
-execute stmt1 using @arg00, @arg00, @arg00, @arg01 ;
-a ?
-0 1
-drop table if exists t2 ;
-create table t2 as select * from t1;
-prepare stmt1 from ' select a in (select a from t2) from t1 ' ;
-execute stmt1 ;
-a in (select a from t2)
-1
-1
-1
-1
-drop table if exists t5, t6, t7 ;
-create table t5 (a int , b int) ;
-create table t6 like t5 ;
-create table t7 like t5 ;
-insert into t5 values (0, 100), (1, 2), (1, 3), (2, 2), (2, 7),
-(2, -1), (3, 10) ;
-insert into t6 values (0, 0), (1, 1), (2, 1), (3, 1), (4, 1) ;
-insert into t7 values (3, 3), (2, 2), (1, 1) ;
-prepare stmt1 from ' select a, (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1) from t7 ' ;
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-drop table t5, t6, t7 ;
-drop table if exists t2 ;
-create table t2 as select * from t9;
-set @stmt= ' SELECT
- (SELECT SUM(c1 + c12 + 0.0) FROM t2
- where (t9.c2 - 0e-3) = t2.c2
- GROUP BY t9.c15 LIMIT 1) as scalar_s,
- exists (select 1.0e+0 from t2
- where t2.c3 * 9.0000000000 = t9.c4) as exists_s,
- c5 * 4 in (select c6 + 0.3e+1 from t2) as in_s,
- (c7 - 4, c8 - 4) in (select c9 + 4.0, c10 + 40e-1 from t2) as in_row_s
-FROM t9,
-(select c25 x, c32 y from t2) tt WHERE x = c25 ' ;
-prepare stmt1 from @stmt ;
-execute stmt1 ;
-execute stmt1 ;
-set @stmt= concat('explain ',@stmt);
-prepare stmt1 from @stmt ;
-execute stmt1 ;
-execute stmt1 ;
-set @stmt= ' SELECT
- (SELECT SUM(c1+c12+?) FROM t2 where (t9.c2-?)=t2.c2
- GROUP BY t9.c15 LIMIT 1) as scalar_s,
- exists (select ? from t2
- where t2.c3*?=t9.c4) as exists_s,
- c5*? in (select c6+? from t2) as in_s,
- (c7-?, c8-?) in (select c9+?, c10+? from t2) as in_row_s
-FROM t9,
-(select c25 x, c32 y from t2) tt WHERE x =c25 ' ;
-set @arg00= 0.0 ;
-set @arg01= 0e-3 ;
-set @arg02= 1.0e+0 ;
-set @arg03= 9.0000000000 ;
-set @arg04= 4 ;
-set @arg05= 0.3e+1 ;
-set @arg06= 4 ;
-set @arg07= 4 ;
-set @arg08= 4.0 ;
-set @arg09= 40e-1 ;
-prepare stmt1 from @stmt ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-set @stmt= concat('explain ',@stmt);
-prepare stmt1 from @stmt ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-drop table t2 ;
-select 1 < (select a from t1) ;
-ERROR 21000: Subquery returns more than 1 row
-prepare stmt1 from ' select 1 < (select a from t1) ' ;
-execute stmt1 ;
-ERROR 21000: Subquery returns more than 1 row
-select 1 as my_col ;
-my_col
-1
-test_sequence
------- union tests ------
-prepare stmt1 from ' select a FROM t1 where a=1
- union distinct
- select a FROM t1 where a=1 ';
-execute stmt1 ;
-a
-1
-execute stmt1 ;
-a
-1
-prepare stmt1 from ' select a FROM t1 where a=1
- union all
- select a FROM t1 where a=1 ';
-execute stmt1 ;
-a
-1
-1
-prepare stmt1 from ' SELECT 1, 2 union SELECT 1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT 1 union SELECT 1, 2 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT * from t1 union SELECT 1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT 1 union SELECT * from t1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-set @arg00=1 ;
-select @arg00 FROM t1 where a=1
-union distinct
-select 1 FROM t1 where a=1;
-@arg00
-1
-prepare stmt1 from ' select ? FROM t1 where a=1
- union distinct
- select 1 FROM t1 where a=1 ' ;
-execute stmt1 using @arg00;
-?
-1
-set @arg00=1 ;
-select 1 FROM t1 where a=1
-union distinct
-select @arg00 FROM t1 where a=1;
-1
-1
-prepare stmt1 from ' select 1 FROM t1 where a=1
- union distinct
- select ? FROM t1 where a=1 ' ;
-execute stmt1 using @arg00;
-1
-1
-set @arg00='a' ;
-select @arg00 FROM t1 where a=1
-union distinct
-select @arg00 FROM t1 where a=1;
-@arg00
-a
-prepare stmt1 from ' select ? FROM t1 where a=1
- union distinct
- select ? FROM t1 where a=1 ';
-execute stmt1 using @arg00, @arg00;
-?
-a
-prepare stmt1 from ' select ?
- union distinct
- select ? ';
-execute stmt1 using @arg00, @arg00;
-?
-a
-set @arg00='a' ;
-set @arg01=1 ;
-set @arg02='a' ;
-set @arg03=2 ;
-select @arg00 FROM t1 where a=@arg01
-union distinct
-select @arg02 FROM t1 where a=@arg03;
-@arg00
-a
-prepare stmt1 from ' select ? FROM t1 where a=?
- union distinct
- select ? FROM t1 where a=? ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03;
-?
-a
-set @arg00=1 ;
-prepare stmt1 from ' select sum(a) + 200, ? from t1
-union distinct
-select sum(a) + 200, 1 from t1
-group by b ' ;
-execute stmt1 using @arg00;
-sum(a) + 200 ?
-210 1
-204 1
-201 1
-203 1
-202 1
-set @Oporto='Oporto' ;
-set @Lisboa='Lisboa' ;
-set @0=0 ;
-set @1=1 ;
-set @2=2 ;
-set @3=3 ;
-set @4=4 ;
-select @Oporto,@Lisboa,@0,@1,@2,@3,@4 ;
-@Oporto @Lisboa @0 @1 @2 @3 @4
-Oporto Lisboa 0 1 2 3 4
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-group by b
-union distinct
-select sum(a) + 200, @Lisboa from t1
-group by b ;
-the_sum the_town
-204 Oporto
-201 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-201 Lisboa
-203 Lisboa
-202 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- group by b
- union distinct
- select sum(a) + 200, ? from t1
- group by b ' ;
-execute stmt1 using @Oporto, @Lisboa;
-the_sum the_town
-204 Oporto
-201 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-201 Lisboa
-203 Lisboa
-202 Lisboa
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-where a > @1
-group by b
-union distinct
-select sum(a) + 200, @Lisboa from t1
-where a > @2
-group by b ;
-the_sum the_town
-204 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-203 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- where a > ?
- group by b
- union distinct
- select sum(a) + 200, ? from t1
- where a > ?
- group by b ' ;
-execute stmt1 using @Oporto, @1, @Lisboa, @2;
-the_sum the_town
-204 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-203 Lisboa
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-where a > @1
-group by b
-having avg(a) > @2
-union distinct
-select sum(a) + 200, @Lisboa from t1
-where a > @2
-group by b
-having avg(a) > @3;
-the_sum the_town
-204 Oporto
-203 Oporto
-204 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- where a > ?
- group by b
- having avg(a) > ?
- union distinct
- select sum(a) + 200, ? from t1
- where a > ?
- group by b
- having avg(a) > ? ';
-execute stmt1 using @Oporto, @1, @2, @Lisboa, @2, @3;
-the_sum the_town
-204 Oporto
-203 Oporto
-204 Lisboa
-test_sequence
------- explain select tests ------
-prepare stmt1 from ' explain select * from t9 ' ;
-execute stmt1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def id 8 3 1 Y 32928 0 63
-def select_type 253 19 6 N 1 39 8
-def table 253 64 2 Y 0 39 8
-def type 253 10 3 Y 0 39 8
-def possible_keys 253 4_OR_8_K 0 Y 0 39 8
-def key 253 64 0 Y 0 39 8
-def key_len 253 4_OR_8_K 0 Y 0 39 8
-def ref 253 2048 0 Y 0 39 8
-def rows 8 10 1 Y 32928 0 63
-def Extra 253 255 0 N 1 39 8
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t9 ALL NULL NULL NULL NULL 2
-test_sequence
------- delete tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'delete from t1 where a=2' ;
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-execute stmt1;
-insert into t1 values(0,NULL);
-set @arg00=NULL;
-prepare stmt1 from 'delete from t1 where b=?' ;
-execute stmt1 using @arg00;
-select a,b from t1 where b is NULL ;
-a b
-0 NULL
-set @arg00='one';
-execute stmt1 using @arg00;
-select a,b from t1 where b=@arg00;
-a b
-prepare stmt1 from 'truncate table t1' ;
-test_sequence
------- update tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'update t1 set b=''a=two'' where a=2' ;
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-2 a=two
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-2 a=two
-set @arg00=NULL;
-prepare stmt1 from 'update t1 set b=? where a=2' ;
-execute stmt1 using @arg00;
-select a,b from t1 where a=2;
-a b
-2 NULL
-set @arg00='two';
-execute stmt1 using @arg00;
-select a,b from t1 where a=2;
-a b
-2 two
-set @arg00=2;
-prepare stmt1 from 'update t1 set b=NULL where a=?' ;
-execute stmt1 using @arg00;
-select a,b from t1 where a=@arg00;
-a b
-2 NULL
-update t1 set b='two' where a=@arg00;
-set @arg00=2000;
-execute stmt1 using @arg00;
-select a,b from t1 where a=@arg00;
-a b
-set @arg00=2;
-set @arg01=22;
-prepare stmt1 from 'update t1 set a=? where a=?' ;
-execute stmt1 using @arg00, @arg00;
-select a,b from t1 where a=@arg00;
-a b
-2 two
-execute stmt1 using @arg01, @arg00;
-select a,b from t1 where a=@arg01;
-a b
-22 two
-execute stmt1 using @arg00, @arg01;
-select a,b from t1 where a=@arg00;
-a b
-2 two
-set @arg00=NULL;
-set @arg01=2;
-set sql_mode = '';
-execute stmt1 using @arg00, @arg01;
-Warnings:
-Warning 1048 Column 'a' cannot be null
-set sql_mode = default;
-select a,b from t1 order by a;
-a b
-0 two
-1 one
-3 three
-4 four
-set @arg00=0;
-execute stmt1 using @arg01, @arg00;
-select a,b from t1 order by a;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=23;
-set @arg01='two';
-set @arg02=2;
-set @arg03='two';
-set @arg04=2;
-drop table if exists t2;
-create table t2 as select a,b from t1 ;
-prepare stmt1 from 'update t1 set a=? where b=?
- and a in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 where a = @arg00 ;
-a b
-23 two
-prepare stmt1 from 'update t1 set a=? where b=?
- and a not in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 order by a ;
-a b
-1 one
-2 two
-3 three
-4 four
-drop table t2 ;
-create table t2
-(
-a int, b varchar(30),
-primary key(a)
-) engine = 'HEAP' ;
-insert into t2(a,b) select a, b from t1 ;
-prepare stmt1 from 'update t1 set a=? where b=?
- and a in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 where a = @arg00 ;
-a b
-23 two
-prepare stmt1 from 'update t1 set a=? where b=?
- and a not in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 order by a ;
-a b
-1 one
-2 two
-3 three
-4 four
-drop table t2 ;
-set @arg00=1;
-prepare stmt1 from 'update t1 set b=''bla''
-where a=2
-limit 1';
-execute stmt1 ;
-select a,b from t1 where b = 'bla' ;
-a b
-2 bla
-prepare stmt1 from 'update t1 set b=''bla'' where a=2 limit ?';
-execute stmt1 using @arg00;
-test_sequence
------- insert tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'insert into t1 values(5, ''five'' )';
-execute stmt1;
-select a,b from t1 where a = 5;
-a b
-5 five
-set @arg00='six' ;
-prepare stmt1 from 'insert into t1 values(6, ? )';
-execute stmt1 using @arg00;
-select a,b from t1 where b = @arg00;
-a b
-6 six
-execute stmt1 using @arg00;
-ERROR 23000: Duplicate entry '6' for key 'PRIMARY'
-set @arg00=NULL ;
-prepare stmt1 from 'insert into t1 values(0, ? )';
-execute stmt1 using @arg00;
-select a,b from t1 where b is NULL;
-a b
-0 NULL
-set @arg00=8 ;
-set @arg01='eight' ;
-prepare stmt1 from 'insert into t1 values(?, ? )';
-execute stmt1 using @arg00, @arg01 ;
-select a,b from t1 where b = @arg01;
-a b
-8 eight
-set @NULL= null ;
-set @arg00= 'abc' ;
-execute stmt1 using @NULL, @NULL ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @NULL ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @arg00 ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @arg00 ;
-ERROR 23000: Column 'a' cannot be null
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @arg00 ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @arg00 ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 abc
-10002 abc
-delete from t1 where a > 10000 ;
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @NULL ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @NULL ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 NULL
-10002 NULL
-delete from t1 where a > 10000 ;
-set @arg01= 10000 + 10 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 9 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 8 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 7 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 6 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 5 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 4 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 3 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @arg01 ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 10001
-10002 10002
-10003 10003
-10004 10004
-10005 10005
-10006 10006
-10007 10007
-10008 10008
-10009 10009
-10010 10010
-delete from t1 where a > 10000 ;
-set @arg00=81 ;
-set @arg01='8-1' ;
-set @arg02=82 ;
-set @arg03='8-2' ;
-prepare stmt1 from 'insert into t1 values(?,?),(?,?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-select a,b from t1 where a in (@arg00,@arg02) ;
-a b
-81 8-1
-82 8-2
-set @arg00=9 ;
-set @arg01='nine' ;
-prepare stmt1 from 'insert into t1 set a=?, b=? ';
-execute stmt1 using @arg00, @arg01 ;
-select a,b from t1 where a = @arg00 ;
-a b
-9 nine
-set @arg00=6 ;
-set @arg01=1 ;
-prepare stmt1 from 'insert into t1 set a=?, b=''sechs''
- on duplicate key update a=a + ?, b=concat(b,''modified'') ';
-execute stmt1 using @arg00, @arg01;
-select * from t1 order by a;
-a b
-0 NULL
-1 one
-2 two
-3 three
-4 four
-5 five
-7 sixmodified
-8 eight
-9 nine
-81 8-1
-82 8-2
-set @arg00=81 ;
-set @arg01=1 ;
-execute stmt1 using @arg00, @arg01;
-ERROR 23000: Duplicate entry '82' for key 'PRIMARY'
-drop table if exists t2 ;
-create table t2 (id int auto_increment primary key)
-ENGINE= 'HEAP' ;
-prepare stmt1 from ' select last_insert_id() ' ;
-insert into t2 values (NULL) ;
-execute stmt1 ;
-last_insert_id()
-1
-insert into t2 values (NULL) ;
-execute stmt1 ;
-last_insert_id()
-2
-drop table t2 ;
-set @1000=1000 ;
-set @x1000_2="x1000_2" ;
-set @x1000_3="x1000_3" ;
-set @x1000="x1000" ;
-set @1100=1100 ;
-set @x1100="x1100" ;
-set @100=100 ;
-set @updated="updated" ;
-insert into t1 values(1000,'x1000_1') ;
-insert into t1 values(@1000,@x1000_2),(@1000,@x1000_3)
-on duplicate key update a = a + @100, b = concat(b,@updated) ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 x1000_3
-1100 x1000_1updated
-delete from t1 where a >= 1000 ;
-insert into t1 values(1000,'x1000_1') ;
-prepare stmt1 from ' insert into t1 values(?,?),(?,?)
- on duplicate key update a = a + ?, b = concat(b,?) ';
-execute stmt1 using @1000, @x1000_2, @1000, @x1000_3, @100, @updated ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 x1000_3
-1100 x1000_1updated
-delete from t1 where a >= 1000 ;
-insert into t1 values(1000,'x1000_1') ;
-execute stmt1 using @1000, @x1000_2, @1100, @x1000_3, @100, @updated ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1200 x1000_1updatedupdated
-delete from t1 where a >= 1000 ;
-prepare stmt1 from ' replace into t1 (a,b) select 100, ''hundred'' ';
-execute stmt1;
-execute stmt1;
-execute stmt1;
-test_sequence
------- multi table tests ------
-delete from t1 ;
-delete from t9 ;
-insert into t1(a,b) values (1, 'one'), (2, 'two'), (3, 'three') ;
-insert into t9 (c1,c21)
-values (1, 'one'), (2, 'two'), (3, 'three') ;
-prepare stmt_delete from " delete t1, t9
- from t1, t9 where t1.a=t9.c1 and t1.b='updated' ";
-prepare stmt_update from " update t1, t9
- set t1.b='updated', t9.c21='updated'
- where t1.a=t9.c1 and t1.a=? ";
-prepare stmt_select1 from " select a, b from t1 order by a" ;
-prepare stmt_select2 from " select c1, c21 from t9 order by c1" ;
-set @arg00= 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-2 two
-3 three
-execute stmt_select2 ;
-c1 c21
-2 two
-3 three
-set @arg00= @arg00 + 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-3 three
-execute stmt_select2 ;
-c1 c21
-3 three
-set @arg00= @arg00 + 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-execute stmt_select2 ;
-c1 c21
-set @arg00= @arg00 + 1 ;
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-insert into t1 values(0,NULL) ;
-set @duplicate='duplicate ' ;
-set @1000=1000 ;
-set @5=5 ;
-select a,b from t1 where a < 5 order by a ;
-a b
-0 NULL
-1 one
-2 two
-3 three
-4 four
-insert into t1 select a + @1000, concat(@duplicate,b) from t1
-where a < @5 ;
-affected rows: 5
-info: Records: 5 Duplicates: 0 Warnings: 0
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 NULL
-1001 duplicate one
-1002 duplicate two
-1003 duplicate three
-1004 duplicate four
-delete from t1 where a >= 1000 ;
-prepare stmt1 from ' insert into t1 select a + ?, concat(?,b) from t1
-where a < ? ' ;
-execute stmt1 using @1000, @duplicate, @5;
-affected rows: 5
-info: Records: 5 Duplicates: 0 Warnings: 0
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 NULL
-1001 duplicate one
-1002 duplicate two
-1003 duplicate three
-1004 duplicate four
-delete from t1 where a >= 1000 ;
-set @1=1 ;
-set @2=2 ;
-set @100=100 ;
-set @float=1.00;
-set @five='five' ;
-drop table if exists t2;
-create table t2 like t1 ;
-insert into t2 (b,a)
-select @duplicate, sum(first.a) from t1 first, t1 second
-where first.a <> @5 and second.b = first.b
-and second.b <> @five
-group by second.b
-having sum(second.a) > @2
-union
-select b, a + @100 from t1
-where (a,b) in ( select sqrt(a+@1)+CAST(@float AS signed),b
-from t1);
-affected rows: 3
-info: Records: 3 Duplicates: 0 Warnings: 0
-select a,b from t2 order by a ;
-a b
-3 duplicate
-4 duplicate
-103 three
-delete from t2 ;
-prepare stmt1 from ' insert into t2 (b,a)
-select ?, sum(first.a)
- from t1 first, t1 second
- where first.a <> ? and second.b = first.b and second.b <> ?
- group by second.b
- having sum(second.a) > ?
-union
-select b, a + ? from t1
- where (a,b) in ( select sqrt(a+?)+CAST(? AS signed),b
- from t1 ) ' ;
-execute stmt1 using @duplicate, @5, @five, @2, @100, @1, @float ;
-affected rows: 3
-info: Records: 3 Duplicates: 0 Warnings: 0
-select a,b from t2 order by a ;
-a b
-3 duplicate
-4 duplicate
-103 three
-drop table t2;
-drop table if exists t5 ;
-set @arg01= 8;
-set @arg02= 8.0;
-set @arg03= 80.00000000000e-1;
-set @arg04= 'abc' ;
-set @arg05= CAST('abc' as binary) ;
-set @arg06= '1991-08-05' ;
-set @arg07= CAST('1991-08-05' as date);
-set @arg08= '1991-08-05 01:01:01' ;
-set @arg09= CAST('1991-08-05 01:01:01' as datetime) ;
-set @arg10= unix_timestamp('1991-01-01 01:01:01');
-set @arg11= YEAR('1991-01-01 01:01:01');
-set @arg12= 8 ;
-set @arg12= NULL ;
-set @arg13= 8.0 ;
-set @arg13= NULL ;
-set @arg14= 'abc';
-set @arg14= NULL ;
-set @arg15= CAST('abc' as binary) ;
-set @arg15= NULL ;
-create table t5 engine = MyISAM as select
-8 as const01, @arg01 as param01,
-8.0 as const02, @arg02 as param02,
-80.00000000000e-1 as const03, @arg03 as param03,
-'abc' as const04, @arg04 as param04,
-CAST('abc' as binary) as const05, @arg05 as param05,
-'1991-08-05' as const06, @arg06 as param06,
-CAST('1991-08-05' as date) as const07, @arg07 as param07,
-'1991-08-05 01:01:01' as const08, @arg08 as param08,
-CAST('1991-08-05 01:01:01' as datetime) as const09, @arg09 as param09,
-unix_timestamp('1991-01-01 01:01:01') as const10, @arg10 as param10,
-YEAR('1991-01-01 01:01:01') as const11, @arg11 as param11,
-NULL as const12, @arg12 as param12,
-@arg13 as param13,
-@arg14 as param14,
-@arg15 as param15;
-show create table t5 ;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `const01` int(1) NOT NULL,
- `param01` bigint(20) DEFAULT NULL,
- `const02` decimal(2,1) NOT NULL,
- `param02` decimal(65,38) DEFAULT NULL,
- `const03` double NOT NULL,
- `param03` double DEFAULT NULL,
- `const04` varchar(3) NOT NULL,
- `param04` longtext DEFAULT NULL,
- `const05` varbinary(3) DEFAULT NULL,
- `param05` longblob DEFAULT NULL,
- `const06` varchar(10) NOT NULL,
- `param06` longtext DEFAULT NULL,
- `const07` date DEFAULT NULL,
- `param07` longtext DEFAULT NULL,
- `const08` varchar(19) NOT NULL,
- `param08` longtext DEFAULT NULL,
- `const09` datetime DEFAULT NULL,
- `param09` longtext DEFAULT NULL,
- `const10` bigint(17) DEFAULT NULL,
- `param10` bigint(20) DEFAULT NULL,
- `const11` int(4) DEFAULT NULL,
- `param11` bigint(20) DEFAULT NULL,
- `const12` binary(0) DEFAULT NULL,
- `param12` bigint(20) DEFAULT NULL,
- `param13` decimal(65,38) DEFAULT NULL,
- `param14` longtext DEFAULT NULL,
- `param15` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t5 ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t5 t5 const01 const01 3 1 1 N 36865 0 63
-def test t5 t5 param01 param01 8 20 1 Y 32768 0 63
-def test t5 t5 const02 const02 246 4 3 N 36865 1 63
-def test t5 t5 param02 param02 246 67 40 Y 32768 38 63
-def test t5 t5 const03 const03 5 17 1 N 36865 31 63
-def test t5 t5 param03 param03 5 23 1 Y 32768 31 63
-def test t5 t5 const04 const04 253 3 3 N 4097 0 8
-def test t5 t5 param04 param04 252 4294967295 3 Y 16 0 8
-def test t5 t5 const05 const05 253 3 3 Y 128 0 63
-def test t5 t5 param05 param05 252 4294967295 3 Y 144 0 63
-def test t5 t5 const06 const06 253 10 10 N 4097 0 8
-def test t5 t5 param06 param06 252 4294967295 10 Y 16 0 8
-def test t5 t5 const07 const07 10 10 10 Y 128 0 63
-def test t5 t5 param07 param07 252 4294967295 10 Y 16 0 8
-def test t5 t5 const08 const08 253 19 19 N 4097 0 8
-def test t5 t5 param08 param08 252 4294967295 19 Y 16 0 8
-def test t5 t5 const09 const09 12 19 19 Y 128 0 63
-def test t5 t5 param09 param09 252 4294967295 19 Y 16 0 8
-def test t5 t5 const10 const10 8 17 9 Y 32768 0 63
-def test t5 t5 param10 param10 8 20 9 Y 32768 0 63
-def test t5 t5 const11 const11 3 4 4 Y 32768 0 63
-def test t5 t5 param11 param11 8 20 4 Y 32768 0 63
-def test t5 t5 const12 const12 254 0 0 Y 128 0 63
-def test t5 t5 param12 param12 8 20 0 Y 32768 0 63
-def test t5 t5 param13 param13 246 67 0 Y 32768 38 63
-def test t5 t5 param14 param14 252 4294967295 0 Y 16 0 8
-def test t5 t5 param15 param15 252 4294967295 0 Y 144 0 63
-const01 8
-param01 8
-const02 8.0
-param02 8.00000000000000000000000000000000000000
-const03 8
-param03 8
-const04 abc
-param04 abc
-const05 abc
-param05 abc
-const06 1991-08-05
-param06 1991-08-05
-const07 1991-08-05
-param07 1991-08-05
-const08 1991-08-05 01:01:01
-param08 1991-08-05 01:01:01
-const09 1991-08-05 01:01:01
-param09 1991-08-05 01:01:01
-const10 662680861
-param10 662680861
-const11 1991
-param11 1991
-const12 NULL
-param12 NULL
-param13 NULL
-param14 NULL
-param15 NULL
-drop table t5 ;
-test_sequence
------- data type conversion tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-insert into t9 set c1= 0, c15= '1991-01-01 01:01:01' ;
-select * from t9 order by c1 ;
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30 c31 c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-9 9 9 9 9 9 9 9 9 9 9.0000 9.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 0 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext two tuesday
-test_sequence
------- select @parameter:= column ------
-prepare full_info from "select @arg01, @arg02, @arg03, @arg04,
- @arg05, @arg06, @arg07, @arg08,
- @arg09, @arg10, @arg11, @arg12,
- @arg13, @arg14, @arg15, @arg16,
- @arg17, @arg18, @arg19, @arg20,
- @arg21, @arg22, @arg23, @arg24,
- @arg25, @arg26, @arg27, @arg28,
- @arg29, @arg30, @arg31, @arg32" ;
-select @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
-@arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
-@arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
-@arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
-@arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
-@arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
-@arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
-@arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= 1 ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 0 39 8
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 0 39 8
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 0 39 8
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 0 39 8
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-select @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
-@arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
-@arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
-@arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
-@arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
-@arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
-@arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
-@arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= 0 ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 0 39 8
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 0 39 8
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 0 39 8
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 0 39 8
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select
- @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
- @arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
- @arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
- @arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
- @arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
- @arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
- @arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
- @arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= ?" ;
-set @my_key= 1 ;
-execute stmt1 using @my_key ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 0 39 8
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 0 39 8
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 0 39 8
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 0 39 8
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-set @my_key= 0 ;
-execute stmt1 using @my_key ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 0 39 8
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 0 39 8
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 0 39 8
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 0 39 8
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select ? := c1 from t9 where c1= 1" ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ':= c1 from t9 where c1= 1' at line 1
-test_sequence
------- select column, .. into @parm,.. ------
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
-c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
-c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
-@arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
-@arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
-@arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= 1 ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 0 39 8
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 0 39 8
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 0 39 8
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 0 39 8
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
-c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
-c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
-@arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
-@arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
-@arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= 0 ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 0 39 8
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 0 39 8
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 0 39 8
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 0 39 8
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
- c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
- c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
- @arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
- @arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
- @arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= ?" ;
-set @my_key= 1 ;
-execute stmt1 using @my_key ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 0 39 8
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 0 39 8
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 0 39 8
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 0 39 8
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-set @my_key= 0 ;
-execute stmt1 using @my_key ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 0 39 8
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 0 39 8
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 0 39 8
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 0 39 8
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select c1 into ? from t9 where c1= 1" ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? from t9 where c1= 1' at line 1
-test_sequence
--- insert into numeric columns --
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20 ) ;
-set @arg00= 21 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22 )" ;
-execute stmt1 ;
-set @arg00= 23;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0,
-30.0, 30.0, 30.0 ) ;
-set @arg00= 31.0 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 32.0, 32.0, 32.0, 32.0, 32.0, 32.0, 32.0, 32.0,
- 32.0, 32.0, 32.0 )" ;
-execute stmt1 ;
-set @arg00= 33.0;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( '40', '40', '40', '40', '40', '40', '40', '40',
-'40', '40', '40' ) ;
-set @arg00= '41' ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( '42', '42', '42', '42', '42', '42', '42', '42',
- '42', '42', '42' )" ;
-execute stmt1 ;
-set @arg00= '43';
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary) ) ;
-set @arg00= CAST('51' as binary) ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary) )" ;
-execute stmt1 ;
-set @arg00= CAST('53' as binary) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 2 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 60, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
-NULL, NULL, NULL ) ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 61, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 62, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL )" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 63, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8.0 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 71, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 73, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 81, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 83, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12
-from t9 where c1 >= 20
-order by c1 ;
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c12
-20 20 20 20 20 20 20 20 20 20 20.0000
-21 21 21 21 21 21 21 21 21 21 21.0000
-22 22 22 22 22 22 22 22 22 22 22.0000
-23 23 23 23 23 23 23 23 23 23 23.0000
-30 30 30 30 30 30 30 30 30 30 30.0000
-31 31 31 31 31 31 31 31 31 31 31.0000
-32 32 32 32 32 32 32 32 32 32 32.0000
-33 33 33 33 33 33 33 33 33 33 33.0000
-40 40 40 40 40 40 40 40 40 40 40.0000
-41 41 41 41 41 41 41 41 41 41 41.0000
-42 42 42 42 42 42 42 42 42 42 42.0000
-43 43 43 43 43 43 43 43 43 43 43.0000
-50 50 50 50 50 50 50 50 50 50 50.0000
-51 51 51 51 51 51 51 51 51 51 51.0000
-52 52 52 52 52 52 52 52 52 52 52.0000
-53 53 53 53 53 53 53 53 53 53 53.0000
-60 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-61 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-62 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-63 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-71 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-73 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-81 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-83 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-test_sequence
--- select .. where numeric column = .. --
-set @arg00= 20;
-select 'true' as found from t9
-where c1= 20 and c2= 20 and c3= 20 and c4= 20 and c5= 20 and c6= 20 and c7= 20
-and c8= 20 and c9= 20 and c10= 20 and c12= 20;
-found
-true
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c2= 20 and c3= 20 and c4= 20 and c5= 20 and c6= 20 and c7= 20
- and c8= 20 and c9= 20 and c10= 20 and c12= 20 ";
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20.0;
-select 'true' as found from t9
-where c1= 20.0 and c2= 20.0 and c3= 20.0 and c4= 20.0 and c5= 20.0 and c6= 20.0
-and c7= 20.0 and c8= 20.0 and c9= 20.0 and c10= 20.0 and c12= 20.0;
-found
-true
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20.0 and c2= 20.0 and c3= 20.0 and c4= 20.0 and c5= 20.0 and c6= 20.0
- and c7= 20.0 and c8= 20.0 and c9= 20.0 and c10= 20.0 and c12= 20.0 ";
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-select 'true' as found from t9
-where c1= '20' and c2= '20' and c3= '20' and c4= '20' and c5= '20' and c6= '20'
- and c7= '20' and c8= '20' and c9= '20' and c10= '20' and c12= '20';
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= '20' and c2= '20' and c3= '20' and c4= '20' and c5= '20' and c6= '20'
- and c7= '20' and c8= '20' and c9= '20' and c10= '20' and c12= '20' ";
-execute stmt1 ;
-found
-true
-set @arg00= '20';
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-select 'true' as found from t9
-where c1= CAST('20' as binary) and c2= CAST('20' as binary) and
-c3= CAST('20' as binary) and c4= CAST('20' as binary) and
-c5= CAST('20' as binary) and c6= CAST('20' as binary) and
-c7= CAST('20' as binary) and c8= CAST('20' as binary) and
-c9= CAST('20' as binary) and c10= CAST('20' as binary) and
-c12= CAST('20' as binary);
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= CAST('20' as binary) and c2= CAST('20' as binary) and
- c3= CAST('20' as binary) and c4= CAST('20' as binary) and
- c5= CAST('20' as binary) and c6= CAST('20' as binary) and
- c7= CAST('20' as binary) and c8= CAST('20' as binary) and
- c9= CAST('20' as binary) and c10= CAST('20' as binary) and
- c12= CAST('20' as binary) ";
-execute stmt1 ;
-found
-true
-set @arg00= CAST('20' as binary) ;
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-delete from t9 ;
-test_sequence
--- some numeric overflow experiments --
-prepare my_insert from "insert into t9
- ( c21, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 'O', ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-prepare my_select from "select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12
-from t9 where c21 = 'O' ";
-prepare my_delete from "delete from t9 where c21 = 'O' ";
-set @arg00= 9223372036854775807 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 9.22337e18
-c8 9.223372036854776e18
-c9 9.223372036854776e18
-c10 9.223372036854776e18
-c12 9999.9999
-execute my_delete ;
-set @arg00= '9223372036854775807' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 9.22337e18
-c8 9.223372036854776e18
-c9 9.223372036854776e18
-c10 9.223372036854776e18
-c12 9999.9999
-execute my_delete ;
-set @arg00= -9223372036854775808 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -9.22337e18
-c8 -9.223372036854776e18
-c9 -9.223372036854776e18
-c10 -9.223372036854776e18
-c12 -9999.9999
-execute my_delete ;
-set @arg00= '-9223372036854775808' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -9.22337e18
-c8 -9.223372036854776e18
-c9 -9.223372036854776e18
-c10 -9.223372036854776e18
-c12 -9999.9999
-execute my_delete ;
-set @arg00= 1.11111111111111111111e+50 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 3.40282e38
-c8 1.111111111111111e50
-c9 1.111111111111111e50
-c10 1.111111111111111e50
-c12 9999.9999
-execute my_delete ;
-set @arg00= '1.11111111111111111111e+50' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 3.40282e38
-c8 1.111111111111111e50
-c9 1.111111111111111e50
-c10 1.111111111111111e50
-c12 9999.9999
-execute my_delete ;
-set @arg00= -1.11111111111111111111e+50 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -3.40282e38
-c8 -1.111111111111111e50
-c9 -1.111111111111111e50
-c10 -1.111111111111111e50
-c12 -9999.9999
-execute my_delete ;
-set @arg00= '-1.11111111111111111111e+50' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -3.40282e38
-c8 -1.111111111111111e50
-c9 -1.111111111111111e50
-c10 -1.111111111111111e50
-c12 -9999.9999
-execute my_delete ;
-test_sequence
--- insert into string columns --
-set sql_mode = '';
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 20, '20', '20', '20', '20', '20', '20', '20', '20', '20', '20', '20' ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '21' ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 21, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 22, '22', '22', '22', '22', '22', '22', '22', '22', '22', '22', '22' )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '23';
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 23, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 30, CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary) ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '31' ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 31, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 32, CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary) )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= CAST('33' as binary);
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 33, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 41 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 41, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 43;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 43, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 50, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 51.0 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 51, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 52, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 53.0;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 53, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 54, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1,
-5.4e+1, 5.4e+1, 5.4e+1 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 5.5e+1 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 55, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 56, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1,
- 5.6e+1, 5.6e+1, 5.6e+1 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 5.7e+1;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 57, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set sql_mode = default;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 60, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL ) ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 61, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 62, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL )" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 63, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 2 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 71, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 73, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 81, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 83, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-select c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30
-from t9 where c1 >= 20
-order by c1 ;
-c1 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30
-20 2 20 20 20 20 20 20 20 20 20 20
-21 2 21 21 21 21 21 21 21 21 21 21
-22 2 22 22 22 22 22 22 22 22 22 22
-23 2 23 23 23 23 23 23 23 23 23 23
-30 3 30 30 30 30 30 30 30 30 30 30
-31 3 31 31 31 31 31 31 31 31 31 31
-32 3 32 32 32 32 32 32 32 32 32 32
-33 3 33 33 33 33 33 33 33 33 33 33
-40 4 40 40 40 40 40 40 40 40 40 40
-41 4 41 41 41 41 41 41 41 41 41 41
-42 4 42 42 42 42 42 42 42 42 42 42
-43 4 43 43 43 43 43 43 43 43 43 43
-50 5 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0
-51 5 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0
-52 5 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0
-53 5 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0
-54 5 54 54 54 54 54 54 54 54 54 54
-55 6 55 55 55 55 55 55 55 55 55 55
-56 6 56 56 56 56 56 56 56 56 56 56
-57 6 57 57 57 57 57 57 57 57 57 57
-60 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-61 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-62 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-63 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-71 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-73 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-81 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-83 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-test_sequence
--- select .. where string column = .. --
-set @arg00= '20';
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr('20',1+length(c20)))= '20' and c21= '20' and
-c22= '20' and c23= '20' and c24= '20' and c25= '20' and c26= '20' and
-c27= '20' and c28= '20' and c29= '20' and c30= '20' ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr('20',1+length(c20)))= '20' and c21= '20' and
- c22= '20' and c23= '20' and c24= '20' and c25= '20' and c26= '20' and
- c27= '20' and c28= '20' and c29= '20' and c30= '20'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= CAST('20' as binary);
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(CAST('20' as binary),1+length(c20)))
-= CAST('20' as binary) and c21= CAST('20' as binary)
-and c22= CAST('20' as binary) and c23= CAST('20' as binary) and
-c24= CAST('20' as binary) and c25= CAST('20' as binary) and
-c26= CAST('20' as binary) and c27= CAST('20' as binary) and
-c28= CAST('20' as binary) and c29= CAST('20' as binary) and
-c30= CAST('20' as binary) ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20))) = @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and
-c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(CAST('20' as binary),1+length(c20)))
- = CAST('20' as binary) and c21= CAST('20' as binary)
- and c22= CAST('20' as binary) and c23= CAST('20' as binary) and
- c24= CAST('20' as binary) and c25= CAST('20' as binary) and
- c26= CAST('20' as binary) and c27= CAST('20' as binary) and
- c28= CAST('20' as binary) and c29= CAST('20' as binary) and
- c30= CAST('20' as binary)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20))) = ? and c21= ? and
- c22= ? and c23= ? and c25= ? and c26= ? and c27= ? and c28= ? and
- c29= ? and c30= ?";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20;
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20,1+length(c20)))= 20 and c21= 20 and
-c22= 20 and c23= 20 and c24= 20 and c25= 20 and c26= 20 and
-c27= 20 and c28= 20 and c29= 20 and c30= 20 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20,1+length(c20)))= 20 and c21= 20 and
- c22= 20 and c23= 20 and c24= 20 and c25= 20 and c26= 20 and
- c27= 20 and c28= 20 and c29= 20 and c30= 20" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20.0;
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20.0,1+length(c20)))= 20.0 and c21= 20.0 and
-c22= 20.0 and c23= 20.0 and c24= 20.0 and c25= 20.0 and c26= 20.0 and
-c27= 20.0 and c28= 20.0 and c29= 20.0 and c30= 20.0 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20.0,1+length(c20)))= 20.0 and c21= 20.0 and
- c22= 20.0 and c23= 20.0 and c24= 20.0 and c25= 20.0 and c26= 20.0 and
- c27= 20.0 and c28= 20.0 and c29= 20.0 and c30= 20.0" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-delete from t9 ;
-test_sequence
--- insert into date/time columns --
-set sql_mode = '';
-set @arg00= '1991-01-01 01:01:01' ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 20, '1991-01-01 01:01:01', '1991-01-01 01:01:01', '1991-01-01 01:01:01',
-'1991-01-01 01:01:01', '1991-01-01 01:01:01') ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 21, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 22, '1991-01-01 01:01:01', '1991-01-01 01:01:01', '1991-01-01 01:01:01',
- '1991-01-01 01:01:01', '1991-01-01 01:01:01')" ;
-execute stmt1 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 23, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-set @arg00= CAST('1991-01-01 01:01:01' as datetime) ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 30, CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime)) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 31, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 32, CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime))" ;
-execute stmt1 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 33, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-set @arg00= 2000000000 ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 40, 2000000000, 2000000000, 2000000000, 2000000000, 2000000000 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 41, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 42, 2000000000, 2000000000, 2000000000, 2000000000, 2000000000 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 43, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-set @arg00= 1.0e+10 ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 50, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 51, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 52, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 53, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-set sql_mode = default;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 60, NULL, NULL, '1991-01-01 01:01:01',
-NULL, NULL) ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 61, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 62, NULL, NULL, '1991-01-01 01:01:01',
- NULL, NULL)" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 63, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 71, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 73, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8.0 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 81, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 83, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-select c1, c13, c14, c15, c16, c17 from t9 order by c1 ;
-c1 c13 c14 c15 c16 c17
-20 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-21 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-22 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-23 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-30 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-31 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-32 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-33 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-40 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-41 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-42 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-43 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-50 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-51 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-52 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-53 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-60 NULL NULL 1991-01-01 01:01:01 NULL NULL
-61 NULL NULL 1991-01-01 01:01:01 NULL NULL
-62 NULL NULL 1991-01-01 01:01:01 NULL NULL
-63 NULL NULL 1991-01-01 01:01:01 NULL NULL
-71 NULL NULL 1991-01-01 01:01:01 NULL NULL
-73 NULL NULL 1991-01-01 01:01:01 NULL NULL
-81 NULL NULL 1991-01-01 01:01:01 NULL NULL
-83 NULL NULL 1991-01-01 01:01:01 NULL NULL
-test_sequence
--- select .. where date/time column = .. --
-set @arg00= '1991-01-01 01:01:01' ;
-select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 01:01:01' AS DATE) and c14= '1991-01-01 01:01:01' and
-c15= '1991-01-01 01:01:01' and
-c17= '1991-01-01 01:01:01' ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c13= CAST(@arg00 AS DATE) and c14= @arg00 and c15= @arg00
-and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 01:01:01' AS DATE) and c14= '1991-01-01 01:01:01' and
- c15= '1991-01-01 01:01:01' and
- c17= '1991-01-01 01:01:01'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST(? AS DATE) and c14= ? and c15= ? and c17= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= CAST('1991-01-01 01:01:01' as datetime) ;
-select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 00:00:00' as datetime) and
-c14= CAST('1991-01-01 01:01:01' as datetime) and
-c15= CAST('1991-01-01 01:01:01' as datetime) and
-c17= CAST('1991-01-01 01:01:01' as datetime) ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c13= CAST(@arg00 AS DATE) and c14= @arg00 and c15= @arg00
-and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 00:00:00' as datetime) and
- c14= CAST('1991-01-01 01:01:01' as datetime) and
- c15= CAST('1991-01-01 01:01:01' as datetime) and
- c17= CAST('1991-01-01 01:01:01' as datetime)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST(? AS DATE) and c14= ? and c15= ? and c17= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= '01:01:01' ;
-select 'true' as found from t9 where c1= 20 and c16= '01:01:01' ;
-found
-true
-select 'true' as found from t9 where c1= 20 and c16= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= '01:01:01'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= CAST('01:01:01' as time) ;
-select 'true' as found from t9 where c1= 20 and c16= CAST('01:01:01' as time) ;
-found
-true
-select 'true' as found from t9 where c1= 20 and c16= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= CAST('01:01:01' as time)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= 1991 ;
-select 'true' as found from t9
-where c1= 20 and c17= 1991 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c17= 1991" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c17= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= 1.991e+3 ;
-select 'true' as found from t9
-where c1= 20 and abs(c17 - 1.991e+3) < 0.01 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and abs(c17 - @arg00) < 0.01 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and abs(c17 - 1.991e+3) < 0.01" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and abs(c17 - ?) < 0.01" ;
-execute stmt1 using @arg00 ;
-found
-true
-drop table t1, t9;
diff --git a/mysql-test/r/ps_5merge.result b/mysql-test/r/ps_5merge.result
deleted file mode 100644
index cc2f0f88b2a..00000000000
--- a/mysql-test/r/ps_5merge.result
+++ /dev/null
@@ -1,6782 +0,0 @@
-use test;
-drop table if exists t1, t1_1, t1_2,
-t9, t9_1, t9_2;
-drop table if exists t1, t9 ;
-create table t1
-(
-a int, b varchar(30),
-primary key(a)
-) engine = 'MYISAM' ;
-create table t9
-(
-c1 tinyint, c2 smallint, c3 mediumint, c4 int,
-c5 integer, c6 bigint, c7 float, c8 double,
-c9 double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
-c13 date, c14 datetime, c15 timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
-ON UPDATE CURRENT_TIMESTAMP, c16 time,
-c17 year, c18 tinyint, c19 bool, c20 char,
-c21 char(10), c22 varchar(30), c23 tinyblob, c24 tinytext,
-c25 blob, c26 text, c27 mediumblob, c28 mediumtext,
-c29 longblob, c30 longtext, c31 enum('one', 'two', 'three'),
-c32 set('monday', 'tuesday', 'wednesday'),
-primary key(c1)
-) engine = 'MYISAM' ;
-rename table t1 to t1_1, t9 to t9_1 ;
-drop table if exists t1, t9 ;
-create table t1
-(
-a int, b varchar(30),
-primary key(a)
-) engine = 'MYISAM' ;
-create table t9
-(
-c1 tinyint, c2 smallint, c3 mediumint, c4 int,
-c5 integer, c6 bigint, c7 float, c8 double,
-c9 double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
-c13 date, c14 datetime, c15 timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
-ON UPDATE CURRENT_TIMESTAMP, c16 time,
-c17 year, c18 tinyint, c19 bool, c20 char,
-c21 char(10), c22 varchar(30), c23 tinyblob, c24 tinytext,
-c25 blob, c26 text, c27 mediumblob, c28 mediumtext,
-c29 longblob, c30 longtext, c31 enum('one', 'two', 'three'),
-c32 set('monday', 'tuesday', 'wednesday'),
-primary key(c1)
-) engine = 'MYISAM' ;
-rename table t1 to t1_2, t9 to t9_2 ;
-create table t1
-(
-a int, b varchar(30),
-primary key(a)
-) ENGINE = MERGE UNION=(t1_1,t1_2)
-INSERT_METHOD=FIRST;
-create table t9
-(
-c1 tinyint, c2 smallint, c3 mediumint, c4 int,
-c5 integer, c6 bigint, c7 float, c8 double,
-c9 double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
-c13 date, c14 datetime, c15 timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, c16 time,
-c17 year, c18 tinyint, c19 bool, c20 char,
-c21 char(10), c22 varchar(30), c23 tinyblob, c24 tinytext,
-c25 blob, c26 text, c27 mediumblob, c28 mediumtext,
-c29 longblob, c30 longtext, c31 enum('one', 'two', 'three'),
-c32 set('monday', 'tuesday', 'wednesday'),
-primary key(c1)
-) ENGINE = MERGE UNION=(t9_1,t9_2)
-INSERT_METHOD=FIRST;
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-test_sequence
------- simple select tests ------
-prepare stmt1 from ' select * from t9 order by c1 ' ;
-execute stmt1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t9 t9 c1 c1 1 4 1 N 53251 0 63
-def test t9 t9 c2 c2 2 6 1 Y 32768 0 63
-def test t9 t9 c3 c3 9 9 1 Y 32768 0 63
-def test t9 t9 c4 c4 3 11 1 Y 32768 0 63
-def test t9 t9 c5 c5 3 11 1 Y 32768 0 63
-def test t9 t9 c6 c6 8 20 1 Y 32768 0 63
-def test t9 t9 c7 c7 4 12 1 Y 32768 31 63
-def test t9 t9 c8 c8 5 22 1 Y 32768 31 63
-def test t9 t9 c9 c9 5 22 1 Y 32768 31 63
-def test t9 t9 c10 c10 5 22 1 Y 32768 31 63
-def test t9 t9 c11 c11 246 9 6 Y 32768 4 63
-def test t9 t9 c12 c12 246 10 6 Y 32768 4 63
-def test t9 t9 c13 c13 10 10 10 Y 128 0 63
-def test t9 t9 c14 c14 12 19 19 Y 128 0 63
-def test t9 t9 c15 c15 7 19 19 N 9377 0 63
-def test t9 t9 c16 c16 11 10 8 Y 128 0 63
-def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
-def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
-def test t9 t9 c19 c19 1 1 1 Y 32768 0 63
-def test t9 t9 c20 c20 254 1 1 Y 0 0 8
-def test t9 t9 c21 c21 254 10 10 Y 0 0 8
-def test t9 t9 c22 c22 253 30 30 Y 0 0 8
-def test t9 t9 c23 c23 252 255 8 Y 144 0 63
-def test t9 t9 c24 c24 252 255 8 Y 16 0 8
-def test t9 t9 c25 c25 252 65535 4 Y 144 0 63
-def test t9 t9 c26 c26 252 65535 4 Y 16 0 8
-def test t9 t9 c27 c27 252 16777215 10 Y 144 0 63
-def test t9 t9 c28 c28 252 16777215 10 Y 16 0 8
-def test t9 t9 c29 c29 252 4294967295 8 Y 144 0 63
-def test t9 t9 c30 c30 252 4294967295 8 Y 16 0 8
-def test t9 t9 c31 c31 254 5 3 Y 256 0 8
-def test t9 t9 c32 c32 254 24 7 Y 2048 0 8
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30 c31 c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-9 9 9 9 9 9 9 9 9 9 9.0000 9.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 0 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext two tuesday
-set @arg00='SELECT' ;
-@arg00 a from t1 where a=1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 a from t1 where a=1' at line 1
-prepare stmt1 from ' ? a from t1 where a=1 ';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? a from t1 where a=1' at line 1
-set @arg00=1 ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-1 one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-1 one
-set @arg00='lion' ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-lion one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-lion one
-set @arg00=NULL ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-NULL one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-NULL one
-set @arg00=1 ;
-select b, a - @arg00 from t1 where a=1 ;
-b a - @arg00
-one 0
-prepare stmt1 from ' select b, a - ? from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-b a - ?
-one 0
-set @arg00=null ;
-select @arg00 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select ? as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-select @arg00 + 1 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select ? + 1 as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-select 1 + @arg00 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select 1 + ? as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-set @arg00='MySQL' ;
-select substr(@arg00,1,2) from t1 where a=1 ;
-substr(@arg00,1,2)
-My
-prepare stmt1 from ' select substr(?,1,2) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr(?,1,2)
-My
-set @arg00=3 ;
-select substr('MySQL',@arg00,5) from t1 where a=1 ;
-substr('MySQL',@arg00,5)
-SQL
-prepare stmt1 from ' select substr(''MySQL'',?,5) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr('MySQL',?,5)
-SQL
-select substr('MySQL',1,@arg00) from t1 where a=1 ;
-substr('MySQL',1,@arg00)
-MyS
-prepare stmt1 from ' select substr(''MySQL'',1,?) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr('MySQL',1,?)
-MyS
-set @arg00='MySQL' ;
-select a , concat(@arg00,b) from t1 order by a;
-a concat(@arg00,b)
-1 MySQLone
-2 MySQLtwo
-3 MySQLthree
-4 MySQLfour
-prepare stmt1 from ' select a , concat(?,b) from t1 order by a ' ;
-execute stmt1 using @arg00;
-a concat(?,b)
-1 MySQLone
-2 MySQLtwo
-3 MySQLthree
-4 MySQLfour
-select a , concat(b,@arg00) from t1 order by a ;
-a concat(b,@arg00)
-1 oneMySQL
-2 twoMySQL
-3 threeMySQL
-4 fourMySQL
-prepare stmt1 from ' select a , concat(b,?) from t1 order by a ' ;
-execute stmt1 using @arg00;
-a concat(b,?)
-1 oneMySQL
-2 twoMySQL
-3 threeMySQL
-4 fourMySQL
-set @arg00='MySQL' ;
-select group_concat(@arg00,b order by a) from t1
-group by 'a' ;
-group_concat(@arg00,b order by a)
-MySQLone,MySQLtwo,MySQLthree,MySQLfour
-prepare stmt1 from ' select group_concat(?,b order by a) from t1
-group by ''a'' ' ;
-execute stmt1 using @arg00;
-group_concat(?,b order by a)
-MySQLone,MySQLtwo,MySQLthree,MySQLfour
-select group_concat(b,@arg00 order by a) from t1
-group by 'a' ;
-group_concat(b,@arg00 order by a)
-oneMySQL,twoMySQL,threeMySQL,fourMySQL
-prepare stmt1 from ' select group_concat(b,? order by a) from t1
-group by ''a'' ' ;
-execute stmt1 using @arg00;
-group_concat(b,? order by a)
-oneMySQL,twoMySQL,threeMySQL,fourMySQL
-set @arg00='first' ;
-set @arg01='second' ;
-set @arg02=NULL;
-select @arg00, @arg01 from t1 where a=1 ;
-@arg00 @arg01
-first second
-prepare stmt1 from ' select ?, ? from t1 where a=1 ' ;
-execute stmt1 using @arg00, @arg01 ;
-? ?
-first second
-execute stmt1 using @arg02, @arg01 ;
-? ?
-NULL second
-execute stmt1 using @arg00, @arg02 ;
-? ?
-first NULL
-execute stmt1 using @arg02, @arg02 ;
-? ?
-NULL NULL
-drop table if exists t5 ;
-create table t5 (id1 int(11) not null default '0',
-value2 varchar(100), value1 varchar(100)) ;
-insert into t5 values (1,'hh','hh'),(2,'hh','hh'),
-(1,'ii','ii'),(2,'ii','ii') ;
-prepare stmt1 from ' select id1,value1 from t5 where id1=? or value1=? order by id1,value1 ' ;
-set @arg00=1 ;
-set @arg01='hh' ;
-execute stmt1 using @arg00, @arg01 ;
-id1 value1
-1 hh
-1 ii
-2 hh
-drop table t5 ;
-drop table if exists t5 ;
-create table t5(session_id char(9) not null) ;
-insert into t5 values ('abc') ;
-prepare stmt1 from ' select * from t5
-where ?=''1111'' and session_id = ''abc'' ' ;
-set @arg00='abc' ;
-execute stmt1 using @arg00 ;
-session_id
-set @arg00='1111' ;
-execute stmt1 using @arg00 ;
-session_id
-abc
-set @arg00='abc' ;
-execute stmt1 using @arg00 ;
-session_id
-drop table t5 ;
-set @arg00='FROM' ;
-select a @arg00 t1 where a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 t1 where a=1' at line 1
-prepare stmt1 from ' select a ? t1 where a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? t1 where a=1' at line 1
-set @arg00='t1' ;
-select a from @arg00 where a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 where a=1' at line 1
-prepare stmt1 from ' select a from ? where a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? where a=1' at line 1
-set @arg00='WHERE' ;
-select a from t1 @arg00 a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 a=1' at line 1
-prepare stmt1 from ' select a from t1 ? a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? a=1' at line 1
-set @arg00=1 ;
-select a FROM t1 where a=@arg00 ;
-a
-1
-prepare stmt1 from ' select a FROM t1 where a=? ' ;
-execute stmt1 using @arg00 ;
-a
-1
-set @arg00=1000 ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=NULL ;
-select a FROM t1 where a=@arg00 ;
-a
-prepare stmt1 from ' select a FROM t1 where a=? ' ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=4 ;
-select a FROM t1 where a=sqrt(@arg00) ;
-a
-2
-prepare stmt1 from ' select a FROM t1 where a=sqrt(?) ' ;
-execute stmt1 using @arg00 ;
-a
-2
-set @arg00=NULL ;
-select a FROM t1 where a=sqrt(@arg00) ;
-a
-prepare stmt1 from ' select a FROM t1 where a=sqrt(?) ' ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=2 ;
-set @arg01=3 ;
-select a FROM t1 where a in (@arg00,@arg01) order by a;
-a
-2
-3
-prepare stmt1 from ' select a FROM t1 where a in (?,?) order by a ';
-execute stmt1 using @arg00, @arg01;
-a
-2
-3
-set @arg00= 'one' ;
-set @arg01= 'two' ;
-set @arg02= 'five' ;
-prepare stmt1 from ' select b FROM t1 where b in (?,?,?) order by b ' ;
-execute stmt1 using @arg00, @arg01, @arg02 ;
-b
-one
-two
-prepare stmt1 from ' select b FROM t1 where b like ? ';
-set @arg00='two' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00='tw%' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00='%wo' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00=null ;
-insert into t9 set c1= 0, c5 = NULL ;
-select c5 from t9 where c5 > NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 > ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 < NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 < ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 = NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 = ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 <=> NULL ;
-c5
-NULL
-prepare stmt1 from ' select c5 from t9 where c5 <=> ? ';
-execute stmt1 using @arg00 ;
-c5
-NULL
-delete from t9 where c1= 0 ;
-set @arg00='>' ;
-select a FROM t1 where a @arg00 1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 1' at line 1
-prepare stmt1 from ' select a FROM t1 where a ? 1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? 1' at line 1
-set @arg00=1 ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL group by a - @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL group by a - ? ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00='two' ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL having b <> @arg00 order by a ;
-a b
-1 one
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL having b <> ? order by a ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-3 three
-4 four
-set @arg00=1 ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL order by a - @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL order by a - ? ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=2 ;
-select a,b from t1 order by 2 ;
-a b
-4 four
-1 one
-3 three
-2 two
-prepare stmt1 from ' select a,b from t1
-order by ? ';
-execute stmt1 using @arg00;
-a b
-4 four
-1 one
-3 three
-2 two
-set @arg00=1 ;
-execute stmt1 using @arg00;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=0 ;
-execute stmt1 using @arg00;
-ERROR 42S22: Unknown column '?' in 'order clause'
-set @arg00=1;
-prepare stmt1 from ' select a,b from t1 order by a
-limit 1 ';
-execute stmt1 ;
-a b
-1 one
-prepare stmt1 from ' select a,b from t1 order by a limit ? ';
-execute stmt1 using @arg00;
-a b
-1 one
-set @arg00='b' ;
-set @arg01=0 ;
-set @arg02=2 ;
-set @arg03=2 ;
-select sum(a), @arg00 from t1 where a > @arg01
-and b is not null group by substr(b,@arg02)
-having sum(a) <> @arg03 ;
-sum(a) @arg00
-3 b
-1 b
-4 b
-prepare stmt1 from ' select sum(a), ? from t1 where a > ?
-and b is not null group by substr(b,?)
-having sum(a) <> ? ';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03;
-sum(a) ?
-3 b
-1 b
-4 b
-test_sequence
------- join tests ------
-select first.a as a1, second.a as a2
-from t1 first, t1 second
-where first.a = second.a order by a1 ;
-a1 a2
-1 1
-2 2
-3 3
-4 4
-prepare stmt1 from ' select first.a as a1, second.a as a2
- from t1 first, t1 second
- where first.a = second.a order by a1 ';
-execute stmt1 ;
-a1 a2
-1 1
-2 2
-3 3
-4 4
-set @arg00='ABC';
-set @arg01='two';
-set @arg02='one';
-select first.a, @arg00, second.a FROM t1 first, t1 second
-where @arg01 = first.b or first.a = second.a or second.b = @arg02
-order by second.a, first.a;
-a @arg00 a
-1 ABC 1
-2 ABC 1
-3 ABC 1
-4 ABC 1
-2 ABC 2
-2 ABC 3
-3 ABC 3
-2 ABC 4
-4 ABC 4
-prepare stmt1 from ' select first.a, ?, second.a FROM t1 first, t1 second
- where ? = first.b or first.a = second.a or second.b = ?
- order by second.a, first.a';
-execute stmt1 using @arg00, @arg01, @arg02;
-a ? a
-1 ABC 1
-2 ABC 1
-3 ABC 1
-4 ABC 1
-2 ABC 2
-2 ABC 3
-3 ABC 3
-2 ABC 4
-4 ABC 4
-drop table if exists t2 ;
-create table t2 as select * from t1 ;
-set @query1= 'SELECT * FROM t2 join t1 on (t1.a=t2.a) order by t2.a ' ;
-set @query2= 'SELECT * FROM t2 natural join t1 order by t2.a ' ;
-set @query3= 'SELECT * FROM t2 join t1 using(a) order by t2.a ' ;
-set @query4= 'SELECT * FROM t2 left join t1 on(t1.a=t2.a) order by t2.a ' ;
-set @query5= 'SELECT * FROM t2 natural left join t1 order by t2.a ' ;
-set @query6= 'SELECT * FROM t2 left join t1 using(a) order by t2.a ' ;
-set @query7= 'SELECT * FROM t2 right join t1 on(t1.a=t2.a) order by t2.a ' ;
-set @query8= 'SELECT * FROM t2 natural right join t1 order by t2.a ' ;
-set @query9= 'SELECT * FROM t2 right join t1 using(a) order by t2.a ' ;
-the join statement is:
-SELECT * FROM t2 right join t1 using(a) order by t2.a
-prepare stmt1 from @query9 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural right join t1 order by t2.a
-prepare stmt1 from @query8 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 right join t1 on(t1.a=t2.a) order by t2.a
-prepare stmt1 from @query7 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-the join statement is:
-SELECT * FROM t2 left join t1 using(a) order by t2.a
-prepare stmt1 from @query6 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural left join t1 order by t2.a
-prepare stmt1 from @query5 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 left join t1 on(t1.a=t2.a) order by t2.a
-prepare stmt1 from @query4 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-the join statement is:
-SELECT * FROM t2 join t1 using(a) order by t2.a
-prepare stmt1 from @query3 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural join t1 order by t2.a
-prepare stmt1 from @query2 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 join t1 on (t1.a=t2.a) order by t2.a
-prepare stmt1 from @query1 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-drop table t2 ;
-test_sequence
------- subquery tests ------
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ''two'') ';
-execute stmt1 ;
-a b
-2 two
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = 'two' ) and b=@arg00 ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ''two'') and b=? ';
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = @arg00 ) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ? ) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=3 ;
-set @arg01='three' ;
-select a,b FROM t1 where (a,b) in (select 3, 'three');
-a b
-3 three
-select a FROM t1 where (a,b) in (select @arg00,@arg01);
-a
-3
-prepare stmt1 from ' select a FROM t1 where (a,b) in (select ?, ?) ';
-execute stmt1 using @arg00, @arg01;
-a
-3
-set @arg00=1 ;
-set @arg01='two' ;
-set @arg02=2 ;
-set @arg03='two' ;
-select a, @arg00, b FROM t1 outer_table where
-b=@arg01 and a = (select @arg02 from t1 where b = @arg03 ) ;
-a @arg00 b
-2 1 two
-prepare stmt1 from ' select a, ?, b FROM t1 outer_table where
- b=? and a = (select ? from t1 where b = ? ) ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-a ? b
-2 1 two
-prepare stmt1 from 'select c4 FROM t9 where
- c13 = (select MAX(b) from t1 where a = ?) and c22 = ? ' ;
-execute stmt1 using @arg01, @arg02;
-c4
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = outer_table.b ) order by a ';
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = outer_table.b ) and b=@arg00 ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = outer_table.b) and b=? ';
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=2 ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where a = @arg00 and b = outer_table.b) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where a = ? and b = outer_table.b) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=2 ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where outer_table.a = @arg00 and a=2) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where outer_table.a = ? and a=2) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=1 ;
-set @arg01='two' ;
-set @arg02=2 ;
-set @arg03='two' ;
-select a, @arg00, b FROM t1 outer_table where
-b=@arg01 and a = (select @arg02 from t1 where outer_table.b = @arg03
-and outer_table.a=a ) ;
-a @arg00 b
-2 1 two
-prepare stmt1 from ' select a, ?, b FROM t1 outer_table where
- b=? and a = (select ? from t1 where outer_table.b = ?
- and outer_table.a=a ) ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-a ? b
-2 1 two
-set @arg00=1 ;
-set @arg01=0 ;
-select a, @arg00
-from ( select a - @arg00 as a from t1 where a=@arg00 ) as t2
-where a=@arg01;
-a @arg00
-0 1
-prepare stmt1 from ' select a, ?
- from ( select a - ? as a from t1 where a=? ) as t2
- where a=? ';
-execute stmt1 using @arg00, @arg00, @arg00, @arg01 ;
-a ?
-0 1
-drop table if exists t2 ;
-create table t2 as select * from t1;
-prepare stmt1 from ' select a in (select a from t2) from t1 ' ;
-execute stmt1 ;
-a in (select a from t2)
-1
-1
-1
-1
-drop table if exists t5, t6, t7 ;
-create table t5 (a int , b int) ;
-create table t6 like t5 ;
-create table t7 like t5 ;
-insert into t5 values (0, 100), (1, 2), (1, 3), (2, 2), (2, 7),
-(2, -1), (3, 10) ;
-insert into t6 values (0, 0), (1, 1), (2, 1), (3, 1), (4, 1) ;
-insert into t7 values (3, 3), (2, 2), (1, 1) ;
-prepare stmt1 from ' select a, (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1) from t7 ' ;
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-drop table t5, t6, t7 ;
-drop table if exists t2 ;
-create table t2 as select * from t9;
-set @stmt= ' SELECT
- (SELECT SUM(c1 + c12 + 0.0) FROM t2
- where (t9.c2 - 0e-3) = t2.c2
- GROUP BY t9.c15 LIMIT 1) as scalar_s,
- exists (select 1.0e+0 from t2
- where t2.c3 * 9.0000000000 = t9.c4) as exists_s,
- c5 * 4 in (select c6 + 0.3e+1 from t2) as in_s,
- (c7 - 4, c8 - 4) in (select c9 + 4.0, c10 + 40e-1 from t2) as in_row_s
-FROM t9,
-(select c25 x, c32 y from t2) tt WHERE x = c25 ' ;
-prepare stmt1 from @stmt ;
-execute stmt1 ;
-execute stmt1 ;
-set @stmt= concat('explain ',@stmt);
-prepare stmt1 from @stmt ;
-execute stmt1 ;
-execute stmt1 ;
-set @stmt= ' SELECT
- (SELECT SUM(c1+c12+?) FROM t2 where (t9.c2-?)=t2.c2
- GROUP BY t9.c15 LIMIT 1) as scalar_s,
- exists (select ? from t2
- where t2.c3*?=t9.c4) as exists_s,
- c5*? in (select c6+? from t2) as in_s,
- (c7-?, c8-?) in (select c9+?, c10+? from t2) as in_row_s
-FROM t9,
-(select c25 x, c32 y from t2) tt WHERE x =c25 ' ;
-set @arg00= 0.0 ;
-set @arg01= 0e-3 ;
-set @arg02= 1.0e+0 ;
-set @arg03= 9.0000000000 ;
-set @arg04= 4 ;
-set @arg05= 0.3e+1 ;
-set @arg06= 4 ;
-set @arg07= 4 ;
-set @arg08= 4.0 ;
-set @arg09= 40e-1 ;
-prepare stmt1 from @stmt ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-set @stmt= concat('explain ',@stmt);
-prepare stmt1 from @stmt ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-drop table t2 ;
-select 1 < (select a from t1) ;
-ERROR 21000: Subquery returns more than 1 row
-prepare stmt1 from ' select 1 < (select a from t1) ' ;
-execute stmt1 ;
-ERROR 21000: Subquery returns more than 1 row
-select 1 as my_col ;
-my_col
-1
-test_sequence
------- union tests ------
-prepare stmt1 from ' select a FROM t1 where a=1
- union distinct
- select a FROM t1 where a=1 ';
-execute stmt1 ;
-a
-1
-execute stmt1 ;
-a
-1
-prepare stmt1 from ' select a FROM t1 where a=1
- union all
- select a FROM t1 where a=1 ';
-execute stmt1 ;
-a
-1
-1
-prepare stmt1 from ' SELECT 1, 2 union SELECT 1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT 1 union SELECT 1, 2 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT * from t1 union SELECT 1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT 1 union SELECT * from t1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-set @arg00=1 ;
-select @arg00 FROM t1 where a=1
-union distinct
-select 1 FROM t1 where a=1;
-@arg00
-1
-prepare stmt1 from ' select ? FROM t1 where a=1
- union distinct
- select 1 FROM t1 where a=1 ' ;
-execute stmt1 using @arg00;
-?
-1
-set @arg00=1 ;
-select 1 FROM t1 where a=1
-union distinct
-select @arg00 FROM t1 where a=1;
-1
-1
-prepare stmt1 from ' select 1 FROM t1 where a=1
- union distinct
- select ? FROM t1 where a=1 ' ;
-execute stmt1 using @arg00;
-1
-1
-set @arg00='a' ;
-select @arg00 FROM t1 where a=1
-union distinct
-select @arg00 FROM t1 where a=1;
-@arg00
-a
-prepare stmt1 from ' select ? FROM t1 where a=1
- union distinct
- select ? FROM t1 where a=1 ';
-execute stmt1 using @arg00, @arg00;
-?
-a
-prepare stmt1 from ' select ?
- union distinct
- select ? ';
-execute stmt1 using @arg00, @arg00;
-?
-a
-set @arg00='a' ;
-set @arg01=1 ;
-set @arg02='a' ;
-set @arg03=2 ;
-select @arg00 FROM t1 where a=@arg01
-union distinct
-select @arg02 FROM t1 where a=@arg03;
-@arg00
-a
-prepare stmt1 from ' select ? FROM t1 where a=?
- union distinct
- select ? FROM t1 where a=? ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03;
-?
-a
-set @arg00=1 ;
-prepare stmt1 from ' select sum(a) + 200, ? from t1
-union distinct
-select sum(a) + 200, 1 from t1
-group by b ' ;
-execute stmt1 using @arg00;
-sum(a) + 200 ?
-210 1
-204 1
-201 1
-203 1
-202 1
-set @Oporto='Oporto' ;
-set @Lisboa='Lisboa' ;
-set @0=0 ;
-set @1=1 ;
-set @2=2 ;
-set @3=3 ;
-set @4=4 ;
-select @Oporto,@Lisboa,@0,@1,@2,@3,@4 ;
-@Oporto @Lisboa @0 @1 @2 @3 @4
-Oporto Lisboa 0 1 2 3 4
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-group by b
-union distinct
-select sum(a) + 200, @Lisboa from t1
-group by b ;
-the_sum the_town
-204 Oporto
-201 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-201 Lisboa
-203 Lisboa
-202 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- group by b
- union distinct
- select sum(a) + 200, ? from t1
- group by b ' ;
-execute stmt1 using @Oporto, @Lisboa;
-the_sum the_town
-204 Oporto
-201 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-201 Lisboa
-203 Lisboa
-202 Lisboa
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-where a > @1
-group by b
-union distinct
-select sum(a) + 200, @Lisboa from t1
-where a > @2
-group by b ;
-the_sum the_town
-204 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-203 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- where a > ?
- group by b
- union distinct
- select sum(a) + 200, ? from t1
- where a > ?
- group by b ' ;
-execute stmt1 using @Oporto, @1, @Lisboa, @2;
-the_sum the_town
-204 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-203 Lisboa
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-where a > @1
-group by b
-having avg(a) > @2
-union distinct
-select sum(a) + 200, @Lisboa from t1
-where a > @2
-group by b
-having avg(a) > @3;
-the_sum the_town
-204 Oporto
-203 Oporto
-204 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- where a > ?
- group by b
- having avg(a) > ?
- union distinct
- select sum(a) + 200, ? from t1
- where a > ?
- group by b
- having avg(a) > ? ';
-execute stmt1 using @Oporto, @1, @2, @Lisboa, @2, @3;
-the_sum the_town
-204 Oporto
-203 Oporto
-204 Lisboa
-test_sequence
------- explain select tests ------
-prepare stmt1 from ' explain select * from t9 ' ;
-execute stmt1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def id 8 3 1 Y 32928 0 63
-def select_type 253 19 6 N 1 39 8
-def table 253 64 2 Y 0 39 8
-def type 253 10 3 Y 0 39 8
-def possible_keys 253 4_OR_8_K 0 Y 0 39 8
-def key 253 64 0 Y 0 39 8
-def key_len 253 4_OR_8_K 0 Y 0 39 8
-def ref 253 2048 0 Y 0 39 8
-def rows 8 10 1 Y 32928 0 63
-def Extra 253 255 0 N 1 39 8
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t9 ALL NULL NULL NULL NULL 2
-test_sequence
------- delete tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'delete from t1 where a=2' ;
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-execute stmt1;
-insert into t1 values(0,NULL);
-set @arg00=NULL;
-prepare stmt1 from 'delete from t1 where b=?' ;
-execute stmt1 using @arg00;
-select a,b from t1 where b is NULL ;
-a b
-0 NULL
-set @arg00='one';
-execute stmt1 using @arg00;
-select a,b from t1 where b=@arg00;
-a b
-prepare stmt1 from 'truncate table t1' ;
-test_sequence
------- update tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'update t1 set b=''a=two'' where a=2' ;
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-2 a=two
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-2 a=two
-set @arg00=NULL;
-prepare stmt1 from 'update t1 set b=? where a=2' ;
-execute stmt1 using @arg00;
-select a,b from t1 where a=2;
-a b
-2 NULL
-set @arg00='two';
-execute stmt1 using @arg00;
-select a,b from t1 where a=2;
-a b
-2 two
-set @arg00=2;
-prepare stmt1 from 'update t1 set b=NULL where a=?' ;
-execute stmt1 using @arg00;
-select a,b from t1 where a=@arg00;
-a b
-2 NULL
-update t1 set b='two' where a=@arg00;
-set @arg00=2000;
-execute stmt1 using @arg00;
-select a,b from t1 where a=@arg00;
-a b
-set @arg00=2;
-set @arg01=22;
-prepare stmt1 from 'update t1 set a=? where a=?' ;
-execute stmt1 using @arg00, @arg00;
-select a,b from t1 where a=@arg00;
-a b
-2 two
-execute stmt1 using @arg01, @arg00;
-select a,b from t1 where a=@arg01;
-a b
-22 two
-execute stmt1 using @arg00, @arg01;
-select a,b from t1 where a=@arg00;
-a b
-2 two
-set @arg00=NULL;
-set @arg01=2;
-set sql_mode = '';
-execute stmt1 using @arg00, @arg01;
-Warnings:
-Warning 1048 Column 'a' cannot be null
-set sql_mode = default;
-select a,b from t1 order by a;
-a b
-0 two
-1 one
-3 three
-4 four
-set @arg00=0;
-execute stmt1 using @arg01, @arg00;
-select a,b from t1 order by a;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=23;
-set @arg01='two';
-set @arg02=2;
-set @arg03='two';
-set @arg04=2;
-drop table if exists t2;
-create table t2 as select a,b from t1 ;
-prepare stmt1 from 'update t1 set a=? where b=?
- and a in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 where a = @arg00 ;
-a b
-23 two
-prepare stmt1 from 'update t1 set a=? where b=?
- and a not in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 order by a ;
-a b
-1 one
-2 two
-3 three
-4 four
-drop table t2 ;
-create table t2
-(
-a int, b varchar(30),
-primary key(a)
-) engine = 'MYISAM' ;
-insert into t2(a,b) select a, b from t1 ;
-prepare stmt1 from 'update t1 set a=? where b=?
- and a in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 where a = @arg00 ;
-a b
-23 two
-prepare stmt1 from 'update t1 set a=? where b=?
- and a not in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 order by a ;
-a b
-1 one
-2 two
-3 three
-4 four
-drop table t2 ;
-set @arg00=1;
-prepare stmt1 from 'update t1 set b=''bla''
-where a=2
-limit 1';
-execute stmt1 ;
-select a,b from t1 where b = 'bla' ;
-a b
-2 bla
-prepare stmt1 from 'update t1 set b=''bla'' where a=2 limit ?';
-execute stmt1 using @arg00;
-test_sequence
------- insert tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'insert into t1 values(5, ''five'' )';
-execute stmt1;
-select a,b from t1 where a = 5;
-a b
-5 five
-set @arg00='six' ;
-prepare stmt1 from 'insert into t1 values(6, ? )';
-execute stmt1 using @arg00;
-select a,b from t1 where b = @arg00;
-a b
-6 six
-execute stmt1 using @arg00;
-ERROR 23000: Duplicate entry '6' for key 'PRIMARY'
-set @arg00=NULL ;
-prepare stmt1 from 'insert into t1 values(0, ? )';
-execute stmt1 using @arg00;
-select a,b from t1 where b is NULL;
-a b
-0 NULL
-set @arg00=8 ;
-set @arg01='eight' ;
-prepare stmt1 from 'insert into t1 values(?, ? )';
-execute stmt1 using @arg00, @arg01 ;
-select a,b from t1 where b = @arg01;
-a b
-8 eight
-set @NULL= null ;
-set @arg00= 'abc' ;
-execute stmt1 using @NULL, @NULL ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @NULL ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @arg00 ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @arg00 ;
-ERROR 23000: Column 'a' cannot be null
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @arg00 ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @arg00 ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 abc
-10002 abc
-delete from t1 where a > 10000 ;
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @NULL ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @NULL ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 NULL
-10002 NULL
-delete from t1 where a > 10000 ;
-set @arg01= 10000 + 10 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 9 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 8 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 7 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 6 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 5 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 4 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 3 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @arg01 ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 10001
-10002 10002
-10003 10003
-10004 10004
-10005 10005
-10006 10006
-10007 10007
-10008 10008
-10009 10009
-10010 10010
-delete from t1 where a > 10000 ;
-set @arg00=81 ;
-set @arg01='8-1' ;
-set @arg02=82 ;
-set @arg03='8-2' ;
-prepare stmt1 from 'insert into t1 values(?,?),(?,?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-select a,b from t1 where a in (@arg00,@arg02) ;
-a b
-81 8-1
-82 8-2
-set @arg00=9 ;
-set @arg01='nine' ;
-prepare stmt1 from 'insert into t1 set a=?, b=? ';
-execute stmt1 using @arg00, @arg01 ;
-select a,b from t1 where a = @arg00 ;
-a b
-9 nine
-set @arg00=6 ;
-set @arg01=1 ;
-prepare stmt1 from 'insert into t1 set a=?, b=''sechs''
- on duplicate key update a=a + ?, b=concat(b,''modified'') ';
-execute stmt1 using @arg00, @arg01;
-select * from t1 order by a;
-a b
-0 NULL
-1 one
-2 two
-3 three
-4 four
-5 five
-7 sixmodified
-8 eight
-9 nine
-81 8-1
-82 8-2
-set @arg00=81 ;
-set @arg01=1 ;
-execute stmt1 using @arg00, @arg01;
-ERROR 23000: Duplicate entry '82' for key 'PRIMARY'
-drop table if exists t2 ;
-create table t2 (id int auto_increment primary key)
-ENGINE= 'MYISAM' ;
-prepare stmt1 from ' select last_insert_id() ' ;
-insert into t2 values (NULL) ;
-execute stmt1 ;
-last_insert_id()
-1
-insert into t2 values (NULL) ;
-execute stmt1 ;
-last_insert_id()
-2
-drop table t2 ;
-set @1000=1000 ;
-set @x1000_2="x1000_2" ;
-set @x1000_3="x1000_3" ;
-set @x1000="x1000" ;
-set @1100=1100 ;
-set @x1100="x1100" ;
-set @100=100 ;
-set @updated="updated" ;
-insert into t1 values(1000,'x1000_1') ;
-insert into t1 values(@1000,@x1000_2),(@1000,@x1000_3)
-on duplicate key update a = a + @100, b = concat(b,@updated) ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 x1000_3
-1100 x1000_1updated
-delete from t1 where a >= 1000 ;
-insert into t1 values(1000,'x1000_1') ;
-prepare stmt1 from ' insert into t1 values(?,?),(?,?)
- on duplicate key update a = a + ?, b = concat(b,?) ';
-execute stmt1 using @1000, @x1000_2, @1000, @x1000_3, @100, @updated ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 x1000_3
-1100 x1000_1updated
-delete from t1 where a >= 1000 ;
-insert into t1 values(1000,'x1000_1') ;
-execute stmt1 using @1000, @x1000_2, @1100, @x1000_3, @100, @updated ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1200 x1000_1updatedupdated
-delete from t1 where a >= 1000 ;
-prepare stmt1 from ' replace into t1 (a,b) select 100, ''hundred'' ';
-execute stmt1;
-execute stmt1;
-execute stmt1;
-test_sequence
------- multi table tests ------
-delete from t1 ;
-delete from t9 ;
-insert into t1(a,b) values (1, 'one'), (2, 'two'), (3, 'three') ;
-insert into t9 (c1,c21)
-values (1, 'one'), (2, 'two'), (3, 'three') ;
-prepare stmt_delete from " delete t1, t9
- from t1, t9 where t1.a=t9.c1 and t1.b='updated' ";
-prepare stmt_update from " update t1, t9
- set t1.b='updated', t9.c21='updated'
- where t1.a=t9.c1 and t1.a=? ";
-prepare stmt_select1 from " select a, b from t1 order by a" ;
-prepare stmt_select2 from " select c1, c21 from t9 order by c1" ;
-set @arg00= 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-2 two
-3 three
-execute stmt_select2 ;
-c1 c21
-2 two
-3 three
-set @arg00= @arg00 + 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-3 three
-execute stmt_select2 ;
-c1 c21
-3 three
-set @arg00= @arg00 + 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-execute stmt_select2 ;
-c1 c21
-set @arg00= @arg00 + 1 ;
-drop table if exists t5 ;
-set @arg01= 8;
-set @arg02= 8.0;
-set @arg03= 80.00000000000e-1;
-set @arg04= 'abc' ;
-set @arg05= CAST('abc' as binary) ;
-set @arg06= '1991-08-05' ;
-set @arg07= CAST('1991-08-05' as date);
-set @arg08= '1991-08-05 01:01:01' ;
-set @arg09= CAST('1991-08-05 01:01:01' as datetime) ;
-set @arg10= unix_timestamp('1991-01-01 01:01:01');
-set @arg11= YEAR('1991-01-01 01:01:01');
-set @arg12= 8 ;
-set @arg12= NULL ;
-set @arg13= 8.0 ;
-set @arg13= NULL ;
-set @arg14= 'abc';
-set @arg14= NULL ;
-set @arg15= CAST('abc' as binary) ;
-set @arg15= NULL ;
-create table t5 engine = MyISAM as select
-8 as const01, @arg01 as param01,
-8.0 as const02, @arg02 as param02,
-80.00000000000e-1 as const03, @arg03 as param03,
-'abc' as const04, @arg04 as param04,
-CAST('abc' as binary) as const05, @arg05 as param05,
-'1991-08-05' as const06, @arg06 as param06,
-CAST('1991-08-05' as date) as const07, @arg07 as param07,
-'1991-08-05 01:01:01' as const08, @arg08 as param08,
-CAST('1991-08-05 01:01:01' as datetime) as const09, @arg09 as param09,
-unix_timestamp('1991-01-01 01:01:01') as const10, @arg10 as param10,
-YEAR('1991-01-01 01:01:01') as const11, @arg11 as param11,
-NULL as const12, @arg12 as param12,
-@arg13 as param13,
-@arg14 as param14,
-@arg15 as param15;
-show create table t5 ;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `const01` int(1) NOT NULL,
- `param01` bigint(20) DEFAULT NULL,
- `const02` decimal(2,1) NOT NULL,
- `param02` decimal(65,38) DEFAULT NULL,
- `const03` double NOT NULL,
- `param03` double DEFAULT NULL,
- `const04` varchar(3) NOT NULL,
- `param04` longtext DEFAULT NULL,
- `const05` varbinary(3) DEFAULT NULL,
- `param05` longblob DEFAULT NULL,
- `const06` varchar(10) NOT NULL,
- `param06` longtext DEFAULT NULL,
- `const07` date DEFAULT NULL,
- `param07` longtext DEFAULT NULL,
- `const08` varchar(19) NOT NULL,
- `param08` longtext DEFAULT NULL,
- `const09` datetime DEFAULT NULL,
- `param09` longtext DEFAULT NULL,
- `const10` bigint(17) DEFAULT NULL,
- `param10` bigint(20) DEFAULT NULL,
- `const11` int(4) DEFAULT NULL,
- `param11` bigint(20) DEFAULT NULL,
- `const12` binary(0) DEFAULT NULL,
- `param12` bigint(20) DEFAULT NULL,
- `param13` decimal(65,38) DEFAULT NULL,
- `param14` longtext DEFAULT NULL,
- `param15` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t5 ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t5 t5 const01 const01 3 1 1 N 36865 0 63
-def test t5 t5 param01 param01 8 20 1 Y 32768 0 63
-def test t5 t5 const02 const02 246 4 3 N 36865 1 63
-def test t5 t5 param02 param02 246 67 40 Y 32768 38 63
-def test t5 t5 const03 const03 5 17 1 N 36865 31 63
-def test t5 t5 param03 param03 5 23 1 Y 32768 31 63
-def test t5 t5 const04 const04 253 3 3 N 4097 0 8
-def test t5 t5 param04 param04 252 4294967295 3 Y 16 0 8
-def test t5 t5 const05 const05 253 3 3 Y 128 0 63
-def test t5 t5 param05 param05 252 4294967295 3 Y 144 0 63
-def test t5 t5 const06 const06 253 10 10 N 4097 0 8
-def test t5 t5 param06 param06 252 4294967295 10 Y 16 0 8
-def test t5 t5 const07 const07 10 10 10 Y 128 0 63
-def test t5 t5 param07 param07 252 4294967295 10 Y 16 0 8
-def test t5 t5 const08 const08 253 19 19 N 4097 0 8
-def test t5 t5 param08 param08 252 4294967295 19 Y 16 0 8
-def test t5 t5 const09 const09 12 19 19 Y 128 0 63
-def test t5 t5 param09 param09 252 4294967295 19 Y 16 0 8
-def test t5 t5 const10 const10 8 17 9 Y 32768 0 63
-def test t5 t5 param10 param10 8 20 9 Y 32768 0 63
-def test t5 t5 const11 const11 3 4 4 Y 32768 0 63
-def test t5 t5 param11 param11 8 20 4 Y 32768 0 63
-def test t5 t5 const12 const12 254 0 0 Y 128 0 63
-def test t5 t5 param12 param12 8 20 0 Y 32768 0 63
-def test t5 t5 param13 param13 246 67 0 Y 32768 38 63
-def test t5 t5 param14 param14 252 4294967295 0 Y 16 0 8
-def test t5 t5 param15 param15 252 4294967295 0 Y 144 0 63
-const01 8
-param01 8
-const02 8.0
-param02 8.00000000000000000000000000000000000000
-const03 8
-param03 8
-const04 abc
-param04 abc
-const05 abc
-param05 abc
-const06 1991-08-05
-param06 1991-08-05
-const07 1991-08-05
-param07 1991-08-05
-const08 1991-08-05 01:01:01
-param08 1991-08-05 01:01:01
-const09 1991-08-05 01:01:01
-param09 1991-08-05 01:01:01
-const10 662680861
-param10 662680861
-const11 1991
-param11 1991
-const12 NULL
-param12 NULL
-param13 NULL
-param14 NULL
-param15 NULL
-drop table t5 ;
-test_sequence
------- data type conversion tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-insert into t9 set c1= 0, c15= '1991-01-01 01:01:01' ;
-select * from t9 order by c1 ;
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30 c31 c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-9 9 9 9 9 9 9 9 9 9 9.0000 9.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 0 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext two tuesday
-test_sequence
------- select @parameter:= column ------
-prepare full_info from "select @arg01, @arg02, @arg03, @arg04,
- @arg05, @arg06, @arg07, @arg08,
- @arg09, @arg10, @arg11, @arg12,
- @arg13, @arg14, @arg15, @arg16,
- @arg17, @arg18, @arg19, @arg20,
- @arg21, @arg22, @arg23, @arg24,
- @arg25, @arg26, @arg27, @arg28,
- @arg29, @arg30, @arg31, @arg32" ;
-select @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
-@arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
-@arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
-@arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
-@arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
-@arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
-@arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
-@arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= 1 ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-select @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
-@arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
-@arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
-@arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
-@arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
-@arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
-@arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
-@arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= 0 ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select
- @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
- @arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
- @arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
- @arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
- @arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
- @arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
- @arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
- @arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= ?" ;
-set @my_key= 1 ;
-execute stmt1 using @my_key ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-set @my_key= 0 ;
-execute stmt1 using @my_key ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select ? := c1 from t9 where c1= 1" ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ':= c1 from t9 where c1= 1' at line 1
-test_sequence
------- select column, .. into @parm,.. ------
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
-c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
-c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
-@arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
-@arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
-@arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= 1 ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
-c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
-c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
-@arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
-@arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
-@arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= 0 ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
- c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
- c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
- @arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
- @arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
- @arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= ?" ;
-set @my_key= 1 ;
-execute stmt1 using @my_key ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-set @my_key= 0 ;
-execute stmt1 using @my_key ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select c1 into ? from t9 where c1= 1" ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? from t9 where c1= 1' at line 1
-test_sequence
--- insert into numeric columns --
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20 ) ;
-set @arg00= 21 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22 )" ;
-execute stmt1 ;
-set @arg00= 23;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0,
-30.0, 30.0, 30.0 ) ;
-set @arg00= 31.0 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 32.0, 32.0, 32.0, 32.0, 32.0, 32.0, 32.0, 32.0,
- 32.0, 32.0, 32.0 )" ;
-execute stmt1 ;
-set @arg00= 33.0;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( '40', '40', '40', '40', '40', '40', '40', '40',
-'40', '40', '40' ) ;
-set @arg00= '41' ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( '42', '42', '42', '42', '42', '42', '42', '42',
- '42', '42', '42' )" ;
-execute stmt1 ;
-set @arg00= '43';
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary) ) ;
-set @arg00= CAST('51' as binary) ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary) )" ;
-execute stmt1 ;
-set @arg00= CAST('53' as binary) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 2 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 60, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
-NULL, NULL, NULL ) ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 61, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 62, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL )" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 63, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8.0 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 71, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 73, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 81, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 83, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12
-from t9 where c1 >= 20
-order by c1 ;
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c12
-20 20 20 20 20 20 20 20 20 20 20.0000
-21 21 21 21 21 21 21 21 21 21 21.0000
-22 22 22 22 22 22 22 22 22 22 22.0000
-23 23 23 23 23 23 23 23 23 23 23.0000
-30 30 30 30 30 30 30 30 30 30 30.0000
-31 31 31 31 31 31 31 31 31 31 31.0000
-32 32 32 32 32 32 32 32 32 32 32.0000
-33 33 33 33 33 33 33 33 33 33 33.0000
-40 40 40 40 40 40 40 40 40 40 40.0000
-41 41 41 41 41 41 41 41 41 41 41.0000
-42 42 42 42 42 42 42 42 42 42 42.0000
-43 43 43 43 43 43 43 43 43 43 43.0000
-50 50 50 50 50 50 50 50 50 50 50.0000
-51 51 51 51 51 51 51 51 51 51 51.0000
-52 52 52 52 52 52 52 52 52 52 52.0000
-53 53 53 53 53 53 53 53 53 53 53.0000
-60 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-61 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-62 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-63 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-71 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-73 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-81 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-83 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-test_sequence
--- select .. where numeric column = .. --
-set @arg00= 20;
-select 'true' as found from t9
-where c1= 20 and c2= 20 and c3= 20 and c4= 20 and c5= 20 and c6= 20 and c7= 20
-and c8= 20 and c9= 20 and c10= 20 and c12= 20;
-found
-true
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c2= 20 and c3= 20 and c4= 20 and c5= 20 and c6= 20 and c7= 20
- and c8= 20 and c9= 20 and c10= 20 and c12= 20 ";
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20.0;
-select 'true' as found from t9
-where c1= 20.0 and c2= 20.0 and c3= 20.0 and c4= 20.0 and c5= 20.0 and c6= 20.0
-and c7= 20.0 and c8= 20.0 and c9= 20.0 and c10= 20.0 and c12= 20.0;
-found
-true
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20.0 and c2= 20.0 and c3= 20.0 and c4= 20.0 and c5= 20.0 and c6= 20.0
- and c7= 20.0 and c8= 20.0 and c9= 20.0 and c10= 20.0 and c12= 20.0 ";
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-select 'true' as found from t9
-where c1= '20' and c2= '20' and c3= '20' and c4= '20' and c5= '20' and c6= '20'
- and c7= '20' and c8= '20' and c9= '20' and c10= '20' and c12= '20';
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= '20' and c2= '20' and c3= '20' and c4= '20' and c5= '20' and c6= '20'
- and c7= '20' and c8= '20' and c9= '20' and c10= '20' and c12= '20' ";
-execute stmt1 ;
-found
-true
-set @arg00= '20';
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-select 'true' as found from t9
-where c1= CAST('20' as binary) and c2= CAST('20' as binary) and
-c3= CAST('20' as binary) and c4= CAST('20' as binary) and
-c5= CAST('20' as binary) and c6= CAST('20' as binary) and
-c7= CAST('20' as binary) and c8= CAST('20' as binary) and
-c9= CAST('20' as binary) and c10= CAST('20' as binary) and
-c12= CAST('20' as binary);
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= CAST('20' as binary) and c2= CAST('20' as binary) and
- c3= CAST('20' as binary) and c4= CAST('20' as binary) and
- c5= CAST('20' as binary) and c6= CAST('20' as binary) and
- c7= CAST('20' as binary) and c8= CAST('20' as binary) and
- c9= CAST('20' as binary) and c10= CAST('20' as binary) and
- c12= CAST('20' as binary) ";
-execute stmt1 ;
-found
-true
-set @arg00= CAST('20' as binary) ;
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-delete from t9 ;
-test_sequence
--- some numeric overflow experiments --
-prepare my_insert from "insert into t9
- ( c21, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 'O', ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-prepare my_select from "select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12
-from t9 where c21 = 'O' ";
-prepare my_delete from "delete from t9 where c21 = 'O' ";
-set @arg00= 9223372036854775807 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 9.22337e18
-c8 9.223372036854776e18
-c9 9.223372036854776e18
-c10 9.223372036854776e18
-c12 9999.9999
-execute my_delete ;
-set @arg00= '9223372036854775807' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 9.22337e18
-c8 9.223372036854776e18
-c9 9.223372036854776e18
-c10 9.223372036854776e18
-c12 9999.9999
-execute my_delete ;
-set @arg00= -9223372036854775808 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -9.22337e18
-c8 -9.223372036854776e18
-c9 -9.223372036854776e18
-c10 -9.223372036854776e18
-c12 -9999.9999
-execute my_delete ;
-set @arg00= '-9223372036854775808' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -9.22337e18
-c8 -9.223372036854776e18
-c9 -9.223372036854776e18
-c10 -9.223372036854776e18
-c12 -9999.9999
-execute my_delete ;
-set @arg00= 1.11111111111111111111e+50 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 3.40282e38
-c8 1.111111111111111e50
-c9 1.111111111111111e50
-c10 1.111111111111111e50
-c12 9999.9999
-execute my_delete ;
-set @arg00= '1.11111111111111111111e+50' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 3.40282e38
-c8 1.111111111111111e50
-c9 1.111111111111111e50
-c10 1.111111111111111e50
-c12 9999.9999
-execute my_delete ;
-set @arg00= -1.11111111111111111111e+50 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -3.40282e38
-c8 -1.111111111111111e50
-c9 -1.111111111111111e50
-c10 -1.111111111111111e50
-c12 -9999.9999
-execute my_delete ;
-set @arg00= '-1.11111111111111111111e+50' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -3.40282e38
-c8 -1.111111111111111e50
-c9 -1.111111111111111e50
-c10 -1.111111111111111e50
-c12 -9999.9999
-execute my_delete ;
-test_sequence
--- insert into string columns --
-set sql_mode = '';
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 20, '20', '20', '20', '20', '20', '20', '20', '20', '20', '20', '20' ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '21' ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 21, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 22, '22', '22', '22', '22', '22', '22', '22', '22', '22', '22', '22' )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '23';
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 23, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 30, CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary) ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '31' ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 31, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 32, CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary) )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= CAST('33' as binary);
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 33, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 41 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 41, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 43;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 43, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 50, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 51.0 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 51, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 52, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 53.0;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 53, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 54, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1,
-5.4e+1, 5.4e+1, 5.4e+1 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 5.5e+1 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 55, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 56, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1,
- 5.6e+1, 5.6e+1, 5.6e+1 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 5.7e+1;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 57, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set sql_mode = default;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 60, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL ) ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 61, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 62, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL )" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 63, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 2 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 71, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 73, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 81, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 83, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-select c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30
-from t9 where c1 >= 20
-order by c1 ;
-c1 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30
-20 2 20 20 20 20 20 20 20 20 20 20
-21 2 21 21 21 21 21 21 21 21 21 21
-22 2 22 22 22 22 22 22 22 22 22 22
-23 2 23 23 23 23 23 23 23 23 23 23
-30 3 30 30 30 30 30 30 30 30 30 30
-31 3 31 31 31 31 31 31 31 31 31 31
-32 3 32 32 32 32 32 32 32 32 32 32
-33 3 33 33 33 33 33 33 33 33 33 33
-40 4 40 40 40 40 40 40 40 40 40 40
-41 4 41 41 41 41 41 41 41 41 41 41
-42 4 42 42 42 42 42 42 42 42 42 42
-43 4 43 43 43 43 43 43 43 43 43 43
-50 5 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0
-51 5 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0
-52 5 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0
-53 5 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0
-54 5 54 54 54 54 54 54 54 54 54 54
-55 6 55 55 55 55 55 55 55 55 55 55
-56 6 56 56 56 56 56 56 56 56 56 56
-57 6 57 57 57 57 57 57 57 57 57 57
-60 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-61 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-62 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-63 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-71 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-73 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-81 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-83 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-test_sequence
--- select .. where string column = .. --
-set @arg00= '20';
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr('20',1+length(c20)))= '20' and c21= '20' and
-c22= '20' and c23= '20' and c24= '20' and c25= '20' and c26= '20' and
-c27= '20' and c28= '20' and c29= '20' and c30= '20' ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr('20',1+length(c20)))= '20' and c21= '20' and
- c22= '20' and c23= '20' and c24= '20' and c25= '20' and c26= '20' and
- c27= '20' and c28= '20' and c29= '20' and c30= '20'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= CAST('20' as binary);
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(CAST('20' as binary),1+length(c20)))
-= CAST('20' as binary) and c21= CAST('20' as binary)
-and c22= CAST('20' as binary) and c23= CAST('20' as binary) and
-c24= CAST('20' as binary) and c25= CAST('20' as binary) and
-c26= CAST('20' as binary) and c27= CAST('20' as binary) and
-c28= CAST('20' as binary) and c29= CAST('20' as binary) and
-c30= CAST('20' as binary) ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20))) = @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and
-c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(CAST('20' as binary),1+length(c20)))
- = CAST('20' as binary) and c21= CAST('20' as binary)
- and c22= CAST('20' as binary) and c23= CAST('20' as binary) and
- c24= CAST('20' as binary) and c25= CAST('20' as binary) and
- c26= CAST('20' as binary) and c27= CAST('20' as binary) and
- c28= CAST('20' as binary) and c29= CAST('20' as binary) and
- c30= CAST('20' as binary)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20))) = ? and c21= ? and
- c22= ? and c23= ? and c25= ? and c26= ? and c27= ? and c28= ? and
- c29= ? and c30= ?";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20;
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20,1+length(c20)))= 20 and c21= 20 and
-c22= 20 and c23= 20 and c24= 20 and c25= 20 and c26= 20 and
-c27= 20 and c28= 20 and c29= 20 and c30= 20 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20,1+length(c20)))= 20 and c21= 20 and
- c22= 20 and c23= 20 and c24= 20 and c25= 20 and c26= 20 and
- c27= 20 and c28= 20 and c29= 20 and c30= 20" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20.0;
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20.0,1+length(c20)))= 20.0 and c21= 20.0 and
-c22= 20.0 and c23= 20.0 and c24= 20.0 and c25= 20.0 and c26= 20.0 and
-c27= 20.0 and c28= 20.0 and c29= 20.0 and c30= 20.0 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20.0,1+length(c20)))= 20.0 and c21= 20.0 and
- c22= 20.0 and c23= 20.0 and c24= 20.0 and c25= 20.0 and c26= 20.0 and
- c27= 20.0 and c28= 20.0 and c29= 20.0 and c30= 20.0" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-delete from t9 ;
-test_sequence
--- insert into date/time columns --
-set sql_mode = '';
-set @arg00= '1991-01-01 01:01:01' ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 20, '1991-01-01 01:01:01', '1991-01-01 01:01:01', '1991-01-01 01:01:01',
-'1991-01-01 01:01:01', '1991-01-01 01:01:01') ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 21, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 22, '1991-01-01 01:01:01', '1991-01-01 01:01:01', '1991-01-01 01:01:01',
- '1991-01-01 01:01:01', '1991-01-01 01:01:01')" ;
-execute stmt1 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 23, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-set @arg00= CAST('1991-01-01 01:01:01' as datetime) ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 30, CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime)) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 31, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 32, CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime))" ;
-execute stmt1 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 33, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-set @arg00= 2000000000 ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 40, 2000000000, 2000000000, 2000000000, 2000000000, 2000000000 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 41, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 42, 2000000000, 2000000000, 2000000000, 2000000000, 2000000000 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 43, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-set @arg00= 1.0e+10 ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 50, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 51, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 52, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 53, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-set sql_mode = default;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 60, NULL, NULL, '1991-01-01 01:01:01',
-NULL, NULL) ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 61, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 62, NULL, NULL, '1991-01-01 01:01:01',
- NULL, NULL)" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 63, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 71, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 73, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8.0 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 81, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 83, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-select c1, c13, c14, c15, c16, c17 from t9 order by c1 ;
-c1 c13 c14 c15 c16 c17
-20 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-21 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-22 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-23 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-30 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-31 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-32 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-33 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-40 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-41 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-42 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-43 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-50 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-51 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-52 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-53 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-60 NULL NULL 1991-01-01 01:01:01 NULL NULL
-61 NULL NULL 1991-01-01 01:01:01 NULL NULL
-62 NULL NULL 1991-01-01 01:01:01 NULL NULL
-63 NULL NULL 1991-01-01 01:01:01 NULL NULL
-71 NULL NULL 1991-01-01 01:01:01 NULL NULL
-73 NULL NULL 1991-01-01 01:01:01 NULL NULL
-81 NULL NULL 1991-01-01 01:01:01 NULL NULL
-83 NULL NULL 1991-01-01 01:01:01 NULL NULL
-test_sequence
--- select .. where date/time column = .. --
-set @arg00= '1991-01-01 01:01:01' ;
-select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 01:01:01' AS DATE) and c14= '1991-01-01 01:01:01' and
-c15= '1991-01-01 01:01:01' and
-c17= '1991-01-01 01:01:01' ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c13= CAST(@arg00 AS DATE) and c14= @arg00 and c15= @arg00
-and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 01:01:01' AS DATE) and c14= '1991-01-01 01:01:01' and
- c15= '1991-01-01 01:01:01' and
- c17= '1991-01-01 01:01:01'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST(? AS DATE) and c14= ? and c15= ? and c17= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= CAST('1991-01-01 01:01:01' as datetime) ;
-select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 00:00:00' as datetime) and
-c14= CAST('1991-01-01 01:01:01' as datetime) and
-c15= CAST('1991-01-01 01:01:01' as datetime) and
-c17= CAST('1991-01-01 01:01:01' as datetime) ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c13= CAST(@arg00 AS DATE) and c14= @arg00 and c15= @arg00
-and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 00:00:00' as datetime) and
- c14= CAST('1991-01-01 01:01:01' as datetime) and
- c15= CAST('1991-01-01 01:01:01' as datetime) and
- c17= CAST('1991-01-01 01:01:01' as datetime)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST(? AS DATE) and c14= ? and c15= ? and c17= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= '01:01:01' ;
-select 'true' as found from t9 where c1= 20 and c16= '01:01:01' ;
-found
-true
-select 'true' as found from t9 where c1= 20 and c16= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= '01:01:01'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= CAST('01:01:01' as time) ;
-select 'true' as found from t9 where c1= 20 and c16= CAST('01:01:01' as time) ;
-found
-true
-select 'true' as found from t9 where c1= 20 and c16= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= CAST('01:01:01' as time)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= 1991 ;
-select 'true' as found from t9
-where c1= 20 and c17= 1991 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c17= 1991" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c17= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= 1.991e+3 ;
-select 'true' as found from t9
-where c1= 20 and abs(c17 - 1.991e+3) < 0.01 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and abs(c17 - @arg00) < 0.01 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and abs(c17 - 1.991e+3) < 0.01" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and abs(c17 - ?) < 0.01" ;
-execute stmt1 using @arg00 ;
-found
-true
-drop table t1, t9 ;
-create table t1
-(
-a int, b varchar(30),
-primary key(a)
-) ENGINE = MERGE UNION=(t1_1,t1_2)
-INSERT_METHOD=LAST;
-create table t9
-(
-c1 tinyint, c2 smallint, c3 mediumint, c4 int,
-c5 integer, c6 bigint, c7 float, c8 double,
-c9 double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
-c13 date, c14 datetime, c15 timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, c16 time,
-c17 year, c18 tinyint, c19 bool, c20 char,
-c21 char(10), c22 varchar(30), c23 tinyblob, c24 tinytext,
-c25 blob, c26 text, c27 mediumblob, c28 mediumtext,
-c29 longblob, c30 longtext, c31 enum('one', 'two', 'three'),
-c32 set('monday', 'tuesday', 'wednesday'),
-primary key(c1)
-) ENGINE = MERGE UNION=(t9_1,t9_2)
-INSERT_METHOD=LAST;
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-test_sequence
------- simple select tests ------
-prepare stmt1 from ' select * from t9 order by c1 ' ;
-execute stmt1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t9 t9 c1 c1 1 4 1 N 53251 0 63
-def test t9 t9 c2 c2 2 6 1 Y 32768 0 63
-def test t9 t9 c3 c3 9 9 1 Y 32768 0 63
-def test t9 t9 c4 c4 3 11 1 Y 32768 0 63
-def test t9 t9 c5 c5 3 11 1 Y 32768 0 63
-def test t9 t9 c6 c6 8 20 1 Y 32768 0 63
-def test t9 t9 c7 c7 4 12 1 Y 32768 31 63
-def test t9 t9 c8 c8 5 22 1 Y 32768 31 63
-def test t9 t9 c9 c9 5 22 1 Y 32768 31 63
-def test t9 t9 c10 c10 5 22 1 Y 32768 31 63
-def test t9 t9 c11 c11 246 9 6 Y 32768 4 63
-def test t9 t9 c12 c12 246 10 6 Y 32768 4 63
-def test t9 t9 c13 c13 10 10 10 Y 128 0 63
-def test t9 t9 c14 c14 12 19 19 Y 128 0 63
-def test t9 t9 c15 c15 7 19 19 N 9377 0 63
-def test t9 t9 c16 c16 11 10 8 Y 128 0 63
-def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
-def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
-def test t9 t9 c19 c19 1 1 1 Y 32768 0 63
-def test t9 t9 c20 c20 254 1 1 Y 0 0 8
-def test t9 t9 c21 c21 254 10 10 Y 0 0 8
-def test t9 t9 c22 c22 253 30 30 Y 0 0 8
-def test t9 t9 c23 c23 252 255 8 Y 144 0 63
-def test t9 t9 c24 c24 252 255 8 Y 16 0 8
-def test t9 t9 c25 c25 252 65535 4 Y 144 0 63
-def test t9 t9 c26 c26 252 65535 4 Y 16 0 8
-def test t9 t9 c27 c27 252 16777215 10 Y 144 0 63
-def test t9 t9 c28 c28 252 16777215 10 Y 16 0 8
-def test t9 t9 c29 c29 252 4294967295 8 Y 144 0 63
-def test t9 t9 c30 c30 252 4294967295 8 Y 16 0 8
-def test t9 t9 c31 c31 254 5 3 Y 256 0 8
-def test t9 t9 c32 c32 254 24 7 Y 2048 0 8
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30 c31 c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-9 9 9 9 9 9 9 9 9 9 9.0000 9.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 0 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext two tuesday
-set @arg00='SELECT' ;
-@arg00 a from t1 where a=1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 a from t1 where a=1' at line 1
-prepare stmt1 from ' ? a from t1 where a=1 ';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? a from t1 where a=1' at line 1
-set @arg00=1 ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-1 one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-1 one
-set @arg00='lion' ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-lion one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-lion one
-set @arg00=NULL ;
-select @arg00, b from t1 where a=1 ;
-@arg00 b
-NULL one
-prepare stmt1 from ' select ?, b from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-? b
-NULL one
-set @arg00=1 ;
-select b, a - @arg00 from t1 where a=1 ;
-b a - @arg00
-one 0
-prepare stmt1 from ' select b, a - ? from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-b a - ?
-one 0
-set @arg00=null ;
-select @arg00 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select ? as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-select @arg00 + 1 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select ? + 1 as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-select 1 + @arg00 as my_col ;
-my_col
-NULL
-prepare stmt1 from ' select 1 + ? as my_col';
-execute stmt1 using @arg00 ;
-my_col
-NULL
-set @arg00='MySQL' ;
-select substr(@arg00,1,2) from t1 where a=1 ;
-substr(@arg00,1,2)
-My
-prepare stmt1 from ' select substr(?,1,2) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr(?,1,2)
-My
-set @arg00=3 ;
-select substr('MySQL',@arg00,5) from t1 where a=1 ;
-substr('MySQL',@arg00,5)
-SQL
-prepare stmt1 from ' select substr(''MySQL'',?,5) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr('MySQL',?,5)
-SQL
-select substr('MySQL',1,@arg00) from t1 where a=1 ;
-substr('MySQL',1,@arg00)
-MyS
-prepare stmt1 from ' select substr(''MySQL'',1,?) from t1 where a=1 ' ;
-execute stmt1 using @arg00 ;
-substr('MySQL',1,?)
-MyS
-set @arg00='MySQL' ;
-select a , concat(@arg00,b) from t1 order by a;
-a concat(@arg00,b)
-1 MySQLone
-2 MySQLtwo
-3 MySQLthree
-4 MySQLfour
-prepare stmt1 from ' select a , concat(?,b) from t1 order by a ' ;
-execute stmt1 using @arg00;
-a concat(?,b)
-1 MySQLone
-2 MySQLtwo
-3 MySQLthree
-4 MySQLfour
-select a , concat(b,@arg00) from t1 order by a ;
-a concat(b,@arg00)
-1 oneMySQL
-2 twoMySQL
-3 threeMySQL
-4 fourMySQL
-prepare stmt1 from ' select a , concat(b,?) from t1 order by a ' ;
-execute stmt1 using @arg00;
-a concat(b,?)
-1 oneMySQL
-2 twoMySQL
-3 threeMySQL
-4 fourMySQL
-set @arg00='MySQL' ;
-select group_concat(@arg00,b order by a) from t1
-group by 'a' ;
-group_concat(@arg00,b order by a)
-MySQLone,MySQLtwo,MySQLthree,MySQLfour
-prepare stmt1 from ' select group_concat(?,b order by a) from t1
-group by ''a'' ' ;
-execute stmt1 using @arg00;
-group_concat(?,b order by a)
-MySQLone,MySQLtwo,MySQLthree,MySQLfour
-select group_concat(b,@arg00 order by a) from t1
-group by 'a' ;
-group_concat(b,@arg00 order by a)
-oneMySQL,twoMySQL,threeMySQL,fourMySQL
-prepare stmt1 from ' select group_concat(b,? order by a) from t1
-group by ''a'' ' ;
-execute stmt1 using @arg00;
-group_concat(b,? order by a)
-oneMySQL,twoMySQL,threeMySQL,fourMySQL
-set @arg00='first' ;
-set @arg01='second' ;
-set @arg02=NULL;
-select @arg00, @arg01 from t1 where a=1 ;
-@arg00 @arg01
-first second
-prepare stmt1 from ' select ?, ? from t1 where a=1 ' ;
-execute stmt1 using @arg00, @arg01 ;
-? ?
-first second
-execute stmt1 using @arg02, @arg01 ;
-? ?
-NULL second
-execute stmt1 using @arg00, @arg02 ;
-? ?
-first NULL
-execute stmt1 using @arg02, @arg02 ;
-? ?
-NULL NULL
-drop table if exists t5 ;
-create table t5 (id1 int(11) not null default '0',
-value2 varchar(100), value1 varchar(100)) ;
-insert into t5 values (1,'hh','hh'),(2,'hh','hh'),
-(1,'ii','ii'),(2,'ii','ii') ;
-prepare stmt1 from ' select id1,value1 from t5 where id1=? or value1=? order by id1,value1 ' ;
-set @arg00=1 ;
-set @arg01='hh' ;
-execute stmt1 using @arg00, @arg01 ;
-id1 value1
-1 hh
-1 ii
-2 hh
-drop table t5 ;
-drop table if exists t5 ;
-create table t5(session_id char(9) not null) ;
-insert into t5 values ('abc') ;
-prepare stmt1 from ' select * from t5
-where ?=''1111'' and session_id = ''abc'' ' ;
-set @arg00='abc' ;
-execute stmt1 using @arg00 ;
-session_id
-set @arg00='1111' ;
-execute stmt1 using @arg00 ;
-session_id
-abc
-set @arg00='abc' ;
-execute stmt1 using @arg00 ;
-session_id
-drop table t5 ;
-set @arg00='FROM' ;
-select a @arg00 t1 where a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 t1 where a=1' at line 1
-prepare stmt1 from ' select a ? t1 where a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? t1 where a=1' at line 1
-set @arg00='t1' ;
-select a from @arg00 where a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 where a=1' at line 1
-prepare stmt1 from ' select a from ? where a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? where a=1' at line 1
-set @arg00='WHERE' ;
-select a from t1 @arg00 a=1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 a=1' at line 1
-prepare stmt1 from ' select a from t1 ? a=1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? a=1' at line 1
-set @arg00=1 ;
-select a FROM t1 where a=@arg00 ;
-a
-1
-prepare stmt1 from ' select a FROM t1 where a=? ' ;
-execute stmt1 using @arg00 ;
-a
-1
-set @arg00=1000 ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=NULL ;
-select a FROM t1 where a=@arg00 ;
-a
-prepare stmt1 from ' select a FROM t1 where a=? ' ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=4 ;
-select a FROM t1 where a=sqrt(@arg00) ;
-a
-2
-prepare stmt1 from ' select a FROM t1 where a=sqrt(?) ' ;
-execute stmt1 using @arg00 ;
-a
-2
-set @arg00=NULL ;
-select a FROM t1 where a=sqrt(@arg00) ;
-a
-prepare stmt1 from ' select a FROM t1 where a=sqrt(?) ' ;
-execute stmt1 using @arg00 ;
-a
-set @arg00=2 ;
-set @arg01=3 ;
-select a FROM t1 where a in (@arg00,@arg01) order by a;
-a
-2
-3
-prepare stmt1 from ' select a FROM t1 where a in (?,?) order by a ';
-execute stmt1 using @arg00, @arg01;
-a
-2
-3
-set @arg00= 'one' ;
-set @arg01= 'two' ;
-set @arg02= 'five' ;
-prepare stmt1 from ' select b FROM t1 where b in (?,?,?) order by b ' ;
-execute stmt1 using @arg00, @arg01, @arg02 ;
-b
-one
-two
-prepare stmt1 from ' select b FROM t1 where b like ? ';
-set @arg00='two' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00='tw%' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00='%wo' ;
-execute stmt1 using @arg00 ;
-b
-two
-set @arg00=null ;
-insert into t9 set c1= 0, c5 = NULL ;
-select c5 from t9 where c5 > NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 > ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 < NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 < ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 = NULL ;
-c5
-prepare stmt1 from ' select c5 from t9 where c5 = ? ';
-execute stmt1 using @arg00 ;
-c5
-select c5 from t9 where c5 <=> NULL ;
-c5
-NULL
-prepare stmt1 from ' select c5 from t9 where c5 <=> ? ';
-execute stmt1 using @arg00 ;
-c5
-NULL
-delete from t9 where c1= 0 ;
-set @arg00='>' ;
-select a FROM t1 where a @arg00 1 ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@arg00 1' at line 1
-prepare stmt1 from ' select a FROM t1 where a ? 1 ' ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? 1' at line 1
-set @arg00=1 ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL group by a - @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL group by a - ? ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00='two' ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL having b <> @arg00 order by a ;
-a b
-1 one
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL having b <> ? order by a ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-3 three
-4 four
-set @arg00=1 ;
-select a,b FROM t1 where a is not NULL
-AND b is not NULL order by a - @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' select a,b FROM t1 where a is not NULL
-AND b is not NULL order by a - ? ' ;
-execute stmt1 using @arg00 ;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=2 ;
-select a,b from t1 order by 2 ;
-a b
-4 four
-1 one
-3 three
-2 two
-prepare stmt1 from ' select a,b from t1
-order by ? ';
-execute stmt1 using @arg00;
-a b
-4 four
-1 one
-3 three
-2 two
-set @arg00=1 ;
-execute stmt1 using @arg00;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=0 ;
-execute stmt1 using @arg00;
-ERROR 42S22: Unknown column '?' in 'order clause'
-set @arg00=1;
-prepare stmt1 from ' select a,b from t1 order by a
-limit 1 ';
-execute stmt1 ;
-a b
-1 one
-prepare stmt1 from ' select a,b from t1 order by a limit ? ';
-execute stmt1 using @arg00;
-a b
-1 one
-set @arg00='b' ;
-set @arg01=0 ;
-set @arg02=2 ;
-set @arg03=2 ;
-select sum(a), @arg00 from t1 where a > @arg01
-and b is not null group by substr(b,@arg02)
-having sum(a) <> @arg03 ;
-sum(a) @arg00
-3 b
-1 b
-4 b
-prepare stmt1 from ' select sum(a), ? from t1 where a > ?
-and b is not null group by substr(b,?)
-having sum(a) <> ? ';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03;
-sum(a) ?
-3 b
-1 b
-4 b
-test_sequence
------- join tests ------
-select first.a as a1, second.a as a2
-from t1 first, t1 second
-where first.a = second.a order by a1 ;
-a1 a2
-1 1
-2 2
-3 3
-4 4
-prepare stmt1 from ' select first.a as a1, second.a as a2
- from t1 first, t1 second
- where first.a = second.a order by a1 ';
-execute stmt1 ;
-a1 a2
-1 1
-2 2
-3 3
-4 4
-set @arg00='ABC';
-set @arg01='two';
-set @arg02='one';
-select first.a, @arg00, second.a FROM t1 first, t1 second
-where @arg01 = first.b or first.a = second.a or second.b = @arg02
-order by second.a, first.a;
-a @arg00 a
-1 ABC 1
-2 ABC 1
-3 ABC 1
-4 ABC 1
-2 ABC 2
-2 ABC 3
-3 ABC 3
-2 ABC 4
-4 ABC 4
-prepare stmt1 from ' select first.a, ?, second.a FROM t1 first, t1 second
- where ? = first.b or first.a = second.a or second.b = ?
- order by second.a, first.a';
-execute stmt1 using @arg00, @arg01, @arg02;
-a ? a
-1 ABC 1
-2 ABC 1
-3 ABC 1
-4 ABC 1
-2 ABC 2
-2 ABC 3
-3 ABC 3
-2 ABC 4
-4 ABC 4
-drop table if exists t2 ;
-create table t2 as select * from t1 ;
-set @query1= 'SELECT * FROM t2 join t1 on (t1.a=t2.a) order by t2.a ' ;
-set @query2= 'SELECT * FROM t2 natural join t1 order by t2.a ' ;
-set @query3= 'SELECT * FROM t2 join t1 using(a) order by t2.a ' ;
-set @query4= 'SELECT * FROM t2 left join t1 on(t1.a=t2.a) order by t2.a ' ;
-set @query5= 'SELECT * FROM t2 natural left join t1 order by t2.a ' ;
-set @query6= 'SELECT * FROM t2 left join t1 using(a) order by t2.a ' ;
-set @query7= 'SELECT * FROM t2 right join t1 on(t1.a=t2.a) order by t2.a ' ;
-set @query8= 'SELECT * FROM t2 natural right join t1 order by t2.a ' ;
-set @query9= 'SELECT * FROM t2 right join t1 using(a) order by t2.a ' ;
-the join statement is:
-SELECT * FROM t2 right join t1 using(a) order by t2.a
-prepare stmt1 from @query9 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural right join t1 order by t2.a
-prepare stmt1 from @query8 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 right join t1 on(t1.a=t2.a) order by t2.a
-prepare stmt1 from @query7 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-the join statement is:
-SELECT * FROM t2 left join t1 using(a) order by t2.a
-prepare stmt1 from @query6 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural left join t1 order by t2.a
-prepare stmt1 from @query5 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 left join t1 on(t1.a=t2.a) order by t2.a
-prepare stmt1 from @query4 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-the join statement is:
-SELECT * FROM t2 join t1 using(a) order by t2.a
-prepare stmt1 from @query3 ;
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-execute stmt1 ;
-a b b
-1 one one
-2 two two
-3 three three
-4 four four
-the join statement is:
-SELECT * FROM t2 natural join t1 order by t2.a
-prepare stmt1 from @query2 ;
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-the join statement is:
-SELECT * FROM t2 join t1 on (t1.a=t2.a) order by t2.a
-prepare stmt1 from @query1 ;
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-execute stmt1 ;
-a b a b
-1 one 1 one
-2 two 2 two
-3 three 3 three
-4 four 4 four
-drop table t2 ;
-test_sequence
------- subquery tests ------
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ''two'') ';
-execute stmt1 ;
-a b
-2 two
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = 'two' ) and b=@arg00 ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ''two'') and b=? ';
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = @arg00 ) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = ? ) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=3 ;
-set @arg01='three' ;
-select a,b FROM t1 where (a,b) in (select 3, 'three');
-a b
-3 three
-select a FROM t1 where (a,b) in (select @arg00,@arg01);
-a
-3
-prepare stmt1 from ' select a FROM t1 where (a,b) in (select ?, ?) ';
-execute stmt1 using @arg00, @arg01;
-a
-3
-set @arg00=1 ;
-set @arg01='two' ;
-set @arg02=2 ;
-set @arg03='two' ;
-select a, @arg00, b FROM t1 outer_table where
-b=@arg01 and a = (select @arg02 from t1 where b = @arg03 ) ;
-a @arg00 b
-2 1 two
-prepare stmt1 from ' select a, ?, b FROM t1 outer_table where
- b=? and a = (select ? from t1 where b = ? ) ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-a ? b
-2 1 two
-prepare stmt1 from 'select c4 FROM t9 where
- c13 = (select MAX(b) from t1 where a = ?) and c22 = ? ' ;
-execute stmt1 using @arg01, @arg02;
-c4
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = outer_table.b ) order by a ';
-execute stmt1 ;
-a b
-1 one
-2 two
-3 three
-4 four
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-prepare stmt1 from ' SELECT a as ccc from t1 outr where a+1=
- (SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1) ';
-execute stmt1 ;
-ccc
-1
-deallocate prepare stmt1 ;
-set @arg00='two' ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where b = outer_table.b ) and b=@arg00 ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where b = outer_table.b) and b=? ';
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=2 ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where a = @arg00 and b = outer_table.b) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where a = ? and b = outer_table.b) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=2 ;
-select a, b FROM t1 outer_table where
-a = (select a from t1 where outer_table.a = @arg00 and a=2) and b='two' ;
-a b
-2 two
-prepare stmt1 from ' select a, b FROM t1 outer_table where
- a = (select a from t1 where outer_table.a = ? and a=2) and b=''two'' ' ;
-execute stmt1 using @arg00;
-a b
-2 two
-set @arg00=1 ;
-set @arg01='two' ;
-set @arg02=2 ;
-set @arg03='two' ;
-select a, @arg00, b FROM t1 outer_table where
-b=@arg01 and a = (select @arg02 from t1 where outer_table.b = @arg03
-and outer_table.a=a ) ;
-a @arg00 b
-2 1 two
-prepare stmt1 from ' select a, ?, b FROM t1 outer_table where
- b=? and a = (select ? from t1 where outer_table.b = ?
- and outer_table.a=a ) ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-a ? b
-2 1 two
-set @arg00=1 ;
-set @arg01=0 ;
-select a, @arg00
-from ( select a - @arg00 as a from t1 where a=@arg00 ) as t2
-where a=@arg01;
-a @arg00
-0 1
-prepare stmt1 from ' select a, ?
- from ( select a - ? as a from t1 where a=? ) as t2
- where a=? ';
-execute stmt1 using @arg00, @arg00, @arg00, @arg01 ;
-a ?
-0 1
-drop table if exists t2 ;
-create table t2 as select * from t1;
-prepare stmt1 from ' select a in (select a from t2) from t1 ' ;
-execute stmt1 ;
-a in (select a from t2)
-1
-1
-1
-1
-drop table if exists t5, t6, t7 ;
-create table t5 (a int , b int) ;
-create table t6 like t5 ;
-create table t7 like t5 ;
-insert into t5 values (0, 100), (1, 2), (1, 3), (2, 2), (2, 7),
-(2, -1), (3, 10) ;
-insert into t6 values (0, 0), (1, 1), (2, 1), (3, 1), (4, 1) ;
-insert into t7 values (3, 3), (2, 2), (1, 1) ;
-prepare stmt1 from ' select a, (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1) from t7 ' ;
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-execute stmt1 ;
-a (select count(distinct t5.b) as sum from t5, t6
- where t5.a=t6.a and t6.b > 0 and t5.a <= t7.b
- group by t5.a order by sum limit 1)
-3 1
-2 2
-1 2
-drop table t5, t6, t7 ;
-drop table if exists t2 ;
-create table t2 as select * from t9;
-set @stmt= ' SELECT
- (SELECT SUM(c1 + c12 + 0.0) FROM t2
- where (t9.c2 - 0e-3) = t2.c2
- GROUP BY t9.c15 LIMIT 1) as scalar_s,
- exists (select 1.0e+0 from t2
- where t2.c3 * 9.0000000000 = t9.c4) as exists_s,
- c5 * 4 in (select c6 + 0.3e+1 from t2) as in_s,
- (c7 - 4, c8 - 4) in (select c9 + 4.0, c10 + 40e-1 from t2) as in_row_s
-FROM t9,
-(select c25 x, c32 y from t2) tt WHERE x = c25 ' ;
-prepare stmt1 from @stmt ;
-execute stmt1 ;
-execute stmt1 ;
-set @stmt= concat('explain ',@stmt);
-prepare stmt1 from @stmt ;
-execute stmt1 ;
-execute stmt1 ;
-set @stmt= ' SELECT
- (SELECT SUM(c1+c12+?) FROM t2 where (t9.c2-?)=t2.c2
- GROUP BY t9.c15 LIMIT 1) as scalar_s,
- exists (select ? from t2
- where t2.c3*?=t9.c4) as exists_s,
- c5*? in (select c6+? from t2) as in_s,
- (c7-?, c8-?) in (select c9+?, c10+? from t2) as in_row_s
-FROM t9,
-(select c25 x, c32 y from t2) tt WHERE x =c25 ' ;
-set @arg00= 0.0 ;
-set @arg01= 0e-3 ;
-set @arg02= 1.0e+0 ;
-set @arg03= 9.0000000000 ;
-set @arg04= 4 ;
-set @arg05= 0.3e+1 ;
-set @arg06= 4 ;
-set @arg07= 4 ;
-set @arg08= 4.0 ;
-set @arg09= 40e-1 ;
-prepare stmt1 from @stmt ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-set @stmt= concat('explain ',@stmt);
-prepare stmt1 from @stmt ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04, @arg05, @arg06,
-@arg07, @arg08, @arg09 ;
-drop table t2 ;
-select 1 < (select a from t1) ;
-ERROR 21000: Subquery returns more than 1 row
-prepare stmt1 from ' select 1 < (select a from t1) ' ;
-execute stmt1 ;
-ERROR 21000: Subquery returns more than 1 row
-select 1 as my_col ;
-my_col
-1
-test_sequence
------- union tests ------
-prepare stmt1 from ' select a FROM t1 where a=1
- union distinct
- select a FROM t1 where a=1 ';
-execute stmt1 ;
-a
-1
-execute stmt1 ;
-a
-1
-prepare stmt1 from ' select a FROM t1 where a=1
- union all
- select a FROM t1 where a=1 ';
-execute stmt1 ;
-a
-1
-1
-prepare stmt1 from ' SELECT 1, 2 union SELECT 1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT 1 union SELECT 1, 2 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT * from t1 union SELECT 1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-prepare stmt1 from ' SELECT 1 union SELECT * from t1 ' ;
-ERROR 21000: The used SELECT statements have a different number of columns
-set @arg00=1 ;
-select @arg00 FROM t1 where a=1
-union distinct
-select 1 FROM t1 where a=1;
-@arg00
-1
-prepare stmt1 from ' select ? FROM t1 where a=1
- union distinct
- select 1 FROM t1 where a=1 ' ;
-execute stmt1 using @arg00;
-?
-1
-set @arg00=1 ;
-select 1 FROM t1 where a=1
-union distinct
-select @arg00 FROM t1 where a=1;
-1
-1
-prepare stmt1 from ' select 1 FROM t1 where a=1
- union distinct
- select ? FROM t1 where a=1 ' ;
-execute stmt1 using @arg00;
-1
-1
-set @arg00='a' ;
-select @arg00 FROM t1 where a=1
-union distinct
-select @arg00 FROM t1 where a=1;
-@arg00
-a
-prepare stmt1 from ' select ? FROM t1 where a=1
- union distinct
- select ? FROM t1 where a=1 ';
-execute stmt1 using @arg00, @arg00;
-?
-a
-prepare stmt1 from ' select ?
- union distinct
- select ? ';
-execute stmt1 using @arg00, @arg00;
-?
-a
-set @arg00='a' ;
-set @arg01=1 ;
-set @arg02='a' ;
-set @arg03=2 ;
-select @arg00 FROM t1 where a=@arg01
-union distinct
-select @arg02 FROM t1 where a=@arg03;
-@arg00
-a
-prepare stmt1 from ' select ? FROM t1 where a=?
- union distinct
- select ? FROM t1 where a=? ' ;
-execute stmt1 using @arg00, @arg01, @arg02, @arg03;
-?
-a
-set @arg00=1 ;
-prepare stmt1 from ' select sum(a) + 200, ? from t1
-union distinct
-select sum(a) + 200, 1 from t1
-group by b ' ;
-execute stmt1 using @arg00;
-sum(a) + 200 ?
-210 1
-204 1
-201 1
-203 1
-202 1
-set @Oporto='Oporto' ;
-set @Lisboa='Lisboa' ;
-set @0=0 ;
-set @1=1 ;
-set @2=2 ;
-set @3=3 ;
-set @4=4 ;
-select @Oporto,@Lisboa,@0,@1,@2,@3,@4 ;
-@Oporto @Lisboa @0 @1 @2 @3 @4
-Oporto Lisboa 0 1 2 3 4
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-group by b
-union distinct
-select sum(a) + 200, @Lisboa from t1
-group by b ;
-the_sum the_town
-204 Oporto
-201 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-201 Lisboa
-203 Lisboa
-202 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- group by b
- union distinct
- select sum(a) + 200, ? from t1
- group by b ' ;
-execute stmt1 using @Oporto, @Lisboa;
-the_sum the_town
-204 Oporto
-201 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-201 Lisboa
-203 Lisboa
-202 Lisboa
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-where a > @1
-group by b
-union distinct
-select sum(a) + 200, @Lisboa from t1
-where a > @2
-group by b ;
-the_sum the_town
-204 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-203 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- where a > ?
- group by b
- union distinct
- select sum(a) + 200, ? from t1
- where a > ?
- group by b ' ;
-execute stmt1 using @Oporto, @1, @Lisboa, @2;
-the_sum the_town
-204 Oporto
-203 Oporto
-202 Oporto
-204 Lisboa
-203 Lisboa
-select sum(a) + 200 as the_sum, @Oporto as the_town from t1
-where a > @1
-group by b
-having avg(a) > @2
-union distinct
-select sum(a) + 200, @Lisboa from t1
-where a > @2
-group by b
-having avg(a) > @3;
-the_sum the_town
-204 Oporto
-203 Oporto
-204 Lisboa
-prepare stmt1 from ' select sum(a) + 200 as the_sum, ? as the_town from t1
- where a > ?
- group by b
- having avg(a) > ?
- union distinct
- select sum(a) + 200, ? from t1
- where a > ?
- group by b
- having avg(a) > ? ';
-execute stmt1 using @Oporto, @1, @2, @Lisboa, @2, @3;
-the_sum the_town
-204 Oporto
-203 Oporto
-204 Lisboa
-test_sequence
------- explain select tests ------
-prepare stmt1 from ' explain select * from t9 ' ;
-execute stmt1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def id 8 3 1 Y 32928 0 63
-def select_type 253 19 6 N 1 39 8
-def table 253 64 2 Y 0 39 8
-def type 253 10 3 Y 0 39 8
-def possible_keys 253 4_OR_8_K 0 Y 0 39 8
-def key 253 64 0 Y 0 39 8
-def key_len 253 4_OR_8_K 0 Y 0 39 8
-def ref 253 2048 0 Y 0 39 8
-def rows 8 10 1 Y 32928 0 63
-def Extra 253 255 0 N 1 39 8
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t9 ALL NULL NULL NULL NULL 2
-test_sequence
------- delete tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'delete from t1 where a=2' ;
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-execute stmt1;
-insert into t1 values(0,NULL);
-set @arg00=NULL;
-prepare stmt1 from 'delete from t1 where b=?' ;
-execute stmt1 using @arg00;
-select a,b from t1 where b is NULL ;
-a b
-0 NULL
-set @arg00='one';
-execute stmt1 using @arg00;
-select a,b from t1 where b=@arg00;
-a b
-prepare stmt1 from 'truncate table t1' ;
-test_sequence
------- update tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'update t1 set b=''a=two'' where a=2' ;
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-2 a=two
-execute stmt1;
-select a,b from t1 where a=2;
-a b
-2 a=two
-set @arg00=NULL;
-prepare stmt1 from 'update t1 set b=? where a=2' ;
-execute stmt1 using @arg00;
-select a,b from t1 where a=2;
-a b
-2 NULL
-set @arg00='two';
-execute stmt1 using @arg00;
-select a,b from t1 where a=2;
-a b
-2 two
-set @arg00=2;
-prepare stmt1 from 'update t1 set b=NULL where a=?' ;
-execute stmt1 using @arg00;
-select a,b from t1 where a=@arg00;
-a b
-2 NULL
-update t1 set b='two' where a=@arg00;
-set @arg00=2000;
-execute stmt1 using @arg00;
-select a,b from t1 where a=@arg00;
-a b
-set @arg00=2;
-set @arg01=22;
-prepare stmt1 from 'update t1 set a=? where a=?' ;
-execute stmt1 using @arg00, @arg00;
-select a,b from t1 where a=@arg00;
-a b
-2 two
-execute stmt1 using @arg01, @arg00;
-select a,b from t1 where a=@arg01;
-a b
-22 two
-execute stmt1 using @arg00, @arg01;
-select a,b from t1 where a=@arg00;
-a b
-2 two
-set @arg00=NULL;
-set @arg01=2;
-set sql_mode = '';
-execute stmt1 using @arg00, @arg01;
-Warnings:
-Warning 1048 Column 'a' cannot be null
-set sql_mode = default;
-select a,b from t1 order by a;
-a b
-0 two
-1 one
-3 three
-4 four
-set @arg00=0;
-execute stmt1 using @arg01, @arg00;
-select a,b from t1 order by a;
-a b
-1 one
-2 two
-3 three
-4 four
-set @arg00=23;
-set @arg01='two';
-set @arg02=2;
-set @arg03='two';
-set @arg04=2;
-drop table if exists t2;
-create table t2 as select a,b from t1 ;
-prepare stmt1 from 'update t1 set a=? where b=?
- and a in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 where a = @arg00 ;
-a b
-23 two
-prepare stmt1 from 'update t1 set a=? where b=?
- and a not in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 order by a ;
-a b
-1 one
-2 two
-3 three
-4 four
-drop table t2 ;
-create table t2
-(
-a int, b varchar(30),
-primary key(a)
-) engine = 'MYISAM' ;
-insert into t2(a,b) select a, b from t1 ;
-prepare stmt1 from 'update t1 set a=? where b=?
- and a in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03, @arg04 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 where a = @arg00 ;
-a b
-23 two
-prepare stmt1 from 'update t1 set a=? where b=?
- and a not in (select ? from t2
- where b = ? or a = ?)';
-execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select a,b from t1 order by a ;
-a b
-1 one
-2 two
-3 three
-4 four
-drop table t2 ;
-set @arg00=1;
-prepare stmt1 from 'update t1 set b=''bla''
-where a=2
-limit 1';
-execute stmt1 ;
-select a,b from t1 where b = 'bla' ;
-a b
-2 bla
-prepare stmt1 from 'update t1 set b=''bla'' where a=2 limit ?';
-execute stmt1 using @arg00;
-test_sequence
------- insert tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-prepare stmt1 from 'insert into t1 values(5, ''five'' )';
-execute stmt1;
-select a,b from t1 where a = 5;
-a b
-5 five
-set @arg00='six' ;
-prepare stmt1 from 'insert into t1 values(6, ? )';
-execute stmt1 using @arg00;
-select a,b from t1 where b = @arg00;
-a b
-6 six
-execute stmt1 using @arg00;
-ERROR 23000: Duplicate entry '6' for key 'PRIMARY'
-set @arg00=NULL ;
-prepare stmt1 from 'insert into t1 values(0, ? )';
-execute stmt1 using @arg00;
-select a,b from t1 where b is NULL;
-a b
-0 NULL
-set @arg00=8 ;
-set @arg01='eight' ;
-prepare stmt1 from 'insert into t1 values(?, ? )';
-execute stmt1 using @arg00, @arg01 ;
-select a,b from t1 where b = @arg01;
-a b
-8 eight
-set @NULL= null ;
-set @arg00= 'abc' ;
-execute stmt1 using @NULL, @NULL ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @NULL ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @arg00 ;
-ERROR 23000: Column 'a' cannot be null
-execute stmt1 using @NULL, @arg00 ;
-ERROR 23000: Column 'a' cannot be null
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @arg00 ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @arg00 ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 abc
-10002 abc
-delete from t1 where a > 10000 ;
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @NULL ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @NULL ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 NULL
-10002 NULL
-delete from t1 where a > 10000 ;
-set @arg01= 10000 + 10 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 9 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 8 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 7 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 6 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 5 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 4 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 3 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 2 ;
-execute stmt1 using @arg01, @arg01 ;
-set @arg01= 10000 + 1 ;
-execute stmt1 using @arg01, @arg01 ;
-select * from t1 where a > 10000 order by a ;
-a b
-10001 10001
-10002 10002
-10003 10003
-10004 10004
-10005 10005
-10006 10006
-10007 10007
-10008 10008
-10009 10009
-10010 10010
-delete from t1 where a > 10000 ;
-set @arg00=81 ;
-set @arg01='8-1' ;
-set @arg02=82 ;
-set @arg03='8-2' ;
-prepare stmt1 from 'insert into t1 values(?,?),(?,?)';
-execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
-select a,b from t1 where a in (@arg00,@arg02) ;
-a b
-81 8-1
-82 8-2
-set @arg00=9 ;
-set @arg01='nine' ;
-prepare stmt1 from 'insert into t1 set a=?, b=? ';
-execute stmt1 using @arg00, @arg01 ;
-select a,b from t1 where a = @arg00 ;
-a b
-9 nine
-set @arg00=6 ;
-set @arg01=1 ;
-prepare stmt1 from 'insert into t1 set a=?, b=''sechs''
- on duplicate key update a=a + ?, b=concat(b,''modified'') ';
-execute stmt1 using @arg00, @arg01;
-select * from t1 order by a;
-a b
-0 NULL
-1 one
-2 two
-3 three
-4 four
-5 five
-7 sixmodified
-8 eight
-9 nine
-81 8-1
-82 8-2
-set @arg00=81 ;
-set @arg01=1 ;
-execute stmt1 using @arg00, @arg01;
-ERROR 23000: Duplicate entry '82' for key 'PRIMARY'
-drop table if exists t2 ;
-create table t2 (id int auto_increment primary key)
-ENGINE= 'MYISAM' ;
-prepare stmt1 from ' select last_insert_id() ' ;
-insert into t2 values (NULL) ;
-execute stmt1 ;
-last_insert_id()
-1
-insert into t2 values (NULL) ;
-execute stmt1 ;
-last_insert_id()
-2
-drop table t2 ;
-set @1000=1000 ;
-set @x1000_2="x1000_2" ;
-set @x1000_3="x1000_3" ;
-set @x1000="x1000" ;
-set @1100=1100 ;
-set @x1100="x1100" ;
-set @100=100 ;
-set @updated="updated" ;
-insert into t1 values(1000,'x1000_1') ;
-insert into t1 values(@1000,@x1000_2),(@1000,@x1000_3)
-on duplicate key update a = a + @100, b = concat(b,@updated) ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 x1000_3
-1100 x1000_1updated
-delete from t1 where a >= 1000 ;
-insert into t1 values(1000,'x1000_1') ;
-prepare stmt1 from ' insert into t1 values(?,?),(?,?)
- on duplicate key update a = a + ?, b = concat(b,?) ';
-execute stmt1 using @1000, @x1000_2, @1000, @x1000_3, @100, @updated ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1000 x1000_3
-1100 x1000_1updated
-delete from t1 where a >= 1000 ;
-insert into t1 values(1000,'x1000_1') ;
-execute stmt1 using @1000, @x1000_2, @1100, @x1000_3, @100, @updated ;
-select a,b from t1 where a >= 1000 order by a ;
-a b
-1200 x1000_1updatedupdated
-delete from t1 where a >= 1000 ;
-prepare stmt1 from ' replace into t1 (a,b) select 100, ''hundred'' ';
-execute stmt1;
-execute stmt1;
-execute stmt1;
-test_sequence
------- multi table tests ------
-delete from t1 ;
-delete from t9 ;
-insert into t1(a,b) values (1, 'one'), (2, 'two'), (3, 'three') ;
-insert into t9 (c1,c21)
-values (1, 'one'), (2, 'two'), (3, 'three') ;
-prepare stmt_delete from " delete t1, t9
- from t1, t9 where t1.a=t9.c1 and t1.b='updated' ";
-prepare stmt_update from " update t1, t9
- set t1.b='updated', t9.c21='updated'
- where t1.a=t9.c1 and t1.a=? ";
-prepare stmt_select1 from " select a, b from t1 order by a" ;
-prepare stmt_select2 from " select c1, c21 from t9 order by c1" ;
-set @arg00= 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-2 two
-3 three
-execute stmt_select2 ;
-c1 c21
-2 two
-3 three
-set @arg00= @arg00 + 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-3 three
-execute stmt_select2 ;
-c1 c21
-3 three
-set @arg00= @arg00 + 1 ;
-execute stmt_update using @arg00 ;
-execute stmt_delete ;
-execute stmt_select1 ;
-a b
-execute stmt_select2 ;
-c1 c21
-set @arg00= @arg00 + 1 ;
-drop table if exists t5 ;
-set @arg01= 8;
-set @arg02= 8.0;
-set @arg03= 80.00000000000e-1;
-set @arg04= 'abc' ;
-set @arg05= CAST('abc' as binary) ;
-set @arg06= '1991-08-05' ;
-set @arg07= CAST('1991-08-05' as date);
-set @arg08= '1991-08-05 01:01:01' ;
-set @arg09= CAST('1991-08-05 01:01:01' as datetime) ;
-set @arg10= unix_timestamp('1991-01-01 01:01:01');
-set @arg11= YEAR('1991-01-01 01:01:01');
-set @arg12= 8 ;
-set @arg12= NULL ;
-set @arg13= 8.0 ;
-set @arg13= NULL ;
-set @arg14= 'abc';
-set @arg14= NULL ;
-set @arg15= CAST('abc' as binary) ;
-set @arg15= NULL ;
-create table t5 engine = MyISAM as select
-8 as const01, @arg01 as param01,
-8.0 as const02, @arg02 as param02,
-80.00000000000e-1 as const03, @arg03 as param03,
-'abc' as const04, @arg04 as param04,
-CAST('abc' as binary) as const05, @arg05 as param05,
-'1991-08-05' as const06, @arg06 as param06,
-CAST('1991-08-05' as date) as const07, @arg07 as param07,
-'1991-08-05 01:01:01' as const08, @arg08 as param08,
-CAST('1991-08-05 01:01:01' as datetime) as const09, @arg09 as param09,
-unix_timestamp('1991-01-01 01:01:01') as const10, @arg10 as param10,
-YEAR('1991-01-01 01:01:01') as const11, @arg11 as param11,
-NULL as const12, @arg12 as param12,
-@arg13 as param13,
-@arg14 as param14,
-@arg15 as param15;
-show create table t5 ;
-Table Create Table
-t5 CREATE TABLE `t5` (
- `const01` int(1) NOT NULL,
- `param01` bigint(20) DEFAULT NULL,
- `const02` decimal(2,1) NOT NULL,
- `param02` decimal(65,38) DEFAULT NULL,
- `const03` double NOT NULL,
- `param03` double DEFAULT NULL,
- `const04` varchar(3) NOT NULL,
- `param04` longtext DEFAULT NULL,
- `const05` varbinary(3) DEFAULT NULL,
- `param05` longblob DEFAULT NULL,
- `const06` varchar(10) NOT NULL,
- `param06` longtext DEFAULT NULL,
- `const07` date DEFAULT NULL,
- `param07` longtext DEFAULT NULL,
- `const08` varchar(19) NOT NULL,
- `param08` longtext DEFAULT NULL,
- `const09` datetime DEFAULT NULL,
- `param09` longtext DEFAULT NULL,
- `const10` bigint(17) DEFAULT NULL,
- `param10` bigint(20) DEFAULT NULL,
- `const11` int(4) DEFAULT NULL,
- `param11` bigint(20) DEFAULT NULL,
- `const12` binary(0) DEFAULT NULL,
- `param12` bigint(20) DEFAULT NULL,
- `param13` decimal(65,38) DEFAULT NULL,
- `param14` longtext DEFAULT NULL,
- `param15` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t5 ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t5 t5 const01 const01 3 1 1 N 36865 0 63
-def test t5 t5 param01 param01 8 20 1 Y 32768 0 63
-def test t5 t5 const02 const02 246 4 3 N 36865 1 63
-def test t5 t5 param02 param02 246 67 40 Y 32768 38 63
-def test t5 t5 const03 const03 5 17 1 N 36865 31 63
-def test t5 t5 param03 param03 5 23 1 Y 32768 31 63
-def test t5 t5 const04 const04 253 3 3 N 4097 0 8
-def test t5 t5 param04 param04 252 4294967295 3 Y 16 0 8
-def test t5 t5 const05 const05 253 3 3 Y 128 0 63
-def test t5 t5 param05 param05 252 4294967295 3 Y 144 0 63
-def test t5 t5 const06 const06 253 10 10 N 4097 0 8
-def test t5 t5 param06 param06 252 4294967295 10 Y 16 0 8
-def test t5 t5 const07 const07 10 10 10 Y 128 0 63
-def test t5 t5 param07 param07 252 4294967295 10 Y 16 0 8
-def test t5 t5 const08 const08 253 19 19 N 4097 0 8
-def test t5 t5 param08 param08 252 4294967295 19 Y 16 0 8
-def test t5 t5 const09 const09 12 19 19 Y 128 0 63
-def test t5 t5 param09 param09 252 4294967295 19 Y 16 0 8
-def test t5 t5 const10 const10 8 17 9 Y 32768 0 63
-def test t5 t5 param10 param10 8 20 9 Y 32768 0 63
-def test t5 t5 const11 const11 3 4 4 Y 32768 0 63
-def test t5 t5 param11 param11 8 20 4 Y 32768 0 63
-def test t5 t5 const12 const12 254 0 0 Y 128 0 63
-def test t5 t5 param12 param12 8 20 0 Y 32768 0 63
-def test t5 t5 param13 param13 246 67 0 Y 32768 38 63
-def test t5 t5 param14 param14 252 4294967295 0 Y 16 0 8
-def test t5 t5 param15 param15 252 4294967295 0 Y 144 0 63
-const01 8
-param01 8
-const02 8.0
-param02 8.00000000000000000000000000000000000000
-const03 8
-param03 8
-const04 abc
-param04 abc
-const05 abc
-param05 abc
-const06 1991-08-05
-param06 1991-08-05
-const07 1991-08-05
-param07 1991-08-05
-const08 1991-08-05 01:01:01
-param08 1991-08-05 01:01:01
-const09 1991-08-05 01:01:01
-param09 1991-08-05 01:01:01
-const10 662680861
-param10 662680861
-const11 1991
-param11 1991
-const12 NULL
-param12 NULL
-param13 NULL
-param14 NULL
-param15 NULL
-drop table t5 ;
-test_sequence
------- data type conversion tests ------
-delete from t1 ;
-insert into t1 values (1,'one');
-insert into t1 values (2,'two');
-insert into t1 values (3,'three');
-insert into t1 values (4,'four');
-commit ;
-delete from t9 ;
-insert into t9
-set c1= 1, c2= 1, c3= 1, c4= 1, c5= 1, c6= 1, c7= 1, c8= 1, c9= 1,
-c10= 1, c11= 1, c12 = 1,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=true, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='one', c32= 'monday';
-insert into t9
-set c1= 9, c2= 9, c3= 9, c4= 9, c5= 9, c6= 9, c7= 9, c8= 9, c9= 9,
-c10= 9, c11= 9, c12 = 9,
-c13= '2004-02-29', c14= '2004-02-29 11:11:11', c15= '2004-02-29 11:11:11',
-c16= '11:11:11', c17= '2004',
-c18= 1, c19=false, c20= 'a', c21= '123456789a',
-c22= '123456789a123456789b123456789c', c23= 'tinyblob', c24= 'tinytext',
-c25= 'blob', c26= 'text', c27= 'mediumblob', c28= 'mediumtext',
-c29= 'longblob', c30= 'longtext', c31='two', c32= 'tuesday';
-commit ;
-insert into t9 set c1= 0, c15= '1991-01-01 01:01:01' ;
-select * from t9 order by c1 ;
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30 c31 c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-9 9 9 9 9 9 9 9 9 9 9.0000 9.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 0 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext two tuesday
-test_sequence
------- select @parameter:= column ------
-prepare full_info from "select @arg01, @arg02, @arg03, @arg04,
- @arg05, @arg06, @arg07, @arg08,
- @arg09, @arg10, @arg11, @arg12,
- @arg13, @arg14, @arg15, @arg16,
- @arg17, @arg18, @arg19, @arg20,
- @arg21, @arg22, @arg23, @arg24,
- @arg25, @arg26, @arg27, @arg28,
- @arg29, @arg30, @arg31, @arg32" ;
-select @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
-@arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
-@arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
-@arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
-@arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
-@arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
-@arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
-@arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= 1 ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-select @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
-@arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
-@arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
-@arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
-@arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
-@arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
-@arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
-@arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= 0 ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select
- @arg01:= c1, @arg02:= c2, @arg03:= c3, @arg04:= c4,
- @arg05:= c5, @arg06:= c6, @arg07:= c7, @arg08:= c8,
- @arg09:= c9, @arg10:= c10, @arg11:= c11, @arg12:= c12,
- @arg13:= c13, @arg14:= c14, @arg15:= c15, @arg16:= c16,
- @arg17:= c17, @arg18:= c18, @arg19:= c19, @arg20:= c20,
- @arg21:= c21, @arg22:= c22, @arg23:= c23, @arg24:= c24,
- @arg25:= c25, @arg26:= c26, @arg27:= c27, @arg28:= c28,
- @arg29:= c29, @arg30:= c30, @arg31:= c31, @arg32:= c32
-from t9 where c1= ?" ;
-set @my_key= 1 ;
-execute stmt1 using @my_key ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-set @my_key= 0 ;
-execute stmt1 using @my_key ;
-@arg01:= c1 @arg02:= c2 @arg03:= c3 @arg04:= c4 @arg05:= c5 @arg06:= c6 @arg07:= c7 @arg08:= c8 @arg09:= c9 @arg10:= c10 @arg11:= c11 @arg12:= c12 @arg13:= c13 @arg14:= c14 @arg15:= c15 @arg16:= c16 @arg17:= c17 @arg18:= c18 @arg19:= c19 @arg20:= c20 @arg21:= c21 @arg22:= c22 @arg23:= c23 @arg24:= c24 @arg25:= c25 @arg26:= c26 @arg27:= c27 @arg28:= c28 @arg29:= c29 @arg30:= c30 @arg31:= c31 @arg32:= c32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select ? := c1 from t9 where c1= 1" ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ':= c1 from t9 where c1= 1' at line 1
-test_sequence
------- select column, .. into @parm,.. ------
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
-c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
-c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
-@arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
-@arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
-@arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= 1 ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
-c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
-c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
-@arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
-@arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
-@arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= 0 ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
- c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24,
- c25, c26, c27, c28, c29, c30, c31, c32
-into @arg01, @arg02, @arg03, @arg04, @arg05, @arg06, @arg07, @arg08,
- @arg09, @arg10, @arg11, @arg12, @arg13, @arg14, @arg15, @arg16,
- @arg17, @arg18, @arg19, @arg20, @arg21, @arg22, @arg23, @arg24,
- @arg25, @arg26, @arg27, @arg28, @arg29, @arg30, @arg31, @arg32
-from t9 where c1= ?" ;
-set @my_key= 1 ;
-execute stmt1 using @my_key ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 1 Y 32896 0 63
-def @arg03 8 20 1 Y 32896 0 63
-def @arg04 8 20 1 Y 32896 0 63
-def @arg05 8 20 1 Y 32896 0 63
-def @arg06 8 20 1 Y 32896 0 63
-def @arg07 5 23 1 Y 32896 31 63
-def @arg08 5 23 1 Y 32896 31 63
-def @arg09 5 23 1 Y 32896 31 63
-def @arg10 5 23 1 Y 32896 31 63
-def @arg11 246 83 6 Y 32896 38 63
-def @arg12 246 83 6 Y 32896 38 63
-def @arg13 251 16777215 10 Y 0 39 8
-def @arg14 251 16777215 19 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 8 Y 0 39 8
-def @arg17 8 20 4 Y 32928 0 63
-def @arg18 8 20 1 Y 32896 0 63
-def @arg19 8 20 1 Y 32896 0 63
-def @arg20 251 16777215 1 Y 0 39 8
-def @arg21 251 16777215 10 Y 0 39 8
-def @arg22 251 16777215 30 Y 0 39 8
-def @arg23 251 16777215 8 Y 128 39 63
-def @arg24 251 16777215 8 Y 0 39 8
-def @arg25 251 16777215 4 Y 128 39 63
-def @arg26 251 16777215 4 Y 0 39 8
-def @arg27 251 16777215 10 Y 128 39 63
-def @arg28 251 16777215 10 Y 0 39 8
-def @arg29 251 16777215 8 Y 128 39 63
-def @arg30 251 16777215 8 Y 0 39 8
-def @arg31 251 16777215 3 Y 0 39 8
-def @arg32 251 16777215 6 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-1 1 1 1 1 1 1 1 1 1 1.0000 1.0000 2004-02-29 2004-02-29 11:11:11 2004-02-29 11:11:11 11:11:11 2004 1 1 a 123456789a 123456789a123456789b123456789c tinyblob tinytext blob text mediumblob mediumtext longblob longtext one monday
-set @my_key= 0 ;
-execute stmt1 using @my_key ;
-execute full_info ;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @arg01 8 20 1 Y 32896 0 63
-def @arg02 8 20 0 Y 32896 0 63
-def @arg03 8 20 0 Y 32896 0 63
-def @arg04 8 20 0 Y 32896 0 63
-def @arg05 8 20 0 Y 32896 0 63
-def @arg06 8 20 0 Y 32896 0 63
-def @arg07 5 23 0 Y 32896 31 63
-def @arg08 5 23 0 Y 32896 31 63
-def @arg09 5 23 0 Y 32896 31 63
-def @arg10 5 23 0 Y 32896 31 63
-def @arg11 246 83 0 Y 32896 38 63
-def @arg12 246 83 0 Y 32896 38 63
-def @arg13 251 16777215 0 Y 0 39 8
-def @arg14 251 16777215 0 Y 0 39 8
-def @arg15 251 16777215 19 Y 0 39 8
-def @arg16 251 16777215 0 Y 0 39 8
-def @arg17 8 20 0 Y 32928 0 63
-def @arg18 8 20 0 Y 32896 0 63
-def @arg19 8 20 0 Y 32896 0 63
-def @arg20 251 16777215 0 Y 0 39 8
-def @arg21 251 16777215 0 Y 0 39 8
-def @arg22 251 16777215 0 Y 0 39 8
-def @arg23 251 16777215 0 Y 128 39 63
-def @arg24 251 16777215 0 Y 0 39 8
-def @arg25 251 16777215 0 Y 128 39 63
-def @arg26 251 16777215 0 Y 0 39 8
-def @arg27 251 16777215 0 Y 128 39 63
-def @arg28 251 16777215 0 Y 0 39 8
-def @arg29 251 16777215 0 Y 128 39 63
-def @arg30 251 16777215 0 Y 0 39 8
-def @arg31 251 16777215 0 Y 0 39 8
-def @arg32 251 16777215 0 Y 0 39 8
-@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
-0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-prepare stmt1 from "select c1 into ? from t9 where c1= 1" ;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? from t9 where c1= 1' at line 1
-test_sequence
--- insert into numeric columns --
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20 ) ;
-set @arg00= 21 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22 )" ;
-execute stmt1 ;
-set @arg00= 23;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0,
-30.0, 30.0, 30.0 ) ;
-set @arg00= 31.0 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 32.0, 32.0, 32.0, 32.0, 32.0, 32.0, 32.0, 32.0,
- 32.0, 32.0, 32.0 )" ;
-execute stmt1 ;
-set @arg00= 33.0;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( '40', '40', '40', '40', '40', '40', '40', '40',
-'40', '40', '40' ) ;
-set @arg00= '41' ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( '42', '42', '42', '42', '42', '42', '42', '42',
- '42', '42', '42' )" ;
-execute stmt1 ;
-set @arg00= '43';
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary),
-CAST('50' as binary), CAST('50' as binary), CAST('50' as binary) ) ;
-set @arg00= CAST('51' as binary) ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary),
- CAST('52' as binary), CAST('52' as binary), CAST('52' as binary) )" ;
-execute stmt1 ;
-set @arg00= CAST('53' as binary) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 2 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 60, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
-NULL, NULL, NULL ) ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 61, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 62, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL )" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 63, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8.0 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 71, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 73, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
-( 81, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 83, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12
-from t9 where c1 >= 20
-order by c1 ;
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c12
-20 20 20 20 20 20 20 20 20 20 20.0000
-21 21 21 21 21 21 21 21 21 21 21.0000
-22 22 22 22 22 22 22 22 22 22 22.0000
-23 23 23 23 23 23 23 23 23 23 23.0000
-30 30 30 30 30 30 30 30 30 30 30.0000
-31 31 31 31 31 31 31 31 31 31 31.0000
-32 32 32 32 32 32 32 32 32 32 32.0000
-33 33 33 33 33 33 33 33 33 33 33.0000
-40 40 40 40 40 40 40 40 40 40 40.0000
-41 41 41 41 41 41 41 41 41 41 41.0000
-42 42 42 42 42 42 42 42 42 42 42.0000
-43 43 43 43 43 43 43 43 43 43 43.0000
-50 50 50 50 50 50 50 50 50 50 50.0000
-51 51 51 51 51 51 51 51 51 51 51.0000
-52 52 52 52 52 52 52 52 52 52 52.0000
-53 53 53 53 53 53 53 53 53 53 53.0000
-60 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-61 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-62 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-63 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-71 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-73 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-81 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-83 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-test_sequence
--- select .. where numeric column = .. --
-set @arg00= 20;
-select 'true' as found from t9
-where c1= 20 and c2= 20 and c3= 20 and c4= 20 and c5= 20 and c6= 20 and c7= 20
-and c8= 20 and c9= 20 and c10= 20 and c12= 20;
-found
-true
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c2= 20 and c3= 20 and c4= 20 and c5= 20 and c6= 20 and c7= 20
- and c8= 20 and c9= 20 and c10= 20 and c12= 20 ";
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20.0;
-select 'true' as found from t9
-where c1= 20.0 and c2= 20.0 and c3= 20.0 and c4= 20.0 and c5= 20.0 and c6= 20.0
-and c7= 20.0 and c8= 20.0 and c9= 20.0 and c10= 20.0 and c12= 20.0;
-found
-true
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20.0 and c2= 20.0 and c3= 20.0 and c4= 20.0 and c5= 20.0 and c6= 20.0
- and c7= 20.0 and c8= 20.0 and c9= 20.0 and c10= 20.0 and c12= 20.0 ";
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-select 'true' as found from t9
-where c1= '20' and c2= '20' and c3= '20' and c4= '20' and c5= '20' and c6= '20'
- and c7= '20' and c8= '20' and c9= '20' and c10= '20' and c12= '20';
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= '20' and c2= '20' and c3= '20' and c4= '20' and c5= '20' and c6= '20'
- and c7= '20' and c8= '20' and c9= '20' and c10= '20' and c12= '20' ";
-execute stmt1 ;
-found
-true
-set @arg00= '20';
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-select 'true' as found from t9
-where c1= CAST('20' as binary) and c2= CAST('20' as binary) and
-c3= CAST('20' as binary) and c4= CAST('20' as binary) and
-c5= CAST('20' as binary) and c6= CAST('20' as binary) and
-c7= CAST('20' as binary) and c8= CAST('20' as binary) and
-c9= CAST('20' as binary) and c10= CAST('20' as binary) and
-c12= CAST('20' as binary);
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= CAST('20' as binary) and c2= CAST('20' as binary) and
- c3= CAST('20' as binary) and c4= CAST('20' as binary) and
- c5= CAST('20' as binary) and c6= CAST('20' as binary) and
- c7= CAST('20' as binary) and c8= CAST('20' as binary) and
- c9= CAST('20' as binary) and c10= CAST('20' as binary) and
- c12= CAST('20' as binary) ";
-execute stmt1 ;
-found
-true
-set @arg00= CAST('20' as binary) ;
-select 'true' as found from t9
-where c1= @arg00 and c2= @arg00 and c3= @arg00 and c4= @arg00 and c5= @arg00
-and c6= @arg00 and c7= @arg00 and c8= @arg00 and c9= @arg00 and c10= @arg00
-and c12= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= ? and c2= ? and c3= ? and c4= ? and c5= ?
- and c6= ? and c7= ? and c8= ? and c9= ? and c10= ?
- and c12= ? ";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-found
-true
-delete from t9 ;
-test_sequence
--- some numeric overflow experiments --
-prepare my_insert from "insert into t9
- ( c21, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12 )
-values
- ( 'O', ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-prepare my_select from "select c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c12
-from t9 where c21 = 'O' ";
-prepare my_delete from "delete from t9 where c21 = 'O' ";
-set @arg00= 9223372036854775807 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 9.22337e18
-c8 9.223372036854776e18
-c9 9.223372036854776e18
-c10 9.223372036854776e18
-c12 9999.9999
-execute my_delete ;
-set @arg00= '9223372036854775807' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 9.22337e18
-c8 9.223372036854776e18
-c9 9.223372036854776e18
-c10 9.223372036854776e18
-c12 9999.9999
-execute my_delete ;
-set @arg00= -9223372036854775808 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -9.22337e18
-c8 -9.223372036854776e18
-c9 -9.223372036854776e18
-c10 -9.223372036854776e18
-c12 -9999.9999
-execute my_delete ;
-set @arg00= '-9223372036854775808' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -9.22337e18
-c8 -9.223372036854776e18
-c9 -9.223372036854776e18
-c10 -9.223372036854776e18
-c12 -9999.9999
-execute my_delete ;
-set @arg00= 1.11111111111111111111e+50 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 3.40282e38
-c8 1.111111111111111e50
-c9 1.111111111111111e50
-c10 1.111111111111111e50
-c12 9999.9999
-execute my_delete ;
-set @arg00= '1.11111111111111111111e+50' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 127
-c2 32767
-c3 8388607
-c4 2147483647
-c5 2147483647
-c6 9223372036854775807
-c7 3.40282e38
-c8 1.111111111111111e50
-c9 1.111111111111111e50
-c10 1.111111111111111e50
-c12 9999.9999
-execute my_delete ;
-set @arg00= -1.11111111111111111111e+50 ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -3.40282e38
-c8 -1.111111111111111e50
-c9 -1.111111111111111e50
-c10 -1.111111111111111e50
-c12 -9999.9999
-execute my_delete ;
-set @arg00= '-1.11111111111111111111e+50' ;
-set statement sql_mode = '' for
-execute my_insert using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-Warning 1264 Out of range value for column 'c2' at row 1
-Warning 1264 Out of range value for column 'c3' at row 1
-Warning 1264 Out of range value for column 'c4' at row 1
-Warning 1264 Out of range value for column 'c5' at row 1
-Warning 1264 Out of range value for column 'c6' at row 1
-Warning 1264 Out of range value for column 'c7' at row 1
-Warning 1264 Out of range value for column 'c12' at row 1
-execute my_select ;
-c1 -128
-c2 -32768
-c3 -8388608
-c4 -2147483648
-c5 -2147483648
-c6 -9223372036854775808
-c7 -3.40282e38
-c8 -1.111111111111111e50
-c9 -1.111111111111111e50
-c10 -1.111111111111111e50
-c12 -9999.9999
-execute my_delete ;
-test_sequence
--- insert into string columns --
-set sql_mode = '';
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 20, '20', '20', '20', '20', '20', '20', '20', '20', '20', '20', '20' ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '21' ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 21, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 22, '22', '22', '22', '22', '22', '22', '22', '22', '22', '22', '22' )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '23';
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 23, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 30, CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary), CAST('30' as binary),
-CAST('30' as binary), CAST('30' as binary) ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= '31' ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 31, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 32, CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary), CAST('32' as binary),
- CAST('32' as binary), CAST('32' as binary) )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= CAST('33' as binary);
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 33, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 41 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 41, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 43;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 43, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 50, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 51.0 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 51, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 52, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0, 52.0 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 53.0;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 53, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 54, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1, 5.4e+1,
-5.4e+1, 5.4e+1, 5.4e+1 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 5.5e+1 ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 55, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 56, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1, 5.6e+1,
- 5.6e+1, 5.6e+1, 5.6e+1 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set @arg00= 5.7e+1;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 57, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-set sql_mode = default;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 60, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL ) ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 61, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt1 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 62, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL )" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 63, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 2 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 71, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 73, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
-( 81, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00 ) ;
-prepare stmt2 from "insert into t9
- ( c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30 )
-values
- ( 83, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00 ;
-select c1, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30
-from t9 where c1 >= 20
-order by c1 ;
-c1 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30
-20 2 20 20 20 20 20 20 20 20 20 20
-21 2 21 21 21 21 21 21 21 21 21 21
-22 2 22 22 22 22 22 22 22 22 22 22
-23 2 23 23 23 23 23 23 23 23 23 23
-30 3 30 30 30 30 30 30 30 30 30 30
-31 3 31 31 31 31 31 31 31 31 31 31
-32 3 32 32 32 32 32 32 32 32 32 32
-33 3 33 33 33 33 33 33 33 33 33 33
-40 4 40 40 40 40 40 40 40 40 40 40
-41 4 41 41 41 41 41 41 41 41 41 41
-42 4 42 42 42 42 42 42 42 42 42 42
-43 4 43 43 43 43 43 43 43 43 43 43
-50 5 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0 50.0
-51 5 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0 51.0
-52 5 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0 52.0
-53 5 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0 53.0
-54 5 54 54 54 54 54 54 54 54 54 54
-55 6 55 55 55 55 55 55 55 55 55 55
-56 6 56 56 56 56 56 56 56 56 56 56
-57 6 57 57 57 57 57 57 57 57 57 57
-60 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-61 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-62 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-63 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-71 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-73 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-81 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-83 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
-test_sequence
--- select .. where string column = .. --
-set @arg00= '20';
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr('20',1+length(c20)))= '20' and c21= '20' and
-c22= '20' and c23= '20' and c24= '20' and c25= '20' and c26= '20' and
-c27= '20' and c28= '20' and c29= '20' and c30= '20' ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr('20',1+length(c20)))= '20' and c21= '20' and
- c22= '20' and c23= '20' and c24= '20' and c25= '20' and c26= '20' and
- c27= '20' and c28= '20' and c29= '20' and c30= '20'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= CAST('20' as binary);
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(CAST('20' as binary),1+length(c20)))
-= CAST('20' as binary) and c21= CAST('20' as binary)
-and c22= CAST('20' as binary) and c23= CAST('20' as binary) and
-c24= CAST('20' as binary) and c25= CAST('20' as binary) and
-c26= CAST('20' as binary) and c27= CAST('20' as binary) and
-c28= CAST('20' as binary) and c29= CAST('20' as binary) and
-c30= CAST('20' as binary) ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20))) = @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and
-c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(CAST('20' as binary),1+length(c20)))
- = CAST('20' as binary) and c21= CAST('20' as binary)
- and c22= CAST('20' as binary) and c23= CAST('20' as binary) and
- c24= CAST('20' as binary) and c25= CAST('20' as binary) and
- c26= CAST('20' as binary) and c27= CAST('20' as binary) and
- c28= CAST('20' as binary) and c29= CAST('20' as binary) and
- c30= CAST('20' as binary)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20))) = ? and c21= ? and
- c22= ? and c23= ? and c25= ? and c26= ? and c27= ? and c28= ? and
- c29= ? and c30= ?";
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20;
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20,1+length(c20)))= 20 and c21= 20 and
-c22= 20 and c23= 20 and c24= 20 and c25= 20 and c26= 20 and
-c27= 20 and c28= 20 and c29= 20 and c30= 20 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20,1+length(c20)))= 20 and c21= 20 and
- c22= 20 and c23= 20 and c24= 20 and c25= 20 and c26= 20 and
- c27= 20 and c28= 20 and c29= 20 and c30= 20" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= 20.0;
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20.0,1+length(c20)))= 20.0 and c21= 20.0 and
-c22= 20.0 and c23= 20.0 and c24= 20.0 and c25= 20.0 and c26= 20.0 and
-c27= 20.0 and c28= 20.0 and c29= 20.0 and c30= 20.0 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and concat(c20,substr(@arg00,1+length(c20)))= @arg00 and
-c21= @arg00 and c22= @arg00 and c23= @arg00 and c25= @arg00 and
-c26= @arg00 and c27= @arg00 and c28= @arg00 and c29= @arg00 and c30= @arg00;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(20.0,1+length(c20)))= 20.0 and c21= 20.0 and
- c22= 20.0 and c23= 20.0 and c24= 20.0 and c25= 20.0 and c26= 20.0 and
- c27= 20.0 and c28= 20.0 and c29= 20.0 and c30= 20.0" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and concat(c20,substr(?,1+length(c20)))= ? and
- c21= ? and c22= ? and c23= ? and c25= ? and
- c26= ? and c27= ? and c28= ? and c29= ? and c30= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00, @arg00,
-@arg00, @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-delete from t9 ;
-test_sequence
--- insert into date/time columns --
-set sql_mode = '';
-set @arg00= '1991-01-01 01:01:01' ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 20, '1991-01-01 01:01:01', '1991-01-01 01:01:01', '1991-01-01 01:01:01',
-'1991-01-01 01:01:01', '1991-01-01 01:01:01') ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 21, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 22, '1991-01-01 01:01:01', '1991-01-01 01:01:01', '1991-01-01 01:01:01',
- '1991-01-01 01:01:01', '1991-01-01 01:01:01')" ;
-execute stmt1 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 23, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-set @arg00= CAST('1991-01-01 01:01:01' as datetime) ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 30, CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime),
-CAST('1991-01-01 01:01:01' as datetime)) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 31, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 32, CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime),
- CAST('1991-01-01 01:01:01' as datetime))" ;
-execute stmt1 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 33, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Note 1265 Data truncated for column 'c13' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1265 Data truncated for column 'c17' at row 1
-set @arg00= 2000000000 ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 40, 2000000000, 2000000000, 2000000000, 2000000000, 2000000000 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 41, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 42, 2000000000, 2000000000, 2000000000, 2000000000, 2000000000 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 43, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c13' at row 1
-Warning 1265 Data truncated for column 'c14' at row 1
-Warning 1265 Data truncated for column 'c15' at row 1
-Warning 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-set @arg00= 1.0e+10 ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 50, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 ) ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 51, @arg00, @arg00, @arg00, @arg00, @arg00) ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 52, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 )" ;
-execute stmt1 ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 53, ?, ?, ?, ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
-Warnings:
-Warning 1265 Data truncated for column 'c15' at row 1
-Note 1265 Data truncated for column 'c16' at row 1
-Warning 1264 Out of range value for column 'c17' at row 1
-set sql_mode = default;
-set @arg00= 'abc' ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 60, NULL, NULL, '1991-01-01 01:01:01',
-NULL, NULL) ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 61, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt1 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 62, NULL, NULL, '1991-01-01 01:01:01',
- NULL, NULL)" ;
-execute stmt1 ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 63, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 71, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 73, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-set @arg00= 8.0 ;
-set @arg00= NULL ;
-insert into t9
-( c1, c13, c14, c15, c16, c17 )
-values
-( 81, @arg00, @arg00, '1991-01-01 01:01:01', @arg00, @arg00) ;
-prepare stmt2 from "insert into t9
- ( c1, c13, c14, c15, c16, c17 )
-values
- ( 83, ?, ?, '1991-01-01 01:01:01', ?, ? )" ;
-execute stmt2 using @arg00, @arg00, @arg00, @arg00 ;
-select c1, c13, c14, c15, c16, c17 from t9 order by c1 ;
-c1 c13 c14 c15 c16 c17
-20 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-21 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-22 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-23 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-30 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-31 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-32 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-33 1991-01-01 1991-01-01 01:01:01 1991-01-01 01:01:01 01:01:01 1991
-40 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-41 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-42 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-43 0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-50 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-51 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-52 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-53 2001-00-00 2001-00-00 00:00:00 0000-00-00 00:00:00 00:00:00 0000
-60 NULL NULL 1991-01-01 01:01:01 NULL NULL
-61 NULL NULL 1991-01-01 01:01:01 NULL NULL
-62 NULL NULL 1991-01-01 01:01:01 NULL NULL
-63 NULL NULL 1991-01-01 01:01:01 NULL NULL
-71 NULL NULL 1991-01-01 01:01:01 NULL NULL
-73 NULL NULL 1991-01-01 01:01:01 NULL NULL
-81 NULL NULL 1991-01-01 01:01:01 NULL NULL
-83 NULL NULL 1991-01-01 01:01:01 NULL NULL
-test_sequence
--- select .. where date/time column = .. --
-set @arg00= '1991-01-01 01:01:01' ;
-select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 01:01:01' AS DATE) and c14= '1991-01-01 01:01:01' and
-c15= '1991-01-01 01:01:01' and
-c17= '1991-01-01 01:01:01' ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c13= CAST(@arg00 AS DATE) and c14= @arg00 and c15= @arg00
-and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 01:01:01' AS DATE) and c14= '1991-01-01 01:01:01' and
- c15= '1991-01-01 01:01:01' and
- c17= '1991-01-01 01:01:01'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST(? AS DATE) and c14= ? and c15= ? and c17= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= CAST('1991-01-01 01:01:01' as datetime) ;
-select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 00:00:00' as datetime) and
-c14= CAST('1991-01-01 01:01:01' as datetime) and
-c15= CAST('1991-01-01 01:01:01' as datetime) and
-c17= CAST('1991-01-01 01:01:01' as datetime) ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c13= CAST(@arg00 AS DATE) and c14= @arg00 and c15= @arg00
-and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST('1991-01-01 00:00:00' as datetime) and
- c14= CAST('1991-01-01 01:01:01' as datetime) and
- c15= CAST('1991-01-01 01:01:01' as datetime) and
- c17= CAST('1991-01-01 01:01:01' as datetime)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c13= CAST(? AS DATE) and c14= ? and c15= ? and c17= ?" ;
-execute stmt1 using @arg00, @arg00, @arg00, @arg00 ;
-found
-true
-set @arg00= '01:01:01' ;
-select 'true' as found from t9 where c1= 20 and c16= '01:01:01' ;
-found
-true
-select 'true' as found from t9 where c1= 20 and c16= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= '01:01:01'" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= CAST('01:01:01' as time) ;
-select 'true' as found from t9 where c1= 20 and c16= CAST('01:01:01' as time) ;
-found
-true
-select 'true' as found from t9 where c1= 20 and c16= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= CAST('01:01:01' as time)" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9 where c1= 20 and c16= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= 1991 ;
-select 'true' as found from t9
-where c1= 20 and c17= 1991 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and c17= @arg00 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c17= 1991" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and c17= ?" ;
-execute stmt1 using @arg00 ;
-found
-true
-set @arg00= 1.991e+3 ;
-select 'true' as found from t9
-where c1= 20 and abs(c17 - 1.991e+3) < 0.01 ;
-found
-true
-select 'true' as found from t9
-where c1= 20 and abs(c17 - @arg00) < 0.01 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and abs(c17 - 1.991e+3) < 0.01" ;
-execute stmt1 ;
-found
-true
-prepare stmt1 from "select 'true' as found from t9
-where c1= 20 and abs(c17 - ?) < 0.01" ;
-execute stmt1 using @arg00 ;
-found
-true
-drop table t1, t1_1, t1_2,
-t9_1, t9_2, t9;
diff --git a/mysql-test/r/ps_change_master.result b/mysql-test/r/ps_change_master.result
deleted file mode 100644
index 25069a537a5..00000000000
--- a/mysql-test/r/ps_change_master.result
+++ /dev/null
@@ -1,22 +0,0 @@
-#
-# CHANGE MASTER TO doesn't work with prepared statements
-#
-CHANGE MASTER TO MASTER_HOST='host1', MASTER_USER='user1';
-# Master_Host : host1
-# Master_User : user1
-SET @s := "CHANGE MASTER TO MASTER_HOST='host2'";
-PREPARE stmt FROM @s;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-# Master_Host : host2
-# Master_User : user1
-SET @s := "CHANGE MASTER TO MASTER_USER='user2'";
-PREPARE stmt FROM @s;
-EXECUTE stmt;
-EXECUTE stmt;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-# Master_Host : host2
-# Master_User : user2
-CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_USER='root';
-# End of test
diff --git a/mysql-test/r/ps_ddl.result b/mysql-test/r/ps_ddl.result
deleted file mode 100644
index 68acf50aee1..00000000000
--- a/mysql-test/r/ps_ddl.result
+++ /dev/null
@@ -1,2585 +0,0 @@
-drop temporary table if exists t1, t2, t3;
-drop table if exists t1, t2, t3;
-drop procedure if exists p_verify_reprepare_count;
-drop procedure if exists p1;
-drop function if exists f1;
-drop view if exists v1, v2;
-TRUNCATE TABLE mysql.general_log;
-create procedure p_verify_reprepare_count(expected int)
-begin
-declare old_reprepare_count int default @reprepare_count;
-select variable_value from
-information_schema.session_status where
-variable_name='com_stmt_reprepare'
- into @reprepare_count;
-if old_reprepare_count + expected <> @reprepare_count then
-select concat("Expected: ", expected,
-", actual: ", @reprepare_count - old_reprepare_count)
-as "ERROR";
-else
-select '' as "SUCCESS";
-end if;
-end|
-set @reprepare_count= 0;
-flush status;
-=====================================================================
-Part 1: NOTHING -> TABLE transitions
-=====================================================================
-prepare stmt from "select * from t1";
-ERROR 42S02: Table 'test.t1' doesn't exist
-=====================================================================
-Part 2: NOTHING -> TEMPORARY TABLE transitions
-=====================================================================
-=====================================================================
-Part 3: NOTHING -> VIEW transitions
-=====================================================================
-=====================================================================
-Part 4: TABLE -> NOTHING transitions
-=====================================================================
-# Test 4-a: select ... from <table>
-create table t1 (a int);
-prepare stmt from "select * from t1";
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t1;
-execute stmt;
-ERROR 42S02: Table 'test.t1' doesn't exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-ERROR 42S02: Table 'test.t1' doesn't exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-deallocate prepare stmt;
-# Test 4-b: TABLE -> NOTHING by renaming the table
-create table t1 (a int);
-prepare stmt from "select * from t1";
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-rename table t1 to t2;
-execute stmt;
-ERROR 42S02: Table 'test.t1' doesn't exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-ERROR 42S02: Table 'test.t1' doesn't exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-deallocate prepare stmt;
-drop table t2;
-=====================================================================
-Part 5: TABLE -> TABLE (DDL) transitions
-=====================================================================
-create table t1 (a int);
-prepare stmt from "select a from t1";
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-alter table t1 add column (b int);
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t1;
-deallocate prepare stmt;
-=====================================================================
-Part 6: TABLE -> TABLE (TRIGGER) transitions
-=====================================================================
-# Test 6-a: adding a relevant trigger
-create table t1 (a int);
-prepare stmt from "insert into t1 (a) value (?)";
-set @val=1;
-execute stmt using @val;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-create trigger t1_bi before insert on t1 for each row
-set @message= new.a;
-set @val=2;
-execute stmt using @val;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select @message;
-@message
-2
-set @val=3;
-execute stmt using @val;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select @message;
-@message
-3
-prepare stmt from "insert into t1 (a) value (?)";
-set @val=4;
-execute stmt using @val;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select @message;
-@message
-4
-# Test 6-b: adding an irrelevant trigger
-create trigger t1_bd before delete on t1 for each row
-set @message= old.a;
-set @val=5;
-execute stmt using @val;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select @message;
-@message
-5
-set @val=6;
-execute stmt using @val;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select @message;
-@message
-6
-prepare stmt from "insert into t1 (a) value (?)";
-set @val=7;
-execute stmt using @val;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select @message;
-@message
-7
-# Test 6-c: changing a relevant trigger
-drop trigger t1_bi;
-create trigger t1_bi before insert on t1 for each row
-set @message= concat("new trigger: ", new.a);
-set @val=8;
-execute stmt using @val;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select @message;
-@message
-new trigger: 8
-set @val=9;
-execute stmt using @val;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select @message;
-@message
-new trigger: 9
-prepare stmt from "insert into t1 (a) value (?)";
-set @val=10;
-execute stmt using @val;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select @message;
-@message
-new trigger: 10
-# Test 6-d: changing an irrelevant trigger
-drop trigger t1_bd;
-set @val=11;
-execute stmt using @val;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select @message;
-@message
-new trigger: 11
-Test 6-e: removing a relevant trigger
-drop trigger t1_bi;
-set @val=12;
-execute stmt using @val;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select @message;
-@message
-new trigger: 11
-set @val=13;
-execute stmt using @val;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select @message;
-@message
-new trigger: 11
-prepare stmt from "insert into t1 (a) value (?)";
-set @val=14;
-execute stmt using @val;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select @message;
-@message
-new trigger: 11
-select * from t1 order by a;
-a
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-drop table t1;
-deallocate prepare stmt;
-=====================================================================
-Part 7: TABLE -> TABLE (TRIGGER dependencies) transitions
-=====================================================================
-# Test 7-a: dependent PROCEDURE has changed
-#
-create table t1 (a int);
-create trigger t1_ai after insert on t1 for each row
-call p1(new.a);
-create procedure p1(a int) begin end;
-prepare stmt from "insert into t1 (a) values (?)";
-set @var= 1;
-execute stmt using @var;
-drop procedure p1;
-create procedure p1 (a int) begin end;
-set @var= 2;
-execute stmt using @var;
-# Cleanup
-drop procedure p1;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-# Test 7-b: dependent FUNCTION has changed
-#
-# Note, this scenario is supported, subject of Bug#12093
-#
-drop trigger t1_ai;
-create trigger t1_ai after insert on t1 for each row
-select f1(new.a+1) into @var;
-create function f1 (a int) returns int return a;
-prepare stmt from "insert into t1(a) values (?)";
-set @var=3;
-execute stmt using @var;
-select @var;
-@var
-4
-drop function f1;
-create function f1 (a int) returns int return 0;
-execute stmt using @var;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-drop function f1;
-deallocate prepare stmt;
-# Test 7-c: dependent VIEW has changed
-#
-# Note, this scenario is not functioning correctly, see
-# Bug#33255 Trigger using views and view ddl : corrupted triggers
-# and Bug #33000 Triggers do not detect changes in meta-data.
-#
-drop trigger t1_ai;
-create table t2 (a int unique);
-create table t3 (a int unique);
-create view v1 as select a from t2;
-create trigger t1_ai after insert on t1 for each row
-insert into v1 (a) values (new.a);
-# Demonstrate that the same bug is present
-# without prepared statements
-insert into t1 (a) values (5);
-select * from t2;
-a
-5
-select * from t3;
-a
-drop view v1;
-create view v1 as select a from t3;
-insert into t1 (a) values (6);
-ERROR 42S02: Table 'test.t2' doesn't exist
-flush table t1;
-insert into t1 (a) values (6);
-select * from t2;
-a
-5
-select * from t3;
-a
-6
-prepare stmt from "insert into t1 (a) values (?)";
-set @var=7;
-execute stmt using @var;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select * from t3;
-a
-6
-7
-select * from t2;
-a
-5
-drop view v1;
-create view v1 as select a from t2;
-set @var=8;
-# View in the INSERT-statement in the trigger is still pointing to
-# table 't3', because the trigger hasn't noticed the change
-# in view definition. This will be fixed by WL#4179.
-#
-# The prepared INSERT-statement however does notice the change,
-# but repreparation of the main statement doesn't cause repreparation
-# of trigger statements.
-#
-# The following EXECUTE results in ER_NO_SUCH_TABLE (t3) error, because
-# pre-locking list of the prepared statement has been changed
-# (the prepared statement has noticed the meta-data change),
-# but the trigger still tries to deal with 't3', which is not opened.
-# That's why '8' is not inserted neither into 't2', nor into 't3'.
-execute stmt using @var;
-ERROR 42S02: Table 'test.t3' doesn't exist
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select * from t2;
-a
-5
-select * from t3;
-a
-6
-7
-flush table t1;
-set @var=9;
-execute stmt using @var;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select * from t2;
-a
-5
-9
-select * from t3;
-a
-6
-7
-drop view v1;
-drop table t1,t2,t3;
-# Test 7-d: dependent TABLE has changed
-create table t1 (a int);
-create trigger t1_ai after insert on t1 for each row
-insert into t2 (a) values (new.a);
-create table t2 (a int);
-prepare stmt from "insert into t1 (a) values (?)";
-set @var=1;
-execute stmt using @var;
-alter table t2 add column comment varchar(255);
-set @var=2;
-# Since the dependent table is tracked in the prelocked
-# list of the prepared statement, invalidation happens
-# and the statement is re-prepared. This is an unnecessary
-# side effect, since the statement that *is* dependent
-# on t2 definition is inside the trigger, and it is currently
-# not reprepared (see the previous test case).
-execute stmt using @var;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select * from t1;
-a
-1
-2
-select * from t2;
-a comment
-1 NULL
-2 NULL
-drop table t1,t2;
-# Test 7-e: dependent TABLE TRIGGER has changed
-create table t1 (a int);
-create trigger t1_ai after insert on t1 for each row
-insert into t2 (a) values (new.a);
-create table t2 (a int unique);
-create trigger t2_ai after insert on t2 for each row
-insert into t3 (a) values (new.a);
-create table t3 (a int unique);
-create table t4 (a int unique);
-insert into t1 (a) values (1);
-select * from t1 join t2 on (t1.a=t2.a) join t3 on (t2.a=t3.a);
-a a a
-1 1 1
-drop trigger t2_ai;
-create trigger t2_ai after insert on t2 for each row
-insert into t4 (a) values (new.a);
-insert into t1 (a) values (2);
-select * from t1 join t2 on (t1.a=t2.a) join t4 on (t2.a=t4.a);
-a a a
-2 2 2
-prepare stmt from "insert into t1 (a) values (?)";
-set @var=3;
-execute stmt using @var;
-select * from t1 join t2 on (t1.a=t2.a) join t4 on (t2.a=t4.a);
-a a a
-2 2 2
-3 3 3
-drop trigger t2_ai;
-create trigger t2_ai after insert on t2 for each row
-insert into t3 (a) values (new.a);
-set @var=4;
-execute stmt using @var;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select * from t1 join t2 on (t1.a=t2.a) join t3 on (t2.a=t3.a);
-a a a
-1 1 1
-4 4 4
-select * from t1 join t2 on (t1.a=t2.a) join t4 on (t2.a=t4.a);
-a a a
-2 2 2
-3 3 3
-drop table t1, t2, t3, t4;
-deallocate prepare stmt;
-=====================================================================
-Part 8: TABLE -> TEMPORARY TABLE transitions
-=====================================================================
-# Test 8-a: base table used recreated as temporary table
-create table t1 (a int);
-prepare stmt from "select * from t1";
-execute stmt;
-a
-drop table t1;
-create temporary table t1 (a int);
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t1;
-deallocate prepare stmt;
-# Test 8-b: temporary table has precedence over base table with same name
-create table t1 (a int);
-prepare stmt from 'select count(*) from t1';
-execute stmt;
-count(*)
-0
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-count(*)
-0
-call p_verify_reprepare_count(0);
-SUCCESS
-
-create temporary table t1 AS SELECT 1;
-execute stmt;
-count(*)
-1
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-count(*)
-1
-call p_verify_reprepare_count(0);
-SUCCESS
-
-deallocate prepare stmt;
-drop temporary table t1;
-drop table t1;
-=====================================================================
-Part 9: TABLE -> VIEW transitions
-=====================================================================
-create table t1 (a int);
-prepare stmt from "select * from t1";
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t1;
-create table t2 (a int);
-create view t1 as select * from t2;
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-drop view t1;
-drop table t2;
-deallocate prepare stmt;
-=====================================================================
-Part 10: TEMPORARY TABLE -> NOTHING transitions
-=====================================================================
-create temporary table t1 (a int);
-prepare stmt from "select * from t1";
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop temporary table t1;
-execute stmt;
-ERROR 42S02: Table 'test.t1' doesn't exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-deallocate prepare stmt;
-=====================================================================
-Part 11: TEMPORARY TABLE -> TABLE transitions
-=====================================================================
-# Test 11-a: temporary table replaced by base table
-create table t1 (a int);
-insert into t1 (a) value (1);
-create temporary table t1 (a int);
-prepare stmt from "select * from t1";
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop temporary table t1;
-execute stmt;
-a
-1
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select * from t1;
-a
-1
-drop table t1;
-deallocate prepare stmt;
-# Test 11-b: temporary table has precedence over base table with same name
-# temporary table disappears
-create table t1 (a int);
-create temporary table t1 as select 1 as a;
-prepare stmt from "select count(*) from t1";
-execute stmt;
-count(*)
-1
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-count(*)
-1
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop temporary table t1;
-execute stmt;
-count(*)
-0
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-count(*)
-0
-call p_verify_reprepare_count(0);
-SUCCESS
-
-deallocate prepare stmt;
-drop table t1;
-=====================================================================
-Part 12: TEMPORARY TABLE -> TEMPORARY TABLE (DDL) transitions
-=====================================================================
-create temporary table t1 (a int);
-prepare stmt from "select a from t1";
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop temporary table t1;
-create temporary table t1 (a int, b int);
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select * from t1;
-a b
-drop temporary table t1;
-deallocate prepare stmt;
-=====================================================================
-Part 13: TEMPORARY TABLE -> VIEW transitions
-=====================================================================
-create temporary table t1 (a int);
-create table t2 (a int);
-prepare stmt from "select * from t1";
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop temporary table t1;
-create view t1 as select * from t2;
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-drop view t1;
-drop table t2;
-deallocate prepare stmt;
-=====================================================================
-Part 14: VIEW -> NOTHING transitions
-=====================================================================
-create table t2 (a int);
-create view t1 as select * from t2;
-prepare stmt from "select * from t1";
-execute stmt;
-a
-drop view t1;
-execute stmt;
-ERROR 42S02: Table 'test.t1' doesn't exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-ERROR 42S02: Table 'test.t1' doesn't exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t2;
-deallocate prepare stmt;
-=====================================================================
-Part 15: VIEW -> TABLE transitions
-=====================================================================
-create table t2 (a int);
-create view t1 as select * from t2;
-prepare stmt from "select * from t1";
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop view t1;
-create table t1 (a int);
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-drop table t2;
-drop table t1;
-deallocate prepare stmt;
-=====================================================================
-Part 16: VIEW -> TEMPORARY TABLE transitions
-=====================================================================
-#
-# Test 1: Merged view
-#
-create table t2 (a int);
-insert into t2 (a) values (1);
-create view t1 as select * from t2;
-prepare stmt from "select * from t1";
-execute stmt;
-a
-1
-call p_verify_reprepare_count(0);
-SUCCESS
-
-create temporary table t1 (a int);
-execute stmt;
-a
-1
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop view t1;
-execute stmt;
-ERROR 42S02: Table 'test.t1' doesn't exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t2;
-drop temporary table t1;
-deallocate prepare stmt;
-#
-# Test 2: Materialized view
-#
-create table t2 (a int);
-insert into t2 (a) values (1);
-create algorithm = temptable view t1 as select * from t2;
-prepare stmt from "select * from t1";
-execute stmt;
-a
-1
-call p_verify_reprepare_count(0);
-SUCCESS
-
-create temporary table t1 (a int);
-execute stmt;
-a
-1
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop view t1;
-execute stmt;
-ERROR 42S02: Table 'test.t1' doesn't exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t2;
-drop temporary table t1;
-deallocate prepare stmt;
-#
-# Test 3: View referencing an Information schema table
-#
-create view t1 as select table_name from information_schema.views;
-prepare stmt from "select * from t1";
-execute stmt;
-table_name
-t1
-call p_verify_reprepare_count(0);
-SUCCESS
-
-create temporary table t1 (a int);
-execute stmt;
-table_name
-t1
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop view t1;
-execute stmt;
-ERROR 42S02: Table 'test.t1' doesn't exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop temporary table t1;
-deallocate prepare stmt;
-=====================================================================
-Part 17: VIEW -> VIEW (DDL) transitions
-=====================================================================
-create table t2 (a int);
-insert into t2 values (10), (20), (30);
-create view t1 as select a, 2*a as b, 3*a as c from t2;
-select * from t1;
-a b c
-10 20 30
-20 40 60
-30 60 90
-prepare stmt from "select * from t1";
-execute stmt;
-a b c
-10 20 30
-20 40 60
-30 60 90
-drop view t1;
-create view t1 as select a, 2*a as b, 5*a as c from t2;
-select * from t1;
-a b c
-10 20 50
-20 40 100
-30 60 150
-# This is actually a test case for Bug#11748352 (36002 Prepared
-# statements: if a view used in a statement is replaced, bad data).
-execute stmt;
-a b c
-10 20 50
-20 40 100
-30 60 150
-call p_verify_reprepare_count(1);
-SUCCESS
-
-flush table t2;
-execute stmt;
-a b c
-10 20 50
-20 40 100
-30 60 150
-call p_verify_reprepare_count(1);
-SUCCESS
-
-# Check that we properly handle ALTER VIEW statements.
-execute stmt;
-a b c
-10 20 50
-20 40 100
-30 60 150
-call p_verify_reprepare_count(0);
-SUCCESS
-
-alter view t1 as select a, 3*a as b, 4*a as c from t2;
-execute stmt;
-a b c
-10 30 40
-20 60 80
-30 90 120
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a b c
-10 30 40
-20 60 80
-30 90 120
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-a b c
-10 30 40
-20 60 80
-30 90 120
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select * from t1;
-a b c
-10 30 40
-20 60 80
-30 90 120
-# Check that DROP & CREATE is properly handled under LOCK TABLES.
-drop view t1;
-flush tables;
-create view t1 as select a, 5*a as b, 6*a as c from t2;
-lock tables t1 read, t2 read;
-execute stmt;
-a b c
-10 50 60
-20 100 120
-30 150 180
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a b c
-10 50 60
-20 100 120
-30 150 180
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-a b c
-10 50 60
-20 100 120
-30 150 180
-call p_verify_reprepare_count(0);
-SUCCESS
-
-unlock tables;
-# ... and once again...
-drop view t1;
-create view t1 as select a, 6*a as b, 7*a as c from t2;
-lock tables t1 read, t2 read;
-execute stmt;
-a b c
-10 60 70
-20 120 140
-30 180 210
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a b c
-10 60 70
-20 120 140
-30 180 210
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-a b c
-10 60 70
-20 120 140
-30 180 210
-call p_verify_reprepare_count(0);
-SUCCESS
-
-unlock tables;
-# Check that ALTER VIEW is properly handled under LOCK TABLES.
-alter view t1 as select a, 7*a as b, 8*a as c from t2;
-lock tables t1 read, t2 read;
-execute stmt;
-a b c
-10 70 80
-20 140 160
-30 210 240
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a b c
-10 70 80
-20 140 160
-30 210 240
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-a b c
-10 70 80
-20 140 160
-30 210 240
-call p_verify_reprepare_count(0);
-SUCCESS
-
-unlock tables;
-drop table t2;
-drop view t1;
-deallocate prepare stmt;
-# Check that DROP & CREATE is properly handled under LOCK TABLES when
-# LOCK TABLES does not contain the complete set of views.
-create table t1(a int);
-insert into t1 values (1), (2), (3);
-create view v1 as select a from t1;
-lock tables t1 read, v1 read;
-prepare stmt from 'select * from v1';
-execute stmt;
-a
-1
-2
-3
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-a
-1
-2
-3
-call p_verify_reprepare_count(0);
-SUCCESS
-
-unlock tables;
-drop view v1;
-create view v1 as select 2*a from t1;
-lock tables t1 read;
-execute stmt;
-ERROR HY000: Table 'v1' was not locked with LOCK TABLES
-unlock tables;
-drop table t1;
-drop view v1;
-deallocate prepare stmt;
-# Check that ALTER VIEW is properly handled under LOCK TABLES when
-# LOCK TABLES does not contain the complete set of views.
-create table t1(a int);
-insert into t1 values (1), (2), (3);
-create view v1 as select a from t1;
-lock tables t1 read, v1 read;
-prepare stmt from 'select * from v1';
-execute stmt;
-a
-1
-2
-3
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-a
-1
-2
-3
-call p_verify_reprepare_count(0);
-SUCCESS
-
-unlock tables;
-alter view v1 as select 2*a from t1;
-lock tables t1 read;
-execute stmt;
-ERROR HY000: Table 'v1' was not locked with LOCK TABLES
-unlock tables;
-drop table t1;
-drop view v1;
-deallocate prepare stmt;
-=====================================================================
-Part 18: VIEW -> VIEW (VIEW dependencies) transitions
-=====================================================================
-# Part 18a: dependent function has changed
-create table t1 (a int);
-insert into t1 (a) values (1), (2), (3);
-create function f1() returns int return (select max(a) from t1);
-create view v1 as select f1();
-prepare stmt from "select * from v1";
-execute stmt;
-f1()
-3
-execute stmt;
-f1()
-3
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop function f1;
-create function f1() returns int return 2;
-# XXX: Used to be another manifestation of Bug#12093.
-# We only used to get a different error
-# message because the non-existing procedure error is masked
-# by the view.
-execute stmt;
-f1()
-2
-execute stmt;
-f1()
-2
-call p_verify_reprepare_count(1);
-SUCCESS
-
-# Part 18b: dependent procedure has changed (referred to via a function)
-create table t2 (a int);
-insert into t2 (a) values (4), (5), (6);
-drop function f1;
-create function f1() returns int
-begin
-declare x int;
-call p1(x);
-return x;
-end|
-create procedure p1(out x int) select max(a) from t1 into x;
-prepare stmt from "select * from v1";
-execute stmt;
-f1()
-3
-execute stmt;
-f1()
-3
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop procedure p1;
-create procedure p1(out x int) select max(a) from t2 into x;
-# XXX: used to be a bug. The prelocked list was not invalidated
-# and we kept opening table t1, whereas the procedure
-# is now referring to table t2
-execute stmt;
-f1()
-6
-call p_verify_reprepare_count(1);
-SUCCESS
-
-flush table t1;
-execute stmt;
-f1()
-6
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-f1()
-6
-# Test 18-c: dependent VIEW has changed
-drop view v1;
-create view v2 as select a from t1;
-create view v1 as select * from v2;
-prepare stmt from "select * from v1";
-execute stmt;
-a
-1
-2
-3
-execute stmt;
-a
-1
-2
-3
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop view v2;
-create view v2 as select a from t2;
-execute stmt;
-a
-4
-5
-6
-execute stmt;
-a
-4
-5
-6
-call p_verify_reprepare_count(1);
-SUCCESS
-
-flush table t1;
-execute stmt;
-a
-4
-5
-6
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-a
-4
-5
-6
-# Test 18-d: dependent TABLE has changed
-drop view v2;
-create table v2 as select * from t1;
-execute stmt;
-a
-1
-2
-3
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-1
-2
-3
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table v2;
-create table v2 (a int unique) as select * from t2;
-execute stmt;
-a
-4
-5
-6
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-4
-5
-6
-call p_verify_reprepare_count(0);
-SUCCESS
-
-# Test 18-e: dependent TABLE trigger has changed
-prepare stmt from "insert into v1 (a) values (?)";
-set @var= 7;
-execute stmt using @var;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-create trigger v2_bi before insert on v2 for each row set @message="v2_bi";
-set @var=8;
-execute stmt using @var;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select @message;
-@message
-v2_bi
-drop trigger v2_bi;
-set @message=null;
-set @var=9;
-execute stmt using @var;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select @message;
-@message
-NULL
-create trigger v2_bi after insert on v2 for each row set @message="v2_ai";
-set @var= 10;
-execute stmt using @var;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select @message;
-@message
-v2_ai
-select * from v1;
-a
-4
-5
-6
-7
-8
-9
-10
-# Cleanup
-drop table if exists t1, t2, v1, v2;
-drop view if exists v1, v2;
-drop function f1;
-drop procedure p1;
-deallocate prepare stmt;
-=====================================================================
-Part 19: Special tables (INFORMATION_SCHEMA)
-=====================================================================
-prepare stmt from
-"select ROUTINE_SCHEMA, ROUTINE_NAME, ROUTINE_TYPE
- from INFORMATION_SCHEMA.ROUTINES where
- routine_name='p1'";
-create procedure p1() select "hi there";
-execute stmt;
-ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE
-test p1 PROCEDURE
-execute stmt;
-ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE
-test p1 PROCEDURE
-drop procedure p1;
-create procedure p1() select "hi there, again";
-execute stmt;
-ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE
-test p1 PROCEDURE
-execute stmt;
-ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE
-test p1 PROCEDURE
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop procedure p1;
-deallocate prepare stmt;
-=====================================================================
-Part 20: Special tables (log tables)
-=====================================================================
-prepare stmt from
-"select * from mysql.general_log where argument='IMPOSSIBLE QUERY STRING'";
-execute stmt;
-execute stmt;
-execute stmt;
-execute stmt;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-deallocate prepare stmt;
-=====================================================================
-Part 21: Special tables (system tables)
-=====================================================================
-prepare stmt from
-"select type, db, name from mysql.proc where name='p1'";
-create procedure p1() select "hi there";
-execute stmt;
-type db name
-PROCEDURE test p1
-execute stmt;
-type db name
-PROCEDURE test p1
-drop procedure p1;
-create procedure p1() select "hi there, again";
-execute stmt;
-type db name
-PROCEDURE test p1
-execute stmt;
-type db name
-PROCEDURE test p1
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop procedure p1;
-deallocate prepare stmt;
-=====================================================================
-Part 22: Special tables (views temp tables)
-=====================================================================
-create table t1 (a int);
-create algorithm=temptable view v1 as select a*a as a2 from t1;
-# Using a temporary table internally should not confuse the prepared
-# statement code, and should not raise ER_PS_INVALIDATED errors
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=TEMPTABLE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` * `t1`.`a` AS `a2` from `t1` latin1 latin1_swedish_ci
-prepare stmt from "select * from v1";
-insert into t1 values (1), (2), (3);
-execute stmt;
-a2
-1
-4
-9
-execute stmt;
-a2
-1
-4
-9
-insert into t1 values (4), (5), (6);
-execute stmt;
-a2
-1
-4
-9
-16
-25
-36
-execute stmt;
-a2
-1
-4
-9
-16
-25
-36
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t1;
-drop view v1;
-=====================================================================
-Part 23: Special statements
-=====================================================================
-# SQLCOM_ALTER_TABLE:
-create table t1 (a int);
-prepare stmt from "alter table t1 add column b int";
-execute stmt;
-drop table t1;
-create table t1 (a1 int, a2 int);
-# t1 has changed, and it's does not lead to reprepare
-execute stmt;
-alter table t1 drop column b;
-execute stmt;
-alter table t1 drop column b;
-execute stmt;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t1;
-# SQLCOM_REPAIR:
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-prepare stmt from "repair table t1";
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-drop table t1;
-create table t1 (a1 int, a2 int);
-insert into t1 values (1, 10), (2, 20), (3, 30);
-# t1 has changed, and it's does not lead to reprepare
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-alter table t1 add column b varchar(50) default NULL;
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-call p_verify_reprepare_count(0);
-SUCCESS
-
-alter table t1 drop column b;
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-call p_verify_reprepare_count(0);
-SUCCESS
-
-# SQLCOM_ANALYZE:
-prepare stmt from "analyze table t1";
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-drop table t1;
-create table t1 (a1 int, a2 int);
-insert into t1 values (1, 10), (2, 20), (3, 30);
-# t1 has changed, and it's not a problem
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-alter table t1 add column b varchar(50) default NULL;
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-alter table t1 drop column b;
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-call p_verify_reprepare_count(0);
-SUCCESS
-
-# SQLCOM_OPTIMIZE:
-prepare stmt from "optimize table t1";
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 optimize status Table is already up to date
-drop table t1;
-create table t1 (a1 int, a2 int);
-insert into t1 values (1, 10), (2, 20), (3, 30);
-# t1 has changed, and it's not a problem
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-alter table t1 add column b varchar(50) default NULL;
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-alter table t1 drop column b;
-execute stmt;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t1;
-# SQLCOM_SHOW_CREATE_PROC:
-prepare stmt from "show create procedure p1";
-execute stmt;
-ERROR 42000: PROCEDURE p1 does not exist
-execute stmt;
-ERROR 42000: PROCEDURE p1 does not exist
-create procedure p1() begin end;
-execute stmt;
-execute stmt;
-drop procedure p1;
-create procedure p1(x int, y int) begin end;
-execute stmt;
-execute stmt;
-drop procedure p1;
-execute stmt;
-ERROR 42000: PROCEDURE p1 does not exist
-execute stmt;
-ERROR 42000: PROCEDURE p1 does not exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-# SQLCOM_SHOW_CREATE_FUNC:
-prepare stmt from "show create function f1";
-execute stmt;
-ERROR 42000: FUNCTION f1 does not exist
-execute stmt;
-ERROR 42000: FUNCTION f1 does not exist
-create function f1() returns int return 0;
-execute stmt;
-execute stmt;
-drop function f1;
-create function f1(x int, y int) returns int return x+y;
-execute stmt;
-execute stmt;
-drop function f1;
-execute stmt;
-ERROR 42000: FUNCTION f1 does not exist
-execute stmt;
-ERROR 42000: FUNCTION f1 does not exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-# SQLCOM_SHOW_CREATE_TRIGGER:
-create table t1 (a int);
-prepare stmt from "show create trigger t1_bi";
-execute stmt;
-ERROR HY000: Trigger does not exist
-execute stmt;
-ERROR HY000: Trigger does not exist
-create trigger t1_bi before insert on t1 for each row set @message= "t1_bi";
-execute stmt;
-execute stmt;
-drop trigger t1_bi;
-create trigger t1_bi before insert on t1 for each row set @message= "t1_bi (2)";
-execute stmt;
-execute stmt;
-drop trigger t1_bi;
-execute stmt;
-ERROR HY000: Trigger does not exist
-execute stmt;
-ERROR HY000: Trigger does not exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t1;
-deallocate prepare stmt;
-=====================================================================
-Part 24: Testing the strength of TABLE_SHARE version
-=====================================================================
-# Test 24-a: number of columns
-create table t1 (a int);
-prepare stmt from "select a from t1";
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-alter table t1 add column b varchar(50) default NULL;
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-# Test 24-b: column name
-alter table t1 change b c int;
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-# Test 24-c: column type
-alter table t1 change a a varchar(10);
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-# Test 24-d: column type length
-alter table t1 change a a varchar(20);
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-# Test 24-e: column NULL property
-alter table t1 change a a varchar(20) NOT NULL;
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-# Test 24-f: column DEFAULT
-alter table t1 change c c int DEFAULT 20;
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-# Test 24-g: number of keys
-create unique index t1_a_idx on t1 (a);
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-# Test 24-h: changing index uniqueness
-drop index t1_a_idx on t1;
-create index t1_a_idx on t1 (a);
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-# Cleanup
-drop table t1;
-deallocate prepare stmt;
-=====================================================================
-Testing reported bugs
-=====================================================================
-#
-# Bug#27420 A combination of PS and view operations cause
-# error + assertion on shutdown
-#
-drop table if exists t_27420_100;
-drop table if exists t_27420_101;
-drop view if exists v_27420;
-create table t_27420_100(a int);
-insert into t_27420_100 values (1), (2);
-create table t_27420_101(a int);
-insert into t_27420_101 values (1), (2);
-create view v_27420 as select t_27420_100.a X, t_27420_101.a Y
-from t_27420_100, t_27420_101
-where t_27420_100.a=t_27420_101.a;
-prepare stmt from "select * from v_27420";
-execute stmt;
-X Y
-1 1
-2 2
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop view v_27420;
-create table v_27420(X int, Y int);
-execute stmt;
-X Y
-call p_verify_reprepare_count(1);
-SUCCESS
-
-drop table v_27420;
-create table v_27420 (a int, b int, filler char(200));
-execute stmt;
-a b filler
-call p_verify_reprepare_count(1);
-SUCCESS
-
-drop table t_27420_100;
-drop table t_27420_101;
-drop table v_27420;
-deallocate prepare stmt;
-#
-# Bug#27430 Crash in subquery code when in PS and table DDL changed
-# after PREPARE
-#
-drop table if exists t_27430_1;
-drop table if exists t_27430_2;
-create table t_27430_1 (a int not null, oref int not null, key(a));
-insert into t_27430_1 values
-(1, 1),
-(1, 1234),
-(2, 3),
-(2, 1234),
-(3, 1234);
-create table t_27430_2 (a int not null, oref int not null);
-insert into t_27430_2 values
-(1, 1),
-(2, 2),
-(1234, 3),
-(1234, 4);
-prepare stmt from
-"select oref, a, a in (select a from t_27430_1 where oref=t_27430_2.oref) Z from t_27430_2";
-execute stmt;
-oref a Z
-1 1 1
-2 2 0
-3 1234 0
-4 1234 0
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t_27430_1, t_27430_2;
-create table t_27430_1 (a int, oref int, key(a));
-insert into t_27430_1 values
-(1, 1),
-(1, NULL),
-(2, 3),
-(2, NULL),
-(3, NULL);
-create table t_27430_2 (a int, oref int);
-insert into t_27430_2 values
-(1, 1),
-(2,2),
-(NULL, 3),
-(NULL, 4);
-execute stmt;
-oref a Z
-1 1 1
-2 2 0
-3 NULL NULL
-4 NULL 0
-call p_verify_reprepare_count(1);
-SUCCESS
-
-drop table t_27430_1;
-drop table t_27430_2;
-deallocate prepare stmt;
-#
-# Bug#27690 Re-execution of prepared statement after table
-# was replaced with a view crashes
-#
-drop table if exists t_27690_1;
-drop view if exists v_27690_1;
-drop table if exists v_27690_2;
-create table t_27690_1 (a int, b int);
-insert into t_27690_1 values (1,1),(2,2);
-create table v_27690_1 as select * from t_27690_1;
-create table v_27690_2 as select * from t_27690_1;
-prepare stmt from "select * from v_27690_1, v_27690_2";
-execute stmt;
-a b a b
-1 1 1 1
-2 2 1 1
-1 1 2 2
-2 2 2 2
-execute stmt;
-a b a b
-1 1 1 1
-2 2 1 1
-1 1 2 2
-2 2 2 2
-drop table v_27690_1;
-execute stmt;
-ERROR 42S02: Table 'test.v_27690_1' doesn't exist
-execute stmt;
-ERROR 42S02: Table 'test.v_27690_1' doesn't exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-create view v_27690_1 as select A.a, A.b from t_27690_1 A, t_27690_1 B;
-execute stmt;
-a b a b
-1 1 1 1
-2 2 1 1
-1 1 1 1
-2 2 1 1
-1 1 2 2
-2 2 2 2
-1 1 2 2
-2 2 2 2
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a b a b
-1 1 1 1
-2 2 1 1
-1 1 1 1
-2 2 1 1
-1 1 2 2
-2 2 2 2
-1 1 2 2
-2 2 2 2
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t_27690_1;
-drop view v_27690_1;
-drop table v_27690_2;
-deallocate prepare stmt;
-#=====================================================================
-#
-# Bug#21294 Executing a prepared statement that executes
-# a stored function which was recreat
-#
-create function f1() returns int return 10;
-prepare stmt from "select f1()";
-execute stmt;
-f1()
-10
-drop function f1;
-create function f1() returns int return 10;
-execute stmt;
-f1()
-10
-drop function f1;
-create function f1() returns int return 20;
-execute stmt;
-f1()
-20
-call p_verify_reprepare_count(2);
-SUCCESS
-
-drop function f1;
-deallocate prepare stmt;
-#
-# Bug#12093 SP not found on second PS execution if another thread drops
-# other SP in between
-#
-drop table if exists t_12093;
-drop function if exists f_12093;
-drop function if exists f_12093_unrelated;
-drop procedure if exists p_12093;
-drop view if exists v_12093_unrelated;
-create table t_12093 (a int);
-create function f_12093() returns int return (select count(*) from t_12093);
-create procedure p_12093(a int) select * from t_12093;
-create function f_12093_unrelated() returns int return 2;
-create procedure p_12093_unrelated() begin end;
-create view v_12093_unrelated as select * from t_12093;
-connect con1,localhost,root,,;
-connection default;
-prepare stmt_sf from 'select f_12093();';
-prepare stmt_sp from 'call p_12093(f_12093())';
-execute stmt_sf;
-f_12093()
-0
-execute stmt_sp;
-a
-connection con1;
-drop function f_12093_unrelated;
-connection default;
-# XXX: used to be a bug
-execute stmt_sf;
-f_12093()
-0
-# XXX: used to be a bug
-execute stmt_sp;
-a
-# XXX: used to be a bug
-execute stmt_sf;
-f_12093()
-0
-# XXX: used to be a bug
-execute stmt_sp;
-a
-connection default;
-prepare stmt_sf from 'select f_12093();';
-prepare stmt_sp from 'call p_12093(f_12093())';
-execute stmt_sf;
-f_12093()
-0
-execute stmt_sp;
-a
-connection con1;
-drop procedure p_12093_unrelated;
-connection default;
-# XXX: used to be a bug
-execute stmt_sf;
-f_12093()
-0
-# XXX: used to be a bug
-execute stmt_sp;
-a
-# XXX: used to be a bug
-execute stmt_sf;
-f_12093()
-0
-# XXX: used to be a bug
-execute stmt_sp;
-a
-connection default;
-prepare stmt_sf from 'select f_12093();';
-prepare stmt_sp from 'call p_12093(f_12093())';
-execute stmt_sf;
-f_12093()
-0
-execute stmt_sp;
-a
-connection con1;
-drop view v_12093_unrelated;
-connection default;
-# XXX: used to be a bug
-execute stmt_sf;
-f_12093()
-0
-# XXX: used to be a bug
-execute stmt_sp;
-a
-# XXX: used to be a bug
-execute stmt_sf;
-f_12093()
-0
-# XXX: used to be a bug
-execute stmt_sp;
-a
-connection default;
-call p_verify_reprepare_count(6);
-SUCCESS
-
-disconnect con1;
-drop table t_12093;
-drop function f_12093;
-drop procedure p_12093;
-deallocate prepare stmt_sf;
-deallocate prepare stmt_sp;
-=====================================================================
-Ensure that metadata validation is performed for every type of
-SQL statement where it is needed.
-=====================================================================
-#
-# SQLCOM_SELECT
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "select 1 as res from dual where (1) in (select * from t1)";
-drop table t1;
-create table t1 (x int);
-execute stmt;
-res
-drop table t1;
-deallocate prepare stmt;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-#
-# SQLCOM_CREATE_TABLE
-#
-drop table if exists t1;
-drop table if exists t2;
-create table t1 (a int);
-prepare stmt from 'create table t2 as select * from t1';
-execute stmt;
-drop table t2;
-execute stmt;
-drop table t2;
-execute stmt;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-ERROR 42S01: Table 't2' already exists
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-ERROR 42S01: Table 't2' already exists
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t2;
-create temporary table t2 (a int);
-execute stmt;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-ERROR 42S01: Table 't2' already exists
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop temporary table t2;
-execute stmt;
-ERROR 42S01: Table 't2' already exists
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t2;
-execute stmt;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t2;
-create view t2 as select 1;
-execute stmt;
-Got one of the listed errors
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-Got one of the listed errors
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop view t2;
-drop table t1;
-create table t1 (x varchar(20));
-execute stmt;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select * from t2;
-x
-drop table t2;
-execute stmt;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t2;
-alter table t1 add column y decimal(10,3);
-execute stmt;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select * from t2;
-x y
-drop table t2;
-execute stmt;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t1;
-deallocate prepare stmt;
-create table t1 (a int);
-insert into t1 (a) values (1);
-prepare stmt from "create temporary table if not exists t2 as select * from t1";
-execute stmt;
-drop table t2;
-execute stmt;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-Warnings:
-Note 1050 Table 't2' already exists
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select * from t2;
-a
-1
-execute stmt;
-Warnings:
-Note 1050 Table 't2' already exists
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select * from t2;
-a
-1
-drop table t2;
-create temporary table t2 (a varchar(10));
-execute stmt;
-Warnings:
-Note 1050 Table 't2' already exists
-select * from t2;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Warnings:
-Note 1050 Table 't2' already exists
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-Warnings:
-Note 1050 Table 't2' already exists
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t1;
-drop temporary table t2;
-drop table t2;
-deallocate prepare stmt;
-create table t1 (a int);
-prepare stmt from "create table t2 like t1";
-execute stmt;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t2;
-execute stmt;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t2;
-drop table t1;
-execute stmt;
-ERROR 42S02: Table 'test.t1' doesn't exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-ERROR 42S02: Table 'test.t1' doesn't exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-create table t1 (x char(17));
-execute stmt;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-drop table t2;
-execute stmt;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t2;
-alter table t1 add column y time;
-execute stmt;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-select * from t2;
-x y
-drop table t2;
-execute stmt;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t1;
-drop table t2;
-deallocate prepare stmt;
-#
-# SQLCOM_UPDATE
-#
-drop table if exists t1, t2;
-create table t1 (a int);
-create table t2 (a int);
-prepare stmt from "update t2 set a=a+1 where (1) in (select * from t1)";
-execute stmt;
-drop table t1;
-create table t1 (x int);
-execute stmt;
-drop table t1, t2;
-deallocate prepare stmt;
-#
-# SQLCOM_INSERT
-#
-drop table if exists t1, t2;
-create table t1 (a int);
-create table t2 (a int);
-prepare stmt from "insert into t2 set a=((1) in (select * from t1))";
-execute stmt;
-drop table t1;
-create table t1 (x int);
-execute stmt;
-drop table t1, t2;
-deallocate prepare stmt;
-#
-# SQLCOM_INSERT_SELECT
-#
-drop table if exists t1, t2;
-create table t1 (a int);
-create table t2 (a int);
-prepare stmt from "insert into t2 select * from t1";
-execute stmt;
-drop table t1;
-create table t1 (x int);
-execute stmt;
-drop table t1, t2;
-deallocate prepare stmt;
-#
-# SQLCOM_REPLACE
-#
-drop table if exists t1, t2;
-create table t1 (a int);
-create table t2 (a int);
-prepare stmt from "replace t2 set a=((1) in (select * from t1))";
-execute stmt;
-drop table t1;
-create table t1 (x int);
-execute stmt;
-drop table t1, t2;
-deallocate prepare stmt;
-#
-# SQLCOM_REPLACE_SELECT
-#
-drop table if exists t1, t2;
-create table t1 (a int);
-create table t2 (a int);
-prepare stmt from "replace t2 select * from t1";
-execute stmt;
-drop table t1;
-create table t1 (x int);
-execute stmt;
-drop table t1, t2;
-deallocate prepare stmt;
-#
-# SQLCOM_DELETE
-#
-drop table if exists t1, t2;
-create table t1 (a int);
-create table t2 (a int);
-prepare stmt from "delete from t2 where (1) in (select * from t1)";
-execute stmt;
-drop table t1;
-create table t1 (x int);
-execute stmt;
-drop table t1, t2;
-deallocate prepare stmt;
-#
-# SQLCOM_DELETE_MULTI
-#
-drop table if exists t1, t2, t3;
-create table t1 (a int);
-create table t2 (a int);
-create table t3 (a int);
-prepare stmt from "delete t2, t3 from t2, t3 where (1) in (select * from t1)";
-execute stmt;
-drop table t1;
-create table t1 (x int);
-execute stmt;
-drop table t1, t2, t3;
-deallocate prepare stmt;
-#
-# SQLCOM_UPDATE_MULTI
-#
-drop table if exists t1, t2, t3;
-create table t1 (a int);
-create table t2 (a int);
-create table t3 (a int);
-prepare stmt from "update t2, t3 set t3.a=t2.a, t2.a=null where (1) in (select * from t1)";
-drop table t1;
-create table t1 (x int);
-execute stmt;
-drop table t1, t2, t3;
-deallocate prepare stmt;
-# Intermediate results: 8 SQLCOMs tested, 8 automatic reprepares
-call p_verify_reprepare_count(8);
-SUCCESS
-
-#
-# SQLCOM_LOAD
-#
-drop table if exists t1;
-create table t1 (a varchar(20));
-prepare stmt from "load data infile '../std_data_ln/words.dat' into table t1";
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-drop table t1;
-#
-# SQLCOM_SHOW_DATABASES
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show databases where (1) in (select * from t1)";
-execute stmt;
-Database
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Database
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_SHOW_TABLES
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show tables where (1) in (select * from t1)";
-execute stmt;
-Tables_in_test
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Tables_in_test
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_SHOW_FIELDS
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show fields from t1 where (1) in (select * from t1)";
-execute stmt;
-Field Type Null Key Default Extra
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Field Type Null Key Default Extra
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_SHOW_KEYS
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show keys from t1 where (1) in (select * from t1)";
-execute stmt;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_SHOW_VARIABLES
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show variables where (1) in (select * from t1)";
-execute stmt;
-Variable_name Value
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Variable_name Value
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_SHOW_STATUS
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show status where (1) in (select * from t1)";
-execute stmt;
-Variable_name Value
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Variable_name Value
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_SHOW_ENGINE_STATUS, SQLCOM_SHOW_ENGINE_LOGS,
-# SQLCOM_SHOW_ENGINE_MUTEX, SQLCOM_SHOW_PROCESSLIST
-#
-# Currently can not have a where clause, need to be covered
-# with tests
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show engine all status where (1) in (select * from t1)";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'where (1) in (select * from t1)' at line 1
-prepare stmt from "show engine all logs where (1) in (select * from t1)";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'where (1) in (select * from t1)' at line 1
-prepare stmt from "show engine all mutex where (1) in (select * from t1)";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'where (1) in (select * from t1)' at line 1
-prepare stmt from "show processlist where (1) in (select * from t1)";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'where (1) in (select * from t1)' at line 1
-drop table t1;
-#
-# SQLCOM_SHOW_CHARSETS
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show charset where (1) in (select * from t1)";
-execute stmt;
-Charset Description Default collation Maxlen
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Charset Description Default collation Maxlen
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_SHOW_COLLATIONS
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show collation where (1) in (select * from t1)";
-execute stmt;
-Collation Charset Id Default Compiled Sortlen
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Collation Charset Id Default Compiled Sortlen
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_SHOW_TABLE_STATUS
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show table status where (1) in (select * from t1)";
-execute stmt;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_SHOW_TRIGGERS
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show triggers where (1) in (select * from t1)";
-execute stmt;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_SHOW_OPEN_TABLES
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show open tables where (1) in (select * from t1)";
-execute stmt;
-Database Table In_use Name_locked
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Database Table In_use Name_locked
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_SHOW_STATUS_PROC
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show procedure status where (1) in (select * from t1)";
-execute stmt;
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_SHOW_STATUS_FUNC
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "show function status where (1) in (select * from t1)";
-execute stmt;
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-drop table t1;
-create table t1 (x int);
-execute stmt;
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_SHOW_EVENTS
-#
-#
-# Please see this test in ps.test, it requires not_embedded.inc
-#
-#
-# SQLCOM_SET_OPTION
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "set @a=((1) in (select * from t1))";
-execute stmt;
-drop table t1;
-create table t1 (x int);
-execute stmt;
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_DO
-#
-drop table if exists t1;
-create table t1 (a int);
-prepare stmt from "do ((1) in (select * from t1))";
-execute stmt;
-drop table t1;
-create table t1 (x int);
-execute stmt;
-drop table t1;
-deallocate prepare stmt;
-#
-# SQLCOM_CALL
-#
-drop table if exists t1;
-drop procedure if exists p1;
-create procedure p1(a int) begin end;
-create table t1 (a int);
-prepare stmt from "call p1((1) in (select * from t1))";
-execute stmt;
-drop table t1;
-create table t1 (x int);
-execute stmt;
-drop table t1;
-drop procedure p1;
-deallocate prepare stmt;
-#
-# SQLCOM_CREATE_VIEW
-#
-drop table if exists t1;
-drop view if exists v1;
-create table t1 (a int);
-prepare stmt from "create view v1 as select * from t1";
-execute stmt;
-drop view v1;
-drop table t1;
-create table t1 (x int);
-execute stmt;
-drop view v1;
-drop table t1;
-deallocate prepare stmt;
-# Intermediate result: number of reprepares matches the number
-# of tests
-call p_verify_reprepare_count(17);
-SUCCESS
-
-#
-# SQLCOM_ALTER_VIEW
-#
-drop view if exists v1;
-create view v1 as select 1;
-prepare stmt from "alter view v1 as select 2";
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-drop view v1;
-# Cleanup
-#
-drop temporary table if exists t1, t2, t3;
-drop table if exists t1, t2, t3, v1, v2;
-drop procedure if exists p_verify_reprepare_count;
-drop procedure if exists p1;
-drop function if exists f1;
-drop view if exists v1, v2;
-#
-# Additional coverage for refactoring which was made as part of work
-# on bug '27480: Extend CREATE TEMPORARY TABLES privilege to allow
-# temp table operations'.
-#
-# Check that we don't try to pre-open temporary tables for the elements
-# from prelocking list, as this can lead to unwarranted ER_CANT_REOPEN
-# errors.
-DROP TABLE IF EXISTS t1, tm;
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-SET @a:= (SELECT COUNT(*) FROM t1);
-# Prelocking list for the below statement should
-# contain t1 twice - once for the INSERT and once
-# SELECT from the trigger.
-PREPARE stmt1 FROM 'INSERT INTO t1 VALUES (1)';
-EXECUTE stmt1;
-# Create temporary table which will shadow t1.
-CREATE TEMPORARY TABLE t1 (b int);
-# The below execution of statement should not fail with ER_CANT_REOPEN
-# error. Instead stmt1 should be auto-matically reprepared and succeed.
-EXECUTE stmt1;
-DEALLOCATE PREPARE stmt1;
-DROP TEMPORARY TABLE t1;
-DROP TABLE t1;
-#
-# Also check that we properly reset table list elements from UNION
-# clause of CREATE TABLE and ALTER TABLE statements.
-#
-CREATE TEMPORARY TABLE t1 (i INT);
-PREPARE stmt2 FROM 'CREATE TEMPORARY TABLE tm (i INT) ENGINE=MERGE UNION=(t1)';
-EXECUTE stmt2;
-DROP TEMPORARY TABLE tm;
-EXECUTE stmt2;
-DEALLOCATE PREPARE stmt2;
-PREPARE stmt3 FROM 'ALTER TABLE tm UNION=(t1)';
-EXECUTE stmt3;
-EXECUTE stmt3;
-DEALLOCATE PREPARE stmt3;
-DROP TEMPORARY TABLES tm, t1;
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-10702 Crash in SET STATEMENT FOR EXECUTE
-#
-CREATE TABLE t1 (a INT);
-PREPARE stmt FROM 'INSERT INTO t1 VALUES (@@max_sort_length)';
-SET STATEMENT max_sort_length=2048 FOR EXECUTE stmt;
-SELECT * FROM t1;
-a
-2048
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET NEW.a=NEW.a + 1;
-SET STATEMENT max_sort_length=2048 FOR EXECUTE stmt;
-SELECT * FROM t1;
-a
-2048
-1025
-DROP TRIGGER tr1;
-SET STATEMENT max_sort_length=2048 FOR EXECUTE stmt;
-SELECT * FROM t1;
-a
-2048
-1025
-1024
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
diff --git a/mysql-test/r/ps_ddl1.result b/mysql-test/r/ps_ddl1.result
deleted file mode 100644
index 667cbed8a7a..00000000000
--- a/mysql-test/r/ps_ddl1.result
+++ /dev/null
@@ -1,482 +0,0 @@
-drop temporary table if exists t1;
-drop table if exists t1, t2;
-drop procedure if exists p_verify_reprepare_count;
-drop procedure if exists p1;
-drop function if exists f1;
-drop view if exists t1;
-drop schema if exists mysqltest;
-create procedure p_verify_reprepare_count(expected int)
-begin
-declare old_reprepare_count int default @reprepare_count;
-select variable_value from
-information_schema.session_status where
-variable_name='com_stmt_reprepare'
- into @reprepare_count;
-if old_reprepare_count + expected <> @reprepare_count then
-select concat("Expected: ", expected,
-", actual: ", @reprepare_count - old_reprepare_count)
-as "ERROR";
-else
-select '' as "SUCCESS";
-end if;
-end|
-set @reprepare_count= 0;
-flush status;
-drop table if exists t1;
-# Column added or dropped is not within the list of selected columns
-# or table comment has changed.
-# A reprepare is probably not needed.
-create table t1 (a int, b int);
-prepare stmt from "select a from t1";
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-alter table t1 add column c int;
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-alter table t1 drop column b;
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-alter table t1 comment "My best table";
-execute stmt;
-a
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-a
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t1;
-deallocate prepare stmt;
-# Selects using the table at various positions, inser,update ...
-# + the table disappears
-create table t1 (a int);
-prepare stmt1 from "truncate t1";
-prepare stmt2 from "select 1 as my_column from t1";
-prepare stmt3 from "select 1 as my_column from (select * from t1) as t2";
-prepare stmt4 from
-"select 1 as my_column from (select 1) as t2 where exists (select 1 from t1)";
-prepare stmt5 from "select * from (select 1 as b) as t2, t1";
-prepare stmt6 from "select * from t1 union all select 1.5";
-prepare stmt7 from "select 1 as my_column union all select 1 from t1";
-prepare stmt8 from "insert into t1 values(1),(2)";
-prepare stmt9 from "update t1 set a = 3 where a = 2";
-prepare stmt10 from "delete from t1 where a = 1";
-# Attention: Result logging is disabled.
-execute stmt10;
-execute stmt9;
-execute stmt8;
-execute stmt7;
-execute stmt6;
-execute stmt5;
-execute stmt4;
-execute stmt3;
-execute stmt2;
-execute stmt1;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t1;
-execute stmt10;
-ERROR 42S02: Table 'test.t1' doesn't exist
-execute stmt9;
-ERROR 42S02: Table 'test.t1' doesn't exist
-execute stmt8;
-ERROR 42S02: Table 'test.t1' doesn't exist
-execute stmt7;
-ERROR 42S02: Table 'test.t1' doesn't exist
-execute stmt6;
-ERROR 42S02: Table 'test.t1' doesn't exist
-execute stmt5;
-ERROR 42S02: Table 'test.t1' doesn't exist
-execute stmt4;
-ERROR 42S02: Table 'test.t1' doesn't exist
-execute stmt3;
-ERROR 42S02: Table 'test.t1' doesn't exist
-execute stmt2;
-ERROR 42S02: Table 'test.t1' doesn't exist
-execute stmt1;
-ERROR 42S02: Table 'test.t1' doesn't exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-deallocate prepare stmt10;
-deallocate prepare stmt9;
-deallocate prepare stmt8;
-deallocate prepare stmt7;
-deallocate prepare stmt6;
-deallocate prepare stmt5;
-deallocate prepare stmt4;
-deallocate prepare stmt3;
-deallocate prepare stmt2;
-deallocate prepare stmt1;
-# Selects using the table at various positions, inser,update ...
-# + layout change (drop column) which must cause a reprepare
-create table t1 (a int, b int);
-insert into t1 values(1,1),(2,2),(3,3);
-create table t2 like t1;
-insert into t1 values(2,2);
-prepare stmt1 from "select a,b from t1";
-prepare stmt2 from "select a,b from (select * from t1) as t1";
-prepare stmt3 from "select * from t1 where a = 2 and b = 2";
-prepare stmt4 from "select * from t2 where (a,b) in (select * from t1)";
-prepare stmt5 from "select * from t1 union select * from t2";
-prepare stmt6 from "select * from t1 union all select * from t2";
-prepare stmt7 from "insert into t1 set a = 4, b = 4";
-prepare stmt8 from "insert into t1 select * from t2";
-# Attention: Result logging is disabled.
-execute stmt8;
-execute stmt7;
-execute stmt6;
-execute stmt5;
-execute stmt4;
-execute stmt3;
-execute stmt2;
-execute stmt1;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-alter table t1 drop column b;
-execute stmt8;
-ERROR 21S01: Column count doesn't match value count at row 1
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt7;
-ERROR 42S22: Unknown column 'b' in 'field list'
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt6;
-ERROR 21000: The used SELECT statements have a different number of columns
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt5;
-ERROR 21000: The used SELECT statements have a different number of columns
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt4;
-ERROR 21000: Operand should contain 2 column(s)
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt3;
-ERROR 42S22: Unknown column 'b' in 'where clause'
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt2;
-ERROR 42S22: Unknown column 'b' in 'field list'
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt1;
-ERROR 42S22: Unknown column 'b' in 'field list'
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt8;
-ERROR 21S01: Column count doesn't match value count at row 1
-call p_verify_reprepare_count(1);
-ERROR
-Expected: 1, actual: 0
-execute stmt7;
-ERROR 42S22: Unknown column 'b' in 'field list'
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt6;
-ERROR 21000: The used SELECT statements have a different number of columns
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt5;
-ERROR 21000: The used SELECT statements have a different number of columns
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt4;
-ERROR 21000: Operand should contain 2 column(s)
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt3;
-ERROR 42S22: Unknown column 'b' in 'where clause'
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt2;
-ERROR 42S22: Unknown column 'b' in 'field list'
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt1;
-ERROR 42S22: Unknown column 'b' in 'field list'
-call p_verify_reprepare_count(1);
-SUCCESS
-
-# Why does the INSERT ... SELECT does not get a reprepare or is
-# only the counter not incremented?
-execute stmt8;
-ERROR 21S01: Column count doesn't match value count at row 1
-call p_verify_reprepare_count(1);
-ERROR
-Expected: 1, actual: 0
-alter table t2 add column c int;
-execute stmt8;
-ERROR 21S01: Column count doesn't match value count at row 1
-call p_verify_reprepare_count(1);
-SUCCESS
-
-deallocate prepare stmt8;
-deallocate prepare stmt7;
-deallocate prepare stmt6;
-deallocate prepare stmt5;
-deallocate prepare stmt4;
-deallocate prepare stmt3;
-deallocate prepare stmt2;
-deallocate prepare stmt1;
-drop table t1;
-drop table t2;
-# select AVG(<col>) + optimizer uses index meets loss of the index
-create table t1 (a int, b int, primary key(b),unique index t1_unq_idx(a));
-insert into t1 set a = 0, b = 0;
-insert into t1 select a + 1, b + 1 from t1;
-insert into t1 select a + 2, b + 2 from t1;
-insert into t1 select a + 4, b + 4 from t1;
-insert into t1 select a + 8, b + 8 from t1;
-# Optimizer strategy: Possible keys = NULL , Extra = Using index
-prepare stmt from "select avg(a) from t1";
-execute stmt;
-avg(a)
-7.5000
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-avg(a)
-7.5000
-call p_verify_reprepare_count(0);
-SUCCESS
-
-alter table t1 drop index t1_unq_idx;
-# Optimizer strategy: Possible keys = NULL , Extra =
-execute stmt;
-avg(a)
-7.5000
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-avg(a)
-7.5000
-call p_verify_reprepare_count(0);
-SUCCESS
-
-# select AVG(<col>) + optimizer uses table scan meets a new index
-alter table t1 add unique index t1_unq_idx(a);
-# Optimizer strategy: Possible keys = NULL , Extra = Using index
-execute stmt;
-avg(a)
-7.5000
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-avg(a)
-7.5000
-call p_verify_reprepare_count(0);
-SUCCESS
-
-deallocate prepare stmt;
-drop table t1;
-# table replaced by not updatable view - Insert
-create table t1 (a int);
-prepare stmt from "insert into t1 values(1)";
-execute stmt;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop table t1;
-create view t1 as select 1;
-execute stmt;
-ERROR HY000: The target table t1 of the INSERT is not insertable-into
-call p_verify_reprepare_count(1);
-SUCCESS
-
-drop view t1;
-create table t2 (a int);
-create view t1 as select * from t2 with check option;
-execute stmt;
-call p_verify_reprepare_count(1);
-SUCCESS
-
-execute stmt;
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select * from t1;
-a
-1
-1
-deallocate prepare stmt;
-drop view t1;
-drop table t2;
-=====================================================================
-Some freestyle tests
-=====================================================================
-create temporary table t1 as select 1 as a;
-create procedure p1()
-begin
-drop temporary table t1;
-end|
-create function f1() returns int
-begin
-call p1();
-return 1;
-end|
-prepare stmt from "select f1() as my_column, a from t1";
-execute stmt;
-ERROR HY000: Can't reopen table: 't1'
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select * from t1;
-a
-1
-prepare stmt from "select a, f1() as my_column from t1";
-execute stmt;
-ERROR HY000: Can't reopen table: 't1'
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select * from t1;
-a
-1
-prepare stmt from "select f1() as my_column, count(*) from t1";
-execute stmt;
-ERROR HY000: Can't reopen table: 't1'
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select * from t1;
-a
-1
-prepare stmt from "select count(*), f1() as my_column from t1";
-execute stmt;
-ERROR HY000: Can't reopen table: 't1'
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select * from t1;
-a
-1
-# Execute fails, no drop of temporary table
-prepare stmt from "select 1 as my_column from (select 1) as t2
- where exists (select f1() from t1)";
-execute stmt;
-my_column
-1
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-my_column
-1
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select * from t1;
-a
-1
-# Execute drops temporary table
-prepare stmt from "select f1()";
-execute stmt;
-f1()
-1
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-ERROR 42S02: Unknown table 'test.t1'
-call p_verify_reprepare_count(0);
-SUCCESS
-
-drop function f1;
-drop procedure p1;
-deallocate prepare stmt;
-# Execute fails, temporary table is not replaced by another
-create temporary table t1 as select 1 as a;
-create procedure p1()
-begin
-drop temporary table t1;
-create temporary table t1 as select 'abc' as a;
-end|
-create function f1() returns int
-begin
-call p1();
-return 1;
-end|
-prepare stmt from "select count(*), f1() as my_column from t1";
-execute stmt;
-ERROR HY000: Can't reopen table: 't1'
-call p_verify_reprepare_count(0);
-SUCCESS
-
-select * from t1;
-a
-1
-deallocate prepare stmt;
-prepare stmt from "call p1";
-execute stmt;
-drop procedure p1;
-create schema mysqltest;
-create procedure mysqltest.p1()
-begin
-drop schema mysqltest;
-create schema mysqltest;
-end|
-execute stmt;
-ERROR 42000: PROCEDURE test.p1 does not exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-execute stmt;
-ERROR 42000: PROCEDURE test.p1 does not exist
-call p_verify_reprepare_count(0);
-SUCCESS
-
-deallocate prepare stmt;
-drop schema mysqltest;
-drop temporary table t1;
-# Cleanup
-#
-drop temporary table if exists t1;
-drop table if exists t1, t2;
-drop procedure if exists p_verify_reprepare_count;
-drop procedure if exists p1;
-drop function if exists f1;
-drop view if exists t1;
-drop schema if exists mysqltest;
diff --git a/mysql-test/r/ps_grant.result b/mysql-test/r/ps_grant.result
deleted file mode 100644
index 0e296cdc699..00000000000
--- a/mysql-test/r/ps_grant.result
+++ /dev/null
@@ -1,94 +0,0 @@
-test_sequence
------- grant/revoke/drop affects a parallel session test ------
-show grants for second_user@localhost ;
-ERROR 42000: There is no such grant defined for user 'second_user' on host 'localhost'
-create database mysqltest;
-use mysqltest;
-use test;
-grant usage on mysqltest.* to second_user@localhost
-identified by 'looser' ;
-grant select on mysqltest.t9 to second_user@localhost
-identified by 'looser' ;
-show grants for second_user@localhost ;
-Grants for second_user@localhost
-GRANT USAGE ON *.* TO 'second_user'@'localhost' IDENTIFIED BY PASSWORD '*13843FE600B19A81E32AF50D4A6FED25875FF1F3'
-GRANT SELECT ON `mysqltest`.`t9` TO 'second_user'@'localhost'
-connect con3,localhost,second_user,looser,mysqltest;
-connection con3;
-select current_user();
-current_user()
-second_user@localhost
-show grants for current_user();
-Grants for second_user@localhost
-GRANT USAGE ON *.* TO 'second_user'@'localhost' IDENTIFIED BY PASSWORD '*13843FE600B19A81E32AF50D4A6FED25875FF1F3'
-GRANT SELECT ON `mysqltest`.`t9` TO 'second_user'@'localhost'
-prepare s_t9 from 'select c1 as my_col
- from t9 where c1= 1' ;
-execute s_t9 ;
-my_col
-1
-select a as my_col from t1;
-ERROR 42000: SELECT command denied to user 'second_user'@'localhost' for table 't1'
-connection default;
-grant select on mysqltest.t1 to second_user@localhost
-identified by 'looser' ;
-show grants for second_user@localhost ;
-Grants for second_user@localhost
-GRANT USAGE ON *.* TO 'second_user'@'localhost' IDENTIFIED BY PASSWORD '*13843FE600B19A81E32AF50D4A6FED25875FF1F3'
-GRANT SELECT ON `mysqltest`.`t9` TO 'second_user'@'localhost'
-GRANT SELECT ON `mysqltest`.`t1` TO 'second_user'@'localhost'
-drop table mysqltest.t9 ;
-show grants for second_user@localhost ;
-Grants for second_user@localhost
-GRANT USAGE ON *.* TO 'second_user'@'localhost' IDENTIFIED BY PASSWORD '*13843FE600B19A81E32AF50D4A6FED25875FF1F3'
-GRANT SELECT ON `mysqltest`.`t9` TO 'second_user'@'localhost'
-GRANT SELECT ON `mysqltest`.`t1` TO 'second_user'@'localhost'
-connection con3;
-show grants for second_user@localhost ;
-Grants for second_user@localhost
-GRANT USAGE ON *.* TO 'second_user'@'localhost' IDENTIFIED BY PASSWORD '*13843FE600B19A81E32AF50D4A6FED25875FF1F3'
-GRANT SELECT ON `mysqltest`.`t9` TO 'second_user'@'localhost'
-GRANT SELECT ON `mysqltest`.`t1` TO 'second_user'@'localhost'
-prepare s_t1 from 'select a as my_col from t1' ;
-execute s_t1 ;
-my_col
-1
-2
-3
-4
-execute s_t9 ;
-ERROR 42S02: Table 'mysqltest.t9' doesn't exist
-deallocate prepare s_t9;
-connection default;
-revoke all privileges on mysqltest.t1 from second_user@localhost;
-show grants for second_user@localhost ;
-Grants for second_user@localhost
-GRANT USAGE ON *.* TO 'second_user'@'localhost' IDENTIFIED BY PASSWORD '*13843FE600B19A81E32AF50D4A6FED25875FF1F3'
-GRANT SELECT ON `mysqltest`.`t9` TO 'second_user'@'localhost'
-connection con3;
-show grants for second_user@localhost ;
-Grants for second_user@localhost
-GRANT USAGE ON *.* TO 'second_user'@'localhost' IDENTIFIED BY PASSWORD '*13843FE600B19A81E32AF50D4A6FED25875FF1F3'
-GRANT SELECT ON `mysqltest`.`t9` TO 'second_user'@'localhost'
-execute s_t1 ;
-ERROR 42000: SELECT command denied to user 'second_user'@'localhost' for table 't1'
-connection default;
-disconnect con3;
-revoke all privileges, grant option from second_user@localhost ;
-show grants for second_user@localhost ;
-Grants for second_user@localhost
-GRANT USAGE ON *.* TO 'second_user'@'localhost' IDENTIFIED BY PASSWORD '*13843FE600B19A81E32AF50D4A6FED25875FF1F3'
-drop user second_user@localhost ;
-commit ;
-show grants for second_user@localhost ;
-ERROR 42000: There is no such grant defined for user 'second_user' on host 'localhost'
-drop database mysqltest;
-prepare stmt3 from ' grant all on test.t1 to drop_user@localhost
-identified by ''looser'' ';
-grant all on test.t1 to drop_user@localhost
-identified by 'looser' ;
-prepare stmt3 from ' revoke all privileges on test.t1 from
-drop_user@localhost ';
-revoke all privileges on test.t1 from drop_user@localhost ;
-prepare stmt3 from ' drop user drop_user@localhost ';
-drop user drop_user@localhost;
diff --git a/mysql-test/r/ps_max_subselect-5113.result b/mysql-test/r/ps_max_subselect-5113.result
deleted file mode 100644
index 427ef628ead..00000000000
--- a/mysql-test/r/ps_max_subselect-5113.result
+++ /dev/null
@@ -1,16 +0,0 @@
-CREATE TABLE t1 (b INT NOT NULL);
-INSERT INTO t1 VALUES (0),(8);
-PREPARE stmt FROM '
- SELECT 1 FROM t1 AS o
- WHERE o.b >= ALL (
- SELECT a2.b FROM t1 AS a1 LEFT JOIN t1 AS a2 ON ( a2.b = a1.b )
- WHERE a1.b <= a2.b
- )
-';
-EXECUTE stmt;
-1
-1
-EXECUTE stmt;
-1
-1
-DROP TABLE t1;
diff --git a/mysql-test/r/ps_not_windows.result b/mysql-test/r/ps_not_windows.result
deleted file mode 100644
index e58b6ec5cad..00000000000
--- a/mysql-test/r/ps_not_windows.result
+++ /dev/null
@@ -1,14 +0,0 @@
-create procedure proc_1() install plugin my_plug soname '/root/some_plugin.so';
-call proc_1();
-ERROR HY000: No paths allowed for shared library
-call proc_1();
-ERROR HY000: No paths allowed for shared library
-call proc_1();
-ERROR HY000: No paths allowed for shared library
-drop procedure proc_1;
-prepare abc from "install plugin my_plug soname '/root/some_plugin.so'";
-execute abc;
-ERROR HY000: No paths allowed for shared library
-execute abc;
-ERROR HY000: No paths allowed for shared library
-deallocate prepare abc;
diff --git a/mysql-test/r/query_cache.result b/mysql-test/r/query_cache.result
deleted file mode 100644
index 9c010cbffc7..00000000000
--- a/mysql-test/r/query_cache.result
+++ /dev/null
@@ -1,2193 +0,0 @@
-SET GLOBAL query_cache_type= Off;
-SET LOCAL query_cache_type= Off;
-SET LOCAL query_cache_type= 0;
-SET LOCAL query_cache_type= on;
-ERROR HY000: Query cache is globally disabled and you can't enable it only for this session
-SET LOCAL query_cache_type= 1;
-ERROR HY000: Query cache is globally disabled and you can't enable it only for this session
-set GLOBAL query_cache_size=1355776;
-SET GLOBAL query_cache_type= ON;
-SET LOCAL query_cache_type= ON;
-flush query cache;
-flush query cache;
-reset query cache;
-flush status;
-drop table if exists t1,t2,t3,t4,t11,t21,t1_1,t1_2,t9,t9_1,t9_2;
-drop database if exists mysqltest;
-drop table if exists ```a`;
-drop view if exists v1;
-create table t1 (a int not null);
-insert into t1 values (1),(2),(3);
-select * from t1;
-a
-1
-2
-3
-select * from t1;
-a
-1
-2
-3
-select sql_no_cache * from t1;
-a
-1
-2
-3
-select length(now()) from t1;
-length(now())
-19
-19
-19
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-drop table t1;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-create table t1 (a int not null) ENGINE=MyISAM;
-insert into t1 values (1),(2),(3);
-create table t2 (a int not null) ENGINE=MyISAM;
-insert into t2 values (4),(5),(6);
-create table t3 (a int not null) engine=MERGE UNION=(t1,t2) INSERT_METHOD=FIRST;
-select * from t3;
-a
-1
-2
-3
-4
-5
-6
-select * from t3;
-a
-1
-2
-3
-4
-5
-6
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-insert into t2 values (7);
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-select * from t1;
-a
-1
-2
-3
-select * from t1;
-a
-1
-2
-3
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 3
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-insert into t3 values (8);
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-select * from t3;
-a
-1
-2
-3
-8
-4
-5
-6
-7
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-update t2 set a=9 where a=7;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-select * from t1;
-a
-1
-2
-3
-8
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-update t3 set a=10 where a=1;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-select * from t3;
-a
-10
-2
-3
-8
-4
-5
-6
-9
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-delete from t2 where a=9;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-select * from t1;
-a
-10
-2
-3
-8
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-delete from t3 where a=10;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-drop table t1, t2, t3;
-set query_cache_type=demand;
-create table t1 (a int not null);
-insert into t1 values (1),(2),(3);
-select * from t1;
-a
-1
-2
-3
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-select sql_cache * from t1 union select * from t1;
-a
-1
-2
-3
-set query_cache_type=2;
-select sql_cache * from t1 union select * from t1;
-a
-1
-2
-3
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 4
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-set query_cache_type=on;
-reset query cache;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-select sql_no_cache * from t1;
-a
-1
-2
-3
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-drop table t1;
-create table t1 (a text not null);
-select CONNECTION_ID() from t1;
-CONNECTION_ID()
-select FOUND_ROWS();
-FOUND_ROWS()
-0
-select NOW() from t1;
-NOW()
-select CURDATE() from t1;
-CURDATE()
-select CURTIME() from t1;
-CURTIME()
-select DATABASE() from t1;
-DATABASE()
-select ENCRYPT("test") from t1;
-ENCRYPT("test")
-select LAST_INSERT_ID() from t1;
-LAST_INSERT_ID()
-select RAND() from t1;
-RAND()
-select UNIX_TIMESTAMP() from t1;
-UNIX_TIMESTAMP()
-select USER() from t1;
-USER()
-select CURRENT_USER() from t1;
-CURRENT_USER()
-select benchmark(1,1) from t1;
-benchmark(1,1)
-explain extended select benchmark(1,1) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 select benchmark(1,1) AS `benchmark(1,1)` from `test`.`t1`
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-create table t2 (a text not null);
-insert into t1 values("1111111111111111111111111111111111111111111111111111");
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 4
-show status like "Qcache_lowmem_prunes";
-Variable_name Value
-Qcache_lowmem_prunes 0
-select a as a1, a as a2 from t1;
-select a as a2, a as a3 from t1;
-select a as a3, a as a4 from t1;
-select a as a1, a as a2 from t1;
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 4
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-show status like "Qcache_lowmem_prunes";
-Variable_name Value
-Qcache_lowmem_prunes 2
-reset query cache;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-select * from t1;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-drop table t1,t2;
-create database mysqltest;
-create table mysqltest.t1 (i int not null auto_increment, a int, primary key (i));
-insert into mysqltest.t1 (a) values (1);
-select * from mysqltest.t1 where i is null;
-i a
-create table t1(a int);
-select * from t1;
-a
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-select * from mysqltest.t1;
-i a
-1 1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 3
-drop database mysqltest;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-drop table t1;
-create table t1 (a char(1) not null collate koi8r_general_ci);
-insert into t1 values(_koi8r"á");
-set CHARACTER SET koi8r;
-select * from t1;
-a
-set CHARACTER SET cp1251_koi8;
-select * from t1;
-a
-set CHARACTER SET DEFAULT;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 4
-drop table t1;
-create database if not exists mysqltest;
-create table mysqltest.t1 (i int not null);
-create table t1 (i int not null);
-insert into mysqltest.t1 (i) values (1);
-insert into t1 (i) values (2);
-select * from t1;
-i
-2
-use mysqltest;
-select * from t1;
-i
-1
-select * from t1;
-i
-1
-use test;
-select * from t1;
-i
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 6
-drop database mysqltest;
-drop table t1;
-create table t1 (i int not null);
-insert into t1 (i) values (1),(2),(3),(4);
-select SQL_CALC_FOUND_ROWS * from t1 limit 2;
-i
-1
-2
-select FOUND_ROWS();
-FOUND_ROWS()
-4
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 6
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-select * from t1 where i=1;
-i
-1
-select FOUND_ROWS();
-FOUND_ROWS()
-1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 6
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-select SQL_CALC_FOUND_ROWS * from t1 limit 2;
-i
-1
-2
-select FOUND_ROWS();
-FOUND_ROWS()
-4
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 7
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-select * from t1 where i=1;
-i
-1
-select FOUND_ROWS();
-FOUND_ROWS()
-1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 8
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-drop table t1;
-flush query cache;
-reset query cache;
-create table t1 (a int not null) ENGINE=MyISAM;
-insert into t1 values (1),(2),(3);
-select * from t1;
-a
-1
-2
-3
-select * from t1;
-a
-1
-2
-3
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-insert delayed into t1 values (4);
-select a from t1;
-a
-1
-2
-3
-4
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-drop table t1;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show global variables like "query_cache_min_res_unit";
-Variable_name Value
-query_cache_min_res_unit 4096
-set GLOBAL query_cache_min_res_unit=1001;
-Warnings:
-Warning 1292 Truncated incorrect query_cache_min_res_unit value: '1001'
-show global variables like "query_cache_min_res_unit";
-Variable_name Value
-query_cache_min_res_unit 1000
-create table t1 (a int not null);
-insert into t1 values (1),(2),(3);
-create table t2 (a int not null);
-insert into t2 values (1),(2),(3);
-select * from t1;
-a
-1
-2
-3
-select * from t1;
-a
-1
-2
-3
-select * from t2;
-a
-1
-2
-3
-select * from t2;
-a
-1
-2
-3
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 11
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-drop table t1;
-select a from t2;
-a
-1
-2
-3
-select a from t2;
-a
-1
-2
-3
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 12
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-drop table t2;
-set GLOBAL query_cache_min_res_unit=default;
-show global variables like "query_cache_min_res_unit";
-Variable_name Value
-query_cache_min_res_unit 4096
-create table t1 (a int not null);
-insert into t1 values (1);
-select "aaa" from t1;
-aaa
-aaa
-select "AAA" from t1;
-AAA
-AAA
-drop table t1;
-create table t1 (a int);
-set GLOBAL query_cache_size=1000;
-Warnings:
-Warning 1292 Truncated incorrect query_cache_size value: '1000'
-show global variables like "query_cache_size";
-Variable_name Value
-query_cache_size 0
-select * from t1;
-a
-set GLOBAL query_cache_size=1024;
-Warnings:
-Warning 1282 Query cache failed to set size 1024; new query cache size is 0
-show global variables like "query_cache_size";
-Variable_name Value
-query_cache_size 0
-select * from t1;
-a
-set GLOBAL query_cache_size=10240;
-Warnings:
-Warning 1282 Query cache failed to set size 10240; new query cache size is 0
-show global variables like "query_cache_size";
-Variable_name Value
-query_cache_size 0
-select * from t1;
-a
-set GLOBAL query_cache_size=20480;
-Warnings:
-Warning 1282 Query cache failed to set size 20480; new query cache size is 0
-show global variables like "query_cache_size";
-Variable_name Value
-query_cache_size 0
-select * from t1;
-a
-set GLOBAL query_cache_size=40960;
-Warnings:
-Warning 1282 Query cache failed to set size 40960; new query cache size is 0
-show global variables like "query_cache_size";
-Variable_name Value
-query_cache_size 0
-select * from t1;
-a
-set GLOBAL query_cache_size=51200;
-show global variables like "query_cache_size";
-Variable_name Value
-query_cache_size 51200
-select * from t1;
-a
-set GLOBAL query_cache_size=61440;
-show global variables like "query_cache_size";
-Variable_name Value
-query_cache_size 61440
-select * from t1;
-a
-set GLOBAL query_cache_size=81920;
-show global variables like "query_cache_size";
-Variable_name Value
-query_cache_size 81920
-select * from t1;
-a
-set GLOBAL query_cache_size=102400;
-show global variables like "query_cache_size";
-Variable_name Value
-query_cache_size 102400
-select * from t1;
-a
-drop table t1;
-set GLOBAL query_cache_size=1048576;
-create table t1 (i int not null);
-create table t2 (i int not null);
-select * from t1;
-i
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-create temporary table t3 (i int not null);
-select * from t2;
-i
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-select * from t3;
-i
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-update t1 set i=(select distinct 1 from (select * from t2) a);
-drop table t1, t2, t3;
-use mysql;
-select * from db;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-use test;
-select * from mysql.db;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-create table t1(id int auto_increment primary key);
-insert into t1 values (NULL), (NULL), (NULL);
-select * from t1 where id=2;
-id
-2
-alter table t1 rename to t2;
-select * from t1 where id=2;
-ERROR 42S02: Table 'test.t1' doesn't exist
-drop table t2;
-select * from t1 where id=2;
-ERROR 42S02: Table 'test.t1' doesn't exist
-create table t1 (word char(20) not null);
-select * from t1;
-word
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-load data infile 'MYSQLTEST_VARDIR/std_data/words.dat' into table t1;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-select count(*) from t1;
-count(*)
-70
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-select * from t1 into outfile "query_cache.out.file";
-select * from t1 into outfile "query_cache.out.file";
-ERROR HY000: File 'query_cache.out.file' already exists
-select * from t1 limit 1 into dumpfile "query_cache.dump.file";
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(2);
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-select * from t1;
-a
-1
-2
-SET SQL_SELECT_LIMIT=1;
-select * from t1;
-a
-1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-SET SQL_SELECT_LIMIT=DEFAULT;
-drop table t1;
-flush query cache;
-reset query cache;
-flush status;
-set GLOBAL query_cache_size=1048576;
-create table t1 (a int not null);
-insert into t1 values (1),(2),(3);
-create table t2 (a text not null);
-create table t3 (a text not null);
-insert into t3 values("1111111111111111111111111111111111111111111111111111");
-insert into t2 select * from t3;
-insert into t3 select * from t2;
-insert into t2 select * from t3;
-insert into t3 select * from t2;
-insert into t2 select * from t3;
-insert into t3 select * from t2;
-insert into t2 select * from t3;
-insert into t3 select * from t2;
-insert into t2 select * from t3;
-insert into t3 select * from t2;
-drop table t2;
-create table t2 (a int not null);
-insert into t2 values (1),(2),(3);
-create table t4 (a int not null);
-insert into t4 values (1),(2),(3);
-select * from t4;
-select * from t2;
-select * from t1 as tt, t1 as ttt where tt.a=1 and ttt.a=2;
-select * from t2;
-select * from t4;
-select * from t1 as tt, t1 as ttt where tt.a=1 and ttt.a=2;
-select * from t2;
-select * from t4;
-select * from t1 as tt, t1 as ttt where tt.a=1 and ttt.a=2;
-delete from t2 where a=1;
-flush query cache;
-select * from t3;
-delete from t4 where a=1;
-flush query cache;
-drop table t1,t2,t3,t4;
-set query_cache_wlock_invalidate=1;
-create table t1 (a int not null);
-create table t2 (a int not null);
-create view v1 as select * from t1;
-select * from t1;
-a
-select * from t2;
-a
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-lock table t1 write, t2 read;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-unlock table;
-select * from t1;
-a
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-lock table v1 write;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-unlock table;
-drop view v1;
-drop table t1,t2;
-set query_cache_wlock_invalidate=default;
-CREATE TABLE t1 (id INT PRIMARY KEY);
-insert into t1 values (1),(2),(3);
-select * from t1;
-id
-1
-2
-3
-create temporary table t1 (a int not null auto_increment
-primary key);
-select * from t1;
-a
-drop table t1;
-drop table t1;
-SET NAMES koi8r;
-CREATE TABLE t1 (a char(1) character set koi8r);
-INSERT INTO t1 VALUES (_koi8r'á'),(_koi8r'Á');
-SELECT a,'Â','â'='Â' FROM t1;
-a  'â'='Â'
-á Â 1
-Á Â 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 6
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-set collation_connection=koi8r_bin;
-SELECT a,'Â','â'='Â' FROM t1;
-a  'â'='Â'
-á Â 0
-Á Â 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 6
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 2
-set character_set_client=cp1251;
-SELECT a,'Â','â'='Â' FROM t1;
-a ÷ '×'='÷'
-á ÷ 0
-Á ÷ 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 6
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 3
-set character_set_results=cp1251;
-SELECT a,'Â','â'='Â' FROM t1;
-a  'â'='Â'
-À Â 0
-à Â 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 6
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 4
-SET NAMES default;
-DROP TABLE t1;
-CREATE TABLE t1 (a int(1));
-CREATE DATABASE mysqltest;
-USE mysqltest;
-DROP DATABASE mysqltest;
-SELECT * FROM test.t1;
-a
-USE test;
-DROP TABLE t1;
-set character_set_results=null;
-select @@character_set_results;
-@@character_set_results
-NULL
-set character_set_results=default;
-set GLOBAL query_cache_size=1355776;
-create table t1 (id int auto_increment primary key, c char(25));
-insert into t1 set c = repeat('x',24);
-insert into t1 set c = concat(repeat('x',24),'x');
-insert into t1 set c = concat(repeat('x',24),'w');
-insert into t1 set c = concat(repeat('x',24),'y');
-set max_sort_length=200;
-select c from t1 order by c, id;
-c
-xxxxxxxxxxxxxxxxxxxxxxxx
-xxxxxxxxxxxxxxxxxxxxxxxxw
-xxxxxxxxxxxxxxxxxxxxxxxxx
-xxxxxxxxxxxxxxxxxxxxxxxxy
-reset query cache;
-set max_sort_length=20;
-select c from t1 order by c, id;
-c
-xxxxxxxxxxxxxxxxxxxxxxxx
-xxxxxxxxxxxxxxxxxxxxxxxxx
-xxxxxxxxxxxxxxxxxxxxxxxxw
-xxxxxxxxxxxxxxxxxxxxxxxxy
-set max_sort_length=200;
-select c from t1 order by c, id;
-c
-xxxxxxxxxxxxxxxxxxxxxxxx
-xxxxxxxxxxxxxxxxxxxxxxxxw
-xxxxxxxxxxxxxxxxxxxxxxxxx
-xxxxxxxxxxxxxxxxxxxxxxxxy
-set max_sort_length=default;
-select '1' || '3' from t1;
-'1' || '3'
-1
-1
-1
-1
-set SQL_MODE=oracle;
-select '1' || '3' from t1;
-'1' || '3'
-13
-13
-13
-13
-set SQL_MODE=default;
-drop table t1;
-create table t1 (a varchar(20), b int);
-insert into t1 values ('12345678901234567890', 1);
-set group_concat_max_len=10;
-select group_concat(a) FROM t1 group by b;
-group_concat(a)
-1234567890
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-set group_concat_max_len=1024;
-select group_concat(a) FROM t1 group by b;
-group_concat(a)
-12345678901234567890
-set group_concat_max_len=default;
-drop table t1;
-create table t1 (a int);
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 19
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 6
-/**/ select * from t1;
-a
-/**/ select * from t1;
-a
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 20
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 7
-DROP TABLE t1;
-SET GLOBAL query_cache_size=0;
-SET SESSION query_cache_type = 2;
-create table t1(a int);
-select table_name from information_schema.tables
-where table_schema="test";
-table_name
-t1
-drop table t1;
-select table_name from information_schema.tables
-where table_schema="test";
-table_name
-SET SESSION query_cache_type = 1;
-set global query_cache_size=1024*1024;
-flush query cache;
-create table t1 ( a int );
-insert into t1 values (1);
-select a from t1;
-a
-1
-select a from t1;
-a
-1
-show status like 'qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 1
-repair table t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-show status like 'qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 0
-drop table t1;
-set GLOBAL query_cache_size=64*1024;
-create table t1 (a text);
-insert into t1 values (repeat('abcdefghijklmnopqrstuvwxyz', 550));
-create table t2 (a text);
-insert into t2 values (repeat('ijklmnopqrstuvwxyzabcdefgh', 550));
-select a from t1;
-select a from t2;
-show status like 'Qcache_%_blocks';
-Variable_name Value
-Qcache_free_blocks 1
-Qcache_total_blocks 7
-insert into t1 select reverse(a) from t1;
-show status like 'Qcache_%_blocks';
-Variable_name Value
-Qcache_free_blocks 2
-Qcache_total_blocks 5
-select a from t1;
-show status like 'Qcache_%_blocks';
-Variable_name Value
-Qcache_free_blocks 1
-Qcache_total_blocks 8
-select a from t1;
-a
-abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
-zyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcba
-flush query cache;
-drop table t1, t2;
-set GLOBAL query_cache_size=1355776;
-flush status;
-CREATE TABLE t1 (
-`date` datetime NOT NULL default '0000-00-00 00:00:00',
-KEY `date` (`date`)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('20050326');
-INSERT INTO t1 VALUES ('20050325');
-SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050327 invalid';
-COUNT(*)
-0
-Warnings:
-Warning 1292 Incorrect datetime value: '20050327 invalid'
-SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050328 invalid';
-COUNT(*)
-0
-Warnings:
-Warning 1292 Incorrect datetime value: '20050328 invalid'
-SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050327 invalid';
-COUNT(*)
-0
-Warnings:
-Warning 1292 Incorrect datetime value: '20050327 invalid'
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1);
-reset query cache;
-flush status;
-select * from (select * from t1) a;
-a
-1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-select * from (select * from t1) a;
-a
-1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-insert into t1 values (2);
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-select * from (select * from t1) a;
-a
-1
-2
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 2
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-drop table t1;
-create table t1 (a int);
-flush status;
-(select a from t1) union (select a from t1);
-a
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-(select a from t1) union (select a from t1);
-a
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-set query_cache_strip_comments=1;
-(select a from t1) union (select a from t1);
-a
-(select a from t1) /* */union (select a from t1);
-a
-set query_cache_strip_comments=0;
-(select a from t1) union (select a from t1);
-a
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 4
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(2);
-drop procedure if exists p1;
-CREATE PROCEDURE `p1`()
-begin
-Declare c1 cursor for select a from t1;
-open c1;
-select * from t1;
-end//
-call p1()//
-a
-1
-2
-drop procedure p1;
-create function f1() returns int
-begin
-Declare var1 int;
-select max(a) from t1 into var1;
-return var1;
-end//
-create procedure `p1`()
-begin
-select a, f1() from t1;
-end//
-SET @old_log_bin_trust_function_creators= @@global.log_bin_trust_function_creators;
-SET GLOBAL log_bin_trust_function_creators = 1;
-call p1()//
-a f1()
-1 2
-2 2
-SET GLOBAL log_bin_trust_function_creators = @old_log_bin_trust_function_creators;
-drop procedure p1//
-drop function f1//
-drop table t1//
-flush query cache;
-reset query cache;
-flush status;
-create table t1 (s1 int)//
-create procedure f1 () begin
-select sql_cache * from t1;
-select sql_cache * from t1;
-select sql_cache * from t1;
-end;//
-create procedure f2 () begin
-select sql_cache * from t1 where s1=1;
-select sql_cache * from t1;
-end;//
-create procedure f3 () begin
-select sql_cache * from t1;
-select sql_cache * from t1 where s1=1;
-end;//
-create procedure f4 () begin
-select sql_cache * from t1;
-select sql_cache * from t1 where s1=1;
-select sql_cache * from t1;
-select sql_cache * from t1 where s1=1;
-select sql_cache * from t1 where s1=1;
-end;//
-call f1();
-s1
-s1
-s1
-call f1();
-s1
-s1
-s1
-call f1();
-s1
-s1
-s1
-select sql_cache * from t1;
-s1
-insert into t1 values (1);
-select sql_cache * from t1;
-s1
-1
-call f1();
-s1
-1
-s1
-1
-s1
-1
-call f1();
-s1
-1
-s1
-1
-s1
-1
-select sql_cache * from t1;
-s1
-1
-flush query cache;
-reset query cache;
-flush status;
-select sql_cache * from t1;
-s1
-1
-select sql_cache * from t1 where s1=1;
-s1
-1
-call f1();
-s1
-1
-s1
-1
-s1
-1
-call f2();
-s1
-1
-s1
-1
-call f3();
-s1
-1
-s1
-1
-call f4();
-s1
-1
-s1
-1
-s1
-1
-s1
-1
-s1
-1
-call f4();
-s1
-1
-s1
-1
-s1
-1
-s1
-1
-s1
-1
-call f3();
-s1
-1
-s1
-1
-call f2();
-s1
-1
-s1
-1
-select sql_cache * from t1 where s1=1;
-s1
-1
-insert into t1 values (2);
-call f1();
-s1
-1
-2
-s1
-1
-2
-s1
-1
-2
-select sql_cache * from t1 where s1=1;
-s1
-1
-select sql_cache * from t1;
-s1
-1
-2
-call f1();
-s1
-1
-2
-s1
-1
-2
-s1
-1
-2
-call f3();
-s1
-1
-2
-s1
-1
-call f3();
-s1
-1
-2
-s1
-1
-call f1();
-s1
-1
-2
-s1
-1
-2
-s1
-1
-2
-drop procedure f1;
-drop procedure f2;
-drop procedure f3;
-drop procedure f4;
-drop table t1;
-set GLOBAL query_cache_size=0;
-End of 4.1 tests
-SET GLOBAL query_cache_size=102400;
-create table t1(a int);
-insert into t1 values(0), (1), (4), (5);
-select * from t1 where a > 3;
-a
-4
-5
-select * from t1 where a > 3;
-a
-4
-5
-show status like 'last_query_cost';
-Variable_name Value
-Last_query_cost 0.000000
-drop table t1;
-SET GLOBAL query_cache_size=0;
-set global query_cache_size=1024*1024;
-flush status;
-create table t1 (a int);
-insert into t1 (a) values (1), (2), (3);
-select * from t1;
-a
-1
-2
-3
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 0
-select * from t1;
-a
-1
-2
-3
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 1
-create table t2 like t1;
-select * from t1;
-a
-1
-2
-3
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 2
-insert into t2 select * from t1;
-select * from t1;
-a
-1
-2
-3
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 3
-drop table t1, t2;
-create table t1(c1 int);
-create table t2(c1 int);
-create table t3(c1 int);
-create view v1 as select t3.c1 as c1 from t3,t2 where t3.c1 = t2.c1;
-start transaction;
-insert into t1(c1) select c1 from v1;
-drop table t1, t2, t3;
-drop view v1;
-create table t1(c1 int);
-insert into t1 values(1),(10),(100);
-select * from t1;
-c1
-1
-10
-100
-select * from t1;
-c1
-1
-10
-100
-select * from t1;
-c1
-1
-10
-100
-select * from t1;
-c1
-1
-10
-100
-drop table t1;
-set global query_cache_size=0;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-set GLOBAL query_cache_type=1;
-set GLOBAL query_cache_limit=10240;
-set GLOBAL query_cache_min_res_unit=0;
-set GLOBAL query_cache_size= 102400;
-reset query cache;
-set LOCAL default_week_format = 0;
-select week('2007-01-04');
-week('2007-01-04')
-0
-select week('2007-01-04') from t1;
-week('2007-01-04')
-0
-0
-0
-select extract(WEEK FROM '2007-01-04') from t1;
-extract(WEEK FROM '2007-01-04')
-0
-0
-0
-set LOCAL default_week_format = 2;
-select week('2007-01-04');
-week('2007-01-04')
-53
-select week('2007-01-04') from t1;
-week('2007-01-04')
-53
-53
-53
-select extract(WEEK FROM '2007-01-04') from t1;
-extract(WEEK FROM '2007-01-04')
-53
-53
-53
-reset query cache;
-set LOCAL div_precision_increment=2;
-select 1/7;
-1/7
-0.14
-select 1/7 from t1;
-1/7
-0.14
-0.14
-0.14
-set LOCAL div_precision_increment=4;
-select 1/7;
-1/7
-0.1429
-select 1/7 from t1;
-1/7
-0.1429
-0.1429
-0.1429
-drop table t1;
-CREATE TABLE t1 (a VARCHAR(200), b TEXT, FULLTEXT (a,b));
-INSERT INTO t1 VALUES('MySQL has now support', 'for full-text search'),
-('Full-text indexes', 'are called collections'),
-('Only MyISAM tables','support collections'),
-('Function MATCH ... AGAINST()','is used to do a search'),
-('Full-text search in MySQL', 'implements vector space model');
-set GLOBAL ft_boolean_syntax='+ -><()~*:""&|';
-select *, MATCH(a,b) AGAINST("+called +collections" IN BOOLEAN MODE) as x from t1;
-a b x
-MySQL has now support for full-text search 0
-Full-text indexes are called collections 1
-Only MyISAM tables support collections 0
-Function MATCH ... AGAINST() is used to do a search 0
-Full-text search in MySQL implements vector space model 0
-set GLOBAL ft_boolean_syntax='- +><()~*:""&|';
-select *, MATCH(a,b) AGAINST("+called +collections" IN BOOLEAN MODE) as x from t1;
-a b x
-MySQL has now support for full-text search 0
-Full-text indexes are called collections 0
-Only MyISAM tables support collections 0
-Function MATCH ... AGAINST() is used to do a search 0
-Full-text search in MySQL implements vector space model 0
-create function change_global() returns integer deterministic
-begin
-set global ft_boolean_syntax='+ -><()~*:""&|';
-return 1;
-end|
-select *, change_global() from t1;
-a b change_global()
-MySQL has now support for full-text search 1
-Full-text indexes are called collections 1
-Only MyISAM tables support collections 1
-Function MATCH ... AGAINST() is used to do a search 1
-Full-text search in MySQL implements vector space model 1
-drop function change_global;
-drop table t1;
-set GLOBAL query_cache_type=default;
-set GLOBAL query_cache_limit=default;
-set GLOBAL query_cache_min_res_unit=default;
-set GLOBAL query_cache_size= default;
-set GLOBAL query_cache_size=1024000;
-create table t1 (a char);
-insert into t1 values ('c');
-a
-drop table t1;
-set GLOBAL query_cache_size= default;
-SET GLOBAL query_cache_size=64*1024*1024;
-CREATE TABLE t1 (id INT);
-CREATE PROCEDURE proc29856(IN theUPC TEXT)
-BEGIN
-SET @stmtStr := '';
-SELECT CONCAT("SELECT id FROM t1 WHERE id IN (",theUPC,")") INTO @stmtStr;
-PREPARE stmt FROM @stmtStr;
-EXECUTE stmt;
-END |
-CALL proc29856('1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,
-25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,
-51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,
-77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,
-102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,
-121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,
-140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,
-159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,
-178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,
-197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,
-216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,
-235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,
-254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,
-273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,
-292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,
-311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,
-330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,
-349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,
-368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,
-387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,
-406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,
-425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,
-444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,
-463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,
-482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,
-501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,
-520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,
-539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,
-558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,
-577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,
-596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,
-615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,
-634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,
-653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,
-672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,
-691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,
-710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,
-729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,
-748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,
-767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,
-786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,
-805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,
-824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,
-843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,
-862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,
-881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,
-900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,
-919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,
-938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,
-957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,
-976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,
-995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,
-1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,
-1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,
-1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,
-1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,
-1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,
-1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,
-1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,
-1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,
-1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,
-1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,
-1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,
-1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,
-1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,
-1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,
-1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,
-1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,
-1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,
-1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,
-1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,
-1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,
-1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,
-1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,
-1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,
-1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,
-1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,
-1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,
-1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,
-1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,
-1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,
-1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,
-1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,
-1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,
-1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,
-1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,
-1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,
-1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,
-1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,
-1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,
-1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,
-1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,
-1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,
-1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,
-1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,
-1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,
-1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,
-1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,
-1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,
-1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,
-1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,
-1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,
-1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,
-1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,
-1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,
-1806,1807,1808,1809,1810,1811');
-id
-DROP PROCEDURE proc29856;
-DROP TABLE t1;
-SET GLOBAL query_cache_size= default;
-#
-# Bug#25132 disabled query cache: Qcache_free_blocks = 1
-#
-set global query_cache_size=102400;
-set global query_cache_size=0;
-set global query_cache_type=0;
-show status like 'Qcache_free_blocks';
-Variable_name Value
-Qcache_free_blocks 0
-set global query_cache_size=102400;
-show status like 'Qcache_free_blocks';
-Variable_name Value
-Qcache_free_blocks 1
-set global query_cache_type=on;
-set session query_cache_type=on;
-Restore default values.
-drop database if exists db1;
-drop database if exists db2;
-set GLOBAL query_cache_size=15*1024*1024;
-create database db1;
-use db1;
-create table t1(c1 int)engine=myisam;
-insert into t1(c1) values (1);
-select * from db1.t1 f;
-c1
-1
-show status like 'Qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 1
-create database db2;
-rename table db1.t1 to db2.t2;
-drop database db1;
-show status like 'Qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 0
-drop database db2;
-set global query_cache_size=default;
-drop database if exists db1;
-drop database if exists db3;
-set GLOBAL query_cache_size=15*1024*1024;
-create database db1;
-create database db3;
-use db1;
-create table t1(c1 int) engine=myisam;
-use db3;
-create table t1(c1 int) engine=myisam;
-use db1;
-insert into t1(c1) values (1);
-use test;
-select * from db1.t1;
-c1
-1
-select c1+1 from db1.t1;
-c1+1
-2
-select * from db3.t1;
-c1
-show status like 'Qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 3
-create database db2;
-rename table db1.t1 to db2.t2;
-drop database db1;
-show status like 'Qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 1
-drop database db2;
-drop database db3;
-set GLOBAL query_cache_type=default;
-set GLOBAL query_cache_limit=default;
-set GLOBAL query_cache_min_res_unit=default;
-set GLOBAL query_cache_size=default;
-set local query_cache_type=default;
-set GLOBAL query_cache_type=on;
-set local query_cache_type=on;
-FLUSH STATUS;
-SET GLOBAL query_cache_size=10*1024*1024;
-SET @save_concurrent_insert= @@concurrent_insert;
-SET GLOBAL concurrent_insert= 0;
-CREATE TABLE t1 (c1 INT NOT NULL) ENGINE=MyISAM;
-INSERT INTO t1 (c1) VALUES (1), (2);
-SHOW GLOBAL VARIABLES LIKE 'concurrent_insert';
-Variable_name Value
-concurrent_insert NEVER
-SHOW STATUS LIKE 'Qcache_hits';
-Variable_name Value
-Qcache_hits 0
-SELECT * FROM t1;
-c1
-1
-2
-SELECT * FROM t1;
-c1
-1
-2
-SHOW STATUS LIKE 'Qcache_hits';
-Variable_name Value
-Qcache_hits 1
-DROP TABLE t1;
-SET GLOBAL concurrent_insert= @save_concurrent_insert;
-SET GLOBAL query_cache_size= default;
-DROP TABLE IF EXISTS t1;
-FLUSH STATUS;
-SET GLOBAL query_cache_size=1048576;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
-SHOW STATUS LIKE 'Qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 0
-SELECT * FROM t1;
-a
-1
-2
-3
-4
-5
-BEGIN;
-SELECT * FROM t1;
-a
-1
-2
-3
-4
-5
-COMMIT;
-SHOW STATUS LIKE 'Qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 2
-SHOW STATUS LIKE "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-SELECT * FROM t1;
-a
-1
-2
-3
-4
-5
-BEGIN;
-SELECT * FROM t1;
-a
-1
-2
-3
-4
-5
-COMMIT;
-SHOW STATUS LIKE "Qcache_hits";
-Variable_name Value
-Qcache_hits 2
-DROP TABLE t1;
-SET GLOBAL query_cache_size= default;
-#------------------------------------------------------------------------
-# Tests for Bug#6760 and Bug#12689
-SET @row_count = 4;
-SET @sleep_time_per_result_row = 1;
-SET @max_acceptable_delay = 2;
-SET @@global.query_cache_size = 1024 * 64;
-DROP TEMPORARY TABLE IF EXISTS t_history;
-DROP TABLE IF EXISTS t1;
-CREATE TEMPORARY TABLE t_history (attempt SMALLINT,
-start_ts DATETIME, end_ts DATETIME,
-start_cached INTEGER, end_cached INTEGER);
-CREATE TABLE t1 (f1 BIGINT);
-INSERT INTO t_history
-SET attempt = 4 - 4 + 1, start_ts = NOW(),
-start_cached = 0;
-SELECT *, SLEEP(@sleep_time_per_result_row) FROM t1;
-f1 SLEEP(@sleep_time_per_result_row)
-1 0
-1 0
-1 0
-1 0
-UPDATE t_history SET end_ts = NOW()
-WHERE attempt = 4 - 4 + 1;
-UPDATE t_history SET end_cached = 0
-WHERE attempt = 4 - 4 + 1;
-INSERT INTO t_history
-SET attempt = 4 - 3 + 1, start_ts = NOW(),
-start_cached = 0;
-SELECT *, SLEEP(@sleep_time_per_result_row) FROM t1;
-f1 SLEEP(@sleep_time_per_result_row)
-1 0
-1 0
-1 0
-1 0
-UPDATE t_history SET end_ts = NOW()
-WHERE attempt = 4 - 3 + 1;
-UPDATE t_history SET end_cached = 0
-WHERE attempt = 4 - 3 + 1;
-INSERT INTO t_history
-SET attempt = 4 - 2 + 1, start_ts = NOW(),
-start_cached = 0;
-SELECT *, SLEEP(@sleep_time_per_result_row) FROM t1;
-f1 SLEEP(@sleep_time_per_result_row)
-1 0
-1 0
-1 0
-1 0
-UPDATE t_history SET end_ts = NOW()
-WHERE attempt = 4 - 2 + 1;
-UPDATE t_history SET end_cached = 0
-WHERE attempt = 4 - 2 + 1;
-INSERT INTO t_history
-SET attempt = 4 - 1 + 1, start_ts = NOW(),
-start_cached = 0;
-SELECT *, SLEEP(@sleep_time_per_result_row) FROM t1;
-f1 SLEEP(@sleep_time_per_result_row)
-1 0
-1 0
-1 0
-1 0
-UPDATE t_history SET end_ts = NOW()
-WHERE attempt = 4 - 1 + 1;
-UPDATE t_history SET end_cached = 0
-WHERE attempt = 4 - 1 + 1;
-# Test 1: Does the query with SLEEP need a reasonable time?
-SELECT COUNT(*) >= 4 - 1 INTO @aux1 FROM t_history
-WHERE TIMEDIFF(end_ts,start_ts) - @sleep_time_per_result_row * @row_count
-BETWEEN 0 AND @max_acceptable_delay;
-SELECT @aux1 AS "Expect 1";
-Expect 1
-1
-# Test 2: Does the query with SLEEP need a reasonable time even in case
-# of the non first execution?
-SELECT COUNT(*) >= 4 - 1 - 1 INTO @aux2 FROM t_history
-WHERE TIMEDIFF(end_ts,start_ts) - @sleep_time_per_result_row * @row_count
-BETWEEN 0 AND @max_acceptable_delay
-AND attempt > 1;
-SELECT @aux2 AS "Expect 1";
-Expect 1
-1
-# Test 3: The query with SLEEP must be not cached.
-SELECT COUNT(*) = 4 INTO @aux3 FROM t_history
-WHERE end_cached = start_cached;
-SELECT @aux3 AS "Expect 1";
-Expect 1
-1
-DROP TABLE t1;
-DROP TEMPORARY TABLE t_history;
-SET @@global.query_cache_size = default;
-End of 5.0 tests
-SET GLOBAL query_cache_size=1024*1024*512;
-CREATE TABLE t1 (a ENUM('rainbow'));
-INSERT INTO t1 VALUES (),(),(),(),();
-SELECT 1 FROM t1 GROUP BY (SELECT 1 FROM t1 ORDER BY AVG(LAST_INSERT_ID()));
-1
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a LONGBLOB);
-INSERT INTO t1 SET a = 'aaaa';
-INSERT INTO t1 SET a = 'aaaa';
-SELECT 1 FROM t1 GROUP BY
-(SELECT LAST_INSERT_ID() FROM t1 ORDER BY MIN(a) ASC LIMIT 1);
-1
-1
-DROP TABLE t1;
-SET GLOBAL query_cache_size= default;
-CREATE TABLE t1( a INT );
-SET @v = ( SELECT SQL_CACHE 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1 )' at line 1
-SET @v = ( SELECT SQL_NO_CACHE 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1 )' at line 1
-SELECT a FROM t1 WHERE a IN ( SELECT SQL_CACHE a FROM t1 );
-ERROR 42S22: Unknown column 'SQL_CACHE' in 'field list'
-SELECT a FROM t1 WHERE a IN ( SELECT SQL_NO_CACHE a FROM t1 );
-ERROR 42S22: Unknown column 'SQL_NO_CACHE' in 'field list'
-SELECT ( SELECT SQL_CACHE a FROM t1 );
-ERROR 42S22: Unknown column 'SQL_CACHE' in 'field list'
-SELECT ( SELECT SQL_NO_CACHE a FROM t1 );
-ERROR 42S22: Unknown column 'SQL_NO_CACHE' in 'field list'
-SELECT SQL_CACHE * FROM t1;
-a
-SELECT SQL_NO_CACHE * FROM t1;
-a
-SELECT * FROM t1 UNION SELECT SQL_CACHE * FROM t1;
-ERROR 42000: Incorrect usage/placement of 'SQL_CACHE'
-SELECT * FROM t1 UNION SELECT SQL_NO_CACHE * FROM t1;
-ERROR 42000: Incorrect usage/placement of 'SQL_NO_CACHE'
-SELECT * FROM t1 WHERE a IN (SELECT SQL_CACHE a FROM t1);
-ERROR 42S22: Unknown column 'SQL_CACHE' in 'field list'
-SELECT * FROM t1 WHERE a IN (SELECT a FROM t1 UNION SELECT SQL_CACHE a FROM t1);
-ERROR 42S22: Unknown column 'SQL_CACHE' in 'field list'
-SELECT * FROM t1 UNION SELECT SQL_NO_CACHE * FROM t1;
-ERROR 42000: Incorrect usage/placement of 'SQL_NO_CACHE'
-SELECT * FROM t1 WHERE a IN (SELECT SQL_NO_CACHE a FROM t1);
-ERROR 42S22: Unknown column 'SQL_NO_CACHE' in 'field list'
-SELECT * FROM t1 WHERE a IN
-(SELECT a FROM t1 UNION SELECT SQL_NO_CACHE a FROM t1);
-ERROR 42S22: Unknown column 'SQL_NO_CACHE' in 'field list'
-SELECT SQL_CACHE SQL_NO_CACHE * FROM t1;
-ERROR HY000: Incorrect usage of SQL_CACHE and SQL_NO_CACHE
-SELECT SQL_NO_CACHE SQL_CACHE * FROM t1;
-ERROR HY000: Incorrect usage of SQL_NO_CACHE and SQL_CACHE
-SELECT SQL_CACHE * FROM t1 UNION SELECT SQL_CACHE * FROM t1;
-ERROR 42000: Incorrect usage/placement of 'SQL_CACHE'
-SELECT SQL_CACHE * FROM t1 UNION SELECT SQL_NO_CACHE * FROM t1;
-ERROR 42000: Incorrect usage/placement of 'SQL_NO_CACHE'
-SELECT SQL_NO_CACHE * FROM t1 UNION SELECT SQL_CACHE * FROM t1;
-ERROR 42000: Incorrect usage/placement of 'SQL_CACHE'
-SELECT SQL_NO_CACHE * FROM t1 UNION SELECT SQL_NO_CACHE * FROM t1;
-ERROR 42000: Incorrect usage/placement of 'SQL_NO_CACHE'
-SELECT SQL_CACHE * FROM t1 WHERE a IN
-(SELECT SQL_NO_CACHE a FROM t1);
-ERROR 42S22: Unknown column 'SQL_NO_CACHE' in 'field list'
-SELECT SQL_CACHE * FROM t1 WHERE a IN
-(SELECT a FROM t1 UNION SELECT SQL_NO_CACHE a FROM t1);
-ERROR 42S22: Unknown column 'SQL_NO_CACHE' in 'field list'
-DROP TABLE t1;
-End of 5.1 tests
-#
-# Bug#51336 Assert in reload_acl_and_cache during RESET QUERY CACHE
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(id INT);
-START TRANSACTION;
-SELECT * FROM t1;
-id
-RESET QUERY CACHE;
-COMMIT;
-DROP TABLE t1;
-New query cache switching OFF mechanism test
-set global query_cache_size=1024*1024*20;
-set global query_cache_type=on;
-select @@query_cache_size, @@global.query_cache_type, @@local.query_cache_type;
-@@query_cache_size @@global.query_cache_type @@local.query_cache_type
-20971520 ON ON
-set global query_cache_size=0;
-select @@query_cache_size, @@global.query_cache_type, @@local.query_cache_type;
-@@query_cache_size @@global.query_cache_type @@local.query_cache_type
-0 ON ON
-set global query_cache_size=1024*1024*20;
-select @@query_cache_size, @@global.query_cache_type, @@local.query_cache_type;
-@@query_cache_size @@global.query_cache_type @@local.query_cache_type
-20971520 ON ON
-set global query_cache_type=off;
-select @@query_cache_size, @@global.query_cache_type, @@local.query_cache_type;
-@@query_cache_size @@global.query_cache_type @@local.query_cache_type
-20971520 OFF OFF
-set global query_cache_type=on;
-select @@query_cache_size, @@global.query_cache_type, @@local.query_cache_type;
-@@query_cache_size @@global.query_cache_type @@local.query_cache_type
-20971520 ON OFF
-set local query_cache_type= on;
-select @@query_cache_size, @@global.query_cache_type, @@local.query_cache_type;
-@@query_cache_size @@global.query_cache_type @@local.query_cache_type
-20971520 ON ON
-#
-# MDEV-4981: Account for queries handled by query-cache in
-# USER_STATISTICS (and in HOST_STATISTICS)
-#
-SET GLOBAL userstat=1;
-set GLOBAL query_cache_size=1355776;
-FLUSH USER_STATISTICS;
-FLUSH CLIENT_STATISTICS;
-reset query cache;
-flush status;
-create table t1 (a int);
-insert into t1 values (1);
-select * from t1;
-a
-1
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.CLIENT_STATISTICS
-where CLIENT="localhost";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-1 1 0
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.USER_STATISTICS
-where USER="root";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-2 2 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-select * from t1;
-a
-1
-select * from t1;
-a
-1
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.CLIENT_STATISTICS
-where CLIENT="localhost";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-5 5 0
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.USER_STATISTICS
-where USER="root";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-6 6 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 2
-drop table t1;
-FLUSH USER_STATISTICS;
-FLUSH CLIENT_STATISTICS;
-flush status;
-create table t1 (a int);
-select * from t1;
-a
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.CLIENT_STATISTICS
-where CLIENT="localhost";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-1 0 1
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.USER_STATISTICS
-where USER="root";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-2 1 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-select * from t1;
-a
-select * from t1;
-a
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.CLIENT_STATISTICS
-where CLIENT="localhost";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-5 2 3
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.USER_STATISTICS
-where USER="root";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-6 3 3
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 2
-FLUSH USER_STATISTICS;
-FLUSH CLIENT_STATISTICS;
-flush status;
-create procedure p1()
-select * from t1;
-call p1;
-a
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.CLIENT_STATISTICS
-where CLIENT="localhost";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-1 0 1
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.USER_STATISTICS
-where USER="root";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-2 1 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-call p1;
-a
-call p1;
-a
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.CLIENT_STATISTICS
-where CLIENT="localhost";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-5 2 3
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.USER_STATISTICS
-where USER="root";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-6 3 3
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 2
-FLUSH USER_STATISTICS;
-FLUSH CLIENT_STATISTICS;
-flush status;
-SET GLOBAL query_cache_size= 0;
-call p1;
-a
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.CLIENT_STATISTICS
-where CLIENT="localhost";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-1 0 1
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.USER_STATISTICS
-where USER="root";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-2 1 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-call p1;
-a
-call p1;
-a
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.CLIENT_STATISTICS
-where CLIENT="localhost";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-5 2 3
-select SELECT_COMMANDS,ROWS_SENT,EMPTY_QUERIES from INFORMATION_SCHEMA.USER_STATISTICS
-where USER="root";
-SELECT_COMMANDS ROWS_SENT EMPTY_QUERIES
-6 3 3
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-drop procedure p1;
-drop table t1;
-set GLOBAL query_cache_size=1355776;
-SET GLOBAL userstat=default;
-End of 5.5 tests
-#
-# Bug#12977203: SERVER CRASH ON A DERIVED TABLE WITH QUERY CACHE ENABLED
-#
-SET @qc= @@query_cache_size;
-SET GLOBAL query_cache_size=1355776;
-CREATE TABLE t1 (f1 blob);
-SELECT COUNT(*) FROM (SELECT * FROM t1 ) tt;
-COUNT(*)
-0
-DROP TABLE t1;
-SET GLOBAL query_cache_size= @qc;
-#
-# MDEV-617 LP:671189 - Query cache is not used for tables or
-# databases with dots in their names
-#
-CREATE DATABASE `foo.bar`;
-use `foo.bar`;
-flush status;
-CREATE TABLE moocow (a int);
-INSERT INTO moocow VALUES (1), (2), (3);
-SHOW STATUS LIKE 'Qcache_inserts';
-Variable_name Value
-Qcache_inserts 0
-SELECT * FROM moocow;
-a
-1
-2
-3
-SHOW STATUS LIKE 'Qcache_inserts';
-Variable_name Value
-Qcache_inserts 1
-SHOW STATUS LIKE 'Qcache_hits';
-Variable_name Value
-Qcache_hits 0
-SELECT * FROM moocow;
-a
-1
-2
-3
-SHOW STATUS LIKE 'Qcache_hits';
-Variable_name Value
-Qcache_hits 1
-use test;
-drop database `foo.bar`;
-End of 10.0 tests
-#
-# MDEV-10766 Queries which start with WITH clause do not get
-# inserted into query cache
-#
-flush status;
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 0
-create table t1 (i int);
-with cte as (select * from t1) select * from cte;
-i
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-with cte as (select * from t1) select * from cte;
-i
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-drop table t1;
-#
-# MDEV-15328: MariaDB 10.2.13 Crashes upon CALL PROCEDURE PARAM
-# LAST_INSERT_ID ()
-# (part 2, part 1 is in sp.test)
-#
-create table t1 (a int);
-insert into t1 values (1);
-CREATE FUNCTION foo (i INT UNSIGNED ) RETURNS int deterministic RETURN 1;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-SELECT foo( LAST_INSERT_ID() ) from t1;
-foo( LAST_INSERT_ID() )
-1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-DROP FUNCTION foo;
-drop table t1;
-restore defaults
-SET GLOBAL query_cache_type= default;
-SET GLOBAL query_cache_size= default;
-SET LOCAL query_cache_type= default;
diff --git a/mysql-test/r/query_cache_28249.result b/mysql-test/r/query_cache_28249.result
deleted file mode 100644
index ba694179ceb..00000000000
--- a/mysql-test/r/query_cache_28249.result
+++ /dev/null
@@ -1,67 +0,0 @@
-SET @query_cache_type= @@global.query_cache_type;
-SET @query_cache_limit= @@global.query_cache_limit;
-SET @query_cache_min_res_unit= @@global.query_cache_min_res_unit;
-SET @query_cache_size= @@global.query_cache_size;
-# Bug#28249 Query Cache returns wrong result with concurrent insert/ certain lock
-connect user1,localhost,root,,test,,;
-connect user2,localhost,root,,test,,;
-connect user3,localhost,root,,test,,;
-connection user1;
-SET GLOBAL query_cache_type=1;
-SET GLOBAL query_cache_limit=10000;
-SET GLOBAL query_cache_min_res_unit=0;
-SET GLOBAL query_cache_size= 102400;
-FLUSH TABLES;
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-connection user2;
-LOCK TABLE t2 WRITE;
-connection user1;
-# "send" the next select, "reap" the result later.
-# The select will be blocked by the write lock on the t1.
-SELECT *, (SELECT COUNT(*) FROM t2) FROM t1;
-connection user3;
-# Poll till the select of connection user1 is blocked by the write lock on t1.
-SELECT user,command,state,info FROM information_schema.processlist
-WHERE state = 'Waiting for table metadata lock'
- AND info = 'SELECT *, (SELECT COUNT(*) FROM t2) FROM t1';
-user command state info
-root Query Waiting for table metadata lock SELECT *, (SELECT COUNT(*) FROM t2) FROM t1
-INSERT INTO t1 VALUES (4);
-connection user2;
-UNLOCK TABLES;
-connection user1;
-# Collecting ("reap") the result from the previously blocked select.
-# The printing of the result (varies between 3 and 4 rows) set has to be suppressed.
-connection user3;
-# The next select enforces that effects of "concurrent_inserts" like the
-# record with a = 4 is missing in result sets can no more happen.
-SELECT 1 FROM t1 WHERE a = 4;
-1
-1
-connection user1;
-# The next result set must contain 4 rows.
-SELECT *, (SELECT COUNT(*) FROM t2) FROM t1;
-a (SELECT COUNT(*) FROM t2)
-1 0
-2 0
-3 0
-4 0
-RESET QUERY CACHE;
-SELECT *, (SELECT COUNT(*) FROM t2) FROM t1;
-a (SELECT COUNT(*) FROM t2)
-1 0
-2 0
-3 0
-4 0
-DROP TABLE t1,t2;
-connection default;
-disconnect user1;
-disconnect user2;
-disconnect user3;
-SET GLOBAL query_cache_type= @query_cache_type;
-SET GLOBAL query_cache_limit= @query_cache_limit;
-SET GLOBAL query_cache_min_res_unit= @query_cache_min_res_unit;
-SET GLOBAL query_cache_size= @query_cache_size;
diff --git a/mysql-test/r/query_cache_debug.result b/mysql-test/r/query_cache_debug.result
deleted file mode 100644
index 2a54f073974..00000000000
--- a/mysql-test/r/query_cache_debug.result
+++ /dev/null
@@ -1,286 +0,0 @@
-set global query_cache_type= ON;
-flush status;
-set query_cache_type=DEMAND;
-set global query_cache_size= 1024*768;
-drop table if exists t1;
-create table t1 (a varchar(100));
-insert into t1 values ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),('bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
-connect bug30887con1, localhost, root, ,test;
-connect bug30887con2, localhost, root, ,test;
-connection bug30887con1;
-Activate debug hook and attempt to retrieve the statement from the cache.
-set debug_sync="wait_in_query_cache_insert SIGNAL parked WAIT_FOR go";
-select SQL_CACHE * from t1;;
-connection default;
-set debug_sync="now WAIT_FOR parked";
-connection bug30887con2;
-clear the query cache.
-show status like 'Qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 1
-set global query_cache_size= 0;
-connection default;
-Signal the debug hook to release the lock.
-set debug_sync="now SIGNAL go";
-Show query cache status.
-show status like 'Qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 0
-connection bug30887con1;
-a
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-disconnect bug30887con1;
-disconnect bug30887con2;
-connection default;
-set debug_sync= 'RESET';
-set global query_cache_size= 0;
-use test;
-drop table t1;
-SET @old_concurrent_insert= @@GLOBAL.concurrent_insert;
-SET @old_query_cache_size= @@GLOBAL.query_cache_size;
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-SET GLOBAL concurrent_insert= 1;
-SET GLOBAL query_cache_size= 1024*512;
-SET GLOBAL query_cache_type= ON;
-connect con1,localhost,root,,test,,;
-connect con2,localhost,root,,test,,;
-connection con1;
-SET DEBUG_SYNC = "wait_after_query_cache_invalidate SIGNAL parked WAIT_FOR go";
-# Send concurrent insert, will wait in the query cache table invalidate
-INSERT INTO t1 VALUES (4);
-connection default;
-# Wait for concurrent insert to reach the debug point
-SET DEBUG_SYNC = "now WAIT_FOR parked";
-connection con2;
-# Send SELECT that shouldn't be cached
-SELECT * FROM t1;
-a
-1
-2
-3
-connection default;
-# Notify the concurrent insert to proceed
-SET DEBUG_SYNC = "now SIGNAL go";
-connection con1;
-# Gather insert result
-SHOW STATUS LIKE "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-# Test that it's cacheable
-SELECT * FROM t1;
-a
-1
-2
-3
-4
-SHOW STATUS LIKE "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-disconnect con1;
-disconnect con2;
-connection default;
-# Restore defaults
-SET DEBUG_SYNC= 'RESET';
-RESET QUERY CACHE;
-DROP TABLE t1,t2;
-SET GLOBAL concurrent_insert= DEFAULT;
-SET GLOBAL query_cache_size= DEFAULT;
-SET GLOBAL query_cache_type= DEFAULT;
-#
-# Bug43758 Query cache can lock up threads in 'freeing items' state
-#
-FLUSH STATUS;
-SET GLOBAL query_cache_type=DEMAND;
-SET GLOBAL query_cache_size= 1024*768;
-DROP TABLE IF EXISTS t1,t2,t3,t4,t5;
-CREATE TABLE t1 (a VARCHAR(100));
-CREATE TABLE t2 (a VARCHAR(100));
-CREATE TABLE t3 (a VARCHAR(100));
-CREATE TABLE t4 (a VARCHAR(100));
-CREATE TABLE t5 (a VARCHAR(100));
-INSERT INTO t1 VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),('bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
-INSERT INTO t2 VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),('bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
-INSERT INTO t3 VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),('bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
-INSERT INTO t4 VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),('bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
-INSERT INTO t5 VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),('bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
-connect thd2, localhost, root, ,test;
-connect thd3, localhost, root, ,test;
-connect thd1, localhost, root, ,test;
-connection thd1;
-**
-** Load Query Cache with a result set and one table.
-**
-SELECT SQL_CACHE * FROM t1;
-a
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-*************************************************************************
-** We want to accomplish the following state:
-** - Query cache status: TABLE_FLUSH_IN_PROGRESS
-** - THD1: invalidate_table_internal (iterating query blocks)
-** - THD2: query_cache_insert (cond_wait)
-** - THD3: query_cache_insert (cond_wait)
-** - No thread should be holding the structure_guard_mutex.
-**
-** First step is to place a DELETE-statement on the debug hook just
-** before the mutex lock in invalidate_table_internal.
-** This will allow new result sets to be written into the QC.
-**
-SET DEBUG_SYNC="wait_in_query_cache_invalidate1 SIGNAL parked1_1 WAIT_FOR go1_1";
-SET DEBUG_SYNC="wait_in_query_cache_invalidate2 SIGNAL parked1_2 WAIT_FOR go1_2";
-DELETE FROM t1 WHERE a like '%a%';;
-connection default;
-** Assert that the expect process status is obtained.
-SET DEBUG_SYNC="now WAIT_FOR parked1_1";
-**
-connection thd2;
-** On THD2: Insert a result into the cache. This attempt will be blocked
-** because of a debug hook placed just before the mutex lock after which
-** the first part of the result set is written.
-SET DEBUG_SYNC="wait_in_query_cache_insert SIGNAL parked2 WAIT_FOR go2 EXECUTE 1";
-SELECT SQL_CACHE * FROM t2 UNION SELECT * FROM t3;
-connection default;
-** Assert that the SELECT-stmt thread reaches the sync point.
-SET DEBUG_SYNC="now WAIT_FOR parked2";
-**
-**
-connection thd3;
-** On THD3: Insert another result into the cache and block on the same
-** debug hook.
-SET DEBUG_SYNC="wait_in_query_cache_insert SIGNAL parked3 WAIT_FOR go3 EXECUTE 1";
-SELECT SQL_CACHE * FROM t4 UNION SELECT * FROM t5;
-connection default;
-** Assert that the SELECT-stmt thread reaches the sync point.
-SET DEBUG_SYNC="now WAIT_FOR parked3";
-**
-**
-** Signal the DELETE thread, THD1, to continue. It will enter the mutex
-** lock and set query cache status to TABLE_FLUSH_IN_PROGRESS and then
-** unlock the mutex before stopping on the next debug hook.
-SET DEBUG_SYNC="now SIGNAL go1_1";
-** Assert that we reach the next debug hook.
-SET DEBUG_SYNC="now WAIT_FOR parked1_2";
-**
-** Signal the remaining debug hooks blocking THD2 and THD3.
-** The threads will grab the guard mutex enter the wait condition and
-** and finally release the mutex. The threads will continue to wait
-** until a broadcast signal reaches them causing both threads to
-** come alive and check the condition.
-SET DEBUG_SYNC="now SIGNAL go2";
-SET DEBUG_SYNC="now SIGNAL go3";
-**
-** Finally signal the DELETE statement on THD1 one last time.
-** The stmt will complete the query cache invalidation and return
-** cache status to NO_FLUSH_IN_PROGRESS. On the status change
-** One signal will be sent to the thread group waiting for executing
-** invalidations and a broadcast signal will be sent to the thread
-** group holding result set writers.
-SET DEBUG_SYNC="now SIGNAL go1_2";
-**
-*************************************************************************
-** No tables should be locked
-connection thd2;
-a
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-DELETE FROM t1;
-DELETE FROM t2;
-DELETE FROM t3;
-connection thd3;
-a
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-DELETE FROM t4;
-DELETE FROM t5;
-connection thd1;
-** Done.
-connection default;
-disconnect thd1;
-disconnect thd2;
-disconnect thd3;
-SET DEBUG_SYNC= 'RESET';
-SET GLOBAL query_cache_size= 0;
-connection default;
-# Restore defaults
-RESET QUERY CACHE;
-FLUSH STATUS;
-DROP TABLE t1,t2,t3,t4,t5;
-SET GLOBAL query_cache_size= DEFAULT;
-SET GLOBAL query_cache_type= DEFAULT;
-#
-# Bug#56822: Add a thread state for sessions waiting on the query cache lock
-#
-SET @old_query_cache_size= @@GLOBAL.query_cache_size;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-SET GLOBAL concurrent_insert= 1;
-SET GLOBAL query_cache_size= 1024*512;
-SET GLOBAL query_cache_type= ON;
-connect con1,localhost,root,,test,,;
-connect con2,localhost,root,,test,,;
-connection con1;
-SET DEBUG_SYNC = "wait_in_query_cache_invalidate2 SIGNAL parked WAIT_FOR go";
-# Send INSERT, will wait in the query cache table invalidation
-INSERT INTO t1 VALUES (4);;
-connection default;
-# Wait for insert to reach the debug point
-SET DEBUG_SYNC = "now WAIT_FOR parked";
-connection con2;
-# Send a query that should wait on the query cache lock
-RESET QUERY CACHE;
-connection default;
-# Wait for the state to be reflected in the processlist
-# Signal that the query cache can be unlocked
-SET DEBUG_SYNC="now SIGNAL go";
-connection con1;
-disconnect con1;
-connection con2;
-disconnect con2;
-connection default;
-# Restore defaults
-SET DEBUG_SYNC= 'RESET';
-RESET QUERY CACHE;
-DROP TABLE t1;
-SET GLOBAL query_cache_size= DEFAULT;
-SET GLOBAL query_cache_type= DEFAULT;
-#
-# MDEV-14526: MariaDB keeps crashing under load when
-# query_cache_type is changed
-#
-CREATE TABLE t1 (
-`id` int(10) NOT NULL AUTO_INCREMENT,
-`k` int(10) default '0',
-PRIMARY KEY (`id`))
-ENGINE=MyISAM;
-INSERT IGNORE INTO t1 VALUES
-(NULL,1),(NULL,8),(NULL,NULL),(NULL,NULL),(NULL,4),(NULL,9),(NULL,7),
-(NULL,3),(NULL,NULL),(NULL,2),(NULL,3),(NULL,NULL),(NULL,2),(NULL,7),
-(NULL,1),(NULL,2),(NULL,4),(NULL,NULL),(NULL,1),(NULL,1),(NULL,4);
-SET GLOBAL query_cache_size= 1024*1024;
-SET GLOBAL query_cache_type= 1;
-connect con2,localhost,root,,test;
-connect con1,localhost,root,,test;
-set debug_sync="wait_in_query_cache_store_query SIGNAL parked WAIT_FOR go";
-SELECT DISTINCT id FROM t1 WHERE id BETWEEN 5603 AND 16218 ORDER BY k;
-connection default;
-set debug_sync="now WAIT_FOR parked";
-connection con2;
-SET GLOBAL query_cache_type= 0;
-connection default;
-set debug_sync="now SIGNAL go";
-connection con1;
-id
-connection con2;
-disconnect con1;
-disconnect con2;
-connection default;
-set debug_sync= 'RESET';
-DROP TABLE t1;
-SEt GLOBAL query_cache_size= DEFAULT;
-SEt GLOBAL query_cache_type= DEFAULT;
-# End of 5.5 tests
diff --git a/mysql-test/r/query_cache_innodb.result b/mysql-test/r/query_cache_innodb.result
deleted file mode 100644
index 643a065612f..00000000000
--- a/mysql-test/r/query_cache_innodb.result
+++ /dev/null
@@ -1,90 +0,0 @@
-#
-# MDEV-12485: foreign key on delete cascade stale entries with
-# query cache enabled
-#
-SET NAMES utf8;
-set global query_cache_type=1;
-set global query_cache_size=1024*1024;
-set query_cache_type=1;
-create table t1 ( id int unsigned auto_increment, primary key(id) ) engine=innodb;
-create table t2 ( t2id int unsigned, id int unsigned, primary key(t2id, id), foreign key (`id`) references t1(`id`) on delete cascade ) engine=innodb;
-insert into t1 values (1);
-insert into t2 values (1,1);
-select * from t2;
-t2id id
-1 1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-delete from t1;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-select * from t2;
-t2id id
-optimize table t2;
-Table Op Msg_type Msg_text
-test.t2 optimize note Table does not support optimize, doing recreate + analyze instead
-test.t2 optimize status OK
-select * from t2;
-t2id id
-drop table t2;
-drop table t1;
-create database `testdatabase$Ñ—`;
-use `testdatabase$Ñ—`;
-create table `t1$Ñ—` ( id int unsigned auto_increment, primary key(id) ) engine=innodb;
-create table `t2$Ñ—` ( t2id int unsigned, id int unsigned, primary key(t2id, id), foreign key (`id`) references `t1$Ñ—`(`id`) on delete cascade ) engine=innodb;
-insert into `t1$Ñ—` values (1);
-insert into `t2$Ñ—`values (1,1);
-select * from `t2$Ñ—`;
-t2id id
-1 1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-delete from `t1$Ñ—`;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-select * from `t2$Ñ—`;
-t2id id
-optimize table `t2$Ñ—`;
-Table Op Msg_type Msg_text
-testdatabase$Ñ—.t2$Ñ— optimize note Table does not support optimize, doing recreate + analyze instead
-testdatabase$Ñ—.t2$Ñ— optimize status OK
-select * from `t2$Ñ—`;
-t2id id
-use test;
-drop database `testdatabase$Ñ—`;
-SET NAMES default;
-create database `#mysql50#-`;
-use `#mysql50#-`;
-create table `#mysql50#t-1` ( id int unsigned auto_increment, primary key(id) ) engine=innodb;
-create table `#mysql50#t-2` ( t2id int unsigned, id int unsigned, primary key(t2id, id), foreign key (`id`) references `#mysql50#t-1`(`id`) on delete cascade ) engine=innodb;
-insert into `#mysql50#t-1` values (1);
-insert into `#mysql50#t-2`values (1,1);
-select * from `#mysql50#t-2`;
-t2id id
-1 1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-delete from `#mysql50#t-1`;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-select * from `#mysql50#t-2`;
-t2id id
-optimize table `#mysql50#t-2`;
-Table Op Msg_type Msg_text
-#mysql50#-.#mysql50#t-2 optimize note Table does not support optimize, doing recreate + analyze instead
-#mysql50#-.#mysql50#t-2 optimize status OK
-select * from `#mysql50#t-2`;
-t2id id
-use test;
-drop database `#mysql50#-`;
-SET NAMES default;
-FOUND 12 /\[ERROR\] Invalid \(old\?\) table or database name/ in mysqld.1.err
-set global query_cache_type=DEFAULT;
-set global query_cache_size=DEFAULT;
-End of 10.2 tests
diff --git a/mysql-test/r/query_cache_merge.result b/mysql-test/r/query_cache_merge.result
deleted file mode 100644
index e31ab05b396..00000000000
--- a/mysql-test/r/query_cache_merge.result
+++ /dev/null
@@ -1,1698 +0,0 @@
-SET GLOBAL query_cache_type=ON;
-SET LOCAL query_cache_type=ON;
-SET @@global.query_cache_size=1355776;
-flush status;
-select count(*) from t00;
-count(*)
-514
-select count(*) from t00;
-count(*)
-514
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-delete from t256;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-drop table t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16,t17,t18,t19,t20,t21,t22,t23,t24,t25,t26,t27,t28,t29,t30,t31,t32,t33,t34,t35,t36,t37,t38,t39,t40,t41,t42,t43,t44,t45,t46,t47,t48,t49,t50,t51,t52,t53,t54,t55,t56,t57,t58,t59,t60,t61,t62,t63,t64,t65,t66,t67,t68,t69,t70,t71,t72,t73,t74,t75,t76,t77,t78,t79,t80,t81,t82,t83,t84,t85,t86,t87,t88,t89,t90,t91,t92,t93,t94,t95,t96,t97,t98,t99,t100,t101,t102,t103,t104,t105,t106,t107,t108,t109,t110,t111,t112,t113,t114,t115,t116,t117,t118,t119,t120,t121,t122,t123,t124,t125,t126,t127,t128,t129,t130,t131,t132,t133,t134,t135,t136,t137,t138,t139,t140,t141,t142,t143,t144,t145,t146,t147,t148,t149,t150,t151,t152,t153,t154,t155,t156,t157,t158,t159,t160,t161,t162,t163,t164,t165,t166,t167,t168,t169,t170,t171,t172,t173,t174,t175,t176,t177,t178,t179,t180,t181,t182,t183,t184,t185,t186,t187,t188,t189,t190,t191,t192,t193,t194,t195,t196,t197,t198,t199,t200,t201,t202,t203,t204,t205,t206,t207,t208,t209,t210,t211,t212,t213,t214,t215,t216,t217,t218,t219,t220,t221,t222,t223,t224,t225,t226,t227,t228,t229,t230,t231,t232,t233,t234,t235,t236,t237,t238,t239,t240,t241,t242,t243,t244,t245,t246,t247,t248,t249,t250,t251,t252,t253,t254,t255,t256,t257,t00;
-SET @@global.query_cache_size=0;
-set @@global.table_definition_cache=@save_table_definition_cache;
-SET @save_table_definition_cache = @@global.table_definition_cache;
-SET @@global.table_definition_cache = 512;
-CREATE TABLE t255 (a INT);
-INSERT INTO t255 VALUES (255);
-CREATE TABLE t254 (a INT);
-INSERT INTO t254 VALUES (254);
-CREATE TABLE t253 (a INT);
-INSERT INTO t253 VALUES (253);
-CREATE TABLE t252 (a INT);
-INSERT INTO t252 VALUES (252);
-CREATE TABLE t251 (a INT);
-INSERT INTO t251 VALUES (251);
-CREATE TABLE t250 (a INT);
-INSERT INTO t250 VALUES (250);
-CREATE TABLE t249 (a INT);
-INSERT INTO t249 VALUES (249);
-CREATE TABLE t248 (a INT);
-INSERT INTO t248 VALUES (248);
-CREATE TABLE t247 (a INT);
-INSERT INTO t247 VALUES (247);
-CREATE TABLE t246 (a INT);
-INSERT INTO t246 VALUES (246);
-CREATE TABLE t245 (a INT);
-INSERT INTO t245 VALUES (245);
-CREATE TABLE t244 (a INT);
-INSERT INTO t244 VALUES (244);
-CREATE TABLE t243 (a INT);
-INSERT INTO t243 VALUES (243);
-CREATE TABLE t242 (a INT);
-INSERT INTO t242 VALUES (242);
-CREATE TABLE t241 (a INT);
-INSERT INTO t241 VALUES (241);
-CREATE TABLE t240 (a INT);
-INSERT INTO t240 VALUES (240);
-CREATE TABLE t239 (a INT);
-INSERT INTO t239 VALUES (239);
-CREATE TABLE t238 (a INT);
-INSERT INTO t238 VALUES (238);
-CREATE TABLE t237 (a INT);
-INSERT INTO t237 VALUES (237);
-CREATE TABLE t236 (a INT);
-INSERT INTO t236 VALUES (236);
-CREATE TABLE t235 (a INT);
-INSERT INTO t235 VALUES (235);
-CREATE TABLE t234 (a INT);
-INSERT INTO t234 VALUES (234);
-CREATE TABLE t233 (a INT);
-INSERT INTO t233 VALUES (233);
-CREATE TABLE t232 (a INT);
-INSERT INTO t232 VALUES (232);
-CREATE TABLE t231 (a INT);
-INSERT INTO t231 VALUES (231);
-CREATE TABLE t230 (a INT);
-INSERT INTO t230 VALUES (230);
-CREATE TABLE t229 (a INT);
-INSERT INTO t229 VALUES (229);
-CREATE TABLE t228 (a INT);
-INSERT INTO t228 VALUES (228);
-CREATE TABLE t227 (a INT);
-INSERT INTO t227 VALUES (227);
-CREATE TABLE t226 (a INT);
-INSERT INTO t226 VALUES (226);
-CREATE TABLE t225 (a INT);
-INSERT INTO t225 VALUES (225);
-CREATE TABLE t224 (a INT);
-INSERT INTO t224 VALUES (224);
-CREATE TABLE t223 (a INT);
-INSERT INTO t223 VALUES (223);
-CREATE TABLE t222 (a INT);
-INSERT INTO t222 VALUES (222);
-CREATE TABLE t221 (a INT);
-INSERT INTO t221 VALUES (221);
-CREATE TABLE t220 (a INT);
-INSERT INTO t220 VALUES (220);
-CREATE TABLE t219 (a INT);
-INSERT INTO t219 VALUES (219);
-CREATE TABLE t218 (a INT);
-INSERT INTO t218 VALUES (218);
-CREATE TABLE t217 (a INT);
-INSERT INTO t217 VALUES (217);
-CREATE TABLE t216 (a INT);
-INSERT INTO t216 VALUES (216);
-CREATE TABLE t215 (a INT);
-INSERT INTO t215 VALUES (215);
-CREATE TABLE t214 (a INT);
-INSERT INTO t214 VALUES (214);
-CREATE TABLE t213 (a INT);
-INSERT INTO t213 VALUES (213);
-CREATE TABLE t212 (a INT);
-INSERT INTO t212 VALUES (212);
-CREATE TABLE t211 (a INT);
-INSERT INTO t211 VALUES (211);
-CREATE TABLE t210 (a INT);
-INSERT INTO t210 VALUES (210);
-CREATE TABLE t209 (a INT);
-INSERT INTO t209 VALUES (209);
-CREATE TABLE t208 (a INT);
-INSERT INTO t208 VALUES (208);
-CREATE TABLE t207 (a INT);
-INSERT INTO t207 VALUES (207);
-CREATE TABLE t206 (a INT);
-INSERT INTO t206 VALUES (206);
-CREATE TABLE t205 (a INT);
-INSERT INTO t205 VALUES (205);
-CREATE TABLE t204 (a INT);
-INSERT INTO t204 VALUES (204);
-CREATE TABLE t203 (a INT);
-INSERT INTO t203 VALUES (203);
-CREATE TABLE t202 (a INT);
-INSERT INTO t202 VALUES (202);
-CREATE TABLE t201 (a INT);
-INSERT INTO t201 VALUES (201);
-CREATE TABLE t200 (a INT);
-INSERT INTO t200 VALUES (200);
-CREATE TABLE t199 (a INT);
-INSERT INTO t199 VALUES (199);
-CREATE TABLE t198 (a INT);
-INSERT INTO t198 VALUES (198);
-CREATE TABLE t197 (a INT);
-INSERT INTO t197 VALUES (197);
-CREATE TABLE t196 (a INT);
-INSERT INTO t196 VALUES (196);
-CREATE TABLE t195 (a INT);
-INSERT INTO t195 VALUES (195);
-CREATE TABLE t194 (a INT);
-INSERT INTO t194 VALUES (194);
-CREATE TABLE t193 (a INT);
-INSERT INTO t193 VALUES (193);
-CREATE TABLE t192 (a INT);
-INSERT INTO t192 VALUES (192);
-CREATE TABLE t191 (a INT);
-INSERT INTO t191 VALUES (191);
-CREATE TABLE t190 (a INT);
-INSERT INTO t190 VALUES (190);
-CREATE TABLE t189 (a INT);
-INSERT INTO t189 VALUES (189);
-CREATE TABLE t188 (a INT);
-INSERT INTO t188 VALUES (188);
-CREATE TABLE t187 (a INT);
-INSERT INTO t187 VALUES (187);
-CREATE TABLE t186 (a INT);
-INSERT INTO t186 VALUES (186);
-CREATE TABLE t185 (a INT);
-INSERT INTO t185 VALUES (185);
-CREATE TABLE t184 (a INT);
-INSERT INTO t184 VALUES (184);
-CREATE TABLE t183 (a INT);
-INSERT INTO t183 VALUES (183);
-CREATE TABLE t182 (a INT);
-INSERT INTO t182 VALUES (182);
-CREATE TABLE t181 (a INT);
-INSERT INTO t181 VALUES (181);
-CREATE TABLE t180 (a INT);
-INSERT INTO t180 VALUES (180);
-CREATE TABLE t179 (a INT);
-INSERT INTO t179 VALUES (179);
-CREATE TABLE t178 (a INT);
-INSERT INTO t178 VALUES (178);
-CREATE TABLE t177 (a INT);
-INSERT INTO t177 VALUES (177);
-CREATE TABLE t176 (a INT);
-INSERT INTO t176 VALUES (176);
-CREATE TABLE t175 (a INT);
-INSERT INTO t175 VALUES (175);
-CREATE TABLE t174 (a INT);
-INSERT INTO t174 VALUES (174);
-CREATE TABLE t173 (a INT);
-INSERT INTO t173 VALUES (173);
-CREATE TABLE t172 (a INT);
-INSERT INTO t172 VALUES (172);
-CREATE TABLE t171 (a INT);
-INSERT INTO t171 VALUES (171);
-CREATE TABLE t170 (a INT);
-INSERT INTO t170 VALUES (170);
-CREATE TABLE t169 (a INT);
-INSERT INTO t169 VALUES (169);
-CREATE TABLE t168 (a INT);
-INSERT INTO t168 VALUES (168);
-CREATE TABLE t167 (a INT);
-INSERT INTO t167 VALUES (167);
-CREATE TABLE t166 (a INT);
-INSERT INTO t166 VALUES (166);
-CREATE TABLE t165 (a INT);
-INSERT INTO t165 VALUES (165);
-CREATE TABLE t164 (a INT);
-INSERT INTO t164 VALUES (164);
-CREATE TABLE t163 (a INT);
-INSERT INTO t163 VALUES (163);
-CREATE TABLE t162 (a INT);
-INSERT INTO t162 VALUES (162);
-CREATE TABLE t161 (a INT);
-INSERT INTO t161 VALUES (161);
-CREATE TABLE t160 (a INT);
-INSERT INTO t160 VALUES (160);
-CREATE TABLE t159 (a INT);
-INSERT INTO t159 VALUES (159);
-CREATE TABLE t158 (a INT);
-INSERT INTO t158 VALUES (158);
-CREATE TABLE t157 (a INT);
-INSERT INTO t157 VALUES (157);
-CREATE TABLE t156 (a INT);
-INSERT INTO t156 VALUES (156);
-CREATE TABLE t155 (a INT);
-INSERT INTO t155 VALUES (155);
-CREATE TABLE t154 (a INT);
-INSERT INTO t154 VALUES (154);
-CREATE TABLE t153 (a INT);
-INSERT INTO t153 VALUES (153);
-CREATE TABLE t152 (a INT);
-INSERT INTO t152 VALUES (152);
-CREATE TABLE t151 (a INT);
-INSERT INTO t151 VALUES (151);
-CREATE TABLE t150 (a INT);
-INSERT INTO t150 VALUES (150);
-CREATE TABLE t149 (a INT);
-INSERT INTO t149 VALUES (149);
-CREATE TABLE t148 (a INT);
-INSERT INTO t148 VALUES (148);
-CREATE TABLE t147 (a INT);
-INSERT INTO t147 VALUES (147);
-CREATE TABLE t146 (a INT);
-INSERT INTO t146 VALUES (146);
-CREATE TABLE t145 (a INT);
-INSERT INTO t145 VALUES (145);
-CREATE TABLE t144 (a INT);
-INSERT INTO t144 VALUES (144);
-CREATE TABLE t143 (a INT);
-INSERT INTO t143 VALUES (143);
-CREATE TABLE t142 (a INT);
-INSERT INTO t142 VALUES (142);
-CREATE TABLE t141 (a INT);
-INSERT INTO t141 VALUES (141);
-CREATE TABLE t140 (a INT);
-INSERT INTO t140 VALUES (140);
-CREATE TABLE t139 (a INT);
-INSERT INTO t139 VALUES (139);
-CREATE TABLE t138 (a INT);
-INSERT INTO t138 VALUES (138);
-CREATE TABLE t137 (a INT);
-INSERT INTO t137 VALUES (137);
-CREATE TABLE t136 (a INT);
-INSERT INTO t136 VALUES (136);
-CREATE TABLE t135 (a INT);
-INSERT INTO t135 VALUES (135);
-CREATE TABLE t134 (a INT);
-INSERT INTO t134 VALUES (134);
-CREATE TABLE t133 (a INT);
-INSERT INTO t133 VALUES (133);
-CREATE TABLE t132 (a INT);
-INSERT INTO t132 VALUES (132);
-CREATE TABLE t131 (a INT);
-INSERT INTO t131 VALUES (131);
-CREATE TABLE t130 (a INT);
-INSERT INTO t130 VALUES (130);
-CREATE TABLE t129 (a INT);
-INSERT INTO t129 VALUES (129);
-CREATE TABLE t128 (a INT);
-INSERT INTO t128 VALUES (128);
-CREATE TABLE t127 (a INT);
-INSERT INTO t127 VALUES (127);
-CREATE TABLE t126 (a INT);
-INSERT INTO t126 VALUES (126);
-CREATE TABLE t125 (a INT);
-INSERT INTO t125 VALUES (125);
-CREATE TABLE t124 (a INT);
-INSERT INTO t124 VALUES (124);
-CREATE TABLE t123 (a INT);
-INSERT INTO t123 VALUES (123);
-CREATE TABLE t122 (a INT);
-INSERT INTO t122 VALUES (122);
-CREATE TABLE t121 (a INT);
-INSERT INTO t121 VALUES (121);
-CREATE TABLE t120 (a INT);
-INSERT INTO t120 VALUES (120);
-CREATE TABLE t119 (a INT);
-INSERT INTO t119 VALUES (119);
-CREATE TABLE t118 (a INT);
-INSERT INTO t118 VALUES (118);
-CREATE TABLE t117 (a INT);
-INSERT INTO t117 VALUES (117);
-CREATE TABLE t116 (a INT);
-INSERT INTO t116 VALUES (116);
-CREATE TABLE t115 (a INT);
-INSERT INTO t115 VALUES (115);
-CREATE TABLE t114 (a INT);
-INSERT INTO t114 VALUES (114);
-CREATE TABLE t113 (a INT);
-INSERT INTO t113 VALUES (113);
-CREATE TABLE t112 (a INT);
-INSERT INTO t112 VALUES (112);
-CREATE TABLE t111 (a INT);
-INSERT INTO t111 VALUES (111);
-CREATE TABLE t110 (a INT);
-INSERT INTO t110 VALUES (110);
-CREATE TABLE t109 (a INT);
-INSERT INTO t109 VALUES (109);
-CREATE TABLE t108 (a INT);
-INSERT INTO t108 VALUES (108);
-CREATE TABLE t107 (a INT);
-INSERT INTO t107 VALUES (107);
-CREATE TABLE t106 (a INT);
-INSERT INTO t106 VALUES (106);
-CREATE TABLE t105 (a INT);
-INSERT INTO t105 VALUES (105);
-CREATE TABLE t104 (a INT);
-INSERT INTO t104 VALUES (104);
-CREATE TABLE t103 (a INT);
-INSERT INTO t103 VALUES (103);
-CREATE TABLE t102 (a INT);
-INSERT INTO t102 VALUES (102);
-CREATE TABLE t101 (a INT);
-INSERT INTO t101 VALUES (101);
-CREATE TABLE t100 (a INT);
-INSERT INTO t100 VALUES (100);
-CREATE TABLE t99 (a INT);
-INSERT INTO t99 VALUES (99);
-CREATE TABLE t98 (a INT);
-INSERT INTO t98 VALUES (98);
-CREATE TABLE t97 (a INT);
-INSERT INTO t97 VALUES (97);
-CREATE TABLE t96 (a INT);
-INSERT INTO t96 VALUES (96);
-CREATE TABLE t95 (a INT);
-INSERT INTO t95 VALUES (95);
-CREATE TABLE t94 (a INT);
-INSERT INTO t94 VALUES (94);
-CREATE TABLE t93 (a INT);
-INSERT INTO t93 VALUES (93);
-CREATE TABLE t92 (a INT);
-INSERT INTO t92 VALUES (92);
-CREATE TABLE t91 (a INT);
-INSERT INTO t91 VALUES (91);
-CREATE TABLE t90 (a INT);
-INSERT INTO t90 VALUES (90);
-CREATE TABLE t89 (a INT);
-INSERT INTO t89 VALUES (89);
-CREATE TABLE t88 (a INT);
-INSERT INTO t88 VALUES (88);
-CREATE TABLE t87 (a INT);
-INSERT INTO t87 VALUES (87);
-CREATE TABLE t86 (a INT);
-INSERT INTO t86 VALUES (86);
-CREATE TABLE t85 (a INT);
-INSERT INTO t85 VALUES (85);
-CREATE TABLE t84 (a INT);
-INSERT INTO t84 VALUES (84);
-CREATE TABLE t83 (a INT);
-INSERT INTO t83 VALUES (83);
-CREATE TABLE t82 (a INT);
-INSERT INTO t82 VALUES (82);
-CREATE TABLE t81 (a INT);
-INSERT INTO t81 VALUES (81);
-CREATE TABLE t80 (a INT);
-INSERT INTO t80 VALUES (80);
-CREATE TABLE t79 (a INT);
-INSERT INTO t79 VALUES (79);
-CREATE TABLE t78 (a INT);
-INSERT INTO t78 VALUES (78);
-CREATE TABLE t77 (a INT);
-INSERT INTO t77 VALUES (77);
-CREATE TABLE t76 (a INT);
-INSERT INTO t76 VALUES (76);
-CREATE TABLE t75 (a INT);
-INSERT INTO t75 VALUES (75);
-CREATE TABLE t74 (a INT);
-INSERT INTO t74 VALUES (74);
-CREATE TABLE t73 (a INT);
-INSERT INTO t73 VALUES (73);
-CREATE TABLE t72 (a INT);
-INSERT INTO t72 VALUES (72);
-CREATE TABLE t71 (a INT);
-INSERT INTO t71 VALUES (71);
-CREATE TABLE t70 (a INT);
-INSERT INTO t70 VALUES (70);
-CREATE TABLE t69 (a INT);
-INSERT INTO t69 VALUES (69);
-CREATE TABLE t68 (a INT);
-INSERT INTO t68 VALUES (68);
-CREATE TABLE t67 (a INT);
-INSERT INTO t67 VALUES (67);
-CREATE TABLE t66 (a INT);
-INSERT INTO t66 VALUES (66);
-CREATE TABLE t65 (a INT);
-INSERT INTO t65 VALUES (65);
-CREATE TABLE t64 (a INT);
-INSERT INTO t64 VALUES (64);
-CREATE TABLE t63 (a INT);
-INSERT INTO t63 VALUES (63);
-CREATE TABLE t62 (a INT);
-INSERT INTO t62 VALUES (62);
-CREATE TABLE t61 (a INT);
-INSERT INTO t61 VALUES (61);
-CREATE TABLE t60 (a INT);
-INSERT INTO t60 VALUES (60);
-CREATE TABLE t59 (a INT);
-INSERT INTO t59 VALUES (59);
-CREATE TABLE t58 (a INT);
-INSERT INTO t58 VALUES (58);
-CREATE TABLE t57 (a INT);
-INSERT INTO t57 VALUES (57);
-CREATE TABLE t56 (a INT);
-INSERT INTO t56 VALUES (56);
-CREATE TABLE t55 (a INT);
-INSERT INTO t55 VALUES (55);
-CREATE TABLE t54 (a INT);
-INSERT INTO t54 VALUES (54);
-CREATE TABLE t53 (a INT);
-INSERT INTO t53 VALUES (53);
-CREATE TABLE t52 (a INT);
-INSERT INTO t52 VALUES (52);
-CREATE TABLE t51 (a INT);
-INSERT INTO t51 VALUES (51);
-CREATE TABLE t50 (a INT);
-INSERT INTO t50 VALUES (50);
-CREATE TABLE t49 (a INT);
-INSERT INTO t49 VALUES (49);
-CREATE TABLE t48 (a INT);
-INSERT INTO t48 VALUES (48);
-CREATE TABLE t47 (a INT);
-INSERT INTO t47 VALUES (47);
-CREATE TABLE t46 (a INT);
-INSERT INTO t46 VALUES (46);
-CREATE TABLE t45 (a INT);
-INSERT INTO t45 VALUES (45);
-CREATE TABLE t44 (a INT);
-INSERT INTO t44 VALUES (44);
-CREATE TABLE t43 (a INT);
-INSERT INTO t43 VALUES (43);
-CREATE TABLE t42 (a INT);
-INSERT INTO t42 VALUES (42);
-CREATE TABLE t41 (a INT);
-INSERT INTO t41 VALUES (41);
-CREATE TABLE t40 (a INT);
-INSERT INTO t40 VALUES (40);
-CREATE TABLE t39 (a INT);
-INSERT INTO t39 VALUES (39);
-CREATE TABLE t38 (a INT);
-INSERT INTO t38 VALUES (38);
-CREATE TABLE t37 (a INT);
-INSERT INTO t37 VALUES (37);
-CREATE TABLE t36 (a INT);
-INSERT INTO t36 VALUES (36);
-CREATE TABLE t35 (a INT);
-INSERT INTO t35 VALUES (35);
-CREATE TABLE t34 (a INT);
-INSERT INTO t34 VALUES (34);
-CREATE TABLE t33 (a INT);
-INSERT INTO t33 VALUES (33);
-CREATE TABLE t32 (a INT);
-INSERT INTO t32 VALUES (32);
-CREATE TABLE t31 (a INT);
-INSERT INTO t31 VALUES (31);
-CREATE TABLE t30 (a INT);
-INSERT INTO t30 VALUES (30);
-CREATE TABLE t29 (a INT);
-INSERT INTO t29 VALUES (29);
-CREATE TABLE t28 (a INT);
-INSERT INTO t28 VALUES (28);
-CREATE TABLE t27 (a INT);
-INSERT INTO t27 VALUES (27);
-CREATE TABLE t26 (a INT);
-INSERT INTO t26 VALUES (26);
-CREATE TABLE t25 (a INT);
-INSERT INTO t25 VALUES (25);
-CREATE TABLE t24 (a INT);
-INSERT INTO t24 VALUES (24);
-CREATE TABLE t23 (a INT);
-INSERT INTO t23 VALUES (23);
-CREATE TABLE t22 (a INT);
-INSERT INTO t22 VALUES (22);
-CREATE TABLE t21 (a INT);
-INSERT INTO t21 VALUES (21);
-CREATE TABLE t20 (a INT);
-INSERT INTO t20 VALUES (20);
-CREATE TABLE t19 (a INT);
-INSERT INTO t19 VALUES (19);
-CREATE TABLE t18 (a INT);
-INSERT INTO t18 VALUES (18);
-CREATE TABLE t17 (a INT);
-INSERT INTO t17 VALUES (17);
-CREATE TABLE t16 (a INT);
-INSERT INTO t16 VALUES (16);
-CREATE TABLE t15 (a INT);
-INSERT INTO t15 VALUES (15);
-CREATE TABLE t14 (a INT);
-INSERT INTO t14 VALUES (14);
-CREATE TABLE t13 (a INT);
-INSERT INTO t13 VALUES (13);
-CREATE TABLE t12 (a INT);
-INSERT INTO t12 VALUES (12);
-CREATE TABLE t11 (a INT);
-INSERT INTO t11 VALUES (11);
-CREATE TABLE t10 (a INT);
-INSERT INTO t10 VALUES (10);
-CREATE TABLE t9 (a INT);
-INSERT INTO t9 VALUES (9);
-CREATE TABLE t8 (a INT);
-INSERT INTO t8 VALUES (8);
-CREATE TABLE t7 (a INT);
-INSERT INTO t7 VALUES (7);
-CREATE TABLE t6 (a INT);
-INSERT INTO t6 VALUES (6);
-CREATE TABLE t5 (a INT);
-INSERT INTO t5 VALUES (5);
-CREATE TABLE t4 (a INT);
-INSERT INTO t4 VALUES (4);
-CREATE TABLE t3 (a INT);
-INSERT INTO t3 VALUES (3);
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 VALUES (2);
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t0 (a INT) ENGINE=MERGE UNION(t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16,t17,t18,t19,t20,t21,t22,t23,t24,t25,t26,t27,t28,t29,t30,t31,t32,t33,t34,t35,t36,t37,t38,t39,t40,t41,t42,t43,t44,t45,t46,t47,t48,t49,t50,t51,t52,t53,t54,t55,t56,t57,t58,t59,t60,t61,t62,t63,t64,t65,t66,t67,t68,t69,t70,t71,t72,t73,t74,t75,t76,t77,t78,t79,t80,t81,t82,t83,t84,t85,t86,t87,t88,t89,t90,t91,t92,t93,t94,t95,t96,t97,t98,t99,t100,t101,t102,t103,t104,t105,t106,t107,t108,t109,t110,t111,t112,t113,t114,t115,t116,t117,t118,t119,t120,t121,t122,t123,t124,t125,t126,t127,t128,t129,t130,t131,t132,t133,t134,t135,t136,t137,t138,t139,t140,t141,t142,t143,t144,t145,t146,t147,t148,t149,t150,t151,t152,t153,t154,t155,t156,t157,t158,t159,t160,t161,t162,t163,t164,t165,t166,t167,t168,t169,t170,t171,t172,t173,t174,t175,t176,t177,t178,t179,t180,t181,t182,t183,t184,t185,t186,t187,t188,t189,t190,t191,t192,t193,t194,t195,t196,t197,t198,t199,t200,t201,t202,t203,t204,t205,t206,t207,t208,t209,t210,t211,t212,t213,t214,t215,t216,t217,t218,t219,t220,t221,t222,t223,t224,t225,t226,t227,t228,t229,t230,t231,t232,t233,t234,t235,t236,t237,t238,t239,t240,t241,t242,t243,t244,t245,t246,t247,t248,t249,t250,t251,t252,t253,t254,t255);
-SET GLOBAL query_cache_size = 1048576;
-FLUSH STATUS;
-SELECT a FROM t0 WHERE a = 1;
-a
-1
-SHOW STATUS LIKE "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-TRUNCATE TABLE t255;
-SELECT a FROM t1;
-a
-1
-TRUNCATE TABLE t254;
-SELECT a FROM t2;
-a
-2
-TRUNCATE TABLE t253;
-SELECT a FROM t3;
-a
-3
-TRUNCATE TABLE t252;
-SELECT a FROM t4;
-a
-4
-TRUNCATE TABLE t251;
-SELECT a FROM t5;
-a
-5
-TRUNCATE TABLE t250;
-SELECT a FROM t6;
-a
-6
-TRUNCATE TABLE t249;
-SELECT a FROM t7;
-a
-7
-TRUNCATE TABLE t248;
-SELECT a FROM t8;
-a
-8
-TRUNCATE TABLE t247;
-SELECT a FROM t9;
-a
-9
-TRUNCATE TABLE t246;
-SELECT a FROM t10;
-a
-10
-TRUNCATE TABLE t245;
-SELECT a FROM t11;
-a
-11
-TRUNCATE TABLE t244;
-SELECT a FROM t12;
-a
-12
-TRUNCATE TABLE t243;
-SELECT a FROM t13;
-a
-13
-TRUNCATE TABLE t242;
-SELECT a FROM t14;
-a
-14
-TRUNCATE TABLE t241;
-SELECT a FROM t15;
-a
-15
-TRUNCATE TABLE t240;
-SELECT a FROM t16;
-a
-16
-TRUNCATE TABLE t239;
-SELECT a FROM t17;
-a
-17
-TRUNCATE TABLE t238;
-SELECT a FROM t18;
-a
-18
-TRUNCATE TABLE t237;
-SELECT a FROM t19;
-a
-19
-TRUNCATE TABLE t236;
-SELECT a FROM t20;
-a
-20
-TRUNCATE TABLE t235;
-SELECT a FROM t21;
-a
-21
-TRUNCATE TABLE t234;
-SELECT a FROM t22;
-a
-22
-TRUNCATE TABLE t233;
-SELECT a FROM t23;
-a
-23
-TRUNCATE TABLE t232;
-SELECT a FROM t24;
-a
-24
-TRUNCATE TABLE t231;
-SELECT a FROM t25;
-a
-25
-TRUNCATE TABLE t230;
-SELECT a FROM t26;
-a
-26
-TRUNCATE TABLE t229;
-SELECT a FROM t27;
-a
-27
-TRUNCATE TABLE t228;
-SELECT a FROM t28;
-a
-28
-TRUNCATE TABLE t227;
-SELECT a FROM t29;
-a
-29
-TRUNCATE TABLE t226;
-SELECT a FROM t30;
-a
-30
-TRUNCATE TABLE t225;
-SELECT a FROM t31;
-a
-31
-TRUNCATE TABLE t224;
-SELECT a FROM t32;
-a
-32
-TRUNCATE TABLE t223;
-SELECT a FROM t33;
-a
-33
-TRUNCATE TABLE t222;
-SELECT a FROM t34;
-a
-34
-TRUNCATE TABLE t221;
-SELECT a FROM t35;
-a
-35
-TRUNCATE TABLE t220;
-SELECT a FROM t36;
-a
-36
-TRUNCATE TABLE t219;
-SELECT a FROM t37;
-a
-37
-TRUNCATE TABLE t218;
-SELECT a FROM t38;
-a
-38
-TRUNCATE TABLE t217;
-SELECT a FROM t39;
-a
-39
-TRUNCATE TABLE t216;
-SELECT a FROM t40;
-a
-40
-TRUNCATE TABLE t215;
-SELECT a FROM t41;
-a
-41
-TRUNCATE TABLE t214;
-SELECT a FROM t42;
-a
-42
-TRUNCATE TABLE t213;
-SELECT a FROM t43;
-a
-43
-TRUNCATE TABLE t212;
-SELECT a FROM t44;
-a
-44
-TRUNCATE TABLE t211;
-SELECT a FROM t45;
-a
-45
-TRUNCATE TABLE t210;
-SELECT a FROM t46;
-a
-46
-TRUNCATE TABLE t209;
-SELECT a FROM t47;
-a
-47
-TRUNCATE TABLE t208;
-SELECT a FROM t48;
-a
-48
-TRUNCATE TABLE t207;
-SELECT a FROM t49;
-a
-49
-TRUNCATE TABLE t206;
-SELECT a FROM t50;
-a
-50
-TRUNCATE TABLE t205;
-SELECT a FROM t51;
-a
-51
-TRUNCATE TABLE t204;
-SELECT a FROM t52;
-a
-52
-TRUNCATE TABLE t203;
-SELECT a FROM t53;
-a
-53
-TRUNCATE TABLE t202;
-SELECT a FROM t54;
-a
-54
-TRUNCATE TABLE t201;
-SELECT a FROM t55;
-a
-55
-TRUNCATE TABLE t200;
-SELECT a FROM t56;
-a
-56
-TRUNCATE TABLE t199;
-SELECT a FROM t57;
-a
-57
-TRUNCATE TABLE t198;
-SELECT a FROM t58;
-a
-58
-TRUNCATE TABLE t197;
-SELECT a FROM t59;
-a
-59
-TRUNCATE TABLE t196;
-SELECT a FROM t60;
-a
-60
-TRUNCATE TABLE t195;
-SELECT a FROM t61;
-a
-61
-TRUNCATE TABLE t194;
-SELECT a FROM t62;
-a
-62
-TRUNCATE TABLE t193;
-SELECT a FROM t63;
-a
-63
-TRUNCATE TABLE t192;
-SELECT a FROM t64;
-a
-64
-TRUNCATE TABLE t191;
-SELECT a FROM t65;
-a
-65
-TRUNCATE TABLE t190;
-SELECT a FROM t66;
-a
-66
-TRUNCATE TABLE t189;
-SELECT a FROM t67;
-a
-67
-TRUNCATE TABLE t188;
-SELECT a FROM t68;
-a
-68
-TRUNCATE TABLE t187;
-SELECT a FROM t69;
-a
-69
-TRUNCATE TABLE t186;
-SELECT a FROM t70;
-a
-70
-TRUNCATE TABLE t185;
-SELECT a FROM t71;
-a
-71
-TRUNCATE TABLE t184;
-SELECT a FROM t72;
-a
-72
-TRUNCATE TABLE t183;
-SELECT a FROM t73;
-a
-73
-TRUNCATE TABLE t182;
-SELECT a FROM t74;
-a
-74
-TRUNCATE TABLE t181;
-SELECT a FROM t75;
-a
-75
-TRUNCATE TABLE t180;
-SELECT a FROM t76;
-a
-76
-TRUNCATE TABLE t179;
-SELECT a FROM t77;
-a
-77
-TRUNCATE TABLE t178;
-SELECT a FROM t78;
-a
-78
-TRUNCATE TABLE t177;
-SELECT a FROM t79;
-a
-79
-TRUNCATE TABLE t176;
-SELECT a FROM t80;
-a
-80
-TRUNCATE TABLE t175;
-SELECT a FROM t81;
-a
-81
-TRUNCATE TABLE t174;
-SELECT a FROM t82;
-a
-82
-TRUNCATE TABLE t173;
-SELECT a FROM t83;
-a
-83
-TRUNCATE TABLE t172;
-SELECT a FROM t84;
-a
-84
-TRUNCATE TABLE t171;
-SELECT a FROM t85;
-a
-85
-TRUNCATE TABLE t170;
-SELECT a FROM t86;
-a
-86
-TRUNCATE TABLE t169;
-SELECT a FROM t87;
-a
-87
-TRUNCATE TABLE t168;
-SELECT a FROM t88;
-a
-88
-TRUNCATE TABLE t167;
-SELECT a FROM t89;
-a
-89
-TRUNCATE TABLE t166;
-SELECT a FROM t90;
-a
-90
-TRUNCATE TABLE t165;
-SELECT a FROM t91;
-a
-91
-TRUNCATE TABLE t164;
-SELECT a FROM t92;
-a
-92
-TRUNCATE TABLE t163;
-SELECT a FROM t93;
-a
-93
-TRUNCATE TABLE t162;
-SELECT a FROM t94;
-a
-94
-TRUNCATE TABLE t161;
-SELECT a FROM t95;
-a
-95
-TRUNCATE TABLE t160;
-SELECT a FROM t96;
-a
-96
-TRUNCATE TABLE t159;
-SELECT a FROM t97;
-a
-97
-TRUNCATE TABLE t158;
-SELECT a FROM t98;
-a
-98
-TRUNCATE TABLE t157;
-SELECT a FROM t99;
-a
-99
-TRUNCATE TABLE t156;
-SELECT a FROM t100;
-a
-100
-TRUNCATE TABLE t155;
-SELECT a FROM t101;
-a
-101
-TRUNCATE TABLE t154;
-SELECT a FROM t102;
-a
-102
-TRUNCATE TABLE t153;
-SELECT a FROM t103;
-a
-103
-TRUNCATE TABLE t152;
-SELECT a FROM t104;
-a
-104
-TRUNCATE TABLE t151;
-SELECT a FROM t105;
-a
-105
-TRUNCATE TABLE t150;
-SELECT a FROM t106;
-a
-106
-TRUNCATE TABLE t149;
-SELECT a FROM t107;
-a
-107
-TRUNCATE TABLE t148;
-SELECT a FROM t108;
-a
-108
-TRUNCATE TABLE t147;
-SELECT a FROM t109;
-a
-109
-TRUNCATE TABLE t146;
-SELECT a FROM t110;
-a
-110
-TRUNCATE TABLE t145;
-SELECT a FROM t111;
-a
-111
-TRUNCATE TABLE t144;
-SELECT a FROM t112;
-a
-112
-TRUNCATE TABLE t143;
-SELECT a FROM t113;
-a
-113
-TRUNCATE TABLE t142;
-SELECT a FROM t114;
-a
-114
-TRUNCATE TABLE t141;
-SELECT a FROM t115;
-a
-115
-TRUNCATE TABLE t140;
-SELECT a FROM t116;
-a
-116
-TRUNCATE TABLE t139;
-SELECT a FROM t117;
-a
-117
-TRUNCATE TABLE t138;
-SELECT a FROM t118;
-a
-118
-TRUNCATE TABLE t137;
-SELECT a FROM t119;
-a
-119
-TRUNCATE TABLE t136;
-SELECT a FROM t120;
-a
-120
-TRUNCATE TABLE t135;
-SELECT a FROM t121;
-a
-121
-TRUNCATE TABLE t134;
-SELECT a FROM t122;
-a
-122
-TRUNCATE TABLE t133;
-SELECT a FROM t123;
-a
-123
-TRUNCATE TABLE t132;
-SELECT a FROM t124;
-a
-124
-TRUNCATE TABLE t131;
-SELECT a FROM t125;
-a
-125
-TRUNCATE TABLE t130;
-SELECT a FROM t126;
-a
-126
-TRUNCATE TABLE t129;
-SELECT a FROM t127;
-a
-127
-TRUNCATE TABLE t128;
-SELECT a FROM t128;
-a
-TRUNCATE TABLE t127;
-SELECT a FROM t129;
-a
-TRUNCATE TABLE t126;
-SELECT a FROM t130;
-a
-TRUNCATE TABLE t125;
-SELECT a FROM t131;
-a
-TRUNCATE TABLE t124;
-SELECT a FROM t132;
-a
-TRUNCATE TABLE t123;
-SELECT a FROM t133;
-a
-TRUNCATE TABLE t122;
-SELECT a FROM t134;
-a
-TRUNCATE TABLE t121;
-SELECT a FROM t135;
-a
-TRUNCATE TABLE t120;
-SELECT a FROM t136;
-a
-TRUNCATE TABLE t119;
-SELECT a FROM t137;
-a
-TRUNCATE TABLE t118;
-SELECT a FROM t138;
-a
-TRUNCATE TABLE t117;
-SELECT a FROM t139;
-a
-TRUNCATE TABLE t116;
-SELECT a FROM t140;
-a
-TRUNCATE TABLE t115;
-SELECT a FROM t141;
-a
-TRUNCATE TABLE t114;
-SELECT a FROM t142;
-a
-TRUNCATE TABLE t113;
-SELECT a FROM t143;
-a
-TRUNCATE TABLE t112;
-SELECT a FROM t144;
-a
-TRUNCATE TABLE t111;
-SELECT a FROM t145;
-a
-TRUNCATE TABLE t110;
-SELECT a FROM t146;
-a
-TRUNCATE TABLE t109;
-SELECT a FROM t147;
-a
-TRUNCATE TABLE t108;
-SELECT a FROM t148;
-a
-TRUNCATE TABLE t107;
-SELECT a FROM t149;
-a
-TRUNCATE TABLE t106;
-SELECT a FROM t150;
-a
-TRUNCATE TABLE t105;
-SELECT a FROM t151;
-a
-TRUNCATE TABLE t104;
-SELECT a FROM t152;
-a
-TRUNCATE TABLE t103;
-SELECT a FROM t153;
-a
-TRUNCATE TABLE t102;
-SELECT a FROM t154;
-a
-TRUNCATE TABLE t101;
-SELECT a FROM t155;
-a
-TRUNCATE TABLE t100;
-SELECT a FROM t156;
-a
-TRUNCATE TABLE t99;
-SELECT a FROM t157;
-a
-TRUNCATE TABLE t98;
-SELECT a FROM t158;
-a
-TRUNCATE TABLE t97;
-SELECT a FROM t159;
-a
-TRUNCATE TABLE t96;
-SELECT a FROM t160;
-a
-TRUNCATE TABLE t95;
-SELECT a FROM t161;
-a
-TRUNCATE TABLE t94;
-SELECT a FROM t162;
-a
-TRUNCATE TABLE t93;
-SELECT a FROM t163;
-a
-TRUNCATE TABLE t92;
-SELECT a FROM t164;
-a
-TRUNCATE TABLE t91;
-SELECT a FROM t165;
-a
-TRUNCATE TABLE t90;
-SELECT a FROM t166;
-a
-TRUNCATE TABLE t89;
-SELECT a FROM t167;
-a
-TRUNCATE TABLE t88;
-SELECT a FROM t168;
-a
-TRUNCATE TABLE t87;
-SELECT a FROM t169;
-a
-TRUNCATE TABLE t86;
-SELECT a FROM t170;
-a
-TRUNCATE TABLE t85;
-SELECT a FROM t171;
-a
-TRUNCATE TABLE t84;
-SELECT a FROM t172;
-a
-TRUNCATE TABLE t83;
-SELECT a FROM t173;
-a
-TRUNCATE TABLE t82;
-SELECT a FROM t174;
-a
-TRUNCATE TABLE t81;
-SELECT a FROM t175;
-a
-TRUNCATE TABLE t80;
-SELECT a FROM t176;
-a
-TRUNCATE TABLE t79;
-SELECT a FROM t177;
-a
-TRUNCATE TABLE t78;
-SELECT a FROM t178;
-a
-TRUNCATE TABLE t77;
-SELECT a FROM t179;
-a
-TRUNCATE TABLE t76;
-SELECT a FROM t180;
-a
-TRUNCATE TABLE t75;
-SELECT a FROM t181;
-a
-TRUNCATE TABLE t74;
-SELECT a FROM t182;
-a
-TRUNCATE TABLE t73;
-SELECT a FROM t183;
-a
-TRUNCATE TABLE t72;
-SELECT a FROM t184;
-a
-TRUNCATE TABLE t71;
-SELECT a FROM t185;
-a
-TRUNCATE TABLE t70;
-SELECT a FROM t186;
-a
-TRUNCATE TABLE t69;
-SELECT a FROM t187;
-a
-TRUNCATE TABLE t68;
-SELECT a FROM t188;
-a
-TRUNCATE TABLE t67;
-SELECT a FROM t189;
-a
-TRUNCATE TABLE t66;
-SELECT a FROM t190;
-a
-TRUNCATE TABLE t65;
-SELECT a FROM t191;
-a
-TRUNCATE TABLE t64;
-SELECT a FROM t192;
-a
-TRUNCATE TABLE t63;
-SELECT a FROM t193;
-a
-TRUNCATE TABLE t62;
-SELECT a FROM t194;
-a
-TRUNCATE TABLE t61;
-SELECT a FROM t195;
-a
-TRUNCATE TABLE t60;
-SELECT a FROM t196;
-a
-TRUNCATE TABLE t59;
-SELECT a FROM t197;
-a
-TRUNCATE TABLE t58;
-SELECT a FROM t198;
-a
-TRUNCATE TABLE t57;
-SELECT a FROM t199;
-a
-TRUNCATE TABLE t56;
-SELECT a FROM t200;
-a
-TRUNCATE TABLE t55;
-SELECT a FROM t201;
-a
-TRUNCATE TABLE t54;
-SELECT a FROM t202;
-a
-TRUNCATE TABLE t53;
-SELECT a FROM t203;
-a
-TRUNCATE TABLE t52;
-SELECT a FROM t204;
-a
-TRUNCATE TABLE t51;
-SELECT a FROM t205;
-a
-TRUNCATE TABLE t50;
-SELECT a FROM t206;
-a
-TRUNCATE TABLE t49;
-SELECT a FROM t207;
-a
-TRUNCATE TABLE t48;
-SELECT a FROM t208;
-a
-TRUNCATE TABLE t47;
-SELECT a FROM t209;
-a
-TRUNCATE TABLE t46;
-SELECT a FROM t210;
-a
-TRUNCATE TABLE t45;
-SELECT a FROM t211;
-a
-TRUNCATE TABLE t44;
-SELECT a FROM t212;
-a
-TRUNCATE TABLE t43;
-SELECT a FROM t213;
-a
-TRUNCATE TABLE t42;
-SELECT a FROM t214;
-a
-TRUNCATE TABLE t41;
-SELECT a FROM t215;
-a
-TRUNCATE TABLE t40;
-SELECT a FROM t216;
-a
-TRUNCATE TABLE t39;
-SELECT a FROM t217;
-a
-TRUNCATE TABLE t38;
-SELECT a FROM t218;
-a
-TRUNCATE TABLE t37;
-SELECT a FROM t219;
-a
-TRUNCATE TABLE t36;
-SELECT a FROM t220;
-a
-TRUNCATE TABLE t35;
-SELECT a FROM t221;
-a
-TRUNCATE TABLE t34;
-SELECT a FROM t222;
-a
-TRUNCATE TABLE t33;
-SELECT a FROM t223;
-a
-TRUNCATE TABLE t32;
-SELECT a FROM t224;
-a
-TRUNCATE TABLE t31;
-SELECT a FROM t225;
-a
-TRUNCATE TABLE t30;
-SELECT a FROM t226;
-a
-TRUNCATE TABLE t29;
-SELECT a FROM t227;
-a
-TRUNCATE TABLE t28;
-SELECT a FROM t228;
-a
-TRUNCATE TABLE t27;
-SELECT a FROM t229;
-a
-TRUNCATE TABLE t26;
-SELECT a FROM t230;
-a
-TRUNCATE TABLE t25;
-SELECT a FROM t231;
-a
-TRUNCATE TABLE t24;
-SELECT a FROM t232;
-a
-TRUNCATE TABLE t23;
-SELECT a FROM t233;
-a
-TRUNCATE TABLE t22;
-SELECT a FROM t234;
-a
-TRUNCATE TABLE t21;
-SELECT a FROM t235;
-a
-TRUNCATE TABLE t20;
-SELECT a FROM t236;
-a
-TRUNCATE TABLE t19;
-SELECT a FROM t237;
-a
-TRUNCATE TABLE t18;
-SELECT a FROM t238;
-a
-TRUNCATE TABLE t17;
-SELECT a FROM t239;
-a
-TRUNCATE TABLE t16;
-SELECT a FROM t240;
-a
-TRUNCATE TABLE t15;
-SELECT a FROM t241;
-a
-TRUNCATE TABLE t14;
-SELECT a FROM t242;
-a
-TRUNCATE TABLE t13;
-SELECT a FROM t243;
-a
-TRUNCATE TABLE t12;
-SELECT a FROM t244;
-a
-TRUNCATE TABLE t11;
-SELECT a FROM t245;
-a
-TRUNCATE TABLE t10;
-SELECT a FROM t246;
-a
-TRUNCATE TABLE t9;
-SELECT a FROM t247;
-a
-TRUNCATE TABLE t8;
-SELECT a FROM t248;
-a
-TRUNCATE TABLE t7;
-SELECT a FROM t249;
-a
-TRUNCATE TABLE t6;
-SELECT a FROM t250;
-a
-TRUNCATE TABLE t5;
-SELECT a FROM t251;
-a
-TRUNCATE TABLE t4;
-SELECT a FROM t252;
-a
-TRUNCATE TABLE t3;
-SELECT a FROM t253;
-a
-TRUNCATE TABLE t2;
-SELECT a FROM t254;
-a
-TRUNCATE TABLE t1;
-SELECT a FROM t255;
-a
-SELECT a FROM t0;
-a
-DROP TABLE t0;
-DROP TABLE t255;
-DROP TABLE t254;
-DROP TABLE t253;
-DROP TABLE t252;
-DROP TABLE t251;
-DROP TABLE t250;
-DROP TABLE t249;
-DROP TABLE t248;
-DROP TABLE t247;
-DROP TABLE t246;
-DROP TABLE t245;
-DROP TABLE t244;
-DROP TABLE t243;
-DROP TABLE t242;
-DROP TABLE t241;
-DROP TABLE t240;
-DROP TABLE t239;
-DROP TABLE t238;
-DROP TABLE t237;
-DROP TABLE t236;
-DROP TABLE t235;
-DROP TABLE t234;
-DROP TABLE t233;
-DROP TABLE t232;
-DROP TABLE t231;
-DROP TABLE t230;
-DROP TABLE t229;
-DROP TABLE t228;
-DROP TABLE t227;
-DROP TABLE t226;
-DROP TABLE t225;
-DROP TABLE t224;
-DROP TABLE t223;
-DROP TABLE t222;
-DROP TABLE t221;
-DROP TABLE t220;
-DROP TABLE t219;
-DROP TABLE t218;
-DROP TABLE t217;
-DROP TABLE t216;
-DROP TABLE t215;
-DROP TABLE t214;
-DROP TABLE t213;
-DROP TABLE t212;
-DROP TABLE t211;
-DROP TABLE t210;
-DROP TABLE t209;
-DROP TABLE t208;
-DROP TABLE t207;
-DROP TABLE t206;
-DROP TABLE t205;
-DROP TABLE t204;
-DROP TABLE t203;
-DROP TABLE t202;
-DROP TABLE t201;
-DROP TABLE t200;
-DROP TABLE t199;
-DROP TABLE t198;
-DROP TABLE t197;
-DROP TABLE t196;
-DROP TABLE t195;
-DROP TABLE t194;
-DROP TABLE t193;
-DROP TABLE t192;
-DROP TABLE t191;
-DROP TABLE t190;
-DROP TABLE t189;
-DROP TABLE t188;
-DROP TABLE t187;
-DROP TABLE t186;
-DROP TABLE t185;
-DROP TABLE t184;
-DROP TABLE t183;
-DROP TABLE t182;
-DROP TABLE t181;
-DROP TABLE t180;
-DROP TABLE t179;
-DROP TABLE t178;
-DROP TABLE t177;
-DROP TABLE t176;
-DROP TABLE t175;
-DROP TABLE t174;
-DROP TABLE t173;
-DROP TABLE t172;
-DROP TABLE t171;
-DROP TABLE t170;
-DROP TABLE t169;
-DROP TABLE t168;
-DROP TABLE t167;
-DROP TABLE t166;
-DROP TABLE t165;
-DROP TABLE t164;
-DROP TABLE t163;
-DROP TABLE t162;
-DROP TABLE t161;
-DROP TABLE t160;
-DROP TABLE t159;
-DROP TABLE t158;
-DROP TABLE t157;
-DROP TABLE t156;
-DROP TABLE t155;
-DROP TABLE t154;
-DROP TABLE t153;
-DROP TABLE t152;
-DROP TABLE t151;
-DROP TABLE t150;
-DROP TABLE t149;
-DROP TABLE t148;
-DROP TABLE t147;
-DROP TABLE t146;
-DROP TABLE t145;
-DROP TABLE t144;
-DROP TABLE t143;
-DROP TABLE t142;
-DROP TABLE t141;
-DROP TABLE t140;
-DROP TABLE t139;
-DROP TABLE t138;
-DROP TABLE t137;
-DROP TABLE t136;
-DROP TABLE t135;
-DROP TABLE t134;
-DROP TABLE t133;
-DROP TABLE t132;
-DROP TABLE t131;
-DROP TABLE t130;
-DROP TABLE t129;
-DROP TABLE t128;
-DROP TABLE t127;
-DROP TABLE t126;
-DROP TABLE t125;
-DROP TABLE t124;
-DROP TABLE t123;
-DROP TABLE t122;
-DROP TABLE t121;
-DROP TABLE t120;
-DROP TABLE t119;
-DROP TABLE t118;
-DROP TABLE t117;
-DROP TABLE t116;
-DROP TABLE t115;
-DROP TABLE t114;
-DROP TABLE t113;
-DROP TABLE t112;
-DROP TABLE t111;
-DROP TABLE t110;
-DROP TABLE t109;
-DROP TABLE t108;
-DROP TABLE t107;
-DROP TABLE t106;
-DROP TABLE t105;
-DROP TABLE t104;
-DROP TABLE t103;
-DROP TABLE t102;
-DROP TABLE t101;
-DROP TABLE t100;
-DROP TABLE t99;
-DROP TABLE t98;
-DROP TABLE t97;
-DROP TABLE t96;
-DROP TABLE t95;
-DROP TABLE t94;
-DROP TABLE t93;
-DROP TABLE t92;
-DROP TABLE t91;
-DROP TABLE t90;
-DROP TABLE t89;
-DROP TABLE t88;
-DROP TABLE t87;
-DROP TABLE t86;
-DROP TABLE t85;
-DROP TABLE t84;
-DROP TABLE t83;
-DROP TABLE t82;
-DROP TABLE t81;
-DROP TABLE t80;
-DROP TABLE t79;
-DROP TABLE t78;
-DROP TABLE t77;
-DROP TABLE t76;
-DROP TABLE t75;
-DROP TABLE t74;
-DROP TABLE t73;
-DROP TABLE t72;
-DROP TABLE t71;
-DROP TABLE t70;
-DROP TABLE t69;
-DROP TABLE t68;
-DROP TABLE t67;
-DROP TABLE t66;
-DROP TABLE t65;
-DROP TABLE t64;
-DROP TABLE t63;
-DROP TABLE t62;
-DROP TABLE t61;
-DROP TABLE t60;
-DROP TABLE t59;
-DROP TABLE t58;
-DROP TABLE t57;
-DROP TABLE t56;
-DROP TABLE t55;
-DROP TABLE t54;
-DROP TABLE t53;
-DROP TABLE t52;
-DROP TABLE t51;
-DROP TABLE t50;
-DROP TABLE t49;
-DROP TABLE t48;
-DROP TABLE t47;
-DROP TABLE t46;
-DROP TABLE t45;
-DROP TABLE t44;
-DROP TABLE t43;
-DROP TABLE t42;
-DROP TABLE t41;
-DROP TABLE t40;
-DROP TABLE t39;
-DROP TABLE t38;
-DROP TABLE t37;
-DROP TABLE t36;
-DROP TABLE t35;
-DROP TABLE t34;
-DROP TABLE t33;
-DROP TABLE t32;
-DROP TABLE t31;
-DROP TABLE t30;
-DROP TABLE t29;
-DROP TABLE t28;
-DROP TABLE t27;
-DROP TABLE t26;
-DROP TABLE t25;
-DROP TABLE t24;
-DROP TABLE t23;
-DROP TABLE t22;
-DROP TABLE t21;
-DROP TABLE t20;
-DROP TABLE t19;
-DROP TABLE t18;
-DROP TABLE t17;
-DROP TABLE t16;
-DROP TABLE t15;
-DROP TABLE t14;
-DROP TABLE t13;
-DROP TABLE t12;
-DROP TABLE t11;
-DROP TABLE t10;
-DROP TABLE t9;
-DROP TABLE t8;
-DROP TABLE t7;
-DROP TABLE t6;
-DROP TABLE t5;
-DROP TABLE t4;
-DROP TABLE t3;
-DROP TABLE t2;
-DROP TABLE t1;
-SET @@global.query_cache_size = default;
-SET @@global.table_definition_cache = @save_table_definition_cache;
-SET GLOBAL query_cache_type=default;
-End of 5.1 tests
diff --git a/mysql-test/r/query_cache_notembedded.result b/mysql-test/r/query_cache_notembedded.result
deleted file mode 100644
index bfb8f4d1ff7..00000000000
--- a/mysql-test/r/query_cache_notembedded.result
+++ /dev/null
@@ -1,469 +0,0 @@
-set @sql_mode_save=@@global.sql_mode;
-set @query_cache_type_save=@@global.query_cache_type;
-set @query_cache_size_save=@@global.query_cache_size;
-set GLOBAL sql_mode="";
-set LOCAL sql_mode="";
-flush query cache;
-flush query cache;
-reset query cache;
-flush status;
-drop table if exists t1, t2, t3, t11, t21;
-create table t1 (a int not null);
-insert into t1 values (1),(2),(3);
-create table t2 (a int not null);
-insert into t2 values (1),(2),(3);
-select * from t1;
-a
-1
-2
-3
-select * from t2;
-a
-1
-2
-3
-insert into t1 values (4);
-show status like "Qcache_free_blocks";
-Variable_name Value
-Qcache_free_blocks 2
-flush query cache;
-show status like "Qcache_free_blocks";
-Variable_name Value
-Qcache_free_blocks 1
-drop table t1, t2;
-create table t1 (a text not null);
-create table t11 (a text not null);
-create table t2 (a text not null);
-create table t21 (a text not null);
-create table t3 (a text not null);
-insert into t1 values("1111111111111111111111111111111111111111111111111111");
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t11 select * from t1;
-insert into t21 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t3 select * from t1;
-insert into t3 select * from t2;
-insert into t3 select * from t1;
-select * from t11;
-select * from t21;
-show status like "Qcache_total_blocks";
-Variable_name Value
-Qcache_total_blocks 7
-show status like "Qcache_free_blocks";
-Variable_name Value
-Qcache_free_blocks 1
-insert into t11 values("");
-select * from t3;
-show status like "Qcache_total_blocks";
-Variable_name Value
-Qcache_total_blocks 8
-show status like "Qcache_free_blocks";
-Variable_name Value
-Qcache_free_blocks 1
-flush query cache;
-show status like "Qcache_total_blocks";
-Variable_name Value
-Qcache_total_blocks 7
-show status like "Qcache_free_blocks";
-Variable_name Value
-Qcache_free_blocks 1
-drop table t1, t2, t3, t11, t21;
-connect root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root;
-CREATE TABLE t1 ( a INT NOT NULL PRIMARY KEY AUTO_INCREMENT ) ENGINE =
-MyISAM;
-LOCK TABLE t1 READ LOCAL;
-connect root2,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root2;
-INSERT INTO t1 VALUES (), (), ();
-connection root;
-SELECT * FROM t1;
-a
-connection root2;
-SELECT * FROM t1;
-a
-1
-2
-3
-connection root;
-SELECT * FROM t1;
-a
-UNLOCK TABLES;
-drop table t1;
-connection default;
-disconnect root;
-disconnect root2;
-flush query cache;
-reset query cache;
-flush status;
-create table t1 (s1 int)//
-create procedure f1 () begin
-select sql_cache * from t1;
-select sql_cache * from t1;
-select sql_cache * from t1;
-end;//
-create procedure f2 () begin
-select sql_cache * from t1 where s1=1;
-select sql_cache * from t1;
-end;//
-create procedure f3 () begin
-select sql_cache * from t1;
-select sql_cache * from t1 where s1=1;
-end;//
-create procedure f4 () begin
-select sql_cache * from t1;
-select sql_cache * from t1 where s1=1;
-select sql_cache * from t1;
-select sql_cache * from t1 where s1=1;
-select sql_cache * from t1 where s1=1;
-end;//
-call f1();
-s1
-s1
-s1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 3
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 3
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-call f1();
-s1
-s1
-s1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 3
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 3
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 3
-call f1();
-s1
-s1
-s1
-select sql_cache * from t1;
-s1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 4
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 4
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 6
-insert into t1 values (1);
-select sql_cache * from t1;
-s1
-1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 5
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 6
-call f1();
-s1
-1
-s1
-1
-s1
-1
-call f1();
-s1
-1
-s1
-1
-s1
-1
-select sql_cache * from t1;
-s1
-1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 4
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 8
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 10
-flush query cache;
-reset query cache;
-flush status;
-select sql_cache * from t1;
-s1
-1
-select sql_cache * from t1 where s1=1;
-s1
-1
-call f1();
-s1
-1
-s1
-1
-s1
-1
-call f2();
-s1
-1
-s1
-1
-call f3();
-s1
-1
-s1
-1
-call f4();
-s1
-1
-s1
-1
-s1
-1
-s1
-1
-s1
-1
-call f4();
-s1
-1
-s1
-1
-s1
-1
-s1
-1
-s1
-1
-call f3();
-s1
-1
-s1
-1
-call f2();
-s1
-1
-s1
-1
-select sql_cache * from t1 where s1=1;
-s1
-1
-insert into t1 values (2);
-call f1();
-s1
-1
-2
-s1
-1
-2
-s1
-1
-2
-select sql_cache * from t1 where s1=1;
-s1
-1
-select sql_cache * from t1;
-s1
-1
-2
-call f1();
-s1
-1
-2
-s1
-1
-2
-s1
-1
-2
-call f3();
-s1
-1
-2
-s1
-1
-call f3();
-s1
-1
-2
-s1
-1
-call f1();
-s1
-1
-2
-s1
-1
-2
-s1
-1
-2
-drop procedure f1;
-drop procedure f2;
-drop procedure f3;
-drop procedure f4;
-drop table t1;
-connection default;
-SET @old_log_bin_trust_function_creators= @@global.log_bin_trust_function_creators;
-SET GLOBAL log_bin_trust_function_creators = 1;
-reset query cache;
-drop function if exists f1;
-create table t1 (id int);
-create function f1 ()
-returns int
-begin
-declare i_var int;
-set i_var = sleep(3);
-insert into t1 values(3);
-set i_var = sleep(3);
-return 0;
-end;|
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection con1;
-select f1();
-connection con2;
-select sleep(4);
-sleep(4)
-0
-select * from t1;
-id
-3
-connection con1;
-f1()
-0
-connection con2;
-select * from t1;
-id
-3
-reset query cache;
-select * from t1;
-id
-3
-drop table t1;
-drop function f1;
-disconnect con1;
-disconnect con2;
-connection default;
-set GLOBAL query_cache_size=0;
-SET @@global.log_bin_trust_function_creators = @old_log_bin_trust_function_creators;
-DROP DATABASE IF EXISTS bug30269;
-FLUSH STATUS;
-CREATE DATABASE bug30269;
-USE bug30269;
-CREATE TABLE test1 (id int, name varchar(23));
-CREATE VIEW view1 AS SELECT * FROM test1;
-INSERT INTO test1 VALUES (5, 'testit');
-GRANT SELECT (id) ON TABLE bug30269.test1 TO 'bug30269'@'localhost';
-GRANT SELECT ON TABLE bug30269.view1 TO 'bug30269'@'localhost';
-set global query_cache_size= 81920;
-connect bug30269, localhost, bug30269,,;
-connection bug30269;
-USE bug30269;
-show status like 'Qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 0
-# Select statement not stored in query cache because of column privileges.
-SELECT id FROM test1 WHERE id>2;
-id
-5
-show status like 'Qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 0
-SELECT id FROM view1 WHERE id>2;
-id
-5
-show status like 'Qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 1
-connection default;
-USE test;
-DROP DATABASE bug30269;
-disconnect bug30269;
-DROP USER 'bug30269'@'localhost';
-set GLOBAL query_cache_type=ON;
-set LOCAL query_cache_type=ON;
-set GLOBAL query_cache_limit=default;
-set GLOBAL query_cache_min_res_unit=default;
-set GLOBAL query_cache_size=default;
-drop table if exists t1|
-create table t1 (
-id char(16) not null default '',
-data int not null
-)|
-drop procedure if exists bug3583|
-drop procedure if exists bug3583|
-create procedure bug3583()
-begin
-declare c int;
-select * from t1;
-select count(*) into c from t1;
-select c;
-end|
-insert into t1 values ("x", 3), ("y", 5)|
-set @x = @@query_cache_size|
-set global query_cache_size = 10*1024*1024|
-flush status|
-flush query cache|
-show status like 'Qcache_hits'|
-Variable_name Value
-Qcache_hits 0
-call bug3583()|
-id data
-x 3
-y 5
-c
-2
-show status like 'Qcache_hits'|
-Variable_name Value
-Qcache_hits 0
-call bug3583()|
-id data
-x 3
-y 5
-c
-2
-call bug3583()|
-id data
-x 3
-y 5
-c
-2
-show status like 'Qcache_hits'|
-Variable_name Value
-Qcache_hits 2
-set global query_cache_size = @x|
-flush status|
-flush query cache|
-delete from t1|
-drop procedure bug3583|
-drop table t1|
-SET GLOBAL query_cache_size=@query_cache_size_save;
-SET GLOBAL query_cache_type=@query_cache_type_save;
-set GLOBAL sql_mode=@sql_mode_save;
diff --git a/mysql-test/r/query_cache_ps_no_prot.result b/mysql-test/r/query_cache_ps_no_prot.result
deleted file mode 100644
index ef1f92b597d..00000000000
--- a/mysql-test/r/query_cache_ps_no_prot.result
+++ /dev/null
@@ -1,577 +0,0 @@
-set GLOBAL query_cache_type=ON;
-set LOCAL query_cache_type=ON;
-connect con1,localhost,root,,test,$MASTER_MYPORT,;
-connection default;
-set @initial_query_cache_size = @@global.query_cache_size;
-set @@global.query_cache_size=102400;
-flush status;
-drop table if exists t1;
-create table t1(c1 int);
-insert into t1 values(1),(10),(100);
-prepare stmt1 from "select * from t1 where c1=10";
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 0
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 0
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 1
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 2
-prepare stmt2 from "select * from t1 where c1=10";
-execute stmt2;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 3
-execute stmt2;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 4
-execute stmt2;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 5
-connection con1;
-prepare stmt3 from "select * from t1 where c1=10";
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 6
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 7
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 8
-connection default;
-prepare stmt10 from "SELECT * FROM t1 WHERE c1 = 100";
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 8
-execute stmt10;
-c1
-100
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 8
-execute stmt10;
-c1
-100
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 9
-SELECT * FROM t1 WHERE c1 = 100;
-c1
-100
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 10
-connection con1;
-SELECT * FROM t1 WHERE c1 = 100;
-c1
-100
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 11
-connection default;
-prepare stmt11 from "SELECT * FROM t1 WHERE c1 = 1";
-connection con1;
-prepare stmt12 from "SELECT * FROM t1 WHERE c1 = 1";
-connection default;
-SELECT * FROM t1 WHERE c1 = 1;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 11
-SELECT * FROM t1 WHERE c1 = 1;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 12
-execute stmt11;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 13
-connection con1;
-execute stmt12;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 14
-connection default;
-prepare stmt1 from "select * from t1 where c1=?";
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 14
-set @a=1;
-execute stmt1 using @a;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 14
-execute stmt1 using @a;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 15
-connection con1;
-set @a=1;
-prepare stmt4 from "select * from t1 where c1=?";
-execute stmt4 using @a;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 16
-prepare stmt4 from "select @a from t1 where c1=?";
-execute stmt4 using @a;
-@a
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 16
-execute stmt4 using @a;
-@a
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 16
-connection default;
-prepare stmt1 from "select * from t1 where c1=10";
-set global query_cache_size=0;
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 16
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 16
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 16
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 16
-connection con1;
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 16
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 16
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 16
-connection default;
-set global query_cache_size=102400;
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 16
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 17
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 18
-connection con1;
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 20
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-connection default;
-set global query_cache_size=0;
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-connection con1;
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-connection default;
-set global query_cache_size=0;
-prepare stmt1 from "select * from t1 where c1=10";
-connection con1;
-prepare stmt3 from "select * from t1 where c1=10";
-connection default;
-set global query_cache_size=102400;
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-connection con1;
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-connection default;
-set global query_cache_size=0;
-prepare stmt1 from "select * from t1 where c1=?";
-set global query_cache_size=102400;
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-set @a=1;
-execute stmt1 using @a;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-set @a=100;
-execute stmt1 using @a;
-c1
-100
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-set @a=10;
-execute stmt1 using @a;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 21
-drop table t1;
-disconnect con1;
-########################################################################
-#
-# BUG#25843: Changing default database between PREPARE and EXECUTE of
-# statement breaks binlog.
-#
-########################################################################
-
-#
-# Check that default database and its attributes are fixed at the
-# creation time.
-#
-
-DROP DATABASE IF EXISTS mysqltest1;
-DROP DATABASE IF EXISTS mysqltest2;
-
-CREATE DATABASE mysqltest1 COLLATE utf8_unicode_ci;
-CREATE DATABASE mysqltest2 COLLATE utf8_general_ci;
-
-CREATE TABLE mysqltest1.t1(msg VARCHAR(255));
-CREATE TABLE mysqltest2.t1(msg VARCHAR(255));
-
-use mysqltest1;
-PREPARE stmt_a_1 FROM 'INSERT INTO t1 VALUES(DATABASE())';
-PREPARE stmt_a_2 FROM 'INSERT INTO t1 VALUES(@@collation_database)';
-
-EXECUTE stmt_a_1;
-EXECUTE stmt_a_2;
-
-use mysqltest2;
-EXECUTE stmt_a_1;
-EXECUTE stmt_a_2;
-
-SELECT * FROM mysqltest1.t1;
-msg
-mysqltest1
-utf8_unicode_ci
-mysqltest1
-utf8_unicode_ci
-
-SELECT * FROM mysqltest2.t1;
-msg
-
-DROP PREPARE stmt_a_1;
-DROP PREPARE stmt_a_2;
-
-#
-# The Query Cache test case.
-#
-
-DELETE FROM mysqltest1.t1;
-DELETE FROM mysqltest2.t1;
-
-INSERT INTO mysqltest1.t1 VALUES('mysqltest1.t1');
-INSERT INTO mysqltest2.t1 VALUES('mysqltest2.t1');
-
-use mysqltest1;
-PREPARE stmt_b_1 FROM 'SELECT * FROM t1';
-
-use mysqltest2;
-PREPARE stmt_b_2 FROM 'SELECT * FROM t1';
-
-EXECUTE stmt_b_1;
-msg
-mysqltest1.t1
-
-EXECUTE stmt_b_2;
-msg
-mysqltest2.t1
-
-use mysqltest1;
-
-EXECUTE stmt_b_1;
-msg
-mysqltest1.t1
-
-EXECUTE stmt_b_2;
-msg
-mysqltest2.t1
-
-DROP PREPARE stmt_b_1;
-DROP PREPARE stmt_b_2;
-
-use test;
-
-DROP DATABASE mysqltest1;
-DROP DATABASE mysqltest2;
-
-#
-# Check that prepared statements work properly when there is no current
-# database.
-#
-
-CREATE DATABASE mysqltest1 COLLATE utf8_unicode_ci;
-CREATE DATABASE mysqltest2 COLLATE utf8_general_ci;
-
-use mysqltest1;
-
-PREPARE stmt_c_1 FROM 'SELECT DATABASE(), @@collation_database';
-
-use mysqltest2;
-
-PREPARE stmt_c_2 FROM 'SELECT DATABASE(), @@collation_database';
-
-DROP DATABASE mysqltest2;
-
-SELECT DATABASE(), @@collation_database;
-DATABASE() @@collation_database
-NULL latin1_swedish_ci
-
-EXECUTE stmt_c_1;
-DATABASE() @@collation_database
-mysqltest1 utf8_unicode_ci
-
-SELECT DATABASE(), @@collation_database;
-DATABASE() @@collation_database
-NULL latin1_swedish_ci
-
-EXECUTE stmt_c_2;
-DATABASE() @@collation_database
-NULL latin1_swedish_ci
-Warnings:
-Note 1049 Unknown database 'mysqltest2'
-
-SELECT DATABASE(), @@collation_database;
-DATABASE() @@collation_database
-NULL latin1_swedish_ci
-
-PREPARE stmt_c_3 FROM 'SELECT DATABASE(), @@collation_database';
-
-EXECUTE stmt_c_3;
-DATABASE() @@collation_database
-NULL latin1_swedish_ci
-
-use mysqltest1;
-
-EXECUTE stmt_c_2;
-DATABASE() @@collation_database
-NULL latin1_swedish_ci
-Warnings:
-Note 1049 Unknown database 'mysqltest2'
-
-SELECT DATABASE(), @@collation_database;
-DATABASE() @@collation_database
-mysqltest1 utf8_unicode_ci
-
-EXECUTE stmt_c_3;
-DATABASE() @@collation_database
-NULL latin1_swedish_ci
-
-SELECT DATABASE(), @@collation_database;
-DATABASE() @@collation_database
-mysqltest1 utf8_unicode_ci
-
-DROP DATABASE mysqltest1;
-
-use test;
-
-########################################################################
-#
-# Bug#27430 Crash in subquery code when in PS and table DDL changed
-# after PREPARE
-# Check the effect of automatic reprepare on query cache
-#
-########################################################################
-drop table if exists t1;
-create table t1 (a varchar(255));
-insert into t1 (a) values ("Pack my box with five dozen liquor jugs.");
-flush status;
-prepare stmt from "select a from t1";
-execute stmt;
-a
-Pack my box with five dozen liquor jugs.
-set @@global.query_cache_size=0;
-alter table t1 add column b int;
-execute stmt;
-a
-Pack my box with five dozen liquor jugs.
-set @@global.query_cache_size=102400;
-execute stmt;
-a
-Pack my box with five dozen liquor jugs.
-execute stmt;
-a
-Pack my box with five dozen liquor jugs.
-#
-# Sic: ALTER TABLE caused an automatic reprepare
-# of the prepared statement. Since the query cache was disabled
-# at the time of reprepare, the new prepared statement doesn't
-# work with it.
-#
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 0
-show status like 'Qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 0
-# Cleanup
-deallocate prepare stmt;
-drop table t1;
-set @@global.query_cache_size=@initial_query_cache_size;
-flush status;
-set GLOBAL query_cache_type=default;
diff --git a/mysql-test/r/query_cache_ps_ps_prot.result b/mysql-test/r/query_cache_ps_ps_prot.result
deleted file mode 100644
index e3f2da1dbbe..00000000000
--- a/mysql-test/r/query_cache_ps_ps_prot.result
+++ /dev/null
@@ -1,577 +0,0 @@
-set GLOBAL query_cache_type=ON;
-set LOCAL query_cache_type=ON;
-connect con1,localhost,root,,test,$MASTER_MYPORT,;
-connection default;
-set @initial_query_cache_size = @@global.query_cache_size;
-set @@global.query_cache_size=102400;
-flush status;
-drop table if exists t1;
-create table t1(c1 int);
-insert into t1 values(1),(10),(100);
-prepare stmt1 from "select * from t1 where c1=10";
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 0
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 0
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 1
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 2
-prepare stmt2 from "select * from t1 where c1=10";
-execute stmt2;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 3
-execute stmt2;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 4
-execute stmt2;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 5
-connection con1;
-prepare stmt3 from "select * from t1 where c1=10";
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 6
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 7
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 8
-connection default;
-prepare stmt10 from "SELECT * FROM t1 WHERE c1 = 100";
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 8
-execute stmt10;
-c1
-100
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 8
-execute stmt10;
-c1
-100
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 9
-SELECT * FROM t1 WHERE c1 = 100;
-c1
-100
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 9
-connection con1;
-SELECT * FROM t1 WHERE c1 = 100;
-c1
-100
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 10
-connection default;
-prepare stmt11 from "SELECT * FROM t1 WHERE c1 = 1";
-connection con1;
-prepare stmt12 from "SELECT * FROM t1 WHERE c1 = 1";
-connection default;
-SELECT * FROM t1 WHERE c1 = 1;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 10
-SELECT * FROM t1 WHERE c1 = 1;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 11
-execute stmt11;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 11
-connection con1;
-execute stmt12;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 12
-connection default;
-prepare stmt1 from "select * from t1 where c1=?";
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 12
-set @a=1;
-execute stmt1 using @a;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 12
-execute stmt1 using @a;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 13
-connection con1;
-set @a=1;
-prepare stmt4 from "select * from t1 where c1=?";
-execute stmt4 using @a;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 14
-prepare stmt4 from "select @a from t1 where c1=?";
-execute stmt4 using @a;
-@a
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 14
-execute stmt4 using @a;
-@a
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 14
-connection default;
-prepare stmt1 from "select * from t1 where c1=10";
-set global query_cache_size=0;
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 14
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 14
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 14
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 14
-connection con1;
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 14
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 14
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 14
-connection default;
-set global query_cache_size=102400;
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 14
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 15
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 16
-connection con1;
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 17
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 18
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-connection default;
-set global query_cache_size=0;
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-connection con1;
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-connection default;
-set global query_cache_size=0;
-prepare stmt1 from "select * from t1 where c1=10";
-connection con1;
-prepare stmt3 from "select * from t1 where c1=10";
-connection default;
-set global query_cache_size=102400;
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-execute stmt1;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-connection con1;
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-execute stmt3;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-connection default;
-set global query_cache_size=0;
-prepare stmt1 from "select * from t1 where c1=?";
-set global query_cache_size=102400;
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-set @a=1;
-execute stmt1 using @a;
-c1
-1
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-set @a=100;
-execute stmt1 using @a;
-c1
-100
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-set @a=10;
-execute stmt1 using @a;
-c1
-10
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 19
-drop table t1;
-disconnect con1;
-########################################################################
-#
-# BUG#25843: Changing default database between PREPARE and EXECUTE of
-# statement breaks binlog.
-#
-########################################################################
-
-#
-# Check that default database and its attributes are fixed at the
-# creation time.
-#
-
-DROP DATABASE IF EXISTS mysqltest1;
-DROP DATABASE IF EXISTS mysqltest2;
-
-CREATE DATABASE mysqltest1 COLLATE utf8_unicode_ci;
-CREATE DATABASE mysqltest2 COLLATE utf8_general_ci;
-
-CREATE TABLE mysqltest1.t1(msg VARCHAR(255));
-CREATE TABLE mysqltest2.t1(msg VARCHAR(255));
-
-use mysqltest1;
-PREPARE stmt_a_1 FROM 'INSERT INTO t1 VALUES(DATABASE())';
-PREPARE stmt_a_2 FROM 'INSERT INTO t1 VALUES(@@collation_database)';
-
-EXECUTE stmt_a_1;
-EXECUTE stmt_a_2;
-
-use mysqltest2;
-EXECUTE stmt_a_1;
-EXECUTE stmt_a_2;
-
-SELECT * FROM mysqltest1.t1;
-msg
-mysqltest1
-utf8_unicode_ci
-mysqltest1
-utf8_unicode_ci
-
-SELECT * FROM mysqltest2.t1;
-msg
-
-DROP PREPARE stmt_a_1;
-DROP PREPARE stmt_a_2;
-
-#
-# The Query Cache test case.
-#
-
-DELETE FROM mysqltest1.t1;
-DELETE FROM mysqltest2.t1;
-
-INSERT INTO mysqltest1.t1 VALUES('mysqltest1.t1');
-INSERT INTO mysqltest2.t1 VALUES('mysqltest2.t1');
-
-use mysqltest1;
-PREPARE stmt_b_1 FROM 'SELECT * FROM t1';
-
-use mysqltest2;
-PREPARE stmt_b_2 FROM 'SELECT * FROM t1';
-
-EXECUTE stmt_b_1;
-msg
-mysqltest1.t1
-
-EXECUTE stmt_b_2;
-msg
-mysqltest2.t1
-
-use mysqltest1;
-
-EXECUTE stmt_b_1;
-msg
-mysqltest1.t1
-
-EXECUTE stmt_b_2;
-msg
-mysqltest2.t1
-
-DROP PREPARE stmt_b_1;
-DROP PREPARE stmt_b_2;
-
-use test;
-
-DROP DATABASE mysqltest1;
-DROP DATABASE mysqltest2;
-
-#
-# Check that prepared statements work properly when there is no current
-# database.
-#
-
-CREATE DATABASE mysqltest1 COLLATE utf8_unicode_ci;
-CREATE DATABASE mysqltest2 COLLATE utf8_general_ci;
-
-use mysqltest1;
-
-PREPARE stmt_c_1 FROM 'SELECT DATABASE(), @@collation_database';
-
-use mysqltest2;
-
-PREPARE stmt_c_2 FROM 'SELECT DATABASE(), @@collation_database';
-
-DROP DATABASE mysqltest2;
-
-SELECT DATABASE(), @@collation_database;
-DATABASE() @@collation_database
-NULL latin1_swedish_ci
-
-EXECUTE stmt_c_1;
-DATABASE() @@collation_database
-mysqltest1 utf8_unicode_ci
-
-SELECT DATABASE(), @@collation_database;
-DATABASE() @@collation_database
-NULL latin1_swedish_ci
-
-EXECUTE stmt_c_2;
-DATABASE() @@collation_database
-NULL latin1_swedish_ci
-Warnings:
-Note 1049 Unknown database 'mysqltest2'
-
-SELECT DATABASE(), @@collation_database;
-DATABASE() @@collation_database
-NULL latin1_swedish_ci
-
-PREPARE stmt_c_3 FROM 'SELECT DATABASE(), @@collation_database';
-
-EXECUTE stmt_c_3;
-DATABASE() @@collation_database
-NULL latin1_swedish_ci
-
-use mysqltest1;
-
-EXECUTE stmt_c_2;
-DATABASE() @@collation_database
-NULL latin1_swedish_ci
-Warnings:
-Note 1049 Unknown database 'mysqltest2'
-
-SELECT DATABASE(), @@collation_database;
-DATABASE() @@collation_database
-mysqltest1 utf8_unicode_ci
-
-EXECUTE stmt_c_3;
-DATABASE() @@collation_database
-NULL latin1_swedish_ci
-
-SELECT DATABASE(), @@collation_database;
-DATABASE() @@collation_database
-mysqltest1 utf8_unicode_ci
-
-DROP DATABASE mysqltest1;
-
-use test;
-
-########################################################################
-#
-# Bug#27430 Crash in subquery code when in PS and table DDL changed
-# after PREPARE
-# Check the effect of automatic reprepare on query cache
-#
-########################################################################
-drop table if exists t1;
-create table t1 (a varchar(255));
-insert into t1 (a) values ("Pack my box with five dozen liquor jugs.");
-flush status;
-prepare stmt from "select a from t1";
-execute stmt;
-a
-Pack my box with five dozen liquor jugs.
-set @@global.query_cache_size=0;
-alter table t1 add column b int;
-execute stmt;
-a
-Pack my box with five dozen liquor jugs.
-set @@global.query_cache_size=102400;
-execute stmt;
-a
-Pack my box with five dozen liquor jugs.
-execute stmt;
-a
-Pack my box with five dozen liquor jugs.
-#
-# Sic: ALTER TABLE caused an automatic reprepare
-# of the prepared statement. Since the query cache was disabled
-# at the time of reprepare, the new prepared statement doesn't
-# work with it.
-#
-show status like 'Qcache_hits';
-Variable_name Value
-Qcache_hits 0
-show status like 'Qcache_queries_in_cache';
-Variable_name Value
-Qcache_queries_in_cache 0
-# Cleanup
-deallocate prepare stmt;
-drop table t1;
-set @@global.query_cache_size=@initial_query_cache_size;
-flush status;
-set GLOBAL query_cache_type=default;
diff --git a/mysql-test/r/query_cache_with_views.result b/mysql-test/r/query_cache_with_views.result
deleted file mode 100644
index 763113dbac3..00000000000
--- a/mysql-test/r/query_cache_with_views.result
+++ /dev/null
@@ -1,212 +0,0 @@
-drop table if exists t1,t2,v1,v2,v3;
-drop view if exists t1,t2,v1,v2,v3;
-set GLOBAL query_cache_type=ON;
-set LOCAL query_cache_type=ON;
-set GLOBAL query_cache_size=1355776;
-flush status;
-create table t1 (a int, b int);
-create view v1 (c,d) as select sql_no_cache a,b from t1;
-create view v2 (c,d) as select a+rand(),b from t1;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-select * from v1;
-c d
-select * from v2;
-c d
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-select * from v1;
-c d
-select * from v2;
-c d
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-drop view v1,v2;
-set query_cache_type=demand;
-flush status;
-create view v1 (c,d) as select sql_cache a,b from t1;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 0
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-select * from v1;
-c d
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-select * from t1;
-a b
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-select * from v1;
-c d
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-select * from t1;
-a b
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-drop view v1;
-set query_cache_type=default;
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-create view v1 as select a from t1 where a > 1;
-select * from v1;
-a
-2
-3
-alter view v1 as select a from t1 where a > 2;
-select * from v1;
-a
-3
-drop view v1;
-select * from v1;
-ERROR 42S02: Table 'test.v1' doesn't exist
-drop table t1;
-create table t1 (a int, primary key (a), b int);
-create table t2 (a int, primary key (a), b int);
-insert into t2 values (1000, 2000);
-create view v3 (a,b) as select t1.a as a, t2.a as b from t1, t2;
-select * from v3;
-a b
-drop view v3;
-drop table t1, t2;
-create table t1(f1 int);
-insert into t1 values(1),(2),(3);
-create view v1 as select * from t1;
-set query_cache_wlock_invalidate=1;
-lock tables v1 read /*!32311 local */;
-unlock tables;
-set query_cache_wlock_invalidate=default;
-drop view v1;
-drop table t1;
-flush status;
-create table t1 (a int, b int);
-create algorithm=temptable view v1 as select * from t1;
-select * from v1;
-a b
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-select * from v1;
-a b
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-insert into t1 values (1,1);
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 1
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 1
-select * from v1;
-a b
-1 1
-select * from v1;
-a b
-1 1
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 1
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 2
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 2
-drop view v1;
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-show status like "Qcache_inserts";
-Variable_name Value
-Qcache_inserts 2
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 2
-drop table t1;
-#
-# Bug46615 Assertion in Query_cache::invalidate in INSERT in a VIEW of a MERGE table
-#
-CREATE TABLE t1 (c1 INT, c2 INT);
-CREATE TABLE t2 LIKE t1;
-SET AUTOCOMMIT=OFF;
-CREATE VIEW t1_view AS SELECT c1 FROM t1 NATURAL JOIN t2 ;
-INSERT INTO t1_view (c1, c2) SELECT c1, c2 FROM t1;
-ERROR 42S22: Unknown column 'c2' in 'field list'
-DROP TABLE t1;
-DROP TABLE t2;
-DROP VIEW t1_view;
-SET AUTOCOMMIT=DEFAULT;
-set GLOBAL query_cache_size=default;
-set GLOBAL query_cache_type=default;
diff --git a/mysql-test/r/quick_select_4161.result b/mysql-test/r/quick_select_4161.result
deleted file mode 100644
index 30ae0a09edc..00000000000
--- a/mysql-test/r/quick_select_4161.result
+++ /dev/null
@@ -1,37 +0,0 @@
-CREATE TABLE t1 (
-event_date date DEFAULT '0000-00-00' NOT NULL,
-type int(11) DEFAULT '0' NOT NULL,
-event_id int(11) DEFAULT '0' NOT NULL,
-PRIMARY KEY (event_date,type,event_id)
-);
-INSERT INTO t1 VALUES ('1999-07-10',100100,24), ('1999-07-11',100100,25),
-('1999-07-13',100600,0), ('1999-07-13',100600,4), ('1999-07-13',100600,26),
-('1999-07-14',100600,10), ('1999-07-15',100600,16), ('1999-07-15',100800,45),
-('1999-07-15',101000,47), ('1999-07-16',100800,46), ('1999-07-20',100600,5),
-('1999-07-20',100600,27), ('1999-07-21',100600,11), ('1999-07-22',100600,17),
-('1999-07-23',100100,39), ('1999-07-24',100100,39), ('1999-07-24',100500,40),
-('1999-07-25',100100,39), ('1999-07-27',100600,1), ('1999-07-27',100600,6),
-('1999-07-27',100600,28), ('1999-07-28',100600,12), ('1999-07-29',100500,41),
-('1999-07-29',100600,18), ('1999-07-30',100500,41), ('1999-07-31',100500,41),
-('1999-08-01',100700,34), ('1999-08-03',100600,7), ('1999-08-03',100600,29),
-('1999-08-04',100600,13), ('1999-08-05',100500,42), ('1999-08-05',100600,19),
-('1999-08-06',100500,42), ('1999-08-07',100500,42), ('1999-08-08',100500,42),
-('1999-08-10',100600,2), ('1999-08-10',100600,9), ('1999-08-10',100600,30),
-('1999-08-11',100600,14), ('1999-08-12',100600,20), ('1999-08-17',100500,8),
-('1999-08-17',100600,31), ('1999-08-18',100600,15), ('1999-08-19',100600,22),
-('1999-08-24',100600,3), ('1999-08-24',100600,32), ('1999-08-27',100500,43),
-('1999-08-31',100600,33), ('1999-09-17',100100,37), ('1999-09-18',100100,37),
-('1999-09-19',100100,37), ('2000-12-18',100700,38);
-connect killee, localhost, root;
-set debug_sync='inside_make_join_statistics signal killme wait_for done';
-select event_date,type,event_id from t1 WHERE event_date >= "1999-07-01" AND event_date < "1999-07-15" AND (type=100600 OR type=100100) ORDER BY event_date;
-connection default;
-set debug_sync='now wait_for killme';
-kill %connection%;
-set debug_sync='now signal done';
-connection killee;
-Got one of the listed errors
-connection default;
-disconnect killee;
-drop table t1;
-set debug_sync='reset';
diff --git a/mysql-test/r/range.result b/mysql-test/r/range.result
deleted file mode 100644
index e2996b963bc..00000000000
--- a/mysql-test/r/range.result
+++ /dev/null
@@ -1,3009 +0,0 @@
-CREATE TABLE t1 (
-event_date date DEFAULT '0000-00-00' NOT NULL,
-type int(11) DEFAULT '0' NOT NULL,
-event_id int(11) DEFAULT '0' NOT NULL,
-PRIMARY KEY (event_date,type,event_id)
-);
-INSERT INTO t1 VALUES ('1999-07-10',100100,24), ('1999-07-11',100100,25),
-('1999-07-13',100600,0), ('1999-07-13',100600,4), ('1999-07-13',100600,26),
-('1999-07-14',100600,10), ('1999-07-15',100600,16), ('1999-07-15',100800,45),
-('1999-07-15',101000,47), ('1999-07-16',100800,46), ('1999-07-20',100600,5),
-('1999-07-20',100600,27), ('1999-07-21',100600,11), ('1999-07-22',100600,17),
-('1999-07-23',100100,39), ('1999-07-24',100100,39), ('1999-07-24',100500,40),
-('1999-07-25',100100,39), ('1999-07-27',100600,1), ('1999-07-27',100600,6),
-('1999-07-27',100600,28), ('1999-07-28',100600,12), ('1999-07-29',100500,41),
-('1999-07-29',100600,18), ('1999-07-30',100500,41), ('1999-07-31',100500,41),
-('1999-08-01',100700,34), ('1999-08-03',100600,7), ('1999-08-03',100600,29),
-('1999-08-04',100600,13), ('1999-08-05',100500,42), ('1999-08-05',100600,19),
-('1999-08-06',100500,42), ('1999-08-07',100500,42), ('1999-08-08',100500,42),
-('1999-08-10',100600,2), ('1999-08-10',100600,9), ('1999-08-10',100600,30),
-('1999-08-11',100600,14), ('1999-08-12',100600,20), ('1999-08-17',100500,8),
-('1999-08-17',100600,31), ('1999-08-18',100600,15), ('1999-08-19',100600,22),
-('1999-08-24',100600,3), ('1999-08-24',100600,32), ('1999-08-27',100500,43),
-('1999-08-31',100600,33), ('1999-09-17',100100,37), ('1999-09-18',100100,37),
-('1999-09-19',100100,37), ('2000-12-18',100700,38);
-select event_date,type,event_id from t1 WHERE event_date >= "1999-07-01" AND event_date < "1999-07-15" AND (type=100600 OR type=100100) ORDER BY event_date;
-event_date type event_id
-1999-07-10 100100 24
-1999-07-11 100100 25
-1999-07-13 100600 0
-1999-07-13 100600 4
-1999-07-13 100600 26
-1999-07-14 100600 10
-explain select event_date,type,event_id from t1 WHERE type = 100601 and event_date >= "1999-07-01" AND event_date < "1999-07-15" AND (type=100600 OR type=100100) ORDER BY event_date;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-select event_date,type,event_id from t1 WHERE event_date >= "1999-07-01" AND event_date <= "1999-07-15" AND (type=100600 OR type=100100) or event_date >= "1999-07-01" AND event_date <= "1999-07-15" AND type=100099;
-event_date type event_id
-1999-07-10 100100 24
-1999-07-11 100100 25
-1999-07-13 100600 0
-1999-07-13 100600 4
-1999-07-13 100600 26
-1999-07-14 100600 10
-1999-07-15 100600 16
-drop table t1;
-CREATE TABLE t1 (
-PAPER_ID smallint(6) DEFAULT '0' NOT NULL,
-YEAR smallint(6) DEFAULT '0' NOT NULL,
-ISSUE smallint(6) DEFAULT '0' NOT NULL,
-CLOSED tinyint(4) DEFAULT '0' NOT NULL,
-ISS_DATE date DEFAULT '0000-00-00' NOT NULL,
-PRIMARY KEY (PAPER_ID,YEAR,ISSUE)
-);
-INSERT INTO t1 VALUES (3,1999,34,0,'1999-07-12'), (1,1999,111,0,'1999-03-23'),
-(1,1999,222,0,'1999-03-23'), (3,1999,33,0,'1999-07-12'),
-(3,1999,32,0,'1999-07-12'), (3,1999,31,0,'1999-07-12'),
-(3,1999,30,0,'1999-07-12'), (3,1999,29,0,'1999-07-12'),
-(3,1999,28,0,'1999-07-12'), (1,1999,40,1,'1999-05-01'),
-(1,1999,41,1,'1999-05-01'), (1,1999,42,1,'1999-05-01'),
-(1,1999,46,1,'1999-05-01'), (1,1999,47,1,'1999-05-01'),
-(1,1999,48,1,'1999-05-01'), (1,1999,49,1,'1999-05-01'),
-(1,1999,50,0,'1999-05-01'), (1,1999,51,0,'1999-05-01'),
-(1,1999,200,0,'1999-06-28'), (1,1999,52,0,'1999-06-28'),
-(1,1999,53,0,'1999-06-28'), (1,1999,54,0,'1999-06-28'),
-(1,1999,55,0,'1999-06-28'), (1,1999,56,0,'1999-07-01'),
-(1,1999,57,0,'1999-07-01'), (1,1999,58,0,'1999-07-01'),
-(1,1999,59,0,'1999-07-01'), (1,1999,60,0,'1999-07-01'),
-(3,1999,35,0,'1999-07-12');
-select YEAR,ISSUE from t1 where PAPER_ID=3 and (YEAR>1999 or (YEAR=1999 and ISSUE>28)) order by YEAR,ISSUE;
-YEAR ISSUE
-1999 29
-1999 30
-1999 31
-1999 32
-1999 33
-1999 34
-1999 35
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-repair table t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-drop table t1;
-CREATE TABLE t1 (
-id int(11) NOT NULL auto_increment,
-parent_id int(11) DEFAULT '0' NOT NULL,
-level tinyint(4) DEFAULT '0' NOT NULL,
-PRIMARY KEY (id),
-KEY parent_id (parent_id),
-KEY level (level)
-);
-INSERT INTO t1 VALUES (1,0,0), (3,1,1), (4,1,1), (8,2,2), (9,2,2), (17,3,2),
-(22,4,2), (24,4,2), (28,5,2), (29,5,2), (30,5,2), (31,6,2), (32,6,2), (33,6,2),
-(203,7,2), (202,7,2), (20,3,2), (157,0,0), (193,5,2), (40,7,2), (2,1,1),
-(15,2,2), (6,1,1), (34,6,2), (35,6,2), (16,3,2), (7,1,1), (36,7,2), (18,3,2),
-(26,5,2), (27,5,2), (183,4,2), (38,7,2), (25,5,2), (37,7,2), (21,4,2),
-(19,3,2), (5,1,1), (179,5,2);
-SELECT * FROM t1 WHERE level = 1 AND parent_id = 1;
-id parent_id level
-3 1 1
-4 1 1
-2 1 1
-6 1 1
-7 1 1
-5 1 1
-SELECT * FROM t1 WHERE level = 1 AND parent_id = 1 order by id;
-id parent_id level
-2 1 1
-3 1 1
-4 1 1
-5 1 1
-6 1 1
-7 1 1
-drop table t1;
-create table t1(
-Satellite varchar(25) not null,
-SensorMode varchar(25) not null,
-FullImageCornersUpperLeftLongitude double not null,
-FullImageCornersUpperRightLongitude double not null,
-FullImageCornersUpperRightLatitude double not null,
-FullImageCornersLowerRightLatitude double not null,
-index two (Satellite, SensorMode, FullImageCornersUpperLeftLongitude, FullImageCornersUpperRightLongitude, FullImageCornersUpperRightLatitude, FullImageCornersLowerRightLatitude));
-insert into t1 values("OV-3","PAN1",91,-92,40,50);
-insert into t1 values("OV-4","PAN1",91,-92,40,50);
-select * from t1 where t1.Satellite = "OV-3" and t1.SensorMode = "PAN1" and t1.FullImageCornersUpperLeftLongitude > -90.000000 and t1.FullImageCornersUpperRightLongitude < -82.000000;
-Satellite SensorMode FullImageCornersUpperLeftLongitude FullImageCornersUpperRightLongitude FullImageCornersUpperRightLatitude FullImageCornersLowerRightLatitude
-OV-3 PAN1 91 -92 40 50
-drop table t1;
-create table t1 ( aString char(100) not null default "", key aString (aString(10)) );
-insert t1 (aString) values ( "believe in myself" ), ( "believe" ), ("baaa" ), ( "believe in love");
-select * from t1 where aString < "believe in myself" order by aString;
-aString
-baaa
-believe
-believe in love
-select * from t1 where aString > "believe in love" order by aString;
-aString
-believe in myself
-alter table t1 drop key aString;
-select * from t1 where aString < "believe in myself" order by aString;
-aString
-baaa
-believe
-believe in love
-select * from t1 where aString > "believe in love" order by aString;
-aString
-believe in myself
-drop table t1;
-CREATE TABLE t1 (
-t1ID int(10) unsigned NOT NULL auto_increment,
-art binary(1) NOT NULL default '',
-KNR char(5) NOT NULL default '',
-RECHNR char(6) NOT NULL default '',
-POSNR char(2) NOT NULL default '',
-ARTNR char(10) NOT NULL default '',
-TEX char(70) NOT NULL default '',
-PRIMARY KEY (t1ID),
-KEY IdxArt (art),
-KEY IdxKnr (KNR),
-KEY IdxArtnr (ARTNR)
-) ENGINE=MyISAM;
-INSERT INTO t1 (art) VALUES ('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j');
-select count(*) from t1 where upper(art) = 'J';
-count(*)
-213
-select count(*) from t1 where art = 'J' or art = 'j';
-count(*)
-602
-select count(*) from t1 where art = 'j' or art = 'J';
-count(*)
-602
-select count(*) from t1 where art = 'j';
-count(*)
-389
-select count(*) from t1 where art = 'J';
-count(*)
-213
-drop table t1;
-create table t1 (x int, y int, index(x), index(y));
-insert into t1 (x) values (1),(2),(3),(4),(5),(6),(7),(8),(9);
-update t1 set y=x;
-explain select * from t1, t1 t2 where t1.y = 8 and t2.x between 7 and t1.y+0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref y y 5 const 1
-1 SIMPLE t2 range x x 5 NULL 2 Using index condition; Using where; Using join buffer (flat, BNL join)
-explain select * from t1, t1 t2 where t1.y = 8 and t2.x >= 7 and t2.x <= t1.y+0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref y y 5 const 1
-1 SIMPLE t2 range x x 5 NULL 2 Using index condition; Using where; Using join buffer (flat, BNL join)
-explain select * from t1, t1 t2 where t1.y = 2 and t2.x between t1.y-1 and t1.y+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref y y 5 const 1
-1 SIMPLE t2 range x x 5 NULL 3 Using index condition; Using where; Using join buffer (flat, BNL join)
-explain select * from t1, t1 t2 where t1.y = 2 and t2.x >= t1.y-1 and t2.x <= t1.y+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref y y 5 const 1
-1 SIMPLE t2 range x x 5 NULL 3 Using index condition; Using where; Using join buffer (flat, BNL join)
-explain select * from t1, t1 t2 where t1.y = 2 and t2.x between 0 and t1.y;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref y y 5 const 1
-1 SIMPLE t2 range x x 5 NULL 2 Using index condition; Using where; Using join buffer (flat, BNL join)
-explain select * from t1, t1 t2 where t1.y = 2 and t2.x >= 0 and t2.x <= t1.y;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref y y 5 const 1
-1 SIMPLE t2 range x x 5 NULL 2 Using index condition; Using where; Using join buffer (flat, BNL join)
-explain select count(*) from t1 where x in (1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref x x 5 const 1 Using index
-explain select count(*) from t1 where x in (1,2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index x x 5 NULL 9 Using where; Using index
-drop table t1;
-CREATE TABLE t1 (key1 int(11) NOT NULL default '0', KEY i1 (key1));
-INSERT INTO t1 VALUES (0),(0),(0),(0),(0),(1),(1);
-CREATE TABLE t2 (keya int(11) NOT NULL default '0', KEY j1 (keya));
-INSERT INTO t2 VALUES (0),(0),(1),(1),(2),(2);
-explain select * from t1, t2 where (t1.key1 <t2.keya + 1) and t2.keya=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref j1 j1 4 const 1 Using index
-1 SIMPLE t1 index i1 i1 4 NULL 7 Using where; Using index; Using join buffer (flat, BNL join)
-explain select * from t1 force index(i1), t2 force index(j1) where
-(t1.key1 <t2.keya + 1) and t2.keya=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref j1 j1 4 const 1 Using index
-1 SIMPLE t1 index i1 i1 4 NULL 7 Using where; Using index; Using join buffer (flat, BNL join)
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-a int(11) default NULL,
-b int(11) default NULL,
-KEY a (a),
-KEY b (b)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-(1,1),(2,1),(3,1),(4,1),(5,1),(6,1),(7,1),(8,1),(9,1),(10,2),(10,2),
-(13,2),(14,2),(15,2),(16,2),(17,3),(17,3),(16,3),(17,3),(19,3),(20,3),
-(21,4),(22,5),(23,5),(24,5),(25,5),(26,5),(30,5),(31,5),(32,5),(33,5),
-(33,5),(33,5),(33,5),(33,5),(34,5),(35,5);
-EXPLAIN SELECT * FROM t1 WHERE a IN(1,2) AND b=5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a,b a 5 NULL 2 Using index condition; Using where
-SELECT * FROM t1 WHERE a IN(1,2) AND b=5;
-a b
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int, c int, INDEX (c,a,b));
-INSERT INTO t1 VALUES (1,0,0),(1,0,0),(1,0,0);
-INSERT INTO t1 VALUES (0,1,0),(0,1,0),(0,1,0);
-SELECT COUNT(*) FROM t1 WHERE (c=0 and a=1) or (c=0 and b=1);
-COUNT(*)
-6
-SELECT COUNT(*) FROM t1 WHERE (c=0 and b=1) or (c=0 and a=1);
-COUNT(*)
-6
-DROP TABLE t1;
-CREATE TABLE t1 ( a int not null, b int not null, INDEX ab(a,b) );
-INSERT INTO t1 VALUES (47,1), (70,1), (15,1), (15, 4);
-SELECT * FROM t1
-WHERE
-(
-( b =1 AND a BETWEEN 14 AND 21 ) OR
-( b =2 AND a BETWEEN 16 AND 18 ) OR
-( b =3 AND a BETWEEN 15 AND 19 ) OR
-(a BETWEEN 19 AND 47)
-);
-a b
-15 1
-47 1
-DROP TABLE t1;
-CREATE TABLE t1 (
-id int( 11 ) unsigned NOT NULL AUTO_INCREMENT ,
-line int( 5 ) unsigned NOT NULL default '0',
-columnid int( 3 ) unsigned NOT NULL default '0',
-owner int( 3 ) unsigned NOT NULL default '0',
-ordinal int( 3 ) unsigned NOT NULL default '0',
-showid smallint( 6 ) unsigned NOT NULL default '1',
-tableid int( 1 ) unsigned NOT NULL default '1',
-content int( 5 ) unsigned NOT NULL default '188',
-PRIMARY KEY ( owner, id ) ,
-KEY menu( owner, showid, columnid ) ,
-KEY `COLUMN` ( owner, columnid, line ) ,
-KEY `LINES` ( owner, tableid, content, id ) ,
-KEY recount( owner, line )
-) ENGINE = MYISAM;
-INSERT into t1 (owner,id,columnid,line) values (11,15,15,1),(11,13,13,5);
-SELECT id, columnid, tableid, content, showid, line, ordinal FROM t1 WHERE owner=11 AND ((columnid IN ( 15, 13, 14 ) AND line IN ( 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 31 )) OR (columnid IN ( 13, 14 ) AND line IN ( 15 ))) LIMIT 0 , 30;
-id columnid tableid content showid line ordinal
-13 13 1 188 1 5 0
-15 15 1 188 1 1 0
-drop table t1;
-create table t1 (id int(10) primary key);
-insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9);
-select id from t1 where id in (2,5,9) ;
-id
-2
-5
-9
-select id from t1 where id=2 or id=5 or id=9 ;
-id
-2
-5
-9
-drop table t1;
-create table t1 ( id1 int not null, id2 int not null, idnull int null, c char(20), primary key (id1,id2));
-insert into t1 values (0,1,NULL,"aaa"), (1,1,NULL,"aaa"), (2,1,NULL,"aaa"),
-(3,1,NULL,"aaa"), (4,1,NULL,"aaa"), (5,1,NULL,"aaa"),
-(6,1,NULL,"aaa"), (7,1,NULL,"aaa"), (8,1,NULL,"aaa"),
-(9,1,NULL,"aaa"), (10,1,NULL,"aaa"), (11,1,NULL,"aaa"),
-(12,1,NULL,"aaa"), (13,1,NULL,"aaa"), (14,1,NULL,"aaa"),
-(15,1,NULL,"aaa"), (16,1,NULL,"aaa"), (17,1,NULL,"aaa"),
-(18,1,NULL,"aaa"), (19,1,NULL,"aaa"), (20,1,NULL,"aaa");
-select a.id1, b.idnull from t1 as a, t1 as b where a.id2=1 and a.id1=1 and b.id1=a.idnull order by b.id2 desc limit 1;
-id1 idnull
-drop table t1;
-create table t1 (
-id int not null auto_increment,
-name char(1) not null,
-uid int not null,
-primary key (id),
-index uid_index (uid));
-create table t2 (
-id int not null auto_increment,
-name char(1) not null,
-uid int not null,
-primary key (id),
-index uid_index (uid));
-insert into t1(id, uid, name) values(1, 0, ' ');
-insert into t1(uid, name) values(0, ' ');
-insert into t2(uid, name) select uid, name from t1;
-insert into t1(uid, name) select uid, name from t2;
-insert into t2(uid, name) select uid, name from t1;
-insert into t1(uid, name) select uid, name from t2;
-insert into t2(uid, name) select uid, name from t1;
-insert into t1(uid, name) select uid, name from t2;
-insert into t2(uid, name) select uid, name from t1;
-insert into t1(uid, name) select uid, name from t2;
-insert into t2(uid, name) select uid, name from t1;
-insert into t1(uid, name) select uid, name from t2;
-insert into t2(uid, name) select uid, name from t1;
-insert into t2(uid, name) select uid, name from t1;
-insert into t2(uid, name) select uid, name from t1;
-insert into t2(uid, name) select uid, name from t1;
-insert into t1(uid, name) select uid, name from t2;
-delete from t2;
-insert into t2(uid, name) values
-(1, CHAR(64+1)),
-(2, CHAR(64+2)),
-(3, CHAR(64+3)),
-(4, CHAR(64+4)),
-(5, CHAR(64+5)),
-(6, CHAR(64+6)),
-(7, CHAR(64+7)),
-(8, CHAR(64+8)),
-(9, CHAR(64+9)),
-(10, CHAR(64+10)),
-(11, CHAR(64+11)),
-(12, CHAR(64+12)),
-(13, CHAR(64+13)),
-(14, CHAR(64+14)),
-(15, CHAR(64+15)),
-(16, CHAR(64+16)),
-(17, CHAR(64+17)),
-(18, CHAR(64+18)),
-(19, CHAR(64+19)),
-(20, CHAR(64+20)),
-(21, CHAR(64+21)),
-(22, CHAR(64+22)),
-(23, CHAR(64+23)),
-(24, CHAR(64+24)),
-(25, CHAR(64+25)),
-(26, CHAR(64+26));
-insert into t1(uid, name) select uid, name from t2 order by uid;
-delete from t2;
-insert into t2(id, uid, name) select id, uid, name from t1;
-select count(*) from t1;
-count(*)
-1026
-select count(*) from t2;
-count(*)
-1026
-analyze table t1,t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-test.t2 analyze status Table is already up to date
-explain select * from t1, t2 where t1.uid=t2.uid AND t1.uid > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range uid_index uid_index 4 NULL 112 Using index condition
-1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid 38
-explain select * from t1, t2 where t1.uid=t2.uid AND t2.uid > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range uid_index uid_index 4 NULL 112 Using index condition
-1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid 38
-explain select * from t1, t2 where t1.uid=t2.uid AND t1.uid != 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range uid_index uid_index 4 NULL 113 Using index condition
-1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid 38
-explain select * from t1, t2 where t1.uid=t2.uid AND t2.uid != 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range uid_index uid_index 4 NULL 113 Using index condition
-1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid 38
-select * from t1, t2 where t1.uid=t2.uid AND t1.uid > 0;
-id name uid id name uid
-1001 A 1 1001 A 1
-1002 B 2 1002 B 2
-1003 C 3 1003 C 3
-1004 D 4 1004 D 4
-1005 E 5 1005 E 5
-1006 F 6 1006 F 6
-1007 G 7 1007 G 7
-1008 H 8 1008 H 8
-1009 I 9 1009 I 9
-1010 J 10 1010 J 10
-1011 K 11 1011 K 11
-1012 L 12 1012 L 12
-1013 M 13 1013 M 13
-1014 N 14 1014 N 14
-1015 O 15 1015 O 15
-1016 P 16 1016 P 16
-1017 Q 17 1017 Q 17
-1018 R 18 1018 R 18
-1019 S 19 1019 S 19
-1020 T 20 1020 T 20
-1021 U 21 1021 U 21
-1022 V 22 1022 V 22
-1023 W 23 1023 W 23
-1024 X 24 1024 X 24
-1025 Y 25 1025 Y 25
-1026 Z 26 1026 Z 26
-select * from t1, t2 where t1.uid=t2.uid AND t1.uid != 0;
-id name uid id name uid
-1001 A 1 1001 A 1
-1002 B 2 1002 B 2
-1003 C 3 1003 C 3
-1004 D 4 1004 D 4
-1005 E 5 1005 E 5
-1006 F 6 1006 F 6
-1007 G 7 1007 G 7
-1008 H 8 1008 H 8
-1009 I 9 1009 I 9
-1010 J 10 1010 J 10
-1011 K 11 1011 K 11
-1012 L 12 1012 L 12
-1013 M 13 1013 M 13
-1014 N 14 1014 N 14
-1015 O 15 1015 O 15
-1016 P 16 1016 P 16
-1017 Q 17 1017 Q 17
-1018 R 18 1018 R 18
-1019 S 19 1019 S 19
-1020 T 20 1020 T 20
-1021 U 21 1021 U 21
-1022 V 22 1022 V 22
-1023 W 23 1023 W 23
-1024 X 24 1024 X 24
-1025 Y 25 1025 Y 25
-1026 Z 26 1026 Z 26
-drop table t1,t2;
-create table t1 (x bigint unsigned not null);
-insert into t1(x) values (0xfffffffffffffff0);
-insert into t1(x) values (0xfffffffffffffff1);
-select * from t1;
-x
-18446744073709551600
-18446744073709551601
-select count(*) from t1 where x>0;
-count(*)
-2
-select count(*) from t1 where x=0;
-count(*)
-0
-select count(*) from t1 where x<0;
-count(*)
-0
-select count(*) from t1 where x < -16;
-count(*)
-0
-select count(*) from t1 where x = -16;
-count(*)
-0
-select count(*) from t1 where x > -16;
-count(*)
-2
-select count(*) from t1 where x = 18446744073709551601;
-count(*)
-1
-create table t2 (x bigint not null);
-insert into t2(x) values (-16);
-insert into t2(x) values (-15);
-select * from t2;
-x
--16
--15
-select count(*) from t2 where x>0;
-count(*)
-0
-select count(*) from t2 where x=0;
-count(*)
-0
-select count(*) from t2 where x<0;
-count(*)
-2
-select count(*) from t2 where x < -16;
-count(*)
-0
-select count(*) from t2 where x = -16;
-count(*)
-1
-select count(*) from t2 where x > -16;
-count(*)
-1
-select count(*) from t2 where x = 18446744073709551601;
-count(*)
-0
-drop table t1,t2;
-create table t1 (x bigint unsigned not null primary key) engine=innodb;
-insert into t1(x) values (0xfffffffffffffff0);
-insert into t1(x) values (0xfffffffffffffff1);
-select * from t1;
-x
-18446744073709551600
-18446744073709551601
-select count(*) from t1 where x>0;
-count(*)
-2
-select count(*) from t1 where x=0;
-count(*)
-0
-select count(*) from t1 where x<0;
-count(*)
-0
-select count(*) from t1 where x < -16;
-count(*)
-0
-select count(*) from t1 where x = -16;
-count(*)
-0
-select count(*) from t1 where x > -16;
-count(*)
-2
-select count(*) from t1 where x = 18446744073709551601;
-count(*)
-1
-drop table t1;
-create table t1 (a bigint unsigned);
-create index t1i on t1(a);
-insert into t1 select 18446744073709551615;
-insert into t1 select 18446744073709551614;
-explain select * from t1 where a <> -1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index t1i t1i 9 NULL 2 Using where; Using index
-select * from t1 where a <> -1;
-a
-18446744073709551614
-18446744073709551615
-explain select * from t1 where a > -1 or a < -1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index t1i t1i 9 NULL 2 Using where; Using index
-select * from t1 where a > -1 or a < -1;
-a
-18446744073709551614
-18446744073709551615
-explain select * from t1 where a > -1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index t1i t1i 9 NULL 2 Using where; Using index
-select * from t1 where a > -1;
-a
-18446744073709551614
-18446744073709551615
-explain select * from t1 where a < -1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-select * from t1 where a < -1;
-a
-drop table t1;
-set names latin1;
-create table t1 (a char(10), b text, key (a)) character set latin1;
-INSERT INTO t1 (a) VALUES
-('111'),('222'),('222'),('222'),('222'),('444'),('aaa'),('AAA'),('bbb');
-explain select * from t1 where a='aaa';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 11 const 2 Using index condition
-explain select * from t1 where a=binary 'aaa';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 11 const 2 Using index condition
-explain select * from t1 where a='aaa' collate latin1_bin;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 11 const 2 Using index condition
-explain select * from t1 where a='aaa' collate latin1_german1_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a NULL NULL NULL 9 Using where
-drop table t1;
-CREATE TABLE t1 (
-`CLIENT` char(3) character set latin1 collate latin1_bin NOT NULL default '000',
-`ARG1` char(3) character set latin1 collate latin1_bin NOT NULL default '',
-`ARG2` char(3) character set latin1 collate latin1_bin NOT NULL default '',
-`FUNCTION` varchar(10) character set latin1 collate latin1_bin NOT NULL default '',
-`FUNCTINT` int(11) NOT NULL default '0',
-KEY `VERI_CLNT~2` (`ARG1`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES ('000',' 0',' 0','Text 001',0), ('000',' 0',' 1','Text 002',0),
-('000',' 1',' 2','Text 003',0), ('000',' 2',' 3','Text 004',0),
-('001',' 3',' 0','Text 017',0);
-SELECT count(*) FROM t1 WHERE CLIENT='000' AND (ARG1 != ' 1' OR ARG1 != ' 2');
-count(*)
-4
-SELECT count(*) FROM t1 WHERE CLIENT='000' AND (ARG1 != ' 2' OR ARG1 != ' 1');
-count(*)
-4
-drop table t1;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-CREATE TABLE t2 (
-pk1 int(11) NOT NULL,
-pk2 int(11) NOT NULL,
-pk3 int(11) NOT NULL,
-pk4 int(11) NOT NULL,
-filler char(82),
-PRIMARY KEY (pk1,pk2,pk3,pk4)
-) DEFAULT CHARSET=latin1;
-insert into t2 select 1, A.a+10*B.a, 432, 44, 'fillerZ' from t1 A, t1 B;
-INSERT INTO t2 VALUES (2621, 2635, 0, 0,'filler'), (2621, 2635, 1, 0,'filler'),
-(2621, 2635, 10, 0,'filler'), (2621, 2635, 11, 0,'filler'),
-(2621, 2635, 14, 0,'filler'), (2621, 2635, 1000015, 0,'filler');
-SELECT * FROM t2
-WHERE ((((pk4 =0) AND (pk1 =2621) AND (pk2 =2635)))
-OR ((pk4 =1) AND (((pk1 IN ( 7, 2, 1 ))) OR (pk1 =522)) AND ((pk2 IN ( 0, 2635))))
-) AND (pk3 >=1000000);
-pk1 pk2 pk3 pk4 filler
-2621 2635 1000015 0 filler
-drop table t1, t2;
-create table t1(a char(2), key(a(1)));
-insert into t1 values ('x'), ('xx');
-explain select a from t1 where a > 'x';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 2 NULL 2 Using where
-select a from t1 where a > 'x';
-a
-xx
-drop table t1;
-CREATE TABLE t1 (
-OXID varchar(32) COLLATE latin1_german2_ci NOT NULL DEFAULT '',
-OXPARENTID varchar(32) COLLATE latin1_german2_ci NOT NULL DEFAULT 'oxrootid',
-OXLEFT int NOT NULL DEFAULT '0',
-OXRIGHT int NOT NULL DEFAULT '0',
-OXROOTID varchar(32) COLLATE latin1_german2_ci NOT NULL DEFAULT '',
-PRIMARY KEY (OXID),
-KEY OXNID (OXID),
-KEY OXLEFT (OXLEFT),
-KEY OXRIGHT (OXRIGHT),
-KEY OXROOTID (OXROOTID)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci;
-INSERT INTO t1 VALUES
-('d8c4177d09f8b11f5.52725521','oxrootid',1,40,'d8c4177d09f8b11f5.52725521'),
-('d8c4177d151affab2.81582770','d8c4177d09f8b11f5.52725521',2,3,
-'d8c4177d09f8b11f5.52725521'),
-('d8c4177d206a333d2.74422679','d8c4177d09f8b11f5.52725521',4,5,
-'d8c4177d09f8b11f5.52725521'),
-('d8c4177d225791924.30714720','d8c4177d09f8b11f5.52725521',6,7,
-'d8c4177d09f8b11f5.52725521'),
-('d8c4177d2380fc201.39666693','d8c4177d09f8b11f5.52725521',8,9,
-'d8c4177d09f8b11f5.52725521'),
-('d8c4177d24ccef970.14957924','d8c4177d09f8b11f5.52725521',10,11,
-'d8c4177d09f8b11f5.52725521');
-INSERT INTO t1 VALUES
-('d8c4177d09f8b11f5.52725522','oxrootid',1,40,'d8c4177d09f8b11f5.52725522'),
-('d8c4177d151affab2.81582771','d8c4177d09f8b11f5.52725521',2,3,
-'d8c4177d09f8b11f5.52725522'),
-('d8c4177d206a333d2.74422678','d8c4177d09f8b11f5.52725521',4,5,
-'d8c4177d09f8b11f5.52725522'),
-('d8c4177d225791924.30714721','d8c4177d09f8b11f5.52725521',6,7,
-'d8c4177d09f8b11f5.52725522'),
-('d8c4177d2380fc201.39666694','d8c4177d09f8b11f5.52725521',8,9,
-'d8c4177d09f8b11f5.52725522'),
-('d8c4177d24ccef970.14957925','d8c4177d09f8b11f5.52725521',10,11,
-'d8c4177d09f8b11f5.52725522');
-EXPLAIN
-SELECT s.oxid FROM t1 v, t1 s
-WHERE
-v.oxrootid ='d8c4177d09f8b11f5.52725521' AND
-s.oxleft > v.oxleft AND s.oxleft < v.oxright;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE v ref OXLEFT,OXRIGHT,OXROOTID OXROOTID 34 const 5 Using index condition
-1 SIMPLE s ALL OXLEFT NULL NULL NULL 12 Range checked for each record (index map: 0x4)
-SELECT s.oxid FROM t1 v, t1 s
-WHERE
-v.oxrootid ='d8c4177d09f8b11f5.52725521' AND
-s.oxleft > v.oxleft AND s.oxleft < v.oxright;
-oxid
-d8c4177d151affab2.81582770
-d8c4177d206a333d2.74422679
-d8c4177d225791924.30714720
-d8c4177d2380fc201.39666693
-d8c4177d24ccef970.14957924
-d8c4177d151affab2.81582771
-d8c4177d206a333d2.74422678
-d8c4177d225791924.30714721
-d8c4177d2380fc201.39666694
-d8c4177d24ccef970.14957925
-DROP TABLE t1;
-create table t1 (
-c1 char(10), c2 char(10), c3 char(10), c4 char(10),
-c5 char(10), c6 char(10), c7 char(10), c8 char(10),
-c9 char(10), c10 char(10), c11 char(10), c12 char(10),
-c13 char(10), c14 char(10), c15 char(10), c16 char(10),
-index(c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,c13,c14,c15,c16)
-);
-insert into t1 (c1) values ('1'),('1'),('1'),('1');
-select * from t1 where
-c1 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c2 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c3 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c4 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c5 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c6 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c7 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c8 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c9 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c10 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC");
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16
-drop table t1;
-End of 4.1 tests
-CREATE TABLE t1 (
-id int(11) NOT NULL auto_increment,
-status varchar(20),
-PRIMARY KEY (id),
-KEY (status)
-);
-INSERT INTO t1 VALUES
-(1,'B'), (2,'B'), (3,'B'), (4,'B'), (5,'B'), (6,'B'),
-(7,'B'), (8,'B'), (9,'B'), (10,'B'), (11,'B'), (12,'B'),
-(13,'B'), (14,'B'), (15,'B'), (16,'B'), (17,'B'), (18,'B'),
-(19,'B'), (20,'B'), (21,'B'), (22,'B'), (23,'B'), (24,'B'),
-(25,'A'), (26,'A'), (27,'A'), (28,'A'), (29,'A'), (30,'A'),
-(31,'A'), (32,'A'), (33,'A'), (34,'A'), (35,'A'), (36,'A'),
-(37,'A'), (38,'A'), (39,'A'), (40,'A'), (41,'A'), (42,'A'),
-(43,'A'), (44,'A'), (45,'A'), (46,'A'), (47,'A'), (48,'A'),
-(49,'A'), (50,'A'), (51,'A'), (52,'A'), (53,'C'), (54,'C'),
-(55,'C'), (56,'C'), (57,'C'), (58,'C'), (59,'C'), (60,'C');
-EXPLAIN SELECT * FROM t1 WHERE status <> 'A' AND status <> 'B';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range status status 23 NULL 11 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE status NOT IN ('A','B');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range status status 23 NULL 11 Using index condition
-SELECT * FROM t1 WHERE status <> 'A' AND status <> 'B';
-id status
-53 C
-54 C
-55 C
-56 C
-57 C
-58 C
-59 C
-60 C
-SELECT * FROM t1 WHERE status NOT IN ('A','B');
-id status
-53 C
-54 C
-55 C
-56 C
-57 C
-58 C
-59 C
-60 C
-EXPLAIN SELECT status FROM t1 WHERE status <> 'A' AND status <> 'B';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range status status 23 NULL 11 Using where; Using index
-EXPLAIN SELECT status FROM t1 WHERE status NOT IN ('A','B');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range status status 23 NULL 11 Using where; Using index
-EXPLAIN SELECT * FROM t1 WHERE status NOT BETWEEN 'A' AND 'B';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range status status 23 NULL 10 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE status < 'A' OR status > 'B';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range status status 23 NULL 10 Using index condition; Using where
-SELECT * FROM t1 WHERE status NOT BETWEEN 'A' AND 'B';
-id status
-53 C
-54 C
-55 C
-56 C
-57 C
-58 C
-59 C
-60 C
-SELECT * FROM t1 WHERE status < 'A' OR status > 'B';
-id status
-53 C
-54 C
-55 C
-56 C
-57 C
-58 C
-59 C
-60 C
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int, primary key(a,b));
-INSERT INTO t1 VALUES
-(1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1),(3,2),(3,3),(4,1),(4,2),(4,3);
-CREATE VIEW v1 as SELECT a,b FROM t1 WHERE b=3;
-EXPLAIN SELECT a,b FROM t1 WHERE a < 2 and b=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-EXPLAIN SELECT a,b FROM v1 WHERE a < 2 and b=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-EXPLAIN SELECT a,b FROM t1 WHERE a < 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-EXPLAIN SELECT a,b FROM v1 WHERE a < 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-SELECT a,b FROM t1 WHERE a < 2 and b=3;
-a b
-1 3
-SELECT a,b FROM v1 WHERE a < 2 and b=3;
-a b
-1 3
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (name varchar(15) NOT NULL, KEY idx(name));
-INSERT INTO t1 VALUES ('Betty'), ('Anna');
-SELECT * FROM t1;
-name
-Anna
-Betty
-DELETE FROM t1 WHERE name NOT LIKE 'A%a';
-SELECT * FROM t1;
-name
-Anna
-DROP TABLE t1;
-CREATE TABLE t1 (a int, KEY idx(a));
-INSERT INTO t1 VALUES (NULL), (1), (2), (3);
-SELECT * FROM t1;
-a
-NULL
-1
-2
-3
-DELETE FROM t1 WHERE NOT(a <=> 2);
-SELECT * FROM t1;
-a
-2
-DROP TABLE t1;
-create table t1 (a int, b int, primary key(a,b));
-create view v1 as select a, b from t1;
-INSERT INTO `t1` VALUES
-(0,0),(1,0),(2,0),(3,0),(4,0),(5,1),(6,1),(7,1),(8,1),(9,1),(10,2),(11,2),(12,2)
-,(13,2),(14,2),(15,3),(16,3),(17,3),(18,3),(19,3);
-explain select * from t1 where a in (3,4) and b in (1,2,3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 8 NULL # Using where; Using index
-explain select * from v1 where a in (3,4) and b in (1,2,3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 8 NULL # Using where; Using index
-explain select * from t1 where a between 3 and 4 and b between 1 and 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 8 NULL # Using where; Using index
-explain select * from v1 where a between 3 and 4 and b between 1 and 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 8 NULL # Using where; Using index
-drop view v1;
-drop table t1;
-create table t3 (a int);
-insert into t3 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a varchar(10), filler char(200), key(a)) charset=binary;
-insert into t1 values ('a','');
-insert into t1 values ('a ','');
-insert into t1 values ('a ', '');
-insert into t1 select concat('a', 1000 + A.a + 10 * (B.a + 10 * C.a)), ''
- from t3 A, t3 B, t3 C;
-create table t2 (a varchar(10), filler char(200), key(a));
-insert into t2 select * from t1;
-explain select * from t1 where a between 'a' and 'a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 13 NULL # Using index condition
-explain select * from t1 where a = 'a' or a='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 13 NULL # Using index condition; Using where
-explain select * from t2 where a between 'a' and 'a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref a a 13 const # Using index condition
-explain select * from t2 where a = 'a' or a='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref a a 13 const # Using index condition; Using where
-update t1 set a='b' where a<>'a';
-explain select * from t1 where a not between 'b' and 'b';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 13 NULL # Using index condition
-select a, hex(filler) from t1 where a not between 'b' and 'b';
-a hex(filler)
-a 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-drop table t1,t2,t3;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, key(a));
-insert into t2 select 2*(A.a + 10*(B.a + 10*C.a)) from t1 A, t1 B, t1 C;
-set @a="select * from t2 force index (a) where a NOT IN(0";
-select count(*) from (select @a:=concat(@a, ',', a) from t2 ) Z;
-count(*)
-1000
-set @a=concat(@a, ')');
-insert into t2 values (11),(13),(15);
-set @b= concat("explain ", @a);
-prepare stmt1 from @b;
-execute stmt1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index NULL a 5 NULL 1003 Using where; Using index
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL No tables used
-prepare stmt1 from @a;
-execute stmt1;
-a
-11
-13
-15
-drop table t1, t2;
-CREATE TABLE t1 (
-id int NOT NULL DEFAULT '0',
-b int NOT NULL DEFAULT '0',
-c int NOT NULL DEFAULT '0',
-INDEX idx1(b,c), INDEX idx2(c));
-INSERT INTO t1(id) VALUES (1), (2), (3), (4), (5), (6), (7), (8);
-INSERT INTO t1(b,c) VALUES (3,4), (3,4);
-SELECT * FROM t1 WHERE b<=3 AND 3<=c;
-id b c
-0 3 4
-0 3 4
-SELECT * FROM t1 WHERE 3 BETWEEN b AND c;
-id b c
-0 3 4
-0 3 4
-EXPLAIN SELECT * FROM t1 WHERE b<=3 AND 3<=c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx1,idx2 idx2 4 NULL 3 Using index condition; Using where
-EXPLAIN SELECT * FROM t1 WHERE 3 BETWEEN b AND c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx1,idx2 idx2 4 NULL 3 Using where
-SELECT * FROM t1 WHERE 0 < b OR 0 > c;
-id b c
-0 3 4
-0 3 4
-SELECT * FROM t1 WHERE 0 NOT BETWEEN b AND c;
-id b c
-0 3 4
-0 3 4
-EXPLAIN SELECT * FROM t1 WHERE 0 < b OR 0 > c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge idx1,idx2 idx1,idx2 4,4 NULL 4 Using sort_union(idx1,idx2); Using where
-EXPLAIN SELECT * FROM t1 WHERE 0 NOT BETWEEN b AND c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge idx1,idx2 idx1,idx2 4,4 NULL 4 Using sort_union(idx1,idx2); Using where
-DROP TABLE t1;
-CREATE TABLE t1 (
-item char(20) NOT NULL default '',
-started datetime NOT NULL default '0000-00-00 00:00:00',
-price decimal(16,3) NOT NULL default '0.000',
-PRIMARY KEY (item,started)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-('A1','2005-11-01 08:00:00',1000),
-('A1','2005-11-15 00:00:00',2000),
-('A1','2005-12-12 08:00:00',3000),
-('A2','2005-12-01 08:00:00',1000);
-EXPLAIN SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-01 24:00:00';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref PRIMARY PRIMARY 20 const 2 Using index condition
-SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-01 24:00:00';
-item started price
-Warnings:
-Warning 1292 Incorrect datetime value: '2005-12-01 24:00:00'
-SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-02 00:00:00';
-item started price
-A1 2005-11-01 08:00:00 1000.000
-A1 2005-11-15 00:00:00 2000.000
-DROP INDEX `PRIMARY` ON t1;
-EXPLAIN SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-01 24:00:00';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-01 24:00:00';
-item started price
-Warnings:
-Warning 1292 Incorrect datetime value: '2005-12-01 24:00:00'
-SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-02 00:00:00';
-item started price
-A1 2005-11-01 08:00:00 1000.000
-A1 2005-11-15 00:00:00 2000.000
-DROP TABLE t1;
-
-BUG#32198 "Comparison of DATE with DATETIME still not using indexes correctly"
-
-CREATE TABLE t1 (
-id int(11) NOT NULL auto_increment,
-dateval date default NULL,
-PRIMARY KEY (id),
-KEY dateval (dateval)
-) AUTO_INCREMENT=173;
-INSERT INTO t1 VALUES
-(1,'2007-01-01'),(2,'2007-01-02'),(3,'2007-01-03'),(4,'2007-01-04'),
-(5,'2007-01-05'),(6,'2007-01-06'),(7,'2007-01-07'),(8,'2007-01-08'),
-(9,'2007-01-09'),(10,'2007-01-10'),(11,'2007-01-11');
-This must use range access:
-explain select * from t1 where dateval >= '2007-01-01 00:00:00' and dateval <= '2007-01-02 23:59:59';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range dateval dateval 4 NULL 2 Using index condition
-drop table t1;
-CREATE TABLE t1 (
-a varchar(32), index (a)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_bin;
-INSERT INTO t1 VALUES
-('B'), ('A'), ('A'), ('C'), ('B'), ('A'), ('A');
-SELECT a FROM t1 WHERE a='b' OR a='B';
-a
-B
-B
-EXPLAIN SELECT a FROM t1 WHERE a='b' OR a='B';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 35 NULL 3 Using where; Using index
-DROP TABLE t1;
-CREATE TABLE t1 (f1 TINYINT(11) UNSIGNED NOT NULL, PRIMARY KEY (f1));
-INSERT INTO t1 VALUES (127),(254),(0),(1),(255);
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 < 256;
-COUNT(*)
-5
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 < 256.0;
-COUNT(*)
-5
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 < 255;
-COUNT(*)
-4
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 < -1;
-COUNT(*)
-0
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 > -1;
-COUNT(*)
-5
-DROP TABLE t1;
-CREATE TABLE t1 ( f1 TINYINT(11) NOT NULL, PRIMARY KEY (f1));
-INSERT INTO t1 VALUES (127),(126),(0),(-128),(-127);
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 < 128;
-COUNT(*)
-5
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 < 128.0;
-COUNT(*)
-5
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 < 127;
-COUNT(*)
-4
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 > -129;
-COUNT(*)
-5
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 > -129.0;
-COUNT(*)
-5
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 > -128;
-COUNT(*)
-4
-DROP TABLE t1;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, filler char(100));
-insert into t2 select A.a + 10 * (B.a + 10 * C.a), 10, 'filler' from t1 A,
-t1 B, t1 C where A.a < 5;
-insert into t2 select 1000, b, 'filler' from t2;
-alter table t2 add index (a,b);
-select 'In following EXPLAIN the access method should be ref, #rows~=500 (and not 2)' Z;
-Z
-In following EXPLAIN the access method should be ref, #rows~=500 (and not 2)
-explain select * from t2 where a=1000 and b<11;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref a a 5 const 502 Using index condition
-drop table t1, t2;
-CREATE TABLE t1( a INT, b INT, KEY( a, b ) );
-CREATE TABLE t2( a INT, b INT, KEY( a, b ) );
-CREATE TABLE t3( a INT, b INT, KEY( a, b ) );
-INSERT INTO t1( a, b )
-VALUES (0, 1), (1, 2), (1, 4), (2, 3), (5, 0), (9, 7);
-INSERT INTO t2( a, b )
-VALUES ( 1, 1), ( 2, 1), ( 3, 1), ( 4, 1), ( 5, 1),
-( 6, 1), ( 7, 1), ( 8, 1), ( 9, 1), (10, 1),
-(11, 1), (12, 1), (13, 1), (14, 1), (15, 1),
-(16, 1), (17, 1), (18, 1), (19, 1), (20, 1);
-INSERT INTO t2 SELECT a, 2 FROM t2 WHERE b = 1;
-INSERT INTO t2 SELECT a, 3 FROM t2 WHERE b = 1;
-INSERT INTO t2 SELECT -1, -1 FROM t2;
-INSERT INTO t2 SELECT -1, -1 FROM t2;
-INSERT INTO t2 SELECT -1, -1 FROM t2;
-INSERT INTO t3
-VALUES (1, 0), (2, 0), (3, 0), (4, 0), (5, 0),
-(6, 0), (7, 0), (8, 0), (9, 0), (10, 0);
-INSERT INTO t3 SELECT * FROM t3 WHERE a = 10;
-INSERT INTO t3 SELECT * FROM t3 WHERE a = 10;
-SELECT * FROM t1 WHERE
-3 <= a AND a < 5 OR
-5 < a AND b = 3 OR
-3 <= a;
-a b
-5 0
-9 7
-EXPLAIN
-SELECT * FROM t1 WHERE
-3 <= a AND a < 5 OR
-5 < a AND b = 3 OR
-3 <= a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE
-3 <= a AND a < 5 OR
-5 <= a AND b = 3 OR
-3 <= a;
-a b
-5 0
-9 7
-EXPLAIN
-SELECT * FROM t1 WHERE
-3 <= a AND a < 5 OR
-5 <= a AND b = 3 OR
-3 <= a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 4 Using where; Using index
-SELECT * FROM t1 WHERE
-3 <= a AND a <= 5 OR
-5 <= a AND b = 3 OR
-3 <= a;
-a b
-5 0
-9 7
-EXPLAIN
-SELECT * FROM t1 WHERE
-3 <= a AND a <= 5 OR
-5 <= a AND b = 3 OR
-3 <= a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE
-3 <= a AND a <= 5 OR
-3 <= a;
-a b
-5 0
-9 7
-EXPLAIN
-SELECT * FROM t1 WHERE
-3 <= a AND a <= 5 OR
-3 <= a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 3 Using where; Using index
-SELECT * FROM t2 WHERE
-5 <= a AND a < 10 AND b = 1 OR
-15 <= a AND a < 20 AND b = 3
-OR
-1 <= a AND b = 1;
-a b
-1 1
-2 1
-3 1
-4 1
-5 1
-6 1
-7 1
-8 1
-9 1
-10 1
-11 1
-12 1
-13 1
-14 1
-15 1
-15 3
-16 1
-16 3
-17 1
-17 3
-18 1
-18 3
-19 1
-19 3
-20 1
-EXPLAIN
-SELECT * FROM t2 WHERE
-5 <= a AND a < 10 AND b = 1 OR
-15 <= a AND a < 20 AND b = 3
-OR
-1 <= a AND b = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 10 NULL 50 Using where; Using index
-SELECT * FROM t2 WHERE
-5 <= a AND a < 10 AND b = 2 OR
-15 <= a AND a < 20 AND b = 3
-OR
-1 <= a AND b = 1;
-a b
-1 1
-2 1
-3 1
-4 1
-5 1
-5 2
-6 1
-6 2
-7 1
-7 2
-8 1
-8 2
-9 1
-9 2
-10 1
-11 1
-12 1
-13 1
-14 1
-15 1
-15 3
-16 1
-16 3
-17 1
-17 3
-18 1
-18 3
-19 1
-19 3
-20 1
-EXPLAIN
-SELECT * FROM t2 WHERE
-5 <= a AND a < 10 AND b = 2 OR
-15 <= a AND a < 20 AND b = 3
-OR
-1 <= a AND b = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 10 NULL 50 Using where; Using index
-SELECT * FROM t3 WHERE
-5 <= a AND a < 10 AND b = 3 OR
-a < 5 OR
-a < 10;
-a b
-1 0
-2 0
-3 0
-4 0
-5 0
-6 0
-7 0
-8 0
-9 0
-EXPLAIN
-SELECT * FROM t3 WHERE
-5 <= a AND a < 10 AND b = 3 OR
-a < 5 OR
-a < 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 range a a 5 NULL 8 Using where; Using index
-DROP TABLE t1, t2, t3;
-#
-# Bug #47123: Endless 100% CPU loop with STRAIGHT_JOIN
-#
-CREATE TABLE t1(a INT, KEY(a));
-INSERT INTO t1 VALUES (1), (NULL);
-SELECT * FROM t1 WHERE a <> NULL and (a <> NULL or a <= NULL);
-a
-DROP TABLE t1;
-#
-# Bug#47925: regression of range optimizer and date comparison in 5.1.39!
-#
-CREATE TABLE t1 ( a DATE, KEY ( a ) );
-CREATE TABLE t2 ( a DATETIME, KEY ( a ) );
-# Make optimizer choose range scan
-INSERT INTO t1 VALUES ('2009-09-22'), ('2009-09-22'), ('2009-09-22');
-INSERT INTO t1 VALUES ('2009-09-23'), ('2009-09-23'), ('2009-09-23');
-INSERT INTO t2 VALUES ('2009-09-22 12:00:00'), ('2009-09-22 12:00:00'),
-('2009-09-22 12:00:00');
-INSERT INTO t2 VALUES ('2009-09-23 12:00:00'), ('2009-09-23 12:00:00'),
-('2009-09-23 12:00:00');
-# DATE vs DATE
-EXPLAIN
-SELECT * FROM t1 WHERE a >= '2009/09/23';
-id select_type table type possible_keys key key_len ref rows Extra
-X X X range a a X X X X
-SELECT * FROM t1 WHERE a >= '2009/09/23';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '20090923';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= 20090923;
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '2009-9-23';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '2009.09.23';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '2009:09:23';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-# DATE vs DATETIME
-EXPLAIN
-SELECT * FROM t2 WHERE a >= '2009/09/23';
-id select_type table type possible_keys key key_len ref rows Extra
-X X X range a a X X X X
-SELECT * FROM t2 WHERE a >= '2009/09/23';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '2009/09/23';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '20090923';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= 20090923;
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '2009-9-23';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '2009.09.23';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '2009:09:23';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-# DATETIME vs DATETIME
-EXPLAIN
-SELECT * FROM t2 WHERE a >= '2009/09/23 12:00:00';
-id select_type table type possible_keys key key_len ref rows Extra
-X X X range a a X X X X
-SELECT * FROM t2 WHERE a >= '2009/09/23 12:00:00';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '20090923120000';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= 20090923120000;
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '2009-9-23 12:00:00';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '2009.09.23 12:00:00';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '2009:09:23 12:00:00';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-# DATETIME vs DATE
-EXPLAIN
-SELECT * FROM t1 WHERE a >= '2009/09/23 00:00:00';
-id select_type table type possible_keys key key_len ref rows Extra
-X X X range a a X X X X
-SELECT * FROM t1 WHERE a >= '2009/09/23 00:00:00';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '2009/09/23 00:00:00';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '20090923000000';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= 20090923000000;
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '2009-9-23 00:00:00';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '2009.09.23 00:00:00';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '2009:09:23 00:00:00';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-# Test of the new get_date_from_str implementation
-# Behavior differs slightly between the trunk and mysql-pe.
-# The former may give errors for the truncated values, while the latter
-# gives warnings. The purpose of this test is not to interfere, and only
-# preserve existing behavior.
-SELECT str_to_date('2007-10-00', '%Y-%m-%d') >= '' AND
-str_to_date('2007-10-00', '%Y-%m-%d') <= '2007/10/20';
-str_to_date('2007-10-00', '%Y-%m-%d') >= '' AND
-str_to_date('2007-10-00', '%Y-%m-%d') <= '2007/10/20'
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT str_to_date('2007-20-00', '%Y-%m-%d') >= '2007/10/20' AND
-str_to_date('2007-20-00', '%Y-%m-%d') <= '';
-str_to_date('2007-20-00', '%Y-%m-%d') >= '2007/10/20' AND
-str_to_date('2007-20-00', '%Y-%m-%d') <= ''
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2007-20-00' for function str_to_date
-Warning 1411 Incorrect datetime value: '2007-20-00' for function str_to_date
-Warning 1411 Incorrect datetime value: '2007-20-00' for function str_to_date
-Warning 1411 Incorrect datetime value: '2007-20-00' for function str_to_date
-SELECT str_to_date('2007-10-00', '%Y-%m-%d') BETWEEN '' AND '2007/10/20';
-str_to_date('2007-10-00', '%Y-%m-%d') BETWEEN '' AND '2007/10/20'
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT str_to_date('2007-20-00', '%Y-%m-%d') BETWEEN '2007/10/20' AND '';
-str_to_date('2007-20-00', '%Y-%m-%d') BETWEEN '2007/10/20' AND ''
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2007-20-00' for function str_to_date
-SELECT str_to_date('', '%Y-%m-%d');
-str_to_date('', '%Y-%m-%d')
-0000-00-00
-DROP TABLE t1, t2;
-#
-# Bug#48459: valgrind errors with query using 'Range checked for each
-# record'
-#
-CREATE TABLE t1 (
-a INT,
-b CHAR(2),
-c INT,
-d INT,
-KEY ( c ),
-KEY ( d, a, b ( 2 ) ),
-KEY ( b ( 1 ) )
-);
-INSERT INTO t1 VALUES ( NULL, 'a', 1, 2 ), ( NULL, 'a', 1, 2 ),
-( 1, 'a', 1, 2 ), ( 1, 'a', 1, 2 );
-CREATE TABLE t2 (
-a INT,
-c INT,
-e INT,
-KEY ( e )
-);
-INSERT INTO t2 VALUES ( 1, 1, NULL ), ( 1, 1, NULL );
-# Should not give Valgrind warnings
-SELECT 1
-FROM t1, t2
-WHERE t1.d <> '1' AND t1.b > '1'
-AND t1.a = t2.a AND t1.c = t2.c;
-1
-1
-1
-1
-1
-DROP TABLE t1, t2;
-#
-# Bug #48665: sql-bench's insert test fails due to wrong result
-#
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY (a));
-INSERT INTO t1 VALUES (0,0), (1,1);
-EXPLAIN
-SELECT * FROM t1 FORCE INDEX (PRIMARY)
-WHERE (a>=1 AND a<=2) OR (a>=4 AND a<=5) OR (a>=0 AND a <=10);
-id select_type table type possible_keys key key_len ref rows Extra
-@ @ @ range @ @ @ @ @ @
-# Should return 2 rows
-SELECT * FROM t1 FORCE INDEX (PRIMARY)
-WHERE (a>=1 AND a<=2) OR (a>=4 AND a<=5) OR (a>=0 AND a <=10);
-a b
-0 0
-1 1
-DROP TABLE t1;
-#
-# Bug #54802: 'NOT BETWEEN' evaluation is incorrect
-#
-CREATE TABLE t1 (c_key INT, c_notkey INT, KEY(c_key));
-INSERT INTO t1 VALUES (1, 1), (2, 2), (3, 3);
-EXPLAIN SELECT * FROM t1 WHERE 2 NOT BETWEEN c_notkey AND c_key;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL c_key NULL NULL NULL 3 Using where
-SELECT * FROM t1 WHERE 2 NOT BETWEEN c_notkey AND c_key;
-c_key c_notkey
-1 1
-3 3
-DROP TABLE t1;
-#
-# Bug #57030: 'BETWEEN' evaluation is incorrect
-#
-CREATE TABLE t1(pk INT PRIMARY KEY, i4 INT);
-CREATE UNIQUE INDEX i4_uq ON t1(i4);
-INSERT INTO t1 VALUES (1,10), (2,20), (3,30);
-EXPLAIN
-SELECT * FROM t1 WHERE i4 BETWEEN 10 AND 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const i4_uq i4_uq 5 const 1
-SELECT * FROM t1 WHERE i4 BETWEEN 10 AND 10;
-pk i4
-1 10
-EXPLAIN
-SELECT * FROM t1 WHERE 10 BETWEEN i4 AND i4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const i4_uq i4_uq 5 const 1
-SELECT * FROM t1 WHERE 10 BETWEEN i4 AND i4;
-pk i4
-1 10
-EXPLAIN
-SELECT * FROM t1 WHERE 10 BETWEEN 10 AND i4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range i4_uq i4_uq 5 NULL 3 Using index condition
-SELECT * FROM t1 WHERE 10 BETWEEN 10 AND i4;
-pk i4
-1 10
-2 20
-3 30
-EXPLAIN
-SELECT * FROM t1 WHERE 10 BETWEEN i4 AND 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range i4_uq i4_uq 5 NULL 1 Using index condition
-SELECT * FROM t1 WHERE 10 BETWEEN i4 AND 10;
-pk i4
-1 10
-EXPLAIN
-SELECT * FROM t1 WHERE 10 BETWEEN 10 AND 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-SELECT * FROM t1 WHERE 10 BETWEEN 10 AND 10;
-pk i4
-1 10
-2 20
-3 30
-EXPLAIN
-SELECT * FROM t1 WHERE 10 BETWEEN 11 AND 11;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-SELECT * FROM t1 WHERE 10 BETWEEN 11 AND 11;
-pk i4
-EXPLAIN
-SELECT * FROM t1 WHERE 10 BETWEEN 100 AND 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-SELECT * FROM t1 WHERE 10 BETWEEN 100 AND 0;
-pk i4
-EXPLAIN
-SELECT * FROM t1 WHERE i4 BETWEEN 100 AND 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT * FROM t1 WHERE i4 BETWEEN 100 AND 0;
-pk i4
-EXPLAIN
-SELECT * FROM t1 WHERE i4 BETWEEN 10 AND 99999999999999999;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range i4_uq i4_uq 5 NULL 2 Using index condition
-SELECT * FROM t1 WHERE i4 BETWEEN 10 AND 99999999999999999;
-pk i4
-1 10
-2 20
-3 30
-EXPLAIN
-SELECT * FROM t1 WHERE i4 BETWEEN 999999999999999 AND 30;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT * FROM t1 WHERE i4 BETWEEN 999999999999999 AND 30;
-pk i4
-EXPLAIN
-SELECT * FROM t1 WHERE i4 BETWEEN 10 AND '20';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range i4_uq i4_uq 5 NULL 1 Using index condition
-SELECT * FROM t1 WHERE i4 BETWEEN 10 AND '20';
-pk i4
-1 10
-2 20
-EXPLAIN
-SELECT * FROM t1, t1 as t2 WHERE t2.pk BETWEEN t1.i4 AND t1.i4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL i4_uq NULL NULL NULL 3
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.i4 1 Using index condition
-SELECT * FROM t1, t1 as t2 WHERE t2.pk BETWEEN t1.i4 AND t1.i4;
-pk i4 pk i4
-EXPLAIN
-SELECT * FROM t1, t1 as t2 WHERE t1.i4 BETWEEN t2.pk AND t2.pk;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL i4_uq NULL NULL NULL 3
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.i4 1 Using index condition
-SELECT * FROM t1, t1 as t2 WHERE t1.i4 BETWEEN t2.pk AND t2.pk;
-pk i4 pk i4
-DROP TABLE t1;
-#
-# BUG#13519696 - 62940: SELECT RESULTS VARY WITH VERSION AND
-# WITH/WITHOUT INDEX RANGE SCAN
-#
-create table t1 (id int unsigned not null auto_increment primary key);
-insert into t1 values (null);
-insert into t1 select null from t1;
-insert into t1 select null from t1;
-insert into t1 select null from t1;
-insert into t1 select null from t1;
-insert into t1 select null from t1;
-insert into t1 select null from t1;
-insert into t1 select null from t1;
-insert into t1 select null from t1;
-create table t2 (
-id int unsigned not null auto_increment,
-val decimal(5,3) not null,
-primary key (id,val),
-unique key (val,id),
-unique key (id));
-insert into t2 select null,id*0.0009 from t1;
-select count(val) from t2 ignore index (val) where val > 0.1155;
-count(val)
-128
-select count(val) from t2 force index (val) where val > 0.1155;
-count(val)
-128
-drop table t2, t1;
-#
-# BUG#13453382 - REGRESSION SINCE 5.1.39, RANGE OPTIMIZER WRONG
-# RESULTS WITH DECIMAL CONVERSION
-#
-create table t1 (a int,b int,c int,primary key (a,c));
-insert into t1 values (1,1,2),(1,1,3),(1,1,4);
-select convert(3, signed integer) > 2.9;
-convert(3, signed integer) > 2.9
-1
-select * from t1 force index (primary) where a=1 and c>= 2.9;
-a b c
-1 1 3
-1 1 4
-select * from t1 ignore index (primary) where a=1 and c>= 2.9;
-a b c
-1 1 3
-1 1 4
-select * from t1 force index (primary) where a=1 and c> 2.9;
-a b c
-1 1 3
-1 1 4
-select * from t1 ignore index (primary) where a=1 and c> 2.9;
-a b c
-1 1 3
-1 1 4
-drop table t1;
-#
-# BUG#13463488 - 63437: CHAR & BETWEEN WITH INDEX RETURNS WRONG
-# RESULT AFTER MYSQL 5.1.
-#
-CREATE TABLE t1(
-F1 CHAR(5) NOT NULL,
-F2 CHAR(5) NOT NULL,
-F3 CHAR(5) NOT NULL,
-PRIMARY KEY(F1),
-INDEX IDX_F2(F2)
-);
-INSERT INTO t1 VALUES
-('A','A','A'),('AA','AA','AA'),('AAA','AAA','AAA'),
-('AAAA','AAAA','AAAA'),('AAAAA','AAAAA','AAAAA');
-SELECT * FROM t1 WHERE F1 = 'A ';
-F1 F2 F3
-A A A
-SELECT * FROM t1 IGNORE INDEX(PRIMARY) WHERE F1 = 'A ';
-F1 F2 F3
-A A A
-SELECT * FROM t1 WHERE F1 >= 'A ';
-F1 F2 F3
-A A A
-AA AA AA
-AAA AAA AAA
-AAAA AAAA AAAA
-AAAAA AAAAA AAAAA
-SELECT * FROM t1 WHERE F1 > 'A ';
-F1 F2 F3
-AA AA AA
-AAA AAA AAA
-AAAA AAAA AAAA
-AAAAA AAAAA AAAAA
-SELECT * FROM t1 WHERE F1 BETWEEN 'A ' AND 'AAAAA';
-F1 F2 F3
-A A A
-AA AA AA
-AAA AAA AAA
-AAAA AAAA AAAA
-AAAAA AAAAA AAAAA
-SELECT * FROM t1 WHERE F2 BETWEEN 'A ' AND 'AAAAA';
-F1 F2 F3
-A A A
-AA AA AA
-AAA AAA AAA
-AAAA AAAA AAAA
-AAAAA AAAAA AAAAA
-SELECT * FROM t1 WHERE F3 BETWEEN 'A ' AND 'AAAAA';
-F1 F2 F3
-A A A
-AA AA AA
-AAA AAA AAA
-AAAA AAAA AAAA
-AAAAA AAAAA AAAAA
-SELECT * FROM t1 IGNORE INDEX(PRIMARY) WHERE F1 BETWEEN 'A ' AND
-'AAAAA';
-F1 F2 F3
-A A A
-AA AA AA
-AAA AAA AAA
-AAAA AAAA AAAA
-AAAAA AAAAA AAAAA
-DROP TABLE t1;
-#
-# mdev-4894: Poor performance with unnecessary
-# (bug#70021) 'Range checked for each record'
-#
-create table t1( key1 int not null, INDEX i1(key1) );
-insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8);
-insert into t1 select key1+8 from t1;
-insert into t1 select key1+16 from t1;
-insert into t1 select key1+32 from t1;
-insert into t1 select key1+64 from t1;
-insert into t1 select key1+128 from t1;
-insert into t1 select key1+256 from t1;
-insert into t1 select key1+512 from t1;
-alter table t1 add key2 int not null, add index i2(key2);
-update t1 set key2=key1;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-create table t2 (a int);
-insert into t2 values (1),(2),(3),(4),(5),(6),(7),(8);
-insert into t2 select a+16 from t2;
-insert into t2 select a+32 from t2;
-insert into t2 select a+64 from t2;
-explain
-select count(*) from t2 left join t1 on (t1.key1 < 3 or t1.key1 > 1020) and t1.key2 < 1000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 64
-1 SIMPLE t1 range i1,i2 i1 4 NULL 78 Using where; Using join buffer (flat, BNL join)
-select count(*) from t2 left join t1 on (t1.key1 < 3 or t1.key1 > 1020) and t1.key2 < 1000;
-count(*)
-128
-explain
-select count(*) from t2 left join t1 on (t1.key1 < 3 or t1.key1 > 1020) and t1.key2 < t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 64
-1 SIMPLE t1 range i1,i2 i1 4 NULL 78 Using where; Using join buffer (flat, BNL join)
-select count(*) from t2 left join t1 on (t1.key1 < 3 or t1.key1 > 1020) and t1.key2 < t2.a;
-count(*)
-126
-drop table t1,t2;
-End of 5.1 tests
-#
-# LP Bug #533117: Wrong use_count in SEL_ARG trees
-# (Bug #58731)
-#
-create table t1 (a int, b int, c int, key idx (a,b,c));
-insert into t1 values (0,0,0), (2,2,0), (1,1,1), (2,2,1);
-explain
-select * from t1 force index (idx) where a >=1 and c <= 1 and a=b and b > 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 5 NULL 3 Using where; Using index
-select * from t1 force index (idx) where a >=1 and c <= 1 and a=b and b > 1;
-a b c
-2 2 0
-2 2 1
-drop table t1;
-create table t1 (f1 datetime, key (f1));
-insert into t1 values ('2000-03-09 15:56:59'),('2000-05-05 23:24:28'),('2000-06-13 13:12:06');
-select min(f1) from t1 where f1 >= '2006-05-25 07:00:20' and f1 between '2003-11-23 10:00:09' and '2010-01-01 01:01:01' and f1 > '2001-01-01 01:01:01';
-min(f1)
-NULL
-drop table t1;
-#
-# BUG#11765831: 'RANGE ACCESS' MAY INCORRECTLY FILTER
-# AWAY QUALIFYING ROWS
-#
-CREATE TABLE t10(
-K INT NOT NULL AUTO_INCREMENT,
-I INT, J INT,
-PRIMARY KEY(K),
-KEY(I,J)
-);
-INSERT INTO t10(I,J) VALUES (6,1),(6,2),(6,3),(6,4),(6,5),
-(6,6),(6,7),(6,8),(6,9),(6,0);
-CREATE TABLE t100 LIKE t10;
-INSERT INTO t100(I,J) SELECT X.I, X.K+(10*Y.K) FROM t10 AS X,t10 AS Y;
-INSERT INTO t100(I,J) VALUES(8,26);
-
-EXPLAIN SELECT * FROM t100 WHERE I <> 6 OR (I <> 8 AND J = 5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t100 range I I 10 NULL 4 Using index condition; Using where
-
-SELECT * FROM t100 WHERE I <> 6 OR (I <> 8 AND J = 5);
-K I J
-101 8 26
-DROP TABLE t10,t100;
-#
-# lp:817363: Wrong result with sort_union and multipart key in maria-5.3
-#
-CREATE TABLE t1 (a int NOT NULL , b int, c int, d varchar(32), KEY (d,b), PRIMARY KEY (a)) ;
-INSERT INTO t1 VALUES (7,7,NULL,'e'),(8,1,0,'p'),(9,7,1,'s'),(10,1,1,'j'),(12,2,0,'c'),(13,0,0,'a'),(14,1,1,'q');
-SELECT c FROM t1 WHERE d='q' OR d>='q' OR a > 97 OR (d IN ('j','s','i') AND b = 102);
-c
-1
-1
-SELECT c FROM t1 ignore index (d) WHERE d='q' OR d>='q' OR a > 97 OR (d IN ('j','s','i') AND b = 102);
-c
-1
-1
-SELECT * FROM t1 ignore index(d) WHERE d = 'q' OR d >= 'q' OR (d IN ( 'j' , 's' , 'i' ) AND ( b = 102 ));
-a b c d
-9 7 1 s
-14 1 1 q
-SELECT * FROM t1 force index(d) WHERE d = 'q' OR d >= 'q' OR (d IN ( 'j' , 's' , 'i' ) AND ( b = 102 ));
-a b c d
-14 1 1 q
-9 7 1 s
-DROP TABLE t1;
-#
-# BUG#13256446 - ASSERTION QUICK->HEAD->READ_SET ==
-# SAVE_READ_SET' FAILED IN OPT_RANGE.CC:1606
-#
-CREATE TABLE t1 (
-f1 INT AUTO_INCREMENT,
-f2 INT,
-f3 INT,
-f4 INT,
-PRIMARY KEY (f1),KEY(f2)
-) ENGINE=INNODB;
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT f1,f2,f3,f4 FROM t1 WHERE f2=103;
-INSERT INTO t1 VALUES (154,0,NULL,0),(0,NULL,9,0),
-(NULL,102,NULL,3),(0,3,NULL,0), (9,0,NULL,0),(0,9,NULL,157);
-SELECT * FROM v2;
-f1 f2 f3 f4
-UPDATE v2 SET f4=0, f2=NULL, f1=NULL WHERE f1 > 16 ORDER BY f1;
-SELECT * FROM v2;
-f1 f2 f3 f4
-DROP TABLE t1;
-DROP VIEW v2;
-CREATE TABLE t1 (
-f1 INT AUTO_INCREMENT,
-f2 INT,
-f3 INT,
-f4 INT,
-PRIMARY KEY (f1),KEY(f2)
-) ENGINE=INNODB;
-INSERT INTO t1 VALUES(1,NULL,NULL,0), (2,2,0,3), (9,0,107,18),
-(10,0,0,0), (231,0,0,0), (232,0,8,0), (234,0,0,NULL), (235,8,0,3);
-CREATE ALGORITHM=MERGE VIEW v3 AS SELECT f1,f2,f3,f4 FROM t1 WHERE f1<=85 ;
-SELECT * FROM v3;
-f1 f2 f3 f4
-1 NULL NULL 0
-2 2 0 3
-9 0 107 18
-10 0 0 0
-UPDATE v3 SET f3=0, f4=4 WHERE f2=68 ORDER BY f1;
-SELECT * FROM v3;
-f1 f2 f3 f4
-1 NULL NULL 0
-2 2 0 3
-9 0 107 18
-10 0 0 0
-DROP TABLE t1;
-DROP VIEW v3;
-#
-# MDEV-6105: Emoji unicode character string search query makes mariadb performance down
-#
-SET NAMES utf8;
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1(
-id int AUTO_INCREMENT,
-fd varchar(20),
-primary key(id),
-index ix_fd(fd)
-)engine=innodb default charset=UTF8;
-INSERT INTO t1(id, fd) VALUES (null, ''),(null, 'matt'),(null, 'pitt'),(null, 'lee'),(null, 'kim');
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-# The following should show "Impossible WHERE" :
-explain
-SELECT * FROM t1 WHERE fd='ðŸ˜';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1
-SELECT * FROM t1 WHERE fd='ðŸ˜';
-id fd
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1
-# The following must not use range access:
-explain select count(*) from t1 where fd <'ðŸ˜';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ix_fd ix_fd 63 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1
-select count(*) from t1 where fd <'ðŸ˜';
-count(*)
-40960
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1
-select count(*) from t1 ignore index (ix_fd) where fd <'ðŸ˜';
-count(*)
-40960
-drop table t1;
-set names default;
-create table t2 (a int, b int, c int, d int, key x(a, b));
-insert into t2 values (2, 2, 2, 2), (3, 3, 3, 3), (4, 4, 4, 4), (5, 5, 5, 5),
-(6, 6, 6, 6), (7, 7, 7, 7), (8, 8, 8, 8), (9, 9, 9, 9);
-insert into t2 select * from t2;
-insert into t2 values (0, 0, 0, 0), (1, 1, 1, 1);
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status OK
-select a, b from t2 where (a, b) in ((0, 0), (1, 1));
-a b
-0 0
-1 1
-drop table t2;
-#
-# MDEV-10228: Delete missing rows with OR conditions
-# (The example uses UPDATE, because UPDATE allows to use index hints
-# and so it's possible to make an example that works with any storage
-# engine)
-#
-CREATE TABLE t1 (
-key1varchar varchar(14) NOT NULL,
-key2int int(11) NOT NULL DEFAULT '0',
-col1 int,
-PRIMARY KEY (key1varchar,key2int),
-KEY key1varchar (key1varchar),
-KEY key2int (key2int)
-) DEFAULT CHARSET=utf8;
-insert into t1 values
-('value1',0, 0),
-('value1',1, 0),
-('value1',1000685, 0),
-('value1',1003560, 0),
-('value1',1004807, 0);
-update t1 force index (PRIMARY) set col1=12345
-where (key1varchar='value1' AND (key2int <=1 OR key2int > 1));
-# The following must show col1=12345 for all rows:
-select * from t1;
-key1varchar key2int col1
-value1 0 12345
-value1 1 12345
-value1 1000685 12345
-value1 1003560 12345
-value1 1004807 12345
-drop table t1;
-#
-# BUG#13731380: RANGE OPTIMIZER CALLS RECORDS_IN_RANGE() FOR OPEN RANGE
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY);
-INSERT INTO t1 VALUES (1),(3),(5);
-SELECT * FROM t1 WHERE pk <> 3 OR pk < 4;
-pk
-1
-3
-5
-DROP TABLE t1;
-#
-# BUG#13803810: TOO FEW ROWS RETURNED FOR RANGE ACCESS IN
-# VARCHAR INDEX USING DATETIME VALUE
-
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00');
-INSERT INTO t1 VALUES ('2001-01-01 11:22:33');
-CREATE TABLE t2 (b VARCHAR(64), KEY (b));
-INSERT INTO t2 VALUES ('2001-01-01');
-INSERT INTO t2 VALUES ('2001.01.01');
-INSERT INTO t2 VALUES ('2001#01#01');
-INSERT INTO t2 VALUES ('2001-01-01 00:00:00');
-INSERT INTO t2 VALUES ('2001-01-01 11:22:33');
-
-# range/ref access cannot be used for this query
-
-EXPLAIN SELECT * FROM t2 WHERE b=CAST('2001-01-01' AS DATE);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index b b 67 NULL 5 Using where; Using index
-SELECT * FROM t2 WHERE b=CAST('2001-01-01' AS DATE);
-b
-2001#01#01
-2001-01-01
-2001-01-01 00:00:00
-2001.01.01
-
-# range/ref access cannot be used for any of the queries below.
-# See BUG#13814468 about 'Range checked for each record'
-
-EXPLAIN SELECT * FROM t1, t2 WHERE a=b ORDER BY BINARY a, BINARY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-1 SIMPLE t2 ALL b NULL NULL NULL 5 Range checked for each record (index map: 0x1)
-SELECT * FROM t1, t2 WHERE a=b ORDER BY BINARY a, BINARY b;
-a b
-2001-01-01 00:00:00 2001#01#01
-2001-01-01 00:00:00 2001-01-01
-2001-01-01 00:00:00 2001-01-01 00:00:00
-2001-01-01 00:00:00 2001.01.01
-2001-01-01 11:22:33 2001-01-01 11:22:33
-
-EXPLAIN SELECT * FROM t1, t2 WHERE b=a ORDER BY BINARY a, BINARY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-1 SIMPLE t2 ALL b NULL NULL NULL 5 Range checked for each record (index map: 0x1)
-SELECT * FROM t1, t2 WHERE b=a ORDER BY BINARY a, BINARY b;
-a b
-2001-01-01 00:00:00 2001#01#01
-2001-01-01 00:00:00 2001-01-01
-2001-01-01 00:00:00 2001-01-01 00:00:00
-2001-01-01 00:00:00 2001.01.01
-2001-01-01 11:22:33 2001-01-01 11:22:33
-
-DROP TABLE t1,t2;
-#
-# MDEV-5606: range optimizer: "x < y" is sargable, while "y > x" is not
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2(a int);
-insert into t2 select A.a + B.a* 10 + C.a * 100 from t1 A, t1 B, t1 C;
-alter table t2 add key(a);
-# Should have "range checked for each table" for second table:
-explain select * from t1, t2 where t2.a < t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10
-1 SIMPLE t2 ALL a NULL NULL NULL 1000 Range checked for each record (index map: 0x1)
-# Should have "range checked for each table" for second table:
-explain select * from t1, t2 where t1.a > t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10
-1 SIMPLE t2 ALL a NULL NULL NULL 1000 Range checked for each record (index map: 0x1)
-create table t3 (a int primary key, b int);
-insert into t3 select a,a from t1;
-# The second table should use 'range':
-explain select * from t3, t2 where t2.a < t3.b and t3.a=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range a a 5 NULL 1 Using where; Using index
-# The second table should use 'range':
-explain select * from t3, t2 where t3.b > t2.a and t3.a=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range a a 5 NULL 1 Using where; Using index
-drop table t1,t2,t3;
-#
-# MDEV-6480: Remove conditions for which range optimizer returned SEL_ARG::IMPOSSIBLE.
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, c int, key(a), key(b));
-insert into t2
-select
-A.a + B.a* 10 + C.a * 100,
-A.a + B.a* 10 + C.a * 100,
-12345
-from
-t1 A, t1 B, t1 C;
-# EXPLAIN EXTENDED should show that 'b > 25 and b < 15' is removed from the WHERE:
-explain extended select * from t2 where (b > 25 and b < 15) or a<44;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 range a,b a 5 NULL 43 100.00 Using index condition
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where `test`.`t2`.`a` < 44
-# EXPLAIN EXTENDED should show that 'b > 25 and b < 15' is removed from the WHERE:
-explain extended select * from t2 where a < 44 or (b > 25 and b < 15);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 range a,b a 5 NULL 43 100.00 Using index condition
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where `test`.`t2`.`a` < 44
-# Here, conditions b will not be removed, because "c<44" is not sargable
-# and hence (b.. and .. b) part is not analyzed at all:
-explain extended select * from t2 where c < 44 or (b > 25 and b < 15);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL b NULL NULL NULL 1000 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where `test`.`t2`.`c` < 44 or `test`.`t2`.`b` > 25 and `test`.`t2`.`b` < 15
-# EXPLAIN EXTENDED should show that 'b > 25 and b < 15' is removed from the WHERE:
-explain extended select * from t2 where (b > 25 and b < 15) or c < 44;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL b NULL NULL NULL 1000 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where `test`.`t2`.`c` < 44
-# Try a case where both OR parts produce SEL_ARG::IMPOSSIBLE:
-explain extended select * from t2 where (b > 25 and b < 15) or (a>55 and a<44);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 44 AS `a`,15 AS `b`,NULL AS `c` from `test`.`t2` where 0
-drop table t1,t2;
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8189 field<>const and const<>field are not symmetric
-#
-CREATE TABLE t1 (a INT, b INT, KEY(a));
-INSERT INTO t1 (a) VALUES (10),(10),(10),(10),(10),(10),(10),(10),(10),(10),(70);
-EXPLAIN SELECT * FROM t1 WHERE a<>10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 3 Using index condition
-EXPLAIN SELECT * FROM t1 WHERE 10<>a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 3 Using index condition
-SELECT * FROM t1 WHERE a<>10;
-a b
-70 NULL
-SELECT * FROM t1 WHERE 10<>a;
-a b
-70 NULL
-DROP TABLE t1;
-#
-# MDEV-8613 Full table scan for WHERE indexed_varchar_column <=> 'bad-character'
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('a'),('b'),('c'),('d'),('e');
-EXPLAIN SELECT * FROM t1 WHERE a<=>'😎';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9F\x98\x8E' for column 'a' at row 1
-DROP TABLE t1;
-#
-# MDEV-10185: Assertion `tree1->keys[key_no] && tree2->keys[key_no]' failed in
-# sel_trees_can_be_ored(RANGE_OPT_PARAM*, SEL_TREE*, SEL_TREE*, key_map*)
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY);
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 WHERE pk != 1000 OR pk IN ( 1000, 0, 1, 100, 2 ) OR pk >= 5;
-pk
-1
-2
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# MDEV-10454: range access keys extracted
-# from <row> IN (<row value list>)
-#
-create table t1(a int, b int, c varchar(16), key idx(a,b)) engine=myisam;
-insert into t1 values
-(1,1,'xx'), (2,2,'yyy'), (3,3,'zzzz'), (1,2,'zz'), (1,3,'x'),
-(2,3,'yy'), (4,5,'ww'), (7,8,'xxxxx'), (4,3,'zyx'), (1,2,'uuu'),
-(2,1,'w'), (5,5,'wx'), (2,3,'ww'), (7,7,'xxxyy'), (3,3,'zyxw'),
-(3,2,'uuuw'), (2,2,'wxz'), (5,5,'xw'), (12,12,'xx'), (12,12,'y'),
-(13,13,'z'), (11,12,'zz'), (11,13,'x'), (12,13,'y'), (14,15,'w'),
-(17,18,'xx'), (14,13,'zx'), (11,12,'u'), (12,11,'w'), (5,5,'wx'),
-(12,13,'ww'), (17,17,'xxxyy'), (13,13,'zyxw'), (13,12,'uuuw'), (12,12,'wxz'),
-(15,15,'xw'), (1,1,'xa'), (2,2,'yya'), (3,3,'zzza'), (1,2,'za'),
-(1,3,'xb'), (2,3,'ya'), (4,5,'wa'), (7,8,'xxxxa'), (4,3,'zya'),
-(1,2,'uua'), (2,1,'wb'), (5,5,'wc'), (2,3,'wa'), (7,7,'xxxya'),
-(3,3,'zyxa'), (3,2,'uuua'), (2,2,'wxa'), (5,5,'xa'), (12,12,'xa'),
-(22,12,'yb'), (23,13,'zb'), (21,12,'za'), (24,13,'c'), (32,13,'d'),
-(34,15,'wd'), (47,18,'xa'), (54,13,'za'), (51,12,'ub'), (52,11,'wc'),
-(5,5,'wd'), (62,13,'wa'), (67,17,'xxxya'), (63,13,'zyxa'), (73,12,'uuua'),
-(82,12,'wxa'), (85,15,'xd');
-# range access to t1 by 2-component keys for index idx
-explain select * from t1 where (a,b) IN ((2, 3),(3,3),(8,8),(7,7));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 10 NULL 7 Using where
-explain format=json select * from t1 where (a,b) IN ((2, 3),(3,3),(8,8),(7,7));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "10",
- "used_key_parts": ["a", "b"],
- "rows": 7,
- "filtered": 100,
- "attached_condition": "(t1.a,t1.b) in (<cache>((2,3)),<cache>((3,3)),<cache>((8,8)),<cache>((7,7)))"
- }
- }
-}
-select * from t1 where (a,b) IN ((2, 3),(3,3),(8,8),(7,7));
-a b c
-2 3 yy
-2 3 ww
-2 3 ya
-2 3 wa
-3 3 zzzz
-3 3 zyxw
-3 3 zzza
-3 3 zyxa
-7 7 xxxyy
-7 7 xxxya
-prepare stmt from "select * from t1 where (a,b) IN ((2, 3),(3,3),(8,8),(7,7))";
-execute stmt;
-a b c
-2 3 yy
-2 3 ww
-2 3 ya
-2 3 wa
-3 3 zzzz
-3 3 zyxw
-3 3 zzza
-3 3 zyxa
-7 7 xxxyy
-7 7 xxxya
-execute stmt;
-a b c
-2 3 yy
-2 3 ww
-2 3 ya
-2 3 wa
-3 3 zzzz
-3 3 zyxw
-3 3 zzza
-3 3 zyxa
-7 7 xxxyy
-7 7 xxxya
-deallocate prepare stmt;
-# range access to t1 by 1-component keys for index idx
-explain select * from t1 where (a,b+a) IN ((4,9),(8,8),(7,7));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 5 NULL 5 Using where
-explain format=json select * from t1 where (a,b+a) IN ((4,9),(8,8),(7,7));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 5,
- "filtered": 100,
- "attached_condition": "(t1.a,t1.b + t1.a) in (<cache>((4,9)),<cache>((8,8)),<cache>((7,7)))"
- }
- }
-}
-select * from t1 where (a,b+a) IN ((4,9),(8,8),(7,7));
-a b c
-4 5 ww
-4 5 wa
-# range access to t1 by 1-component keys for index idx
-explain select * from t1 where (a,b) IN ((4,a-1),(8,a+8),(7,a+7));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 5 NULL 5 Using where
-explain format=json select * from t1 where (a,b) IN ((4,a-1),(8,a+8),(7,a+7));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 5,
- "filtered": 100,
- "attached_condition": "(t1.a,t1.b) in ((4,t1.a - 1),(8,t1.a + 8),(7,t1.a + 7))"
- }
- }
-}
-select * from t1 where (a,b) IN ((4,a-1),(8,a+8),(7,a+7));
-a b c
-4 3 zyx
-4 3 zya
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='index_merge=off';
-create table t2(
-d int, e int, key idx1(d), key idx2(e), f varchar(32)
-) engine=myisam;
-insert into t2 values
-(9,5,'a'), (9,8,'b'), (9,3,'c'), (9,2,'d'), (9,1,'e'),
-(6,5,'f'), (6,3,'g'), (6,7,'h'), (3,3,'i'), (6,2,'j'),
-(9,5,'aa'), (9,8,'ba'), (9,3,'ca'), (2,2,'da'), (9,1,'ea'),
-(6,5,'fa'), (6,3,'ga'), (6,7,'ha'), (9,3,'ia'), (6,2,'ja');
-# join order: (t2,t1) with ref access of t1
-# range access to t1 by keys for index idx1
-explain select * from t1,t2
-where a = d and (a,e) in ((3,3),(7,7),(2,2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx1,idx2 idx1 5 NULL 3 Using index condition; Using where
-1 SIMPLE t1 ref idx idx 5 test.t2.d 8
-explain format=json select * from t1,t2
-where a = d and (a,e) in ((3,3),(7,7),(2,2));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "range",
- "possible_keys": ["idx1", "idx2"],
- "key": "idx1",
- "key_length": "5",
- "used_key_parts": ["d"],
- "rows": 3,
- "filtered": 100,
- "index_condition": "t2.d is not null",
- "attached_condition": "(t2.d,t2.e) in (<cache>((3,3)),<cache>((7,7)),<cache>((2,2)))"
- },
- "table": {
- "table_name": "t1",
- "access_type": "ref",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.d"],
- "rows": 8,
- "filtered": 100
- }
- }
-}
-select * from t1,t2
-where a = d and (a,e) in ((3,3),(7,7),(2,2));
-a b c d e f
-2 1 w 2 2 da
-2 1 wb 2 2 da
-2 2 yyy 2 2 da
-2 2 wxz 2 2 da
-2 2 yya 2 2 da
-2 2 wxa 2 2 da
-2 3 yy 2 2 da
-2 3 ww 2 2 da
-2 3 ya 2 2 da
-2 3 wa 2 2 da
-3 2 uuuw 3 3 i
-3 2 uuua 3 3 i
-3 3 zzzz 3 3 i
-3 3 zyxw 3 3 i
-3 3 zzza 3 3 i
-3 3 zyxa 3 3 i
-insert into t2 values
-(4,5,'a'), (7,8,'b'), (4,3,'c'), (1,2,'d'), (2,1,'e'), (5,5,'f'),
-(2,3,'g'), (7,7,'h'), (3,3,'i'), (3,2,'j'), (2,2,'k'), (5,5,'l'),
-(4,5,'aa'), (7,8,'bb'), (4,3,'cc'), (1,2,'dd'), (2,1,'ee'), (9,5,'ff'),
-(2,3,'gg'), (7,7,'hh'), (3,3,'ii'), (3,2,'jj'), (2,2,'kk'), (9,5,'ll'),
-(4,5,'aaa'), (7,8,'bbb'), (4,3,'ccc'), (1,2,'ddd'), (2,1,'eee'), (5,5,'fff'),
-(2,3,'ggg'), (7,7,'hhh'), (3,3,'iii'), (3,2,'jjj'), (2,2,'kkk'), (5,5,'lll'),
-(14,15,'a'), (17,18,'b'), (14,13,'c'), (11,12,'d'), (12,11,'e'), (15,15,'f'),
-(12,13,'g'), (17,17,'h'), (13,13,'i'), (13,12,'j'), (12,12,'k'), (15,15,'l'),
-(24,25,'a'), (27,28,'b'), (24,23,'c'), (21,22,'d'), (22,21,'e'), (25,25,'f'),
-(22,23,'g'), (27,27,'h'), (23,23,'i'), (23,22,'j'), (22,22,'k'), (25,25,'l'),
-(34,35,'a'), (37,38,'b'), (34,33,'c'), (31,32,'d'), (32,31,'e'), (35,35,'f'),
-(32,33,'g'), (37,37,'h'), (33,33,'i'), (33,32,'j'), (32,32,'k'), (35,35,'l'),
-(44,45,'a'), (47,48,'b'), (44,43,'c'), (41,42,'d'), (42,41,'e'), (45,45,'f'),
-(42,43,'g'), (47,47,'h'), (43,43,'i'), (43,42,'j'), (42,42,'k'), (45,45,'l');
-# join order: (t1,t2) with ref access of t2
-# range access to t1 by 1-component keys for index idx
-explain select * from t1,t2
-where a = d and (a,e) in ((3,3),(7,7),(8,8)) and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 5 NULL 6 Using index condition
-1 SIMPLE t2 ref idx1,idx2 idx1 5 test.t1.a 12 Using where
-explain format=json select * from t1,t2
-where a = d and (a,e) in ((3,3),(7,7),(8,8)) and length(f) = 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 6,
- "filtered": 100,
- "index_condition": "t1.a is not null"
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["idx1", "idx2"],
- "key": "idx1",
- "key_length": "5",
- "used_key_parts": ["d"],
- "ref": ["test.t1.a"],
- "rows": 12,
- "filtered": 100,
- "attached_condition": "(t1.a,t2.e) in (<cache>((3,3)),<cache>((7,7)),<cache>((8,8))) and octet_length(t2.f) = 1"
- }
- }
-}
-select * from t1,t2
-where a = d and (a,e) in ((3,3),(7,7),(8,8)) and length(f) = 1;
-a b c d e f
-3 2 uuuw 3 3 i
-3 2 uuuw 3 3 i
-3 2 uuua 3 3 i
-3 2 uuua 3 3 i
-3 3 zzzz 3 3 i
-3 3 zzzz 3 3 i
-3 3 zyxw 3 3 i
-3 3 zyxw 3 3 i
-3 3 zzza 3 3 i
-3 3 zzza 3 3 i
-3 3 zyxa 3 3 i
-3 3 zyxa 3 3 i
-7 7 xxxyy 7 7 h
-7 7 xxxya 7 7 h
-7 8 xxxxx 7 7 h
-7 8 xxxxa 7 7 h
-prepare stmt from "select * from t1,t2
-where a = d and (a,e) in ((3,3),(7,7),(8,8)) and length(f) = 1";
-execute stmt;
-a b c d e f
-3 2 uuuw 3 3 i
-3 2 uuuw 3 3 i
-3 2 uuua 3 3 i
-3 2 uuua 3 3 i
-3 3 zzzz 3 3 i
-3 3 zzzz 3 3 i
-3 3 zyxw 3 3 i
-3 3 zyxw 3 3 i
-3 3 zzza 3 3 i
-3 3 zzza 3 3 i
-3 3 zyxa 3 3 i
-3 3 zyxa 3 3 i
-7 7 xxxyy 7 7 h
-7 7 xxxya 7 7 h
-7 8 xxxxx 7 7 h
-7 8 xxxxa 7 7 h
-execute stmt;
-a b c d e f
-3 2 uuuw 3 3 i
-3 2 uuuw 3 3 i
-3 2 uuua 3 3 i
-3 2 uuua 3 3 i
-3 3 zzzz 3 3 i
-3 3 zzzz 3 3 i
-3 3 zyxw 3 3 i
-3 3 zyxw 3 3 i
-3 3 zzza 3 3 i
-3 3 zzza 3 3 i
-3 3 zyxa 3 3 i
-3 3 zyxa 3 3 i
-7 7 xxxyy 7 7 h
-7 7 xxxya 7 7 h
-7 8 xxxxx 7 7 h
-7 8 xxxxa 7 7 h
-deallocate prepare stmt;
-insert into t1 select * from t1;
-# join order: (t2,t1) with ref access of t1
-# range access to t2 by keys for index idx2
-explain select * from t1,t2
-where a = d and (a,e) in ((4,4),(7,7),(8,8)) and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx1,idx2 idx2 5 NULL 6 Using where
-1 SIMPLE t1 ref idx idx 5 test.t2.d 11
-explain format=json select * from t1,t2
-where a = d and (a,e) in ((4,4),(7,7),(8,8)) and length(f) = 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "range",
- "possible_keys": ["idx1", "idx2"],
- "key": "idx2",
- "key_length": "5",
- "used_key_parts": ["e"],
- "rows": 6,
- "filtered": 100,
- "attached_condition": "(t2.d,t2.e) in (<cache>((4,4)),<cache>((7,7)),<cache>((8,8))) and octet_length(t2.f) = 1 and t2.d is not null"
- },
- "table": {
- "table_name": "t1",
- "access_type": "ref",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.d"],
- "rows": 11,
- "filtered": 100
- }
- }
-}
-select * from t1,t2
-where a = d and (a,e) in ((4,4),(7,7),(8,8)) and length(f) = 1;
-a b c d e f
-7 7 xxxyy 7 7 h
-7 7 xxxya 7 7 h
-7 7 xxxyy 7 7 h
-7 7 xxxya 7 7 h
-7 8 xxxxx 7 7 h
-7 8 xxxxa 7 7 h
-7 8 xxxxx 7 7 h
-7 8 xxxxa 7 7 h
-alter table t2 drop index idx1, drop index idx2, add index idx3(d,e);
-# join order: (t2,t1) with ref access of t1
-# range access to t2 by 2-component keys for index idx3
-explain select * from t1,t2
-where a = d and (a,e) in ((4,4),(7,7),(8,8)) and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx3 idx3 10 NULL 5 Using index condition; Using where
-1 SIMPLE t1 ref idx idx 5 test.t2.d 11
-explain format=json select * from t1,t2
-where a = d and (a,e) in ((4,4),(7,7),(8,8)) and length(f) = 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "range",
- "possible_keys": ["idx3"],
- "key": "idx3",
- "key_length": "10",
- "used_key_parts": ["d", "e"],
- "rows": 5,
- "filtered": 100,
- "index_condition": "t2.d is not null",
- "attached_condition": "(t2.d,t2.e) in (<cache>((4,4)),<cache>((7,7)),<cache>((8,8))) and octet_length(t2.f) = 1"
- },
- "table": {
- "table_name": "t1",
- "access_type": "ref",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.d"],
- "rows": 11,
- "filtered": 100
- }
- }
-}
-select * from t1,t2
-where a = d and (a,e) in ((4,4),(7,7),(8,8)) and length(f) = 1;
-a b c d e f
-7 7 xxxyy 7 7 h
-7 7 xxxya 7 7 h
-7 7 xxxyy 7 7 h
-7 7 xxxya 7 7 h
-7 8 xxxxx 7 7 h
-7 8 xxxxa 7 7 h
-7 8 xxxxx 7 7 h
-7 8 xxxxa 7 7 h
-# join order: (t1,t2) with ref access of t2
-# range access to t1 by 1-component keys for index idx
-explain select * from t1,t2
-where a = d and (a,e) in ((4,d+1),(7,d+1),(8,d+1)) and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 5 NULL 15 Using index condition
-1 SIMPLE t2 ref idx3 idx3 5 test.t1.a 3 Using where
-explain format=json select * from t1,t2
-where a = d and (a,e) in ((4,d+1),(7,d+1),(8,d+1)) and length(f) = 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 15,
- "filtered": 100,
- "index_condition": "t1.a is not null"
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["idx3"],
- "key": "idx3",
- "key_length": "5",
- "used_key_parts": ["d"],
- "ref": ["test.t1.a"],
- "rows": 3,
- "filtered": 100,
- "attached_condition": "(t1.a,t2.e) in ((4,t1.a + 1),(7,t1.a + 1),(8,t1.a + 1)) and octet_length(t2.f) = 1"
- }
- }
-}
-select * from t1,t2
-where a = d and (a,e) in ((4,d+1),(7,d+1),(8,d+1)) and length(f) = 1;
-a b c d e f
-4 3 zyx 4 5 a
-4 3 zya 4 5 a
-4 3 zyx 4 5 a
-4 3 zya 4 5 a
-4 5 ww 4 5 a
-4 5 wa 4 5 a
-4 5 ww 4 5 a
-4 5 wa 4 5 a
-7 7 xxxyy 7 8 b
-7 7 xxxya 7 8 b
-7 7 xxxyy 7 8 b
-7 7 xxxya 7 8 b
-7 8 xxxxx 7 8 b
-7 8 xxxxa 7 8 b
-7 8 xxxxx 7 8 b
-7 8 xxxxa 7 8 b
-# join order: (t1,t2) with ref access of t2
-# no range access
-explain select * from t1,t2
-where a = d and (a,e) in ((e,d+1),(7,7),(8,8)) and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL idx NULL NULL NULL 144 Using where
-1 SIMPLE t2 ref idx3 idx3 5 test.t1.a 3 Using where
-explain format=json select * from t1,t2
-where a = d and (a,e) in ((e,d+1),(7,7),(8,8)) and length(f) = 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "possible_keys": ["idx"],
- "rows": 144,
- "filtered": 100,
- "attached_condition": "t1.a is not null"
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["idx3"],
- "key": "idx3",
- "key_length": "5",
- "used_key_parts": ["d"],
- "ref": ["test.t1.a"],
- "rows": 3,
- "filtered": 100,
- "attached_condition": "(t1.a,t2.e) in ((t2.e,t1.a + 1),<cache>((7,7)),<cache>((8,8))) and octet_length(t2.f) = 1"
- }
- }
-}
-select * from t1,t2
-where a = d and (a,e) in ((e,d+1),(7,7),(8,8)) and length(f) = 1;
-a b c d e f
-7 8 xxxxx 7 7 h
-7 7 xxxyy 7 7 h
-7 8 xxxxa 7 7 h
-7 7 xxxya 7 7 h
-7 8 xxxxx 7 7 h
-7 7 xxxyy 7 7 h
-7 8 xxxxa 7 7 h
-7 7 xxxya 7 7 h
-# join order: (t1,t2) with ref access of t2
-# range access to t1 by 1-component keys for index idx
-explain select * from t1,t2
-where a = d and (a,2) in ((2,2),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 5 NULL 13 Using index condition; Using where
-1 SIMPLE t2 ref idx3 idx3 5 test.t1.a 3 Using where
-explain format=json select * from t1,t2
-where a = d and (a,2) in ((2,2),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 13,
- "filtered": 100,
- "index_condition": "t1.a is not null",
- "attached_condition": "(t1.a,2) in (<cache>((2,2)),<cache>((7,7)),<cache>((8,8))) and octet_length(t1.c) = 1"
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["idx3"],
- "key": "idx3",
- "key_length": "5",
- "used_key_parts": ["d"],
- "ref": ["test.t1.a"],
- "rows": 3,
- "filtered": 100,
- "attached_condition": "octet_length(t2.f) = 1"
- }
- }
-}
-select * from t1,t2
-where a = d and (a,2) in ((2,2),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1;
-a b c d e f
-2 1 w 2 1 e
-2 1 w 2 2 k
-2 1 w 2 3 g
-2 1 w 2 1 e
-2 1 w 2 2 k
-2 1 w 2 3 g
-prepare stmt from "select * from t1,t2
-where a = d and (a,2) in ((2,2),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1";
-execute stmt;
-a b c d e f
-2 1 w 2 1 e
-2 1 w 2 2 k
-2 1 w 2 3 g
-2 1 w 2 1 e
-2 1 w 2 2 k
-2 1 w 2 3 g
-execute stmt;
-a b c d e f
-2 1 w 2 1 e
-2 1 w 2 2 k
-2 1 w 2 3 g
-2 1 w 2 1 e
-2 1 w 2 2 k
-2 1 w 2 3 g
-deallocate prepare stmt;
-create table t3 (id int primary key, v int) engine=myisam;
-insert into t3 values
-(3,2), (1,1), (4,12), (2,15);
-# join order: (t3,t1,t2) with const t3 and ref access of t2
-# range access to t1 by 1-component keys for index idx
-explain select * from t1,t2,t3
-where id = 1 and a = d and
-(a,v+1) in ((2,2),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t1 range idx idx 5 NULL 13 Using index condition; Using where
-1 SIMPLE t2 ref idx3 idx3 5 test.t1.a 3 Using where
-explain format=json select * from t1,t2,t3
-where id = 1 and a = d and
-(a,v+1) in ((2,2),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t3",
- "access_type": "const",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["id"],
- "ref": ["const"],
- "rows": 1,
- "filtered": 100
- },
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 13,
- "filtered": 100,
- "index_condition": "t1.a is not null",
- "attached_condition": "(t1.a,1 + 1) in (<cache>((2,2)),<cache>((7,7)),<cache>((8,8))) and octet_length(t1.c) = 1"
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["idx3"],
- "key": "idx3",
- "key_length": "5",
- "used_key_parts": ["d"],
- "ref": ["test.t1.a"],
- "rows": 3,
- "filtered": 100,
- "attached_condition": "octet_length(t2.f) = 1"
- }
- }
-}
-select * from t1,t2,t3
-where id = 1 and a = d and
-(a,v+1) in ((2,2),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1;
-a b c d e f id v
-2 1 w 2 1 e 1 1
-2 1 w 2 2 k 1 1
-2 1 w 2 3 g 1 1
-2 1 w 2 1 e 1 1
-2 1 w 2 2 k 1 1
-2 1 w 2 3 g 1 1
-# IN predicate is always FALSE
-explain select * from t1,t2,t3
-where id = 1 and a = d and
-(a,v+1) in ((9,9),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-prepare stmt from "select * from t1,t2,t3
-where id = 1 and a = d and
-(a,v+1) in ((9,9),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1";
-execute stmt;
-a b c d e f id v
-execute stmt;
-a b c d e f id v
-deallocate prepare stmt;
-set optimizer_switch=@save_optimizer_switch;
-drop table t1,t2,t3;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/range_innodb.result b/mysql-test/r/range_innodb.result
deleted file mode 100644
index 794e6c7b3cc..00000000000
--- a/mysql-test/r/range_innodb.result
+++ /dev/null
@@ -1,39 +0,0 @@
-#
-# Range optimizer (and related) tests that need InnoDB.
-#
-drop table if exists t0, t1, t2;
-#
-# MDEV-6735: Range checked for each record used with key
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int);
-insert into t1 select A.a + B.a* 10 + C.a * 100 + D.a * 1000
-from t0 A, t0 B, t0 C, t0 D;
-create table t2 (
-a int,
-b int,
-filler1 char(100),
-filler2 char(100),
-filler3 char(100),
-filler4 char(100),
-key(a),
-key(b)
-) engine=innodb;
-insert into t2
-select
-a,a,
-repeat('0123456789', 10),
-repeat('0123456789', 10),
-repeat('0123456789', 10),
-repeat('0123456789', 10)
-from t1;
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status OK
-# The following must not use "Range checked for each record":
-explain select * from t0 left join t2 on t2.a <t0.a and t2.b between 50 and 250;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10
-1 SIMPLE t2 range a,b b 5 NULL 201 Using where; Using join buffer (flat, BNL join)
-drop table t0,t1,t2;
diff --git a/mysql-test/r/range_interrupted-13751.result b/mysql-test/r/range_interrupted-13751.result
deleted file mode 100644
index f4f995721ad..00000000000
--- a/mysql-test/r/range_interrupted-13751.result
+++ /dev/null
@@ -1,16 +0,0 @@
-CREATE TABLE t1 (i INT AUTO_INCREMENT, c VARCHAR(1), KEY(i), KEY(c,i)) ENGINE=MyISAM;
-INSERT INTO t1 (c) VALUES ('a'),('b'),('c'),('d');
-INSERT INTO t1 (c) SELECT c FROM t1;
-INSERT INTO t1 (c) SELECT c FROM t1;
-INSERT INTO t1 (c) SELECT c FROM t1;
-INSERT INTO t1 (c) SELECT c FROM t1;
-INSERT INTO t1 (c) SELECT c FROM t1;
-INSERT INTO t1 (c) SELECT c FROM t1;
-set @old_dbug=@@session.debug_dbug;
-set debug_dbug="+d,kill_join_init_read_record";
-SELECT 1 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.c = alias2.c OR alias1.i <= 1
-;
-ERROR 70100: Query execution was interrupted
-set debug_dbug=@old_dbug;
-DROP TABLE t1;
diff --git a/mysql-test/r/range_mrr_icp.result b/mysql-test/r/range_mrr_icp.result
deleted file mode 100644
index 629d183bee7..00000000000
--- a/mysql-test/r/range_mrr_icp.result
+++ /dev/null
@@ -1,3022 +0,0 @@
-set @mrr_icp_extra_tmp=@@optimizer_switch;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-CREATE TABLE t1 (
-event_date date DEFAULT '0000-00-00' NOT NULL,
-type int(11) DEFAULT '0' NOT NULL,
-event_id int(11) DEFAULT '0' NOT NULL,
-PRIMARY KEY (event_date,type,event_id)
-);
-INSERT INTO t1 VALUES ('1999-07-10',100100,24), ('1999-07-11',100100,25),
-('1999-07-13',100600,0), ('1999-07-13',100600,4), ('1999-07-13',100600,26),
-('1999-07-14',100600,10), ('1999-07-15',100600,16), ('1999-07-15',100800,45),
-('1999-07-15',101000,47), ('1999-07-16',100800,46), ('1999-07-20',100600,5),
-('1999-07-20',100600,27), ('1999-07-21',100600,11), ('1999-07-22',100600,17),
-('1999-07-23',100100,39), ('1999-07-24',100100,39), ('1999-07-24',100500,40),
-('1999-07-25',100100,39), ('1999-07-27',100600,1), ('1999-07-27',100600,6),
-('1999-07-27',100600,28), ('1999-07-28',100600,12), ('1999-07-29',100500,41),
-('1999-07-29',100600,18), ('1999-07-30',100500,41), ('1999-07-31',100500,41),
-('1999-08-01',100700,34), ('1999-08-03',100600,7), ('1999-08-03',100600,29),
-('1999-08-04',100600,13), ('1999-08-05',100500,42), ('1999-08-05',100600,19),
-('1999-08-06',100500,42), ('1999-08-07',100500,42), ('1999-08-08',100500,42),
-('1999-08-10',100600,2), ('1999-08-10',100600,9), ('1999-08-10',100600,30),
-('1999-08-11',100600,14), ('1999-08-12',100600,20), ('1999-08-17',100500,8),
-('1999-08-17',100600,31), ('1999-08-18',100600,15), ('1999-08-19',100600,22),
-('1999-08-24',100600,3), ('1999-08-24',100600,32), ('1999-08-27',100500,43),
-('1999-08-31',100600,33), ('1999-09-17',100100,37), ('1999-09-18',100100,37),
-('1999-09-19',100100,37), ('2000-12-18',100700,38);
-select event_date,type,event_id from t1 WHERE event_date >= "1999-07-01" AND event_date < "1999-07-15" AND (type=100600 OR type=100100) ORDER BY event_date;
-event_date type event_id
-1999-07-10 100100 24
-1999-07-11 100100 25
-1999-07-13 100600 0
-1999-07-13 100600 4
-1999-07-13 100600 26
-1999-07-14 100600 10
-explain select event_date,type,event_id from t1 WHERE type = 100601 and event_date >= "1999-07-01" AND event_date < "1999-07-15" AND (type=100600 OR type=100100) ORDER BY event_date;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-select event_date,type,event_id from t1 WHERE event_date >= "1999-07-01" AND event_date <= "1999-07-15" AND (type=100600 OR type=100100) or event_date >= "1999-07-01" AND event_date <= "1999-07-15" AND type=100099;
-event_date type event_id
-1999-07-10 100100 24
-1999-07-11 100100 25
-1999-07-13 100600 0
-1999-07-13 100600 4
-1999-07-13 100600 26
-1999-07-14 100600 10
-1999-07-15 100600 16
-drop table t1;
-CREATE TABLE t1 (
-PAPER_ID smallint(6) DEFAULT '0' NOT NULL,
-YEAR smallint(6) DEFAULT '0' NOT NULL,
-ISSUE smallint(6) DEFAULT '0' NOT NULL,
-CLOSED tinyint(4) DEFAULT '0' NOT NULL,
-ISS_DATE date DEFAULT '0000-00-00' NOT NULL,
-PRIMARY KEY (PAPER_ID,YEAR,ISSUE)
-);
-INSERT INTO t1 VALUES (3,1999,34,0,'1999-07-12'), (1,1999,111,0,'1999-03-23'),
-(1,1999,222,0,'1999-03-23'), (3,1999,33,0,'1999-07-12'),
-(3,1999,32,0,'1999-07-12'), (3,1999,31,0,'1999-07-12'),
-(3,1999,30,0,'1999-07-12'), (3,1999,29,0,'1999-07-12'),
-(3,1999,28,0,'1999-07-12'), (1,1999,40,1,'1999-05-01'),
-(1,1999,41,1,'1999-05-01'), (1,1999,42,1,'1999-05-01'),
-(1,1999,46,1,'1999-05-01'), (1,1999,47,1,'1999-05-01'),
-(1,1999,48,1,'1999-05-01'), (1,1999,49,1,'1999-05-01'),
-(1,1999,50,0,'1999-05-01'), (1,1999,51,0,'1999-05-01'),
-(1,1999,200,0,'1999-06-28'), (1,1999,52,0,'1999-06-28'),
-(1,1999,53,0,'1999-06-28'), (1,1999,54,0,'1999-06-28'),
-(1,1999,55,0,'1999-06-28'), (1,1999,56,0,'1999-07-01'),
-(1,1999,57,0,'1999-07-01'), (1,1999,58,0,'1999-07-01'),
-(1,1999,59,0,'1999-07-01'), (1,1999,60,0,'1999-07-01'),
-(3,1999,35,0,'1999-07-12');
-select YEAR,ISSUE from t1 where PAPER_ID=3 and (YEAR>1999 or (YEAR=1999 and ISSUE>28)) order by YEAR,ISSUE;
-YEAR ISSUE
-1999 29
-1999 30
-1999 31
-1999 32
-1999 33
-1999 34
-1999 35
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-repair table t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-drop table t1;
-CREATE TABLE t1 (
-id int(11) NOT NULL auto_increment,
-parent_id int(11) DEFAULT '0' NOT NULL,
-level tinyint(4) DEFAULT '0' NOT NULL,
-PRIMARY KEY (id),
-KEY parent_id (parent_id),
-KEY level (level)
-);
-INSERT INTO t1 VALUES (1,0,0), (3,1,1), (4,1,1), (8,2,2), (9,2,2), (17,3,2),
-(22,4,2), (24,4,2), (28,5,2), (29,5,2), (30,5,2), (31,6,2), (32,6,2), (33,6,2),
-(203,7,2), (202,7,2), (20,3,2), (157,0,0), (193,5,2), (40,7,2), (2,1,1),
-(15,2,2), (6,1,1), (34,6,2), (35,6,2), (16,3,2), (7,1,1), (36,7,2), (18,3,2),
-(26,5,2), (27,5,2), (183,4,2), (38,7,2), (25,5,2), (37,7,2), (21,4,2),
-(19,3,2), (5,1,1), (179,5,2);
-SELECT * FROM t1 WHERE level = 1 AND parent_id = 1;
-id parent_id level
-3 1 1
-4 1 1
-2 1 1
-6 1 1
-7 1 1
-5 1 1
-SELECT * FROM t1 WHERE level = 1 AND parent_id = 1 order by id;
-id parent_id level
-2 1 1
-3 1 1
-4 1 1
-5 1 1
-6 1 1
-7 1 1
-drop table t1;
-create table t1(
-Satellite varchar(25) not null,
-SensorMode varchar(25) not null,
-FullImageCornersUpperLeftLongitude double not null,
-FullImageCornersUpperRightLongitude double not null,
-FullImageCornersUpperRightLatitude double not null,
-FullImageCornersLowerRightLatitude double not null,
-index two (Satellite, SensorMode, FullImageCornersUpperLeftLongitude, FullImageCornersUpperRightLongitude, FullImageCornersUpperRightLatitude, FullImageCornersLowerRightLatitude));
-insert into t1 values("OV-3","PAN1",91,-92,40,50);
-insert into t1 values("OV-4","PAN1",91,-92,40,50);
-select * from t1 where t1.Satellite = "OV-3" and t1.SensorMode = "PAN1" and t1.FullImageCornersUpperLeftLongitude > -90.000000 and t1.FullImageCornersUpperRightLongitude < -82.000000;
-Satellite SensorMode FullImageCornersUpperLeftLongitude FullImageCornersUpperRightLongitude FullImageCornersUpperRightLatitude FullImageCornersLowerRightLatitude
-OV-3 PAN1 91 -92 40 50
-drop table t1;
-create table t1 ( aString char(100) not null default "", key aString (aString(10)) );
-insert t1 (aString) values ( "believe in myself" ), ( "believe" ), ("baaa" ), ( "believe in love");
-select * from t1 where aString < "believe in myself" order by aString;
-aString
-baaa
-believe
-believe in love
-select * from t1 where aString > "believe in love" order by aString;
-aString
-believe in myself
-alter table t1 drop key aString;
-select * from t1 where aString < "believe in myself" order by aString;
-aString
-baaa
-believe
-believe in love
-select * from t1 where aString > "believe in love" order by aString;
-aString
-believe in myself
-drop table t1;
-CREATE TABLE t1 (
-t1ID int(10) unsigned NOT NULL auto_increment,
-art binary(1) NOT NULL default '',
-KNR char(5) NOT NULL default '',
-RECHNR char(6) NOT NULL default '',
-POSNR char(2) NOT NULL default '',
-ARTNR char(10) NOT NULL default '',
-TEX char(70) NOT NULL default '',
-PRIMARY KEY (t1ID),
-KEY IdxArt (art),
-KEY IdxKnr (KNR),
-KEY IdxArtnr (ARTNR)
-) ENGINE=MyISAM;
-INSERT INTO t1 (art) VALUES ('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),('j'),('J'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),
-('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j'),('j');
-select count(*) from t1 where upper(art) = 'J';
-count(*)
-213
-select count(*) from t1 where art = 'J' or art = 'j';
-count(*)
-602
-select count(*) from t1 where art = 'j' or art = 'J';
-count(*)
-602
-select count(*) from t1 where art = 'j';
-count(*)
-389
-select count(*) from t1 where art = 'J';
-count(*)
-213
-drop table t1;
-create table t1 (x int, y int, index(x), index(y));
-insert into t1 (x) values (1),(2),(3),(4),(5),(6),(7),(8),(9);
-update t1 set y=x;
-explain select * from t1, t1 t2 where t1.y = 8 and t2.x between 7 and t1.y+0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref y y 5 const 1
-1 SIMPLE t2 range x x 5 NULL 2 Using index condition; Using where; Rowid-ordered scan; Using join buffer (flat, BNL join)
-explain select * from t1, t1 t2 where t1.y = 8 and t2.x >= 7 and t2.x <= t1.y+0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref y y 5 const 1
-1 SIMPLE t2 range x x 5 NULL 2 Using index condition; Using where; Rowid-ordered scan; Using join buffer (flat, BNL join)
-explain select * from t1, t1 t2 where t1.y = 2 and t2.x between t1.y-1 and t1.y+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref y y 5 const 1
-1 SIMPLE t2 range x x 5 NULL 3 Using index condition; Using where; Rowid-ordered scan; Using join buffer (flat, BNL join)
-explain select * from t1, t1 t2 where t1.y = 2 and t2.x >= t1.y-1 and t2.x <= t1.y+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref y y 5 const 1
-1 SIMPLE t2 range x x 5 NULL 3 Using index condition; Using where; Rowid-ordered scan; Using join buffer (flat, BNL join)
-explain select * from t1, t1 t2 where t1.y = 2 and t2.x between 0 and t1.y;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref y y 5 const 1
-1 SIMPLE t2 range x x 5 NULL 2 Using index condition; Using where; Rowid-ordered scan; Using join buffer (flat, BNL join)
-explain select * from t1, t1 t2 where t1.y = 2 and t2.x >= 0 and t2.x <= t1.y;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref y y 5 const 1
-1 SIMPLE t2 range x x 5 NULL 2 Using index condition; Using where; Rowid-ordered scan; Using join buffer (flat, BNL join)
-explain select count(*) from t1 where x in (1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref x x 5 const 1 Using index
-explain select count(*) from t1 where x in (1,2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index x x 5 NULL 9 Using where; Using index
-drop table t1;
-CREATE TABLE t1 (key1 int(11) NOT NULL default '0', KEY i1 (key1));
-INSERT INTO t1 VALUES (0),(0),(0),(0),(0),(1),(1);
-CREATE TABLE t2 (keya int(11) NOT NULL default '0', KEY j1 (keya));
-INSERT INTO t2 VALUES (0),(0),(1),(1),(2),(2);
-explain select * from t1, t2 where (t1.key1 <t2.keya + 1) and t2.keya=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref j1 j1 4 const 1 Using index
-1 SIMPLE t1 index i1 i1 4 NULL 7 Using where; Using index; Using join buffer (flat, BNL join)
-explain select * from t1 force index(i1), t2 force index(j1) where
-(t1.key1 <t2.keya + 1) and t2.keya=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref j1 j1 4 const 1 Using index
-1 SIMPLE t1 index i1 i1 4 NULL 7 Using where; Using index; Using join buffer (flat, BNL join)
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-a int(11) default NULL,
-b int(11) default NULL,
-KEY a (a),
-KEY b (b)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-(1,1),(2,1),(3,1),(4,1),(5,1),(6,1),(7,1),(8,1),(9,1),(10,2),(10,2),
-(13,2),(14,2),(15,2),(16,2),(17,3),(17,3),(16,3),(17,3),(19,3),(20,3),
-(21,4),(22,5),(23,5),(24,5),(25,5),(26,5),(30,5),(31,5),(32,5),(33,5),
-(33,5),(33,5),(33,5),(33,5),(34,5),(35,5);
-EXPLAIN SELECT * FROM t1 WHERE a IN(1,2) AND b=5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a,b a 5 NULL 2 Using index condition; Using where; Rowid-ordered scan
-SELECT * FROM t1 WHERE a IN(1,2) AND b=5;
-a b
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int, c int, INDEX (c,a,b));
-INSERT INTO t1 VALUES (1,0,0),(1,0,0),(1,0,0);
-INSERT INTO t1 VALUES (0,1,0),(0,1,0),(0,1,0);
-SELECT COUNT(*) FROM t1 WHERE (c=0 and a=1) or (c=0 and b=1);
-COUNT(*)
-6
-SELECT COUNT(*) FROM t1 WHERE (c=0 and b=1) or (c=0 and a=1);
-COUNT(*)
-6
-DROP TABLE t1;
-CREATE TABLE t1 ( a int not null, b int not null, INDEX ab(a,b) );
-INSERT INTO t1 VALUES (47,1), (70,1), (15,1), (15, 4);
-SELECT * FROM t1
-WHERE
-(
-( b =1 AND a BETWEEN 14 AND 21 ) OR
-( b =2 AND a BETWEEN 16 AND 18 ) OR
-( b =3 AND a BETWEEN 15 AND 19 ) OR
-(a BETWEEN 19 AND 47)
-);
-a b
-15 1
-47 1
-DROP TABLE t1;
-CREATE TABLE t1 (
-id int( 11 ) unsigned NOT NULL AUTO_INCREMENT ,
-line int( 5 ) unsigned NOT NULL default '0',
-columnid int( 3 ) unsigned NOT NULL default '0',
-owner int( 3 ) unsigned NOT NULL default '0',
-ordinal int( 3 ) unsigned NOT NULL default '0',
-showid smallint( 6 ) unsigned NOT NULL default '1',
-tableid int( 1 ) unsigned NOT NULL default '1',
-content int( 5 ) unsigned NOT NULL default '188',
-PRIMARY KEY ( owner, id ) ,
-KEY menu( owner, showid, columnid ) ,
-KEY `COLUMN` ( owner, columnid, line ) ,
-KEY `LINES` ( owner, tableid, content, id ) ,
-KEY recount( owner, line )
-) ENGINE = MYISAM;
-INSERT into t1 (owner,id,columnid,line) values (11,15,15,1),(11,13,13,5);
-SELECT id, columnid, tableid, content, showid, line, ordinal FROM t1 WHERE owner=11 AND ((columnid IN ( 15, 13, 14 ) AND line IN ( 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 31 )) OR (columnid IN ( 13, 14 ) AND line IN ( 15 ))) LIMIT 0 , 30;
-id columnid tableid content showid line ordinal
-13 13 1 188 1 5 0
-15 15 1 188 1 1 0
-drop table t1;
-create table t1 (id int(10) primary key);
-insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9);
-select id from t1 where id in (2,5,9) ;
-id
-2
-5
-9
-select id from t1 where id=2 or id=5 or id=9 ;
-id
-2
-5
-9
-drop table t1;
-create table t1 ( id1 int not null, id2 int not null, idnull int null, c char(20), primary key (id1,id2));
-insert into t1 values (0,1,NULL,"aaa"), (1,1,NULL,"aaa"), (2,1,NULL,"aaa"),
-(3,1,NULL,"aaa"), (4,1,NULL,"aaa"), (5,1,NULL,"aaa"),
-(6,1,NULL,"aaa"), (7,1,NULL,"aaa"), (8,1,NULL,"aaa"),
-(9,1,NULL,"aaa"), (10,1,NULL,"aaa"), (11,1,NULL,"aaa"),
-(12,1,NULL,"aaa"), (13,1,NULL,"aaa"), (14,1,NULL,"aaa"),
-(15,1,NULL,"aaa"), (16,1,NULL,"aaa"), (17,1,NULL,"aaa"),
-(18,1,NULL,"aaa"), (19,1,NULL,"aaa"), (20,1,NULL,"aaa");
-select a.id1, b.idnull from t1 as a, t1 as b where a.id2=1 and a.id1=1 and b.id1=a.idnull order by b.id2 desc limit 1;
-id1 idnull
-drop table t1;
-create table t1 (
-id int not null auto_increment,
-name char(1) not null,
-uid int not null,
-primary key (id),
-index uid_index (uid));
-create table t2 (
-id int not null auto_increment,
-name char(1) not null,
-uid int not null,
-primary key (id),
-index uid_index (uid));
-insert into t1(id, uid, name) values(1, 0, ' ');
-insert into t1(uid, name) values(0, ' ');
-insert into t2(uid, name) select uid, name from t1;
-insert into t1(uid, name) select uid, name from t2;
-insert into t2(uid, name) select uid, name from t1;
-insert into t1(uid, name) select uid, name from t2;
-insert into t2(uid, name) select uid, name from t1;
-insert into t1(uid, name) select uid, name from t2;
-insert into t2(uid, name) select uid, name from t1;
-insert into t1(uid, name) select uid, name from t2;
-insert into t2(uid, name) select uid, name from t1;
-insert into t1(uid, name) select uid, name from t2;
-insert into t2(uid, name) select uid, name from t1;
-insert into t2(uid, name) select uid, name from t1;
-insert into t2(uid, name) select uid, name from t1;
-insert into t2(uid, name) select uid, name from t1;
-insert into t1(uid, name) select uid, name from t2;
-delete from t2;
-insert into t2(uid, name) values
-(1, CHAR(64+1)),
-(2, CHAR(64+2)),
-(3, CHAR(64+3)),
-(4, CHAR(64+4)),
-(5, CHAR(64+5)),
-(6, CHAR(64+6)),
-(7, CHAR(64+7)),
-(8, CHAR(64+8)),
-(9, CHAR(64+9)),
-(10, CHAR(64+10)),
-(11, CHAR(64+11)),
-(12, CHAR(64+12)),
-(13, CHAR(64+13)),
-(14, CHAR(64+14)),
-(15, CHAR(64+15)),
-(16, CHAR(64+16)),
-(17, CHAR(64+17)),
-(18, CHAR(64+18)),
-(19, CHAR(64+19)),
-(20, CHAR(64+20)),
-(21, CHAR(64+21)),
-(22, CHAR(64+22)),
-(23, CHAR(64+23)),
-(24, CHAR(64+24)),
-(25, CHAR(64+25)),
-(26, CHAR(64+26));
-insert into t1(uid, name) select uid, name from t2 order by uid;
-delete from t2;
-insert into t2(id, uid, name) select id, uid, name from t1;
-select count(*) from t1;
-count(*)
-1026
-select count(*) from t2;
-count(*)
-1026
-analyze table t1,t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-test.t2 analyze status Table is already up to date
-explain select * from t1, t2 where t1.uid=t2.uid AND t1.uid > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range uid_index uid_index 4 NULL 112 Using index condition; Rowid-ordered scan
-1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid 38
-explain select * from t1, t2 where t1.uid=t2.uid AND t2.uid > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range uid_index uid_index 4 NULL 112 Using index condition; Rowid-ordered scan
-1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid 38
-explain select * from t1, t2 where t1.uid=t2.uid AND t1.uid != 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range uid_index uid_index 4 NULL 113 Using index condition; Rowid-ordered scan
-1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid 38
-explain select * from t1, t2 where t1.uid=t2.uid AND t2.uid != 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range uid_index uid_index 4 NULL 113 Using index condition; Rowid-ordered scan
-1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid 38
-select * from t1, t2 where t1.uid=t2.uid AND t1.uid > 0;
-id name uid id name uid
-1001 A 1 1001 A 1
-1002 B 2 1002 B 2
-1003 C 3 1003 C 3
-1004 D 4 1004 D 4
-1005 E 5 1005 E 5
-1006 F 6 1006 F 6
-1007 G 7 1007 G 7
-1008 H 8 1008 H 8
-1009 I 9 1009 I 9
-1010 J 10 1010 J 10
-1011 K 11 1011 K 11
-1012 L 12 1012 L 12
-1013 M 13 1013 M 13
-1014 N 14 1014 N 14
-1015 O 15 1015 O 15
-1016 P 16 1016 P 16
-1017 Q 17 1017 Q 17
-1018 R 18 1018 R 18
-1019 S 19 1019 S 19
-1020 T 20 1020 T 20
-1021 U 21 1021 U 21
-1022 V 22 1022 V 22
-1023 W 23 1023 W 23
-1024 X 24 1024 X 24
-1025 Y 25 1025 Y 25
-1026 Z 26 1026 Z 26
-select * from t1, t2 where t1.uid=t2.uid AND t1.uid != 0;
-id name uid id name uid
-1001 A 1 1001 A 1
-1002 B 2 1002 B 2
-1003 C 3 1003 C 3
-1004 D 4 1004 D 4
-1005 E 5 1005 E 5
-1006 F 6 1006 F 6
-1007 G 7 1007 G 7
-1008 H 8 1008 H 8
-1009 I 9 1009 I 9
-1010 J 10 1010 J 10
-1011 K 11 1011 K 11
-1012 L 12 1012 L 12
-1013 M 13 1013 M 13
-1014 N 14 1014 N 14
-1015 O 15 1015 O 15
-1016 P 16 1016 P 16
-1017 Q 17 1017 Q 17
-1018 R 18 1018 R 18
-1019 S 19 1019 S 19
-1020 T 20 1020 T 20
-1021 U 21 1021 U 21
-1022 V 22 1022 V 22
-1023 W 23 1023 W 23
-1024 X 24 1024 X 24
-1025 Y 25 1025 Y 25
-1026 Z 26 1026 Z 26
-drop table t1,t2;
-create table t1 (x bigint unsigned not null);
-insert into t1(x) values (0xfffffffffffffff0);
-insert into t1(x) values (0xfffffffffffffff1);
-select * from t1;
-x
-18446744073709551600
-18446744073709551601
-select count(*) from t1 where x>0;
-count(*)
-2
-select count(*) from t1 where x=0;
-count(*)
-0
-select count(*) from t1 where x<0;
-count(*)
-0
-select count(*) from t1 where x < -16;
-count(*)
-0
-select count(*) from t1 where x = -16;
-count(*)
-0
-select count(*) from t1 where x > -16;
-count(*)
-2
-select count(*) from t1 where x = 18446744073709551601;
-count(*)
-1
-create table t2 (x bigint not null);
-insert into t2(x) values (-16);
-insert into t2(x) values (-15);
-select * from t2;
-x
--16
--15
-select count(*) from t2 where x>0;
-count(*)
-0
-select count(*) from t2 where x=0;
-count(*)
-0
-select count(*) from t2 where x<0;
-count(*)
-2
-select count(*) from t2 where x < -16;
-count(*)
-0
-select count(*) from t2 where x = -16;
-count(*)
-1
-select count(*) from t2 where x > -16;
-count(*)
-1
-select count(*) from t2 where x = 18446744073709551601;
-count(*)
-0
-drop table t1,t2;
-create table t1 (x bigint unsigned not null primary key) engine=innodb;
-insert into t1(x) values (0xfffffffffffffff0);
-insert into t1(x) values (0xfffffffffffffff1);
-select * from t1;
-x
-18446744073709551600
-18446744073709551601
-select count(*) from t1 where x>0;
-count(*)
-2
-select count(*) from t1 where x=0;
-count(*)
-0
-select count(*) from t1 where x<0;
-count(*)
-0
-select count(*) from t1 where x < -16;
-count(*)
-0
-select count(*) from t1 where x = -16;
-count(*)
-0
-select count(*) from t1 where x > -16;
-count(*)
-2
-select count(*) from t1 where x = 18446744073709551601;
-count(*)
-1
-drop table t1;
-create table t1 (a bigint unsigned);
-create index t1i on t1(a);
-insert into t1 select 18446744073709551615;
-insert into t1 select 18446744073709551614;
-explain select * from t1 where a <> -1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index t1i t1i 9 NULL 2 Using where; Using index
-select * from t1 where a <> -1;
-a
-18446744073709551614
-18446744073709551615
-explain select * from t1 where a > -1 or a < -1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index t1i t1i 9 NULL 2 Using where; Using index
-select * from t1 where a > -1 or a < -1;
-a
-18446744073709551614
-18446744073709551615
-explain select * from t1 where a > -1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index t1i t1i 9 NULL 2 Using where; Using index
-select * from t1 where a > -1;
-a
-18446744073709551614
-18446744073709551615
-explain select * from t1 where a < -1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-select * from t1 where a < -1;
-a
-drop table t1;
-set names latin1;
-create table t1 (a char(10), b text, key (a)) character set latin1;
-INSERT INTO t1 (a) VALUES
-('111'),('222'),('222'),('222'),('222'),('444'),('aaa'),('AAA'),('bbb');
-explain select * from t1 where a='aaa';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 11 const 2 Using index condition
-explain select * from t1 where a=binary 'aaa';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 11 const 2 Using index condition
-explain select * from t1 where a='aaa' collate latin1_bin;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 11 const 2 Using index condition
-explain select * from t1 where a='aaa' collate latin1_german1_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL a NULL NULL NULL 9 Using where
-drop table t1;
-CREATE TABLE t1 (
-`CLIENT` char(3) character set latin1 collate latin1_bin NOT NULL default '000',
-`ARG1` char(3) character set latin1 collate latin1_bin NOT NULL default '',
-`ARG2` char(3) character set latin1 collate latin1_bin NOT NULL default '',
-`FUNCTION` varchar(10) character set latin1 collate latin1_bin NOT NULL default '',
-`FUNCTINT` int(11) NOT NULL default '0',
-KEY `VERI_CLNT~2` (`ARG1`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES ('000',' 0',' 0','Text 001',0), ('000',' 0',' 1','Text 002',0),
-('000',' 1',' 2','Text 003',0), ('000',' 2',' 3','Text 004',0),
-('001',' 3',' 0','Text 017',0);
-SELECT count(*) FROM t1 WHERE CLIENT='000' AND (ARG1 != ' 1' OR ARG1 != ' 2');
-count(*)
-4
-SELECT count(*) FROM t1 WHERE CLIENT='000' AND (ARG1 != ' 2' OR ARG1 != ' 1');
-count(*)
-4
-drop table t1;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-CREATE TABLE t2 (
-pk1 int(11) NOT NULL,
-pk2 int(11) NOT NULL,
-pk3 int(11) NOT NULL,
-pk4 int(11) NOT NULL,
-filler char(82),
-PRIMARY KEY (pk1,pk2,pk3,pk4)
-) DEFAULT CHARSET=latin1;
-insert into t2 select 1, A.a+10*B.a, 432, 44, 'fillerZ' from t1 A, t1 B;
-INSERT INTO t2 VALUES (2621, 2635, 0, 0,'filler'), (2621, 2635, 1, 0,'filler'),
-(2621, 2635, 10, 0,'filler'), (2621, 2635, 11, 0,'filler'),
-(2621, 2635, 14, 0,'filler'), (2621, 2635, 1000015, 0,'filler');
-SELECT * FROM t2
-WHERE ((((pk4 =0) AND (pk1 =2621) AND (pk2 =2635)))
-OR ((pk4 =1) AND (((pk1 IN ( 7, 2, 1 ))) OR (pk1 =522)) AND ((pk2 IN ( 0, 2635))))
-) AND (pk3 >=1000000);
-pk1 pk2 pk3 pk4 filler
-2621 2635 1000015 0 filler
-drop table t1, t2;
-create table t1(a char(2), key(a(1)));
-insert into t1 values ('x'), ('xx');
-explain select a from t1 where a > 'x';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 2 NULL 2 Using where
-select a from t1 where a > 'x';
-a
-xx
-drop table t1;
-CREATE TABLE t1 (
-OXID varchar(32) COLLATE latin1_german2_ci NOT NULL DEFAULT '',
-OXPARENTID varchar(32) COLLATE latin1_german2_ci NOT NULL DEFAULT 'oxrootid',
-OXLEFT int NOT NULL DEFAULT '0',
-OXRIGHT int NOT NULL DEFAULT '0',
-OXROOTID varchar(32) COLLATE latin1_german2_ci NOT NULL DEFAULT '',
-PRIMARY KEY (OXID),
-KEY OXNID (OXID),
-KEY OXLEFT (OXLEFT),
-KEY OXRIGHT (OXRIGHT),
-KEY OXROOTID (OXROOTID)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci;
-INSERT INTO t1 VALUES
-('d8c4177d09f8b11f5.52725521','oxrootid',1,40,'d8c4177d09f8b11f5.52725521'),
-('d8c4177d151affab2.81582770','d8c4177d09f8b11f5.52725521',2,3,
-'d8c4177d09f8b11f5.52725521'),
-('d8c4177d206a333d2.74422679','d8c4177d09f8b11f5.52725521',4,5,
-'d8c4177d09f8b11f5.52725521'),
-('d8c4177d225791924.30714720','d8c4177d09f8b11f5.52725521',6,7,
-'d8c4177d09f8b11f5.52725521'),
-('d8c4177d2380fc201.39666693','d8c4177d09f8b11f5.52725521',8,9,
-'d8c4177d09f8b11f5.52725521'),
-('d8c4177d24ccef970.14957924','d8c4177d09f8b11f5.52725521',10,11,
-'d8c4177d09f8b11f5.52725521');
-INSERT INTO t1 VALUES
-('d8c4177d09f8b11f5.52725522','oxrootid',1,40,'d8c4177d09f8b11f5.52725522'),
-('d8c4177d151affab2.81582771','d8c4177d09f8b11f5.52725521',2,3,
-'d8c4177d09f8b11f5.52725522'),
-('d8c4177d206a333d2.74422678','d8c4177d09f8b11f5.52725521',4,5,
-'d8c4177d09f8b11f5.52725522'),
-('d8c4177d225791924.30714721','d8c4177d09f8b11f5.52725521',6,7,
-'d8c4177d09f8b11f5.52725522'),
-('d8c4177d2380fc201.39666694','d8c4177d09f8b11f5.52725521',8,9,
-'d8c4177d09f8b11f5.52725522'),
-('d8c4177d24ccef970.14957925','d8c4177d09f8b11f5.52725521',10,11,
-'d8c4177d09f8b11f5.52725522');
-EXPLAIN
-SELECT s.oxid FROM t1 v, t1 s
-WHERE
-v.oxrootid ='d8c4177d09f8b11f5.52725521' AND
-s.oxleft > v.oxleft AND s.oxleft < v.oxright;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE v ref OXLEFT,OXRIGHT,OXROOTID OXROOTID 34 const 5 Using index condition
-1 SIMPLE s ALL OXLEFT NULL NULL NULL 12 Range checked for each record (index map: 0x4)
-SELECT s.oxid FROM t1 v, t1 s
-WHERE
-v.oxrootid ='d8c4177d09f8b11f5.52725521' AND
-s.oxleft > v.oxleft AND s.oxleft < v.oxright;
-oxid
-d8c4177d151affab2.81582770
-d8c4177d206a333d2.74422679
-d8c4177d225791924.30714720
-d8c4177d2380fc201.39666693
-d8c4177d24ccef970.14957924
-d8c4177d151affab2.81582771
-d8c4177d206a333d2.74422678
-d8c4177d225791924.30714721
-d8c4177d2380fc201.39666694
-d8c4177d24ccef970.14957925
-DROP TABLE t1;
-create table t1 (
-c1 char(10), c2 char(10), c3 char(10), c4 char(10),
-c5 char(10), c6 char(10), c7 char(10), c8 char(10),
-c9 char(10), c10 char(10), c11 char(10), c12 char(10),
-c13 char(10), c14 char(10), c15 char(10), c16 char(10),
-index(c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,c13,c14,c15,c16)
-);
-insert into t1 (c1) values ('1'),('1'),('1'),('1');
-select * from t1 where
-c1 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c2 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c3 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c4 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c5 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c6 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c7 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c8 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c9 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
-and c10 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
-"abcdefg1", "123456781", "qwertyui1", "asddfg1",
-"abcdefg2", "123456782", "qwertyui2", "asddfg2",
-"abcdefg3", "123456783", "qwertyui3", "asddfg3",
-"abcdefg4", "123456784", "qwertyui4", "asddfg4",
-"abcdefg5", "123456785", "qwertyui5", "asddfg5",
-"abcdefg6", "123456786", "qwertyui6", "asddfg6",
-"abcdefg7", "123456787", "qwertyui7", "asddfg7",
-"abcdefg8", "123456788", "qwertyui8", "asddfg8",
-"abcdefg9", "123456789", "qwertyui9", "asddfg9",
-"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
-"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
-"abcdefgC", "12345678C", "qwertyuiC", "asddfgC");
-c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16
-drop table t1;
-End of 4.1 tests
-CREATE TABLE t1 (
-id int(11) NOT NULL auto_increment,
-status varchar(20),
-PRIMARY KEY (id),
-KEY (status)
-);
-INSERT INTO t1 VALUES
-(1,'B'), (2,'B'), (3,'B'), (4,'B'), (5,'B'), (6,'B'),
-(7,'B'), (8,'B'), (9,'B'), (10,'B'), (11,'B'), (12,'B'),
-(13,'B'), (14,'B'), (15,'B'), (16,'B'), (17,'B'), (18,'B'),
-(19,'B'), (20,'B'), (21,'B'), (22,'B'), (23,'B'), (24,'B'),
-(25,'A'), (26,'A'), (27,'A'), (28,'A'), (29,'A'), (30,'A'),
-(31,'A'), (32,'A'), (33,'A'), (34,'A'), (35,'A'), (36,'A'),
-(37,'A'), (38,'A'), (39,'A'), (40,'A'), (41,'A'), (42,'A'),
-(43,'A'), (44,'A'), (45,'A'), (46,'A'), (47,'A'), (48,'A'),
-(49,'A'), (50,'A'), (51,'A'), (52,'A'), (53,'C'), (54,'C'),
-(55,'C'), (56,'C'), (57,'C'), (58,'C'), (59,'C'), (60,'C');
-EXPLAIN SELECT * FROM t1 WHERE status <> 'A' AND status <> 'B';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range status status 23 NULL 11 Using index condition; Rowid-ordered scan
-EXPLAIN SELECT * FROM t1 WHERE status NOT IN ('A','B');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range status status 23 NULL 11 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE status <> 'A' AND status <> 'B';
-id status
-53 C
-54 C
-55 C
-56 C
-57 C
-58 C
-59 C
-60 C
-SELECT * FROM t1 WHERE status NOT IN ('A','B');
-id status
-53 C
-54 C
-55 C
-56 C
-57 C
-58 C
-59 C
-60 C
-EXPLAIN SELECT status FROM t1 WHERE status <> 'A' AND status <> 'B';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range status status 23 NULL 11 Using where; Using index
-EXPLAIN SELECT status FROM t1 WHERE status NOT IN ('A','B');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range status status 23 NULL 11 Using where; Using index
-EXPLAIN SELECT * FROM t1 WHERE status NOT BETWEEN 'A' AND 'B';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range status status 23 NULL 10 Using index condition; Rowid-ordered scan
-EXPLAIN SELECT * FROM t1 WHERE status < 'A' OR status > 'B';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range status status 23 NULL 10 Using index condition; Using where; Rowid-ordered scan
-SELECT * FROM t1 WHERE status NOT BETWEEN 'A' AND 'B';
-id status
-53 C
-54 C
-55 C
-56 C
-57 C
-58 C
-59 C
-60 C
-SELECT * FROM t1 WHERE status < 'A' OR status > 'B';
-id status
-53 C
-54 C
-55 C
-56 C
-57 C
-58 C
-59 C
-60 C
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int, primary key(a,b));
-INSERT INTO t1 VALUES
-(1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1),(3,2),(3,3),(4,1),(4,2),(4,3);
-CREATE VIEW v1 as SELECT a,b FROM t1 WHERE b=3;
-EXPLAIN SELECT a,b FROM t1 WHERE a < 2 and b=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-EXPLAIN SELECT a,b FROM v1 WHERE a < 2 and b=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-EXPLAIN SELECT a,b FROM t1 WHERE a < 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-EXPLAIN SELECT a,b FROM v1 WHERE a < 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using where; Using index
-SELECT a,b FROM t1 WHERE a < 2 and b=3;
-a b
-1 3
-SELECT a,b FROM v1 WHERE a < 2 and b=3;
-a b
-1 3
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (name varchar(15) NOT NULL, KEY idx(name));
-INSERT INTO t1 VALUES ('Betty'), ('Anna');
-SELECT * FROM t1;
-name
-Anna
-Betty
-DELETE FROM t1 WHERE name NOT LIKE 'A%a';
-SELECT * FROM t1;
-name
-Anna
-DROP TABLE t1;
-CREATE TABLE t1 (a int, KEY idx(a));
-INSERT INTO t1 VALUES (NULL), (1), (2), (3);
-SELECT * FROM t1;
-a
-NULL
-1
-2
-3
-DELETE FROM t1 WHERE NOT(a <=> 2);
-SELECT * FROM t1;
-a
-2
-DROP TABLE t1;
-create table t1 (a int, b int, primary key(a,b));
-create view v1 as select a, b from t1;
-INSERT INTO `t1` VALUES
-(0,0),(1,0),(2,0),(3,0),(4,0),(5,1),(6,1),(7,1),(8,1),(9,1),(10,2),(11,2),(12,2)
-,(13,2),(14,2),(15,3),(16,3),(17,3),(18,3),(19,3);
-explain select * from t1 where a in (3,4) and b in (1,2,3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 8 NULL # Using where; Using index
-explain select * from v1 where a in (3,4) and b in (1,2,3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 8 NULL # Using where; Using index
-explain select * from t1 where a between 3 and 4 and b between 1 and 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 8 NULL # Using where; Using index
-explain select * from v1 where a between 3 and 4 and b between 1 and 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 8 NULL # Using where; Using index
-drop view v1;
-drop table t1;
-create table t3 (a int);
-insert into t3 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a varchar(10), filler char(200), key(a)) charset=binary;
-insert into t1 values ('a','');
-insert into t1 values ('a ','');
-insert into t1 values ('a ', '');
-insert into t1 select concat('a', 1000 + A.a + 10 * (B.a + 10 * C.a)), ''
- from t3 A, t3 B, t3 C;
-create table t2 (a varchar(10), filler char(200), key(a));
-insert into t2 select * from t1;
-explain select * from t1 where a between 'a' and 'a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 13 NULL # Using index condition; Rowid-ordered scan
-explain select * from t1 where a = 'a' or a='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 13 NULL # Using index condition; Using where; Rowid-ordered scan
-explain select * from t2 where a between 'a' and 'a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref a a 13 const # Using index condition
-explain select * from t2 where a = 'a' or a='a ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref a a 13 const # Using index condition; Using where
-update t1 set a='b' where a<>'a';
-explain select * from t1 where a not between 'b' and 'b';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 13 NULL # Using index condition; Rowid-ordered scan
-select a, hex(filler) from t1 where a not between 'b' and 'b';
-a hex(filler)
-a 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-drop table t1,t2,t3;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, key(a));
-insert into t2 select 2*(A.a + 10*(B.a + 10*C.a)) from t1 A, t1 B, t1 C;
-set @a="select * from t2 force index (a) where a NOT IN(0";
-select count(*) from (select @a:=concat(@a, ',', a) from t2 ) Z;
-count(*)
-1000
-set @a=concat(@a, ')');
-insert into t2 values (11),(13),(15);
-set @b= concat("explain ", @a);
-prepare stmt1 from @b;
-execute stmt1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index NULL a 5 NULL 1003 Using where; Using index
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL No tables used
-prepare stmt1 from @a;
-execute stmt1;
-a
-11
-13
-15
-drop table t1, t2;
-CREATE TABLE t1 (
-id int NOT NULL DEFAULT '0',
-b int NOT NULL DEFAULT '0',
-c int NOT NULL DEFAULT '0',
-INDEX idx1(b,c), INDEX idx2(c));
-INSERT INTO t1(id) VALUES (1), (2), (3), (4), (5), (6), (7), (8);
-INSERT INTO t1(b,c) VALUES (3,4), (3,4);
-SELECT * FROM t1 WHERE b<=3 AND 3<=c;
-id b c
-0 3 4
-0 3 4
-SELECT * FROM t1 WHERE 3 BETWEEN b AND c;
-id b c
-0 3 4
-0 3 4
-EXPLAIN SELECT * FROM t1 WHERE b<=3 AND 3<=c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx1,idx2 idx2 4 NULL 3 Using index condition; Using where; Rowid-ordered scan
-EXPLAIN SELECT * FROM t1 WHERE 3 BETWEEN b AND c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx1,idx2 idx2 4 NULL 3 Using where; Rowid-ordered scan
-SELECT * FROM t1 WHERE 0 < b OR 0 > c;
-id b c
-0 3 4
-0 3 4
-SELECT * FROM t1 WHERE 0 NOT BETWEEN b AND c;
-id b c
-0 3 4
-0 3 4
-EXPLAIN SELECT * FROM t1 WHERE 0 < b OR 0 > c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge idx1,idx2 idx1,idx2 4,4 NULL 4 Using sort_union(idx1,idx2); Using where
-EXPLAIN SELECT * FROM t1 WHERE 0 NOT BETWEEN b AND c;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge idx1,idx2 idx1,idx2 4,4 NULL 4 Using sort_union(idx1,idx2); Using where
-DROP TABLE t1;
-CREATE TABLE t1 (
-item char(20) NOT NULL default '',
-started datetime NOT NULL default '0000-00-00 00:00:00',
-price decimal(16,3) NOT NULL default '0.000',
-PRIMARY KEY (item,started)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-('A1','2005-11-01 08:00:00',1000),
-('A1','2005-11-15 00:00:00',2000),
-('A1','2005-12-12 08:00:00',3000),
-('A2','2005-12-01 08:00:00',1000);
-EXPLAIN SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-01 24:00:00';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref PRIMARY PRIMARY 20 const 2 Using index condition
-SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-01 24:00:00';
-item started price
-Warnings:
-Warning 1292 Incorrect datetime value: '2005-12-01 24:00:00'
-SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-02 00:00:00';
-item started price
-A1 2005-11-01 08:00:00 1000.000
-A1 2005-11-15 00:00:00 2000.000
-DROP INDEX `PRIMARY` ON t1;
-EXPLAIN SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-01 24:00:00';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-01 24:00:00';
-item started price
-Warnings:
-Warning 1292 Incorrect datetime value: '2005-12-01 24:00:00'
-SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-02 00:00:00';
-item started price
-A1 2005-11-01 08:00:00 1000.000
-A1 2005-11-15 00:00:00 2000.000
-DROP TABLE t1;
-
-BUG#32198 "Comparison of DATE with DATETIME still not using indexes correctly"
-
-CREATE TABLE t1 (
-id int(11) NOT NULL auto_increment,
-dateval date default NULL,
-PRIMARY KEY (id),
-KEY dateval (dateval)
-) AUTO_INCREMENT=173;
-INSERT INTO t1 VALUES
-(1,'2007-01-01'),(2,'2007-01-02'),(3,'2007-01-03'),(4,'2007-01-04'),
-(5,'2007-01-05'),(6,'2007-01-06'),(7,'2007-01-07'),(8,'2007-01-08'),
-(9,'2007-01-09'),(10,'2007-01-10'),(11,'2007-01-11');
-This must use range access:
-explain select * from t1 where dateval >= '2007-01-01 00:00:00' and dateval <= '2007-01-02 23:59:59';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range dateval dateval 4 NULL 2 Using index condition; Rowid-ordered scan
-drop table t1;
-CREATE TABLE t1 (
-a varchar(32), index (a)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_bin;
-INSERT INTO t1 VALUES
-('B'), ('A'), ('A'), ('C'), ('B'), ('A'), ('A');
-SELECT a FROM t1 WHERE a='b' OR a='B';
-a
-B
-B
-EXPLAIN SELECT a FROM t1 WHERE a='b' OR a='B';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 35 NULL 3 Using where; Using index
-DROP TABLE t1;
-CREATE TABLE t1 (f1 TINYINT(11) UNSIGNED NOT NULL, PRIMARY KEY (f1));
-INSERT INTO t1 VALUES (127),(254),(0),(1),(255);
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 < 256;
-COUNT(*)
-5
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 < 256.0;
-COUNT(*)
-5
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 < 255;
-COUNT(*)
-4
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 < -1;
-COUNT(*)
-0
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 > -1;
-COUNT(*)
-5
-DROP TABLE t1;
-CREATE TABLE t1 ( f1 TINYINT(11) NOT NULL, PRIMARY KEY (f1));
-INSERT INTO t1 VALUES (127),(126),(0),(-128),(-127);
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 < 128;
-COUNT(*)
-5
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 < 128.0;
-COUNT(*)
-5
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 < 127;
-COUNT(*)
-4
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 > -129;
-COUNT(*)
-5
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 > -129.0;
-COUNT(*)
-5
-SELECT SQL_NO_CACHE COUNT(*) FROM t1 WHERE f1 > -128;
-COUNT(*)
-4
-DROP TABLE t1;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, filler char(100));
-insert into t2 select A.a + 10 * (B.a + 10 * C.a), 10, 'filler' from t1 A,
-t1 B, t1 C where A.a < 5;
-insert into t2 select 1000, b, 'filler' from t2;
-alter table t2 add index (a,b);
-select 'In following EXPLAIN the access method should be ref, #rows~=500 (and not 2)' Z;
-Z
-In following EXPLAIN the access method should be ref, #rows~=500 (and not 2)
-explain select * from t2 where a=1000 and b<11;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref a a 5 const 502 Using index condition
-drop table t1, t2;
-CREATE TABLE t1( a INT, b INT, KEY( a, b ) );
-CREATE TABLE t2( a INT, b INT, KEY( a, b ) );
-CREATE TABLE t3( a INT, b INT, KEY( a, b ) );
-INSERT INTO t1( a, b )
-VALUES (0, 1), (1, 2), (1, 4), (2, 3), (5, 0), (9, 7);
-INSERT INTO t2( a, b )
-VALUES ( 1, 1), ( 2, 1), ( 3, 1), ( 4, 1), ( 5, 1),
-( 6, 1), ( 7, 1), ( 8, 1), ( 9, 1), (10, 1),
-(11, 1), (12, 1), (13, 1), (14, 1), (15, 1),
-(16, 1), (17, 1), (18, 1), (19, 1), (20, 1);
-INSERT INTO t2 SELECT a, 2 FROM t2 WHERE b = 1;
-INSERT INTO t2 SELECT a, 3 FROM t2 WHERE b = 1;
-INSERT INTO t2 SELECT -1, -1 FROM t2;
-INSERT INTO t2 SELECT -1, -1 FROM t2;
-INSERT INTO t2 SELECT -1, -1 FROM t2;
-INSERT INTO t3
-VALUES (1, 0), (2, 0), (3, 0), (4, 0), (5, 0),
-(6, 0), (7, 0), (8, 0), (9, 0), (10, 0);
-INSERT INTO t3 SELECT * FROM t3 WHERE a = 10;
-INSERT INTO t3 SELECT * FROM t3 WHERE a = 10;
-SELECT * FROM t1 WHERE
-3 <= a AND a < 5 OR
-5 < a AND b = 3 OR
-3 <= a;
-a b
-5 0
-9 7
-EXPLAIN
-SELECT * FROM t1 WHERE
-3 <= a AND a < 5 OR
-5 < a AND b = 3 OR
-3 <= a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE
-3 <= a AND a < 5 OR
-5 <= a AND b = 3 OR
-3 <= a;
-a b
-5 0
-9 7
-EXPLAIN
-SELECT * FROM t1 WHERE
-3 <= a AND a < 5 OR
-5 <= a AND b = 3 OR
-3 <= a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 4 Using where; Using index
-SELECT * FROM t1 WHERE
-3 <= a AND a <= 5 OR
-5 <= a AND b = 3 OR
-3 <= a;
-a b
-5 0
-9 7
-EXPLAIN
-SELECT * FROM t1 WHERE
-3 <= a AND a <= 5 OR
-5 <= a AND b = 3 OR
-3 <= a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 3 Using where; Using index
-SELECT * FROM t1 WHERE
-3 <= a AND a <= 5 OR
-3 <= a;
-a b
-5 0
-9 7
-EXPLAIN
-SELECT * FROM t1 WHERE
-3 <= a AND a <= 5 OR
-3 <= a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 3 Using where; Using index
-SELECT * FROM t2 WHERE
-5 <= a AND a < 10 AND b = 1 OR
-15 <= a AND a < 20 AND b = 3
-OR
-1 <= a AND b = 1;
-a b
-1 1
-2 1
-3 1
-4 1
-5 1
-6 1
-7 1
-8 1
-9 1
-10 1
-11 1
-12 1
-13 1
-14 1
-15 1
-15 3
-16 1
-16 3
-17 1
-17 3
-18 1
-18 3
-19 1
-19 3
-20 1
-EXPLAIN
-SELECT * FROM t2 WHERE
-5 <= a AND a < 10 AND b = 1 OR
-15 <= a AND a < 20 AND b = 3
-OR
-1 <= a AND b = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 10 NULL 50 Using where; Using index
-SELECT * FROM t2 WHERE
-5 <= a AND a < 10 AND b = 2 OR
-15 <= a AND a < 20 AND b = 3
-OR
-1 <= a AND b = 1;
-a b
-1 1
-2 1
-3 1
-4 1
-5 1
-5 2
-6 1
-6 2
-7 1
-7 2
-8 1
-8 2
-9 1
-9 2
-10 1
-11 1
-12 1
-13 1
-14 1
-15 1
-15 3
-16 1
-16 3
-17 1
-17 3
-18 1
-18 3
-19 1
-19 3
-20 1
-EXPLAIN
-SELECT * FROM t2 WHERE
-5 <= a AND a < 10 AND b = 2 OR
-15 <= a AND a < 20 AND b = 3
-OR
-1 <= a AND b = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 10 NULL 50 Using where; Using index
-SELECT * FROM t3 WHERE
-5 <= a AND a < 10 AND b = 3 OR
-a < 5 OR
-a < 10;
-a b
-1 0
-2 0
-3 0
-4 0
-5 0
-6 0
-7 0
-8 0
-9 0
-EXPLAIN
-SELECT * FROM t3 WHERE
-5 <= a AND a < 10 AND b = 3 OR
-a < 5 OR
-a < 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 range a a 5 NULL 8 Using where; Using index
-DROP TABLE t1, t2, t3;
-#
-# Bug #47123: Endless 100% CPU loop with STRAIGHT_JOIN
-#
-CREATE TABLE t1(a INT, KEY(a));
-INSERT INTO t1 VALUES (1), (NULL);
-SELECT * FROM t1 WHERE a <> NULL and (a <> NULL or a <= NULL);
-a
-DROP TABLE t1;
-#
-# Bug#47925: regression of range optimizer and date comparison in 5.1.39!
-#
-CREATE TABLE t1 ( a DATE, KEY ( a ) );
-CREATE TABLE t2 ( a DATETIME, KEY ( a ) );
-# Make optimizer choose range scan
-INSERT INTO t1 VALUES ('2009-09-22'), ('2009-09-22'), ('2009-09-22');
-INSERT INTO t1 VALUES ('2009-09-23'), ('2009-09-23'), ('2009-09-23');
-INSERT INTO t2 VALUES ('2009-09-22 12:00:00'), ('2009-09-22 12:00:00'),
-('2009-09-22 12:00:00');
-INSERT INTO t2 VALUES ('2009-09-23 12:00:00'), ('2009-09-23 12:00:00'),
-('2009-09-23 12:00:00');
-# DATE vs DATE
-EXPLAIN
-SELECT * FROM t1 WHERE a >= '2009/09/23';
-id select_type table type possible_keys key key_len ref rows Extra
-X X X range a a X X X X
-SELECT * FROM t1 WHERE a >= '2009/09/23';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '20090923';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= 20090923;
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '2009-9-23';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '2009.09.23';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '2009:09:23';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-# DATE vs DATETIME
-EXPLAIN
-SELECT * FROM t2 WHERE a >= '2009/09/23';
-id select_type table type possible_keys key key_len ref rows Extra
-X X X range a a X X X X
-SELECT * FROM t2 WHERE a >= '2009/09/23';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '2009/09/23';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '20090923';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= 20090923;
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '2009-9-23';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '2009.09.23';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '2009:09:23';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-# DATETIME vs DATETIME
-EXPLAIN
-SELECT * FROM t2 WHERE a >= '2009/09/23 12:00:00';
-id select_type table type possible_keys key key_len ref rows Extra
-X X X range a a X X X X
-SELECT * FROM t2 WHERE a >= '2009/09/23 12:00:00';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '20090923120000';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= 20090923120000;
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '2009-9-23 12:00:00';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '2009.09.23 12:00:00';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-SELECT * FROM t2 WHERE a >= '2009:09:23 12:00:00';
-a
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-2009-09-23 12:00:00
-# DATETIME vs DATE
-EXPLAIN
-SELECT * FROM t1 WHERE a >= '2009/09/23 00:00:00';
-id select_type table type possible_keys key key_len ref rows Extra
-X X X range a a X X X X
-SELECT * FROM t1 WHERE a >= '2009/09/23 00:00:00';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '2009/09/23 00:00:00';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '20090923000000';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= 20090923000000;
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '2009-9-23 00:00:00';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '2009.09.23 00:00:00';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-SELECT * FROM t1 WHERE a >= '2009:09:23 00:00:00';
-a
-2009-09-23
-2009-09-23
-2009-09-23
-# Test of the new get_date_from_str implementation
-# Behavior differs slightly between the trunk and mysql-pe.
-# The former may give errors for the truncated values, while the latter
-# gives warnings. The purpose of this test is not to interfere, and only
-# preserve existing behavior.
-SELECT str_to_date('2007-10-00', '%Y-%m-%d') >= '' AND
-str_to_date('2007-10-00', '%Y-%m-%d') <= '2007/10/20';
-str_to_date('2007-10-00', '%Y-%m-%d') >= '' AND
-str_to_date('2007-10-00', '%Y-%m-%d') <= '2007/10/20'
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT str_to_date('2007-20-00', '%Y-%m-%d') >= '2007/10/20' AND
-str_to_date('2007-20-00', '%Y-%m-%d') <= '';
-str_to_date('2007-20-00', '%Y-%m-%d') >= '2007/10/20' AND
-str_to_date('2007-20-00', '%Y-%m-%d') <= ''
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2007-20-00' for function str_to_date
-Warning 1411 Incorrect datetime value: '2007-20-00' for function str_to_date
-Warning 1411 Incorrect datetime value: '2007-20-00' for function str_to_date
-Warning 1411 Incorrect datetime value: '2007-20-00' for function str_to_date
-SELECT str_to_date('2007-10-00', '%Y-%m-%d') BETWEEN '' AND '2007/10/20';
-str_to_date('2007-10-00', '%Y-%m-%d') BETWEEN '' AND '2007/10/20'
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT str_to_date('2007-20-00', '%Y-%m-%d') BETWEEN '2007/10/20' AND '';
-str_to_date('2007-20-00', '%Y-%m-%d') BETWEEN '2007/10/20' AND ''
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2007-20-00' for function str_to_date
-SELECT str_to_date('', '%Y-%m-%d');
-str_to_date('', '%Y-%m-%d')
-0000-00-00
-DROP TABLE t1, t2;
-#
-# Bug#48459: valgrind errors with query using 'Range checked for each
-# record'
-#
-CREATE TABLE t1 (
-a INT,
-b CHAR(2),
-c INT,
-d INT,
-KEY ( c ),
-KEY ( d, a, b ( 2 ) ),
-KEY ( b ( 1 ) )
-);
-INSERT INTO t1 VALUES ( NULL, 'a', 1, 2 ), ( NULL, 'a', 1, 2 ),
-( 1, 'a', 1, 2 ), ( 1, 'a', 1, 2 );
-CREATE TABLE t2 (
-a INT,
-c INT,
-e INT,
-KEY ( e )
-);
-INSERT INTO t2 VALUES ( 1, 1, NULL ), ( 1, 1, NULL );
-# Should not give Valgrind warnings
-SELECT 1
-FROM t1, t2
-WHERE t1.d <> '1' AND t1.b > '1'
-AND t1.a = t2.a AND t1.c = t2.c;
-1
-1
-1
-1
-1
-DROP TABLE t1, t2;
-#
-# Bug #48665: sql-bench's insert test fails due to wrong result
-#
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY (a));
-INSERT INTO t1 VALUES (0,0), (1,1);
-EXPLAIN
-SELECT * FROM t1 FORCE INDEX (PRIMARY)
-WHERE (a>=1 AND a<=2) OR (a>=4 AND a<=5) OR (a>=0 AND a <=10);
-id select_type table type possible_keys key key_len ref rows Extra
-@ @ @ range @ @ @ @ @ @
-# Should return 2 rows
-SELECT * FROM t1 FORCE INDEX (PRIMARY)
-WHERE (a>=1 AND a<=2) OR (a>=4 AND a<=5) OR (a>=0 AND a <=10);
-a b
-0 0
-1 1
-DROP TABLE t1;
-#
-# Bug #54802: 'NOT BETWEEN' evaluation is incorrect
-#
-CREATE TABLE t1 (c_key INT, c_notkey INT, KEY(c_key));
-INSERT INTO t1 VALUES (1, 1), (2, 2), (3, 3);
-EXPLAIN SELECT * FROM t1 WHERE 2 NOT BETWEEN c_notkey AND c_key;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL c_key NULL NULL NULL 3 Using where
-SELECT * FROM t1 WHERE 2 NOT BETWEEN c_notkey AND c_key;
-c_key c_notkey
-1 1
-3 3
-DROP TABLE t1;
-#
-# Bug #57030: 'BETWEEN' evaluation is incorrect
-#
-CREATE TABLE t1(pk INT PRIMARY KEY, i4 INT);
-CREATE UNIQUE INDEX i4_uq ON t1(i4);
-INSERT INTO t1 VALUES (1,10), (2,20), (3,30);
-EXPLAIN
-SELECT * FROM t1 WHERE i4 BETWEEN 10 AND 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const i4_uq i4_uq 5 const 1
-SELECT * FROM t1 WHERE i4 BETWEEN 10 AND 10;
-pk i4
-1 10
-EXPLAIN
-SELECT * FROM t1 WHERE 10 BETWEEN i4 AND i4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const i4_uq i4_uq 5 const 1
-SELECT * FROM t1 WHERE 10 BETWEEN i4 AND i4;
-pk i4
-1 10
-EXPLAIN
-SELECT * FROM t1 WHERE 10 BETWEEN 10 AND i4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range i4_uq i4_uq 5 NULL 3 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE 10 BETWEEN 10 AND i4;
-pk i4
-1 10
-2 20
-3 30
-EXPLAIN
-SELECT * FROM t1 WHERE 10 BETWEEN i4 AND 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range i4_uq i4_uq 5 NULL 1 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE 10 BETWEEN i4 AND 10;
-pk i4
-1 10
-EXPLAIN
-SELECT * FROM t1 WHERE 10 BETWEEN 10 AND 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-SELECT * FROM t1 WHERE 10 BETWEEN 10 AND 10;
-pk i4
-1 10
-2 20
-3 30
-EXPLAIN
-SELECT * FROM t1 WHERE 10 BETWEEN 11 AND 11;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-SELECT * FROM t1 WHERE 10 BETWEEN 11 AND 11;
-pk i4
-EXPLAIN
-SELECT * FROM t1 WHERE 10 BETWEEN 100 AND 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-SELECT * FROM t1 WHERE 10 BETWEEN 100 AND 0;
-pk i4
-EXPLAIN
-SELECT * FROM t1 WHERE i4 BETWEEN 100 AND 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT * FROM t1 WHERE i4 BETWEEN 100 AND 0;
-pk i4
-EXPLAIN
-SELECT * FROM t1 WHERE i4 BETWEEN 10 AND 99999999999999999;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range i4_uq i4_uq 5 NULL 2 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE i4 BETWEEN 10 AND 99999999999999999;
-pk i4
-1 10
-2 20
-3 30
-EXPLAIN
-SELECT * FROM t1 WHERE i4 BETWEEN 999999999999999 AND 30;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT * FROM t1 WHERE i4 BETWEEN 999999999999999 AND 30;
-pk i4
-EXPLAIN
-SELECT * FROM t1 WHERE i4 BETWEEN 10 AND '20';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range i4_uq i4_uq 5 NULL 1 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE i4 BETWEEN 10 AND '20';
-pk i4
-1 10
-2 20
-EXPLAIN
-SELECT * FROM t1, t1 as t2 WHERE t2.pk BETWEEN t1.i4 AND t1.i4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL i4_uq NULL NULL NULL 3
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.i4 1 Using index condition
-SELECT * FROM t1, t1 as t2 WHERE t2.pk BETWEEN t1.i4 AND t1.i4;
-pk i4 pk i4
-EXPLAIN
-SELECT * FROM t1, t1 as t2 WHERE t1.i4 BETWEEN t2.pk AND t2.pk;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL i4_uq NULL NULL NULL 3
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.i4 1 Using index condition
-SELECT * FROM t1, t1 as t2 WHERE t1.i4 BETWEEN t2.pk AND t2.pk;
-pk i4 pk i4
-DROP TABLE t1;
-#
-# BUG#13519696 - 62940: SELECT RESULTS VARY WITH VERSION AND
-# WITH/WITHOUT INDEX RANGE SCAN
-#
-create table t1 (id int unsigned not null auto_increment primary key);
-insert into t1 values (null);
-insert into t1 select null from t1;
-insert into t1 select null from t1;
-insert into t1 select null from t1;
-insert into t1 select null from t1;
-insert into t1 select null from t1;
-insert into t1 select null from t1;
-insert into t1 select null from t1;
-insert into t1 select null from t1;
-create table t2 (
-id int unsigned not null auto_increment,
-val decimal(5,3) not null,
-primary key (id,val),
-unique key (val,id),
-unique key (id));
-insert into t2 select null,id*0.0009 from t1;
-select count(val) from t2 ignore index (val) where val > 0.1155;
-count(val)
-128
-select count(val) from t2 force index (val) where val > 0.1155;
-count(val)
-128
-drop table t2, t1;
-#
-# BUG#13453382 - REGRESSION SINCE 5.1.39, RANGE OPTIMIZER WRONG
-# RESULTS WITH DECIMAL CONVERSION
-#
-create table t1 (a int,b int,c int,primary key (a,c));
-insert into t1 values (1,1,2),(1,1,3),(1,1,4);
-select convert(3, signed integer) > 2.9;
-convert(3, signed integer) > 2.9
-1
-select * from t1 force index (primary) where a=1 and c>= 2.9;
-a b c
-1 1 3
-1 1 4
-select * from t1 ignore index (primary) where a=1 and c>= 2.9;
-a b c
-1 1 3
-1 1 4
-select * from t1 force index (primary) where a=1 and c> 2.9;
-a b c
-1 1 3
-1 1 4
-select * from t1 ignore index (primary) where a=1 and c> 2.9;
-a b c
-1 1 3
-1 1 4
-drop table t1;
-#
-# BUG#13463488 - 63437: CHAR & BETWEEN WITH INDEX RETURNS WRONG
-# RESULT AFTER MYSQL 5.1.
-#
-CREATE TABLE t1(
-F1 CHAR(5) NOT NULL,
-F2 CHAR(5) NOT NULL,
-F3 CHAR(5) NOT NULL,
-PRIMARY KEY(F1),
-INDEX IDX_F2(F2)
-);
-INSERT INTO t1 VALUES
-('A','A','A'),('AA','AA','AA'),('AAA','AAA','AAA'),
-('AAAA','AAAA','AAAA'),('AAAAA','AAAAA','AAAAA');
-SELECT * FROM t1 WHERE F1 = 'A ';
-F1 F2 F3
-A A A
-SELECT * FROM t1 IGNORE INDEX(PRIMARY) WHERE F1 = 'A ';
-F1 F2 F3
-A A A
-SELECT * FROM t1 WHERE F1 >= 'A ';
-F1 F2 F3
-A A A
-AA AA AA
-AAA AAA AAA
-AAAA AAAA AAAA
-AAAAA AAAAA AAAAA
-SELECT * FROM t1 WHERE F1 > 'A ';
-F1 F2 F3
-AA AA AA
-AAA AAA AAA
-AAAA AAAA AAAA
-AAAAA AAAAA AAAAA
-SELECT * FROM t1 WHERE F1 BETWEEN 'A ' AND 'AAAAA';
-F1 F2 F3
-A A A
-AA AA AA
-AAA AAA AAA
-AAAA AAAA AAAA
-AAAAA AAAAA AAAAA
-SELECT * FROM t1 WHERE F2 BETWEEN 'A ' AND 'AAAAA';
-F1 F2 F3
-A A A
-AA AA AA
-AAA AAA AAA
-AAAA AAAA AAAA
-AAAAA AAAAA AAAAA
-SELECT * FROM t1 WHERE F3 BETWEEN 'A ' AND 'AAAAA';
-F1 F2 F3
-A A A
-AA AA AA
-AAA AAA AAA
-AAAA AAAA AAAA
-AAAAA AAAAA AAAAA
-SELECT * FROM t1 IGNORE INDEX(PRIMARY) WHERE F1 BETWEEN 'A ' AND
-'AAAAA';
-F1 F2 F3
-A A A
-AA AA AA
-AAA AAA AAA
-AAAA AAAA AAAA
-AAAAA AAAAA AAAAA
-DROP TABLE t1;
-#
-# mdev-4894: Poor performance with unnecessary
-# (bug#70021) 'Range checked for each record'
-#
-create table t1( key1 int not null, INDEX i1(key1) );
-insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8);
-insert into t1 select key1+8 from t1;
-insert into t1 select key1+16 from t1;
-insert into t1 select key1+32 from t1;
-insert into t1 select key1+64 from t1;
-insert into t1 select key1+128 from t1;
-insert into t1 select key1+256 from t1;
-insert into t1 select key1+512 from t1;
-alter table t1 add key2 int not null, add index i2(key2);
-update t1 set key2=key1;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-create table t2 (a int);
-insert into t2 values (1),(2),(3),(4),(5),(6),(7),(8);
-insert into t2 select a+16 from t2;
-insert into t2 select a+32 from t2;
-insert into t2 select a+64 from t2;
-explain
-select count(*) from t2 left join t1 on (t1.key1 < 3 or t1.key1 > 1020) and t1.key2 < 1000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 64
-1 SIMPLE t1 range i1,i2 i1 4 NULL 78 Using where; Rowid-ordered scan; Using join buffer (flat, BNL join)
-select count(*) from t2 left join t1 on (t1.key1 < 3 or t1.key1 > 1020) and t1.key2 < 1000;
-count(*)
-128
-explain
-select count(*) from t2 left join t1 on (t1.key1 < 3 or t1.key1 > 1020) and t1.key2 < t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 64
-1 SIMPLE t1 range i1,i2 i1 4 NULL 78 Using where; Rowid-ordered scan; Using join buffer (flat, BNL join)
-select count(*) from t2 left join t1 on (t1.key1 < 3 or t1.key1 > 1020) and t1.key2 < t2.a;
-count(*)
-126
-drop table t1,t2;
-End of 5.1 tests
-#
-# LP Bug #533117: Wrong use_count in SEL_ARG trees
-# (Bug #58731)
-#
-create table t1 (a int, b int, c int, key idx (a,b,c));
-insert into t1 values (0,0,0), (2,2,0), (1,1,1), (2,2,1);
-explain
-select * from t1 force index (idx) where a >=1 and c <= 1 and a=b and b > 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 5 NULL 3 Using where; Using index
-select * from t1 force index (idx) where a >=1 and c <= 1 and a=b and b > 1;
-a b c
-2 2 0
-2 2 1
-drop table t1;
-create table t1 (f1 datetime, key (f1));
-insert into t1 values ('2000-03-09 15:56:59'),('2000-05-05 23:24:28'),('2000-06-13 13:12:06');
-select min(f1) from t1 where f1 >= '2006-05-25 07:00:20' and f1 between '2003-11-23 10:00:09' and '2010-01-01 01:01:01' and f1 > '2001-01-01 01:01:01';
-min(f1)
-NULL
-drop table t1;
-#
-# BUG#11765831: 'RANGE ACCESS' MAY INCORRECTLY FILTER
-# AWAY QUALIFYING ROWS
-#
-CREATE TABLE t10(
-K INT NOT NULL AUTO_INCREMENT,
-I INT, J INT,
-PRIMARY KEY(K),
-KEY(I,J)
-);
-INSERT INTO t10(I,J) VALUES (6,1),(6,2),(6,3),(6,4),(6,5),
-(6,6),(6,7),(6,8),(6,9),(6,0);
-CREATE TABLE t100 LIKE t10;
-INSERT INTO t100(I,J) SELECT X.I, X.K+(10*Y.K) FROM t10 AS X,t10 AS Y;
-INSERT INTO t100(I,J) VALUES(8,26);
-
-EXPLAIN SELECT * FROM t100 WHERE I <> 6 OR (I <> 8 AND J = 5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t100 range I I 10 NULL 4 Using index condition; Using where; Rowid-ordered scan
-
-SELECT * FROM t100 WHERE I <> 6 OR (I <> 8 AND J = 5);
-K I J
-101 8 26
-DROP TABLE t10,t100;
-#
-# lp:817363: Wrong result with sort_union and multipart key in maria-5.3
-#
-CREATE TABLE t1 (a int NOT NULL , b int, c int, d varchar(32), KEY (d,b), PRIMARY KEY (a)) ;
-INSERT INTO t1 VALUES (7,7,NULL,'e'),(8,1,0,'p'),(9,7,1,'s'),(10,1,1,'j'),(12,2,0,'c'),(13,0,0,'a'),(14,1,1,'q');
-SELECT c FROM t1 WHERE d='q' OR d>='q' OR a > 97 OR (d IN ('j','s','i') AND b = 102);
-c
-1
-1
-SELECT c FROM t1 ignore index (d) WHERE d='q' OR d>='q' OR a > 97 OR (d IN ('j','s','i') AND b = 102);
-c
-1
-1
-SELECT * FROM t1 ignore index(d) WHERE d = 'q' OR d >= 'q' OR (d IN ( 'j' , 's' , 'i' ) AND ( b = 102 ));
-a b c d
-9 7 1 s
-14 1 1 q
-SELECT * FROM t1 force index(d) WHERE d = 'q' OR d >= 'q' OR (d IN ( 'j' , 's' , 'i' ) AND ( b = 102 ));
-a b c d
-9 7 1 s
-14 1 1 q
-DROP TABLE t1;
-#
-# BUG#13256446 - ASSERTION QUICK->HEAD->READ_SET ==
-# SAVE_READ_SET' FAILED IN OPT_RANGE.CC:1606
-#
-CREATE TABLE t1 (
-f1 INT AUTO_INCREMENT,
-f2 INT,
-f3 INT,
-f4 INT,
-PRIMARY KEY (f1),KEY(f2)
-) ENGINE=INNODB;
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT f1,f2,f3,f4 FROM t1 WHERE f2=103;
-INSERT INTO t1 VALUES (154,0,NULL,0),(0,NULL,9,0),
-(NULL,102,NULL,3),(0,3,NULL,0), (9,0,NULL,0),(0,9,NULL,157);
-SELECT * FROM v2;
-f1 f2 f3 f4
-UPDATE v2 SET f4=0, f2=NULL, f1=NULL WHERE f1 > 16 ORDER BY f1;
-SELECT * FROM v2;
-f1 f2 f3 f4
-DROP TABLE t1;
-DROP VIEW v2;
-CREATE TABLE t1 (
-f1 INT AUTO_INCREMENT,
-f2 INT,
-f3 INT,
-f4 INT,
-PRIMARY KEY (f1),KEY(f2)
-) ENGINE=INNODB;
-INSERT INTO t1 VALUES(1,NULL,NULL,0), (2,2,0,3), (9,0,107,18),
-(10,0,0,0), (231,0,0,0), (232,0,8,0), (234,0,0,NULL), (235,8,0,3);
-CREATE ALGORITHM=MERGE VIEW v3 AS SELECT f1,f2,f3,f4 FROM t1 WHERE f1<=85 ;
-SELECT * FROM v3;
-f1 f2 f3 f4
-1 NULL NULL 0
-2 2 0 3
-9 0 107 18
-10 0 0 0
-UPDATE v3 SET f3=0, f4=4 WHERE f2=68 ORDER BY f1;
-SELECT * FROM v3;
-f1 f2 f3 f4
-1 NULL NULL 0
-2 2 0 3
-9 0 107 18
-10 0 0 0
-DROP TABLE t1;
-DROP VIEW v3;
-#
-# MDEV-6105: Emoji unicode character string search query makes mariadb performance down
-#
-SET NAMES utf8;
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1(
-id int AUTO_INCREMENT,
-fd varchar(20),
-primary key(id),
-index ix_fd(fd)
-)engine=innodb default charset=UTF8;
-INSERT INTO t1(id, fd) VALUES (null, ''),(null, 'matt'),(null, 'pitt'),(null, 'lee'),(null, 'kim');
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-INSERT INTO t1 (fd) SELECT fd FROM t1;
-# The following should show "Impossible WHERE" :
-explain
-SELECT * FROM t1 WHERE fd='ðŸ˜';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1
-SELECT * FROM t1 WHERE fd='ðŸ˜';
-id fd
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1
-# The following must not use range access:
-explain select count(*) from t1 where fd <'ðŸ˜';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index ix_fd ix_fd 63 NULL # Using where; Using index
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1
-select count(*) from t1 where fd <'ðŸ˜';
-count(*)
-40960
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1
-select count(*) from t1 ignore index (ix_fd) where fd <'ðŸ˜';
-count(*)
-40960
-drop table t1;
-set names default;
-create table t2 (a int, b int, c int, d int, key x(a, b));
-insert into t2 values (2, 2, 2, 2), (3, 3, 3, 3), (4, 4, 4, 4), (5, 5, 5, 5),
-(6, 6, 6, 6), (7, 7, 7, 7), (8, 8, 8, 8), (9, 9, 9, 9);
-insert into t2 select * from t2;
-insert into t2 values (0, 0, 0, 0), (1, 1, 1, 1);
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status OK
-select a, b from t2 where (a, b) in ((0, 0), (1, 1));
-a b
-0 0
-1 1
-drop table t2;
-#
-# MDEV-10228: Delete missing rows with OR conditions
-# (The example uses UPDATE, because UPDATE allows to use index hints
-# and so it's possible to make an example that works with any storage
-# engine)
-#
-CREATE TABLE t1 (
-key1varchar varchar(14) NOT NULL,
-key2int int(11) NOT NULL DEFAULT '0',
-col1 int,
-PRIMARY KEY (key1varchar,key2int),
-KEY key1varchar (key1varchar),
-KEY key2int (key2int)
-) DEFAULT CHARSET=utf8;
-insert into t1 values
-('value1',0, 0),
-('value1',1, 0),
-('value1',1000685, 0),
-('value1',1003560, 0),
-('value1',1004807, 0);
-update t1 force index (PRIMARY) set col1=12345
-where (key1varchar='value1' AND (key2int <=1 OR key2int > 1));
-# The following must show col1=12345 for all rows:
-select * from t1;
-key1varchar key2int col1
-value1 0 12345
-value1 1 12345
-value1 1000685 12345
-value1 1003560 12345
-value1 1004807 12345
-drop table t1;
-#
-# BUG#13731380: RANGE OPTIMIZER CALLS RECORDS_IN_RANGE() FOR OPEN RANGE
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY);
-INSERT INTO t1 VALUES (1),(3),(5);
-SELECT * FROM t1 WHERE pk <> 3 OR pk < 4;
-pk
-1
-3
-5
-DROP TABLE t1;
-#
-# BUG#13803810: TOO FEW ROWS RETURNED FOR RANGE ACCESS IN
-# VARCHAR INDEX USING DATETIME VALUE
-
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00');
-INSERT INTO t1 VALUES ('2001-01-01 11:22:33');
-CREATE TABLE t2 (b VARCHAR(64), KEY (b));
-INSERT INTO t2 VALUES ('2001-01-01');
-INSERT INTO t2 VALUES ('2001.01.01');
-INSERT INTO t2 VALUES ('2001#01#01');
-INSERT INTO t2 VALUES ('2001-01-01 00:00:00');
-INSERT INTO t2 VALUES ('2001-01-01 11:22:33');
-
-# range/ref access cannot be used for this query
-
-EXPLAIN SELECT * FROM t2 WHERE b=CAST('2001-01-01' AS DATE);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index b b 67 NULL 5 Using where; Using index
-SELECT * FROM t2 WHERE b=CAST('2001-01-01' AS DATE);
-b
-2001#01#01
-2001-01-01
-2001-01-01 00:00:00
-2001.01.01
-
-# range/ref access cannot be used for any of the queries below.
-# See BUG#13814468 about 'Range checked for each record'
-
-EXPLAIN SELECT * FROM t1, t2 WHERE a=b ORDER BY BINARY a, BINARY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-1 SIMPLE t2 ALL b NULL NULL NULL 5 Range checked for each record (index map: 0x1)
-SELECT * FROM t1, t2 WHERE a=b ORDER BY BINARY a, BINARY b;
-a b
-2001-01-01 00:00:00 2001#01#01
-2001-01-01 00:00:00 2001-01-01
-2001-01-01 00:00:00 2001-01-01 00:00:00
-2001-01-01 00:00:00 2001.01.01
-2001-01-01 11:22:33 2001-01-01 11:22:33
-
-EXPLAIN SELECT * FROM t1, t2 WHERE b=a ORDER BY BINARY a, BINARY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-1 SIMPLE t2 ALL b NULL NULL NULL 5 Range checked for each record (index map: 0x1)
-SELECT * FROM t1, t2 WHERE b=a ORDER BY BINARY a, BINARY b;
-a b
-2001-01-01 00:00:00 2001#01#01
-2001-01-01 00:00:00 2001-01-01
-2001-01-01 00:00:00 2001-01-01 00:00:00
-2001-01-01 00:00:00 2001.01.01
-2001-01-01 11:22:33 2001-01-01 11:22:33
-
-DROP TABLE t1,t2;
-#
-# MDEV-5606: range optimizer: "x < y" is sargable, while "y > x" is not
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2(a int);
-insert into t2 select A.a + B.a* 10 + C.a * 100 from t1 A, t1 B, t1 C;
-alter table t2 add key(a);
-# Should have "range checked for each table" for second table:
-explain select * from t1, t2 where t2.a < t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10
-1 SIMPLE t2 ALL a NULL NULL NULL 1000 Range checked for each record (index map: 0x1)
-# Should have "range checked for each table" for second table:
-explain select * from t1, t2 where t1.a > t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10
-1 SIMPLE t2 ALL a NULL NULL NULL 1000 Range checked for each record (index map: 0x1)
-create table t3 (a int primary key, b int);
-insert into t3 select a,a from t1;
-# The second table should use 'range':
-explain select * from t3, t2 where t2.a < t3.b and t3.a=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range a a 5 NULL 1 Using where; Using index
-# The second table should use 'range':
-explain select * from t3, t2 where t3.b > t2.a and t3.a=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range a a 5 NULL 1 Using where; Using index
-drop table t1,t2,t3;
-#
-# MDEV-6480: Remove conditions for which range optimizer returned SEL_ARG::IMPOSSIBLE.
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, c int, key(a), key(b));
-insert into t2
-select
-A.a + B.a* 10 + C.a * 100,
-A.a + B.a* 10 + C.a * 100,
-12345
-from
-t1 A, t1 B, t1 C;
-# EXPLAIN EXTENDED should show that 'b > 25 and b < 15' is removed from the WHERE:
-explain extended select * from t2 where (b > 25 and b < 15) or a<44;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 range a,b a 5 NULL 43 100.00 Using index condition; Rowid-ordered scan
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where `test`.`t2`.`a` < 44
-# EXPLAIN EXTENDED should show that 'b > 25 and b < 15' is removed from the WHERE:
-explain extended select * from t2 where a < 44 or (b > 25 and b < 15);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 range a,b a 5 NULL 43 100.00 Using index condition; Rowid-ordered scan
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where `test`.`t2`.`a` < 44
-# Here, conditions b will not be removed, because "c<44" is not sargable
-# and hence (b.. and .. b) part is not analyzed at all:
-explain extended select * from t2 where c < 44 or (b > 25 and b < 15);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL b NULL NULL NULL 1000 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where `test`.`t2`.`c` < 44 or `test`.`t2`.`b` > 25 and `test`.`t2`.`b` < 15
-# EXPLAIN EXTENDED should show that 'b > 25 and b < 15' is removed from the WHERE:
-explain extended select * from t2 where (b > 25 and b < 15) or c < 44;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL b NULL NULL NULL 1000 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where `test`.`t2`.`c` < 44
-# Try a case where both OR parts produce SEL_ARG::IMPOSSIBLE:
-explain extended select * from t2 where (b > 25 and b < 15) or (a>55 and a<44);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 44 AS `a`,15 AS `b`,NULL AS `c` from `test`.`t2` where 0
-drop table t1,t2;
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8189 field<>const and const<>field are not symmetric
-#
-CREATE TABLE t1 (a INT, b INT, KEY(a));
-INSERT INTO t1 (a) VALUES (10),(10),(10),(10),(10),(10),(10),(10),(10),(10),(70);
-EXPLAIN SELECT * FROM t1 WHERE a<>10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 3 Using index condition; Rowid-ordered scan
-EXPLAIN SELECT * FROM t1 WHERE 10<>a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 3 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE a<>10;
-a b
-70 NULL
-SELECT * FROM t1 WHERE 10<>a;
-a b
-70 NULL
-DROP TABLE t1;
-#
-# MDEV-8613 Full table scan for WHERE indexed_varchar_column <=> 'bad-character'
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('a'),('b'),('c'),('d'),('e');
-EXPLAIN SELECT * FROM t1 WHERE a<=>'😎';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1366 Incorrect string value: '\xF0\x9F\x98\x8E' for column 'a' at row 1
-DROP TABLE t1;
-#
-# MDEV-10185: Assertion `tree1->keys[key_no] && tree2->keys[key_no]' failed in
-# sel_trees_can_be_ored(RANGE_OPT_PARAM*, SEL_TREE*, SEL_TREE*, key_map*)
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY);
-INSERT INTO t1 VALUES (1),(2);
-SELECT * FROM t1 WHERE pk != 1000 OR pk IN ( 1000, 0, 1, 100, 2 ) OR pk >= 5;
-pk
-1
-2
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# MDEV-10454: range access keys extracted
-# from <row> IN (<row value list>)
-#
-create table t1(a int, b int, c varchar(16), key idx(a,b)) engine=myisam;
-insert into t1 values
-(1,1,'xx'), (2,2,'yyy'), (3,3,'zzzz'), (1,2,'zz'), (1,3,'x'),
-(2,3,'yy'), (4,5,'ww'), (7,8,'xxxxx'), (4,3,'zyx'), (1,2,'uuu'),
-(2,1,'w'), (5,5,'wx'), (2,3,'ww'), (7,7,'xxxyy'), (3,3,'zyxw'),
-(3,2,'uuuw'), (2,2,'wxz'), (5,5,'xw'), (12,12,'xx'), (12,12,'y'),
-(13,13,'z'), (11,12,'zz'), (11,13,'x'), (12,13,'y'), (14,15,'w'),
-(17,18,'xx'), (14,13,'zx'), (11,12,'u'), (12,11,'w'), (5,5,'wx'),
-(12,13,'ww'), (17,17,'xxxyy'), (13,13,'zyxw'), (13,12,'uuuw'), (12,12,'wxz'),
-(15,15,'xw'), (1,1,'xa'), (2,2,'yya'), (3,3,'zzza'), (1,2,'za'),
-(1,3,'xb'), (2,3,'ya'), (4,5,'wa'), (7,8,'xxxxa'), (4,3,'zya'),
-(1,2,'uua'), (2,1,'wb'), (5,5,'wc'), (2,3,'wa'), (7,7,'xxxya'),
-(3,3,'zyxa'), (3,2,'uuua'), (2,2,'wxa'), (5,5,'xa'), (12,12,'xa'),
-(22,12,'yb'), (23,13,'zb'), (21,12,'za'), (24,13,'c'), (32,13,'d'),
-(34,15,'wd'), (47,18,'xa'), (54,13,'za'), (51,12,'ub'), (52,11,'wc'),
-(5,5,'wd'), (62,13,'wa'), (67,17,'xxxya'), (63,13,'zyxa'), (73,12,'uuua'),
-(82,12,'wxa'), (85,15,'xd');
-# range access to t1 by 2-component keys for index idx
-explain select * from t1 where (a,b) IN ((2, 3),(3,3),(8,8),(7,7));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 10 NULL 7 Using where; Rowid-ordered scan
-explain format=json select * from t1 where (a,b) IN ((2, 3),(3,3),(8,8),(7,7));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "10",
- "used_key_parts": ["a", "b"],
- "rows": 7,
- "filtered": 100,
- "attached_condition": "(t1.a,t1.b) in (<cache>((2,3)),<cache>((3,3)),<cache>((8,8)),<cache>((7,7)))",
- "mrr_type": "Rowid-ordered scan"
- }
- }
-}
-select * from t1 where (a,b) IN ((2, 3),(3,3),(8,8),(7,7));
-a b c
-3 3 zzzz
-2 3 yy
-2 3 ww
-7 7 xxxyy
-3 3 zyxw
-3 3 zzza
-2 3 ya
-2 3 wa
-7 7 xxxya
-3 3 zyxa
-prepare stmt from "select * from t1 where (a,b) IN ((2, 3),(3,3),(8,8),(7,7))";
-execute stmt;
-a b c
-3 3 zzzz
-2 3 yy
-2 3 ww
-7 7 xxxyy
-3 3 zyxw
-3 3 zzza
-2 3 ya
-2 3 wa
-7 7 xxxya
-3 3 zyxa
-execute stmt;
-a b c
-3 3 zzzz
-2 3 yy
-2 3 ww
-7 7 xxxyy
-3 3 zyxw
-3 3 zzza
-2 3 ya
-2 3 wa
-7 7 xxxya
-3 3 zyxa
-deallocate prepare stmt;
-# range access to t1 by 1-component keys for index idx
-explain select * from t1 where (a,b+a) IN ((4,9),(8,8),(7,7));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 5 NULL 5 Using where; Rowid-ordered scan
-explain format=json select * from t1 where (a,b+a) IN ((4,9),(8,8),(7,7));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 5,
- "filtered": 100,
- "attached_condition": "(t1.a,t1.b + t1.a) in (<cache>((4,9)),<cache>((8,8)),<cache>((7,7)))",
- "mrr_type": "Rowid-ordered scan"
- }
- }
-}
-select * from t1 where (a,b+a) IN ((4,9),(8,8),(7,7));
-a b c
-4 5 ww
-4 5 wa
-# range access to t1 by 1-component keys for index idx
-explain select * from t1 where (a,b) IN ((4,a-1),(8,a+8),(7,a+7));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 5 NULL 5 Using where; Rowid-ordered scan
-explain format=json select * from t1 where (a,b) IN ((4,a-1),(8,a+8),(7,a+7));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 5,
- "filtered": 100,
- "attached_condition": "(t1.a,t1.b) in ((4,t1.a - 1),(8,t1.a + 8),(7,t1.a + 7))",
- "mrr_type": "Rowid-ordered scan"
- }
- }
-}
-select * from t1 where (a,b) IN ((4,a-1),(8,a+8),(7,a+7));
-a b c
-4 3 zyx
-4 3 zya
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='index_merge=off';
-create table t2(
-d int, e int, key idx1(d), key idx2(e), f varchar(32)
-) engine=myisam;
-insert into t2 values
-(9,5,'a'), (9,8,'b'), (9,3,'c'), (9,2,'d'), (9,1,'e'),
-(6,5,'f'), (6,3,'g'), (6,7,'h'), (3,3,'i'), (6,2,'j'),
-(9,5,'aa'), (9,8,'ba'), (9,3,'ca'), (2,2,'da'), (9,1,'ea'),
-(6,5,'fa'), (6,3,'ga'), (6,7,'ha'), (9,3,'ia'), (6,2,'ja');
-# join order: (t2,t1) with ref access of t1
-# range access to t1 by keys for index idx1
-explain select * from t1,t2
-where a = d and (a,e) in ((3,3),(7,7),(2,2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx1,idx2 idx1 5 NULL 3 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE t1 ref idx idx 5 test.t2.d 8
-explain format=json select * from t1,t2
-where a = d and (a,e) in ((3,3),(7,7),(2,2));
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "range",
- "possible_keys": ["idx1", "idx2"],
- "key": "idx1",
- "key_length": "5",
- "used_key_parts": ["d"],
- "rows": 3,
- "filtered": 100,
- "index_condition": "t2.d is not null",
- "attached_condition": "(t2.d,t2.e) in (<cache>((3,3)),<cache>((7,7)),<cache>((2,2)))",
- "mrr_type": "Rowid-ordered scan"
- },
- "table": {
- "table_name": "t1",
- "access_type": "ref",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.d"],
- "rows": 8,
- "filtered": 100
- }
- }
-}
-select * from t1,t2
-where a = d and (a,e) in ((3,3),(7,7),(2,2));
-a b c d e f
-3 2 uuuw 3 3 i
-3 2 uuua 3 3 i
-3 3 zzzz 3 3 i
-3 3 zyxw 3 3 i
-3 3 zzza 3 3 i
-3 3 zyxa 3 3 i
-2 1 w 2 2 da
-2 1 wb 2 2 da
-2 2 yyy 2 2 da
-2 2 wxz 2 2 da
-2 2 yya 2 2 da
-2 2 wxa 2 2 da
-2 3 yy 2 2 da
-2 3 ww 2 2 da
-2 3 ya 2 2 da
-2 3 wa 2 2 da
-insert into t2 values
-(4,5,'a'), (7,8,'b'), (4,3,'c'), (1,2,'d'), (2,1,'e'), (5,5,'f'),
-(2,3,'g'), (7,7,'h'), (3,3,'i'), (3,2,'j'), (2,2,'k'), (5,5,'l'),
-(4,5,'aa'), (7,8,'bb'), (4,3,'cc'), (1,2,'dd'), (2,1,'ee'), (9,5,'ff'),
-(2,3,'gg'), (7,7,'hh'), (3,3,'ii'), (3,2,'jj'), (2,2,'kk'), (9,5,'ll'),
-(4,5,'aaa'), (7,8,'bbb'), (4,3,'ccc'), (1,2,'ddd'), (2,1,'eee'), (5,5,'fff'),
-(2,3,'ggg'), (7,7,'hhh'), (3,3,'iii'), (3,2,'jjj'), (2,2,'kkk'), (5,5,'lll'),
-(14,15,'a'), (17,18,'b'), (14,13,'c'), (11,12,'d'), (12,11,'e'), (15,15,'f'),
-(12,13,'g'), (17,17,'h'), (13,13,'i'), (13,12,'j'), (12,12,'k'), (15,15,'l'),
-(24,25,'a'), (27,28,'b'), (24,23,'c'), (21,22,'d'), (22,21,'e'), (25,25,'f'),
-(22,23,'g'), (27,27,'h'), (23,23,'i'), (23,22,'j'), (22,22,'k'), (25,25,'l'),
-(34,35,'a'), (37,38,'b'), (34,33,'c'), (31,32,'d'), (32,31,'e'), (35,35,'f'),
-(32,33,'g'), (37,37,'h'), (33,33,'i'), (33,32,'j'), (32,32,'k'), (35,35,'l'),
-(44,45,'a'), (47,48,'b'), (44,43,'c'), (41,42,'d'), (42,41,'e'), (45,45,'f'),
-(42,43,'g'), (47,47,'h'), (43,43,'i'), (43,42,'j'), (42,42,'k'), (45,45,'l');
-# join order: (t1,t2) with ref access of t2
-# range access to t1 by 1-component keys for index idx
-explain select * from t1,t2
-where a = d and (a,e) in ((3,3),(7,7),(8,8)) and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 5 NULL 6 Using index condition; Rowid-ordered scan
-1 SIMPLE t2 ref idx1,idx2 idx1 5 test.t1.a 12 Using where
-explain format=json select * from t1,t2
-where a = d and (a,e) in ((3,3),(7,7),(8,8)) and length(f) = 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 6,
- "filtered": 100,
- "index_condition": "t1.a is not null",
- "mrr_type": "Rowid-ordered scan"
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["idx1", "idx2"],
- "key": "idx1",
- "key_length": "5",
- "used_key_parts": ["d"],
- "ref": ["test.t1.a"],
- "rows": 12,
- "filtered": 100,
- "attached_condition": "(t1.a,t2.e) in (<cache>((3,3)),<cache>((7,7)),<cache>((8,8))) and octet_length(t2.f) = 1"
- }
- }
-}
-select * from t1,t2
-where a = d and (a,e) in ((3,3),(7,7),(8,8)) and length(f) = 1;
-a b c d e f
-3 3 zzzz 3 3 i
-3 3 zzzz 3 3 i
-7 8 xxxxx 7 7 h
-7 7 xxxyy 7 7 h
-3 3 zyxw 3 3 i
-3 3 zyxw 3 3 i
-3 2 uuuw 3 3 i
-3 2 uuuw 3 3 i
-3 3 zzza 3 3 i
-3 3 zzza 3 3 i
-7 8 xxxxa 7 7 h
-7 7 xxxya 7 7 h
-3 3 zyxa 3 3 i
-3 3 zyxa 3 3 i
-3 2 uuua 3 3 i
-3 2 uuua 3 3 i
-prepare stmt from "select * from t1,t2
-where a = d and (a,e) in ((3,3),(7,7),(8,8)) and length(f) = 1";
-execute stmt;
-a b c d e f
-3 3 zzzz 3 3 i
-3 3 zzzz 3 3 i
-7 8 xxxxx 7 7 h
-7 7 xxxyy 7 7 h
-3 3 zyxw 3 3 i
-3 3 zyxw 3 3 i
-3 2 uuuw 3 3 i
-3 2 uuuw 3 3 i
-3 3 zzza 3 3 i
-3 3 zzza 3 3 i
-7 8 xxxxa 7 7 h
-7 7 xxxya 7 7 h
-3 3 zyxa 3 3 i
-3 3 zyxa 3 3 i
-3 2 uuua 3 3 i
-3 2 uuua 3 3 i
-execute stmt;
-a b c d e f
-3 3 zzzz 3 3 i
-3 3 zzzz 3 3 i
-7 8 xxxxx 7 7 h
-7 7 xxxyy 7 7 h
-3 3 zyxw 3 3 i
-3 3 zyxw 3 3 i
-3 2 uuuw 3 3 i
-3 2 uuuw 3 3 i
-3 3 zzza 3 3 i
-3 3 zzza 3 3 i
-7 8 xxxxa 7 7 h
-7 7 xxxya 7 7 h
-3 3 zyxa 3 3 i
-3 3 zyxa 3 3 i
-3 2 uuua 3 3 i
-3 2 uuua 3 3 i
-deallocate prepare stmt;
-insert into t1 select * from t1;
-# join order: (t2,t1) with ref access of t1
-# range access to t2 by keys for index idx2
-explain select * from t1,t2
-where a = d and (a,e) in ((4,4),(7,7),(8,8)) and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx1,idx2 idx2 5 NULL 6 Using where; Rowid-ordered scan
-1 SIMPLE t1 ref idx idx 5 test.t2.d 11
-explain format=json select * from t1,t2
-where a = d and (a,e) in ((4,4),(7,7),(8,8)) and length(f) = 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "range",
- "possible_keys": ["idx1", "idx2"],
- "key": "idx2",
- "key_length": "5",
- "used_key_parts": ["e"],
- "rows": 6,
- "filtered": 100,
- "attached_condition": "(t2.d,t2.e) in (<cache>((4,4)),<cache>((7,7)),<cache>((8,8))) and octet_length(t2.f) = 1 and t2.d is not null",
- "mrr_type": "Rowid-ordered scan"
- },
- "table": {
- "table_name": "t1",
- "access_type": "ref",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.d"],
- "rows": 11,
- "filtered": 100
- }
- }
-}
-select * from t1,t2
-where a = d and (a,e) in ((4,4),(7,7),(8,8)) and length(f) = 1;
-a b c d e f
-7 7 xxxyy 7 7 h
-7 7 xxxya 7 7 h
-7 7 xxxyy 7 7 h
-7 7 xxxya 7 7 h
-7 8 xxxxx 7 7 h
-7 8 xxxxa 7 7 h
-7 8 xxxxx 7 7 h
-7 8 xxxxa 7 7 h
-alter table t2 drop index idx1, drop index idx2, add index idx3(d,e);
-# join order: (t2,t1) with ref access of t1
-# range access to t2 by 2-component keys for index idx3
-explain select * from t1,t2
-where a = d and (a,e) in ((4,4),(7,7),(8,8)) and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range idx3 idx3 10 NULL 5 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE t1 ref idx idx 5 test.t2.d 11
-explain format=json select * from t1,t2
-where a = d and (a,e) in ((4,4),(7,7),(8,8)) and length(f) = 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t2",
- "access_type": "range",
- "possible_keys": ["idx3"],
- "key": "idx3",
- "key_length": "10",
- "used_key_parts": ["d", "e"],
- "rows": 5,
- "filtered": 100,
- "index_condition": "t2.d is not null",
- "attached_condition": "(t2.d,t2.e) in (<cache>((4,4)),<cache>((7,7)),<cache>((8,8))) and octet_length(t2.f) = 1",
- "mrr_type": "Rowid-ordered scan"
- },
- "table": {
- "table_name": "t1",
- "access_type": "ref",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "ref": ["test.t2.d"],
- "rows": 11,
- "filtered": 100
- }
- }
-}
-select * from t1,t2
-where a = d and (a,e) in ((4,4),(7,7),(8,8)) and length(f) = 1;
-a b c d e f
-7 7 xxxyy 7 7 h
-7 7 xxxya 7 7 h
-7 7 xxxyy 7 7 h
-7 7 xxxya 7 7 h
-7 8 xxxxx 7 7 h
-7 8 xxxxa 7 7 h
-7 8 xxxxx 7 7 h
-7 8 xxxxa 7 7 h
-# join order: (t1,t2) with ref access of t2
-# range access to t1 by 1-component keys for index idx
-explain select * from t1,t2
-where a = d and (a,e) in ((4,d+1),(7,d+1),(8,d+1)) and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 5 NULL 15 Using index condition; Rowid-ordered scan
-1 SIMPLE t2 ref idx3 idx3 5 test.t1.a 3 Using where
-explain format=json select * from t1,t2
-where a = d and (a,e) in ((4,d+1),(7,d+1),(8,d+1)) and length(f) = 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 15,
- "filtered": 100,
- "index_condition": "t1.a is not null",
- "mrr_type": "Rowid-ordered scan"
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["idx3"],
- "key": "idx3",
- "key_length": "5",
- "used_key_parts": ["d"],
- "ref": ["test.t1.a"],
- "rows": 3,
- "filtered": 100,
- "attached_condition": "(t1.a,t2.e) in ((4,t1.a + 1),(7,t1.a + 1),(8,t1.a + 1)) and octet_length(t2.f) = 1"
- }
- }
-}
-select * from t1,t2
-where a = d and (a,e) in ((4,d+1),(7,d+1),(8,d+1)) and length(f) = 1;
-a b c d e f
-4 5 ww 4 5 a
-7 8 xxxxx 7 8 b
-4 3 zyx 4 5 a
-7 7 xxxyy 7 8 b
-4 5 wa 4 5 a
-7 8 xxxxa 7 8 b
-4 3 zya 4 5 a
-7 7 xxxya 7 8 b
-4 5 ww 4 5 a
-7 8 xxxxx 7 8 b
-4 3 zyx 4 5 a
-7 7 xxxyy 7 8 b
-4 5 wa 4 5 a
-7 8 xxxxa 7 8 b
-4 3 zya 4 5 a
-7 7 xxxya 7 8 b
-# join order: (t1,t2) with ref access of t2
-# no range access
-explain select * from t1,t2
-where a = d and (a,e) in ((e,d+1),(7,7),(8,8)) and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL idx NULL NULL NULL 144 Using where
-1 SIMPLE t2 ref idx3 idx3 5 test.t1.a 3 Using where
-explain format=json select * from t1,t2
-where a = d and (a,e) in ((e,d+1),(7,7),(8,8)) and length(f) = 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "possible_keys": ["idx"],
- "rows": 144,
- "filtered": 100,
- "attached_condition": "t1.a is not null"
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["idx3"],
- "key": "idx3",
- "key_length": "5",
- "used_key_parts": ["d"],
- "ref": ["test.t1.a"],
- "rows": 3,
- "filtered": 100,
- "attached_condition": "(t1.a,t2.e) in ((t2.e,t1.a + 1),<cache>((7,7)),<cache>((8,8))) and octet_length(t2.f) = 1"
- }
- }
-}
-select * from t1,t2
-where a = d and (a,e) in ((e,d+1),(7,7),(8,8)) and length(f) = 1;
-a b c d e f
-7 8 xxxxx 7 7 h
-7 7 xxxyy 7 7 h
-7 8 xxxxa 7 7 h
-7 7 xxxya 7 7 h
-7 8 xxxxx 7 7 h
-7 7 xxxyy 7 7 h
-7 8 xxxxa 7 7 h
-7 7 xxxya 7 7 h
-# join order: (t1,t2) with ref access of t2
-# range access to t1 by 1-component keys for index idx
-explain select * from t1,t2
-where a = d and (a,2) in ((2,2),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 5 NULL 13 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE t2 ref idx3 idx3 5 test.t1.a 3 Using where
-explain format=json select * from t1,t2
-where a = d and (a,2) in ((2,2),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 13,
- "filtered": 100,
- "index_condition": "t1.a is not null",
- "attached_condition": "(t1.a,2) in (<cache>((2,2)),<cache>((7,7)),<cache>((8,8))) and octet_length(t1.c) = 1",
- "mrr_type": "Rowid-ordered scan"
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["idx3"],
- "key": "idx3",
- "key_length": "5",
- "used_key_parts": ["d"],
- "ref": ["test.t1.a"],
- "rows": 3,
- "filtered": 100,
- "attached_condition": "octet_length(t2.f) = 1"
- }
- }
-}
-select * from t1,t2
-where a = d and (a,2) in ((2,2),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1;
-a b c d e f
-2 1 w 2 1 e
-2 1 w 2 2 k
-2 1 w 2 3 g
-2 1 w 2 1 e
-2 1 w 2 2 k
-2 1 w 2 3 g
-prepare stmt from "select * from t1,t2
-where a = d and (a,2) in ((2,2),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1";
-execute stmt;
-a b c d e f
-2 1 w 2 1 e
-2 1 w 2 2 k
-2 1 w 2 3 g
-2 1 w 2 1 e
-2 1 w 2 2 k
-2 1 w 2 3 g
-execute stmt;
-a b c d e f
-2 1 w 2 1 e
-2 1 w 2 2 k
-2 1 w 2 3 g
-2 1 w 2 1 e
-2 1 w 2 2 k
-2 1 w 2 3 g
-deallocate prepare stmt;
-create table t3 (id int primary key, v int) engine=myisam;
-insert into t3 values
-(3,2), (1,1), (4,12), (2,15);
-# join order: (t3,t1,t2) with const t3 and ref access of t2
-# range access to t1 by 1-component keys for index idx
-explain select * from t1,t2,t3
-where id = 1 and a = d and
-(a,v+1) in ((2,2),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t1 range idx idx 5 NULL 13 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE t2 ref idx3 idx3 5 test.t1.a 3 Using where
-explain format=json select * from t1,t2,t3
-where id = 1 and a = d and
-(a,v+1) in ((2,2),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t3",
- "access_type": "const",
- "possible_keys": ["PRIMARY"],
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["id"],
- "ref": ["const"],
- "rows": 1,
- "filtered": 100
- },
- "table": {
- "table_name": "t1",
- "access_type": "range",
- "possible_keys": ["idx"],
- "key": "idx",
- "key_length": "5",
- "used_key_parts": ["a"],
- "rows": 13,
- "filtered": 100,
- "index_condition": "t1.a is not null",
- "attached_condition": "(t1.a,1 + 1) in (<cache>((2,2)),<cache>((7,7)),<cache>((8,8))) and octet_length(t1.c) = 1",
- "mrr_type": "Rowid-ordered scan"
- },
- "table": {
- "table_name": "t2",
- "access_type": "ref",
- "possible_keys": ["idx3"],
- "key": "idx3",
- "key_length": "5",
- "used_key_parts": ["d"],
- "ref": ["test.t1.a"],
- "rows": 3,
- "filtered": 100,
- "attached_condition": "octet_length(t2.f) = 1"
- }
- }
-}
-select * from t1,t2,t3
-where id = 1 and a = d and
-(a,v+1) in ((2,2),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1;
-a b c d e f id v
-2 1 w 2 1 e 1 1
-2 1 w 2 2 k 1 1
-2 1 w 2 3 g 1 1
-2 1 w 2 1 e 1 1
-2 1 w 2 2 k 1 1
-2 1 w 2 3 g 1 1
-# IN predicate is always FALSE
-explain select * from t1,t2,t3
-where id = 1 and a = d and
-(a,v+1) in ((9,9),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-prepare stmt from "select * from t1,t2,t3
-where id = 1 and a = d and
-(a,v+1) in ((9,9),(7,7),(8,8)) and
-length(c) = 1 and length(f) = 1";
-execute stmt;
-a b c d e f id v
-execute stmt;
-a b c d e f id v
-deallocate prepare stmt;
-set optimizer_switch=@save_optimizer_switch;
-drop table t1,t2,t3;
-#
-# End of 10.2 tests
-#
-set optimizer_switch=@mrr_icp_extra_tmp;
diff --git a/mysql-test/r/range_vs_index_merge.result b/mysql-test/r/range_vs_index_merge.result
deleted file mode 100644
index bc46a4fdd0b..00000000000
--- a/mysql-test/r/range_vs_index_merge.result
+++ /dev/null
@@ -1,1891 +0,0 @@
-DROP TABLE IF EXISTS t1,t2,t3,t4;
-DROP DATABASE IF EXISTS world;
-set names utf8;
-CREATE DATABASE world;
-use world;
-CREATE TABLE Country (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name)
-);
-CREATE TABLE City (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-);
-CREATE TABLE CountryLanguage (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-);
-SELECT COUNT(*) FROM Country;
-COUNT(*)
-239
-SELECT COUNT(*) FROM City;
-COUNT(*)
-4079
-SELECT COUNT(*) FROM CountryLanguage;
-COUNT(*)
-984
-CREATE INDEX Name ON City(Name);
-set session optimizer_switch='index_merge_sort_intersection=off';
-EXPLAIN
-SELECT * FROM City
-WHERE (Population >= 100000 OR Name LIKE 'P%' OR Population < 100000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ALL Population,Name NULL NULL NULL 4079 Using where
-EXPLAIN
-SELECT * FROM City
-WHERE (Population >= 100000 OR Name LIKE 'P%') AND Country='CAN' OR
-(Population < 100000 OR Name Like 'T%') AND Country='ARG';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Country,Name Country 3 NULL 104 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Population < 200000 AND Name LIKE 'P%' AND
-(Population > 300000 OR Name LIKE 'T%') AND
-(Population < 100000 OR Name LIKE 'Pa%');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Name Name 35 NULL 135 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Population > 100000 AND Name LIKE 'Aba%' OR
-Country IN ('CAN', 'ARG') AND ID BETWEEN 120 AND 130 OR
-Country <= 'ALB' AND Name LIKE 'L%' OR
-ID BETWEEN 3807 AND 3810;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name Name,PRIMARY,Country 35,4,3 NULL 31 Using sort_union(Name,PRIMARY,Country); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE (Population > 101000 AND Population < 115000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 459 Using index condition
-EXPLAIN
-SELECT * FROM City
-WHERE (Population > 101000 AND Population < 102000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 39 Using index condition
-EXPLAIN
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Country,Name Name,Country 35,3 NULL 172 Using sort_union(Name,Country); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
-AND (Population > 101000 AND Population < 115000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Name,Country 35,3 NULL 172 Using sort_union(Name,Country); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
-AND (Population > 101000 AND Population < 102000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Country,Name Population 4 NULL 39 Using index condition; Using where
-SELECT * FROM City USE INDEX ()
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
-AND (Population > 101000 AND Population < 115000);
-ID Name Country Population
-403 Catanduva BRA 107761
-412 Cachoeirinha BRA 103240
-636 Bilbays EGY 113608
-637 Mit Ghamr EGY 101801
-701 Tarragona ESP 113016
-702 Lleida (Lérida) ESP 112207
-703 Jaén ESP 109247
-704 Ourense (Orense) ESP 109120
-705 Mataró ESP 104095
-706 Algeciras ESP 103106
-707 Marbella ESP 101144
-759 Gonder ETH 112249
-869 Cabuyao PHL 106630
-870 Calapan PHL 105910
-873 Cauayan PHL 103952
-1844 Cape Breton CAN 114733
-1847 Cambridge CAN 109186
-2908 Cajamarca PER 108009
-3003 Caen FRA 113987
-3411 Ceyhan TUR 102412
-3571 Calabozo VEN 107146
-3786 Cam Ranh VNM 114041
-3792 Tartu EST 101246
-4002 Carrollton USA 109576
-4027 Cape Coral USA 102286
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
-AND (Population > 101000 AND Population < 115000);
-ID Name Country Population
-403 Catanduva BRA 107761
-412 Cachoeirinha BRA 103240
-636 Bilbays EGY 113608
-637 Mit Ghamr EGY 101801
-701 Tarragona ESP 113016
-702 Lleida (Lérida) ESP 112207
-703 Jaén ESP 109247
-704 Ourense (Orense) ESP 109120
-705 Mataró ESP 104095
-706 Algeciras ESP 103106
-707 Marbella ESP 101144
-759 Gonder ETH 112249
-869 Cabuyao PHL 106630
-870 Calapan PHL 105910
-873 Cauayan PHL 103952
-1844 Cape Breton CAN 114733
-1847 Cambridge CAN 109186
-2908 Cajamarca PER 108009
-3003 Caen FRA 113987
-3411 Ceyhan TUR 102412
-3571 Calabozo VEN 107146
-3786 Cam Ranh VNM 114041
-3792 Tartu EST 101246
-4002 Carrollton USA 109576
-4027 Cape Coral USA 102286
-4032 Cambridge USA 101355
-SELECT * FROM City USE INDEX ()
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
-AND (Population > 101000 AND Population < 102000);
-ID Name Country Population
-637 Mit Ghamr EGY 101801
-707 Marbella ESP 101144
-3792 Tartu EST 101246
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
-AND (Population > 101000 AND Population < 102000);
-ID Name Country Population
-707 Marbella ESP 101144
-3792 Tartu EST 101246
-4032 Cambridge USA 101355
-637 Mit Ghamr EGY 101801
-EXPLAIN
-SELECT * FROM City WHERE (Name < 'Ac');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 13 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Name < 'Bb');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 208 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Country > 'A' AND Country < 'B');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country Country 3 NULL 104 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Name BETWEEN 'P' AND 'Pb');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 39 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Name BETWEEN 'P' AND 'S');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 221 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Population > 101000 AND Population < 110000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 328 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Population > 103000 AND Population < 104000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 37 Using index condition
-EXPLAIN
-SELECT * FROM City
-WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Country,Name Name 35 NULL 52 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'S' AND (Population > 103000 AND Population < 104000));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Name,Population 35,4 NULL 50 Using sort_union(Name,Population); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE (Name < 'Bb' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Country,Name 3,35 NULL 143 Using sort_union(Country,Name); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE (Name < 'Bb' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'S' AND (Population > 103000 AND Population < 104000));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Country,Population 3,4 NULL 141 Using sort_union(Country,Population); Using where
-SELECT * FROM City USE INDEX ()
-WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
-ID Name Country Population
-65 Abu Dhabi ARE 398695
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-750 Paarl ZAF 105768
-2865 Pak Pattan PAK 107800
-SELECT * FROM City
-WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
-ID Name Country Population
-65 Abu Dhabi ARE 398695
-750 Paarl ZAF 105768
-168 Pabna BGD 103277
-2865 Pak Pattan PAK 107800
-189 Parakou BEN 103577
-SELECT * FROM City USE INDEX ()
-WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'S' AND (Population > 103000 AND Population < 104000));
-ID Name Country Population
-65 Abu Dhabi ARE 398695
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-1003 Pemalang IDN 103500
-2663 Río Bravo MEX 103901
-SELECT * FROM City
-WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'S' AND (Population > 103000 AND Population < 104000));
-ID Name Country Population
-65 Abu Dhabi ARE 398695
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-1003 Pemalang IDN 103500
-2663 Río Bravo MEX 103901
-SELECT * FROM City USE INDEX ()
-WHERE (Name < 'Bb' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
-ID Name Country Population
-55 Andorra la Vella AND 21189
-65 Abu Dhabi ARE 398695
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-75 Almirante Brown ARG 538918
-85 Avellaneda ARG 353046
-96 Bahía Blanca ARG 239810
-134 Adelaide AUS 978100
-144 Baku AZE 1787800
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-750 Paarl ZAF 105768
-2865 Pak Pattan PAK 107800
-SELECT * FROM City
-WHERE (Name < 'Bb' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
-ID Name Country Population
-55 Andorra la Vella AND 21189
-65 Abu Dhabi ARE 398695
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-75 Almirante Brown ARG 538918
-85 Avellaneda ARG 353046
-96 Bahía Blanca ARG 239810
-134 Adelaide AUS 978100
-144 Baku AZE 1787800
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-750 Paarl ZAF 105768
-2865 Pak Pattan PAK 107800
-SELECT * FROM City USE INDEX ()
-WHERE (Name < 'Bb' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'S' AND (Population > 103000 AND Population < 104000));
-ID Name Country Population
-55 Andorra la Vella AND 21189
-65 Abu Dhabi ARE 398695
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-75 Almirante Brown ARG 538918
-85 Avellaneda ARG 353046
-96 Bahía Blanca ARG 239810
-134 Adelaide AUS 978100
-144 Baku AZE 1787800
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-1003 Pemalang IDN 103500
-2663 Río Bravo MEX 103901
-SELECT * FROM City
-WHERE (Name < 'Bb' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'S' AND (Population > 103000 AND Population < 104000));
-ID Name Country Population
-55 Andorra la Vella AND 21189
-65 Abu Dhabi ARE 398695
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-75 Almirante Brown ARG 538918
-85 Avellaneda ARG 353046
-96 Bahía Blanca ARG 239810
-134 Adelaide AUS 978100
-144 Baku AZE 1787800
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-1003 Pemalang IDN 103500
-2663 Río Bravo MEX 103901
-EXPLAIN
-SELECT * FROM City WHERE (ID < 10) OR (ID BETWEEN 100 AND 110);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 21 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City WHERE (ID < 200) OR (ID BETWEEN 100 AND 200);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 201 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City WHERE (ID < 600) OR (ID BETWEEN 900 AND 1500);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ALL PRIMARY NULL NULL NULL 4079 Using where
-EXPLAIN
-SELECT * FROM City WHERE Country > 'A' AND Country < 'ARG';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country Country 3 NULL 19 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Name LIKE 'H%' OR Name LIKE 'P%' ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 222 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City WHERE Name LIKE 'Ha%' OR Name LIKE 'Pa%' ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 72 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 100 AND 110) AND
-(Name LIKE 'P%' OR (Population > 103000 AND Population < 104000)));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY,Population,Country,Name PRIMARY 4 NULL 21 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((ID < 800) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 900 AND 1500) AND
-(Name LIKE 'Pa%' OR (Population > 103000 AND Population < 104000)));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name Name,Country,Population 35,3,4 NULL 128 Using sort_union(Name,Country,Population); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((ID < 200) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 100 AND 200) AND
-(Name LIKE 'Pa%' OR (Population > 103000 AND Population < 104000)));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name Name,Country,Population 35,3,4 NULL 128 Using sort_union(Name,Country,Population); Using where
-SELECT * FROM City USE INDEX ()
-WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 100 AND 110) AND
-(Name LIKE 'P%' OR (Population > 103000 AND Population < 104000)));
-ID Name Country Population
-1 Kabul AFG 1780000
-2 Qandahar AFG 237500
-3 Herat AFG 186800
-4 Mazar-e-Sharif AFG 127800
-7 Haag NLD 440900
-100 Paraná ARG 207041
-102 Posadas ARG 201273
-SELECT * FROM City
-WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 100 AND 110) AND
-(Name LIKE 'P%' OR (Population > 103000 AND Population < 104000)));
-ID Name Country Population
-1 Kabul AFG 1780000
-2 Qandahar AFG 237500
-3 Herat AFG 186800
-4 Mazar-e-Sharif AFG 127800
-7 Haag NLD 440900
-100 Paraná ARG 207041
-102 Posadas ARG 201273
-SELECT * FROM City USE INDEX()
-WHERE ((ID < 800) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 900 AND 1500) AND
-(Name LIKE 'Pa%' OR (Population > 103000 AND Population < 104000)));
-ID Name Country Population
-1 Kabul AFG 1780000
-2 Qandahar AFG 237500
-3 Herat AFG 186800
-4 Mazar-e-Sharif AFG 127800
-7 Haag NLD 440900
-16 Haarlem NLD 148772
-25 Haarlemmermeer NLD 110722
-33 Willemstad ANT 2345
-34 Tirana ALB 270000
-55 Andorra la Vella AND 21189
-56 Luanda AGO 2022000
-57 Huambo AGO 163100
-58 Lobito AGO 130000
-59 Benguela AGO 128300
-60 Namibe AGO 118200
-61 South Hill AIA 961
-62 The Valley AIA 595
-64 Dubai ARE 669181
-65 Abu Dhabi ARE 398695
-66 Sharja ARE 320095
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-129 Oranjestad ABW 29034
-191 Hamilton BMU 1200
-528 Hartlepool GBR 92000
-529 Halifax GBR 91069
-914 Sekondi-Takoradi GHA 103653
-943 Palembang IDN 1222764
-950 Padang IDN 534474
-983 Palu IDN 142800
-984 Pasuruan IDN 134019
-991 Pangkal Pinang IDN 124000
-1003 Pemalang IDN 103500
-1004 Klaten IDN 103300
-1007 Palangka Raya IDN 99693
-1020 Padang Sidempuan IDN 91200
-1045 Patna IND 917243
-1114 Panihati IND 275990
-1129 Patiala IND 238368
-1142 Panipat IND 215218
-1159 Parbhani IND 190255
-1231 Pali IND 136842
-1263 Pathankot IND 123930
-1265 Palghat (Palakkad) IND 123289
-1293 Pallavaram IND 111866
-1319 Tellicherry (Thalassery) IND 103579
-1339 Palayankottai IND 97662
-1345 Patan IND 96109
-1436 Marv Dasht IRN 103579
-1468 Palermo ITA 683794
-1478 Padova ITA 211391
-1484 Parma ITA 168717
-SELECT * FROM City
-WHERE ((ID < 800) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 900 AND 1500) AND
-(Name LIKE 'Pa%' OR (Population > 103000 AND Population < 104000)));
-ID Name Country Population
-1 Kabul AFG 1780000
-2 Qandahar AFG 237500
-3 Herat AFG 186800
-4 Mazar-e-Sharif AFG 127800
-7 Haag NLD 440900
-16 Haarlem NLD 148772
-25 Haarlemmermeer NLD 110722
-33 Willemstad ANT 2345
-34 Tirana ALB 270000
-55 Andorra la Vella AND 21189
-56 Luanda AGO 2022000
-57 Huambo AGO 163100
-58 Lobito AGO 130000
-59 Benguela AGO 128300
-60 Namibe AGO 118200
-61 South Hill AIA 961
-62 The Valley AIA 595
-64 Dubai ARE 669181
-65 Abu Dhabi ARE 398695
-66 Sharja ARE 320095
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-129 Oranjestad ABW 29034
-191 Hamilton BMU 1200
-528 Hartlepool GBR 92000
-529 Halifax GBR 91069
-914 Sekondi-Takoradi GHA 103653
-943 Palembang IDN 1222764
-950 Padang IDN 534474
-983 Palu IDN 142800
-984 Pasuruan IDN 134019
-991 Pangkal Pinang IDN 124000
-1003 Pemalang IDN 103500
-1004 Klaten IDN 103300
-1007 Palangka Raya IDN 99693
-1020 Padang Sidempuan IDN 91200
-1045 Patna IND 917243
-1114 Panihati IND 275990
-1129 Patiala IND 238368
-1142 Panipat IND 215218
-1159 Parbhani IND 190255
-1231 Pali IND 136842
-1263 Pathankot IND 123930
-1265 Palghat (Palakkad) IND 123289
-1293 Pallavaram IND 111866
-1319 Tellicherry (Thalassery) IND 103579
-1339 Palayankottai IND 97662
-1345 Patan IND 96109
-1436 Marv Dasht IRN 103579
-1468 Palermo ITA 683794
-1478 Padova ITA 211391
-1484 Parma ITA 168717
-SELECT * FROM City USE INDEX ()
-WHERE ((ID < 200) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 100 AND 200) AND
-(Name LIKE 'Pa%' OR (Population > 103000 AND Population < 104000)));
-ID Name Country Population
-1 Kabul AFG 1780000
-2 Qandahar AFG 237500
-3 Herat AFG 186800
-4 Mazar-e-Sharif AFG 127800
-7 Haag NLD 440900
-16 Haarlem NLD 148772
-25 Haarlemmermeer NLD 110722
-33 Willemstad ANT 2345
-34 Tirana ALB 270000
-55 Andorra la Vella AND 21189
-56 Luanda AGO 2022000
-57 Huambo AGO 163100
-58 Lobito AGO 130000
-59 Benguela AGO 128300
-60 Namibe AGO 118200
-61 South Hill AIA 961
-62 The Valley AIA 595
-64 Dubai ARE 669181
-65 Abu Dhabi ARE 398695
-66 Sharja ARE 320095
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-100 Paraná ARG 207041
-129 Oranjestad ABW 29034
-167 Jamalpur BGD 103556
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-191 Hamilton BMU 1200
-SELECT * FROM City
-WHERE ((ID < 200) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 100 AND 200) AND
-(Name LIKE 'Pa%' OR (Population > 103000 AND Population < 104000)));
-ID Name Country Population
-1 Kabul AFG 1780000
-2 Qandahar AFG 237500
-3 Herat AFG 186800
-4 Mazar-e-Sharif AFG 127800
-7 Haag NLD 440900
-16 Haarlem NLD 148772
-25 Haarlemmermeer NLD 110722
-33 Willemstad ANT 2345
-34 Tirana ALB 270000
-55 Andorra la Vella AND 21189
-56 Luanda AGO 2022000
-57 Huambo AGO 163100
-58 Lobito AGO 130000
-59 Benguela AGO 128300
-60 Namibe AGO 118200
-61 South Hill AIA 961
-62 The Valley AIA 595
-64 Dubai ARE 669181
-65 Abu Dhabi ARE 398695
-66 Sharja ARE 320095
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-100 Paraná ARG 207041
-129 Oranjestad ABW 29034
-167 Jamalpur BGD 103556
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-191 Hamilton BMU 1200
-EXPLAIN
-SELECT * FROM City WHERE Population > 101000 AND Population < 102000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 39 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Population > 101000 AND Population < 110000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 328 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Country < 'C';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country Country 3 NULL 436 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Country < 'AGO';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country Country 3 NULL 6 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Name BETWEEN 'P' AND 'S';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 221 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Name BETWEEN 'P' AND 'Pb';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 39 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 3400 AND 3800;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 401 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 3790 AND 3800;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Name LIKE 'P%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 135 Using index condition
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 102000) AND
-(Country < 'C' OR Name BETWEEN 'P' AND 'S')) OR
-((ID BETWEEN 3400 AND 3800) AND
-(Country < 'AGO' OR Name LIKE 'Pa%'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name Country,Name,Population 3,35,4 NULL 84 Using sort_union(Country,Name,Population); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 110000) AND
-(Country < 'AGO' OR Name BETWEEN 'P' AND 'Pb')) OR
-((ID BETWEEN 3790 AND 3800) AND
-(Country < 'C' OR Name LIKE 'P%'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name Country,Name,PRIMARY 3,35,4 NULL 56 Using sort_union(Country,Name,PRIMARY); Using where
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 102000) AND
-(Country < 'C' OR Name BETWEEN 'P' AND 'S')) OR
-((ID BETWEEN 3400 AND 3800) AND
-(Country < 'AGO' OR Name LIKE 'Pa%'));
-ID Name Country Population
-169 Naogaon BGD 101266
-205 Francistown BWA 101805
-417 Itaituba BRA 101320
-418 Araras BRA 101046
-751 Potchefstroom ZAF 101817
-2909 Puno PER 101578
-3463 Pavlograd UKR 127000
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 102000) AND
-(Country < 'C' OR Name BETWEEN 'P' AND 'S')) OR
-((ID BETWEEN 3400 AND 3800) AND
-(Country < 'AGO' OR Name LIKE 'Pa%'));
-ID Name Country Population
-169 Naogaon BGD 101266
-205 Francistown BWA 101805
-417 Itaituba BRA 101320
-418 Araras BRA 101046
-751 Potchefstroom ZAF 101817
-2909 Puno PER 101578
-3463 Pavlograd UKR 127000
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 110000) AND
-(Country < 'AGO' OR Name BETWEEN 'P' AND 'Pb')) OR
-((ID BETWEEN 3790 AND 3800) AND
-(Country < 'C' OR Name LIKE 'P%'));
-ID Name Country Population
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-750 Paarl ZAF 105768
-2865 Pak Pattan PAK 107800
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 110000) AND
-(Country < 'AGO' OR Name BETWEEN 'P' AND 'Pb')) OR
-((ID BETWEEN 3790 AND 3800) AND
-(Country < 'C' OR Name LIKE 'P%'));
-ID Name Country Population
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-750 Paarl ZAF 105768
-2865 Pak Pattan PAK 107800
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-CREATE INDEX CountryPopulation ON City(Country,Population);
-EXPLAIN
-SELECT * FROM City WHERE Name LIKE 'Pas%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 5 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Name LIKE 'P%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 135 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Population > 101000 AND Population < 103000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 81 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Country='USA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ref Country,CountryPopulation Country 3 const 267 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Country='FIN';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ref Country,CountryPopulation Country 3 const 6 Using index condition
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'Pas%')
-AND Country='USA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name,CountryPopulation CountryPopulation,Name 7,35 NULL 15 Using sort_union(CountryPopulation,Name); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'P%')
-AND Country='FIN';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ref Population,Country,Name,CountryPopulation Country 3 const 6 Using index condition; Using where
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'Pas%')
-AND Country='USA';
-ID Name Country Population
-3943 Pasadena USA 141674
-3953 Pasadena USA 133936
-4023 Gary USA 102746
-4024 Berkeley USA 102743
-4025 Santa Clara USA 102361
-4026 Green Bay USA 102313
-4027 Cape Coral USA 102286
-4028 Arvada USA 102153
-4029 Pueblo USA 102121
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'Pas%')
-AND Country='USA';
-ID Name Country Population
-3943 Pasadena USA 141674
-3953 Pasadena USA 133936
-4023 Gary USA 102746
-4024 Berkeley USA 102743
-4025 Santa Clara USA 102361
-4026 Green Bay USA 102313
-4027 Cape Coral USA 102286
-4028 Arvada USA 102153
-4029 Pueblo USA 102121
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'P%')
-AND Country='FIN';
-ID Name Country Population
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'P%')
-AND Country='FIN';
-ID Name Country Population
-CREATE INDEX CountryName ON City(Country,Name);
-EXPLAIN
-SELECT * FROM City WHERE Country='USA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ref Country,CountryPopulation,CountryName Country 3 const 267 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Country='FIN';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ref Country,CountryPopulation,CountryName CountryName 3 const 5 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Country='BRA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ref Country,CountryPopulation,CountryName CountryName 3 const 221 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 3790 AND 3800;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 4025 AND 4035;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 4028 AND 4032;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 5 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 3500 AND 3800;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 301 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 4000 AND 4300;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 80 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 250 and 260 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Population > 101000 AND Population < 102000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 39 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Population > 101000 AND Population < 103000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 81 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Name LIKE 'Pa%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 41 Using index condition
-set @tmp_range_vs_index_merge=@@optimizer_switch;
-set optimizer_switch='extended_keys=off';
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4025 AND 4035);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name,CountryPopulation,CountryName CountryPopulation,PRIMARY 7,4 NULL 14 Using sort_union(CountryPopulation,PRIMARY); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 103000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4028 AND 4032);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name,CountryPopulation,CountryName CountryName,PRIMARY 38,4 NULL 11 Using sort_union(CountryName,PRIMARY); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 110000) OR
-ID BETWEEN 3500 AND 3800) AND Country='FIN'
- AND (Name BETWEEN 'P' AND 'T' OR ID BETWEEN 4000 AND 4300);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ref PRIMARY,Population,Country,Name,CountryPopulation,CountryName CountryName 3 const 5 Using index condition; Using where
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4025 AND 4035);
-ID Name Country Population
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4025 AND 4035);
-ID Name Country Population
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4028 AND 4032);
-ID Name Country Population
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4028 AND 4032);
-ID Name Country Population
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='FIN'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4025 AND 4035);
-ID Name Country Population
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='FIN'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4025 AND 4035);
-ID Name Country Population
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 and Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- OR (Name LIKE 'Pa%' OR ID BETWEEN 250 AND 260) AND Country='BRA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name,CountryPopulation,CountryName CountryPopulation,PRIMARY,CountryName 7,4,38 NULL 35 Using sort_union(CountryPopulation,PRIMARY,CountryName); Using where
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 and Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- OR (Name LIKE 'Pa%' OR ID BETWEEN 250 AND 260) AND Country='BRA';
-ID Name Country Population
-250 Mauá BRA 375055
-251 Carapicuíba BRA 357552
-252 Olinda BRA 354732
-253 Campina Grande BRA 352497
-254 São José do Rio Preto BRA 351944
-255 Caxias do Sul BRA 349581
-256 Moji das Cruzes BRA 339194
-257 Diadema BRA 335078
-258 Aparecida de Goiânia BRA 324662
-259 Piracicaba BRA 319104
-260 Cariacica BRA 319033
-285 Paulista BRA 248473
-339 Passo Fundo BRA 166343
-364 Parnaíba BRA 129756
-372 Paranaguá BRA 126076
-379 Palmas BRA 121919
-386 Patos de Minas BRA 119262
-424 Passos BRA 98570
-430 Paulo Afonso BRA 97291
-435 Parnamirim BRA 96210
-448 Patos BRA 90519
-451 Palhoça BRA 89465
-3793 New York USA 8008278
-3794 Los Angeles USA 3694820
-3795 Chicago USA 2896016
-3796 Houston USA 1953631
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-3799 San Diego USA 1223400
-3800 Dallas USA 1188580
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE ((Population > 101000 and Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- OR (Name LIKE 'Pa%' OR ID BETWEEN 250 AND 260) AND Country='BRA';
-ID Name Country Population
-250 Mauá BRA 375055
-251 Carapicuíba BRA 357552
-252 Olinda BRA 354732
-253 Campina Grande BRA 352497
-254 São José do Rio Preto BRA 351944
-255 Caxias do Sul BRA 349581
-256 Moji das Cruzes BRA 339194
-257 Diadema BRA 335078
-258 Aparecida de Goiânia BRA 324662
-259 Piracicaba BRA 319104
-260 Cariacica BRA 319033
-285 Paulista BRA 248473
-339 Passo Fundo BRA 166343
-364 Parnaíba BRA 129756
-372 Paranaguá BRA 126076
-379 Palmas BRA 121919
-386 Patos de Minas BRA 119262
-424 Passos BRA 98570
-430 Paulo Afonso BRA 97291
-435 Parnamirim BRA 96210
-448 Patos BRA 90519
-451 Palhoça BRA 89465
-3793 New York USA 8008278
-3794 Los Angeles USA 3694820
-3795 Chicago USA 2896016
-3796 Houston USA 1953631
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-3799 San Diego USA 1223400
-3800 Dallas USA 1188580
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 11000) OR
-ID BETWEEN 3500 AND 3800) AND Country='USA'
- AND (Name LIKE 'P%' OR ID BETWEEN 4000 AND 4300);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY,Population,Country,Name,CountryPopulation,CountryName CountryName 38 NULL 23 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 11000) OR
-ID BETWEEN 3500 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pho%' OR ID BETWEEN 4000 AND 4300);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY,Population,Country,Name,CountryPopulation,CountryName Name 35 NULL 1 Using where
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 11000) OR
-ID BETWEEN 3500 AND 3800) AND Country='USA'
- AND (Name LIKE 'P%' OR ID BETWEEN 4000 AND 4300);
-ID Name Country Population
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 11000) OR
-ID BETWEEN 3500 AND 3800) AND Country='USA'
- AND (Name LIKE 'P%' OR ID BETWEEN 4000 AND 4300);
-ID Name Country Population
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 11000) OR
-ID BETWEEN 3500 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pho%' OR ID BETWEEN 4000 AND 4300);
-ID Name Country Population
-3798 Phoenix USA 1321045
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 11000) OR
-ID BETWEEN 3500 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pho%' OR ID BETWEEN 4000 AND 4300);
-ID Name Country Population
-3798 Phoenix USA 1321045
-DROP INDEX Population ON City;
-DROP INDEX Name ON City;
-set optimizer_switch=@tmp_range_vs_index_merge;
-EXPLAIN
-SELECT * FROM City
-WHERE Country='USA' AND Population BETWEEN 101000 AND 102000 OR
-Country='USA' AND Name LIKE 'Pa%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Country,CountryPopulation,CountryName CountryPopulation,CountryName 7,38 NULL 10 Using sort_union(CountryPopulation,CountryName); Using where
-SELECT * FROM City USE INDEX()
-WHERE Country='USA' AND Population BETWEEN 101000 AND 102000 OR
-Country='USA' AND Name LIKE 'Pa%';
-ID Name Country Population
-3932 Paterson USA 149222
-3943 Pasadena USA 141674
-3953 Pasadena USA 133936
-3967 Paradise USA 124682
-3986 Palmdale USA 116670
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE Country='USA' AND Population BETWEEN 101000 AND 102000 OR
-Country='USA' AND Name LIKE 'Pa%';
-ID Name Country Population
-3932 Paterson USA 149222
-3943 Pasadena USA 141674
-3953 Pasadena USA 133936
-3967 Paradise USA 124682
-3986 Palmdale USA 116670
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-EXPLAIN
-SELECT * FROM City
-WHERE Country='USA' AND
-(Population BETWEEN 101000 AND 102000 OR Name LIKE 'Pa%');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Country,CountryPopulation,CountryName CountryPopulation,CountryName 7,38 NULL 10 Using sort_union(CountryPopulation,CountryName); Using where
-SELECT * FROM City
-WHERE Country='USA' AND
-(Population BETWEEN 101000 AND 102000 OR Name LIKE 'Pa%');
-ID Name Country Population
-3932 Paterson USA 149222
-3943 Pasadena USA 141674
-3953 Pasadena USA 133936
-3967 Paradise USA 124682
-3986 Palmdale USA 116670
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE Country='USA' AND
-(Population BETWEEN 101000 AND 102000 OR Name LIKE 'Pa%');
-ID Name Country Population
-3932 Paterson USA 149222
-3943 Pasadena USA 141674
-3953 Pasadena USA 133936
-3967 Paradise USA 124682
-3986 Palmdale USA 116670
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-set @save_optimizer_switch=@@optimizer_switch;
-CREATE INDEX CityName on City(Name);
-EXPLAIN SELECT Name, Country, Population FROM City WHERE
-(Name='Manila' AND Country='PHL') OR
-(Name='Addis Abeba' AND Country='ETH') OR
-(Name='Jakarta' AND Country='IDN') OR
-(Name='Bangalore' AND Country='IND') OR
-(Name='Teheran' AND Country='IRN') OR
-(Name='Roma' AND Country='ITA') OR
-(Name='Delhi' AND Country='IND') OR
-(Name='Venezia' AND Country='ITA') OR
-(Name='Tokyo' AND Country='JPN') OR
-(Name='Toronto' AND Country='CAN') OR
-(Name='Peking' AND Country='CHN') OR
-(Name='Lagos' AND Country='NGA') OR
-(Name='Tijuana' AND Country='MEX') OR
-(Name='Rabat' AND Country='MAR') OR
-(Name='Seoul' AND Country='KOR') OR
-(Name='Vancouver' AND Country='CAN') OR
-(Name='Kaunas' AND Country='LTU') OR
-(Name='Paris' AND Country='FRA') OR
-(Name='Dakar' AND Country='SEN') OR
-(Name='Basel' AND Country='CHE') OR
-(Name='Praha' AND Country='CZE') OR
-(Name='Ankara' AND Country='TUR') OR
-(Name='Dresden' AND Country='DEU') OR
-(Name='Lugansk' AND Country='UKR') OR
-(Name='Caracas' AND Country='VEN') OR
-(Name='Samara' AND Country='RUS') OR
-(Name='Seattle' AND Country='USA');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Country,CountryPopulation,CountryName,CityName CountryName,CityName 38,35 NULL 28 Using sort_union(CountryName,CityName); Using where
-SELECT Name, Country, Population FROM City WHERE
-(Name='Manila' AND Country='PHL') OR
-(Name='Addis Abeba' AND Country='ETH') OR
-(Name='Jakarta' AND Country='IDN') OR
-(Name='Bangalore' AND Country='IND') OR
-(Name='Teheran' AND Country='IRN') OR
-(Name='Roma' AND Country='ITA') OR
-(Name='Delhi' AND Country='IND') OR
-(Name='Venezia' AND Country='ITA') OR
-(Name='Tokyo' AND Country='JPN') OR
-(Name='Toronto' AND Country='CAN') OR
-(Name='Peking' AND Country='CHN') OR
-(Name='Lagos' AND Country='NGA') OR
-(Name='Tijuana' AND Country='MEX') OR
-(Name='Rabat' AND Country='MAR') OR
-(Name='Seoul' AND Country='KOR') OR
-(Name='Vancouver' AND Country='CAN') OR
-(Name='Kaunas' AND Country='LTU') OR
-(Name='Paris' AND Country='FRA') OR
-(Name='Dakar' AND Country='SEN') OR
-(Name='Basel' AND Country='CHE') OR
-(Name='Praha' AND Country='CZE') OR
-(Name='Ankara' AND Country='TUR') OR
-(Name='Dresden' AND Country='DEU') OR
-(Name='Lugansk' AND Country='UKR') OR
-(Name='Caracas' AND Country='VEN') OR
-(Name='Samara' AND Country='RUS') OR
-(Name='Seattle' AND Country='USA');
-Name Country Population
-Addis Abeba ETH 2495000
-Manila PHL 1581082
-Jakarta IDN 9604900
-Delhi IND 7206704
-Bangalore IND 2660088
-Teheran IRN 6758845
-Roma ITA 2643581
-Venezia ITA 277305
-Tokyo JPN 7980230
-Toronto CAN 688275
-Vancouver CAN 514008
-Peking CHN 7472000
-Seoul KOR 9981619
-Kaunas LTU 412639
-Rabat MAR 623457
-Tijuana MEX 1212232
-Lagos NGA 1518000
-Paris FRA 2125246
-Dresden DEU 476668
-Dakar SEN 785071
-Basel CHE 166700
-Praha CZE 1181126
-Ankara TUR 3038159
-Lugansk UKR 469000
-Caracas VEN 1975294
-Samara RUS 1156100
-Seattle USA 563374
-set optimizer_switch='index_merge=off';
-EXPLAIN SELECT Name, Country, Population FROM City WHERE
-(Name='Manila' AND Country='PHL') OR
-(Name='Addis Abeba' AND Country='ETH') OR
-(Name='Jakarta' AND Country='IDN') OR
-(Name='Bangalore' AND Country='IND') OR
-(Name='Teheran' AND Country='IRN') OR
-(Name='Roma' AND Country='ITA') OR
-(Name='Delhi' AND Country='IND') OR
-(Name='Venezia' AND Country='ITA') OR
-(Name='Tokyo' AND Country='JPN') OR
-(Name='Toronto' AND Country='CAN') OR
-(Name='Peking' AND Country='CHN') OR
-(Name='Lagos' AND Country='NGA') OR
-(Name='Tijuana' AND Country='MEX') OR
-(Name='Rabat' AND Country='MAR') OR
-(Name='Seoul' AND Country='KOR') OR
-(Name='Vancouver' AND Country='CAN') OR
-(Name='Kaunas' AND Country='LTU') OR
-(Name='Paris' AND Country='FRA') OR
-(Name='Dakar' AND Country='SEN') OR
-(Name='Basel' AND Country='CHE') OR
-(Name='Praha' AND Country='CZE') OR
-(Name='Ankara' AND Country='TUR') OR
-(Name='Dresden' AND Country='DEU') OR
-(Name='Lugansk' AND Country='UKR') OR
-(Name='Caracas' AND Country='VEN') OR
-(Name='Samara' AND Country='RUS') OR
-(Name='Seattle' AND Country='USA');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country,CountryPopulation,CountryName,CityName CountryName 38 NULL 29 Using index condition; Using where
-SELECT Name, Country, Population FROM City WHERE
-(Name='Manila' AND Country='PHL') OR
-(Name='Addis Abeba' AND Country='ETH') OR
-(Name='Jakarta' AND Country='IDN') OR
-(Name='Bangalore' AND Country='IND') OR
-(Name='Teheran' AND Country='IRN') OR
-(Name='Roma' AND Country='ITA') OR
-(Name='Delhi' AND Country='IND') OR
-(Name='Venezia' AND Country='ITA') OR
-(Name='Tokyo' AND Country='JPN') OR
-(Name='Toronto' AND Country='CAN') OR
-(Name='Peking' AND Country='CHN') OR
-(Name='Lagos' AND Country='NGA') OR
-(Name='Tijuana' AND Country='MEX') OR
-(Name='Rabat' AND Country='MAR') OR
-(Name='Seoul' AND Country='KOR') OR
-(Name='Vancouver' AND Country='CAN') OR
-(Name='Kaunas' AND Country='LTU') OR
-(Name='Paris' AND Country='FRA') OR
-(Name='Dakar' AND Country='SEN') OR
-(Name='Basel' AND Country='CHE') OR
-(Name='Praha' AND Country='CZE') OR
-(Name='Ankara' AND Country='TUR') OR
-(Name='Dresden' AND Country='DEU') OR
-(Name='Lugansk' AND Country='UKR') OR
-(Name='Caracas' AND Country='VEN') OR
-(Name='Samara' AND Country='RUS') OR
-(Name='Seattle' AND Country='USA');
-Name Country Population
-Toronto CAN 688275
-Vancouver CAN 514008
-Basel CHE 166700
-Peking CHN 7472000
-Praha CZE 1181126
-Dresden DEU 476668
-Addis Abeba ETH 2495000
-Paris FRA 2125246
-Jakarta IDN 9604900
-Bangalore IND 2660088
-Delhi IND 7206704
-Teheran IRN 6758845
-Roma ITA 2643581
-Venezia ITA 277305
-Tokyo JPN 7980230
-Seoul KOR 9981619
-Kaunas LTU 412639
-Rabat MAR 623457
-Tijuana MEX 1212232
-Lagos NGA 1518000
-Manila PHL 1581082
-Samara RUS 1156100
-Dakar SEN 785071
-Ankara TUR 3038159
-Lugansk UKR 469000
-Seattle USA 563374
-Caracas VEN 1975294
-set optimizer_switch=@save_optimizer_switch;
-#
-# Bug mdev-585: range vs index-merge with ORDER BY ... LIMIT n
-# (LP bug #637962)
-#
-DROP INDEX CountryPopulation ON City;
-DROP INDEX CountryName ON City;
-DROP INDEX CityName on City;
-CREATE INDEX Name ON City(Name);
-CREATE INDEX Population ON City(Population);
-EXPLAIN
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'H'))
-AND (Population >= 100000 AND Population < 120000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Country,Name,Population Name,Country 35,3 NULL # Using sort_union(Name,Country); Using where
-FLUSH STATUS;
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'H'))
-AND (Population >= 100000 AND Population < 120000);
-ID Name Country Population
-384 Cabo Frio BRA 119503
-387 Camaragibe BRA 118968
-403 Catanduva BRA 107761
-412 Cachoeirinha BRA 103240
-508 Watford GBR 113080
-509 Ipswich GBR 114000
-510 Slough GBR 112000
-511 Exeter GBR 111000
-512 Cheltenham GBR 106000
-513 Gloucester GBR 107000
-514 Saint Helens GBR 106293
-515 Sutton Coldfield GBR 106001
-516 York GBR 104425
-517 Oldham GBR 103931
-518 Basildon GBR 100924
-519 Worthing GBR 100000
-635 Mallawi EGY 119283
-636 Bilbays EGY 113608
-637 Mit Ghamr EGY 101801
-638 al-Arish EGY 100447
-701 Tarragona ESP 113016
-702 Lleida (Lérida) ESP 112207
-703 Jaén ESP 109247
-704 Ourense (Orense) ESP 109120
-705 Mataró ESP 104095
-706 Algeciras ESP 103106
-707 Marbella ESP 101144
-759 Gonder ETH 112249
-869 Cabuyao PHL 106630
-870 Calapan PHL 105910
-873 Cauayan PHL 103952
-903 Serekunda GMB 102600
-909 Sohumi GEO 111700
-913 Tema GHA 109975
-914 Sekondi-Takoradi GHA 103653
-924 Villa Nueva GTM 101295
-1844 Cape Breton CAN 114733
-1847 Cambridge CAN 109186
-2406 Herakleion GRC 116178
-2407 Kallithea GRC 114233
-2408 Larisa GRC 113090
-2908 Cajamarca PER 108009
-3002 Besançon FRA 117733
-3003 Caen FRA 113987
-3004 Orléans FRA 113126
-3005 Mulhouse FRA 110359
-3006 Rouen FRA 106592
-3007 Boulogne-Billancourt FRA 106367
-3008 Perpignan FRA 105115
-3009 Nancy FRA 103605
-3411 Ceyhan TUR 102412
-3567 Carúpano VEN 119639
-3568 Catia La Mar VEN 117012
-3571 Calabozo VEN 107146
-3786 Cam Ranh VNM 114041
-3792 Tartu EST 101246
-4002 Carrollton USA 109576
-4027 Cape Coral USA 102286
-4032 Cambridge USA 101355
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 385
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 377
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-EXPLAIN
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'H'))
-AND (Population >= 100000 AND Population < 120000)
-ORDER BY Population LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country,Name,Population Population 4 NULL # Using where
-FLUSH STATUS;
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'H'))
-AND (Population >= 100000 AND Population < 120000)
-ORDER BY Population LIMIT 5;
-ID Name Country Population
-519 Worthing GBR 100000
-638 al-Arish EGY 100447
-518 Basildon GBR 100924
-707 Marbella ESP 101144
-3792 Tartu EST 101246
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 59
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='index_merge=off';
-EXPLAIN
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'H'))
-AND (Population >= 100000 AND Population < 120000)
-ORDER BY Population LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country,Name,Population Population 4 NULL # Using index condition; Using where
-FLUSH STATUS;
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'H'))
-AND (Population >= 100000 AND Population < 120000)
-ORDER BY Population LIMIT 5;
-ID Name Country Population
-519 Worthing GBR 100000
-638 al-Arish EGY 100447
-518 Basildon GBR 100924
-707 Marbella ESP 101144
-3792 Tartu EST 101246
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 59
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch=@save_optimizer_switch;
-DROP DATABASE world;
-use test;
-CREATE TABLE t1 (
-id int(10) unsigned NOT NULL auto_increment,
-account_id int(10) unsigned NOT NULL,
-first_name varchar(50) default NULL,
-middle_name varchar(50) default NULL,
-last_name varchar(100) default NULL,
-home_address_1 varchar(150) default NULL,
-home_city varchar(75) default NULL,
-home_state char(2) default NULL,
-home_postal_code varchar(50) default NULL,
-home_county varchar(75) default NULL,
-home_country char(3) default NULL,
-work_address_1 varchar(150) default NULL,
-work_city varchar(75) default NULL,
-work_state char(2) default NULL,
-work_postal_code varchar(50) default NULL,
-work_county varchar(75) default NULL,
-work_country char(3) default NULL,
-login varchar(50) NOT NULL,
-PRIMARY KEY (id),
-KEY login (login,account_id),
-KEY account_id (account_id),
-KEY user_home_country_indx (home_country),
-KEY user_work_country_indx (work_country),
-KEY user_home_state_indx (home_state),
-KEY user_work_state_indx (work_state),
-KEY user_home_city_indx (home_city),
-KEY user_work_city_indx (work_city),
-KEY user_first_name_indx (first_name),
-KEY user_last_name_indx (last_name)
-);
-insert into t1(account_id, login, home_state, work_state) values
-(1, 'pw', 'ia', 'ia'), (1, 'pw', 'ia', 'ia'), (1, 'pw', 'ia', 'ia'),
-(1, 'pw', 'ia', 'ia'), (1, 'pw', 'ia', 'ia'), (1, 'pw', 'ia', 'ia');
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-select count(*) from t1 where account_id = 1;
-count(*)
-3072
-select * from t1
-where (home_state = 'ia' or work_state='ia') and account_id = 1;
-id account_id first_name middle_name last_name home_address_1 home_city home_state home_postal_code home_county home_country work_address_1 work_city work_state work_postal_code work_county work_country login
-1 1 NULL NULL NULL NULL NULL ia NULL NULL NULL NULL NULL ia NULL NULL NULL pw
-2 1 NULL NULL NULL NULL NULL ia NULL NULL NULL NULL NULL ia NULL NULL NULL pw
-3 1 NULL NULL NULL NULL NULL ia NULL NULL NULL NULL NULL ia NULL NULL NULL pw
-4 1 NULL NULL NULL NULL NULL ia NULL NULL NULL NULL NULL ia NULL NULL NULL pw
-5 1 NULL NULL NULL NULL NULL ia NULL NULL NULL NULL NULL ia NULL NULL NULL pw
-6 1 NULL NULL NULL NULL NULL ia NULL NULL NULL NULL NULL ia NULL NULL NULL pw
-explain
-select * from t1
-where (home_state = 'ia' or work_state='ia') and account_id = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge account_id,user_home_state_indx,user_work_state_indx user_home_state_indx,user_work_state_indx 3,3 NULL 6 Using union(user_home_state_indx,user_work_state_indx); Using where
-drop table t1;
-CREATE TABLE t1 (
-c1 int(11) NOT NULL auto_increment,
-c2 decimal(10,0) default NULL,
-c3 decimal(10,0) default NULL,
-c4 decimal(10,0) default NULL,
-c5 decimal(10,0) default NULL,
-cp decimal(1,0) default NULL,
-ce decimal(10,0) default NULL,
-cdata char(20),
-PRIMARY KEY (c1),
-KEY k1 (c2,c3,cp,ce),
-KEY k2 (c4,c5,cp,ce)
-);
-insert into t1 (c2, c3, c4, c5, cp) values(1,1,1,1,1);
-insert into t1 (c2, c3, c4, c5, cp) values(2,1,1,1,4);
-insert into t1 (c2, c3, c4, c5, cp) values(2,1,2,1,1);
-insert into t1 (c2, c3, c4, c5, cp) values(2,1,3,1,4);
-insert into t1 (c2, c3, c4, c5, cp) values(3,1,4,1,4);
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-explain
-select * from t1 where (c2=1 and c3=1) or (c4=2 and c5=1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge k1,k2 k1,k2 12,12 NULL 2 Using sort_union(k1,k2); Using where
-explain
-select * from t1
-where (c2=1 and c3=1 and cp=1) or (c4=2 and c5=1 and cp=1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge k1,k2 k1,k2 14,14 NULL 2 Using sort_union(k1,k2); Using where
-explain
-select * from t1
-where ((c2=1 and c3=1) or (c4=2 and c5=1)) and cp=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge k1,k2 k1,k2 14,14 NULL 2 Using sort_union(k1,k2); Using where
-select * from t1
-where (c2=1 and c3=1 and cp=1) or (c4=2 and c5=1 and cp=1);
-c1 c2 c3 c4 c5 cp ce cdata
-1 1 1 1 1 1 NULL NULL
-3 2 1 2 1 1 NULL NULL
-select * from t1
-where ((c2=1 and c3=1) or (c4=2 and c5=1)) and cp=1;
-c1 c2 c3 c4 c5 cp ce cdata
-1 1 1 1 1 1 NULL NULL
-3 2 1 2 1 1 NULL NULL
-drop table t1;
-create table t1 (
-c1 int auto_increment primary key,
-c2 char(20),
-c3 char (20),
-c4 int
-);
-alter table t1 add key k1 (c2);
-alter table t1 add key k2 (c3);
-alter table t1 add key k3 (c4);
-insert into t1 values(null, 'a', 'b', 0);
-insert into t1 values(null, 'c', 'b', 0);
-insert into t1 values(null, 'a', 'd', 0);
-insert into t1 values(null, 'ccc', 'qqq', 0);
-insert into t1 (c2,c3) select c2,c3 from t1 where c2 != 'a';
-insert into t1 (c2,c3) select c2,c3 from t1 where c2 != 'a';
-insert into t1 (c2,c3) select c2,c3 from t1 where c2 != 'a';
-insert into t1 (c2,c3) select c2,c3 from t1 where c2 != 'a';
-insert into t1 (c2,c3) select c2,c3 from t1 where c2 != 'a';
-insert into t1 (c2,c3) select c2,c3 from t1 where c2 != 'a';
-insert into t1 (c2,c3) select c2,c3 from t1 where c2 != 'a';
-insert into t1 (c2,c3,c4) select c2,c3,1 from t1 where c2 != 'a';
-insert into t1 (c2,c3,c4) select c2,c3,2 from t1 where c2 != 'a';
-insert into t1 (c2,c3,c4) select c2,c3,3 from t1 where c2 != 'a';
-insert into t1 (c2,c3,c4) select c2,c3,4 from t1 where c2 != 'a';
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-select count(*) from t1 where (c2='e' OR c3='q');
-count(*)
-0
-select count(*) from t1 where c4 != 0;
-count(*)
-3840
-explain
-select distinct c1 from t1 where (c2='e' OR c3='q');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge k1,k2 k1,k2 21,21 NULL 2 Using union(k1,k2); Using where
-explain
-select distinct c1 from t1 where (c4!= 0) AND (c2='e' OR c3='q');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge k1,k2,k3 k1,k2 21,21 NULL 2 Using union(k1,k2); Using where
-drop table t1;
-create table t1 (
-id int unsigned auto_increment primary key,
-c1 char(12),
-c2 char(15),
-c3 char(1)
-);
-insert into t1 (c3) values ('1'), ('2');
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-update t1 set c1=lpad(id+1000, 12, ' '), c2=lpad(id+10000, 15, ' ');
-alter table t1 add unique index (c1), add unique index (c2), add index (c3);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-explain
-select * from t1 where (c1=' 100000' or c2=' 2000000');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge c1,c2 c1,c2 13,16 NULL 2 Using union(c1,c2); Using where
-explain
-select * from t1 where (c1=' 100000' or c2=' 2000000') and c3='2';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge c1,c2,c3 c1,c2 13,16 NULL 2 Using union(c1,c2); Using where
-select * from t1 where (c1=' 100000' or c2=' 2000000');
-id c1 c2 c3
-select * from t1 where (c1=' 100000' or c2=' 2000000') and c3='2';
-id c1 c2 c3
-drop table t1;
-CREATE TABLE t1 (
-a smallint DEFAULT NULL,
-pk int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-b varchar(10) DEFAULT NULL,
-c varchar(64) DEFAULT NULL,
-INDEX idx1 (a),
-INDEX idx2 (b),
-INDEX idx3 (c)
-);
-SELECT COUNT(*) FROM t1 IGNORE INDEX (idx2,idx3)
-WHERE c = 'i' OR b IN ( 'Arkansas' , 'd' , 'pdib' , 'can' ) OR
-(pk BETWEEN 120 AND 79 + 255 OR a IN ( 4 , 179 , 1 ) ) AND a > 8 ;
-COUNT(*)
-5
-SELECT COUNT(*) FROM t1
-WHERE c = 'i' OR b IN ( 'Arkansas' , 'd' , 'pdib' , 'can' ) OR
-(pk BETWEEN 120 AND 79 + 255 OR a IN ( 4 , 179 , 1 ) ) AND a > 8 ;
-COUNT(*)
-5
-EXPLAIN
-SELECT COUNT(*) FROM t1
-WHERE c = 'i' OR b IN ( 'Arkansas' , 'd' , 'pdib' , 'can' ) OR
-(pk BETWEEN 120 AND 79 + 255 OR a IN ( 4 , 179 , 1 ) ) AND a > 8 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge PRIMARY,idx1,idx2,idx3 idx3,idx2,PRIMARY,idx1 67,13,4,3 NULL 8 Using sort_union(idx3,idx2,PRIMARY,idx1); Using where
-DROP TABLE t1;
-CREATE TABLE t1 (
-f1 int, f2 int, f3 int, f4 int, f5 int,
-PRIMARY KEY (f4), KEY (f1), KEY (f2), KEY (f3)
-) ;
-INSERT INTO t1 VALUES (0,0,NULL,9,5), (0,0,1,9425,NULL);
-SELECT f5 FROM t1
-WHERE f2 != 1 OR f1 IS NULL OR f4 = 4 OR
-f2 AND (f4 BETWEEN 6 AND 255 OR f3 IS NULL);
-f5
-5
-NULL
-DROP TABLE t1;
-CREATE TABLE t1 (
-f1 int, f2 int, f3 int, f4 int,
-PRIMARY KEY (f1), KEY (f3), KEY (f4)
-);
-INSERT INTO t1 VALUES (9,0,2,6), (9930,0,0,NULL);
-SET SESSION optimizer_switch='index_merge_intersection=off';
-SET SESSION optimizer_switch='index_merge_sort_union=off';
-SET SESSION optimizer_switch='index_merge_union=off';
-EXPLAIN
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY,f3,f4 NULL NULL NULL 2 Using where
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-f1 f2 f3 f4
-9 0 2 6
-SET SESSION optimizer_switch='index_merge_union=on';
-EXPLAIN
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY,f3,f4 NULL NULL NULL 2 Using where
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-f1 f2 f3 f4
-9 0 2 6
-INSERT INTO t1 VALUES
-(93,0,3,6), (9933,0,3,3), (94,0,4,6), (9934,0,4,4),
-(95,0,5,6), (9935,0,5,5), (96,0,6,6), (9936,0,6,6),
-(97,0,7,6), (9937,0,7,7), (98,0,8,6), (9938,0,8,8),
-(99,0,9,6), (9939,0,9,9);
-SET SESSION optimizer_switch='index_merge_union=off';
-EXPLAIN
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY,f3,f4 NULL NULL NULL 16 Using where
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-f1 f2 f3 f4
-9 0 2 6
-SET SESSION optimizer_switch='index_merge_union=on';
-EXPLAIN
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge PRIMARY,f3,f4 f3,PRIMARY,f3 5,4,5 NULL 3 Using union(f3,PRIMARY,f3); Using where
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-f1 f2 f3 f4
-9 0 2 6
-SET SESSION optimizer_switch=DEFAULT;
-DROP TABLE t1;
-CREATE TABLE t1 (f1 int) ;
-INSERT INTO t1 VALUES (0), (0);
-CREATE TABLE t2 (f1 int, f2 int, f3 int, f4 int, INDEX idx (f3,f2)) ;
-INSERT INTO t2 VALUES (5,6,0,0), (0,4,0,0);
-CREATE TABLE t3 (f1 int, f2 int, INDEX idx1 (f2,f1) , INDEX idx2 (f1)) ;
-INSERT INTO t3 VALUES (6,0),( 4,0);
-SELECT * FROM t1,t2,t3
-WHERE (t2.f3 = 1 OR t3.f1=t2.f1) AND t3.f1 <> t2.f2 AND t3.f2 = t2.f4;
-f1 f1 f2 f3 f4 f1 f2
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (
-a int, b int, c int, d int,
-PRIMARY KEY(b), INDEX idx1(d), INDEX idx2(d,b,c)
-);
-INSERT INTO t1 VALUES
-(0,58,7,7),(0,63,2,0),(0,64,186,8),(0,65,1,-2), (0,71,190,-3),
-(0,72,321,-7),(0,73,0,3),(0,74,5,25),(0,75,5,3);
-SET SESSION optimizer_switch='index_merge_sort_union=off';
-EXPLAIN
-SELECT * FROM t1
-WHERE t1.b>7 AND t1.d>1 AND t1.d<>8 OR t1.d>=7 AND t1.d<8 OR t1.d>7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY,idx1,idx2 NULL NULL NULL 9 Using where
-SELECT * FROM t1
-WHERE t1.b>7 AND t1.d>1 AND t1.d<>8 OR t1.d>=7 AND t1.d<8 OR t1.d>7;
-a b c d
-0 58 7 7
-0 64 186 8
-0 73 0 3
-0 74 5 25
-0 75 5 3
-SET SESSION optimizer_switch='index_merge_sort_union=on';
-EXPLAIN
-SELECT * FROM t1
-WHERE t1.b>7 AND t1.d>1 AND t1.d<>8 OR t1.d>=7 AND t1.d<8 OR t1.d>7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY,idx1,idx2 NULL NULL NULL 9 Using where
-SELECT * FROM t1
-WHERE t1.b>7 AND t1.d>1 AND t1.d<>8 OR t1.d>=7 AND t1.d<8 OR t1.d>7;
-a b c d
-0 58 7 7
-0 64 186 8
-0 73 0 3
-0 74 5 25
-0 75 5 3
-SET SESSION optimizer_switch=DEFAULT;
-DROP TABLE t1;
-CREATE TABLE t1 (a int NOT NULL PRIMARY KEY, b int, c int, INDEX idx(c,b));
-INSERT INTO t1 VALUES (19,1,NULL), (20,5,7);
-EXPLAIN
-SELECT * FROM t1
-WHERE t1.a>300 AND t1.c!=0 AND t1.b>=350 AND t1.b<=400 AND
-(t1.c=0 OR t1.a=500);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,idx PRIMARY 4 NULL 1 Using index condition; Using where
-SELECT * FROM t1
-WHERE t1.a>300 AND t1.c!=0 AND t1.b>=350 AND t1.b<=400 AND
-(t1.c=0 OR t1.a=500);
-a b c
-DROP TABLE t1;
-CREATE TABLE t1 (a int PRIMARY KEY, b int, INDEX idx(b));
-INSERT INTO t1 VALUES (167,9999), (168,10000);
-EXPLAIN
-SELECT * FROM t1
-WHERE a BETWEEN 4 AND 5 AND b IN (255,4) OR a IN (2,14,25) OR a!=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY,idx NULL NULL NULL 2 Using where
-SELECT * FROM t1
-WHERE a BETWEEN 4 AND 5 AND b IN (255,4) OR a IN (2,14,25) OR a!=2;
-a b
-167 9999
-168 10000
-DROP TABLE t1;
-#
-# MDEV-8603: Wrong result OR/AND condition over index fields
-#
-CREATE TABLE t1 (
-id INT NOT NULL,
-state VARCHAR(64),
-capital VARCHAR(64),
-UNIQUE KEY (id),
-KEY state (state,id),
-KEY capital (capital, id)
-);
-INSERT INTO t1 VALUES
-(1,'Arizona','Phoenix'),
-(2,'Hawaii','Honolulu'),
-(3,'Georgia','Atlanta'),
-(4,'Florida','Tallahassee'),
-(5,'Alaska','Juneau'),
-(6,'Michigan','Lansing'),
-(7,'Pennsylvania','Harrisburg'),
-(8,'Virginia','Richmond')
-;
-EXPLAIN
-SELECT * FROM t1 FORCE KEY (state,capital)
-WHERE ( state = 'Alabama' OR state >= 'Colorado' ) AND id != 9
-OR ( capital >= 'Topeka' OR state = 'Kansas' ) AND state != 'Texas';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range state,capital state 71 NULL 12 Using index condition; Using where
-SELECT * FROM t1 FORCE KEY (state,capital)
-WHERE ( state = 'Alabama' OR state >= 'Colorado' ) AND id != 9
-OR ( capital >= 'Topeka' OR state = 'Kansas' ) AND state != 'Texas';
-id state capital
-4 Florida Tallahassee
-3 Georgia Atlanta
-2 Hawaii Honolulu
-6 Michigan Lansing
-7 Pennsylvania Harrisburg
-8 Virginia Richmond
-DROP TABLE t1;
-#
-# mdev-11574: do not build index merge of two indexes when
-# one index is an infix of the other index
-#
-set names utf8;
-CREATE DATABASE world;
-use world;
-CREATE TABLE Country (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name)
-);
-CREATE TABLE City (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-);
-CREATE TABLE CountryLanguage (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-);
-DROP INDEX Country ON City;
-CREATE INDEX CountryName ON City(Country,Name);
-CREATE INDEX Name ON City(Name);
-select * from City
-where
-Country='FIN' AND Name IN ('Lahti','Imatra') OR
-Country='RUS' AND Name IN ('St Petersburg', 'Moscow') OR
-Country='SWE' AND Name IN ('Stockholm', 'Uppsala') OR
-Country='DEU' AND Name IN ('Berlin', 'Bonn') OR
-Country='BEL' AND Name IN ('Antwerpen', 'Gent') OR
-Country='PRT' AND Name IN ('Braga', 'Porto') OR
-Country='FRA' AND Name IN ('Paris', 'Marcel') OR
-Country='POL' AND Name IN ('Warszawa', 'Wroclaw') OR
-Country='NOR' AND Name IN ('Oslo', 'Bergen') OR
-Country='ITA' AND Name IN ('Napoli', 'Venezia');
-ID Name Country Population
-175 Antwerpen BEL 446525
-176 Gent BEL 224180
-3068 Berlin DEU 3386667
-3087 Bonn DEU 301048
-3242 Lahti FIN 96921
-2974 Paris FRA 2125246
-1466 Napoli ITA 1002619
-1474 Venezia ITA 277305
-2808 Bergen NOR 230948
-2807 Oslo NOR 508726
-2928 Warszawa POL 1615369
-2931 Wroclaw POL 636765
-2918 Braga PRT 90535
-2915 Porto PRT 273060
-3580 Moscow RUS 8389200
-3581 St Petersburg RUS 4694000
-3048 Stockholm SWE 750348
-3051 Uppsala SWE 189569
-explain select * from City
-where
-Country='FIN' AND Name IN ('Lahti','Imatra') OR
-Country='RUS' AND Name IN ('St Petersburg', 'Moscow') OR
-Country='SWE' AND Name IN ('Stockholm', 'Uppsala') OR
-Country='DEU' AND Name IN ('Berlin', 'Bonn') OR
-Country='BEL' AND Name IN ('Antwerpen', 'Gent') OR
-Country='PRT' AND Name IN ('Braga', 'Porto') OR
-Country='FRA' AND Name IN ('Paris', 'Marcel') OR
-Country='POL' AND Name IN ('Warszawa', 'Wroclaw') OR
-Country='NOR' AND Name IN ('Oslo', 'Bergen') OR
-Country='ITA' AND Name IN ('Napoli', 'Venezia');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range CountryName,Name CountryName 38 NULL 22 Using index condition; Using where
-DROP DATABASE world;
-set session optimizer_switch='index_merge_sort_intersection=default';
diff --git a/mysql-test/r/range_vs_index_merge_innodb.result b/mysql-test/r/range_vs_index_merge_innodb.result
deleted file mode 100644
index ce90f522d6e..00000000000
--- a/mysql-test/r/range_vs_index_merge_innodb.result
+++ /dev/null
@@ -1,1893 +0,0 @@
-SET SESSION STORAGE_ENGINE='InnoDB';
-DROP TABLE IF EXISTS t1,t2,t3,t4;
-DROP DATABASE IF EXISTS world;
-set names utf8;
-CREATE DATABASE world;
-use world;
-CREATE TABLE Country (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name)
-);
-CREATE TABLE City (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-);
-CREATE TABLE CountryLanguage (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-);
-SELECT COUNT(*) FROM Country;
-COUNT(*)
-239
-SELECT COUNT(*) FROM City;
-COUNT(*)
-4079
-SELECT COUNT(*) FROM CountryLanguage;
-COUNT(*)
-984
-CREATE INDEX Name ON City(Name);
-set session optimizer_switch='index_merge_sort_intersection=off';
-EXPLAIN
-SELECT * FROM City
-WHERE (Population >= 100000 OR Name LIKE 'P%' OR Population < 100000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ALL Population,Name NULL NULL NULL 4079 Using where
-EXPLAIN
-SELECT * FROM City
-WHERE (Population >= 100000 OR Name LIKE 'P%') AND Country='CAN' OR
-(Population < 100000 OR Name Like 'T%') AND Country='ARG';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Country,Name Country 3 NULL 106 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Population < 200000 AND Name LIKE 'P%' AND
-(Population > 300000 OR Name LIKE 'T%') AND
-(Population < 100000 OR Name LIKE 'Pa%');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Name Name 35 NULL 236 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE Population > 100000 AND Name LIKE 'Aba%' OR
-Country IN ('CAN', 'ARG') AND ID BETWEEN 120 AND 130 OR
-Country <= 'ALB' AND Name LIKE 'L%' OR
-ID BETWEEN 3807 AND 3810;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name Name,Country,PRIMARY 35,3,4 NULL 32 Using sort_union(Name,Country,PRIMARY); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE (Population > 101000 AND Population < 115000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 459 Using index condition
-EXPLAIN
-SELECT * FROM City
-WHERE (Population > 101000 AND Population < 102000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 39 Using index condition
-EXPLAIN
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Country,Name Name,Country 35,3 NULL 215 Using sort_union(Name,Country); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
-AND (Population > 101000 AND Population < 115000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Name,Country 35,3 NULL 215 Using sort_union(Name,Country); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
-AND (Population > 101000 AND Population < 102000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Country,Name Population 4 NULL 39 Using index condition; Using where
-SELECT * FROM City USE INDEX ()
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
-AND (Population > 101000 AND Population < 115000);
-ID Name Country Population
-403 Catanduva BRA 107761
-412 Cachoeirinha BRA 103240
-636 Bilbays EGY 113608
-637 Mit Ghamr EGY 101801
-701 Tarragona ESP 113016
-702 Lleida (Lérida) ESP 112207
-703 Jaén ESP 109247
-704 Ourense (Orense) ESP 109120
-705 Mataró ESP 104095
-706 Algeciras ESP 103106
-707 Marbella ESP 101144
-759 Gonder ETH 112249
-869 Cabuyao PHL 106630
-870 Calapan PHL 105910
-873 Cauayan PHL 103952
-1844 Cape Breton CAN 114733
-1847 Cambridge CAN 109186
-2908 Cajamarca PER 108009
-3003 Caen FRA 113987
-3411 Ceyhan TUR 102412
-3571 Calabozo VEN 107146
-3786 Cam Ranh VNM 114041
-3792 Tartu EST 101246
-4002 Carrollton USA 109576
-4027 Cape Coral USA 102286
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
-AND (Population > 101000 AND Population < 115000);
-ID Name Country Population
-403 Catanduva BRA 107761
-412 Cachoeirinha BRA 103240
-636 Bilbays EGY 113608
-637 Mit Ghamr EGY 101801
-701 Tarragona ESP 113016
-702 Lleida (Lérida) ESP 112207
-703 Jaén ESP 109247
-704 Ourense (Orense) ESP 109120
-705 Mataró ESP 104095
-706 Algeciras ESP 103106
-707 Marbella ESP 101144
-759 Gonder ETH 112249
-869 Cabuyao PHL 106630
-870 Calapan PHL 105910
-873 Cauayan PHL 103952
-1844 Cape Breton CAN 114733
-1847 Cambridge CAN 109186
-2908 Cajamarca PER 108009
-3003 Caen FRA 113987
-3411 Ceyhan TUR 102412
-3571 Calabozo VEN 107146
-3786 Cam Ranh VNM 114041
-3792 Tartu EST 101246
-4002 Carrollton USA 109576
-4027 Cape Coral USA 102286
-4032 Cambridge USA 101355
-SELECT * FROM City USE INDEX ()
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
-AND (Population > 101000 AND Population < 102000);
-ID Name Country Population
-637 Mit Ghamr EGY 101801
-707 Marbella ESP 101144
-3792 Tartu EST 101246
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
-AND (Population > 101000 AND Population < 102000);
-ID Name Country Population
-707 Marbella ESP 101144
-3792 Tartu EST 101246
-4032 Cambridge USA 101355
-637 Mit Ghamr EGY 101801
-EXPLAIN
-SELECT * FROM City WHERE (Name < 'Ac');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 23 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Name < 'Bb');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 374 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Country > 'A' AND Country < 'B');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country Country 3 NULL 107 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Name BETWEEN 'P' AND 'Pb');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 71 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Name BETWEEN 'P' AND 'S');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 385 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Population > 101000 AND Population < 110000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 328 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Population > 103000 AND Population < 104000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 37 Using index condition
-EXPLAIN
-SELECT * FROM City
-WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population,Country,Name Name 35 NULL 94 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'S' AND (Population > 103000 AND Population < 104000));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Name,Population 35,4 NULL 60 Using sort_union(Name,Population); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE (Name < 'Bb' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Country,Name 3,35 NULL 178 Using sort_union(Country,Name); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE (Name < 'Bb' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'S' AND (Population > 103000 AND Population < 104000));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name Country,Population 3,4 NULL 144 Using sort_union(Country,Population); Using where
-SELECT * FROM City USE INDEX ()
-WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
-ID Name Country Population
-65 Abu Dhabi ARE 398695
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-750 Paarl ZAF 105768
-2865 Pak Pattan PAK 107800
-SELECT * FROM City
-WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
-ID Name Country Population
-65 Abu Dhabi ARE 398695
-750 Paarl ZAF 105768
-168 Pabna BGD 103277
-2865 Pak Pattan PAK 107800
-189 Parakou BEN 103577
-SELECT * FROM City USE INDEX ()
-WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'S' AND (Population > 103000 AND Population < 104000));
-ID Name Country Population
-65 Abu Dhabi ARE 398695
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-1003 Pemalang IDN 103500
-2663 Río Bravo MEX 103901
-SELECT * FROM City
-WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'S' AND (Population > 103000 AND Population < 104000));
-ID Name Country Population
-65 Abu Dhabi ARE 398695
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-1003 Pemalang IDN 103500
-2663 Río Bravo MEX 103901
-SELECT * FROM City USE INDEX ()
-WHERE (Name < 'Bb' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
-ID Name Country Population
-55 Andorra la Vella AND 21189
-65 Abu Dhabi ARE 398695
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-75 Almirante Brown ARG 538918
-85 Avellaneda ARG 353046
-96 Bahía Blanca ARG 239810
-134 Adelaide AUS 978100
-144 Baku AZE 1787800
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-750 Paarl ZAF 105768
-2865 Pak Pattan PAK 107800
-SELECT * FROM City
-WHERE (Name < 'Bb' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
-ID Name Country Population
-55 Andorra la Vella AND 21189
-65 Abu Dhabi ARE 398695
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-75 Almirante Brown ARG 538918
-85 Avellaneda ARG 353046
-96 Bahía Blanca ARG 239810
-134 Adelaide AUS 978100
-144 Baku AZE 1787800
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-750 Paarl ZAF 105768
-2865 Pak Pattan PAK 107800
-SELECT * FROM City USE INDEX ()
-WHERE (Name < 'Bb' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'S' AND (Population > 103000 AND Population < 104000));
-ID Name Country Population
-55 Andorra la Vella AND 21189
-65 Abu Dhabi ARE 398695
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-75 Almirante Brown ARG 538918
-85 Avellaneda ARG 353046
-96 Bahía Blanca ARG 239810
-134 Adelaide AUS 978100
-144 Baku AZE 1787800
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-1003 Pemalang IDN 103500
-2663 Río Bravo MEX 103901
-SELECT * FROM City
-WHERE (Name < 'Bb' AND (Country > 'A' AND Country < 'B')) OR
-(Name BETWEEN 'P' AND 'S' AND (Population > 103000 AND Population < 104000));
-ID Name Country Population
-55 Andorra la Vella AND 21189
-65 Abu Dhabi ARE 398695
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-75 Almirante Brown ARG 538918
-85 Avellaneda ARG 353046
-96 Bahía Blanca ARG 239810
-134 Adelaide AUS 978100
-144 Baku AZE 1787800
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-1003 Pemalang IDN 103500
-2663 Río Bravo MEX 103901
-EXPLAIN
-SELECT * FROM City WHERE (ID < 10) OR (ID BETWEEN 100 AND 110);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 20 Using where
-EXPLAIN
-SELECT * FROM City WHERE (ID < 200) OR (ID BETWEEN 100 AND 200);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 200 Using where
-EXPLAIN
-SELECT * FROM City WHERE (ID < 600) OR (ID BETWEEN 900 AND 1500);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 1200 Using where
-EXPLAIN
-SELECT * FROM City WHERE Country > 'A' AND Country < 'ARG';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country Country 3 NULL 20 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Name LIKE 'H%' OR Name LIKE 'P%' ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 395 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City WHERE Name LIKE 'Ha%' OR Name LIKE 'Pa%' ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 133 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 100 AND 110) AND
-(Name LIKE 'P%' OR (Population > 103000 AND Population < 104000)));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY,Population,Country,Name PRIMARY 4 NULL 20 Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((ID < 800) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 900 AND 1500) AND
-(Name LIKE 'Pa%' OR (Population > 103000 AND Population < 104000)));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name Name,Country,PRIMARY 39,3,4 NULL 683 Using sort_union(Name,Country,PRIMARY); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((ID < 200) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 100 AND 200) AND
-(Name LIKE 'Pa%' OR (Population > 103000 AND Population < 104000)));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name Name,Population,PRIMARY 39,4,4 NULL 307 Using sort_union(Name,Population,PRIMARY); Using where
-SELECT * FROM City USE INDEX ()
-WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 100 AND 110) AND
-(Name LIKE 'P%' OR (Population > 103000 AND Population < 104000)));
-ID Name Country Population
-1 Kabul AFG 1780000
-2 Qandahar AFG 237500
-3 Herat AFG 186800
-4 Mazar-e-Sharif AFG 127800
-7 Haag NLD 440900
-100 Paraná ARG 207041
-102 Posadas ARG 201273
-SELECT * FROM City
-WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 100 AND 110) AND
-(Name LIKE 'P%' OR (Population > 103000 AND Population < 104000)));
-ID Name Country Population
-1 Kabul AFG 1780000
-2 Qandahar AFG 237500
-3 Herat AFG 186800
-4 Mazar-e-Sharif AFG 127800
-7 Haag NLD 440900
-100 Paraná ARG 207041
-102 Posadas ARG 201273
-SELECT * FROM City USE INDEX()
-WHERE ((ID < 800) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 900 AND 1500) AND
-(Name LIKE 'Pa%' OR (Population > 103000 AND Population < 104000)));
-ID Name Country Population
-1 Kabul AFG 1780000
-2 Qandahar AFG 237500
-3 Herat AFG 186800
-4 Mazar-e-Sharif AFG 127800
-7 Haag NLD 440900
-16 Haarlem NLD 148772
-25 Haarlemmermeer NLD 110722
-33 Willemstad ANT 2345
-34 Tirana ALB 270000
-55 Andorra la Vella AND 21189
-56 Luanda AGO 2022000
-57 Huambo AGO 163100
-58 Lobito AGO 130000
-59 Benguela AGO 128300
-60 Namibe AGO 118200
-61 South Hill AIA 961
-62 The Valley AIA 595
-64 Dubai ARE 669181
-65 Abu Dhabi ARE 398695
-66 Sharja ARE 320095
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-129 Oranjestad ABW 29034
-191 Hamilton BMU 1200
-528 Hartlepool GBR 92000
-529 Halifax GBR 91069
-914 Sekondi-Takoradi GHA 103653
-943 Palembang IDN 1222764
-950 Padang IDN 534474
-983 Palu IDN 142800
-984 Pasuruan IDN 134019
-991 Pangkal Pinang IDN 124000
-1003 Pemalang IDN 103500
-1004 Klaten IDN 103300
-1007 Palangka Raya IDN 99693
-1020 Padang Sidempuan IDN 91200
-1045 Patna IND 917243
-1114 Panihati IND 275990
-1129 Patiala IND 238368
-1142 Panipat IND 215218
-1159 Parbhani IND 190255
-1231 Pali IND 136842
-1263 Pathankot IND 123930
-1265 Palghat (Palakkad) IND 123289
-1293 Pallavaram IND 111866
-1319 Tellicherry (Thalassery) IND 103579
-1339 Palayankottai IND 97662
-1345 Patan IND 96109
-1436 Marv Dasht IRN 103579
-1468 Palermo ITA 683794
-1478 Padova ITA 211391
-1484 Parma ITA 168717
-SELECT * FROM City
-WHERE ((ID < 800) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 900 AND 1500) AND
-(Name LIKE 'Pa%' OR (Population > 103000 AND Population < 104000)));
-ID Name Country Population
-1 Kabul AFG 1780000
-2 Qandahar AFG 237500
-3 Herat AFG 186800
-4 Mazar-e-Sharif AFG 127800
-7 Haag NLD 440900
-16 Haarlem NLD 148772
-25 Haarlemmermeer NLD 110722
-33 Willemstad ANT 2345
-34 Tirana ALB 270000
-55 Andorra la Vella AND 21189
-56 Luanda AGO 2022000
-57 Huambo AGO 163100
-58 Lobito AGO 130000
-59 Benguela AGO 128300
-60 Namibe AGO 118200
-61 South Hill AIA 961
-62 The Valley AIA 595
-64 Dubai ARE 669181
-65 Abu Dhabi ARE 398695
-66 Sharja ARE 320095
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-129 Oranjestad ABW 29034
-191 Hamilton BMU 1200
-528 Hartlepool GBR 92000
-529 Halifax GBR 91069
-914 Sekondi-Takoradi GHA 103653
-943 Palembang IDN 1222764
-950 Padang IDN 534474
-983 Palu IDN 142800
-984 Pasuruan IDN 134019
-991 Pangkal Pinang IDN 124000
-1003 Pemalang IDN 103500
-1004 Klaten IDN 103300
-1007 Palangka Raya IDN 99693
-1020 Padang Sidempuan IDN 91200
-1045 Patna IND 917243
-1114 Panihati IND 275990
-1129 Patiala IND 238368
-1142 Panipat IND 215218
-1159 Parbhani IND 190255
-1231 Pali IND 136842
-1263 Pathankot IND 123930
-1265 Palghat (Palakkad) IND 123289
-1293 Pallavaram IND 111866
-1319 Tellicherry (Thalassery) IND 103579
-1339 Palayankottai IND 97662
-1345 Patan IND 96109
-1436 Marv Dasht IRN 103579
-1468 Palermo ITA 683794
-1478 Padova ITA 211391
-1484 Parma ITA 168717
-SELECT * FROM City USE INDEX ()
-WHERE ((ID < 200) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 100 AND 200) AND
-(Name LIKE 'Pa%' OR (Population > 103000 AND Population < 104000)));
-ID Name Country Population
-1 Kabul AFG 1780000
-2 Qandahar AFG 237500
-3 Herat AFG 186800
-4 Mazar-e-Sharif AFG 127800
-7 Haag NLD 440900
-16 Haarlem NLD 148772
-25 Haarlemmermeer NLD 110722
-33 Willemstad ANT 2345
-34 Tirana ALB 270000
-55 Andorra la Vella AND 21189
-56 Luanda AGO 2022000
-57 Huambo AGO 163100
-58 Lobito AGO 130000
-59 Benguela AGO 128300
-60 Namibe AGO 118200
-61 South Hill AIA 961
-62 The Valley AIA 595
-64 Dubai ARE 669181
-65 Abu Dhabi ARE 398695
-66 Sharja ARE 320095
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-100 Paraná ARG 207041
-129 Oranjestad ABW 29034
-167 Jamalpur BGD 103556
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-191 Hamilton BMU 1200
-SELECT * FROM City
-WHERE ((ID < 200) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
-OR ((ID BETWEEN 100 AND 200) AND
-(Name LIKE 'Pa%' OR (Population > 103000 AND Population < 104000)));
-ID Name Country Population
-1 Kabul AFG 1780000
-2 Qandahar AFG 237500
-3 Herat AFG 186800
-4 Mazar-e-Sharif AFG 127800
-7 Haag NLD 440900
-16 Haarlem NLD 148772
-25 Haarlemmermeer NLD 110722
-33 Willemstad ANT 2345
-34 Tirana ALB 270000
-55 Andorra la Vella AND 21189
-56 Luanda AGO 2022000
-57 Huambo AGO 163100
-58 Lobito AGO 130000
-59 Benguela AGO 128300
-60 Namibe AGO 118200
-61 South Hill AIA 961
-62 The Valley AIA 595
-64 Dubai ARE 669181
-65 Abu Dhabi ARE 398695
-66 Sharja ARE 320095
-67 al-Ayn ARE 225970
-68 Ajman ARE 114395
-100 Paraná ARG 207041
-129 Oranjestad ABW 29034
-167 Jamalpur BGD 103556
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-191 Hamilton BMU 1200
-EXPLAIN
-SELECT * FROM City WHERE Population > 101000 AND Population < 102000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 39 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Population > 101000 AND Population < 110000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 328 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Country < 'C';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country Country 3 NULL 446 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Country < 'AGO';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country Country 3 NULL 5 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Name BETWEEN 'P' AND 'S';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 385 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Name BETWEEN 'P' AND 'Pb';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 71 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 3400 AND 3800;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 401 Using where
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 3790 AND 3800;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using where
-EXPLAIN
-SELECT * FROM City WHERE Name LIKE 'P%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 236 Using index condition
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 102000) AND
-(Country < 'C' OR Name BETWEEN 'P' AND 'S')) OR
-((ID BETWEEN 3400 AND 3800) AND
-(Country < 'AGO' OR Name LIKE 'Pa%'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name Population,PRIMARY 4,4 NULL 440 Using sort_union(Population,PRIMARY); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 110000) AND
-(Country < 'AGO' OR Name BETWEEN 'P' AND 'Pb')) OR
-((ID BETWEEN 3790 AND 3800) AND
-(Country < 'C' OR Name LIKE 'P%'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name Country,Name,PRIMARY 3,35,4 NULL 87 Using sort_union(Country,Name,PRIMARY); Using where
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 102000) AND
-(Country < 'C' OR Name BETWEEN 'P' AND 'S')) OR
-((ID BETWEEN 3400 AND 3800) AND
-(Country < 'AGO' OR Name LIKE 'Pa%'));
-ID Name Country Population
-169 Naogaon BGD 101266
-205 Francistown BWA 101805
-417 Itaituba BRA 101320
-418 Araras BRA 101046
-751 Potchefstroom ZAF 101817
-2909 Puno PER 101578
-3463 Pavlograd UKR 127000
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 102000) AND
-(Country < 'C' OR Name BETWEEN 'P' AND 'S')) OR
-((ID BETWEEN 3400 AND 3800) AND
-(Country < 'AGO' OR Name LIKE 'Pa%'));
-ID Name Country Population
-169 Naogaon BGD 101266
-205 Francistown BWA 101805
-417 Itaituba BRA 101320
-418 Araras BRA 101046
-751 Potchefstroom ZAF 101817
-2909 Puno PER 101578
-3463 Pavlograd UKR 127000
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 110000) AND
-(Country < 'AGO' OR Name BETWEEN 'P' AND 'Pb')) OR
-((ID BETWEEN 3790 AND 3800) AND
-(Country < 'C' OR Name LIKE 'P%'));
-ID Name Country Population
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-750 Paarl ZAF 105768
-2865 Pak Pattan PAK 107800
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 110000) AND
-(Country < 'AGO' OR Name BETWEEN 'P' AND 'Pb')) OR
-((ID BETWEEN 3790 AND 3800) AND
-(Country < 'C' OR Name LIKE 'P%'));
-ID Name Country Population
-168 Pabna BGD 103277
-189 Parakou BEN 103577
-750 Paarl ZAF 105768
-2865 Pak Pattan PAK 107800
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-CREATE INDEX CountryPopulation ON City(Country,Population);
-EXPLAIN
-SELECT * FROM City WHERE Name LIKE 'Pas%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 8 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Name LIKE 'P%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 236 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Population > 101000 AND Population < 103000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 81 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Country='USA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ref Country,CountryPopulation Country 3 const 274 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Country='FIN';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ref Country,CountryPopulation Country 3 const 7 Using index condition
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'Pas%')
-AND Country='USA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Population,Country,Name,CountryPopulation CountryPopulation,Name 7,35 NULL 18 Using sort_union(CountryPopulation,Name); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'P%')
-AND Country='FIN';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ref Population,Country,Name,CountryPopulation Country 3 const 7 Using index condition; Using where
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'Pas%')
-AND Country='USA';
-ID Name Country Population
-3943 Pasadena USA 141674
-3953 Pasadena USA 133936
-4023 Gary USA 102746
-4024 Berkeley USA 102743
-4025 Santa Clara USA 102361
-4026 Green Bay USA 102313
-4027 Cape Coral USA 102286
-4028 Arvada USA 102153
-4029 Pueblo USA 102121
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'Pas%')
-AND Country='USA';
-ID Name Country Population
-3943 Pasadena USA 141674
-3953 Pasadena USA 133936
-4023 Gary USA 102746
-4024 Berkeley USA 102743
-4025 Santa Clara USA 102361
-4026 Green Bay USA 102313
-4027 Cape Coral USA 102286
-4028 Arvada USA 102153
-4029 Pueblo USA 102121
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'P%')
-AND Country='FIN';
-ID Name Country Population
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'P%')
-AND Country='FIN';
-ID Name Country Population
-CREATE INDEX CountryName ON City(Country,Name);
-EXPLAIN
-SELECT * FROM City WHERE Country='USA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ref Country,CountryPopulation,CountryName Country 3 const 274 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Country='FIN';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ref Country,CountryPopulation,CountryName Country 3 const 7 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Country='BRA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ref Country,CountryPopulation,CountryName Country 3 const 250 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 3790 AND 3800;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using where
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 4025 AND 4035;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using where
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 4028 AND 4032;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 5 Using where
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 3500 AND 3800;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 301 Using where
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 4000 AND 4300;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 80 Using where
-EXPLAIN
-SELECT * FROM City WHERE ID BETWEEN 250 and 260 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using where
-EXPLAIN
-SELECT * FROM City WHERE (Population > 101000 AND Population < 102000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 39 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE (Population > 101000 AND Population < 103000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Population Population 4 NULL 81 Using index condition
-EXPLAIN
-SELECT * FROM City WHERE Name LIKE 'Pa%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Name Name 35 NULL 71 Using index condition
-set @tmp_range_vs_index_merge=@@optimizer_switch;
-set optimizer_switch='extended_keys=off';
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4025 AND 4035);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name,CountryPopulation,CountryName CountryPopulation,PRIMARY 7,4 NULL 14 Using sort_union(CountryPopulation,PRIMARY); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 103000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4028 AND 4032);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name,CountryPopulation,CountryName CountryName,PRIMARY 38,4 NULL 10 Using sort_union(CountryName,PRIMARY); Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 110000) OR
-ID BETWEEN 3500 AND 3800) AND Country='FIN'
- AND (Name BETWEEN 'P' AND 'T' OR ID BETWEEN 4000 AND 4300);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City ref PRIMARY,Population,Country,Name,CountryPopulation,CountryName Country 3 const 7 Using index condition; Using where
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4025 AND 4035);
-ID Name Country Population
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4025 AND 4035);
-ID Name Country Population
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4028 AND 4032);
-ID Name Country Population
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4028 AND 4032);
-ID Name Country Population
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='FIN'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4025 AND 4035);
-ID Name Country Population
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='FIN'
- AND (Name LIKE 'Pa%' OR ID BETWEEN 4025 AND 4035);
-ID Name Country Population
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 and Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- OR (Name LIKE 'Pa%' OR ID BETWEEN 250 AND 260) AND Country='BRA';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge PRIMARY,Population,Country,Name,CountryPopulation,CountryName CountryPopulation,CountryName,PRIMARY 7,38,4 NULL 36 Using sort_union(CountryPopulation,CountryName,PRIMARY); Using where
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 and Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- OR (Name LIKE 'Pa%' OR ID BETWEEN 250 AND 260) AND Country='BRA';
-ID Name Country Population
-250 Mauá BRA 375055
-251 Carapicuíba BRA 357552
-252 Olinda BRA 354732
-253 Campina Grande BRA 352497
-254 São José do Rio Preto BRA 351944
-255 Caxias do Sul BRA 349581
-256 Moji das Cruzes BRA 339194
-257 Diadema BRA 335078
-258 Aparecida de Goiânia BRA 324662
-259 Piracicaba BRA 319104
-260 Cariacica BRA 319033
-285 Paulista BRA 248473
-339 Passo Fundo BRA 166343
-364 Parnaíba BRA 129756
-372 Paranaguá BRA 126076
-379 Palmas BRA 121919
-386 Patos de Minas BRA 119262
-424 Passos BRA 98570
-430 Paulo Afonso BRA 97291
-435 Parnamirim BRA 96210
-448 Patos BRA 90519
-451 Palhoça BRA 89465
-3793 New York USA 8008278
-3794 Los Angeles USA 3694820
-3795 Chicago USA 2896016
-3796 Houston USA 1953631
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-3799 San Diego USA 1223400
-3800 Dallas USA 1188580
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE ((Population > 101000 and Population < 102000) OR
-ID BETWEEN 3790 AND 3800) AND Country='USA'
- OR (Name LIKE 'Pa%' OR ID BETWEEN 250 AND 260) AND Country='BRA';
-ID Name Country Population
-285 Paulista BRA 248473
-339 Passo Fundo BRA 166343
-364 Parnaíba BRA 129756
-372 Paranaguá BRA 126076
-379 Palmas BRA 121919
-386 Patos de Minas BRA 119262
-424 Passos BRA 98570
-430 Paulo Afonso BRA 97291
-435 Parnamirim BRA 96210
-448 Patos BRA 90519
-451 Palhoça BRA 89465
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-250 Mauá BRA 375055
-251 Carapicuíba BRA 357552
-252 Olinda BRA 354732
-253 Campina Grande BRA 352497
-254 São José do Rio Preto BRA 351944
-255 Caxias do Sul BRA 349581
-256 Moji das Cruzes BRA 339194
-257 Diadema BRA 335078
-258 Aparecida de Goiânia BRA 324662
-259 Piracicaba BRA 319104
-260 Cariacica BRA 319033
-3793 New York USA 8008278
-3794 Los Angeles USA 3694820
-3795 Chicago USA 2896016
-3796 Houston USA 1953631
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-3799 San Diego USA 1223400
-3800 Dallas USA 1188580
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 11000) OR
-ID BETWEEN 3500 AND 3800) AND Country='USA'
- AND (Name LIKE 'P%' OR ID BETWEEN 4000 AND 4300);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY,Population,Country,Name,CountryPopulation,CountryName CountryName 38 NULL 18 Using index condition; Using where
-EXPLAIN
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 11000) OR
-ID BETWEEN 3500 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pho%' OR ID BETWEEN 4000 AND 4300);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range PRIMARY,Population,Country,Name,CountryPopulation,CountryName Name 35 NULL 1 Using index condition; Using where
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 11000) OR
-ID BETWEEN 3500 AND 3800) AND Country='USA'
- AND (Name LIKE 'P%' OR ID BETWEEN 4000 AND 4300);
-ID Name Country Population
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 11000) OR
-ID BETWEEN 3500 AND 3800) AND Country='USA'
- AND (Name LIKE 'P%' OR ID BETWEEN 4000 AND 4300);
-ID Name Country Population
-3797 Philadelphia USA 1517550
-3798 Phoenix USA 1321045
-SELECT * FROM City USE INDEX ()
-WHERE ((Population > 101000 AND Population < 11000) OR
-ID BETWEEN 3500 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pho%' OR ID BETWEEN 4000 AND 4300);
-ID Name Country Population
-3798 Phoenix USA 1321045
-SELECT * FROM City
-WHERE ((Population > 101000 AND Population < 11000) OR
-ID BETWEEN 3500 AND 3800) AND Country='USA'
- AND (Name LIKE 'Pho%' OR ID BETWEEN 4000 AND 4300);
-ID Name Country Population
-3798 Phoenix USA 1321045
-DROP INDEX Population ON City;
-DROP INDEX Name ON City;
-set optimizer_switch=@tmp_range_vs_index_merge;
-EXPLAIN
-SELECT * FROM City
-WHERE Country='USA' AND Population BETWEEN 101000 AND 102000 OR
-Country='USA' AND Name LIKE 'Pa%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Country,CountryPopulation,CountryName CountryPopulation,CountryName 7,38 NULL 8 Using sort_union(CountryPopulation,CountryName); Using where
-SELECT * FROM City USE INDEX()
-WHERE Country='USA' AND Population BETWEEN 101000 AND 102000 OR
-Country='USA' AND Name LIKE 'Pa%';
-ID Name Country Population
-3932 Paterson USA 149222
-3943 Pasadena USA 141674
-3953 Pasadena USA 133936
-3967 Paradise USA 124682
-3986 Palmdale USA 116670
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE Country='USA' AND Population BETWEEN 101000 AND 102000 OR
-Country='USA' AND Name LIKE 'Pa%';
-ID Name Country Population
-3932 Paterson USA 149222
-3943 Pasadena USA 141674
-3953 Pasadena USA 133936
-3967 Paradise USA 124682
-3986 Palmdale USA 116670
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-EXPLAIN
-SELECT * FROM City
-WHERE Country='USA' AND
-(Population BETWEEN 101000 AND 102000 OR Name LIKE 'Pa%');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Country,CountryPopulation,CountryName CountryPopulation,CountryName 7,38 NULL 8 Using sort_union(CountryPopulation,CountryName); Using where
-SELECT * FROM City
-WHERE Country='USA' AND
-(Population BETWEEN 101000 AND 102000 OR Name LIKE 'Pa%');
-ID Name Country Population
-3932 Paterson USA 149222
-3943 Pasadena USA 141674
-3953 Pasadena USA 133936
-3967 Paradise USA 124682
-3986 Palmdale USA 116670
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-SELECT * FROM City
-WHERE Country='USA' AND
-(Population BETWEEN 101000 AND 102000 OR Name LIKE 'Pa%');
-ID Name Country Population
-3932 Paterson USA 149222
-3943 Pasadena USA 141674
-3953 Pasadena USA 133936
-3967 Paradise USA 124682
-3986 Palmdale USA 116670
-4030 Sandy USA 101853
-4031 Athens-Clarke County USA 101489
-4032 Cambridge USA 101355
-set @save_optimizer_switch=@@optimizer_switch;
-CREATE INDEX CityName on City(Name);
-EXPLAIN SELECT Name, Country, Population FROM City WHERE
-(Name='Manila' AND Country='PHL') OR
-(Name='Addis Abeba' AND Country='ETH') OR
-(Name='Jakarta' AND Country='IDN') OR
-(Name='Bangalore' AND Country='IND') OR
-(Name='Teheran' AND Country='IRN') OR
-(Name='Roma' AND Country='ITA') OR
-(Name='Delhi' AND Country='IND') OR
-(Name='Venezia' AND Country='ITA') OR
-(Name='Tokyo' AND Country='JPN') OR
-(Name='Toronto' AND Country='CAN') OR
-(Name='Peking' AND Country='CHN') OR
-(Name='Lagos' AND Country='NGA') OR
-(Name='Tijuana' AND Country='MEX') OR
-(Name='Rabat' AND Country='MAR') OR
-(Name='Seoul' AND Country='KOR') OR
-(Name='Vancouver' AND Country='CAN') OR
-(Name='Kaunas' AND Country='LTU') OR
-(Name='Paris' AND Country='FRA') OR
-(Name='Dakar' AND Country='SEN') OR
-(Name='Basel' AND Country='CHE') OR
-(Name='Praha' AND Country='CZE') OR
-(Name='Ankara' AND Country='TUR') OR
-(Name='Dresden' AND Country='DEU') OR
-(Name='Lugansk' AND Country='UKR') OR
-(Name='Caracas' AND Country='VEN') OR
-(Name='Samara' AND Country='RUS') OR
-(Name='Seattle' AND Country='USA');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country,CountryPopulation,CountryName,CityName CountryName 38 NULL 27 Using index condition; Using where
-SELECT Name, Country, Population FROM City WHERE
-(Name='Manila' AND Country='PHL') OR
-(Name='Addis Abeba' AND Country='ETH') OR
-(Name='Jakarta' AND Country='IDN') OR
-(Name='Bangalore' AND Country='IND') OR
-(Name='Teheran' AND Country='IRN') OR
-(Name='Roma' AND Country='ITA') OR
-(Name='Delhi' AND Country='IND') OR
-(Name='Venezia' AND Country='ITA') OR
-(Name='Tokyo' AND Country='JPN') OR
-(Name='Toronto' AND Country='CAN') OR
-(Name='Peking' AND Country='CHN') OR
-(Name='Lagos' AND Country='NGA') OR
-(Name='Tijuana' AND Country='MEX') OR
-(Name='Rabat' AND Country='MAR') OR
-(Name='Seoul' AND Country='KOR') OR
-(Name='Vancouver' AND Country='CAN') OR
-(Name='Kaunas' AND Country='LTU') OR
-(Name='Paris' AND Country='FRA') OR
-(Name='Dakar' AND Country='SEN') OR
-(Name='Basel' AND Country='CHE') OR
-(Name='Praha' AND Country='CZE') OR
-(Name='Ankara' AND Country='TUR') OR
-(Name='Dresden' AND Country='DEU') OR
-(Name='Lugansk' AND Country='UKR') OR
-(Name='Caracas' AND Country='VEN') OR
-(Name='Samara' AND Country='RUS') OR
-(Name='Seattle' AND Country='USA');
-Name Country Population
-Toronto CAN 688275
-Vancouver CAN 514008
-Basel CHE 166700
-Peking CHN 7472000
-Praha CZE 1181126
-Dresden DEU 476668
-Addis Abeba ETH 2495000
-Paris FRA 2125246
-Jakarta IDN 9604900
-Bangalore IND 2660088
-Delhi IND 7206704
-Teheran IRN 6758845
-Roma ITA 2643581
-Venezia ITA 277305
-Tokyo JPN 7980230
-Seoul KOR 9981619
-Kaunas LTU 412639
-Rabat MAR 623457
-Tijuana MEX 1212232
-Lagos NGA 1518000
-Manila PHL 1581082
-Samara RUS 1156100
-Dakar SEN 785071
-Ankara TUR 3038159
-Lugansk UKR 469000
-Seattle USA 563374
-Caracas VEN 1975294
-set optimizer_switch='index_merge=off';
-EXPLAIN SELECT Name, Country, Population FROM City WHERE
-(Name='Manila' AND Country='PHL') OR
-(Name='Addis Abeba' AND Country='ETH') OR
-(Name='Jakarta' AND Country='IDN') OR
-(Name='Bangalore' AND Country='IND') OR
-(Name='Teheran' AND Country='IRN') OR
-(Name='Roma' AND Country='ITA') OR
-(Name='Delhi' AND Country='IND') OR
-(Name='Venezia' AND Country='ITA') OR
-(Name='Tokyo' AND Country='JPN') OR
-(Name='Toronto' AND Country='CAN') OR
-(Name='Peking' AND Country='CHN') OR
-(Name='Lagos' AND Country='NGA') OR
-(Name='Tijuana' AND Country='MEX') OR
-(Name='Rabat' AND Country='MAR') OR
-(Name='Seoul' AND Country='KOR') OR
-(Name='Vancouver' AND Country='CAN') OR
-(Name='Kaunas' AND Country='LTU') OR
-(Name='Paris' AND Country='FRA') OR
-(Name='Dakar' AND Country='SEN') OR
-(Name='Basel' AND Country='CHE') OR
-(Name='Praha' AND Country='CZE') OR
-(Name='Ankara' AND Country='TUR') OR
-(Name='Dresden' AND Country='DEU') OR
-(Name='Lugansk' AND Country='UKR') OR
-(Name='Caracas' AND Country='VEN') OR
-(Name='Samara' AND Country='RUS') OR
-(Name='Seattle' AND Country='USA');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country,CountryPopulation,CountryName,CityName CountryName 38 NULL 27 Using index condition; Using where
-SELECT Name, Country, Population FROM City WHERE
-(Name='Manila' AND Country='PHL') OR
-(Name='Addis Abeba' AND Country='ETH') OR
-(Name='Jakarta' AND Country='IDN') OR
-(Name='Bangalore' AND Country='IND') OR
-(Name='Teheran' AND Country='IRN') OR
-(Name='Roma' AND Country='ITA') OR
-(Name='Delhi' AND Country='IND') OR
-(Name='Venezia' AND Country='ITA') OR
-(Name='Tokyo' AND Country='JPN') OR
-(Name='Toronto' AND Country='CAN') OR
-(Name='Peking' AND Country='CHN') OR
-(Name='Lagos' AND Country='NGA') OR
-(Name='Tijuana' AND Country='MEX') OR
-(Name='Rabat' AND Country='MAR') OR
-(Name='Seoul' AND Country='KOR') OR
-(Name='Vancouver' AND Country='CAN') OR
-(Name='Kaunas' AND Country='LTU') OR
-(Name='Paris' AND Country='FRA') OR
-(Name='Dakar' AND Country='SEN') OR
-(Name='Basel' AND Country='CHE') OR
-(Name='Praha' AND Country='CZE') OR
-(Name='Ankara' AND Country='TUR') OR
-(Name='Dresden' AND Country='DEU') OR
-(Name='Lugansk' AND Country='UKR') OR
-(Name='Caracas' AND Country='VEN') OR
-(Name='Samara' AND Country='RUS') OR
-(Name='Seattle' AND Country='USA');
-Name Country Population
-Toronto CAN 688275
-Vancouver CAN 514008
-Basel CHE 166700
-Peking CHN 7472000
-Praha CZE 1181126
-Dresden DEU 476668
-Addis Abeba ETH 2495000
-Paris FRA 2125246
-Jakarta IDN 9604900
-Bangalore IND 2660088
-Delhi IND 7206704
-Teheran IRN 6758845
-Roma ITA 2643581
-Venezia ITA 277305
-Tokyo JPN 7980230
-Seoul KOR 9981619
-Kaunas LTU 412639
-Rabat MAR 623457
-Tijuana MEX 1212232
-Lagos NGA 1518000
-Manila PHL 1581082
-Samara RUS 1156100
-Dakar SEN 785071
-Ankara TUR 3038159
-Lugansk UKR 469000
-Seattle USA 563374
-Caracas VEN 1975294
-set optimizer_switch=@save_optimizer_switch;
-#
-# Bug mdev-585: range vs index-merge with ORDER BY ... LIMIT n
-# (LP bug #637962)
-#
-DROP INDEX CountryPopulation ON City;
-DROP INDEX CountryName ON City;
-DROP INDEX CityName on City;
-CREATE INDEX Name ON City(Name);
-CREATE INDEX Population ON City(Population);
-EXPLAIN
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'H'))
-AND (Population >= 100000 AND Population < 120000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City index_merge Country,Name,Population Name,Country 35,3 NULL # Using sort_union(Name,Country); Using where
-FLUSH STATUS;
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'H'))
-AND (Population >= 100000 AND Population < 120000);
-ID Name Country Population
-384 Cabo Frio BRA 119503
-387 Camaragibe BRA 118968
-403 Catanduva BRA 107761
-412 Cachoeirinha BRA 103240
-508 Watford GBR 113080
-509 Ipswich GBR 114000
-510 Slough GBR 112000
-511 Exeter GBR 111000
-512 Cheltenham GBR 106000
-513 Gloucester GBR 107000
-514 Saint Helens GBR 106293
-515 Sutton Coldfield GBR 106001
-516 York GBR 104425
-517 Oldham GBR 103931
-518 Basildon GBR 100924
-519 Worthing GBR 100000
-635 Mallawi EGY 119283
-636 Bilbays EGY 113608
-637 Mit Ghamr EGY 101801
-638 al-Arish EGY 100447
-701 Tarragona ESP 113016
-702 Lleida (Lérida) ESP 112207
-703 Jaén ESP 109247
-704 Ourense (Orense) ESP 109120
-705 Mataró ESP 104095
-706 Algeciras ESP 103106
-707 Marbella ESP 101144
-759 Gonder ETH 112249
-869 Cabuyao PHL 106630
-870 Calapan PHL 105910
-873 Cauayan PHL 103952
-903 Serekunda GMB 102600
-909 Sohumi GEO 111700
-913 Tema GHA 109975
-914 Sekondi-Takoradi GHA 103653
-924 Villa Nueva GTM 101295
-1844 Cape Breton CAN 114733
-1847 Cambridge CAN 109186
-2406 Herakleion GRC 116178
-2407 Kallithea GRC 114233
-2408 Larisa GRC 113090
-2908 Cajamarca PER 108009
-3002 Besançon FRA 117733
-3003 Caen FRA 113987
-3004 Orléans FRA 113126
-3005 Mulhouse FRA 110359
-3006 Rouen FRA 106592
-3007 Boulogne-Billancourt FRA 106367
-3008 Perpignan FRA 105115
-3009 Nancy FRA 103605
-3411 Ceyhan TUR 102412
-3567 Carúpano VEN 119639
-3568 Catia La Mar VEN 117012
-3571 Calabozo VEN 107146
-3786 Cam Ranh VNM 114041
-3792 Tartu EST 101246
-4002 Carrollton USA 109576
-4027 Cape Coral USA 102286
-4032 Cambridge USA 101355
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 385
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 377
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-EXPLAIN
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'H'))
-AND (Population >= 100000 AND Population < 120000)
-ORDER BY Population LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country,Name,Population Population 4 NULL # Using where
-FLUSH STATUS;
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'H'))
-AND (Population >= 100000 AND Population < 120000)
-ORDER BY Population LIMIT 5;
-ID Name Country Population
-519 Worthing GBR 100000
-638 al-Arish EGY 100447
-518 Basildon GBR 100924
-707 Marbella ESP 101144
-3792 Tartu EST 101246
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 59
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch='index_merge=off';
-EXPLAIN
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'H'))
-AND (Population >= 100000 AND Population < 120000)
-ORDER BY Population LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range Country,Name,Population Population 4 NULL # Using index condition; Using where
-FLUSH STATUS;
-SELECT * FROM City
-WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'H'))
-AND (Population >= 100000 AND Population < 120000)
-ORDER BY Population LIMIT 5;
-ID Name Country Population
-519 Worthing GBR 100000
-638 al-Arish EGY 100447
-518 Basildon GBR 100924
-707 Marbella ESP 101144
-3792 Tartu EST 101246
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 59
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-set optimizer_switch=@save_optimizer_switch;
-DROP DATABASE world;
-use test;
-CREATE TABLE t1 (
-id int(10) unsigned NOT NULL auto_increment,
-account_id int(10) unsigned NOT NULL,
-first_name varchar(50) default NULL,
-middle_name varchar(50) default NULL,
-last_name varchar(100) default NULL,
-home_address_1 varchar(150) default NULL,
-home_city varchar(75) default NULL,
-home_state char(2) default NULL,
-home_postal_code varchar(50) default NULL,
-home_county varchar(75) default NULL,
-home_country char(3) default NULL,
-work_address_1 varchar(150) default NULL,
-work_city varchar(75) default NULL,
-work_state char(2) default NULL,
-work_postal_code varchar(50) default NULL,
-work_county varchar(75) default NULL,
-work_country char(3) default NULL,
-login varchar(50) NOT NULL,
-PRIMARY KEY (id),
-KEY login (login,account_id),
-KEY account_id (account_id),
-KEY user_home_country_indx (home_country),
-KEY user_work_country_indx (work_country),
-KEY user_home_state_indx (home_state),
-KEY user_work_state_indx (work_state),
-KEY user_home_city_indx (home_city),
-KEY user_work_city_indx (work_city),
-KEY user_first_name_indx (first_name),
-KEY user_last_name_indx (last_name)
-);
-insert into t1(account_id, login, home_state, work_state) values
-(1, 'pw', 'ia', 'ia'), (1, 'pw', 'ia', 'ia'), (1, 'pw', 'ia', 'ia'),
-(1, 'pw', 'ia', 'ia'), (1, 'pw', 'ia', 'ia'), (1, 'pw', 'ia', 'ia');
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-insert into t1(account_id, login, home_state, work_state)
-select 1, 'pw', 'ak', 'ak' from t1;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-select count(*) from t1 where account_id = 1;
-count(*)
-3072
-select * from t1
-where (home_state = 'ia' or work_state='ia') and account_id = 1;
-id account_id first_name middle_name last_name home_address_1 home_city home_state home_postal_code home_county home_country work_address_1 work_city work_state work_postal_code work_county work_country login
-1 1 NULL NULL NULL NULL NULL ia NULL NULL NULL NULL NULL ia NULL NULL NULL pw
-2 1 NULL NULL NULL NULL NULL ia NULL NULL NULL NULL NULL ia NULL NULL NULL pw
-3 1 NULL NULL NULL NULL NULL ia NULL NULL NULL NULL NULL ia NULL NULL NULL pw
-4 1 NULL NULL NULL NULL NULL ia NULL NULL NULL NULL NULL ia NULL NULL NULL pw
-5 1 NULL NULL NULL NULL NULL ia NULL NULL NULL NULL NULL ia NULL NULL NULL pw
-6 1 NULL NULL NULL NULL NULL ia NULL NULL NULL NULL NULL ia NULL NULL NULL pw
-explain
-select * from t1
-where (home_state = 'ia' or work_state='ia') and account_id = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge account_id,user_home_state_indx,user_work_state_indx user_home_state_indx,user_work_state_indx 3,3 NULL 12 Using union(user_home_state_indx,user_work_state_indx); Using where
-drop table t1;
-CREATE TABLE t1 (
-c1 int(11) NOT NULL auto_increment,
-c2 decimal(10,0) default NULL,
-c3 decimal(10,0) default NULL,
-c4 decimal(10,0) default NULL,
-c5 decimal(10,0) default NULL,
-cp decimal(1,0) default NULL,
-ce decimal(10,0) default NULL,
-cdata char(20),
-PRIMARY KEY (c1),
-KEY k1 (c2,c3,cp,ce),
-KEY k2 (c4,c5,cp,ce)
-);
-insert into t1 (c2, c3, c4, c5, cp) values(1,1,1,1,1);
-insert into t1 (c2, c3, c4, c5, cp) values(2,1,1,1,4);
-insert into t1 (c2, c3, c4, c5, cp) values(2,1,2,1,1);
-insert into t1 (c2, c3, c4, c5, cp) values(2,1,3,1,4);
-insert into t1 (c2, c3, c4, c5, cp) values(3,1,4,1,4);
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-insert into t1 (c2, c3, c4, c5, cp)
-select c2, c3, c4, c5, cp from t1 where cp = 4;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-explain
-select * from t1 where (c2=1 and c3=1) or (c4=2 and c5=1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge k1,k2 k1,k2 12,12 NULL 2 Using sort_union(k1,k2); Using where
-explain
-select * from t1
-where (c2=1 and c3=1 and cp=1) or (c4=2 and c5=1 and cp=1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge k1,k2 k1,k2 14,14 NULL 2 Using sort_union(k1,k2); Using where
-explain
-select * from t1
-where ((c2=1 and c3=1) or (c4=2 and c5=1)) and cp=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge k1,k2 k1,k2 14,14 NULL 2 Using sort_union(k1,k2); Using where
-select * from t1
-where (c2=1 and c3=1 and cp=1) or (c4=2 and c5=1 and cp=1);
-c1 c2 c3 c4 c5 cp ce cdata
-1 1 1 1 1 1 NULL NULL
-3 2 1 2 1 1 NULL NULL
-select * from t1
-where ((c2=1 and c3=1) or (c4=2 and c5=1)) and cp=1;
-c1 c2 c3 c4 c5 cp ce cdata
-1 1 1 1 1 1 NULL NULL
-3 2 1 2 1 1 NULL NULL
-drop table t1;
-create table t1 (
-c1 int auto_increment primary key,
-c2 char(20),
-c3 char (20),
-c4 int
-);
-alter table t1 add key k1 (c2);
-alter table t1 add key k2 (c3);
-alter table t1 add key k3 (c4);
-insert into t1 values(null, 'a', 'b', 0);
-insert into t1 values(null, 'c', 'b', 0);
-insert into t1 values(null, 'a', 'd', 0);
-insert into t1 values(null, 'ccc', 'qqq', 0);
-insert into t1 (c2,c3) select c2,c3 from t1 where c2 != 'a';
-insert into t1 (c2,c3) select c2,c3 from t1 where c2 != 'a';
-insert into t1 (c2,c3) select c2,c3 from t1 where c2 != 'a';
-insert into t1 (c2,c3) select c2,c3 from t1 where c2 != 'a';
-insert into t1 (c2,c3) select c2,c3 from t1 where c2 != 'a';
-insert into t1 (c2,c3) select c2,c3 from t1 where c2 != 'a';
-insert into t1 (c2,c3) select c2,c3 from t1 where c2 != 'a';
-insert into t1 (c2,c3,c4) select c2,c3,1 from t1 where c2 != 'a';
-insert into t1 (c2,c3,c4) select c2,c3,2 from t1 where c2 != 'a';
-insert into t1 (c2,c3,c4) select c2,c3,3 from t1 where c2 != 'a';
-insert into t1 (c2,c3,c4) select c2,c3,4 from t1 where c2 != 'a';
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-select count(*) from t1 where (c2='e' OR c3='q');
-count(*)
-0
-select count(*) from t1 where c4 != 0;
-count(*)
-3840
-explain
-select distinct c1 from t1 where (c2='e' OR c3='q');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge k1,k2 k1,k2 21,21 NULL 2 Using union(k1,k2); Using where
-explain
-select distinct c1 from t1 where (c4!= 0) AND (c2='e' OR c3='q');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge k1,k2,k3 k1,k2 21,21 NULL 2 Using union(k1,k2); Using where
-drop table t1;
-create table t1 (
-id int unsigned auto_increment primary key,
-c1 char(12),
-c2 char(15),
-c3 char(1)
-);
-insert into t1 (c3) values ('1'), ('2');
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-insert into t1 (c3) select c3 from t1;
-update t1 set c1=lpad(id+1000, 12, ' '), c2=lpad(id+10000, 15, ' ');
-alter table t1 add unique index (c1), add unique index (c2), add index (c3);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-explain
-select * from t1 where (c1=' 100000' or c2=' 2000000');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge c1,c2 c1,c2 13,16 NULL 2 Using union(c1,c2); Using where
-explain
-select * from t1 where (c1=' 100000' or c2=' 2000000') and c3='2';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge c1,c2,c3 c1,c2 13,16 NULL 2 Using union(c1,c2); Using where
-select * from t1 where (c1=' 100000' or c2=' 2000000');
-id c1 c2 c3
-select * from t1 where (c1=' 100000' or c2=' 2000000') and c3='2';
-id c1 c2 c3
-drop table t1;
-CREATE TABLE t1 (
-a smallint DEFAULT NULL,
-pk int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-b varchar(10) DEFAULT NULL,
-c varchar(64) DEFAULT NULL,
-INDEX idx1 (a),
-INDEX idx2 (b),
-INDEX idx3 (c)
-);
-SELECT COUNT(*) FROM t1 IGNORE INDEX (idx2,idx3)
-WHERE c = 'i' OR b IN ( 'Arkansas' , 'd' , 'pdib' , 'can' ) OR
-(pk BETWEEN 120 AND 79 + 255 OR a IN ( 4 , 179 , 1 ) ) AND a > 8 ;
-COUNT(*)
-5
-SELECT COUNT(*) FROM t1
-WHERE c = 'i' OR b IN ( 'Arkansas' , 'd' , 'pdib' , 'can' ) OR
-(pk BETWEEN 120 AND 79 + 255 OR a IN ( 4 , 179 , 1 ) ) AND a > 8 ;
-COUNT(*)
-5
-EXPLAIN
-SELECT COUNT(*) FROM t1
-WHERE c = 'i' OR b IN ( 'Arkansas' , 'd' , 'pdib' , 'can' ) OR
-(pk BETWEEN 120 AND 79 + 255 OR a IN ( 4 , 179 , 1 ) ) AND a > 8 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge PRIMARY,idx1,idx2,idx3 idx3,idx2,idx1,PRIMARY 67,13,3,4 NULL 9 Using sort_union(idx3,idx2,idx1,PRIMARY); Using where
-DROP TABLE t1;
-CREATE TABLE t1 (
-f1 int, f2 int, f3 int, f4 int, f5 int,
-PRIMARY KEY (f4), KEY (f1), KEY (f2), KEY (f3)
-) ;
-INSERT INTO t1 VALUES (0,0,NULL,9,5), (0,0,1,9425,NULL);
-SELECT f5 FROM t1
-WHERE f2 != 1 OR f1 IS NULL OR f4 = 4 OR
-f2 AND (f4 BETWEEN 6 AND 255 OR f3 IS NULL);
-f5
-5
-NULL
-DROP TABLE t1;
-CREATE TABLE t1 (
-f1 int, f2 int, f3 int, f4 int,
-PRIMARY KEY (f1), KEY (f3), KEY (f4)
-);
-INSERT INTO t1 VALUES (9,0,2,6), (9930,0,0,NULL);
-SET SESSION optimizer_switch='index_merge_intersection=off';
-SET SESSION optimizer_switch='index_merge_sort_union=off';
-SET SESSION optimizer_switch='index_merge_union=off';
-EXPLAIN
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY,f3,f4 NULL NULL NULL 2 Using where
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-f1 f2 f3 f4
-9 0 2 6
-SET SESSION optimizer_switch='index_merge_union=on';
-EXPLAIN
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge PRIMARY,f3,f4 PRIMARY,f3 4,5 NULL 2 Using union(PRIMARY,f3); Using where
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-f1 f2 f3 f4
-9 0 2 6
-INSERT INTO t1 VALUES
-(93,0,3,6), (9933,0,3,3), (94,0,4,6), (9934,0,4,4),
-(95,0,5,6), (9935,0,5,5), (96,0,6,6), (9936,0,6,6),
-(97,0,7,6), (9937,0,7,7), (98,0,8,6), (9938,0,8,8),
-(99,0,9,6), (9939,0,9,9);
-SET SESSION optimizer_switch='index_merge_union=off';
-EXPLAIN
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY,f3,f4 NULL NULL NULL 16 Using where
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-f1 f2 f3 f4
-9 0 2 6
-SET SESSION optimizer_switch='index_merge_union=on';
-EXPLAIN
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge PRIMARY,f3,f4 PRIMARY,f3 4,5 NULL 2 Using union(PRIMARY,f3); Using where
-SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)
-WHERE ( f3 = 1 OR f1 = 7 ) AND f1 < 10
-OR f3 BETWEEN 2 AND 2 AND ( f3 = 1 OR f4 != 1 );
-f1 f2 f3 f4
-9 0 2 6
-SET SESSION optimizer_switch=DEFAULT;
-DROP TABLE t1;
-CREATE TABLE t1 (f1 int) ;
-INSERT INTO t1 VALUES (0), (0);
-CREATE TABLE t2 (f1 int, f2 int, f3 int, f4 int, INDEX idx (f3,f2)) ;
-INSERT INTO t2 VALUES (5,6,0,0), (0,4,0,0);
-CREATE TABLE t3 (f1 int, f2 int, INDEX idx1 (f2,f1) , INDEX idx2 (f1)) ;
-INSERT INTO t3 VALUES (6,0),( 4,0);
-SELECT * FROM t1,t2,t3
-WHERE (t2.f3 = 1 OR t3.f1=t2.f1) AND t3.f1 <> t2.f2 AND t3.f2 = t2.f4;
-f1 f1 f2 f3 f4 f1 f2
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (
-a int, b int, c int, d int,
-PRIMARY KEY(b), INDEX idx1(d), INDEX idx2(d,b,c)
-);
-INSERT INTO t1 VALUES
-(0,58,7,7),(0,63,2,0),(0,64,186,8),(0,65,1,-2), (0,71,190,-3),
-(0,72,321,-7),(0,73,0,3),(0,74,5,25),(0,75,5,3);
-SET SESSION optimizer_switch='index_merge_sort_union=off';
-EXPLAIN
-SELECT * FROM t1
-WHERE t1.b>7 AND t1.d>1 AND t1.d<>8 OR t1.d>=7 AND t1.d<8 OR t1.d>7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY,idx1,idx2 NULL NULL NULL 9 Using where
-SELECT * FROM t1
-WHERE t1.b>7 AND t1.d>1 AND t1.d<>8 OR t1.d>=7 AND t1.d<8 OR t1.d>7;
-a b c d
-0 58 7 7
-0 64 186 8
-0 73 0 3
-0 74 5 25
-0 75 5 3
-SET SESSION optimizer_switch='index_merge_sort_union=on';
-EXPLAIN
-SELECT * FROM t1
-WHERE t1.b>7 AND t1.d>1 AND t1.d<>8 OR t1.d>=7 AND t1.d<8 OR t1.d>7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL PRIMARY,idx1,idx2 NULL NULL NULL 9 Using where
-SELECT * FROM t1
-WHERE t1.b>7 AND t1.d>1 AND t1.d<>8 OR t1.d>=7 AND t1.d<8 OR t1.d>7;
-a b c d
-0 58 7 7
-0 64 186 8
-0 73 0 3
-0 74 5 25
-0 75 5 3
-SET SESSION optimizer_switch=DEFAULT;
-DROP TABLE t1;
-CREATE TABLE t1 (a int NOT NULL PRIMARY KEY, b int, c int, INDEX idx(c,b));
-INSERT INTO t1 VALUES (19,1,NULL), (20,5,7);
-EXPLAIN
-SELECT * FROM t1
-WHERE t1.a>300 AND t1.c!=0 AND t1.b>=350 AND t1.b<=400 AND
-(t1.c=0 OR t1.a=500);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,idx PRIMARY 4 NULL 1 Using where
-SELECT * FROM t1
-WHERE t1.a>300 AND t1.c!=0 AND t1.b>=350 AND t1.b<=400 AND
-(t1.c=0 OR t1.a=500);
-a b c
-DROP TABLE t1;
-CREATE TABLE t1 (a int PRIMARY KEY, b int, INDEX idx(b));
-INSERT INTO t1 VALUES (167,9999), (168,10000);
-EXPLAIN
-SELECT * FROM t1
-WHERE a BETWEEN 4 AND 5 AND b IN (255,4) OR a IN (2,14,25) OR a!=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY,idx idx 5 NULL 2 Using where; Using index
-SELECT * FROM t1
-WHERE a BETWEEN 4 AND 5 AND b IN (255,4) OR a IN (2,14,25) OR a!=2;
-a b
-167 9999
-168 10000
-DROP TABLE t1;
-#
-# MDEV-8603: Wrong result OR/AND condition over index fields
-#
-CREATE TABLE t1 (
-id INT NOT NULL,
-state VARCHAR(64),
-capital VARCHAR(64),
-UNIQUE KEY (id),
-KEY state (state,id),
-KEY capital (capital, id)
-);
-INSERT INTO t1 VALUES
-(1,'Arizona','Phoenix'),
-(2,'Hawaii','Honolulu'),
-(3,'Georgia','Atlanta'),
-(4,'Florida','Tallahassee'),
-(5,'Alaska','Juneau'),
-(6,'Michigan','Lansing'),
-(7,'Pennsylvania','Harrisburg'),
-(8,'Virginia','Richmond')
-;
-EXPLAIN
-SELECT * FROM t1 FORCE KEY (state,capital)
-WHERE ( state = 'Alabama' OR state >= 'Colorado' ) AND id != 9
-OR ( capital >= 'Topeka' OR state = 'Kansas' ) AND state != 'Texas';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range state,capital state 71 NULL 12 Using index condition; Using where
-SELECT * FROM t1 FORCE KEY (state,capital)
-WHERE ( state = 'Alabama' OR state >= 'Colorado' ) AND id != 9
-OR ( capital >= 'Topeka' OR state = 'Kansas' ) AND state != 'Texas';
-id state capital
-4 Florida Tallahassee
-3 Georgia Atlanta
-2 Hawaii Honolulu
-6 Michigan Lansing
-7 Pennsylvania Harrisburg
-8 Virginia Richmond
-DROP TABLE t1;
-#
-# mdev-11574: do not build index merge of two indexes when
-# one index is an infix of the other index
-#
-set names utf8;
-CREATE DATABASE world;
-use world;
-CREATE TABLE Country (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name)
-);
-CREATE TABLE City (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-);
-CREATE TABLE CountryLanguage (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-);
-DROP INDEX Country ON City;
-CREATE INDEX CountryName ON City(Country,Name);
-CREATE INDEX Name ON City(Name);
-select * from City
-where
-Country='FIN' AND Name IN ('Lahti','Imatra') OR
-Country='RUS' AND Name IN ('St Petersburg', 'Moscow') OR
-Country='SWE' AND Name IN ('Stockholm', 'Uppsala') OR
-Country='DEU' AND Name IN ('Berlin', 'Bonn') OR
-Country='BEL' AND Name IN ('Antwerpen', 'Gent') OR
-Country='PRT' AND Name IN ('Braga', 'Porto') OR
-Country='FRA' AND Name IN ('Paris', 'Marcel') OR
-Country='POL' AND Name IN ('Warszawa', 'Wroclaw') OR
-Country='NOR' AND Name IN ('Oslo', 'Bergen') OR
-Country='ITA' AND Name IN ('Napoli', 'Venezia');
-ID Name Country Population
-175 Antwerpen BEL 446525
-176 Gent BEL 224180
-3068 Berlin DEU 3386667
-3087 Bonn DEU 301048
-3242 Lahti FIN 96921
-2974 Paris FRA 2125246
-1466 Napoli ITA 1002619
-1474 Venezia ITA 277305
-2808 Bergen NOR 230948
-2807 Oslo NOR 508726
-2928 Warszawa POL 1615369
-2931 Wroclaw POL 636765
-2918 Braga PRT 90535
-2915 Porto PRT 273060
-3580 Moscow RUS 8389200
-3581 St Petersburg RUS 4694000
-3048 Stockholm SWE 750348
-3051 Uppsala SWE 189569
-explain select * from City
-where
-Country='FIN' AND Name IN ('Lahti','Imatra') OR
-Country='RUS' AND Name IN ('St Petersburg', 'Moscow') OR
-Country='SWE' AND Name IN ('Stockholm', 'Uppsala') OR
-Country='DEU' AND Name IN ('Berlin', 'Bonn') OR
-Country='BEL' AND Name IN ('Antwerpen', 'Gent') OR
-Country='PRT' AND Name IN ('Braga', 'Porto') OR
-Country='FRA' AND Name IN ('Paris', 'Marcel') OR
-Country='POL' AND Name IN ('Warszawa', 'Wroclaw') OR
-Country='NOR' AND Name IN ('Oslo', 'Bergen') OR
-Country='ITA' AND Name IN ('Napoli', 'Venezia');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE City range CountryName,Name CountryName 38 NULL 20 Using index condition; Using where
-DROP DATABASE world;
-set session optimizer_switch='index_merge_sort_intersection=default';
-SET SESSION STORAGE_ENGINE=DEFAULT;
diff --git a/mysql-test/r/read_many_rows_innodb.result b/mysql-test/r/read_many_rows_innodb.result
deleted file mode 100644
index 24f9a2d54a5..00000000000
--- a/mysql-test/r/read_many_rows_innodb.result
+++ /dev/null
@@ -1,101 +0,0 @@
-SET SESSION STORAGE_ENGINE = InnoDB;
-DROP TABLE IF EXISTS t1, t2, t3, t4;
-CREATE TABLE t1 (id INTEGER) ENGINE=MyISAM;
-CREATE TABLE t2 (id INTEGER PRIMARY KEY);
-CREATE TABLE t3 (a CHAR(32) PRIMARY KEY,id INTEGER);
-CREATE TABLE t4 (a CHAR(32) PRIMARY KEY,id INTEGER) ENGINE=MyISAM;
-INSERT INTO t1 (id) VALUES (1);
-INSERT INTO t1 SELECT id+1 FROM t1;
-INSERT INTO t1 SELECT id+2 FROM t1;
-INSERT INTO t1 SELECT id+4 FROM t1;
-INSERT INTO t1 SELECT id+8 FROM t1;
-INSERT INTO t1 SELECT id+16 FROM t1;
-INSERT INTO t1 SELECT id+32 FROM t1;
-INSERT INTO t1 SELECT id+64 FROM t1;
-INSERT INTO t1 SELECT id+128 FROM t1;
-INSERT INTO t1 SELECT id+256 FROM t1;
-INSERT INTO t1 SELECT id+512 FROM t1;
-INSERT INTO t1 SELECT id+1024 FROM t1;
-INSERT INTO t1 SELECT id+2048 FROM t1;
-INSERT INTO t1 SELECT id+4096 FROM t1;
-INSERT INTO t1 SELECT id+8192 FROM t1;
-INSERT INTO t1 SELECT id+16384 FROM t1;
-INSERT INTO t1 SELECT id+32768 FROM t1;
-INSERT INTO t1 SELECT id+65536 FROM t1;
-INSERT INTO t1 SELECT id+131072 FROM t1;
-INSERT INTO t1 SELECT id+262144 FROM t1;
-INSERT INTO t1 SELECT id+524288 FROM t1;
-INSERT INTO t1 SELECT id+1048576 FROM t1;
-INSERT INTO t2 SELECT * FROM t1;
-INSERT INTO t3 SELECT CONCAT(id),id FROM t2 ORDER BY -id;
-INSERT INTO t4 SELECT * FROM t3 ORDER BY CONCAT(a);
-SELECT SUM(id) FROM t3;
-SUM(id)
-2199024304128
-DROP TABLE t1,t2,t3,t4;
-CREATE TABLE t1 (f1 int NOT NULL) ENGINE=InnoDB;
-CREATE TABLE t2 (f2 int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT) ENGINE=InnoDB;
-CREATE TRIGGER t1_bi before INSERT
-ON t1 FOR EACH ROW
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '40001' SET @a:= 'deadlock';
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET @a:= 'exception';
-INSERT INTO t2 (f2) VALUES (NEW.f1);
-DELETE FROM t2 WHERE f2 = NEW.f1;
-END;|
-CREATE PROCEDURE proc24989()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '40001' SET @b:= 'deadlock';
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET @a:= 'exception';
-INSERT INTO t2 (f2) VALUES (1);
-DELETE FROM t2 WHERE f2 = 1;
-END;|
-create procedure proc24989_2()
-deterministic
-begin
-declare continue handler for sqlexception
-select 'Outer handler' as 'exception';
-insert into t1 values(1);
-select "continued";
-end|
-start transaction;
-insert into t1 values(1);
-start transaction;
-insert into t2 values(123);
-insert into t1 values(1);
-insert into t1 values(123);
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-select @a;
-@a
-NULL
-select * from t2;
-f2
-commit;
-start transaction;
-insert into t1 values(1);
-start transaction;
-insert into t2 values(123);
-call proc24989();
-insert into t1 values(123);
-select @a,@b;
-@a @b
-exception deadlock
-select * from t2;
-f2
-commit;
-start transaction;
-insert into t1 values(1);
-start transaction;
-insert into t2 values(123);
-call proc24989_2();
-insert into t1 values(123);
-commit;
-exception
-Outer handler
-continued
-continued
-select * from t2;
-f2
-drop procedure proc24989;
-drop procedure proc24989_2;
-drop table t1,t2;
diff --git a/mysql-test/r/read_only.result b/mysql-test/r/read_only.result
deleted file mode 100644
index 2029413c0f0..00000000000
--- a/mysql-test/r/read_only.result
+++ /dev/null
@@ -1,213 +0,0 @@
-set @start_read_only= @@global.read_only;
-DROP TABLE IF EXISTS t1,t2,t3;
-create user test@localhost;
-grant CREATE, SELECT, DROP on *.* to test@localhost;
-connect con1,localhost,test,,test;
-connection default;
-set global read_only=0;
-connection con1;
-create table t1 (a int);
-create trigger trg1 before insert on t1 for each row set @a:=1;
-insert into t1 values(1);
-create table t2 select * from t1;
-connection default;
-set global read_only=1;
-create table t3 (a int);
-drop table t3;
-connection con1;
-select @@global.read_only;
-@@global.read_only
-1
-create table t3 (a int);
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-insert into t1 values(1);
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-drop trigger trg1;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-update t1 set a=1 where 1=0;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-update t1,t2 set t1.a=t2.a+1 where t1.a=t2.a;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-delete t1,t2 from t1,t2 where t1.a=t2.a;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-create temporary table t3 (a int);
-create temporary table t4 (a int) select * from t3;
-insert into t3 values(1);
-insert into t4 select * from t3;
-create table t3 (a int);
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-update t1,t3 set t1.a=t3.a+1 where t1.a=t3.a;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-update t1,t3 set t3.a=t1.a+1 where t1.a=t3.a;
-update t4,t3 set t4.a=t3.a+1 where t4.a=t3.a;
-delete t1 from t1,t3 where t1.a=t3.a;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-delete t3 from t1,t3 where t1.a=t3.a;
-delete t4 from t3,t4 where t4.a=t3.a;
-create temporary table t1 (a int);
-insert into t1 values(1);
-update t1,t3 set t1.a=t3.a+1 where t1.a=t3.a;
-delete t1 from t1,t3 where t1.a=t3.a;
-drop table t1;
-insert into t1 values(1);
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-drop temporary table if exists t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-connection default;
-set global read_only=0;
-lock table t1 write;
-connection con1;
-lock table t2 write;
-connection default;
-set global read_only=1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables ;
-send set global read_only=1;
-set global read_only=1;
-connection con1;
-select @@global.read_only;
-@@global.read_only
-0
-unlock tables ;
-select @@global.read_only;
-@@global.read_only
-1
-connection default;
-reap;
-connection default;
-set global read_only=0;
-lock table t1 read;
-connection con1;
-lock table t2 read;
-connection default;
-set global read_only=1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables ;
-set global read_only=1;
-select @@global.read_only;
-@@global.read_only
-1
-connection con1;
-select @@global.read_only;
-@@global.read_only
-1
-unlock tables ;
-connection default;
-connection default;
-set global read_only=0;
-BEGIN;
-connection con1;
-BEGIN;
-connection default;
-set global read_only=1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-ROLLBACK;
-set global read_only=1;
-connection con1;
-select @@global.read_only;
-@@global.read_only
-1
-ROLLBACK;
-connection default;
-set global read_only=0;
-flush tables with read lock;
-set global read_only=1;
-unlock tables;
-connect root2,localhost,root,,test;
-connection default;
-set global read_only=0;
-flush tables with read lock;
-connection root2;
-set global read_only=1;
-connection default;
-select @@global.read_only;
-@@global.read_only
-1
-unlock tables;
-disconnect root2;
-drop temporary table ttt;
-ERROR 42S02: Unknown table 'test.ttt'
-drop temporary table if exists ttt;
-Warnings:
-Note 1051 Unknown table 'test.ttt'
-connection default;
-set global read_only=0;
-disconnect con1;
-drop table t1,t2;
-drop user test@localhost;
-#
-# Bug#27440 read_only allows create and drop database
-#
-set global read_only= 1;
-drop database if exists mysqltest_db1;
-drop database if exists mysqltest_db2;
-delete from mysql.user where User like 'mysqltest_%';
-delete from mysql.db where User like 'mysqltest_%';
-delete from mysql.tables_priv where User like 'mysqltest_%';
-delete from mysql.columns_priv where User like 'mysqltest_%';
-flush privileges;
-create user `mysqltest_u1`@`%`;
-grant all on mysqltest_db2.* to `mysqltest_u1`@`%`;
-create database mysqltest_db1;
-grant all on mysqltest_db1.* to `mysqltest_u1`@`%`;
-flush privileges;
-connect con_bug27440,127.0.0.1,mysqltest_u1,,test,$MASTER_MYPORT,;
-connection con_bug27440;
-create database mysqltest_db2;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-show databases like '%mysqltest_db2%';
-Database (%mysqltest_db2%)
-drop database mysqltest_db1;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-disconnect con_bug27440;
-connection default;
-delete from mysql.user where User like 'mysqltest_%';
-delete from mysql.db where User like 'mysqltest_%';
-delete from mysql.tables_priv where User like 'mysqltest_%';
-delete from mysql.columns_priv where User like 'mysqltest_%';
-flush privileges;
-drop database mysqltest_db1;
-set global read_only= @start_read_only;
-#
-# WL#5968 Implement START TRANSACTION READ (WRITE|ONLY);
-#
-#
-# Test interaction with read_only system variable.
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (1), (2);
-CREATE USER user1;
-connect con1, localhost, user1;
-connection default;
-SET GLOBAL read_only= 1;
-# All allowed with super privilege
-START TRANSACTION;
-COMMIT;
-START TRANSACTION READ ONLY;
-COMMIT;
-START TRANSACTION READ WRITE;
-COMMIT;
-# We allow implicit RW transaction without super privilege
-# for compatibility reasons
-connection con1;
-START TRANSACTION;
-# Check that table updates are still disallowed.
-INSERT INTO t1 VALUES (3);
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-UPDATE t1 SET a= 1;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-DELETE FROM t1;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-COMMIT;
-START TRANSACTION READ ONLY;
-COMMIT;
-# Explicit RW trans is not allowed without super privilege
-START TRANSACTION READ WRITE;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-COMMIT;
-disconnect con1;
-connection default;
-DROP USER user1;
-SET GLOBAL read_only= 0;
-DROP TABLE t1;
diff --git a/mysql-test/r/read_only_innodb.result b/mysql-test/r/read_only_innodb.result
deleted file mode 100644
index abfc5322ed0..00000000000
--- a/mysql-test/r/read_only_innodb.result
+++ /dev/null
@@ -1,246 +0,0 @@
-DROP TABLE IF EXISTS table_11733 ;
-create user test@localhost;
-grant CREATE, SELECT, DROP on *.* to test@localhost;
-connect con1,localhost,test,,test;
-connection default;
-set global read_only=0;
-create table table_11733 (a int) engine=InnoDb;
-connection con1;
-BEGIN;
-insert into table_11733 values(11733);
-connection default;
-set global read_only=1;
-connection con1;
-select @@global.read_only;
-@@global.read_only
-1
-select * from table_11733 ;
-a
-11733
-COMMIT;
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-connection default;
-set global read_only=0;
-drop table table_11733 ;
-drop user test@localhost;
-disconnect con1;
-create user test@localhost;
-GRANT CREATE, SELECT, DROP ON *.* TO test@localhost;
-connect con1, localhost, test, , test;
-connection default;
-CREATE TABLE t1(a INT) ENGINE=INNODB;
-INSERT INTO t1 VALUES (0), (1);
-SET GLOBAL read_only=1;
-connection con1;
-SELECT * FROM t1;
-a
-0
-1
-BEGIN;
-SELECT * FROM t1;
-a
-0
-1
-COMMIT;
-connection default;
-SET GLOBAL read_only=0;
-FLUSH TABLES WITH READ LOCK;
-connection con1;
-SELECT * FROM t1;
-a
-0
-1
-BEGIN;
-SELECT * FROM t1;
-a
-0
-1
-COMMIT;
-connection default;
-UNLOCK TABLES;
-connection con1;
-lock table t1 read;
-connection default;
-set global read_only=1;
-connection con1;
-unlock tables;
-connection default;
-SET GLOBAL read_only=0;
-UNLOCK TABLES;
-DROP TABLE t1;
-DROP USER test@localhost;
-disconnect con1;
-echo End of 5.1 tests
-#
-# Bug#33669: Transactional temporary tables do not work under --read-only
-#
-DROP DATABASE IF EXISTS db1;
-# Setup user and tables
-CREATE USER bug33669@localhost;
-CREATE DATABASE db1;
-CREATE TABLE db1.t1 (a INT) ENGINE=INNODB;
-CREATE TABLE db1.t2 (a INT) ENGINE=INNODB;
-INSERT INTO db1.t1 VALUES (1);
-INSERT INTO db1.t2 VALUES (2);
-GRANT CREATE TEMPORARY TABLES, DROP, INSERT, DELETE, UPDATE,
-SELECT, LOCK TABLES ON db1.* TO bug33669@localhost;
-SET GLOBAL READ_ONLY = ON;
-connect con1,localhost,bug33669,,db1;
-
-# Create, insert and drop temporary table:
-
-CREATE TEMPORARY TABLE temp (a INT) ENGINE=INNODB;
-INSERT INTO temp VALUES (1);
-DROP TABLE temp;
-
-# Lock base tables and use temporary table:
-
-CREATE TEMPORARY TABLE temp (a INT) ENGINE=INNODB;
-LOCK TABLES t1 READ, t2 READ;
-SELECT * FROM t1;
-a
-1
-INSERT INTO temp values (1);
-SELECT * FROM t2;
-a
-2
-UNLOCK TABLES;
-DROP TABLE temp;
-
-# Transaction
-
-BEGIN;
-SELECT * FROM t1;
-a
-1
-CREATE TEMPORARY TABLE temp (a INT) ENGINE=INNODB;
-INSERT INTO t1 VALUES (1);
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-INSERT INTO temp VALUES (1);
-SELECT * FROM t2;
-a
-2
-ROLLBACK;
-SELECT * FROM temp;
-a
-DROP TABLE temp;
-
-# Lock base table as READ and temporary table as WRITE:
-
-CREATE TEMPORARY TABLE temp (a INT) ENGINE=INNODB;
-LOCK TABLES t1 READ, temp WRITE;
-SELECT * FROM t1;
-a
-1
-SELECT * FROM temp;
-a
-INSERT INTO t1 VALUES (1);
-ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement
-INSERT INTO temp VALUES (1);
-DROP TABLE temp;
-UNLOCK TABLES;
-
-# Lock temporary table that shadows a base table:
-
-CREATE TEMPORARY TABLE t1 (a INT) ENGINE=INNODB;
-LOCK TABLES t1 WRITE;
-DROP TABLE t1;
-SELECT * FROM t1;
-ERROR HY000: Table 't1' was not locked with LOCK TABLES
-
-# INSERT SELECT from base table into temporary table:
-
-CREATE TEMPORARY TABLE temp1 (a INT) ENGINE=INNODB;
-CREATE TEMPORARY TABLE temp2 LIKE temp1;
-BEGIN;
-INSERT INTO temp1 VALUES (10);
-INSERT INTO temp2 VALUES (10);
-INSERT INTO temp1 SELECT * FROM t1;
-INSERT INTO temp2 SELECT * FROM t2;
-SELECT * FROM temp1 ORDER BY a;
-a
-1
-10
-SELECT * FROM temp2 ORDER BY a;
-a
-2
-10
-ROLLBACK;
-SELECT * FROM temp1,temp2;
-a a
-LOCK TABLES t1 READ, t2 READ;
-INSERT INTO temp1 VALUES (10);
-INSERT INTO temp2 VALUES (10);
-INSERT INTO temp1 SELECT * FROM t1;
-INSERT INTO temp2 SELECT * FROM t2;
-SELECT * FROM temp1 ORDER BY a;
-a
-1
-10
-SELECT * FROM temp2 ORDER BY a;
-a
-2
-10
-UNLOCK TABLES;
-DELETE temp1, temp2 FROM temp1, temp2;
-INSERT INTO temp1 VALUES (10);
-INSERT INTO temp2 VALUES (10);
-INSERT INTO temp1 SELECT * FROM t1;
-INSERT INTO temp2 SELECT * FROM t2;
-SELECT * FROM temp1 ORDER BY a;
-a
-1
-10
-SELECT * FROM temp2 ORDER BY a;
-a
-2
-10
-DROP TABLE temp1, temp2;
-
-# INSERT and INSERT SELECT that uses subqueries:
-CREATE TEMPORARY TABLE temp1 (a INT) ENGINE=INNODB;
-CREATE TEMPORARY TABLE temp2 LIKE temp1;
-INSERT INTO temp1 (a) VALUES ((SELECT MAX(a) FROM t1));
-LOCK TABLES t2 READ;
-INSERT INTO temp2 (a) VALUES ((SELECT MAX(a) FROM t2));
-UNLOCK TABLES;
-LOCK TABLES t1 READ, t2 READ;
-INSERT INTO temp1 SELECT * FROM t1 WHERE a < (SELECT MAX(a) FROM t2);
-INSERT INTO temp2 SELECT * FROM t2 WHERE a > (SELECT MAX(a) FROM t1);
-UNLOCK TABLES;
-INSERT INTO temp1 SELECT * FROM t1 WHERE a < (SELECT MAX(a) FROM t2);
-INSERT INTO temp2 SELECT * FROM t2 WHERE a > (SELECT MAX(a) FROM t1);
-SELECT * FROM temp1 ORDER BY a;
-a
-1
-1
-1
-SELECT * FROM temp2 ORDER BY a;
-a
-2
-2
-2
-DROP TABLE temp1, temp2;
-
-# Multiple table update:
-
-CREATE TEMPORARY TABLE temp1 (a INT) ENGINE=INNODB;
-CREATE TEMPORARY TABLE temp2 LIKE temp1;
-INSERT INTO temp1 VALUES (1),(2);
-INSERT INTO temp2 VALUES (3),(4);
-UPDATE temp1,temp2 SET temp1.a = 5, temp2.a = 10;
-SELECT * FROM temp1, temp2;
-a a
-5 10
-5 10
-5 10
-5 10
-DROP TABLE temp1, temp2;
-
-# Disconnect and cleanup
-
-disconnect con1;
-connection default;
-SET GLOBAL READ_ONLY = OFF;
-DROP USER bug33669@localhost;
-DROP DATABASE db1;
diff --git a/mysql-test/r/rename.result b/mysql-test/r/rename.result
deleted file mode 100644
index ff8566abe02..00000000000
--- a/mysql-test/r/rename.result
+++ /dev/null
@@ -1,80 +0,0 @@
-drop table if exists t0,t1,t2,t3,t4;
-drop table if exists t0,t5,t6,t7,t8,t9,t1_1,t1_2,t9_1,t9_2;
-create table t0 SELECT 1,"table 1";
-create table t2 SELECT 2,"table 2";
-create table t3 SELECT 3,"table 3";
-rename table t0 to t1;
-rename table t3 to t4, t2 to t3, t1 to t2, t4 to t1;
-select * from t1;
-3 table 3
-3 table 3
-rename table t3 to t4, t2 to t3, t1 to t2, t4 to t1;
-rename table t3 to t4, t2 to t3, t1 to t2, t4 to t1;
-select * from t1;
-1 table 1
-1 table 1
-rename table t1 to t2;
-ERROR 42S01: Table 't2' already exists
-rename table t1 to t1;
-ERROR 42S01: Table 't1' already exists
-rename table t3 to t4, t2 to t3, t1 to t2, t4 to t2;
-ERROR 42S01: Table 't2' already exists
-show tables like "t_";
-Tables_in_test (t_)
-t1
-t2
-t3
-rename table t3 to t1, t2 to t3, t1 to t2, t4 to t1;
-ERROR 42S01: Table 't1' already exists
-rename table t3 to t4, t5 to t3, t1 to t2, t4 to t1;
-ERROR 42S02: Table 'test.t5' doesn't exist
-select * from t1;
-1 table 1
-1 table 1
-select * from t2;
-2 table 2
-2 table 2
-select * from t3;
-3 table 3
-3 table 3
-drop table if exists t1,t2,t3,t4;
-Warnings:
-Note 1051 Unknown table 'test.t4'
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection con1;
-CREATE TABLE t1 (a int);
-CREATE TABLE t3 (a int);
-connection con2;
-FLUSH TABLES WITH READ LOCK;
-connection con1;
-RENAME TABLE t1 TO t2, t3 to t4;
-connection con2;
-show tables;
-Tables_in_test
-t1
-t3
-UNLOCK TABLES;
-connection con1;
-connection con2;
-show tables;
-Tables_in_test
-t2
-t4
-drop table t2, t4;
-disconnect con2;
-disconnect con1;
-connection default;
-End of 4.1 tests
-#
-# Bug#14959: "ALTER TABLE isn't able to rename a view"
-# Bug#53976: "ALTER TABLE RENAME is allowed on views
-# (not documented, broken)"
-#
-create table t1(f1 int);
-create view v1 as select * from t1;
-alter table v1 rename to v2;
-ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
-drop view v1;
-drop table t1;
-End of 5.0 tests
diff --git a/mysql-test/r/renamedb.result b/mysql-test/r/renamedb.result
deleted file mode 100644
index f774c3d1ab6..00000000000
--- a/mysql-test/r/renamedb.result
+++ /dev/null
@@ -1,12 +0,0 @@
-rename database testdb1 to testdb2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'database testdb1 to testdb2' at line 1
-ALTER DATABASE wrong UPGRADE DATA DIRECTORY NAME;
-ERROR HY000: Incorrect usage of ALTER DATABASE UPGRADE DATA DIRECTORY NAME and name
-ALTER DATABASE `#mysql41#not-supported` UPGRADE DATA DIRECTORY NAME;
-ERROR HY000: Incorrect usage of ALTER DATABASE UPGRADE DATA DIRECTORY NAME and name
-ALTER DATABASE `#mysql51#not-yet` UPGRADE DATA DIRECTORY NAME;
-ERROR HY000: Incorrect usage of ALTER DATABASE UPGRADE DATA DIRECTORY NAME and name
-ALTER DATABASE `#mysql50#` UPGRADE DATA DIRECTORY NAME;
-ERROR 42000: Incorrect database name '#mysql50#'
-ALTER DATABASE `#mysql50#upgrade-me` UPGRADE DATA DIRECTORY NAME;
-ERROR 42000: Unknown database '#mysql50#upgrade-me'
diff --git a/mysql-test/r/reopen_temp_table.result b/mysql-test/r/reopen_temp_table.result
deleted file mode 100644
index 217aa3c8bad..00000000000
--- a/mysql-test/r/reopen_temp_table.result
+++ /dev/null
@@ -1,192 +0,0 @@
-#
-# MDEV-5535: Cannot reopen temporary table
-#
-DROP DATABASE IF EXISTS temp_db;
-CREATE DATABASE temp_db;
-USE temp_db;
-#
-# Reopen temporary table
-#
-CREATE TEMPORARY TABLE t1(i int)ENGINE=INNODB;
-INSERT INTO t1 VALUES(1), (2);
-SELECT * FROM t1 a, t1 b;
-i i
-1 1
-2 1
-1 2
-2 2
-DROP TABLE t1;
-#
-# CREATE & Stored routines
-#
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-DROP TEMPORARY TABLE t1;
-RETURN 1;
-END|
-CREATE TEMPORARY TABLE t1 AS SELECT f1();
-ERROR 42S02: Unknown table 'temp_db.t1'
-DROP FUNCTION f1;
-CREATE FUNCTION f2() RETURNS INT
-BEGIN
-CREATE TEMPORARY TABLE t2(i INT);
-INSERT INTO t2 VALUES(1), (2);
-RETURN 1;
-END|
-CREATE TEMPORARY TABLE t2 AS SELECT f2();
-ERROR 42S01: Table 't2' already exists
-SELECT * FROM t2;
-i
-1
-2
-DROP TABLE t2;
-DROP FUNCTION f2;
-CREATE TEMPORARY TABLE t3 AS SELECT 1 AS a;
-CREATE PROCEDURE p1()
-BEGIN
-DROP TEMPORARY TABLE t3;
-end|
-CREATE FUNCTION f3() RETURNS INT
-BEGIN
-CALL p1();
-RETURN 1;
-END|
-PREPARE STMT FROM "SELECT f3() AS my_Column, a FROM t3";
-EXECUTE STMT;
-ERROR HY000: Can't reopen table: 't3'
-DROP TABLE t3;
-DROP FUNCTION f3;
-DROP PROCEDURE p1;
-CREATE TEMPORARY TABLE t4 (i INT);
-INSERT INTO t4 VALUES(1), (2);
-CREATE FUNCTION f4() RETURNS INT
-BEGIN
-DROP TEMPORARY TABLE t4;
-RETURN 1;
-END|
-SELECT f4() FROM t4;
-ERROR HY000: Can't reopen table: 't4'
-SELECT * FROM t4;
-i
-1
-2
-DROP TABLE t4;
-DROP FUNCTION f4;
-CREATE TEMPORARY TABLE t5 AS SELECT 1 AS a;
-CREATE PROCEDURE p2()
-BEGIN
-DROP TEMPORARY TABLE t5;
-END|
-CREATE FUNCTION f5() RETURNS INT
-BEGIN
-CALL p2();
-RETURN 1;
-END|
-SELECT f5() AS my_column, a FROM t5;
-ERROR HY000: Can't reopen table: 't5'
-DROP TABLE t5;
-DROP FUNCTION f5;
-DROP PROCEDURE p2;
-#
-# CTAS
-#
-CREATE TABLE t1(i INT);
-INSERT INTO t1 VALUES(1), (2);
-CREATE TEMPORARY TABLE t1
-SELECT temp_1.i a, temp_2.i b FROM t1 AS temp_1, t1 AS temp_2;
-SELECT * FROM t1;
-a b
-1 1
-2 1
-1 2
-2 2
-DROP TABLE t1;
-SELECT * FROM t1;
-i
-1
-2
-DROP TABLE t1;
-#
-# HANDLER
-#
-CREATE TABLE t1 (a INT, KEY a(a));
-INSERT INTO t1 (a) VALUES (1), (2), (3), (4), (5);
-CREATE TABLE t2 (a INT, KEY a (a)) SELECT * FROM t1;
-CREATE TEMPORARY TABLE t3 (a INT, KEY a (a)) SELECT * FROM t2;
-HANDLER t3 OPEN;
-SELECT * FROM t1;
-a
-1
-2
-3
-4
-5
-LOCK TABLE t1 READ;
-HANDLER t3 OPEN;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-UNLOCK TABLES;
-HANDLER t3 OPEN;
-ERROR 42000: Not unique table/alias: 't3'
-HANDLER t3 READ NEXT;
-a
-1
-HANDLER t3 OPEN AS t3_1;
-HANDLER t3_1 READ NEXT;
-a
-1
-HANDLER t3_1 READ NEXT;
-a
-2
-HANDLER t3 CLOSE;
-HANDLER t3_1 CLOSE;
-DROP TEMPORARY TABLE t3;
-DROP TABLE t1, t2;
-#
-# INSERT-SELECT
-#
-CREATE TEMPORARY TABLE t4 (a INT) ENGINE=MYISAM;
-INSERT INTO t4 VALUES(1), (2);
-INSERT INTO t4 SELECT * FROM t4;
-SELECT COUNT(*) FROM t4;
-COUNT(*)
-4
-DROP TABLE t4;
-CREATE TABLE t5 (a INT) ENGINE=INNODB;
-CREATE TEMPORARY TABLE t6 (a INT) ENGINE=INNODB;
-INSERT INTO t5 VALUES(1), (2);
-INSERT INTO t6 SELECT * FROM t5;
-INSERT INTO t6 SELECT * FROM t6;
-INSERT INTO t5 SELECT * FROM t6;
-SELECT COUNT(*)=6 FROM t5;
-COUNT(*)=6
-1
-SELECT COUNT(*)=4 FROM t6;
-COUNT(*)=4
-1
-DROP TABLE t5, t6;
-#
-# MDEV-10216: Assertion `strcmp(share->unique_file_name,filename) ||
-# share->last_version' failed in myisam/mi_open.c:67: test_if_reopen
-#
-CREATE TEMPORARY TABLE t7 (i INT) ENGINE=MYISAM;
-INSERT INTO t7 VALUES(1);
-ALTER TABLE t7 RENAME TO t;
-SELECT * FROM t a, t b;
-i i
-1 1
-DROP TABLE t;
-CREATE TEMPORARY TABLE t7 (i INT) ENGINE=ARIA;
-INSERT INTO t7 VALUES(1);
-ALTER TABLE t7 RENAME TO t;
-SELECT * FROM t a, t b;
-i i
-1 1
-DROP TABLE t;
-CREATE TEMPORARY TABLE t8 (i INT) ENGINE=ARIA;
-ALTER TABLE t8 rename to t;
-SELECT (SELECT 1 FROM t a1, t a2 ) AS f1, ( SELECT 2 FROM t a3 ) AS f2 FROM DUAL;
-f1 f2
-NULL NULL
-DROP TABLE t;
-# Cleanup
-DROP DATABASE temp_db;
diff --git a/mysql-test/r/repair.result b/mysql-test/r/repair.result
deleted file mode 100644
index 75d7525ee71..00000000000
--- a/mysql-test/r/repair.result
+++ /dev/null
@@ -1,231 +0,0 @@
-drop table if exists t1;
-create table t1 SELECT 1,"table 1";
-repair table t1 use_frm;
-Table Op Msg_type Msg_text
-test.t1 repair warning Number of rows changed from 0 to 1
-test.t1 repair status OK
-alter table t1 ENGINE=HEAP;
-repair table t1 use_frm;
-Table Op Msg_type Msg_text
-test.t1 repair note The storage engine for the table doesn't support repair
-drop table t1;
-create table t1(id int PRIMARY KEY, st varchar(10), KEY st_key(st));
-insert into t1 values(1, "One");
-alter table t1 disable keys;
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 id A 1 NULL NULL BTREE
-t1 1 st_key 1 st A NULL NULL NULL YES BTREE disabled
-repair table t1 extended;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 id A 1 NULL NULL BTREE
-t1 1 st_key 1 st A NULL NULL NULL YES BTREE disabled
-drop table t1;
-repair table t1 use_frm;
-Table Op Msg_type Msg_text
-test.t1 repair Error Table 'test.t1' doesn't exist
-test.t1 repair status Operation failed
-create table t1 engine=myisam SELECT 1,"table 1";
-flush tables;
-repair table t1;
-Table Op Msg_type Msg_text
-test.t1 repair Error Incorrect file format 't1'
-test.t1 repair error Corrupt
-repair table t1 use_frm;
-Table Op Msg_type Msg_text
-test.t1 repair warning Number of rows changed from 0 to 1
-test.t1 repair status OK
-drop table t1;
-CREATE TABLE t1(a INT, KEY(a));
-INSERT INTO t1 VALUES(1),(2),(3),(4),(5);
-SET myisam_repair_threads=2;
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-SHOW INDEX FROM t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A 5 NULL NULL YES BTREE
-SET myisam_repair_threads=@@global.myisam_repair_threads;
-DROP TABLE t1;
-CREATE TABLE t1(a INT);
-USE mysql;
-REPAIR TABLE test.t1 USE_FRM;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-USE test;
-DROP TABLE t1;
-CREATE TABLE t1(a CHAR(255), KEY(a));
-SET myisam_sort_buffer_size=4096;
-INSERT INTO t1 VALUES
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0');
-Warnings:
-Error 1034 myisam_sort_buffer_size is too small. X
-Error 1034 Number of rows changed from 0 to 157
-SET myisam_repair_threads=2;
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair error myisam_sort_buffer_size is too small. X
-test.t1 repair warning Number of rows changed from 0 to 157
-test.t1 repair status OK
-SET myisam_repair_threads=@@global.myisam_repair_threads;
-SET myisam_sort_buffer_size=@@global.myisam_sort_buffer_size;
-DROP TABLE t1;
-CREATE TABLE t1(a CHAR(255), KEY(a));
-SET myisam_sort_buffer_size=4496;
-INSERT INTO t1 VALUES
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
-('0'),('0'),('0'),('0'),('0'),('0'),('0');
-SET myisam_repair_threads=2;
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-SET myisam_repair_threads=@@global.myisam_repair_threads;
-SET myisam_sort_buffer_size=@@global.myisam_sort_buffer_size;
-DROP TABLE t1;
-# End of 4.1 tests
-# Test with a saved table from 4.1
-SHOW TABLE STATUS LIKE 't1';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 9 Fixed 2 5 10 21474836479 1024 0 NULL # # NULL latin1_swedish_ci NULL 17179868160 N
-SELECT * FROM t1;
-id
-1
-2
-# Run CHECK TABLE, it should indicate table need a REPAIR TABLE
-CHECK TABLE t1 FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.t1 check error Upgrade required. Please do "REPAIR TABLE `t1`" or dump/reload to fix it!
-# REPAIR old table USE_FRM should fail
-REPAIR TABLE t1 USE_FRM;
-Table Op Msg_type Msg_text
-test.t1 repair warning Number of rows changed from 0 to 1
-test.t1 repair status OK
-# Run REPAIR TABLE to upgrade .frm file
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-SHOW TABLE STATUS LIKE 't1';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 1 7 7 1970324836974591 1024 0 NULL # # NULL latin1_swedish_ci NULL 17179868160 N
-SELECT * FROM t1;
-id
-1
-REPAIR TABLE t1 USE_FRM;
-Table Op Msg_type Msg_text
-test.t1 repair warning Number of rows changed from 0 to 1
-test.t1 repair status OK
-SELECT * FROM t1;
-id
-1
-DROP TABLE t1;
-# End of 5.0 tests
-DROP TABLE IF EXISTS tt1;
-CREATE TEMPORARY TABLE tt1 (c1 INT);
-REPAIR TABLE tt1 USE_FRM;
-Table Op Msg_type Msg_text
-tt1 repair error Cannot repair temporary table from .frm file
-DROP TABLE tt1;
-#
-# Bug #48248 assert in MDL_ticket::upgrade_shared_lock_to_exclusive
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT);
-LOCK TABLES t1 READ;
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair Error Table 't1' was locked with a READ lock and can't be updated
-test.t1 repair status Operation failed
-UNLOCK TABLES;
-DROP TABLE t1;
-#
-# Test for bug #50784 "MDL: Assertion `m_tickets.is_empty() ||
-# m_tickets.front() == m_trans_sentinel'"
-#
-drop tables if exists t1, t2;
-create table t1 (i int);
-create table t2 (j int);
-set @@autocommit= 0;
-repair table t1, t2;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-test.t2 repair status OK
-set @@autocommit= default;
-drop tables t1, t2;
-#
-# Check that we have decent error messages when using crashed
-# .frm file from MySQL 3.23
-#
-# Test with a saved table from 3.23
-select count(*) from t1;
-ERROR HY000: Got error 190 "Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump an" from storage engine MyISAM
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check Error Got error 190 "Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump an" from storage engine MyISAM
-test.t1 check error Corrupt
-repair table t1;
-Table Op Msg_type Msg_text
-test.t1 repair Error Got error 190 "Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump an" from storage engine MyISAM
-test.t1 repair error Corrupt
-repair table t1 use_frm;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-select count(*) from t1;
-count(*)
-0
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-create table t1 (a blob);
-create view v1 as select * from t1;
-repair view v1;
-Table Op Msg_type Msg_text
-test.v1 repair status OK
-drop view v1;
-drop table t1;
-# End of 5.5 tests
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT t1 VALUES (1);
-LOCK TABLE t1 WRITE;
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-SELECT * FROM INFORMATION_SCHEMA.TABLES;
-SELECT * FROM t1;
-i
-1
-UNLOCK TABLES;
-DROP TABLE t1;
-# End of 10.0 tests
diff --git a/mysql-test/r/repair_symlink-5543.result b/mysql-test/r/repair_symlink-5543.result
deleted file mode 100644
index c77e7162a51..00000000000
--- a/mysql-test/r/repair_symlink-5543.result
+++ /dev/null
@@ -1,18 +0,0 @@
-create table t1 (a int) engine=myisam data directory='MYSQL_TMP_DIR';
-insert t1 values (1);
-# Some systems fail with errcode 40, when doing openat, while others
-# don't have openat and fail with errcode 20.
-repair table t1;
-Table Op Msg_type Msg_text
-test.t1 repair error 20 for record at pos 0
-test.t1 repair Error File 'MYSQL_TMP_DIR/t1.MYD' not found (Errcode: 20 "<errmsg>")
-test.t1 repair status Operation failed
-drop table t1;
-create table t2 (a int) engine=aria data directory='MYSQL_TMP_DIR';
-insert t2 values (1);
-repair table t2;
-Table Op Msg_type Msg_text
-test.t2 repair error 20 for record at pos 256
-test.t2 repair Error File 'MYSQL_TMP_DIR/t2.MAD' not found (Errcode: 20 "<errmsg>")
-test.t2 repair status Operation failed
-drop table t2;
diff --git a/mysql-test/r/replace.result b/mysql-test/r/replace.result
deleted file mode 100644
index 9590a97e10a..00000000000
--- a/mysql-test/r/replace.result
+++ /dev/null
@@ -1,32 +0,0 @@
-drop table if exists t1;
-CREATE TABLE t1 (
-gesuchnr int(11) DEFAULT '0' NOT NULL,
-benutzer_id int(11) DEFAULT '0' NOT NULL,
-PRIMARY KEY (gesuchnr,benutzer_id)
-);
-replace into t1 (gesuchnr,benutzer_id) values (2,1);
-replace into t1 (gesuchnr,benutzer_id) values (1,1);
-replace into t1 (gesuchnr,benutzer_id) values (1,1);
-alter table t1 engine=heap;
-replace into t1 (gesuchnr,benutzer_id) values (1,1);
-drop table t1;
-create table t1 (a tinyint not null auto_increment primary key, b char(20) default "default_value");
-insert into t1 values (126,"first"),(63, "middle"),(0,"last");
-insert into t1 values (0,"error");
-ERROR 22003: Out of range value for column 'a' at row 1
-replace into t1 values (0,"error");
-ERROR 22003: Out of range value for column 'a' at row 1
-replace into t1 values (126,"first updated");
-replace into t1 values (63,default);
-select * from t1;
-a b
-126 first updated
-63 default_value
-127 last
-drop table t1;
-CREATE TABLE t1 (f1 INT);
-CREATE VIEW v1 AS SELECT f1 FROM t1 WHERE f1 = 0 WITH CHECK OPTION;
-REPLACE INTO v1 (f1) VALUES (1);
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-DROP TABLE t1;
-DROP VIEW v1;
diff --git a/mysql-test/r/rollback.result b/mysql-test/r/rollback.result
deleted file mode 100644
index e562b73c981..00000000000
--- a/mysql-test/r/rollback.result
+++ /dev/null
@@ -1,29 +0,0 @@
-drop table if exists t1;
-create table t1 (n int not null primary key) engine=myisam;
-begin work;
-insert into t1 values (4);
-insert into t1 values (5);
-rollback;
-Warnings:
-Warning 1196 Some non-transactional changed tables couldn't be rolled back
-select @@warning_count;
-@@warning_count
-1
-select @@error_count;
-@@error_count
-0
-show warnings;
-Level Code Message
-Warning 1196 Some non-transactional changed tables couldn't be rolled back
-show errors;
-Level Code Message
-select * from t1;
-n
-4
-5
-select @@warning_count;
-@@warning_count
-0
-show warnings;
-Level Code Message
-drop table t1;
diff --git a/mysql-test/r/round.result b/mysql-test/r/round.result
deleted file mode 100644
index a3e9f18843d..00000000000
--- a/mysql-test/r/round.result
+++ /dev/null
@@ -1,272 +0,0 @@
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (sint8 tinyint not null);
-INSERT INTO t1 VALUES ('0.1');
-INSERT INTO t1 VALUES ('0.5');
-INSERT INTO t1 VALUES ('127.4');
-INSERT IGNORE INTO t1 VALUES ('127.5');
-Warnings:
-Warning 1264 Out of range value for column 'sint8' at row 1
-INSERT INTO t1 VALUES ('-0.1');
-INSERT INTO t1 VALUES ('-0.5');
-INSERT INTO t1 VALUES ('-127.4');
-INSERT INTO t1 VALUES ('-127.5');
-INSERT INTO t1 VALUES ('-128.4');
-INSERT IGNORE INTO t1 VALUES ('-128.5');
-Warnings:
-Warning 1264 Out of range value for column 'sint8' at row 1
-SELECT * FROM t1;
-sint8
-0
-1
-127
-127
-0
--1
--127
--128
--128
--128
-DROP TABLE t1;
-CREATE TABLE t1 (uint8 tinyint unsigned not null);
-INSERT INTO t1 VALUES ('0.1');
-INSERT INTO t1 VALUES ('0.5');
-INSERT INTO t1 VALUES ('127.4');
-INSERT INTO t1 VALUES ('127.5');
-INSERT INTO t1 VALUES ('-0.1');
-INSERT IGNORE INTO t1 VALUES ('-0.5');
-Warnings:
-Warning 1264 Out of range value for column 'uint8' at row 1
-INSERT INTO t1 VALUES ('255.4');
-INSERT IGNORE INTO t1 VALUES ('255.5');
-Warnings:
-Warning 1264 Out of range value for column 'uint8' at row 1
-SELECT * FROM t1;
-uint8
-0
-1
-127
-128
-0
-0
-255
-255
-DROP TABLE t1;
-CREATE TABLE t1 (sint16 smallint not null);
-INSERT INTO t1 VALUES ('0.1');
-INSERT INTO t1 VALUES ('0.5');
-INSERT INTO t1 VALUES ('32767.4');
-INSERT IGNORE INTO t1 VALUES ('32767.5');
-Warnings:
-Warning 1264 Out of range value for column 'sint16' at row 1
-INSERT INTO t1 VALUES ('-0.1');
-INSERT INTO t1 VALUES ('-0.5');
-INSERT INTO t1 VALUES ('-32767.4');
-INSERT INTO t1 VALUES ('-32767.5');
-INSERT INTO t1 VALUES ('-32768.4');
-INSERT IGNORE INTO t1 VALUES ('-32768.5');
-Warnings:
-Warning 1264 Out of range value for column 'sint16' at row 1
-SELECT * FROM t1;
-sint16
-0
-1
-32767
-32767
-0
--1
--32767
--32768
--32768
--32768
-DROP TABLE t1;
-CREATE TABLE t1 (uint16 smallint unsigned not null);
-INSERT INTO t1 VALUES ('0.1');
-INSERT INTO t1 VALUES ('0.5');
-INSERT INTO t1 VALUES ('32767.4');
-INSERT INTO t1 VALUES ('32767.5');
-INSERT INTO t1 VALUES ('-0.1');
-INSERT IGNORE INTO t1 VALUES ('-0.5');
-Warnings:
-Warning 1264 Out of range value for column 'uint16' at row 1
-INSERT INTO t1 VALUES ('65535.4');
-INSERT IGNORE INTO t1 VALUES ('65535.5');
-Warnings:
-Warning 1264 Out of range value for column 'uint16' at row 1
-SELECT * FROM t1;
-uint16
-0
-1
-32767
-32768
-0
-0
-65535
-65535
-DROP TABLE t1;
-CREATE TABLE t1 (sint24 mediumint not null);
-INSERT INTO t1 VALUES ('0.1');
-INSERT INTO t1 VALUES ('0.5');
-INSERT INTO t1 VALUES ('8388607.4');
-INSERT IGNORE INTO t1 VALUES ('8388607.5');
-Warnings:
-Warning 1264 Out of range value for column 'sint24' at row 1
-INSERT INTO t1 VALUES ('-0.1');
-INSERT INTO t1 VALUES ('-0.5');
-INSERT INTO t1 VALUES ('-8388607.4');
-INSERT INTO t1 VALUES ('-8388607.5');
-INSERT INTO t1 VALUES ('-8388608.4');
-INSERT IGNORE INTO t1 VALUES ('-8388608.5');
-Warnings:
-Warning 1264 Out of range value for column 'sint24' at row 1
-SELECT * FROM t1;
-sint24
-0
-1
-8388607
-8388607
-0
--1
--8388607
--8388608
--8388608
--8388608
-DROP TABLE t1;
-CREATE TABLE t1 (uint24 mediumint unsigned not null);
-INSERT INTO t1 VALUES ('0.1');
-INSERT INTO t1 VALUES ('0.5');
-INSERT INTO t1 VALUES ('8388607.4');
-INSERT INTO t1 VALUES ('8388607.5');
-INSERT INTO t1 VALUES ('-0.1');
-INSERT IGNORE INTO t1 VALUES ('-0.5');
-Warnings:
-Warning 1264 Out of range value for column 'uint24' at row 1
-INSERT INTO t1 VALUES ('16777215.4');
-INSERT IGNORE INTO t1 VALUES ('16777215.5');
-Warnings:
-Warning 1264 Out of range value for column 'uint24' at row 1
-SELECT * FROM t1;
-uint24
-0
-1
-8388607
-8388608
-0
-0
-16777215
-16777215
-DROP TABLE t1;
-CREATE TABLE t1 (sint64 bigint not null);
-INSERT INTO t1 VALUES ('0.1');
-INSERT INTO t1 VALUES ('0.5');
-INSERT INTO t1 VALUES ('9223372036854775807.4');
-INSERT IGNORE INTO t1 VALUES ('9223372036854775807.5');
-Warnings:
-Warning 1264 Out of range value for column 'sint64' at row 1
-INSERT INTO t1 VALUES ('-0.1');
-INSERT INTO t1 VALUES ('-0.5');
-INSERT INTO t1 VALUES ('-9223372036854775807.4');
-INSERT INTO t1 VALUES ('-9223372036854775807.5');
-INSERT INTO t1 VALUES ('-9223372036854775808.4');
-INSERT IGNORE INTO t1 VALUES ('-9223372036854775808.5');
-Warnings:
-Warning 1264 Out of range value for column 'sint64' at row 1
-SELECT * FROM t1;
-sint64
-0
-1
-9223372036854775807
-9223372036854775807
-0
--1
--9223372036854775807
--9223372036854775808
--9223372036854775808
--9223372036854775808
-DROP TABLE t1;
-CREATE TABLE t1 (uint64 bigint unsigned not null);
-INSERT INTO t1 VALUES ('0.1');
-INSERT INTO t1 VALUES ('0.5');
-INSERT INTO t1 VALUES ('9223372036854775807.4');
-INSERT INTO t1 VALUES ('9223372036854775807.5');
-INSERT INTO t1 VALUES ('-0.1');
-INSERT IGNORE INTO t1 VALUES ('-0.5');
-Warnings:
-Warning 1264 Out of range value for column 'uint64' at row 1
-INSERT INTO t1 VALUES ('18446744073709551615.4');
-INSERT IGNORE INTO t1 VALUES ('18446744073709551615.5');
-Warnings:
-Warning 1264 Out of range value for column 'uint64' at row 1
-INSERT INTO t1 VALUES ('1844674407370955161.0');
-INSERT INTO t1 VALUES ('1844674407370955161.1');
-INSERT INTO t1 VALUES ('1844674407370955161.2');
-INSERT INTO t1 VALUES ('1844674407370955161.3');
-INSERT INTO t1 VALUES ('1844674407370955161.4');
-INSERT INTO t1 VALUES ('1844674407370955161.5');
-INSERT INTO t1 VALUES ('1844674407370955161.0e1');
-INSERT INTO t1 VALUES ('1844674407370955161.1e1');
-INSERT INTO t1 VALUES ('1844674407370955161.2e1');
-INSERT INTO t1 VALUES ('1844674407370955161.3e1');
-INSERT INTO t1 VALUES ('1844674407370955161.4e1');
-INSERT INTO t1 VALUES ('1844674407370955161.5e1');
-INSERT INTO t1 VALUES ('18446744073709551610e-1');
-INSERT INTO t1 VALUES ('18446744073709551611e-1');
-INSERT INTO t1 VALUES ('18446744073709551612e-1');
-INSERT INTO t1 VALUES ('18446744073709551613e-1');
-INSERT INTO t1 VALUES ('18446744073709551614e-1');
-INSERT INTO t1 VALUES ('18446744073709551615e-1');
-SELECT * FROM t1;
-uint64
-0
-1
-9223372036854775807
-9223372036854775808
-0
-0
-18446744073709551615
-18446744073709551615
-1844674407370955161
-1844674407370955161
-1844674407370955161
-1844674407370955161
-1844674407370955161
-1844674407370955162
-18446744073709551610
-18446744073709551611
-18446744073709551612
-18446744073709551613
-18446744073709551614
-18446744073709551615
-1844674407370955161
-1844674407370955161
-1844674407370955161
-1844674407370955161
-1844674407370955161
-1844674407370955162
-DROP TABLE t1;
-CREATE TABLE t1 (str varchar(128), sint64 bigint not null default 0);
-INSERT INTO t1 (str) VALUES ('1.5');
-INSERT INTO t1 (str) VALUES ('1.00005e4');
-INSERT INTO t1 (str) VALUES ('1.0005e3');
-INSERT INTO t1 (str) VALUES ('1.005e2');
-INSERT INTO t1 (str) VALUES ('1.05e1');
-INSERT INTO t1 (str) VALUES ('1.5e0');
-INSERT INTO t1 (str) VALUES ('100005e-1');
-INSERT INTO t1 (str) VALUES ('100050e-2');
-INSERT INTO t1 (str) VALUES ('100500e-3');
-INSERT INTO t1 (str) VALUES ('105000e-4');
-INSERT INTO t1 (str) VALUES ('150000e-5');
-UPDATE t1 SET sint64=str;
-SELECT * FROM t1;
-str sint64
-1.5 2
-1.00005e4 10001
-1.0005e3 1001
-1.005e2 101
-1.05e1 11
-1.5e0 2
-100005e-1 10001
-100050e-2 1001
-100500e-3 101
-105000e-4 11
-150000e-5 2
-DROP TABLE t1;
diff --git a/mysql-test/r/row-checksum-old.result b/mysql-test/r/row-checksum-old.result
deleted file mode 100644
index 87cd1cc89ed..00000000000
--- a/mysql-test/r/row-checksum-old.result
+++ /dev/null
@@ -1,85 +0,0 @@
-drop table if exists t1;
-create table t1 (a int null, v varchar(100)) engine=myisam checksum=0;
-insert into t1 values(null, null), (1, "hello");
-checksum table t1;
-Table Checksum
-test.t1 452555338
-checksum table t1 quick;
-Table Checksum
-test.t1 NULL
-checksum table t1 extended;
-Table Checksum
-test.t1 452555338
-drop table if exists t1;
-create table t1 (a int null, v varchar(100)) engine=myisam checksum=1;
-insert into t1 values(null, null), (1, "hello");
-checksum table t1;
-Table Checksum
-test.t1 452555338
-checksum table t1 quick;
-Table Checksum
-test.t1 NULL
-checksum table t1 extended;
-Table Checksum
-test.t1 452555338
-drop table if exists t1;
-create table t1 (a int null, v varchar(100)) engine=innodb checksum=0;
-insert into t1 values(null, null), (1, "hello");
-checksum table t1;
-Table Checksum
-test.t1 452555338
-checksum table t1 quick;
-Table Checksum
-test.t1 NULL
-checksum table t1 extended;
-Table Checksum
-test.t1 452555338
-drop table t1;
-create table t1 (a int null, v varchar(100)) engine=maria checksum=0;
-insert into t1 values(null, null), (1, "hello");
-checksum table t1;
-Table Checksum
-test.t1 452555338
-checksum table t1 quick;
-Table Checksum
-test.t1 NULL
-checksum table t1 extended;
-Table Checksum
-test.t1 452555338
-drop table t1;
-create table t1 (a int null, v varchar(100)) engine=maria checksum=1;
-insert into t1 values(null, null), (1, "hello");
-checksum table t1;
-Table Checksum
-test.t1 452555338
-checksum table t1 quick;
-Table Checksum
-test.t1 NULL
-checksum table t1 extended;
-Table Checksum
-test.t1 452555338
-drop table t1;
-create table t1 (a int null, v varchar(100)) engine=myisam checksum=1 row_format=fixed;
-insert into t1 values(null, null), (1, "hello");
-checksum table t1;
-Table Checksum
-test.t1 4108368782
-checksum table t1 quick;
-Table Checksum
-test.t1 NULL
-checksum table t1 extended;
-Table Checksum
-test.t1 4108368782
-drop table if exists t1;
-create table t1 (a int null, v varchar(100)) engine=innodb checksum=0 row_format=compact;
-insert into t1 values(null, null), (1, "hello");
-checksum table t1;
-Table Checksum
-test.t1 452555338
-checksum table t1 quick;
-Table Checksum
-test.t1 NULL
-checksum table t1 extended;
-Table Checksum
-test.t1 452555338
-drop table t1;
diff --git a/mysql-test/r/row-checksum.result b/mysql-test/r/row-checksum.result
deleted file mode 100644
index f2e687f8b6e..00000000000
--- a/mysql-test/r/row-checksum.result
+++ /dev/null
@@ -1,85 +0,0 @@
-drop table if exists t1;
-create table t1 (a int null, v varchar(100)) engine=myisam checksum=0;
-insert into t1 values(null, null), (1, "hello");
-checksum table t1;
-Table Checksum
-test.t1 229851577
-checksum table t1 quick;
-Table Checksum
-test.t1 NULL
-checksum table t1 extended;
-Table Checksum
-test.t1 229851577
-drop table if exists t1;
-create table t1 (a int null, v varchar(100)) engine=myisam checksum=1;
-insert into t1 values(null, null), (1, "hello");
-checksum table t1;
-Table Checksum
-test.t1 229851577
-checksum table t1 quick;
-Table Checksum
-test.t1 229851577
-checksum table t1 extended;
-Table Checksum
-test.t1 229851577
-drop table if exists t1;
-create table t1 (a int null, v varchar(100)) engine=innodb checksum=0;
-insert into t1 values(null, null), (1, "hello");
-checksum table t1;
-Table Checksum
-test.t1 229851577
-checksum table t1 quick;
-Table Checksum
-test.t1 NULL
-checksum table t1 extended;
-Table Checksum
-test.t1 229851577
-drop table t1;
-create table t1 (a int null, v varchar(100)) engine=maria checksum=0;
-insert into t1 values(null, null), (1, "hello");
-checksum table t1;
-Table Checksum
-test.t1 229851577
-checksum table t1 quick;
-Table Checksum
-test.t1 NULL
-checksum table t1 extended;
-Table Checksum
-test.t1 229851577
-drop table t1;
-create table t1 (a int null, v varchar(100)) engine=maria checksum=1;
-insert into t1 values(null, null), (1, "hello");
-checksum table t1;
-Table Checksum
-test.t1 229851577
-checksum table t1 quick;
-Table Checksum
-test.t1 229851577
-checksum table t1 extended;
-Table Checksum
-test.t1 229851577
-drop table t1;
-create table t1 (a int null, v varchar(100)) engine=myisam checksum=1 row_format=fixed;
-insert into t1 values(null, null), (1, "hello");
-checksum table t1;
-Table Checksum
-test.t1 3885665021
-checksum table t1 quick;
-Table Checksum
-test.t1 3885665021
-checksum table t1 extended;
-Table Checksum
-test.t1 3885665021
-drop table if exists t1;
-create table t1 (a int null, v varchar(100)) engine=innodb checksum=0 row_format=compact;
-insert into t1 values(null, null), (1, "hello");
-checksum table t1;
-Table Checksum
-test.t1 229851577
-checksum table t1 quick;
-Table Checksum
-test.t1 NULL
-checksum table t1 extended;
-Table Checksum
-test.t1 229851577
-drop table t1;
diff --git a/mysql-test/r/row.result b/mysql-test/r/row.result
deleted file mode 100644
index 7483f37970f..00000000000
--- a/mysql-test/r/row.result
+++ /dev/null
@@ -1,525 +0,0 @@
-drop table if exists t1;
-select (1,2,3) IN ((3,2,3), (1,2,3), (1,3,3));
-(1,2,3) IN ((3,2,3), (1,2,3), (1,3,3))
-1
-select row(10,2,3) IN (row(3,2,3), row(1,2,3), row(1,3,3));
-row(10,2,3) IN (row(3,2,3), row(1,2,3), row(1,3,3))
-0
-select row(1,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3));
-row(1,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3))
-1
-select row(10,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3));
-row(10,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3))
-0
-select row('a',1.5,3) IN (row(1,2,3), row('a',1.5,3), row('a','a','a'));
-row('a',1.5,3) IN (row(1,2,3), row('a',1.5,3), row('a','a','a'))
-1
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: 'a'
-Warning 1292 Truncated incorrect INTEGER value: 'a'
-select row('a',0,3) IN (row(3,2,3), row('a','a','3'), row(1,3,3));
-row('a',0,3) IN (row(3,2,3), row('a','a','3'), row(1,3,3))
-1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'a'
-select row('a',0,3) IN (row(3,2,3), row('a','0','3'), row(1,3,3));
-row('a',0,3) IN (row(3,2,3), row('a','0','3'), row(1,3,3))
-1
-select row('a',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3));
-row('a',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3))
-1
-select row('b',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3));
-row('b',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3))
-0
-select row('b',1.5,3) IN (row('b',NULL,3), row('a',1.5,3), row(1,3,3));
-row('b',1.5,3) IN (row('b',NULL,3), row('a',1.5,3), row(1,3,3))
-NULL
-select row('b',1.5,3) IN (row('b',NULL,4), row('a',1.5,3), row(1,3,3));
-row('b',1.5,3) IN (row('b',NULL,4), row('a',1.5,3), row(1,3,3))
-0
-select (1,2,(3,4)) IN ((3,2,(3,4)), (1,2,(3,4)));
-(1,2,(3,4)) IN ((3,2,(3,4)), (1,2,(3,4)))
-1
-select row(1,2,row(3,4)) IN (row(3,2,row(3,4)), row(1,2,4));
-ERROR 21000: Operand should contain 2 column(s)
-select row(1,2,row(3,4)) IN (row(3,2,row(3,4)), row(1,2,row(3,NULL)));
-row(1,2,row(3,4)) IN (row(3,2,row(3,4)), row(1,2,row(3,NULL)))
-NULL
-explain extended select row(1,2,row(3,4)) IN (row(3,2,row(3,4)), row(1,2,row(3,NULL)));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select (1,2,(3,4)) in ((3,2,(3,4)),(1,2,(3,NULL))) AS `row(1,2,row(3,4)) IN (row(3,2,row(3,4)), row(1,2,row(3,NULL)))`
-select row(1,2,row(3,null)) IN (row(3,2,row(3,4)), row(1,2,row(4,5)));
-row(1,2,row(3,null)) IN (row(3,2,row(3,4)), row(1,2,row(4,5)))
-0
-select row(1,2,row(3,null)) IN (row(3,2,row(3,4)), row(1,2,row(3,5)));
-row(1,2,row(3,null)) IN (row(3,2,row(3,4)), row(1,2,row(3,5)))
-NULL
-SELECT (1,2,3)=(0,NULL,3);
-(1,2,3)=(0,NULL,3)
-0
-SELECT (1,2,3)=(1,NULL,3);
-(1,2,3)=(1,NULL,3)
-NULL
-SELECT (1,2,3)=(1,NULL,0);
-(1,2,3)=(1,NULL,0)
-0
-SELECT ROW(1,2,3)=ROW(1,2,3);
-ROW(1,2,3)=ROW(1,2,3)
-1
-SELECT ROW(2,2,3)=ROW(1+1,2,3);
-ROW(2,2,3)=ROW(1+1,2,3)
-1
-SELECT ROW(1,2,3)=ROW(1+1,2,3);
-ROW(1,2,3)=ROW(1+1,2,3)
-0
-SELECT ROW(1,2,3)<ROW(1+1,2,3);
-ROW(1,2,3)<ROW(1+1,2,3)
-1
-SELECT ROW(1,2,3)>ROW(1+1,2,3);
-ROW(1,2,3)>ROW(1+1,2,3)
-0
-SELECT ROW(1,2,3)<=ROW(1+1,2,3);
-ROW(1,2,3)<=ROW(1+1,2,3)
-1
-SELECT ROW(1,2,3)>=ROW(1+1,2,3);
-ROW(1,2,3)>=ROW(1+1,2,3)
-0
-SELECT ROW(1,2,3)<>ROW(1+1,2,3);
-ROW(1,2,3)<>ROW(1+1,2,3)
-1
-SELECT ROW(NULL,2,3)=ROW(NULL,2,3);
-ROW(NULL,2,3)=ROW(NULL,2,3)
-NULL
-SELECT ROW(NULL,2,3)<=>ROW(NULL,2,3);
-ROW(NULL,2,3)<=>ROW(NULL,2,3)
-1
-SELECT ROW(1,2,ROW(3,4,5))=ROW(1,2,ROW(3,4,5));
-ROW(1,2,ROW(3,4,5))=ROW(1,2,ROW(3,4,5))
-1
-SELECT ROW('test',2,3.33)=ROW('test',2,3.33);
-ROW('test',2,3.33)=ROW('test',2,3.33)
-1
-SELECT ROW('test',2,3.33)=ROW('test',2,3.33,4);
-ERROR 21000: Operand should contain 3 column(s)
-SELECT ROW('test',2,ROW(3,33))=ROW('test',2,ROW(3,33));
-ROW('test',2,ROW(3,33))=ROW('test',2,ROW(3,33))
-1
-SELECT ROW('test',2,ROW(3,33))=ROW('test',2,ROW(3,3));
-ROW('test',2,ROW(3,33))=ROW('test',2,ROW(3,3))
-0
-SELECT ROW('test',2,ROW(3,33))=ROW('test',2,ROW(3,NULL));
-ROW('test',2,ROW(3,33))=ROW('test',2,ROW(3,NULL))
-NULL
-SELECT ROW('test',2,ROW(3,33))=ROW('test',2,4);
-ERROR 21000: Operand should contain 2 column(s)
-create table t1 ( a int, b int, c int);
-insert into t1 values (1,2,3), (2,3,1), (3,2,1), (1,2,NULL);
-select * from t1 where ROW(1,2,3)=ROW(a,b,c);
-a b c
-1 2 3
-select * from t1 where ROW(0,2,3)=ROW(a,b,c);
-a b c
-select * from t1 where ROW(1,2,3)<ROW(a,b,c);
-a b c
-2 3 1
-3 2 1
-select ROW(a,2,3) IN(row(1,b,c), row(2,3,1)) from t1;
-ROW(a,2,3) IN(row(1,b,c), row(2,3,1))
-1
-0
-0
-NULL
-select ROW(c,2,3) IN(row(1,b,a), row(2,3,1)) from t1;
-ROW(c,2,3) IN(row(1,b,a), row(2,3,1))
-0
-0
-1
-0
-select ROW(a,b,c) IN(row(1,2,3), row(3,2,1)) from t1;
-ROW(a,b,c) IN(row(1,2,3), row(3,2,1))
-1
-0
-1
-NULL
-select ROW(1,2,3) IN(row(a,b,c), row(1,2,3)) from t1;
-ROW(1,2,3) IN(row(a,b,c), row(1,2,3))
-1
-1
-1
-1
-drop table t1;
-select ROW(1,1);
-ERROR 21000: Operand should contain 1 column(s)
-create table t1 (i int);
-select 1 from t1 where ROW(1,1);
-ERROR 21000: Operand should contain 1 column(s)
-select count(*) from t1 order by ROW(1,1);
-ERROR 21000: Operand should contain 1 column(s)
-select count(*) from t1 having (1,1) order by i;
-ERROR 21000: Operand should contain 1 column(s)
-drop table t1;
-create table t1 (a int, b int);
-insert into t1 values (1, 4);
-insert into t1 values (10, 40);
-insert into t1 values (1, 4);
-insert into t1 values (10, 43);
-insert into t1 values (1, 4);
-insert into t1 values (10, 41);
-insert into t1 values (1, 4);
-insert into t1 values (10, 43);
-insert into t1 values (1, 4);
-select a, MAX(b), (1, MAX(b)) = (1, 4) from t1 group by a;
-a MAX(b) (1, MAX(b)) = (1, 4)
-1 4 1
-10 43 0
-drop table t1;
-SELECT ROW(2,10) <=> ROW(3,4);
-ROW(2,10) <=> ROW(3,4)
-0
-SELECT ROW(NULL,10) <=> ROW(3,NULL);
-ROW(NULL,10) <=> ROW(3,NULL)
-0
-SELECT ROW(1,ROW(2,3)) IN (ROW(1,ROW(2,3)),ROW(1,1));
-ERROR 21000: Operand should contain 2 column(s)
-SELECT ROW(1,ROW(2,3)) IN (ROW(1,ROW(2,3)),ROW(1,1),ROW(1,ROW(2,3)));
-ERROR 21000: Operand should contain 2 column(s)
-SELECT ROW(1,ROW(2,3)) IN (ROW(1,ROW(2,3)),ROW(1,ROW(2,2,2)));
-ERROR 21000: Operand should contain 2 column(s)
-SELECT ROW(1,ROW(2,3,4)) IN (ROW(1,ROW(2,3,4)),ROW(1,ROW(2,2)));
-ERROR 21000: Operand should contain 3 column(s)
-SELECT ROW(1,ROW(2,3)) IN (ROW(1,ROW(2,3)),(SELECT 1,1));
-ERROR 21000: Operand should contain 2 column(s)
-SELECT ROW(1,ROW(2,3)) IN (ROW(1,ROW(2,3)),(SELECT 1,1),ROW(1,ROW(2,4)));
-ERROR 21000: Operand should contain 2 column(s)
-SELECT ROW(1,ROW(2,3)) IN ((SELECT 1,1),ROW(1,ROW(2,3)));
-ERROR 21000: Operand should contain 2 column(s)
-SELECT ROW(2,1) IN (ROW(21,2),ROW(ROW(1,1,3),0));
-ERROR 21000: Operand should contain 1 column(s)
-SELECT ROW(2,1) IN (ROW(ROW(1,1,3),0),ROW(21,2));
-ERROR 21000: Operand should contain 1 column(s)
-CREATE TABLE t1(a int, b int, c int);
-INSERT INTO t1 VALUES (1, 2, 3),
-(NULL, 2, 3 ), (1, NULL, 3 ), (1, 2, NULL),
-(NULL, 2, 3+1), (1, NULL, 3+1), (1, 2+1, NULL),
-(NULL, 2, 3-1), (1, NULL, 3-1), (1, 2-1, NULL);
-SELECT (1,2,3) = (1, NULL, 3);
-(1,2,3) = (1, NULL, 3)
-NULL
-SELECT (1,2,3) = (1+1, NULL, 3);
-(1,2,3) = (1+1, NULL, 3)
-0
-SELECT (1,2,3) = (1, NULL, 3+1);
-(1,2,3) = (1, NULL, 3+1)
-0
-SELECT * FROM t1 WHERE (a,b,c) = (1,2,3);
-a b c
-1 2 3
-SELECT (1,2,3) <> (1, NULL, 3);
-(1,2,3) <> (1, NULL, 3)
-NULL
-SELECT (1,2,3) <> (1+1, NULL, 3);
-(1,2,3) <> (1+1, NULL, 3)
-1
-SELECT (1,2,3) <> (1, NULL, 3+1);
-(1,2,3) <> (1, NULL, 3+1)
-1
-SELECT * FROM t1 WHERE (a,b,c) <> (1,2,3);
-a b c
-NULL 2 4
-1 NULL 4
-1 3 NULL
-NULL 2 2
-1 NULL 2
-1 1 NULL
-SELECT (1,2,3) < (NULL, 2, 3);
-(1,2,3) < (NULL, 2, 3)
-NULL
-SELECT (1,2,3) < (1, NULL, 3);
-(1,2,3) < (1, NULL, 3)
-NULL
-SELECT (1,2,3) < (1-1, NULL, 3);
-(1,2,3) < (1-1, NULL, 3)
-0
-SELECT (1,2,3) < (1+1, NULL, 3);
-(1,2,3) < (1+1, NULL, 3)
-1
-SELECT * FROM t1 WHERE (a,b,c) < (1,2,3);
-a b c
-1 1 NULL
-SELECT (1,2,3) <= (NULL, 2, 3);
-(1,2,3) <= (NULL, 2, 3)
-NULL
-SELECT (1,2,3) <= (1, NULL, 3);
-(1,2,3) <= (1, NULL, 3)
-NULL
-SELECT (1,2,3) <= (1-1, NULL, 3);
-(1,2,3) <= (1-1, NULL, 3)
-0
-SELECT (1,2,3) <= (1+1, NULL, 3);
-(1,2,3) <= (1+1, NULL, 3)
-1
-SELECT * FROM t1 WHERE (a,b,c) <= (1,2,3);
-a b c
-1 2 3
-1 1 NULL
-SELECT (1,2,3) > (NULL, 2, 3);
-(1,2,3) > (NULL, 2, 3)
-NULL
-SELECT (1,2,3) > (1, NULL, 3);
-(1,2,3) > (1, NULL, 3)
-NULL
-SELECT (1,2,3) > (1-1, NULL, 3);
-(1,2,3) > (1-1, NULL, 3)
-1
-SELECT (1,2,3) > (1+1, NULL, 3);
-(1,2,3) > (1+1, NULL, 3)
-0
-SELECT * FROM t1 WHERE (a,b,c) > (1,2,3);
-a b c
-1 3 NULL
-SELECT (1,2,3) >= (NULL, 2, 3);
-(1,2,3) >= (NULL, 2, 3)
-NULL
-SELECT (1,2,3) >= (1, NULL, 3);
-(1,2,3) >= (1, NULL, 3)
-NULL
-SELECT (1,2,3) >= (1-1, NULL, 3);
-(1,2,3) >= (1-1, NULL, 3)
-1
-SELECT (1,2,3) >= (1+1, NULL, 3);
-(1,2,3) >= (1+1, NULL, 3)
-0
-SELECT * FROM t1 WHERE (a,b,c) >= (1,2,3);
-a b c
-1 2 3
-1 3 NULL
-DROP TABLE t1;
-SELECT ROW(1,1,1) = ROW(1,1,1) as `1`, ROW(1,1,1) = ROW(1,2,1) as `0`, ROW(1,NULL,1) = ROW(2,2,1) as `0`, ROW(1,NULL,1) = ROW(1,2,2) as `0`, ROW(1,NULL,1) = ROW(1,2,1) as `null` ;
-1 0 0 0 null
-1 0 0 0 NULL
-select row(NULL,1)=(2,0);
-row(NULL,1)=(2,0)
-0
-CREATE TABLE t1 (a int, b int, PRIMARY KEY (a,b));
-INSERT INTO t1 VALUES (1,1), (2,1), (3,1), (1,2), (3,2), (3,3);
-EXPLAIN SELECT * FROM t1 WHERE a=3 AND b=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 8 const,const 1 Using index
-EXPLAIN SELECT * FROM t1 WHERE (a,b)=(3,2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 8 const,const 1 Using index
-SELECT * FROM t1 WHERE a=3 and b=2;
-a b
-3 2
-SELECT * FROM t1 WHERE (a,b)=(3,2);
-a b
-3 2
-CREATE TABLE t2 (a int, b int, c int, PRIMARY KEY (a,b,c));
-INSERT INTO t2 VALUES
-(1,1,2), (3,1,3), (1,2,2), (4,4,2),
-(1,1,1), (3,1,1), (1,2,1);
-EXPLAIN SELECT * FROM t1,t2 WHERE t1.a=t2.a AND t1.b=t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 8 NULL 6 Using index
-1 SIMPLE t2 ref PRIMARY PRIMARY 8 test.t1.a,test.t1.b 1 Using index
-EXPLAIN SELECT * FROM t1,t2 WHERE (t1.a,t1.b)=(t2.a,t2.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 8 NULL 6 Using index
-1 SIMPLE t2 ref PRIMARY PRIMARY 8 test.t1.a,test.t1.b 1 Using index
-SELECT * FROM t1,t2 WHERE t1.a=t2.a and t1.b=t2.b;
-a b a b c
-1 1 1 1 1
-1 1 1 1 2
-1 2 1 2 1
-1 2 1 2 2
-3 1 3 1 1
-3 1 3 1 3
-SELECT * FROM t1,t2 WHERE (t1.a,t1.b)=(t2.a,t2.b);
-a b a b c
-1 1 1 1 1
-1 1 1 1 2
-1 2 1 2 1
-1 2 1 2 2
-3 1 3 1 1
-3 1 3 1 3
-EXPLAIN SELECT * FROM t1,t2 WHERE t1.a=t2.a AND t1.b=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 8 NULL 6 Using where; Using index
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 test.t1.a 1 Using index
-EXPLAIN SELECT * FROM t1,t2 WHERE (t1.a,t1.b)=(t2.a,2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 8 NULL 6 Using where; Using index
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 test.t1.a 1 Using index
-SELECT * FROM t1,t2 WHERE t1.a=1 and t1.b=t2.b;
-a b a b c
-1 1 1 1 1
-1 1 1 1 2
-1 1 3 1 1
-1 1 3 1 3
-1 2 1 2 1
-1 2 1 2 2
-SELECT * FROM t1,t2 WHERE (t1.a,t1.b)=(t2.a,2);
-a b a b c
-1 2 1 1 1
-1 2 1 1 2
-1 2 1 2 1
-1 2 1 2 2
-3 2 3 1 1
-3 2 3 1 3
-EXPLAIN EXTENDED SELECT * FROM t1,t2 WHERE (t1.a,t1.b)=(t2.a,t2.b+1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 8 NULL 6 100.00 Using index
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 test.t1.a 1 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`a` = `test`.`t1`.`a` and `test`.`t1`.`b` = `test`.`t2`.`b` + 1
-SELECT * FROM t1,t2 WHERE (t1.a,t1.b)=(t2.a,t2.b+1);
-a b a b c
-1 2 1 1 1
-1 2 1 1 2
-3 2 3 1 1
-3 2 3 1 3
-EXPLAIN EXTENDED SELECT * FROM t1,t2 WHERE (t1.a-1,t1.b)=(t2.a-1,t2.b+1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index NULL PRIMARY 8 NULL 6 100.00 Using index
-1 SIMPLE t2 index NULL PRIMARY 12 NULL 7 100.00 Using where; Using index; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` - 1 = `test`.`t2`.`a` - 1 and `test`.`t1`.`b` = `test`.`t2`.`b` + 1
-SELECT * FROM t1,t2 WHERE (t1.a-1,t1.b)=(t2.a-1,t2.b+1);
-a b a b c
-1 2 1 1 1
-1 2 1 1 2
-3 2 3 1 1
-3 2 3 1 3
-EXPLAIN SELECT * FROM t2 WHERE a=3 AND b=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref PRIMARY PRIMARY 8 const,const 1 Using index
-EXPLAIN SELECT * FROM t2 WHERE (a,b)=(3,2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref PRIMARY PRIMARY 8 const,const 1 Using index
-SELECT * FROM t2 WHERE a=3 and b=2;
-a b c
-SELECT * FROM t2 WHERE (a,b)=(3,2);
-a b c
-EXPLAIN SELECT * FROM t1,t2 WHERE t2.a=t1.a AND t2.b=2 AND t2.c=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 8 NULL 6 Using index
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 12 test.t1.a,const,const 1 Using index
-EXPLAIN EXTENDED SELECT * FROM t1,t2 WHERE (t2.a,(t2.b,t2.c))=(t1.a,(2,1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 8 NULL 6 100.00 Using index
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 12 test.t1.a,const,const 1 100.00 Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`a` = `test`.`t1`.`a` and `test`.`t2`.`b` = 2 and `test`.`t2`.`c` = 1
-SELECT * FROM t1,t2 WHERE (t2.a,(t2.b,t2.c))=(t1.a,(2,1));
-a b a b c
-1 1 1 2 1
-1 2 1 2 1
-EXPLAIN EXTENDED SELECT * FROM t1,t2 WHERE t2.a=t1.a AND (t2.b,t2.c)=(2,1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 8 NULL 6 100.00 Using index
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 12 test.t1.a,const,const 1 100.00 Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`a` = `test`.`t1`.`a` and `test`.`t2`.`b` = 2 and `test`.`t2`.`c` = 1
-SELECT * FROM t1,t2 WHERE t2.a=t1.a AND (t2.b,t2.c)=(2,1);
-a b a b c
-1 1 1 2 1
-1 2 1 2 1
-DROP TABLE t1,t2;
-CREATE TABLE t1(
-a int, b int, c int, d int, e int, f int, g int, h int,
-PRIMARY KEY (a,b,c,d,e,f,g)
-);
-INSERT INTO t1 VALUES (1,2,3,4,5,6,7,99);
-SELECT h FROM t1 WHERE (a,b,c,d,e,f,g)=(1,2,3,4,5,6,7);
-h
-99
-SET @x:= (SELECT h FROM t1 WHERE (a,b,c,d,e,f,g)=(1,2,3,4,5,6,7));
-SELECT @x;
-@x
-99
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1,1);
-SELECT ROW(a, 1) IN (SELECT SUM(b), 1) FROM t1 GROUP BY a;
-ROW(a, 1) IN (SELECT SUM(b), 1)
-1
-SELECT ROW(a, 1) IN (SELECT SUM(b), 3) FROM t1 GROUP BY a;
-ROW(a, 1) IN (SELECT SUM(b), 3)
-0
-DROP TABLE t1;
-create table t1 (a varchar(200),
-b int unsigned not null primary key auto_increment)
-default character set 'utf8';
-create table t2 (c varchar(200),
-d int unsigned not null primary key auto_increment)
-default character set 'latin1';
-insert into t1 (a) values('abc');
-insert into t2 (c) values('abc');
-select * from t1,t2 where (a,b) = (c,d);
-a b c d
-abc 1 abc 1
-select host,user from mysql.user where (host,user) = ('localhost','test');
-host user
-drop table t1,t2;
-#
-# Bug#52124 memory leaks like a sieve in datetime, timestamp, time, date fields + warnings
-#
-CREATE TABLE t1 (a DATETIME NOT NULL, b TINYINT);
-INSERT INTO t1 VALUES (0, 0),(0, 0);
-SELECT 1 FROM t1 WHERE ROW(a, b) >=
-ROW('1', (SELECT 1 FROM t1 WHERE a > 1234));
-1
-DROP TABLE t1;
-#
-# Bug #54190: Comparison to row subquery produces incorrect result
-#
-SELECT ROW(1,2) = (SELECT 1,2 FROM DUAL WHERE 1 = 0);
-ROW(1,2) = (SELECT 1,2 FROM DUAL WHERE 1 = 0)
-NULL
-SELECT ROW(1,2) = (SELECT 1,3 FROM DUAL WHERE 1 = 0);
-ROW(1,2) = (SELECT 1,3 FROM DUAL WHERE 1 = 0)
-NULL
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 () VALUES (1), (2), (3);
-SELECT ROW(1,2) = (SELECT 1,2 FROM t1 WHERE 1 = 0);
-ROW(1,2) = (SELECT 1,2 FROM t1 WHERE 1 = 0)
-NULL
-SELECT ROW(1,2) = (SELECT 1,3 FROM t1 WHERE 1 = 0);
-ROW(1,2) = (SELECT 1,3 FROM t1 WHERE 1 = 0)
-NULL
-SELECT i FROM t1 WHERE ROW(1,2) = (SELECT 1,2 FROM DUAL WHERE 1 = 0);
-i
-SELECT i FROM t1 WHERE ROW(1,2) = (SELECT 1,3 FROM DUAL WHERE 1 = 0);
-i
-DROP TABLE t1;
-End of 5.1 tests
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8709 Row equality elements do not get propagated
-#
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (10,10),(20,20);
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=10 AND b=10 AND a>=10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` = 10 and `test`.`t1`.`b` = 10
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (a,b)=(10,10) AND a>=10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` = 10 and `test`.`t1`.`b` = 10
-DROP TABLE t1;
-#
-# MDEV-9369 IN operator with ( num, NULL ) gives inconsistent result
-#
-SELECT (1,null) NOT IN ((2,2),(3,3)), (1,null) NOT IN ((2,2)), (1,null) NOT IN ((3,3));
-(1,null) NOT IN ((2,2),(3,3)) (1,null) NOT IN ((2,2)) (1,null) NOT IN ((3,3))
-1 1 1
-#
-# End of 10.1 tests
-#
diff --git a/mysql-test/r/rowid_order_innodb.result b/mysql-test/r/rowid_order_innodb.result
deleted file mode 100644
index dc339304041..00000000000
--- a/mysql-test/r/rowid_order_innodb.result
+++ /dev/null
@@ -1,187 +0,0 @@
-SET SESSION STORAGE_ENGINE = InnoDB;
-drop table if exists t1, t2, t3,t4;
-create table t1 (
-pk1 int not NULL,
-key1 int(11),
-key2 int(11),
-PRIMARY KEY (pk1),
-KEY key1 (key1),
-KEY key2 (key2)
-);
-insert into t1 values (-5, 1, 1),
-(-100, 1, 1),
-(3, 1, 1),
-(0, 1, 1),
-(10, 1, 1);
-explain select * from t1 force index(key1, key2) where key1 < 3 or key2 < 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge key1,key2 key1,key2 5,5 NULL 5 Using sort_union(key1,key2); Using where
-select * from t1 force index(key1, key2) where key1 < 3 or key2 < 3;
-pk1 key1 key2
--100 1 1
--5 1 1
-0 1 1
-3 1 1
-10 1 1
-drop table t1;
-create table t1 (
-pk1 int unsigned not NULL,
-key1 int(11),
-key2 int(11),
-PRIMARY KEY (pk1),
-KEY key1 (key1),
-KEY key2 (key2)
-);
-insert into t1 values (0, 1, 1),
-(0xFFFFFFFF, 1, 1),
-(0xFFFFFFFE, 1, 1),
-(1, 1, 1),
-(2, 1, 1);
-select * from t1 force index(key1, key2) where key1 < 3 or key2 < 3;
-pk1 key1 key2
-0 1 1
-1 1 1
-2 1 1
-4294967294 1 1
-4294967295 1 1
-drop table t1;
-create table t1 (
-pk1 char(4) not NULL,
-key1 int(11),
-key2 int(11),
-PRIMARY KEY (pk1),
-KEY key1 (key1),
-KEY key2 (key2)
-) collate latin2_general_ci;
-insert into t1 values ('a1', 1, 1),
-('b2', 1, 1),
-('A3', 1, 1),
-('B4', 1, 1);
-select * from t1 force index(key1, key2) where key1 < 3 or key2 < 3;
-pk1 key1 key2
-a1 1 1
-A3 1 1
-b2 1 1
-B4 1 1
-drop table t1;
-create table t1 (
-pk1 int not NULL,
-pk2 char(4) not NULL collate latin1_german1_ci,
-pk3 char(4) not NULL collate latin1_bin,
-key1 int(11),
-key2 int(11),
-PRIMARY KEY (pk1,pk2,pk3),
-KEY key1 (key1),
-KEY key2 (key2)
-);
-insert into t1 values
-(1, 'u', 'u', 1, 1),
-(1, 'u', char(0xEC), 1, 1),
-(1, 'u', 'x', 1, 1);
-insert ignore into t1 select pk1, char(0xEC), pk3, key1, key2 from t1;
-insert ignore into t1 select pk1, 'x', pk3, key1, key2 from t1 where pk2='u';
-insert ignore into t1 select 2, pk2, pk3, key1, key2 from t1;
-select * from t1;
-pk1 pk2 pk3 key1 key2
-1 ì u 1 1
-1 ì x 1 1
-1 ì ì 1 1
-1 u u 1 1
-1 u x 1 1
-1 u ì 1 1
-1 x u 1 1
-1 x x 1 1
-1 x ì 1 1
-2 ì u 1 1
-2 ì x 1 1
-2 ì ì 1 1
-2 u u 1 1
-2 u x 1 1
-2 u ì 1 1
-2 x u 1 1
-2 x x 1 1
-2 x ì 1 1
-select * from t1 force index(key1, key2) where key1 < 3 or key2 < 3;
-pk1 pk2 pk3 key1 key2
-1 ì u 1 1
-1 ì x 1 1
-1 ì ì 1 1
-1 u u 1 1
-1 u x 1 1
-1 u ì 1 1
-1 x u 1 1
-1 x x 1 1
-1 x ì 1 1
-2 ì u 1 1
-2 ì x 1 1
-2 ì ì 1 1
-2 u u 1 1
-2 u x 1 1
-2 u ì 1 1
-2 x u 1 1
-2 x x 1 1
-2 x ì 1 1
-alter table t1 drop primary key;
-select * from t1;
-pk1 pk2 pk3 key1 key2
-1 ì u 1 1
-1 ì x 1 1
-1 ì ì 1 1
-1 u u 1 1
-1 u x 1 1
-1 u ì 1 1
-1 x u 1 1
-1 x x 1 1
-1 x ì 1 1
-2 ì u 1 1
-2 ì x 1 1
-2 ì ì 1 1
-2 u u 1 1
-2 u x 1 1
-2 u ì 1 1
-2 x u 1 1
-2 x x 1 1
-2 x ì 1 1
-select * from t1 force index(key1, key2) where key1 < 3 or key2 < 3;
-pk1 pk2 pk3 key1 key2
-1 ì u 1 1
-1 ì x 1 1
-1 ì ì 1 1
-1 u u 1 1
-1 u x 1 1
-1 u ì 1 1
-1 x u 1 1
-1 x x 1 1
-1 x ì 1 1
-2 ì u 1 1
-2 ì x 1 1
-2 ì ì 1 1
-2 u u 1 1
-2 u x 1 1
-2 u ì 1 1
-2 x u 1 1
-2 x x 1 1
-2 x ì 1 1
-drop table t1;
-create table t1 (
-pk1 varchar(8) NOT NULL default '',
-pk2 varchar(4) NOT NULL default '',
-key1 int(11),
-key2 int(11),
-primary key(pk1, pk2),
-KEY key1 (key1),
-KEY key2 (key2)
-);
-insert into t1 values ('','empt',2,2),
-('a','a--a',2,2),
-('bb','b--b',2,2),
-('ccc','c--c',2,2),
-('dddd','d--d',2,2);
-select * from t1 force index(key1, key2) where key1 < 3 or key2 < 3;
-pk1 pk2 key1 key2
- empt 2 2
-a a--a 2 2
-bb b--b 2 2
-ccc c--c 2 2
-dddd d--d 2 2
-drop table t1;
diff --git a/mysql-test/r/rpl_mysqldump_slave.result b/mysql-test/r/rpl_mysqldump_slave.result
deleted file mode 100644
index 903b671178f..00000000000
--- a/mysql-test/r/rpl_mysqldump_slave.result
+++ /dev/null
@@ -1,68 +0,0 @@
-include/master-slave.inc
-[connection master]
-#
-# New --dump-slave, --apply-slave-statements functionality
-#
-connection slave;
-connection master;
-use test;
-connection slave;
--- SET GLOBAL gtid_slave_pos='';
-CHANGE MASTER '' TO MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=BINLOG_START;
-STOP ALL SLAVES;
--- SET GLOBAL gtid_slave_pos='';
-CHANGE MASTER '' TO MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=BINLOG_START;
-START ALL SLAVES;
-STOP ALL SLAVES;
--- SET GLOBAL gtid_slave_pos='';
-CHANGE MASTER '' TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_MYPORT, MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=BINLOG_START;
-START ALL SLAVES;
-start slave;
-Warnings:
-Note 1254 Slave is already running
--- SET GLOBAL gtid_slave_pos='';
-CHANGE MASTER '' TO MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=BINLOG_START;
-start slave;
-Warnings:
-Note 1254 Slave is already running
-*** Test mysqldump --dump-slave GTID functionality.
-connection master;
-SET gtid_seq_no = 1000;
-CREATE TABLE t1 (a INT PRIMARY KEY);
-DROP TABLE t1;
-connection slave;
-connection slave;
-CREATE TABLE t2 (a INT PRIMARY KEY);
-DROP TABLE t2;
-
-1. --dump-slave=1
-
-SET GLOBAL gtid_slave_pos='0-1-1001';
-CHANGE MASTER '' TO MASTER_USE_GTID=slave_pos;
--- CHANGE MASTER '' TO MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=BINLOG_START;
-
-2. --dump-slave=2
-
--- SET GLOBAL gtid_slave_pos='0-1-1001';
--- CHANGE MASTER '' TO MASTER_USE_GTID=slave_pos;
--- CHANGE MASTER '' TO MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=BINLOG_START;
-*** Test mysqldump --master-data GTID functionality.
-
-1. --master-data=1
-
--- CHANGE MASTER TO MASTER_LOG_FILE='slave-bin.000001', MASTER_LOG_POS=BINLOG_START;
-CHANGE MASTER TO MASTER_USE_GTID=slave_pos;
-SET GLOBAL gtid_slave_pos='0-2-1003';
-
-2. --master-data=2
-
--- CHANGE MASTER TO MASTER_LOG_FILE='slave-bin.000001', MASTER_LOG_POS=BINLOG_START;
--- CHANGE MASTER TO MASTER_USE_GTID=slave_pos;
--- SET GLOBAL gtid_slave_pos='0-2-1003';
-
-3. --master-data --single-transaction
-
--- CHANGE MASTER TO MASTER_LOG_FILE='slave-bin.000001', MASTER_LOG_POS=BINLOG_START;
-CHANGE MASTER TO MASTER_USE_GTID=slave_pos;
-SET GLOBAL gtid_slave_pos='0-2-1003';
-include/rpl_end.inc
diff --git a/mysql-test/r/schema.result b/mysql-test/r/schema.result
deleted file mode 100644
index 6d8271a49f3..00000000000
--- a/mysql-test/r/schema.result
+++ /dev/null
@@ -1,105 +0,0 @@
-drop database if exists mysqltest1;
-create schema foo;
-show create schema foo;
-Database Create Database
-foo CREATE DATABASE `foo` /*!40100 DEFAULT CHARACTER SET latin1 */
-show schemas;
-Database
-foo
-information_schema
-mtr
-mysql
-performance_schema
-test
-drop schema foo;
-#
-# Bug #48940 MDL deadlocks against mysql_rm_db
-#
-DROP SCHEMA IF EXISTS schema1;
-connect con2, localhost, root;
-connection default;
-CREATE SCHEMA schema1;
-CREATE TABLE schema1.t1 (a INT);
-SET autocommit= FALSE;
-INSERT INTO schema1.t1 VALUES (1);
-connection con2;
-DROP SCHEMA schema1;
-connection default;
-ALTER SCHEMA schema1 DEFAULT CHARACTER SET utf8;
-Got one of the listed errors
-SET autocommit= TRUE;
-connection con2;
-connection default;
-disconnect con2;
-#
-# Bug #49988 MDL deadlocks with mysql_create_db, reload_acl_and_cache
-#
-DROP SCHEMA IF EXISTS schema1;
-connect con2, localhost, root;
-connection default;
-CREATE SCHEMA schema1;
-CREATE TABLE schema1.t1 (id INT);
-LOCK TABLE schema1.t1 WRITE;
-connection con2;
-DROP SCHEMA schema1;
-connection default;
-# CREATE SCHEMA used to give a deadlock.
-# Now we prohibit CREATE SCHEMA in LOCK TABLES mode.
-CREATE SCHEMA IF NOT EXISTS schema1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-# UNLOCK TABLES so DROP SCHEMA can continue.
-UNLOCK TABLES;
-connection con2;
-connection default;
-disconnect con2;
-#
-# Bug#54360 Deadlock DROP/ALTER/CREATE DATABASE with open HANDLER
-#
-CREATE DATABASE db1;
-CREATE TABLE db1.t1 (a INT);
-INSERT INTO db1.t1 VALUES (1), (2);
-connect con1, localhost, root;
-HANDLER db1.t1 OPEN;
-connection default;
-# Sending:
-DROP DATABASE db1;
-connect con2, localhost, root;
-connection con1;
-CREATE DATABASE db2;
-ALTER DATABASE db2 DEFAULT CHARACTER SET utf8;
-DROP DATABASE db2;
-HANDLER t1 CLOSE;
-connection default;
-# Reaping: DROP DATABASE db1
-disconnect con1;
-disconnect con2;
-#
-# Tests for increased CREATE/ALTER/DROP DATABASE concurrency with
-# database name locks.
-#
-DROP DATABASE IF EXISTS db1;
-DROP DATABASE IF EXISTS db2;
-connect con2, localhost, root;
-connect con3, localhost, root;
-connection default;
-CREATE DATABASE db1;
-CREATE TABLE db1.t1 (id INT);
-START TRANSACTION;
-INSERT INTO db1.t1 VALUES (1);
-connection con2;
-# DROP DATABASE should block due to the active transaction
-# Sending:
-DROP DATABASE db1;
-connection con3;
-# But it should still be possible to CREATE/ALTER/DROP other databases.
-CREATE DATABASE db2;
-ALTER DATABASE db2 DEFAULT CHARACTER SET utf8;
-DROP DATABASE db2;
-connection default;
-# End the transaction so DROP DATABASE db1 can continue
-COMMIT;
-connection con2;
-# Reaping: DROP DATABASE db1
-connection default;
-disconnect con2;
-disconnect con3;
diff --git a/mysql-test/r/second_frac-9175.result b/mysql-test/r/second_frac-9175.result
deleted file mode 100644
index dbf268b5c3b..00000000000
--- a/mysql-test/r/second_frac-9175.result
+++ /dev/null
@@ -1,13 +0,0 @@
-select timestampdiff(microsecond,'2000-01-01 00:00:00','2001-01-01 00:00:00.123456');
-timestampdiff(microsecond,'2000-01-01 00:00:00','2001-01-01 00:00:00.123456')
-31622400123456
-explain extended select timestampdiff(microsecond,'2000-01-01 00:00:00','2001-01-01 00:00:00.123456');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select timestampdiff(MICROSECOND,'2000-01-01 00:00:00','2001-01-01 00:00:00.123456') AS `timestampdiff(microsecond,'2000-01-01 00:00:00','2001-01-01 00:00:00.123456')`
-create view v1 as select timestampdiff(microsecond,'2000-01-01 00:00:00','2001-01-01 00:00:00.123456');
-select * from v1;
-Name_exp_1
-31622400123456
-drop view v1;
diff --git a/mysql-test/r/secure_file_priv_win.result b/mysql-test/r/secure_file_priv_win.result
deleted file mode 100644
index d456c24d20c..00000000000
--- a/mysql-test/r/secure_file_priv_win.result
+++ /dev/null
@@ -1,38 +0,0 @@
-CREATE TABLE t1 (c1 longtext);
-INSERT INTO t1 values ('a');
-SELECT * FROM t1 INTO OUTFILE 'MYSQL_TMP_DIR/B11764517.tmp';
-show global variables like 'secure_file_priv';
-Variable_name Value
-secure_file_priv MYSQL_TMP_DIR/
-SELECT load_file('MYSQL_TMP_DIR\\B11764517.tmp') AS x;
-x
-a
-
-SELECT load_file('MYSQL_TMP_DIR/B11764517.tmp') AS x;
-x
-a
-
-SELECT load_file('MYSQL_TMP_DIR_UCASE/B11764517.tmp') AS x;
-x
-a
-
-SELECT load_file('MYSQL_TMP_DIR_LCASE/B11764517.tmp') AS x;
-x
-a
-
-SELECT load_file('MYSQL_TMP_DIR\\..a..\\..\\..\\B11764517.tmp') AS x;
-x
-NULL
-LOAD DATA INFILE 'MYSQL_TMP_DIR\\B11764517.tmp' INTO TABLE t1;
-LOAD DATA INFILE 'MYSQL_TMP_DIR/B11764517.tmp' INTO TABLE t1;
-LOAD DATA INFILE 'MYSQL_TMP_DIR_UCASE/B11764517.tmp' INTO TABLE t1;
-LOAD DATA INFILE 'MYSQL_TMP_DIR_LCASE/B11764517.tmp' INTO TABLE t1;
-LOAD DATA INFILE "MYSQL_TMP_DIR\\..a..\\..\\..\\B11764517.tmp" into table t1;
-ERROR HY000: The MariaDB server is running with the --secure-file-priv option so it cannot execute this statement
-SELECT * FROM t1 INTO OUTFILE 'MYSQL_TMP_DIR\\..a..\\..\\..\\B11764517-2.tmp';
-ERROR HY000: The MariaDB server is running with the --secure-file-priv option so it cannot execute this statement
-SELECT * FROM t1 INTO OUTFILE 'MYSQL_TMP_DIR\\B11764517-2.tmp';
-SELECT * FROM t1 INTO OUTFILE 'MYSQL_TMP_DIR/B11764517-3.tmp';
-SELECT * FROM t1 INTO OUTFILE 'MYSQL_TMP_DIR_UCASE/B11764517-4.tmp';
-SELECT * FROM t1 INTO OUTFILE 'MYSQL_TMP_DIR_LCASE/B11764517-5.tmp';
-DROP TABLE t1;
diff --git a/mysql-test/r/select.result b/mysql-test/r/select.result
deleted file mode 100644
index 9b6a570717b..00000000000
--- a/mysql-test/r/select.result
+++ /dev/null
@@ -1,5550 +0,0 @@
-drop table if exists t1,t2,t3,t4,t11;
-drop table if exists t1_1,t1_2,t9_1,t9_2,t1aa,t2aa;
-drop view if exists v1;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch=ifnull(@optimizer_switch_for_select_test,'outer_join_with_cache=off');
-set join_cache_level=1;
-CREATE TABLE t1 (
-Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
-Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
-);
-INSERT INTO t1 VALUES (9410,9412);
-select period from t1;
-period
-9410
-select * from t1;
-Period Varor_period
-9410 9412
-select t1.* from t1;
-Period Varor_period
-9410 9412
-CREATE TABLE t2 (
-auto int not null auto_increment,
-fld1 int(6) unsigned zerofill DEFAULT '000000' NOT NULL,
-companynr tinyint(2) unsigned zerofill DEFAULT '00' NOT NULL,
-fld3 char(30) DEFAULT '' NOT NULL,
-fld4 char(35) DEFAULT '' NOT NULL,
-fld5 char(35) DEFAULT '' NOT NULL,
-fld6 char(4) DEFAULT '' NOT NULL,
-UNIQUE fld1 (fld1),
-KEY fld3 (fld3),
-PRIMARY KEY (auto)
-);
-select t2.fld3 from t2 where companynr = 58 and fld3 like "%imaginable%";
-fld3
-imaginable
-select fld3 from t2 where fld3 like "%cultivation" ;
-fld3
-cultivation
-select t2.fld3,companynr from t2 where companynr = 57+1 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3,companynr from t2 where companynr = 58 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3 from t2 order by fld3 desc limit 10;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select fld3 from t2 order by fld3 desc limit 5;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-select fld3 from t2 order by fld3 desc limit 5,5;
-fld3
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select t2.fld3 from t2 where fld3 = 'honeysuckle';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'hon_ysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle%';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'h%le';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle_';
-fld3
-select t2.fld3 from t2 where fld3 LIKE 'don_t_find_me_please%';
-fld3
-explain select t2.fld3 from t2 where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld1) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3,not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-explain select fld3 from t2 use index (not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-fld3
-honeysuckle
-honoring
-explain select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld3 fld3 30 NULL 2 Using where; Using index
-select fld1,fld3 from t2 where fld3="Colombo" or fld3 = "nondecreasing" order by fld3;
-fld1 fld3
-148504 Colombo
-068305 Colombo
-000000 nondecreasing
-select fld1,fld3 from t2 where companynr = 37 and fld3 = 'appendixes';
-fld1 fld3
-232605 appendixes
-1232605 appendixes
-1232606 appendixes
-1232607 appendixes
-1232608 appendixes
-1232609 appendixes
-select fld1 from t2 where fld1=250501 or fld1="250502";
-fld1
-250501
-250502
-explain select fld1 from t2 where fld1=250501 or fld1="250502";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 2 Using where; Using index
-select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-fld1
-250501
-250502
-250505
-250601
-explain select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 4 Using where; Using index
-select fld1,fld3 from t2 where companynr = 37 and fld3 like 'f%';
-fld1 fld3
-012001 flanking
-013602 foldout
-013606 fingerings
-018007 fanatic
-018017 featherweight
-018054 fetters
-018103 flint
-018104 flopping
-036002 funereal
-038017 fetched
-038205 firearm
-058004 Fenton
-088303 feminine
-186002 freakish
-188007 flurried
-188505 fitting
-198006 furthermore
-202301 Fitzpatrick
-208101 fiftieth
-208113 freest
-218008 finishers
-218022 feed
-218401 faithful
-226205 foothill
-226209 furnishings
-228306 forthcoming
-228311 fated
-231315 freezes
-232102 forgivably
-238007 filial
-238008 fixedly
-select fld3 from t2 where fld3 like "L%" and fld3 = "ok";
-fld3
-select fld3 from t2 where (fld3 like "C%" and fld3 = "Chantilly");
-fld3
-Chantilly
-select fld1,fld3 from t2 where fld1 like "25050%";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select fld1,fld3 from t2 where fld1 like "25050_";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select distinct companynr from t2;
-companynr
-00
-37
-36
-50
-58
-29
-40
-53
-65
-41
-34
-68
-select distinct companynr from t2 order by companynr;
-companynr
-00
-29
-34
-36
-37
-40
-41
-50
-53
-58
-65
-68
-select distinct companynr from t2 order by companynr desc;
-companynr
-68
-65
-58
-53
-50
-41
-40
-37
-36
-34
-29
-00
-select distinct t2.fld3,period from t2,t1 where companynr=37 and fld3 like "O%";
-fld3 period
-obliterates 9410
-offload 9410
-opaquely 9410
-organizer 9410
-overestimating 9410
-overlay 9410
-select distinct fld3 from t2 where companynr = 34 order by fld3;
-fld3
-absentee
-accessed
-ahead
-alphabetic
-Asiaticizations
-attitude
-aye
-bankruptcies
-belays
-Blythe
-bomb
-boulevard
-bulldozes
-cannot
-caressing
-charcoal
-checksumming
-chess
-clubroom
-colorful
-cosy
-creator
-crying
-Darius
-diffusing
-duality
-Eiffel
-Epiphany
-Ernestine
-explorers
-exterminated
-famine
-forked
-Gershwins
-heaving
-Hodges
-Iraqis
-Italianization
-Lagos
-landslide
-libretto
-Majorca
-mastering
-narrowed
-occurred
-offerers
-Palestine
-Peruvianizes
-pharmaceutic
-poisoning
-population
-Pygmalion
-rats
-realest
-recording
-regimented
-retransmitting
-reviver
-rouses
-scars
-sicker
-sleepwalk
-stopped
-sugars
-translatable
-uncles
-unexpected
-uprisings
-versatility
-vest
-select distinct fld3 from t2 limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct fld3 from t2 having fld3 like "A%" limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%";
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-Adl
-adm
-Ado
-ads
-adv
-aer
-aff
-afi
-afl
-afo
-agi
-ahe
-aim
-air
-Ald
-alg
-ali
-all
-alp
-alr
-ama
-ame
-amm
-ana
-and
-ane
-Ang
-ani
-Ann
-Ant
-api
-app
-aqu
-Ara
-arc
-Arm
-arr
-Art
-Asi
-ask
-asp
-ass
-ast
-att
-aud
-Aug
-aut
-ave
-avo
-awe
-aye
-Azt
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" order by a limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%" limit 10;
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-create table t3 (
-period int not null,
-name char(32) not null,
-companynr int not null,
-price double(11,0),
-price2 double(11,0),
-key (period),
-key (name)
-);
-create temporary table tmp engine = myisam select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-alter table t3 add t2nr int not null auto_increment primary key first;
-drop table tmp;
-SET BIG_TABLES=1;
-select distinct concat(fld3," ",fld3) as namn from t2,t3 where t2.fld1=t3.t2nr order by namn limit 10;
-namn
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-SET BIG_TABLES=0;
-select distinct concat(fld3," ",fld3) from t2,t3 where t2.fld1=t3.t2nr order by fld3 limit 10;
-concat(fld3," ",fld3)
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-select distinct fld5 from t2 limit 10;
-fld5
-neat
-Steinberg
-jarring
-tinily
-balled
-persist
-attainments
-fanatic
-measures
-rightfulness
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=1;
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=0;
-select distinct fld3,repeat("a",length(fld3)),count(*) from t2 group by companynr,fld3 limit 100,10;
-fld3 repeat("a",length(fld3)) count(*)
-circus aaaaaa 1
-cited aaaaa 1
-Colombo aaaaaaa 1
-congresswoman aaaaaaaaaaaaa 1
-contrition aaaaaaaaaa 1
-corny aaaaa 1
-cultivation aaaaaaaaaaa 1
-definiteness aaaaaaaaaaaa 1
-demultiplex aaaaaaaaaaa 1
-disappointing aaaaaaaaaaaaa 1
-select distinct companynr,rtrim(space(512+companynr)) from t3 order by 1,2;
-companynr rtrim(space(512+companynr))
-37
-78
-101
-154
-311
-447
-512
-select distinct fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by fld3;
-fld3
-explain select t3.t2nr,fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by t3.t2nr,fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL fld1 NULL NULL NULL 1199 Using where; Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.fld1 1 Using where; Using index
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL period NULL NULL NULL 41810 Using filesort
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index period period 4 NULL 1
-1 SIMPLE t1 ref period period 4 test.t3.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t1.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index period period 4 NULL 1
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-select period from t1;
-period
-9410
-select period from t1 where period=1900;
-period
-select fld3,period from t1,t2 where fld1 = 011401 order by period;
-fld3 period
-breaking 9410
-select fld3,period from t2,t3 where t2.fld1 = 011401 and t2.fld1=t3.t2nr and t3.period=1001;
-fld3 period
-breaking 1001
-explain select fld3,period from t2,t3 where t2.fld1 = 011401 and t3.t2nr=t2.fld1 and 1001 = t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const fld1 fld1 4 const 1
-1 SIMPLE t3 const PRIMARY,period PRIMARY 4 const 1
-select fld3,period from t2,t1 where companynr*10 = 37*10;
-fld3 period
-breaking 9410
-Romans 9410
-intercepted 9410
-bewilderingly 9410
-astound 9410
-admonishing 9410
-sumac 9410
-flanking 9410
-combed 9410
-subjective 9410
-scatterbrain 9410
-Eulerian 9410
-Kane 9410
-overlay 9410
-perturb 9410
-goblins 9410
-annihilates 9410
-Wotan 9410
-snatching 9410
-concludes 9410
-laterally 9410
-yelped 9410
-grazing 9410
-Baird 9410
-celery 9410
-misunderstander 9410
-handgun 9410
-foldout 9410
-mystic 9410
-succumbed 9410
-Nabisco 9410
-fingerings 9410
-aging 9410
-afield 9410
-ammonium 9410
-boat 9410
-intelligibility 9410
-Augustine 9410
-teethe 9410
-dreaded 9410
-scholastics 9410
-audiology 9410
-wallet 9410
-parters 9410
-eschew 9410
-quitter 9410
-neat 9410
-Steinberg 9410
-jarring 9410
-tinily 9410
-balled 9410
-persist 9410
-attainments 9410
-fanatic 9410
-measures 9410
-rightfulness 9410
-capably 9410
-impulsive 9410
-starlet 9410
-terminators 9410
-untying 9410
-announces 9410
-featherweight 9410
-pessimist 9410
-daughter 9410
-decliner 9410
-lawgiver 9410
-stated 9410
-readable 9410
-attrition 9410
-cascade 9410
-motors 9410
-interrogate 9410
-pests 9410
-stairway 9410
-dopers 9410
-testicle 9410
-Parsifal 9410
-leavings 9410
-postulation 9410
-squeaking 9410
-contrasted 9410
-leftover 9410
-whiteners 9410
-erases 9410
-Punjab 9410
-Merritt 9410
-Quixotism 9410
-sweetish 9410
-dogging 9410
-scornfully 9410
-bellow 9410
-bills 9410
-cupboard 9410
-sureties 9410
-puddings 9410
-fetters 9410
-bivalves 9410
-incurring 9410
-Adolph 9410
-pithed 9410
-Miles 9410
-trimmings 9410
-tragedies 9410
-skulking 9410
-flint 9410
-flopping 9410
-relaxing 9410
-offload 9410
-suites 9410
-lists 9410
-animized 9410
-multilayer 9410
-standardizes 9410
-Judas 9410
-vacuuming 9410
-dentally 9410
-humanness 9410
-inch 9410
-Weissmuller 9410
-irresponsibly 9410
-luckily 9410
-culled 9410
-medical 9410
-bloodbath 9410
-subschema 9410
-animals 9410
-Micronesia 9410
-repetitions 9410
-Antares 9410
-ventilate 9410
-pityingly 9410
-interdependent 9410
-Graves 9410
-neonatal 9410
-chafe 9410
-honoring 9410
-realtor 9410
-elite 9410
-funereal 9410
-abrogating 9410
-sorters 9410
-Conley 9410
-lectured 9410
-Abraham 9410
-Hawaii 9410
-cage 9410
-hushes 9410
-Simla 9410
-reporters 9410
-Dutchman 9410
-descendants 9410
-groupings 9410
-dissociate 9410
-coexist 9410
-Beebe 9410
-Taoism 9410
-Connally 9410
-fetched 9410
-checkpoints 9410
-rusting 9410
-galling 9410
-obliterates 9410
-traitor 9410
-resumes 9410
-analyzable 9410
-terminator 9410
-gritty 9410
-firearm 9410
-minima 9410
-Selfridge 9410
-disable 9410
-witchcraft 9410
-betroth 9410
-Manhattanize 9410
-imprint 9410
-peeked 9410
-swelling 9410
-interrelationships 9410
-riser 9410
-Gandhian 9410
-peacock 9410
-bee 9410
-kanji 9410
-dental 9410
-scarf 9410
-chasm 9410
-insolence 9410
-syndicate 9410
-alike 9410
-imperial 9410
-convulsion 9410
-railway 9410
-validate 9410
-normalizes 9410
-comprehensive 9410
-chewing 9410
-denizen 9410
-schemer 9410
-chronicle 9410
-Kline 9410
-Anatole 9410
-partridges 9410
-brunch 9410
-recruited 9410
-dimensions 9410
-Chicana 9410
-announced 9410
-praised 9410
-employing 9410
-linear 9410
-quagmire 9410
-western 9410
-relishing 9410
-serving 9410
-scheduling 9410
-lore 9410
-eventful 9410
-arteriole 9410
-disentangle 9410
-cured 9410
-Fenton 9410
-avoidable 9410
-drains 9410
-detectably 9410
-husky 9410
-impelling 9410
-undoes 9410
-evened 9410
-squeezes 9410
-destroyer 9410
-rudeness 9410
-beaner 9410
-boorish 9410
-Everhart 9410
-encompass 9410
-mushrooms 9410
-Alison 9410
-externally 9410
-pellagra 9410
-cult 9410
-creek 9410
-Huffman 9410
-Majorca 9410
-governing 9410
-gadfly 9410
-reassigned 9410
-intentness 9410
-craziness 9410
-psychic 9410
-squabbled 9410
-burlesque 9410
-capped 9410
-extracted 9410
-DiMaggio 9410
-exclamation 9410
-subdirectory 9410
-Gothicism 9410
-feminine 9410
-metaphysically 9410
-sanding 9410
-Miltonism 9410
-freakish 9410
-index 9410
-straight 9410
-flurried 9410
-denotative 9410
-coming 9410
-commencements 9410
-gentleman 9410
-gifted 9410
-Shanghais 9410
-sportswriting 9410
-sloping 9410
-navies 9410
-leaflet 9410
-shooter 9410
-Joplin 9410
-babies 9410
-assails 9410
-admiring 9410
-swaying 9410
-Goldstine 9410
-fitting 9410
-Norwalk 9410
-analogy 9410
-deludes 9410
-cokes 9410
-Clayton 9410
-exhausts 9410
-causality 9410
-sating 9410
-icon 9410
-throttles 9410
-communicants 9410
-dehydrate 9410
-priceless 9410
-publicly 9410
-incidentals 9410
-commonplace 9410
-mumbles 9410
-furthermore 9410
-cautioned 9410
-parametrized 9410
-registration 9410
-sadly 9410
-positioning 9410
-babysitting 9410
-eternal 9410
-hoarder 9410
-congregates 9410
-rains 9410
-workers 9410
-sags 9410
-unplug 9410
-garage 9410
-boulder 9410
-specifics 9410
-Teresa 9410
-Winsett 9410
-convenient 9410
-buckboards 9410
-amenities 9410
-resplendent 9410
-sews 9410
-participated 9410
-Simon 9410
-certificates 9410
-Fitzpatrick 9410
-Evanston 9410
-misted 9410
-textures 9410
-save 9410
-count 9410
-rightful 9410
-chaperone 9410
-Lizzy 9410
-clenched 9410
-effortlessly 9410
-accessed 9410
-beaters 9410
-Hornblower 9410
-vests 9410
-indulgences 9410
-infallibly 9410
-unwilling 9410
-excrete 9410
-spools 9410
-crunches 9410
-overestimating 9410
-ineffective 9410
-humiliation 9410
-sophomore 9410
-star 9410
-rifles 9410
-dialysis 9410
-arriving 9410
-indulge 9410
-clockers 9410
-languages 9410
-Antarctica 9410
-percentage 9410
-ceiling 9410
-specification 9410
-regimented 9410
-ciphers 9410
-pictures 9410
-serpents 9410
-allot 9410
-realized 9410
-mayoral 9410
-opaquely 9410
-hostess 9410
-fiftieth 9410
-incorrectly 9410
-decomposition 9410
-stranglings 9410
-mixture 9410
-electroencephalography 9410
-similarities 9410
-charges 9410
-freest 9410
-Greenberg 9410
-tinting 9410
-expelled 9410
-warm 9410
-smoothed 9410
-deductions 9410
-Romano 9410
-bitterroot 9410
-corset 9410
-securing 9410
-environing 9410
-cute 9410
-Crays 9410
-heiress 9410
-inform 9410
-avenge 9410
-universals 9410
-Kinsey 9410
-ravines 9410
-bestseller 9410
-equilibrium 9410
-extents 9410
-relatively 9410
-pressure 9410
-critiques 9410
-befouled 9410
-rightfully 9410
-mechanizing 9410
-Latinizes 9410
-timesharing 9410
-Aden 9410
-embassies 9410
-males 9410
-shapelessly 9410
-mastering 9410
-Newtonian 9410
-finishers 9410
-abates 9410
-teem 9410
-kiting 9410
-stodgy 9410
-feed 9410
-guitars 9410
-airships 9410
-store 9410
-denounces 9410
-Pyle 9410
-Saxony 9410
-serializations 9410
-Peruvian 9410
-taxonomically 9410
-kingdom 9410
-stint 9410
-Sault 9410
-faithful 9410
-Ganymede 9410
-tidiness 9410
-gainful 9410
-contrary 9410
-Tipperary 9410
-tropics 9410
-theorizers 9410
-renew 9410
-already 9410
-terminal 9410
-Hegelian 9410
-hypothesizer 9410
-warningly 9410
-journalizing 9410
-nested 9410
-Lars 9410
-saplings 9410
-foothill 9410
-labeled 9410
-imperiously 9410
-reporters 9410
-furnishings 9410
-precipitable 9410
-discounts 9410
-excises 9410
-Stalin 9410
-despot 9410
-ripeness 9410
-Arabia 9410
-unruly 9410
-mournfulness 9410
-boom 9410
-slaughter 9410
-Sabine 9410
-handy 9410
-rural 9410
-organizer 9410
-shipyard 9410
-civics 9410
-inaccuracy 9410
-rules 9410
-juveniles 9410
-comprised 9410
-investigations 9410
-stabilizes 9410
-seminaries 9410
-Hunter 9410
-sporty 9410
-test 9410
-weasels 9410
-CERN 9410
-tempering 9410
-afore 9410
-Galatean 9410
-techniques 9410
-error 9410
-veranda 9410
-severely 9410
-Cassites 9410
-forthcoming 9410
-guides 9410
-vanish 9410
-lied 9410
-sawtooth 9410
-fated 9410
-gradually 9410
-widens 9410
-preclude 9410
-evenhandedly 9410
-percentage 9410
-disobedience 9410
-humility 9410
-gleaning 9410
-petted 9410
-bloater 9410
-minion 9410
-marginal 9410
-apiary 9410
-measures 9410
-precaution 9410
-repelled 9410
-primary 9410
-coverings 9410
-Artemia 9410
-navigate 9410
-spatial 9410
-Gurkha 9410
-meanwhile 9410
-Melinda 9410
-Butterfield 9410
-Aldrich 9410
-previewing 9410
-glut 9410
-unaffected 9410
-inmate 9410
-mineral 9410
-impending 9410
-meditation 9410
-ideas 9410
-miniaturizes 9410
-lewdly 9410
-title 9410
-youthfulness 9410
-creak 9410
-Chippewa 9410
-clamored 9410
-freezes 9410
-forgivably 9410
-reduce 9410
-McGovern 9410
-Nazis 9410
-epistle 9410
-socializes 9410
-conceptions 9410
-Kevin 9410
-uncovering 9410
-chews 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-raining 9410
-infest 9410
-compartment 9410
-minting 9410
-ducks 9410
-roped 9410
-waltz 9410
-Lillian 9410
-repressions 9410
-chillingly 9410
-noncritical 9410
-lithograph 9410
-spongers 9410
-parenthood 9410
-posed 9410
-instruments 9410
-filial 9410
-fixedly 9410
-relives 9410
-Pandora 9410
-watering 9410
-ungrateful 9410
-secures 9410
-poison 9410
-dusted 9410
-encompasses 9410
-presentation 9410
-Kantian 9410
-select fld3,period,price,price2 from t2,t3 where t2.fld1=t3.t2nr and period >= 1001 and period <= 1002 and t2.companynr = 37 order by fld3,period, price;
-fld3 period price price2
-admonishing 1002 28357832 8723648
-analyzable 1002 28357832 8723648
-annihilates 1001 5987435 234724
-Antares 1002 28357832 8723648
-astound 1001 5987435 234724
-audiology 1001 5987435 234724
-Augustine 1002 28357832 8723648
-Baird 1002 28357832 8723648
-bewilderingly 1001 5987435 234724
-breaking 1001 5987435 234724
-Conley 1001 5987435 234724
-dentally 1002 28357832 8723648
-dissociate 1002 28357832 8723648
-elite 1001 5987435 234724
-eschew 1001 5987435 234724
-Eulerian 1001 5987435 234724
-flanking 1001 5987435 234724
-foldout 1002 28357832 8723648
-funereal 1002 28357832 8723648
-galling 1002 28357832 8723648
-Graves 1001 5987435 234724
-grazing 1001 5987435 234724
-groupings 1001 5987435 234724
-handgun 1001 5987435 234724
-humility 1002 28357832 8723648
-impulsive 1002 28357832 8723648
-inch 1001 5987435 234724
-intelligibility 1001 5987435 234724
-jarring 1001 5987435 234724
-lawgiver 1001 5987435 234724
-lectured 1002 28357832 8723648
-Merritt 1002 28357832 8723648
-neonatal 1001 5987435 234724
-offload 1002 28357832 8723648
-parters 1002 28357832 8723648
-pityingly 1002 28357832 8723648
-puddings 1002 28357832 8723648
-Punjab 1001 5987435 234724
-quitter 1002 28357832 8723648
-realtor 1001 5987435 234724
-relaxing 1001 5987435 234724
-repetitions 1001 5987435 234724
-resumes 1001 5987435 234724
-Romans 1002 28357832 8723648
-rusting 1001 5987435 234724
-scholastics 1001 5987435 234724
-skulking 1002 28357832 8723648
-stated 1002 28357832 8723648
-suites 1002 28357832 8723648
-sureties 1001 5987435 234724
-testicle 1002 28357832 8723648
-tinily 1002 28357832 8723648
-tragedies 1001 5987435 234724
-trimmings 1001 5987435 234724
-vacuuming 1001 5987435 234724
-ventilate 1001 5987435 234724
-wallet 1001 5987435 234724
-Weissmuller 1002 28357832 8723648
-Wotan 1002 28357832 8723648
-select t2.fld1,fld3,period,price,price2 from t2,t3 where t2.fld1>= 18201 and t2.fld1 <= 18811 and t2.fld1=t3.t2nr and period = 1001 and t2.companynr = 37;
-fld1 fld3 period price price2
-018201 relaxing 1001 5987435 234724
-018601 vacuuming 1001 5987435 234724
-018801 inch 1001 5987435 234724
-018811 repetitions 1001 5987435 234724
-create table t4 (
-companynr tinyint(2) unsigned zerofill NOT NULL default '00',
-companyname char(30) NOT NULL default '',
-PRIMARY KEY (companynr),
-UNIQUE KEY companyname(companyname)
-) ENGINE=MyISAM MAX_ROWS=50 PACK_KEYS=1 COMMENT='companynames';
-select STRAIGHT_JOIN t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select SQL_SMALL_RESULT t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select * from t1,t1 t12;
-Period Varor_period Period Varor_period
-9410 9412 9410 9412
-select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505;
-fld1 fld1
-250501 250501
-250502 250501
-250503 250501
-250504 250501
-250505 250501
-250501 250502
-250502 250502
-250503 250502
-250504 250502
-250505 250502
-250501 250503
-250502 250503
-250503 250503
-250504 250503
-250505 250503
-250501 250504
-250502 250504
-250503 250504
-250504 250504
-250505 250504
-250501 250505
-250502 250505
-250503 250505
-250504 250505
-250505 250505
-insert into t2 (fld1, companynr) values (999999,99);
-select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-companynr companyname
-99 NULL
-select count(*) from t2 left join t4 using (companynr) where t4.companynr is not null;
-count(*)
-1199
-explain select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1 Using where; Not exists
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200 Using where; Not exists
-select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-companynr companyname
-select count(*) from t2 left join t4 using (companynr) where companynr is not null;
-count(*)
-1200
-explain select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-delete from t2 where fld1=999999;
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 and t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 and companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0 or t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where ifnull(t2.companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0 or companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where ifnull(companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-companynr companynr
-37 36
-41 40
-explain select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 index NULL PRIMARY 1 NULL 12 Using index; Using temporary
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where; Using join buffer (flat, BNL join)
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where t2.fld1 = 38208 and t2.fld1=t3.t2nr and period = 1008 or t2.fld1 = 38008 and t2.fld1 =t3.t2nr and period = 1008;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t2.fld1 = 38208 or t2.fld1 = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t3.t2nr = 38208 or t3.t2nr = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select period from t1 where (((period > 0) or period < 10000 or (period = 1900)) and (period=1900 and period <= 1901) or (period=1903 and (period=1903)) and period>=1902) or ((period=1904 or period=1905) or (period=1906 or period>1907)) or (period=1908 and period = 1909);
-period
-9410
-select period from t1 where ((period > 0 and period < 1) or (((period > 0 and period < 100) and (period > 10)) or (period > 10)) or (period > 0 and (period > 5 or period > 6)));
-period
-9410
-select a.fld1 from t2 as a,t2 b where ((a.fld1 = 250501 and a.fld1=b.fld1) or a.fld1=250502 or a.fld1=250503 or (a.fld1=250505 and a.fld1<=b.fld1 and b.fld1>=a.fld1)) and a.fld1=b.fld1;
-fld1
-250501
-250502
-250503
-250505
-select fld1 from t2 where fld1 in (250502,98005,98006,250503,250605,250606) and fld1 >=250502 and fld1 not in (250605,250606);
-fld1
-250502
-250503
-select fld1 from t2 where fld1 between 250502 and 250504;
-fld1
-250502
-250503
-250504
-select fld3 from t2 where (((fld3 like "_%L%" ) or (fld3 like "%ok%")) and ( fld3 like "L%" or fld3 like "G%")) and fld3 like "L%" ;
-fld3
-label
-labeled
-labeled
-landslide
-laterally
-leaflet
-lewdly
-Lillian
-luckily
-select count(*) from t1;
-count(*)
-1
-select companynr,count(*),sum(fld1) from t2 group by companynr;
-companynr count(*) sum(fld1)
-00 82 10355753
-29 95 14473298
-34 70 17788966
-36 215 22786296
-37 588 83602098
-40 37 6618386
-41 52 12816335
-50 11 1595438
-53 4 793210
-58 23 2254293
-65 10 2284055
-68 12 3097288
-select companynr,count(*) from t2 group by companynr order by companynr desc limit 5;
-companynr count(*)
-68 12
-65 10
-58 23
-53 4
-50 11
-select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-explain extended select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 100.00 Using where
-Warnings:
-Note 1003 select count(0) AS `count(*)`,min(`test`.`t2`.`fld4`) AS `min(fld4)`,max(`test`.`t2`.`fld4`) AS `max(fld4)`,sum(`test`.`t2`.`fld1`) AS `sum(fld1)`,avg(`test`.`t2`.`fld1`) AS `avg(fld1)`,std(`test`.`t2`.`fld1`) AS `std(fld1)`,variance(`test`.`t2`.`fld1`) AS `variance(fld1)` from `test`.`t2` where `test`.`t2`.`companynr` = 34 and `test`.`t2`.`fld4` <> ''
-select companynr,count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 group by companynr limit 3;
-companynr count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-00 82 Anthony windmills 10355753 126289.6707 115550.9757 13352027981.7087
-29 95 abut wetness 14473298 152350.5053 8368.5480 70032594.9026
-34 70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-select companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select /*! SQL_SMALL_RESULT */ companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select companynr,count(price),sum(price),min(price),max(price),avg(price) from t3 group by companynr ;
-companynr count(price) sum(price) min(price) max(price) avg(price)
-37 12543 309394878010 5987435 39654943 24666736.6667
-78 8362 414611089292 726498 98439034 49582766.0000
-101 4181 3489454238 834598 834598 834598.0000
-154 4181 4112197254950 983543950 983543950 983543950.0000
-311 4181 979599938 234298 234298 234298.0000
-447 4181 9929180954 2374834 2374834 2374834.0000
-512 4181 3288532102 786542 786542 786542.0000
-select distinct mod(companynr,10) from t4 group by companynr;
-mod(companynr,10)
-0
-9
-4
-6
-7
-1
-3
-8
-5
-select distinct 1 from t4 group by companynr;
-1
-1
-select count(distinct fld1) from t2;
-count(distinct fld1)
-1199
-select companynr,count(distinct fld1) from t2 group by companynr;
-companynr count(distinct fld1)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(*) from t2 group by companynr;
-companynr count(*)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,1000))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,1000)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,200))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,200)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct floor(fld1/100)) from t2 group by companynr;
-companynr count(distinct floor(fld1/100))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select companynr,count(distinct concat(repeat(65,1000),floor(fld1/100))) from t2 group by companynr;
-companynr count(distinct concat(repeat(65,1000),floor(fld1/100)))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select sum(fld1),fld3 from t2 where fld3="Romans" group by fld1 limit 10;
-sum(fld1) fld3
-11402 Romans
-select name,count(*) from t3 where name='cloakroom' group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name='cloakroom' and price>10 group by name;
-name count(*)
-cloakroom 4181
-select count(*) from t3 where name='cloakroom' and price2=823742;
-count(*)
-4181
-select name,count(*) from t3 where name='cloakroom' and price2=823742 group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name >= "extramarital" and price <= 39654943 group by name;
-name count(*)
-extramarital 4181
-gazer 4181
-gems 4181
-Iranizes 4181
-spates 4181
-tucked 4181
-violinist 4181
-select t2.fld3,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld3 count(*)
-spates 4181
-select companynr|0,companyname from t4 group by 1;
-companynr|0 companyname
-0 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by t2.companynr order by companyname;
-companynr companyname count(*)
-29 company 1 95
-68 company 10 12
-50 company 11 11
-34 company 2 70
-36 company 3 215
-37 company 4 588
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-00 Unknown 82
-select t2.fld1,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld1 count(*)
-158402 4181
-select sum(Period)/count(*) from t1;
-sum(Period)/count(*)
-9410.0000
-select companynr,count(price) as "count",sum(price) as "sum" ,abs(sum(price)/count(price)-avg(price)) as "diff",(0+count(price))*companynr as func from t3 group by companynr;
-companynr count sum diff func
-37 12543 309394878010 0.0000 464091
-78 8362 414611089292 0.0000 652236
-101 4181 3489454238 0.0000 422281
-154 4181 4112197254950 0.0000 643874
-311 4181 979599938 0.0000 1300291
-447 4181 9929180954 0.0000 1868907
-512 4181 3288532102 0.0000 2140672
-select companynr,sum(price)/count(price) as avg from t3 group by companynr having avg > 70000000 order by avg;
-companynr avg
-154 983543950.0000
-select companynr,count(*) from t2 group by companynr order by 2 desc;
-companynr count(*)
-37 588
-36 215
-29 95
-00 82
-34 70
-41 52
-40 37
-58 23
-68 12
-50 11
-65 10
-53 4
-select companynr,count(*) from t2 where companynr > 40 group by companynr order by 2 desc;
-companynr count(*)
-41 52
-58 23
-68 12
-50 11
-65 10
-53 4
-select t2.fld4,t2.fld1,count(price),sum(price),min(price),max(price),avg(price) from t3,t2 where t3.companynr = 37 and t2.fld1 = t3.t2nr group by fld1,t2.fld4;
-fld4 fld1 count(price) sum(price) min(price) max(price) avg(price)
-teethe 000001 1 5987435 5987435 5987435 5987435.0000
-dreaded 011401 1 5987435 5987435 5987435 5987435.0000
-scholastics 011402 1 28357832 28357832 28357832 28357832.0000
-audiology 011403 1 39654943 39654943 39654943 39654943.0000
-wallet 011501 1 5987435 5987435 5987435 5987435.0000
-parters 011701 1 5987435 5987435 5987435 5987435.0000
-eschew 011702 1 28357832 28357832 28357832 28357832.0000
-quitter 011703 1 39654943 39654943 39654943 39654943.0000
-neat 012001 1 5987435 5987435 5987435 5987435.0000
-Steinberg 012003 1 39654943 39654943 39654943 39654943.0000
-balled 012301 1 5987435 5987435 5987435 5987435.0000
-persist 012302 1 28357832 28357832 28357832 28357832.0000
-attainments 012303 1 39654943 39654943 39654943 39654943.0000
-capably 012501 1 5987435 5987435 5987435 5987435.0000
-impulsive 012602 1 28357832 28357832 28357832 28357832.0000
-starlet 012603 1 39654943 39654943 39654943 39654943.0000
-featherweight 012701 1 5987435 5987435 5987435 5987435.0000
-pessimist 012702 1 28357832 28357832 28357832 28357832.0000
-daughter 012703 1 39654943 39654943 39654943 39654943.0000
-lawgiver 013601 1 5987435 5987435 5987435 5987435.0000
-stated 013602 1 28357832 28357832 28357832 28357832.0000
-readable 013603 1 39654943 39654943 39654943 39654943.0000
-testicle 013801 1 5987435 5987435 5987435 5987435.0000
-Parsifal 013802 1 28357832 28357832 28357832 28357832.0000
-leavings 013803 1 39654943 39654943 39654943 39654943.0000
-squeaking 013901 1 5987435 5987435 5987435 5987435.0000
-contrasted 016001 1 5987435 5987435 5987435 5987435.0000
-leftover 016201 1 5987435 5987435 5987435 5987435.0000
-whiteners 016202 1 28357832 28357832 28357832 28357832.0000
-erases 016301 1 5987435 5987435 5987435 5987435.0000
-Punjab 016302 1 28357832 28357832 28357832 28357832.0000
-Merritt 016303 1 39654943 39654943 39654943 39654943.0000
-sweetish 018001 1 5987435 5987435 5987435 5987435.0000
-dogging 018002 1 28357832 28357832 28357832 28357832.0000
-scornfully 018003 1 39654943 39654943 39654943 39654943.0000
-fetters 018012 1 28357832 28357832 28357832 28357832.0000
-bivalves 018013 1 39654943 39654943 39654943 39654943.0000
-skulking 018021 1 5987435 5987435 5987435 5987435.0000
-flint 018022 1 28357832 28357832 28357832 28357832.0000
-flopping 018023 1 39654943 39654943 39654943 39654943.0000
-Judas 018032 1 28357832 28357832 28357832 28357832.0000
-vacuuming 018033 1 39654943 39654943 39654943 39654943.0000
-medical 018041 1 5987435 5987435 5987435 5987435.0000
-bloodbath 018042 1 28357832 28357832 28357832 28357832.0000
-subschema 018043 1 39654943 39654943 39654943 39654943.0000
-interdependent 018051 1 5987435 5987435 5987435 5987435.0000
-Graves 018052 1 28357832 28357832 28357832 28357832.0000
-neonatal 018053 1 39654943 39654943 39654943 39654943.0000
-sorters 018061 1 5987435 5987435 5987435 5987435.0000
-epistle 018062 1 28357832 28357832 28357832 28357832.0000
-Conley 018101 1 5987435 5987435 5987435 5987435.0000
-lectured 018102 1 28357832 28357832 28357832 28357832.0000
-Abraham 018103 1 39654943 39654943 39654943 39654943.0000
-cage 018201 1 5987435 5987435 5987435 5987435.0000
-hushes 018202 1 28357832 28357832 28357832 28357832.0000
-Simla 018402 1 28357832 28357832 28357832 28357832.0000
-reporters 018403 1 39654943 39654943 39654943 39654943.0000
-coexist 018601 1 5987435 5987435 5987435 5987435.0000
-Beebe 018602 1 28357832 28357832 28357832 28357832.0000
-Taoism 018603 1 39654943 39654943 39654943 39654943.0000
-Connally 018801 1 5987435 5987435 5987435 5987435.0000
-fetched 018802 1 28357832 28357832 28357832 28357832.0000
-checkpoints 018803 1 39654943 39654943 39654943 39654943.0000
-gritty 018811 1 5987435 5987435 5987435 5987435.0000
-firearm 018812 1 28357832 28357832 28357832 28357832.0000
-minima 019101 1 5987435 5987435 5987435 5987435.0000
-Selfridge 019102 1 28357832 28357832 28357832 28357832.0000
-disable 019103 1 39654943 39654943 39654943 39654943.0000
-witchcraft 019201 1 5987435 5987435 5987435 5987435.0000
-betroth 030501 1 5987435 5987435 5987435 5987435.0000
-Manhattanize 030502 1 28357832 28357832 28357832 28357832.0000
-imprint 030503 1 39654943 39654943 39654943 39654943.0000
-swelling 031901 1 5987435 5987435 5987435 5987435.0000
-interrelationships 036001 1 5987435 5987435 5987435 5987435.0000
-riser 036002 1 28357832 28357832 28357832 28357832.0000
-bee 038001 1 5987435 5987435 5987435 5987435.0000
-kanji 038002 1 28357832 28357832 28357832 28357832.0000
-dental 038003 1 39654943 39654943 39654943 39654943.0000
-railway 038011 1 5987435 5987435 5987435 5987435.0000
-validate 038012 1 28357832 28357832 28357832 28357832.0000
-normalizes 038013 1 39654943 39654943 39654943 39654943.0000
-Kline 038101 1 5987435 5987435 5987435 5987435.0000
-Anatole 038102 1 28357832 28357832 28357832 28357832.0000
-partridges 038103 1 39654943 39654943 39654943 39654943.0000
-recruited 038201 1 5987435 5987435 5987435 5987435.0000
-dimensions 038202 1 28357832 28357832 28357832 28357832.0000
-Chicana 038203 1 39654943 39654943 39654943 39654943.0000
-select t3.companynr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 group by companynr,fld3;
-companynr fld3 sum(price)
-512 boat 786542
-512 capably 786542
-512 cupboard 786542
-512 decliner 786542
-512 descendants 786542
-512 dopers 786542
-512 erases 786542
-512 Micronesia 786542
-512 Miles 786542
-512 skies 786542
-select t2.companynr,count(*),min(fld3),max(fld3),sum(price),avg(price) from t2,t3 where t3.companynr >= 30 and t3.companynr <= 58 and t3.t2nr = t2.fld1 and 1+1=2 group by t2.companynr;
-companynr count(*) min(fld3) max(fld3) sum(price) avg(price)
-00 1 Omaha Omaha 5987435 5987435.0000
-36 1 dubbed dubbed 28357832 28357832.0000
-37 83 Abraham Wotan 1908978016 22999735.1325
-50 2 scribbled tapestry 68012775 34006387.5000
-select t3.companynr+0,t3.t2nr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 37 group by 1,t3.t2nr,fld3,fld3,fld3,fld3,fld3 order by fld1;
-t3.companynr+0 t2nr fld3 sum(price)
-37 1 Omaha 5987435
-37 11401 breaking 5987435
-37 11402 Romans 28357832
-37 11403 intercepted 39654943
-37 11501 bewilderingly 5987435
-37 11701 astound 5987435
-37 11702 admonishing 28357832
-37 11703 sumac 39654943
-37 12001 flanking 5987435
-37 12003 combed 39654943
-37 12301 Eulerian 5987435
-37 12302 dubbed 28357832
-37 12303 Kane 39654943
-37 12501 annihilates 5987435
-37 12602 Wotan 28357832
-37 12603 snatching 39654943
-37 12701 grazing 5987435
-37 12702 Baird 28357832
-37 12703 celery 39654943
-37 13601 handgun 5987435
-37 13602 foldout 28357832
-37 13603 mystic 39654943
-37 13801 intelligibility 5987435
-37 13802 Augustine 28357832
-37 13803 teethe 39654943
-37 13901 scholastics 5987435
-37 16001 audiology 5987435
-37 16201 wallet 5987435
-37 16202 parters 28357832
-37 16301 eschew 5987435
-37 16302 quitter 28357832
-37 16303 neat 39654943
-37 18001 jarring 5987435
-37 18002 tinily 28357832
-37 18003 balled 39654943
-37 18012 impulsive 28357832
-37 18013 starlet 39654943
-37 18021 lawgiver 5987435
-37 18022 stated 28357832
-37 18023 readable 39654943
-37 18032 testicle 28357832
-37 18033 Parsifal 39654943
-37 18041 Punjab 5987435
-37 18042 Merritt 28357832
-37 18043 Quixotism 39654943
-37 18051 sureties 5987435
-37 18052 puddings 28357832
-37 18053 tapestry 39654943
-37 18061 trimmings 5987435
-37 18062 humility 28357832
-37 18101 tragedies 5987435
-37 18102 skulking 28357832
-37 18103 flint 39654943
-37 18201 relaxing 5987435
-37 18202 offload 28357832
-37 18402 suites 28357832
-37 18403 lists 39654943
-37 18601 vacuuming 5987435
-37 18602 dentally 28357832
-37 18603 humanness 39654943
-37 18801 inch 5987435
-37 18802 Weissmuller 28357832
-37 18803 irresponsibly 39654943
-37 18811 repetitions 5987435
-37 18812 Antares 28357832
-37 19101 ventilate 5987435
-37 19102 pityingly 28357832
-37 19103 interdependent 39654943
-37 19201 Graves 5987435
-37 30501 neonatal 5987435
-37 30502 scribbled 28357832
-37 30503 chafe 39654943
-37 31901 realtor 5987435
-37 36001 elite 5987435
-37 36002 funereal 28357832
-37 38001 Conley 5987435
-37 38002 lectured 28357832
-37 38003 Abraham 39654943
-37 38011 groupings 5987435
-37 38012 dissociate 28357832
-37 38013 coexist 39654943
-37 38101 rusting 5987435
-37 38102 galling 28357832
-37 38103 obliterates 39654943
-37 38201 resumes 5987435
-37 38202 analyzable 28357832
-37 38203 terminator 39654943
-select sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1= t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008;
-sum(price)
-234298
-select t2.fld1,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1 = t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008 or t3.t2nr = t2.fld1 and t2.fld1 = 38008 group by t2.fld1;
-fld1 sum(price)
-038008 234298
-explain select fld3 from t2 where 1>2 or 2>3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select fld3 from t2 where fld1=fld1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199
-select companynr,fld1 from t2 HAVING fld1=250501 or fld1=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,fld1 from t2 WHERE fld1>=250501 HAVING fld1<=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,count(*) as count,sum(fld1) as sum from t2 group by companynr having count > 40 and sum/count >= 120000;
-companynr count sum
-00 82 10355753
-29 95 14473298
-34 70 17788966
-37 588 83602098
-41 52 12816335
-select companynr from t2 group by companynr having count(*) > 40 and sum(fld1)/count(*) >= 120000 ;
-companynr
-00
-29
-34
-37
-41
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by companyname having t2.companynr >= 40;
-companynr companyname count(*)
-68 company 10 12
-50 company 11 11
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-select count(*) from t2;
-count(*)
-1199
-select count(*) from t2 where fld1 < 098024;
-count(*)
-387
-select min(fld1) from t2 where fld1>= 098024;
-min(fld1)
-98024
-select max(fld1) from t2 where fld1>= 098024;
-max(fld1)
-1232609
-select count(*) from t3 where price2=76234234;
-count(*)
-4181
-select count(*) from t3 where companynr=512 and price2=76234234;
-count(*)
-4181
-explain select min(fld1),max(fld1),count(*) from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(fld1),max(fld1),count(*) from t2;
-min(fld1) max(fld1) count(*)
-0 1232609 1199
-select min(t2nr),max(t2nr) from t3 where t2nr=2115 and price2=823742;
-min(t2nr) max(t2nr)
-2115 2115
-select count(*),min(t2nr),max(t2nr) from t3 where name='spates' and companynr=78;
-count(*) min(t2nr) max(t2nr)
-4181 4 41804
-select t2nr,count(*) from t3 where name='gems' group by t2nr limit 20;
-t2nr count(*)
-9 1
-19 1
-29 1
-39 1
-49 1
-59 1
-69 1
-79 1
-89 1
-99 1
-109 1
-119 1
-129 1
-139 1
-149 1
-159 1
-169 1
-179 1
-189 1
-199 1
-select max(t2nr) from t3 where price=983543950;
-max(t2nr)
-41807
-select t1.period from t3 = t1 limit 1;
-period
-1001
-select t1.period from t1 as t1 limit 1;
-period
-9410
-select t1.period as "Nuvarande period" from t1 as t1 limit 1;
-Nuvarande period
-9410
-select period as ok_period from t1 limit 1;
-ok_period
-9410
-select period as ok_period from t1 group by ok_period limit 1;
-ok_period
-9410
-select 1+1 as summa from t1 group by summa limit 1;
-summa
-2
-select period as "Nuvarande period" from t1 group by "Nuvarande period" limit 1;
-Nuvarande period
-9410
-show tables;
-Tables_in_test
-t1
-t2
-t3
-t4
-show tables from test like "s%";
-Tables_in_test (s%)
-show tables from test like "t?";
-Tables_in_test (t?)
-show full columns from t2;
-Field Type Collation Null Key Default Extra Privileges Comment
-auto int(11) NULL NO PRI NULL auto_increment #
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-companynr tinyint(2) unsigned zerofill NULL NO 00 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 'f%';
-Field Type Collation Null Key Default Extra Privileges Comment
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 's%';
-Field Type Collation Null Key Default Extra Privileges Comment
-show keys from t2;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t2 0 PRIMARY 1 auto A 1199 NULL NULL BTREE
-t2 0 fld1 1 fld1 A 1199 NULL NULL BTREE
-t2 1 fld3 1 fld3 A NULL NULL NULL BTREE
-drop table t4, t3, t2, t1;
-DO 1;
-DO benchmark(100,1+1),1,1;
-do default;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-do foobar;
-ERROR 42S22: Unknown column 'foobar' in 'field list'
-CREATE TABLE t1 (
-id mediumint(8) unsigned NOT NULL auto_increment,
-pseudo varchar(35) NOT NULL default '',
-PRIMARY KEY (id),
-UNIQUE KEY pseudo (pseudo)
-);
-INSERT INTO t1 (pseudo) VALUES ('test');
-INSERT INTO t1 (pseudo) VALUES ('test1');
-SELECT 1 as rnd1 from t1 where rand() > 2;
-rnd1
-DROP TABLE t1;
-CREATE TABLE t1 (gvid int(10) unsigned default NULL, hmid int(10) unsigned default NULL, volid int(10) unsigned default NULL, mmid int(10) unsigned default NULL, hdid int(10) unsigned default NULL, fsid int(10) unsigned default NULL, ctid int(10) unsigned default NULL, dtid int(10) unsigned default NULL, cost int(10) unsigned default NULL, performance int(10) unsigned default NULL, serialnumber bigint(20) unsigned default NULL, monitored tinyint(3) unsigned default '1', removed tinyint(3) unsigned default '0', target tinyint(3) unsigned default '0', dt_modified timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, name varchar(255) binary default NULL, description varchar(255) default NULL, UNIQUE KEY hmid (hmid,volid)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (200001,2,1,1,100,1,1,1,0,0,0,1,0,1,20020425060057,'\\\\ARKIVIO-TESTPDC\\E$',''),(200002,2,2,1,101,1,1,1,0,0,0,1,0,1,20020425060057,'\\\\ARKIVIO-TESTPDC\\C$',''),(200003,1,3,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,1,20020425060427,'c:',NULL);
-CREATE TABLE t2 ( hmid int(10) unsigned default NULL, volid int(10) unsigned default NULL, sampletid smallint(5) unsigned default NULL, sampletime datetime default NULL, samplevalue bigint(20) unsigned default NULL, KEY idx1 (hmid,volid,sampletid,sampletime)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,3,10,'2002-06-01 08:00:00',35),(1,3,1010,'2002-06-01 12:00:01',35);
-SELECT a.gvid, (SUM(CASE b.sampletid WHEN 140 THEN b.samplevalue ELSE 0 END)) as the_success,(SUM(CASE b.sampletid WHEN 141 THEN b.samplevalue ELSE 0 END)) as the_fail,(SUM(CASE b.sampletid WHEN 142 THEN b.samplevalue ELSE 0 END)) as the_size,(SUM(CASE b.sampletid WHEN 143 THEN b.samplevalue ELSE 0 END)) as the_time FROM t1 a, t2 b WHERE a.hmid = b.hmid AND a.volid = b.volid AND b.sampletime >= 'wrong-date-value' AND b.sampletime < 'wrong-date-value' AND b.sampletid IN (140, 141, 142, 143) GROUP BY a.gvid;
-gvid the_success the_fail the_size the_time
-Warnings:
-Warning 1292 Incorrect datetime value: 'wrong-date-value'
-Warning 1292 Incorrect datetime value: 'wrong-date-value'
-SELECT a.gvid, (SUM(CASE b.sampletid WHEN 140 THEN b.samplevalue ELSE 0 END)) as the_success,(SUM(CASE b.sampletid WHEN 141 THEN b.samplevalue ELSE 0 END)) as the_fail,(SUM(CASE b.sampletid WHEN 142 THEN b.samplevalue ELSE 0 END)) as the_size,(SUM(CASE b.sampletid WHEN 143 THEN b.samplevalue ELSE 0 END)) as the_time FROM t1 a, t2 b WHERE a.hmid = b.hmid AND a.volid = b.volid AND b.sampletime >= NULL AND b.sampletime < NULL AND b.sampletid IN (140, 141, 142, 143) GROUP BY a.gvid;
-gvid the_success the_fail the_size the_time
-DROP TABLE t1,t2;
-create table t1 ( A_Id bigint(20) NOT NULL default '0', A_UpdateBy char(10) NOT NULL default '', A_UpdateDate bigint(20) NOT NULL default '0', A_UpdateSerial int(11) NOT NULL default '0', other_types bigint(20) NOT NULL default '0', wss_type bigint(20) NOT NULL default '0');
-INSERT INTO t1 VALUES (102935998719055004,'brade',1029359987,2,102935229116544068,102935229216544093);
-select wss_type from t1 where wss_type ='102935229216544106';
-wss_type
-select wss_type from t1 where wss_type ='102935229216544105';
-wss_type
-select wss_type from t1 where wss_type ='102935229216544104';
-wss_type
-select wss_type from t1 where wss_type ='102935229216544093';
-wss_type
-102935229216544093
-select wss_type from t1 where wss_type =102935229216544093;
-wss_type
-102935229216544093
-drop table t1;
-select 1+2,"aaaa",3.13*2.0 into @a,@b,@c;
-select @a;
-@a
-3
-select @b;
-@b
-aaaa
-select @c;
-@c
-6.260
-create table t1 (a int not null auto_increment primary key);
-insert into t1 values ();
-insert into t1 values ();
-insert into t1 values ();
-select * from (t1 as t2 left join t1 as t3 using (a)), t1;
-a a
-1 1
-2 1
-3 1
-1 2
-2 2
-3 2
-1 3
-2 3
-3 3
-select * from t1, (t1 as t2 left join t1 as t3 using (a));
-a a
-1 1
-2 1
-3 1
-1 2
-2 2
-3 2
-1 3
-2 3
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) straight_join t1;
-a a
-1 1
-2 1
-3 1
-1 2
-2 2
-3 2
-1 3
-2 3
-3 3
-select * from t1 straight_join (t1 as t2 left join t1 as t3 using (a));
-a a
-1 1
-2 1
-3 1
-1 2
-2 2
-3 2
-1 3
-2 3
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) inner join t1 on t1.a>1;
-a a
-1 2
-1 3
-2 2
-2 3
-3 2
-3 3
-select * from t1 inner join (t1 as t2 left join t1 as t3 using (a)) on t1.a>1;
-a a
-2 1
-3 1
-2 2
-3 2
-2 3
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) inner join t1 using ( a );
-a
-1
-2
-3
-select * from t1 inner join (t1 as t2 left join t1 as t3 using (a)) using ( a );
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) left outer join t1 on t1.a>1;
-a a
-1 2
-1 3
-2 2
-2 3
-3 2
-3 3
-select * from t1 left outer join (t1 as t2 left join t1 as t3 using (a)) on t1.a>1;
-a a
-1 NULL
-2 1
-2 2
-2 3
-3 1
-3 2
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) left join t1 using ( a );
-a
-1
-2
-3
-select * from t1 left join (t1 as t2 left join t1 as t3 using (a)) using ( a );
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) natural left join t1;
-a
-1
-2
-3
-select * from t1 natural left join (t1 as t2 left join t1 as t3 using (a));
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) right join t1 on t1.a>1;
-a a
-1 2
-1 3
-2 2
-2 3
-3 2
-3 3
-NULL 1
-select * from t1 right join (t1 as t2 left join t1 as t3 using (a)) on t1.a>1;
-a a
-2 1
-2 2
-2 3
-3 1
-3 2
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) right outer join t1 using ( a );
-a
-1
-2
-3
-select * from t1 right outer join (t1 as t2 left join t1 as t3 using (a)) using ( a );
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) natural right join t1;
-a
-1
-2
-3
-select * from t1 natural right join (t1 as t2 left join t1 as t3 using (a));
-a
-1
-2
-3
-select * from t1 natural join (t1 as t2 left join t1 as t3 using (a));
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) natural join t1;
-a
-1
-2
-3
-drop table t1;
-CREATE TABLE t1 ( aa char(2), id int(11) NOT NULL auto_increment, t2_id int(11) NOT NULL default '0', PRIMARY KEY (id), KEY replace_id (t2_id)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ("1",8264,2506),("2",8299,2517),("3",8301,2518),("4",8302,2519),("5",8303,2520),("6",8304,2521),("7",8305,2522);
-CREATE TABLE t2 ( id int(11) NOT NULL auto_increment, PRIMARY KEY (id)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (2517), (2518), (2519), (2520), (2521), (2522);
-select * from t1, t2 WHERE t1.t2_id = t2.id and t1.t2_id > 0 order by t1.id LIMIT 0, 5;
-aa id t2_id id
-2 8299 2517 2517
-3 8301 2518 2518
-4 8302 2519 2519
-5 8303 2520 2520
-6 8304 2521 2521
-drop table t1,t2;
-create table t1 (id1 int NOT NULL);
-create table t2 (id2 int NOT NULL);
-create table t3 (id3 int NOT NULL);
-create table t4 (id4 int NOT NULL, id44 int NOT NULL, KEY (id4));
-insert into t1 values (1);
-insert into t1 values (2);
-insert into t2 values (1);
-insert into t4 values (1,1);
-explain select * from t1 left join t2 on id1 = id2 left join t3 on id1 = id3
-left join t4 on id3 = id4 where id2 = 1 or id4 = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 system NULL NULL NULL NULL 0 Const row not found
-1 SIMPLE t4 const id4 NULL NULL NULL 1
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1 Using where
-select * from t1 left join t2 on id1 = id2 left join t3 on id1 = id3
-left join t4 on id3 = id4 where id2 = 1 or id4 = 1;
-id1 id2 id3 id4 id44
-1 1 NULL NULL NULL
-drop table t1,t2,t3,t4;
-create table t1(s varchar(10) not null);
-create table t2(s varchar(10) not null primary key);
-create table t3(s varchar(10) not null primary key);
-insert into t1 values ('one\t'), ('two\t');
-insert into t2 values ('one\r'), ('two\t');
-insert into t3 values ('one '), ('two\t');
-select * from t1 where s = 'one';
-s
-select * from t2 where s = 'one';
-s
-select * from t3 where s = 'one';
-s
-one
-select * from t1,t2 where t1.s = t2.s;
-s s
-two two
-select * from t2,t3 where t2.s = t3.s;
-s s
-two two
-drop table t1, t2, t3;
-create table t1 (a integer, b integer, index(a), index(b));
-create table t2 (c integer, d integer, index(c), index(d));
-insert into t1 values (1,2), (2,2), (3,2), (4,2);
-insert into t2 values (1,3), (2,3), (3,4), (4,4);
-explain select * from t1 left join t2 on a=c where d in (4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref c,d d 5 const 2
-1 SIMPLE t1 ALL a NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-select * from t1 left join t2 on a=c where d in (4);
-a b c d
-3 2 3 4
-4 2 4 4
-explain select * from t1 left join t2 on a=c where d = 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref c,d d 5 const 2
-1 SIMPLE t1 ALL a NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-select * from t1 left join t2 on a=c where d = 4;
-a b c d
-3 2 3 4
-4 2 4 4
-drop table t1, t2;
-CREATE TABLE t1 (
-i int(11) NOT NULL default '0',
-c char(10) NOT NULL default '',
-PRIMARY KEY (i),
-UNIQUE KEY c (c)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'a');
-INSERT INTO t1 VALUES (2,'b');
-INSERT INTO t1 VALUES (3,'c');
-EXPLAIN SELECT i FROM t1 WHERE i=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-DROP TABLE t1;
-CREATE TABLE t1 ( a BLOB, INDEX (a(20)) );
-CREATE TABLE t2 ( a BLOB, INDEX (a(20)) );
-INSERT INTO t1 VALUES ('one'),('two'),('three'),('four'),('five');
-INSERT INTO t2 VALUES ('one'),('two'),('three'),('four'),('five');
-INSERT INTO t2 VALUES ('one'),('two'),('three'),('four'),('five');
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 USE INDEX (a) ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref a a 23 test.t1.a 2 Using where
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 FORCE INDEX (a) ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref a a 23 test.t1.a 2 Using where
-DROP TABLE t1, t2;
-CREATE TABLE t1 ( city char(30) );
-INSERT INTO t1 VALUES ('London');
-INSERT INTO t1 VALUES ('Paris');
-SELECT * FROM t1 WHERE city='London';
-city
-London
-SELECT * FROM t1 WHERE city='london';
-city
-London
-EXPLAIN SELECT * FROM t1 WHERE city='London' AND city='london';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 WHERE city='London' AND city='london';
-city
-London
-EXPLAIN SELECT * FROM t1 WHERE city LIKE '%london%' AND city='London';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 WHERE city LIKE '%london%' AND city='London';
-city
-London
-DROP TABLE t1;
-create table t1 (a int(11) unsigned, b int(11) unsigned);
-insert into t1 values (1,0), (1,1), (18446744073709551615,0);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 3
-select a-b from t1 order by 1;
-a-b
-0
-1
-4294967295
-select a-b , (a-b < 0) from t1 order by 1;
-a-b (a-b < 0)
-0 0
-1 0
-4294967295 0
-select a-b as d, (a-b >= 0), b from t1 group by b having d >= 0;
-d (a-b >= 0) b
-1 1 0
-0 1 1
-select cast((a - b) as unsigned) from t1 order by 1;
-cast((a - b) as unsigned)
-0
-1
-4294967295
-drop table t1;
-create table t1 (a int(11));
-select all all * from t1;
-a
-select distinct distinct * from t1;
-a
-select all distinct * from t1;
-ERROR HY000: Incorrect usage of ALL and DISTINCT
-select distinct all * from t1;
-ERROR HY000: Incorrect usage of ALL and DISTINCT
-drop table t1;
-CREATE TABLE t1 (
-kunde_intern_id int(10) unsigned NOT NULL default '0',
-kunde_id int(10) unsigned NOT NULL default '0',
-FK_firma_id int(10) unsigned NOT NULL default '0',
-aktuell enum('Ja','Nein') NOT NULL default 'Ja',
-vorname varchar(128) NOT NULL default '',
-nachname varchar(128) NOT NULL default '',
-geloescht enum('Ja','Nein') NOT NULL default 'Nein',
-firma varchar(128) NOT NULL default ''
-);
-INSERT INTO t1 VALUES
-(3964,3051,1,'Ja','Vorname1','1Nachname','Nein','Print Schau XXXX'),
-(3965,3051111,1,'Ja','Vorname1111','1111Nachname','Nein','Print Schau XXXX');
-SELECT kunde_id ,FK_firma_id ,aktuell, vorname, nachname, geloescht FROM t1
-WHERE
-(
-(
-( '' != '' AND firma LIKE CONCAT('%', '', '%'))
-OR
-(vorname LIKE CONCAT('%', 'Vorname1', '%') AND
-nachname LIKE CONCAT('%', '1Nachname', '%') AND
-'Vorname1' != '' AND 'xxxx' != '')
-)
-AND
-(
-aktuell = 'Ja' AND geloescht = 'Nein' AND FK_firma_id = 2
-)
-)
-;
-kunde_id FK_firma_id aktuell vorname nachname geloescht
-SELECT kunde_id ,FK_firma_id ,aktuell, vorname, nachname,
-geloescht FROM t1
-WHERE
-(
-(
-aktuell = 'Ja' AND geloescht = 'Nein' AND FK_firma_id = 2
-)
-AND
-(
-( '' != '' AND firma LIKE CONCAT('%', '', '%') )
-OR
-( vorname LIKE CONCAT('%', 'Vorname1', '%') AND
-nachname LIKE CONCAT('%', '1Nachname', '%') AND 'Vorname1' != '' AND
-'xxxx' != '')
-)
-)
-;
-kunde_id FK_firma_id aktuell vorname nachname geloescht
-SELECT COUNT(*) FROM t1 WHERE
-( 0 OR (vorname LIKE '%Vorname1%' AND nachname LIKE '%1Nachname%' AND 1))
-AND FK_firma_id = 2;
-COUNT(*)
-0
-drop table t1;
-CREATE TABLE t1 (b BIGINT(20) UNSIGNED NOT NULL, PRIMARY KEY (b));
-INSERT INTO t1 VALUES (0x8000000000000000);
-SELECT b FROM t1 WHERE b=0x8000000000000000;
-b
-9223372036854775808
-DROP TABLE t1;
-CREATE TABLE `t1` ( `gid` int(11) default NULL, `uid` int(11) default NULL);
-CREATE TABLE `t2` ( `ident` int(11) default NULL, `level` char(16) default NULL);
-INSERT INTO `t2` VALUES (0,'READ');
-CREATE TABLE `t3` ( `id` int(11) default NULL, `name` char(16) default NULL);
-INSERT INTO `t3` VALUES (1,'fs');
-select * from t3 left join t1 on t3.id = t1.uid, t2 where t2.ident in (0, t1.gid, t3.id, 0);
-id name gid uid ident level
-1 fs NULL NULL 0 READ
-drop table t1,t2,t3;
-CREATE TABLE t1 (
-acct_id int(11) NOT NULL default '0',
-profile_id smallint(6) default NULL,
-UNIQUE KEY t1$acct_id (acct_id),
-KEY t1$profile_id (profile_id)
-);
-INSERT INTO t1 VALUES (132,17),(133,18);
-CREATE TABLE t2 (
-profile_id smallint(6) default NULL,
-queue_id int(11) default NULL,
-seq int(11) default NULL,
-KEY t2$queue_id (queue_id)
-);
-INSERT INTO t2 VALUES (17,31,4),(17,30,3),(17,36,2),(17,37,1);
-CREATE TABLE t3 (
-id int(11) NOT NULL default '0',
-qtype int(11) default NULL,
-seq int(11) default NULL,
-warn_lvl int(11) default NULL,
-crit_lvl int(11) default NULL,
-rr1 tinyint(4) NOT NULL default '0',
-rr2 int(11) default NULL,
-default_queue tinyint(4) NOT NULL default '0',
-KEY t3$qtype (qtype),
-KEY t3$id (id)
-);
-INSERT INTO t3 VALUES (30,1,29,NULL,NULL,0,NULL,0),(31,1,28,NULL,NULL,0,NULL,0),
-(36,1,34,NULL,NULL,0,NULL,0),(37,1,35,NULL,NULL,0,121,0);
-SELECT COUNT(*) FROM t1 a STRAIGHT_JOIN t2 pq STRAIGHT_JOIN t3 q
-WHERE
-(pq.profile_id = a.profile_id) AND (a.acct_id = 132) AND
-(pq.queue_id = q.id) AND (q.rr1 <> 1);
-COUNT(*)
-4
-drop table t1,t2,t3;
-create table t1 (f1 int);
-insert into t1 values (1),(NULL);
-create table t2 (f2 int, f3 int, f4 int);
-create index idx1 on t2 (f4);
-insert into t2 values (1,2,3),(2,4,6);
-select A.f2 from t1 left join t2 A on A.f2 = f1 where A.f3=(select min(f3)
-from t2 C where A.f4 = C.f4) or A.f3 IS NULL;
-f2
-1
-NULL
-drop table t1,t2;
-create table t2 (a tinyint unsigned);
-create index t2i on t2(a);
-insert into t2 values (0), (254), (255);
-explain select * from t2 where a > -1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index t2i t2i 2 NULL 3 Using where; Using index
-select * from t2 where a > -1;
-a
-0
-254
-255
-drop table t2;
-CREATE TABLE t1 (a int, b int, c int);
-INSERT INTO t1
-SELECT 50, 3, 3 FROM DUAL
-WHERE NOT EXISTS
-(SELECT * FROM t1 WHERE a = 50 AND b = 3);
-SELECT * FROM t1;
-a b c
-50 3 3
-INSERT INTO t1
-SELECT 50, 3, 3 FROM DUAL
-WHERE NOT EXISTS
-(SELECT * FROM t1 WHERE a = 50 AND b = 3);
-select found_rows();
-found_rows()
-0
-SELECT * FROM t1;
-a b c
-50 3 3
-select count(*) from t1;
-count(*)
-1
-select found_rows();
-found_rows()
-1
-select count(*) from t1 limit 2,3;
-count(*)
-select found_rows();
-found_rows()
-0
-select SQL_CALC_FOUND_ROWS count(*) from t1 limit 2,3;
-count(*)
-select found_rows();
-found_rows()
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-(SELECT a, b AS c FROM t1) ORDER BY c+1;
-a c
-(SELECT a, b AS c FROM t1) ORDER BY b+1;
-a c
-SELECT a, b AS c FROM t1 ORDER BY c+1;
-a c
-SELECT a, b AS c FROM t1 ORDER BY b+1;
-a c
-drop table t1;
-create table t1(f1 int, f2 int);
-create table t2(f3 int);
-select f1 from t1,t2 where f1=f2 and (f1,f2) = ((1,1));
-f1
-select f1 from t1,t2 where f1=f2 and (f1,NULL) = ((1,1));
-f1
-select f1 from t1,t2 where f1=f2 and (f1,f2) = ((1,NULL));
-f1
-insert into t1 values(1,1),(2,null);
-insert into t2 values(2);
-select * from t1,t2 where f1=f3 and (f1,f2) = (2,null);
-f1 f2 f3
-select * from t1,t2 where f1=f3 and (f1,f2) <=> (2,null);
-f1 f2 f3
-2 NULL 2
-drop table t1,t2;
-create table t1 (f1 int not null auto_increment primary key, f2 varchar(10));
-create table t11 like t1;
-insert into t1 values(1,""),(2,"");
-show table status like 't1%';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Dynamic 2 20 X X X X X X X X latin1_swedish_ci NULL X N
-t11 MyISAM 10 Dynamic 0 0 X X X X X X X X latin1_swedish_ci NULL X N
-select 123 as a from t1 where f1 is null;
-a
-drop table t1,t11;
-CREATE TABLE t1 ( a INT NOT NULL, b INT NOT NULL, UNIQUE idx (a,b) );
-INSERT INTO t1 VALUES (1,1),(1,2),(1,3),(1,4);
-CREATE TABLE t2 ( a INT NOT NULL, b INT NOT NULL, e INT );
-INSERT INTO t2 VALUES ( 1,10,1), (1,10,2), (1,11,1), (1,11,2), (1,2,1), (1,2,2),(1,2,3);
-SELECT t2.a, t2.b, IF(t1.b IS NULL,'',e) AS c, COUNT(*) AS d FROM t2 LEFT JOIN
-t1 ON t2.a = t1.a AND t2.b = t1.b GROUP BY a, b, c;
-a b c d
-1 2 1 1
-1 2 2 1
-1 2 3 1
-1 10 2
-1 11 2
-SELECT t2.a, t2.b, IF(t1.b IS NULL,'',e) AS c, COUNT(*) AS d FROM t2 LEFT JOIN
-t1 ON t2.a = t1.a AND t2.b = t1.b GROUP BY t1.a, t1.b, c;
-a b c d
-1 10 4
-1 2 1 1
-1 2 2 1
-1 2 3 1
-SELECT t2.a, t2.b, IF(t1.b IS NULL,'',e) AS c, COUNT(*) AS d FROM t2 LEFT JOIN
-t1 ON t2.a = t1.a AND t2.b = t1.b GROUP BY t2.a, t2.b, c;
-a b c d
-1 2 1 1
-1 2 2 1
-1 2 3 1
-1 10 2
-1 11 2
-SELECT t2.a, t2.b, IF(t1.b IS NULL,'',e) AS c, COUNT(*) AS d FROM t2,t1
-WHERE t2.a = t1.a AND t2.b = t1.b GROUP BY a, b, c;
-a b c d
-1 2 1 1
-1 2 2 1
-1 2 3 1
-DROP TABLE IF EXISTS t1, t2;
-create table t1 (f1 int primary key, f2 int);
-create table t2 (f3 int, f4 int, primary key(f3,f4));
-insert into t1 values (1,1);
-insert into t2 values (1,1),(1,2);
-select distinct count(f2) >0 from t1 left join t2 on f1=f3 group by f1;
-count(f2) >0
-1
-drop table t1,t2;
-create table t1 (f1 int,f2 int);
-insert into t1 values(1,1);
-create table t2 (f3 int, f4 int, primary key(f3,f4));
-insert into t2 values(1,1);
-select * from t1 where f1 in (select f3 from t2 where (f3,f4)= (select f3,f4 from t2));
-f1 f2
-1 1
-drop table t1,t2;
-CREATE TABLE t1(a int, b int, c int, KEY b(b), KEY c(c));
-insert into t1 values (1,0,0),(2,0,0);
-CREATE TABLE t2 (a int, b varchar(2), c varchar(2), PRIMARY KEY(a));
-insert into t2 values (1,'',''), (2,'','');
-CREATE TABLE t3 (a int, b int, PRIMARY KEY (a,b), KEY a (a), KEY b (b));
-insert into t3 values (1,1),(1,2);
-explain select straight_join DISTINCT t2.a,t2.b, t1.c from t1, t3, t2
-where (t1.c=t2.a or (t1.c=t3.a and t2.a=t3.b)) and t1.b=556476786 and
-t2.b like '%%' order by t2.b limit 0,1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref b,c b 5 const 1 Using temporary; Using filesort
-1 SIMPLE t3 index PRIMARY,a,b PRIMARY 8 NULL 2 Using index; Using join buffer (flat, BNL join)
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 2 Range checked for each record (index map: 0x1)
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a int, INDEX idx(a));
-INSERT INTO t1 VALUES (2), (3), (1);
-EXPLAIN SELECT * FROM t1 IGNORE INDEX (idx);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-EXPLAIN SELECT * FROM t1 IGNORE INDEX (a);
-ERROR 42000: Key 'a' doesn't exist in table 't1'
-EXPLAIN SELECT * FROM t1 FORCE INDEX (a);
-ERROR 42000: Key 'a' doesn't exist in table 't1'
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (1,1), (2,1), (4,10);
-CREATE TABLE t2 (a int PRIMARY KEY, b int, KEY b (b));
-INSERT INTO t2 VALUES (1,NULL), (2,10);
-ALTER TABLE t1 ENABLE KEYS;
-EXPLAIN SELECT STRAIGHT_JOIN SQL_NO_CACHE COUNT(*) FROM t2, t1 WHERE t1.b = t2.b OR t2.b IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index b b 5 NULL 2 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-SELECT STRAIGHT_JOIN SQL_NO_CACHE * FROM t2, t1 WHERE t1.b = t2.b OR t2.b IS NULL;
-a b a b
-1 NULL 1 1
-1 NULL 2 1
-1 NULL 4 10
-2 10 4 10
-EXPLAIN SELECT STRAIGHT_JOIN SQL_NO_CACHE COUNT(*) FROM t2, t1 WHERE t1.b = t2.b OR t2.b IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index b b 5 NULL 2 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-SELECT STRAIGHT_JOIN SQL_NO_CACHE * FROM t2, t1 WHERE t1.b = t2.b OR t2.b IS NULL;
-a b a b
-1 NULL 1 1
-1 NULL 2 1
-1 NULL 4 10
-2 10 4 10
-DROP TABLE IF EXISTS t1,t2;
-CREATE TABLE t1 (key1 float default NULL, UNIQUE KEY key1 (key1));
-CREATE TABLE t2 (key2 float default NULL, UNIQUE KEY key2 (key2));
-INSERT INTO t1 VALUES (0.3762),(0.3845),(0.6158),(0.7941);
-INSERT INTO t2 VALUES (1.3762),(1.3845),(1.6158),(1.7941);
-explain select max(key1) from t1 where key1 <= 0.6158;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select max(key2) from t2 where key2 <= 1.6158;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select min(key1) from t1 where key1 >= 0.3762;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select min(key2) from t2 where key2 >= 1.3762;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select max(key1), min(key2) from t1, t2
-where key1 <= 0.6158 and key2 >= 1.3762;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select max(key1) from t1 where key1 <= 0.6158 and rand() + 0.5 >= 0.5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index key1 key1 5 NULL 4 Using where; Using index
-explain select min(key1) from t1 where key1 >= 0.3762 and rand() + 0.5 >= 0.5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range key1 key1 5 NULL 3 Using where; Using index
-select max(key1) from t1 where key1 <= 0.6158;
-max(key1)
-0.6158000230789185
-select max(key2) from t2 where key2 <= 1.6158;
-max(key2)
-1.6158000230789185
-select min(key1) from t1 where key1 >= 0.3762;
-min(key1)
-0.37619999051094055
-select min(key2) from t2 where key2 >= 1.3762;
-min(key2)
-1.3761999607086182
-select max(key1), min(key2) from t1, t2
-where key1 <= 0.6158 and key2 >= 1.3762;
-max(key1) min(key2)
-0.6158000230789185 1.3761999607086182
-select max(key1) from t1 where key1 <= 0.6158 and rand() + 0.5 >= 0.5;
-max(key1)
-0.38449999690055847
-select min(key1) from t1 where key1 >= 0.3762 and rand() + 0.5 >= 0.5;
-min(key1)
-0.38449999690055847
-DROP TABLE t1,t2;
-CREATE TABLE t1 (i BIGINT UNSIGNED NOT NULL);
-INSERT INTO t1 VALUES (10);
-SELECT i='1e+01',i=1e+01, i in (1e+01,1e+01), i in ('1e+01','1e+01') FROM t1;
-i='1e+01' i=1e+01 i in (1e+01,1e+01) i in ('1e+01','1e+01')
-1 1 1 1
-DROP TABLE t1;
-create table t1(a bigint unsigned, b bigint);
-insert ignore into t1 values (0xfffffffffffffffff, 0xfffffffffffffffff),
-(0x10000000000000000, 0x10000000000000000),
-(0x8fffffffffffffff, 0x8fffffffffffffff);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'b' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'b' at row 2
-Warning 1264 Out of range value for column 'b' at row 3
-select hex(a), hex(b) from t1;
-hex(a) hex(b)
-FFFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
-FFFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
-8FFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
-drop table t1;
-CREATE TABLE t1 (c0 int);
-CREATE TABLE t2 (c0 int);
-INSERT INTO t1 VALUES(@@connect_timeout);
-INSERT INTO t2 VALUES(@@connect_timeout);
-SELECT * FROM t1 JOIN t2 ON t1.c0 = t2.c0 WHERE (t1.c0 <=> @@connect_timeout);
-c0 c0
-X X
-DROP TABLE t1, t2;
-End of 4.1 tests
-CREATE TABLE t1 (
-K2C4 varchar(4) character set latin1 collate latin1_bin NOT NULL default '',
-K4N4 varchar(4) character set latin1 collate latin1_bin NOT NULL default '0000',
-F2I4 int(11) NOT NULL default '0'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES
-('W%RT', '0100', 1),
-('W-RT', '0100', 1),
-('WART', '0100', 1),
-('WART', '0200', 1),
-('WERT', '0100', 2),
-('WORT','0200', 2),
-('WT', '0100', 2),
-('W_RT', '0100', 2),
-('WaRT', '0100', 3),
-('WART', '0300', 3),
-('WRT' , '0400', 3),
-('WURM', '0500', 3),
-('W%T', '0600', 4),
-('WA%T', '0700', 4),
-('WA_T', '0800', 4);
-SELECT K2C4, K4N4, F2I4 FROM t1
-WHERE K2C4 = 'WART' AND
-(F2I4 = 2 AND K2C4 = 'WART' OR (F2I4 = 2 OR K4N4 = '0200'));
-K2C4 K4N4 F2I4
-WART 0200 1
-SELECT K2C4, K4N4, F2I4 FROM t1
-WHERE K2C4 = 'WART' AND (K2C4 = 'WART' OR K4N4 = '0200');
-K2C4 K4N4 F2I4
-WART 0100 1
-WART 0200 1
-WART 0300 3
-DROP TABLE t1;
-create table t1 (a int, b int);
-create table t2 like t1;
-select t1.a from (t1 inner join t2 on t1.a=t2.a) where t2.a=1;
-a
-select t1.a from ((t1 inner join t2 on t1.a=t2.a)) where t2.a=1;
-a
-select x.a, y.a, z.a from ( (t1 x inner join t2 y on x.a=y.a) inner join t2 z on y.a=z.a) WHERE x.a=1;
-a a a
-drop table t1,t2;
-create table t1 (s1 varchar(5));
-insert into t1 values ('Wall');
-select min(s1) from t1 group by s1 with rollup;
-min(s1)
-Wall
-Wall
-drop table t1;
-create table t1 (s1 int) engine=myisam;
-insert into t1 values (0);
-select avg(distinct s1) from t1 group by s1 with rollup;
-avg(distinct s1)
-0.0000
-0.0000
-drop table t1;
-create table t1 (s1 int);
-insert into t1 values (null),(1);
-select distinct avg(s1) as x from t1 group by s1 with rollup;
-x
-NULL
-1.0000
-drop table t1;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int);
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
-INSERT INTO t2 VALUES (2), (4), (6);
-SELECT t1.a FROM t1 STRAIGHT_JOIN t2 ON t1.a=t2.a;
-a
-2
-4
-EXPLAIN SELECT t1.a FROM t1 STRAIGHT_JOIN t2 ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-EXPLAIN SELECT t1.a FROM t1 INNER JOIN t2 ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-DROP TABLE t1,t2;
-select x'3136' + 0, X'3136' + 0, b'10' + 0, B'10' + 0;
-x'3136' + 0 X'3136' + 0 b'10' + 0 B'10' + 0
-16 16 2 2
-create table t1 (f1 varchar(6) default NULL, f2 int(6) primary key not null);
-create table t2 (f3 varchar(5) not null, f4 varchar(5) not null, UNIQUE KEY UKEY (f3,f4));
-insert into t1 values (" 2", 2);
-insert into t2 values (" 2", " one "),(" 2", " two ");
-select * from t1 left join t2 on f1 = f3;
-f1 f2 f3 f4
- 2 2 2 one
- 2 2 2 two
-drop table t1,t2;
-create table t1 (empnum smallint, grp int);
-create table t2 (empnum int, name char(5));
-insert into t1 values(1,1);
-insert into t2 values(1,'bob');
-create view v1 as select * from t2 inner join t1 using (empnum);
-select * from v1;
-empnum name grp
-1 bob 1
-drop table t1,t2;
-drop view v1;
-create table t1 (pk int primary key, b int);
-create table t2 (pk int primary key, c int);
-select pk from t1 inner join t2 using (pk);
-pk
-drop table t1,t2;
-create table t1 (s1 int, s2 char(5), s3 decimal(10));
-create view v1 as select s1, s2, 'x' as s3 from t1;
-select * from t1 natural join v1;
-s1 s2 s3
-insert into t1 values (1,'x',5);
-select * from t1 natural join v1;
-s1 s2 s3
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: 'x'
-drop table t1;
-drop view v1;
-create table t1(a1 int);
-create table t2(a2 int);
-insert into t1 values(1),(2);
-insert into t2 values(1),(2);
-create view v2 (c) as select a1 from t1;
-select * from t1 natural left join t2;
-a1 a2
-1 1
-1 2
-2 1
-2 2
-select * from t1 natural right join t2;
-a2 a1
-1 1
-1 2
-2 1
-2 2
-select * from v2 natural left join t2;
-c a2
-1 1
-1 2
-2 1
-2 2
-select * from v2 natural right join t2;
-a2 c
-1 1
-1 2
-2 1
-2 2
-drop table t1, t2;
-drop view v2;
-create table t1 (a int(10), t1_val int(10));
-create table t2 (b int(10), t2_val int(10));
-create table t3 (a int(10), b int(10));
-insert into t1 values (1,1),(2,2);
-insert into t2 values (1,1),(2,2),(3,3);
-insert into t3 values (1,1),(2,1),(3,1),(4,1);
-select * from t1 natural join t2 natural join t3;
-a b t1_val t2_val
-1 1 1 1
-2 1 2 1
-select * from t1 natural join t3 natural join t2;
-b a t1_val t2_val
-1 1 1 1
-1 2 2 1
-drop table t1, t2, t3;
-DO IFNULL(NULL, NULL);
-SELECT CAST(IFNULL(NULL, NULL) AS DECIMAL);
-CAST(IFNULL(NULL, NULL) AS DECIMAL)
-NULL
-SELECT ABS(IFNULL(NULL, NULL));
-ABS(IFNULL(NULL, NULL))
-NULL
-SELECT IFNULL(NULL, NULL);
-IFNULL(NULL, NULL)
-NULL
-SET @OLD_SQL_MODE12595=@@SQL_MODE, @@SQL_MODE='';
-SHOW LOCAL VARIABLES LIKE 'SQL_MODE';
-Variable_name Value
-sql_mode
-CREATE TABLE BUG_12595(a varchar(100));
-INSERT INTO BUG_12595 VALUES ('hakan%'), ('hakank'), ("ha%an");
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%';
-a
-hakan%
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan*%' ESCAPE '*';
-a
-hakan%
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan**%' ESCAPE '**';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan%' ESCAPE '';
-a
-hakan%
-hakank
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%' ESCAPE '';
-a
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha\%an' ESCAPE 0x5c;
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha%%an' ESCAPE '%';
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha\%an' ESCAPE '\\';
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha|%an' ESCAPE '|';
-a
-ha%an
-SET @@SQL_MODE='NO_BACKSLASH_ESCAPES';
-SHOW LOCAL VARIABLES LIKE 'SQL_MODE';
-Variable_name Value
-sql_mode NO_BACKSLASH_ESCAPES
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%';
-a
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan*%' ESCAPE '*';
-a
-hakan%
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan**%' ESCAPE '**';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%' ESCAPE '\\';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan%' ESCAPE '';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha\%an' ESCAPE 0x5c;
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha|%an' ESCAPE '|';
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\n%' ESCAPE '\n';
-ERROR HY000: Incorrect arguments to ESCAPE
-SET @@SQL_MODE=@OLD_SQL_MODE12595;
-DROP TABLE BUG_12595;
-create table t1 (a char(1));
-create table t2 (a char(1));
-insert into t1 values ('a'),('b'),('c');
-insert into t2 values ('b'),('c'),('d');
-select a from t1 natural join t2;
-a
-b
-c
-select * from t1 natural join t2 where a = 'b';
-a
-b
-drop table t1, t2;
-CREATE TABLE t1 (`id` TINYINT);
-CREATE TABLE t2 (`id` TINYINT);
-CREATE TABLE t3 (`id` TINYINT);
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t2 VALUES (2);
-INSERT INTO t3 VALUES (3);
-SELECT t1.id,t3.id FROM t1 JOIN t2 ON (t2.id=t1.id) LEFT JOIN t3 USING (id);
-ERROR 23000: Column 'id' in from clause is ambiguous
-SELECT t1.id,t3.id FROM t1 JOIN t2 ON (t2.notacolumn=t1.id) LEFT JOIN t3 USING (id);
-ERROR 23000: Column 'id' in from clause is ambiguous
-SELECT id,t3.id FROM t1 JOIN t2 ON (t2.id=t1.id) LEFT JOIN t3 USING (id);
-ERROR 23000: Column 'id' in from clause is ambiguous
-SELECT id,t3.id FROM (t1 JOIN t2 ON (t2.id=t1.id)) LEFT JOIN t3 USING (id);
-ERROR 23000: Column 'id' in from clause is ambiguous
-drop table t1, t2, t3;
-create table t1 (a int(10),b int(10));
-create table t2 (a int(10),b int(10));
-insert into t1 values (1,10),(2,20),(3,30);
-insert into t2 values (1,10);
-select * from t1 inner join t2 using (A);
-a b b
-1 10 10
-select * from t1 inner join t2 using (a);
-a b b
-1 10 10
-drop table t1, t2;
-create table t1 (a int, c int);
-create table t2 (b int);
-create table t3 (b int, a int);
-create table t4 (c int);
-insert into t1 values (1,1);
-insert into t2 values (1);
-insert into t3 values (1,1);
-insert into t4 values (1);
-select * from t1 join t2 join t3 on (t2.b = t3.b and t1.a = t3.a);
-a c b b a
-1 1 1 1 1
-select * from t1, t2 join t3 on (t2.b = t3.b and t1.a = t3.a);
-ERROR 42S22: Unknown column 't1.a' in 'on clause'
-select * from t1 join t2 join t3 join t4 on (t1.a = t4.c and t2.b = t4.c);
-a c b b a c
-1 1 1 1 1 1
-select * from t1 join t2 join t4 using (c);
-c a b
-1 1 1
-drop table t1, t2, t3, t4;
-create table t1(x int, y int);
-create table t2(x int, y int);
-create table t3(x int, primary key(x));
-insert into t1 values (1, 1), (2, 1), (3, 1), (4, 3), (5, 6), (6, 6);
-insert into t2 values (1, 1), (2, 1), (3, 3), (4, 6), (5, 6);
-insert into t3 values (1), (2), (3), (4), (5);
-select t1.x, t3.x from t1, t2, t3 where t1.x = t2.x and t3.x >= t1.y and t3.x <= t2.y;
-x x
-1 1
-2 1
-3 1
-3 2
-3 3
-4 3
-4 4
-4 5
-drop table t1,t2,t3;
-create table t1 (id char(16) not null default '', primary key (id));
-insert into t1 values ('100'),('101'),('102');
-create table t2 (id char(16) default null);
-insert into t2 values (1);
-create view v1 as select t1.id from t1;
-create view v2 as select t2.id from t2;
-create view v3 as select (t1.id+2) as id from t1 natural left join t2;
-select t1.id from t1 left join v2 using (id);
-id
-100
-101
-102
-select t1.id from v2 right join t1 using (id);
-id
-100
-101
-102
-select t1.id from t1 left join v3 using (id);
-id
-100
-101
-102
-select * from t1 left join v2 using (id);
-id
-100
-101
-102
-select * from v2 right join t1 using (id);
-id
-100
-101
-102
-select * from t1 left join v3 using (id);
-id
-100
-101
-102
-select v1.id from v1 left join v2 using (id);
-id
-100
-101
-102
-select v1.id from v2 right join v1 using (id);
-id
-100
-101
-102
-select v1.id from v1 left join v3 using (id);
-id
-100
-101
-102
-select * from v1 left join v2 using (id);
-id
-100
-101
-102
-select * from v2 right join v1 using (id);
-id
-100
-101
-102
-select * from v1 left join v3 using (id);
-id
-100
-101
-102
-drop table t1, t2;
-drop view v1, v2, v3;
-create table t1 (id int(11) not null default '0');
-insert into t1 values (123),(191),(192);
-create table t2 (id char(16) character set utf8 not null);
-insert into t2 values ('58013'),('58014'),('58015'),('58016');
-create table t3 (a_id int(11) not null, b_id char(16) character set utf8);
-insert into t3 values (123,null),(123,null),(123,null),(123,null),(123,null),(123,'58013');
-select count(*)
-from t1 inner join (t3 left join t2 on t2.id = t3.b_id) on t1.id = t3.a_id;
-count(*)
-6
-select count(*)
-from t1 inner join (t2 right join t3 on t2.id = t3.b_id) on t1.id = t3.a_id;
-count(*)
-6
-drop table t1,t2,t3;
-create table t1 (a int);
-create table t2 (b int);
-create table t3 (c int);
-select * from t1 join t2 join t3 on (t1.a=t3.c);
-a b c
-select * from t1 join t2 left join t3 on (t1.a=t3.c);
-a b c
-select * from t1 join t2 right join t3 on (t1.a=t3.c);
-a b c
-select * from t1 join t2 straight_join t3 on (t1.a=t3.c);
-a b c
-drop table t1, t2 ,t3;
-create table t1(f1 int, f2 date);
-insert into t1 values(1,'2005-01-01'),(2,'2005-09-01'),(3,'2005-09-30'),
-(4,'2005-10-01'),(5,'2005-12-30');
-select * from t1 where f2 >= 0 order by f2;
-f1 f2
-1 2005-01-01
-2 2005-09-01
-3 2005-09-30
-4 2005-10-01
-5 2005-12-30
-select * from t1 where f2 >= '0000-00-00' order by f2;
-f1 f2
-1 2005-01-01
-2 2005-09-01
-3 2005-09-30
-4 2005-10-01
-5 2005-12-30
-select * from t1 where f2 >= '2005-09-31' order by f2;
-f1 f2
-4 2005-10-01
-5 2005-12-30
-select * from t1 where f2 >= '2005-09-3a' order by f2;
-f1 f2
-3 2005-09-30
-4 2005-10-01
-5 2005-12-30
-Warnings:
-Warning 1292 Truncated incorrect date value: '2005-09-3a'
-select * from t1 where f2 <= '2005-09-31' order by f2;
-f1 f2
-1 2005-01-01
-2 2005-09-01
-3 2005-09-30
-select * from t1 where f2 <= '2005-09-3a' order by f2;
-f1 f2
-1 2005-01-01
-2 2005-09-01
-Warnings:
-Warning 1292 Truncated incorrect date value: '2005-09-3a'
-drop table t1;
-create table t1 (f1 int, f2 int);
-insert into t1 values (1, 30), (2, 20), (3, 10);
-create algorithm=merge view v1 as select f1, f2 from t1;
-create algorithm=merge view v2 (f2, f1) as select f1, f2 from t1;
-create algorithm=merge view v3 as select t1.f1 as f2, t1.f2 as f1 from t1;
-select t1.f1 as x1, f1 from t1 order by t1.f1;
-x1 f1
-1 1
-2 2
-3 3
-select v1.f1 as x1, f1 from v1 order by v1.f1;
-x1 f1
-1 1
-2 2
-3 3
-select v2.f1 as x1, f1 from v2 order by v2.f1;
-x1 f1
-10 10
-20 20
-30 30
-select v3.f1 as x1, f1 from v3 order by v3.f1;
-x1 f1
-10 10
-20 20
-30 30
-select f1, f2, v1.f1 as x1 from v1 order by v1.f1;
-f1 f2 x1
-1 30 1
-2 20 2
-3 10 3
-select f1, f2, v2.f1 as x1 from v2 order by v2.f1;
-f1 f2 x1
-10 3 10
-20 2 20
-30 1 30
-select f1, f2, v3.f1 as x1 from v3 order by v3.f1;
-f1 f2 x1
-10 3 10
-20 2 20
-30 1 30
-drop table t1;
-drop view v1, v2, v3;
-CREATE TABLE t1(key_a int4 NOT NULL, optimus varchar(32), PRIMARY KEY(key_a));
-CREATE TABLE t2(key_a int4 NOT NULL, prime varchar(32), PRIMARY KEY(key_a));
-CREATE table t3(key_a int4 NOT NULL, key_b int4 NOT NULL, foo varchar(32),
-PRIMARY KEY(key_a,key_b));
-INSERT INTO t1 VALUES (0,'');
-INSERT INTO t1 VALUES (1,'i');
-INSERT INTO t1 VALUES (2,'j');
-INSERT INTO t1 VALUES (3,'k');
-INSERT INTO t2 VALUES (1,'r');
-INSERT INTO t2 VALUES (2,'s');
-INSERT INTO t2 VALUES (3,'t');
-INSERT INTO t3 VALUES (1,5,'x');
-INSERT INTO t3 VALUES (1,6,'y');
-INSERT INTO t3 VALUES (2,5,'xx');
-INSERT INTO t3 VALUES (2,6,'yy');
-INSERT INTO t3 VALUES (2,7,'zz');
-INSERT INTO t3 VALUES (3,5,'xxx');
-SELECT t2.key_a,foo
-FROM t1 INNER JOIN t2 ON t1.key_a = t2.key_a
-INNER JOIN t3 ON t1.key_a = t3.key_a
-WHERE t2.key_a=2 and key_b=5;
-key_a foo
-2 xx
-EXPLAIN SELECT t2.key_a,foo
-FROM t1 INNER JOIN t2 ON t1.key_a = t2.key_a
-INNER JOIN t3 ON t1.key_a = t3.key_a
-WHERE t2.key_a=2 and key_b=5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t3 const PRIMARY PRIMARY 8 const,const 1
-SELECT t2.key_a,foo
-FROM t1 INNER JOIN t2 ON t2.key_a = t1.key_a
-INNER JOIN t3 ON t1.key_a = t3.key_a
-WHERE t2.key_a=2 and key_b=5;
-key_a foo
-2 xx
-EXPLAIN SELECT t2.key_a,foo
-FROM t1 INNER JOIN t2 ON t2.key_a = t1.key_a
-INNER JOIN t3 ON t1.key_a = t3.key_a
-WHERE t2.key_a=2 and key_b=5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t3 const PRIMARY PRIMARY 8 const,const 1
-DROP TABLE t1,t2,t3;
-create table t1 (f1 int);
-insert into t1 values(1),(2);
-create table t2 (f2 int, f3 int, key(f2));
-insert into t2 values(1,1),(2,2);
-create table t3 (f4 int not null);
-insert into t3 values (2),(2),(2);
-select f1,(select count(*) from t2,t3 where f2=f1 and f3=f4) as count from t1;
-f1 count
-1 0
-2 3
-drop table t1,t2,t3;
-create table t1 (f1 int unique);
-create table t2 (f2 int unique);
-create table t3 (f3 int unique);
-insert into t1 values(1),(2);
-insert into t2 values(1),(2);
-insert into t3 values(1),(NULL);
-select * from t3 where f3 is null;
-f3
-NULL
-select t2.f2 from t1 left join t2 on f1=f2 join t3 on f1=f3 where f1=1;
-f2
-1
-drop table t1,t2,t3;
-create table t1(f1 char, f2 char not null);
-insert into t1 values(null,'a');
-create table t2 (f2 char not null);
-insert into t2 values('b');
-select * from t1 left join t2 on f1=t2.f2 where t1.f2='a';
-f1 f2 f2
-NULL a NULL
-drop table t1,t2;
-select * from (select * left join t on f1=f2) tt;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'left join t on f1=f2) tt' at line 1
-CREATE TABLE t1 (sku int PRIMARY KEY, pr int);
-CREATE TABLE t2 (sku int PRIMARY KEY, sppr int, name varchar(255));
-INSERT INTO t1 VALUES
-(10, 10), (20, 10), (30, 20), (40, 30), (50, 10), (60, 10);
-INSERT INTO t2 VALUES
-(10, 10, 'aaa'), (20, 10, 'bbb'), (30, 10, 'ccc'), (40, 20, 'ddd'),
-(50, 10, 'eee'), (60, 20, 'fff'), (70, 20, 'ggg'), (80, 30, 'hhh');
-SELECT t2.sku, t2.sppr, t2.name, t1.sku, t1.pr
-FROM t2, t1 WHERE t2.sku=20 AND (t2.sku=t1.sku OR t2.sppr=t1.sku);
-sku sppr name sku pr
-20 10 bbb 10 10
-20 10 bbb 20 10
-EXPLAIN
-SELECT t2.sku, t2.sppr, t2.name, t1.sku, t1.pr
-FROM t2, t1 WHERE t2.sku=20 AND (t2.sku=t1.sku OR t2.sppr=t1.sku);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 2 Using index condition; Using where
-DROP TABLE t1,t2;
-SET SQL_MODE='NO_UNSIGNED_SUBTRACTION';
-CREATE TABLE t1 (i TINYINT UNSIGNED NOT NULL);
-INSERT t1 SET i = 0;
-UPDATE t1 SET i = -1;
-Warnings:
-Warning 1264 Out of range value for column 'i' at row 1
-SELECT * FROM t1;
-i
-0
-UPDATE t1 SET i = CAST(i - 1 AS SIGNED);
-Warnings:
-Warning 1264 Out of range value for column 'i' at row 1
-SELECT * FROM t1;
-i
-0
-UPDATE t1 SET i = i - 1;
-Warnings:
-Warning 1264 Out of range value for column 'i' at row 1
-SELECT * FROM t1;
-i
-0
-DROP TABLE t1;
-SET SQL_MODE=default;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, c int, e int, primary key(a,b,c));
-insert into t2 select A.a, B.a, C.a, C.a from t1 A, t1 B, t1 C;
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status OK
-select 'In next EXPLAIN, B.rows must be exactly 10:' Z;
-Z
-In next EXPLAIN, B.rows must be exactly 10:
-explain select * from t2 A, t2 B where A.a=5 and A.b=5 and A.C<5
-and B.a=5 and B.b=A.e and (B.b =1 or B.b = 3 or B.b=5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE A range PRIMARY PRIMARY 12 NULL 4 Using index condition; Using where
-1 SIMPLE B ref PRIMARY PRIMARY 8 const,test.A.e 10
-drop table t1, t2;
-CREATE TABLE t1 (a int PRIMARY KEY, b int, INDEX(b));
-INSERT INTO t1 VALUES (1, 3), (9,4), (7,5), (4,5), (6,2),
-(3,1), (5,1), (8,9), (2,2), (0,9);
-CREATE TABLE t2 (c int, d int, f int, INDEX(c,f));
-INSERT INTO t2 VALUES
-(1,0,0), (1,0,1), (2,0,0), (2,0,1), (3,0,0), (4,0,1),
-(5,0,0), (5,0,1), (6,0,0), (0,0,1), (7,0,0), (7,0,1),
-(0,0,0), (0,0,1), (8,0,0), (8,0,1), (9,0,0), (9,0,1);
-EXPLAIN
-SELECT a, c, d, f FROM t1,t2 WHERE a=c AND b BETWEEN 4 AND 6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,b b 5 NULL 3 Using index condition
-1 SIMPLE t2 ref c c 5 test.t1.a 2
-EXPLAIN
-SELECT a, c, d, f FROM t1,t2 WHERE a=c AND b BETWEEN 4 AND 6 AND a > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,b b 5 NULL 3 Using index condition; Using where
-1 SIMPLE t2 ref c c 5 test.t1.a 2
-DROP TABLE t1, t2;
-create table t1 (
-a int unsigned not null auto_increment primary key,
-b bit not null,
-c bit not null
-);
-create table t2 (
-a int unsigned not null auto_increment primary key,
-b bit not null,
-c int unsigned not null,
-d varchar(50)
-);
-insert into t1 (b,c) values (0,1), (0,1);
-insert into t2 (b,c) values (0,1);
-select t1.a, t1.b + 0, t1.c + 0, t2.a, t2.b + 0, t2.c, t2.d
-from t1 left outer join t2 on t1.a = t2.c and t2.b <> 1
-where t1.b <> 1 order by t1.a;
-a t1.b + 0 t1.c + 0 a t2.b + 0 c d
-1 0 1 1 0 1 NULL
-2 0 1 NULL NULL NULL NULL
-drop table t1,t2;
-SELECT 0.9888889889 * 1.011111411911;
-0.9888889889 * 1.011111411911
-0.9998769417899202067879
-prepare stmt from 'select 1 as " a "';
-Warnings:
-Warning 1466 Leading spaces are removed from name ' a '
-execute stmt;
-a
-1
-CREATE TABLE t1 (a int NOT NULL PRIMARY KEY, b int NOT NULL);
-INSERT INTO t1 VALUES (1,1), (2,2), (3,3), (4,4);
-CREATE TABLE t2 (c int NOT NULL, INDEX idx(c));
-INSERT INTO t2 VALUES
-(1), (1), (1), (1), (1), (1), (1), (1),
-(2), (2), (2), (2),
-(3), (3),
-(4);
-EXPLAIN SELECT b FROM t1, t2 WHERE b=c AND a=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 ref idx idx 4 const 7 Using index
-EXPLAIN SELECT b FROM t1, t2 WHERE b=c AND a=4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 ref idx idx 4 const 1 Using index
-DROP TABLE t1, t2;
-CREATE TABLE t1 (id int NOT NULL PRIMARY KEY, a int);
-INSERT INTO t1 VALUES (1,2), (2,NULL), (3,2);
-CREATE TABLE t2 (b int, c INT, INDEX idx1(b));
-INSERT INTO t2 VALUES (2,1), (3,2);
-CREATE TABLE t3 (d int, e int, INDEX idx1(d));
-INSERT INTO t3 VALUES (2,10), (2,20), (1,30), (2,40), (2,50);
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2 ON t2.b=t1.a INNER JOIN t3 ON t3.d=t1.id
-WHERE t1.id=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 const idx1 NULL NULL NULL 1
-1 SIMPLE t3 ref idx1 idx1 5 const 3
-SELECT * FROM t1 LEFT JOIN t2 ON t2.b=t1.a INNER JOIN t3 ON t3.d=t1.id
-WHERE t1.id=2;
-id a b c d e
-2 NULL NULL NULL 2 10
-2 NULL NULL NULL 2 20
-2 NULL NULL NULL 2 40
-2 NULL NULL NULL 2 50
-DROP TABLE t1,t2,t3;
-create table t1 (c1 varchar(1), c2 int, c3 int, c4 int, c5 int, c6 int,
-c7 int, c8 int, c9 int, fulltext key (`c1`));
-select distinct match (`c1`) against ('z') , c2, c3, c4,c5, c6,c7, c8
-from t1 where c9=1 order by c2, c2;
-match (`c1`) against ('z') c2 c3 c4 c5 c6 c7 c8
-drop table t1;
-CREATE TABLE t1 (pk varchar(10) PRIMARY KEY, fk varchar(16));
-CREATE TABLE t2 (pk varchar(16) PRIMARY KEY, fk varchar(10));
-INSERT INTO t1 VALUES
-('d','dddd'), ('i','iii'), ('a','aa'), ('b','bb'), ('g','gg'),
-('e','eee'), ('c','cccc'), ('h','hhh'), ('j','jjj'), ('f','fff');
-INSERT INTO t2 VALUES
-('jjj', 'j'), ('cc','c'), ('ccc','c'), ('aaa', 'a'), ('jjjj','j'),
-('hhh','h'), ('gg','g'), ('fff','f'), ('ee','e'), ('ffff','f'),
-('bbb','b'), ('ff','f'), ('cccc','c'), ('dddd','d'), ('jj','j'),
-('aaaa','a'), ('bb','b'), ('eeee','e'), ('aa','a'), ('hh','h');
-EXPLAIN SELECT t2.*
-FROM t1 JOIN t2 ON t2.fk=t1.pk
-WHERE t2.fk < 'c' AND t2.pk=t1.fk;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL 3 Using index condition; Using where
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 18 test.t1.fk 1 Using where
-EXPLAIN SELECT t2.*
-FROM t1 JOIN t2 ON t2.fk=t1.pk
-WHERE t2.fk BETWEEN 'a' AND 'b' AND t2.pk=t1.fk;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL 2 Using index condition; Using where
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 18 test.t1.fk 1 Using where
-EXPLAIN SELECT t2.*
-FROM t1 JOIN t2 ON t2.fk=t1.pk
-WHERE t2.fk IN ('a','b') AND t2.pk=t1.fk;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL 2 Using index condition; Using where
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 18 test.t1.fk 1 Using where
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b varchar(20) NOT NULL, PRIMARY KEY(a));
-CREATE TABLE t2 (a int, b varchar(20) NOT NULL,
-PRIMARY KEY (a), UNIQUE KEY (b));
-INSERT INTO t1 VALUES (1,'a'),(2,'b'),(3,'c');
-INSERT INTO t2 VALUES (1,'a'),(2,'b'),(3,'c');
-EXPLAIN SELECT t1.a FROM t1 LEFT JOIN t2 ON t2.b=t1.b WHERE t1.a=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-DROP TABLE t1,t2;
-CREATE TABLE t1(id int PRIMARY KEY, b int, e int);
-CREATE TABLE t2(i int, a int, INDEX si(i), INDEX ai(a));
-CREATE TABLE t3(a int PRIMARY KEY, c char(4), INDEX ci(c));
-INSERT INTO t1 VALUES
-(1,10,19), (2,20,22), (4,41,42), (9,93,95), (7, 77,79),
-(6,63,67), (5,55,58), (3,38,39), (8,81,89);
-INSERT INTO t2 VALUES
-(21,210), (41,410), (82,820), (83,830), (84,840),
-(65,650), (51,510), (37,370), (94,940), (76,760),
-(22,220), (33,330), (40,400), (95,950), (38,380),
-(67,670), (88,880), (57,570), (96,960), (97,970);
-INSERT INTO t3 VALUES
-(210,'bb'), (950,'ii'), (400,'ab'), (500,'ee'), (220,'gg'),
-(440,'gg'), (310,'eg'), (380,'ee'), (840,'bb'), (830,'ff'),
-(230,'aa'), (960,'ii'), (410,'aa'), (510,'ee'), (290,'bb'),
-(450,'gg'), (320,'dd'), (390,'hh'), (850,'jj'), (860,'ff');
-EXPLAIN
-SELECT t3.a FROM t1,t2 FORCE INDEX (si),t3
-WHERE t1.id = 8 AND t2.i BETWEEN t1.b AND t1.e AND
-t3.a=t2.a AND t3.c IN ('bb','ee');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range si si 5 NULL 4 Using index condition; Using where
-1 SIMPLE t3 eq_ref PRIMARY,ci PRIMARY 4 test.t2.a 1 Using where
-EXPLAIN
-SELECT t3.a FROM t1,t2,t3
-WHERE t1.id = 8 AND t2.i BETWEEN t1.b AND t1.e AND
-t3.a=t2.a AND t3.c IN ('bb','ee') ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range si,ai si 5 NULL 4 Using index condition; Using where
-1 SIMPLE t3 eq_ref PRIMARY,ci PRIMARY 4 test.t2.a 1 Using where
-EXPLAIN
-SELECT t3.a FROM t1,t2 FORCE INDEX (si),t3
-WHERE t1.id = 8 AND (t2.i=t1.b OR t2.i=t1.e) AND t3.a=t2.a AND
-t3.c IN ('bb','ee');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range si si 5 NULL 2 Using index condition; Using where
-1 SIMPLE t3 eq_ref PRIMARY,ci PRIMARY 4 test.t2.a 1 Using where
-EXPLAIN
-SELECT t3.a FROM t1,t2,t3
-WHERE t1.id = 8 AND (t2.i=t1.b OR t2.i=t1.e) AND t3.a=t2.a AND
-t3.c IN ('bb','ee');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range si,ai si 5 NULL 2 Using index condition; Using where
-1 SIMPLE t3 eq_ref PRIMARY,ci PRIMARY 4 test.t2.a 1 Using where
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 ( f1 int primary key, f2 int, f3 int, f4 int, f5 int, f6 int, checked_out int);
-CREATE TABLE t2 ( f11 int PRIMARY KEY );
-INSERT INTO t1 VALUES (1,1,1,0,0,0,0),(2,1,1,3,8,1,0),(3,1,1,4,12,1,0);
-INSERT INTO t2 VALUES (62);
-SELECT * FROM t1 LEFT JOIN t2 ON f11 = t1.checked_out GROUP BY f1 ORDER BY f2, f3, f4, f5 LIMIT 0, 1;
-f1 f2 f3 f4 f5 f6 checked_out f11
-1 1 1 0 0 0 0 NULL
-DROP TABLE t1, t2;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a int);
-INSERT into t1 values (1), (2), (3);
-SELECT * FROM t1 LIMIT 2, -1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1' at line 1
-DROP TABLE t1;
-CREATE TABLE t1 (
-ID_with_null int NULL,
-ID_better int NOT NULL,
-INDEX idx1 (ID_with_null),
-INDEX idx2 (ID_better)
-);
-INSERT INTO t1 VALUES (1,1), (2,1), (null,3), (null,3), (null,3), (null,3);
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-SELECT COUNT(*) FROM t1 WHERE ID_with_null IS NULL;
-COUNT(*)
-128
-SELECT COUNT(*) FROM t1 WHERE ID_better=1;
-COUNT(*)
-2
-EXPLAIN SELECT * FROM t1 WHERE ID_better=1 AND ID_with_null IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-DROP INDEX idx1 ON t1;
-CREATE UNIQUE INDEX idx1 ON t1(ID_with_null);
-EXPLAIN SELECT * FROM t1 WHERE ID_better=1 AND ID_with_null IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-DROP TABLE t1;
-CREATE TABLE t1 (
-ID1_with_null int NULL,
-ID2_with_null int NULL,
-ID_better int NOT NULL,
-INDEX idx1 (ID1_with_null, ID2_with_null),
-INDEX idx2 (ID_better)
-);
-INSERT INTO t1 VALUES (1,1,1), (2,2,1), (3,null,3), (null,3,3), (null,null,3),
-(3,null,3), (null,3,3), (null,null,3), (3,null,3), (null,3,3), (null,null,3);
-INSERT INTO t1 SELECT * FROM t1 WHERE ID1_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID2_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID1_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID2_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID1_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID2_with_null IS NULL;
-SELECT COUNT(*) FROM t1 WHERE ID1_with_null IS NULL AND ID2_with_null=3;
-COUNT(*)
-24
-SELECT COUNT(*) FROM t1 WHERE ID1_with_null=3 AND ID2_with_null IS NULL;
-COUNT(*)
-24
-SELECT COUNT(*) FROM t1 WHERE ID1_with_null IS NULL AND ID2_with_null IS NULL;
-COUNT(*)
-192
-SELECT COUNT(*) FROM t1 WHERE ID_better=1;
-COUNT(*)
-2
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND ID2_with_null=3 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null=3 AND ID2_with_null=3 IS NULL ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND ID2_with_null IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-DROP INDEX idx1 ON t1;
-CREATE UNIQUE INDEX idx1 ON t1(ID1_with_null,ID2_with_null);
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND ID2_with_null=3 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null=3 AND ID2_with_null IS NULL ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND ID2_with_null IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND
-(ID2_with_null=1 OR ID2_with_null=2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, KEY ts(ts));
-INSERT INTO t1 VALUES (30,"2006-01-03 23:00:00"), (31,"2006-01-03 23:00:00");
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-CREATE TABLE t2 (a INT, dt1 DATETIME, dt2 DATETIME, PRIMARY KEY (a));
-INSERT INTO t2 VALUES (30, "2006-01-01 00:00:00", "2999-12-31 00:00:00");
-INSERT INTO t2 SELECT a+1,dt1,dt2 FROM t2;
-ANALYZE TABLE t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status OK
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2 ON (t1.a=t2.a) WHERE t1.a=30
-AND t1.ts BETWEEN t2.dt1 AND t2.dt2
-AND t1.ts BETWEEN "2006-01-01" AND "2006-12-31";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t1 range ts ts 4 NULL 1 Using index condition; Using where
-SELECT * FROM t1 LEFT JOIN t2 ON (t1.a=t2.a) WHERE t1.a=30
-AND t1.ts BETWEEN t2.dt1 AND t2.dt2
-AND t1.ts BETWEEN "2006-01-01" AND "2006-12-31";
-a ts a dt1 dt2
-30 2006-01-03 23:00:00 30 2006-01-01 00:00:00 2999-12-31 00:00:00
-DROP TABLE t1,t2;
-create table t1 (a bigint unsigned);
-insert into t1 values
-(if(1, 9223372036854775808, 1)),
-(case when 1 then 9223372036854775808 else 1 end),
-(coalesce(9223372036854775808, 1));
-select * from t1;
-a
-9223372036854775808
-9223372036854775808
-9223372036854775808
-drop table t1;
-create table t1 select
-if(1, 9223372036854775808, 1) i,
-case when 1 then 9223372036854775808 else 1 end c,
-coalesce(9223372036854775808, 1) co;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` decimal(19,0) NOT NULL,
- `c` decimal(19,0) NOT NULL,
- `co` decimal(19,0) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select
-if(1, cast(1111111111111111111 as unsigned), 1) i,
-case when 1 then cast(1111111111111111111 as unsigned) else 1 end c,
-coalesce(cast(1111111111111111111 as unsigned), 1) co;
-i c co
-1111111111111111111 1111111111111111111 1111111111111111111
-CREATE TABLE t1 (name varchar(255));
-CREATE TABLE t2 (name varchar(255), n int, KEY (name(3)));
-INSERT INTO t1 VALUES ('ccc'), ('bb'), ('cc '), ('aa '), ('aa');
-INSERT INTO t2 VALUES ('bb',1), ('aa',2), ('cc ',3);
-INSERT INTO t2 VALUES (concat('cc ', 0x06), 4);
-INSERT INTO t2 VALUES ('cc',5), ('bb ',6), ('cc ',7);
-SELECT * FROM t2;
-name n
-bb 1
-aa 2
-cc 3
-cc  4
-cc 5
-bb 6
-cc 7
-SELECT * FROM t2 ORDER BY name;
-name n
-aa 2
-bb 1
-bb 6
-cc  4
-cc 3
-cc 5
-cc 7
-SELECT name, LENGTH(name), n FROM t2 ORDER BY name;
-name LENGTH(name) n
-aa 2 2
-bb 2 1
-bb 3 6
-cc  4 4
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref name name 6 const 3 Using where
-SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
-name LENGTH(name) n
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range name name 6 NULL 3 Using where
-SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
-name LENGTH(name) n
-cc 5 3
-cc  4 4
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range name name 6 NULL 3 Using where; Using filesort
-SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
-name LENGTH(name) n
-cc  4 4
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t1.name=t2.name;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref name name 6 test.t1.name 2 Using where
-SELECT * FROM t1 LEFT JOIN t2 ON t1.name=t2.name;
-name name n
-ccc NULL NULL
-bb bb 1
-bb bb 6
-cc cc 3
-cc cc 5
-cc cc 7
-aa aa 2
-aa aa 2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (name text);
-CREATE TABLE t2 (name text, n int, KEY (name(3)));
-INSERT INTO t1 VALUES ('ccc'), ('bb'), ('cc '), ('aa '), ('aa');
-INSERT INTO t2 VALUES ('bb',1), ('aa',2), ('cc ',3);
-INSERT INTO t2 VALUES (concat('cc ', 0x06), 4);
-INSERT INTO t2 VALUES ('cc',5), ('bb ',6), ('cc ',7);
-SELECT * FROM t2;
-name n
-bb 1
-aa 2
-cc 3
-cc  4
-cc 5
-bb 6
-cc 7
-SELECT * FROM t2 ORDER BY name;
-name n
-aa 2
-bb 1
-bb 6
-cc  4
-cc 3
-cc 5
-cc 7
-SELECT name, LENGTH(name), n FROM t2 ORDER BY name;
-name LENGTH(name) n
-aa 2 2
-bb 2 1
-bb 3 6
-cc  4 4
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref name name 6 const 3 Using where
-SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
-name LENGTH(name) n
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range name name 6 NULL 3 Using where
-SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
-name LENGTH(name) n
-cc 5 3
-cc  4 4
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range name name 6 NULL 3 Using where; Using filesort
-SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
-name LENGTH(name) n
-cc  4 4
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t1.name=t2.name;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref name name 6 test.t1.name 2 Using where
-SELECT * FROM t1 LEFT JOIN t2 ON t1.name=t2.name;
-name name n
-ccc NULL NULL
-bb bb 1
-bb bb 6
-cc cc 3
-cc cc 5
-cc cc 7
-aa aa 2
-aa aa 2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-access_id int NOT NULL default '0',
-name varchar(20) default NULL,
-rank int NOT NULL default '0',
-KEY idx (access_id)
-);
-CREATE TABLE t2 (
-faq_group_id int NOT NULL default '0',
-faq_id int NOT NULL default '0',
-access_id int default NULL,
-UNIQUE KEY idx1 (faq_id),
-KEY idx2 (faq_group_id,faq_id)
-);
-INSERT INTO t1 VALUES
-(1,'Everyone',2),(2,'Help',3),(3,'Technical Support',1),(4,'Chat User',4);
-INSERT INTO t2 VALUES
-(261,265,1),(490,494,1);
-SELECT t2.faq_id
-FROM t1 INNER JOIN t2 IGNORE INDEX (idx1)
-ON (t1.access_id = t2.access_id)
-LEFT JOIN t2 t
-ON (t.faq_group_id = t2.faq_group_id AND
-find_in_set(t.access_id, '1,4') < find_in_set(t2.access_id, '1,4'))
-WHERE
-t2.access_id IN (1,4) AND t.access_id IS NULL AND t2.faq_id in (265);
-faq_id
-265
-SELECT t2.faq_id
-FROM t1 INNER JOIN t2
-ON (t1.access_id = t2.access_id)
-LEFT JOIN t2 t
-ON (t.faq_group_id = t2.faq_group_id AND
-find_in_set(t.access_id, '1,4') < find_in_set(t2.access_id, '1,4'))
-WHERE
-t2.access_id IN (1,4) AND t.access_id IS NULL AND t2.faq_id in (265);
-faq_id
-265
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT, KEY inx (b,a));
-INSERT INTO t1 VALUES (1,1), (1,2), (1,3), (1,4), (1,5), (1, 6), (1,7);
-EXPLAIN SELECT COUNT(*) FROM t1 f1 INNER JOIN t1 f2
-ON ( f1.b=f2.b AND f1.a<f2.a )
-WHERE 1 AND f1.b NOT IN (100,2232,3343,51111);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE f1 index inx inx 10 NULL 7 Using where; Using index
-1 SIMPLE f2 ref inx inx 5 test.f1.b 1 Using where; Using index
-DROP TABLE t1;
-CREATE TABLE t1 (c1 INT, c2 INT);
-INSERT INTO t1 VALUES (1,11), (2,22), (2,22);
-EXPLAIN SELECT c1 FROM t1 WHERE (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT COUNT(c2)))))))))))))))))))))))))))))))) > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-31 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-32 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-EXPLAIN SELECT c1 FROM t1 WHERE (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT COUNT(c2))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) > 0;
-ERROR HY000: Too high level of nesting for select
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 int(11) NOT NULL AUTO_INCREMENT,
-c2 varchar(1000) DEFAULT NULL,
-c3 bigint(20) DEFAULT NULL,
-c4 bigint(20) DEFAULT NULL,
-PRIMARY KEY (c1)
-);
-EXPLAIN EXTENDED
-SELECT join_2.c1
-FROM
-t1 AS join_0,
-t1 AS join_1,
-t1 AS join_2,
-t1 AS join_3,
-t1 AS join_4,
-t1 AS join_5,
-t1 AS join_6,
-t1 AS join_7
-WHERE
-join_0.c1=join_1.c1 AND
-join_1.c1=join_2.c1 AND
-join_2.c1=join_3.c1 AND
-join_3.c1=join_4.c1 AND
-join_4.c1=join_5.c1 AND
-join_5.c1=join_6.c1 AND
-join_6.c1=join_7.c1
-OR
-join_0.c2 < '?' AND
-join_1.c2 < '?' AND
-join_2.c2 > '?' AND
-join_2.c2 < '!' AND
-join_3.c2 > '?' AND
-join_4.c2 = '?' AND
-join_5.c2 <> '?' AND
-join_6.c2 <> '?' AND
-join_7.c2 >= '?' AND
-join_0.c1=join_1.c1 AND
-join_1.c1=join_2.c1 AND
-join_2.c1=join_3.c1 AND
-join_3.c1=join_4.c1 AND
-join_4.c1=join_5.c1 AND
-join_5.c1=join_6.c1 AND
-join_6.c1=join_7.c1
-GROUP BY
-join_3.c1,
-join_2.c1,
-join_7.c1,
-join_1.c1,
-join_0.c1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select NULL AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by NULL,NULL,NULL,NULL,NULL
-SHOW WARNINGS;
-Level Code Message
-Note 1003 select NULL AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by NULL,NULL,NULL,NULL,NULL
-DROP TABLE t1;
-SELECT 1 AS ` `;
-
-1
-Warnings:
-Warning 1474 Name ' ' has become ''
-SELECT 1 AS ` `;
-
-1
-Warnings:
-Warning 1474 Name ' ' has become ''
-SELECT 1 AS ` x`;
-x
-1
-Warnings:
-Warning 1466 Leading spaces are removed from name ' x'
-CREATE VIEW v1 AS SELECT 1 AS ``;
-ERROR 42000: Incorrect column name ''
-CREATE VIEW v1 AS SELECT 1 AS ` `;
-ERROR 42000: Incorrect column name ' '
-CREATE VIEW v1 AS SELECT 1 AS ` `;
-ERROR 42000: Incorrect column name ' '
-CREATE VIEW v1 AS SELECT (SELECT 1 AS ` `);
-ERROR 42000: Incorrect column name ' '
-CREATE VIEW v1 AS SELECT 1 AS ` x`;
-Warnings:
-Warning 1466 Leading spaces are removed from name ' x'
-SELECT `x` FROM v1;
-x
-1
-ALTER VIEW v1 AS SELECT 1 AS ` `;
-ERROR 42000: Incorrect column name ' '
-DROP VIEW v1;
-select str_to_date('2007-10-09','%Y-%m-%d') between '2007/10/01 00:00:00 GMT'
- and '2007/10/20 00:00:00 GMT';
-str_to_date('2007-10-09','%Y-%m-%d') between '2007/10/01 00:00:00 GMT'
- and '2007/10/20 00:00:00 GMT'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007/10/01 00:00:00 GMT'
-Warning 1292 Truncated incorrect datetime value: '2007/10/20 00:00:00 GMT'
-select str_to_date('2007-10-09','%Y-%m-%d') > '2007/10/01 00:00:00 GMT-6';
-str_to_date('2007-10-09','%Y-%m-%d') > '2007/10/01 00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007/10/01 00:00:00 GMT-6'
-select str_to_date('2007-10-09','%Y-%m-%d') <= '2007/10/20 00:00:00 GMT-6';
-str_to_date('2007-10-09','%Y-%m-%d') <= '2007/10/20 00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007/10/20 00:00:00 GMT-6'
-select str_to_date('2007-10-09','%Y-%m-%d') <= '2007/10/2000:00:00 GMT-6';
-str_to_date('2007-10-09','%Y-%m-%d') <= '2007/10/2000:00:00 GMT-6'
-0
-Warnings:
-Warning 1292 Incorrect datetime value: '2007/10/2000:00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-1 00:00:00 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-1 00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-1 00:00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 x00:00:00 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 x00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect date value: '2007-10-01 x00:00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:00:00 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 00:00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:x00:00 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:x00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 00:x00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 x12:34:56 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 x12:34:56 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect date value: '2007-10-01 x12:34:56 GMT-6'
-select str_to_date('2007-10-01 12:34:00','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6';
-str_to_date('2007-10-01 12:34:00','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 12:34x:56 GMT-6'
-select str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6';
-str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6'
-0
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 12:34x:56 GMT-6'
-select str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34:56';
-str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34:56'
-1
-select str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 12:00:00';
-str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 12:00:00'
-0
-select str_to_date('2007-10-01 12','%Y-%m-%d %H') = '2007-10-01 12:00:00';
-str_to_date('2007-10-01 12','%Y-%m-%d %H') = '2007-10-01 12:00:00'
-1
-select str_to_date('2007-10-01 12:34','%Y-%m-%d %H') = '2007-10-01 12:00:00';
-str_to_date('2007-10-01 12:34','%Y-%m-%d %H') = '2007-10-01 12:00:00'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 12:34'
-select str_to_date('2007-02-30 12:34','%Y-%m-%d %H:%i') = '2007-02-30 12:34';
-str_to_date('2007-02-30 12:34','%Y-%m-%d %H:%i') = '2007-02-30 12:34'
-1
-select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34';
-str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34'
-1
-select str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01 00:00:00'
- and '2007/10/20 00:00:00';
-str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01 00:00:00'
- and '2007/10/20 00:00:00'
-1
-set SQL_MODE=TRADITIONAL;
-select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34';
-str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34'
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2007-10-00 12:34' for function str_to_date
-select str_to_date('2007-10-01 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34';
-str_to_date('2007-10-01 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34'
-0
-select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-01 12:34';
-str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-01 12:34'
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2007-10-00 12:34' for function str_to_date
-select str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01'
- and '2007/10/20';
-str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01'
- and '2007/10/20'
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2007-10-00' for function str_to_date
-set SQL_MODE=DEFAULT;
-select str_to_date('2007-10-00','%Y-%m-%d') between '' and '2007/10/20';
-str_to_date('2007-10-00','%Y-%m-%d') between '' and '2007/10/20'
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-select str_to_date('','%Y-%m-%d') between '2007/10/01' and '2007/10/20';
-str_to_date('','%Y-%m-%d') between '2007/10/01' and '2007/10/20'
-0
-select str_to_date('','%Y-%m-%d %H:%i') = '2007-10-01 12:34';
-str_to_date('','%Y-%m-%d %H:%i') = '2007-10-01 12:34'
-0
-select str_to_date(NULL,'%Y-%m-%d %H:%i') = '2007-10-01 12:34';
-str_to_date(NULL,'%Y-%m-%d %H:%i') = '2007-10-01 12:34'
-NULL
-select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '';
-str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = ''
-0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-select str_to_date('1','%Y-%m-%d') = '1';
-str_to_date('1','%Y-%m-%d') = '1'
-0
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-select str_to_date('1','%Y-%m-%d') = '1';
-str_to_date('1','%Y-%m-%d') = '1'
-0
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-select str_to_date('','%Y-%m-%d') = '';
-str_to_date('','%Y-%m-%d') = ''
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-select str_to_date('2000-01-01','%Y-%m-%d') between '1000-01-01' and '2001-01-01';
-str_to_date('2000-01-01','%Y-%m-%d') between '1000-01-01' and '2001-01-01'
-1
-select str_to_date('2000-01-01','%Y-%m-%d') between '1000-01-01' and NULL;
-str_to_date('2000-01-01','%Y-%m-%d') between '1000-01-01' and NULL
-NULL
-select str_to_date('2000-01-01','%Y-%m-%d') between NULL and '2001-01-01';
-str_to_date('2000-01-01','%Y-%m-%d') between NULL and '2001-01-01'
-NULL
-select str_to_date('2000-01-01','%Y-%m-%d') between '2001-01-01' and NULL;
-str_to_date('2000-01-01','%Y-%m-%d') between '2001-01-01' and NULL
-0
-select str_to_date('2000-01-01','%Y-%m-%d') between NULL and '1000-01-01';
-str_to_date('2000-01-01','%Y-%m-%d') between NULL and '1000-01-01'
-0
-select str_to_date('2000-01-01','%Y-%m-%d') between NULL and NULL;
-str_to_date('2000-01-01','%Y-%m-%d') between NULL and NULL
-NULL
-CREATE TABLE t1 (c11 INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY);
-CREATE TABLE t2 (c21 INT UNSIGNED NOT NULL,
-c22 INT DEFAULT NULL,
-KEY(c21, c22));
-CREATE TABLE t3 (c31 INT UNSIGNED NOT NULL DEFAULT 0,
-c32 INT DEFAULT NULL,
-c33 INT NOT NULL,
-c34 INT UNSIGNED DEFAULT 0,
-KEY (c33, c34, c32));
-INSERT INTO t1 values (),(),(),(),();
-INSERT INTO t2 SELECT a.c11, b.c11 FROM t1 a, t1 b;
-INSERT INTO t3 VALUES (1, 1, 1, 0),
-(2, 2, 0, 0),
-(3, 3, 1, 0),
-(4, 4, 0, 0),
-(5, 5, 1, 0);
-SELECT c32 FROM t1, t2, t3 WHERE t1.c11 IN (1, 3, 5) AND
-t3.c31 = t1.c11 AND t2.c21 = t1.c11 AND
-t3.c33 = 1 AND t2.c22 in (1, 3)
-ORDER BY c32;
-c32
-1
-1
-3
-3
-5
-5
-SELECT c32 FROM t1, t2, t3 WHERE t1.c11 IN (1, 3, 5) AND
-t3.c31 = t1.c11 AND t2.c21 = t1.c11 AND
-t3.c33 = 1 AND t2.c22 in (1, 3)
-ORDER BY c32 DESC;
-c32
-5
-5
-3
-3
-1
-1
-DROP TABLE t1, t2, t3;
-
-#
-# Bug#30736: Row Size Too Large Error Creating a Table and
-# Inserting Data.
-#
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-
-CREATE TABLE t1(
-c1 DECIMAL(10, 2),
-c2 FLOAT);
-
-INSERT INTO t1 VALUES (0, 1), (2, 3), (4, 5);
-
-CREATE TABLE t2(
-c3 DECIMAL(10, 2))
-SELECT
-c1 * c2 AS c3
-FROM t1;
-
-SELECT * FROM t1;
-c1 c2
-0.00 1
-2.00 3
-4.00 5
-
-SELECT * FROM t2;
-c3
-0.00
-6.00
-20.00
-
-DROP TABLE t1;
-DROP TABLE t2;
-
-CREATE TABLE t1 (c1 BIGINT NOT NULL);
-INSERT INTO t1 (c1) VALUES (1);
-SELECT * FROM t1 WHERE c1 > NULL + 1;
-c1
-DROP TABLE t1;
-
-CREATE TABLE t1 (a VARCHAR(10) NOT NULL PRIMARY KEY);
-INSERT INTO t1 (a) VALUES ('foo0'), ('bar0'), ('baz0');
-SELECT * FROM t1 WHERE a IN (CONCAT('foo', 0), 'bar');
-a
-foo0
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-CREATE TABLE t2 (a INT, c INT, KEY(a));
-INSERT INTO t1 VALUES (1, 1), (2, 2);
-INSERT INTO t2 VALUES (1, 1), (1, 2), (1, 3), (1, 4), (1, 5),
-(2, 1), (2, 2), (2, 3), (2, 4), (2, 5),
-(3, 1), (3, 2), (3, 3), (3, 4), (3, 5),
-(4, 1), (4, 2), (4, 3), (4, 4), (4, 5);
-FLUSH STATUS;
-SELECT DISTINCT b FROM t1 LEFT JOIN t2 USING(a) WHERE c <= 3;
-b
-1
-2
-SHOW STATUS LIKE 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 6
-DROP TABLE t1, t2;
-CREATE TABLE t1 (f1 bigint(20) NOT NULL default '0',
-f2 int(11) NOT NULL default '0',
-f3 bigint(20) NOT NULL default '0',
-f4 varchar(255) NOT NULL default '',
-PRIMARY KEY (f1),
-KEY key1 (f4),
-KEY key2 (f2));
-CREATE TABLE t2 (f1 int(11) NOT NULL default '0',
-f2 enum('A1','A2','A3') NOT NULL default 'A1',
-f3 int(11) NOT NULL default '0',
-PRIMARY KEY (f1),
-KEY key1 (f3));
-CREATE TABLE t3 (f1 bigint(20) NOT NULL default '0',
-f2 datetime NOT NULL default '1980-01-01 00:00:00',
-PRIMARY KEY (f1));
-insert into t1 values (1, 1, 1, 'abc');
-insert into t1 values (2, 1, 2, 'def');
-insert into t1 values (3, 1, 2, 'def');
-insert into t2 values (1, 'A1', 1);
-insert into t3 values (1, '1980-01-01');
-SELECT a.f3, cr.f4, count(*) count
-FROM t2 a
-STRAIGHT_JOIN t1 cr ON cr.f2 = a.f1
-LEFT JOIN
-(t1 cr2
-JOIN t3 ae2 ON cr2.f3 = ae2.f1
-) ON a.f1 = cr2.f2 AND ae2.f2 < now() - INTERVAL 7 DAY AND
-cr.f4 = cr2.f4
-GROUP BY a.f3, cr.f4;
-f3 f4 count
-1 abc 1
-1 def 2
-drop table t1, t2, t3;
-CREATE TABLE t1 (a INT KEY, b INT);
-INSERT INTO t1 VALUES (1,1), (2,2), (3,3), (4,4);
-EXPLAIN EXTENDED SELECT a, b FROM t1 WHERE a > 1 AND a = b LIMIT 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 100.00 Using index condition; Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`b` = `test`.`t1`.`a` and `test`.`t1`.`a` > 1 limit 2
-EXPLAIN EXTENDED SELECT a, b FROM t1 WHERE a > 1 AND b = a LIMIT 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 100.00 Using index condition; Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`b` = `test`.`t1`.`a` and `test`.`t1`.`a` > 1 limit 2
-DROP TABLE t1;
-#
-# Bug#47019: Assertion failed: 0, file .\rt_mbr.c, line 138 when
-# forcing a spatial index
-#
-CREATE TABLE t1(a LINESTRING NOT NULL, SPATIAL KEY(a));
-INSERT INTO t1 VALUES
-(GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)')),
-(GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)'));
-EXPLAIN SELECT 1 FROM t1 NATURAL LEFT JOIN t1 AS t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL a NULL NULL NULL 2 Range checked for each record (index map: 0x1)
-SELECT 1 FROM t1 NATURAL LEFT JOIN t1 AS t2;
-1
-1
-1
-1
-1
-EXPLAIN SELECT 1 FROM t1 NATURAL LEFT JOIN t1 AS t2 FORCE INDEX(a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL a NULL NULL NULL 2 Range checked for each record (index map: 0x1)
-SELECT 1 FROM t1 NATURAL LEFT JOIN t1 AS t2 FORCE INDEX(a);
-1
-1
-1
-1
-1
-DROP TABLE t1;
-#
-# Bug #48291 : crash with row() operator,select into @var, and
-# subquery returning multiple rows
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (2),(3);
-# Should not crash
-SELECT 1 FROM t1 WHERE a <> 1 AND NOT
-ROW(1,a) <=> ROW(1,(SELECT 1 FROM t1))
-INTO @var0;
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1;
-#
-# Bug #48458: simple query tries to allocate enormous amount of
-# memory
-#
-CREATE TABLE t1(a INT NOT NULL, b YEAR);
-INSERT IGNORE INTO t1 VALUES ();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-CREATE TABLE t2(c INT);
-# Should not err out because of out-of-memory
-SELECT 1 FROM t2 JOIN t1 ON 1=1
-WHERE a != '1' AND NOT a >= b OR NOT ROW(b,a )<> ROW(a,a);
-1
-DROP TABLE t1,t2;
-#
-# Bug #49199: Optimizer handles incorrectly:
-# field='const1' AND field='const2' in some cases
-
-CREATE TABLE t1(a DATETIME NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-a
-2001-01-01 00:00:00
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a DATE NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-a
-2001-01-01
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01' AS `a` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-INSERT INTO t1 VALUES('2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-a
-2001-01-01 00:00:00
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a DATETIME NOT NULL, b DATE NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01', '2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a=b AND b='2001-01-01 00:00:00';
-a b
-2001-01-01 00:00:00 2001-01-01
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a=b AND b='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a`,'2001-01-01' AS `b` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a DATETIME NOT NULL, b VARCHAR(20) NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01', '2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a=b AND b='2001-01-01 00:00:00';
-a b
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a=b AND b='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a`,'2001-01-01' AS `b` from dual where 0
-SELECT * FROM t1 WHERE a='2001-01-01 00:00:00' AND a=b AND b='2001-01-01';
-a b
-2001-01-01 00:00:00 2001-01-01
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01 00:00:00' AND a=b AND b='2001-01-01';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a`,'2001-01-01' AS `b` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a DATETIME NOT NULL, b DATE NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01', '2001-01-01');
-SELECT x.a, y.a, z.a FROM t1 x
-JOIN t1 y ON x.a=y.a
-JOIN t1 z ON y.a=z.a
-WHERE x.a='2001-01-01' AND z.a='2001-01-01 00:00:00';
-a a a
-2001-01-01 00:00:00 2001-01-01 00:00:00 2001-01-01 00:00:00
-EXPLAIN EXTENDED SELECT x.a, y.a, z.a FROM t1 x
-JOIN t1 y ON x.a=y.a
-JOIN t1 z ON y.a=z.a
-WHERE x.a='2001-01-01' AND z.a='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE x system NULL NULL NULL NULL 1 100.00
-1 SIMPLE y system NULL NULL NULL NULL 1 100.00
-1 SIMPLE z system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a`,'2001-01-01 00:00:00' AS `a`,'2001-01-01 00:00:00' AS `a` from dual where 1
-DROP TABLE t1;
-#
-# Bug #49897: crash in ptr_compare when char(0) NOT NULL
-# column is used for ORDER BY
-#
-SET @old_sort_buffer_size= @@session.sort_buffer_size;
-SET @@sort_buffer_size= 40000;
-CREATE TABLE t1(a CHAR(0) NOT NULL);
-INSERT IGNORE INTO t1 VALUES (0), (0), (0);
-INSERT INTO t1 SELECT t11.a FROM t1 t11, t1 t12;
-INSERT INTO t1 SELECT t11.a FROM t1 t11, t1 t12;
-INSERT INTO t1 SELECT t11.a FROM t1 t11, t1 t12;
-EXPLAIN SELECT a FROM t1 ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492
-SELECT a FROM t1 ORDER BY a;
-DROP TABLE t1;
-CREATE TABLE t1(a CHAR(0) NOT NULL, b CHAR(0) NOT NULL, c int);
-INSERT IGNORE INTO t1 VALUES (0, 0, 0), (0, 0, 2), (0, 0, 1);
-INSERT INTO t1 SELECT t11.a, t11.b, t11.c FROM t1 t11, t1 t12;
-INSERT INTO t1 SELECT t11.a, t11.b, t11.c FROM t1 t11, t1 t12;
-INSERT INTO t1 SELECT t11.a, t11.b, t11.c FROM t1 t11, t1 t12;
-EXPLAIN SELECT a FROM t1 ORDER BY a LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492
-SELECT a FROM t1 ORDER BY a LIMIT 5;
-a
-
-
-
-
-
-EXPLAIN SELECT * FROM t1 ORDER BY a, b LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492
-SELECT * FROM t1 ORDER BY a, b LIMIT 5;
-a b c
- 0
- 2
- 1
- 0
- 2
-EXPLAIN SELECT * FROM t1 ORDER BY a, b, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492 Using filesort
-SELECT * FROM t1 ORDER BY a, b, c LIMIT 5;
-a b c
- 0
- 0
- 0
- 0
- 0
-EXPLAIN SELECT * FROM t1 ORDER BY c, a LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492 Using filesort
-SELECT * FROM t1 ORDER BY c, a LIMIT 5;
-a b c
- 0
- 0
- 0
- 0
- 0
-SET @@sort_buffer_size= @old_sort_buffer_size;
-DROP TABLE t1;
-End of 5.0 tests
-create table t1(a INT, KEY (a));
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
-SELECT a FROM t1 ORDER BY a LIMIT 2;
-a
-1
-2
-SELECT a FROM t1 ORDER BY a LIMIT 2,4294967296;
-a
-3
-4
-5
-SELECT a FROM t1 ORDER BY a LIMIT 2,4294967297;
-a
-3
-4
-5
-DROP TABLE t1;
-CREATE TABLE t1 (date_key date);
-CREATE TABLE t2 (
-pk int,
-int_nokey int,
-int_key int,
-date_key date NOT NULL,
-date_nokey date,
-varchar_key varchar(1)
-);
-INSERT INTO t2 VALUES
-(1,1,1,'0000-00-00',NULL,NULL),
-(1,1,1,'0000-00-00',NULL,NULL);
-SELECT 1 FROM t2 WHERE pk > ANY (SELECT 1 FROM t2);
-1
-SELECT COUNT(DISTINCT 1) FROM t2
-WHERE date_key = (SELECT 1 FROM t1 WHERE t2.date_key IS NULL) GROUP BY pk;
-COUNT(DISTINCT 1)
-SELECT date_nokey FROM t2
-WHERE int_key IN (SELECT 1 FROM t1)
-HAVING date_nokey = '10:41:7'
-ORDER BY date_key;
-date_nokey
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT NOT NULL, b INT);
-INSERT INTO t1 VALUES (1, 1);
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (a=a AND a=a) OR b > 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select 1 AS `a`,1 AS `b` from dual where 1
-SELECT * FROM t1 WHERE (a=a AND a=a) OR b > 2;
-a b
-1 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL, c INT NOT NULL);
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (a=a AND b=b AND c=c) OR b > 20;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 select NULL AS `a`,NULL AS `b`,NULL AS `c` from `test`.`t1` where 1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (a=a AND a=a AND b=b) OR b > 20;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 select NULL AS `a`,NULL AS `b`,NULL AS `c` from `test`.`t1` where 1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (a=a AND b=b AND a=a) OR b > 20;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 select NULL AS `a`,NULL AS `b`,NULL AS `c` from `test`.`t1` where 1
-DROP TABLE t1;
-#
-# Bug#45266: Uninitialized variable lead to an empty result.
-#
-drop table if exists A,AA,B,BB;
-CREATE TABLE `A` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`date_key` date NOT NULL,
-`date_nokey` date NOT NULL,
-`datetime_key` datetime NOT NULL,
-`int_nokey` int(11) NOT NULL,
-`time_key` time NOT NULL,
-`time_nokey` time NOT NULL,
-PRIMARY KEY (`pk`),
-KEY `date_key` (`date_key`),
-KEY `time_key` (`time_key`),
-KEY `datetime_key` (`datetime_key`)
-);
-CREATE TABLE `AA` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`int_nokey` int(11) NOT NULL,
-`time_key` time NOT NULL,
-KEY `time_key` (`time_key`),
-PRIMARY KEY (`pk`)
-);
-CREATE TABLE `B` (
-`date_nokey` date NOT NULL,
-`date_key` date NOT NULL,
-`time_key` time NOT NULL,
-`datetime_nokey` datetime NOT NULL,
-`varchar_key` varchar(1) NOT NULL,
-KEY `date_key` (`date_key`),
-KEY `time_key` (`time_key`),
-KEY `varchar_key` (`varchar_key`)
-);
-INSERT INTO `B` VALUES ('2003-07-28','2003-07-28','15:13:38','0000-00-00 00:00:00','f'),('0000-00-00','0000-00-00','00:05:48','2004-07-02 14:34:13','x');
-CREATE TABLE `BB` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`int_nokey` int(11) NOT NULL,
-`date_key` date NOT NULL,
-`varchar_nokey` varchar(1) NOT NULL,
-`date_nokey` date NOT NULL,
-PRIMARY KEY (`pk`),
-KEY `date_key` (`date_key`)
-);
-INSERT INTO `BB` VALUES (10,8,'0000-00-00','i','0000-00-00'),(11,0,'2005-08-18','','2005-08-18');
-SELECT table1 . `pk` AS field1
-FROM
-(BB AS table1 INNER JOIN
-(AA AS table2 STRAIGHT_JOIN A AS table3
-ON ( table3 . `date_key` = table2 . `pk` ))
-ON ( table3 . `datetime_key` = table2 . `int_nokey` ))
-WHERE ( table3 . `date_key` <= 4 AND table2 . `pk` = table1 . `varchar_nokey`)
-GROUP BY field1 ;
-field1
-SELECT table3 .`date_key` field1
-FROM
-B table1 LEFT JOIN B table3 JOIN
-(BB table6 JOIN A table7 ON table6 .`varchar_nokey`)
-ON table6 .`int_nokey` ON table6 .`date_key`
- WHERE NOT ( table1 .`varchar_key` AND table7 .`pk`) GROUP BY field1;
-field1
-NULL
-SELECT table4 . `time_nokey` AS field1 FROM
-(AA AS table1 CROSS JOIN
-(AA AS table2 STRAIGHT_JOIN
-(B AS table3 STRAIGHT_JOIN A AS table4
-ON ( table4 . `date_key` = table3 . `time_key` ))
-ON ( table4 . `pk` = table3 . `date_nokey` ))
-ON ( table4 . `time_key` = table3 . `datetime_nokey` ))
-WHERE ( table4 . `time_key` < table1 . `time_key` AND
-table1 . `int_nokey` != 'f')
-GROUP BY field1 ORDER BY field1 , field1;
-field1
-SELECT table1 .`time_key` field2 FROM B table1 LEFT JOIN BB JOIN A table5 ON table5 .`date_nokey` ON table5 .`int_nokey` GROUP BY field2;
-field2
-00:05:48
-15:13:38
-drop table A,AA,B,BB;
-#end of test for bug#45266
-#
-# Bug#33546: Slowdown on re-evaluation of constant expressions.
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (2);
-SELECT * FROM t1 WHERE a = 1 + 1;
-a
-2
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a = 1 + 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(1 + 1)
-SELECT * FROM t1 HAVING a = 1 + 1;
-a
-2
-EXPLAIN EXTENDED SELECT * FROM t1 HAVING a = 1 + 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` having `test`.`t1`.`a` = <cache>(1 + 1)
-SELECT * FROM t1, t2 WHERE a = b + (1 + 1);
-a b
-4 2
-EXPLAIN EXTENDED SELECT * FROM t1, t2 WHERE a = b + (1 + 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,2 AS `b` from `test`.`t1` where `test`.`t1`.`a` = <cache>(2 + (1 + 1))
-SELECT * FROM t2 LEFT JOIN t1 ON a = b + 1;
-b a
-2 3
-EXPLAIN EXTENDED SELECT * FROM t2 LEFT JOIN t1 ON a = b + 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select 2 AS `b`,`test`.`t1`.`a` AS `a` from `test`.`t1` where 1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a > UNIX_TIMESTAMP('2009-03-10 00:00:00');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > <cache>(unix_timestamp('2009-03-10 00:00:00'))
-CREATE FUNCTION f1() RETURNS INT DETERMINISTIC
-BEGIN
-SET @cnt := @cnt + 1;
-RETURN 1;
-END;|
-SET @cnt := 0;
-SELECT * FROM t1 WHERE a = f1();
-a
-1
-SELECT @cnt;
-@cnt
-1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a = f1();
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(`f1`())
-DROP TABLE t1, t2;
-DROP FUNCTION f1;
-# End of bug#33546
-#
-# BUG#48052: Valgrind warning - uninitialized value in init_read_record()
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL,
-i int(11) DEFAULT NULL,
-v varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (2,7,'m');
-INSERT INTO t1 VALUES (3,9,'m');
-SELECT v
-FROM t1
-WHERE NOT pk > 0
-HAVING v <= 't'
-ORDER BY pk;
-v
-DROP TABLE t1;
-#
-# Bug#49489 Uninitialized cache led to a wrong result.
-#
-CREATE TABLE t1(c1 DOUBLE(5,4));
-INSERT INTO t1 VALUES (9.1234);
-SELECT * FROM t1 WHERE c1 < 9.12345;
-c1
-9.1234
-DROP TABLE t1;
-# End of test for bug#49489.
-#
-# Bug #49517: Inconsistent behavior while using
-# NULLable BIGINT and INT columns in comparison
-#
-CREATE TABLE t1(a BIGINT UNSIGNED NOT NULL, b BIGINT NULL, c INT NULL);
-INSERT INTO t1 VALUES(105, NULL, NULL);
-SELECT * FROM t1 WHERE b < 102;
-a b c
-SELECT * FROM t1 WHERE c < 102;
-a b c
-SELECT * FROM t1 WHERE 102 < b;
-a b c
-SELECT * FROM t1 WHERE 102 < c;
-a b c
-DROP TABLE t1;
-#
-# Bug #54459: Assertion failed: param.sort_length,
-# file .\filesort.cc, line 149 (part II)
-#
-CREATE TABLE t1(a ENUM('') NOT NULL);
-INSERT INTO t1 VALUES (), (), ();
-EXPLAIN SELECT 1 FROM t1 ORDER BY a COLLATE latin1_german2_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using filesort
-SELECT 1 FROM t1 ORDER BY a COLLATE latin1_german2_ci;
-1
-1
-1
-1
-DROP TABLE t1;
-#
-# Bug #702310: usage of 2 join buffers after ref access to an empty table
-#
-CREATE TABLE t1 (f1 int) ;
-INSERT INTO t1 VALUES (9);
-CREATE TABLE t2 (f1 int);
-INSERT INTO t2 VALUES (3),(7),(18);
-INSERT INTO t2 VALUES (3),(7),(18);
-INSERT INTO t2 VALUES (3),(7),(18);
-INSERT INTO t2 VALUES (3),(7),(18);
-CREATE TABLE t3 (f1 int);
-INSERT INTO t3 VALUES (17);
-CREATE TABLE t4 (f1 int PRIMARY KEY, f2 varchar(1024)) ;
-CREATE TABLE t5 (f1 int) ;
-INSERT INTO t5 VALUES (20),(5);
-CREATE TABLE t6(f1 int);
-INSERT INTO t6 VALUES (9),(7);
-SET SESSION join_buffer_size = 2176;
-EXPLAIN
-SELECT STRAIGHT_JOIN * FROM t2, (t1 LEFT JOIN (t3,t4) ON t1.f1 = t4.f1), t5, t6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 12
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1 Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 1 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 4 test.t1.f1 1
-1 SIMPLE t5 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-SELECT STRAIGHT_JOIN * FROM t2, (t1 LEFT JOIN (t3,t4) ON t1.f1 = t4.f1), t5, t6;
-f1 f1 f1 f1 f2 f1 f1
-3 9 NULL NULL NULL 20 9
-7 9 NULL NULL NULL 20 9
-18 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 20 9
-7 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 20 7
-7 9 NULL NULL NULL 20 7
-18 9 NULL NULL NULL 20 7
-3 9 NULL NULL NULL 20 7
-7 9 NULL NULL NULL 20 7
-18 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 5 9
-7 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 20 7
-3 9 NULL NULL NULL 20 7
-3 9 NULL NULL NULL 5 7
-7 9 NULL NULL NULL 5 7
-18 9 NULL NULL NULL 5 7
-3 9 NULL NULL NULL 5 9
-7 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 5 9
-3 9 NULL NULL NULL 5 9
-7 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 5 7
-7 9 NULL NULL NULL 5 7
-18 9 NULL NULL NULL 5 7
-3 9 NULL NULL NULL 5 7
-7 9 NULL NULL NULL 20 7
-18 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 20 9
-7 9 NULL NULL NULL 20 9
-18 9 NULL NULL NULL 20 9
-7 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 20 7
-3 9 NULL NULL NULL 20 7
-7 9 NULL NULL NULL 20 7
-18 9 NULL NULL NULL 20 7
-7 9 NULL NULL NULL 5 7
-18 9 NULL NULL NULL 5 9
-3 9 NULL NULL NULL 5 9
-7 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 5 7
-3 9 NULL NULL NULL 5 7
-7 9 NULL NULL NULL 5 7
-18 9 NULL NULL NULL 5 7
-SET SESSION join_buffer_size = DEFAULT;
-DROP TABLE t1,t2,t3,t4,t5,t6;
-#
-# Bug #698882: best equality substitution not applied to ref
-#
-CREATE TABLE t1 (a1 int NOT NULL, b1 char(10), INDEX idx (a1));
-CREATE TABLE t2 (a2 int NOT NULL, b2 char(10), INDEX idx (a2));
-CREATE TABLE t3 (a3 int NOT NULL, b3 char(10), INDEX idx (a3));
-INSERT INTO t1 VALUES (2,'xx'), (1,'xxx'), (11,'xxxxxxx');
-INSERT INTO t2 VALUES
-(7,'yyyy'), (2,'y'), (3,'yyy'), (1,'yy'), (1,'yyyyy'),
-(3,'yy'), (1,'y'), (4,'yyy'), (7,'y'), (4,'yyyyy'), (7,'yyy'),
-(7,'yyyy'), (2,'yy'), (3,'yyy'), (1,'yyyyyyyy'), (1,'yyyyy'),
-(3,'yy'), (1,'yyy'), (4,'yyy'), (7,'y'), (4,'yyyyy'), (7,'yyy');
-INSERT INTO t3 VALUES
-(9,'zzzzzzz'), (2,'zzzzz'), (1,'z'), (9,'zz'), (1,'zz'), (5,'zzzzzzz'),
-(4,'zz'), (3,'z'), (5,'zzzzzz'), (3,'zz'), (4,'zzzz'), (3,'z'),
-(9,'zzzzzzzz'), (2,'zz'), (1,'zz'), (9,'zzz'), (1,'zzz'), (5,'zzzzzzzz'),
-(4,'zzz'), (3,'zz'), (5,'zzzzzzz'), (3,'zzz'), (4,'zzzzz'), (3,'zz'),
-(9,'zzzzzz'), (2,'zzzz'), (1,'zzz'), (9,'z'), (1,'z'), (5,'zzzzzz'),
-(4,'z'), (3,'zzz'), (5,'zzzzz'), (3,'z'), (4,'zzz'), (3,'zzzz'),
-(9,'zzzzz'), (2,'zzz'), (1,'zzzz'), (9,'zzz'), (1,'zzzz'), (5,'zzzzz'),
-(4,'zzz'), (3,'zzzz'), (5,'zzzz'), (3,'zzz'), (4,'zz'), (3,'zzzzz');
-set @tmp= @@optimizer_switch;
-SET SESSION optimizer_switch='index_condition_pushdown=off';
-EXPLAIN SELECT * from t1,t2,t3 WHERE t3.a3=t1.a1 AND t2.a2=t1.a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL idx NULL NULL NULL 3
-1 SIMPLE t2 ref idx idx 4 test.t1.a1 2
-1 SIMPLE t3 ref idx idx 4 test.t1.a1 5
-EXPLAIN SELECT * FROM t1,t2,t3 WHERE t2.a2=t1.a1 AND t3.a3=t1.a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL idx NULL NULL NULL 3
-1 SIMPLE t2 ref idx idx 4 test.t1.a1 2
-1 SIMPLE t3 ref idx idx 4 test.t1.a1 5
-EXPLAIN SELECT * FROM t1,t2,t3 WHERE t2.a2=t1.a1 AND t3.a3=t2.a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL idx NULL NULL NULL 3
-1 SIMPLE t2 ref idx idx 4 test.t1.a1 2
-1 SIMPLE t3 ref idx idx 4 test.t1.a1 5
-SELECT * from t1,t2,t3
-WHERE t3.a3=t1.a1 AND t2.a2=t1.a1 AND
-LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
-a1 b1 a2 b2 a3 b3
-1 xxx 1 y 1 z
-1 xxx 1 y 1 z
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zzz
-1 xxx 1 y 1 zzz
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 zz
-1 xxx 1 yy 1 zz
-1 xxx 1 yyy 1 z
-1 xxx 1 yyy 1 z
-2 xx 2 y 2 zz
-2 xx 2 y 2 zzz
-2 xx 2 y 2 zzzz
-2 xx 2 yy 2 zz
-2 xx 2 yy 2 zzz
-SELECT * FROM t1,t2,t3
-WHERE t2.a2=t1.a1 AND t3.a3=t1.a1 AND
-LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
-a1 b1 a2 b2 a3 b3
-1 xxx 1 y 1 z
-1 xxx 1 y 1 z
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zzz
-1 xxx 1 y 1 zzz
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 zz
-1 xxx 1 yy 1 zz
-1 xxx 1 yyy 1 z
-1 xxx 1 yyy 1 z
-2 xx 2 y 2 zz
-2 xx 2 y 2 zzz
-2 xx 2 y 2 zzzz
-2 xx 2 yy 2 zz
-2 xx 2 yy 2 zzz
-SELECT * FROM t1,t2,t3
-WHERE t2.a2=t1.a1 AND t3.a3=t2.a2 AND
-LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
-a1 b1 a2 b2 a3 b3
-1 xxx 1 y 1 z
-1 xxx 1 y 1 z
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zzz
-1 xxx 1 y 1 zzz
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 zz
-1 xxx 1 yy 1 zz
-1 xxx 1 yyy 1 z
-1 xxx 1 yyy 1 z
-2 xx 2 y 2 zz
-2 xx 2 y 2 zzz
-2 xx 2 y 2 zzzz
-2 xx 2 yy 2 zz
-2 xx 2 yy 2 zzz
-SET SESSION optimizer_switch=@tmp;
-DROP TABLE t1,t2,t3;
-#
-# Bug #707555: crash with equality substitution in ref
-#
-CREATE TABLE t1 (f11 int, f12 int, PRIMARY KEY (f11), KEY (f12)) ;
-INSERT INTO t1 VALUES (1,NULL), (8,NULL);
-CREATE TABLE t2 (f21 int, f22 int, f23 int, KEY (f22)) ;
-INSERT INTO t2 VALUES (1,NULL,3), (2,7,8);
-CREATE TABLE t3 (f31 int, f32 int(11), PRIMARY KEY (f31), KEY (f32)) ;
-INSERT INTO t3 VALUES (1,494862336);
-CREATE TABLE t4 (f41 int, f42 int, PRIMARY KEY (f41), KEY (f42)) ;
-INSERT INTO t4 VALUES (1,NULL), (8,NULL);
-CREATE TABLE t5 (f51 int, PRIMARY KEY (f51)) ;
-INSERT IGNORE INTO t5 VALUES (100);
-CREATE TABLE t6 (f61 int, f62 int, KEY (f61)) ;
-INSERT INTO t6 VALUES (NULL,1), (3,10);
-CREATE TABLE t7 (f71 int, f72 int, KEY (f72)) ;
-INSERT INTO t7 VALUES (1,NULL), (2,7);
-EXPLAIN
-SELECT t2.f23 FROM
-(t1 LEFT JOIN (t2 JOIN t3 ON t2.f22=t3.f32) ON t1.f11=t3.f31)
-LEFT JOIN
-(((t4 JOIN t5 ON t4.f42=t5.f51) LEFT JOIN t6 ON t6.f62>0) JOIN t7 ON t6.f61>0)
-ON t3.f31 = t6.f61
-WHERE t7.f71>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 system PRIMARY,f32 NULL NULL NULL 1
-1 SIMPLE t5 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 ref f22 f22 5 const 1
-1 SIMPLE t6 ref f61 f61 5 const 1 Using where
-1 SIMPLE t4 ref f42 f42 5 const 1 Using index
-1 SIMPLE t7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-SELECT t2.f23 FROM
-(t1 LEFT JOIN (t2 JOIN t3 ON t2.f22=t3.f32) ON t1.f11=t3.f31)
-LEFT JOIN
-(((t4 JOIN t5 ON t4.f42=t5.f51) LEFT JOIN t6 ON t6.f62>0) JOIN t7 ON t6.f61>0)
-ON t3.f31 = t6.f61
-WHERE t7.f71>0;
-f23
-DROP TABLE t1,t2,t3,t4,t5,t6,t7;
-CREATE TABLE t1(f1 int UNSIGNED) engine=myisam;
-INSERT INTO t1 VALUES (3),(2),(1);
-set sql_buffer_result=0;
-SELECT f1 FROM t1 GROUP BY 1;
-f1
-1
-2
-3
-SELECT f1 FROM t1 GROUP BY '123' = 'abc';
-f1
-3
-SELECT 1 FROM t1 GROUP BY 1;
-1
-1
-set sql_buffer_result=1;
-SELECT f1 FROM t1 GROUP BY 1;
-f1
-1
-2
-3
-SELECT f1 FROM t1 GROUP BY '123' = 'abc';
-f1
-3
-SELECT 1 FROM t1 GROUP BY 1;
-1
-1
-drop table t1;
-set sql_buffer_result= 0;
-#
-# Bug #58422: Incorrect result when OUTER JOIN'ing
-# with an empty table
-#
-CREATE TABLE t_empty(pk INT PRIMARY KEY, i INT) ENGINE = MYISAM;
-CREATE TABLE t1(pk INT PRIMARY KEY, i INT) ENGINE = MYISAM;
-INSERT INTO t1 VALUES (1,1), (2,2), (3,3);
-CREATE TABLE t2(pk INT PRIMARY KEY, i INT) ENGINE = MYISAM;
-INSERT INTO t2 VALUES (1,1), (2,2), (3,3);
-EXPLAIN
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 INNER JOIN t_empty ON TRUE)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 INNER JOIN t_empty ON TRUE)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-pk i pk i pk i
-EXPLAIN
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 CROSS JOIN t_empty)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 CROSS JOIN t_empty)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-pk i pk i pk i
-EXPLAIN
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 INNER JOIN t_empty ON t_empty.i=t2.i)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 INNER JOIN t_empty ON t_empty.i=t2.i)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-pk i pk i pk i
-DROP TABLE t1,t2,t_empty;
-End of 5.1 tests
-#
-# Bug#45227: Lost HAVING clause led to a wrong result.
-#
-CREATE TABLE `CC` (
-`int_nokey` int(11) NOT NULL,
-`int_key` int(11) NOT NULL,
-`varchar_key` varchar(1) NOT NULL,
-`varchar_nokey` varchar(1) NOT NULL,
-KEY `int_key` (`int_key`),
-KEY `varchar_key` (`varchar_key`)
-);
-INSERT INTO `CC` VALUES
-(0,8,'q','q'),(5,8,'m','m'),(7,3,'j','j'),(1,2,'z','z'),(8,2,'a','a'),(2,6,'',''),(1,8,'e'
-,'e'),(8,9,'t','t'),(5,2,'q','q'),(4,6,'b','b'),(5,5,'w','w'),(3,2,'m','m'),(0,4,'x','x'),
-(8,9,'',''),(0,6,'w','w'),(4,5,'x','x'),(0,0,'e','e'),(0,0,'e','e'),(2,8,'p','p'),(0,0,'x'
-,'x');
-EXPLAIN SELECT `varchar_nokey` G1 FROM CC WHERE `int_nokey` AND `int_key` <= 4
-HAVING G1 ORDER BY `varchar_key` LIMIT 6 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CC range int_key int_key 4 NULL 10 Using index condition; Using where; Using filesort
-SELECT `varchar_nokey` G1 FROM CC WHERE `int_nokey` AND `int_key` <= 4
-HAVING G1 ORDER BY `varchar_key` LIMIT 6 ;
-G1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'z'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'q'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'j'
-DROP TABLE CC;
-# End of test#45227
-#
-# BUG#776274: substitution of a single row table
-#
-CREATE TABLE t1 (a int NOT NULL , b int);
-INSERT INTO t1 VALUES (2,2);
-SELECT * FROM t1 WHERE a = b;
-a b
-2 2
-EXPLAIN
-SELECT * FROM t1 WHERE a = b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-DROP TABLE t1;
-#
-# Bug#54515: Crash in opt_range.cc::get_best_group_min_max on
-# SELECT from VIEW with GROUP BY
-#
-CREATE TABLE t1 (
-col_int_key int DEFAULT NULL,
-KEY int_key (col_int_key)
-) ;
-INSERT INTO t1 VALUES (1),(2);
-CREATE VIEW view_t1 AS
-SELECT t1.col_int_key AS col_int_key
-FROM t1;
-SELECT col_int_key FROM view_t1 GROUP BY col_int_key;
-col_int_key
-1
-2
-DROP VIEW view_t1;
-DROP TABLE t1;
-# End of test BUG#54515
-#
-# Bug #57203 Assertion `field_length <= 255' failed.
-#
-SELECT coalesce((avg(distinct (geomfromtext("point(25379 -22010)")))))
-UNION ALL
-SELECT coalesce((avg(distinct (geomfromtext("point(25379 -22010)")))))
-AS foo
-;
-ERROR HY000: Illegal parameter data type geometry for operation 'avg'
-CREATE table t1(a text);
-INSERT INTO t1 VALUES (''), ('');
-SELECT avg(distinct(t1.a)) FROM t1, t1 t2
-GROUP BY t2.a ORDER BY t1.a;
-avg(distinct(t1.a))
-0
-DROP TABLE t1;
-# End of test BUG#57203
-#
-# lp:822760 Wrong result with view + invalid dates
-#
-CREATE TABLE t1 (f1 date);
-INSERT IGNORE INTO t1 VALUES ('0000-00-00');
-CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM t1 HAVING f1 = 'zz';
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'zz'
-SELECT * FROM t1 HAVING f1 <= 'aa' ;
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'aa'
-SELECT * FROM t1 HAVING f1 = 'zz' AND f1 <= 'aa' ;
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'zz'
-Warning 1292 Incorrect datetime value: 'aa'
-SELECT * FROM t1 WHERE f1 = 'zz' AND f1 <= 'aa' ;
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'zz'
-Warning 1292 Incorrect datetime value: 'aa'
-SELECT * FROM v1 HAVING f1 = 'zz' AND f1 <= 'aa' ;
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'zz'
-Warning 1292 Incorrect datetime value: 'aa'
-DROP TABLE t1;
-DROP VIEW v1;
-#
-# Bug#63020: Function "format"'s 'locale' argument is not considered
-# when creating a "view'
-#
-CREATE TABLE t1 (f1 DECIMAL(10,2));
-INSERT INTO t1 VALUES (11.67),(17865.3),(12345678.92);
-CREATE VIEW view_t1 AS SELECT FORMAT(f1,1,'sk_SK') AS f1 FROM t1;
-SHOW CREATE VIEW view_t1;
-View Create View character_set_client collation_connection
-view_t1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_t1` AS select format(`t1`.`f1`,1,'sk_SK') AS `f1` from `t1` latin1 latin1_swedish_ci
-SELECT * FROM view_t1;
-f1
-11,7
-17 865,3
-12 345 678,9
-DROP TABLE t1;
-DROP VIEW view_t1;
-# End of test BUG#63020
-#
-# Bug #13571700 TINYBLOB NOT NULL, CRASH IN PROTOCOL::NET_STORE_DATA
-#
-CREATE TABLE t1 (a TINYBLOB NOT NULL);
-SELECT a, COUNT(*) FROM t1 WHERE 0;
-a COUNT(*)
-NULL 0
-DROP TABLE t1;
-SET optimizer_switch=@save_optimizer_switch;
-#
-# LP bug#994275 Assertion `real->type() == Item::FIELD_ITEM' failed
-# in add_not_null_conds(JOIN*) with JOIN, ZEROFILL column, PK
-#
-CREATE TABLE t1 ( a INT(6) ZEROFILL );
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 ( b INT PRIMARY KEY );
-INSERT INTO t2 VALUES (3),(4);
-SELECT * FROM t1, t2 WHERE a=3 AND a=b;
-a b
-drop table t1,t2;
-#
-# Bug mdev-4250: wrong transformation of WHERE condition with OR
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, a int);
-INSERT INTO t1 VALUES (3,0), (2,0), (4,1), (5,0), (1,0);
-SELECT * FROM t1 WHERE (1=2 OR t1.pk=2) AND t1.a <> 0;
-pk a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (1=2 OR t1.pk=2) AND t1.a <> 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 2 AS `pk`,0 AS `a` from `test`.`t1` where 0
-DROP TABLE t1;
-SELECT * FROM mysql.time_zone
-WHERE ( NOT (Use_leap_seconds <= Use_leap_seconds AND Time_zone_id != 1)
-AND Time_zone_id = Time_zone_id
-OR Time_zone_id <> Time_zone_id )
-AND Use_leap_seconds <> 'N';
-Time_zone_id Use_leap_seconds
-#
-# Bug mdev-4274: result of simplification of OR badly merged
-# into embedding AND
-#
-CREATE TABLE t1 (a int, b int, INDEX idx(b)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (8,8);
-CREATE TABLE t2 (c int, INDEX idx(c)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8), (9);
-EXPLAIN EXTENDED
-SELECT * FROM t1 INNER JOIN t2 ON ( c = a )
-WHERE 1 IS NULL OR b < 33 AND b = c;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system idx NULL NULL NULL 1 100.00
-1 SIMPLE t2 ref idx idx 5 const 1 100.00 Using index
-Warnings:
-Note 1003 select 8 AS `a`,8 AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where `test`.`t2`.`c` = 8
-SELECT * FROM t1 INNER JOIN t2 ON ( c = a )
-WHERE 1 IS NULL OR b < 33 AND b = c;
-a b c
-8 8 8
-DROP TABLE t1,t2;
-#
-# Bug mdev-4413: another manifestations of bug mdev-4274
-# (valgrind complains)
-#
-CREATE TABLE t1 (a int, b int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (7,1);
-CREATE TABLE t2 (c int) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (0), (8);
-SELECT * FROM t1, t2
-WHERE c = a AND
-( 0 OR ( b BETWEEN 45 AND 300 OR a > 45 AND a < 100 ) AND b = c );
-a b c
-DROP TABLE t1, t2;
-#
-# Bug mdev-4355: equalities from the result of simplification of OR
-# are not propagated to lower AND levels
-#
-CREATE TABLE t1 (a INT, b INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,101),(2,102),(3,103),(4,104),(5,11);
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (1 != 1 OR a = 5) AND (b != 1 OR a = 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` = 5 and `test`.`t1`.`b` <> 1
-SELECT * FROM t1 WHERE (1 != 1 OR a = 5) AND (b != 1 OR a = 1);
-a b
-5 11
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (b != 1 OR a = 1) AND (1 != 1 OR a = 5);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` = 5 and `test`.`t1`.`b` <> 1
-SELECT * FROM t1 WHERE (b != 1 OR a = 1) AND (1 != 1 OR a = 5);
-a b
-5 11
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (b != 1 OR a = 1) AND (a = 5 OR 1 != 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` = 5 and `test`.`t1`.`b` <> 1
-SELECT * FROM t1 WHERE (b != 1 OR a = 1) AND (a = 5 OR 1 != 1);
-a b
-5 11
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (b = 1 OR a = 1) AND (b = 5 AND a = 5 OR 1 != 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where 0
-SELECT * FROM t1 WHERE (b = 1 OR a = 1) AND (b = 5 AND a = 5 OR 1 != 1);
-a b
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (b = 1 OR a = 5) AND (b = 5 AND a = 5 OR 1 != 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`b` = 5 and `test`.`t1`.`a` = 5
-SELECT * FROM t1 WHERE (b = 1 OR a = 5) AND (b = 5 AND a = 5 OR 1 != 1);
-a b
-DROP TABLE t1;
-#
-# Bug mdev-4418: impossible multiple equality in OR formula
-# after row substitution
-#
-CREATE TABLE t1 (a int, b varchar(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (0,'j'), (8,'v');
-CREATE TABLE t2 (c varchar(1), d varchar(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('k','k');
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2 WHERE c=b AND (1=2 OR ((b='h' OR a=136) AND d=b));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,'k' AS `c`,'k' AS `d` from `test`.`t1` where `test`.`t1`.`b` = 'k' and `test`.`t1`.`a` = 136
-SELECT * FROM t1, t2 WHERE c=b AND (1=2 OR ((b='h' OR a=136) AND d=b));
-a b c d
-DROP TABLE t1,t2;
-#
-# Bug mdev-4944: range conditition in OR formula with fields
-# belonging to multiple equalities
-#
-CREATE TABLE t1 (i1 int, j1 int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,8);
-CREATE TABLE t2 (i2 int, INDEX idx (i2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8), (9);
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2
-WHERE i1 = i2 AND ( FALSE OR ( j1 > 27 AND j1 < 100 OR j1 <= 3 ) AND j1 = i2 );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 1 AS `i1`,8 AS `j1`,NULL AS `i2` from `test`.`t2` where 0
-SELECT * FROM t1, t2
-WHERE i1 = i2 AND ( FALSE OR ( j1 > 27 AND j1 < 100 OR j1 <= 3 ) AND j1 = i2 );
-i1 j1 i2
-DROP TABLE t1,t2;
-#
-# Bug mdev-4971: equality propagation after merging degenerate
-# disjunction into embedding AND level
-#
-CREATE TABLE t1 (pk1 int, a1 int, b1 int, PRIMARY KEY(pk1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,10,100), (2,20,200) ;
-CREATE TABLE t2 (pk2 int, a2 int, PRIMARY KEY(pk2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,1);
-SELECT * FROM t1, t2
-WHERE a1 = pk2 AND ( ( b1 = 6 OR a2 > 4 ) AND pk2 = a2 OR pk1 IS NULL );
-pk1 a1 b1 pk2 a2
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2
-WHERE a1 = pk2 AND ( ( b1 = 6 OR a2 > 4 ) AND pk2 = a2 OR pk1 IS NULL );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system PRIMARY NULL NULL NULL 1 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`pk1` AS `pk1`,`test`.`t1`.`a1` AS `a1`,`test`.`t1`.`b1` AS `b1`,1 AS `pk2`,1 AS `a2` from `test`.`t1` where `test`.`t1`.`a1` = 1 and `test`.`t1`.`b1` = 6
-INSERT INTO t1 VALUES (3,1,6);
-SELECT * FROM t1, t2
-WHERE a1 = pk2 AND ( ( b1 = 6 OR a2 > 4 ) AND pk2 = a2 OR pk1 IS NULL );
-pk1 a1 b1 pk2 a2
-3 1 6 1 1
-DROP TABLE t1,t2;
-End of 5.3 tests
-#
-# mysql BUG#1271 Undefined variable in PASSWORD()
-# function is not handled correctly
-#
-create table t1 (
-name VARCHAR(50) NOT NULL PRIMARY KEY,
-pw VARCHAR(41) NOT NULL);
-INSERT INTO t1 (name, pw)
-VALUES ('tom', PASSWORD('my_pw'));
-SET @pass='my_pw';
-SET @wrong='incorrect';
-select * from t1;
-name pw
-tom *F305E8EC27734F687F2EB6EC03CF0F7AF27C18E1
-select length(PASSWORD(@pass));
-length(PASSWORD(@pass))
-41
-SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@pass);
-name
-tom
-SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@wrong);
-name
-SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@undefined);
-name
-select (SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@pass));
-(SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@pass))
-tom
-select (SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@wrong));
-(SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@wrong))
-NULL
-select (SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@undefined));
-(SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@undefined))
-NULL
-drop table t1;
-End of 10.0 tests
diff --git a/mysql-test/r/select_debug.result b/mysql-test/r/select_debug.result
deleted file mode 100644
index 55882ad337a..00000000000
--- a/mysql-test/r/select_debug.result
+++ /dev/null
@@ -1,18 +0,0 @@
-#
-# Bug #725050: print keyuse info when hash join is used
-#
-create table t1 (a int, b int);
-insert into t1 values (2,2), (1,1);
-create table t2 (a int);
-insert into t2 values (2), (3);
-set session join_cache_level=3;
-set @@debug_dbug= 'd,opt';
-explain select t1.b from t1,t2 where t1.b=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 5 test.t1.b 2 Using where; Using join buffer (flat, BNLH join)
-select t1.b from t1,t2 where t1.b=t2.a;
-b
-2
-set session join_cache_level=default;
-drop table t1,t2;
diff --git a/mysql-test/r/select_found.result b/mysql-test/r/select_found.result
deleted file mode 100644
index 2c37c2d28d8..00000000000
--- a/mysql-test/r/select_found.result
+++ /dev/null
@@ -1,365 +0,0 @@
-drop table if exists t1,t2;
-create table t1 (a int not null auto_increment, b int not null, primary key(a));
-insert into t1 (b) values (2),(3),(5),(5),(5),(6),(7),(9);
-select SQL_CALC_FOUND_ROWS * from t1;
-a b
-1 2
-2 3
-3 5
-4 5
-5 5
-6 6
-7 7
-8 9
-select found_rows();
-found_rows()
-8
-select SQL_CALC_FOUND_ROWS * from t1 limit 1;
-a b
-1 2
-select found_rows();
-found_rows()
-8
-select SQL_BUFFER_RESULT SQL_CALC_FOUND_ROWS * from t1 limit 1;
-a b
-1 2
-select found_rows();
-found_rows()
-8
-select SQL_CALC_FOUND_ROWS * from t1 order by b desc limit 1;
-a b
-8 9
-select found_rows();
-found_rows()
-8
-select SQL_CALC_FOUND_ROWS distinct b from t1 limit 1;
-b
-2
-select found_rows();
-found_rows()
-6
-select SQL_CALC_FOUND_ROWS b,count(*) as c from t1 group by b order by c desc limit 1;
-b c
-5 3
-select found_rows();
-found_rows()
-6
-select SQL_CALC_FOUND_ROWS * from t1 left join t1 as t2 on (t1.b=t2.a) limit 2,1;
-a b a b
-3 5 5 5
-select found_rows();
-found_rows()
-8
-drop table t1;
-create table t1 (a int not null primary key);
-insert into t1 values (1),(2),(3),(4),(5);
-select sql_calc_found_rows a from t1 where a in (1,2,3) order by a desc limit 0,2;
-a
-3
-2
-select FOUND_ROWS();
-FOUND_ROWS()
-3
-select sql_calc_found_rows a from t1 where a in (1,2,3) order by a+2 desc limit 0,2;
-a
-3
-2
-select FOUND_ROWS();
-FOUND_ROWS()
-3
-drop table t1;
-CREATE TABLE t1 (
-`id` smallint(5) unsigned NOT NULL auto_increment,
-`kid` smallint(5) unsigned NOT NULL default '0',
-PRIMARY KEY (`id`),
-KEY `kid` (`kid`)
-);
-CREATE TABLE t2 (
-id smallint(5) unsigned NOT NULL auto_increment,
-name varchar(50) NOT NULL default '',
-email varchar(50) NOT NULL default '',
-PRIMARY KEY (id),
-UNIQUE KEY e_n (email,name)
-);
-EXPLAIN SELECT SQL_CALC_FOUND_ROWS DISTINCT email FROM t2 LEFT JOIN t1 ON kid = t2.id WHERE t1.id IS NULL LIMIT 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY,kid NULL NULL NULL 0 Const row not found; Using temporary
-1 SIMPLE t2 ALL NULL NULL NULL NULL 200
-SELECT SQL_CALC_FOUND_ROWS DISTINCT email FROM t2 LEFT JOIN t1 ON kid = t2.id WHERE t1.id IS NULL LIMIT 10;
-email
-email1
-email2
-email3
-email4
-email5
-email6
-email7
-email8
-email9
-email10
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-200
-SELECT SQL_CALC_FOUND_ROWS DISTINCT email FROM t2 LEFT JOIN t1 ON kid = t2.id WHERE t1.id IS NULL order by email LIMIT 10;
-email
-email1
-email10
-email100
-email101
-email102
-email103
-email104
-email105
-email106
-email107
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-200
-SELECT DISTINCT email FROM t2 LEFT JOIN t1 ON kid = t2.id WHERE t1.id IS NULL LIMIT 10;
-email
-email1
-email2
-email3
-email4
-email5
-email6
-email7
-email8
-email9
-email10
-SELECT DISTINCT email FROM t2 LEFT JOIN t1 ON kid = t2.id WHERE t1.id IS NULL ORDER BY email LIMIT 10;
-email
-email1
-email10
-email100
-email101
-email102
-email103
-email104
-email105
-email106
-email107
-INSERT INTO `t1` (`id`, `kid`) VALUES ('0', '150');
-SELECT SQL_CALC_FOUND_ROWS DISTINCT email FROM t2 LEFT JOIN t1 ON kid = t2.id WHERE t1.id IS NULL LIMIT 10;
-email
-email1
-email2
-email3
-email4
-email5
-email6
-email7
-email8
-email9
-email10
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-199
-drop table t1,t2;
-CREATE TABLE `t1` (
-`titre` char(80) NOT NULL default '',
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM ROW_FORMAT=FIXED;
-INSERT INTO t1 (titre,maxnumrep) VALUES
-('test1','1'),('test2','2'),('test3','3');
-SELECT SQL_CALC_FOUND_ROWS titre,numeropost,maxnumrep FROM t1 WHERE numeropost IN (1,2) ORDER BY maxnumrep DESC LIMIT 0, 1;
-titre numeropost maxnumrep
-test2 2 2
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-2
-SELECT SQL_CALC_FOUND_ROWS 1 FROM (SELECT 1) as a LIMIT 0;
-1
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-1
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE numeropost > 1 LIMIT 0;
-titre numeropost maxnumrep
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-2
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 0;
-titre numeropost maxnumrep
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-3
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 ORDER BY numeropost LIMIT 0;
-titre numeropost maxnumrep
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-3
-drop table t1;
-create table t1 (id int, primary key (id));
-insert into t1 values (1), (2), (3), (4), (5);
-select SQL_CALC_FOUND_ROWS * from t1 where id > 3 limit 0, 1;
-id
-4
-select FOUND_ROWS();
-FOUND_ROWS()
-2
-select SQL_CALC_FOUND_ROWS * from t1 where id > 3 AND 1=2 limit 0, 1;
-id
-select FOUND_ROWS();
-FOUND_ROWS()
-0
-select SQL_CALC_FOUND_ROWS * from t1 where id > 6 limit 0, 1;
-id
-select FOUND_ROWS();
-FOUND_ROWS()
-0
-drop table t1;
-CREATE TABLE t1 ( a int not null, b int not null, KEY ab(a,b) );
-INSERT INTO t1 VALUES ( 47, 1 );
-INSERT INTO t1 VALUES ( 70, 1 );
-SELECT * FROM t1
-WHERE
-(
-( b =1 AND a BETWEEN 14 AND 21 ) OR
-( b =2 AND a BETWEEN 16 AND 18 ) OR
-( b =3 AND a BETWEEN 15 AND 19 )
-);
-a b
-DROP TABLE t1;
-CREATE TABLE t1 ( a integer, u varchar(15), r integer, key uao_idx( r, a, u));
-DELETE FROM t1
-WHERE ( r = 1 AND a IN ( 1, 2 ) AND ( u = 'w' OR u LIKE 'w/%' ) )
-OR ( r = 1 AND a IN ( 3 ) AND ( u = 'w/U' OR u LIKE 'w/U/%' ) )
-OR ( r = 1 AND a IN ( 1, 2, 3 ) AND ( u = 'w' ) );
-drop table t1;
-CREATE TABLE t1 (a VARCHAR(16), UNIQUE(a));
-INSERT INTO t1 VALUES ('1'), ('2'), ('3');
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE a = '2' LIMIT 0, 1;
-a
-2
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0), (0), (1), (2);
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE a = 0 GROUP BY a HAVING a > 10;
-a
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-0
-DROP TABLE t1;
-SELECT 'foo';
-foo
-foo
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-1
-SELECT SQL_CALC_FOUND_ROWS 'foo';
-foo
-foo
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-1
-SELECT SQL_CALC_FOUND_ROWS 'foo' limit 0;
-foo
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-1
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-1
-SELECT SQL_CALC_FOUND_ROWS 'foo' UNION SELECT 'bar' LIMIT 0;
-foo
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-2
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (1,2), (1,3), (1,4), (1,5);
-SELECT SQL_CALC_FOUND_ROWS DISTINCT 'a' FROM t1 GROUP BY b LIMIT 2;
-a
-a
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-1
-DROP TABLE t1;
-create table t1 (f1 int primary key, f2 tinyint) engine=myisam;
-insert t1 values (10,3),(11,2),(12,3);
-create table t2 (f3 int primary key) engine=myisam;
-insert t2 values (11),(12),(13);
-select f1 from t1,t2 where f1=f3 and f2=3 order by f1;
-f1
-12
-select found_rows();
-found_rows()
-1
-drop table t1, t2;
-create table t1 (a1 int auto_increment primary key, c1 int);
-insert t1 (a1) values (null);
-insert t1 (a1) select null from t1;
-insert t1 (a1) select null from t1;
-insert t1 (a1) select null from t1;
-insert t1 (a1) select null from t1;
-insert t1 (a1) select null from t1;
-insert t1 (a1) select null from t1;
-insert t1 (a1) select null from t1;
-insert t1 (a1) select null from t1;
-insert t1 (a1) select null from t1;
-update t1 set c1=a1 % 2;
-create table t2 (a2 int, b2 int, c2 char(16) default '', primary key (a2, b2));
-insert t2 select a1, 1, 'ok' from t1;
-insert t2 select a1, 2, 'ko' from t1;
-insert t2 select a1, 3, 'ko' from t1;
-insert t2 select a1, 4, 'ok' from t1;
-insert t2 select a1, 5, 'ok' from t1;
-select sql_calc_found_rows distinct a1,c2 from t1 join t2 on a2=a1
-where a1 <= 256 and c1=0 and c2='ok' order by a1 desc limit 46;
-select found_rows();
-found_rows()
-128
-drop table t1, t2;
-create table t1 (i1 int, v1 int, primary key(i1,v1));
-insert into t1 values (1,1),(2,2),(3,3);
-create table t2 (i2 int primary key, v2 int);
-insert into t2 values (1,5),(2,5),(3,10);
-select 1 as res from t1 left join t2 on i1 = i2 where v2 = 5 or v1 = 5 or v1 = 10 order by v1;
-res
-1
-1
-select sql_calc_found_rows 1 as res from t1 left join t2 on i1 = i2 where v2 = 5 or v1 = 5 or v1 = 10 order by v1 limit 1;
-select found_rows() as count;
-count
-2
-select sql_calc_found_rows 1 as res from t1 left join t2 on i1 = i2 where v2 = 5 order by v1 limit 1;
-select found_rows() as count;
-count
-2
-drop table t1, t2;
-create table t1 (i int, v varchar(64), key (i));
-select sql_calc_found_rows * from t1 where i = 0 order by v limit 59,2;
-i v
-0 foo
-0 foo
-select found_rows();
-found_rows()
-75
-select sql_calc_found_rows * from t1 ignore index (i) where i = 0 order by v limit 59,2;
-i v
-0 foo
-0 foo
-select found_rows();
-found_rows()
-75
-drop table t1;
-create table t1(c1 int);
-insert into t1 values(1),(2),(3),(4),(5);
-select * from t1 order by c1 limit 2,1;
-c1
-3
-select found_rows();
-found_rows()
-3
-select sql_calc_found_rows * from t1 order by c1 limit 2,1;
-c1
-3
-select found_rows();
-found_rows()
-5
-drop table t1;
diff --git a/mysql-test/r/select_jcl6.result b/mysql-test/r/select_jcl6.result
deleted file mode 100644
index d78fad15da1..00000000000
--- a/mysql-test/r/select_jcl6.result
+++ /dev/null
@@ -1,5568 +0,0 @@
-set @save_optimizer_switch_jcl6=@@optimizer_switch;
-set @@optimizer_switch='optimize_join_buffer_size=on';
-set @@optimizer_switch='semijoin_with_cache=on';
-set @@optimizer_switch='outer_join_with_cache=on';
-set @@optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set join_cache_level=6;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 6
-set @optimizer_switch_for_select_test=@@optimizer_switch;
-set @join_cache_level_for_select_test=@@join_cache_level;
-drop table if exists t1,t2,t3,t4,t11;
-drop table if exists t1_1,t1_2,t9_1,t9_2,t1aa,t2aa;
-drop view if exists v1;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch=ifnull(@optimizer_switch_for_select_test,'outer_join_with_cache=off');
-set join_cache_level=@join_cache_level_for_select_test;
-CREATE TABLE t1 (
-Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
-Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
-);
-INSERT INTO t1 VALUES (9410,9412);
-select period from t1;
-period
-9410
-select * from t1;
-Period Varor_period
-9410 9412
-select t1.* from t1;
-Period Varor_period
-9410 9412
-CREATE TABLE t2 (
-auto int not null auto_increment,
-fld1 int(6) unsigned zerofill DEFAULT '000000' NOT NULL,
-companynr tinyint(2) unsigned zerofill DEFAULT '00' NOT NULL,
-fld3 char(30) DEFAULT '' NOT NULL,
-fld4 char(35) DEFAULT '' NOT NULL,
-fld5 char(35) DEFAULT '' NOT NULL,
-fld6 char(4) DEFAULT '' NOT NULL,
-UNIQUE fld1 (fld1),
-KEY fld3 (fld3),
-PRIMARY KEY (auto)
-);
-select t2.fld3 from t2 where companynr = 58 and fld3 like "%imaginable%";
-fld3
-imaginable
-select fld3 from t2 where fld3 like "%cultivation" ;
-fld3
-cultivation
-select t2.fld3,companynr from t2 where companynr = 57+1 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3,companynr from t2 where companynr = 58 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3 from t2 order by fld3 desc limit 10;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select fld3 from t2 order by fld3 desc limit 5;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-select fld3 from t2 order by fld3 desc limit 5,5;
-fld3
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select t2.fld3 from t2 where fld3 = 'honeysuckle';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'hon_ysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle%';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'h%le';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle_';
-fld3
-select t2.fld3 from t2 where fld3 LIKE 'don_t_find_me_please%';
-fld3
-explain select t2.fld3 from t2 where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld1) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3,not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-explain select fld3 from t2 use index (not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-fld3
-honeysuckle
-honoring
-explain select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld3 fld3 30 NULL 2 Using where; Using index
-select fld1,fld3 from t2 where fld3="Colombo" or fld3 = "nondecreasing" order by fld3;
-fld1 fld3
-148504 Colombo
-068305 Colombo
-000000 nondecreasing
-select fld1,fld3 from t2 where companynr = 37 and fld3 = 'appendixes';
-fld1 fld3
-232605 appendixes
-1232605 appendixes
-1232606 appendixes
-1232607 appendixes
-1232608 appendixes
-1232609 appendixes
-select fld1 from t2 where fld1=250501 or fld1="250502";
-fld1
-250501
-250502
-explain select fld1 from t2 where fld1=250501 or fld1="250502";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 2 Using where; Using index
-select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-fld1
-250501
-250502
-250505
-250601
-explain select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 4 Using where; Using index
-select fld1,fld3 from t2 where companynr = 37 and fld3 like 'f%';
-fld1 fld3
-012001 flanking
-013602 foldout
-013606 fingerings
-018007 fanatic
-018017 featherweight
-018054 fetters
-018103 flint
-018104 flopping
-036002 funereal
-038017 fetched
-038205 firearm
-058004 Fenton
-088303 feminine
-186002 freakish
-188007 flurried
-188505 fitting
-198006 furthermore
-202301 Fitzpatrick
-208101 fiftieth
-208113 freest
-218008 finishers
-218022 feed
-218401 faithful
-226205 foothill
-226209 furnishings
-228306 forthcoming
-228311 fated
-231315 freezes
-232102 forgivably
-238007 filial
-238008 fixedly
-select fld3 from t2 where fld3 like "L%" and fld3 = "ok";
-fld3
-select fld3 from t2 where (fld3 like "C%" and fld3 = "Chantilly");
-fld3
-Chantilly
-select fld1,fld3 from t2 where fld1 like "25050%";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select fld1,fld3 from t2 where fld1 like "25050_";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select distinct companynr from t2;
-companynr
-00
-37
-36
-50
-58
-29
-40
-53
-65
-41
-34
-68
-select distinct companynr from t2 order by companynr;
-companynr
-00
-29
-34
-36
-37
-40
-41
-50
-53
-58
-65
-68
-select distinct companynr from t2 order by companynr desc;
-companynr
-68
-65
-58
-53
-50
-41
-40
-37
-36
-34
-29
-00
-select distinct t2.fld3,period from t2,t1 where companynr=37 and fld3 like "O%";
-fld3 period
-obliterates 9410
-offload 9410
-opaquely 9410
-organizer 9410
-overestimating 9410
-overlay 9410
-select distinct fld3 from t2 where companynr = 34 order by fld3;
-fld3
-absentee
-accessed
-ahead
-alphabetic
-Asiaticizations
-attitude
-aye
-bankruptcies
-belays
-Blythe
-bomb
-boulevard
-bulldozes
-cannot
-caressing
-charcoal
-checksumming
-chess
-clubroom
-colorful
-cosy
-creator
-crying
-Darius
-diffusing
-duality
-Eiffel
-Epiphany
-Ernestine
-explorers
-exterminated
-famine
-forked
-Gershwins
-heaving
-Hodges
-Iraqis
-Italianization
-Lagos
-landslide
-libretto
-Majorca
-mastering
-narrowed
-occurred
-offerers
-Palestine
-Peruvianizes
-pharmaceutic
-poisoning
-population
-Pygmalion
-rats
-realest
-recording
-regimented
-retransmitting
-reviver
-rouses
-scars
-sicker
-sleepwalk
-stopped
-sugars
-translatable
-uncles
-unexpected
-uprisings
-versatility
-vest
-select distinct fld3 from t2 limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct fld3 from t2 having fld3 like "A%" limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%";
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-Adl
-adm
-Ado
-ads
-adv
-aer
-aff
-afi
-afl
-afo
-agi
-ahe
-aim
-air
-Ald
-alg
-ali
-all
-alp
-alr
-ama
-ame
-amm
-ana
-and
-ane
-Ang
-ani
-Ann
-Ant
-api
-app
-aqu
-Ara
-arc
-Arm
-arr
-Art
-Asi
-ask
-asp
-ass
-ast
-att
-aud
-Aug
-aut
-ave
-avo
-awe
-aye
-Azt
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" order by a limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%" limit 10;
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-create table t3 (
-period int not null,
-name char(32) not null,
-companynr int not null,
-price double(11,0),
-price2 double(11,0),
-key (period),
-key (name)
-);
-create temporary table tmp engine = myisam select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-alter table t3 add t2nr int not null auto_increment primary key first;
-drop table tmp;
-SET BIG_TABLES=1;
-select distinct concat(fld3," ",fld3) as namn from t2,t3 where t2.fld1=t3.t2nr order by namn limit 10;
-namn
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-SET BIG_TABLES=0;
-select distinct concat(fld3," ",fld3) from t2,t3 where t2.fld1=t3.t2nr order by fld3 limit 10;
-concat(fld3," ",fld3)
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-select distinct fld5 from t2 limit 10;
-fld5
-neat
-Steinberg
-jarring
-tinily
-balled
-persist
-attainments
-fanatic
-measures
-rightfulness
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=1;
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=0;
-select distinct fld3,repeat("a",length(fld3)),count(*) from t2 group by companynr,fld3 limit 100,10;
-fld3 repeat("a",length(fld3)) count(*)
-circus aaaaaa 1
-cited aaaaa 1
-Colombo aaaaaaa 1
-congresswoman aaaaaaaaaaaaa 1
-contrition aaaaaaaaaa 1
-corny aaaaa 1
-cultivation aaaaaaaaaaa 1
-definiteness aaaaaaaaaaaa 1
-demultiplex aaaaaaaaaaa 1
-disappointing aaaaaaaaaaaaa 1
-select distinct companynr,rtrim(space(512+companynr)) from t3 order by 1,2;
-companynr rtrim(space(512+companynr))
-37
-78
-101
-154
-311
-447
-512
-select distinct fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by fld3;
-fld3
-explain select t3.t2nr,fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by t3.t2nr,fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL fld1 NULL NULL NULL 1199 Using where; Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.fld1 1 Using where; Using index
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL period NULL NULL NULL 41810 Using temporary; Using filesort
-1 SIMPLE t3 ref period period 4 test.t1.period 4181 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL period NULL NULL NULL 41810 Using temporary; Using filesort
-1 SIMPLE t1 ref period period 4 test.t3.period 4181 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t1.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL period NULL NULL NULL 41810 Using temporary; Using filesort
-1 SIMPLE t3 ref period period 4 test.t1.period 4181 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-select period from t1;
-period
-9410
-select period from t1 where period=1900;
-period
-select fld3,period from t1,t2 where fld1 = 011401 order by period;
-fld3 period
-breaking 9410
-select fld3,period from t2,t3 where t2.fld1 = 011401 and t2.fld1=t3.t2nr and t3.period=1001;
-fld3 period
-breaking 1001
-explain select fld3,period from t2,t3 where t2.fld1 = 011401 and t3.t2nr=t2.fld1 and 1001 = t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const fld1 fld1 4 const 1
-1 SIMPLE t3 const PRIMARY,period PRIMARY 4 const 1
-select fld3,period from t2,t1 where companynr*10 = 37*10;
-fld3 period
-breaking 9410
-Romans 9410
-intercepted 9410
-bewilderingly 9410
-astound 9410
-admonishing 9410
-sumac 9410
-flanking 9410
-combed 9410
-subjective 9410
-scatterbrain 9410
-Eulerian 9410
-Kane 9410
-overlay 9410
-perturb 9410
-goblins 9410
-annihilates 9410
-Wotan 9410
-snatching 9410
-concludes 9410
-laterally 9410
-yelped 9410
-grazing 9410
-Baird 9410
-celery 9410
-misunderstander 9410
-handgun 9410
-foldout 9410
-mystic 9410
-succumbed 9410
-Nabisco 9410
-fingerings 9410
-aging 9410
-afield 9410
-ammonium 9410
-boat 9410
-intelligibility 9410
-Augustine 9410
-teethe 9410
-dreaded 9410
-scholastics 9410
-audiology 9410
-wallet 9410
-parters 9410
-eschew 9410
-quitter 9410
-neat 9410
-Steinberg 9410
-jarring 9410
-tinily 9410
-balled 9410
-persist 9410
-attainments 9410
-fanatic 9410
-measures 9410
-rightfulness 9410
-capably 9410
-impulsive 9410
-starlet 9410
-terminators 9410
-untying 9410
-announces 9410
-featherweight 9410
-pessimist 9410
-daughter 9410
-decliner 9410
-lawgiver 9410
-stated 9410
-readable 9410
-attrition 9410
-cascade 9410
-motors 9410
-interrogate 9410
-pests 9410
-stairway 9410
-dopers 9410
-testicle 9410
-Parsifal 9410
-leavings 9410
-postulation 9410
-squeaking 9410
-contrasted 9410
-leftover 9410
-whiteners 9410
-erases 9410
-Punjab 9410
-Merritt 9410
-Quixotism 9410
-sweetish 9410
-dogging 9410
-scornfully 9410
-bellow 9410
-bills 9410
-cupboard 9410
-sureties 9410
-puddings 9410
-fetters 9410
-bivalves 9410
-incurring 9410
-Adolph 9410
-pithed 9410
-Miles 9410
-trimmings 9410
-tragedies 9410
-skulking 9410
-flint 9410
-flopping 9410
-relaxing 9410
-offload 9410
-suites 9410
-lists 9410
-animized 9410
-multilayer 9410
-standardizes 9410
-Judas 9410
-vacuuming 9410
-dentally 9410
-humanness 9410
-inch 9410
-Weissmuller 9410
-irresponsibly 9410
-luckily 9410
-culled 9410
-medical 9410
-bloodbath 9410
-subschema 9410
-animals 9410
-Micronesia 9410
-repetitions 9410
-Antares 9410
-ventilate 9410
-pityingly 9410
-interdependent 9410
-Graves 9410
-neonatal 9410
-chafe 9410
-honoring 9410
-realtor 9410
-elite 9410
-funereal 9410
-abrogating 9410
-sorters 9410
-Conley 9410
-lectured 9410
-Abraham 9410
-Hawaii 9410
-cage 9410
-hushes 9410
-Simla 9410
-reporters 9410
-Dutchman 9410
-descendants 9410
-groupings 9410
-dissociate 9410
-coexist 9410
-Beebe 9410
-Taoism 9410
-Connally 9410
-fetched 9410
-checkpoints 9410
-rusting 9410
-galling 9410
-obliterates 9410
-traitor 9410
-resumes 9410
-analyzable 9410
-terminator 9410
-gritty 9410
-firearm 9410
-minima 9410
-Selfridge 9410
-disable 9410
-witchcraft 9410
-betroth 9410
-Manhattanize 9410
-imprint 9410
-peeked 9410
-swelling 9410
-interrelationships 9410
-riser 9410
-Gandhian 9410
-peacock 9410
-bee 9410
-kanji 9410
-dental 9410
-scarf 9410
-chasm 9410
-insolence 9410
-syndicate 9410
-alike 9410
-imperial 9410
-convulsion 9410
-railway 9410
-validate 9410
-normalizes 9410
-comprehensive 9410
-chewing 9410
-denizen 9410
-schemer 9410
-chronicle 9410
-Kline 9410
-Anatole 9410
-partridges 9410
-brunch 9410
-recruited 9410
-dimensions 9410
-Chicana 9410
-announced 9410
-praised 9410
-employing 9410
-linear 9410
-quagmire 9410
-western 9410
-relishing 9410
-serving 9410
-scheduling 9410
-lore 9410
-eventful 9410
-arteriole 9410
-disentangle 9410
-cured 9410
-Fenton 9410
-avoidable 9410
-drains 9410
-detectably 9410
-husky 9410
-impelling 9410
-undoes 9410
-evened 9410
-squeezes 9410
-destroyer 9410
-rudeness 9410
-beaner 9410
-boorish 9410
-Everhart 9410
-encompass 9410
-mushrooms 9410
-Alison 9410
-externally 9410
-pellagra 9410
-cult 9410
-creek 9410
-Huffman 9410
-Majorca 9410
-governing 9410
-gadfly 9410
-reassigned 9410
-intentness 9410
-craziness 9410
-psychic 9410
-squabbled 9410
-burlesque 9410
-capped 9410
-extracted 9410
-DiMaggio 9410
-exclamation 9410
-subdirectory 9410
-Gothicism 9410
-feminine 9410
-metaphysically 9410
-sanding 9410
-Miltonism 9410
-freakish 9410
-index 9410
-straight 9410
-flurried 9410
-denotative 9410
-coming 9410
-commencements 9410
-gentleman 9410
-gifted 9410
-Shanghais 9410
-sportswriting 9410
-sloping 9410
-navies 9410
-leaflet 9410
-shooter 9410
-Joplin 9410
-babies 9410
-assails 9410
-admiring 9410
-swaying 9410
-Goldstine 9410
-fitting 9410
-Norwalk 9410
-analogy 9410
-deludes 9410
-cokes 9410
-Clayton 9410
-exhausts 9410
-causality 9410
-sating 9410
-icon 9410
-throttles 9410
-communicants 9410
-dehydrate 9410
-priceless 9410
-publicly 9410
-incidentals 9410
-commonplace 9410
-mumbles 9410
-furthermore 9410
-cautioned 9410
-parametrized 9410
-registration 9410
-sadly 9410
-positioning 9410
-babysitting 9410
-eternal 9410
-hoarder 9410
-congregates 9410
-rains 9410
-workers 9410
-sags 9410
-unplug 9410
-garage 9410
-boulder 9410
-specifics 9410
-Teresa 9410
-Winsett 9410
-convenient 9410
-buckboards 9410
-amenities 9410
-resplendent 9410
-sews 9410
-participated 9410
-Simon 9410
-certificates 9410
-Fitzpatrick 9410
-Evanston 9410
-misted 9410
-textures 9410
-save 9410
-count 9410
-rightful 9410
-chaperone 9410
-Lizzy 9410
-clenched 9410
-effortlessly 9410
-accessed 9410
-beaters 9410
-Hornblower 9410
-vests 9410
-indulgences 9410
-infallibly 9410
-unwilling 9410
-excrete 9410
-spools 9410
-crunches 9410
-overestimating 9410
-ineffective 9410
-humiliation 9410
-sophomore 9410
-star 9410
-rifles 9410
-dialysis 9410
-arriving 9410
-indulge 9410
-clockers 9410
-languages 9410
-Antarctica 9410
-percentage 9410
-ceiling 9410
-specification 9410
-regimented 9410
-ciphers 9410
-pictures 9410
-serpents 9410
-allot 9410
-realized 9410
-mayoral 9410
-opaquely 9410
-hostess 9410
-fiftieth 9410
-incorrectly 9410
-decomposition 9410
-stranglings 9410
-mixture 9410
-electroencephalography 9410
-similarities 9410
-charges 9410
-freest 9410
-Greenberg 9410
-tinting 9410
-expelled 9410
-warm 9410
-smoothed 9410
-deductions 9410
-Romano 9410
-bitterroot 9410
-corset 9410
-securing 9410
-environing 9410
-cute 9410
-Crays 9410
-heiress 9410
-inform 9410
-avenge 9410
-universals 9410
-Kinsey 9410
-ravines 9410
-bestseller 9410
-equilibrium 9410
-extents 9410
-relatively 9410
-pressure 9410
-critiques 9410
-befouled 9410
-rightfully 9410
-mechanizing 9410
-Latinizes 9410
-timesharing 9410
-Aden 9410
-embassies 9410
-males 9410
-shapelessly 9410
-mastering 9410
-Newtonian 9410
-finishers 9410
-abates 9410
-teem 9410
-kiting 9410
-stodgy 9410
-feed 9410
-guitars 9410
-airships 9410
-store 9410
-denounces 9410
-Pyle 9410
-Saxony 9410
-serializations 9410
-Peruvian 9410
-taxonomically 9410
-kingdom 9410
-stint 9410
-Sault 9410
-faithful 9410
-Ganymede 9410
-tidiness 9410
-gainful 9410
-contrary 9410
-Tipperary 9410
-tropics 9410
-theorizers 9410
-renew 9410
-already 9410
-terminal 9410
-Hegelian 9410
-hypothesizer 9410
-warningly 9410
-journalizing 9410
-nested 9410
-Lars 9410
-saplings 9410
-foothill 9410
-labeled 9410
-imperiously 9410
-reporters 9410
-furnishings 9410
-precipitable 9410
-discounts 9410
-excises 9410
-Stalin 9410
-despot 9410
-ripeness 9410
-Arabia 9410
-unruly 9410
-mournfulness 9410
-boom 9410
-slaughter 9410
-Sabine 9410
-handy 9410
-rural 9410
-organizer 9410
-shipyard 9410
-civics 9410
-inaccuracy 9410
-rules 9410
-juveniles 9410
-comprised 9410
-investigations 9410
-stabilizes 9410
-seminaries 9410
-Hunter 9410
-sporty 9410
-test 9410
-weasels 9410
-CERN 9410
-tempering 9410
-afore 9410
-Galatean 9410
-techniques 9410
-error 9410
-veranda 9410
-severely 9410
-Cassites 9410
-forthcoming 9410
-guides 9410
-vanish 9410
-lied 9410
-sawtooth 9410
-fated 9410
-gradually 9410
-widens 9410
-preclude 9410
-evenhandedly 9410
-percentage 9410
-disobedience 9410
-humility 9410
-gleaning 9410
-petted 9410
-bloater 9410
-minion 9410
-marginal 9410
-apiary 9410
-measures 9410
-precaution 9410
-repelled 9410
-primary 9410
-coverings 9410
-Artemia 9410
-navigate 9410
-spatial 9410
-Gurkha 9410
-meanwhile 9410
-Melinda 9410
-Butterfield 9410
-Aldrich 9410
-previewing 9410
-glut 9410
-unaffected 9410
-inmate 9410
-mineral 9410
-impending 9410
-meditation 9410
-ideas 9410
-miniaturizes 9410
-lewdly 9410
-title 9410
-youthfulness 9410
-creak 9410
-Chippewa 9410
-clamored 9410
-freezes 9410
-forgivably 9410
-reduce 9410
-McGovern 9410
-Nazis 9410
-epistle 9410
-socializes 9410
-conceptions 9410
-Kevin 9410
-uncovering 9410
-chews 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-raining 9410
-infest 9410
-compartment 9410
-minting 9410
-ducks 9410
-roped 9410
-waltz 9410
-Lillian 9410
-repressions 9410
-chillingly 9410
-noncritical 9410
-lithograph 9410
-spongers 9410
-parenthood 9410
-posed 9410
-instruments 9410
-filial 9410
-fixedly 9410
-relives 9410
-Pandora 9410
-watering 9410
-ungrateful 9410
-secures 9410
-poison 9410
-dusted 9410
-encompasses 9410
-presentation 9410
-Kantian 9410
-select fld3,period,price,price2 from t2,t3 where t2.fld1=t3.t2nr and period >= 1001 and period <= 1002 and t2.companynr = 37 order by fld3,period, price;
-fld3 period price price2
-admonishing 1002 28357832 8723648
-analyzable 1002 28357832 8723648
-annihilates 1001 5987435 234724
-Antares 1002 28357832 8723648
-astound 1001 5987435 234724
-audiology 1001 5987435 234724
-Augustine 1002 28357832 8723648
-Baird 1002 28357832 8723648
-bewilderingly 1001 5987435 234724
-breaking 1001 5987435 234724
-Conley 1001 5987435 234724
-dentally 1002 28357832 8723648
-dissociate 1002 28357832 8723648
-elite 1001 5987435 234724
-eschew 1001 5987435 234724
-Eulerian 1001 5987435 234724
-flanking 1001 5987435 234724
-foldout 1002 28357832 8723648
-funereal 1002 28357832 8723648
-galling 1002 28357832 8723648
-Graves 1001 5987435 234724
-grazing 1001 5987435 234724
-groupings 1001 5987435 234724
-handgun 1001 5987435 234724
-humility 1002 28357832 8723648
-impulsive 1002 28357832 8723648
-inch 1001 5987435 234724
-intelligibility 1001 5987435 234724
-jarring 1001 5987435 234724
-lawgiver 1001 5987435 234724
-lectured 1002 28357832 8723648
-Merritt 1002 28357832 8723648
-neonatal 1001 5987435 234724
-offload 1002 28357832 8723648
-parters 1002 28357832 8723648
-pityingly 1002 28357832 8723648
-puddings 1002 28357832 8723648
-Punjab 1001 5987435 234724
-quitter 1002 28357832 8723648
-realtor 1001 5987435 234724
-relaxing 1001 5987435 234724
-repetitions 1001 5987435 234724
-resumes 1001 5987435 234724
-Romans 1002 28357832 8723648
-rusting 1001 5987435 234724
-scholastics 1001 5987435 234724
-skulking 1002 28357832 8723648
-stated 1002 28357832 8723648
-suites 1002 28357832 8723648
-sureties 1001 5987435 234724
-testicle 1002 28357832 8723648
-tinily 1002 28357832 8723648
-tragedies 1001 5987435 234724
-trimmings 1001 5987435 234724
-vacuuming 1001 5987435 234724
-ventilate 1001 5987435 234724
-wallet 1001 5987435 234724
-Weissmuller 1002 28357832 8723648
-Wotan 1002 28357832 8723648
-select t2.fld1,fld3,period,price,price2 from t2,t3 where t2.fld1>= 18201 and t2.fld1 <= 18811 and t2.fld1=t3.t2nr and period = 1001 and t2.companynr = 37;
-fld1 fld3 period price price2
-018201 relaxing 1001 5987435 234724
-018601 vacuuming 1001 5987435 234724
-018801 inch 1001 5987435 234724
-018811 repetitions 1001 5987435 234724
-create table t4 (
-companynr tinyint(2) unsigned zerofill NOT NULL default '00',
-companyname char(30) NOT NULL default '',
-PRIMARY KEY (companynr),
-UNIQUE KEY companyname(companyname)
-) ENGINE=MyISAM MAX_ROWS=50 PACK_KEYS=1 COMMENT='companynames';
-select STRAIGHT_JOIN t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select SQL_SMALL_RESULT t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select * from t1,t1 t12;
-Period Varor_period Period Varor_period
-9410 9412 9410 9412
-select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505;
-fld1 fld1
-250501 250501
-250502 250501
-250503 250501
-250504 250501
-250505 250501
-250501 250502
-250502 250502
-250503 250502
-250504 250502
-250505 250502
-250501 250503
-250502 250503
-250503 250503
-250504 250503
-250505 250503
-250501 250504
-250502 250504
-250503 250504
-250504 250504
-250505 250504
-250501 250505
-250502 250505
-250503 250505
-250504 250505
-250505 250505
-insert into t2 (fld1, companynr) values (999999,99);
-select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-companynr companyname
-99 NULL
-select count(*) from t2 left join t4 using (companynr) where t4.companynr is not null;
-count(*)
-1199
-explain select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1 Using where; Not exists; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 1 test.t4.companynr 1200 Using where; Not exists; Using join buffer (flat, BNLH join)
-select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-companynr companyname
-select count(*) from t2 left join t4 using (companynr) where companynr is not null;
-count(*)
-1200
-explain select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-delete from t2 where fld1=999999;
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 and t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 1 test.t4.companynr 1199 Using where; Using join buffer (flat, BNLH join)
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 1 test.t4.companynr 1199 Using where; Using join buffer (flat, BNLH join)
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 and companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 1 test.t4.companynr 1199 Using where; Using join buffer (flat, BNLH join)
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 1 test.t4.companynr 1199 Using where; Using join buffer (flat, BNLH join)
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0 or t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 1 test.t4.companynr 1199 Using where; Using join buffer (flat, BNLH join)
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where ifnull(t2.companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 1 test.t4.companynr 1199 Using where; Using join buffer (flat, BNLH join)
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 1 test.t4.companynr 1199 Using where; Using join buffer (flat, BNLH join)
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0 or companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 1 test.t4.companynr 1199 Using where; Using join buffer (flat, BNLH join)
-explain select companynr,companyname from t4 left join t2 using (companynr) where ifnull(companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 1 test.t4.companynr 1199 Using where; Using join buffer (flat, BNLH join)
-select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-companynr companynr
-37 36
-41 40
-explain select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 index NULL PRIMARY 1 NULL 12 Using index; Using temporary
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 1 func 1199 Using where; Using join buffer (flat, BNLH join)
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where t2.fld1 = 38208 and t2.fld1=t3.t2nr and period = 1008 or t2.fld1 = 38008 and t2.fld1 =t3.t2nr and period = 1008;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t2.fld1 = 38208 or t2.fld1 = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t3.t2nr = 38208 or t3.t2nr = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select period from t1 where (((period > 0) or period < 10000 or (period = 1900)) and (period=1900 and period <= 1901) or (period=1903 and (period=1903)) and period>=1902) or ((period=1904 or period=1905) or (period=1906 or period>1907)) or (period=1908 and period = 1909);
-period
-9410
-select period from t1 where ((period > 0 and period < 1) or (((period > 0 and period < 100) and (period > 10)) or (period > 10)) or (period > 0 and (period > 5 or period > 6)));
-period
-9410
-select a.fld1 from t2 as a,t2 b where ((a.fld1 = 250501 and a.fld1=b.fld1) or a.fld1=250502 or a.fld1=250503 or (a.fld1=250505 and a.fld1<=b.fld1 and b.fld1>=a.fld1)) and a.fld1=b.fld1;
-fld1
-250501
-250502
-250503
-250505
-select fld1 from t2 where fld1 in (250502,98005,98006,250503,250605,250606) and fld1 >=250502 and fld1 not in (250605,250606);
-fld1
-250502
-250503
-select fld1 from t2 where fld1 between 250502 and 250504;
-fld1
-250502
-250503
-250504
-select fld3 from t2 where (((fld3 like "_%L%" ) or (fld3 like "%ok%")) and ( fld3 like "L%" or fld3 like "G%")) and fld3 like "L%" ;
-fld3
-label
-labeled
-labeled
-landslide
-laterally
-leaflet
-lewdly
-Lillian
-luckily
-select count(*) from t1;
-count(*)
-1
-select companynr,count(*),sum(fld1) from t2 group by companynr;
-companynr count(*) sum(fld1)
-00 82 10355753
-29 95 14473298
-34 70 17788966
-36 215 22786296
-37 588 83602098
-40 37 6618386
-41 52 12816335
-50 11 1595438
-53 4 793210
-58 23 2254293
-65 10 2284055
-68 12 3097288
-select companynr,count(*) from t2 group by companynr order by companynr desc limit 5;
-companynr count(*)
-68 12
-65 10
-58 23
-53 4
-50 11
-select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-explain extended select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 100.00 Using where
-Warnings:
-Note 1003 select count(0) AS `count(*)`,min(`test`.`t2`.`fld4`) AS `min(fld4)`,max(`test`.`t2`.`fld4`) AS `max(fld4)`,sum(`test`.`t2`.`fld1`) AS `sum(fld1)`,avg(`test`.`t2`.`fld1`) AS `avg(fld1)`,std(`test`.`t2`.`fld1`) AS `std(fld1)`,variance(`test`.`t2`.`fld1`) AS `variance(fld1)` from `test`.`t2` where `test`.`t2`.`companynr` = 34 and `test`.`t2`.`fld4` <> ''
-select companynr,count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 group by companynr limit 3;
-companynr count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-00 82 Anthony windmills 10355753 126289.6707 115550.9757 13352027981.7087
-29 95 abut wetness 14473298 152350.5053 8368.5480 70032594.9026
-34 70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-select companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select /*! SQL_SMALL_RESULT */ companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select companynr,count(price),sum(price),min(price),max(price),avg(price) from t3 group by companynr ;
-companynr count(price) sum(price) min(price) max(price) avg(price)
-37 12543 309394878010 5987435 39654943 24666736.6667
-78 8362 414611089292 726498 98439034 49582766.0000
-101 4181 3489454238 834598 834598 834598.0000
-154 4181 4112197254950 983543950 983543950 983543950.0000
-311 4181 979599938 234298 234298 234298.0000
-447 4181 9929180954 2374834 2374834 2374834.0000
-512 4181 3288532102 786542 786542 786542.0000
-select distinct mod(companynr,10) from t4 group by companynr;
-mod(companynr,10)
-0
-9
-4
-6
-7
-1
-3
-8
-5
-select distinct 1 from t4 group by companynr;
-1
-1
-select count(distinct fld1) from t2;
-count(distinct fld1)
-1199
-select companynr,count(distinct fld1) from t2 group by companynr;
-companynr count(distinct fld1)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(*) from t2 group by companynr;
-companynr count(*)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,1000))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,1000)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,200))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,200)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct floor(fld1/100)) from t2 group by companynr;
-companynr count(distinct floor(fld1/100))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select companynr,count(distinct concat(repeat(65,1000),floor(fld1/100))) from t2 group by companynr;
-companynr count(distinct concat(repeat(65,1000),floor(fld1/100)))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select sum(fld1),fld3 from t2 where fld3="Romans" group by fld1 limit 10;
-sum(fld1) fld3
-11402 Romans
-select name,count(*) from t3 where name='cloakroom' group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name='cloakroom' and price>10 group by name;
-name count(*)
-cloakroom 4181
-select count(*) from t3 where name='cloakroom' and price2=823742;
-count(*)
-4181
-select name,count(*) from t3 where name='cloakroom' and price2=823742 group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name >= "extramarital" and price <= 39654943 group by name;
-name count(*)
-extramarital 4181
-gazer 4181
-gems 4181
-Iranizes 4181
-spates 4181
-tucked 4181
-violinist 4181
-select t2.fld3,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld3 count(*)
-spates 4181
-select companynr|0,companyname from t4 group by 1;
-companynr|0 companyname
-0 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by t2.companynr order by companyname;
-companynr companyname count(*)
-29 company 1 95
-68 company 10 12
-50 company 11 11
-34 company 2 70
-36 company 3 215
-37 company 4 588
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-00 Unknown 82
-select t2.fld1,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld1 count(*)
-158402 4181
-select sum(Period)/count(*) from t1;
-sum(Period)/count(*)
-9410.0000
-select companynr,count(price) as "count",sum(price) as "sum" ,abs(sum(price)/count(price)-avg(price)) as "diff",(0+count(price))*companynr as func from t3 group by companynr;
-companynr count sum diff func
-37 12543 309394878010 0.0000 464091
-78 8362 414611089292 0.0000 652236
-101 4181 3489454238 0.0000 422281
-154 4181 4112197254950 0.0000 643874
-311 4181 979599938 0.0000 1300291
-447 4181 9929180954 0.0000 1868907
-512 4181 3288532102 0.0000 2140672
-select companynr,sum(price)/count(price) as avg from t3 group by companynr having avg > 70000000 order by avg;
-companynr avg
-154 983543950.0000
-select companynr,count(*) from t2 group by companynr order by 2 desc;
-companynr count(*)
-37 588
-36 215
-29 95
-00 82
-34 70
-41 52
-40 37
-58 23
-68 12
-50 11
-65 10
-53 4
-select companynr,count(*) from t2 where companynr > 40 group by companynr order by 2 desc;
-companynr count(*)
-41 52
-58 23
-68 12
-50 11
-65 10
-53 4
-select t2.fld4,t2.fld1,count(price),sum(price),min(price),max(price),avg(price) from t3,t2 where t3.companynr = 37 and t2.fld1 = t3.t2nr group by fld1,t2.fld4;
-fld4 fld1 count(price) sum(price) min(price) max(price) avg(price)
-teethe 000001 1 5987435 5987435 5987435 5987435.0000
-dreaded 011401 1 5987435 5987435 5987435 5987435.0000
-scholastics 011402 1 28357832 28357832 28357832 28357832.0000
-audiology 011403 1 39654943 39654943 39654943 39654943.0000
-wallet 011501 1 5987435 5987435 5987435 5987435.0000
-parters 011701 1 5987435 5987435 5987435 5987435.0000
-eschew 011702 1 28357832 28357832 28357832 28357832.0000
-quitter 011703 1 39654943 39654943 39654943 39654943.0000
-neat 012001 1 5987435 5987435 5987435 5987435.0000
-Steinberg 012003 1 39654943 39654943 39654943 39654943.0000
-balled 012301 1 5987435 5987435 5987435 5987435.0000
-persist 012302 1 28357832 28357832 28357832 28357832.0000
-attainments 012303 1 39654943 39654943 39654943 39654943.0000
-capably 012501 1 5987435 5987435 5987435 5987435.0000
-impulsive 012602 1 28357832 28357832 28357832 28357832.0000
-starlet 012603 1 39654943 39654943 39654943 39654943.0000
-featherweight 012701 1 5987435 5987435 5987435 5987435.0000
-pessimist 012702 1 28357832 28357832 28357832 28357832.0000
-daughter 012703 1 39654943 39654943 39654943 39654943.0000
-lawgiver 013601 1 5987435 5987435 5987435 5987435.0000
-stated 013602 1 28357832 28357832 28357832 28357832.0000
-readable 013603 1 39654943 39654943 39654943 39654943.0000
-testicle 013801 1 5987435 5987435 5987435 5987435.0000
-Parsifal 013802 1 28357832 28357832 28357832 28357832.0000
-leavings 013803 1 39654943 39654943 39654943 39654943.0000
-squeaking 013901 1 5987435 5987435 5987435 5987435.0000
-contrasted 016001 1 5987435 5987435 5987435 5987435.0000
-leftover 016201 1 5987435 5987435 5987435 5987435.0000
-whiteners 016202 1 28357832 28357832 28357832 28357832.0000
-erases 016301 1 5987435 5987435 5987435 5987435.0000
-Punjab 016302 1 28357832 28357832 28357832 28357832.0000
-Merritt 016303 1 39654943 39654943 39654943 39654943.0000
-sweetish 018001 1 5987435 5987435 5987435 5987435.0000
-dogging 018002 1 28357832 28357832 28357832 28357832.0000
-scornfully 018003 1 39654943 39654943 39654943 39654943.0000
-fetters 018012 1 28357832 28357832 28357832 28357832.0000
-bivalves 018013 1 39654943 39654943 39654943 39654943.0000
-skulking 018021 1 5987435 5987435 5987435 5987435.0000
-flint 018022 1 28357832 28357832 28357832 28357832.0000
-flopping 018023 1 39654943 39654943 39654943 39654943.0000
-Judas 018032 1 28357832 28357832 28357832 28357832.0000
-vacuuming 018033 1 39654943 39654943 39654943 39654943.0000
-medical 018041 1 5987435 5987435 5987435 5987435.0000
-bloodbath 018042 1 28357832 28357832 28357832 28357832.0000
-subschema 018043 1 39654943 39654943 39654943 39654943.0000
-interdependent 018051 1 5987435 5987435 5987435 5987435.0000
-Graves 018052 1 28357832 28357832 28357832 28357832.0000
-neonatal 018053 1 39654943 39654943 39654943 39654943.0000
-sorters 018061 1 5987435 5987435 5987435 5987435.0000
-epistle 018062 1 28357832 28357832 28357832 28357832.0000
-Conley 018101 1 5987435 5987435 5987435 5987435.0000
-lectured 018102 1 28357832 28357832 28357832 28357832.0000
-Abraham 018103 1 39654943 39654943 39654943 39654943.0000
-cage 018201 1 5987435 5987435 5987435 5987435.0000
-hushes 018202 1 28357832 28357832 28357832 28357832.0000
-Simla 018402 1 28357832 28357832 28357832 28357832.0000
-reporters 018403 1 39654943 39654943 39654943 39654943.0000
-coexist 018601 1 5987435 5987435 5987435 5987435.0000
-Beebe 018602 1 28357832 28357832 28357832 28357832.0000
-Taoism 018603 1 39654943 39654943 39654943 39654943.0000
-Connally 018801 1 5987435 5987435 5987435 5987435.0000
-fetched 018802 1 28357832 28357832 28357832 28357832.0000
-checkpoints 018803 1 39654943 39654943 39654943 39654943.0000
-gritty 018811 1 5987435 5987435 5987435 5987435.0000
-firearm 018812 1 28357832 28357832 28357832 28357832.0000
-minima 019101 1 5987435 5987435 5987435 5987435.0000
-Selfridge 019102 1 28357832 28357832 28357832 28357832.0000
-disable 019103 1 39654943 39654943 39654943 39654943.0000
-witchcraft 019201 1 5987435 5987435 5987435 5987435.0000
-betroth 030501 1 5987435 5987435 5987435 5987435.0000
-Manhattanize 030502 1 28357832 28357832 28357832 28357832.0000
-imprint 030503 1 39654943 39654943 39654943 39654943.0000
-swelling 031901 1 5987435 5987435 5987435 5987435.0000
-interrelationships 036001 1 5987435 5987435 5987435 5987435.0000
-riser 036002 1 28357832 28357832 28357832 28357832.0000
-bee 038001 1 5987435 5987435 5987435 5987435.0000
-kanji 038002 1 28357832 28357832 28357832 28357832.0000
-dental 038003 1 39654943 39654943 39654943 39654943.0000
-railway 038011 1 5987435 5987435 5987435 5987435.0000
-validate 038012 1 28357832 28357832 28357832 28357832.0000
-normalizes 038013 1 39654943 39654943 39654943 39654943.0000
-Kline 038101 1 5987435 5987435 5987435 5987435.0000
-Anatole 038102 1 28357832 28357832 28357832 28357832.0000
-partridges 038103 1 39654943 39654943 39654943 39654943.0000
-recruited 038201 1 5987435 5987435 5987435 5987435.0000
-dimensions 038202 1 28357832 28357832 28357832 28357832.0000
-Chicana 038203 1 39654943 39654943 39654943 39654943.0000
-select t3.companynr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 group by companynr,fld3;
-companynr fld3 sum(price)
-512 boat 786542
-512 capably 786542
-512 cupboard 786542
-512 decliner 786542
-512 descendants 786542
-512 dopers 786542
-512 erases 786542
-512 Micronesia 786542
-512 Miles 786542
-512 skies 786542
-select t2.companynr,count(*),min(fld3),max(fld3),sum(price),avg(price) from t2,t3 where t3.companynr >= 30 and t3.companynr <= 58 and t3.t2nr = t2.fld1 and 1+1=2 group by t2.companynr;
-companynr count(*) min(fld3) max(fld3) sum(price) avg(price)
-00 1 Omaha Omaha 5987435 5987435.0000
-36 1 dubbed dubbed 28357832 28357832.0000
-37 83 Abraham Wotan 1908978016 22999735.1325
-50 2 scribbled tapestry 68012775 34006387.5000
-select t3.companynr+0,t3.t2nr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 37 group by 1,t3.t2nr,fld3,fld3,fld3,fld3,fld3 order by fld1;
-t3.companynr+0 t2nr fld3 sum(price)
-37 1 Omaha 5987435
-37 11401 breaking 5987435
-37 11402 Romans 28357832
-37 11403 intercepted 39654943
-37 11501 bewilderingly 5987435
-37 11701 astound 5987435
-37 11702 admonishing 28357832
-37 11703 sumac 39654943
-37 12001 flanking 5987435
-37 12003 combed 39654943
-37 12301 Eulerian 5987435
-37 12302 dubbed 28357832
-37 12303 Kane 39654943
-37 12501 annihilates 5987435
-37 12602 Wotan 28357832
-37 12603 snatching 39654943
-37 12701 grazing 5987435
-37 12702 Baird 28357832
-37 12703 celery 39654943
-37 13601 handgun 5987435
-37 13602 foldout 28357832
-37 13603 mystic 39654943
-37 13801 intelligibility 5987435
-37 13802 Augustine 28357832
-37 13803 teethe 39654943
-37 13901 scholastics 5987435
-37 16001 audiology 5987435
-37 16201 wallet 5987435
-37 16202 parters 28357832
-37 16301 eschew 5987435
-37 16302 quitter 28357832
-37 16303 neat 39654943
-37 18001 jarring 5987435
-37 18002 tinily 28357832
-37 18003 balled 39654943
-37 18012 impulsive 28357832
-37 18013 starlet 39654943
-37 18021 lawgiver 5987435
-37 18022 stated 28357832
-37 18023 readable 39654943
-37 18032 testicle 28357832
-37 18033 Parsifal 39654943
-37 18041 Punjab 5987435
-37 18042 Merritt 28357832
-37 18043 Quixotism 39654943
-37 18051 sureties 5987435
-37 18052 puddings 28357832
-37 18053 tapestry 39654943
-37 18061 trimmings 5987435
-37 18062 humility 28357832
-37 18101 tragedies 5987435
-37 18102 skulking 28357832
-37 18103 flint 39654943
-37 18201 relaxing 5987435
-37 18202 offload 28357832
-37 18402 suites 28357832
-37 18403 lists 39654943
-37 18601 vacuuming 5987435
-37 18602 dentally 28357832
-37 18603 humanness 39654943
-37 18801 inch 5987435
-37 18802 Weissmuller 28357832
-37 18803 irresponsibly 39654943
-37 18811 repetitions 5987435
-37 18812 Antares 28357832
-37 19101 ventilate 5987435
-37 19102 pityingly 28357832
-37 19103 interdependent 39654943
-37 19201 Graves 5987435
-37 30501 neonatal 5987435
-37 30502 scribbled 28357832
-37 30503 chafe 39654943
-37 31901 realtor 5987435
-37 36001 elite 5987435
-37 36002 funereal 28357832
-37 38001 Conley 5987435
-37 38002 lectured 28357832
-37 38003 Abraham 39654943
-37 38011 groupings 5987435
-37 38012 dissociate 28357832
-37 38013 coexist 39654943
-37 38101 rusting 5987435
-37 38102 galling 28357832
-37 38103 obliterates 39654943
-37 38201 resumes 5987435
-37 38202 analyzable 28357832
-37 38203 terminator 39654943
-select sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1= t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008;
-sum(price)
-234298
-select t2.fld1,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1 = t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008 or t3.t2nr = t2.fld1 and t2.fld1 = 38008 group by t2.fld1;
-fld1 sum(price)
-038008 234298
-explain select fld3 from t2 where 1>2 or 2>3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select fld3 from t2 where fld1=fld1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199
-select companynr,fld1 from t2 HAVING fld1=250501 or fld1=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,fld1 from t2 WHERE fld1>=250501 HAVING fld1<=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,count(*) as count,sum(fld1) as sum from t2 group by companynr having count > 40 and sum/count >= 120000;
-companynr count sum
-00 82 10355753
-29 95 14473298
-34 70 17788966
-37 588 83602098
-41 52 12816335
-select companynr from t2 group by companynr having count(*) > 40 and sum(fld1)/count(*) >= 120000 ;
-companynr
-00
-29
-34
-37
-41
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by companyname having t2.companynr >= 40;
-companynr companyname count(*)
-68 company 10 12
-50 company 11 11
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-select count(*) from t2;
-count(*)
-1199
-select count(*) from t2 where fld1 < 098024;
-count(*)
-387
-select min(fld1) from t2 where fld1>= 098024;
-min(fld1)
-98024
-select max(fld1) from t2 where fld1>= 098024;
-max(fld1)
-1232609
-select count(*) from t3 where price2=76234234;
-count(*)
-4181
-select count(*) from t3 where companynr=512 and price2=76234234;
-count(*)
-4181
-explain select min(fld1),max(fld1),count(*) from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(fld1),max(fld1),count(*) from t2;
-min(fld1) max(fld1) count(*)
-0 1232609 1199
-select min(t2nr),max(t2nr) from t3 where t2nr=2115 and price2=823742;
-min(t2nr) max(t2nr)
-2115 2115
-select count(*),min(t2nr),max(t2nr) from t3 where name='spates' and companynr=78;
-count(*) min(t2nr) max(t2nr)
-4181 4 41804
-select t2nr,count(*) from t3 where name='gems' group by t2nr limit 20;
-t2nr count(*)
-9 1
-19 1
-29 1
-39 1
-49 1
-59 1
-69 1
-79 1
-89 1
-99 1
-109 1
-119 1
-129 1
-139 1
-149 1
-159 1
-169 1
-179 1
-189 1
-199 1
-select max(t2nr) from t3 where price=983543950;
-max(t2nr)
-41807
-select t1.period from t3 = t1 limit 1;
-period
-1001
-select t1.period from t1 as t1 limit 1;
-period
-9410
-select t1.period as "Nuvarande period" from t1 as t1 limit 1;
-Nuvarande period
-9410
-select period as ok_period from t1 limit 1;
-ok_period
-9410
-select period as ok_period from t1 group by ok_period limit 1;
-ok_period
-9410
-select 1+1 as summa from t1 group by summa limit 1;
-summa
-2
-select period as "Nuvarande period" from t1 group by "Nuvarande period" limit 1;
-Nuvarande period
-9410
-show tables;
-Tables_in_test
-t1
-t2
-t3
-t4
-show tables from test like "s%";
-Tables_in_test (s%)
-show tables from test like "t?";
-Tables_in_test (t?)
-show full columns from t2;
-Field Type Collation Null Key Default Extra Privileges Comment
-auto int(11) NULL NO PRI NULL auto_increment #
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-companynr tinyint(2) unsigned zerofill NULL NO 00 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 'f%';
-Field Type Collation Null Key Default Extra Privileges Comment
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 's%';
-Field Type Collation Null Key Default Extra Privileges Comment
-show keys from t2;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t2 0 PRIMARY 1 auto A 1199 NULL NULL BTREE
-t2 0 fld1 1 fld1 A 1199 NULL NULL BTREE
-t2 1 fld3 1 fld3 A NULL NULL NULL BTREE
-drop table t4, t3, t2, t1;
-DO 1;
-DO benchmark(100,1+1),1,1;
-do default;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-do foobar;
-ERROR 42S22: Unknown column 'foobar' in 'field list'
-CREATE TABLE t1 (
-id mediumint(8) unsigned NOT NULL auto_increment,
-pseudo varchar(35) NOT NULL default '',
-PRIMARY KEY (id),
-UNIQUE KEY pseudo (pseudo)
-);
-INSERT INTO t1 (pseudo) VALUES ('test');
-INSERT INTO t1 (pseudo) VALUES ('test1');
-SELECT 1 as rnd1 from t1 where rand() > 2;
-rnd1
-DROP TABLE t1;
-CREATE TABLE t1 (gvid int(10) unsigned default NULL, hmid int(10) unsigned default NULL, volid int(10) unsigned default NULL, mmid int(10) unsigned default NULL, hdid int(10) unsigned default NULL, fsid int(10) unsigned default NULL, ctid int(10) unsigned default NULL, dtid int(10) unsigned default NULL, cost int(10) unsigned default NULL, performance int(10) unsigned default NULL, serialnumber bigint(20) unsigned default NULL, monitored tinyint(3) unsigned default '1', removed tinyint(3) unsigned default '0', target tinyint(3) unsigned default '0', dt_modified timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, name varchar(255) binary default NULL, description varchar(255) default NULL, UNIQUE KEY hmid (hmid,volid)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (200001,2,1,1,100,1,1,1,0,0,0,1,0,1,20020425060057,'\\\\ARKIVIO-TESTPDC\\E$',''),(200002,2,2,1,101,1,1,1,0,0,0,1,0,1,20020425060057,'\\\\ARKIVIO-TESTPDC\\C$',''),(200003,1,3,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,1,20020425060427,'c:',NULL);
-CREATE TABLE t2 ( hmid int(10) unsigned default NULL, volid int(10) unsigned default NULL, sampletid smallint(5) unsigned default NULL, sampletime datetime default NULL, samplevalue bigint(20) unsigned default NULL, KEY idx1 (hmid,volid,sampletid,sampletime)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,3,10,'2002-06-01 08:00:00',35),(1,3,1010,'2002-06-01 12:00:01',35);
-SELECT a.gvid, (SUM(CASE b.sampletid WHEN 140 THEN b.samplevalue ELSE 0 END)) as the_success,(SUM(CASE b.sampletid WHEN 141 THEN b.samplevalue ELSE 0 END)) as the_fail,(SUM(CASE b.sampletid WHEN 142 THEN b.samplevalue ELSE 0 END)) as the_size,(SUM(CASE b.sampletid WHEN 143 THEN b.samplevalue ELSE 0 END)) as the_time FROM t1 a, t2 b WHERE a.hmid = b.hmid AND a.volid = b.volid AND b.sampletime >= 'wrong-date-value' AND b.sampletime < 'wrong-date-value' AND b.sampletid IN (140, 141, 142, 143) GROUP BY a.gvid;
-gvid the_success the_fail the_size the_time
-Warnings:
-Warning 1292 Incorrect datetime value: 'wrong-date-value'
-Warning 1292 Incorrect datetime value: 'wrong-date-value'
-SELECT a.gvid, (SUM(CASE b.sampletid WHEN 140 THEN b.samplevalue ELSE 0 END)) as the_success,(SUM(CASE b.sampletid WHEN 141 THEN b.samplevalue ELSE 0 END)) as the_fail,(SUM(CASE b.sampletid WHEN 142 THEN b.samplevalue ELSE 0 END)) as the_size,(SUM(CASE b.sampletid WHEN 143 THEN b.samplevalue ELSE 0 END)) as the_time FROM t1 a, t2 b WHERE a.hmid = b.hmid AND a.volid = b.volid AND b.sampletime >= NULL AND b.sampletime < NULL AND b.sampletid IN (140, 141, 142, 143) GROUP BY a.gvid;
-gvid the_success the_fail the_size the_time
-DROP TABLE t1,t2;
-create table t1 ( A_Id bigint(20) NOT NULL default '0', A_UpdateBy char(10) NOT NULL default '', A_UpdateDate bigint(20) NOT NULL default '0', A_UpdateSerial int(11) NOT NULL default '0', other_types bigint(20) NOT NULL default '0', wss_type bigint(20) NOT NULL default '0');
-INSERT INTO t1 VALUES (102935998719055004,'brade',1029359987,2,102935229116544068,102935229216544093);
-select wss_type from t1 where wss_type ='102935229216544106';
-wss_type
-select wss_type from t1 where wss_type ='102935229216544105';
-wss_type
-select wss_type from t1 where wss_type ='102935229216544104';
-wss_type
-select wss_type from t1 where wss_type ='102935229216544093';
-wss_type
-102935229216544093
-select wss_type from t1 where wss_type =102935229216544093;
-wss_type
-102935229216544093
-drop table t1;
-select 1+2,"aaaa",3.13*2.0 into @a,@b,@c;
-select @a;
-@a
-3
-select @b;
-@b
-aaaa
-select @c;
-@c
-6.260
-create table t1 (a int not null auto_increment primary key);
-insert into t1 values ();
-insert into t1 values ();
-insert into t1 values ();
-select * from (t1 as t2 left join t1 as t3 using (a)), t1;
-a a
-1 1
-2 1
-3 1
-1 2
-2 2
-3 2
-1 3
-2 3
-3 3
-select * from t1, (t1 as t2 left join t1 as t3 using (a));
-a a
-1 1
-2 1
-3 1
-1 2
-2 2
-3 2
-1 3
-2 3
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) straight_join t1;
-a a
-1 1
-2 1
-3 1
-1 2
-2 2
-3 2
-1 3
-2 3
-3 3
-select * from t1 straight_join (t1 as t2 left join t1 as t3 using (a));
-a a
-1 1
-2 1
-3 1
-1 2
-2 2
-3 2
-1 3
-2 3
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) inner join t1 on t1.a>1;
-a a
-1 2
-1 3
-2 2
-2 3
-3 2
-3 3
-select * from t1 inner join (t1 as t2 left join t1 as t3 using (a)) on t1.a>1;
-a a
-2 1
-3 1
-2 2
-3 2
-2 3
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) inner join t1 using ( a );
-a
-1
-2
-3
-select * from t1 inner join (t1 as t2 left join t1 as t3 using (a)) using ( a );
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) left outer join t1 on t1.a>1;
-a a
-1 2
-1 3
-2 2
-2 3
-3 2
-3 3
-select * from t1 left outer join (t1 as t2 left join t1 as t3 using (a)) on t1.a>1;
-a a
-1 NULL
-2 1
-2 2
-2 3
-3 1
-3 2
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) left join t1 using ( a );
-a
-1
-2
-3
-select * from t1 left join (t1 as t2 left join t1 as t3 using (a)) using ( a );
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) natural left join t1;
-a
-1
-2
-3
-select * from t1 natural left join (t1 as t2 left join t1 as t3 using (a));
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) right join t1 on t1.a>1;
-a a
-1 2
-1 3
-2 2
-2 3
-3 2
-3 3
-NULL 1
-select * from t1 right join (t1 as t2 left join t1 as t3 using (a)) on t1.a>1;
-a a
-2 1
-2 2
-2 3
-3 1
-3 2
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) right outer join t1 using ( a );
-a
-1
-2
-3
-select * from t1 right outer join (t1 as t2 left join t1 as t3 using (a)) using ( a );
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) natural right join t1;
-a
-1
-2
-3
-select * from t1 natural right join (t1 as t2 left join t1 as t3 using (a));
-a
-1
-2
-3
-select * from t1 natural join (t1 as t2 left join t1 as t3 using (a));
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) natural join t1;
-a
-1
-2
-3
-drop table t1;
-CREATE TABLE t1 ( aa char(2), id int(11) NOT NULL auto_increment, t2_id int(11) NOT NULL default '0', PRIMARY KEY (id), KEY replace_id (t2_id)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ("1",8264,2506),("2",8299,2517),("3",8301,2518),("4",8302,2519),("5",8303,2520),("6",8304,2521),("7",8305,2522);
-CREATE TABLE t2 ( id int(11) NOT NULL auto_increment, PRIMARY KEY (id)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (2517), (2518), (2519), (2520), (2521), (2522);
-select * from t1, t2 WHERE t1.t2_id = t2.id and t1.t2_id > 0 order by t1.id LIMIT 0, 5;
-aa id t2_id id
-2 8299 2517 2517
-3 8301 2518 2518
-4 8302 2519 2519
-5 8303 2520 2520
-6 8304 2521 2521
-drop table t1,t2;
-create table t1 (id1 int NOT NULL);
-create table t2 (id2 int NOT NULL);
-create table t3 (id3 int NOT NULL);
-create table t4 (id4 int NOT NULL, id44 int NOT NULL, KEY (id4));
-insert into t1 values (1);
-insert into t1 values (2);
-insert into t2 values (1);
-insert into t4 values (1,1);
-explain select * from t1 left join t2 on id1 = id2 left join t3 on id1 = id3
-left join t4 on id3 = id4 where id2 = 1 or id4 = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 system NULL NULL NULL NULL 0 Const row not found
-1 SIMPLE t4 const id4 NULL NULL NULL 1
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 4 test.t1.id1 1 Using where; Using join buffer (flat, BNLH join)
-select * from t1 left join t2 on id1 = id2 left join t3 on id1 = id3
-left join t4 on id3 = id4 where id2 = 1 or id4 = 1;
-id1 id2 id3 id4 id44
-1 1 NULL NULL NULL
-drop table t1,t2,t3,t4;
-create table t1(s varchar(10) not null);
-create table t2(s varchar(10) not null primary key);
-create table t3(s varchar(10) not null primary key);
-insert into t1 values ('one\t'), ('two\t');
-insert into t2 values ('one\r'), ('two\t');
-insert into t3 values ('one '), ('two\t');
-select * from t1 where s = 'one';
-s
-select * from t2 where s = 'one';
-s
-select * from t3 where s = 'one';
-s
-one
-select * from t1,t2 where t1.s = t2.s;
-s s
-two two
-select * from t2,t3 where t2.s = t3.s;
-s s
-two two
-drop table t1, t2, t3;
-create table t1 (a integer, b integer, index(a), index(b));
-create table t2 (c integer, d integer, index(c), index(d));
-insert into t1 values (1,2), (2,2), (3,2), (4,2);
-insert into t2 values (1,3), (2,3), (3,4), (4,4);
-explain select * from t1 left join t2 on a=c where d in (4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref c,d d 5 const 2
-1 SIMPLE t1 ALL a NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-select * from t1 left join t2 on a=c where d in (4);
-a b c d
-3 2 3 4
-4 2 4 4
-explain select * from t1 left join t2 on a=c where d = 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref c,d d 5 const 2
-1 SIMPLE t1 ALL a NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-select * from t1 left join t2 on a=c where d = 4;
-a b c d
-3 2 3 4
-4 2 4 4
-drop table t1, t2;
-CREATE TABLE t1 (
-i int(11) NOT NULL default '0',
-c char(10) NOT NULL default '',
-PRIMARY KEY (i),
-UNIQUE KEY c (c)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'a');
-INSERT INTO t1 VALUES (2,'b');
-INSERT INTO t1 VALUES (3,'c');
-EXPLAIN SELECT i FROM t1 WHERE i=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-DROP TABLE t1;
-CREATE TABLE t1 ( a BLOB, INDEX (a(20)) );
-CREATE TABLE t2 ( a BLOB, INDEX (a(20)) );
-INSERT INTO t1 VALUES ('one'),('two'),('three'),('four'),('five');
-INSERT INTO t2 VALUES ('one'),('two'),('three'),('four'),('five');
-INSERT INTO t2 VALUES ('one'),('two'),('three'),('four'),('five');
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 USE INDEX (a) ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref a a 23 test.t1.a 2 Using where
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 FORCE INDEX (a) ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref a a 23 test.t1.a 2 Using where
-DROP TABLE t1, t2;
-CREATE TABLE t1 ( city char(30) );
-INSERT INTO t1 VALUES ('London');
-INSERT INTO t1 VALUES ('Paris');
-SELECT * FROM t1 WHERE city='London';
-city
-London
-SELECT * FROM t1 WHERE city='london';
-city
-London
-EXPLAIN SELECT * FROM t1 WHERE city='London' AND city='london';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 WHERE city='London' AND city='london';
-city
-London
-EXPLAIN SELECT * FROM t1 WHERE city LIKE '%london%' AND city='London';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 WHERE city LIKE '%london%' AND city='London';
-city
-London
-DROP TABLE t1;
-create table t1 (a int(11) unsigned, b int(11) unsigned);
-insert into t1 values (1,0), (1,1), (18446744073709551615,0);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 3
-select a-b from t1 order by 1;
-a-b
-0
-1
-4294967295
-select a-b , (a-b < 0) from t1 order by 1;
-a-b (a-b < 0)
-0 0
-1 0
-4294967295 0
-select a-b as d, (a-b >= 0), b from t1 group by b having d >= 0;
-d (a-b >= 0) b
-1 1 0
-0 1 1
-select cast((a - b) as unsigned) from t1 order by 1;
-cast((a - b) as unsigned)
-0
-1
-4294967295
-drop table t1;
-create table t1 (a int(11));
-select all all * from t1;
-a
-select distinct distinct * from t1;
-a
-select all distinct * from t1;
-ERROR HY000: Incorrect usage of ALL and DISTINCT
-select distinct all * from t1;
-ERROR HY000: Incorrect usage of ALL and DISTINCT
-drop table t1;
-CREATE TABLE t1 (
-kunde_intern_id int(10) unsigned NOT NULL default '0',
-kunde_id int(10) unsigned NOT NULL default '0',
-FK_firma_id int(10) unsigned NOT NULL default '0',
-aktuell enum('Ja','Nein') NOT NULL default 'Ja',
-vorname varchar(128) NOT NULL default '',
-nachname varchar(128) NOT NULL default '',
-geloescht enum('Ja','Nein') NOT NULL default 'Nein',
-firma varchar(128) NOT NULL default ''
-);
-INSERT INTO t1 VALUES
-(3964,3051,1,'Ja','Vorname1','1Nachname','Nein','Print Schau XXXX'),
-(3965,3051111,1,'Ja','Vorname1111','1111Nachname','Nein','Print Schau XXXX');
-SELECT kunde_id ,FK_firma_id ,aktuell, vorname, nachname, geloescht FROM t1
-WHERE
-(
-(
-( '' != '' AND firma LIKE CONCAT('%', '', '%'))
-OR
-(vorname LIKE CONCAT('%', 'Vorname1', '%') AND
-nachname LIKE CONCAT('%', '1Nachname', '%') AND
-'Vorname1' != '' AND 'xxxx' != '')
-)
-AND
-(
-aktuell = 'Ja' AND geloescht = 'Nein' AND FK_firma_id = 2
-)
-)
-;
-kunde_id FK_firma_id aktuell vorname nachname geloescht
-SELECT kunde_id ,FK_firma_id ,aktuell, vorname, nachname,
-geloescht FROM t1
-WHERE
-(
-(
-aktuell = 'Ja' AND geloescht = 'Nein' AND FK_firma_id = 2
-)
-AND
-(
-( '' != '' AND firma LIKE CONCAT('%', '', '%') )
-OR
-( vorname LIKE CONCAT('%', 'Vorname1', '%') AND
-nachname LIKE CONCAT('%', '1Nachname', '%') AND 'Vorname1' != '' AND
-'xxxx' != '')
-)
-)
-;
-kunde_id FK_firma_id aktuell vorname nachname geloescht
-SELECT COUNT(*) FROM t1 WHERE
-( 0 OR (vorname LIKE '%Vorname1%' AND nachname LIKE '%1Nachname%' AND 1))
-AND FK_firma_id = 2;
-COUNT(*)
-0
-drop table t1;
-CREATE TABLE t1 (b BIGINT(20) UNSIGNED NOT NULL, PRIMARY KEY (b));
-INSERT INTO t1 VALUES (0x8000000000000000);
-SELECT b FROM t1 WHERE b=0x8000000000000000;
-b
-9223372036854775808
-DROP TABLE t1;
-CREATE TABLE `t1` ( `gid` int(11) default NULL, `uid` int(11) default NULL);
-CREATE TABLE `t2` ( `ident` int(11) default NULL, `level` char(16) default NULL);
-INSERT INTO `t2` VALUES (0,'READ');
-CREATE TABLE `t3` ( `id` int(11) default NULL, `name` char(16) default NULL);
-INSERT INTO `t3` VALUES (1,'fs');
-select * from t3 left join t1 on t3.id = t1.uid, t2 where t2.ident in (0, t1.gid, t3.id, 0);
-id name gid uid ident level
-1 fs NULL NULL 0 READ
-drop table t1,t2,t3;
-CREATE TABLE t1 (
-acct_id int(11) NOT NULL default '0',
-profile_id smallint(6) default NULL,
-UNIQUE KEY t1$acct_id (acct_id),
-KEY t1$profile_id (profile_id)
-);
-INSERT INTO t1 VALUES (132,17),(133,18);
-CREATE TABLE t2 (
-profile_id smallint(6) default NULL,
-queue_id int(11) default NULL,
-seq int(11) default NULL,
-KEY t2$queue_id (queue_id)
-);
-INSERT INTO t2 VALUES (17,31,4),(17,30,3),(17,36,2),(17,37,1);
-CREATE TABLE t3 (
-id int(11) NOT NULL default '0',
-qtype int(11) default NULL,
-seq int(11) default NULL,
-warn_lvl int(11) default NULL,
-crit_lvl int(11) default NULL,
-rr1 tinyint(4) NOT NULL default '0',
-rr2 int(11) default NULL,
-default_queue tinyint(4) NOT NULL default '0',
-KEY t3$qtype (qtype),
-KEY t3$id (id)
-);
-INSERT INTO t3 VALUES (30,1,29,NULL,NULL,0,NULL,0),(31,1,28,NULL,NULL,0,NULL,0),
-(36,1,34,NULL,NULL,0,NULL,0),(37,1,35,NULL,NULL,0,121,0);
-SELECT COUNT(*) FROM t1 a STRAIGHT_JOIN t2 pq STRAIGHT_JOIN t3 q
-WHERE
-(pq.profile_id = a.profile_id) AND (a.acct_id = 132) AND
-(pq.queue_id = q.id) AND (q.rr1 <> 1);
-COUNT(*)
-4
-drop table t1,t2,t3;
-create table t1 (f1 int);
-insert into t1 values (1),(NULL);
-create table t2 (f2 int, f3 int, f4 int);
-create index idx1 on t2 (f4);
-insert into t2 values (1,2,3),(2,4,6);
-select A.f2 from t1 left join t2 A on A.f2 = f1 where A.f3=(select min(f3)
-from t2 C where A.f4 = C.f4) or A.f3 IS NULL;
-f2
-1
-NULL
-drop table t1,t2;
-create table t2 (a tinyint unsigned);
-create index t2i on t2(a);
-insert into t2 values (0), (254), (255);
-explain select * from t2 where a > -1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index t2i t2i 2 NULL 3 Using where; Using index
-select * from t2 where a > -1;
-a
-0
-254
-255
-drop table t2;
-CREATE TABLE t1 (a int, b int, c int);
-INSERT INTO t1
-SELECT 50, 3, 3 FROM DUAL
-WHERE NOT EXISTS
-(SELECT * FROM t1 WHERE a = 50 AND b = 3);
-SELECT * FROM t1;
-a b c
-50 3 3
-INSERT INTO t1
-SELECT 50, 3, 3 FROM DUAL
-WHERE NOT EXISTS
-(SELECT * FROM t1 WHERE a = 50 AND b = 3);
-select found_rows();
-found_rows()
-0
-SELECT * FROM t1;
-a b c
-50 3 3
-select count(*) from t1;
-count(*)
-1
-select found_rows();
-found_rows()
-1
-select count(*) from t1 limit 2,3;
-count(*)
-select found_rows();
-found_rows()
-0
-select SQL_CALC_FOUND_ROWS count(*) from t1 limit 2,3;
-count(*)
-select found_rows();
-found_rows()
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-(SELECT a, b AS c FROM t1) ORDER BY c+1;
-a c
-(SELECT a, b AS c FROM t1) ORDER BY b+1;
-a c
-SELECT a, b AS c FROM t1 ORDER BY c+1;
-a c
-SELECT a, b AS c FROM t1 ORDER BY b+1;
-a c
-drop table t1;
-create table t1(f1 int, f2 int);
-create table t2(f3 int);
-select f1 from t1,t2 where f1=f2 and (f1,f2) = ((1,1));
-f1
-select f1 from t1,t2 where f1=f2 and (f1,NULL) = ((1,1));
-f1
-select f1 from t1,t2 where f1=f2 and (f1,f2) = ((1,NULL));
-f1
-insert into t1 values(1,1),(2,null);
-insert into t2 values(2);
-select * from t1,t2 where f1=f3 and (f1,f2) = (2,null);
-f1 f2 f3
-select * from t1,t2 where f1=f3 and (f1,f2) <=> (2,null);
-f1 f2 f3
-2 NULL 2
-drop table t1,t2;
-create table t1 (f1 int not null auto_increment primary key, f2 varchar(10));
-create table t11 like t1;
-insert into t1 values(1,""),(2,"");
-show table status like 't1%';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Dynamic 2 20 X X X X X X X X latin1_swedish_ci NULL X N
-t11 MyISAM 10 Dynamic 0 0 X X X X X X X X latin1_swedish_ci NULL X N
-select 123 as a from t1 where f1 is null;
-a
-drop table t1,t11;
-CREATE TABLE t1 ( a INT NOT NULL, b INT NOT NULL, UNIQUE idx (a,b) );
-INSERT INTO t1 VALUES (1,1),(1,2),(1,3),(1,4);
-CREATE TABLE t2 ( a INT NOT NULL, b INT NOT NULL, e INT );
-INSERT INTO t2 VALUES ( 1,10,1), (1,10,2), (1,11,1), (1,11,2), (1,2,1), (1,2,2),(1,2,3);
-SELECT t2.a, t2.b, IF(t1.b IS NULL,'',e) AS c, COUNT(*) AS d FROM t2 LEFT JOIN
-t1 ON t2.a = t1.a AND t2.b = t1.b GROUP BY a, b, c;
-a b c d
-1 2 1 1
-1 2 2 1
-1 2 3 1
-1 10 2
-1 11 2
-SELECT t2.a, t2.b, IF(t1.b IS NULL,'',e) AS c, COUNT(*) AS d FROM t2 LEFT JOIN
-t1 ON t2.a = t1.a AND t2.b = t1.b GROUP BY t1.a, t1.b, c;
-a b c d
-1 10 4
-1 2 1 1
-1 2 2 1
-1 2 3 1
-SELECT t2.a, t2.b, IF(t1.b IS NULL,'',e) AS c, COUNT(*) AS d FROM t2 LEFT JOIN
-t1 ON t2.a = t1.a AND t2.b = t1.b GROUP BY t2.a, t2.b, c;
-a b c d
-1 2 1 1
-1 2 2 1
-1 2 3 1
-1 10 2
-1 11 2
-SELECT t2.a, t2.b, IF(t1.b IS NULL,'',e) AS c, COUNT(*) AS d FROM t2,t1
-WHERE t2.a = t1.a AND t2.b = t1.b GROUP BY a, b, c;
-a b c d
-1 2 1 1
-1 2 2 1
-1 2 3 1
-DROP TABLE IF EXISTS t1, t2;
-create table t1 (f1 int primary key, f2 int);
-create table t2 (f3 int, f4 int, primary key(f3,f4));
-insert into t1 values (1,1);
-insert into t2 values (1,1),(1,2);
-select distinct count(f2) >0 from t1 left join t2 on f1=f3 group by f1;
-count(f2) >0
-1
-drop table t1,t2;
-create table t1 (f1 int,f2 int);
-insert into t1 values(1,1);
-create table t2 (f3 int, f4 int, primary key(f3,f4));
-insert into t2 values(1,1);
-select * from t1 where f1 in (select f3 from t2 where (f3,f4)= (select f3,f4 from t2));
-f1 f2
-1 1
-drop table t1,t2;
-CREATE TABLE t1(a int, b int, c int, KEY b(b), KEY c(c));
-insert into t1 values (1,0,0),(2,0,0);
-CREATE TABLE t2 (a int, b varchar(2), c varchar(2), PRIMARY KEY(a));
-insert into t2 values (1,'',''), (2,'','');
-CREATE TABLE t3 (a int, b int, PRIMARY KEY (a,b), KEY a (a), KEY b (b));
-insert into t3 values (1,1),(1,2);
-explain select straight_join DISTINCT t2.a,t2.b, t1.c from t1, t3, t2
-where (t1.c=t2.a or (t1.c=t3.a and t2.a=t3.b)) and t1.b=556476786 and
-t2.b like '%%' order by t2.b limit 0,1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref b,c b 5 const 1 Using temporary; Using filesort
-1 SIMPLE t3 index PRIMARY,a,b PRIMARY 8 NULL 2 Using index; Using join buffer (flat, BNL join)
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 2 Range checked for each record (index map: 0x1)
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a int, INDEX idx(a));
-INSERT INTO t1 VALUES (2), (3), (1);
-EXPLAIN SELECT * FROM t1 IGNORE INDEX (idx);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-EXPLAIN SELECT * FROM t1 IGNORE INDEX (a);
-ERROR 42000: Key 'a' doesn't exist in table 't1'
-EXPLAIN SELECT * FROM t1 FORCE INDEX (a);
-ERROR 42000: Key 'a' doesn't exist in table 't1'
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (1,1), (2,1), (4,10);
-CREATE TABLE t2 (a int PRIMARY KEY, b int, KEY b (b));
-INSERT INTO t2 VALUES (1,NULL), (2,10);
-ALTER TABLE t1 ENABLE KEYS;
-EXPLAIN SELECT STRAIGHT_JOIN SQL_NO_CACHE COUNT(*) FROM t2, t1 WHERE t1.b = t2.b OR t2.b IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index b b 5 NULL 2 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-SELECT STRAIGHT_JOIN SQL_NO_CACHE * FROM t2, t1 WHERE t1.b = t2.b OR t2.b IS NULL;
-a b a b
-1 NULL 1 1
-1 NULL 2 1
-1 NULL 4 10
-2 10 4 10
-EXPLAIN SELECT STRAIGHT_JOIN SQL_NO_CACHE COUNT(*) FROM t2, t1 WHERE t1.b = t2.b OR t2.b IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index b b 5 NULL 2 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-SELECT STRAIGHT_JOIN SQL_NO_CACHE * FROM t2, t1 WHERE t1.b = t2.b OR t2.b IS NULL;
-a b a b
-1 NULL 1 1
-1 NULL 2 1
-1 NULL 4 10
-2 10 4 10
-DROP TABLE IF EXISTS t1,t2;
-CREATE TABLE t1 (key1 float default NULL, UNIQUE KEY key1 (key1));
-CREATE TABLE t2 (key2 float default NULL, UNIQUE KEY key2 (key2));
-INSERT INTO t1 VALUES (0.3762),(0.3845),(0.6158),(0.7941);
-INSERT INTO t2 VALUES (1.3762),(1.3845),(1.6158),(1.7941);
-explain select max(key1) from t1 where key1 <= 0.6158;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select max(key2) from t2 where key2 <= 1.6158;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select min(key1) from t1 where key1 >= 0.3762;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select min(key2) from t2 where key2 >= 1.3762;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select max(key1), min(key2) from t1, t2
-where key1 <= 0.6158 and key2 >= 1.3762;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select max(key1) from t1 where key1 <= 0.6158 and rand() + 0.5 >= 0.5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index key1 key1 5 NULL 4 Using where; Using index
-explain select min(key1) from t1 where key1 >= 0.3762 and rand() + 0.5 >= 0.5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range key1 key1 5 NULL 3 Using where; Using index
-select max(key1) from t1 where key1 <= 0.6158;
-max(key1)
-0.6158000230789185
-select max(key2) from t2 where key2 <= 1.6158;
-max(key2)
-1.6158000230789185
-select min(key1) from t1 where key1 >= 0.3762;
-min(key1)
-0.37619999051094055
-select min(key2) from t2 where key2 >= 1.3762;
-min(key2)
-1.3761999607086182
-select max(key1), min(key2) from t1, t2
-where key1 <= 0.6158 and key2 >= 1.3762;
-max(key1) min(key2)
-0.6158000230789185 1.3761999607086182
-select max(key1) from t1 where key1 <= 0.6158 and rand() + 0.5 >= 0.5;
-max(key1)
-0.38449999690055847
-select min(key1) from t1 where key1 >= 0.3762 and rand() + 0.5 >= 0.5;
-min(key1)
-0.38449999690055847
-DROP TABLE t1,t2;
-CREATE TABLE t1 (i BIGINT UNSIGNED NOT NULL);
-INSERT INTO t1 VALUES (10);
-SELECT i='1e+01',i=1e+01, i in (1e+01,1e+01), i in ('1e+01','1e+01') FROM t1;
-i='1e+01' i=1e+01 i in (1e+01,1e+01) i in ('1e+01','1e+01')
-1 1 1 1
-DROP TABLE t1;
-create table t1(a bigint unsigned, b bigint);
-insert ignore into t1 values (0xfffffffffffffffff, 0xfffffffffffffffff),
-(0x10000000000000000, 0x10000000000000000),
-(0x8fffffffffffffff, 0x8fffffffffffffff);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'b' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'b' at row 2
-Warning 1264 Out of range value for column 'b' at row 3
-select hex(a), hex(b) from t1;
-hex(a) hex(b)
-FFFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
-FFFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
-8FFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
-drop table t1;
-CREATE TABLE t1 (c0 int);
-CREATE TABLE t2 (c0 int);
-INSERT INTO t1 VALUES(@@connect_timeout);
-INSERT INTO t2 VALUES(@@connect_timeout);
-SELECT * FROM t1 JOIN t2 ON t1.c0 = t2.c0 WHERE (t1.c0 <=> @@connect_timeout);
-c0 c0
-X X
-DROP TABLE t1, t2;
-End of 4.1 tests
-CREATE TABLE t1 (
-K2C4 varchar(4) character set latin1 collate latin1_bin NOT NULL default '',
-K4N4 varchar(4) character set latin1 collate latin1_bin NOT NULL default '0000',
-F2I4 int(11) NOT NULL default '0'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES
-('W%RT', '0100', 1),
-('W-RT', '0100', 1),
-('WART', '0100', 1),
-('WART', '0200', 1),
-('WERT', '0100', 2),
-('WORT','0200', 2),
-('WT', '0100', 2),
-('W_RT', '0100', 2),
-('WaRT', '0100', 3),
-('WART', '0300', 3),
-('WRT' , '0400', 3),
-('WURM', '0500', 3),
-('W%T', '0600', 4),
-('WA%T', '0700', 4),
-('WA_T', '0800', 4);
-SELECT K2C4, K4N4, F2I4 FROM t1
-WHERE K2C4 = 'WART' AND
-(F2I4 = 2 AND K2C4 = 'WART' OR (F2I4 = 2 OR K4N4 = '0200'));
-K2C4 K4N4 F2I4
-WART 0200 1
-SELECT K2C4, K4N4, F2I4 FROM t1
-WHERE K2C4 = 'WART' AND (K2C4 = 'WART' OR K4N4 = '0200');
-K2C4 K4N4 F2I4
-WART 0100 1
-WART 0200 1
-WART 0300 3
-DROP TABLE t1;
-create table t1 (a int, b int);
-create table t2 like t1;
-select t1.a from (t1 inner join t2 on t1.a=t2.a) where t2.a=1;
-a
-select t1.a from ((t1 inner join t2 on t1.a=t2.a)) where t2.a=1;
-a
-select x.a, y.a, z.a from ( (t1 x inner join t2 y on x.a=y.a) inner join t2 z on y.a=z.a) WHERE x.a=1;
-a a a
-drop table t1,t2;
-create table t1 (s1 varchar(5));
-insert into t1 values ('Wall');
-select min(s1) from t1 group by s1 with rollup;
-min(s1)
-Wall
-Wall
-drop table t1;
-create table t1 (s1 int) engine=myisam;
-insert into t1 values (0);
-select avg(distinct s1) from t1 group by s1 with rollup;
-avg(distinct s1)
-0.0000
-0.0000
-drop table t1;
-create table t1 (s1 int);
-insert into t1 values (null),(1);
-select distinct avg(s1) as x from t1 group by s1 with rollup;
-x
-NULL
-1.0000
-drop table t1;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int);
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
-INSERT INTO t2 VALUES (2), (4), (6);
-SELECT t1.a FROM t1 STRAIGHT_JOIN t2 ON t1.a=t2.a;
-a
-2
-4
-EXPLAIN SELECT t1.a FROM t1 STRAIGHT_JOIN t2 ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 Using where
-1 SIMPLE t2 hash_ALL NULL #hash#$hj 5 test.t1.a 3 Using where; Using join buffer (flat, BNLH join)
-EXPLAIN SELECT t1.a FROM t1 INNER JOIN t2 ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t1 hash_ALL NULL #hash#$hj 5 test.t2.a 5 Using where; Using join buffer (flat, BNLH join)
-DROP TABLE t1,t2;
-select x'3136' + 0, X'3136' + 0, b'10' + 0, B'10' + 0;
-x'3136' + 0 X'3136' + 0 b'10' + 0 B'10' + 0
-16 16 2 2
-create table t1 (f1 varchar(6) default NULL, f2 int(6) primary key not null);
-create table t2 (f3 varchar(5) not null, f4 varchar(5) not null, UNIQUE KEY UKEY (f3,f4));
-insert into t1 values (" 2", 2);
-insert into t2 values (" 2", " one "),(" 2", " two ");
-select * from t1 left join t2 on f1 = f3;
-f1 f2 f3 f4
- 2 2 2 one
- 2 2 2 two
-drop table t1,t2;
-create table t1 (empnum smallint, grp int);
-create table t2 (empnum int, name char(5));
-insert into t1 values(1,1);
-insert into t2 values(1,'bob');
-create view v1 as select * from t2 inner join t1 using (empnum);
-select * from v1;
-empnum name grp
-1 bob 1
-drop table t1,t2;
-drop view v1;
-create table t1 (pk int primary key, b int);
-create table t2 (pk int primary key, c int);
-select pk from t1 inner join t2 using (pk);
-pk
-drop table t1,t2;
-create table t1 (s1 int, s2 char(5), s3 decimal(10));
-create view v1 as select s1, s2, 'x' as s3 from t1;
-select * from t1 natural join v1;
-s1 s2 s3
-insert into t1 values (1,'x',5);
-select * from t1 natural join v1;
-s1 s2 s3
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: 'x'
-drop table t1;
-drop view v1;
-create table t1(a1 int);
-create table t2(a2 int);
-insert into t1 values(1),(2);
-insert into t2 values(1),(2);
-create view v2 (c) as select a1 from t1;
-select * from t1 natural left join t2;
-a1 a2
-1 1
-1 2
-2 1
-2 2
-select * from t1 natural right join t2;
-a2 a1
-1 1
-1 2
-2 1
-2 2
-select * from v2 natural left join t2;
-c a2
-1 1
-1 2
-2 1
-2 2
-select * from v2 natural right join t2;
-a2 c
-1 1
-1 2
-2 1
-2 2
-drop table t1, t2;
-drop view v2;
-create table t1 (a int(10), t1_val int(10));
-create table t2 (b int(10), t2_val int(10));
-create table t3 (a int(10), b int(10));
-insert into t1 values (1,1),(2,2);
-insert into t2 values (1,1),(2,2),(3,3);
-insert into t3 values (1,1),(2,1),(3,1),(4,1);
-select * from t1 natural join t2 natural join t3;
-a b t1_val t2_val
-1 1 1 1
-2 1 2 1
-select * from t1 natural join t3 natural join t2;
-b a t1_val t2_val
-1 1 1 1
-1 2 2 1
-drop table t1, t2, t3;
-DO IFNULL(NULL, NULL);
-SELECT CAST(IFNULL(NULL, NULL) AS DECIMAL);
-CAST(IFNULL(NULL, NULL) AS DECIMAL)
-NULL
-SELECT ABS(IFNULL(NULL, NULL));
-ABS(IFNULL(NULL, NULL))
-NULL
-SELECT IFNULL(NULL, NULL);
-IFNULL(NULL, NULL)
-NULL
-SET @OLD_SQL_MODE12595=@@SQL_MODE, @@SQL_MODE='';
-SHOW LOCAL VARIABLES LIKE 'SQL_MODE';
-Variable_name Value
-sql_mode
-CREATE TABLE BUG_12595(a varchar(100));
-INSERT INTO BUG_12595 VALUES ('hakan%'), ('hakank'), ("ha%an");
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%';
-a
-hakan%
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan*%' ESCAPE '*';
-a
-hakan%
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan**%' ESCAPE '**';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan%' ESCAPE '';
-a
-hakan%
-hakank
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%' ESCAPE '';
-a
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha\%an' ESCAPE 0x5c;
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha%%an' ESCAPE '%';
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha\%an' ESCAPE '\\';
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha|%an' ESCAPE '|';
-a
-ha%an
-SET @@SQL_MODE='NO_BACKSLASH_ESCAPES';
-SHOW LOCAL VARIABLES LIKE 'SQL_MODE';
-Variable_name Value
-sql_mode NO_BACKSLASH_ESCAPES
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%';
-a
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan*%' ESCAPE '*';
-a
-hakan%
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan**%' ESCAPE '**';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%' ESCAPE '\\';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan%' ESCAPE '';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha\%an' ESCAPE 0x5c;
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha|%an' ESCAPE '|';
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\n%' ESCAPE '\n';
-ERROR HY000: Incorrect arguments to ESCAPE
-SET @@SQL_MODE=@OLD_SQL_MODE12595;
-DROP TABLE BUG_12595;
-create table t1 (a char(1));
-create table t2 (a char(1));
-insert into t1 values ('a'),('b'),('c');
-insert into t2 values ('b'),('c'),('d');
-select a from t1 natural join t2;
-a
-b
-c
-select * from t1 natural join t2 where a = 'b';
-a
-b
-drop table t1, t2;
-CREATE TABLE t1 (`id` TINYINT);
-CREATE TABLE t2 (`id` TINYINT);
-CREATE TABLE t3 (`id` TINYINT);
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t2 VALUES (2);
-INSERT INTO t3 VALUES (3);
-SELECT t1.id,t3.id FROM t1 JOIN t2 ON (t2.id=t1.id) LEFT JOIN t3 USING (id);
-ERROR 23000: Column 'id' in from clause is ambiguous
-SELECT t1.id,t3.id FROM t1 JOIN t2 ON (t2.notacolumn=t1.id) LEFT JOIN t3 USING (id);
-ERROR 23000: Column 'id' in from clause is ambiguous
-SELECT id,t3.id FROM t1 JOIN t2 ON (t2.id=t1.id) LEFT JOIN t3 USING (id);
-ERROR 23000: Column 'id' in from clause is ambiguous
-SELECT id,t3.id FROM (t1 JOIN t2 ON (t2.id=t1.id)) LEFT JOIN t3 USING (id);
-ERROR 23000: Column 'id' in from clause is ambiguous
-drop table t1, t2, t3;
-create table t1 (a int(10),b int(10));
-create table t2 (a int(10),b int(10));
-insert into t1 values (1,10),(2,20),(3,30);
-insert into t2 values (1,10);
-select * from t1 inner join t2 using (A);
-a b b
-1 10 10
-select * from t1 inner join t2 using (a);
-a b b
-1 10 10
-drop table t1, t2;
-create table t1 (a int, c int);
-create table t2 (b int);
-create table t3 (b int, a int);
-create table t4 (c int);
-insert into t1 values (1,1);
-insert into t2 values (1);
-insert into t3 values (1,1);
-insert into t4 values (1);
-select * from t1 join t2 join t3 on (t2.b = t3.b and t1.a = t3.a);
-a c b b a
-1 1 1 1 1
-select * from t1, t2 join t3 on (t2.b = t3.b and t1.a = t3.a);
-ERROR 42S22: Unknown column 't1.a' in 'on clause'
-select * from t1 join t2 join t3 join t4 on (t1.a = t4.c and t2.b = t4.c);
-a c b b a c
-1 1 1 1 1 1
-select * from t1 join t2 join t4 using (c);
-c a b
-1 1 1
-drop table t1, t2, t3, t4;
-create table t1(x int, y int);
-create table t2(x int, y int);
-create table t3(x int, primary key(x));
-insert into t1 values (1, 1), (2, 1), (3, 1), (4, 3), (5, 6), (6, 6);
-insert into t2 values (1, 1), (2, 1), (3, 3), (4, 6), (5, 6);
-insert into t3 values (1), (2), (3), (4), (5);
-select t1.x, t3.x from t1, t2, t3 where t1.x = t2.x and t3.x >= t1.y and t3.x <= t2.y;
-x x
-1 1
-2 1
-3 1
-3 2
-3 3
-4 3
-4 4
-4 5
-drop table t1,t2,t3;
-create table t1 (id char(16) not null default '', primary key (id));
-insert into t1 values ('100'),('101'),('102');
-create table t2 (id char(16) default null);
-insert into t2 values (1);
-create view v1 as select t1.id from t1;
-create view v2 as select t2.id from t2;
-create view v3 as select (t1.id+2) as id from t1 natural left join t2;
-select t1.id from t1 left join v2 using (id);
-id
-100
-101
-102
-select t1.id from v2 right join t1 using (id);
-id
-100
-101
-102
-select t1.id from t1 left join v3 using (id);
-id
-100
-101
-102
-select * from t1 left join v2 using (id);
-id
-100
-101
-102
-select * from v2 right join t1 using (id);
-id
-100
-101
-102
-select * from t1 left join v3 using (id);
-id
-100
-101
-102
-select v1.id from v1 left join v2 using (id);
-id
-100
-101
-102
-select v1.id from v2 right join v1 using (id);
-id
-100
-101
-102
-select v1.id from v1 left join v3 using (id);
-id
-100
-101
-102
-select * from v1 left join v2 using (id);
-id
-100
-101
-102
-select * from v2 right join v1 using (id);
-id
-100
-101
-102
-select * from v1 left join v3 using (id);
-id
-100
-101
-102
-drop table t1, t2;
-drop view v1, v2, v3;
-create table t1 (id int(11) not null default '0');
-insert into t1 values (123),(191),(192);
-create table t2 (id char(16) character set utf8 not null);
-insert into t2 values ('58013'),('58014'),('58015'),('58016');
-create table t3 (a_id int(11) not null, b_id char(16) character set utf8);
-insert into t3 values (123,null),(123,null),(123,null),(123,null),(123,null),(123,'58013');
-select count(*)
-from t1 inner join (t3 left join t2 on t2.id = t3.b_id) on t1.id = t3.a_id;
-count(*)
-6
-select count(*)
-from t1 inner join (t2 right join t3 on t2.id = t3.b_id) on t1.id = t3.a_id;
-count(*)
-6
-drop table t1,t2,t3;
-create table t1 (a int);
-create table t2 (b int);
-create table t3 (c int);
-select * from t1 join t2 join t3 on (t1.a=t3.c);
-a b c
-select * from t1 join t2 left join t3 on (t1.a=t3.c);
-a b c
-select * from t1 join t2 right join t3 on (t1.a=t3.c);
-a b c
-select * from t1 join t2 straight_join t3 on (t1.a=t3.c);
-a b c
-drop table t1, t2 ,t3;
-create table t1(f1 int, f2 date);
-insert into t1 values(1,'2005-01-01'),(2,'2005-09-01'),(3,'2005-09-30'),
-(4,'2005-10-01'),(5,'2005-12-30');
-select * from t1 where f2 >= 0 order by f2;
-f1 f2
-1 2005-01-01
-2 2005-09-01
-3 2005-09-30
-4 2005-10-01
-5 2005-12-30
-select * from t1 where f2 >= '0000-00-00' order by f2;
-f1 f2
-1 2005-01-01
-2 2005-09-01
-3 2005-09-30
-4 2005-10-01
-5 2005-12-30
-select * from t1 where f2 >= '2005-09-31' order by f2;
-f1 f2
-4 2005-10-01
-5 2005-12-30
-select * from t1 where f2 >= '2005-09-3a' order by f2;
-f1 f2
-3 2005-09-30
-4 2005-10-01
-5 2005-12-30
-Warnings:
-Warning 1292 Truncated incorrect date value: '2005-09-3a'
-select * from t1 where f2 <= '2005-09-31' order by f2;
-f1 f2
-1 2005-01-01
-2 2005-09-01
-3 2005-09-30
-select * from t1 where f2 <= '2005-09-3a' order by f2;
-f1 f2
-1 2005-01-01
-2 2005-09-01
-Warnings:
-Warning 1292 Truncated incorrect date value: '2005-09-3a'
-drop table t1;
-create table t1 (f1 int, f2 int);
-insert into t1 values (1, 30), (2, 20), (3, 10);
-create algorithm=merge view v1 as select f1, f2 from t1;
-create algorithm=merge view v2 (f2, f1) as select f1, f2 from t1;
-create algorithm=merge view v3 as select t1.f1 as f2, t1.f2 as f1 from t1;
-select t1.f1 as x1, f1 from t1 order by t1.f1;
-x1 f1
-1 1
-2 2
-3 3
-select v1.f1 as x1, f1 from v1 order by v1.f1;
-x1 f1
-1 1
-2 2
-3 3
-select v2.f1 as x1, f1 from v2 order by v2.f1;
-x1 f1
-10 10
-20 20
-30 30
-select v3.f1 as x1, f1 from v3 order by v3.f1;
-x1 f1
-10 10
-20 20
-30 30
-select f1, f2, v1.f1 as x1 from v1 order by v1.f1;
-f1 f2 x1
-1 30 1
-2 20 2
-3 10 3
-select f1, f2, v2.f1 as x1 from v2 order by v2.f1;
-f1 f2 x1
-10 3 10
-20 2 20
-30 1 30
-select f1, f2, v3.f1 as x1 from v3 order by v3.f1;
-f1 f2 x1
-10 3 10
-20 2 20
-30 1 30
-drop table t1;
-drop view v1, v2, v3;
-CREATE TABLE t1(key_a int4 NOT NULL, optimus varchar(32), PRIMARY KEY(key_a));
-CREATE TABLE t2(key_a int4 NOT NULL, prime varchar(32), PRIMARY KEY(key_a));
-CREATE table t3(key_a int4 NOT NULL, key_b int4 NOT NULL, foo varchar(32),
-PRIMARY KEY(key_a,key_b));
-INSERT INTO t1 VALUES (0,'');
-INSERT INTO t1 VALUES (1,'i');
-INSERT INTO t1 VALUES (2,'j');
-INSERT INTO t1 VALUES (3,'k');
-INSERT INTO t2 VALUES (1,'r');
-INSERT INTO t2 VALUES (2,'s');
-INSERT INTO t2 VALUES (3,'t');
-INSERT INTO t3 VALUES (1,5,'x');
-INSERT INTO t3 VALUES (1,6,'y');
-INSERT INTO t3 VALUES (2,5,'xx');
-INSERT INTO t3 VALUES (2,6,'yy');
-INSERT INTO t3 VALUES (2,7,'zz');
-INSERT INTO t3 VALUES (3,5,'xxx');
-SELECT t2.key_a,foo
-FROM t1 INNER JOIN t2 ON t1.key_a = t2.key_a
-INNER JOIN t3 ON t1.key_a = t3.key_a
-WHERE t2.key_a=2 and key_b=5;
-key_a foo
-2 xx
-EXPLAIN SELECT t2.key_a,foo
-FROM t1 INNER JOIN t2 ON t1.key_a = t2.key_a
-INNER JOIN t3 ON t1.key_a = t3.key_a
-WHERE t2.key_a=2 and key_b=5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t3 const PRIMARY PRIMARY 8 const,const 1
-SELECT t2.key_a,foo
-FROM t1 INNER JOIN t2 ON t2.key_a = t1.key_a
-INNER JOIN t3 ON t1.key_a = t3.key_a
-WHERE t2.key_a=2 and key_b=5;
-key_a foo
-2 xx
-EXPLAIN SELECT t2.key_a,foo
-FROM t1 INNER JOIN t2 ON t2.key_a = t1.key_a
-INNER JOIN t3 ON t1.key_a = t3.key_a
-WHERE t2.key_a=2 and key_b=5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t3 const PRIMARY PRIMARY 8 const,const 1
-DROP TABLE t1,t2,t3;
-create table t1 (f1 int);
-insert into t1 values(1),(2);
-create table t2 (f2 int, f3 int, key(f2));
-insert into t2 values(1,1),(2,2);
-create table t3 (f4 int not null);
-insert into t3 values (2),(2),(2);
-select f1,(select count(*) from t2,t3 where f2=f1 and f3=f4) as count from t1;
-f1 count
-1 0
-2 3
-drop table t1,t2,t3;
-create table t1 (f1 int unique);
-create table t2 (f2 int unique);
-create table t3 (f3 int unique);
-insert into t1 values(1),(2);
-insert into t2 values(1),(2);
-insert into t3 values(1),(NULL);
-select * from t3 where f3 is null;
-f3
-NULL
-select t2.f2 from t1 left join t2 on f1=f2 join t3 on f1=f3 where f1=1;
-f2
-1
-drop table t1,t2,t3;
-create table t1(f1 char, f2 char not null);
-insert into t1 values(null,'a');
-create table t2 (f2 char not null);
-insert into t2 values('b');
-select * from t1 left join t2 on f1=t2.f2 where t1.f2='a';
-f1 f2 f2
-NULL a NULL
-drop table t1,t2;
-select * from (select * left join t on f1=f2) tt;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'left join t on f1=f2) tt' at line 1
-CREATE TABLE t1 (sku int PRIMARY KEY, pr int);
-CREATE TABLE t2 (sku int PRIMARY KEY, sppr int, name varchar(255));
-INSERT INTO t1 VALUES
-(10, 10), (20, 10), (30, 20), (40, 30), (50, 10), (60, 10);
-INSERT INTO t2 VALUES
-(10, 10, 'aaa'), (20, 10, 'bbb'), (30, 10, 'ccc'), (40, 20, 'ddd'),
-(50, 10, 'eee'), (60, 20, 'fff'), (70, 20, 'ggg'), (80, 30, 'hhh');
-SELECT t2.sku, t2.sppr, t2.name, t1.sku, t1.pr
-FROM t2, t1 WHERE t2.sku=20 AND (t2.sku=t1.sku OR t2.sppr=t1.sku);
-sku sppr name sku pr
-20 10 bbb 10 10
-20 10 bbb 20 10
-EXPLAIN
-SELECT t2.sku, t2.sppr, t2.name, t1.sku, t1.pr
-FROM t2, t1 WHERE t2.sku=20 AND (t2.sku=t1.sku OR t2.sppr=t1.sku);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 2 Using index condition; Using where; Rowid-ordered scan
-DROP TABLE t1,t2;
-SET SQL_MODE='NO_UNSIGNED_SUBTRACTION';
-CREATE TABLE t1 (i TINYINT UNSIGNED NOT NULL);
-INSERT t1 SET i = 0;
-UPDATE t1 SET i = -1;
-Warnings:
-Warning 1264 Out of range value for column 'i' at row 1
-SELECT * FROM t1;
-i
-0
-UPDATE t1 SET i = CAST(i - 1 AS SIGNED);
-Warnings:
-Warning 1264 Out of range value for column 'i' at row 1
-SELECT * FROM t1;
-i
-0
-UPDATE t1 SET i = i - 1;
-Warnings:
-Warning 1264 Out of range value for column 'i' at row 1
-SELECT * FROM t1;
-i
-0
-DROP TABLE t1;
-SET SQL_MODE=default;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, c int, e int, primary key(a,b,c));
-insert into t2 select A.a, B.a, C.a, C.a from t1 A, t1 B, t1 C;
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status OK
-select 'In next EXPLAIN, B.rows must be exactly 10:' Z;
-Z
-In next EXPLAIN, B.rows must be exactly 10:
-explain select * from t2 A, t2 B where A.a=5 and A.b=5 and A.C<5
-and B.a=5 and B.b=A.e and (B.b =1 or B.b = 3 or B.b=5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE A range PRIMARY PRIMARY 12 NULL 4 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE B ref PRIMARY PRIMARY 8 const,test.A.e 10 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-drop table t1, t2;
-CREATE TABLE t1 (a int PRIMARY KEY, b int, INDEX(b));
-INSERT INTO t1 VALUES (1, 3), (9,4), (7,5), (4,5), (6,2),
-(3,1), (5,1), (8,9), (2,2), (0,9);
-CREATE TABLE t2 (c int, d int, f int, INDEX(c,f));
-INSERT INTO t2 VALUES
-(1,0,0), (1,0,1), (2,0,0), (2,0,1), (3,0,0), (4,0,1),
-(5,0,0), (5,0,1), (6,0,0), (0,0,1), (7,0,0), (7,0,1),
-(0,0,0), (0,0,1), (8,0,0), (8,0,1), (9,0,0), (9,0,1);
-EXPLAIN
-SELECT a, c, d, f FROM t1,t2 WHERE a=c AND b BETWEEN 4 AND 6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,b b 5 NULL 3 Using index condition; Rowid-ordered scan
-1 SIMPLE t2 ref c c 5 test.t1.a 2 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-EXPLAIN
-SELECT a, c, d, f FROM t1,t2 WHERE a=c AND b BETWEEN 4 AND 6 AND a > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,b b 5 NULL 3 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE t2 ref c c 5 test.t1.a 2 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-DROP TABLE t1, t2;
-create table t1 (
-a int unsigned not null auto_increment primary key,
-b bit not null,
-c bit not null
-);
-create table t2 (
-a int unsigned not null auto_increment primary key,
-b bit not null,
-c int unsigned not null,
-d varchar(50)
-);
-insert into t1 (b,c) values (0,1), (0,1);
-insert into t2 (b,c) values (0,1);
-select t1.a, t1.b + 0, t1.c + 0, t2.a, t2.b + 0, t2.c, t2.d
-from t1 left outer join t2 on t1.a = t2.c and t2.b <> 1
-where t1.b <> 1 order by t1.a;
-a t1.b + 0 t1.c + 0 a t2.b + 0 c d
-1 0 1 1 0 1 NULL
-2 0 1 NULL NULL NULL NULL
-drop table t1,t2;
-SELECT 0.9888889889 * 1.011111411911;
-0.9888889889 * 1.011111411911
-0.9998769417899202067879
-prepare stmt from 'select 1 as " a "';
-Warnings:
-Warning 1466 Leading spaces are removed from name ' a '
-execute stmt;
-a
-1
-CREATE TABLE t1 (a int NOT NULL PRIMARY KEY, b int NOT NULL);
-INSERT INTO t1 VALUES (1,1), (2,2), (3,3), (4,4);
-CREATE TABLE t2 (c int NOT NULL, INDEX idx(c));
-INSERT INTO t2 VALUES
-(1), (1), (1), (1), (1), (1), (1), (1),
-(2), (2), (2), (2),
-(3), (3),
-(4);
-EXPLAIN SELECT b FROM t1, t2 WHERE b=c AND a=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 ref idx idx 4 const 7 Using index
-EXPLAIN SELECT b FROM t1, t2 WHERE b=c AND a=4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 ref idx idx 4 const 1 Using index
-DROP TABLE t1, t2;
-CREATE TABLE t1 (id int NOT NULL PRIMARY KEY, a int);
-INSERT INTO t1 VALUES (1,2), (2,NULL), (3,2);
-CREATE TABLE t2 (b int, c INT, INDEX idx1(b));
-INSERT INTO t2 VALUES (2,1), (3,2);
-CREATE TABLE t3 (d int, e int, INDEX idx1(d));
-INSERT INTO t3 VALUES (2,10), (2,20), (1,30), (2,40), (2,50);
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2 ON t2.b=t1.a INNER JOIN t3 ON t3.d=t1.id
-WHERE t1.id=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 const idx1 NULL NULL NULL 1
-1 SIMPLE t3 ref idx1 idx1 5 const 3
-SELECT * FROM t1 LEFT JOIN t2 ON t2.b=t1.a INNER JOIN t3 ON t3.d=t1.id
-WHERE t1.id=2;
-id a b c d e
-2 NULL NULL NULL 2 10
-2 NULL NULL NULL 2 20
-2 NULL NULL NULL 2 40
-2 NULL NULL NULL 2 50
-DROP TABLE t1,t2,t3;
-create table t1 (c1 varchar(1), c2 int, c3 int, c4 int, c5 int, c6 int,
-c7 int, c8 int, c9 int, fulltext key (`c1`));
-select distinct match (`c1`) against ('z') , c2, c3, c4,c5, c6,c7, c8
-from t1 where c9=1 order by c2, c2;
-match (`c1`) against ('z') c2 c3 c4 c5 c6 c7 c8
-drop table t1;
-CREATE TABLE t1 (pk varchar(10) PRIMARY KEY, fk varchar(16));
-CREATE TABLE t2 (pk varchar(16) PRIMARY KEY, fk varchar(10));
-INSERT INTO t1 VALUES
-('d','dddd'), ('i','iii'), ('a','aa'), ('b','bb'), ('g','gg'),
-('e','eee'), ('c','cccc'), ('h','hhh'), ('j','jjj'), ('f','fff');
-INSERT INTO t2 VALUES
-('jjj', 'j'), ('cc','c'), ('ccc','c'), ('aaa', 'a'), ('jjjj','j'),
-('hhh','h'), ('gg','g'), ('fff','f'), ('ee','e'), ('ffff','f'),
-('bbb','b'), ('ff','f'), ('cccc','c'), ('dddd','d'), ('jj','j'),
-('aaaa','a'), ('bb','b'), ('eeee','e'), ('aa','a'), ('hh','h');
-EXPLAIN SELECT t2.*
-FROM t1 JOIN t2 ON t2.fk=t1.pk
-WHERE t2.fk < 'c' AND t2.pk=t1.fk;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL 3 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 18 test.t1.fk 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-EXPLAIN SELECT t2.*
-FROM t1 JOIN t2 ON t2.fk=t1.pk
-WHERE t2.fk BETWEEN 'a' AND 'b' AND t2.pk=t1.fk;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL 2 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 18 test.t1.fk 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-EXPLAIN SELECT t2.*
-FROM t1 JOIN t2 ON t2.fk=t1.pk
-WHERE t2.fk IN ('a','b') AND t2.pk=t1.fk;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL 2 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 18 test.t1.fk 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b varchar(20) NOT NULL, PRIMARY KEY(a));
-CREATE TABLE t2 (a int, b varchar(20) NOT NULL,
-PRIMARY KEY (a), UNIQUE KEY (b));
-INSERT INTO t1 VALUES (1,'a'),(2,'b'),(3,'c');
-INSERT INTO t2 VALUES (1,'a'),(2,'b'),(3,'c');
-EXPLAIN SELECT t1.a FROM t1 LEFT JOIN t2 ON t2.b=t1.b WHERE t1.a=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-DROP TABLE t1,t2;
-CREATE TABLE t1(id int PRIMARY KEY, b int, e int);
-CREATE TABLE t2(i int, a int, INDEX si(i), INDEX ai(a));
-CREATE TABLE t3(a int PRIMARY KEY, c char(4), INDEX ci(c));
-INSERT INTO t1 VALUES
-(1,10,19), (2,20,22), (4,41,42), (9,93,95), (7, 77,79),
-(6,63,67), (5,55,58), (3,38,39), (8,81,89);
-INSERT INTO t2 VALUES
-(21,210), (41,410), (82,820), (83,830), (84,840),
-(65,650), (51,510), (37,370), (94,940), (76,760),
-(22,220), (33,330), (40,400), (95,950), (38,380),
-(67,670), (88,880), (57,570), (96,960), (97,970);
-INSERT INTO t3 VALUES
-(210,'bb'), (950,'ii'), (400,'ab'), (500,'ee'), (220,'gg'),
-(440,'gg'), (310,'eg'), (380,'ee'), (840,'bb'), (830,'ff'),
-(230,'aa'), (960,'ii'), (410,'aa'), (510,'ee'), (290,'bb'),
-(450,'gg'), (320,'dd'), (390,'hh'), (850,'jj'), (860,'ff');
-EXPLAIN
-SELECT t3.a FROM t1,t2 FORCE INDEX (si),t3
-WHERE t1.id = 8 AND t2.i BETWEEN t1.b AND t1.e AND
-t3.a=t2.a AND t3.c IN ('bb','ee');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range si si 5 NULL 4 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE t3 eq_ref PRIMARY,ci PRIMARY 4 test.t2.a 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-EXPLAIN
-SELECT t3.a FROM t1,t2,t3
-WHERE t1.id = 8 AND t2.i BETWEEN t1.b AND t1.e AND
-t3.a=t2.a AND t3.c IN ('bb','ee') ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range si,ai si 5 NULL 4 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE t3 eq_ref PRIMARY,ci PRIMARY 4 test.t2.a 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-EXPLAIN
-SELECT t3.a FROM t1,t2 FORCE INDEX (si),t3
-WHERE t1.id = 8 AND (t2.i=t1.b OR t2.i=t1.e) AND t3.a=t2.a AND
-t3.c IN ('bb','ee');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range si si 5 NULL 2 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE t3 eq_ref PRIMARY,ci PRIMARY 4 test.t2.a 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-EXPLAIN
-SELECT t3.a FROM t1,t2,t3
-WHERE t1.id = 8 AND (t2.i=t1.b OR t2.i=t1.e) AND t3.a=t2.a AND
-t3.c IN ('bb','ee');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range si,ai si 5 NULL 2 Using index condition; Using where; Rowid-ordered scan
-1 SIMPLE t3 eq_ref PRIMARY,ci PRIMARY 4 test.t2.a 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 ( f1 int primary key, f2 int, f3 int, f4 int, f5 int, f6 int, checked_out int);
-CREATE TABLE t2 ( f11 int PRIMARY KEY );
-INSERT INTO t1 VALUES (1,1,1,0,0,0,0),(2,1,1,3,8,1,0),(3,1,1,4,12,1,0);
-INSERT INTO t2 VALUES (62);
-SELECT * FROM t1 LEFT JOIN t2 ON f11 = t1.checked_out GROUP BY f1 ORDER BY f2, f3, f4, f5 LIMIT 0, 1;
-f1 f2 f3 f4 f5 f6 checked_out f11
-1 1 1 0 0 0 0 NULL
-DROP TABLE t1, t2;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a int);
-INSERT into t1 values (1), (2), (3);
-SELECT * FROM t1 LIMIT 2, -1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1' at line 1
-DROP TABLE t1;
-CREATE TABLE t1 (
-ID_with_null int NULL,
-ID_better int NOT NULL,
-INDEX idx1 (ID_with_null),
-INDEX idx2 (ID_better)
-);
-INSERT INTO t1 VALUES (1,1), (2,1), (null,3), (null,3), (null,3), (null,3);
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-SELECT COUNT(*) FROM t1 WHERE ID_with_null IS NULL;
-COUNT(*)
-128
-SELECT COUNT(*) FROM t1 WHERE ID_better=1;
-COUNT(*)
-2
-EXPLAIN SELECT * FROM t1 WHERE ID_better=1 AND ID_with_null IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-DROP INDEX idx1 ON t1;
-CREATE UNIQUE INDEX idx1 ON t1(ID_with_null);
-EXPLAIN SELECT * FROM t1 WHERE ID_better=1 AND ID_with_null IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-DROP TABLE t1;
-CREATE TABLE t1 (
-ID1_with_null int NULL,
-ID2_with_null int NULL,
-ID_better int NOT NULL,
-INDEX idx1 (ID1_with_null, ID2_with_null),
-INDEX idx2 (ID_better)
-);
-INSERT INTO t1 VALUES (1,1,1), (2,2,1), (3,null,3), (null,3,3), (null,null,3),
-(3,null,3), (null,3,3), (null,null,3), (3,null,3), (null,3,3), (null,null,3);
-INSERT INTO t1 SELECT * FROM t1 WHERE ID1_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID2_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID1_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID2_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID1_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID2_with_null IS NULL;
-SELECT COUNT(*) FROM t1 WHERE ID1_with_null IS NULL AND ID2_with_null=3;
-COUNT(*)
-24
-SELECT COUNT(*) FROM t1 WHERE ID1_with_null=3 AND ID2_with_null IS NULL;
-COUNT(*)
-24
-SELECT COUNT(*) FROM t1 WHERE ID1_with_null IS NULL AND ID2_with_null IS NULL;
-COUNT(*)
-192
-SELECT COUNT(*) FROM t1 WHERE ID_better=1;
-COUNT(*)
-2
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND ID2_with_null=3 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null=3 AND ID2_with_null=3 IS NULL ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND ID2_with_null IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-DROP INDEX idx1 ON t1;
-CREATE UNIQUE INDEX idx1 ON t1(ID1_with_null,ID2_with_null);
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND ID2_with_null=3 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null=3 AND ID2_with_null IS NULL ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND ID2_with_null IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND
-(ID2_with_null=1 OR ID2_with_null=2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, KEY ts(ts));
-INSERT INTO t1 VALUES (30,"2006-01-03 23:00:00"), (31,"2006-01-03 23:00:00");
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-CREATE TABLE t2 (a INT, dt1 DATETIME, dt2 DATETIME, PRIMARY KEY (a));
-INSERT INTO t2 VALUES (30, "2006-01-01 00:00:00", "2999-12-31 00:00:00");
-INSERT INTO t2 SELECT a+1,dt1,dt2 FROM t2;
-ANALYZE TABLE t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status OK
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2 ON (t1.a=t2.a) WHERE t1.a=30
-AND t1.ts BETWEEN t2.dt1 AND t2.dt2
-AND t1.ts BETWEEN "2006-01-01" AND "2006-12-31";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t1 range ts ts 4 NULL 1 Using index condition; Using where; Rowid-ordered scan
-SELECT * FROM t1 LEFT JOIN t2 ON (t1.a=t2.a) WHERE t1.a=30
-AND t1.ts BETWEEN t2.dt1 AND t2.dt2
-AND t1.ts BETWEEN "2006-01-01" AND "2006-12-31";
-a ts a dt1 dt2
-30 2006-01-03 23:00:00 30 2006-01-01 00:00:00 2999-12-31 00:00:00
-DROP TABLE t1,t2;
-create table t1 (a bigint unsigned);
-insert into t1 values
-(if(1, 9223372036854775808, 1)),
-(case when 1 then 9223372036854775808 else 1 end),
-(coalesce(9223372036854775808, 1));
-select * from t1;
-a
-9223372036854775808
-9223372036854775808
-9223372036854775808
-drop table t1;
-create table t1 select
-if(1, 9223372036854775808, 1) i,
-case when 1 then 9223372036854775808 else 1 end c,
-coalesce(9223372036854775808, 1) co;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` decimal(19,0) NOT NULL,
- `c` decimal(19,0) NOT NULL,
- `co` decimal(19,0) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select
-if(1, cast(1111111111111111111 as unsigned), 1) i,
-case when 1 then cast(1111111111111111111 as unsigned) else 1 end c,
-coalesce(cast(1111111111111111111 as unsigned), 1) co;
-i c co
-1111111111111111111 1111111111111111111 1111111111111111111
-CREATE TABLE t1 (name varchar(255));
-CREATE TABLE t2 (name varchar(255), n int, KEY (name(3)));
-INSERT INTO t1 VALUES ('ccc'), ('bb'), ('cc '), ('aa '), ('aa');
-INSERT INTO t2 VALUES ('bb',1), ('aa',2), ('cc ',3);
-INSERT INTO t2 VALUES (concat('cc ', 0x06), 4);
-INSERT INTO t2 VALUES ('cc',5), ('bb ',6), ('cc ',7);
-SELECT * FROM t2;
-name n
-bb 1
-aa 2
-cc 3
-cc  4
-cc 5
-bb 6
-cc 7
-SELECT * FROM t2 ORDER BY name;
-name n
-aa 2
-bb 1
-bb 6
-cc  4
-cc 3
-cc 5
-cc 7
-SELECT name, LENGTH(name), n FROM t2 ORDER BY name;
-name LENGTH(name) n
-aa 2 2
-bb 2 1
-bb 3 6
-cc  4 4
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref name name 6 const 3 Using where
-SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
-name LENGTH(name) n
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range name name 6 NULL 3 Using where
-SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
-name LENGTH(name) n
-cc 5 3
-cc  4 4
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range name name 6 NULL 3 Using where; Using filesort
-SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
-name LENGTH(name) n
-cc  4 4
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t1.name=t2.name;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref name name 6 test.t1.name 2 Using where
-SELECT * FROM t1 LEFT JOIN t2 ON t1.name=t2.name;
-name name n
-ccc NULL NULL
-bb bb 1
-bb bb 6
-cc cc 3
-cc cc 5
-cc cc 7
-aa aa 2
-aa aa 2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (name text);
-CREATE TABLE t2 (name text, n int, KEY (name(3)));
-INSERT INTO t1 VALUES ('ccc'), ('bb'), ('cc '), ('aa '), ('aa');
-INSERT INTO t2 VALUES ('bb',1), ('aa',2), ('cc ',3);
-INSERT INTO t2 VALUES (concat('cc ', 0x06), 4);
-INSERT INTO t2 VALUES ('cc',5), ('bb ',6), ('cc ',7);
-SELECT * FROM t2;
-name n
-bb 1
-aa 2
-cc 3
-cc  4
-cc 5
-bb 6
-cc 7
-SELECT * FROM t2 ORDER BY name;
-name n
-aa 2
-bb 1
-bb 6
-cc  4
-cc 3
-cc 5
-cc 7
-SELECT name, LENGTH(name), n FROM t2 ORDER BY name;
-name LENGTH(name) n
-aa 2 2
-bb 2 1
-bb 3 6
-cc  4 4
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref name name 6 const 3 Using where
-SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
-name LENGTH(name) n
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range name name 6 NULL 3 Using where
-SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
-name LENGTH(name) n
-cc 5 3
-cc  4 4
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range name name 6 NULL 3 Using where; Using filesort
-SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
-name LENGTH(name) n
-cc  4 4
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t1.name=t2.name;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref name name 6 test.t1.name 2 Using where
-SELECT * FROM t1 LEFT JOIN t2 ON t1.name=t2.name;
-name name n
-ccc NULL NULL
-bb bb 1
-bb bb 6
-cc cc 3
-cc cc 5
-cc cc 7
-aa aa 2
-aa aa 2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-access_id int NOT NULL default '0',
-name varchar(20) default NULL,
-rank int NOT NULL default '0',
-KEY idx (access_id)
-);
-CREATE TABLE t2 (
-faq_group_id int NOT NULL default '0',
-faq_id int NOT NULL default '0',
-access_id int default NULL,
-UNIQUE KEY idx1 (faq_id),
-KEY idx2 (faq_group_id,faq_id)
-);
-INSERT INTO t1 VALUES
-(1,'Everyone',2),(2,'Help',3),(3,'Technical Support',1),(4,'Chat User',4);
-INSERT INTO t2 VALUES
-(261,265,1),(490,494,1);
-SELECT t2.faq_id
-FROM t1 INNER JOIN t2 IGNORE INDEX (idx1)
-ON (t1.access_id = t2.access_id)
-LEFT JOIN t2 t
-ON (t.faq_group_id = t2.faq_group_id AND
-find_in_set(t.access_id, '1,4') < find_in_set(t2.access_id, '1,4'))
-WHERE
-t2.access_id IN (1,4) AND t.access_id IS NULL AND t2.faq_id in (265);
-faq_id
-265
-SELECT t2.faq_id
-FROM t1 INNER JOIN t2
-ON (t1.access_id = t2.access_id)
-LEFT JOIN t2 t
-ON (t.faq_group_id = t2.faq_group_id AND
-find_in_set(t.access_id, '1,4') < find_in_set(t2.access_id, '1,4'))
-WHERE
-t2.access_id IN (1,4) AND t.access_id IS NULL AND t2.faq_id in (265);
-faq_id
-265
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT, KEY inx (b,a));
-INSERT INTO t1 VALUES (1,1), (1,2), (1,3), (1,4), (1,5), (1, 6), (1,7);
-EXPLAIN SELECT COUNT(*) FROM t1 f1 INNER JOIN t1 f2
-ON ( f1.b=f2.b AND f1.a<f2.a )
-WHERE 1 AND f1.b NOT IN (100,2232,3343,51111);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE f1 index inx inx 10 NULL 7 Using where; Using index
-1 SIMPLE f2 ref inx inx 5 test.f1.b 1 Using where; Using index
-DROP TABLE t1;
-CREATE TABLE t1 (c1 INT, c2 INT);
-INSERT INTO t1 VALUES (1,11), (2,22), (2,22);
-EXPLAIN SELECT c1 FROM t1 WHERE (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT COUNT(c2)))))))))))))))))))))))))))))))) > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-31 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-32 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-EXPLAIN SELECT c1 FROM t1 WHERE (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT COUNT(c2))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) > 0;
-ERROR HY000: Too high level of nesting for select
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 int(11) NOT NULL AUTO_INCREMENT,
-c2 varchar(1000) DEFAULT NULL,
-c3 bigint(20) DEFAULT NULL,
-c4 bigint(20) DEFAULT NULL,
-PRIMARY KEY (c1)
-);
-EXPLAIN EXTENDED
-SELECT join_2.c1
-FROM
-t1 AS join_0,
-t1 AS join_1,
-t1 AS join_2,
-t1 AS join_3,
-t1 AS join_4,
-t1 AS join_5,
-t1 AS join_6,
-t1 AS join_7
-WHERE
-join_0.c1=join_1.c1 AND
-join_1.c1=join_2.c1 AND
-join_2.c1=join_3.c1 AND
-join_3.c1=join_4.c1 AND
-join_4.c1=join_5.c1 AND
-join_5.c1=join_6.c1 AND
-join_6.c1=join_7.c1
-OR
-join_0.c2 < '?' AND
-join_1.c2 < '?' AND
-join_2.c2 > '?' AND
-join_2.c2 < '!' AND
-join_3.c2 > '?' AND
-join_4.c2 = '?' AND
-join_5.c2 <> '?' AND
-join_6.c2 <> '?' AND
-join_7.c2 >= '?' AND
-join_0.c1=join_1.c1 AND
-join_1.c1=join_2.c1 AND
-join_2.c1=join_3.c1 AND
-join_3.c1=join_4.c1 AND
-join_4.c1=join_5.c1 AND
-join_5.c1=join_6.c1 AND
-join_6.c1=join_7.c1
-GROUP BY
-join_3.c1,
-join_2.c1,
-join_7.c1,
-join_1.c1,
-join_0.c1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select NULL AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by NULL,NULL,NULL,NULL,NULL
-SHOW WARNINGS;
-Level Code Message
-Note 1003 select NULL AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by NULL,NULL,NULL,NULL,NULL
-DROP TABLE t1;
-SELECT 1 AS ` `;
-
-1
-Warnings:
-Warning 1474 Name ' ' has become ''
-SELECT 1 AS ` `;
-
-1
-Warnings:
-Warning 1474 Name ' ' has become ''
-SELECT 1 AS ` x`;
-x
-1
-Warnings:
-Warning 1466 Leading spaces are removed from name ' x'
-CREATE VIEW v1 AS SELECT 1 AS ``;
-ERROR 42000: Incorrect column name ''
-CREATE VIEW v1 AS SELECT 1 AS ` `;
-ERROR 42000: Incorrect column name ' '
-CREATE VIEW v1 AS SELECT 1 AS ` `;
-ERROR 42000: Incorrect column name ' '
-CREATE VIEW v1 AS SELECT (SELECT 1 AS ` `);
-ERROR 42000: Incorrect column name ' '
-CREATE VIEW v1 AS SELECT 1 AS ` x`;
-Warnings:
-Warning 1466 Leading spaces are removed from name ' x'
-SELECT `x` FROM v1;
-x
-1
-ALTER VIEW v1 AS SELECT 1 AS ` `;
-ERROR 42000: Incorrect column name ' '
-DROP VIEW v1;
-select str_to_date('2007-10-09','%Y-%m-%d') between '2007/10/01 00:00:00 GMT'
- and '2007/10/20 00:00:00 GMT';
-str_to_date('2007-10-09','%Y-%m-%d') between '2007/10/01 00:00:00 GMT'
- and '2007/10/20 00:00:00 GMT'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007/10/01 00:00:00 GMT'
-Warning 1292 Truncated incorrect datetime value: '2007/10/20 00:00:00 GMT'
-select str_to_date('2007-10-09','%Y-%m-%d') > '2007/10/01 00:00:00 GMT-6';
-str_to_date('2007-10-09','%Y-%m-%d') > '2007/10/01 00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007/10/01 00:00:00 GMT-6'
-select str_to_date('2007-10-09','%Y-%m-%d') <= '2007/10/20 00:00:00 GMT-6';
-str_to_date('2007-10-09','%Y-%m-%d') <= '2007/10/20 00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007/10/20 00:00:00 GMT-6'
-select str_to_date('2007-10-09','%Y-%m-%d') <= '2007/10/2000:00:00 GMT-6';
-str_to_date('2007-10-09','%Y-%m-%d') <= '2007/10/2000:00:00 GMT-6'
-0
-Warnings:
-Warning 1292 Incorrect datetime value: '2007/10/2000:00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-1 00:00:00 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-1 00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-1 00:00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 x00:00:00 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 x00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect date value: '2007-10-01 x00:00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:00:00 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 00:00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:x00:00 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:x00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 00:x00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 x12:34:56 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 x12:34:56 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect date value: '2007-10-01 x12:34:56 GMT-6'
-select str_to_date('2007-10-01 12:34:00','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6';
-str_to_date('2007-10-01 12:34:00','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 12:34x:56 GMT-6'
-select str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6';
-str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6'
-0
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 12:34x:56 GMT-6'
-select str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34:56';
-str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34:56'
-1
-select str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 12:00:00';
-str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 12:00:00'
-0
-select str_to_date('2007-10-01 12','%Y-%m-%d %H') = '2007-10-01 12:00:00';
-str_to_date('2007-10-01 12','%Y-%m-%d %H') = '2007-10-01 12:00:00'
-1
-select str_to_date('2007-10-01 12:34','%Y-%m-%d %H') = '2007-10-01 12:00:00';
-str_to_date('2007-10-01 12:34','%Y-%m-%d %H') = '2007-10-01 12:00:00'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 12:34'
-select str_to_date('2007-02-30 12:34','%Y-%m-%d %H:%i') = '2007-02-30 12:34';
-str_to_date('2007-02-30 12:34','%Y-%m-%d %H:%i') = '2007-02-30 12:34'
-1
-select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34';
-str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34'
-1
-select str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01 00:00:00'
- and '2007/10/20 00:00:00';
-str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01 00:00:00'
- and '2007/10/20 00:00:00'
-1
-set SQL_MODE=TRADITIONAL;
-select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34';
-str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34'
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2007-10-00 12:34' for function str_to_date
-select str_to_date('2007-10-01 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34';
-str_to_date('2007-10-01 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34'
-0
-select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-01 12:34';
-str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-01 12:34'
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2007-10-00 12:34' for function str_to_date
-select str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01'
- and '2007/10/20';
-str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01'
- and '2007/10/20'
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2007-10-00' for function str_to_date
-set SQL_MODE=DEFAULT;
-select str_to_date('2007-10-00','%Y-%m-%d') between '' and '2007/10/20';
-str_to_date('2007-10-00','%Y-%m-%d') between '' and '2007/10/20'
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-select str_to_date('','%Y-%m-%d') between '2007/10/01' and '2007/10/20';
-str_to_date('','%Y-%m-%d') between '2007/10/01' and '2007/10/20'
-0
-select str_to_date('','%Y-%m-%d %H:%i') = '2007-10-01 12:34';
-str_to_date('','%Y-%m-%d %H:%i') = '2007-10-01 12:34'
-0
-select str_to_date(NULL,'%Y-%m-%d %H:%i') = '2007-10-01 12:34';
-str_to_date(NULL,'%Y-%m-%d %H:%i') = '2007-10-01 12:34'
-NULL
-select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '';
-str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = ''
-0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-select str_to_date('1','%Y-%m-%d') = '1';
-str_to_date('1','%Y-%m-%d') = '1'
-0
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-select str_to_date('1','%Y-%m-%d') = '1';
-str_to_date('1','%Y-%m-%d') = '1'
-0
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-select str_to_date('','%Y-%m-%d') = '';
-str_to_date('','%Y-%m-%d') = ''
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-select str_to_date('2000-01-01','%Y-%m-%d') between '1000-01-01' and '2001-01-01';
-str_to_date('2000-01-01','%Y-%m-%d') between '1000-01-01' and '2001-01-01'
-1
-select str_to_date('2000-01-01','%Y-%m-%d') between '1000-01-01' and NULL;
-str_to_date('2000-01-01','%Y-%m-%d') between '1000-01-01' and NULL
-NULL
-select str_to_date('2000-01-01','%Y-%m-%d') between NULL and '2001-01-01';
-str_to_date('2000-01-01','%Y-%m-%d') between NULL and '2001-01-01'
-NULL
-select str_to_date('2000-01-01','%Y-%m-%d') between '2001-01-01' and NULL;
-str_to_date('2000-01-01','%Y-%m-%d') between '2001-01-01' and NULL
-0
-select str_to_date('2000-01-01','%Y-%m-%d') between NULL and '1000-01-01';
-str_to_date('2000-01-01','%Y-%m-%d') between NULL and '1000-01-01'
-0
-select str_to_date('2000-01-01','%Y-%m-%d') between NULL and NULL;
-str_to_date('2000-01-01','%Y-%m-%d') between NULL and NULL
-NULL
-CREATE TABLE t1 (c11 INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY);
-CREATE TABLE t2 (c21 INT UNSIGNED NOT NULL,
-c22 INT DEFAULT NULL,
-KEY(c21, c22));
-CREATE TABLE t3 (c31 INT UNSIGNED NOT NULL DEFAULT 0,
-c32 INT DEFAULT NULL,
-c33 INT NOT NULL,
-c34 INT UNSIGNED DEFAULT 0,
-KEY (c33, c34, c32));
-INSERT INTO t1 values (),(),(),(),();
-INSERT INTO t2 SELECT a.c11, b.c11 FROM t1 a, t1 b;
-INSERT INTO t3 VALUES (1, 1, 1, 0),
-(2, 2, 0, 0),
-(3, 3, 1, 0),
-(4, 4, 0, 0),
-(5, 5, 1, 0);
-SELECT c32 FROM t1, t2, t3 WHERE t1.c11 IN (1, 3, 5) AND
-t3.c31 = t1.c11 AND t2.c21 = t1.c11 AND
-t3.c33 = 1 AND t2.c22 in (1, 3)
-ORDER BY c32;
-c32
-1
-1
-3
-3
-5
-5
-SELECT c32 FROM t1, t2, t3 WHERE t1.c11 IN (1, 3, 5) AND
-t3.c31 = t1.c11 AND t2.c21 = t1.c11 AND
-t3.c33 = 1 AND t2.c22 in (1, 3)
-ORDER BY c32 DESC;
-c32
-5
-5
-3
-3
-1
-1
-DROP TABLE t1, t2, t3;
-
-#
-# Bug#30736: Row Size Too Large Error Creating a Table and
-# Inserting Data.
-#
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-
-CREATE TABLE t1(
-c1 DECIMAL(10, 2),
-c2 FLOAT);
-
-INSERT INTO t1 VALUES (0, 1), (2, 3), (4, 5);
-
-CREATE TABLE t2(
-c3 DECIMAL(10, 2))
-SELECT
-c1 * c2 AS c3
-FROM t1;
-
-SELECT * FROM t1;
-c1 c2
-0.00 1
-2.00 3
-4.00 5
-
-SELECT * FROM t2;
-c3
-0.00
-6.00
-20.00
-
-DROP TABLE t1;
-DROP TABLE t2;
-
-CREATE TABLE t1 (c1 BIGINT NOT NULL);
-INSERT INTO t1 (c1) VALUES (1);
-SELECT * FROM t1 WHERE c1 > NULL + 1;
-c1
-DROP TABLE t1;
-
-CREATE TABLE t1 (a VARCHAR(10) NOT NULL PRIMARY KEY);
-INSERT INTO t1 (a) VALUES ('foo0'), ('bar0'), ('baz0');
-SELECT * FROM t1 WHERE a IN (CONCAT('foo', 0), 'bar');
-a
-foo0
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-CREATE TABLE t2 (a INT, c INT, KEY(a));
-INSERT INTO t1 VALUES (1, 1), (2, 2);
-INSERT INTO t2 VALUES (1, 1), (1, 2), (1, 3), (1, 4), (1, 5),
-(2, 1), (2, 2), (2, 3), (2, 4), (2, 5),
-(3, 1), (3, 2), (3, 3), (3, 4), (3, 5),
-(4, 1), (4, 2), (4, 3), (4, 4), (4, 5);
-FLUSH STATUS;
-SELECT DISTINCT b FROM t1 LEFT JOIN t2 USING(a) WHERE c <= 3;
-b
-1
-2
-SHOW STATUS LIKE 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 10
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 10
-Handler_read_rnd_deleted 1
-Handler_read_rnd_next 6
-DROP TABLE t1, t2;
-CREATE TABLE t1 (f1 bigint(20) NOT NULL default '0',
-f2 int(11) NOT NULL default '0',
-f3 bigint(20) NOT NULL default '0',
-f4 varchar(255) NOT NULL default '',
-PRIMARY KEY (f1),
-KEY key1 (f4),
-KEY key2 (f2));
-CREATE TABLE t2 (f1 int(11) NOT NULL default '0',
-f2 enum('A1','A2','A3') NOT NULL default 'A1',
-f3 int(11) NOT NULL default '0',
-PRIMARY KEY (f1),
-KEY key1 (f3));
-CREATE TABLE t3 (f1 bigint(20) NOT NULL default '0',
-f2 datetime NOT NULL default '1980-01-01 00:00:00',
-PRIMARY KEY (f1));
-insert into t1 values (1, 1, 1, 'abc');
-insert into t1 values (2, 1, 2, 'def');
-insert into t1 values (3, 1, 2, 'def');
-insert into t2 values (1, 'A1', 1);
-insert into t3 values (1, '1980-01-01');
-SELECT a.f3, cr.f4, count(*) count
-FROM t2 a
-STRAIGHT_JOIN t1 cr ON cr.f2 = a.f1
-LEFT JOIN
-(t1 cr2
-JOIN t3 ae2 ON cr2.f3 = ae2.f1
-) ON a.f1 = cr2.f2 AND ae2.f2 < now() - INTERVAL 7 DAY AND
-cr.f4 = cr2.f4
-GROUP BY a.f3, cr.f4;
-f3 f4 count
-1 abc 1
-1 def 2
-drop table t1, t2, t3;
-CREATE TABLE t1 (a INT KEY, b INT);
-INSERT INTO t1 VALUES (1,1), (2,2), (3,3), (4,4);
-EXPLAIN EXTENDED SELECT a, b FROM t1 WHERE a > 1 AND a = b LIMIT 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 100.00 Using index condition; Using where; Rowid-ordered scan
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`b` = `test`.`t1`.`a` and `test`.`t1`.`a` > 1 limit 2
-EXPLAIN EXTENDED SELECT a, b FROM t1 WHERE a > 1 AND b = a LIMIT 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 100.00 Using index condition; Using where; Rowid-ordered scan
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`b` = `test`.`t1`.`a` and `test`.`t1`.`a` > 1 limit 2
-DROP TABLE t1;
-#
-# Bug#47019: Assertion failed: 0, file .\rt_mbr.c, line 138 when
-# forcing a spatial index
-#
-CREATE TABLE t1(a LINESTRING NOT NULL, SPATIAL KEY(a));
-INSERT INTO t1 VALUES
-(GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)')),
-(GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)'));
-EXPLAIN SELECT 1 FROM t1 NATURAL LEFT JOIN t1 AS t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 hash_ALL a #hash#$hj 6 test.t1.a 2 Using where; Using join buffer (flat, BNLH join)
-SELECT 1 FROM t1 NATURAL LEFT JOIN t1 AS t2;
-1
-1
-1
-1
-1
-EXPLAIN SELECT 1 FROM t1 NATURAL LEFT JOIN t1 AS t2 FORCE INDEX(a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 hash_ALL a #hash#$hj 6 test.t1.a 2 Using where; Using join buffer (flat, BNLH join)
-SELECT 1 FROM t1 NATURAL LEFT JOIN t1 AS t2 FORCE INDEX(a);
-1
-1
-1
-1
-1
-DROP TABLE t1;
-#
-# Bug #48291 : crash with row() operator,select into @var, and
-# subquery returning multiple rows
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (2),(3);
-# Should not crash
-SELECT 1 FROM t1 WHERE a <> 1 AND NOT
-ROW(1,a) <=> ROW(1,(SELECT 1 FROM t1))
-INTO @var0;
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1;
-#
-# Bug #48458: simple query tries to allocate enormous amount of
-# memory
-#
-CREATE TABLE t1(a INT NOT NULL, b YEAR);
-INSERT IGNORE INTO t1 VALUES ();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-CREATE TABLE t2(c INT);
-# Should not err out because of out-of-memory
-SELECT 1 FROM t2 JOIN t1 ON 1=1
-WHERE a != '1' AND NOT a >= b OR NOT ROW(b,a )<> ROW(a,a);
-1
-DROP TABLE t1,t2;
-#
-# Bug #49199: Optimizer handles incorrectly:
-# field='const1' AND field='const2' in some cases
-
-CREATE TABLE t1(a DATETIME NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-a
-2001-01-01 00:00:00
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a DATE NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-a
-2001-01-01
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01' AS `a` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-INSERT INTO t1 VALUES('2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-a
-2001-01-01 00:00:00
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a DATETIME NOT NULL, b DATE NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01', '2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a=b AND b='2001-01-01 00:00:00';
-a b
-2001-01-01 00:00:00 2001-01-01
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a=b AND b='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a`,'2001-01-01' AS `b` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a DATETIME NOT NULL, b VARCHAR(20) NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01', '2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a=b AND b='2001-01-01 00:00:00';
-a b
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a=b AND b='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a`,'2001-01-01' AS `b` from dual where 0
-SELECT * FROM t1 WHERE a='2001-01-01 00:00:00' AND a=b AND b='2001-01-01';
-a b
-2001-01-01 00:00:00 2001-01-01
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01 00:00:00' AND a=b AND b='2001-01-01';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a`,'2001-01-01' AS `b` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a DATETIME NOT NULL, b DATE NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01', '2001-01-01');
-SELECT x.a, y.a, z.a FROM t1 x
-JOIN t1 y ON x.a=y.a
-JOIN t1 z ON y.a=z.a
-WHERE x.a='2001-01-01' AND z.a='2001-01-01 00:00:00';
-a a a
-2001-01-01 00:00:00 2001-01-01 00:00:00 2001-01-01 00:00:00
-EXPLAIN EXTENDED SELECT x.a, y.a, z.a FROM t1 x
-JOIN t1 y ON x.a=y.a
-JOIN t1 z ON y.a=z.a
-WHERE x.a='2001-01-01' AND z.a='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE x system NULL NULL NULL NULL 1 100.00
-1 SIMPLE y system NULL NULL NULL NULL 1 100.00
-1 SIMPLE z system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a`,'2001-01-01 00:00:00' AS `a`,'2001-01-01 00:00:00' AS `a` from dual where 1
-DROP TABLE t1;
-#
-# Bug #49897: crash in ptr_compare when char(0) NOT NULL
-# column is used for ORDER BY
-#
-SET @old_sort_buffer_size= @@session.sort_buffer_size;
-SET @@sort_buffer_size= 40000;
-CREATE TABLE t1(a CHAR(0) NOT NULL);
-INSERT IGNORE INTO t1 VALUES (0), (0), (0);
-INSERT INTO t1 SELECT t11.a FROM t1 t11, t1 t12;
-INSERT INTO t1 SELECT t11.a FROM t1 t11, t1 t12;
-INSERT INTO t1 SELECT t11.a FROM t1 t11, t1 t12;
-EXPLAIN SELECT a FROM t1 ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492
-SELECT a FROM t1 ORDER BY a;
-DROP TABLE t1;
-CREATE TABLE t1(a CHAR(0) NOT NULL, b CHAR(0) NOT NULL, c int);
-INSERT IGNORE INTO t1 VALUES (0, 0, 0), (0, 0, 2), (0, 0, 1);
-INSERT INTO t1 SELECT t11.a, t11.b, t11.c FROM t1 t11, t1 t12;
-INSERT INTO t1 SELECT t11.a, t11.b, t11.c FROM t1 t11, t1 t12;
-INSERT INTO t1 SELECT t11.a, t11.b, t11.c FROM t1 t11, t1 t12;
-EXPLAIN SELECT a FROM t1 ORDER BY a LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492
-SELECT a FROM t1 ORDER BY a LIMIT 5;
-a
-
-
-
-
-
-EXPLAIN SELECT * FROM t1 ORDER BY a, b LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492
-SELECT * FROM t1 ORDER BY a, b LIMIT 5;
-a b c
- 0
- 2
- 1
- 0
- 2
-EXPLAIN SELECT * FROM t1 ORDER BY a, b, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492 Using filesort
-SELECT * FROM t1 ORDER BY a, b, c LIMIT 5;
-a b c
- 0
- 0
- 0
- 0
- 0
-EXPLAIN SELECT * FROM t1 ORDER BY c, a LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492 Using filesort
-SELECT * FROM t1 ORDER BY c, a LIMIT 5;
-a b c
- 0
- 0
- 0
- 0
- 0
-SET @@sort_buffer_size= @old_sort_buffer_size;
-DROP TABLE t1;
-End of 5.0 tests
-create table t1(a INT, KEY (a));
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
-SELECT a FROM t1 ORDER BY a LIMIT 2;
-a
-1
-2
-SELECT a FROM t1 ORDER BY a LIMIT 2,4294967296;
-a
-3
-4
-5
-SELECT a FROM t1 ORDER BY a LIMIT 2,4294967297;
-a
-3
-4
-5
-DROP TABLE t1;
-CREATE TABLE t1 (date_key date);
-CREATE TABLE t2 (
-pk int,
-int_nokey int,
-int_key int,
-date_key date NOT NULL,
-date_nokey date,
-varchar_key varchar(1)
-);
-INSERT INTO t2 VALUES
-(1,1,1,'0000-00-00',NULL,NULL),
-(1,1,1,'0000-00-00',NULL,NULL);
-SELECT 1 FROM t2 WHERE pk > ANY (SELECT 1 FROM t2);
-1
-SELECT COUNT(DISTINCT 1) FROM t2
-WHERE date_key = (SELECT 1 FROM t1 WHERE t2.date_key IS NULL) GROUP BY pk;
-COUNT(DISTINCT 1)
-SELECT date_nokey FROM t2
-WHERE int_key IN (SELECT 1 FROM t1)
-HAVING date_nokey = '10:41:7'
-ORDER BY date_key;
-date_nokey
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT NOT NULL, b INT);
-INSERT INTO t1 VALUES (1, 1);
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (a=a AND a=a) OR b > 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select 1 AS `a`,1 AS `b` from dual where 1
-SELECT * FROM t1 WHERE (a=a AND a=a) OR b > 2;
-a b
-1 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL, c INT NOT NULL);
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (a=a AND b=b AND c=c) OR b > 20;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 select NULL AS `a`,NULL AS `b`,NULL AS `c` from `test`.`t1` where 1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (a=a AND a=a AND b=b) OR b > 20;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 select NULL AS `a`,NULL AS `b`,NULL AS `c` from `test`.`t1` where 1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (a=a AND b=b AND a=a) OR b > 20;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 select NULL AS `a`,NULL AS `b`,NULL AS `c` from `test`.`t1` where 1
-DROP TABLE t1;
-#
-# Bug#45266: Uninitialized variable lead to an empty result.
-#
-drop table if exists A,AA,B,BB;
-CREATE TABLE `A` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`date_key` date NOT NULL,
-`date_nokey` date NOT NULL,
-`datetime_key` datetime NOT NULL,
-`int_nokey` int(11) NOT NULL,
-`time_key` time NOT NULL,
-`time_nokey` time NOT NULL,
-PRIMARY KEY (`pk`),
-KEY `date_key` (`date_key`),
-KEY `time_key` (`time_key`),
-KEY `datetime_key` (`datetime_key`)
-);
-CREATE TABLE `AA` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`int_nokey` int(11) NOT NULL,
-`time_key` time NOT NULL,
-KEY `time_key` (`time_key`),
-PRIMARY KEY (`pk`)
-);
-CREATE TABLE `B` (
-`date_nokey` date NOT NULL,
-`date_key` date NOT NULL,
-`time_key` time NOT NULL,
-`datetime_nokey` datetime NOT NULL,
-`varchar_key` varchar(1) NOT NULL,
-KEY `date_key` (`date_key`),
-KEY `time_key` (`time_key`),
-KEY `varchar_key` (`varchar_key`)
-);
-INSERT INTO `B` VALUES ('2003-07-28','2003-07-28','15:13:38','0000-00-00 00:00:00','f'),('0000-00-00','0000-00-00','00:05:48','2004-07-02 14:34:13','x');
-CREATE TABLE `BB` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`int_nokey` int(11) NOT NULL,
-`date_key` date NOT NULL,
-`varchar_nokey` varchar(1) NOT NULL,
-`date_nokey` date NOT NULL,
-PRIMARY KEY (`pk`),
-KEY `date_key` (`date_key`)
-);
-INSERT INTO `BB` VALUES (10,8,'0000-00-00','i','0000-00-00'),(11,0,'2005-08-18','','2005-08-18');
-SELECT table1 . `pk` AS field1
-FROM
-(BB AS table1 INNER JOIN
-(AA AS table2 STRAIGHT_JOIN A AS table3
-ON ( table3 . `date_key` = table2 . `pk` ))
-ON ( table3 . `datetime_key` = table2 . `int_nokey` ))
-WHERE ( table3 . `date_key` <= 4 AND table2 . `pk` = table1 . `varchar_nokey`)
-GROUP BY field1 ;
-field1
-SELECT table3 .`date_key` field1
-FROM
-B table1 LEFT JOIN B table3 JOIN
-(BB table6 JOIN A table7 ON table6 .`varchar_nokey`)
-ON table6 .`int_nokey` ON table6 .`date_key`
- WHERE NOT ( table1 .`varchar_key` AND table7 .`pk`) GROUP BY field1;
-field1
-NULL
-SELECT table4 . `time_nokey` AS field1 FROM
-(AA AS table1 CROSS JOIN
-(AA AS table2 STRAIGHT_JOIN
-(B AS table3 STRAIGHT_JOIN A AS table4
-ON ( table4 . `date_key` = table3 . `time_key` ))
-ON ( table4 . `pk` = table3 . `date_nokey` ))
-ON ( table4 . `time_key` = table3 . `datetime_nokey` ))
-WHERE ( table4 . `time_key` < table1 . `time_key` AND
-table1 . `int_nokey` != 'f')
-GROUP BY field1 ORDER BY field1 , field1;
-field1
-SELECT table1 .`time_key` field2 FROM B table1 LEFT JOIN BB JOIN A table5 ON table5 .`date_nokey` ON table5 .`int_nokey` GROUP BY field2;
-field2
-00:05:48
-15:13:38
-drop table A,AA,B,BB;
-#end of test for bug#45266
-#
-# Bug#33546: Slowdown on re-evaluation of constant expressions.
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (2);
-SELECT * FROM t1 WHERE a = 1 + 1;
-a
-2
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a = 1 + 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(1 + 1)
-SELECT * FROM t1 HAVING a = 1 + 1;
-a
-2
-EXPLAIN EXTENDED SELECT * FROM t1 HAVING a = 1 + 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` having `test`.`t1`.`a` = <cache>(1 + 1)
-SELECT * FROM t1, t2 WHERE a = b + (1 + 1);
-a b
-4 2
-EXPLAIN EXTENDED SELECT * FROM t1, t2 WHERE a = b + (1 + 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,2 AS `b` from `test`.`t1` where `test`.`t1`.`a` = <cache>(2 + (1 + 1))
-SELECT * FROM t2 LEFT JOIN t1 ON a = b + 1;
-b a
-2 3
-EXPLAIN EXTENDED SELECT * FROM t2 LEFT JOIN t1 ON a = b + 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select 2 AS `b`,`test`.`t1`.`a` AS `a` from `test`.`t1` where 1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a > UNIX_TIMESTAMP('2009-03-10 00:00:00');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > <cache>(unix_timestamp('2009-03-10 00:00:00'))
-CREATE FUNCTION f1() RETURNS INT DETERMINISTIC
-BEGIN
-SET @cnt := @cnt + 1;
-RETURN 1;
-END;|
-SET @cnt := 0;
-SELECT * FROM t1 WHERE a = f1();
-a
-1
-SELECT @cnt;
-@cnt
-1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a = f1();
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(`f1`())
-DROP TABLE t1, t2;
-DROP FUNCTION f1;
-# End of bug#33546
-#
-# BUG#48052: Valgrind warning - uninitialized value in init_read_record()
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL,
-i int(11) DEFAULT NULL,
-v varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (2,7,'m');
-INSERT INTO t1 VALUES (3,9,'m');
-SELECT v
-FROM t1
-WHERE NOT pk > 0
-HAVING v <= 't'
-ORDER BY pk;
-v
-DROP TABLE t1;
-#
-# Bug#49489 Uninitialized cache led to a wrong result.
-#
-CREATE TABLE t1(c1 DOUBLE(5,4));
-INSERT INTO t1 VALUES (9.1234);
-SELECT * FROM t1 WHERE c1 < 9.12345;
-c1
-9.1234
-DROP TABLE t1;
-# End of test for bug#49489.
-#
-# Bug #49517: Inconsistent behavior while using
-# NULLable BIGINT and INT columns in comparison
-#
-CREATE TABLE t1(a BIGINT UNSIGNED NOT NULL, b BIGINT NULL, c INT NULL);
-INSERT INTO t1 VALUES(105, NULL, NULL);
-SELECT * FROM t1 WHERE b < 102;
-a b c
-SELECT * FROM t1 WHERE c < 102;
-a b c
-SELECT * FROM t1 WHERE 102 < b;
-a b c
-SELECT * FROM t1 WHERE 102 < c;
-a b c
-DROP TABLE t1;
-#
-# Bug #54459: Assertion failed: param.sort_length,
-# file .\filesort.cc, line 149 (part II)
-#
-CREATE TABLE t1(a ENUM('') NOT NULL);
-INSERT INTO t1 VALUES (), (), ();
-EXPLAIN SELECT 1 FROM t1 ORDER BY a COLLATE latin1_german2_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using filesort
-SELECT 1 FROM t1 ORDER BY a COLLATE latin1_german2_ci;
-1
-1
-1
-1
-DROP TABLE t1;
-#
-# Bug #702310: usage of 2 join buffers after ref access to an empty table
-#
-CREATE TABLE t1 (f1 int) ;
-INSERT INTO t1 VALUES (9);
-CREATE TABLE t2 (f1 int);
-INSERT INTO t2 VALUES (3),(7),(18);
-INSERT INTO t2 VALUES (3),(7),(18);
-INSERT INTO t2 VALUES (3),(7),(18);
-INSERT INTO t2 VALUES (3),(7),(18);
-CREATE TABLE t3 (f1 int);
-INSERT INTO t3 VALUES (17);
-CREATE TABLE t4 (f1 int PRIMARY KEY, f2 varchar(1024)) ;
-CREATE TABLE t5 (f1 int) ;
-INSERT INTO t5 VALUES (20),(5);
-CREATE TABLE t6(f1 int);
-INSERT INTO t6 VALUES (9),(7);
-SET SESSION join_buffer_size = 2176;
-EXPLAIN
-SELECT STRAIGHT_JOIN * FROM t2, (t1 LEFT JOIN (t3,t4) ON t1.f1 = t4.f1), t5, t6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 12
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1 Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 4 test.t1.f1 1 Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t5 ALL NULL NULL NULL NULL 2 Using join buffer (incremental, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 2 Using join buffer (incremental, BNL join)
-SELECT STRAIGHT_JOIN * FROM t2, (t1 LEFT JOIN (t3,t4) ON t1.f1 = t4.f1), t5, t6;
-f1 f1 f1 f1 f2 f1 f1
-3 9 NULL NULL NULL 20 9
-7 9 NULL NULL NULL 20 9
-18 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 20 9
-7 9 NULL NULL NULL 20 9
-18 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 20 9
-7 9 NULL NULL NULL 20 9
-18 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 20 9
-7 9 NULL NULL NULL 20 9
-18 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 5 9
-7 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 5 9
-3 9 NULL NULL NULL 5 9
-7 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 5 9
-3 9 NULL NULL NULL 5 9
-7 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 5 9
-3 9 NULL NULL NULL 5 9
-7 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 5 9
-3 9 NULL NULL NULL 20 7
-7 9 NULL NULL NULL 20 7
-18 9 NULL NULL NULL 20 7
-3 9 NULL NULL NULL 20 7
-7 9 NULL NULL NULL 20 7
-18 9 NULL NULL NULL 20 7
-3 9 NULL NULL NULL 20 7
-7 9 NULL NULL NULL 20 7
-18 9 NULL NULL NULL 20 7
-3 9 NULL NULL NULL 20 7
-7 9 NULL NULL NULL 20 7
-18 9 NULL NULL NULL 20 7
-3 9 NULL NULL NULL 5 7
-7 9 NULL NULL NULL 5 7
-18 9 NULL NULL NULL 5 7
-3 9 NULL NULL NULL 5 7
-7 9 NULL NULL NULL 5 7
-18 9 NULL NULL NULL 5 7
-3 9 NULL NULL NULL 5 7
-7 9 NULL NULL NULL 5 7
-18 9 NULL NULL NULL 5 7
-3 9 NULL NULL NULL 5 7
-7 9 NULL NULL NULL 5 7
-18 9 NULL NULL NULL 5 7
-SET SESSION join_buffer_size = DEFAULT;
-DROP TABLE t1,t2,t3,t4,t5,t6;
-#
-# Bug #698882: best equality substitution not applied to ref
-#
-CREATE TABLE t1 (a1 int NOT NULL, b1 char(10), INDEX idx (a1));
-CREATE TABLE t2 (a2 int NOT NULL, b2 char(10), INDEX idx (a2));
-CREATE TABLE t3 (a3 int NOT NULL, b3 char(10), INDEX idx (a3));
-INSERT INTO t1 VALUES (2,'xx'), (1,'xxx'), (11,'xxxxxxx');
-INSERT INTO t2 VALUES
-(7,'yyyy'), (2,'y'), (3,'yyy'), (1,'yy'), (1,'yyyyy'),
-(3,'yy'), (1,'y'), (4,'yyy'), (7,'y'), (4,'yyyyy'), (7,'yyy'),
-(7,'yyyy'), (2,'yy'), (3,'yyy'), (1,'yyyyyyyy'), (1,'yyyyy'),
-(3,'yy'), (1,'yyy'), (4,'yyy'), (7,'y'), (4,'yyyyy'), (7,'yyy');
-INSERT INTO t3 VALUES
-(9,'zzzzzzz'), (2,'zzzzz'), (1,'z'), (9,'zz'), (1,'zz'), (5,'zzzzzzz'),
-(4,'zz'), (3,'z'), (5,'zzzzzz'), (3,'zz'), (4,'zzzz'), (3,'z'),
-(9,'zzzzzzzz'), (2,'zz'), (1,'zz'), (9,'zzz'), (1,'zzz'), (5,'zzzzzzzz'),
-(4,'zzz'), (3,'zz'), (5,'zzzzzzz'), (3,'zzz'), (4,'zzzzz'), (3,'zz'),
-(9,'zzzzzz'), (2,'zzzz'), (1,'zzz'), (9,'z'), (1,'z'), (5,'zzzzzz'),
-(4,'z'), (3,'zzz'), (5,'zzzzz'), (3,'z'), (4,'zzz'), (3,'zzzz'),
-(9,'zzzzz'), (2,'zzz'), (1,'zzzz'), (9,'zzz'), (1,'zzzz'), (5,'zzzzz'),
-(4,'zzz'), (3,'zzzz'), (5,'zzzz'), (3,'zzz'), (4,'zz'), (3,'zzzzz');
-set @tmp= @@optimizer_switch;
-SET SESSION optimizer_switch='index_condition_pushdown=off';
-EXPLAIN SELECT * from t1,t2,t3 WHERE t3.a3=t1.a1 AND t2.a2=t1.a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL idx NULL NULL NULL 3
-1 SIMPLE t2 ref idx idx 4 test.t1.a1 2 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t3 ref idx idx 4 test.t1.a1 5 Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-EXPLAIN SELECT * FROM t1,t2,t3 WHERE t2.a2=t1.a1 AND t3.a3=t1.a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL idx NULL NULL NULL 3
-1 SIMPLE t2 ref idx idx 4 test.t1.a1 2 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t3 ref idx idx 4 test.t1.a1 5 Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-EXPLAIN SELECT * FROM t1,t2,t3 WHERE t2.a2=t1.a1 AND t3.a3=t2.a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL idx NULL NULL NULL 3
-1 SIMPLE t2 ref idx idx 4 test.t1.a1 2 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t3 ref idx idx 4 test.t1.a1 5 Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-SELECT * from t1,t2,t3
-WHERE t3.a3=t1.a1 AND t2.a2=t1.a1 AND
-LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
-a1 b1 a2 b2 a3 b3
-1 xxx 1 y 1 z
-1 xxx 1 y 1 z
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zzz
-1 xxx 1 y 1 zzz
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 zz
-1 xxx 1 yy 1 zz
-1 xxx 1 yyy 1 z
-1 xxx 1 yyy 1 z
-2 xx 2 y 2 zz
-2 xx 2 y 2 zzz
-2 xx 2 y 2 zzzz
-2 xx 2 yy 2 zz
-2 xx 2 yy 2 zzz
-SELECT * FROM t1,t2,t3
-WHERE t2.a2=t1.a1 AND t3.a3=t1.a1 AND
-LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
-a1 b1 a2 b2 a3 b3
-1 xxx 1 y 1 z
-1 xxx 1 y 1 z
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zzz
-1 xxx 1 y 1 zzz
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 zz
-1 xxx 1 yy 1 zz
-1 xxx 1 yyy 1 z
-1 xxx 1 yyy 1 z
-2 xx 2 y 2 zz
-2 xx 2 y 2 zzz
-2 xx 2 y 2 zzzz
-2 xx 2 yy 2 zz
-2 xx 2 yy 2 zzz
-SELECT * FROM t1,t2,t3
-WHERE t2.a2=t1.a1 AND t3.a3=t2.a2 AND
-LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
-a1 b1 a2 b2 a3 b3
-1 xxx 1 y 1 z
-1 xxx 1 y 1 z
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zzz
-1 xxx 1 y 1 zzz
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 zz
-1 xxx 1 yy 1 zz
-1 xxx 1 yyy 1 z
-1 xxx 1 yyy 1 z
-2 xx 2 y 2 zz
-2 xx 2 y 2 zzz
-2 xx 2 y 2 zzzz
-2 xx 2 yy 2 zz
-2 xx 2 yy 2 zzz
-SET SESSION optimizer_switch=@tmp;
-DROP TABLE t1,t2,t3;
-#
-# Bug #707555: crash with equality substitution in ref
-#
-CREATE TABLE t1 (f11 int, f12 int, PRIMARY KEY (f11), KEY (f12)) ;
-INSERT INTO t1 VALUES (1,NULL), (8,NULL);
-CREATE TABLE t2 (f21 int, f22 int, f23 int, KEY (f22)) ;
-INSERT INTO t2 VALUES (1,NULL,3), (2,7,8);
-CREATE TABLE t3 (f31 int, f32 int(11), PRIMARY KEY (f31), KEY (f32)) ;
-INSERT INTO t3 VALUES (1,494862336);
-CREATE TABLE t4 (f41 int, f42 int, PRIMARY KEY (f41), KEY (f42)) ;
-INSERT INTO t4 VALUES (1,NULL), (8,NULL);
-CREATE TABLE t5 (f51 int, PRIMARY KEY (f51)) ;
-INSERT IGNORE INTO t5 VALUES (100);
-CREATE TABLE t6 (f61 int, f62 int, KEY (f61)) ;
-INSERT INTO t6 VALUES (NULL,1), (3,10);
-CREATE TABLE t7 (f71 int, f72 int, KEY (f72)) ;
-INSERT INTO t7 VALUES (1,NULL), (2,7);
-EXPLAIN
-SELECT t2.f23 FROM
-(t1 LEFT JOIN (t2 JOIN t3 ON t2.f22=t3.f32) ON t1.f11=t3.f31)
-LEFT JOIN
-(((t4 JOIN t5 ON t4.f42=t5.f51) LEFT JOIN t6 ON t6.f62>0) JOIN t7 ON t6.f61>0)
-ON t3.f31 = t6.f61
-WHERE t7.f71>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 system PRIMARY,f32 NULL NULL NULL 1
-1 SIMPLE t5 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 ref f22 f22 5 const 1
-1 SIMPLE t6 ref f61 f61 5 const 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 SIMPLE t4 ref f42 f42 5 const 1 Using index
-1 SIMPLE t7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-SELECT t2.f23 FROM
-(t1 LEFT JOIN (t2 JOIN t3 ON t2.f22=t3.f32) ON t1.f11=t3.f31)
-LEFT JOIN
-(((t4 JOIN t5 ON t4.f42=t5.f51) LEFT JOIN t6 ON t6.f62>0) JOIN t7 ON t6.f61>0)
-ON t3.f31 = t6.f61
-WHERE t7.f71>0;
-f23
-DROP TABLE t1,t2,t3,t4,t5,t6,t7;
-CREATE TABLE t1(f1 int UNSIGNED) engine=myisam;
-INSERT INTO t1 VALUES (3),(2),(1);
-set sql_buffer_result=0;
-SELECT f1 FROM t1 GROUP BY 1;
-f1
-1
-2
-3
-SELECT f1 FROM t1 GROUP BY '123' = 'abc';
-f1
-3
-SELECT 1 FROM t1 GROUP BY 1;
-1
-1
-set sql_buffer_result=1;
-SELECT f1 FROM t1 GROUP BY 1;
-f1
-1
-2
-3
-SELECT f1 FROM t1 GROUP BY '123' = 'abc';
-f1
-3
-SELECT 1 FROM t1 GROUP BY 1;
-1
-1
-drop table t1;
-set sql_buffer_result= 0;
-#
-# Bug #58422: Incorrect result when OUTER JOIN'ing
-# with an empty table
-#
-CREATE TABLE t_empty(pk INT PRIMARY KEY, i INT) ENGINE = MYISAM;
-CREATE TABLE t1(pk INT PRIMARY KEY, i INT) ENGINE = MYISAM;
-INSERT INTO t1 VALUES (1,1), (2,2), (3,3);
-CREATE TABLE t2(pk INT PRIMARY KEY, i INT) ENGINE = MYISAM;
-INSERT INTO t2 VALUES (1,1), (2,2), (3,3);
-EXPLAIN
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 INNER JOIN t_empty ON TRUE)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 INNER JOIN t_empty ON TRUE)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-pk i pk i pk i
-EXPLAIN
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 CROSS JOIN t_empty)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 CROSS JOIN t_empty)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-pk i pk i pk i
-EXPLAIN
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 INNER JOIN t_empty ON t_empty.i=t2.i)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 INNER JOIN t_empty ON t_empty.i=t2.i)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-pk i pk i pk i
-DROP TABLE t1,t2,t_empty;
-End of 5.1 tests
-#
-# Bug#45227: Lost HAVING clause led to a wrong result.
-#
-CREATE TABLE `CC` (
-`int_nokey` int(11) NOT NULL,
-`int_key` int(11) NOT NULL,
-`varchar_key` varchar(1) NOT NULL,
-`varchar_nokey` varchar(1) NOT NULL,
-KEY `int_key` (`int_key`),
-KEY `varchar_key` (`varchar_key`)
-);
-INSERT INTO `CC` VALUES
-(0,8,'q','q'),(5,8,'m','m'),(7,3,'j','j'),(1,2,'z','z'),(8,2,'a','a'),(2,6,'',''),(1,8,'e'
-,'e'),(8,9,'t','t'),(5,2,'q','q'),(4,6,'b','b'),(5,5,'w','w'),(3,2,'m','m'),(0,4,'x','x'),
-(8,9,'',''),(0,6,'w','w'),(4,5,'x','x'),(0,0,'e','e'),(0,0,'e','e'),(2,8,'p','p'),(0,0,'x'
-,'x');
-EXPLAIN SELECT `varchar_nokey` G1 FROM CC WHERE `int_nokey` AND `int_key` <= 4
-HAVING G1 ORDER BY `varchar_key` LIMIT 6 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CC range int_key int_key 4 NULL 10 Using index condition; Using where; Rowid-ordered scan; Using filesort
-SELECT `varchar_nokey` G1 FROM CC WHERE `int_nokey` AND `int_key` <= 4
-HAVING G1 ORDER BY `varchar_key` LIMIT 6 ;
-G1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'j'
-Warning 1292 Truncated incorrect DOUBLE value: 'z'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'q'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-DROP TABLE CC;
-# End of test#45227
-#
-# BUG#776274: substitution of a single row table
-#
-CREATE TABLE t1 (a int NOT NULL , b int);
-INSERT INTO t1 VALUES (2,2);
-SELECT * FROM t1 WHERE a = b;
-a b
-2 2
-EXPLAIN
-SELECT * FROM t1 WHERE a = b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-DROP TABLE t1;
-#
-# Bug#54515: Crash in opt_range.cc::get_best_group_min_max on
-# SELECT from VIEW with GROUP BY
-#
-CREATE TABLE t1 (
-col_int_key int DEFAULT NULL,
-KEY int_key (col_int_key)
-) ;
-INSERT INTO t1 VALUES (1),(2);
-CREATE VIEW view_t1 AS
-SELECT t1.col_int_key AS col_int_key
-FROM t1;
-SELECT col_int_key FROM view_t1 GROUP BY col_int_key;
-col_int_key
-1
-2
-DROP VIEW view_t1;
-DROP TABLE t1;
-# End of test BUG#54515
-#
-# Bug #57203 Assertion `field_length <= 255' failed.
-#
-SELECT coalesce((avg(distinct (geomfromtext("point(25379 -22010)")))))
-UNION ALL
-SELECT coalesce((avg(distinct (geomfromtext("point(25379 -22010)")))))
-AS foo
-;
-ERROR HY000: Illegal parameter data type geometry for operation 'avg'
-CREATE table t1(a text);
-INSERT INTO t1 VALUES (''), ('');
-SELECT avg(distinct(t1.a)) FROM t1, t1 t2
-GROUP BY t2.a ORDER BY t1.a;
-avg(distinct(t1.a))
-0
-DROP TABLE t1;
-# End of test BUG#57203
-#
-# lp:822760 Wrong result with view + invalid dates
-#
-CREATE TABLE t1 (f1 date);
-INSERT IGNORE INTO t1 VALUES ('0000-00-00');
-CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM t1 HAVING f1 = 'zz';
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'zz'
-SELECT * FROM t1 HAVING f1 <= 'aa' ;
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'aa'
-SELECT * FROM t1 HAVING f1 = 'zz' AND f1 <= 'aa' ;
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'zz'
-Warning 1292 Incorrect datetime value: 'aa'
-SELECT * FROM t1 WHERE f1 = 'zz' AND f1 <= 'aa' ;
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'zz'
-Warning 1292 Incorrect datetime value: 'aa'
-SELECT * FROM v1 HAVING f1 = 'zz' AND f1 <= 'aa' ;
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'zz'
-Warning 1292 Incorrect datetime value: 'aa'
-DROP TABLE t1;
-DROP VIEW v1;
-#
-# Bug#63020: Function "format"'s 'locale' argument is not considered
-# when creating a "view'
-#
-CREATE TABLE t1 (f1 DECIMAL(10,2));
-INSERT INTO t1 VALUES (11.67),(17865.3),(12345678.92);
-CREATE VIEW view_t1 AS SELECT FORMAT(f1,1,'sk_SK') AS f1 FROM t1;
-SHOW CREATE VIEW view_t1;
-View Create View character_set_client collation_connection
-view_t1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_t1` AS select format(`t1`.`f1`,1,'sk_SK') AS `f1` from `t1` latin1 latin1_swedish_ci
-SELECT * FROM view_t1;
-f1
-11,7
-17 865,3
-12 345 678,9
-DROP TABLE t1;
-DROP VIEW view_t1;
-# End of test BUG#63020
-#
-# Bug #13571700 TINYBLOB NOT NULL, CRASH IN PROTOCOL::NET_STORE_DATA
-#
-CREATE TABLE t1 (a TINYBLOB NOT NULL);
-SELECT a, COUNT(*) FROM t1 WHERE 0;
-a COUNT(*)
-NULL 0
-DROP TABLE t1;
-SET optimizer_switch=@save_optimizer_switch;
-#
-# LP bug#994275 Assertion `real->type() == Item::FIELD_ITEM' failed
-# in add_not_null_conds(JOIN*) with JOIN, ZEROFILL column, PK
-#
-CREATE TABLE t1 ( a INT(6) ZEROFILL );
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 ( b INT PRIMARY KEY );
-INSERT INTO t2 VALUES (3),(4);
-SELECT * FROM t1, t2 WHERE a=3 AND a=b;
-a b
-drop table t1,t2;
-#
-# Bug mdev-4250: wrong transformation of WHERE condition with OR
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, a int);
-INSERT INTO t1 VALUES (3,0), (2,0), (4,1), (5,0), (1,0);
-SELECT * FROM t1 WHERE (1=2 OR t1.pk=2) AND t1.a <> 0;
-pk a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (1=2 OR t1.pk=2) AND t1.a <> 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 2 AS `pk`,0 AS `a` from `test`.`t1` where 0
-DROP TABLE t1;
-SELECT * FROM mysql.time_zone
-WHERE ( NOT (Use_leap_seconds <= Use_leap_seconds AND Time_zone_id != 1)
-AND Time_zone_id = Time_zone_id
-OR Time_zone_id <> Time_zone_id )
-AND Use_leap_seconds <> 'N';
-Time_zone_id Use_leap_seconds
-#
-# Bug mdev-4274: result of simplification of OR badly merged
-# into embedding AND
-#
-CREATE TABLE t1 (a int, b int, INDEX idx(b)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (8,8);
-CREATE TABLE t2 (c int, INDEX idx(c)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8), (9);
-EXPLAIN EXTENDED
-SELECT * FROM t1 INNER JOIN t2 ON ( c = a )
-WHERE 1 IS NULL OR b < 33 AND b = c;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system idx NULL NULL NULL 1 100.00
-1 SIMPLE t2 ref idx idx 5 const 1 100.00 Using index
-Warnings:
-Note 1003 select 8 AS `a`,8 AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where `test`.`t2`.`c` = 8
-SELECT * FROM t1 INNER JOIN t2 ON ( c = a )
-WHERE 1 IS NULL OR b < 33 AND b = c;
-a b c
-8 8 8
-DROP TABLE t1,t2;
-#
-# Bug mdev-4413: another manifestations of bug mdev-4274
-# (valgrind complains)
-#
-CREATE TABLE t1 (a int, b int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (7,1);
-CREATE TABLE t2 (c int) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (0), (8);
-SELECT * FROM t1, t2
-WHERE c = a AND
-( 0 OR ( b BETWEEN 45 AND 300 OR a > 45 AND a < 100 ) AND b = c );
-a b c
-DROP TABLE t1, t2;
-#
-# Bug mdev-4355: equalities from the result of simplification of OR
-# are not propagated to lower AND levels
-#
-CREATE TABLE t1 (a INT, b INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,101),(2,102),(3,103),(4,104),(5,11);
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (1 != 1 OR a = 5) AND (b != 1 OR a = 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` = 5 and `test`.`t1`.`b` <> 1
-SELECT * FROM t1 WHERE (1 != 1 OR a = 5) AND (b != 1 OR a = 1);
-a b
-5 11
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (b != 1 OR a = 1) AND (1 != 1 OR a = 5);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` = 5 and `test`.`t1`.`b` <> 1
-SELECT * FROM t1 WHERE (b != 1 OR a = 1) AND (1 != 1 OR a = 5);
-a b
-5 11
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (b != 1 OR a = 1) AND (a = 5 OR 1 != 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` = 5 and `test`.`t1`.`b` <> 1
-SELECT * FROM t1 WHERE (b != 1 OR a = 1) AND (a = 5 OR 1 != 1);
-a b
-5 11
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (b = 1 OR a = 1) AND (b = 5 AND a = 5 OR 1 != 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where 0
-SELECT * FROM t1 WHERE (b = 1 OR a = 1) AND (b = 5 AND a = 5 OR 1 != 1);
-a b
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (b = 1 OR a = 5) AND (b = 5 AND a = 5 OR 1 != 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`b` = 5 and `test`.`t1`.`a` = 5
-SELECT * FROM t1 WHERE (b = 1 OR a = 5) AND (b = 5 AND a = 5 OR 1 != 1);
-a b
-DROP TABLE t1;
-#
-# Bug mdev-4418: impossible multiple equality in OR formula
-# after row substitution
-#
-CREATE TABLE t1 (a int, b varchar(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (0,'j'), (8,'v');
-CREATE TABLE t2 (c varchar(1), d varchar(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('k','k');
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2 WHERE c=b AND (1=2 OR ((b='h' OR a=136) AND d=b));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,'k' AS `c`,'k' AS `d` from `test`.`t1` where `test`.`t1`.`b` = 'k' and `test`.`t1`.`a` = 136
-SELECT * FROM t1, t2 WHERE c=b AND (1=2 OR ((b='h' OR a=136) AND d=b));
-a b c d
-DROP TABLE t1,t2;
-#
-# Bug mdev-4944: range conditition in OR formula with fields
-# belonging to multiple equalities
-#
-CREATE TABLE t1 (i1 int, j1 int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,8);
-CREATE TABLE t2 (i2 int, INDEX idx (i2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8), (9);
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2
-WHERE i1 = i2 AND ( FALSE OR ( j1 > 27 AND j1 < 100 OR j1 <= 3 ) AND j1 = i2 );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 1 AS `i1`,8 AS `j1`,NULL AS `i2` from `test`.`t2` where 0
-SELECT * FROM t1, t2
-WHERE i1 = i2 AND ( FALSE OR ( j1 > 27 AND j1 < 100 OR j1 <= 3 ) AND j1 = i2 );
-i1 j1 i2
-DROP TABLE t1,t2;
-#
-# Bug mdev-4971: equality propagation after merging degenerate
-# disjunction into embedding AND level
-#
-CREATE TABLE t1 (pk1 int, a1 int, b1 int, PRIMARY KEY(pk1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,10,100), (2,20,200) ;
-CREATE TABLE t2 (pk2 int, a2 int, PRIMARY KEY(pk2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,1);
-SELECT * FROM t1, t2
-WHERE a1 = pk2 AND ( ( b1 = 6 OR a2 > 4 ) AND pk2 = a2 OR pk1 IS NULL );
-pk1 a1 b1 pk2 a2
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2
-WHERE a1 = pk2 AND ( ( b1 = 6 OR a2 > 4 ) AND pk2 = a2 OR pk1 IS NULL );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system PRIMARY NULL NULL NULL 1 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`pk1` AS `pk1`,`test`.`t1`.`a1` AS `a1`,`test`.`t1`.`b1` AS `b1`,1 AS `pk2`,1 AS `a2` from `test`.`t1` where `test`.`t1`.`a1` = 1 and `test`.`t1`.`b1` = 6
-INSERT INTO t1 VALUES (3,1,6);
-SELECT * FROM t1, t2
-WHERE a1 = pk2 AND ( ( b1 = 6 OR a2 > 4 ) AND pk2 = a2 OR pk1 IS NULL );
-pk1 a1 b1 pk2 a2
-3 1 6 1 1
-DROP TABLE t1,t2;
-End of 5.3 tests
-#
-# mysql BUG#1271 Undefined variable in PASSWORD()
-# function is not handled correctly
-#
-create table t1 (
-name VARCHAR(50) NOT NULL PRIMARY KEY,
-pw VARCHAR(41) NOT NULL);
-INSERT INTO t1 (name, pw)
-VALUES ('tom', PASSWORD('my_pw'));
-SET @pass='my_pw';
-SET @wrong='incorrect';
-select * from t1;
-name pw
-tom *F305E8EC27734F687F2EB6EC03CF0F7AF27C18E1
-select length(PASSWORD(@pass));
-length(PASSWORD(@pass))
-41
-SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@pass);
-name
-tom
-SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@wrong);
-name
-SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@undefined);
-name
-select (SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@pass));
-(SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@pass))
-tom
-select (SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@wrong));
-(SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@wrong))
-NULL
-select (SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@undefined));
-(SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@undefined))
-NULL
-drop table t1;
-End of 10.0 tests
-set join_cache_level=default;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 2
-set @@optimizer_switch=@save_optimizer_switch_jcl6;
-set @optimizer_switch_for_select_test=NULL;
-set @join_cache_level_for_select_test=NULL;
diff --git a/mysql-test/r/select_pkeycache.result b/mysql-test/r/select_pkeycache.result
deleted file mode 100644
index 9b6a570717b..00000000000
--- a/mysql-test/r/select_pkeycache.result
+++ /dev/null
@@ -1,5550 +0,0 @@
-drop table if exists t1,t2,t3,t4,t11;
-drop table if exists t1_1,t1_2,t9_1,t9_2,t1aa,t2aa;
-drop view if exists v1;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch=ifnull(@optimizer_switch_for_select_test,'outer_join_with_cache=off');
-set join_cache_level=1;
-CREATE TABLE t1 (
-Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
-Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
-);
-INSERT INTO t1 VALUES (9410,9412);
-select period from t1;
-period
-9410
-select * from t1;
-Period Varor_period
-9410 9412
-select t1.* from t1;
-Period Varor_period
-9410 9412
-CREATE TABLE t2 (
-auto int not null auto_increment,
-fld1 int(6) unsigned zerofill DEFAULT '000000' NOT NULL,
-companynr tinyint(2) unsigned zerofill DEFAULT '00' NOT NULL,
-fld3 char(30) DEFAULT '' NOT NULL,
-fld4 char(35) DEFAULT '' NOT NULL,
-fld5 char(35) DEFAULT '' NOT NULL,
-fld6 char(4) DEFAULT '' NOT NULL,
-UNIQUE fld1 (fld1),
-KEY fld3 (fld3),
-PRIMARY KEY (auto)
-);
-select t2.fld3 from t2 where companynr = 58 and fld3 like "%imaginable%";
-fld3
-imaginable
-select fld3 from t2 where fld3 like "%cultivation" ;
-fld3
-cultivation
-select t2.fld3,companynr from t2 where companynr = 57+1 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3,companynr from t2 where companynr = 58 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3 from t2 order by fld3 desc limit 10;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select fld3 from t2 order by fld3 desc limit 5;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-select fld3 from t2 order by fld3 desc limit 5,5;
-fld3
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select t2.fld3 from t2 where fld3 = 'honeysuckle';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'hon_ysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle%';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'h%le';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle_';
-fld3
-select t2.fld3 from t2 where fld3 LIKE 'don_t_find_me_please%';
-fld3
-explain select t2.fld3 from t2 where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld1) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3,not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-explain select fld3 from t2 use index (not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-fld3
-honeysuckle
-honoring
-explain select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld3 fld3 30 NULL 2 Using where; Using index
-select fld1,fld3 from t2 where fld3="Colombo" or fld3 = "nondecreasing" order by fld3;
-fld1 fld3
-148504 Colombo
-068305 Colombo
-000000 nondecreasing
-select fld1,fld3 from t2 where companynr = 37 and fld3 = 'appendixes';
-fld1 fld3
-232605 appendixes
-1232605 appendixes
-1232606 appendixes
-1232607 appendixes
-1232608 appendixes
-1232609 appendixes
-select fld1 from t2 where fld1=250501 or fld1="250502";
-fld1
-250501
-250502
-explain select fld1 from t2 where fld1=250501 or fld1="250502";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 2 Using where; Using index
-select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-fld1
-250501
-250502
-250505
-250601
-explain select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 4 Using where; Using index
-select fld1,fld3 from t2 where companynr = 37 and fld3 like 'f%';
-fld1 fld3
-012001 flanking
-013602 foldout
-013606 fingerings
-018007 fanatic
-018017 featherweight
-018054 fetters
-018103 flint
-018104 flopping
-036002 funereal
-038017 fetched
-038205 firearm
-058004 Fenton
-088303 feminine
-186002 freakish
-188007 flurried
-188505 fitting
-198006 furthermore
-202301 Fitzpatrick
-208101 fiftieth
-208113 freest
-218008 finishers
-218022 feed
-218401 faithful
-226205 foothill
-226209 furnishings
-228306 forthcoming
-228311 fated
-231315 freezes
-232102 forgivably
-238007 filial
-238008 fixedly
-select fld3 from t2 where fld3 like "L%" and fld3 = "ok";
-fld3
-select fld3 from t2 where (fld3 like "C%" and fld3 = "Chantilly");
-fld3
-Chantilly
-select fld1,fld3 from t2 where fld1 like "25050%";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select fld1,fld3 from t2 where fld1 like "25050_";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select distinct companynr from t2;
-companynr
-00
-37
-36
-50
-58
-29
-40
-53
-65
-41
-34
-68
-select distinct companynr from t2 order by companynr;
-companynr
-00
-29
-34
-36
-37
-40
-41
-50
-53
-58
-65
-68
-select distinct companynr from t2 order by companynr desc;
-companynr
-68
-65
-58
-53
-50
-41
-40
-37
-36
-34
-29
-00
-select distinct t2.fld3,period from t2,t1 where companynr=37 and fld3 like "O%";
-fld3 period
-obliterates 9410
-offload 9410
-opaquely 9410
-organizer 9410
-overestimating 9410
-overlay 9410
-select distinct fld3 from t2 where companynr = 34 order by fld3;
-fld3
-absentee
-accessed
-ahead
-alphabetic
-Asiaticizations
-attitude
-aye
-bankruptcies
-belays
-Blythe
-bomb
-boulevard
-bulldozes
-cannot
-caressing
-charcoal
-checksumming
-chess
-clubroom
-colorful
-cosy
-creator
-crying
-Darius
-diffusing
-duality
-Eiffel
-Epiphany
-Ernestine
-explorers
-exterminated
-famine
-forked
-Gershwins
-heaving
-Hodges
-Iraqis
-Italianization
-Lagos
-landslide
-libretto
-Majorca
-mastering
-narrowed
-occurred
-offerers
-Palestine
-Peruvianizes
-pharmaceutic
-poisoning
-population
-Pygmalion
-rats
-realest
-recording
-regimented
-retransmitting
-reviver
-rouses
-scars
-sicker
-sleepwalk
-stopped
-sugars
-translatable
-uncles
-unexpected
-uprisings
-versatility
-vest
-select distinct fld3 from t2 limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct fld3 from t2 having fld3 like "A%" limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%";
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-Adl
-adm
-Ado
-ads
-adv
-aer
-aff
-afi
-afl
-afo
-agi
-ahe
-aim
-air
-Ald
-alg
-ali
-all
-alp
-alr
-ama
-ame
-amm
-ana
-and
-ane
-Ang
-ani
-Ann
-Ant
-api
-app
-aqu
-Ara
-arc
-Arm
-arr
-Art
-Asi
-ask
-asp
-ass
-ast
-att
-aud
-Aug
-aut
-ave
-avo
-awe
-aye
-Azt
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" order by a limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%" limit 10;
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-create table t3 (
-period int not null,
-name char(32) not null,
-companynr int not null,
-price double(11,0),
-price2 double(11,0),
-key (period),
-key (name)
-);
-create temporary table tmp engine = myisam select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-alter table t3 add t2nr int not null auto_increment primary key first;
-drop table tmp;
-SET BIG_TABLES=1;
-select distinct concat(fld3," ",fld3) as namn from t2,t3 where t2.fld1=t3.t2nr order by namn limit 10;
-namn
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-SET BIG_TABLES=0;
-select distinct concat(fld3," ",fld3) from t2,t3 where t2.fld1=t3.t2nr order by fld3 limit 10;
-concat(fld3," ",fld3)
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-select distinct fld5 from t2 limit 10;
-fld5
-neat
-Steinberg
-jarring
-tinily
-balled
-persist
-attainments
-fanatic
-measures
-rightfulness
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=1;
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=0;
-select distinct fld3,repeat("a",length(fld3)),count(*) from t2 group by companynr,fld3 limit 100,10;
-fld3 repeat("a",length(fld3)) count(*)
-circus aaaaaa 1
-cited aaaaa 1
-Colombo aaaaaaa 1
-congresswoman aaaaaaaaaaaaa 1
-contrition aaaaaaaaaa 1
-corny aaaaa 1
-cultivation aaaaaaaaaaa 1
-definiteness aaaaaaaaaaaa 1
-demultiplex aaaaaaaaaaa 1
-disappointing aaaaaaaaaaaaa 1
-select distinct companynr,rtrim(space(512+companynr)) from t3 order by 1,2;
-companynr rtrim(space(512+companynr))
-37
-78
-101
-154
-311
-447
-512
-select distinct fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by fld3;
-fld3
-explain select t3.t2nr,fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by t3.t2nr,fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL fld1 NULL NULL NULL 1199 Using where; Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.fld1 1 Using where; Using index
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL period NULL NULL NULL 41810 Using filesort
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index period period 4 NULL 1
-1 SIMPLE t1 ref period period 4 test.t3.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t1.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index period period 4 NULL 1
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-select period from t1;
-period
-9410
-select period from t1 where period=1900;
-period
-select fld3,period from t1,t2 where fld1 = 011401 order by period;
-fld3 period
-breaking 9410
-select fld3,period from t2,t3 where t2.fld1 = 011401 and t2.fld1=t3.t2nr and t3.period=1001;
-fld3 period
-breaking 1001
-explain select fld3,period from t2,t3 where t2.fld1 = 011401 and t3.t2nr=t2.fld1 and 1001 = t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const fld1 fld1 4 const 1
-1 SIMPLE t3 const PRIMARY,period PRIMARY 4 const 1
-select fld3,period from t2,t1 where companynr*10 = 37*10;
-fld3 period
-breaking 9410
-Romans 9410
-intercepted 9410
-bewilderingly 9410
-astound 9410
-admonishing 9410
-sumac 9410
-flanking 9410
-combed 9410
-subjective 9410
-scatterbrain 9410
-Eulerian 9410
-Kane 9410
-overlay 9410
-perturb 9410
-goblins 9410
-annihilates 9410
-Wotan 9410
-snatching 9410
-concludes 9410
-laterally 9410
-yelped 9410
-grazing 9410
-Baird 9410
-celery 9410
-misunderstander 9410
-handgun 9410
-foldout 9410
-mystic 9410
-succumbed 9410
-Nabisco 9410
-fingerings 9410
-aging 9410
-afield 9410
-ammonium 9410
-boat 9410
-intelligibility 9410
-Augustine 9410
-teethe 9410
-dreaded 9410
-scholastics 9410
-audiology 9410
-wallet 9410
-parters 9410
-eschew 9410
-quitter 9410
-neat 9410
-Steinberg 9410
-jarring 9410
-tinily 9410
-balled 9410
-persist 9410
-attainments 9410
-fanatic 9410
-measures 9410
-rightfulness 9410
-capably 9410
-impulsive 9410
-starlet 9410
-terminators 9410
-untying 9410
-announces 9410
-featherweight 9410
-pessimist 9410
-daughter 9410
-decliner 9410
-lawgiver 9410
-stated 9410
-readable 9410
-attrition 9410
-cascade 9410
-motors 9410
-interrogate 9410
-pests 9410
-stairway 9410
-dopers 9410
-testicle 9410
-Parsifal 9410
-leavings 9410
-postulation 9410
-squeaking 9410
-contrasted 9410
-leftover 9410
-whiteners 9410
-erases 9410
-Punjab 9410
-Merritt 9410
-Quixotism 9410
-sweetish 9410
-dogging 9410
-scornfully 9410
-bellow 9410
-bills 9410
-cupboard 9410
-sureties 9410
-puddings 9410
-fetters 9410
-bivalves 9410
-incurring 9410
-Adolph 9410
-pithed 9410
-Miles 9410
-trimmings 9410
-tragedies 9410
-skulking 9410
-flint 9410
-flopping 9410
-relaxing 9410
-offload 9410
-suites 9410
-lists 9410
-animized 9410
-multilayer 9410
-standardizes 9410
-Judas 9410
-vacuuming 9410
-dentally 9410
-humanness 9410
-inch 9410
-Weissmuller 9410
-irresponsibly 9410
-luckily 9410
-culled 9410
-medical 9410
-bloodbath 9410
-subschema 9410
-animals 9410
-Micronesia 9410
-repetitions 9410
-Antares 9410
-ventilate 9410
-pityingly 9410
-interdependent 9410
-Graves 9410
-neonatal 9410
-chafe 9410
-honoring 9410
-realtor 9410
-elite 9410
-funereal 9410
-abrogating 9410
-sorters 9410
-Conley 9410
-lectured 9410
-Abraham 9410
-Hawaii 9410
-cage 9410
-hushes 9410
-Simla 9410
-reporters 9410
-Dutchman 9410
-descendants 9410
-groupings 9410
-dissociate 9410
-coexist 9410
-Beebe 9410
-Taoism 9410
-Connally 9410
-fetched 9410
-checkpoints 9410
-rusting 9410
-galling 9410
-obliterates 9410
-traitor 9410
-resumes 9410
-analyzable 9410
-terminator 9410
-gritty 9410
-firearm 9410
-minima 9410
-Selfridge 9410
-disable 9410
-witchcraft 9410
-betroth 9410
-Manhattanize 9410
-imprint 9410
-peeked 9410
-swelling 9410
-interrelationships 9410
-riser 9410
-Gandhian 9410
-peacock 9410
-bee 9410
-kanji 9410
-dental 9410
-scarf 9410
-chasm 9410
-insolence 9410
-syndicate 9410
-alike 9410
-imperial 9410
-convulsion 9410
-railway 9410
-validate 9410
-normalizes 9410
-comprehensive 9410
-chewing 9410
-denizen 9410
-schemer 9410
-chronicle 9410
-Kline 9410
-Anatole 9410
-partridges 9410
-brunch 9410
-recruited 9410
-dimensions 9410
-Chicana 9410
-announced 9410
-praised 9410
-employing 9410
-linear 9410
-quagmire 9410
-western 9410
-relishing 9410
-serving 9410
-scheduling 9410
-lore 9410
-eventful 9410
-arteriole 9410
-disentangle 9410
-cured 9410
-Fenton 9410
-avoidable 9410
-drains 9410
-detectably 9410
-husky 9410
-impelling 9410
-undoes 9410
-evened 9410
-squeezes 9410
-destroyer 9410
-rudeness 9410
-beaner 9410
-boorish 9410
-Everhart 9410
-encompass 9410
-mushrooms 9410
-Alison 9410
-externally 9410
-pellagra 9410
-cult 9410
-creek 9410
-Huffman 9410
-Majorca 9410
-governing 9410
-gadfly 9410
-reassigned 9410
-intentness 9410
-craziness 9410
-psychic 9410
-squabbled 9410
-burlesque 9410
-capped 9410
-extracted 9410
-DiMaggio 9410
-exclamation 9410
-subdirectory 9410
-Gothicism 9410
-feminine 9410
-metaphysically 9410
-sanding 9410
-Miltonism 9410
-freakish 9410
-index 9410
-straight 9410
-flurried 9410
-denotative 9410
-coming 9410
-commencements 9410
-gentleman 9410
-gifted 9410
-Shanghais 9410
-sportswriting 9410
-sloping 9410
-navies 9410
-leaflet 9410
-shooter 9410
-Joplin 9410
-babies 9410
-assails 9410
-admiring 9410
-swaying 9410
-Goldstine 9410
-fitting 9410
-Norwalk 9410
-analogy 9410
-deludes 9410
-cokes 9410
-Clayton 9410
-exhausts 9410
-causality 9410
-sating 9410
-icon 9410
-throttles 9410
-communicants 9410
-dehydrate 9410
-priceless 9410
-publicly 9410
-incidentals 9410
-commonplace 9410
-mumbles 9410
-furthermore 9410
-cautioned 9410
-parametrized 9410
-registration 9410
-sadly 9410
-positioning 9410
-babysitting 9410
-eternal 9410
-hoarder 9410
-congregates 9410
-rains 9410
-workers 9410
-sags 9410
-unplug 9410
-garage 9410
-boulder 9410
-specifics 9410
-Teresa 9410
-Winsett 9410
-convenient 9410
-buckboards 9410
-amenities 9410
-resplendent 9410
-sews 9410
-participated 9410
-Simon 9410
-certificates 9410
-Fitzpatrick 9410
-Evanston 9410
-misted 9410
-textures 9410
-save 9410
-count 9410
-rightful 9410
-chaperone 9410
-Lizzy 9410
-clenched 9410
-effortlessly 9410
-accessed 9410
-beaters 9410
-Hornblower 9410
-vests 9410
-indulgences 9410
-infallibly 9410
-unwilling 9410
-excrete 9410
-spools 9410
-crunches 9410
-overestimating 9410
-ineffective 9410
-humiliation 9410
-sophomore 9410
-star 9410
-rifles 9410
-dialysis 9410
-arriving 9410
-indulge 9410
-clockers 9410
-languages 9410
-Antarctica 9410
-percentage 9410
-ceiling 9410
-specification 9410
-regimented 9410
-ciphers 9410
-pictures 9410
-serpents 9410
-allot 9410
-realized 9410
-mayoral 9410
-opaquely 9410
-hostess 9410
-fiftieth 9410
-incorrectly 9410
-decomposition 9410
-stranglings 9410
-mixture 9410
-electroencephalography 9410
-similarities 9410
-charges 9410
-freest 9410
-Greenberg 9410
-tinting 9410
-expelled 9410
-warm 9410
-smoothed 9410
-deductions 9410
-Romano 9410
-bitterroot 9410
-corset 9410
-securing 9410
-environing 9410
-cute 9410
-Crays 9410
-heiress 9410
-inform 9410
-avenge 9410
-universals 9410
-Kinsey 9410
-ravines 9410
-bestseller 9410
-equilibrium 9410
-extents 9410
-relatively 9410
-pressure 9410
-critiques 9410
-befouled 9410
-rightfully 9410
-mechanizing 9410
-Latinizes 9410
-timesharing 9410
-Aden 9410
-embassies 9410
-males 9410
-shapelessly 9410
-mastering 9410
-Newtonian 9410
-finishers 9410
-abates 9410
-teem 9410
-kiting 9410
-stodgy 9410
-feed 9410
-guitars 9410
-airships 9410
-store 9410
-denounces 9410
-Pyle 9410
-Saxony 9410
-serializations 9410
-Peruvian 9410
-taxonomically 9410
-kingdom 9410
-stint 9410
-Sault 9410
-faithful 9410
-Ganymede 9410
-tidiness 9410
-gainful 9410
-contrary 9410
-Tipperary 9410
-tropics 9410
-theorizers 9410
-renew 9410
-already 9410
-terminal 9410
-Hegelian 9410
-hypothesizer 9410
-warningly 9410
-journalizing 9410
-nested 9410
-Lars 9410
-saplings 9410
-foothill 9410
-labeled 9410
-imperiously 9410
-reporters 9410
-furnishings 9410
-precipitable 9410
-discounts 9410
-excises 9410
-Stalin 9410
-despot 9410
-ripeness 9410
-Arabia 9410
-unruly 9410
-mournfulness 9410
-boom 9410
-slaughter 9410
-Sabine 9410
-handy 9410
-rural 9410
-organizer 9410
-shipyard 9410
-civics 9410
-inaccuracy 9410
-rules 9410
-juveniles 9410
-comprised 9410
-investigations 9410
-stabilizes 9410
-seminaries 9410
-Hunter 9410
-sporty 9410
-test 9410
-weasels 9410
-CERN 9410
-tempering 9410
-afore 9410
-Galatean 9410
-techniques 9410
-error 9410
-veranda 9410
-severely 9410
-Cassites 9410
-forthcoming 9410
-guides 9410
-vanish 9410
-lied 9410
-sawtooth 9410
-fated 9410
-gradually 9410
-widens 9410
-preclude 9410
-evenhandedly 9410
-percentage 9410
-disobedience 9410
-humility 9410
-gleaning 9410
-petted 9410
-bloater 9410
-minion 9410
-marginal 9410
-apiary 9410
-measures 9410
-precaution 9410
-repelled 9410
-primary 9410
-coverings 9410
-Artemia 9410
-navigate 9410
-spatial 9410
-Gurkha 9410
-meanwhile 9410
-Melinda 9410
-Butterfield 9410
-Aldrich 9410
-previewing 9410
-glut 9410
-unaffected 9410
-inmate 9410
-mineral 9410
-impending 9410
-meditation 9410
-ideas 9410
-miniaturizes 9410
-lewdly 9410
-title 9410
-youthfulness 9410
-creak 9410
-Chippewa 9410
-clamored 9410
-freezes 9410
-forgivably 9410
-reduce 9410
-McGovern 9410
-Nazis 9410
-epistle 9410
-socializes 9410
-conceptions 9410
-Kevin 9410
-uncovering 9410
-chews 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-raining 9410
-infest 9410
-compartment 9410
-minting 9410
-ducks 9410
-roped 9410
-waltz 9410
-Lillian 9410
-repressions 9410
-chillingly 9410
-noncritical 9410
-lithograph 9410
-spongers 9410
-parenthood 9410
-posed 9410
-instruments 9410
-filial 9410
-fixedly 9410
-relives 9410
-Pandora 9410
-watering 9410
-ungrateful 9410
-secures 9410
-poison 9410
-dusted 9410
-encompasses 9410
-presentation 9410
-Kantian 9410
-select fld3,period,price,price2 from t2,t3 where t2.fld1=t3.t2nr and period >= 1001 and period <= 1002 and t2.companynr = 37 order by fld3,period, price;
-fld3 period price price2
-admonishing 1002 28357832 8723648
-analyzable 1002 28357832 8723648
-annihilates 1001 5987435 234724
-Antares 1002 28357832 8723648
-astound 1001 5987435 234724
-audiology 1001 5987435 234724
-Augustine 1002 28357832 8723648
-Baird 1002 28357832 8723648
-bewilderingly 1001 5987435 234724
-breaking 1001 5987435 234724
-Conley 1001 5987435 234724
-dentally 1002 28357832 8723648
-dissociate 1002 28357832 8723648
-elite 1001 5987435 234724
-eschew 1001 5987435 234724
-Eulerian 1001 5987435 234724
-flanking 1001 5987435 234724
-foldout 1002 28357832 8723648
-funereal 1002 28357832 8723648
-galling 1002 28357832 8723648
-Graves 1001 5987435 234724
-grazing 1001 5987435 234724
-groupings 1001 5987435 234724
-handgun 1001 5987435 234724
-humility 1002 28357832 8723648
-impulsive 1002 28357832 8723648
-inch 1001 5987435 234724
-intelligibility 1001 5987435 234724
-jarring 1001 5987435 234724
-lawgiver 1001 5987435 234724
-lectured 1002 28357832 8723648
-Merritt 1002 28357832 8723648
-neonatal 1001 5987435 234724
-offload 1002 28357832 8723648
-parters 1002 28357832 8723648
-pityingly 1002 28357832 8723648
-puddings 1002 28357832 8723648
-Punjab 1001 5987435 234724
-quitter 1002 28357832 8723648
-realtor 1001 5987435 234724
-relaxing 1001 5987435 234724
-repetitions 1001 5987435 234724
-resumes 1001 5987435 234724
-Romans 1002 28357832 8723648
-rusting 1001 5987435 234724
-scholastics 1001 5987435 234724
-skulking 1002 28357832 8723648
-stated 1002 28357832 8723648
-suites 1002 28357832 8723648
-sureties 1001 5987435 234724
-testicle 1002 28357832 8723648
-tinily 1002 28357832 8723648
-tragedies 1001 5987435 234724
-trimmings 1001 5987435 234724
-vacuuming 1001 5987435 234724
-ventilate 1001 5987435 234724
-wallet 1001 5987435 234724
-Weissmuller 1002 28357832 8723648
-Wotan 1002 28357832 8723648
-select t2.fld1,fld3,period,price,price2 from t2,t3 where t2.fld1>= 18201 and t2.fld1 <= 18811 and t2.fld1=t3.t2nr and period = 1001 and t2.companynr = 37;
-fld1 fld3 period price price2
-018201 relaxing 1001 5987435 234724
-018601 vacuuming 1001 5987435 234724
-018801 inch 1001 5987435 234724
-018811 repetitions 1001 5987435 234724
-create table t4 (
-companynr tinyint(2) unsigned zerofill NOT NULL default '00',
-companyname char(30) NOT NULL default '',
-PRIMARY KEY (companynr),
-UNIQUE KEY companyname(companyname)
-) ENGINE=MyISAM MAX_ROWS=50 PACK_KEYS=1 COMMENT='companynames';
-select STRAIGHT_JOIN t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select SQL_SMALL_RESULT t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select * from t1,t1 t12;
-Period Varor_period Period Varor_period
-9410 9412 9410 9412
-select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505;
-fld1 fld1
-250501 250501
-250502 250501
-250503 250501
-250504 250501
-250505 250501
-250501 250502
-250502 250502
-250503 250502
-250504 250502
-250505 250502
-250501 250503
-250502 250503
-250503 250503
-250504 250503
-250505 250503
-250501 250504
-250502 250504
-250503 250504
-250504 250504
-250505 250504
-250501 250505
-250502 250505
-250503 250505
-250504 250505
-250505 250505
-insert into t2 (fld1, companynr) values (999999,99);
-select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-companynr companyname
-99 NULL
-select count(*) from t2 left join t4 using (companynr) where t4.companynr is not null;
-count(*)
-1199
-explain select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1 Using where; Not exists
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200 Using where; Not exists
-select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-companynr companyname
-select count(*) from t2 left join t4 using (companynr) where companynr is not null;
-count(*)
-1200
-explain select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-delete from t2 where fld1=999999;
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 and t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 and companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0 or t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where ifnull(t2.companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0 or companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where ifnull(companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-companynr companynr
-37 36
-41 40
-explain select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 index NULL PRIMARY 1 NULL 12 Using index; Using temporary
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where; Using join buffer (flat, BNL join)
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where t2.fld1 = 38208 and t2.fld1=t3.t2nr and period = 1008 or t2.fld1 = 38008 and t2.fld1 =t3.t2nr and period = 1008;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t2.fld1 = 38208 or t2.fld1 = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t3.t2nr = 38208 or t3.t2nr = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select period from t1 where (((period > 0) or period < 10000 or (period = 1900)) and (period=1900 and period <= 1901) or (period=1903 and (period=1903)) and period>=1902) or ((period=1904 or period=1905) or (period=1906 or period>1907)) or (period=1908 and period = 1909);
-period
-9410
-select period from t1 where ((period > 0 and period < 1) or (((period > 0 and period < 100) and (period > 10)) or (period > 10)) or (period > 0 and (period > 5 or period > 6)));
-period
-9410
-select a.fld1 from t2 as a,t2 b where ((a.fld1 = 250501 and a.fld1=b.fld1) or a.fld1=250502 or a.fld1=250503 or (a.fld1=250505 and a.fld1<=b.fld1 and b.fld1>=a.fld1)) and a.fld1=b.fld1;
-fld1
-250501
-250502
-250503
-250505
-select fld1 from t2 where fld1 in (250502,98005,98006,250503,250605,250606) and fld1 >=250502 and fld1 not in (250605,250606);
-fld1
-250502
-250503
-select fld1 from t2 where fld1 between 250502 and 250504;
-fld1
-250502
-250503
-250504
-select fld3 from t2 where (((fld3 like "_%L%" ) or (fld3 like "%ok%")) and ( fld3 like "L%" or fld3 like "G%")) and fld3 like "L%" ;
-fld3
-label
-labeled
-labeled
-landslide
-laterally
-leaflet
-lewdly
-Lillian
-luckily
-select count(*) from t1;
-count(*)
-1
-select companynr,count(*),sum(fld1) from t2 group by companynr;
-companynr count(*) sum(fld1)
-00 82 10355753
-29 95 14473298
-34 70 17788966
-36 215 22786296
-37 588 83602098
-40 37 6618386
-41 52 12816335
-50 11 1595438
-53 4 793210
-58 23 2254293
-65 10 2284055
-68 12 3097288
-select companynr,count(*) from t2 group by companynr order by companynr desc limit 5;
-companynr count(*)
-68 12
-65 10
-58 23
-53 4
-50 11
-select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-explain extended select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 100.00 Using where
-Warnings:
-Note 1003 select count(0) AS `count(*)`,min(`test`.`t2`.`fld4`) AS `min(fld4)`,max(`test`.`t2`.`fld4`) AS `max(fld4)`,sum(`test`.`t2`.`fld1`) AS `sum(fld1)`,avg(`test`.`t2`.`fld1`) AS `avg(fld1)`,std(`test`.`t2`.`fld1`) AS `std(fld1)`,variance(`test`.`t2`.`fld1`) AS `variance(fld1)` from `test`.`t2` where `test`.`t2`.`companynr` = 34 and `test`.`t2`.`fld4` <> ''
-select companynr,count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 group by companynr limit 3;
-companynr count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-00 82 Anthony windmills 10355753 126289.6707 115550.9757 13352027981.7087
-29 95 abut wetness 14473298 152350.5053 8368.5480 70032594.9026
-34 70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-select companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select /*! SQL_SMALL_RESULT */ companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select companynr,count(price),sum(price),min(price),max(price),avg(price) from t3 group by companynr ;
-companynr count(price) sum(price) min(price) max(price) avg(price)
-37 12543 309394878010 5987435 39654943 24666736.6667
-78 8362 414611089292 726498 98439034 49582766.0000
-101 4181 3489454238 834598 834598 834598.0000
-154 4181 4112197254950 983543950 983543950 983543950.0000
-311 4181 979599938 234298 234298 234298.0000
-447 4181 9929180954 2374834 2374834 2374834.0000
-512 4181 3288532102 786542 786542 786542.0000
-select distinct mod(companynr,10) from t4 group by companynr;
-mod(companynr,10)
-0
-9
-4
-6
-7
-1
-3
-8
-5
-select distinct 1 from t4 group by companynr;
-1
-1
-select count(distinct fld1) from t2;
-count(distinct fld1)
-1199
-select companynr,count(distinct fld1) from t2 group by companynr;
-companynr count(distinct fld1)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(*) from t2 group by companynr;
-companynr count(*)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,1000))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,1000)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,200))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,200)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct floor(fld1/100)) from t2 group by companynr;
-companynr count(distinct floor(fld1/100))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select companynr,count(distinct concat(repeat(65,1000),floor(fld1/100))) from t2 group by companynr;
-companynr count(distinct concat(repeat(65,1000),floor(fld1/100)))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select sum(fld1),fld3 from t2 where fld3="Romans" group by fld1 limit 10;
-sum(fld1) fld3
-11402 Romans
-select name,count(*) from t3 where name='cloakroom' group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name='cloakroom' and price>10 group by name;
-name count(*)
-cloakroom 4181
-select count(*) from t3 where name='cloakroom' and price2=823742;
-count(*)
-4181
-select name,count(*) from t3 where name='cloakroom' and price2=823742 group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name >= "extramarital" and price <= 39654943 group by name;
-name count(*)
-extramarital 4181
-gazer 4181
-gems 4181
-Iranizes 4181
-spates 4181
-tucked 4181
-violinist 4181
-select t2.fld3,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld3 count(*)
-spates 4181
-select companynr|0,companyname from t4 group by 1;
-companynr|0 companyname
-0 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by t2.companynr order by companyname;
-companynr companyname count(*)
-29 company 1 95
-68 company 10 12
-50 company 11 11
-34 company 2 70
-36 company 3 215
-37 company 4 588
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-00 Unknown 82
-select t2.fld1,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld1 count(*)
-158402 4181
-select sum(Period)/count(*) from t1;
-sum(Period)/count(*)
-9410.0000
-select companynr,count(price) as "count",sum(price) as "sum" ,abs(sum(price)/count(price)-avg(price)) as "diff",(0+count(price))*companynr as func from t3 group by companynr;
-companynr count sum diff func
-37 12543 309394878010 0.0000 464091
-78 8362 414611089292 0.0000 652236
-101 4181 3489454238 0.0000 422281
-154 4181 4112197254950 0.0000 643874
-311 4181 979599938 0.0000 1300291
-447 4181 9929180954 0.0000 1868907
-512 4181 3288532102 0.0000 2140672
-select companynr,sum(price)/count(price) as avg from t3 group by companynr having avg > 70000000 order by avg;
-companynr avg
-154 983543950.0000
-select companynr,count(*) from t2 group by companynr order by 2 desc;
-companynr count(*)
-37 588
-36 215
-29 95
-00 82
-34 70
-41 52
-40 37
-58 23
-68 12
-50 11
-65 10
-53 4
-select companynr,count(*) from t2 where companynr > 40 group by companynr order by 2 desc;
-companynr count(*)
-41 52
-58 23
-68 12
-50 11
-65 10
-53 4
-select t2.fld4,t2.fld1,count(price),sum(price),min(price),max(price),avg(price) from t3,t2 where t3.companynr = 37 and t2.fld1 = t3.t2nr group by fld1,t2.fld4;
-fld4 fld1 count(price) sum(price) min(price) max(price) avg(price)
-teethe 000001 1 5987435 5987435 5987435 5987435.0000
-dreaded 011401 1 5987435 5987435 5987435 5987435.0000
-scholastics 011402 1 28357832 28357832 28357832 28357832.0000
-audiology 011403 1 39654943 39654943 39654943 39654943.0000
-wallet 011501 1 5987435 5987435 5987435 5987435.0000
-parters 011701 1 5987435 5987435 5987435 5987435.0000
-eschew 011702 1 28357832 28357832 28357832 28357832.0000
-quitter 011703 1 39654943 39654943 39654943 39654943.0000
-neat 012001 1 5987435 5987435 5987435 5987435.0000
-Steinberg 012003 1 39654943 39654943 39654943 39654943.0000
-balled 012301 1 5987435 5987435 5987435 5987435.0000
-persist 012302 1 28357832 28357832 28357832 28357832.0000
-attainments 012303 1 39654943 39654943 39654943 39654943.0000
-capably 012501 1 5987435 5987435 5987435 5987435.0000
-impulsive 012602 1 28357832 28357832 28357832 28357832.0000
-starlet 012603 1 39654943 39654943 39654943 39654943.0000
-featherweight 012701 1 5987435 5987435 5987435 5987435.0000
-pessimist 012702 1 28357832 28357832 28357832 28357832.0000
-daughter 012703 1 39654943 39654943 39654943 39654943.0000
-lawgiver 013601 1 5987435 5987435 5987435 5987435.0000
-stated 013602 1 28357832 28357832 28357832 28357832.0000
-readable 013603 1 39654943 39654943 39654943 39654943.0000
-testicle 013801 1 5987435 5987435 5987435 5987435.0000
-Parsifal 013802 1 28357832 28357832 28357832 28357832.0000
-leavings 013803 1 39654943 39654943 39654943 39654943.0000
-squeaking 013901 1 5987435 5987435 5987435 5987435.0000
-contrasted 016001 1 5987435 5987435 5987435 5987435.0000
-leftover 016201 1 5987435 5987435 5987435 5987435.0000
-whiteners 016202 1 28357832 28357832 28357832 28357832.0000
-erases 016301 1 5987435 5987435 5987435 5987435.0000
-Punjab 016302 1 28357832 28357832 28357832 28357832.0000
-Merritt 016303 1 39654943 39654943 39654943 39654943.0000
-sweetish 018001 1 5987435 5987435 5987435 5987435.0000
-dogging 018002 1 28357832 28357832 28357832 28357832.0000
-scornfully 018003 1 39654943 39654943 39654943 39654943.0000
-fetters 018012 1 28357832 28357832 28357832 28357832.0000
-bivalves 018013 1 39654943 39654943 39654943 39654943.0000
-skulking 018021 1 5987435 5987435 5987435 5987435.0000
-flint 018022 1 28357832 28357832 28357832 28357832.0000
-flopping 018023 1 39654943 39654943 39654943 39654943.0000
-Judas 018032 1 28357832 28357832 28357832 28357832.0000
-vacuuming 018033 1 39654943 39654943 39654943 39654943.0000
-medical 018041 1 5987435 5987435 5987435 5987435.0000
-bloodbath 018042 1 28357832 28357832 28357832 28357832.0000
-subschema 018043 1 39654943 39654943 39654943 39654943.0000
-interdependent 018051 1 5987435 5987435 5987435 5987435.0000
-Graves 018052 1 28357832 28357832 28357832 28357832.0000
-neonatal 018053 1 39654943 39654943 39654943 39654943.0000
-sorters 018061 1 5987435 5987435 5987435 5987435.0000
-epistle 018062 1 28357832 28357832 28357832 28357832.0000
-Conley 018101 1 5987435 5987435 5987435 5987435.0000
-lectured 018102 1 28357832 28357832 28357832 28357832.0000
-Abraham 018103 1 39654943 39654943 39654943 39654943.0000
-cage 018201 1 5987435 5987435 5987435 5987435.0000
-hushes 018202 1 28357832 28357832 28357832 28357832.0000
-Simla 018402 1 28357832 28357832 28357832 28357832.0000
-reporters 018403 1 39654943 39654943 39654943 39654943.0000
-coexist 018601 1 5987435 5987435 5987435 5987435.0000
-Beebe 018602 1 28357832 28357832 28357832 28357832.0000
-Taoism 018603 1 39654943 39654943 39654943 39654943.0000
-Connally 018801 1 5987435 5987435 5987435 5987435.0000
-fetched 018802 1 28357832 28357832 28357832 28357832.0000
-checkpoints 018803 1 39654943 39654943 39654943 39654943.0000
-gritty 018811 1 5987435 5987435 5987435 5987435.0000
-firearm 018812 1 28357832 28357832 28357832 28357832.0000
-minima 019101 1 5987435 5987435 5987435 5987435.0000
-Selfridge 019102 1 28357832 28357832 28357832 28357832.0000
-disable 019103 1 39654943 39654943 39654943 39654943.0000
-witchcraft 019201 1 5987435 5987435 5987435 5987435.0000
-betroth 030501 1 5987435 5987435 5987435 5987435.0000
-Manhattanize 030502 1 28357832 28357832 28357832 28357832.0000
-imprint 030503 1 39654943 39654943 39654943 39654943.0000
-swelling 031901 1 5987435 5987435 5987435 5987435.0000
-interrelationships 036001 1 5987435 5987435 5987435 5987435.0000
-riser 036002 1 28357832 28357832 28357832 28357832.0000
-bee 038001 1 5987435 5987435 5987435 5987435.0000
-kanji 038002 1 28357832 28357832 28357832 28357832.0000
-dental 038003 1 39654943 39654943 39654943 39654943.0000
-railway 038011 1 5987435 5987435 5987435 5987435.0000
-validate 038012 1 28357832 28357832 28357832 28357832.0000
-normalizes 038013 1 39654943 39654943 39654943 39654943.0000
-Kline 038101 1 5987435 5987435 5987435 5987435.0000
-Anatole 038102 1 28357832 28357832 28357832 28357832.0000
-partridges 038103 1 39654943 39654943 39654943 39654943.0000
-recruited 038201 1 5987435 5987435 5987435 5987435.0000
-dimensions 038202 1 28357832 28357832 28357832 28357832.0000
-Chicana 038203 1 39654943 39654943 39654943 39654943.0000
-select t3.companynr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 group by companynr,fld3;
-companynr fld3 sum(price)
-512 boat 786542
-512 capably 786542
-512 cupboard 786542
-512 decliner 786542
-512 descendants 786542
-512 dopers 786542
-512 erases 786542
-512 Micronesia 786542
-512 Miles 786542
-512 skies 786542
-select t2.companynr,count(*),min(fld3),max(fld3),sum(price),avg(price) from t2,t3 where t3.companynr >= 30 and t3.companynr <= 58 and t3.t2nr = t2.fld1 and 1+1=2 group by t2.companynr;
-companynr count(*) min(fld3) max(fld3) sum(price) avg(price)
-00 1 Omaha Omaha 5987435 5987435.0000
-36 1 dubbed dubbed 28357832 28357832.0000
-37 83 Abraham Wotan 1908978016 22999735.1325
-50 2 scribbled tapestry 68012775 34006387.5000
-select t3.companynr+0,t3.t2nr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 37 group by 1,t3.t2nr,fld3,fld3,fld3,fld3,fld3 order by fld1;
-t3.companynr+0 t2nr fld3 sum(price)
-37 1 Omaha 5987435
-37 11401 breaking 5987435
-37 11402 Romans 28357832
-37 11403 intercepted 39654943
-37 11501 bewilderingly 5987435
-37 11701 astound 5987435
-37 11702 admonishing 28357832
-37 11703 sumac 39654943
-37 12001 flanking 5987435
-37 12003 combed 39654943
-37 12301 Eulerian 5987435
-37 12302 dubbed 28357832
-37 12303 Kane 39654943
-37 12501 annihilates 5987435
-37 12602 Wotan 28357832
-37 12603 snatching 39654943
-37 12701 grazing 5987435
-37 12702 Baird 28357832
-37 12703 celery 39654943
-37 13601 handgun 5987435
-37 13602 foldout 28357832
-37 13603 mystic 39654943
-37 13801 intelligibility 5987435
-37 13802 Augustine 28357832
-37 13803 teethe 39654943
-37 13901 scholastics 5987435
-37 16001 audiology 5987435
-37 16201 wallet 5987435
-37 16202 parters 28357832
-37 16301 eschew 5987435
-37 16302 quitter 28357832
-37 16303 neat 39654943
-37 18001 jarring 5987435
-37 18002 tinily 28357832
-37 18003 balled 39654943
-37 18012 impulsive 28357832
-37 18013 starlet 39654943
-37 18021 lawgiver 5987435
-37 18022 stated 28357832
-37 18023 readable 39654943
-37 18032 testicle 28357832
-37 18033 Parsifal 39654943
-37 18041 Punjab 5987435
-37 18042 Merritt 28357832
-37 18043 Quixotism 39654943
-37 18051 sureties 5987435
-37 18052 puddings 28357832
-37 18053 tapestry 39654943
-37 18061 trimmings 5987435
-37 18062 humility 28357832
-37 18101 tragedies 5987435
-37 18102 skulking 28357832
-37 18103 flint 39654943
-37 18201 relaxing 5987435
-37 18202 offload 28357832
-37 18402 suites 28357832
-37 18403 lists 39654943
-37 18601 vacuuming 5987435
-37 18602 dentally 28357832
-37 18603 humanness 39654943
-37 18801 inch 5987435
-37 18802 Weissmuller 28357832
-37 18803 irresponsibly 39654943
-37 18811 repetitions 5987435
-37 18812 Antares 28357832
-37 19101 ventilate 5987435
-37 19102 pityingly 28357832
-37 19103 interdependent 39654943
-37 19201 Graves 5987435
-37 30501 neonatal 5987435
-37 30502 scribbled 28357832
-37 30503 chafe 39654943
-37 31901 realtor 5987435
-37 36001 elite 5987435
-37 36002 funereal 28357832
-37 38001 Conley 5987435
-37 38002 lectured 28357832
-37 38003 Abraham 39654943
-37 38011 groupings 5987435
-37 38012 dissociate 28357832
-37 38013 coexist 39654943
-37 38101 rusting 5987435
-37 38102 galling 28357832
-37 38103 obliterates 39654943
-37 38201 resumes 5987435
-37 38202 analyzable 28357832
-37 38203 terminator 39654943
-select sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1= t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008;
-sum(price)
-234298
-select t2.fld1,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1 = t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008 or t3.t2nr = t2.fld1 and t2.fld1 = 38008 group by t2.fld1;
-fld1 sum(price)
-038008 234298
-explain select fld3 from t2 where 1>2 or 2>3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select fld3 from t2 where fld1=fld1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199
-select companynr,fld1 from t2 HAVING fld1=250501 or fld1=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,fld1 from t2 WHERE fld1>=250501 HAVING fld1<=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,count(*) as count,sum(fld1) as sum from t2 group by companynr having count > 40 and sum/count >= 120000;
-companynr count sum
-00 82 10355753
-29 95 14473298
-34 70 17788966
-37 588 83602098
-41 52 12816335
-select companynr from t2 group by companynr having count(*) > 40 and sum(fld1)/count(*) >= 120000 ;
-companynr
-00
-29
-34
-37
-41
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by companyname having t2.companynr >= 40;
-companynr companyname count(*)
-68 company 10 12
-50 company 11 11
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-select count(*) from t2;
-count(*)
-1199
-select count(*) from t2 where fld1 < 098024;
-count(*)
-387
-select min(fld1) from t2 where fld1>= 098024;
-min(fld1)
-98024
-select max(fld1) from t2 where fld1>= 098024;
-max(fld1)
-1232609
-select count(*) from t3 where price2=76234234;
-count(*)
-4181
-select count(*) from t3 where companynr=512 and price2=76234234;
-count(*)
-4181
-explain select min(fld1),max(fld1),count(*) from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(fld1),max(fld1),count(*) from t2;
-min(fld1) max(fld1) count(*)
-0 1232609 1199
-select min(t2nr),max(t2nr) from t3 where t2nr=2115 and price2=823742;
-min(t2nr) max(t2nr)
-2115 2115
-select count(*),min(t2nr),max(t2nr) from t3 where name='spates' and companynr=78;
-count(*) min(t2nr) max(t2nr)
-4181 4 41804
-select t2nr,count(*) from t3 where name='gems' group by t2nr limit 20;
-t2nr count(*)
-9 1
-19 1
-29 1
-39 1
-49 1
-59 1
-69 1
-79 1
-89 1
-99 1
-109 1
-119 1
-129 1
-139 1
-149 1
-159 1
-169 1
-179 1
-189 1
-199 1
-select max(t2nr) from t3 where price=983543950;
-max(t2nr)
-41807
-select t1.period from t3 = t1 limit 1;
-period
-1001
-select t1.period from t1 as t1 limit 1;
-period
-9410
-select t1.period as "Nuvarande period" from t1 as t1 limit 1;
-Nuvarande period
-9410
-select period as ok_period from t1 limit 1;
-ok_period
-9410
-select period as ok_period from t1 group by ok_period limit 1;
-ok_period
-9410
-select 1+1 as summa from t1 group by summa limit 1;
-summa
-2
-select period as "Nuvarande period" from t1 group by "Nuvarande period" limit 1;
-Nuvarande period
-9410
-show tables;
-Tables_in_test
-t1
-t2
-t3
-t4
-show tables from test like "s%";
-Tables_in_test (s%)
-show tables from test like "t?";
-Tables_in_test (t?)
-show full columns from t2;
-Field Type Collation Null Key Default Extra Privileges Comment
-auto int(11) NULL NO PRI NULL auto_increment #
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-companynr tinyint(2) unsigned zerofill NULL NO 00 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 'f%';
-Field Type Collation Null Key Default Extra Privileges Comment
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 's%';
-Field Type Collation Null Key Default Extra Privileges Comment
-show keys from t2;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t2 0 PRIMARY 1 auto A 1199 NULL NULL BTREE
-t2 0 fld1 1 fld1 A 1199 NULL NULL BTREE
-t2 1 fld3 1 fld3 A NULL NULL NULL BTREE
-drop table t4, t3, t2, t1;
-DO 1;
-DO benchmark(100,1+1),1,1;
-do default;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-do foobar;
-ERROR 42S22: Unknown column 'foobar' in 'field list'
-CREATE TABLE t1 (
-id mediumint(8) unsigned NOT NULL auto_increment,
-pseudo varchar(35) NOT NULL default '',
-PRIMARY KEY (id),
-UNIQUE KEY pseudo (pseudo)
-);
-INSERT INTO t1 (pseudo) VALUES ('test');
-INSERT INTO t1 (pseudo) VALUES ('test1');
-SELECT 1 as rnd1 from t1 where rand() > 2;
-rnd1
-DROP TABLE t1;
-CREATE TABLE t1 (gvid int(10) unsigned default NULL, hmid int(10) unsigned default NULL, volid int(10) unsigned default NULL, mmid int(10) unsigned default NULL, hdid int(10) unsigned default NULL, fsid int(10) unsigned default NULL, ctid int(10) unsigned default NULL, dtid int(10) unsigned default NULL, cost int(10) unsigned default NULL, performance int(10) unsigned default NULL, serialnumber bigint(20) unsigned default NULL, monitored tinyint(3) unsigned default '1', removed tinyint(3) unsigned default '0', target tinyint(3) unsigned default '0', dt_modified timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, name varchar(255) binary default NULL, description varchar(255) default NULL, UNIQUE KEY hmid (hmid,volid)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (200001,2,1,1,100,1,1,1,0,0,0,1,0,1,20020425060057,'\\\\ARKIVIO-TESTPDC\\E$',''),(200002,2,2,1,101,1,1,1,0,0,0,1,0,1,20020425060057,'\\\\ARKIVIO-TESTPDC\\C$',''),(200003,1,3,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,1,20020425060427,'c:',NULL);
-CREATE TABLE t2 ( hmid int(10) unsigned default NULL, volid int(10) unsigned default NULL, sampletid smallint(5) unsigned default NULL, sampletime datetime default NULL, samplevalue bigint(20) unsigned default NULL, KEY idx1 (hmid,volid,sampletid,sampletime)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,3,10,'2002-06-01 08:00:00',35),(1,3,1010,'2002-06-01 12:00:01',35);
-SELECT a.gvid, (SUM(CASE b.sampletid WHEN 140 THEN b.samplevalue ELSE 0 END)) as the_success,(SUM(CASE b.sampletid WHEN 141 THEN b.samplevalue ELSE 0 END)) as the_fail,(SUM(CASE b.sampletid WHEN 142 THEN b.samplevalue ELSE 0 END)) as the_size,(SUM(CASE b.sampletid WHEN 143 THEN b.samplevalue ELSE 0 END)) as the_time FROM t1 a, t2 b WHERE a.hmid = b.hmid AND a.volid = b.volid AND b.sampletime >= 'wrong-date-value' AND b.sampletime < 'wrong-date-value' AND b.sampletid IN (140, 141, 142, 143) GROUP BY a.gvid;
-gvid the_success the_fail the_size the_time
-Warnings:
-Warning 1292 Incorrect datetime value: 'wrong-date-value'
-Warning 1292 Incorrect datetime value: 'wrong-date-value'
-SELECT a.gvid, (SUM(CASE b.sampletid WHEN 140 THEN b.samplevalue ELSE 0 END)) as the_success,(SUM(CASE b.sampletid WHEN 141 THEN b.samplevalue ELSE 0 END)) as the_fail,(SUM(CASE b.sampletid WHEN 142 THEN b.samplevalue ELSE 0 END)) as the_size,(SUM(CASE b.sampletid WHEN 143 THEN b.samplevalue ELSE 0 END)) as the_time FROM t1 a, t2 b WHERE a.hmid = b.hmid AND a.volid = b.volid AND b.sampletime >= NULL AND b.sampletime < NULL AND b.sampletid IN (140, 141, 142, 143) GROUP BY a.gvid;
-gvid the_success the_fail the_size the_time
-DROP TABLE t1,t2;
-create table t1 ( A_Id bigint(20) NOT NULL default '0', A_UpdateBy char(10) NOT NULL default '', A_UpdateDate bigint(20) NOT NULL default '0', A_UpdateSerial int(11) NOT NULL default '0', other_types bigint(20) NOT NULL default '0', wss_type bigint(20) NOT NULL default '0');
-INSERT INTO t1 VALUES (102935998719055004,'brade',1029359987,2,102935229116544068,102935229216544093);
-select wss_type from t1 where wss_type ='102935229216544106';
-wss_type
-select wss_type from t1 where wss_type ='102935229216544105';
-wss_type
-select wss_type from t1 where wss_type ='102935229216544104';
-wss_type
-select wss_type from t1 where wss_type ='102935229216544093';
-wss_type
-102935229216544093
-select wss_type from t1 where wss_type =102935229216544093;
-wss_type
-102935229216544093
-drop table t1;
-select 1+2,"aaaa",3.13*2.0 into @a,@b,@c;
-select @a;
-@a
-3
-select @b;
-@b
-aaaa
-select @c;
-@c
-6.260
-create table t1 (a int not null auto_increment primary key);
-insert into t1 values ();
-insert into t1 values ();
-insert into t1 values ();
-select * from (t1 as t2 left join t1 as t3 using (a)), t1;
-a a
-1 1
-2 1
-3 1
-1 2
-2 2
-3 2
-1 3
-2 3
-3 3
-select * from t1, (t1 as t2 left join t1 as t3 using (a));
-a a
-1 1
-2 1
-3 1
-1 2
-2 2
-3 2
-1 3
-2 3
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) straight_join t1;
-a a
-1 1
-2 1
-3 1
-1 2
-2 2
-3 2
-1 3
-2 3
-3 3
-select * from t1 straight_join (t1 as t2 left join t1 as t3 using (a));
-a a
-1 1
-2 1
-3 1
-1 2
-2 2
-3 2
-1 3
-2 3
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) inner join t1 on t1.a>1;
-a a
-1 2
-1 3
-2 2
-2 3
-3 2
-3 3
-select * from t1 inner join (t1 as t2 left join t1 as t3 using (a)) on t1.a>1;
-a a
-2 1
-3 1
-2 2
-3 2
-2 3
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) inner join t1 using ( a );
-a
-1
-2
-3
-select * from t1 inner join (t1 as t2 left join t1 as t3 using (a)) using ( a );
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) left outer join t1 on t1.a>1;
-a a
-1 2
-1 3
-2 2
-2 3
-3 2
-3 3
-select * from t1 left outer join (t1 as t2 left join t1 as t3 using (a)) on t1.a>1;
-a a
-1 NULL
-2 1
-2 2
-2 3
-3 1
-3 2
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) left join t1 using ( a );
-a
-1
-2
-3
-select * from t1 left join (t1 as t2 left join t1 as t3 using (a)) using ( a );
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) natural left join t1;
-a
-1
-2
-3
-select * from t1 natural left join (t1 as t2 left join t1 as t3 using (a));
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) right join t1 on t1.a>1;
-a a
-1 2
-1 3
-2 2
-2 3
-3 2
-3 3
-NULL 1
-select * from t1 right join (t1 as t2 left join t1 as t3 using (a)) on t1.a>1;
-a a
-2 1
-2 2
-2 3
-3 1
-3 2
-3 3
-select * from (t1 as t2 left join t1 as t3 using (a)) right outer join t1 using ( a );
-a
-1
-2
-3
-select * from t1 right outer join (t1 as t2 left join t1 as t3 using (a)) using ( a );
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) natural right join t1;
-a
-1
-2
-3
-select * from t1 natural right join (t1 as t2 left join t1 as t3 using (a));
-a
-1
-2
-3
-select * from t1 natural join (t1 as t2 left join t1 as t3 using (a));
-a
-1
-2
-3
-select * from (t1 as t2 left join t1 as t3 using (a)) natural join t1;
-a
-1
-2
-3
-drop table t1;
-CREATE TABLE t1 ( aa char(2), id int(11) NOT NULL auto_increment, t2_id int(11) NOT NULL default '0', PRIMARY KEY (id), KEY replace_id (t2_id)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ("1",8264,2506),("2",8299,2517),("3",8301,2518),("4",8302,2519),("5",8303,2520),("6",8304,2521),("7",8305,2522);
-CREATE TABLE t2 ( id int(11) NOT NULL auto_increment, PRIMARY KEY (id)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (2517), (2518), (2519), (2520), (2521), (2522);
-select * from t1, t2 WHERE t1.t2_id = t2.id and t1.t2_id > 0 order by t1.id LIMIT 0, 5;
-aa id t2_id id
-2 8299 2517 2517
-3 8301 2518 2518
-4 8302 2519 2519
-5 8303 2520 2520
-6 8304 2521 2521
-drop table t1,t2;
-create table t1 (id1 int NOT NULL);
-create table t2 (id2 int NOT NULL);
-create table t3 (id3 int NOT NULL);
-create table t4 (id4 int NOT NULL, id44 int NOT NULL, KEY (id4));
-insert into t1 values (1);
-insert into t1 values (2);
-insert into t2 values (1);
-insert into t4 values (1,1);
-explain select * from t1 left join t2 on id1 = id2 left join t3 on id1 = id3
-left join t4 on id3 = id4 where id2 = 1 or id4 = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 system NULL NULL NULL NULL 0 Const row not found
-1 SIMPLE t4 const id4 NULL NULL NULL 1
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1 Using where
-select * from t1 left join t2 on id1 = id2 left join t3 on id1 = id3
-left join t4 on id3 = id4 where id2 = 1 or id4 = 1;
-id1 id2 id3 id4 id44
-1 1 NULL NULL NULL
-drop table t1,t2,t3,t4;
-create table t1(s varchar(10) not null);
-create table t2(s varchar(10) not null primary key);
-create table t3(s varchar(10) not null primary key);
-insert into t1 values ('one\t'), ('two\t');
-insert into t2 values ('one\r'), ('two\t');
-insert into t3 values ('one '), ('two\t');
-select * from t1 where s = 'one';
-s
-select * from t2 where s = 'one';
-s
-select * from t3 where s = 'one';
-s
-one
-select * from t1,t2 where t1.s = t2.s;
-s s
-two two
-select * from t2,t3 where t2.s = t3.s;
-s s
-two two
-drop table t1, t2, t3;
-create table t1 (a integer, b integer, index(a), index(b));
-create table t2 (c integer, d integer, index(c), index(d));
-insert into t1 values (1,2), (2,2), (3,2), (4,2);
-insert into t2 values (1,3), (2,3), (3,4), (4,4);
-explain select * from t1 left join t2 on a=c where d in (4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref c,d d 5 const 2
-1 SIMPLE t1 ALL a NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-select * from t1 left join t2 on a=c where d in (4);
-a b c d
-3 2 3 4
-4 2 4 4
-explain select * from t1 left join t2 on a=c where d = 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref c,d d 5 const 2
-1 SIMPLE t1 ALL a NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-select * from t1 left join t2 on a=c where d = 4;
-a b c d
-3 2 3 4
-4 2 4 4
-drop table t1, t2;
-CREATE TABLE t1 (
-i int(11) NOT NULL default '0',
-c char(10) NOT NULL default '',
-PRIMARY KEY (i),
-UNIQUE KEY c (c)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'a');
-INSERT INTO t1 VALUES (2,'b');
-INSERT INTO t1 VALUES (3,'c');
-EXPLAIN SELECT i FROM t1 WHERE i=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-DROP TABLE t1;
-CREATE TABLE t1 ( a BLOB, INDEX (a(20)) );
-CREATE TABLE t2 ( a BLOB, INDEX (a(20)) );
-INSERT INTO t1 VALUES ('one'),('two'),('three'),('four'),('five');
-INSERT INTO t2 VALUES ('one'),('two'),('three'),('four'),('five');
-INSERT INTO t2 VALUES ('one'),('two'),('three'),('four'),('five');
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 USE INDEX (a) ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref a a 23 test.t1.a 2 Using where
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 FORCE INDEX (a) ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref a a 23 test.t1.a 2 Using where
-DROP TABLE t1, t2;
-CREATE TABLE t1 ( city char(30) );
-INSERT INTO t1 VALUES ('London');
-INSERT INTO t1 VALUES ('Paris');
-SELECT * FROM t1 WHERE city='London';
-city
-London
-SELECT * FROM t1 WHERE city='london';
-city
-London
-EXPLAIN SELECT * FROM t1 WHERE city='London' AND city='london';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 WHERE city='London' AND city='london';
-city
-London
-EXPLAIN SELECT * FROM t1 WHERE city LIKE '%london%' AND city='London';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 WHERE city LIKE '%london%' AND city='London';
-city
-London
-DROP TABLE t1;
-create table t1 (a int(11) unsigned, b int(11) unsigned);
-insert into t1 values (1,0), (1,1), (18446744073709551615,0);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 3
-select a-b from t1 order by 1;
-a-b
-0
-1
-4294967295
-select a-b , (a-b < 0) from t1 order by 1;
-a-b (a-b < 0)
-0 0
-1 0
-4294967295 0
-select a-b as d, (a-b >= 0), b from t1 group by b having d >= 0;
-d (a-b >= 0) b
-1 1 0
-0 1 1
-select cast((a - b) as unsigned) from t1 order by 1;
-cast((a - b) as unsigned)
-0
-1
-4294967295
-drop table t1;
-create table t1 (a int(11));
-select all all * from t1;
-a
-select distinct distinct * from t1;
-a
-select all distinct * from t1;
-ERROR HY000: Incorrect usage of ALL and DISTINCT
-select distinct all * from t1;
-ERROR HY000: Incorrect usage of ALL and DISTINCT
-drop table t1;
-CREATE TABLE t1 (
-kunde_intern_id int(10) unsigned NOT NULL default '0',
-kunde_id int(10) unsigned NOT NULL default '0',
-FK_firma_id int(10) unsigned NOT NULL default '0',
-aktuell enum('Ja','Nein') NOT NULL default 'Ja',
-vorname varchar(128) NOT NULL default '',
-nachname varchar(128) NOT NULL default '',
-geloescht enum('Ja','Nein') NOT NULL default 'Nein',
-firma varchar(128) NOT NULL default ''
-);
-INSERT INTO t1 VALUES
-(3964,3051,1,'Ja','Vorname1','1Nachname','Nein','Print Schau XXXX'),
-(3965,3051111,1,'Ja','Vorname1111','1111Nachname','Nein','Print Schau XXXX');
-SELECT kunde_id ,FK_firma_id ,aktuell, vorname, nachname, geloescht FROM t1
-WHERE
-(
-(
-( '' != '' AND firma LIKE CONCAT('%', '', '%'))
-OR
-(vorname LIKE CONCAT('%', 'Vorname1', '%') AND
-nachname LIKE CONCAT('%', '1Nachname', '%') AND
-'Vorname1' != '' AND 'xxxx' != '')
-)
-AND
-(
-aktuell = 'Ja' AND geloescht = 'Nein' AND FK_firma_id = 2
-)
-)
-;
-kunde_id FK_firma_id aktuell vorname nachname geloescht
-SELECT kunde_id ,FK_firma_id ,aktuell, vorname, nachname,
-geloescht FROM t1
-WHERE
-(
-(
-aktuell = 'Ja' AND geloescht = 'Nein' AND FK_firma_id = 2
-)
-AND
-(
-( '' != '' AND firma LIKE CONCAT('%', '', '%') )
-OR
-( vorname LIKE CONCAT('%', 'Vorname1', '%') AND
-nachname LIKE CONCAT('%', '1Nachname', '%') AND 'Vorname1' != '' AND
-'xxxx' != '')
-)
-)
-;
-kunde_id FK_firma_id aktuell vorname nachname geloescht
-SELECT COUNT(*) FROM t1 WHERE
-( 0 OR (vorname LIKE '%Vorname1%' AND nachname LIKE '%1Nachname%' AND 1))
-AND FK_firma_id = 2;
-COUNT(*)
-0
-drop table t1;
-CREATE TABLE t1 (b BIGINT(20) UNSIGNED NOT NULL, PRIMARY KEY (b));
-INSERT INTO t1 VALUES (0x8000000000000000);
-SELECT b FROM t1 WHERE b=0x8000000000000000;
-b
-9223372036854775808
-DROP TABLE t1;
-CREATE TABLE `t1` ( `gid` int(11) default NULL, `uid` int(11) default NULL);
-CREATE TABLE `t2` ( `ident` int(11) default NULL, `level` char(16) default NULL);
-INSERT INTO `t2` VALUES (0,'READ');
-CREATE TABLE `t3` ( `id` int(11) default NULL, `name` char(16) default NULL);
-INSERT INTO `t3` VALUES (1,'fs');
-select * from t3 left join t1 on t3.id = t1.uid, t2 where t2.ident in (0, t1.gid, t3.id, 0);
-id name gid uid ident level
-1 fs NULL NULL 0 READ
-drop table t1,t2,t3;
-CREATE TABLE t1 (
-acct_id int(11) NOT NULL default '0',
-profile_id smallint(6) default NULL,
-UNIQUE KEY t1$acct_id (acct_id),
-KEY t1$profile_id (profile_id)
-);
-INSERT INTO t1 VALUES (132,17),(133,18);
-CREATE TABLE t2 (
-profile_id smallint(6) default NULL,
-queue_id int(11) default NULL,
-seq int(11) default NULL,
-KEY t2$queue_id (queue_id)
-);
-INSERT INTO t2 VALUES (17,31,4),(17,30,3),(17,36,2),(17,37,1);
-CREATE TABLE t3 (
-id int(11) NOT NULL default '0',
-qtype int(11) default NULL,
-seq int(11) default NULL,
-warn_lvl int(11) default NULL,
-crit_lvl int(11) default NULL,
-rr1 tinyint(4) NOT NULL default '0',
-rr2 int(11) default NULL,
-default_queue tinyint(4) NOT NULL default '0',
-KEY t3$qtype (qtype),
-KEY t3$id (id)
-);
-INSERT INTO t3 VALUES (30,1,29,NULL,NULL,0,NULL,0),(31,1,28,NULL,NULL,0,NULL,0),
-(36,1,34,NULL,NULL,0,NULL,0),(37,1,35,NULL,NULL,0,121,0);
-SELECT COUNT(*) FROM t1 a STRAIGHT_JOIN t2 pq STRAIGHT_JOIN t3 q
-WHERE
-(pq.profile_id = a.profile_id) AND (a.acct_id = 132) AND
-(pq.queue_id = q.id) AND (q.rr1 <> 1);
-COUNT(*)
-4
-drop table t1,t2,t3;
-create table t1 (f1 int);
-insert into t1 values (1),(NULL);
-create table t2 (f2 int, f3 int, f4 int);
-create index idx1 on t2 (f4);
-insert into t2 values (1,2,3),(2,4,6);
-select A.f2 from t1 left join t2 A on A.f2 = f1 where A.f3=(select min(f3)
-from t2 C where A.f4 = C.f4) or A.f3 IS NULL;
-f2
-1
-NULL
-drop table t1,t2;
-create table t2 (a tinyint unsigned);
-create index t2i on t2(a);
-insert into t2 values (0), (254), (255);
-explain select * from t2 where a > -1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index t2i t2i 2 NULL 3 Using where; Using index
-select * from t2 where a > -1;
-a
-0
-254
-255
-drop table t2;
-CREATE TABLE t1 (a int, b int, c int);
-INSERT INTO t1
-SELECT 50, 3, 3 FROM DUAL
-WHERE NOT EXISTS
-(SELECT * FROM t1 WHERE a = 50 AND b = 3);
-SELECT * FROM t1;
-a b c
-50 3 3
-INSERT INTO t1
-SELECT 50, 3, 3 FROM DUAL
-WHERE NOT EXISTS
-(SELECT * FROM t1 WHERE a = 50 AND b = 3);
-select found_rows();
-found_rows()
-0
-SELECT * FROM t1;
-a b c
-50 3 3
-select count(*) from t1;
-count(*)
-1
-select found_rows();
-found_rows()
-1
-select count(*) from t1 limit 2,3;
-count(*)
-select found_rows();
-found_rows()
-0
-select SQL_CALC_FOUND_ROWS count(*) from t1 limit 2,3;
-count(*)
-select found_rows();
-found_rows()
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-(SELECT a, b AS c FROM t1) ORDER BY c+1;
-a c
-(SELECT a, b AS c FROM t1) ORDER BY b+1;
-a c
-SELECT a, b AS c FROM t1 ORDER BY c+1;
-a c
-SELECT a, b AS c FROM t1 ORDER BY b+1;
-a c
-drop table t1;
-create table t1(f1 int, f2 int);
-create table t2(f3 int);
-select f1 from t1,t2 where f1=f2 and (f1,f2) = ((1,1));
-f1
-select f1 from t1,t2 where f1=f2 and (f1,NULL) = ((1,1));
-f1
-select f1 from t1,t2 where f1=f2 and (f1,f2) = ((1,NULL));
-f1
-insert into t1 values(1,1),(2,null);
-insert into t2 values(2);
-select * from t1,t2 where f1=f3 and (f1,f2) = (2,null);
-f1 f2 f3
-select * from t1,t2 where f1=f3 and (f1,f2) <=> (2,null);
-f1 f2 f3
-2 NULL 2
-drop table t1,t2;
-create table t1 (f1 int not null auto_increment primary key, f2 varchar(10));
-create table t11 like t1;
-insert into t1 values(1,""),(2,"");
-show table status like 't1%';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Dynamic 2 20 X X X X X X X X latin1_swedish_ci NULL X N
-t11 MyISAM 10 Dynamic 0 0 X X X X X X X X latin1_swedish_ci NULL X N
-select 123 as a from t1 where f1 is null;
-a
-drop table t1,t11;
-CREATE TABLE t1 ( a INT NOT NULL, b INT NOT NULL, UNIQUE idx (a,b) );
-INSERT INTO t1 VALUES (1,1),(1,2),(1,3),(1,4);
-CREATE TABLE t2 ( a INT NOT NULL, b INT NOT NULL, e INT );
-INSERT INTO t2 VALUES ( 1,10,1), (1,10,2), (1,11,1), (1,11,2), (1,2,1), (1,2,2),(1,2,3);
-SELECT t2.a, t2.b, IF(t1.b IS NULL,'',e) AS c, COUNT(*) AS d FROM t2 LEFT JOIN
-t1 ON t2.a = t1.a AND t2.b = t1.b GROUP BY a, b, c;
-a b c d
-1 2 1 1
-1 2 2 1
-1 2 3 1
-1 10 2
-1 11 2
-SELECT t2.a, t2.b, IF(t1.b IS NULL,'',e) AS c, COUNT(*) AS d FROM t2 LEFT JOIN
-t1 ON t2.a = t1.a AND t2.b = t1.b GROUP BY t1.a, t1.b, c;
-a b c d
-1 10 4
-1 2 1 1
-1 2 2 1
-1 2 3 1
-SELECT t2.a, t2.b, IF(t1.b IS NULL,'',e) AS c, COUNT(*) AS d FROM t2 LEFT JOIN
-t1 ON t2.a = t1.a AND t2.b = t1.b GROUP BY t2.a, t2.b, c;
-a b c d
-1 2 1 1
-1 2 2 1
-1 2 3 1
-1 10 2
-1 11 2
-SELECT t2.a, t2.b, IF(t1.b IS NULL,'',e) AS c, COUNT(*) AS d FROM t2,t1
-WHERE t2.a = t1.a AND t2.b = t1.b GROUP BY a, b, c;
-a b c d
-1 2 1 1
-1 2 2 1
-1 2 3 1
-DROP TABLE IF EXISTS t1, t2;
-create table t1 (f1 int primary key, f2 int);
-create table t2 (f3 int, f4 int, primary key(f3,f4));
-insert into t1 values (1,1);
-insert into t2 values (1,1),(1,2);
-select distinct count(f2) >0 from t1 left join t2 on f1=f3 group by f1;
-count(f2) >0
-1
-drop table t1,t2;
-create table t1 (f1 int,f2 int);
-insert into t1 values(1,1);
-create table t2 (f3 int, f4 int, primary key(f3,f4));
-insert into t2 values(1,1);
-select * from t1 where f1 in (select f3 from t2 where (f3,f4)= (select f3,f4 from t2));
-f1 f2
-1 1
-drop table t1,t2;
-CREATE TABLE t1(a int, b int, c int, KEY b(b), KEY c(c));
-insert into t1 values (1,0,0),(2,0,0);
-CREATE TABLE t2 (a int, b varchar(2), c varchar(2), PRIMARY KEY(a));
-insert into t2 values (1,'',''), (2,'','');
-CREATE TABLE t3 (a int, b int, PRIMARY KEY (a,b), KEY a (a), KEY b (b));
-insert into t3 values (1,1),(1,2);
-explain select straight_join DISTINCT t2.a,t2.b, t1.c from t1, t3, t2
-where (t1.c=t2.a or (t1.c=t3.a and t2.a=t3.b)) and t1.b=556476786 and
-t2.b like '%%' order by t2.b limit 0,1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref b,c b 5 const 1 Using temporary; Using filesort
-1 SIMPLE t3 index PRIMARY,a,b PRIMARY 8 NULL 2 Using index; Using join buffer (flat, BNL join)
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 2 Range checked for each record (index map: 0x1)
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a int, INDEX idx(a));
-INSERT INTO t1 VALUES (2), (3), (1);
-EXPLAIN SELECT * FROM t1 IGNORE INDEX (idx);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3
-EXPLAIN SELECT * FROM t1 IGNORE INDEX (a);
-ERROR 42000: Key 'a' doesn't exist in table 't1'
-EXPLAIN SELECT * FROM t1 FORCE INDEX (a);
-ERROR 42000: Key 'a' doesn't exist in table 't1'
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (1,1), (2,1), (4,10);
-CREATE TABLE t2 (a int PRIMARY KEY, b int, KEY b (b));
-INSERT INTO t2 VALUES (1,NULL), (2,10);
-ALTER TABLE t1 ENABLE KEYS;
-EXPLAIN SELECT STRAIGHT_JOIN SQL_NO_CACHE COUNT(*) FROM t2, t1 WHERE t1.b = t2.b OR t2.b IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index b b 5 NULL 2 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-SELECT STRAIGHT_JOIN SQL_NO_CACHE * FROM t2, t1 WHERE t1.b = t2.b OR t2.b IS NULL;
-a b a b
-1 NULL 1 1
-1 NULL 2 1
-1 NULL 4 10
-2 10 4 10
-EXPLAIN SELECT STRAIGHT_JOIN SQL_NO_CACHE COUNT(*) FROM t2, t1 WHERE t1.b = t2.b OR t2.b IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index b b 5 NULL 2 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-SELECT STRAIGHT_JOIN SQL_NO_CACHE * FROM t2, t1 WHERE t1.b = t2.b OR t2.b IS NULL;
-a b a b
-1 NULL 1 1
-1 NULL 2 1
-1 NULL 4 10
-2 10 4 10
-DROP TABLE IF EXISTS t1,t2;
-CREATE TABLE t1 (key1 float default NULL, UNIQUE KEY key1 (key1));
-CREATE TABLE t2 (key2 float default NULL, UNIQUE KEY key2 (key2));
-INSERT INTO t1 VALUES (0.3762),(0.3845),(0.6158),(0.7941);
-INSERT INTO t2 VALUES (1.3762),(1.3845),(1.6158),(1.7941);
-explain select max(key1) from t1 where key1 <= 0.6158;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select max(key2) from t2 where key2 <= 1.6158;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select min(key1) from t1 where key1 >= 0.3762;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select min(key2) from t2 where key2 >= 1.3762;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select max(key1), min(key2) from t1, t2
-where key1 <= 0.6158 and key2 >= 1.3762;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-explain select max(key1) from t1 where key1 <= 0.6158 and rand() + 0.5 >= 0.5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index key1 key1 5 NULL 4 Using where; Using index
-explain select min(key1) from t1 where key1 >= 0.3762 and rand() + 0.5 >= 0.5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range key1 key1 5 NULL 3 Using where; Using index
-select max(key1) from t1 where key1 <= 0.6158;
-max(key1)
-0.6158000230789185
-select max(key2) from t2 where key2 <= 1.6158;
-max(key2)
-1.6158000230789185
-select min(key1) from t1 where key1 >= 0.3762;
-min(key1)
-0.37619999051094055
-select min(key2) from t2 where key2 >= 1.3762;
-min(key2)
-1.3761999607086182
-select max(key1), min(key2) from t1, t2
-where key1 <= 0.6158 and key2 >= 1.3762;
-max(key1) min(key2)
-0.6158000230789185 1.3761999607086182
-select max(key1) from t1 where key1 <= 0.6158 and rand() + 0.5 >= 0.5;
-max(key1)
-0.38449999690055847
-select min(key1) from t1 where key1 >= 0.3762 and rand() + 0.5 >= 0.5;
-min(key1)
-0.38449999690055847
-DROP TABLE t1,t2;
-CREATE TABLE t1 (i BIGINT UNSIGNED NOT NULL);
-INSERT INTO t1 VALUES (10);
-SELECT i='1e+01',i=1e+01, i in (1e+01,1e+01), i in ('1e+01','1e+01') FROM t1;
-i='1e+01' i=1e+01 i in (1e+01,1e+01) i in ('1e+01','1e+01')
-1 1 1 1
-DROP TABLE t1;
-create table t1(a bigint unsigned, b bigint);
-insert ignore into t1 values (0xfffffffffffffffff, 0xfffffffffffffffff),
-(0x10000000000000000, 0x10000000000000000),
-(0x8fffffffffffffff, 0x8fffffffffffffff);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'b' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'b' at row 2
-Warning 1264 Out of range value for column 'b' at row 3
-select hex(a), hex(b) from t1;
-hex(a) hex(b)
-FFFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
-FFFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
-8FFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
-drop table t1;
-CREATE TABLE t1 (c0 int);
-CREATE TABLE t2 (c0 int);
-INSERT INTO t1 VALUES(@@connect_timeout);
-INSERT INTO t2 VALUES(@@connect_timeout);
-SELECT * FROM t1 JOIN t2 ON t1.c0 = t2.c0 WHERE (t1.c0 <=> @@connect_timeout);
-c0 c0
-X X
-DROP TABLE t1, t2;
-End of 4.1 tests
-CREATE TABLE t1 (
-K2C4 varchar(4) character set latin1 collate latin1_bin NOT NULL default '',
-K4N4 varchar(4) character set latin1 collate latin1_bin NOT NULL default '0000',
-F2I4 int(11) NOT NULL default '0'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES
-('W%RT', '0100', 1),
-('W-RT', '0100', 1),
-('WART', '0100', 1),
-('WART', '0200', 1),
-('WERT', '0100', 2),
-('WORT','0200', 2),
-('WT', '0100', 2),
-('W_RT', '0100', 2),
-('WaRT', '0100', 3),
-('WART', '0300', 3),
-('WRT' , '0400', 3),
-('WURM', '0500', 3),
-('W%T', '0600', 4),
-('WA%T', '0700', 4),
-('WA_T', '0800', 4);
-SELECT K2C4, K4N4, F2I4 FROM t1
-WHERE K2C4 = 'WART' AND
-(F2I4 = 2 AND K2C4 = 'WART' OR (F2I4 = 2 OR K4N4 = '0200'));
-K2C4 K4N4 F2I4
-WART 0200 1
-SELECT K2C4, K4N4, F2I4 FROM t1
-WHERE K2C4 = 'WART' AND (K2C4 = 'WART' OR K4N4 = '0200');
-K2C4 K4N4 F2I4
-WART 0100 1
-WART 0200 1
-WART 0300 3
-DROP TABLE t1;
-create table t1 (a int, b int);
-create table t2 like t1;
-select t1.a from (t1 inner join t2 on t1.a=t2.a) where t2.a=1;
-a
-select t1.a from ((t1 inner join t2 on t1.a=t2.a)) where t2.a=1;
-a
-select x.a, y.a, z.a from ( (t1 x inner join t2 y on x.a=y.a) inner join t2 z on y.a=z.a) WHERE x.a=1;
-a a a
-drop table t1,t2;
-create table t1 (s1 varchar(5));
-insert into t1 values ('Wall');
-select min(s1) from t1 group by s1 with rollup;
-min(s1)
-Wall
-Wall
-drop table t1;
-create table t1 (s1 int) engine=myisam;
-insert into t1 values (0);
-select avg(distinct s1) from t1 group by s1 with rollup;
-avg(distinct s1)
-0.0000
-0.0000
-drop table t1;
-create table t1 (s1 int);
-insert into t1 values (null),(1);
-select distinct avg(s1) as x from t1 group by s1 with rollup;
-x
-NULL
-1.0000
-drop table t1;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int);
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
-INSERT INTO t2 VALUES (2), (4), (6);
-SELECT t1.a FROM t1 STRAIGHT_JOIN t2 ON t1.a=t2.a;
-a
-2
-4
-EXPLAIN SELECT t1.a FROM t1 STRAIGHT_JOIN t2 ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-EXPLAIN SELECT t1.a FROM t1 INNER JOIN t2 ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-DROP TABLE t1,t2;
-select x'3136' + 0, X'3136' + 0, b'10' + 0, B'10' + 0;
-x'3136' + 0 X'3136' + 0 b'10' + 0 B'10' + 0
-16 16 2 2
-create table t1 (f1 varchar(6) default NULL, f2 int(6) primary key not null);
-create table t2 (f3 varchar(5) not null, f4 varchar(5) not null, UNIQUE KEY UKEY (f3,f4));
-insert into t1 values (" 2", 2);
-insert into t2 values (" 2", " one "),(" 2", " two ");
-select * from t1 left join t2 on f1 = f3;
-f1 f2 f3 f4
- 2 2 2 one
- 2 2 2 two
-drop table t1,t2;
-create table t1 (empnum smallint, grp int);
-create table t2 (empnum int, name char(5));
-insert into t1 values(1,1);
-insert into t2 values(1,'bob');
-create view v1 as select * from t2 inner join t1 using (empnum);
-select * from v1;
-empnum name grp
-1 bob 1
-drop table t1,t2;
-drop view v1;
-create table t1 (pk int primary key, b int);
-create table t2 (pk int primary key, c int);
-select pk from t1 inner join t2 using (pk);
-pk
-drop table t1,t2;
-create table t1 (s1 int, s2 char(5), s3 decimal(10));
-create view v1 as select s1, s2, 'x' as s3 from t1;
-select * from t1 natural join v1;
-s1 s2 s3
-insert into t1 values (1,'x',5);
-select * from t1 natural join v1;
-s1 s2 s3
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: 'x'
-drop table t1;
-drop view v1;
-create table t1(a1 int);
-create table t2(a2 int);
-insert into t1 values(1),(2);
-insert into t2 values(1),(2);
-create view v2 (c) as select a1 from t1;
-select * from t1 natural left join t2;
-a1 a2
-1 1
-1 2
-2 1
-2 2
-select * from t1 natural right join t2;
-a2 a1
-1 1
-1 2
-2 1
-2 2
-select * from v2 natural left join t2;
-c a2
-1 1
-1 2
-2 1
-2 2
-select * from v2 natural right join t2;
-a2 c
-1 1
-1 2
-2 1
-2 2
-drop table t1, t2;
-drop view v2;
-create table t1 (a int(10), t1_val int(10));
-create table t2 (b int(10), t2_val int(10));
-create table t3 (a int(10), b int(10));
-insert into t1 values (1,1),(2,2);
-insert into t2 values (1,1),(2,2),(3,3);
-insert into t3 values (1,1),(2,1),(3,1),(4,1);
-select * from t1 natural join t2 natural join t3;
-a b t1_val t2_val
-1 1 1 1
-2 1 2 1
-select * from t1 natural join t3 natural join t2;
-b a t1_val t2_val
-1 1 1 1
-1 2 2 1
-drop table t1, t2, t3;
-DO IFNULL(NULL, NULL);
-SELECT CAST(IFNULL(NULL, NULL) AS DECIMAL);
-CAST(IFNULL(NULL, NULL) AS DECIMAL)
-NULL
-SELECT ABS(IFNULL(NULL, NULL));
-ABS(IFNULL(NULL, NULL))
-NULL
-SELECT IFNULL(NULL, NULL);
-IFNULL(NULL, NULL)
-NULL
-SET @OLD_SQL_MODE12595=@@SQL_MODE, @@SQL_MODE='';
-SHOW LOCAL VARIABLES LIKE 'SQL_MODE';
-Variable_name Value
-sql_mode
-CREATE TABLE BUG_12595(a varchar(100));
-INSERT INTO BUG_12595 VALUES ('hakan%'), ('hakank'), ("ha%an");
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%';
-a
-hakan%
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan*%' ESCAPE '*';
-a
-hakan%
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan**%' ESCAPE '**';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan%' ESCAPE '';
-a
-hakan%
-hakank
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%' ESCAPE '';
-a
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha\%an' ESCAPE 0x5c;
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha%%an' ESCAPE '%';
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha\%an' ESCAPE '\\';
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha|%an' ESCAPE '|';
-a
-ha%an
-SET @@SQL_MODE='NO_BACKSLASH_ESCAPES';
-SHOW LOCAL VARIABLES LIKE 'SQL_MODE';
-Variable_name Value
-sql_mode NO_BACKSLASH_ESCAPES
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%';
-a
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan*%' ESCAPE '*';
-a
-hakan%
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan**%' ESCAPE '**';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%' ESCAPE '\\';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan%' ESCAPE '';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha\%an' ESCAPE 0x5c;
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha|%an' ESCAPE '|';
-a
-ha%an
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\n%' ESCAPE '\n';
-ERROR HY000: Incorrect arguments to ESCAPE
-SET @@SQL_MODE=@OLD_SQL_MODE12595;
-DROP TABLE BUG_12595;
-create table t1 (a char(1));
-create table t2 (a char(1));
-insert into t1 values ('a'),('b'),('c');
-insert into t2 values ('b'),('c'),('d');
-select a from t1 natural join t2;
-a
-b
-c
-select * from t1 natural join t2 where a = 'b';
-a
-b
-drop table t1, t2;
-CREATE TABLE t1 (`id` TINYINT);
-CREATE TABLE t2 (`id` TINYINT);
-CREATE TABLE t3 (`id` TINYINT);
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t2 VALUES (2);
-INSERT INTO t3 VALUES (3);
-SELECT t1.id,t3.id FROM t1 JOIN t2 ON (t2.id=t1.id) LEFT JOIN t3 USING (id);
-ERROR 23000: Column 'id' in from clause is ambiguous
-SELECT t1.id,t3.id FROM t1 JOIN t2 ON (t2.notacolumn=t1.id) LEFT JOIN t3 USING (id);
-ERROR 23000: Column 'id' in from clause is ambiguous
-SELECT id,t3.id FROM t1 JOIN t2 ON (t2.id=t1.id) LEFT JOIN t3 USING (id);
-ERROR 23000: Column 'id' in from clause is ambiguous
-SELECT id,t3.id FROM (t1 JOIN t2 ON (t2.id=t1.id)) LEFT JOIN t3 USING (id);
-ERROR 23000: Column 'id' in from clause is ambiguous
-drop table t1, t2, t3;
-create table t1 (a int(10),b int(10));
-create table t2 (a int(10),b int(10));
-insert into t1 values (1,10),(2,20),(3,30);
-insert into t2 values (1,10);
-select * from t1 inner join t2 using (A);
-a b b
-1 10 10
-select * from t1 inner join t2 using (a);
-a b b
-1 10 10
-drop table t1, t2;
-create table t1 (a int, c int);
-create table t2 (b int);
-create table t3 (b int, a int);
-create table t4 (c int);
-insert into t1 values (1,1);
-insert into t2 values (1);
-insert into t3 values (1,1);
-insert into t4 values (1);
-select * from t1 join t2 join t3 on (t2.b = t3.b and t1.a = t3.a);
-a c b b a
-1 1 1 1 1
-select * from t1, t2 join t3 on (t2.b = t3.b and t1.a = t3.a);
-ERROR 42S22: Unknown column 't1.a' in 'on clause'
-select * from t1 join t2 join t3 join t4 on (t1.a = t4.c and t2.b = t4.c);
-a c b b a c
-1 1 1 1 1 1
-select * from t1 join t2 join t4 using (c);
-c a b
-1 1 1
-drop table t1, t2, t3, t4;
-create table t1(x int, y int);
-create table t2(x int, y int);
-create table t3(x int, primary key(x));
-insert into t1 values (1, 1), (2, 1), (3, 1), (4, 3), (5, 6), (6, 6);
-insert into t2 values (1, 1), (2, 1), (3, 3), (4, 6), (5, 6);
-insert into t3 values (1), (2), (3), (4), (5);
-select t1.x, t3.x from t1, t2, t3 where t1.x = t2.x and t3.x >= t1.y and t3.x <= t2.y;
-x x
-1 1
-2 1
-3 1
-3 2
-3 3
-4 3
-4 4
-4 5
-drop table t1,t2,t3;
-create table t1 (id char(16) not null default '', primary key (id));
-insert into t1 values ('100'),('101'),('102');
-create table t2 (id char(16) default null);
-insert into t2 values (1);
-create view v1 as select t1.id from t1;
-create view v2 as select t2.id from t2;
-create view v3 as select (t1.id+2) as id from t1 natural left join t2;
-select t1.id from t1 left join v2 using (id);
-id
-100
-101
-102
-select t1.id from v2 right join t1 using (id);
-id
-100
-101
-102
-select t1.id from t1 left join v3 using (id);
-id
-100
-101
-102
-select * from t1 left join v2 using (id);
-id
-100
-101
-102
-select * from v2 right join t1 using (id);
-id
-100
-101
-102
-select * from t1 left join v3 using (id);
-id
-100
-101
-102
-select v1.id from v1 left join v2 using (id);
-id
-100
-101
-102
-select v1.id from v2 right join v1 using (id);
-id
-100
-101
-102
-select v1.id from v1 left join v3 using (id);
-id
-100
-101
-102
-select * from v1 left join v2 using (id);
-id
-100
-101
-102
-select * from v2 right join v1 using (id);
-id
-100
-101
-102
-select * from v1 left join v3 using (id);
-id
-100
-101
-102
-drop table t1, t2;
-drop view v1, v2, v3;
-create table t1 (id int(11) not null default '0');
-insert into t1 values (123),(191),(192);
-create table t2 (id char(16) character set utf8 not null);
-insert into t2 values ('58013'),('58014'),('58015'),('58016');
-create table t3 (a_id int(11) not null, b_id char(16) character set utf8);
-insert into t3 values (123,null),(123,null),(123,null),(123,null),(123,null),(123,'58013');
-select count(*)
-from t1 inner join (t3 left join t2 on t2.id = t3.b_id) on t1.id = t3.a_id;
-count(*)
-6
-select count(*)
-from t1 inner join (t2 right join t3 on t2.id = t3.b_id) on t1.id = t3.a_id;
-count(*)
-6
-drop table t1,t2,t3;
-create table t1 (a int);
-create table t2 (b int);
-create table t3 (c int);
-select * from t1 join t2 join t3 on (t1.a=t3.c);
-a b c
-select * from t1 join t2 left join t3 on (t1.a=t3.c);
-a b c
-select * from t1 join t2 right join t3 on (t1.a=t3.c);
-a b c
-select * from t1 join t2 straight_join t3 on (t1.a=t3.c);
-a b c
-drop table t1, t2 ,t3;
-create table t1(f1 int, f2 date);
-insert into t1 values(1,'2005-01-01'),(2,'2005-09-01'),(3,'2005-09-30'),
-(4,'2005-10-01'),(5,'2005-12-30');
-select * from t1 where f2 >= 0 order by f2;
-f1 f2
-1 2005-01-01
-2 2005-09-01
-3 2005-09-30
-4 2005-10-01
-5 2005-12-30
-select * from t1 where f2 >= '0000-00-00' order by f2;
-f1 f2
-1 2005-01-01
-2 2005-09-01
-3 2005-09-30
-4 2005-10-01
-5 2005-12-30
-select * from t1 where f2 >= '2005-09-31' order by f2;
-f1 f2
-4 2005-10-01
-5 2005-12-30
-select * from t1 where f2 >= '2005-09-3a' order by f2;
-f1 f2
-3 2005-09-30
-4 2005-10-01
-5 2005-12-30
-Warnings:
-Warning 1292 Truncated incorrect date value: '2005-09-3a'
-select * from t1 where f2 <= '2005-09-31' order by f2;
-f1 f2
-1 2005-01-01
-2 2005-09-01
-3 2005-09-30
-select * from t1 where f2 <= '2005-09-3a' order by f2;
-f1 f2
-1 2005-01-01
-2 2005-09-01
-Warnings:
-Warning 1292 Truncated incorrect date value: '2005-09-3a'
-drop table t1;
-create table t1 (f1 int, f2 int);
-insert into t1 values (1, 30), (2, 20), (3, 10);
-create algorithm=merge view v1 as select f1, f2 from t1;
-create algorithm=merge view v2 (f2, f1) as select f1, f2 from t1;
-create algorithm=merge view v3 as select t1.f1 as f2, t1.f2 as f1 from t1;
-select t1.f1 as x1, f1 from t1 order by t1.f1;
-x1 f1
-1 1
-2 2
-3 3
-select v1.f1 as x1, f1 from v1 order by v1.f1;
-x1 f1
-1 1
-2 2
-3 3
-select v2.f1 as x1, f1 from v2 order by v2.f1;
-x1 f1
-10 10
-20 20
-30 30
-select v3.f1 as x1, f1 from v3 order by v3.f1;
-x1 f1
-10 10
-20 20
-30 30
-select f1, f2, v1.f1 as x1 from v1 order by v1.f1;
-f1 f2 x1
-1 30 1
-2 20 2
-3 10 3
-select f1, f2, v2.f1 as x1 from v2 order by v2.f1;
-f1 f2 x1
-10 3 10
-20 2 20
-30 1 30
-select f1, f2, v3.f1 as x1 from v3 order by v3.f1;
-f1 f2 x1
-10 3 10
-20 2 20
-30 1 30
-drop table t1;
-drop view v1, v2, v3;
-CREATE TABLE t1(key_a int4 NOT NULL, optimus varchar(32), PRIMARY KEY(key_a));
-CREATE TABLE t2(key_a int4 NOT NULL, prime varchar(32), PRIMARY KEY(key_a));
-CREATE table t3(key_a int4 NOT NULL, key_b int4 NOT NULL, foo varchar(32),
-PRIMARY KEY(key_a,key_b));
-INSERT INTO t1 VALUES (0,'');
-INSERT INTO t1 VALUES (1,'i');
-INSERT INTO t1 VALUES (2,'j');
-INSERT INTO t1 VALUES (3,'k');
-INSERT INTO t2 VALUES (1,'r');
-INSERT INTO t2 VALUES (2,'s');
-INSERT INTO t2 VALUES (3,'t');
-INSERT INTO t3 VALUES (1,5,'x');
-INSERT INTO t3 VALUES (1,6,'y');
-INSERT INTO t3 VALUES (2,5,'xx');
-INSERT INTO t3 VALUES (2,6,'yy');
-INSERT INTO t3 VALUES (2,7,'zz');
-INSERT INTO t3 VALUES (3,5,'xxx');
-SELECT t2.key_a,foo
-FROM t1 INNER JOIN t2 ON t1.key_a = t2.key_a
-INNER JOIN t3 ON t1.key_a = t3.key_a
-WHERE t2.key_a=2 and key_b=5;
-key_a foo
-2 xx
-EXPLAIN SELECT t2.key_a,foo
-FROM t1 INNER JOIN t2 ON t1.key_a = t2.key_a
-INNER JOIN t3 ON t1.key_a = t3.key_a
-WHERE t2.key_a=2 and key_b=5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t3 const PRIMARY PRIMARY 8 const,const 1
-SELECT t2.key_a,foo
-FROM t1 INNER JOIN t2 ON t2.key_a = t1.key_a
-INNER JOIN t3 ON t1.key_a = t3.key_a
-WHERE t2.key_a=2 and key_b=5;
-key_a foo
-2 xx
-EXPLAIN SELECT t2.key_a,foo
-FROM t1 INNER JOIN t2 ON t2.key_a = t1.key_a
-INNER JOIN t3 ON t1.key_a = t3.key_a
-WHERE t2.key_a=2 and key_b=5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t3 const PRIMARY PRIMARY 8 const,const 1
-DROP TABLE t1,t2,t3;
-create table t1 (f1 int);
-insert into t1 values(1),(2);
-create table t2 (f2 int, f3 int, key(f2));
-insert into t2 values(1,1),(2,2);
-create table t3 (f4 int not null);
-insert into t3 values (2),(2),(2);
-select f1,(select count(*) from t2,t3 where f2=f1 and f3=f4) as count from t1;
-f1 count
-1 0
-2 3
-drop table t1,t2,t3;
-create table t1 (f1 int unique);
-create table t2 (f2 int unique);
-create table t3 (f3 int unique);
-insert into t1 values(1),(2);
-insert into t2 values(1),(2);
-insert into t3 values(1),(NULL);
-select * from t3 where f3 is null;
-f3
-NULL
-select t2.f2 from t1 left join t2 on f1=f2 join t3 on f1=f3 where f1=1;
-f2
-1
-drop table t1,t2,t3;
-create table t1(f1 char, f2 char not null);
-insert into t1 values(null,'a');
-create table t2 (f2 char not null);
-insert into t2 values('b');
-select * from t1 left join t2 on f1=t2.f2 where t1.f2='a';
-f1 f2 f2
-NULL a NULL
-drop table t1,t2;
-select * from (select * left join t on f1=f2) tt;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'left join t on f1=f2) tt' at line 1
-CREATE TABLE t1 (sku int PRIMARY KEY, pr int);
-CREATE TABLE t2 (sku int PRIMARY KEY, sppr int, name varchar(255));
-INSERT INTO t1 VALUES
-(10, 10), (20, 10), (30, 20), (40, 30), (50, 10), (60, 10);
-INSERT INTO t2 VALUES
-(10, 10, 'aaa'), (20, 10, 'bbb'), (30, 10, 'ccc'), (40, 20, 'ddd'),
-(50, 10, 'eee'), (60, 20, 'fff'), (70, 20, 'ggg'), (80, 30, 'hhh');
-SELECT t2.sku, t2.sppr, t2.name, t1.sku, t1.pr
-FROM t2, t1 WHERE t2.sku=20 AND (t2.sku=t1.sku OR t2.sppr=t1.sku);
-sku sppr name sku pr
-20 10 bbb 10 10
-20 10 bbb 20 10
-EXPLAIN
-SELECT t2.sku, t2.sppr, t2.name, t1.sku, t1.pr
-FROM t2, t1 WHERE t2.sku=20 AND (t2.sku=t1.sku OR t2.sppr=t1.sku);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 2 Using index condition; Using where
-DROP TABLE t1,t2;
-SET SQL_MODE='NO_UNSIGNED_SUBTRACTION';
-CREATE TABLE t1 (i TINYINT UNSIGNED NOT NULL);
-INSERT t1 SET i = 0;
-UPDATE t1 SET i = -1;
-Warnings:
-Warning 1264 Out of range value for column 'i' at row 1
-SELECT * FROM t1;
-i
-0
-UPDATE t1 SET i = CAST(i - 1 AS SIGNED);
-Warnings:
-Warning 1264 Out of range value for column 'i' at row 1
-SELECT * FROM t1;
-i
-0
-UPDATE t1 SET i = i - 1;
-Warnings:
-Warning 1264 Out of range value for column 'i' at row 1
-SELECT * FROM t1;
-i
-0
-DROP TABLE t1;
-SET SQL_MODE=default;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, c int, e int, primary key(a,b,c));
-insert into t2 select A.a, B.a, C.a, C.a from t1 A, t1 B, t1 C;
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status OK
-select 'In next EXPLAIN, B.rows must be exactly 10:' Z;
-Z
-In next EXPLAIN, B.rows must be exactly 10:
-explain select * from t2 A, t2 B where A.a=5 and A.b=5 and A.C<5
-and B.a=5 and B.b=A.e and (B.b =1 or B.b = 3 or B.b=5);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE A range PRIMARY PRIMARY 12 NULL 4 Using index condition; Using where
-1 SIMPLE B ref PRIMARY PRIMARY 8 const,test.A.e 10
-drop table t1, t2;
-CREATE TABLE t1 (a int PRIMARY KEY, b int, INDEX(b));
-INSERT INTO t1 VALUES (1, 3), (9,4), (7,5), (4,5), (6,2),
-(3,1), (5,1), (8,9), (2,2), (0,9);
-CREATE TABLE t2 (c int, d int, f int, INDEX(c,f));
-INSERT INTO t2 VALUES
-(1,0,0), (1,0,1), (2,0,0), (2,0,1), (3,0,0), (4,0,1),
-(5,0,0), (5,0,1), (6,0,0), (0,0,1), (7,0,0), (7,0,1),
-(0,0,0), (0,0,1), (8,0,0), (8,0,1), (9,0,0), (9,0,1);
-EXPLAIN
-SELECT a, c, d, f FROM t1,t2 WHERE a=c AND b BETWEEN 4 AND 6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,b b 5 NULL 3 Using index condition
-1 SIMPLE t2 ref c c 5 test.t1.a 2
-EXPLAIN
-SELECT a, c, d, f FROM t1,t2 WHERE a=c AND b BETWEEN 4 AND 6 AND a > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY,b b 5 NULL 3 Using index condition; Using where
-1 SIMPLE t2 ref c c 5 test.t1.a 2
-DROP TABLE t1, t2;
-create table t1 (
-a int unsigned not null auto_increment primary key,
-b bit not null,
-c bit not null
-);
-create table t2 (
-a int unsigned not null auto_increment primary key,
-b bit not null,
-c int unsigned not null,
-d varchar(50)
-);
-insert into t1 (b,c) values (0,1), (0,1);
-insert into t2 (b,c) values (0,1);
-select t1.a, t1.b + 0, t1.c + 0, t2.a, t2.b + 0, t2.c, t2.d
-from t1 left outer join t2 on t1.a = t2.c and t2.b <> 1
-where t1.b <> 1 order by t1.a;
-a t1.b + 0 t1.c + 0 a t2.b + 0 c d
-1 0 1 1 0 1 NULL
-2 0 1 NULL NULL NULL NULL
-drop table t1,t2;
-SELECT 0.9888889889 * 1.011111411911;
-0.9888889889 * 1.011111411911
-0.9998769417899202067879
-prepare stmt from 'select 1 as " a "';
-Warnings:
-Warning 1466 Leading spaces are removed from name ' a '
-execute stmt;
-a
-1
-CREATE TABLE t1 (a int NOT NULL PRIMARY KEY, b int NOT NULL);
-INSERT INTO t1 VALUES (1,1), (2,2), (3,3), (4,4);
-CREATE TABLE t2 (c int NOT NULL, INDEX idx(c));
-INSERT INTO t2 VALUES
-(1), (1), (1), (1), (1), (1), (1), (1),
-(2), (2), (2), (2),
-(3), (3),
-(4);
-EXPLAIN SELECT b FROM t1, t2 WHERE b=c AND a=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 ref idx idx 4 const 7 Using index
-EXPLAIN SELECT b FROM t1, t2 WHERE b=c AND a=4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 ref idx idx 4 const 1 Using index
-DROP TABLE t1, t2;
-CREATE TABLE t1 (id int NOT NULL PRIMARY KEY, a int);
-INSERT INTO t1 VALUES (1,2), (2,NULL), (3,2);
-CREATE TABLE t2 (b int, c INT, INDEX idx1(b));
-INSERT INTO t2 VALUES (2,1), (3,2);
-CREATE TABLE t3 (d int, e int, INDEX idx1(d));
-INSERT INTO t3 VALUES (2,10), (2,20), (1,30), (2,40), (2,50);
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2 ON t2.b=t1.a INNER JOIN t3 ON t3.d=t1.id
-WHERE t1.id=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 const idx1 NULL NULL NULL 1
-1 SIMPLE t3 ref idx1 idx1 5 const 3
-SELECT * FROM t1 LEFT JOIN t2 ON t2.b=t1.a INNER JOIN t3 ON t3.d=t1.id
-WHERE t1.id=2;
-id a b c d e
-2 NULL NULL NULL 2 10
-2 NULL NULL NULL 2 20
-2 NULL NULL NULL 2 40
-2 NULL NULL NULL 2 50
-DROP TABLE t1,t2,t3;
-create table t1 (c1 varchar(1), c2 int, c3 int, c4 int, c5 int, c6 int,
-c7 int, c8 int, c9 int, fulltext key (`c1`));
-select distinct match (`c1`) against ('z') , c2, c3, c4,c5, c6,c7, c8
-from t1 where c9=1 order by c2, c2;
-match (`c1`) against ('z') c2 c3 c4 c5 c6 c7 c8
-drop table t1;
-CREATE TABLE t1 (pk varchar(10) PRIMARY KEY, fk varchar(16));
-CREATE TABLE t2 (pk varchar(16) PRIMARY KEY, fk varchar(10));
-INSERT INTO t1 VALUES
-('d','dddd'), ('i','iii'), ('a','aa'), ('b','bb'), ('g','gg'),
-('e','eee'), ('c','cccc'), ('h','hhh'), ('j','jjj'), ('f','fff');
-INSERT INTO t2 VALUES
-('jjj', 'j'), ('cc','c'), ('ccc','c'), ('aaa', 'a'), ('jjjj','j'),
-('hhh','h'), ('gg','g'), ('fff','f'), ('ee','e'), ('ffff','f'),
-('bbb','b'), ('ff','f'), ('cccc','c'), ('dddd','d'), ('jj','j'),
-('aaaa','a'), ('bb','b'), ('eeee','e'), ('aa','a'), ('hh','h');
-EXPLAIN SELECT t2.*
-FROM t1 JOIN t2 ON t2.fk=t1.pk
-WHERE t2.fk < 'c' AND t2.pk=t1.fk;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL 3 Using index condition; Using where
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 18 test.t1.fk 1 Using where
-EXPLAIN SELECT t2.*
-FROM t1 JOIN t2 ON t2.fk=t1.pk
-WHERE t2.fk BETWEEN 'a' AND 'b' AND t2.pk=t1.fk;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL 2 Using index condition; Using where
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 18 test.t1.fk 1 Using where
-EXPLAIN SELECT t2.*
-FROM t1 JOIN t2 ON t2.fk=t1.pk
-WHERE t2.fk IN ('a','b') AND t2.pk=t1.fk;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL 2 Using index condition; Using where
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 18 test.t1.fk 1 Using where
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b varchar(20) NOT NULL, PRIMARY KEY(a));
-CREATE TABLE t2 (a int, b varchar(20) NOT NULL,
-PRIMARY KEY (a), UNIQUE KEY (b));
-INSERT INTO t1 VALUES (1,'a'),(2,'b'),(3,'c');
-INSERT INTO t2 VALUES (1,'a'),(2,'b'),(3,'c');
-EXPLAIN SELECT t1.a FROM t1 LEFT JOIN t2 ON t2.b=t1.b WHERE t1.a=3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-DROP TABLE t1,t2;
-CREATE TABLE t1(id int PRIMARY KEY, b int, e int);
-CREATE TABLE t2(i int, a int, INDEX si(i), INDEX ai(a));
-CREATE TABLE t3(a int PRIMARY KEY, c char(4), INDEX ci(c));
-INSERT INTO t1 VALUES
-(1,10,19), (2,20,22), (4,41,42), (9,93,95), (7, 77,79),
-(6,63,67), (5,55,58), (3,38,39), (8,81,89);
-INSERT INTO t2 VALUES
-(21,210), (41,410), (82,820), (83,830), (84,840),
-(65,650), (51,510), (37,370), (94,940), (76,760),
-(22,220), (33,330), (40,400), (95,950), (38,380),
-(67,670), (88,880), (57,570), (96,960), (97,970);
-INSERT INTO t3 VALUES
-(210,'bb'), (950,'ii'), (400,'ab'), (500,'ee'), (220,'gg'),
-(440,'gg'), (310,'eg'), (380,'ee'), (840,'bb'), (830,'ff'),
-(230,'aa'), (960,'ii'), (410,'aa'), (510,'ee'), (290,'bb'),
-(450,'gg'), (320,'dd'), (390,'hh'), (850,'jj'), (860,'ff');
-EXPLAIN
-SELECT t3.a FROM t1,t2 FORCE INDEX (si),t3
-WHERE t1.id = 8 AND t2.i BETWEEN t1.b AND t1.e AND
-t3.a=t2.a AND t3.c IN ('bb','ee');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range si si 5 NULL 4 Using index condition; Using where
-1 SIMPLE t3 eq_ref PRIMARY,ci PRIMARY 4 test.t2.a 1 Using where
-EXPLAIN
-SELECT t3.a FROM t1,t2,t3
-WHERE t1.id = 8 AND t2.i BETWEEN t1.b AND t1.e AND
-t3.a=t2.a AND t3.c IN ('bb','ee') ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range si,ai si 5 NULL 4 Using index condition; Using where
-1 SIMPLE t3 eq_ref PRIMARY,ci PRIMARY 4 test.t2.a 1 Using where
-EXPLAIN
-SELECT t3.a FROM t1,t2 FORCE INDEX (si),t3
-WHERE t1.id = 8 AND (t2.i=t1.b OR t2.i=t1.e) AND t3.a=t2.a AND
-t3.c IN ('bb','ee');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range si si 5 NULL 2 Using index condition; Using where
-1 SIMPLE t3 eq_ref PRIMARY,ci PRIMARY 4 test.t2.a 1 Using where
-EXPLAIN
-SELECT t3.a FROM t1,t2,t3
-WHERE t1.id = 8 AND (t2.i=t1.b OR t2.i=t1.e) AND t3.a=t2.a AND
-t3.c IN ('bb','ee');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t2 range si,ai si 5 NULL 2 Using index condition; Using where
-1 SIMPLE t3 eq_ref PRIMARY,ci PRIMARY 4 test.t2.a 1 Using where
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 ( f1 int primary key, f2 int, f3 int, f4 int, f5 int, f6 int, checked_out int);
-CREATE TABLE t2 ( f11 int PRIMARY KEY );
-INSERT INTO t1 VALUES (1,1,1,0,0,0,0),(2,1,1,3,8,1,0),(3,1,1,4,12,1,0);
-INSERT INTO t2 VALUES (62);
-SELECT * FROM t1 LEFT JOIN t2 ON f11 = t1.checked_out GROUP BY f1 ORDER BY f2, f3, f4, f5 LIMIT 0, 1;
-f1 f2 f3 f4 f5 f6 checked_out f11
-1 1 1 0 0 0 0 NULL
-DROP TABLE t1, t2;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a int);
-INSERT into t1 values (1), (2), (3);
-SELECT * FROM t1 LIMIT 2, -1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1' at line 1
-DROP TABLE t1;
-CREATE TABLE t1 (
-ID_with_null int NULL,
-ID_better int NOT NULL,
-INDEX idx1 (ID_with_null),
-INDEX idx2 (ID_better)
-);
-INSERT INTO t1 VALUES (1,1), (2,1), (null,3), (null,3), (null,3), (null,3);
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID_with_null IS NULL;
-SELECT COUNT(*) FROM t1 WHERE ID_with_null IS NULL;
-COUNT(*)
-128
-SELECT COUNT(*) FROM t1 WHERE ID_better=1;
-COUNT(*)
-2
-EXPLAIN SELECT * FROM t1 WHERE ID_better=1 AND ID_with_null IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-DROP INDEX idx1 ON t1;
-CREATE UNIQUE INDEX idx1 ON t1(ID_with_null);
-EXPLAIN SELECT * FROM t1 WHERE ID_better=1 AND ID_with_null IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-DROP TABLE t1;
-CREATE TABLE t1 (
-ID1_with_null int NULL,
-ID2_with_null int NULL,
-ID_better int NOT NULL,
-INDEX idx1 (ID1_with_null, ID2_with_null),
-INDEX idx2 (ID_better)
-);
-INSERT INTO t1 VALUES (1,1,1), (2,2,1), (3,null,3), (null,3,3), (null,null,3),
-(3,null,3), (null,3,3), (null,null,3), (3,null,3), (null,3,3), (null,null,3);
-INSERT INTO t1 SELECT * FROM t1 WHERE ID1_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID2_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID1_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID2_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID1_with_null IS NULL;
-INSERT INTO t1 SELECT * FROM t1 WHERE ID2_with_null IS NULL;
-SELECT COUNT(*) FROM t1 WHERE ID1_with_null IS NULL AND ID2_with_null=3;
-COUNT(*)
-24
-SELECT COUNT(*) FROM t1 WHERE ID1_with_null=3 AND ID2_with_null IS NULL;
-COUNT(*)
-24
-SELECT COUNT(*) FROM t1 WHERE ID1_with_null IS NULL AND ID2_with_null IS NULL;
-COUNT(*)
-192
-SELECT COUNT(*) FROM t1 WHERE ID_better=1;
-COUNT(*)
-2
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND ID2_with_null=3 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null=3 AND ID2_with_null=3 IS NULL ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND ID2_with_null IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-DROP INDEX idx1 ON t1;
-CREATE UNIQUE INDEX idx1 ON t1(ID1_with_null,ID2_with_null);
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND ID2_with_null=3 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null=3 AND ID2_with_null IS NULL ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND ID2_with_null IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-EXPLAIN SELECT * FROM t1
-WHERE ID_better=1 AND ID1_with_null IS NULL AND
-(ID2_with_null=1 OR ID2_with_null=2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref idx1,idx2 idx2 4 const 1 Using where
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, KEY ts(ts));
-INSERT INTO t1 VALUES (30,"2006-01-03 23:00:00"), (31,"2006-01-03 23:00:00");
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-CREATE TABLE t2 (a INT, dt1 DATETIME, dt2 DATETIME, PRIMARY KEY (a));
-INSERT INTO t2 VALUES (30, "2006-01-01 00:00:00", "2999-12-31 00:00:00");
-INSERT INTO t2 SELECT a+1,dt1,dt2 FROM t2;
-ANALYZE TABLE t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status OK
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2 ON (t1.a=t2.a) WHERE t1.a=30
-AND t1.ts BETWEEN t2.dt1 AND t2.dt2
-AND t1.ts BETWEEN "2006-01-01" AND "2006-12-31";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1
-1 SIMPLE t1 range ts ts 4 NULL 1 Using index condition; Using where
-SELECT * FROM t1 LEFT JOIN t2 ON (t1.a=t2.a) WHERE t1.a=30
-AND t1.ts BETWEEN t2.dt1 AND t2.dt2
-AND t1.ts BETWEEN "2006-01-01" AND "2006-12-31";
-a ts a dt1 dt2
-30 2006-01-03 23:00:00 30 2006-01-01 00:00:00 2999-12-31 00:00:00
-DROP TABLE t1,t2;
-create table t1 (a bigint unsigned);
-insert into t1 values
-(if(1, 9223372036854775808, 1)),
-(case when 1 then 9223372036854775808 else 1 end),
-(coalesce(9223372036854775808, 1));
-select * from t1;
-a
-9223372036854775808
-9223372036854775808
-9223372036854775808
-drop table t1;
-create table t1 select
-if(1, 9223372036854775808, 1) i,
-case when 1 then 9223372036854775808 else 1 end c,
-coalesce(9223372036854775808, 1) co;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` decimal(19,0) NOT NULL,
- `c` decimal(19,0) NOT NULL,
- `co` decimal(19,0) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select
-if(1, cast(1111111111111111111 as unsigned), 1) i,
-case when 1 then cast(1111111111111111111 as unsigned) else 1 end c,
-coalesce(cast(1111111111111111111 as unsigned), 1) co;
-i c co
-1111111111111111111 1111111111111111111 1111111111111111111
-CREATE TABLE t1 (name varchar(255));
-CREATE TABLE t2 (name varchar(255), n int, KEY (name(3)));
-INSERT INTO t1 VALUES ('ccc'), ('bb'), ('cc '), ('aa '), ('aa');
-INSERT INTO t2 VALUES ('bb',1), ('aa',2), ('cc ',3);
-INSERT INTO t2 VALUES (concat('cc ', 0x06), 4);
-INSERT INTO t2 VALUES ('cc',5), ('bb ',6), ('cc ',7);
-SELECT * FROM t2;
-name n
-bb 1
-aa 2
-cc 3
-cc  4
-cc 5
-bb 6
-cc 7
-SELECT * FROM t2 ORDER BY name;
-name n
-aa 2
-bb 1
-bb 6
-cc  4
-cc 3
-cc 5
-cc 7
-SELECT name, LENGTH(name), n FROM t2 ORDER BY name;
-name LENGTH(name) n
-aa 2 2
-bb 2 1
-bb 3 6
-cc  4 4
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref name name 6 const 3 Using where
-SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
-name LENGTH(name) n
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range name name 6 NULL 3 Using where
-SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
-name LENGTH(name) n
-cc 5 3
-cc  4 4
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range name name 6 NULL 3 Using where; Using filesort
-SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
-name LENGTH(name) n
-cc  4 4
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t1.name=t2.name;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref name name 6 test.t1.name 2 Using where
-SELECT * FROM t1 LEFT JOIN t2 ON t1.name=t2.name;
-name name n
-ccc NULL NULL
-bb bb 1
-bb bb 6
-cc cc 3
-cc cc 5
-cc cc 7
-aa aa 2
-aa aa 2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (name text);
-CREATE TABLE t2 (name text, n int, KEY (name(3)));
-INSERT INTO t1 VALUES ('ccc'), ('bb'), ('cc '), ('aa '), ('aa');
-INSERT INTO t2 VALUES ('bb',1), ('aa',2), ('cc ',3);
-INSERT INTO t2 VALUES (concat('cc ', 0x06), 4);
-INSERT INTO t2 VALUES ('cc',5), ('bb ',6), ('cc ',7);
-SELECT * FROM t2;
-name n
-bb 1
-aa 2
-cc 3
-cc  4
-cc 5
-bb 6
-cc 7
-SELECT * FROM t2 ORDER BY name;
-name n
-aa 2
-bb 1
-bb 6
-cc  4
-cc 3
-cc 5
-cc 7
-SELECT name, LENGTH(name), n FROM t2 ORDER BY name;
-name LENGTH(name) n
-aa 2 2
-bb 2 1
-bb 3 6
-cc  4 4
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref name name 6 const 3 Using where
-SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
-name LENGTH(name) n
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range name name 6 NULL 3 Using where
-SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
-name LENGTH(name) n
-cc 5 3
-cc  4 4
-cc 2 5
-cc 3 7
-EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range name name 6 NULL 3 Using where; Using filesort
-SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
-name LENGTH(name) n
-cc  4 4
-cc 5 3
-cc 2 5
-cc 3 7
-EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t1.name=t2.name;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5
-1 SIMPLE t2 ref name name 6 test.t1.name 2 Using where
-SELECT * FROM t1 LEFT JOIN t2 ON t1.name=t2.name;
-name name n
-ccc NULL NULL
-bb bb 1
-bb bb 6
-cc cc 3
-cc cc 5
-cc cc 7
-aa aa 2
-aa aa 2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-access_id int NOT NULL default '0',
-name varchar(20) default NULL,
-rank int NOT NULL default '0',
-KEY idx (access_id)
-);
-CREATE TABLE t2 (
-faq_group_id int NOT NULL default '0',
-faq_id int NOT NULL default '0',
-access_id int default NULL,
-UNIQUE KEY idx1 (faq_id),
-KEY idx2 (faq_group_id,faq_id)
-);
-INSERT INTO t1 VALUES
-(1,'Everyone',2),(2,'Help',3),(3,'Technical Support',1),(4,'Chat User',4);
-INSERT INTO t2 VALUES
-(261,265,1),(490,494,1);
-SELECT t2.faq_id
-FROM t1 INNER JOIN t2 IGNORE INDEX (idx1)
-ON (t1.access_id = t2.access_id)
-LEFT JOIN t2 t
-ON (t.faq_group_id = t2.faq_group_id AND
-find_in_set(t.access_id, '1,4') < find_in_set(t2.access_id, '1,4'))
-WHERE
-t2.access_id IN (1,4) AND t.access_id IS NULL AND t2.faq_id in (265);
-faq_id
-265
-SELECT t2.faq_id
-FROM t1 INNER JOIN t2
-ON (t1.access_id = t2.access_id)
-LEFT JOIN t2 t
-ON (t.faq_group_id = t2.faq_group_id AND
-find_in_set(t.access_id, '1,4') < find_in_set(t2.access_id, '1,4'))
-WHERE
-t2.access_id IN (1,4) AND t.access_id IS NULL AND t2.faq_id in (265);
-faq_id
-265
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT, KEY inx (b,a));
-INSERT INTO t1 VALUES (1,1), (1,2), (1,3), (1,4), (1,5), (1, 6), (1,7);
-EXPLAIN SELECT COUNT(*) FROM t1 f1 INNER JOIN t1 f2
-ON ( f1.b=f2.b AND f1.a<f2.a )
-WHERE 1 AND f1.b NOT IN (100,2232,3343,51111);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE f1 index inx inx 10 NULL 7 Using where; Using index
-1 SIMPLE f2 ref inx inx 5 test.f1.b 1 Using where; Using index
-DROP TABLE t1;
-CREATE TABLE t1 (c1 INT, c2 INT);
-INSERT INTO t1 VALUES (1,11), (2,22), (2,22);
-EXPLAIN SELECT c1 FROM t1 WHERE (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT COUNT(c2)))))))))))))))))))))))))))))))) > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-31 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-32 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-EXPLAIN SELECT c1 FROM t1 WHERE (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT COUNT(c2))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) > 0;
-ERROR HY000: Too high level of nesting for select
-DROP TABLE t1;
-CREATE TABLE t1 (
-c1 int(11) NOT NULL AUTO_INCREMENT,
-c2 varchar(1000) DEFAULT NULL,
-c3 bigint(20) DEFAULT NULL,
-c4 bigint(20) DEFAULT NULL,
-PRIMARY KEY (c1)
-);
-EXPLAIN EXTENDED
-SELECT join_2.c1
-FROM
-t1 AS join_0,
-t1 AS join_1,
-t1 AS join_2,
-t1 AS join_3,
-t1 AS join_4,
-t1 AS join_5,
-t1 AS join_6,
-t1 AS join_7
-WHERE
-join_0.c1=join_1.c1 AND
-join_1.c1=join_2.c1 AND
-join_2.c1=join_3.c1 AND
-join_3.c1=join_4.c1 AND
-join_4.c1=join_5.c1 AND
-join_5.c1=join_6.c1 AND
-join_6.c1=join_7.c1
-OR
-join_0.c2 < '?' AND
-join_1.c2 < '?' AND
-join_2.c2 > '?' AND
-join_2.c2 < '!' AND
-join_3.c2 > '?' AND
-join_4.c2 = '?' AND
-join_5.c2 <> '?' AND
-join_6.c2 <> '?' AND
-join_7.c2 >= '?' AND
-join_0.c1=join_1.c1 AND
-join_1.c1=join_2.c1 AND
-join_2.c1=join_3.c1 AND
-join_3.c1=join_4.c1 AND
-join_4.c1=join_5.c1 AND
-join_5.c1=join_6.c1 AND
-join_6.c1=join_7.c1
-GROUP BY
-join_3.c1,
-join_2.c1,
-join_7.c1,
-join_1.c1,
-join_0.c1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select NULL AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by NULL,NULL,NULL,NULL,NULL
-SHOW WARNINGS;
-Level Code Message
-Note 1003 select NULL AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by NULL,NULL,NULL,NULL,NULL
-DROP TABLE t1;
-SELECT 1 AS ` `;
-
-1
-Warnings:
-Warning 1474 Name ' ' has become ''
-SELECT 1 AS ` `;
-
-1
-Warnings:
-Warning 1474 Name ' ' has become ''
-SELECT 1 AS ` x`;
-x
-1
-Warnings:
-Warning 1466 Leading spaces are removed from name ' x'
-CREATE VIEW v1 AS SELECT 1 AS ``;
-ERROR 42000: Incorrect column name ''
-CREATE VIEW v1 AS SELECT 1 AS ` `;
-ERROR 42000: Incorrect column name ' '
-CREATE VIEW v1 AS SELECT 1 AS ` `;
-ERROR 42000: Incorrect column name ' '
-CREATE VIEW v1 AS SELECT (SELECT 1 AS ` `);
-ERROR 42000: Incorrect column name ' '
-CREATE VIEW v1 AS SELECT 1 AS ` x`;
-Warnings:
-Warning 1466 Leading spaces are removed from name ' x'
-SELECT `x` FROM v1;
-x
-1
-ALTER VIEW v1 AS SELECT 1 AS ` `;
-ERROR 42000: Incorrect column name ' '
-DROP VIEW v1;
-select str_to_date('2007-10-09','%Y-%m-%d') between '2007/10/01 00:00:00 GMT'
- and '2007/10/20 00:00:00 GMT';
-str_to_date('2007-10-09','%Y-%m-%d') between '2007/10/01 00:00:00 GMT'
- and '2007/10/20 00:00:00 GMT'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007/10/01 00:00:00 GMT'
-Warning 1292 Truncated incorrect datetime value: '2007/10/20 00:00:00 GMT'
-select str_to_date('2007-10-09','%Y-%m-%d') > '2007/10/01 00:00:00 GMT-6';
-str_to_date('2007-10-09','%Y-%m-%d') > '2007/10/01 00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007/10/01 00:00:00 GMT-6'
-select str_to_date('2007-10-09','%Y-%m-%d') <= '2007/10/20 00:00:00 GMT-6';
-str_to_date('2007-10-09','%Y-%m-%d') <= '2007/10/20 00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007/10/20 00:00:00 GMT-6'
-select str_to_date('2007-10-09','%Y-%m-%d') <= '2007/10/2000:00:00 GMT-6';
-str_to_date('2007-10-09','%Y-%m-%d') <= '2007/10/2000:00:00 GMT-6'
-0
-Warnings:
-Warning 1292 Incorrect datetime value: '2007/10/2000:00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-1 00:00:00 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-1 00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-1 00:00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 x00:00:00 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 x00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect date value: '2007-10-01 x00:00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:00:00 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 00:00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:x00:00 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:x00:00 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 00:x00:00 GMT-6'
-select str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 x12:34:56 GMT-6';
-str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 x12:34:56 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect date value: '2007-10-01 x12:34:56 GMT-6'
-select str_to_date('2007-10-01 12:34:00','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6';
-str_to_date('2007-10-01 12:34:00','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 12:34x:56 GMT-6'
-select str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6';
-str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6'
-0
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 12:34x:56 GMT-6'
-select str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34:56';
-str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34:56'
-1
-select str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 12:00:00';
-str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 12:00:00'
-0
-select str_to_date('2007-10-01 12','%Y-%m-%d %H') = '2007-10-01 12:00:00';
-str_to_date('2007-10-01 12','%Y-%m-%d %H') = '2007-10-01 12:00:00'
-1
-select str_to_date('2007-10-01 12:34','%Y-%m-%d %H') = '2007-10-01 12:00:00';
-str_to_date('2007-10-01 12:34','%Y-%m-%d %H') = '2007-10-01 12:00:00'
-1
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2007-10-01 12:34'
-select str_to_date('2007-02-30 12:34','%Y-%m-%d %H:%i') = '2007-02-30 12:34';
-str_to_date('2007-02-30 12:34','%Y-%m-%d %H:%i') = '2007-02-30 12:34'
-1
-select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34';
-str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34'
-1
-select str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01 00:00:00'
- and '2007/10/20 00:00:00';
-str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01 00:00:00'
- and '2007/10/20 00:00:00'
-1
-set SQL_MODE=TRADITIONAL;
-select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34';
-str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34'
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2007-10-00 12:34' for function str_to_date
-select str_to_date('2007-10-01 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34';
-str_to_date('2007-10-01 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34'
-0
-select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-01 12:34';
-str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-01 12:34'
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2007-10-00 12:34' for function str_to_date
-select str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01'
- and '2007/10/20';
-str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01'
- and '2007/10/20'
-NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '2007-10-00' for function str_to_date
-set SQL_MODE=DEFAULT;
-select str_to_date('2007-10-00','%Y-%m-%d') between '' and '2007/10/20';
-str_to_date('2007-10-00','%Y-%m-%d') between '' and '2007/10/20'
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-select str_to_date('','%Y-%m-%d') between '2007/10/01' and '2007/10/20';
-str_to_date('','%Y-%m-%d') between '2007/10/01' and '2007/10/20'
-0
-select str_to_date('','%Y-%m-%d %H:%i') = '2007-10-01 12:34';
-str_to_date('','%Y-%m-%d %H:%i') = '2007-10-01 12:34'
-0
-select str_to_date(NULL,'%Y-%m-%d %H:%i') = '2007-10-01 12:34';
-str_to_date(NULL,'%Y-%m-%d %H:%i') = '2007-10-01 12:34'
-NULL
-select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '';
-str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = ''
-0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-select str_to_date('1','%Y-%m-%d') = '1';
-str_to_date('1','%Y-%m-%d') = '1'
-0
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-select str_to_date('1','%Y-%m-%d') = '1';
-str_to_date('1','%Y-%m-%d') = '1'
-0
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-select str_to_date('','%Y-%m-%d') = '';
-str_to_date('','%Y-%m-%d') = ''
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-select str_to_date('2000-01-01','%Y-%m-%d') between '1000-01-01' and '2001-01-01';
-str_to_date('2000-01-01','%Y-%m-%d') between '1000-01-01' and '2001-01-01'
-1
-select str_to_date('2000-01-01','%Y-%m-%d') between '1000-01-01' and NULL;
-str_to_date('2000-01-01','%Y-%m-%d') between '1000-01-01' and NULL
-NULL
-select str_to_date('2000-01-01','%Y-%m-%d') between NULL and '2001-01-01';
-str_to_date('2000-01-01','%Y-%m-%d') between NULL and '2001-01-01'
-NULL
-select str_to_date('2000-01-01','%Y-%m-%d') between '2001-01-01' and NULL;
-str_to_date('2000-01-01','%Y-%m-%d') between '2001-01-01' and NULL
-0
-select str_to_date('2000-01-01','%Y-%m-%d') between NULL and '1000-01-01';
-str_to_date('2000-01-01','%Y-%m-%d') between NULL and '1000-01-01'
-0
-select str_to_date('2000-01-01','%Y-%m-%d') between NULL and NULL;
-str_to_date('2000-01-01','%Y-%m-%d') between NULL and NULL
-NULL
-CREATE TABLE t1 (c11 INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY);
-CREATE TABLE t2 (c21 INT UNSIGNED NOT NULL,
-c22 INT DEFAULT NULL,
-KEY(c21, c22));
-CREATE TABLE t3 (c31 INT UNSIGNED NOT NULL DEFAULT 0,
-c32 INT DEFAULT NULL,
-c33 INT NOT NULL,
-c34 INT UNSIGNED DEFAULT 0,
-KEY (c33, c34, c32));
-INSERT INTO t1 values (),(),(),(),();
-INSERT INTO t2 SELECT a.c11, b.c11 FROM t1 a, t1 b;
-INSERT INTO t3 VALUES (1, 1, 1, 0),
-(2, 2, 0, 0),
-(3, 3, 1, 0),
-(4, 4, 0, 0),
-(5, 5, 1, 0);
-SELECT c32 FROM t1, t2, t3 WHERE t1.c11 IN (1, 3, 5) AND
-t3.c31 = t1.c11 AND t2.c21 = t1.c11 AND
-t3.c33 = 1 AND t2.c22 in (1, 3)
-ORDER BY c32;
-c32
-1
-1
-3
-3
-5
-5
-SELECT c32 FROM t1, t2, t3 WHERE t1.c11 IN (1, 3, 5) AND
-t3.c31 = t1.c11 AND t2.c21 = t1.c11 AND
-t3.c33 = 1 AND t2.c22 in (1, 3)
-ORDER BY c32 DESC;
-c32
-5
-5
-3
-3
-1
-1
-DROP TABLE t1, t2, t3;
-
-#
-# Bug#30736: Row Size Too Large Error Creating a Table and
-# Inserting Data.
-#
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-
-CREATE TABLE t1(
-c1 DECIMAL(10, 2),
-c2 FLOAT);
-
-INSERT INTO t1 VALUES (0, 1), (2, 3), (4, 5);
-
-CREATE TABLE t2(
-c3 DECIMAL(10, 2))
-SELECT
-c1 * c2 AS c3
-FROM t1;
-
-SELECT * FROM t1;
-c1 c2
-0.00 1
-2.00 3
-4.00 5
-
-SELECT * FROM t2;
-c3
-0.00
-6.00
-20.00
-
-DROP TABLE t1;
-DROP TABLE t2;
-
-CREATE TABLE t1 (c1 BIGINT NOT NULL);
-INSERT INTO t1 (c1) VALUES (1);
-SELECT * FROM t1 WHERE c1 > NULL + 1;
-c1
-DROP TABLE t1;
-
-CREATE TABLE t1 (a VARCHAR(10) NOT NULL PRIMARY KEY);
-INSERT INTO t1 (a) VALUES ('foo0'), ('bar0'), ('baz0');
-SELECT * FROM t1 WHERE a IN (CONCAT('foo', 0), 'bar');
-a
-foo0
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-CREATE TABLE t2 (a INT, c INT, KEY(a));
-INSERT INTO t1 VALUES (1, 1), (2, 2);
-INSERT INTO t2 VALUES (1, 1), (1, 2), (1, 3), (1, 4), (1, 5),
-(2, 1), (2, 2), (2, 3), (2, 4), (2, 5),
-(3, 1), (3, 2), (3, 3), (3, 4), (3, 5),
-(4, 1), (4, 2), (4, 3), (4, 4), (4, 5);
-FLUSH STATUS;
-SELECT DISTINCT b FROM t1 LEFT JOIN t2 USING(a) WHERE c <= 3;
-b
-1
-2
-SHOW STATUS LIKE 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 6
-DROP TABLE t1, t2;
-CREATE TABLE t1 (f1 bigint(20) NOT NULL default '0',
-f2 int(11) NOT NULL default '0',
-f3 bigint(20) NOT NULL default '0',
-f4 varchar(255) NOT NULL default '',
-PRIMARY KEY (f1),
-KEY key1 (f4),
-KEY key2 (f2));
-CREATE TABLE t2 (f1 int(11) NOT NULL default '0',
-f2 enum('A1','A2','A3') NOT NULL default 'A1',
-f3 int(11) NOT NULL default '0',
-PRIMARY KEY (f1),
-KEY key1 (f3));
-CREATE TABLE t3 (f1 bigint(20) NOT NULL default '0',
-f2 datetime NOT NULL default '1980-01-01 00:00:00',
-PRIMARY KEY (f1));
-insert into t1 values (1, 1, 1, 'abc');
-insert into t1 values (2, 1, 2, 'def');
-insert into t1 values (3, 1, 2, 'def');
-insert into t2 values (1, 'A1', 1);
-insert into t3 values (1, '1980-01-01');
-SELECT a.f3, cr.f4, count(*) count
-FROM t2 a
-STRAIGHT_JOIN t1 cr ON cr.f2 = a.f1
-LEFT JOIN
-(t1 cr2
-JOIN t3 ae2 ON cr2.f3 = ae2.f1
-) ON a.f1 = cr2.f2 AND ae2.f2 < now() - INTERVAL 7 DAY AND
-cr.f4 = cr2.f4
-GROUP BY a.f3, cr.f4;
-f3 f4 count
-1 abc 1
-1 def 2
-drop table t1, t2, t3;
-CREATE TABLE t1 (a INT KEY, b INT);
-INSERT INTO t1 VALUES (1,1), (2,2), (3,3), (4,4);
-EXPLAIN EXTENDED SELECT a, b FROM t1 WHERE a > 1 AND a = b LIMIT 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 100.00 Using index condition; Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`b` = `test`.`t1`.`a` and `test`.`t1`.`a` > 1 limit 2
-EXPLAIN EXTENDED SELECT a, b FROM t1 WHERE a > 1 AND b = a LIMIT 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 100.00 Using index condition; Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`b` = `test`.`t1`.`a` and `test`.`t1`.`a` > 1 limit 2
-DROP TABLE t1;
-#
-# Bug#47019: Assertion failed: 0, file .\rt_mbr.c, line 138 when
-# forcing a spatial index
-#
-CREATE TABLE t1(a LINESTRING NOT NULL, SPATIAL KEY(a));
-INSERT INTO t1 VALUES
-(GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)')),
-(GEOMFROMTEXT('LINESTRING(-1 -1, 1 -1, -1 -1, -1 1, 1 1)'));
-EXPLAIN SELECT 1 FROM t1 NATURAL LEFT JOIN t1 AS t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL a NULL NULL NULL 2 Range checked for each record (index map: 0x1)
-SELECT 1 FROM t1 NATURAL LEFT JOIN t1 AS t2;
-1
-1
-1
-1
-1
-EXPLAIN SELECT 1 FROM t1 NATURAL LEFT JOIN t1 AS t2 FORCE INDEX(a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL a NULL NULL NULL 2 Range checked for each record (index map: 0x1)
-SELECT 1 FROM t1 NATURAL LEFT JOIN t1 AS t2 FORCE INDEX(a);
-1
-1
-1
-1
-1
-DROP TABLE t1;
-#
-# Bug #48291 : crash with row() operator,select into @var, and
-# subquery returning multiple rows
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (2),(3);
-# Should not crash
-SELECT 1 FROM t1 WHERE a <> 1 AND NOT
-ROW(1,a) <=> ROW(1,(SELECT 1 FROM t1))
-INTO @var0;
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1;
-#
-# Bug #48458: simple query tries to allocate enormous amount of
-# memory
-#
-CREATE TABLE t1(a INT NOT NULL, b YEAR);
-INSERT IGNORE INTO t1 VALUES ();
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-CREATE TABLE t2(c INT);
-# Should not err out because of out-of-memory
-SELECT 1 FROM t2 JOIN t1 ON 1=1
-WHERE a != '1' AND NOT a >= b OR NOT ROW(b,a )<> ROW(a,a);
-1
-DROP TABLE t1,t2;
-#
-# Bug #49199: Optimizer handles incorrectly:
-# field='const1' AND field='const2' in some cases
-
-CREATE TABLE t1(a DATETIME NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-a
-2001-01-01 00:00:00
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a DATE NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-a
-2001-01-01
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01' AS `a` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-INSERT INTO t1 VALUES('2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-a
-2001-01-01 00:00:00
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a DATETIME NOT NULL, b DATE NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01', '2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a=b AND b='2001-01-01 00:00:00';
-a b
-2001-01-01 00:00:00 2001-01-01
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a=b AND b='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a`,'2001-01-01' AS `b` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a DATETIME NOT NULL, b VARCHAR(20) NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01', '2001-01-01');
-SELECT * FROM t1 WHERE a='2001-01-01' AND a=b AND b='2001-01-01 00:00:00';
-a b
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a=b AND b='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a`,'2001-01-01' AS `b` from dual where 0
-SELECT * FROM t1 WHERE a='2001-01-01 00:00:00' AND a=b AND b='2001-01-01';
-a b
-2001-01-01 00:00:00 2001-01-01
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01 00:00:00' AND a=b AND b='2001-01-01';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a`,'2001-01-01' AS `b` from dual where 1
-DROP TABLE t1;
-CREATE TABLE t1(a DATETIME NOT NULL, b DATE NOT NULL);
-INSERT INTO t1 VALUES('2001-01-01', '2001-01-01');
-SELECT x.a, y.a, z.a FROM t1 x
-JOIN t1 y ON x.a=y.a
-JOIN t1 z ON y.a=z.a
-WHERE x.a='2001-01-01' AND z.a='2001-01-01 00:00:00';
-a a a
-2001-01-01 00:00:00 2001-01-01 00:00:00 2001-01-01 00:00:00
-EXPLAIN EXTENDED SELECT x.a, y.a, z.a FROM t1 x
-JOIN t1 y ON x.a=y.a
-JOIN t1 z ON y.a=z.a
-WHERE x.a='2001-01-01' AND z.a='2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE x system NULL NULL NULL NULL 1 100.00
-1 SIMPLE y system NULL NULL NULL NULL 1 100.00
-1 SIMPLE z system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select '2001-01-01 00:00:00' AS `a`,'2001-01-01 00:00:00' AS `a`,'2001-01-01 00:00:00' AS `a` from dual where 1
-DROP TABLE t1;
-#
-# Bug #49897: crash in ptr_compare when char(0) NOT NULL
-# column is used for ORDER BY
-#
-SET @old_sort_buffer_size= @@session.sort_buffer_size;
-SET @@sort_buffer_size= 40000;
-CREATE TABLE t1(a CHAR(0) NOT NULL);
-INSERT IGNORE INTO t1 VALUES (0), (0), (0);
-INSERT INTO t1 SELECT t11.a FROM t1 t11, t1 t12;
-INSERT INTO t1 SELECT t11.a FROM t1 t11, t1 t12;
-INSERT INTO t1 SELECT t11.a FROM t1 t11, t1 t12;
-EXPLAIN SELECT a FROM t1 ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492
-SELECT a FROM t1 ORDER BY a;
-DROP TABLE t1;
-CREATE TABLE t1(a CHAR(0) NOT NULL, b CHAR(0) NOT NULL, c int);
-INSERT IGNORE INTO t1 VALUES (0, 0, 0), (0, 0, 2), (0, 0, 1);
-INSERT INTO t1 SELECT t11.a, t11.b, t11.c FROM t1 t11, t1 t12;
-INSERT INTO t1 SELECT t11.a, t11.b, t11.c FROM t1 t11, t1 t12;
-INSERT INTO t1 SELECT t11.a, t11.b, t11.c FROM t1 t11, t1 t12;
-EXPLAIN SELECT a FROM t1 ORDER BY a LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492
-SELECT a FROM t1 ORDER BY a LIMIT 5;
-a
-
-
-
-
-
-EXPLAIN SELECT * FROM t1 ORDER BY a, b LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492
-SELECT * FROM t1 ORDER BY a, b LIMIT 5;
-a b c
- 0
- 2
- 1
- 0
- 2
-EXPLAIN SELECT * FROM t1 ORDER BY a, b, c LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492 Using filesort
-SELECT * FROM t1 ORDER BY a, b, c LIMIT 5;
-a b c
- 0
- 0
- 0
- 0
- 0
-EXPLAIN SELECT * FROM t1 ORDER BY c, a LIMIT 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 24492 Using filesort
-SELECT * FROM t1 ORDER BY c, a LIMIT 5;
-a b c
- 0
- 0
- 0
- 0
- 0
-SET @@sort_buffer_size= @old_sort_buffer_size;
-DROP TABLE t1;
-End of 5.0 tests
-create table t1(a INT, KEY (a));
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
-SELECT a FROM t1 ORDER BY a LIMIT 2;
-a
-1
-2
-SELECT a FROM t1 ORDER BY a LIMIT 2,4294967296;
-a
-3
-4
-5
-SELECT a FROM t1 ORDER BY a LIMIT 2,4294967297;
-a
-3
-4
-5
-DROP TABLE t1;
-CREATE TABLE t1 (date_key date);
-CREATE TABLE t2 (
-pk int,
-int_nokey int,
-int_key int,
-date_key date NOT NULL,
-date_nokey date,
-varchar_key varchar(1)
-);
-INSERT INTO t2 VALUES
-(1,1,1,'0000-00-00',NULL,NULL),
-(1,1,1,'0000-00-00',NULL,NULL);
-SELECT 1 FROM t2 WHERE pk > ANY (SELECT 1 FROM t2);
-1
-SELECT COUNT(DISTINCT 1) FROM t2
-WHERE date_key = (SELECT 1 FROM t1 WHERE t2.date_key IS NULL) GROUP BY pk;
-COUNT(DISTINCT 1)
-SELECT date_nokey FROM t2
-WHERE int_key IN (SELECT 1 FROM t1)
-HAVING date_nokey = '10:41:7'
-ORDER BY date_key;
-date_nokey
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT NOT NULL, b INT);
-INSERT INTO t1 VALUES (1, 1);
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (a=a AND a=a) OR b > 2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select 1 AS `a`,1 AS `b` from dual where 1
-SELECT * FROM t1 WHERE (a=a AND a=a) OR b > 2;
-a b
-1 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL, c INT NOT NULL);
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (a=a AND b=b AND c=c) OR b > 20;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 select NULL AS `a`,NULL AS `b`,NULL AS `c` from `test`.`t1` where 1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (a=a AND a=a AND b=b) OR b > 20;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 select NULL AS `a`,NULL AS `b`,NULL AS `c` from `test`.`t1` where 1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE (a=a AND b=b AND a=a) OR b > 20;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 select NULL AS `a`,NULL AS `b`,NULL AS `c` from `test`.`t1` where 1
-DROP TABLE t1;
-#
-# Bug#45266: Uninitialized variable lead to an empty result.
-#
-drop table if exists A,AA,B,BB;
-CREATE TABLE `A` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`date_key` date NOT NULL,
-`date_nokey` date NOT NULL,
-`datetime_key` datetime NOT NULL,
-`int_nokey` int(11) NOT NULL,
-`time_key` time NOT NULL,
-`time_nokey` time NOT NULL,
-PRIMARY KEY (`pk`),
-KEY `date_key` (`date_key`),
-KEY `time_key` (`time_key`),
-KEY `datetime_key` (`datetime_key`)
-);
-CREATE TABLE `AA` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`int_nokey` int(11) NOT NULL,
-`time_key` time NOT NULL,
-KEY `time_key` (`time_key`),
-PRIMARY KEY (`pk`)
-);
-CREATE TABLE `B` (
-`date_nokey` date NOT NULL,
-`date_key` date NOT NULL,
-`time_key` time NOT NULL,
-`datetime_nokey` datetime NOT NULL,
-`varchar_key` varchar(1) NOT NULL,
-KEY `date_key` (`date_key`),
-KEY `time_key` (`time_key`),
-KEY `varchar_key` (`varchar_key`)
-);
-INSERT INTO `B` VALUES ('2003-07-28','2003-07-28','15:13:38','0000-00-00 00:00:00','f'),('0000-00-00','0000-00-00','00:05:48','2004-07-02 14:34:13','x');
-CREATE TABLE `BB` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`int_nokey` int(11) NOT NULL,
-`date_key` date NOT NULL,
-`varchar_nokey` varchar(1) NOT NULL,
-`date_nokey` date NOT NULL,
-PRIMARY KEY (`pk`),
-KEY `date_key` (`date_key`)
-);
-INSERT INTO `BB` VALUES (10,8,'0000-00-00','i','0000-00-00'),(11,0,'2005-08-18','','2005-08-18');
-SELECT table1 . `pk` AS field1
-FROM
-(BB AS table1 INNER JOIN
-(AA AS table2 STRAIGHT_JOIN A AS table3
-ON ( table3 . `date_key` = table2 . `pk` ))
-ON ( table3 . `datetime_key` = table2 . `int_nokey` ))
-WHERE ( table3 . `date_key` <= 4 AND table2 . `pk` = table1 . `varchar_nokey`)
-GROUP BY field1 ;
-field1
-SELECT table3 .`date_key` field1
-FROM
-B table1 LEFT JOIN B table3 JOIN
-(BB table6 JOIN A table7 ON table6 .`varchar_nokey`)
-ON table6 .`int_nokey` ON table6 .`date_key`
- WHERE NOT ( table1 .`varchar_key` AND table7 .`pk`) GROUP BY field1;
-field1
-NULL
-SELECT table4 . `time_nokey` AS field1 FROM
-(AA AS table1 CROSS JOIN
-(AA AS table2 STRAIGHT_JOIN
-(B AS table3 STRAIGHT_JOIN A AS table4
-ON ( table4 . `date_key` = table3 . `time_key` ))
-ON ( table4 . `pk` = table3 . `date_nokey` ))
-ON ( table4 . `time_key` = table3 . `datetime_nokey` ))
-WHERE ( table4 . `time_key` < table1 . `time_key` AND
-table1 . `int_nokey` != 'f')
-GROUP BY field1 ORDER BY field1 , field1;
-field1
-SELECT table1 .`time_key` field2 FROM B table1 LEFT JOIN BB JOIN A table5 ON table5 .`date_nokey` ON table5 .`int_nokey` GROUP BY field2;
-field2
-00:05:48
-15:13:38
-drop table A,AA,B,BB;
-#end of test for bug#45266
-#
-# Bug#33546: Slowdown on re-evaluation of constant expressions.
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (2);
-SELECT * FROM t1 WHERE a = 1 + 1;
-a
-2
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a = 1 + 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(1 + 1)
-SELECT * FROM t1 HAVING a = 1 + 1;
-a
-2
-EXPLAIN EXTENDED SELECT * FROM t1 HAVING a = 1 + 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` having `test`.`t1`.`a` = <cache>(1 + 1)
-SELECT * FROM t1, t2 WHERE a = b + (1 + 1);
-a b
-4 2
-EXPLAIN EXTENDED SELECT * FROM t1, t2 WHERE a = b + (1 + 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,2 AS `b` from `test`.`t1` where `test`.`t1`.`a` = <cache>(2 + (1 + 1))
-SELECT * FROM t2 LEFT JOIN t1 ON a = b + 1;
-b a
-2 3
-EXPLAIN EXTENDED SELECT * FROM t2 LEFT JOIN t1 ON a = b + 1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select 2 AS `b`,`test`.`t1`.`a` AS `a` from `test`.`t1` where 1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a > UNIX_TIMESTAMP('2009-03-10 00:00:00');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > <cache>(unix_timestamp('2009-03-10 00:00:00'))
-CREATE FUNCTION f1() RETURNS INT DETERMINISTIC
-BEGIN
-SET @cnt := @cnt + 1;
-RETURN 1;
-END;|
-SET @cnt := 0;
-SELECT * FROM t1 WHERE a = f1();
-a
-1
-SELECT @cnt;
-@cnt
-1
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a = f1();
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(`f1`())
-DROP TABLE t1, t2;
-DROP FUNCTION f1;
-# End of bug#33546
-#
-# BUG#48052: Valgrind warning - uninitialized value in init_read_record()
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL,
-i int(11) DEFAULT NULL,
-v varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (2,7,'m');
-INSERT INTO t1 VALUES (3,9,'m');
-SELECT v
-FROM t1
-WHERE NOT pk > 0
-HAVING v <= 't'
-ORDER BY pk;
-v
-DROP TABLE t1;
-#
-# Bug#49489 Uninitialized cache led to a wrong result.
-#
-CREATE TABLE t1(c1 DOUBLE(5,4));
-INSERT INTO t1 VALUES (9.1234);
-SELECT * FROM t1 WHERE c1 < 9.12345;
-c1
-9.1234
-DROP TABLE t1;
-# End of test for bug#49489.
-#
-# Bug #49517: Inconsistent behavior while using
-# NULLable BIGINT and INT columns in comparison
-#
-CREATE TABLE t1(a BIGINT UNSIGNED NOT NULL, b BIGINT NULL, c INT NULL);
-INSERT INTO t1 VALUES(105, NULL, NULL);
-SELECT * FROM t1 WHERE b < 102;
-a b c
-SELECT * FROM t1 WHERE c < 102;
-a b c
-SELECT * FROM t1 WHERE 102 < b;
-a b c
-SELECT * FROM t1 WHERE 102 < c;
-a b c
-DROP TABLE t1;
-#
-# Bug #54459: Assertion failed: param.sort_length,
-# file .\filesort.cc, line 149 (part II)
-#
-CREATE TABLE t1(a ENUM('') NOT NULL);
-INSERT INTO t1 VALUES (), (), ();
-EXPLAIN SELECT 1 FROM t1 ORDER BY a COLLATE latin1_german2_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using filesort
-SELECT 1 FROM t1 ORDER BY a COLLATE latin1_german2_ci;
-1
-1
-1
-1
-DROP TABLE t1;
-#
-# Bug #702310: usage of 2 join buffers after ref access to an empty table
-#
-CREATE TABLE t1 (f1 int) ;
-INSERT INTO t1 VALUES (9);
-CREATE TABLE t2 (f1 int);
-INSERT INTO t2 VALUES (3),(7),(18);
-INSERT INTO t2 VALUES (3),(7),(18);
-INSERT INTO t2 VALUES (3),(7),(18);
-INSERT INTO t2 VALUES (3),(7),(18);
-CREATE TABLE t3 (f1 int);
-INSERT INTO t3 VALUES (17);
-CREATE TABLE t4 (f1 int PRIMARY KEY, f2 varchar(1024)) ;
-CREATE TABLE t5 (f1 int) ;
-INSERT INTO t5 VALUES (20),(5);
-CREATE TABLE t6(f1 int);
-INSERT INTO t6 VALUES (9),(7);
-SET SESSION join_buffer_size = 2176;
-EXPLAIN
-SELECT STRAIGHT_JOIN * FROM t2, (t1 LEFT JOIN (t3,t4) ON t1.f1 = t4.f1), t5, t6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 12
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1 Using join buffer (flat, BNL join)
-1 SIMPLE t3 ALL NULL NULL NULL NULL 1 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 4 test.t1.f1 1
-1 SIMPLE t5 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 SIMPLE t6 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-SELECT STRAIGHT_JOIN * FROM t2, (t1 LEFT JOIN (t3,t4) ON t1.f1 = t4.f1), t5, t6;
-f1 f1 f1 f1 f2 f1 f1
-3 9 NULL NULL NULL 20 9
-7 9 NULL NULL NULL 20 9
-18 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 20 9
-7 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 20 7
-7 9 NULL NULL NULL 20 7
-18 9 NULL NULL NULL 20 7
-3 9 NULL NULL NULL 20 7
-7 9 NULL NULL NULL 20 7
-18 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 5 9
-7 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 20 7
-3 9 NULL NULL NULL 20 7
-3 9 NULL NULL NULL 5 7
-7 9 NULL NULL NULL 5 7
-18 9 NULL NULL NULL 5 7
-3 9 NULL NULL NULL 5 9
-7 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 5 9
-3 9 NULL NULL NULL 5 9
-7 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 5 7
-7 9 NULL NULL NULL 5 7
-18 9 NULL NULL NULL 5 7
-3 9 NULL NULL NULL 5 7
-7 9 NULL NULL NULL 20 7
-18 9 NULL NULL NULL 20 9
-3 9 NULL NULL NULL 20 9
-7 9 NULL NULL NULL 20 9
-18 9 NULL NULL NULL 20 9
-7 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 20 7
-3 9 NULL NULL NULL 20 7
-7 9 NULL NULL NULL 20 7
-18 9 NULL NULL NULL 20 7
-7 9 NULL NULL NULL 5 7
-18 9 NULL NULL NULL 5 9
-3 9 NULL NULL NULL 5 9
-7 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 5 9
-18 9 NULL NULL NULL 5 7
-3 9 NULL NULL NULL 5 7
-7 9 NULL NULL NULL 5 7
-18 9 NULL NULL NULL 5 7
-SET SESSION join_buffer_size = DEFAULT;
-DROP TABLE t1,t2,t3,t4,t5,t6;
-#
-# Bug #698882: best equality substitution not applied to ref
-#
-CREATE TABLE t1 (a1 int NOT NULL, b1 char(10), INDEX idx (a1));
-CREATE TABLE t2 (a2 int NOT NULL, b2 char(10), INDEX idx (a2));
-CREATE TABLE t3 (a3 int NOT NULL, b3 char(10), INDEX idx (a3));
-INSERT INTO t1 VALUES (2,'xx'), (1,'xxx'), (11,'xxxxxxx');
-INSERT INTO t2 VALUES
-(7,'yyyy'), (2,'y'), (3,'yyy'), (1,'yy'), (1,'yyyyy'),
-(3,'yy'), (1,'y'), (4,'yyy'), (7,'y'), (4,'yyyyy'), (7,'yyy'),
-(7,'yyyy'), (2,'yy'), (3,'yyy'), (1,'yyyyyyyy'), (1,'yyyyy'),
-(3,'yy'), (1,'yyy'), (4,'yyy'), (7,'y'), (4,'yyyyy'), (7,'yyy');
-INSERT INTO t3 VALUES
-(9,'zzzzzzz'), (2,'zzzzz'), (1,'z'), (9,'zz'), (1,'zz'), (5,'zzzzzzz'),
-(4,'zz'), (3,'z'), (5,'zzzzzz'), (3,'zz'), (4,'zzzz'), (3,'z'),
-(9,'zzzzzzzz'), (2,'zz'), (1,'zz'), (9,'zzz'), (1,'zzz'), (5,'zzzzzzzz'),
-(4,'zzz'), (3,'zz'), (5,'zzzzzzz'), (3,'zzz'), (4,'zzzzz'), (3,'zz'),
-(9,'zzzzzz'), (2,'zzzz'), (1,'zzz'), (9,'z'), (1,'z'), (5,'zzzzzz'),
-(4,'z'), (3,'zzz'), (5,'zzzzz'), (3,'z'), (4,'zzz'), (3,'zzzz'),
-(9,'zzzzz'), (2,'zzz'), (1,'zzzz'), (9,'zzz'), (1,'zzzz'), (5,'zzzzz'),
-(4,'zzz'), (3,'zzzz'), (5,'zzzz'), (3,'zzz'), (4,'zz'), (3,'zzzzz');
-set @tmp= @@optimizer_switch;
-SET SESSION optimizer_switch='index_condition_pushdown=off';
-EXPLAIN SELECT * from t1,t2,t3 WHERE t3.a3=t1.a1 AND t2.a2=t1.a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL idx NULL NULL NULL 3
-1 SIMPLE t2 ref idx idx 4 test.t1.a1 2
-1 SIMPLE t3 ref idx idx 4 test.t1.a1 5
-EXPLAIN SELECT * FROM t1,t2,t3 WHERE t2.a2=t1.a1 AND t3.a3=t1.a1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL idx NULL NULL NULL 3
-1 SIMPLE t2 ref idx idx 4 test.t1.a1 2
-1 SIMPLE t3 ref idx idx 4 test.t1.a1 5
-EXPLAIN SELECT * FROM t1,t2,t3 WHERE t2.a2=t1.a1 AND t3.a3=t2.a2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL idx NULL NULL NULL 3
-1 SIMPLE t2 ref idx idx 4 test.t1.a1 2
-1 SIMPLE t3 ref idx idx 4 test.t1.a1 5
-SELECT * from t1,t2,t3
-WHERE t3.a3=t1.a1 AND t2.a2=t1.a1 AND
-LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
-a1 b1 a2 b2 a3 b3
-1 xxx 1 y 1 z
-1 xxx 1 y 1 z
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zzz
-1 xxx 1 y 1 zzz
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 zz
-1 xxx 1 yy 1 zz
-1 xxx 1 yyy 1 z
-1 xxx 1 yyy 1 z
-2 xx 2 y 2 zz
-2 xx 2 y 2 zzz
-2 xx 2 y 2 zzzz
-2 xx 2 yy 2 zz
-2 xx 2 yy 2 zzz
-SELECT * FROM t1,t2,t3
-WHERE t2.a2=t1.a1 AND t3.a3=t1.a1 AND
-LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
-a1 b1 a2 b2 a3 b3
-1 xxx 1 y 1 z
-1 xxx 1 y 1 z
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zzz
-1 xxx 1 y 1 zzz
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 zz
-1 xxx 1 yy 1 zz
-1 xxx 1 yyy 1 z
-1 xxx 1 yyy 1 z
-2 xx 2 y 2 zz
-2 xx 2 y 2 zzz
-2 xx 2 y 2 zzzz
-2 xx 2 yy 2 zz
-2 xx 2 yy 2 zzz
-SELECT * FROM t1,t2,t3
-WHERE t2.a2=t1.a1 AND t3.a3=t2.a2 AND
-LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
-a1 b1 a2 b2 a3 b3
-1 xxx 1 y 1 z
-1 xxx 1 y 1 z
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zz
-1 xxx 1 y 1 zzz
-1 xxx 1 y 1 zzz
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 z
-1 xxx 1 yy 1 zz
-1 xxx 1 yy 1 zz
-1 xxx 1 yyy 1 z
-1 xxx 1 yyy 1 z
-2 xx 2 y 2 zz
-2 xx 2 y 2 zzz
-2 xx 2 y 2 zzzz
-2 xx 2 yy 2 zz
-2 xx 2 yy 2 zzz
-SET SESSION optimizer_switch=@tmp;
-DROP TABLE t1,t2,t3;
-#
-# Bug #707555: crash with equality substitution in ref
-#
-CREATE TABLE t1 (f11 int, f12 int, PRIMARY KEY (f11), KEY (f12)) ;
-INSERT INTO t1 VALUES (1,NULL), (8,NULL);
-CREATE TABLE t2 (f21 int, f22 int, f23 int, KEY (f22)) ;
-INSERT INTO t2 VALUES (1,NULL,3), (2,7,8);
-CREATE TABLE t3 (f31 int, f32 int(11), PRIMARY KEY (f31), KEY (f32)) ;
-INSERT INTO t3 VALUES (1,494862336);
-CREATE TABLE t4 (f41 int, f42 int, PRIMARY KEY (f41), KEY (f42)) ;
-INSERT INTO t4 VALUES (1,NULL), (8,NULL);
-CREATE TABLE t5 (f51 int, PRIMARY KEY (f51)) ;
-INSERT IGNORE INTO t5 VALUES (100);
-CREATE TABLE t6 (f61 int, f62 int, KEY (f61)) ;
-INSERT INTO t6 VALUES (NULL,1), (3,10);
-CREATE TABLE t7 (f71 int, f72 int, KEY (f72)) ;
-INSERT INTO t7 VALUES (1,NULL), (2,7);
-EXPLAIN
-SELECT t2.f23 FROM
-(t1 LEFT JOIN (t2 JOIN t3 ON t2.f22=t3.f32) ON t1.f11=t3.f31)
-LEFT JOIN
-(((t4 JOIN t5 ON t4.f42=t5.f51) LEFT JOIN t6 ON t6.f62>0) JOIN t7 ON t6.f61>0)
-ON t3.f31 = t6.f61
-WHERE t7.f71>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 system PRIMARY,f32 NULL NULL NULL 1
-1 SIMPLE t5 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 ref f22 f22 5 const 1
-1 SIMPLE t6 ref f61 f61 5 const 1 Using where
-1 SIMPLE t4 ref f42 f42 5 const 1 Using index
-1 SIMPLE t7 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-SELECT t2.f23 FROM
-(t1 LEFT JOIN (t2 JOIN t3 ON t2.f22=t3.f32) ON t1.f11=t3.f31)
-LEFT JOIN
-(((t4 JOIN t5 ON t4.f42=t5.f51) LEFT JOIN t6 ON t6.f62>0) JOIN t7 ON t6.f61>0)
-ON t3.f31 = t6.f61
-WHERE t7.f71>0;
-f23
-DROP TABLE t1,t2,t3,t4,t5,t6,t7;
-CREATE TABLE t1(f1 int UNSIGNED) engine=myisam;
-INSERT INTO t1 VALUES (3),(2),(1);
-set sql_buffer_result=0;
-SELECT f1 FROM t1 GROUP BY 1;
-f1
-1
-2
-3
-SELECT f1 FROM t1 GROUP BY '123' = 'abc';
-f1
-3
-SELECT 1 FROM t1 GROUP BY 1;
-1
-1
-set sql_buffer_result=1;
-SELECT f1 FROM t1 GROUP BY 1;
-f1
-1
-2
-3
-SELECT f1 FROM t1 GROUP BY '123' = 'abc';
-f1
-3
-SELECT 1 FROM t1 GROUP BY 1;
-1
-1
-drop table t1;
-set sql_buffer_result= 0;
-#
-# Bug #58422: Incorrect result when OUTER JOIN'ing
-# with an empty table
-#
-CREATE TABLE t_empty(pk INT PRIMARY KEY, i INT) ENGINE = MYISAM;
-CREATE TABLE t1(pk INT PRIMARY KEY, i INT) ENGINE = MYISAM;
-INSERT INTO t1 VALUES (1,1), (2,2), (3,3);
-CREATE TABLE t2(pk INT PRIMARY KEY, i INT) ENGINE = MYISAM;
-INSERT INTO t2 VALUES (1,1), (2,2), (3,3);
-EXPLAIN
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 INNER JOIN t_empty ON TRUE)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 INNER JOIN t_empty ON TRUE)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-pk i pk i pk i
-EXPLAIN
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 CROSS JOIN t_empty)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 CROSS JOIN t_empty)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-pk i pk i pk i
-EXPLAIN
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 INNER JOIN t_empty ON t_empty.i=t2.i)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT *
-FROM
-t1
-LEFT OUTER JOIN
-(t2 INNER JOIN t_empty ON t_empty.i=t2.i)
-ON t1.pk=t2.pk
-WHERE t2.pk <> 2;
-pk i pk i pk i
-DROP TABLE t1,t2,t_empty;
-End of 5.1 tests
-#
-# Bug#45227: Lost HAVING clause led to a wrong result.
-#
-CREATE TABLE `CC` (
-`int_nokey` int(11) NOT NULL,
-`int_key` int(11) NOT NULL,
-`varchar_key` varchar(1) NOT NULL,
-`varchar_nokey` varchar(1) NOT NULL,
-KEY `int_key` (`int_key`),
-KEY `varchar_key` (`varchar_key`)
-);
-INSERT INTO `CC` VALUES
-(0,8,'q','q'),(5,8,'m','m'),(7,3,'j','j'),(1,2,'z','z'),(8,2,'a','a'),(2,6,'',''),(1,8,'e'
-,'e'),(8,9,'t','t'),(5,2,'q','q'),(4,6,'b','b'),(5,5,'w','w'),(3,2,'m','m'),(0,4,'x','x'),
-(8,9,'',''),(0,6,'w','w'),(4,5,'x','x'),(0,0,'e','e'),(0,0,'e','e'),(2,8,'p','p'),(0,0,'x'
-,'x');
-EXPLAIN SELECT `varchar_nokey` G1 FROM CC WHERE `int_nokey` AND `int_key` <= 4
-HAVING G1 ORDER BY `varchar_key` LIMIT 6 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE CC range int_key int_key 4 NULL 10 Using index condition; Using where; Using filesort
-SELECT `varchar_nokey` G1 FROM CC WHERE `int_nokey` AND `int_key` <= 4
-HAVING G1 ORDER BY `varchar_key` LIMIT 6 ;
-G1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'z'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'q'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'j'
-DROP TABLE CC;
-# End of test#45227
-#
-# BUG#776274: substitution of a single row table
-#
-CREATE TABLE t1 (a int NOT NULL , b int);
-INSERT INTO t1 VALUES (2,2);
-SELECT * FROM t1 WHERE a = b;
-a b
-2 2
-EXPLAIN
-SELECT * FROM t1 WHERE a = b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-DROP TABLE t1;
-#
-# Bug#54515: Crash in opt_range.cc::get_best_group_min_max on
-# SELECT from VIEW with GROUP BY
-#
-CREATE TABLE t1 (
-col_int_key int DEFAULT NULL,
-KEY int_key (col_int_key)
-) ;
-INSERT INTO t1 VALUES (1),(2);
-CREATE VIEW view_t1 AS
-SELECT t1.col_int_key AS col_int_key
-FROM t1;
-SELECT col_int_key FROM view_t1 GROUP BY col_int_key;
-col_int_key
-1
-2
-DROP VIEW view_t1;
-DROP TABLE t1;
-# End of test BUG#54515
-#
-# Bug #57203 Assertion `field_length <= 255' failed.
-#
-SELECT coalesce((avg(distinct (geomfromtext("point(25379 -22010)")))))
-UNION ALL
-SELECT coalesce((avg(distinct (geomfromtext("point(25379 -22010)")))))
-AS foo
-;
-ERROR HY000: Illegal parameter data type geometry for operation 'avg'
-CREATE table t1(a text);
-INSERT INTO t1 VALUES (''), ('');
-SELECT avg(distinct(t1.a)) FROM t1, t1 t2
-GROUP BY t2.a ORDER BY t1.a;
-avg(distinct(t1.a))
-0
-DROP TABLE t1;
-# End of test BUG#57203
-#
-# lp:822760 Wrong result with view + invalid dates
-#
-CREATE TABLE t1 (f1 date);
-INSERT IGNORE INTO t1 VALUES ('0000-00-00');
-CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM t1 HAVING f1 = 'zz';
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'zz'
-SELECT * FROM t1 HAVING f1 <= 'aa' ;
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'aa'
-SELECT * FROM t1 HAVING f1 = 'zz' AND f1 <= 'aa' ;
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'zz'
-Warning 1292 Incorrect datetime value: 'aa'
-SELECT * FROM t1 WHERE f1 = 'zz' AND f1 <= 'aa' ;
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'zz'
-Warning 1292 Incorrect datetime value: 'aa'
-SELECT * FROM v1 HAVING f1 = 'zz' AND f1 <= 'aa' ;
-f1
-0000-00-00
-Warnings:
-Warning 1292 Incorrect datetime value: 'zz'
-Warning 1292 Incorrect datetime value: 'aa'
-DROP TABLE t1;
-DROP VIEW v1;
-#
-# Bug#63020: Function "format"'s 'locale' argument is not considered
-# when creating a "view'
-#
-CREATE TABLE t1 (f1 DECIMAL(10,2));
-INSERT INTO t1 VALUES (11.67),(17865.3),(12345678.92);
-CREATE VIEW view_t1 AS SELECT FORMAT(f1,1,'sk_SK') AS f1 FROM t1;
-SHOW CREATE VIEW view_t1;
-View Create View character_set_client collation_connection
-view_t1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_t1` AS select format(`t1`.`f1`,1,'sk_SK') AS `f1` from `t1` latin1 latin1_swedish_ci
-SELECT * FROM view_t1;
-f1
-11,7
-17 865,3
-12 345 678,9
-DROP TABLE t1;
-DROP VIEW view_t1;
-# End of test BUG#63020
-#
-# Bug #13571700 TINYBLOB NOT NULL, CRASH IN PROTOCOL::NET_STORE_DATA
-#
-CREATE TABLE t1 (a TINYBLOB NOT NULL);
-SELECT a, COUNT(*) FROM t1 WHERE 0;
-a COUNT(*)
-NULL 0
-DROP TABLE t1;
-SET optimizer_switch=@save_optimizer_switch;
-#
-# LP bug#994275 Assertion `real->type() == Item::FIELD_ITEM' failed
-# in add_not_null_conds(JOIN*) with JOIN, ZEROFILL column, PK
-#
-CREATE TABLE t1 ( a INT(6) ZEROFILL );
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 ( b INT PRIMARY KEY );
-INSERT INTO t2 VALUES (3),(4);
-SELECT * FROM t1, t2 WHERE a=3 AND a=b;
-a b
-drop table t1,t2;
-#
-# Bug mdev-4250: wrong transformation of WHERE condition with OR
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, a int);
-INSERT INTO t1 VALUES (3,0), (2,0), (4,1), (5,0), (1,0);
-SELECT * FROM t1 WHERE (1=2 OR t1.pk=2) AND t1.a <> 0;
-pk a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (1=2 OR t1.pk=2) AND t1.a <> 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 2 AS `pk`,0 AS `a` from `test`.`t1` where 0
-DROP TABLE t1;
-SELECT * FROM mysql.time_zone
-WHERE ( NOT (Use_leap_seconds <= Use_leap_seconds AND Time_zone_id != 1)
-AND Time_zone_id = Time_zone_id
-OR Time_zone_id <> Time_zone_id )
-AND Use_leap_seconds <> 'N';
-Time_zone_id Use_leap_seconds
-#
-# Bug mdev-4274: result of simplification of OR badly merged
-# into embedding AND
-#
-CREATE TABLE t1 (a int, b int, INDEX idx(b)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (8,8);
-CREATE TABLE t2 (c int, INDEX idx(c)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8), (9);
-EXPLAIN EXTENDED
-SELECT * FROM t1 INNER JOIN t2 ON ( c = a )
-WHERE 1 IS NULL OR b < 33 AND b = c;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system idx NULL NULL NULL 1 100.00
-1 SIMPLE t2 ref idx idx 5 const 1 100.00 Using index
-Warnings:
-Note 1003 select 8 AS `a`,8 AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where `test`.`t2`.`c` = 8
-SELECT * FROM t1 INNER JOIN t2 ON ( c = a )
-WHERE 1 IS NULL OR b < 33 AND b = c;
-a b c
-8 8 8
-DROP TABLE t1,t2;
-#
-# Bug mdev-4413: another manifestations of bug mdev-4274
-# (valgrind complains)
-#
-CREATE TABLE t1 (a int, b int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (7,1);
-CREATE TABLE t2 (c int) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (0), (8);
-SELECT * FROM t1, t2
-WHERE c = a AND
-( 0 OR ( b BETWEEN 45 AND 300 OR a > 45 AND a < 100 ) AND b = c );
-a b c
-DROP TABLE t1, t2;
-#
-# Bug mdev-4355: equalities from the result of simplification of OR
-# are not propagated to lower AND levels
-#
-CREATE TABLE t1 (a INT, b INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,101),(2,102),(3,103),(4,104),(5,11);
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (1 != 1 OR a = 5) AND (b != 1 OR a = 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` = 5 and `test`.`t1`.`b` <> 1
-SELECT * FROM t1 WHERE (1 != 1 OR a = 5) AND (b != 1 OR a = 1);
-a b
-5 11
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (b != 1 OR a = 1) AND (1 != 1 OR a = 5);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` = 5 and `test`.`t1`.`b` <> 1
-SELECT * FROM t1 WHERE (b != 1 OR a = 1) AND (1 != 1 OR a = 5);
-a b
-5 11
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (b != 1 OR a = 1) AND (a = 5 OR 1 != 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` = 5 and `test`.`t1`.`b` <> 1
-SELECT * FROM t1 WHERE (b != 1 OR a = 1) AND (a = 5 OR 1 != 1);
-a b
-5 11
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (b = 1 OR a = 1) AND (b = 5 AND a = 5 OR 1 != 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where 0
-SELECT * FROM t1 WHERE (b = 1 OR a = 1) AND (b = 5 AND a = 5 OR 1 != 1);
-a b
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE (b = 1 OR a = 5) AND (b = 5 AND a = 5 OR 1 != 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`b` = 5 and `test`.`t1`.`a` = 5
-SELECT * FROM t1 WHERE (b = 1 OR a = 5) AND (b = 5 AND a = 5 OR 1 != 1);
-a b
-DROP TABLE t1;
-#
-# Bug mdev-4418: impossible multiple equality in OR formula
-# after row substitution
-#
-CREATE TABLE t1 (a int, b varchar(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (0,'j'), (8,'v');
-CREATE TABLE t2 (c varchar(1), d varchar(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('k','k');
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2 WHERE c=b AND (1=2 OR ((b='h' OR a=136) AND d=b));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,'k' AS `c`,'k' AS `d` from `test`.`t1` where `test`.`t1`.`b` = 'k' and `test`.`t1`.`a` = 136
-SELECT * FROM t1, t2 WHERE c=b AND (1=2 OR ((b='h' OR a=136) AND d=b));
-a b c d
-DROP TABLE t1,t2;
-#
-# Bug mdev-4944: range conditition in OR formula with fields
-# belonging to multiple equalities
-#
-CREATE TABLE t1 (i1 int, j1 int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,8);
-CREATE TABLE t2 (i2 int, INDEX idx (i2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8), (9);
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2
-WHERE i1 = i2 AND ( FALSE OR ( j1 > 27 AND j1 < 100 OR j1 <= 3 ) AND j1 = i2 );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 1 AS `i1`,8 AS `j1`,NULL AS `i2` from `test`.`t2` where 0
-SELECT * FROM t1, t2
-WHERE i1 = i2 AND ( FALSE OR ( j1 > 27 AND j1 < 100 OR j1 <= 3 ) AND j1 = i2 );
-i1 j1 i2
-DROP TABLE t1,t2;
-#
-# Bug mdev-4971: equality propagation after merging degenerate
-# disjunction into embedding AND level
-#
-CREATE TABLE t1 (pk1 int, a1 int, b1 int, PRIMARY KEY(pk1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,10,100), (2,20,200) ;
-CREATE TABLE t2 (pk2 int, a2 int, PRIMARY KEY(pk2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,1);
-SELECT * FROM t1, t2
-WHERE a1 = pk2 AND ( ( b1 = 6 OR a2 > 4 ) AND pk2 = a2 OR pk1 IS NULL );
-pk1 a1 b1 pk2 a2
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2
-WHERE a1 = pk2 AND ( ( b1 = 6 OR a2 > 4 ) AND pk2 = a2 OR pk1 IS NULL );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system PRIMARY NULL NULL NULL 1 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`pk1` AS `pk1`,`test`.`t1`.`a1` AS `a1`,`test`.`t1`.`b1` AS `b1`,1 AS `pk2`,1 AS `a2` from `test`.`t1` where `test`.`t1`.`a1` = 1 and `test`.`t1`.`b1` = 6
-INSERT INTO t1 VALUES (3,1,6);
-SELECT * FROM t1, t2
-WHERE a1 = pk2 AND ( ( b1 = 6 OR a2 > 4 ) AND pk2 = a2 OR pk1 IS NULL );
-pk1 a1 b1 pk2 a2
-3 1 6 1 1
-DROP TABLE t1,t2;
-End of 5.3 tests
-#
-# mysql BUG#1271 Undefined variable in PASSWORD()
-# function is not handled correctly
-#
-create table t1 (
-name VARCHAR(50) NOT NULL PRIMARY KEY,
-pw VARCHAR(41) NOT NULL);
-INSERT INTO t1 (name, pw)
-VALUES ('tom', PASSWORD('my_pw'));
-SET @pass='my_pw';
-SET @wrong='incorrect';
-select * from t1;
-name pw
-tom *F305E8EC27734F687F2EB6EC03CF0F7AF27C18E1
-select length(PASSWORD(@pass));
-length(PASSWORD(@pass))
-41
-SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@pass);
-name
-tom
-SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@wrong);
-name
-SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@undefined);
-name
-select (SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@pass));
-(SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@pass))
-tom
-select (SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@wrong));
-(SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@wrong))
-NULL
-select (SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@undefined));
-(SELECT name FROM t1 WHERE name='tom' AND pw=PASSWORD(@undefined))
-NULL
-drop table t1;
-End of 10.0 tests
diff --git a/mysql-test/r/select_safe.result b/mysql-test/r/select_safe.result
deleted file mode 100644
index 60364b8c4ec..00000000000
--- a/mysql-test/r/select_safe.result
+++ /dev/null
@@ -1,95 +0,0 @@
-drop table if exists t1;
-SET SQL_SAFE_UPDATES=1,SQL_SELECT_LIMIT=4, MAX_JOIN_SIZE=9;
-create table t1 (a int auto_increment primary key, b char(20));
-insert into t1 values(1,"test");
-SELECT SQL_BUFFER_RESULT * from t1;
-a b
-1 test
-update t1 set b="a" where a=1;
-delete from t1 where a=1;
-insert into t1 values(1,"test"),(2,"test2");
-SELECT SQL_BUFFER_RESULT * from t1;
-a b
-1 test
-2 test2
-update t1 set b="a" where a=1;
-select 1 from t1,t1 as t2,t1 as t3;
-1
-1
-1
-1
-1
-update t1 set b="a";
-ERROR HY000: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
-update t1 set b="a" where b="test";
-ERROR HY000: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
-delete from t1;
-ERROR HY000: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
-delete from t1 where b="test";
-ERROR HY000: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
-delete from t1 where a+0=1;
-ERROR HY000: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
-select 1 from t1,t1 as t2,t1 as t3,t1 as t4,t1 as t5;
-ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
-update t1 set b="a" limit 1;
-update t1 set b="a" where b="b" limit 2;
-delete from t1 where b="test" limit 1;
-delete from t1 where a+0=1 limit 2;
-alter table t1 add key b (b);
-SET MAX_JOIN_SIZE=2;
-SELECT @@MAX_JOIN_SIZE, @@SQL_BIG_SELECTS;
-@@MAX_JOIN_SIZE @@SQL_BIG_SELECTS
-2 0
-insert into t1 values (null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a");
-SELECT * from t1 order by a;
-ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
-SET SQL_BIG_SELECTS=1;
-SELECT * from t1 order by a;
-a b
-2 test2
-3 a
-4 a
-5 a
-SET MAX_JOIN_SIZE=2;
-SELECT * from t1;
-ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
-SET MAX_JOIN_SIZE=DEFAULT;
-SELECT * from t1;
-a b
-2 test2
-3 a
-4 a
-5 a
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-insert into t1 values (null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a");
-insert into t1 values (null,"b"),(null,"b"),(null,"c"),(null,"c"),(null,"d"),(null,"d"),(null,"e"),(null,"e"),(null,"a"),(null,"e");
-insert into t1 values (null,"x"),(null,"x"),(null,"y"),(null,"y"),(null,"z"),(null,"z"),(null,"v"),(null,"v"),(null,"a"),(null,"v");
-explain select STRAIGHT_JOIN * from t1,t1 as t2 where t1.b=t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL b NULL NULL NULL 41 Using where
-1 SIMPLE t2 ref b b 21 test.t1.b 6
-set MAX_SEEKS_FOR_KEY=1;
-explain select STRAIGHT_JOIN * from t1,t1 as t2 where t1.b=t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL b NULL NULL NULL 41 Using where
-1 SIMPLE t2 ref b b 21 test.t1.b 6
-SET MAX_SEEKS_FOR_KEY=DEFAULT;
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3),(4),(5);
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-set local max_join_size=8;
-select * from (select * from t1) x;
-ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
-set local max_join_size=1;
-select * from (select a.a as aa, b.a as ba from t1 a, t1 b) x;
-ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
-set local max_join_size=1;
-select * from (select 1 union select 2 union select 3) x;
-ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
-drop table t1;
-SET SQL_SAFE_UPDATES=0,SQL_SELECT_LIMIT=DEFAULT, MAX_JOIN_SIZE=DEFAULT;
diff --git a/mysql-test/r/selectivity.result b/mysql-test/r/selectivity.result
deleted file mode 100644
index 9cb6ee3e9bf..00000000000
--- a/mysql-test/r/selectivity.result
+++ /dev/null
@@ -1,1535 +0,0 @@
-drop table if exists t0,t1,t2,t3;
-select @@global.use_stat_tables;
-@@global.use_stat_tables
-COMPLEMENTARY
-select @@session.use_stat_tables;
-@@session.use_stat_tables
-COMPLEMENTARY
-set @save_use_stat_tables=@@use_stat_tables;
-set use_stat_tables='preferably';
-set @save_optimizer_use_condition_selectivity=@@optimizer_use_condition_selectivity;
-set @save_histogram_size=@@histogram_size;
-set @save_histogram_type=@@histogram_type;
-set optimizer_use_condition_selectivity=3;
-create table t1 (a int);
-insert into t1 values
-(9), (3), (2), (NULL), (NULL), (2), (NULL), (1), (5), (NULL);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-select * from mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 1 9 0.4000 4.0000 1.2000 0 NULL NULL
-flush table t1;
-explain extended
-select * from t1 where a is null;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 40.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` is null
-explain extended
-select * from t1 where a is not null;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 60.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` is not null
-drop table t1;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP DATABASE IF EXISTS dbt3_s001;
-CREATE DATABASE dbt3_s001;
-use dbt3_s001;
-=== Q2 ===
-set optimizer_use_condition_selectivity=5;
-explain extended
-select
-s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment
-from
-part, supplier, partsupp, nation, region
-where
-p_partkey = ps_partkey
-and s_suppkey = ps_suppkey
-and p_size = 9
-and p_type like '%TIN'
- and s_nationkey = n_nationkey
-and n_regionkey = r_regionkey
-and r_name = 'ASIA'
- and ps_supplycost = (
-select
-min(ps_supplycost)
-from
-partsupp, supplier, nation, region
-where
-p_partkey = ps_partkey
-and s_suppkey = ps_suppkey
-and s_nationkey = n_nationkey
-and n_regionkey = r_regionkey
-and r_name = 'ASIA'
- )
-order by
-s_acctbal desc, n_name, s_name, p_partkey;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY part ALL PRIMARY NULL NULL NULL 200 0.31 Using where; Using temporary; Using filesort
-1 PRIMARY partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00 Using where
-1 PRIMARY supplier eq_ref PRIMARY,i_s_nationkey PRIMARY 4 dbt3_s001.partsupp.ps_suppkey 1 100.00 Using where
-1 PRIMARY nation eq_ref PRIMARY,i_n_regionkey PRIMARY 4 dbt3_s001.supplier.s_nationkey 1 100.00 Using where
-1 PRIMARY region eq_ref PRIMARY PRIMARY 4 dbt3_s001.nation.n_regionkey 1 20.00 Using where
-2 DEPENDENT SUBQUERY region ALL PRIMARY NULL NULL NULL 5 20.00 Using where
-2 DEPENDENT SUBQUERY partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00
-2 DEPENDENT SUBQUERY supplier eq_ref PRIMARY,i_s_nationkey PRIMARY 4 dbt3_s001.partsupp.ps_suppkey 1 100.00 Using where
-2 DEPENDENT SUBQUERY nation eq_ref PRIMARY,i_n_regionkey PRIMARY 4 dbt3_s001.supplier.s_nationkey 1 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.part.p_partkey' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `dbt3_s001`.`supplier`.`s_acctbal` AS `s_acctbal`,`dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`nation`.`n_name` AS `n_name`,`dbt3_s001`.`part`.`p_partkey` AS `p_partkey`,`dbt3_s001`.`part`.`p_mfgr` AS `p_mfgr`,`dbt3_s001`.`supplier`.`s_address` AS `s_address`,`dbt3_s001`.`supplier`.`s_phone` AS `s_phone`,`dbt3_s001`.`supplier`.`s_comment` AS `s_comment` from `dbt3_s001`.`part` join `dbt3_s001`.`supplier` join `dbt3_s001`.`partsupp` join `dbt3_s001`.`nation` join `dbt3_s001`.`region` where `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`supplier`.`s_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`part`.`p_size` = 9 and `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`region`.`r_regionkey` = `dbt3_s001`.`nation`.`n_regionkey` and `dbt3_s001`.`region`.`r_name` = 'ASIA' and `dbt3_s001`.`part`.`p_type` like '%TIN' and `dbt3_s001`.`partsupp`.`ps_supplycost` = <expr_cache><`dbt3_s001`.`part`.`p_partkey`>((/* select#2 */ select min(`dbt3_s001`.`partsupp`.`ps_supplycost`) from `dbt3_s001`.`partsupp` join `dbt3_s001`.`supplier` join `dbt3_s001`.`nation` join `dbt3_s001`.`region` where `dbt3_s001`.`supplier`.`s_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`nation`.`n_regionkey` = `dbt3_s001`.`region`.`r_regionkey` and `dbt3_s001`.`region`.`r_name` = 'ASIA' and `dbt3_s001`.`part`.`p_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey`)) order by `dbt3_s001`.`supplier`.`s_acctbal` desc,`dbt3_s001`.`nation`.`n_name`,`dbt3_s001`.`supplier`.`s_name`,`dbt3_s001`.`part`.`p_partkey`
-set optimizer_use_condition_selectivity=4;
-explain extended
-select
-s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment
-from
-part, supplier, partsupp, nation, region
-where
-p_partkey = ps_partkey
-and s_suppkey = ps_suppkey
-and p_size = 9
-and p_type like '%TIN'
- and s_nationkey = n_nationkey
-and n_regionkey = r_regionkey
-and r_name = 'ASIA'
- and ps_supplycost = (
-select
-min(ps_supplycost)
-from
-partsupp, supplier, nation, region
-where
-p_partkey = ps_partkey
-and s_suppkey = ps_suppkey
-and s_nationkey = n_nationkey
-and n_regionkey = r_regionkey
-and r_name = 'ASIA'
- )
-order by
-s_acctbal desc, n_name, s_name, p_partkey;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY region ALL PRIMARY NULL NULL NULL 5 20.00 Using where; Using temporary; Using filesort
-1 PRIMARY nation ref PRIMARY,i_n_regionkey i_n_regionkey 5 dbt3_s001.region.r_regionkey 5 100.00
-1 PRIMARY supplier ref PRIMARY,i_s_nationkey i_s_nationkey 5 dbt3_s001.nation.n_nationkey 1 100.00
-1 PRIMARY part ALL PRIMARY NULL NULL NULL 200 2.08 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY partsupp eq_ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 8 dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey 1 100.00 Using where
-2 DEPENDENT SUBQUERY region ALL PRIMARY NULL NULL NULL 5 20.00 Using where
-2 DEPENDENT SUBQUERY partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00
-2 DEPENDENT SUBQUERY supplier eq_ref PRIMARY,i_s_nationkey PRIMARY 4 dbt3_s001.partsupp.ps_suppkey 1 100.00 Using where
-2 DEPENDENT SUBQUERY nation eq_ref PRIMARY,i_n_regionkey PRIMARY 4 dbt3_s001.supplier.s_nationkey 1 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.part.p_partkey' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `dbt3_s001`.`supplier`.`s_acctbal` AS `s_acctbal`,`dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`nation`.`n_name` AS `n_name`,`dbt3_s001`.`part`.`p_partkey` AS `p_partkey`,`dbt3_s001`.`part`.`p_mfgr` AS `p_mfgr`,`dbt3_s001`.`supplier`.`s_address` AS `s_address`,`dbt3_s001`.`supplier`.`s_phone` AS `s_phone`,`dbt3_s001`.`supplier`.`s_comment` AS `s_comment` from `dbt3_s001`.`part` join `dbt3_s001`.`supplier` join `dbt3_s001`.`partsupp` join `dbt3_s001`.`nation` join `dbt3_s001`.`region` where `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`partsupp`.`ps_suppkey` = `dbt3_s001`.`supplier`.`s_suppkey` and `dbt3_s001`.`part`.`p_size` = 9 and `dbt3_s001`.`supplier`.`s_nationkey` = `dbt3_s001`.`nation`.`n_nationkey` and `dbt3_s001`.`nation`.`n_regionkey` = `dbt3_s001`.`region`.`r_regionkey` and `dbt3_s001`.`region`.`r_name` = 'ASIA' and `dbt3_s001`.`part`.`p_type` like '%TIN' and `dbt3_s001`.`partsupp`.`ps_supplycost` = <expr_cache><`dbt3_s001`.`part`.`p_partkey`>((/* select#2 */ select min(`dbt3_s001`.`partsupp`.`ps_supplycost`) from `dbt3_s001`.`partsupp` join `dbt3_s001`.`supplier` join `dbt3_s001`.`nation` join `dbt3_s001`.`region` where `dbt3_s001`.`supplier`.`s_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`nation`.`n_regionkey` = `dbt3_s001`.`region`.`r_regionkey` and `dbt3_s001`.`region`.`r_name` = 'ASIA' and `dbt3_s001`.`part`.`p_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey`)) order by `dbt3_s001`.`supplier`.`s_acctbal` desc,`dbt3_s001`.`nation`.`n_name`,`dbt3_s001`.`supplier`.`s_name`,`dbt3_s001`.`part`.`p_partkey`
-=== Q15 ===
-create view revenue0 (supplier_no, total_revenue) as
-select l_suppkey, sum(l_extendedprice * (1 - l_discount))
-from lineitem
-where
-l_shipdate >= '1995-08-01'
- and l_shipdate < date_add('1995-08-01', interval 90 day)
-group by l_suppkey;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='index_condition_pushdown=off';
-set optimizer_use_condition_selectivity=1;
-EXPLAIN EXTENDED select s_suppkey, s_name, s_address, s_phone, total_revenue
-from supplier, revenue0
-where s_suppkey = supplier_no
-and total_revenue = (select max(total_revenue) from revenue0)
-order by s_suppkey;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY supplier ALL PRIMARY NULL NULL NULL 10 100.00 Using filesort
-1 PRIMARY <derived3> ref key0 key0 5 dbt3_s001.supplier.s_suppkey 10 100.00 Using where
-3 DERIVED lineitem range i_l_shipdate,i_l_suppkey i_l_shipdate 4 NULL 268 100.00 Using where; Using temporary; Using filesort
-2 SUBQUERY <derived4> ALL NULL NULL NULL NULL 268 100.00
-4 DERIVED lineitem range i_l_shipdate i_l_shipdate 4 NULL 268 100.00 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `dbt3_s001`.`supplier`.`s_suppkey` AS `s_suppkey`,`dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address`,`dbt3_s001`.`supplier`.`s_phone` AS `s_phone`,`revenue0`.`total_revenue` AS `total_revenue` from `dbt3_s001`.`supplier` join `dbt3_s001`.`revenue0` where `revenue0`.`supplier_no` = `dbt3_s001`.`supplier`.`s_suppkey` and `revenue0`.`total_revenue` = (/* select#2 */ select max(`revenue0`.`total_revenue`) from `dbt3_s001`.`revenue0`) order by `dbt3_s001`.`supplier`.`s_suppkey`
-select s_suppkey, s_name, s_address, s_phone, total_revenue
-from supplier, revenue0
-where s_suppkey = supplier_no
-and total_revenue = (select max(total_revenue) from revenue0)
-order by s_suppkey;
-s_suppkey s_name s_address s_phone total_revenue
-1 Supplier#000000001 N kD4on9OM Ipw3,gf0JBoQDd7tgrzrddZ 27-918-335-1736 729084.7773
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED select s_suppkey, s_name, s_address, s_phone, total_revenue
-from supplier, revenue0
-where s_suppkey = supplier_no
-and total_revenue = (select max(total_revenue) from revenue0)
-order by s_suppkey;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY supplier ALL PRIMARY NULL NULL NULL 10 100.00 Using filesort
-1 PRIMARY <derived3> ref key0 key0 5 dbt3_s001.supplier.s_suppkey 10 100.00 Using where
-3 DERIVED lineitem range i_l_shipdate,i_l_suppkey i_l_shipdate 4 NULL 268 100.00 Using where; Using temporary; Using filesort
-2 SUBQUERY <derived4> ALL NULL NULL NULL NULL 268 100.00
-4 DERIVED lineitem range i_l_shipdate i_l_shipdate 4 NULL 268 100.00 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `dbt3_s001`.`supplier`.`s_suppkey` AS `s_suppkey`,`dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address`,`dbt3_s001`.`supplier`.`s_phone` AS `s_phone`,`revenue0`.`total_revenue` AS `total_revenue` from `dbt3_s001`.`supplier` join `dbt3_s001`.`revenue0` where `revenue0`.`supplier_no` = `dbt3_s001`.`supplier`.`s_suppkey` and `revenue0`.`total_revenue` = (/* select#2 */ select max(`revenue0`.`total_revenue`) from `dbt3_s001`.`revenue0`) order by `dbt3_s001`.`supplier`.`s_suppkey`
-select s_suppkey, s_name, s_address, s_phone, total_revenue
-from supplier, revenue0
-where s_suppkey = supplier_no
-and total_revenue = (select max(total_revenue) from revenue0)
-order by s_suppkey;
-s_suppkey s_name s_address s_phone total_revenue
-1 Supplier#000000001 N kD4on9OM Ipw3,gf0JBoQDd7tgrzrddZ 27-918-335-1736 729084.7773
-set optimizer_switch=@save_optimizer_switch;
-drop view revenue0;
-=== Q16 ===
-set optimizer_use_condition_selectivity=1;
-EXPLAIN EXTENDED select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt
-from partsupp, part
-where p_partkey = ps_partkey
-and p_brand <> 'Brand#11'
- and p_type not like 'SMALL POLISHED%'
- and p_size in (49, 37, 27, 5, 40, 6, 22, 8)
-and ps_suppkey not in (select s_suppkey from supplier
-where s_comment like '%Customer%Complaints%')
-group by p_brand, p_type, p_size
-order by supplier_cnt desc, p_brand, p_type, p_size;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY part ALL PRIMARY NULL NULL NULL 200 100.00 Using where; Using temporary; Using filesort
-1 PRIMARY partsupp ref PRIMARY,i_ps_partkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00 Using where; Using index
-2 MATERIALIZED supplier ALL PRIMARY NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `dbt3_s001`.`part`.`p_brand` AS `p_brand`,`dbt3_s001`.`part`.`p_type` AS `p_type`,`dbt3_s001`.`part`.`p_size` AS `p_size`,count(distinct `dbt3_s001`.`partsupp`.`ps_suppkey`) AS `supplier_cnt` from `dbt3_s001`.`partsupp` join `dbt3_s001`.`part` where `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`part`.`p_brand` <> 'Brand#11' and `dbt3_s001`.`part`.`p_type` not like 'SMALL POLISHED%' and `dbt3_s001`.`part`.`p_size` in (49,37,27,5,40,6,22,8) and !<expr_cache><`dbt3_s001`.`partsupp`.`ps_suppkey`>(<in_optimizer>(`dbt3_s001`.`partsupp`.`ps_suppkey`,`dbt3_s001`.`partsupp`.`ps_suppkey` in ( <materialize> (/* select#2 */ select `dbt3_s001`.`supplier`.`s_suppkey` from `dbt3_s001`.`supplier` where `dbt3_s001`.`supplier`.`s_comment` like '%Customer%Complaints%' ), <primary_index_lookup>(`dbt3_s001`.`partsupp`.`ps_suppkey` in <temporary table> on distinct_key where `dbt3_s001`.`partsupp`.`ps_suppkey` = `<subquery2>`.`s_suppkey`)))) group by `dbt3_s001`.`part`.`p_brand`,`dbt3_s001`.`part`.`p_type`,`dbt3_s001`.`part`.`p_size` order by count(distinct `dbt3_s001`.`partsupp`.`ps_suppkey`) desc,`dbt3_s001`.`part`.`p_brand`,`dbt3_s001`.`part`.`p_type`,`dbt3_s001`.`part`.`p_size`
-select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt
-from partsupp, part
-where p_partkey = ps_partkey
-and p_brand <> 'Brand#11'
- and p_type not like 'SMALL POLISHED%'
- and p_size in (49, 37, 27, 5, 40, 6, 22, 8)
-and ps_suppkey not in (select s_suppkey from supplier
-where s_comment like '%Customer%Complaints%')
-group by p_brand, p_type, p_size
-order by supplier_cnt desc, p_brand, p_type, p_size;
-p_brand p_type p_size supplier_cnt
-Brand#21 MEDIUM ANODIZED TIN 8 4
-Brand#22 PROMO PLATED TIN 5 4
-Brand#24 MEDIUM BURNISHED NICKEL 6 4
-Brand#24 SMALL ANODIZED STEEL 40 4
-Brand#32 MEDIUM BURNISHED BRASS 49 4
-Brand#33 MEDIUM POLISHED BRASS 49 4
-Brand#41 STANDARD BRUSHED NICKEL 40 4
-Brand#44 PROMO POLISHED STEEL 5 4
-Brand#45 PROMO ANODIZED BRASS 22 4
-Brand#53 STANDARD BRUSHED STEEL 27 4
-Brand#54 MEDIUM POLISHED BRASS 22 4
-Brand#54 STANDARD ANODIZED BRASS 22 4
-Brand#13 LARGE BRUSHED STEEL 8 2
-Brand#25 ECONOMY BURNISHED COPPER 27 2
-Brand#44 STANDARD PLATED TIN 37 1
-Brand#51 ECONOMY POLISHED STEEL 49 1
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt
-from partsupp, part
-where p_partkey = ps_partkey
-and p_brand <> 'Brand#11'
- and p_type not like 'SMALL POLISHED%'
- and p_size in (49, 37, 27, 5, 40, 6, 22, 8)
-and ps_suppkey not in (select s_suppkey from supplier
-where s_comment like '%Customer%Complaints%')
-group by p_brand, p_type, p_size
-order by supplier_cnt desc, p_brand, p_type, p_size;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY part ALL PRIMARY NULL NULL NULL 200 16.67 Using where; Using temporary; Using filesort
-1 PRIMARY partsupp ref PRIMARY,i_ps_partkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00 Using where; Using index
-2 MATERIALIZED supplier ALL PRIMARY NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `dbt3_s001`.`part`.`p_brand` AS `p_brand`,`dbt3_s001`.`part`.`p_type` AS `p_type`,`dbt3_s001`.`part`.`p_size` AS `p_size`,count(distinct `dbt3_s001`.`partsupp`.`ps_suppkey`) AS `supplier_cnt` from `dbt3_s001`.`partsupp` join `dbt3_s001`.`part` where `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`part`.`p_brand` <> 'Brand#11' and `dbt3_s001`.`part`.`p_type` not like 'SMALL POLISHED%' and `dbt3_s001`.`part`.`p_size` in (49,37,27,5,40,6,22,8) and !<expr_cache><`dbt3_s001`.`partsupp`.`ps_suppkey`>(<in_optimizer>(`dbt3_s001`.`partsupp`.`ps_suppkey`,`dbt3_s001`.`partsupp`.`ps_suppkey` in ( <materialize> (/* select#2 */ select `dbt3_s001`.`supplier`.`s_suppkey` from `dbt3_s001`.`supplier` where `dbt3_s001`.`supplier`.`s_comment` like '%Customer%Complaints%' ), <primary_index_lookup>(`dbt3_s001`.`partsupp`.`ps_suppkey` in <temporary table> on distinct_key where `dbt3_s001`.`partsupp`.`ps_suppkey` = `<subquery2>`.`s_suppkey`)))) group by `dbt3_s001`.`part`.`p_brand`,`dbt3_s001`.`part`.`p_type`,`dbt3_s001`.`part`.`p_size` order by count(distinct `dbt3_s001`.`partsupp`.`ps_suppkey`) desc,`dbt3_s001`.`part`.`p_brand`,`dbt3_s001`.`part`.`p_type`,`dbt3_s001`.`part`.`p_size`
-select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt
-from partsupp, part
-where p_partkey = ps_partkey
-and p_brand <> 'Brand#11'
- and p_type not like 'SMALL POLISHED%'
- and p_size in (49, 37, 27, 5, 40, 6, 22, 8)
-and ps_suppkey not in (select s_suppkey from supplier
-where s_comment like '%Customer%Complaints%')
-group by p_brand, p_type, p_size
-order by supplier_cnt desc, p_brand, p_type, p_size;
-p_brand p_type p_size supplier_cnt
-Brand#21 MEDIUM ANODIZED TIN 8 4
-Brand#22 PROMO PLATED TIN 5 4
-Brand#24 MEDIUM BURNISHED NICKEL 6 4
-Brand#24 SMALL ANODIZED STEEL 40 4
-Brand#32 MEDIUM BURNISHED BRASS 49 4
-Brand#33 MEDIUM POLISHED BRASS 49 4
-Brand#41 STANDARD BRUSHED NICKEL 40 4
-Brand#44 PROMO POLISHED STEEL 5 4
-Brand#45 PROMO ANODIZED BRASS 22 4
-Brand#53 STANDARD BRUSHED STEEL 27 4
-Brand#54 MEDIUM POLISHED BRASS 22 4
-Brand#54 STANDARD ANODIZED BRASS 22 4
-Brand#13 LARGE BRUSHED STEEL 8 2
-Brand#25 ECONOMY BURNISHED COPPER 27 2
-Brand#44 STANDARD PLATED TIN 37 1
-Brand#51 ECONOMY POLISHED STEEL 49 1
-set optimizer_use_condition_selectivity=4;
-EXPLAIN EXTENDED select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt
-from partsupp, part
-where p_partkey = ps_partkey
-and p_brand <> 'Brand#11'
- and p_type not like 'SMALL POLISHED%'
- and p_size in (49, 37, 27, 5, 40, 6, 22, 8)
-and ps_suppkey not in (select s_suppkey from supplier
-where s_comment like '%Customer%Complaints%')
-group by p_brand, p_type, p_size
-order by supplier_cnt desc, p_brand, p_type, p_size;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY part ALL PRIMARY NULL NULL NULL 200 16.67 Using where; Using temporary; Using filesort
-1 PRIMARY partsupp ref PRIMARY,i_ps_partkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00 Using where; Using index
-2 MATERIALIZED supplier ALL PRIMARY NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `dbt3_s001`.`part`.`p_brand` AS `p_brand`,`dbt3_s001`.`part`.`p_type` AS `p_type`,`dbt3_s001`.`part`.`p_size` AS `p_size`,count(distinct `dbt3_s001`.`partsupp`.`ps_suppkey`) AS `supplier_cnt` from `dbt3_s001`.`partsupp` join `dbt3_s001`.`part` where `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`part`.`p_brand` <> 'Brand#11' and `dbt3_s001`.`part`.`p_type` not like 'SMALL POLISHED%' and `dbt3_s001`.`part`.`p_size` in (49,37,27,5,40,6,22,8) and !<expr_cache><`dbt3_s001`.`partsupp`.`ps_suppkey`>(<in_optimizer>(`dbt3_s001`.`partsupp`.`ps_suppkey`,`dbt3_s001`.`partsupp`.`ps_suppkey` in ( <materialize> (/* select#2 */ select `dbt3_s001`.`supplier`.`s_suppkey` from `dbt3_s001`.`supplier` where `dbt3_s001`.`supplier`.`s_comment` like '%Customer%Complaints%' ), <primary_index_lookup>(`dbt3_s001`.`partsupp`.`ps_suppkey` in <temporary table> on distinct_key where `dbt3_s001`.`partsupp`.`ps_suppkey` = `<subquery2>`.`s_suppkey`)))) group by `dbt3_s001`.`part`.`p_brand`,`dbt3_s001`.`part`.`p_type`,`dbt3_s001`.`part`.`p_size` order by count(distinct `dbt3_s001`.`partsupp`.`ps_suppkey`) desc,`dbt3_s001`.`part`.`p_brand`,`dbt3_s001`.`part`.`p_type`,`dbt3_s001`.`part`.`p_size`
-select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt
-from partsupp, part
-where p_partkey = ps_partkey
-and p_brand <> 'Brand#11'
- and p_type not like 'SMALL POLISHED%'
- and p_size in (49, 37, 27, 5, 40, 6, 22, 8)
-and ps_suppkey not in (select s_suppkey from supplier
-where s_comment like '%Customer%Complaints%')
-group by p_brand, p_type, p_size
-order by supplier_cnt desc, p_brand, p_type, p_size;
-p_brand p_type p_size supplier_cnt
-Brand#21 MEDIUM ANODIZED TIN 8 4
-Brand#22 PROMO PLATED TIN 5 4
-Brand#24 MEDIUM BURNISHED NICKEL 6 4
-Brand#24 SMALL ANODIZED STEEL 40 4
-Brand#32 MEDIUM BURNISHED BRASS 49 4
-Brand#33 MEDIUM POLISHED BRASS 49 4
-Brand#41 STANDARD BRUSHED NICKEL 40 4
-Brand#44 PROMO POLISHED STEEL 5 4
-Brand#45 PROMO ANODIZED BRASS 22 4
-Brand#53 STANDARD BRUSHED STEEL 27 4
-Brand#54 MEDIUM POLISHED BRASS 22 4
-Brand#54 STANDARD ANODIZED BRASS 22 4
-Brand#13 LARGE BRUSHED STEEL 8 2
-Brand#25 ECONOMY BURNISHED COPPER 27 2
-Brand#44 STANDARD PLATED TIN 37 1
-Brand#51 ECONOMY POLISHED STEEL 49 1
-=== Q18 ===
-set optimizer_use_condition_selectivity=1;
-EXPLAIN EXTENDED select
-c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, sum(l_quantity)
-from customer, orders, lineitem
-where
-o_orderkey in (select l_orderkey from lineitem
-group by l_orderkey having sum(l_quantity) > 250)
-and c_custkey = o_custkey
-and o_orderkey = l_orderkey
-group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice
-order by o_totalprice desc, o_orderdate;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY orders ALL PRIMARY,i_o_custkey NULL NULL NULL 1500 100.00 Using where; Using temporary; Using filesort
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 dbt3_s001.orders.o_orderkey 1 100.00
-1 PRIMARY customer eq_ref PRIMARY PRIMARY 4 dbt3_s001.orders.o_custkey 1 100.00
-1 PRIMARY lineitem ref PRIMARY,i_l_orderkey,i_l_orderkey_quantity i_l_orderkey_quantity 4 dbt3_s001.orders.o_orderkey 4 100.00 Using index
-2 MATERIALIZED lineitem index NULL i_l_orderkey_quantity 13 NULL 6005 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `dbt3_s001`.`customer`.`c_name` AS `c_name`,`dbt3_s001`.`customer`.`c_custkey` AS `c_custkey`,`dbt3_s001`.`orders`.`o_orderkey` AS `o_orderkey`,`dbt3_s001`.`orders`.`o_orderDATE` AS `o_orderdate`,`dbt3_s001`.`orders`.`o_totalprice` AS `o_totalprice`,sum(`dbt3_s001`.`lineitem`.`l_quantity`) AS `sum(l_quantity)` from <materialize> (/* select#2 */ select `dbt3_s001`.`lineitem`.`l_orderkey` from `dbt3_s001`.`lineitem` group by `dbt3_s001`.`lineitem`.`l_orderkey` having sum(`dbt3_s001`.`lineitem`.`l_quantity`) > 250) join `dbt3_s001`.`customer` join `dbt3_s001`.`orders` join `dbt3_s001`.`lineitem` where `dbt3_s001`.`customer`.`c_custkey` = `dbt3_s001`.`orders`.`o_custkey` and `<subquery2>`.`l_orderkey` = `dbt3_s001`.`orders`.`o_orderkey` and `dbt3_s001`.`lineitem`.`l_orderkey` = `dbt3_s001`.`orders`.`o_orderkey` group by `dbt3_s001`.`customer`.`c_name`,`dbt3_s001`.`customer`.`c_custkey`,`dbt3_s001`.`orders`.`o_orderkey`,`dbt3_s001`.`orders`.`o_orderDATE`,`dbt3_s001`.`orders`.`o_totalprice` order by `dbt3_s001`.`orders`.`o_totalprice` desc,`dbt3_s001`.`orders`.`o_orderDATE`
-select
-c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, sum(l_quantity)
-from customer, orders, lineitem
-where
-o_orderkey in (select l_orderkey from lineitem
-group by l_orderkey having sum(l_quantity) > 250)
-and c_custkey = o_custkey
-and o_orderkey = l_orderkey
-group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice
-order by o_totalprice desc, o_orderdate;
-c_name c_custkey o_orderkey o_orderdate o_totalprice sum(l_quantity)
-Customer#000000070 70 2567 1998-02-27 263411.29 266
-Customer#000000010 10 4421 1997-04-04 258779.02 255
-Customer#000000082 82 3460 1995-10-03 245976.74 254
-Customer#000000068 68 2208 1995-05-01 245388.06 256
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED select
-c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, sum(l_quantity)
-from customer, orders, lineitem
-where
-o_orderkey in (select l_orderkey from lineitem
-group by l_orderkey having sum(l_quantity) > 250)
-and c_custkey = o_custkey
-and o_orderkey = l_orderkey
-group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice
-order by o_totalprice desc, o_orderdate;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 6005 0.00 Using temporary; Using filesort
-1 PRIMARY orders eq_ref PRIMARY,i_o_custkey PRIMARY 4 <subquery2>.l_orderkey 1 100.00 Using where
-1 PRIMARY customer eq_ref PRIMARY PRIMARY 4 dbt3_s001.orders.o_custkey 1 100.00
-1 PRIMARY lineitem ref PRIMARY,i_l_orderkey,i_l_orderkey_quantity PRIMARY 4 <subquery2>.l_orderkey 4 100.00
-2 MATERIALIZED lineitem index NULL i_l_orderkey_quantity 13 NULL 6005 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `dbt3_s001`.`customer`.`c_name` AS `c_name`,`dbt3_s001`.`customer`.`c_custkey` AS `c_custkey`,`dbt3_s001`.`orders`.`o_orderkey` AS `o_orderkey`,`dbt3_s001`.`orders`.`o_orderDATE` AS `o_orderdate`,`dbt3_s001`.`orders`.`o_totalprice` AS `o_totalprice`,sum(`dbt3_s001`.`lineitem`.`l_quantity`) AS `sum(l_quantity)` from <materialize> (/* select#2 */ select `dbt3_s001`.`lineitem`.`l_orderkey` from `dbt3_s001`.`lineitem` group by `dbt3_s001`.`lineitem`.`l_orderkey` having sum(`dbt3_s001`.`lineitem`.`l_quantity`) > 250) join `dbt3_s001`.`customer` join `dbt3_s001`.`orders` join `dbt3_s001`.`lineitem` where `dbt3_s001`.`customer`.`c_custkey` = `dbt3_s001`.`orders`.`o_custkey` and `dbt3_s001`.`orders`.`o_orderkey` = `<subquery2>`.`l_orderkey` and `dbt3_s001`.`lineitem`.`l_orderkey` = `<subquery2>`.`l_orderkey` group by `dbt3_s001`.`customer`.`c_name`,`dbt3_s001`.`customer`.`c_custkey`,`dbt3_s001`.`orders`.`o_orderkey`,`dbt3_s001`.`orders`.`o_orderDATE`,`dbt3_s001`.`orders`.`o_totalprice` order by `dbt3_s001`.`orders`.`o_totalprice` desc,`dbt3_s001`.`orders`.`o_orderDATE`
-select
-c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, sum(l_quantity)
-from customer, orders, lineitem
-where
-o_orderkey in (select l_orderkey from lineitem
-group by l_orderkey having sum(l_quantity) > 250)
-and c_custkey = o_custkey
-and o_orderkey = l_orderkey
-group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice
-order by o_totalprice desc, o_orderdate;
-c_name c_custkey o_orderkey o_orderdate o_totalprice sum(l_quantity)
-Customer#000000070 70 2567 1998-02-27 263411.29 266
-Customer#000000010 10 4421 1997-04-04 258779.02 255
-Customer#000000082 82 3460 1995-10-03 245976.74 254
-Customer#000000068 68 2208 1995-05-01 245388.06 256
-=== Q22 ===
-set optimizer_use_condition_selectivity=1;
-EXPLAIN EXTENDED select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal
-from (
-select substr(c_phone, 1, 2) as cntrycode, c_acctbal
-from customer
-where
-substr(c_phone, 1, 2) in ('10', '20', '14', '19', '11', '28', '25')
-and c_acctbal > (select avg(c_acctbal) from customer
-where c_acctbal > 0.00
-and substr(c_phone, 1, 2) in
-('10', '20', '14', '19', '11', '28', '25'))
-and not exists (select * from orders where o_custkey = c_custkey)
-) as vip
-group by cntrycode
-order by cntrycode;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY customer ALL NULL NULL NULL NULL 150 100.00 Using where; Using temporary; Using filesort
-4 DEPENDENT SUBQUERY orders ref i_o_custkey i_o_custkey 5 dbt3_s001.customer.c_custkey 15 100.00 Using index
-3 SUBQUERY customer ALL NULL NULL NULL NULL 150 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.customer.c_custkey' of SELECT #4 was resolved in SELECT #2
-Note 1003 /* select#1 */ select substr(`dbt3_s001`.`customer`.`c_phone`,1,2) AS `cntrycode`,count(0) AS `numcust`,sum(`dbt3_s001`.`customer`.`c_acctbal`) AS `totacctbal` from `dbt3_s001`.`customer` where substr(`dbt3_s001`.`customer`.`c_phone`,1,2) in ('10','20','14','19','11','28','25') and `dbt3_s001`.`customer`.`c_acctbal` > (/* select#3 */ select avg(`dbt3_s001`.`customer`.`c_acctbal`) from `dbt3_s001`.`customer` where `dbt3_s001`.`customer`.`c_acctbal` > 0.00 and substr(`dbt3_s001`.`customer`.`c_phone`,1,2) in ('10','20','14','19','11','28','25')) and !<in_optimizer>(1,<expr_cache><`dbt3_s001`.`customer`.`c_custkey`>(exists(/* select#4 */ select 1 from `dbt3_s001`.`orders` where `dbt3_s001`.`orders`.`o_custkey` = `dbt3_s001`.`customer`.`c_custkey`))) group by substr(`dbt3_s001`.`customer`.`c_phone`,1,2) order by substr(`dbt3_s001`.`customer`.`c_phone`,1,2)
-select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal
-from (
-select substr(c_phone, 1, 2) as cntrycode, c_acctbal
-from customer
-where
-substr(c_phone, 1, 2) in ('10', '20', '14', '19', '11', '28', '25')
-and c_acctbal > (select avg(c_acctbal) from customer
-where c_acctbal > 0.00
-and substr(c_phone, 1, 2) in
-('10', '20', '14', '19', '11', '28', '25'))
-and not exists (select * from orders where o_custkey = c_custkey)
-) as vip
-group by cntrycode
-order by cntrycode;
-cntrycode numcust totacctbal
-11 4 29942.58
-19 2 17120.35
-20 1 9091.82
-28 2 14755.5
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal
-from (
-select substr(c_phone, 1, 2) as cntrycode, c_acctbal
-from customer
-where
-substr(c_phone, 1, 2) in ('10', '20', '14', '19', '11', '28', '25')
-and c_acctbal > (select avg(c_acctbal) from customer
-where c_acctbal > 0.00
-and substr(c_phone, 1, 2) in
-('10', '20', '14', '19', '11', '28', '25'))
-and not exists (select * from orders where o_custkey = c_custkey)
-) as vip
-group by cntrycode
-order by cntrycode;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY customer ALL NULL NULL NULL NULL 150 100.00 Using where; Using temporary; Using filesort
-4 DEPENDENT SUBQUERY orders ref i_o_custkey i_o_custkey 5 dbt3_s001.customer.c_custkey 15 100.00 Using index
-3 SUBQUERY customer ALL NULL NULL NULL NULL 150 91.00 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.customer.c_custkey' of SELECT #4 was resolved in SELECT #2
-Note 1003 /* select#1 */ select substr(`dbt3_s001`.`customer`.`c_phone`,1,2) AS `cntrycode`,count(0) AS `numcust`,sum(`dbt3_s001`.`customer`.`c_acctbal`) AS `totacctbal` from `dbt3_s001`.`customer` where substr(`dbt3_s001`.`customer`.`c_phone`,1,2) in ('10','20','14','19','11','28','25') and `dbt3_s001`.`customer`.`c_acctbal` > (/* select#3 */ select avg(`dbt3_s001`.`customer`.`c_acctbal`) from `dbt3_s001`.`customer` where `dbt3_s001`.`customer`.`c_acctbal` > 0.00 and substr(`dbt3_s001`.`customer`.`c_phone`,1,2) in ('10','20','14','19','11','28','25')) and !<in_optimizer>(1,<expr_cache><`dbt3_s001`.`customer`.`c_custkey`>(exists(/* select#4 */ select 1 from `dbt3_s001`.`orders` where `dbt3_s001`.`orders`.`o_custkey` = `dbt3_s001`.`customer`.`c_custkey`))) group by substr(`dbt3_s001`.`customer`.`c_phone`,1,2) order by substr(`dbt3_s001`.`customer`.`c_phone`,1,2)
-select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal
-from (
-select substr(c_phone, 1, 2) as cntrycode, c_acctbal
-from customer
-where
-substr(c_phone, 1, 2) in ('10', '20', '14', '19', '11', '28', '25')
-and c_acctbal > (select avg(c_acctbal) from customer
-where c_acctbal > 0.00
-and substr(c_phone, 1, 2) in
-('10', '20', '14', '19', '11', '28', '25'))
-and not exists (select * from orders where o_custkey = c_custkey)
-) as vip
-group by cntrycode
-order by cntrycode;
-cntrycode numcust totacctbal
-11 4 29942.58
-19 2 17120.35
-20 1 9091.82
-28 2 14755.5
-=== Q20 ===
-set optimizer_use_condition_selectivity=1;
-EXPLAIN EXTENDED select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY supplier ALL PRIMARY,i_s_nationkey NULL NULL NULL 10 100.00 Using where; Using filesort
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-1 PRIMARY nation eq_ref PRIMARY PRIMARY 4 dbt3_s001.supplier.s_nationkey 1 100.00 Using where
-2 MATERIALIZED part ALL PRIMARY NULL NULL NULL 200 100.00 Using where
-2 MATERIALIZED partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00 Using where
-4 DEPENDENT SUBQUERY lineitem ref i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey i_l_suppkey_partkey 10 dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey 8 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_suppkey' of SELECT #4 was resolved in SELECT #2
-Note 1003 /* select#1 */ select sql_calc_found_rows `dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address` from `dbt3_s001`.`supplier` semi join (`dbt3_s001`.`part` join `dbt3_s001`.`partsupp`) join `dbt3_s001`.`nation` where `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`nation`.`n_name` = 'UNITED STATES' and `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`partsupp`.`ps_availqty` > <expr_cache><`dbt3_s001`.`partsupp`.`ps_partkey`,`dbt3_s001`.`partsupp`.`ps_suppkey`>((/* select#4 */ select 0.5 * sum(`dbt3_s001`.`lineitem`.`l_quantity`) from `dbt3_s001`.`lineitem` where `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`lineitem`.`l_shipDATE` >= <cache>(cast('1993-01-01' as date)) and `dbt3_s001`.`lineitem`.`l_shipDATE` < <cache>(cast('1993-01-01' as date) + interval '1' year))) and `dbt3_s001`.`part`.`p_name` like 'g%' order by `dbt3_s001`.`supplier`.`s_name` limit 10
-select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-s_name s_address
-Supplier#000000010 Saygah3gYWMp72i PY
-SELECT ((SELECT COUNT(*) FROM part WHERE p_name LIKE 'g%') /
-(SELECT COUNT(*) FROM part)) AS sel;
-sel
-0.0600
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY nation ALL PRIMARY NULL NULL NULL 25 4.00 Using where; Using temporary; Using filesort
-1 PRIMARY supplier ref PRIMARY,i_s_nationkey i_s_nationkey 5 dbt3_s001.nation.n_nationkey 1 100.00
-1 PRIMARY part ALL PRIMARY NULL NULL NULL 200 4.17 Using where; Start temporary; Using join buffer (flat, BNL join)
-1 PRIMARY partsupp eq_ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 8 dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey 1 100.00 Using where; End temporary
-4 DEPENDENT SUBQUERY lineitem ref i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey i_l_suppkey_partkey 10 dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey 8 15.14 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_suppkey' of SELECT #4 was resolved in SELECT #2
-Note 1003 /* select#1 */ select sql_calc_found_rows `dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address` from `dbt3_s001`.`supplier` semi join (`dbt3_s001`.`part` join `dbt3_s001`.`partsupp`) join `dbt3_s001`.`nation` where `dbt3_s001`.`supplier`.`s_nationkey` = `dbt3_s001`.`nation`.`n_nationkey` and `dbt3_s001`.`nation`.`n_name` = 'UNITED STATES' and `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`partsupp`.`ps_suppkey` = `dbt3_s001`.`supplier`.`s_suppkey` and `dbt3_s001`.`partsupp`.`ps_availqty` > <expr_cache><`dbt3_s001`.`partsupp`.`ps_partkey`,`dbt3_s001`.`partsupp`.`ps_suppkey`>((/* select#4 */ select 0.5 * sum(`dbt3_s001`.`lineitem`.`l_quantity`) from `dbt3_s001`.`lineitem` where `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`lineitem`.`l_shipDATE` >= <cache>(cast('1993-01-01' as date)) and `dbt3_s001`.`lineitem`.`l_shipDATE` < <cache>(cast('1993-01-01' as date) + interval '1' year))) and `dbt3_s001`.`part`.`p_name` like 'g%' order by `dbt3_s001`.`supplier`.`s_name` limit 10
-select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-s_name s_address
-Supplier#000000010 Saygah3gYWMp72i PY
-set histogram_size=127;
-ANALYZE TABLE part PERSISTENT FOR COLUMNS(p_name) INDEXES();
-Table Op Msg_type Msg_text
-dbt3_s001.part analyze status Engine-independent statistics collected
-dbt3_s001.part analyze status Table is already up to date
-flush table part;
-set optimizer_use_condition_selectivity=4;
-EXPLAIN EXTENDED select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY nation ALL PRIMARY NULL NULL NULL 25 4.00 Using where; Using temporary; Using filesort
-1 PRIMARY supplier ref PRIMARY,i_s_nationkey i_s_nationkey 5 dbt3_s001.nation.n_nationkey 1 100.00
-1 PRIMARY part ALL PRIMARY NULL NULL NULL 200 7.03 Using where
-1 PRIMARY partsupp eq_ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 8 dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey 1 100.00 Using where; FirstMatch(supplier)
-4 DEPENDENT SUBQUERY lineitem ref i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey i_l_suppkey_partkey 10 dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey 8 15.14 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_suppkey' of SELECT #4 was resolved in SELECT #2
-Note 1003 /* select#1 */ select sql_calc_found_rows `dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address` from `dbt3_s001`.`supplier` semi join (`dbt3_s001`.`part` join `dbt3_s001`.`partsupp`) join `dbt3_s001`.`nation` where `dbt3_s001`.`supplier`.`s_nationkey` = `dbt3_s001`.`nation`.`n_nationkey` and `dbt3_s001`.`nation`.`n_name` = 'UNITED STATES' and `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`partsupp`.`ps_suppkey` = `dbt3_s001`.`supplier`.`s_suppkey` and `dbt3_s001`.`partsupp`.`ps_availqty` > <expr_cache><`dbt3_s001`.`partsupp`.`ps_partkey`,`dbt3_s001`.`partsupp`.`ps_suppkey`>((/* select#4 */ select 0.5 * sum(`dbt3_s001`.`lineitem`.`l_quantity`) from `dbt3_s001`.`lineitem` where `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`lineitem`.`l_shipDATE` >= <cache>(cast('1993-01-01' as date)) and `dbt3_s001`.`lineitem`.`l_shipDATE` < <cache>(cast('1993-01-01' as date) + interval '1' year))) and `dbt3_s001`.`part`.`p_name` like 'g%' order by `dbt3_s001`.`supplier`.`s_name` limit 10
-select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-s_name s_address
-Supplier#000000010 Saygah3gYWMp72i PY
-set histogram_type='DOUBLE_PREC_HB';
-set histogram_size=126;
-ANALYZE TABLE part PERSISTENT FOR COLUMNS(p_name) INDEXES();
-Table Op Msg_type Msg_text
-dbt3_s001.part analyze status Engine-independent statistics collected
-dbt3_s001.part analyze status Table is already up to date
-flush table part;
-EXPLAIN EXTENDED select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY nation ALL PRIMARY NULL NULL NULL 25 4.00 Using where; Using temporary; Using filesort
-1 PRIMARY supplier ref PRIMARY,i_s_nationkey i_s_nationkey 5 dbt3_s001.nation.n_nationkey 1 100.00
-1 PRIMARY part ALL PRIMARY NULL NULL NULL 200 7.81 Using where
-1 PRIMARY partsupp eq_ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 8 dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey 1 100.00 Using where; FirstMatch(supplier)
-4 DEPENDENT SUBQUERY lineitem ref i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey i_l_suppkey_partkey 10 dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey 8 15.14 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_suppkey' of SELECT #4 was resolved in SELECT #2
-Note 1003 /* select#1 */ select sql_calc_found_rows `dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address` from `dbt3_s001`.`supplier` semi join (`dbt3_s001`.`part` join `dbt3_s001`.`partsupp`) join `dbt3_s001`.`nation` where `dbt3_s001`.`supplier`.`s_nationkey` = `dbt3_s001`.`nation`.`n_nationkey` and `dbt3_s001`.`nation`.`n_name` = 'UNITED STATES' and `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`partsupp`.`ps_suppkey` = `dbt3_s001`.`supplier`.`s_suppkey` and `dbt3_s001`.`partsupp`.`ps_availqty` > <expr_cache><`dbt3_s001`.`partsupp`.`ps_partkey`,`dbt3_s001`.`partsupp`.`ps_suppkey`>((/* select#4 */ select 0.5 * sum(`dbt3_s001`.`lineitem`.`l_quantity`) from `dbt3_s001`.`lineitem` where `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`lineitem`.`l_shipDATE` >= <cache>(cast('1993-01-01' as date)) and `dbt3_s001`.`lineitem`.`l_shipDATE` < <cache>(cast('1993-01-01' as date) + interval '1' year))) and `dbt3_s001`.`part`.`p_name` like 'g%' order by `dbt3_s001`.`supplier`.`s_name` limit 10
-select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-s_name s_address
-Supplier#000000010 Saygah3gYWMp72i PY
-set histogram_type='SINGLE_PREC_HB';
-set histogram_size=24;
-ANALYZE TABLE nation PERSISTENT FOR COLUMNS(n_name) INDEXES();
-Table Op Msg_type Msg_text
-dbt3_s001.nation analyze status Engine-independent statistics collected
-dbt3_s001.nation analyze status Table is already up to date
-flush table nation;
-EXPLAIN EXTENDED select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY nation ALL PRIMARY NULL NULL NULL 25 4.00 Using where; Using temporary; Using filesort
-1 PRIMARY supplier ref PRIMARY,i_s_nationkey i_s_nationkey 5 dbt3_s001.nation.n_nationkey 1 100.00
-1 PRIMARY part ALL PRIMARY NULL NULL NULL 200 7.81 Using where
-1 PRIMARY partsupp eq_ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 8 dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey 1 100.00 Using where; FirstMatch(supplier)
-4 DEPENDENT SUBQUERY lineitem ref i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey i_l_suppkey_partkey 10 dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey 8 15.14 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_suppkey' of SELECT #4 was resolved in SELECT #2
-Note 1003 /* select#1 */ select sql_calc_found_rows `dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address` from `dbt3_s001`.`supplier` semi join (`dbt3_s001`.`part` join `dbt3_s001`.`partsupp`) join `dbt3_s001`.`nation` where `dbt3_s001`.`supplier`.`s_nationkey` = `dbt3_s001`.`nation`.`n_nationkey` and `dbt3_s001`.`nation`.`n_name` = 'UNITED STATES' and `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`partsupp`.`ps_suppkey` = `dbt3_s001`.`supplier`.`s_suppkey` and `dbt3_s001`.`partsupp`.`ps_availqty` > <expr_cache><`dbt3_s001`.`partsupp`.`ps_partkey`,`dbt3_s001`.`partsupp`.`ps_suppkey`>((/* select#4 */ select 0.5 * sum(`dbt3_s001`.`lineitem`.`l_quantity`) from `dbt3_s001`.`lineitem` where `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`lineitem`.`l_shipDATE` >= <cache>(cast('1993-01-01' as date)) and `dbt3_s001`.`lineitem`.`l_shipDATE` < <cache>(cast('1993-01-01' as date) + interval '1' year))) and `dbt3_s001`.`part`.`p_name` like 'g%' order by `dbt3_s001`.`supplier`.`s_name` limit 10
-select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-s_name s_address
-Supplier#000000010 Saygah3gYWMp72i PY
-DROP DATABASE dbt3_s001;
-set histogram_type=@save_histogram_type;
-set histogram_size=@save_histogram_size;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-use test;
-#
-# Bug mdev-4348: using view with use_condition_selectivity > 1
-#
-set @tmp_use_stat_tables=@@use_stat_tables;
-set use_stat_tables='never';
-set optimizer_use_condition_selectivity=3;
-CREATE TABLE t1 (a int, b int);
-INSERT t1 VALUES (7,1), (0,7);
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1;
-CREATE TABLE t2 (c int, d int, index idx(d));
-INSERT INTO t2 VALUES
-(0,4), (8,6), (1,3), (8,5), (9,3), (2,2), (6,2),
-(1,9), (6,3), (2,8), (4,1), (0,7), (4,8), (4,5);
-EXPLAIN EXTENDED
-SELECT * FROM v1 INNER JOIN t2 ON ( a = c AND b = d );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t2 ref idx idx 5 test.t1.b 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`c` = `test`.`t1`.`a` and `test`.`t2`.`d` = `test`.`t1`.`b`
-SELECT * FROM v1 INNER JOIN t2 ON ( a = c AND b = d );
-a b c d
-0 7 0 7
-DROP VIEW v1;
-DROP TABLE t1,t2;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-set use_stat_tables=@tmp_use_stat_tables;
-#
-# Bug mdev-4349: impossible range for non-indexed column
-#
-set optimizer_use_condition_selectivity=3;
-create table t1 (a int);
-insert into t1 values
-(3), (7), (2), (5), (7), (1), (2), (2);
-set optimizer_use_condition_selectivity=1;
-explain extended
-select * from t1 where a < 1 and a > 7;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` < 1 and `test`.`t1`.`a` > 7
-select * from t1 where a < 1 and a > 7;
-a
-set optimizer_use_condition_selectivity=3;
-explain extended
-select * from t1 where a < 1 and a > 7;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 7 AS `a` from `test`.`t1` where 0
-select * from t1 where a < 1 and a > 7;
-a
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1);
-create table t2 (b int);
-insert into t2 values (2),(3);
-explain extended
-select * from t1 where a in ( select b from t2 ) AND ( a > 3 );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 1 AS `a` from (`test`.`t2`) where 0
-select * from t1 where a in ( select b from t2 ) AND ( a > 3 );
-a
-drop table t1,t2;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-#
-# Bug mdev-4350: erroneous negative selectivity
-#
-create table t1 (a int);
-insert into t1 values (1), (1);
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 values (0);
-select count(*) from t1;
-count(*)
-1025
-set use_stat_tables='preferably';
-set histogram_size=127;
-set histogram_type='SINGLE_PREC_HB';
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-flush table t1;
-set optimizer_use_condition_selectivity=4;
-explain extended select * from t1 where a=0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1025 0.39 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 0
-drop table t1;
-set histogram_size=@save_histogram_size;
-set histogram_type=@save_histogram_type;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-#
-# Bug mdev-4367: 2-way join with an empty table
-# when optimizer_use_condition_selectivity=3
-#
-set optimizer_use_condition_selectivity=3;
-CREATE TABLE t1 (a varchar(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('j'),('k');
-CREATE TABLE t2 (b varchar(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('x'),('y');
-CREATE TABLE t3 (c varchar(1), KEY(c)) ENGINE=MyISAM;
-SELECT * FROM t1 STRAIGHT_JOIN (t2 JOIN t3 ON c = b AND b > 'z');
-a b c
-DROP TABLE t1,t2,t3;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-#
-# Bug mdev-4366: impossible condition on an indexed column discovered after
-# substitution of constant tables
-# with optimizer_use_condition_selectivity=3
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, a int);
-INSERT INTO t1 VALUES
-(1,4), (2,6), (3,3), (4,5);
-CREATE TABLE t2 (b int);
-INSERT INTO t2 VALUES (1), (7);
-set optimizer_use_condition_selectivity=1;
-EXPLAIN EXTENDED
-SELECT 1 FROM t1, t2 WHERE pk = 6 AND a = 2 AND b = 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 1 AS `1` from `test`.`t1` join `test`.`t2` where 0
-SELECT 1 FROM t1, t2 WHERE pk = 6 AND a = 2 AND b = 10;
-1
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED
-SELECT 1 FROM t1, t2 WHERE pk = 6 AND a = 2 AND b = 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 1 AS `1` from `test`.`t1` join `test`.`t2` where 0
-SELECT 1 FROM t1, t2 WHERE pk = 6 AND a = 2 AND b = 10;
-1
-DROP TABLE t1,t2;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-#
-# Bug mdev-4370: Histograms have bean created, but the query is run after
-# FLUSH TABLES with optimizer_use_condition_selectivity=3
-#
-set use_stat_tables=PREFERABLY;
-set histogram_size=10;
-set histogram_type='SINGLE_PREC_HB';
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (9), (1);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-FLUSH TABLES;
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a > 3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 75.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 3
-SELECT * FROM t1 WHERE a > 3;
-a
-9
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1;
-set histogram_size=@save_histogram_size;
-set histogram_type=@save_histogram_type;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4371: Join with condition supported by index on an empty table
-# with optimizer_use_condition_selectivity=3
-#
-set use_stat_tables=PREFERABLY;
-CREATE TABLE t1 (a int, b int, INDEX(a));
-CREATE TABLE t2 (c int);
-INSERT INTO t2 VALUES (1),(2),(3),(4),(5),(6),(7),(8);
-ANALYZE TABLE t1, t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status Table is already up to date
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-FLUSH TABLES;
-set optimizer_use_condition_selectivity=3;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='index_condition_pushdown=off';
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2 WHERE a > 9;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select NULL AS `a`,NULL AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where 0
-SELECT * FROM t1, t2 WHERE a > 9;
-a b c
-set optimizer_switch=@save_optimizer_switch;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4373: condition on a short varchar column
-# with optimizer_use_condition_selectivity=3
-#
-set use_stat_tables=PREFERABLY;
-CREATE TABLE t1 (a varchar(1));
-INSERT INTO t1 VALUES ('x'), ('y');
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-FLUSH TABLES;
-set optimizer_use_condition_selectivity=3;
-SELECT * FROM t1 WHERE a <= 'w';
-a
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4372: exists subquery in WHERE
-# with optimizer_use_condition_selectivity=3
-#
-set use_stat_tables = PREFERABLY;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES
-(1),(7),(4),(7),(0),(2),(9),(4),(0),(9),(1),(3),(8),(8);
-CREATE TABLE t2 (b int);
-INSERT INTO t2 VALUES (4),(5),(2),(5),(1),(1),(2);
-ANALYZE TABLE t1, t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-FLUSH TABLES;
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2 WHERE EXISTS ( SELECT 1 FROM t1, t2 ) AND a != b OR a <= 4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 14 100.00 Using where; Using join buffer (flat, BNL join)
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 7 100.00
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 14 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` join `test`.`t2` where <cache>(<in_optimizer>(1,exists(/* select#2 */ select 1 from `test`.`t1` join `test`.`t2`))) and `test`.`t1`.`a` <> `test`.`t2`.`b` or `test`.`t1`.`a` <= 4
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4363: selectivity of the condition a IS NULL OR IS NOT NULL
-# with optimizer_use_condition_selectivity=3
-#
-set use_stat_tables = PREFERABLY;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES
-(1),(7),(4),(7),(NULL),(2),(NULL),(4),(NULL),(NULL),(1),(3),(8),(8);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-FLUSH TABLE t1;
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 14 28.57 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` is null
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a IS NOT NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 14 71.43 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` is not null
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a IS NULL OR a IS NOT NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 14 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` is null or `test`.`t1`.`a` is not null
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a IS NULL OR a < 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 14 69.39 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` is null or `test`.`t1`.`a` < 5
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4378: 2-way join with a materialized IN subquery in WHERE
-# when optimizer_use_condition_selectivity=4
-#
-set use_stat_tables=PREFERABLY;
-set histogram_size=50;
-set histogram_type=SINGLE_PREC_HB;
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (8),(9),(6);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8),(1),(8),(9),(24),(6),(1),(6),(2),(4);
-CREATE TABLE t3 (ln VARCHAR(16)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES
-('smith'),('black'),('white'),('jones'),
-('brown'),('taylor'),('anderson'),('taylor');
-ANALYZE TABLE t1, t2, t3;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-test.t3 analyze status Engine-independent statistics collected
-test.t3 analyze status OK
-FLUSH TABLES;
-set optimizer_use_condition_selectivity=4;
-SELECT * FROM t1, t2 WHERE 'garcia' IN ( SELECT MIN( ln ) FROM t3 WHERE ln = 'sun' );
-a b
-set histogram_size=@save_histogram_size;
-set histogram_type=@save_histogram_type;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2,t3;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4380: 2-way join with a materialized IN subquery in WHERE
-# when optimizer_use_condition_selectivity=3
-#
-set use_stat_tables=PREFERABLY;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (5),(9);
-CREATE TABLE t2 (b VARCHAR(8));
-INSERT INTO t2 VALUES ('red'),('blue');
-CREATE TABLE t3 (c VARCHAR(8), d VARCHAR(8));
-INSERT INTO t3 VALUES ('white','black'),('cyan','yellow');
-ANALYZE TABLE t1, t2, t3;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-test.t3 analyze status Engine-independent statistics collected
-test.t3 analyze status OK
-FLUSH TABLES;
-set optimizer_use_condition_selectivity=3;
-SELECT * FROM t1, t2 WHERE ( 'orange', 'green' ) IN (
-SELECT MAX(c), MAX(d) FROM t3, t2 WHERE c >= d AND b = c
-);
-a b
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2,t3;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4389: join with degenerated range condition in WHERE
-# when optimizer_use_condition_selectivity=3
-#
-set use_stat_tables=PREFERABLY;
-CREATE TABLE t1 (f1 VARCHAR(1));
-INSERT t1 VALUES ('p'),('q');
-CREATE TABLE t2 (f2 VARCHAR(1));
-INSERT INTO t2 VALUES
-('o'),('v'),('f'),('f'),('e'),('l'),('j'),('p'),('r'),('j'),
-('j'),('u'),('i'),('r'),('x'),('a'),('x'),('s');
-ANALYZE TABLE t1, t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-FLUSH TABLES;
-SET optimizer_use_condition_selectivity=3;
-SELECT * FROM t1, t2 AS t2a, t2 AS t2b WHERE f1 <= 'a' AND t2a.f2 = f1;
-f1 f2 f2
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4406: range condition for non-nullable column
-# when optimizer_use_condition_selectivity=3
-#
-create table t1 (a int not null);
-insert into t1 values
-(7), (6), (4), (9), (1), (5), (2), (1), (3), (8);
-set use_stat_tables='preferably';
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-flush table t1;
-set optimizer_use_condition_selectivity=3;
-select count(*) from t1 where a between 5 and 7;
-count(*)
-3
-explain extended select * from t1 where a between 5 and 7;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 25.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` between 5 and 7
-alter table t1 change column a a int;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-flush table t1;
-explain extended select * from t1 where a between 5 and 7;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 25.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` between 5 and 7
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-drop table t1;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-5200: impossible where with a semijoin subquery
-# when optimizer_use_condition_selectivity=2
-#
-set use_stat_tables = 'preferably';
-set optimizer_use_condition_selectivity = 2;
-CREATE TABLE t1 (i1 int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (0), (1);
-CREATE TABLE t2 (pk2 int, i2 int, c2 char(1), PRIMARY KEY(pk2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,8,'m'), (2,9,'b');
-CREATE TABLE t3 (c3 char(1), INDEX(c3)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('v'), ('c');
-ANALYZE TABLE t1,t2,t3;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-test.t3 analyze status Engine-independent statistics collected
-test.t3 analyze status OK
-SELECT * FROM t1
-WHERE 2 IN ( SELECT pk2 FROM t2 LEFT JOIN t3 ON (c3 = c2 ) WHERE i2 = 3 );
-i1
-EXPLAIN EXTENDED
-SELECT * FROM t1
-WHERE 2 IN ( SELECT pk2 FROM t2 LEFT JOIN t3 ON (c3 = c2 ) WHERE i2 = 3 );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select `test`.`t1`.`i1` AS `i1` from `test`.`t1` semi join (`test`.`t2` left join `test`.`t3` on(`test`.`t3`.`c3` = 'b')) where 0
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2,t3;
-#
-# Bug mdev-5415: query over an information schema table
-# when optimizer_use_condition_selectivity=3
-#
-set optimizer_use_condition_selectivity = 3;
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE SQL_MODE != '';
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-#
-# Bug mdev-5630: always true conjunctive condition
-# when optimizer_use_condition_selectivity=3
-#
-set use_stat_tables = 'preferably';
-set optimizer_use_condition_selectivity = 3;
-CREATE TABLE t1 (a int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (10);
-CREATE TABLE t2 (id int, flag char(1), INDEX(id)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (100,'0'),(101,'1');
-ANALYZE TABLE t1, t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-SELECT * FROM t1, t2 WHERE id = a AND ( a = 16 OR flag AND a != 6 );
-a id flag
-DROP TABLE t1,t2;
-#
-# Bug mdev-4429: join with range condition whose selectivity == 0
-# when optimizer_use_condition_selectivity=3
-#
-CREATE TABLE language (lang_group INT, lang VARCHAR(16) PRIMARY KEY);
-INSERT INTO language VALUES
-(1,'Chinese'),(6,'English'),(1,'French'),
-(1,'German'),(1,'Italian'),(0,'Japanese');
-CREATE TABLE country (code varchar(3) PRIMARY KEY,
-country_group INT DEFAULT NULL);
-INSERT INTO country VALUES ('USA',3),('FRA',5);
-CREATE TABLE continent (cont_group INT, cont varchar(16) PRIMARY KEY);
-INSERT INTO continent VALUES
-(1,'N.America'),(1,'S.America'),(3,'Australia'),
-(4,'Africa'),(5,'Antarctica'),(6,'Eurasia');
-SET use_stat_tables=PREFERABLY;
-ANALYZE TABLE country, language, continent;
-Table Op Msg_type Msg_text
-test.country analyze status Engine-independent statistics collected
-test.country analyze status OK
-test.language analyze status Engine-independent statistics collected
-test.language analyze status OK
-test.continent analyze status Engine-independent statistics collected
-test.continent analyze status OK
-FLUSH TABLES;
-SET optimizer_use_condition_selectivity=3;
-SELECT * FROM language, country, continent
-WHERE country_group = lang_group AND lang_group IS NULL;
-lang_group lang code country_group cont_group cont
-EXPLAIN EXTENDED
-SELECT * FROM language, country, continent
-WHERE country_group = lang_group AND lang_group IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE country ALL NULL NULL NULL NULL 2 0.00 Using where
-1 SIMPLE language ALL NULL NULL NULL NULL 6 0.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE continent ALL NULL NULL NULL NULL 6 100.00 Using join buffer (incremental, BNL join)
-Warnings:
-Note 1003 select `test`.`language`.`lang_group` AS `lang_group`,`test`.`language`.`lang` AS `lang`,`test`.`country`.`code` AS `code`,`test`.`country`.`country_group` AS `country_group`,`test`.`continent`.`cont_group` AS `cont_group`,`test`.`continent`.`cont` AS `cont` from `test`.`language` join `test`.`country` join `test`.`continent` where `test`.`language`.`lang_group` = `test`.`country`.`country_group` and `test`.`country`.`country_group` is null
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-drop table language, country, continent;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-5191: performance degradation due to a suboptimal chosen plan
-# when optimizer_use_condition_selectivity=3
-#
-set use_stat_tables = 'preferably';
-set @@RAND_SEED1=810763568, @@RAND_SEED2=600681772;
-set TIMESTAMP=1394806993;
-create table t1 (a int, b int) engine=myisam;
-insert t1 values (rand()*1e5, rand()*1e5);
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-create table t2 (c int, d int, key(c), key(d)) engine=myisam;
-insert t2 select floor(rand()*1e5/2)*2, floor(rand()*1e5/3)*3 from t1;
-analyze table t1,t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status Table is already up to date
-set optimizer_use_condition_selectivity=1;
-explain extended
-select * from t1, t2, t1 as t3
-where t1.b=t2.c and t2.d=t3.a and t3.b<5 and t1.a < 2000;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 262144 100.00 Using where
-1 SIMPLE t2 ref c,d c 5 test.t1.b 5 100.00
-1 SIMPLE t3 ALL NULL NULL NULL NULL 262144 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b` from `test`.`t1` join `test`.`t2` join `test`.`t1` `t3` where `test`.`t2`.`c` = `test`.`t1`.`b` and `test`.`t3`.`a` = `test`.`t2`.`d` and `test`.`t3`.`b` < 5 and `test`.`t1`.`a` < 2000
-select * from t1, t2, t1 as t3
-where t1.b=t2.c and t2.d=t3.a and t3.b<5 and t1.a < 2000;
-a b c d a b
-1063 89366 89366 28296 28296 3
-1495 89366 89366 28296 28296 3
-221 56120 56120 28296 28296 3
-961 24512 24512 85239 85239 4
-set optimizer_use_condition_selectivity=3;
-explain extended
-select * from t1, t2, t1 as t3
-where t1.b=t2.c and t2.d=t3.a and t3.b<5 and t1.a < 2000;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 262144 0.00 Using where
-1 SIMPLE t2 ref c,d d 5 test.t3.a 7 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 262144 2.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b` from `test`.`t1` join `test`.`t2` join `test`.`t1` `t3` where `test`.`t1`.`b` = `test`.`t2`.`c` and `test`.`t2`.`d` = `test`.`t3`.`a` and `test`.`t3`.`b` < 5 and `test`.`t1`.`a` < 2000
-select * from t1, t2, t1 as t3
-where t1.b=t2.c and t2.d=t3.a and t3.b<5 and t1.a < 2000;
-a b c d a b
-1063 89366 89366 28296 28296 3
-1495 89366 89366 28296 28296 3
-221 56120 56120 28296 28296 3
-961 24512 24512 85239 85239 4
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-drop table t1,t2;
-set histogram_type=@save_histogram_type;
-set histogram_size=@save_histogram_size;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-#
-# Bug mdev-5931: no where condition after constant table row substitution
-# with optimizer_use_condition_selectivity=3
-#
-CREATE TABLE t1 (a varchar(3), b varchar(3)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo', 'foo');
-CREATE TABLE t2 (c INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1), (2);
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2 WHERE c >= 0 OR a = b ;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 select 'foo' AS `a`,'foo' AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where 1
-SELECT * FROM t1, t2 WHERE c >= 0 OR a = b ;
-a b c
-foo foo 1
-foo foo 2
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2;
-#
-# Bug mdev-6325: wrong selectivity of a column with ref access
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int);
-insert into t1 select A.a + B.a* 10 + C.a * 100 from t0 A, t0 B, t0 C;
-create table t2 (a int, b int, key(a));
-insert into t2 select A.a + 10*B.a, 12345 from t0 A, t0 B, t0 C;
-set use_stat_tables='preferably';
-set histogram_size=100;
-set optimizer_use_condition_selectivity=4;
-analyze table t1 persistent for all;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-analyze table t2 persistent for all;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status Table is already up to date
-explain extended
-select * from t1 straight_join t2 where t1.a=t2.a and t1.a<10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1000 0.99 Using where
-1 SIMPLE t2 ref a a 5 test.t1.a 10 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` straight_join `test`.`t2` where `test`.`t2`.`a` = `test`.`t1`.`a` and `test`.`t1`.`a` < 10
-explain extended
-select * from t1 straight_join t2 where t1.a=t2.a and t2.a<10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1000 0.99 Using where
-1 SIMPLE t2 ref a a 5 test.t1.a 10 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` straight_join `test`.`t2` where `test`.`t2`.`a` = `test`.`t1`.`a` and `test`.`t1`.`a` < 10
-set histogram_size=@save_histogram_size;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-drop table t0,t1,t2;
-#
-# Bug mdev-6843: col IS NULL in where condition when col is always NULL
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int);
-insert into t1 select A.a + B.a* 10 + C.a * 100 from t0 A, t0 B, t0 C;
-create table t2 (a int, b int);
-insert into t2 select NULL, a from t1;
-set use_stat_tables='preferably';
-set histogram_size=100;
-set optimizer_use_condition_selectivity=4;
-analyze table t2 persistent for all;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-explain extended
-select * from t2 a straight_join t2 b where a.a is null;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE a ALL NULL NULL NULL NULL 1000 100.00 Using where
-1 SIMPLE b ALL NULL NULL NULL NULL 1000 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`a`.`a` AS `a`,`test`.`a`.`b` AS `b`,`test`.`b`.`a` AS `a`,`test`.`b`.`b` AS `b` from `test`.`t2` `a` straight_join `test`.`t2` `b` where `test`.`a`.`a` is null
-set histogram_size=@save_histogram_size;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-drop table t0,t1,t2;
-#
-# Bug mdev-7316: a conjunct in WHERE with selectivity == 0
-#
-CREATE TABLE t1 (a varchar(16), b int, PRIMARY KEY(a), KEY(b));
-INSERT INTO t1 VALUES
-('USAChinese',10), ('USAEnglish',20), ('USAFrench',30);
-CREATE TABLE t2 (i int);
-INSERT INTO t2 VALUES
-(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(1),(2),(3),(4);
-ANALYZE TABLE t1, t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-set use_stat_tables='preferably';
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2
-WHERE a <> 'USARussian' AND b IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ref PRIMARY,b b 5 const 1 100.00 Using index condition; Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 14 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`i` AS `i` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` <> 'USARussian' and `test`.`t1`.`b` is null
-SELECT * FROM t1, t2
-WHERE a <> 'USARussian' AND b IS NULL;
-a b i
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-11096: range condition over column without statistical data
-#
-set use_stat_tables='preferably';
-set optimizer_use_condition_selectivity=3;
-create table t1(col1 char(32));
-insert into t1 values ('a'),('b'),('c'),('d'), ('e'),('f'),('g'),('h');
-analyze table t1 persistent for columns () indexes ();
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-explain extended
-select * from t1 where col1 > 'b' and col1 < 'e';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where `test`.`t1`.`col1` > 'b' and `test`.`t1`.`col1` < 'e'
-select * from t1 where col1 > 'b' and col1 < 'e';
-col1
-c
-d
-drop table t1;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-9628: unindexed blob column without min-max statistics
-# with optimizer_use_condition_selectivity=3
-#
-set use_stat_tables='preferably';
-set optimizer_use_condition_selectivity=3;
-create table t1(col1 char(32));
-insert into t1 values ('a'),('b'),('c'),('d'), ('e'),('f'),('g'),('h');
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-create table t2(col1 text);
-insert into t2 values ('a'),('b'),('c'),('d'), ('e'),('f'),('g'),('h');
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze Warning Engine-independent statistics are not collected for column 'col1'
-test.t2 analyze status OK
-select * from t1 where col1 > 'b' and col1 < 'd';
-col1
-c
-explain extended
-select * from t1 where col1 > 'b' and col1 < 'd';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 28.57 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where `test`.`t1`.`col1` > 'b' and `test`.`t1`.`col1` < 'd'
-select * from t2 where col1 > 'b' and col1 < 'd';
-col1
-c
-explain extended
-select * from t2 where col1 > 'b' and col1 < 'd';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`col1` AS `col1` from `test`.`t2` where `test`.`t2`.`col1` > 'b' and `test`.`t2`.`col1` < 'd'
-select * from t2 where col1 < 'b' and col1 > 'd';
-col1
-explain extended
-select * from t2 where col1 < 'b' and col1 > 'd';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 'd' AS `col1` from `test`.`t2` where 0
-drop table t1,t2;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-11364: IS NULL over not nullable datetime column
-# in mergeable derived
-#
-set use_stat_tables='preferably';
-set optimizer_use_condition_selectivity=4;
-set HISTOGRAM_SIZE = 255;
-CREATE TABLE t1 (t TIME, d DATE NOT NULL);
-INSERT INTO t1 VALUES ('10:00:00', '0000-00-00'),('11:00:00','0000-00-00');
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-SELECT * FROM (SELECT t FROM t1 WHERE d IS NULL) sq;
-t
-10:00:00
-11:00:00
-DROP TABLE t1;
-set histogram_size=@save_histogram_size;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-set use_stat_tables=@save_use_stat_tables;
diff --git a/mysql-test/r/selectivity_innodb.result b/mysql-test/r/selectivity_innodb.result
deleted file mode 100644
index 236647c6091..00000000000
--- a/mysql-test/r/selectivity_innodb.result
+++ /dev/null
@@ -1,1695 +0,0 @@
-SET SESSION STORAGE_ENGINE='InnoDB';
-set @save_optimizer_switch_for_selectivity_test=@@optimizer_switch;
-set optimizer_switch='extended_keys=on';
-drop table if exists t0,t1,t2,t3;
-select @@global.use_stat_tables;
-@@global.use_stat_tables
-COMPLEMENTARY
-select @@session.use_stat_tables;
-@@session.use_stat_tables
-COMPLEMENTARY
-set @save_use_stat_tables=@@use_stat_tables;
-set use_stat_tables='preferably';
-set @save_optimizer_use_condition_selectivity=@@optimizer_use_condition_selectivity;
-set @save_histogram_size=@@histogram_size;
-set @save_histogram_type=@@histogram_type;
-set optimizer_use_condition_selectivity=3;
-create table t1 (a int);
-insert into t1 values
-(9), (3), (2), (NULL), (NULL), (2), (NULL), (1), (5), (NULL);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-select * from mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 1 9 0.4000 4.0000 1.2000 0 NULL NULL
-flush table t1;
-explain extended
-select * from t1 where a is null;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 40.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` is null
-explain extended
-select * from t1 where a is not null;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 60.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` is not null
-drop table t1;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP DATABASE IF EXISTS dbt3_s001;
-CREATE DATABASE dbt3_s001;
-use dbt3_s001;
-=== Q2 ===
-set optimizer_use_condition_selectivity=5;
-explain extended
-select
-s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment
-from
-part, supplier, partsupp, nation, region
-where
-p_partkey = ps_partkey
-and s_suppkey = ps_suppkey
-and p_size = 9
-and p_type like '%TIN'
- and s_nationkey = n_nationkey
-and n_regionkey = r_regionkey
-and r_name = 'ASIA'
- and ps_supplycost = (
-select
-min(ps_supplycost)
-from
-partsupp, supplier, nation, region
-where
-p_partkey = ps_partkey
-and s_suppkey = ps_suppkey
-and s_nationkey = n_nationkey
-and n_regionkey = r_regionkey
-and r_name = 'ASIA'
- )
-order by
-s_acctbal desc, n_name, s_name, p_partkey;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY part ALL PRIMARY NULL NULL NULL 200 0.31 Using where; Using temporary; Using filesort
-1 PRIMARY region ALL PRIMARY NULL NULL NULL 5 20.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00 Using where
-1 PRIMARY supplier eq_ref PRIMARY,i_s_nationkey PRIMARY 4 dbt3_s001.partsupp.ps_suppkey 1 100.00 Using where
-1 PRIMARY nation eq_ref PRIMARY,i_n_regionkey PRIMARY 4 dbt3_s001.supplier.s_nationkey 1 100.00 Using where
-2 DEPENDENT SUBQUERY region ALL PRIMARY NULL NULL NULL 5 20.00 Using where
-2 DEPENDENT SUBQUERY partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00
-2 DEPENDENT SUBQUERY supplier eq_ref PRIMARY,i_s_nationkey PRIMARY 4 dbt3_s001.partsupp.ps_suppkey 1 100.00 Using where
-2 DEPENDENT SUBQUERY nation eq_ref PRIMARY,i_n_regionkey PRIMARY 4 dbt3_s001.supplier.s_nationkey 1 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.part.p_partkey' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `dbt3_s001`.`supplier`.`s_acctbal` AS `s_acctbal`,`dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`nation`.`n_name` AS `n_name`,`dbt3_s001`.`part`.`p_partkey` AS `p_partkey`,`dbt3_s001`.`part`.`p_mfgr` AS `p_mfgr`,`dbt3_s001`.`supplier`.`s_address` AS `s_address`,`dbt3_s001`.`supplier`.`s_phone` AS `s_phone`,`dbt3_s001`.`supplier`.`s_comment` AS `s_comment` from `dbt3_s001`.`part` join `dbt3_s001`.`supplier` join `dbt3_s001`.`partsupp` join `dbt3_s001`.`nation` join `dbt3_s001`.`region` where `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`supplier`.`s_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`part`.`p_size` = 9 and `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`nation`.`n_regionkey` = `dbt3_s001`.`region`.`r_regionkey` and `dbt3_s001`.`region`.`r_name` = 'ASIA' and `dbt3_s001`.`part`.`p_type` like '%TIN' and `dbt3_s001`.`partsupp`.`ps_supplycost` = <expr_cache><`dbt3_s001`.`part`.`p_partkey`>((/* select#2 */ select min(`dbt3_s001`.`partsupp`.`ps_supplycost`) from `dbt3_s001`.`partsupp` join `dbt3_s001`.`supplier` join `dbt3_s001`.`nation` join `dbt3_s001`.`region` where `dbt3_s001`.`supplier`.`s_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`nation`.`n_regionkey` = `dbt3_s001`.`region`.`r_regionkey` and `dbt3_s001`.`region`.`r_name` = 'ASIA' and `dbt3_s001`.`part`.`p_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey`)) order by `dbt3_s001`.`supplier`.`s_acctbal` desc,`dbt3_s001`.`nation`.`n_name`,`dbt3_s001`.`supplier`.`s_name`,`dbt3_s001`.`part`.`p_partkey`
-set optimizer_use_condition_selectivity=4;
-explain extended
-select
-s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment
-from
-part, supplier, partsupp, nation, region
-where
-p_partkey = ps_partkey
-and s_suppkey = ps_suppkey
-and p_size = 9
-and p_type like '%TIN'
- and s_nationkey = n_nationkey
-and n_regionkey = r_regionkey
-and r_name = 'ASIA'
- and ps_supplycost = (
-select
-min(ps_supplycost)
-from
-partsupp, supplier, nation, region
-where
-p_partkey = ps_partkey
-and s_suppkey = ps_suppkey
-and s_nationkey = n_nationkey
-and n_regionkey = r_regionkey
-and r_name = 'ASIA'
- )
-order by
-s_acctbal desc, n_name, s_name, p_partkey;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY region ALL PRIMARY NULL NULL NULL 5 20.00 Using where; Using temporary; Using filesort
-1 PRIMARY part ALL PRIMARY NULL NULL NULL 200 2.08 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00 Using where
-1 PRIMARY supplier eq_ref PRIMARY,i_s_nationkey PRIMARY 4 dbt3_s001.partsupp.ps_suppkey 1 100.00 Using where
-1 PRIMARY nation eq_ref PRIMARY,i_n_regionkey PRIMARY 4 dbt3_s001.supplier.s_nationkey 1 100.00 Using where
-2 DEPENDENT SUBQUERY region ALL PRIMARY NULL NULL NULL 5 20.00 Using where
-2 DEPENDENT SUBQUERY partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00
-2 DEPENDENT SUBQUERY supplier eq_ref PRIMARY,i_s_nationkey PRIMARY 4 dbt3_s001.partsupp.ps_suppkey 1 100.00 Using where
-2 DEPENDENT SUBQUERY nation eq_ref PRIMARY,i_n_regionkey PRIMARY 4 dbt3_s001.supplier.s_nationkey 1 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.part.p_partkey' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `dbt3_s001`.`supplier`.`s_acctbal` AS `s_acctbal`,`dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`nation`.`n_name` AS `n_name`,`dbt3_s001`.`part`.`p_partkey` AS `p_partkey`,`dbt3_s001`.`part`.`p_mfgr` AS `p_mfgr`,`dbt3_s001`.`supplier`.`s_address` AS `s_address`,`dbt3_s001`.`supplier`.`s_phone` AS `s_phone`,`dbt3_s001`.`supplier`.`s_comment` AS `s_comment` from `dbt3_s001`.`part` join `dbt3_s001`.`supplier` join `dbt3_s001`.`partsupp` join `dbt3_s001`.`nation` join `dbt3_s001`.`region` where `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`supplier`.`s_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`part`.`p_size` = 9 and `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`nation`.`n_regionkey` = `dbt3_s001`.`region`.`r_regionkey` and `dbt3_s001`.`region`.`r_name` = 'ASIA' and `dbt3_s001`.`part`.`p_type` like '%TIN' and `dbt3_s001`.`partsupp`.`ps_supplycost` = <expr_cache><`dbt3_s001`.`part`.`p_partkey`>((/* select#2 */ select min(`dbt3_s001`.`partsupp`.`ps_supplycost`) from `dbt3_s001`.`partsupp` join `dbt3_s001`.`supplier` join `dbt3_s001`.`nation` join `dbt3_s001`.`region` where `dbt3_s001`.`supplier`.`s_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`nation`.`n_regionkey` = `dbt3_s001`.`region`.`r_regionkey` and `dbt3_s001`.`region`.`r_name` = 'ASIA' and `dbt3_s001`.`part`.`p_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey`)) order by `dbt3_s001`.`supplier`.`s_acctbal` desc,`dbt3_s001`.`nation`.`n_name`,`dbt3_s001`.`supplier`.`s_name`,`dbt3_s001`.`part`.`p_partkey`
-=== Q15 ===
-create view revenue0 (supplier_no, total_revenue) as
-select l_suppkey, sum(l_extendedprice * (1 - l_discount))
-from lineitem
-where
-l_shipdate >= '1995-08-01'
- and l_shipdate < date_add('1995-08-01', interval 90 day)
-group by l_suppkey;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='index_condition_pushdown=off';
-set optimizer_use_condition_selectivity=1;
-EXPLAIN EXTENDED select s_suppkey, s_name, s_address, s_phone, total_revenue
-from supplier, revenue0
-where s_suppkey = supplier_no
-and total_revenue = (select max(total_revenue) from revenue0)
-order by s_suppkey;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY supplier index PRIMARY PRIMARY 4 NULL 10 100.00
-1 PRIMARY <derived3> ref key0 key0 5 dbt3_s001.supplier.s_suppkey 10 100.00 Using where
-3 DERIVED lineitem range i_l_shipdate,i_l_suppkey i_l_shipdate 4 NULL 229 100.00 Using where; Using temporary; Using filesort
-2 SUBQUERY <derived4> ALL NULL NULL NULL NULL 229 100.00
-4 DERIVED lineitem range i_l_shipdate i_l_shipdate 4 NULL 229 100.00 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `dbt3_s001`.`supplier`.`s_suppkey` AS `s_suppkey`,`dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address`,`dbt3_s001`.`supplier`.`s_phone` AS `s_phone`,`revenue0`.`total_revenue` AS `total_revenue` from `dbt3_s001`.`supplier` join `dbt3_s001`.`revenue0` where `revenue0`.`supplier_no` = `dbt3_s001`.`supplier`.`s_suppkey` and `revenue0`.`total_revenue` = (/* select#2 */ select max(`revenue0`.`total_revenue`) from `dbt3_s001`.`revenue0`) order by `dbt3_s001`.`supplier`.`s_suppkey`
-select s_suppkey, s_name, s_address, s_phone, total_revenue
-from supplier, revenue0
-where s_suppkey = supplier_no
-and total_revenue = (select max(total_revenue) from revenue0)
-order by s_suppkey;
-s_suppkey s_name s_address s_phone total_revenue
-1 Supplier#000000001 N kD4on9OM Ipw3,gf0JBoQDd7tgrzrddZ 27-918-335-1736 729084.7773
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED select s_suppkey, s_name, s_address, s_phone, total_revenue
-from supplier, revenue0
-where s_suppkey = supplier_no
-and total_revenue = (select max(total_revenue) from revenue0)
-order by s_suppkey;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY supplier index PRIMARY PRIMARY 4 NULL 10 100.00
-1 PRIMARY <derived3> ref key0 key0 5 dbt3_s001.supplier.s_suppkey 10 100.00 Using where
-3 DERIVED lineitem range i_l_shipdate,i_l_suppkey i_l_shipdate 4 NULL 229 100.00 Using where; Using temporary; Using filesort
-2 SUBQUERY <derived4> ALL NULL NULL NULL NULL 228 100.00
-4 DERIVED lineitem range i_l_shipdate i_l_shipdate 4 NULL 229 100.00 Using where; Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `dbt3_s001`.`supplier`.`s_suppkey` AS `s_suppkey`,`dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address`,`dbt3_s001`.`supplier`.`s_phone` AS `s_phone`,`revenue0`.`total_revenue` AS `total_revenue` from `dbt3_s001`.`supplier` join `dbt3_s001`.`revenue0` where `revenue0`.`supplier_no` = `dbt3_s001`.`supplier`.`s_suppkey` and `revenue0`.`total_revenue` = (/* select#2 */ select max(`revenue0`.`total_revenue`) from `dbt3_s001`.`revenue0`) order by `dbt3_s001`.`supplier`.`s_suppkey`
-select s_suppkey, s_name, s_address, s_phone, total_revenue
-from supplier, revenue0
-where s_suppkey = supplier_no
-and total_revenue = (select max(total_revenue) from revenue0)
-order by s_suppkey;
-s_suppkey s_name s_address s_phone total_revenue
-1 Supplier#000000001 N kD4on9OM Ipw3,gf0JBoQDd7tgrzrddZ 27-918-335-1736 729084.7773
-set optimizer_switch=@save_optimizer_switch;
-drop view revenue0;
-=== Q16 ===
-set optimizer_use_condition_selectivity=1;
-EXPLAIN EXTENDED select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt
-from partsupp, part
-where p_partkey = ps_partkey
-and p_brand <> 'Brand#11'
- and p_type not like 'SMALL POLISHED%'
- and p_size in (49, 37, 27, 5, 40, 6, 22, 8)
-and ps_suppkey not in (select s_suppkey from supplier
-where s_comment like '%Customer%Complaints%')
-group by p_brand, p_type, p_size
-order by supplier_cnt desc, p_brand, p_type, p_size;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY part ALL PRIMARY NULL NULL NULL 200 100.00 Using where; Using temporary; Using filesort
-1 PRIMARY partsupp ref PRIMARY,i_ps_partkey i_ps_partkey 4 dbt3_s001.part.p_partkey 3 100.00 Using where; Using index
-2 MATERIALIZED supplier ALL PRIMARY NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `dbt3_s001`.`part`.`p_brand` AS `p_brand`,`dbt3_s001`.`part`.`p_type` AS `p_type`,`dbt3_s001`.`part`.`p_size` AS `p_size`,count(distinct `dbt3_s001`.`partsupp`.`ps_suppkey`) AS `supplier_cnt` from `dbt3_s001`.`partsupp` join `dbt3_s001`.`part` where `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`part`.`p_brand` <> 'Brand#11' and `dbt3_s001`.`part`.`p_type` not like 'SMALL POLISHED%' and `dbt3_s001`.`part`.`p_size` in (49,37,27,5,40,6,22,8) and !<expr_cache><`dbt3_s001`.`partsupp`.`ps_suppkey`>(<in_optimizer>(`dbt3_s001`.`partsupp`.`ps_suppkey`,`dbt3_s001`.`partsupp`.`ps_suppkey` in ( <materialize> (/* select#2 */ select `dbt3_s001`.`supplier`.`s_suppkey` from `dbt3_s001`.`supplier` where `dbt3_s001`.`supplier`.`s_comment` like '%Customer%Complaints%' ), <primary_index_lookup>(`dbt3_s001`.`partsupp`.`ps_suppkey` in <temporary table> on distinct_key where `dbt3_s001`.`partsupp`.`ps_suppkey` = `<subquery2>`.`s_suppkey`)))) group by `dbt3_s001`.`part`.`p_brand`,`dbt3_s001`.`part`.`p_type`,`dbt3_s001`.`part`.`p_size` order by count(distinct `dbt3_s001`.`partsupp`.`ps_suppkey`) desc,`dbt3_s001`.`part`.`p_brand`,`dbt3_s001`.`part`.`p_type`,`dbt3_s001`.`part`.`p_size`
-select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt
-from partsupp, part
-where p_partkey = ps_partkey
-and p_brand <> 'Brand#11'
- and p_type not like 'SMALL POLISHED%'
- and p_size in (49, 37, 27, 5, 40, 6, 22, 8)
-and ps_suppkey not in (select s_suppkey from supplier
-where s_comment like '%Customer%Complaints%')
-group by p_brand, p_type, p_size
-order by supplier_cnt desc, p_brand, p_type, p_size;
-p_brand p_type p_size supplier_cnt
-Brand#21 MEDIUM ANODIZED TIN 8 4
-Brand#22 PROMO PLATED TIN 5 4
-Brand#24 MEDIUM BURNISHED NICKEL 6 4
-Brand#24 SMALL ANODIZED STEEL 40 4
-Brand#32 MEDIUM BURNISHED BRASS 49 4
-Brand#33 MEDIUM POLISHED BRASS 49 4
-Brand#41 STANDARD BRUSHED NICKEL 40 4
-Brand#44 PROMO POLISHED STEEL 5 4
-Brand#45 PROMO ANODIZED BRASS 22 4
-Brand#53 STANDARD BRUSHED STEEL 27 4
-Brand#54 MEDIUM POLISHED BRASS 22 4
-Brand#54 STANDARD ANODIZED BRASS 22 4
-Brand#13 LARGE BRUSHED STEEL 8 2
-Brand#25 ECONOMY BURNISHED COPPER 27 2
-Brand#44 STANDARD PLATED TIN 37 1
-Brand#51 ECONOMY POLISHED STEEL 49 1
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt
-from partsupp, part
-where p_partkey = ps_partkey
-and p_brand <> 'Brand#11'
- and p_type not like 'SMALL POLISHED%'
- and p_size in (49, 37, 27, 5, 40, 6, 22, 8)
-and ps_suppkey not in (select s_suppkey from supplier
-where s_comment like '%Customer%Complaints%')
-group by p_brand, p_type, p_size
-order by supplier_cnt desc, p_brand, p_type, p_size;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY part ALL PRIMARY NULL NULL NULL 200 16.67 Using where; Using temporary; Using filesort
-1 PRIMARY partsupp ref PRIMARY,i_ps_partkey i_ps_partkey 4 dbt3_s001.part.p_partkey 3 100.00 Using where; Using index
-2 MATERIALIZED supplier ALL PRIMARY NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `dbt3_s001`.`part`.`p_brand` AS `p_brand`,`dbt3_s001`.`part`.`p_type` AS `p_type`,`dbt3_s001`.`part`.`p_size` AS `p_size`,count(distinct `dbt3_s001`.`partsupp`.`ps_suppkey`) AS `supplier_cnt` from `dbt3_s001`.`partsupp` join `dbt3_s001`.`part` where `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`part`.`p_brand` <> 'Brand#11' and `dbt3_s001`.`part`.`p_type` not like 'SMALL POLISHED%' and `dbt3_s001`.`part`.`p_size` in (49,37,27,5,40,6,22,8) and !<expr_cache><`dbt3_s001`.`partsupp`.`ps_suppkey`>(<in_optimizer>(`dbt3_s001`.`partsupp`.`ps_suppkey`,`dbt3_s001`.`partsupp`.`ps_suppkey` in ( <materialize> (/* select#2 */ select `dbt3_s001`.`supplier`.`s_suppkey` from `dbt3_s001`.`supplier` where `dbt3_s001`.`supplier`.`s_comment` like '%Customer%Complaints%' ), <primary_index_lookup>(`dbt3_s001`.`partsupp`.`ps_suppkey` in <temporary table> on distinct_key where `dbt3_s001`.`partsupp`.`ps_suppkey` = `<subquery2>`.`s_suppkey`)))) group by `dbt3_s001`.`part`.`p_brand`,`dbt3_s001`.`part`.`p_type`,`dbt3_s001`.`part`.`p_size` order by count(distinct `dbt3_s001`.`partsupp`.`ps_suppkey`) desc,`dbt3_s001`.`part`.`p_brand`,`dbt3_s001`.`part`.`p_type`,`dbt3_s001`.`part`.`p_size`
-select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt
-from partsupp, part
-where p_partkey = ps_partkey
-and p_brand <> 'Brand#11'
- and p_type not like 'SMALL POLISHED%'
- and p_size in (49, 37, 27, 5, 40, 6, 22, 8)
-and ps_suppkey not in (select s_suppkey from supplier
-where s_comment like '%Customer%Complaints%')
-group by p_brand, p_type, p_size
-order by supplier_cnt desc, p_brand, p_type, p_size;
-p_brand p_type p_size supplier_cnt
-Brand#21 MEDIUM ANODIZED TIN 8 4
-Brand#22 PROMO PLATED TIN 5 4
-Brand#24 MEDIUM BURNISHED NICKEL 6 4
-Brand#24 SMALL ANODIZED STEEL 40 4
-Brand#32 MEDIUM BURNISHED BRASS 49 4
-Brand#33 MEDIUM POLISHED BRASS 49 4
-Brand#41 STANDARD BRUSHED NICKEL 40 4
-Brand#44 PROMO POLISHED STEEL 5 4
-Brand#45 PROMO ANODIZED BRASS 22 4
-Brand#53 STANDARD BRUSHED STEEL 27 4
-Brand#54 MEDIUM POLISHED BRASS 22 4
-Brand#54 STANDARD ANODIZED BRASS 22 4
-Brand#13 LARGE BRUSHED STEEL 8 2
-Brand#25 ECONOMY BURNISHED COPPER 27 2
-Brand#44 STANDARD PLATED TIN 37 1
-Brand#51 ECONOMY POLISHED STEEL 49 1
-set optimizer_use_condition_selectivity=4;
-EXPLAIN EXTENDED select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt
-from partsupp, part
-where p_partkey = ps_partkey
-and p_brand <> 'Brand#11'
- and p_type not like 'SMALL POLISHED%'
- and p_size in (49, 37, 27, 5, 40, 6, 22, 8)
-and ps_suppkey not in (select s_suppkey from supplier
-where s_comment like '%Customer%Complaints%')
-group by p_brand, p_type, p_size
-order by supplier_cnt desc, p_brand, p_type, p_size;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY part ALL PRIMARY NULL NULL NULL 200 16.67 Using where; Using temporary; Using filesort
-1 PRIMARY partsupp ref PRIMARY,i_ps_partkey i_ps_partkey 4 dbt3_s001.part.p_partkey 3 100.00 Using where; Using index
-2 MATERIALIZED supplier ALL PRIMARY NULL NULL NULL 10 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `dbt3_s001`.`part`.`p_brand` AS `p_brand`,`dbt3_s001`.`part`.`p_type` AS `p_type`,`dbt3_s001`.`part`.`p_size` AS `p_size`,count(distinct `dbt3_s001`.`partsupp`.`ps_suppkey`) AS `supplier_cnt` from `dbt3_s001`.`partsupp` join `dbt3_s001`.`part` where `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`part`.`p_brand` <> 'Brand#11' and `dbt3_s001`.`part`.`p_type` not like 'SMALL POLISHED%' and `dbt3_s001`.`part`.`p_size` in (49,37,27,5,40,6,22,8) and !<expr_cache><`dbt3_s001`.`partsupp`.`ps_suppkey`>(<in_optimizer>(`dbt3_s001`.`partsupp`.`ps_suppkey`,`dbt3_s001`.`partsupp`.`ps_suppkey` in ( <materialize> (/* select#2 */ select `dbt3_s001`.`supplier`.`s_suppkey` from `dbt3_s001`.`supplier` where `dbt3_s001`.`supplier`.`s_comment` like '%Customer%Complaints%' ), <primary_index_lookup>(`dbt3_s001`.`partsupp`.`ps_suppkey` in <temporary table> on distinct_key where `dbt3_s001`.`partsupp`.`ps_suppkey` = `<subquery2>`.`s_suppkey`)))) group by `dbt3_s001`.`part`.`p_brand`,`dbt3_s001`.`part`.`p_type`,`dbt3_s001`.`part`.`p_size` order by count(distinct `dbt3_s001`.`partsupp`.`ps_suppkey`) desc,`dbt3_s001`.`part`.`p_brand`,`dbt3_s001`.`part`.`p_type`,`dbt3_s001`.`part`.`p_size`
-select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt
-from partsupp, part
-where p_partkey = ps_partkey
-and p_brand <> 'Brand#11'
- and p_type not like 'SMALL POLISHED%'
- and p_size in (49, 37, 27, 5, 40, 6, 22, 8)
-and ps_suppkey not in (select s_suppkey from supplier
-where s_comment like '%Customer%Complaints%')
-group by p_brand, p_type, p_size
-order by supplier_cnt desc, p_brand, p_type, p_size;
-p_brand p_type p_size supplier_cnt
-Brand#21 MEDIUM ANODIZED TIN 8 4
-Brand#22 PROMO PLATED TIN 5 4
-Brand#24 MEDIUM BURNISHED NICKEL 6 4
-Brand#24 SMALL ANODIZED STEEL 40 4
-Brand#32 MEDIUM BURNISHED BRASS 49 4
-Brand#33 MEDIUM POLISHED BRASS 49 4
-Brand#41 STANDARD BRUSHED NICKEL 40 4
-Brand#44 PROMO POLISHED STEEL 5 4
-Brand#45 PROMO ANODIZED BRASS 22 4
-Brand#53 STANDARD BRUSHED STEEL 27 4
-Brand#54 MEDIUM POLISHED BRASS 22 4
-Brand#54 STANDARD ANODIZED BRASS 22 4
-Brand#13 LARGE BRUSHED STEEL 8 2
-Brand#25 ECONOMY BURNISHED COPPER 27 2
-Brand#44 STANDARD PLATED TIN 37 1
-Brand#51 ECONOMY POLISHED STEEL 49 1
-=== Q18 ===
-set optimizer_use_condition_selectivity=1;
-EXPLAIN EXTENDED select
-c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, sum(l_quantity)
-from customer, orders, lineitem
-where
-o_orderkey in (select l_orderkey from lineitem
-group by l_orderkey having sum(l_quantity) > 250)
-and c_custkey = o_custkey
-and o_orderkey = l_orderkey
-group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice
-order by o_totalprice desc, o_orderdate;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY orders ALL PRIMARY,i_o_custkey NULL NULL NULL 1500 100.00 Using where; Using temporary; Using filesort
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 dbt3_s001.orders.o_orderkey 1 100.00
-1 PRIMARY customer eq_ref PRIMARY PRIMARY 4 dbt3_s001.orders.o_custkey 1 100.00
-1 PRIMARY lineitem ref PRIMARY,i_l_orderkey,i_l_orderkey_quantity i_l_orderkey_quantity 4 dbt3_s001.orders.o_orderkey 4 100.00 Using index
-2 MATERIALIZED lineitem index NULL PRIMARY 8 NULL 6005 100.00
-Warnings:
-Note 1003 /* select#1 */ select `dbt3_s001`.`customer`.`c_name` AS `c_name`,`dbt3_s001`.`customer`.`c_custkey` AS `c_custkey`,`dbt3_s001`.`orders`.`o_orderkey` AS `o_orderkey`,`dbt3_s001`.`orders`.`o_orderDATE` AS `o_orderdate`,`dbt3_s001`.`orders`.`o_totalprice` AS `o_totalprice`,sum(`dbt3_s001`.`lineitem`.`l_quantity`) AS `sum(l_quantity)` from <materialize> (/* select#2 */ select `dbt3_s001`.`lineitem`.`l_orderkey` from `dbt3_s001`.`lineitem` group by `dbt3_s001`.`lineitem`.`l_orderkey` having sum(`dbt3_s001`.`lineitem`.`l_quantity`) > 250) join `dbt3_s001`.`customer` join `dbt3_s001`.`orders` join `dbt3_s001`.`lineitem` where `dbt3_s001`.`customer`.`c_custkey` = `dbt3_s001`.`orders`.`o_custkey` and `<subquery2>`.`l_orderkey` = `dbt3_s001`.`orders`.`o_orderkey` and `dbt3_s001`.`lineitem`.`l_orderkey` = `dbt3_s001`.`orders`.`o_orderkey` group by `dbt3_s001`.`customer`.`c_name`,`dbt3_s001`.`customer`.`c_custkey`,`dbt3_s001`.`orders`.`o_orderkey`,`dbt3_s001`.`orders`.`o_orderDATE`,`dbt3_s001`.`orders`.`o_totalprice` order by `dbt3_s001`.`orders`.`o_totalprice` desc,`dbt3_s001`.`orders`.`o_orderDATE`
-select
-c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, sum(l_quantity)
-from customer, orders, lineitem
-where
-o_orderkey in (select l_orderkey from lineitem
-group by l_orderkey having sum(l_quantity) > 250)
-and c_custkey = o_custkey
-and o_orderkey = l_orderkey
-group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice
-order by o_totalprice desc, o_orderdate;
-c_name c_custkey o_orderkey o_orderdate o_totalprice sum(l_quantity)
-Customer#000000070 70 2567 1998-02-27 263411.29 266
-Customer#000000010 10 4421 1997-04-04 258779.02 255
-Customer#000000082 82 3460 1995-10-03 245976.74 254
-Customer#000000068 68 2208 1995-05-01 245388.06 256
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED select
-c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, sum(l_quantity)
-from customer, orders, lineitem
-where
-o_orderkey in (select l_orderkey from lineitem
-group by l_orderkey having sum(l_quantity) > 250)
-and c_custkey = o_custkey
-and o_orderkey = l_orderkey
-group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice
-order by o_totalprice desc, o_orderdate;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 6005 0.00 Using temporary; Using filesort
-1 PRIMARY orders eq_ref PRIMARY,i_o_custkey PRIMARY 4 <subquery2>.l_orderkey 1 100.00 Using where
-1 PRIMARY customer eq_ref PRIMARY PRIMARY 4 dbt3_s001.orders.o_custkey 1 100.00
-1 PRIMARY lineitem ref PRIMARY,i_l_orderkey,i_l_orderkey_quantity PRIMARY 4 <subquery2>.l_orderkey 4 100.00
-2 MATERIALIZED lineitem index NULL PRIMARY 8 NULL 6005 100.00
-Warnings:
-Note 1003 /* select#1 */ select `dbt3_s001`.`customer`.`c_name` AS `c_name`,`dbt3_s001`.`customer`.`c_custkey` AS `c_custkey`,`dbt3_s001`.`orders`.`o_orderkey` AS `o_orderkey`,`dbt3_s001`.`orders`.`o_orderDATE` AS `o_orderdate`,`dbt3_s001`.`orders`.`o_totalprice` AS `o_totalprice`,sum(`dbt3_s001`.`lineitem`.`l_quantity`) AS `sum(l_quantity)` from <materialize> (/* select#2 */ select `dbt3_s001`.`lineitem`.`l_orderkey` from `dbt3_s001`.`lineitem` group by `dbt3_s001`.`lineitem`.`l_orderkey` having sum(`dbt3_s001`.`lineitem`.`l_quantity`) > 250) join `dbt3_s001`.`customer` join `dbt3_s001`.`orders` join `dbt3_s001`.`lineitem` where `dbt3_s001`.`customer`.`c_custkey` = `dbt3_s001`.`orders`.`o_custkey` and `dbt3_s001`.`orders`.`o_orderkey` = `<subquery2>`.`l_orderkey` and `dbt3_s001`.`lineitem`.`l_orderkey` = `<subquery2>`.`l_orderkey` group by `dbt3_s001`.`customer`.`c_name`,`dbt3_s001`.`customer`.`c_custkey`,`dbt3_s001`.`orders`.`o_orderkey`,`dbt3_s001`.`orders`.`o_orderDATE`,`dbt3_s001`.`orders`.`o_totalprice` order by `dbt3_s001`.`orders`.`o_totalprice` desc,`dbt3_s001`.`orders`.`o_orderDATE`
-select
-c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, sum(l_quantity)
-from customer, orders, lineitem
-where
-o_orderkey in (select l_orderkey from lineitem
-group by l_orderkey having sum(l_quantity) > 250)
-and c_custkey = o_custkey
-and o_orderkey = l_orderkey
-group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice
-order by o_totalprice desc, o_orderdate;
-c_name c_custkey o_orderkey o_orderdate o_totalprice sum(l_quantity)
-Customer#000000070 70 2567 1998-02-27 263411.29 266
-Customer#000000010 10 4421 1997-04-04 258779.02 255
-Customer#000000082 82 3460 1995-10-03 245976.74 254
-Customer#000000068 68 2208 1995-05-01 245388.06 256
-=== Q22 ===
-set optimizer_use_condition_selectivity=1;
-EXPLAIN EXTENDED select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal
-from (
-select substr(c_phone, 1, 2) as cntrycode, c_acctbal
-from customer
-where
-substr(c_phone, 1, 2) in ('10', '20', '14', '19', '11', '28', '25')
-and c_acctbal > (select avg(c_acctbal) from customer
-where c_acctbal > 0.00
-and substr(c_phone, 1, 2) in
-('10', '20', '14', '19', '11', '28', '25'))
-and not exists (select * from orders where o_custkey = c_custkey)
-) as vip
-group by cntrycode
-order by cntrycode;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY customer ALL NULL NULL NULL NULL 150 100.00 Using where; Using temporary; Using filesort
-4 DEPENDENT SUBQUERY orders ref i_o_custkey i_o_custkey 5 dbt3_s001.customer.c_custkey 15 100.00 Using index
-3 SUBQUERY customer ALL NULL NULL NULL NULL 150 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.customer.c_custkey' of SELECT #4 was resolved in SELECT #2
-Note 1003 /* select#1 */ select substr(`dbt3_s001`.`customer`.`c_phone`,1,2) AS `cntrycode`,count(0) AS `numcust`,sum(`dbt3_s001`.`customer`.`c_acctbal`) AS `totacctbal` from `dbt3_s001`.`customer` where substr(`dbt3_s001`.`customer`.`c_phone`,1,2) in ('10','20','14','19','11','28','25') and `dbt3_s001`.`customer`.`c_acctbal` > (/* select#3 */ select avg(`dbt3_s001`.`customer`.`c_acctbal`) from `dbt3_s001`.`customer` where `dbt3_s001`.`customer`.`c_acctbal` > 0.00 and substr(`dbt3_s001`.`customer`.`c_phone`,1,2) in ('10','20','14','19','11','28','25')) and !<in_optimizer>(1,<expr_cache><`dbt3_s001`.`customer`.`c_custkey`>(exists(/* select#4 */ select 1 from `dbt3_s001`.`orders` where `dbt3_s001`.`orders`.`o_custkey` = `dbt3_s001`.`customer`.`c_custkey`))) group by substr(`dbt3_s001`.`customer`.`c_phone`,1,2) order by substr(`dbt3_s001`.`customer`.`c_phone`,1,2)
-select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal
-from (
-select substr(c_phone, 1, 2) as cntrycode, c_acctbal
-from customer
-where
-substr(c_phone, 1, 2) in ('10', '20', '14', '19', '11', '28', '25')
-and c_acctbal > (select avg(c_acctbal) from customer
-where c_acctbal > 0.00
-and substr(c_phone, 1, 2) in
-('10', '20', '14', '19', '11', '28', '25'))
-and not exists (select * from orders where o_custkey = c_custkey)
-) as vip
-group by cntrycode
-order by cntrycode;
-cntrycode numcust totacctbal
-11 4 29942.58
-19 2 17120.35
-20 1 9091.82
-28 2 14755.5
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal
-from (
-select substr(c_phone, 1, 2) as cntrycode, c_acctbal
-from customer
-where
-substr(c_phone, 1, 2) in ('10', '20', '14', '19', '11', '28', '25')
-and c_acctbal > (select avg(c_acctbal) from customer
-where c_acctbal > 0.00
-and substr(c_phone, 1, 2) in
-('10', '20', '14', '19', '11', '28', '25'))
-and not exists (select * from orders where o_custkey = c_custkey)
-) as vip
-group by cntrycode
-order by cntrycode;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY customer ALL NULL NULL NULL NULL 150 100.00 Using where; Using temporary; Using filesort
-4 DEPENDENT SUBQUERY orders ref i_o_custkey i_o_custkey 5 dbt3_s001.customer.c_custkey 15 100.00 Using index
-3 SUBQUERY customer ALL NULL NULL NULL NULL 150 91.00 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.customer.c_custkey' of SELECT #4 was resolved in SELECT #2
-Note 1003 /* select#1 */ select substr(`dbt3_s001`.`customer`.`c_phone`,1,2) AS `cntrycode`,count(0) AS `numcust`,sum(`dbt3_s001`.`customer`.`c_acctbal`) AS `totacctbal` from `dbt3_s001`.`customer` where substr(`dbt3_s001`.`customer`.`c_phone`,1,2) in ('10','20','14','19','11','28','25') and `dbt3_s001`.`customer`.`c_acctbal` > (/* select#3 */ select avg(`dbt3_s001`.`customer`.`c_acctbal`) from `dbt3_s001`.`customer` where `dbt3_s001`.`customer`.`c_acctbal` > 0.00 and substr(`dbt3_s001`.`customer`.`c_phone`,1,2) in ('10','20','14','19','11','28','25')) and !<in_optimizer>(1,<expr_cache><`dbt3_s001`.`customer`.`c_custkey`>(exists(/* select#4 */ select 1 from `dbt3_s001`.`orders` where `dbt3_s001`.`orders`.`o_custkey` = `dbt3_s001`.`customer`.`c_custkey`))) group by substr(`dbt3_s001`.`customer`.`c_phone`,1,2) order by substr(`dbt3_s001`.`customer`.`c_phone`,1,2)
-select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal
-from (
-select substr(c_phone, 1, 2) as cntrycode, c_acctbal
-from customer
-where
-substr(c_phone, 1, 2) in ('10', '20', '14', '19', '11', '28', '25')
-and c_acctbal > (select avg(c_acctbal) from customer
-where c_acctbal > 0.00
-and substr(c_phone, 1, 2) in
-('10', '20', '14', '19', '11', '28', '25'))
-and not exists (select * from orders where o_custkey = c_custkey)
-) as vip
-group by cntrycode
-order by cntrycode;
-cntrycode numcust totacctbal
-11 4 29942.58
-19 2 17120.35
-20 1 9091.82
-28 2 14755.5
-=== Q20 ===
-set optimizer_use_condition_selectivity=1;
-EXPLAIN EXTENDED select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY supplier ALL PRIMARY,i_s_nationkey NULL NULL NULL 10 100.00 Using where; Using filesort
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-1 PRIMARY nation eq_ref PRIMARY PRIMARY 4 dbt3_s001.supplier.s_nationkey 1 100.00 Using where
-2 MATERIALIZED part ALL PRIMARY NULL NULL NULL 200 100.00 Using where
-2 MATERIALIZED partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00 Using where
-4 DEPENDENT SUBQUERY lineitem ref i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey i_l_suppkey_partkey 10 dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey 8 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_suppkey' of SELECT #4 was resolved in SELECT #2
-Note 1003 /* select#1 */ select sql_calc_found_rows `dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address` from `dbt3_s001`.`supplier` semi join (`dbt3_s001`.`part` join `dbt3_s001`.`partsupp`) join `dbt3_s001`.`nation` where `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`nation`.`n_name` = 'UNITED STATES' and `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`partsupp`.`ps_availqty` > <expr_cache><`dbt3_s001`.`partsupp`.`ps_partkey`,`dbt3_s001`.`partsupp`.`ps_suppkey`>((/* select#4 */ select 0.5 * sum(`dbt3_s001`.`lineitem`.`l_quantity`) from `dbt3_s001`.`lineitem` where `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`lineitem`.`l_shipDATE` >= <cache>(cast('1993-01-01' as date)) and `dbt3_s001`.`lineitem`.`l_shipDATE` < <cache>(cast('1993-01-01' as date) + interval '1' year))) and `dbt3_s001`.`part`.`p_name` like 'g%' order by `dbt3_s001`.`supplier`.`s_name` limit 10
-select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-s_name s_address
-Supplier#000000010 Saygah3gYWMp72i PY
-SELECT ((SELECT COUNT(*) FROM part WHERE p_name LIKE 'g%') /
-(SELECT COUNT(*) FROM part)) AS sel;
-sel
-0.0600
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY nation ALL PRIMARY NULL NULL NULL 25 4.00 Using where; Using temporary; Using filesort
-1 PRIMARY supplier ref PRIMARY,i_s_nationkey i_s_nationkey 5 dbt3_s001.nation.n_nationkey 1 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED part ALL PRIMARY NULL NULL NULL 200 4.17 Using where
-2 MATERIALIZED partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00 Using where
-4 DEPENDENT SUBQUERY lineitem ref i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey i_l_suppkey_partkey 10 dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey 8 14.40 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_suppkey' of SELECT #4 was resolved in SELECT #2
-Note 1003 /* select#1 */ select sql_calc_found_rows `dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address` from `dbt3_s001`.`supplier` semi join (`dbt3_s001`.`part` join `dbt3_s001`.`partsupp`) join `dbt3_s001`.`nation` where `dbt3_s001`.`supplier`.`s_nationkey` = `dbt3_s001`.`nation`.`n_nationkey` and `dbt3_s001`.`nation`.`n_name` = 'UNITED STATES' and `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`partsupp`.`ps_availqty` > <expr_cache><`dbt3_s001`.`partsupp`.`ps_partkey`,`dbt3_s001`.`partsupp`.`ps_suppkey`>((/* select#4 */ select 0.5 * sum(`dbt3_s001`.`lineitem`.`l_quantity`) from `dbt3_s001`.`lineitem` where `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`lineitem`.`l_shipDATE` >= <cache>(cast('1993-01-01' as date)) and `dbt3_s001`.`lineitem`.`l_shipDATE` < <cache>(cast('1993-01-01' as date) + interval '1' year))) and `dbt3_s001`.`part`.`p_name` like 'g%' order by `dbt3_s001`.`supplier`.`s_name` limit 10
-select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-s_name s_address
-Supplier#000000010 Saygah3gYWMp72i PY
-set histogram_size=127;
-ANALYZE TABLE part PERSISTENT FOR COLUMNS(p_name) INDEXES();
-Table Op Msg_type Msg_text
-dbt3_s001.part analyze status Engine-independent statistics collected
-dbt3_s001.part analyze status OK
-flush table part;
-set optimizer_use_condition_selectivity=4;
-EXPLAIN EXTENDED select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY nation ALL PRIMARY NULL NULL NULL 25 4.00 Using where; Using temporary; Using filesort
-1 PRIMARY supplier ref PRIMARY,i_s_nationkey i_s_nationkey 5 dbt3_s001.nation.n_nationkey 1 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED part ALL PRIMARY NULL NULL NULL 200 7.03 Using where
-2 MATERIALIZED partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00 Using where
-4 DEPENDENT SUBQUERY lineitem ref i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey i_l_suppkey_partkey 10 dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey 8 14.40 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_suppkey' of SELECT #4 was resolved in SELECT #2
-Note 1003 /* select#1 */ select sql_calc_found_rows `dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address` from `dbt3_s001`.`supplier` semi join (`dbt3_s001`.`part` join `dbt3_s001`.`partsupp`) join `dbt3_s001`.`nation` where `dbt3_s001`.`supplier`.`s_nationkey` = `dbt3_s001`.`nation`.`n_nationkey` and `dbt3_s001`.`nation`.`n_name` = 'UNITED STATES' and `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`partsupp`.`ps_availqty` > <expr_cache><`dbt3_s001`.`partsupp`.`ps_partkey`,`dbt3_s001`.`partsupp`.`ps_suppkey`>((/* select#4 */ select 0.5 * sum(`dbt3_s001`.`lineitem`.`l_quantity`) from `dbt3_s001`.`lineitem` where `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`lineitem`.`l_shipDATE` >= <cache>(cast('1993-01-01' as date)) and `dbt3_s001`.`lineitem`.`l_shipDATE` < <cache>(cast('1993-01-01' as date) + interval '1' year))) and `dbt3_s001`.`part`.`p_name` like 'g%' order by `dbt3_s001`.`supplier`.`s_name` limit 10
-select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-s_name s_address
-Supplier#000000010 Saygah3gYWMp72i PY
-set histogram_type='DOUBLE_PREC_HB';
-set histogram_size=126;
-ANALYZE TABLE part PERSISTENT FOR COLUMNS(p_name) INDEXES();
-Table Op Msg_type Msg_text
-dbt3_s001.part analyze status Engine-independent statistics collected
-dbt3_s001.part analyze status OK
-flush table part;
-EXPLAIN EXTENDED select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY nation ALL PRIMARY NULL NULL NULL 25 4.00 Using where; Using temporary; Using filesort
-1 PRIMARY supplier ref PRIMARY,i_s_nationkey i_s_nationkey 5 dbt3_s001.nation.n_nationkey 1 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED part ALL PRIMARY NULL NULL NULL 200 7.81 Using where
-2 MATERIALIZED partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00 Using where
-4 DEPENDENT SUBQUERY lineitem ref i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey i_l_suppkey_partkey 10 dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey 8 14.40 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_suppkey' of SELECT #4 was resolved in SELECT #2
-Note 1003 /* select#1 */ select sql_calc_found_rows `dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address` from `dbt3_s001`.`supplier` semi join (`dbt3_s001`.`part` join `dbt3_s001`.`partsupp`) join `dbt3_s001`.`nation` where `dbt3_s001`.`supplier`.`s_nationkey` = `dbt3_s001`.`nation`.`n_nationkey` and `dbt3_s001`.`nation`.`n_name` = 'UNITED STATES' and `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`partsupp`.`ps_availqty` > <expr_cache><`dbt3_s001`.`partsupp`.`ps_partkey`,`dbt3_s001`.`partsupp`.`ps_suppkey`>((/* select#4 */ select 0.5 * sum(`dbt3_s001`.`lineitem`.`l_quantity`) from `dbt3_s001`.`lineitem` where `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`lineitem`.`l_shipDATE` >= <cache>(cast('1993-01-01' as date)) and `dbt3_s001`.`lineitem`.`l_shipDATE` < <cache>(cast('1993-01-01' as date) + interval '1' year))) and `dbt3_s001`.`part`.`p_name` like 'g%' order by `dbt3_s001`.`supplier`.`s_name` limit 10
-select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-s_name s_address
-Supplier#000000010 Saygah3gYWMp72i PY
-set histogram_type='SINGLE_PREC_HB';
-set histogram_size=24;
-ANALYZE TABLE nation PERSISTENT FOR COLUMNS(n_name) INDEXES();
-Table Op Msg_type Msg_text
-dbt3_s001.nation analyze status Engine-independent statistics collected
-dbt3_s001.nation analyze status OK
-flush table nation;
-EXPLAIN EXTENDED select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY nation ALL PRIMARY NULL NULL NULL 25 4.00 Using where; Using temporary; Using filesort
-1 PRIMARY supplier ref PRIMARY,i_s_nationkey i_s_nationkey 5 dbt3_s001.nation.n_nationkey 1 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED part ALL PRIMARY NULL NULL NULL 200 7.81 Using where
-2 MATERIALIZED partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey PRIMARY 4 dbt3_s001.part.p_partkey 3 100.00 Using where
-4 DEPENDENT SUBQUERY lineitem ref i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey i_l_suppkey_partkey 10 dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey 8 14.40 Using where
-Warnings:
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
-Note 1276 Field or reference 'dbt3_s001.partsupp.ps_suppkey' of SELECT #4 was resolved in SELECT #2
-Note 1003 /* select#1 */ select sql_calc_found_rows `dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address` from `dbt3_s001`.`supplier` semi join (`dbt3_s001`.`part` join `dbt3_s001`.`partsupp`) join `dbt3_s001`.`nation` where `dbt3_s001`.`supplier`.`s_nationkey` = `dbt3_s001`.`nation`.`n_nationkey` and `dbt3_s001`.`nation`.`n_name` = 'UNITED STATES' and `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`partsupp`.`ps_availqty` > <expr_cache><`dbt3_s001`.`partsupp`.`ps_partkey`,`dbt3_s001`.`partsupp`.`ps_suppkey`>((/* select#4 */ select 0.5 * sum(`dbt3_s001`.`lineitem`.`l_quantity`) from `dbt3_s001`.`lineitem` where `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`lineitem`.`l_shipDATE` >= <cache>(cast('1993-01-01' as date)) and `dbt3_s001`.`lineitem`.`l_shipDATE` < <cache>(cast('1993-01-01' as date) + interval '1' year))) and `dbt3_s001`.`part`.`p_name` like 'g%' order by `dbt3_s001`.`supplier`.`s_name` limit 10
-select sql_calc_found_rows
-s_name, s_address
-from supplier, nation
-where s_suppkey in (select ps_suppkey from partsupp
-where ps_partkey in (select p_partkey from part
-where p_name like 'g%')
-and ps_availqty >
-(select 0.5 * sum(l_quantity)
-from lineitem
-where l_partkey = ps_partkey
-and l_suppkey = ps_suppkey
-and l_shipdate >= date('1993-01-01')
-and l_shipdate < date('1993-01-01') +
-interval '1' year ))
-and s_nationkey = n_nationkey
-and n_name = 'UNITED STATES'
-order by s_name
-limit 10;
-s_name s_address
-Supplier#000000010 Saygah3gYWMp72i PY
-DROP DATABASE dbt3_s001;
-set histogram_type=@save_histogram_type;
-set histogram_size=@save_histogram_size;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-use test;
-#
-# Bug mdev-4348: using view with use_condition_selectivity > 1
-#
-set @tmp_use_stat_tables=@@use_stat_tables;
-set use_stat_tables='never';
-set optimizer_use_condition_selectivity=3;
-CREATE TABLE t1 (a int, b int);
-INSERT t1 VALUES (7,1), (0,7);
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1;
-CREATE TABLE t2 (c int, d int, index idx(d));
-INSERT INTO t2 VALUES
-(0,4), (8,6), (1,3), (8,5), (9,3), (2,2), (6,2),
-(1,9), (6,3), (2,8), (4,1), (0,7), (4,8), (4,5);
-EXPLAIN EXTENDED
-SELECT * FROM v1 INNER JOIN t2 ON ( a = c AND b = d );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t2 ref idx idx 5 test.t1.b 1 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`c` = `test`.`t1`.`a` and `test`.`t2`.`d` = `test`.`t1`.`b`
-SELECT * FROM v1 INNER JOIN t2 ON ( a = c AND b = d );
-a b c d
-0 7 0 7
-DROP VIEW v1;
-DROP TABLE t1,t2;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-set use_stat_tables=@tmp_use_stat_tables;
-#
-# Bug mdev-4349: impossible range for non-indexed column
-#
-set optimizer_use_condition_selectivity=3;
-create table t1 (a int);
-insert into t1 values
-(3), (7), (2), (5), (7), (1), (2), (2);
-set optimizer_use_condition_selectivity=1;
-explain extended
-select * from t1 where a < 1 and a > 7;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` < 1 and `test`.`t1`.`a` > 7
-select * from t1 where a < 1 and a > 7;
-a
-set optimizer_use_condition_selectivity=3;
-explain extended
-select * from t1 where a < 1 and a > 7;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 7 AS `a` from `test`.`t1` where 0
-select * from t1 where a < 1 and a > 7;
-a
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1);
-create table t2 (b int);
-insert into t2 values (2),(3);
-explain extended
-select * from t1 where a in ( select b from t2 ) AND ( a > 3 );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 1 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t1`.`a` > 3
-select * from t1 where a in ( select b from t2 ) AND ( a > 3 );
-a
-drop table t1,t2;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-#
-# Bug mdev-4350: erroneous negative selectivity
-#
-create table t1 (a int);
-insert into t1 values (1), (1);
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-insert into t1 values (0);
-select count(*) from t1;
-count(*)
-1025
-set use_stat_tables='preferably';
-set histogram_size=127;
-set histogram_type='SINGLE_PREC_HB';
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-flush table t1;
-set optimizer_use_condition_selectivity=4;
-explain extended select * from t1 where a=0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1025 0.39 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 0
-drop table t1;
-set histogram_size=@save_histogram_size;
-set histogram_type=@save_histogram_type;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-#
-# Bug mdev-4367: 2-way join with an empty table
-# when optimizer_use_condition_selectivity=3
-#
-set optimizer_use_condition_selectivity=3;
-CREATE TABLE t1 (a varchar(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('j'),('k');
-CREATE TABLE t2 (b varchar(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('x'),('y');
-CREATE TABLE t3 (c varchar(1), KEY(c)) ENGINE=MyISAM;
-SELECT * FROM t1 STRAIGHT_JOIN (t2 JOIN t3 ON c = b AND b > 'z');
-a b c
-DROP TABLE t1,t2,t3;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-#
-# Bug mdev-4366: impossible condition on an indexed column discovered after
-# substitution of constant tables
-# with optimizer_use_condition_selectivity=3
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, a int);
-INSERT INTO t1 VALUES
-(1,4), (2,6), (3,3), (4,5);
-CREATE TABLE t2 (b int);
-INSERT INTO t2 VALUES (1), (7);
-set optimizer_use_condition_selectivity=1;
-EXPLAIN EXTENDED
-SELECT 1 FROM t1, t2 WHERE pk = 6 AND a = 2 AND b = 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 1 AS `1` from `test`.`t1` join `test`.`t2` where 0
-SELECT 1 FROM t1, t2 WHERE pk = 6 AND a = 2 AND b = 10;
-1
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED
-SELECT 1 FROM t1, t2 WHERE pk = 6 AND a = 2 AND b = 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 1 AS `1` from `test`.`t1` join `test`.`t2` where 0
-SELECT 1 FROM t1, t2 WHERE pk = 6 AND a = 2 AND b = 10;
-1
-DROP TABLE t1,t2;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-#
-# Bug mdev-4370: Histograms have bean created, but the query is run after
-# FLUSH TABLES with optimizer_use_condition_selectivity=3
-#
-set use_stat_tables=PREFERABLY;
-set histogram_size=10;
-set histogram_type='SINGLE_PREC_HB';
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (9), (1);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-FLUSH TABLES;
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a > 3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 75.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 3
-SELECT * FROM t1 WHERE a > 3;
-a
-9
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1;
-set histogram_size=@save_histogram_size;
-set histogram_type=@save_histogram_type;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4371: Join with condition supported by index on an empty table
-# with optimizer_use_condition_selectivity=3
-#
-set use_stat_tables=PREFERABLY;
-CREATE TABLE t1 (a int, b int, INDEX(a));
-CREATE TABLE t2 (c int);
-INSERT INTO t2 VALUES (1),(2),(3),(4),(5),(6),(7),(8);
-ANALYZE TABLE t1, t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-FLUSH TABLES;
-set optimizer_use_condition_selectivity=3;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='index_condition_pushdown=off';
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2 WHERE a > 9;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range a a 5 NULL 1 0.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` > 9
-SELECT * FROM t1, t2 WHERE a > 9;
-a b c
-set optimizer_switch=@save_optimizer_switch;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4373: condition on a short varchar column
-# with optimizer_use_condition_selectivity=3
-#
-set use_stat_tables=PREFERABLY;
-CREATE TABLE t1 (a varchar(1));
-INSERT INTO t1 VALUES ('x'), ('y');
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-FLUSH TABLES;
-set optimizer_use_condition_selectivity=3;
-SELECT * FROM t1 WHERE a <= 'w';
-a
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4372: exists subquery in WHERE
-# with optimizer_use_condition_selectivity=3
-#
-set use_stat_tables = PREFERABLY;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES
-(1),(7),(4),(7),(0),(2),(9),(4),(0),(9),(1),(3),(8),(8);
-CREATE TABLE t2 (b int);
-INSERT INTO t2 VALUES (4),(5),(2),(5),(1),(1),(2);
-ANALYZE TABLE t1, t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-FLUSH TABLES;
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2 WHERE EXISTS ( SELECT 1 FROM t1, t2 ) AND a != b OR a <= 4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 14 100.00 Using where; Using join buffer (flat, BNL join)
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 7 100.00
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 14 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` join `test`.`t2` where <cache>(<in_optimizer>(1,exists(/* select#2 */ select 1 from `test`.`t1` join `test`.`t2`))) and `test`.`t1`.`a` <> `test`.`t2`.`b` or `test`.`t1`.`a` <= 4
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4363: selectivity of the condition a IS NULL OR IS NOT NULL
-# with optimizer_use_condition_selectivity=3
-#
-set use_stat_tables = PREFERABLY;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES
-(1),(7),(4),(7),(NULL),(2),(NULL),(4),(NULL),(NULL),(1),(3),(8),(8);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-FLUSH TABLE t1;
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 14 28.57 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` is null
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a IS NOT NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 14 71.43 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` is not null
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a IS NULL OR a IS NOT NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 14 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` is null or `test`.`t1`.`a` is not null
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a IS NULL OR a < 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 14 69.39 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` is null or `test`.`t1`.`a` < 5
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4378: 2-way join with a materialized IN subquery in WHERE
-# when optimizer_use_condition_selectivity=4
-#
-set use_stat_tables=PREFERABLY;
-set histogram_size=50;
-set histogram_type=SINGLE_PREC_HB;
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (8),(9),(6);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8),(1),(8),(9),(24),(6),(1),(6),(2),(4);
-CREATE TABLE t3 (ln VARCHAR(16)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES
-('smith'),('black'),('white'),('jones'),
-('brown'),('taylor'),('anderson'),('taylor');
-ANALYZE TABLE t1, t2, t3;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-test.t3 analyze status Engine-independent statistics collected
-test.t3 analyze status OK
-FLUSH TABLES;
-set optimizer_use_condition_selectivity=4;
-SELECT * FROM t1, t2 WHERE 'garcia' IN ( SELECT MIN( ln ) FROM t3 WHERE ln = 'sun' );
-a b
-set histogram_size=@save_histogram_size;
-set histogram_type=@save_histogram_type;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2,t3;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4380: 2-way join with a materialized IN subquery in WHERE
-# when optimizer_use_condition_selectivity=3
-#
-set use_stat_tables=PREFERABLY;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (5),(9);
-CREATE TABLE t2 (b VARCHAR(8));
-INSERT INTO t2 VALUES ('red'),('blue');
-CREATE TABLE t3 (c VARCHAR(8), d VARCHAR(8));
-INSERT INTO t3 VALUES ('white','black'),('cyan','yellow');
-ANALYZE TABLE t1, t2, t3;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-test.t3 analyze status Engine-independent statistics collected
-test.t3 analyze status OK
-FLUSH TABLES;
-set optimizer_use_condition_selectivity=3;
-SELECT * FROM t1, t2 WHERE ( 'orange', 'green' ) IN (
-SELECT MAX(c), MAX(d) FROM t3, t2 WHERE c >= d AND b = c
-);
-a b
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2,t3;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4389: join with degenerated range condition in WHERE
-# when optimizer_use_condition_selectivity=3
-#
-set use_stat_tables=PREFERABLY;
-CREATE TABLE t1 (f1 VARCHAR(1));
-INSERT t1 VALUES ('p'),('q');
-CREATE TABLE t2 (f2 VARCHAR(1));
-INSERT INTO t2 VALUES
-('o'),('v'),('f'),('f'),('e'),('l'),('j'),('p'),('r'),('j'),
-('j'),('u'),('i'),('r'),('x'),('a'),('x'),('s');
-ANALYZE TABLE t1, t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-FLUSH TABLES;
-SET optimizer_use_condition_selectivity=3;
-SELECT * FROM t1, t2 AS t2a, t2 AS t2b WHERE f1 <= 'a' AND t2a.f2 = f1;
-f1 f2 f2
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-4406: range condition for non-nullable column
-# when optimizer_use_condition_selectivity=3
-#
-create table t1 (a int not null);
-insert into t1 values
-(7), (6), (4), (9), (1), (5), (2), (1), (3), (8);
-set use_stat_tables='preferably';
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-flush table t1;
-set optimizer_use_condition_selectivity=3;
-select count(*) from t1 where a between 5 and 7;
-count(*)
-3
-explain extended select * from t1 where a between 5 and 7;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 25.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` between 5 and 7
-alter table t1 change column a a int;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-flush table t1;
-explain extended select * from t1 where a between 5 and 7;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10 25.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` between 5 and 7
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-drop table t1;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-5200: impossible where with a semijoin subquery
-# when optimizer_use_condition_selectivity=2
-#
-set use_stat_tables = 'preferably';
-set optimizer_use_condition_selectivity = 2;
-CREATE TABLE t1 (i1 int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (0), (1);
-CREATE TABLE t2 (pk2 int, i2 int, c2 char(1), PRIMARY KEY(pk2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,8,'m'), (2,9,'b');
-CREATE TABLE t3 (c3 char(1), INDEX(c3)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('v'), ('c');
-ANALYZE TABLE t1,t2,t3;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-test.t3 analyze status Engine-independent statistics collected
-test.t3 analyze status OK
-SELECT * FROM t1
-WHERE 2 IN ( SELECT pk2 FROM t2 LEFT JOIN t3 ON (c3 = c2 ) WHERE i2 = 3 );
-i1
-EXPLAIN EXTENDED
-SELECT * FROM t1
-WHERE 2 IN ( SELECT pk2 FROM t2 LEFT JOIN t3 ON (c3 = c2 ) WHERE i2 = 3 );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select `test`.`t1`.`i1` AS `i1` from `test`.`t1` semi join (`test`.`t2` left join `test`.`t3` on(`test`.`t3`.`c3` = 'b')) where 0
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2,t3;
-#
-# Bug mdev-5415: query over an information schema table
-# when optimizer_use_condition_selectivity=3
-#
-set optimizer_use_condition_selectivity = 3;
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE SQL_MODE != '';
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-#
-# Bug mdev-5630: always true conjunctive condition
-# when optimizer_use_condition_selectivity=3
-#
-set use_stat_tables = 'preferably';
-set optimizer_use_condition_selectivity = 3;
-CREATE TABLE t1 (a int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (10);
-CREATE TABLE t2 (id int, flag char(1), INDEX(id)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (100,'0'),(101,'1');
-ANALYZE TABLE t1, t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-SELECT * FROM t1, t2 WHERE id = a AND ( a = 16 OR flag AND a != 6 );
-a id flag
-DROP TABLE t1,t2;
-#
-# Bug mdev-4429: join with range condition whose selectivity == 0
-# when optimizer_use_condition_selectivity=3
-#
-CREATE TABLE language (lang_group INT, lang VARCHAR(16) PRIMARY KEY);
-INSERT INTO language VALUES
-(1,'Chinese'),(6,'English'),(1,'French'),
-(1,'German'),(1,'Italian'),(0,'Japanese');
-CREATE TABLE country (code varchar(3) PRIMARY KEY,
-country_group INT DEFAULT NULL);
-INSERT INTO country VALUES ('USA',3),('FRA',5);
-CREATE TABLE continent (cont_group INT, cont varchar(16) PRIMARY KEY);
-INSERT INTO continent VALUES
-(1,'N.America'),(1,'S.America'),(3,'Australia'),
-(4,'Africa'),(5,'Antarctica'),(6,'Eurasia');
-SET use_stat_tables=PREFERABLY;
-ANALYZE TABLE country, language, continent;
-Table Op Msg_type Msg_text
-test.country analyze status Engine-independent statistics collected
-test.country analyze status OK
-test.language analyze status Engine-independent statistics collected
-test.language analyze status OK
-test.continent analyze status Engine-independent statistics collected
-test.continent analyze status OK
-FLUSH TABLES;
-SET optimizer_use_condition_selectivity=3;
-SELECT * FROM language, country, continent
-WHERE country_group = lang_group AND lang_group IS NULL;
-lang_group lang code country_group cont_group cont
-EXPLAIN EXTENDED
-SELECT * FROM language, country, continent
-WHERE country_group = lang_group AND lang_group IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE country ALL NULL NULL NULL NULL 2 0.00 Using where
-1 SIMPLE language ALL NULL NULL NULL NULL 6 0.00 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE continent ALL NULL NULL NULL NULL 6 100.00 Using join buffer (incremental, BNL join)
-Warnings:
-Note 1003 select `test`.`language`.`lang_group` AS `lang_group`,`test`.`language`.`lang` AS `lang`,`test`.`country`.`code` AS `code`,`test`.`country`.`country_group` AS `country_group`,`test`.`continent`.`cont_group` AS `cont_group`,`test`.`continent`.`cont` AS `cont` from `test`.`language` join `test`.`country` join `test`.`continent` where `test`.`language`.`lang_group` = `test`.`country`.`country_group` and `test`.`country`.`country_group` is null
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-drop table language, country, continent;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-5191: performance degradation due to a suboptimal chosen plan
-# when optimizer_use_condition_selectivity=3
-#
-set use_stat_tables = 'preferably';
-set @@RAND_SEED1=810763568, @@RAND_SEED2=600681772;
-set TIMESTAMP=1394806993;
-create table t1 (a int, b int) engine=myisam;
-insert t1 values (rand()*1e5, rand()*1e5);
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-insert t1 select rand()*1e5, rand()*1e5 from t1;
-create table t2 (c int, d int, key(c), key(d)) engine=myisam;
-insert t2 select floor(rand()*1e5/2)*2, floor(rand()*1e5/3)*3 from t1;
-analyze table t1,t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status Table is already up to date
-set optimizer_use_condition_selectivity=1;
-explain extended
-select * from t1, t2, t1 as t3
-where t1.b=t2.c and t2.d=t3.a and t3.b<5 and t1.a < 2000;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 262144 100.00 Using where
-1 SIMPLE t2 ref c,d c 5 test.t1.b 5 100.00
-1 SIMPLE t3 ALL NULL NULL NULL NULL 262144 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b` from `test`.`t1` join `test`.`t2` join `test`.`t1` `t3` where `test`.`t2`.`c` = `test`.`t1`.`b` and `test`.`t3`.`a` = `test`.`t2`.`d` and `test`.`t3`.`b` < 5 and `test`.`t1`.`a` < 2000
-select * from t1, t2, t1 as t3
-where t1.b=t2.c and t2.d=t3.a and t3.b<5 and t1.a < 2000;
-a b c d a b
-1063 89366 89366 28296 28296 3
-1495 89366 89366 28296 28296 3
-221 56120 56120 28296 28296 3
-961 24512 24512 85239 85239 4
-set optimizer_use_condition_selectivity=3;
-explain extended
-select * from t1, t2, t1 as t3
-where t1.b=t2.c and t2.d=t3.a and t3.b<5 and t1.a < 2000;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 262144 0.00 Using where
-1 SIMPLE t2 ref c,d d 5 test.t3.a 7 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 262144 2.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b` from `test`.`t1` join `test`.`t2` join `test`.`t1` `t3` where `test`.`t1`.`b` = `test`.`t2`.`c` and `test`.`t2`.`d` = `test`.`t3`.`a` and `test`.`t3`.`b` < 5 and `test`.`t1`.`a` < 2000
-select * from t1, t2, t1 as t3
-where t1.b=t2.c and t2.d=t3.a and t3.b<5 and t1.a < 2000;
-a b c d a b
-1063 89366 89366 28296 28296 3
-1495 89366 89366 28296 28296 3
-221 56120 56120 28296 28296 3
-961 24512 24512 85239 85239 4
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-drop table t1,t2;
-set histogram_type=@save_histogram_type;
-set histogram_size=@save_histogram_size;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-#
-# Bug mdev-5931: no where condition after constant table row substitution
-# with optimizer_use_condition_selectivity=3
-#
-CREATE TABLE t1 (a varchar(3), b varchar(3)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo', 'foo');
-CREATE TABLE t2 (c INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1), (2);
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2 WHERE c >= 0 OR a = b ;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 select 'foo' AS `a`,'foo' AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where 1
-SELECT * FROM t1, t2 WHERE c >= 0 OR a = b ;
-a b c
-foo foo 1
-foo foo 2
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2;
-#
-# Bug mdev-6325: wrong selectivity of a column with ref access
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int);
-insert into t1 select A.a + B.a* 10 + C.a * 100 from t0 A, t0 B, t0 C;
-create table t2 (a int, b int, key(a));
-insert into t2 select A.a + 10*B.a, 12345 from t0 A, t0 B, t0 C;
-set use_stat_tables='preferably';
-set histogram_size=100;
-set optimizer_use_condition_selectivity=4;
-analyze table t1 persistent for all;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-analyze table t2 persistent for all;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-explain extended
-select * from t1 straight_join t2 where t1.a=t2.a and t1.a<10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1000 0.99 Using where
-1 SIMPLE t2 ref a a 5 test.t1.a 10 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` straight_join `test`.`t2` where `test`.`t2`.`a` = `test`.`t1`.`a` and `test`.`t1`.`a` < 10
-explain extended
-select * from t1 straight_join t2 where t1.a=t2.a and t2.a<10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1000 0.99 Using where
-1 SIMPLE t2 ref a a 5 test.t1.a 10 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` straight_join `test`.`t2` where `test`.`t2`.`a` = `test`.`t1`.`a` and `test`.`t1`.`a` < 10
-set histogram_size=@save_histogram_size;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-drop table t0,t1,t2;
-#
-# Bug mdev-6843: col IS NULL in where condition when col is always NULL
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int);
-insert into t1 select A.a + B.a* 10 + C.a * 100 from t0 A, t0 B, t0 C;
-create table t2 (a int, b int);
-insert into t2 select NULL, a from t1;
-set use_stat_tables='preferably';
-set histogram_size=100;
-set optimizer_use_condition_selectivity=4;
-analyze table t2 persistent for all;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-explain extended
-select * from t2 a straight_join t2 b where a.a is null;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE a ALL NULL NULL NULL NULL 1000 100.00 Using where
-1 SIMPLE b ALL NULL NULL NULL NULL 1000 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`a`.`a` AS `a`,`test`.`a`.`b` AS `b`,`test`.`b`.`a` AS `a`,`test`.`b`.`b` AS `b` from `test`.`t2` `a` straight_join `test`.`t2` `b` where `test`.`a`.`a` is null
-set histogram_size=@save_histogram_size;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-drop table t0,t1,t2;
-#
-# Bug mdev-7316: a conjunct in WHERE with selectivity == 0
-#
-CREATE TABLE t1 (a varchar(16), b int, PRIMARY KEY(a), KEY(b));
-INSERT INTO t1 VALUES
-('USAChinese',10), ('USAEnglish',20), ('USAFrench',30);
-CREATE TABLE t2 (i int);
-INSERT INTO t2 VALUES
-(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(1),(2),(3),(4);
-ANALYZE TABLE t1, t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-set use_stat_tables='preferably';
-set optimizer_use_condition_selectivity=3;
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2
-WHERE a <> 'USARussian' AND b IS NULL;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ref PRIMARY,b b 5 const 2 66.67 Using where; Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 14 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`i` AS `i` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` <> 'USARussian' and `test`.`t1`.`b` is null
-SELECT * FROM t1, t2
-WHERE a <> 'USARussian' AND b IS NULL;
-a b i
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-DROP TABLE t1,t2;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-11096: range condition over column without statistical data
-#
-set use_stat_tables='preferably';
-set optimizer_use_condition_selectivity=3;
-create table t1(col1 char(32));
-insert into t1 values ('a'),('b'),('c'),('d'), ('e'),('f'),('g'),('h');
-analyze table t1 persistent for columns () indexes ();
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-explain extended
-select * from t1 where col1 > 'b' and col1 < 'e';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where `test`.`t1`.`col1` > 'b' and `test`.`t1`.`col1` < 'e'
-select * from t1 where col1 > 'b' and col1 < 'e';
-col1
-c
-d
-drop table t1;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-9628: unindexed blob column without min-max statistics
-# with optimizer_use_condition_selectivity=3
-#
-set use_stat_tables='preferably';
-set optimizer_use_condition_selectivity=3;
-create table t1(col1 char(32));
-insert into t1 values ('a'),('b'),('c'),('d'), ('e'),('f'),('g'),('h');
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-create table t2(col1 text);
-insert into t2 values ('a'),('b'),('c'),('d'), ('e'),('f'),('g'),('h');
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze Warning Engine-independent statistics are not collected for column 'col1'
-test.t2 analyze status OK
-select * from t1 where col1 > 'b' and col1 < 'd';
-col1
-c
-explain extended
-select * from t1 where col1 > 'b' and col1 < 'd';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 28.57 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where `test`.`t1`.`col1` > 'b' and `test`.`t1`.`col1` < 'd'
-select * from t2 where col1 > 'b' and col1 < 'd';
-col1
-c
-explain extended
-select * from t2 where col1 > 'b' and col1 < 'd';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`col1` AS `col1` from `test`.`t2` where `test`.`t2`.`col1` > 'b' and `test`.`t2`.`col1` < 'd'
-select * from t2 where col1 < 'b' and col1 > 'd';
-col1
-explain extended
-select * from t2 where col1 < 'b' and col1 > 'd';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 select 'd' AS `col1` from `test`.`t2` where 0
-drop table t1,t2;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-11364: IS NULL over not nullable datetime column
-# in mergeable derived
-#
-set use_stat_tables='preferably';
-set optimizer_use_condition_selectivity=4;
-set HISTOGRAM_SIZE = 255;
-CREATE TABLE t1 (t TIME, d DATE NOT NULL);
-INSERT INTO t1 VALUES ('10:00:00', '0000-00-00'),('11:00:00','0000-00-00');
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-SELECT * FROM (SELECT t FROM t1 WHERE d IS NULL) sq;
-t
-10:00:00
-11:00:00
-DROP TABLE t1;
-set histogram_size=@save_histogram_size;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
-set use_stat_tables=@save_use_stat_tables;
-set optimizer_switch=@save_optimizer_switch_for_selectivity_test;
-set @tmp_ust= @@use_stat_tables;
-set @tmp_oucs= @@optimizer_use_condition_selectivity;
-#
-# MDEV-6808: MariaDB 10.0.13 crash with optimizer_use_condition_selectivity > 1
-#
-set @tmp_mdev6808= @@optimizer_use_condition_selectivity;
-SET optimizer_use_condition_selectivity = 2;
-CREATE TABLE t1 (
-event_id int(11) unsigned NOT NULL AUTO_INCREMENT,
-PRIMARY KEY (event_id)
-) ENGINE=InnoDB;
-CREATE TABLE t2 (
-repost_id int(11) unsigned NOT NULL AUTO_INCREMENT,
-subject_type varchar(24) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
-subject_id int(11) unsigned NOT NULL,
-object_type varchar(24) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
-object_id int(11) unsigned NOT NULL,
-is_private int(1) NOT NULL DEFAULT '0',
-PRIMARY KEY (repost_id),
-UNIQUE KEY `BETWEEN` (subject_type,subject_id,object_type,object_id,is_private),
-KEY SUBJECT (subject_type,subject_id),
-KEY OBJECT (object_type,object_id)
-) ENGINE=InnoDB;
-SELECT
-*
-FROM
-t2, t1
-WHERE
-t2.object_type = 'event' AND
-t2.object_id = t1.event_id AND
-t2.is_private = 0 AND
-t2.subject_id = 127994 AND
-t2.subject_type in ('user')
-;
-repost_id subject_type subject_id object_type object_id is_private event_id
-DROP TABLE t1, t2;
-set optimizer_use_condition_selectivity=@tmp_mdev6808;
-#
-# MDEV-6442: Assertion `join->best_read < double(...)' failed with optimizer_use_condition_selectivity >=3, ...
-#
-SET use_stat_tables = PREFERABLY;
-SET optimizer_use_condition_selectivity = 3;
-CREATE TABLE t1 ( a VARCHAR(3), b VARCHAR(8), KEY (a,b) ) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('USA','Chinese'),('USA','English');
-CREATE TABLE t2 (i INT) ENGINE=InnoDB;
-SELECT * FROM t1, t2 WHERE ( 't', 'o' ) IN (
-SELECT t1_2.b, t1_1.a FROM t1 AS t1_1 STRAIGHT_JOIN t1 AS t1_2 ON ( t1_2.a = t1_1.b )
-);
-a b i
-DROP TABLE t1,t2;
-#
-# MDEV-6738: use_stat_table + histograms crashing optimizer
-#
-set use_stat_tables='preferably';
-set optimizer_use_condition_selectivity=4;
-# Need innodb because there is a special kind of field_bit for non-myisam tables
-create table t1(col1 int, col2 bit(1) DEFAULT NULL) engine=innodb;
-select * from t1 where col2 != true;
-col1 col2
-drop table t1;
-#
-# MDEV-7413: optimizer_use_condition_selectivity > 2 crashes 10.0.15+maria-1~wheezy
-#
-CREATE TABLE t1 (
-parent_id int,
-child_group_id int,
-child_user_id int,
-KEY (parent_id,child_group_id,child_user_id)
-) ENGINE=InnoDB;
-CREATE TABLE t2 (
-id int,
-lower_group_name varchar(255),
-directory_id int(20),
-UNIQUE KEY (directory_id)
-) ENGINE=InnoDB;
-CREATE TABLE t3 (id int) ENGINE=InnoDB;
-insert into t1 values (1,1,1),(2,2,2);
-insert into t2 values (10,'foo',10),(20,'bar',20);
-insert into t3 values (101),(102);
-set use_stat_tables = PREFERABLY, optimizer_use_condition_selectivity = 3;
-select * from t1, t2, t3
-where t1.child_user_id=t3.id and t1.child_group_id is null and t2.lower_group_name='foo' and t1.parent_id=t2.id and t2.directory_id=10;
-parent_id child_group_id child_user_id id lower_group_name directory_id id
-drop table t1,t2,t3;
-#
-# MDEV-9187: duplicate of bug mdev-9628
-#
-set use_stat_tables = preferably;
-set optimizer_use_condition_selectivity=3;
-CREATE TABLE t1 (f1 char(32)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('foo'),('bar'),('qux');
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-SELECT * FROM t1 WHERE f1 < 'm';
-f1
-foo
-bar
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE f1 < 'm';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 72.09 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1` from `test`.`t1` where `test`.`t1`.`f1` < 'm'
-CREATE TABLE t2 (f1 TEXT) ENGINE=InnoDB;
-INSERT INTO t2 VALUES ('foo'),('bar'),('qux');
-ANALYZE TABLE t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze Warning Engine-independent statistics are not collected for column 'f1'
-test.t2 analyze status OK
-SELECT * FROM t2 WHERE f1 <> 'qux';
-f1
-foo
-bar
-EXPLAIN EXTENDED
-SELECT * FROM t2 WHERE f1 <> 'qux';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`f1` AS `f1` from `test`.`t2` where `test`.`t2`.`f1` <> 'qux'
-DROP TABLE t1,t2;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-11060: sql/protocol.cc:532: void Protocol::end_statement(): Assertion `0' failed
-#
-set optimizer_use_condition_selectivity=4;
-drop view if exists v1;
-create table t1 (a int not null, b int, c int) engine=InnoDB;
-create trigger trgi before insert on t1 for each row set new.a=if(new.a is null,new.b,new.c);
-create table t2 (d int, e int) engine=InnoDB;
-update t1, t2 set a=NULL, b=2, c=NULL where b=d and e=200;
-create view v1 as select * from t1, t2 where d=2;
-insert v1 (a,c) values (NULL, 20);
-ERROR 23000: Column 'a' cannot be null
-drop table t1,t2;
-drop view v1;
-#
-# End of 10.1 tests
-#
-set use_stat_tables= @tmp_ust;
-set optimizer_use_condition_selectivity= @tmp_oucs;
-SET SESSION STORAGE_ENGINE=DEFAULT;
diff --git a/mysql-test/r/selectivity_no_engine.result b/mysql-test/r/selectivity_no_engine.result
deleted file mode 100644
index 7fc3c6e9909..00000000000
--- a/mysql-test/r/selectivity_no_engine.result
+++ /dev/null
@@ -1,302 +0,0 @@
-#
-# Engine-agnostic tests for statistics-based selectivity calculations.
-# - selectivity tests that depend on the engine should go into
-# t/selectivity.test. That test is run with myisam/innodb/xtradb.
-# - this file is for tests that don't depend on the engine.
-#
-drop table if exists t0,t1,t2,t3;
-select @@global.use_stat_tables;
-@@global.use_stat_tables
-COMPLEMENTARY
-select @@session.use_stat_tables;
-@@session.use_stat_tables
-COMPLEMENTARY
-set @save_use_stat_tables=@@use_stat_tables;
-set use_stat_tables='preferably';
-set @save_optimizer_use_condition_selectivity=@@optimizer_use_condition_selectivity;
-set @save_histogram_size=@@histogram_size;
-set @save_histogram_type=@@histogram_type;
-#
-# MDEV-5917: EITS: different order of predicates in IN (...) causes different estimates
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (col1 int);
-# one value in 1..100 range
-insert into t2 select ta.a + tb.a*10 from t1 ta, t1 tb;
-# ten values in 100...200 range
-insert into t2 select 100 + ta.a + tb.a*10 from t1 ta, t1 tb, t1 tc;
-set histogram_type='SINGLE_PREC_HB';
-set histogram_size=100;
-set optimizer_use_condition_selectivity=4;
-analyze table t2 persistent for all;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-# The following two must have the same in 'Extra' column:
-explain extended select * from t2 where col1 IN (20, 180);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1100 1.35 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`col1` AS `col1` from `test`.`t2` where `test`.`t2`.`col1` in (20,180)
-explain extended select * from t2 where col1 IN (180, 20);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1100 1.35 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`col1` AS `col1` from `test`.`t2` where `test`.`t2`.`col1` in (180,20)
-drop table t1, t2;
-#
-# MDEV-5926: EITS: Histogram estimates for column=least_possible_value are wrong
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int);
-insert into t1 select ta.a from t0 ta, t0 tb, t0 tc;
-set histogram_size=20;
-set histogram_type='single_prec_hb';
-analyze table t1 persistent for all;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-set use_stat_tables='preferably';
-set optimizer_use_condition_selectivity=4;
-# Should select about 10%:
-explain extended select * from t1 where a=2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1000 9.52 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2
-# Should select about 10%:
-explain extended select * from t1 where a=1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1000 9.52 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1
-# Must not have filtered=100%:
-explain extended select * from t1 where a=0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1000 9.52 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 0
-# Again, must not have filtered=100%:
-explain extended select * from t1 where a=-1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1000 9.52 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = -1
-drop table t0, t1;
-#
-# MDEV-4362: Selectivity estimates for IN (...) do not depend on whether the values are in range
-#
-create table t1 (col1 int);
-set @a=-1;
-create table t2 (a int) select (@a:=@a+1) as a from information_schema.session_variables ta limit 100;
-insert into t1 select ta.a from t2 ta, t2 tb where ta.a < 100 and tb.a < 100;
-select min(col1), max(col1), count(*) from t1;
-min(col1) max(col1) count(*)
-0 99 10000
-set histogram_size=100;
-analyze table t1 persistent for all;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-explain extended select * from t1 where col1 in (1,2,3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10000 3.37 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where `test`.`t1`.`col1` in (1,2,3)
-# Must not cause fp division by zero, or produce nonsense numbers:
-explain extended select * from t1 where col1 in (-1,-2,-3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10000 5.94 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where `test`.`t1`.`col1` in (-1,-2,-3)
-explain extended select * from t1 where col1<=-1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 10000 1.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where `test`.`t1`.`col1` <= -1
-drop table t1, t2;
-#
-# MDEV-5984: EITS: Incorrect filtered% value for single-table select with range access
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, col1 varchar(64), col2 varchar(64), key(a,b));
-insert into t2 select ta.a+10*tb.a, tc.a+10*td.a, 'filler-data1', 'filler-data2' from t1 ta, t1 tb, t1 tc, t1 td;
-set histogram_size=100;
-set optimizer_use_condition_selectivity=4;
-set use_stat_tables='preferably';
-analyze table t2 persistent for all;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status Table is already up to date
-# This must show filtered=100%:
-explain extended select * from t2 where a in (1,2,3) and b in (1,2,3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 range a a 10 NULL 9 100.00 Using index condition
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`col1` AS `col1`,`test`.`t2`.`col2` AS `col2` from `test`.`t2` where `test`.`t2`.`a` in (1,2,3) and `test`.`t2`.`b` in (1,2,3)
-drop table t2, t1;
-#
-# MDEV-5980: EITS: if condition is used for REF access, its selectivity is still in filtered%
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(key1 int, col1 int, key(key1));
-insert into t1 select ta.a, ta.a from t0 ta, t0 tb, t0 tc;
-set histogram_size=100;
-set use_stat_tables='preferably';
-set optimizer_use_condition_selectivity=4;
-analyze table t1 persistent for all;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status Table is already up to date
-# 10% is ok
-explain extended select * from t1 where col1=2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1000 9.90 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`key1` AS `key1`,`test`.`t1`.`col1` AS `col1` from `test`.`t1` where `test`.`t1`.`col1` = 2
-# Must show 100%, not 10%
-explain extended select * from t1 where key1=2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ref key1 key1 5 const 98 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`key1` AS `key1`,`test`.`t1`.`col1` AS `col1` from `test`.`t1` where `test`.`t1`.`key1` = 2
-drop table t0, t1;
-# MDEV-6003: EITS: ref access, keypart2=const vs keypart2=expr - inconsistent filtered% value
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (
-kp1 int, kp2 int,
-filler1 char(100),
-filler2 char(100),
-key(kp1, kp2)
-);
-insert into t1
-select
-ta.a,
-tb.a,
-'filler-data-1',
-'filler-data-2'
-from t0 ta, t0 tb, t0 tc;
-set histogram_size=100;
-set use_stat_tables='preferably';
-set optimizer_use_condition_selectivity=4;
-analyze table t1 persistent for all;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status Table is already up to date
-# NOTE: 10*100%, 10*100% rows is ok
-explain extended select * from t0, t1 where t1.kp1=t0.a and t1.kp2=t0.a+1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 100.00 Using where
-1 SIMPLE t1 ref kp1 kp1 10 test.t0.a,func 10 100.00 Using index condition
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t1`.`kp1` AS `kp1`,`test`.`t1`.`kp2` AS `kp2`,`test`.`t1`.`filler1` AS `filler1`,`test`.`t1`.`filler2` AS `filler2` from `test`.`t0` join `test`.`t1` where `test`.`t1`.`kp1` = `test`.`t0`.`a` and `test`.`t1`.`kp2` = `test`.`t0`.`a` + 1
-# NOTE: t0: 10*100% is ok, t1: 10*9.90% is bad. t1 should have 10*100%.
-explain extended select * from t0, t1 where t1.kp1=t0.a and t1.kp2=4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 100.00 Using where
-1 SIMPLE t1 ref kp1 kp1 10 test.t0.a,const 10 100.00
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t1`.`kp1` AS `kp1`,`test`.`t1`.`kp2` AS `kp2`,`test`.`t1`.`filler1` AS `filler1`,`test`.`t1`.`filler2` AS `filler2` from `test`.`t0` join `test`.`t1` where `test`.`t1`.`kp1` = `test`.`t0`.`a` and `test`.`t1`.`kp2` = 4
-drop table t0, t1;
-#
-# MDEV-6209: Assertion `join->best_read < double(1.79769313486231570815e+308L)'
-# failed in bool greedy_search with optimizer_use_condition_selectivity>1
-#
-SET optimizer_use_condition_selectivity = 2;
-CREATE TABLE t1 (a CHAR(6), b INT, PRIMARY KEY (a,b)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo',1),('bar',2);
-SELECT * FROM t1 AS t1_1, t1 AS t1_2 WHERE NOT ( t1_1.a <> 'baz');
-a b a b
-DROP TABLE t1;
-#
-# MDEV-6308: Server crashes in table_multi_eq_cond_selectivity with ...
-#
-CREATE TABLE t1 (
-id varchar(40) COLLATE utf8_bin,
-dt datetime,
-PRIMARY KEY (id)
-);
-INSERT INTO t1 VALUES ('foo','2011-04-12 05:18:08'),
-('bar','2013-09-19 11:37:03');
-CREATE TABLE t2 (
-t1_id varchar(40) COLLATE utf8_bin,
-f1 varchar(64),
-f2 varchar(1024),
-KEY (f1,f2(255))
-);
-INSERT INTO t2 VALUES ('foo','baz','qux'),('bar','baz','qux');
-set optimizer_use_condition_selectivity=2;
-explain
-select * from t1,t2 where t1.id = t2.t1_id and t2.f2='qux' and t2.f1='baz';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref f1 f1 325 const,const 1 Using index condition; Using where
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 122 test.t2.t1_id 1
-select * from t1,t2 where t1.id = t2.t1_id and t2.f2='qux' and t2.f1='baz';
-id dt t1_id f1 f2
-foo 2011-04-12 05:18:08 foo baz qux
-bar 2013-09-19 11:37:03 bar baz qux
-drop table t1,t2;
-#
-# MDEV-5985: EITS: selectivity estimates look illogical for join and non-key equalities
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int);
-insert into t1 select ta.a + tb.a* 10 + tc.a * 100 from t0 ta, t0 tb, t0 tc;
-create table t2 as select * from t1;
-set histogram_size=100;
-set use_stat_tables='preferably';
-set optimizer_use_condition_selectivity=4;
-analyze table t1 persistent for all;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-analyze table t2 persistent for all;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-# Filtered will be 4.95, 9.90
-explain extended select * from t1 ta, t2 tb where ta.a < 40 and tb.a < 100;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE ta ALL NULL NULL NULL NULL 1000 4.95 Using where
-1 SIMPLE tb ALL NULL NULL NULL NULL 1000 9.90 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`ta`.`a` AS `a`,`test`.`tb`.`a` AS `a` from `test`.`t1` `ta` join `test`.`t2` `tb` where `test`.`ta`.`a` < 40 and `test`.`tb`.`a` < 100
-# Here, tb.filtered should not become 100%:
-explain extended select * from t1 ta, t2 tb where ta.a < 40 and tb.a < 100 and tb.a=ta.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE ta ALL NULL NULL NULL NULL 1000 4.95 Using where
-1 SIMPLE tb ALL NULL NULL NULL NULL 1000 4.95 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`ta`.`a` AS `a`,`test`.`tb`.`a` AS `a` from `test`.`t1` `ta` join `test`.`t2` `tb` where `test`.`tb`.`a` = `test`.`ta`.`a` and `test`.`ta`.`a` < 40 and `test`.`ta`.`a` < 100
-drop table t0,t1,t2;
-#
-# MDEV-8779: mysqld got signal 11 in sql/opt_range_mrr.cc:100(step_down_to)
-#
-set @tmp_mdev8779=@@optimizer_use_condition_selectivity;
-set optimizer_use_condition_selectivity=5;
-CREATE TABLE t1 (
-i int(10) unsigned NOT NULL AUTO_INCREMENT,
-n varchar(2048) NOT NULL,
-d tinyint(1) unsigned NOT NULL,
-p int(10) unsigned NOT NULL,
-PRIMARY KEY (i)
-) DEFAULT CHARSET=utf8;
-insert into t1 values (1,'aaa',1,1), (2,'bbb',2,2);
-SELECT * FROM t1 WHERE t1.d = 0 AND t1.p = '1' AND t1.i != '-1' AND t1.n = 'some text';
-i n d p
-set optimizer_use_condition_selectivity= @tmp_mdev8779;
-DROP TABLE t1;
-#
-# End of the test file
-#
-set use_stat_tables= @save_use_stat_tables;
-set histogram_type=@save_histogram_type;
-set histogram_size=@save_histogram_size;
-set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
diff --git a/mysql-test/r/servers.result b/mysql-test/r/servers.result
deleted file mode 100644
index 585f0f62af0..00000000000
--- a/mysql-test/r/servers.result
+++ /dev/null
@@ -1,26 +0,0 @@
-set sql_mode="";
-#
-# MDEV-4594 - CREATE SERVER crashes embedded
-#
-CREATE SERVER s1 FOREIGN DATA WRAPPER mysql OPTIONS(HOST 'localhost');
-SELECT * FROM mysql.servers;
-Server_name Host Db Username Password Port Socket Wrapper Owner
-s1 localhost 3306 mysql
-DROP SERVER s1;
-CREATE SERVER s1 FOREIGN DATA WRAPPER foo OPTIONS(USER 'bar');
-SELECT * FROM mysql.servers;
-Server_name Host Db Username Password Port Socket Wrapper Owner
-s1 bar 0 foo
-DROP SERVER s1;
-CREATE SERVER s1 FOREIGN DATA WRAPPER mysql OPTIONS(USER 'bar');
-ERROR HY000: Can't create federated table. Foreign data src error: either HOST or SOCKET must be set
-CREATE SERVER s1 FOREIGN DATA WRAPPER mysql OPTIONS(HOST 'bar');
-SELECT * FROM mysql.servers;
-Server_name Host Db Username Password Port Socket Wrapper Owner
-s1 bar 3306 mysql
-DROP SERVER s1;
-CREATE SERVER s1 FOREIGN DATA WRAPPER mysql OPTIONS(SOCKET 'bar');
-SELECT * FROM mysql.servers;
-Server_name Host Db Username Password Port Socket Wrapper Owner
-s1 3306 bar mysql
-DROP SERVER s1;
diff --git a/mysql-test/r/set_password_plugin-9835.result b/mysql-test/r/set_password_plugin-9835.result
deleted file mode 100644
index 3cc723957d8..00000000000
--- a/mysql-test/r/set_password_plugin-9835.result
+++ /dev/null
@@ -1,160 +0,0 @@
-set global secure_auth=0;
-create user natauth@localhost identified via 'mysql_native_password' using '*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29';
-create user newpass@localhost identified by password '*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29';
-create user newpassnat@localhost identified via 'mysql_native_password';
-set password for newpassnat@localhost = '*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29';
-create user oldauth@localhost identified with 'mysql_old_password' using '378b243e220ca493';
-create user oldpass@localhost identified by password '378b243e220ca493';
-create user oldpassold@localhost identified with 'mysql_old_password';
-set password for oldpassold@localhost = '378b243e220ca493';
-select user, host, password, plugin, authentication_string from mysql.user where user != 'root';
-user host password plugin authentication_string
-natauth localhost *94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29
-newpass localhost *94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29
-newpassnat localhost *94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29
-oldauth localhost 378b243e220ca493
-oldpass localhost 378b243e220ca493
-oldpassold localhost 378b243e220ca493
-connect con,localhost,natauth,test,;
-select current_user();
-current_user()
-natauth@localhost
-disconnect con;
-connect con,localhost,newpass,test,;
-select current_user();
-current_user()
-newpass@localhost
-disconnect con;
-connect con,localhost,newpassnat,test,;
-select current_user();
-current_user()
-newpassnat@localhost
-disconnect con;
-connect con,localhost,oldauth,test,;
-select current_user();
-current_user()
-oldauth@localhost
-disconnect con;
-connect con,localhost,oldpass,test,;
-select current_user();
-current_user()
-oldpass@localhost
-disconnect con;
-connect con,localhost,oldpassold,test,;
-select current_user();
-current_user()
-oldpassold@localhost
-disconnect con;
-connection default;
-flush privileges;
-connect con,localhost,natauth,test,;
-select current_user();
-current_user()
-natauth@localhost
-disconnect con;
-connect con,localhost,newpass,test,;
-select current_user();
-current_user()
-newpass@localhost
-disconnect con;
-connect con,localhost,newpassnat,test,;
-select current_user();
-current_user()
-newpassnat@localhost
-disconnect con;
-connect con,localhost,oldauth,test,;
-select current_user();
-current_user()
-oldauth@localhost
-disconnect con;
-connect con,localhost,oldpass,test,;
-select current_user();
-current_user()
-oldpass@localhost
-disconnect con;
-connect con,localhost,oldpassold,test,;
-select current_user();
-current_user()
-oldpassold@localhost
-disconnect con;
-connection default;
-set password for natauth@localhost = PASSWORD('test2');
-set password for newpass@localhost = PASSWORD('test2');
-set password for newpassnat@localhost = PASSWORD('test2');
-set password for oldauth@localhost = PASSWORD('test2');
-set password for oldpass@localhost = PASSWORD('test2');
-set password for oldpassold@localhost = PASSWORD('test2');
-select user, host, password, plugin, authentication_string from mysql.user where user != 'root';
-user host password plugin authentication_string
-natauth localhost *7CEB3FDE5F7A9C4CE5FBE610D7D8EDA62EBE5F4E
-newpass localhost *7CEB3FDE5F7A9C4CE5FBE610D7D8EDA62EBE5F4E
-newpassnat localhost *7CEB3FDE5F7A9C4CE5FBE610D7D8EDA62EBE5F4E
-oldauth localhost *7CEB3FDE5F7A9C4CE5FBE610D7D8EDA62EBE5F4E
-oldpass localhost *7CEB3FDE5F7A9C4CE5FBE610D7D8EDA62EBE5F4E
-oldpassold localhost *7CEB3FDE5F7A9C4CE5FBE610D7D8EDA62EBE5F4E
-connect con,localhost,natauth,test2,;
-select current_user();
-current_user()
-natauth@localhost
-disconnect con;
-connect con,localhost,newpass,test2,;
-select current_user();
-current_user()
-newpass@localhost
-disconnect con;
-connect con,localhost,newpassnat,test2,;
-select current_user();
-current_user()
-newpassnat@localhost
-disconnect con;
-connect con,localhost,oldauth,test2,;
-select current_user();
-current_user()
-oldauth@localhost
-disconnect con;
-connect con,localhost,oldpass,test2,;
-select current_user();
-current_user()
-oldpass@localhost
-disconnect con;
-connect con,localhost,oldpassold,test2,;
-select current_user();
-current_user()
-oldpassold@localhost
-disconnect con;
-connection default;
-flush privileges;
-connect con,localhost,natauth,test2,;
-select current_user();
-current_user()
-natauth@localhost
-disconnect con;
-connect con,localhost,newpass,test2,;
-select current_user();
-current_user()
-newpass@localhost
-disconnect con;
-connect con,localhost,newpassnat,test2,;
-select current_user();
-current_user()
-newpassnat@localhost
-disconnect con;
-connect con,localhost,oldauth,test2,;
-select current_user();
-current_user()
-oldauth@localhost
-disconnect con;
-connect con,localhost,oldpass,test2,;
-select current_user();
-current_user()
-oldpass@localhost
-disconnect con;
-connect con,localhost,oldpassold,test2,;
-select current_user();
-current_user()
-oldpassold@localhost
-disconnect con;
-connection default;
-drop user natauth@localhost, newpass@localhost, newpassnat@localhost;
-drop user oldauth@localhost, oldpass@localhost, oldpassold@localhost;
-set global secure_auth=default;
diff --git a/mysql-test/r/set_statement.result b/mysql-test/r/set_statement.result
deleted file mode 100644
index c34e1171899..00000000000
--- a/mysql-test/r/set_statement.result
+++ /dev/null
@@ -1,1227 +0,0 @@
-'# SET STATEMENT ..... FOR .... TEST'
-DROP TABLE IF EXISTS t1;
-DROP FUNCTION IF EXISTS myProc;
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-DROP PROCEDURE IF EXISTS p3;
-DROP PROCEDURE IF EXISTS p4;
-DROP PROCEDURE IF EXISTS p5;
-DROP PROCEDURE IF EXISTS p6;
-DROP VIEW IF EXISTS v1;
-DROP TABLE IF EXISTS STATEMENT;
-SET @save_binlog_format = @@binlog_format;
-SET @save_keep_files_on_create = @@keep_files_on_create;
-SET @save_max_join_size = @@max_join_size;
-SET @save_myisam_repair_threads = @@myisam_repair_threads;
-SET @save_myisam_sort_buffer_size = @@myisam_sort_buffer_size;
-SET @save_sort_buffer_size = @@sort_buffer_size;
-'# Setup database'
-CREATE TABLE t1 (v1 INT, v2 INT);
-INSERT INTO t1 VALUES (1,2);
-INSERT INTO t1 VALUES (3,4);
-''
-'#------------------ STATEMENT Test 1 -----------------------#'
-'# Initialize variables to known setting'
-SET SESSION sort_buffer_size=100000;
-''
-'# Pre-STATEMENT variable value'
-SHOW SESSION VARIABLES LIKE 'sort_buffer_size';
-Variable_name Value
-sort_buffer_size 100000
-SET STATEMENT sort_buffer_size=150000 FOR SELECT *,@@sort_buffer_size FROM t1;
-v1 v2 @@sort_buffer_size
-1 2 150000
-3 4 150000
-''
-'# Post-STATEMENT variable value'
-SHOW SESSION VARIABLES LIKE 'sort_buffer_size';
-Variable_name Value
-sort_buffer_size 100000
-''
-'#------------------ STATEMENT Test 2 -----------------------#'
-'# Initialize variables to known setting'
-SET SESSION binlog_format=mixed;
-SET SESSION sort_buffer_size=100000;
-'# Pre-STATEMENT variable value'
-SHOW SESSION VARIABLES LIKE 'sort_buffer_size';
-Variable_name Value
-sort_buffer_size 100000
-SHOW SESSION VARIABLES LIKE 'binlog_format';
-Variable_name Value
-binlog_format MIXED
-SET STATEMENT sort_buffer_size=150000, binlog_format=row
-FOR SELECT *,@@sort_buffer_size,@@binlog_format FROM t1;
-v1 v2 @@sort_buffer_size @@binlog_format
-1 2 150000 ROW
-3 4 150000 ROW
-'# Post-STATEMENT variable value'
-SHOW SESSION VARIABLES LIKE 'sort_buffer_size';
-Variable_name Value
-sort_buffer_size 100000
-SHOW SESSION VARIABLES LIKE 'binlog_format';
-Variable_name Value
-binlog_format MIXED
-''
-'#------------------ STATEMENT Test 3 -----------------------#'
-'# set initial variable value, make prepared statement
-SET SESSION binlog_format=row;
-PREPARE stmt1 FROM 'SET STATEMENT binlog_format=row FOR SELECT *,@@binlog_format FROM t1';
-''
-'# Change variable setting'
-SET SESSION binlog_format=mixed;
-''
-'# Pre-STATEMENT variable value'
-''
-SHOW SESSION VARIABLES LIKE 'binlog_format';
-Variable_name Value
-binlog_format MIXED
-''
-EXECUTE stmt1;
-v1 v2 @@binlog_format
-1 2 ROW
-3 4 ROW
-''
-'# Post-STATEMENT variable value'
-SHOW SESSION VARIABLES LIKE 'binlog_format';
-Variable_name Value
-binlog_format MIXED
-''
-DEALLOCATE PREPARE stmt1;
-'#------------------ STATEMENT Test 4 -----------------------#'
-'# set initial variable value, make prepared statement
-SET SESSION myisam_sort_buffer_size=500000, myisam_repair_threads=1;
-''
-'# Pre-STATEMENT variable value'
-SHOW SESSION VARIABLES LIKE 'myisam_sort_buffer_size';
-Variable_name Value
-myisam_sort_buffer_size 500000
-SHOW SESSION VARIABLES LIKE 'myisam_repair_threads';
-Variable_name Value
-myisam_repair_threads 1
-''
-SET STATEMENT myisam_sort_buffer_size=800000,
-myisam_repair_threads=2 FOR OPTIMIZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-''
-'# Post-STATEMENT variable value'
-SHOW SESSION VARIABLES LIKE 'myisam_sort_buffer_size';
-Variable_name Value
-myisam_sort_buffer_size 500000
-SHOW SESSION VARIABLES LIKE 'myisam_repair_threads';
-Variable_name Value
-myisam_repair_threads 1
-''
-'#------------------ STATEMENT Test 5 -----------------------#'
-'# Initialize variables to known setting'
-SET SESSION sort_buffer_size=100000;
-''
-'# Pre-STATEMENT variable value'
-SHOW SESSION VARIABLES LIKE 'sort_buffer_size';
-Variable_name Value
-sort_buffer_size 100000
-''
-SET STATEMENT sort_buffer_size=150000 FOR SELECT * FROM t2;
-ERROR 42S02: Table 'test.t2' doesn't exist
-''
-'# Post-STATEMENT variable value'
-SHOW SESSION VARIABLES LIKE 'sort_buffer_size';
-Variable_name Value
-sort_buffer_size 100000
-''
-'#------------------ STATEMENT Test 6 -----------------------#'
-'# Initialize variables to known setting'
-SET SESSION keep_files_on_create=ON;
-''
-'# Pre-STATEMENT variable value'
-SHOW SESSION VARIABLES LIKE 'keep_files_on_create';
-Variable_name Value
-keep_files_on_create ON
-''
-SET STATEMENT keep_files_on_create=OFF FOR SELECT *,@@keep_files_on_create FROM t1;
-v1 v2 @@keep_files_on_create
-1 2 0
-3 4 0
-''
-'# Post-STATEMENT variable value'
-SHOW SESSION VARIABLES LIKE 'keep_files_on_create';
-Variable_name Value
-keep_files_on_create ON
-''
-'#------------------ STATEMENT Test 7 -----------------------#'
-'# Initialize variables to known setting'
-SET SESSION max_join_size=2222220000000;
-''
-'# Pre-STATEMENT variable value'
-SHOW SESSION VARIABLES LIKE 'max_join_size';
-Variable_name Value
-max_join_size 2222220000000
-''
-SET STATEMENT max_join_size=1000000000000 FOR SELECT *,@@max_join_size FROM t1;
-v1 v2 @@max_join_size
-1 2 1000000000000
-3 4 1000000000000
-''
-'# Post-STATEMENT variable value'
-SHOW SESSION VARIABLES LIKE 'max_join_size';
-Variable_name Value
-max_join_size 2222220000000
-''
-'#------------------Test 8-----------------------#'
-'# Initialize test variables'
-SET SESSION myisam_sort_buffer_size=500000,
-myisam_repair_threads=1,
-sort_buffer_size = 200000,
-max_join_size=2222220000000,
-keep_files_on_create=ON;
-''
-'# LONG '
-SHOW SESSION VARIABLES LIKE 'sort_buffer_size';
-Variable_name Value
-sort_buffer_size 200000
-SET STATEMENT sort_buffer_size = 100000
-FOR SHOW SESSION VARIABLES LIKE 'sort_buffer_size';
-Variable_name Value
-sort_buffer_size 100000
-SHOW SESSION VARIABLES LIKE 'sort_buffer_size';
-Variable_name Value
-sort_buffer_size 200000
-''
-'# MY_BOOL '
-SHOW SESSION VARIABLES LIKE 'keep_files_on_create';
-Variable_name Value
-keep_files_on_create ON
-SET STATEMENT keep_files_on_create=OFF
-FOR SHOW SESSION VARIABLES LIKE 'keep_files_on_create';
-Variable_name Value
-keep_files_on_create OFF
-SHOW SESSION VARIABLES LIKE 'keep_files_on_create';
-Variable_name Value
-keep_files_on_create ON
-''
-'# INT/LONG '
-SHOW SESSION VARIABLES LIKE 'myisam_repair_threads';
-Variable_name Value
-myisam_repair_threads 1
-SET STATEMENT myisam_repair_threads=2
-FOR SHOW SESSION VARIABLES LIKE 'myisam_repair_threads';
-Variable_name Value
-myisam_repair_threads 2
-SHOW SESSION VARIABLES LIKE 'myisam_repair_threads';
-Variable_name Value
-myisam_repair_threads 1
-''
-'# ULONGLONG '
-SHOW SESSION VARIABLES LIKE 'max_join_size';
-Variable_name Value
-max_join_size 2222220000000
-SET STATEMENT max_join_size=2000000000000
-FOR SHOW SESSION VARIABLES LIKE 'max_join_size';
-Variable_name Value
-max_join_size 2000000000000
-SHOW SESSION VARIABLES LIKE 'max_join_size';
-Variable_name Value
-max_join_size 2222220000000
-''
-'#------------------Test 9-----------------------#'
-'# set initial variable values
-SET SESSION myisam_sort_buffer_size=500000,
-myisam_repair_threads=1,
-sort_buffer_size=100000,
-binlog_format=mixed,
-keep_files_on_create=ON,
-max_join_size=2222220000000;
-''
-''
-'# Pre-STATEMENT variable value
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-CREATE FUNCTION myProc (cost DECIMAL(10,2))
-RETURNS DECIMAL(10,2)
-SQL SECURITY DEFINER
-tax: BEGIN
-DECLARE order_tax DECIMAL(10,2);
-SET order_tax = cost * .05 + @@sort_buffer_size;
-RETURN order_tax;
-END|
-''
-'# During Execution values
-SET STATEMENT myisam_sort_buffer_size=400000,
-myisam_repair_threads=2,
-sort_buffer_size=200000,
-binlog_format=row,
-keep_files_on_create=OFF,
-max_join_size=4444440000000 FOR
-SELECT myProc(123.45);
-myProc(123.45)
-200006.17
-SET STATEMENT myisam_sort_buffer_size=400000,
-myisam_repair_threads=2,
-sort_buffer_size=300000,
-binlog_format=row,
-keep_files_on_create=OFF,
-max_join_size=4444440000000 FOR
-SELECT myProc(123.45);
-myProc(123.45)
-300006.17
-''
-'# Post-STATEMENT No 1 variable value Pre-STATEMENT for No 2'
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-SET STATEMENT myisam_sort_buffer_size=400000,
-myisam_repair_threads=2,
-sort_buffer_size=200000,
-binlog_format=row,
-keep_files_on_create=OFF,
-max_join_size=4444440000000 FOR
-DROP FUNCTION myProc;
-''
-'# Post-STATEMENT No 2 variable value
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-'#------------------Test 11-----------------------#'
-'# set initial variable values
-SET SESSION myisam_sort_buffer_size=500000,
-myisam_repair_threads=1,
-sort_buffer_size=100000,
-binlog_format=mixed,
-keep_files_on_create=ON,
-max_join_size=2222220000000;
-''
-''
-'# Pre-STATEMENT variable value
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-SET STATEMENT myisam_sort_buffer_size=400000,
-myisam_repair_threads=2,
-sort_buffer_size=200000,
-keep_files_on_create=OFF,
-max_join_size=4444440000000 FOR
-PREPARE stmt1 FROM
-'SET STATEMENT binlog_format=row FOR SELECT *,@@binlog_format,@@sort_buffer_size FROM t1';
-''
-'Test No 1 Post Value & Test 2 Pre values'
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-SET STATEMENT myisam_sort_buffer_size=400000,
-myisam_repair_threads=2,
-sort_buffer_size=200000,
-keep_files_on_create=OFF,
-max_join_size=4444440000000 FOR
-EXECUTE stmt1;
-v1 v2 @@binlog_format @@sort_buffer_size
-1 2 ROW 200000
-3 4 ROW 200000
-''
-'# Post-STATEMENT No 2
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-'#------------------Test 12-----------------------#'
-'# set initial variable values
-SET SESSION myisam_sort_buffer_size=500000,
-myisam_repair_threads=1,
-sort_buffer_size=100000,
-binlog_format=mixed,
-keep_files_on_create=ON,
-max_join_size=2222220000000;
-''
-''
-'# Pre-STATEMENT variable value
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-SET STATEMENT myisam_sort_buffer_size=400000,
-myisam_repair_threads=2,
-sort_buffer_size=200000,
-binlog_format=row,
-keep_files_on_create=OFF,
-max_join_size=4444440000000 FOR
-CREATE PROCEDURE p1() BEGIN
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-END|
-''
-'Test No 1 Post Value & Test 2 Pre values'
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-SET STATEMENT myisam_sort_buffer_size=400001,
-myisam_repair_threads=3,
-sort_buffer_size=200001,
-binlog_format=row,
-keep_files_on_create=OFF,
-max_join_size=4444440000001 FOR
-CALL p1();
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-400001 3 200001 ROW 0 4444440000001
-''
-'# Post-STATEMENT No 2
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-'#------------------Test 13-----------------------#'
-'# set initial variable values
-SET SESSION myisam_sort_buffer_size=500000,
-myisam_repair_threads=1,
-sort_buffer_size=100000,
-binlog_format=mixed,
-keep_files_on_create=ON,
-max_join_size=2222220000000;
-''
-''
-CREATE PROCEDURE p2() BEGIN
-SET STATEMENT myisam_sort_buffer_size=400000,
-myisam_repair_threads=3,
-sort_buffer_size=300000,
-binlog_format=mixed,
-keep_files_on_create=OFF,
-max_join_size=3333330000000 FOR
-CALL p1();
-END|
-''
-'# Pre-STATEMENT variable value
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-SET STATEMENT myisam_sort_buffer_size=400000,
-myisam_repair_threads=2,
-sort_buffer_size=200000,
-binlog_format=row,
-keep_files_on_create=OFF,
-max_join_size=4444440000000 FOR
-CALL p2();
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-400000 3 300000 MIXED 0 3333330000000
-''
-'# Post-STATEMENT
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-'#------------------Test 14-----------------------#'
-'# set initial variable values
-SET SESSION myisam_sort_buffer_size=500000,
-myisam_repair_threads=1,
-sort_buffer_size=100000,
-binlog_format=mixed,
-keep_files_on_create=ON,
-max_join_size=2222220000000;
-''
-''
-CREATE PROCEDURE p3() BEGIN
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-SET STATEMENT myisam_sort_buffer_size=320000,
-myisam_repair_threads=2,
-sort_buffer_size=220022,
-binlog_format=row,
-keep_files_on_create=ON,
-max_join_size=2222220000000 FOR
-CALL p2();
-END|
-''
-'# Pre-STATEMENT variable value
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-SET STATEMENT myisam_sort_buffer_size=400000,
-myisam_repair_threads=2,
-sort_buffer_size=200000,
-binlog_format=row,
-keep_files_on_create=OFF,
-max_join_size=4444440000000 FOR
-CALL p3();
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-400000 2 200000 ROW 0 4444440000000
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-400000 3 300000 MIXED 0 3333330000000
-''
-'# Post-STATEMENT
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-''
-''
-'#------------------Test 15-----------------------#'
-'# set initial variable values
-SET SESSION myisam_sort_buffer_size=500000,
-myisam_repair_threads=1,
-sort_buffer_size=100000,
-binlog_format=mixed,
-keep_files_on_create=ON,
-max_join_size=2222220000000;
-''
-''
-CREATE PROCEDURE p4() BEGIN
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-SET STATEMENT myisam_sort_buffer_size=320000,
-myisam_repair_threads=2,
-sort_buffer_size=220022,
-binlog_format=row,
-keep_files_on_create=ON,
-max_join_size=2222220000000 FOR
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-SET STATEMENT myisam_sort_buffer_size=320000,
-myisam_repair_threads=2,
-sort_buffer_size=220022,
-binlog_format=row,
-keep_files_on_create=ON,
-max_join_size=2222220000000 FOR
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-SET STATEMENT myisam_sort_buffer_size=320000,
-myisam_repair_threads=2,
-sort_buffer_size=220022,
-binlog_format=row,
-keep_files_on_create=ON,
-max_join_size=2222220000000 FOR
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-END|
-''
-'# Pre-STATEMENT variable value
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-SET STATEMENT myisam_sort_buffer_size=400000,
-myisam_repair_threads=2,
-sort_buffer_size=200000,
-binlog_format=row,
-keep_files_on_create=OFF,
-max_join_size=4444440000000 FOR
-CALL p4();
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-400000 2 200000 ROW 0 4444440000000
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-320000 2 220022 ROW 1 2222220000000
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-320000 2 220022 ROW 1 2222220000000
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-320000 2 220022 ROW 1 2222220000000
-''
-'# Post-STATEMENT
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-'#------------------Test 16-----------------------#'
-''
-'# Pre-STATEMENT variable value
-SELECT @@sql_mode;
-@@sql_mode
-STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-''
-''
-SET STATEMENT sql_mode='ansi' FOR PREPARE stmt FROM 'SELECT "t1".* FROM t1';
-execute stmt;
-v1 v2
-1 2
-3 4
-ALTER TABLE t1 ADD COLUMN v3 int;
-execute stmt;
-v1 v2 v3
-1 2 NULL
-3 4 NULL
-ALTER TABLE t1 drop COLUMN v3;
-deallocate prepare stmt;
-''
-'# Post-STATEMENT
-SELECT @@sql_mode;
-@@sql_mode
-STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-check the same behaviour in normal set
-SET sql_mode='ansi';
-PREPARE stmt FROM 'SELECT "t1".* FROM t1';
-SET sql_mode=default;
-execute stmt;
-v1 v2
-1 2
-3 4
-ALTER TABLE t1 ADD COLUMN v3 int;
-execute stmt;
-v1 v2 v3
-1 2 NULL
-3 4 NULL
-ALTER TABLE t1 drop COLUMN v3;
-deallocate prepare stmt;
-SELECT @@sql_mode;
-@@sql_mode
-STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-SET sql_mode='ansi';
-SELECT @@sql_mode;
-@@sql_mode
-REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI
-CREATE PROCEDURE p6() BEGIN
-SELECT @@sql_mode;
-SELECT "t1".* FROM t1;
-END|
-SET sql_mode=default;
-call p6;
-@@sql_mode
-REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI
-v1 v2
-1 2
-3 4
-ALTER TABLE t1 ADD COLUMN v3 int;
-create view v1 as select * from t1;
-drop view v1;
-call p6;
-@@sql_mode
-REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI
-v1 v2 v3
-1 2 NULL
-3 4 NULL
-ALTER TABLE t1 drop COLUMN v3;
-drop procedure p6;
-SELECT @@sql_mode;
-@@sql_mode
-STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-# SET and the statement parsed as one unit before the SET takes effect
-SET STATEMENT sql_mode='ansi' FOR
-CREATE PROCEDURE p6() BEGIN
-SELECT @@sql_mode;
-SELECT "t1".* FROM t1;
-END|
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.* FROM t1;
-END' at line 4
-SELECT @@sql_mode;
-@@sql_mode
-STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-SET sql_mode='ansi';
-SELECT @@sql_mode;
-@@sql_mode
-REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI
-BEGIN NOT ATOMIC
-SELECT @@sql_mode;
-SELECT "t1".* FROM t1;
-END|
-@@sql_mode
-REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI
-v1 v2
-1 2
-3 4
-SET sql_mode=default;
-SELECT @@sql_mode;
-@@sql_mode
-STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-# SET and the statement parsed as one unit before the SET takes effect
-SET STATEMENT sql_mode='ansi' FOR
-BEGIN NOT ATOMIC
-SELECT @@sql_mode;
-SELECT "t1".* FROM t1;
-END|
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.* FROM t1;
-END' at line 4
-SET STATEMENT sql_mode='ansi' FOR
-BEGIN NOT ATOMIC
-SELECT @@sql_mode;
-SELECT * FROM t1;
-SELECT @@sql_mode;
-END|
-@@sql_mode
-REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI
-v1 v2
-1 2
-3 4
-@@sql_mode
-REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI
-''
-''
-'#------------------Test 17-----------------------#'
-'# set initial variable values
-SET SESSION myisam_sort_buffer_size=500000,
-myisam_repair_threads=1,
-sort_buffer_size=100000,
-binlog_format=mixed,
-keep_files_on_create=ON,
-max_join_size=2222220000000;
-''
-'# Pre-STATEMENT variable value
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-SET STATEMENT myisam_sort_buffer_size=320000,
-myisam_repair_threads=2,
-sort_buffer_size=220022,
-binlog_format=row,
-keep_files_on_create=ON,
-max_join_size=2222220000000
-FOR SET SESSION
-myisam_sort_buffer_size=260000,
-myisam_repair_threads=3,
-sort_buffer_size=230013,
-binlog_format=row,
-keep_files_on_create=ON,
-max_join_size=2323230000000;
-''
-'# Post-STATEMENT
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-'#------------------Test 18-----------------------#'
-'# set initial variable values
-SET SESSION myisam_sort_buffer_size=500000,
-myisam_repair_threads=1,
-sort_buffer_size=100000,
-binlog_format=mixed,
-keep_files_on_create=ON,
-max_join_size=2222220000000;
-''
-'# Pre-STATEMENT variable value
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-CREATE PROCEDURE p5() BEGIN
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-SET SESSION
-myisam_sort_buffer_size=260000,
-myisam_repair_threads=3,
-sort_buffer_size=230013,
-binlog_format=row,
-keep_files_on_create=ON,
-max_join_size=2323230000000;
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-END|
-''
-''
-SET STATEMENT myisam_sort_buffer_size=400000,
-myisam_repair_threads=2,
-sort_buffer_size=200000,
-binlog_format=row,
-keep_files_on_create=OFF,
-max_join_size=4444440000000 FOR
-CALL p5();
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-400000 2 200000 ROW 0 4444440000000
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-260000 3 230013 ROW 1 2323230000000
-''
-'# Post-STATEMENT
-SELECT @@myisam_sort_buffer_size,
-@@myisam_repair_threads,
-@@sort_buffer_size,
-@@binlog_format,
-@@keep_files_on_create,
-@@max_join_size;
-@@myisam_sort_buffer_size @@myisam_repair_threads @@sort_buffer_size @@binlog_format @@keep_files_on_create @@max_join_size
-500000 1 100000 MIXED 1 2222220000000
-''
-''
-'#------------------Test 19-----------------------#'
-SET STATEMENT max_error_count=100 FOR;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-SET STATEMENT max_error_count=100 INSERT t1 VALUES (1,2);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INSERT t1 VALUES (1,2)' at line 1
-SET STATEMENT FOR INSERT INTO t1 VALUES (1,2);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FOR INSERT INTO t1 VALUES (1,2)' at line 1
-SET max_error_count=100 FOR INSERT INTO t1 VALUES (1,2);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FOR INSERT INTO t1 VALUES (1,2)' at line 1
-SET STATEMENT GLOBAL max_error_count=100 FOR INSERT INTO t1 VALUES (1,2);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_error_count=100 FOR INSERT INTO t1 VALUES (1,2)' at line 1
-SET STATEMENT @@global.max_error_count=100 FOR INSERT INTO t1 VALUES (1,2);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@@global.max_error_count=100 FOR INSERT INTO t1 VALUES (1,2)' at line 1
-''
-''
-'#------------------Test 20-----------------------#'
-SET STATEMENT connect_timeout=100 FOR INSERT INTO t1 VALUES (1,2);
-ERROR HY000: Variable 'connect_timeout' is a GLOBAL variable and should be set with SET GLOBAL
-''
-''
-'#------------------Test 21-----------------------#'
-SELECT @@myisam_sort_buffer_size, @@sort_buffer_size;
-@@myisam_sort_buffer_size @@sort_buffer_size
-500000 100000
-SET STATEMENT myisam_sort_buffer_size = 700000, sort_buffer_size = 3000000
-FOR SET STATEMENT myisam_sort_buffer_size=200000
-FOR SELECT @@myisam_sort_buffer_size, @@sort_buffer_size;
-@@myisam_sort_buffer_size @@sort_buffer_size
-200000 100000
-SELECT @@myisam_sort_buffer_size, @@sort_buffer_size;
-@@myisam_sort_buffer_size @@sort_buffer_size
-500000 100000
-''
-''
-'#------------------Test 22-----------------------#'
-CREATE TABLE STATEMENT(a INT);
-DROP TABLE STATEMENT;
-''
-'# Cleanup'
-DROP TABLE t1;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP PROCEDURE p3;
-DROP PROCEDURE p4;
-DROP PROCEDURE p5;
-CREATE TABLE t1 (v1 INT, v2 INT);
-insert into t1 values (1,1);
-CREATE FUNCTION myProc ()
-RETURNS INT
-SQL SECURITY DEFINER
-BEGIN
-DECLARE mx INT;
-SET mx = (select max(v1) from t1);
-RETURN mx;
-END|
-SET STATEMENT myisam_repair_threads=(select max(v1) from t1) FOR
-select 1;
-ERROR 42000: SET STATEMENT does not support subqueries or stored functions
-SET STATEMENT myisam_repair_threads=myProc() FOR
-select 1;
-ERROR 42000: SET STATEMENT does not support subqueries or stored functions
-drop function myProc;
-drop table t1;
-set session binlog_format=mixed;
-PREPARE stmt1 FROM 'SELECT @@binlog_format';
-execute stmt1;
-@@binlog_format
-MIXED
-set statement binlog_format=row for execute stmt1;
-@@binlog_format
-ROW
-execute stmt1;
-@@binlog_format
-MIXED
-deallocate prepare stmt1;
-set statement binlog_format=row for PREPARE stmt1 FROM 'SELECT @@binlog_format';
-execute stmt1;
-@@binlog_format
-MIXED
-execute stmt1;
-@@binlog_format
-MIXED
-deallocate prepare stmt1;
-PREPARE stmt1 FROM 'set statement binlog_format=row for SELECT @@binlog_format';
-execute stmt1;
-@@binlog_format
-ROW
-execute stmt1;
-@@binlog_format
-ROW
-deallocate prepare stmt1;
-set session binlog_format=default;
-set session binlog_format=mixed;
-SET STATEMENT sort_buffer_size=150000 FOR set session binlog_format=row;
-SELECT @@binlog_format;
-@@binlog_format
-ROW
-SET @@binlog_format = @save_binlog_format;
-SET @@keep_files_on_create = @save_keep_files_on_create;
-SET @@max_join_size = @save_max_join_size;
-SET @@myisam_repair_threads = @save_myisam_repair_threads;
-SET @@myisam_sort_buffer_size = @save_myisam_sort_buffer_size;
-SET @@sort_buffer_size = @save_sort_buffer_size;
-#Correctly set timestamp
-set session timestamp=4646464;
-select @@timestamp != 4646464;
-@@timestamp != 4646464
-0
-select @@timestamp != 4646464;
-@@timestamp != 4646464
-0
-#Correctly returned normal behaviour
-set session timestamp=default;
-select @@timestamp != 4646464;
-@@timestamp != 4646464
-1
-select @@timestamp != 4646464;
-@@timestamp != 4646464
-1
-#here timestamp should be set only for the statement then restored default
-set statement timestamp=4646464 for select @@timestamp;
-@@timestamp
-4646464.000000
-set @save_tm=@@timestamp;
-select @@timestamp != 4646464;
-@@timestamp != 4646464
-1
-select @@timestamp != 4646464;
-@@timestamp != 4646464
-1
-select @@timestamp != @save_tm;
-@@timestamp != @save_tm
-1
-set @save_dfs=@@default_storage_engine;
-SET @@default_storage_engine=MyISAM;
-SET STATEMENT default_storage_engine=MEMORY for CREATE TABLE t1 (a int);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-select @@default_storage_engine;
-@@default_storage_engine
-MyISAM
-drop table t1;
-SET STATEMENT default_storage_engine=MyISAM for CREATE TABLE t1 (a int);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-SET @@default_storage_engine=@save_dfs;
-SET STATEMENT keycache1.key_buffer_size=1024 FOR SELECT 1;
-ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET GLOBAL
-set @save_general_log=@@global.general_log;
-# SET STATEMENT works (OK)
-set statement lock_wait_timeout=1 for select @@lock_wait_timeout;
-@@lock_wait_timeout
-1
-# Setting a totally unrelated global variable
-set global general_log=0;
-# SET STATEMENT should work
-set statement lock_wait_timeout=1 for select @@lock_wait_timeout;
-@@lock_wait_timeout
-1
-set global general_log=@save_general_log;
-# MDEV-7006 MDEV-7007: SET statement and slow log
-set @save_long_query_time= @@long_query_time;
-set @save_slow_query_log= @@slow_query_log;
-set @save_log_output= @@log_output;
-set statement long_query_time=default for select @@long_query_time;
-@@long_query_time
-10.000000
-set statement log_slow_filter=default for select @@log_slow_filter;
-@@log_slow_filter
-admin,filesort,filesort_on_disk,filesort_priority_queue,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
-set statement log_slow_verbosity=default for select @@log_slow_verbosity;
-@@log_slow_verbosity
-
-set statement log_slow_rate_limit=default for select @@log_slow_rate_limit;
-@@log_slow_rate_limit
-1
-set statement slow_query_log=default for select @@slow_query_log;
-@@slow_query_log
-1
-truncate table mysql.slow_log;
-set slow_query_log= 1;
-set global log_output='TABLE';
-select sql_text from mysql.slow_log where sql_text not like 'set @@long_query_time%';
-sql_text
-set @@long_query_time=0.01;
-#should be written
-select sleep(0.1);
-sleep(0.1)
-0
-set @@long_query_time=@save_long_query_time;
-select sql_text from mysql.slow_log where sql_text not like 'set @@long_query_time%';
-sql_text
-select sleep(0.1)
-#---
-#should be written
-set statement long_query_time=0.01 for select sleep(0.1);
-sleep(0.1)
-0
-select sql_text from mysql.slow_log where sql_text not like 'set @@long_query_time%';
-sql_text
-select sleep(0.1)
-set statement long_query_time=0.01 for select sleep(0.1)
-#---
-set @@long_query_time=0.01;
-#should NOT be written
-set statement slow_query_log=0 for select sleep(0.1);
-sleep(0.1)
-0
-set @@long_query_time=@save_long_query_time;
-select sql_text from mysql.slow_log where sql_text not like 'set @@long_query_time%';
-sql_text
-select sleep(0.1)
-set statement long_query_time=0.01 for select sleep(0.1)
-#---
-#should NOT be written
-set statement long_query_time=0.01,log_slow_filter='full_scan' for select sleep(0.1);
-sleep(0.1)
-0
-select sql_text from mysql.slow_log where sql_text not like 'set @@long_query_time%';
-sql_text
-select sleep(0.1)
-set statement long_query_time=0.01 for select sleep(0.1)
-#---
-#should NOT be written
-set statement long_query_time=0.01,log_slow_rate_limit=9999 for select sleep(0.1);
-sleep(0.1)
-0
-select sql_text from mysql.slow_log where sql_text not like 'set @@long_query_time%';
-sql_text
-select sleep(0.1)
-set statement long_query_time=0.01 for select sleep(0.1)
-#---
-#should NOT be written
-set statement long_query_time=0.01,min_examined_row_limit=50 for select sleep(0.1);
-sleep(0.1)
-0
-select sql_text from mysql.slow_log where sql_text not like 'set @@long_query_time%';
-sql_text
-select sleep(0.1)
-set statement long_query_time=0.01 for select sleep(0.1)
-#---
-set global log_output= @save_log_output;
-set @@slow_query_log= @save_slow_query_log;
-set @@long_query_time= @save_long_query_time;
-truncate table mysql.slow_log;
-set statement autocommit=default for select 1;
-ERROR 42000: The system variable autocommit cannot be set in SET STATEMENT.
-set statement tx_isolation=default for select 1;
-ERROR 42000: The system variable tx_isolation cannot be set in SET STATEMENT.
-set statement skip_replication=default for select 1;
-ERROR 42000: The system variable skip_replication cannot be set in SET STATEMENT.
-set statement sql_log_off=default for select 1;
-ERROR 42000: The system variable sql_log_off cannot be set in SET STATEMENT.
-set statement character_set_client=default for select 1;
-ERROR 42000: The system variable character_set_client cannot be set in SET STATEMENT.
-set statement character_set_connection=default for select 1;
-ERROR 42000: The system variable character_set_connection cannot be set in SET STATEMENT.
-set statement character_set_filesystem=default for select 1;
-ERROR 42000: The system variable character_set_filesystem cannot be set in SET STATEMENT.
-set statement collation_connection=default for select 1;
-ERROR 42000: The system variable collation_connection cannot be set in SET STATEMENT.
-set statement query_cache_type=default for select 1;
-ERROR 42000: The system variable query_cache_type cannot be set in SET STATEMENT.
-set statement wait_timeout=default for select 1;
-ERROR 42000: The system variable wait_timeout cannot be set in SET STATEMENT.
-set statement interactive_timeout=default for select 1;
-ERROR 42000: The system variable interactive_timeout cannot be set in SET STATEMENT.
-set @save_week_format=@@default_week_format;
-set @@default_week_format=0;
-SET STATEMENT default_week_format = 2 FOR SELECT WEEK('2000-01-01');
-WEEK('2000-01-01')
-52
-create table t1 (a date);
-insert t1 values ('2000-01-01');
-explain extended select week(a) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select week('2000-01-01') AS `week(a)` from dual
-prepare stmt1 from "select week(a) from t1";
-execute stmt1;
-week(a)
-0
-set default_week_format = 2;
-execute stmt1;
-week(a)
-52
-alter table t1 engine=myisam;
-execute stmt1;
-week(a)
-52
-deallocate prepare stmt1;
-drop table t1;
-set @@default_week_format=@save_week_format;
-set @save_old_passwords=@@old_passwords;
-set @@old_passwords=0;
-set statement OLD_PASSWORDS = 0 for select password('test');
-password('test')
-*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29
-set statement OLD_PASSWORDS = 1 for select password('test');
-password('test')
-378b243e220ca493
-set statement OLD_PASSWORDS = 0 for explain extended select password('test');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select password('test') AS `password('test')`
-set statement OLD_PASSWORDS = 1 for explain extended select password('test');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select password('test') AS `password('test')`
-create table t1 (a char(10));
-insert t1 values ('qwertyuiop');
-prepare stmt1 from "select password(a) from t1";
-execute stmt1;
-password(a)
-*6063C78456BB048BAF36BE1104D12D547834DFEA
-set old_passwords=1;
-execute stmt1;
-password(a)
-2013610f6aac2950
-alter table t1 engine=myisam;
-execute stmt1;
-password(a)
-2013610f6aac2950
-deallocate prepare stmt1;
-drop table t1;
-set @@old_passwords=@save_old_passwords;
-#
-#MDEV-6951:Erroneous SET STATEMENT produces two identical errors
-#
-set statement non_existing=1 for select 1;
-ERROR HY000: Unknown system variable 'non_existing'
-show errors;
-Level Code Message
-Error 1193 Unknown system variable 'non_existing'
-#
-# MDEV-6954: SET STATEMENT rand_seedX = ...FOR ... makes
-# the next rand() to return 0
-#
-set @rnd=1;
-# test that rand() is not always 0 after restoring rand_seed, rand_seed2...
-# @rnd should be 0
-select @rnd;
-@rnd
-0
diff --git a/mysql-test/r/set_statement_debug.result b/mysql-test/r/set_statement_debug.result
deleted file mode 100644
index 39c5af2c623..00000000000
--- a/mysql-test/r/set_statement_debug.result
+++ /dev/null
@@ -1,23 +0,0 @@
-call mtr.add_suppression("Sort aborted.*");
-set @save_debug_dbug= @@debug_dbug;
-set statement debug_dbug="d,something" for select @@debug_dbug;
-@@debug_dbug
-d,something
-set @@debug_dbug= @save_debug_dbug;
-CREATE TABLE t1(f0 int auto_increment primary key, f1 int);
-INSERT INTO t1(f1) VALUES (0),(1),(2),(3),(4),(5);
-CALL mtr.add_suppression("Out of sort memory");
-SET statement debug_dbug= '+d,alloc_sort_buffer_fail' for SELECT * FROM t1 ORDER BY f1 ASC, f0;
-ERROR HY001: Out of sort memory, consider increasing server sort buffer size
-SELECT * FROM t1 ORDER BY f1 ASC, f0;
-f0 f1
-1 0
-2 1
-3 2
-4 3
-5 4
-6 5
-DROP TABLE t1;
-set @@debug_dbug= @save_debug_dbug;
-set statement DEBUG_SYNC = 'now SIGNAL hi' for select 1;
-ERROR 42000: The system variable debug_sync cannot be set in SET STATEMENT.
diff --git a/mysql-test/r/set_statement_notembedded.result b/mysql-test/r/set_statement_notembedded.result
deleted file mode 100644
index 561c30d49ac..00000000000
--- a/mysql-test/r/set_statement_notembedded.result
+++ /dev/null
@@ -1,18 +0,0 @@
-SELECT @@MAX_STATEMENT_TIME;
-@@MAX_STATEMENT_TIME
-0.000000
-SET STATEMENT MAX_STATEMENT_TIME=2 FOR SELECT SLEEP(1);
-SLEEP(1)
-0
-SHOW STATUS LIKE "max_statement_time_exceeded";
-Variable_name Value
-Max_statement_time_exceeded 0
-SET STATEMENT MAX_STATEMENT_TIME=2 FOR SELECT SLEEP(3);
-SLEEP(3)
-1
-SHOW STATUS LIKE "max_statement_time_exceeded";
-Variable_name Value
-Max_statement_time_exceeded 1
-SELECT @@MAX_STATEMENT_TIME;
-@@MAX_STATEMENT_TIME
-0.000000
diff --git a/mysql-test/r/set_statement_notembedded_binlog.result b/mysql-test/r/set_statement_notembedded_binlog.result
deleted file mode 100644
index 50fcde5a1cb..00000000000
--- a/mysql-test/r/set_statement_notembedded_binlog.result
+++ /dev/null
@@ -1,108 +0,0 @@
-drop table if exists t1;
-drop view if exists t1;
-#
-# MDEV-6948: SET STATEMENT gtid_domain_id = ... FOR has no effect
-# (same for gtid_seq_no and server_id)
-#
-reset master;
-create table t1 (i int);
-set gtid_domain_id = 10;
-insert into t1 values (1),(2);
-set statement gtid_domain_id = 20 for insert into t1 values (3),(4);
-show binlog events limit 5,5;
-Log_name Pos Event_type Server_id End_log_pos Info
-x x x x x BEGIN GTID 10-1-1
-x x x x x use `test`; insert into t1 values (1),(2)
-x x x x x COMMIT
-x x x x x BEGIN GTID 20-1-1
-x x x x x use `test`; set statement gtid_domain_id = 20 for insert into t1 values (3),(4)
-drop table t1;
-reset master;
-SET @a=11;
-create table t1 (a int not null auto_increment, c int, d int, primary key (a));
-create table t2 (b int);
-insert into t2 values (1),(2);
-CREATE function f1() returns int
-BEGIN
-SET STATEMENT last_insert_id=@a for insert into t1 values (NULL, @a,
-last_insert_id());
-SET @a:=@a*100+13;
-return @a;
-end|
-call mtr.add_suppression("Unsafe statement written to the binary log using");
-select f1() from t2;
-f1()
-1113
-111313
-Warnings:
-Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it invokes a trigger or a stored function that inserts into an AUTO_INCREMENT column. Inserted values cannot be logged correctly
-Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statements writing to a table with an auto-increment column after selecting from another table are unsafe because the order in which rows are retrieved determines what (if any) rows will be written. This order cannot be predicted and may differ on master and the slave
-Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it invokes a trigger or a stored function that inserts into an AUTO_INCREMENT column. Inserted values cannot be logged correctly
-Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statements writing to a table with an auto-increment column after selecting from another table are unsafe because the order in which rows are retrieved determines what (if any) rows will be written. This order cannot be predicted and may differ on master and the slave
-show binlog events limit 16, 100;
-Log_name Pos Event_type Server_id End_log_pos Info
-x x x x x LAST_INSERT_ID=0
-x x x x x INSERT_ID=1
-x x x x x @`a`=11
-x x x x x @`a`=11
-x x x x x use `test`; SELECT `test`.`f1`()
-x x x x x LAST_INSERT_ID=0
-x x x x x INSERT_ID=2
-x x x x x @`a`=1113
-x x x x x @`a`=1113
-x x x x x use `test`; SELECT `test`.`f1`()
-x x x x x COMMIT
-select * from t1;
-a c d
-1 11 11
-2 1113 1113
-drop function f1;
-drop table t1,t2;
-reset master;
-SET @a=11;
-create table t1 (a int not null auto_increment, c int, d int, primary key (a));
-create table t2 (b int);
-insert into t2 values (1),(2);
-CREATE function f1() returns int
-BEGIN
-SET @save= @@last_insert_id;
-SET session last_insert_id=@a;
-insert into t1 values (NULL, @a, last_insert_id());
-SET session last_insert_id=@save;
-SET @a:=@a*100+13;
-return @a;
-end|
-select f1() from t2;
-f1()
-1113
-111313
-Warnings:
-Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it invokes a trigger or a stored function that inserts into an AUTO_INCREMENT column. Inserted values cannot be logged correctly
-Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statements writing to a table with an auto-increment column after selecting from another table are unsafe because the order in which rows are retrieved determines what (if any) rows will be written. This order cannot be predicted and may differ on master and the slave
-Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it invokes a trigger or a stored function that inserts into an AUTO_INCREMENT column. Inserted values cannot be logged correctly
-Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statements writing to a table with an auto-increment column after selecting from another table are unsafe because the order in which rows are retrieved determines what (if any) rows will be written. This order cannot be predicted and may differ on master and the slave
-show binlog events limit 13, 100;
-Log_name Pos Event_type Server_id End_log_pos Info
-x x x x x LAST_INSERT_ID=0
-x x x x x INSERT_ID=1
-x x x x x @`a`=11
-x x x x x @`save`=0
-x x x x x use `test`; SELECT `test`.`f1`()
-x x x x x LAST_INSERT_ID=0
-x x x x x INSERT_ID=2
-x x x x x @`a`=1113
-x x x x x @`save`=0
-x x x x x use `test`; SELECT `test`.`f1`()
-x x x x x COMMIT
-select * from t1;
-a c d
-1 11 11
-2 1113 1113
-drop function f1;
-drop table t1,t2;
-reset master;
-set statement last_insert_id = 112 for create table t1 as select last_insert_id();
-show binlog events limit 4,1;
-Log_name Pos Event_type Server_id End_log_pos Info
-x x x x x LAST_INSERT_ID=112
-drop table t1;
diff --git a/mysql-test/r/set_statement_profiling.result b/mysql-test/r/set_statement_profiling.result
deleted file mode 100644
index 1f17c345680..00000000000
--- a/mysql-test/r/set_statement_profiling.result
+++ /dev/null
@@ -1,4 +0,0 @@
-set statement profiling=default for select 1;
-ERROR 42000: The system variable profiling cannot be set in SET STATEMENT.
-set statement profiling_history_size=default for select 1;
-ERROR 42000: The system variable profiling_history_size cannot be set in SET STATEMENT.
diff --git a/mysql-test/r/shm.result b/mysql-test/r/shm.result
deleted file mode 100644
index 65187b6b19b..00000000000
--- a/mysql-test/r/shm.result
+++ /dev/null
@@ -1,2170 +0,0 @@
-connect shm_con,localhost,root,,,,$shm_name,SHM;
-drop table if exists t1,t2,t3,t4;
-CREATE TABLE t1 (
-Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
-Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
-);
-INSERT INTO t1 VALUES (9410,9412);
-select period from t1;
-period
-9410
-select * from t1;
-Period Varor_period
-9410 9412
-select t1.* from t1;
-Period Varor_period
-9410 9412
-CREATE TABLE t2 (
-auto int not null auto_increment,
-fld1 int(6) unsigned zerofill DEFAULT '000000' NOT NULL,
-companynr tinyint(2) unsigned zerofill DEFAULT '00' NOT NULL,
-fld3 char(30) DEFAULT '' NOT NULL,
-fld4 char(35) DEFAULT '' NOT NULL,
-fld5 char(35) DEFAULT '' NOT NULL,
-fld6 char(4) DEFAULT '' NOT NULL,
-UNIQUE fld1 (fld1),
-KEY fld3 (fld3),
-PRIMARY KEY (auto)
-);
-select t2.fld3 from t2 where companynr = 58 and fld3 like "%imaginable%";
-fld3
-imaginable
-select fld3 from t2 where fld3 like "%cultivation" ;
-fld3
-cultivation
-select t2.fld3,companynr from t2 where companynr = 57+1 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3,companynr from t2 where companynr = 58 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3 from t2 order by fld3 desc limit 10;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select fld3 from t2 order by fld3 desc limit 5;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-select fld3 from t2 order by fld3 desc limit 5,5;
-fld3
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select t2.fld3 from t2 where fld3 = 'honeysuckle';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'hon_ysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle%';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'h%le';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle_';
-fld3
-select t2.fld3 from t2 where fld3 LIKE 'don_t_find_me_please%';
-fld3
-explain select t2.fld3 from t2 where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld1) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3,not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-explain select fld3 from t2 use index (not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-fld3
-honeysuckle
-honoring
-explain select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld3 fld3 30 NULL 2 Using where; Using index
-select fld1,fld3 from t2 where fld3="Colombo" or fld3 = "nondecreasing" order by fld3;
-fld1 fld3
-148504 Colombo
-068305 Colombo
-000000 nondecreasing
-select fld1,fld3 from t2 where companynr = 37 and fld3 = 'appendixes';
-fld1 fld3
-232605 appendixes
-1232605 appendixes
-1232606 appendixes
-1232607 appendixes
-1232608 appendixes
-1232609 appendixes
-select fld1 from t2 where fld1=250501 or fld1="250502";
-fld1
-250501
-250502
-explain select fld1 from t2 where fld1=250501 or fld1="250502";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 2 Using where; Using index
-select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-fld1
-250501
-250502
-250505
-250601
-explain select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 4 Using where; Using index
-select fld1,fld3 from t2 where companynr = 37 and fld3 like 'f%';
-fld1 fld3
-012001 flanking
-013602 foldout
-013606 fingerings
-018007 fanatic
-018017 featherweight
-018054 fetters
-018103 flint
-018104 flopping
-036002 funereal
-038017 fetched
-038205 firearm
-058004 Fenton
-088303 feminine
-186002 freakish
-188007 flurried
-188505 fitting
-198006 furthermore
-202301 Fitzpatrick
-208101 fiftieth
-208113 freest
-218008 finishers
-218022 feed
-218401 faithful
-226205 foothill
-226209 furnishings
-228306 forthcoming
-228311 fated
-231315 freezes
-232102 forgivably
-238007 filial
-238008 fixedly
-select fld3 from t2 where fld3 like "L%" and fld3 = "ok";
-fld3
-select fld3 from t2 where (fld3 like "C%" and fld3 = "Chantilly");
-fld3
-Chantilly
-select fld1,fld3 from t2 where fld1 like "25050%";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select fld1,fld3 from t2 where fld1 like "25050_";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select distinct companynr from t2;
-companynr
-00
-37
-36
-50
-58
-29
-40
-53
-65
-41
-34
-68
-select distinct companynr from t2 order by companynr;
-companynr
-00
-29
-34
-36
-37
-40
-41
-50
-53
-58
-65
-68
-select distinct companynr from t2 order by companynr desc;
-companynr
-68
-65
-58
-53
-50
-41
-40
-37
-36
-34
-29
-00
-select distinct t2.fld3,period from t2,t1 where companynr=37 and fld3 like "O%";
-fld3 period
-obliterates 9410
-offload 9410
-opaquely 9410
-organizer 9410
-overestimating 9410
-overlay 9410
-select distinct fld3 from t2 where companynr = 34 order by fld3;
-fld3
-absentee
-accessed
-ahead
-alphabetic
-Asiaticizations
-attitude
-aye
-bankruptcies
-belays
-Blythe
-bomb
-boulevard
-bulldozes
-cannot
-caressing
-charcoal
-checksumming
-chess
-clubroom
-colorful
-cosy
-creator
-crying
-Darius
-diffusing
-duality
-Eiffel
-Epiphany
-Ernestine
-explorers
-exterminated
-famine
-forked
-Gershwins
-heaving
-Hodges
-Iraqis
-Italianization
-Lagos
-landslide
-libretto
-Majorca
-mastering
-narrowed
-occurred
-offerers
-Palestine
-Peruvianizes
-pharmaceutic
-poisoning
-population
-Pygmalion
-rats
-realest
-recording
-regimented
-retransmitting
-reviver
-rouses
-scars
-sicker
-sleepwalk
-stopped
-sugars
-translatable
-uncles
-unexpected
-uprisings
-versatility
-vest
-select distinct fld3 from t2 limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct fld3 from t2 having fld3 like "A%" limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%";
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-Adl
-adm
-Ado
-ads
-adv
-aer
-aff
-afi
-afl
-afo
-agi
-ahe
-aim
-air
-Ald
-alg
-ali
-all
-alp
-alr
-ama
-ame
-amm
-ana
-and
-ane
-Ang
-ani
-Ann
-Ant
-api
-app
-aqu
-Ara
-arc
-Arm
-arr
-Art
-Asi
-ask
-asp
-ass
-ast
-att
-aud
-Aug
-aut
-ave
-avo
-awe
-aye
-Azt
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" order by a limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%" limit 10;
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-create table t3 (
-period int not null,
-name char(32) not null,
-companynr int not null,
-price double(11,0),
-price2 double(11,0),
-key (period),
-key (name)
-);
-create temporary table tmp engine = myisam select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-alter table t3 add t2nr int not null auto_increment primary key first;
-drop table tmp;
-SET BIG_TABLES=1;
-select distinct concat(fld3," ",fld3) as namn from t2,t3 where t2.fld1=t3.t2nr order by namn limit 10;
-namn
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-SET BIG_TABLES=0;
-select distinct concat(fld3," ",fld3) from t2,t3 where t2.fld1=t3.t2nr order by fld3 limit 10;
-concat(fld3," ",fld3)
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-select distinct fld5 from t2 limit 10;
-fld5
-neat
-Steinberg
-jarring
-tinily
-balled
-persist
-attainments
-fanatic
-measures
-rightfulness
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=1;
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=0;
-select distinct fld3,repeat("a",length(fld3)),count(*) from t2 group by companynr,fld3 limit 100,10;
-fld3 repeat("a",length(fld3)) count(*)
-circus aaaaaa 1
-cited aaaaa 1
-Colombo aaaaaaa 1
-congresswoman aaaaaaaaaaaaa 1
-contrition aaaaaaaaaa 1
-corny aaaaa 1
-cultivation aaaaaaaaaaa 1
-definiteness aaaaaaaaaaaa 1
-demultiplex aaaaaaaaaaa 1
-disappointing aaaaaaaaaaaaa 1
-select distinct companynr,rtrim(space(512+companynr)) from t3 order by 1,2;
-companynr rtrim(space(512+companynr))
-37
-78
-101
-154
-311
-447
-512
-select distinct fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by fld3;
-fld3
-explain select t3.t2nr,fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by t3.t2nr,fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL fld1 NULL NULL NULL 1199 Using where; Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.fld1 1 Using where; Using index
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL period NULL NULL NULL 41810 Using filesort
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index period period 4 NULL 1
-1 SIMPLE t1 ref period period 4 test.t3.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t1.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index period period 4 NULL 1
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-select period from t1;
-period
-9410
-select period from t1 where period=1900;
-period
-select fld3,period from t1,t2 where fld1 = 011401 order by period;
-fld3 period
-breaking 9410
-select fld3,period from t2,t3 where t2.fld1 = 011401 and t2.fld1=t3.t2nr and t3.period=1001;
-fld3 period
-breaking 1001
-explain select fld3,period from t2,t3 where t2.fld1 = 011401 and t3.t2nr=t2.fld1 and 1001 = t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const fld1 fld1 4 const 1
-1 SIMPLE t3 const PRIMARY,period PRIMARY 4 const 1
-select fld3,period from t2,t1 where companynr*10 = 37*10;
-fld3 period
-breaking 9410
-Romans 9410
-intercepted 9410
-bewilderingly 9410
-astound 9410
-admonishing 9410
-sumac 9410
-flanking 9410
-combed 9410
-subjective 9410
-scatterbrain 9410
-Eulerian 9410
-Kane 9410
-overlay 9410
-perturb 9410
-goblins 9410
-annihilates 9410
-Wotan 9410
-snatching 9410
-concludes 9410
-laterally 9410
-yelped 9410
-grazing 9410
-Baird 9410
-celery 9410
-misunderstander 9410
-handgun 9410
-foldout 9410
-mystic 9410
-succumbed 9410
-Nabisco 9410
-fingerings 9410
-aging 9410
-afield 9410
-ammonium 9410
-boat 9410
-intelligibility 9410
-Augustine 9410
-teethe 9410
-dreaded 9410
-scholastics 9410
-audiology 9410
-wallet 9410
-parters 9410
-eschew 9410
-quitter 9410
-neat 9410
-Steinberg 9410
-jarring 9410
-tinily 9410
-balled 9410
-persist 9410
-attainments 9410
-fanatic 9410
-measures 9410
-rightfulness 9410
-capably 9410
-impulsive 9410
-starlet 9410
-terminators 9410
-untying 9410
-announces 9410
-featherweight 9410
-pessimist 9410
-daughter 9410
-decliner 9410
-lawgiver 9410
-stated 9410
-readable 9410
-attrition 9410
-cascade 9410
-motors 9410
-interrogate 9410
-pests 9410
-stairway 9410
-dopers 9410
-testicle 9410
-Parsifal 9410
-leavings 9410
-postulation 9410
-squeaking 9410
-contrasted 9410
-leftover 9410
-whiteners 9410
-erases 9410
-Punjab 9410
-Merritt 9410
-Quixotism 9410
-sweetish 9410
-dogging 9410
-scornfully 9410
-bellow 9410
-bills 9410
-cupboard 9410
-sureties 9410
-puddings 9410
-fetters 9410
-bivalves 9410
-incurring 9410
-Adolph 9410
-pithed 9410
-Miles 9410
-trimmings 9410
-tragedies 9410
-skulking 9410
-flint 9410
-flopping 9410
-relaxing 9410
-offload 9410
-suites 9410
-lists 9410
-animized 9410
-multilayer 9410
-standardizes 9410
-Judas 9410
-vacuuming 9410
-dentally 9410
-humanness 9410
-inch 9410
-Weissmuller 9410
-irresponsibly 9410
-luckily 9410
-culled 9410
-medical 9410
-bloodbath 9410
-subschema 9410
-animals 9410
-Micronesia 9410
-repetitions 9410
-Antares 9410
-ventilate 9410
-pityingly 9410
-interdependent 9410
-Graves 9410
-neonatal 9410
-chafe 9410
-honoring 9410
-realtor 9410
-elite 9410
-funereal 9410
-abrogating 9410
-sorters 9410
-Conley 9410
-lectured 9410
-Abraham 9410
-Hawaii 9410
-cage 9410
-hushes 9410
-Simla 9410
-reporters 9410
-Dutchman 9410
-descendants 9410
-groupings 9410
-dissociate 9410
-coexist 9410
-Beebe 9410
-Taoism 9410
-Connally 9410
-fetched 9410
-checkpoints 9410
-rusting 9410
-galling 9410
-obliterates 9410
-traitor 9410
-resumes 9410
-analyzable 9410
-terminator 9410
-gritty 9410
-firearm 9410
-minima 9410
-Selfridge 9410
-disable 9410
-witchcraft 9410
-betroth 9410
-Manhattanize 9410
-imprint 9410
-peeked 9410
-swelling 9410
-interrelationships 9410
-riser 9410
-Gandhian 9410
-peacock 9410
-bee 9410
-kanji 9410
-dental 9410
-scarf 9410
-chasm 9410
-insolence 9410
-syndicate 9410
-alike 9410
-imperial 9410
-convulsion 9410
-railway 9410
-validate 9410
-normalizes 9410
-comprehensive 9410
-chewing 9410
-denizen 9410
-schemer 9410
-chronicle 9410
-Kline 9410
-Anatole 9410
-partridges 9410
-brunch 9410
-recruited 9410
-dimensions 9410
-Chicana 9410
-announced 9410
-praised 9410
-employing 9410
-linear 9410
-quagmire 9410
-western 9410
-relishing 9410
-serving 9410
-scheduling 9410
-lore 9410
-eventful 9410
-arteriole 9410
-disentangle 9410
-cured 9410
-Fenton 9410
-avoidable 9410
-drains 9410
-detectably 9410
-husky 9410
-impelling 9410
-undoes 9410
-evened 9410
-squeezes 9410
-destroyer 9410
-rudeness 9410
-beaner 9410
-boorish 9410
-Everhart 9410
-encompass 9410
-mushrooms 9410
-Alison 9410
-externally 9410
-pellagra 9410
-cult 9410
-creek 9410
-Huffman 9410
-Majorca 9410
-governing 9410
-gadfly 9410
-reassigned 9410
-intentness 9410
-craziness 9410
-psychic 9410
-squabbled 9410
-burlesque 9410
-capped 9410
-extracted 9410
-DiMaggio 9410
-exclamation 9410
-subdirectory 9410
-Gothicism 9410
-feminine 9410
-metaphysically 9410
-sanding 9410
-Miltonism 9410
-freakish 9410
-index 9410
-straight 9410
-flurried 9410
-denotative 9410
-coming 9410
-commencements 9410
-gentleman 9410
-gifted 9410
-Shanghais 9410
-sportswriting 9410
-sloping 9410
-navies 9410
-leaflet 9410
-shooter 9410
-Joplin 9410
-babies 9410
-assails 9410
-admiring 9410
-swaying 9410
-Goldstine 9410
-fitting 9410
-Norwalk 9410
-analogy 9410
-deludes 9410
-cokes 9410
-Clayton 9410
-exhausts 9410
-causality 9410
-sating 9410
-icon 9410
-throttles 9410
-communicants 9410
-dehydrate 9410
-priceless 9410
-publicly 9410
-incidentals 9410
-commonplace 9410
-mumbles 9410
-furthermore 9410
-cautioned 9410
-parametrized 9410
-registration 9410
-sadly 9410
-positioning 9410
-babysitting 9410
-eternal 9410
-hoarder 9410
-congregates 9410
-rains 9410
-workers 9410
-sags 9410
-unplug 9410
-garage 9410
-boulder 9410
-specifics 9410
-Teresa 9410
-Winsett 9410
-convenient 9410
-buckboards 9410
-amenities 9410
-resplendent 9410
-sews 9410
-participated 9410
-Simon 9410
-certificates 9410
-Fitzpatrick 9410
-Evanston 9410
-misted 9410
-textures 9410
-save 9410
-count 9410
-rightful 9410
-chaperone 9410
-Lizzy 9410
-clenched 9410
-effortlessly 9410
-accessed 9410
-beaters 9410
-Hornblower 9410
-vests 9410
-indulgences 9410
-infallibly 9410
-unwilling 9410
-excrete 9410
-spools 9410
-crunches 9410
-overestimating 9410
-ineffective 9410
-humiliation 9410
-sophomore 9410
-star 9410
-rifles 9410
-dialysis 9410
-arriving 9410
-indulge 9410
-clockers 9410
-languages 9410
-Antarctica 9410
-percentage 9410
-ceiling 9410
-specification 9410
-regimented 9410
-ciphers 9410
-pictures 9410
-serpents 9410
-allot 9410
-realized 9410
-mayoral 9410
-opaquely 9410
-hostess 9410
-fiftieth 9410
-incorrectly 9410
-decomposition 9410
-stranglings 9410
-mixture 9410
-electroencephalography 9410
-similarities 9410
-charges 9410
-freest 9410
-Greenberg 9410
-tinting 9410
-expelled 9410
-warm 9410
-smoothed 9410
-deductions 9410
-Romano 9410
-bitterroot 9410
-corset 9410
-securing 9410
-environing 9410
-cute 9410
-Crays 9410
-heiress 9410
-inform 9410
-avenge 9410
-universals 9410
-Kinsey 9410
-ravines 9410
-bestseller 9410
-equilibrium 9410
-extents 9410
-relatively 9410
-pressure 9410
-critiques 9410
-befouled 9410
-rightfully 9410
-mechanizing 9410
-Latinizes 9410
-timesharing 9410
-Aden 9410
-embassies 9410
-males 9410
-shapelessly 9410
-mastering 9410
-Newtonian 9410
-finishers 9410
-abates 9410
-teem 9410
-kiting 9410
-stodgy 9410
-feed 9410
-guitars 9410
-airships 9410
-store 9410
-denounces 9410
-Pyle 9410
-Saxony 9410
-serializations 9410
-Peruvian 9410
-taxonomically 9410
-kingdom 9410
-stint 9410
-Sault 9410
-faithful 9410
-Ganymede 9410
-tidiness 9410
-gainful 9410
-contrary 9410
-Tipperary 9410
-tropics 9410
-theorizers 9410
-renew 9410
-already 9410
-terminal 9410
-Hegelian 9410
-hypothesizer 9410
-warningly 9410
-journalizing 9410
-nested 9410
-Lars 9410
-saplings 9410
-foothill 9410
-labeled 9410
-imperiously 9410
-reporters 9410
-furnishings 9410
-precipitable 9410
-discounts 9410
-excises 9410
-Stalin 9410
-despot 9410
-ripeness 9410
-Arabia 9410
-unruly 9410
-mournfulness 9410
-boom 9410
-slaughter 9410
-Sabine 9410
-handy 9410
-rural 9410
-organizer 9410
-shipyard 9410
-civics 9410
-inaccuracy 9410
-rules 9410
-juveniles 9410
-comprised 9410
-investigations 9410
-stabilizes 9410
-seminaries 9410
-Hunter 9410
-sporty 9410
-test 9410
-weasels 9410
-CERN 9410
-tempering 9410
-afore 9410
-Galatean 9410
-techniques 9410
-error 9410
-veranda 9410
-severely 9410
-Cassites 9410
-forthcoming 9410
-guides 9410
-vanish 9410
-lied 9410
-sawtooth 9410
-fated 9410
-gradually 9410
-widens 9410
-preclude 9410
-evenhandedly 9410
-percentage 9410
-disobedience 9410
-humility 9410
-gleaning 9410
-petted 9410
-bloater 9410
-minion 9410
-marginal 9410
-apiary 9410
-measures 9410
-precaution 9410
-repelled 9410
-primary 9410
-coverings 9410
-Artemia 9410
-navigate 9410
-spatial 9410
-Gurkha 9410
-meanwhile 9410
-Melinda 9410
-Butterfield 9410
-Aldrich 9410
-previewing 9410
-glut 9410
-unaffected 9410
-inmate 9410
-mineral 9410
-impending 9410
-meditation 9410
-ideas 9410
-miniaturizes 9410
-lewdly 9410
-title 9410
-youthfulness 9410
-creak 9410
-Chippewa 9410
-clamored 9410
-freezes 9410
-forgivably 9410
-reduce 9410
-McGovern 9410
-Nazis 9410
-epistle 9410
-socializes 9410
-conceptions 9410
-Kevin 9410
-uncovering 9410
-chews 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-raining 9410
-infest 9410
-compartment 9410
-minting 9410
-ducks 9410
-roped 9410
-waltz 9410
-Lillian 9410
-repressions 9410
-chillingly 9410
-noncritical 9410
-lithograph 9410
-spongers 9410
-parenthood 9410
-posed 9410
-instruments 9410
-filial 9410
-fixedly 9410
-relives 9410
-Pandora 9410
-watering 9410
-ungrateful 9410
-secures 9410
-poison 9410
-dusted 9410
-encompasses 9410
-presentation 9410
-Kantian 9410
-select fld3,period,price,price2 from t2,t3 where t2.fld1=t3.t2nr and period >= 1001 and period <= 1002 and t2.companynr = 37 order by fld3,period, price;
-fld3 period price price2
-admonishing 1002 28357832 8723648
-analyzable 1002 28357832 8723648
-annihilates 1001 5987435 234724
-Antares 1002 28357832 8723648
-astound 1001 5987435 234724
-audiology 1001 5987435 234724
-Augustine 1002 28357832 8723648
-Baird 1002 28357832 8723648
-bewilderingly 1001 5987435 234724
-breaking 1001 5987435 234724
-Conley 1001 5987435 234724
-dentally 1002 28357832 8723648
-dissociate 1002 28357832 8723648
-elite 1001 5987435 234724
-eschew 1001 5987435 234724
-Eulerian 1001 5987435 234724
-flanking 1001 5987435 234724
-foldout 1002 28357832 8723648
-funereal 1002 28357832 8723648
-galling 1002 28357832 8723648
-Graves 1001 5987435 234724
-grazing 1001 5987435 234724
-groupings 1001 5987435 234724
-handgun 1001 5987435 234724
-humility 1002 28357832 8723648
-impulsive 1002 28357832 8723648
-inch 1001 5987435 234724
-intelligibility 1001 5987435 234724
-jarring 1001 5987435 234724
-lawgiver 1001 5987435 234724
-lectured 1002 28357832 8723648
-Merritt 1002 28357832 8723648
-neonatal 1001 5987435 234724
-offload 1002 28357832 8723648
-parters 1002 28357832 8723648
-pityingly 1002 28357832 8723648
-puddings 1002 28357832 8723648
-Punjab 1001 5987435 234724
-quitter 1002 28357832 8723648
-realtor 1001 5987435 234724
-relaxing 1001 5987435 234724
-repetitions 1001 5987435 234724
-resumes 1001 5987435 234724
-Romans 1002 28357832 8723648
-rusting 1001 5987435 234724
-scholastics 1001 5987435 234724
-skulking 1002 28357832 8723648
-stated 1002 28357832 8723648
-suites 1002 28357832 8723648
-sureties 1001 5987435 234724
-testicle 1002 28357832 8723648
-tinily 1002 28357832 8723648
-tragedies 1001 5987435 234724
-trimmings 1001 5987435 234724
-vacuuming 1001 5987435 234724
-ventilate 1001 5987435 234724
-wallet 1001 5987435 234724
-Weissmuller 1002 28357832 8723648
-Wotan 1002 28357832 8723648
-select t2.fld1,fld3,period,price,price2 from t2,t3 where t2.fld1>= 18201 and t2.fld1 <= 18811 and t2.fld1=t3.t2nr and period = 1001 and t2.companynr = 37;
-fld1 fld3 period price price2
-018201 relaxing 1001 5987435 234724
-018601 vacuuming 1001 5987435 234724
-018801 inch 1001 5987435 234724
-018811 repetitions 1001 5987435 234724
-create table t4 (
-companynr tinyint(2) unsigned zerofill NOT NULL default '00',
-companyname char(30) NOT NULL default '',
-PRIMARY KEY (companynr),
-UNIQUE KEY companyname(companyname)
-) ENGINE=MyISAM MAX_ROWS=50 PACK_KEYS=1 COMMENT='companynames';
-select STRAIGHT_JOIN t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select SQL_SMALL_RESULT t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select * from t1,t1 t12;
-Period Varor_period Period Varor_period
-9410 9412 9410 9412
-select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505;
-fld1 fld1
-250501 250501
-250502 250501
-250503 250501
-250504 250501
-250505 250501
-250501 250502
-250502 250502
-250503 250502
-250504 250502
-250505 250502
-250501 250503
-250502 250503
-250503 250503
-250504 250503
-250505 250503
-250501 250504
-250502 250504
-250503 250504
-250504 250504
-250505 250504
-250501 250505
-250502 250505
-250503 250505
-250504 250505
-250505 250505
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-insert into t2 (fld1, companynr) values (999999,99);
-select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-companynr companyname
-99 NULL
-select count(*) from t2 left join t4 using (companynr) where t4.companynr is not null;
-count(*)
-1199
-explain select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1 Using where; Not exists
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200 Using where; Not exists
-select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-companynr companyname
-select count(*) from t2 left join t4 using (companynr) where companynr is not null;
-count(*)
-1200
-explain select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-delete from t2 where fld1=999999;
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 and t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 and companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0 or t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where ifnull(t2.companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0 or companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where ifnull(companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-SET optimizer_switch=@save_optimizer_switch;
-select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-companynr companynr
-37 36
-41 40
-explain select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 index NULL PRIMARY 1 NULL 12 Using index; Using temporary
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where; Using join buffer (flat, BNL join)
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where t2.fld1 = 38208 and t2.fld1=t3.t2nr and period = 1008 or t2.fld1 = 38008 and t2.fld1 =t3.t2nr and period = 1008;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t2.fld1 = 38208 or t2.fld1 = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t3.t2nr = 38208 or t3.t2nr = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select period from t1 where (((period > 0) or period < 10000 or (period = 1900)) and (period=1900 and period <= 1901) or (period=1903 and (period=1903)) and period>=1902) or ((period=1904 or period=1905) or (period=1906 or period>1907)) or (period=1908 and period = 1909);
-period
-9410
-select period from t1 where ((period > 0 and period < 1) or (((period > 0 and period < 100) and (period > 10)) or (period > 10)) or (period > 0 and (period > 5 or period > 6)));
-period
-9410
-select a.fld1 from t2 as a,t2 b where ((a.fld1 = 250501 and a.fld1=b.fld1) or a.fld1=250502 or a.fld1=250503 or (a.fld1=250505 and a.fld1<=b.fld1 and b.fld1>=a.fld1)) and a.fld1=b.fld1;
-fld1
-250501
-250502
-250503
-250505
-select fld1 from t2 where fld1 in (250502,98005,98006,250503,250605,250606) and fld1 >=250502 and fld1 not in (250605,250606);
-fld1
-250502
-250503
-select fld1 from t2 where fld1 between 250502 and 250504;
-fld1
-250502
-250503
-250504
-select fld3 from t2 where (((fld3 like "_%L%" ) or (fld3 like "%ok%")) and ( fld3 like "L%" or fld3 like "G%")) and fld3 like "L%" ;
-fld3
-label
-labeled
-labeled
-landslide
-laterally
-leaflet
-lewdly
-Lillian
-luckily
-select count(*) from t1;
-count(*)
-1
-select companynr,count(*),sum(fld1) from t2 group by companynr;
-companynr count(*) sum(fld1)
-00 82 10355753
-29 95 14473298
-34 70 17788966
-36 215 22786296
-37 588 83602098
-40 37 6618386
-41 52 12816335
-50 11 1595438
-53 4 793210
-58 23 2254293
-65 10 2284055
-68 12 3097288
-select companynr,count(*) from t2 group by companynr order by companynr desc limit 5;
-companynr count(*)
-68 12
-65 10
-58 23
-53 4
-50 11
-select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-explain extended select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 100.00 Using where
-Warnings:
-Note 1003 select count(0) AS `count(*)`,min(`test`.`t2`.`fld4`) AS `min(fld4)`,max(`test`.`t2`.`fld4`) AS `max(fld4)`,sum(`test`.`t2`.`fld1`) AS `sum(fld1)`,avg(`test`.`t2`.`fld1`) AS `avg(fld1)`,std(`test`.`t2`.`fld1`) AS `std(fld1)`,variance(`test`.`t2`.`fld1`) AS `variance(fld1)` from `test`.`t2` where `test`.`t2`.`companynr` = 34 and `test`.`t2`.`fld4` <> ''
-select companynr,count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 group by companynr limit 3;
-companynr count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-00 82 Anthony windmills 10355753 126289.6707 115550.9757 13352027981.7087
-29 95 abut wetness 14473298 152350.5053 8368.5480 70032594.9026
-34 70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-select companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select /*! SQL_SMALL_RESULT */ companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select companynr,count(price),sum(price),min(price),max(price),avg(price) from t3 group by companynr ;
-companynr count(price) sum(price) min(price) max(price) avg(price)
-37 12543 309394878010 5987435 39654943 24666736.6667
-78 8362 414611089292 726498 98439034 49582766.0000
-101 4181 3489454238 834598 834598 834598.0000
-154 4181 4112197254950 983543950 983543950 983543950.0000
-311 4181 979599938 234298 234298 234298.0000
-447 4181 9929180954 2374834 2374834 2374834.0000
-512 4181 3288532102 786542 786542 786542.0000
-select distinct mod(companynr,10) from t4 group by companynr;
-mod(companynr,10)
-0
-9
-4
-6
-7
-1
-3
-8
-5
-select distinct 1 from t4 group by companynr;
-1
-1
-select count(distinct fld1) from t2;
-count(distinct fld1)
-1199
-select companynr,count(distinct fld1) from t2 group by companynr;
-companynr count(distinct fld1)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(*) from t2 group by companynr;
-companynr count(*)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,1000))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,1000)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,200))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,200)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct floor(fld1/100)) from t2 group by companynr;
-companynr count(distinct floor(fld1/100))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select companynr,count(distinct concat(repeat(65,1000),floor(fld1/100))) from t2 group by companynr;
-companynr count(distinct concat(repeat(65,1000),floor(fld1/100)))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select sum(fld1),fld3 from t2 where fld3="Romans" group by fld1 limit 10;
-sum(fld1) fld3
-11402 Romans
-select name,count(*) from t3 where name='cloakroom' group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name='cloakroom' and price>10 group by name;
-name count(*)
-cloakroom 4181
-select count(*) from t3 where name='cloakroom' and price2=823742;
-count(*)
-4181
-select name,count(*) from t3 where name='cloakroom' and price2=823742 group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name >= "extramarital" and price <= 39654943 group by name;
-name count(*)
-extramarital 4181
-gazer 4181
-gems 4181
-Iranizes 4181
-spates 4181
-tucked 4181
-violinist 4181
-select t2.fld3,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld3 count(*)
-spates 4181
-select companynr|0,companyname from t4 group by 1;
-companynr|0 companyname
-0 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by t2.companynr order by companyname;
-companynr companyname count(*)
-29 company 1 95
-68 company 10 12
-50 company 11 11
-34 company 2 70
-36 company 3 215
-37 company 4 588
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-00 Unknown 82
-select t2.fld1,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld1 count(*)
-158402 4181
-select sum(Period)/count(*) from t1;
-sum(Period)/count(*)
-9410.0000
-select companynr,count(price) as "count",sum(price) as "sum" ,abs(sum(price)/count(price)-avg(price)) as "diff",(0+count(price))*companynr as func from t3 group by companynr;
-companynr count sum diff func
-37 12543 309394878010 0.0000 464091
-78 8362 414611089292 0.0000 652236
-101 4181 3489454238 0.0000 422281
-154 4181 4112197254950 0.0000 643874
-311 4181 979599938 0.0000 1300291
-447 4181 9929180954 0.0000 1868907
-512 4181 3288532102 0.0000 2140672
-select companynr,sum(price)/count(price) as avg from t3 group by companynr having avg > 70000000 order by avg;
-companynr avg
-154 983543950.0000
-select companynr,count(*) from t2 group by companynr order by 2 desc;
-companynr count(*)
-37 588
-36 215
-29 95
-00 82
-34 70
-41 52
-40 37
-58 23
-68 12
-50 11
-65 10
-53 4
-select companynr,count(*) from t2 where companynr > 40 group by companynr order by 2 desc;
-companynr count(*)
-41 52
-58 23
-68 12
-50 11
-65 10
-53 4
-select t2.fld4,t2.fld1,count(price),sum(price),min(price),max(price),avg(price) from t3,t2 where t3.companynr = 37 and t2.fld1 = t3.t2nr group by fld1,t2.fld4;
-fld4 fld1 count(price) sum(price) min(price) max(price) avg(price)
-teethe 000001 1 5987435 5987435 5987435 5987435.0000
-dreaded 011401 1 5987435 5987435 5987435 5987435.0000
-scholastics 011402 1 28357832 28357832 28357832 28357832.0000
-audiology 011403 1 39654943 39654943 39654943 39654943.0000
-wallet 011501 1 5987435 5987435 5987435 5987435.0000
-parters 011701 1 5987435 5987435 5987435 5987435.0000
-eschew 011702 1 28357832 28357832 28357832 28357832.0000
-quitter 011703 1 39654943 39654943 39654943 39654943.0000
-neat 012001 1 5987435 5987435 5987435 5987435.0000
-Steinberg 012003 1 39654943 39654943 39654943 39654943.0000
-balled 012301 1 5987435 5987435 5987435 5987435.0000
-persist 012302 1 28357832 28357832 28357832 28357832.0000
-attainments 012303 1 39654943 39654943 39654943 39654943.0000
-capably 012501 1 5987435 5987435 5987435 5987435.0000
-impulsive 012602 1 28357832 28357832 28357832 28357832.0000
-starlet 012603 1 39654943 39654943 39654943 39654943.0000
-featherweight 012701 1 5987435 5987435 5987435 5987435.0000
-pessimist 012702 1 28357832 28357832 28357832 28357832.0000
-daughter 012703 1 39654943 39654943 39654943 39654943.0000
-lawgiver 013601 1 5987435 5987435 5987435 5987435.0000
-stated 013602 1 28357832 28357832 28357832 28357832.0000
-readable 013603 1 39654943 39654943 39654943 39654943.0000
-testicle 013801 1 5987435 5987435 5987435 5987435.0000
-Parsifal 013802 1 28357832 28357832 28357832 28357832.0000
-leavings 013803 1 39654943 39654943 39654943 39654943.0000
-squeaking 013901 1 5987435 5987435 5987435 5987435.0000
-contrasted 016001 1 5987435 5987435 5987435 5987435.0000
-leftover 016201 1 5987435 5987435 5987435 5987435.0000
-whiteners 016202 1 28357832 28357832 28357832 28357832.0000
-erases 016301 1 5987435 5987435 5987435 5987435.0000
-Punjab 016302 1 28357832 28357832 28357832 28357832.0000
-Merritt 016303 1 39654943 39654943 39654943 39654943.0000
-sweetish 018001 1 5987435 5987435 5987435 5987435.0000
-dogging 018002 1 28357832 28357832 28357832 28357832.0000
-scornfully 018003 1 39654943 39654943 39654943 39654943.0000
-fetters 018012 1 28357832 28357832 28357832 28357832.0000
-bivalves 018013 1 39654943 39654943 39654943 39654943.0000
-skulking 018021 1 5987435 5987435 5987435 5987435.0000
-flint 018022 1 28357832 28357832 28357832 28357832.0000
-flopping 018023 1 39654943 39654943 39654943 39654943.0000
-Judas 018032 1 28357832 28357832 28357832 28357832.0000
-vacuuming 018033 1 39654943 39654943 39654943 39654943.0000
-medical 018041 1 5987435 5987435 5987435 5987435.0000
-bloodbath 018042 1 28357832 28357832 28357832 28357832.0000
-subschema 018043 1 39654943 39654943 39654943 39654943.0000
-interdependent 018051 1 5987435 5987435 5987435 5987435.0000
-Graves 018052 1 28357832 28357832 28357832 28357832.0000
-neonatal 018053 1 39654943 39654943 39654943 39654943.0000
-sorters 018061 1 5987435 5987435 5987435 5987435.0000
-epistle 018062 1 28357832 28357832 28357832 28357832.0000
-Conley 018101 1 5987435 5987435 5987435 5987435.0000
-lectured 018102 1 28357832 28357832 28357832 28357832.0000
-Abraham 018103 1 39654943 39654943 39654943 39654943.0000
-cage 018201 1 5987435 5987435 5987435 5987435.0000
-hushes 018202 1 28357832 28357832 28357832 28357832.0000
-Simla 018402 1 28357832 28357832 28357832 28357832.0000
-reporters 018403 1 39654943 39654943 39654943 39654943.0000
-coexist 018601 1 5987435 5987435 5987435 5987435.0000
-Beebe 018602 1 28357832 28357832 28357832 28357832.0000
-Taoism 018603 1 39654943 39654943 39654943 39654943.0000
-Connally 018801 1 5987435 5987435 5987435 5987435.0000
-fetched 018802 1 28357832 28357832 28357832 28357832.0000
-checkpoints 018803 1 39654943 39654943 39654943 39654943.0000
-gritty 018811 1 5987435 5987435 5987435 5987435.0000
-firearm 018812 1 28357832 28357832 28357832 28357832.0000
-minima 019101 1 5987435 5987435 5987435 5987435.0000
-Selfridge 019102 1 28357832 28357832 28357832 28357832.0000
-disable 019103 1 39654943 39654943 39654943 39654943.0000
-witchcraft 019201 1 5987435 5987435 5987435 5987435.0000
-betroth 030501 1 5987435 5987435 5987435 5987435.0000
-Manhattanize 030502 1 28357832 28357832 28357832 28357832.0000
-imprint 030503 1 39654943 39654943 39654943 39654943.0000
-swelling 031901 1 5987435 5987435 5987435 5987435.0000
-interrelationships 036001 1 5987435 5987435 5987435 5987435.0000
-riser 036002 1 28357832 28357832 28357832 28357832.0000
-bee 038001 1 5987435 5987435 5987435 5987435.0000
-kanji 038002 1 28357832 28357832 28357832 28357832.0000
-dental 038003 1 39654943 39654943 39654943 39654943.0000
-railway 038011 1 5987435 5987435 5987435 5987435.0000
-validate 038012 1 28357832 28357832 28357832 28357832.0000
-normalizes 038013 1 39654943 39654943 39654943 39654943.0000
-Kline 038101 1 5987435 5987435 5987435 5987435.0000
-Anatole 038102 1 28357832 28357832 28357832 28357832.0000
-partridges 038103 1 39654943 39654943 39654943 39654943.0000
-recruited 038201 1 5987435 5987435 5987435 5987435.0000
-dimensions 038202 1 28357832 28357832 28357832 28357832.0000
-Chicana 038203 1 39654943 39654943 39654943 39654943.0000
-select t3.companynr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 group by companynr,fld3;
-companynr fld3 sum(price)
-512 boat 786542
-512 capably 786542
-512 cupboard 786542
-512 decliner 786542
-512 descendants 786542
-512 dopers 786542
-512 erases 786542
-512 Micronesia 786542
-512 Miles 786542
-512 skies 786542
-select t2.companynr,count(*),min(fld3),max(fld3),sum(price),avg(price) from t2,t3 where t3.companynr >= 30 and t3.companynr <= 58 and t3.t2nr = t2.fld1 and 1+1=2 group by t2.companynr;
-companynr count(*) min(fld3) max(fld3) sum(price) avg(price)
-00 1 Omaha Omaha 5987435 5987435.0000
-36 1 dubbed dubbed 28357832 28357832.0000
-37 83 Abraham Wotan 1908978016 22999735.1325
-50 2 scribbled tapestry 68012775 34006387.5000
-select t3.companynr+0,t3.t2nr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 37 group by 1,t3.t2nr,fld3,fld3,fld3,fld3,fld3 order by fld1;
-t3.companynr+0 t2nr fld3 sum(price)
-37 1 Omaha 5987435
-37 11401 breaking 5987435
-37 11402 Romans 28357832
-37 11403 intercepted 39654943
-37 11501 bewilderingly 5987435
-37 11701 astound 5987435
-37 11702 admonishing 28357832
-37 11703 sumac 39654943
-37 12001 flanking 5987435
-37 12003 combed 39654943
-37 12301 Eulerian 5987435
-37 12302 dubbed 28357832
-37 12303 Kane 39654943
-37 12501 annihilates 5987435
-37 12602 Wotan 28357832
-37 12603 snatching 39654943
-37 12701 grazing 5987435
-37 12702 Baird 28357832
-37 12703 celery 39654943
-37 13601 handgun 5987435
-37 13602 foldout 28357832
-37 13603 mystic 39654943
-37 13801 intelligibility 5987435
-37 13802 Augustine 28357832
-37 13803 teethe 39654943
-37 13901 scholastics 5987435
-37 16001 audiology 5987435
-37 16201 wallet 5987435
-37 16202 parters 28357832
-37 16301 eschew 5987435
-37 16302 quitter 28357832
-37 16303 neat 39654943
-37 18001 jarring 5987435
-37 18002 tinily 28357832
-37 18003 balled 39654943
-37 18012 impulsive 28357832
-37 18013 starlet 39654943
-37 18021 lawgiver 5987435
-37 18022 stated 28357832
-37 18023 readable 39654943
-37 18032 testicle 28357832
-37 18033 Parsifal 39654943
-37 18041 Punjab 5987435
-37 18042 Merritt 28357832
-37 18043 Quixotism 39654943
-37 18051 sureties 5987435
-37 18052 puddings 28357832
-37 18053 tapestry 39654943
-37 18061 trimmings 5987435
-37 18062 humility 28357832
-37 18101 tragedies 5987435
-37 18102 skulking 28357832
-37 18103 flint 39654943
-37 18201 relaxing 5987435
-37 18202 offload 28357832
-37 18402 suites 28357832
-37 18403 lists 39654943
-37 18601 vacuuming 5987435
-37 18602 dentally 28357832
-37 18603 humanness 39654943
-37 18801 inch 5987435
-37 18802 Weissmuller 28357832
-37 18803 irresponsibly 39654943
-37 18811 repetitions 5987435
-37 18812 Antares 28357832
-37 19101 ventilate 5987435
-37 19102 pityingly 28357832
-37 19103 interdependent 39654943
-37 19201 Graves 5987435
-37 30501 neonatal 5987435
-37 30502 scribbled 28357832
-37 30503 chafe 39654943
-37 31901 realtor 5987435
-37 36001 elite 5987435
-37 36002 funereal 28357832
-37 38001 Conley 5987435
-37 38002 lectured 28357832
-37 38003 Abraham 39654943
-37 38011 groupings 5987435
-37 38012 dissociate 28357832
-37 38013 coexist 39654943
-37 38101 rusting 5987435
-37 38102 galling 28357832
-37 38103 obliterates 39654943
-37 38201 resumes 5987435
-37 38202 analyzable 28357832
-37 38203 terminator 39654943
-select sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1= t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008;
-sum(price)
-234298
-select t2.fld1,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1 = t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008 or t3.t2nr = t2.fld1 and t2.fld1 = 38008 group by t2.fld1;
-fld1 sum(price)
-038008 234298
-explain select fld3 from t2 where 1>2 or 2>3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select fld3 from t2 where fld1=fld1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199
-select companynr,fld1 from t2 HAVING fld1=250501 or fld1=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,fld1 from t2 WHERE fld1>=250501 HAVING fld1<=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,count(*) as count,sum(fld1) as sum from t2 group by companynr having count > 40 and sum/count >= 120000;
-companynr count sum
-00 82 10355753
-29 95 14473298
-34 70 17788966
-37 588 83602098
-41 52 12816335
-select companynr from t2 group by companynr having count(*) > 40 and sum(fld1)/count(*) >= 120000 ;
-companynr
-00
-29
-34
-37
-41
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by companyname having t2.companynr >= 40;
-companynr companyname count(*)
-68 company 10 12
-50 company 11 11
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-select count(*) from t2;
-count(*)
-1199
-select count(*) from t2 where fld1 < 098024;
-count(*)
-387
-select min(fld1) from t2 where fld1>= 098024;
-min(fld1)
-98024
-select max(fld1) from t2 where fld1>= 098024;
-max(fld1)
-1232609
-select count(*) from t3 where price2=76234234;
-count(*)
-4181
-select count(*) from t3 where companynr=512 and price2=76234234;
-count(*)
-4181
-explain select min(fld1),max(fld1),count(*) from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(fld1),max(fld1),count(*) from t2;
-min(fld1) max(fld1) count(*)
-0 1232609 1199
-select min(t2nr),max(t2nr) from t3 where t2nr=2115 and price2=823742;
-min(t2nr) max(t2nr)
-2115 2115
-select count(*),min(t2nr),max(t2nr) from t3 where name='spates' and companynr=78;
-count(*) min(t2nr) max(t2nr)
-4181 4 41804
-select t2nr,count(*) from t3 where name='gems' group by t2nr limit 20;
-t2nr count(*)
-9 1
-19 1
-29 1
-39 1
-49 1
-59 1
-69 1
-79 1
-89 1
-99 1
-109 1
-119 1
-129 1
-139 1
-149 1
-159 1
-169 1
-179 1
-189 1
-199 1
-select max(t2nr) from t3 where price=983543950;
-max(t2nr)
-41807
-select t1.period from t3 = t1 limit 1;
-period
-1001
-select t1.period from t1 as t1 limit 1;
-period
-9410
-select t1.period as "Nuvarande period" from t1 as t1 limit 1;
-Nuvarande period
-9410
-select period as ok_period from t1 limit 1;
-ok_period
-9410
-select period as ok_period from t1 group by ok_period limit 1;
-ok_period
-9410
-select 1+1 as summa from t1 group by summa limit 1;
-summa
-2
-select period as "Nuvarande period" from t1 group by "Nuvarande period" limit 1;
-Nuvarande period
-9410
-show tables;
-Tables_in_test
-t1
-t2
-t3
-t4
-show tables from test like "s%";
-Tables_in_test (s%)
-show tables from test like "t?";
-Tables_in_test (t?)
-show full columns from t2;
-Field Type Collation Null Key Default Extra Privileges Comment
-auto int(11) NULL NO PRI NULL auto_increment #
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-companynr tinyint(2) unsigned zerofill NULL NO 00 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 'f%';
-Field Type Collation Null Key Default Extra Privileges Comment
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 's%';
-Field Type Collation Null Key Default Extra Privileges Comment
-show keys from t2;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t2 0 PRIMARY 1 auto A 1199 NULL NULL BTREE
-t2 0 fld1 1 fld1 A 1199 NULL NULL BTREE
-t2 1 fld3 1 fld3 A NULL NULL NULL BTREE
-drop table t4, t3, t2, t1;
-CREATE TABLE t1 (
-cont_nr int(11) NOT NULL auto_increment,
-ver_nr int(11) NOT NULL default '0',
-aufnr int(11) NOT NULL default '0',
-username varchar(50) NOT NULL default '',
-hdl_nr int(11) NOT NULL default '0',
-eintrag date NOT NULL default '0000-00-00',
-st_klasse varchar(40) NOT NULL default '',
-st_wert varchar(40) NOT NULL default '',
-st_zusatz varchar(40) NOT NULL default '',
-st_bemerkung varchar(255) NOT NULL default '',
-kunden_art varchar(40) NOT NULL default '',
-mcbs_knr int(11) default NULL,
-mcbs_aufnr int(11) NOT NULL default '0',
-schufa_status char(1) default '?',
-bemerkung text,
-wirknetz text,
-wf_igz int(11) NOT NULL default '0',
-tarifcode varchar(80) default NULL,
-recycle char(1) default NULL,
-sim varchar(30) default NULL,
-mcbs_tpl varchar(30) default NULL,
-emp_nr int(11) NOT NULL default '0',
-laufzeit int(11) default NULL,
-hdl_name varchar(30) default NULL,
-prov_hdl_nr int(11) NOT NULL default '0',
-auto_wirknetz varchar(50) default NULL,
-auto_billing varchar(50) default NULL,
-touch timestamp NOT NULL,
-kategorie varchar(50) default NULL,
-kundentyp varchar(20) NOT NULL default '',
-sammel_rech_msisdn varchar(30) NOT NULL default '',
-p_nr varchar(9) NOT NULL default '',
-suffix char(3) NOT NULL default '',
-PRIMARY KEY (cont_nr),
-KEY idx_aufnr(aufnr),
-KEY idx_hdl_nr(hdl_nr),
-KEY idx_st_klasse(st_klasse),
-KEY ver_nr(ver_nr),
-KEY eintrag_idx(eintrag),
-KEY emp_nr_idx(emp_nr),
-KEY wf_igz(wf_igz),
-KEY touch(touch),
-KEY hdl_tag(eintrag,hdl_nr),
-KEY prov_hdl_nr(prov_hdl_nr),
-KEY mcbs_aufnr(mcbs_aufnr),
-KEY kundentyp(kundentyp),
-KEY p_nr(p_nr,suffix)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3359356,405,3359356,'Mustermann Musterfrau',52500,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1485525,2122316,'+','','N',1909160,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',3,24,'MobilCom Shop Koeln',52500,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359357,468,3359357,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1503580,2139699,'+','','P',1909171,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359358,407,3359358,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1501358,2137473,'N','','N',1909159,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359359,468,3359359,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1507831,2143894,'+','','P',1909162,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359360,0,0,'Mustermann Musterfrau',29674907,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1900169997,2414578,'+',NULL,'N',1909148,'',NULL,NULL,'RV99066_2',20,NULL,'POS',29674907,NULL,NULL,20010202105916,'Mobilfunk','','','97317481','007');
-INSERT INTO t1 VALUES (3359361,406,3359361,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag storniert','','(7001-84):Storno, Kd. möchte nicht mehr','privat',NULL,0,'+','','P',1909150,'MobilComSuper92000D1(Akquise)',NULL,NULL,'MS9ND1',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359362,406,3359362,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1509984,2145874,'+','','P',1909154,'MobilComSuper92000D1(Akquise)',NULL,NULL,'MS9ND1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-SELECT ELT(FIELD(kundentyp,'PP','PPA','PG','PGA','FK','FKA','FP','FPA','K','KA','V','VA',''), 'Privat (Private Nutzung)','Privat (Private Nutzung) Sitz im Ausland','Privat (geschaeftliche Nutzung)','Privat (geschaeftliche Nutzung) Sitz im Ausland','Firma (Kapitalgesellschaft)','Firma (Kapitalgesellschaft) Sitz im Ausland','Firma (Personengesellschaft)','Firma (Personengesellschaft) Sitz im Ausland','oeff. rechtl. Koerperschaft','oeff. rechtl. Koerperschaft Sitz im Ausland','Eingetragener Verein','Eingetragener Verein Sitz im Ausland','Typ unbekannt') AS Kundentyp ,kategorie FROM t1 WHERE hdl_nr < 2000000 AND kategorie IN ('Prepaid','Mobilfunk') AND st_klasse = 'Workflow' GROUP BY kundentyp ORDER BY kategorie;
-Kundentyp kategorie
-Privat (Private Nutzung) Mobilfunk
-Warnings:
-Warning 1052 Column 'kundentyp' in group statement is ambiguous
-drop table t1;
-connection default;
-disconnect shm_con;
-mysqld is alive
-SET @max_allowed_packet= @@global.max_allowed_packet;
-SET @net_buffer_length= @@global.net_buffer_length;
-SET GLOBAL max_allowed_packet= 1024;
-Warnings:
-Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
-SET GLOBAL net_buffer_length= 1024;
-ERROR 1153 (08S01) at line 1: Got a packet bigger than 'max_allowed_packet' bytes
-SET GLOBAL max_allowed_packet= @max_allowed_packet;
-SET GLOBAL net_buffer_length= @net_buffer_length;
-End of 5.0 tests.
diff --git a/mysql-test/r/show.result b/mysql-test/r/show.result
deleted file mode 100644
index 3dd7af5de05..00000000000
--- a/mysql-test/r/show.result
+++ /dev/null
@@ -1,12 +0,0 @@
-show statistics;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'statistics' at line 1
-show spatial_ref_sys
---error ER_PARSE_ERROR
-show system_variables;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'spatial_ref_sys
---error ER_PARSE_ERROR
-show system_variables' at line 2
-show geometry_columns;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'geometry_columns' at line 1
-show nonexistent;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'nonexistent' at line 1
diff --git a/mysql-test/r/show_bad_definer-5553.result b/mysql-test/r/show_bad_definer-5553.result
deleted file mode 100644
index 173c88bd196..00000000000
--- a/mysql-test/r/show_bad_definer-5553.result
+++ /dev/null
@@ -1,13 +0,0 @@
-create database mysqltest1;
-use mysqltest1;
-create table t1(id int primary key);
-create definer=unknownuser@'%' sql security definer view v1 as select t1.id from t1 group by t1.id;
-Warnings:
-Note 1449 The user specified as a definer ('unknownuser'@'%') does not exist
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 0 0 0 # 1024 0 NULL # # NULL latin1_swedish_ci NULL # N
-v1 NULL NULL NULL NULL NULL NULL # NULL NULL NULL # # NULL NULL NULL NULL VIEW # NULL
-Warnings:
-Note 1449 The user specified as a definer ('unknownuser'@'%') does not exist
-drop database mysqltest1;
diff --git a/mysql-test/r/show_check.result b/mysql-test/r/show_check.result
deleted file mode 100644
index 5083f1e615b..00000000000
--- a/mysql-test/r/show_check.result
+++ /dev/null
@@ -1,1577 +0,0 @@
-drop table if exists t1,t2;
-drop table if exists t1aa,t2aa;
-drop database if exists mysqltest;
-drop database if exists mysqltest1;
-delete from mysql.user where user='mysqltest_1' || user='mysqltest_2' || user='mysqltest_3';
-delete from mysql.db where user='mysqltest_1' || user='mysqltest_2' || user='mysqltest_3';
-flush privileges;
-create table t1 (a int not null primary key, b int not null,c int not null, key(b,c));
-insert into t1 values (1,2,2),(2,2,3),(3,2,4),(4,2,4);
--- Here we enable metadata just to check that the collation of the
--- resultset is non-binary for string type. This should be changed
--- after Bug#29394 is implemented.
-check table t1 fast;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def Table 253 128 7 Y 0 39 8
-def Op 253 10 5 Y 0 39 8
-def Msg_type 253 10 6 Y 0 39 8
-def Msg_text 250 393216 27 Y 0 39 8
-Table Op Msg_type Msg_text
-test.t1 check status Table is already up to date
-check table t1 fast;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def Table 253 128 7 Y 0 39 8
-def Op 253 10 5 Y 0 39 8
-def Msg_type 253 10 6 Y 0 39 8
-def Msg_text 250 393216 27 Y 0 39 8
-Table Op Msg_type Msg_text
-test.t1 check status Table is already up to date
-check table t1 changed;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def Table 253 128 7 Y 0 39 8
-def Op 253 10 5 Y 0 39 8
-def Msg_type 253 10 6 Y 0 39 8
-def Msg_text 250 393216 2 Y 0 39 8
-Table Op Msg_type Msg_text
-test.t1 check status OK
-insert into t1 values (5,5,5);
-check table t1 changed;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def Table 253 128 7 Y 0 39 8
-def Op 253 10 5 Y 0 39 8
-def Msg_type 253 10 6 Y 0 39 8
-def Msg_text 250 393216 2 Y 0 39 8
-Table Op Msg_type Msg_text
-test.t1 check status OK
-check table t1 medium;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def Table 253 128 7 Y 0 39 8
-def Op 253 10 5 Y 0 39 8
-def Msg_type 253 10 6 Y 0 39 8
-def Msg_text 250 393216 2 Y 0 39 8
-Table Op Msg_type Msg_text
-test.t1 check status OK
-check table t1 extended;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def Table 253 128 7 Y 0 39 8
-def Op 253 10 5 Y 0 39 8
-def Msg_type 253 10 6 Y 0 39 8
-def Msg_text 250 393216 2 Y 0 39 8
-Table Op Msg_type Msg_text
-test.t1 check status OK
-show index from t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema STATISTICS STATISTICS TABLE_NAME Table 253 64 2 N 1 0 8
-def information_schema STATISTICS STATISTICS NON_UNIQUE Non_unique 8 1 1 N 32769 0 63
-def information_schema STATISTICS STATISTICS INDEX_NAME Key_name 253 64 7 N 1 0 8
-def information_schema STATISTICS STATISTICS SEQ_IN_INDEX Seq_in_index 8 2 1 N 32769 0 63
-def information_schema STATISTICS STATISTICS COLUMN_NAME Column_name 253 64 1 N 1 0 8
-def information_schema STATISTICS STATISTICS COLLATION Collation 253 1 1 Y 0 0 8
-def information_schema STATISTICS STATISTICS CARDINALITY Cardinality 8 21 1 Y 32768 0 63
-def information_schema STATISTICS STATISTICS SUB_PART Sub_part 8 3 0 Y 32768 0 63
-def information_schema STATISTICS STATISTICS PACKED Packed 253 10 0 Y 0 0 8
-def information_schema STATISTICS STATISTICS NULLABLE Null 253 3 0 N 1 0 8
-def information_schema STATISTICS STATISTICS INDEX_TYPE Index_type 253 16 5 N 1 0 8
-def information_schema STATISTICS STATISTICS COMMENT Comment 253 16 0 Y 0 0 8
-def information_schema STATISTICS STATISTICS INDEX_COMMENT Index_comment 253 1024 0 N 1 0 8
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 a A 5 NULL NULL BTREE
-t1 1 b 1 b A 1 NULL NULL BTREE
-t1 1 b 2 c A 5 NULL NULL BTREE
-insert into t1 values (5,5,5);
-ERROR 23000: Duplicate entry '5' for key 'PRIMARY'
--- Here we enable metadata just to check that the collation of the
--- resultset is non-binary for string type. This should be changed
--- after Bug#29394 is implemented.
-optimize table t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def Table 253 128 7 Y 0 39 8
-def Op 253 10 8 Y 0 39 8
-def Msg_type 253 10 6 Y 0 39 8
-def Msg_text 250 393216 2 Y 0 39 8
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status Table is already up to date
-drop table t1;
--- Here we enable metadata just to check that the collation of the
--- resultset is non-binary for string type. This should be changed
--- after Bug#29394 is implemented.
-show variables like "wait_timeout%";
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema SESSION_VARIABLES SESSION_VARIABLES VARIABLE_NAME Variable_name 253 64 12 N 1 0 8
-def information_schema SESSION_VARIABLES SESSION_VARIABLES VARIABLE_VALUE Value 253 2048 5 N 1 0 8
-Variable_name Value
-wait_timeout 28800
-show variables like "WAIT_timeout%";
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema SESSION_VARIABLES SESSION_VARIABLES VARIABLE_NAME Variable_name 253 64 12 N 1 0 8
-def information_schema SESSION_VARIABLES SESSION_VARIABLES VARIABLE_VALUE Value 253 2048 5 N 1 0 8
-Variable_name Value
-wait_timeout 28800
-show variables like "this_doesn't_exists%";
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema SESSION_VARIABLES SESSION_VARIABLES VARIABLE_NAME Variable_name 253 64 0 N 1 0 8
-def information_schema SESSION_VARIABLES SESSION_VARIABLES VARIABLE_VALUE Value 253 2048 0 N 1 0 8
-Variable_name Value
-show table status from test like "this_doesn't_exists%";
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema TABLES TABLES TABLE_NAME Name 253 64 0 N 1 0 8
-def information_schema TABLES TABLES ENGINE Engine 253 64 0 Y 0 0 8
-def information_schema TABLES TABLES VERSION Version 8 21 0 Y 32800 0 63
-def information_schema TABLES TABLES ROW_FORMAT Row_format 253 10 0 Y 0 0 8
-def information_schema TABLES TABLES TABLE_ROWS Rows 8 21 0 Y 32800 0 63
-def information_schema TABLES TABLES AVG_ROW_LENGTH Avg_row_length 8 21 0 Y 32800 0 63
-def information_schema TABLES TABLES DATA_LENGTH Data_length 8 21 0 Y 32800 0 63
-def information_schema TABLES TABLES MAX_DATA_LENGTH Max_data_length 8 21 0 Y 32800 0 63
-def information_schema TABLES TABLES INDEX_LENGTH Index_length 8 21 0 Y 32800 0 63
-def information_schema TABLES TABLES DATA_FREE Data_free 8 21 0 Y 32800 0 63
-def information_schema TABLES TABLES AUTO_INCREMENT Auto_increment 8 21 0 Y 32800 0 63
-def information_schema TABLES TABLES CREATE_TIME Create_time 12 19 0 Y 128 0 63
-def information_schema TABLES TABLES UPDATE_TIME Update_time 12 19 0 Y 128 0 63
-def information_schema TABLES TABLES CHECK_TIME Check_time 12 19 0 Y 128 0 63
-def information_schema TABLES TABLES TABLE_COLLATION Collation 253 32 0 Y 0 0 8
-def information_schema TABLES TABLES CHECKSUM Checksum 8 21 0 Y 32800 0 63
-def information_schema TABLES TABLES CREATE_OPTIONS Create_options 253 2048 0 Y 0 0 8
-def information_schema TABLES TABLES TABLE_COMMENT Comment 253 2048 0 N 1 0 8
-def information_schema TABLES TABLES MAX_INDEX_LENGTH Max_index_length 8 21 0 Y 32800 0 63
-def information_schema TABLES TABLES TEMPORARY Temporary 253 1 0 Y 0 0 8
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-show databases;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema SCHEMATA SCHEMATA SCHEMA_NAME Database 253 64 18 N 1 0 8
-Database
-information_schema
-mtr
-mysql
-performance_schema
-test
-show databases like "test%";
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema SCHEMATA SCHEMATA SCHEMA_NAME Database (test%) 253 64 4 N 1 0 8
-Database (test%)
-test
-create table t1 (f1 int not null, f2 int not null, f3 int not null, f4 int not null, primary key(f1,f2,f3,f4));
-insert into t1 values (1,1,1,0),(1,1,2,0),(1,1,3,0),(1,2,1,0),(1,2,2,0),(1,2,3,0),(1,3,1,0),(1,3,2,0),(1,3,3,0),(1,1,1,1),(1,1,2,1),(1,1,3,1),(1,2,1,1),(1,2,2,1),(1,2,3,1),(1,3,1,1),(1,3,2,1),(1,3,3,1);
--- Here we enable metadata just to check that the collation of the
--- resultset is non-binary for string type. This should be changed
--- after Bug#29394 is implemented.
-analyze table t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def Table 253 128 7 Y 0 39 8
-def Op 253 10 7 Y 0 39 8
-def Msg_type 253 10 6 Y 0 39 8
-def Msg_text 250 393216 2 Y 0 39 8
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 f1 A 1 NULL NULL BTREE
-t1 0 PRIMARY 2 f2 A 3 NULL NULL BTREE
-t1 0 PRIMARY 3 f3 A 9 NULL NULL BTREE
-t1 0 PRIMARY 4 f4 A 18 NULL NULL BTREE
--- Here we enable metadata just to check that the collation of the
--- resultset is non-binary for string type. This should be changed
--- after Bug#29394 is implemented.
-repair table t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def Table 253 128 7 Y 0 39 8
-def Op 253 10 6 Y 0 39 8
-def Msg_type 253 10 6 Y 0 39 8
-def Msg_text 250 393216 2 Y 0 39 8
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-show index from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 f1 A 1 NULL NULL BTREE
-t1 0 PRIMARY 2 f2 A 3 NULL NULL BTREE
-t1 0 PRIMARY 3 f3 A 9 NULL NULL BTREE
-t1 0 PRIMARY 4 f4 A 18 NULL NULL BTREE
-drop table t1;
-create temporary table t1 (a int not null);
-show create table t1;
-Table Create Table
-t1 CREATE TEMPORARY TABLE `t1` (
- `a` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 rename t2;
-show create table t2;
-Table Create Table
-t2 CREATE TEMPORARY TABLE `t2` (
- `a` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t2;
-create table t1 (
-test_set set( 'val1', 'val2', 'val3' ) not null default '',
-name char(20) default 'O''Brien' comment 'O''Brien as default',
-c int not null comment 'int column',
-`c-b` int comment 'name with a minus',
-`space 2` int comment 'name with a space'
- ) comment = 'it\'s a table' ;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `test_set` set('val1','val2','val3') NOT NULL DEFAULT '',
- `name` char(20) DEFAULT 'O''Brien' COMMENT 'O''Brien as default',
- `c` int(11) NOT NULL COMMENT 'int column',
- `c-b` int(11) DEFAULT NULL COMMENT 'name with a minus',
- `space 2` int(11) DEFAULT NULL COMMENT 'name with a space'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='it''s a table'
-set sql_quote_show_create=0;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE t1 (
- test_set set('val1','val2','val3') NOT NULL DEFAULT '',
- `name` char(20) DEFAULT 'O''Brien' COMMENT 'O''Brien as default',
- c int(11) NOT NULL COMMENT 'int column',
- `c-b` int(11) DEFAULT NULL COMMENT 'name with a minus',
- `space 2` int(11) DEFAULT NULL COMMENT 'name with a space'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='it''s a table'
-set sql_quote_show_create=1;
-show full columns from t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-test_set set('val1','val2','val3') latin1_swedish_ci NO select,insert,update,references
-name char(20) latin1_swedish_ci YES O'Brien select,insert,update,references O'Brien as default
-c int(11) NULL NO NULL select,insert,update,references int column
-c-b int(11) NULL YES NULL select,insert,update,references name with a minus
-space 2 int(11) NULL YES NULL select,insert,update,references name with a space
-drop table t1;
-create table t1 (a int not null, unique aa (a));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- UNIQUE KEY `aa` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int not null, primary key (a));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-flush tables;
-show open tables;
-Database Table In_use Name_locked
-mysql general_log 0 0
-create table t1(n int);
-insert into t1 values (1);
-show open tables;
-Database Table In_use Name_locked
-mysql general_log 0 0
-test t1 0 0
-drop table t1;
-create table t1 (a int not null, b VARCHAR(10), INDEX (b) ) AVG_ROW_LENGTH=10 CHECKSUM=1 COMMENT="test" ENGINE=MYISAM MIN_ROWS=10 MAX_ROWS=100 PACK_KEYS=1 DELAY_KEY_WRITE=1 ROW_FORMAT=fixed;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(10) DEFAULT NULL,
- KEY `b` (`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=10 MAX_ROWS=100 AVG_ROW_LENGTH=10 PACK_KEYS=1 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=FIXED COMMENT='test'
-alter table t1 MAX_ROWS=200 ROW_FORMAT=dynamic PACK_KEYS=0;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(10) DEFAULT NULL,
- KEY `b` (`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=10 MAX_ROWS=200 AVG_ROW_LENGTH=10 PACK_KEYS=0 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC COMMENT='test'
-ALTER TABLE t1 AVG_ROW_LENGTH=0 CHECKSUM=0 COMMENT="" MIN_ROWS=0 MAX_ROWS=0 PACK_KEYS=DEFAULT DELAY_KEY_WRITE=0 ROW_FORMAT=default;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(10) DEFAULT NULL,
- KEY `b` (`b`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a decimal(9,2), b decimal (9,0), e double(9,2), f double(5,0), h float(3,2), i float(3,0));
-show columns from t1;
-Field Type Null Key Default Extra
-a decimal(9,2) YES NULL
-b decimal(9,0) YES NULL
-e double(9,2) YES NULL
-f double(5,0) YES NULL
-h float(3,2) YES NULL
-i float(3,0) YES NULL
-show full columns from t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-a decimal(9,2) NULL YES NULL select,insert,update,references
-b decimal(9,0) NULL YES NULL select,insert,update,references
-e double(9,2) NULL YES NULL select,insert,update,references
-f double(5,0) NULL YES NULL select,insert,update,references
-h float(3,2) NULL YES NULL select,insert,update,references
-i float(3,0) NULL YES NULL select,insert,update,references
-drop table t1;
-create table t1 (
-type_bool bool not null default 0,
-type_tiny tinyint not null auto_increment primary key,
-type_short smallint(3),
-type_mediumint mediumint,
-type_bigint bigint,
-type_decimal decimal(5,2),
-type_numeric numeric(5,2),
-empty_char char(0),
-type_char char(2),
-type_varchar varchar(10),
-type_timestamp timestamp not null default current_timestamp on update current_timestamp,
-type_date date not null default '0000-00-00',
-type_time time not null default '00:00:00',
-type_datetime datetime not null default '0000-00-00 00:00:00',
-type_year year,
-type_enum enum ('red', 'green', 'blue'),
-type_set enum ('red', 'green', 'blue'),
-type_tinyblob tinyblob,
-type_blob blob,
-type_medium_blob mediumblob,
-type_long_blob longblob,
-index(type_short)
-) AVG_ROW_LENGTH=10 CHECKSUM=1 COMMENT="test" ENGINE=MYISAM MIN_ROWS=10 MAX_ROWS=100 PACK_KEYS=1 DELAY_KEY_WRITE=1 ROW_FORMAT=fixed CHARSET=latin1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `type_bool` tinyint(1) NOT NULL DEFAULT 0,
- `type_tiny` tinyint(4) NOT NULL AUTO_INCREMENT,
- `type_short` smallint(3) DEFAULT NULL,
- `type_mediumint` mediumint(9) DEFAULT NULL,
- `type_bigint` bigint(20) DEFAULT NULL,
- `type_decimal` decimal(5,2) DEFAULT NULL,
- `type_numeric` decimal(5,2) DEFAULT NULL,
- `empty_char` char(0) DEFAULT NULL,
- `type_char` char(2) DEFAULT NULL,
- `type_varchar` varchar(10) DEFAULT NULL,
- `type_timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `type_date` date NOT NULL DEFAULT '0000-00-00',
- `type_time` time NOT NULL DEFAULT '00:00:00',
- `type_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `type_year` year(4) DEFAULT NULL,
- `type_enum` enum('red','green','blue') DEFAULT NULL,
- `type_set` enum('red','green','blue') DEFAULT NULL,
- `type_tinyblob` tinyblob DEFAULT NULL,
- `type_blob` blob DEFAULT NULL,
- `type_medium_blob` mediumblob DEFAULT NULL,
- `type_long_blob` longblob DEFAULT NULL,
- PRIMARY KEY (`type_tiny`),
- KEY `type_short` (`type_short`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=10 MAX_ROWS=100 AVG_ROW_LENGTH=10 PACK_KEYS=1 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=FIXED COMMENT='test'
-insert into t1 (type_timestamp) values ("2003-02-07 10:00:01");
-select * from t1;
-type_bool type_tiny type_short type_mediumint type_bigint type_decimal type_numeric empty_char type_char type_varchar type_timestamp type_date type_time type_datetime type_year type_enum type_set type_tinyblob type_blob type_medium_blob type_long_blob
-0 1 NULL NULL NULL NULL NULL NULL NULL NULL 2003-02-07 10:00:01 0000-00-00 00:00:00 0000-00-00 00:00:00 NULL NULL NULL NULL NULL NULL NULL
-drop table t1;
-create table t1 (a int not null);
-create table t2 select max(a) from t1;
-show columns from t2;
-Field Type Null Key Default Extra
-max(a) int(11) YES NULL
-drop table t1,t2;
-create table t1 (c decimal, d double, f float, r real);
-show columns from t1;
-Field Type Null Key Default Extra
-c decimal(10,0) YES NULL
-d double YES NULL
-f float YES NULL
-r double YES NULL
-drop table t1;
-create table t1 (c decimal(3,3), d double(3,3), f float(3,3));
-show columns from t1;
-Field Type Null Key Default Extra
-c decimal(3,3) YES NULL
-d double(3,3) YES NULL
-f float(3,3) YES NULL
-drop table t1;
-SET @old_sql_mode= @@sql_mode, sql_mode= '';
-SET @old_sql_quote_show_create= @@sql_quote_show_create, sql_quote_show_create= OFF;
-CREATE TABLE ```ab``cd``` (i INT);
-SHOW CREATE TABLE ```ab``cd```;
-Table Create Table
-`ab`cd` CREATE TABLE ```ab``cd``` (
- i int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE ```ab``cd```;
-CREATE TABLE ```ab````cd``` (i INT);
-SHOW CREATE TABLE ```ab````cd```;
-Table Create Table
-`ab``cd` CREATE TABLE ```ab````cd``` (
- i int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE ```ab````cd```;
-CREATE TABLE ```a` (i INT);
-SHOW CREATE TABLE ```a`;
-Table Create Table
-`a CREATE TABLE ```a` (
- i int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE ```a`;
-CREATE TABLE `a.1` (i INT);
-SHOW CREATE TABLE `a.1`;
-Table Create Table
-a.1 CREATE TABLE `a.1` (
- i int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE `a.1`;
-SET sql_mode= 'ANSI_QUOTES';
-CREATE TABLE """a" (i INT);
-SHOW CREATE TABLE """a";
-Table Create Table
-"a CREATE TABLE """a" (
- i int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE """a";
-SET sql_mode= '';
-SET sql_quote_show_create= OFF;
-CREATE TABLE t1 (i INT);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE t1 (
- i int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE `table` (i INT);
-SHOW CREATE TABLE `table`;
-Table Create Table
-table CREATE TABLE `table` (
- i int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE `table`;
-SET sql_quote_show_create= @old_sql_quote_show_create;
-SET sql_mode= @old_sql_mode;
-select @@max_heap_table_size;
-@@max_heap_table_size
-1048576
-CREATE TABLE t1 (
-a int(11) default NULL,
-KEY a USING BTREE (a)
-) ENGINE=HEAP;
-CREATE TABLE t2 (
-b int(11) default NULL,
-index(b)
-) ENGINE=HEAP;
-CREATE TABLE t3 (
-a int(11) default NULL,
-b int(11) default NULL,
-KEY a USING BTREE (a),
-index(b)
-) ENGINE=HEAP;
-insert into t1 values (1),(2);
-insert into t2 values (1),(2);
-insert into t3 values (1,1),(2,2);
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MEMORY 10 Fixed 2 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-t2 MEMORY 10 Fixed 2 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-t3 MEMORY 10 Fixed 2 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-insert into t1 values (3),(4);
-insert into t2 values (3),(4);
-insert into t3 values (3,3),(4,4);
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MEMORY 10 Fixed 4 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-t2 MEMORY 10 Fixed 4 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-t3 MEMORY 10 Fixed 4 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-insert into t1 values (5);
-insert into t2 values (5);
-insert into t3 values (5,5);
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MEMORY 10 Fixed 5 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-t2 MEMORY 10 Fixed 5 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-t3 MEMORY 10 Fixed 5 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-delete from t1 where a=3;
-delete from t2 where b=3;
-delete from t3 where a=3;
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MEMORY 10 Fixed 4 # # # # # NULL # NULL NULL latin1_swedish_ci NULL 0 N
-t2 MEMORY 10 Fixed 4 # # # # # NULL # NULL NULL latin1_swedish_ci NULL 0 N
-t3 MEMORY 10 Fixed 4 # # # # # NULL # NULL NULL latin1_swedish_ci NULL 0 N
-truncate table t1;
-truncate table t2;
-truncate table t3;
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MEMORY 10 Fixed 0 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-t2 MEMORY 10 Fixed 0 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-t3 MEMORY 10 Fixed 0 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-insert into t1 values (5);
-insert into t2 values (5);
-insert into t3 values (5,5);
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MEMORY 10 Fixed 1 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-t2 MEMORY 10 Fixed 1 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-t3 MEMORY 10 Fixed 1 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-delete from t1 where a=5;
-delete from t2 where b=5;
-delete from t3 where a=5;
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MEMORY 10 Fixed 0 # # # # # NULL # NULL NULL latin1_swedish_ci NULL 0 N
-t2 MEMORY 10 Fixed 0 # # # # # NULL # NULL NULL latin1_swedish_ci NULL 0 N
-t3 MEMORY 10 Fixed 0 # # # # # NULL # NULL NULL latin1_swedish_ci NULL 0 N
-drop table t1, t2, t3;
-create database mysqltest;
-show create database mysqltest;
-Database Create Database
-mysqltest CREATE DATABASE `mysqltest` /*!40100 DEFAULT CHARACTER SET latin1 */
-create table mysqltest.t1(a int);
-insert into mysqltest.t1 values(1);
-create user mysqltest_1@localhost;
-grant select on `mysqltest`.* to mysqltest_1@localhost;
-create user mysqltest_2@localhost;
-grant usage on `mysqltest`.* to mysqltest_2@localhost;
-create user mysqltest_3@localhost;
-grant drop on `mysqltest`.* to mysqltest_3@localhost;
-connect con1,localhost,mysqltest_1,,mysqltest;
-connection con1;
-select * from t1;
-a
-1
-show create database mysqltest;
-Database Create Database
-mysqltest CREATE DATABASE `mysqltest` /*!40100 DEFAULT CHARACTER SET latin1 */
-drop table t1;
-ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table 't1'
-drop database mysqltest;
-ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'mysqltest'
-disconnect con1;
-connect con2,localhost,mysqltest_2,,test;
-connection con2;
-select * from mysqltest.t1;
-ERROR 42000: SELECT command denied to user 'mysqltest_2'@'localhost' for table 't1'
-show create database mysqltest;
-ERROR 42000: Access denied for user 'mysqltest_2'@'localhost' to database 'mysqltest'
-drop table mysqltest.t1;
-ERROR 42000: DROP command denied to user 'mysqltest_2'@'localhost' for table 't1'
-drop database mysqltest;
-ERROR 42000: Access denied for user 'mysqltest_2'@'localhost' to database 'mysqltest'
-disconnect con2;
-connect con3,localhost,mysqltest_3,,test;
-connection con3;
-select * from mysqltest.t1;
-ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table 't1'
-show create database mysqltest;
-Database Create Database
-mysqltest CREATE DATABASE `mysqltest` /*!40100 DEFAULT CHARACTER SET latin1 */
-drop table mysqltest.t1;
-drop database mysqltest;
-disconnect con3;
-connection default;
-set names binary;
-delete from mysql.user
-where user='mysqltest_1' || user='mysqltest_2' || user='mysqltest_3';
-delete from mysql.db
-where user='mysqltest_1' || user='mysqltest_2' || user='mysqltest_3';
-flush privileges;
-CREATE TABLE t1 (i int, KEY (i)) ENGINE=MEMORY;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL,
- KEY `i` (`i`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (i int, KEY USING HASH (i)) ENGINE=MEMORY;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL,
- KEY `i` (`i`) USING HASH
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (i int, KEY USING BTREE (i)) ENGINE=MEMORY;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL,
- KEY `i` (`i`) USING BTREE
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (i int, KEY (i)) ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL,
- KEY `i` (`i`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (i int, KEY USING BTREE (i)) ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL,
- KEY `i` (`i`) USING BTREE
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (i int, KEY (i)) ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL,
- KEY `i` (`i`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 ENGINE=MEMORY;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL,
- KEY `i` (`i`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (i int, KEY USING BTREE (i)) ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL,
- KEY `i` (`i`) USING BTREE
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 ENGINE=MEMORY;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL,
- KEY `i` (`i`) USING BTREE
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1(
-field1 text NOT NULL,
-PRIMARY KEY(field1(1000))
-);
-show index from t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema STATISTICS STATISTICS TABLE_NAME Table 253 64 2 N 1 0 63
-def information_schema STATISTICS STATISTICS NON_UNIQUE Non_unique 8 1 1 N 32769 0 63
-def information_schema STATISTICS STATISTICS INDEX_NAME Key_name 253 64 7 N 1 0 63
-def information_schema STATISTICS STATISTICS SEQ_IN_INDEX Seq_in_index 8 2 1 N 32769 0 63
-def information_schema STATISTICS STATISTICS COLUMN_NAME Column_name 253 64 6 N 1 0 63
-def information_schema STATISTICS STATISTICS COLLATION Collation 253 1 1 Y 0 0 63
-def information_schema STATISTICS STATISTICS CARDINALITY Cardinality 8 21 1 Y 32768 0 63
-def information_schema STATISTICS STATISTICS SUB_PART Sub_part 8 3 4 Y 32768 0 63
-def information_schema STATISTICS STATISTICS PACKED Packed 253 10 0 Y 0 0 63
-def information_schema STATISTICS STATISTICS NULLABLE Null 253 3 0 N 1 0 63
-def information_schema STATISTICS STATISTICS INDEX_TYPE Index_type 253 16 5 N 1 0 63
-def information_schema STATISTICS STATISTICS COMMENT Comment 253 16 0 Y 0 0 63
-def information_schema STATISTICS STATISTICS INDEX_COMMENT Index_comment 253 1024 0 N 1 0 63
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 field1 A 0 1000 NULL BTREE
-drop table t1;
-create table t1 (
-c1 int NOT NULL,
-c2 int NOT NULL,
-PRIMARY KEY USING HASH (c1),
-INDEX USING BTREE(c2)
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) NOT NULL,
- `c2` int(11) NOT NULL,
- PRIMARY KEY (`c1`) USING HASH,
- KEY `c2` (`c2`) USING BTREE
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-flush tables;
-SHOW TABLE STATUS like 't1';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 NULL NULL NULL NULL # # # # NULL NULL # NULL NULL NULL NULL NULL Incorrect information in file: './test/t1.frm' NULL NULL
-Warnings:
-Warning 1033 Incorrect information in file: './test/t1.frm'
-show create table t1;
-ERROR HY000: Incorrect information in file: './test/t1.frm'
-drop table if exists t1;
-
-# Bug#12183 SHOW OPEN TABLES behavior doesn't match grammar.
-
-DROP DATABASE IF EXISTS mysqltest1;
-CREATE DATABASE mysqltest1;
-use mysqltest1;
-
-CREATE TABLE t1(a INT);
-CREATE TABLE t2(a INT);
-
-FLUSH TABLES;
-
-SELECT 1 FROM t1;
-1
-SELECT 1 FROM t2;
-1
-
-SHOW OPEN TABLES FROM mysqltest1;
-Database Table In_use Name_locked
-mysqltest1 t1 0 0
-mysqltest1 t2 0 0
-
-SHOW OPEN TABLES FROM mysqltest1 LIKE 'z%';
-Database Table In_use Name_locked
-
-SHOW OPEN TABLES FROM mysqltest1 LIKE 't1%';
-Database Table In_use Name_locked
-mysqltest1 t1 0 0
-
-SHOW OPEN TABLES FROM mysqltest1 LIKE '%1%';
-Database Table In_use Name_locked
-mysqltest1 t1 0 0
-
-FLUSH TABLES;
-
-DROP DATABASE mysqltest1;
-use test;
-
-SHOW TABLES FROM non_existing_database;
-ERROR 42000: Unknown database 'non_existing_database'
-End of 4.1 tests
-DROP VIEW IF EXISTS v1;
-DROP PROCEDURE IF EXISTS p1;
-CREATE VIEW v1 AS SELECT 1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 AS `1` binary binary
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT SQL_CACHE 1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select sql_cache 1 AS `1` binary binary
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT SQL_NO_CACHE 1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select sql_no_cache 1 AS `1` binary binary
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT NOW();
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select current_timestamp() AS `NOW()` binary binary
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT SQL_CACHE NOW();
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select sql_cache current_timestamp() AS `NOW()` binary binary
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT SQL_NO_CACHE NOW();
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select sql_no_cache current_timestamp() AS `NOW()` binary binary
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT SQL_CACHE SQL_NO_CACHE NOW();
-ERROR HY000: Incorrect usage of SQL_CACHE and SQL_NO_CACHE
-CREATE VIEW v1 AS SELECT SQL_NO_CACHE SQL_CACHE NOW();
-ERROR HY000: Incorrect usage of SQL_NO_CACHE and SQL_CACHE
-CREATE VIEW v1 AS SELECT SQL_CACHE SQL_NO_CACHE SQL_CACHE NOW();
-ERROR HY000: Incorrect usage of SQL_CACHE and SQL_NO_CACHE
-CREATE PROCEDURE p1()
-BEGIN
-SET @s= 'CREATE VIEW v1 AS SELECT SQL_CACHE 1';
-PREPARE stmt FROM @s;
-EXECUTE stmt;
-DROP PREPARE stmt;
-END |
-CALL p1();
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select sql_cache 1 AS `1` binary binary
-DROP PROCEDURE p1;
-DROP VIEW v1;
-SHOW TABLES FROM no_such_database;
-ERROR 42000: Unknown database 'no_such_database'
-SHOW COLUMNS FROM no_such_table;
-ERROR 42S02: Table 'test.no_such_table' doesn't exist
-flush status;
-show status like 'slow_queries';
-Variable_name Value
-Slow_queries 0
-show tables;
-Tables_in_test
-show status like 'slow_queries';
-Variable_name Value
-Slow_queries 0
-select 1 from information_schema.tables limit 1;
-1
-1
-show status like 'slow_queries';
-Variable_name Value
-Slow_queries 1
-create table t1 (a int);
-create trigger tr1 before insert on t1 for each row
-begin
-end;
-create view v1 as select a from t1;
-create procedure p1()
-begin
-end;
-create function f1()
-returns int
-return 0;
-create event e1 on schedule every 1 year starts now()
-ends date_add(now(), interval 5 hour) do
-begin
-end;
-flush status;
-show databases;
-show tables;
-show events;
-show table status;
-show open tables;
-show plugins;
-show columns in t1;
-show slave hosts;
-show keys in t1;
-show storage engines;
-show authors;
-show contributors;
-show privileges;
-show count(*) warnings;
-show count(*) errors;
-show warnings;
-show status;
-show processlist;
-show variables;
-show charset;
-show collation;
-show grants;
-show create database test;
-show create table t1;
-show create view v1;
-show master status;
-show slave status;
-show create procedure p1;
-show create function f1;
-show create trigger tr1;
-show procedure status;
-show create event e1;
-show status like 'slow_queries';
-Variable_name Value
-Slow_queries 0
-drop view v1;
-drop table t1;
-drop procedure p1;
-drop function f1;
-drop event e1;
-DROP DATABASE IF EXISTS mysqltest1;
-DROP TABLE IF EXISTS t1;
-DROP VIEW IF EXISTS v1;
-DROP PROCEDURE IF EXISTS p1;
-DROP FUNCTION IF EXISTS f1;
-CREATE DATABASE mysqltest1;
-CREATE TABLE t1(c INT NOT NULL PRIMARY KEY);
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1;
-CREATE VIEW v1 AS SELECT 1;
-CREATE PROCEDURE p1() SELECT 1;
-CREATE FUNCTION f1() RETURNS INT RETURN 1;
-set names utf8;
--- Here we enable metadata just to check that the collation of the
--- resultset is non-binary for string type. This should be changed
--- after Bug#29394 is implemented.
-----------------------------------------------------------------
-SHOW CHARACTER SET LIKE 'utf8';
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema CHARACTER_SETS CHARACTER_SETS CHARACTER_SET_NAME Charset 253 96 4 N 1 0 33
-def information_schema CHARACTER_SETS CHARACTER_SETS DESCRIPTION Description 253 180 13 N 1 0 33
-def information_schema CHARACTER_SETS CHARACTER_SETS DEFAULT_COLLATE_NAME Default collation 253 96 15 N 1 0 33
-def information_schema CHARACTER_SETS CHARACTER_SETS MAXLEN Maxlen 8 3 1 N 32769 0 63
-Charset Description Default collation Maxlen
-utf8 UTF-8 Unicode utf8_general_ci 3
-----------------------------------------------------------------
-SHOW COLLATION LIKE 'latin1_bin';
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema COLLATIONS COLLATIONS COLLATION_NAME Collation 253 96 10 N 1 0 33
-def information_schema COLLATIONS COLLATIONS CHARACTER_SET_NAME Charset 253 96 6 N 1 0 33
-def information_schema COLLATIONS COLLATIONS ID Id 8 11 2 N 32769 0 63
-def information_schema COLLATIONS COLLATIONS IS_DEFAULT Default 253 9 0 N 1 0 33
-def information_schema COLLATIONS COLLATIONS IS_COMPILED Compiled 253 9 3 N 1 0 33
-def information_schema COLLATIONS COLLATIONS SORTLEN Sortlen 8 3 1 N 32769 0 63
-Collation Charset Id Default Compiled Sortlen
-latin1_bin latin1 47 Yes 1
-----------------------------------------------------------------
-SHOW CREATE DATABASE mysqltest1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def Database 253 192 10 N 1 39 33
-def Create Database 253 3072 69 N 1 39 33
-Database Create Database
-mysqltest1 CREATE DATABASE `mysqltest1` /*!40100 DEFAULT CHARACTER SET latin1 */
-----------------------------------------------------------------
-SHOW DATABASES LIKE 'mysqltest1';
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema SCHEMATA SCHEMATA SCHEMA_NAME Database (mysqltest1) 253 192 10 N 1 0 33
-Database (mysqltest1)
-mysqltest1
-----------------------------------------------------------------
-SHOW CREATE TABLE t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def Table 253 192 2 N 1 39 33
-def Create Table 253 3072 102 N 1 39 33
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` int(11) NOT NULL,
- PRIMARY KEY (`c`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-----------------------------------------------------------------
-SHOW INDEX FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema STATISTICS STATISTICS TABLE_NAME Table 253 192 2 N 1 0 33
-def information_schema STATISTICS STATISTICS NON_UNIQUE Non_unique 8 1 1 N 32769 0 63
-def information_schema STATISTICS STATISTICS INDEX_NAME Key_name 253 192 7 N 1 0 33
-def information_schema STATISTICS STATISTICS SEQ_IN_INDEX Seq_in_index 8 2 1 N 32769 0 63
-def information_schema STATISTICS STATISTICS COLUMN_NAME Column_name 253 192 1 N 1 0 33
-def information_schema STATISTICS STATISTICS COLLATION Collation 253 3 1 Y 0 0 33
-def information_schema STATISTICS STATISTICS CARDINALITY Cardinality 8 21 1 Y 32768 0 63
-def information_schema STATISTICS STATISTICS SUB_PART Sub_part 8 3 0 Y 32768 0 63
-def information_schema STATISTICS STATISTICS PACKED Packed 253 30 0 Y 0 0 33
-def information_schema STATISTICS STATISTICS NULLABLE Null 253 9 0 N 1 0 33
-def information_schema STATISTICS STATISTICS INDEX_TYPE Index_type 253 48 5 N 1 0 33
-def information_schema STATISTICS STATISTICS COMMENT Comment 253 48 0 Y 0 0 33
-def information_schema STATISTICS STATISTICS INDEX_COMMENT Index_comment 253 3072 0 N 1 0 33
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 c A 0 NULL NULL BTREE
-----------------------------------------------------------------
-SELECT
-TABLE_CATALOG,
-TABLE_SCHEMA,
-TABLE_NAME,
-TABLE_TYPE,
-ENGINE,
-ROW_FORMAT,
-TABLE_COLLATION,
-CREATE_OPTIONS,
-TABLE_COMMENT
-FROM INFORMATION_SCHEMA.TABLES
-WHERE table_name = 't1';
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema TABLES TABLES TABLE_CATALOG TABLE_CATALOG 253 1536 3 N 1 0 33
-def information_schema TABLES TABLES TABLE_SCHEMA TABLE_SCHEMA 253 192 4 N 1 0 33
-def information_schema TABLES TABLES TABLE_NAME TABLE_NAME 253 192 2 N 1 0 33
-def information_schema TABLES TABLES TABLE_TYPE TABLE_TYPE 253 192 10 N 1 0 33
-def information_schema TABLES TABLES ENGINE ENGINE 253 192 6 Y 0 0 33
-def information_schema TABLES TABLES ROW_FORMAT ROW_FORMAT 253 30 5 Y 0 0 33
-def information_schema TABLES TABLES TABLE_COLLATION TABLE_COLLATION 253 96 17 Y 0 0 33
-def information_schema TABLES TABLES CREATE_OPTIONS CREATE_OPTIONS 253 6144 0 Y 0 0 33
-def information_schema TABLES TABLES TABLE_COMMENT TABLE_COMMENT 253 6144 0 N 1 0 33
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE ROW_FORMAT TABLE_COLLATION CREATE_OPTIONS TABLE_COMMENT
-def test t1 BASE TABLE MyISAM Fixed latin1_swedish_ci
-----------------------------------------------------------------
-SELECT
-TABLE_CATALOG,
-TABLE_SCHEMA,
-TABLE_NAME,
-COLUMN_NAME,
-COLUMN_DEFAULT,
-IS_NULLABLE,
-DATA_TYPE,
-CHARACTER_SET_NAME,
-COLLATION_NAME,
-COLUMN_TYPE,
-COLUMN_KEY,
-EXTRA,
-PRIVILEGES,
-COLUMN_COMMENT
-FROM INFORMATION_SCHEMA.COLUMNS
-WHERE table_name = 't1';
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema COLUMNS COLUMNS TABLE_CATALOG TABLE_CATALOG 253 1536 3 N 1 0 33
-def information_schema COLUMNS COLUMNS TABLE_SCHEMA TABLE_SCHEMA 253 192 4 N 1 0 33
-def information_schema COLUMNS COLUMNS TABLE_NAME TABLE_NAME 253 192 2 N 1 0 33
-def information_schema COLUMNS COLUMNS COLUMN_NAME COLUMN_NAME 253 192 1 N 1 0 33
-def information_schema COLUMNS COLUMNS COLUMN_DEFAULT COLUMN_DEFAULT 252 589788 0 Y 16 0 33
-def information_schema COLUMNS COLUMNS IS_NULLABLE IS_NULLABLE 253 9 2 N 1 0 33
-def information_schema COLUMNS COLUMNS DATA_TYPE DATA_TYPE 253 192 3 N 1 0 33
-def information_schema COLUMNS COLUMNS CHARACTER_SET_NAME CHARACTER_SET_NAME 253 96 0 Y 0 0 33
-def information_schema COLUMNS COLUMNS COLLATION_NAME COLLATION_NAME 253 96 0 Y 0 0 33
-def information_schema COLUMNS COLUMNS COLUMN_TYPE COLUMN_TYPE 252 589815 7 N 17 0 33
-def information_schema COLUMNS COLUMNS COLUMN_KEY COLUMN_KEY 253 9 3 N 1 0 33
-def information_schema COLUMNS COLUMNS EXTRA EXTRA 253 90 0 N 1 0 33
-def information_schema COLUMNS COLUMNS PRIVILEGES PRIVILEGES 253 240 31 N 1 0 33
-def information_schema COLUMNS COLUMNS COLUMN_COMMENT COLUMN_COMMENT 253 3072 0 N 1 0 33
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT
-def test t1 c NULL NO int NULL NULL int(11) PRI select,insert,update,references
-----------------------------------------------------------------
-SHOW TABLES LIKE 't1';
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema TABLE_NAMES TABLE_NAMES TABLE_NAME Tables_in_test (t1) 253 219 2 N 1 0 33
-Tables_in_test (t1)
-t1
-----------------------------------------------------------------
-SHOW COLUMNS FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema COLUMNS COLUMNS COLUMN_NAME Field 253 192 1 N 1 0 33
-def information_schema COLUMNS COLUMNS COLUMN_TYPE Type 252 589815 7 N 17 0 33
-def information_schema COLUMNS COLUMNS IS_NULLABLE Null 253 9 2 N 1 0 33
-def information_schema COLUMNS COLUMNS COLUMN_KEY Key 253 9 3 N 1 0 33
-def information_schema COLUMNS COLUMNS COLUMN_DEFAULT Default 252 589788 0 Y 16 0 33
-def information_schema COLUMNS COLUMNS EXTRA Extra 253 90 0 N 1 0 33
-Field Type Null Key Default Extra
-c int(11) NO PRI NULL
-----------------------------------------------------------------
-SHOW TRIGGERS LIKE 't1';
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema TRIGGERS TRIGGERS TRIGGER_NAME Trigger 253 192 5 N 1 0 33
-def information_schema TRIGGERS TRIGGERS EVENT_MANIPULATION Event 253 18 6 N 1 0 33
-def information_schema TRIGGERS TRIGGERS EVENT_OBJECT_TABLE Table 253 192 2 N 1 0 33
-def information_schema TRIGGERS TRIGGERS ACTION_STATEMENT Statement 252 589815 10 N 17 0 33
-def information_schema TRIGGERS TRIGGERS ACTION_TIMING Timing 253 18 6 N 1 0 33
-def information_schema TRIGGERS TRIGGERS CREATED Created 12 22 22 Y 128 2 63
-def information_schema TRIGGERS TRIGGERS SQL_MODE sql_mode 253 24576 89 N 1 0 33
-def information_schema TRIGGERS TRIGGERS DEFINER Definer 253 567 14 N 1 0 33
-def information_schema TRIGGERS TRIGGERS CHARACTER_SET_CLIENT character_set_client 253 96 6 N 1 0 33
-def information_schema TRIGGERS TRIGGERS COLLATION_CONNECTION collation_connection 253 96 6 N 1 0 33
-def information_schema TRIGGERS TRIGGERS DATABASE_COLLATION Database Collation 253 96 17 N 1 0 33
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-t1_bi INSERT t1 SET @a = 1 BEFORE # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost binary binary latin1_swedish_ci
-----------------------------------------------------------------
-SELECT
-TRIGGER_CATALOG,
-TRIGGER_SCHEMA,
-TRIGGER_NAME,
-EVENT_MANIPULATION,
-EVENT_OBJECT_CATALOG,
-EVENT_OBJECT_SCHEMA,
-EVENT_OBJECT_TABLE,
-ACTION_CONDITION,
-ACTION_STATEMENT,
-ACTION_ORIENTATION,
-ACTION_TIMING,
-ACTION_REFERENCE_OLD_TABLE,
-ACTION_REFERENCE_NEW_TABLE,
-ACTION_REFERENCE_OLD_ROW,
-ACTION_REFERENCE_NEW_ROW,
-SQL_MODE,
-DEFINER
-FROM INFORMATION_SCHEMA.TRIGGERS
-WHERE trigger_name = 't1_bi';
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema TRIGGERS TRIGGERS TRIGGER_CATALOG TRIGGER_CATALOG 253 1536 3 N 1 0 33
-def information_schema TRIGGERS TRIGGERS TRIGGER_SCHEMA TRIGGER_SCHEMA 253 192 4 N 1 0 33
-def information_schema TRIGGERS TRIGGERS TRIGGER_NAME TRIGGER_NAME 253 192 5 N 1 0 33
-def information_schema TRIGGERS TRIGGERS EVENT_MANIPULATION EVENT_MANIPULATION 253 18 6 N 1 0 33
-def information_schema TRIGGERS TRIGGERS EVENT_OBJECT_CATALOG EVENT_OBJECT_CATALOG 253 1536 3 N 1 0 33
-def information_schema TRIGGERS TRIGGERS EVENT_OBJECT_SCHEMA EVENT_OBJECT_SCHEMA 253 192 4 N 1 0 33
-def information_schema TRIGGERS TRIGGERS EVENT_OBJECT_TABLE EVENT_OBJECT_TABLE 253 192 2 N 1 0 33
-def information_schema TRIGGERS TRIGGERS ACTION_CONDITION ACTION_CONDITION 252 589815 0 Y 16 0 33
-def information_schema TRIGGERS TRIGGERS ACTION_STATEMENT ACTION_STATEMENT 252 589815 10 N 17 0 33
-def information_schema TRIGGERS TRIGGERS ACTION_ORIENTATION ACTION_ORIENTATION 253 27 3 N 1 0 33
-def information_schema TRIGGERS TRIGGERS ACTION_TIMING ACTION_TIMING 253 18 6 N 1 0 33
-def information_schema TRIGGERS TRIGGERS ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_OLD_TABLE 253 192 0 Y 0 0 33
-def information_schema TRIGGERS TRIGGERS ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_NEW_TABLE 253 192 0 Y 0 0 33
-def information_schema TRIGGERS TRIGGERS ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_OLD_ROW 253 9 3 N 1 0 33
-def information_schema TRIGGERS TRIGGERS ACTION_REFERENCE_NEW_ROW ACTION_REFERENCE_NEW_ROW 253 9 3 N 1 0 33
-def information_schema TRIGGERS TRIGGERS SQL_MODE SQL_MODE 253 24576 89 N 1 0 33
-def information_schema TRIGGERS TRIGGERS DEFINER DEFINER 253 567 14 N 1 0 33
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW SQL_MODE DEFINER
-def test t1_bi INSERT def test t1 NULL SET @a = 1 ROW BEFORE NULL NULL OLD NEW STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost
-SELECT CREATED FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name='t1_bi';
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema TRIGGERS TRIGGERS CREATED CREATED 12 22 22 Y 128 2 63
-CREATED
-#
-----------------------------------------------------------------
-SHOW CREATE VIEW v1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def View 253 192 2 N 1 39 33
-def Create View 253 3072 103 N 1 39 33
-def character_set_client 253 96 6 N 1 39 33
-def collation_connection 253 96 6 N 1 39 33
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 AS `1` binary binary
-----------------------------------------------------------------
-SELECT *
-FROM INFORMATION_SCHEMA.VIEWS
-WHERE table_name = 'v1';
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema VIEWS VIEWS TABLE_CATALOG TABLE_CATALOG 253 1536 3 N 1 0 33
-def information_schema VIEWS VIEWS TABLE_SCHEMA TABLE_SCHEMA 253 192 4 N 1 0 33
-def information_schema VIEWS VIEWS TABLE_NAME TABLE_NAME 253 192 2 N 1 0 33
-def information_schema VIEWS VIEWS VIEW_DEFINITION VIEW_DEFINITION 252 589815 15 N 17 0 33
-def information_schema VIEWS VIEWS CHECK_OPTION CHECK_OPTION 253 24 4 N 1 0 33
-def information_schema VIEWS VIEWS IS_UPDATABLE IS_UPDATABLE 253 9 2 N 1 0 33
-def information_schema VIEWS VIEWS DEFINER DEFINER 253 567 14 N 1 0 33
-def information_schema VIEWS VIEWS SECURITY_TYPE SECURITY_TYPE 253 21 7 N 1 0 33
-def information_schema VIEWS VIEWS CHARACTER_SET_CLIENT CHARACTER_SET_CLIENT 253 96 6 N 1 0 33
-def information_schema VIEWS VIEWS COLLATION_CONNECTION COLLATION_CONNECTION 253 96 6 N 1 0 33
-def information_schema VIEWS VIEWS ALGORITHM ALGORITHM 253 30 9 N 1 0 33
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION ALGORITHM
-def test v1 select 1 AS `1` NONE NO root@localhost DEFINER binary binary UNDEFINED
-----------------------------------------------------------------
-SHOW CREATE PROCEDURE p1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def Procedure 253 192 2 N 1 39 33
-def sql_mode 253 267 89 N 1 39 33
-def Create Procedure 253 3072 59 Y 0 39 33
-def character_set_client 253 96 6 N 1 39 33
-def collation_connection 253 96 6 N 1 39 33
-def Database Collation 253 96 17 N 1 39 33
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`()
-SELECT 1 binary binary latin1_swedish_ci
-----------------------------------------------------------------
-SELECT
-SPECIFIC_NAME,
-ROUTINE_CATALOG,
-ROUTINE_SCHEMA,
-ROUTINE_NAME,
-ROUTINE_TYPE,
-DTD_IDENTIFIER,
-ROUTINE_BODY,
-ROUTINE_DEFINITION,
-EXTERNAL_NAME,
-EXTERNAL_LANGUAGE,
-PARAMETER_STYLE,
-IS_DETERMINISTIC,
-SQL_DATA_ACCESS,
-SQL_PATH,
-SECURITY_TYPE,
-SQL_MODE,
-ROUTINE_COMMENT,
-DEFINER
-FROM INFORMATION_SCHEMA.ROUTINES
-WHERE routine_name = 'p1';
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema ROUTINES ROUTINES SPECIFIC_NAME SPECIFIC_NAME 253 192 2 N 1 0 33
-def information_schema ROUTINES ROUTINES ROUTINE_CATALOG ROUTINE_CATALOG 253 1536 3 N 1 0 33
-def information_schema ROUTINES ROUTINES ROUTINE_SCHEMA ROUTINE_SCHEMA 253 192 4 N 1 0 33
-def information_schema ROUTINES ROUTINES ROUTINE_NAME ROUTINE_NAME 253 192 2 N 1 0 33
-def information_schema ROUTINES ROUTINES ROUTINE_TYPE ROUTINE_TYPE 253 39 9 N 1 0 33
-def information_schema ROUTINES ROUTINES DTD_IDENTIFIER DTD_IDENTIFIER 252 589815 0 Y 16 0 33
-def information_schema ROUTINES ROUTINES ROUTINE_BODY ROUTINE_BODY 253 24 3 N 1 0 33
-def information_schema ROUTINES ROUTINES ROUTINE_DEFINITION ROUTINE_DEFINITION 252 589815 8 Y 16 0 33
-def information_schema ROUTINES ROUTINES EXTERNAL_NAME EXTERNAL_NAME 253 192 0 Y 0 0 33
-def information_schema ROUTINES ROUTINES EXTERNAL_LANGUAGE EXTERNAL_LANGUAGE 253 192 0 Y 0 0 33
-def information_schema ROUTINES ROUTINES PARAMETER_STYLE PARAMETER_STYLE 253 24 3 N 1 0 33
-def information_schema ROUTINES ROUTINES IS_DETERMINISTIC IS_DETERMINISTIC 253 9 2 N 1 0 33
-def information_schema ROUTINES ROUTINES SQL_DATA_ACCESS SQL_DATA_ACCESS 253 192 12 N 1 0 33
-def information_schema ROUTINES ROUTINES SQL_PATH SQL_PATH 253 192 0 Y 0 0 33
-def information_schema ROUTINES ROUTINES SECURITY_TYPE SECURITY_TYPE 253 21 7 N 1 0 33
-def information_schema ROUTINES ROUTINES SQL_MODE SQL_MODE 253 24576 89 N 1 0 33
-def information_schema ROUTINES ROUTINES ROUTINE_COMMENT ROUTINE_COMMENT 252 589815 0 N 17 0 33
-def information_schema ROUTINES ROUTINES DEFINER DEFINER 253 567 14 N 1 0 33
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE SQL_MODE ROUTINE_COMMENT DEFINER
-p1 def test p1 PROCEDURE NULL SQL SELECT 1 NULL NULL SQL NO CONTAINS SQL NULL DEFINER STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost
-----------------------------------------------------------------
-SHOW CREATE FUNCTION f1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def Function 253 192 2 N 1 39 33
-def sql_mode 253 267 89 N 1 39 33
-def Create Function 253 3072 74 Y 0 39 33
-def character_set_client 253 96 6 N 1 39 33
-def collation_connection 253 96 6 N 1 39 33
-def Database Collation 253 96 17 N 1 39 33
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-f1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `f1`() RETURNS int(11)
-RETURN 1 binary binary latin1_swedish_ci
-----------------------------------------------------------------
-SELECT
-SPECIFIC_NAME,
-ROUTINE_CATALOG,
-ROUTINE_SCHEMA,
-ROUTINE_NAME,
-ROUTINE_TYPE,
-DTD_IDENTIFIER,
-ROUTINE_BODY,
-ROUTINE_DEFINITION,
-EXTERNAL_NAME,
-EXTERNAL_LANGUAGE,
-PARAMETER_STYLE,
-IS_DETERMINISTIC,
-SQL_DATA_ACCESS,
-SQL_PATH,
-SECURITY_TYPE,
-SQL_MODE,
-ROUTINE_COMMENT,
-DEFINER
-FROM INFORMATION_SCHEMA.ROUTINES
-WHERE routine_name = 'f1';
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def information_schema ROUTINES ROUTINES SPECIFIC_NAME SPECIFIC_NAME 253 192 2 N 1 0 33
-def information_schema ROUTINES ROUTINES ROUTINE_CATALOG ROUTINE_CATALOG 253 1536 3 N 1 0 33
-def information_schema ROUTINES ROUTINES ROUTINE_SCHEMA ROUTINE_SCHEMA 253 192 4 N 1 0 33
-def information_schema ROUTINES ROUTINES ROUTINE_NAME ROUTINE_NAME 253 192 2 N 1 0 33
-def information_schema ROUTINES ROUTINES ROUTINE_TYPE ROUTINE_TYPE 253 39 8 N 1 0 33
-def information_schema ROUTINES ROUTINES DTD_IDENTIFIER DTD_IDENTIFIER 252 589815 7 Y 16 0 33
-def information_schema ROUTINES ROUTINES ROUTINE_BODY ROUTINE_BODY 253 24 3 N 1 0 33
-def information_schema ROUTINES ROUTINES ROUTINE_DEFINITION ROUTINE_DEFINITION 252 589815 8 Y 16 0 33
-def information_schema ROUTINES ROUTINES EXTERNAL_NAME EXTERNAL_NAME 253 192 0 Y 0 0 33
-def information_schema ROUTINES ROUTINES EXTERNAL_LANGUAGE EXTERNAL_LANGUAGE 253 192 0 Y 0 0 33
-def information_schema ROUTINES ROUTINES PARAMETER_STYLE PARAMETER_STYLE 253 24 3 N 1 0 33
-def information_schema ROUTINES ROUTINES IS_DETERMINISTIC IS_DETERMINISTIC 253 9 2 N 1 0 33
-def information_schema ROUTINES ROUTINES SQL_DATA_ACCESS SQL_DATA_ACCESS 253 192 12 N 1 0 33
-def information_schema ROUTINES ROUTINES SQL_PATH SQL_PATH 253 192 0 Y 0 0 33
-def information_schema ROUTINES ROUTINES SECURITY_TYPE SECURITY_TYPE 253 21 7 N 1 0 33
-def information_schema ROUTINES ROUTINES SQL_MODE SQL_MODE 253 24576 89 N 1 0 33
-def information_schema ROUTINES ROUTINES ROUTINE_COMMENT ROUTINE_COMMENT 252 589815 0 N 17 0 33
-def information_schema ROUTINES ROUTINES DEFINER DEFINER 253 567 14 N 1 0 33
-SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE SQL_MODE ROUTINE_COMMENT DEFINER
-f1 def test f1 FUNCTION int(11) SQL RETURN 1 NULL NULL SQL NO CONTAINS SQL NULL DEFINER STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost
-----------------------------------------------------------------
-DROP DATABASE mysqltest1;
-DROP TABLE t1;
-DROP VIEW v1;
-DROP PROCEDURE p1;
-DROP FUNCTION f1;
-flush status;
-show variables like "log_queries_not_using_indexes";
-Variable_name Value
-log_queries_not_using_indexes ON
-select 1 from information_schema.tables limit 1;
-1
-1
-show status like 'slow_queries';
-Variable_name Value
-Slow_queries 1
-set session log_queries_not_using_indexes=OFF;
-show variables like "log_queries_not_using_indexes";
-Variable_name Value
-log_queries_not_using_indexes OFF
-select 1 from information_schema.tables limit 1;
-1
-1
-show status like 'slow_queries';
-Variable_name Value
-Slow_queries 1
-set session log_queries_not_using_indexes=ON;
-show variables like "log_queries_not_using_indexes";
-Variable_name Value
-log_queries_not_using_indexes ON
-select 1 from information_schema.tables limit 1;
-1
-1
-show status like 'slow_queries';
-Variable_name Value
-Slow_queries 2
-show variables like 'myisam_recover_options';
-Variable_name Value
-myisam_recover_options OFF
-CREATE TABLE t1 (
-Codigo int(10) unsigned NOT NULL auto_increment,
-Nombre varchar(255) default NULL,
-Telefono varchar(255) default NULL,
-Observaciones longtext,
-Direccion varchar(255) default NULL,
-Dni varchar(255) default NULL,
-CP int(11) default NULL,
-Provincia varchar(255) default NULL,
-Poblacion varchar(255) default NULL,
-PRIMARY KEY (Codigo)
-) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
-show create table t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def Table 253 192 2 N 1 39 33
-def Create Table 253 3072 458 N 1 39 33
-Table Create Table
-t1 CREATE TABLE `t1` (
- `Codigo` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `Nombre` varchar(255) DEFAULT NULL,
- `Telefono` varchar(255) DEFAULT NULL,
- `Observaciones` longtext DEFAULT NULL,
- `Direccion` varchar(255) DEFAULT NULL,
- `Dni` varchar(255) DEFAULT NULL,
- `CP` int(11) DEFAULT NULL,
- `Provincia` varchar(255) DEFAULT NULL,
- `Poblacion` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`Codigo`)
-) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8
-drop table t1;
-End of 5.0 tests
-SHOW AUTHORS;
-create database mysqltest;
-show create database mysqltest;
-Database Create Database
-mysqltest CREATE DATABASE `mysqltest` /*!40100 DEFAULT CHARACTER SET latin1 */
-create table mysqltest.t1(a int);
-insert into mysqltest.t1 values(1);
-create user mysqltest_4@localhost;
-grant select on `mysqltest`.`t1` to mysqltest_4@localhost;
-connect con4,localhost,mysqltest_4,,mysqltest;
-connection con4;
-show create database mysqltest;
-Database Create Database
-mysqltest CREATE DATABASE `mysqltest` /*!40100 DEFAULT CHARACTER SET latin1 */
-disconnect con4;
-connection default;
-delete from mysql.user where user='mysqltest_4';
-delete from mysql.db where user='mysqltest_4';
-delete from mysql.tables_priv where user='mysqltest_4';
-flush privileges;
-drop database mysqltest;
-show plugins;
-create database `mysqlttest\1`;
-create table `mysqlttest\1`.`a\b` (a int);
-show tables from `mysqlttest\1`;
-Tables_in_mysqlttest\1
-a\b
-show fields from `mysqlttest\1`.`a\b`;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-show columns from `a\b` from `mysqlttest\1`;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-show keys from `mysqlttest\1`.`a\b`;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-drop table `mysqlttest\1`.`a\b`;
-drop database `mysqlttest\1`;
-show engine foobar status;
-ERROR 42000: Unknown storage engine 'foobar'
-show engine foobar logs;
-ERROR 42000: Unknown storage engine 'foobar'
-show engine foobar mutex;
-ERROR 42000: Unknown storage engine 'foobar'
-show engine mutex status;
-ERROR 42000: Unknown storage engine 'mutex'
-show engine csv status;
-Type Name Status
-show engine csv logs;
-Type Name Status
-show engine csv mutex;
-Type Name Status
-set names utf8;
-drop table if exists `été`;
-create table `été` (field1 int);
-show full tables;
-Tables_in_test Table_type
-été BASE TABLE
-drop table `été`;
-set names latin1;
-#
-# Bug#4374 SHOW TABLE STATUS FROM ignores collation_connection
-# Character set: Latin-1 (ISO-8859-1)
-#
-SET NAMES latin1;
-CREATE DATABASE `ä`;
-CREATE TABLE `ä`.`ä` (a int) ENGINE=Memory;
-SHOW TABLE STATUS FROM `ä` LIKE 'ä';
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-ä MEMORY 10 Fixed 0 # # # # 0 NULL # NULL NULL latin1_swedish_ci NULL 0 N
-DROP DATABASE `ä`;
-show columns from `#mysql50#????????`;
-Got one of the listed errors
-call mtr.add_suppression("Can.t find file: '.\\\\test\\\\\\?{8}.frm'");
-DROP TABLE IF EXISTS t1;
-DROP PROCEDURE IF EXISTS p1;
-CREATE TABLE t1(c1 INT);
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1;
-SHOW CREATE TRIGGER t1_bi;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-CREATE PROCEDURE p1() SHOW CREATE TRIGGER t1_bi;
-CALL p1();
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-CALL p1();
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-CALL p1();
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-CALL p1();
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-CALL p1();
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-CALL p1();
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-CALL p1();
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-CALL p1();
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-CALL p1();
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-CALL p1();
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-PREPARE stmt1 FROM 'SHOW CREATE TRIGGER t1_bi';
-EXECUTE stmt1;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-EXECUTE stmt1;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-EXECUTE stmt1;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-EXECUTE stmt1;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-EXECUTE stmt1;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-EXECUTE stmt1;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-EXECUTE stmt1;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-EXECUTE stmt1;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-EXECUTE stmt1;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-EXECUTE stmt1;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1 latin1 latin1_swedish_ci latin1_swedish_ci #
-DROP TABLE t1;
-DROP PROCEDURE p1;
-DEALLOCATE PREPARE stmt1;
-set names koi8r;
-DROP VIEW IF EXISTS v1;
-DROP PROCEDURE IF EXISTS p1;
-DROP FUNCTION IF EXISTS f1;
-DROP TABLE IF EXISTS t1;
-DROP EVENT IF EXISTS ev1;
-CREATE VIEW v1 AS SELECT 'ÔÅÓÔ' AS test;
-CREATE PROCEDURE p1() SELECT 'ÔÅÓÔ' AS test;
-CREATE FUNCTION f1() RETURNS CHAR(10) RETURN 'ÔÅÓÔ';
-CREATE TABLE t1(c1 CHAR(10));
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1
-FOR EACH ROW
-SET NEW.c1 = 'ÔÅÓÔ';
-CREATE EVENT ev1 ON SCHEDULE AT '2030-01-01 00:00:00' DO SELECT 'ÔÅÓÔ' AS test;
-set names utf8;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 'теÑÑ‚' AS `test` koi8r koi8r_general_ci
-SHOW CREATE PROCEDURE p1;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`()
-SELECT 'теÑÑ‚' AS test koi8r koi8r_general_ci latin1_swedish_ci
-SHOW CREATE FUNCTION f1;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-f1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `f1`() RETURNS char(10) CHARSET latin1
-RETURN 'теÑÑ‚' koi8r koi8r_general_ci latin1_swedish_ci
-SHOW CREATE TRIGGER t1_bi;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1
-FOR EACH ROW
-SET NEW.c1 = 'теÑÑ‚' koi8r koi8r_general_ci latin1_swedish_ci #
-SHOW CREATE EVENT ev1;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-ev1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO SELECT 'теÑÑ‚' AS test koi8r koi8r_general_ci latin1_swedish_ci
-DROP VIEW v1;
-DROP PROCEDURE p1;
-DROP FUNCTION f1;
-DROP TABLE t1;
-DROP EVENT ev1;
-SHOW STORAGE ENGINES;
-CREATE USER test_u@localhost;
-GRANT PROCESS ON *.* TO test_u@localhost;
-connect conn1, localhost, test_u,,;
-SHOW ENGINE MYISAM MUTEX;
-SHOW ENGINE MYISAM STATUS;
-disconnect conn1;
-connection default;
-DROP USER test_u@localhost;
-End of 5.1 tests
-#
-# Bug#52593 SHOW CREATE TABLE is blocked if table is locked
-# for write by another connection
-DROP TABLE IF EXISTS t1;
-connect con1, localhost,root;
-connection default;
-CREATE TABLE t1 (i INT PRIMARY KEY);
-LOCK TABLE t1 WRITE;
-connection con1;
-# This statement used to be blocked.
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) NOT NULL,
- PRIMARY KEY (`i`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-disconnect con1;
-connection default;
-UNLOCK TABLES;
-DROP TABLE t1;
-#
-# Bug#54905 Connection with WRITE lock cannot ALTER table due to
-# concurrent SHOW CREATE
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT);
-connect con1,localhost,root;
-LOCK TABLE t1 WRITE;
-connection default;
-START TRANSACTION;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-connection con1;
-ALTER TABLE t1 CHARACTER SET = utf8;
-UNLOCK TABLES;
-connection default;
-COMMIT;
-disconnect con1;
-DROP TABLE t1;
-#
-# Bug#55498 SHOW CREATE TRIGGER takes wrong type of metadata lock.
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET new.a = 1;
-# Test 1: SHOW CREATE TRIGGER with WRITE locked table.
-connect con1, localhost, root;
-LOCK TABLE t1 WRITE;
-connection default;
-SHOW CREATE TRIGGER t1_bi;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET new.a = 1 utf8 utf8_general_ci latin1_swedish_ci #
-connection con1;
-UNLOCK TABLES;
-# Test 2: ALTER TABLE with SHOW CREATE TRIGGER in transaction
-connection default;
-START TRANSACTION;
-SHOW CREATE TRIGGER t1_bi;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET new.a = 1 utf8 utf8_general_ci latin1_swedish_ci #
-connection con1;
-ALTER TABLE t1 CHARACTER SET = utf8;
-disconnect con1;
-connection default;
-COMMIT;
-DROP TRIGGER t1_bi;
-DROP TABLE t1;
-#
-# Bug#57306 SHOW PROCESSLIST does not display string literals well.
-#
-SET NAMES latin1;
-SELECT GET_LOCK('t', 1000);
-GET_LOCK('t', 1000)
-1
-connect con1,localhost,root,,;
-connection con1;
-SET NAMES latin1;
-SELECT GET_LOCK('t',1000) AS 'óóóó';;
-connection default;
-SHOW PROCESSLIST;
-Id User Host db Command Time State Info Progress
-### root ### test Query ### ### SHOW PROCESSLIST 0.000
-### root ### test Query ### ### SELECT GET_LOCK('t',1000) AS 'óóóó' 0.000
-SET NAMES utf8;
-SHOW PROCESSLIST;
-Id User Host db Command Time State Info Progress
-### root ### test Query ### ### SHOW PROCESSLIST 0.000
-### root ### test Query ### ### SELECT GET_LOCK('t',1000) AS 'óóóó' 0.000
-SELECT RELEASE_LOCK('t');
-RELEASE_LOCK('t')
-1
-connection con1;
-óóóó
-1
-disconnect con1;
-connection default;
-SET NAMES latin1;
-#
-# Test SHOW AUTHORS and SHOW CONTRIBUTORS
-#
-SHOW AUTHORS;
-SHOW WARNINGS;
-Level Code Message
-SHOW CONTRIBUTORS;
-SHOW WARNINGS;
-Level Code Message
diff --git a/mysql-test/r/show_create_user.result b/mysql-test/r/show_create_user.result
deleted file mode 100644
index 63013eca074..00000000000
--- a/mysql-test/r/show_create_user.result
+++ /dev/null
@@ -1,39 +0,0 @@
-create user foo;
-show create user foo;
-CREATE USER for foo@%
-CREATE USER 'foo'@'%'
-create user foo@test;
-show create user foo@test;
-CREATE USER for foo@test
-CREATE USER 'foo'@'test'
-create user foo2@test identified by 'password';
-show create user foo2@test;
-CREATE USER for foo2@test
-CREATE USER 'foo2'@'test' IDENTIFIED BY PASSWORD '*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19'
-alter user foo2@test identified with 'someplugin' as 'somepassword';
-show create user foo2@test;
-CREATE USER for foo2@test
-CREATE USER 'foo2'@'test' IDENTIFIED VIA someplugin USING 'somepassword'
-create user foo3@test require SSL;
-show create user foo3@test;
-CREATE USER for foo3@test
-CREATE USER 'foo3'@'test' REQUIRE SSL
-create user foo4@test require cipher 'text' issuer 'foo_issuer' subject 'foo_subject';
-show create user foo4@test;
-CREATE USER for foo4@test
-CREATE USER 'foo4'@'test' REQUIRE ISSUER 'foo_issuer' SUBJECT 'foo_subject' CIPHER 'text'
-create user foo5@test require SSL
-with MAX_QUERIES_PER_HOUR 10
-MAX_UPDATES_PER_HOUR 20
-MAX_CONNECTIONS_PER_HOUR 30
-MAX_USER_CONNECTIONS 40
-MAX_STATEMENT_TIME 0.5;
-show create user foo5@test;
-CREATE USER for foo5@test
-CREATE USER 'foo5'@'test' REQUIRE SSL WITH MAX_QUERIES_PER_HOUR 10 MAX_UPDATES_PER_HOUR 20 MAX_CONNECTIONS_PER_HOUR 30 MAX_USER_CONNECTIONS 40 MAX_STATEMENT_TIME 0.500000
-drop user foo5@test;
-drop user foo4@test;
-drop user foo3@test;
-drop user foo2@test;
-drop user foo@test;
-drop user foo;
diff --git a/mysql-test/r/show_explain.result b/mysql-test/r/show_explain.result
deleted file mode 100644
index 0819ae5ba37..00000000000
--- a/mysql-test/r/show_explain.result
+++ /dev/null
@@ -1,1317 +0,0 @@
-drop table if exists t0, t1, t2, t3, t4;
-drop view if exists v1;
-SET @old_debug= @@session.debug;
-set debug_sync='RESET';
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int);
-insert into t1 select A.a + 10*B.a + 100*C.a from t0 A, t0 B, t0 C;
-alter table t1 add b int, add c int, add filler char(32);
-update t1 set b=a, c=a, filler='fooo';
-alter table t1 add key(a), add key(b);
-show explain for 2000000000;
-ERROR HY000: Unknown thread id: 2000000000
-show explain for (select max(a) from t0);
-ERROR HY000: You may only use constant expressions in this statement
-connect con1, localhost, root,,;
-connection con1;
-SET @old_debug= @@session.debug;
-connection default;
-show explain for $thr2;
-ERROR HY000: Target is not running an EXPLAINable command
-show explain for $thr1;
-ERROR HY000: Target is not running an EXPLAINable command
-connection con1;
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-select count(*) from t1 where a < 100000;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index a a 5 NULL 1000 Using where; Using index
-Warnings:
-Note 1003 select count(*) from t1 where a < 100000
-connection con1;
-count(*)
-1000
-select max(c) from t1 where a < 10;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 10 Using index condition
-Warnings:
-Note 1003 select max(c) from t1 where a < 10
-connection con1;
-max(c)
-9
-# We can catch EXPLAIN, too.
-set @show_expl_tmp= @@optimizer_switch;
-set optimizer_switch='index_condition_pushdown=on,mrr=on,mrr_sort_keys=on';
-explain select max(c) from t1 where a < 10;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 10 Using index condition; Rowid-ordered scan
-Warnings:
-Note 1003 explain select max(c) from t1 where a < 10
-connection con1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 10 Using index condition; Rowid-ordered scan
-set optimizer_switch= @show_expl_tmp;
-set debug_dbug=@old_debug;
-# UNION, first branch
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-explain select a from t0 A union select a+1 from t0 B;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 10
-2 UNION B ALL NULL NULL NULL NULL 10
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 explain select a from t0 A union select a+1 from t0 B
-connection con1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 10
-2 UNION B ALL NULL NULL NULL NULL 10
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-set debug_dbug=@old_debug;
-# UNION, second branch
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-explain select a from t0 A union select a+1 from t0 B;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 10
-2 UNION B ALL NULL NULL NULL NULL 10
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 explain select a from t0 A union select a+1 from t0 B
-connection con1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 10
-2 UNION B ALL NULL NULL NULL NULL 10
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-set debug_dbug=@old_debug;
-# Uncorrelated subquery, select
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-select a, (select max(a) from t0 B) from t0 A where a<1;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 10 Using where
-2 SUBQUERY B ALL NULL NULL NULL NULL 10
-Warnings:
-Note 1003 select a, (select max(a) from t0 B) from t0 A where a<1
-connection con1;
-a (select max(a) from t0 B)
-0 9
-set debug_dbug=@old_debug;
-# Uncorrelated subquery, explain
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-explain select a, (select max(a) from t0 B) from t0 A where a<1;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 10 Using where
-2 SUBQUERY B ALL NULL NULL NULL NULL 10
-Warnings:
-Note 1003 explain select a, (select max(a) from t0 B) from t0 A where a<1
-connection con1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 10 Using where
-2 SUBQUERY B ALL NULL NULL NULL NULL 10
-set debug_dbug=@old_debug;
-# correlated subquery, select
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-select a, (select max(a) from t0 b where b.a+a.a<10) from t0 a where a<1;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY a ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY b ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 select a, (select max(a) from t0 b where b.a+a.a<10) from t0 a where a<1
-connection con1;
-a (select max(a) from t0 b where b.a+a.a<10)
-0 9
-set debug_dbug=@old_debug;
-# correlated subquery, explain
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-select a, (select max(a) from t0 b where b.a+a.a<10) from t0 a where a<1;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY a ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY b ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 select a, (select max(a) from t0 b where b.a+a.a<10) from t0 a where a<1
-connection con1;
-a (select max(a) from t0 b where b.a+a.a<10)
-0 9
-set debug_dbug=@old_debug;
-# correlated subquery, select, while inside the subquery
-set @show_explain_probe_select_id=2;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-select a, (select max(a) from t0 b where b.a+a.a<10) from t0 a where a<1;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY a ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY b ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 select a, (select max(a) from t0 b where b.a+a.a<10) from t0 a where a<1
-connection con1;
-a (select max(a) from t0 b where b.a+a.a<10)
-0 9
-set debug_dbug=@old_debug;
-# correlated subquery, explain, while inside the subquery
-set @show_explain_probe_select_id=2;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-select a, (select max(a) from t0 b where b.a+a.a<10) from t0 a where a<1;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY a ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY b ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 select a, (select max(a) from t0 b where b.a+a.a<10) from t0 a where a<1
-connection con1;
-a (select max(a) from t0 b where b.a+a.a<10)
-0 9
-set debug_dbug=@old_debug;
-# correlated subquery, explain, while inside the subquery
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_end';
-select a, (select max(a) from t0 b where b.a+a.a<10) from t0 a where a<1;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY a ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY b ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 select a, (select max(a) from t0 b where b.a+a.a<10) from t0 a where a<1
-connection con1;
-a (select max(a) from t0 b where b.a+a.a<10)
-0 9
-set debug_dbug=@old_debug;
-# Try to do SHOW EXPLAIN for a query that runs a SET command:
-# I've found experimentally that select_id==2 here...
-#
-set @show_explain_probe_select_id=2;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-set @foo= (select max(a) from t0 where sin(a) >0);
-connection default;
-show explain for $thr2;
-ERROR HY000: Target is not running an EXPLAINable command
-kill query $thr2;
-connection con1;
-ERROR 70100: Query execution was interrupted
-set debug_dbug=@old_debug;
-#
-# Attempt SHOW EXPLAIN for an UPDATE
-#
-create table t2 as select a as a, a as dummy from t0 limit 2;
-set @show_explain_probe_select_id=2;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-update t2 set dummy=0 where (select max(a) from t0 where t2.a + t0.a <3) >3 ;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t0 ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 update t2 set dummy=0 where (select max(a) from t0 where t2.a + t0.a <3) >3
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t0 ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 update t2 set dummy=0 where (select max(a) from t0 where t2.a + t0.a <3) >3
-connection con1;
-drop table t2;
-set debug_dbug=@old_debug;
-#
-# Attempt SHOW EXPLAIN for a DELETE (UPD: now works)
-#
-create table t2 as select a as a, a as dummy from t0 limit 2;
-set @show_explain_probe_select_id=2;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-delete from t2 where (select max(a) from t0 where t2.a + t0.a <3) >3 ;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t0 ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 delete from t2 where (select max(a) from t0 where t2.a + t0.a <3) >3
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t0 ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 delete from t2 where (select max(a) from t0 where t2.a + t0.a <3) >3
-connection con1;
-drop table t2;
-set debug_dbug=@old_debug;
-#
-# Multiple SHOW EXPLAIN calls for one select
-#
-create table t2 as select a as a, a as dummy from t0 limit 3;
-set @show_explain_probe_select_id=2;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-select t2.a, ((select max(a) from t0 where t2.a + t0.a <3) >3) as SUBQ from t2;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3
-2 DEPENDENT SUBQUERY t0 ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 select t2.a, ((select max(a) from t0 where t2.a + t0.a <3) >3) as SUBQ from t2
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3
-2 DEPENDENT SUBQUERY t0 ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 select t2.a, ((select max(a) from t0 where t2.a + t0.a <3) >3) as SUBQ from t2
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3
-2 DEPENDENT SUBQUERY t0 ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 select t2.a, ((select max(a) from t0 where t2.a + t0.a <3) >3) as SUBQ from t2
-connection con1;
-a SUBQ
-0 0
-1 0
-2 0
-drop table t2;
-set debug_dbug=@old_debug;
-#
-# SHOW EXPLAIN for SELECT ... ORDER BY with "Using filesort"
-#
-explain select * from t0 order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using filesort
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-set @show_explain_probe_select_id=1;
-select * from t0 order by a;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using filesort
-Warnings:
-Note 1003 select * from t0 order by a
-connection con1;
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-set debug_dbug=@old_debug;
-#
-# SHOW EXPLAIN for SELECT ... with "Using temporary"
-#
-connection default;
-explain select distinct a from t0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using temporary
-connection con1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-set @show_explain_probe_select_id=1;
-select distinct a from t0;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using temporary
-Warnings:
-Note 1003 select distinct a from t0
-connection con1;
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-set debug_dbug=@old_debug;
-#
-# SHOW EXPLAIN for SELECT ... with "Using temporary; Using filesort"
-#
-connection default;
-explain select distinct a from t0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using temporary
-connection con1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-set @show_explain_probe_select_id=1;
-select distinct a from t0;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using temporary
-Warnings:
-Note 1003 select distinct a from t0
-connection con1;
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-set debug_dbug=@old_debug;
-#
-# MDEV-238: SHOW EXPLAIN: Server crashes in JOIN::print_explain with FROM subquery and GROUP BY
-#
-CREATE TABLE t2 ( a INT );
-INSERT INTO t2 VALUES (1),(2),(1),(4),(2);
-explain SELECT alias.a FROM t2, ( SELECT * FROM t2 ) AS alias GROUP BY alias.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 Using join buffer (flat, BNL join)
-set debug_dbug='+d,show_explain_in_find_all_keys';
-SELECT alias.a FROM t2, ( SELECT * FROM t2 ) AS alias GROUP BY alias.a;
-connection default;
-# FIXED by "conservative assumptions about when QEP is available" fix:
-# NOTE: current code will not show "Using join buffer":
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 SELECT alias.a FROM t2, ( SELECT * FROM t2 ) AS alias GROUP BY alias.a
-connection con1;
-a
-1
-2
-4
-set debug_dbug=@old_debug;
-DROP TABLE t2;
-#
-# MDEV-239: Assertion `field_types == 0 ... ' failed in Protocol_text::store(double, uint32, String*) with
-# SHOW EXPLAIN over EXPLAIN EXTENDED
-#
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 VALUES (1),(2),(1),(4),(2);
-EXPLAIN EXTENDED SELECT alias.a FROM t2, ( SELECT * FROM t2 ) AS alias GROUP BY alias.a ;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` join `test`.`t2` group by `test`.`t2`.`a`
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_end';
-EXPLAIN EXTENDED SELECT alias.a FROM t2, ( SELECT * FROM t2 ) AS alias GROUP BY alias.a ;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 EXPLAIN EXTENDED SELECT alias.a FROM t2, ( SELECT * FROM t2 ) AS alias GROUP BY alias.a
-connection con1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using temporary; Using filesort
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` join `test`.`t2` group by `test`.`t2`.`a`
-set debug_dbug=@old_debug;
-DROP TABLE t2;
-#
-# MDEV-240: SHOW EXPLAIN: Assertion `this->optimized == 2' failed in
-# JOIN::print_explain on query with a JOIN, TEMPTABLE view,
-#
-CREATE TABLE t3 (a INT);
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t3;
-INSERT INTO t3 VALUES (8);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (4),(5),(6),(7),(8),(9);
-explain SELECT * FROM v1, t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 6
-2 DERIVED t3 system NULL NULL NULL NULL 1
-set @show_explain_probe_select_id=2;
-set debug_dbug='+d,show_explain_probe_join_exec_end';
-SELECT * FROM v1, t2;
-connection default;
-show explain for $thr2;
-ERROR HY000: Target is not running an EXPLAINable command
-kill query $thr2;
-connection con1;
-ERROR 70100: Query execution was interrupted
-set debug_dbug=@old_debug;
-DROP VIEW v1;
-DROP TABLE t2, t3;
-#
-# MDEV-267: SHOW EXPLAIN: Server crashes in JOIN::print_explain on most of queries
-#
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_end';
-select sleep(1);
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select sleep(1)
-connection con1;
-sleep(1)
-0
-set debug_dbug=@old_debug;
-#
-# Same as above, but try another reason for JOIN to be degenerate
-#
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_end';
-select * from t0 where 1>10;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select * from t0 where 1>10
-connection con1;
-a
-set debug_dbug=@old_debug;
-#
-# Same as above, but try another reason for JOIN to be degenerate (2)
-#
-create table t3(a int primary key);
-insert into t3 select a from t0;
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_end';
-select * from t0,t3 where t3.a=112233;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 select * from t0,t3 where t3.a=112233
-connection con1;
-a a
-set debug_dbug=@old_debug;
-drop table t3;
-#
-# MDEV-270: SHOW EXPLAIN: server crashes in JOIN::print_explain on a query with
-# select tables optimized away
-#
-CREATE TABLE t2 (pk INT PRIMARY KEY, a INT ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-(1,4),(2,62),(3,7),(4,1),(5,0),(6,7),(7,7),(8,1),(9,7),(10,1),
-(11,5),(12,2),(13,0),(14,1),(15,8),(16,1),(17,1),(18,9),(19,1),(20,5) ;
-explain SELECT * FROM t2 WHERE a =
-(SELECT MAX(a) FROM t2
-WHERE pk= (SELECT MAX(pk) FROM t2 WHERE pk = 3)
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 20 Using where
-2 SUBQUERY t2 const PRIMARY PRIMARY 4 const 1
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_do_select';
-SELECT * FROM t2 WHERE a =
-(SELECT MAX(a) FROM t2
-WHERE pk= (SELECT MAX(pk) FROM t2 WHERE pk = 3)
-);
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 20 Using where
-2 SUBQUERY t2 const PRIMARY PRIMARY 4 const 1
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 SELECT * FROM t2 WHERE a =
-(SELECT MAX(a) FROM t2
-WHERE pk= (SELECT MAX(pk) FROM t2 WHERE pk = 3)
-)
-connection con1;
-pk a
-3 7
-6 7
-7 7
-9 7
-set debug_dbug=@old_debug;
-drop table t2;
-#
-# MDEV-273: SHOW EXPLAIN: server crashes in JOIN::print_explain on a query with impossible WHERE
-#
-CREATE TABLE t2 (a1 INT, KEY(a1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-(4),(6),(7),(1),(0),(7),(7),(1),(7),(1),
-(5),(2),(0),(1),(8),(1),(1),(9),(1),(5);
-CREATE TABLE t3 (b1 INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES
-(4),(5),(8),(4),(8),(2),(9),(6),(4),(8),
-(3),(5),(9),(6),(8),(3),(2),(6),(3),(1),
-(4),(3),(1),(7),(0),(0),(9),(5),(9),(0),
-(2),(2),(5),(9),(1),(4),(8),(6),(5),(5),
-(1),(7),(2),(8),(9),(3),(2),(6),(6),(5),
-(4),(3),(2),(7),(4),(6),(0),(8),(5),(8),
-(2),(9),(7),(5),(7),(0),(4),(3),(1),(0),
-(6),(2),(8),(3),(7),(3),(5),(5),(1),(2),
-(1),(7),(1),(9),(9),(8),(3);
-CREATE TABLE t4 (c1 INT) ENGINE=MyISAM;
-EXPLAIN
-SELECT count(*) FROM t2, t3
-WHERE a1 < ALL (
-SELECT a1 FROM t2
-WHERE a1 IN ( SELECT a1 FROM t2, t4 )
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index NULL a1 5 NULL 20 Using where; Using index
-1 PRIMARY t3 ALL NULL NULL NULL NULL 87 Using join buffer (flat, BNL join)
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_do_select';
-SELECT count(*) FROM t2, t3
-WHERE a1 < ALL (
-SELECT a1 FROM t2
-WHERE a1 IN ( SELECT a1 FROM t2, t4 )
-);
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index NULL a1 5 NULL 20 Using where; Using index
-1 PRIMARY t3 ALL NULL NULL NULL NULL 87 Using join buffer (flat, BNL join)
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 SELECT count(*) FROM t2, t3
-WHERE a1 < ALL (
-SELECT a1 FROM t2
-WHERE a1 IN ( SELECT a1 FROM t2, t4 )
-)
-connection con1;
-count(*)
-1740
-set debug_dbug=@old_debug;
-drop table t2, t3, t4;
-#
-# MDEV-275: SHOW EXPLAIN: server crashes in JOIN::print_explain with IN subquery and aggregate function
-#
-CREATE TABLE t2 ( `pk` INT NOT NULL PRIMARY KEY, `a1` INT NOT NULL, KEY(`a1`)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-(1,5),(2,4),(3,6),(4,9),(5,2),(6,8),(7,4),(8,8),(9,0),(10,43),
-(11,23),(12,3),(13,45),(14,16),(15,2),(16,33),(17,2),(18,5),(19,9),(20,2);
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_end';
-SELECT * FROM t2 WHERE (5, 78) IN (SELECT `a1`, MAX(`a1`) FROM t2 GROUP BY `a1`);
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> const distinct_key distinct_key 8 const,const 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 20 Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 index NULL a1 4 NULL 20 Using index
-Warnings:
-Note 1003 SELECT * FROM t2 WHERE (5, 78) IN (SELECT `a1`, MAX(`a1`) FROM t2 GROUP BY `a1`)
-connection con1;
-pk a1
-set debug_dbug=@old_debug;
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# MDEV-305: SHOW EXPLAIN: ref returned by SHOW EXPLAIN is different from the normal EXPLAIN ('const' vs empty string)
-#
-CREATE TABLE t1(a INT, KEY(a));
-INSERT INTO t1 VALUES (3),(1),(5),(1);
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-SELECT 'test' FROM t1 WHERE a=1;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 5 const 1 Using index
-Warnings:
-Note 1003 SELECT 'test' FROM t1 WHERE a=1
-connection con1;
-test
-test
-test
-set debug_dbug=@old_debug;
-DROP TABLE t1;
-#
-# MDEV-299: SHOW EXPLAIN: Plan produced by SHOW EXPLAIN changes back and forth during query execution
-#
-create table t1 (key1 int, col1 int, col2 int, filler char(100), key(key1));
-insert into t1 select A.a+ 10 * B.a, 10, 10, 'filler-data' from t0 A, t0 B;
-update t1 set col1=3, col2=10 where key1=1;
-update t1 set col1=3, col2=1000 where key1=2;
-update t1 set col1=3, col2=10 where key1=3;
-update t1 set col1=3, col2=1000 where key1=4;
-set @tmp_mdev299_jcl= @@join_cache_level;
-set join_cache_level=0;
-explain select count(*) from t1 A, t1 B where B.key1 < A.col2 and A.col1=3 AND B.col2 + 1 < 100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE A ALL NULL NULL NULL NULL 100 Using where
-1 SIMPLE B ALL key1 NULL NULL NULL 100 Range checked for each record (index map: 0x1)
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_test_if_quick_select';
-select count(*) from t1 A, t1 B where B.key1 < A.col2 and A.col1=3 AND B.col2 + 1 < 100;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE A ALL NULL NULL NULL NULL 100 Using where
-1 SIMPLE B ALL key1 NULL NULL NULL 100 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select count(*) from t1 A, t1 B where B.key1 < A.col2 and A.col1=3 AND B.col2 + 1 < 100
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE A ALL NULL NULL NULL NULL 100 Using where
-1 SIMPLE B ALL key1 NULL NULL NULL 100 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select count(*) from t1 A, t1 B where B.key1 < A.col2 and A.col1=3 AND B.col2 + 1 < 100
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE A ALL NULL NULL NULL NULL 100 Using where
-1 SIMPLE B ALL key1 NULL NULL NULL 100 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select count(*) from t1 A, t1 B where B.key1 < A.col2 and A.col1=3 AND B.col2 + 1 < 100
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE A ALL NULL NULL NULL NULL 100 Using where
-1 SIMPLE B ALL key1 NULL NULL NULL 100 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select count(*) from t1 A, t1 B where B.key1 < A.col2 and A.col1=3 AND B.col2 + 1 < 100
-connection con1;
-count(*)
-212
-set debug_dbug=@old_debug;
-drop table t1;
-#
-# MDEV-297: SHOW EXPLAIN: Server gets stuck until timeout occurs while
-# executing SHOW INDEX and SHOW EXPLAIN in parallel
-#
-CREATE TABLE t1(a INT, b INT, c INT, KEY(a), KEY(b), KEY(c));
-INSERT INTO t1 (a) VALUES (3),(1),(5),(1);
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-SHOW INDEX FROM t1;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE STATISTICS ALL NULL TABLE_SCHEMA,TABLE_NAME NULL NULL NULL Open_full_table; Scanned 0 databases
-Warnings:
-Note 1003 SHOW INDEX FROM t1
-connection con1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 1 a 1 a A NULL NULL NULL YES BTREE
-t1 1 b 1 b A NULL NULL NULL YES BTREE
-t1 1 c 1 c A NULL NULL NULL YES BTREE
-set debug_dbug=@old_debug;
-DROP TABLE t1;
-#
-# MDEV-324: SHOW EXPLAIN: Plan produced by SHOW EXPLAIN for a query with TEMPTABLE view
-# loses 'DERIVED' line on the way without saying that the plan was already deleted
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-EXPLAIN SELECT a + 1 FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 2
-set debug_dbug='+d,show_explain_probe_join_tab_preread';
-set @show_explain_probe_select_id=1;
-SELECT a + 1 FROM v1;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 2
-Warnings:
-Note 1003 SELECT a + 1 FROM v1
-connection con1;
-a + 1
-2
-3
-set debug_dbug=@old_debug;
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-323: SHOW EXPLAIN: Plan produced by SHOW EXPLAIN loses
-# 'UNION RESULT' line on the way without saying that the plan was already deleted
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (4),(6);
-EXPLAIN
-SELECT a FROM t1 WHERE a IN ( SELECT 1+SLEEP(0.01) UNION SELECT 2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-set debug_dbug='+d,show_explain_probe_union_read';
-SELECT a FROM t1 WHERE a IN ( SELECT 1+SLEEP(0.01) UNION SELECT 2 );
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 SELECT a FROM t1 WHERE a IN ( SELECT 1+SLEEP(0.01) UNION SELECT 2 )
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 SELECT a FROM t1 WHERE a IN ( SELECT 1+SLEEP(0.01) UNION SELECT 2 )
-connection con1;
-a
-set debug_dbug=@old_debug;
-DROP TABLE t1;
-#
-# MDEV-327: SHOW EXPLAIN: Different select_type in plans produced by SHOW EXPLAIN
-# and standard EXPLAIN: 'SUBQUERY' vs 'DEPENDENT SUBQUERY'
-#
-CREATE TABLE t1 (a INT) ENGINE=Aria;
-INSERT INTO t1 VALUES
-(4),(6),(3),(5),(3),(246),(2),(9),(3),(8),
-(1),(8),(8),(5),(7),(5),(1),(6),(2),(9);
-CREATE TABLE t2 (b INT) ENGINE=Aria;
-INSERT INTO t2 VALUES
-(1),(7),(4),(7),(0),(2),(9),(4),(0),(9),
-(1),(3),(8),(8),(18),(84),(6),(3),(6),(6);
-EXPLAIN
-SELECT * FROM t1, ( SELECT * FROM t2 ) AS alias
-WHERE a < ALL ( SELECT b FROM t1, t2 WHERE a = b );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 20 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 20
-3 SUBQUERY t1 ALL NULL NULL NULL NULL 20
-3 SUBQUERY t2 ALL NULL NULL NULL NULL 20 Using where
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-SELECT * FROM t1, ( SELECT * FROM t2 ) AS alias
-WHERE a < ALL ( SELECT b FROM t1, t2 WHERE a = b );
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 20 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 20
-3 SUBQUERY t1 ALL NULL NULL NULL NULL 20
-3 SUBQUERY t2 ALL NULL NULL NULL NULL 20 Using where
-Warnings:
-Note 1003 SELECT * FROM t1, ( SELECT * FROM t2 ) AS alias
-WHERE a < ALL ( SELECT b FROM t1, t2 WHERE a = b )
-connection con1;
-a b
-set debug_dbug=@old_debug;
-DROP TABLE t1, t2;
-#
-# Test that SHOW EXPLAIN will print 'Distinct'.
-#
-CREATE TABLE t1 (a int(10) unsigned not null primary key,b int(10) unsigned);
-INSERT INTO t1 VALUES (1,1),(2,1),(3,1),(4,1);
-CREATE TABLE t3 (a int(10) unsigned, key(A), b text);
-INSERT INTO t3 VALUES (1,'1'),(2,'2');
-create temporary table t4 select * from t3;
-insert into t3 select * from t4;
-insert into t4 select * from t3;
-insert into t3 select * from t4;
-insert into t4 select * from t3;
-insert into t3 select * from t4;
-insert into t4 select * from t3;
-insert into t3 select * from t4;
-explain select distinct t1.a from t1,t3 where t1.a=t3.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 4 NULL 4 Using index; Using temporary
-1 SIMPLE t3 ref a a 5 test.t1.a 7 Using index; Distinct
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-select distinct t1.a from t1,t3 where t1.a=t3.a;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index PRIMARY PRIMARY 4 NULL 4 Using index; Using temporary
-1 SIMPLE t3 ref a a 5 test.t1.a 7 Using index; Distinct
-Warnings:
-Note 1003 select distinct t1.a from t1,t3 where t1.a=t3.a
-connection con1;
-a
-1
-2
-set debug_dbug=@old_debug;
-drop table t1,t3,t4;
-#
-# ---------- SHOW EXPLAIN and permissions -----------------
-#
-create user test2@localhost;
-grant ALL on test.* to test2@localhost;
-grant super on *.* to test2@localhost;
-connect con2, localhost, test2,,;
-connection con1;
-#
-# First, make sure that user 'test2' cannot do SHOW EXPLAIN on us
-#
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-select * from t0 where a < 3;
-connection default;
-connection con2;
-show explain for $thr2;
-ERROR 42000: Access denied; you need (at least one of) the PROCESS privilege(s) for this operation
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 select * from t0 where a < 3
-connection con1;
-a
-0
-1
-2
-set debug_dbug=@old_debug;
-#
-# Check that user test2 can do SHOW EXPLAIN on its own queries
-#
-connect con3, localhost, test2,,;
-connection con2;
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-select * from t0 where a < 3;
-connection con1;
-connection con3;
-show explain for $thr_con2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 select * from t0 where a < 3
-connection con2;
-a
-0
-1
-2
-connection con1;
-disconnect con3;
-#
-# Now, grant test2 a PROCESSLIST permission, and see that he's able to observe us
-#
-disconnect con2;
-grant process on *.* to test2@localhost;
-connect con2, localhost, test2,,;
-connection con1;
-set debug_dbug=@old_debug;
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-select * from t0 where a < 3;
-connection default;
-connection con2;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 select * from t0 where a < 3
-connection con1;
-a
-0
-1
-2
-set debug_dbug=@old_debug;
-revoke all privileges on test.* from test2@localhost;
-drop user test2@localhost;
-disconnect con2;
-#
-# Test that it is possible to KILL a SHOW EXPLAIN command that's waiting
-# on its target thread
-#
-connect con2, localhost, root,,;
-connect con3, localhost, root,,;
-connection con2;
-create table t1 (pk int primary key, data char(64)) engine=innodb;
-insert into t1 select A.a + 10 * B.a + 100 * C.a, 'data1' from t0 A, t0 B, t0 C;
-# Lock two threads
-set autocommit=0;
-select * from t1 where pk between 10 and 20 for update;
-pk data
-10 data1
-11 data1
-12 data1
-13 data1
-14 data1
-15 data1
-16 data1
-17 data1
-18 data1
-19 data1
-20 data1
-connection con1;
-set autocommit=0;
-select * from t1 where pk between 10 and 20 for update;
-connection default;
-# do: send_eval show explain for thr2;
-connection con3;
-kill query $thr_default;
-connection default;
-ERROR 70100: Query execution was interrupted
-connection con2;
-rollback;
-connection con1;
-pk data
-10 data1
-11 data1
-12 data1
-13 data1
-14 data1
-15 data1
-16 data1
-17 data1
-18 data1
-19 data1
-20 data1
-drop table t1;
-disconnect con3;
-disconnect con2;
-#
-# Check that the I_S table is invisible
-#
-select table_name from information_schema.tables where table_schema='information_schema' and table_name like '%explain%';
-table_name
-#
-# MDEV-325: SHOW EXPLAIN: Plan produced by SHOW EXPLAIN is different from standard EXPLAIN: type ALL vs 'index_merge'..
-#
-CREATE TABLE t1 (a INT, b INT, KEY(a), KEY(b)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-(8,0),(128,5050),(5372,8),(234,7596),(2,0),(2907,8930),(1,0),
-(0,5224),(8,7638),(960,5),(9872,1534),(0,2295),(3408,9809),
-(7,0),(1168,0),(2089,5570),(0,205),(88,1018),(0,26528),
-(0,0),(4,5567),(1444,145),(6,0),(1,7535),(7793,534),(70,9),
-(178,1),(44,5),(189,0),(3,0);
-EXPLAIN
-SELECT a+SLEEP(0.01) FROM t1
-WHERE a IN ( 255, 0 ) OR b BETWEEN 6 AND 129
-ORDER BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b a,b 5,5 NULL 8 Using sort_union(a,b); Using where; Using filesort
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-SELECT a+SLEEP(0.01) FROM t1
-WHERE a IN ( 255, 0 ) OR b BETWEEN 6 AND 129
-ORDER BY b;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b a,b 5,5 NULL 8 Using sort_union(a,b); Using where; Using filesort
-Warnings:
-Note 1003 SELECT a+SLEEP(0.01) FROM t1
-WHERE a IN ( 255, 0 ) OR b BETWEEN 6 AND 129
-ORDER BY b
-connection con1;
-a+SLEEP(0.01)
-0
-5372
-70
-0
-0
-0
-0
-set debug_dbug=@old_debug;
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_do_select';
-SELECT a+SLEEP(0.01) FROM t1
-WHERE a IN ( 255, 0 ) OR b BETWEEN 6 AND 129
-ORDER BY b;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge a,b a,b 5,5 NULL 8 Using sort_union(a,b); Using where; Using filesort
-Warnings:
-Note 1003 SELECT a+SLEEP(0.01) FROM t1
-WHERE a IN ( 255, 0 ) OR b BETWEEN 6 AND 129
-ORDER BY b
-connection con1;
-a+SLEEP(0.01)
-0
-5372
-70
-0
-0
-0
-0
-set debug_dbug=@old_debug;
-drop table t1;
-#
-# MDEV-298: SHOW EXPLAIN: Plan returned by SHOW EXPLAIN only contains
-# 'Using temporary' while the standard EXPLAIN says 'Using temporary; Using filesort'
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),
-(10),(11),(12),(13),(14),(15),(16);
-INSERT INTO t1 SELECT t11.a FROM t1 t11, t1 t12, t1 t13;
-EXPLAIN SELECT a FROM t1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4112 Using temporary; Using filesort
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-SELECT a FROM t1 GROUP BY a;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4112 Using temporary; Using filesort
-Warnings:
-Note 1003 SELECT a FROM t1 GROUP BY a
-connection con1;
-a
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-set debug_dbug=@old_debug;
-drop table t1;
-#
-# MDEV-408: SHOW EXPLAIN: Some values are chopped off in SHOW EXPLAIN output
-#
-CREATE TABLE t1 (a INT, b VARCHAR(35)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (3989,'Abilene'),(3873,'Akron');
-CREATE TABLE t2 (c INT, d VARCHAR(52) PRIMARY KEY, KEY(c)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (86,'English'),(87,'Russian');
-explain SELECT SUM(a + SLEEP(0.1)) FROM t1 WHERE a IN ( SELECT c FROM t2 WHERE d < b ) OR b < 's';
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 index_subquery PRIMARY,c c 5 func 1 Using index; Using where
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-SELECT SUM(a + SLEEP(0.1)) FROM t1 WHERE a IN ( SELECT c FROM t2 WHERE d < b ) OR b < 's';
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 index_subquery PRIMARY,c c 5 func 1 Using index; Using where
-Warnings:
-Note 1003 SELECT SUM(a + SLEEP(0.1)) FROM t1 WHERE a IN ( SELECT c FROM t2 WHERE d < b ) OR b < 's'
-connection con1;
-SUM(a + SLEEP(0.1))
-7862
-set debug_dbug=@old_debug;
-drop table t1, t2;
-#
-# MDEV-412: SHOW EXPLAIN: Server crashes in JOIN::print_explain on a query with inner join and ORDER BY the same column twice
-#
-CREATE TABLE t1 (a INT PRIMARY KEY, b VARCHAR(3), KEY(b)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-(3795,'USA'),(3913,'USA'),(3846,'ITA'),(4021,'USA'),(4005,'RUS'),(4038,'USA'),
-(3825,'USA'),(3840,'USA'),(3987,'USA'),(3807,'USA'),(3896,'USA'),(4052,'USA'),
-(3973,'USA'),(3982,'ITA'),(3965,'USA'),(3852,'RUS'),(4006,'USA'),(3800,'USA'),
-(4020,'USA'),(4040,'USA'),(3916,'USA'),(3817,'USA'),(3885,'USA'),(3802,'USA'),
-(4009,'ITA'),(3895,'USA'),(3963,'RUS'),(4045,'USA'),(3988,'USA'),(3815,'USA'),
-(4063,'USA'),(3978,'USA'),(4019,'USA'),(3954,'USA'),(3950,'USA'),(3974,'ITA'),
-(4054,'USA'),(4061,'RUS'),(3976,'USA'),(3966,'USA'),(3957,'USA'),(3981,'USA'),
-(3923,'USA'),(3876,'USA'),(3819,'USA'),(3877,'USA'),(3829,'ITA'),(3964,'USA'),
-(4053,'RUS'),(3917,'USA'),(3874,'USA'),(4023,'USA'),(4001,'USA'),(3872,'USA'),
-(3890,'USA'),(3962,'USA'),(3886,'USA'),(4026,'ITA'),(3869,'USA'),(3937,'RUS'),
-(3975,'USA'),(3944,'USA'),(3908,'USA'),(3867,'USA'),(3947,'USA'),(3838,'USA'),
-(3796,'USA'),(3893,'USA'),(3920,'ITA'),(3994,'USA'),(3875,'RUS'),(4011,'USA'),
-(4013,'USA'),(3810,'USA'),(3834,'USA'),(3968,'USA'),(3931,'USA'),(3839,'USA'),
-(4042,'USA'),(4039,'ITA'),(3811,'USA'),(3837,'RUS'),(4041,'USA'),(3884,'USA'),
-(3894,'USA'),(3879,'USA'),(3942,'USA'),(3959,'USA'),(3814,'USA'),(4044,'USA'),
-(3971,'ITA'),(3823,'USA'),(3793,'RUS'),(3855,'USA'),(3905,'USA'),(3865,'USA'),
-(4046,'USA'),(3990,'USA'),(4022,'USA'),(3833,'USA'),(3918,'USA'),(4064,'ITA'),
-(3821,'USA'),(3836,'RUS'),(3921,'USA'),(3914,'USA'),(3888,'USA');
-CREATE TABLE t2 (c VARCHAR(3) PRIMARY KEY) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('USA');
-CREATE TABLE t3 (d VARCHAR(3), e VARCHAR(52), PRIMARY KEY (d,e)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES
-('JPN','Japanese'),('KOR','Korean'),('POL','Polish'),('PRT','Portuguese'),
-('ESP','Spanish'),('FRA','French'),('VNM','Vietnamese');
-explain
-SELECT b AS field1, b AS field2 FROM t1, t2, t3 WHERE d = b ORDER BY field1, field2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1
-1 SIMPLE t1 range b b 6 NULL 107 Using where; Using index
-1 SIMPLE t3 ref PRIMARY PRIMARY 5 test.t1.b 1 Using index
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_do_select';
-SELECT b AS field1, b AS field2 FROM t1, t2, t3 WHERE d = b ORDER BY field1, field2;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 system NULL NULL NULL NULL 1
-1 SIMPLE t1 range b b 6 NULL 107 Using where; Using index
-1 SIMPLE t3 ref PRIMARY PRIMARY 5 test.t1.b 1 Using index
-Warnings:
-Note 1003 SELECT b AS field1, b AS field2 FROM t1, t2, t3 WHERE d = b ORDER BY field1, field2
-connection con1;
-field1 field2
-set debug_dbug=@old_debug;
-DROP TABLE t1,t2,t3;
-#
-# MDEV-423: SHOW EXPLAIN: 'Using where' for a subquery is shown in EXPLAIN, but not in SHOW EXPLAIN output
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (7),(0),(9),(3),(4),(2),(5),(7),(0),(9),(3),(4),(2),(5);
-CREATE TABLE t2 (b INT, c INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-(0,4),(8,6),(1,3),(8,5),(9,3),(24,246),(6,2),(1,9),(6,3),(2,8),
-(4,1),(8,8),(4,8),(4,5),(7,7),(4,5),(1,1),(9,6),(4,2),(8,9);
-create table t3 like t2;
-insert into t3 select * from t2;
-explain
-SELECT max(a+b+c) FROM t1 AS alias1, ( SELECT * FROM t2 ) AS alias
-WHERE EXISTS ( SELECT * FROM t3 WHERE b = c ) OR a <= 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 14
-1 PRIMARY t2 ALL NULL NULL NULL NULL 20
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 20 Using where
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-SELECT max(a+b+c) FROM t1 AS alias1, ( SELECT * FROM t2 ) AS alias
-WHERE EXISTS ( SELECT * FROM t3 WHERE b = c ) OR a <= 10;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 14
-1 PRIMARY t2 ALL NULL NULL NULL NULL 20
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 20 Using where
-Warnings:
-Note 1003 SELECT max(a+b+c) FROM t1 AS alias1, ( SELECT * FROM t2 ) AS alias
-WHERE EXISTS ( SELECT * FROM t3 WHERE b = c ) OR a <= 10
-connection con1;
-max(a+b+c)
-279
-set debug_dbug=@old_debug;
-DROP TABLE t1,t2,t3;
-#
-# MDEV-416: Server crashes in SQL_SELECT::cleanup on EXPLAIN with SUM ( DISTINCT ) in a non-correlated subquery (5.5-show-explain tree)
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (8),(9);
-EXPLAIN SELECT * FROM t1
-WHERE ( 8, 89 ) IN ( SELECT b, SUM( DISTINCT b ) FROM t2 GROUP BY b );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using filesort
-DROP TABLE t1,t2;
-#
-# Check if queries in non-default charsets work.
-#
-set names cp1251;
-select charset('ãû');
-charset('ãû')
-cp1251
-select hex('ãû');
-hex('ãû')
-E3FB
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-select * from t0 where length('ãû') = a;
-connection default;
-set names utf8;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 select * from t0 where length('гы') = a
-set names default;
-connection con1;
-a
-2
-set debug_dbug=@old_debug;
-set names default;
-#
-# MDEV-462: SHOW EXPLAIN: Assertion `table_list->table' fails in find_field_in_table_ref if FOR contains a non-numeric value
-#
-show explain for foo;
-ERROR HY000: You may only use constant expressions in this statement
-#
-# MDEV-411: SHOW EXPLAIN: For dependent subquery EXPLAIN produces type=index, key, 'Using where; Using index',
-# while SHOW EXPLAIN says type=ALL, no key, 'Range checked for each record'
-#
-CREATE TABLE t1 (a INT NOT NULL, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (7),(0);
-CREATE TABLE t2 (b INT NOT NULL) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (0),(8);
-explain
-SELECT SUM(b) FROM ( SELECT * FROM t1 ) AS alias1, t2
-WHERE b <= ANY (
-SELECT a FROM t1
-WHERE a = b + SLEEP(0.2) OR a >= ( SELECT SUM(b) FROM t2 ));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 4 NULL 2 Using index
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT SUBQUERY t1 ALL a NULL NULL NULL 2 Range checked for each record (index map: 0x1)
-4 SUBQUERY t2 ALL NULL NULL NULL NULL 2
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_join_exec_start';
-SELECT SUM(b) FROM ( SELECT * FROM t1 ) AS alias1, t2
-WHERE b <= ANY (
-SELECT a FROM t1
-WHERE a = b + SLEEP(0.2) OR a >= ( SELECT SUM(b) FROM t2 ));
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 4 NULL 2 Using index
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT SUBQUERY t1 ALL a NULL NULL NULL 2 Range checked for each record (index map: 0x1)
-4 SUBQUERY t2 ALL NULL NULL NULL NULL 2
-Warnings:
-Note 1003 SELECT SUM(b) FROM ( SELECT * FROM t1 ) AS alias1, t2
-WHERE b <= ANY (
-SELECT a FROM t1
-WHERE a = b + SLEEP(0.2) OR a >= ( SELECT SUM(b) FROM t2 ))
-connection con1;
-SUM(b)
-0
-set debug_dbug=@old_debug;
-DROP TABLE t1,t2;
-drop table t0;
-#
-# MDEV-5148: Server crashes in print_explain on killing EXPLAIN EXTENDED
-#
-create table t0 (a int not null);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b int);
-insert into t1 select a,a from t0;
-create table t2 as select * from t1;
-set @show_explain_probe_select_id=2;
-set debug_dbug='+d,show_explain_probe_best_ext_lim_search';
-explain
-select * from t0
-where not exists ( select 1 from t1, t2 where t1.b=t2.b and t2.a=t0.a) and a is null;
-connection default;
-kill query $thr2;
-connection con1;
-ERROR 70100: Query execution was interrupted
-drop table t0,t1,t2;
-# End
-connection default;
-disconnect con1;
-set debug_sync='RESET';
diff --git a/mysql-test/r/show_explain_non_select.result b/mysql-test/r/show_explain_non_select.result
deleted file mode 100644
index 6076a848e22..00000000000
--- a/mysql-test/r/show_explain_non_select.result
+++ /dev/null
@@ -1,55 +0,0 @@
-drop table if exists t0, t1;
-SET @old_debug= @@session.debug;
-set debug_sync='RESET';
-connect con2, localhost, root,,;
-connection con2;
-connection default;
-create table t0 (a int) engine=myisam;
-insert into t0 values (1),(2),(3),(4),(5),(6),(7),(8);
-create table t1 (a int, b int, filler char(100), key(a), key(b));
-insert into t1
-select A.a+10*B.a + 10*C.a, A.a+10*B.a + 10*C.a, 'filler'
-from t0 A, t0 B, t0 C;
-#
-# Test SHOW EXPLAIN for single-table DELETE
-#
-connection con2;
-set debug_dbug='+d,show_explain_probe_delete_exec_start';
-delete from t1 where a<10 and b+1>1000;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 1 Using where
-Warnings:
-Note 1003 delete from t1 where a<10 and b+1>1000
-connection con2;
-#
-# Test SHOW EXPLAIN for multi-table DELETE
-#
-set @show_explain_probe_select_id=1;
-set debug_dbug='+d,show_explain_probe_do_select';
-delete t1 from t1, t0 where t0.a=t1.a and t1.b +1 > 1000;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 8 Using where
-1 SIMPLE t1 ref a a 5 test.t0.a 4 Using where
-Warnings:
-Note 1003 delete t1 from t1, t0 where t0.a=t1.a and t1.b +1 > 1000
-connection con2;
-#
-# Test SHOW EXPLAIN for single-table UPDATE
-#
-connection con2;
-set debug_dbug='+d,show_explain_probe_update_exec_start';
-update t1 set filler='filler-data-2' where a<10 and b+1>1000;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 1 Using where
-Warnings:
-Note 1003 update t1 set filler='filler-data-2' where a<10 and b+1>1000
-connection con2;
-drop table t0,t1;
-set debug_dbug=@old_debug;
-set debug_sync='RESET';
diff --git a/mysql-test/r/show_explain_ps.result b/mysql-test/r/show_explain_ps.result
deleted file mode 100644
index fae432e830e..00000000000
--- a/mysql-test/r/show_explain_ps.result
+++ /dev/null
@@ -1,42 +0,0 @@
-truncate table performance_schema.events_statements_history_long;
-truncate table performance_schema.events_stages_history_long;
-drop table if exists t0, t1;
-select * from performance_schema.setup_instruments where name like '%show_explain%';
-NAME ENABLED TIMED
-wait/synch/cond/sql/show_explain YES YES
-stage/sql/Show explain YES YES
-statement/sql/show_explain YES YES
-# We've got no instances
-select * from performance_schema.cond_instances where name like '%show_explain%';
-NAME OBJECT_INSTANCE_BEGIN
-# Check out if our cond is hit.
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-connect con1, localhost, root,,;
-connection con1;
-connection default;
-connection con1;
-set @show_explain_probe_select_id=1;
-set debug_dbug='d,show_explain_probe_join_exec_start';
-select count(*) from t0 where a < 100000;
-connection default;
-show explain for $thr2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-Warnings:
-Note 1003 select count(*) from t0 where a < 100000
-connection con1;
-count(*)
-10
-set debug_dbug='';
-select event_name
-from
-performance_schema.events_stages_history_long
-where
-event_name like '%show explain' and
-thread_id in(select thread_id
-from performance_schema.events_statements_history_long
-where EVENT_NAME='statement/sql/show_explain');
-event_name
-stage/sql/Show explain
-drop table t0;
diff --git a/mysql-test/r/show_function_with_pad_char_to_full_length.result b/mysql-test/r/show_function_with_pad_char_to_full_length.result
deleted file mode 100644
index 785cab7b3e6..00000000000
--- a/mysql-test/r/show_function_with_pad_char_to_full_length.result
+++ /dev/null
@@ -1,24 +0,0 @@
-create function f() returns int return 1;
-show function status;
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-T f T T T T T T T T T
-set sql_mode = 'PAD_CHAR_TO_FULL_LENGTH';
-show function status;
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-T f T T T T T T T T T
-drop function f;
-select @@sql_mode;
-@@sql_mode
-PAD_CHAR_TO_FULL_LENGTH
-create function f() returns int return 1;
-select ROUTINE_NAME from information_schema.ROUTINES where ROUTINE_NAME='f';
-ROUTINE_NAME
-f
-set sql_mode = 'PAD_CHAR_TO_FULL_LENGTH';
-select ROUTINE_NAME from information_schema.ROUTINES where ROUTINE_NAME='f';
-ROUTINE_NAME
-f
-drop function f;
-select @@sql_mode;
-@@sql_mode
-PAD_CHAR_TO_FULL_LENGTH
diff --git a/mysql-test/r/show_grants_with_plugin-7985.result b/mysql-test/r/show_grants_with_plugin-7985.result
deleted file mode 100644
index 81880e5cc40..00000000000
--- a/mysql-test/r/show_grants_with_plugin-7985.result
+++ /dev/null
@@ -1,197 +0,0 @@
-call mtr.add_suppression("password and an authentication plugin");
-#
-# Create a user with mysql_native_password plugin.
-# The user has no password or auth_string set.
-#
-create user u1;
-GRANT SELECT ON mysql.* to u1 IDENTIFIED VIA mysql_native_password;
-select user, host, password, plugin, authentication_string from mysql.user where user = 'u1';
-user host password plugin authentication_string
-u1 %
-#
-# The user's grants should show no password at all.
-#
-show grants for u1;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-#
-# Test to see if connecting with no password is succesful.
-#
-connect con1, localhost, u1,,;
-show grants;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-disconnect con1;
-connection default;
-#
-# Test after flushing privileges.
-#
-flush privileges;
-connect con1, localhost, u1,,;
-show grants;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-disconnect con1;
-connection default;
-#
-# Now add a mysql_native password string in authentication_string.
-#
-GRANT SELECT ON mysql.* to u1 IDENTIFIED VIA mysql_native_password
-USING '*7AFEFD08B6B720E781FB000CAA418F54FA662626';
-select user, host, password, plugin, authentication_string from mysql.user where user = 'u1';
-user host password plugin authentication_string
-u1 % *7AFEFD08B6B720E781FB000CAA418F54FA662626
-#
-# Test to see if connecting with password is succesful.
-#
-connect con1, localhost, u1,'SOMETHING',;
-show grants;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%' IDENTIFIED BY PASSWORD '*7AFEFD08B6B720E781FB000CAA418F54FA662626'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-disconnect con1;
-connection default;
-#
-# Test after flushing privileges.
-#
-flush privileges;
-connect con1, localhost, u1,'SOMETHING',;
-show grants;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%' IDENTIFIED BY PASSWORD '*7AFEFD08B6B720E781FB000CAA418F54FA662626'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-disconnect con1;
-connection default;
-#
-# Now we also set a password for the user.
-#
-set password for u1 = PASSWORD('SOMETHINGELSE');
-select user, host, password, plugin, authentication_string from mysql.user where user = 'u1';
-user host password plugin authentication_string
-u1 % *054B7BBD2B9A553DA560520DCD3F76DA2D81B7C6
-#
-# Here we should use the password field, as that primes over
-# the authentication_string field.
-#
-show grants for u1;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%' IDENTIFIED BY PASSWORD '*054B7BBD2B9A553DA560520DCD3F76DA2D81B7C6'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-#
-# Logging in with the user's password should work.
-#
-connect con1, localhost, u1,'SOMETHINGELSE',;
-show grants;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%' IDENTIFIED BY PASSWORD '*054B7BBD2B9A553DA560520DCD3F76DA2D81B7C6'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-disconnect con1;
-connection default;
-#
-# Reload privileges and test logging in again.
-#
-flush privileges;
-show grants for u1;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%' IDENTIFIED BY PASSWORD '*054B7BBD2B9A553DA560520DCD3F76DA2D81B7C6'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-#
-# Here we connect via the user's password again.
-#
-connect con1, localhost, u1,'SOMETHINGELSE',;
-show grants;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%' IDENTIFIED BY PASSWORD '*054B7BBD2B9A553DA560520DCD3F76DA2D81B7C6'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-disconnect con1;
-connection default;
-#
-# Now we remove the authentication plugin password, flush privileges and
-# try again.
-#
-update mysql.user set authentication_string = '' where user='u1';
-select user, host, password, plugin, authentication_string from mysql.user where user = 'u1';
-user host password plugin authentication_string
-u1 % *054B7BBD2B9A553DA560520DCD3F76DA2D81B7C6
-flush privileges;
-show grants for u1;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%' IDENTIFIED BY PASSWORD '*054B7BBD2B9A553DA560520DCD3F76DA2D81B7C6'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-#
-# Here we connect via the user's password.
-#
-connect con1, localhost, u1,'SOMETHINGELSE',;
-select user, host, password, plugin, authentication_string from mysql.user where user = 'u1';
-user host password plugin authentication_string
-u1 % *054B7BBD2B9A553DA560520DCD3F76DA2D81B7C6
-disconnect con1;
-connection default;
-#
-# Try and set a wrong auth_string password, with mysql_native_password.
-# Make sure it fails.
-#
-GRANT USAGE ON *.* TO u1 IDENTIFIED VIA mysql_native_password USING 'asd';
-ERROR HY000: Password hash should be a 41-digit hexadecimal number
-#
-# Now set a correct password.
-#
-GRANT SELECT ON mysql.* to u1 IDENTIFIED VIA mysql_native_password
-USING '*7AFEFD08B6B720E781FB000CAA418F54FA662626';
-show grants for u1;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%' IDENTIFIED BY PASSWORD '*7AFEFD08B6B720E781FB000CAA418F54FA662626'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-#
-# Test if the user can now use that password instead.
-#
-connect con1, localhost, u1,'SOMETHING',;
-show grants;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%' IDENTIFIED BY PASSWORD '*7AFEFD08B6B720E781FB000CAA418F54FA662626'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-disconnect con1;
-#
-# Test if the user can now use that password instead, after flushing privileges;
-#
-connection default;
-flush privileges;
-connect con1, localhost, u1,'SOMETHING',;
-show grants;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%' IDENTIFIED BY PASSWORD '*7AFEFD08B6B720E781FB000CAA418F54FA662626'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-disconnect con1;
-connection default;
-#
-# Clear all passwords from the user.
-#
-set password for u1 = '';
-select user, host, password, plugin, authentication_string from mysql.user where user = 'u1';
-user host password plugin authentication_string
-u1 %
-#
-# Test no password connect.
-#
-connect con1, localhost, u1,,;
-show grants;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-disconnect con1;
-connection default;
-#
-# Test no password connect, after flushing privileges.
-#
-flush privileges;
-connect con1, localhost, u1,,;
-show grants;
-Grants for u1@%
-GRANT USAGE ON *.* TO 'u1'@'%'
-GRANT SELECT ON `mysql`.* TO 'u1'@'%'
-disconnect con1;
-connection default;
-drop user u1;
diff --git a/mysql-test/r/show_profile.result b/mysql-test/r/show_profile.result
deleted file mode 100644
index 67a07f6cfc9..00000000000
--- a/mysql-test/r/show_profile.result
+++ /dev/null
@@ -1,10 +0,0 @@
-SET profiling = 1;
-SELECT 1;
-1
-1
-SHOW PROFILES;
-Query_ID Duration Query
-1 # SELECT 1
-SHOW PROFILE FOR QUERY 1;
-SHOW PROFILE CPU FOR QUERY 1;
-SET profiling = 0;
diff --git a/mysql-test/r/show_row_order-9226.result b/mysql-test/r/show_row_order-9226.result
deleted file mode 100644
index b8c8de647ef..00000000000
--- a/mysql-test/r/show_row_order-9226.result
+++ /dev/null
@@ -1,80 +0,0 @@
-create table test_table (
-column_number_1 enum('1','2') not null,
-column_number_2 enum('1','2','3','4','5','6','7','8','9','10','11','12') not null,
-column_number_3 varchar(10) not null,
-column_number_4 varchar(10) not null,
-column_number_5 enum(
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa01',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa02',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa03',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa04',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa05',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa06',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa07',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa08',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa09',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa10',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa11',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa12',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa13',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa14',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa15',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa16',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa17',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa18',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa19',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa20',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa21',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa22',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa23',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa24',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa25',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa26',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa27',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa28',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa29',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa30',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa31',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa32',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa33',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa34',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa35',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa36',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa37',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa38',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa39',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa40',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa41',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa42',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa43',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa44',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa45',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa46',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa47',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa48',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa49',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa50',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa51',
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa52'
- ) not null,
-column_number_6 enum('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','65','66','67','68','69','70','71','72','73','74','75','76','77','78','79','80','81','82','83','84','85','86','87','88','89','90','91','92','93','94','95','96','97','98','99','100','101','102','103','104','105','106','107','108','109','110','111','112','113','114','115','116','117','118','119','120','121','122','123','124','125','126','127','128','129','130','131') not null,
-column_number_7 enum('1','2','3','4','5','6','7') not null,
-column_number_8 enum('8') not null,
-column_number_9 enum('9') not null,
-column_number_10 varchar(10) not null,
-column_number_11 enum('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49') not null
-) default charset=utf8mb4;
-show columns from test_table;
-Field Type Null Key Default Extra
-column_number_1 enum('1','2') NO NULL
-column_number_2 enum('1','2','3','4','5','6','7','8','9','10','11','12') NO NULL
-column_number_3 varchar(10) NO NULL
-column_number_4 varchar(10) NO NULL
-column_number_5 enum('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa01','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa02','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa03','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa04','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa05','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa06','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa07','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa08','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa09','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa10','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa11','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa12','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa13','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa14','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa15','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa16','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa17','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa18','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa19','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa20','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa21','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa22','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa23','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa24','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa25','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa26','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa27','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa28','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa29','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa30','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa31','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa32','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa33','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa34','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa35','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa36','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa37','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa38','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa39','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa40','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa41','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa42','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa43','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa44','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa45','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa46','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa47','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa48','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa49','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa50','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa51','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa52') NO NULL
-column_number_6 enum('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','65','66','67','68','69','70','71','72','73','74','75','76','77','78','79','80','81','82','83','84','85','86','87','88','89','90','91','92','93','94','95','96','97','98','99','100','101','102','103','104','105','106','107','108','109','110','111','112','113','114','115','116','117','118','119','120','121','122','123','124','125','126','127','128','129','130','131') NO NULL
-column_number_7 enum('1','2','3','4','5','6','7') NO NULL
-column_number_8 enum('8') NO NULL
-column_number_9 enum('9') NO NULL
-column_number_10 varchar(10) NO NULL
-column_number_11 enum('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49') NO NULL
-drop table test_table;
diff --git a/mysql-test/r/shutdown.result b/mysql-test/r/shutdown.result
deleted file mode 100644
index 7a69f58ffd9..00000000000
--- a/mysql-test/r/shutdown.result
+++ /dev/null
@@ -1,16 +0,0 @@
-create user user1@localhost;
-connect c1,localhost,user1,,;
-shutdown;
-ERROR 42000: Access denied; you need (at least one of) the SHUTDOWN privilege(s) for this operation
-connection default;
-disconnect c1;
-connect c1,localhost,root,,;
-create procedure try_shutdown() shutdown;
-drop procedure try_shutdown;
-shutdown;
-connection default;
-drop user user1@localhost;
-#
-# MDEV-8491 - On shutdown, report the user and the host executed that.
-#
-FOUND 2 /mysqld(\.exe)? \(initiated by: root\[root\] @ localhost \[(::1)?\]\): Normal shutdown/ in mysqld.1.err
diff --git a/mysql-test/r/sighup-6580.result b/mysql-test/r/sighup-6580.result
deleted file mode 100644
index b77a7c6407f..00000000000
--- a/mysql-test/r/sighup-6580.result
+++ /dev/null
@@ -1,3 +0,0 @@
-select 'ok';
-ok
-ok
diff --git a/mysql-test/r/signal.result b/mysql-test/r/signal.result
deleted file mode 100644
index 905842bfb1c..00000000000
--- a/mysql-test/r/signal.result
+++ /dev/null
@@ -1,2394 +0,0 @@
-#
-# PART 1: syntax
-#
-#
-# Test every new reserved and non reserved keywords
-#
-drop table if exists signal_non_reserved;
-create table signal_non_reserved (
-class_origin int,
-subclass_origin int,
-constraint_catalog int,
-constraint_schema int,
-constraint_name int,
-catalog_name int,
-schema_name int,
-table_name int,
-column_name int,
-cursor_name int,
-message_text int,
-sqlcode int
-);
-drop table signal_non_reserved;
-drop table if exists diag_non_reserved;
-create table diag_non_reserved (
-diagnostics int,
-current int,
-stacked int,
-exception int
-);
-drop table diag_non_reserved;
-drop table if exists diag_cond_non_reserved;
-create table diag_cond_non_reserved (
-condition_identifier int,
-condition_number int,
-condition_name int,
-connection_name int,
-message_length int,
-message_octet_length int,
-parameter_mode int,
-parameter_name int,
-parameter_ordinal_position int,
-returned_sqlstate int,
-routine_catalog int,
-routine_name int,
-routine_schema int,
-server_name int,
-specific_name int,
-trigger_catalog int,
-trigger_name int,
-trigger_schema int
-);
-drop table diag_cond_non_reserved;
-drop table if exists diag_stmt_non_reserved;
-create table diag_stmt_non_reserved (
-number int,
-more int,
-command_function int,
-command_function_code int,
-dynamic_function int,
-dynamic_function_code int,
-row_count int,
-transactions_committed int,
-transactions_rolled_back int,
-transaction_active int
-);
-drop table diag_stmt_non_reserved;
-drop table if exists test_reserved;
-create table test_reserved (signal int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'signal int)' at line 1
-create table test_reserved (resignal int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'resignal int)' at line 1
-create table test_reserved (condition int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'condition int)' at line 1
-#
-# Test the SIGNAL syntax
-#
-drop procedure if exists test_invalid;
-drop procedure if exists test_signal_syntax;
-drop function if exists test_signal_func;
-create procedure test_invalid()
-begin
-SIGNAL;
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL foo;
-end $$
-ERROR 42000: Undefined CONDITION: foo
-create procedure test_invalid()
-begin
-DECLARE foo CONDITION FOR 1234;
-SIGNAL foo;
-end $$
-ERROR HY000: SIGNAL/RESIGNAL can only use a CONDITION defined with SQLSTATE
-create procedure test_signal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo;
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_signal_syntax()
-begin
-SIGNAL SQLSTATE '23000';
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_signal_syntax()
-begin
-SIGNAL SQLSTATE VALUE '23000';
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_signal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET CLASS_ORIGIN = 'foo';
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_signal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET SUBCLASS_ORIGIN = 'foo';
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_signal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET CONSTRAINT_CATALOG = 'foo';
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_signal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET CONSTRAINT_SCHEMA = 'foo';
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_signal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET CONSTRAINT_NAME = 'foo';
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_signal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET CATALOG_NAME = 'foo';
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_signal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET SCHEMA_NAME = 'foo';
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_signal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET TABLE_NAME = 'foo';
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_signal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET COLUMN_NAME = 'foo';
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_signal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET CURSOR_NAME = 'foo';
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_signal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MESSAGE_TEXT = 'foo';
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_signal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = 'foo';
-end $$
-drop procedure test_signal_syntax $$
-create procedure test_invalid()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET CLASS_ORIGIN = 'foo', CLASS_ORIGIN = 'bar';
-end $$
-ERROR 42000: Duplicate condition information item 'CLASS_ORIGIN'
-create procedure test_invalid()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MESSAGE_TEXT = 'foo', MESSAGE_TEXT = 'bar';
-end $$
-ERROR 42000: Duplicate condition information item 'MESSAGE_TEXT'
-create procedure test_invalid()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = 'foo', MYSQL_ERRNO = 'bar';
-end $$
-ERROR 42000: Duplicate condition information item 'MYSQL_ERRNO'
-create procedure test_signal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET
-CLASS_ORIGIN = 'foo',
-SUBCLASS_ORIGIN = 'foo',
-CONSTRAINT_CATALOG = 'foo',
-CONSTRAINT_SCHEMA = 'foo',
-CONSTRAINT_NAME = 'foo',
-CATALOG_NAME = 'foo',
-SCHEMA_NAME = 'foo',
-TABLE_NAME = 'foo',
-COLUMN_NAME = 'foo',
-CURSOR_NAME = 'foo',
-MESSAGE_TEXT = 'foo',
-MYSQL_ERRNO = 'foo';
-end $$
-drop procedure test_signal_syntax $$
-SIGNAL SQLSTATE '00000' $$
-ERROR 42000: Bad SQLSTATE: '00000'
-SIGNAL SQLSTATE '00001' $$
-ERROR 42000: Bad SQLSTATE: '00001'
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '00000';
-end $$
-ERROR 42000: Bad SQLSTATE: '00000'
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '00001';
-end $$
-ERROR 42000: Bad SQLSTATE: '00001'
-#
-# Test conditions information that SIGNAL can not set
-#
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET bla_bla = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'bla_bla = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET CONDITION_IDENTIFIER = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CONDITION_IDENTIFIER = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET CONDITION_NUMBER = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CONDITION_NUMBER = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET CONNECTION_NAME = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CONNECTION_NAME = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET MESSAGE_LENGTH = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'MESSAGE_LENGTH = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET MESSAGE_OCTET_LENGTH = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'MESSAGE_OCTET_LENGTH = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET PARAMETER_MODE = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PARAMETER_MODE = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET PARAMETER_NAME = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PARAMETER_NAME = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET PARAMETER_ORDINAL_POSITION = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PARAMETER_ORDINAL_POSITION = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET RETURNED_SQLSTATE = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RETURNED_SQLSTATE = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET ROUTINE_CATALOG = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ROUTINE_CATALOG = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET ROUTINE_NAME = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ROUTINE_NAME = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET ROUTINE_SCHEMA = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ROUTINE_SCHEMA = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET SERVER_NAME = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SERVER_NAME = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET SPECIFIC_NAME = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SPECIFIC_NAME = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET TRIGGER_CATALOG = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TRIGGER_CATALOG = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET TRIGGER_NAME = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TRIGGER_NAME = 'foo';
-end' at line 3
-create procedure test_invalid()
-begin
-SIGNAL SQLSTATE '12345' SET TRIGGER_SCHEMA = 'foo';
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TRIGGER_SCHEMA = 'foo';
-end' at line 3
-#
-# Test the RESIGNAL syntax
-#
-drop procedure if exists test_invalid;
-drop procedure if exists test_resignal_syntax;
-create procedure test_invalid()
-begin
-RESIGNAL foo;
-end $$
-ERROR 42000: Undefined CONDITION: foo
-create procedure test_resignal_syntax()
-begin
-RESIGNAL;
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_invalid()
-begin
-DECLARE foo CONDITION FOR 1234;
-RESIGNAL foo;
-end $$
-ERROR HY000: SIGNAL/RESIGNAL can only use a CONDITION defined with SQLSTATE
-create procedure test_resignal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo;
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-RESIGNAL SQLSTATE '23000';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-RESIGNAL SQLSTATE VALUE '23000';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-RESIGNAL SET CLASS_ORIGIN = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET CLASS_ORIGIN = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-RESIGNAL SET SUBCLASS_ORIGIN = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET SUBCLASS_ORIGIN = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-RESIGNAL SET CONSTRAINT_CATALOG = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET CONSTRAINT_CATALOG = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-RESIGNAL SET CONSTRAINT_SCHEMA = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET CONSTRAINT_SCHEMA = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-RESIGNAL SET CONSTRAINT_NAME = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET CONSTRAINT_NAME = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-RESIGNAL SET CATALOG_NAME = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET CATALOG_NAME = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-RESIGNAL SET SCHEMA_NAME = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET SCHEMA_NAME = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-RESIGNAL SET TABLE_NAME = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET TABLE_NAME = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-RESIGNAL SET COLUMN_NAME = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET COLUMN_NAME = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-RESIGNAL SET CURSOR_NAME = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET CURSOR_NAME = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-RESIGNAL SET MESSAGE_TEXT = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET MESSAGE_TEXT = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-RESIGNAL SET MYSQL_ERRNO = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_resignal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET MYSQL_ERRNO = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_invalid()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET CLASS_ORIGIN = 'foo', CLASS_ORIGIN = 'bar';
-end $$
-ERROR 42000: Duplicate condition information item 'CLASS_ORIGIN'
-create procedure test_invalid()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET MESSAGE_TEXT = 'foo', MESSAGE_TEXT = 'bar';
-end $$
-ERROR 42000: Duplicate condition information item 'MESSAGE_TEXT'
-create procedure test_invalid()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET MYSQL_ERRNO = 'foo', MYSQL_ERRNO = 'bar';
-end $$
-ERROR 42000: Duplicate condition information item 'MYSQL_ERRNO'
-create procedure test_resignal_syntax()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-RESIGNAL foo SET
-CLASS_ORIGIN = 'foo',
-SUBCLASS_ORIGIN = 'foo',
-CONSTRAINT_CATALOG = 'foo',
-CONSTRAINT_SCHEMA = 'foo',
-CONSTRAINT_NAME = 'foo',
-CATALOG_NAME = 'foo',
-SCHEMA_NAME = 'foo',
-TABLE_NAME = 'foo',
-COLUMN_NAME = 'foo',
-CURSOR_NAME = 'foo',
-MESSAGE_TEXT = 'foo';
-end $$
-drop procedure test_resignal_syntax $$
-create procedure test_invalid()
-begin
-RESIGNAL SQLSTATE '00000';
-end $$
-ERROR 42000: Bad SQLSTATE: '00000'
-create procedure test_invalid()
-begin
-RESIGNAL SQLSTATE '00001';
-end $$
-ERROR 42000: Bad SQLSTATE: '00001'
-#
-# PART 2: non preparable statements
-#
-prepare stmt from 'SIGNAL SQLSTATE \'23000\'';
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-prepare stmt from 'RESIGNAL SQLSTATE \'23000\'';
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-#
-# PART 3: runtime execution
-#
-drop procedure if exists test_signal;
-drop procedure if exists test_resignal;
-drop table if exists t_warn;
-drop table if exists t_cursor;
-create table t_warn(a integer(2));
-create table t_cursor(a integer);
-#
-# SIGNAL can also appear in a query
-#
-SIGNAL foo;
-ERROR 42000: Undefined CONDITION: foo
-SIGNAL SQLSTATE '01000';
-Warnings:
-Warning 1642 Unhandled user-defined warning condition
-SIGNAL SQLSTATE '02000';
-ERROR 02000: Unhandled user-defined not found condition
-SIGNAL SQLSTATE '23000';
-ERROR 23000: Unhandled user-defined exception condition
-SIGNAL SQLSTATE VALUE '23000';
-ERROR 23000: Unhandled user-defined exception condition
-SIGNAL SQLSTATE 'HY000' SET MYSQL_ERRNO = 65536;
-ERROR 42000: Variable 'MYSQL_ERRNO' can't be set to the value of '65536'
-SIGNAL SQLSTATE 'HY000' SET MYSQL_ERRNO = 99999;
-ERROR 42000: Variable 'MYSQL_ERRNO' can't be set to the value of '99999'
-SIGNAL SQLSTATE 'HY000' SET MYSQL_ERRNO = 4294967295;
-ERROR 42000: Variable 'MYSQL_ERRNO' can't be set to the value of '4294967295'
-SIGNAL SQLSTATE 'HY000' SET MYSQL_ERRNO = 0;
-ERROR 42000: Variable 'MYSQL_ERRNO' can't be set to the value of '0'
-SIGNAL SQLSTATE 'HY000' SET MYSQL_ERRNO = -1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1' at line 1
-SIGNAL SQLSTATE 'HY000' SET MYSQL_ERRNO = 65535;
-ERROR 42000: Variable 'MYSQL_ERRNO' can't be set to the value of '65535'
-SIGNAL SQLSTATE 'HY000' SET MYSQL_ERRNO = 65534;
-ERROR HY000: Unhandled user-defined exception condition
-#
-# RESIGNAL can also appear in a query
-#
-RESIGNAL;
-ERROR 0K000: RESIGNAL when handler not active
-RESIGNAL foo;
-ERROR 42000: Undefined CONDITION: foo
-RESIGNAL SQLSTATE '12345';
-ERROR 0K000: RESIGNAL when handler not active
-RESIGNAL SQLSTATE VALUE '12345';
-ERROR 0K000: RESIGNAL when handler not active
-#
-# Different kind of SIGNAL conditions
-#
-create procedure test_signal()
-begin
-# max range
-DECLARE foo CONDITION FOR SQLSTATE 'AABBB';
-SIGNAL foo SET MYSQL_ERRNO = 65534;
-end $$
-call test_signal() $$
-ERROR AABBB: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# max range
-DECLARE foo CONDITION FOR SQLSTATE 'AABBB';
-SIGNAL foo SET MYSQL_ERRNO = 65536;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'MYSQL_ERRNO' can't be set to the value of '65536'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# Error
-DECLARE foo CONDITION FOR SQLSTATE '99999';
-SIGNAL foo SET MYSQL_ERRNO = 9999;
-end $$
-call test_signal() $$
-ERROR 99999: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# warning
-DECLARE too_few_records CONDITION FOR SQLSTATE '01000';
-SIGNAL too_few_records SET MYSQL_ERRNO = 1261;
-end $$
-call test_signal() $$
-Warnings:
-Warning 1261 Unhandled user-defined warning condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# Not found
-DECLARE sp_fetch_no_data CONDITION FOR SQLSTATE '02000';
-SIGNAL sp_fetch_no_data SET MYSQL_ERRNO = 1329;
-end $$
-call test_signal() $$
-ERROR 02000: Unhandled user-defined not found condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# Error
-DECLARE sp_cursor_already_open CONDITION FOR SQLSTATE '24000';
-SIGNAL sp_cursor_already_open SET MYSQL_ERRNO = 1325;
-end $$
-call test_signal() $$
-ERROR 24000: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# Severe error
-DECLARE lock_deadlock CONDITION FOR SQLSTATE '40001';
-SIGNAL lock_deadlock SET MYSQL_ERRNO = 1213;
-end $$
-call test_signal() $$
-ERROR 40001: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# Unknown -> error
-DECLARE foo CONDITION FOR SQLSTATE "99999";
-SIGNAL foo;
-end $$
-call test_signal() $$
-ERROR 99999: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# warning, no subclass
-DECLARE warn CONDITION FOR SQLSTATE "01000";
-SIGNAL warn;
-end $$
-call test_signal() $$
-Warnings:
-Warning 1642 Unhandled user-defined warning condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# warning, with subclass
-DECLARE warn CONDITION FOR SQLSTATE "01123";
-SIGNAL warn;
-end $$
-call test_signal() $$
-Warnings:
-Warning 1642 Unhandled user-defined warning condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# Not found, no subclass
-DECLARE not_found CONDITION FOR SQLSTATE "02000";
-SIGNAL not_found;
-end $$
-call test_signal() $$
-ERROR 02000: Unhandled user-defined not found condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# Not found, with subclass
-DECLARE not_found CONDITION FOR SQLSTATE "02XXX";
-SIGNAL not_found;
-end $$
-call test_signal() $$
-ERROR 02XXX: Unhandled user-defined not found condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# Error, no subclass
-DECLARE error CONDITION FOR SQLSTATE "12000";
-SIGNAL error;
-end $$
-call test_signal() $$
-ERROR 12000: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# Error, with subclass
-DECLARE error CONDITION FOR SQLSTATE "12ABC";
-SIGNAL error;
-end $$
-call test_signal() $$
-ERROR 12ABC: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# Severe error, no subclass
-DECLARE error CONDITION FOR SQLSTATE "40000";
-SIGNAL error;
-end $$
-call test_signal() $$
-ERROR 40000: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-# Severe error, with subclass
-DECLARE error CONDITION FOR SQLSTATE "40001";
-SIGNAL error;
-end $$
-call test_signal() $$
-ERROR 40001: Unhandled user-defined exception condition
-drop procedure test_signal $$
-#
-# Test the scope of condition
-#
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '99999';
-begin
-DECLARE foo CONDITION FOR 8888;
-end;
-SIGNAL foo SET MYSQL_ERRNO=9999; /* outer */
-end $$
-call test_signal() $$
-ERROR 99999: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR 9999;
-begin
-DECLARE foo CONDITION FOR SQLSTATE '88888';
-SIGNAL foo SET MYSQL_ERRNO=8888; /* inner */
-end;
-end $$
-call test_signal() $$
-ERROR 88888: Unhandled user-defined exception condition
-drop procedure test_signal $$
-#
-# Test SET MYSQL_ERRNO
-#
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '99999';
-SIGNAL foo SET MYSQL_ERRNO = 1111;
-end $$
-call test_signal() $$
-ERROR 99999: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE warn CONDITION FOR SQLSTATE "01000";
-SIGNAL warn SET MYSQL_ERRNO = 1111;
-end $$
-call test_signal() $$
-Warnings:
-Warning 1111 Unhandled user-defined warning condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE not_found CONDITION FOR SQLSTATE "02000";
-SIGNAL not_found SET MYSQL_ERRNO = 1111;
-end $$
-call test_signal() $$
-ERROR 02000: Unhandled user-defined not found condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE "55000";
-SIGNAL error SET MYSQL_ERRNO = 1111;
-end $$
-call test_signal() $$
-ERROR 55000: Unhandled user-defined exception condition
-drop procedure test_signal $$
-#
-# Test SET MESSAGE_TEXT
-#
-SIGNAL SQLSTATE '77777' SET MESSAGE_TEXT='' $$
-ERROR 77777:
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '77777';
-SIGNAL foo SET
-MESSAGE_TEXT = "",
-MYSQL_ERRNO=5678;
-end $$
-call test_signal() $$
-ERROR 77777:
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '99999';
-SIGNAL foo SET
-MESSAGE_TEXT = "Something bad happened",
-MYSQL_ERRNO=9999;
-end $$
-call test_signal() $$
-ERROR 99999: Something bad happened
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE warn CONDITION FOR SQLSTATE "01000";
-SIGNAL warn SET MESSAGE_TEXT = "Something bad happened";
-end $$
-call test_signal() $$
-Warnings:
-Warning 1642 Something bad happened
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE not_found CONDITION FOR SQLSTATE "02000";
-SIGNAL not_found SET MESSAGE_TEXT = "Something bad happened";
-end $$
-call test_signal() $$
-ERROR 02000: Something bad happened
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE "55000";
-SIGNAL error SET MESSAGE_TEXT = "Something bad happened";
-end $$
-call test_signal() $$
-ERROR 55000: Something bad happened
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE something CONDITION FOR SQLSTATE "01000";
-SIGNAL something SET MESSAGE_TEXT = _utf8 "This is a UTF8 text";
-end $$
-call test_signal() $$
-Warnings:
-Warning 1642 This is a UTF8 text
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE something CONDITION FOR SQLSTATE "01000";
-SIGNAL something SET MESSAGE_TEXT = "";
-end $$
-call test_signal() $$
-Warnings:
-Warning 1642
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE warn CONDITION FOR SQLSTATE "01111";
-SIGNAL warn SET MESSAGE_TEXT = "á a";
-end $$
-call test_signal() $$
-Warnings:
-Warning 1642 á a
-show warnings $$
-Level Code Message
-Warning 1642 á a
-drop procedure test_signal $$
-#
-# Test SET complex expressions
-#
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE '99999';
-SIGNAL error SET
-MYSQL_ERRNO = NULL;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'MYSQL_ERRNO' can't be set to the value of 'NULL'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE '99999';
-SIGNAL error SET
-CLASS_ORIGIN = NULL;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'CLASS_ORIGIN' can't be set to the value of 'NULL'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE '99999';
-SIGNAL error SET
-SUBCLASS_ORIGIN = NULL;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'SUBCLASS_ORIGIN' can't be set to the value of 'NULL'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE '99999';
-SIGNAL error SET
-CONSTRAINT_CATALOG = NULL;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'CONSTRAINT_CATALOG' can't be set to the value of 'NULL'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE '99999';
-SIGNAL error SET
-CONSTRAINT_SCHEMA = NULL;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'CONSTRAINT_SCHEMA' can't be set to the value of 'NULL'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE '99999';
-SIGNAL error SET
-CONSTRAINT_NAME = NULL;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'CONSTRAINT_NAME' can't be set to the value of 'NULL'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE '99999';
-SIGNAL error SET
-CATALOG_NAME = NULL;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'CATALOG_NAME' can't be set to the value of 'NULL'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE '99999';
-SIGNAL error SET
-SCHEMA_NAME = NULL;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'SCHEMA_NAME' can't be set to the value of 'NULL'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE '99999';
-SIGNAL error SET
-TABLE_NAME = NULL;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'TABLE_NAME' can't be set to the value of 'NULL'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE '99999';
-SIGNAL error SET
-COLUMN_NAME = NULL;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'COLUMN_NAME' can't be set to the value of 'NULL'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE '99999';
-SIGNAL error SET
-CURSOR_NAME = NULL;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'CURSOR_NAME' can't be set to the value of 'NULL'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE '99999';
-SIGNAL error SET
-MESSAGE_TEXT = NULL;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'MESSAGE_TEXT' can't be set to the value of 'NULL'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE something CONDITION FOR SQLSTATE '99999';
-DECLARE message_text VARCHAR(64) DEFAULT "Local string variable";
-DECLARE sqlcode INTEGER DEFAULT 1234;
-SIGNAL something SET
-MESSAGE_TEXT = message_text,
-MYSQL_ERRNO = sqlcode;
-end $$
-call test_signal() $$
-ERROR 99999: Local string variable
-drop procedure test_signal $$
-create procedure test_signal(message_text VARCHAR(64), sqlcode INTEGER)
-begin
-DECLARE something CONDITION FOR SQLSTATE "12345";
-SIGNAL something SET
-MESSAGE_TEXT = message_text,
-MYSQL_ERRNO = sqlcode;
-end $$
-call test_signal("Parameter string", NULL) $$
-ERROR 42000: Variable 'MYSQL_ERRNO' can't be set to the value of 'NULL'
-call test_signal(NULL, 1234) $$
-ERROR 42000: Variable 'MESSAGE_TEXT' can't be set to the value of 'NULL'
-call test_signal("Parameter string", 5678) $$
-ERROR 12345: Parameter string
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE something CONDITION FOR SQLSTATE "AABBB";
-SIGNAL something SET
-MESSAGE_TEXT = @message_text,
-MYSQL_ERRNO = @sqlcode;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'MESSAGE_TEXT' can't be set to the value of 'NULL'
-set @sqlcode= 12 $$
-call test_signal() $$
-ERROR 42000: Variable 'MESSAGE_TEXT' can't be set to the value of 'NULL'
-set @message_text= "User variable" $$
-call test_signal() $$
-ERROR AABBB: User variable
-drop procedure test_signal $$
-create procedure test_invalid()
-begin
-DECLARE something CONDITION FOR SQLSTATE "AABBB";
-SIGNAL something SET
-MESSAGE_TEXT = @message_text := 'illegal',
-MYSQL_ERRNO = @sqlcode := 1234;
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '
-MYSQL_ERRNO = @sqlcode := 1234;
-end' at line 5
-create procedure test_signal()
-begin
-DECLARE aaa VARCHAR(64);
-DECLARE bbb VARCHAR(64);
-DECLARE ccc VARCHAR(64);
-DECLARE ddd VARCHAR(64);
-DECLARE eee VARCHAR(64);
-DECLARE fff VARCHAR(64);
-DECLARE ggg VARCHAR(64);
-DECLARE hhh VARCHAR(64);
-DECLARE iii VARCHAR(64);
-DECLARE jjj VARCHAR(64);
-DECLARE kkk VARCHAR(64);
-DECLARE warn CONDITION FOR SQLSTATE "01234";
-set aaa= repeat("A", 64);
-set bbb= repeat("B", 64);
-set ccc= repeat("C", 64);
-set ddd= repeat("D", 64);
-set eee= repeat("E", 64);
-set fff= repeat("F", 64);
-set ggg= repeat("G", 64);
-set hhh= repeat("H", 64);
-set iii= repeat("I", 64);
-set jjj= repeat("J", 64);
-set kkk= repeat("K", 64);
-SIGNAL warn SET
-CLASS_ORIGIN = aaa,
-SUBCLASS_ORIGIN = bbb,
-CONSTRAINT_CATALOG = ccc,
-CONSTRAINT_SCHEMA = ddd,
-CONSTRAINT_NAME = eee,
-CATALOG_NAME = fff,
-SCHEMA_NAME = ggg,
-TABLE_NAME = hhh,
-COLUMN_NAME = iii,
-CURSOR_NAME = jjj,
-MESSAGE_TEXT = kkk,
-MYSQL_ERRNO = 65534;
-end $$
-call test_signal() $$
-Warnings:
-Warning 65534 KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE warn CONDITION FOR SQLSTATE "01234";
-SIGNAL warn SET
-MYSQL_ERRNO = 999999999999999999999999999999999999999999999999999;
-end $$
-call test_signal() $$
-ERROR 42000: Variable 'MYSQL_ERRNO' can't be set to the value of '999999999999999999999999999999999999999999999999999'
-drop procedure test_signal $$
-SET sql_mode= '' $$
-create procedure test_signal()
-begin
-DECLARE aaax VARCHAR(65);
-DECLARE bbbx VARCHAR(65);
-DECLARE cccx VARCHAR(65);
-DECLARE dddx VARCHAR(65);
-DECLARE eeex VARCHAR(65);
-DECLARE fffx VARCHAR(65);
-DECLARE gggx VARCHAR(65);
-DECLARE hhhx VARCHAR(65);
-DECLARE iiix VARCHAR(65);
-DECLARE jjjx VARCHAR(65);
-DECLARE kkkx VARCHAR(65);
-DECLARE lllx VARCHAR(129);
-DECLARE warn CONDITION FOR SQLSTATE "01234";
-set aaax= concat(repeat("A", 64), "X");
-set bbbx= concat(repeat("B", 64), "X");
-set cccx= concat(repeat("C", 64), "X");
-set dddx= concat(repeat("D", 64), "X");
-set eeex= concat(repeat("E", 64), "X");
-set fffx= concat(repeat("F", 64), "X");
-set gggx= concat(repeat("G", 64), "X");
-set hhhx= concat(repeat("H", 64), "X");
-set iiix= concat(repeat("I", 64), "X");
-set jjjx= concat(repeat("J", 64), "X");
-set kkkx= concat(repeat("K", 64), "X");
-set lllx= concat(repeat("1", 100),
-repeat("2", 20),
-repeat("8", 8),
-"X");
-SIGNAL warn SET
-CLASS_ORIGIN = aaax,
-SUBCLASS_ORIGIN = bbbx,
-CONSTRAINT_CATALOG = cccx,
-CONSTRAINT_SCHEMA = dddx,
-CONSTRAINT_NAME = eeex,
-CATALOG_NAME = fffx,
-SCHEMA_NAME = gggx,
-TABLE_NAME = hhhx,
-COLUMN_NAME = iiix,
-CURSOR_NAME = jjjx,
-MESSAGE_TEXT = lllx,
-MYSQL_ERRNO = 10000;
-end $$
-call test_signal() $$
-Warnings:
-Warning 1647 Data truncated for condition item 'CLASS_ORIGIN'
-Warning 1647 Data truncated for condition item 'SUBCLASS_ORIGIN'
-Warning 1647 Data truncated for condition item 'CONSTRAINT_CATALOG'
-Warning 1647 Data truncated for condition item 'CONSTRAINT_SCHEMA'
-Warning 1647 Data truncated for condition item 'CONSTRAINT_NAME'
-Warning 1647 Data truncated for condition item 'CATALOG_NAME'
-Warning 1647 Data truncated for condition item 'SCHEMA_NAME'
-Warning 1647 Data truncated for condition item 'TABLE_NAME'
-Warning 1647 Data truncated for condition item 'COLUMN_NAME'
-Warning 1647 Data truncated for condition item 'CURSOR_NAME'
-Warning 1647 Data truncated for condition item 'MESSAGE_TEXT'
-Warning 10000 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112222222222222222222288888888
-drop procedure test_signal $$
-set sql_mode = DEFAULT $$
-create procedure test_signal()
-begin
-DECLARE warn CONDITION FOR SQLSTATE "01234";
-DECLARE CONTINUE HANDLER for SQLSTATE "01234"
- begin
-select "Caught by SQLSTATE";
-end;
-SIGNAL warn SET
-MESSAGE_TEXT = "Raising a warning",
-MYSQL_ERRNO = 1012;
-end $$
-call test_signal() $$
-Caught by SQLSTATE
-Caught by SQLSTATE
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE warn CONDITION FOR SQLSTATE "01234";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "Caught by number";
-end;
-SIGNAL warn SET
-MESSAGE_TEXT = "Raising a warning",
-MYSQL_ERRNO = 1012;
-end $$
-call test_signal() $$
-Caught by number
-Caught by number
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE warn CONDITION FOR SQLSTATE "01234";
-DECLARE CONTINUE HANDLER for SQLWARNING
-begin
-select "Caught by SQLWARNING";
-end;
-SIGNAL warn SET
-MESSAGE_TEXT = "Raising a warning",
-MYSQL_ERRNO = 1012;
-end $$
-call test_signal() $$
-Caught by SQLWARNING
-Caught by SQLWARNING
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE not_found CONDITION FOR SQLSTATE "02ABC";
-DECLARE CONTINUE HANDLER for SQLSTATE "02ABC"
- begin
-select "Caught by SQLSTATE";
-end;
-SIGNAL not_found SET
-MESSAGE_TEXT = "Raising a not found",
-MYSQL_ERRNO = 1012;
-end $$
-call test_signal() $$
-Caught by SQLSTATE
-Caught by SQLSTATE
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE not_found CONDITION FOR SQLSTATE "02ABC";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "Caught by number";
-end;
-SIGNAL not_found SET
-MESSAGE_TEXT = "Raising a not found",
-MYSQL_ERRNO = 1012;
-end $$
-call test_signal() $$
-Caught by number
-Caught by number
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE not_found CONDITION FOR SQLSTATE "02ABC";
-DECLARE CONTINUE HANDLER for NOT FOUND
-begin
-select "Caught by NOT FOUND";
-end;
-SIGNAL not_found SET
-MESSAGE_TEXT = "Raising a not found",
-MYSQL_ERRNO = 1012;
-end $$
-call test_signal() $$
-Caught by NOT FOUND
-Caught by NOT FOUND
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE "55555";
-DECLARE CONTINUE HANDLER for SQLSTATE "55555"
- begin
-select "Caught by SQLSTATE";
-end;
-SIGNAL error SET
-MESSAGE_TEXT = "Raising an error",
-MYSQL_ERRNO = 1012;
-end $$
-call test_signal() $$
-Caught by SQLSTATE
-Caught by SQLSTATE
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE "55555";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "Caught by number";
-end;
-SIGNAL error SET
-MESSAGE_TEXT = "Raising an error",
-MYSQL_ERRNO = 1012;
-end $$
-call test_signal() $$
-Caught by number
-Caught by number
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE error CONDITION FOR SQLSTATE "55555";
-DECLARE CONTINUE HANDLER for SQLEXCEPTION
-begin
-select "Caught by SQLEXCEPTION";
-end;
-SIGNAL error SET
-MESSAGE_TEXT = "Raising an error",
-MYSQL_ERRNO = 1012;
-end $$
-call test_signal() $$
-Caught by SQLEXCEPTION
-Caught by SQLEXCEPTION
-drop procedure test_signal $$
-#
-# Test where SIGNAL can be used
-#
-
-# RETURN statement clears Diagnostics Area, thus
-# the warnings raised in a stored function are not
-# visible outsidef the stored function. So, we're using
-# @@warning_count variable to check that SIGNAL succeeded.
-
-create function test_signal_func() returns integer
-begin
-DECLARE v INT;
-DECLARE warn CONDITION FOR SQLSTATE "01XXX";
-SIGNAL warn SET
-MESSAGE_TEXT = "This function SIGNAL a warning",
-MYSQL_ERRNO = 1012;
-SELECT @@warning_count INTO v;
-return v;
-end $$
-select test_signal_func() $$
-test_signal_func()
-1
-drop function test_signal_func $$
-create function test_signal_func() returns integer
-begin
-DECLARE not_found CONDITION FOR SQLSTATE "02XXX";
-SIGNAL not_found SET
-MESSAGE_TEXT = "This function SIGNAL not found",
-MYSQL_ERRNO = 1012;
-return 5;
-end $$
-select test_signal_func() $$
-ERROR 02XXX: This function SIGNAL not found
-drop function test_signal_func $$
-create function test_signal_func() returns integer
-begin
-DECLARE error CONDITION FOR SQLSTATE "50000";
-SIGNAL error SET
-MESSAGE_TEXT = "This function SIGNAL an error",
-MYSQL_ERRNO = 1012;
-return 5;
-end $$
-select test_signal_func() $$
-ERROR 50000: This function SIGNAL an error
-drop function test_signal_func $$
-drop table if exists t1 $$
-create table t1 (a integer) $$
-create trigger t1_ai after insert on t1 for each row
-begin
-DECLARE msg VARCHAR(128);
-DECLARE warn CONDITION FOR SQLSTATE "01XXX";
-set msg= concat("This trigger SIGNAL a warning, a=", NEW.a);
-SIGNAL warn SET
-MESSAGE_TEXT = msg,
-MYSQL_ERRNO = 1012;
-end $$
-insert into t1 values (1), (2) $$
-drop trigger t1_ai $$
-create trigger t1_ai after insert on t1 for each row
-begin
-DECLARE msg VARCHAR(128);
-DECLARE not_found CONDITION FOR SQLSTATE "02XXX";
-set msg= concat("This trigger SIGNAL a not found, a=", NEW.a);
-SIGNAL not_found SET
-MESSAGE_TEXT = msg,
-MYSQL_ERRNO = 1012;
-end $$
-insert into t1 values (3), (4) $$
-ERROR 02XXX: This trigger SIGNAL a not found, a=3
-drop trigger t1_ai $$
-create trigger t1_ai after insert on t1 for each row
-begin
-DECLARE msg VARCHAR(128);
-DECLARE error CONDITION FOR SQLSTATE "03XXX";
-set msg= concat("This trigger SIGNAL an error, a=", NEW.a);
-SIGNAL error SET
-MESSAGE_TEXT = msg,
-MYSQL_ERRNO = 1012;
-end $$
-insert into t1 values (5), (6) $$
-ERROR 03XXX: This trigger SIGNAL an error, a=5
-drop table t1 $$
-create table t1 (errno integer, msg varchar(128)) $$
-create trigger t1_ai after insert on t1 for each row
-begin
-DECLARE warn CONDITION FOR SQLSTATE "01XXX";
-SIGNAL warn SET
-MESSAGE_TEXT = NEW.msg,
-MYSQL_ERRNO = NEW.errno;
-end $$
-insert into t1 set errno=1012, msg='Warning message 1 in trigger' $$
-insert into t1 set errno=1013, msg='Warning message 2 in trigger' $$
-drop table t1 $$
-drop table if exists t1 $$
-drop procedure if exists p1 $$
-drop function if exists f1 $$
-create table t1 (s1 int) $$
-insert into t1 values (1) $$
-create procedure p1()
-begin
-declare a int;
-declare c cursor for select f1() from t1;
-declare continue handler for sqlstate '03000'
- select "caught 03000";
-declare continue handler for 1326
-select "caught cursor is not open";
-select "Before open";
-open c;
-select "Before fetch";
-fetch c into a;
-select "Before close";
-close c;
-end $$
-create function f1() returns int
-begin
-signal sqlstate '03000';
-return 5;
-end $$
-drop table t1 $$
-drop procedure p1 $$
-drop function f1 $$
-#
-# Test the RESIGNAL runtime
-#
-create procedure test_resignal()
-begin
-DECLARE warn CONDITION FOR SQLSTATE "01234";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL;
-select "after RESIGNAL";
-end;
-SIGNAL warn SET
-MESSAGE_TEXT = "Raising a warning",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-after RESIGNAL
-after RESIGNAL
-Warnings:
-Warning 1012 Raising a warning
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE not_found CONDITION FOR SQLSTATE "02222";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL;
-select "after RESIGNAL";
-end;
-SIGNAL not_found SET
-MESSAGE_TEXT = "Raising a not found",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 02222: Raising a not found
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE error CONDITION FOR SQLSTATE "55555";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL;
-select "after RESIGNAL";
-end;
-SIGNAL error SET
-MESSAGE_TEXT = "Raising an error",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 55555: Raising an error
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE CONTINUE HANDLER for sqlwarning
-begin
-select "before RESIGNAL";
-RESIGNAL;
-select "after RESIGNAL";
-end;
-insert ignore into t_warn set a= 9999999999999999;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-after RESIGNAL
-after RESIGNAL
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE x integer;
-DECLARE c cursor for select * from t_cursor;
-DECLARE CONTINUE HANDLER for not found
-begin
-select "before RESIGNAL";
-RESIGNAL;
-select "after RESIGNAL";
-end;
-open c;
-fetch c into x;
-close c;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 02000: No data - zero rows fetched, selected, or processed
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE CONTINUE HANDLER for sqlexception
-begin
-select "before RESIGNAL";
-RESIGNAL;
-select "after RESIGNAL";
-end;
-drop table no_such_table;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 42S02: Unknown table 'test.no_such_table'
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE warn CONDITION FOR SQLSTATE "01234";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL SET
-MESSAGE_TEXT = "RESIGNAL of a warning",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-SIGNAL warn SET
-MESSAGE_TEXT = "Raising a warning",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-after RESIGNAL
-after RESIGNAL
-Warnings:
-Warning 5555 RESIGNAL of a warning
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE not_found CONDITION FOR SQLSTATE "02111";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL SET
-MESSAGE_TEXT = "RESIGNAL of a not found",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-SIGNAL not_found SET
-MESSAGE_TEXT = "Raising a not found",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 02111: RESIGNAL of a not found
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE error CONDITION FOR SQLSTATE "33333";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL SET
-MESSAGE_TEXT = "RESIGNAL of an error",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-SIGNAL error SET
-MESSAGE_TEXT = "Raising an error",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 33333: RESIGNAL of an error
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE CONTINUE HANDLER for sqlwarning
-begin
-select "before RESIGNAL";
-RESIGNAL SET
-MESSAGE_TEXT = "RESIGNAL of a warning",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-insert ignore into t_warn set a= 9999999999999999;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-after RESIGNAL
-after RESIGNAL
-Warnings:
-Warning 5555 RESIGNAL of a warning
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE x integer;
-DECLARE c cursor for select * from t_cursor;
-DECLARE CONTINUE HANDLER for not found
-begin
-select "before RESIGNAL";
-RESIGNAL SET
-MESSAGE_TEXT = "RESIGNAL of not found",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-open c;
-fetch c into x;
-close c;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 02000: RESIGNAL of not found
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE CONTINUE HANDLER for sqlexception
-begin
-select "before RESIGNAL";
-RESIGNAL SET
-MESSAGE_TEXT = "RESIGNAL of an error",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-drop table no_such_table;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 42S02: RESIGNAL of an error
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE warn CONDITION FOR SQLSTATE "01111";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "01222" SET
-MESSAGE_TEXT = "RESIGNAL to warning",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-SIGNAL warn SET
-MESSAGE_TEXT = "Raising a warning",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-after RESIGNAL
-after RESIGNAL
-Warnings:
-Warning 1012 Raising a warning
-Warning 5555 RESIGNAL to warning
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE warn CONDITION FOR SQLSTATE "01111";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "02222" SET
-MESSAGE_TEXT = "RESIGNAL to not found",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-SIGNAL warn SET
-MESSAGE_TEXT = "Raising a warning",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 02222: RESIGNAL to not found
-show warnings $$
-Level Code Message
-Warning 1012 Raising a warning
-Error 5555 RESIGNAL to not found
-Note 4094 At line 9 in test.test_resignal
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE warn CONDITION FOR SQLSTATE "01111";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "33333" SET
-MESSAGE_TEXT = "RESIGNAL to error",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-SIGNAL warn SET
-MESSAGE_TEXT = "Raising a warning",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 33333: RESIGNAL to error
-show warnings $$
-Level Code Message
-Warning 1012 Raising a warning
-Error 5555 RESIGNAL to error
-Note 4094 At line 9 in test.test_resignal
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE not_found CONDITION FOR SQLSTATE "02ABC";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "01222" SET
-MESSAGE_TEXT = "RESIGNAL to warning",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-SIGNAL not_found SET
-MESSAGE_TEXT = "Raising a not found",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-after RESIGNAL
-after RESIGNAL
-Warnings:
-Error 1012 Raising a not found
-Warning 5555 RESIGNAL to warning
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE not_found CONDITION FOR SQLSTATE "02ABC";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "02222" SET
-MESSAGE_TEXT = "RESIGNAL to not found",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-SIGNAL not_found SET
-MESSAGE_TEXT = "Raising a not found",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 02222: RESIGNAL to not found
-show warnings $$
-Level Code Message
-Error 1012 Raising a not found
-Error 5555 RESIGNAL to not found
-Note 4094 At line 9 in test.test_resignal
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE not_found CONDITION FOR SQLSTATE "02ABC";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "33333" SET
-MESSAGE_TEXT = "RESIGNAL to error",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-SIGNAL not_found SET
-MESSAGE_TEXT = "Raising a not found",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 33333: RESIGNAL to error
-show warnings $$
-Level Code Message
-Error 1012 Raising a not found
-Error 5555 RESIGNAL to error
-Note 4094 At line 9 in test.test_resignal
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE error CONDITION FOR SQLSTATE "AAAAA";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "01222" SET
-MESSAGE_TEXT = "RESIGNAL to warning",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-SIGNAL error SET
-MESSAGE_TEXT = "Raising an error",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-after RESIGNAL
-after RESIGNAL
-Warnings:
-Error 1012 Raising an error
-Warning 5555 RESIGNAL to warning
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE error CONDITION FOR SQLSTATE "AAAAA";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "02222" SET
-MESSAGE_TEXT = "RESIGNAL to not found",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-SIGNAL error SET
-MESSAGE_TEXT = "Raising an error",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 02222: RESIGNAL to not found
-show warnings $$
-Level Code Message
-Error 1012 Raising an error
-Error 5555 RESIGNAL to not found
-Note 4094 At line 9 in test.test_resignal
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE error CONDITION FOR SQLSTATE "AAAAA";
-DECLARE CONTINUE HANDLER for 1012
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "33333" SET
-MESSAGE_TEXT = "RESIGNAL to error",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-SIGNAL error SET
-MESSAGE_TEXT = "Raising an error",
-MYSQL_ERRNO = 1012;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 33333: RESIGNAL to error
-show warnings $$
-Level Code Message
-Error 1012 Raising an error
-Error 5555 RESIGNAL to error
-Note 4094 At line 9 in test.test_resignal
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE CONTINUE HANDLER for sqlwarning
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "01111" SET
-MESSAGE_TEXT = "RESIGNAL to a warning",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-insert ignore into t_warn set a= 9999999999999999;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-after RESIGNAL
-after RESIGNAL
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 5555 RESIGNAL to a warning
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE CONTINUE HANDLER for sqlwarning
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "02444" SET
-MESSAGE_TEXT = "RESIGNAL to a not found",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-insert ignore into t_warn set a= 9999999999999999;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 02444: RESIGNAL to a not found
-show warnings $$
-Level Code Message
-Warning 1264 Out of range value for column 'a' at row 1
-Error 5555 RESIGNAL to a not found
-Note 4094 At line 8 in test.test_resignal
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE CONTINUE HANDLER for sqlwarning
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "44444" SET
-MESSAGE_TEXT = "RESIGNAL to an error",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-insert ignore into t_warn set a= 9999999999999999;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 44444: RESIGNAL to an error
-show warnings $$
-Level Code Message
-Warning 1264 Out of range value for column 'a' at row 1
-Error 5555 RESIGNAL to an error
-Note 4094 At line 8 in test.test_resignal
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE x integer;
-DECLARE c cursor for select * from t_cursor;
-DECLARE CONTINUE HANDLER for not found
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "01111" SET
-MESSAGE_TEXT = "RESIGNAL to a warning",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-open c;
-fetch c into x;
-close c;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-after RESIGNAL
-after RESIGNAL
-Warnings:
-Error 1329 No data - zero rows fetched, selected, or processed
-Warning 5555 RESIGNAL to a warning
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE x integer;
-DECLARE c cursor for select * from t_cursor;
-DECLARE CONTINUE HANDLER for not found
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "02444" SET
-MESSAGE_TEXT = "RESIGNAL to a not found",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-open c;
-fetch c into x;
-close c;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 02444: RESIGNAL to a not found
-show warnings $$
-Level Code Message
-Error 1329 No data - zero rows fetched, selected, or processed
-Error 5555 RESIGNAL to a not found
-Note 4094 At line 10 in test.test_resignal
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE x integer;
-DECLARE c cursor for select * from t_cursor;
-DECLARE CONTINUE HANDLER for not found
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "44444" SET
-MESSAGE_TEXT = "RESIGNAL to an error",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-open c;
-fetch c into x;
-close c;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 44444: RESIGNAL to an error
-show warnings $$
-Level Code Message
-Error 1329 No data - zero rows fetched, selected, or processed
-Error 5555 RESIGNAL to an error
-Note 4094 At line 10 in test.test_resignal
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE CONTINUE HANDLER for sqlexception
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "01111" SET
-MESSAGE_TEXT = "RESIGNAL to a warning",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-drop table no_such_table;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-after RESIGNAL
-after RESIGNAL
-Warnings:
-Error 1051 Unknown table 'test.no_such_table'
-Warning 5555 RESIGNAL to a warning
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE CONTINUE HANDLER for sqlexception
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "02444" SET
-MESSAGE_TEXT = "RESIGNAL to a not found",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-drop table no_such_table;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 02444: RESIGNAL to a not found
-show warnings $$
-Level Code Message
-Error 1051 Unknown table 'test.no_such_table'
-Error 5555 RESIGNAL to a not found
-Note 4094 At line 8 in test.test_resignal
-drop procedure test_resignal $$
-create procedure test_resignal()
-begin
-DECLARE CONTINUE HANDLER for sqlexception
-begin
-select "before RESIGNAL";
-RESIGNAL SQLSTATE "44444" SET
-MESSAGE_TEXT = "RESIGNAL to an error",
-MYSQL_ERRNO = 5555 ;
-select "after RESIGNAL";
-end;
-drop table no_such_table;
-end $$
-call test_resignal() $$
-before RESIGNAL
-before RESIGNAL
-ERROR 44444: RESIGNAL to an error
-show warnings $$
-Level Code Message
-Error 1051 Unknown table 'test.no_such_table'
-Error 5555 RESIGNAL to an error
-Note 4094 At line 8 in test.test_resignal
-drop procedure test_resignal $$
-#
-# More complex cases
-#
-drop procedure if exists peter_p1 $$
-drop procedure if exists peter_p2 $$
-CREATE PROCEDURE peter_p1 ()
-BEGIN
-DECLARE x CONDITION FOR 1231;
-DECLARE EXIT HANDLER FOR x
-BEGIN
-SELECT '2';
-RESIGNAL SET MYSQL_ERRNO = 9999;
-END;
-BEGIN
-DECLARE EXIT HANDLER FOR x
-BEGIN
-SELECT '1';
-RESIGNAL SET SCHEMA_NAME = 'test';
-END;
-SET @@sql_mode=NULL;
-END;
-END
-$$
-CREATE PROCEDURE peter_p2 ()
-BEGIN
-DECLARE x CONDITION for 9999;
-DECLARE EXIT HANDLER FOR x
-BEGIN
-SELECT '3';
-RESIGNAL SET MESSAGE_TEXT = 'Hi, I am a useless error message';
-END;
-CALL peter_p1();
-END
-$$
-CALL peter_p2() $$
-1
-1
-2
-2
-3
-3
-ERROR 42000: Hi, I am a useless error message
-show warnings $$
-Level Code Message
-Error 9999 Hi, I am a useless error message
-Note 4094 At line 7 in test.peter_p2
-drop procedure peter_p1 $$
-drop procedure peter_p2 $$
-CREATE PROCEDURE peter_p1 ()
-BEGIN
-DECLARE x CONDITION FOR SQLSTATE '42000';
-DECLARE EXIT HANDLER FOR x
-BEGIN
-SELECT '2';
-SHOW WARNINGS;
-RESIGNAL x SET MYSQL_ERRNO = 9999;
-END;
-BEGIN
-DECLARE EXIT HANDLER FOR x
-BEGIN
-SELECT '1';
-SHOW WARNINGS;
-RESIGNAL x SET
-SCHEMA_NAME = 'test',
-MYSQL_ERRNO= 1232;
-END;
-/* Raises ER_WRONG_VALUE_FOR_VAR : 1231, SQLSTATE 42000 */
-SET @@sql_mode=NULL;
-END;
-END
-$$
-CREATE PROCEDURE peter_p2 ()
-BEGIN
-DECLARE x CONDITION for SQLSTATE '42000';
-DECLARE EXIT HANDLER FOR x
-BEGIN
-SELECT '3';
-SHOW WARNINGS;
-RESIGNAL x SET
-MESSAGE_TEXT = 'Hi, I am a useless error message',
-MYSQL_ERRNO = 9999;
-END;
-CALL peter_p1();
-END
-$$
-CALL peter_p2() $$
-1
-1
-Level Code Message
-Error 1231 Variable 'sql_mode' can't be set to the value of 'NULL'
-2
-2
-Level Code Message
-Error 1231 Variable 'sql_mode' can't be set to the value of 'NULL'
-Error 1232 Variable 'sql_mode' can't be set to the value of 'NULL'
-3
-3
-Level Code Message
-Error 1231 Variable 'sql_mode' can't be set to the value of 'NULL'
-Error 1232 Variable 'sql_mode' can't be set to the value of 'NULL'
-Error 9999 Variable 'sql_mode' can't be set to the value of 'NULL'
-Note 4094 At line 8 in test.peter_p1
-ERROR 42000: Hi, I am a useless error message
-show warnings $$
-Level Code Message
-Error 1231 Variable 'sql_mode' can't be set to the value of 'NULL'
-Error 1232 Variable 'sql_mode' can't be set to the value of 'NULL'
-Error 9999 Variable 'sql_mode' can't be set to the value of 'NULL'
-Note 4094 At line 8 in test.peter_p1
-Error 9999 Hi, I am a useless error message
-Note 4094 At line 10 in test.peter_p2
-drop procedure peter_p1 $$
-drop procedure peter_p2 $$
-drop procedure if exists peter_p3 $$
-Warnings:
-Note 1305 PROCEDURE test.peter_p3 does not exist
-create procedure peter_p3()
-begin
-declare continue handler for sqlexception
-resignal sqlstate '99002' set mysql_errno = 2;
-signal sqlstate '99001' set mysql_errno = 1, message_text = "Original";
-end $$
-call peter_p3() $$
-ERROR 99002: Original
-show warnings $$
-Level Code Message
-Error 1 Original
-Error 2 Original
-Note 4094 At line 4 in test.peter_p3
-drop procedure peter_p3 $$
-drop table t_warn;
-drop table t_cursor;
-#
-# Miscelaneous test cases
-#
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = 0x12; /* 18 */
-end $$
-call test_signal $$
-ERROR 12345: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = 0b00010010; /* 18 */
-end $$
-call test_signal $$
-ERROR 12345: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = '65'; /* 65 */
-end $$
-call test_signal $$
-ERROR 12345: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = 'A'; /* illegal */
-end $$
-call test_signal $$
-ERROR 42000: Variable 'MYSQL_ERRNO' can't be set to the value of 'A'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = "65"; /* 65 */
-end $$
-call test_signal $$
-ERROR 12345: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = "A"; /* illegal */
-end $$
-call test_signal $$
-ERROR 42000: Variable 'MYSQL_ERRNO' can't be set to the value of 'A'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = `65`; /* illegal */
-end $$
-call test_signal $$
-ERROR 42S22: Unknown column '65' in 'field list'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = `A`; /* illegal */
-end $$
-call test_signal $$
-ERROR 42S22: Unknown column 'A' in 'field list'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = 3.141592; /* 3 */
-end $$
-call test_signal $$
-ERROR 12345: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = 1000,
-MESSAGE_TEXT= 0x41; /* A */
-end $$
-call test_signal $$
-ERROR 12345: A
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = 1000,
-MESSAGE_TEXT= 0b01000001; /* A */
-end $$
-call test_signal $$
-ERROR 12345: A
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = 1000,
-MESSAGE_TEXT = "Hello";
-end $$
-call test_signal $$
-ERROR 12345: Hello
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = 1000,
-MESSAGE_TEXT = 'Hello';
-end $$
-call test_signal $$
-ERROR 12345: Hello
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = 1000,
-MESSAGE_TEXT = `Hello`;
-end $$
-call test_signal $$
-ERROR 42S22: Unknown column 'Hello' in 'field list'
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo SET MYSQL_ERRNO = 1000,
-MESSAGE_TEXT = 65.4321;
-end $$
-call test_signal $$
-ERROR 12345: 65.4321
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-DECLARE céèçà foo CONDITION FOR SQLSTATE '12345';
-SIGNAL céèçà SET MYSQL_ERRNO = 1000;
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '©Ã¨Ã§Ã  foo CONDITION FOR SQLSTATE '12345';
-SIGNAL céèçà SET ' at line 3
-create procedure test_signal()
-begin
-DECLARE "céèçà" CONDITION FOR SQLSTATE '12345';
-SIGNAL "céèçà" SET MYSQL_ERRNO = 1000;
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"céèçà" CONDITION FOR SQLSTATE '12345';
-SIGNAL "céèçà" S' at line 3
-create procedure test_signal()
-begin
-DECLARE 'céèçà' CONDITION FOR SQLSTATE '12345';
-SIGNAL 'céèçà' SET MYSQL_ERRNO = 1000;
-end $$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''céèçà' CONDITION FOR SQLSTATE '12345';
-SIGNAL 'céèçà' S' at line 3
-create procedure test_signal()
-begin
-DECLARE `céèçà` CONDITION FOR SQLSTATE '12345';
-SIGNAL `céèçà` SET MYSQL_ERRNO = 1000;
-end $$
-call test_signal $$
-ERROR 12345: Unhandled user-defined exception condition
-drop procedure test_signal $$
-create procedure test_signal()
-begin
-SIGNAL SQLSTATE '77777' SET MYSQL_ERRNO = 1000, MESSAGE_TEXT='ÃÂÃÅÄ';
-end $$
-drop procedure test_signal $$
diff --git a/mysql-test/r/signal_code.result b/mysql-test/r/signal_code.result
deleted file mode 100644
index 32192251fe9..00000000000
--- a/mysql-test/r/signal_code.result
+++ /dev/null
@@ -1,35 +0,0 @@
-use test;
-drop procedure if exists signal_proc;
-drop function if exists signal_func;
-create procedure signal_proc()
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo;
-SIGNAL foo SET MESSAGE_TEXT = "This is an error message";
-RESIGNAL foo;
-RESIGNAL foo SET MESSAGE_TEXT = "This is an error message";
-end $$
-create function signal_func() returns int
-begin
-DECLARE foo CONDITION FOR SQLSTATE '12345';
-SIGNAL foo;
-SIGNAL foo SET MESSAGE_TEXT = "This is an error message";
-RESIGNAL foo;
-RESIGNAL foo SET MESSAGE_TEXT = "This is an error message";
-return 0;
-end $$
-show procedure code signal_proc;
-Pos Instruction
-0 stmt 130 "SIGNAL foo"
-1 stmt 130 "SIGNAL foo SET MESSAGE_TEXT = "This i..."
-2 stmt 131 "RESIGNAL foo"
-3 stmt 131 "RESIGNAL foo SET MESSAGE_TEXT = "This..."
-drop procedure signal_proc;
-show function code signal_func;
-Pos Instruction
-0 stmt 130 "SIGNAL foo"
-1 stmt 130 "SIGNAL foo SET MESSAGE_TEXT = "This i..."
-2 stmt 131 "RESIGNAL foo"
-3 stmt 131 "RESIGNAL foo SET MESSAGE_TEXT = "This..."
-4 freturn int 0
-drop function signal_func;
diff --git a/mysql-test/r/signal_demo1.result b/mysql-test/r/signal_demo1.result
deleted file mode 100644
index 752f23a48d6..00000000000
--- a/mysql-test/r/signal_demo1.result
+++ /dev/null
@@ -1,270 +0,0 @@
-drop database if exists demo;
-create database demo;
-use demo;
-create table ab_physical_person (
-person_id integer,
-first_name VARCHAR(50),
-middle_initial CHAR,
-last_name VARCHAR(50),
-primary key (person_id));
-create table ab_moral_person (
-company_id integer,
-name VARCHAR(100),
-primary key (company_id));
-create table in_inventory (
-item_id integer,
-descr VARCHAR(50),
-stock integer,
-primary key (item_id));
-create table po_order (
-po_id integer auto_increment,
-cust_type char, /* arc relationship, see cust_id */
-cust_id integer, /* FK to ab_physical_person *OR* ab_moral_person */
-primary key (po_id));
-create table po_order_line (
-po_id integer, /* FK to po_order.po_id */
-line_no integer,
-item_id integer, /* FK to in_inventory.item_id */
-qty integer);
-#
-# Schema integrity enforcement
-#
-create procedure check_pk_person(in person_type char, in id integer)
-begin
-declare x integer;
-declare msg varchar(128);
-/*
-Test integrity constraints for an 'arc' relationship.
-Based on 'person_type', 'id' points to either a
-physical person, or a moral person.
-*/
-case person_type
-when 'P' then
-begin
-select count(person_id) from ab_physical_person
-where ab_physical_person.person_id = id
-into x;
-if (x != 1)
-then
-set msg= concat('No such physical person, PK:', id);
-SIGNAL SQLSTATE '45000' SET
-MESSAGE_TEXT = msg,
-MYSQL_ERRNO = 10000;
-end if;
-end;
-when 'M' then
-begin
-select count(company_id) from ab_moral_person
-where ab_moral_person.company_id = id
-into x;
-if (x != 1)
-then
-set msg= concat('No such moral person, PK:', id);
-SIGNAL SQLSTATE '45000' SET
-MESSAGE_TEXT = msg,
-MYSQL_ERRNO = 10000;
-end if;
-end;
-else
-begin
-set msg= concat('No such person type:', person_type);
-SIGNAL SQLSTATE '45000' SET
-MESSAGE_TEXT = msg,
-MYSQL_ERRNO = 20000;
-end;
-end case;
-end
-$$
-create procedure check_pk_inventory(in id integer)
-begin
-declare x integer;
-declare msg varchar(128);
-select count(item_id) from in_inventory
-where in_inventory.item_id = id
-into x;
-if (x != 1)
-then
-set msg= concat('Failed integrity constraint, table in_inventory, PK:',
-id);
-SIGNAL SQLSTATE '45000' SET
-MESSAGE_TEXT = msg,
-MYSQL_ERRNO = 10000;
-end if;
-end
-$$
-create procedure check_pk_order(in id integer)
-begin
-declare x integer;
-declare msg varchar(128);
-select count(po_id) from po_order
-where po_order.po_id = id
-into x;
-if (x != 1)
-then
-set msg= concat('Failed integrity constraint, table po_order, PK:', id);
-SIGNAL SQLSTATE '45000' SET
-MESSAGE_TEXT = msg,
-MYSQL_ERRNO = 10000;
-end if;
-end
-$$
-create trigger po_order_bi before insert on po_order
-for each row
-begin
-call check_pk_person(NEW.cust_type, NEW.cust_id);
-end
-$$
-create trigger po_order_bu before update on po_order
-for each row
-begin
-call check_pk_person(NEW.cust_type, NEW.cust_id);
-end
-$$
-create trigger po_order_line_bi before insert on po_order_line
-for each row
-begin
-call check_pk_order(NEW.po_id);
-call check_pk_inventory(NEW.item_id);
-end
-$$
-create trigger po_order_line_bu before update on po_order_line
-for each row
-begin
-call check_pk_order(NEW.po_id);
-call check_pk_inventory(NEW.item_id);
-end
-$$
-#
-# Application helpers
-#
-create procedure po_create_order(
-in p_cust_type char,
-in p_cust_id integer,
-out id integer)
-begin
-insert into po_order set cust_type = p_cust_type, cust_id = p_cust_id;
-set id = last_insert_id();
-end
-$$
-create procedure po_add_order_line(
-in po integer,
-in line integer,
-in item integer,
-in q integer)
-begin
-insert into po_order_line set
-po_id = po, line_no = line, item_id = item, qty = q;
-end
-$$
-#
-# Create sample data
-#
-insert into ab_physical_person values
-( 1, "John", "A", "Doe"),
-( 2, "Marry", "B", "Smith")
-;
-insert into ab_moral_person values
-( 3, "ACME real estate, INC"),
-( 4, "Local school")
-;
-insert into in_inventory values
-( 100, "Table, dinner", 5),
-( 101, "Chair", 20),
-( 200, "Table, coffee", 3),
-( 300, "School table", 25),
-( 301, "School chairs", 50)
-;
-select * from ab_physical_person order by person_id;
-person_id first_name middle_initial last_name
-1 John A Doe
-2 Marry B Smith
-select * from ab_moral_person order by company_id;
-company_id name
-3 ACME real estate, INC
-4 Local school
-select * from in_inventory order by item_id;
-item_id descr stock
-100 Table, dinner 5
-101 Chair 20
-200 Table, coffee 3
-300 School table 25
-301 School chairs 50
-#
-# Entering an order
-#
-set @my_po = 0;
-/* John Doe wants 1 table and 4 chairs */
-call po_create_order("P", 1, @my_po);
-call po_add_order_line (@my_po, 1, 100, 1);
-call po_add_order_line (@my_po, 2, 101, 4);
-/* Marry Smith wants a coffee table */
-call po_create_order("P", 2, @my_po);
-call po_add_order_line (@my_po, 1, 200, 1);
-#
-# Entering bad data in an order
-#
-call po_add_order_line (@my_po, 1, 999, 1);
-ERROR 45000: Failed integrity constraint, table in_inventory, PK:999
-#
-# Entering bad data in an unknown order
-#
-call po_add_order_line (99, 1, 100, 1);
-ERROR 45000: Failed integrity constraint, table po_order, PK:99
-#
-# Entering an order for an unknown company
-#
-call po_create_order("M", 7, @my_po);
-ERROR 45000: No such moral person, PK:7
-#
-# Entering an order for an unknown person type
-#
-call po_create_order("X", 1, @my_po);
-ERROR 45000: No such person type:X
-/* The local school wants 10 class tables and 20 chairs */
-call po_create_order("M", 4, @my_po);
-call po_add_order_line (@my_po, 1, 300, 10);
-call po_add_order_line (@my_po, 2, 301, 20);
-select * from po_order;
-po_id cust_type cust_id
-1 P 1
-2 P 2
-3 M 4
-select * from po_order_line;
-po_id line_no item_id qty
-1 1 100 1
-1 2 101 4
-2 1 200 1
-3 1 300 10
-3 2 301 20
-select po_id as "PO#",
-( case cust_type
-when "P" then concat (pp.first_name,
-" ",
-pp.middle_initial,
-" ",
-pp.last_name)
-when "M" then mp.name
-end ) as "Sold to"
- from po_order po
-left join ab_physical_person pp on po.cust_id = pp.person_id
-left join ab_moral_person mp on po.cust_id = company_id
-;
-PO# Sold to
-1 John A Doe
-2 Marry B Smith
-3 Local school
-select po_id as "PO#",
-ol.line_no as "Line",
-ol.item_id as "Item",
-inv.descr as "Description",
-ol.qty as "Quantity"
- from po_order_line ol, in_inventory inv
-where inv.item_id = ol.item_id
-order by ol.item_id, ol.line_no;
-PO# Line Item Description Quantity
-1 1 100 Table, dinner 1
-1 2 101 Chair 4
-2 1 200 Table, coffee 1
-3 1 300 School table 10
-3 2 301 School chairs 20
-drop database demo;
diff --git a/mysql-test/r/signal_demo2.result b/mysql-test/r/signal_demo2.result
deleted file mode 100644
index 5c8ac328a4a..00000000000
--- a/mysql-test/r/signal_demo2.result
+++ /dev/null
@@ -1,197 +0,0 @@
-drop database if exists demo;
-create database demo;
-use demo;
-create procedure proc_top_a(p1 integer)
-begin
-## DECLARE CONTINUE HANDLER for SQLEXCEPTION, NOT FOUND
-begin
-end;
-select "Starting ...";
-call proc_middle_a(p1);
-select "The end";
-end
-$$
-create procedure proc_middle_a(p1 integer)
-begin
-DECLARE l integer;
-# without RESIGNAL:
-# Should be: DECLARE EXIT HANDLER for SQLEXCEPTION, NOT FOUND
-DECLARE EXIT HANDLER for 1 /* not sure how to handle exceptions */
-begin
-select "Oops ... now what ?";
-end;
-select "In prod_middle()";
-create temporary table t1(a integer, b integer);
-select GET_LOCK("user_mutex", 10) into l;
-insert into t1 set a = p1, b = p1;
-call proc_bottom_a(p1);
-select RELEASE_LOCK("user_mutex") into l;
-drop temporary table t1;
-end
-$$
-create procedure proc_bottom_a(p1 integer)
-begin
-select "In proc_bottom()";
-if (p1 = 1) then
-begin
-select "Doing something that works ...";
-select * from t1;
-end;
-end if;
-if (p1 = 2) then
-begin
-select "Doing something that fail (simulate an error) ...";
-drop table no_such_table;
-end;
-end if;
-if (p1 = 3) then
-begin
-select "Doing something that *SHOULD* works ...";
-select * from t1;
-end;
-end if;
-end
-$$
-call proc_top_a(1);
-Starting ...
-Starting ...
-In prod_middle()
-In prod_middle()
-In proc_bottom()
-In proc_bottom()
-Doing something that works ...
-Doing something that works ...
-a b
-1 1
-The end
-The end
-call proc_top_a(2);
-Starting ...
-Starting ...
-In prod_middle()
-In prod_middle()
-In proc_bottom()
-In proc_bottom()
-Doing something that fail (simulate an error) ...
-Doing something that fail (simulate an error) ...
-ERROR 42S02: Unknown table 'demo.no_such_table'
-call proc_top_a(3);
-Starting ...
-Starting ...
-In prod_middle()
-In prod_middle()
-ERROR 42S01: Table 't1' already exists
-call proc_top_a(1);
-Starting ...
-Starting ...
-In prod_middle()
-In prod_middle()
-ERROR 42S01: Table 't1' already exists
-drop temporary table if exists t1;
-create procedure proc_top_b(p1 integer)
-begin
-select "Starting ...";
-call proc_middle_b(p1);
-select "The end";
-end
-$$
-create procedure proc_middle_b(p1 integer)
-begin
-DECLARE l integer;
-DECLARE EXIT HANDLER for SQLEXCEPTION, NOT FOUND
-begin
-begin
-DECLARE CONTINUE HANDLER for SQLEXCEPTION, NOT FOUND
-begin
-/* Ignore errors from the cleanup code */
-end;
-select "Doing cleanup !";
-select RELEASE_LOCK("user_mutex") into l;
-drop temporary table t1;
-end;
-RESIGNAL;
-end;
-select "In prod_middle()";
-create temporary table t1(a integer, b integer);
-select GET_LOCK("user_mutex", 10) into l;
-insert into t1 set a = p1, b = p1;
-call proc_bottom_b(p1);
-select RELEASE_LOCK("user_mutex") into l;
-drop temporary table t1;
-end
-$$
-create procedure proc_bottom_b(p1 integer)
-begin
-select "In proc_bottom()";
-if (p1 = 1) then
-begin
-select "Doing something that works ...";
-select * from t1;
-end;
-end if;
-if (p1 = 2) then
-begin
-select "Doing something that fail (simulate an error) ...";
-drop table no_such_table;
-end;
-end if;
-if (p1 = 3) then
-begin
-select "Doing something that *SHOULD* works ...";
-select * from t1;
-end;
-end if;
-end
-$$
-call proc_top_b(1);
-Starting ...
-Starting ...
-In prod_middle()
-In prod_middle()
-In proc_bottom()
-In proc_bottom()
-Doing something that works ...
-Doing something that works ...
-a b
-1 1
-The end
-The end
-call proc_top_b(2);
-Starting ...
-Starting ...
-In prod_middle()
-In prod_middle()
-In proc_bottom()
-In proc_bottom()
-Doing something that fail (simulate an error) ...
-Doing something that fail (simulate an error) ...
-Doing cleanup !
-Doing cleanup !
-ERROR 42S02: Unknown table 'demo.no_such_table'
-call proc_top_b(3);
-Starting ...
-Starting ...
-In prod_middle()
-In prod_middle()
-In proc_bottom()
-In proc_bottom()
-Doing something that *SHOULD* works ...
-Doing something that *SHOULD* works ...
-a b
-3 3
-The end
-The end
-call proc_top_b(1);
-Starting ...
-Starting ...
-In prod_middle()
-In prod_middle()
-In proc_bottom()
-In proc_bottom()
-Doing something that works ...
-Doing something that works ...
-a b
-1 1
-The end
-The end
-drop database demo;
diff --git a/mysql-test/r/signal_demo3.result b/mysql-test/r/signal_demo3.result
deleted file mode 100644
index fe425f6412d..00000000000
--- a/mysql-test/r/signal_demo3.result
+++ /dev/null
@@ -1,152 +0,0 @@
-SET @start_global_value = @@global.max_error_count;
-SELECT @start_global_value;
-@start_global_value
-64
-SET @start_session_value = @@session.max_error_count;
-SELECT @start_session_value;
-@start_session_value
-64
-drop database if exists demo;
-create database demo;
-use demo;
-create procedure proc_1()
-begin
-declare exit handler for sqlexception
-resignal sqlstate '45000' set message_text='Oops in proc_1';
-call proc_2();
-end
-$$
-create procedure proc_2()
-begin
-declare exit handler for sqlexception
-resignal sqlstate '45000' set message_text='Oops in proc_2';
-call proc_3();
-end
-$$
-create procedure proc_3()
-begin
-declare exit handler for sqlexception
-resignal sqlstate '45000' set message_text='Oops in proc_3';
-call proc_4();
-end
-$$
-create procedure proc_4()
-begin
-declare exit handler for sqlexception
-resignal sqlstate '45000' set message_text='Oops in proc_4';
-call proc_5();
-end
-$$
-create procedure proc_5()
-begin
-declare exit handler for sqlexception
-resignal sqlstate '45000' set message_text='Oops in proc_5';
-call proc_6();
-end
-$$
-create procedure proc_6()
-begin
-declare exit handler for sqlexception
-resignal sqlstate '45000' set message_text='Oops in proc_6';
-call proc_7();
-end
-$$
-create procedure proc_7()
-begin
-declare exit handler for sqlexception
-resignal sqlstate '45000' set message_text='Oops in proc_7';
-call proc_8();
-end
-$$
-create procedure proc_8()
-begin
-declare exit handler for sqlexception
-resignal sqlstate '45000' set message_text='Oops in proc_8';
-call proc_9();
-end
-$$
-create procedure proc_9()
-begin
-declare exit handler for sqlexception
-resignal sqlstate '45000' set message_text='Oops in proc_9';
-## Do something that fails, to see how errors are reported
-drop table oops_it_is_not_here;
-end
-$$
-call proc_1();
-ERROR 45000: Oops in proc_1
-show warnings;
-Level Code Message
-Error 1051 Unknown table 'demo.oops_it_is_not_here'
-Error 1644 Oops in proc_9
-Note 4094 At line 4 in demo.proc_9
-Error 1644 Oops in proc_8
-Note 4094 At line 4 in demo.proc_8
-Error 1644 Oops in proc_7
-Note 4094 At line 4 in demo.proc_7
-Error 1644 Oops in proc_6
-Note 4094 At line 4 in demo.proc_6
-Error 1644 Oops in proc_5
-Note 4094 At line 4 in demo.proc_5
-Error 1644 Oops in proc_4
-Note 4094 At line 4 in demo.proc_4
-Error 1644 Oops in proc_3
-Note 4094 At line 4 in demo.proc_3
-Error 1644 Oops in proc_2
-Note 4094 At line 4 in demo.proc_2
-Error 1644 Oops in proc_1
-Note 4094 At line 4 in demo.proc_1
-SET @@session.max_error_count = 5;
-SELECT @@session.max_error_count;
-@@session.max_error_count
-5
-call proc_1();
-ERROR 45000: Oops in proc_1
-show warnings;
-Level Code Message
-Note 4094 At line 4 in demo.proc_3
-Error 1644 Oops in proc_2
-Note 4094 At line 4 in demo.proc_2
-Error 1644 Oops in proc_1
-Note 4094 At line 4 in demo.proc_1
-SET @@session.max_error_count = 7;
-SELECT @@session.max_error_count;
-@@session.max_error_count
-7
-call proc_1();
-ERROR 45000: Oops in proc_1
-show warnings;
-Level Code Message
-Note 4094 At line 4 in demo.proc_4
-Error 1644 Oops in proc_3
-Note 4094 At line 4 in demo.proc_3
-Error 1644 Oops in proc_2
-Note 4094 At line 4 in demo.proc_2
-Error 1644 Oops in proc_1
-Note 4094 At line 4 in demo.proc_1
-SET @@session.max_error_count = 9;
-SELECT @@session.max_error_count;
-@@session.max_error_count
-9
-call proc_1();
-ERROR 45000: Oops in proc_1
-show warnings;
-Level Code Message
-Note 4094 At line 4 in demo.proc_5
-Error 1644 Oops in proc_4
-Note 4094 At line 4 in demo.proc_4
-Error 1644 Oops in proc_3
-Note 4094 At line 4 in demo.proc_3
-Error 1644 Oops in proc_2
-Note 4094 At line 4 in demo.proc_2
-Error 1644 Oops in proc_1
-Note 4094 At line 4 in demo.proc_1
-drop database demo;
-SET @@global.max_error_count = @start_global_value;
-SELECT @@global.max_error_count;
-@@global.max_error_count
-64
-SET @@session.max_error_count = @start_session_value;
-SELECT @@session.max_error_count;
-@@session.max_error_count
-64
diff --git a/mysql-test/r/signal_sqlmode.result b/mysql-test/r/signal_sqlmode.result
deleted file mode 100644
index 8fed85eb4a9..00000000000
--- a/mysql-test/r/signal_sqlmode.result
+++ /dev/null
@@ -1,86 +0,0 @@
-SET @save_sql_mode=@@sql_mode;
-SET sql_mode='';
-drop procedure if exists p;
-drop procedure if exists p2;
-drop procedure if exists p3;
-create procedure p()
-begin
-declare utf8_var VARCHAR(128) CHARACTER SET UTF8;
-set utf8_var = concat(repeat('A', 128), 'X');
-select length(utf8_var), utf8_var;
-end
-$$
-create procedure p2()
-begin
-declare msg VARCHAR(129) CHARACTER SET UTF8;
-set msg = concat(repeat('A', 128), 'X');
-select length(msg), msg;
-signal sqlstate '55555' set message_text = msg;
-end
-$$
-create procedure p3()
-begin
-declare name VARCHAR(65) CHARACTER SET UTF8;
-set name = concat(repeat('A', 64), 'X');
-select length(name), name;
-signal sqlstate '55555' set
-message_text = 'Message',
-table_name = name;
-end
-$$
-call p;
-length(utf8_var) utf8_var
-128 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
-Warnings:
-Warning 1265 Data truncated for column 'utf8_var' at row 1
-call p2;
-length(msg) msg
-129 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAX
-ERROR 55555: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
-call p3;
-length(name) name
-65 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAX
-ERROR 55555: Message
-drop procedure p;
-drop procedure p2;
-drop procedure p3;
-SET sql_mode='STRICT_ALL_TABLES';
-create procedure p()
-begin
-declare utf8_var VARCHAR(128) CHARACTER SET UTF8;
-set utf8_var = concat(repeat('A', 128), 'X');
-select length(utf8_var), utf8_var;
-end
-$$
-create procedure p2()
-begin
-declare msg VARCHAR(129) CHARACTER SET UTF8;
-set msg = concat(repeat('A', 128), 'X');
-select length(msg), msg;
-signal sqlstate '55555' set message_text = msg;
-end
-$$
-create procedure p3()
-begin
-declare name VARCHAR(65) CHARACTER SET UTF8;
-set name = concat(repeat('A', 64), 'X');
-select length(name), name;
-signal sqlstate '55555' set
-message_text = 'Message',
-table_name = name;
-end
-$$
-call p;
-ERROR 22001: Data too long for column 'utf8_var' at row 1
-call p2;
-length(msg) msg
-129 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAX
-ERROR HY000: Data too long for condition item 'MESSAGE_TEXT'
-call p3;
-length(name) name
-65 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAX
-ERROR HY000: Data too long for condition item 'TABLE_NAME'
-drop procedure p;
-drop procedure p2;
-drop procedure p3;
-SET @@sql_mode=@save_sql_mode;
diff --git a/mysql-test/r/simultaneous_assignment.result b/mysql-test/r/simultaneous_assignment.result
deleted file mode 100644
index 67cb58ba6af..00000000000
--- a/mysql-test/r/simultaneous_assignment.result
+++ /dev/null
@@ -1,222 +0,0 @@
-SET sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,SIMULTANEOUS_ASSIGNMENT';
-#
-# MDEV-13417 UPDATE produces wrong values if an UPDATEd column is later used as an UPDATE source
-#
-CREATE TABLE t1 (c1 INTEGER, c2 INTEGER, c3 INTEGER) ENGINE=InnoDb;
-INSERT INTO t1(c1,c2,c3) VALUES (1,1,1);
-CREATE TABLE t2 (c1 INTEGER, c2 INTEGER, c3 INTEGER) ENGINE=InnoDb;
-INSERT INTO t2(c1,c2,c3) VALUES (1,1,1);
-#
-# Check that a column is only updated once.
-#
-UPDATE t1
-SET c1 = 1,
-c1 = 2;
-ERROR HY000: The column `t1`.`c1` cannot be changed more than once in a single UPDATE statement
-UPDATE t1, t2
-SET t1.c1 = t1.c1 + 1,
-t1.c2 = t1.c1 + 1,
-t2.c2 = t1.c2 + 1,
-t2.c2 = t1.c2 + 1;
-ERROR HY000: The column `t2`.`c2` cannot be changed more than once in a single UPDATE statement
-#
-# Check standard update
-#
-UPDATE t1
-SET c1 = c1+1,
-c2 = c1+1,
-c3 = c2+1
-WHERE c1=10;
-START TRANSACTION;
-UPDATE t1
-SET c1 = c1+1,
-c2 = c1+1,
-c3 = c2+1;
-SELECT * FROM t1;
-c1 c2 c3
-2 2 2
-ROLLBACK;
-#
-# Check update through a single view
-#
-CREATE VIEW v1 (a, b) AS SELECT c1, c2 FROM t1;
-UPDATE v1
-SET a = 10,
-a = b+1;
-ERROR HY000: The column `t1`.`c1` cannot be changed more than once in a single UPDATE statement
-SELECT * FROM t1;
-c1 c2 c3
-1 1 1
-DROP VIEW v1;
-CREATE VIEW v1 (a, b) AS SELECT c2, c2 FROM t1;
-UPDATE v1
-SET a = 10,
-b = 20;
-ERROR HY000: The column `t1`.`c2` cannot be changed more than once in a single UPDATE statement
-SELECT * FROM t1;
-c1 c2 c3
-1 1 1
-DROP VIEW v1;
-#
-# Check update through a multi table view
-#
-CREATE VIEW v1 (a, b) AS SELECT t1.c1, t2.c1 FROM t1, t2 WHERE t1.c1=t2.c1;
-UPDATE v1
-SET a = 10,
-b = 20;
-ERROR HY000: Can not modify more than one base table through a join view 'test.v1'
-START TRANSACTION;
-UPDATE v1
-SET a = 10;
-ROLLBACK;
-UPDATE v1
-SET a = 10,
-a = a + 1;
-ERROR HY000: The column `t1`.`c1` cannot be changed more than once in a single UPDATE statement
-DROP VIEW v1;
-#
-# Check multi update
-#
-START TRANSACTION;
-UPDATE t1, t2
-SET t1.c1 = t1.c1 + 1,
-t1.c2 = t1.c1 + 1,
-t2.c2 = t1.c2 + 1,
-t2.c3 = t2.c2 + 1
-WHERE t1.c1=t2.c1;
-SELECT * FROM t1;
-c1 c2 c3
-2 2 1
-SELECT * FROM t2;
-c1 c2 c3
-1 2 2
-ROLLBACK;
-CREATE TRIGGER tr1 BEFORE UPDATE ON t1 FOR EACH ROW
-BEGIN
-INSERT INTO t2 VALUES(10+old.c1,10+old.c2,10+old.c3);
-INSERT INTO t2 VALUES(20+new.c1,10+new.c2,10+new.c3);
-END;
-/
-START TRANSACTION;
-UPDATE t1
-SET c1 = c1+1,
-c2 = c1+1,
-c3 = c2+1;
-SELECT * FROM t1;
-c1 c2 c3
-2 2 2
-SELECT * FROM t2;
-c1 c2 c3
-1 1 1
-11 11 11
-22 12 12
-ROLLBACK;
-DROP TABLE t1;
-DROP TABLE t2;
-#
-# Check update fired by INSERT ... ON DUPLICATE KEY UPDATE
-#
-CREATE TABLE t1 (
-id INT(11) NOT NULL AUTO_INCREMENT,
-name VARCHAR(60) NOT NULL,
-nb_visits INT NOT NULL,
-nb_visits_prev INT NOT NULL default 0,
-PRIMARY KEY (id),
-UNIQUE KEY name (name)
-) ENGINE=InnoDB AUTO_INCREMENT=1;
-INSERT INTO t1(name, nb_visits) VALUES('nico', 1)
-ON DUPLICATE KEY UPDATE nb_visits = nb_visits + 1;
-SELECT * FROM t1;
-id name nb_visits nb_visits_prev
-1 nico 1 0
-INSERT INTO t1(name, nb_visits) VALUES('nico', 1)
-ON DUPLICATE KEY UPDATE nb_visits = nb_visits + 1, nb_visits_prev=nb_visits;
-SELECT * FROM t1;
-id name nb_visits nb_visits_prev
-1 nico 2 1
-DROP TABLE t1;
-#
-# Update table with virtual column
-#
-CREATE TABLE t1 (c1 INTEGER, c2 INTEGER, c3 INTEGER AS (c1 MOD 10) VIRTUAL, c4 INTEGER AS (c1+c2 MOD 5) PERSISTENT ) ENGINE=InnoDb;
-INSERT INTO t1(c1,c2) VALUES (1,1);
-SELECT * FROM t1;
-c1 c2 c3 c4
-1 1 1 2
-UPDATE t1 SET c2 = 10, c1 = c2;
-SELECT * FROM t1;
-c1 c2 c3 c4
-1 10 1 1
-UPDATE t1 SET c2 = 4, c1 = c2;
-SELECT * FROM t1;
-c1 c2 c3 c4
-10 4 0 14
-DROP TABLE t1;
-#
-# Update dynamic column
-#
-SET @@local.character_set_connection='latin1';
-CREATE TABLE assets (
-item_name VARCHAR(32) PRIMARY KEY,
-dynamic_col1 BLOB,
-dynamic_col2 BLOB
-);
-INSERT INTO assets VALUES ('Thinkpad Laptop', COLUMN_CREATE('color', 'black', 'price', 500),COLUMN_CREATE('CPU', 'Core I7', 'memory', '8Go'));
-INSERT INTO assets VALUES ('Thinkpad Laptop2', COLUMN_CREATE('color', 'yellow', 'price', 700),COLUMN_CREATE('CPU', 'Core I7', 'memory', '16Go'));
-SELECT item_name, COLUMN_GET(dynamic_col1, 'color' as char) AS color1,
-COLUMN_GET(dynamic_col2, 'color' as char) AS color2
-FROM assets;
-item_name color1 color2
-Thinkpad Laptop black NULL
-Thinkpad Laptop2 yellow NULL
-UPDATE assets
-SET dynamic_col1=COLUMN_ADD(dynamic_col1, 'warranty', '3 years'),
-dynamic_col2=dynamic_col1
-WHERE item_name LIKE 'Thinkpad Laptop%';
-SELECT item_name, COLUMN_GET(dynamic_col1, 'warranty' as char) AS waranty1,
-COLUMN_GET(dynamic_col2, 'warranty' as char) AS waranty2,
-COLUMN_GET(dynamic_col2, 'color' as char) AS color2
-FROM assets;
-item_name waranty1 waranty2 color2
-Thinkpad Laptop 3 years NULL black
-Thinkpad Laptop2 3 years NULL yellow
-DROP TABLE assets;
-#
-# Update TEXT column
-#
-CREATE TABLE ft2(copy TEXT,copy2 TEXT,FULLTEXT(copy)) ENGINE=MyISAM;
-INSERT INTO ft2(copy) VALUES
-('MySQL vs MariaDB database'),
-('Oracle vs MariaDB database'),
-('PostgreSQL vs MariaDB database'),
-('MariaDB overview'),
-('Foreign keys'),
-('Primary keys'),
-('Indexes'),
-('Transactions'),
-('Triggers');
-SELECT * FROM ft2;
-copy copy2
-MySQL vs MariaDB database NULL
-Oracle vs MariaDB database NULL
-PostgreSQL vs MariaDB database NULL
-MariaDB overview NULL
-Foreign keys NULL
-Primary keys NULL
-Indexes NULL
-Transactions NULL
-Triggers NULL
-UPDATE ft2 SET copy = UPPER(copy),
-copy2= copy;
-SELECT * FROM ft2;
-copy copy2
-MYSQL VS MARIADB DATABASE MySQL vs MariaDB database
-ORACLE VS MARIADB DATABASE Oracle vs MariaDB database
-POSTGRESQL VS MARIADB DATABASE PostgreSQL vs MariaDB database
-MARIADB OVERVIEW MariaDB overview
-FOREIGN KEYS Foreign keys
-PRIMARY KEYS Primary keys
-INDEXES Indexes
-TRANSACTIONS Transactions
-TRIGGERS Triggers
-DROP TABLE ft2;
diff --git a/mysql-test/r/single_delete_update.result b/mysql-test/r/single_delete_update.result
deleted file mode 100644
index 85e79f53c89..00000000000
--- a/mysql-test/r/single_delete_update.result
+++ /dev/null
@@ -1,1210 +0,0 @@
-#
-# Bug #30584: delete with order by and limit clauses does not use
-# limit efficiently
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25);
-CREATE TABLE t2(a INT, i INT PRIMARY KEY);
-INSERT INTO t2 (i) SELECT i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-a i
-NULL 11
-NULL 12
-NULL 13
-NULL 14
-NULL 15
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 4
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-FLUSH STATUS;
-DELETE FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 4
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i;
-a i
-NULL 16
-NULL 17
-NULL 18
-DROP TABLE t2;
-#
-# index on field prefix:
-#
-CREATE TABLE t2(a INT, i CHAR(2), INDEX(i(1)));
-INSERT INTO t2 (i) SELECT i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-a i
-NULL 11
-NULL 12
-NULL 13
-NULL 14
-NULL 15
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 5
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-FLUSH STATUS;
-DELETE FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 8
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 5
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i;
-a i
-NULL 16
-NULL 17
-NULL 18
-DROP TABLE t2;
-#
-# constant inside ORDER BY list, should use filesort
-# on a small table
-#
-CREATE TABLE t2(a INT, b INT, c INT, d INT, INDEX(a, b, c));
-INSERT INTO t2 (a, b, c) SELECT i, i, i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-a b c d
-10 10 10 NULL
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 1
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-FLUSH STATUS;
-DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 1
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 1
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-## should be 5 (previous LIMIT)
-SELECT 1 - COUNT(*) FROM t2 WHERE b = 10;
-1 - COUNT(*)
-1
-DROP TABLE t2;
-#
-# same test as above (constant inside ORDER BY list), but with
-# a larger table - should not use filesort
-#
-CREATE TABLE t2(a INT, b INT, c INT, d INT, INDEX(a, b, c));
-INSERT INTO t2 (a, b, c) SELECT i, i, i FROM t1;
-INSERT INTO t2 (a, b, c) SELECT t1.i, t1.i, t1.i FROM t1, t1 x1, t1 x2;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-a b c d
-10 10 10 NULL
-10 10 10 NULL
-10 10 10 NULL
-10 10 10 NULL
-10 10 10 NULL
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 1
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 4
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-FLUSH STATUS;
-DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 1
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 4
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-## should be 5 (previous LIMIT)
-SELECT 257 - COUNT(*) FROM t2 WHERE b = 10;
-257 - COUNT(*)
-5
-DROP TABLE t2;
-#
-# as above + partial index, should use filesort
-#
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), d CHAR(2), INDEX (a,b(1),c));
-INSERT INTO t2 SELECT i, i, i, i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-a b c d
-10 10 10 10
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 1
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-FLUSH STATUS;
-DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 1
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 1
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-SELECT * FROM t2 WHERE b = 10 ORDER BY a, c;
-a b c d
-DROP TABLE t2;
-#
-# as above but index is without HA_READ_ORDER flag, should use filesort
-#
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), d CHAR(2), INDEX (a,b,c)) ENGINE=HEAP;
-INSERT INTO t2 SELECT i, i, i, i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-a b c d
-10 10 10 10
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 1
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 1
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-FLUSH STATUS;
-DELETE FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 1
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 1
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-SELECT * FROM t2 WHERE b = 10 ORDER BY a, c;
-a b c d
-DROP TABLE t2;
-#
-# quick select is Index Merge, should use filesort
-#
-CREATE TABLE t2 (i INT, key1 INT, key2 INT, INDEX (key1), INDEX (key2));
-INSERT INTO t2 (key1, key2) SELECT i, i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-i key1 key2
-NULL 10 10
-NULL 11 11
-NULL 12 12
-NULL 13 13
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 1
-Sort_rows 4
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 7
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 4
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-x x x x x x x x x x Using sort_union(key1,key2); Using where; Using filesort
-Warnings:
-x x x
-FLUSH STATUS;
-DELETE FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 1
-Sort_rows 4
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 7
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 8
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-SELECT * FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-i key1 key2
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-x x x x x x x x x x Using sort_union(key1,key2); Using where; Using filesort
-Warnings:
-x x x
-DROP TABLE t2;
-#
-# reverse quick select, should not use filesort
-#
-CREATE TABLE t2(a INT, i INT PRIMARY KEY);
-INSERT INTO t2 (i) SELECT i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5;
-a i
-NULL 18
-NULL 17
-NULL 16
-NULL 15
-NULL 14
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 4
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-FLUSH STATUS;
-DELETE FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 4
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i;
-a i
-NULL 11
-NULL 12
-NULL 13
-DROP TABLE t2;
-#
-# mixed sorting direction, should use filesort
-#
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), INDEX (a, b));
-INSERT INTO t2 SELECT i, i, i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 ORDER BY a, b DESC LIMIT 5;
-a b c
-10 10 10
-11 11 11
-12 12 12
-13 13 13
-14 14 14
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 5
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-FLUSH STATUS;
-DELETE FROM t2 ORDER BY a, b DESC LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 16
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 5
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-SELECT * FROM t2 ORDER BY a, b DESC;
-a b c
-15 15 15
-16 16 16
-17 17 17
-18 18 18
-19 19 19
-20 20 20
-21 21 21
-22 22 22
-23 23 23
-24 24 24
-25 25 25
-DROP TABLE t2;
-#
-# LIMIT with no WHERE and DESC direction, should not use filesort
-#
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), INDEX (a, b));
-INSERT INTO t2 (a, b) SELECT i, i FROM t1;
-INSERT INTO t2 (a, b) SELECT t1.i, t1.i FROM t1, t1 x1, t1 x2;
-FLUSH STATUS;
-SELECT * FROM t2 ORDER BY a, b LIMIT 5;
-a b c
-10 10 NULL
-10 10 NULL
-10 10 NULL
-10 10 NULL
-10 10 NULL
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 1
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 4
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-FLUSH STATUS;
-SELECT * FROM t2 ORDER BY a DESC, b DESC LIMIT 5;
-a b c
-25 25 NULL
-25 25 NULL
-25 25 NULL
-25 25 NULL
-25 25 NULL
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 1
-Handler_read_next 0
-Handler_read_prev 4
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-FLUSH STATUS;
-DELETE FROM t2 ORDER BY a DESC, b DESC LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 1
-Handler_read_next 0
-Handler_read_prev 4
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-SELECT * FROM t2 WHERE c = 10 ORDER BY a DESC, b DESC;
-a b c
-DROP TABLE t1, t2;
-#
-# Bug #36569: UPDATE ... WHERE ... ORDER BY... always does a filesort
-# even if not required
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25);
-CREATE TABLE t2(a INT, i INT PRIMARY KEY);
-INSERT INTO t2 (i) SELECT i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-a i
-NULL 11
-NULL 12
-NULL 13
-NULL 14
-NULL 15
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 4
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-FLUSH STATUS;
-UPDATE t2 SET a = 10 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 4
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 5
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i;
-a i
-10 11
-10 12
-10 13
-10 14
-10 15
-NULL 16
-NULL 17
-NULL 18
-DROP TABLE t2;
-#
-# index on field prefix:
-#
-CREATE TABLE t2(a INT, i CHAR(2), INDEX(i(1)));
-INSERT INTO t2 (i) SELECT i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-a i
-NULL 11
-NULL 12
-NULL 13
-NULL 14
-NULL 15
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 5
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-FLUSH STATUS;
-UPDATE t2 SET a = 10 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 5
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 5
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i;
-a i
-10 11
-10 12
-10 13
-10 14
-10 15
-NULL 16
-NULL 17
-NULL 18
-DROP TABLE t2;
-#
-# constant inside ORDER BY list, should use filesort
-# on a small table
-#
-CREATE TABLE t2(a INT, b INT, c INT, d INT, INDEX(a, b, c));
-INSERT INTO t2 (a, b, c) SELECT i, i, i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-a b c d
-10 10 10 NULL
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 1
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-FLUSH STATUS;
-UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 1
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 1
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-## should be 5 (previous LIMIT)
-SELECT COUNT(*) FROM t2 WHERE b = 10 AND d = 10 ORDER BY a, c;
-COUNT(*)
-1
-DROP TABLE t2;
-#
-# same test as above (constant inside ORDER BY list), but with
-# a larger table - should not use filesort
-#
-CREATE TABLE t2(a INT, b INT, c INT, d INT, INDEX(a, b, c));
-INSERT INTO t2 (a, b, c) SELECT i, i, i FROM t1;
-INSERT INTO t2 (a, b, c) SELECT t1.i, t1.i, t1.i FROM t1, t1 x1, t1 x2;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-a b c d
-10 10 10 NULL
-10 10 10 NULL
-10 10 10 NULL
-10 10 10 NULL
-10 10 10 NULL
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 1
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 4
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-FLUSH STATUS;
-UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 1
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 4
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 5
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-## should be 5 (previous LIMIT)
-SELECT COUNT(*) FROM t2 WHERE b = 10 AND d = 10 ORDER BY a, c;
-COUNT(*)
-5
-DROP TABLE t2;
-#
-# as above + partial index, should use filesort
-#
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), d CHAR(2), INDEX (a,b(1),c));
-INSERT INTO t2 SELECT i, i, i, i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-a b c d
-10 10 10 10
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 1
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-FLUSH STATUS;
-UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 1
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 1
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-SELECT * FROM t2 WHERE b = 10 ORDER BY a, c;
-a b c d
-10 10 10 10
-DROP TABLE t2;
-#
-# as above but index is without HA_READ_ORDER flag, should use filesort
-#
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), d CHAR(2), INDEX (a,b,c)) ENGINE=HEAP;
-INSERT INTO t2 SELECT i, i, i, i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
-a b c d
-10 10 10 10
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 1
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 1
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-FLUSH STATUS;
-UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 1
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 1
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-SELECT * FROM t2 WHERE b = 10 ORDER BY a, c;
-a b c d
-10 10 10 10
-DROP TABLE t2;
-#
-# quick select is Index Merge, should use filesort
-#
-CREATE TABLE t2 (i INT, key1 INT, key2 INT, INDEX (key1), INDEX (key2));
-INSERT INTO t2 (key1, key2) SELECT i, i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-i key1 key2
-NULL 10 10
-NULL 11 11
-NULL 12 12
-NULL 13 13
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 1
-Sort_rows 4
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 7
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 4
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-x x x x x x x x x x Using sort_union(key1,key2); Using where; Using filesort
-Warnings:
-x x x
-FLUSH STATUS;
-UPDATE t2 SET i = 123 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 1
-Sort_rows 4
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 7
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 8
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-SELECT * FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-i key1 key2
-123 10 10
-123 11 11
-123 12 12
-123 13 13
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-x x x x x x x x x x Using sort_union(key1,key2); Using where; Using filesort
-Warnings:
-x x x
-DROP TABLE t2;
-#
-# reverse quick select, should not use filesort
-#
-CREATE TABLE t2(a INT, i INT PRIMARY KEY);
-INSERT INTO t2 (i) SELECT i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5;
-a i
-NULL 18
-NULL 17
-NULL 16
-NULL 15
-NULL 14
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 4
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-FLUSH STATUS;
-UPDATE t2 SET a = 10 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 4
-Handler_read_retry 0
-Handler_read_rnd 5
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i;
-a i
-NULL 11
-NULL 12
-NULL 13
-10 14
-10 15
-10 16
-10 17
-10 18
-DROP TABLE t2;
-#
-# mixed sorting direction, should use filesort
-#
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), INDEX (a, b));
-INSERT INTO t2 SELECT i, i, i FROM t1;
-FLUSH STATUS;
-SELECT * FROM t2 ORDER BY a, b DESC LIMIT 5;
-a b c
-10 10 10
-11 11 11
-12 12 12
-13 13 13
-14 14 14
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 5
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-FLUSH STATUS;
-UPDATE t2 SET c = 10 ORDER BY a, b DESC LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 1
-Sort_range 0
-Sort_rows 5
-Sort_scan 1
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 5
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-SELECT * FROM t2 WHERE c = 10 ORDER BY a, b DESC;
-a b c
-10 10 10
-11 11 10
-12 12 10
-13 13 10
-14 14 10
-DROP TABLE t2;
-#
-# LIMIT with no WHERE and DESC direction, should not use filesort
-#
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), INDEX (a, b));
-INSERT INTO t2 (a, b) SELECT i, i FROM t1;
-INSERT INTO t2 (a, b) SELECT t1.i, t1.i FROM t1, t1 x1, t1 x2;
-FLUSH STATUS;
-SELECT * FROM t2 ORDER BY a, b LIMIT 5;
-a b c
-10 10 NULL
-10 10 NULL
-10 10 NULL
-10 10 NULL
-10 10 NULL
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 1
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 4
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-FLUSH STATUS;
-SELECT * FROM t2 ORDER BY a DESC, b DESC LIMIT 5;
-a b c
-25 25 NULL
-25 25 NULL
-25 25 NULL
-25 25 NULL
-25 25 NULL
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 1
-Handler_read_next 0
-Handler_read_prev 4
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-FLUSH STATUS;
-UPDATE t2 SET c = 10 ORDER BY a DESC, b DESC LIMIT 5;
-SHOW SESSION STATUS LIKE 'Sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 0
-Sort_scan 0
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 1
-Handler_read_next 0
-Handler_read_prev 4
-Handler_read_retry 0
-Handler_read_rnd 5
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-SELECT * FROM t2 WHERE c = 10 ORDER BY a DESC, b DESC;
-a b c
-25 25 10
-25 25 10
-25 25 10
-25 25 10
-25 25 10
-DROP TABLE t1, t2;
diff --git a/mysql-test/r/single_delete_update_innodb.result b/mysql-test/r/single_delete_update_innodb.result
deleted file mode 100644
index aca40974054..00000000000
--- a/mysql-test/r/single_delete_update_innodb.result
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# Bug #53742: UPDATEs have no effect after applying patch for bug 36569
-#
-CREATE TABLE t1 (
-pk INT NOT NULL AUTO_INCREMENT,
-c1_idx CHAR(1) DEFAULT 'y',
-c2 INT,
-PRIMARY KEY (pk),
-INDEX c1_idx (c1_idx)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (), (), (), ();
-SELECT * FROM t1 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2;
-pk c1_idx c2
-4 y NULL
-3 y NULL
-UPDATE t1 SET c2 = 0 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2;
-SELECT * FROM t1 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2;
-pk c1_idx c2
-4 y 0
-3 y 0
-SELECT * FROM t1 WHERE c1_idx = 'y' ORDER BY pk DESC;
-pk c1_idx c2
-4 y 0
-3 y 0
-2 y NULL
-1 y NULL
-DELETE FROM t1 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2;
-SELECT * FROM t1 WHERE c1_idx = 'y' ORDER BY pk DESC;
-pk c1_idx c2
-2 y NULL
-1 y NULL
-DROP TABLE t1;
diff --git a/mysql-test/r/skip_grants.result b/mysql-test/r/skip_grants.result
deleted file mode 100644
index de263074b61..00000000000
--- a/mysql-test/r/skip_grants.result
+++ /dev/null
@@ -1,97 +0,0 @@
-use test;
-DROP VIEW IF EXISTS v1;
-DROP VIEW IF EXISTS v2;
-DROP VIEW IF EXISTS v3;
-DROP TABLE IF EXISTS t1;
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-DROP PROCEDURE IF EXISTS p3;
-DROP FUNCTION IF EXISTS f1;
-DROP FUNCTION IF EXISTS f2;
-DROP FUNCTION IF EXISTS f3;
-CREATE TABLE t1(c INT);
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1
-FOR EACH ROW
-SET @a = 1;
-CREATE VIEW v1 AS SELECT * FROM t1;
-CREATE PROCEDURE p1()
-SELECT 1;
-CREATE FUNCTION f1() RETURNS INT
-RETURN 1;
-CREATE DEFINER=a@b TRIGGER ti_ai AFTER INSERT ON t1
-FOR EACH ROW
-SET @b = 1;
-CREATE DEFINER=a@b VIEW v2 AS SELECT * FROM t1;
-CREATE DEFINER=a@b PROCEDURE p2()
-SELECT 2;
-CREATE DEFINER=a@b FUNCTION f2() RETURNS INT
-RETURN 2;
-CREATE DEFINER=a@'' TRIGGER ti_bu BEFORE UPDATE ON t1
-FOR EACH ROW
-SET @c = 1;
-CREATE DEFINER=a@'' VIEW v3 AS SELECT * FROM t1;
-CREATE DEFINER=a@'' PROCEDURE p3()
-SELECT 3;
-CREATE DEFINER=a@'' FUNCTION f3() RETURNS INT
-RETURN 3;
-SHOW CREATE VIEW v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`a`@`%` SQL SECURITY DEFINER VIEW `v3` AS select `t1`.`c` AS `c` from `t1` latin1 latin1_swedish_ci
-SHOW CREATE PROCEDURE p3;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p3 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`a`@`%` PROCEDURE `p3`()
-SELECT 3 latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE FUNCTION f3;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-f3 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`a`@`%` FUNCTION `f3`() RETURNS int(11)
-RETURN 3 latin1 latin1_swedish_ci latin1_swedish_ci
-DROP TRIGGER t1_bi;
-DROP TRIGGER ti_ai;
-DROP TRIGGER ti_bu;
-DROP VIEW v1;
-DROP VIEW v2;
-DROP VIEW v3;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP PROCEDURE p3;
-DROP FUNCTION f1;
-DROP FUNCTION f2;
-DROP FUNCTION f3;
-set global event_scheduler=1;
-Warnings:
-Note 1408 Event Scheduler: Loaded 0 events
-set global event_scheduler=0;
-select count(*) from information_schema.COLUMN_PRIVILEGES;
-count(*)
-0
-select count(*) from information_schema.SCHEMA_PRIVILEGES;
-count(*)
-0
-select count(*) from information_schema.TABLE_PRIVILEGES;
-count(*)
-0
-select count(*) from information_schema.USER_PRIVILEGES;
-count(*)
-0
-End of 5.0 tests
-#
-# Bug#29817 Queries with UDF fail with non-descriptive error
-# if mysql.proc is missing
-#
-select no_such_function(1);
-ERROR 42000: FUNCTION test.no_such_function does not exist
-End of 5.1 tests
-show global status like 'Acl%';
-Variable_name Value
-Acl_column_grants 0
-Acl_database_grants 0
-Acl_function_grants 0
-Acl_procedure_grants 0
-Acl_package_spec_grants 0
-Acl_package_body_grants 0
-Acl_proxy_users 0
-Acl_role_grants 0
-Acl_roles 0
-Acl_table_grants 0
-Acl_users 0
diff --git a/mysql-test/r/skip_log_bin.result b/mysql-test/r/skip_log_bin.result
deleted file mode 100644
index 2fdd88ff526..00000000000
--- a/mysql-test/r/skip_log_bin.result
+++ /dev/null
@@ -1,6 +0,0 @@
-DROP TABLE IF EXISTS t1, t2;
-set @@session.binlog_format=row;
-create table t1 (a int);
-insert into t1 values (1);
-create table t2 select * from t1;
-drop table t1, t2;
diff --git a/mysql-test/r/skip_name_resolve.result b/mysql-test/r/skip_name_resolve.result
deleted file mode 100644
index 1362e482717..00000000000
--- a/mysql-test/r/skip_name_resolve.result
+++ /dev/null
@@ -1,42 +0,0 @@
-CREATE USER mysqltest_1@'127.0.0.1/255.255.255.255';
-GRANT ALL ON test.* TO mysqltest_1@'127.0.0.1/255.255.255.255';
-SHOW GRANTS FOR mysqltest_1@'127.0.0.1/255.255.255.255';
-Grants for mysqltest_1@127.0.0.1/255.255.255.255
-GRANT USAGE ON *.* TO 'mysqltest_1'@'127.0.0.1/255.255.255.255'
-GRANT ALL PRIVILEGES ON `test`.* TO 'mysqltest_1'@'127.0.0.1/255.255.255.255'
-REVOKE ALL ON test.* FROM mysqltest_1@'127.0.0.1/255.255.255.255';
-DROP USER mysqltest_1@'127.0.0.1/255.255.255.255';
-connect con1, localhost, root, , test, $MASTER_MYPORT, ;
-SELECT USER();
-USER()
-#
-SHOW PROCESSLIST;
-connection default;
-disconnect con1;
-#
-# Bug #37168: Missing variable - skip_name_resolve
-#
-SHOW VARIABLES LIKE 'skip_name_resolve';
-Variable_name Value
-skip_name_resolve ON
-SHOW GLOBAL VARIABLES LIKE 'skip_name_resolve';
-Variable_name Value
-skip_name_resolve ON
-SHOW SESSION VARIABLES LIKE 'skip_name_resolve';
-Variable_name Value
-skip_name_resolve ON
-SELECT @@skip_name_resolve;
-@@skip_name_resolve
-1
-SELECT @@LOCAL.skip_name_resolve;
-ERROR HY000: Variable 'skip_name_resolve' is a GLOBAL variable
-SELECT @@GLOBAL.skip_name_resolve;
-@@GLOBAL.skip_name_resolve
-1
-SET @@skip_name_resolve=0;
-ERROR HY000: Variable 'skip_name_resolve' is a read only variable
-SET @@LOCAL.skip_name_resolve=0;
-ERROR HY000: Variable 'skip_name_resolve' is a read only variable
-SET @@GLOBAL.skip_name_resolve=0;
-ERROR HY000: Variable 'skip_name_resolve' is a read only variable
-End of 5.1 tests
diff --git a/mysql-test/r/slowlog_enospace-10508.result b/mysql-test/r/slowlog_enospace-10508.result
deleted file mode 100644
index f39bfa2f00e..00000000000
--- a/mysql-test/r/slowlog_enospace-10508.result
+++ /dev/null
@@ -1,60 +0,0 @@
-call mtr.add_suppression('Error writing file.*errno: 28 ');
-create table t1 (a int, b int) engine=memory;
-insert t1 select seq, seq+1 from seq_1_to_1000;
-set global general_log=0;
-set global log_queries_not_using_indexes=1;
-set debug_dbug='+d,simulate_file_write_error';
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-select * from t1 where a>10;
-set debug_dbug='';
-set global general_log=1;
-set global log_queries_not_using_indexes=default;
-drop table t1;
diff --git a/mysql-test/r/sp-anchor-row-type-cursor.result b/mysql-test/r/sp-anchor-row-type-cursor.result
deleted file mode 100644
index add771c534c..00000000000
--- a/mysql-test/r/sp-anchor-row-type-cursor.result
+++ /dev/null
@@ -1,1033 +0,0 @@
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12461 TYPE OF and ROW TYPE OF anchored data types
-#
-#
-# A complete working example
-#
-CREATE TABLE t1 (a INT, b VARCHAR(32));
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t1 VALUES (10,'b10');
-INSERT INTO t1 VALUES (20,'b20');
-INSERT INTO t1 VALUES (30,'b30');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE c CURSOR FOR SELECT a,b FROM t1;
-BEGIN
-DECLARE done INT DEFAULT 0;
-DECLARE rec ROW TYPE OF c;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=1;
-OPEN c;
-read_loop: LOOP
-FETCH c INTO rec;
-IF done THEN
-LEAVE read_loop;
-END IF;
-SELECT rec.a ,rec.b FROM dual;
-INSERT INTO t2 VALUES (rec.a, rec.b);
-END LOOP;
-CLOSE c;
-END;
-END;
-$$
-CALL p1();
-rec.a rec.b
-10 b10
-rec.a rec.b
-20 b20
-rec.a rec.b
-30 b30
-SELECT * FROM t2;
-a b
-10 b10
-20 b20
-30 b30
-DROP PROCEDURE p1;
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# cursor ROW TYPE referring to a table in a non-existing database
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur CURSOR FOR SELECT * FROM tes2.t1;
-BEGIN
-DECLARE rec ROW TYPE OF cur;
-END;
-END;
-$$
-CALL p1();
-ERROR 42S02: Table 'tes2.t1' doesn't exist
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10));
-CALL p1();
-ERROR 42S02: Table 'tes2.t1' doesn't exist
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# cursor ROW TYPE referring to a table in the current database
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec ROW TYPE OF cur;
-CREATE TABLE t2 AS SELECT rec.a, rec.b, rec.c, rec.d;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-END;
-$$
-CALL p1();
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10));
-CALL p1();
-Table Create Table
-t2 CREATE TABLE `t2` (
- `rec.a` int(11) DEFAULT NULL,
- `rec.b` varchar(10) DEFAULT NULL,
- `rec.c` double DEFAULT NULL,
- `rec.d` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CALL p1();
-ERROR 42S02: Table 'test.t1' doesn't exist
-DROP PROCEDURE p1;
-#
-# cursor ROW TYPE referring to a table in an explicitly specified database
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur CURSOR FOR SELECT * FROM test.t1;
-BEGIN
-DECLARE rec ROW TYPE OF cur;
-CREATE TABLE t2 AS SELECT rec.a, rec.b, rec.c, rec.d;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-END;
-$$
-CALL p1();
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10));
-CALL p1();
-Table Create Table
-t2 CREATE TABLE `t2` (
- `rec.a` int(11) DEFAULT NULL,
- `rec.b` varchar(10) DEFAULT NULL,
- `rec.c` double DEFAULT NULL,
- `rec.d` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Cursor ROW TYPE referring to a view in the current database
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur CURSOR FOR SELECT * FROM v1;
-BEGIN
-DECLARE rec ROW TYPE OF cur;
-CREATE TABLE t2 AS SELECT rec.a, rec.b, rec.c, rec.d;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-END;
-$$
-CALL p1();
-ERROR 42S02: Table 'test.v1' doesn't exist
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10));
-CREATE VIEW v1 AS SELECT * FROM t1;
-CALL p1();
-Table Create Table
-t2 CREATE TABLE `t2` (
- `rec.a` int(11) DEFAULT NULL,
- `rec.b` varchar(10) DEFAULT NULL,
- `rec.c` double DEFAULT NULL,
- `rec.d` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP VIEW v1;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# cursor ROW TYPE referring to a view in an explicitly specified database
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur CURSOR FOR SELECT * FROM test.v1;
-BEGIN
-DECLARE rec ROW TYPE OF cur;
-CREATE TABLE t2 AS SELECT rec.a, rec.b, rec.c, rec.d;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-END;
-$$
-CALL p1();
-ERROR 42S02: Table 'test.v1' doesn't exist
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10));
-CREATE VIEW v1 AS SELECT * FROM t1;
-CALL p1();
-Table Create Table
-t2 CREATE TABLE `t2` (
- `rec.a` int(11) DEFAULT NULL,
- `rec.b` varchar(10) DEFAULT NULL,
- `rec.c` double DEFAULT NULL,
- `rec.d` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP VIEW v1;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Checking that all cursor ROW TYPE fields are NULL by default
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10,2));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-SELECT rec1.a, rec1.b, rec1.c, rec1.d;
-END;
-END;
-$$
-CALL p1();
-rec1.a rec1.b rec1.c rec1.d
-NULL NULL NULL NULL
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# A cursor ROW TYPE variable with a ROW expression as a default
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1 DEFAULT ROW(10,'bbb');
-SELECT rec1.a, rec1.b;
-END;
-END;
-$$
-CALL p1();
-rec1.a rec1.b
-10 bbb
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# A cursor ROW TYPE variable with an incompatible ROW expression as a default
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1 DEFAULT ROW(10,'bbb','ccc');
-SELECT rec1.a, rec1.b;
-END;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 2 column(s)
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# A cursor ROW TYPE variable with a ROW variable as a default
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec1 ROW(a INT, b VARCHAR(10)) DEFAULT ROW(10,'bbb');
-DECLARE rec2 ROW TYPE OF cur DEFAULT rec1;
-SELECT rec2.a, rec2.b;
-END;
-END;
-$$
-CALL p1();
-rec2.a rec2.b
-10 bbb
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# A ROW variable using a cursor ROW TYPE variable as a default
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1 DEFAULT ROW(10,'bbb');
-DECLARE rec2 ROW(a INT, b VARCHAR(10)) DEFAULT rec1;
-SELECT rec2.a, rec2.b;
-END;
-END;
-$$
-CALL p1();
-rec2.a rec2.b
-10 bbb
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Assigning cursor ROW TYPE variables with a different column count
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE);
-CREATE TABLE t2 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-DECLARE cur2 CURSOR FOR SELECT * FROM t2;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-DECLARE rec2 ROW TYPE OF cur2;
-SET rec2=rec1;
-END;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 2 column(s)
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-DECLARE cur2 CURSOR FOR SELECT * FROM t2;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-DECLARE rec2 ROW TYPE OF cur2;
-SET rec1=rec2;
-END;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 3 column(s)
-DROP TABLE t2;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Assigning compatible cursor ROW TYPE variables (equal number of fields)
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE TABLE t2 (x INT, y VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-DECLARE cur2 CURSOR FOR SELECT * FROM t2;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-DECLARE rec2 ROW TYPE OF cur2;
-SET rec1.a= 10;
-SET rec1.b= 'bbb';
-SET rec2=rec1;
-SELECT rec2.x, rec2.y;
-END;
-END;
-$$
-CALL p1();
-rec2.x rec2.y
-10 bbb
-DROP TABLE t2;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Assigning between incompatible cursor ROW TYPE and explicit ROW variables
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-DECLARE rec2 ROW(x INT,y INT,z INT);
-SET rec2.x= 10;
-SET rec2.y= 20;
-SET rec2.z= 30;
-SET rec1= rec2;
-END;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 2 column(s)
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Assigning between compatible cursor ROW TYPE and explicit ROW variables
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-DECLARE rec2 ROW(x INT,y INT);
-SET rec2.x= 10;
-SET rec2.y= 20;
-SET rec1= rec2;
-SELECT rec1.a, rec1.b;
-SET rec1.a= 11;
-SET rec1.b= 21;
-SET rec2= rec1;
-SELECT rec2.x, rec2.y;
-END;
-END;
-$$
-CALL p1();
-rec1.a rec1.b
-10 20
-rec2.x rec2.y
-11 21
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Assigning cursor ROW TYPE from a ROW expression
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-SET rec1= ROW(10,20);
-SELECT rec1.a, rec1.b;
-END;
-END;
-$$
-CALL p1();
-rec1.a rec1.b
-10 20
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Fetching a cursor into a cursor ROW TYPE variable with a wrong field count
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10,2));
-CREATE TABLE t2 (a INT, b VARCHAR(10));
-INSERT INTO t1 VALUES (10,'bb1',111.111e2, 12.31);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-DECLARE cur2 CURSOR FOR SELECT * FROM t2;
-BEGIN
-DECLARE rec2 ROW TYPE OF cur2;
-OPEN cur1;
-FETCH cur1 INTO rec2;
-CLOSE cur1;
-END;
-END;
-$$
-CALL p1();
-ERROR HY000: Incorrect number of FETCH variables
-DROP TABLE t2;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Fetching a cursor into a cursor ROW TYPE variable
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10,2));
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t1 VALUES (10,'bb1',111.111e2, 12.31);
-INSERT INTO t1 VALUES (20,'bb2',222.222e2, 12.32);
-INSERT INTO t1 VALUES (30,'bb3',333.333e2, 12.33);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE done INT DEFAULT 0;
-DECLARE rec ROW TYPE OF cur;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN cur;
-read_loop: LOOP
-FETCH cur INTO rec;
-IF done THEN
-LEAVE read_loop;
-END IF;
-SELECT rec.a, rec.b, rec.c, rec.d;
-INSERT INTO t2 VALUES (rec.a, rec.b, rec.c, rec.d);
-END LOOP;
-CLOSE cur;
-END;
-END;
-$$
-CALL p1();
-rec.a rec.b rec.c rec.d
-10 bb1 11111.1 12.31
-rec.a rec.b rec.c rec.d
-20 bb2 22222.2 12.32
-rec.a rec.b rec.c rec.d
-30 bb3 33333.3 12.33
-SELECT * FROM t2;
-a b c d
-10 bb1 11111.1 12.31
-20 bb2 22222.2 12.32
-30 bb3 33333.3 12.33
-DROP TABLE t2;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Fetching a cursor into a cursor ROW TYPE variable, ROW TYPE OF cur declared inside the LOOP
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10,2));
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t1 VALUES (10,'bb1',111.111e2, 12.31);
-INSERT INTO t1 VALUES (20,'bb2',222.222e2, 12.32);
-INSERT INTO t1 VALUES (30,'bb3',333.333e2, 12.33);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE done INT DEFAULT 0;
-DECLARE cur CURSOR FOR SELECT * FROM t1;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN cur;
-read_loop: LOOP
-BEGIN
-DECLARE rec ROW TYPE OF cur;
-FETCH cur INTO rec;
-IF done THEN
-LEAVE read_loop;
-END IF;
-SELECT rec.a, rec.b, rec.c, rec.d;
-INSERT INTO t2 VALUES (rec.a, rec.b, rec.c, rec.d);
-END;
-END LOOP;
-CLOSE cur;
-END;
-$$
-CALL p1();
-rec.a rec.b rec.c rec.d
-10 bb1 11111.1 12.31
-rec.a rec.b rec.c rec.d
-20 bb2 22222.2 12.32
-rec.a rec.b rec.c rec.d
-30 bb3 33333.3 12.33
-SELECT * FROM t2;
-a b c d
-10 bb1 11111.1 12.31
-20 bb2 22222.2 12.32
-30 bb3 33333.3 12.33
-DROP TABLE t2;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Fetching a cursor into a cursor ROW TYPE variable with different column names
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE TABLE t2 (x INT, y VARCHAR(10));
-INSERT INTO t1 VALUES (10,'bbb');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-DECLARE cur2 CURSOR FOR SELECT * FROM t2;
-BEGIN
-DECLARE rec2 ROW TYPE OF cur2;
-OPEN cur1;
-FETCH cur1 INTO rec2;
-SELECT rec2.x, rec2.y;
-CLOSE cur1;
-END;
-END;
-$$
-CALL p1();
-rec2.x rec2.y
-10 bbb
-DROP TABLE t2;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Fetching a cursor into a cursor ROW TYPE variable, with truncation
-#
-SET sql_mode='';
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE TABLE t2 (a INT, b INT);
-INSERT INTO t1 VALUES (10,'11x');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-DECLARE cur2 CURSOR FOR SELECT * FROM t2;
-BEGIN
-DECLARE rec2 ROW TYPE OF cur2;
-OPEN cur1;
-FETCH cur1 INTO rec2;
-SELECT rec2.a, rec2.b;
-CLOSE cur1;
-END;
-END;
-$$
-CALL p1();
-rec2.a rec2.b
-10 11
-Warnings:
-Warning 1265 Data truncated for column 'b' at row 1
-DROP TABLE t2;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-SET sql_mode=DEFAULT;
-#
-# cursor ROW TYPE variables are not allowed in LIMIT
-#
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1,2);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1 DEFAULT (1,2);
-SELECT * FROM t1 LIMIT rec1.a;
-END;
-END;
-$$
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-DROP TABLE t1;
-#
-# cursor ROW TYPE variable fields as OUT parameters
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1(OUT a INT,OUT b VARCHAR(10))
-BEGIN
-SET a=10;
-SET b='bb';
-END;
-$$
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-CALL p1(rec1.a, rec1.b);
-SELECT rec1.a, rec1.b;
-END;
-END;
-$$
-CALL p2();
-rec1.a rec1.b
-10 bb
-DROP PROCEDURE p2;
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Passing the entire cursor ROW TYPE variable
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1(a ROW(a INT, b VARCHAR(10)))
-BEGIN
-SELECT a.a, a.b;
-END;
-$$
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE cur CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur DEFAULT ROW(10,'bb');
-CALL p1(rec1);
-END;
-END;
-$$
-CALL p2();
-a.a a.b
-10 bb
-DROP PROCEDURE p2;
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Passing the entire cursor ROW TYPE variable as an OUT parameter
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1(OUT a ROW(a INT, b VARCHAR(10)))
-BEGIN
-SET a= ROW(10,'bb');
-END;
-$$
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE cur CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur;
-CALL p1(rec1);
-SELECT rec1.a, rec1.b;
-END;
-END;
-$$
-CALL p2();
-rec1.a rec1.b
-10 bb
-DROP PROCEDURE p2;
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Assigning a cursor ROW TYPE field to an OUT parameter
-#
-CREATE PROCEDURE p1 (INOUT res INTEGER)
-BEGIN
-DECLARE a INT DEFAULT 10;
-DECLARE cur1 CURSOR FOR SELECT a FROM DUAL;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-OPEN cur1;
-FETCH cur1 INTO rec1;
-CLOSE cur1;
-SET res=rec1.a;
-END;
-END;
-$$
-CALL p1(@res);
-SELECT @res;
-@res
-10
-SET @res=NULL;
-DROP PROCEDURE p1;
-#
-# Testing Item_splocal_row_field_by_name::print
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec ROW TYPE OF cur1 DEFAULT ROW(10,'bb');
-EXPLAIN EXTENDED SELECT rec.a, rec.b;
-END;
-END;
-$$
-CALL p1();
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select rec.a@0["a"] AS `rec.a`,rec.b@0["b"] AS `rec.b`
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Run time error in the cursor statement
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT
-10 AS a,
-CONCAT(_latin1'a' COLLATE latin1_bin,
-_latin1'a' COLLATE latin1_swedish_ci) AS b;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-OPEN cur1;
-FETCH cur1 INTO rec1;
-CLOSE cur1;
-SELECT a,b;
-END;
-END;
-$$
-CALL p1();
-ERROR HY000: Illegal mix of collations (latin1_bin,EXPLICIT) and (latin1_swedish_ci,EXPLICIT) for operation 'concat'
-DROP PROCEDURE p1;
-#
-# Non-existing field
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec ROW TYPE OF cur1;
-SELECT rec.c;
-END;
-END;
-$$
-CALL p1();
-ERROR HY000: Row variable 'rec' does not have a field 'c'
-ALTER TABLE t1 ADD c INT;
-ALTER PROCEDURE p1 COMMENT 'test';
-CALL p1();
-rec.c
-NULL
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Testing that field names are case insensitive
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec ROW TYPE OF cur DEFAULT ROW(10,'bb');
-SELECT rec.A, rec.B;
-END;
-END;
-$$
-CALL p1();
-rec.A rec.B
-10 bb
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Testing that cursor ROW TYPE uses temporary tables vs shadowed real tables
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE TEMPORARY TABLE t1 (x INT, y VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec ROW TYPE OF cur DEFAULT ROW(10,'bb');
-SELECT rec.A, rec.B;
-END;
-END;
-$$
-CALL p1();
-ERROR HY000: Row variable 'rec' does not have a field 'A'
-DROP TEMPORARY TABLE t1;
-ALTER PROCEDURE p1 COMMENT 'test';
-CALL p1();
-rec.A rec.B
-10 bb
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Testing that the structure of cursor ROW TYPE variables is determined at the DECLARE CURSOR instantiation time
-#
-CREATE TABLE t1 (a INT, b VARCHAR(32));
-INSERT INTO t1 VALUES (10,'b10');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur CURSOR FOR SELECT * FROM t1;
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b VARCHAR(32), c INT);
-BEGIN
-DECLARE rec ROW TYPE OF cur; -- This has a column "c"
- SET rec.c=10;
-END;
-END;
-$$
-CALL p1();
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE TABLE t1 (a INT, b VARCHAR(32));
-INSERT INTO t1 VALUES (10,'b10');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec ROW TYPE OF cur; -- This does not have a column "c"
- DROP TABLE t1;
-CREATE TABLE t1 (a INT, b VARCHAR(32), c INT);
-SET rec.c=10;
-END;
-END;
-$$
-CALL p1();
-ERROR HY000: Row variable 'rec' does not have a field 'c'
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Duplicate field nams in a cursor referenced by cursor ROW TYPE
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur CURSOR FOR SELECT * FROM t1, t2;
-BEGIN
-DECLARE rec ROW TYPE OF cur;
-SELECT rec.a;
-SET rec.a=10;
-END;
-END;
-$$
-CALL p1();
-ERROR 42S21: Duplicate column name 'a'
-DROP PROCEDURE p1;
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Tricky field names a cursor referenced by cursor ROW TYPE
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a VARCHAR(10));
-INSERT INTO t1 VALUES ('a');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur CURSOR FOR SELECT a, CONCAT(a,'a'), CONCAT(a,'ö') FROM t1;
-BEGIN
-DECLARE rec ROW TYPE OF cur;
-OPEN cur;
-FETCH cur INTO rec;
-CLOSE cur;
-SELECT rec.a, rec.`CONCAT(a,'a')`, rec.`CONCAT(a,'ö')`;
-END;
-END;
-$$
-CALL p1();
-rec.a rec.`CONCAT(a,'a')` rec.`CONCAT(a,'ö')`
-a aa aö
-DROP PROCEDURE p1;
-DROP TABLE t1;
-SET NAMES latin1;
-#
-# Using definitions recursively (cursor ROW TYPE variables in another cursor SELECT)
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-INSERT INTO t1 VALUES (10,'b1'),(20,'b2'),(30,'b3');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT a,b FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1 DEFAULT ROW(0,'b0');
-DECLARE cur2 CURSOR FOR SELECT rec1.a AS a, rec1.b AS b FROM t1;
-BEGIN
-DECLARE done INT DEFAULT 0;
-DECLARE rec2 ROW TYPE OF cur2;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN cur2;
-read_loop: LOOP
-FETCH cur2 INTO rec2;
-IF done THEN
-LEAVE read_loop;
-END IF;
-SELECT rec2.a, rec2.b;
-END LOOP;
-CLOSE cur2;
-END;
-END;
-END;
-$$
-CALL p1();
-rec2.a rec2.b
-0 b0
-rec2.a rec2.b
-0 b0
-rec2.a rec2.b
-0 b0
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Testing queries with auto-generated Items.
-# An instance of Item_func_conv_charset is created during the below SELECT query.
-# We check here that during an implicit cursor OPEN
-# done in sp_instr_cursor_copy_struct::exec_core()
-# all temporary Items are created on a proper memory root and are safely destroyed.
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1, b VARCHAR(10) CHARACTER SET utf8);
-INSERT INTO t1 VALUES (0xFF, 'a');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT CONCAT(a,b) AS c FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-OPEN cur1;
-FETCH cur1 INTO rec1;
-CLOSE cur1;
-SELECT HEX(rec1.c);
-END;
-END;
-$$
-CALL p1();
-HEX(rec1.c)
-C3BF61
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# SELECT INTO + cursor ROW TYPE variable with a wrong column count
-#
-CREATE TABLE t1 (a INT, b VARCHAR(32));
-INSERT INTO t1 VALUES (10,'b10');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT 10, 'b0', 'c0';
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-SELECT * FROM t1 INTO rec1;
-SELECT rec1.a, rec1.b;
-END;
-END;
-$$
-CALL p1();
-ERROR 21000: The used SELECT statements have a different number of columns
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# SELECT INTO + multiple cursor ROW TYPE variables
-#
-CREATE TABLE t1 (a INT, b VARCHAR(32));
-INSERT INTO t1 VALUES (10,'b10');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-SELECT * FROM t1 INTO rec1, rec1;
-SELECT rec1.a, rec1.b;
-END;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 2 column(s)
-DROP TABLE t1;
-DROP PROCEDURE p1;
-# SELECT INTO + cursor ROW TYPE working example
-CREATE TABLE t1 (a INT, b VARCHAR(32));
-INSERT INTO t1 VALUES (10,'b10');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-SELECT * FROM t1 INTO rec1;
-SELECT rec1.a, rec1.b;
-END;
-END;
-$$
-CALL p1();
-rec1.a rec1.b
-10 b10
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# End of MDEV-12461 TYPE OF and ROW TYPE OF anchored data types
-#
-#
-# MDEV-12916 Wrong column data type for an INT field of a cursor-anchored ROW variable
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a INT DEFAULT 10;
-DECLARE cur1 CURSOR FOR SELECT a;
-BEGIN
-DECLARE rec1 ROW TYPE OF cur1;
-CREATE TABLE t1 AS SELECT rec1.a;
-SHOW CREATE TABLE t1;
-DROP TABLE t1;
-END;
-END;
-$$
-CALL p1();
-Table Create Table
-t1 CREATE TABLE `t1` (
- `rec1.a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP PROCEDURE p1;
-#
-# MDEV-14139 Anchored data types for variables
-#
-BEGIN NOT ATOMIC
-DECLARE c1 CURSOR FOR SELECT 10 AS a, 'bbb' AS b, TIME'10:20:30' AS c;
-BEGIN
-DECLARE row1 ROW TYPE OF c1;
-DECLARE a_row1 TYPE OF row1;
-DECLARE aa_row1 TYPE OF a_row1;
-CREATE TABLE t2 AS SELECT a_row1.a AS a, a_row1.b AS b, a_row1.c AS c;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT aa_row1.a AS a, aa_row1.b AS b, aa_row1.c AS c;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-END;
-$$
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL,
- `b` varchar(3) DEFAULT NULL,
- `c` time DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL,
- `b` varchar(3) DEFAULT NULL,
- `c` time DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
diff --git a/mysql-test/r/sp-anchor-row-type-table.result b/mysql-test/r/sp-anchor-row-type-table.result
deleted file mode 100644
index 28a5180e6c9..00000000000
--- a/mysql-test/r/sp-anchor-row-type-table.result
+++ /dev/null
@@ -1,810 +0,0 @@
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12461 TYPE OF and ROW TYPE OF anchored data types
-#
-#
-# Referring to a table in a non-existing database
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW TYPE OF test2.t1;
-END;
-$$
-CALL p1();
-ERROR 42S02: Table 'test2.t1' doesn't exist
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10));
-CALL p1();
-ERROR 42S02: Table 'test2.t1' doesn't exist
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Referring to a table in the current database
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW TYPE OF t1;
-CREATE TABLE t2 AS SELECT rec.a, rec.b, rec.c, rec.d;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-$$
-CALL p1();
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10));
-CALL p1();
-Table Create Table
-t2 CREATE TABLE `t2` (
- `rec.a` int(11) DEFAULT NULL,
- `rec.b` varchar(10) DEFAULT NULL,
- `rec.c` double DEFAULT NULL,
- `rec.d` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Referring to a table in an explicitly specified database
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW TYPE OF test.t1;
-CREATE TABLE t2 AS SELECT rec.a, rec.b, rec.c, rec.d;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-$$
-CALL p1();
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10));
-CALL p1();
-Table Create Table
-t2 CREATE TABLE `t2` (
- `rec.a` int(11) DEFAULT NULL,
- `rec.b` varchar(10) DEFAULT NULL,
- `rec.c` double DEFAULT NULL,
- `rec.d` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Referring to a view in the current database
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW TYPE OF v1;
-CREATE TABLE t2 AS SELECT rec.a, rec.b, rec.c, rec.d;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-$$
-CALL p1();
-ERROR 42S02: Table 'test.v1' doesn't exist
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10));
-CREATE VIEW v1 AS SELECT * FROM t1;
-CALL p1();
-Table Create Table
-t2 CREATE TABLE `t2` (
- `rec.a` int(11) DEFAULT NULL,
- `rec.b` varchar(10) DEFAULT NULL,
- `rec.c` double DEFAULT NULL,
- `rec.d` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP VIEW v1;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Referring to a view in an explicitly specified database
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW TYPE OF test.v1;
-CREATE TABLE t2 AS SELECT rec.a, rec.b, rec.c, rec.d;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-$$
-CALL p1();
-ERROR 42S02: Table 'test.v1' doesn't exist
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10));
-CREATE VIEW v1 AS SELECT * FROM t1;
-CALL p1();
-Table Create Table
-t2 CREATE TABLE `t2` (
- `rec.a` int(11) DEFAULT NULL,
- `rec.b` varchar(10) DEFAULT NULL,
- `rec.c` double DEFAULT NULL,
- `rec.d` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP VIEW v1;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Checking that all table ROW TYPE fields are NULL by default
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10,2));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1;
-SELECT rec1.a, rec1.b, rec1.c, rec1.d;
-END;
-$$
-CALL p1();
-rec1.a rec1.b rec1.c rec1.d
-NULL NULL NULL NULL
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# A table ROW TYPE variable with a ROW expression as a default
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1 DEFAULT ROW(10,'bbb');
-SELECT rec1.a, rec1.b;
-END;
-$$
-CALL p1();
-rec1.a rec1.b
-10 bbb
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# A table ROW TYPE variable with an incompatible ROW expression as a default
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1 DEFAULT ROW(10,'bbb','ccc');
-SELECT rec1.a, rec1.b;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 2 column(s)
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# A table ROW TYPE variable with a ROW variable as a default
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW(a INT, b VARCHAR(10)) DEFAULT ROW(10,'bbb');
-DECLARE rec2 ROW TYPE OF t1 DEFAULT rec1;
-SELECT rec2.a, rec2.b;
-END;
-$$
-CALL p1();
-rec2.a rec2.b
-10 bbb
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# A ROW variable using a table ROW TYPE variable as a default
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1 DEFAULT ROW(10,'bbb');
-DECLARE rec2 ROW(a INT, b VARCHAR(10)) DEFAULT rec1;
-SELECT rec2.a, rec2.b;
-END;
-$$
-CALL p1();
-rec2.a rec2.b
-10 bbb
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Assigning table ROW TYPE variables with a different column count
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE);
-CREATE TABLE t2 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1;
-DECLARE rec2 ROW TYPE OF t2;
-SET rec2=rec1;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 2 column(s)
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1;
-DECLARE rec2 ROW TYPE OF t2;
-SET rec1=rec2;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 3 column(s)
-DROP TABLE t2;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Assigning compatible table ROW TYPE variables (equal number of fields)
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE TABLE t2 (x INT, y VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1;
-DECLARE rec2 ROW TYPE OF t2;
-SET rec1.a= 10;
-SET rec1.b= 'bbb';
-SET rec2=rec1;
-SELECT rec2.x, rec2.y;
-END;
-$$
-CALL p1();
-rec2.x rec2.y
-10 bbb
-DROP TABLE t2;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Assigning between incompatible table ROW TYPE and explicit ROW variables
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1;
-DECLARE rec2 ROW(x INT,y INT,z INT);
-SET rec2.x= 10;
-SET rec2.y= 20;
-SET rec2.z= 30;
-SET rec1= rec2;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 2 column(s)
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Assigning between compatible table ROW TYPE and explicit ROW variables
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1;
-DECLARE rec2 ROW(x INT,y INT);
-SET rec2.x= 10;
-SET rec2.y= 20;
-SET rec1= rec2;
-SELECT rec1.a, rec1.b;
-SET rec1.a= 11;
-SET rec1.b= 21;
-SET rec2= rec1;
-SELECT rec2.x, rec2.y;
-END;
-$$
-CALL p1();
-rec1.a rec1.b
-10 20
-rec2.x rec2.y
-11 21
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Assigning table ROW TYPE from a ROW expression
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1;
-SET rec1= ROW(10,20);
-SELECT rec1.a, rec1.b;
-END;
-$$
-CALL p1();
-rec1.a rec1.b
-10 20
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Fetching a cursor into a table ROW TYPE variable with a wrong field count
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10,2));
-CREATE TABLE t2 (a INT, b VARCHAR(10));
-INSERT INTO t1 VALUES (10,'bb1',111.111e2, 12.31);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec2 ROW TYPE OF t2;
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-OPEN cur1;
-FETCH cur1 INTO rec2;
-CLOSE cur1;
-END;
-$$
-CALL p1();
-ERROR HY000: Incorrect number of FETCH variables
-DROP TABLE t2;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Fetching a cursor into a table ROW TYPE variable
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10,2));
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t1 VALUES (10,'bb1',111.111e2, 12.31);
-INSERT INTO t1 VALUES (20,'bb2',222.222e2, 12.32);
-INSERT INTO t1 VALUES (30,'bb3',333.333e2, 12.33);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE done INT DEFAULT 0;
-DECLARE rec ROW TYPE OF t1;
-DECLARE cur CURSOR FOR SELECT * FROM t1;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN cur;
-read_loop: LOOP
-FETCH cur INTO rec;
-IF done THEN
-LEAVE read_loop;
-END IF;
-SELECT rec.a, rec.b, rec.c, rec.d;
-INSERT INTO t2 VALUES (rec.a, rec.b, rec.c, rec.d);
-END LOOP;
-CLOSE cur;
-END;
-$$
-CALL p1();
-rec.a rec.b rec.c rec.d
-10 bb1 11111.1 12.31
-rec.a rec.b rec.c rec.d
-20 bb2 22222.2 12.32
-rec.a rec.b rec.c rec.d
-30 bb3 33333.3 12.33
-SELECT * FROM t2;
-a b c d
-10 bb1 11111.1 12.31
-20 bb2 22222.2 12.32
-30 bb3 33333.3 12.33
-DROP TABLE t2;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Fetching a cursor into a table ROW TYPE variable with different column names
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE TABLE t2 (x INT, y VARCHAR(10));
-INSERT INTO t1 VALUES (10,'bbb');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec2 ROW TYPE OF t2;
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-OPEN cur1;
-FETCH cur1 INTO rec2;
-SELECT rec2.x, rec2.y;
-CLOSE cur1;
-END;
-$$
-CALL p1();
-rec2.x rec2.y
-10 bbb
-DROP TABLE t2;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Fetching a cursor into a table ROW TYPE variable, with truncation
-#
-SET sql_mode='';
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE TABLE t2 (a INT, b INT);
-INSERT INTO t1 VALUES (10,'11x');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec2 ROW TYPE OF t2;
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-OPEN cur1;
-FETCH cur1 INTO rec2;
-SELECT rec2.a, rec2.b;
-CLOSE cur1;
-END;
-$$
-CALL p1();
-rec2.a rec2.b
-10 11
-Warnings:
-Warning 1265 Data truncated for column 'b' at row 1
-DROP TABLE t2;
-DROP TABLE t1;
-DROP PROCEDURE p1;
-SET sql_mode=DEFAULT;
-#
-# table ROW TYPE variables are not allowed in LIMIT
-#
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1,2);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1 DEFAULT (1,2);
-SELECT * FROM t1 LIMIT rec1.a;
-END;
-$$
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-DROP TABLE t1;
-#
-# table ROW TYPE variable fields as OUT parameters
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1(OUT a INT,OUT b VARCHAR(10))
-BEGIN
-SET a=10;
-SET b='bb';
-END;
-$$
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1;
-CALL p1(rec1.a, rec1.b);
-SELECT rec1.a, rec1.b;
-END;
-$$
-CALL p2();
-rec1.a rec1.b
-10 bb
-DROP PROCEDURE p2;
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Passing the entire table ROW TYPE variable
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1(a ROW(a INT, b VARCHAR(10)))
-BEGIN
-SELECT a.a, a.b;
-END;
-$$
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1 DEFAULT ROW(10,'bb');
-CALL p1(rec1);
-END;
-$$
-CALL p2();
-a.a a.b
-10 bb
-DROP PROCEDURE p2;
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Passing the entire table ROW TYPE variable as an OUT parameter
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1(OUT a ROW(a INT, b VARCHAR(10)))
-BEGIN
-SET a= ROW(10,'bb');
-END;
-$$
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1;
-CALL p1(rec1);
-SELECT rec1.a, rec1.b;
-END;
-$$
-CALL p2();
-rec1.a rec1.b
-10 bb
-DROP PROCEDURE p2;
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Assigning a table ROW TYPE field to an OUT parameter
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1 (INOUT res INTEGER)
-BEGIN
-DECLARE rec1 ROW TYPE OF t1 DEFAULT ROW(10,'b0');
-SET res=rec1.a;
-END;
-$$
-CALL p1(@res);
-SELECT @res;
-@res
-10
-SET @res=NULL;
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Testing Item_splocal_row_field_by_name::print
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW TYPE OF t1 DEFAULT ROW(10,'bb');
-EXPLAIN EXTENDED SELECT rec.a, rec.b;
-END;
-$$
-CALL p1();
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select rec.a@0["a"] AS `rec.a`,rec.b@0["b"] AS `rec.b`
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Non-existing field
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW TYPE OF t1;
-SELECT rec.c;
-END;
-$$
-CALL p1();
-ERROR HY000: Row variable 'rec' does not have a field 'c'
-ALTER TABLE t1 ADD c INT;
-CALL p1();
-rec.c
-NULL
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Testing that field names are case insensitive
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW TYPE OF t1 DEFAULT ROW(10,'bb');
-SELECT rec.A, rec.B;
-END;
-$$
-CALL p1();
-rec.A rec.B
-10 bb
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Testing that table ROW TYPE uses temporary tables vs shadowed real tables
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE TEMPORARY TABLE t1 (x INT, y VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW TYPE OF t1 DEFAULT ROW(10,'bb');
-SELECT rec.A, rec.B;
-END;
-$$
-CALL p1();
-ERROR HY000: Row variable 'rec' does not have a field 'A'
-DROP TEMPORARY TABLE t1;
-CALL p1();
-rec.A rec.B
-10 bb
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Testing that the structure of table ROW TYPE variables is determined at the very beginning and is not changed after ALTER
-#
-CREATE TABLE t1 (a INT, b VARCHAR(32));
-INSERT INTO t1 VALUES (10,'b10');
-CREATE PROCEDURE p1()
-BEGIN
-ALTER TABLE t1 ADD c INT;
-BEGIN
-DECLARE rec ROW TYPE OF t1; -- this will not have column "c"
- SET rec.c=10;
-END;
-END;
-$$
-CALL p1();
-ERROR HY000: Row variable 'rec' does not have a field 'c'
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# SELECT INTO + table ROW TYPE variable with a wrong column count
-#
-CREATE TABLE t1 (a INT, b VARCHAR(32));
-INSERT INTO t1 VALUES (10,'b10');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1;
-SELECT 10,'a','b' FROM t1 INTO rec1;
-SELECT rec1.a, rec1.b;
-END;
-$$
-CALL p1();
-ERROR 21000: The used SELECT statements have a different number of columns
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# SELECT INTO + multiple table ROW TYPE variables
-#
-CREATE TABLE t1 (a INT, b VARCHAR(32));
-INSERT INTO t1 VALUES (10,'b10');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1;
-SELECT 10,'a' FROM t1 INTO rec1, rec1;
-SELECT rec1.a, rec1.b;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 2 column(s)
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# SELECT INTO + table ROW TYPE working example
-#
-CREATE TABLE t1 (a INT, b VARCHAR(32));
-INSERT INTO t1 VALUES (10,'b10');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW TYPE OF t1;
-SELECT * FROM t1 INTO rec1;
-SELECT rec1.a, rec1.b;
-END;
-$$
-CALL p1();
-rec1.a rec1.b
-10 b10
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# End of MDEV-12461 TYPE OF and ROW TYPE OF anchored data types
-#
-#
-# MDEV-12347 Valgrind reports invalid read errors in Item_field_row::element_index_by_name
-#
-CREATE TABLE t1 (a INT, b ENUM('b0','b1','b12','b3'));
-CREATE PROCEDURE p1()
-BEGIN
-BEGIN
-DECLARE rec ROW TYPE OF t1;
-SET rec.b='b0';
-SELECT rec.b;
-END;
-END;
-$$
-CALL p1();
-rec.b
-b0
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE TABLE t1 (a INT, b SET('b0','b1','b12','b3'));
-CREATE PROCEDURE p1()
-BEGIN
-BEGIN
-DECLARE rec ROW TYPE OF t1;
-SET rec.b='b0';
-SELECT rec.b;
-END;
-END;
-$$
-CALL p1();
-rec.b
-b0
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# MDEV-13581 ROW TYPE OF t1 and t1%ROWTYPE for routine parameters
-#
-CREATE TABLE t1 (a INT, b TEXT, c ENUM('a','b','c'));
-CREATE PROCEDURE p1 (a ROW TYPE OF t1)
-BEGIN
-CREATE TABLE t2 AS SELECT a.a AS a, a.b AS b, a.c AS c;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-$$
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE a ROW TYPE OF t1;
-CALL p1(a);
-END;
-$$
-CALL p2();
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL,
- `b` text DEFAULT NULL,
- `c` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP PROCEDURE p2;
-DROP PROCEDURE p1;
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b TEXT);
-CREATE PROCEDURE p1 (OUT a ROW TYPE OF t1)
-BEGIN
-SET a.a=10;
-SET a.b='text';
-END;
-$$
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE a ROW TYPE OF t1;
-CALL p1(a);
-SELECT a.a, a.b;
-END;
-$$
-CREATE FUNCTION f1(a ROW TYPE OF t1) RETURNS TEXT
-BEGIN
-RETURN CONCAT(a.a, ' ', a.b);
-END;
-$$
-CREATE FUNCTION f2() RETURNS TEXT
-BEGIN
-DECLARE a ROW TYPE OF t1;
-CALL p1(a);
-RETURN f1(a);
-END;
-$$
-CALL p2();
-a.a a.b
-10 text
-SELECT f2();
-f2()
-10 text
-DROP PROCEDURE p2;
-DROP PROCEDURE p1;
-DROP FUNCTION f2;
-DROP FUNCTION f1;
-DROP TABLE t1;
-CREATE DATABASE db1;
-CREATE TABLE db1.t1 (a INT, b TEXT);
-CREATE PROCEDURE p1 (OUT a ROW TYPE OF db1.t1)
-BEGIN
-SET a.a=10;
-SET a.b='text';
-END;
-$$
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE a ROW TYPE OF db1.t1;
-CALL p1(a);
-SELECT a.a, a.b;
-END;
-$$
-CREATE FUNCTION f1(a ROW TYPE OF db1.t1) RETURNS TEXT
-BEGIN
-RETURN CONCAT(a.a, ' ', a.b);
-END;
-$$
-CREATE FUNCTION f2() RETURNS TEXT
-BEGIN
-DECLARE a ROW TYPE OF db1.t1;
-CALL p1(a);
-RETURN f1(a);
-END;
-$$
-CALL p2();
-a.a a.b
-10 text
-SELECT f2();
-f2()
-10 text
-DROP PROCEDURE p2;
-DROP PROCEDURE p1;
-DROP FUNCTION f2;
-DROP FUNCTION f1;
-DROP DATABASE db1;
-#
-# MDEV-14139 Anchored data types for variables
-#
-CREATE TABLE t1 (int11 INT, text0 TEXT);
-BEGIN NOT ATOMIC
-DECLARE row1 ROW TYPE OF t1;
-DECLARE a_row1 TYPE OF row1;
-DECLARE aa_row1 TYPE OF a_row1;
-CREATE TABLE t2 AS SELECT a_row1.int11 AS int11, a_row1.text0 AS text0;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT aa_row1.int11 AS int11, aa_row1.text0 AS text0;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-$$
-Table Create Table
-t2 CREATE TABLE `t2` (
- `int11` int(11) DEFAULT NULL,
- `text0` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `int11` int(11) DEFAULT NULL,
- `text0` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
diff --git a/mysql-test/r/sp-anchor-type.result b/mysql-test/r/sp-anchor-type.result
deleted file mode 100644
index b2de14bca1c..00000000000
--- a/mysql-test/r/sp-anchor-type.result
+++ /dev/null
@@ -1,1073 +0,0 @@
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12461 TYPE OF and ROW TYPE OF anchored data types
-#
-#
-# Missing table
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a TYPE OF t1.a;
-END;
-$$
-CALL p1();
-ERROR 42S02: Table 'test.t1' doesn't exist
-DROP PROCEDURE p1;
-#
-# Missing column
-#
-CREATE TABLE t1 (b INT);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a TYPE OF t1.a;
-END;
-$$
-CALL p1();
-ERROR 42S22: Unknown column 'a' in 't1'
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# One TYPE OF variable
-#
-CREATE TABLE t1 (a INT);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a TYPE OF t1.a;
-SET a= 123;
-SELECT a;
-END;
-$$
-CALL p1();
-a
-123
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Two TYPE OF variables, with a truncation warning on assignment
-#
-SET sql_mode='';
-CREATE TABLE t1 (a TINYINT, b INT);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a TYPE OF t1.a;
-DECLARE b TYPE OF t1.b;
-SET a= 200;
-SET b= 200;
-SELECT a, b;
-END;
-$$
-CALL p1();
-a b
-127 200
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-DROP PROCEDURE p1;
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-#
-# TYPE OF variables for fields with various attributes
-#
-CREATE TABLE t1 (
-id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
-a TINYINT NOT NULL,
-b INT NOT NULL,
-ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-UNIQUE(a)
-);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE id TYPE OF t1.id;
-DECLARE a TYPE OF t1.a;
-DECLARE b TYPE OF t1.b;
-DECLARE ts TYPE OF t1.ts;
-SELECT id, a, b, ts;
-CREATE TABLE t2 AS SELECT id, a, b, ts;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-$$
-CALL p1();
-id a b ts
-NULL NULL NULL NULL
-Table Create Table
-t2 CREATE TABLE `t2` (
- `id` int(11) DEFAULT NULL,
- `a` tinyint(4) DEFAULT NULL,
- `b` int(11) DEFAULT NULL,
- `ts` timestamp NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# TYPE OF + virtual columns
-#
-CREATE TABLE t1 (
-a INT NOT NULL,
-b VARCHAR(32),
-c INT AS (a + 10) VIRTUAL,
-d VARCHAR(5) AS (left(b,5)) PERSISTENT
-);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE c TYPE OF t1.c;
-DECLARE d TYPE OF t1.d;
-SELECT c, d;
-CREATE TABLE t2 AS SELECT c, d;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-$$
-CALL p1();
-c d
-NULL NULL
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c` int(11) DEFAULT NULL,
- `d` varchar(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# TYPE OF + the ZEROFILL attribute
-#
-CREATE TABLE t1 (
-dz DECIMAL(10,3) ZEROFILL
-);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE dzr TYPE OF t1.dz DEFAULT 10;
-DECLARE dzt DECIMAL(10,3) ZEROFILL DEFAULT 10;
-SELECT dzr, dzt;
-CREATE TABLE t2 AS SELECT dzr,dzt;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-$$
-CALL p1();
-dzr dzt
-0000010.000 0000010.000
-Table Create Table
-t2 CREATE TABLE `t2` (
- `dzr` decimal(10,3) unsigned DEFAULT NULL,
- `dzt` decimal(10,3) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Temporary tables shadow real tables for TYPE OF purposes
-#
-CREATE TABLE t1 (a VARCHAR(10));
-INSERT INTO t1 VALUES ('t1');
-CREATE TEMPORARY TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10);
-SELECT * FROM t1;
-a
-10
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a TYPE OF t1.a DEFAULT 11;
-CREATE TABLE t2 AS SELECT a;
-END;
-$$
-#
-# Should use INT(11) as TYPE OF, as in the temporary table
-#
-CALL p1();
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-a
-11
-DROP TABLE t2;
-SELECT * FROM t1;
-a
-10
-DROP TEMPORARY TABLE t1;
-SELECT * FROM t1;
-a
-t1
-#
-# Should use VARCHAR(10) as TYPE OF, as in the real table
-#
-CALL p1();
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-a
-11
-DROP TABLE t2;
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# "TYPE OF t1.a" searches for "t1" in the current database
-#
-CREATE TABLE t1 (a VARCHAR(10));
-CREATE DATABASE test1;
-CREATE TABLE test1.t1 (a INT);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a TYPE OF t1.a DEFAULT 11;
-CREATE TABLE test.t2 AS SELECT a;
-END;
-$$
-#
-# This interprets "TYPE OF t1.a" as VARCHAR(10), as in test.t1.a
-#
-USE test;
-CALL test.p1();
-SHOW CREATE TABLE test.t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE test.t2;
-#
-# This interprets "TYPE OF t1.a" as INT, as in test1.t1.a
-#
-USE test1;
-CALL test.p1();
-SHOW CREATE TABLE test.t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE test.t2;
-#
-# Error if there is no an active database
-#
-DROP DATABASE test1;
-CALL test.p1();
-ERROR 3D000: No database selected
-USE test;
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# A reference to a table in a non-existing database
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a TYPE OF test1.t1.a;
-CREATE TABLE t1 AS SELECT a;
-END;
-$$
-CALL p1;
-ERROR 42S02: Table 'test1.t1' doesn't exist
-DROP PROCEDURE p1;
-#
-# A reference to a table in a different database
-#
-CREATE TABLE t1(a INT);
-CREATE DATABASE test1;
-CREATE TABLE test1.t1 (a VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a TYPE OF t1.a;
-DECLARE b TYPE OF test1.t1.a;
-CREATE TABLE t2 AS SELECT a,b;
-END;
-$$
-CALL p1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL,
- `b` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP PROCEDURE p1;
-DROP TABLE t2;
-DROP DATABASE test1;
-DROP TABLE t1;
-#
-# Using a table before it appears in a TYPE OF declaration + multiple TYPE OF declarations
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-INSERT INTO t1 (a,b) VALUES (10,'b10');
-CREATE PROCEDURE p1()
-BEGIN
-INSERT INTO t1 (a,b) VALUES (11, 'b11');
-SELECT * FROM t1;
-BEGIN
-DECLARE va TYPE OF t1.a DEFAULT 30;
-DECLARE vb TYPE OF t1.b DEFAULT 'b30';
-INSERT INTO t1 (a,b) VALUES (12,'b12');
-SELECT * FROM t1;
-INSERT INTO t1 (a,b) VALUES (va, vb);
-SELECT * FROM t1;
-END;
-BEGIN
-DECLARE va TYPE OF t1.a DEFAULT 40;
-DECLARE vb TYPE OF t1.b DEFAULT 'b40';
-INSERT INTO t1 (a,b) VALUES (va,vb);
-SELECT * FROM t1;
-END;
-END;
-$$
-CALL p1;
-a b
-10 b10
-11 b11
-a b
-10 b10
-11 b11
-12 b12
-a b
-10 b10
-11 b11
-12 b12
-30 b30
-a b
-10 b10
-11 b11
-12 b12
-30 b30
-40 b40
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# TYPE OF variables + TABLE vs VIEW
-#
-CREATE TABLE t1 (
-bit6 BIT(6),
-bit7 BIT(7),
-bit8 BIT(8),
-i1 TINYINT,
-i2 SMALLINT,
-i3 MEDIUMINT,
-i4 INT,
-i8 BIGINT,
-ff FLOAT,
-fd DOUBLE,
-cc CHAR(10),
-cv VARCHAR(10),
-cvu VARCHAR(10) CHARACTER SET utf8,
-t1 TINYTEXT,
-t2 TEXT,
-t3 MEDIUMTEXT,
-t4 LONGTEXT,
-enum1 ENUM('a','b','c'),
-set1 SET('a','b','c'),
-blob1 TINYBLOB,
-blob2 BLOB,
-blob3 MEDIUMBLOB,
-blob4 LONGBLOB,
-yy YEAR,
-dd DATE,
-tm0 TIME,
-tm3 TIME(3),
-tm6 TIME(6),
-dt0 DATETIME,
-dt3 DATETIME(3),
-dt6 DATETIME(6),
-ts0 TIMESTAMP,
-ts3 TIMESTAMP(3),
-ts6 TIMESTAMP(6),
-dc100 DECIMAL(10,0),
-dc103 DECIMAL(10,3),
-dc209 DECIMAL(20,9)
-);
-CREATE PROCEDURE p1(command enum('create','select'))
-BEGIN
-DECLARE bit6 TYPE OF t1.bit6 DEFAULT 0x30;
-DECLARE bit7 TYPE OF t1.bit7 DEFAULT 0x41;
-DECLARE bit8 TYPE OF t1.bit8 DEFAULT 0x7E;
-DECLARE i1 TYPE OF t1.i1 DEFAULT 11;
-DECLARE i2 TYPE OF t1.i2 DEFAULT 12;
-DECLARE i3 TYPE OF t1.i3 DEFAULT 13;
-DECLARE i4 TYPE OF t1.i4 DEFAULT 14;
-DECLARE i8 TYPE OF t1.i8 DEFAULT 18;
-DECLARE ff TYPE OF t1.ff DEFAULT 21;
-DECLARE fd TYPE OF t1.fd DEFAULT 22;
-DECLARE cc TYPE OF t1.cc DEFAULT 'char';
-DECLARE cv TYPE OF t1.cv DEFAULT 'varchar';
-DECLARE cvu TYPE OF t1.cvu DEFAULT 'varcharu8';
-DECLARE t1 TYPE OF t1.t1 DEFAULT 'text1';
-DECLARE t2 TYPE OF t1.t2 DEFAULT 'text2';
-DECLARE t3 TYPE OF t1.t3 DEFAULT 'text3';
-DECLARE t4 TYPE OF t1.t4 DEFAULT 'text4';
-DECLARE enum1 TYPE OF t1.enum1 DEFAULT 'b';
-DECLARE set1 TYPE OF t1.set1 DEFAULT 'a,c';
-DECLARE blob1 TYPE OF t1.blob1 DEFAULT 'blob1';
-DECLARE blob2 TYPE OF t1.blob2 DEFAULT 'blob2';
-DECLARE blob3 TYPE OF t1.blob3 DEFAULT 'blob3';
-DECLARE blob4 TYPE OF t1.blob4 DEFAULT 'blob4';
-DECLARE yy TYPE OF t1.yy DEFAULT 2001;
-DECLARE dd TYPE OF t1.dd DEFAULT '2001-01-01';
-DECLARE tm0 TYPE OF t1.tm0 DEFAULT '00:00:01';
-DECLARE tm3 TYPE OF t1.tm3 DEFAULT '00:00:03.333';
-DECLARE tm6 TYPE OF t1.tm6 DEFAULT '00:00:06.666666';
-DECLARE dt0 TYPE OF t1.dt0 DEFAULT '2001-01-01 00:00:01';
-DECLARE dt3 TYPE OF t1.dt3 DEFAULT '2001-01-03 00:00:01.333';
-DECLARE dt6 TYPE OF t1.dt6 DEFAULT '2001-01-06 00:00:01.666666';
-DECLARE ts0 TYPE OF t1.ts0 DEFAULT '2002-01-01 00:00:01';
-DECLARE ts3 TYPE OF t1.ts3 DEFAULT '2002-01-03 00:00:01.333';
-DECLARE ts6 TYPE OF t1.ts6 DEFAULT '2002-01-06 00:00:01.666666';
-DECLARE dc100 TYPE OF t1.dc100 DEFAULT 10;
-DECLARE dc103 TYPE OF t1.dc103 DEFAULT 10.123;
-DECLARE dc209 TYPE OF t1.dc209 DEFAULT 10.123456789;
-CASE
-WHEN command='create' THEN
-CREATE TABLE t2 AS SELECT
-bit6, bit7, bit8,
-i1,i2,i3,i4,i8,
-ff,fd, dc100, dc103, dc209,
-cc,cv,cvu,
-t1,t2,t3,t4,
-enum1, set1,
-blob1, blob2, blob3, blob4,
-dd, yy,
-tm0, tm3, tm6,
-dt0, dt3, dt6,
-ts0, ts3, ts6;
-WHEN command='select' THEN
-SELECT
-bit6, bit7, bit8,
-i1,i2,i3,i4,i8,
-ff,fd, dc100, dc103, dc209,
-cc,cv,cvu,
-t1,t2,t3,t4,
-enum1, set1,
-blob1, blob2, blob3, blob4,
-dd, yy,
-tm0, tm3, tm6,
-dt0, dt3, dt6,
-ts0, ts3, ts6;
-END CASE;
-END;
-$$
-#
-# TABLE
-#
-CALL p1('create');
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `bit6` bit(6) DEFAULT NULL,
- `bit7` bit(7) DEFAULT NULL,
- `bit8` bit(8) DEFAULT NULL,
- `i1` tinyint(4) DEFAULT NULL,
- `i2` smallint(6) DEFAULT NULL,
- `i3` mediumint(9) DEFAULT NULL,
- `i4` int(11) DEFAULT NULL,
- `i8` bigint(20) DEFAULT NULL,
- `ff` float DEFAULT NULL,
- `fd` double DEFAULT NULL,
- `dc100` decimal(10,0) DEFAULT NULL,
- `dc103` decimal(10,3) DEFAULT NULL,
- `dc209` decimal(20,9) DEFAULT NULL,
- `cc` varchar(10) DEFAULT NULL,
- `cv` varchar(10) DEFAULT NULL,
- `cvu` varchar(10) CHARACTER SET utf8 DEFAULT NULL,
- `t1` tinytext DEFAULT NULL,
- `t2` text DEFAULT NULL,
- `t3` mediumtext DEFAULT NULL,
- `t4` longtext DEFAULT NULL,
- `enum1` varchar(1) DEFAULT NULL,
- `set1` varchar(5) DEFAULT NULL,
- `blob1` tinyblob DEFAULT NULL,
- `blob2` blob DEFAULT NULL,
- `blob3` mediumblob DEFAULT NULL,
- `blob4` longblob DEFAULT NULL,
- `dd` date DEFAULT NULL,
- `yy` year(4) DEFAULT NULL,
- `tm0` time DEFAULT NULL,
- `tm3` time(3) DEFAULT NULL,
- `tm6` time(6) DEFAULT NULL,
- `dt0` datetime DEFAULT NULL,
- `dt3` datetime(3) DEFAULT NULL,
- `dt6` datetime(6) DEFAULT NULL,
- `ts0` timestamp NULL DEFAULT NULL,
- `ts3` timestamp(3) NULL DEFAULT NULL,
- `ts6` timestamp(6) NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-bit6 0
-bit7 A
-bit8 ~
-i1 11
-i2 12
-i3 13
-i4 14
-i8 18
-ff 21
-fd 22
-dc100 10
-dc103 10.123
-dc209 10.123456789
-cc char
-cv varchar
-cvu varcharu8
-t1 text1
-t2 text2
-t3 text3
-t4 text4
-enum1 b
-set1 a,c
-blob1 blob1
-blob2 blob2
-blob3 blob3
-blob4 blob4
-dd 2001-01-01
-yy 2001
-tm0 00:00:01
-tm3 00:00:03.333
-tm6 00:00:06.666666
-dt0 2001-01-01 00:00:01
-dt3 2001-01-03 00:00:01.333
-dt6 2001-01-06 00:00:01.666666
-ts0 2002-01-01 00:00:01
-ts3 2002-01-03 00:00:01.333
-ts6 2002-01-06 00:00:01.666666
-DROP TABLE t2;
-CALL p1('select');
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def bit6 bit6 16 6 1 Y 32 0 63
-def bit7 bit7 16 7 1 Y 32 0 63
-def bit8 bit8 16 8 1 Y 32 0 63
-def i1 i1 1 4 2 Y 32768 0 63
-def i2 i2 2 6 2 Y 32768 0 63
-def i3 i3 9 9 2 Y 32768 0 63
-def i4 i4 3 11 2 Y 32768 0 63
-def i8 i8 8 20 2 Y 32768 0 63
-def ff ff 4 12 2 Y 32768 31 63
-def fd fd 5 22 2 Y 32768 31 63
-def dc100 dc100 246 11 2 Y 32768 0 63
-def dc103 dc103 246 12 6 Y 32768 3 63
-def dc209 dc209 246 22 12 Y 32768 9 63
-def cc cc 254 10 4 Y 0 0 8
-def cv cv 253 10 7 Y 0 0 8
-def cvu cvu 253 10 9 Y 0 0 8
-def t1 t1 252 255 5 Y 16 0 8
-def t2 t2 252 65535 5 Y 16 0 8
-def t3 t3 252 16777215 5 Y 16 0 8
-def t4 t4 252 4294967295 5 Y 16 0 8
-def enum1 enum1 254 1 1 Y 256 0 8
-def set1 set1 254 5 3 Y 2048 0 8
-def blob1 blob1 252 255 5 Y 144 0 63
-def blob2 blob2 252 65535 5 Y 144 0 63
-def blob3 blob3 252 16777215 5 Y 144 0 63
-def blob4 blob4 252 4294967295 5 Y 144 0 63
-def dd dd 10 10 10 Y 128 0 63
-def yy yy 13 4 4 Y 32864 0 63
-def tm0 tm0 11 10 8 Y 128 0 63
-def tm3 tm3 11 14 12 Y 128 3 63
-def tm6 tm6 11 17 15 Y 128 6 63
-def dt0 dt0 12 19 19 Y 128 0 63
-def dt3 dt3 12 23 23 Y 128 3 63
-def dt6 dt6 12 26 26 Y 128 6 63
-def ts0 ts0 7 19 19 Y 9376 0 63
-def ts3 ts3 7 23 23 Y 160 3 63
-def ts6 ts6 7 26 26 Y 160 6 63
-bit6 0
-bit7 A
-bit8 ~
-i1 11
-i2 12
-i3 13
-i4 14
-i8 18
-ff 21
-fd 22
-dc100 10
-dc103 10.123
-dc209 10.123456789
-cc char
-cv varchar
-cvu varcharu8
-t1 text1
-t2 text2
-t3 text3
-t4 text4
-enum1 b
-set1 a,c
-blob1 blob1
-blob2 blob2
-blob3 blob3
-blob4 blob4
-dd 2001-01-01
-yy 2001
-tm0 00:00:01
-tm3 00:00:03.333
-tm6 00:00:06.666666
-dt0 2001-01-01 00:00:01
-dt3 2001-01-03 00:00:01.333
-dt6 2001-01-06 00:00:01.666666
-ts0 2002-01-01 00:00:01
-ts3 2002-01-03 00:00:01.333
-ts6 2002-01-06 00:00:01.666666
-#
-# VIEW
-#
-ALTER TABLE t1 RENAME t0;
-CREATE VIEW t1 AS SELECT * FROM t0;
-CALL p1('create');
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `bit6` bit(6) DEFAULT NULL,
- `bit7` bit(7) DEFAULT NULL,
- `bit8` bit(8) DEFAULT NULL,
- `i1` tinyint(4) DEFAULT NULL,
- `i2` smallint(6) DEFAULT NULL,
- `i3` mediumint(9) DEFAULT NULL,
- `i4` int(11) DEFAULT NULL,
- `i8` bigint(20) DEFAULT NULL,
- `ff` float DEFAULT NULL,
- `fd` double DEFAULT NULL,
- `dc100` decimal(10,0) DEFAULT NULL,
- `dc103` decimal(10,3) DEFAULT NULL,
- `dc209` decimal(20,9) DEFAULT NULL,
- `cc` varchar(10) DEFAULT NULL,
- `cv` varchar(10) DEFAULT NULL,
- `cvu` varchar(10) CHARACTER SET utf8 DEFAULT NULL,
- `t1` tinytext DEFAULT NULL,
- `t2` text DEFAULT NULL,
- `t3` mediumtext DEFAULT NULL,
- `t4` longtext DEFAULT NULL,
- `enum1` varchar(1) DEFAULT NULL,
- `set1` varchar(5) DEFAULT NULL,
- `blob1` tinyblob DEFAULT NULL,
- `blob2` blob DEFAULT NULL,
- `blob3` mediumblob DEFAULT NULL,
- `blob4` longblob DEFAULT NULL,
- `dd` date DEFAULT NULL,
- `yy` year(4) DEFAULT NULL,
- `tm0` time DEFAULT NULL,
- `tm3` time(3) DEFAULT NULL,
- `tm6` time(6) DEFAULT NULL,
- `dt0` datetime DEFAULT NULL,
- `dt3` datetime(3) DEFAULT NULL,
- `dt6` datetime(6) DEFAULT NULL,
- `ts0` timestamp NULL DEFAULT NULL,
- `ts3` timestamp(3) NULL DEFAULT NULL,
- `ts6` timestamp(6) NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-bit6 0
-bit7 A
-bit8 ~
-i1 11
-i2 12
-i3 13
-i4 14
-i8 18
-ff 21
-fd 22
-dc100 10
-dc103 10.123
-dc209 10.123456789
-cc char
-cv varchar
-cvu varcharu8
-t1 text1
-t2 text2
-t3 text3
-t4 text4
-enum1 b
-set1 a,c
-blob1 blob1
-blob2 blob2
-blob3 blob3
-blob4 blob4
-dd 2001-01-01
-yy 2001
-tm0 00:00:01
-tm3 00:00:03.333
-tm6 00:00:06.666666
-dt0 2001-01-01 00:00:01
-dt3 2001-01-03 00:00:01.333
-dt6 2001-01-06 00:00:01.666666
-ts0 2002-01-01 00:00:01
-ts3 2002-01-03 00:00:01.333
-ts6 2002-01-06 00:00:01.666666
-DROP TABLE t2;
-CALL p1('select');
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def bit6 bit6 16 6 1 Y 32 0 63
-def bit7 bit7 16 7 1 Y 32 0 63
-def bit8 bit8 16 8 1 Y 32 0 63
-def i1 i1 1 4 2 Y 32768 0 63
-def i2 i2 2 6 2 Y 32768 0 63
-def i3 i3 9 9 2 Y 32768 0 63
-def i4 i4 3 11 2 Y 32768 0 63
-def i8 i8 8 20 2 Y 32768 0 63
-def ff ff 4 12 2 Y 32768 31 63
-def fd fd 5 22 2 Y 32768 31 63
-def dc100 dc100 246 11 2 Y 32768 0 63
-def dc103 dc103 246 12 6 Y 32768 3 63
-def dc209 dc209 246 22 12 Y 32768 9 63
-def cc cc 254 10 4 Y 0 0 8
-def cv cv 253 10 7 Y 0 0 8
-def cvu cvu 253 10 9 Y 0 0 8
-def t1 t1 252 255 5 Y 16 0 8
-def t2 t2 252 65535 5 Y 16 0 8
-def t3 t3 252 16777215 5 Y 16 0 8
-def t4 t4 252 4294967295 5 Y 16 0 8
-def enum1 enum1 254 1 1 Y 256 0 8
-def set1 set1 254 5 3 Y 2048 0 8
-def blob1 blob1 252 255 5 Y 144 0 63
-def blob2 blob2 252 65535 5 Y 144 0 63
-def blob3 blob3 252 16777215 5 Y 144 0 63
-def blob4 blob4 252 4294967295 5 Y 144 0 63
-def dd dd 10 10 10 Y 128 0 63
-def yy yy 13 4 4 Y 32864 0 63
-def tm0 tm0 11 10 8 Y 128 0 63
-def tm3 tm3 11 14 12 Y 128 3 63
-def tm6 tm6 11 17 15 Y 128 6 63
-def dt0 dt0 12 19 19 Y 128 0 63
-def dt3 dt3 12 23 23 Y 128 3 63
-def dt6 dt6 12 26 26 Y 128 6 63
-def ts0 ts0 7 19 19 Y 160 0 63
-def ts3 ts3 7 23 23 Y 160 3 63
-def ts6 ts6 7 26 26 Y 160 6 63
-bit6 0
-bit7 A
-bit8 ~
-i1 11
-i2 12
-i3 13
-i4 14
-i8 18
-ff 21
-fd 22
-dc100 10
-dc103 10.123
-dc209 10.123456789
-cc char
-cv varchar
-cvu varcharu8
-t1 text1
-t2 text2
-t3 text3
-t4 text4
-enum1 b
-set1 a,c
-blob1 blob1
-blob2 blob2
-blob3 blob3
-blob4 blob4
-dd 2001-01-01
-yy 2001
-tm0 00:00:01
-tm3 00:00:03.333
-tm6 00:00:06.666666
-dt0 2001-01-01 00:00:01
-dt3 2001-01-03 00:00:01.333
-dt6 2001-01-06 00:00:01.666666
-ts0 2002-01-01 00:00:01
-ts3 2002-01-03 00:00:01.333
-ts6 2002-01-06 00:00:01.666666
-DROP VIEW t1;
-DROP TABLE t0;
-DROP PROCEDURE p1;
-#
-# VIEW with subqueries
-#
-CREATE TABLE t1 (a INT,b INT);
-INSERT INTO t1 VALUES (10,1),(20,2),(30,3),(40,4);
-SELECT AVG(a) FROM t1;
-AVG(a)
-25.0000
-CREATE VIEW v1 AS SELECT a,1 as b FROM t1 WHERE a>(SELECT AVG(a) FROM t1) AND b>(SELECT 1);
-SELECT * FROM v1;
-a b
-30 1
-40 1
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a TYPE OF v1.a DEFAULT 10;
-DECLARE b TYPE OF v1.b DEFAULT 1;
-SELECT a,b;
-END;
-$$
-CALL p1;
-a b
-10 1
-DROP PROCEDURE p1;
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-DECLARE a TYPE OF v1.a DEFAULT 10;
-DECLARE b TYPE OF v1.b DEFAULT 1;
-RETURN a+b;
-END;
-$$
-SELECT f1();
-f1()
-11
-DROP FUNCTION f1;
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# TYPE OF variables + INFORMATION_SCHEMA
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE tables_table_name TYPE OF INFORMATION_SCHEMA.TABLES.TABLE_NAME;
-DECLARE tables_table_rows TYPE OF INFORMATION_SCHEMA.TABLES.TABLE_ROWS;
-DECLARE processlist_info TYPE OF INFORMATION_SCHEMA.PROCESSLIST.INFO;
-DECLARE processlist_info_binary TYPE OF INFORMATION_SCHEMA.PROCESSLIST.INFO_BINARY;
-CREATE TABLE t1 AS SELECT
-tables_table_name,
-tables_table_rows,
-processlist_info,
-processlist_info_binary;
-END;
-$$
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `tables_table_name` varchar(64) CHARACTER SET utf8 DEFAULT NULL,
- `tables_table_rows` bigint(21) unsigned DEFAULT NULL,
- `processlist_info` longtext CHARACTER SET utf8 DEFAULT NULL,
- `processlist_info_binary` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# TYPE OF + Table structure change
-# Data type for both a0 and a1 is chosen in the very beginning
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a0 TYPE OF t1.a;
-ALTER TABLE t1 MODIFY a VARCHAR(10); -- This does not affect a1
-BEGIN
-DECLARE a1 TYPE OF t1.a;
-CREATE TABLE t2 AS SELECT a0, a1;
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-END
-$$
-CREATE TABLE t1 (a INT);
-CALL p1;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a0` int(11) DEFAULT NULL,
- `a1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# TYPE OF in parameters
-#
-CREATE TABLE t1 (a VARCHAR(10));
-CREATE DATABASE test1;
-CREATE TABLE test1.t1 (b SMALLINT);
-CREATE PROCEDURE p1(a TYPE OF t1.a, b TYPE OF test1.t1.b)
-BEGIN
-CREATE TABLE t2 AS SELECT a, b;
-END;
-$$
-CALL p1('test', 123);
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(10) DEFAULT NULL,
- `b` smallint(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-a b
-test 123
-DROP TABLE t2;
-DROP PROCEDURE p1;
-DROP TABLE test1.t1;
-DROP DATABASE test1;
-DROP TABLE t1;
-#
-# TYPE OF in a stored function variables and arguments
-#
-CREATE TABLE t1 (a INT);
-CREATE FUNCTION f1 (prm TYPE OF t1.a) RETURNS INT
-BEGIN
-DECLARE a TYPE OF t1.a DEFAULT prm;
-RETURN a;
-END;
-$$
-SELECT f1(20);
-f1(20)
-20
-DROP FUNCTION f1;
-DROP TABLE t1;
-#
-# TYPE OF in function RETURN clause is not supported yet
-#
-CREATE FUNCTION f1() RETURN TYPE OF t1.a
-BEGIN
-RETURN 0;
-END;
-$$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RETURN TYPE OF t1.a
-BEGIN
-RETURN 0;
-END' at line 1
-#
-# Using TYPE OF variables as FETCH targets
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10),c DATETIME(3));
-INSERT INTO t1 VALUES (1,'b1','2001-01-01 10:20:30.123');
-INSERT INTO t1 VALUES (2,'b2','2001-01-02 10:20:30.123');
-CREATE TABLE t2 LIKE t1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE done INT DEFAULT 0;
-DECLARE v_a TYPE OF t1.a;
-DECLARE v_b TYPE OF t1.b;
-DECLARE v_c TYPE OF t1.c;
-DECLARE c CURSOR FOR SELECT a,b,c FROM t1;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN c;
-read_loop: LOOP
-FETCH c INTO v_a, v_b, v_c;
-IF done THEN
-LEAVE read_loop;
-END IF;
-INSERT INTO t2 (a,b,c) VALUES (v_a, v_b, v_c);
-END LOOP;
-CLOSE c;
-END;
-$$
-CALL p1();
-SELECT * FROM t2;
-a b c
-1 b1 2001-01-01 10:20:30.123
-2 b2 2001-01-02 10:20:30.123
-DROP TABLE t2;
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Using TYPE OF variables as SELECT INTO targets
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10),c DATETIME(3));
-INSERT INTO t1 VALUES (1,'b1','2001-01-01 10:20:30.123');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE v_a TYPE OF t1.a;
-DECLARE v_b TYPE OF t1.b;
-DECLARE v_c TYPE OF t1.c;
-SELECT * FROM t1 INTO v_a, v_b, v_c;
-SELECT v_a, v_b, v_c;
-END;
-$$
-CALL p1();
-v_a v_b v_c
-1 b1 2001-01-01 10:20:30.123
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# End of MDEV-12461 TYPE OF and ROW TYPE OF anchored data types
-#
-#
-# MDEV-14139 Anchored data types for variables
-#
-BEGIN NOT ATOMIC
-DECLARE a TYPE OF a;
-END;
-$$
-ERROR 42000: Undeclared variable: a
-BEGIN NOT ATOMIC
-DECLARE int11 INT;
-DECLARE dec103 DECIMAL(10,3);
-DECLARE flt0 FLOAT;
-DECLARE dbl0 DOUBLE;
-DECLARE enum0 ENUM('a','b');
-DECLARE bit3 BIT(3);
-DECLARE varchar10 VARCHAR(10);
-DECLARE text1 TEXT;
-DECLARE tinytext1 TINYTEXT;
-DECLARE mediumtext1 MEDIUMTEXT;
-DECLARE longtext1 LONGTEXT;
-DECLARE time3 TIME(3);
-DECLARE datetime4 DATETIME(4);
-DECLARE timestamp5 TIMESTAMP(5);
-DECLARE date0 DATE;
-DECLARE a_int11 TYPE OF int11;
-DECLARE a_dec103 TYPE OF dec103;
-DECLARE a_flt0 TYPE OF flt0;
-DECLARE a_dbl0 TYPE OF dbl0;
-DECLARE a_bit3 TYPE OF bit3;
-DECLARE a_enum0 TYPE OF enum0;
-DECLARE a_varchar10 TYPE OF varchar10;
-DECLARE a_text1 TYPE OF text1;
-DECLARE a_tinytext1 TYPE OF tinytext1;
-DECLARE a_mediumtext1 TYPE OF mediumtext1;
-DECLARE a_longtext1 TYPE OF longtext1;
-DECLARE a_time3 TYPE OF time3;
-DECLARE a_datetime4 TYPE OF datetime4;
-DECLARE a_timestamp5 TYPE OF timestamp5;
-DECLARE a_date0 TYPE OF date0;
-DECLARE aa_int11 TYPE OF a_int11;
-DECLARE aa_dec103 TYPE OF a_dec103;
-DECLARE aa_flt0 TYPE OF a_flt0;
-DECLARE aa_dbl0 TYPE OF a_dbl0;
-DECLARE aa_bit3 TYPE OF a_bit3;
-DECLARE aa_enum0 TYPE OF a_enum0;
-DECLARE aa_varchar10 TYPE OF a_varchar10;
-DECLARE aa_text1 TYPE OF a_text1;
-DECLARE aa_tinytext1 TYPE OF a_tinytext1;
-DECLARE aa_mediumtext1 TYPE OF a_mediumtext1;
-DECLARE aa_longtext1 TYPE OF a_longtext1;
-DECLARE aa_time3 TYPE OF a_time3;
-DECLARE aa_datetime4 TYPE OF a_datetime4;
-DECLARE aa_timestamp5 TYPE OF a_timestamp5;
-DECLARE aa_date0 TYPE OF a_date0;
-CREATE TABLE t1 AS
-SELECT a_int11,a_dec103,a_flt0,a_dbl0,a_bit3,
-a_enum0,a_varchar10,
-a_text1,a_tinytext1,a_mediumtext1,a_longtext1,
-a_time3,a_datetime4,a_timestamp5,a_date0;
-SHOW CREATE TABLE t1;
-DROP TABLE t1;
-CREATE TABLE t1 AS
-SELECT aa_int11,aa_dec103,aa_flt0,aa_dbl0,aa_bit3,
-aa_enum0,aa_varchar10,
-aa_text1,aa_tinytext1,aa_mediumtext1,aa_longtext1,
-aa_time3,aa_datetime4,aa_timestamp5,aa_date0;
-SHOW CREATE TABLE t1;
-DROP TABLE t1;
-END;
-$$
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a_int11` int(11) DEFAULT NULL,
- `a_dec103` decimal(10,3) DEFAULT NULL,
- `a_flt0` float DEFAULT NULL,
- `a_dbl0` double DEFAULT NULL,
- `a_bit3` bit(3) DEFAULT NULL,
- `a_enum0` varchar(1) DEFAULT NULL,
- `a_varchar10` varchar(10) DEFAULT NULL,
- `a_text1` text DEFAULT NULL,
- `a_tinytext1` tinytext DEFAULT NULL,
- `a_mediumtext1` mediumtext DEFAULT NULL,
- `a_longtext1` longtext DEFAULT NULL,
- `a_time3` time(3) DEFAULT NULL,
- `a_datetime4` datetime(4) DEFAULT NULL,
- `a_timestamp5` timestamp(5) NULL DEFAULT NULL,
- `a_date0` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-Table Create Table
-t1 CREATE TABLE `t1` (
- `aa_int11` int(11) DEFAULT NULL,
- `aa_dec103` decimal(10,3) DEFAULT NULL,
- `aa_flt0` float DEFAULT NULL,
- `aa_dbl0` double DEFAULT NULL,
- `aa_bit3` bit(3) DEFAULT NULL,
- `aa_enum0` varchar(1) DEFAULT NULL,
- `aa_varchar10` varchar(10) DEFAULT NULL,
- `aa_text1` text DEFAULT NULL,
- `aa_tinytext1` tinytext DEFAULT NULL,
- `aa_mediumtext1` mediumtext DEFAULT NULL,
- `aa_longtext1` longtext DEFAULT NULL,
- `aa_time3` time(3) DEFAULT NULL,
- `aa_datetime4` datetime(4) DEFAULT NULL,
- `aa_timestamp5` timestamp(5) NULL DEFAULT NULL,
- `aa_date0` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
diff --git a/mysql-test/r/sp-big.result b/mysql-test/r/sp-big.result
deleted file mode 100644
index e12136eb36d..00000000000
--- a/mysql-test/r/sp-big.result
+++ /dev/null
@@ -1,87 +0,0 @@
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-length
-107520
-select length(routine_definition) from information_schema.routines where routine_schema = 'test' and routine_name = 'longprocedure';
-length(routine_definition)
-107530
-call test.longprocedure(@value);
-select @value;
-@value
-3
-drop procedure test.longprocedure;
-drop table t1;
-create table t1 (f1 char(100) , f2 mediumint , f3 int , f4 real, f5 numeric);
-insert into t1 (f1, f2, f3, f4, f5) values
-("This is a test case for for Bug#9819", 1, 2, 3.0, 4.598);
-Warnings:
-Note 1265 Data truncated for column 'f5' at row 1
-create table t2 like t1;
-select count(*) from t1;
-count(*)
-256
-select count(*) from t2;
-count(*)
-0
-drop procedure if exists p1;
-create procedure p1()
-begin
-declare done integer default 0;
-declare vf1 char(100) ;
-declare vf2 mediumint;
-declare vf3 int ;
-declare vf4 real ;
-declare vf5 numeric ;
-declare cur1 cursor for select f1,f2,f3,f4,f5 from t1;
-declare continue handler for sqlstate '02000' set done = 1;
-open cur1;
-while done <> 1 do
-fetch cur1 into vf1, vf2, vf3, vf4, vf5;
-if not done then
-insert into t2 values (vf1, vf2, vf3, vf4, vf5);
-end if;
-end while;
-close cur1;
-end|
-call p1();
-select count(*) from t1;
-count(*)
-256
-select count(*) from t2;
-count(*)
-256
-select f1 from t1 limit 1;
-f1
-This is a test case for for Bug#9819
-select f1 from t2 limit 1;
-f1
-This is a test case for for Bug#9819
-drop procedure p1;
-drop table t1, t2;
-create table t1 (
-`id1` int unsigned not null default '0',
-`id2` int unsigned not null default '0',
-`link_type` int unsigned not null default '0',
-`visibility` tinyint not null default '0',
-`data` varchar(255) not null default '',
-`time` int unsigned not null default '0',
-`version` int unsigned not null default '0',
-primary key (id1, link_type, visibility, id2)
-) default collate=latin1_bin;
-create procedure select_test()
-begin
-declare id1_cond int;
-set id1_cond = 1;
-while id1_cond <= 10000 do
-select count(*) as cnt from (select id1 from t1 force index (primary) where id1 = id1_cond and link_type = 1 and visibility = 1 order by id2 desc) as t into @cnt;
-set id1_cond = id1_cond + 1;
-end while;
-end//
-insert t1 select seq, seq, 1, 1, seq, seq, seq from seq_1_to_2000;
-set @before=unix_timestamp();
-call select_test();
-select unix_timestamp() - @before < 60;
-unix_timestamp() - @before < 60
-1
-drop procedure select_test;
-drop table t1;
diff --git a/mysql-test/r/sp-bugs.result b/mysql-test/r/sp-bugs.result
deleted file mode 100644
index 3db1e68321c..00000000000
--- a/mysql-test/r/sp-bugs.result
+++ /dev/null
@@ -1,294 +0,0 @@
-#
-# Bug #47412: Valgrind warnings / user can read uninitalized memory
-# using SP variables
-#
-CREATE SCHEMA testdb;
-USE testdb;
-CREATE FUNCTION f2 () RETURNS INTEGER
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '42000' SET @aux = 1;
-RETURN f_not_exists () ;
-END|
-CREATE PROCEDURE p3 ( arg1 VARCHAR(32) )
-BEGIN
-CALL p_not_exists ( );
-END|
-# should not return valgrind warnings
-CALL p3 ( f2 () );
-ERROR 42000: PROCEDURE testdb.p_not_exists does not exist
-DROP SCHEMA testdb;
-CREATE SCHEMA testdb;
-USE testdb;
-CREATE FUNCTION f2 () RETURNS INTEGER
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '42000' SET @aux = 1;
-RETURN f_not_exists () ;
-END|
-CREATE PROCEDURE p3 ( arg2 INTEGER )
-BEGIN
-CALL p_not_exists ( );
-END|
-# should not return valgrind warnings
-CALL p3 ( f2 () );
-ERROR 42000: PROCEDURE testdb.p_not_exists does not exist
-DROP SCHEMA testdb;
-CREATE SCHEMA testdb;
-USE testdb;
-CREATE FUNCTION f2 () RETURNS INTEGER
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '42000' SET @aux = 1;
-RETURN f_not_exists () ;
-END|
-# should not return valgrind warnings
-SELECT f2 ();
-f2 ()
-NULL
-DROP SCHEMA testdb;
-USE test;
-#
-# Bug#50423: Crash on second call of a procedure dropping a trigger
-#
-DROP TABLE IF EXISTS t1;
-DROP TRIGGER IF EXISTS tr1;
-DROP PROCEDURE IF EXISTS p1;
-CREATE TABLE t1 (f1 INTEGER);
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET @aux = 1;
-CREATE PROCEDURE p1 () DROP TRIGGER tr1;
-CALL p1 ();
-CALL p1 ();
-ERROR HY000: Trigger does not exist
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Bug#50423: Crash on second call of a procedure dropping a trigger
-#
-DROP TABLE IF EXISTS t1;
-DROP TRIGGER IF EXISTS tr1;
-DROP PROCEDURE IF EXISTS p1;
-CREATE TABLE t1 (f1 INTEGER);
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET @aux = 1;
-CREATE PROCEDURE p1 () DROP TRIGGER tr1;
-CALL p1 ();
-CALL p1 ();
-ERROR HY000: Trigger does not exist
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Bug#54375: Error in stored procedure leaves connection
-# in different default schema
-#
-SET @@SQL_MODE = 'STRICT_ALL_TABLES';
-DROP DATABASE IF EXISTS db1;
-CREATE DATABASE db1;
-USE db1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (c1 int NOT NULL PRIMARY KEY);
-INSERT INTO t1 VALUES (1);
-CREATE FUNCTION f1 (
-some_value int
-)
-RETURNS smallint
-DETERMINISTIC
-BEGIN
-INSERT INTO t1 SET c1 = some_value;
-RETURN(LAST_INSERT_ID());
-END$$
-DROP DATABASE IF EXISTS db2;
-CREATE DATABASE db2;
-USE db2;
-SELECT DATABASE();
-DATABASE()
-db2
-SELECT db1.f1(1);
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-SELECT DATABASE();
-DATABASE()
-db2
-USE test;
-DROP FUNCTION db1.f1;
-DROP TABLE db1.t1;
-DROP DATABASE db1;
-DROP DATABASE db2;
-USE test;
-#
-# Bug#13105873:valgrind warning:possible crash in foreign
-# key handling on subsequent create table if not exists
-#
-DROP DATABASE IF EXISTS testdb;
-CREATE DATABASE testdb;
-USE testdb;
-CREATE TABLE t1 (id1 INT PRIMARY KEY);
-CREATE PROCEDURE `p1`()
-BEGIN
-CREATE TABLE IF NOT EXISTS t2(id INT PRIMARY KEY,
-CONSTRAINT FK FOREIGN KEY (id) REFERENCES t1( id1 ));
-END$
-CALL p1();
-# below stmt should not return valgrind warnings
-CALL p1();
-Warnings:
-Note 1050 Table 't2' already exists
-DROP DATABASE testdb;
-USE test;
-End of 5.1 tests
-#
-# BUG#13489996 valgrind:conditional jump or move depends on
-# uninitialised values-field_blob
-#
-CREATE FUNCTION sf() RETURNS BLOB RETURN "";
-SELECT sf();
-sf()
-
-DROP FUNCTION sf;
-#
-# Bug#11763507 - 56224: FUNCTION NAME IS CASE-SENSITIVE
-#
-SET @@SQL_MODE = '';
-CREATE FUNCTION testf_bug11763507() RETURNS INT
-BEGIN
-RETURN 0;
-END
-$
-CREATE PROCEDURE testp_bug11763507()
-BEGIN
-SELECT "PROCEDURE testp_bug11763507";
-END
-$
-SELECT testf_bug11763507();
-testf_bug11763507()
-0
-SELECT TESTF_bug11763507();
-TESTF_bug11763507()
-0
-SHOW FUNCTION STATUS LIKE 'testf_bug11763507';
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test testf_bug11763507 FUNCTION root@localhost # # DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW FUNCTION STATUS WHERE NAME='testf_bug11763507';
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test testf_bug11763507 FUNCTION root@localhost # # DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW FUNCTION STATUS LIKE 'TESTF_bug11763507';
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test testf_bug11763507 FUNCTION root@localhost # # DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW FUNCTION STATUS WHERE NAME='TESTF_bug11763507';
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test testf_bug11763507 FUNCTION root@localhost # # DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE FUNCTION testf_bug11763507;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-testf_bug11763507 CREATE DEFINER=`root`@`localhost` FUNCTION `testf_bug11763507`() RETURNS int(11)
-BEGIN
-RETURN 0;
-END latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE FUNCTION TESTF_bug11763507;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-testf_bug11763507 CREATE DEFINER=`root`@`localhost` FUNCTION `testf_bug11763507`() RETURNS int(11)
-BEGIN
-RETURN 0;
-END latin1 latin1_swedish_ci latin1_swedish_ci
-CALL testp_bug11763507();
-PROCEDURE testp_bug11763507
-PROCEDURE testp_bug11763507
-CALL TESTP_bug11763507();
-PROCEDURE testp_bug11763507
-PROCEDURE testp_bug11763507
-SHOW PROCEDURE STATUS LIKE 'testp_bug11763507';
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test testp_bug11763507 PROCEDURE root@localhost # # DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW PROCEDURE STATUS WHERE NAME='testp_bug11763507';
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test testp_bug11763507 PROCEDURE root@localhost # # DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW PROCEDURE STATUS LIKE 'TESTP_bug11763507';
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test testp_bug11763507 PROCEDURE root@localhost # # DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW PROCEDURE STATUS WHERE NAME='TESTP_bug11763507';
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test testp_bug11763507 PROCEDURE root@localhost # # DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE PROCEDURE testp_bug11763507;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-testp_bug11763507 CREATE DEFINER=`root`@`localhost` PROCEDURE `testp_bug11763507`()
-BEGIN
-SELECT "PROCEDURE testp_bug11763507";
-END latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE PROCEDURE TESTP_bug11763507;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-testp_bug11763507 CREATE DEFINER=`root`@`localhost` PROCEDURE `testp_bug11763507`()
-BEGIN
-SELECT "PROCEDURE testp_bug11763507";
-END latin1 latin1_swedish_ci latin1_swedish_ci
-SELECT specific_name FROM INFORMATION_SCHEMA.ROUTINES WHERE specific_name LIKE 'testf_bug11763507';
-specific_name
-testf_bug11763507
-SELECT specific_name FROM INFORMATION_SCHEMA.ROUTINES WHERE specific_name LIKE 'TESTF_bug11763507';
-specific_name
-testf_bug11763507
-SELECT specific_name FROM INFORMATION_SCHEMA.ROUTINES WHERE specific_name='testf_bug11763507';
-specific_name
-testf_bug11763507
-SELECT specific_name FROM INFORMATION_SCHEMA.ROUTINES WHERE specific_name='TESTF_bug11763507';
-specific_name
-testf_bug11763507
-DROP PROCEDURE testp_bug11763507;
-DROP FUNCTION testf_bug11763507;
-#END OF BUG#11763507 test.
-#
-# MDEV-5531 double call procedure in one session
-#
-CREATE TABLE `t1` (
-`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
-`create_ts` int(10) unsigned DEFAULT '0',
-PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
-CREATE PROCEDURE test_5531 (IN step TINYINT(1))
-BEGIN
-DECLARE counts INT DEFAULT 0;
-DECLARE cur1 CURSOR FOR
-SELECT ct.id
-FROM (SELECT NULL) AS z
-JOIN (
-SELECT id
-FROM `t1`
- LIMIT 10
-) AS ct
-JOIN (SELECT NULL) AS x ON(
-EXISTS(
-SELECT 1
-FROM `t1`
- WHERE id=ct.id
-LIMIT 1
-)
-);
-IF step=1 THEN
-TRUNCATE t1;
-REPEAT
-INSERT INTO `t1`
- (create_ts) VALUES
-(UNIX_TIMESTAMP());
-SET counts=counts+1;
-UNTIL counts>150 END REPEAT;
-SET max_sp_recursion_depth=1;
-CALL test_5531(2);
-SET max_sp_recursion_depth=2;
-CALL test_5531(2);
-ELSEIF step=2 THEN
-OPEN cur1; CLOSE cur1;
-END IF;
-END $$
-CALL test_5531(1);
-DROP PROCEDURE test_5531;
-DROP TABLE t1;
-create procedure sp() begin
-commit;
-end|
-start transaction;
-call sp();
-drop procedure sp;
-#
-# MDEV-11146 SP variables of the SET data type erroneously allow values with comma
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a SET('a','b','c','a,b');
-SET a='a,b';
-SELECT a, a+0;
-END;
-$$
-ERROR 22007: Illegal set 'a,b' value found during parsing
diff --git a/mysql-test/r/sp-bugs2.result b/mysql-test/r/sp-bugs2.result
deleted file mode 100644
index 3e48f0fb5d2..00000000000
--- a/mysql-test/r/sp-bugs2.result
+++ /dev/null
@@ -1,23 +0,0 @@
-CREATE TABLE t1 (i INT);
-SET @a = 2;
-CREATE TABLE IF NOT EXISTS t2 (i INT) ENGINE = MyISAM
-AS SELECT * FROM t1;
-CREATE TABLE IF NOT EXISTS t2 (i INT) ENGINE = MyISAM
-AS SELECT * FROM t1;
-Warnings:
-Note 1050 Table 't2' already exists
-DROP TABLE t2;
-CREATE PROCEDURE sp()
-BEGIN
-REPEAT
-CREATE TABLE IF NOT EXISTS t2 (i INT) ENGINE = MyISAM
-AS SELECT * FROM t1;
-SET @a = @a - 1;
-UNTIL @a = 0
-END REPEAT ;
-END |
-CALL sp();
-Warnings:
-Note 1050 Table 't2' already exists
-DROP PROCEDURE sp;
-DROP TABLE t1, t2;
diff --git a/mysql-test/r/sp-code.result b/mysql-test/r/sp-code.result
deleted file mode 100644
index 3a4dc9db6f8..00000000000
--- a/mysql-test/r/sp-code.result
+++ /dev/null
@@ -1,1303 +0,0 @@
-drop procedure if exists empty;
-drop procedure if exists code_sample;
-create procedure empty()
-begin
-end;
-show procedure code empty;
-Pos Instruction
-drop procedure empty;
-create function almost_empty()
-returns int
-return 0;
-show function code almost_empty;
-Pos Instruction
-0 freturn int 0
-drop function almost_empty;
-create procedure code_sample(x int, out err int, out nulls int)
-begin
-declare count int default 0;
-set nulls = 0;
-begin
-declare c cursor for select name from t1;
-declare exit handler for not found close c;
-open c;
-loop
-begin
-declare n varchar(20);
-declare continue handler for sqlexception set err=1;
-fetch c into n;
-if isnull(n) then
-set nulls = nulls + 1;
-else
-set count = count + 1;
-update t2 set idx = count where name=n;
-end if;
-end;
-end loop;
-end;
-select t.name, t.idx from t2 t order by idx asc;
-end//
-show procedure code code_sample;
-Pos Instruction
-0 set count@3 0
-1 set nulls@2 0
-2 cpush c@0
-3 hpush_jump 6 4 EXIT
-4 cclose c@0
-5 hreturn 0 19
-6 copen c@0
-7 set n@4 NULL
-8 hpush_jump 11 5 CONTINUE
-9 set err@1 1
-10 hreturn 5
-11 cfetch c@0 n@4
-12 jump_if_not 15(17) n@4 is null
-13 set nulls@2 nulls@2 + 1
-14 jump 17
-15 set count@3 count@3 + 1
-16 stmt 4 "update t2 set idx = count where name=n"
-17 hpop 1
-18 jump 7
-19 hpop 1
-20 cpop 1
-21 stmt 0 "select t.name, t.idx from t2 t order ..."
-drop procedure code_sample;
-drop procedure if exists sudoku_solve;
-create procedure sudoku_solve(p_naive boolean, p_all boolean)
-deterministic
-modifies sql data
-begin
-drop temporary table if exists sudoku_work, sudoku_schedule;
-create temporary table sudoku_work
-(
-row smallint not null,
-col smallint not null,
-dig smallint not null,
-cnt smallint,
-key using btree (cnt),
-key using btree (row),
-key using btree (col),
-unique key using hash (row,col)
-);
-create temporary table sudoku_schedule
-(
-idx int not null auto_increment primary key,
-row smallint not null,
-col smallint not null
-);
-call sudoku_init();
-if p_naive then
-update sudoku_work set cnt = 0 where dig = 0;
-else
-call sudoku_count();
-end if;
-insert into sudoku_schedule (row,col)
-select row,col from sudoku_work where cnt is not null order by cnt desc;
-begin
-declare v_scounter bigint default 0;
-declare v_i smallint default 1;
-declare v_dig smallint;
-declare v_schedmax smallint;
-select count(*) into v_schedmax from sudoku_schedule;
-more:
-loop
-begin
-declare v_tcounter bigint default 0;
-sched:
-while v_i <= v_schedmax do
-begin
-declare v_row, v_col smallint;
-select row,col into v_row,v_col from sudoku_schedule where v_i = idx;
-select dig into v_dig from sudoku_work
-where v_row = row and v_col = col;
-case v_dig
-when 0 then
-set v_dig = 1;
-update sudoku_work set dig = 1
-where v_row = row and v_col = col;
-when 9 then
-if v_i > 0 then
-update sudoku_work set dig = 0
-where v_row = row and v_col = col;
-set v_i = v_i - 1;
-iterate sched;
-else
-select v_scounter as 'Solutions';
-leave more;
-end if;
-else
-set v_dig = v_dig + 1;
-update sudoku_work set dig = v_dig
-where v_row = row and v_col = col;
-end case;
-set v_tcounter = v_tcounter + 1;
-if not sudoku_digit_ok(v_row, v_col, v_dig) then
-iterate sched;
-end if;
-set v_i = v_i + 1;
-end;
-end while sched;
-select dig from sudoku_work;
-select v_tcounter as 'Tests';
-set v_scounter = v_scounter + 1;
-if p_all and v_i > 0 then
-set v_i = v_i - 1;
-else
-leave more;
-end if;
-end;
-end loop more;
-end;
-drop temporary table sudoku_work, sudoku_schedule;
-end//
-show procedure code sudoku_solve;
-Pos Instruction
-0 stmt 9 "drop temporary table if exists sudoku..."
-1 stmt 1 "create temporary table sudoku_work ( ..."
-2 stmt 1 "create temporary table sudoku_schedul..."
-3 stmt 88 "call sudoku_init()"
-4 jump_if_not 7(8) p_naive@0
-5 stmt 4 "update sudoku_work set cnt = 0 where ..."
-6 jump 8
-7 stmt 88 "call sudoku_count()"
-8 stmt 6 "insert into sudoku_schedule (row,col)..."
-9 set v_scounter@2 0
-10 set v_i@3 1
-11 set v_dig@4 NULL
-12 set v_schedmax@5 NULL
-13 stmt 0 "select count(*) into v_schedmax from ..."
-14 set v_tcounter@6 0
-15 jump_if_not 39(39) v_i@3 <= v_schedmax@5
-16 set v_row@7 NULL
-17 set v_col@8 NULL
-18 stmt 0 "select row,col into v_row,v_col from ..."
-19 stmt 0 "select dig into v_dig from sudoku_wor..."
-20 set_case_expr (34) 0 v_dig@4
-21 jump_if_not 25(34) case_expr@0 = 0
-22 set v_dig@4 1
-23 stmt 4 "update sudoku_work set dig = 1 where ..."
-24 jump 34
-25 jump_if_not 32(34) case_expr@0 = 9
-26 jump_if_not 30(34) v_i@3 > 0
-27 stmt 4 "update sudoku_work set dig = 0 where ..."
-28 set v_i@3 v_i@3 - 1
-29 jump 15
-30 stmt 0 "select v_scounter as 'Solutions'"
-31 jump 45
-32 set v_dig@4 v_dig@4 + 1
-33 stmt 4 "update sudoku_work set dig = v_dig wh..."
-34 set v_tcounter@6 v_tcounter@6 + 1
-35 jump_if_not 37(37) !`sudoku_digit_ok`(v_row@7,v_col@8,v_dig@4)
-36 jump 15
-37 set v_i@3 v_i@3 + 1
-38 jump 15
-39 stmt 0 "select dig from sudoku_work"
-40 stmt 0 "select v_tcounter as 'Tests'"
-41 set v_scounter@2 v_scounter@2 + 1
-42 jump_if_not 45(14) p_all@1 and v_i@3 > 0
-43 set v_i@3 v_i@3 - 1
-44 jump 14
-45 stmt 9 "drop temporary table sudoku_work, sud..."
-drop procedure sudoku_solve;
-DROP PROCEDURE IF EXISTS proc_19194_simple;
-DROP PROCEDURE IF EXISTS proc_19194_searched;
-DROP PROCEDURE IF EXISTS proc_19194_nested_1;
-DROP PROCEDURE IF EXISTS proc_19194_nested_2;
-DROP PROCEDURE IF EXISTS proc_19194_nested_3;
-DROP PROCEDURE IF EXISTS proc_19194_nested_4;
-CREATE PROCEDURE proc_19194_simple(i int)
-BEGIN
-DECLARE str CHAR(10);
-CASE i
-WHEN 1 THEN SET str="1";
-WHEN 2 THEN SET str="2";
-WHEN 3 THEN SET str="3";
-ELSE SET str="unknown";
-END CASE;
-SELECT str;
-END|
-CREATE PROCEDURE proc_19194_searched(i int)
-BEGIN
-DECLARE str CHAR(10);
-CASE
-WHEN i=1 THEN SET str="1";
-WHEN i=2 THEN SET str="2";
-WHEN i=3 THEN SET str="3";
-ELSE SET str="unknown";
-END CASE;
-SELECT str;
-END|
-CREATE PROCEDURE proc_19194_nested_1(i int, j int)
-BEGIN
-DECLARE str_i CHAR(10);
-DECLARE str_j CHAR(10);
-CASE i
-WHEN 10 THEN SET str_i="10";
-WHEN 20 THEN
-BEGIN
-set str_i="20";
-CASE
-WHEN j=1 THEN SET str_j="1";
-WHEN j=2 THEN SET str_j="2";
-WHEN j=3 THEN SET str_j="3";
-ELSE SET str_j="unknown";
-END CASE;
-select "i was 20";
-END;
-WHEN 30 THEN SET str_i="30";
-WHEN 40 THEN SET str_i="40";
-ELSE SET str_i="unknown";
-END CASE;
-SELECT str_i, str_j;
-END|
-CREATE PROCEDURE proc_19194_nested_2(i int, j int)
-BEGIN
-DECLARE str_i CHAR(10);
-DECLARE str_j CHAR(10);
-CASE
-WHEN i=10 THEN SET str_i="10";
-WHEN i=20 THEN
-BEGIN
-set str_i="20";
-CASE j
-WHEN 1 THEN SET str_j="1";
-WHEN 2 THEN SET str_j="2";
-WHEN 3 THEN SET str_j="3";
-ELSE SET str_j="unknown";
-END CASE;
-select "i was 20";
-END;
-WHEN i=30 THEN SET str_i="30";
-WHEN i=40 THEN SET str_i="40";
-ELSE SET str_i="unknown";
-END CASE;
-SELECT str_i, str_j;
-END|
-CREATE PROCEDURE proc_19194_nested_3(i int, j int)
-BEGIN
-DECLARE str_i CHAR(10);
-DECLARE str_j CHAR(10);
-CASE i
-WHEN 10 THEN SET str_i="10";
-WHEN 20 THEN
-BEGIN
-set str_i="20";
-CASE j
-WHEN 1 THEN SET str_j="1";
-WHEN 2 THEN SET str_j="2";
-WHEN 3 THEN SET str_j="3";
-ELSE SET str_j="unknown";
-END CASE;
-select "i was 20";
-END;
-WHEN 30 THEN SET str_i="30";
-WHEN 40 THEN SET str_i="40";
-ELSE SET str_i="unknown";
-END CASE;
-SELECT str_i, str_j;
-END|
-CREATE PROCEDURE proc_19194_nested_4(i int, j int)
-BEGIN
-DECLARE str_i CHAR(10);
-DECLARE str_j CHAR(10);
-CASE
-WHEN i=10 THEN SET str_i="10";
-WHEN i=20 THEN
-BEGIN
-set str_i="20";
-CASE
-WHEN j=1 THEN SET str_j="1";
-WHEN j=2 THEN SET str_j="2";
-WHEN j=3 THEN SET str_j="3";
-ELSE SET str_j="unknown";
-END CASE;
-select "i was 20";
-END;
-WHEN i=30 THEN SET str_i="30";
-WHEN i=40 THEN SET str_i="40";
-ELSE SET str_i="unknown";
-END CASE;
-SELECT str_i, str_j;
-END|
-SHOW PROCEDURE CODE proc_19194_simple;
-Pos Instruction
-0 set str@1 NULL
-1 set_case_expr (12) 0 i@0
-2 jump_if_not 5(12) case_expr@0 = 1
-3 set str@1 '1'
-4 jump 12
-5 jump_if_not 8(12) case_expr@0 = 2
-6 set str@1 '2'
-7 jump 12
-8 jump_if_not 11(12) case_expr@0 = 3
-9 set str@1 '3'
-10 jump 12
-11 set str@1 'unknown'
-12 stmt 0 "SELECT str"
-SHOW PROCEDURE CODE proc_19194_searched;
-Pos Instruction
-0 set str@1 NULL
-1 jump_if_not 4(11) i@0 = 1
-2 set str@1 '1'
-3 jump 11
-4 jump_if_not 7(11) i@0 = 2
-5 set str@1 '2'
-6 jump 11
-7 jump_if_not 10(11) i@0 = 3
-8 set str@1 '3'
-9 jump 11
-10 set str@1 'unknown'
-11 stmt 0 "SELECT str"
-SHOW PROCEDURE CODE proc_19194_nested_1;
-Pos Instruction
-0 set str_i@2 NULL
-1 set str_j@3 NULL
-2 set_case_expr (27) 0 i@0
-3 jump_if_not 6(27) case_expr@0 = 10
-4 set str_i@2 '10'
-5 jump 27
-6 jump_if_not 20(27) case_expr@0 = 20
-7 set str_i@2 '20'
-8 jump_if_not 11(18) j@1 = 1
-9 set str_j@3 '1'
-10 jump 18
-11 jump_if_not 14(18) j@1 = 2
-12 set str_j@3 '2'
-13 jump 18
-14 jump_if_not 17(18) j@1 = 3
-15 set str_j@3 '3'
-16 jump 18
-17 set str_j@3 'unknown'
-18 stmt 0 "select "i was 20""
-19 jump 27
-20 jump_if_not 23(27) case_expr@0 = 30
-21 set str_i@2 '30'
-22 jump 27
-23 jump_if_not 26(27) case_expr@0 = 40
-24 set str_i@2 '40'
-25 jump 27
-26 set str_i@2 'unknown'
-27 stmt 0 "SELECT str_i, str_j"
-SHOW PROCEDURE CODE proc_19194_nested_2;
-Pos Instruction
-0 set str_i@2 NULL
-1 set str_j@3 NULL
-2 jump_if_not 5(27) i@0 = 10
-3 set str_i@2 '10'
-4 jump 27
-5 jump_if_not 20(27) i@0 = 20
-6 set str_i@2 '20'
-7 set_case_expr (18) 0 j@1
-8 jump_if_not 11(18) case_expr@0 = 1
-9 set str_j@3 '1'
-10 jump 18
-11 jump_if_not 14(18) case_expr@0 = 2
-12 set str_j@3 '2'
-13 jump 18
-14 jump_if_not 17(18) case_expr@0 = 3
-15 set str_j@3 '3'
-16 jump 18
-17 set str_j@3 'unknown'
-18 stmt 0 "select "i was 20""
-19 jump 27
-20 jump_if_not 23(27) i@0 = 30
-21 set str_i@2 '30'
-22 jump 27
-23 jump_if_not 26(27) i@0 = 40
-24 set str_i@2 '40'
-25 jump 27
-26 set str_i@2 'unknown'
-27 stmt 0 "SELECT str_i, str_j"
-SHOW PROCEDURE CODE proc_19194_nested_3;
-Pos Instruction
-0 set str_i@2 NULL
-1 set str_j@3 NULL
-2 set_case_expr (28) 0 i@0
-3 jump_if_not 6(28) case_expr@0 = 10
-4 set str_i@2 '10'
-5 jump 28
-6 jump_if_not 21(28) case_expr@0 = 20
-7 set str_i@2 '20'
-8 set_case_expr (19) 1 j@1
-9 jump_if_not 12(19) case_expr@1 = 1
-10 set str_j@3 '1'
-11 jump 19
-12 jump_if_not 15(19) case_expr@1 = 2
-13 set str_j@3 '2'
-14 jump 19
-15 jump_if_not 18(19) case_expr@1 = 3
-16 set str_j@3 '3'
-17 jump 19
-18 set str_j@3 'unknown'
-19 stmt 0 "select "i was 20""
-20 jump 28
-21 jump_if_not 24(28) case_expr@0 = 30
-22 set str_i@2 '30'
-23 jump 28
-24 jump_if_not 27(28) case_expr@0 = 40
-25 set str_i@2 '40'
-26 jump 28
-27 set str_i@2 'unknown'
-28 stmt 0 "SELECT str_i, str_j"
-SHOW PROCEDURE CODE proc_19194_nested_4;
-Pos Instruction
-0 set str_i@2 NULL
-1 set str_j@3 NULL
-2 jump_if_not 5(26) i@0 = 10
-3 set str_i@2 '10'
-4 jump 26
-5 jump_if_not 19(26) i@0 = 20
-6 set str_i@2 '20'
-7 jump_if_not 10(17) j@1 = 1
-8 set str_j@3 '1'
-9 jump 17
-10 jump_if_not 13(17) j@1 = 2
-11 set str_j@3 '2'
-12 jump 17
-13 jump_if_not 16(17) j@1 = 3
-14 set str_j@3 '3'
-15 jump 17
-16 set str_j@3 'unknown'
-17 stmt 0 "select "i was 20""
-18 jump 26
-19 jump_if_not 22(26) i@0 = 30
-20 set str_i@2 '30'
-21 jump 26
-22 jump_if_not 25(26) i@0 = 40
-23 set str_i@2 '40'
-24 jump 26
-25 set str_i@2 'unknown'
-26 stmt 0 "SELECT str_i, str_j"
-CALL proc_19194_nested_1(10, 1);
-str_i str_j
-10 NULL
-CALL proc_19194_nested_1(25, 1);
-str_i str_j
-unknown NULL
-CALL proc_19194_nested_1(20, 1);
-i was 20
-i was 20
-str_i str_j
-20 1
-CALL proc_19194_nested_1(20, 2);
-i was 20
-i was 20
-str_i str_j
-20 2
-CALL proc_19194_nested_1(20, 3);
-i was 20
-i was 20
-str_i str_j
-20 3
-CALL proc_19194_nested_1(20, 4);
-i was 20
-i was 20
-str_i str_j
-20 unknown
-CALL proc_19194_nested_1(30, 1);
-str_i str_j
-30 NULL
-CALL proc_19194_nested_1(40, 1);
-str_i str_j
-40 NULL
-CALL proc_19194_nested_1(0, 0);
-str_i str_j
-unknown NULL
-CALL proc_19194_nested_2(10, 1);
-str_i str_j
-10 NULL
-CALL proc_19194_nested_2(25, 1);
-str_i str_j
-unknown NULL
-CALL proc_19194_nested_2(20, 1);
-i was 20
-i was 20
-str_i str_j
-20 1
-CALL proc_19194_nested_2(20, 2);
-i was 20
-i was 20
-str_i str_j
-20 2
-CALL proc_19194_nested_2(20, 3);
-i was 20
-i was 20
-str_i str_j
-20 3
-CALL proc_19194_nested_2(20, 4);
-i was 20
-i was 20
-str_i str_j
-20 unknown
-CALL proc_19194_nested_2(30, 1);
-str_i str_j
-30 NULL
-CALL proc_19194_nested_2(40, 1);
-str_i str_j
-40 NULL
-CALL proc_19194_nested_2(0, 0);
-str_i str_j
-unknown NULL
-CALL proc_19194_nested_3(10, 1);
-str_i str_j
-10 NULL
-CALL proc_19194_nested_3(25, 1);
-str_i str_j
-unknown NULL
-CALL proc_19194_nested_3(20, 1);
-i was 20
-i was 20
-str_i str_j
-20 1
-CALL proc_19194_nested_3(20, 2);
-i was 20
-i was 20
-str_i str_j
-20 2
-CALL proc_19194_nested_3(20, 3);
-i was 20
-i was 20
-str_i str_j
-20 3
-CALL proc_19194_nested_3(20, 4);
-i was 20
-i was 20
-str_i str_j
-20 unknown
-CALL proc_19194_nested_3(30, 1);
-str_i str_j
-30 NULL
-CALL proc_19194_nested_3(40, 1);
-str_i str_j
-40 NULL
-CALL proc_19194_nested_3(0, 0);
-str_i str_j
-unknown NULL
-CALL proc_19194_nested_4(10, 1);
-str_i str_j
-10 NULL
-CALL proc_19194_nested_4(25, 1);
-str_i str_j
-unknown NULL
-CALL proc_19194_nested_4(20, 1);
-i was 20
-i was 20
-str_i str_j
-20 1
-CALL proc_19194_nested_4(20, 2);
-i was 20
-i was 20
-str_i str_j
-20 2
-CALL proc_19194_nested_4(20, 3);
-i was 20
-i was 20
-str_i str_j
-20 3
-CALL proc_19194_nested_4(20, 4);
-i was 20
-i was 20
-str_i str_j
-20 unknown
-CALL proc_19194_nested_4(30, 1);
-str_i str_j
-30 NULL
-CALL proc_19194_nested_4(40, 1);
-str_i str_j
-40 NULL
-CALL proc_19194_nested_4(0, 0);
-str_i str_j
-unknown NULL
-DROP PROCEDURE proc_19194_simple;
-DROP PROCEDURE proc_19194_searched;
-DROP PROCEDURE proc_19194_nested_1;
-DROP PROCEDURE proc_19194_nested_2;
-DROP PROCEDURE proc_19194_nested_3;
-DROP PROCEDURE proc_19194_nested_4;
-DROP PROCEDURE IF EXISTS p1;
-CREATE PROCEDURE p1() CREATE INDEX idx ON t1 (c1);
-SHOW PROCEDURE CODE p1;
-Pos Instruction
-0 stmt 2 "CREATE INDEX idx ON t1 (c1)"
-DROP PROCEDURE p1;
-drop table if exists t1;
-drop procedure if exists proc_26977_broken;
-drop procedure if exists proc_26977_works;
-create table t1(a int unique);
-create procedure proc_26977_broken(v int)
-begin
-declare i int default 5;
-declare continue handler for sqlexception
-begin
-select 'caught something';
-retry:
-while i > 0 do
-begin
-set i = i - 1;
-select 'looping', i;
-end;
-end while retry;
-end;
-select 'do something';
-insert into t1 values (v);
-select 'do something again';
-insert into t1 values (v);
-end//
-create procedure proc_26977_works(v int)
-begin
-declare i int default 5;
-declare continue handler for sqlexception
-begin
-select 'caught something';
-retry:
-while i > 0 do
-begin
-set i = i - 1;
-select 'looping', i;
-end;
-end while retry;
-select 'optimizer: keep hreturn';
-end;
-select 'do something';
-insert into t1 values (v);
-select 'do something again';
-insert into t1 values (v);
-end//
-show procedure code proc_26977_broken;
-Pos Instruction
-0 set i@1 5
-1 hpush_jump 8 2 CONTINUE
-2 stmt 0 "select 'caught something'"
-3 jump_if_not 7(7) i@1 > 0
-4 set i@1 i@1 - 1
-5 stmt 0 "select 'looping', i"
-6 jump 3
-7 hreturn 2
-8 stmt 0 "select 'do something'"
-9 stmt 5 "insert into t1 values (v)"
-10 stmt 0 "select 'do something again'"
-11 stmt 5 "insert into t1 values (v)"
-12 hpop 1
-show procedure code proc_26977_works;
-Pos Instruction
-0 set i@1 5
-1 hpush_jump 9 2 CONTINUE
-2 stmt 0 "select 'caught something'"
-3 jump_if_not 7(7) i@1 > 0
-4 set i@1 i@1 - 1
-5 stmt 0 "select 'looping', i"
-6 jump 3
-7 stmt 0 "select 'optimizer: keep hreturn'"
-8 hreturn 2
-9 stmt 0 "select 'do something'"
-10 stmt 5 "insert into t1 values (v)"
-11 stmt 0 "select 'do something again'"
-12 stmt 5 "insert into t1 values (v)"
-13 hpop 1
-call proc_26977_broken(1);
-do something
-do something
-do something again
-do something again
-caught something
-caught something
-looping i
-looping 4
-looping i
-looping 3
-looping i
-looping 2
-looping i
-looping 1
-looping i
-looping 0
-call proc_26977_works(2);
-do something
-do something
-do something again
-do something again
-caught something
-caught something
-looping i
-looping 4
-looping i
-looping 3
-looping i
-looping 2
-looping i
-looping 1
-looping i
-looping 0
-optimizer: keep hreturn
-optimizer: keep hreturn
-drop table t1;
-drop procedure proc_26977_broken;
-drop procedure proc_26977_works;
-drop procedure if exists proc_33618_h;
-drop procedure if exists proc_33618_c;
-create procedure proc_33618_h(num int)
-begin
-declare count1 int default '0';
-declare vb varchar(30);
-declare last_row int;
-while(num>=1) do
-set num=num-1;
-begin
-declare cur1 cursor for select `a` from t_33618;
-declare continue handler for not found set last_row = 1;
-set last_row:=0;
-open cur1;
-rep1:
-repeat
-begin
-declare exit handler for 1062 begin end;
-fetch cur1 into vb;
-if (last_row = 1) then
-## should generate a hpop instruction here
-leave rep1;
-end if;
-end;
-until last_row=1
-end repeat;
-close cur1;
-end;
-end while;
-end//
-create procedure proc_33618_c(num int)
-begin
-declare count1 int default '0';
-declare vb varchar(30);
-declare last_row int;
-while(num>=1) do
-set num=num-1;
-begin
-declare cur1 cursor for select `a` from t_33618;
-declare continue handler for not found set last_row = 1;
-set last_row:=0;
-open cur1;
-rep1:
-repeat
-begin
-declare cur2 cursor for select `b` from t_33618;
-fetch cur1 into vb;
-if (last_row = 1) then
-## should generate a cpop instruction here
-leave rep1;
-end if;
-end;
-until last_row=1
-end repeat;
-close cur1;
-end;
-end while;
-end//
-show procedure code proc_33618_h;
-Pos Instruction
-0 set count1@1 '0'
-1 set vb@2 NULL
-2 set last_row@3 NULL
-3 jump_if_not 24(24) num@0 >= 1
-4 set num@0 num@0 - 1
-5 cpush cur1@0
-6 hpush_jump 9 4 CONTINUE
-7 set last_row@3 1
-8 hreturn 4
-9 set last_row@3 0
-10 copen cur1@0
-11 hpush_jump 13 4 EXIT
-12 hreturn 0 17
-13 cfetch cur1@0 vb@2
-14 jump_if_not 17(17) last_row@3 = 1
-15 hpop 1
-16 jump 19
-17 hpop 1
-18 jump_if_not 11(19) last_row@3 = 1
-19 cclose cur1@0
-20 hpop 1
-21 cpop 1
-22 jump 3
-show procedure code proc_33618_c;
-Pos Instruction
-0 set count1@1 '0'
-1 set vb@2 NULL
-2 set last_row@3 NULL
-3 jump_if_not 23(23) num@0 >= 1
-4 set num@0 num@0 - 1
-5 cpush cur1@0
-6 hpush_jump 9 4 CONTINUE
-7 set last_row@3 1
-8 hreturn 4
-9 set last_row@3 0
-10 copen cur1@0
-11 cpush cur2@1
-12 cfetch cur1@0 vb@2
-13 jump_if_not 16(16) last_row@3 = 1
-14 cpop 1
-15 jump 18
-16 cpop 1
-17 jump_if_not 11(18) last_row@3 = 1
-18 cclose cur1@0
-19 hpop 1
-20 cpop 1
-21 jump 3
-drop procedure proc_33618_h;
-drop procedure proc_33618_c;
-drop procedure if exists p_20906_a;
-drop procedure if exists p_20906_b;
-create procedure p_20906_a() SET @a=@a+1, @b=@b+1;
-show procedure code p_20906_a;
-Pos Instruction
-0 stmt 31 "SET @a=@a+1"
-1 stmt 31 "SET @b=@b+1"
-set @a=1;
-set @b=1;
-call p_20906_a();
-select @a, @b;
-@a @b
-2 2
-create procedure p_20906_b() SET @a=@a+1, @b=@b+1, @c=@c+1;
-show procedure code p_20906_b;
-Pos Instruction
-0 stmt 31 "SET @a=@a+1"
-1 stmt 31 "SET @b=@b+1"
-2 stmt 31 "SET @c=@c+1"
-set @a=1;
-set @b=1;
-set @c=1;
-call p_20906_b();
-select @a, @b, @c;
-@a @b @c
-2 2 2
-drop procedure p_20906_a;
-drop procedure p_20906_b;
-End of 5.0 tests.
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE dummy int default 0;
-CASE 12
-WHEN 12
-THEN SET dummy = 0;
-END CASE;
-END//
-SHOW PROCEDURE CODE p1;
-Pos Instruction
-0 set dummy@0 0
-1 set_case_expr (6) 0 12
-2 jump_if_not 5(6) case_expr@0 = 12
-3 set dummy@0 0
-4 jump 6
-5 error 1339
-DROP PROCEDURE p1;
-#
-# Bug#23032: Handlers declared in a SP do not handle warnings generated in sub-SP
-#
-
-# - Case 4: check that "No Data trumps Warning".
-
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE c CURSOR FOR SELECT a FROM t1;
-OPEN c;
-BEGIN
-DECLARE v INT;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-BEGIN
-SELECT "Warning found!";
-SHOW WARNINGS;
-END;
-DECLARE EXIT HANDLER FOR NOT FOUND
-BEGIN
-SELECT "End of Result Set found!";
-SHOW WARNINGS;
-END;
-WHILE TRUE DO
-FETCH c INTO v;
-END WHILE;
-END;
-CLOSE c;
-SELECT a INTO @foo FROM t1 LIMIT 1; # Clear warning stack
-END|
-SET SESSION debug_dbug="+d,bug23032_emit_warning";
-CALL p1();
-Warning found!
-Warning found!
-Level Code Message
-Warning 1105 Unknown error
-Warning found!
-Warning found!
-Level Code Message
-Warning 1105 Unknown error
-Warning found!
-Warning found!
-Level Code Message
-Warning 1105 Unknown error
-End of Result Set found!
-End of Result Set found!
-Level Code Message
-Warning 1105 Unknown error
-Error 1329 No data - zero rows fetched, selected, or processed
-SET SESSION debug_dbug="-d,bug23032_emit_warning";
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Bug#11763507 - 56224: FUNCTION NAME IS CASE-SENSITIVE
-#
-SET @@SQL_MODE = '';
-CREATE FUNCTION testf_bug11763507() RETURNS INT
-BEGIN
-RETURN 0;
-END
-$
-CREATE PROCEDURE testp_bug11763507()
-BEGIN
-SELECT "PROCEDURE testp_bug11763507";
-END
-$
-SHOW FUNCTION CODE testf_bug11763507;
-Pos Instruction
-0 freturn int 0
-SHOW FUNCTION CODE TESTF_bug11763507;
-Pos Instruction
-0 freturn int 0
-SHOW PROCEDURE CODE testp_bug11763507;
-Pos Instruction
-0 stmt 0 "SELECT "PROCEDURE testp_bug11763507""
-SHOW PROCEDURE CODE TESTP_bug11763507;
-Pos Instruction
-0 stmt 0 "SELECT "PROCEDURE testp_bug11763507""
-DROP PROCEDURE testp_bug11763507;
-DROP FUNCTION testf_bug11763507;
-#END OF BUG#11763507 test.
-#
-# MDEV-13581 ROW TYPE OF t1 and t1%ROWTYPE for routine parameters
-#
-CREATE TABLE t1 (a INT, b TEXT);
-CREATE PROCEDURE p1(a ROW TYPE OF t1, OUT b ROW TYPE OF t1)
-BEGIN
-SET a.a = 100;
-SET a.b = 'aaa';
-SET b.a = 200;
-SET b.b = 'bbb';
-SET a = b;
-SET b = a;
-SET a.a = b.a;
-SET b.a = a.a;
-END;
-$$
-SHOW PROCEDURE CODE p1;
-Pos Instruction
-0 set a.a@0["a"] 100
-1 set a.b@0["b"] 'aaa'
-2 set b.a@1["a"] 200
-3 set b.b@1["b"] 'bbb'
-4 set a@0 b@1
-5 set b@1 a@0
-6 set a.a@0["a"] b.a@1["a"]
-7 set b.a@1["a"] a.a@0["a"]
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# MDEV-14415 Add Oracle-style FOR loop to sql_mode=DEFAULT
-#
-# Integer range FOR loop
-CREATE PROCEDURE p1()
-BEGIN
-FOR i IN 1..3
-DO
-SELECT i;
-END FOR;
-END;
-$$
-CALL p1;
-i
-1
-i
-2
-i
-3
-SHOW PROCEDURE CODE p1;
-Pos Instruction
-0 set i@0 1
-1 set [upper_bound]@1 3
-2 jump_if_not 6(6) i@0 <= [upper_bound]@1
-3 stmt 0 "SELECT i"
-4 set i@0 i@0 + 1
-5 jump 2
-DROP PROCEDURE p1;
-# Nested integer range FOR loops
-CREATE PROCEDURE p1()
-BEGIN
-fori:
-FOR i IN 1..3
-DO
-forj:
-FOR j IN 1..3
-DO
-IF i = 3 THEN
-LEAVE fori;
-END IF;
-IF j = 3 THEN
-LEAVE forj;
-END IF;
-SELECT i,j;
-END FOR;
-END FOR;
-END;
-$$
-CALL p1;
-i j
-1 1
-i j
-1 2
-i j
-2 1
-i j
-2 2
-SHOW PROCEDURE CODE p1;
-Pos Instruction
-0 set i@0 1
-1 set [upper_bound]@1 3
-2 jump_if_not 17(17) i@0 <= [upper_bound]@1
-3 set j@2 1
-4 set [upper_bound]@3 3
-5 jump_if_not 13(13) j@2 <= [upper_bound]@3
-6 jump_if_not 8(8) i@0 = 3
-7 jump 17
-8 jump_if_not 10(10) j@2 = 3
-9 jump 13
-10 stmt 0 "SELECT i,j"
-11 set j@2 j@2 + 1
-12 jump 5
-13 set i@0 i@0 + 1
-14 jump 2
-DROP PROCEDURE p1;
-# Explicit cursor FOR loops
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur0 CURSOR FOR SELECT 10 AS a, 'b0' AS b;
-DECLARE cur1 CURSOR FOR SELECT 10 AS a, 'b0' AS b;
-DECLARE cur2 CURSOR FOR SELECT 10 AS a, 'b0' AS b;
-FOR rec1 IN cur1
-DO
-SELECT rec1.a, rec1.b;
-SET rec1.a= 11;
-SET rec1.b= 'b1';
-SELECT rec1.a, rec1.b;
-END FOR;
-FOR rec0 IN cur0
-DO
-SET rec0.a= 10;
-SET rec0.b='b0';
-END FOR;
-FOR rec2 IN cur2
-DO
-SET rec2.a= 10;
-SET rec2.b='b0';
-END FOR;
-END;
-$$
-SHOW PROCEDURE CODE p1;
-Pos Instruction
-0 cpush cur0@0
-1 cpush cur1@1
-2 cpush cur2@2
-3 cursor_copy_struct cur1 rec1@0
-4 copen cur1@1
-5 cfetch cur1@1 rec1@0
-6 jump_if_not 13(13) `cur1`%FOUND
-7 stmt 0 "SELECT rec1.a, rec1.b"
-8 set rec1.a@0["a"] 11
-9 set rec1.b@0["b"] 'b1'
-10 stmt 0 "SELECT rec1.a, rec1.b"
-11 cfetch cur1@1 rec1@0
-12 jump 6
-13 cursor_copy_struct cur0 rec0@1
-14 copen cur0@0
-15 cfetch cur0@0 rec0@1
-16 jump_if_not 21(21) `cur0`%FOUND
-17 set rec0.a@1["a"] 10
-18 set rec0.b@1["b"] 'b0'
-19 cfetch cur0@0 rec0@1
-20 jump 16
-21 cursor_copy_struct cur2 rec2@2
-22 copen cur2@2
-23 cfetch cur2@2 rec2@2
-24 jump_if_not 29(29) `cur2`%FOUND
-25 set rec2.a@2["a"] 10
-26 set rec2.b@2["b"] 'b0'
-27 cfetch cur2@2 rec2@2
-28 jump 24
-29 cpop 3
-DROP PROCEDURE p1;
-# Nested explicit cursor FOR loops
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur0 CURSOR FOR SELECT 10 AS a, 'b0' AS b;
-FOR rec0 IN cur0
-DO
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT 11 AS a, 'b1' AS b;
-SET rec0.a= 11;
-SET rec0.b= 'b0';
-FOR rec1 IN cur1
-DO
-SET rec1.a= 11;
-SET rec1.b= 'b1';
-BEGIN
-DECLARE cur2 CURSOR FOR SELECT 12 AS a, 'b2' AS b;
-FOR rec2 IN cur2
-DO
-SET rec2.a=12;
-SET rec2.b='b2';
-END FOR;
-END;
-END FOR;
-END;
-END FOR;
-END;
-$$
-SHOW PROCEDURE CODE p1;
-Pos Instruction
-0 cpush cur0@0
-1 cursor_copy_struct cur0 rec0@0
-2 copen cur0@0
-3 cfetch cur0@0 rec0@0
-4 jump_if_not 29(29) `cur0`%FOUND
-5 cpush cur1@1
-6 set rec0.a@0["a"] 11
-7 set rec0.b@0["b"] 'b0'
-8 cursor_copy_struct cur1 rec1@1
-9 copen cur1@1
-10 cfetch cur1@1 rec1@1
-11 jump_if_not 26(26) `cur1`%FOUND
-12 set rec1.a@1["a"] 11
-13 set rec1.b@1["b"] 'b1'
-14 cpush cur2@2
-15 cursor_copy_struct cur2 rec2@2
-16 copen cur2@2
-17 cfetch cur2@2 rec2@2
-18 jump_if_not 23(23) `cur2`%FOUND
-19 set rec2.a@2["a"] 12
-20 set rec2.b@2["b"] 'b2'
-21 cfetch cur2@2 rec2@2
-22 jump 18
-23 cpop 1
-24 cfetch cur1@1 rec1@1
-25 jump 11
-26 cpop 1
-27 cfetch cur0@0 rec0@0
-28 jump 4
-29 cpop 1
-DROP PROCEDURE p1;
-# Implicit cursor FOR loops
-CREATE PROCEDURE p1()
-BEGIN
-FOR rec1 IN (SELECT 11 AS a, 'b1' AS b)
-DO
-SELECT rec1.a, rec1.b;
-SET rec1.a= 11;
-SET rec1.b= 'b1';
-SELECT rec1.a, rec1.b;
-END FOR;
-FOR rec0 IN (SELECT 10 AS a, 'b0' AS b)
-DO
-SET rec0.a= 10;
-SET rec0.b='b0';
-END FOR;
-FOR rec2 IN (SELECT 12 AS a, 'b2' AS b)
-DO
-SET rec2.a= 10;
-SET rec2.b='b0';
-END FOR;
-END;
-$$
-SHOW PROCEDURE CODE p1;
-Pos Instruction
-0 cpush [implicit_cursor]@0
-1 cursor_copy_struct [implicit_cursor] rec1@0
-2 copen [implicit_cursor]@0
-3 cfetch [implicit_cursor]@0 rec1@0
-4 jump_if_not 11(11) `[implicit_cursor]`%FOUND
-5 stmt 0 "SELECT rec1.a, rec1.b"
-6 set rec1.a@0["a"] 11
-7 set rec1.b@0["b"] 'b1'
-8 stmt 0 "SELECT rec1.a, rec1.b"
-9 cfetch [implicit_cursor]@0 rec1@0
-10 jump 4
-11 cpop 1
-12 cpush [implicit_cursor]@0
-13 cursor_copy_struct [implicit_cursor] rec0@1
-14 copen [implicit_cursor]@0
-15 cfetch [implicit_cursor]@0 rec0@1
-16 jump_if_not 21(21) `[implicit_cursor]`%FOUND
-17 set rec0.a@1["a"] 10
-18 set rec0.b@1["b"] 'b0'
-19 cfetch [implicit_cursor]@0 rec0@1
-20 jump 16
-21 cpop 1
-22 cpush [implicit_cursor]@0
-23 cursor_copy_struct [implicit_cursor] rec2@2
-24 copen [implicit_cursor]@0
-25 cfetch [implicit_cursor]@0 rec2@2
-26 jump_if_not 31(31) `[implicit_cursor]`%FOUND
-27 set rec2.a@2["a"] 10
-28 set rec2.b@2["b"] 'b0'
-29 cfetch [implicit_cursor]@0 rec2@2
-30 jump 26
-31 cpop 1
-DROP PROCEDURE p1;
-# Nested implicit cursor FOR loops
-CREATE PROCEDURE p1()
-BEGIN
-FOR rec0 IN (SELECT 10 AS a, 'b0' AS b)
-DO
-SET rec0.a= 11;
-SET rec0.b= 'b0';
-FOR rec1 IN (SELECT 11 AS a, 'b1' AS b)
-DO
-SET rec1.a= 11;
-SET rec1.b= 'b1';
-FOR rec2 IN (SELECT 12 AS a, 'b2' AS b)
-DO
-SET rec2.a=12;
-SET rec2.b='b2';
-END FOR;
-END FOR;
-END FOR;
-END;
-$$
-SHOW PROCEDURE CODE p1;
-Pos Instruction
-0 cpush [implicit_cursor]@0
-1 cursor_copy_struct [implicit_cursor] rec0@0
-2 copen [implicit_cursor]@0
-3 cfetch [implicit_cursor]@0 rec0@0
-4 jump_if_not 29(29) `[implicit_cursor]`%FOUND
-5 set rec0.a@0["a"] 11
-6 set rec0.b@0["b"] 'b0'
-7 cpush [implicit_cursor]@1
-8 cursor_copy_struct [implicit_cursor] rec1@1
-9 copen [implicit_cursor]@1
-10 cfetch [implicit_cursor]@1 rec1@1
-11 jump_if_not 26(26) `[implicit_cursor]`%FOUND
-12 set rec1.a@1["a"] 11
-13 set rec1.b@1["b"] 'b1'
-14 cpush [implicit_cursor]@2
-15 cursor_copy_struct [implicit_cursor] rec2@2
-16 copen [implicit_cursor]@2
-17 cfetch [implicit_cursor]@2 rec2@2
-18 jump_if_not 23(23) `[implicit_cursor]`%FOUND
-19 set rec2.a@2["a"] 12
-20 set rec2.b@2["b"] 'b2'
-21 cfetch [implicit_cursor]@2 rec2@2
-22 jump 18
-23 cpop 1
-24 cfetch [implicit_cursor]@1 rec1@1
-25 jump 11
-26 cpop 1
-27 cfetch [implicit_cursor]@0 rec0@0
-28 jump 4
-29 cpop 1
-DROP PROCEDURE p1;
diff --git a/mysql-test/r/sp-cursor.result b/mysql-test/r/sp-cursor.result
deleted file mode 100644
index 1f8cb7f0635..00000000000
--- a/mysql-test/r/sp-cursor.result
+++ /dev/null
@@ -1,613 +0,0 @@
-#
-# MDEV-12457 Cursors with parameters
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'old'),(2,'old'),(3,'old'),(4,'old'),(5,'old');
-CREATE PROCEDURE p1(min INT,max INT)
-BEGIN
-DECLARE done INT DEFAULT FALSE;
-DECLARE va INT;
-DECLARE cur CURSOR(pmin INT, pmax INT) FOR SELECT a FROM t1 WHERE a BETWEEN pmin AND pmax;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN cur(min,max);
-read_loop: LOOP
-FETCH cur INTO va;
-IF done THEN
-LEAVE read_loop;
-END IF;
-INSERT INTO t1 VALUES (va,'new');
-END LOOP;
-CLOSE cur;
-END;
-$$
-CALL p1(2,4);
-SELECT * FROM t1 ORDER BY b DESC,a;
-a b
-1 old
-2 old
-3 old
-4 old
-5 old
-2 new
-3 new
-4 new
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# OPEN with a wrong number of parameters
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1(a_a INT,a_b VARCHAR(32))
-BEGIN
-DECLARE v_a INT;
-DECLARE v_b VARCHAR(10);
-DECLARE c CURSOR (p_a INT, p_b VARCHAR(32)) FOR SELECT * FROM t1 WHERE a=p_a;
-OPEN c(a_a);
-CLOSE c;
-END;
-$$
-ERROR 42000: Incorrect parameter count to cursor 'c'
-DROP TABLE t1;
-#
-# Cursor parameters are not visible outside of the cursor
-#
-CREATE PROCEDURE p1(a_a INT)
-BEGIN
-DECLARE v_a INT;
-DECLARE c CURSOR (p_a INT) FOR SELECT a FROM t1 WHERE a=p_a;
-OPEN c(a_a);
-SET p_a=10;
-END;
-$$
-ERROR HY000: Unknown system variable 'p_a'
-CREATE PROCEDURE p1(a_a INT)
-BEGIN
-DECLARE v_a INT;
-DECLARE c CURSOR (p_a INT) FOR SELECT a FROM t1 WHERE a=p_a;
-SET p_a= 10;
-OPEN c(a_a);
-END;
-$$
-ERROR HY000: Unknown system variable 'p_a'
-#
-# Cursor parameter shadowing a local variable
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1);
-CREATE PROCEDURE p1(a INT)
-BEGIN
-DECLARE done INT DEFAULT 0;
-DECLARE v_a INT DEFAULT NULL;
-DECLARE p_a INT DEFAULT NULL;
-DECLARE c CURSOR (p_a VARCHAR(32)) FOR SELECT p_a FROM t1;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN c(a);
-read_loop: LOOP
-FETCH c INTO v_a;
-IF done THEN
-LEAVE read_loop;
-END IF;
-SELECT v_a;
-END LOOP;
-CLOSE c;
-END;
-$$
-CALL p1(1);
-v_a
-1
-CALL p1(NULL);
-v_a
-NULL
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Parameters in SELECT list
-#
-CREATE PROCEDURE p1(a_a INT, a_b VARCHAR(32))
-BEGIN
-DECLARE v_a INT;
-DECLARE v_b VARCHAR(10);
-DECLARE c CURSOR (p_a INT, p_b VARCHAR(32)) FOR SELECT p_a,p_b FROM DUAL;
-OPEN c(a_a + 0,a_b);
-FETCH c INTO v_a, v_b;
-SELECT v_a, v_b;
-CLOSE c;
-OPEN c(a_a + 1,a_b);
-FETCH c INTO v_a, v_b;
-SELECT v_a, v_b;
-CLOSE c;
-END;
-$$
-CALL p1(1,'b1');
-v_a v_b
-1 b1
-v_a v_b
-2 b1
-DROP PROCEDURE p1;
-#
-# Parameters in SELECT list + UNION
-#
-CREATE PROCEDURE p1(a_a INT, a_b VARCHAR(32))
-BEGIN
-DECLARE v_a INT;
-DECLARE v_b VARCHAR(10);
-DECLARE c CURSOR(p_a INT, p_b VARCHAR(32)) FOR
-SELECT p_a,p_b FROM DUAL
-UNION ALL
-SELECT p_a+1,CONCAT(p_b,'b') FROM DUAL;
-OPEN c(a_a,a_b);
-FETCH c INTO v_a, v_b;
-SELECT v_a, v_b;
-FETCH c INTO v_a, v_b;
-SELECT v_a, v_b;
-CLOSE c;
-END;
-$$
-CALL p1(1,'b1');
-v_a v_b
-1 b1
-v_a v_b
-2 b1b
-DROP PROCEDURE p1;
-#
-# Parameters in SELECT list + type conversion + warnings
-#
-SET sql_mode='';
-CREATE PROCEDURE p1(a_a VARCHAR(32))
-BEGIN
-DECLARE v_a INT;
-DECLARE c CURSOR (p_a INT) FOR SELECT p_a FROM DUAL;
-OPEN c(a_a);
-FETCH c INTO v_a;
-SELECT v_a;
-CLOSE c;
-END;
-$$
-CALL p1('1b');
-v_a
-1
-Warnings:
-Warning 1265 Data truncated for column 'p_a' at row 1
-CALL p1('b1');
-v_a
-0
-Warnings:
-Warning 1366 Incorrect integer value: 'b1' for column 'p_a' at row 1
-DROP PROCEDURE p1;
-SET sql_mode=DEFAULT;
-#
-# One parameter in SELECT list + subselect
-#
-CREATE PROCEDURE p1(a_a VARCHAR(32))
-BEGIN
-DECLARE v_a VARCHAR(10);
-DECLARE c CURSOR (p_a VARCHAR(32)) FOR
-SELECT p_a FROM DUAL UNION SELECT REVERSE(p_a) FROM DUAL;
-OPEN c((SELECT a_a));
-FETCH c INTO v_a;
-SELECT v_a;
-FETCH c INTO v_a;
-SELECT v_a;
-CLOSE c;
-END;
-$$
-CALL p1('ab');
-v_a
-ab
-v_a
-ba
-DROP PROCEDURE p1;
-#
-# Two parameters in SELECT list + subselect
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE v_a VARCHAR(32);
-DECLARE v_b VARCHAR(32);
-DECLARE c CURSOR (p_a VARCHAR(32), p_b VARCHAR(32)) FOR
-SELECT p_a, p_b FROM DUAL
-UNION
-SELECT p_b, p_a FROM DUAL;
-OPEN c((SELECT 'aaa'),(SELECT 'bbb'));
-FETCH c INTO v_a, v_b;
-SELECT v_a, v_b;
-FETCH c INTO v_a, v_b;
-SELECT v_a, v_b;
-CLOSE c;
-END;
-$$
-CALL p1();
-v_a v_b
-aaa bbb
-v_a v_b
-bbb aaa
-DROP PROCEDURE p1;
-#
-# Two parameters in SELECT list + two parameters in WHERE + subselects
-#
-CREATE PROCEDURE p1(a_a VARCHAR(32), a_b VARCHAR(32))
-BEGIN
-DECLARE done INT DEFAULT 0;
-DECLARE v_a VARCHAR(32);
-DECLARE v_b VARCHAR(32);
-DECLARE c CURSOR (value_a VARCHAR(32), value_b VARCHAR(32),
-pattern_a VARCHAR(32), pattern_b VARCHAR(32)) FOR
-SELECT value_a, value_b FROM DUAL WHERE value_a LIKE pattern_a
-UNION
-SELECT value_b, value_a FROM DUAL WHERE value_b LIKE pattern_b;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN c((SELECT 'aaa'),(SELECT 'bbb'),(SELECT a_a),(SELECT a_b));
-read_loop: LOOP
-FETCH c INTO v_a, v_b;
-IF done THEN
-LEAVE read_loop;
-END IF;
-SELECT v_a, v_b;
-END LOOP;
-CLOSE c;
-END;
-$$
-CALL p1('%','%');
-v_a v_b
-aaa bbb
-v_a v_b
-bbb aaa
-CALL p1('aaa','xxx');
-v_a v_b
-aaa bbb
-CALL p1('xxx','bbb');
-v_a v_b
-bbb aaa
-CALL p1('xxx','xxx');
-DROP PROCEDURE p1;
-#
-# Parameters in SELECT list + stored function
-#
-CREATE FUNCTION f1 (a VARCHAR(32)) RETURNS VARCHAR(32)
-BEGIN
-RETURN CONCAT(a,'y');
-END;
-$$
-CREATE PROCEDURE p1(a_a VARCHAR(32))
-BEGIN
-DECLARE done INT DEFAULT 0;
-DECLARE v_a VARCHAR(10);
-DECLARE v_b VARCHAR(10);
-DECLARE c CURSOR (p_sel_a VARCHAR(32), p_cmp_a VARCHAR(32)) FOR
-SELECT p_sel_a, p_cmp_a FROM DUAL;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN c(f1(a_a), f1(a_a));
-read_loop: LOOP
-FETCH c INTO v_a, v_b;
-IF done THEN
-LEAVE read_loop;
-END IF;
-SELECT v_a, v_b;
-END LOOP;
-CLOSE c;
-END;
-$$
-CALL p1('x');
-v_a v_b
-xy xy
-CALL p1(f1(COALESCE(NULL, f1('x'))));
-v_a v_b
-xyyy xyyy
-DROP PROCEDURE p1;
-DROP FUNCTION f1;
-#
-# One parameter in WHERE clause
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE TABLE t2 (a INT, b VARCHAR(10));
-INSERT INTO t1 VALUES (1,'11');
-INSERT INTO t1 VALUES (1,'12');
-INSERT INTO t1 VALUES (2,'21');
-INSERT INTO t1 VALUES (2,'22');
-INSERT INTO t1 VALUES (3,'31');
-INSERT INTO t1 VALUES (3,'32');
-CREATE PROCEDURE p1(a_a INT)
-BEGIN
-DECLARE done INT DEFAULT 0;
-DECLARE v_a INT;
-DECLARE v_b VARCHAR(10);
-DECLARE c CURSOR (p_a INT) FOR SELECT a,b FROM t1 WHERE a=p_a;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN c(a_a);
-read_loop: LOOP
-FETCH c INTO v_a, v_b;
-IF done THEN
-LEAVE read_loop;
-END IF;
-INSERT INTO t2 VALUES (v_a,v_b);
-END LOOP;
-CLOSE c;
-END;
-$$
-CALL p1(1);
-SELECT * FROM t2;
-a b
-1 11
-1 12
-DROP TABLE t1;
-DROP TABLE t2;
-DROP PROCEDURE p1;
-#
-# Two parameters in WHERE clause
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE TABLE t2 (a INT, b VARCHAR(10));
-INSERT INTO t1 VALUES (1,'11');
-INSERT INTO t1 VALUES (1,'12');
-INSERT INTO t1 VALUES (2,'21');
-INSERT INTO t1 VALUES (2,'22');
-INSERT INTO t1 VALUES (3,'31');
-INSERT INTO t1 VALUES (3,'32');
-CREATE PROCEDURE p1(a_a INT, a_b VARCHAR(32))
-BEGIN
-DECLARE done INT DEFAULT 0;
-DECLARE v_a INT;
-DECLARE v_b VARCHAR(10);
-DECLARE c CURSOR (p_a INT, p_b VARCHAR(32)) FOR SELECT a,b FROM t1 WHERE a=p_a AND b=p_b;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN c(a_a, a_b);
-read_loop: LOOP
-FETCH c INTO v_a, v_b;
-IF done THEN
-LEAVE read_loop;
-END IF;
-INSERT INTO t2 VALUES (v_a,v_b);
-END LOOP;
-CLOSE c;
-END;
-$$
-CALL p1(1,'11');
-SELECT * FROM t2;
-a b
-1 11
-DROP TABLE t1;
-DROP TABLE t2;
-DROP PROCEDURE p1;
-#
-# Parameters in WHERE and HAVING clauses
-#
-CREATE TABLE t1 (name VARCHAR(10), value INT);
-INSERT INTO t1 VALUES ('but',1);
-INSERT INTO t1 VALUES ('but',1);
-INSERT INTO t1 VALUES ('but',1);
-INSERT INTO t1 VALUES ('bin',1);
-INSERT INTO t1 VALUES ('bin',1);
-INSERT INTO t1 VALUES ('bot',1);
-CREATE PROCEDURE p1 (arg_name_limit VARCHAR(32), arg_total_limit INT)
-BEGIN
-DECLARE i INT DEFAULT 0;
-DECLARE v_name VARCHAR(10);
-DECLARE v_total INT;
--- +0 is needed to work around the bug MDEV-11081
-DECLARE c CURSOR(p_v INT) FOR
-SELECT name, SUM(value + p_v) + 0 AS total FROM t1
-WHERE name LIKE arg_name_limit
-GROUP BY name HAVING total>=arg_total_limit;
-WHILE i < 2 DO
-BEGIN
-DECLARE done INT DEFAULT 0;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-OPEN c(i);
-read_loop: LOOP
-FETCH c INTO v_name, v_total;
-IF done THEN
-LEAVE read_loop;
-END IF;
-SELECT v_name, v_total;
-END LOOP;
-CLOSE c;
-SET i= i + 1;
-END;
-END WHILE;
-END;
-$$
-CALL p1('%', 2);
-v_name v_total
-bin 2
-v_name v_total
-but 3
-v_name v_total
-bin 4
-v_name v_total
-bot 2
-v_name v_total
-but 6
-CALL p1('b_t', 0);
-v_name v_total
-bot 1
-v_name v_total
-but 3
-v_name v_total
-bot 2
-v_name v_total
-but 6
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# One parameter in LIMIT clause
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-INSERT INTO t1 VALUES (1,'b1');
-INSERT INTO t1 VALUES (2,'b2');
-INSERT INTO t1 VALUES (3,'b3');
-INSERT INTO t1 VALUES (4,'b4');
-INSERT INTO t1 VALUES (5,'b5');
-INSERT INTO t1 VALUES (6,'b6');
-CREATE PROCEDURE p1(a_a INT)
-BEGIN
-DECLARE done INT DEFAULT 0;
-DECLARE v_a INT;
-DECLARE v_b VARCHAR(10);
-DECLARE c CURSOR (p_a INT) FOR SELECT a,b FROM t1 ORDER BY a LIMIT p_a;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=TRUE;
-CREATE TABLE t2 (a INT, b VARCHAR(10));
-OPEN c(a_a);
-read_loop: LOOP
-FETCH c INTO v_a, v_b;
-IF done THEN
-LEAVE read_loop;
-END IF;
-INSERT INTO t2 VALUES (v_a,v_b);
-END LOOP;
-CLOSE c;
-SELECT * FROM t2;
-DROP TABLE t2;
-END;
-$$
-CALL p1(1);
-a b
-1 b1
-CALL p1(3);
-a b
-1 b1
-2 b2
-3 b3
-CALL p1(6);
-a b
-1 b1
-2 b2
-3 b3
-4 b4
-5 b5
-6 b6
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# End of MDEV-12457 Cursors with parameters
-#
-#
-# MDEV-14415 Add Oracle-style FOR loop to sql_mode=DEFAULT
-#
-# Explicit cursor
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-INSERT INTO t1 VALUES (1,'b1'), (2,'b2'), (3,'b3');
-BEGIN NOT ATOMIC
-DECLARE cur CURSOR FOR SELECT * FROM t1;
-FOR rec IN cur
-DO
-SELECT rec.a AS a, rec.b AS b;
-END FOR;
-END;
-$$
-a b
-1 b1
-a b
-2 b2
-a b
-3 b3
-DROP TABLE t1;
-# Explicit cursor with parameters
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-INSERT INTO t1 VALUES (1,'b1'), (2,'b2'), (3,'b3');
-BEGIN NOT ATOMIC
-DECLARE cur CURSOR(pa INT) FOR SELECT * FROM t1 WHERE a>=pa;
-FOR rec IN cur(2)
-DO
-SELECT rec.a AS a, rec.b AS b;
-END FOR;
-END;
-$$
-a b
-2 b2
-a b
-3 b3
-DROP TABLE t1;
-# Explicit cursor + label
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-INSERT INTO t1 VALUES ('1','b1'), ('2','b2');
-BEGIN NOT ATOMIC
-DECLARE cur CURSOR FOR SELECT * FROM t1;
-forrec:
-FOR rec IN cur
-DO
-SELECT rec.a AS a, rec.b AS b;
-IF rec.a = 2 THEN
-LEAVE forrec;
-END IF;
-END FOR forrec;
-END;
-$$
-a b
-1 b1
-a b
-2 b2
-DROP TABLE t1;
-# Explicit cursor + FETCH inside the loop body produce an error on "NOT FOUND"
-BEGIN NOT ATOMIC
-DECLARE x INT;
-DECLARE cur CURSOR FOR SELECT 1 AS x;
-FOR rec IN cur
-DO
-FETCH cur INTO x;
-END FOR;
-END;
-$$
-ERROR 02000: No data - zero rows fetched, selected, or processed
-# Explicit cursor + FETCH inside the loop body are normally handled by "HANDLER FOR NOT FOUND"
-BEGIN NOT ATOMIC
-DECLARE done INT DEFAULT 0;
-DECLARE cur CURSOR FOR SELECT 1 AS x, 'y1' AS y UNION
-SELECT 2,'y2' UNION
-SELECT 3,'y3';
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
-forrec:
-FOR rec IN cur
-DO
-SELECT CONCAT(rec.x, ' ', rec.y) AS 'Implicit FETCH';
-FETCH cur INTO rec;
-IF done THEN
-SELECT 'NO DATA' AS `Explicit FETCH`;
-LEAVE forrec;
-ELSE
-SELECT CONCAT(rec.x, ' ', rec.y) AS 'Explicit FETCH';
-END IF;
-END FOR;
-END;
-$$
-Implicit FETCH
-1 y1
-Explicit FETCH
-2 y2
-Implicit FETCH
-3 y3
-Explicit FETCH
-NO DATA
-# Implicit cursor
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-INSERT INTO t1 VALUES ('1','b1'), ('2','b2');
-BEGIN NOT ATOMIC
-FOR rec IN (SELECT * FROM t1)
-DO
-SELECT rec.a AS a, rec.b AS b;
-END FOR;
-END;
-$$
-a b
-1 b1
-a b
-2 b2
-DROP TABLE t1;
-# Implicit cursor + label
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-INSERT INTO t1 VALUES ('1','b1'), ('2','b2');
-BEGIN NOT ATOMIC
-forrec:
-FOR rec IN (SELECT * FROM t1)
-DO
-SELECT rec.a AS a, rec.b AS b;
-IF rec.a = 2 THEN
-LEAVE forrec;
-END IF;
-END FOR;
-END;
-$$
-a b
-1 b1
-a b
-2 b2
-DROP TABLE t1;
diff --git a/mysql-test/r/sp-destruct.result b/mysql-test/r/sp-destruct.result
deleted file mode 100644
index a5f96882a37..00000000000
--- a/mysql-test/r/sp-destruct.result
+++ /dev/null
@@ -1,230 +0,0 @@
-call mtr.add_suppression("Column count of mysql.proc is wrong. Expected 21, found 20. The table is probably corrupted");
-call mtr.add_suppression("Stored routine .test...bug14233_[123].: invalid value in column mysql.proc");
-flush table mysql.proc;
-use test;
-drop procedure if exists bug14233;
-drop function if exists bug14233;
-drop table if exists t1;
-drop view if exists v1;
-create procedure bug14233()
-set @x = 42;
-create function bug14233_f() returns int
-return 42;
-create table t1 (id int);
-create trigger t1_ai after insert on t1 for each row call bug14233();
-alter table mysql.proc drop security_type;
-call bug14233();
-ERROR HY000: Column count of mysql.proc is wrong. Expected 21, found 20. The table is probably corrupted
-create view v1 as select bug14233_f();
-ERROR HY000: Column count of mysql.proc is wrong. Expected 21, found 20. The table is probably corrupted
-insert into t1 values (0);
-ERROR HY000: Column count of mysql.proc is wrong. Expected 21, found 20. The table is probably corrupted
-show procedure status;
-ERROR HY000: Column count of mysql.proc is wrong. Expected 21, found 20. The table is probably corrupted
-flush table mysql.proc;
-call bug14233();
-ERROR HY000: Incorrect information in file: './mysql/proc.frm'
-create view v1 as select bug14233_f();
-ERROR HY000: Incorrect information in file: './mysql/proc.frm'
-insert into t1 values (0);
-ERROR HY000: Incorrect information in file: './mysql/proc.frm'
-flush table mysql.proc;
-call bug14233();
-ERROR 42S02: Table 'mysql.proc' doesn't exist
-create view v1 as select bug14233_f();
-ERROR 42S02: Table 'mysql.proc' doesn't exist
-insert into t1 values (0);
-ERROR 42S02: Table 'mysql.proc' doesn't exist
-flush table mysql.proc;
-flush privileges;
-delete from mysql.proc where name like 'bug14233%';
-insert into mysql.proc
-(
-db, name, type, specific_name, language, sql_data_access, is_deterministic,
-security_type, param_list, returns, body, definer, created, modified,
-sql_mode, comment, character_set_client, collation_connection, db_collation,
-body_utf8
-)
-values
-(
-'test', 'bug14233_1', 'FUNCTION', 'bug14233_1', 'SQL', 'READS_SQL_DATA', 'NO',
-'DEFINER', '', 'int(10)',
-'select count(*) from mysql.user',
-'root@localhost', NOW() , '0000-00-00 00:00:00', '', '',
-'', '', '',
-'select count(*) from mysql.user'
-),
-(
-'test', 'bug14233_2', 'FUNCTION', 'bug14233_2', 'SQL', 'READS_SQL_DATA', 'NO',
-'DEFINER', '', 'int(10)',
-'begin declare x int; select count(*) into x from mysql.user; end',
-'root@localhost', NOW() , '0000-00-00 00:00:00', '', '',
-'', '', '',
-'begin declare x int; select count(*) into x from mysql.user; end'
-),
-(
-'test', 'bug14233_3', 'PROCEDURE', 'bug14233_3', 'SQL', 'READS_SQL_DATA','NO',
-'DEFINER', '', '',
-'alksj wpsj sa ^#!@ ',
-'root@localhost', NOW() , '0000-00-00 00:00:00', '', '',
-'', '', '',
-'alksj wpsj sa ^#!@ '
-);
-select bug14233_1();
-ERROR HY000: Failed to load routine test.bug14233_1. The table mysql.proc is missing, corrupt, or contains bad data (internal code -6)
-create view v1 as select bug14233_1();
-ERROR HY000: Failed to load routine test.bug14233_1. The table mysql.proc is missing, corrupt, or contains bad data (internal code -6)
-select bug14233_2();
-ERROR HY000: Failed to load routine test.bug14233_2. The table mysql.proc is missing, corrupt, or contains bad data (internal code -6)
-create view v1 as select bug14233_2();
-ERROR HY000: Failed to load routine test.bug14233_2. The table mysql.proc is missing, corrupt, or contains bad data (internal code -6)
-call bug14233_3();
-ERROR HY000: Failed to load routine test.bug14233_3. The table mysql.proc is missing, corrupt, or contains bad data (internal code -6)
-drop trigger t1_ai;
-create trigger t1_ai after insert on t1 for each row call bug14233_3();
-insert into t1 values (0);
-ERROR HY000: Failed to load routine test.bug14233_3. The table mysql.proc is missing, corrupt, or contains bad data (internal code -6)
-drop trigger t1_ai;
-drop table t1;
-drop function bug14233_1;
-drop function bug14233_2;
-drop procedure bug14233_3;
-show procedure status where db=DATABASE();
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-show function status where db=DATABASE();
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-DROP TABLE IF EXISTS proc_backup;
-DROP PROCEDURE IF EXISTS p1;
-# Backup the proc table
-RENAME TABLE mysql.proc TO proc_backup;
-CREATE TABLE mysql.proc LIKE proc_backup;
-FLUSH TABLE mysql.proc;
-# Test with a valid table.
-CREATE PROCEDURE p1()
-SET @foo = 10;
-CALL p1();
-SHOW PROCEDURE STATUS;
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test p1 PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-# Modify a field of the table.
-ALTER TABLE mysql.proc MODIFY comment CHAR (32);
-CREATE PROCEDURE p2()
-SET @foo = 10;
-ERROR HY000: Cannot load from mysql.proc. The table is probably corrupted
-# Procedure loaded from the cache
-CALL p1();
-SHOW PROCEDURE STATUS;
-ERROR HY000: Cannot load from mysql.proc. The table is probably corrupted
-DROP TABLE mysql.proc;
-RENAME TABLE proc_backup TO mysql.proc;
-FLUSH TABLE mysql.proc;
-#
-# Bug#51376 Assert `! is_set()' failed in
-# Diagnostics_area::set_ok_status on DROP FUNCTION
-#
-DROP FUNCTION IF EXISTS f1;
-CREATE FUNCTION f1() RETURNS INT RETURN 1;
-# Backup the procs_priv table
-RENAME TABLE mysql.procs_priv TO procs_priv_backup;
-FLUSH TABLE mysql.procs_priv;
-DROP FUNCTION f1;
-SHOW WARNINGS;
-Level Code Message
-# Restore the procs_priv table
-RENAME TABLE procs_priv_backup TO mysql.procs_priv;
-FLUSH TABLE mysql.procs_priv;
-#
-# Bug #56137 "Assertion `thd->lock == 0' failed on upgrading from
-# 5.1.50 to 5.5.6".
-#
-drop database if exists mysqltest;
-# Backup mysql.proc.
-flush table mysql.proc;
-create database mysqltest;
-# Corrupt mysql.proc to make it unusable by current version of server.
-alter table mysql.proc drop column security_type;
-# The below statement should not cause assertion failure.
-drop database mysqltest;
-Warnings:
-Error 1805 Column count of mysql.proc is wrong. Expected 21, found 20. The table is probably corrupted
-# Restore mysql.proc.
-drop table mysql.proc;
-#
-# Bug#58414 mysql_upgrade fails on dump upgrade between 5.1.53 -> 5.5.8
-#
-DROP TABLE IF EXISTS proc_backup;
-DROP DATABASE IF EXISTS db1;
-# Backup the proc table
-RENAME TABLE mysql.proc TO proc_backup;
-CREATE TABLE mysql.proc LIKE proc_backup;
-CREATE DATABASE db1;
-CREATE PROCEDURE db1.p1() SET @foo = 10;
-# Modify a field of the table.
-ALTER TABLE mysql.proc MODIFY comment CHAR (32);
-DROP DATABASE db1;
-Warnings:
-Error 1728 Cannot load from mysql.proc. The table is probably corrupted
-# Restore mysql.proc
-DROP TABLE mysql.proc;
-RENAME TABLE proc_backup TO mysql.proc;
-create database mysqltest1;
-create procedure mysqltest1.foo() select "foo";
-update mysql.proc set name='' where db='mysqltest1';
-drop database mysqltest1;
-#
-# MDEV-15444 Querying I_S.PARAMETERS can crash with a corrupted mysql.proc
-#
-CREATE OR REPLACE FUNCTION f1 (a INT) RETURNS INT RETURN 10;
-CREATE OR REPLACE FUNCTION f2 (a INT) RETURNS INT RETURN 10;
-SELECT
-@type0:=COLUMN_TYPE AS t0,
-@type1:=REPLACE(COLUMN_TYPE,')',',''XXX'')') AS t1
-FROM INFORMATION_SCHEMA.COLUMNS
-WHERE table_schema='mysql' AND table_name='proc' AND column_name='type';
-t0 enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY')
-t1 enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY','XXX')
-EXECUTE IMMEDIATE CONCAT('ALTER TABLE mysql.proc MODIFY type ', @type1);
-SHOW COLUMNS IN mysql.proc LIKE 'type';
-Field Type Null Key Default Extra
-type enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY','XXX') NO PRI NULL
-UPDATE mysql.proc SET type='XXX' WHERE name='f1' AND db='test';
-SELECT * FROM INFORMATION_SCHEMA.PARAMETERS WHERE SPECIFIC_SCHEMA='test';
-SPECIFIC_CATALOG def
-SPECIFIC_SCHEMA test
-SPECIFIC_NAME f2
-ORDINAL_POSITION 0
-PARAMETER_MODE NULL
-PARAMETER_NAME NULL
-DATA_TYPE int
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION 10
-NUMERIC_SCALE 0
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-DTD_IDENTIFIER int(11)
-ROUTINE_TYPE FUNCTION
-SPECIFIC_CATALOG def
-SPECIFIC_SCHEMA test
-SPECIFIC_NAME f2
-ORDINAL_POSITION 1
-PARAMETER_MODE IN
-PARAMETER_NAME a
-DATA_TYPE int
-CHARACTER_MAXIMUM_LENGTH NULL
-CHARACTER_OCTET_LENGTH NULL
-NUMERIC_PRECISION 10
-NUMERIC_SCALE 0
-DATETIME_PRECISION NULL
-CHARACTER_SET_NAME NULL
-COLLATION_NAME NULL
-DTD_IDENTIFIER int(11)
-ROUTINE_TYPE FUNCTION
-UPDATE mysql.proc SET type='FUNCTION' WHERE name='f1' AND db='test';
-EXECUTE IMMEDIATE CONCAT('ALTER TABLE mysql.proc MODIFY type ', @type0);
-SHOW COLUMNS IN mysql.proc LIKE 'type';
-Field Type Null Key Default Extra
-type enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY') NO PRI NULL
-DROP FUNCTION f1;
-DROP FUNCTION f2;
diff --git a/mysql-test/r/sp-dynamic.result b/mysql-test/r/sp-dynamic.result
deleted file mode 100644
index 9fa3bea1108..00000000000
--- a/mysql-test/r/sp-dynamic.result
+++ /dev/null
@@ -1,385 +0,0 @@
-drop procedure if exists p1|
-drop procedure if exists p2|
-create procedure p1()
-begin
-prepare stmt from "select 1";
-execute stmt;
-execute stmt;
-execute stmt;
-deallocate prepare stmt;
-end|
-call p1()|
-1
-1
-1
-1
-1
-1
-call p1()|
-1
-1
-1
-1
-1
-1
-call p1()|
-1
-1
-1
-1
-1
-1
-drop procedure p1|
-create procedure p1()
-begin
-execute stmt;
-end|
-prepare stmt from "call p1()"|
-set @SAVE_SP_RECURSION_LEVELS=@@max_sp_recursion_depth|
-set @@max_sp_recursion_depth=100|
-execute stmt|
-ERROR HY000: The prepared statement contains a stored routine call that refers to that same statement. It's not allowed to execute a prepared statement in such a recursive manner
-execute stmt|
-ERROR HY000: The prepared statement contains a stored routine call that refers to that same statement. It's not allowed to execute a prepared statement in such a recursive manner
-execute stmt|
-ERROR HY000: The prepared statement contains a stored routine call that refers to that same statement. It's not allowed to execute a prepared statement in such a recursive manner
-call p1()|
-ERROR HY000: The prepared statement contains a stored routine call that refers to that same statement. It's not allowed to execute a prepared statement in such a recursive manner
-call p1()|
-ERROR HY000: The prepared statement contains a stored routine call that refers to that same statement. It's not allowed to execute a prepared statement in such a recursive manner
-call p1()|
-ERROR HY000: The prepared statement contains a stored routine call that refers to that same statement. It's not allowed to execute a prepared statement in such a recursive manner
-set @@max_sp_recursion_depth=@SAVE_SP_RECURSION_LEVELS|
-call p1()|
-ERROR HY000: Recursive limit 0 (as set by the max_sp_recursion_depth variable) was exceeded for routine p1
-call p1()|
-ERROR HY000: Recursive limit 0 (as set by the max_sp_recursion_depth variable) was exceeded for routine p1
-call p1()|
-ERROR HY000: Recursive limit 0 (as set by the max_sp_recursion_depth variable) was exceeded for routine p1
-drop procedure p1|
-create procedure p1()
-begin
-prepare stmt from "create procedure p2() begin select 1; end";
-execute stmt;
-deallocate prepare stmt;
-end|
-call p1()|
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-call p1()|
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-drop procedure p1|
-create procedure p1()
-begin
-prepare stmt from "drop procedure p2";
-execute stmt;
-deallocate prepare stmt;
-end|
-call p1()|
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-call p1()|
-ERROR HY000: This command is not supported in the prepared statement protocol yet
-drop procedure p1|
-create procedure p1()
-begin
-prepare stmt_drop from "drop table if exists t1";
-execute stmt_drop;
-prepare stmt from "create table t1 (a int)";
-execute stmt;
-insert into t1 (a) values (1);
-select * from t1;
-prepare stmt_alter from "alter table t1 add (b int)";
-execute stmt_alter;
-insert into t1 (a,b) values (2,1);
-deallocate prepare stmt_alter;
-deallocate prepare stmt;
-deallocate prepare stmt_drop;
-end|
-call p1()|
-a
-1
-call p1()|
-a
-1
-drop procedure p1|
-create procedure p1()
-begin
-set @tab_name=concat("tab_", replace(curdate(), '-', '_'));
-set @drop_sql=concat("drop table if exists ", @tab_name);
-set @create_sql=concat("create table ", @tab_name, " (a int)");
-set @insert_sql=concat("insert into ", @tab_name, " values (1), (2), (3)");
-set @select_sql=concat("select * from ", @tab_name);
-select @tab_name;
-select @drop_sql;
-select @create_sql;
-select @insert_sql;
-select @select_sql;
-prepare stmt_drop from @drop_sql;
-execute stmt_drop;
-prepare stmt from @create_sql;
-execute stmt;
-prepare stmt from @insert_sql;
-execute stmt;
-prepare stmt from @select_sql;
-execute stmt;
-execute stmt_drop;
-deallocate prepare stmt;
-deallocate prepare stmt_drop;
-end|
-call p1()|
-call p1()|
-drop procedure p1|
-create procedure p1()
-begin
-prepare stmt_drop from "drop table if exists t1";
-execute stmt_drop;
-prepare stmt from "create table t1 (a int)";
-execute stmt;
-deallocate prepare stmt;
-deallocate prepare stmt_drop;
-end|
-drop function if exists f1|
-create function f1(a int) returns int
-begin
-call p1();
-return 1;
-end|
-select f1(0)|
-ERROR 0A000: Dynamic SQL is not allowed in stored function or trigger
-select f1(f1(0))|
-ERROR 0A000: Dynamic SQL is not allowed in stored function or trigger
-select f1(f1(f1(0)))|
-ERROR 0A000: Dynamic SQL is not allowed in stored function or trigger
-drop function f1|
-drop procedure p1|
-create procedure p1()
-begin
-drop table if exists t1;
-create table t1 (id integer not null primary key,
-name varchar(20) not null);
-insert into t1 (id, name) values (1, 'aaa'), (2, 'bbb'), (3, 'ccc');
-prepare stmt from "select name from t1";
-execute stmt;
-select name from t1;
-execute stmt;
-prepare stmt from
-"select name from t1 where name=(select name from t1 where id=2)";
-execute stmt;
-select name from t1 where name=(select name from t1 where id=2);
-execute stmt;
-end|
-call p1()|
-name
-aaa
-bbb
-ccc
-name
-aaa
-bbb
-ccc
-name
-aaa
-bbb
-ccc
-name
-bbb
-name
-bbb
-name
-bbb
-call p1()|
-name
-aaa
-bbb
-ccc
-name
-aaa
-bbb
-ccc
-name
-aaa
-bbb
-ccc
-name
-bbb
-name
-bbb
-name
-bbb
-drop procedure p1|
-prepare stmt from "select * from t1"|
-create procedure p1()
-begin
-execute stmt;
-deallocate prepare stmt;
-end|
-call p1()|
-id name
-1 aaa
-2 bbb
-3 ccc
-call p1()|
-ERROR HY000: Unknown prepared statement handler (stmt) given to EXECUTE
-drop procedure p1|
-set sql_mode= ''|
-create procedure p1()
-begin
-declare a char(10);
-set a="sp-variable";
-set @a="mysql-variable";
-prepare stmt from "select 'dynamic sql:', @a, a";
-execute stmt;
-end|
-call p1()|
-ERROR 42S22: Unknown column 'a' in 'field list'
-call p1()|
-ERROR 42S22: Unknown column 'a' in 'field list'
-set sql_mode= DEFAULT|
-drop procedure p1|
-create procedure p1()
-begin
-prepare stmt from 'select ? as a';
-execute stmt using @a;
-end|
-set @a=1|
-call p1()|
-a
-1
-call p1()|
-a
-1
-drop procedure p1|
-drop table if exists t1|
-drop table if exists t2|
-Warnings:
-Note 1051 Unknown table 'test.t2'
-create table t1 (id integer primary key auto_increment,
-stmt_text char(35), status varchar(20))|
-insert into t1 (stmt_text) values
-("select 1"), ("flush tables"), ("handler t1 open as ha"),
-("analyze table t1"), ("check table t1"), ("checksum table t1"),
-("check table t1"), ("optimize table t1"), ("repair table t1"),
-("describe extended select * from t1"),
-("help help"), ("show databases"), ("show tables"),
-("show table status"), ("show open tables"), ("show storage engines"),
-("insert into t1 (id) values (1)"), ("update t1 set status=''"),
-("delete from t1"), ("truncate t1"), ("call p1()"), ("foo bar"),
-("create view v1 as select 1"), ("alter view v1 as select 2"),
-("drop view v1"),("create table t2 (a int)"),("alter table t2 add (b int)"),
-("drop table t2")|
-create procedure p1()
-begin
-declare v_stmt_text varchar(255);
-declare v_id integer;
-declare done int default 0;
-declare c cursor for select id, stmt_text from t1;
-declare continue handler for 1295 -- ER_UNSUPPORTED_PS
-set @status='not supported';
-declare continue handler for 1064 -- ER_SYNTAX_ERROR
-set @status='syntax error';
-declare continue handler for sqlstate '02000' set done = 1;
-prepare update_stmt from "update t1 set status=? where id=?";
-open c;
-repeat
-if not done then
-fetch c into v_id, v_stmt_text;
-set @id=v_id, @stmt_text=v_stmt_text;
-set @status="supported";
-prepare stmt from @stmt_text;
-execute update_stmt using @status, @id;
-end if;
-until done end repeat;
-deallocate prepare update_stmt;
-end|
-call p1()|
-select * from t1|
-id stmt_text status
-1 select 1 supported
-2 flush tables supported
-3 handler t1 open as ha not supported
-4 analyze table t1 supported
-5 check table t1 not supported
-6 checksum table t1 supported
-7 check table t1 not supported
-8 optimize table t1 supported
-9 repair table t1 supported
-10 describe extended select * from t1 supported
-11 help help not supported
-12 show databases supported
-13 show tables supported
-14 show table status supported
-15 show open tables supported
-16 show storage engines supported
-17 insert into t1 (id) values (1) supported
-18 update t1 set status='' supported
-19 delete from t1 supported
-20 truncate t1 supported
-21 call p1() supported
-22 foo bar syntax error
-23 create view v1 as select 1 supported
-24 alter view v1 as select 2 not supported
-25 drop view v1 supported
-26 create table t2 (a int) supported
-27 alter table t2 add (b int) supported
-28 drop table t2 supported
-drop procedure p1|
-drop table t1|
-prepare stmt from 'select 1'|
-create procedure p1() execute stmt|
-call p1()|
-1
-1
-call p1()|
-1
-1
-drop procedure p1|
-create function f1() returns int
-begin
-deallocate prepare stmt;
-return 1;
-end|
-ERROR 0A000: Dynamic SQL is not allowed in stored function or trigger
-create procedure p1()
-begin
-prepare stmt from 'select 1 A';
-execute stmt;
-end|
-prepare stmt from 'call p1()'|
-execute stmt|
-ERROR HY000: The prepared statement contains a stored routine call that refers to that same statement. It's not allowed to execute a prepared statement in such a recursive manner
-execute stmt|
-ERROR HY000: The prepared statement contains a stored routine call that refers to that same statement. It's not allowed to execute a prepared statement in such a recursive manner
-drop procedure p1|
-drop table if exists t1, t2|
-create procedure p1 (a int) language sql deterministic
-begin
-declare rsql varchar(100);
-drop table if exists t1, t2;
-set @rsql= "create table t1 (a int)";
-select @rsql;
-prepare pst from @rsql;
-execute pst;
-set @rsql= null;
-set @rsql= "create table t2 (a int)";
-select @rsql;
-prepare pst from @rsql;
-execute pst;
-drop table if exists t1, t2;
-end|
-set @a:=0|
-call p1(@a)|
-@rsql
-create table t1 (a int)
-@rsql
-create table t2 (a int)
-select @a|
-@a
-0
-call p1(@a)|
-@rsql
-create table t1 (a int)
-@rsql
-create table t2 (a int)
-select @a|
-@a
-0
-drop procedure if exists p1|
diff --git a/mysql-test/r/sp-error.result b/mysql-test/r/sp-error.result
deleted file mode 100644
index fc43bdf17e9..00000000000
--- a/mysql-test/r/sp-error.result
+++ /dev/null
@@ -1,2876 +0,0 @@
-drop table if exists t1, t2;
-SELECT * FROM mysql.proc INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/proc.txt';
-delete from mysql.proc;
-create procedure syntaxerror(t int)|
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-create procedure syntaxerror(t int)|
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-create procedure syntaxerror(t int)|
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-drop table if exists t3|
-create table t3 ( x int )|
-insert into t3 values (2), (3)|
-create procedure bad_into(out param int)
-select x from t3 into param|
-call bad_into(@x)|
-ERROR 42000: Result consisted of more than one row
-drop procedure bad_into|
-drop table t3|
-create procedure proc1()
-set @x = 42|
-create function func1() returns int
-return 42|
-create procedure foo()
-create procedure bar() set @x=3|
-ERROR 2F003: Can't create a PROCEDURE from within another stored routine
-create procedure foo()
-create function bar() returns double return 2.3|
-ERROR 2F003: Can't create a FUNCTION from within another stored routine
-create procedure proc1()
-set @x = 42|
-ERROR 42000: PROCEDURE proc1 already exists
-create function func1() returns int
-return 42|
-ERROR 42000: FUNCTION func1 already exists
-drop procedure proc1|
-drop function func1|
-alter procedure foo|
-ERROR 42000: PROCEDURE test.foo does not exist
-alter function foo|
-ERROR 42000: FUNCTION test.foo does not exist
-drop procedure foo|
-ERROR 42000: PROCEDURE test.foo does not exist
-drop function foo|
-ERROR 42000: FUNCTION test.foo does not exist
-call foo()|
-ERROR 42000: PROCEDURE test.foo does not exist
-drop procedure if exists foo|
-Warnings:
-Note 1305 PROCEDURE test.foo does not exist
-show create procedure foo|
-ERROR 42000: PROCEDURE foo does not exist
-show create function foo|
-ERROR 42000: FUNCTION foo does not exist
-create procedure foo()
-foo: loop
-leave bar;
-end loop|
-ERROR 42000: LEAVE with no matching label: bar
-create procedure foo()
-foo: loop
-iterate bar;
-end loop|
-ERROR 42000: ITERATE with no matching label: bar
-create procedure foo()
-foo: begin
-iterate foo;
-end|
-ERROR 42000: ITERATE with no matching label: foo
-create procedure foo()
-foo: loop
-foo: loop
-set @x=2;
-end loop foo;
-end loop foo|
-ERROR 42000: Redefining label foo
-create procedure foo()
-foo: loop
-set @x=2;
-end loop bar|
-ERROR 42000: End-label bar without match
-create procedure foo()
-return 42|
-ERROR 42000: RETURN is only allowed in a FUNCTION
-create procedure p(x int)
-set @x = x|
-create function f(x int) returns int
-return x+42|
-call p()|
-ERROR 42000: Incorrect number of arguments for PROCEDURE test.p; expected 1, got 0
-call p(1, 2)|
-ERROR 42000: Incorrect number of arguments for PROCEDURE test.p; expected 1, got 2
-select f()|
-ERROR 42000: Incorrect number of arguments for FUNCTION test.f; expected 1, got 0
-select f(1, 2)|
-ERROR 42000: Incorrect number of arguments for FUNCTION test.f; expected 1, got 2
-drop procedure p|
-drop function f|
-create procedure p(val int, out res int)
-begin
-declare x int default 0;
-declare continue handler for foo set x = 1;
-insert into test.t1 values (val);
-if (x) then
-set res = 0;
-else
-set res = 1;
-end if;
-end|
-ERROR 42000: Undefined CONDITION: foo
-create procedure p(val int, out res int)
-begin
-declare x int default 0;
-declare foo condition for 1146;
-declare continue handler for bar set x = 1;
-insert into test.t1 values (val);
-if (x) then
-set res = 0;
-else
-set res = 1;
-end if;
-end|
-ERROR 42000: Undefined CONDITION: bar
-create function f(val int) returns int
-begin
-declare x int;
-set x = val+3;
-end|
-ERROR 42000: No RETURN found in FUNCTION test.f
-create function f(val int) returns int
-begin
-declare x int;
-set x = val+3;
-if x < 4 then
-return x;
-end if;
-end|
-select f(10)|
-ERROR 2F005: FUNCTION f ended without RETURN
-drop function f|
-create procedure p()
-begin
-declare c cursor for insert into test.t1 values ("foo", 42);
-open c;
-close c;
-end|
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'insert into test.t1 values ("foo", 42);
-open c;
-close c;
-end' at line 3
-create procedure p()
-begin
-declare x int;
-declare c cursor for select * into x from test.t limit 1;
-open c;
-close c;
-end|
-ERROR 42000: Cursor SELECT must not have INTO
-create procedure p()
-begin
-declare c cursor for select * from test.t;
-open cc;
-close c;
-end|
-ERROR 42000: Undefined CURSOR: cc
-drop table if exists t1|
-create table t1 (val int)|
-create procedure p()
-begin
-declare c cursor for select * from test.t1;
-open c;
-open c;
-close c;
-end|
-call p()|
-ERROR 24000: Cursor is already open
-drop procedure p|
-create procedure p()
-begin
-declare c cursor for select * from test.t1;
-open c;
-close c;
-close c;
-end|
-call p()|
-ERROR 24000: Cursor is not open
-drop procedure p|
-alter procedure bar3 sql security invoker|
-ERROR 42000: PROCEDURE test.bar3 does not exist
-drop table t1|
-drop table if exists t1|
-create table t1 (val int, x float)|
-insert into t1 values (42, 3.1), (19, 1.2)|
-create procedure p()
-begin
-declare x int;
-declare c cursor for select * from t1;
-open c;
-fetch c into x, y;
-close c;
-end|
-ERROR 42000: Undeclared variable: y
-create procedure p()
-begin
-declare x int;
-declare c cursor for select * from t1;
-open c;
-fetch c into x;
-close c;
-end|
-call p()|
-ERROR HY000: Incorrect number of FETCH variables
-drop procedure p|
-create procedure p()
-begin
-declare x int;
-declare y float;
-declare z int;
-declare c cursor for select * from t1;
-open c;
-fetch c into x, y, z;
-close c;
-end|
-call p()|
-ERROR HY000: Incorrect number of FETCH variables
-drop procedure p|
-create procedure p(in x int, x char(10))
-begin
-end|
-ERROR 42000: Duplicate parameter: x
-create function p(x int, x char(10))
-begin
-end|
-ERROR 42000: Duplicate parameter: x
-create procedure p()
-begin
-declare x float;
-declare x int;
-end|
-ERROR 42000: Duplicate variable: x
-create procedure p()
-begin
-declare c condition for 1064;
-declare c condition for 1065;
-end|
-ERROR 42000: Duplicate condition: c
-create procedure p()
-begin
-declare c cursor for select * from t1;
-declare c cursor for select field from t1;
-end|
-ERROR 42000: Duplicate cursor: c
-create procedure u()
-use sptmp|
-ERROR 0A000: USE is not allowed in stored procedures
-create procedure p()
-begin
-declare c cursor for select * from t1;
-declare x int;
-end|
-ERROR 42000: Variable or condition declaration after cursor or handler declaration
-create procedure p()
-begin
-declare x int;
-declare continue handler for sqlstate '42S99' set x = 1;
-declare foo condition for sqlstate '42S99';
-end|
-ERROR 42000: Variable or condition declaration after cursor or handler declaration
-create procedure p()
-begin
-declare x int;
-declare continue handler for sqlstate '42S99' set x = 1;
-declare c cursor for select * from t1;
-end|
-ERROR 42000: Cursor declaration after handler declaration
-drop procedure if exists p|
-create procedure p(in x int, inout y int, out z int)
-begin
-set y = x+y;
-set z = x+y;
-end|
-set @tmp_x = 42|
-set @tmp_y = 3|
-set @tmp_z = 0|
-call p(@tmp_x, @tmp_y, @tmp_z)|
-select @tmp_x, @tmp_y, @tmp_z|
-@tmp_x @tmp_y @tmp_z
-42 45 87
-call p(42, 43, @tmp_z)|
-ERROR 42000: OUT or INOUT argument 2 for routine test.p is not a variable or NEW pseudo-variable in BEFORE trigger
-call p(42, @tmp_y, 43)|
-ERROR 42000: OUT or INOUT argument 3 for routine test.p is not a variable or NEW pseudo-variable in BEFORE trigger
-drop procedure p|
-create procedure p() begin end|
-lock table t1 read|
-call p()|
-unlock tables|
-drop procedure p|
-lock tables t1 read, mysql.proc write|
-ERROR HY000: You can't combine write-locking of system tables with other tables or lock types
-lock tables mysql.proc write, mysql.user write|
-ERROR HY000: You can't combine write-locking of system tables with other tables or lock types
-lock tables t1 read, mysql.proc read|
-unlock tables|
-lock tables mysql.proc write|
-unlock tables|
-drop function if exists f1|
-create function f1(i int) returns int
-begin
-insert into t1 (val) values (i);
-return 0;
-end|
-select val, f1(val) from t1|
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-select val, f1(val) from t1 as tab|
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-select * from t1|
-val x
-42 3.1
-19 1.2
-update t1 set val= f1(val)|
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-select * from t1|
-val x
-42 3.1
-19 1.2
-select f1(17)|
-f1(17)
-0
-select * from t1|
-val x
-42 3.1
-19 1.2
-17 NULL
-delete from t1 where val= 17|
-drop function f1|
-create procedure bug1965()
-begin
-declare c cursor for select val from t1 order by valname;
-open c;
-close c;
-end|
-call bug1965()|
-ERROR 42S22: Unknown column 'valname' in 'order clause'
-drop procedure bug1965|
-select 1 into a|
-ERROR 42000: Undeclared variable: a
-drop table if exists t3|
-create table t3 (column_1_0 int)|
-create procedure bug1653()
-update t3 set column_1 = 0|
-call bug1653()|
-ERROR 42S22: Unknown column 'column_1' in 'field list'
-drop table t3|
-create table t3 (column_1 int)|
-call bug1653()|
-drop procedure bug1653|
-drop table t3|
-create procedure bug2259()
-begin
-declare v1 int;
-declare c1 cursor for select s1 from t1;
-fetch c1 into v1;
-end|
-call bug2259()|
-ERROR 24000: Cursor is not open
-drop procedure bug2259|
-create procedure bug2272()
-begin
-declare v int;
-update t1 set v = 42;
-end|
-insert into t1 values (666, 51.3)|
-call bug2272()|
-ERROR 42S22: Unknown column 'v' in 'field list'
-truncate table t1|
-drop procedure bug2272|
-create procedure bug2329_1()
-begin
-declare v int;
-insert into t1 (v) values (5);
-end|
-create procedure bug2329_2()
-begin
-declare v int;
-replace t1 set v = 5;
-end|
-call bug2329_1()|
-ERROR 42S22: Unknown column 'v' in 'field list'
-call bug2329_2()|
-ERROR 42S22: Unknown column 'v' in 'field list'
-drop procedure bug2329_1|
-drop procedure bug2329_2|
-create function bug3287() returns int
-begin
-declare v int default null;
-case
-when v is not null then return 1;
-end case;
-return 2;
-end|
-select bug3287()|
-ERROR 20000: Case not found for CASE statement
-drop function bug3287|
-create procedure bug3287(x int)
-case x
-when 0 then
-insert into test.t1 values (x, 0.1);
-when 1 then
-insert into test.t1 values (x, 1.1);
-end case|
-call bug3287(2)|
-ERROR 20000: Case not found for CASE statement
-drop procedure bug3287|
-drop table if exists t3|
-create table t3 (s1 int, primary key (s1))|
-insert into t3 values (5),(6)|
-create procedure bug3279(out y int)
-begin
-declare x int default 0;
-begin
-declare exit handler for sqlexception set x = x+1;
-insert into t3 values (5);
-end;
-if x < 2 then
-set x = x+1;
-insert into t3 values (6);
-end if;
-set y = x;
-end|
-set @x = 0|
-call bug3279(@x)|
-ERROR 23000: Duplicate entry '6' for key 'PRIMARY'
-select @x|
-@x
-0
-drop procedure bug3279|
-drop table t3|
-create procedure nodb.bug3339() begin end|
-ERROR 42000: Unknown database 'nodb'
-create procedure bug2653_1(a int, out b int)
-set b = aa|
-create procedure bug2653_2(a int, out b int)
-begin
-if aa < 0 then
-set b = - a;
-else
-set b = a;
-end if;
-end|
-call bug2653_1(1, @b)|
-ERROR 42S22: Unknown column 'aa' in 'field list'
-call bug2653_2(2, @b)|
-ERROR 42S22: Unknown column 'aa' in 'field list'
-drop procedure bug2653_1|
-drop procedure bug2653_2|
-create procedure bug4344() drop procedure bug4344|
-ERROR HY000: Can't drop or alter a PROCEDURE from within another stored routine
-create procedure bug4344() drop function bug4344|
-ERROR HY000: Can't drop or alter a FUNCTION from within another stored routine
-drop procedure if exists bug3294|
-create procedure bug3294()
-begin
-declare continue handler for sqlexception drop table t5;
-drop table t5;
-drop table t5;
-end|
-create table t5 (x int)|
-call bug3294()|
-ERROR 42S02: Unknown table 'test.t5'
-drop procedure bug3294|
-drop procedure if exists bug8776_1|
-drop procedure if exists bug8776_2|
-drop procedure if exists bug8776_3|
-drop procedure if exists bug8776_4|
-create procedure bug8776_1()
-begin
-declare continue handler for sqlstate '42S0200test' begin end;
-begin end;
-end|
-ERROR 42000: Bad SQLSTATE: '42S0200test'
-create procedure bug8776_2()
-begin
-declare continue handler for sqlstate '4200' begin end;
-begin end;
-end|
-ERROR 42000: Bad SQLSTATE: '4200'
-create procedure bug8776_3()
-begin
-declare continue handler for sqlstate '420000' begin end;
-begin end;
-end|
-ERROR 42000: Bad SQLSTATE: '420000'
-create procedure bug8776_4()
-begin
-declare continue handler for sqlstate '42x00' begin end;
-begin end;
-end|
-ERROR 42000: Bad SQLSTATE: '42x00'
-create procedure bug6600()
-check table t1|
-ERROR 0A000: CHECK is not allowed in stored procedures
-create procedure bug6600()
-lock table t1 read|
-ERROR 0A000: LOCK is not allowed in stored procedures
-create procedure bug6600()
-unlock table t1|
-ERROR 0A000: UNLOCK is not allowed in stored procedures
-drop procedure if exists bug9566|
-create procedure bug9566()
-begin
-select * from t1;
-end|
-lock table t1 read|
-alter procedure bug9566 comment 'Some comment'|
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables|
-drop procedure bug9566|
-drop procedure if exists bug7299|
-create procedure bug7299()
-begin
-declare v int;
-declare c cursor for select val from t1;
-declare exit handler for sqlexception select 'Error!';
-open c;
-fetch c into v;
-end|
-truncate table t1|
-call bug7299()|
-ERROR 02000: No data - zero rows fetched, selected, or processed
-drop procedure bug7299|
-create procedure bug9073()
-begin
-declare continue handler for sqlexception select 1;
-declare continue handler for sqlexception select 2;
-end|
-ERROR 42000: Duplicate handler declared in the same block
-create procedure bug9073()
-begin
-declare condname1 condition for 1234;
-declare continue handler for condname1 select 1;
-declare exit handler for condname1 select 2;
-end|
-ERROR 42000: Duplicate handler declared in the same block
-create procedure bug9073()
-begin
-declare condname1 condition for sqlstate '42000';
-declare condname2 condition for sqlstate '42000';
-declare exit handler for condname1 select 1;
-declare continue handler for condname2 select 2;
-end|
-ERROR 42000: Duplicate handler declared in the same block
-create procedure bug9073()
-begin
-declare condname1 condition for sqlstate '42000';
-declare exit handler for condname1 select 1;
-declare exit handler for sqlstate '42000' select 2;
-end|
-ERROR 42000: Duplicate handler declared in the same block
-drop procedure if exists bug9073|
-create procedure bug9073()
-begin
-declare condname1 condition for sqlstate '42000';
-declare continue handler for condname1 select 1;
-begin
-declare exit handler for sqlstate '42000' select 2;
-begin
-declare continue handler for sqlstate '42000' select 3;
-end;
-end;
-end|
-drop procedure bug9073|
-create procedure bug7047()
-alter procedure bug7047|
-ERROR HY000: Can't drop or alter a PROCEDURE from within another stored routine
-create function bug7047() returns int
-begin
-alter function bug7047;
-return 0;
-end|
-ERROR HY000: Can't drop or alter a FUNCTION from within another stored routine
-create function bug8408() returns int
-begin
-select * from t1;
-return 0;
-end|
-ERROR 0A000: Not allowed to return a result set from a function
-create function bug8408() returns int
-begin
-show warnings;
-return 0;
-end|
-ERROR 0A000: Not allowed to return a result set from a function
-create function bug8408(a int) returns int
-begin
-declare b int;
-select b;
-return b;
-end|
-ERROR 0A000: Not allowed to return a result set from a function
-drop function if exists bug8408_f|
-drop procedure if exists bug8408_p|
-create function bug8408_f() returns int
-begin
-call bug8408_p();
-return 0;
-end|
-create procedure bug8408_p()
-select * from t1|
-call bug8408_p()|
-val x
-select bug8408_f()|
-ERROR 0A000: Not allowed to return a result set from a function
-drop procedure bug8408_p|
-drop function bug8408_f|
-create function bug8408() returns int
-begin
-declare n int default 0;
-select count(*) into n from t1;
-return n;
-end|
-insert into t1 value (2, 2.7), (3, 3.14), (7, 7.0)|
-select *,bug8408() from t1|
-val x bug8408()
-2 2.7 3
-3 3.14 3
-7 7 3
-drop function bug8408|
-truncate table t1|
-drop procedure if exists bug10537|
-create procedure bug10537()
-load data local infile '/tmp/somefile' into table t1|
-ERROR 0A000: LOAD DATA is not allowed in stored procedures
-drop function if exists bug8409|
-create function bug8409()
-returns int
-begin
-flush tables;
-return 5;
-end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function bug8409() returns int begin reset query cache;
-return 1; end|
-ERROR 0A000: RESET is not allowed in stored function or trigger
-create function bug8409() returns int begin reset master;
-return 1; end|
-ERROR 0A000: RESET is not allowed in stored function or trigger
-create function bug8409() returns int begin reset slave;
-return 1; end|
-ERROR 0A000: RESET is not allowed in stored function or trigger
-create function bug8409() returns int begin flush hosts;
-return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function bug8409() returns int begin flush privileges;
-return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function bug8409() returns int begin flush tables with read lock;
-return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function bug8409() returns int begin flush tables;
-return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function bug8409() returns int begin flush logs;
-return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function bug8409() returns int begin flush status;
-return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function bug8409() returns int begin flush slave;
-return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function bug8409() returns int begin flush master;
-return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function bug8409() returns int begin flush des_key_file;
-return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create function bug8409() returns int begin flush user_resources;
-return 1; end|
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create procedure bug9529_901234567890123456789012345678901234567890123456789012345()
-begin
-end|
-ERROR 42000: Identifier name 'bug9529_901234567890123456789012345678901234567890123456789012345' is too long
-drop procedure if exists bug17015_0123456789012345678901234567890123456789012345678901234|
-create procedure bug17015_0123456789012345678901234567890123456789012345678901234()
-begin
-end|
-show procedure status like 'bug17015%'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test bug17015_0123456789012345678901234567890123456789012345678901234 PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-drop procedure bug17015_0123456789012345678901234567890123456789012345678901234|
-drop procedure if exists bug10969|
-create procedure bug10969()
-begin
-declare s1 int default 0;
-select default(s1) from t30;
-end|
-ERROR 42000: Incorrect column name 's1'
-create procedure bug10969()
-begin
-declare s1 int default 0;
-select default(t30.s1) from t30;
-end|
-drop procedure bug10969|
-drop table t1|
-create table t1(f1 int);
-create table t2(f1 int);
-CREATE PROCEDURE SP001()
-P1: BEGIN
-DECLARE ENDTABLE INT DEFAULT 0;
-DECLARE TEMP_NUM INT;
-DECLARE TEMP_SUM INT;
-DECLARE C1 CURSOR FOR SELECT F1 FROM t1;
-DECLARE C2 CURSOR FOR SELECT F1 FROM t2;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET ENDTABLE = 1;
-SET ENDTABLE=0;
-SET TEMP_SUM=0;
-SET TEMP_NUM=0;
-OPEN C1;
-FETCH C1 INTO TEMP_NUM;
-WHILE ENDTABLE = 0 DO
-SET TEMP_SUM=TEMP_NUM+TEMP_SUM;
-FETCH C1 INTO TEMP_NUM;
-END WHILE;
-SELECT TEMP_SUM;
-CLOSE C1;
-CLOSE C1;
-SELECT 'end of proc';
-END P1|
-call SP001();
-TEMP_SUM
-0
-ERROR 24000: Cursor is not open
-drop procedure SP001;
-drop table t1, t2;
-drop function if exists bug11394|
-drop function if exists bug11394_1|
-drop function if exists bug11394_2|
-drop procedure if exists bug11394|
-create function bug11394(i int) returns int
-begin
-if i <= 0 then
-return 0;
-else
-return (i in (100, 200, bug11394(i-1), 400));
-end if;
-end|
-select bug11394(2)|
-ERROR HY000: Recursive stored functions and triggers are not allowed
-drop function bug11394|
-create function bug11394_1(i int) returns int
-begin
-if i <= 0 then
-return 0;
-else
-return (select bug11394_1(i-1));
-end if;
-end|
-select bug11394_1(2)|
-ERROR HY000: Recursive stored functions and triggers are not allowed
-drop function bug11394_1|
-create function bug11394_2(i int) returns int return i|
-select bug11394_2(bug11394_2(10))|
-bug11394_2(bug11394_2(10))
-10
-drop function bug11394_2|
-create procedure bug11394(i int, j int)
-begin
-if i > 0 then
-call bug11394(i - 1,(select 1));
-end if;
-end|
-call bug11394(2, 1)|
-ERROR HY000: Recursive limit 0 (as set by the max_sp_recursion_depth variable) was exceeded for routine bug11394
-set @@max_sp_recursion_depth=10|
-call bug11394(2, 1)|
-set @@max_sp_recursion_depth=default|
-drop procedure bug11394|
-CREATE PROCEDURE BUG_12490() HELP CONTENTS;
-ERROR 0A000: HELP is not allowed in stored procedures
-CREATE FUNCTION BUG_12490() RETURNS INT HELP CONTENTS;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'HELP CONTENTS' at line 1
-CREATE TABLE t_bug_12490(a int);
-CREATE TRIGGER BUG_12490 BEFORE UPDATE ON t_bug_12490 FOR EACH ROW HELP CONTENTS;
-ERROR 0A000: HELP is not allowed in stored procedures
-DROP TABLE t_bug_12490;
-drop function if exists bug11834_1;
-drop function if exists bug11834_2;
-create function bug11834_1() returns int return 10;
-create function bug11834_2() returns int return bug11834_1();
-prepare stmt from "select bug11834_2()";
-execute stmt;
-bug11834_2()
-10
-execute stmt;
-bug11834_2()
-10
-drop function bug11834_1;
-execute stmt;
-ERROR 42000: FUNCTION test.bug11834_1 does not exist
-deallocate prepare stmt;
-drop function bug11834_2;
-DROP FUNCTION IF EXISTS bug12953|
-CREATE FUNCTION bug12953() RETURNS INT
-BEGIN
-OPTIMIZE TABLE t1;
-RETURN 1;
-END|
-ERROR 0A000: Not allowed to return a result set from a function
-DROP FUNCTION IF EXISTS bug12995|
-CREATE FUNCTION bug12995() RETURNS INT
-BEGIN
-HANDLER t1 OPEN;
-RETURN 1;
-END|
-ERROR 0A000: HANDLER is not allowed in stored procedures
-CREATE FUNCTION bug12995() RETURNS INT
-BEGIN
-HANDLER t1 READ FIRST;
-RETURN 1;
-END|
-ERROR 0A000: HANDLER is not allowed in stored procedures
-CREATE FUNCTION bug12995() RETURNS INT
-BEGIN
-HANDLER t1 CLOSE;
-RETURN 1;
-END|
-ERROR 0A000: HANDLER is not allowed in stored procedures
-SELECT bug12995()|
-ERROR 42000: FUNCTION test.bug12995 does not exist
-drop procedure if exists bug12712;
-drop function if exists bug12712;
-create procedure bug12712()
-set session autocommit = 0;
-select @@autocommit;
-@@autocommit
-1
-set @au = @@autocommit;
-call bug12712();
-select @@autocommit;
-@@autocommit
-0
-set session autocommit = @au;
-create function bug12712()
-returns int
-begin
-call bug12712();
-return 0;
-end|
-set @x = bug12712()|
-ERROR HY000: Not allowed to set autocommit from a stored function or trigger
-drop procedure bug12712|
-drop function bug12712|
-create function bug12712()
-returns int
-begin
-set session autocommit = 0;
-return 0;
-end|
-ERROR HY000: Not allowed to set autocommit from a stored function or trigger
-create function bug12712()
-returns int
-begin
-set @@autocommit = 0;
-return 0;
-end|
-ERROR HY000: Not allowed to set autocommit from a stored function or trigger
-create function bug12712()
-returns int
-begin
-set local autocommit = 0;
-return 0;
-end|
-ERROR HY000: Not allowed to set autocommit from a stored function or trigger
-create trigger bug12712
-before insert on t1 for each row set session autocommit = 0;
-ERROR HY000: Not allowed to set autocommit from a stored function or trigger
-drop procedure if exists bug13510_1|
-drop procedure if exists bug13510_2|
-drop procedure if exists bug13510_3|
-drop procedure if exists bug13510_4|
-create procedure bug13510_1()
-begin
-declare password varchar(10);
-set password = 'foo1';
-select password;
-end|
-ERROR 42000: Variable 'password' must be quoted with `...`, or renamed
-set names='foo2'|
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-create procedure bug13510_2()
-begin
-declare names varchar(10);
-set names = 'foo2';
-select names;
-end|
-ERROR 42000: Variable 'names' must be quoted with `...`, or renamed
-create procedure bug13510_3()
-begin
-declare password varchar(10);
-set `password` = 'foo3';
-select password;
-end|
-create procedure bug13510_4()
-begin
-declare names varchar(10);
-set `names` = 'foo4';
-select names;
-end|
-call bug13510_3()|
-password
-foo3
-call bug13510_4()|
-names
-foo4
-drop procedure bug13510_3|
-drop procedure bug13510_4|
-drop function if exists bug_13627_f|
-CREATE TABLE t1 (a int)|
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN DROP TRIGGER test1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN DROP TRIGGER test1; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN create table t2 (a int); END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN create table t2 (a int); return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN create index t1_i on t1 (a); END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN create index t1_i on t1 (a); return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN alter table t1 add column b int; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN alter table t1 add column b int; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN rename table t1 to t2; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN rename table t1 to t2; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN truncate table t1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN truncate table t1; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN drop table t1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN drop table t1; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN drop index t1_i on t1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN drop index t1_i on t1; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN unlock tables; END |
-ERROR 0A000: UNLOCK is not allowed in stored procedures
-CREATE FUNCTION bug_13627_f() returns int BEGIN unlock tables; return 1; END |
-ERROR 0A000: UNLOCK is not allowed in stored procedures
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN LOCK TABLE t1 READ; END |
-ERROR 0A000: LOCK is not allowed in stored procedures
-CREATE FUNCTION bug_13627_f() returns int BEGIN LOCK TABLE t1 READ; return 1; END |
-ERROR 0A000: LOCK is not allowed in stored procedures
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN create database mysqltest; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN create database mysqltest; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN drop database mysqltest; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN drop database mysqltest; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN create user 'mysqltest_1'; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN create user 'mysqltest_1'; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER bug21975 BEFORE INSERT ON t1 FOR EACH ROW BEGIN grant select on t1 to 'mysqltest_1'; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug21975() returns int BEGIN grant select on t1 to 'mysqltest_1'; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER bug21975 BEFORE INSERT ON t1 FOR EACH ROW BEGIN revoke select on t1 from 'mysqltest_1'; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug21975() returns int BEGIN revoke select on t1 from 'mysqltest_1'; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER bug21975 BEFORE INSERT ON t1 FOR EACH ROW BEGIN revoke all privileges on *.* from 'mysqltest_1'; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug21975() returns int BEGIN revoke all privileges on *.* from 'mysqltest_1'; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN drop user 'mysqltest_1'; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN drop user 'mysqltest_1'; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN rename user 'mysqltest_2' to 'mysqltest_1'; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN rename user 'mysqltest_2' to 'mysqltest_1'; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN create view v1 as select 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN create view v1 as select 1; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN alter view v1 as select 1; END |
-ERROR 0A000: ALTER VIEW is not allowed in stored procedures
-CREATE FUNCTION bug_13627_f() returns int BEGIN alter view v1 as select 1; return 1; END |
-ERROR 0A000: ALTER VIEW is not allowed in stored procedures
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN drop view v1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION bug_13627_f() returns int BEGIN drop view v1; return 1; END |
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN create trigger tr2 before insert on t1 for each row do select 1; END |
-ERROR 2F003: Can't create a TRIGGER from within another stored routine
-CREATE FUNCTION bug_13627_f() returns int BEGIN create trigger tr2 before insert on t1 for each row do select 1; return 1; END |
-ERROR 2F003: Can't create a TRIGGER from within another stored routine
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN drop function bug_13627_f; END |
-ERROR HY000: Can't drop or alter a FUNCTION from within another stored routine
-CREATE FUNCTION bug_13627_f() returns int BEGIN drop function bug_13627_f; return 1; END |
-ERROR HY000: Can't drop or alter a FUNCTION from within another stored routine
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN create function f2 () returns int return 1; END |
-ERROR 2F003: Can't create a FUNCTION from within another stored routine
-CREATE FUNCTION bug_13627_f() returns int BEGIN create function f2 () returns int return 1; return 1; END |
-ERROR 2F003: Can't create a FUNCTION from within another stored routine
-CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-CREATE TEMPORARY TABLE t2 (a int);
-DROP TEMPORARY TABLE t2;
-END |
-CREATE FUNCTION bug_13627_f() returns int
-BEGIN
-CREATE TEMPORARY TABLE t2 (a int);
-DROP TEMPORARY TABLE t2;
-return 1;
-END |
-drop table t1|
-drop function bug_13627_f|
-drop function if exists bug12329;
-Warnings:
-Note 1305 FUNCTION test.bug12329 does not exist
-create table t1 as select 1 a;
-create table t2 as select 1 a;
-create function bug12329() returns int return (select a from t1);
-prepare stmt1 from 'select bug12329()';
-execute stmt1;
-bug12329()
-1
-drop function bug12329;
-create function bug12329() returns int return (select a+100 from t2);
-select bug12329();
-bug12329()
-101
-execute stmt1;
-bug12329()
-101
-deallocate prepare stmt1;
-drop function bug12329;
-drop table t1, t2;
-create database mysqltest1;
-use mysqltest1;
-drop database mysqltest1;
-create function f1() returns int return 1;
-ERROR 3D000: No database selected
-create procedure p1(out param1 int)
-begin
-select count(*) into param1 from t3;
-end|
-ERROR 3D000: No database selected
-use test;
-DROP PROCEDURE IF EXISTS bug13037_p1;
-DROP PROCEDURE IF EXISTS bug13037_p2;
-DROP PROCEDURE IF EXISTS bug13037_p3;
-CREATE PROCEDURE bug13037_p1()
-BEGIN
-IF bug13037_foo THEN
-SELECT 1;
-END IF;
-END|
-CREATE PROCEDURE bug13037_p2()
-BEGIN
-SET @bug13037_foo = bug13037_bar;
-END|
-CREATE PROCEDURE bug13037_p3()
-BEGIN
-SELECT bug13037_foo;
-END|
-
-CALL bug13037_p1();
-ERROR 42S22: Unknown column 'bug13037_foo' in 'field list'
-CALL bug13037_p2();
-ERROR 42S22: Unknown column 'bug13037_bar' in 'field list'
-CALL bug13037_p3();
-ERROR 42S22: Unknown column 'bug13037_foo' in 'field list'
-CALL bug13037_p1();
-ERROR 42S22: Unknown column 'bug13037_foo' in 'field list'
-CALL bug13037_p2();
-ERROR 42S22: Unknown column 'bug13037_bar' in 'field list'
-CALL bug13037_p3();
-ERROR 42S22: Unknown column 'bug13037_foo' in 'field list'
-DROP PROCEDURE bug13037_p1;
-DROP PROCEDURE bug13037_p2;
-DROP PROCEDURE bug13037_p3;
-create database mysqltest1;
-create database mysqltest2;
-use mysqltest1;
-drop database mysqltest1;
-create procedure mysqltest2.p1() select version();
-create procedure p2() select version();
-ERROR 3D000: No database selected
-use mysqltest2;
-show procedure status;
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-mysqltest2 p1 PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-drop database mysqltest2;
-use test;
-DROP FUNCTION IF EXISTS bug13012|
-CREATE FUNCTION bug13012() RETURNS INT
-BEGIN
-REPAIR TABLE t1;
-RETURN 1;
-END|
-ERROR 0A000: Not allowed to return a result set from a function
-create table t1 (a int)|
-CREATE PROCEDURE bug13012_1() REPAIR TABLE t1|
-CREATE FUNCTION bug13012_2() RETURNS INT
-BEGIN
-CALL bug13012_1();
-RETURN 1;
-END|
-SELECT bug13012_2()|
-ERROR 0A000: Not allowed to return a result set from a function
-drop table t1|
-drop procedure bug13012_1|
-drop function bug13012_2|
-drop function if exists bug11555_1;
-drop function if exists bug11555_2;
-drop view if exists v1, v2, v3, v4;
-create function bug11555_1() returns int return (select max(i) from t1);
-create function bug11555_2() returns int return bug11555_1();
-create view v1 as select bug11555_1();
-drop view v1;
-create view v2 as select bug11555_2();
-drop view v2;
-create table t1 (i int);
-create view v1 as select bug11555_1();
-create view v2 as select bug11555_2();
-create view v3 as select * from v1;
-drop table t1;
-select * from v1;
-ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-select * from v2;
-ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-select * from v3;
-ERROR HY000: View 'test.v3' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-create view v4 as select * from v1;
-drop view v1, v2, v3, v4;
-drop function bug11555_1;
-drop function bug11555_2;
-create table t1 (i int);
-create table t2 (i int);
-create trigger t1_ai after insert on t1 for each row insert into t2 values (new.i);
-create view v1 as select * from t1;
-drop table t2;
-insert into v1 values (1);
-ERROR 42S02: Table 'test.t2' doesn't exist
-drop trigger t1_ai;
-create function bug11555_1() returns int return (select max(i) from t2);
-create trigger t1_ai after insert on t1 for each row set @a:=bug11555_1();
-insert into v1 values (2);
-ERROR 42S02: Table 'test.t2' doesn't exist
-drop function bug11555_1;
-drop table t1;
-drop view v1;
-drop procedure if exists ` bug15658`;
-create procedure ``() select 1;
-ERROR 42000: Incorrect routine name ''
-create procedure ` `() select 1;
-ERROR 42000: Incorrect routine name ' '
-create procedure `bug15658 `() select 1;
-ERROR 42000: Incorrect routine name 'bug15658 '
-create procedure ``.bug15658() select 1;
-ERROR 42000: Incorrect database name ''
-create procedure `x `.bug15658() select 1;
-ERROR 42000: Incorrect database name 'x '
-create procedure ` bug15658`() select 1;
-call ` bug15658`();
-1
-1
-show procedure status;
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test bug15658 PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-drop procedure ` bug15658`;
-drop function if exists bug14270;
-drop table if exists t1;
-create table t1 (s1 int primary key);
-create function bug14270() returns int
-begin
-load index into cache t1;
-return 1;
-end|
-ERROR 0A000: Not allowed to return a result set from a function
-create function bug14270() returns int
-begin
-cache index t1 key (`primary`) in keycache1;
-return 1;
-end|
-ERROR 0A000: Not allowed to return a result set from a function
-drop table t1;
-drop procedure if exists bug15091;
-create procedure bug15091()
-begin
-declare selectstr varchar(6000) default ' ';
-declare conditionstr varchar(5000) default '';
-set selectstr = concat(selectstr,
-' and ',
-c.operatorid,
-'in (',conditionstr, ')');
-end|
-call bug15091();
-ERROR 42S02: Unknown table 'c' in field list
-drop procedure bug15091;
-drop function if exists bug16896;
-create aggregate function bug16896() returns int return 1;
-ERROR HY000: Aggregate specific instruction(FETCH GROUP NEXT ROW) missing from the aggregate function
-DROP PROCEDURE IF EXISTS bug14702;
-CREATE IF NOT EXISTS PROCEDURE bug14702()
-BEGIN
-END;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IF NOT EXISTS PROCEDURE bug14702()
-BEGIN
-END' at line 1
-CREATE PROCEDURE IF NOT EXISTS bug14702()
-BEGIN
-END;
-DROP PROCEDURE IF EXISTS bug14702;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (i INT);
-CREATE PROCEDURE bug20953() CREATE VIEW v AS SELECT 1 INTO @a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a' at line 1
-CREATE PROCEDURE bug20953() CREATE VIEW v AS SELECT 1 INTO DUMPFILE "file";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE "file"' at line 1
-CREATE PROCEDURE bug20953() CREATE VIEW v AS SELECT 1 INTO OUTFILE "file";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE "file"' at line 1
-CREATE PROCEDURE bug20953()
-CREATE VIEW v AS SELECT i FROM t1 PROCEDURE ANALYSE();
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE()' at line 2
-CREATE PROCEDURE bug20953() CREATE VIEW v AS SELECT 1 FROM (SELECT 1) AS d1 into @w;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'into @w' at line 1
-CREATE PROCEDURE bug20953(i INT) CREATE VIEW v AS SELECT i;
-ERROR HY000: View's SELECT contains a variable or parameter
-CREATE PROCEDURE bug20953()
-BEGIN
-DECLARE i INT;
-CREATE VIEW v AS SELECT i;
-END |
-ERROR HY000: View's SELECT contains a variable or parameter
-PREPARE stmt FROM "CREATE VIEW v AS SELECT ?";
-ERROR HY000: View's SELECT contains a variable or parameter
-DROP TABLE t1;
-drop tables if exists t1;
-drop procedure if exists bug24491;
-create table t1 (id int primary key auto_increment, value varchar(10));
-insert into t1 (id, value) values (1, 'FIRST'), (2, 'SECOND'), (3, 'THIRD');
-create procedure bug24491()
-insert into t1 (id, value) select * from (select 4 as i, 'FOURTH' as v) as y on duplicate key update v = 'DUP';
-call bug24491();
-ERROR 42S22: Unknown column 'v' in 'field list'
-call bug24491();
-ERROR 42S22: Unknown column 'v' in 'field list'
-drop procedure bug24491;
-create procedure bug24491()
-insert into t1 (id, value) select * from (select 4 as id, 'FOURTH' as value) as y on duplicate key update y.value = 'DUP';
-call bug24491();
-ERROR 42S22: Unknown column 'y.value' in 'field list'
-call bug24491();
-ERROR 42S22: Unknown column 'y.value' in 'field list'
-drop procedure bug24491;
-drop tables t1;
-DROP FUNCTION IF EXISTS bug18914_f1;
-DROP FUNCTION IF EXISTS bug18914_f2;
-DROP PROCEDURE IF EXISTS bug18914_p1;
-DROP PROCEDURE IF EXISTS bug18914_p2;
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (i INT);
-CREATE PROCEDURE bug18914_p1() CREATE TABLE t2 (i INT);
-CREATE PROCEDURE bug18914_p2() DROP TABLE IF EXISTS no_such_table;
-CREATE FUNCTION bug18914_f1() RETURNS INT
-BEGIN
-CALL bug18914_p1();
-RETURN 1;
-END |
-CREATE FUNCTION bug18914_f2() RETURNS INT
-BEGIN
-CALL bug18914_p2();
-RETURN 1;
-END |
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-CALL bug18914_p1();
-INSERT INTO t1 VALUES (1);
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-SELECT bug18914_f1();
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-SELECT bug18914_f2();
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-SELECT * FROM t2;
-ERROR 42S02: Table 'test.t2' doesn't exist
-DROP FUNCTION bug18914_f1;
-DROP FUNCTION bug18914_f2;
-DROP PROCEDURE bug18914_p1;
-DROP PROCEDURE bug18914_p2;
-DROP TABLE t1;
-drop table if exists bogus_table_20713;
-drop function if exists func_20713_a;
-drop function if exists func_20713_b;
-create table bogus_table_20713( id int(10) not null primary key);
-insert into bogus_table_20713 values (1), (2), (3);
-create function func_20713_a() returns int(11)
-begin
-declare id int;
-declare continue handler for sqlexception set id=null;
-set @in_func := 1;
-set id = (select id from bogus_table_20713 where id = 3);
-set @in_func := 2;
-return id;
-end//
-create function func_20713_b() returns int(11)
-begin
-declare id int;
-declare continue handler for sqlstate value '42S02' set id=null;
-set @in_func := 1;
-set id = (select id from bogus_table_20713 where id = 3);
-set @in_func := 2;
-return id;
-end//
-set @in_func := 0;
-select func_20713_a();
-func_20713_a()
-NULL
-select @in_func;
-@in_func
-2
-set @in_func := 0;
-select func_20713_b();
-func_20713_b()
-NULL
-select @in_func;
-@in_func
-2
-drop table bogus_table_20713;
-set @in_func := 0;
-select func_20713_a();
-func_20713_a()
-NULL
-select @in_func;
-@in_func
-2
-set @in_func := 0;
-select func_20713_b();
-func_20713_b()
-NULL
-select @in_func;
-@in_func
-2
-drop function if exists func_20713_a;
-drop function if exists func_20713_b;
-drop table if exists table_25345_a;
-drop table if exists table_25345_b;
-drop procedure if exists proc_25345;
-drop function if exists func_25345;
-drop function if exists func_25345_b;
-create table table_25345_a (a int);
-create table table_25345_b (b int);
-create procedure proc_25345()
-begin
-declare c1 cursor for select a from table_25345_a;
-declare c2 cursor for select b from table_25345_b;
-select 1 as result;
-end ||
-create function func_25345() returns int(11)
-begin
-call proc_25345();
-return 1;
-end ||
-create function func_25345_b() returns int(11)
-begin
-declare c1 cursor for select a from table_25345_a;
-declare c2 cursor for select b from table_25345_b;
-return 1;
-end ||
-call proc_25345();
-result
-1
-select func_25345();
-ERROR 0A000: Not allowed to return a result set from a function
-select func_25345_b();
-func_25345_b()
-1
-drop table table_25345_a;
-call proc_25345();
-result
-1
-select func_25345();
-ERROR 0A000: Not allowed to return a result set from a function
-select func_25345_b();
-func_25345_b()
-1
-drop table table_25345_b;
-drop procedure proc_25345;
-drop function func_25345;
-drop function func_25345_b;
-End of 5.0 tests
-drop function if exists bug16164;
-create function bug16164() returns int
-begin
-show authors;
-return 42;
-end|
-ERROR 0A000: Not allowed to return a result set from a function
-drop function if exists bug20701;
-create function bug20701() returns varchar(25) binary return "test";
-drop function bug20701;
-create function bug20701() returns varchar(25) return "test";
-drop function bug20701;
-create procedure proc_26503_error_1()
-begin
-retry:
-repeat
-begin
-declare continue handler for sqlexception
-begin
-iterate retry;
-end
-select "do something";
-end
-until true end repeat retry;
-end//
-ERROR 42000: ITERATE with no matching label: retry
-create procedure proc_26503_error_2()
-begin
-retry:
-repeat
-begin
-declare continue handler for sqlexception
-iterate retry;
-select "do something";
-end
-until true end repeat retry;
-end//
-ERROR 42000: ITERATE with no matching label: retry
-create procedure proc_26503_error_3()
-begin
-retry:
-repeat
-begin
-declare continue handler for sqlexception
-begin
-leave retry;
-end
-select "do something";
-end
-until true end repeat retry;
-end//
-ERROR 42000: LEAVE with no matching label: retry
-create procedure proc_26503_error_4()
-begin
-retry:
-repeat
-begin
-declare continue handler for sqlexception
-leave retry;
-select "do something";
-end
-until true end repeat retry;
-end//
-ERROR 42000: LEAVE with no matching label: retry
-drop procedure if exists proc_28360;
-drop function if exists func_28360;
-CREATE PROCEDURE proc_28360()
-BEGIN
-ALTER DATABASE `#mysql50#upgrade-me` UPGRADE DATA DIRECTORY NAME;
-END//
-ERROR HY000: Can't drop or alter a DATABASE from within another stored routine
-CREATE FUNCTION func_28360() RETURNS int
-BEGIN
-ALTER DATABASE `#mysql50#upgrade-me` UPGRADE DATA DIRECTORY NAME;
-RETURN 0;
-END//
-ERROR HY000: Can't drop or alter a DATABASE from within another stored routine
-DROP PROCEDURE IF EXISTS p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE c char(100);
-DECLARE cur1 CURSOR FOR SHOW TABLES;
-OPEN cur1;
-FETCH cur1 INTO c;
-select c;
-CLOSE cur1;
-END|
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SHOW TABLES;
-OPEN cur1;
-FETCH cur1 INTO c;
-select c;
-CLOSE cur1;
-END' at line 4
-DROP DATABASE IF EXISTS mysqltest;
-CREATE DATABASE mysqltest;
-USE mysqltest;
-DROP DATABASE mysqltest;
-SELECT inexistent(), 1 + ,;
-ERROR 42000: FUNCTION inexistent does not exist
-SELECT inexistent();
-ERROR 42000: FUNCTION inexistent does not exist
-SELECT .inexistent();
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '()' at line 1
-SELECT ..inexistent();
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '..inexistent()' at line 1
-USE test;
-create function f1() returns int
-begin
-set @test = 1, password = password('foo');
-return 1;
-end|
-ERROR HY000: Not allowed to set autocommit from a stored function or trigger
-create trigger t1
-before insert on t2 for each row set password = password('foo');|
-ERROR HY000: Not allowed to set autocommit from a stored function or trigger
-drop function if exists f1;
-drop function if exists f2;
-drop table if exists t1, t2;
-create function f1() returns int
-begin
-drop temporary table t1;
-return 1;
-end|
-create temporary table t1 as select f1();
-ERROR 42S02: Unknown table 'test.t1'
-create function f2() returns int
-begin
-create temporary table t2 as select f1();
-return 1;
-end|
-create temporary table t1 as select f2();
-ERROR 42S02: Unknown table 'test.t1'
-drop function f1;
-drop function f2;
-create function f1() returns int
-begin
-drop temporary table t2,t1;
-return 1;
-end|
-create function f2() returns int
-begin
-create temporary table t2 as select f1();
-return 1;
-end|
-create temporary table t1 as select f2();
-ERROR 42S02: Unknown table 'test.t2,test.t1'
-drop function f1;
-drop function f2;
-create temporary table t2(a int);
-select * from t2;
-a
-create function f2() returns int
-begin
-drop temporary table t2;
-return 1;
-end|
-select f2();
-f2()
-1
-drop function f2;
-drop table t2;
-ERROR 42S02: Unknown table 'test.t2'
-End of 5.1 tests
-drop procedure if exists proc_33983_a;
-drop procedure if exists proc_33983_b;
-drop procedure if exists proc_33983_c;
-drop procedure if exists proc_33983_d;
-create procedure proc_33983_a()
-begin
-label1:
-begin
-label2:
-begin
-select 1;
-end label1;
-end;
-end|
-ERROR 42000: End-label label1 without match
-create procedure proc_33983_b()
-begin
-label1:
-repeat
-label2:
-repeat
-select 1;
-until FALSE end repeat label1;
-until FALSE end repeat;
-end|
-ERROR 42000: End-label label1 without match
-create procedure proc_33983_c()
-begin
-label1:
-while TRUE do
-label2:
-while TRUE do
-select 1;
-end while label1;
-end while;
-end|
-ERROR 42000: End-label label1 without match
-create procedure proc_33983_d()
-begin
-label1:
-loop
-label2:
-loop
-select 1;
-end loop label1;
-end loop;
-end|
-ERROR 42000: End-label label1 without match
-CREATE TABLE t1 (a INT)|
-INSERT INTO t1 VALUES (1),(2)|
-CREATE PROCEDURE p1(a INT) BEGIN END|
-CALL p1((SELECT * FROM t1))|
-ERROR 21000: Subquery returns more than 1 row
-DROP PROCEDURE IF EXISTS p1|
-DROP TABLE t1|
-drop procedure if exists p1;
-create procedure p1()
-begin
-create table t1 (a int) engine=MyISAM;
-drop table t1;
-end|
-call p1();
-call p1();
-drop procedure p1;
-drop procedure if exists proc_8759;
-create procedure proc_8759()
-begin
-declare should_be_illegal condition for sqlstate '00000';
-declare continue handler for should_be_illegal set @x=0;
-end$$
-ERROR 42000: Bad SQLSTATE: '00000'
-create procedure proc_8759()
-begin
-declare continue handler for sqlstate '00000' set @x=0;
-end$$
-ERROR 42000: Bad SQLSTATE: '00000'
-drop procedure if exists proc_36510;
-create procedure proc_36510()
-begin
-declare should_be_illegal condition for sqlstate '00123';
-declare continue handler for should_be_illegal set @x=0;
-end$$
-ERROR 42000: Bad SQLSTATE: '00123'
-create procedure proc_36510()
-begin
-declare continue handler for sqlstate '00123' set @x=0;
-end$$
-ERROR 42000: Bad SQLSTATE: '00123'
-create procedure proc_36510()
-begin
-declare should_be_illegal condition for 0;
-declare continue handler for should_be_illegal set @x=0;
-end$$
-ERROR HY000: Incorrect CONDITION value: '0'
-create procedure proc_36510()
-begin
-declare continue handler for 0 set @x=0;
-end$$
-ERROR HY000: Incorrect CONDITION value: '0'
-drop procedure if exists p1;
-set @old_recursion_depth = @@max_sp_recursion_depth;
-set @@max_sp_recursion_depth = 255;
-create procedure p1(a int)
-begin
-declare continue handler for 1436 -- ER_STACK_OVERRUN_NEED_MORE
-select 'exception';
-call p1(a+1);
-end|
-call p1(1);
-set @@max_sp_recursion_depth = @old_recursion_depth;
-drop procedure p1;
-LOAD DATA INFILE '../../tmp/proc.txt' INTO TABLE mysql.proc;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1,1), (2,2);
-SELECT MAX (a) FROM t1 WHERE b = 999999;
-ERROR 42000: FUNCTION test.MAX does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual
-SELECT AVG (a) FROM t1 WHERE b = 999999;
-AVG (a)
-NULL
-SELECT non_existent (a) FROM t1 WHERE b = 999999;
-ERROR 42000: FUNCTION test.non_existent does not exist
-DROP TABLE t1;
-CREATE TABLE t1 ( f2 INTEGER, f3 INTEGER );
-INSERT INTO t1 VALUES ( 1, 1 );
-CREATE FUNCTION func_1 () RETURNS INTEGER
-BEGIN
-INSERT INTO t1 SELECT * FROM t1 ;
-RETURN 1 ;
-END|
-INSERT INTO t1 SELECT * FROM (SELECT 2 AS f1, 2 AS f2) AS A WHERE func_1() = 5;
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-DROP FUNCTION func_1;
-DROP TABLE t1;
-#
-# Bug #47788: Crash in TABLE_LIST::hide_view_error on UPDATE + VIEW +
-# SP + MERGE + ALTER
-#
-CREATE TABLE t1 (pk INT, b INT, KEY (b));
-CREATE ALGORITHM = TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-CREATE PROCEDURE p1 (a int) UPDATE IGNORE v1 SET b = a;
-CALL p1(5);
-ERROR HY000: The target table v1 of the UPDATE is not updatable
-ALTER TABLE t1 CHANGE COLUMN b b2 INT;
-CALL p1(7);
-ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-DROP PROCEDURE p1;
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug#12428824 - PARSER STACK OVERFLOW AND CRASH IN SP_ADD_USED_ROUTINE
-# WITH OBSCURE QUERY
-#
-SELECT very_long_fn_name_1111111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222225555555555555555555555555577777777777777777777777777777777777777777777777777777777777777777777777788888888999999999999999999999();
-ERROR 42000: Identifier name 'very_long_fn_name_1111111111111111111111111111111111111111111111111111111111111111111111111222222222' is too long
-CALL very_long_pr_name_1111111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222225555555555555555555555555577777777777777777777777777777777777777777777777777777777777777777777777788888888999999999999999999999();
-ERROR 42000: Identifier name 'very_long_pr_name_1111111111111111111111111111111111111111111111111111111111111111111111111222222222' is too long
-SELECT very_long_db_name_1111111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222225555555555555555555555555577777777777777777777777777777777777777777777777777777777777777777777777788888888999999999999999999999.simple_func();
-ERROR 42000: Incorrect database name 'very_long_db_name_1111111111111111111111111111111111111111111111111111111111111111111111111222222222'
-CALL very_long_db_name_1111111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222225555555555555555555555555577777777777777777777777777777777777777777777777777777777777777777777777788888888999999999999999999999.simple_proc();
-ERROR 42000: Incorrect database name 'very_long_db_name_1111111111111111111111111111111111111111111111111111111111111111111111111222222222'
-SELECT db_name.very_long_fn_name_111111111111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999999999999999999();
-ERROR 42000: Identifier name 'very_long_fn_name_1111111111111111111111111111111111111111111111111111111111111111111111111222222222' is too long
-CALL db_name.very_long_pr_name_111111111111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999999999999999999();
-ERROR 42000: Identifier name 'very_long_pr_name_1111111111111111111111111111111111111111111111111111111111111111111111111222222222' is too long
-End of 5.1 tests
-#
-# Bug#23032: Handlers declared in a SP do not handle warnings generated in sub-SP
-#
-
-# - Case 1
-
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-DROP PROCEDURE IF EXISTS p3;
-DROP PROCEDURE IF EXISTS p4;
-DROP PROCEDURE IF EXISTS p5;
-DROP PROCEDURE IF EXISTS p6;
-CREATE PROCEDURE p1()
-BEGIN
-SELECT CAST('10 ' as unsigned integer);
-SELECT 1;
-CALL p2();
-END|
-CREATE PROCEDURE p2()
-BEGIN
-SELECT CAST('10 ' as unsigned integer);
-END|
-CALL p1();
-CAST('10 ' as unsigned integer)
-10
-1
-1
-CAST('10 ' as unsigned integer)
-10
-Warnings:
-Note 1292 Truncated incorrect INTEGER value: '10 '
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-
-# - Case 2
-
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE c INT DEFAULT 0;
-DECLARE CONTINUE HANDLER FOR SQLSTATE '22007' SET c = c + 1;
-CALL p2();
-CALL p3();
-CALL p4();
-SELECT c;
-SELECT @@warning_count;
-SHOW WARNINGS;
-END|
-CREATE PROCEDURE p2()
-BEGIN
-SELECT CAST('10 ' as unsigned integer);
-END|
-CREATE PROCEDURE p3()
-BEGIN
-SELECT CAST('10 ' as unsigned integer);
-SELECT 1;
-END|
-CREATE PROCEDURE p4()
-BEGIN
-SELECT CAST('10 ' as unsigned integer);
-CALL p2();
-END|
-CREATE PROCEDURE p5()
-BEGIN
-SELECT CAST('10 ' as unsigned integer);
-SHOW WARNINGS;
-END|
-CREATE PROCEDURE P6()
-BEGIN
-DECLARE c INT DEFAULT 0;
-DECLARE CONTINUE HANDLER FOR SQLSTATE '22007' SET c = c + 1;
-CALL p5();
-SELECT c;
-END|
-CALL p1();
-CAST('10 ' as unsigned integer)
-10
-CAST('10 ' as unsigned integer)
-10
-1
-1
-CAST('10 ' as unsigned integer)
-10
-CAST('10 ' as unsigned integer)
-10
-c
-3
-@@warning_count
-0
-Level Code Message
-CALL p6();
-CAST('10 ' as unsigned integer)
-10
-Level Code Message
-Note 1292 Truncated incorrect INTEGER value: '10 '
-c
-1
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP PROCEDURE p3;
-DROP PROCEDURE p4;
-DROP PROCEDURE p5;
-DROP PROCEDURE p6;
-
-# - Case 3: check that "Exception trumps No Data".
-
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE c CURSOR FOR SELECT a FROM t1;
-OPEN c;
-BEGIN
-DECLARE v1 INT;
-DECLARE v2 INT;
-DECLARE EXIT HANDLER FOR SQLEXCEPTION
-SELECT "Error caught (expected)";
-DECLARE EXIT HANDLER FOR NOT FOUND
-SELECT "End of Result Set found!";
-WHILE TRUE DO
-FETCH c INTO v1, v2;
-END WHILE;
-END;
-CLOSE c;
-SELECT a INTO @foo FROM t1 LIMIT 1; # Clear warning stack
-END|
-CALL p1();
-Error caught (expected)
-Error caught (expected)
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# Bug#36185: Incorrect precedence for warning and exception handlers
-#
-DROP TABLE IF EXISTS t1;
-DROP PROCEDURE IF EXISTS p1;
-CREATE TABLE t1 (a INT, b INT NOT NULL);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING SELECT 'warning';
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SELECT 'exception';
-INSERT INTO t1 VALUES (CAST('10 ' AS SIGNED), NULL);
-END|
-CALL p1();
-exception
-exception
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# Bug#5889: Exit handler for a warning doesn't hide the warning in trigger
-#
-SET sql_mode = 'NO_ENGINE_SUBSTITUTION';
-CREATE TABLE t1(a INT, b INT);
-INSERT INTO t1 VALUES (1, 2);
-CREATE TRIGGER t1_bu BEFORE UPDATE ON t1 FOR EACH ROW
-BEGIN
-DECLARE EXIT HANDLER FOR SQLWARNING
-SET NEW.a = 10;
-SET NEW.a = 99999999999;
-END|
-UPDATE t1 SET b = 20;
-SHOW WARNINGS;
-Level Code Message
-SELECT * FROM t1;
-a b
-10 20
-DROP TRIGGER t1_bu;
-DROP TABLE t1;
-SET sql_mode = DEFAULT;
-#
-# Bug#9857: Stored procedures: handler for sqlwarning ignored
-#
-SET @sql_mode_saved = @@sql_mode;
-SET sql_mode = traditional;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'warning caught (expected)';
-SELECT 5 / 0;
-END|
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-SELECT 'error caught (unexpected)';
-SELECT 5 / 0;
-END|
-CALL p1();
-5 / 0
-NULL
-warning caught (expected)
-warning caught (expected)
-SHOW WARNINGS;
-Level Code Message
-CALL p2();
-5 / 0
-NULL
-Warnings:
-Warning 1365 Division by 0
-SHOW WARNINGS;
-Level Code Message
-Warning 1365 Division by 0
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-SET sql_mode = @sql_mode_saved;
-#
-# Bug#55850: Trigger warnings not cleared.
-#
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-DROP PROCEDURE IF EXISTS p1;
-CREATE TABLE t1(x SMALLINT, y SMALLINT, z SMALLINT);
-CREATE TABLE t2(a SMALLINT, b SMALLINT, c SMALLINT,
-d SMALLINT, e SMALLINT, f SMALLINT);
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-INSERT IGNORE INTO t2(a, b, c) VALUES(99999, 99999, 99999);
-CREATE TRIGGER t1_ai AFTER INSERT ON t1 FOR EACH ROW
-INSERT IGNORE INTO t2(d, e, f) VALUES(99999, 99999, 99999);
-CREATE PROCEDURE p1()
-INSERT IGNORE INTO t1 VALUES(99999, 99999, 99999);
-
-CALL p1();
-Warnings:
-Warning 1264 Out of range value for column 'x' at row 1
-Warning 1264 Out of range value for column 'y' at row 1
-Warning 1264 Out of range value for column 'z' at row 1
-
-SHOW WARNINGS;
-Level Code Message
-Warning 1264 Out of range value for column 'x' at row 1
-Warning 1264 Out of range value for column 'y' at row 1
-Warning 1264 Out of range value for column 'z' at row 1
-
-DROP TABLE t1;
-DROP TABLE t2;
-DROP PROCEDURE p1;
-# ----------------------------------------------------------------------
-SET sql_mode = 'NO_ENGINE_SUBSTITUTION';
-CREATE TABLE t1(x SMALLINT, y SMALLINT, z SMALLINT);
-CREATE TABLE t2(a SMALLINT, b SMALLINT, c SMALLINT NOT NULL);
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-INSERT INTO t2 VALUES(
-CAST('111111 ' AS SIGNED),
-CAST('222222 ' AS SIGNED),
-NULL);
-END|
-CREATE PROCEDURE p1()
-INSERT INTO t1 VALUES(99999, 99999, 99999);
-
-CALL p1();
-ERROR 23000: Column 'c' cannot be null
-
-SHOW WARNINGS;
-Level Code Message
-Warning 1264 Out of range value for column 'x' at row 1
-Warning 1264 Out of range value for column 'y' at row 1
-Warning 1264 Out of range value for column 'z' at row 1
-Note 1292 Truncated incorrect INTEGER value: '111111 '
-Warning 1264 Out of range value for column 'a' at row 1
-Note 1292 Truncated incorrect INTEGER value: '222222 '
-Warning 1264 Out of range value for column 'b' at row 1
-Error 1048 Column 'c' cannot be null
-Note 4094 At line 6 in test.t1_bi
-Note 4094 At line 2 in test.p1
-
-DROP TABLE t1;
-DROP TABLE t2;
-DROP PROCEDURE p1;
-SET sql_mode = DEFAULT;
-
-###################################################################
-# Tests for the following bugs:
-# - Bug#11763171: 55852 - Possibly inappropriate handler activation.
-# - Bug#11749343: 38806 - Wrong scope for SQL HANDLERS in SP.
-###################################################################
-
-
-# -- Check that SQL-conditions thrown by Statement-blocks are
-# -- handled by Handler-decl blocks properly.
-
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-SELECT 'H1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'H2' AS HandlerId;
-SIGNAL SQLSTATE '01000'; # Should be handled by H2.
-END|
-
-CALL p1()|
-HandlerId
-H2
-
-# -- Check that SQL-conditions thrown by Statement-blocks are
-# -- handled by Handler-decl blocks properly in case of nested
-# -- SQL-blocks.
-
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-SELECT 'H1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'H2' AS HandlerId;
-BEGIN
-SELECT 'B1' AS BlockId;
-BEGIN
-SELECT 'B2' AS BlockId;
-BEGIN
-SELECT 'B3' AS BlockId;
-SIGNAL SQLSTATE '01000'; # Should be handled by H2.
-END;
-END;
-END;
-END|
-
-CALL p2()|
-BlockId
-B1
-BlockId
-B2
-BlockId
-B3
-HandlerId
-H2
-
-# -- Check SQL-handler resolution rules.
-
-CREATE PROCEDURE p3()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-SELECT 'H1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'H2' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'H3' AS HandlerId;
-SIGNAL SQLSTATE '01000'; # Should be handled by H3.
-END|
-
-CALL p3()|
-HandlerId
-H3
-
-CREATE PROCEDURE p4()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-SELECT 'H1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'H2' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'H3' AS HandlerId;
-SIGNAL SQLSTATE '01000'; # Should be handled by H2.
-END|
-
-CALL p4()|
-HandlerId
-H2
-
-CREATE PROCEDURE p5()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-SELECT 'H1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'H2' AS HandlerId;
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'H3' AS HandlerId;
-SIGNAL SQLSTATE '01000'; # Should be handled by H3.
-END;
-END|
-
-CALL p5()|
-HandlerId
-H3
-
-# -- Check that handlers don't handle its own exceptions.
-
-CREATE PROCEDURE p6()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-SELECT 'H1' AS HandlerId;
-SIGNAL SQLSTATE 'HY000'; # Should *not* be handled by H1.
-END;
-SELECT 'S1' AS SignalId;
-SIGNAL SQLSTATE 'HY000'; # Should be handled by H1.
-END|
-
-CALL p6()|
-SignalId
-S1
-HandlerId
-H1
-ERROR HY000: Unhandled user-defined exception condition
-
-# -- Check that handlers don't handle its own warnings.
-
-CREATE PROCEDURE p7()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-BEGIN
-SELECT 'H1' AS HandlerId;
-SIGNAL SQLSTATE '01000'; # Should *not* be handled by H1.
-END;
-SELECT 'S1' AS SignalId;
-SIGNAL SQLSTATE '01000'; # Should be handled by H1.
-END|
-
-CALL p7()|
-SignalId
-S1
-HandlerId
-H1
-Warnings:
-Warning 1642 Unhandled user-defined warning condition
-
-# -- Check that conditions for handlers are not handled by the handlers
-# -- from the same block.
-
-CREATE PROCEDURE p8()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'H1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-SELECT 'H2' AS HandlerId;
-SIGNAL SQLSTATE '01000'; # Should *not* be handled by H1.
-END;
-SELECT 'S1' AS SignalId;
-SIGNAL SQLSTATE 'HY000'; # Should be handled by H2.
-END|
-
-CALL p8()|
-SignalId
-S1
-HandlerId
-H2
-Warnings:
-Warning 1642 Unhandled user-defined warning condition
-
-# -- Check that conditions for handlers are not handled by the handlers
-# -- from the same block even if they are thrown deep down the stack.
-
-CREATE PROCEDURE p9()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'Wrong:H1:1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'Wrong:H1:2' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'Wrong:H2:1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'Wrong:H2:2' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'Wrong:H3:1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'Wrong:H3:2' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'Wrong:H4:1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'Wrong:H4:2' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'Wrong:H5:1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'Wrong:H5:2' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'Wrong:H6:1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'Wrong:H6:2' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-SELECT 'H2' AS HandlerId;
-SIGNAL SQLSTATE '01000'; # Should *not* be handled by H1.
-END;
-SELECT 'S6' AS SignalId;
-SIGNAL SQLSTATE 'HY000';
-END;
-SELECT 'S5' AS SignalId;
-SIGNAL SQLSTATE 'HY000';
-END;
-SELECT 'S4' AS SignalId;
-SIGNAL SQLSTATE 'HY000';
-END;
-SELECT 'S3' AS SignalId;
-SIGNAL SQLSTATE 'HY000';
-END;
-SELECT 'S2' AS SignalId;
-SIGNAL SQLSTATE 'HY000';
-END;
-SELECT 'S1' AS SignalId;
-SIGNAL SQLSTATE 'HY000'; # Should be handled by H2.
-END|
-
-CALL p9()|
-SignalId
-S1
-SignalId
-S2
-SignalId
-S3
-SignalId
-S4
-SignalId
-S5
-SignalId
-S6
-HandlerId
-H2
-Warnings:
-Warning 1642 Unhandled user-defined warning condition
-
-# -- Check that handlers are choosen properly in case of deep stack and
-# -- nested SQL-blocks.
-
-CREATE PROCEDURE p10()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'H1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'H2' AS HandlerId;
-BEGIN
-BEGIN
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'Wrong:H1:1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'Wrong:H1:2' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'Wrong:H2:1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'Wrong:H2:2' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'Wrong:H3:1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'Wrong:H3:2' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'Wrong:H4:1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'Wrong:H4:2' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'Wrong:H5:1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'Wrong:H5:2' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000'
- SELECT 'Wrong:H6:1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'Wrong:H6:2' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-BEGIN
-SELECT 'H2' AS HandlerId;
-SIGNAL SQLSTATE '01000'; # Should be handled by H1.
-END;
-SELECT 'S6' AS SignalId;
-SIGNAL SQLSTATE 'HY000';
-END;
-SELECT 'S5' AS SignalId;
-SIGNAL SQLSTATE 'HY000';
-END;
-SELECT 'S4' AS SignalId;
-SIGNAL SQLSTATE 'HY000';
-END;
-SELECT 'S3' AS SignalId;
-SIGNAL SQLSTATE 'HY000';
-END;
-SELECT 'S2' AS SignalId;
-SIGNAL SQLSTATE 'HY000';
-END;
-SELECT 'S1' AS SignalId;
-SIGNAL SQLSTATE 'HY000'; # Should be handled by H2.
-END;
-END;
-END;
-END|
-
-CALL p10()|
-SignalId
-S1
-SignalId
-S2
-SignalId
-S3
-SignalId
-S4
-SignalId
-S5
-SignalId
-S6
-HandlerId
-H2
-HandlerId
-H1
-
-# -- Test stored procedure from Peter's mail.
-
-CREATE PROCEDURE p11()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-SELECT 'H1' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'H2' AS HandlerId;
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01000', 1249
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
-SELECT 'H3' AS HandlerId;
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-SELECT 'H4' AS HandlerId;
-BEGIN
-SELECT 'H5' AS HandlerId;
-SELECT 'S3' AS SignalId;
-SIGNAL SQLSTATE 'HY000'; # H3
-SELECT 'S4' AS SignalId;
-SIGNAL SQLSTATE '22003'; # H3
-SELECT 'S5' AS SignalId;
-SIGNAL SQLSTATE '01000' SET MYSQL_ERRNO = 1249; # H4
-END;
-END;
-SELECT 'S6' AS SignalId;
-SIGNAL SQLSTATE 'HY000'; # H1
-SELECT 'S7' AS SignalId;
-SIGNAL SQLSTATE '22003'; # H1
-SELECT 'S8' AS SignalId;
-SIGNAL SQLSTATE '01000' SET MYSQL_ERRNO = 1249; # H5
-END;
-SELECT 'S1' AS SignalId;
-SIGNAL SQLSTATE 'HY000'; # H1
-SELECT 'S2' AS SignalId;
-SIGNAL SQLSTATE '01000' SET MYSQL_ERRNO = 1249; # H2
-END|
-
-CALL p11()|
-SignalId
-S6
-HandlerId
-H1
-SignalId
-S7
-HandlerId
-H1
-SignalId
-S8
-HandlerId
-H5
-SignalId
-S3
-HandlerId
-H3
-SignalId
-S4
-HandlerId
-H3
-SignalId
-S5
-HandlerId
-H4
-SignalId
-S1
-HandlerId
-H1
-SignalId
-S2
-HandlerId
-H2
-
-# -- Check that runtime stack-trace can be deeper than parsing-time one.
-
-CREATE PROCEDURE p12()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01001'
- BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01001'
- BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01001'
- BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01001'
- BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01001'
- BEGIN
-SELECT 'H1:5' AS HandlerId;
-SIGNAL SQLSTATE '01002';
-END;
-SELECT 'H1:4' AS HandlerId;
-SIGNAL SQLSTATE '01001';
-END;
-SELECT 'H1:3' AS HandlerId;
-SIGNAL SQLSTATE '01001';
-END;
-SELECT 'H1:2' AS HandlerId;
-SIGNAL SQLSTATE '01001';
-END;
-SELECT 'H1:1' AS HandlerId;
-SIGNAL SQLSTATE '01001';
-END;
-#########################################################
-DECLARE CONTINUE HANDLER FOR SQLSTATE '01002'
- SELECT 'OK' AS Msg;
-#########################################################
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-BEGIN
-SELECT 'H2:5' AS HandlerId;
-SIGNAL SQLSTATE '01001';
-END;
-SELECT 'H2:4' AS HandlerId;
-SIGNAL SQLSTATE '01000';
-END;
-SELECT 'H2:3' AS HandlerId;
-SIGNAL SQLSTATE '01000';
-END;
-SELECT 'H2:2' AS HandlerId;
-SIGNAL SQLSTATE '01000';
-END;
-SELECT 'H2:1' AS HandlerId;
-SIGNAL SQLSTATE '01000';
-END;
-#######################################################
-SELECT 'Throw 01000' AS Msg;
-SIGNAL SQLSTATE '01000';
-END;
-END|
-
-CALL p12()|
-Msg
-Throw 01000
-HandlerId
-H2:1
-HandlerId
-H2:2
-HandlerId
-H2:3
-HandlerId
-H2:4
-HandlerId
-H2:5
-HandlerId
-H1:1
-HandlerId
-H1:2
-HandlerId
-H1:3
-HandlerId
-H1:4
-HandlerId
-H1:5
-Warnings:
-Warning 1642 Unhandled user-defined warning condition
-
-# -- Check that handler-call-frames are removed properly for EXIT
-# -- handlers.
-
-CREATE PROCEDURE p13()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING
-BEGIN
-DECLARE EXIT HANDLER FOR SQLWARNING
-BEGIN
-SELECT 'EXIT handler 3' AS Msg;
-END;
-SELECT 'CONTINUE handler 2: 1' AS Msg;
-SIGNAL SQLSTATE '01000';
-SELECT 'CONTINUE handler 2: 2' AS Msg;
-END;
-SELECT 'CONTINUE handler 1: 1' AS Msg;
-SIGNAL SQLSTATE '01000';
-SELECT 'CONTINUE handler 1: 2' AS Msg;
-END;
-SELECT 'Throw 01000' AS Msg;
-SIGNAL SQLSTATE '01000';
-END|
-
-CALL p13()|
-Msg
-Throw 01000
-Msg
-CONTINUE handler 1: 1
-Msg
-CONTINUE handler 2: 1
-Msg
-EXIT handler 3
-Msg
-CONTINUE handler 1: 2
-
-# That's it. Cleanup.
-
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP PROCEDURE p3;
-DROP PROCEDURE p4;
-DROP PROCEDURE p5;
-DROP PROCEDURE p6;
-DROP PROCEDURE p7;
-DROP PROCEDURE p8;
-DROP PROCEDURE p9;
-DROP PROCEDURE p10;
-DROP PROCEDURE p11;
-DROP PROCEDURE p12;
-DROP PROCEDURE p13;
-
-# Bug#12731619: NESTED SP HANDLERS CAN TRIGGER ASSERTION
-
-DROP FUNCTION IF EXISTS f1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(msg VARCHAR(255));
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION # handler 1
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION # handler 2
-BEGIN
-INSERT INTO t1 VALUE('WRONG: Inside H2');
-RETURN 2;
-END;
-INSERT INTO t1 VALUE('CORRECT: Inside H1');
-RETURN 1;
-END;
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING # handler 3
-BEGIN
-INSERT INTO t1 VALUE('WRONG: Inside H3');
-RETURN 3;
-END;
-INSERT INTO t1 VALUE('CORRECT: Calling f1()');
-RETURN f1(); # -- exception here
-END;
-INSERT INTO t1 VALUE('WRONG: Returning 10');
-RETURN 10;
-END|
-
-SELECT f1();
-f1()
-1
-
-SELECT * FROM t1;
-msg
-CORRECT: Calling f1()
-CORRECT: Inside H1
-
-DROP FUNCTION f1;
-DROP TABLE t1;
-
-# Check that handled SQL-conditions are properly cleared from DA.
-
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-DROP PROCEDURE IF EXISTS p3;
-DROP PROCEDURE IF EXISTS p4;
-DROP PROCEDURE IF EXISTS p5;
-CREATE TABLE t1(a CHAR, b CHAR, c CHAR);
-CREATE TABLE t2(a SMALLINT, b SMALLINT, c SMALLINT);
-
-# Check that SQL-conditions for which SQL-handler has been invoked,
-# are cleared from the Diagnostics Area. Note, there might be several
-# SQL-conditions, but SQL-handler must be invoked only once.
-
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE EXIT HANDLER FOR SQLWARNING
-SELECT 'Warning caught' AS msg;
-# The INSERT below raises 3 SQL-conditions (warnings). The EXIT HANDLER
-# above must be invoked once (for one condition), but all three conditions
-# must be cleared from the Diagnostics Area.
-INSERT IGNORE INTO t1 VALUES('qqqq', 'ww', 'eee');
-# The following INSERT will not be executed, because of the EXIT HANDLER.
-INSERT INTO t1 VALUES('zzz', 'xx', 'yyyy');
-END|
-
-CALL p1()|
-msg
-Warning caught
-
-SELECT * FROM t1|
-a b c
-q w e
-
-# Check that SQL-conditions for which SQL-handler has *not* been
-# invoked, are *still* cleared from the Diagnostics Area.
-
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE CONTINUE HANDLER FOR 1292
-SELECT 'Warning 1292 caught' AS msg;
-# The following INSERT raises 6 SQL-warnings with code 1292,
-# and 3 SQL-warnings with code 1264. The CONTINUE HANDLER above must be
-# invoked once, and all nine SQL-warnings must be cleared from
-# the Diagnostics Area.
-INSERT IGNORE INTO t2
-SELECT
-CAST(CONCAT(CAST('1 ' AS UNSIGNED INTEGER), '999999 ') AS SIGNED INTEGER),
-CAST(CONCAT(CAST('2 ' AS UNSIGNED INTEGER), '999999 ') AS SIGNED INTEGER),
-CAST(CONCAT(CAST('3 ' AS UNSIGNED INTEGER), '999999 ') AS SIGNED INTEGER);
-END|
-
-CALL p2()|
-msg
-Warning 1292 caught
-
-# Check that if there are two equally ranked SQL-handlers to handle
-# SQL-conditions from SQL-statement, only one of them will be invoked.
-
-CREATE PROCEDURE p3()
-BEGIN
-DECLARE CONTINUE HANDLER FOR 1292
-SELECT 'Warning 1292 caught' AS msg;
-DECLARE CONTINUE HANDLER FOR 1264
-SELECT 'Warning 1264 caught' AS msg;
-# The following INSERT raises 6 SQL-warnings with code 1292,
-# and 3 SQL-warnings with code 1264. Only one of the CONTINUE HANDLERs above
-# must be called, and only once. The SQL Standard does not define, which one
-# should be invoked.
-INSERT INTO t2
-SELECT
-CAST(CONCAT(CAST('1 ' AS UNSIGNED INTEGER), '999999 ') AS SIGNED INTEGER),
-CAST(CONCAT(CAST('2 ' AS UNSIGNED INTEGER), '999999 ') AS SIGNED INTEGER),
-CAST(CONCAT(CAST('3 ' AS UNSIGNED INTEGER), '999999 ') AS SIGNED INTEGER);
-END|
-
-CALL p3()|
-msg
-Warning 1264 caught
-
-# The same as p3, but 1264 comes first.
-
-CREATE PROCEDURE p4()
-BEGIN
-DECLARE CONTINUE HANDLER FOR 1292
-SELECT 'Warning 1292 caught' AS msg;
-DECLARE CONTINUE HANDLER FOR 1264
-SELECT 'Warning 1264 caught' AS msg;
-# The following INSERT raises 4 SQL-warnings with code 1292,
-# and 3 SQL-warnings with code 1264. Only one of the CONTINUE HANDLERs above
-# must be called, and only once. The SQL Standard does not define, which one
-# should be invoked.
-INSERT INTO t2
-SELECT
-CAST(999999 AS SIGNED INTEGER),
-CAST(CONCAT(CAST('2 ' AS UNSIGNED INTEGER), '999999 ') AS SIGNED INTEGER),
-CAST(CONCAT(CAST('3 ' AS UNSIGNED INTEGER), '999999 ') AS SIGNED INTEGER);
-END|
-
-CALL p4()|
-msg
-Warning 1264 caught
-
-# Check that if a SQL-handler raised its own SQL-conditions, there are
-# preserved after handler exit.
-
-CREATE PROCEDURE p5()
-BEGIN
-DECLARE EXIT HANDLER FOR 1292
-BEGIN
-SELECT 'Handler for 1292 (1)' AS Msg;
-SIGNAL SQLSTATE '01000' SET MYSQL_ERRNO = 1234;
-SHOW WARNINGS;
-SELECT 'Handler for 1292 (2)' AS Msg;
-END;
-INSERT IGNORE INTO t2
-SELECT
-CAST(999999 AS SIGNED INTEGER),
-CAST(CONCAT(CAST('2 ' AS UNSIGNED INTEGER), '999999 ') AS SIGNED INTEGER),
-CAST(CONCAT(CAST('3 ' AS UNSIGNED INTEGER), '999999 ') AS SIGNED INTEGER);
-END|
-
-CALL p5()|
-Msg
-Handler for 1292 (1)
-Level Code Message
-Warning 1234 Unhandled user-defined warning condition
-Msg
-Handler for 1292 (2)
-Warnings:
-Warning 1234 Unhandled user-defined warning condition
-
-# Check that SQL-conditions are available inside the handler, but
-# cleared after the handler exits.
-
-CREATE PROCEDURE p6()
-BEGIN
-DECLARE CONTINUE HANDLER FOR 1292
-BEGIN
-SHOW WARNINGS;
-SELECT 'Handler for 1292' Msg;
-END;
-INSERT IGNORE INTO t2
-SELECT
-CAST(CONCAT(CAST('1 ' AS UNSIGNED INTEGER), '999999 ') AS SIGNED INTEGER),
-CAST(CONCAT(CAST('2 ' AS UNSIGNED INTEGER), '999999 ') AS SIGNED INTEGER),
-CAST(CONCAT(CAST('3 ' AS UNSIGNED INTEGER), '999999 ') AS SIGNED INTEGER);
-END|
-
-CALL p6()|
-Level Code Message
-Note 1292 Truncated incorrect INTEGER value: '1 '
-Note 1292 Truncated incorrect INTEGER value: '1999999 '
-Warning 1264 Out of range value for column 'a' at row 1
-Note 1292 Truncated incorrect INTEGER value: '2 '
-Note 1292 Truncated incorrect INTEGER value: '2999999 '
-Warning 1264 Out of range value for column 'b' at row 1
-Note 1292 Truncated incorrect INTEGER value: '3 '
-Note 1292 Truncated incorrect INTEGER value: '3999999 '
-Warning 1264 Out of range value for column 'c' at row 1
-Msg
-Handler for 1292
-
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP PROCEDURE p3;
-DROP PROCEDURE p4;
-DROP PROCEDURE p5;
-DROP PROCEDURE p6;
-DROP TABLE t1;
-DROP TABLE t2;
-
-# Bug#13059316: ASSERTION FAILURE IN SP_RCONTEXT.CC
-# Check DECLARE statements that raise conditions before handlers
-# are declared.
-
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-SET sql_mode = '';
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE var1 INTEGER DEFAULT 'string';
-DECLARE EXIT HANDLER FOR SQLWARNING SELECT 'H1';
-END|
-
-CALL p1()|
-Warnings:
-Warning 1366 Incorrect integer value: 'string' for column 'var1' at row 1
-
-SET sql_mode = DEFAULT;
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE EXIT HANDLER FOR SQLWARNING SELECT 'H2';
-CALL p1();
-END|
-
-CALL p2()|
-H2
-H2
-
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-#
-# Bug#13113222 RQG_SIGNAL_RESIGNAL FAILED WITH ASSERTION.
-#
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SELECT 'triggered p1';
-# This will trigger an error.
-SIGNAL SQLSTATE 'HY000';
-END|
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLWARNING SELECT 'triggered p2';
-# This will trigger a warning.
-SIGNAL SQLSTATE '01000';
-END|
-SET @old_max_error_count= @@session.max_error_count;
-SET SESSION max_error_count= 0;
-CALL p1();
-triggered p1
-triggered p1
-CALL p2();
-SET SESSION max_error_count= @old_max_error_count;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-
-# Bug#12652873: 61392: Continue handler for NOT FOUND being triggered
-# from internal stored function.
-
-DROP FUNCTION IF EXISTS f1;
-DROP FUNCTION IF EXISTS f2;
-DROP TABLE IF EXISTS t1;
-
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1, 2);
-
-# f1() raises NOT_FOUND condition.
-# Raising NOT_FOUND can not be simulated by SIGNAL,
-# because SIGNAL would raise SQL-error in that case.
-
-CREATE FUNCTION f1() RETURNS INTEGER
-BEGIN
-DECLARE v VARCHAR(5) DEFAULT -1;
-SELECT b FROM t1 WHERE a = 2 INTO v;
-RETURN v;
-END|
-
-# Here we check that the NOT_FOUND condition raised in f1()
-# is not visible in the outer function (f2), i.e. the continue
-# handler in f2() will not be called.
-
-CREATE FUNCTION f2() RETURNS INTEGER
-BEGIN
-DECLARE v INTEGER;
-DECLARE CONTINUE HANDLER FOR NOT FOUND
-SET @msg = 'Handler activated.';
-SELECT f1() INTO v;
-RETURN v;
-END|
-SET @msg = '';
-
-SELECT f2();
-f2()
--1
-
-SELECT @msg;
-@msg
-
-
-DROP FUNCTION f1;
-DROP FUNCTION f2;
-DROP TABLE t1;
diff --git a/mysql-test/r/sp-fib.result b/mysql-test/r/sp-fib.result
deleted file mode 100644
index a26e104c1e8..00000000000
--- a/mysql-test/r/sp-fib.result
+++ /dev/null
@@ -1,33 +0,0 @@
-drop table if exists t3;
-create table t3 ( f bigint unsigned not null );
-drop procedure if exists fib;
-create procedure fib(n int unsigned)
-begin
-if n > 1 then
-begin
-declare x, y bigint unsigned;
-declare c cursor for select f from t3 order by f desc limit 2;
-open c;
-fetch c into y;
-fetch c into x;
-insert into t3 values (x+y);
-call fib(n-1);
-## Close the cursor AFTER the recursion to ensure that the stack
-## frame is somewhat intact.
-close c;
-end;
-end if;
-end|
-set @@max_sp_recursion_depth= 20|
-insert into t3 values (0), (1)|
-call fib(4)|
-select * from t3 order by f asc|
-f
-0
-1
-1
-2
-3
-drop table t3|
-drop procedure fib|
-set @@max_sp_recursion_depth= 0|
diff --git a/mysql-test/r/sp-for-loop.result b/mysql-test/r/sp-for-loop.result
deleted file mode 100644
index 0da09586df5..00000000000
--- a/mysql-test/r/sp-for-loop.result
+++ /dev/null
@@ -1,208 +0,0 @@
-#
-# MDEV-14415 Add Oracle-style FOR loop to sql_mode=DEFAULT
-#
-CREATE TABLE t1 (a INT);
-FOR i IN 1..3
-DO
-INSERT INTO t1 VALUES (i);
-END FOR;
-/
-SELECT * FROM t1;
-a
-1
-2
-3
-DROP TABLE t1;
-CREATE FUNCTION f1 (lower_bound INT, upper_bound INT, lim INT) RETURNS INT
-BEGIN
-DECLARE total INT DEFAULT 0;
-FOR i IN lower_bound . . upper_bound
-DO
-NULL
-END FOR;
-RETURN total;
-END;
-/
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '. upper_bound
-DO
-NULL
-END FOR;
-RETURN total;
-END' at line 4
-CREATE FUNCTION f1 (lower_bound INT, upper_bound INT, lim INT) RETURNS INT
-BEGIN
-DECLARE total INT DEFAULT 0;
-lab:
-FOR i IN lower_bound .. upper_bound
-DO
-SET total= total + i;
-IF i = lim THEN
-LEAVE lab;
-END IF;
--- Bounds are calculated only once.
--- The below assignments have no effect on the loop condition
-SET lower_bound= 900;
-SET upper_bound= 1000;
-END FOR;
-RETURN total;
-END;
-/
-SELECT f1(1, 3, 100) FROM DUAL;
-f1(1, 3, 100)
-6
-SELECT f1(1, 3, 2) FROM DUAL;
-f1(1, 3, 2)
-3
-DROP FUNCTION f1;
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-DECLARE total INT DEFAULT 0;
-FOR i IN 1 .. 5
-DO
-SET total= total + 1000;
-forj:
-FOR j IN 1 .. 5
-DO
-SET total= total + 1;
-IF j = 3 THEN
-LEAVE forj; -- End the internal loop
-END IF;
-END FOR;
-END FOR;
-RETURN total;
-END;
-/
-SELECT f1() FROM DUAL;
-f1()
-5015
-DROP FUNCTION f1;
-CREATE FUNCTION f1 (a INT, b INT) RETURNS INT
-BEGIN
-DECLARE total INT DEFAULT 0;
-fori:
-FOR i IN REVERSE a..1
-DO
-SET total= total + i;
-IF i = b THEN
-LEAVE fori;
-END IF;
-END FOR;
-RETURN total;
-END
-/
-SELECT f1(3, 100) FROM DUAL;
-f1(3, 100)
-6
-SELECT f1(3, 2) FROM DUAL;
-f1(3, 2)
-5
-DROP FUNCTION f1;
-# Testing labeled FOR LOOP statement
-CREATE FUNCTION f1 (a INT, limita INT, b INT, limitb INT) RETURNS INT
-BEGIN
-DECLARE total INT DEFAULT 0;
-la:
-FOR ia IN 1 .. a
-DO
-SET total= total + 1000;
-lb:
-FOR ib IN 1 .. b
-DO
-SET total= total + 1;
-IF ib = limitb THEN
-LEAVE lb;
-END IF;
-IF ia = limita THEN
-LEAVE la;
-END IF;
-END FOR lb;
-END FOR la;
-RETURN total;
-END;
-/
-SELECT f1(1, 1, 1, 1) FROM DUAL;
-f1(1, 1, 1, 1)
-1001
-SELECT f1(1, 2, 1, 2) FROM DUAL;
-f1(1, 2, 1, 2)
-1001
-SELECT f1(2, 1, 2, 1) FROM DUAL;
-f1(2, 1, 2, 1)
-2002
-SELECT f1(2, 1, 2, 2) FROM DUAL;
-f1(2, 1, 2, 2)
-1001
-SELECT f1(2, 2, 2, 2) FROM DUAL;
-f1(2, 2, 2, 2)
-2003
-SELECT f1(2, 3, 2, 3) FROM DUAL;
-f1(2, 3, 2, 3)
-2004
-DROP FUNCTION f1;
-# Testing labeled ITERATE in a labeled FOR LOOP statement
-CREATE FUNCTION f1 (a INT, b INT, blim INT) RETURNS INT
-BEGIN
-DECLARE total INT DEFAULT 0;
-la:
-FOR ia IN 1 .. a
-DO
-SET total= total + 1000;
-BEGIN
-DECLARE ib INT DEFAULT 1;
-WHILE ib <= b
-DO
-IF ib > blim THEN
-ITERATE la;
-END IF;
-SET ib= ib + 1;
-SET total= total + 1;
-END WHILE;
-END;
-END FOR la;
-RETURN total;
-END;
-/
-SELECT f1(3,3,0), f1(3,3,1), f1(3,3,2), f1(3,3,3), f1(3,3,4) FROM DUAL;
-f1(3,3,0) f1(3,3,1) f1(3,3,2) f1(3,3,3) f1(3,3,4)
-3000 3003 3006 3009 3009
-DROP FUNCTION f1;
-# Testing INTERATE statement
-CREATE FUNCTION f1(a INT) RETURNS INT
-BEGIN
-DECLARE total INT DEFAULT 0;
-fori:
-FOR i IN 1 .. a
-DO
-IF i=5 THEN
-ITERATE fori;
-END IF;
-SET total= total + 1;
-END FOR;
-RETURN total;
-END;
-/
-SELECT f1(3), f1(4), f1(5), f1(6) FROM DUAL;
-f1(3) f1(4) f1(5) f1(6)
-3 4 4 5
-DROP FUNCTION f1;
-CREATE FUNCTION f1(a INT) RETURNS INT
-BEGIN
-DECLARE total INT DEFAULT 0;
-lj:
-FOR j IN 1 .. 2
-DO
-FOR i IN 1 .. a
-DO
-IF i=5 THEN
-ITERATE lj;
-END IF;
-SET total= total + 1;
-END FOR;
-END FOR;
-RETURN total;
-END;
-/
-SELECT f1(3), f1(4), f1(5) FROM DUAL;
-f1(3) f1(4) f1(5)
-6 8 8
-DROP FUNCTION f1;
diff --git a/mysql-test/r/sp-group.result b/mysql-test/r/sp-group.result
deleted file mode 100644
index ce8dccfa2c9..00000000000
--- a/mysql-test/r/sp-group.result
+++ /dev/null
@@ -1,156 +0,0 @@
-drop table if exists t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-drop view if exists view_t1;
-Warnings:
-Note 4092 Unknown VIEW: 'test.view_t1'
-SET sql_mode=ONLY_FULL_GROUP_BY;
-CREATE TABLE t1 (
-pk INT,
-f0 INT, f1 INT, f2 INT, f3 INT, f4 INT,
-f5 INT, f6 INT, f7 INT, f8 INT, f9 INT,
-PRIMARY KEY (pk)
-);
-CREATE VIEW view_t1 AS SELECT * FROM t1;
-CREATE PROCEDURE s1()
-SELECT * FROM (
-INFORMATION_SCHEMA.`INNODB_BUFFER_PAGE_LRU` AS table1
-LEFT JOIN test.view_t1 AS table2
-ON ( table2.`f6` = table1.FREE_PAGE_CLOCK)
-)
-ORDER BY table1.NUMBER_RECORDS
-LIMIT 0
-;
-CALL s1;
-POOL_ID LRU_POSITION SPACE PAGE_NUMBER PAGE_TYPE FLUSH_TYPE FIX_COUNT IS_HASHED NEWEST_MODIFICATION OLDEST_MODIFICATION ACCESS_TIME TABLE_NAME INDEX_NAME NUMBER_RECORDS DATA_SIZE COMPRESSED_SIZE COMPRESSED IO_FIX IS_OLD FREE_PAGE_CLOCK pk f0 f1 f2 f3 f4 f5 f6 f7 f8 f9
-CALL s1;
-POOL_ID LRU_POSITION SPACE PAGE_NUMBER PAGE_TYPE FLUSH_TYPE FIX_COUNT IS_HASHED NEWEST_MODIFICATION OLDEST_MODIFICATION ACCESS_TIME TABLE_NAME INDEX_NAME NUMBER_RECORDS DATA_SIZE COMPRESSED_SIZE COMPRESSED IO_FIX IS_OLD FREE_PAGE_CLOCK pk f0 f1 f2 f3 f4 f5 f6 f7 f8 f9
-drop table t1;
-drop view view_t1;
-drop procedure s1;
-CREATE TABLE A (
-pk INTEGER AUTO_INCREMENT,
-col_int_key INTEGER,
-col_varchar_key VARCHAR(1),
-PRIMARY KEY (pk)
-) ENGINE=MyISAM;
-CREATE VIEW view_A AS SELECT * FROM A;
-CREATE TABLE C (
-pk INTEGER AUTO_INCREMENT,
-col_int_nokey INTEGER,
-col_int_key INTEGER,
-col_date_key DATE,
-col_date_nokey DATE,
-col_time_key TIME,
-col_time_nokey TIME,
-col_datetime_key DATETIME,
-col_datetime_nokey DATETIME,
-col_varchar_key VARCHAR(1),
-col_varchar_nokey VARCHAR(1),
-PRIMARY KEY (pk)
-) ENGINE=MyISAM;
-CREATE VIEW view_C AS SELECT * FROM C;
-CREATE TABLE AA (
-pk INTEGER AUTO_INCREMENT,
-col_int_nokey INTEGER,
-col_int_key INTEGER,
-col_date_key DATE,
-col_date_nokey DATE,
-col_time_key TIME,
-col_time_nokey TIME,
-col_datetime_key DATETIME,
-col_datetime_nokey DATETIME,
-col_varchar_key VARCHAR(1),
-col_varchar_nokey VARCHAR(1),
-PRIMARY KEY (pk),
-KEY (col_varchar_key, col_int_key)
-) ENGINE=MyISAM;
-CREATE VIEW view_AA AS SELECT * FROM AA;
-CREATE TABLE BB (
-pk INTEGER AUTO_INCREMENT,
-col_int_key INTEGER,
-col_varchar_key VARCHAR(1),
-col_varchar_nokey VARCHAR(1),
-PRIMARY KEY (pk),
-KEY (col_varchar_key, col_int_key)
-) ENGINE=MyISAM;
-CREATE VIEW view_BB AS SELECT * FROM BB;
-CREATE TABLE DD (
-pk INTEGER AUTO_INCREMENT,
-col_int_key INTEGER,
-col_date_key DATE,
-col_time_key TIME,
-col_datetime_key DATETIME,
-col_varchar_key VARCHAR(1),
-PRIMARY KEY (pk),
-KEY (col_varchar_key, col_int_key)
-) ENGINE=MyISAM;
-CREATE VIEW view_DD AS SELECT * FROM DD;
-CREATE TRIGGER k BEFORE INSERT ON `DD` FOR EACH ROW INSERT INTO `view_BB` SELECT * FROM `view_A` LIMIT 0 ;
-CREATE TRIGGER r BEFORE INSERT ON `A` FOR EACH ROW INSERT INTO `view_AA` SELECT * FROM `view_C` LIMIT 0 ;
-ALTER TABLE `DD` DROP PRIMARY KEY;
-ERROR 42000: Incorrect table definition; there can be only one auto column and it must be defined as a key
-INSERT INTO `view_A` ( `pk` ) VALUES (NULL);
-INSERT INTO `DD` ( `pk` ) VALUES (NULL);
-INSERT INTO `A` ( `pk` ) VALUES (NULL);
-INSERT INTO `view_DD` ( `pk` ) VALUES (NULL);
-drop trigger r;
-drop trigger k;
-drop view view_A,view_AA,view_C,view_BB,view_DD;
-drop table A,C,AA,BB,DD;
-CREATE TABLE A (
-i INT,
-i1 INT,
-i2 INT,
-d1 DATE,
-d2 DATE,
-col_time_nokey1 TIME,
-col_time_nokey2 TIME,
-col_datetime_nokey1 DATETIME,
-col_datetime_nokey2 DATETIME,
-col_varchar_nokey1 VARCHAR(1),
-col_varchar_nokey2 VARCHAR(1)
-) ENGINE=MyISAM;
-CREATE VIEW view_A AS SELECT * FROM A;
-CREATE TABLE B (
-col_varchar_nokey VARCHAR(1)
-) ENGINE=MyISAM;
-CREATE TABLE AA (
-i INT,
-i1 INT,
-i2 INT,
-d1 DATE,
-d2 DATE,
-col_time_nokey1 TIME,
-col_time_nokey2 TIME,
-col_datetime_nokey1 DATETIME,
-col_datetime_nokey2 DATETIME,
-col_varchar_nokey1 VARCHAR(1),
-col_varchar_nokey2 VARCHAR(1)
-) ENGINE=MyISAM;
-CREATE VIEW view_AA AS SELECT * FROM AA;
-CREATE TABLE DD (
-i INT,
-i1 INT,
-i2 INT,
-d1 DATE,
-d2 DATE,
-col_time_nokey1 TIME,
-col_time_nokey2 TIME,
-col_datetime_nokey1 DATETIME,
-col_datetime_nokey2 DATETIME,
-col_varchar_nokey1 VARCHAR(1),
-col_varchar_nokey2 VARCHAR(1)
-) ENGINE=MyISAM;
-CREATE VIEW view_DD AS SELECT * FROM DD;
-CREATE TRIGGER tr1 BEFORE INSERT ON `AA` FOR EACH ROW INSERT INTO `view_A` SELECT * FROM `view_AA` LIMIT 0 ;
-CREATE TRIGGER tr2 BEFORE INSERT ON `B` FOR EACH ROW INSERT INTO `D` SELECT * FROM `A` LIMIT 0 ;
-INSERT INTO `view_AA` ( `i` ) VALUES (1);
-INSERT INTO `AA` ( `i` ) VALUES (2);
-DELETE FROM `B`;
-INSERT INTO `view_DD` ( `i` ) VALUES (1);
-INSERT INTO `view_AA` ( `i` ) VALUES (3);
-drop trigger tr1;
-drop trigger tr2;
-drop view view_A, view_AA,view_DD;
-drop table A,B,AA,DD;
diff --git a/mysql-test/r/sp-innodb.result b/mysql-test/r/sp-innodb.result
deleted file mode 100644
index 2c3bc7dc4f3..00000000000
--- a/mysql-test/r/sp-innodb.result
+++ /dev/null
@@ -1,135 +0,0 @@
-drop table if exists t1,t2;
-drop procedure if exists p1;
-#
-#MDEV-6985: MariaDB crashes on stored procedure call
-#
-CREATE TABLE `t1` (
-`ID` int(11) NOT NULL,
-PRIMARY KEY (`ID`)
-) ENGINE=InnoDB;
-CREATE TABLE `t2` (
-`ID` int(11) NOT NULL,
-`DATE` datetime DEFAULT NULL,
-PRIMARY KEY (`ID`)
-) ENGINE=InnoDB;
-CREATE PROCEDURE `p1`()
-BEGIN
-DECLARE _mySelect CURSOR FOR
-SELECT DISTINCT t1.ID
-FROM t1
-LEFT JOIN t2 AS t2 ON
-t2.ID = t1.ID
-AND t2.DATE = (
-SELECT MAX(T3.DATE) FROM t2 AS T3 WHERE T3.ID = t2.ID AND T3.DATE<=NOW()
-)
-WHERE t1.ID = 1;
-OPEN _mySelect;
-CLOSE _mySelect;
-END ;;
-CALL p1();
-CALL p1();
-drop procedure p1;
-drop table t1,t2;
-
-#
-# BUG 16041903: CONTINUE HANDLER NOT INVOKED
-# IN A STORED FUNCTION AFTER A LOCK WAIT TIMEOUT
-#
-
-# Save and set lock wait timeout
-SET @lock_wait_timeout_saved= @@lock_wait_timeout;
-SET @innodb_lock_wait_timeout_saved= @@innodb_lock_wait_timeout;
-SET @@lock_wait_timeout= 1;
-SET @@innodb_lock_wait_timeout= 1;
-
-# Create a function with exit handler:
-CREATE FUNCTION f1() RETURNS VARCHAR(20)
-BEGIN
-DECLARE EXIT HANDLER FOR SQLSTATE '42S02' RETURN 'No such table';
-INSERT INTO no_such_table VALUES (1);
-END//
-
-# Create a function calling f1():
-CREATE FUNCTION f2() RETURNS VARCHAR(20)
-BEGIN
-RETURN f1();
-END//
-
-# Create a function provoking deadlock:
-CREATE FUNCTION f3() RETURNS VARCHAR(20)
-BEGIN
-UPDATE t1 SET i= 1 WHERE i= 1;
-RETURN 'Will never get here';
-END//
-
-# Create a function calling f3, to create
-# a deadlock indirectly:
-CREATE FUNCTION f4() RETURNS VARCHAR(20)
-BEGIN
-RETURN f3();
-END//
-
-# Open another connection, create and initialize a table
-# to be used for provoking deadlock, put a lock on the table:
-connect con1,localhost,root,,;
-CREATE TABLE t1 (i INT) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1);
-SET AUTOCOMMIT= 0;
-UPDATE t1 SET i=1 WHERE i=1;
-
-# On the default connection, do an update to provoke a
-# deadlock, then call the function with handler. This case
-# fails without the patch (with error ER_NO_SUCH_TABLE):
-connection default;
-SET AUTOCOMMIT= 0;
-UPDATE t1 SET i=1 WHERE i=1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-SELECT f1() AS 'f1():';
-f1():
-No such table
-
-# Provoke another deadlock, then call the function with
-# handler indirectly. This case fails without the patch
-# (with error ER_NO_SUCH_TABLE):
-UPDATE t1 SET i= 1 WHERE i= 1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-SELECT f2() AS 'f2():';
-f2():
-No such table
-
-# Provoke yet another deadlock, but now from within a function,
-# then call the function with handler. This succeeds even
-# without the patch because is_fatal_sub_stmt_error is reset
-# in restore_sub_stmt after the failing function has been
-# executed. The test case is included anyway for better coverage:
-SELECT f3() AS 'f3():';
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-SELECT f1() AS 'f1():';
-f1():
-No such table
-# Provoke yet another deadlock, but now from within a function,
-# calling another function, then call the function with handler.
-# This succeeds even without the patch because
-# is_fatal_sub_stmt_error is reset in restore_sub_stmt after
-# the failing function has been executed. The test case is
-# included anyway for better coverage:
-SELECT f4() AS 'f4():';
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-SELECT f1() AS 'f1():';
-f1():
-No such table
-
-# Disconnect, drop functions and table:
-disconnect con1;
-DROP FUNCTION f4;
-DROP FUNCTION f3;
-DROP FUNCTION f2;
-DROP FUNCTION f1;
-DROP TABLE t1;
-
-# Reset lock wait timeouts
-SET @@lock_wait_timeout= @lock_wait_timeout_saved;
-SET @@innodb_lock_wait_timeout= @innodb_lock_wait_timeout_saved;
-#
-# BUG 16041903: End of test case
-#
diff --git a/mysql-test/r/sp-lock.result b/mysql-test/r/sp-lock.result
deleted file mode 100644
index acf951f6676..00000000000
--- a/mysql-test/r/sp-lock.result
+++ /dev/null
@@ -1,846 +0,0 @@
-#
-# Test coverage for changes performed by the fix
-# for Bug#30977 "Concurrent statement using stored function
-# and DROP FUNCTION breaks SBR.
-#
-#
-# 1) Verify that the preceding transaction is
-# (implicitly) committed before CREATE/ALTER/DROP
-# PROCEDURE. Note, that this is already tested
-# in implicit_commit.test, but here we use an alternative
-# approach.
-#
-# Start a transaction, create a savepoint,
-# then call a DDL operation on a procedure, and then check
-# that the savepoint is no longer present.
-drop table if exists t1;
-drop procedure if exists p1;
-drop procedure if exists p2;
-drop procedure if exists p3;
-drop procedure if exists p4;
-drop function if exists f1;
-create table t1 (a int);
-#
-# Test 'CREATE PROCEDURE'.
-#
-begin;
-savepoint sv;
-create procedure p1() begin end;
-rollback to savepoint sv;
-ERROR 42000: SAVEPOINT sv does not exist
-#
-# Test 'ALTER PROCEDURE'.
-#
-begin;
-savepoint sv;
-alter procedure p1 comment 'changed comment';
-rollback to savepoint sv;
-ERROR 42000: SAVEPOINT sv does not exist
-#
-# Test 'DROP PROCEDURE'.
-#
-begin;
-savepoint sv;
-drop procedure p1;
-rollback to savepoint sv;
-ERROR 42000: SAVEPOINT sv does not exist
-#
-# Test 'CREATE FUNCTION'.
-#
-begin;
-savepoint sv;
-create function f1() returns int return 1;
-rollback to savepoint sv;
-ERROR 42000: SAVEPOINT sv does not exist
-#
-# Test 'ALTER FUNCTION'.
-#
-begin;
-savepoint sv;
-alter function f1 comment 'new comment';
-rollback to savepoint sv;
-ERROR 42000: SAVEPOINT sv does not exist
-#
-# Test 'DROP FUNCTION'.
-#
-begin;
-savepoint sv;
-drop function f1;
-rollback to savepoint sv;
-ERROR 42000: SAVEPOINT sv does not exist
-#
-# 2) Verify that procedure DDL operations fail
-# under lock tables.
-#
-# Auxiliary routines to test ALTER.
-create procedure p1() begin end;
-create function f1() returns int return 1;
-lock table t1 write;
-create procedure p2() begin end;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter procedure p1 comment 'changed comment';
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-drop procedure p1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-create function f2() returns int return 1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter function f1 comment 'changed comment';
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-lock table t1 read;
-create procedure p2() begin end;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter procedure p1 comment 'changed comment';
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-drop procedure p1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-create function f2() returns int return 1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter function f1 comment 'changed comment';
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-#
-# Even if we locked a temporary table.
-# Todo: this is a restriction we could possibly lift.
-#
-drop table t1;
-create temporary table t1 (a int);
-lock table t1 read;
-create procedure p2() begin end;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter procedure p1 comment 'changed comment';
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-drop procedure p1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-create function f2() returns int return 1;
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-alter function f1 comment 'changed comment';
-ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
-unlock tables;
-drop function f1;
-drop procedure p1;
-drop temporary table t1;
-#
-# 3) Verify that CREATE/ALTER/DROP routine grab an
-# exclusive lock.
-#
-# For that, start a transaction, use a routine. In a concurrent
-# connection, try to drop or alter the routine. It should place
-# a pending or exclusive lock and block. In another concurrnet
-# connection, try to use the routine.
-# That should block on the pending exclusive lock.
-#
-connect con1, localhost, root,,;
-connect con2, localhost, root,,;
-connect con3, localhost, root,,;
-#
-# Test DROP PROCEDURE.
-#
-connection default;
-create procedure p1() begin end;
-create function f1() returns int
-begin
-call p1();
-return 1;
-end|
-begin;
-select f1();
-f1()
-1
-connection con1;
-# Sending 'drop procedure p1'...
-drop procedure p1;
-connection con2;
-# Waiting for 'drop procedure t1' to get blocked on MDL lock...
-# Demonstrate that there is a pending exclusive lock.
-# Sending 'select f1()'...
-select f1();
-connection con3;
-# Waiting for 'select f1()' to get blocked by a pending MDL lock...
-connection default;
-commit;
-connection con1;
-# Reaping 'drop procedure p1'...
-connection con2;
-# Reaping 'select f1()'
-ERROR 42000: PROCEDURE test.p1 does not exist
-connection default;
-#
-# Test CREATE PROCEDURE.
-#
-create procedure p1() begin end;
-begin;
-select f1();
-f1()
-1
-connection con1;
-# Sending 'create procedure p1'...
-create procedure p1() begin end;
-connection con2;
-# Waiting for 'create procedure t1' to get blocked on MDL lock...
-# Demonstrate that there is a pending exclusive lock.
-# Sending 'select f1()'...
-select f1();
-connection con3;
-# Waiting for 'select f1()' to get blocked by a pending MDL lock...
-connection default;
-commit;
-connection con1;
-# Reaping 'create procedure p1'...
-ERROR 42000: PROCEDURE p1 already exists
-connection con2;
-# Reaping 'select f1()'
-f1()
-1
-connection default;
-#
-# Test ALTER PROCEDURE.
-#
-begin;
-select f1();
-f1()
-1
-connection con1;
-# Sending 'alter procedure p1'...
-alter procedure p1 contains sql;
-connection con2;
-# Waiting for 'alter procedure t1' to get blocked on MDL lock...
-# Demonstrate that there is a pending exclusive lock.
-# Sending 'select f1()'...
-select f1();
-connection con3;
-# Waiting for 'select f1()' to get blocked by a pending MDL lock...
-connection default;
-commit;
-connection con1;
-# Reaping 'alter procedure p1'...
-connection con2;
-# Reaping 'select f1()'
-f1()
-1
-connection default;
-#
-# Test DROP FUNCTION.
-#
-begin;
-select f1();
-f1()
-1
-connection con1;
-# Sending 'drop function f1'...
-drop function f1;
-connection con2;
-# Waiting for 'drop function f1' to get blocked on MDL lock...
-# Demonstrate that there is a pending exclusive lock.
-# Sending 'select f1()'...
-select f1();
-connection con3;
-# Waiting for 'select f1()' to get blocked by a pending MDL lock...
-connection default;
-commit;
-connection con1;
-# Reaping 'drop function f1'...
-connection con2;
-# Reaping 'select f1()'
-ERROR 42000: FUNCTION test.f1 does not exist
-connection default;
-#
-# Test CREATE FUNCTION.
-#
-create function f1() returns int return 1;
-begin;
-select f1();
-f1()
-1
-connection con1;
-# Sending 'create function f1'...
-create function f1() returns int return 2;
-connection con2;
-# Waiting for 'create function f1' to get blocked on MDL lock...
-# Demonstrate that there is a pending exclusive lock.
-# Sending 'select f1()'...
-select f1();
-connection con3;
-# Waiting for 'select f1()' to get blocked by a pending MDL lock...
-connection default;
-commit;
-connection con1;
-# Reaping 'create function f1'...
-ERROR 42000: FUNCTION f1 already exists
-connection con2;
-# Reaping 'select f1()'
-f1()
-1
-connection default;
-#
-# Test ALTER FUNCTION.
-#
-begin;
-select f1();
-f1()
-1
-connection con1;
-# Sending 'alter function f1'...
-alter function f1 contains sql;
-connection con2;
-# Waiting for 'alter function f1' to get blocked on MDL lock...
-# Demonstrate that there is a pending exclusive lock.
-# Sending 'select f1()'...
-select f1();
-connection con3;
-# Waiting for 'select f1()' to get blocked by a pending MDL lock...
-connection default;
-commit;
-connection con1;
-# Reaping 'alter function f1'...
-connection con2;
-# Reaping 'select f1()'
-f1()
-1
-connection default;
-drop function f1;
-drop procedure p1;
-#
-# 4) MDL lock should not be taken for
-# unrolled CALL statements.
-# The primary goal of metadata locks is a consistent binary log.
-# When a call statement is unrolled, it doesn't get to the
-# binary log, instead the statements that are contained
-# in the procedure body do. This can nest to any level.
-#
-create procedure p1() begin end;
-create procedure p2() begin end;
-create table t1 (a int);
-create procedure p3()
-begin
-call p1();
-call p1();
-call p2();
-end|
-create procedure p4()
-begin
-call p1();
-call p1();
-call p2();
-call p2();
-call p3();
-end|
-begin;
-select * from t1;
-a
-savepoint sv;
-call p4();
-# Prepared statement should not add any locks either.
-prepare stmt from "call p4()";
-execute stmt;
-execute stmt;
-connection con1;
-drop procedure p1;
-drop procedure p2;
-drop procedure p3;
-drop procedure p4;
-connection default;
-# This is to verify there was no implicit commit.
-rollback to savepoint sv;
-call p4();
-ERROR 42000: PROCEDURE test.p4 does not exist
-commit;
-drop table t1;
-#
-# 5) Locks should be taken on routines
-# used indirectly by views or triggers.
-#
-#
-# A function is used from a trigger.
-#
-create function f1() returns int return 1;
-create table t1 (a int);
-create table t2 (a int, b int);
-create trigger t1_ai after insert on t1 for each row
-insert into t2 (a, b) values (new.a, f1());
-begin;
-insert into t1 (a) values (1);
-connection con1;
-# Sending 'drop function f1'
-drop function f1;
-connection con2;
-# Waiting for 'drop function f1' to get blocked on MDL lock...
-connection default;
-commit;
-connection con1;
-# Reaping 'drop function f1'...
-connection default;
-#
-# A function is used from a view.
-#
-create function f1() returns int return 1;
-create view v1 as select f1() as a;
-begin;
-select * from v1;
-a
-1
-connection con1;
-# Sending 'drop function f1'
-drop function f1;
-connection con2;
-# Waiting for 'drop function f1' to get blocked on MDL lock...
-connection default;
-commit;
-connection con1;
-# Reaping 'drop function f1'...
-connection default;
-#
-# A procedure is used from a function.
-#
-create function f1() returns int
-begin
-declare v_out int;
-call p1(v_out);
-return v_out;
-end|
-create procedure p1(out v_out int) set v_out=3;
-begin;
-select * from v1;
-a
-3
-connection con1;
-# Sending 'drop procedure p1'
-drop procedure p1;
-connection con2;
-# Waiting for 'drop procedure p1' to get blocked on MDL lock...
-connection default;
-commit;
-connection con1;
-# Reaping 'drop procedure p1'...
-connection default;
-#
-# Deep nesting: a function is used from a procedure used
-# from a function used from a view used in a trigger.
-#
-create function f2() returns int return 4;
-create procedure p1(out v_out int) set v_out=f2();
-drop trigger t1_ai;
-create trigger t1_ai after insert on t1 for each row
-insert into t2 (a, b) values (new.a, (select max(a) from v1));
-begin;
-insert into t1 (a) values (3);
-connection con1;
-# Sending 'drop function f2'
-drop function f2;
-connection con2;
-# Waiting for 'drop function f2' to get blocked on MDL lock...
-connection default;
-commit;
-connection con1;
-# Reaping 'drop function f2'...
-connection default;
-drop view v1;
-drop function f1;
-drop procedure p1;
-drop table t1, t2;
-#
-# 6) Check that ER_LOCK_DEADLOCK is reported if
-# acquisition of a shared lock fails during a transaction or
-# we need to back off to flush the sp cache.
-#
-# Sic: now this situation does not require a back off since we
-# flush the cache on the fly.
-#
-create function f1() returns int return 7;
-create table t1 (a int);
-begin;
-select * from t1;
-a
-select f1();
-f1()
-7
-commit;
-drop table t1;
-drop function f1;
-#
-# 7) Demonstrate that under LOCK TABLES we accumulate locks
-# on stored routines, and release metadata locks in
-# ROLLBACK TO SAVEPOINT. That is done only for those stored
-# routines that are not part of LOCK TABLES prelocking list.
-# Those stored routines that are part of LOCK TABLES
-# prelocking list are implicitly locked when entering
-# LOCK TABLES, and ROLLBACK TO SAVEPOINT has no effect on
-# them.
-#
-create function f1() returns varchar(20) return "f1()";
-create function f2() returns varchar(20) return "f2()";
-create view v1 as select f1() as a;
-set @@session.autocommit=0;
-lock table v1 read;
-select * from v1;
-a
-f1()
-savepoint sv;
-select f2();
-f2()
-f2()
-connection con1;
-# Sending 'drop function f1'...
-drop function f1;
-connection con2;
-# Waiting for 'drop function f1' to get blocked on MDL lock...
-# Sending 'drop function f2'...
-drop function f2;
-connection default;
-# Waiting for 'drop function f2' to get blocked on MDL lock...
-rollback to savepoint sv;
-connection con2;
-# Reaping 'drop function f2'...
-connection default;
-unlock tables;
-connection con1;
-# Reaping 'drop function f1'...
-connection default;
-drop function f1;
-ERROR 42000: FUNCTION test.f1 does not exist
-drop function f2;
-ERROR 42000: FUNCTION test.f2 does not exist
-drop view v1;
-set @@session.autocommit=default;
-#
-# 8) Check the situation when we're preparing or executing a
-# prepared statement, and as part of that try to flush the
-# session sp cache. However, one of the procedures that
-# needs a flush is in use. Verify that there is no infinite
-# reprepare loop and no crash.
-#
-create function f1() returns int return 1;
-#
-# We just mention p1() in the body of f2() to make
-# sure that p1() metadata is validated when validating
-# 'select f2()'.
-# Recursion is not allowed in stored functions, so
-# an attempt to just invoke p1() from f2() which is in turn
-# called from p1() would have given a run-time error.
-#
-create function f2() returns int
-begin
-if @var is null then
-call p1();
-end if;
-return 1;
-end|
-create procedure p1()
-begin
-select f1() into @var;
-execute stmt;
-end|
-connection con2;
-prepare stmt from "select f2()";
-connection default;
-begin;
-select f1();
-f1()
-1
-connection con1;
-# Sending 'alter function f1 ...'...
-alter function f1 comment "comment";
-connection con2;
-# Waiting for 'alter function f1 ...' to get blocked on MDL lock...
-# Sending 'call p1()'...
-call p1();
-connection default;
-# Waiting for 'call p1()' to get blocked on MDL lock on f1...
-# Let 'alter function f1 ...' go through...
-commit;
-connection con1;
-# Reaping 'alter function f1 ...'
-connection con2;
-# Reaping 'call p1()'...
-f2()
-1
-deallocate prepare stmt;
-connection default;
-drop function f1;
-drop function f2;
-drop procedure p1;
-#
-# 9) Check the situation when a stored function is invoked
-# from a stored procedure, and recursively invokes the
-# stored procedure that is in use. But for the second
-# invocation, a cache flush is requested. We can't
-# flush the procedure that's in use, and are forced
-# to use an old version. It is not a violation of
-# consistency, since we unroll top-level calls.
-# Just verify the code works.
-#
-create function f1() returns int return 1;
-begin;
-select f1();
-f1()
-1
-connection con1;
-# Sending 'alter function f1 ...'...
-alter function f1 comment "comment";
-connection con2;
-# Waiting for 'alter function f1 ...' to get blocked on MDL lock...
-#
-# We just mention p1() in the body of f2() to make
-# sure that p1() is prelocked for f2().
-# Recursion is not allowed in stored functions, so
-# an attempt to just invoke p1() from f2() which is in turn
-# called from p1() would have given a run-time error.
-#
-create function f2() returns int
-begin
-if @var is null then
-call p1();
-end if;
-return 1;
-end|
-create procedure p1()
-begin
-select f1() into @var;
-select f2() into @var;
-end|
-# Sending 'call p1()'...
-call p1();
-connection default;
-# Waiting for 'call p1()' to get blocked on MDL lock on f1...
-# Let 'alter function f1 ...' go through...
-commit;
-connection con1;
-# Reaping 'alter function f1 ...'
-connection con2;
-# Reaping 'call p1()'...
-connection default;
-drop function f1;
-drop function f2;
-drop procedure p1;
-#
-# 10) A select from information_schema.routines now
-# flushes the stored routines caches. Test that this
-# does not remove from the cache a stored routine
-# that is already prelocked.
-#
-create function f1() returns int return get_lock("30977", 100000);
-create function f2() returns int return 2;
-create function f3() returns varchar(255)
-begin
-declare res varchar(255);
-declare c cursor for select routine_name from
-information_schema.routines where routine_name='f1';
-select f1() into @var;
-open c;
-fetch c into res;
-close c;
-select f2() into @var;
-return res;
-end|
-connection con1;
-select get_lock("30977", 0);
-get_lock("30977", 0)
-1
-connection default;
-# Sending 'select f3()'...
-select f3();
-connection con1;
-# Waiting for 'select f3()' to get blocked on the user level lock...
-# Do something to change the cache version.
-create function f4() returns int return 4;
-drop function f4;
-select release_lock("30977");
-release_lock("30977")
-1
-connection default;
-# Reaping 'select f3()'...
-# Routine 'f2()' should exist and get executed successfully.
-f3()
-f1
-select @var;
-@var
-2
-drop function f1;
-drop function f2;
-drop function f3;
-# 11) Check the situation when the connection is flushing the
-# SP cache which contains a procedure that is being executed.
-#
-# Function f1() calls p1(). Procedure p1() has a DROP
-# VIEW statement, which, we know, invalidates the routines cache.
-# During cache flush p1() must not be flushed since it's in
-# use.
-#
-create function f1() returns int
-begin
-call p1();
-return 1;
-end|
-create procedure p1()
-begin
-create view v1 as select 1;
-drop view v1;
-select f1() into @var;
-set @exec_count=@exec_count+1;
-end|
-set @exec_count=0;
-call p1();
-ERROR HY000: Recursive limit 0 (as set by the max_sp_recursion_depth variable) was exceeded for routine p1
-select @exec_count;
-@exec_count
-0
-set @@session.max_sp_recursion_depth=5;
-set @exec_count=0;
-call p1();
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-select @exec_count;
-@exec_count
-0
-drop procedure p1;
-drop function f1;
-set @@session.max_sp_recursion_depth=default;
-connection con1;
-disconnect con1;
-connection con2;
-disconnect con2;
-connection con3;
-disconnect con3;
-connection default;
-#
-# SHOW CREATE PROCEDURE p1 called from p1, after p1 was altered
-#
-# We are just covering the existing behaviour with tests. The
-# results are not necessarily correct."
-#
-CREATE PROCEDURE p1()
-BEGIN
-SELECT get_lock("test", 10);
-SHOW CREATE PROCEDURE p1;
-END|
-connect con2, localhost, root;
-connect con3, localhost, root;
-connection default;
-SELECT get_lock("test", 10);
-get_lock("test", 10)
-1
-connection con2;
-# Will halt before executing SHOW CREATE PROCEDURE p1
-# Sending:
-CALL p1();
-connection con3;
-# Alter p1
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN END;
-connection default;
-# Resume CALL p1, now with new p1
-SELECT release_lock("test");
-release_lock("test")
-1
-connection con2;
-# Reaping: CALL p1()
-get_lock("test", 10)
-1
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`()
-BEGIN
-SELECT get_lock("test", 10);
-SHOW CREATE PROCEDURE p1;
-END latin1 latin1_swedish_ci latin1_swedish_ci
-connection con3;
-disconnect con3;
-connection con2;
-disconnect con2;
-connection default;
-DROP PROCEDURE p1;
-#
-# Bug#57663 Concurrent statement using stored function and DROP DATABASE
-# breaks SBR
-#
-DROP DATABASE IF EXISTS db1;
-DROP FUNCTION IF EXISTS f1;
-connect con1, localhost, root;
-connect con2, localhost, root;
-# Test 1: Check that DROP DATABASE block if a function is used
-# by an active transaction.
-connection default;
-CREATE DATABASE db1;
-CREATE FUNCTION db1.f1() RETURNS INTEGER RETURN 1;
-START TRANSACTION;
-SELECT db1.f1();
-db1.f1()
-1
-connection con1;
-# Sending:
-DROP DATABASE db1;
-connection default;
-# Waiting for DROP DATABASE to be blocked by the lock on f1()
-COMMIT;
-connection con1;
-# Reaping: DROP DATABASE db1
-# Test 2: Check that DROP DATABASE blocks if a procedure is
-# used by an active transaction.
-connection default;
-CREATE DATABASE db1;
-CREATE PROCEDURE db1.p1() BEGIN END;
-CREATE FUNCTION f1() RETURNS INTEGER
-BEGIN
-CALL db1.p1();
-RETURN 1;
-END|
-START TRANSACTION;
-SELECT f1();
-f1()
-1
-connection con1;
-# Sending:
-DROP DATABASE db1;
-connection default;
-# Waiting for DROP DATABASE to be blocked by the lock on p1()
-COMMIT;
-connection con1;
-# Reaping: DROP DATABASE db1
-# Test 3: Check that DROP DATABASE is not selected as a victim if a
-# deadlock is discovered with DML statements.
-connection default;
-CREATE DATABASE db1;
-CREATE TABLE db1.t1 (a INT);
-CREATE FUNCTION db1.f1() RETURNS INTEGER RETURN 1;
-START TRANSACTION;
-SELECT db1.f1();
-db1.f1()
-1
-connection con1;
-# Sending:
-DROP DATABASE db1;
-connection default;
-# Waiting for DROP DATABASE to be blocked by the lock on f1()
-SELECT * FROM db1.t1;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-COMMIT;
-connection con1;
-# Reaping: DROP DATABASE db1
-# Test 4: Check that active DROP DATABASE blocks stored routine DDL.
-connection default;
-CREATE DATABASE db1;
-CREATE FUNCTION db1.f1() RETURNS INTEGER RETURN 1;
-CREATE FUNCTION db1.f2() RETURNS INTEGER RETURN 2;
-START TRANSACTION;
-SELECT db1.f2();
-db1.f2()
-2
-connection con1;
-# Sending:
-DROP DATABASE db1;
-connection con2;
-# Waiting for DROP DATABASE to be blocked by the lock on f2()
-# Sending:
-ALTER FUNCTION db1.f1 COMMENT "test";
-connection default;
-# Waiting for ALTER FUNCTION to be blocked by the schema lock on db1
-COMMIT;
-connection con1;
-# Reaping: DROP DATABASE db1
-disconnect con1;
-connection con2;
-# Reaping: ALTER FUNCTION f1 COMMENT 'test'
-ERROR 42000: FUNCTION db1.f1 does not exist
-disconnect con2;
-connection default;
-DROP FUNCTION f1;
-#
-# End of 5.5 tests
-#
diff --git a/mysql-test/r/sp-no-code.result b/mysql-test/r/sp-no-code.result
deleted file mode 100644
index 762b481a7cb..00000000000
--- a/mysql-test/r/sp-no-code.result
+++ /dev/null
@@ -1,4 +0,0 @@
-show procedure code foo;
-ERROR HY000: The 'SHOW PROCEDURE|FUNCTION CODE' feature is disabled; you need MariaDB built with '--with-debug' to have it working
-show function code foo;
-ERROR HY000: The 'SHOW PROCEDURE|FUNCTION CODE' feature is disabled; you need MariaDB built with '--with-debug' to have it working
diff --git a/mysql-test/r/sp-prelocking.result b/mysql-test/r/sp-prelocking.result
deleted file mode 100644
index eb47cc21f41..00000000000
--- a/mysql-test/r/sp-prelocking.result
+++ /dev/null
@@ -1,365 +0,0 @@
-drop database if exists mysqltest;
-drop table if exists t1, t2, t3, t4;
-drop procedure if exists sp1;
-drop procedure if exists sp2;
-drop procedure if exists sp3;
-drop procedure if exists sp4;
-drop function if exists f1;
-drop function if exists f2;
-drop function if exists f3;
-create database mysqltest;
-use mysqltest//
-create procedure sp1 ()
-begin
-drop table if exists t1;
-select 1 as "my-col";
-end;
-//
-select database();
-database()
-mysqltest
-call sp1();
-my-col
-1
-Warnings:
-Note 1051 Unknown table 'mysqltest.t1'
-select database();
-database()
-mysqltest
-use test;
-select database();
-database()
-test
-call mysqltest.sp1();
-my-col
-1
-Warnings:
-Note 1051 Unknown table 'mysqltest.t1'
-select database();
-database()
-test
-drop procedure mysqltest.sp1;
-drop database mysqltest;
-create procedure sp1()
-begin
-create table t1 (a int);
-insert into t1 values (10);
-end//
-create procedure sp2()
-begin
-create table t2(a int);
-insert into t2 values(1);
-call sp1();
-end//
-create function f1() returns int
-begin
-return (select max(a) from t1);
-end//
-create procedure sp3()
-begin
-call sp1();
-select 'func', f1();
-end//
-call sp1();
-select 't1',a from t1;
-t1 a
-t1 10
-drop table t1;
-call sp2();
-select 't1',a from t1;
-t1 a
-t1 10
-select 't2',a from t2;
-t2 a
-t2 1
-drop table t1, t2;
-call sp3();
-func f1()
-func 10
-select 't1',a from t1;
-t1 a
-t1 10
-drop table t1;
-drop procedure sp1;
-drop procedure sp2;
-drop procedure sp3;
-drop function f1;
-create procedure sp1()
-begin
-create temporary table t2(a int);
-insert into t2 select * from t1;
-end//
-create procedure sp2()
-begin
-create temporary table t1 (a int);
-insert into t1 values(1);
-call sp1();
-select 't1', a from t1;
-select 't2', a from t2;
-drop table t1;
-drop table t2;
-end//
-call sp2();
-t1 a
-t1 1
-t2 a
-t2 1
-drop procedure sp1;
-drop procedure sp2;
-create table t1 (a int);
-insert into t1 values(1),(2);
-create table t2 as select * from t1;
-create table t3 as select * from t1;
-create table t4 as select * from t1;
-create procedure sp1(a int)
-begin
-select a;
-end //
-create function f1() returns int
-begin
-return (select max(a) from t1);
-end //
-CALL sp1(f1());
-a
-2
-create procedure sp2(a int)
-begin
-select * from t3;
-select a;
-end //
-create procedure sp3()
-begin
-select * from t1;
-call sp2(5);
-end //
-create procedure sp4()
-begin
-select * from t2;
-call sp3();
-end //
-call sp4();
-a
-1
-2
-a
-1
-2
-a
-1
-2
-a
-5
-drop procedure sp1;
-drop procedure sp2;
-drop procedure sp3;
-drop procedure sp4;
-drop function f1;
-drop view if exists v1;
-create function f1(ab int) returns int
-begin
-declare i int;
-set i= (select max(a) from t1 where a < ab) ;
-return i;
-end //
-create function f2(ab int) returns int
-begin
-declare i int;
-set i= (select max(a) from t2 where a < ab) ;
-return i;
-end //
-create view v1 as
-select t3.a as x, t4.a as y, f2(3) as z
-from t3, t4 where t3.a = t4.a //
-create procedure sp1()
-begin
-declare a int;
-set a= (select f1(4) + count(*) A from t1, v1);
-end //
-create function f3() returns int
-begin
-call sp1();
-return 1;
-end //
-call sp1() //
-select f3() //
-f3()
-1
-select f3() //
-f3()
-1
-call sp1() //
-drop procedure sp1//
-drop function f3//
-create procedure sp1()
-begin
-declare x int;
-declare c cursor for select f1(3) + count(*) from v1;
-open c;
-fetch c into x;
-end;//
-create function f3() returns int
-begin
-call sp1();
-return 1;
-end //
-call sp1() //
-call sp1() //
-select f3() //
-f3()
-1
-call sp1() //
-drop view v1;
-drop table t1,t2,t3,t4;
-drop function f1;
-drop function f2;
-drop function f3;
-drop procedure sp1;
-drop table if exists t1;
-drop view if exists v1, v2, v3;
-drop function if exists bug15683;
-create table t1 (f1 bigint, f2 varchar(20), f3 bigint);
-insert into t1 set f1 = 1, f2 = 'schoenenbourg', f3 = 1;
-create view v1 as select 1 from t1 union all select 1;
-create view v2 as select 1 from v1;
-create view v3 as select 1 as f1 from v2;
-create function bug15683() returns bigint
-begin
-return (select count(*) from v3);
-end|
-prepare stmt from "select bug15683()";
-execute stmt;
-bug15683()
-2
-execute stmt;
-bug15683()
-2
-deallocate prepare stmt;
-drop table t1;
-drop view v1, v2, v3;
-drop function bug15683;
-drop table if exists t1, t2, t3;
-drop function if exists bug19634;
-create table t1 (id int, data int);
-create table t2 (id int);
-create table t3 (data int);
-create function bug19634() returns int return (select count(*) from t3);
-prepare stmt from "delete t1 from t1, t2 where t1.id = t2.id and bug19634()";
-execute stmt;
-execute stmt;
-deallocate prepare stmt;
-create trigger t1_bi before delete on t1 for each row insert into t3 values (old.data);
-prepare stmt from "delete t1 from t1, t2 where t1.id = t2.id";
-execute stmt;
-execute stmt;
-deallocate prepare stmt;
-drop function bug19634;
-drop table t1, t2, t3;
-drop table if exists bug_27907_logs;
-drop table if exists bug_27907_t1;
-create table bug_27907_logs (a int);
-create table bug_27907_t1 (a int);
-create trigger bug_27907_t1_ai after insert on bug_27907_t1
-for each row
-begin
-insert into bug_27907_logs (a) values (1);
-end|
-drop table bug_27907_logs;
-insert into bug_27907_t1(a) values (1);
-ERROR 42S02: Table 'test.bug_27907_logs' doesn't exist
-drop table bug_27907_t1;
-
-Bug#22427 create table if not exists + stored function results in
-inconsistent behavior
-
-Add a test case, the bug itself was fixed by the patch for
-Bug#20662
-
-drop table if exists t1;
-drop function if exists f_bug22427;
-create table t1 (i int);
-insert into t1 values (1);
-create function f_bug22427() returns int return (select max(i) from t1);
-select f_bug22427();
-f_bug22427()
-1
-create table if not exists t1 select f_bug22427() as i;
-Warnings:
-Note 1050 Table 't1' already exists
-create table t1 select f_bug22427() as i;
-ERROR 42S01: Table 't1' already exists
-drop table t1;
-drop function f_bug22427;
-#
-# Bug #29929 LOCK TABLES does not pre-lock tables used in triggers of the locked tables
-#
-DROP table IF EXISTS t1,t2;
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE t2 (c2 INT);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-CREATE TRIGGER t1_ai AFTER INSERT ON t1 FOR EACH ROW
-BEGIN
-UPDATE t2 SET c2= c2 + 1;
-END//
-# Take a table lock on t1.
-# This should pre-lock t2 through the trigger.
-LOCK TABLE t1 WRITE;
-INSERT INTO t1 VALUES (3);
-UNLOCK TABLES;
-LOCK TABLE t1 READ;
-INSERT INTO t2 values(4);
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-UNLOCK TABLES;
-SELECT * FROM t1;
-c1
-1
-3
-SELECT * FROM t2;
-c2
-3
-DROP TRIGGER t1_ai;
-DROP TABLE t1, t2;
-End of 5.0 tests
-#
-# Bug#21142859: FUNCTION UPDATING A VIEW FAILS TO FIND TABLE THAT ACTUALLY EXISTS
-#
-CREATE TABLE t1 SELECT 1 AS fld1, 'A' AS fld2;
-CREATE TABLE t2 (fld3 INT, fld4 CHAR(1));
-CREATE VIEW v1 AS SELECT * FROM t1;
-CREATE TRIGGER t1_au AFTER UPDATE ON t1
-FOR EACH ROW INSERT INTO t2 VALUES (new.fld1, new.fld2);
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-UPDATE v1 SET fld2='B' WHERE fld1=1;
-RETURN row_count();
-END !
-# Without the patch, an error was getting reported.
-SELECT f1();
-f1()
-1
-DROP FUNCTION f1;
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# Bug #16672723 "CAN'T FIND TEMPORARY TABLE".
-#
-CREATE FUNCTION f1() RETURNS INT RETURN 1;
-CREATE TEMPORARY TABLE tmp1(a INT);
-PREPARE stmt1 FROM "CREATE TEMPORARY TABLE tmp2 AS SELECT b FROM (SELECT f1() AS b FROM tmp1) AS t";
-# The below statement failed before the fix.
-EXECUTE stmt1;
-DROP TEMPORARY TABLES tmp1, tmp2;
-DEALLOCATE PREPARE stmt1;
-DROP FUNCTION f1;
-create procedure sp1()
-begin
-drop table if exists t1, t2;
-create temporary table t1 select 1 v;
-create table t2 (col varchar(45)) select distinct col from (select sf1() as col from t1) t;
-end$$
-create function sf1() returns text return 'blah';
-call test.sp1();
-call test.sp1();
-drop procedure sp1;
-drop function sf1;
-drop table t2;
diff --git a/mysql-test/r/sp-row.result b/mysql-test/r/sp-row.result
deleted file mode 100644
index d3be7c2a9b9..00000000000
--- a/mysql-test/r/sp-row.result
+++ /dev/null
@@ -1,2283 +0,0 @@
-#
-# MDEV-10914 ROW data type for stored routine variables
-#
-#
-# ROW of ROWs is not supported yet
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW(a ROW(a INT));
-END;
-$$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ROW(a INT));
-END' at line 3
-#
-# Returning the entire ROW parameter from a function
-#
-CREATE FUNCTION f1(a ROW(a INT, b INT)) RETURNS INT
-BEGIN
-RETURN a;
-END;
-$$
-SELECT f1(ROW(10,20));
-ERROR 21000: Operand should contain 1 column(s)
-DROP FUNCTION f1;
-#
-# ROW as an SP parameter
-#
-CREATE FUNCTION f1(a ROW(a INT,b INT)) RETURNS INT
-BEGIN
-RETURN a.b;
-END;
-$$
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW(a INT,b INT) DEFAULT (11,21);
-SELECT f1(a);
-END;
-$$
-SELECT f1(ROW(10,20));
-f1(ROW(10,20))
-20
-SELECT f1(10);
-ERROR 21000: Operand should contain 2 column(s)
-SELECT f1(ROW(10,20,30));
-ERROR 21000: Operand should contain 2 column(s)
-CALL p1();
-f1(a)
-21
-DROP PROCEDURE p1;
-DROP FUNCTION f1;
-CREATE PROCEDURE p1(a ROW(a INT,b INT))
-BEGIN
-SELECT a.a, a.b;
-END;
-$$
-CALL p1(ROW(10,20));
-a.a a.b
-10 20
-CALL p1(10);
-ERROR 21000: Operand should contain 2 column(s)
-CALL p1(ROW(10,20,30));
-ERROR 21000: Operand should contain 2 column(s)
-DROP PROCEDURE p1;
-#
-# ROW as an SP OUT parameter
-#
-CREATE PROCEDURE p1(OUT a ROW(a INT,b INT))
-BEGIN
-SET a.a=10;
-SET a.b=20;
-END;
-$$
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE a ROW(a INT,b INT) DEFAULT (11,21);
-CALL p1(a);
-SELECT a.a,a.b;
-END;
-$$
-CALL p2();
-a.a a.b
-10 20
-DROP PROCEDURE p2;
-DROP PROCEDURE p1;
-#
-# ROW as an SP return value is not supported yet
-#
-CREATE FUNCTION p1() RETURNS ROW(a INT)
-BEGIN
-RETURN NULL;
-END;
-$$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ROW(a INT)
-BEGIN
-RETURN NULL;
-END' at line 1
-#
-# Diplicate row field
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW (a INT, a DOUBLE);
-SELECT a.a;
-END;
-$$
-ERROR 42S21: Duplicate column name 'a'
-#
-# Bad scalar default value
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW (a INT, b DOUBLE) DEFAULT 1;
-SELECT a.a;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 2 column(s)
-DROP PROCEDURE p1;
-#
-# Bad ROW default value with a wrong number of fields
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW (a INT, b DOUBLE) DEFAULT ROW(1,2,3);
-SELECT a.a;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 2 column(s)
-DROP PROCEDURE p1;
-#
-# Scalar variable vs table alias cause no ambiguity
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a INT;
--- a.x is a table column here (not a row variable field)
-SELECT a.x FROM a;
-SELECT a.x FROM t1 a;
-END;
-$$
-DROP PROCEDURE p1;
-#
-# Using the entire ROW variable in select list
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW (a INT);
-SELECT a;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 1 column(s)
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW (a INT,b INT);
-SELECT a;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 1 column(s)
-DROP PROCEDURE p1;
-#
-# Using the entire ROW variable in functions
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW (a INT);
-SELECT COALESCE(a);
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 1 column(s)
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW (a INT,b INT);
-SELECT COALESCE(a);
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 1 column(s)
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW (a INT);
-SELECT a+1;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 1 column(s)
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW (a INT,b INT);
-SELECT a+1;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 1 column(s)
-DROP PROCEDURE p1;
-#
-# Comparing the entire ROW to a scalar value
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW (a INT,b INT);
-SELECT a=1;
-END;
-$$
-CALL p1();
-ERROR HY000: Illegal parameter data types row and int for operation '='
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW (a INT,b INT);
-SELECT 1=a;
-END;
-$$
-CALL p1();
-ERROR HY000: Illegal parameter data types int and row for operation '='
-DROP PROCEDURE p1;
-#
-# Passing the entire ROW to a stored function
-#
-CREATE FUNCTION f1(a INT) RETURNS INT
-BEGIN
-RETURN a;
-END;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW (a INT,b INT);
-SELECT f1(a);
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 1 column(s)
-DROP PROCEDURE p1;
-DROP FUNCTION f1;
-#
-# Assigning a scalar value to a ROW variable with 1 column
-#
-CREATE OR REPLACE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT);
-SET rec=1;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 1 column(s)
-DROP PROCEDURE p1;
-#
-# Assigning a scalar value to a ROW variable with 2 columns
-#
-CREATE OR REPLACE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT,b INT);
-SET rec=1;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 2 column(s)
-DROP PROCEDURE p1;
-#
-# Assigning a ROW value to a ROW variable with different number of columns
-#
-CREATE OR REPLACE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT,b INT);
-SET rec=ROW(1,2,3);
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 2 column(s)
-DROP PROCEDURE p1;
-#
-# Returning the entire ROW from a function is not supported yet
-# This syntax would be needed: SELECT f1().x FROM DUAL;
-#
-CREATE FUNCTION f1(a INT) RETURNS INT
-BEGIN
-DECLARE rec ROW(a INT);
-RETURN rec;
-END;
-$$
-SELECT f1(10);
-ERROR 21000: Operand should contain 1 column(s)
-DROP FUNCTION f1;
-#
-# Using the entire ROW in SELECT..CREATE
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT,b INT);
-CREATE TABLE t1 AS SELECT rec;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 1 column(s)
-DROP PROCEDURE p1;
-#
-# Using the entire ROW in LIMIT
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT);
-SET rec.a= '10';
-SELECT * FROM t1 LIMIT rec;
-END;
-$$
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-#
-# Setting ROW fields using a SET command
-#
-CREATE OR REPLACE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT,b DOUBLE,c VARCHAR(10));
-DECLARE a INT;
-SET @a= 10, rec.a=10, rec.b=20, rec.c= 'test', a= 5;
-SELECT rec.a, rec.b, rec.c, a;
-END;
-$$
-CALL p1();
-rec.a rec.b rec.c a
-10 20 test 5
-DROP PROCEDURE p1;
-#
-# Assigning a ROW variable from a ROW value
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT,b INT);
-SET rec=ROW(1,2);
-SELECT rec.a, rec.b;
-END;
-$$
-CALL p1();
-rec.a rec.b
-1 2
-DROP PROCEDURE p1;
-#
-# Assigning a ROW variable from another ROW value
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW(a INT,b INT);
-DECLARE rec2 ROW(a INT,b INT);
-SET rec1=ROW(1,2);
-SET rec2=rec1;
-SELECT rec2.a, rec2.b;
-END;
-$$
-CALL p1();
-rec2.a rec2.b
-1 2
-DROP PROCEDURE p1;
-#
-# Comparing a ROW variable to a ROW() function
-#
-CREATE OR REPLACE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT,b INT);
-SET rec.a= 1;
-SET rec.b= 2;
-SELECT rec=(0,0), rec=ROW(0,0), (0,0)=rec, ROW(0,0)=rec;
-SELECT rec=(1,2), rec=ROW(1,2), (1,2)=rec, ROW(1,2)=rec;
-SELECT rec=(NULL,0), rec=ROW(NULL,0);
-SELECT rec=(NULL,2), rec=ROW(NULL,2);
-SELECT rec<>(0,0), rec<>ROW(0,0);
-SELECT rec<>(1,2), rec<>ROW(1,2);
-SELECT rec<>(NULL,0), rec<>ROW(NULL,0);
-SELECT rec<>(NULL,2), rec<>ROW(NULL,2);
-SELECT rec IN ((0,0)), rec IN (ROW(0,0));
-SELECT rec IN ((1,2)), rec IN (ROW(1,2));
-SELECT rec IN ((0,NULL),(1,2));
-SELECT rec NOT IN ((0,NULL),(1,1));
-SELECT rec NOT IN ((1,NULL),(1,1));
-END;
-$$
-CALL p1();
-rec=(0,0) rec=ROW(0,0) (0,0)=rec ROW(0,0)=rec
-0 0 0 0
-rec=(1,2) rec=ROW(1,2) (1,2)=rec ROW(1,2)=rec
-1 1 1 1
-rec=(NULL,0) rec=ROW(NULL,0)
-0 0
-rec=(NULL,2) rec=ROW(NULL,2)
-NULL NULL
-rec<>(0,0) rec<>ROW(0,0)
-1 1
-rec<>(1,2) rec<>ROW(1,2)
-0 0
-rec<>(NULL,0) rec<>ROW(NULL,0)
-1 1
-rec<>(NULL,2) rec<>ROW(NULL,2)
-NULL NULL
-rec IN ((0,0)) rec IN (ROW(0,0))
-0 0
-rec IN ((1,2)) rec IN (ROW(1,2))
-1 1
-rec IN ((0,NULL),(1,2))
-1
-rec NOT IN ((0,NULL),(1,1))
-1
-rec NOT IN ((1,NULL),(1,1))
-NULL
-DROP PROCEDURE p1;
-#
-# Comparing a ROW variable to another ROW variable
-#
-CREATE OR REPLACE PROCEDURE p1()
-BEGIN
-DECLARE rec1,rec2,rec3 ROW(a INT,b INT);
-SET rec1.a= 1;
-SET rec1.b= 2;
-SET rec2.a= 11;
-SET rec2.b= 12;
-SET rec3.a= 11;
-SET rec3.b= 12;
-SELECT rec1=rec2, rec2=rec1, rec2=rec3, rec3=rec2;
-END;
-$$
-CALL p1();
-rec1=rec2 rec2=rec1 rec2=rec3 rec3=rec2
-0 0 1 1
-DROP PROCEDURE p1;
-#
-# Referencing a non-existing row variable
-#
-CREATE PROCEDURE p1()
-BEGIN
-SET a.b=1;
-END;
-$$
-ERROR HY000: Unknown structured system variable or ROW routine variable 'a'
-#
-# Referencing a non-existing row field
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW(a INT,b INT);
-SELECT a.c FROM t1;
-END;
-$$
-ERROR HY000: Row variable 'a' does not have a field 'c'
-#
-# ROW and scalar variables with the same name shadowing each other
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW(a INT);
-SET a.a=100;
-SELECT a.a;
-BEGIN
-DECLARE a INT DEFAULT 200;
-SELECT a;
-BEGIN
-DECLARE a ROW(a INT);
-SET a.a=300;
-SELECT a.a;
-END;
-SELECT a;
-END;
-SELECT a.a;
-END;
-$$
-CALL p1();
-a.a
-100
-a
-200
-a.a
-300
-a
-200
-a.a
-100
-DROP PROCEDURE p1;
-#
-# ROW with good default values
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW(a INT,b INT) DEFAULT (10,20);
-DECLARE b ROW(a INT,b INT) DEFAULT (11,21);
-DECLARE c ROW(a INT,b INT) DEFAULT a;
-SELECT a.a, a.b, b.a, b.b, c.a, c.b FROM DUAL;
-END;
-$$
-CALL p1;
-a.a a.b b.a b.b c.a c.b
-10 20 11 21 10 20
-DROP PROCEDURE p1;
-#
-# ROW in WHERE clause
-#
-CREATE TABLE t1 (a INT,b INT);
-INSERT INTO t1 VALUES (10,20);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT,b INT) DEFAULT ROW(10,20);
-SELECT * FROM t1 WHERE rec=ROW(a,b);
-SELECT * FROM t1 WHERE ROW(a,b)=rec;
-SELECT * FROM t1 WHERE rec=ROW(10,20);
-SELECT * FROM t1 WHERE ROW(10,20)=rec;
-END;
-$$
-CALL p1();
-a b
-10 20
-a b
-10 20
-a b
-10 20
-a b
-10 20
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# ROW fields in WHERE clause
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10),(20);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT);
-SET rec.a= 10;
-SELECT * FROM t1 WHERE a=rec.a;
-END;
-$$
-CALL p1();
-a
-10
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# ROW fields in HAVING clause
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10),(20);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT);
-SET rec.a= 10;
-SELECT * FROM t1 HAVING a=rec.a;
-SELECT * FROM t1 HAVING MIN(a)=rec.a;
-END;
-$$
-CALL p1();
-a
-10
-a
-10
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# ROW fields in LIMIT clause
-#
-CREATE TABLE t1 (a INT);
-SELECT 1 FROM t1 LIMIT t1.a;
-ERROR 42000: Undeclared variable: t1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10),(20);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT);
-SET rec.a= 10;
-SELECT * FROM t1 LIMIT rec.a;
-END;
-$$
-CALL p1();
-a
-10
-20
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a VARCHAR(10));
-SET rec.a= '10';
-SELECT * FROM t1 LIMIT rec.a;
-END;
-$$
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-#
-# ROW fields in select list
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10),(20);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE t1 ROW(a INT);
-SET t1.a= 10;
-SELECT t1.a, 'This is the variable t1.a value, rather than the column t1.a' AS comm FROM t1;
-SELECT t1.a, t2.a, t1.a+t2.a FROM t1 t2;
-END;
-$$
-CALL p1();
-t1.a comm
-10 This is the variable t1.a value, rather than the column t1.a
-10 This is the variable t1.a value, rather than the column t1.a
-t1.a a t1.a+t2.a
-10 10 20
-10 20 30
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# ROW fields as insert values
-#
-CREATE TABLE t1 (a INT, b VARCHAR(10));
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT, b VARCHAR(10));
-SET rec.a= 10;
-SET rec.b= 'test';
-INSERT INTO t1 VALUES (rec.a, rec.b);
-END;
-$$
-CALL p1();
-SELECT * FROM t1;
-a b
-10 test
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# ROW fields as SP out parameters
-#
-CREATE PROCEDURE p1(OUT a INT, OUT b VARCHAR(32))
-BEGIN
-SET a= 10;
-SET b= 'test';
-END;
-$$
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE rec ROW(a INT, b VARCHAR(10));
-CALL p1(rec.a, rec.b);
-SELECT rec.a, rec.b;
-END;
-$$
-CALL p2;
-rec.a rec.b
-10 test
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-#
-# ROW fields as dynamic SQL out parameters
-#
-CREATE PROCEDURE p1(OUT a INT, OUT b VARCHAR(32))
-BEGIN
-SET a= 20;
-SET b= 'test-dynamic-sql';
-END;
-$$
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE rec ROW(a INT, b VARCHAR(30));
-EXECUTE IMMEDIATE 'CALL p1(?,?)' USING rec.a, rec.b;
-SELECT rec.a, rec.b;
-END;
-$$
-CALL p2;
-rec.a rec.b
-20 test-dynamic-sql
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-#
-# ROW fields as SELECT..INTO targets
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT, b VARCHAR(10));
-SELECT 10,'test' INTO rec.a,rec.b;
-SELECT rec.a, rec.b;
-END;
-$$
-CALL p1;
-rec.a rec.b
-10 test
-DROP PROCEDURE p1;
-#
-# Implicit default NULL handling
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec ROW(a INT, b VARCHAR(10), c DOUBLE, d DECIMAL(10,0), e TIME, f DATETIME);
-SELECT rec.a, rec.b, rec.c, rec.d, rec.e, rec.f FROM DUAL;
-END;
-$$
-CALL p1();
-rec.a rec.b rec.c rec.d rec.e rec.f
-NULL NULL NULL NULL NULL NULL
-DROP PROCEDURE p1;
-#
-# NULL handling
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW(a INT, b VARCHAR(10)) DEFAULT (NULL,NULL);
-DECLARE rec2 ROW(a INT, b VARCHAR(10)) DEFAULT rec1;
-SELECT rec1.a, rec1.b, rec2.a, rec2.b;
-SET rec1= (10,20);
-SET rec2= rec1;
-SELECT rec1.a, rec1.b, rec2.a, rec2.b;
-SET rec1= (NULL,20);
-SET rec2= rec1;
-SELECT rec1.a, rec1.b, rec2.a, rec2.b;
-SET rec1= (10,NULL);
-SET rec2= rec1;
-SELECT rec1.a, rec1.b, rec2.a, rec2.b;
-SET rec1= (NULL,NULL);
-SET rec2= rec1;
-SELECT rec1.a, rec1.b, rec2.a, rec2.b;
-END;
-$$
-CALL p1;
-rec1.a rec1.b rec2.a rec2.b
-NULL NULL NULL NULL
-rec1.a rec1.b rec2.a rec2.b
-10 20 10 20
-rec1.a rec1.b rec2.a rec2.b
-NULL 20 NULL 20
-rec1.a rec1.b rec2.a rec2.b
-10 NULL 10 NULL
-rec1.a rec1.b rec2.a rec2.b
-NULL NULL NULL NULL
-DROP PROCEDURE p1;
-#
-# Testing multiple ROW variable declarations
-# This makes sure that fill_field_definitions() is called only once
-# per a ROW field, so create length is not converted to internal length
-# multiple times.
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1, rec2, rec3 ROW(a VARCHAR(10) CHARACTER SET utf8);
-CREATE TABLE t1 AS SELECT rec1.a, rec2.a, rec3.a;
-END;
-$$
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `rec1.a` varchar(10) CHARACTER SET utf8 DEFAULT NULL,
- `rec2.a` varchar(10) CHARACTER SET utf8 DEFAULT NULL,
- `rec3.a` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# INT
-#
-CREATE PROCEDURE p1() BEGIN DECLARE var INT; DECLARE rec ROW(var INT); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(11) DEFAULT NULL,
- `rec.var` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(1); DECLARE rec ROW(var INT(1)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(11) DEFAULT NULL,
- `rec.var` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(2); DECLARE rec ROW(var INT(2)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(11) DEFAULT NULL,
- `rec.var` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(3); DECLARE rec ROW(var INT(3)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(11) DEFAULT NULL,
- `rec.var` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(4); DECLARE rec ROW(var INT(4)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(11) DEFAULT NULL,
- `rec.var` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(5); DECLARE rec ROW(var INT(5)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(11) DEFAULT NULL,
- `rec.var` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(6); DECLARE rec ROW(var INT(6)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(11) DEFAULT NULL,
- `rec.var` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(7); DECLARE rec ROW(var INT(7)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(11) DEFAULT NULL,
- `rec.var` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(8); DECLARE rec ROW(var INT(8)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(11) DEFAULT NULL,
- `rec.var` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(9); DECLARE rec ROW(var INT(9)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(11) DEFAULT NULL,
- `rec.var` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(10); DECLARE rec ROW(var INT(10)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(11) DEFAULT NULL,
- `rec.var` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(11); DECLARE rec ROW(var INT(11)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(11) DEFAULT NULL,
- `rec.var` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(12); DECLARE rec ROW(var INT(12)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(12) DEFAULT NULL,
- `rec.var` int(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(13); DECLARE rec ROW(var INT(13)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(13) DEFAULT NULL,
- `rec.var` int(13) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(14); DECLARE rec ROW(var INT(14)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(14) DEFAULT NULL,
- `rec.var` int(14) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(20); DECLARE rec ROW(var INT(20)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(20) DEFAULT NULL,
- `rec.var` int(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var INT(21); DECLARE rec ROW(var INT(21)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` int(21) DEFAULT NULL,
- `rec.var` int(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# TINYINT
-#
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT; DECLARE rec ROW(var TINYINT); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(4) DEFAULT NULL,
- `rec.var` tinyint(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(1); DECLARE rec ROW(var TINYINT(1)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(4) DEFAULT NULL,
- `rec.var` tinyint(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(2); DECLARE rec ROW(var TINYINT(2)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(4) DEFAULT NULL,
- `rec.var` tinyint(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(3); DECLARE rec ROW(var TINYINT(3)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(4) DEFAULT NULL,
- `rec.var` tinyint(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(4); DECLARE rec ROW(var TINYINT(4)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(4) DEFAULT NULL,
- `rec.var` tinyint(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(5); DECLARE rec ROW(var TINYINT(5)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(5) DEFAULT NULL,
- `rec.var` tinyint(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(6); DECLARE rec ROW(var TINYINT(6)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(6) DEFAULT NULL,
- `rec.var` tinyint(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(7); DECLARE rec ROW(var TINYINT(7)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(7) DEFAULT NULL,
- `rec.var` tinyint(7) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(8); DECLARE rec ROW(var TINYINT(8)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(8) DEFAULT NULL,
- `rec.var` tinyint(8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(9); DECLARE rec ROW(var TINYINT(9)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(9) DEFAULT NULL,
- `rec.var` tinyint(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(10); DECLARE rec ROW(var TINYINT(10)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(10) DEFAULT NULL,
- `rec.var` tinyint(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(11); DECLARE rec ROW(var TINYINT(11)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(11) DEFAULT NULL,
- `rec.var` tinyint(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(12); DECLARE rec ROW(var TINYINT(12)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(12) DEFAULT NULL,
- `rec.var` tinyint(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(13); DECLARE rec ROW(var TINYINT(13)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(13) DEFAULT NULL,
- `rec.var` tinyint(13) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(14); DECLARE rec ROW(var TINYINT(14)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(14) DEFAULT NULL,
- `rec.var` tinyint(14) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(20); DECLARE rec ROW(var TINYINT(20)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(20) DEFAULT NULL,
- `rec.var` tinyint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYINT(21); DECLARE rec ROW(var TINYINT(21)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinyint(21) DEFAULT NULL,
- `rec.var` tinyint(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# SMALLINT
-#
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT; DECLARE rec ROW(var SMALLINT); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(6) DEFAULT NULL,
- `rec.var` smallint(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(1); DECLARE rec ROW(var SMALLINT(1)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(6) DEFAULT NULL,
- `rec.var` smallint(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(2); DECLARE rec ROW(var SMALLINT(2)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(6) DEFAULT NULL,
- `rec.var` smallint(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(3); DECLARE rec ROW(var SMALLINT(3)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(6) DEFAULT NULL,
- `rec.var` smallint(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(4); DECLARE rec ROW(var SMALLINT(4)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(6) DEFAULT NULL,
- `rec.var` smallint(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(5); DECLARE rec ROW(var SMALLINT(5)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(6) DEFAULT NULL,
- `rec.var` smallint(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(6); DECLARE rec ROW(var SMALLINT(6)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(6) DEFAULT NULL,
- `rec.var` smallint(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(7); DECLARE rec ROW(var SMALLINT(7)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(7) DEFAULT NULL,
- `rec.var` smallint(7) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(8); DECLARE rec ROW(var SMALLINT(8)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(8) DEFAULT NULL,
- `rec.var` smallint(8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(9); DECLARE rec ROW(var SMALLINT(9)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(9) DEFAULT NULL,
- `rec.var` smallint(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(10); DECLARE rec ROW(var SMALLINT(10)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(10) DEFAULT NULL,
- `rec.var` smallint(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(11); DECLARE rec ROW(var SMALLINT(11)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(11) DEFAULT NULL,
- `rec.var` smallint(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(12); DECLARE rec ROW(var SMALLINT(12)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(12) DEFAULT NULL,
- `rec.var` smallint(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(13); DECLARE rec ROW(var SMALLINT(13)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(13) DEFAULT NULL,
- `rec.var` smallint(13) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(14); DECLARE rec ROW(var SMALLINT(14)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(14) DEFAULT NULL,
- `rec.var` smallint(14) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(20); DECLARE rec ROW(var SMALLINT(20)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(20) DEFAULT NULL,
- `rec.var` smallint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var SMALLINT(21); DECLARE rec ROW(var SMALLINT(21)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` smallint(21) DEFAULT NULL,
- `rec.var` smallint(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# MEDIUMINT
-#
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT; DECLARE rec ROW(var MEDIUMINT); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(9) DEFAULT NULL,
- `rec.var` mediumint(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(1); DECLARE rec ROW(var MEDIUMINT(1)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(9) DEFAULT NULL,
- `rec.var` mediumint(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(2); DECLARE rec ROW(var MEDIUMINT(2)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(9) DEFAULT NULL,
- `rec.var` mediumint(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(3); DECLARE rec ROW(var MEDIUMINT(3)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(9) DEFAULT NULL,
- `rec.var` mediumint(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(4); DECLARE rec ROW(var MEDIUMINT(4)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(9) DEFAULT NULL,
- `rec.var` mediumint(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(5); DECLARE rec ROW(var MEDIUMINT(5)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(9) DEFAULT NULL,
- `rec.var` mediumint(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(6); DECLARE rec ROW(var MEDIUMINT(6)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(9) DEFAULT NULL,
- `rec.var` mediumint(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(7); DECLARE rec ROW(var MEDIUMINT(7)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(9) DEFAULT NULL,
- `rec.var` mediumint(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(8); DECLARE rec ROW(var MEDIUMINT(8)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(9) DEFAULT NULL,
- `rec.var` mediumint(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(9); DECLARE rec ROW(var MEDIUMINT(9)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(9) DEFAULT NULL,
- `rec.var` mediumint(9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(10); DECLARE rec ROW(var MEDIUMINT(10)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(10) DEFAULT NULL,
- `rec.var` mediumint(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(11); DECLARE rec ROW(var MEDIUMINT(11)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(11) DEFAULT NULL,
- `rec.var` mediumint(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(12); DECLARE rec ROW(var MEDIUMINT(12)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(12) DEFAULT NULL,
- `rec.var` mediumint(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(13); DECLARE rec ROW(var MEDIUMINT(13)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(13) DEFAULT NULL,
- `rec.var` mediumint(13) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(14); DECLARE rec ROW(var MEDIUMINT(14)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(14) DEFAULT NULL,
- `rec.var` mediumint(14) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(20); DECLARE rec ROW(var MEDIUMINT(20)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(20) DEFAULT NULL,
- `rec.var` mediumint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMINT(21); DECLARE rec ROW(var MEDIUMINT(21)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumint(21) DEFAULT NULL,
- `rec.var` mediumint(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# BIGINT
-#
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT; DECLARE rec ROW(var BIGINT); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(1); DECLARE rec ROW(var BIGINT(1)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(2); DECLARE rec ROW(var BIGINT(2)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(3); DECLARE rec ROW(var BIGINT(3)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(4); DECLARE rec ROW(var BIGINT(4)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(5); DECLARE rec ROW(var BIGINT(5)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(6); DECLARE rec ROW(var BIGINT(6)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(7); DECLARE rec ROW(var BIGINT(7)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(8); DECLARE rec ROW(var BIGINT(8)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(9); DECLARE rec ROW(var BIGINT(9)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(10); DECLARE rec ROW(var BIGINT(10)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(11); DECLARE rec ROW(var BIGINT(11)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(12); DECLARE rec ROW(var BIGINT(12)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(13); DECLARE rec ROW(var BIGINT(13)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(14); DECLARE rec ROW(var BIGINT(14)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(20); DECLARE rec ROW(var BIGINT(20)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(20) DEFAULT NULL,
- `rec.var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BIGINT(21); DECLARE rec ROW(var BIGINT(21)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` bigint(21) DEFAULT NULL,
- `rec.var` bigint(21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# DOUBLE
-#
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE; DECLARE rec ROW(var DOUBLE); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double DEFAULT NULL,
- `rec.var` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,1); DECLARE rec ROW(var DOUBLE(30,1)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,1) DEFAULT NULL,
- `rec.var` double(30,1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,2); DECLARE rec ROW(var DOUBLE(30,2)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,2) DEFAULT NULL,
- `rec.var` double(30,2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,3); DECLARE rec ROW(var DOUBLE(30,3)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,3) DEFAULT NULL,
- `rec.var` double(30,3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,4); DECLARE rec ROW(var DOUBLE(30,4)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,4) DEFAULT NULL,
- `rec.var` double(30,4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,5); DECLARE rec ROW(var DOUBLE(30,5)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,5) DEFAULT NULL,
- `rec.var` double(30,5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,6); DECLARE rec ROW(var DOUBLE(30,6)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,6) DEFAULT NULL,
- `rec.var` double(30,6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,7); DECLARE rec ROW(var DOUBLE(30,7)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,7) DEFAULT NULL,
- `rec.var` double(30,7) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,8); DECLARE rec ROW(var DOUBLE(30,8)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,8) DEFAULT NULL,
- `rec.var` double(30,8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,9); DECLARE rec ROW(var DOUBLE(30,9)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,9) DEFAULT NULL,
- `rec.var` double(30,9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,10); DECLARE rec ROW(var DOUBLE(30,10)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,10) DEFAULT NULL,
- `rec.var` double(30,10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,11); DECLARE rec ROW(var DOUBLE(30,11)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,11) DEFAULT NULL,
- `rec.var` double(30,11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,12); DECLARE rec ROW(var DOUBLE(30,12)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,12) DEFAULT NULL,
- `rec.var` double(30,12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,13); DECLARE rec ROW(var DOUBLE(30,13)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,13) DEFAULT NULL,
- `rec.var` double(30,13) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,14); DECLARE rec ROW(var DOUBLE(30,14)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,14) DEFAULT NULL,
- `rec.var` double(30,14) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,20); DECLARE rec ROW(var DOUBLE(30,20)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,20) DEFAULT NULL,
- `rec.var` double(30,20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DOUBLE(30,21); DECLARE rec ROW(var DOUBLE(30,21)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` double(30,21) DEFAULT NULL,
- `rec.var` double(30,21) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# VARCHAR
-#
-CREATE PROCEDURE p1() BEGIN DECLARE var CHAR; DECLARE rec ROW(var CHAR); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` varchar(1) DEFAULT NULL,
- `rec.var` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BINARY; DECLARE rec ROW(var BINARY); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` varbinary(1) DEFAULT NULL,
- `rec.var` varbinary(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var CHAR(1); DECLARE rec ROW(var CHAR(1)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` varchar(1) DEFAULT NULL,
- `rec.var` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var CHAR(10); DECLARE rec ROW(var CHAR(10)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` varchar(10) DEFAULT NULL,
- `rec.var` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var NCHAR(10); DECLARE rec ROW(var NCHAR(10)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` varchar(10) CHARACTER SET utf8 DEFAULT NULL,
- `rec.var` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var BINARY(10); DECLARE rec ROW(var BINARY(10)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` varbinary(10) DEFAULT NULL,
- `rec.var` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var VARBINARY(10); DECLARE rec ROW(var VARBINARY(10)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` varbinary(10) DEFAULT NULL,
- `rec.var` varbinary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var VARCHAR(10); DECLARE rec ROW(var VARCHAR(10)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` varchar(10) DEFAULT NULL,
- `rec.var` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var VARCHAR(10) CHARACTER SET utf8; DECLARE rec ROW(var VARCHAR(10) CHARACTER SET utf8); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` varchar(10) CHARACTER SET utf8 DEFAULT NULL,
- `rec.var` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var VARCHAR(10) CHARACTER SET utf8 COLLATE utf8_bin; DECLARE rec ROW(var VARCHAR(10) CHARACTER SET utf8 COLLATE utf8_bin); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` varchar(10) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `rec.var` varchar(10) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# TIME
-#
-CREATE PROCEDURE p1() BEGIN DECLARE var TIME; DECLARE rec ROW(var TIME); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` time DEFAULT NULL,
- `rec.var` time DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TIME(1); DECLARE rec ROW(var TIME(1)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` time(1) DEFAULT NULL,
- `rec.var` time(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TIME(2); DECLARE rec ROW(var TIME(2)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` time(2) DEFAULT NULL,
- `rec.var` time(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TIME(3); DECLARE rec ROW(var TIME(3)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` time(3) DEFAULT NULL,
- `rec.var` time(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TIME(4); DECLARE rec ROW(var TIME(4)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` time(4) DEFAULT NULL,
- `rec.var` time(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TIME(5); DECLARE rec ROW(var TIME(5)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` time(5) DEFAULT NULL,
- `rec.var` time(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TIME(6); DECLARE rec ROW(var TIME(6)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` time(6) DEFAULT NULL,
- `rec.var` time(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# DATETIME
-#
-CREATE PROCEDURE p1() BEGIN DECLARE var DATETIME; DECLARE rec ROW(var DATETIME); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` datetime DEFAULT NULL,
- `rec.var` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DATETIME(1); DECLARE rec ROW(var DATETIME(1)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` datetime(1) DEFAULT NULL,
- `rec.var` datetime(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DATETIME(2); DECLARE rec ROW(var DATETIME(2)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` datetime(2) DEFAULT NULL,
- `rec.var` datetime(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DATETIME(3); DECLARE rec ROW(var DATETIME(3)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` datetime(3) DEFAULT NULL,
- `rec.var` datetime(3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DATETIME(4); DECLARE rec ROW(var DATETIME(4)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` datetime(4) DEFAULT NULL,
- `rec.var` datetime(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DATETIME(5); DECLARE rec ROW(var DATETIME(5)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` datetime(5) DEFAULT NULL,
- `rec.var` datetime(5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var DATETIME(6); DECLARE rec ROW(var DATETIME(6)); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` datetime(6) DEFAULT NULL,
- `rec.var` datetime(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# LOB
-#
-CREATE PROCEDURE p1() BEGIN DECLARE var TEXT; DECLARE rec ROW(var TEXT); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` text DEFAULT NULL,
- `rec.var` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYTEXT; DECLARE rec ROW(var TINYTEXT); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` tinytext DEFAULT NULL,
- `rec.var` tinytext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMTEXT; DECLARE rec ROW(var MEDIUMTEXT); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumtext DEFAULT NULL,
- `rec.var` mediumtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var LONGTEXT; DECLARE rec ROW(var LONGTEXT); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` longtext DEFAULT NULL,
- `rec.var` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TEXT CHARACTER SET utf8; DECLARE rec ROW(var TEXT CHARACTER SET utf8); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` mediumtext CHARACTER SET utf8 DEFAULT NULL,
- `rec.var` mediumtext CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var TINYTEXT CHARACTER SET utf8; DECLARE rec ROW(var TINYTEXT CHARACTER SET utf8); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` text CHARACTER SET utf8 DEFAULT NULL,
- `rec.var` text CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var MEDIUMTEXT CHARACTER SET utf8; DECLARE rec ROW(var MEDIUMTEXT CHARACTER SET utf8); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` longtext CHARACTER SET utf8 DEFAULT NULL,
- `rec.var` longtext CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1() BEGIN DECLARE var LONGTEXT CHARACTER SET utf8; DECLARE rec ROW(var LONGTEXT CHARACTER SET utf8); CREATE TABLE t1 AS SELECT var,rec.var FROM DUAL;END;
-CALL p1();
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `var` longtext CHARACTER SET utf8 DEFAULT NULL,
- `rec.var` longtext CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# End of MDEV-10914 ROW data type for stored routine variables
-#
-#
-# MDEV-12291 Allow ROW variables as SELECT INTO targets
-#
-# ROW variable with a wrong column count
-CREATE TABLE t1 (a INT, b VARCHAR(32));
-INSERT INTO t1 VALUES (10,'b10');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW(a INT, b VARCHAR(32), c DOUBLE);
-SELECT * FROM t1 INTO rec1;
-SELECT rec1.a, rec1.b;
-END;
-$$
-CALL p1();
-ERROR 21000: The used SELECT statements have a different number of columns
-DROP TABLE t1;
-DROP PROCEDURE p1;
-# Multiple ROW variables
-CREATE TABLE t1 (a INT, b VARCHAR(32));
-INSERT INTO t1 VALUES (10,'b10');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW(a INT, b VARCHAR(32));
-SELECT * FROM t1 INTO rec1, rec1;
-SELECT rec1.a, rec1.b;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 2 column(s)
-DROP TABLE t1;
-DROP PROCEDURE p1;
-# ROW variables working example
-CREATE TABLE t1 (a INT, b VARCHAR(32));
-INSERT INTO t1 VALUES (10,'b10');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE rec1 ROW(a INT, b VARCHAR(32));
-SELECT * FROM t1 INTO rec1;
-SELECT rec1.a, rec1.b;
-END;
-$$
-CALL p1();
-rec1.a rec1.b
-10 b10
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# MDEV-13273 Confusion between table alias and ROW type variable
-#
-CREATE TABLE t1 (c1 INT, c2 INT);
-INSERT INTO t1 VALUES (0,0);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a INT;
-DECLARE b INT;
--- a.c1 is a table column
-SELECT a.c1 INTO b
-FROM t1 a
-WHERE a.c2 = 0;
-SELECT b;
-END;
-$$
-CALL p1;
-b
-0
-DROP PROCEDURE p1;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 INT, c2 INT);
-INSERT INTO t1 VALUES (0,0);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW (c1 INT, c2 INT) DEFAULT ROW(101,102);
-DECLARE b INT;
--- a.c1 is a ROW variable field
-SELECT a.c1 INTO b
-FROM t1 a
-WHERE a.c2 = 102;
-SELECT b;
-END;
-$$
-CALL p1;
-b
-101
-DROP PROCEDURE p1;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 INT, c2 INT);
-INSERT INTO t1 VALUES (0,0);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a ROW TYPE OF t1 DEFAULT ROW (10,20);
-DECLARE b INT;
--- a.c1 is a ROW variable field
-SELECT a.c1 INTO b
-FROM t1 a
-WHERE a.c2 = 20;
-SELECT b;
-END;
-$$
-CALL p1;
-b
-10
-DROP PROCEDURE p1;
-DROP TABLE t1;
-CREATE TABLE t1 (c1 INT, c2 INT);
-INSERT INTO t1 VALUES (0,0);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM t1;
-BEGIN
-DECLARE a ROW TYPE OF cur1 DEFAULT ROW (10,20);
-DECLARE b INT;
--- a.c1 is a ROW variable field
-SELECT a.c1 INTO b
-FROM t1 a
-WHERE a.c2 = 20;
-SELECT b;
-END;
-END;
-$$
-CALL p1;
-b
-10
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# MDEV-13527 Crash when EXPLAIN SELECT .. INTO row_sp_variable.field
-#
-BEGIN NOT ATOMIC
-DECLARE a ROW(a INT);
-EXPLAIN SELECT 1 INTO a.a;
-END;
-$$
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-#
-# MDEV-14139 Anchored data types for variables
-#
-BEGIN NOT ATOMIC
-DECLARE row1 ROW(int11 INT,text1 TEXT);
-DECLARE a_row1 TYPE OF row1;
-DECLARE aa_row1 TYPE OF a_row1;
-CREATE TABLE t1 AS SELECT a_row1.int11 AS int11, a_row1.text1 AS text1;
-SHOW CREATE TABLE t1;
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT aa_row1.int11 AS int11, aa_row1.text1 AS text1;
-SHOW CREATE TABLE t1;
-DROP TABLE t1;
-END;
-$$
-Table Create Table
-t1 CREATE TABLE `t1` (
- `int11` int(11) DEFAULT NULL,
- `text1` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-Table Create Table
-t1 CREATE TABLE `t1` (
- `int11` int(11) DEFAULT NULL,
- `text1` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
diff --git a/mysql-test/r/sp-security-anchor-type.result b/mysql-test/r/sp-security-anchor-type.result
deleted file mode 100644
index 4ee846f9f2e..00000000000
--- a/mysql-test/r/sp-security-anchor-type.result
+++ /dev/null
@@ -1,263 +0,0 @@
-#
-# MDEV-12461 TYPE OF and ROW TYPE OF anchored data types
-#
-#
-# Initiation:
-# - creating database db1
-# - creating user user1 with access rights to db1
-#
-CREATE DATABASE db1;
-CREATE TABLE db1.t1 (a INT, b VARCHAR(10));
-CREATE USER user1;
-GRANT ALL PRIVILEGES ON test.* TO user1;
-connect conn1,localhost,user1,,test;
-SELECT database();
-database()
-test
-SELECT user();
-user()
-user1@localhost
-#
-# Making sure that user1 does not have privileges to db1.t1
-#
-SHOW CREATE TABLE db1.t1;
-ERROR 42000: SHOW command denied to user 'user1'@'localhost' for table 't1'
-SHOW FIELDS IN db1.t1;
-ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1'
-#
-# Trigger: using TYPE OF with a table we don't have access to
-#
-CREATE TABLE test.t1 (a INT, b INT);
-INSERT INTO test.t1 (a,b) VALUES (10,20);
-SELECT * FROM t1;
-a b
-10 20
-CREATE TRIGGER test.tr1 BEFORE INSERT ON test.t1 FOR EACH ROW
-BEGIN
-DECLARE b TYPE OF db1.t1.b DEFAULT 20;
-SET NEW.b = 10;
-END
-$$
-INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1'
-SELECT * FROM t1;
-a b
-10 20
-DROP TRIGGER tr1;
-DROP TABLE t1;
-#
-# Stored procedure: Using TYPE OF for with a table that we don't have access to
-# DEFINER user1, SQL SECURITY DEFAULT
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a TYPE OF db1.t1.a DEFAULT 10;
-SELECT a;
-END;
-$$
-CALL p1;
-ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1'
-DROP PROCEDURE p1;
-#
-# Stored procedure: Using TYPE OF for with a table that we don't have access to
-# DEFINER root, SQL SECURITY INVOKER
-#
-connection default;
-CREATE PROCEDURE p1()
-SQL SECURITY INVOKER
-BEGIN
-DECLARE a TYPE OF db1.t1.a DEFAULT 10;
-SELECT a;
-END;
-$$
-connection conn1;
-CALL p1;
-ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1'
-DROP PROCEDURE p1;
-connection default;
-CREATE PROCEDURE p1()
-SQL SECURITY INVOKER
-BEGIN
-DECLARE a ROW TYPE OF db1.t1;
-SELECT a.a;
-END;
-$$
-connection conn1;
-CALL p1;
-ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1'
-DROP PROCEDURE p1;
-#
-# Stored procedure: Using TYPE OF for with a table that we don't have access to
-# DEFINER root, SQL SECURITY DEFINER
-#
-connection default;
-CREATE PROCEDURE p1()
-SQL SECURITY DEFINER
-BEGIN
-DECLARE a TYPE OF db1.t1.a DEFAULT 10;
-SELECT a;
-END;
-$$
-connection conn1;
-CALL p1;
-a
-10
-DROP PROCEDURE p1;
-connection default;
-CREATE PROCEDURE p1()
-SQL SECURITY DEFINER
-BEGIN
-DECLARE a ROW TYPE OF db1.t1;
-SET a.a= 10;
-SELECT a.a;
-END;
-$$
-connection conn1;
-CALL p1;
-a.a
-10
-DROP PROCEDURE p1;
-#
-# Stored function: Using TYPE OF for with a table that we don't have access to
-# DEFINER user1, SQL SECURITY DEFAULT
-#
-CREATE TABLE t1 (a INT);
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-DECLARE a TYPE OF db1.t1.a DEFAULT 0;
-RETURN OCTET_LENGTH(a);
-END;
-$$
-SELECT f1();
-ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1'
-DROP FUNCTION f1;
-DROP TABLE t1;
-#
-# Stored function: Using TYPE OF for with a table that we don't have access to
-# DEFINER root, SQL SECURITY INVOKER
-#
-connection default;
-CREATE TABLE t1 (a INT);
-CREATE FUNCTION f1() RETURNS INT
-SQL SECURITY INVOKER
-BEGIN
-DECLARE a TYPE OF db1.t1.a DEFAULT 0;
-RETURN OCTET_LENGTH(a);
-END;
-$$
-connection conn1;
-SELECT f1();
-ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1'
-DROP FUNCTION f1;
-DROP TABLE t1;
-#
-# Stored function: Using TYPE OF for with a table that we don't have access to
-# DEFINER root, SQL SECURITY DEFINER
-#
-connection default;
-CREATE TABLE t1 (a INT);
-CREATE FUNCTION f1() RETURNS INT
-SQL SECURITY DEFINER
-BEGIN
-DECLARE a TYPE OF db1.t1.a DEFAULT 0;
-RETURN OCTET_LENGTH(a);
-END;
-$$
-connection conn1;
-SELECT f1();
-f1()
-1
-DROP FUNCTION f1;
-DROP TABLE t1;
-connection default;
-GRANT SELECT (a) ON db1.t1 TO user1;
-connection conn1;
-#
-# Making sure that user1 has access to db1.t1.a, but not to db1.t1.b
-#
-SHOW CREATE TABLE db1.t1;
-ERROR 42000: SHOW command denied to user 'user1'@'localhost' for table 't1'
-SHOW FIELDS IN db1.t1;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-#
-# Trigger: Per-column privileges
-#
-CREATE TABLE test.t1 (a INT, b INT);
-INSERT INTO test.t1 (a,b) VALUES (10,20);
-SELECT * FROM t1;
-a b
-10 20
-CREATE TRIGGER test.tr1 BEFORE INSERT ON test.t1 FOR EACH ROW
-BEGIN
-DECLARE a TYPE OF db1.t1.a DEFAULT 20;
-BEGIN
-SET NEW.b := 10;
-END;
-END
-$$
-INSERT INTO t1 (a) VALUES (10);
-SELECT * FROM t1;
-a b
-10 20
-10 10
-DROP TRIGGER tr1;
-CREATE TRIGGER test.tr1 BEFORE INSERT ON test.t1 FOR EACH ROW
-BEGIN
-DECLARE b TYPE OF db1.t1.b DEFAULT 20;
-BEGIN
-SET NEW.b = 10;
-END;
-END
-$$
-INSERT INTO t1 (a) VALUES (10);
-ERROR 42000: SELECT command denied to user 'user1'@'localhost' for column 'b' in table 't1'
-SELECT * FROM t1;
-a b
-10 20
-10 10
-DROP TRIGGER tr1;
-DROP TABLE t1;
-#
-# Stored procedure: Per-column privileges
-# DEFINER user1, SQL SECURITY DEFAULT
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a TYPE OF db1.t1.a DEFAULT 10;
-SELECT a;
-END;
-$$
-CALL p1;
-a
-10
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE b TYPE OF db1.t1.b DEFAULT 10;
-SELECT b;
-END;
-$$
-CALL p1;
-ERROR 42000: SELECT command denied to user 'user1'@'localhost' for column 'b' in table 't1'
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE b ROW TYPE OF db1.t1;
-SET b.b=10;
-SELECT b.b;
-END;
-$$
-CALL p1;
-ERROR 42000: SELECT command denied to user 'user1'@'localhost' for column 'b' in table 't1'
-DROP PROCEDURE p1;
-#
-# Clean up
-#
-disconnect conn1;
-connection default;
-DROP USER user1;
-DROP DATABASE db1;
-#
-# End of MDEV-12461 TYPE OF and ROW TYPE OF anchored data types
-#
diff --git a/mysql-test/r/sp-security.result b/mysql-test/r/sp-security.result
deleted file mode 100644
index 882072ff7c7..00000000000
--- a/mysql-test/r/sp-security.result
+++ /dev/null
@@ -1,775 +0,0 @@
-connect con1root,localhost,root,,;
-connection con1root;
-use test;
-create user user1@localhost;
-grant usage on *.* to user1@localhost;
-flush privileges;
-drop table if exists t1;
-drop database if exists db1_secret;
-create database db1_secret;
-create procedure db1_secret.dummy() begin end;
-drop procedure db1_secret.dummy;
-use db1_secret;
-create table t1 ( u varchar(64), i int );
-insert into t1 values('test', 0);
-create procedure stamp(i int)
-insert into db1_secret.t1 values (user(), i);
-show procedure status like 'stamp';
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-db1_secret stamp PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-create function db() returns varchar(64)
-begin
-declare v varchar(64);
-select u into v from t1 limit 1;
-return v;
-end|
-show function status like 'db';
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-db1_secret db FUNCTION root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-call stamp(1);
-select * from t1;
-u i
-test 0
-root@localhost 1
-select db();
-db()
-test
-create user user1@'%';
-grant execute on procedure db1_secret.stamp to user1@'%';
-grant execute on function db1_secret.db to user1@'%';
-set sql_mode='';
-grant execute on procedure db1_secret.stamp to ''@'%';
-grant execute on function db1_secret.db to ''@'%';
-set sql_mode=default;
-connect con2user1,localhost,user1,,;
-connect con3anon,localhost,anon,,;
-connection con2user1;
-call db1_secret.stamp(2);
-select db1_secret.db();
-db1_secret.db()
-test
-select * from db1_secret.t1;
-ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1'
-create procedure db1_secret.dummy() begin end;
-ERROR 42000: Access denied for user 'user1'@'localhost' to database 'db1_secret'
-drop procedure db1_secret.dummy;
-ERROR 42000: alter routine command denied to user 'user1'@'localhost' for routine 'db1_secret.dummy'
-drop procedure db1_secret.stamp;
-ERROR 42000: alter routine command denied to user 'user1'@'localhost' for routine 'db1_secret.stamp'
-drop function db1_secret.db;
-ERROR 42000: alter routine command denied to user 'user1'@'localhost' for routine 'db1_secret.db'
-connection con3anon;
-call db1_secret.stamp(3);
-select db1_secret.db();
-db1_secret.db()
-test
-select * from db1_secret.t1;
-ERROR 42000: SELECT command denied to user ''@'localhost' for table 't1'
-create procedure db1_secret.dummy() begin end;
-ERROR 42000: Access denied for user ''@'%' to database 'db1_secret'
-drop procedure db1_secret.dummy;
-ERROR 42000: alter routine command denied to user ''@'%' for routine 'db1_secret.dummy'
-drop procedure db1_secret.stamp;
-ERROR 42000: alter routine command denied to user ''@'%' for routine 'db1_secret.stamp'
-drop function db1_secret.db;
-ERROR 42000: alter routine command denied to user ''@'%' for routine 'db1_secret.db'
-connection con1root;
-select * from t1;
-u i
-test 0
-root@localhost 1
-user1@localhost 2
-anon@localhost 3
-alter procedure stamp sql security invoker;
-show procedure status like 'stamp';
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-db1_secret stamp PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 INVOKER latin1 latin1_swedish_ci latin1_swedish_ci
-alter function db sql security invoker;
-show function status like 'db';
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-db1_secret db FUNCTION root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 INVOKER latin1 latin1_swedish_ci latin1_swedish_ci
-call stamp(4);
-select * from t1;
-u i
-test 0
-root@localhost 1
-user1@localhost 2
-anon@localhost 3
-root@localhost 4
-select db();
-db()
-test
-connection con2user1;
-call db1_secret.stamp(5);
-ERROR 42000: INSERT command denied to user 'user1'@'localhost' for table 't1'
-select db1_secret.db();
-ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1'
-connection con3anon;
-call db1_secret.stamp(6);
-ERROR 42000: INSERT command denied to user ''@'localhost' for table 't1'
-select db1_secret.db();
-ERROR 42000: SELECT command denied to user ''@'localhost' for table 't1'
-connection con1root;
-drop database if exists db2;
-create database db2;
-use db2;
-create table t2 (s1 int);
-insert into t2 values (0);
-grant usage on db2.* to user1@localhost;
-grant select on db2.* to user1@localhost;
-create user user2@localhost;
-grant usage on db2.* to user2@localhost;
-grant select,insert,update,delete,create routine on db2.* to user2@localhost;
-grant create routine on db2.* to user1@localhost;
-flush privileges;
-connection con2user1;
-use db2;
-create procedure p () insert into t2 values (1);
-call p();
-ERROR 42000: INSERT command denied to user 'user1'@'localhost' for table 't2'
-connect con4user2,localhost,user2,,;
-connection con4user2;
-use db2;
-call p();
-ERROR 42000: execute command denied to user 'user2'@'localhost' for routine 'db2.p'
-select * from t2;
-s1
-0
-create procedure q () insert into t2 values (2);
-call q();
-select * from t2;
-s1
-0
-2
-connection con1root;
-grant usage on procedure db2.q to user2@localhost with grant option;
-connection con4user2;
-grant execute on procedure db2.q to user1@localhost;
-connection con2user1;
-use db2;
-call q();
-select * from t2;
-s1
-0
-2
-2
-alter procedure p modifies sql data;
-drop procedure p;
-alter procedure q modifies sql data;
-ERROR 42000: alter routine command denied to user 'user1'@'localhost' for routine 'db2.q'
-drop procedure q;
-ERROR 42000: alter routine command denied to user 'user1'@'localhost' for routine 'db2.q'
-connection con1root;
-use db2;
-alter procedure q modifies sql data;
-drop procedure q;
-disconnect con2user1;
-disconnect con3anon;
-disconnect con4user2;
-use test;
-select type,db,name from mysql.proc where db like 'db%';
-type db name
-FUNCTION db1_secret db
-PROCEDURE db1_secret stamp
-drop database db1_secret;
-drop database db2;
-select type,db,name from mysql.proc where db like 'db%';
-type db name
-delete from mysql.user where user='user1' or user='user2';
-delete from mysql.user where user='' and host='%';
-delete from mysql.procs_priv where user='user1' or user='user2';
-delete from mysql.procs_priv where user='' and host='%';
-delete from mysql.db where user='user2';
-flush privileges;
-create user usera@localhost;
-grant usage on *.* to usera@localhost;
-create user userb@localhost;
-grant usage on *.* to userb@localhost;
-create user userc@localhost;
-grant usage on *.* to userc@localhost;
-create database sptest;
-create table t1 ( u varchar(64), i int );
-create procedure sptest.p1(i int) insert into test.t1 values (user(), i);
-grant insert on t1 to usera@localhost;
-grant execute on procedure sptest.p1 to usera@localhost;
-show grants for usera@localhost;
-Grants for usera@localhost
-GRANT USAGE ON *.* TO 'usera'@'localhost'
-GRANT INSERT ON `test`.`t1` TO 'usera'@'localhost'
-GRANT EXECUTE ON PROCEDURE `sptest`.`p1` TO 'usera'@'localhost'
-grant execute on procedure sptest.p1 to userc@localhost with grant option;
-show grants for userc@localhost;
-Grants for userc@localhost
-GRANT USAGE ON *.* TO 'userc'@'localhost'
-GRANT EXECUTE ON PROCEDURE `sptest`.`p1` TO 'userc'@'localhost' WITH GRANT OPTION
-connect con2usera,localhost,usera,,;
-connect con3userb,localhost,userb,,;
-connect con4userc,localhost,userc,,;
-connection con2usera;
-call sptest.p1(1);
-grant execute on procedure sptest.p1 to userb@localhost;
-ERROR 42000: grant command denied to user 'usera'@'localhost' for routine 'sptest.p1'
-drop procedure sptest.p1;
-ERROR 42000: alter routine command denied to user 'usera'@'localhost' for routine 'sptest.p1'
-connection con3userb;
-call sptest.p1(2);
-ERROR 42000: execute command denied to user 'userb'@'localhost' for routine 'sptest.p1'
-grant execute on procedure sptest.p1 to userb@localhost;
-ERROR 42000: execute command denied to user 'userb'@'localhost' for routine 'sptest.p1'
-drop procedure sptest.p1;
-ERROR 42000: alter routine command denied to user 'userb'@'localhost' for routine 'sptest.p1'
-connection con4userc;
-call sptest.p1(3);
-grant execute on procedure sptest.p1 to userb@localhost;
-drop procedure sptest.p1;
-ERROR 42000: alter routine command denied to user 'userc'@'localhost' for routine 'sptest.p1'
-connection con3userb;
-call sptest.p1(4);
-grant execute on procedure sptest.p1 to userb@localhost;
-ERROR 42000: grant command denied to user 'userb'@'localhost' for routine 'sptest.p1'
-drop procedure sptest.p1;
-ERROR 42000: alter routine command denied to user 'userb'@'localhost' for routine 'sptest.p1'
-connection con1root;
-select * from t1;
-u i
-usera@localhost 1
-userc@localhost 3
-userb@localhost 4
-grant all privileges on procedure sptest.p1 to userc@localhost;
-show grants for userc@localhost;
-Grants for userc@localhost
-GRANT USAGE ON *.* TO 'userc'@'localhost'
-GRANT EXECUTE, ALTER ROUTINE ON PROCEDURE `sptest`.`p1` TO 'userc'@'localhost' WITH GRANT OPTION
-show grants for userb@localhost;
-Grants for userb@localhost
-GRANT USAGE ON *.* TO 'userb'@'localhost'
-GRANT EXECUTE ON PROCEDURE `sptest`.`p1` TO 'userb'@'localhost'
-connection con4userc;
-revoke all privileges on procedure sptest.p1 from userb@localhost;
-connection con1root;
-show grants for userb@localhost;
-Grants for userb@localhost
-GRANT USAGE ON *.* TO 'userb'@'localhost'
-disconnect con4userc;
-disconnect con3userb;
-disconnect con2usera;
-use test;
-drop database sptest;
-delete from mysql.user where user='usera' or user='userb' or user='userc';
-delete from mysql.procs_priv where user='usera' or user='userb' or user='userc';
-delete from mysql.tables_priv where user='usera';
-flush privileges;
-drop table t1;
-connect root,localhost,root,,test;
-connection root;
-drop function if exists bug_9503;
-drop user if exists user1@localhost;
-create database mysqltest//
-use mysqltest//
-create table t1 (s1 int)//
-create user user1@localhost//
-grant select on t1 to user1@localhost//
-create function bug_9503 () returns int sql security invoker begin declare v int;
-select min(s1) into v from t1; return v; end//
-connect user1,localhost,user1,,test;
-connection user1;
-use mysqltest;
-select bug_9503();
-ERROR 42000: execute command denied to user 'user1'@'localhost' for routine 'mysqltest.bug_9503'
-connection root;
-grant execute on function bug_9503 to user1@localhost;
-connection user1;
-do 1;
-use test;
-disconnect user1;
-connection root;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM user1@localhost;
-drop function bug_9503;
-use test;
-drop database mysqltest;
-connection default;
-disconnect root;
-connection con1root;
-use test;
-select current_user();
-current_user()
-root@localhost
-select user();
-user()
-root@localhost
-create procedure bug7291_0 () sql security invoker select current_user(), user();
-create procedure bug7291_1 () sql security definer call bug7291_0();
-create procedure bug7291_2 () sql security invoker call bug7291_0();
-grant execute on procedure bug7291_0 to user1@localhost;
-grant execute on procedure bug7291_1 to user1@localhost;
-grant execute on procedure bug7291_2 to user1@localhost;
-connect user1,localhost,user1,,;
-connection user1;
-call bug7291_2();
-current_user() user()
-user1@localhost user1@localhost
-call bug7291_1();
-current_user() user()
-root@localhost user1@localhost
-connection con1root;
-drop procedure bug7291_1;
-drop procedure bug7291_2;
-drop procedure bug7291_0;
-disconnect user1;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM user1@localhost;
-drop user user1@localhost;
-drop database if exists mysqltest_1;
-create database mysqltest_1;
-create procedure mysqltest_1.p1()
-begin
-select 1 from dual;
-end//
-create user mysqltest_1@localhost;
-grant usage on *.* to mysqltest_1@localhost;
-connect n1,localhost,mysqltest_1,,information_schema,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection n1;
-call mysqltest_1.p1();
-ERROR 42000: execute command denied to user 'mysqltest_1'@'localhost' for routine 'mysqltest_1.p1'
-disconnect n1;
-connect n2,localhost,mysqltest_1,,*NO-ONE*,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection n2;
-call mysqltest_1.p1();
-ERROR 42000: execute command denied to user 'mysqltest_1'@'localhost' for routine 'mysqltest_1.p1'
-disconnect n2;
-connection default;
-drop procedure mysqltest_1.p1;
-drop database mysqltest_1;
-revoke usage on *.* from mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop function if exists bug12812|
-create function bug12812() returns char(2)
-begin
-return 'ok';
-end;
-create user user_bug12812@localhost IDENTIFIED BY 'ABC'|
-connect test_user_12812,localhost,user_bug12812,ABC,test;
-SELECT test.bug12812()|
-ERROR 42000: execute command denied to user 'user_bug12812'@'localhost' for routine 'test.bug12812'
-CREATE VIEW v1 AS SELECT test.bug12812()|
-ERROR 42000: execute command denied to user 'user_bug12812'@'localhost' for routine 'test.bug12812'
-connection default;
-disconnect test_user_12812;
-DROP USER user_bug12812@localhost|
-drop function bug12812|
-create database db_bug14834;
-create user user1_bug14834@localhost identified by '';
-grant all on `db\_bug14834`.* to user1_bug14834@localhost;
-create user user2_bug14834@localhost identified by '';
-grant all on `db\_bug14834`.* to user2_bug14834@localhost;
-create user user3_bug14834@localhost identified by '';
-grant all on `db__ug14834`.* to user3_bug14834@localhost;
-connect user1_bug14834,localhost,user1_bug14834,,db_bug14834;
-create procedure p_bug14834() select user(), current_user();
-call p_bug14834();
-user() current_user()
-user1_bug14834@localhost user1_bug14834@localhost
-connect user2_bug14834,localhost,user2_bug14834,,db_bug14834;
-call p_bug14834();
-user() current_user()
-user2_bug14834@localhost user1_bug14834@localhost
-connect user3_bug14834,localhost,user3_bug14834,,db_bug14834;
-call p_bug14834();
-user() current_user()
-user3_bug14834@localhost user1_bug14834@localhost
-connection default;
-disconnect user1_bug14834;
-disconnect user2_bug14834;
-disconnect user3_bug14834;
-drop user user1_bug14834@localhost;
-drop user user2_bug14834@localhost;
-drop user user3_bug14834@localhost;
-drop database db_bug14834;
-create database db_bug14533;
-use db_bug14533;
-create table t1 (id int);
-create user user_bug14533@localhost identified by '';
-create procedure bug14533_1()
-sql security definer
-desc db_bug14533.t1;
-create procedure bug14533_2()
-sql security definer
-select * from db_bug14533.t1;
-grant execute on procedure db_bug14533.bug14533_1 to user_bug14533@localhost;
-grant execute on procedure db_bug14533.bug14533_2 to user_bug14533@localhost;
-connect user_bug14533,localhost,user_bug14533,,test;
-call db_bug14533.bug14533_1();
-Field Type Null Key Default Extra
-id int(11) YES NULL
-call db_bug14533.bug14533_2();
-id
-desc db_bug14533.t1;
-ERROR 42000: SELECT command denied to user 'user_bug14533'@'localhost' for table 't1'
-select * from db_bug14533.t1;
-ERROR 42000: SELECT command denied to user 'user_bug14533'@'localhost' for table 't1'
-connection default;
-disconnect user_bug14533;
-drop user user_bug14533@localhost;
-drop database db_bug14533;
-connection con1root;
-DROP DATABASE IF EXISTS mysqltest;
-CREATE DATABASE mysqltest;
-CREATE USER mysqltest_1@localhost;
-GRANT ALL PRIVILEGES ON mysqltest.* TO mysqltest_1@localhost;
-CREATE USER mysqltest_2@localhost;
-GRANT SUPER ON *.* TO mysqltest_2@localhost;
-GRANT ALL PRIVILEGES ON mysqltest.* TO mysqltest_2@localhost;
-connect mysqltest_2_con,localhost,mysqltest_2,,mysqltest;
-connect mysqltest_1_con,localhost,mysqltest_1,,mysqltest;
-connection mysqltest_2_con;
-USE mysqltest;
-CREATE PROCEDURE wl2897_p1() SELECT 1;
-CREATE FUNCTION wl2897_f1() RETURNS INT RETURN 1;
-connection mysqltest_1_con;
-USE mysqltest;
-CREATE DEFINER=root@localhost PROCEDURE wl2897_p2() SELECT 2;
-ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
-CREATE DEFINER=root@localhost FUNCTION wl2897_f2() RETURNS INT RETURN 2;
-ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
-connection mysqltest_2_con;
-use mysqltest;
-CREATE DEFINER='a @ b @ c'@localhost PROCEDURE wl2897_p3() SELECT 3;
-Warnings:
-Note 1449 The user specified as a definer ('a @ b @ c'@'localhost') does not exist
-CREATE DEFINER='a @ b @ c'@localhost FUNCTION wl2897_f3() RETURNS INT RETURN 3;
-Warnings:
-Note 1449 The user specified as a definer ('a @ b @ c'@'localhost') does not exist
-connection con1root;
-USE mysqltest;
-SHOW CREATE PROCEDURE wl2897_p1;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-wl2897_p1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`mysqltest_2`@`localhost` PROCEDURE `wl2897_p1`()
-SELECT 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE PROCEDURE wl2897_p3;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-wl2897_p3 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`a @ b @ c`@`localhost` PROCEDURE `wl2897_p3`()
-SELECT 3 latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE FUNCTION wl2897_f1;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-wl2897_f1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`mysqltest_2`@`localhost` FUNCTION `wl2897_f1`() RETURNS int(11)
-RETURN 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE FUNCTION wl2897_f3;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-wl2897_f3 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`a @ b @ c`@`localhost` FUNCTION `wl2897_f3`() RETURNS int(11)
-RETURN 3 latin1 latin1_swedish_ci latin1_swedish_ci
-DROP USER mysqltest_1@localhost;
-DROP USER mysqltest_2@localhost;
-DROP DATABASE mysqltest;
-disconnect mysqltest_1_con;
-disconnect mysqltest_2_con;
-connection con1root;
-DROP DATABASE IF EXISTS mysqltest;
-CREATE DATABASE mysqltest;
-CREATE USER mysqltest_1@localhost;
-GRANT ALL PRIVILEGES ON mysqltest.* TO mysqltest_1@localhost;
-CREATE USER mysqltest_2@localhost;
-GRANT ALL PRIVILEGES ON mysqltest.* TO mysqltest_2@localhost;
-connect mysqltest_1_con,localhost,mysqltest_1,,mysqltest;
-connect mysqltest_2_con,localhost,mysqltest_2,,mysqltest;
-connection mysqltest_1_con;
-USE mysqltest;
-CREATE PROCEDURE bug13198_p1()
-SELECT 1;
-CREATE FUNCTION bug13198_f1() RETURNS INT
-RETURN 1;
-CALL bug13198_p1();
-1
-1
-SELECT bug13198_f1();
-bug13198_f1()
-1
-connection mysqltest_2_con;
-USE mysqltest;
-CALL bug13198_p1();
-1
-1
-SELECT bug13198_f1();
-bug13198_f1()
-1
-connection con1root;
-disconnect mysqltest_1_con;
-DROP USER mysqltest_1@localhost;
-connection mysqltest_2_con;
-USE mysqltest;
-CALL bug13198_p1();
-ERROR HY000: The user specified as a definer ('mysqltest_1'@'localhost') does not exist
-SELECT bug13198_f1();
-ERROR HY000: The user specified as a definer ('mysqltest_1'@'localhost') does not exist
-connection con1root;
-disconnect mysqltest_2_con;
-DROP USER mysqltest_2@localhost;
-DROP DATABASE mysqltest;
-GRANT USAGE ON *.* TO user19857@localhost IDENTIFIED BY 'meow';
-GRANT SELECT, INSERT, UPDATE, DELETE, CREATE ROUTINE, ALTER ROUTINE ON test.* TO
-user19857@localhost;
-SELECT Host,User,Password FROM mysql.user WHERE User='user19857';
-Host User Password
-localhost user19857 *82DC221D557298F6CE9961037DB1C90604792F5C
-connect mysqltest_2_con,localhost,user19857,meow,test;
-connection mysqltest_2_con;
-USE test;
-CREATE PROCEDURE sp19857() DETERMINISTIC
-BEGIN
-DECLARE a INT;
-SET a=1;
-SELECT a;
-END //
-SHOW CREATE PROCEDURE test.sp19857;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-sp19857 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`user19857`@`localhost` PROCEDURE `sp19857`()
- DETERMINISTIC
-BEGIN
-DECLARE a INT;
-SET a=1;
-SELECT a;
-END latin1 latin1_swedish_ci latin1_swedish_ci
-disconnect mysqltest_2_con;
-connect mysqltest_2_con,localhost,user19857,meow,test;
-connection mysqltest_2_con;
-DROP PROCEDURE IF EXISTS test.sp19857;
-connection con1root;
-disconnect mysqltest_2_con;
-SELECT Host,User,Password FROM mysql.user WHERE User='user19857';
-Host User Password
-localhost user19857 *82DC221D557298F6CE9961037DB1C90604792F5C
-DROP USER user19857@localhost;
-disconnect con1root;
-connection default;
-use test;
-DROP TABLE IF EXISTS t1;
-DROP VIEW IF EXISTS v1;
-DROP FUNCTION IF EXISTS f_suid;
-DROP PROCEDURE IF EXISTS p_suid;
-DROP FUNCTION IF EXISTS f_evil;
-DELETE FROM mysql.user WHERE user LIKE 'mysqltest\_%';
-DELETE FROM mysql.db WHERE user LIKE 'mysqltest\_%';
-DELETE FROM mysql.tables_priv WHERE user LIKE 'mysqltest\_%';
-DELETE FROM mysql.columns_priv WHERE user LIKE 'mysqltest\_%';
-FLUSH PRIVILEGES;
-CREATE TABLE t1 (i INT);
-CREATE FUNCTION f_suid(i INT) RETURNS INT SQL SECURITY DEFINER RETURN 0;
-CREATE PROCEDURE p_suid(IN i INT) SQL SECURITY DEFINER SET @c:= 0;
-CREATE USER mysqltest_u1@localhost;
-GRANT EXECUTE ON test.* TO mysqltest_u1@localhost;
-CREATE DEFINER=mysqltest_u1@localhost FUNCTION f_evil () RETURNS INT
-SQL SECURITY INVOKER
-BEGIN
-SET @a:= CURRENT_USER();
-SET @b:= (SELECT COUNT(*) FROM t1);
-RETURN @b;
-END|
-CREATE SQL SECURITY INVOKER VIEW v1 AS SELECT f_evil();
-connect conn1, localhost, mysqltest_u1,,;
-SELECT COUNT(*) FROM t1;
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't1'
-SELECT f_evil();
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't1'
-SELECT @a, @b;
-@a @b
-mysqltest_u1@localhost NULL
-SELECT f_suid(f_evil());
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't1'
-SELECT @a, @b;
-@a @b
-mysqltest_u1@localhost NULL
-CALL p_suid(f_evil());
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't1'
-SELECT @a, @b;
-@a @b
-mysqltest_u1@localhost NULL
-SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 'v1'
-SELECT @a, @b;
-@a @b
-mysqltest_u1@localhost NULL
-disconnect conn1;
-connection default;
-DROP VIEW v1;
-DROP FUNCTION f_evil;
-DROP USER mysqltest_u1@localhost;
-DROP PROCEDURE p_suid;
-DROP FUNCTION f_suid;
-DROP TABLE t1;
-#
-# Bug #48872 : Privileges for stored functions ignored if function name
-# is mixed case
-#
-CREATE DATABASE B48872;
-USE B48872;
-CREATE TABLE `TestTab` (id INT);
-INSERT INTO `TestTab` VALUES (1),(2);
-CREATE FUNCTION `f_Test`() RETURNS INT RETURN 123;
-CREATE FUNCTION `f_Test_denied`() RETURNS INT RETURN 123;
-CREATE USER 'tester';
-CREATE USER 'Tester';
-GRANT SELECT ON TABLE `TestTab` TO 'tester';
-GRANT EXECUTE ON FUNCTION `f_Test` TO 'tester';
-GRANT EXECUTE ON FUNCTION `f_Test_denied` TO 'Tester';
-SELECT f_Test();
-f_Test()
-123
-SELECT * FROM TestTab;
-id
-1
-2
-CONNECT con_tester,localhost,tester,,B48872;
-CONNECT con_tester_denied,localhost,Tester,,B48872;
-connection con_tester;
-SELECT * FROM TestTab;
-id
-1
-2
-SELECT `f_Test`();
-`f_Test`()
-123
-SELECT `F_TEST`();
-`F_TEST`()
-123
-SELECT f_Test();
-f_Test()
-123
-SELECT F_TEST();
-F_TEST()
-123
-connection con_tester_denied;
-SELECT * FROM TestTab;
-SELECT `f_Test`();
-SELECT `F_TEST`();
-SELECT f_Test();
-SELECT F_TEST();
-SELECT `f_Test_denied`();
-`f_Test_denied`()
-123
-SELECT `F_TEST_DENIED`();
-`F_TEST_DENIED`()
-123
-connection default;
-disconnect con_tester;
-disconnect con_tester_denied;
-DROP TABLE `TestTab`;
-DROP FUNCTION `f_Test`;
-DROP FUNCTION `f_Test_denied`;
-USE test;
-DROP USER 'tester';
-DROP USER 'Tester';
-DROP DATABASE B48872;
-End of 5.0 tests.
-#
-# Test for bug#57061 "User without privilege on routine can discover
-# its existence."
-#
-drop database if exists mysqltest_db;
-create database mysqltest_db;
-# Create user with no privileges on mysqltest_db database.
-create user bug57061_user@localhost;
-create function mysqltest_db.f1() returns int return 0;
-create procedure mysqltest_db.p1() begin end;
-connect conn1, localhost, bug57061_user,,;
-# Attempt to drop routine on which user doesn't have privileges
-# should result in the same 'access denied' type of error whether
-# routine exists or not.
-drop function if exists mysqltest_db.f_does_not_exist;
-ERROR 42000: alter routine command denied to user 'bug57061_user'@'localhost' for routine 'mysqltest_db.f_does_not_exist'
-drop procedure if exists mysqltest_db.p_does_not_exist;
-ERROR 42000: alter routine command denied to user 'bug57061_user'@'localhost' for routine 'mysqltest_db.p_does_not_exist'
-drop function if exists mysqltest_db.f1;
-ERROR 42000: alter routine command denied to user 'bug57061_user'@'localhost' for routine 'mysqltest_db.f1'
-drop procedure if exists mysqltest_db.p1;
-ERROR 42000: alter routine command denied to user 'bug57061_user'@'localhost' for routine 'mysqltest_db.p1'
-connection default;
-disconnect conn1;
-drop user bug57061_user@localhost;
-drop database mysqltest_db;
-#
-# Bug#11882603 SELECT_ACL ON ANY COLUMN IN MYSQL.PROC ALLOWS TO SEE
-# DEFINITION OF ANY ROUTINE.
-#
-DROP DATABASE IF EXISTS db1;
-CREATE DATABASE db1;
-CREATE PROCEDURE db1.p1() SELECT 1;
-CREATE USER user2@localhost IDENTIFIED BY '';
-GRANT SELECT(db) ON mysql.proc TO user2@localhost;
-connect con2, localhost, user2;
-# The statement below before disclosed info from body_utf8 column.
-SHOW CREATE PROCEDURE db1.p1;
-ERROR 42000: PROCEDURE p1 does not exist
-# Check that SHOW works with SELECT grant on whole table
-connection default;
-GRANT SELECT ON mysql.proc TO user2@localhost;
-connection con2;
-# This should work
-SHOW CREATE PROCEDURE db1.p1;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`()
-SELECT 1 latin1 latin1_swedish_ci latin1_swedish_ci
-connection default;
-disconnect con2;
-DROP USER user2@localhost;
-DROP DATABASE db1;
-#
-# Test for bug#12602983 - User without privilege on routine can discover
-# its existence by executing "select non_existing_func();" or by
-# "call non_existing_proc()";
-#
-drop database if exists mysqltest_db;
-create database mysqltest_db;
-create function mysqltest_db.f1() returns int return 0;
-create procedure mysqltest_db.p1() begin end;
-# Create user with no privileges on mysqltest_db database.
-create user bug12602983_user@localhost;
-connect conn1, localhost, bug12602983_user,,;
-# Attempt to execute routine on which user doesn't have privileges
-# should result in the same 'access denied' error whether
-# routine exists or not.
-select mysqltest_db.f_does_not_exist();
-ERROR 42000: execute command denied to user 'bug12602983_user'@'localhost' for routine 'mysqltest_db.f_does_not_exist'
-call mysqltest_db.p_does_not_exist();
-ERROR 42000: execute command denied to user 'bug12602983_user'@'localhost' for routine 'mysqltest_db.p_does_not_exist'
-select mysqltest_db.f1();
-ERROR 42000: execute command denied to user 'bug12602983_user'@'localhost' for routine 'mysqltest_db.f1'
-call mysqltest_db.p1();
-ERROR 42000: execute command denied to user 'bug12602983_user'@'localhost' for routine 'mysqltest_db.p1'
-create view bug12602983_v1 as select mysqltest_db.f_does_not_exist();
-ERROR 42000: execute command denied to user 'bug12602983_user'@'localhost' for routine 'mysqltest_db.f_does_not_exist'
-create view bug12602983_v1 as select mysqltest_db.f1();
-ERROR 42000: execute command denied to user 'bug12602983_user'@'localhost' for routine 'mysqltest_db.f1'
-connection default;
-disconnect conn1;
-drop user bug12602983_user@localhost;
-drop database mysqltest_db;
-set password=password('foobar');
-create procedure sp1() select 1;
-show grants;
-Grants for root@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*9B500343BC52E2911172EB52AE5CF4847604C6E5' WITH GRANT OPTION
-GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
-grant execute on procedure sp1 to current_user() identified by 'barfoo';
-show grants;
-Grants for root@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*343915A8181B5728EADBDC73E1F7E6B0C3998483' WITH GRANT OPTION
-GRANT EXECUTE ON PROCEDURE `test`.`sp1` TO 'root'@'localhost'
-GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
-drop procedure sp1;
-set password='';
-#
-# MDEV-13396 Unexpected "alter routine comand defined" during CREATE OR REPLACE PROCEDURE
-#
-CREATE DATABASE u1;
-CREATE PROCEDURE u1.p1() BEGIN SELECT 1; END; $$
-CREATE FUNCTION u1.f1() RETURNS INT BEGIN RETURN 1; END; $$
-CREATE USER u1@localhost;
-GRANT CREATE ROUTINE ON u1.* TO u1@localhost;
-GRANT ALTER ROUTINE ON FUNCTION u1.f1 TO u1@localhost;
-GRANT ALTER ROUTINE ON PROCEDURE u1.p1 TO u1@localhost;
-connect u1, localhost, u1,,;
-USE u1;
-CREATE OR REPLACE FUNCTION f1() RETURNS INT BEGIN RETURN 2; END; $$
-CREATE OR REPLACE PROCEDURE p1() BEGIN SELECT 1; END; $$
-disconnect u1;
-connection default;
-DROP DATABASE u1;
-DROP USER u1@localhost;
diff --git a/mysql-test/r/sp-threads.result b/mysql-test/r/sp-threads.result
deleted file mode 100644
index 886cbd812f2..00000000000
--- a/mysql-test/r/sp-threads.result
+++ /dev/null
@@ -1,116 +0,0 @@
-connect con1root,localhost,root,,;
-connect con2root,localhost,root,,;
-connect con3root,localhost,root,,;
-connection con1root;
-use test;
-drop table if exists t1;
-create table t1 (s1 int, s2 int, s3 int);
-create procedure bug4934()
-begin
-insert into t1 values (1,0,1);
-end//
-connection con2root;
-use test;
-call bug4934();
-select * from t1;
-s1 s2 s3
-1 0 1
-connection con1root;
-drop table t1;
-create table t1 (s1 int, s2 int, s3 int);
-drop procedure bug4934;
-create procedure bug4934()
-begin
-end//
-connection con2root;
-select * from t1;
-s1 s2 s3
-call bug4934();
-select * from t1;
-s1 s2 s3
-connection con1root;
-drop table t1;
-drop procedure bug4934;
-drop procedure if exists bug9486;
-drop table if exists t1, t2;
-create table t1 (id1 int, val int);
-create table t2 (id2 int);
-create procedure bug9486()
-update t1, t2 set val= 1 where id1=id2;
-call bug9486();
-connection con2root;
-lock tables t2 write;
-connection con1root;
-call bug9486();
-connection con2root;
-SELECT state,info FROM information_schema.processlist WHERE id=con1root_id;
-state info
-Waiting for table metadata lock update t1, t2 set val= 1 where id1=id2
-unlock tables;
-connection con1root;
-drop procedure bug9486;
-drop table t1, t2;
-drop procedure if exists bug11158;
-create procedure bug11158() delete t1 from t1, t2 where t1.id = t2.id;
-create table t1 (id int, j int);
-insert into t1 values (1, 1), (2, 2);
-create table t2 (id int);
-insert into t2 values (1);
-call bug11158();
-select * from t1;
-id j
-2 2
-connection con2root;
-lock tables t2 read;
-connection con1root;
-call bug11158();
-connection con2root;
-unlock tables;
-connection con1root;
-drop procedure bug11158;
-drop table t1, t2;
-drop function if exists bug11554;
-drop view if exists v1;
-create table t1 (i int);
-create function bug11554 () returns int return 1;
-create view v1 as select bug11554() as f;
-connection con2root;
-insert into t1 (select f from v1);
-connection con1root;
-drop function bug11554;
-drop table t1;
-drop view v1;
-drop procedure if exists p1;
-drop procedure if exists p2;
-connection con1root;
-create table t1 (s1 int)|
-create procedure p1() select * from t1|
-create procedure p2()
-begin
-insert into t1 values (1);
-call p1();
-select * from t1;
-end|
-connection con2root;
-use test;
-lock table t1 write;
-connection con1root;
-call p2();
-connection con3root;
-use test;
-drop procedure p1;
-create procedure p1() select * from t1;
-connection con2root;
-unlock tables;
-connection con1root;
-s1
-1
-s1
-1
-drop procedure p1;
-drop procedure p2;
-drop table t1;
-connection default;
-disconnect con1root;
-disconnect con2root;
-disconnect con3root;
diff --git a/mysql-test/r/sp-ucs2.result b/mysql-test/r/sp-ucs2.result
deleted file mode 100644
index b8cc5dfd73d..00000000000
--- a/mysql-test/r/sp-ucs2.result
+++ /dev/null
@@ -1,148 +0,0 @@
-drop function if exists bug17615|
-create table t3 (a varchar(256) unicode)|
-create function bug17615() returns varchar(256) unicode
-begin
-declare tmp_res varchar(256) unicode;
-set tmp_res= 'foo string';
-return tmp_res;
-end|
-insert into t3 values(bug17615())|
-select * from t3|
-a
-foo string
-drop function bug17615|
-drop table t3|
-CREATE FUNCTION f(f1 VARCHAR(64) CHARACTER SET ucs2 COLLATE ucs2_unicode_ci)
-RETURNS VARCHAR(64) CHARACTER SET ucs2 COLLATE ucs2_danish_ci
-BEGIN
-DECLARE f2 VARCHAR(64) CHARACTER SET ucs2 COLLATE ucs2_swedish_ci;
-DECLARE f3 VARCHAR(64) CHARACTER SET ucs2 COLLATE ucs2_bin;
-SET f1= concat(collation(f1), ' ', collation(f2), ' ', collation(f3));
-RETURN f1;
-END|
-SELECT f('a')|
-f('a')
-ucs2_unicode_ci ucs2_swedish_ci ucs2_bin
-SELECT collation(f('a'))|
-collation(f('a'))
-ucs2_danish_ci
-DROP FUNCTION f|
-CREATE FUNCTION f()
-RETURNS VARCHAR(64) UNICODE BINARY
-BEGIN
-RETURN '';
-END|
-SHOW CREATE FUNCTION f;
-DROP FUNCTION f;
-CREATE FUNCTION f()
-RETURNS VARCHAR(64) BINARY UNICODE
-BEGIN
-RETURN '';
-END|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-f STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `f`() RETURNS varchar(64) CHARSET ucs2 COLLATE ucs2_bin
-BEGIN
-RETURN '';
-END latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE FUNCTION f;
-DROP FUNCTION f;
-#
-# Testing keywords ASCII + BINARY
-#
-CREATE FUNCTION f()
-RETURNS VARCHAR(64) ASCII BINARY
-BEGIN
-RETURN '';
-END|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-f STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `f`() RETURNS varchar(64) CHARSET ucs2 COLLATE ucs2_bin
-BEGIN
-RETURN '';
-END latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE FUNCTION f;
-DROP FUNCTION f;
-CREATE FUNCTION f()
-RETURNS VARCHAR(64) BINARY ASCII
-BEGIN
-RETURN '';
-END|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-f STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `f`() RETURNS varchar(64) CHARSET latin1 COLLATE latin1_bin
-BEGIN
-RETURN '';
-END latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE FUNCTION f;
-DROP FUNCTION f;
-#
-# Testing COLLATE in OUT parameter
-#
-CREATE PROCEDURE p1(IN f1 VARCHAR(64) CHARACTER SET ucs2 COLLATE ucs2_czech_ci,
-OUT f2 VARCHAR(64) CHARACTER SET ucs2 COLLATE ucs2_polish_ci)
-BEGIN
-SET f2= f1;
-SET f2= concat(collation(f1), ' ', collation(f2));
-END|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-f STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `f`() RETURNS varchar(64) CHARSET latin1 COLLATE latin1_bin
-BEGIN
-RETURN '';
-END latin1 latin1_swedish_ci latin1_swedish_ci
-CREATE FUNCTION f1()
-RETURNS VARCHAR(64) CHARACTER SET ucs2
-BEGIN
-DECLARE f1 VARCHAR(64) CHARACTER SET ucs2;
-DECLARE f2 VARCHAR(64) CHARACTER SET ucs2;
-SET f1='str';
-CALL p1(f1, f2);
-RETURN f2;
-END|
-SELECT f1()|
-f1()
-ucs2_czech_ci ucs2_polish_ci
-DROP PROCEDURE p1|
-DROP FUNCTION f1|
-CREATE FUNCTION f(f1 VARCHAR(64) COLLATE ucs2_unicode_ci)
-RETURNS VARCHAR(64) CHARACTER SET ucs2
-BEGIN
-RETURN 'str';
-END|
-ERROR 42000: COLLATION 'ucs2_unicode_ci' is not valid for CHARACTER SET 'latin1'
-CREATE FUNCTION f(f1 VARCHAR(64) CHARACTER SET ucs2)
-RETURNS VARCHAR(64) COLLATE ucs2_unicode_ci
-BEGIN
-RETURN 'str';
-END|
-ERROR 42000: COLLATION 'ucs2_unicode_ci' is not valid for CHARACTER SET 'latin1'
-CREATE FUNCTION f(f1 VARCHAR(64) CHARACTER SET ucs2)
-RETURNS VARCHAR(64) CHARACTER SET ucs2
-BEGIN
-DECLARE f2 VARCHAR(64) COLLATE ucs2_unicode_ci;
-RETURN 'str';
-END|
-ERROR 42000: COLLATION 'ucs2_unicode_ci' is not valid for CHARACTER SET 'latin1'
-SET NAMES utf8;
-DROP FUNCTION IF EXISTS bug48766;
-CREATE FUNCTION bug48766 ()
-RETURNS ENUM( 'w' ) CHARACTER SET ucs2
-RETURN 0;
-SHOW CREATE FUNCTION bug48766;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-bug48766 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `bug48766`() RETURNS enum('w') CHARSET ucs2
-RETURN 0 utf8 utf8_general_ci latin1_swedish_ci
-SELECT DTD_IDENTIFIER FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_NAME='bug48766';
-DTD_IDENTIFIER
-enum('w')
-DROP FUNCTION bug48766;
-CREATE FUNCTION bug48766 ()
-RETURNS ENUM('а','б','в','г') CHARACTER SET ucs2
-RETURN 0;
-SHOW CREATE FUNCTION bug48766;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-bug48766 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `bug48766`() RETURNS enum('а','б','в','г') CHARSET ucs2
-RETURN 0 utf8 utf8_general_ci latin1_swedish_ci
-SELECT DTD_IDENTIFIER FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_NAME='bug48766';
-DTD_IDENTIFIER
-enum('а','б','в','г')
-DROP FUNCTION bug48766;
diff --git a/mysql-test/r/sp-vars.result b/mysql-test/r/sp-vars.result
deleted file mode 100644
index ac1566d0c6e..00000000000
--- a/mysql-test/r/sp-vars.result
+++ /dev/null
@@ -1,1243 +0,0 @@
-DROP PROCEDURE IF EXISTS sp_vars_check_dflt;
-DROP PROCEDURE IF EXISTS sp_vars_check_assignment;
-DROP FUNCTION IF EXISTS sp_vars_check_ret1;
-DROP FUNCTION IF EXISTS sp_vars_check_ret2;
-DROP FUNCTION IF EXISTS sp_vars_check_ret3;
-DROP FUNCTION IF EXISTS sp_vars_check_ret4;
-DROP FUNCTION IF EXISTS sp_vars_div_zero;
-SET @@sql_mode = 'ansi';
-CREATE PROCEDURE sp_vars_check_dflt()
-BEGIN
-DECLARE v1 TINYINT DEFAULT 1e200;
-DECLARE v1u TINYINT UNSIGNED DEFAULT 1e200;
-DECLARE v2 TINYINT DEFAULT -1e200;
-DECLARE v2u TINYINT UNSIGNED DEFAULT -1e200;
-DECLARE v3 TINYINT DEFAULT 300;
-DECLARE v3u TINYINT UNSIGNED DEFAULT 300;
-DECLARE v4 TINYINT DEFAULT -300;
-DECLARE v4u TINYINT UNSIGNED DEFAULT -300;
-DECLARE v5 TINYINT DEFAULT 10 * 10 * 10;
-DECLARE v5u TINYINT UNSIGNED DEFAULT 10 * 10 * 10;
-DECLARE v6 TINYINT DEFAULT -10 * 10 * 10;
-DECLARE v6u TINYINT UNSIGNED DEFAULT -10 * 10 * 10;
-DECLARE v7 TINYINT DEFAULT '10';
-DECLARE v8 TINYINT DEFAULT '10 ';
-DECLARE v9 TINYINT DEFAULT ' 10 ';
-DECLARE v10 TINYINT DEFAULT 'String 10 ';
-DECLARE v11 TINYINT DEFAULT 'String10';
-DECLARE v12 TINYINT DEFAULT '10 String';
-DECLARE v13 TINYINT DEFAULT '10String';
-DECLARE v14 TINYINT DEFAULT concat('10', ' ');
-DECLARE v15 TINYINT DEFAULT concat(' ', '10');
-DECLARE v16 TINYINT DEFAULT concat('Hello, ', 'world');
-DECLARE v17 DECIMAL(64, 2) DEFAULT 12;
-DECLARE v18 DECIMAL(64, 2) DEFAULT 12.123;
-DECLARE v19 DECIMAL(64, 2) DEFAULT 11 + 1;
-DECLARE v20 DECIMAL(64, 2) DEFAULT 12 + 0.123;
-SELECT v1, v1u, v2, v2u, v3, v3u, v4, v4u;
-SELECT v5, v5u, v6, v6u;
-SELECT v7, v8, v9, v10, v11, v12, v13, v14, v15, v16;
-SELECT v17, v18, v19, v20;
-END|
-CREATE PROCEDURE sp_vars_check_assignment()
-BEGIN
-DECLARE i1, i2, i3, i4 TINYINT;
-DECLARE u1, u2, u3, u4 TINYINT UNSIGNED;
-DECLARE d1, d2, d3 DECIMAL(64, 2);
-SET i1 = 1e200;
-SET i2 = -1e200;
-SET i3 = 300;
-SET i4 = -300;
-SELECT i1, i2, i3, i4;
-SET i1 = 10 * 10 * 10;
-SET i2 = -10 * 10 * 10;
-SET i3 = sign(10 * 10) * 10 * 20;
-SET i4 = sign(-10 * 10) * -10 * 20;
-SELECT i1, i2, i3, i4;
-SET u1 = 1e200;
-SET u2 = -1e200;
-SET u3 = 300;
-SET u4 = -300;
-SELECT u1, u2, u3, u4;
-SET u1 = 10 * 10 * 10;
-SET u2 = -10 * 10 * 10;
-SET u3 = sign(10 * 10) * 10 * 20;
-SET u4 = sign(-10 * 10) * -10 * 20;
-SELECT u1, u2, u3, u4;
-SET d1 = 1234;
-SET d2 = 1234.12;
-SET d3 = 1234.1234;
-SELECT d1, d2, d3;
-SET d1 = 12 * 100 + 34;
-SET d2 = 12 * 100 + 34 + 0.12;
-SET d3 = 12 * 100 + 34 + 0.1234;
-SELECT d1, d2, d3;
-END|
-CREATE FUNCTION sp_vars_check_ret1() RETURNS TINYINT
-BEGIN
-RETURN 1e200;
-END|
-CREATE FUNCTION sp_vars_check_ret2() RETURNS TINYINT
-BEGIN
-RETURN 10 * 10 * 10;
-END|
-CREATE FUNCTION sp_vars_check_ret3() RETURNS TINYINT
-BEGIN
-RETURN 'Hello, world';
-END|
-CREATE FUNCTION sp_vars_check_ret4() RETURNS DECIMAL(64, 2)
-BEGIN
-RETURN 12 * 10 + 34 + 0.1234;
-END|
-CREATE FUNCTION sp_vars_div_zero() RETURNS INTEGER
-BEGIN
-DECLARE div_zero INTEGER;
-SELECT 1/0 INTO div_zero;
-RETURN div_zero;
-END|
-
----------------------------------------------------------------
-Calling the routines, created in ANSI mode.
----------------------------------------------------------------
-
-CALL sp_vars_check_dflt();
-v1 v1u v2 v2u v3 v3u v4 v4u
-127 255 -128 0 127 255 -128 0
-v5 v5u v6 v6u
-127 255 -128 0
-v7 v8 v9 v10 v11 v12 v13 v14 v15 v16
-10 10 10 0 0 10 10 10 10 0
-v17 v18 v19 v20
-12.00 12.12 12.00 12.12
-Warnings:
-Note 1265 Data truncated for column 'v20' at row 1
-CALL sp_vars_check_assignment();
-i1 i2 i3 i4
-127 -128 127 -128
-i1 i2 i3 i4
-127 -128 127 127
-u1 u2 u3 u4
-255 0 255 0
-u1 u2 u3 u4
-255 0 200 200
-d1 d2 d3
-1234.00 1234.12 1234.12
-d1 d2 d3
-1234.00 1234.12 1234.12
-Warnings:
-Note 1265 Data truncated for column 'd3' at row 1
-SELECT sp_vars_check_ret1();
-sp_vars_check_ret1()
-127
-Warnings:
-Warning 1264 Out of range value for column 'sp_vars_check_ret1()' at row 1
-SELECT sp_vars_check_ret2();
-sp_vars_check_ret2()
-127
-Warnings:
-Warning 1264 Out of range value for column 'sp_vars_check_ret2()' at row 1
-SELECT sp_vars_check_ret3();
-sp_vars_check_ret3()
-0
-Warnings:
-Warning 1366 Incorrect integer value: 'Hello, world' for column 'sp_vars_check_ret3()' at row 1
-SELECT sp_vars_check_ret4();
-sp_vars_check_ret4()
-154.12
-Warnings:
-Note 1265 Data truncated for column 'sp_vars_check_ret4()' at row 1
-SELECT sp_vars_div_zero();
-sp_vars_div_zero()
-NULL
-SET @@sql_mode = 'traditional';
-
----------------------------------------------------------------
-Calling in TRADITIONAL mode the routines, created in ANSI mode.
----------------------------------------------------------------
-
-CALL sp_vars_check_dflt();
-v1 v1u v2 v2u v3 v3u v4 v4u
-127 255 -128 0 127 255 -128 0
-v5 v5u v6 v6u
-127 255 -128 0
-v7 v8 v9 v10 v11 v12 v13 v14 v15 v16
-10 10 10 0 0 10 10 10 10 0
-v17 v18 v19 v20
-12.00 12.12 12.00 12.12
-Warnings:
-Note 1265 Data truncated for column 'v20' at row 1
-CALL sp_vars_check_assignment();
-i1 i2 i3 i4
-127 -128 127 -128
-i1 i2 i3 i4
-127 -128 127 127
-u1 u2 u3 u4
-255 0 255 0
-u1 u2 u3 u4
-255 0 200 200
-d1 d2 d3
-1234.00 1234.12 1234.12
-d1 d2 d3
-1234.00 1234.12 1234.12
-Warnings:
-Note 1265 Data truncated for column 'd3' at row 1
-SELECT sp_vars_check_ret1();
-sp_vars_check_ret1()
-127
-Warnings:
-Warning 1264 Out of range value for column 'sp_vars_check_ret1()' at row 1
-SELECT sp_vars_check_ret2();
-sp_vars_check_ret2()
-127
-Warnings:
-Warning 1264 Out of range value for column 'sp_vars_check_ret2()' at row 1
-SELECT sp_vars_check_ret3();
-sp_vars_check_ret3()
-0
-Warnings:
-Warning 1366 Incorrect integer value: 'Hello, world' for column 'sp_vars_check_ret3()' at row 1
-SELECT sp_vars_check_ret4();
-sp_vars_check_ret4()
-154.12
-Warnings:
-Note 1265 Data truncated for column 'sp_vars_check_ret4()' at row 1
-SELECT sp_vars_div_zero();
-sp_vars_div_zero()
-NULL
-DROP PROCEDURE sp_vars_check_dflt;
-DROP PROCEDURE sp_vars_check_assignment;
-DROP FUNCTION sp_vars_check_ret1;
-DROP FUNCTION sp_vars_check_ret2;
-DROP FUNCTION sp_vars_check_ret3;
-DROP FUNCTION sp_vars_check_ret4;
-DROP FUNCTION sp_vars_div_zero;
-CREATE PROCEDURE sp_vars_check_dflt()
-BEGIN
-DECLARE v1 TINYINT DEFAULT 1e200;
-DECLARE v1u TINYINT UNSIGNED DEFAULT 1e200;
-DECLARE v2 TINYINT DEFAULT -1e200;
-DECLARE v2u TINYINT UNSIGNED DEFAULT -1e200;
-DECLARE v3 TINYINT DEFAULT 300;
-DECLARE v3u TINYINT UNSIGNED DEFAULT 300;
-DECLARE v4 TINYINT DEFAULT -300;
-DECLARE v4u TINYINT UNSIGNED DEFAULT -300;
-DECLARE v5 TINYINT DEFAULT 10 * 10 * 10;
-DECLARE v5u TINYINT UNSIGNED DEFAULT 10 * 10 * 10;
-DECLARE v6 TINYINT DEFAULT -10 * 10 * 10;
-DECLARE v6u TINYINT UNSIGNED DEFAULT -10 * 10 * 10;
-DECLARE v7 TINYINT DEFAULT '10';
-DECLARE v8 TINYINT DEFAULT '10 ';
-DECLARE v9 TINYINT DEFAULT ' 10 ';
-DECLARE v10 TINYINT DEFAULT 'String 10 ';
-DECLARE v11 TINYINT DEFAULT 'String10';
-DECLARE v12 TINYINT DEFAULT '10 String';
-DECLARE v13 TINYINT DEFAULT '10String';
-DECLARE v14 TINYINT DEFAULT concat('10', ' ');
-DECLARE v15 TINYINT DEFAULT concat(' ', '10');
-DECLARE v16 TINYINT DEFAULT concat('Hello, ', 'world');
-DECLARE v17 DECIMAL(64, 2) DEFAULT 12;
-DECLARE v18 DECIMAL(64, 2) DEFAULT 12.123;
-DECLARE v19 DECIMAL(64, 2) DEFAULT 11 + 1;
-DECLARE v20 DECIMAL(64, 2) DEFAULT 12 + 0.123;
-SELECT v1, v1u, v2, v2u, v3, v3u, v4, v4u;
-SELECT v5, v5u, v6, v6u;
-SELECT v7, v8, v9, v10, v11, v12, v13, v14, v15, v16;
-SELECT v17, v18, v19, v20;
-END|
-CREATE PROCEDURE sp_vars_check_assignment()
-BEGIN
-DECLARE i1, i2, i3, i4 TINYINT;
-DECLARE u1, u2, u3, u4 TINYINT UNSIGNED;
-DECLARE d1, d2, d3 DECIMAL(64, 2);
-SET i1 = 1e200;
-SET i2 = -1e200;
-SET i3 = 300;
-SET i4 = -300;
-SELECT i1, i2, i3, i4;
-SET i1 = 10 * 10 * 10;
-SET i2 = -10 * 10 * 10;
-SET i3 = sign(10 * 10) * 10 * 20;
-SET i4 = sign(-10 * 10) * -10 * 20;
-SELECT i1, i2, i3, i4;
-SET u1 = 1e200;
-SET u2 = -1e200;
-SET u3 = 300;
-SET u4 = -300;
-SELECT u1, u2, u3, u4;
-SET u1 = 10 * 10 * 10;
-SET u2 = -10 * 10 * 10;
-SET u3 = sign(10 * 10) * 10 * 20;
-SET u4 = sign(-10 * 10) * -10 * 20;
-SELECT u1, u2, u3, u4;
-SET d1 = 1234;
-SET d2 = 1234.12;
-SET d3 = 1234.1234;
-SELECT d1, d2, d3;
-SET d1 = 12 * 100 + 34;
-SET d2 = 12 * 100 + 34 + 0.12;
-SET d3 = 12 * 100 + 34 + 0.1234;
-SELECT d1, d2, d3;
-END|
-CREATE FUNCTION sp_vars_check_ret1() RETURNS TINYINT
-BEGIN
-RETURN 1e200;
-END|
-CREATE FUNCTION sp_vars_check_ret2() RETURNS TINYINT
-BEGIN
-RETURN 10 * 10 * 10;
-END|
-CREATE FUNCTION sp_vars_check_ret3() RETURNS TINYINT
-BEGIN
-RETURN 'Hello, world';
-END|
-CREATE FUNCTION sp_vars_check_ret4() RETURNS DECIMAL(64, 2)
-BEGIN
-RETURN 12 * 10 + 34 + 0.1234;
-END|
-CREATE FUNCTION sp_vars_div_zero() RETURNS INTEGER
-BEGIN
-DECLARE div_zero INTEGER;
-SELECT 1/0 INTO div_zero;
-RETURN div_zero;
-END|
-
----------------------------------------------------------------
-Calling the routines, created in TRADITIONAL mode.
----------------------------------------------------------------
-
-CALL sp_vars_check_dflt();
-ERROR 22003: Out of range value for column 'v1' at row 1
-CALL sp_vars_check_assignment();
-ERROR 22003: Out of range value for column 'i1' at row 1
-SELECT sp_vars_check_ret1();
-ERROR 22003: Out of range value for column 'sp_vars_check_ret1()' at row 1
-SELECT sp_vars_check_ret2();
-ERROR 22003: Out of range value for column 'sp_vars_check_ret2()' at row 1
-SELECT sp_vars_check_ret3();
-ERROR 22007: Incorrect integer value: 'Hello, world' for column 'sp_vars_check_ret3()' at row 1
-SELECT sp_vars_check_ret4();
-sp_vars_check_ret4()
-154.12
-Warnings:
-Note 1265 Data truncated for column 'sp_vars_check_ret4()' at row 1
-SELECT sp_vars_div_zero();
-ERROR 22012: Division by 0
-SET @@sql_mode = 'ansi';
-DROP PROCEDURE sp_vars_check_dflt;
-DROP PROCEDURE sp_vars_check_assignment;
-DROP FUNCTION sp_vars_check_ret1;
-DROP FUNCTION sp_vars_check_ret2;
-DROP FUNCTION sp_vars_check_ret3;
-DROP FUNCTION sp_vars_check_ret4;
-DROP FUNCTION sp_vars_div_zero;
-
----------------------------------------------------------------
-BIT data type tests
----------------------------------------------------------------
-
-DROP PROCEDURE IF EXISTS p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE v1 BIT;
-DECLARE v2 BIT(1);
-DECLARE v3 BIT(3) DEFAULT b'101';
-DECLARE v4 BIT(64) DEFAULT 0x5555555555555555;
-DECLARE v5 BIT(3);
-DECLARE v6 BIT(64);
-DECLARE v7 BIT(8) DEFAULT 128;
-DECLARE v8 BIT(8) DEFAULT '128';
-DECLARE v9 BIT(8) DEFAULT ' 128';
-DECLARE v10 BIT(8) DEFAULT 'x 128';
-SET v1 = v4;
-SET v2 = 0;
-SET v5 = v4; # check overflow
-SET v6 = v3; # check padding
-SELECT HEX(v1);
-SELECT HEX(v2);
-SELECT HEX(v3);
-SELECT HEX(v4);
-SELECT HEX(v5);
-SELECT HEX(v6);
-SELECT HEX(v7);
-SELECT HEX(v8);
-SELECT HEX(v9);
-SELECT HEX(v10);
-END|
-CALL p1();
-HEX(v1)
-1
-HEX(v2)
-0
-HEX(v3)
-5
-HEX(v4)
-5555555555555555
-HEX(v5)
-7
-HEX(v6)
-5
-HEX(v7)
-80
-HEX(v8)
-FF
-HEX(v9)
-FF
-HEX(v10)
-FF
-Warnings:
-Warning 1264 Out of range value for column 'v5' at row 1
-DROP PROCEDURE p1;
-
----------------------------------------------------------------
-CASE expression tests.
----------------------------------------------------------------
-
-DROP PROCEDURE IF EXISTS p1;
-Warnings:
-Note 1305 PROCEDURE test.p1 does not exist
-DROP PROCEDURE IF EXISTS p2;
-Warnings:
-Note 1305 PROCEDURE test.p2 does not exist
-DROP TABLE IF EXISTS t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE t1(log_msg VARCHAR(1024));
-CREATE PROCEDURE p1(arg VARCHAR(255))
-BEGIN
-INSERT INTO t1 VALUES('p1: step1');
-CASE arg * 10
-WHEN 10 * 10 THEN
-INSERT INTO t1 VALUES('p1: case1: on 10');
-WHEN 10 * 10 + 10 * 10 THEN
-BEGIN
-CASE arg / 10
-WHEN 1 THEN
-INSERT INTO t1 VALUES('p1: case1: case2: on 1');
-WHEN 2 THEN
-BEGIN
-DECLARE i TINYINT DEFAULT 10;
-WHILE i > 0 DO
-INSERT INTO t1 VALUES(CONCAT('p1: case1: case2: loop: i: ', i));
-CASE MOD(i, 2)
-WHEN 0 THEN
-INSERT INTO t1 VALUES('p1: case1: case2: loop: i is even');
-WHEN 1 THEN
-INSERT INTO t1 VALUES('p1: case1: case2: loop: i is odd');
-ELSE
-INSERT INTO t1 VALUES('p1: case1: case2: loop: ERROR');
-END CASE;
-SET i = i - 1;
-END WHILE;
-END;
-ELSE
-INSERT INTO t1 VALUES('p1: case1: case2: ERROR');
-END CASE;
-CASE arg
-WHEN 10 THEN
-INSERT INTO t1 VALUES('p1: case1: case3: on 10');
-WHEN 20 THEN
-INSERT INTO t1 VALUES('p1: case1: case3: on 20');
-ELSE
-INSERT INTO t1 VALUES('p1: case1: case3: ERROR');
-END CASE;
-END;
-ELSE
-INSERT INTO t1 VALUES('p1: case1: ERROR');
-END CASE;
-CASE arg * 10
-WHEN 10 * 10 THEN
-INSERT INTO t1 VALUES('p1: case4: on 10');
-WHEN 10 * 10 + 10 * 10 THEN
-BEGIN
-CASE arg / 10
-WHEN 1 THEN
-INSERT INTO t1 VALUES('p1: case4: case5: on 1');
-WHEN 2 THEN
-BEGIN
-DECLARE i TINYINT DEFAULT 10;
-WHILE i > 0 DO
-INSERT INTO t1 VALUES(CONCAT('p1: case4: case5: loop: i: ', i));
-CASE MOD(i, 2)
-WHEN 0 THEN
-INSERT INTO t1 VALUES('p1: case4: case5: loop: i is even');
-WHEN 1 THEN
-INSERT INTO t1 VALUES('p1: case4: case5: loop: i is odd');
-ELSE
-INSERT INTO t1 VALUES('p1: case4: case5: loop: ERROR');
-END CASE;
-SET i = i - 1;
-END WHILE;
-END;
-ELSE
-INSERT INTO t1 VALUES('p1: case4: case5: ERROR');
-END CASE;
-CASE arg
-WHEN 10 THEN
-INSERT INTO t1 VALUES('p1: case4: case6: on 10');
-WHEN 20 THEN
-INSERT INTO t1 VALUES('p1: case4: case6: on 20');
-ELSE
-INSERT INTO t1 VALUES('p1: case4: case6: ERROR');
-END CASE;
-END;
-ELSE
-INSERT INTO t1 VALUES('p1: case4: ERROR');
-END CASE;
-END|
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE i TINYINT DEFAULT 3;
-WHILE i > 0 DO
-IF MOD(i, 2) = 0 THEN
-SET @_test_session_var = 10;
-ELSE
-SET @_test_session_var = 'test';
-END IF;
-CASE @_test_session_var
-WHEN 10 THEN
-INSERT INTO t1 VALUES('p2: case: numerical type');
-WHEN 'test' THEN
-INSERT INTO t1 VALUES('p2: case: string type');
-ELSE
-INSERT INTO t1 VALUES('p2: case: ERROR');
-END CASE;
-SET i = i - 1;
-END WHILE;
-END|
-CALL p1(10);
-CALL p1(20);
-CALL p2();
-SELECT * FROM t1;
-log_msg
-p1: step1
-p1: case1: on 10
-p1: case4: on 10
-p1: step1
-p1: case1: case2: loop: i: 10
-p1: case1: case2: loop: i is even
-p1: case1: case2: loop: i: 9
-p1: case1: case2: loop: i is odd
-p1: case1: case2: loop: i: 8
-p1: case1: case2: loop: i is even
-p1: case1: case2: loop: i: 7
-p1: case1: case2: loop: i is odd
-p1: case1: case2: loop: i: 6
-p1: case1: case2: loop: i is even
-p1: case1: case2: loop: i: 5
-p1: case1: case2: loop: i is odd
-p1: case1: case2: loop: i: 4
-p1: case1: case2: loop: i is even
-p1: case1: case2: loop: i: 3
-p1: case1: case2: loop: i is odd
-p1: case1: case2: loop: i: 2
-p1: case1: case2: loop: i is even
-p1: case1: case2: loop: i: 1
-p1: case1: case2: loop: i is odd
-p1: case1: case3: on 20
-p1: case4: case5: loop: i: 10
-p1: case4: case5: loop: i is even
-p1: case4: case5: loop: i: 9
-p1: case4: case5: loop: i is odd
-p1: case4: case5: loop: i: 8
-p1: case4: case5: loop: i is even
-p1: case4: case5: loop: i: 7
-p1: case4: case5: loop: i is odd
-p1: case4: case5: loop: i: 6
-p1: case4: case5: loop: i is even
-p1: case4: case5: loop: i: 5
-p1: case4: case5: loop: i is odd
-p1: case4: case5: loop: i: 4
-p1: case4: case5: loop: i is even
-p1: case4: case5: loop: i: 3
-p1: case4: case5: loop: i is odd
-p1: case4: case5: loop: i: 2
-p1: case4: case5: loop: i is even
-p1: case4: case5: loop: i: 1
-p1: case4: case5: loop: i is odd
-p1: case4: case6: on 20
-p2: case: string type
-p2: case: numerical type
-p2: case: string type
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP TABLE t1;
-
----------------------------------------------------------------
-BUG#14161
----------------------------------------------------------------
-
-DROP TABLE IF EXISTS t1;
-DROP PROCEDURE IF EXISTS p1;
-CREATE TABLE t1(col BIGINT UNSIGNED);
-INSERT INTO t1 VALUE(18446744073709551614);
-CREATE PROCEDURE p1(IN arg BIGINT UNSIGNED)
-BEGIN
-SELECT arg;
-SELECT * FROM t1;
-SELECT * FROM t1 WHERE col = arg;
-END|
-CALL p1(18446744073709551614);
-arg
-18446744073709551614
-col
-18446744073709551614
-col
-18446744073709551614
-DROP TABLE t1;
-DROP PROCEDURE p1;
-
----------------------------------------------------------------
-BUG#13705
----------------------------------------------------------------
-
-DROP PROCEDURE IF EXISTS p1;
-CREATE PROCEDURE p1(x VARCHAR(10), y CHAR(3)) READS SQL DATA
-BEGIN
-SELECT x, y;
-END|
-CALL p1('alpha', 'abc');
-x y
-alpha abc
-CALL p1('alpha', 'abcdef');
-x y
-alpha abc
-Warnings:
-Warning 1265 Data truncated for column 'y' at row 1
-DROP PROCEDURE p1;
-
----------------------------------------------------------------
-BUG#13675
----------------------------------------------------------------
-
-DROP PROCEDURE IF EXISTS p1;
-DROP TABLE IF EXISTS t1;
-CREATE PROCEDURE p1(x DATETIME)
-BEGIN
-CREATE TABLE t1 SELECT x;
-SHOW CREATE TABLE t1;
-DROP TABLE t1;
-END|
-CALL p1(NOW());
-Table Create Table
-t1 CREATE TABLE "t1" (
- "x" datetime DEFAULT NULL
-)
-CALL p1('test');
-Table Create Table
-t1 CREATE TABLE "t1" (
- "x" datetime DEFAULT NULL
-)
-Warnings:
-Warning 1265 Data truncated for column 'x' at row 1
-DROP PROCEDURE p1;
-
----------------------------------------------------------------
-BUG#12976
----------------------------------------------------------------
-
-DROP TABLE IF EXISTS t1;
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-CREATE TABLE t1(b BIT(1));
-INSERT INTO t1(b) VALUES(b'0'), (b'1');
-CREATE PROCEDURE p1()
-BEGIN
-SELECT HEX(b),
-b = 0,
-b = FALSE,
-b IS FALSE,
-b = 1,
-b = TRUE,
-b IS TRUE
-FROM t1;
-END|
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE vb BIT(1);
-SELECT b INTO vb FROM t1 WHERE b = 0;
-SELECT HEX(vb),
-vb = 0,
-vb = FALSE,
-vb IS FALSE,
-vb = 1,
-vb = TRUE,
-vb IS TRUE;
-SELECT b INTO vb FROM t1 WHERE b = 1;
-SELECT HEX(vb),
-vb = 0,
-vb = FALSE,
-vb IS FALSE,
-vb = 1,
-vb = TRUE,
-vb IS TRUE;
-END|
-call p1();
-HEX(b) b = 0 b = FALSE b IS FALSE b = 1 b = TRUE b IS TRUE
-0 1 1 1 0 0 0
-1 0 0 0 1 1 1
-call p2();
-HEX(vb) vb = 0 vb = FALSE vb IS FALSE vb = 1 vb = TRUE vb IS TRUE
-0 1 1 1 0 0 0
-HEX(vb) vb = 0 vb = FALSE vb IS FALSE vb = 1 vb = TRUE vb IS TRUE
-1 0 0 0 1 1 1
-DROP TABLE t1;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP TABLE IF EXISTS table_12976_a;
-DROP TABLE IF EXISTS table_12976_b;
-DROP PROCEDURE IF EXISTS proc_12976_a;
-DROP PROCEDURE IF EXISTS proc_12976_b;
-CREATE TABLE table_12976_a (val bit(1));
-CREATE TABLE table_12976_b(
-appname varchar(15),
-emailperm bit not null default 1,
-phoneperm bit not null default 0);
-insert into table_12976_b values ('A', b'1', b'1'), ('B', b'0', b'0');
-CREATE PROCEDURE proc_12976_a()
-BEGIN
-declare localvar bit(1);
-SELECT val INTO localvar FROM table_12976_a;
-SELECT coalesce(localvar, 1)+1, coalesce(val, 1)+1 FROM table_12976_a;
-END||
-CREATE PROCEDURE proc_12976_b(
-name varchar(15),
-out ep bit,
-out msg varchar(10))
-BEGIN
-SELECT emailperm into ep FROM table_12976_b where (appname = name);
-IF ep is true THEN
-SET msg = 'True';
-ELSE
-SET msg = 'False';
-END IF;
-END||
-INSERT table_12976_a VALUES (0);
-call proc_12976_a();
-coalesce(localvar, 1)+1 coalesce(val, 1)+1
-1 1
-UPDATE table_12976_a set val=1;
-call proc_12976_a();
-coalesce(localvar, 1)+1 coalesce(val, 1)+1
-2 2
-call proc_12976_b('A', @ep, @msg);
-select @ep, @msg;
-@ep @msg
-1 True
-call proc_12976_b('B', @ep, @msg);
-select @ep, @msg;
-@ep @msg
-0 False
-DROP TABLE table_12976_a;
-DROP TABLE table_12976_b;
-DROP PROCEDURE proc_12976_a;
-DROP PROCEDURE proc_12976_b;
-
----------------------------------------------------------------
-BUG#9572
----------------------------------------------------------------
-
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-DROP PROCEDURE IF EXISTS p3;
-DROP PROCEDURE IF EXISTS p4;
-DROP PROCEDURE IF EXISTS p5;
-DROP PROCEDURE IF EXISTS p6;
-SET @@sql_mode = 'traditional';
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE v TINYINT DEFAULT 1e200;
-SELECT v;
-END|
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE v DECIMAL(5) DEFAULT 1e200;
-SELECT v;
-END|
-CREATE PROCEDURE p3()
-BEGIN
-DECLARE v CHAR(5) DEFAULT 'abcdef';
-SELECT v LIKE 'abc___';
-END|
-CREATE PROCEDURE p4(arg VARCHAR(2))
-BEGIN
-DECLARE var VARCHAR(1);
-SET var := arg;
-SELECT arg, var;
-END|
-CREATE PROCEDURE p5(arg CHAR(2))
-BEGIN
-DECLARE var CHAR(1);
-SET var := arg;
-SELECT arg, var;
-END|
-CREATE PROCEDURE p6(arg DECIMAL(2))
-BEGIN
-DECLARE var DECIMAL(1);
-SET var := arg;
-SELECT arg, var;
-END|
-CALL p1();
-ERROR 22003: Out of range value for column 'v' at row 1
-CALL p2();
-ERROR 22003: Out of range value for column 'v' at row 1
-CALL p3();
-ERROR 22001: Data too long for column 'v' at row 1
-CALL p4('aaa');
-ERROR 22001: Data too long for column 'arg' at row 1
-CALL p5('aa');
-ERROR 22001: Data too long for column 'var' at row 1
-CALL p6(10);
-ERROR 22003: Out of range value for column 'var' at row 1
-SET @@sql_mode = 'ansi';
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP PROCEDURE p3;
-DROP PROCEDURE p4;
-DROP PROCEDURE p5;
-DROP PROCEDURE p6;
-
----------------------------------------------------------------
-BUG#9078
----------------------------------------------------------------
-
-DROP PROCEDURE IF EXISTS p1;
-CREATE PROCEDURE p1 (arg DECIMAL(64,2))
-BEGIN
-DECLARE var DECIMAL(64,2);
-SET var = arg;
-SELECT var;
-END|
-CALL p1(1929);
-var
-1929.00
-CALL p1(1929.00);
-var
-1929.00
-CALL p1(1929.003);
-var
-1929.00
-Warnings:
-Note 1265 Data truncated for column 'arg' at row 1
-DROP PROCEDURE p1;
-
----------------------------------------------------------------
-BUG#8768
----------------------------------------------------------------
-
-DROP FUNCTION IF EXISTS f1;
-CREATE FUNCTION f1(arg TINYINT UNSIGNED) RETURNS TINYINT
-BEGIN
-RETURN arg;
-END|
-SELECT f1(-2500);
-f1(-2500)
-0
-Warnings:
-Warning 1264 Out of range value for column 'arg' at row 1
-SET @@sql_mode = 'traditional';
-SELECT f1(-2500);
-ERROR 22003: Out of range value for column 'arg' at row 1
-DROP FUNCTION f1;
-CREATE FUNCTION f1(arg TINYINT UNSIGNED) RETURNS TINYINT
-BEGIN
-RETURN arg;
-END|
-SELECT f1(-2500);
-ERROR 22003: Out of range value for column 'arg' at row 1
-SET @@sql_mode = 'ansi';
-DROP FUNCTION f1;
-
----------------------------------------------------------------
-BUG#8769
----------------------------------------------------------------
-
-DROP FUNCTION IF EXISTS f1;
-CREATE FUNCTION f1(arg MEDIUMINT) RETURNS MEDIUMINT
-BEGIN
-RETURN arg;
-END|
-SELECT f1(8388699);
-f1(8388699)
-8388607
-Warnings:
-Warning 1264 Out of range value for column 'arg' at row 1
-SET @@sql_mode = 'traditional';
-SELECT f1(8388699);
-ERROR 22003: Out of range value for column 'arg' at row 1
-DROP FUNCTION f1;
-CREATE FUNCTION f1(arg MEDIUMINT) RETURNS MEDIUMINT
-BEGIN
-RETURN arg;
-END|
-SELECT f1(8388699);
-ERROR 22003: Out of range value for column 'arg' at row 1
-SET @@sql_mode = 'ansi';
-DROP FUNCTION f1;
-
----------------------------------------------------------------
-BUG#8702
----------------------------------------------------------------
-
-DROP PROCEDURE IF EXISTS p1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(col VARCHAR(255));
-INSERT INTO t1(col) VALUES('Hello, world!');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE sp_var INTEGER;
-SELECT col INTO sp_var FROM t1 LIMIT 1;
-SET @user_var = sp_var;
-SELECT sp_var;
-SELECT @user_var;
-END|
-CALL p1();
-sp_var
-0
-@user_var
-0
-Warnings:
-Warning 1366 Incorrect integer value: 'Hello, world!' for column 'sp_var' at row 1
-DROP PROCEDURE p1;
-DROP TABLE t1;
-
----------------------------------------------------------------
-BUG#12903
----------------------------------------------------------------
-
-DROP FUNCTION IF EXISTS f1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(txt VARCHAR(255));
-CREATE FUNCTION f1(arg VARCHAR(255)) RETURNS VARCHAR(255)
-BEGIN
-DECLARE v1 VARCHAR(255);
-DECLARE v2 VARCHAR(255);
-SET v1 = CONCAT(LOWER(arg), UPPER(arg));
-SET v2 = CONCAT(LOWER(v1), UPPER(v1));
-INSERT INTO t1 VALUES(v1), (v2);
-RETURN CONCAT(LOWER(arg), UPPER(arg));
-END|
-SELECT f1('_aBcDe_');
-f1('_aBcDe_')
-_abcde__ABCDE_
-SELECT * FROM t1;
-txt
-_abcde__ABCDE_
-_abcde__abcde__ABCDE__ABCDE_
-DROP FUNCTION f1;
-DROP TABLE t1;
-
----------------------------------------------------------------
-BUG#13808
----------------------------------------------------------------
-
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-DROP FUNCTION IF EXISTS f1;
-CREATE PROCEDURE p1(arg ENUM('a', 'b'))
-BEGIN
-SELECT arg;
-END|
-CREATE PROCEDURE p2(arg ENUM('a', 'b'))
-BEGIN
-DECLARE var ENUM('c', 'd') DEFAULT arg;
-SELECT arg, var;
-END|
-CREATE FUNCTION f1(arg ENUM('a', 'b')) RETURNS ENUM('c', 'd')
-BEGIN
-RETURN arg;
-END|
-CALL p1('c');
-arg
-
-Warnings:
-Warning 1265 Data truncated for column 'arg' at row 1
-CALL p2('a');
-arg var
-a
-Warnings:
-Warning 1265 Data truncated for column 'var' at row 1
-SELECT f1('a');
-f1('a')
-
-Warnings:
-Warning 1265 Data truncated for column 'f1('a')' at row 1
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP FUNCTION f1;
-
----------------------------------------------------------------
-BUG#13909
----------------------------------------------------------------
-
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-CREATE PROCEDURE p1(arg VARCHAR(255))
-BEGIN
-SELECT CHARSET(arg);
-END|
-CREATE PROCEDURE p2(arg VARCHAR(255) CHARACTER SET UTF8)
-BEGIN
-SELECT CHARSET(arg);
-END|
-CALL p1('t');
-CHARSET(arg)
-latin1
-CALL p1(_UTF8 't');
-CHARSET(arg)
-latin1
-CALL p2('t');
-CHARSET(arg)
-utf8
-CALL p2(_LATIN1 't');
-CHARSET(arg)
-utf8
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-
----------------------------------------------------------------
-BUG#14188
----------------------------------------------------------------
-
-DROP PROCEDURE IF EXISTS p1;
-CREATE PROCEDURE p1(arg1 BINARY(2), arg2 VARBINARY(2))
-BEGIN
-DECLARE var1 BINARY(2) DEFAULT 0x41;
-DECLARE var2 VARBINARY(2) DEFAULT 0x42;
-SELECT HEX(arg1), HEX(arg2);
-SELECT HEX(var1), HEX(var2);
-END|
-CALL p1(0x41, 0x42);
-HEX(arg1) HEX(arg2)
-4100 42
-HEX(var1) HEX(var2)
-4100 42
-DROP PROCEDURE p1;
-
----------------------------------------------------------------
-BUG#15148
----------------------------------------------------------------
-
-DROP PROCEDURE IF EXISTS p1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(col1 TINYINT, col2 TINYINT);
-INSERT INTO t1 VALUES(1, 2), (11, 12);
-CREATE PROCEDURE p1(arg TINYINT)
-BEGIN
-SELECT arg;
-END|
-CALL p1((1, 2));
-ERROR 21000: Operand should contain 1 column(s)
-CALL p1((SELECT * FROM t1 LIMIT 1));
-ERROR 21000: Operand should contain 1 column(s)
-CALL p1((SELECT col1, col2 FROM t1 LIMIT 1));
-ERROR 21000: Operand should contain 1 column(s)
-DROP PROCEDURE p1;
-DROP TABLE t1;
-
----------------------------------------------------------------
-BUG#13613
----------------------------------------------------------------
-
-DROP PROCEDURE IF EXISTS p1;
-DROP FUNCTION IF EXISTS f1;
-CREATE PROCEDURE p1(x VARCHAR(50))
-BEGIN
-SET x = SUBSTRING(x, 1, 3);
-SELECT x;
-END|
-CREATE FUNCTION f1(x VARCHAR(50)) RETURNS VARCHAR(50)
-BEGIN
-RETURN SUBSTRING(x, 1, 3);
-END|
-CALL p1('abcdef');
-x
-abc
-SELECT f1('ABCDEF');
-f1('ABCDEF')
-ABC
-DROP PROCEDURE p1;
-DROP FUNCTION f1;
-
----------------------------------------------------------------
-BUG#13665
----------------------------------------------------------------
-
-DROP FUNCTION IF EXISTS f1;
-CREATE FUNCTION f1() RETURNS VARCHAR(20000)
-BEGIN
-DECLARE var VARCHAR(2000);
-SET var = '';
-SET var = CONCAT(var, 'abc');
-SET var = CONCAT(var, '');
-RETURN var;
-END|
-SELECT f1();
-f1()
-abc
-DROP FUNCTION f1;
-DROP PROCEDURE IF EXISTS p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE v_char VARCHAR(255);
-DECLARE v_text TEXT DEFAULT '';
-SET v_char = 'abc';
-SET v_text = v_char;
-SET v_char = 'def';
-SET v_text = concat(v_text, '|', v_char);
-SELECT v_text;
-END|
-CALL p1();
-v_text
-abc|def
-DROP PROCEDURE p1;
-DROP PROCEDURE IF EXISTS bug27415_text_test|
-DROP PROCEDURE IF EXISTS bug27415_text_test2|
-CREATE PROCEDURE bug27415_text_test(entity_id_str_in text)
-BEGIN
-DECLARE str_remainder text;
-SET str_remainder = entity_id_str_in;
-select 'before substr', str_remainder;
-SET str_remainder = SUBSTRING(str_remainder, 3);
-select 'after substr', str_remainder;
-END|
-CREATE PROCEDURE bug27415_text_test2(entity_id_str_in text)
-BEGIN
-DECLARE str_remainder text;
-DECLARE str_remainder2 text;
-SET str_remainder2 = entity_id_str_in;
-select 'before substr', str_remainder2;
-SET str_remainder = SUBSTRING(str_remainder2, 3);
-select 'after substr', str_remainder;
-END|
-CALL bug27415_text_test('a,b,c')|
-before substr str_remainder
-before substr a,b,c
-after substr str_remainder
-after substr b,c
-CALL bug27415_text_test('a,b,c')|
-before substr str_remainder
-before substr a,b,c
-after substr str_remainder
-after substr b,c
-CALL bug27415_text_test2('a,b,c')|
-before substr str_remainder2
-before substr a,b,c
-after substr str_remainder
-after substr b,c
-CALL bug27415_text_test('a,b,c')|
-before substr str_remainder
-before substr a,b,c
-after substr str_remainder
-after substr b,c
-DROP PROCEDURE bug27415_text_test|
-DROP PROCEDURE bug27415_text_test2|
-drop function if exists f1;
-drop table if exists t1;
-create function f1() returns int
-begin
-if @a=1 then set @b='abc';
-else set @b=1;
-end if;
-set @a=1;
-return 0;
-end|
-create table t1 (a int)|
-insert into t1 (a) values (1), (2)|
-set @b=1|
-set @a=0|
-select f1(), @b from t1|
-f1() @b
-0 1
-0 0
-set @b:='test'|
-set @a=0|
-select f1(), @b from t1|
-f1() @b
-0 1
-0 abc
-drop function f1;
-drop table t1;
-
----------------------------------------------------------------
-BUG#28299
----------------------------------------------------------------
-
-CREATE PROCEDURE ctest()
-BEGIN
-DECLARE i CHAR(16);
-DECLARE j INT;
-SET i= 'string';
-SET j= 1 + i;
-END|
-CALL ctest();
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'string '
-DROP PROCEDURE ctest;
-CREATE PROCEDURE vctest()
-BEGIN
-DECLARE i VARCHAR(16);
-DECLARE j INT;
-SET i= 'string';
-SET j= 1 + i;
-END|
-CALL vctest();
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'string'
-DROP PROCEDURE vctest;
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12876 Wrong data type for CREATE..SELECT sp_var
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE i8 TINYINT;
-DECLARE i16 SMALLINT;
-DECLARE i32 INT;
-DECLARE i64 BIGINT;
-DECLARE f FLOAT;
-DECLARE d DOUBLE;
-DECLARE b8 BIT(8);
-DECLARE y YEAR;
-DECLARE t1 TINYTEXT;
-DECLARE t2 TEXT;
-DECLARE t3 MEDIUMTEXT;
-DECLARE t4 LONGTEXT;
-CREATE TABLE t1 AS SELECT i8, i16, i32, i64, f, d, b8, y, t1, t2, t3, t4;
-END;
-$$
-CALL p1;
-DESCRIBE t1;
-Field Type Null Key Default Extra
-i8 tinyint(4) YES NULL
-i16 smallint(6) YES NULL
-i32 int(11) YES NULL
-i64 bigint(20) YES NULL
-f float YES NULL
-d double YES NULL
-b8 bit(8) YES NULL
-y year(4) YES NULL
-t1 tinytext YES NULL
-t2 text YES NULL
-t3 mediumtext YES NULL
-t4 longtext YES NULL
-DROP TABLE t1;
-DROP PROCEDURE p1;
-#
-# MDEV-12917 Wrong data type for CREATE..SELECT year_sp_variable
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE a YEAR;
-CREATE OR REPLACE TABLE t1 AS SELECT a;
-SHOW CREATE TABLE t1;
-DROP TABLE t1;
-END;
-$$
-CALL p1;
-Table Create Table
-t1 CREATE TABLE "t1" (
- "a" year(4) DEFAULT NULL
-)
-DROP PROCEDURE p1;
diff --git a/mysql-test/r/sp.result b/mysql-test/r/sp.result
deleted file mode 100644
index 5e457fae1e0..00000000000
--- a/mysql-test/r/sp.result
+++ /dev/null
@@ -1,8573 +0,0 @@
-use test;
-drop table if exists t1,t2,t3,t4;
-drop view if exists v1;
-drop procedure if exists p1;
-drop procedure if exists p2;
-drop function if exists f1;
-drop function if exists f2;
-create table t1 (
-id char(16) not null default '',
-data int not null
-);
-create table t2 (
-s char(16),
-i int,
-d double
-);
-drop procedure if exists foo42;
-create procedure foo42()
-insert into test.t1 values ("foo", 42);
-call foo42();
-select * from t1;
-id data
-foo 42
-delete from t1;
-drop procedure foo42;
-drop procedure if exists bar;
-create procedure bar(x char(16), y int)
-insert into test.t1 values (x, y);
-call bar("bar", 666);
-select * from t1;
-id data
-bar 666
-delete from t1;
-drop procedure if exists empty|
-create procedure empty()
-begin
-end|
-call empty()|
-drop procedure empty|
-drop procedure if exists scope|
-create procedure scope(a int, b float)
-begin
-declare b int;
-declare c float;
-begin
-declare c int;
-end;
-end|
-drop procedure scope|
-drop procedure if exists two|
-create procedure two(x1 char(16), x2 char(16), y int)
-begin
-insert into test.t1 values (x1, y);
-insert into test.t1 values (x2, y);
-end|
-call two("one", "two", 3)|
-select * from t1|
-id data
-one 3
-two 3
-delete from t1|
-drop procedure two|
-drop procedure if exists locset|
-create procedure locset(x char(16), y int)
-begin
-declare z1, z2 int;
-set z1 = y;
-set z2 = z1+2;
-insert into test.t1 values (x, z2);
-end|
-call locset("locset", 19)|
-select * from t1|
-id data
-locset 21
-delete from t1|
-drop procedure locset|
-drop procedure if exists setcontext|
-create procedure setcontext()
-begin
-declare data int default 2;
-insert into t1 (id, data) values ("foo", 1);
-replace t1 set data = data, id = "bar";
-update t1 set id = "kaka", data = 3 where t1.data = data;
-end|
-call setcontext()|
-select * from t1 order by data|
-id data
-foo 1
-kaka 3
-delete from t1|
-drop procedure setcontext|
-create table t3 ( d date, i int, f double, s varchar(32) )|
-drop procedure if exists nullset|
-create procedure nullset()
-begin
-declare ld date;
-declare li int;
-declare lf double;
-declare ls varchar(32);
-set ld = null, li = null, lf = null, ls = null;
-insert into t3 values (ld, li, lf, ls);
-insert into t3 (i, f, s) values ((ld is null), 1, "ld is null"),
-((li is null), 1, "li is null"),
-((li = 0), null, "li = 0"),
-((lf is null), 1, "lf is null"),
-((lf = 0), null, "lf = 0"),
-((ls is null), 1, "ls is null");
-end|
-call nullset()|
-select * from t3|
-d i f s
-NULL NULL NULL NULL
-NULL 1 1 ld is null
-NULL 1 1 li is null
-NULL NULL NULL li = 0
-NULL 1 1 lf is null
-NULL NULL NULL lf = 0
-NULL 1 1 ls is null
-drop table t3|
-drop procedure nullset|
-drop procedure if exists mixset|
-create procedure mixset(x char(16), y int)
-begin
-declare z int;
-set @z = y, z = 666, max_join_size = 100;
-insert into test.t1 values (x, z);
-end|
-call mixset("mixset", 19)|
-show variables like 'max_join_size'|
-Variable_name Value
-max_join_size 100
-select id,data,@z from t1|
-id data @z
-mixset 666 19
-delete from t1|
-drop procedure mixset|
-drop procedure if exists zip|
-create procedure zip(x char(16), y int)
-begin
-declare z int;
-call zap(y, z);
-call bar(x, z);
-end|
-drop procedure if exists zap|
-create procedure zap(x int, out y int)
-begin
-declare z int;
-set z = x+1, y = z;
-end|
-call zip("zip", 99)|
-select * from t1|
-id data
-zip 100
-delete from t1|
-drop procedure zip|
-drop procedure bar|
-call zap(7, @zap)|
-select @zap|
-@zap
-8
-drop procedure zap|
-drop procedure if exists c1|
-create procedure c1(x int)
-call c2("c", x)|
-drop procedure if exists c2|
-create procedure c2(s char(16), x int)
-call c3(x, s)|
-drop procedure if exists c3|
-create procedure c3(x int, s char(16))
-call c4("level", x, s)|
-drop procedure if exists c4|
-create procedure c4(l char(8), x int, s char(16))
-insert into t1 values (concat(l,s), x)|
-call c1(42)|
-select * from t1|
-id data
-levelc 42
-delete from t1|
-drop procedure c1|
-drop procedure c2|
-drop procedure c3|
-drop procedure c4|
-drop procedure if exists iotest|
-create procedure iotest(x1 char(16), x2 char(16), y int)
-begin
-call inc2(x2, y);
-insert into test.t1 values (x1, y);
-end|
-drop procedure if exists inc2|
-create procedure inc2(x char(16), y int)
-begin
-call inc(y);
-insert into test.t1 values (x, y);
-end|
-drop procedure if exists inc|
-create procedure inc(inout io int)
-set io = io + 1|
-call iotest("io1", "io2", 1)|
-select * from t1 order by data desc|
-id data
-io2 2
-io1 1
-delete from t1|
-drop procedure iotest|
-drop procedure inc2|
-drop procedure if exists incr|
-create procedure incr(inout x int)
-call inc(x)|
-select @zap|
-@zap
-8
-call incr(@zap)|
-select @zap|
-@zap
-9
-drop procedure inc|
-drop procedure incr|
-drop procedure if exists cbv1|
-create procedure cbv1()
-begin
-declare y int default 3;
-call cbv2(y+1, y);
-insert into test.t1 values ("cbv1", y);
-end|
-drop procedure if exists cbv2|
-create procedure cbv2(y1 int, inout y2 int)
-begin
-set y2 = 4711;
-insert into test.t1 values ("cbv2", y1);
-end|
-call cbv1()|
-select * from t1 order by data|
-id data
-cbv2 4
-cbv1 4711
-delete from t1|
-drop procedure cbv1|
-drop procedure cbv2|
-insert into t2 values ("a", 1, 1.1), ("b", 2, 1.2), ("c", 3, 1.3)|
-drop procedure if exists sub1|
-create procedure sub1(id char(16), x int)
-insert into test.t1 values (id, x)|
-drop procedure if exists sub2|
-create procedure sub2(id char(16))
-begin
-declare x int;
-set x = (select sum(t.i) from test.t2 t);
-insert into test.t1 values (id, x);
-end|
-drop procedure if exists sub3|
-create function sub3(i int) returns int deterministic
-return i+1|
-call sub1("sub1a", (select 7))|
-call sub1("sub1b", (select max(i) from t2))|
-call sub1("sub1c", (select i,d from t2 limit 1))|
-ERROR 21000: Operand should contain 1 column(s)
-call sub1("sub1d", (select 1 from (select 1) a))|
-call sub2("sub2")|
-select * from t1 order by id|
-id data
-sub1a 7
-sub1b 3
-sub1d 1
-sub2 6
-select sub3((select max(i) from t2))|
-sub3((select max(i) from t2))
-4
-drop procedure sub1|
-drop procedure sub2|
-drop function sub3|
-delete from t1|
-delete from t2|
-drop procedure if exists a0|
-create procedure a0(x int)
-while x do
-set x = x-1;
-insert into test.t1 values ("a0", x);
-end while|
-call a0(3)|
-select * from t1 order by data desc|
-id data
-a0 2
-a0 1
-a0 0
-delete from t1|
-drop procedure a0|
-drop procedure if exists a|
-create procedure a(x int)
-while x > 0 do
-set x = x-1;
-insert into test.t1 values ("a", x);
-end while|
-call a(3)|
-select * from t1 order by data desc|
-id data
-a 2
-a 1
-a 0
-delete from t1|
-drop procedure a|
-drop procedure if exists b|
-create procedure b(x int)
-repeat
-insert into test.t1 values (repeat("b",3), x);
-set x = x-1;
-until x = 0 end repeat|
-call b(3)|
-select * from t1 order by data desc|
-id data
-bbb 3
-bbb 2
-bbb 1
-delete from t1|
-drop procedure b|
-drop procedure if exists b2|
-create procedure b2(x int)
-repeat(select 1 into outfile 'b2');
-insert into test.t1 values (repeat("b2",3), x);
-set x = x-1;
-until x = 0 end repeat|
-drop procedure b2|
-drop procedure if exists c|
-create procedure c(x int)
-hmm: while x > 0 do
-insert into test.t1 values ("c", x);
-set x = x-1;
-iterate hmm;
-insert into test.t1 values ("x", x);
-end while hmm|
-call c(3)|
-select * from t1 order by data desc|
-id data
-c 3
-c 2
-c 1
-delete from t1|
-drop procedure c|
-drop procedure if exists d|
-create procedure d(x int)
-hmm: while x > 0 do
-insert into test.t1 values ("d", x);
-set x = x-1;
-leave hmm;
-insert into test.t1 values ("x", x);
-end while|
-call d(3)|
-select * from t1|
-id data
-d 3
-delete from t1|
-drop procedure d|
-drop procedure if exists e|
-create procedure e(x int)
-foo: loop
-if x = 0 then
-leave foo;
-end if;
-insert into test.t1 values ("e", x);
-set x = x-1;
-end loop foo|
-call e(3)|
-select * from t1 order by data desc|
-id data
-e 3
-e 2
-e 1
-delete from t1|
-drop procedure e|
-drop procedure if exists f|
-create procedure f(x int)
-if x < 0 then
-insert into test.t1 values ("f", 0);
-elseif x = 0 then
-insert into test.t1 values ("f", 1);
-else
-insert into test.t1 values ("f", 2);
-end if|
-call f(-2)|
-call f(0)|
-call f(4)|
-select * from t1 order by data|
-id data
-f 0
-f 1
-f 2
-delete from t1|
-drop procedure f|
-drop procedure if exists g|
-create procedure g(x int)
-case
-when x < 0 then
-insert into test.t1 values ("g", 0);
-when x = 0 then
-insert into test.t1 values ("g", 1);
-else
-insert into test.t1 values ("g", 2);
-end case|
-call g(-42)|
-call g(0)|
-call g(1)|
-select * from t1 order by data|
-id data
-g 0
-g 1
-g 2
-delete from t1|
-drop procedure g|
-drop procedure if exists h|
-create procedure h(x int)
-case x
-when 0 then
-insert into test.t1 values ("h0", x);
-when 1 then
-insert into test.t1 values ("h1", x);
-else
-insert into test.t1 values ("h?", x);
-end case|
-call h(0)|
-call h(1)|
-call h(17)|
-select * from t1 order by data|
-id data
-h0 0
-h1 1
-h? 17
-delete from t1|
-drop procedure h|
-drop procedure if exists i|
-create procedure i(x int)
-foo:
-begin
-if x = 0 then
-leave foo;
-end if;
-insert into test.t1 values ("i", x);
-end foo|
-call i(0)|
-call i(3)|
-select * from t1|
-id data
-i 3
-delete from t1|
-drop procedure i|
-insert into t1 values ("foo", 3), ("bar", 19)|
-insert into t2 values ("x", 9, 4.1), ("y", -1, 19.2), ("z", 3, 2.2)|
-drop procedure if exists sel1|
-create procedure sel1()
-begin
-select * from t1 order by data;
-end|
-call sel1()|
-id data
-foo 3
-bar 19
-drop procedure sel1|
-drop procedure if exists sel2|
-create procedure sel2()
-begin
-select * from t1 order by data;
-select * from t2 order by s;
-end|
-call sel2()|
-id data
-foo 3
-bar 19
-s i d
-x 9 4.1
-y -1 19.2
-z 3 2.2
-drop procedure sel2|
-delete from t1|
-delete from t2|
-drop procedure if exists into_test|
-create procedure into_test(x char(16), y int)
-begin
-insert into test.t1 values (x, y);
-select id,data into x,y from test.t1 limit 1;
-insert into test.t1 values (concat(x, "2"), y+2);
-end|
-call into_test("into", 100)|
-select * from t1 order by data|
-id data
-into 100
-into2 102
-delete from t1|
-drop procedure into_test|
-drop procedure if exists into_tes2|
-create procedure into_test2(x char(16), y int)
-begin
-insert into test.t1 values (x, y);
-select id,data into x,@z from test.t1 limit 1;
-insert into test.t1 values (concat(x, "2"), y+2);
-end|
-call into_test2("into", 100)|
-select id,data,@z from t1 order by data|
-id data @z
-into 100 100
-into2 102 100
-delete from t1|
-drop procedure into_test2|
-drop procedure if exists into_test3|
-create procedure into_test3()
-begin
-declare x char(16);
-declare y int;
-select * into x,y from test.t1 limit 1;
-insert into test.t2 values (x, y, 0.0);
-end|
-insert into t1 values ("into3", 19)|
-call into_test3()|
-call into_test3()|
-select * from t2|
-s i d
-into3 19 0
-into3 19 0
-delete from t1|
-delete from t2|
-drop procedure into_test3|
-drop procedure if exists into_test4|
-create procedure into_test4()
-begin
-declare x int;
-select data into x from test.t1 limit 1;
-insert into test.t3 values ("into4", x);
-end|
-delete from t1|
-create table t3 ( s char(16), d int)|
-call into_test4()|
-select * from t3|
-s d
-into4 NULL
-insert into t1 values ("i4", 77)|
-call into_test4()|
-select * from t3|
-s d
-into4 NULL
-into4 77
-delete from t1|
-drop table t3|
-drop procedure into_test4|
-drop procedure if exists into_outfile|
-create procedure into_outfile(x char(16), y int)
-begin
-insert into test.t1 values (x, y);
-select * into outfile "MYSQLTEST_VARDIR/tmp/spout" from test.t1;
-insert into test.t1 values (concat(x, "2"), y+2);
-end|
-call into_outfile("ofile", 1)|
-delete from t1|
-drop procedure into_outfile|
-drop procedure if exists into_dumpfile|
-create procedure into_dumpfile(x char(16), y int)
-begin
-insert into test.t1 values (x, y);
-select * into dumpfile "MYSQLTEST_VARDIR/tmp/spdump" from test.t1 limit 1;
-insert into test.t1 values (concat(x, "2"), y+2);
-end|
-call into_dumpfile("dfile", 1)|
-delete from t1|
-drop procedure into_dumpfile|
-drop procedure if exists create_select|
-create procedure create_select(x char(16), y int)
-begin
-insert into test.t1 values (x, y);
-create temporary table test.t3 select * from test.t1;
-insert into test.t3 values (concat(x, "2"), y+2);
-end|
-call create_select("cs", 90)|
-select * from t1, t3|
-id data id data
-cs 90 cs 90
-cs 90 cs2 92
-drop table t3|
-delete from t1|
-drop procedure create_select|
-drop function if exists e|
-create function e() returns double
-return 2.7182818284590452354|
-set @e = e()|
-select e(), @e|
-e() @e
-2.718281828459045 2.718281828459045
-drop function if exists inc|
-create function inc(i int) returns int
-return i+1|
-select inc(1), inc(99), inc(-71)|
-inc(1) inc(99) inc(-71)
-2 100 -70
-drop function if exists mul|
-create function mul(x int, y int) returns int
-return x*y|
-select mul(1,1), mul(3,5), mul(4711, 666)|
-mul(1,1) mul(3,5) mul(4711, 666)
-1 15 3137526
-drop function if exists append|
-create function append(s1 char(8), s2 char(8)) returns char(16)
-return concat(s1, s2)|
-select append("foo", "bar")|
-append("foo", "bar")
-foobar
-drop function if exists fac|
-create function fac(n int unsigned) returns bigint unsigned
-begin
-declare f bigint unsigned default 1;
-while n > 1 do
-set f = f * n;
-set n = n - 1;
-end while;
-return f;
-end|
-select fac(1), fac(2), fac(5), fac(10)|
-fac(1) fac(2) fac(5) fac(10)
-1 2 120 3628800
-drop function if exists fun|
-create function fun(d double, i int, u int unsigned) returns double
-return mul(inc(i), fac(u)) / e()|
-select fun(2.3, 3, 5)|
-fun(2.3, 3, 5)
-176.58213176229233
-insert into t2 values (append("xxx", "yyy"), mul(4,3), e())|
-insert into t2 values (append("a", "b"), mul(2,mul(3,4)), fun(1.7, 4, 6))|
-select * from t2 where s = append("a", "b")|
-s i d
-ab 24 1324.3659882171924
-select * from t2 where i = mul(4,3) or i = mul(mul(3,4),2) order by i|
-s i d
-xxxyyy 12 2.718281828459045
-ab 24 1324.3659882171924
-select * from t2 where d = e()|
-s i d
-xxxyyy 12 2.718281828459045
-select * from t2 order by i|
-s i d
-xxxyyy 12 2.718281828459045
-ab 24 1324.3659882171924
-delete from t2|
-drop function e|
-drop function inc|
-drop function mul|
-drop function append|
-drop function fun|
-drop procedure if exists hndlr1|
-create procedure hndlr1(val int)
-begin
-declare x int default 0;
-declare foo condition for 1136;
-declare bar condition for sqlstate '42S98'; # Just for testing syntax
-declare zip condition for sqlstate value '42S99'; # Just for testing syntax
-declare continue handler for foo set x = 1;
-insert into test.t1 values ("hndlr1", val, 2); # Too many values
-if (x) then
-insert into test.t1 values ("hndlr1", val); # This instead then
-end if;
-end|
-call hndlr1(42)|
-select * from t1|
-id data
-hndlr1 42
-delete from t1|
-drop procedure hndlr1|
-drop procedure if exists hndlr2|
-create procedure hndlr2(val int)
-begin
-declare x int default 0;
-begin
-declare exit handler for sqlstate '21S01' set x = 1;
-insert into test.t1 values ("hndlr2", val, 2); # Too many values
-end;
-insert into test.t1 values ("hndlr2", x);
-end|
-call hndlr2(42)|
-select * from t1|
-id data
-hndlr2 1
-delete from t1|
-drop procedure hndlr2|
-drop procedure if exists hndlr3|
-create procedure hndlr3(val int)
-begin
-declare x int default 0;
-declare continue handler for sqlexception # Any error
-begin
-declare z int;
-set z = 2 * val;
-set x = 1;
-end;
-if val < 10 then
-begin
-declare y int;
-set y = val + 10;
-insert into test.t1 values ("hndlr3", y, 2); # Too many values
-if x then
-insert into test.t1 values ("hndlr3", y);
-end if;
-end;
-end if;
-end|
-call hndlr3(3)|
-select * from t1|
-id data
-hndlr3 13
-delete from t1|
-drop procedure hndlr3|
-create table t3 ( id char(16), data int )|
-drop procedure if exists hndlr4|
-create procedure hndlr4()
-begin
-declare x int default 0;
-declare val int; # No default
-declare continue handler for sqlstate '02000' set x=1;
-select data into val from test.t3 where id='z' limit 1; # No hits
-insert into test.t3 values ('z', val);
-end|
-call hndlr4()|
-select * from t3|
-id data
-z NULL
-drop table t3|
-drop procedure hndlr4|
-drop procedure if exists cur1|
-create procedure cur1()
-begin
-declare a char(16);
-declare b int;
-declare c double;
-declare done int default 0;
-declare c cursor for select * from test.t2;
-declare continue handler for sqlstate '02000' set done = 1;
-open c;
-repeat
-fetch c into a, b, c;
-if not done then
-insert into test.t1 values (a, b+c);
-end if;
-until done end repeat;
-close c;
-end|
-insert into t2 values ("foo", 42, -1.9), ("bar", 3, 12.1), ("zap", 666, -3.14)|
-call cur1()|
-select * from t1|
-id data
-foo 40
-bar 15
-zap 663
-drop procedure cur1|
-create table t3 ( s char(16), i int )|
-drop procedure if exists cur2|
-create procedure cur2()
-begin
-declare done int default 0;
-declare c1 cursor for select id,data from test.t1 order by id,data;
-declare c2 cursor for select i from test.t2 order by i;
-declare continue handler for sqlstate '02000' set done = 1;
-open c1;
-open c2;
-repeat
-begin
-declare a char(16);
-declare b,c int;
-fetch from c1 into a, b;
-fetch next from c2 into c;
-if not done then
-if b < c then
-insert into test.t3 values (a, b);
-else
-insert into test.t3 values (a, c);
-end if;
-end if;
-end;
-until done end repeat;
-close c1;
-close c2;
-end|
-call cur2()|
-select * from t3 order by i,s|
-s i
-bar 3
-foo 40
-zap 663
-delete from t1|
-delete from t2|
-drop table t3|
-drop procedure cur2|
-drop procedure if exists chistics|
-create procedure chistics()
-language sql
-modifies sql data
-not deterministic
-sql security definer
-comment 'Characteristics procedure test'
- insert into t1 values ("chistics", 1)|
-show create procedure chistics|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-chistics STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `chistics`()
- MODIFIES SQL DATA
- COMMENT 'Characteristics procedure test'
-insert into t1 values ("chistics", 1) latin1 latin1_swedish_ci latin1_swedish_ci
-call chistics()|
-select * from t1|
-id data
-chistics 1
-delete from t1|
-alter procedure chistics sql security invoker|
-show create procedure chistics|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-chistics STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `chistics`()
- MODIFIES SQL DATA
- SQL SECURITY INVOKER
- COMMENT 'Characteristics procedure test'
-insert into t1 values ("chistics", 1) latin1 latin1_swedish_ci latin1_swedish_ci
-drop procedure chistics|
-drop function if exists chistics|
-create function chistics() returns int
-language sql
-deterministic
-sql security invoker
-comment 'Characteristics procedure test'
- return 42|
-show create function chistics|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-chistics STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `chistics`() RETURNS int(11)
- DETERMINISTIC
- SQL SECURITY INVOKER
- COMMENT 'Characteristics procedure test'
-return 42 latin1 latin1_swedish_ci latin1_swedish_ci
-select chistics()|
-chistics()
-42
-alter function chistics
-no sql
-comment 'Characteristics function test'|
-show create function chistics|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-chistics STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `chistics`() RETURNS int(11)
- NO SQL
- DETERMINISTIC
- SQL SECURITY INVOKER
- COMMENT 'Characteristics function test'
-return 42 latin1 latin1_swedish_ci latin1_swedish_ci
-drop function chistics|
-insert into t1 values ("foo", 1), ("bar", 2), ("zip", 3)|
-set @@sql_mode = 'ANSI'|
-drop procedure if exists modes$
-create procedure modes(out c1 int, out c2 int)
-begin
-declare done int default 0;
-declare x int;
-declare c cursor for select data from t1;
-declare continue handler for sqlstate '02000' set done = 1;
-select 1 || 2 into c1;
-set c2 = 0;
-open c;
-repeat
-fetch c into x;
-if not done then
-set c2 = c2 + 1;
-end if;
-until done end repeat;
-close c;
-end$
-set @@sql_mode = ''|
-set sql_select_limit = 1|
-call modes(@c1, @c2)|
-set sql_select_limit = default|
-select @c1, @c2|
-@c1 @c2
-12 3
-delete from t1|
-drop procedure modes|
-create database sp_db1|
-drop database sp_db1|
-create database sp_db2|
-use sp_db2|
-create table t3 ( s char(4), t int )|
-insert into t3 values ("abcd", 42), ("dcba", 666)|
-use test|
-drop database sp_db2|
-create database sp_db3|
-use sp_db3|
-drop procedure if exists dummy|
-create procedure dummy(out x int)
-set x = 42|
-use test|
-drop database sp_db3|
-select type,db,name from mysql.proc where db = 'sp_db3'|
-type db name
-drop procedure if exists rc|
-create procedure rc()
-begin
-delete from t1;
-insert into t1 values ("a", 1), ("b", 2), ("c", 3);
-end|
-call rc()|
-select row_count()|
-row_count()
-3
-update t1 set data=42 where id = "b";
-select row_count()|
-row_count()
-1
-delete from t1|
-select row_count()|
-row_count()
-3
-delete from t1|
-select row_count()|
-row_count()
-0
-select * from t1|
-id data
-select row_count()|
-row_count()
--1
-drop procedure rc|
-drop function if exists f0|
-drop function if exists f1|
-drop function if exists f2|
-drop function if exists f3|
-drop function if exists f4|
-drop function if exists f5|
-drop function if exists f6|
-drop function if exists f7|
-drop function if exists f8|
-drop function if exists f9|
-drop function if exists f10|
-drop function if exists f11|
-drop function if exists f12_1|
-drop function if exists f12_2|
-drop view if exists v0|
-drop view if exists v1|
-drop view if exists v2|
-delete from t1|
-delete from t2|
-insert into t1 values ("a", 1), ("b", 2) |
-insert into t2 values ("a", 1, 1.0), ("b", 2, 2.0), ("c", 3, 3.0) |
-create function f1() returns int
-return (select sum(data) from t1)|
-select f1()|
-f1()
-3
-select id, f1() from t1 order by id|
-id f1()
-a 3
-b 3
-create function f2() returns int
-return (select data from t1 where data <= (select sum(data) from t1) order by data limit 1)|
-select f2()|
-f2()
-1
-select id, f2() from t1 order by id|
-id f2()
-a 1
-b 1
-create function f3() returns int
-begin
-declare n int;
-declare m int;
-set n:= (select min(data) from t1);
-set m:= (select max(data) from t1);
-return n < m;
-end|
-select f3()|
-f3()
-1
-select id, f3() from t1 order by id|
-id f3()
-a 1
-b 1
-select f1(), f3()|
-f1() f3()
-3 1
-select id, f1(), f3() from t1 order by id|
-id f1() f3()
-a 3 1
-b 3 1
-create function f4() returns double
-return (select d from t1, t2 where t1.data = t2.i and t1.id= "b")|
-select f4()|
-f4()
-2
-select s, f4() from t2 order by s|
-s f4()
-a 2
-b 2
-c 2
-create function f5(i int) returns int
-begin
-if i <= 0 then
-return 0;
-elseif i = 1 then
-return (select count(*) from t1 where data = i);
-else
-return (select count(*) + f5( i - 1) from t1 where data = i);
-end if;
-end|
-select f5(1)|
-f5(1)
-1
-select f5(2)|
-ERROR HY000: Recursive stored functions and triggers are not allowed
-select f5(3)|
-ERROR HY000: Recursive stored functions and triggers are not allowed
-create function f6() returns int
-begin
-declare n int;
-set n:= f1();
-return (select count(*) from t1 where data <= f7() and data <= n);
-end|
-create function f7() returns int
-return (select sum(data) from t1 where data <= f1())|
-select f6()|
-f6()
-2
-select id, f6() from t1 order by id|
-id f6()
-a 2
-b 2
-create view v1 (a) as select f1()|
-select * from v1|
-a
-3
-select id, a from t1, v1 order by id|
-id a
-a 3
-b 3
-select * from v1, v1 as v|
-a a
-3 3
-create view v2 (a) as select a*10 from v1|
-select * from v2|
-a
-30
-select id, a from t1, v2 order by id|
-id a
-a 30
-b 30
-select * from v1, v2|
-a a
-3 30
-create function f8 () returns int
-return (select count(*) from v2)|
-select *, f8() from v1|
-a f8()
-3 1
-drop function f1|
-select * from v1|
-ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-create function f1() returns int
-return (select sum(data) from t1) + (select sum(data) from v1)|
-select f1()|
-ERROR HY000: Recursive stored functions and triggers are not allowed
-select * from v1|
-ERROR HY000: Recursive stored functions and triggers are not allowed
-select * from v2|
-ERROR HY000: Recursive stored functions and triggers are not allowed
-drop function f1|
-create function f1() returns int
-return (select sum(data) from t1)|
-create function f0() returns int
-return (select * from (select 100) as r)|
-select f0()|
-f0()
-100
-select *, f0() from (select 1) as t|
-1 f0()
-1 100
-create view v0 as select f0()|
-select * from v0|
-f0()
-100
-select *, f0() from v0|
-f0() f0()
-100 100
-lock tables t1 read, t1 as t11 read|
-select f3()|
-f3()
-1
-select id, f3() from t1 as t11 order by id|
-id f3()
-a 1
-b 1
-select f0()|
-f0()
-100
-select * from v0|
-ERROR HY000: Table 'v0' was not locked with LOCK TABLES
-select *, f0() from v0, (select 123) as d1|
-ERROR HY000: Table 'v0' was not locked with LOCK TABLES
-select id, f3() from t1|
-ERROR HY000: Table 't1' was not locked with LOCK TABLES
-select f4()|
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-unlock tables|
-lock tables v2 read, mysql.proc read|
-select * from v2|
-a
-30
-select * from v1|
-a
-3
-select * from v1, t1|
-ERROR HY000: Table 't1' was not locked with LOCK TABLES
-select f4()|
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-unlock tables|
-create function f9() returns int
-begin
-declare a, b int;
-drop temporary table if exists t3;
-create temporary table t3 (id int);
-insert into t3 values (1), (2), (3);
-set a:= (select count(*) from t3);
-set b:= (select count(*) from t3 t3_alias);
-return a + b;
-end|
-select f9()|
-f9()
-6
-select f9() from t1 limit 1|
-f9()
-6
-create function f10() returns int
-begin
-drop temporary table if exists t3;
-create temporary table t3 (id int);
-insert into t3 select id from t4;
-return (select count(*) from t3);
-end|
-select f10()|
-ERROR 42S02: Table 'test.t4' doesn't exist
-create table t4 as select 1 as id|
-select f10()|
-f10()
-1
-create function f11() returns int
-begin
-drop temporary table if exists t3;
-create temporary table t3 (id int);
-insert into t3 values (1), (2), (3);
-return (select count(*) from t3 as a, t3 as b);
-end|
-select f11()|
-f11()
-9
-select f11() from t1|
-f11()
-9
-9
-create function f12_1() returns int
-begin
-drop temporary table if exists t3;
-create temporary table t3 (id int);
-insert into t3 values (1), (2), (3);
-return f12_2();
-end|
-create function f12_2() returns int
-return (select count(*) from t3)|
-drop temporary table t3|
-select f12_1()|
-f12_1()
-3
-drop temporary table t3|
-select f12_1() from t1 limit 1|
-f12_1()
-3
-drop function f0|
-drop function f1|
-drop function f2|
-drop function f3|
-drop function f4|
-drop function f5|
-drop function f6|
-drop function f7|
-drop function f8|
-drop function f9|
-drop function f10|
-drop function f11|
-drop function f12_1|
-drop function f12_2|
-drop view v0|
-drop view v1|
-drop view v2|
-truncate table t1 |
-truncate table t2 |
-drop table t4|
-drop table if exists t3|
-create table t3 (n int unsigned not null primary key, f bigint unsigned)|
-drop procedure if exists ifac|
-create procedure ifac(n int unsigned)
-begin
-declare i int unsigned default 1;
-if n > 20 then
-set n = 20; # bigint overflow otherwise
-end if;
-while i <= n do
-begin
-insert into test.t3 values (i, fac(i));
-set i = i + 1;
-end;
-end while;
-end|
-call ifac(20)|
-select * from t3|
-n f
-1 1
-2 2
-3 6
-4 24
-5 120
-6 720
-7 5040
-8 40320
-9 362880
-10 3628800
-11 39916800
-12 479001600
-13 6227020800
-14 87178291200
-15 1307674368000
-16 20922789888000
-17 355687428096000
-18 6402373705728000
-19 121645100408832000
-20 2432902008176640000
-drop table t3|
-show function status like '%f%'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test fac FUNCTION root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-drop procedure ifac|
-drop function fac|
-show function status like '%f%'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-drop table if exists t3|
-create table t3 (
-i int unsigned not null primary key,
-p bigint unsigned not null
-)|
-insert into t3 values
-( 0, 3), ( 1, 5), ( 2, 7), ( 3, 11), ( 4, 13),
-( 5, 17), ( 6, 19), ( 7, 23), ( 8, 29), ( 9, 31),
-(10, 37), (11, 41), (12, 43), (13, 47), (14, 53),
-(15, 59), (16, 61), (17, 67), (18, 71), (19, 73),
-(20, 79), (21, 83), (22, 89), (23, 97), (24, 101),
-(25, 103), (26, 107), (27, 109), (28, 113), (29, 127),
-(30, 131), (31, 137), (32, 139), (33, 149), (34, 151),
-(35, 157), (36, 163), (37, 167), (38, 173), (39, 179),
-(40, 181), (41, 191), (42, 193), (43, 197), (44, 199)|
-drop procedure if exists opp|
-create procedure opp(n bigint unsigned, out pp bool)
-begin
-declare r double;
-declare b, s bigint unsigned default 0;
-set r = sqrt(n);
-again:
-loop
-if s = 45 then
-set b = b+200, s = 0;
-else
-begin
-declare p bigint unsigned;
-select t.p into p from test.t3 t where t.i = s;
-if b+p > r then
-set pp = 1;
-leave again;
-end if;
-if mod(n, b+p) = 0 then
-set pp = 0;
-leave again;
-end if;
-set s = s+1;
-end;
-end if;
-end loop;
-end|
-drop procedure if exists ip|
-create procedure ip(m int unsigned)
-begin
-declare p bigint unsigned;
-declare i int unsigned;
-set i=45, p=201;
-while i < m do
-begin
-declare pp bool default 0;
-call opp(p, pp);
-if pp then
-insert into test.t3 values (i, p);
-set i = i+1;
-end if;
-set p = p+2;
-end;
-end while;
-end|
-show create procedure opp|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-opp CREATE DEFINER=`root`@`localhost` PROCEDURE `opp`(n bigint unsigned, out pp bool)
-begin
-declare r double;
-declare b, s bigint unsigned default 0;
-set r = sqrt(n);
-again:
-loop
-if s = 45 then
-set b = b+200, s = 0;
-else
-begin
-declare p bigint unsigned;
-select t.p into p from test.t3 t where t.i = s;
-if b+p > r then
-set pp = 1;
-leave again;
-end if;
-if mod(n, b+p) = 0 then
-set pp = 0;
-leave again;
-end if;
-set s = s+1;
-end;
-end if;
-end loop;
-end latin1 latin1_swedish_ci latin1_swedish_ci
-show procedure status where name like '%p%' and db='test'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test ip PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-test opp PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-call ip(200)|
-select * from t3 where i=45 or i=100 or i=199|
-i p
-45 211
-100 557
-199 1229
-drop table t3|
-drop procedure opp|
-drop procedure ip|
-show procedure status where name like '%p%' and db='test'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-drop procedure if exists bar|
-create procedure bar(x char(16), y int)
-comment "111111111111" sql security invoker
-insert into test.t1 values (x, y)|
-show procedure status like 'bar'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test bar PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 INVOKER 111111111111 latin1 latin1_swedish_ci latin1_swedish_ci
-alter procedure bar comment "2222222222" sql security definer|
-alter procedure bar comment "3333333333"|
-alter procedure bar|
-show create procedure bar|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-bar CREATE DEFINER=`root`@`localhost` PROCEDURE `bar`(x char(16), y int)
- COMMENT '3333333333'
-insert into test.t1 values (x, y) latin1 latin1_swedish_ci latin1_swedish_ci
-show procedure status like 'bar'|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test bar PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER 3333333333 latin1 latin1_swedish_ci latin1_swedish_ci
-drop procedure bar|
-drop procedure if exists p1|
-create procedure p1 ()
-select (select s1 from t3) from t3|
-create table t3 (s1 int)|
-call p1()|
-(select s1 from t3)
-insert into t3 values (1)|
-call p1()|
-(select s1 from t3)
-1
-drop procedure p1|
-drop table t3|
-drop function if exists foo|
-create function `foo` () returns int
-return 5|
-select `foo` ()|
-`foo` ()
-5
-drop function `foo`|
-drop function if exists t1max|
-create function t1max() returns int
-begin
-declare x int;
-select max(data) into x from t1;
-return x;
-end|
-insert into t1 values ("foo", 3), ("bar", 2), ("zip", 5), ("zap", 1)|
-select t1max()|
-t1max()
-5
-drop function t1max|
-create table t3 (
-v char(16) not null primary key,
-c int unsigned not null
-)|
-create function getcount(s char(16)) returns int
-begin
-declare x int;
-select count(*) into x from t3 where v = s;
-if x = 0 then
-insert into t3 values (s, 1);
-else
-update t3 set c = c+1 where v = s;
-end if;
-return x;
-end|
-select * from t1 where data = getcount("bar")|
-id data
-zap 1
-select * from t3|
-v c
-bar 4
-select getcount("zip")|
-getcount("zip")
-0
-select getcount("zip")|
-getcount("zip")
-1
-select * from t3|
-v c
-bar 4
-zip 2
-select getcount(id) from t1 where data = 3|
-getcount(id)
-0
-select getcount(id) from t1 where data = 5|
-getcount(id)
-1
-select * from t3|
-v c
-bar 4
-zip 3
-foo 1
-drop table t3|
-drop function getcount|
-drop table if exists t3|
-drop procedure if exists h_ee|
-drop procedure if exists h_es|
-drop procedure if exists h_en|
-drop procedure if exists h_ew|
-drop procedure if exists h_ex|
-drop procedure if exists h_se|
-drop procedure if exists h_ss|
-drop procedure if exists h_sn|
-drop procedure if exists h_sw|
-drop procedure if exists h_sx|
-drop procedure if exists h_ne|
-drop procedure if exists h_ns|
-drop procedure if exists h_nn|
-drop procedure if exists h_we|
-drop procedure if exists h_ws|
-drop procedure if exists h_ww|
-drop procedure if exists h_xe|
-drop procedure if exists h_xs|
-drop procedure if exists h_xx|
-create table t3 (a smallint primary key)|
-insert into t3 (a) values (1)|
-create procedure h_ee()
-deterministic
-begin
-declare continue handler for 1062 -- ER_DUP_ENTRY
-select 'Outer (bad)' as 'h_ee';
-begin
-declare continue handler for 1062 -- ER_DUP_ENTRY
-select 'Inner (good)' as 'h_ee';
-insert into t3 values (1);
-end;
-end|
-create procedure h_es()
-deterministic
-begin
-declare continue handler for 1062 -- ER_DUP_ENTRY
-select 'Outer (good)' as 'h_es';
-begin
--- integrity constraint violation
-declare continue handler for sqlstate '23000'
- select 'Inner (bad)' as 'h_es';
-insert into t3 values (1);
-end;
-end|
-create procedure h_en()
-deterministic
-begin
-declare continue handler for 1329 -- ER_SP_FETCH_NO_DATA
-select 'Outer (good)' as 'h_en';
-begin
-declare x int;
-declare continue handler for sqlstate '02000' -- no data
-select 'Inner (bad)' as 'h_en';
-select a into x from t3 where a = 42;
-end;
-end|
-create procedure h_ew()
-deterministic
-begin
-declare continue handler for 1264 -- ER_WARN_DATA_OUT_OF_RANGE
-select 'Outer (good)' as 'h_ew';
-begin
-declare continue handler for sqlwarning
-select 'Inner (bad)' as 'h_ew';
-insert into t3 values (123456789012);
-end;
-delete from t3;
-insert into t3 values (1);
-end|
-create procedure h_ex()
-deterministic
-begin
-declare continue handler for 1062 -- ER_DUP_ENTRY
-select 'Outer (good)' as 'h_ex';
-begin
-declare continue handler for sqlexception
-select 'Inner (bad)' as 'h_ex';
-insert into t3 values (1);
-end;
-end|
-create procedure h_se()
-deterministic
-begin
--- integrity constraint violation
-declare continue handler for sqlstate '23000'
-select 'Outer (bad)' as 'h_se';
-begin
-declare continue handler for 1062 -- ER_DUP_ENTRY
-select 'Inner (good)' as 'h_se';
-insert into t3 values (1);
-end;
-end|
-create procedure h_ss()
-deterministic
-begin
--- integrity constraint violation
-declare continue handler for sqlstate '23000'
-select 'Outer (bad)' as 'h_ss';
-begin
--- integrity constraint violation
-declare continue handler for sqlstate '23000'
-select 'Inner (good)' as 'h_ss';
-insert into t3 values (1);
-end;
-end|
-create procedure h_sn()
-deterministic
-begin
--- Note: '02000' is more specific than NOT FOUND ;
--- there might be other not found states
-declare continue handler for sqlstate '02000' -- no data
-select 'Outer (good)' as 'h_sn';
-begin
-declare x int;
-declare continue handler for not found
-select 'Inner (bad)' as 'h_sn';
-select a into x from t3 where a = 42;
-end;
-end|
-create procedure h_sw()
-deterministic
-begin
--- data exception - numeric value out of range
-declare continue handler for sqlstate '22003'
- select 'Outer (good)' as 'h_sw';
-begin
-declare continue handler for sqlwarning
-select 'Inner (bad)' as 'h_sw';
-insert into t3 values (123456789012);
-end;
-delete from t3;
-insert into t3 values (1);
-end|
-create procedure h_sx()
-deterministic
-begin
--- integrity constraint violation
-declare continue handler for sqlstate '23000'
-select 'Outer (good)' as 'h_sx';
-begin
-declare continue handler for sqlexception
-select 'Inner (bad)' as 'h_sx';
-insert into t3 values (1);
-end;
-end|
-create procedure h_ne()
-deterministic
-begin
-declare continue handler for not found
-select 'Outer (bad)' as 'h_ne';
-begin
-declare x int;
-declare continue handler for 1329 -- ER_SP_FETCH_NO_DATA
-select 'Inner (good)' as 'h_ne';
-select a into x from t3 where a = 42;
-end;
-end|
-create procedure h_ns()
-deterministic
-begin
-declare continue handler for not found
-select 'Outer (bad)' as 'h_ns';
-begin
-declare x int;
-declare continue handler for sqlstate '02000' -- no data
-select 'Inner (good)' as 'h_ns';
-select a into x from t3 where a = 42;
-end;
-end|
-create procedure h_nn()
-deterministic
-begin
-declare continue handler for not found
-select 'Outer (bad)' as 'h_nn';
-begin
-declare x int;
-declare continue handler for not found
-select 'Inner (good)' as 'h_nn';
-select a into x from t3 where a = 42;
-end;
-end|
-create procedure h_we()
-deterministic
-begin
-declare continue handler for sqlwarning
-select 'Outer (bad)' as 'h_we';
-begin
-declare continue handler for 1264 -- ER_WARN_DATA_OUT_OF_RANGE
-select 'Inner (good)' as 'h_we';
-insert into t3 values (123456789012);
-end;
-delete from t3;
-insert into t3 values (1);
-end|
-create procedure h_ws()
-deterministic
-begin
-declare continue handler for sqlwarning
-select 'Outer (bad)' as 'h_ws';
-begin
--- data exception - numeric value out of range
-declare continue handler for sqlstate '22003'
- select 'Inner (good)' as 'h_ws';
-insert into t3 values (123456789012);
-end;
-delete from t3;
-insert into t3 values (1);
-end|
-create procedure h_ww()
-deterministic
-begin
-declare continue handler for sqlwarning
-select 'Outer (bad)' as 'h_ww';
-begin
-declare continue handler for sqlwarning
-select 'Inner (good)' as 'h_ww';
-insert into t3 values (123456789012);
-end;
-delete from t3;
-insert into t3 values (1);
-end|
-create procedure h_xe()
-deterministic
-begin
-declare continue handler for sqlexception
-select 'Outer (bad)' as 'h_xe';
-begin
-declare continue handler for 1062 -- ER_DUP_ENTRY
-select 'Inner (good)' as 'h_xe';
-insert into t3 values (1);
-end;
-end|
-create procedure h_xs()
-deterministic
-begin
-declare continue handler for sqlexception
-select 'Outer (bad)' as 'h_xs';
-begin
--- integrity constraint violation
-declare continue handler for sqlstate '23000'
- select 'Inner (good)' as 'h_xs';
-insert into t3 values (1);
-end;
-end|
-create procedure h_xx()
-deterministic
-begin
-declare continue handler for sqlexception
-select 'Outer (bad)' as 'h_xx';
-begin
-declare continue handler for sqlexception
-select 'Inner (good)' as 'h_xx';
-insert into t3 values (1);
-end;
-end|
-call h_ee()|
-h_ee
-Inner (good)
-call h_es()|
-h_es
-Inner (bad)
-call h_en()|
-h_en
-Inner (bad)
-call h_ew()|
-h_ew
-Inner (bad)
-call h_ex()|
-h_ex
-Inner (bad)
-call h_se()|
-h_se
-Inner (good)
-call h_ss()|
-h_ss
-Inner (good)
-call h_sn()|
-h_sn
-Inner (bad)
-call h_sw()|
-h_sw
-Inner (bad)
-call h_sx()|
-h_sx
-Inner (bad)
-call h_ne()|
-h_ne
-Inner (good)
-call h_ns()|
-h_ns
-Inner (good)
-call h_nn()|
-h_nn
-Inner (good)
-call h_we()|
-h_we
-Inner (good)
-call h_ws()|
-h_ws
-Inner (good)
-call h_ww()|
-h_ww
-Inner (good)
-call h_xe()|
-h_xe
-Inner (good)
-call h_xs()|
-h_xs
-Inner (good)
-call h_xx()|
-h_xx
-Inner (good)
-drop table t3|
-drop procedure h_ee|
-drop procedure h_es|
-drop procedure h_en|
-drop procedure h_ew|
-drop procedure h_ex|
-drop procedure h_se|
-drop procedure h_ss|
-drop procedure h_sn|
-drop procedure h_sw|
-drop procedure h_sx|
-drop procedure h_ne|
-drop procedure h_ns|
-drop procedure h_nn|
-drop procedure h_we|
-drop procedure h_ws|
-drop procedure h_ww|
-drop procedure h_xe|
-drop procedure h_xs|
-drop procedure h_xx|
-drop procedure if exists bug822|
-create procedure bug822(a_id char(16), a_data int)
-begin
-declare n int;
-select count(*) into n from t1 where id = a_id and data = a_data;
-if n = 0 then
-insert into t1 (id, data) values (a_id, a_data);
-end if;
-end|
-delete from t1|
-call bug822('foo', 42)|
-call bug822('foo', 42)|
-call bug822('bar', 666)|
-select * from t1 order by data|
-id data
-foo 42
-bar 666
-delete from t1|
-drop procedure bug822|
-drop procedure if exists bug1495|
-create procedure bug1495()
-begin
-declare x int;
-select data into x from t1 order by id limit 1;
-if x > 10 then
-insert into t1 values ("less", x-10);
-else
-insert into t1 values ("more", x+10);
-end if;
-end|
-insert into t1 values ('foo', 12)|
-call bug1495()|
-delete from t1 where id='foo'|
-insert into t1 values ('bar', 7)|
-call bug1495()|
-delete from t1 where id='bar'|
-select * from t1 order by data|
-id data
-less 2
-more 17
-delete from t1|
-drop procedure bug1495|
-drop procedure if exists bug1547|
-create procedure bug1547(s char(16))
-begin
-declare x int;
-select data into x from t1 where s = id limit 1;
-if x > 10 then
-insert into t1 values ("less", x-10);
-else
-insert into t1 values ("more", x+10);
-end if;
-end|
-insert into t1 values ("foo", 12), ("bar", 7)|
-call bug1547("foo")|
-call bug1547("bar")|
-select * from t1 order by id|
-id data
-bar 7
-foo 12
-less 2
-more 17
-delete from t1|
-drop procedure bug1547|
-drop table if exists t70|
-create table t70 (s1 int,s2 int)|
-insert into t70 values (1,2)|
-drop procedure if exists bug1656|
-create procedure bug1656(out p1 int, out p2 int)
-select * into p1, p1 from t70|
-call bug1656(@1, @2)|
-select @1, @2|
-@1 @2
-2 NULL
-drop table t70|
-drop procedure bug1656|
-create table t3(a int)|
-drop procedure if exists bug1862|
-create procedure bug1862()
-begin
-insert into t3 values(2);
-flush tables;
-end|
-call bug1862()|
-call bug1862()|
-select * from t3|
-a
-2
-2
-drop table t3|
-drop procedure bug1862|
-drop procedure if exists bug1874|
-create procedure bug1874()
-begin
-declare x int;
-declare y double;
-select max(data) into x from t1;
-insert into t2 values ("max", x, 0);
-select min(data) into x from t1;
-insert into t2 values ("min", x, 0);
-select sum(data) into x from t1;
-insert into t2 values ("sum", x, 0);
-select avg(data) into y from t1;
-insert into t2 values ("avg", 0, y);
-end|
-insert into t1 (data) values (3), (1), (5), (9), (4)|
-call bug1874()|
-select * from t2 order by i|
-s i d
-avg 0 4.4
-min 1 0
-max 9 0
-sum 22 0
-delete from t1|
-delete from t2|
-drop procedure bug1874|
-drop procedure if exists bug2260|
-create procedure bug2260()
-begin
-declare v1 int;
-declare c1 cursor for select data from t1;
-declare continue handler for not found set @x2 = 1;
-open c1;
-fetch c1 into v1;
-set @x2 = 2;
-close c1;
-end|
-call bug2260()|
-select @x2|
-@x2
-2
-drop procedure bug2260|
-drop procedure if exists bug2267_1|
-create procedure bug2267_1()
-begin
-show procedure status where db='test';
-end|
-drop procedure if exists bug2267_2|
-create procedure bug2267_2()
-begin
-show function status where db='test';
-end|
-drop procedure if exists bug2267_3|
-create procedure bug2267_3()
-begin
-show create procedure bug2267_1;
-end|
-drop procedure if exists bug2267_4|
-drop function if exists bug2267_4|
-create procedure bug2267_4()
-begin
-show create function bug2267_4;
-end|
-create function bug2267_4() returns int return 100|
-call bug2267_1()|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test bug2267_1 PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-test bug2267_2 PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-test bug2267_3 PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-test bug2267_4 PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-call bug2267_2()|
-Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
-test bug2267_4 FUNCTION root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
-call bug2267_3()|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-bug2267_1 CREATE DEFINER=`root`@`localhost` PROCEDURE `bug2267_1`()
-begin
-show procedure status where db='test';
-end latin1 latin1_swedish_ci latin1_swedish_ci
-call bug2267_4()|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-bug2267_4 CREATE DEFINER=`root`@`localhost` FUNCTION `bug2267_4`() RETURNS int(11)
-return 100 latin1 latin1_swedish_ci latin1_swedish_ci
-drop procedure bug2267_1|
-drop procedure bug2267_2|
-drop procedure bug2267_3|
-drop procedure bug2267_4|
-drop function bug2267_4|
-drop procedure if exists bug2227|
-create procedure bug2227(x int)
-begin
-declare y float default 2.6;
-declare z char(16) default "zzz";
-select 1.3, x, y, 42, z;
-end|
-call bug2227(9)|
-1.3 x y 42 z
-1.3 9 2.6 42 zzz
-drop procedure bug2227|
-drop procedure if exists bug2614|
-create procedure bug2614()
-begin
-drop table if exists t3;
-create table t3 (id int default '0' not null);
-insert into t3 select 12;
-insert into t3 select * from t3;
-end|
-call bug2614()|
-call bug2614()|
-drop table t3|
-drop procedure bug2614|
-drop function if exists bug2674|
-create function bug2674() returns int
-return @@sort_buffer_size|
-set @osbs = @@sort_buffer_size|
-set @@sort_buffer_size = 262000|
-select bug2674()|
-bug2674()
-262000
-drop function bug2674|
-set @@sort_buffer_size = @osbs|
-drop procedure if exists bug3259_1 |
-create procedure bug3259_1 () begin end|
-drop procedure if exists BUG3259_2 |
-create procedure BUG3259_2 () begin end|
-drop procedure if exists Bug3259_3 |
-create procedure Bug3259_3 () begin end|
-call BUG3259_1()|
-call BUG3259_1()|
-call bug3259_2()|
-call Bug3259_2()|
-call bug3259_3()|
-call bUG3259_3()|
-drop procedure bUg3259_1|
-drop procedure BuG3259_2|
-drop procedure BUG3259_3|
-drop function if exists bug2772|
-create function bug2772() returns char(10) character set latin2
-return 'a'|
-select bug2772()|
-bug2772()
-a
-drop function bug2772|
-drop procedure if exists bug2776_1|
-create procedure bug2776_1(out x int)
-begin
-declare v int;
-set v = default;
-set x = v;
-end|
-drop procedure if exists bug2776_2|
-create procedure bug2776_2(out x int)
-begin
-declare v int default 42;
-set v = default;
-set x = v;
-end|
-set @x = 1|
-call bug2776_1(@x)|
-select @x|
-@x
-NULL
-call bug2776_2(@x)|
-select @x|
-@x
-42
-drop procedure bug2776_1|
-drop procedure bug2776_2|
-create table t3 (s1 smallint)|
-insert into t3 values (123456789012)|
-Warnings:
-Warning 1264 Out of range value for column 's1' at row 1
-drop procedure if exists bug2780|
-create procedure bug2780()
-begin
-declare exit handler for sqlwarning set @x = 1;
-set @x = 0;
-insert into t3 values (123456789012);
-insert into t3 values (0);
-end|
-call bug2780()|
-select @x|
-@x
-1
-select * from t3|
-s1
-32767
-32767
-drop procedure bug2780|
-drop table t3|
-create table t3 (content varchar(10) )|
-insert into t3 values ("test1")|
-insert into t3 values ("test2")|
-create table t4 (f1 int, rc int, t3 int)|
-drop procedure if exists bug1863|
-create procedure bug1863(in1 int)
-begin
-declare ind int default 0;
-declare t1 int;
-declare t2 int;
-declare t3 int;
-declare rc int default 0;
-declare continue handler for 1065 set rc = 1;
-drop temporary table if exists temp_t1;
-create temporary table temp_t1 (
-f1 int auto_increment, f2 varchar(20), primary key (f1)
-);
-insert into temp_t1 (f2) select content from t3;
-select f2 into t3 from temp_t1 where f1 = 10;
-if (rc) then
-insert into t4 values (1, rc, t3);
-end if;
-insert into t4 values (2, rc, t3);
-end|
-call bug1863(10)|
-call bug1863(10)|
-select * from t4|
-f1 rc t3
-2 0 NULL
-2 0 NULL
-drop procedure bug1863|
-drop temporary table temp_t1;
-drop table t3, t4|
-create table t3 (
-OrderID int not null,
-MarketID int,
-primary key (OrderID)
-)|
-create table t4 (
-MarketID int not null,
-Market varchar(60),
-Status char(1),
-primary key (MarketID)
-)|
-insert t3 (OrderID,MarketID) values (1,1)|
-insert t3 (OrderID,MarketID) values (2,2)|
-insert t4 (MarketID,Market,Status) values (1,"MarketID One","A")|
-insert t4 (MarketID,Market,Status) values (2,"MarketID Two","A")|
-drop procedure if exists bug2656_1|
-create procedure bug2656_1()
-begin
-select
-m.Market
-from t4 m JOIN t3 o
-ON o.MarketID != 1 and o.MarketID = m.MarketID;
-end |
-drop procedure if exists bug2656_2|
-create procedure bug2656_2()
-begin
-select
-m.Market
-from
-t4 m, t3 o
-where
-m.MarketID != 1 and m.MarketID = o.MarketID;
-end |
-call bug2656_1()|
-Market
-MarketID Two
-call bug2656_1()|
-Market
-MarketID Two
-call bug2656_2()|
-Market
-MarketID Two
-call bug2656_2()|
-Market
-MarketID Two
-drop procedure bug2656_1|
-drop procedure bug2656_2|
-drop table t3, t4|
-drop procedure if exists bug3426|
-create procedure bug3426(in_time int unsigned, out x int)
-begin
-if in_time is null then
-set @stamped_time=10;
-set x=1;
-else
-set @stamped_time=in_time;
-set x=2;
-end if;
-end|
-set time_zone='+03:00';
-call bug3426(1000, @i)|
-select @i, from_unixtime(@stamped_time, '%d-%m-%Y %h:%i:%s') as time|
-@i time
-2 01-01-1970 03:16:40
-call bug3426(NULL, @i)|
-select @i, from_unixtime(@stamped_time, '%d-%m-%Y %h:%i:%s') as time|
-@i time
-1 01-01-1970 03:00:10
-alter procedure bug3426 sql security invoker|
-call bug3426(NULL, @i)|
-select @i, from_unixtime(@stamped_time, '%d-%m-%Y %h:%i:%s') as time|
-@i time
-1 01-01-1970 03:00:10
-call bug3426(1000, @i)|
-select @i, from_unixtime(@stamped_time, '%d-%m-%Y %h:%i:%s') as time|
-@i time
-2 01-01-1970 03:16:40
-drop procedure bug3426|
-create table t3 (
-id int unsigned auto_increment not null primary key,
-title VARCHAR(200),
-body text,
-fulltext (title,body)
-)|
-insert into t3 (title,body) values
-('MySQL Tutorial','DBMS stands for DataBase ...'),
-('How To Use MySQL Well','After you went through a ...'),
-('Optimizing MySQL','In this tutorial we will show ...'),
-('1001 MySQL Tricks','1. Never run mysqld as root. 2. ...'),
-('MySQL vs. YourSQL','In the following database comparison ...'),
-('MySQL Security','When configured properly, MySQL ...')|
-drop procedure if exists bug3734 |
-create procedure bug3734 (param1 varchar(100))
-select * from t3 where match (title,body) against (param1)|
-call bug3734('database')|
-id title body
-5 MySQL vs. YourSQL In the following database comparison ...
-1 MySQL Tutorial DBMS stands for DataBase ...
-call bug3734('Security')|
-id title body
-6 MySQL Security When configured properly, MySQL ...
-drop procedure bug3734|
-drop table t3|
-drop procedure if exists bug3863|
-create procedure bug3863()
-begin
-set @a = 0;
-while @a < 5 do
-set @a = @a + 1;
-end while;
-end|
-call bug3863()|
-select @a|
-@a
-5
-call bug3863()|
-select @a|
-@a
-5
-drop procedure bug3863|
-create table t3 (
-id int(10) unsigned not null default 0,
-rid int(10) unsigned not null default 0,
-msg text not null,
-primary key (id),
-unique key rid (rid, id)
-)|
-drop procedure if exists bug2460_1|
-create procedure bug2460_1(in v int)
-begin
-( select n0.id from t3 as n0 where n0.id = v )
-union
-( select n0.id from t3 as n0, t3 as n1
-where n0.id = n1.rid and n1.id = v )
-union
-( select n0.id from t3 as n0, t3 as n1, t3 as n2
-where n0.id = n1.rid and n1.id = n2.rid and n2.id = v );
-end|
-call bug2460_1(2)|
-id
-call bug2460_1(2)|
-id
-insert into t3 values (1, 1, 'foo'), (2, 1, 'bar'), (3, 1, 'zip zap')|
-call bug2460_1(2)|
-id
-2
-1
-call bug2460_1(2)|
-id
-2
-1
-drop procedure if exists bug2460_2|
-create procedure bug2460_2()
-begin
-drop table if exists t3;
-create temporary table t3 (s1 int);
-insert into t3 select 1 union select 1;
-end|
-call bug2460_2()|
-call bug2460_2()|
-select * from t3|
-s1
-1
-drop procedure bug2460_1|
-drop procedure bug2460_2|
-drop table t3|
-set @@sql_mode = ''|
-drop procedure if exists bug2564_1|
-create procedure bug2564_1()
-comment 'Joe''s procedure'
- insert into `t1` values ("foo", 1)|
-set @@sql_mode = 'ANSI_QUOTES'|
-drop procedure if exists bug2564_2|
-create procedure bug2564_2()
-insert into "t1" values ('foo', 1)|
-set @@sql_mode = ''$
-drop function if exists bug2564_3$
-create function bug2564_3(x int, y int) returns int
-return x || y$
-set @@sql_mode = 'ANSI'$
-drop function if exists bug2564_4$
-create function bug2564_4(x int, y int) returns int
-return x || y$
-set @@sql_mode = ''|
-show create procedure bug2564_1|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-bug2564_1 CREATE DEFINER=`root`@`localhost` PROCEDURE `bug2564_1`()
- COMMENT 'Joe''s procedure'
-insert into `t1` values ("foo", 1) latin1 latin1_swedish_ci latin1_swedish_ci
-show create procedure bug2564_2|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-bug2564_2 ANSI_QUOTES CREATE DEFINER="root"@"localhost" PROCEDURE "bug2564_2"()
-insert into "t1" values ('foo', 1) latin1 latin1_swedish_ci latin1_swedish_ci
-show create function bug2564_3|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-bug2564_3 CREATE DEFINER=`root`@`localhost` FUNCTION `bug2564_3`(x int, y int) RETURNS int(11)
-return x || y latin1 latin1_swedish_ci latin1_swedish_ci
-show create function bug2564_4|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-bug2564_4 REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI CREATE DEFINER="root"@"localhost" FUNCTION "bug2564_4"(x int, y int) RETURNS int(11)
-return x || y latin1 latin1_swedish_ci latin1_swedish_ci
-drop procedure bug2564_1|
-drop procedure bug2564_2|
-drop function bug2564_3|
-drop function bug2564_4|
-drop function if exists bug3132|
-create function bug3132(s char(20)) returns char(50)
-return concat('Hello, ', s, '!')|
-select bug3132('Bob') union all select bug3132('Judy')|
-bug3132('Bob')
-Hello, Bob!
-Hello, Judy!
-drop function bug3132|
-drop procedure if exists bug3843|
-create procedure bug3843()
-analyze table t1|
-call bug3843()|
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-call bug3843()|
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-select 1+2|
-1+2
-3
-drop procedure bug3843|
-create table t3 ( s1 char(10) )|
-insert into t3 values ('a'), ('b')|
-drop procedure if exists bug3368|
-create procedure bug3368(v char(10))
-begin
-select group_concat(v) from t3;
-end|
-call bug3368('x')|
-group_concat(v)
-x,x
-call bug3368('yz')|
-group_concat(v)
-yz,yz
-drop procedure bug3368|
-drop table t3|
-create table t3 (f1 int, f2 int)|
-insert into t3 values (1,1)|
-drop procedure if exists bug4579_1|
-create procedure bug4579_1 ()
-begin
-declare sf1 int;
-select f1 into sf1 from t3 where f1=1 and f2=1;
-update t3 set f2 = f2 + 1 where f1=1 and f2=1;
-call bug4579_2();
-end|
-drop procedure if exists bug4579_2|
-create procedure bug4579_2 ()
-begin
-end|
-call bug4579_1()|
-call bug4579_1()|
-call bug4579_1()|
-drop procedure bug4579_1|
-drop procedure bug4579_2|
-drop table t3|
-drop procedure if exists bug2773|
-create function bug2773() returns int return null|
-create table t3 as select bug2773()|
-show create table t3|
-Table Create Table
-t3 CREATE TABLE `t3` (
- `bug2773()` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t3|
-drop function bug2773|
-drop procedure if exists bug3788|
-create function bug3788() returns date return cast("2005-03-04" as date)|
-select bug3788()|
-bug3788()
-2005-03-04
-drop function bug3788|
-create function bug3788() returns binary(1) return 5|
-select bug3788()|
-bug3788()
-5
-drop function bug3788|
-create table t3 (f1 int, f2 int, f3 int)|
-insert into t3 values (1,1,1)|
-drop procedure if exists bug4726|
-create procedure bug4726()
-begin
-declare tmp_o_id INT;
-declare tmp_d_id INT default 1;
-while tmp_d_id <= 2 do
-begin
-select f1 into tmp_o_id from t3 where f2=1 and f3=1;
-set tmp_d_id = tmp_d_id + 1;
-end;
-end while;
-end|
-call bug4726()|
-call bug4726()|
-call bug4726()|
-drop procedure bug4726|
-drop table t3|
-drop procedure if exists bug4902|
-create procedure bug4902()
-begin
-show charset like 'foo';
-show collation like 'foo';
-show create table t1;
-show create database test;
-show databases like 'foo';
-show errors;
-show columns from t1;
-show keys from t1;
-show open tables like 'foo';
-# Removed because result will differ in embedded mode.
-#show privileges;
-show status like 'foo';
-show tables like 'foo';
-show variables like 'foo';
-show warnings;
-end|
-call bug4902()|
-Charset Description Default collation Maxlen
-Collation Charset Id Default Compiled Sortlen
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` char(16) NOT NULL DEFAULT '',
- `data` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-Database Create Database
-test CREATE DATABASE `test` /*!40100 DEFAULT CHARACTER SET latin1 */
-Database (foo)
-Level Code Message
-Field Type Null Key Default Extra
-id char(16) NO
-data int(11) NO NULL
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-Database Table In_use Name_locked
-Variable_name Value
-Tables_in_test (foo)
-Variable_name Value
-Level Code Message
-call bug4902()|
-Charset Description Default collation Maxlen
-Collation Charset Id Default Compiled Sortlen
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` char(16) NOT NULL DEFAULT '',
- `data` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-Database Create Database
-test CREATE DATABASE `test` /*!40100 DEFAULT CHARACTER SET latin1 */
-Database (foo)
-Level Code Message
-Field Type Null Key Default Extra
-id char(16) NO
-data int(11) NO NULL
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-Database Table In_use Name_locked
-Variable_name Value
-Tables_in_test (foo)
-Variable_name Value
-Level Code Message
-drop procedure bug4902|
-drop procedure if exists bug4904|
-create procedure bug4904()
-begin
-declare continue handler for sqlstate 'HY000' begin end;
-create table t2 as select * from t3;
-end|
-call bug4904()|
-ERROR 42S02: Table 'test.t3' doesn't exist
-drop procedure bug4904|
-create table t3 (s1 char character set latin1, s2 char character set latin2)|
-drop procedure if exists bug4904|
-create procedure bug4904 ()
-begin
-declare continue handler for sqlstate 'HY000' begin end;
-select s1 from t3 union select s2 from t3;
-end|
-call bug4904()|
-drop procedure bug4904|
-drop table t3|
-drop procedure if exists bug336|
-create procedure bug336(out y int)
-begin
-declare x int;
-set x = (select sum(t.data) from test.t1 t);
-set y = x;
-end|
-insert into t1 values ("a", 2), ("b", 3)|
-call bug336(@y)|
-select @y|
-@y
-5
-delete from t1|
-drop procedure bug336|
-drop procedure if exists bug3157|
-create procedure bug3157()
-begin
-if exists(select * from t1) then
-set @n= @n + 1;
-end if;
-if (select count(*) from t1) then
-set @n= @n + 1;
-end if;
-end|
-set @n = 0|
-insert into t1 values ("a", 1)|
-call bug3157()|
-select @n|
-@n
-2
-delete from t1|
-drop procedure bug3157|
-drop procedure if exists bug5251|
-create procedure bug5251()
-begin
-end|
-select created into @c1 from mysql.proc
-where db='test' and name='bug5251'|
-alter procedure bug5251 comment 'foobar'|
-select count(*) from mysql.proc
-where db='test' and name='bug5251' and created = @c1|
-count(*)
-1
-drop procedure bug5251|
-drop procedure if exists bug5251|
-create procedure bug5251()
-checksum table t1|
-call bug5251()|
-Table Checksum
-test.t1 0
-call bug5251()|
-Table Checksum
-test.t1 0
-drop procedure bug5251|
-drop procedure if exists bug5287|
-create procedure bug5287(param1 int)
-label1:
-begin
-declare c cursor for select 5;
-loop
-if param1 >= 0 then
-leave label1;
-end if;
-end loop;
-end|
-call bug5287(1)|
-drop procedure bug5287|
-drop procedure if exists bug5307|
-create procedure bug5307()
-begin
-end; set @x = 3|
-call bug5307()|
-select @x|
-@x
-3
-drop procedure bug5307|
-drop procedure if exists bug5258|
-create procedure bug5258()
-begin
-end|
-drop procedure if exists bug5258_aux|
-create procedure bug5258_aux()
-begin
-declare c, m char(19);
-select created,modified into c,m from mysql.proc where name = 'bug5258';
-if c = m then
-select 'Ok';
-else
-select c, m;
-end if;
-end|
-call bug5258_aux()|
-Ok
-Ok
-drop procedure bug5258|
-drop procedure bug5258_aux|
-drop function if exists bug4487|
-create function bug4487() returns char
-begin
-declare v char;
-return v;
-end|
-select bug4487()|
-bug4487()
-NULL
-drop function bug4487|
-drop procedure if exists bug4941|
-drop procedure if exists bug4941|
-create procedure bug4941(out x int)
-begin
-declare c cursor for select i from t2 limit 1;
-open c;
-fetch c into x;
-close c;
-end|
-insert into t2 values (null, null, null)|
-set @x = 42|
-call bug4941(@x)|
-select @x|
-@x
-NULL
-delete from t1|
-drop procedure bug4941|
-drop procedure if exists bug4905|
-create table t3 (s1 int,primary key (s1))|
-drop procedure if exists bug4905|
-create procedure bug4905()
-begin
-declare v int;
-declare continue handler for sqlstate '23000' set v = 5;
-insert into t3 values (1);
-end|
-call bug4905()|
-select row_count()|
-row_count()
-1
-call bug4905()|
-select row_count()|
-row_count()
-0
-call bug4905()|
-select row_count()|
-row_count()
-0
-select * from t3|
-s1
-1
-drop procedure bug4905|
-drop table t3|
-drop procedure if exists bug6029|
-drop procedure if exists bug6029|
-create procedure bug6029()
-begin
-declare exit handler for 1136 select '1136';
-declare exit handler for sqlstate '23000' select 'sqlstate 23000';
-declare continue handler for sqlexception select 'sqlexception';
-insert into t3 values (1);
-insert into t3 values (1,2);
-end|
-create table t3 (s1 int, primary key (s1))|
-insert into t3 values (1)|
-call bug6029()|
-sqlstate 23000
-sqlstate 23000
-delete from t3|
-call bug6029()|
-1136
-1136
-drop procedure bug6029|
-drop table t3|
-drop procedure if exists bug8540|
-create procedure bug8540()
-begin
-declare x int default 1;
-select x as y, x+0 as z;
-end|
-call bug8540()|
-y z
-1 1
-drop procedure bug8540|
-create table t3 (s1 int)|
-drop procedure if exists bug6642|
-create procedure bug6642()
-select abs(count(s1)) from t3|
-call bug6642()|
-abs(count(s1))
-0
-call bug6642()|
-abs(count(s1))
-0
-drop procedure bug6642|
-insert into t3 values (0),(1)|
-drop procedure if exists bug7013|
-create procedure bug7013()
-select s1,count(s1) from t3 group by s1 with rollup|
-call bug7013()|
-s1 count(s1)
-0 1
-1 1
-NULL 2
-call bug7013()|
-s1 count(s1)
-0 1
-1 1
-NULL 2
-drop procedure bug7013|
-drop table if exists t4|
-create table t4 (
-a mediumint(8) unsigned not null auto_increment,
-b smallint(5) unsigned not null,
-c char(32) not null,
-primary key (a)
-) engine=myisam default charset=latin1|
-insert into t4 values (1, 2, 'oneword')|
-insert into t4 values (2, 2, 'anotherword')|
-drop procedure if exists bug7743|
-create procedure bug7743 ( searchstring char(28) )
-begin
-declare var mediumint(8) unsigned;
-select a into var from t4 where b = 2 and c = binary searchstring limit 1;
-select var;
-end|
-call bug7743("oneword")|
-var
-1
-call bug7743("OneWord")|
-var
-NULL
-Warnings:
-Warning 1329 No data - zero rows fetched, selected, or processed
-call bug7743("anotherword")|
-var
-2
-call bug7743("AnotherWord")|
-var
-NULL
-Warnings:
-Warning 1329 No data - zero rows fetched, selected, or processed
-drop procedure bug7743|
-drop table t4|
-delete from t3|
-insert into t3 values(1)|
-drop procedure if exists bug7992_1|
-Warnings:
-Note 1305 PROCEDURE test.bug7992_1 does not exist
-drop procedure if exists bug7992_2|
-Warnings:
-Note 1305 PROCEDURE test.bug7992_2 does not exist
-create procedure bug7992_1()
-begin
-declare i int;
-select max(s1)+1 into i from t3;
-end|
-create procedure bug7992_2()
-insert into t3 (s1) select max(t4.s1)+1 from t3 as t4|
-call bug7992_1()|
-call bug7992_1()|
-call bug7992_2()|
-call bug7992_2()|
-drop procedure bug7992_1|
-drop procedure bug7992_2|
-drop table t3|
-create table t3 ( userid bigint(20) not null default 0 )|
-drop procedure if exists bug8116|
-create procedure bug8116(in _userid int)
-select * from t3 where userid = _userid|
-call bug8116(42)|
-userid
-call bug8116(42)|
-userid
-drop procedure bug8116|
-drop table t3|
-drop procedure if exists bug6857|
-create procedure bug6857()
-begin
-declare t0, t1 int;
-declare plus bool default 0;
-set t0 = unix_timestamp();
-select sleep(1.1);
-set t1 = unix_timestamp();
-if t1 > t0 then
-set plus = 1;
-end if;
-select plus;
-end|
-call bug6857()|
-sleep(1.1)
-0
-plus
-1
-drop procedure bug6857|
-drop procedure if exists bug8757|
-create procedure bug8757()
-begin
-declare x int;
-declare c1 cursor for select data from t1 limit 1;
-begin
-declare y int;
-declare c2 cursor for select i from t2 limit 1;
-open c2;
-fetch c2 into y;
-close c2;
-select 2,y;
-end;
-open c1;
-fetch c1 into x;
-close c1;
-select 1,x;
-end|
-delete from t1|
-delete from t2|
-insert into t1 values ("x", 1)|
-insert into t2 values ("y", 2, 0.0)|
-call bug8757()|
-2 y
-2 2
-1 x
-1 1
-delete from t1|
-delete from t2|
-drop procedure bug8757|
-drop procedure if exists bug8762|
-drop procedure if exists bug8762; create procedure bug8762() begin end|
-drop procedure if exists bug8762; create procedure bug8762() begin end|
-drop procedure bug8762|
-drop function if exists bug5240|
-create function bug5240 () returns int
-begin
-declare x int;
-declare c cursor for select data from t1 limit 1;
-open c;
-fetch c into x;
-close c;
-return x;
-end|
-delete from t1|
-insert into t1 values ("answer", 42)|
-select id, bug5240() from t1|
-id bug5240()
-answer 42
-drop function bug5240|
-drop procedure if exists p1|
-create table t3(id int)|
-insert into t3 values(1)|
-create procedure bug7992()
-begin
-declare i int;
-select max(id)+1 into i from t3;
-end|
-call bug7992()|
-call bug7992()|
-drop procedure bug7992|
-drop table t3|
-create table t3 (
-lpitnumber int(11) default null,
-lrecordtype int(11) default null
-)|
-create table t4 (
-lbsiid int(11) not null default '0',
-ltradingmodeid int(11) not null default '0',
-ltradingareaid int(11) not null default '0',
-csellingprice decimal(19,4) default null,
-primary key (lbsiid,ltradingmodeid,ltradingareaid)
-)|
-create table t5 (
-lbsiid int(11) not null default '0',
-ltradingareaid int(11) not null default '0',
-primary key (lbsiid,ltradingareaid)
-)|
-drop procedure if exists bug8849|
-create procedure bug8849()
-begin
-insert into t5
-(
-t5.lbsiid,
-t5.ltradingareaid
-)
-select distinct t3.lpitnumber, t4.ltradingareaid
-from
-t4 join t3 on
-t3.lpitnumber = t4.lbsiid
-and t3.lrecordtype = 1
-left join t4 as price01 on
-price01.lbsiid = t4.lbsiid and
-price01.ltradingmodeid = 1 and
-t4.ltradingareaid = price01.ltradingareaid;
-end|
-call bug8849()|
-call bug8849()|
-call bug8849()|
-drop procedure bug8849|
-drop tables t3,t4,t5|
-drop procedure if exists bug8937|
-create procedure bug8937()
-begin
-declare s,x,y,z int;
-declare a float;
-select sum(data),avg(data),min(data),max(data) into s,x,y,z from t1;
-select s,x,y,z;
-select avg(data) into a from t1;
-select a;
-end|
-delete from t1|
-insert into t1 (data) values (1), (2), (3), (4), (6)|
-call bug8937()|
-s x y z
-16 3 1 6
-a
-3.2
-drop procedure bug8937|
-delete from t1|
-drop procedure if exists bug6900|
-drop procedure if exists bug9074|
-drop procedure if exists bug6900_9074|
-create table t3 (w char unique, x char)|
-insert into t3 values ('a', 'b')|
-create procedure bug6900()
-begin
-declare exit handler for sqlexception select '1';
-begin
-declare exit handler for sqlexception select '2';
-insert into t3 values ('x', 'y', 'z');
-end;
-end|
-create procedure bug9074()
-begin
-declare x1, x2, x3, x4, x5, x6 int default 0;
-begin
-declare continue handler for sqlstate '23000' set x5 = 1;
-insert into t3 values ('a', 'b');
-set x6 = 1;
-end;
-begin1_label:
-begin
-declare continue handler for sqlstate '23000' set x1 = 1;
-insert into t3 values ('a', 'b');
-set x2 = 1;
-begin2_label:
-begin
-declare exit handler for sqlstate '23000' set x3 = 1;
-set x4= 1;
-insert into t3 values ('a','b');
-set x4= 0;
-end begin2_label;
-end begin1_label;
-select x1, x2, x3, x4, x5, x6;
-end|
-create procedure bug6900_9074(z int)
-begin
-declare exit handler for sqlstate '23000' select '23000';
-begin
-declare exit handler for sqlexception select 'sqlexception';
-if z = 1 then
-insert into t3 values ('a', 'b');
-else
-insert into t3 values ('x', 'y', 'z');
-end if;
-end;
-end|
-call bug6900()|
-2
-2
-call bug9074()|
-x1 x2 x3 x4 x5 x6
-1 1 1 1 1 1
-call bug6900_9074(0)|
-sqlexception
-sqlexception
-call bug6900_9074(1)|
-sqlexception
-sqlexception
-drop procedure bug6900|
-drop procedure bug9074|
-drop procedure bug6900_9074|
-drop table t3|
-drop procedure if exists avg|
-create procedure avg ()
-begin
-end|
-call avg ()|
-drop procedure avg|
-drop procedure if exists bug6129|
-set @old_mode= @@sql_mode;
-set @@sql_mode= "ERROR_FOR_DIVISION_BY_ZERO";
-create procedure bug6129()
-select @@sql_mode|
-call bug6129()|
-@@sql_mode
-ERROR_FOR_DIVISION_BY_ZERO
-set @@sql_mode= "NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO"|
-call bug6129()|
-@@sql_mode
-ERROR_FOR_DIVISION_BY_ZERO
-set @@sql_mode= "NO_ZERO_IN_DATE"|
-call bug6129()|
-@@sql_mode
-ERROR_FOR_DIVISION_BY_ZERO
-set @@sql_mode=@old_mode;
-drop procedure bug6129|
-drop procedure if exists bug9856|
-create procedure bug9856()
-begin
-declare v int;
-declare c cursor for select data from t1;
-declare exit handler for sqlexception, not found select '16';
-open c;
-fetch c into v;
-select v;
-end|
-delete from t1|
-call bug9856()|
-16
-16
-call bug9856()|
-16
-16
-drop procedure bug9856|
-drop procedure if exists bug9674_1|
-drop procedure if exists bug9674_2|
-create procedure bug9674_1(out arg int)
-begin
-declare temp_in1 int default 0;
-declare temp_fl1 int default 0;
-set temp_in1 = 100;
-set temp_fl1 = temp_in1/10;
-set arg = temp_fl1;
-end|
-create procedure bug9674_2()
-begin
-declare v int default 100;
-select v/10;
-end|
-call bug9674_1(@sptmp)|
-call bug9674_1(@sptmp)|
-select @sptmp|
-@sptmp
-10
-call bug9674_2()|
-v/10
-10.0000
-call bug9674_2()|
-v/10
-10.0000
-drop procedure bug9674_1|
-drop procedure bug9674_2|
-drop procedure if exists bug9598_1|
-drop procedure if exists bug9598_2|
-create procedure bug9598_1(in var_1 char(16),
-out var_2 integer, out var_3 integer)
-begin
-set var_2 = 50;
-set var_3 = 60;
-end|
-create procedure bug9598_2(in v1 char(16),
-in v2 integer,
-in v3 integer,
-in v4 integer,
-in v5 integer)
-begin
-select v1,v2,v3,v4,v5;
-call bug9598_1(v1,@tmp1,@tmp2);
-select v1,v2,v3,v4,v5;
-end|
-call bug9598_2('Test',2,3,4,5)|
-v1 v2 v3 v4 v5
-Test 2 3 4 5
-v1 v2 v3 v4 v5
-Test 2 3 4 5
-select @tmp1, @tmp2|
-@tmp1 @tmp2
-50 60
-drop procedure bug9598_1|
-drop procedure bug9598_2|
-drop procedure if exists bug9902|
-create function bug9902() returns int(11)
-begin
-set @x = @x + 1;
-return @x;
-end|
-# Set query cache size, if we have query cache
-set @x = 1|
-insert into t1 values ("qc", 42)|
-select bug9902() from t1|
-bug9902()
-2
-select bug9902() from t1|
-bug9902()
-3
-select @x|
-@x
-3
-# Restore the old query cache size
-delete from t1|
-drop function bug9902|
-drop function if exists bug9102|
-create function bug9102() returns blob return 'a'|
-select bug9102()|
-bug9102()
-a
-drop function bug9102|
-drop function if exists bug7648|
-create function bug7648() returns bit(8) return 'a'|
-select bug7648()|
-bug7648()
-a
-drop function bug7648|
-drop function if exists bug9775|
-create function bug9775(v1 char(1)) returns enum('a','b') return v1|
-select bug9775('a'),bug9775('b'),bug9775('c')|
-bug9775('a') bug9775('b') bug9775('c')
-a b
-Warnings:
-Warning 1265 Data truncated for column 'bug9775('c')' at row 1
-drop function bug9775|
-create function bug9775(v1 int) returns enum('a','b') return v1|
-select bug9775(1),bug9775(2),bug9775(3)|
-bug9775(1) bug9775(2) bug9775(3)
-a b
-Warnings:
-Warning 1265 Data truncated for column 'bug9775(3)' at row 1
-drop function bug9775|
-create function bug9775(v1 char(1)) returns set('a','b') return v1|
-select bug9775('a'),bug9775('b'),bug9775('a,b'),bug9775('c')|
-bug9775('a') bug9775('b') bug9775('a,b') bug9775('c')
-a b a
-Warnings:
-Warning 1265 Data truncated for column 'v1' at row 1
-Warning 1265 Data truncated for column 'bug9775('c')' at row 1
-drop function bug9775|
-create function bug9775(v1 int) returns set('a','b') return v1|
-select bug9775(1),bug9775(2),bug9775(3),bug9775(4)|
-bug9775(1) bug9775(2) bug9775(3) bug9775(4)
-a b a,b
-Warnings:
-Warning 1265 Data truncated for column 'bug9775(4)' at row 1
-drop function bug9775|
-drop function if exists bug8861|
-create function bug8861(v1 int) returns year return v1|
-select bug8861(05)|
-bug8861(05)
-2005
-set @x = bug8861(05)|
-select @x|
-@x
-2005
-drop function bug8861|
-drop procedure if exists bug9004_1|
-drop procedure if exists bug9004_2|
-create procedure bug9004_1(x char(16))
-begin
-insert into t1 values (x, 42);
-insert into t1 values (x, 17);
-end|
-create procedure bug9004_2(x char(16))
-call bug9004_1(x)|
-call bug9004_1('12345678901234567')|
-Warnings:
-Warning 1265 Data truncated for column 'x' at row 1
-call bug9004_2('12345678901234567890')|
-Warnings:
-Warning 1265 Data truncated for column 'x' at row 1
-delete from t1|
-drop procedure bug9004_1|
-drop procedure bug9004_2|
-drop procedure if exists bug7293|
-insert into t1 values ('secret', 0)|
-create procedure bug7293(p1 varchar(100))
-begin
-if exists (select id from t1 where soundex(p1)=soundex(id)) then
-select 'yes';
-end if;
-end;|
-call bug7293('secret')|
-yes
-yes
-call bug7293 ('secrete')|
-yes
-yes
-drop procedure bug7293|
-delete from t1|
-drop procedure if exists bug9841|
-drop view if exists v1|
-create view v1 as select * from t1, t2 where id = s|
-create procedure bug9841 ()
-update v1 set data = 10|
-call bug9841()|
-drop view v1|
-drop procedure bug9841|
-drop procedure if exists bug5963|
-create procedure bug5963_1 () begin declare v int; set v = (select s1 from t3); select v; end;|
-create table t3 (s1 int)|
-insert into t3 values (5)|
-call bug5963_1()|
-v
-5
-call bug5963_1()|
-v
-5
-drop procedure bug5963_1|
-drop table t3|
-create procedure bug5963_2 (cfk_value int)
-begin
-if cfk_value in (select cpk from t3) then
-set @x = 5;
-end if;
-end;
-|
-create table t3 (cpk int)|
-insert into t3 values (1)|
-call bug5963_2(1)|
-call bug5963_2(1)|
-drop procedure bug5963_2|
-drop table t3|
-drop function if exists bug9559|
-create function bug9559()
-returns int
-begin
-set @y = -6/2;
-return @y;
-end|
-select bug9559()|
-bug9559()
--3
-drop function bug9559|
-drop procedure if exists bug10961|
-create procedure bug10961()
-begin
-declare v char;
-declare x int;
-declare c cursor for select * from dual;
-declare continue handler for sqlexception select x;
-set x = 1;
-open c;
-set x = 2;
-fetch c into v;
-set x = 3;
-close c;
-end|
-call bug10961()|
-x
-1
-x
-2
-x
-3
-call bug10961()|
-x
-1
-x
-2
-x
-3
-drop procedure bug10961|
-DROP PROCEDURE IF EXISTS bug6866|
-DROP VIEW IF EXISTS tv|
-Warnings:
-Note 4092 Unknown VIEW: 'test.tv'
-DROP TABLE IF EXISTS tt1,tt2,tt3|
-Warnings:
-Note 1051 Unknown table 'test.tt1'
-Note 1051 Unknown table 'test.tt2'
-Note 1051 Unknown table 'test.tt3'
-CREATE TABLE tt1 (a1 int, a2 int, a3 int, data varchar(10))|
-CREATE TABLE tt2 (a2 int, data2 varchar(10))|
-CREATE TABLE tt3 (a3 int, data3 varchar(10))|
-INSERT INTO tt1 VALUES (1, 1, 4, 'xx')|
-INSERT INTO tt2 VALUES (1, 'a')|
-INSERT INTO tt2 VALUES (2, 'b')|
-INSERT INTO tt2 VALUES (3, 'c')|
-INSERT INTO tt3 VALUES (4, 'd')|
-INSERT INTO tt3 VALUES (5, 'e')|
-INSERT INTO tt3 VALUES (6, 'f')|
-CREATE VIEW tv AS
-SELECT tt1.*, tt2.data2, tt3.data3
-FROM tt1 INNER JOIN tt2 ON tt1.a2 = tt2.a2
-LEFT JOIN tt3 ON tt1.a3 = tt3.a3
-ORDER BY tt1.a1, tt2.a2, tt3.a3|
-CREATE PROCEDURE bug6866 (_a1 int)
-BEGIN
-SELECT * FROM tv WHERE a1 = _a1;
-END|
-CALL bug6866(1)|
-a1 a2 a3 data data2 data3
-1 1 4 xx a d
-CALL bug6866(1)|
-a1 a2 a3 data data2 data3
-1 1 4 xx a d
-CALL bug6866(1)|
-a1 a2 a3 data data2 data3
-1 1 4 xx a d
-DROP PROCEDURE bug6866;
-DROP VIEW tv|
-DROP TABLE tt1, tt2, tt3|
-DROP PROCEDURE IF EXISTS bug10136|
-create table t3 ( name char(5) not null primary key, val float not null)|
-insert into t3 values ('aaaaa', 1), ('bbbbb', 2), ('ccccc', 3)|
-create procedure bug10136()
-begin
-declare done int default 3;
-repeat
-select * from t3;
-set done = done - 1;
-until done <= 0 end repeat;
-end|
-call bug10136()|
-name val
-aaaaa 1
-bbbbb 2
-ccccc 3
-name val
-aaaaa 1
-bbbbb 2
-ccccc 3
-name val
-aaaaa 1
-bbbbb 2
-ccccc 3
-call bug10136()|
-name val
-aaaaa 1
-bbbbb 2
-ccccc 3
-name val
-aaaaa 1
-bbbbb 2
-ccccc 3
-name val
-aaaaa 1
-bbbbb 2
-ccccc 3
-call bug10136()|
-name val
-aaaaa 1
-bbbbb 2
-ccccc 3
-name val
-aaaaa 1
-bbbbb 2
-ccccc 3
-name val
-aaaaa 1
-bbbbb 2
-ccccc 3
-drop procedure bug10136|
-drop table t3|
-drop procedure if exists bug11529|
-create procedure bug11529()
-begin
-declare c cursor for select id, data from t1 where data in (10,13);
-open c;
-begin
-declare vid char(16);
-declare vdata int;
-declare exit handler for not found begin end;
-while true do
-fetch c into vid, vdata;
-end while;
-end;
-close c;
-end|
-insert into t1 values
-('Name1', 10),
-('Name2', 11),
-('Name3', 12),
-('Name4', 13),
-('Name5', 14)|
-call bug11529()|
-call bug11529()|
-delete from t1|
-drop procedure bug11529|
-set character set utf8|
-drop procedure if exists bug6063|
-drop procedure if exists bug7088_1|
-drop procedure if exists bug7088_2|
-create procedure bug6063()
-begin
-lâbel: begin end;
-label: begin end;
-label1: begin end;
-end|
-create procedure bug7088_1()
-label1: begin end label1|
-create procedure bug7088_2()
-läbel1: begin end|
-call bug6063()|
-call bug7088_1()|
-call bug7088_2()|
-set character set default|
-show create procedure bug6063|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-bug6063 CREATE DEFINER=`root`@`localhost` PROCEDURE `bug6063`()
-begin
-lâbel: begin end;
-label: begin end;
-label1: begin end;
-end utf8 latin1_swedish_ci latin1_swedish_ci
-show create procedure bug7088_1|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-bug7088_1 CREATE DEFINER=`root`@`localhost` PROCEDURE `bug7088_1`()
-label1: begin end label1 utf8 latin1_swedish_ci latin1_swedish_ci
-show create procedure bug7088_2|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-bug7088_2 CREATE DEFINER=`root`@`localhost` PROCEDURE `bug7088_2`()
-läbel1: begin end utf8 latin1_swedish_ci latin1_swedish_ci
-drop procedure bug6063|
-drop procedure bug7088_1|
-drop procedure bug7088_2|
-drop procedure if exists bug9565_sub|
-drop procedure if exists bug9565|
-create procedure bug9565_sub()
-begin
-select * from t1;
-end|
-create procedure bug9565()
-begin
-insert into t1 values ("one", 1);
-call bug9565_sub();
-end|
-call bug9565()|
-id data
-one 1
-delete from t1|
-drop procedure bug9565_sub|
-drop procedure bug9565|
-drop procedure if exists bug9538|
-create procedure bug9538()
-set @@sort_buffer_size = 1000000|
-set @x = @@sort_buffer_size|
-set @@sort_buffer_size = 2000000|
-select @@sort_buffer_size|
-@@sort_buffer_size
-2000000
-call bug9538()|
-select @@sort_buffer_size|
-@@sort_buffer_size
-1000000
-set @@sort_buffer_size = @x|
-drop procedure bug9538|
-drop procedure if exists bug8692|
-create table t3 (c1 varchar(5), c2 char(5), c3 enum('one','two'), c4 text, c5 blob, c6 char(5), c7 varchar(5))|
-insert into t3 values ('', '', '', '', '', '', NULL)|
-Warnings:
-Warning 1265 Data truncated for column 'c3' at row 1
-create procedure bug8692()
-begin
-declare v1 VARCHAR(10);
-declare v2 VARCHAR(10);
-declare v3 VARCHAR(10);
-declare v4 VARCHAR(10);
-declare v5 VARCHAR(10);
-declare v6 VARCHAR(10);
-declare v7 VARCHAR(10);
-declare c8692 cursor for select c1,c2,c3,c4,c5,c6,c7 from t3;
-open c8692;
-fetch c8692 into v1,v2,v3,v4,v5,v6,v7;
-select v1, v2, v3, v4, v5, v6, v7;
-end|
-call bug8692()|
-v1 v2 v3 v4 v5 v6 v7
- NULL
-drop procedure bug8692|
-drop table t3|
-drop function if exists bug10055|
-create function bug10055(v char(255)) returns char(255) return lower(v)|
-select t.column_name, bug10055(t.column_name)
-from information_schema.columns as t
-where t.table_schema = 'test' and t.table_name = 't1'|
-column_name bug10055(t.column_name)
-id id
-data data
-drop function bug10055|
-drop procedure if exists bug12297|
-create procedure bug12297(lim int)
-begin
-set @x = 0;
-repeat
-insert into t1(id,data)
-values('aa', @x);
-set @x = @x + 1;
-until @x >= lim
-end repeat;
-end|
-call bug12297(10)|
-drop procedure bug12297|
-drop function if exists f_bug11247|
-drop procedure if exists p_bug11247|
-create function f_bug11247(param int)
-returns int
-return param + 1|
-create procedure p_bug11247(lim int)
-begin
-declare v int default 0;
-while v < lim do
-set v= f_bug11247(v);
-end while;
-end|
-call p_bug11247(10)|
-drop function f_bug11247|
-drop procedure p_bug11247|
-drop procedure if exists bug12168|
-drop table if exists t3, t4|
-create table t3 (a int)|
-insert into t3 values (1),(2),(3),(4)|
-create table t4 (a int)|
-create procedure bug12168(arg1 char(1))
-begin
-declare b, c integer;
-if arg1 = 'a' then
-begin
-declare c1 cursor for select a from t3 where a % 2;
-declare continue handler for not found set b = 1;
-set b = 0;
-open c1;
-c1_repeat: repeat
-fetch c1 into c;
-if (b = 1) then
-leave c1_repeat;
-end if;
-insert into t4 values (c);
-until b = 1
-end repeat;
-end;
-end if;
-if arg1 = 'b' then
-begin
-declare c2 cursor for select a from t3 where not a % 2;
-declare continue handler for not found set b = 1;
-set b = 0;
-open c2;
-c2_repeat: repeat
-fetch c2 into c;
-if (b = 1) then
-leave c2_repeat;
-end if;
-insert into t4 values (c);
-until b = 1
-end repeat;
-end;
-end if;
-end|
-call bug12168('a')|
-select * from t4|
-a
-1
-3
-truncate t4|
-call bug12168('b')|
-select * from t4|
-a
-2
-4
-truncate t4|
-call bug12168('a')|
-select * from t4|
-a
-1
-3
-truncate t4|
-call bug12168('b')|
-select * from t4|
-a
-2
-4
-truncate t4|
-drop table t3, t4|
-drop procedure if exists bug12168|
-drop table if exists t3|
-drop procedure if exists bug11333|
-create table t3 (c1 char(128))|
-insert into t3 values
-('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')|
-create procedure bug11333(i int)
-begin
-declare tmp varchar(128);
-set @x = 0;
-repeat
-select c1 into tmp from t3
-where c1 = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA';
-set @x = @x + 1;
-until @x >= i
-end repeat;
-end|
-call bug11333(10)|
-drop procedure bug11333|
-drop table t3|
-drop function if exists bug9048|
-create function bug9048(f1 char binary) returns char
-begin
-set f1= concat( 'hello', f1 );
-return f1;
-end|
-drop function bug9048|
-create function bug9048(f1 char binary) returns char binary
-begin
-set f1= concat( 'hello', f1 );
-return f1;
-end|
-select collation(bug9048("foo"))|
-collation(bug9048("foo"))
-latin1_bin
-drop function bug9048|
-drop procedure if exists bug12849_1|
-create procedure bug12849_1(inout x char) select x into x|
-set @var='a'|
-call bug12849_1(@var)|
-select @var|
-@var
-a
-drop procedure bug12849_1|
-drop procedure if exists bug12849_2|
-create procedure bug12849_2(inout foo varchar(15))
-begin
-select concat(foo, foo) INTO foo;
-end|
-set @var='abcd'|
-call bug12849_2(@var)|
-select @var|
-@var
-abcdabcd
-drop procedure bug12849_2|
-drop procedure if exists bug131333|
-drop function if exists bug131333|
-create procedure bug131333()
-begin
-begin
-declare a int;
-select a;
-set a = 1;
-select a;
-end;
-begin
-declare b int;
-select b;
-end;
-end|
-create function bug131333()
-returns int
-begin
-begin
-declare a int;
-set a = 1;
-end;
-begin
-declare b int;
-return b;
-end;
-end|
-call bug131333()|
-a
-NULL
-a
-1
-b
-NULL
-select bug131333()|
-bug131333()
-NULL
-drop procedure bug131333|
-drop function bug131333|
-drop function if exists bug12379|
-drop procedure if exists bug12379_1|
-drop procedure if exists bug12379_2|
-drop procedure if exists bug12379_3|
-drop table if exists t3|
-create table t3 (c1 char(1) primary key not null)|
-create function bug12379()
-returns integer
-begin
-insert into t3 values('X');
-insert into t3 values('X');
-return 0;
-end|
-create procedure bug12379_1()
-begin
-declare exit handler for sqlexception select 42;
-select bug12379();
-END|
-create procedure bug12379_2()
-begin
-declare exit handler for sqlexception begin end;
-select bug12379();
-end|
-create procedure bug12379_3()
-begin
-select bug12379();
-end|
-select bug12379()|
-ERROR 23000: Duplicate entry 'X' for key 'PRIMARY'
-select 1|
-1
-1
-call bug12379_1()|
-bug12379()
-42
-42
-select 2|
-2
-2
-call bug12379_2()|
-bug12379()
-select 3|
-3
-3
-call bug12379_3()|
-ERROR 23000: Duplicate entry 'X' for key 'PRIMARY'
-select 4|
-4
-4
-drop function bug12379|
-drop procedure bug12379_1|
-drop procedure bug12379_2|
-drop procedure bug12379_3|
-drop table t3|
-drop procedure if exists bug13124|
-create procedure bug13124()
-begin
-declare y integer;
-set @x=y;
-end|
-call bug13124()|
-drop procedure bug13124|
-drop procedure if exists bug12979_1|
-create procedure bug12979_1(inout d decimal(5)) set d = d / 2|
-set @bug12979_user_var = NULL|
-call bug12979_1(@bug12979_user_var)|
-drop procedure bug12979_1|
-drop procedure if exists bug12979_2|
-create procedure bug12979_2()
-begin
-declare internal_var decimal(5);
-set internal_var= internal_var / 2;
-select internal_var;
-end|
-call bug12979_2()|
-internal_var
-NULL
-drop procedure bug12979_2|
-drop table if exists t3|
-drop procedure if exists bug6127|
-create table t3 (s1 int unique)|
-set @sm=@@sql_mode|
-set sql_mode='traditional'|
-create procedure bug6127()
-begin
-declare continue handler for sqlstate '23000'
- begin
-declare continue handler for sqlstate '22003'
- insert into t3 values (0);
-insert into t3 values (1000000000000000);
-end;
-insert into t3 values (1);
-insert into t3 values (1);
-end|
-call bug6127()|
-select * from t3|
-s1
-0
-1
-call bug6127()|
-ERROR 23000: Duplicate entry '0' for key 's1'
-select * from t3|
-s1
-0
-1
-set sql_mode=@sm|
-drop table t3|
-drop procedure bug6127|
-drop procedure if exists bug12589_1|
-drop procedure if exists bug12589_2|
-drop procedure if exists bug12589_3|
-create procedure bug12589_1()
-begin
-declare spv1 decimal(3,3);
-set spv1= 123.456;
-set spv1 = 'test';
-create temporary table tm1 as select spv1;
-show create table tm1;
-drop temporary table tm1;
-end|
-create procedure bug12589_2()
-begin
-declare spv1 decimal(6,3);
-set spv1= 123.456;
-create temporary table tm1 as select spv1;
-show create table tm1;
-drop temporary table tm1;
-end|
-create procedure bug12589_3()
-begin
-declare spv1 decimal(6,3);
-set spv1= -123.456;
-create temporary table tm1 as select spv1;
-show create table tm1;
-drop temporary table tm1;
-end|
-call bug12589_1()|
-Table Create Table
-tm1 CREATE TEMPORARY TABLE `tm1` (
- `spv1` decimal(3,3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-call bug12589_2()|
-Table Create Table
-tm1 CREATE TEMPORARY TABLE `tm1` (
- `spv1` decimal(6,3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-call bug12589_3()|
-Table Create Table
-tm1 CREATE TEMPORARY TABLE `tm1` (
- `spv1` decimal(6,3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop procedure bug12589_1|
-drop procedure bug12589_2|
-drop procedure bug12589_3|
-drop table if exists t3|
-drop procedure if exists bug7049_1|
-drop procedure if exists bug7049_2|
-drop procedure if exists bug7049_3|
-drop procedure if exists bug7049_4|
-drop function if exists bug7049_1|
-drop function if exists bug7049_2|
-create table t3 ( x int unique )|
-create procedure bug7049_1()
-begin
-insert into t3 values (42);
-insert into t3 values (42);
-end|
-create procedure bug7049_2()
-begin
-declare exit handler for sqlexception
-select 'Caught it' as 'Result';
-call bug7049_1();
-select 'Missed it' as 'Result';
-end|
-create procedure bug7049_3()
-call bug7049_1()|
-create procedure bug7049_4()
-begin
-declare exit handler for sqlexception
-select 'Caught it' as 'Result';
-call bug7049_3();
-select 'Missed it' as 'Result';
-end|
-create function bug7049_1()
-returns int
-begin
-insert into t3 values (42);
-insert into t3 values (42);
-return 42;
-end|
-create function bug7049_2()
-returns int
-begin
-declare x int default 0;
-declare continue handler for sqlexception
-set x = 1;
-set x = bug7049_1();
-return x;
-end|
-call bug7049_2()|
-Result
-Caught it
-select * from t3|
-x
-42
-delete from t3|
-call bug7049_4()|
-Result
-Caught it
-select * from t3|
-x
-42
-select bug7049_2()|
-bug7049_2()
-1
-drop table t3|
-drop procedure bug7049_1|
-drop procedure bug7049_2|
-drop procedure bug7049_3|
-drop procedure bug7049_4|
-drop function bug7049_1|
-drop function bug7049_2|
-drop function if exists bug13941|
-drop procedure if exists bug13941|
-create function bug13941(p_input_str text)
-returns text
-begin
-declare p_output_str text;
-set p_output_str = p_input_str;
-set p_output_str = replace(p_output_str, 'xyzzy', 'plugh');
-set p_output_str = replace(p_output_str, 'test', 'prova');
-set p_output_str = replace(p_output_str, 'this', 'questo');
-set p_output_str = replace(p_output_str, ' a ', 'una ');
-set p_output_str = replace(p_output_str, 'is', '');
-return p_output_str;
-end|
-create procedure bug13941(out sout varchar(128))
-begin
-set sout = 'Local';
-set sout = ifnull(sout, 'DEF');
-end|
-select bug13941('this is a test')|
-bug13941('this is a test')
-questo una prova
-call bug13941(@a)|
-select @a|
-@a
-Local
-drop function bug13941|
-drop procedure bug13941|
-DROP PROCEDURE IF EXISTS bug13095;
-DROP TABLE IF EXISTS bug13095_t1;
-DROP VIEW IF EXISTS bug13095_v1;
-CREATE PROCEDURE bug13095(tbl_name varchar(32))
-BEGIN
-SET @str =
-CONCAT("CREATE TABLE ", tbl_name, "(stuff char(15))");
-SELECT @str;
-PREPARE stmt FROM @str;
-EXECUTE stmt;
-SET @str =
-CONCAT("INSERT INTO ", tbl_name, " VALUES('row1'),('row2'),('row3')" );
-SELECT @str;
-PREPARE stmt FROM @str;
-EXECUTE stmt;
-SET @str =
-CONCAT("CREATE VIEW bug13095_v1(c1) AS SELECT stuff FROM ", tbl_name);
-SELECT @str;
-PREPARE stmt FROM @str;
-EXECUTE stmt;
-SELECT * FROM bug13095_v1;
-SET @str =
-"DROP VIEW bug13095_v1";
-SELECT @str;
-PREPARE stmt FROM @str;
-EXECUTE stmt;
-END|
-CALL bug13095('bug13095_t1');
-@str
-CREATE TABLE bug13095_t1(stuff char(15))
-@str
-INSERT INTO bug13095_t1 VALUES('row1'),('row2'),('row3')
-@str
-CREATE VIEW bug13095_v1(c1) AS SELECT stuff FROM bug13095_t1
-c1
-row1
-row2
-row3
-@str
-DROP VIEW bug13095_v1
-DROP PROCEDURE IF EXISTS bug13095;
-DROP VIEW IF EXISTS bug13095_v1;
-DROP TABLE IF EXISTS bug13095_t1;
-drop function if exists bug14723|
-drop procedure if exists bug14723|
-/*!50003 create function bug14723()
-returns bigint(20)
-main_loop: begin
-return 42;
-end */;;
-show create function bug14723;;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-bug14723 CREATE DEFINER=`root`@`localhost` FUNCTION `bug14723`() RETURNS bigint(20)
-main_loop: begin
-return 42;
-end latin1 latin1_swedish_ci latin1_swedish_ci
-select bug14723();;
-bug14723()
-42
-/*!50003 create procedure bug14723()
-main_loop: begin
-select 42;
-end */;;
-show create procedure bug14723;;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-bug14723 CREATE DEFINER=`root`@`localhost` PROCEDURE `bug14723`()
-main_loop: begin
-select 42;
-end latin1 latin1_swedish_ci latin1_swedish_ci
-call bug14723();;
-42
-42
-drop function bug14723|
-drop procedure bug14723|
-create procedure bug14845()
-begin
-declare a char(255);
-declare done int default 0;
-declare c cursor for select count(*) from t1 where 1 = 0;
-declare continue handler for sqlstate '02000' set done = 1;
-open c;
-repeat
-fetch c into a;
-if not done then
-select a;
-end if;
-until done end repeat;
-close c;
-end|
-call bug14845()|
-a
-0
-drop procedure bug14845|
-drop procedure if exists bug13549_1|
-drop procedure if exists bug13549_2|
-CREATE PROCEDURE `bug13549_2`()
-begin
-call bug13549_1();
-end|
-CREATE PROCEDURE `bug13549_1`()
-begin
-declare done int default 0;
-set done= not done;
-end|
-CALL bug13549_2()|
-drop procedure bug13549_2|
-drop procedure bug13549_1|
-drop function if exists bug10100f|
-drop procedure if exists bug10100p|
-drop procedure if exists bug10100t|
-drop procedure if exists bug10100pt|
-drop procedure if exists bug10100pv|
-drop procedure if exists bug10100pd|
-drop procedure if exists bug10100pc|
-create function bug10100f(prm int) returns int
-begin
-if prm > 1 then
-return prm * bug10100f(prm - 1);
-end if;
-return 1;
-end|
-create procedure bug10100p(prm int, inout res int)
-begin
-set res = res * prm;
-if prm > 1 then
-call bug10100p(prm - 1, res);
-end if;
-end|
-create procedure bug10100t(prm int)
-begin
-declare res int;
-set res = 1;
-call bug10100p(prm, res);
-select res;
-end|
-create table t3 (a int)|
-insert into t3 values (0)|
-create view v1 as select a from t3|
-create procedure bug10100pt(level int, lim int)
-begin
-if level < lim then
-update t3 set a=level;
-FLUSH TABLES;
-call bug10100pt(level+1, lim);
-else
-select * from t3;
-end if;
-end|
-create procedure bug10100pv(level int, lim int)
-begin
-if level < lim then
-update v1 set a=level;
-FLUSH TABLES;
-call bug10100pv(level+1, lim);
-else
-select * from v1;
-end if;
-end|
-prepare stmt2 from "select * from t3;"|
-create procedure bug10100pd(level int, lim int)
-begin
-if level < lim then
-select level;
-prepare stmt1 from "update t3 set a=a+2";
-execute stmt1;
-FLUSH TABLES;
-execute stmt1;
-FLUSH TABLES;
-execute stmt1;
-FLUSH TABLES;
-deallocate prepare stmt1;
-execute stmt2;
-select * from t3;
-call bug10100pd(level+1, lim);
-else
-execute stmt2;
-end if;
-end|
-create procedure bug10100pc(level int, lim int)
-begin
-declare lv int;
-declare c cursor for select a from t3;
-open c;
-if level < lim then
-select level;
-fetch c into lv;
-select lv;
-update t3 set a=level+lv;
-FLUSH TABLES;
-call bug10100pc(level+1, lim);
-else
-select * from t3;
-end if;
-close c;
-end|
-set @@max_sp_recursion_depth=4|
-select @@max_sp_recursion_depth|
-@@max_sp_recursion_depth
-4
-select bug10100f(3)|
-ERROR HY000: Recursive stored functions and triggers are not allowed
-select bug10100f(6)|
-ERROR HY000: Recursive stored functions and triggers are not allowed
-call bug10100t(5)|
-res
-120
-call bug10100pt(1,5)|
-a
-4
-call bug10100pv(1,5)|
-a
-4
-update t3 set a=1|
-call bug10100pd(1,5)|
-level
-1
-a
-7
-a
-7
-level
-2
-a
-13
-a
-13
-level
-3
-a
-19
-a
-19
-level
-4
-a
-25
-a
-25
-a
-25
-select * from t3|
-a
-25
-update t3 set a=1|
-call bug10100pc(1,5)|
-level
-1
-lv
-1
-level
-2
-lv
-2
-level
-3
-lv
-4
-level
-4
-lv
-7
-a
-11
-select * from t3|
-a
-11
-set @@max_sp_recursion_depth=0|
-select @@max_sp_recursion_depth|
-@@max_sp_recursion_depth
-0
-select bug10100f(5)|
-ERROR HY000: Recursive stored functions and triggers are not allowed
-call bug10100t(5)|
-ERROR HY000: Recursive limit 0 (as set by the max_sp_recursion_depth variable) was exceeded for routine bug10100p
-deallocate prepare stmt2|
-drop function bug10100f|
-drop procedure bug10100p|
-drop procedure bug10100t|
-drop procedure bug10100pt|
-drop procedure bug10100pv|
-drop procedure bug10100pd|
-drop procedure bug10100pc|
-drop view v1|
-drop procedure if exists bug13729|
-drop table if exists t3|
-create table t3 (s1 int, primary key (s1))|
-insert into t3 values (1),(2)|
-create procedure bug13729()
-begin
-declare continue handler for sqlexception select 55;
-update t3 set s1 = 1;
-end|
-call bug13729()|
-55
-55
-select * from t3|
-s1
-1
-2
-drop procedure bug13729|
-drop table t3|
-drop procedure if exists bug14643_1|
-drop procedure if exists bug14643_2|
-create procedure bug14643_1()
-begin
-declare continue handler for sqlexception select 'boo' as 'Handler';
-begin
-declare v int default undefined_var;
-if v = 1 then
-select 1;
-else
-select v, isnull(v);
-end if;
-end;
-end|
-create procedure bug14643_2()
-begin
-declare continue handler for sqlexception select 'boo' as 'Handler';
-case undefined_var
-when 1 then
-select 1;
-else
-select 2;
-end case;
-select undefined_var;
-end|
-call bug14643_1()|
-Handler
-boo
-v isnull(v)
-NULL 1
-call bug14643_2()|
-Handler
-boo
-Handler
-boo
-drop procedure bug14643_1|
-drop procedure bug14643_2|
-drop procedure if exists bug14304|
-drop table if exists t3, t4|
-create table t3(a int primary key auto_increment)|
-create table t4(a int primary key auto_increment)|
-create procedure bug14304()
-begin
-insert into t3 set a=null;
-insert into t4 set a=null;
-insert into t4 set a=null;
-insert into t4 set a=null;
-insert into t4 set a=null;
-insert into t4 set a=null;
-insert into t4 select null as a;
-insert into t3 set a=null;
-insert into t3 set a=null;
-select * from t3;
-end|
-call bug14304()|
-a
-1
-2
-3
-drop procedure bug14304|
-drop table t3, t4|
-drop procedure if exists bug14376|
-create procedure bug14376()
-begin
-declare x int default x;
-end|
-call bug14376()|
-ERROR 42S22: Unknown column 'x' in 'field list'
-drop procedure bug14376|
-create procedure bug14376()
-begin
-declare x int default 42;
-begin
-declare x int default x;
-select x;
-end;
-end|
-call bug14376()|
-x
-42
-drop procedure bug14376|
-create procedure bug14376(x int)
-begin
-declare x int default x;
-select x;
-end|
-call bug14376(4711)|
-x
-4711
-drop procedure bug14376|
-drop procedure if exists bug5967|
-drop table if exists t3|
-create table t3 (a varchar(255))|
-insert into t3 (a) values ("a - table column")|
-create procedure bug5967(a varchar(255))
-begin
-declare i varchar(255);
-declare c cursor for select a from t3;
-select a;
-select a from t3 into i;
-select i as 'Parameter takes precedence over table column'; open c;
-fetch c into i;
-close c;
-select i as 'Parameter takes precedence over table column in cursors';
-begin
-declare a varchar(255) default 'a - local variable';
-declare c1 cursor for select a from t3;
-select a as 'A local variable takes precedence over parameter';
-open c1;
-fetch c1 into i;
-close c1;
-select i as 'A local variable takes precedence over parameter in cursors';
-begin
-declare a varchar(255) default 'a - local variable in a nested compound statement';
-declare c2 cursor for select a from t3;
-select a as 'A local variable in a nested compound statement takes precedence over a local variable in the outer statement';
-select a from t3 into i;
-select i as 'A local variable in a nested compound statement takes precedence over table column';
-open c2;
-fetch c2 into i;
-close c2;
-select i as 'A local variable in a nested compound statement takes precedence over table column in cursors';
-end;
-end;
-end|
-call bug5967("a - stored procedure parameter")|
-a
-a - stored procedure parameter
-Parameter takes precedence over table column
-a - stored procedure parameter
-Parameter takes precedence over table column in cursors
-a - stored procedure parameter
-A local variable takes precedence over parameter
-a - local variable
-A local variable takes precedence over parameter in cursors
-a - local variable
-A local variable in a nested compound statement takes precedence over a local variable in the outer statement
-a - local variable in a nested compound statement
-A local variable in a nested compound statement takes precedence over table column
-a - local variable in a nested compound statement
-A local variable in a nested compound statement takes precedence over table column in cursors
-a - local variable in a nested compound statement
-drop procedure bug5967|
-drop procedure if exists bug13012|
-create procedure bug13012()
-BEGIN
-REPAIR TABLE t1;
-END|
-call bug13012()|
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-drop procedure bug13012|
-create view v1 as select * from t1|
-create procedure bug13012()
-BEGIN
-REPAIR TABLE t1,t2,t3,v1;
-OPTIMIZE TABLE t1,t2,t3,v1;
-ANALYZE TABLE t1,t2,t3,v1;
-END|
-call bug13012()|
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-test.t2 repair status OK
-test.t3 repair status OK
-test.v1 repair Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 repair status Operation failed
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-test.t2 optimize status OK
-test.t3 optimize status OK
-test.v1 optimize Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 optimize status Operation failed
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-test.t2 analyze status Table is already up to date
-test.t3 analyze status Table is already up to date
-test.v1 analyze Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 analyze status Operation failed
-call bug13012()|
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-test.t2 repair status OK
-test.t3 repair status OK
-test.v1 repair Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 repair status Operation failed
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-test.t2 optimize status OK
-test.t3 optimize status OK
-test.v1 optimize Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 optimize status Operation failed
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-test.t2 analyze status Table is already up to date
-test.t3 analyze status Table is already up to date
-test.v1 analyze Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 analyze status Operation failed
-call bug13012()|
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-test.t2 repair status OK
-test.t3 repair status OK
-test.v1 repair Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 repair status Operation failed
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-test.t2 optimize status OK
-test.t3 optimize status OK
-test.v1 optimize Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 optimize status Operation failed
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-test.t2 analyze status Table is already up to date
-test.t3 analyze status Table is already up to date
-test.v1 analyze Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 analyze status Operation failed
-drop procedure bug13012|
-drop view v1|
-select * from t1 order by data|
-id data
-aa 0
-aa 1
-aa 2
-aa 3
-aa 4
-aa 5
-aa 6
-aa 7
-aa 8
-aa 9
-drop schema if exists mysqltest1|
-Warnings:
-Note 1008 Can't drop database 'mysqltest1'; database doesn't exist
-drop schema if exists mysqltest2|
-Warnings:
-Note 1008 Can't drop database 'mysqltest2'; database doesn't exist
-drop schema if exists mysqltest3|
-Warnings:
-Note 1008 Can't drop database 'mysqltest3'; database doesn't exist
-create schema mysqltest1|
-create schema mysqltest2|
-create schema mysqltest3|
-use mysqltest3|
-create procedure mysqltest1.p1 (out prequestid varchar(100))
-begin
-call mysqltest2.p2('call mysqltest3.p3(1, 2)');
-end|
-create procedure mysqltest2.p2(in psql text)
-begin
-declare lsql text;
-set @lsql= psql;
-prepare lstatement from @lsql;
-execute lstatement;
-deallocate prepare lstatement;
-end|
-create procedure mysqltest3.p3(in p1 int)
-begin
-select p1;
-end|
-call mysqltest1.p1(@rs)|
-ERROR 42000: Incorrect number of arguments for PROCEDURE mysqltest3.p3; expected 1, got 2
-call mysqltest1.p1(@rs)|
-ERROR 42000: Incorrect number of arguments for PROCEDURE mysqltest3.p3; expected 1, got 2
-call mysqltest1.p1(@rs)|
-ERROR 42000: Incorrect number of arguments for PROCEDURE mysqltest3.p3; expected 1, got 2
-drop schema if exists mysqltest1|
-drop schema if exists mysqltest2|
-drop schema if exists mysqltest3|
-use test|
-drop table if exists t3|
-drop procedure if exists bug15441|
-create table t3 (id int not null primary key, county varchar(25))|
-insert into t3 (id, county) values (1, 'York')|
-create procedure bug15441(c varchar(25))
-begin
-update t3 set id=2, county=value(c);
-end|
-call bug15441('county')|
-ERROR 42S22: Unknown column 'c' in 'field list'
-drop procedure bug15441|
-create procedure bug15441(county varchar(25))
-begin
-declare c varchar(25) default "hello";
-insert into t3 (id, county) values (1, county)
-on duplicate key update county= values(county);
-select * from t3;
-update t3 set id=2, county=value(id);
-select * from t3;
-end|
-call bug15441('Yale')|
-id county
-1 Yale
-id county
-2 NULL
-drop table t3|
-drop procedure bug15441|
-drop procedure if exists bug14498_1|
-drop procedure if exists bug14498_2|
-drop procedure if exists bug14498_3|
-drop procedure if exists bug14498_4|
-drop procedure if exists bug14498_5|
-create procedure bug14498_1()
-begin
-declare continue handler for sqlexception select 'error' as 'Handler';
-if v then
-select 'yes' as 'v';
-else
-select 'no' as 'v';
-end if;
-select 'done' as 'End';
-end|
-create procedure bug14498_2()
-begin
-declare continue handler for sqlexception select 'error' as 'Handler';
-while v do
-select 'yes' as 'v';
-end while;
-select 'done' as 'End';
-end|
-create procedure bug14498_3()
-begin
-declare continue handler for sqlexception select 'error' as 'Handler';
-repeat
-select 'maybe' as 'v';
-until v end repeat;
-select 'done' as 'End';
-end|
-create procedure bug14498_4()
-begin
-declare continue handler for sqlexception select 'error' as 'Handler';
-case v
-when 1 then
-select '1' as 'v';
-when 2 then
-select '2' as 'v';
-else
-select '?' as 'v';
-end case;
-select 'done' as 'End';
-end|
-create procedure bug14498_5()
-begin
-declare continue handler for sqlexception select 'error' as 'Handler';
-case
-when v = 1 then
-select '1' as 'v';
-when v = 2 then
-select '2' as 'v';
-else
-select '?' as 'v';
-end case;
-select 'done' as 'End';
-end|
-call bug14498_1()|
-Handler
-error
-End
-done
-call bug14498_2()|
-Handler
-error
-End
-done
-call bug14498_3()|
-v
-maybe
-Handler
-error
-End
-done
-call bug14498_4()|
-Handler
-error
-End
-done
-call bug14498_5()|
-Handler
-error
-End
-done
-drop procedure bug14498_1|
-drop procedure bug14498_2|
-drop procedure bug14498_3|
-drop procedure bug14498_4|
-drop procedure bug14498_5|
-drop table if exists t3|
-drop procedure if exists bug15231_1|
-drop procedure if exists bug15231_2|
-drop procedure if exists bug15231_3|
-drop procedure if exists bug15231_4|
-drop procedure if exists bug15231_5|
-drop procedure if exists bug15231_6|
-create table t3 (id int not null)|
-create procedure bug15231_1()
-begin
-declare xid integer;
-declare xdone integer default 0;
-declare continue handler for not found set xdone = 1;
-set xid=null;
-call bug15231_2(xid);
-select xid, xdone;
-end|
-create procedure bug15231_2(inout ioid integer)
-begin
-select "Before NOT FOUND condition is triggered" as '1';
-select id into ioid from t3 where id=ioid;
-select "After NOT FOUND condtition is triggered" as '2';
-if ioid is null then
-set ioid=1;
-end if;
-end|
-create procedure bug15231_3()
-begin
-declare exit handler for sqlwarning
-select 'Caught it (correct)' as 'Result';
-call bug15231_4();
-end|
-create procedure bug15231_4()
-begin
-declare x decimal(2,1);
-set x = 'zap';
-select 'Missed it (correct)' as 'Result';
-show warnings;
-end|
-create procedure bug15231_5()
-begin
-declare exit handler for sqlwarning
-select 'Caught it (wrong)' as 'Result';
-call bug15231_6();
-end|
-create procedure bug15231_6()
-begin
-declare x decimal(2,1);
-set x = 'zap';
-select 'Missed it (correct)' as 'Result';
-select id from t3;
-end|
-call bug15231_1()|
-1
-Before NOT FOUND condition is triggered
-2
-After NOT FOUND condtition is triggered
-xid xdone
-1 1
-call bug15231_3()|
-Result
-Missed it (correct)
-Level Code Message
-Warning 1366 Incorrect decimal value: 'zap' for column 'x' at row 1
-Result
-Caught it (correct)
-call bug15231_5()|
-Result
-Missed it (correct)
-id
-drop table t3|
-drop procedure bug15231_1|
-drop procedure bug15231_2|
-drop procedure bug15231_3|
-drop procedure bug15231_4|
-drop procedure bug15231_5|
-drop procedure bug15231_6|
-drop procedure if exists bug15011|
-create table t3 (c1 int primary key)|
-insert into t3 values (1)|
-create procedure bug15011()
-deterministic
-begin
-declare continue handler for 1062
-select 'Outer' as 'Handler';
-begin
-declare continue handler for 1062
-select 'Inner' as 'Handler';
-insert into t3 values (1);
-end;
-end|
-call bug15011()|
-Handler
-Inner
-drop procedure bug15011|
-drop table t3|
-drop procedure if exists bug17476|
-create table t3 ( d date )|
-insert into t3 values
-( '2005-01-01' ), ( '2005-01-02' ), ( '2005-01-03' ),
-( '2005-01-04' ), ( '2005-02-01' ), ( '2005-02-02' )|
-create procedure bug17476(pDateFormat varchar(10))
-select date_format(t3.d, pDateFormat), count(*)
-from t3
-group by date_format(t3.d, pDateFormat)|
-call bug17476('%Y-%m')|
-date_format(t3.d, pDateFormat) count(*)
-2005-01 4
-2005-02 2
-call bug17476('%Y-%m')|
-date_format(t3.d, pDateFormat) count(*)
-2005-01 4
-2005-02 2
-drop table t3|
-drop procedure bug17476|
-drop table if exists t3|
-drop procedure if exists bug16887|
-create table t3 ( c varchar(1) )|
-insert into t3 values
-(' '),('.'),(';'),(','),('-'),('_'),('('),(')'),('/'),('\\')|
-create procedure bug16887()
-begin
-declare i int default 10;
-again:
-while i > 0 do
-begin
-declare breakchar varchar(1);
-declare done int default 0;
-declare t3_cursor cursor for select c from t3;
-declare continue handler for not found set done = 1;
-set i = i - 1;
-select i;
-if i = 3 then
-iterate again;
-end if;
-open t3_cursor;
-loop
-fetch t3_cursor into breakchar;
-if done = 1 then
-begin
-close t3_cursor;
-iterate again;
-end;
-end if;
-end loop;
-end;
-end while;
-end|
-call bug16887()|
-i
-9
-i
-8
-i
-7
-i
-6
-i
-5
-i
-4
-i
-3
-i
-2
-i
-1
-i
-0
-drop table t3|
-drop procedure bug16887|
-drop procedure if exists bug16474_1|
-drop procedure if exists bug16474_2|
-delete from t1|
-insert into t1 values ('c', 2), ('b', 3), ('a', 1)|
-create procedure bug16474_1()
-begin
-declare x int;
-select id from t1 order by x, id;
-end|
-drop procedure if exists bug14945|
-create table t3 (id int not null auto_increment primary key)|
-create procedure bug14945() deterministic truncate t3|
-insert into t3 values (null)|
-call bug14945()|
-insert into t3 values (null)|
-select * from t3|
-id
-1
-drop table t3|
-drop procedure bug14945|
-create procedure bug16474_2(x int)
-select id from t1 order by x, id|
-call bug16474_1()|
-id
-a
-b
-c
-call bug16474_2(1)|
-id
-a
-b
-c
-call bug16474_2(2)|
-id
-a
-b
-c
-drop procedure bug16474_1|
-drop procedure bug16474_2|
-set @x = 2|
-select * from t1 order by @x, data|
-id data
-a 1
-c 2
-b 3
-delete from t1|
-drop function if exists bug15728|
-drop table if exists t3|
-create table t3 (
-id int not null auto_increment,
-primary key (id)
-)|
-create function bug15728() returns int(11)
-return last_insert_id()|
-insert into t3 values (0)|
-select last_insert_id()|
-last_insert_id()
-1
-select bug15728()|
-bug15728()
-1
-drop function bug15728|
-drop table t3|
-drop procedure if exists bug18787|
-create procedure bug18787()
-begin
-declare continue handler for sqlexception begin end;
-select no_such_function();
-end|
-call bug18787()|
-drop procedure bug18787|
-create database bug18344_012345678901|
-use bug18344_012345678901|
-create procedure bug18344() begin end|
-create procedure bug18344_2() begin end|
-create database bug18344_0123456789012|
-use bug18344_0123456789012|
-create procedure bug18344() begin end|
-create procedure bug18344_2() begin end|
-use test|
-select schema_name from information_schema.schemata where
-schema_name like 'bug18344%'|
-schema_name
-bug18344_012345678901
-bug18344_0123456789012
-select routine_name,routine_schema from information_schema.routines where
-routine_schema like 'bug18344%'|
-routine_name routine_schema
-bug18344 bug18344_012345678901
-bug18344 bug18344_0123456789012
-bug18344_2 bug18344_012345678901
-bug18344_2 bug18344_0123456789012
-drop database bug18344_012345678901|
-drop database bug18344_0123456789012|
-select schema_name from information_schema.schemata where
-schema_name like 'bug18344%'|
-schema_name
-select routine_name,routine_schema from information_schema.routines where
-routine_schema like 'bug18344%'|
-routine_name routine_schema
-drop function if exists bug12472|
-create function bug12472() returns int return (select count(*) from t1)|
-create table t3 as select bug12472() as i|
-show create table t3|
-Table Create Table
-t3 CREATE TABLE `t3` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t3|
-i
-0
-drop table t3|
-create view v1 as select bug12472() as j|
-create table t3 as select * from v1|
-show create table t3|
-Table Create Table
-t3 CREATE TABLE `t3` (
- `j` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t3|
-j
-0
-drop table t3|
-drop view v1|
-drop function bug12472|
-DROP FUNCTION IF EXISTS bug18589_f1|
-DROP PROCEDURE IF EXISTS bug18589_p1|
-DROP PROCEDURE IF EXISTS bug18589_p2|
-CREATE FUNCTION bug18589_f1(arg TEXT) RETURNS TEXT
-BEGIN
-RETURN CONCAT(arg, "");
-END|
-CREATE PROCEDURE bug18589_p1(arg TEXT, OUT ret TEXT)
-BEGIN
-SET ret = CONCAT(arg, "");
-END|
-CREATE PROCEDURE bug18589_p2(arg TEXT)
-BEGIN
-DECLARE v TEXT;
-CALL bug18589_p1(arg, v);
-SELECT v;
-END|
-SELECT bug18589_f1(REPEAT("a", 767))|
-bug18589_f1(REPEAT("a", 767))
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-SET @bug18589_v1 = ""|
-CALL bug18589_p1(REPEAT("a", 767), @bug18589_v1)|
-SELECT @bug18589_v1|
-@bug18589_v1
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-CALL bug18589_p2(REPEAT("a", 767))|
-v
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-DROP FUNCTION bug18589_f1|
-DROP PROCEDURE bug18589_p1|
-DROP PROCEDURE bug18589_p2|
-DROP FUNCTION IF EXISTS bug18037_f1|
-DROP PROCEDURE IF EXISTS bug18037_p1|
-DROP PROCEDURE IF EXISTS bug18037_p2|
-CREATE FUNCTION bug18037_f1() RETURNS INT
-BEGIN
-RETURN @@server_id;
-END|
-CREATE PROCEDURE bug18037_p1()
-BEGIN
-DECLARE v INT DEFAULT @@server_id;
-END|
-CREATE PROCEDURE bug18037_p2()
-BEGIN
-CASE @@server_id
-WHEN -1 THEN
-SELECT 0;
-ELSE
-SELECT 1;
-END CASE;
-END|
-SELECT bug18037_f1()|
-bug18037_f1()
-1
-CALL bug18037_p1()|
-CALL bug18037_p2()|
-1
-1
-DROP FUNCTION bug18037_f1|
-DROP PROCEDURE bug18037_p1|
-DROP PROCEDURE bug18037_p2|
-use test|
-create table t3 (i int)|
-insert into t3 values (1), (2)|
-create database mysqltest1|
-use mysqltest1|
-create function bug17199() returns varchar(2) deterministic return 'ok'|
-use test|
-select *, mysqltest1.bug17199() from t3|
-i mysqltest1.bug17199()
-1 ok
-2 ok
-use mysqltest1|
-create function bug18444(i int) returns int no sql deterministic return i + 1|
-use test|
-select mysqltest1.bug18444(i) from t3|
-mysqltest1.bug18444(i)
-2
-3
-drop database mysqltest1|
-create database mysqltest1 charset=utf8|
-create database mysqltest2 charset=utf8|
-create procedure mysqltest1.p1()
-begin
--- alters the default collation of database test
-alter database character set koi8r;
-end|
-use mysqltest1|
-call p1()|
-show create database mysqltest1|
-Database Create Database
-mysqltest1 CREATE DATABASE `mysqltest1` /*!40100 DEFAULT CHARACTER SET koi8r */
-show create database mysqltest2|
-Database Create Database
-mysqltest2 CREATE DATABASE `mysqltest2` /*!40100 DEFAULT CHARACTER SET utf8 */
-alter database mysqltest1 character set utf8|
-use mysqltest2|
-call mysqltest1.p1()|
-show create database mysqltest1|
-Database Create Database
-mysqltest1 CREATE DATABASE `mysqltest1` /*!40100 DEFAULT CHARACTER SET koi8r */
-show create database mysqltest2|
-Database Create Database
-mysqltest2 CREATE DATABASE `mysqltest2` /*!40100 DEFAULT CHARACTER SET utf8 */
-drop database mysqltest1|
-drop database mysqltest2|
-use test|
-drop table if exists t3|
-drop procedure if exists bug15217|
-create table t3 as select 1|
-create procedure bug15217()
-begin
-declare var1 char(255);
-declare cur1 cursor for select * from t3;
-open cur1;
-fetch cur1 into var1;
-select concat('data was: /', var1, '/');
-close cur1;
-end |
-call bug15217()|
-concat('data was: /', var1, '/')
-data was: /1/
-flush tables |
-call bug15217()|
-concat('data was: /', var1, '/')
-data was: /1/
-drop table t3|
-drop procedure bug15217|
-DROP PROCEDURE IF EXISTS bug21013 |
-CREATE PROCEDURE bug21013(IN lim INT)
-BEGIN
-DECLARE i INT DEFAULT 0;
-WHILE (i < lim) DO
-SET @b = LOCATE(_latin1'b', @a, 1);
-SET i = i + 1;
-END WHILE;
-END |
-SET @a = _latin2"aaaaaaaaaa" |
-CALL bug21013(10) |
-DROP PROCEDURE bug21013 |
-DROP DATABASE IF EXISTS mysqltest1|
-DROP DATABASE IF EXISTS mysqltest2|
-CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8|
-CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8|
-use mysqltest1|
-CREATE FUNCTION bug16211_f1() RETURNS CHAR(10)
-RETURN ""|
-CREATE FUNCTION bug16211_f2() RETURNS CHAR(10) CHARSET koi8r
-RETURN ""|
-CREATE FUNCTION mysqltest2.bug16211_f3() RETURNS CHAR(10)
-RETURN ""|
-CREATE FUNCTION mysqltest2.bug16211_f4() RETURNS CHAR(10) CHARSET koi8r
-RETURN ""|
-SHOW CREATE FUNCTION bug16211_f1|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-bug16211_f1 CREATE DEFINER=`root`@`localhost` FUNCTION `bug16211_f1`() RETURNS char(10) CHARSET utf8
-RETURN "" latin1 latin1_swedish_ci utf8_general_ci
-SHOW CREATE FUNCTION bug16211_f2|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-bug16211_f2 CREATE DEFINER=`root`@`localhost` FUNCTION `bug16211_f2`() RETURNS char(10) CHARSET koi8r
-RETURN "" latin1 latin1_swedish_ci utf8_general_ci
-SHOW CREATE FUNCTION mysqltest2.bug16211_f3|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-bug16211_f3 CREATE DEFINER=`root`@`localhost` FUNCTION `bug16211_f3`() RETURNS char(10) CHARSET utf8
-RETURN "" latin1 latin1_swedish_ci utf8_general_ci
-SHOW CREATE FUNCTION mysqltest2.bug16211_f4|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-bug16211_f4 CREATE DEFINER=`root`@`localhost` FUNCTION `bug16211_f4`() RETURNS char(10) CHARSET koi8r
-RETURN "" latin1 latin1_swedish_ci utf8_general_ci
-SELECT dtd_identifier
-FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = "mysqltest1" AND ROUTINE_NAME = "bug16211_f1"|
-dtd_identifier
-char(10)
-SELECT dtd_identifier
-FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = "mysqltest1" AND ROUTINE_NAME = "bug16211_f2"|
-dtd_identifier
-char(10)
-SELECT dtd_identifier
-FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f3"|
-dtd_identifier
-char(10)
-SELECT dtd_identifier
-FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f4"|
-dtd_identifier
-char(10)
-SELECT CHARSET(bug16211_f1())|
-CHARSET(bug16211_f1())
-utf8
-SELECT CHARSET(bug16211_f2())|
-CHARSET(bug16211_f2())
-koi8r
-SELECT CHARSET(mysqltest2.bug16211_f3())|
-CHARSET(mysqltest2.bug16211_f3())
-utf8
-SELECT CHARSET(mysqltest2.bug16211_f4())|
-CHARSET(mysqltest2.bug16211_f4())
-koi8r
-ALTER DATABASE mysqltest1 CHARACTER SET cp1251|
-ALTER DATABASE mysqltest2 CHARACTER SET cp1251|
-SHOW CREATE FUNCTION bug16211_f1|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-bug16211_f1 CREATE DEFINER=`root`@`localhost` FUNCTION `bug16211_f1`() RETURNS char(10) CHARSET utf8
-RETURN "" latin1 latin1_swedish_ci utf8_general_ci
-SHOW CREATE FUNCTION bug16211_f2|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-bug16211_f2 CREATE DEFINER=`root`@`localhost` FUNCTION `bug16211_f2`() RETURNS char(10) CHARSET koi8r
-RETURN "" latin1 latin1_swedish_ci utf8_general_ci
-SHOW CREATE FUNCTION mysqltest2.bug16211_f3|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-bug16211_f3 CREATE DEFINER=`root`@`localhost` FUNCTION `bug16211_f3`() RETURNS char(10) CHARSET utf8
-RETURN "" latin1 latin1_swedish_ci utf8_general_ci
-SHOW CREATE FUNCTION mysqltest2.bug16211_f4|
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-bug16211_f4 CREATE DEFINER=`root`@`localhost` FUNCTION `bug16211_f4`() RETURNS char(10) CHARSET koi8r
-RETURN "" latin1 latin1_swedish_ci utf8_general_ci
-SELECT dtd_identifier
-FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = "mysqltest1" AND ROUTINE_NAME = "bug16211_f1"|
-dtd_identifier
-char(10)
-SELECT dtd_identifier
-FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = "mysqltest1" AND ROUTINE_NAME = "bug16211_f2"|
-dtd_identifier
-char(10)
-SELECT dtd_identifier
-FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f3"|
-dtd_identifier
-char(10)
-SELECT dtd_identifier
-FROM INFORMATION_SCHEMA.ROUTINES
-WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f4"|
-dtd_identifier
-char(10)
-SELECT CHARSET(bug16211_f1())|
-CHARSET(bug16211_f1())
-utf8
-SELECT CHARSET(bug16211_f2())|
-CHARSET(bug16211_f2())
-koi8r
-SELECT CHARSET(mysqltest2.bug16211_f3())|
-CHARSET(mysqltest2.bug16211_f3())
-utf8
-SELECT CHARSET(mysqltest2.bug16211_f4())|
-CHARSET(mysqltest2.bug16211_f4())
-koi8r
-use test|
-DROP DATABASE mysqltest1|
-DROP DATABASE mysqltest2|
-DROP DATABASE IF EXISTS mysqltest1|
-CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8|
-use mysqltest1|
-CREATE PROCEDURE bug16676_p1(
-IN p1 CHAR(10),
-INOUT p2 CHAR(10),
-OUT p3 CHAR(10))
-BEGIN
-SELECT CHARSET(p1), COLLATION(p1);
-SELECT CHARSET(p2), COLLATION(p2);
-SELECT CHARSET(p3), COLLATION(p3);
-END|
-CREATE PROCEDURE bug16676_p2(
-IN p1 CHAR(10) CHARSET koi8r,
-INOUT p2 CHAR(10) CHARSET cp1251,
-OUT p3 CHAR(10) CHARSET greek)
-BEGIN
-SELECT CHARSET(p1), COLLATION(p1);
-SELECT CHARSET(p2), COLLATION(p2);
-SELECT CHARSET(p3), COLLATION(p3);
-END|
-SET @v2 = 'b'|
-SET @v3 = 'c'|
-CALL bug16676_p1('a', @v2, @v3)|
-CHARSET(p1) COLLATION(p1)
-utf8 utf8_general_ci
-CHARSET(p2) COLLATION(p2)
-utf8 utf8_general_ci
-CHARSET(p3) COLLATION(p3)
-utf8 utf8_general_ci
-CALL bug16676_p2('a', @v2, @v3)|
-CHARSET(p1) COLLATION(p1)
-koi8r koi8r_general_ci
-CHARSET(p2) COLLATION(p2)
-cp1251 cp1251_general_ci
-CHARSET(p3) COLLATION(p3)
-greek greek_general_ci
-use test|
-DROP DATABASE mysqltest1|
-drop table if exists t3|
-drop table if exists t4|
-drop procedure if exists bug8153_subselect|
-drop procedure if exists bug8153_subselect_a|
-drop procedure if exists bug8153_subselect_b|
-drop procedure if exists bug8153_proc_a|
-drop procedure if exists bug8153_proc_b|
-create table t3 (a int)|
-create table t4 (a int)|
-insert into t3 values (1), (1), (2), (3)|
-insert into t4 values (1), (1)|
-create procedure bug8153_subselect()
-begin
-declare continue handler for sqlexception
-begin
-select 'statement failed';
-end;
-update t3 set a=a+1 where (select a from t4 where a=1) is null;
-select 'statement after update';
-end|
-call bug8153_subselect()|
-statement failed
-statement failed
-statement after update
-statement after update
-select * from t3|
-a
-1
-1
-2
-3
-call bug8153_subselect()|
-statement failed
-statement failed
-statement after update
-statement after update
-select * from t3|
-a
-1
-1
-2
-3
-drop procedure bug8153_subselect|
-create procedure bug8153_subselect_a()
-begin
-declare continue handler for sqlexception
-begin
-select 'in continue handler';
-end;
-select 'reachable code a1';
-call bug8153_subselect_b();
-select 'reachable code a2';
-end|
-create procedure bug8153_subselect_b()
-begin
-select 'reachable code b1';
-update t3 set a=a+1 where (select a from t4 where a=1) is null;
-select 'unreachable code b2';
-end|
-call bug8153_subselect_a()|
-reachable code a1
-reachable code a1
-reachable code b1
-reachable code b1
-in continue handler
-in continue handler
-reachable code a2
-reachable code a2
-select * from t3|
-a
-1
-1
-2
-3
-call bug8153_subselect_a()|
-reachable code a1
-reachable code a1
-reachable code b1
-reachable code b1
-in continue handler
-in continue handler
-reachable code a2
-reachable code a2
-select * from t3|
-a
-1
-1
-2
-3
-drop procedure bug8153_subselect_a|
-drop procedure bug8153_subselect_b|
-create procedure bug8153_proc_a()
-begin
-declare continue handler for sqlexception
-begin
-select 'in continue handler';
-end;
-select 'reachable code a1';
-call bug8153_proc_b();
-select 'reachable code a2';
-end|
-create procedure bug8153_proc_b()
-begin
-select 'reachable code b1';
-select no_such_function();
-select 'unreachable code b2';
-end|
-call bug8153_proc_a()|
-reachable code a1
-reachable code a1
-reachable code b1
-reachable code b1
-in continue handler
-in continue handler
-reachable code a2
-reachable code a2
-drop procedure bug8153_proc_a|
-drop procedure bug8153_proc_b|
-drop table t3|
-drop table t4|
-drop procedure if exists bug19862|
-CREATE TABLE t11 (a INT)|
-CREATE TABLE t12 (a INT)|
-CREATE FUNCTION bug19862(x INT) RETURNS INT
-BEGIN
-INSERT INTO t11 VALUES (x);
-RETURN x+1;
-END|
-INSERT INTO t12 VALUES (1), (2)|
-SELECT bug19862(a) FROM t12 ORDER BY 1|
-bug19862(a)
-2
-3
-SELECT * FROM t11|
-a
-1
-2
-DROP TABLE t11, t12|
-DROP FUNCTION bug19862|
-drop table if exists t3|
-drop database if exists mysqltest1|
-create table t3 (a int)|
-insert into t3 (a) values (1), (2)|
-create database mysqltest1|
-use mysqltest1|
-drop database mysqltest1|
-select database()|
-database()
-NULL
-select * from (select 1 as a) as t1 natural join (select * from test.t3) as t2|
-a
-1
-use test|
-drop table t3|
-DROP PROCEDURE IF EXISTS bug16899_p1|
-DROP FUNCTION IF EXISTS bug16899_f1|
-CREATE DEFINER=longer_than_80_456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789@localhost PROCEDURE bug16899_p1()
-BEGIN
-SET @a = 1;
-END|
-ERROR HY000: String 'longer_than_80_4567890123456789012345678901234567890123456789012345678' is too long for user name (should be no longer than 80)
-CREATE DEFINER=some_user_name@1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY
-FUNCTION bug16899_f1() RETURNS INT
-BEGIN
-RETURN 1;
-END|
-ERROR HY000: String '1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY' is too long for host name (should be no longer than 60)
-drop procedure if exists bug21416|
-create procedure bug21416() show create procedure bug21416|
-call bug21416()|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-bug21416 CREATE DEFINER=`root`@`localhost` PROCEDURE `bug21416`()
-show create procedure bug21416 latin1 latin1_swedish_ci latin1_swedish_ci
-drop procedure bug21416|
-DROP PROCEDURE IF EXISTS bug21414|
-CREATE PROCEDURE bug21414() SELECT 1|
-FLUSH TABLES WITH READ LOCK|
-DROP PROCEDURE bug21414|
-ERROR HY000: Can't execute the query because you have a conflicting read lock
-UNLOCK TABLES|
-The following should succeed.
-DROP PROCEDURE bug21414|
-set names utf8|
-drop database if exists това_е_дълго_име_за_база_данни_нали|
-create database това_е_дълго_име_за_база_данни_нали|
-INSERT INTO mysql.proc VALUES ('това_е_дълго_име_за_база_данни_нали','това_е_процедура_Ñ_доÑта_дълго_име_нали_и_още_по_дълго','PROCEDURE','това_е_процедура_Ñ_доÑта_дълго_име_нали_и_още_по_дълго','SQL','CONTAINS_SQL','NO','DEFINER','','','bad_body','root@localhost',now(), now(),'','', 'utf8', 'utf8_general_ci', 'utf8_general_ci', 'n/a', 'NONE')|
-call това_е_дълго_име_за_база_данни_нали.това_е_процедура_Ñ_доÑта_дълго_име_нали_и_още_по_дълго()|
-ERROR HY000: Failed to load routine това_е_дълго_име_за_база_данни_нали.това_е_процедура_Ñ_доÑта_дълго_име_нали_и_още_по_дълго. The table mysql.proc is missing, corrupt, or contains bad data (internal code -6)
-drop database това_е_дълго_име_за_база_данни_нали|
-CREATE TABLE t3 (
-Member_ID varchar(15) NOT NULL,
-PRIMARY KEY (Member_ID)
-)|
-CREATE TABLE t4 (
-ID int(10) unsigned NOT NULL auto_increment,
-Member_ID varchar(15) NOT NULL default '',
-Action varchar(12) NOT NULL,
-Action_Date datetime NOT NULL,
-Track varchar(15) default NULL,
-User varchar(12) default NULL,
-Date_Updated timestamp NOT NULL default CURRENT_TIMESTAMP on update
-CURRENT_TIMESTAMP,
-PRIMARY KEY (ID),
-KEY Action (Action),
-KEY Action_Date (Action_Date)
-)|
-INSERT INTO t3(Member_ID) VALUES
-('111111'), ('222222'), ('333333'), ('444444'), ('555555'), ('666666')|
-INSERT INTO t4(Member_ID, Action, Action_Date, Track) VALUES
-('111111', 'Disenrolled', '2006-03-01', 'CAD' ),
-('111111', 'Enrolled', '2006-03-01', 'CAD' ),
-('111111', 'Disenrolled', '2006-07-03', 'CAD' ),
-('222222', 'Enrolled', '2006-03-07', 'CAD' ),
-('222222', 'Enrolled', '2006-03-07', 'CHF' ),
-('222222', 'Disenrolled', '2006-08-02', 'CHF' ),
-('333333', 'Enrolled', '2006-03-01', 'CAD' ),
-('333333', 'Disenrolled', '2006-03-01', 'CAD' ),
-('444444', 'Enrolled', '2006-03-01', 'CAD' ),
-('555555', 'Disenrolled', '2006-03-01', 'CAD' ),
-('555555', 'Enrolled', '2006-07-21', 'CAD' ),
-('555555', 'Disenrolled', '2006-03-01', 'CHF' ),
-('666666', 'Enrolled', '2006-02-09', 'CAD' ),
-('666666', 'Enrolled', '2006-05-12', 'CHF' ),
-('666666', 'Disenrolled', '2006-06-01', 'CAD' )|
-DROP FUNCTION IF EXISTS bug21493|
-CREATE FUNCTION bug21493(paramMember VARCHAR(15)) RETURNS varchar(45)
-BEGIN
-DECLARE tracks VARCHAR(45);
-SELECT GROUP_CONCAT(Track SEPARATOR ', ') INTO tracks FROM t4
-WHERE Member_ID=paramMember AND Action='Enrolled' AND
-(Track,Action_Date) IN (SELECT Track, MAX(Action_Date) FROM t4
-WHERE Member_ID=paramMember GROUP BY Track);
-RETURN tracks;
-END|
-SELECT bug21493('111111')|
-bug21493('111111')
-NULL
-SELECT bug21493('222222')|
-bug21493('222222')
-CAD
-SELECT bug21493(Member_ID) FROM t3|
-bug21493(Member_ID)
-NULL
-CAD
-CAD
-CAD
-CAD
-CHF
-DROP FUNCTION bug21493|
-DROP TABLE t3,t4|
-drop function if exists func_20028_a|
-drop function if exists func_20028_b|
-drop function if exists func_20028_c|
-drop procedure if exists proc_20028_a|
-drop procedure if exists proc_20028_b|
-drop procedure if exists proc_20028_c|
-drop table if exists table_20028|
-create table table_20028 (i int)|
-SET @save_sql_mode=@@sql_mode|
-SET sql_mode=''|
-create function func_20028_a() returns integer
-begin
-declare temp integer;
-select i into temp from table_20028 limit 1;
-return ifnull(temp, 0);
-end|
-create function func_20028_b() returns integer
-begin
-return func_20028_a();
-end|
-create function func_20028_c() returns integer
-begin
-declare div_zero integer;
-set SQL_MODE='TRADITIONAL';
-select 1/0 into div_zero;
-return div_zero;
-end|
-create procedure proc_20028_a()
-begin
-declare temp integer;
-select i into temp from table_20028 limit 1;
-end|
-create procedure proc_20028_b()
-begin
-call proc_20028_a();
-end|
-create procedure proc_20028_c()
-begin
-declare div_zero integer;
-set SQL_MODE='TRADITIONAL';
-select 1/0 into div_zero;
-end|
-select func_20028_a()|
-func_20028_a()
-0
-select func_20028_b()|
-func_20028_b()
-0
-select func_20028_c()|
-ERROR 22012: Division by 0
-call proc_20028_a()|
-Warnings:
-Warning 1329 No data - zero rows fetched, selected, or processed
-call proc_20028_b()|
-Warnings:
-Warning 1329 No data - zero rows fetched, selected, or processed
-call proc_20028_c()|
-ERROR 22012: Division by 0
-SET sql_mode='TRADITIONAL'|
-drop function func_20028_a|
-drop function func_20028_b|
-drop function func_20028_c|
-drop procedure proc_20028_a|
-drop procedure proc_20028_b|
-drop procedure proc_20028_c|
-create function func_20028_a() returns integer
-begin
-declare temp integer;
-select i into temp from table_20028 limit 1;
-return ifnull(temp, 0);
-end|
-create function func_20028_b() returns integer
-begin
-return func_20028_a();
-end|
-create function func_20028_c() returns integer
-begin
-declare div_zero integer;
-set SQL_MODE='';
-select 1/0 into div_zero;
-return div_zero;
-end|
-create procedure proc_20028_a()
-begin
-declare temp integer;
-select i into temp from table_20028 limit 1;
-end|
-create procedure proc_20028_b()
-begin
-call proc_20028_a();
-end|
-create procedure proc_20028_c()
-begin
-declare div_zero integer;
-set SQL_MODE='';
-select 1/0 into div_zero;
-end|
-select func_20028_a()|
-func_20028_a()
-0
-select func_20028_b()|
-func_20028_b()
-0
-select func_20028_c()|
-func_20028_c()
-NULL
-call proc_20028_a()|
-Warnings:
-Warning 1329 No data - zero rows fetched, selected, or processed
-call proc_20028_b()|
-Warnings:
-Warning 1329 No data - zero rows fetched, selected, or processed
-call proc_20028_c()|
-SET @@sql_mode=@save_sql_mode|
-drop function func_20028_a|
-drop function func_20028_b|
-drop function func_20028_c|
-drop procedure proc_20028_a|
-drop procedure proc_20028_b|
-drop procedure proc_20028_c|
-drop table table_20028|
-drop procedure if exists proc_21462_a|
-drop procedure if exists proc_21462_b|
-create procedure proc_21462_a()
-begin
-select "Called A";
-end|
-create procedure proc_21462_b(x int)
-begin
-select "Called B";
-end|
-call proc_21462_a|
-Called A
-Called A
-call proc_21462_a()|
-Called A
-Called A
-call proc_21462_a(1)|
-ERROR 42000: Incorrect number of arguments for PROCEDURE test.proc_21462_a; expected 0, got 1
-call proc_21462_b|
-ERROR 42000: Incorrect number of arguments for PROCEDURE test.proc_21462_b; expected 1, got 0
-call proc_21462_b()|
-ERROR 42000: Incorrect number of arguments for PROCEDURE test.proc_21462_b; expected 1, got 0
-call proc_21462_b(1)|
-Called B
-Called B
-drop procedure proc_21462_a|
-drop procedure proc_21462_b|
-drop table if exists t3|
-drop procedure if exists proc_bug19733|
-create table t3 (s1 int)|
-create procedure proc_bug19733()
-begin
-declare v int default 0;
-while v < 100 do
-create index i on t3 (s1);
-drop index i on t3;
-set v = v + 1;
-end while;
-end|
-call proc_bug19733()|
-call proc_bug19733()|
-call proc_bug19733()|
-drop procedure proc_bug19733|
-drop table t3|
-DROP PROCEDURE IF EXISTS p1|
-DROP VIEW IF EXISTS v1, v2|
-DROP TABLE IF EXISTS t3, t4|
-CREATE TABLE t3 (t3_id INT)|
-INSERT INTO t3 VALUES (0)|
-INSERT INTO t3 VALUES (1)|
-CREATE TABLE t4 (t4_id INT)|
-INSERT INTO t4 VALUES (2)|
-CREATE VIEW v1 AS
-SELECT t3.t3_id, t4.t4_id
-FROM t3 JOIN t4 ON t3.t3_id = 0|
-CREATE VIEW v2 AS
-SELECT t3.t3_id AS t3_id_1, v1.t3_id AS t3_id_2, v1.t4_id
-FROM t3 LEFT JOIN v1 ON t3.t3_id = 0|
-CREATE PROCEDURE p1() SELECT * FROM v2|
-CALL p1()|
-t3_id_1 t3_id_2 t4_id
-0 0 2
-1 NULL NULL
-CALL p1()|
-t3_id_1 t3_id_2 t4_id
-0 0 2
-1 NULL NULL
-DROP PROCEDURE p1|
-DROP VIEW v1, v2|
-DROP TABLE t3, t4|
-End of 5.0 tests
-Begin of 5.1 tests
-drop function if exists pi;
-create function pi() returns varchar(50)
-return "pie, my favorite desert.";
-Warnings:
-Note 1585 This function 'pi' has the same name as a native function
-SET @save_sql_mode=@@sql_mode;
-SET SQL_MODE='IGNORE_SPACE';
-select pi(), pi ();
-pi() pi ()
-3.141593 3.141593
-select test.pi(), test.pi ();
-test.pi() test.pi ()
-pie, my favorite desert. pie, my favorite desert.
-SET SQL_MODE='';
-select pi(), pi ();
-pi() pi ()
-3.141593 3.141593
-select test.pi(), test.pi ();
-test.pi() test.pi ()
-pie, my favorite desert. pie, my favorite desert.
-SET @@sql_mode=@save_sql_mode;
-drop function pi;
-drop function if exists test.database;
-drop function if exists test.current_user;
-drop function if exists test.md5;
-create database nowhere;
-use nowhere;
-drop database nowhere;
-SET @save_sql_mode=@@sql_mode;
-SET SQL_MODE='IGNORE_SPACE';
-select database(), database ();
-database() database ()
-NULL NULL
-select current_user(), current_user ();
-current_user() current_user ()
-root@localhost root@localhost
-select md5("aaa"), md5 ("aaa");
-md5("aaa") md5 ("aaa")
-47bce5c74f589f4867dbd57e9ca9f808 47bce5c74f589f4867dbd57e9ca9f808
-SET SQL_MODE='';
-select database(), database ();
-database() database ()
-NULL NULL
-select current_user(), current_user ();
-current_user() current_user ()
-root@localhost root@localhost
-select md5("aaa"), md5 ("aaa");
-md5("aaa") md5 ("aaa")
-47bce5c74f589f4867dbd57e9ca9f808 47bce5c74f589f4867dbd57e9ca9f808
-use test;
-create function `database`() returns varchar(50)
-return "Stored function database";
-Warnings:
-Note 1585 This function 'database' has the same name as a native function
-create function `current_user`() returns varchar(50)
-return "Stored function current_user";
-Warnings:
-Note 1585 This function 'current_user' has the same name as a native function
-create function md5(x varchar(50)) returns varchar(50)
-return "Stored function md5";
-Warnings:
-Note 1585 This function 'md5' has the same name as a native function
-SET SQL_MODE='IGNORE_SPACE';
-select database(), database ();
-database() database ()
-test test
-select current_user(), current_user ();
-current_user() current_user ()
-root@localhost root@localhost
-select md5("aaa"), md5 ("aaa");
-md5("aaa") md5 ("aaa")
-47bce5c74f589f4867dbd57e9ca9f808 47bce5c74f589f4867dbd57e9ca9f808
-select test.database(), test.database ();
-test.database() test.database ()
-Stored function database Stored function database
-select test.current_user(), test.current_user ();
-test.current_user() test.current_user ()
-Stored function current_user Stored function current_user
-select test.md5("aaa"), test.md5 ("aaa");
-test.md5("aaa") test.md5 ("aaa")
-Stored function md5 Stored function md5
-SET SQL_MODE='';
-select database(), database ();
-database() database ()
-test test
-select current_user(), current_user ();
-current_user() current_user ()
-root@localhost root@localhost
-select md5("aaa"), md5 ("aaa");
-md5("aaa") md5 ("aaa")
-47bce5c74f589f4867dbd57e9ca9f808 47bce5c74f589f4867dbd57e9ca9f808
-select test.database(), test.database ();
-test.database() test.database ()
-Stored function database Stored function database
-select test.current_user(), test.current_user ();
-test.current_user() test.current_user ()
-Stored function current_user Stored function current_user
-select test.md5("aaa"), test.md5 ("aaa");
-test.md5("aaa") test.md5 ("aaa")
-Stored function md5 Stored function md5
-SET @@sql_mode=@save_sql_mode;
-drop function test.database;
-drop function test.current_user;
-drop function md5;
-use test;
-End of 5.1 tests
-DROP TABLE IF EXISTS bug23760|
-DROP TABLE IF EXISTS bug23760_log|
-DROP PROCEDURE IF EXISTS bug23760_update_log|
-DROP PROCEDURE IF EXISTS bug23760_test_row_count|
-DROP FUNCTION IF EXISTS bug23760_rc_test|
-CREATE TABLE bug23760 (
-id INT NOT NULL AUTO_INCREMENT ,
-num INT NOT NULL ,
-PRIMARY KEY ( id )
-)|
-CREATE TABLE bug23760_log (
-id INT NOT NULL AUTO_INCREMENT ,
-reason VARCHAR(50)NULL ,
-ammount INT NOT NULL ,
-PRIMARY KEY ( id )
-)|
-CREATE PROCEDURE bug23760_update_log(r Varchar(50), a INT)
-BEGIN
-INSERT INTO bug23760_log (reason, ammount) VALUES(r, a);
-END|
-CREATE PROCEDURE bug23760_test_row_count()
-BEGIN
-UPDATE bug23760 SET num = num + 1;
-CALL bug23760_update_log('Test is working', ROW_COUNT());
-UPDATE bug23760 SET num = num - 1;
-END|
-CREATE PROCEDURE bug23760_test_row_count2(level INT)
-BEGIN
-IF level THEN
-UPDATE bug23760 SET num = num + 1;
-CALL bug23760_update_log('Test2 is working', ROW_COUNT());
-CALL bug23760_test_row_count2(level - 1);
-END IF;
-END|
-CREATE FUNCTION bug23760_rc_test(in_var INT) RETURNS INT RETURN in_var|
-INSERT INTO bug23760 (num) VALUES (0), (1), (1), (2), (3), (5), (8)|
-SELECT ROW_COUNT()|
-ROW_COUNT()
-7
-CALL bug23760_test_row_count()|
-SELECT * FROM bug23760_log ORDER BY id|
-id reason ammount
-1 Test is working 7
-SET @save_max_sp_recursion= @@max_sp_recursion_depth|
-SELECT @save_max_sp_recursion|
-@save_max_sp_recursion
-0
-SET max_sp_recursion_depth= 5|
-SELECT @@max_sp_recursion_depth|
-@@max_sp_recursion_depth
-5
-CALL bug23760_test_row_count2(2)|
-SELECT ROW_COUNT()|
-ROW_COUNT()
-16
-SELECT * FROM bug23760_log ORDER BY id|
-id reason ammount
-1 Test is working 7
-2 Test2 is working 7
-3 Test2 is working 7
-SELECT * FROM bug23760 ORDER by ID|
-id num
-1 2
-2 3
-3 3
-4 4
-5 5
-6 7
-7 10
-SET max_sp_recursion_depth= @save_max_sp_recursion|
-SELECT bug23760_rc_test(123)|
-bug23760_rc_test(123)
-123
-INSERT INTO bug23760 (num) VALUES (13), (21), (34), (55)|
-SELECT bug23760_rc_test(ROW_COUNT())|
-bug23760_rc_test(ROW_COUNT())
-4
-DROP TABLE bug23760, bug23760_log|
-DROP PROCEDURE bug23760_update_log|
-DROP PROCEDURE bug23760_test_row_count|
-DROP PROCEDURE bug23760_test_row_count2|
-DROP FUNCTION bug23760_rc_test|
-DROP PROCEDURE IF EXISTS bug24117|
-DROP TABLE IF EXISTS t3|
-CREATE TABLE t3(c1 ENUM('abc'))|
-INSERT INTO t3 VALUES('abc')|
-CREATE PROCEDURE bug24117()
-BEGIN
-DECLARE t3c1 ENUM('abc');
-DECLARE mycursor CURSOR FOR SELECT c1 FROM t3;
-OPEN mycursor;
-FLUSH TABLES;
-FETCH mycursor INTO t3c1;
-CLOSE mycursor;
-END|
-CALL bug24117()|
-DROP PROCEDURE bug24117|
-DROP TABLE t3|
-drop function if exists func_8407_a|
-drop function if exists func_8407_b|
-create function func_8407_a() returns int
-begin
-declare x int;
-declare continue handler for sqlexception
-begin
-end;
-select 1 from no_such_view limit 1 into x;
-return x;
-end|
-create function func_8407_b() returns int
-begin
-declare x int default 0;
-declare continue handler for sqlstate '42S02'
- begin
-set x:= x+1000;
-end;
-case (select 1 from no_such_view limit 1)
-when 1 then set x:= x+1;
-when 2 then set x:= x+2;
-else set x:= x+100;
-end case;
-set x:=x + 500;
-return x;
-end|
-select func_8407_a()|
-func_8407_a()
-NULL
-select func_8407_b()|
-func_8407_b()
-1500
-drop function func_8407_a|
-drop function func_8407_b|
-drop table if exists table_26503|
-drop procedure if exists proc_26503_ok_1|
-drop procedure if exists proc_26503_ok_2|
-drop procedure if exists proc_26503_ok_3|
-drop procedure if exists proc_26503_ok_4|
-create table table_26503(a int unique)|
-create procedure proc_26503_ok_1(v int)
-begin
-declare i int default 5;
-declare continue handler for sqlexception
-begin
-select 'caught something';
-retry:
-while i > 0 do
-begin
-set i = i - 1;
-select 'looping', i;
-iterate retry;
-select 'dead code';
-end;
-end while retry;
-select 'leaving handler';
-end;
-select 'do something';
-insert into table_26503 values (v);
-select 'do something again';
-insert into table_26503 values (v);
-end|
-create procedure proc_26503_ok_2(v int)
-begin
-declare i int default 5;
-declare continue handler for sqlexception
-begin
-select 'caught something';
-retry:
-while i > 0 do
-begin
-set i = i - 1;
-select 'looping', i;
-leave retry;
-select 'dead code';
-end;
-end while;
-select 'leaving handler';
-end;
-select 'do something';
-insert into table_26503 values (v);
-select 'do something again';
-insert into table_26503 values (v);
-end|
-create procedure proc_26503_ok_3(v int)
-begin
-declare i int default 5;
-retry:
-begin
-declare continue handler for sqlexception
-begin
-select 'caught something';
-retry:
-while i > 0 do
-begin
-set i = i - 1;
-select 'looping', i;
-iterate retry;
-select 'dead code';
-end;
-end while retry;
-select 'leaving handler';
-end;
-select 'do something';
-insert into table_26503 values (v);
-select 'do something again';
-insert into table_26503 values (v);
-end;
-end|
-create procedure proc_26503_ok_4(v int)
-begin
-declare i int default 5;
-retry:
-begin
-declare continue handler for sqlexception
-begin
-select 'caught something';
-retry:
-while i > 0 do
-begin
-set i = i - 1;
-select 'looping', i;
-leave retry;
-select 'dead code';
-end;
-end while;
-select 'leaving handler';
-end;
-select 'do something';
-insert into table_26503 values (v);
-select 'do something again';
-insert into table_26503 values (v);
-end;
-end|
-call proc_26503_ok_1(1)|
-do something
-do something
-do something again
-do something again
-caught something
-caught something
-looping i
-looping 4
-looping i
-looping 3
-looping i
-looping 2
-looping i
-looping 1
-looping i
-looping 0
-leaving handler
-leaving handler
-call proc_26503_ok_2(2)|
-do something
-do something
-do something again
-do something again
-caught something
-caught something
-looping i
-looping 4
-leaving handler
-leaving handler
-call proc_26503_ok_3(3)|
-do something
-do something
-do something again
-do something again
-caught something
-caught something
-looping i
-looping 4
-looping i
-looping 3
-looping i
-looping 2
-looping i
-looping 1
-looping i
-looping 0
-leaving handler
-leaving handler
-call proc_26503_ok_4(4)|
-do something
-do something
-do something again
-do something again
-caught something
-caught something
-looping i
-looping 4
-leaving handler
-leaving handler
-drop table table_26503|
-drop procedure proc_26503_ok_1|
-drop procedure proc_26503_ok_2|
-drop procedure proc_26503_ok_3|
-drop procedure proc_26503_ok_4|
-DROP FUNCTION IF EXISTS bug25373|
-CREATE FUNCTION bug25373(p1 INTEGER) RETURNS INTEGER
-LANGUAGE SQL DETERMINISTIC
-RETURN p1;|
-CREATE TABLE t3 (f1 INT, f2 FLOAT)|
-INSERT INTO t3 VALUES (1, 3.4), (1, 2), (1, 0.9), (2, 8), (2, 7)|
-SELECT SUM(f2), bug25373(f1) FROM t3 GROUP BY bug25373(f1) WITH ROLLUP|
-SUM(f2) bug25373(f1)
-6.300000071525574 1
-15 2
-21.300000071525574 NULL
-DROP FUNCTION bug25373|
-DROP TABLE t3|
-DROP DATABASE IF EXISTS mysqltest1|
-DROP DATABASE IF EXISTS mysqltest2|
-CREATE DATABASE mysqltest1|
-CREATE DATABASE mysqltest2|
-CREATE PROCEDURE mysqltest1.p1()
-DROP DATABASE mysqltest2|
-use mysqltest2|
-CALL mysqltest1.p1()|
-Warnings:
-Note 1049 Unknown database 'mysqltest2'
-SELECT DATABASE()|
-DATABASE()
-NULL
-DROP DATABASE mysqltest1|
-use test|
-drop function if exists bug20777|
-drop table if exists examplebug20777|
-create function bug20777(f1 bigint unsigned) returns bigint unsigned
-begin
-set f1 = (f1 - 10); set f1 = (f1 + 10);
-return f1;
-end|
-select bug20777(9223372036854775803) as '9223372036854775803 2**63-5';
-9223372036854775803 2**63-5
-9223372036854775803
-select bug20777(9223372036854775804) as '9223372036854775804 2**63-4';
-9223372036854775804 2**63-4
-9223372036854775804
-select bug20777(9223372036854775805) as '9223372036854775805 2**63-3';
-9223372036854775805 2**63-3
-9223372036854775805
-select bug20777(9223372036854775806) as '9223372036854775806 2**63-2';
-9223372036854775806 2**63-2
-9223372036854775806
-select bug20777(9223372036854775807) as '9223372036854775807 2**63-1';
-9223372036854775807 2**63-1
-9223372036854775807
-select bug20777(9223372036854775808) as '9223372036854775808 2**63+0';
-9223372036854775808 2**63+0
-9223372036854775808
-select bug20777(9223372036854775809) as '9223372036854775809 2**63+1';
-9223372036854775809 2**63+1
-9223372036854775809
-select bug20777(9223372036854775810) as '9223372036854775810 2**63+2';
-9223372036854775810 2**63+2
-9223372036854775810
-select bug20777(-9223372036854775808) as 'lower bounds signed bigint';
-ERROR 22003: BIGINT UNSIGNED value is out of range in 'f1@0 - 10'
-select bug20777(9223372036854775807) as 'upper bounds signed bigint';
-upper bounds signed bigint
-9223372036854775807
-select bug20777(0) as 'lower bounds unsigned bigint';
-ERROR 22003: BIGINT UNSIGNED value is out of range in 'f1@0 - 10'
-select bug20777(18446744073709551615) as 'upper bounds unsigned bigint';
-upper bounds unsigned bigint
-18446744073709551615
-select bug20777(18446744073709551616) as 'upper bounds unsigned bigint + 1';
-upper bounds unsigned bigint + 1
-18446744073709551615
-Warnings:
-Warning 1264 Out of range value for column 'f1' at row 1
-select bug20777(-1) as 'lower bounds unsigned bigint - 1';
-ERROR 22003: BIGINT UNSIGNED value is out of range in 'f1@0 - 10'
-create table examplebug20777 as select
-0 as 'i',
-bug20777(9223372036854775806) as '2**63-2',
-bug20777(9223372036854775807) as '2**63-1',
-bug20777(9223372036854775808) as '2**63',
-bug20777(9223372036854775809) as '2**63+1',
-bug20777(18446744073709551614) as '2**64-2',
-bug20777(18446744073709551615) as '2**64-1',
-bug20777(18446744073709551616) as '2**64';
-Warnings:
-Warning 1264 Out of range value for column 'f1' at row 1
-insert into examplebug20777 values (1, 9223372036854775806, 9223372036854775807, 223372036854775808, 9223372036854775809, 18446744073709551614, 18446744073709551615, 8446744073709551616);
-show create table examplebug20777;
-Table Create Table
-examplebug20777 CREATE TABLE `examplebug20777` (
- `i` int(1) NOT NULL,
- `2**63-2` bigint(20) unsigned DEFAULT NULL,
- `2**63-1` bigint(20) unsigned DEFAULT NULL,
- `2**63` bigint(20) unsigned DEFAULT NULL,
- `2**63+1` bigint(20) unsigned DEFAULT NULL,
- `2**64-2` bigint(20) unsigned DEFAULT NULL,
- `2**64-1` bigint(20) unsigned DEFAULT NULL,
- `2**64` bigint(20) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from examplebug20777 order by i;
-i 2**63-2 2**63-1 2**63 2**63+1 2**64-2 2**64-1 2**64
-0 9223372036854775806 9223372036854775807 9223372036854775808 9223372036854775809 18446744073709551614 18446744073709551615 18446744073709551615
-1 9223372036854775806 9223372036854775807 223372036854775808 9223372036854775809 18446744073709551614 18446744073709551615 8446744073709551616
-drop table examplebug20777;
-select bug20777(18446744073709551613)+1;
-bug20777(18446744073709551613)+1
-18446744073709551614
-drop function bug20777;
-DROP FUNCTION IF EXISTS bug5274_f1|
-DROP FUNCTION IF EXISTS bug5274_f2|
-CREATE FUNCTION bug5274_f1(p1 CHAR) RETURNS CHAR
-RETURN CONCAT(p1, p1)|
-CREATE FUNCTION bug5274_f2() RETURNS CHAR
-BEGIN
-DECLARE v1 INT DEFAULT 0;
-DECLARE v2 CHAR DEFAULT 'x';
-WHILE v1 < 30 DO
-SET v1 = v1 + 1;
-SET v2 = bug5274_f1(v2);
-END WHILE;
-RETURN v2;
-END|
-SELECT bug5274_f2()|
-bug5274_f2()
-x
-DROP FUNCTION bug5274_f1|
-DROP FUNCTION bug5274_f2|
-drop procedure if exists proc_21513|
-create procedure proc_21513()`my_label`:BEGIN END|
-show create procedure proc_21513|
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-proc_21513 CREATE DEFINER=`root`@`localhost` PROCEDURE `proc_21513`()
-`my_label`:BEGIN END utf8 utf8_general_ci latin1_swedish_ci
-drop procedure proc_21513|
-End of 5.0 tests.
-drop table t1,t2;
-CREATE TABLE t1 (a int auto_increment primary key) engine=MyISAM;
-CREATE TABLE t2 (a int auto_increment primary key, b int) engine=innodb;
-set @a=0;
-CREATE function bug27354() RETURNS int not deterministic
-begin
-insert into t1 values (null);
-set @a=@a+1;
-return @a;
-end|
-update t2 set b=1 where a=bug27354();
-select count(t_1.a),count(t_2.a) from t1 as t_1, t2 as t_2 /* must be 0,0 */;
-count(t_1.a) count(t_2.a)
-0 0
-insert into t2 values (1,1),(2,2),(3,3);
-update t2 set b=-b where a=bug27354();
-select * from t2 /* must return 1,-1 ... */;
-a b
-1 -1
-2 -2
-3 -3
-select count(*) from t1 /* must be 3 */;
-count(*)
-3
-drop table t1,t2;
-drop function bug27354;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE FUNCTION metered(a INT) RETURNS INT RETURN 12;
-CREATE VIEW v1 AS SELECT test.metered(a) as metered FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `test`.`metered`(`t1`.`a`) AS `metered` from `t1` utf8 utf8_general_ci
-DROP VIEW v1;
-DROP FUNCTION metered;
-DROP TABLE t1;
-SET @p1_p2_cnt= 2;
-CREATE TABLE t1 (c1 INT);
-CREATE VIEW v1 AS SELECT * FROM t1;
-PREPARE s1 FROM 'SELECT c1 FROM v1';
-EXECUTE s1;
-c1
-EXECUTE s1;
-c1
-CREATE PROCEDURE p1(IN loops BIGINT(19) UNSIGNED)
-BEGIN
-WHILE loops > 0 DO
-SELECT c1 FROM v1;
-SET loops = loops - 1;
-END WHILE;
-END|
-CREATE PROCEDURE p2(IN loops BIGINT(19) UNSIGNED)
-BEGIN
-WHILE loops > 0 DO
-SELECT c1 FROM v1;
-CALL p1(@p1_p2_cnt);
-SET loops = loops - 1;
-END WHILE;
-END|
-CREATE FUNCTION f1(loops INT UNSIGNED)
-RETURNS INT
-BEGIN
-DECLARE tmp INT;
-WHILE loops > 0 DO
-SELECT c1 INTO tmp FROM v1;
-SET loops = loops - 1;
-END WHILE;
-RETURN loops;
-END|
-CALL p1(2);
-c1
-c1
-CALL p2(2);
-c1
-c1
-c1
-c1
-c1
-c1
-SELECT f1(2);
-f1(2)
-0
-PREPARE s1 FROM 'SELECT f1(2)';
-EXECUTE s1;
-f1(2)
-0
-EXECUTE s1;
-f1(2)
-0
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP FUNCTION f1;
-DROP VIEW v1;
-DROP TABLE t1;
-drop database if exists mysqltest_db1;
-create database mysqltest_db1;
-create procedure mysqltest_db1.sp_bug28551() begin end;
-call mysqltest_db1.sp_bug28551();
-show warnings;
-Level Code Message
-Note 1008 Can't drop database 'mysqltest_db1'; database doesn't exist
-drop database mysqltest_db1;
-drop database if exists mysqltest_db1;
-drop table if exists test.t1;
-create database mysqltest_db1;
-use mysqltest_db1;
-drop database mysqltest_db1;
-create table test.t1 (id int);
-insert into test.t1 (id) values (1);
-create procedure test.sp_bug29050() begin select * from t1; end//
-show warnings;
-Level Code Message
-call test.sp_bug29050();
-id
-1
-show warnings;
-Level Code Message
-use test;
-drop procedure sp_bug29050;
-drop table t1;
-SET NAMES latin1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE áâä INT;
-SELECT áâä;
-END|
-CALL p1();
-áâä
-NULL
-SET NAMES default;
-DROP PROCEDURE p1;
-drop procedure if exists proc_25411_a;
-drop procedure if exists proc_25411_b;
-drop procedure if exists proc_25411_c;
-create procedure proc_25411_a()
-begin
-/* real comment */
-select 1;
-/*! select 2; */
-select 3;
-/*!00000 select 4; */
-/*!999999 select 5; */
-end
-$$
-create procedure proc_25411_b(
-/* real comment */
-/*! p1 int, */
-/*!00000 p2 int */
-/*!999999 ,p3 int */
-)
-begin
-select p1, p2;
-end
-$$
-create procedure proc_25411_c()
-begin
-select 1/*!,2*//*!00000,3*//*!999999,4*/;
-select 1/*! ,2*//*!00000 ,3*//*!999999 ,4*/;
-select 1/*!,2 *//*!00000,3 *//*!999999,4 */;
-select 1/*! ,2 *//*!00000 ,3 *//*!999999 ,4 */;
-select 1 /*!,2*/ /*!00000,3*/ /*!999999,4*/ ;
-end
-$$
-show create procedure proc_25411_a;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-proc_25411_a CREATE DEFINER=`root`@`localhost` PROCEDURE `proc_25411_a`()
-begin
-/* real comment */
-select 1;
- select 2;
-select 3;
- select 4;
-
-end latin1 latin1_swedish_ci latin1_swedish_ci
-call proc_25411_a();
-1
-1
-2
-2
-3
-3
-4
-4
-show create procedure proc_25411_b;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-proc_25411_b CREATE DEFINER=`root`@`localhost` PROCEDURE `proc_25411_b`(
-/* real comment */
- p1 int,
- p2 int
-
-)
-begin
-select p1, p2;
-end latin1 latin1_swedish_ci latin1_swedish_ci
-select name, param_list, body from mysql.proc where name like "%25411%";
-name param_list body
-proc_25411_a begin
-/* real comment */
-select 1;
- select 2;
-select 3;
- select 4;
-
-end
-proc_25411_b
-/* real comment */
- p1 int,
- p2 int
-
- begin
-select p1, p2;
-end
-proc_25411_c begin
-select 1,2,3;
-select 1 ,2 ,3;
-select 1,2 ,3 ;
-select 1 ,2 ,3 ;
-select 1 ,2 ,3 ;
-end
-call proc_25411_b(10, 20);
-p1 p2
-10 20
-show create procedure proc_25411_c;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-proc_25411_c CREATE DEFINER=`root`@`localhost` PROCEDURE `proc_25411_c`()
-begin
-select 1,2,3;
-select 1 ,2 ,3;
-select 1,2 ,3 ;
-select 1 ,2 ,3 ;
-select 1 ,2 ,3 ;
-end latin1 latin1_swedish_ci latin1_swedish_ci
-call proc_25411_c();
-1 2 3
-1 2 3
-1 2 3
-1 2 3
-1 2 3
-1 2 3
-1 2 3
-1 2 3
-1 2 3
-1 2 3
-drop procedure proc_25411_a;
-drop procedure proc_25411_b;
-drop procedure proc_25411_c;
-drop procedure if exists proc_26302;
-create procedure proc_26302()
-select 1 /* testing */;
-show create procedure proc_26302;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-proc_26302 CREATE DEFINER=`root`@`localhost` PROCEDURE `proc_26302`()
-select 1 /* testing */ latin1 latin1_swedish_ci latin1_swedish_ci
-select ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES
-where ROUTINE_NAME = "proc_26302";
-ROUTINE_NAME ROUTINE_DEFINITION
-proc_26302 select 1 /* testing */
-drop procedure proc_26302;
-CREATE FUNCTION f1() RETURNS INT DETERMINISTIC RETURN 2;
-CREATE FUNCTION f2(I INT) RETURNS INT DETERMINISTIC RETURN 3;
-CREATE TABLE t1 (c1 INT, INDEX(c1));
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
-CREATE VIEW v1 AS SELECT c1 FROM t1;
-EXPLAIN SELECT * FROM t1 WHERE c1=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref c1 c1 5 const 1 Using index
-EXPLAIN SELECT * FROM t1 WHERE c1=f1();
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref c1 c1 5 const 1 Using where; Using index
-EXPLAIN SELECT * FROM v1 WHERE c1=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref c1 c1 5 const 1 Using index
-EXPLAIN SELECT * FROM v1 WHERE c1=f1();
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref c1 c1 5 const 1 Using where; Using index
-EXPLAIN SELECT * FROM t1 WHERE c1=f2(10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref c1 c1 5 const 1 Using where; Using index
-EXPLAIN SELECT * FROM t1 WHERE c1=f2(c1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL c1 5 NULL 5 Using where; Using index
-EXPLAIN SELECT * FROM t1 WHERE c1=f2(rand());
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL c1 5 NULL 5 Using where; Using index
-DROP VIEW v1;
-DROP FUNCTION f1;
-DROP FUNCTION f2;
-DROP TABLE t1;
-create function f1()
-returns int(11)
-not deterministic
-contains sql
-sql security definer
-comment ''
-begin
-declare x int(11);
-set x=-1;
-return x;
-end|
-create view v1 as select 1 as one, f1() as days;
-connect bug29408, localhost, root,,*NO-ONE*;
-connection bug29408;
-show create view test.v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `test`.`v1` AS select 1 AS `one`,`f1`() AS `days` latin1 latin1_swedish_ci
-select column_name from information_schema.columns
-where table_name='v1' and table_schema='test';
-column_name
-one
-days
-connection default;
-disconnect bug29408;
-drop view v1;
-drop function f1;
-
-# Bug#13675.
-
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-DROP TABLE IF EXISTS t1;
-
-CREATE PROCEDURE p1(v DATETIME) CREATE TABLE t1 SELECT v;
-CREATE PROCEDURE p2(v INT) CREATE TABLE t1 SELECT v;
-
-CALL p1(NOW());
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-DROP TABLE t1;
-
-CALL p1('text');
-Warnings:
-Warning 1265 Data truncated for column 'v' at row 1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-DROP TABLE t1;
-
-CALL p2(10);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-DROP TABLE t1;
-
-CALL p2('text');
-Warnings:
-Warning 1366 Incorrect integer value: 'text' for column 'v' at row 1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-
-DROP TABLE t1;
-
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-
-#
-# Bug#31035.
-#
-
-#
-# - Prepare.
-#
-
-DROP TABLE IF EXISTS t1;
-DROP FUNCTION IF EXISTS f1;
-DROP FUNCTION IF EXISTS f2;
-DROP FUNCTION IF EXISTS f3;
-DROP FUNCTION IF EXISTS f4;
-
-#
-# - Create required objects.
-#
-
-CREATE TABLE t1(c1 INT);
-
-INSERT INTO t1 VALUES (1), (2), (3);
-
-CREATE FUNCTION f1()
-RETURNS INT
-NOT DETERMINISTIC
-RETURN 1;
-
-CREATE FUNCTION f2(p INT)
-RETURNS INT
-NOT DETERMINISTIC
-RETURN 1;
-
-CREATE FUNCTION f3()
-RETURNS INT
-DETERMINISTIC
-RETURN 1;
-
-CREATE FUNCTION f4(p INT)
-RETURNS INT
-DETERMINISTIC
-RETURN 1;
-
-#
-# - Check.
-#
-
-SELECT f1() AS a FROM t1 GROUP BY a;
-a
-1
-
-SELECT f2(@a) AS a FROM t1 GROUP BY a;
-a
-1
-
-SELECT f3() AS a FROM t1 GROUP BY a;
-a
-1
-
-SELECT f4(0) AS a FROM t1 GROUP BY a;
-a
-1
-
-SELECT f4(@a) AS a FROM t1 GROUP BY a;
-a
-1
-
-#
-# - Cleanup.
-#
-
-DROP TABLE t1;
-DROP FUNCTION f1;
-DROP FUNCTION f2;
-DROP FUNCTION f3;
-DROP FUNCTION f4;
-
-#
-# Bug#31191.
-#
-
-#
-# - Prepare.
-#
-
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-DROP FUNCTION IF EXISTS f1;
-
-#
-# - Create required objects.
-#
-
-CREATE TABLE t1 (
-id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
-barcode INT(8) UNSIGNED ZEROFILL nOT NULL,
-PRIMARY KEY (id),
-UNIQUE KEY barcode (barcode)
-);
-
-INSERT INTO t1 (id, barcode) VALUES (1, 12345678);
-INSERT INTO t1 (id, barcode) VALUES (2, 12345679);
-
-CREATE TABLE test.t2 (
-id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
-barcode BIGINT(11) UNSIGNED ZEROFILL NOT NULL,
-PRIMARY KEY (id)
-);
-
-INSERT INTO test.t2 (id, barcode) VALUES (1, 12345106708);
-INSERT INTO test.t2 (id, barcode) VALUES (2, 12345106709);
-
-CREATE FUNCTION f1(p INT(8))
-RETURNS BIGINT(11) UNSIGNED
-READS SQL DATA
-RETURN FLOOR(p/1000)*1000000 + 100000 + FLOOR((p MOD 1000)/10)*100 + (p MOD 10);
-
-#
-# - Check.
-#
-
-SELECT DISTINCT t1.barcode, f1(t1.barcode)
-FROM t1
-INNER JOIN t2
-ON f1(t1.barcode) = t2.barcode
-WHERE t1.barcode=12345678;
-barcode f1(t1.barcode)
-12345678 12345106708
-
-#
-# - Cleanup.
-#
-
-DROP TABLE t1;
-DROP TABLE t2;
-DROP FUNCTION f1;
-
-#
-# Bug#31226.
-#
-
-#
-# - Prepare.
-#
-
-DROP TABLE IF EXISTS t1;
-DROP FUNCTION IF EXISTS f1;
-
-#
-# - Create required objects.
-#
-
-CREATE TABLE t1(id INT);
-
-INSERT INTO t1 VALUES (1), (2), (3);
-
-CREATE FUNCTION f1()
-RETURNS DATETIME
-NOT DETERMINISTIC NO SQL
-RETURN NOW();
-
-#
-# - Check.
-#
-
-SELECT f1() FROM t1 GROUP BY 1;
-f1()
-<timestamp>
-
-#
-# - Cleanup.
-#
-
-DROP TABLE t1;
-DROP FUNCTION f1;
-
-DROP PROCEDURE IF EXISTS db28318_a.t1;
-DROP PROCEDURE IF EXISTS db28318_b.t2;
-DROP DATABASE IF EXISTS db28318_a;
-DROP DATABASE IF EXISTS db28318_b;
-CREATE DATABASE db28318_a;
-CREATE DATABASE db28318_b;
-CREATE PROCEDURE db28318_a.t1() SELECT "db28318_a.t1";
-CREATE PROCEDURE db28318_b.t2() CALL t1();
-use db28318_a;
-CALL db28318_b.t2();
-ERROR 42000: PROCEDURE db28318_b.t1 does not exist
-DROP PROCEDURE db28318_a.t1;
-DROP PROCEDURE db28318_b.t2;
-DROP DATABASE db28318_a;
-DROP DATABASE db28318_b;
-use test;
-DROP TABLE IF EXISTS t1;
-DROP PROCEDURE IF EXISTS bug29770;
-CREATE TABLE t1(a int);
-CREATE PROCEDURE bug29770()
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLSTATE '42S22' SET @state:= 'run';
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET @exception:= 'run';
-SELECT x FROM t1;
-END|
-CALL bug29770();
-SELECT @state, @exception;
-@state @exception
-run NULL
-DROP TABLE t1;
-DROP PROCEDURE bug29770;
-use test;
-drop table if exists t_33618;
-drop procedure if exists proc_33618;
-create table t_33618 (`a` int, unique(`a`), `b` varchar(30)) engine=myisam;
-insert into t_33618 (`a`,`b`) values (1,'1'),(2,'2');
-create procedure proc_33618(num int)
-begin
-declare count1 int default '0';
-declare vb varchar(30);
-declare last_row int;
-while(num>=1) do
-set num=num-1;
-begin
-declare cur1 cursor for select `a` from t_33618;
-declare continue handler for not found set last_row = 1;
-set last_row:=0;
-open cur1;
-rep1:
-repeat
-begin
-declare exit handler for 1062 begin end;
-fetch cur1 into vb;
-if (last_row = 1) then
-leave rep1;
-end if;
-end;
-until last_row=1
-end repeat;
-close cur1;
-end;
-end while;
-end//
-call proc_33618(20);
-drop table t_33618;
-drop procedure proc_33618;
-#
-# Bug#30787: Stored function ignores user defined alias.
-#
-use test;
-drop function if exists func30787;
-create table t1(f1 int);
-insert into t1 values(1),(2);
-create function func30787(p1 int) returns int
-begin
-return p1;
-end |
-select (select func30787(f1)) as ttt from t1;
-ttt
-1
-2
-drop function func30787;
-drop table t1;
-CREATE TABLE t1 (id INT);
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-CREATE PROCEDURE test_sp()
-SELECT t1.* FROM t1 RIGHT JOIN t1 t2 ON t1.id=t2.id;
-CALL test_sp();
-id
-1
-2
-3
-4
-CALL test_sp();
-id
-1
-2
-3
-4
-DROP PROCEDURE test_sp;
-DROP TABLE t1;
-create table t1(c1 INT);
-create function f1(p1 int) returns varchar(32)
-return 'aaa';
-create view v1 as select f1(c1) as parent_control_name from t1;
-create procedure p1()
-begin
-select parent_control_name as c1 from v1;
-end //
-call p1();
-c1
-call p1();
-c1
-drop procedure p1;
-drop function f1;
-drop view v1;
-drop table t1;
-drop procedure if exists `p2` $
-create procedure `p2`(in `a` text charset utf8)
-begin
-declare `pos` int default 1;
-declare `str` text charset utf8;
-set `str` := `a`;
-select substr(`str`, `pos`+ 1 ) into `str`;
-end $
-call `p2`('s s s s s s');
-drop procedure `p2`;
-drop table if exists t1;
-drop procedure if exists p1;
-create procedure p1() begin select * from t1; end$
-call p1$
-ERROR 42S02: Table 'test.t1' doesn't exist
-create table t1 (a integer)$
-call p1$
-a
-alter table t1 add b integer;
-call p1$
-a
-drop table t1;
-drop procedure p1;
-# ------------------------------------------------------------------
-# -- End of 5.0 tests
-# ------------------------------------------------------------------
-
-#
-# Bug#20550.
-#
-
-#
-# - Prepare.
-#
-
-DROP VIEW IF EXISTS v1;
-DROP VIEW IF EXISTS v2;
-DROP FUNCTION IF EXISTS f1;
-DROP FUNCTION IF EXISTS f2;
-
-#
-# - Create required objects.
-#
-
-CREATE FUNCTION f1() RETURNS VARCHAR(65525) RETURN 'Hello';
-
-CREATE FUNCTION f2() RETURNS TINYINT RETURN 1;
-
-CREATE VIEW v1 AS SELECT f1();
-
-CREATE VIEW v2 AS SELECT f2();
-
-#
-# - Check.
-#
-
-SELECT DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'v1';
-DATA_TYPE
-varchar
-
-SELECT DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'v2';
-DATA_TYPE
-tinyint
-
-#
-# - Cleanup.
-#
-
-DROP FUNCTION f1;
-DROP FUNCTION f2;
-DROP VIEW v1;
-DROP VIEW v2;
-
-#
-# - Bug#24923: prepare.
-#
-
-DROP FUNCTION IF EXISTS f1;
-
-#
-# - Bug#24923: create required objects.
-#
-
-CREATE FUNCTION f1(p INT)
-RETURNS ENUM ('Very_long_enum_element_identifier',
-'Another_very_long_enum_element_identifier')
-BEGIN
-CASE p
-WHEN 1 THEN
-RETURN 'Very_long_enum_element_identifier';
-ELSE
-RETURN 'Another_very_long_enum_element_identifier';
-END CASE;
-END|
-
-#
-# - Bug#24923: check.
-#
-
-SELECT f1(1);
-f1(1)
-Very_long_enum_element_identifier
-
-SELECT f1(2);
-f1(2)
-Another_very_long_enum_element_identifier
-
-SHOW CREATE FUNCTION f1;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-f1 CREATE DEFINER=`root`@`localhost` FUNCTION `f1`(p INT) RETURNS enum('Very_long_enum_element_identifier','Another_very_long_enum_element_identifier') CHARSET latin1
-BEGIN
-CASE p
-WHEN 1 THEN
-RETURN 'Very_long_enum_element_identifier';
-ELSE
-RETURN 'Another_very_long_enum_element_identifier';
-END CASE;
-END latin1 latin1_swedish_ci latin1_swedish_ci
-#
-# - Bug#24923: cleanup.
-#
-
-DROP FUNCTION f1;
-
-drop procedure if exists p;
-set @old_mode= @@sql_mode;
-set @@sql_mode= cast(pow(2,32)-1 as unsigned integer);
-select @@sql_mode into @full_mode;
-create procedure p() as begin end;
-call p();
-set @@sql_mode= @old_mode;
-select replace(@full_mode, 'ALLOW_INVALID_DATES', 'INVALID_DATES') into @full_mode;
-select name from mysql.proc where name = 'p' and sql_mode = @full_mode;
-name
-p
-drop procedure p;
-CREATE DEFINER = 'root'@'localhost' PROCEDURE p1()
-NOT DETERMINISTIC
-CONTAINS SQL
-SQL SECURITY DEFINER
-COMMENT ''
-BEGIN
-SHOW TABLE STATUS like 't1';
-END;//
-CREATE TABLE t1 (f1 INT);
-CALL p1();
-CALL p1();
-CALL p1();
-CALL p1();
-DROP PROCEDURE p1;
-DROP TABLE t1;
-CREATE TABLE t1 ( f1 integer, primary key (f1));
-CREATE TABLE t2 LIKE t1;
-CREATE TEMPORARY TABLE t3 LIKE t1;
-CREATE PROCEDURE p1 () BEGIN SELECT f1 FROM t3 AS A WHERE A.f1 IN ( SELECT f1 FROM t3 ) ;
-END|
-CALL p1;
-f1
-CREATE VIEW t3 AS SELECT f1 FROM t2 A WHERE A.f1 IN ( SELECT f1 FROM t2 );
-DROP TABLE t3;
-CALL p1;
-f1
-CALL p1;
-f1
-DROP PROCEDURE p1;
-DROP TABLE t1, t2;
-DROP VIEW t3;
-#
-# Bug #46629: Item_in_subselect::val_int(): Assertion `0'
-# on subquery inside a SP
-#
-CREATE TABLE t1(a INT);
-CREATE TABLE t2(a INT, b INT PRIMARY KEY);
-CREATE PROCEDURE p1 ()
-BEGIN
-SELECT a FROM t1 A WHERE A.b IN (SELECT b FROM t2 AS B);
-END|
-CALL p1;
-ERROR 42S22: Unknown column 'A.b' in 'IN/ALL/ANY subquery'
-CALL p1;
-ERROR 42S22: Unknown column 'A.b' in 'IN/ALL/ANY subquery'
-DROP PROCEDURE p1;
-DROP TABLE t1, t2;
-#
-# Bug#47627: SET @@{global.session}.local_variable in stored routine causes crash
-# Bug#48626: Crash or lost connection using SET for declared variables with @@
-#
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-DROP PROCEDURE IF EXISTS p3;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE v INT DEFAULT 0;
-SET @@SESSION.v= 10;
-END//
-ERROR HY000: Unknown system variable 'v'
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE v INT DEFAULT 0;
-SET v= 10;
-END//
-call p2()//
-CREATE PROCEDURE p3()
-BEGIN
-DECLARE v INT DEFAULT 0;
-SELECT @@SESSION.v;
-END//
-ERROR HY000: Unknown system variable 'v'
-CREATE PROCEDURE p4()
-BEGIN
-DECLARE v INT DEFAULT 0;
-SET @@GLOBAL.v= 10;
-END//
-ERROR HY000: Unknown system variable 'v'
-CREATE PROCEDURE p5()
-BEGIN
-DECLARE init_connect INT DEFAULT 0;
-SET init_connect= 10;
-SET @@GLOBAL.init_connect= 'SELECT 1';
-SET @@SESSION.IDENTITY= 1;
-SELECT @@SESSION.IDENTITY;
-SELECT @@GLOBAL.init_connect;
-SELECT init_connect;
-END//
-CREATE PROCEDURE p6()
-BEGIN
-DECLARE v INT DEFAULT 0;
-SET @@v= 0;
-END//
-ERROR HY000: Unknown system variable 'v'
-SET @old_init_connect= @@GLOBAL.init_connect;
-CALL p5();
-@@SESSION.IDENTITY
-1
-@@GLOBAL.init_connect
-SELECT 1
-init_connect
-10
-SET @@GLOBAL.init_connect= @old_init_connect;
-DROP PROCEDURE p2;
-DROP PROCEDURE p5;
-#
-# Bug#11840395 (formerly known as bug#60347):
-# The string "versiondata" seems
-# to be 'leaking' into the schema name space
-#
-DROP DATABASE IF EXISTS mixedCaseDbName;
-CREATE DATABASE mixedCaseDbName;
-CREATE PROCEDURE mixedCaseDbName.tryMyProc() begin end|
-CREATE FUNCTION mixedCaseDbName.tryMyFunc() returns text begin return 'IT WORKS'; end
-|
-call mixedCaseDbName.tryMyProc();
-select mixedCaseDbName.tryMyFunc();
-mixedCaseDbName.tryMyFunc()
-IT WORKS
-DROP DATABASE mixedCaseDbName;
-#
-# Bug#11766594 59736: SELECT DISTINCT.. INCORRECT RESULT WITH DETERMINISTIC FUNCTION IN WHERE C
-#
-CREATE TABLE t1 (a INT, b INT, KEY(b));
-CREATE TABLE t2 (c INT, d INT, KEY(c));
-INSERT INTO t1 VALUES (1,1),(1,1),(1,2);
-INSERT INTO t2 VALUES (1,1),(1,2);
-CREATE FUNCTION f1() RETURNS INT DETERMINISTIC
-BEGIN
-DECLARE a int;
--- SQL statement inside
-SELECT 1 INTO a;
-RETURN a;
-END $
-SELECT COUNT(DISTINCT d) FROM t1, t2 WHERE a = c AND b = f1();
-COUNT(DISTINCT d)
-2
-DROP FUNCTION f1;
-DROP TABLE t1, t2;
-# ------------------------------------------------------------------
-# -- End of 5.1 tests
-# ------------------------------------------------------------------
-DROP FUNCTION IF EXISTS f1;
-DROP TABLE IF EXISTS t_non_existing;
-DROP TABLE IF EXISTS t1;
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-DECLARE v INT;
-SELECT a INTO v FROM t_non_existing;
-RETURN 1;
-END|
-CREATE TABLE t1 (a INT) ENGINE = myisam;
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t1 WHERE a = f1();
-ERROR 42S02: Table 'test.t_non_existing' doesn't exist
-DROP FUNCTION f1;
-DROP TABLE t1;
-DROP PROCEDURE IF EXISTS p1;
-CREATE PROCEDURE p1(a INT, b CHAR)
-BEGIN
-IF a > 0 THEN
-CALL p1(a-1, 'ab');
-ELSE
-SELECT 1;
-END IF;
-END|
-SET @save_max_sp_recursion= @@max_sp_recursion_depth;
-SET @@max_sp_recursion_depth= 5;
-CALL p1(4, 'a');
-1
-1
-Warnings:
-Warning 1265 Data truncated for column 'b' at row 1
-Warning 1265 Data truncated for column 'b' at row 1
-Warning 1265 Data truncated for column 'b' at row 1
-Warning 1265 Data truncated for column 'b' at row 1
-SET @@max_sp_recursion_depth= @save_max_sp_recursion;
-DROP PROCEDURE p1;
-DROP PROCEDURE IF EXISTS p1;
-CREATE PROCEDURE p1(a CHAR)
-BEGIN
-SELECT 1;
-SELECT CAST('10 ' as UNSIGNED INTEGER);
-SELECT 1;
-END|
-CALL p1('data truncated parameter');
-1
-1
-CAST('10 ' as UNSIGNED INTEGER)
-10
-1
-1
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-Note 1292 Truncated incorrect INTEGER value: '10 '
-DROP PROCEDURE p1;
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-DROP PROCEDURE IF EXISTS p3;
-DROP PROCEDURE IF EXISTS p4;
-CREATE PROCEDURE p1()
-CALL p2()|
-CREATE PROCEDURE p2()
-CALL p3()|
-CREATE PROCEDURE p3()
-CALL p4()|
-CREATE PROCEDURE p4()
-BEGIN
-SELECT 1;
-SELECT CAST('10 ' as UNSIGNED INTEGER);
-SELECT 2;
-END|
-CALL p1();
-1
-1
-CAST('10 ' as UNSIGNED INTEGER)
-10
-2
-2
-Warnings:
-Note 1292 Truncated incorrect INTEGER value: '10 '
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP PROCEDURE p3;
-DROP PROCEDURE p4;
-DROP FUNCTION IF EXISTS f1;
-DROP FUNCTION IF EXISTS f2;
-DROP FUNCTION IF EXISTS f3;
-DROP FUNCTION IF EXISTS f4;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a CHAR(2));
-INSERT INTO t1 VALUES ('aa');
-CREATE FUNCTION f1() RETURNS CHAR
-RETURN (SELECT f2())|
-CREATE FUNCTION f2() RETURNS CHAR
-RETURN (SELECT f3())|
-CREATE FUNCTION f3() RETURNS CHAR
-RETURN (SELECT f4())|
-CREATE FUNCTION f4() RETURNS CHAR
-BEGIN
-RETURN (SELECT a FROM t1);
-END|
-SELECT f1();
-f1()
-a
-Warnings:
-Warning 1265 Data truncated for column 'f4()' at row 1
-DROP FUNCTION f1;
-DROP FUNCTION f2;
-DROP FUNCTION f3;
-DROP FUNCTION f4;
-DROP TABLE t1;
-#
-# Bug#34197: CREATE PROCEDURE fails when COMMENT truncated in non
-# strict SQL mode
-#
-DROP PROCEDURE IF EXISTS p1;
-CREATE PROCEDURE p1 ()
-COMMENT
-'12345678901234567890123456789012345678901234567890123456789012345678901234567890'
-BEGIN
-END;
-SELECT comment FROM mysql.proc WHERE name = "p1";
-comment
-12345678901234567890123456789012345678901234567890123456789012345678901234567890
-SELECT routine_comment FROM information_schema.routines WHERE routine_name = "p1";
-routine_comment
-12345678901234567890123456789012345678901234567890123456789012345678901234567890
-DROP PROCEDURE p1;
-#
-# Bug #47313 assert in check_key_in_view during CALL procedure
-#
-DROP TABLE IF EXISTS t1;
-DROP VIEW IF EXISTS t1, t2_unrelated;
-DROP PROCEDURE IF EXISTS p1;
-CREATE PROCEDURE p1(IN x INT) INSERT INTO t1 VALUES (x);
-CREATE VIEW t1 AS SELECT 10 AS f1;
-# t1 refers to the view
-CALL p1(1);
-ERROR HY000: The target table t1 of the INSERT is not insertable-into
-CREATE TEMPORARY TABLE t1 (f1 INT);
-# t1 still refers to the view since it was inlined
-CALL p1(2);
-ERROR HY000: The target table t1 of the INSERT is not insertable-into
-DROP VIEW t1;
-# t1 now refers to the temporary table
-CALL p1(3);
-# Check which values were inserted into the temp table.
-SELECT * FROM t1;
-f1
-3
-DROP TEMPORARY TABLE t1;
-DROP PROCEDURE p1;
-# Now test what happens if the sp cache is invalidated.
-CREATE PROCEDURE p1(IN x INT) INSERT INTO t1 VALUES (x);
-CREATE VIEW t1 AS SELECT 10 AS f1;
-CREATE VIEW v2_unrelated AS SELECT 1 AS r1;
-# Load the procedure into the sp cache
-CALL p1(4);
-ERROR HY000: The target table t1 of the INSERT is not insertable-into
-CREATE TEMPORARY TABLE t1 (f1 int);
-ALTER VIEW v2_unrelated AS SELECT 2 AS r1;
-# Alter view causes the sp cache to be invalidated.
-# Now t1 refers to the temporary table, not the view.
-CALL p1(5);
-# Check which values were inserted into the temp table.
-SELECT * FROM t1;
-f1
-5
-DROP TEMPORARY TABLE t1;
-DROP VIEW t1, v2_unrelated;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1(IN x INT) INSERT INTO t1 VALUES (x);
-CREATE TEMPORARY TABLE t1 (f1 INT);
-# t1 refers to the temporary table
-CALL p1(6);
-CREATE VIEW t1 AS SELECT 10 AS f1;
-# Create view causes the sp cache to be invalidated.
-# t1 still refers to the temporary table since it shadows the view.
-CALL p1(7);
-DROP VIEW t1;
-# Check which values were inserted into the temp table.
-SELECT * FROM t1;
-f1
-6
-7
-DROP TEMPORARY TABLE t1;
-DROP PROCEDURE p1;
-#
-# Bug #11918 Can't use a declared variable in LIMIT clause
-#
-drop table if exists t1;
-drop procedure if exists p1;
-create table t1 (c1 int);
-insert into t1 (c1) values (1), (2), (3), (4), (5);
-create procedure p1()
-begin
-declare a integer;
-declare b integer;
-select * from t1 limit a, b;
-end|
-# How do we handle NULL limit values?
-call p1();
-c1
-drop table t1;
-create table t1 (a int);
-insert into t1 (a) values (1), (2), (3), (4), (5);
-#
-# Do we correctly resolve identifiers in LIMIT?
-# Since DROP and CREATE did not invalidate
-# the SP cache, we can't test until
-# we drop and re-create the procedure.
-#
-call p1();
-ERROR 42S22: Unknown column 'test.t1.c1' in 'field list'
-#
-# Drop and recreate the procedure, then repeat
-#
-drop procedure p1;
-create procedure p1()
-begin
-declare a integer;
-declare b integer;
-select * from t1 limit a, b;
-end|
-# Stored procedure variables are resolved correctly in the LIMIT
-call p1();
-a
-drop table t1;
-create table t1 (c1 int);
-insert into t1 (c1) values (1), (2), (3), (4), (5);
-drop procedure p1;
-# Try to create a procedure that
-# refers to non-existing variables.
-create procedure p1(p1 integer, p2 integer)
-select * from t1 limit a, b;
-ERROR 42000: Undeclared variable: a
-#
-# Try to use data types not allowed in LIMIT
-#
-create procedure p1(p1 date, p2 date) select * from t1 limit p1, p2;
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-create procedure p1(p1 integer, p2 float) select * from t1 limit p1, p2;
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-create procedure p1(p1 integer, p2 char(1)) select * from t1 limit p1, p2;
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-create procedure p1(p1 varchar(5), p2 char(1)) select * from t1 limit p1, p2;
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-create procedure p1(p1 decimal, p2 decimal) select * from t1 limit p1, p2;
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-create procedure p1(p1 double, p2 double) select * from t1 limit p1, p2;
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-#
-# Finally, test the valid case.
-#
-create procedure p1(p1 integer, p2 integer)
-select * from t1 limit p1, p2;
-call p1(NULL, NULL);
-c1
-call p1(0, 0);
-c1
-call p1(0, -1);
-c1
-1
-2
-3
-4
-5
-call p1(-1, 0);
-c1
-call p1(-1, -1);
-c1
-call p1(0, 1);
-c1
-1
-call p1(1, 0);
-c1
-call p1(1, 5);
-c1
-2
-3
-4
-5
-call p1(3, 2);
-c1
-4
-5
-# Try to create a function that
-# refers to non-existing variables.
-create function f1(p1 integer, p2 integer)
-returns int
-begin
-declare a int;
-set a = (select count(*) from t1 limit a, b);
-return a;
-end|
-ERROR 42000: Undeclared variable: b
-create function f1()
-returns int
-begin
-declare a, b, c int;
-set a = (select count(*) from t1 limit b, c);
-return a;
-end|
-# How do we handle NULL limit values?
-select f1();
-f1()
-NULL
-drop function f1;
-#
-# Try to use data types not allowed in LIMIT
-#
-create function f1(p1 date, p2 date)
-returns int
-begin
-declare a int;
-set a = (select count(*) from t1 limit p1, p2);
-return a;
-end|
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-create function f1(p1 integer, p2 float)
-returns int
-begin
-declare a int;
-set a = (select count(*) from t1 limit p1, p2);
-return a;
-end|
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-create function f1(p1 integer, p2 char(1))
-returns int
-begin
-declare a int;
-set a = (select count(*) from t1 limit p1, p2);
-return a;
-end|
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-create function f1(p1 varchar(5), p2 char(1))
-returns int
-begin
-declare a int;
-set a = (select count(*) from t1 limit p1, p2);
-return a;
-end|
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-create function f1(p1 decimal, p2 decimal)
-returns int
-begin
-declare a int;
-set a = (select count(*) from t1 limit p1, p2);
-return a;
-end|
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-create function f1(p1 double, p2 double)
-returns int
-begin
-declare a int;
-set a = (select count(*) from t1 limit p1, p2);
-return a;
-end|
-ERROR HY000: A variable of a non-integer based type in LIMIT clause
-#
-# Finally, test the valid case.
-#
-create function f1(p1 integer, p2 integer)
-returns int
-begin
-declare count int;
-set count= (select count(*) from (select * from t1 limit p1, p2) t_1);
-return count;
-end|
-select f1(0, 0);
-f1(0, 0)
-0
-select f1(0, -1);
-f1(0, -1)
-5
-select f1(-1, 0);
-f1(-1, 0)
-0
-select f1(-1, -1);
-f1(-1, -1)
-0
-select f1(0, 1);
-f1(0, 1)
-1
-select f1(1, 0);
-f1(1, 0)
-0
-select f1(1, 5);
-f1(1, 5)
-4
-select f1(3, 2);
-f1(3, 2)
-2
-# Cleanup
-drop table t1;
-drop procedure p1;
-drop function f1;
-#
-# BUG#11766234: 59299: ASSERT (TABLE_REF->TABLE || TABLE_REF->VIEW)
-# FAILS IN SET_FIELD_ITERATOR
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-CREATE VIEW v1 AS SELECT a FROM t2;
-CREATE PROCEDURE proc() SELECT * FROM t1 NATURAL JOIN v1;
-ALTER TABLE t2 CHANGE COLUMN a b CHAR;
-
-CALL proc();
-ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-CALL proc();
-ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-
-DROP TABLE t1,t2;
-DROP VIEW v1;
-DROP PROCEDURE proc;
-
-# --
-# -- Bug 11765684 - 58674: SP-cache does not detect changes in
-# -- pre-locking list caused by triggers
-# ---
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-DROP TABLE IF EXISTS t3;
-DROP PROCEDURE IF EXISTS p1;
-CREATE TABLE t1(a INT);
-CREATE TABLE t2(a INT);
-CREATE TABLE t3(a INT);
-CREATE PROCEDURE p1()
-INSERT INTO t1(a) VALUES (1);
-
-CREATE TRIGGER t1_ai AFTER INSERT ON t1
-FOR EACH ROW
-INSERT INTO t2(a) VALUES (new.a);
-
-CALL p1();
-
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1
-FOR EACH ROW
-INSERT INTO t3(a) VALUES (new.a);
-
-CALL p1();
-
-DROP TABLE t1, t2, t3;
-DROP PROCEDURE p1;
-
-
-# --
-# -- Bug#12652769 - 61470: case operator in stored routine retains old
-# -- value of input parameter
-# ---
-DROP TABLE IF EXISTS t1;
-DROP PROCEDURE IF EXISTS p1;
-CREATE TABLE t1 (s1 CHAR(5) CHARACTER SET utf8);
-INSERT INTO t1 VALUES ('a');
-CREATE PROCEDURE p1(dt DATETIME, i INT)
-BEGIN
-SELECT
-CASE
-WHEN i = 1 THEN 2
-ELSE dt
-END AS x1;
-SELECT
-CASE _latin1'a'
- WHEN _utf8'a' THEN 'A'
- END AS x2;
-SELECT
-CASE _utf8'a'
- WHEN _latin1'a' THEN _utf8'A'
- END AS x3;
-SELECT
-CASE s1
-WHEN _latin1'a' THEN _latin1'b'
- ELSE _latin1'c'
- END AS x4
-FROM t1;
-END|
-
-CALL p1('2011-04-03 05:14:10', 1);
-x1
-2
-x2
-A
-x3
-A
-x4
-b
-CALL p1('2011-04-03 05:14:11', 2);
-x1
-2011-04-03 05:14:11
-x2
-A
-x3
-A
-x4
-b
-CALL p1('2011-04-03 05:14:12', 2);
-x1
-2011-04-03 05:14:12
-x2
-A
-x3
-A
-x4
-b
-CALL p1('2011-04-03 05:14:13', 2);
-x1
-2011-04-03 05:14:13
-x2
-A
-x3
-A
-x4
-b
-
-DROP TABLE t1;
-DROP PROCEDURE p1;
-
-#
-# Bug#12621017 - Crash if a sp variable is used in the
-# limit clause of a set statement
-#
-DROP TABLE IF EXISTS t1;
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-CREATE TABLE t1 (c1 INT);
-INSERT INTO t1 VALUES (1);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE foo, cnt INT UNSIGNED DEFAULT 1;
-SET foo = (SELECT MIN(c1) FROM t1 LIMIT cnt);
-END|
-CREATE PROCEDURE p2()
-BEGIN
-DECLARE iLimit INT;
-DECLARE iVal INT;
-DECLARE cur1 CURSOR FOR
-SELECT c1 FROM t1
-LIMIT iLimit;
-SET iLimit=1;
-OPEN cur1;
-FETCH cur1 INTO iVal;
-END|
-CALL p1();
-CALL p2();
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP TABLE t1;
-
-# Bug#13805127: Stored program cache produces wrong result in same THD
-
-CREATE PROCEDURE p1(x INT UNSIGNED)
-BEGIN
-SELECT c1, t2.c2, count(c3)
-FROM
-(
-SELECT 3 as c2 FROM dual WHERE x = 1
-UNION
-SELECT 2 FROM dual WHERE x = 1 OR x = 2
-) AS t1,
-(
-SELECT '2012-03-01 01:00:00' AS c1, 3 as c2, 1 as c3 FROM dual
-UNION
-SELECT '2012-03-01 02:00:00', 3, 2 FROM dual
-UNION
-SELECT '2012-03-01 01:00:00', 2, 1 FROM dual
-) AS t2
-WHERE t2.c2 = t1.c2
-GROUP BY c1, c2
-;
-END|
-
-CALL p1(1);
-c1 c2 count(c3)
-2012-03-01 01:00:00 2 1
-2012-03-01 01:00:00 3 1
-2012-03-01 02:00:00 3 1
-CALL p1(2);
-c1 c2 count(c3)
-2012-03-01 01:00:00 2 1
-CALL p1(1);
-c1 c2 count(c3)
-2012-03-01 01:00:00 2 1
-2012-03-01 01:00:00 3 1
-2012-03-01 02:00:00 3 1
-DROP PROCEDURE p1;
-# End of 5.5 test
-#
-# Bug#12663165 SP DEAD CODE REMOVAL DOESN'T UNDERSTAND CONTINUE HANDLERS
-#
-DROP FUNCTION IF EXISTS f1;
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION BEGIN END;
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION RETURN f1();
-BEGIN
-DECLARE CONTINUE HANDLER FOR SQLEXCEPTION RETURN f1();
-RETURN f1();
-END;
-END;
-RETURN 1;
-END $
-SELECT f1();
-f1()
-1
-DROP FUNCTION f1;
-# ------------------------------------------------------------------
-# -- End of 5.1 tests
-# ------------------------------------------------------------------
-#
-# lp:993459 Execution of PS for a query with GROUP BY
-# returns wrong result (see also mysql bug#13805127)
-#
-
-# Bug#13805127: Stored program cache produces wrong result in same THD
-
-CREATE PROCEDURE p1(x INT UNSIGNED)
-BEGIN
-SELECT c1, t2.c2, count(c3)
-FROM
-(
-SELECT 3 as c2 FROM dual WHERE x = 1
-UNION
-SELECT 2 FROM dual WHERE x = 1 OR x = 2
-) AS t1,
-(
-SELECT '2012-03-01 01:00:00' AS c1, 3 as c2, 1 as c3 FROM dual
-UNION
-SELECT '2012-03-01 02:00:00', 3, 2 FROM dual
-UNION
-SELECT '2012-03-01 01:00:00', 2, 1 FROM dual
-) AS t2
-WHERE t2.c2 = t1.c2
-GROUP BY c1, c2
-;
-END|
-
-CALL p1(1);
-c1 c2 count(c3)
-2012-03-01 01:00:00 2 1
-2012-03-01 01:00:00 3 1
-2012-03-01 02:00:00 3 1
-CALL p1(2);
-c1 c2 count(c3)
-2012-03-01 01:00:00 2 1
-CALL p1(1);
-c1 c2 count(c3)
-2012-03-01 01:00:00 2 1
-2012-03-01 01:00:00 3 1
-2012-03-01 02:00:00 3 1
-DROP PROCEDURE p1;
-
-MDEV-3900 Optimizer difference between MySQL and MariaDB with stored functions in WHERE clause of UPDATE or DELETE statements
-
-CREATE FUNCTION tdn() RETURNS int(7) DETERMINISTIC RETURN to_days(now());
-CREATE TABLE t1 (pk INT NOT NULL AUTO_INCREMENT PRIMARY KEY, daynum INT, a CHAR(1), INDEX(daynum), INDEX(a)) ENGINE=MyISAM;
-INSERT INTO t1 (daynum) VALUES (1),(2),(3),(4),(5),(TO_DAYS(NOW())),(7),(8);
-INSERT INTO t1 (daynum) SELECT a1.daynum FROM t1 a1, t1 a2, t1 a3, t1 a4, t1 a5;
-FLUSH TABLES;
-FLUSH STATUS;
-SHOW STATUS LIKE '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-UPDATE t1 SET a = '+' WHERE daynum=tdn();
-SHOW STATUS LIKE '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 4097
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-drop function tdn;
-drop table t1;
-#
-# lp:1002157 : testing stored function
-# bug#62125 result for null incorrectly yields 1292 warning.
-#
-DROP FUNCTION IF EXISTS f1;
-DROP FUNCTION IF EXISTS f2;
-DROP FUNCTION IF EXISTS f3;
-DROP FUNCTION IF EXISTS f4;
-CREATE FUNCTION f1() RETURNS VARCHAR(1)
-BEGIN RETURN 'X'; END;/
-CREATE FUNCTION f2() RETURNS CHAR(1)
-BEGIN RETURN 'X'; END;/
-CREATE FUNCTION f3() RETURNS VARCHAR(1)
-BEGIN RETURN NULL; END;/
-CREATE FUNCTION f4() RETURNS CHAR(1)
-BEGIN RETURN NULL; END;/
-SELECT f1() IS NULL;
-f1() IS NULL
-0
-SELECT f2() IS NULL;
-f2() IS NULL
-0
-SELECT f3() IS NULL;
-f3() IS NULL
-1
-SELECT f4() IS NULL;
-f4() IS NULL
-1
-DROP FUNCTION f1;
-DROP FUNCTION f2;
-DROP FUNCTION f3;
-DROP FUNCTION f4;
-
-Stored procedures and a condition handler in a nested procedure call
-doesn't suppress the condition from being passed on to the calling
-procedure
-
-drop procedure if exists p1;
-drop procedure if exists p0;
-create table t1 (id int);
-create procedure p1 () begin
-declare i int default 0;
-declare continue handler for not found begin
-select "You should see this message and the warning that generated this" as "message";
-show warnings;
-end;
-select id into i from t1;
-end$$
-create procedure p0 () begin
-declare continue handler for not found begin
-select "You should NOT see this message" as "message";
-end;
-call p1();
-end$$
-call p0();
-message
-You should see this message and the warning that generated this
-Level Code Message
-Warning 1329 No data - zero rows fetched, selected, or processed
-drop procedure p1;
-drop procedure p0;
-drop table t1;
-
-Test if stored procedures propagates errors
-
-create table t1 (id int primary key);
-create procedure p1 () begin
-insert into t1 values(1);
-insert into t1 values(2);
-insert into t1 values(2);
-insert into t1 values(3);
-end$$
-create procedure p2 () begin
-declare x int;
-select id into x from t1 where id=5;
-end$$
-call p1();
-ERROR 23000: Duplicate entry '2' for key 'PRIMARY'
-show warnings;
-Level Code Message
-Error 1062 Duplicate entry '2' for key 'PRIMARY'
-Note 4094 At line 5 in test.p1
-select * from t1;
-id
-1
-2
-call p2();
-Warnings:
-Warning 1329 No data - zero rows fetched, selected, or processed
-drop procedure p1;
-drop procedure p2;
-drop table t1;
-#
-# MDEV-4978 - Server cursor is broken with blobs in the select list,
-# ORDER BY does not work
-#
-CREATE TABLE t1(a INT, b BLOB);
-INSERT INTO t1 VALUES(1,REPEAT('a',4835)),(2,'b'),(3,'c'),(4,'d'),(5,REPEAT('e',805)),(6,'f');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE done INT DEFAULT 0;
-DECLARE v1 INT;
-DECLARE v2 BLOB;
-DECLARE c1 CURSOR FOR SELECT * FROM t1 ORDER BY a;
-DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET done=1;
-OPEN c1;
-REPEAT
-FETCH c1 INTO v1, v2;
-IF NOT done THEN
-SELECT v1;
-END IF;
-UNTIL done END REPEAT;
-CLOSE c1;
-END|
-CALL p1;
-v1
-1
-v1
-2
-v1
-3
-v1
-4
-v1
-5
-v1
-6
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# MDEV-10713: signal 11 error on multi-table update - crash in
-# handler::increment_statistics or in make_select or assertion
-# failure pfs_thread == ((PFS_thread*) pthread_getspecific((THR_PFS)))
-#
-CREATE TABLE `t1` (
-`CLOSE_YN` varchar(10) COLLATE utf8_bin DEFAULT NULL
-) DEFAULT CHARSET=utf8 COLLATE=utf8_bin ;
-CREATE TABLE `t2` (
-`ap_close_to` varchar(8) COLLATE utf8_bin DEFAULT NULL
-) DEFAULT CHARSET=utf8 COLLATE=utf8_bin ;
-insert t1 values (1);
-CREATE FUNCTION `f1`(`P_DC_CD` VARBINARY(50), `P_SYS_DATE` DATETIME) RETURNS datetime
-DETERMINISTIC
-SQL SECURITY INVOKER
-BEGIN
-DECLARE V_SYS_DATE DATETIME;
-SELECT now() AS LOC_DATE INTO V_SYS_DATE ;
-RETURN v_sys_date ;
-END $$
-update t1 S
-JOIN
-(
-SELECT CASE
-WHEN DATE_FORMAT( f1('F01', NOW()) , '%Y%m%d') <= CLOSE_YMD
-THEN '99991231'
- ELSE '' END ACCOUNT_APPLY_YYYYMMDD
-FROM (
-select case
-when 'AP'='AP'
- then ap_close_to
-end AS CLOSE_YMD
-from t2
-) A
-) X
-SET S.CLOSE_YN = ''
-where 1=1;
-drop function if exists f1;
-drop table t1,t2;
-# End of 5.5 test
-#
-# MDEV-7040: Crash in field_conv, memcpy_field_possible, part#2
-#
-create table t1 (
-col1 bigint(20),
-col2 char(1),
-col3 char(2)
-);
-insert into t1 values (1,'a','a'), (2,'b','b');
-create table t2 as select * from t1;
-create table t3 as select * from t1;
-create table t4 as select * from t1;
-create table t5 as select * from t1;
-create table t6 as select * from t1;
-flush tables;
-CREATE PROCEDURE p1()
-begin
-DECLARE _var1 bigint(20) UNSIGNED;
-DECLARE _var2 CHAR(1) DEFAULT NULL;
-DECLARE _var3 CHAR(1) DEFAULT NULL;
-DECLARE _done BOOLEAN DEFAULT 0;
-declare cur1 cursor for
-select col1, col2, col3
-from t1
-where
-col1 in (select t2.col1 from t2 where t2.col2=t1.col2) or
-col2 in (select t3.col3 from t3 where t3.col3=t1.col2) ;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET _done = 1;
-OPEN cur1;
-set _var1 = (select _var1 from t4 limit 1);
-set _var1 = (select _var1 from t5 limit 1);
-set _var1 = (select _var1 from t6 limit 1);
-label1:
-LOOP
-SET _done = 0;
-FETCH cur1 INTO _var1, _var2, _var3;
-IF _done THEN
-LEAVE label1;
-END IF;
-END LOOP label1;
-CLOSE cur1;
-end|
-set @tmp_toc= @@table_open_cache;
-set @tmp_tdc= @@table_definition_cache;
-set global table_open_cache=1;
-set global table_definition_cache=1;
-Warnings:
-Warning 1292 Truncated incorrect table_definition_cache value: '1'
-call p1();
-set global table_open_cache= @tmp_toc;
-set global table_definition_cache= @tmp_tdc;
-drop procedure p1;
-drop table t1,t2,t3,t4,t5,t6;
-#
-# MDEV-11935: Queries in stored procedures with and
-# EXISTS(SELECT * FROM VIEW) crashes and closes hte conneciton.
-#
-CREATE TABLE ANY_TABLE (
-ENTITY_UID BIGINT NOT NULL
-);
-CREATE TABLE SECURITY_PATH(
-origid BIGINT UNSIGNED NOT NULL,
-destid BIGINT UNSIGNED NOT NULL,
-KEY (destid)
-);
-CREATE VIEW ENTITY_ACCESS (
-ENTITY_UID,
-OWNER_UID
-) AS
-SELECT SP1.origid,
-SP2.destid
-FROM SECURITY_PATH SP1
-JOIN SECURITY_PATH SP2 ON SP1.destid = SP2.origid
-;
-CREATE PROCEDURE SP_EXAMPLE_SELECT ()
-BEGIN
-SELECT *
-FROM ANY_TABLE AT1
-WHERE EXISTS ( SELECT *
-FROM ENTITY_ACCESS EA
-WHERE AT1.ENTITY_UID = EA.ENTITY_UID
-AND EA.OWNER_UID IS NULL );
-END
-//
-CALL SP_EXAMPLE_SELECT ();
-ENTITY_UID
-CALL SP_EXAMPLE_SELECT ();
-ENTITY_UID
-drop procedure SP_EXAMPLE_SELECT;
-drop view ENTITY_ACCESS;
-drop table ANY_TABLE, SECURITY_PATH;
-# End of 10.0 test
-CREATE FUNCTION f(f1 VARCHAR(64) COLLATE latin1_german2_ci)
-RETURNS VARCHAR(64)
-BEGIN
-RETURN 'str';
-END|
-DROP FUNCTION f|
-CREATE FUNCTION f(f1 VARCHAR(64))
-RETURNS VARCHAR(64) COLLATE latin1_german2_ci
-BEGIN
-RETURN 'str';
-END|
-DROP FUNCTION f|
-CREATE FUNCTION f(f1 VARCHAR(64))
-RETURNS VARCHAR(64)
-BEGIN
-DECLARE f2 VARCHAR(64) COLLATE latin1_german2_ci;
-RETURN 'str';
-END|
-DROP FUNCTION f|
-#
-# MDEV-7023: Error 2027: Malformed packet and assertion
-# `field_types == 0 || field_types[field_pos] == MYSQL_TYPE_INT24 ||
-#field_types[field_pos] == MYSQL_TYPE_LONG' failure in
-#Protocol_text::store_long
-#
-create table t1 (i int);
-create table t2 (i int);
-create function f() returns int
-begin
-analyze insert into t1 values (1);
-return 1;
-end |
-ERROR 0A000: Not allowed to return a result set from a function
-create function f() returns int
-begin
-analyze insert t1 select * from t2;
-return 1;
-end |
-ERROR 0A000: Not allowed to return a result set from a function
-create function f() returns int
-begin
-analyze delete from t1;
-return 1;
-end |
-ERROR 0A000: Not allowed to return a result set from a function
-create function f() returns int
-begin
-analyze delete t1 from t1,t2;
-return 1;
-end |
-ERROR 0A000: Not allowed to return a result set from a function
-create function f() returns int
-begin
-analyze update t1 set i=1;
-return 1;
-end |
-ERROR 0A000: Not allowed to return a result set from a function
-create function f() returns int
-begin
-analyze update t1,t2 set i=1;
-return 1;
-end |
-ERROR 0A000: Not allowed to return a result set from a function
-create function f() returns int
-begin
-analyze replace t1 set i=1;
-return 1;
-end |
-ERROR 0A000: Not allowed to return a result set from a function
-create function f() returns int
-begin
-analyze replace t1 select * from t2;
-return 1;
-end |
-ERROR 0A000: Not allowed to return a result set from a function
-drop table t1,t2;
-#
-# MDEV-11584: GRANT inside an SP does not work well on 2nd execution
-#
-CREATE PROCEDURE sp1()
-GRANT ALL PRIVILEGES ON *.* TO 'foo'@'%' IDENTIFIED BY 'pass';
-CALL sp1();
-CALL sp1();
-drop user 'foo'@'%';
-drop procedure sp1;
-#
-# MDEV-10972: Insert from select / view / union --
-# repeatable crash in 10.1, 10.2 Linux/Mac/Windows
-#
-create table t (id int auto_increment primary key);
-insert into t values (9494),(9495),(9496),(9497),(9498),(9499),(9500),(9501),(9502),(9503);
-create VIEW v AS
-select id from t
-union
-select id from t
-;
-drop procedure if exists p;
-Warnings:
-Note 1305 PROCEDURE test.p does not exist
-create procedure p()
-insert into tmp_t select t.id from (
-select id from v
-union
-select id from v
-) sq
-inner join t on (sq.id = t.id);
-CALL p();
-ERROR 42S02: Table 'test.tmp_t' doesn't exist
-create table tmp_t (id int null);
-CALL p();
-drop procedure p;
-drop view v;
-drop table t, tmp_t;
-#
-# MDEV-13936: Server crashes in Time_and_counter_tracker::incr_loops
-#
-CREATE TABLE t1 (i INT);
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE RAND() > 0.5;
-CREATE FUNCTION f1() RETURNS INT RETURN ( SELECT MAX(i) FROM v1 );
-REPLACE INTO v1 VALUES (f1());
-ERROR HY000: The target table v1 of the INSERT is not insertable-into
-SET @aux = f1();
-DROP FUNCTION f1;
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-14857: problem with 10.2.11 server crashing when
-# executing stored procedure
-#
-SET max_sp_recursion_depth=10;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (b INT);
-CREATE PROCEDURE proc_0()
-BEGIN
-CALL empty_1();
-CALL proc_1();
-END ||
-CREATE PROCEDURE proc_1()
-BEGIN
-CALL proc_2();
-CALL proc_3();
-CALL proc_4();
-CALL proc_5();
-END ||
-CREATE PROCEDURE proc_2()
-CALL proc_6();
-||
-CREATE PROCEDURE proc_3()
-BEGIN
-CALL empty_2();
-CALL empty_3();
-END ||
-CREATE PROCEDURE proc_4()
-CALL proc_7();
-||
-CREATE PROCEDURE proc_5()
-CALL proc_select();
-||
-CREATE PROCEDURE proc_6()
-BEGIN
-CALL empty_4();
-CALL empty_5();
-CALL empty_6();
-CALL empty_7();
-CALL proc_8();
-END ||
-CREATE PROCEDURE proc_7()
-CALL proc_9('foo');
-||
-CREATE PROCEDURE proc_8()
-CALL proc_10();
-||
-CREATE PROCEDURE proc_9(IN opt VARCHAR(40))
-IF LEFT(opt,1) <> '_' THEN
-CALL proc_11();
-END IF;
-||
-CREATE PROCEDURE proc_10()
-CALL proc_12();
-||
-CREATE PROCEDURE proc_11()
-BEGIN
-CALL empty_8();
-CALL empty_9();
-CALL empty_10();
-CALL proc_13();
-END ||
-CREATE PROCEDURE proc_12()
-BEGIN
-CALL empty_11();
-CALL empty_12();
-CALL empty_13();
-END ||
-CREATE PROCEDURE proc_13()
-BEGIN
-CALL proc_9('_bar');
-CALL empty_14();
-END ||
-CREATE PROCEDURE empty_1() BEGIN END ;
-CREATE PROCEDURE empty_2() BEGIN END ;
-CREATE PROCEDURE empty_3() BEGIN END ;
-CREATE PROCEDURE empty_4() BEGIN END ;
-CREATE PROCEDURE empty_5() BEGIN END ;
-CREATE PROCEDURE empty_6() BEGIN END ;
-CREATE PROCEDURE empty_7() BEGIN END ;
-CREATE PROCEDURE empty_8() BEGIN END ;
-CREATE PROCEDURE empty_9() BEGIN END ;
-CREATE PROCEDURE empty_10() BEGIN END ;
-CREATE PROCEDURE empty_11() BEGIN END ;
-CREATE PROCEDURE empty_12() BEGIN END ;
-CREATE PROCEDURE empty_13() BEGIN END ;
-CREATE PROCEDURE empty_14() BEGIN END ;
-CREATE PROCEDURE proc_select()
-SELECT * FROM t1 WHERE NOT EXISTS ( SELECT * FROM t2)
-;
-CALL proc_0();
-a
-DROP PROCEDURE empty_1;
-DROP PROCEDURE empty_2;
-DROP PROCEDURE empty_3;
-DROP PROCEDURE empty_4;
-DROP PROCEDURE empty_5;
-DROP PROCEDURE empty_6;
-DROP PROCEDURE empty_7;
-DROP PROCEDURE empty_8;
-DROP PROCEDURE empty_9;
-DROP PROCEDURE empty_10;
-DROP PROCEDURE empty_11;
-DROP PROCEDURE empty_12;
-DROP PROCEDURE empty_13;
-DROP PROCEDURE empty_14;
-DROP PROCEDURE proc_0;
-DROP PROCEDURE proc_1;
-DROP PROCEDURE proc_2;
-DROP PROCEDURE proc_3;
-DROP PROCEDURE proc_4;
-DROP PROCEDURE proc_5;
-DROP PROCEDURE proc_6;
-DROP PROCEDURE proc_7;
-DROP PROCEDURE proc_8;
-DROP PROCEDURE proc_9;
-DROP PROCEDURE proc_10;
-DROP PROCEDURE proc_11;
-DROP PROCEDURE proc_12;
-DROP PROCEDURE proc_13;
-DROP PROCEDURE proc_select;
-DROP TABLE t1, t2;
-SET max_sp_recursion_depth=default;
-#End of 10.1 tests
-#
-# MDEV-11081: CURSOR for query with GROUP BY
-#
-CREATE TABLE t1 (name VARCHAR(10), value INT);
-INSERT INTO t1 VALUES ('b',1);
-INSERT INTO t1 VALUES ('b',1);
-INSERT INTO t1 VALUES ('c',1);
-INSERT INTO t1 VALUES ('a',1);
-INSERT INTO t1 VALUES ('a',1);
-INSERT INTO t1 VALUES ('a',1);
-CREATE PROCEDURE p1 ()
-BEGIN
-DECLARE done INT DEFAULT FALSE;
-DECLARE v_name VARCHAR(10);
-DECLARE v_total INT;
-DECLARE c CURSOR FOR
-SELECT name, SUM(value) AS total FROM t1 GROUP BY name;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
-OPEN c;
-read_loop:
-LOOP
-FETCH c INTO v_name, v_total;
-IF done THEN
-LEAVE read_loop;
-END IF;
-SELECT v_name, v_total;
-END LOOP;
-CLOSE c;
-END;
-|
-CALL p1();
-v_name v_total
-a 3
-v_name v_total
-b 2
-v_name v_total
-c 1
-DROP PROCEDURE p1;
-DROP TABLE t1;
-#
-# MDEV-13346: CURSOR a query with GROUP BY using derived table
-#
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE c CURSOR FOR
-SELECT
-IFNULL(NULL,1) AS col
-FROM
-( select 1 as id ) AS t
-GROUP BY t.id
-;
-OPEN c;
-END
-|
-CALL p1();
-DROP PROCEDURE p1;
-#
-# MDEV-15057 Crash when using an unknown identifier as an SP parameter
-#
-CREATE OR REPLACE PROCEDURE p1 (a VARCHAR(10)) SELECT 1;
-CALL p1(a);
-ERROR 42S22: Unknown column 'a' in 'field list'
-drop procedure p1;
-CREATE OR REPLACE PROCEDURE p1 (a VARCHAR(10)) SELECT a|
-CREATE OR REPLACE PROCEDURE p2 ()
-BEGIN
-DECLARE name VARCHAR(10);
-SET name="hello";
-call p1(name);
-END|
-CREATE OR REPLACE PROCEDURE p3 ()
-BEGIN
-DECLARE name VARCHAR(10);
-SET name="hello";
-call p1(name2);
-END|
-call p2();
-a
-hello
-call p3();
-ERROR 42S22: Unknown column 'name2' in 'field list'
-drop procedure p1;
-drop procedure p2;
-drop procedure p3;
-#
-# MDEV-15328: MariaDB 10.2.13 Crashes upon CALL PROCEDURE PARAM
-# LAST_INSERT_ID ()
-# (part 1, part 2 is in query_cache.test)
-#
-CREATE PROCEDURE foo ( IN i INT UNSIGNED ) BEGIN END;
-CALL foo( LAST_INSERT_ID() );
-DROP PROCEDURE foo;
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12007 Allow ROW variables as a cursor FETCH target
-#
-# The cursor and the ROW variable in FETCH must have the same number of fields
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE done INT DEFAULT FALSE;
-DECLARE rec ROW(aa INT, bb VARCHAR(32), cc INT);
-DECLARE cur CURSOR FOR SELECT 10 AS a,'b10' AS b;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
-OPEN cur;
-read_loop:
-LOOP
-FETCH cur INTO rec;
-IF done THEN
-LEAVE read_loop;
-END IF;
-END LOOP;
-CLOSE cur;
-END;
-$$
-CALL p1();
-ERROR HY000: Incorrect number of FETCH variables
-DROP PROCEDURE p1;
-# Multiple ROW variables in FETCH
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE done INT DEFAULT FALSE;
-DECLARE rec1 ROW(aa INT);
-DECLARE rec2 ROW(aa INT);
-DECLARE cur CURSOR FOR SELECT 10 AS a, 20 AS b;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
-OPEN cur;
-read_loop:
-LOOP
-FETCH cur INTO rec1, rec2;
-IF done THEN
-LEAVE read_loop;
-END IF;
-END LOOP;
-CLOSE cur;
-END;
-$$
-CALL p1();
-ERROR 21000: Operand should contain 1 column(s)
-DROP PROCEDURE p1;
-# A complete working example
-CREATE TABLE t1 (a INT, b VARCHAR(32));
-INSERT INTO t1 VALUES (10,'b10');
-INSERT INTO t1 VALUES (20,'b20');
-INSERT INTO t1 VALUES (30,'b30');
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE done INT DEFAULT FALSE;
-DECLARE rec ROW(aa INT, bb VARCHAR(32));
-DECLARE cur CURSOR FOR SELECT a,b FROM t1;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
-OPEN cur;
-read_loop:
-LOOP
-FETCH cur INTO rec;
-IF done THEN
-LEAVE read_loop;
-END IF;
-SELECT CONCAT('rec=(',rec.aa,',',rec.bb,')') AS c;
-END LOOP;
-CLOSE cur;
-END;
-$$
-CALL p1();
-c
-rec=(10,b10)
-c
-rec=(20,b20)
-c
-rec=(30,b30)
-DROP PROCEDURE p1;
-DROP TABLE t1;
-# A ROW variable with a single field
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE done INT DEFAULT FALSE;
-DECLARE rec ROW(aa INT);
-DECLARE cur CURSOR FOR SELECT 10 AS a UNION SELECT 20;
-DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
-OPEN cur;
-read_loop:
-LOOP
-FETCH cur INTO rec;
-IF done THEN
-LEAVE read_loop;
-END IF;
-SELECT CONCAT('rec=(',rec.aa,')') AS c;
-END LOOP;
-CLOSE cur;
-END;
-$$
-CALL p1();
-c
-rec=(10)
-c
-rec=(20)
-DROP PROCEDURE p1;
-#
-# MDEV-14228 MariaDB crashes with function
-#
-CREATE TABLE t1 (c VARCHAR(16), KEY(c));
-INSERT INTO t1 VALUES ('foo');
-CREATE FUNCTION f1() RETURNS VARCHAR(16)
-BEGIN
-DECLARE v VARCHAR(16);
-FOR v IN (SELECT DISTINCT c FROM t1)
-DO
-IF (v = 'bar') THEN
-SELECT 1 INTO @a;
-END IF;
-END FOR;
-RETURN 'qux';
-END $$
-SELECT f1();
-ERROR HY000: Illegal parameter data types row and varchar for operation '='
-DROP FUNCTION f1;
-CREATE FUNCTION f1() RETURNS VARCHAR(16)
-BEGIN
-DECLARE v ROW TYPE OF t1;
-IF v = 'bar' THEN
-RETURN 'eq';
-END IF;
-RETURN 'ne';
-END $$
-SELECT f1();
-ERROR HY000: Illegal parameter data types row and varchar for operation '='
-DROP FUNCTION f1;
-CREATE FUNCTION f1() RETURNS VARCHAR(16)
-BEGIN
-DECLARE v ROW(a INT);
-IF v = 'bar' THEN
-RETURN 'eq';
-END IF;
-RETURN 'ne';
-END $$
-SELECT f1();
-ERROR HY000: Illegal parameter data types row and varchar for operation '='
-DROP FUNCTION f1;
-DROP TABLE t1;
-BEGIN NOT ATOMIC
-DECLARE v ROW(a INT);
-SELECT v IN ('a','b');
-END $$
-ERROR HY000: Illegal parameter data types row and varchar for operation 'in'
-BEGIN NOT ATOMIC
-DECLARE v ROW(a INT);
-SELECT 'a' IN (v,'b');
-END $$
-ERROR HY000: Illegal parameter data types varchar and row for operation 'in'
-BEGIN NOT ATOMIC
-DECLARE v ROW(a INT);
-SELECT 'a' IN ('b',v);
-END $$
-ERROR HY000: Illegal parameter data types varchar and row for operation 'in'
-#
-# MDEV-15112 Inconsistent evaluation of spvariable=0 in strict mode
-#
-SET sql_mode=STRICT_ALL_TABLES;
-CREATE OR REPLACE TABLE t1 (e TIMESTAMP(6));
-INSERT INTO t1 VALUES ('2001-01-01 10:20:30');
-CREATE FUNCTION f1(a VARBINARY(255))
-RETURNS INT
-DETERMINISTIC
-BEGIN
-RETURN a = timestamp'2038-01-19 03:14:07.999999'
- OR a = 0;
-END
-$$
-CREATE FUNCTION f2(a VARBINARY(255))
-RETURNS INT
-DETERMINISTIC
-BEGIN
-RETURN a = 0;
-END
-$$
-CREATE OR REPLACE FUNCTION f3(a VARBINARY(255))
-RETURNS INT
-DETERMINISTIC
-BEGIN
-RETURN a = timestamp'2038-01-19 03:14:07.999999'
- OR a = sleep(0);
-END
-$$
-SELECT f1(e) FROM t1;
-ERROR 22007: Truncated incorrect DOUBLE value: '2001-01-01 10:20:30'
-SELECT f2(e) FROM t1;
-ERROR 22007: Truncated incorrect DOUBLE value: '2001-01-01 10:20:30'
-SELECT f3(e) FROM t1;
-ERROR 22007: Truncated incorrect DOUBLE value: '2001-01-01 10:20:30'
-DROP FUNCTION f1;
-DROP FUNCTION f2;
-DROP FUNCTION f3;
-DROP TABLE t1;
-# Test affected rows from an sp
-create table t1 (a int);
-create procedure p1()
-begin
-insert into t1 values(1);
-insert into t1 values(2);
-end;
-$$
-create procedure p2()
-begin
-insert into t1 values(1);
-call p1();
-select row_count();
-insert into t1 values(2);
-insert into t1 values(2);
-end;
-$$
-CALL p2();
-row_count()
-2
-affected rows: 1
-affected rows: 5
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-drop table t1;
diff --git a/mysql-test/r/sp_gis.result b/mysql-test/r/sp_gis.result
deleted file mode 100644
index 7a76507754f..00000000000
--- a/mysql-test/r/sp_gis.result
+++ /dev/null
@@ -1,30 +0,0 @@
-use test;
-drop function if exists a;
-drop function if exists x;
-drop function if exists y;
-create function a() returns int
-return 1;
-create function x() returns int
-return 2;
-Warnings:
-Note 1585 This function 'x' has the same name as a native function
-create function y() returns int
-return 3;
-Warnings:
-Note 1585 This function 'y' has the same name as a native function
-select a();
-a()
-1
-select x();
-ERROR 42000: Incorrect parameter count in the call to native function 'x'
-select y();
-ERROR 42000: Incorrect parameter count in the call to native function 'y'
-select x(PointFromText("POINT(10 20)")), y(PointFromText("POINT(10 20)"));
-x(PointFromText("POINT(10 20)")) y(PointFromText("POINT(10 20)"))
-10 20
-select test.a(), test.x(), test.y();
-test.a() test.x() test.y()
-1 2 3
-drop function a;
-drop function x;
-drop function y;
diff --git a/mysql-test/r/sp_missing_4665.result b/mysql-test/r/sp_missing_4665.result
deleted file mode 100644
index 47587c180c6..00000000000
--- a/mysql-test/r/sp_missing_4665.result
+++ /dev/null
@@ -1,6 +0,0 @@
-create table t (a int);
-create or replace view v as select 1 from t where a;
-delete from v where (select g());
-ERROR 42000: FUNCTION test.g does not exist
-drop view v;
-drop table t;
diff --git a/mysql-test/r/sp_notembedded.result b/mysql-test/r/sp_notembedded.result
deleted file mode 100644
index 190f8f78d23..00000000000
--- a/mysql-test/r/sp_notembedded.result
+++ /dev/null
@@ -1,352 +0,0 @@
-set @old_concurrent_insert= @@global.concurrent_insert;
-set @@global.concurrent_insert= 0;
-drop table if exists t1,t3;
-drop procedure if exists bug4902|
-create procedure bug4902()
-begin
-show grants for 'root'@'localhost';
-end|
-call bug4902()|
-Grants for root@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
-GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
-call bug4902()|
-Grants for root@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
-GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
-drop procedure bug4902|
-drop procedure if exists bug4902_2|
-create procedure bug4902_2()
-begin
-show processlist;
-end|
-call bug4902_2()|
-show warnings|
-Level Code Message
-Note 1305 PROCEDURE test.bug4902_2 does not exist
-call bug4902_2()|
-show warnings|
-Level Code Message
-Note 1305 PROCEDURE test.bug4902_2 does not exist
-drop procedure bug4902_2|
-drop procedure if exists bug6807|
-create procedure bug6807()
-begin
-declare a int;
-set a = connection_id();
-kill query a;
-select 'Not reached';
-end|
-call bug6807()|
-ERROR 70100: Query execution was interrupted
-call bug6807()|
-ERROR 70100: Query execution was interrupted
-drop procedure bug6807|
-drop function if exists bug10100f|
-drop procedure if exists bug10100p|
-drop procedure if exists bug10100t|
-drop procedure if exists bug10100pt|
-drop procedure if exists bug10100pv|
-drop procedure if exists bug10100pd|
-drop procedure if exists bug10100pc|
-create function bug10100f(prm int) returns int
-begin
-if prm > 1 then
-return prm * bug10100f(prm - 1);
-end if;
-return 1;
-end|
-set statement sql_mode = '' for
-create procedure bug10100p(prm int, inout res int)
-begin
-set res = res * prm;
-if prm > 1 then
-call bug10100p(prm - 1, res);
-end if;
-end|
-set statement sql_mode = '' for
-create procedure bug10100t(prm int)
-begin
-declare res int;
-set res = 1;
-call bug10100p(prm, res);
-select res;
-end|
-create table t3 (a int)|
-insert into t3 values (0)|
-create view v1 as select a from t3;
-create procedure bug10100pt(level int, lim int)
-begin
-if level < lim then
-update t3 set a=level;
-FLUSH TABLES;
-call bug10100pt(level+1, lim);
-else
-select * from t3;
-end if;
-end|
-create procedure bug10100pv(level int, lim int)
-begin
-if level < lim then
-update v1 set a=level;
-FLUSH TABLES;
-call bug10100pv(level+1, lim);
-else
-select * from v1;
-end if;
-end|
-prepare stmt2 from "select * from t3;";
-create procedure bug10100pd(level int, lim int)
-begin
-if level < lim then
-select level;
-prepare stmt1 from "update t3 set a=a+2";
-execute stmt1;
-FLUSH TABLES;
-execute stmt1;
-FLUSH TABLES;
-execute stmt1;
-FLUSH TABLES;
-deallocate prepare stmt1;
-execute stmt2;
-select * from t3;
-call bug10100pd(level+1, lim);
-else
-execute stmt2;
-end if;
-end|
-create procedure bug10100pc(level int, lim int)
-begin
-declare lv int;
-declare c cursor for select a from t3;
-open c;
-if level < lim then
-select level;
-fetch c into lv;
-select lv;
-update t3 set a=level+lv;
-FLUSH TABLES;
-call bug10100pc(level+1, lim);
-else
-select * from t3;
-end if;
-close c;
-end|
-set @@max_sp_recursion_depth=255|
-set @var=1|
-call bug10100p(255, @var)|
-call bug10100pt(1,255)|
-call bug10100pv(1,255)|
-call bug10100pd(1,255)|
-call bug10100pc(1,255)|
-set @@max_sp_recursion_depth=0|
-deallocate prepare stmt2|
-drop function bug10100f|
-drop procedure bug10100p|
-drop procedure bug10100t|
-drop procedure bug10100pt|
-drop procedure bug10100pv|
-drop procedure bug10100pd|
-drop procedure bug10100pc|
-drop view v1|
-drop table t3|
-drop procedure if exists bug15298_1;
-drop procedure if exists bug15298_2;
-create user 'mysqltest_1'@'localhost';
-grant all privileges on test.* to 'mysqltest_1'@'localhost';
-create procedure 15298_1 () sql security definer show grants for current_user;
-create procedure 15298_2 () sql security definer show grants;
-connect con1,localhost,mysqltest_1,,test;
-call 15298_1();
-Grants for root@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
-GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
-call 15298_2();
-Grants for root@localhost
-GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
-GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
-connection default;
-disconnect con1;
-drop user mysqltest_1@localhost;
-drop procedure 15298_1;
-drop procedure 15298_2;
-drop table if exists t1;
-drop procedure if exists p1;
-create table t1 (value varchar(15));
-create procedure p1() update t1 set value='updated' where value='old';
-call p1();
-insert into t1 (value) values ("old"),("irrelevant");
-connect rl_holder, localhost, root,,;
-connect rl_acquirer, localhost, root,,;
-connect rl_contender, localhost, root,,;
-connect rl_wait, localhost, root,,;
-connection rl_holder;
-select get_lock('b26162',120);
-get_lock('b26162',120)
-1
-connection rl_acquirer;
-select 'rl_acquirer', value from t1 where get_lock('b26162',120);;
-connection rl_wait;
-connection default;
-set session low_priority_updates=on;
-call p1();;
-connection rl_wait;
-connection rl_contender;
-select 'rl_contender', value from t1;
-rl_contender value
-rl_contender old
-rl_contender irrelevant
-connection rl_holder;
-select release_lock('b26162');
-release_lock('b26162')
-1
-connection rl_acquirer;
-rl_acquirer value
-rl_acquirer old
-rl_acquirer irrelevant
-connection default;
-disconnect rl_holder;
-disconnect rl_acquirer;
-disconnect rl_wait;
-disconnect rl_contender;
-drop procedure p1;
-drop table t1;
-set session low_priority_updates=default;
-INSERT IGNORE INTO mysql.user (Host, User, Password, Select_priv, Insert_priv, Update_priv,
-Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv,
-Grant_priv, References_priv, Index_priv, Alter_priv, Show_db_priv, Super_priv,
-Create_tmp_table_priv, Lock_tables_priv, Execute_priv, Repl_slave_priv, Repl_client_priv,
-Create_view_priv, Show_view_priv, Create_routine_priv, Alter_routine_priv,
-Create_user_priv, ssl_type, ssl_cipher, x509_issuer, x509_subject, max_questions,
-max_updates, max_connections, max_user_connections)
-VALUES('%', 'mysqltest_1', password(''), 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'N',
-'N', 'N', 'N', 'Y', 'Y', 'N', 'N', 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'N', '',
-'', '', '', '0', '0', '0', '0');
-Warnings:
-Warning 1364 Field 'authentication_string' doesn't have a default value
-FLUSH PRIVILEGES;
-connect con1, localhost, mysqltest_1,,;
-connection con1;
-CREATE PROCEDURE p1(i INT) BEGIN END;
-Warnings:
-Warning 1404 Failed to grant EXECUTE and ALTER ROUTINE privileges
-disconnect con1;
-connection default;
-DROP PROCEDURE p1;
-DELETE FROM mysql.user WHERE User='mysqltest_1';
-FLUSH PRIVILEGES;
-#
-# Bug#44521 Prepared Statement: CALL p() - crashes: `! thd->main_da.is_sent' failed et.al.
-#
-SELECT GET_LOCK('Bug44521', 0);
-GET_LOCK('Bug44521', 0)
-1
-connect con1,localhost,root,,;
-CREATE PROCEDURE p()
-BEGIN
-SELECT 1;
-SELECT GET_LOCK('Bug44521', 100);
-SELECT 2;
-END$
-CALL p();;
-connection default;
-disconnect con1;
-SELECT RELEASE_LOCK('Bug44521');
-RELEASE_LOCK('Bug44521')
-1
-DROP PROCEDURE p;
-CREATE TABLE t1(a int);
-INSERT INTO t1 VALUES (1);
-CREATE FUNCTION f1 (inp TEXT) RETURNS INT NO SQL RETURN sleep(60);
-CREATE VIEW v1 AS SELECT f1('a') FROM t1;
-connect con1, localhost, root,,;
-SELECT * FROM v1;;
-connect con2, localhost, root,,;
-SELECT * FROM v1;
-connection default;
-connection con1;
-ERROR 70100: Query execution was interrupted
-connection con2;
-ERROR 70100: Query execution was interrupted
-connection default;
-DROP VIEW v1;
-DROP TABLE t1;
-DROP FUNCTION f1;
-disconnect con1;
-disconnect con2;
-# ------------------------------------------------------------------
-# -- End of 5.1 tests
-# ------------------------------------------------------------------
-#
-# Test for bug#11763757 "56510: ERROR 42000: FUNCTION DOES NOT EXIST
-# IF NOT-PRIV USER RECONNECTS ".
-#
-# The real problem was that server was unable handle properly stored
-# functions in databases which names contained dot.
-#
-connection default;
-DROP DATABASE IF EXISTS `my.db`;
-create database `my.db`;
-use `my.db`;
-CREATE FUNCTION f1(a int) RETURNS INT RETURN a;
-connect addcon, localhost, root,,;
-connection addcon;
-USE `my.db`;
-SELECT f1(1);
-f1(1)
-1
-SELECT `my.db`.f1(2);
-`my.db`.f1(2)
-2
-connection default;
-disconnect addcon;
-DROP DATABASE `my.db`;
-USE test;
-#
-# Bug#11763507 - 56224: FUNCTION NAME IS CASE-SENSITIVE
-#
-SET @@SQL_MODE = '';
-CREATE EVENT teste_bug11763507 ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 HOUR
-DO SELECT 1 $
-SHOW EVENTS LIKE 'teste_bug11763507';
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-test teste_bug11763507 root@localhost SYSTEM ONE TIME # # # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW EVENTS LIKE 'TESTE_bug11763507';
-Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
-test teste_bug11763507 root@localhost SYSTEM ONE TIME # # # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE EVENT teste_bug11763507;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-teste_bug11763507 SYSTEM # latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE EVENT TESTE_bug11763507;
-Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
-teste_bug11763507 SYSTEM # latin1 latin1_swedish_ci latin1_swedish_ci
-DROP EVENT teste_bug11763507;
-#END OF BUG#11763507 test.
-# ------------------------------------------------------------------
-# -- End of 5.1 tests
-# ------------------------------------------------------------------
-grant create routine on test.* to foo1@localhost identified by 'foo';
-update mysql.user set password = replace(password, '*', '-') where user='foo1';
-connect foo,localhost,foo1,foo;
-show grants;
-Grants for foo1@localhost
-GRANT USAGE ON *.* TO 'foo1'@'localhost' IDENTIFIED BY PASSWORD '*F3A2A51A9B0F2BE2468926B4132313728C250DBF'
-GRANT CREATE ROUTINE ON `test`.* TO 'foo1'@'localhost'
-connection default;
-flush privileges;
-connection foo;
-show grants;
-Grants for foo1@localhost
-GRANT USAGE ON *.* TO 'foo1'@'localhost' IDENTIFIED BY PASSWORD '-F3A2A51A9B0F2BE2468926B4132313728C250DBF'
-GRANT CREATE ROUTINE ON `test`.* TO 'foo1'@'localhost'
-create procedure spfoo() select 1;
-show grants;
-Grants for foo1@localhost
-GRANT USAGE ON *.* TO 'foo1'@'localhost' IDENTIFIED BY PASSWORD '-F3A2A51A9B0F2BE2468926B4132313728C250DBF'
-GRANT CREATE ROUTINE ON `test`.* TO 'foo1'@'localhost'
-GRANT EXECUTE, ALTER ROUTINE ON PROCEDURE `test`.`spfoo` TO 'foo1'@'localhost'
-connection default;
-disconnect foo;
-drop procedure spfoo;
-drop user foo1@localhost;
-set @@global.concurrent_insert= @old_concurrent_insert;
diff --git a/mysql-test/r/sp_stress_case.result b/mysql-test/r/sp_stress_case.result
deleted file mode 100644
index 8ec68363c8d..00000000000
--- a/mysql-test/r/sp_stress_case.result
+++ /dev/null
@@ -1,120 +0,0 @@
-DROP PROCEDURE IF EXISTS proc_19194_codegen;
-DROP PROCEDURE IF EXISTS bug_19194_simple;
-DROP PROCEDURE IF EXISTS bug_19194_searched;
-CREATE PROCEDURE proc_19194_codegen(
-IN proc_name VARCHAR(50),
-IN count INTEGER,
-IN simple INTEGER,
-OUT body MEDIUMTEXT)
-BEGIN
-DECLARE code MEDIUMTEXT;
-DECLARE i INT DEFAULT 1;
-SET code = concat("CREATE PROCEDURE ", proc_name, "(i INT)\n");
-SET code = concat(code, "BEGIN\n");
-SET code = concat(code, " DECLARE str CHAR(10);\n");
-IF (simple)
-THEN
-SET code = concat(code, " CASE i\n");
-ELSE
-SET code = concat(code, " CASE\n");
-END IF;
-WHILE (i <= count)
-DO
-IF (simple)
-THEN
-SET code = concat(code, " WHEN ", i, " THEN SET str=\"", i, "\";\n");
-ELSE
-SET code = concat(code, " WHEN i=", i, " THEN SET str=\"", i, "\";\n");
-END IF;
-SET i = i + 1;
-END WHILE;
-SET code = concat(code, " ELSE SET str=\"unknown\";\n");
-SET code = concat(code, " END CASE;\n");
-SET code = concat(code, " SELECT str;\n");
-SET code = concat(code, "END\n");
-SET body = code;
-END|
-set @body="";
-call proc_19194_codegen("test_simple", 10, 1, @body);
-select @body;
-@body
-CREATE PROCEDURE test_simple(i INT)
-BEGIN
- DECLARE str CHAR(10);
- CASE i
- WHEN 1 THEN SET str="1";
- WHEN 2 THEN SET str="2";
- WHEN 3 THEN SET str="3";
- WHEN 4 THEN SET str="4";
- WHEN 5 THEN SET str="5";
- WHEN 6 THEN SET str="6";
- WHEN 7 THEN SET str="7";
- WHEN 8 THEN SET str="8";
- WHEN 9 THEN SET str="9";
- WHEN 10 THEN SET str="10";
- ELSE SET str="unknown";
- END CASE;
- SELECT str;
-END
-
-call proc_19194_codegen("test_searched", 10, 0, @body);
-select @body;
-@body
-CREATE PROCEDURE test_searched(i INT)
-BEGIN
- DECLARE str CHAR(10);
- CASE
- WHEN i=1 THEN SET str="1";
- WHEN i=2 THEN SET str="2";
- WHEN i=3 THEN SET str="3";
- WHEN i=4 THEN SET str="4";
- WHEN i=5 THEN SET str="5";
- WHEN i=6 THEN SET str="6";
- WHEN i=7 THEN SET str="7";
- WHEN i=8 THEN SET str="8";
- WHEN i=9 THEN SET str="9";
- WHEN i=10 THEN SET str="10";
- ELSE SET str="unknown";
- END CASE;
- SELECT str;
-END
-
-CALL bug_19194_simple(1);
-str
-1
-CALL bug_19194_simple(2);
-str
-2
-CALL bug_19194_simple(1000);
-str
-1000
-CALL bug_19194_simple(4998);
-str
-4998
-CALL bug_19194_simple(4999);
-str
-4999
-CALL bug_19194_simple(9999);
-str
-unknown
-CALL bug_19194_searched(1);
-str
-1
-CALL bug_19194_searched(2);
-str
-2
-CALL bug_19194_searched(1000);
-str
-1000
-CALL bug_19194_searched(4998);
-str
-4998
-CALL bug_19194_searched(4999);
-str
-4999
-CALL bug_19194_searched(9999);
-str
-unknown
-DROP PROCEDURE proc_19194_codegen;
-DROP PROCEDURE bug_19194_simple;
-DROP PROCEDURE bug_19194_searched;
diff --git a/mysql-test/r/sp_sync.result b/mysql-test/r/sp_sync.result
deleted file mode 100644
index d6c170712a7..00000000000
--- a/mysql-test/r/sp_sync.result
+++ /dev/null
@@ -1,119 +0,0 @@
-Tests of synchronization of stored procedure execution.
-SET DEBUG_SYNC= 'RESET';
-#
-# Bug #30977 Concurrent statement using stored function and
-# DROP FUNCTION breaks SBR
-#
-# A stored routine could change after dispatch_command()
-# but before a MDL lock is taken. This must be noticed and the
-# sp cache flushed so the correct version can be loaded.
-#
-connect con2, localhost, root;
-connection default;
-CREATE FUNCTION f1() RETURNS INT RETURN 1;
-# Get f1 cached
-SELECT f1();
-f1()
-1
-# Then start executing it again...
-SET DEBUG_SYNC= 'before_execute_sql_command SIGNAL before WAIT_FOR changed';
-# Sending:
-SELECT f1();
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR before';
-# ... but before f1 is locked, change it.
-DROP FUNCTION f1;
-CREATE FUNCTION f1() RETURNS INT RETURN 2;
-SET DEBUG_SYNC= 'now SIGNAL changed';
-# We should now get '2' and not '1'.
-connection default;
-# Reaping: SELECT f1()
-f1()
-2
-disconnect con2;
-DROP FUNCTION f1;
-SET DEBUG_SYNC= 'RESET';
-#
-# Field translation items must be cleared in case of back-offs
-# for queries that use Information Schema tables. Otherwise
-# memory allocated in fix_fields() for views may end up referring
-# to freed memory.
-#
-DROP FUNCTION IF EXISTS f1;
-connect con2, localhost, root;
-connect con3, localhost, root;
-connection default;
-CREATE FUNCTION f1() RETURNS INT RETURN 0;
-connection con2;
-SET DEBUG_SYNC= 'after_wait_locked_pname SIGNAL locked WAIT_FOR issued';
-# con2 will now have an x-lock on f1
-# Sending:
-ALTER FUNCTION f1 COMMENT 'comment';
-connection default;
-SET DEBUG_SYNC= 'now WAIT_FOR locked';
-# This query will block due to the x-lock on f1 and back-off
-SHOW OPEN TABLES WHERE f1()=0;
-connection con3;
-# Check that the IS query is blocked before releasing the x-lock
-SET DEBUG_SYNC= 'now SIGNAL issued';
-connection default;
-# Reaping: ALTER FUNCTION f1 COMMENT 'comment'
-DROP FUNCTION f1;
-SET DEBUG_SYNC= 'RESET';
-disconnect con2;
-disconnect con3;
-#
-# Bug #48246 assert in close_thread_table
-#
-CREATE TABLE t0 (b INTEGER);
-CREATE TABLE t1 (a INTEGER);
-CREATE FUNCTION f1(b INTEGER) RETURNS INTEGER RETURN 1;
-CREATE PROCEDURE p1() SELECT COUNT(f1(a)) FROM t1, t0;
-INSERT INTO t0 VALUES(1);
-INSERT INTO t1 VALUES(1), (2);
-connect con2, localhost, root;
-CALL p1();
-COUNT(f1(a))
-2
-SET DEBUG_SYNC= 'after_open_table_mdl_shared SIGNAL locked_t1 WAIT_FOR go_for_t0';
-# This call used to cause an assertion. MDL deadlock with upcoming
-# LOCK TABLES statement will cause back-off and retry.
-# A variable indicating if a prelocking list exists, used to be not
-# reset properly causing an eventual assert.
-# Sending:
-CALL p1();
-connection default;
-SET DEBUG_SYNC= 'now WAIT_FOR locked_t1';
-# Issue LOCK TABLES statement which will enter in MDL deadlock
-# with CALL statement and as result will cause it to perform
-# back-off and retry.
-SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL go_for_t0';
-LOCK TABLES t0 WRITE, t1 WRITE;
-UNLOCK TABLES;
-connection con2;
-# Reaping: CALL p1()
-COUNT(f1(a))
-2
-connection default;
-disconnect con2;
-DROP PROCEDURE p1;
-DROP FUNCTION f1;
-DROP TABLES t0, t1;
-#
-# test for bug#11756013
-#
-DROP SCHEMA IF EXISTS s1;
-CREATE SCHEMA s1;
-CREATE PROCEDURE s1.p1() BEGIN END;
-connect con3, localhost, root;
-SET DEBUG_SYNC='before_db_dir_check SIGNAL check_db WAIT_FOR dropped_schema';
-CALL s1.p1;
-connection default;
-SET DEBUG_SYNC='now WAIT_FOR check_db';
-DROP SCHEMA s1;
-SET DEBUG_SYNC='now SIGNAL dropped_schema';
-connection con3;
-ERROR 42000: Unknown database 's1'
-connection default;
-disconnect con3;
-SET DEBUG_SYNC = 'RESET';
diff --git a/mysql-test/r/sp_trans.result b/mysql-test/r/sp_trans.result
deleted file mode 100644
index ef802279c9c..00000000000
--- a/mysql-test/r/sp_trans.result
+++ /dev/null
@@ -1,647 +0,0 @@
-set SQL_MODE="";
-drop table if exists t1, t2, t3;
-drop procedure if exists bug8850|
-create table t1 (a int) engine=innodb|
-create procedure bug8850()
-begin
-truncate table t1; insert t1 values (1); rollback;
-end|
-set autocommit=0|
-insert t1 values (2)|
-call bug8850()|
-commit|
-select * from t1|
-a
-call bug8850()|
-set autocommit=1|
-select * from t1|
-a
-drop table t1|
-drop procedure bug8850|
-drop function if exists bug10015_1|
-drop function if exists bug10015_2|
-drop function if exists bug10015_3|
-drop function if exists bug10015_4|
-drop function if exists bug10015_5|
-drop function if exists bug10015_6|
-drop function if exists bug10015_7|
-drop procedure if exists bug10015_8|
-create table t1 (id int) engine=innodb|
-create table t2 (id int primary key, j int) engine=innodb|
-insert into t1 values (1),(2),(3)|
-create function bug10015_1() returns int return (select count(*) from t1)|
-select *, bug10015_1() from t1|
-id bug10015_1()
-1 3
-2 3
-3 3
-drop function bug10015_1|
-create function bug10015_2() returns int
-begin
-declare i, s int;
-set i:= (select min(id) from t1);
-set s:= (select max(id) from t1);
-return (s - i);
-end|
-select *, bug10015_2() from t1|
-id bug10015_2()
-1 2
-2 2
-3 2
-drop function bug10015_2|
-create function bug10015_3() returns int
-return (select max(a.id - b.id) from t1 as a, t1 as b where a.id >= b.id)|
-select *, bug10015_3() from t1|
-id bug10015_3()
-1 2
-2 2
-3 2
-drop function bug10015_3|
-create function bug10015_4(i int) returns int
-begin
-declare m int;
-set m:= (select max(id) from t2);
-insert into t2 values (i, m);
-return m;
-end|
-select *, bug10015_4(id) from t1|
-id bug10015_4(id)
-1 NULL
-2 1
-3 2
-select * from t2|
-id j
-1 NULL
-2 1
-3 2
-drop function bug10015_4|
-create function bug10015_5(i int) returns int
-begin
-if (i = 5) then
-insert into t2 values (1, 0);
-end if;
-return i;
-end|
-insert into t1 values (bug10015_5(4)), (bug10015_5(5))|
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-select * from t1|
-id
-1
-2
-3
-drop function bug10015_5|
-create function bug10015_6(i int) returns int
-begin
-declare continue handler for sqlexception set @error_in_func:= 1;
-if (i = 5) then
-insert into t2 values (4, 0), (1, 0);
-end if;
-return i;
-end|
-set @error_in_func:= 0|
-insert into t1 values (bug10015_6(5)), (bug10015_6(6))|
-select @error_in_func|
-@error_in_func
-1
-select * from t1|
-id
-1
-2
-3
-5
-6
-select * from t2|
-id j
-1 NULL
-2 1
-3 2
-4 0
-drop function bug10015_6|
-create function bug10015_7() returns int
-begin
-alter table t1 add k int;
-return 1;
-end|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-create function bug10015_7() returns int
-begin
-start transaction;
-return 1;
-end|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-create function bug10015_7() returns int
-begin
-drop table t1;
-return 1;
-end|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-create function bug10015_7() returns int
-begin
-drop temporary table t1;
-return 1;
-end|
-drop function bug10015_7|
-create function bug10015_7() returns int
-begin
-commit;
-return 1;
-end|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-create function bug10015_7() returns int
-begin
-call bug10015_8();
-return 1;
-end|
-create procedure bug10015_8() alter table t1 add k int|
-select *, bug10015_7() from t1|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-drop procedure bug10015_8|
-create procedure bug10015_8() start transaction|
-select *, bug10015_7() from t1|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-drop procedure bug10015_8|
-create procedure bug10015_8() drop temporary table if exists t1_temp|
-select *, bug10015_7() from t1|
-id bug10015_7()
-1 1
-2 1
-3 1
-5 1
-6 1
-drop procedure bug10015_8|
-create procedure bug10015_8() commit|
-select *, bug10015_7() from t1|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-drop procedure bug10015_8|
-drop function bug10015_7|
-drop table t1, t2|
-drop function if exists bug13825_0|
-drop function if exists bug13825_1|
-drop function if exists bug13825_2|
-drop function if exists bug13825_3|
-drop function if exists bug13825_4|
-drop function if exists bug13825_5|
-drop procedure if exists bug13825_0|
-drop procedure if exists bug13825_1|
-drop procedure if exists bug13825_2|
-drop table if exists t1|
-create table t1 (i int) engine=innodb|
-create table t2 (i int) engine=innodb|
-create function bug13825_0() returns int
-begin
-rollback to savepoint x;
-return 1;
-end|
-create function bug13825_1() returns int
-begin
-release savepoint x;
-return 1;
-end|
-create function bug13825_2() returns int
-begin
-insert into t1 values (2);
-savepoint x;
-insert into t1 values (3);
-rollback to savepoint x;
-insert into t1 values (4);
-return 1;
-end|
-create procedure bug13825_0()
-begin
-rollback to savepoint x;
-end|
-create procedure bug13825_1()
-begin
-release savepoint x;
-end|
-create procedure bug13825_2()
-begin
-savepoint x;
-end|
-insert into t2 values (1)|
-create trigger t2_bi before insert on t2 for each row
-rollback to savepoint x|
-create trigger t2_bu before update on t2 for each row
-release savepoint x|
-create trigger t2_bd before delete on t2 for each row
-begin
-insert into t1 values (2);
-savepoint x;
-insert into t1 values (3);
-rollback to savepoint x;
-insert into t1 values (4);
-end|
-create function bug13825_3(rb int) returns int
-begin
-insert into t1 values(1);
-savepoint x;
-insert into t1 values(2);
-if rb then
-rollback to savepoint x;
-end if;
-insert into t1 values(3);
-return rb;
-end|
-create function bug13825_4() returns int
-begin
-savepoint x;
-insert into t1 values(2);
-rollback to savepoint x;
-return 0;
-end|
-create function bug13825_5(p int) returns int
-begin
-savepoint x;
-insert into t2 values(p);
-rollback to savepoint x;
-insert into t2 values(p+1);
-return p;
-end|
-set autocommit= 0|
-begin |
-insert into t1 values (1)|
-savepoint x|
-set @a:= bug13825_0()|
-ERROR 42000: SAVEPOINT x does not exist
-insert into t2 values (2)|
-ERROR 42000: SAVEPOINT x does not exist
-set @a:= bug13825_1()|
-ERROR 42000: SAVEPOINT x does not exist
-update t2 set i = 2|
-ERROR 42000: SAVEPOINT x does not exist
-set @a:= bug13825_2()|
-select * from t1|
-i
-1
-2
-4
-rollback to savepoint x|
-select * from t1|
-i
-1
-delete from t2|
-select * from t1|
-i
-1
-2
-4
-rollback to savepoint x|
-select * from t1|
-i
-1
-release savepoint x|
-set @a:= bug13825_2()|
-select * from t1|
-i
-1
-2
-4
-rollback to savepoint x|
-ERROR 42000: SAVEPOINT x does not exist
-delete from t1|
-commit|
-begin|
-insert into t1 values (5)|
-savepoint x|
-insert into t1 values (6)|
-call bug13825_0()|
-select * from t1|
-i
-5
-call bug13825_1()|
-rollback to savepoint x|
-ERROR 42000: SAVEPOINT x does not exist
-savepoint x|
-insert into t1 values (7)|
-call bug13825_2()|
-rollback to savepoint x|
-select * from t1|
-i
-5
-7
-delete from t1|
-commit|
-set autocommit= 1|
-select bug13825_3(0)|
-bug13825_3(0)
-0
-select * from t1|
-i
-1
-2
-3
-delete from t1|
-select bug13825_3(1)|
-bug13825_3(1)
-1
-select * from t1|
-i
-1
-3
-delete from t1|
-set autocommit= 0|
-begin|
-insert into t1 values (1)|
-set @a:= bug13825_4()|
-select * from t1|
-i
-1
-delete from t1|
-commit|
-set autocommit= 1|
-drop table t2|
-create table t2 (i int) engine=innodb|
-insert into t1 values (1), (bug13825_5(2)), (3)|
-select * from t1|
-i
-1
-2
-3
-select * from t2|
-i
-3
-drop function bug13825_0|
-drop function bug13825_1|
-drop function bug13825_2|
-drop function bug13825_3|
-drop function bug13825_4|
-drop function bug13825_5|
-drop procedure bug13825_0|
-drop procedure bug13825_1|
-drop procedure bug13825_2|
-drop table t1, t2|
-drop table if exists t3|
-drop procedure if exists bug14840_1|
-drop procedure if exists bug14840_2|
-create table t3
-(
-x int,
-y int,
-primary key (x)
-) engine=InnoDB|
-create procedure bug14840_1()
-begin
-declare err int default 0;
-declare continue handler for sqlexception
-set err = err + 1;
-start transaction;
-update t3 set x = 1, y = 42 where x = 2;
-insert into t3 values (3, 4711);
-if err > 0 then
-rollback;
-else
-commit;
-end if;
-select * from t3;
-end|
-create procedure bug14840_2()
-begin
-declare err int default 0;
-declare continue handler for sqlexception
-begin
-set err = err + 1;
-select err as 'Ping';
-end;
-update t3 set x = 1, y = 42 where x = 2;
-update t3 set x = 1, y = 42 where x = 2;
-insert into t3 values (3, 4711);
-select * from t3;
-end|
-insert into t3 values (1, 3), (2, 5)|
-call bug14840_1()|
-x y
-1 3
-2 5
-delete from t3|
-insert into t3 values (1, 3), (2, 5)|
-call bug14840_2()|
-Ping
-1
-Ping
-2
-x y
-1 3
-2 5
-3 4711
-drop procedure bug14840_1|
-drop procedure bug14840_2|
-drop table t3|
-drop procedure if exists bug10656_create_index|
-drop procedure if exists bug10656_myjoin|
-drop procedure if exists bug10656_truncate_table|
-CREATE TABLE t3 (
-`ID` int(11) default NULL,
-`txt` char(5) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1|
-INSERT INTO t3 (`ID`,`txt`) VALUES
-(1,'a'), (2,'b'), (3,'c'), (4,'d')|
-CREATE TABLE t4 (
-`ID` int(11) default NULL,
-`txt` char(5) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1|
-INSERT INTO t4 (`ID`,`txt`) VALUES
-(1,'a'), (2,'b'), (3,'c'), (4,'d')|
-create procedure bug10656_create_index()
-begin
-create index bug10656_my_index on t3 (ID);
-end|
-call bug10656_create_index()|
-create procedure bug10656_myjoin()
-begin
-update t3, t4 set t3.txt = t4.txt where t3.id = t4.id;
-end|
-call bug10656_myjoin()|
-create procedure bug10656_truncate_table()
-begin
-truncate table t3;
-end|
-call bug10656_truncate_table()|
-drop procedure bug10656_create_index|
-drop procedure bug10656_myjoin|
-drop procedure bug10656_truncate_table|
-drop table t3, t4|
-create table t3 (
-a int primary key,
-ach char(1)
-) engine = innodb|
-create table t4 (
-b int primary key,
-bch char(1)
-) engine = innodb|
-insert into t3 values (1 , 'aCh1' ) , ('2' , 'aCh2')|
-Warnings:
-Warning 1265 Data truncated for column 'ach' at row 1
-Warning 1265 Data truncated for column 'ach' at row 2
-insert into t4 values (1 , 'bCh1' )|
-Warnings:
-Warning 1265 Data truncated for column 'bch' at row 1
-drop procedure if exists bug3448|
-create procedure bug3448()
-select * from t3 inner join t4 on t3.a = t4.b|
-select * from t3 inner join t4 on t3.a = t4.b|
-a ach b bch
-1 a 1 b
-call bug3448()|
-a ach b bch
-1 a 1 b
-call bug3448()|
-a ach b bch
-1 a 1 b
-drop procedure bug3448|
-drop table t3, t4|
-drop procedure if exists bug14210|
-set @@session.max_heap_table_size=16384|
-select @@session.max_heap_table_size|
-@@session.max_heap_table_size
-16384
-create table t3 (a char(255)) engine=InnoDB|
-create procedure bug14210_fill_table()
-begin
-declare table_size, max_table_size int default 0;
-select @@session.max_heap_table_size into max_table_size;
-delete from t3;
-insert into t3 (a) values (repeat('a', 255));
-repeat
-insert into t3 select a from t3;
-select count(*)*255 from t3 into table_size;
-until table_size > max_table_size*2 end repeat;
-end|
-call bug14210_fill_table()|
-drop procedure bug14210_fill_table|
-create table t4 like t3|
-create procedure bug14210()
-begin
-declare a char(255);
-declare done int default 0;
-declare c cursor for select * from t3;
-declare continue handler for sqlstate '02000' set done = 1;
-open c;
-repeat
-fetch c into a;
-if not done then
-insert into t4 values (upper(a));
-end if;
-until done end repeat;
-close c;
-end|
-call bug14210()|
-select count(*) from t4|
-count(*)
-256
-drop table t3, t4|
-drop procedure bug14210|
-set @@session.max_heap_table_size=default|
-CREATE DATABASE db_bug7787|
-use db_bug7787|
-CREATE PROCEDURE p1()
-SHOW ENGINE INNODB STATUS; |
-GRANT EXECUTE ON PROCEDURE p1 TO user_bug7787@localhost|
-DROP DATABASE db_bug7787|
-drop user user_bug7787@localhost|
-use test|
-create table t3 (f1 int, f2 varchar(3), primary key(f1)) engine=innodb|
-insert into t3 values (1,'aaa'),(2,'bbb'),(3,'ccc')|
-CREATE FUNCTION bug13575 ( p1 integer )
-returns varchar(3)
-BEGIN
-DECLARE v1 VARCHAR(10) DEFAULT null;
-SELECT f2 INTO v1 FROM t3 WHERE f1 = p1;
-RETURN v1;
-END|
-select distinct f1, bug13575(f1) from t3 order by f1|
-f1 bug13575(f1)
-1 aaa
-2 bbb
-3 ccc
-drop function bug13575|
-drop table t3|
-SELECT @@GLOBAL.storage_engine INTO @old_engine|
-SET @@GLOBAL.storage_engine=InnoDB|
-SET @@SESSION.storage_engine=InnoDB|
-SHOW GLOBAL VARIABLES LIKE 'storage_engine'|
-Variable_name Value
-storage_engine InnoDB
-SHOW SESSION VARIABLES LIKE 'storage_engine'|
-Variable_name Value
-storage_engine InnoDB
-CREATE PROCEDURE bug11758414()
-BEGIN
-SET @@GLOBAL.storage_engine="MyISAM";
-SET @@SESSION.storage_engine="MyISAM";
-# show defaults at execution time / that setting them worked
-SHOW GLOBAL VARIABLES LIKE 'storage_engine';
-SHOW SESSION VARIABLES LIKE 'storage_engine';
-CREATE TABLE t1 (id int);
-CREATE TABLE t2 (id int) ENGINE=InnoDB;
-# show we're heeding the default (at run-time, not parse-time!)
- SHOW CREATE TABLE t1;
- # show that we didn't break explicit override with ENGINE=...
-SHOW CREATE TABLE t2;
-END;
-|
-CALL bug11758414|
-Variable_name Value
-storage_engine MyISAM
-Variable_name Value
-storage_engine MyISAM
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-Table Create Table
-t2 CREATE TABLE `t2` (
- `id` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-SHOW GLOBAL VARIABLES LIKE 'storage_engine'|
-Variable_name Value
-storage_engine MyISAM
-SHOW SESSION VARIABLES LIKE 'storage_engine'|
-Variable_name Value
-storage_engine MyISAM
-DROP PROCEDURE bug11758414|
-DROP TABLE t1, t2|
-SET @@GLOBAL.storage_engine=@old_engine|
-#
-# End of 5.1 tests
-#
-#
-# Bug #35877 Update .. WHERE with function, constraint violation, crash
-#
-DROP TABLE IF EXISTS t1_aux|
-DROP TABLE IF EXISTS t1_not_null|
-DROP FUNCTION IF EXISTS f1_two_inserts|
-# MyISAM test
-CREATE TABLE t1_not_null (f1 BIGINT, f2 BIGINT NOT NULL)|
-CREATE TABLE t1_aux (f1 BIGINT, f2 BIGINT)|
-INSERT INTO t1_aux VALUES (1,1)|
-CREATE FUNCTION f1_two_inserts() returns INTEGER
-BEGIN
-INSERT INTO t1_not_null SET f1 = 10, f2 = NULL;
-RETURN 1;
-END|
-UPDATE t1_aux SET f2 = 2 WHERE f1 = f1_two_inserts()|
-ERROR 23000: Column 'f2' cannot be null
-# InnoDB test
-ALTER TABLE t1_not_null ENGINE = InnoDB|
-ALTER TABLE t1_aux ENGINE = InnoDB|
-UPDATE t1_aux SET f2 = 2 WHERE f1 = f1_two_inserts()|
-ERROR 23000: Column 'f2' cannot be null
-DROP TABLE t1_aux, t1_not_null|
-DROP FUNCTION f1_two_inserts|
-#
-# Bug#49938: Failing assertion: inode or deadlock in fsp/fsp0fsp.c
-#
-DROP PROCEDURE IF EXISTS p1|
-DROP TABLE IF EXISTS t1|
-CREATE TABLE t1 (a INT) ENGINE=INNODB|
-CREATE PROCEDURE p1()
-BEGIN
-TRUNCATE TABLE t1;
-END|
-LOCK TABLES t1 WRITE|
-CALL p1()|
-FLUSH TABLES;
-UNLOCK TABLES|
-CALL p1()|
-DROP PROCEDURE p1|
-DROP TABLE t1|
diff --git a/mysql-test/r/sp_trans_log.result b/mysql-test/r/sp_trans_log.result
deleted file mode 100644
index b72e8332fad..00000000000
--- a/mysql-test/r/sp_trans_log.result
+++ /dev/null
@@ -1,27 +0,0 @@
-drop function if exists bug23333|
-drop table if exists t1,t2|
-CREATE TABLE t1 (a int NOT NULL auto_increment primary key) ENGINE=MyISAM|
-CREATE TABLE t2 (a int NOT NULL auto_increment, b int, PRIMARY KEY (a)) ENGINE=InnoDB|
-insert into t2 values (1,1)|
-create function bug23333()
-RETURNS int(11)
-DETERMINISTIC
-begin
-insert into t1 values (null);
-select count(*) from t1 into @a;
-return @a;
-end|
-reset master;
-insert into t2 values (bug23333(),1);
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # Table_map # # table_id: # (test.t1)
-master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
-master-bin.000001 # Query # # COMMIT
-select count(*),@a from t1 /* must be 1,1 */;
-count(*) @a
-1 1
-drop table t1,t2;
-drop function if exists bug23333;
diff --git a/mysql-test/r/sql_mode.result b/mysql-test/r/sql_mode.result
deleted file mode 100644
index 02574c1c545..00000000000
--- a/mysql-test/r/sql_mode.result
+++ /dev/null
@@ -1,782 +0,0 @@
-drop table if exists t1,t2,v1,v2;
-drop view if exists t1,t2,v1,v2;
-CREATE TABLE `t1` (
-a int not null auto_increment,
-`pseudo` varchar(35) character set latin2 NOT NULL default '',
-`email` varchar(60) character set latin2 NOT NULL default '',
-PRIMARY KEY (a),
-UNIQUE KEY `email` USING BTREE (`email`)
-) ENGINE=HEAP CHARSET=latin1 ROW_FORMAT DYNAMIC;
-set @@sql_mode="";
-show variables like 'sql_mode';
-Variable_name Value
-sql_mode
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL AUTO_INCREMENT,
- `pseudo` varchar(35) CHARACTER SET latin2 NOT NULL DEFAULT '',
- `email` varchar(60) CHARACTER SET latin2 NOT NULL DEFAULT '',
- PRIMARY KEY (`a`),
- UNIQUE KEY `email` (`email`) USING BTREE
-) ENGINE=MEMORY DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
-set @@sql_mode="ansi_quotes";
-show variables like 'sql_mode';
-Variable_name Value
-sql_mode ANSI_QUOTES
-show create table t1;
-Table Create Table
-t1 CREATE TABLE "t1" (
- "a" int(11) NOT NULL AUTO_INCREMENT,
- "pseudo" varchar(35) CHARACTER SET latin2 NOT NULL DEFAULT '',
- "email" varchar(60) CHARACTER SET latin2 NOT NULL DEFAULT '',
- PRIMARY KEY ("a"),
- UNIQUE KEY "email" ("email") USING BTREE
-) ENGINE=MEMORY DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
-set @@sql_mode="no_table_options";
-show variables like 'sql_mode';
-Variable_name Value
-sql_mode NO_TABLE_OPTIONS
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL AUTO_INCREMENT,
- `pseudo` varchar(35) CHARACTER SET latin2 NOT NULL DEFAULT '',
- `email` varchar(60) CHARACTER SET latin2 NOT NULL DEFAULT '',
- PRIMARY KEY (`a`),
- UNIQUE KEY `email` (`email`) USING BTREE
-)
-set @@sql_mode="no_key_options";
-show variables like 'sql_mode';
-Variable_name Value
-sql_mode NO_KEY_OPTIONS
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL AUTO_INCREMENT,
- `pseudo` varchar(35) CHARACTER SET latin2 NOT NULL DEFAULT '',
- `email` varchar(60) CHARACTER SET latin2 NOT NULL DEFAULT '',
- PRIMARY KEY (`a`),
- UNIQUE KEY `email` (`email`)
-) ENGINE=MEMORY DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
-set @@sql_mode="no_field_options,mysql323,mysql40";
-show variables like 'sql_mode';
-Variable_name Value
-sql_mode NO_FIELD_OPTIONS,MYSQL323,MYSQL40,HIGH_NOT_PRECEDENCE
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `pseudo` varchar(35) NOT NULL DEFAULT '',
- `email` varchar(60) NOT NULL DEFAULT '',
- PRIMARY KEY (`a`),
- UNIQUE KEY `email` (`email`)
-) TYPE=MEMORY ROW_FORMAT=DYNAMIC
-set sql_mode="postgresql,oracle,mssql,db2,maxdb";
-select @@sql_mode;
-@@sql_mode
-PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,POSTGRESQL,ORACLE,MSSQL,DB2,MAXDB,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_FIELD_OPTIONS,NO_AUTO_CREATE_USER,SIMULTANEOUS_ASSIGNMENT
-show create table t1;
-Table Create Table
-t1 CREATE TABLE "t1" (
- "a" int(11) NOT NULL,
- "pseudo" varchar(35) CHARACTER SET latin2 NOT NULL DEFAULT '',
- "email" varchar(60) CHARACTER SET latin2 NOT NULL DEFAULT '',
- PRIMARY KEY ("a"),
- UNIQUE KEY "email" ("email")
-)
-drop table t1;
-CREATE TABLE t1 (
-a char(10),
-b char(10) collate latin1_bin,
-c binary(10)
-) character set latin1;
-set @@sql_mode="";
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) DEFAULT NULL,
- `b` char(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
- `c` binary(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-set @@sql_mode="mysql323";
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) DEFAULT NULL,
- `b` char(10) binary DEFAULT NULL,
- `c` binary(10) DEFAULT NULL
-) TYPE=MyISAM
-set @@sql_mode="mysql40";
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` char(10) DEFAULT NULL,
- `b` char(10) binary DEFAULT NULL,
- `c` binary(10) DEFAULT NULL
-) TYPE=MyISAM
-drop table t1;
-set session sql_mode = '';
-create table t1 ( min_num dec(6,6) default .000001);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `min_num` decimal(6,6) DEFAULT 0.000001
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1 ;
-set session sql_mode = 'IGNORE_SPACE';
-create table t1 ( min_num dec(6,6) default 0.000001);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `min_num` decimal(6,6) DEFAULT 0.000001
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1 ;
-create table t1 ( min_num dec(6,6) default .000001);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `min_num` decimal(6,6) DEFAULT 0.000001
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1 ;
-set @@SQL_MODE=NULL;
-ERROR 42000: Variable 'sql_mode' can't be set to the value of 'NULL'
-set session sql_mode=ansi;
-create table t1
-(f1 integer auto_increment primary key,
-f2 timestamp not null default current_timestamp on update current_timestamp);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE "t1" (
- "f1" int(11) NOT NULL AUTO_INCREMENT,
- "f2" timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- PRIMARY KEY ("f1")
-)
-set session sql_mode=no_field_options;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f1` int(11) NOT NULL,
- `f2` timestamp NOT NULL DEFAULT current_timestamp(),
- PRIMARY KEY (`f1`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-SET @OLD_SQL_MODE=@@SQL_MODE, @@SQL_MODE='';
-show local variables like 'SQL_MODE';
-Variable_name Value
-sql_mode
-CREATE TABLE t1 (p int not null auto_increment, a varchar(20), primary key(p));
-INSERT t1 (a) VALUES
-('\\'),
-('\n'),
-('\b'),
-('\r'),
-('\t'),
-('\x'),
-('\a'),
-('\aa'),
-('\\a'),
-('\\aa'),
-('_'),
-('\_'),
-('\\_'),
-('\\\_'),
-('\\\\_'),
-('%'),
-('\%'),
-('\\%'),
-('\\\%'),
-('\\\\%')
-;
-SELECT p, hex(a) FROM t1;
-p hex(a)
-1 5C
-2 0A
-3 08
-4 0D
-5 09
-6 78
-7 61
-8 6161
-9 5C61
-10 5C6161
-11 5F
-12 5C5F
-13 5C5F
-14 5C5C5F
-15 5C5C5F
-16 25
-17 5C25
-18 5C25
-19 5C5C25
-20 5C5C25
-delete from t1 where a in ('\n','\r','\t', '\b');
-select
-masks.p,
-masks.a as mask,
-examples.a as example
-from
-t1 as masks
-left join t1 as examples on examples.a LIKE masks.a
-order by masks.p, example;
-p mask example
-1 \ \
-6 x x
-7 a a
-8 aa aa
-9 \a a
-10 \aa aa
-11 _ %
-11 _ a
-11 _ x
-11 _ \
-11 _ _
-12 \_ _
-13 \_ _
-14 \\_ \%
-14 \\_ \%
-14 \\_ \a
-14 \\_ \_
-14 \\_ \_
-15 \\_ \%
-15 \\_ \%
-15 \\_ \a
-15 \\_ \_
-15 \\_ \_
-16 % %
-16 % a
-16 % aa
-16 % x
-16 % \
-16 % \%
-16 % \%
-16 % \a
-16 % \aa
-16 % \\%
-16 % \\%
-16 % \\_
-16 % \\_
-16 % \_
-16 % \_
-16 % _
-17 \% %
-18 \% %
-19 \\% \
-19 \\% \%
-19 \\% \%
-19 \\% \a
-19 \\% \aa
-19 \\% \\%
-19 \\% \\%
-19 \\% \\_
-19 \\% \\_
-19 \\% \_
-19 \\% \_
-20 \\% \
-20 \\% \%
-20 \\% \%
-20 \\% \a
-20 \\% \aa
-20 \\% \\%
-20 \\% \\%
-20 \\% \\_
-20 \\% \\_
-20 \\% \_
-20 \\% \_
-DROP TABLE t1;
-SET @@SQL_MODE='NO_BACKSLASH_ESCAPES';
-show local variables like 'SQL_MODE';
-Variable_name Value
-sql_mode NO_BACKSLASH_ESCAPES
-CREATE TABLE t1 (p int not null auto_increment, a varchar(20), primary key(p));
-INSERT t1 (a) VALUES
-('\\'),
-('\n'),
-('\b'),
-('\r'),
-('\t'),
-('\x'),
-('\a'),
-('\aa'),
-('\\a'),
-('\\aa'),
-('_'),
-('\_'),
-('\\_'),
-('\\\_'),
-('\\\\_'),
-('%'),
-('\%'),
-('\\%'),
-('\\\%'),
-('\\\\%')
-;
-SELECT p, hex(a) FROM t1;
-p hex(a)
-1 5C5C
-2 5C6E
-3 5C62
-4 5C72
-5 5C74
-6 5C78
-7 5C61
-8 5C6161
-9 5C5C61
-10 5C5C6161
-11 5F
-12 5C5F
-13 5C5C5F
-14 5C5C5C5F
-15 5C5C5C5C5F
-16 25
-17 5C25
-18 5C5C25
-19 5C5C5C25
-20 5C5C5C5C25
-delete from t1 where a in ('\n','\r','\t', '\b');
-select
-masks.p,
-masks.a as mask,
-examples.a as example
-from
-t1 as masks
-left join t1 as examples on examples.a LIKE masks.a
-order by masks.p, example;
-p mask example
-1 \\ \\
-6 \x \x
-7 \a \a
-8 \aa \aa
-9 \\a \\a
-10 \\aa \\aa
-11 _ %
-11 _ _
-12 \_ \%
-12 \_ \a
-12 \_ \x
-12 \_ \\
-12 \_ \_
-13 \\_ \\%
-13 \\_ \\a
-13 \\_ \\_
-14 \\\_ \\\%
-14 \\\_ \\\_
-15 \\\\_ \\\\%
-15 \\\\_ \\\\_
-16 % %
-16 % \%
-16 % \a
-16 % \aa
-16 % \x
-16 % \\
-16 % \\%
-16 % \\a
-16 % \\aa
-16 % \\\%
-16 % \\\\%
-16 % \\\\_
-16 % \\\_
-16 % \\_
-16 % \_
-16 % _
-17 \% \%
-17 \% \a
-17 \% \aa
-17 \% \x
-17 \% \\
-17 \% \\%
-17 \% \\a
-17 \% \\aa
-17 \% \\\%
-17 \% \\\\%
-17 \% \\\\_
-17 \% \\\_
-17 \% \\_
-17 \% \_
-18 \\% \\
-18 \\% \\%
-18 \\% \\a
-18 \\% \\aa
-18 \\% \\\%
-18 \\% \\\\%
-18 \\% \\\\_
-18 \\% \\\_
-18 \\% \\_
-19 \\\% \\\%
-19 \\\% \\\\%
-19 \\\% \\\\_
-19 \\\% \\\_
-20 \\\\% \\\\%
-20 \\\\% \\\\_
-DROP TABLE t1;
-SET @@SQL_MODE='NO_BACKSLASH_ESCAPES';
-SELECT 'a\\b', 'a\\\"b', 'a''\\b', 'a''\\\"b';
-a\\b a\\\"b a'\\b a'\\\"b
-a\\b a\\\"b a'\\b a'\\\"b
-SELECT "a\\b", "a\\\'b", "a""\\b", "a""\\\'b";
-a\\b a\\\'b a"\\b a"\\\'b
-a\\b a\\\'b a"\\b a"\\\'b
-SET @@SQL_MODE='';
-SELECT 'a\\b', 'a\\\"b', 'a''\\b', 'a''\\\"b';
-a\b a\"b a'\b a'\"b
-a\b a\"b a'\b a'\"b
-SELECT "a\\b", "a\\\'b", "a""\\b", "a""\\\'b";
-a\b a\'b a"\b a"\'b
-a\b a\'b a"\b a"\'b
-SET @@SQL_MODE='';
-create function `foo` () returns int return 5;
-show create function `foo`;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-foo CREATE DEFINER=`root`@`localhost` FUNCTION `foo`() RETURNS int(11)
-return 5 latin1 latin1_swedish_ci latin1_swedish_ci
-SET @@SQL_MODE='ANSI_QUOTES';
-show create function `foo`;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-foo CREATE DEFINER=`root`@`localhost` FUNCTION `foo`() RETURNS int(11)
-return 5 latin1 latin1_swedish_ci latin1_swedish_ci
-drop function `foo`;
-create function `foo` () returns int return 5;
-show create function `foo`;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-foo ANSI_QUOTES CREATE DEFINER="root"@"localhost" FUNCTION "foo"() RETURNS int(11)
-return 5 latin1 latin1_swedish_ci latin1_swedish_ci
-SET @@SQL_MODE='';
-show create function `foo`;
-Function sql_mode Create Function character_set_client collation_connection Database Collation
-foo ANSI_QUOTES CREATE DEFINER="root"@"localhost" FUNCTION "foo"() RETURNS int(11)
-return 5 latin1 latin1_swedish_ci latin1_swedish_ci
-drop function `foo`;
-SET @@SQL_MODE='';
-create table t1 (a int);
-create table t2 (a int);
-create view v1 as select a from t1;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` latin1 latin1_swedish_ci
-SET @@SQL_MODE='ANSI_QUOTES';
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER="root"@"localhost" SQL SECURITY DEFINER VIEW "v1" AS select "t1"."a" AS "a" from "t1" latin1 latin1_swedish_ci
-create view v2 as select a from t2 where a in (select a from v1);
-drop view v2, v1;
-drop table t1, t2;
-select @@sql_mode;
-@@sql_mode
-ANSI_QUOTES
-set sql_mode=2097152;
-select @@sql_mode;
-@@sql_mode
-STRICT_TRANS_TABLES
-set sql_mode=4194304;
-select @@sql_mode;
-@@sql_mode
-STRICT_ALL_TABLES
-set sql_mode=16384+(65536*4);
-select @@sql_mode;
-@@sql_mode
-REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,NO_TABLE_OPTIONS,ANSI
-set sql_mode=2147483648*2*2*2;
-ERROR 42000: Variable 'sql_mode' can't be set to the value of '17179869184'
-select @@sql_mode;
-@@sql_mode
-REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,NO_TABLE_OPTIONS,ANSI
-set sql_mode=PAD_CHAR_TO_FULL_LENGTH;
-create table t1 (a int auto_increment primary key, b char(5));
-insert into t1 (b) values('a'),('b\t'),('c ');
-select concat('x',b,'x') from t1;
-concat('x',b,'x')
-xa x
-xb x
-xc x
-set sql_mode=0;
-select concat('x',b,'x') from t1;
-concat('x',b,'x')
-xax
-xb x
-xcx
-drop table t1;
-SET @@SQL_MODE=@OLD_SQL_MODE;
-create user mysqltest_32753@localhost;
-connection default;
-set @OLD_SQL_MODE=@@SESSION.SQL_MODE;
-set session sql_mode='PAD_CHAR_TO_FULL_LENGTH';
-flush privileges;
-connect user_32753,localhost,mysqltest_32753,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-select current_user();
-current_user()
-mysqltest_32753@localhost
-connection default;
-set session sql_mode=@OLD_SQL_MODE;
-flush privileges;
-disconnect user_32753;
-connection default;
-drop user mysqltest_32753@localhost;
-SET @org_mode=@@sql_mode;
-SET @@sql_mode='traditional';
-SELECT @@sql_mode LIKE '%NO_ENGINE_SUBSTITUTION%';
-@@sql_mode LIKE '%NO_ENGINE_SUBSTITUTION%'
-1
-SET sql_mode=@org_mode;
-DROP TABLE IF EXISTS t1,t2;
-CREATE USER 'user_PCTFL'@'localhost' identified by 'PWD';
-CREATE USER 'user_no_PCTFL'@'localhost' identified by 'PWD';
-CREATE TABLE t1 (f1 BIGINT);
-CREATE TABLE t2 (f1 CHAR(3) NOT NULL, f2 CHAR(20));
-GRANT ALL ON t1 TO 'user_PCTFL'@'localhost','user_no_PCTFL'@'localhost';
-GRANT SELECT(f1) ON t2 TO 'user_PCTFL'@'localhost','user_no_PCTFL'@'localhost';
-SET @OLD_SQL_MODE = @@SESSION.SQL_MODE;
-SET SESSION SQL_MODE = 'PAD_CHAR_TO_FULL_LENGTH';
-DROP USER 'user_PCTFL'@'localhost';
-SET SESSION SQL_MODE = @OLD_SQL_MODE;
-DROP USER 'user_no_PCTFL'@'localhost';
-FLUSH PRIVILEGES;
-SELECT * FROM mysql.db WHERE Host = 'localhost' AND User LIKE 'user_%PCTFL';
-Host Db User Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Grant_priv References_priv Index_priv Alter_priv Create_tmp_table_priv Lock_tables_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Execute_priv Event_priv Trigger_priv Delete_history_priv
-SELECT * FROM mysql.tables_priv WHERE Host = 'localhost' AND User LIKE 'user_%PCTFL';
-Host Db User Table_name Grantor Timestamp Table_priv Column_priv
-SELECT * FROM mysql.columns_priv WHERE Host = 'localhost' AND User LIKE 'user_%PCTFL';
-Host Db User Table_name Column_name Timestamp Column_priv
-DROP TABLE t1;
-DROP TABLE t2;
-
-#
-# Test for Bug#12601974 - STORED PROCEDURE SQL_MODE=NO_BACKSLASH_ESCAPES
-# IGNORED AND BREAKS REPLICATION
-#
-DROP TABLE IF EXISTS test_table;
-DROP FUNCTION IF EXISTS test_function;
-CREATE TABLE test_table (c1 CHAR(50));
-SET @org_mode=@@sql_mode;
-SET @@sql_mode='';
-PREPARE insert_stmt FROM 'INSERT INTO test_table VALUES (?)';
-PREPARE update_stmt FROM 'UPDATE test_table SET c1= ? WHERE c1= ?';
-CREATE FUNCTION test_function(var CHAR(50)) RETURNS CHAR(50)
-BEGIN
-DECLARE char_val CHAR(50);
-SELECT c1 INTO char_val FROM test_table WHERE c1=var;
-RETURN char_val;
-END
-$
-SET @var1='abcd\'ef';
-SET @var2='abcd\"ef';
-SET @var3='abcd\bef';
-SET @var4='abcd\nef';
-SET @var5='abcd\ref';
-SET @var6='abcd\tef';
-SET @var7='abcd\\ef';
-SET @var8='abcd\%ef';
-SET @var9='abcd\_ef';
-SET @to_var1='wxyz\'ef';
-SET @to_var2='wxyz\"ef';
-SET @to_var3='wxyz\bef';
-SET @to_var4='wxyz\nef';
-SET @to_var5='wxyz\ref';
-SET @to_var6='wxyz\tef';
-SET @to_var7='wxyz\\ef';
-SET @to_var8='wxyz\%ef';
-SET @to_var9='wxyz\_ef';
-# STRING LILTERAL WITH BACKSLASH IN PREPARE STATEMENT
-EXECUTE insert_stmt USING @var1;
-EXECUTE insert_stmt USING @var2;
-EXECUTE insert_stmt USING @var3;
-EXECUTE insert_stmt USING @var4;
-EXECUTE insert_stmt USING @var5;
-EXECUTE insert_stmt USING @var6;
-EXECUTE insert_stmt USING @var7;
-EXECUTE insert_stmt USING @var8;
-EXECUTE insert_stmt USING @var9;
-SELECT * FROM test_table;
-c1
-abcd'ef
-abcd"ef
-abcdef
-abcd
-ef
-abcd ef
-abcd ef
-abcd\ef
-abcd\%ef
-abcd\_ef
-EXECUTE update_stmt USING @to_var1, @var1;
-EXECUTE update_stmt USING @to_var2, @var2;
-EXECUTE update_stmt USING @to_var3, @var3;
-EXECUTE update_stmt USING @to_var4, @var4;
-EXECUTE update_stmt USING @to_var5, @var5;
-EXECUTE update_stmt USING @to_var6, @var6;
-EXECUTE update_stmt USING @to_var7, @var7;
-EXECUTE update_stmt USING @to_var8, @var8;
-EXECUTE update_stmt USING @to_var9, @var9;
-SELECT * FROM test_table;
-c1
-wxyz'ef
-wxyz"ef
-wxyzef
-wxyz
-ef
-wxyz ef
-wxyz ef
-wxyz\ef
-wxyz\%ef
-wxyz\_ef
-
-# END OF CASE - STRING LILTERAL WITH BACKSLASH IN PREPARE STATEMENT
-# STRING LILTERAL WITH BACKSLASH IN FUNCTION RETURNING STRING
-select test_function(@to_var1);
-test_function(@to_var1)
-wxyz'ef
-SELECT test_function(@to_var2);
-test_function(@to_var2)
-wxyz"ef
-SELECT test_function(@to_var3);
-test_function(@to_var3)
-wxyzef
-SELECT test_function(@to_var4);
-test_function(@to_var4)
-wxyz
-ef
-SELECT test_function(@to_var5);
-test_function(@to_var5)
-wxyz ef
-SELECT test_function(@to_var6);
-test_function(@to_var6)
-wxyz ef
-SELECT test_function(@to_var7);
-test_function(@to_var7)
-wxyz\ef
-SELECT test_function(@to_var8);
-test_function(@to_var8)
-wxyz\%ef
-SELECT test_function(@to_var9);
-test_function(@to_var9)
-wxyz\_ef
-
-# END OF CASE - STRING LILTERAL WITH BACKSLASH IN FUNCTION RETURNING STRING
-DELETE FROM test_table;
-DROP FUNCTION test_function;
-SET @@sql_mode='NO_BACKSLASH_ESCAPES';
-CREATE FUNCTION test_function(var CHAR(50)) RETURNS CHAR(50)
-BEGIN
-DECLARE char_val CHAR(50);
-SELECT c1 INTO char_val FROM test_table WHERE c1=var;
-RETURN char_val;
-END
-$
-# STRING LILTERAL WITH BACKSLASH IN PREPARE STATEMENT
-EXECUTE insert_stmt USING @var1;
-EXECUTE insert_stmt USING @var2;
-EXECUTE insert_stmt USING @var3;
-EXECUTE insert_stmt USING @var4;
-EXECUTE insert_stmt USING @var5;
-EXECUTE insert_stmt USING @var6;
-EXECUTE insert_stmt USING @var7;
-EXECUTE insert_stmt USING @var8;
-EXECUTE insert_stmt USING @var9;
-SELECT * FROM test_table;
-c1
-abcd'ef
-abcd"ef
-abcdef
-abcd
-ef
-abcd ef
-abcd ef
-abcd\ef
-abcd\%ef
-abcd\_ef
-EXECUTE update_stmt USING @to_var1, @var1;
-EXECUTE update_stmt USING @to_var2, @var2;
-EXECUTE update_stmt USING @to_var3, @var3;
-EXECUTE update_stmt USING @to_var4, @var4;
-EXECUTE update_stmt USING @to_var5, @var5;
-EXECUTE update_stmt USING @to_var6, @var6;
-EXECUTE update_stmt USING @to_var7, @var7;
-EXECUTE update_stmt USING @to_var8, @var8;
-EXECUTE update_stmt USING @to_var9, @var9;
-SELECT * FROM test_table;
-c1
-wxyz'ef
-wxyz"ef
-wxyzef
-wxyz
-ef
-wxyz ef
-wxyz ef
-wxyz\ef
-wxyz\%ef
-wxyz\_ef
-
-# END OF CASE - STRING LILTERAL WITH BACKSLASH IN PREPARE STATEMENT
-# STRING LILTERAL WITH BACKSLASH IN FUNCTION RETURNING STRING
-select test_function(@to_var1);
-test_function(@to_var1)
-wxyz'ef
-SELECT test_function(@to_var2);
-test_function(@to_var2)
-wxyz"ef
-SELECT test_function(@to_var3);
-test_function(@to_var3)
-wxyzef
-SELECT test_function(@to_var4);
-test_function(@to_var4)
-wxyz
-ef
-SELECT test_function(@to_var5);
-test_function(@to_var5)
-wxyz ef
-SELECT test_function(@to_var6);
-test_function(@to_var6)
-wxyz ef
-SELECT test_function(@to_var7);
-test_function(@to_var7)
-wxyz\ef
-SELECT test_function(@to_var8);
-test_function(@to_var8)
-wxyz\%ef
-SELECT test_function(@to_var9);
-test_function(@to_var9)
-wxyz\_ef
-
-# END OF CASE - STRING LILTERAL WITH BACKSLASH IN FUNCTION RETURNING STRING
-DROP TABLE test_table;
-DROP FUNCTION test_function;
-SET @@sql_mode= @org_mode;
-
-#End of Test for Bug#12601974
-#
-# MDEV-11848 Automatic statement repreparation changes query semantics
-#
-SET sql_mode=DEFAULT;
-CREATE OR REPLACE TABLE t1 (a TEXT);
-PREPARE stmt FROM 'INSERT INTO t1 (a) VALUES (2||3)';
-EXECUTE stmt;
-SET sql_mode=ORACLE;
-EXECUTE stmt;
-ALTER TABLE t1 ADD b INT;
-EXECUTE stmt;
-SELECT * FROM t1;
-a b
-1 NULL
-1 NULL
-1 NULL
-DROP TABLE t1;
-#
-# MDEV-12390 Wrong error line numbers reported with sql_mode=IGNORE_SPACE
-#
-SET sql_mode=IGNORE_SPACE;
-CREATE PROCEDURE p1()
-BEGIN
-SELECT 1+1;
-syntax error;
-END;
-$$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'error;
-END' at line 4
-SET sql_mode=DEFAULT;
-CREATE PROCEDURE p1()
-BEGIN
-SELECT 1+1;
-syntax error;
-END;
-$$
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'error;
-END' at line 4
diff --git a/mysql-test/r/ssl-big.result b/mysql-test/r/ssl-big.result
deleted file mode 100644
index 54c61507ade..00000000000
--- a/mysql-test/r/ssl-big.result
+++ /dev/null
@@ -1,8 +0,0 @@
-DROP TABLE IF EXISTS t1, t2;
-connect ssl_con,localhost,root,,,,,SSL;
-create table t1 (a int);
-disconnect ssl_con;
-connect ssl_con,localhost,root,,,,,SSL;
-drop table t1;
-connection default;
-disconnect ssl_con;
diff --git a/mysql-test/r/ssl-crl-revoked-crl.result b/mysql-test/r/ssl-crl-revoked-crl.result
deleted file mode 100644
index 8ecc6a509d3..00000000000
--- a/mysql-test/r/ssl-crl-revoked-crl.result
+++ /dev/null
@@ -1 +0,0 @@
-# try logging in with a certificate in the server's --ssl-crl : should fail
diff --git a/mysql-test/r/ssl.result b/mysql-test/r/ssl.result
deleted file mode 100644
index 5de9e5174d8..00000000000
--- a/mysql-test/r/ssl.result
+++ /dev/null
@@ -1,2182 +0,0 @@
-connect ssl_con,localhost,root,,,,,SSL;
-SELECT (VARIABLE_VALUE <> '') AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher';
-have_ssl
-1
-SHOW STATUS LIKE 'Ssl_server_not_before';
-Variable_name Value
-Ssl_server_not_before Apr 25 20:52:21 2017 GMT
-SHOW STATUS LIKE 'Ssl_server_not_after';
-Variable_name Value
-Ssl_server_not_after Apr 20 20:52:21 2037 GMT
-drop table if exists t1,t2,t3,t4;
-CREATE TABLE t1 (
-Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
-Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
-);
-INSERT INTO t1 VALUES (9410,9412);
-select period from t1;
-period
-9410
-select * from t1;
-Period Varor_period
-9410 9412
-select t1.* from t1;
-Period Varor_period
-9410 9412
-CREATE TABLE t2 (
-auto int not null auto_increment,
-fld1 int(6) unsigned zerofill DEFAULT '000000' NOT NULL,
-companynr tinyint(2) unsigned zerofill DEFAULT '00' NOT NULL,
-fld3 char(30) DEFAULT '' NOT NULL,
-fld4 char(35) DEFAULT '' NOT NULL,
-fld5 char(35) DEFAULT '' NOT NULL,
-fld6 char(4) DEFAULT '' NOT NULL,
-UNIQUE fld1 (fld1),
-KEY fld3 (fld3),
-PRIMARY KEY (auto)
-);
-select t2.fld3 from t2 where companynr = 58 and fld3 like "%imaginable%";
-fld3
-imaginable
-select fld3 from t2 where fld3 like "%cultivation" ;
-fld3
-cultivation
-select t2.fld3,companynr from t2 where companynr = 57+1 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3,companynr from t2 where companynr = 58 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3 from t2 order by fld3 desc limit 10;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select fld3 from t2 order by fld3 desc limit 5;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-select fld3 from t2 order by fld3 desc limit 5,5;
-fld3
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select t2.fld3 from t2 where fld3 = 'honeysuckle';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'hon_ysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle%';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'h%le';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle_';
-fld3
-select t2.fld3 from t2 where fld3 LIKE 'don_t_find_me_please%';
-fld3
-explain select t2.fld3 from t2 where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld1) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3,not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-explain select fld3 from t2 use index (not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-fld3
-honeysuckle
-honoring
-explain select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld3 fld3 30 NULL 2 Using where; Using index
-select fld1,fld3 from t2 where fld3="Colombo" or fld3 = "nondecreasing" order by fld3;
-fld1 fld3
-148504 Colombo
-068305 Colombo
-000000 nondecreasing
-select fld1,fld3 from t2 where companynr = 37 and fld3 = 'appendixes';
-fld1 fld3
-232605 appendixes
-1232605 appendixes
-1232606 appendixes
-1232607 appendixes
-1232608 appendixes
-1232609 appendixes
-select fld1 from t2 where fld1=250501 or fld1="250502";
-fld1
-250501
-250502
-explain select fld1 from t2 where fld1=250501 or fld1="250502";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 2 Using where; Using index
-select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-fld1
-250501
-250502
-250505
-250601
-explain select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 4 Using where; Using index
-select fld1,fld3 from t2 where companynr = 37 and fld3 like 'f%';
-fld1 fld3
-012001 flanking
-013602 foldout
-013606 fingerings
-018007 fanatic
-018017 featherweight
-018054 fetters
-018103 flint
-018104 flopping
-036002 funereal
-038017 fetched
-038205 firearm
-058004 Fenton
-088303 feminine
-186002 freakish
-188007 flurried
-188505 fitting
-198006 furthermore
-202301 Fitzpatrick
-208101 fiftieth
-208113 freest
-218008 finishers
-218022 feed
-218401 faithful
-226205 foothill
-226209 furnishings
-228306 forthcoming
-228311 fated
-231315 freezes
-232102 forgivably
-238007 filial
-238008 fixedly
-select fld3 from t2 where fld3 like "L%" and fld3 = "ok";
-fld3
-select fld3 from t2 where (fld3 like "C%" and fld3 = "Chantilly");
-fld3
-Chantilly
-select fld1,fld3 from t2 where fld1 like "25050%";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select fld1,fld3 from t2 where fld1 like "25050_";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select distinct companynr from t2;
-companynr
-00
-37
-36
-50
-58
-29
-40
-53
-65
-41
-34
-68
-select distinct companynr from t2 order by companynr;
-companynr
-00
-29
-34
-36
-37
-40
-41
-50
-53
-58
-65
-68
-select distinct companynr from t2 order by companynr desc;
-companynr
-68
-65
-58
-53
-50
-41
-40
-37
-36
-34
-29
-00
-select distinct t2.fld3,period from t2,t1 where companynr=37 and fld3 like "O%";
-fld3 period
-obliterates 9410
-offload 9410
-opaquely 9410
-organizer 9410
-overestimating 9410
-overlay 9410
-select distinct fld3 from t2 where companynr = 34 order by fld3;
-fld3
-absentee
-accessed
-ahead
-alphabetic
-Asiaticizations
-attitude
-aye
-bankruptcies
-belays
-Blythe
-bomb
-boulevard
-bulldozes
-cannot
-caressing
-charcoal
-checksumming
-chess
-clubroom
-colorful
-cosy
-creator
-crying
-Darius
-diffusing
-duality
-Eiffel
-Epiphany
-Ernestine
-explorers
-exterminated
-famine
-forked
-Gershwins
-heaving
-Hodges
-Iraqis
-Italianization
-Lagos
-landslide
-libretto
-Majorca
-mastering
-narrowed
-occurred
-offerers
-Palestine
-Peruvianizes
-pharmaceutic
-poisoning
-population
-Pygmalion
-rats
-realest
-recording
-regimented
-retransmitting
-reviver
-rouses
-scars
-sicker
-sleepwalk
-stopped
-sugars
-translatable
-uncles
-unexpected
-uprisings
-versatility
-vest
-select distinct fld3 from t2 limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct fld3 from t2 having fld3 like "A%" limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%";
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-Adl
-adm
-Ado
-ads
-adv
-aer
-aff
-afi
-afl
-afo
-agi
-ahe
-aim
-air
-Ald
-alg
-ali
-all
-alp
-alr
-ama
-ame
-amm
-ana
-and
-ane
-Ang
-ani
-Ann
-Ant
-api
-app
-aqu
-Ara
-arc
-Arm
-arr
-Art
-Asi
-ask
-asp
-ass
-ast
-att
-aud
-Aug
-aut
-ave
-avo
-awe
-aye
-Azt
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" order by a limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%" limit 10;
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-create table t3 (
-period int not null,
-name char(32) not null,
-companynr int not null,
-price double(11,0),
-price2 double(11,0),
-key (period),
-key (name)
-);
-create temporary table tmp engine = myisam select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-alter table t3 add t2nr int not null auto_increment primary key first;
-drop table tmp;
-SET BIG_TABLES=1;
-select distinct concat(fld3," ",fld3) as namn from t2,t3 where t2.fld1=t3.t2nr order by namn limit 10;
-namn
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-SET BIG_TABLES=0;
-select distinct concat(fld3," ",fld3) from t2,t3 where t2.fld1=t3.t2nr order by fld3 limit 10;
-concat(fld3," ",fld3)
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-select distinct fld5 from t2 limit 10;
-fld5
-neat
-Steinberg
-jarring
-tinily
-balled
-persist
-attainments
-fanatic
-measures
-rightfulness
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=1;
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=0;
-select distinct fld3,repeat("a",length(fld3)),count(*) from t2 group by companynr,fld3 limit 100,10;
-fld3 repeat("a",length(fld3)) count(*)
-circus aaaaaa 1
-cited aaaaa 1
-Colombo aaaaaaa 1
-congresswoman aaaaaaaaaaaaa 1
-contrition aaaaaaaaaa 1
-corny aaaaa 1
-cultivation aaaaaaaaaaa 1
-definiteness aaaaaaaaaaaa 1
-demultiplex aaaaaaaaaaa 1
-disappointing aaaaaaaaaaaaa 1
-select distinct companynr,rtrim(space(512+companynr)) from t3 order by 1,2;
-companynr rtrim(space(512+companynr))
-37
-78
-101
-154
-311
-447
-512
-select distinct fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by fld3;
-fld3
-explain select t3.t2nr,fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by t3.t2nr,fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL fld1 NULL NULL NULL 1199 Using where; Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.fld1 1 Using where; Using index
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL period NULL NULL NULL 41810 Using filesort
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index period period 4 NULL 1
-1 SIMPLE t1 ref period period 4 test.t3.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t1.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index period period 4 NULL 1
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-select period from t1;
-period
-9410
-select period from t1 where period=1900;
-period
-select fld3,period from t1,t2 where fld1 = 011401 order by period;
-fld3 period
-breaking 9410
-select fld3,period from t2,t3 where t2.fld1 = 011401 and t2.fld1=t3.t2nr and t3.period=1001;
-fld3 period
-breaking 1001
-explain select fld3,period from t2,t3 where t2.fld1 = 011401 and t3.t2nr=t2.fld1 and 1001 = t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const fld1 fld1 4 const 1
-1 SIMPLE t3 const PRIMARY,period PRIMARY 4 const 1
-select fld3,period from t2,t1 where companynr*10 = 37*10;
-fld3 period
-breaking 9410
-Romans 9410
-intercepted 9410
-bewilderingly 9410
-astound 9410
-admonishing 9410
-sumac 9410
-flanking 9410
-combed 9410
-subjective 9410
-scatterbrain 9410
-Eulerian 9410
-Kane 9410
-overlay 9410
-perturb 9410
-goblins 9410
-annihilates 9410
-Wotan 9410
-snatching 9410
-concludes 9410
-laterally 9410
-yelped 9410
-grazing 9410
-Baird 9410
-celery 9410
-misunderstander 9410
-handgun 9410
-foldout 9410
-mystic 9410
-succumbed 9410
-Nabisco 9410
-fingerings 9410
-aging 9410
-afield 9410
-ammonium 9410
-boat 9410
-intelligibility 9410
-Augustine 9410
-teethe 9410
-dreaded 9410
-scholastics 9410
-audiology 9410
-wallet 9410
-parters 9410
-eschew 9410
-quitter 9410
-neat 9410
-Steinberg 9410
-jarring 9410
-tinily 9410
-balled 9410
-persist 9410
-attainments 9410
-fanatic 9410
-measures 9410
-rightfulness 9410
-capably 9410
-impulsive 9410
-starlet 9410
-terminators 9410
-untying 9410
-announces 9410
-featherweight 9410
-pessimist 9410
-daughter 9410
-decliner 9410
-lawgiver 9410
-stated 9410
-readable 9410
-attrition 9410
-cascade 9410
-motors 9410
-interrogate 9410
-pests 9410
-stairway 9410
-dopers 9410
-testicle 9410
-Parsifal 9410
-leavings 9410
-postulation 9410
-squeaking 9410
-contrasted 9410
-leftover 9410
-whiteners 9410
-erases 9410
-Punjab 9410
-Merritt 9410
-Quixotism 9410
-sweetish 9410
-dogging 9410
-scornfully 9410
-bellow 9410
-bills 9410
-cupboard 9410
-sureties 9410
-puddings 9410
-fetters 9410
-bivalves 9410
-incurring 9410
-Adolph 9410
-pithed 9410
-Miles 9410
-trimmings 9410
-tragedies 9410
-skulking 9410
-flint 9410
-flopping 9410
-relaxing 9410
-offload 9410
-suites 9410
-lists 9410
-animized 9410
-multilayer 9410
-standardizes 9410
-Judas 9410
-vacuuming 9410
-dentally 9410
-humanness 9410
-inch 9410
-Weissmuller 9410
-irresponsibly 9410
-luckily 9410
-culled 9410
-medical 9410
-bloodbath 9410
-subschema 9410
-animals 9410
-Micronesia 9410
-repetitions 9410
-Antares 9410
-ventilate 9410
-pityingly 9410
-interdependent 9410
-Graves 9410
-neonatal 9410
-chafe 9410
-honoring 9410
-realtor 9410
-elite 9410
-funereal 9410
-abrogating 9410
-sorters 9410
-Conley 9410
-lectured 9410
-Abraham 9410
-Hawaii 9410
-cage 9410
-hushes 9410
-Simla 9410
-reporters 9410
-Dutchman 9410
-descendants 9410
-groupings 9410
-dissociate 9410
-coexist 9410
-Beebe 9410
-Taoism 9410
-Connally 9410
-fetched 9410
-checkpoints 9410
-rusting 9410
-galling 9410
-obliterates 9410
-traitor 9410
-resumes 9410
-analyzable 9410
-terminator 9410
-gritty 9410
-firearm 9410
-minima 9410
-Selfridge 9410
-disable 9410
-witchcraft 9410
-betroth 9410
-Manhattanize 9410
-imprint 9410
-peeked 9410
-swelling 9410
-interrelationships 9410
-riser 9410
-Gandhian 9410
-peacock 9410
-bee 9410
-kanji 9410
-dental 9410
-scarf 9410
-chasm 9410
-insolence 9410
-syndicate 9410
-alike 9410
-imperial 9410
-convulsion 9410
-railway 9410
-validate 9410
-normalizes 9410
-comprehensive 9410
-chewing 9410
-denizen 9410
-schemer 9410
-chronicle 9410
-Kline 9410
-Anatole 9410
-partridges 9410
-brunch 9410
-recruited 9410
-dimensions 9410
-Chicana 9410
-announced 9410
-praised 9410
-employing 9410
-linear 9410
-quagmire 9410
-western 9410
-relishing 9410
-serving 9410
-scheduling 9410
-lore 9410
-eventful 9410
-arteriole 9410
-disentangle 9410
-cured 9410
-Fenton 9410
-avoidable 9410
-drains 9410
-detectably 9410
-husky 9410
-impelling 9410
-undoes 9410
-evened 9410
-squeezes 9410
-destroyer 9410
-rudeness 9410
-beaner 9410
-boorish 9410
-Everhart 9410
-encompass 9410
-mushrooms 9410
-Alison 9410
-externally 9410
-pellagra 9410
-cult 9410
-creek 9410
-Huffman 9410
-Majorca 9410
-governing 9410
-gadfly 9410
-reassigned 9410
-intentness 9410
-craziness 9410
-psychic 9410
-squabbled 9410
-burlesque 9410
-capped 9410
-extracted 9410
-DiMaggio 9410
-exclamation 9410
-subdirectory 9410
-Gothicism 9410
-feminine 9410
-metaphysically 9410
-sanding 9410
-Miltonism 9410
-freakish 9410
-index 9410
-straight 9410
-flurried 9410
-denotative 9410
-coming 9410
-commencements 9410
-gentleman 9410
-gifted 9410
-Shanghais 9410
-sportswriting 9410
-sloping 9410
-navies 9410
-leaflet 9410
-shooter 9410
-Joplin 9410
-babies 9410
-assails 9410
-admiring 9410
-swaying 9410
-Goldstine 9410
-fitting 9410
-Norwalk 9410
-analogy 9410
-deludes 9410
-cokes 9410
-Clayton 9410
-exhausts 9410
-causality 9410
-sating 9410
-icon 9410
-throttles 9410
-communicants 9410
-dehydrate 9410
-priceless 9410
-publicly 9410
-incidentals 9410
-commonplace 9410
-mumbles 9410
-furthermore 9410
-cautioned 9410
-parametrized 9410
-registration 9410
-sadly 9410
-positioning 9410
-babysitting 9410
-eternal 9410
-hoarder 9410
-congregates 9410
-rains 9410
-workers 9410
-sags 9410
-unplug 9410
-garage 9410
-boulder 9410
-specifics 9410
-Teresa 9410
-Winsett 9410
-convenient 9410
-buckboards 9410
-amenities 9410
-resplendent 9410
-sews 9410
-participated 9410
-Simon 9410
-certificates 9410
-Fitzpatrick 9410
-Evanston 9410
-misted 9410
-textures 9410
-save 9410
-count 9410
-rightful 9410
-chaperone 9410
-Lizzy 9410
-clenched 9410
-effortlessly 9410
-accessed 9410
-beaters 9410
-Hornblower 9410
-vests 9410
-indulgences 9410
-infallibly 9410
-unwilling 9410
-excrete 9410
-spools 9410
-crunches 9410
-overestimating 9410
-ineffective 9410
-humiliation 9410
-sophomore 9410
-star 9410
-rifles 9410
-dialysis 9410
-arriving 9410
-indulge 9410
-clockers 9410
-languages 9410
-Antarctica 9410
-percentage 9410
-ceiling 9410
-specification 9410
-regimented 9410
-ciphers 9410
-pictures 9410
-serpents 9410
-allot 9410
-realized 9410
-mayoral 9410
-opaquely 9410
-hostess 9410
-fiftieth 9410
-incorrectly 9410
-decomposition 9410
-stranglings 9410
-mixture 9410
-electroencephalography 9410
-similarities 9410
-charges 9410
-freest 9410
-Greenberg 9410
-tinting 9410
-expelled 9410
-warm 9410
-smoothed 9410
-deductions 9410
-Romano 9410
-bitterroot 9410
-corset 9410
-securing 9410
-environing 9410
-cute 9410
-Crays 9410
-heiress 9410
-inform 9410
-avenge 9410
-universals 9410
-Kinsey 9410
-ravines 9410
-bestseller 9410
-equilibrium 9410
-extents 9410
-relatively 9410
-pressure 9410
-critiques 9410
-befouled 9410
-rightfully 9410
-mechanizing 9410
-Latinizes 9410
-timesharing 9410
-Aden 9410
-embassies 9410
-males 9410
-shapelessly 9410
-mastering 9410
-Newtonian 9410
-finishers 9410
-abates 9410
-teem 9410
-kiting 9410
-stodgy 9410
-feed 9410
-guitars 9410
-airships 9410
-store 9410
-denounces 9410
-Pyle 9410
-Saxony 9410
-serializations 9410
-Peruvian 9410
-taxonomically 9410
-kingdom 9410
-stint 9410
-Sault 9410
-faithful 9410
-Ganymede 9410
-tidiness 9410
-gainful 9410
-contrary 9410
-Tipperary 9410
-tropics 9410
-theorizers 9410
-renew 9410
-already 9410
-terminal 9410
-Hegelian 9410
-hypothesizer 9410
-warningly 9410
-journalizing 9410
-nested 9410
-Lars 9410
-saplings 9410
-foothill 9410
-labeled 9410
-imperiously 9410
-reporters 9410
-furnishings 9410
-precipitable 9410
-discounts 9410
-excises 9410
-Stalin 9410
-despot 9410
-ripeness 9410
-Arabia 9410
-unruly 9410
-mournfulness 9410
-boom 9410
-slaughter 9410
-Sabine 9410
-handy 9410
-rural 9410
-organizer 9410
-shipyard 9410
-civics 9410
-inaccuracy 9410
-rules 9410
-juveniles 9410
-comprised 9410
-investigations 9410
-stabilizes 9410
-seminaries 9410
-Hunter 9410
-sporty 9410
-test 9410
-weasels 9410
-CERN 9410
-tempering 9410
-afore 9410
-Galatean 9410
-techniques 9410
-error 9410
-veranda 9410
-severely 9410
-Cassites 9410
-forthcoming 9410
-guides 9410
-vanish 9410
-lied 9410
-sawtooth 9410
-fated 9410
-gradually 9410
-widens 9410
-preclude 9410
-evenhandedly 9410
-percentage 9410
-disobedience 9410
-humility 9410
-gleaning 9410
-petted 9410
-bloater 9410
-minion 9410
-marginal 9410
-apiary 9410
-measures 9410
-precaution 9410
-repelled 9410
-primary 9410
-coverings 9410
-Artemia 9410
-navigate 9410
-spatial 9410
-Gurkha 9410
-meanwhile 9410
-Melinda 9410
-Butterfield 9410
-Aldrich 9410
-previewing 9410
-glut 9410
-unaffected 9410
-inmate 9410
-mineral 9410
-impending 9410
-meditation 9410
-ideas 9410
-miniaturizes 9410
-lewdly 9410
-title 9410
-youthfulness 9410
-creak 9410
-Chippewa 9410
-clamored 9410
-freezes 9410
-forgivably 9410
-reduce 9410
-McGovern 9410
-Nazis 9410
-epistle 9410
-socializes 9410
-conceptions 9410
-Kevin 9410
-uncovering 9410
-chews 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-raining 9410
-infest 9410
-compartment 9410
-minting 9410
-ducks 9410
-roped 9410
-waltz 9410
-Lillian 9410
-repressions 9410
-chillingly 9410
-noncritical 9410
-lithograph 9410
-spongers 9410
-parenthood 9410
-posed 9410
-instruments 9410
-filial 9410
-fixedly 9410
-relives 9410
-Pandora 9410
-watering 9410
-ungrateful 9410
-secures 9410
-poison 9410
-dusted 9410
-encompasses 9410
-presentation 9410
-Kantian 9410
-select fld3,period,price,price2 from t2,t3 where t2.fld1=t3.t2nr and period >= 1001 and period <= 1002 and t2.companynr = 37 order by fld3,period, price;
-fld3 period price price2
-admonishing 1002 28357832 8723648
-analyzable 1002 28357832 8723648
-annihilates 1001 5987435 234724
-Antares 1002 28357832 8723648
-astound 1001 5987435 234724
-audiology 1001 5987435 234724
-Augustine 1002 28357832 8723648
-Baird 1002 28357832 8723648
-bewilderingly 1001 5987435 234724
-breaking 1001 5987435 234724
-Conley 1001 5987435 234724
-dentally 1002 28357832 8723648
-dissociate 1002 28357832 8723648
-elite 1001 5987435 234724
-eschew 1001 5987435 234724
-Eulerian 1001 5987435 234724
-flanking 1001 5987435 234724
-foldout 1002 28357832 8723648
-funereal 1002 28357832 8723648
-galling 1002 28357832 8723648
-Graves 1001 5987435 234724
-grazing 1001 5987435 234724
-groupings 1001 5987435 234724
-handgun 1001 5987435 234724
-humility 1002 28357832 8723648
-impulsive 1002 28357832 8723648
-inch 1001 5987435 234724
-intelligibility 1001 5987435 234724
-jarring 1001 5987435 234724
-lawgiver 1001 5987435 234724
-lectured 1002 28357832 8723648
-Merritt 1002 28357832 8723648
-neonatal 1001 5987435 234724
-offload 1002 28357832 8723648
-parters 1002 28357832 8723648
-pityingly 1002 28357832 8723648
-puddings 1002 28357832 8723648
-Punjab 1001 5987435 234724
-quitter 1002 28357832 8723648
-realtor 1001 5987435 234724
-relaxing 1001 5987435 234724
-repetitions 1001 5987435 234724
-resumes 1001 5987435 234724
-Romans 1002 28357832 8723648
-rusting 1001 5987435 234724
-scholastics 1001 5987435 234724
-skulking 1002 28357832 8723648
-stated 1002 28357832 8723648
-suites 1002 28357832 8723648
-sureties 1001 5987435 234724
-testicle 1002 28357832 8723648
-tinily 1002 28357832 8723648
-tragedies 1001 5987435 234724
-trimmings 1001 5987435 234724
-vacuuming 1001 5987435 234724
-ventilate 1001 5987435 234724
-wallet 1001 5987435 234724
-Weissmuller 1002 28357832 8723648
-Wotan 1002 28357832 8723648
-select t2.fld1,fld3,period,price,price2 from t2,t3 where t2.fld1>= 18201 and t2.fld1 <= 18811 and t2.fld1=t3.t2nr and period = 1001 and t2.companynr = 37;
-fld1 fld3 period price price2
-018201 relaxing 1001 5987435 234724
-018601 vacuuming 1001 5987435 234724
-018801 inch 1001 5987435 234724
-018811 repetitions 1001 5987435 234724
-create table t4 (
-companynr tinyint(2) unsigned zerofill NOT NULL default '00',
-companyname char(30) NOT NULL default '',
-PRIMARY KEY (companynr),
-UNIQUE KEY companyname(companyname)
-) ENGINE=MyISAM MAX_ROWS=50 PACK_KEYS=1 COMMENT='companynames';
-select STRAIGHT_JOIN t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select SQL_SMALL_RESULT t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select * from t1,t1 t12;
-Period Varor_period Period Varor_period
-9410 9412 9410 9412
-select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505;
-fld1 fld1
-250501 250501
-250502 250501
-250503 250501
-250504 250501
-250505 250501
-250501 250502
-250502 250502
-250503 250502
-250504 250502
-250505 250502
-250501 250503
-250502 250503
-250503 250503
-250504 250503
-250505 250503
-250501 250504
-250502 250504
-250503 250504
-250504 250504
-250505 250504
-250501 250505
-250502 250505
-250503 250505
-250504 250505
-250505 250505
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-insert into t2 (fld1, companynr) values (999999,99);
-select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-companynr companyname
-99 NULL
-select count(*) from t2 left join t4 using (companynr) where t4.companynr is not null;
-count(*)
-1199
-explain select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1 Using where; Not exists
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200 Using where; Not exists
-select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-companynr companyname
-select count(*) from t2 left join t4 using (companynr) where companynr is not null;
-count(*)
-1200
-explain select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-delete from t2 where fld1=999999;
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 and t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 and companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0 or t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where ifnull(t2.companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0 or companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where ifnull(companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-SET optimizer_switch=@save_optimizer_switch;
-select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-companynr companynr
-37 36
-41 40
-explain select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 index NULL PRIMARY 1 NULL 12 Using index; Using temporary
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where; Using join buffer (flat, BNL join)
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where t2.fld1 = 38208 and t2.fld1=t3.t2nr and period = 1008 or t2.fld1 = 38008 and t2.fld1 =t3.t2nr and period = 1008;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t2.fld1 = 38208 or t2.fld1 = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t3.t2nr = 38208 or t3.t2nr = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select period from t1 where (((period > 0) or period < 10000 or (period = 1900)) and (period=1900 and period <= 1901) or (period=1903 and (period=1903)) and period>=1902) or ((period=1904 or period=1905) or (period=1906 or period>1907)) or (period=1908 and period = 1909);
-period
-9410
-select period from t1 where ((period > 0 and period < 1) or (((period > 0 and period < 100) and (period > 10)) or (period > 10)) or (period > 0 and (period > 5 or period > 6)));
-period
-9410
-select a.fld1 from t2 as a,t2 b where ((a.fld1 = 250501 and a.fld1=b.fld1) or a.fld1=250502 or a.fld1=250503 or (a.fld1=250505 and a.fld1<=b.fld1 and b.fld1>=a.fld1)) and a.fld1=b.fld1;
-fld1
-250501
-250502
-250503
-250505
-select fld1 from t2 where fld1 in (250502,98005,98006,250503,250605,250606) and fld1 >=250502 and fld1 not in (250605,250606);
-fld1
-250502
-250503
-select fld1 from t2 where fld1 between 250502 and 250504;
-fld1
-250502
-250503
-250504
-select fld3 from t2 where (((fld3 like "_%L%" ) or (fld3 like "%ok%")) and ( fld3 like "L%" or fld3 like "G%")) and fld3 like "L%" ;
-fld3
-label
-labeled
-labeled
-landslide
-laterally
-leaflet
-lewdly
-Lillian
-luckily
-select count(*) from t1;
-count(*)
-1
-select companynr,count(*),sum(fld1) from t2 group by companynr;
-companynr count(*) sum(fld1)
-00 82 10355753
-29 95 14473298
-34 70 17788966
-36 215 22786296
-37 588 83602098
-40 37 6618386
-41 52 12816335
-50 11 1595438
-53 4 793210
-58 23 2254293
-65 10 2284055
-68 12 3097288
-select companynr,count(*) from t2 group by companynr order by companynr desc limit 5;
-companynr count(*)
-68 12
-65 10
-58 23
-53 4
-50 11
-select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-explain extended select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 100.00 Using where
-Warnings:
-Note 1003 select count(0) AS `count(*)`,min(`test`.`t2`.`fld4`) AS `min(fld4)`,max(`test`.`t2`.`fld4`) AS `max(fld4)`,sum(`test`.`t2`.`fld1`) AS `sum(fld1)`,avg(`test`.`t2`.`fld1`) AS `avg(fld1)`,std(`test`.`t2`.`fld1`) AS `std(fld1)`,variance(`test`.`t2`.`fld1`) AS `variance(fld1)` from `test`.`t2` where `test`.`t2`.`companynr` = 34 and `test`.`t2`.`fld4` <> ''
-select companynr,count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 group by companynr limit 3;
-companynr count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-00 82 Anthony windmills 10355753 126289.6707 115550.9757 13352027981.7087
-29 95 abut wetness 14473298 152350.5053 8368.5480 70032594.9026
-34 70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-select companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select /*! SQL_SMALL_RESULT */ companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select companynr,count(price),sum(price),min(price),max(price),avg(price) from t3 group by companynr ;
-companynr count(price) sum(price) min(price) max(price) avg(price)
-37 12543 309394878010 5987435 39654943 24666736.6667
-78 8362 414611089292 726498 98439034 49582766.0000
-101 4181 3489454238 834598 834598 834598.0000
-154 4181 4112197254950 983543950 983543950 983543950.0000
-311 4181 979599938 234298 234298 234298.0000
-447 4181 9929180954 2374834 2374834 2374834.0000
-512 4181 3288532102 786542 786542 786542.0000
-select distinct mod(companynr,10) from t4 group by companynr;
-mod(companynr,10)
-0
-9
-4
-6
-7
-1
-3
-8
-5
-select distinct 1 from t4 group by companynr;
-1
-1
-select count(distinct fld1) from t2;
-count(distinct fld1)
-1199
-select companynr,count(distinct fld1) from t2 group by companynr;
-companynr count(distinct fld1)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(*) from t2 group by companynr;
-companynr count(*)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,1000))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,1000)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,200))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,200)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct floor(fld1/100)) from t2 group by companynr;
-companynr count(distinct floor(fld1/100))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select companynr,count(distinct concat(repeat(65,1000),floor(fld1/100))) from t2 group by companynr;
-companynr count(distinct concat(repeat(65,1000),floor(fld1/100)))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select sum(fld1),fld3 from t2 where fld3="Romans" group by fld1 limit 10;
-sum(fld1) fld3
-11402 Romans
-select name,count(*) from t3 where name='cloakroom' group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name='cloakroom' and price>10 group by name;
-name count(*)
-cloakroom 4181
-select count(*) from t3 where name='cloakroom' and price2=823742;
-count(*)
-4181
-select name,count(*) from t3 where name='cloakroom' and price2=823742 group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name >= "extramarital" and price <= 39654943 group by name;
-name count(*)
-extramarital 4181
-gazer 4181
-gems 4181
-Iranizes 4181
-spates 4181
-tucked 4181
-violinist 4181
-select t2.fld3,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld3 count(*)
-spates 4181
-select companynr|0,companyname from t4 group by 1;
-companynr|0 companyname
-0 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by t2.companynr order by companyname;
-companynr companyname count(*)
-29 company 1 95
-68 company 10 12
-50 company 11 11
-34 company 2 70
-36 company 3 215
-37 company 4 588
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-00 Unknown 82
-select t2.fld1,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld1 count(*)
-158402 4181
-select sum(Period)/count(*) from t1;
-sum(Period)/count(*)
-9410.0000
-select companynr,count(price) as "count",sum(price) as "sum" ,abs(sum(price)/count(price)-avg(price)) as "diff",(0+count(price))*companynr as func from t3 group by companynr;
-companynr count sum diff func
-37 12543 309394878010 0.0000 464091
-78 8362 414611089292 0.0000 652236
-101 4181 3489454238 0.0000 422281
-154 4181 4112197254950 0.0000 643874
-311 4181 979599938 0.0000 1300291
-447 4181 9929180954 0.0000 1868907
-512 4181 3288532102 0.0000 2140672
-select companynr,sum(price)/count(price) as avg from t3 group by companynr having avg > 70000000 order by avg;
-companynr avg
-154 983543950.0000
-select companynr,count(*) from t2 group by companynr order by 2 desc;
-companynr count(*)
-37 588
-36 215
-29 95
-00 82
-34 70
-41 52
-40 37
-58 23
-68 12
-50 11
-65 10
-53 4
-select companynr,count(*) from t2 where companynr > 40 group by companynr order by 2 desc;
-companynr count(*)
-41 52
-58 23
-68 12
-50 11
-65 10
-53 4
-select t2.fld4,t2.fld1,count(price),sum(price),min(price),max(price),avg(price) from t3,t2 where t3.companynr = 37 and t2.fld1 = t3.t2nr group by fld1,t2.fld4;
-fld4 fld1 count(price) sum(price) min(price) max(price) avg(price)
-teethe 000001 1 5987435 5987435 5987435 5987435.0000
-dreaded 011401 1 5987435 5987435 5987435 5987435.0000
-scholastics 011402 1 28357832 28357832 28357832 28357832.0000
-audiology 011403 1 39654943 39654943 39654943 39654943.0000
-wallet 011501 1 5987435 5987435 5987435 5987435.0000
-parters 011701 1 5987435 5987435 5987435 5987435.0000
-eschew 011702 1 28357832 28357832 28357832 28357832.0000
-quitter 011703 1 39654943 39654943 39654943 39654943.0000
-neat 012001 1 5987435 5987435 5987435 5987435.0000
-Steinberg 012003 1 39654943 39654943 39654943 39654943.0000
-balled 012301 1 5987435 5987435 5987435 5987435.0000
-persist 012302 1 28357832 28357832 28357832 28357832.0000
-attainments 012303 1 39654943 39654943 39654943 39654943.0000
-capably 012501 1 5987435 5987435 5987435 5987435.0000
-impulsive 012602 1 28357832 28357832 28357832 28357832.0000
-starlet 012603 1 39654943 39654943 39654943 39654943.0000
-featherweight 012701 1 5987435 5987435 5987435 5987435.0000
-pessimist 012702 1 28357832 28357832 28357832 28357832.0000
-daughter 012703 1 39654943 39654943 39654943 39654943.0000
-lawgiver 013601 1 5987435 5987435 5987435 5987435.0000
-stated 013602 1 28357832 28357832 28357832 28357832.0000
-readable 013603 1 39654943 39654943 39654943 39654943.0000
-testicle 013801 1 5987435 5987435 5987435 5987435.0000
-Parsifal 013802 1 28357832 28357832 28357832 28357832.0000
-leavings 013803 1 39654943 39654943 39654943 39654943.0000
-squeaking 013901 1 5987435 5987435 5987435 5987435.0000
-contrasted 016001 1 5987435 5987435 5987435 5987435.0000
-leftover 016201 1 5987435 5987435 5987435 5987435.0000
-whiteners 016202 1 28357832 28357832 28357832 28357832.0000
-erases 016301 1 5987435 5987435 5987435 5987435.0000
-Punjab 016302 1 28357832 28357832 28357832 28357832.0000
-Merritt 016303 1 39654943 39654943 39654943 39654943.0000
-sweetish 018001 1 5987435 5987435 5987435 5987435.0000
-dogging 018002 1 28357832 28357832 28357832 28357832.0000
-scornfully 018003 1 39654943 39654943 39654943 39654943.0000
-fetters 018012 1 28357832 28357832 28357832 28357832.0000
-bivalves 018013 1 39654943 39654943 39654943 39654943.0000
-skulking 018021 1 5987435 5987435 5987435 5987435.0000
-flint 018022 1 28357832 28357832 28357832 28357832.0000
-flopping 018023 1 39654943 39654943 39654943 39654943.0000
-Judas 018032 1 28357832 28357832 28357832 28357832.0000
-vacuuming 018033 1 39654943 39654943 39654943 39654943.0000
-medical 018041 1 5987435 5987435 5987435 5987435.0000
-bloodbath 018042 1 28357832 28357832 28357832 28357832.0000
-subschema 018043 1 39654943 39654943 39654943 39654943.0000
-interdependent 018051 1 5987435 5987435 5987435 5987435.0000
-Graves 018052 1 28357832 28357832 28357832 28357832.0000
-neonatal 018053 1 39654943 39654943 39654943 39654943.0000
-sorters 018061 1 5987435 5987435 5987435 5987435.0000
-epistle 018062 1 28357832 28357832 28357832 28357832.0000
-Conley 018101 1 5987435 5987435 5987435 5987435.0000
-lectured 018102 1 28357832 28357832 28357832 28357832.0000
-Abraham 018103 1 39654943 39654943 39654943 39654943.0000
-cage 018201 1 5987435 5987435 5987435 5987435.0000
-hushes 018202 1 28357832 28357832 28357832 28357832.0000
-Simla 018402 1 28357832 28357832 28357832 28357832.0000
-reporters 018403 1 39654943 39654943 39654943 39654943.0000
-coexist 018601 1 5987435 5987435 5987435 5987435.0000
-Beebe 018602 1 28357832 28357832 28357832 28357832.0000
-Taoism 018603 1 39654943 39654943 39654943 39654943.0000
-Connally 018801 1 5987435 5987435 5987435 5987435.0000
-fetched 018802 1 28357832 28357832 28357832 28357832.0000
-checkpoints 018803 1 39654943 39654943 39654943 39654943.0000
-gritty 018811 1 5987435 5987435 5987435 5987435.0000
-firearm 018812 1 28357832 28357832 28357832 28357832.0000
-minima 019101 1 5987435 5987435 5987435 5987435.0000
-Selfridge 019102 1 28357832 28357832 28357832 28357832.0000
-disable 019103 1 39654943 39654943 39654943 39654943.0000
-witchcraft 019201 1 5987435 5987435 5987435 5987435.0000
-betroth 030501 1 5987435 5987435 5987435 5987435.0000
-Manhattanize 030502 1 28357832 28357832 28357832 28357832.0000
-imprint 030503 1 39654943 39654943 39654943 39654943.0000
-swelling 031901 1 5987435 5987435 5987435 5987435.0000
-interrelationships 036001 1 5987435 5987435 5987435 5987435.0000
-riser 036002 1 28357832 28357832 28357832 28357832.0000
-bee 038001 1 5987435 5987435 5987435 5987435.0000
-kanji 038002 1 28357832 28357832 28357832 28357832.0000
-dental 038003 1 39654943 39654943 39654943 39654943.0000
-railway 038011 1 5987435 5987435 5987435 5987435.0000
-validate 038012 1 28357832 28357832 28357832 28357832.0000
-normalizes 038013 1 39654943 39654943 39654943 39654943.0000
-Kline 038101 1 5987435 5987435 5987435 5987435.0000
-Anatole 038102 1 28357832 28357832 28357832 28357832.0000
-partridges 038103 1 39654943 39654943 39654943 39654943.0000
-recruited 038201 1 5987435 5987435 5987435 5987435.0000
-dimensions 038202 1 28357832 28357832 28357832 28357832.0000
-Chicana 038203 1 39654943 39654943 39654943 39654943.0000
-select t3.companynr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 group by companynr,fld3;
-companynr fld3 sum(price)
-512 boat 786542
-512 capably 786542
-512 cupboard 786542
-512 decliner 786542
-512 descendants 786542
-512 dopers 786542
-512 erases 786542
-512 Micronesia 786542
-512 Miles 786542
-512 skies 786542
-select t2.companynr,count(*),min(fld3),max(fld3),sum(price),avg(price) from t2,t3 where t3.companynr >= 30 and t3.companynr <= 58 and t3.t2nr = t2.fld1 and 1+1=2 group by t2.companynr;
-companynr count(*) min(fld3) max(fld3) sum(price) avg(price)
-00 1 Omaha Omaha 5987435 5987435.0000
-36 1 dubbed dubbed 28357832 28357832.0000
-37 83 Abraham Wotan 1908978016 22999735.1325
-50 2 scribbled tapestry 68012775 34006387.5000
-select t3.companynr+0,t3.t2nr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 37 group by 1,t3.t2nr,fld3,fld3,fld3,fld3,fld3 order by fld1;
-t3.companynr+0 t2nr fld3 sum(price)
-37 1 Omaha 5987435
-37 11401 breaking 5987435
-37 11402 Romans 28357832
-37 11403 intercepted 39654943
-37 11501 bewilderingly 5987435
-37 11701 astound 5987435
-37 11702 admonishing 28357832
-37 11703 sumac 39654943
-37 12001 flanking 5987435
-37 12003 combed 39654943
-37 12301 Eulerian 5987435
-37 12302 dubbed 28357832
-37 12303 Kane 39654943
-37 12501 annihilates 5987435
-37 12602 Wotan 28357832
-37 12603 snatching 39654943
-37 12701 grazing 5987435
-37 12702 Baird 28357832
-37 12703 celery 39654943
-37 13601 handgun 5987435
-37 13602 foldout 28357832
-37 13603 mystic 39654943
-37 13801 intelligibility 5987435
-37 13802 Augustine 28357832
-37 13803 teethe 39654943
-37 13901 scholastics 5987435
-37 16001 audiology 5987435
-37 16201 wallet 5987435
-37 16202 parters 28357832
-37 16301 eschew 5987435
-37 16302 quitter 28357832
-37 16303 neat 39654943
-37 18001 jarring 5987435
-37 18002 tinily 28357832
-37 18003 balled 39654943
-37 18012 impulsive 28357832
-37 18013 starlet 39654943
-37 18021 lawgiver 5987435
-37 18022 stated 28357832
-37 18023 readable 39654943
-37 18032 testicle 28357832
-37 18033 Parsifal 39654943
-37 18041 Punjab 5987435
-37 18042 Merritt 28357832
-37 18043 Quixotism 39654943
-37 18051 sureties 5987435
-37 18052 puddings 28357832
-37 18053 tapestry 39654943
-37 18061 trimmings 5987435
-37 18062 humility 28357832
-37 18101 tragedies 5987435
-37 18102 skulking 28357832
-37 18103 flint 39654943
-37 18201 relaxing 5987435
-37 18202 offload 28357832
-37 18402 suites 28357832
-37 18403 lists 39654943
-37 18601 vacuuming 5987435
-37 18602 dentally 28357832
-37 18603 humanness 39654943
-37 18801 inch 5987435
-37 18802 Weissmuller 28357832
-37 18803 irresponsibly 39654943
-37 18811 repetitions 5987435
-37 18812 Antares 28357832
-37 19101 ventilate 5987435
-37 19102 pityingly 28357832
-37 19103 interdependent 39654943
-37 19201 Graves 5987435
-37 30501 neonatal 5987435
-37 30502 scribbled 28357832
-37 30503 chafe 39654943
-37 31901 realtor 5987435
-37 36001 elite 5987435
-37 36002 funereal 28357832
-37 38001 Conley 5987435
-37 38002 lectured 28357832
-37 38003 Abraham 39654943
-37 38011 groupings 5987435
-37 38012 dissociate 28357832
-37 38013 coexist 39654943
-37 38101 rusting 5987435
-37 38102 galling 28357832
-37 38103 obliterates 39654943
-37 38201 resumes 5987435
-37 38202 analyzable 28357832
-37 38203 terminator 39654943
-select sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1= t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008;
-sum(price)
-234298
-select t2.fld1,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1 = t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008 or t3.t2nr = t2.fld1 and t2.fld1 = 38008 group by t2.fld1;
-fld1 sum(price)
-038008 234298
-explain select fld3 from t2 where 1>2 or 2>3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select fld3 from t2 where fld1=fld1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199
-select companynr,fld1 from t2 HAVING fld1=250501 or fld1=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,fld1 from t2 WHERE fld1>=250501 HAVING fld1<=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,count(*) as count,sum(fld1) as sum from t2 group by companynr having count > 40 and sum/count >= 120000;
-companynr count sum
-00 82 10355753
-29 95 14473298
-34 70 17788966
-37 588 83602098
-41 52 12816335
-select companynr from t2 group by companynr having count(*) > 40 and sum(fld1)/count(*) >= 120000 ;
-companynr
-00
-29
-34
-37
-41
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by companyname having t2.companynr >= 40;
-companynr companyname count(*)
-68 company 10 12
-50 company 11 11
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-select count(*) from t2;
-count(*)
-1199
-select count(*) from t2 where fld1 < 098024;
-count(*)
-387
-select min(fld1) from t2 where fld1>= 098024;
-min(fld1)
-98024
-select max(fld1) from t2 where fld1>= 098024;
-max(fld1)
-1232609
-select count(*) from t3 where price2=76234234;
-count(*)
-4181
-select count(*) from t3 where companynr=512 and price2=76234234;
-count(*)
-4181
-explain select min(fld1),max(fld1),count(*) from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(fld1),max(fld1),count(*) from t2;
-min(fld1) max(fld1) count(*)
-0 1232609 1199
-select min(t2nr),max(t2nr) from t3 where t2nr=2115 and price2=823742;
-min(t2nr) max(t2nr)
-2115 2115
-select count(*),min(t2nr),max(t2nr) from t3 where name='spates' and companynr=78;
-count(*) min(t2nr) max(t2nr)
-4181 4 41804
-select t2nr,count(*) from t3 where name='gems' group by t2nr limit 20;
-t2nr count(*)
-9 1
-19 1
-29 1
-39 1
-49 1
-59 1
-69 1
-79 1
-89 1
-99 1
-109 1
-119 1
-129 1
-139 1
-149 1
-159 1
-169 1
-179 1
-189 1
-199 1
-select max(t2nr) from t3 where price=983543950;
-max(t2nr)
-41807
-select t1.period from t3 = t1 limit 1;
-period
-1001
-select t1.period from t1 as t1 limit 1;
-period
-9410
-select t1.period as "Nuvarande period" from t1 as t1 limit 1;
-Nuvarande period
-9410
-select period as ok_period from t1 limit 1;
-ok_period
-9410
-select period as ok_period from t1 group by ok_period limit 1;
-ok_period
-9410
-select 1+1 as summa from t1 group by summa limit 1;
-summa
-2
-select period as "Nuvarande period" from t1 group by "Nuvarande period" limit 1;
-Nuvarande period
-9410
-show tables;
-Tables_in_test
-t1
-t2
-t3
-t4
-show tables from test like "s%";
-Tables_in_test (s%)
-show tables from test like "t?";
-Tables_in_test (t?)
-show full columns from t2;
-Field Type Collation Null Key Default Extra Privileges Comment
-auto int(11) NULL NO PRI NULL auto_increment #
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-companynr tinyint(2) unsigned zerofill NULL NO 00 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 'f%';
-Field Type Collation Null Key Default Extra Privileges Comment
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 's%';
-Field Type Collation Null Key Default Extra Privileges Comment
-show keys from t2;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t2 0 PRIMARY 1 auto A 1199 NULL NULL BTREE
-t2 0 fld1 1 fld1 A 1199 NULL NULL BTREE
-t2 1 fld3 1 fld3 A NULL NULL NULL BTREE
-drop table t4, t3, t2, t1;
-CREATE TABLE t1 (
-cont_nr int(11) NOT NULL auto_increment,
-ver_nr int(11) NOT NULL default '0',
-aufnr int(11) NOT NULL default '0',
-username varchar(50) NOT NULL default '',
-hdl_nr int(11) NOT NULL default '0',
-eintrag date NOT NULL default '0000-00-00',
-st_klasse varchar(40) NOT NULL default '',
-st_wert varchar(40) NOT NULL default '',
-st_zusatz varchar(40) NOT NULL default '',
-st_bemerkung varchar(255) NOT NULL default '',
-kunden_art varchar(40) NOT NULL default '',
-mcbs_knr int(11) default NULL,
-mcbs_aufnr int(11) NOT NULL default '0',
-schufa_status char(1) default '?',
-bemerkung text,
-wirknetz text,
-wf_igz int(11) NOT NULL default '0',
-tarifcode varchar(80) default NULL,
-recycle char(1) default NULL,
-sim varchar(30) default NULL,
-mcbs_tpl varchar(30) default NULL,
-emp_nr int(11) NOT NULL default '0',
-laufzeit int(11) default NULL,
-hdl_name varchar(30) default NULL,
-prov_hdl_nr int(11) NOT NULL default '0',
-auto_wirknetz varchar(50) default NULL,
-auto_billing varchar(50) default NULL,
-touch timestamp NOT NULL,
-kategorie varchar(50) default NULL,
-kundentyp varchar(20) NOT NULL default '',
-sammel_rech_msisdn varchar(30) NOT NULL default '',
-p_nr varchar(9) NOT NULL default '',
-suffix char(3) NOT NULL default '',
-PRIMARY KEY (cont_nr),
-KEY idx_aufnr(aufnr),
-KEY idx_hdl_nr(hdl_nr),
-KEY idx_st_klasse(st_klasse),
-KEY ver_nr(ver_nr),
-KEY eintrag_idx(eintrag),
-KEY emp_nr_idx(emp_nr),
-KEY wf_igz(wf_igz),
-KEY touch(touch),
-KEY hdl_tag(eintrag,hdl_nr),
-KEY prov_hdl_nr(prov_hdl_nr),
-KEY mcbs_aufnr(mcbs_aufnr),
-KEY kundentyp(kundentyp),
-KEY p_nr(p_nr,suffix)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3359356,405,3359356,'Mustermann Musterfrau',52500,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1485525,2122316,'+','','N',1909160,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',3,24,'MobilCom Shop Koeln',52500,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359357,468,3359357,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1503580,2139699,'+','','P',1909171,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359358,407,3359358,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1501358,2137473,'N','','N',1909159,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359359,468,3359359,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1507831,2143894,'+','','P',1909162,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359360,0,0,'Mustermann Musterfrau',29674907,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1900169997,2414578,'+',NULL,'N',1909148,'',NULL,NULL,'RV99066_2',20,NULL,'POS',29674907,NULL,NULL,20010202105916,'Mobilfunk','','','97317481','007');
-INSERT INTO t1 VALUES (3359361,406,3359361,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag storniert','','(7001-84):Storno, Kd. möchte nicht mehr','privat',NULL,0,'+','','P',1909150,'MobilComSuper92000D1(Akquise)',NULL,NULL,'MS9ND1',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359362,406,3359362,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1509984,2145874,'+','','P',1909154,'MobilComSuper92000D1(Akquise)',NULL,NULL,'MS9ND1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-SELECT ELT(FIELD(kundentyp,'PP','PPA','PG','PGA','FK','FKA','FP','FPA','K','KA','V','VA',''), 'Privat (Private Nutzung)','Privat (Private Nutzung) Sitz im Ausland','Privat (geschaeftliche Nutzung)','Privat (geschaeftliche Nutzung) Sitz im Ausland','Firma (Kapitalgesellschaft)','Firma (Kapitalgesellschaft) Sitz im Ausland','Firma (Personengesellschaft)','Firma (Personengesellschaft) Sitz im Ausland','oeff. rechtl. Koerperschaft','oeff. rechtl. Koerperschaft Sitz im Ausland','Eingetragener Verein','Eingetragener Verein Sitz im Ausland','Typ unbekannt') AS Kundentyp ,kategorie FROM t1 WHERE hdl_nr < 2000000 AND kategorie IN ('Prepaid','Mobilfunk') AND st_klasse = 'Workflow' GROUP BY kundentyp ORDER BY kategorie;
-Kundentyp kategorie
-Privat (Private Nutzung) Mobilfunk
-Warnings:
-Warning 1052 Column 'kundentyp' in group statement is ambiguous
-drop table t1;
-SELECT (VARIABLE_VALUE <> '') AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher';
-have_ssl
-1
-select aes_decrypt('MySQL','adf');
-aes_decrypt('MySQL','adf')
-NULL
-select 'still connected?';
-still connected?
-still connected?
-connection default;
-disconnect ssl_con;
-create user mysqltest_1@localhost;
-grant usage on mysqltest.* to mysqltest_1@localhost require cipher "AES256-SHA";
-Variable_name Value
-Ssl_cipher AES256-SHA
-drop user mysqltest_1@localhost;
diff --git a/mysql-test/r/ssl_7937,nossl.result b/mysql-test/r/ssl_7937,nossl.result
deleted file mode 100644
index 72693233bc8..00000000000
--- a/mysql-test/r/ssl_7937,nossl.result
+++ /dev/null
@@ -1,15 +0,0 @@
-create procedure have_ssl()
-select if(variable_value > '','yes','no') as 'have_ssl'
- from information_schema.session_status
-where variable_name='ssl_cipher';
-mysql --ssl-ca=cacert.pem -e "call test.have_ssl()"
-have_ssl
-no
-mysql --ssl -e "call test.have_ssl()"
-have_ssl
-no
-mysql --ssl-ca=cacert.pem --ssl-verify-server-cert -e "call test.have_ssl()"
-ERROR 2026 (HY000): SSL connection error: SSL is required, but the server does not support it
-mysql --ssl --ssl-verify-server-cert -e "call test.have_ssl()"
-ERROR 2026 (HY000): SSL connection error: SSL is required, but the server does not support it
-drop procedure have_ssl;
diff --git a/mysql-test/r/ssl_7937.result b/mysql-test/r/ssl_7937.result
deleted file mode 100644
index a94ca3b3529..00000000000
--- a/mysql-test/r/ssl_7937.result
+++ /dev/null
@@ -1,16 +0,0 @@
-create procedure have_ssl()
-select if(variable_value > '','yes','no') as 'have_ssl'
- from information_schema.session_status
-where variable_name='ssl_cipher';
-mysql --ssl-ca=cacert.pem -e "call test.have_ssl()"
-have_ssl
-yes
-mysql --ssl -e "call test.have_ssl()"
-have_ssl
-yes
-mysql --ssl-ca=cacert.pem --ssl-verify-server-cert -e "call test.have_ssl()"
-have_ssl
-yes
-mysql --ssl --ssl-verify-server-cert -e "call test.have_ssl()"
-ERROR 2026 (HY000): SSL connection error: Failed to verify the server certificate
-drop procedure have_ssl;
diff --git a/mysql-test/r/ssl_8k_key.result b/mysql-test/r/ssl_8k_key.result
deleted file mode 100644
index ff9d0cce9dc..00000000000
--- a/mysql-test/r/ssl_8k_key.result
+++ /dev/null
@@ -1,2 +0,0 @@
-have_ssl
-1
diff --git a/mysql-test/r/ssl_and_innodb.result b/mysql-test/r/ssl_and_innodb.result
deleted file mode 100644
index 71373fc4033..00000000000
--- a/mysql-test/r/ssl_and_innodb.result
+++ /dev/null
@@ -1,8 +0,0 @@
-CREATE TABLE t1(a int) engine=innodb;
-INSERT INTO t1 VALUES (1);
-SELECT DISTINCT
-convert((SELECT des_decrypt(2,1) AS a FROM t1 WHERE @a:=1), signed) as d
-FROM t1 ;
-d
-2
-DROP TABLE t1;
diff --git a/mysql-test/r/ssl_ca.result b/mysql-test/r/ssl_ca.result
deleted file mode 100644
index afffe4e4dff..00000000000
--- a/mysql-test/r/ssl_ca.result
+++ /dev/null
@@ -1,8 +0,0 @@
-#
-# Bug#21920657: SSL-CA FAILS SILENTLY IF THE PATH CANNOT BE FOUND
-#
-# try to connect with wrong '--ssl-ca' path : should fail
-ERROR 2026 (HY000): SSL connection error: xxxx
-# try to connect with correct '--ssl-ca' path : should connect
-have_ssl
-1
diff --git a/mysql-test/r/ssl_cert_verify.result b/mysql-test/r/ssl_cert_verify.result
deleted file mode 100644
index 1da77329509..00000000000
--- a/mysql-test/r/ssl_cert_verify.result
+++ /dev/null
@@ -1,5 +0,0 @@
-#T1: Host name (/CN=localhost/) as OU name in the server certificate, server certificate verification should fail.
-#T2: Host name (localhost) as common name in the server certificate, server certificate verification should pass.
-Variable_name Value
-Ssl_version TLS_VERSION
-# restart server using restart
diff --git a/mysql-test/r/ssl_cipher.result b/mysql-test/r/ssl_cipher.result
deleted file mode 100644
index 79998dfca80..00000000000
--- a/mysql-test/r/ssl_cipher.result
+++ /dev/null
@@ -1,12 +0,0 @@
-#
-# BUG#11760210 - SSL_CIPHER_LIST NOT SET OR RETURNED FOR "SHOW STATUS LIKE 'SSL_CIPHER_LIST'"
-#
-connect ssl_con,localhost,root,,,,,SSL;
-SHOW STATUS LIKE 'Ssl_cipher';
-Variable_name Value
-Ssl_cipher AES128-SHA
-SHOW STATUS LIKE 'Ssl_cipher_list';
-Variable_name Value
-Ssl_cipher_list AES128-SHA
-connection default;
-disconnect ssl_con;
diff --git a/mysql-test/r/ssl_compress.result b/mysql-test/r/ssl_compress.result
deleted file mode 100644
index 4e37cc68a24..00000000000
--- a/mysql-test/r/ssl_compress.result
+++ /dev/null
@@ -1,2171 +0,0 @@
-connect ssl_compress_con,localhost,root,,,,,SSL COMPRESS;
-SELECT (VARIABLE_VALUE <> '') AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher';
-have_ssl
-1
-SHOW STATUS LIKE 'Compression';
-Variable_name Value
-Compression ON
-drop table if exists t1,t2,t3,t4;
-CREATE TABLE t1 (
-Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
-Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
-);
-INSERT INTO t1 VALUES (9410,9412);
-select period from t1;
-period
-9410
-select * from t1;
-Period Varor_period
-9410 9412
-select t1.* from t1;
-Period Varor_period
-9410 9412
-CREATE TABLE t2 (
-auto int not null auto_increment,
-fld1 int(6) unsigned zerofill DEFAULT '000000' NOT NULL,
-companynr tinyint(2) unsigned zerofill DEFAULT '00' NOT NULL,
-fld3 char(30) DEFAULT '' NOT NULL,
-fld4 char(35) DEFAULT '' NOT NULL,
-fld5 char(35) DEFAULT '' NOT NULL,
-fld6 char(4) DEFAULT '' NOT NULL,
-UNIQUE fld1 (fld1),
-KEY fld3 (fld3),
-PRIMARY KEY (auto)
-);
-select t2.fld3 from t2 where companynr = 58 and fld3 like "%imaginable%";
-fld3
-imaginable
-select fld3 from t2 where fld3 like "%cultivation" ;
-fld3
-cultivation
-select t2.fld3,companynr from t2 where companynr = 57+1 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3,companynr from t2 where companynr = 58 order by fld3;
-fld3 companynr
-concoct 58
-druggists 58
-engrossing 58
-Eurydice 58
-exclaimers 58
-ferociousness 58
-hopelessness 58
-Huey 58
-imaginable 58
-judges 58
-merging 58
-ostrich 58
-peering 58
-Phelps 58
-presumes 58
-Ruth 58
-sentences 58
-Shylock 58
-straggled 58
-synergy 58
-thanking 58
-tying 58
-unlocks 58
-select fld3 from t2 order by fld3 desc limit 10;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select fld3 from t2 order by fld3 desc limit 5;
-fld3
-youthfulness
-yelped
-Wotan
-workers
-Witt
-select fld3 from t2 order by fld3 desc limit 5,5;
-fld3
-witchcraft
-Winsett
-Willy
-willed
-wildcats
-select t2.fld3 from t2 where fld3 = 'honeysuckle';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'hon_ysuckl_';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle%';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'h%le';
-fld3
-honeysuckle
-select t2.fld3 from t2 where fld3 LIKE 'honeysuckle_';
-fld3
-select t2.fld3 from t2 where fld3 LIKE 'don_t_find_me_please%';
-fld3
-explain select t2.fld3 from t2 where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld1) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select fld3 from t2 use index (fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
-explain select fld3 from t2 ignore index (fld3,not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-explain select fld3 from t2 use index (not_used);
-ERROR 42000: Key 'not_used' doesn't exist in table 't2'
-select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-fld3
-honeysuckle
-honoring
-explain select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld3 fld3 30 NULL 2 Using where; Using index
-select fld1,fld3 from t2 where fld3="Colombo" or fld3 = "nondecreasing" order by fld3;
-fld1 fld3
-148504 Colombo
-068305 Colombo
-000000 nondecreasing
-select fld1,fld3 from t2 where companynr = 37 and fld3 = 'appendixes';
-fld1 fld3
-232605 appendixes
-1232605 appendixes
-1232606 appendixes
-1232607 appendixes
-1232608 appendixes
-1232609 appendixes
-select fld1 from t2 where fld1=250501 or fld1="250502";
-fld1
-250501
-250502
-explain select fld1 from t2 where fld1=250501 or fld1="250502";
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 2 Using where; Using index
-select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-fld1
-250501
-250502
-250505
-250601
-explain select fld1 from t2 where fld1=250501 or fld1=250502 or fld1 >= 250505 and fld1 <= 250601 or fld1 between 250501 and 250502;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range fld1 fld1 4 NULL 4 Using where; Using index
-select fld1,fld3 from t2 where companynr = 37 and fld3 like 'f%';
-fld1 fld3
-012001 flanking
-013602 foldout
-013606 fingerings
-018007 fanatic
-018017 featherweight
-018054 fetters
-018103 flint
-018104 flopping
-036002 funereal
-038017 fetched
-038205 firearm
-058004 Fenton
-088303 feminine
-186002 freakish
-188007 flurried
-188505 fitting
-198006 furthermore
-202301 Fitzpatrick
-208101 fiftieth
-208113 freest
-218008 finishers
-218022 feed
-218401 faithful
-226205 foothill
-226209 furnishings
-228306 forthcoming
-228311 fated
-231315 freezes
-232102 forgivably
-238007 filial
-238008 fixedly
-select fld3 from t2 where fld3 like "L%" and fld3 = "ok";
-fld3
-select fld3 from t2 where (fld3 like "C%" and fld3 = "Chantilly");
-fld3
-Chantilly
-select fld1,fld3 from t2 where fld1 like "25050%";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select fld1,fld3 from t2 where fld1 like "25050_";
-fld1 fld3
-250501 poisoning
-250502 Iraqis
-250503 heaving
-250504 population
-250505 bomb
-select distinct companynr from t2;
-companynr
-00
-37
-36
-50
-58
-29
-40
-53
-65
-41
-34
-68
-select distinct companynr from t2 order by companynr;
-companynr
-00
-29
-34
-36
-37
-40
-41
-50
-53
-58
-65
-68
-select distinct companynr from t2 order by companynr desc;
-companynr
-68
-65
-58
-53
-50
-41
-40
-37
-36
-34
-29
-00
-select distinct t2.fld3,period from t2,t1 where companynr=37 and fld3 like "O%";
-fld3 period
-obliterates 9410
-offload 9410
-opaquely 9410
-organizer 9410
-overestimating 9410
-overlay 9410
-select distinct fld3 from t2 where companynr = 34 order by fld3;
-fld3
-absentee
-accessed
-ahead
-alphabetic
-Asiaticizations
-attitude
-aye
-bankruptcies
-belays
-Blythe
-bomb
-boulevard
-bulldozes
-cannot
-caressing
-charcoal
-checksumming
-chess
-clubroom
-colorful
-cosy
-creator
-crying
-Darius
-diffusing
-duality
-Eiffel
-Epiphany
-Ernestine
-explorers
-exterminated
-famine
-forked
-Gershwins
-heaving
-Hodges
-Iraqis
-Italianization
-Lagos
-landslide
-libretto
-Majorca
-mastering
-narrowed
-occurred
-offerers
-Palestine
-Peruvianizes
-pharmaceutic
-poisoning
-population
-Pygmalion
-rats
-realest
-recording
-regimented
-retransmitting
-reviver
-rouses
-scars
-sicker
-sleepwalk
-stopped
-sugars
-translatable
-uncles
-unexpected
-uprisings
-versatility
-vest
-select distinct fld3 from t2 limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct fld3 from t2 having fld3 like "A%" limit 10;
-fld3
-abates
-abiding
-Abraham
-abrogating
-absentee
-abut
-accessed
-accruing
-accumulating
-accuracies
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%";
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-Adl
-adm
-Ado
-ads
-adv
-aer
-aff
-afi
-afl
-afo
-agi
-ahe
-aim
-air
-Ald
-alg
-ali
-all
-alp
-alr
-ama
-ame
-amm
-ana
-and
-ane
-Ang
-ani
-Ann
-Ant
-api
-app
-aqu
-Ara
-arc
-Arm
-arr
-Art
-Asi
-ask
-asp
-ass
-ast
-att
-aud
-Aug
-aut
-ave
-avo
-awe
-aye
-Azt
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" order by a limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) from t2 where fld3 like "A%" limit 10;
-substring(fld3,1,3)
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-select distinct substring(fld3,1,3) as a from t2 having a like "A%" limit 10;
-a
-aba
-abi
-Abr
-abs
-abu
-acc
-acq
-acu
-Ade
-adj
-create table t3 (
-period int not null,
-name char(32) not null,
-companynr int not null,
-price double(11,0),
-price2 double(11,0),
-key (period),
-key (name)
-);
-create temporary table tmp engine = myisam select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-insert into tmp select * from t3;
-insert into t3 select * from tmp;
-alter table t3 add t2nr int not null auto_increment primary key first;
-drop table tmp;
-SET BIG_TABLES=1;
-select distinct concat(fld3," ",fld3) as namn from t2,t3 where t2.fld1=t3.t2nr order by namn limit 10;
-namn
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-SET BIG_TABLES=0;
-select distinct concat(fld3," ",fld3) from t2,t3 where t2.fld1=t3.t2nr order by fld3 limit 10;
-concat(fld3," ",fld3)
-Abraham Abraham
-abrogating abrogating
-admonishing admonishing
-Adolph Adolph
-afield afield
-aging aging
-ammonium ammonium
-analyzable analyzable
-animals animals
-animized animized
-select distinct fld5 from t2 limit 10;
-fld5
-neat
-Steinberg
-jarring
-tinily
-balled
-persist
-attainments
-fanatic
-measures
-rightfulness
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=1;
-select distinct fld3,count(*) from t2 group by companynr,fld3 limit 10;
-fld3 count(*)
-affixed 1
-and 1
-annoyers 1
-Anthony 1
-assayed 1
-assurers 1
-attendants 1
-bedlam 1
-bedpost 1
-boasted 1
-SET BIG_TABLES=0;
-select distinct fld3,repeat("a",length(fld3)),count(*) from t2 group by companynr,fld3 limit 100,10;
-fld3 repeat("a",length(fld3)) count(*)
-circus aaaaaa 1
-cited aaaaa 1
-Colombo aaaaaaa 1
-congresswoman aaaaaaaaaaaaa 1
-contrition aaaaaaaaaa 1
-corny aaaaa 1
-cultivation aaaaaaaaaaa 1
-definiteness aaaaaaaaaaaa 1
-demultiplex aaaaaaaaaaa 1
-disappointing aaaaaaaaaaaaa 1
-select distinct companynr,rtrim(space(512+companynr)) from t3 order by 1,2;
-companynr rtrim(space(512+companynr))
-37
-78
-101
-154
-311
-447
-512
-select distinct fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by fld3;
-fld3
-explain select t3.t2nr,fld3 from t2,t3 where t2.companynr = 34 and t2.fld1=t3.t2nr order by t3.t2nr,fld3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL fld1 NULL NULL NULL 1199 Using where; Using temporary; Using filesort
-1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.fld1 1 Using where; Using index
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL period NULL NULL NULL 41810 Using filesort
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t3.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 index period period 4 NULL 1
-1 SIMPLE t1 ref period period 4 test.t3.period 4181
-explain select * from t3 as t1,t3 where t1.period=t3.period order by t1.period limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index period period 4 NULL 1
-1 SIMPLE t3 ref period period 4 test.t1.period 4181
-select period from t1;
-period
-9410
-select period from t1 where period=1900;
-period
-select fld3,period from t1,t2 where fld1 = 011401 order by period;
-fld3 period
-breaking 9410
-select fld3,period from t2,t3 where t2.fld1 = 011401 and t2.fld1=t3.t2nr and t3.period=1001;
-fld3 period
-breaking 1001
-explain select fld3,period from t2,t3 where t2.fld1 = 011401 and t3.t2nr=t2.fld1 and 1001 = t3.period;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const fld1 fld1 4 const 1
-1 SIMPLE t3 const PRIMARY,period PRIMARY 4 const 1
-select fld3,period from t2,t1 where companynr*10 = 37*10;
-fld3 period
-breaking 9410
-Romans 9410
-intercepted 9410
-bewilderingly 9410
-astound 9410
-admonishing 9410
-sumac 9410
-flanking 9410
-combed 9410
-subjective 9410
-scatterbrain 9410
-Eulerian 9410
-Kane 9410
-overlay 9410
-perturb 9410
-goblins 9410
-annihilates 9410
-Wotan 9410
-snatching 9410
-concludes 9410
-laterally 9410
-yelped 9410
-grazing 9410
-Baird 9410
-celery 9410
-misunderstander 9410
-handgun 9410
-foldout 9410
-mystic 9410
-succumbed 9410
-Nabisco 9410
-fingerings 9410
-aging 9410
-afield 9410
-ammonium 9410
-boat 9410
-intelligibility 9410
-Augustine 9410
-teethe 9410
-dreaded 9410
-scholastics 9410
-audiology 9410
-wallet 9410
-parters 9410
-eschew 9410
-quitter 9410
-neat 9410
-Steinberg 9410
-jarring 9410
-tinily 9410
-balled 9410
-persist 9410
-attainments 9410
-fanatic 9410
-measures 9410
-rightfulness 9410
-capably 9410
-impulsive 9410
-starlet 9410
-terminators 9410
-untying 9410
-announces 9410
-featherweight 9410
-pessimist 9410
-daughter 9410
-decliner 9410
-lawgiver 9410
-stated 9410
-readable 9410
-attrition 9410
-cascade 9410
-motors 9410
-interrogate 9410
-pests 9410
-stairway 9410
-dopers 9410
-testicle 9410
-Parsifal 9410
-leavings 9410
-postulation 9410
-squeaking 9410
-contrasted 9410
-leftover 9410
-whiteners 9410
-erases 9410
-Punjab 9410
-Merritt 9410
-Quixotism 9410
-sweetish 9410
-dogging 9410
-scornfully 9410
-bellow 9410
-bills 9410
-cupboard 9410
-sureties 9410
-puddings 9410
-fetters 9410
-bivalves 9410
-incurring 9410
-Adolph 9410
-pithed 9410
-Miles 9410
-trimmings 9410
-tragedies 9410
-skulking 9410
-flint 9410
-flopping 9410
-relaxing 9410
-offload 9410
-suites 9410
-lists 9410
-animized 9410
-multilayer 9410
-standardizes 9410
-Judas 9410
-vacuuming 9410
-dentally 9410
-humanness 9410
-inch 9410
-Weissmuller 9410
-irresponsibly 9410
-luckily 9410
-culled 9410
-medical 9410
-bloodbath 9410
-subschema 9410
-animals 9410
-Micronesia 9410
-repetitions 9410
-Antares 9410
-ventilate 9410
-pityingly 9410
-interdependent 9410
-Graves 9410
-neonatal 9410
-chafe 9410
-honoring 9410
-realtor 9410
-elite 9410
-funereal 9410
-abrogating 9410
-sorters 9410
-Conley 9410
-lectured 9410
-Abraham 9410
-Hawaii 9410
-cage 9410
-hushes 9410
-Simla 9410
-reporters 9410
-Dutchman 9410
-descendants 9410
-groupings 9410
-dissociate 9410
-coexist 9410
-Beebe 9410
-Taoism 9410
-Connally 9410
-fetched 9410
-checkpoints 9410
-rusting 9410
-galling 9410
-obliterates 9410
-traitor 9410
-resumes 9410
-analyzable 9410
-terminator 9410
-gritty 9410
-firearm 9410
-minima 9410
-Selfridge 9410
-disable 9410
-witchcraft 9410
-betroth 9410
-Manhattanize 9410
-imprint 9410
-peeked 9410
-swelling 9410
-interrelationships 9410
-riser 9410
-Gandhian 9410
-peacock 9410
-bee 9410
-kanji 9410
-dental 9410
-scarf 9410
-chasm 9410
-insolence 9410
-syndicate 9410
-alike 9410
-imperial 9410
-convulsion 9410
-railway 9410
-validate 9410
-normalizes 9410
-comprehensive 9410
-chewing 9410
-denizen 9410
-schemer 9410
-chronicle 9410
-Kline 9410
-Anatole 9410
-partridges 9410
-brunch 9410
-recruited 9410
-dimensions 9410
-Chicana 9410
-announced 9410
-praised 9410
-employing 9410
-linear 9410
-quagmire 9410
-western 9410
-relishing 9410
-serving 9410
-scheduling 9410
-lore 9410
-eventful 9410
-arteriole 9410
-disentangle 9410
-cured 9410
-Fenton 9410
-avoidable 9410
-drains 9410
-detectably 9410
-husky 9410
-impelling 9410
-undoes 9410
-evened 9410
-squeezes 9410
-destroyer 9410
-rudeness 9410
-beaner 9410
-boorish 9410
-Everhart 9410
-encompass 9410
-mushrooms 9410
-Alison 9410
-externally 9410
-pellagra 9410
-cult 9410
-creek 9410
-Huffman 9410
-Majorca 9410
-governing 9410
-gadfly 9410
-reassigned 9410
-intentness 9410
-craziness 9410
-psychic 9410
-squabbled 9410
-burlesque 9410
-capped 9410
-extracted 9410
-DiMaggio 9410
-exclamation 9410
-subdirectory 9410
-Gothicism 9410
-feminine 9410
-metaphysically 9410
-sanding 9410
-Miltonism 9410
-freakish 9410
-index 9410
-straight 9410
-flurried 9410
-denotative 9410
-coming 9410
-commencements 9410
-gentleman 9410
-gifted 9410
-Shanghais 9410
-sportswriting 9410
-sloping 9410
-navies 9410
-leaflet 9410
-shooter 9410
-Joplin 9410
-babies 9410
-assails 9410
-admiring 9410
-swaying 9410
-Goldstine 9410
-fitting 9410
-Norwalk 9410
-analogy 9410
-deludes 9410
-cokes 9410
-Clayton 9410
-exhausts 9410
-causality 9410
-sating 9410
-icon 9410
-throttles 9410
-communicants 9410
-dehydrate 9410
-priceless 9410
-publicly 9410
-incidentals 9410
-commonplace 9410
-mumbles 9410
-furthermore 9410
-cautioned 9410
-parametrized 9410
-registration 9410
-sadly 9410
-positioning 9410
-babysitting 9410
-eternal 9410
-hoarder 9410
-congregates 9410
-rains 9410
-workers 9410
-sags 9410
-unplug 9410
-garage 9410
-boulder 9410
-specifics 9410
-Teresa 9410
-Winsett 9410
-convenient 9410
-buckboards 9410
-amenities 9410
-resplendent 9410
-sews 9410
-participated 9410
-Simon 9410
-certificates 9410
-Fitzpatrick 9410
-Evanston 9410
-misted 9410
-textures 9410
-save 9410
-count 9410
-rightful 9410
-chaperone 9410
-Lizzy 9410
-clenched 9410
-effortlessly 9410
-accessed 9410
-beaters 9410
-Hornblower 9410
-vests 9410
-indulgences 9410
-infallibly 9410
-unwilling 9410
-excrete 9410
-spools 9410
-crunches 9410
-overestimating 9410
-ineffective 9410
-humiliation 9410
-sophomore 9410
-star 9410
-rifles 9410
-dialysis 9410
-arriving 9410
-indulge 9410
-clockers 9410
-languages 9410
-Antarctica 9410
-percentage 9410
-ceiling 9410
-specification 9410
-regimented 9410
-ciphers 9410
-pictures 9410
-serpents 9410
-allot 9410
-realized 9410
-mayoral 9410
-opaquely 9410
-hostess 9410
-fiftieth 9410
-incorrectly 9410
-decomposition 9410
-stranglings 9410
-mixture 9410
-electroencephalography 9410
-similarities 9410
-charges 9410
-freest 9410
-Greenberg 9410
-tinting 9410
-expelled 9410
-warm 9410
-smoothed 9410
-deductions 9410
-Romano 9410
-bitterroot 9410
-corset 9410
-securing 9410
-environing 9410
-cute 9410
-Crays 9410
-heiress 9410
-inform 9410
-avenge 9410
-universals 9410
-Kinsey 9410
-ravines 9410
-bestseller 9410
-equilibrium 9410
-extents 9410
-relatively 9410
-pressure 9410
-critiques 9410
-befouled 9410
-rightfully 9410
-mechanizing 9410
-Latinizes 9410
-timesharing 9410
-Aden 9410
-embassies 9410
-males 9410
-shapelessly 9410
-mastering 9410
-Newtonian 9410
-finishers 9410
-abates 9410
-teem 9410
-kiting 9410
-stodgy 9410
-feed 9410
-guitars 9410
-airships 9410
-store 9410
-denounces 9410
-Pyle 9410
-Saxony 9410
-serializations 9410
-Peruvian 9410
-taxonomically 9410
-kingdom 9410
-stint 9410
-Sault 9410
-faithful 9410
-Ganymede 9410
-tidiness 9410
-gainful 9410
-contrary 9410
-Tipperary 9410
-tropics 9410
-theorizers 9410
-renew 9410
-already 9410
-terminal 9410
-Hegelian 9410
-hypothesizer 9410
-warningly 9410
-journalizing 9410
-nested 9410
-Lars 9410
-saplings 9410
-foothill 9410
-labeled 9410
-imperiously 9410
-reporters 9410
-furnishings 9410
-precipitable 9410
-discounts 9410
-excises 9410
-Stalin 9410
-despot 9410
-ripeness 9410
-Arabia 9410
-unruly 9410
-mournfulness 9410
-boom 9410
-slaughter 9410
-Sabine 9410
-handy 9410
-rural 9410
-organizer 9410
-shipyard 9410
-civics 9410
-inaccuracy 9410
-rules 9410
-juveniles 9410
-comprised 9410
-investigations 9410
-stabilizes 9410
-seminaries 9410
-Hunter 9410
-sporty 9410
-test 9410
-weasels 9410
-CERN 9410
-tempering 9410
-afore 9410
-Galatean 9410
-techniques 9410
-error 9410
-veranda 9410
-severely 9410
-Cassites 9410
-forthcoming 9410
-guides 9410
-vanish 9410
-lied 9410
-sawtooth 9410
-fated 9410
-gradually 9410
-widens 9410
-preclude 9410
-evenhandedly 9410
-percentage 9410
-disobedience 9410
-humility 9410
-gleaning 9410
-petted 9410
-bloater 9410
-minion 9410
-marginal 9410
-apiary 9410
-measures 9410
-precaution 9410
-repelled 9410
-primary 9410
-coverings 9410
-Artemia 9410
-navigate 9410
-spatial 9410
-Gurkha 9410
-meanwhile 9410
-Melinda 9410
-Butterfield 9410
-Aldrich 9410
-previewing 9410
-glut 9410
-unaffected 9410
-inmate 9410
-mineral 9410
-impending 9410
-meditation 9410
-ideas 9410
-miniaturizes 9410
-lewdly 9410
-title 9410
-youthfulness 9410
-creak 9410
-Chippewa 9410
-clamored 9410
-freezes 9410
-forgivably 9410
-reduce 9410
-McGovern 9410
-Nazis 9410
-epistle 9410
-socializes 9410
-conceptions 9410
-Kevin 9410
-uncovering 9410
-chews 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-appendixes 9410
-raining 9410
-infest 9410
-compartment 9410
-minting 9410
-ducks 9410
-roped 9410
-waltz 9410
-Lillian 9410
-repressions 9410
-chillingly 9410
-noncritical 9410
-lithograph 9410
-spongers 9410
-parenthood 9410
-posed 9410
-instruments 9410
-filial 9410
-fixedly 9410
-relives 9410
-Pandora 9410
-watering 9410
-ungrateful 9410
-secures 9410
-poison 9410
-dusted 9410
-encompasses 9410
-presentation 9410
-Kantian 9410
-select fld3,period,price,price2 from t2,t3 where t2.fld1=t3.t2nr and period >= 1001 and period <= 1002 and t2.companynr = 37 order by fld3,period, price;
-fld3 period price price2
-admonishing 1002 28357832 8723648
-analyzable 1002 28357832 8723648
-annihilates 1001 5987435 234724
-Antares 1002 28357832 8723648
-astound 1001 5987435 234724
-audiology 1001 5987435 234724
-Augustine 1002 28357832 8723648
-Baird 1002 28357832 8723648
-bewilderingly 1001 5987435 234724
-breaking 1001 5987435 234724
-Conley 1001 5987435 234724
-dentally 1002 28357832 8723648
-dissociate 1002 28357832 8723648
-elite 1001 5987435 234724
-eschew 1001 5987435 234724
-Eulerian 1001 5987435 234724
-flanking 1001 5987435 234724
-foldout 1002 28357832 8723648
-funereal 1002 28357832 8723648
-galling 1002 28357832 8723648
-Graves 1001 5987435 234724
-grazing 1001 5987435 234724
-groupings 1001 5987435 234724
-handgun 1001 5987435 234724
-humility 1002 28357832 8723648
-impulsive 1002 28357832 8723648
-inch 1001 5987435 234724
-intelligibility 1001 5987435 234724
-jarring 1001 5987435 234724
-lawgiver 1001 5987435 234724
-lectured 1002 28357832 8723648
-Merritt 1002 28357832 8723648
-neonatal 1001 5987435 234724
-offload 1002 28357832 8723648
-parters 1002 28357832 8723648
-pityingly 1002 28357832 8723648
-puddings 1002 28357832 8723648
-Punjab 1001 5987435 234724
-quitter 1002 28357832 8723648
-realtor 1001 5987435 234724
-relaxing 1001 5987435 234724
-repetitions 1001 5987435 234724
-resumes 1001 5987435 234724
-Romans 1002 28357832 8723648
-rusting 1001 5987435 234724
-scholastics 1001 5987435 234724
-skulking 1002 28357832 8723648
-stated 1002 28357832 8723648
-suites 1002 28357832 8723648
-sureties 1001 5987435 234724
-testicle 1002 28357832 8723648
-tinily 1002 28357832 8723648
-tragedies 1001 5987435 234724
-trimmings 1001 5987435 234724
-vacuuming 1001 5987435 234724
-ventilate 1001 5987435 234724
-wallet 1001 5987435 234724
-Weissmuller 1002 28357832 8723648
-Wotan 1002 28357832 8723648
-select t2.fld1,fld3,period,price,price2 from t2,t3 where t2.fld1>= 18201 and t2.fld1 <= 18811 and t2.fld1=t3.t2nr and period = 1001 and t2.companynr = 37;
-fld1 fld3 period price price2
-018201 relaxing 1001 5987435 234724
-018601 vacuuming 1001 5987435 234724
-018801 inch 1001 5987435 234724
-018811 repetitions 1001 5987435 234724
-create table t4 (
-companynr tinyint(2) unsigned zerofill NOT NULL default '00',
-companyname char(30) NOT NULL default '',
-PRIMARY KEY (companynr),
-UNIQUE KEY companyname(companyname)
-) ENGINE=MyISAM MAX_ROWS=50 PACK_KEYS=1 COMMENT='companynames';
-select STRAIGHT_JOIN t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select SQL_SMALL_RESULT t2.companynr,companyname from t4,t2 where t2.companynr=t4.companynr group by t2.companynr;
-companynr companyname
-00 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select * from t1,t1 t12;
-Period Varor_period Period Varor_period
-9410 9412 9410 9412
-select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505;
-fld1 fld1
-250501 250501
-250502 250501
-250503 250501
-250504 250501
-250505 250501
-250501 250502
-250502 250502
-250503 250502
-250504 250502
-250505 250502
-250501 250503
-250502 250503
-250503 250503
-250504 250503
-250505 250503
-250501 250504
-250502 250504
-250503 250504
-250504 250504
-250505 250504
-250501 250505
-250502 250505
-250503 250505
-250504 250505
-250505 250505
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-insert into t2 (fld1, companynr) values (999999,99);
-select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-companynr companyname
-99 NULL
-select count(*) from t2 left join t4 using (companynr) where t4.companynr is not null;
-count(*)
-1199
-explain select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1 Using where; Not exists
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1200 Using where; Not exists
-select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-companynr companyname
-select count(*) from t2 left join t4 using (companynr) where companynr is not null;
-count(*)
-1200
-explain select companynr,companyname from t2 left join t4 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-delete from t2 where fld1=999999;
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 and t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-1 SIMPLE t4 eq_ref PRIMARY PRIMARY 1 test.t2.companynr 1
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 and companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where t2.companynr > 0 or t2.companynr < 0 or t4.companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select t2.companynr,companyname from t4 left join t2 using (companynr) where ifnull(t2.companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where companynr > 0 or companynr < 0 or companynr > 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-explain select companynr,companyname from t4 left join t2 using (companynr) where ifnull(companynr,1)>0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where
-SET optimizer_switch=@save_optimizer_switch;
-select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-companynr companynr
-37 36
-41 40
-explain select distinct t2.companynr,t4.companynr from t2,t4 where t2.companynr=t4.companynr+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 index NULL PRIMARY 1 NULL 12 Using index; Using temporary
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 Using where; Using join buffer (flat, BNL join)
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where t2.fld1 = 38208 and t2.fld1=t3.t2nr and period = 1008 or t2.fld1 = 38008 and t2.fld1 =t3.t2nr and period = 1008;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t2.fld1 = 38208 or t2.fld1 = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select t2.fld1,t2.companynr,fld3,period from t3,t2 where (t3.t2nr = 38208 or t3.t2nr = 38008) and t2.fld1=t3.t2nr and period>=1008 and period<=1009;
-fld1 companynr fld3 period
-038008 37 reporters 1008
-038208 37 Selfridge 1008
-select period from t1 where (((period > 0) or period < 10000 or (period = 1900)) and (period=1900 and period <= 1901) or (period=1903 and (period=1903)) and period>=1902) or ((period=1904 or period=1905) or (period=1906 or period>1907)) or (period=1908 and period = 1909);
-period
-9410
-select period from t1 where ((period > 0 and period < 1) or (((period > 0 and period < 100) and (period > 10)) or (period > 10)) or (period > 0 and (period > 5 or period > 6)));
-period
-9410
-select a.fld1 from t2 as a,t2 b where ((a.fld1 = 250501 and a.fld1=b.fld1) or a.fld1=250502 or a.fld1=250503 or (a.fld1=250505 and a.fld1<=b.fld1 and b.fld1>=a.fld1)) and a.fld1=b.fld1;
-fld1
-250501
-250502
-250503
-250505
-select fld1 from t2 where fld1 in (250502,98005,98006,250503,250605,250606) and fld1 >=250502 and fld1 not in (250605,250606);
-fld1
-250502
-250503
-select fld1 from t2 where fld1 between 250502 and 250504;
-fld1
-250502
-250503
-250504
-select fld3 from t2 where (((fld3 like "_%L%" ) or (fld3 like "%ok%")) and ( fld3 like "L%" or fld3 like "G%")) and fld3 like "L%" ;
-fld3
-label
-labeled
-labeled
-landslide
-laterally
-leaflet
-lewdly
-Lillian
-luckily
-select count(*) from t1;
-count(*)
-1
-select companynr,count(*),sum(fld1) from t2 group by companynr;
-companynr count(*) sum(fld1)
-00 82 10355753
-29 95 14473298
-34 70 17788966
-36 215 22786296
-37 588 83602098
-40 37 6618386
-41 52 12816335
-50 11 1595438
-53 4 793210
-58 23 2254293
-65 10 2284055
-68 12 3097288
-select companynr,count(*) from t2 group by companynr order by companynr desc limit 5;
-companynr count(*)
-68 12
-65 10
-58 23
-53 4
-50 11
-select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-explain extended select count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 where companynr = 34 and fld4<>"";
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199 100.00 Using where
-Warnings:
-Note 1003 select count(0) AS `count(*)`,min(`test`.`t2`.`fld4`) AS `min(fld4)`,max(`test`.`t2`.`fld4`) AS `max(fld4)`,sum(`test`.`t2`.`fld1`) AS `sum(fld1)`,avg(`test`.`t2`.`fld1`) AS `avg(fld1)`,std(`test`.`t2`.`fld1`) AS `std(fld1)`,variance(`test`.`t2`.`fld1`) AS `variance(fld1)` from `test`.`t2` where `test`.`t2`.`companynr` = 34 and `test`.`t2`.`fld4` <> ''
-select companynr,count(*),min(fld4),max(fld4),sum(fld1),avg(fld1),std(fld1),variance(fld1) from t2 group by companynr limit 3;
-companynr count(*) min(fld4) max(fld4) sum(fld1) avg(fld1) std(fld1) variance(fld1)
-00 82 Anthony windmills 10355753 126289.6707 115550.9757 13352027981.7087
-29 95 abut wetness 14473298 152350.5053 8368.5480 70032594.9026
-34 70 absentee vest 17788966 254128.0857 3272.5940 10709871.3069
-select companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select /*! SQL_SMALL_RESULT */ companynr,t2nr,count(price),sum(price),min(price),max(price),avg(price) from t3 where companynr = 37 group by companynr,t2nr limit 10;
-companynr t2nr count(price) sum(price) min(price) max(price) avg(price)
-37 1 1 5987435 5987435 5987435 5987435.0000
-37 2 1 28357832 28357832 28357832 28357832.0000
-37 3 1 39654943 39654943 39654943 39654943.0000
-37 11 1 5987435 5987435 5987435 5987435.0000
-37 12 1 28357832 28357832 28357832 28357832.0000
-37 13 1 39654943 39654943 39654943 39654943.0000
-37 21 1 5987435 5987435 5987435 5987435.0000
-37 22 1 28357832 28357832 28357832 28357832.0000
-37 23 1 39654943 39654943 39654943 39654943.0000
-37 31 1 5987435 5987435 5987435 5987435.0000
-select companynr,count(price),sum(price),min(price),max(price),avg(price) from t3 group by companynr ;
-companynr count(price) sum(price) min(price) max(price) avg(price)
-37 12543 309394878010 5987435 39654943 24666736.6667
-78 8362 414611089292 726498 98439034 49582766.0000
-101 4181 3489454238 834598 834598 834598.0000
-154 4181 4112197254950 983543950 983543950 983543950.0000
-311 4181 979599938 234298 234298 234298.0000
-447 4181 9929180954 2374834 2374834 2374834.0000
-512 4181 3288532102 786542 786542 786542.0000
-select distinct mod(companynr,10) from t4 group by companynr;
-mod(companynr,10)
-0
-9
-4
-6
-7
-1
-3
-8
-5
-select distinct 1 from t4 group by companynr;
-1
-1
-select count(distinct fld1) from t2;
-count(distinct fld1)
-1199
-select companynr,count(distinct fld1) from t2 group by companynr;
-companynr count(distinct fld1)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(*) from t2 group by companynr;
-companynr count(*)
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,1000))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,1000)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct concat(fld1,repeat(65,200))) from t2 group by companynr;
-companynr count(distinct concat(fld1,repeat(65,200)))
-00 82
-29 95
-34 70
-36 215
-37 588
-40 37
-41 52
-50 11
-53 4
-58 23
-65 10
-68 12
-select companynr,count(distinct floor(fld1/100)) from t2 group by companynr;
-companynr count(distinct floor(fld1/100))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select companynr,count(distinct concat(repeat(65,1000),floor(fld1/100))) from t2 group by companynr;
-companynr count(distinct concat(repeat(65,1000),floor(fld1/100)))
-00 47
-29 35
-34 14
-36 69
-37 108
-40 16
-41 11
-50 9
-53 1
-58 1
-65 1
-68 1
-select sum(fld1),fld3 from t2 where fld3="Romans" group by fld1 limit 10;
-sum(fld1) fld3
-11402 Romans
-select name,count(*) from t3 where name='cloakroom' group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name='cloakroom' and price>10 group by name;
-name count(*)
-cloakroom 4181
-select count(*) from t3 where name='cloakroom' and price2=823742;
-count(*)
-4181
-select name,count(*) from t3 where name='cloakroom' and price2=823742 group by name;
-name count(*)
-cloakroom 4181
-select name,count(*) from t3 where name >= "extramarital" and price <= 39654943 group by name;
-name count(*)
-extramarital 4181
-gazer 4181
-gems 4181
-Iranizes 4181
-spates 4181
-tucked 4181
-violinist 4181
-select t2.fld3,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld3 count(*)
-spates 4181
-select companynr|0,companyname from t4 group by 1;
-companynr|0 companyname
-0 Unknown
-29 company 1
-34 company 2
-36 company 3
-37 company 4
-40 company 5
-41 company 6
-50 company 11
-53 company 7
-58 company 8
-65 company 9
-68 company 10
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by t2.companynr order by companyname;
-companynr companyname count(*)
-29 company 1 95
-68 company 10 12
-50 company 11 11
-34 company 2 70
-36 company 3 215
-37 company 4 588
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-00 Unknown 82
-select t2.fld1,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 group by t3.name;
-fld1 count(*)
-158402 4181
-select sum(Period)/count(*) from t1;
-sum(Period)/count(*)
-9410.0000
-select companynr,count(price) as "count",sum(price) as "sum" ,abs(sum(price)/count(price)-avg(price)) as "diff",(0+count(price))*companynr as func from t3 group by companynr;
-companynr count sum diff func
-37 12543 309394878010 0.0000 464091
-78 8362 414611089292 0.0000 652236
-101 4181 3489454238 0.0000 422281
-154 4181 4112197254950 0.0000 643874
-311 4181 979599938 0.0000 1300291
-447 4181 9929180954 0.0000 1868907
-512 4181 3288532102 0.0000 2140672
-select companynr,sum(price)/count(price) as avg from t3 group by companynr having avg > 70000000 order by avg;
-companynr avg
-154 983543950.0000
-select companynr,count(*) from t2 group by companynr order by 2 desc;
-companynr count(*)
-37 588
-36 215
-29 95
-00 82
-34 70
-41 52
-40 37
-58 23
-68 12
-50 11
-65 10
-53 4
-select companynr,count(*) from t2 where companynr > 40 group by companynr order by 2 desc;
-companynr count(*)
-41 52
-58 23
-68 12
-50 11
-65 10
-53 4
-select t2.fld4,t2.fld1,count(price),sum(price),min(price),max(price),avg(price) from t3,t2 where t3.companynr = 37 and t2.fld1 = t3.t2nr group by fld1,t2.fld4;
-fld4 fld1 count(price) sum(price) min(price) max(price) avg(price)
-teethe 000001 1 5987435 5987435 5987435 5987435.0000
-dreaded 011401 1 5987435 5987435 5987435 5987435.0000
-scholastics 011402 1 28357832 28357832 28357832 28357832.0000
-audiology 011403 1 39654943 39654943 39654943 39654943.0000
-wallet 011501 1 5987435 5987435 5987435 5987435.0000
-parters 011701 1 5987435 5987435 5987435 5987435.0000
-eschew 011702 1 28357832 28357832 28357832 28357832.0000
-quitter 011703 1 39654943 39654943 39654943 39654943.0000
-neat 012001 1 5987435 5987435 5987435 5987435.0000
-Steinberg 012003 1 39654943 39654943 39654943 39654943.0000
-balled 012301 1 5987435 5987435 5987435 5987435.0000
-persist 012302 1 28357832 28357832 28357832 28357832.0000
-attainments 012303 1 39654943 39654943 39654943 39654943.0000
-capably 012501 1 5987435 5987435 5987435 5987435.0000
-impulsive 012602 1 28357832 28357832 28357832 28357832.0000
-starlet 012603 1 39654943 39654943 39654943 39654943.0000
-featherweight 012701 1 5987435 5987435 5987435 5987435.0000
-pessimist 012702 1 28357832 28357832 28357832 28357832.0000
-daughter 012703 1 39654943 39654943 39654943 39654943.0000
-lawgiver 013601 1 5987435 5987435 5987435 5987435.0000
-stated 013602 1 28357832 28357832 28357832 28357832.0000
-readable 013603 1 39654943 39654943 39654943 39654943.0000
-testicle 013801 1 5987435 5987435 5987435 5987435.0000
-Parsifal 013802 1 28357832 28357832 28357832 28357832.0000
-leavings 013803 1 39654943 39654943 39654943 39654943.0000
-squeaking 013901 1 5987435 5987435 5987435 5987435.0000
-contrasted 016001 1 5987435 5987435 5987435 5987435.0000
-leftover 016201 1 5987435 5987435 5987435 5987435.0000
-whiteners 016202 1 28357832 28357832 28357832 28357832.0000
-erases 016301 1 5987435 5987435 5987435 5987435.0000
-Punjab 016302 1 28357832 28357832 28357832 28357832.0000
-Merritt 016303 1 39654943 39654943 39654943 39654943.0000
-sweetish 018001 1 5987435 5987435 5987435 5987435.0000
-dogging 018002 1 28357832 28357832 28357832 28357832.0000
-scornfully 018003 1 39654943 39654943 39654943 39654943.0000
-fetters 018012 1 28357832 28357832 28357832 28357832.0000
-bivalves 018013 1 39654943 39654943 39654943 39654943.0000
-skulking 018021 1 5987435 5987435 5987435 5987435.0000
-flint 018022 1 28357832 28357832 28357832 28357832.0000
-flopping 018023 1 39654943 39654943 39654943 39654943.0000
-Judas 018032 1 28357832 28357832 28357832 28357832.0000
-vacuuming 018033 1 39654943 39654943 39654943 39654943.0000
-medical 018041 1 5987435 5987435 5987435 5987435.0000
-bloodbath 018042 1 28357832 28357832 28357832 28357832.0000
-subschema 018043 1 39654943 39654943 39654943 39654943.0000
-interdependent 018051 1 5987435 5987435 5987435 5987435.0000
-Graves 018052 1 28357832 28357832 28357832 28357832.0000
-neonatal 018053 1 39654943 39654943 39654943 39654943.0000
-sorters 018061 1 5987435 5987435 5987435 5987435.0000
-epistle 018062 1 28357832 28357832 28357832 28357832.0000
-Conley 018101 1 5987435 5987435 5987435 5987435.0000
-lectured 018102 1 28357832 28357832 28357832 28357832.0000
-Abraham 018103 1 39654943 39654943 39654943 39654943.0000
-cage 018201 1 5987435 5987435 5987435 5987435.0000
-hushes 018202 1 28357832 28357832 28357832 28357832.0000
-Simla 018402 1 28357832 28357832 28357832 28357832.0000
-reporters 018403 1 39654943 39654943 39654943 39654943.0000
-coexist 018601 1 5987435 5987435 5987435 5987435.0000
-Beebe 018602 1 28357832 28357832 28357832 28357832.0000
-Taoism 018603 1 39654943 39654943 39654943 39654943.0000
-Connally 018801 1 5987435 5987435 5987435 5987435.0000
-fetched 018802 1 28357832 28357832 28357832 28357832.0000
-checkpoints 018803 1 39654943 39654943 39654943 39654943.0000
-gritty 018811 1 5987435 5987435 5987435 5987435.0000
-firearm 018812 1 28357832 28357832 28357832 28357832.0000
-minima 019101 1 5987435 5987435 5987435 5987435.0000
-Selfridge 019102 1 28357832 28357832 28357832 28357832.0000
-disable 019103 1 39654943 39654943 39654943 39654943.0000
-witchcraft 019201 1 5987435 5987435 5987435 5987435.0000
-betroth 030501 1 5987435 5987435 5987435 5987435.0000
-Manhattanize 030502 1 28357832 28357832 28357832 28357832.0000
-imprint 030503 1 39654943 39654943 39654943 39654943.0000
-swelling 031901 1 5987435 5987435 5987435 5987435.0000
-interrelationships 036001 1 5987435 5987435 5987435 5987435.0000
-riser 036002 1 28357832 28357832 28357832 28357832.0000
-bee 038001 1 5987435 5987435 5987435 5987435.0000
-kanji 038002 1 28357832 28357832 28357832 28357832.0000
-dental 038003 1 39654943 39654943 39654943 39654943.0000
-railway 038011 1 5987435 5987435 5987435 5987435.0000
-validate 038012 1 28357832 28357832 28357832 28357832.0000
-normalizes 038013 1 39654943 39654943 39654943 39654943.0000
-Kline 038101 1 5987435 5987435 5987435 5987435.0000
-Anatole 038102 1 28357832 28357832 28357832 28357832.0000
-partridges 038103 1 39654943 39654943 39654943 39654943.0000
-recruited 038201 1 5987435 5987435 5987435 5987435.0000
-dimensions 038202 1 28357832 28357832 28357832 28357832.0000
-Chicana 038203 1 39654943 39654943 39654943 39654943.0000
-select t3.companynr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 group by companynr,fld3;
-companynr fld3 sum(price)
-512 boat 786542
-512 capably 786542
-512 cupboard 786542
-512 decliner 786542
-512 descendants 786542
-512 dopers 786542
-512 erases 786542
-512 Micronesia 786542
-512 Miles 786542
-512 skies 786542
-select t2.companynr,count(*),min(fld3),max(fld3),sum(price),avg(price) from t2,t3 where t3.companynr >= 30 and t3.companynr <= 58 and t3.t2nr = t2.fld1 and 1+1=2 group by t2.companynr;
-companynr count(*) min(fld3) max(fld3) sum(price) avg(price)
-00 1 Omaha Omaha 5987435 5987435.0000
-36 1 dubbed dubbed 28357832 28357832.0000
-37 83 Abraham Wotan 1908978016 22999735.1325
-50 2 scribbled tapestry 68012775 34006387.5000
-select t3.companynr+0,t3.t2nr,fld3,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 37 group by 1,t3.t2nr,fld3,fld3,fld3,fld3,fld3 order by fld1;
-t3.companynr+0 t2nr fld3 sum(price)
-37 1 Omaha 5987435
-37 11401 breaking 5987435
-37 11402 Romans 28357832
-37 11403 intercepted 39654943
-37 11501 bewilderingly 5987435
-37 11701 astound 5987435
-37 11702 admonishing 28357832
-37 11703 sumac 39654943
-37 12001 flanking 5987435
-37 12003 combed 39654943
-37 12301 Eulerian 5987435
-37 12302 dubbed 28357832
-37 12303 Kane 39654943
-37 12501 annihilates 5987435
-37 12602 Wotan 28357832
-37 12603 snatching 39654943
-37 12701 grazing 5987435
-37 12702 Baird 28357832
-37 12703 celery 39654943
-37 13601 handgun 5987435
-37 13602 foldout 28357832
-37 13603 mystic 39654943
-37 13801 intelligibility 5987435
-37 13802 Augustine 28357832
-37 13803 teethe 39654943
-37 13901 scholastics 5987435
-37 16001 audiology 5987435
-37 16201 wallet 5987435
-37 16202 parters 28357832
-37 16301 eschew 5987435
-37 16302 quitter 28357832
-37 16303 neat 39654943
-37 18001 jarring 5987435
-37 18002 tinily 28357832
-37 18003 balled 39654943
-37 18012 impulsive 28357832
-37 18013 starlet 39654943
-37 18021 lawgiver 5987435
-37 18022 stated 28357832
-37 18023 readable 39654943
-37 18032 testicle 28357832
-37 18033 Parsifal 39654943
-37 18041 Punjab 5987435
-37 18042 Merritt 28357832
-37 18043 Quixotism 39654943
-37 18051 sureties 5987435
-37 18052 puddings 28357832
-37 18053 tapestry 39654943
-37 18061 trimmings 5987435
-37 18062 humility 28357832
-37 18101 tragedies 5987435
-37 18102 skulking 28357832
-37 18103 flint 39654943
-37 18201 relaxing 5987435
-37 18202 offload 28357832
-37 18402 suites 28357832
-37 18403 lists 39654943
-37 18601 vacuuming 5987435
-37 18602 dentally 28357832
-37 18603 humanness 39654943
-37 18801 inch 5987435
-37 18802 Weissmuller 28357832
-37 18803 irresponsibly 39654943
-37 18811 repetitions 5987435
-37 18812 Antares 28357832
-37 19101 ventilate 5987435
-37 19102 pityingly 28357832
-37 19103 interdependent 39654943
-37 19201 Graves 5987435
-37 30501 neonatal 5987435
-37 30502 scribbled 28357832
-37 30503 chafe 39654943
-37 31901 realtor 5987435
-37 36001 elite 5987435
-37 36002 funereal 28357832
-37 38001 Conley 5987435
-37 38002 lectured 28357832
-37 38003 Abraham 39654943
-37 38011 groupings 5987435
-37 38012 dissociate 28357832
-37 38013 coexist 39654943
-37 38101 rusting 5987435
-37 38102 galling 28357832
-37 38103 obliterates 39654943
-37 38201 resumes 5987435
-37 38202 analyzable 28357832
-37 38203 terminator 39654943
-select sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1= t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008;
-sum(price)
-234298
-select t2.fld1,sum(price) from t3,t2 where t2.fld1 = t3.t2nr and t3.companynr = 512 and t3.t2nr = 38008 and t2.fld1 = 38008 or t2.fld1 = t3.t2nr and t3.t2nr = 38008 and t2.fld1 = 38008 or t3.t2nr = t2.fld1 and t2.fld1 = 38008 group by t2.fld1;
-fld1 sum(price)
-038008 234298
-explain select fld3 from t2 where 1>2 or 2>3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-explain select fld3 from t2 where fld1=fld1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 1199
-select companynr,fld1 from t2 HAVING fld1=250501 or fld1=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,fld1 from t2 WHERE fld1>=250501 HAVING fld1<=250502;
-companynr fld1
-34 250501
-34 250502
-select companynr,count(*) as count,sum(fld1) as sum from t2 group by companynr having count > 40 and sum/count >= 120000;
-companynr count sum
-00 82 10355753
-29 95 14473298
-34 70 17788966
-37 588 83602098
-41 52 12816335
-select companynr from t2 group by companynr having count(*) > 40 and sum(fld1)/count(*) >= 120000 ;
-companynr
-00
-29
-34
-37
-41
-select t2.companynr,companyname,count(*) from t2,t4 where t2.companynr=t4.companynr group by companyname having t2.companynr >= 40;
-companynr companyname count(*)
-68 company 10 12
-50 company 11 11
-40 company 5 37
-41 company 6 52
-53 company 7 4
-58 company 8 23
-65 company 9 10
-select count(*) from t2;
-count(*)
-1199
-select count(*) from t2 where fld1 < 098024;
-count(*)
-387
-select min(fld1) from t2 where fld1>= 098024;
-min(fld1)
-98024
-select max(fld1) from t2 where fld1>= 098024;
-max(fld1)
-1232609
-select count(*) from t3 where price2=76234234;
-count(*)
-4181
-select count(*) from t3 where companynr=512 and price2=76234234;
-count(*)
-4181
-explain select min(fld1),max(fld1),count(*) from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-select min(fld1),max(fld1),count(*) from t2;
-min(fld1) max(fld1) count(*)
-0 1232609 1199
-select min(t2nr),max(t2nr) from t3 where t2nr=2115 and price2=823742;
-min(t2nr) max(t2nr)
-2115 2115
-select count(*),min(t2nr),max(t2nr) from t3 where name='spates' and companynr=78;
-count(*) min(t2nr) max(t2nr)
-4181 4 41804
-select t2nr,count(*) from t3 where name='gems' group by t2nr limit 20;
-t2nr count(*)
-9 1
-19 1
-29 1
-39 1
-49 1
-59 1
-69 1
-79 1
-89 1
-99 1
-109 1
-119 1
-129 1
-139 1
-149 1
-159 1
-169 1
-179 1
-189 1
-199 1
-select max(t2nr) from t3 where price=983543950;
-max(t2nr)
-41807
-select t1.period from t3 = t1 limit 1;
-period
-1001
-select t1.period from t1 as t1 limit 1;
-period
-9410
-select t1.period as "Nuvarande period" from t1 as t1 limit 1;
-Nuvarande period
-9410
-select period as ok_period from t1 limit 1;
-ok_period
-9410
-select period as ok_period from t1 group by ok_period limit 1;
-ok_period
-9410
-select 1+1 as summa from t1 group by summa limit 1;
-summa
-2
-select period as "Nuvarande period" from t1 group by "Nuvarande period" limit 1;
-Nuvarande period
-9410
-show tables;
-Tables_in_test
-t1
-t2
-t3
-t4
-show tables from test like "s%";
-Tables_in_test (s%)
-show tables from test like "t?";
-Tables_in_test (t?)
-show full columns from t2;
-Field Type Collation Null Key Default Extra Privileges Comment
-auto int(11) NULL NO PRI NULL auto_increment #
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-companynr tinyint(2) unsigned zerofill NULL NO 00 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 'f%';
-Field Type Collation Null Key Default Extra Privileges Comment
-fld1 int(6) unsigned zerofill NULL NO UNI 000000 #
-fld3 char(30) latin1_swedish_ci NO MUL #
-fld4 char(35) latin1_swedish_ci NO #
-fld5 char(35) latin1_swedish_ci NO #
-fld6 char(4) latin1_swedish_ci NO #
-show full columns from t2 from test like 's%';
-Field Type Collation Null Key Default Extra Privileges Comment
-show keys from t2;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t2 0 PRIMARY 1 auto A 1199 NULL NULL BTREE
-t2 0 fld1 1 fld1 A 1199 NULL NULL BTREE
-t2 1 fld3 1 fld3 A NULL NULL NULL BTREE
-drop table t4, t3, t2, t1;
-CREATE TABLE t1 (
-cont_nr int(11) NOT NULL auto_increment,
-ver_nr int(11) NOT NULL default '0',
-aufnr int(11) NOT NULL default '0',
-username varchar(50) NOT NULL default '',
-hdl_nr int(11) NOT NULL default '0',
-eintrag date NOT NULL default '0000-00-00',
-st_klasse varchar(40) NOT NULL default '',
-st_wert varchar(40) NOT NULL default '',
-st_zusatz varchar(40) NOT NULL default '',
-st_bemerkung varchar(255) NOT NULL default '',
-kunden_art varchar(40) NOT NULL default '',
-mcbs_knr int(11) default NULL,
-mcbs_aufnr int(11) NOT NULL default '0',
-schufa_status char(1) default '?',
-bemerkung text,
-wirknetz text,
-wf_igz int(11) NOT NULL default '0',
-tarifcode varchar(80) default NULL,
-recycle char(1) default NULL,
-sim varchar(30) default NULL,
-mcbs_tpl varchar(30) default NULL,
-emp_nr int(11) NOT NULL default '0',
-laufzeit int(11) default NULL,
-hdl_name varchar(30) default NULL,
-prov_hdl_nr int(11) NOT NULL default '0',
-auto_wirknetz varchar(50) default NULL,
-auto_billing varchar(50) default NULL,
-touch timestamp NOT NULL,
-kategorie varchar(50) default NULL,
-kundentyp varchar(20) NOT NULL default '',
-sammel_rech_msisdn varchar(30) NOT NULL default '',
-p_nr varchar(9) NOT NULL default '',
-suffix char(3) NOT NULL default '',
-PRIMARY KEY (cont_nr),
-KEY idx_aufnr(aufnr),
-KEY idx_hdl_nr(hdl_nr),
-KEY idx_st_klasse(st_klasse),
-KEY ver_nr(ver_nr),
-KEY eintrag_idx(eintrag),
-KEY emp_nr_idx(emp_nr),
-KEY wf_igz(wf_igz),
-KEY touch(touch),
-KEY hdl_tag(eintrag,hdl_nr),
-KEY prov_hdl_nr(prov_hdl_nr),
-KEY mcbs_aufnr(mcbs_aufnr),
-KEY kundentyp(kundentyp),
-KEY p_nr(p_nr,suffix)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3359356,405,3359356,'Mustermann Musterfrau',52500,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1485525,2122316,'+','','N',1909160,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',3,24,'MobilCom Shop Koeln',52500,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359357,468,3359357,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1503580,2139699,'+','','P',1909171,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359358,407,3359358,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1501358,2137473,'N','','N',1909159,'MobilComSuper92000D2',NULL,NULL,'MS9ND2',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359359,468,3359359,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1507831,2143894,'+','','P',1909162,'MobilComSuper9D1T10SFreisprech(Akquise)',NULL,NULL,'MS9NS1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359360,0,0,'Mustermann Musterfrau',29674907,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1900169997,2414578,'+',NULL,'N',1909148,'',NULL,NULL,'RV99066_2',20,NULL,'POS',29674907,NULL,NULL,20010202105916,'Mobilfunk','','','97317481','007');
-INSERT INTO t1 VALUES (3359361,406,3359361,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag storniert','','(7001-84):Storno, Kd. möchte nicht mehr','privat',NULL,0,'+','','P',1909150,'MobilComSuper92000D1(Akquise)',NULL,NULL,'MS9ND1',325,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-INSERT INTO t1 VALUES (3359362,406,3359362,'Mustermann Musterfrau',7001,'2000-05-20','workflow','Auftrag erledigt','Originalvertrag eingegangen und geprüft','','privat',1509984,2145874,'+','','P',1909154,'MobilComSuper92000D1(Akquise)',NULL,NULL,'MS9ND1',327,24,'MobilCom Intern',7003,NULL,'auto',20010202105916,'Mobilfunk','PP','','','');
-SELECT ELT(FIELD(kundentyp,'PP','PPA','PG','PGA','FK','FKA','FP','FPA','K','KA','V','VA',''), 'Privat (Private Nutzung)','Privat (Private Nutzung) Sitz im Ausland','Privat (geschaeftliche Nutzung)','Privat (geschaeftliche Nutzung) Sitz im Ausland','Firma (Kapitalgesellschaft)','Firma (Kapitalgesellschaft) Sitz im Ausland','Firma (Personengesellschaft)','Firma (Personengesellschaft) Sitz im Ausland','oeff. rechtl. Koerperschaft','oeff. rechtl. Koerperschaft Sitz im Ausland','Eingetragener Verein','Eingetragener Verein Sitz im Ausland','Typ unbekannt') AS Kundentyp ,kategorie FROM t1 WHERE hdl_nr < 2000000 AND kategorie IN ('Prepaid','Mobilfunk') AND st_klasse = 'Workflow' GROUP BY kundentyp ORDER BY kategorie;
-Kundentyp kategorie
-Privat (Private Nutzung) Mobilfunk
-Warnings:
-Warning 1052 Column 'kundentyp' in group statement is ambiguous
-drop table t1;
-SELECT (VARIABLE_VALUE <> '') AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher';
-have_ssl
-1
-SHOW STATUS LIKE 'Compression';
-Variable_name Value
-Compression ON
-connection default;
-disconnect ssl_compress_con;
diff --git a/mysql-test/r/ssl_connect.result b/mysql-test/r/ssl_connect.result
deleted file mode 100644
index 6ab9fedbf2d..00000000000
--- a/mysql-test/r/ssl_connect.result
+++ /dev/null
@@ -1 +0,0 @@
-completed
diff --git a/mysql-test/r/ssl_crl.result b/mysql-test/r/ssl_crl.result
deleted file mode 100644
index 570dd9cab06..00000000000
--- a/mysql-test/r/ssl_crl.result
+++ /dev/null
@@ -1,23 +0,0 @@
-# test --crl for the client : should connect
-Variable_name Value
-have_openssl YES
-have_ssl YES
-ssl_ca MYSQL_TEST_DIR/std_data/crl-ca-cert.pem
-ssl_capath
-ssl_cert MYSQL_TEST_DIR/std_data/crl-server-cert.pem
-ssl_cipher
-ssl_crl MYSQL_TEST_DIR/std_data/crl-client-revoked.crl
-ssl_crlpath
-ssl_key MYSQL_TEST_DIR/std_data/crl-server-key.pem
-# test --crlpath for the client : should connect
-Variable_name Value
-have_openssl YES
-have_ssl YES
-ssl_ca MYSQL_TEST_DIR/std_data/crl-ca-cert.pem
-ssl_capath
-ssl_cert MYSQL_TEST_DIR/std_data/crl-server-cert.pem
-ssl_cipher
-ssl_crl MYSQL_TEST_DIR/std_data/crl-client-revoked.crl
-ssl_crlpath
-ssl_key MYSQL_TEST_DIR/std_data/crl-server-key.pem
-# try logging in with a certificate in the server's --ssl-crl : should fail
diff --git a/mysql-test/r/ssl_crl_clients-valid.result b/mysql-test/r/ssl_crl_clients-valid.result
deleted file mode 100644
index f3f47d51846..00000000000
--- a/mysql-test/r/ssl_crl_clients-valid.result
+++ /dev/null
@@ -1,24 +0,0 @@
-# Test clients with and without CRL lists
-############ Test mysql ##############
-# Test mysql connecting to a server with an empty crl
-Variable_name Value
-have_openssl YES
-have_ssl YES
-ssl_ca MYSQL_TEST_DIR/std_data/crl-ca-cert.pem
-ssl_capath
-ssl_cert MYSQL_TEST_DIR/std_data/crl-client-cert.pem
-ssl_cipher
-ssl_crl
-ssl_crlpath
-ssl_key MYSQL_TEST_DIR/std_data/crl-client-key.pem
-# Test mysql connecting to a server with a certificate revoked by -crl
-# Test mysql connecting to a server with a certificate revoked by -crlpath
-############ Test mysqladmin ##############
-# Test mysqladmin connecting to a server with an empty crl
-mysqld is alive
-# Test mysqladmin connecting to a server with a certificate revoked by -crl
-mysqladmin: connect to server at 'localhost' failed
-error: 'SSL connection error: Failed to set ciphers to use'
-# Test mysqladmin connecting to a server with a certificate revoked by -crlpath
-mysqladmin: connect to server at 'localhost' failed
-error: 'SSL connection error: error:00000005:lib(0):func(0):DH lib'
diff --git a/mysql-test/r/ssl_crl_clients.result b/mysql-test/r/ssl_crl_clients.result
deleted file mode 100644
index 3bb9b4ee7e2..00000000000
--- a/mysql-test/r/ssl_crl_clients.result
+++ /dev/null
@@ -1,7 +0,0 @@
-# Test clients with and without CRL lists
-############ Test mysql ##############
-# Test mysql connecting to a server with a certificate revoked by -crl
-# Test mysql connecting to a server with a certificate revoked by -crlpath
-############ Test mysqladmin ##############
-# Test mysqladmin connecting to a server with a certificate revoked by -crl
-# Test mysqladmin connecting to a server with a certificate revoked by -crlpath
diff --git a/mysql-test/r/ssl_crl_clients_valid.result b/mysql-test/r/ssl_crl_clients_valid.result
deleted file mode 100644
index 32ee72d5c39..00000000000
--- a/mysql-test/r/ssl_crl_clients_valid.result
+++ /dev/null
@@ -1,16 +0,0 @@
-# Test clients with and without CRL lists
-############ Test mysql ##############
-# Test mysql connecting to a server with an empty crl
-Variable_name Value
-have_openssl YES
-have_ssl YES
-ssl_ca MYSQL_TEST_DIR/std_data/crl-ca-cert.pem
-ssl_capath
-ssl_cert MYSQL_TEST_DIR/std_data/crl-client-valid-cert.pem
-ssl_cipher
-ssl_crl MYSQL_TEST_DIR/std_data/crl-client-revoked.crl
-ssl_crlpath
-ssl_key MYSQL_TEST_DIR/std_data/crl-client-valid-key.pem
-############ Test mysqladmin ##############
-# Test mysqladmin connecting to a server with an empty crl
-mysqld is alive
diff --git a/mysql-test/r/ssl_crl_clrpath.result b/mysql-test/r/ssl_crl_clrpath.result
deleted file mode 100644
index b4b4d13eca1..00000000000
--- a/mysql-test/r/ssl_crl_clrpath.result
+++ /dev/null
@@ -1,23 +0,0 @@
-# test --crl for the client : should connect
-Variable_name Value
-have_openssl YES
-have_ssl YES
-ssl_ca MYSQL_TEST_DIR/std_data/crl-ca-cert.pem
-ssl_capath
-ssl_cert MYSQL_TEST_DIR/std_data/crl-server-cert.pem
-ssl_cipher
-ssl_crl
-ssl_crlpath MYSQL_TEST_DIR/std_data/crldir
-ssl_key MYSQL_TEST_DIR/std_data/crl-server-key.pem
-# test --crlpath for the client : should connect
-Variable_name Value
-have_openssl YES
-have_ssl YES
-ssl_ca MYSQL_TEST_DIR/std_data/crl-ca-cert.pem
-ssl_capath
-ssl_cert MYSQL_TEST_DIR/std_data/crl-server-cert.pem
-ssl_cipher
-ssl_crl
-ssl_crlpath MYSQL_TEST_DIR/std_data/crldir
-ssl_key MYSQL_TEST_DIR/std_data/crl-server-key.pem
-# try logging in with a certificate in the server's --ssl-crlpath : should fail
diff --git a/mysql-test/r/ssl_timeout-9836.result b/mysql-test/r/ssl_timeout-9836.result
deleted file mode 100644
index 7e21a8a435b..00000000000
--- a/mysql-test/r/ssl_timeout-9836.result
+++ /dev/null
@@ -1,9 +0,0 @@
-connect con1,localhost,root,,,,,SSL;
-SET @@net_read_timeout=1;
-SELECT 1;
-1
-1
-SELECT 1;
-1
-1
-disconnect con1;
diff --git a/mysql-test/r/ssl_timeout.result b/mysql-test/r/ssl_timeout.result
deleted file mode 100644
index 3c94a9927da..00000000000
--- a/mysql-test/r/ssl_timeout.result
+++ /dev/null
@@ -1,10 +0,0 @@
-# connect with read timeout so SLEEP() should timeout
-connect ssl_con,localhost,root,,,,,SSL read_timeout=5;
-# Check ssl turned on
-SELECT (VARIABLE_VALUE <> '') AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher';
-have_ssl
-1
-SELECT SLEEP(600);
-ERROR HY000: Lost connection to MySQL server during query
-connection default;
-disconnect ssl_con;
diff --git a/mysql-test/r/stack-crash.result b/mysql-test/r/stack-crash.result
deleted file mode 100644
index 62870db79f3..00000000000
--- a/mysql-test/r/stack-crash.result
+++ /dev/null
@@ -1,87 +0,0 @@
-drop table if exists t1,t2;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-Note 1051 Unknown table 'test.t2'
-CREATE TABLE t1 (
-`sspo_id` int(11) NOT NULL AUTO_INCREMENT,
-`sspo_uid` int(11) NOT NULL DEFAULT '0',
-`sspo_type` varchar(1) NOT NULL DEFAULT 'P',
-`sspo_text` longtext NOT NULL,
-`sspo_image` varchar(255) NOT NULL,
-`sspo_source` int(11) NOT NULL DEFAULT '0',
-`sspo_event_name` varchar(255) NOT NULL DEFAULT '',
-`sspo_event_location` varchar(255) NOT NULL DEFAULT '',
-`sspo_event_date` datetime DEFAULT NULL,
-`sspo_remote_title` varchar(255) NOT NULL,
-`sspo_remote_url` varchar(255) NOT NULL,
-`sspo_remote_desc` text NOT NULL,
-`sspo_remote_image` varchar(255) NOT NULL,
-`sspo_obj_status` varchar(1) NOT NULL DEFAULT 'A',
-`sspo_cr_date` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
-`sspo_cr_uid` int(11) NOT NULL DEFAULT '0',
-`sspo_lu_date` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
-`sspo_lu_uid` int(11) NOT NULL DEFAULT '0',
-PRIMARY KEY (`sspo_id`),
-KEY `post_uid` (`sspo_uid`,`sspo_cr_date`)
-) AUTO_INCREMENT=30 DEFAULT CHARSET=utf8;
-INSERT INTO t1 VALUES (1,2,'P','test1','',0,'','',NULL,'','','','','A','2013-09-30 00:19:32',2,'2013-09-30 00:19:32',2),(2,2,'P','bbb','',0,'','',NULL,'','','','','A','2013-10-02 15:06:35',2,'2013-10-02 15:06:35',2);
-CREATE TABLE `t2` (
-`spoo_id` int(11) NOT NULL AUTO_INCREMENT,
-`spoo_user_type_id` int(11) NOT NULL DEFAULT '0',
-`spoo_uid` int(11) NOT NULL DEFAULT '0',
-`spoo_option_id` int(11) NOT NULL DEFAULT '0',
-`spoo_value` varchar(10000) NOT NULL,
-`spoo_obj_status` varchar(1) NOT NULL DEFAULT 'A',
-`spoo_cr_date` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
-`spoo_cr_uid` int(11) NOT NULL DEFAULT '0',
-`spoo_lu_date` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
-`spoo_lu_uid` int(11) NOT NULL DEFAULT '0',
-PRIMARY KEY (`spoo_id`),
-KEY `object_option_main_idx` (`spoo_user_type_id`,`spoo_uid`,`spoo_option_id`,`spoo_value`(255))
-) AUTO_INCREMENT=107 DEFAULT CHARSET=utf8;
-INSERT INTO `t2` VALUES (19,1,2,6,'Dortmund','A','2013-09-26 01:36:51',2,'2013-09-26 01:36:51',2),(20,1,2,8,'49','A','2013-09-26 01:36:51',2,'2013-09-26 01:36:51',2);
-SELECT Count(*)
-FROM t1 AS tbl
-LEFT JOIN t2 a
-ON a.spoo_uid = sspo_uid
-AND a.spoo_option_id = 1
-LEFT JOIN t2 b
-ON b.spoo_uid = sspo_uid
-AND b.spoo_option_id = 2
-LEFT JOIN t2 c
-ON c.spoo_uid = sspo_uid
-AND c.spoo_option_id = 3
-LEFT JOIN t2 d
-ON d.spoo_uid = sspo_uid
-AND d.spoo_option_id = 5
-LEFT JOIN t2 e
-ON e.spoo_uid = sspo_uid
-AND e.spoo_option_id = 4
-LEFT JOIN t2 f
-ON f.spoo_uid = sspo_uid
-AND f.spoo_option_id = 11
-LEFT JOIN t2 g
-ON g.spoo_uid = sspo_uid
-AND g.spoo_option_id = 7
-LEFT JOIN t2 h
-ON h.spoo_uid = sspo_uid
-AND h.spoo_option_id = 10
-LEFT JOIN t2 i
-ON i.spoo_uid = sspo_uid
-AND i.spoo_option_id = 18
-LEFT JOIN t2 j
-ON j.spoo_uid = sspo_uid
-AND j.spoo_option_id = 6
-GROUP BY a.spoo_value,
-b.spoo_value,
-c.spoo_value,
-d.spoo_value,
-e.spoo_value,
-f.spoo_value,
-g.spoo_value,
-h.spoo_value,
-i.spoo_value,
-j.spoo_value;
-Count(*)
-2
-drop table t1,t2;
diff --git a/mysql-test/r/stat_tables-enospc.result b/mysql-test/r/stat_tables-enospc.result
deleted file mode 100644
index f0d76f04eee..00000000000
--- a/mysql-test/r/stat_tables-enospc.result
+++ /dev/null
@@ -1,10 +0,0 @@
-call mtr.add_suppression("No space left on device");
-create table t1 (a varchar(255), b varchar(255), c varchar(255));
-set use_stat_tables=PREFERABLY, optimizer_use_condition_selectivity=3;
-set debug_dbug='+d,simulate_file_write_error';
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze Error Error writing file 'tmp-file' (Errcode: 28 "No space left on device")
-test.t1 analyze status Operation failed
-set debug_dbug='';
-drop table t1;
diff --git a/mysql-test/r/stat_tables.result b/mysql-test/r/stat_tables.result
deleted file mode 100644
index fcced761283..00000000000
--- a/mysql-test/r/stat_tables.result
+++ /dev/null
@@ -1,519 +0,0 @@
-select @@global.use_stat_tables;
-@@global.use_stat_tables
-COMPLEMENTARY
-select @@session.use_stat_tables;
-@@session.use_stat_tables
-COMPLEMENTARY
-set @save_use_stat_tables=@@use_stat_tables;
-set use_stat_tables='preferably';
-DROP DATABASE IF EXISTS dbt3_s001;
-CREATE DATABASE dbt3_s001;
-use dbt3_s001;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='extended_keys=off';
-select * from mysql.table_stats;
-db_name table_name cardinality
-dbt3_s001 customer 150
-dbt3_s001 lineitem 6005
-dbt3_s001 nation 25
-dbt3_s001 orders 1500
-dbt3_s001 part 200
-dbt3_s001 partsupp 700
-dbt3_s001 region 5
-dbt3_s001 supplier 10
-select * from mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 customer PRIMARY 1 1.0000
-dbt3_s001 customer i_c_nationkey 1 6.0000
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_receiptdate 1 2.6477
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 nation PRIMARY 1 1.0000
-dbt3_s001 nation i_n_regionkey 1 5.0000
-dbt3_s001 orders PRIMARY 1 1.0000
-dbt3_s001 orders i_o_orderdate 1 1.3321
-dbt3_s001 orders i_o_custkey 1 15.0000
-dbt3_s001 part PRIMARY 1 1.0000
-dbt3_s001 part i_p_retailprice 1 1.0000
-dbt3_s001 partsupp PRIMARY 1 3.5000
-dbt3_s001 partsupp PRIMARY 2 1.0000
-dbt3_s001 partsupp i_ps_partkey 1 3.5000
-dbt3_s001 partsupp i_ps_suppkey 1 70.0000
-dbt3_s001 region PRIMARY 1 1.0000
-dbt3_s001 supplier PRIMARY 1 1.0000
-dbt3_s001 supplier i_s_nationkey 1 1.1111
-set optimizer_switch=@save_optimizer_switch;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='index_condition_pushdown=off';
-EXPLAIN select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue
-from customer, orders, lineitem, supplier, nation, region
-where c_custkey = o_custkey and l_orderkey = o_orderkey
-and l_suppkey = s_suppkey and c_nationkey = s_nationkey
-and s_nationkey = n_nationkey and n_regionkey = r_regionkey
-and r_name = 'AMERICA' and o_orderdate >= date '1995-01-01'
- and o_orderdate < date '1995-01-01' + interval '1' year
-group by n_name
-order by revenue desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE orders range PRIMARY,i_o_orderdate,i_o_custkey i_o_orderdate 4 NULL 179 Using where; Using temporary; Using filesort
-1 SIMPLE customer eq_ref PRIMARY,i_c_nationkey PRIMARY 4 dbt3_s001.orders.o_custkey 1 Using where
-1 SIMPLE nation eq_ref PRIMARY,i_n_regionkey PRIMARY 4 dbt3_s001.customer.c_nationkey 1
-1 SIMPLE region ALL PRIMARY NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE lineitem ref PRIMARY,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity PRIMARY 4 dbt3_s001.orders.o_orderkey 4 Using where
-1 SIMPLE supplier eq_ref PRIMARY,i_s_nationkey PRIMARY 4 dbt3_s001.lineitem.l_suppkey 1 Using where
-select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue
-from customer, orders, lineitem, supplier, nation, region
-where c_custkey = o_custkey and l_orderkey = o_orderkey
-and l_suppkey = s_suppkey and c_nationkey = s_nationkey
-and s_nationkey = n_nationkey and n_regionkey = r_regionkey
-and r_name = 'AMERICA' and o_orderdate >= date '1995-01-01'
- and o_orderdate < date '1995-01-01' + interval '1' year
-group by n_name
-order by revenue desc;
-n_name revenue
-PERU 321915.8715
-ARGENTINA 69817.1451
-set optimizer_switch=@save_optimizer_switch;
-delete from mysql.index_stats;
-select * from mysql.table_stats;
-db_name table_name cardinality
-dbt3_s001 customer 150
-dbt3_s001 lineitem 6005
-dbt3_s001 nation 25
-dbt3_s001 orders 1500
-dbt3_s001 part 200
-dbt3_s001 partsupp 700
-dbt3_s001 region 5
-dbt3_s001 supplier 10
-select * from mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 customer PRIMARY 1 1.0000
-dbt3_s001 customer i_c_nationkey 1 6.0000
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_receiptdate 1 2.6477
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 nation PRIMARY 1 1.0000
-dbt3_s001 nation i_n_regionkey 1 5.0000
-dbt3_s001 orders PRIMARY 1 1.0000
-dbt3_s001 orders i_o_orderdate 1 1.3321
-dbt3_s001 orders i_o_custkey 1 15.0000
-dbt3_s001 part PRIMARY 1 1.0000
-dbt3_s001 part i_p_retailprice 1 1.0000
-dbt3_s001 partsupp PRIMARY 1 3.5000
-dbt3_s001 partsupp PRIMARY 2 1.0000
-dbt3_s001 partsupp i_ps_partkey 1 3.5000
-dbt3_s001 partsupp i_ps_suppkey 1 70.0000
-dbt3_s001 region PRIMARY 1 1.0000
-dbt3_s001 supplier PRIMARY 1 1.0000
-dbt3_s001 supplier i_s_nationkey 1 1.1111
-select * from mysql.table_stats where table_name='orders';
-db_name table_name cardinality
-dbt3_s001 orders 1500
-select * from mysql.index_stats where table_name='orders';
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 orders PRIMARY 1 1.0000
-dbt3_s001 orders i_o_orderdate 1 1.3321
-dbt3_s001 orders i_o_custkey 1 15.0000
-select (select cardinality from mysql.table_stats where table_name='orders') /
-(select avg_frequency from mysql.index_stats
-where index_name='i_o_orderdate' and prefix_arity=1) as n_distinct;
-n_distinct
-1126.0416
-select count(distinct o_orderdate) from orders;
-count(distinct o_orderdate)
-1126
-select (select cardinality from mysql.table_stats where table_name='orders') /
-(select avg_frequency from mysql.index_stats
-where index_name='i_o_custkey' and prefix_arity=1) as n_distinct;
-n_distinct
-100.0000
-select count(distinct o_custkey) from orders;
-count(distinct o_custkey)
-100
-show index from orders;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-orders 0 PRIMARY 1 o_orderkey A 1500 NULL NULL BTREE
-orders 1 i_o_orderdate 1 o_orderDATE A 1126 NULL NULL YES BTREE
-orders 1 i_o_custkey 1 o_custkey A 100 NULL NULL YES BTREE
-select index_name, column_name, cardinality from information_schema.statistics
-where table_name='orders';
-index_name column_name cardinality
-PRIMARY o_orderkey 1500
-i_o_orderdate o_orderDATE 1126
-i_o_custkey o_custkey 100
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='index_condition_pushdown=off';
-EXPLAIN select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue
-from customer, orders, lineitem, supplier, nation, region
-where c_custkey = o_custkey and l_orderkey = o_orderkey
-and l_suppkey = s_suppkey and c_nationkey = s_nationkey
-and s_nationkey = n_nationkey and n_regionkey = r_regionkey
-and r_name = 'AMERICA' and o_orderdate >= date '1995-01-01'
- and o_orderdate < date '1995-01-01' + interval '1' year
-group by n_name
-order by revenue desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE orders range PRIMARY,i_o_orderdate,i_o_custkey i_o_orderdate 4 NULL 179 Using where; Using temporary; Using filesort
-1 SIMPLE customer eq_ref PRIMARY,i_c_nationkey PRIMARY 4 dbt3_s001.orders.o_custkey 1 Using where
-1 SIMPLE nation eq_ref PRIMARY,i_n_regionkey PRIMARY 4 dbt3_s001.customer.c_nationkey 1
-1 SIMPLE region ALL PRIMARY NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE lineitem ref PRIMARY,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity PRIMARY 4 dbt3_s001.orders.o_orderkey 4 Using where
-1 SIMPLE supplier eq_ref PRIMARY,i_s_nationkey PRIMARY 4 dbt3_s001.lineitem.l_suppkey 1 Using where
-select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue
-from customer, orders, lineitem, supplier, nation, region
-where c_custkey = o_custkey and l_orderkey = o_orderkey
-and l_suppkey = s_suppkey and c_nationkey = s_nationkey
-and s_nationkey = n_nationkey and n_regionkey = r_regionkey
-and r_name = 'AMERICA' and o_orderdate >= date '1995-01-01'
- and o_orderdate < date '1995-01-01' + interval '1' year
-group by n_name
-order by revenue desc;
-n_name revenue
-PERU 321915.8715
-ARGENTINA 69817.1451
-set optimizer_switch=@save_optimizer_switch;
-EXPLAIN select o_year,
-sum(case when nation = 'UNITED STATES' then volume else 0 end) /
-sum(volume) as mkt_share
-from (select extract(year from o_orderdate) as o_year,
-l_extendedprice * (1-l_discount) as volume,
-n2.n_name as nation
-from part, supplier, lineitem, orders, customer,
-nation n1, nation n2, region
-where p_partkey = l_partkey and s_suppkey = l_suppkey
-and l_orderkey = o_orderkey and o_custkey = c_custkey
-and c_nationkey = n1.n_nationkey and n1.n_regionkey = r_regionkey
-and r_name = 'AMERICA' and s_nationkey = n2.n_nationkey
-and o_orderdate between date '1995-01-01' and date '1996-12-31'
- and p_type = 'STANDARD BRUSHED STEEL' ) as all_nations
-group by o_year
-order by o_year;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE orders ALL PRIMARY,i_o_orderdate,i_o_custkey NULL NULL NULL 1500 Using where; Using temporary; Using filesort
-1 SIMPLE customer eq_ref PRIMARY,i_c_nationkey PRIMARY 4 dbt3_s001.orders.o_custkey 1 Using where
-1 SIMPLE n1 eq_ref PRIMARY,i_n_regionkey PRIMARY 4 dbt3_s001.customer.c_nationkey 1
-1 SIMPLE region ALL PRIMARY NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE lineitem ref PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity PRIMARY 4 dbt3_s001.orders.o_orderkey 4 Using where
-1 SIMPLE part eq_ref PRIMARY PRIMARY 4 dbt3_s001.lineitem.l_partkey 1 Using where
-1 SIMPLE supplier eq_ref PRIMARY,i_s_nationkey PRIMARY 4 dbt3_s001.lineitem.l_suppkey 1 Using where
-1 SIMPLE n2 eq_ref PRIMARY PRIMARY 4 dbt3_s001.supplier.s_nationkey 1
-select o_year,
-sum(case when nation = 'UNITED STATES' then volume else 0 end) /
-sum(volume) as mkt_share
-from (select extract(year from o_orderdate) as o_year,
-l_extendedprice * (1-l_discount) as volume,
-n2.n_name as nation
-from part, supplier, lineitem, orders, customer,
-nation n1, nation n2, region
-where p_partkey = l_partkey and s_suppkey = l_suppkey
-and l_orderkey = o_orderkey and o_custkey = c_custkey
-and c_nationkey = n1.n_nationkey and n1.n_regionkey = r_regionkey
-and r_name = 'AMERICA' and s_nationkey = n2.n_nationkey
-and o_orderdate between date '1995-01-01' and date '1996-12-31'
- and p_type = 'STANDARD BRUSHED STEEL' ) as all_nations
-group by o_year
-order by o_year;
-o_year mkt_share
-1995 0.4495521838895718
-1996 0.024585468215352495
-EXPLAIN select nation, o_year, sum(amount) as sum_profit
-from (select n_name as nation,
-extract(year from o_orderdate) as o_year,
-l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount
-from part, supplier, lineitem, partsupp, orders, nation
-where s_suppkey = l_suppkey and ps_suppkey = l_suppkey
-and ps_partkey = l_partkey and p_partkey = l_partkey
-and o_orderkey = l_orderkey and s_nationkey = n_nationkey
-and p_name like '%green%') as profit
-group by nation, o_year
-order by nation, o_year desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE supplier ALL PRIMARY,i_s_nationkey NULL NULL NULL 10 Using where; Using temporary; Using filesort
-1 SIMPLE nation eq_ref PRIMARY PRIMARY 4 dbt3_s001.supplier.s_nationkey 1
-1 SIMPLE partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey i_ps_suppkey 4 dbt3_s001.supplier.s_suppkey 70
-1 SIMPLE part eq_ref PRIMARY PRIMARY 4 dbt3_s001.partsupp.ps_partkey 1 Using where
-1 SIMPLE lineitem ref PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity i_l_suppkey_partkey 10 dbt3_s001.partsupp.ps_partkey,dbt3_s001.supplier.s_suppkey 8
-1 SIMPLE orders eq_ref PRIMARY PRIMARY 4 dbt3_s001.lineitem.l_orderkey 1
-select nation, o_year, sum(amount) as sum_profit
-from (select n_name as nation,
-extract(year from o_orderdate) as o_year,
-l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount
-from part, supplier, lineitem, partsupp, orders, nation
-where s_suppkey = l_suppkey and ps_suppkey = l_suppkey
-and ps_partkey = l_partkey and p_partkey = l_partkey
-and o_orderkey = l_orderkey and s_nationkey = n_nationkey
-and p_name like '%green%') as profit
-group by nation, o_year
-order by nation, o_year desc;
-nation o_year sum_profit
-ARGENTINA 1997 18247.873399999993
-ARGENTINA 1996 7731.089399999995
-ARGENTINA 1995 134490.5697
-ARGENTINA 1994 36767.101500000004
-ARGENTINA 1993 35857.08
-ARGENTINA 1992 35740
-ETHIOPIA 1998 2758.7801999999992
-ETHIOPIA 1997 19419.294599999997
-ETHIOPIA 1995 51231.87439999999
-ETHIOPIA 1994 3578.9478999999974
-ETHIOPIA 1992 1525.8234999999986
-IRAN 1998 37817.229600000006
-IRAN 1997 52643.77359999999
-IRAN 1996 70143.7761
-IRAN 1995 84094.58260000001
-IRAN 1994 18140.925599999995
-IRAN 1993 78655.1676
-IRAN 1992 87142.23960000002
-IRAQ 1998 22860.8082
-IRAQ 1997 93676.24359999999
-IRAQ 1996 45103.3242
-IRAQ 1994 36010.728599999995
-IRAQ 1993 33221.9399
-IRAQ 1992 47755.05900000001
-KENYA 1998 44194.831999999995
-KENYA 1997 57578.36259999999
-KENYA 1996 59195.90210000001
-KENYA 1995 79262.6278
-KENYA 1994 102360.66609999999
-KENYA 1993 128422.0196
-KENYA 1992 181517.2089
-MOROCCO 1998 41797.823199999984
-MOROCCO 1997 23685.801799999994
-MOROCCO 1996 62115.19579999998
-MOROCCO 1995 42442.64300000001
-MOROCCO 1994 48655.878000000004
-MOROCCO 1993 22926.744400000003
-MOROCCO 1992 32239.8088
-PERU 1998 86999.36459999997
-PERU 1997 121110.41070000001
-PERU 1996 177040.40759999995
-PERU 1995 122247.94520000002
-PERU 1994 88046.25329999998
-PERU 1993 49379.813799999996
-PERU 1992 80646.86050000001
-UNITED KINGDOM 1998 50577.25560000001
-UNITED KINGDOM 1997 114288.8605
-UNITED KINGDOM 1996 147684.46480000002
-UNITED KINGDOM 1995 225267.65759999998
-UNITED KINGDOM 1994 140595.5864
-UNITED KINGDOM 1993 322548.49210000003
-UNITED KINGDOM 1992 67747.88279999999
-UNITED STATES 1998 3957.0431999999996
-UNITED STATES 1997 94729.5704
-UNITED STATES 1996 79297.85670000002
-UNITED STATES 1995 62201.23360000001
-UNITED STATES 1994 43075.629899999985
-UNITED STATES 1993 27168.486199999996
-UNITED STATES 1992 34092.366
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='extended_keys=on';
-EXPLAIN select o_orderkey, p_partkey
-from part, lineitem, orders
-where p_retailprice > 1100 and o_orderdate='1997-01-01'
-and o_orderkey=l_orderkey and p_partkey=l_partkey;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE orders ref PRIMARY,i_o_orderdate i_o_orderdate 4 const 1
-1 SIMPLE lineitem ref PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_orderkey,i_l_orderkey_quantity PRIMARY 4 dbt3_s001.orders.o_orderkey 4 Using where
-1 SIMPLE part eq_ref PRIMARY,i_p_retailprice PRIMARY 4 dbt3_s001.lineitem.l_partkey 1 Using where
-select o_orderkey, p_partkey
-from part, lineitem, orders
-where p_retailprice > 1100 and o_orderdate='1997-01-01'
-and o_orderkey=l_orderkey and p_partkey=l_partkey;
-o_orderkey p_partkey
-5895 200
-set optimizer_switch=@save_optimizer_switch;
-DROP DATABASE dbt3_s001;
-use test;
-#
-# Bug mdev-473: ANALYZE table locked for write
-#
-set use_stat_tables='complementary';
-create table t1 (i int);
-lock table t1 write;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status Table is already up to date
-alter table t1 add column a varchar(8);
-drop table t1;
-#
-# Bug mdev-487: memory leak in ANALYZE with stat tables
-#
-SET use_stat_tables = 'preferably';
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-DELETE FROM t1 WHERE a=1;
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-DROP TABLE t1;
-#
-# Bug mdev-518: corrupted/missing statistical tables
-#
-CREATE TABLE t1 (i int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-FLUSH TABLE t1;
-SET use_stat_tables='never';
-EXPLAIN SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-FLUSH TABLES;
-SET use_stat_tables='preferably';
-EXPLAIN SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-DROP TABLE t1;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-5204: invalid impossible where after reading const tables
-# when use_stat_tables = 'preferably'
-#
-set use_stat_tables = 'preferably';
-CREATE TABLE t1 (id int PRIMARY KEY) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-CREATE TABLE t2 (name char(3)) ENGINE=MyISAM;
-ANALYZE TABLE t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status Table is already up to date
-INSERT INTO t2 VALUES ('USA'),('AUS');
-SELECT * FROM t1 STRAIGHT_JOIN t2 WHERE name IN ( 'AUS','YEM' ) AND id = 1;
-id name
-1 AUS
-EXPLAIN
-SELECT * FROM t1 STRAIGHT_JOIN t2 WHERE name IN ( 'AUS','YEM' ) AND id = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 0 Using where
-ANALYZE TABLE t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-SELECT * FROM t1 STRAIGHT_JOIN t2 WHERE name IN ( 'AUS','YEM' ) AND id = 1;
-id name
-1 AUS
-EXPLAIN
-SELECT * FROM t1 STRAIGHT_JOIN t2 WHERE name IN ( 'AUS','YEM' ) AND id = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-DROP TABLE t1,t2;
-#
-# MDEV-7370: Server deadlocks on renaming a table for which persistent statistics exists
-#
-drop database if exists db1;
-drop database if exists db1;
-create database db1;
-create database db2;
-use db1;
-#
-# First, run the original testcase:
-#
-create table t1 (i int);
-insert into t1 values (10),(20);
-analyze table t1 persistent for all;
-Table Op Msg_type Msg_text
-db1.t1 analyze status Engine-independent statistics collected
-db1.t1 analyze status OK
-rename table t1 to db2.t1;
-# Verify that stats in the old database are gone:
-select * from mysql.column_stats where db_name='db1' and table_name='t1';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-select * from mysql.table_stats where db_name='db1' and table_name='t1';
-db_name table_name cardinality
-# Verify that stats are present in the new database:
-select * from mysql.column_stats where db_name='db2' and table_name='t1';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-db2 t1 i 10 20 0.0000 4.0000 1.0000 0 NULL NULL
-select * from mysql.table_stats where db_name='db2' and table_name='t1';
-db_name table_name cardinality
-db2 t1 2
-#
-# Now, try with more than one column and with indexes:
-#
-use test;
-create table t1(a int primary key);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-use db1;
-create table t2 (a int, b int, c int, key IDX1(a), key IDX2(a,b));
-insert into t2 select a/10, a/2, a from test.t1;
-analyze table t2 persistent for all;
-Table Op Msg_type Msg_text
-db1.t2 analyze status Engine-independent statistics collected
-db1.t2 analyze status Table is already up to date
-alter table t2 rename db2.t2;
-# Verify that stats in the old database are gone:
-select * from mysql.table_stats where db_name='db1' and table_name='t2';
-db_name table_name cardinality
-select * from mysql.column_stats where db_name='db1' and table_name='t2';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-select * from mysql.index_stats where db_name='db1' and table_name='t2';
-db_name table_name index_name prefix_arity avg_frequency
-# Verify that stats are present in the new database:
-select * from mysql.table_stats where db_name='db2' and table_name='t2';
-db_name table_name cardinality
-db2 t2 10
-select * from mysql.column_stats where db_name='db2' and table_name='t2';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-db2 t2 a 0 1 0.0000 4.0000 5.0000 0 NULL NULL
-db2 t2 b 0 5 0.0000 4.0000 1.6667 0 NULL NULL
-db2 t2 c 0 9 0.0000 4.0000 1.0000 0 NULL NULL
-select * from mysql.index_stats where db_name='db2' and table_name='t2';
-db_name table_name index_name prefix_arity avg_frequency
-db2 t2 IDX1 1 5.0000
-db2 t2 IDX2 1 5.0000
-db2 t2 IDX2 2 1.6667
-use db2;
-#
-# Now, rename within the same database and verify:
-#
-rename table t2 to t3;
-# No stats under old name:
-select * from mysql.table_stats where db_name='db2' and table_name='t2';
-db_name table_name cardinality
-select * from mysql.column_stats where db_name='db2' and table_name='t2';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-select * from mysql.index_stats where db_name='db2' and table_name='t2';
-db_name table_name index_name prefix_arity avg_frequency
-# Stats under the new name:
-select * from mysql.table_stats where db_name='db2' and table_name='t3';
-db_name table_name cardinality
-db2 t3 10
-select * from mysql.column_stats where db_name='db2' and table_name='t3';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-db2 t3 a 0 1 0.0000 4.0000 5.0000 0 NULL NULL
-db2 t3 b 0 5 0.0000 4.0000 1.6667 0 NULL NULL
-db2 t3 c 0 9 0.0000 4.0000 1.0000 0 NULL NULL
-select * from mysql.index_stats where db_name='db2' and table_name='t3';
-db_name table_name index_name prefix_arity avg_frequency
-db2 t3 IDX1 1 5.0000
-db2 t3 IDX2 1 5.0000
-db2 t3 IDX2 2 1.6667
-use test;
-drop database db1;
-drop database db2;
-drop table t1;
-set use_stat_tables=@save_use_stat_tables;
diff --git a/mysql-test/r/stat_tables_disabled.result b/mysql-test/r/stat_tables_disabled.result
deleted file mode 100644
index f57abc34e0c..00000000000
--- a/mysql-test/r/stat_tables_disabled.result
+++ /dev/null
@@ -1,70 +0,0 @@
-SET SESSION STORAGE_ENGINE='InnoDB';
-select @@global.use_stat_tables;
-@@global.use_stat_tables
-NEVER
-select @@session.use_stat_tables;
-@@session.use_stat_tables
-NEVER
-set @save_use_stat_tables=@@use_stat_tables;
-set use_stat_tables='preferably';
-DROP DATABASE IF EXISTS dbt3_s001;
-CREATE DATABASE dbt3_s001;
-use dbt3_s001;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='extended_keys=off';
-#
-# Bug mdev-503: optimizer ignores setting use_stat_tables='preferably'
-#
-flush tables
-customer, lineitem, nation, orders, part, partsupp, region, supplier;
-set use_stat_tables='never';
-EXPLAIN select sql_calc_found_rows straight_join
-l_orderkey, sum(l_extendedprice*(1-l_discount)) as revenue,
-o_orderdate, o_shippriority
-from orders, customer, lineitem
-where c_mktsegment = 'BUILDING' and c_custkey = o_custkey
-and l_orderkey = o_orderkey and o_orderdate < date '1995-03-15'
- and l_shipdate > date '1995-03-15'
-group by l_orderkey, o_orderdate, o_shippriority
-order by revenue desc, o_orderdate
-limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE orders ALL PRIMARY,i_o_orderdate,i_o_custkey NULL NULL NULL # Using where; Using temporary; Using filesort
-1 SIMPLE customer eq_ref PRIMARY PRIMARY 4 dbt3_s001.orders.o_custkey # Using where
-1 SIMPLE lineitem ref PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity PRIMARY 4 dbt3_s001.orders.o_orderkey # Using where
-set use_stat_tables='preferably';
-EXPLAIN select sql_calc_found_rows straight_join
-l_orderkey, sum(l_extendedprice*(1-l_discount)) as revenue,
-o_orderdate, o_shippriority
-from orders, customer, lineitem
-where c_mktsegment = 'BUILDING' and c_custkey = o_custkey
-and l_orderkey = o_orderkey and o_orderdate < date '1995-03-15'
- and l_shipdate > date '1995-03-15'
-group by l_orderkey, o_orderdate, o_shippriority
-order by revenue desc, o_orderdate
-limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE orders ALL PRIMARY,i_o_orderdate,i_o_custkey NULL NULL NULL 1500 Using where; Using temporary; Using filesort
-1 SIMPLE customer eq_ref PRIMARY PRIMARY 4 dbt3_s001.orders.o_custkey 1 Using where
-1 SIMPLE lineitem ref PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity PRIMARY 4 dbt3_s001.orders.o_orderkey 4 Using where
-flush tables customer, orders, lineitem;
-EXPLAIN select sql_calc_found_rows straight_join
-l_orderkey, sum(l_extendedprice*(1-l_discount)) as revenue,
-o_orderdate, o_shippriority
-from orders, customer, lineitem
-where c_mktsegment = 'BUILDING' and c_custkey = o_custkey
-and l_orderkey = o_orderkey and o_orderdate < date '1995-03-15'
- and l_shipdate > date '1995-03-15'
-group by l_orderkey, o_orderdate, o_shippriority
-order by revenue desc, o_orderdate
-limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE orders ALL PRIMARY,i_o_orderdate,i_o_custkey NULL NULL NULL 1500 Using where; Using temporary; Using filesort
-1 SIMPLE customer eq_ref PRIMARY PRIMARY 4 dbt3_s001.orders.o_custkey 1 Using where
-1 SIMPLE lineitem ref PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity PRIMARY 4 dbt3_s001.orders.o_orderkey 4 Using where
-# End of the test case for mdev-503
-set optimizer_switch=@save_optimizer_switch;
-DROP DATABASE dbt3_s001;
-use test;
-set use_stat_tables=@save_use_stat_tables;
-SET SESSION STORAGE_ENGINE=DEFAULT;
diff --git a/mysql-test/r/stat_tables_innodb.result b/mysql-test/r/stat_tables_innodb.result
deleted file mode 100644
index 42443bfcb72..00000000000
--- a/mysql-test/r/stat_tables_innodb.result
+++ /dev/null
@@ -1,548 +0,0 @@
-SET SESSION STORAGE_ENGINE='InnoDB';
-set @save_optimizer_switch_for_stat_tables_test=@@optimizer_switch;
-set optimizer_switch='extended_keys=on';
-select @@global.use_stat_tables;
-@@global.use_stat_tables
-COMPLEMENTARY
-select @@session.use_stat_tables;
-@@session.use_stat_tables
-COMPLEMENTARY
-set @save_use_stat_tables=@@use_stat_tables;
-set use_stat_tables='preferably';
-DROP DATABASE IF EXISTS dbt3_s001;
-CREATE DATABASE dbt3_s001;
-use dbt3_s001;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='extended_keys=off';
-select * from mysql.table_stats;
-db_name table_name cardinality
-dbt3_s001 customer 150
-dbt3_s001 lineitem 6005
-dbt3_s001 nation 25
-dbt3_s001 orders 1500
-dbt3_s001 part 200
-dbt3_s001 partsupp 700
-dbt3_s001 region 5
-dbt3_s001 supplier 10
-select * from mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 customer PRIMARY 1 1.0000
-dbt3_s001 customer i_c_nationkey 1 6.0000
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_receiptdate 1 2.6477
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 nation PRIMARY 1 1.0000
-dbt3_s001 nation i_n_regionkey 1 5.0000
-dbt3_s001 orders PRIMARY 1 1.0000
-dbt3_s001 orders i_o_orderdate 1 1.3321
-dbt3_s001 orders i_o_custkey 1 15.0000
-dbt3_s001 part PRIMARY 1 1.0000
-dbt3_s001 part i_p_retailprice 1 1.0000
-dbt3_s001 partsupp PRIMARY 1 3.5000
-dbt3_s001 partsupp PRIMARY 2 1.0000
-dbt3_s001 partsupp i_ps_partkey 1 3.5000
-dbt3_s001 partsupp i_ps_suppkey 1 70.0000
-dbt3_s001 region PRIMARY 1 1.0000
-dbt3_s001 supplier PRIMARY 1 1.0000
-dbt3_s001 supplier i_s_nationkey 1 1.1111
-set optimizer_switch=@save_optimizer_switch;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='index_condition_pushdown=off';
-EXPLAIN select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue
-from customer, orders, lineitem, supplier, nation, region
-where c_custkey = o_custkey and l_orderkey = o_orderkey
-and l_suppkey = s_suppkey and c_nationkey = s_nationkey
-and s_nationkey = n_nationkey and n_regionkey = r_regionkey
-and r_name = 'AMERICA' and o_orderdate >= date '1995-01-01'
- and o_orderdate < date '1995-01-01' + interval '1' year
-group by n_name
-order by revenue desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE orders range PRIMARY,i_o_orderdate,i_o_custkey i_o_orderdate 4 NULL 213 Using where; Using temporary; Using filesort
-1 SIMPLE customer eq_ref PRIMARY,i_c_nationkey PRIMARY 4 dbt3_s001.orders.o_custkey 1 Using where
-1 SIMPLE nation eq_ref PRIMARY,i_n_regionkey PRIMARY 4 dbt3_s001.customer.c_nationkey 1
-1 SIMPLE supplier ref PRIMARY,i_s_nationkey i_s_nationkey 5 dbt3_s001.customer.c_nationkey 1 Using index
-1 SIMPLE region ALL PRIMARY NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE lineitem ref PRIMARY,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity PRIMARY 4 dbt3_s001.orders.o_orderkey 4 Using where
-select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue
-from customer, orders, lineitem, supplier, nation, region
-where c_custkey = o_custkey and l_orderkey = o_orderkey
-and l_suppkey = s_suppkey and c_nationkey = s_nationkey
-and s_nationkey = n_nationkey and n_regionkey = r_regionkey
-and r_name = 'AMERICA' and o_orderdate >= date '1995-01-01'
- and o_orderdate < date '1995-01-01' + interval '1' year
-group by n_name
-order by revenue desc;
-n_name revenue
-PERU 321915.8715
-ARGENTINA 69817.1451
-set optimizer_switch=@save_optimizer_switch;
-delete from mysql.index_stats;
-select * from mysql.table_stats;
-db_name table_name cardinality
-dbt3_s001 customer 150
-dbt3_s001 lineitem 6005
-dbt3_s001 nation 25
-dbt3_s001 orders 1500
-dbt3_s001 part 200
-dbt3_s001 partsupp 700
-dbt3_s001 region 5
-dbt3_s001 supplier 10
-select * from mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 customer PRIMARY 1 1.0000
-dbt3_s001 customer i_c_nationkey 1 6.0000
-dbt3_s001 customer i_c_nationkey 2 1.0000
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_shipdate 2 1.0149
-dbt3_s001 lineitem i_l_shipdate 3 1.0000
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-dbt3_s001 lineitem i_l_suppkey_partkey 3 1.0030
-dbt3_s001 lineitem i_l_suppkey_partkey 4 1.0000
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_partkey 2 1.0089
-dbt3_s001 lineitem i_l_partkey 3 1.0000
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_suppkey 2 1.2073
-dbt3_s001 lineitem i_l_suppkey 3 1.0000
-dbt3_s001 lineitem i_l_receiptdate 1 2.6477
-dbt3_s001 lineitem i_l_receiptdate 2 1.0152
-dbt3_s001 lineitem i_l_receiptdate 3 1.0000
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey 2 1.0000
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_orderkey_quantity 3 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 lineitem i_l_commitdate 2 1.0364
-dbt3_s001 lineitem i_l_commitdate 3 1.0000
-dbt3_s001 nation PRIMARY 1 1.0000
-dbt3_s001 nation i_n_regionkey 1 5.0000
-dbt3_s001 nation i_n_regionkey 2 1.0000
-dbt3_s001 orders PRIMARY 1 1.0000
-dbt3_s001 orders i_o_orderdate 1 1.3321
-dbt3_s001 orders i_o_orderdate 2 1.0000
-dbt3_s001 orders i_o_custkey 1 15.0000
-dbt3_s001 orders i_o_custkey 2 1.0000
-dbt3_s001 part PRIMARY 1 1.0000
-dbt3_s001 part i_p_retailprice 1 1.0000
-dbt3_s001 part i_p_retailprice 2 1.0000
-dbt3_s001 partsupp PRIMARY 1 3.5000
-dbt3_s001 partsupp PRIMARY 2 1.0000
-dbt3_s001 partsupp i_ps_partkey 1 3.5000
-dbt3_s001 partsupp i_ps_partkey 2 1.0000
-dbt3_s001 partsupp i_ps_suppkey 1 70.0000
-dbt3_s001 partsupp i_ps_suppkey 2 1.0000
-dbt3_s001 region PRIMARY 1 1.0000
-dbt3_s001 supplier PRIMARY 1 1.0000
-dbt3_s001 supplier i_s_nationkey 1 1.1111
-dbt3_s001 supplier i_s_nationkey 2 1.0000
-select * from mysql.table_stats where table_name='orders';
-db_name table_name cardinality
-dbt3_s001 orders 1500
-select * from mysql.index_stats where table_name='orders';
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 orders PRIMARY 1 1.0000
-dbt3_s001 orders i_o_orderdate 1 1.3321
-dbt3_s001 orders i_o_orderdate 2 1.0000
-dbt3_s001 orders i_o_custkey 1 15.0000
-dbt3_s001 orders i_o_custkey 2 1.0000
-select (select cardinality from mysql.table_stats where table_name='orders') /
-(select avg_frequency from mysql.index_stats
-where index_name='i_o_orderdate' and prefix_arity=1) as n_distinct;
-n_distinct
-1126.0416
-select count(distinct o_orderdate) from orders;
-count(distinct o_orderdate)
-1126
-select (select cardinality from mysql.table_stats where table_name='orders') /
-(select avg_frequency from mysql.index_stats
-where index_name='i_o_custkey' and prefix_arity=1) as n_distinct;
-n_distinct
-100.0000
-select count(distinct o_custkey) from orders;
-count(distinct o_custkey)
-100
-show index from orders;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-orders 0 PRIMARY 1 o_orderkey A 1500 NULL NULL BTREE
-orders 1 i_o_orderdate 1 o_orderDATE A 1126 NULL NULL YES BTREE
-orders 1 i_o_custkey 1 o_custkey A 100 NULL NULL YES BTREE
-select index_name, column_name, cardinality from information_schema.statistics
-where table_name='orders';
-index_name column_name cardinality
-PRIMARY o_orderkey 1500
-i_o_orderdate o_orderDATE 1126
-i_o_custkey o_custkey 100
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='index_condition_pushdown=off';
-EXPLAIN select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue
-from customer, orders, lineitem, supplier, nation, region
-where c_custkey = o_custkey and l_orderkey = o_orderkey
-and l_suppkey = s_suppkey and c_nationkey = s_nationkey
-and s_nationkey = n_nationkey and n_regionkey = r_regionkey
-and r_name = 'AMERICA' and o_orderdate >= date '1995-01-01'
- and o_orderdate < date '1995-01-01' + interval '1' year
-group by n_name
-order by revenue desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE orders range PRIMARY,i_o_orderdate,i_o_custkey i_o_orderdate 4 NULL 213 Using where; Using temporary; Using filesort
-1 SIMPLE customer eq_ref PRIMARY,i_c_nationkey PRIMARY 4 dbt3_s001.orders.o_custkey 1 Using where
-1 SIMPLE nation eq_ref PRIMARY,i_n_regionkey PRIMARY 4 dbt3_s001.customer.c_nationkey 1
-1 SIMPLE supplier ref PRIMARY,i_s_nationkey i_s_nationkey 5 dbt3_s001.customer.c_nationkey 1 Using index
-1 SIMPLE region ALL PRIMARY NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE lineitem ref PRIMARY,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity PRIMARY 4 dbt3_s001.orders.o_orderkey 4 Using where
-select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue
-from customer, orders, lineitem, supplier, nation, region
-where c_custkey = o_custkey and l_orderkey = o_orderkey
-and l_suppkey = s_suppkey and c_nationkey = s_nationkey
-and s_nationkey = n_nationkey and n_regionkey = r_regionkey
-and r_name = 'AMERICA' and o_orderdate >= date '1995-01-01'
- and o_orderdate < date '1995-01-01' + interval '1' year
-group by n_name
-order by revenue desc;
-n_name revenue
-PERU 321915.8715
-ARGENTINA 69817.1451
-set optimizer_switch=@save_optimizer_switch;
-EXPLAIN select o_year,
-sum(case when nation = 'UNITED STATES' then volume else 0 end) /
-sum(volume) as mkt_share
-from (select extract(year from o_orderdate) as o_year,
-l_extendedprice * (1-l_discount) as volume,
-n2.n_name as nation
-from part, supplier, lineitem, orders, customer,
-nation n1, nation n2, region
-where p_partkey = l_partkey and s_suppkey = l_suppkey
-and l_orderkey = o_orderkey and o_custkey = c_custkey
-and c_nationkey = n1.n_nationkey and n1.n_regionkey = r_regionkey
-and r_name = 'AMERICA' and s_nationkey = n2.n_nationkey
-and o_orderdate between date '1995-01-01' and date '1996-12-31'
- and p_type = 'STANDARD BRUSHED STEEL' ) as all_nations
-group by o_year
-order by o_year;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE orders ALL PRIMARY,i_o_orderdate,i_o_custkey NULL NULL NULL 1500 Using where; Using temporary; Using filesort
-1 SIMPLE customer eq_ref PRIMARY,i_c_nationkey PRIMARY 4 dbt3_s001.orders.o_custkey 1 Using where
-1 SIMPLE n1 eq_ref PRIMARY,i_n_regionkey PRIMARY 4 dbt3_s001.customer.c_nationkey 1
-1 SIMPLE region ALL PRIMARY NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-1 SIMPLE lineitem ref PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity PRIMARY 4 dbt3_s001.orders.o_orderkey 4 Using where
-1 SIMPLE part eq_ref PRIMARY PRIMARY 4 dbt3_s001.lineitem.l_partkey 1 Using where
-1 SIMPLE supplier eq_ref PRIMARY,i_s_nationkey PRIMARY 4 dbt3_s001.lineitem.l_suppkey 1 Using where
-1 SIMPLE n2 eq_ref PRIMARY PRIMARY 4 dbt3_s001.supplier.s_nationkey 1
-select o_year,
-sum(case when nation = 'UNITED STATES' then volume else 0 end) /
-sum(volume) as mkt_share
-from (select extract(year from o_orderdate) as o_year,
-l_extendedprice * (1-l_discount) as volume,
-n2.n_name as nation
-from part, supplier, lineitem, orders, customer,
-nation n1, nation n2, region
-where p_partkey = l_partkey and s_suppkey = l_suppkey
-and l_orderkey = o_orderkey and o_custkey = c_custkey
-and c_nationkey = n1.n_nationkey and n1.n_regionkey = r_regionkey
-and r_name = 'AMERICA' and s_nationkey = n2.n_nationkey
-and o_orderdate between date '1995-01-01' and date '1996-12-31'
- and p_type = 'STANDARD BRUSHED STEEL' ) as all_nations
-group by o_year
-order by o_year;
-o_year mkt_share
-1995 0.4495521838895718
-1996 0.024585468215352495
-EXPLAIN select nation, o_year, sum(amount) as sum_profit
-from (select n_name as nation,
-extract(year from o_orderdate) as o_year,
-l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount
-from part, supplier, lineitem, partsupp, orders, nation
-where s_suppkey = l_suppkey and ps_suppkey = l_suppkey
-and ps_partkey = l_partkey and p_partkey = l_partkey
-and o_orderkey = l_orderkey and s_nationkey = n_nationkey
-and p_name like '%green%') as profit
-group by nation, o_year
-order by nation, o_year desc;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE supplier index PRIMARY,i_s_nationkey i_s_nationkey 5 NULL 10 Using where; Using index; Using temporary; Using filesort
-1 SIMPLE nation eq_ref PRIMARY PRIMARY 4 dbt3_s001.supplier.s_nationkey 1
-1 SIMPLE partsupp ref PRIMARY,i_ps_partkey,i_ps_suppkey i_ps_suppkey 4 dbt3_s001.supplier.s_suppkey 70
-1 SIMPLE part eq_ref PRIMARY PRIMARY 4 dbt3_s001.partsupp.ps_partkey 1 Using where
-1 SIMPLE lineitem ref PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity i_l_suppkey_partkey 10 dbt3_s001.partsupp.ps_partkey,dbt3_s001.supplier.s_suppkey 8
-1 SIMPLE orders eq_ref PRIMARY PRIMARY 4 dbt3_s001.lineitem.l_orderkey 1
-select nation, o_year, sum(amount) as sum_profit
-from (select n_name as nation,
-extract(year from o_orderdate) as o_year,
-l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount
-from part, supplier, lineitem, partsupp, orders, nation
-where s_suppkey = l_suppkey and ps_suppkey = l_suppkey
-and ps_partkey = l_partkey and p_partkey = l_partkey
-and o_orderkey = l_orderkey and s_nationkey = n_nationkey
-and p_name like '%green%') as profit
-group by nation, o_year
-order by nation, o_year desc;
-nation o_year sum_profit
-ARGENTINA 1997 18247.873399999993
-ARGENTINA 1996 7731.089399999995
-ARGENTINA 1995 134490.5697
-ARGENTINA 1994 36767.101500000004
-ARGENTINA 1993 35857.08
-ARGENTINA 1992 35740
-ETHIOPIA 1998 2758.7801999999992
-ETHIOPIA 1997 19419.294599999997
-ETHIOPIA 1995 51231.87439999999
-ETHIOPIA 1994 3578.9478999999974
-ETHIOPIA 1992 1525.8234999999986
-IRAN 1998 37817.229600000006
-IRAN 1997 52643.77359999999
-IRAN 1996 70143.7761
-IRAN 1995 84094.58260000001
-IRAN 1994 18140.925599999995
-IRAN 1993 78655.1676
-IRAN 1992 87142.23960000002
-IRAQ 1998 22860.8082
-IRAQ 1997 93676.24359999999
-IRAQ 1996 45103.3242
-IRAQ 1994 36010.728599999995
-IRAQ 1993 33221.9399
-IRAQ 1992 47755.05900000001
-KENYA 1998 44194.831999999995
-KENYA 1997 57578.36259999999
-KENYA 1996 59195.90210000001
-KENYA 1995 79262.6278
-KENYA 1994 102360.66609999999
-KENYA 1993 128422.0196
-KENYA 1992 181517.2089
-MOROCCO 1998 41797.823199999984
-MOROCCO 1997 23685.801799999994
-MOROCCO 1996 62115.19579999998
-MOROCCO 1995 42442.64300000001
-MOROCCO 1994 48655.878000000004
-MOROCCO 1993 22926.744400000003
-MOROCCO 1992 32239.8088
-PERU 1998 86999.36459999997
-PERU 1997 121110.41070000001
-PERU 1996 177040.40759999995
-PERU 1995 122247.94520000002
-PERU 1994 88046.25329999998
-PERU 1993 49379.813799999996
-PERU 1992 80646.86050000001
-UNITED KINGDOM 1998 50577.25560000001
-UNITED KINGDOM 1997 114288.8605
-UNITED KINGDOM 1996 147684.46480000002
-UNITED KINGDOM 1995 225267.65759999998
-UNITED KINGDOM 1994 140595.5864
-UNITED KINGDOM 1993 322548.49210000003
-UNITED KINGDOM 1992 67747.88279999999
-UNITED STATES 1998 3957.0431999999996
-UNITED STATES 1997 94729.5704
-UNITED STATES 1996 79297.85670000002
-UNITED STATES 1995 62201.23360000001
-UNITED STATES 1994 43075.629899999985
-UNITED STATES 1993 27168.486199999996
-UNITED STATES 1992 34092.366
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='extended_keys=on';
-EXPLAIN select o_orderkey, p_partkey
-from part, lineitem, orders
-where p_retailprice > 1100 and o_orderdate='1997-01-01'
-and o_orderkey=l_orderkey and p_partkey=l_partkey;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE part range PRIMARY,i_p_retailprice i_p_retailprice 9 NULL 1 Using where; Using index
-1 SIMPLE orders ref PRIMARY,i_o_orderdate i_o_orderdate 4 const 1 Using index
-1 SIMPLE lineitem ref PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_orderkey,i_l_orderkey_quantity i_l_partkey 9 dbt3_s001.part.p_partkey,dbt3_s001.orders.o_orderkey 1 Using index
-select o_orderkey, p_partkey
-from part, lineitem, orders
-where p_retailprice > 1100 and o_orderdate='1997-01-01'
-and o_orderkey=l_orderkey and p_partkey=l_partkey;
-o_orderkey p_partkey
-5895 200
-set optimizer_switch=@save_optimizer_switch;
-DROP DATABASE dbt3_s001;
-use test;
-#
-# Bug mdev-473: ANALYZE table locked for write
-#
-set use_stat_tables='complementary';
-create table t1 (i int);
-lock table t1 write;
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-alter table t1 add column a varchar(8);
-drop table t1;
-#
-# Bug mdev-487: memory leak in ANALYZE with stat tables
-#
-SET use_stat_tables = 'preferably';
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-DELETE FROM t1 WHERE a=1;
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-DROP TABLE t1;
-#
-# Bug mdev-518: corrupted/missing statistical tables
-#
-CREATE TABLE t1 (i int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-FLUSH TABLE t1;
-SET use_stat_tables='never';
-EXPLAIN SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-FLUSH TABLES;
-SET use_stat_tables='preferably';
-EXPLAIN SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-DROP TABLE t1;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug mdev-5204: invalid impossible where after reading const tables
-# when use_stat_tables = 'preferably'
-#
-set use_stat_tables = 'preferably';
-CREATE TABLE t1 (id int PRIMARY KEY) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-CREATE TABLE t2 (name char(3)) ENGINE=MyISAM;
-ANALYZE TABLE t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status Table is already up to date
-INSERT INTO t2 VALUES ('USA'),('AUS');
-SELECT * FROM t1 STRAIGHT_JOIN t2 WHERE name IN ( 'AUS','YEM' ) AND id = 1;
-id name
-1 AUS
-EXPLAIN
-SELECT * FROM t1 STRAIGHT_JOIN t2 WHERE name IN ( 'AUS','YEM' ) AND id = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 0 Using where
-ANALYZE TABLE t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-SELECT * FROM t1 STRAIGHT_JOIN t2 WHERE name IN ( 'AUS','YEM' ) AND id = 1;
-id name
-1 AUS
-EXPLAIN
-SELECT * FROM t1 STRAIGHT_JOIN t2 WHERE name IN ( 'AUS','YEM' ) AND id = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-DROP TABLE t1,t2;
-#
-# MDEV-7370: Server deadlocks on renaming a table for which persistent statistics exists
-#
-drop database if exists db1;
-drop database if exists db1;
-create database db1;
-create database db2;
-use db1;
-#
-# First, run the original testcase:
-#
-create table t1 (i int);
-insert into t1 values (10),(20);
-analyze table t1 persistent for all;
-Table Op Msg_type Msg_text
-db1.t1 analyze status Engine-independent statistics collected
-db1.t1 analyze status OK
-rename table t1 to db2.t1;
-# Verify that stats in the old database are gone:
-select * from mysql.column_stats where db_name='db1' and table_name='t1';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-select * from mysql.table_stats where db_name='db1' and table_name='t1';
-db_name table_name cardinality
-# Verify that stats are present in the new database:
-select * from mysql.column_stats where db_name='db2' and table_name='t1';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-db2 t1 i 10 20 0.0000 4.0000 1.0000 0 NULL NULL
-select * from mysql.table_stats where db_name='db2' and table_name='t1';
-db_name table_name cardinality
-db2 t1 2
-#
-# Now, try with more than one column and with indexes:
-#
-use test;
-create table t1(a int primary key);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-use db1;
-create table t2 (a int, b int, c int, key IDX1(a), key IDX2(a,b));
-insert into t2 select a/10, a/2, a from test.t1;
-analyze table t2 persistent for all;
-Table Op Msg_type Msg_text
-db1.t2 analyze status Engine-independent statistics collected
-db1.t2 analyze status OK
-alter table t2 rename db2.t2;
-# Verify that stats in the old database are gone:
-select * from mysql.table_stats where db_name='db1' and table_name='t2';
-db_name table_name cardinality
-select * from mysql.column_stats where db_name='db1' and table_name='t2';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-select * from mysql.index_stats where db_name='db1' and table_name='t2';
-db_name table_name index_name prefix_arity avg_frequency
-# Verify that stats are present in the new database:
-select * from mysql.table_stats where db_name='db2' and table_name='t2';
-db_name table_name cardinality
-db2 t2 10
-select * from mysql.column_stats where db_name='db2' and table_name='t2';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-db2 t2 a 0 1 0.0000 4.0000 5.0000 0 NULL NULL
-db2 t2 b 0 5 0.0000 4.0000 1.6667 0 NULL NULL
-db2 t2 c 0 9 0.0000 4.0000 1.0000 0 NULL NULL
-select * from mysql.index_stats where db_name='db2' and table_name='t2';
-db_name table_name index_name prefix_arity avg_frequency
-db2 t2 IDX1 1 5.0000
-db2 t2 IDX2 1 5.0000
-db2 t2 IDX2 2 1.6667
-use db2;
-#
-# Now, rename within the same database and verify:
-#
-rename table t2 to t3;
-# No stats under old name:
-select * from mysql.table_stats where db_name='db2' and table_name='t2';
-db_name table_name cardinality
-select * from mysql.column_stats where db_name='db2' and table_name='t2';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-select * from mysql.index_stats where db_name='db2' and table_name='t2';
-db_name table_name index_name prefix_arity avg_frequency
-# Stats under the new name:
-select * from mysql.table_stats where db_name='db2' and table_name='t3';
-db_name table_name cardinality
-db2 t3 10
-select * from mysql.column_stats where db_name='db2' and table_name='t3';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-db2 t3 a 0 1 0.0000 4.0000 5.0000 0 NULL NULL
-db2 t3 b 0 5 0.0000 4.0000 1.6667 0 NULL NULL
-db2 t3 c 0 9 0.0000 4.0000 1.0000 0 NULL NULL
-select * from mysql.index_stats where db_name='db2' and table_name='t3';
-db_name table_name index_name prefix_arity avg_frequency
-db2 t3 IDX1 1 5.0000
-db2 t3 IDX2 1 5.0000
-db2 t3 IDX2 2 1.6667
-use test;
-drop database db1;
-drop database db2;
-drop table t1;
-set use_stat_tables=@save_use_stat_tables;
-set optimizer_switch=@save_optimizer_switch_for_stat_tables_test;
-SET SESSION STORAGE_ENGINE=DEFAULT;
diff --git a/mysql-test/r/stat_tables_innodb_debug.result b/mysql-test/r/stat_tables_innodb_debug.result
deleted file mode 100644
index e0c4c78cd29..00000000000
--- a/mysql-test/r/stat_tables_innodb_debug.result
+++ /dev/null
@@ -1,25 +0,0 @@
-#
-# MDEV-7901: re-implement analyze table for low impact
-#
-create table t1 (a int, b int, c int, key IDX1(a), key IDX2(a,b)) engine=innodb;
-insert into t1 select seq/10, seq/2, seq from seq_0_to_9;
-SET DEBUG_SYNC='statistics_collection_start1 SIGNAL analyzing WAIT_FOR written';
-analyze table t1 persistent for all;
-connect con1, localhost, root,,;
-connection con1;
-SET DEBUG_SYNC= 'now WAIT_FOR analyzing';
-select count(*) from t1;
-count(*)
-10
-insert into t1 values (333,333,333);
-update t1 set a=1;
-SET DEBUG_SYNC= 'now SIGNAL written';
-connection default;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-select count(*) from t1;
-count(*)
-11
-set debug_sync='RESET';
-drop table t1;
diff --git a/mysql-test/r/stat_tables_myisam_debug.result b/mysql-test/r/stat_tables_myisam_debug.result
deleted file mode 100644
index ae9a001bdfa..00000000000
--- a/mysql-test/r/stat_tables_myisam_debug.result
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# MDEV-7901: re-implement analyze table for low impact
-#
-create table t1 (a int, b int, c int, key IDX1(a), key IDX2(a,b)) engine=myisam;
-insert into t1 select seq/10, seq/2, seq from seq_0_to_9;
-SET DEBUG_SYNC='statistics_collection_start1 SIGNAL analyzing WAIT_FOR written';
-analyze table t1 persistent for all;
-connect con1, localhost, root,,;
-connection con1;
-SET DEBUG_SYNC= 'now WAIT_FOR analyzing';
-select count(*) from t1;
-count(*)
-10
-insert into t1 values (333,333,333);
-SET DEBUG_SYNC= 'now SIGNAL written';
-connection default;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status Table is already up to date
-select count(*) from t1;
-count(*)
-11
-set debug_sync='RESET';
-drop table t1;
diff --git a/mysql-test/r/stat_tables_par.result b/mysql-test/r/stat_tables_par.result
deleted file mode 100644
index 09ee2bbf16a..00000000000
--- a/mysql-test/r/stat_tables_par.result
+++ /dev/null
@@ -1,283 +0,0 @@
-set @save_use_stat_tables=@@use_stat_tables;
-set use_stat_tables='preferably';
-DROP DATABASE IF EXISTS dbt3_s001;
-CREATE DATABASE dbt3_s001;
-use dbt3_s001;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='extended_keys=off';
-select * from mysql.table_stats;
-db_name table_name cardinality
-dbt3_s001 customer 150
-dbt3_s001 lineitem 6005
-dbt3_s001 nation 25
-dbt3_s001 orders 1500
-dbt3_s001 part 200
-dbt3_s001 partsupp 700
-dbt3_s001 region 5
-dbt3_s001 supplier 10
-select * from mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 customer PRIMARY 1 1.0000
-dbt3_s001 customer i_c_nationkey 1 6.0000
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_receiptdate 1 2.6477
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 nation PRIMARY 1 1.0000
-dbt3_s001 nation i_n_regionkey 1 5.0000
-dbt3_s001 orders PRIMARY 1 1.0000
-dbt3_s001 orders i_o_orderdate 1 1.3321
-dbt3_s001 orders i_o_custkey 1 15.0000
-dbt3_s001 part PRIMARY 1 1.0000
-dbt3_s001 partsupp PRIMARY 1 3.5000
-dbt3_s001 partsupp PRIMARY 2 1.0000
-dbt3_s001 partsupp i_ps_partkey 1 3.5000
-dbt3_s001 partsupp i_ps_suppkey 1 70.0000
-dbt3_s001 region PRIMARY 1 1.0000
-dbt3_s001 supplier PRIMARY 1 1.0000
-dbt3_s001 supplier i_s_nationkey 1 1.1111
-flush table lineitem;
-set use_stat_tables='never';
-select round(sum(l_extendedprice*l_discount),4) as revenue
-from lineitem
-where l_shipdate >= date '1994-01-01'
-and l_shipdate < date '1994-01-01' + interval '1' year
-and l_discount between 0.06 - 0.01 and 0.06 + 0.01
-and l_quantity < 24;
-revenue
-77949.9186
-connect con1, localhost, root,,;
-connect con2, localhost, root,,;
-connection con1;
-set debug_sync='statistics_mem_alloc_start1 WAIT_FOR second_thread_started_too';
-set debug_sync='statistics_mem_alloc_start2 SIGNAL first_thread_working';
-use dbt3_s001;
-set use_stat_tables='preferably';
-select round(sum(l_extendedprice*l_discount),4) as revenue
-from lineitem
-where l_shipdate >= date '1994-01-01'
-and l_shipdate < date '1994-01-01' + interval '1' year
-and l_discount between 0.06 - 0.01 and 0.06 + 0.01
-and l_quantity < 24 ;
-connection con2;
-set debug_sync='statistics_mem_alloc_start1 SIGNAL second_thread_started_too';
-set debug_sync='statistics_mem_alloc_start2 WAIT_FOR first_thread_working';
-use dbt3_s001;
-set use_stat_tables='preferably';
-select round(sum(l_extendedprice*l_discount),4) as revenue
-from lineitem
-where l_shipdate >= date '1994-01-01'
-and l_shipdate < date '1994-01-01' + interval '1' year
-and l_discount between 0.06 - 0.01 and 0.06 + 0.01
-and l_quantity < 24;
-connection con1;
-revenue
-77949.9186
-connection con2;
-revenue
-77949.9186
-connection default;
-set use_stat_tables='preferably';
-disconnect con1;
-disconnect con2;
-set debug_sync='RESET';
-select * from mysql.index_stats where table_name='lineitem' order by index_name;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_receiptdate 1 2.6477
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-delete from mysql.index_stats
-where table_name='lineitem' and
-index_name in ('i_l_shipdate', 'i_l_receiptdate');
-select * from mysql.index_stats where table_name='lineitem' order by index_name;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-analyze table lineitem persistent for columns() indexes (i_l_shipdate);
-select * from mysql.index_stats where table_name='lineitem' order by index_name;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-delete from mysql.index_stats
-where table_name='lineitem' and index_name= 'i_l_shipdate';
-select * from mysql.index_stats where table_name='lineitem' order by index_name;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-connect con1, localhost, root,,;
-connect con2, localhost, root,,;
-connection con1;
-set debug_sync='statistics_collection_start1 WAIT_FOR second_thread_started_too';
-set debug_sync='statistics_collection_start2 SIGNAL first_thread_working';
-use dbt3_s001;
-set use_stat_tables='preferably';
-analyze table lineitem persistent for columns() indexes (i_l_shipdate);
-connection con2;
-set debug_sync='statistics_collection_start1 SIGNAL second_thread_started_too';
-set debug_sync='statistics_collection_start2 WAIT_FOR first_thread_working';
-use dbt3_s001;
-set use_stat_tables='preferably';
-analyze table lineitem persistent for columns() indexes (i_l_receiptdate);
-connection con1;
-connection con2;
-connection default;
-disconnect con1;
-disconnect con2;
-set debug_sync='RESET';
-select * from mysql.index_stats where table_name='lineitem' order by index_name, prefix_arity;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_receiptdate 1 2.6477
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-select * from mysql.index_stats where table_name='lineitem'
- order by index_name, prefix_arity;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_receiptdate 1 2.6477
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-set debug_sync='RESET';
-connect con1, localhost, root,,;
-connect con2, localhost, root,,;
-connection con1;
-set debug_sync='statistics_collection_start SIGNAL parked WAIT_FOR finish';
-use dbt3_s001;
-set use_stat_tables='preferably';
-analyze table lineitem persistent for all;
-connection con2;
-set debug_sync='now WAIT_FOR parked';
-use dbt3_s001;
-set use_stat_tables='never';
-set debug_sync='now SIGNAL finish';
-connection con1;
-connection default;
-disconnect con1;
-disconnect con2;
-set debug_sync='RESET';
-select * from mysql.index_stats where table_name='lineitem'
- order by index_name, prefix_arity;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_receiptdate 1 2.6477
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-set @save_global_use_stat_tables=@@global.use_stat_tables;
-set global use_stat_tables='preferably';
-set debug_sync='RESET';
-connect con1, localhost, root,,;
-connect con2, localhost, root,,;
-connection con1;
-set debug_sync='statistics_update_start SIGNAL parker WAIT_FOR go1 EXECUTE 1';
-set debug_sync='thr_multi_lock_before_thr_lock SIGNAL go2 EXECUTE 3';
-use dbt3_s001;
-analyze table lineitem persistent for all;
-connection con2;
-set debug_sync='open_and_process_table WAIT_FOR parker';
-set debug_sync='statistics_read_start SIGNAL go1 WAIT_FOR go2';
-use dbt3_s001;
-select * from mysql.index_stats, lineitem where index_name= 'i_l_shipdate' and l_orderkey=1 and l_partkey=68 order by prefix_arity;;
-connection con1;
-connection con2;
-db_name table_name index_name prefix_arity avg_frequency l_orderkey l_partkey l_suppkey l_linenumber l_quantity l_extendedprice l_discount l_tax l_returnflag l_linestatus l_shipDATE l_commitDATE l_receiptDATE l_shipinstruct l_shipmode l_comment
-dbt3_s001 lineitem i_l_shipdate 1 2.6500 1 68 9 2 36 34850.16 0.09 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-connection default;
-disconnect con1;
-disconnect con2;
-set debug_sync='RESET';
-set global use_stat_tables=@save_global_use_stat_tables;
-DROP DATABASE dbt3_s001;
-use test;
-set @save_global_use_stat_tables=@@global.use_stat_tables;
-set global use_stat_tables='preferably';
-set debug_sync='RESET';
-create table t1 (a int, b int, key(a));
-insert t1 values (1,1),(2,2);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-SET debug_sync='after_open_table_ignore_flush WAIT_FOR go';
-select * from information_schema.statistics where table_schema='test';
-connect con1, localhost, root;
-connection con1;
-select * from t1;
-a b
-1 1
-2 2
-SET DEBUG_SYNC= "now SIGNAL go";
-connection default;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT
-def test t1 1 test a 1 a A 2 NULL NULL YES BTREE
-connection default;
-disconnect con1;
-set debug_sync='RESET';
-drop table t1;
-set global use_stat_tables=@save_global_use_stat_tables;
-set use_stat_tables=@save_use_stat_tables;
diff --git a/mysql-test/r/stat_tables_par_innodb.result b/mysql-test/r/stat_tables_par_innodb.result
deleted file mode 100644
index 54579aff990..00000000000
--- a/mysql-test/r/stat_tables_par_innodb.result
+++ /dev/null
@@ -1,318 +0,0 @@
-SET SESSION STORAGE_ENGINE='InnoDB';
-set @save_optimizer_switch_for_stat_tables_test=@@optimizer_switch;
-set optimizer_switch='extended_keys=on';
-set @save_use_stat_tables=@@use_stat_tables;
-set use_stat_tables='preferably';
-DROP DATABASE IF EXISTS dbt3_s001;
-CREATE DATABASE dbt3_s001;
-use dbt3_s001;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='extended_keys=off';
-select * from mysql.table_stats;
-db_name table_name cardinality
-dbt3_s001 customer 150
-dbt3_s001 lineitem 6005
-dbt3_s001 nation 25
-dbt3_s001 orders 1500
-dbt3_s001 part 200
-dbt3_s001 partsupp 700
-dbt3_s001 region 5
-dbt3_s001 supplier 10
-select * from mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 customer PRIMARY 1 1.0000
-dbt3_s001 customer i_c_nationkey 1 6.0000
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_receiptdate 1 2.6477
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 nation PRIMARY 1 1.0000
-dbt3_s001 nation i_n_regionkey 1 5.0000
-dbt3_s001 orders PRIMARY 1 1.0000
-dbt3_s001 orders i_o_orderdate 1 1.3321
-dbt3_s001 orders i_o_custkey 1 15.0000
-dbt3_s001 part PRIMARY 1 1.0000
-dbt3_s001 partsupp PRIMARY 1 3.5000
-dbt3_s001 partsupp PRIMARY 2 1.0000
-dbt3_s001 partsupp i_ps_partkey 1 3.5000
-dbt3_s001 partsupp i_ps_suppkey 1 70.0000
-dbt3_s001 region PRIMARY 1 1.0000
-dbt3_s001 supplier PRIMARY 1 1.0000
-dbt3_s001 supplier i_s_nationkey 1 1.1111
-flush table lineitem;
-set use_stat_tables='never';
-select round(sum(l_extendedprice*l_discount),4) as revenue
-from lineitem
-where l_shipdate >= date '1994-01-01'
-and l_shipdate < date '1994-01-01' + interval '1' year
-and l_discount between 0.06 - 0.01 and 0.06 + 0.01
-and l_quantity < 24;
-revenue
-77949.9186
-connect con1, localhost, root,,;
-connect con2, localhost, root,,;
-connection con1;
-set debug_sync='statistics_mem_alloc_start1 WAIT_FOR second_thread_started_too';
-set debug_sync='statistics_mem_alloc_start2 SIGNAL first_thread_working';
-use dbt3_s001;
-set use_stat_tables='preferably';
-select round(sum(l_extendedprice*l_discount),4) as revenue
-from lineitem
-where l_shipdate >= date '1994-01-01'
-and l_shipdate < date '1994-01-01' + interval '1' year
-and l_discount between 0.06 - 0.01 and 0.06 + 0.01
-and l_quantity < 24 ;
-connection con2;
-set debug_sync='statistics_mem_alloc_start1 SIGNAL second_thread_started_too';
-set debug_sync='statistics_mem_alloc_start2 WAIT_FOR first_thread_working';
-use dbt3_s001;
-set use_stat_tables='preferably';
-select round(sum(l_extendedprice*l_discount),4) as revenue
-from lineitem
-where l_shipdate >= date '1994-01-01'
-and l_shipdate < date '1994-01-01' + interval '1' year
-and l_discount between 0.06 - 0.01 and 0.06 + 0.01
-and l_quantity < 24;
-connection con1;
-revenue
-77949.9186
-connection con2;
-revenue
-77949.9186
-connection default;
-set use_stat_tables='preferably';
-disconnect con1;
-disconnect con2;
-set debug_sync='RESET';
-select * from mysql.index_stats where table_name='lineitem' order by index_name;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_receiptdate 1 2.6477
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-delete from mysql.index_stats
-where table_name='lineitem' and
-index_name in ('i_l_shipdate', 'i_l_receiptdate');
-select * from mysql.index_stats where table_name='lineitem' order by index_name;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-analyze table lineitem persistent for columns() indexes (i_l_shipdate);
-select * from mysql.index_stats where table_name='lineitem' order by index_name;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-delete from mysql.index_stats
-where table_name='lineitem' and index_name= 'i_l_shipdate';
-select * from mysql.index_stats where table_name='lineitem' order by index_name;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-connect con1, localhost, root,,;
-connect con2, localhost, root,,;
-connection con1;
-set debug_sync='statistics_collection_start1 WAIT_FOR second_thread_started_too';
-set debug_sync='statistics_collection_start2 SIGNAL first_thread_working';
-use dbt3_s001;
-set use_stat_tables='preferably';
-analyze table lineitem persistent for columns() indexes (i_l_shipdate);
-connection con2;
-set debug_sync='statistics_collection_start1 SIGNAL second_thread_started_too';
-set debug_sync='statistics_collection_start2 WAIT_FOR first_thread_working';
-use dbt3_s001;
-set use_stat_tables='preferably';
-analyze table lineitem persistent for columns() indexes (i_l_receiptdate);
-connection con1;
-connection con2;
-connection default;
-disconnect con1;
-disconnect con2;
-set debug_sync='RESET';
-select * from mysql.index_stats where table_name='lineitem' order by index_name, prefix_arity;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_receiptdate 1 2.6477
-dbt3_s001 lineitem i_l_receiptdate 2 1.0152
-dbt3_s001 lineitem i_l_receiptdate 3 1.0000
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_shipdate 2 1.0149
-dbt3_s001 lineitem i_l_shipdate 3 1.0000
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-select * from mysql.index_stats where table_name='lineitem'
- order by index_name, prefix_arity;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 lineitem PRIMARY 1 4.0033
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7160
-dbt3_s001 lineitem i_l_orderkey 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0033
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_partkey 1 30.0250
-dbt3_s001 lineitem i_l_receiptdate 1 2.6477
-dbt3_s001 lineitem i_l_receiptdate 2 1.0152
-dbt3_s001 lineitem i_l_receiptdate 3 1.0000
-dbt3_s001 lineitem i_l_shipdate 1 2.6500
-dbt3_s001 lineitem i_l_shipdate 2 1.0149
-dbt3_s001 lineitem i_l_shipdate 3 1.0000
-dbt3_s001 lineitem i_l_suppkey 1 600.5000
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0250
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5786
-set debug_sync='RESET';
-connect con1, localhost, root,,;
-connect con2, localhost, root,,;
-connection con1;
-set debug_sync='statistics_collection_start SIGNAL parked WAIT_FOR finish';
-use dbt3_s001;
-set use_stat_tables='preferably';
-analyze table lineitem persistent for all;
-connection con2;
-set debug_sync='now WAIT_FOR parked';
-use dbt3_s001;
-set use_stat_tables='never';
-select * from lineitem where l_orderkey=1 and l_partkey=156;
-l_orderkey l_partkey l_suppkey l_linenumber l_quantity l_extendedprice l_discount l_tax l_returnflag l_linestatus l_shipDATE l_commitDATE l_receiptDATE l_shipinstruct l_shipmode l_comment
-1 156 4 1 17 17954.55 0.04 0.02 N O 1996-03-13 1996-02-12 1996-03-22 DELIVER IN PERSON TRUCK blithely regular ideas caj
-delete from lineitem where l_orderkey=1 and l_partkey=156;
-select * from lineitem where l_orderkey=1 and l_partkey=156;
-l_orderkey l_partkey l_suppkey l_linenumber l_quantity l_extendedprice l_discount l_tax l_returnflag l_linestatus l_shipDATE l_commitDATE l_receiptDATE l_shipinstruct l_shipmode l_comment
-set debug_sync='now SIGNAL finish';
-connection con1;
-connection default;
-disconnect con1;
-disconnect con2;
-set debug_sync='RESET';
-select * from mysql.index_stats where table_name='lineitem'
- order by index_name, prefix_arity;
-db_name table_name index_name prefix_arity avg_frequency
-dbt3_s001 lineitem PRIMARY 1 4.0027
-dbt3_s001 lineitem PRIMARY 2 1.0000
-dbt3_s001 lineitem i_l_commitdate 1 2.7155
-dbt3_s001 lineitem i_l_commitdate 2 1.0364
-dbt3_s001 lineitem i_l_commitdate 3 1.0000
-dbt3_s001 lineitem i_l_orderkey 1 4.0027
-dbt3_s001 lineitem i_l_orderkey 2 1.0000
-dbt3_s001 lineitem i_l_orderkey_quantity 1 4.0027
-dbt3_s001 lineitem i_l_orderkey_quantity 2 1.0404
-dbt3_s001 lineitem i_l_orderkey_quantity 3 1.0000
-dbt3_s001 lineitem i_l_partkey 1 30.0200
-dbt3_s001 lineitem i_l_partkey 2 1.0089
-dbt3_s001 lineitem i_l_partkey 3 1.0000
-dbt3_s001 lineitem i_l_receiptdate 1 2.6473
-dbt3_s001 lineitem i_l_receiptdate 2 1.0152
-dbt3_s001 lineitem i_l_receiptdate 3 1.0000
-dbt3_s001 lineitem i_l_shipdate 1 2.6496
-dbt3_s001 lineitem i_l_shipdate 2 1.0149
-dbt3_s001 lineitem i_l_shipdate 3 1.0000
-dbt3_s001 lineitem i_l_suppkey 1 600.4000
-dbt3_s001 lineitem i_l_suppkey 2 1.2073
-dbt3_s001 lineitem i_l_suppkey 3 1.0000
-dbt3_s001 lineitem i_l_suppkey_partkey 1 30.0200
-dbt3_s001 lineitem i_l_suppkey_partkey 2 8.5771
-dbt3_s001 lineitem i_l_suppkey_partkey 3 1.0030
-dbt3_s001 lineitem i_l_suppkey_partkey 4 1.0000
-set @save_global_use_stat_tables=@@global.use_stat_tables;
-set global use_stat_tables='preferably';
-set debug_sync='RESET';
-connect con1, localhost, root,,;
-connect con2, localhost, root,,;
-connection con1;
-set debug_sync='statistics_update_start SIGNAL parker WAIT_FOR go1 EXECUTE 1';
-set debug_sync='thr_multi_lock_before_thr_lock SIGNAL go2 EXECUTE 3';
-use dbt3_s001;
-analyze table lineitem persistent for all;
-connection con2;
-set debug_sync='open_and_process_table WAIT_FOR parker';
-set debug_sync='statistics_read_start SIGNAL go1 WAIT_FOR go2';
-use dbt3_s001;
-select * from mysql.index_stats, lineitem where index_name= 'i_l_shipdate' and l_orderkey=1 and l_partkey=68 order by prefix_arity;;
-connection con1;
-connection con2;
-db_name table_name index_name prefix_arity avg_frequency l_orderkey l_partkey l_suppkey l_linenumber l_quantity l_extendedprice l_discount l_tax l_returnflag l_linestatus l_shipDATE l_commitDATE l_receiptDATE l_shipinstruct l_shipmode l_comment
-dbt3_s001 lineitem i_l_shipdate 1 2.6496 1 68 9 2 36 34850.16 0.09 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-dbt3_s001 lineitem i_l_shipdate 2 1.0149 1 68 9 2 36 34850.16 0.09 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-dbt3_s001 lineitem i_l_shipdate 3 1.0000 1 68 9 2 36 34850.16 0.09 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL slyly bold pinto beans detect s
-connection default;
-disconnect con1;
-disconnect con2;
-set debug_sync='RESET';
-set global use_stat_tables=@save_global_use_stat_tables;
-DROP DATABASE dbt3_s001;
-use test;
-set @save_global_use_stat_tables=@@global.use_stat_tables;
-set global use_stat_tables='preferably';
-set debug_sync='RESET';
-create table t1 (a int, b int, key(a));
-insert t1 values (1,1),(2,2);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-SET debug_sync='after_open_table_ignore_flush WAIT_FOR go';
-select * from information_schema.statistics where table_schema='test';
-connect con1, localhost, root;
-connection con1;
-select * from t1;
-a b
-1 1
-2 2
-SET DEBUG_SYNC= "now SIGNAL go";
-connection default;
-TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT
-def test t1 1 test a 1 a A 2 NULL NULL YES BTREE
-connection default;
-disconnect con1;
-set debug_sync='RESET';
-drop table t1;
-set global use_stat_tables=@save_global_use_stat_tables;
-set use_stat_tables=@save_use_stat_tables;
-set optimizer_switch=@save_optimizer_switch_for_stat_tables_test;
-SET SESSION STORAGE_ENGINE=DEFAULT;
diff --git a/mysql-test/r/stat_tables_partition.result b/mysql-test/r/stat_tables_partition.result
deleted file mode 100644
index 12ae2570272..00000000000
--- a/mysql-test/r/stat_tables_partition.result
+++ /dev/null
@@ -1,13 +0,0 @@
-#
-# Bug mdev-3866: valgrind complain from ANALYZE on a table with BIT field
-#
-SET use_stat_tables = 'preferably';
-CREATE TABLE t1 (pk int PRIMARY KEY, a bit(1), INDEX idx(a)
-) ENGINE=MyISAM PARTITION BY KEY(pk) PARTITIONS 2;
-INSERT INTO t1 VALUES (1,1),(2,0),(3,0),(4,1);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-SET use_stat_tables = DEFAULT;
-DROP TABLE t1;
diff --git a/mysql-test/r/stat_tables_rbr.result b/mysql-test/r/stat_tables_rbr.result
deleted file mode 100644
index 7ae7ade4398..00000000000
--- a/mysql-test/r/stat_tables_rbr.result
+++ /dev/null
@@ -1,34 +0,0 @@
-#
-# Bug mdev-463: assertion failure when running ANALYZE with RBR on
-#
-SET GLOBAL use_stat_tables = PREFERABLY;
-connect con1,localhost,root,,;
-CREATE TABLE t1 (i INT) ENGINE=InnoDB;
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-DROP TABLE t1;
-SET GLOBAL use_stat_tables = DEFAULT;
-disconnect con1;
-connection default;
-SET use_stat_tables = PREFERABLY;
-CREATE TABLE t1 ( a INT ) ENGINE=MyISAM PARTITION BY HASH(a) PARTITIONS 2;
-ALTER TABLE t1 ANALYZE PARTITION p1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; CREATE TABLE t1 (i INT) ENGINE=InnoDB
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; ANALYZE TABLE t1
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; CREATE TABLE t1 ( a INT ) ENGINE=MyISAM PARTITION BY HASH(a) PARTITIONS 2
-master-bin.000001 # Gtid # # GTID #-#-#
-master-bin.000001 # Query # # use `test`; ALTER TABLE t1 ANALYZE PARTITION p1
-SET use_stat_tables = DEFAULT;
-DROP TABLE t1;
diff --git a/mysql-test/r/stat_tables_repl.result b/mysql-test/r/stat_tables_repl.result
deleted file mode 100644
index 43c9fa554c9..00000000000
--- a/mysql-test/r/stat_tables_repl.result
+++ /dev/null
@@ -1,56 +0,0 @@
-include/master-slave.inc
-[connection master]
-#
-# Bug mdev-485: unexpected failure with replication of DROP/ALTER table
-# when RBR is on
-#
-CREATE TABLE t1 ( a int, b int ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (2,20), (1,20), (3,30);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-DROP TABLE t1;
-connection slave;
-connection master;
-CREATE TABLE t1 ( a int, b int, INDEX idx1(b) ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (2,20), (1,20), (3,30);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-DROP INDEX idx1 ON t1;
-connection slave;
-connection master;
-DROP TABLE t1;
-CREATE TABLE t1 ( a int, b int, INDEX idx1(b) ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (2,20), (1,20), (3,30);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-ALTER TABLE t1 DROP COLUMN b;
-connection slave;
-connection master;
-DROP TABLE t1;
-CREATE TABLE t1 ( a int, b int, INDEX idx1(b) ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (2,20), (1,20), (3,30);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-ALTER TABLE t1 RENAME to s;
-connection slave;
-connection master;
-DROP TABLE s;
-CREATE TABLE t1 ( a int, b int, INDEX idx1(b) ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (2,20), (1,20), (3,30);
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-ALTER TABLE t1 CHANGE COLUMN b c int ;
-connection slave;
-connection master;
-DROP TABLE t1;
-include/rpl_end.inc
diff --git a/mysql-test/r/statistics.result b/mysql-test/r/statistics.result
deleted file mode 100644
index ffaaf09acc8..00000000000
--- a/mysql-test/r/statistics.result
+++ /dev/null
@@ -1,1720 +0,0 @@
-drop table if exists t1,t2;
-set @save_use_stat_tables=@@use_stat_tables;
-DELETE FROM mysql.table_stats;
-DELETE FROM mysql.column_stats;
-DELETE FROM mysql.index_stats;
-set use_stat_tables='preferably';
-CREATE TABLE t1 (
-a int NOT NULL PRIMARY KEY,
-b varchar(32),
-c char(16),
-d date,
-e double,
-f bit(3),
-INDEX idx1 (b, e),
-INDEX idx2 (c, d),
-INDEX idx3 (d),
-INDEX idx4 (e, b, d)
-) ENGINE= MYISAM;
-INSERT INTO t1 VALUES
-(0, NULL, NULL, NULL, NULL, NULL),
-(7, 'xxxxxxxxxxxxxxxxxxxxxxxxxx', 'dddddddd', '1990-05-15', 0.1, b'100'),
-(17, 'vvvvvvvvvvvvv', 'aaaa', '1989-03-12', 0.01, b'101'),
-(1, 'vvvvvvvvvvvvv', NULL, '1989-03-12', 0.01, b'100'),
-(12, 'wwwwwwwwwwwwwwwwwwwwwwwwwwww', 'dddddddd', '1999-07-23', 0.112, b'001'),
-(23, 'vvvvvvvvvvvvv', 'dddddddd', '1999-07-23', 0.1, b'100'),
-(8, 'vvvvvvvvvvvvv', 'aaaa', '1999-07-23', 0.1, b'100'),
-(22, 'xxxxxxxxxxxxxxxxxxxxxxxxxx', 'aaaa', '1989-03-12', 0.112, b'001'),
-(31, 'wwwwwwwwwwwwwwwwwwwwwwwwwwww', 'aaaa', '1999-07-23', 0.01, b'001'),
-(10, NULL, 'aaaa', NULL, 0.01, b'010'),
-(5, 'wwwwwwwwwwwwwwwwwwwwwwwwwwww', 'dddddddd', '1999-07-23', 0.1, b'100'),
-(15, 'vvvvvvvvvvvvv', 'ccccccccc', '1990-05-15', 0.1, b'010'),
-(30, NULL, 'bbbbbb', NULL, NULL, b'100'),
-(38, 'zzzzzzzzzzzzzzzzzz', 'bbbbbb', NULL, NULL, NULL),
-(18, 'zzzzzzzzzzzzzzzzzz', 'ccccccccc', '1990-05-15', 0.01, b'010'),
-(9, 'yyy', 'bbbbbb', '1998-08-28', 0.01, NULL),
-(29, 'vvvvvvvvvvvvv', 'dddddddd', '1999-07-23', 0.012, b'010'),
-(3, 'yyy', 'dddddddd', '1990-05-15', 0.112, b'010'),
-(39, 'zzzzzzzzzzzzzzzzzz', 'bbbbbb', NULL, 0.01, b'100'),
-(14, 'xxxxxxxxxxxxxxxxxxxxxxxxxx', 'ccccccccc', '1990-05-15', 0.1, b'100'),
-(40, 'zzzzzzzzzzzzzzzzzz', 'bbbbbb', '1989-03-12', NULL, NULL),
-(44, NULL, 'aaaa', '1989-03-12', NULL, b'010'),
-(19, 'vvvvvvvvvvvvv', 'ccccccccc', '1990-05-15', 0.012, b'011'),
-(21, 'zzzzzzzzzzzzzzzzzz', 'dddddddd', '1989-03-12', 0.112, b'100'),
-(45, NULL, NULL, '1989-03-12', NULL, b'011'),
-(2, 'wwwwwwwwwwwwwwwwwwwwwwwwwwww', 'ccccccccc', '1990-05-15', 0.1, b'001'),
-(35, 'yyy', 'aaaa', '1990-05-15', 0.05, b'011'),
-(4, 'vvvvvvvvvvvvv', 'dddddddd', '1999-07-23', 0.01, b'101'),
-(47, NULL, 'aaaa', '1990-05-15', 0.05, b'010'),
-(42, NULL, 'ccccccccc', '1989-03-12', 0.01, b'010'),
-(32, NULL, 'bbbbbb', '1990-05-15', 0.01, b'011'),
-(49, 'wwwwwwwwwwwwwwwwwwwwwwwwwwww' , 'aaaa', '1990-05-15', NULL, NULL),
-(43, 'wwwwwwwwwwwwwwwwwwwwwwwwwwww' , 'bbbbbb', '1990-05-15', NULL, b'100'),
-(37, 'yyy', NULL, '1989-03-12', 0.05, b'011'),
-(41, 'xxxxxxxxxxxxxxxxxxxxxxxxxx', 'ccccccccc', '1990-05-15', 0.05, NULL),
-(34, 'yyy', NULL, NULL, NULL, NULL),
-(33, 'zzzzzzzzzzzzzzzzzz', 'dddddddd', '1989-03-12', 0.05, b'011'),
-(24, 'wwwwwwwwwwwwwwwwwwwwwwwwwwww', 'dddddddd', '1990-05-15', 0.01, b'101'),
-(11, 'yyy', 'ccccccccc', '1999-07-23', 0.1, NULL),
-(25, 'zzzzzzzzzzzzzzzzzz', 'bbb', '1989-03-12', 0.01, b'101');
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-SELECT * FROM mysql.table_stats;
-db_name table_name cardinality
-test t1 40
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx1 1 6.4000
-test t1 idx1 2 1.6875
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-test t1 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t1 idx4 3 1.1304
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-40
-SELECT * FROM mysql.column_stats
-WHERE db_name='test' AND table_name='t1' AND column_name='a';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-SELECT MIN(t1.a), MAX(t1.a),
-(SELECT COUNT(*) FROM t1 WHERE t1.b IS NULL) /
-(SELECT COUNT(*) FROM t1) AS "NULLS_RATIO(t1.a)",
-(SELECT COUNT(t1.a) FROM t1) /
-(SELECT COUNT(DISTINCT t1.a) FROM t1) AS "AVG_FREQUENCY(t1.a)"
-FROM t1;
-MIN(t1.a) MAX(t1.a) NULLS_RATIO(t1.a) AVG_FREQUENCY(t1.a)
-0 49 0.2000 1.0000
-SELECT * FROM mysql.column_stats
-WHERE db_name='test' AND table_name='t1' AND column_name='b';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-SELECT MIN(t1.b), MAX(t1.b),
-(SELECT COUNT(*) FROM t1 WHERE t1.b IS NULL) /
-(SELECT COUNT(*) FROM t1) AS "NULLS_RATIO(t1.b)",
-(SELECT COUNT(t1.b) FROM t1) /
-(SELECT COUNT(DISTINCT t1.b) FROM t1) AS "AVG_FREQUENCY(t1.b)"
-FROM t1;
-MIN(t1.b) MAX(t1.b) NULLS_RATIO(t1.b) AVG_FREQUENCY(t1.b)
-vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 6.4000
-SELECT * FROM mysql.column_stats
-WHERE db_name='test' AND table_name='t1' AND column_name='c';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-SELECT MIN(t1.c), MAX(t1.c),
-(SELECT COUNT(*) FROM t1 WHERE t1.c IS NULL) /
-(SELECT COUNT(*) FROM t1) AS "NULLS_RATIO(t1.c)",
-(SELECT COUNT(t1.c) FROM t1) /
-(SELECT COUNT(DISTINCT t1.c) FROM t1) AS "AVG_FREQUENCY(t1.c)"
-FROM t1;
-MIN(t1.c) MAX(t1.c) NULLS_RATIO(t1.c) AVG_FREQUENCY(t1.c)
-aaaa dddddddd 0.1250 7.0000
-SELECT * FROM mysql.column_stats
-WHERE db_name='test' AND table_name='t1' AND column_name='d';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-SELECT MIN(t1.d), MAX(t1.d),
-(SELECT COUNT(*) FROM t1 WHERE t1.d IS NULL) /
-(SELECT COUNT(*) FROM t1) AS "NULLS_RATIO(t1.d)",
-(SELECT COUNT(t1.d) FROM t1) /
-(SELECT COUNT(DISTINCT t1.d) FROM t1) AS "AVG_FREQUENCY(t1.d)"
-FROM t1;
-MIN(t1.d) MAX(t1.d) NULLS_RATIO(t1.d) AVG_FREQUENCY(t1.d)
-1989-03-12 1999-07-23 0.1500 8.5000
-SELECT * FROM mysql.column_stats
-WHERE db_name='test' AND table_name='t1' AND column_name='e';
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-SELECT MIN(t1.e), MAX(t1.e),
-(SELECT COUNT(*) FROM t1 WHERE t1.e IS NULL) /
-(SELECT COUNT(*) FROM t1) AS "NULLS_RATIO(t1.e)",
-(SELECT COUNT(t1.e) FROM t1) /
-(SELECT COUNT(DISTINCT t1.e) FROM t1) AS "AVG_FREQUENCY(t1.e)"
-FROM t1;
-MIN(t1.e) MAX(t1.e) NULLS_RATIO(t1.e) AVG_FREQUENCY(t1.e)
-0.01 0.112 0.2250 6.2000
-SELECT * FROM mysql.index_stats
-WHERE db_name='test' AND table_name='t1' AND index_name='idx1';
-db_name table_name index_name prefix_arity avg_frequency
-test t1 idx1 1 6.4000
-test t1 idx1 2 1.6875
-SELECT
-(SELECT COUNT(*) FROM t1 WHERE t1.b IS NOT NULL) /
-(SELECT COUNT(DISTINCT t1.b) FROM t1 WHERE t1.b IS NOT NULL)
-AS 'ARITY 1',
-(SELECT COUNT(*) FROM t1 WHERE t1.b IS NOT NULL AND t1.e IS NOT NULL) /
-(SELECT COUNT(DISTINCT t1.b, t1.e) FROM t1
-WHERE t1.b IS NOT NULL AND t1.e IS NOT NULL)
-AS 'ARITY 2';
-ARITY 1 ARITY 2
-6.4000 1.6875
-SELECT * FROM mysql.index_stats
-WHERE db_name='test' AND table_name='t1' AND index_name='idx2';
-db_name table_name index_name prefix_arity avg_frequency
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-SELECT
-(SELECT COUNT(*) FROM t1 WHERE t1.c IS NOT NULL) /
-(SELECT COUNT(DISTINCT t1.c) FROM t1 WHERE t1.c IS NOT NULL)
-AS 'ARITY 1',
-(SELECT COUNT(*) FROM t1 WHERE t1.c IS NOT NULL AND t1.d IS NOT NULL) /
-(SELECT COUNT(DISTINCT t1.c, t1.d) FROM t1
-WHERE t1.c IS NOT NULL AND t1.d IS NOT NULL)
-AS 'ARITY 2';
-ARITY 1 ARITY 2
-7.0000 2.3846
-SELECT * FROM mysql.index_stats
-WHERE db_name='test' AND table_name='t1' AND index_name='idx3';
-db_name table_name index_name prefix_arity avg_frequency
-test t1 idx3 1 8.5000
-SELECT
-(SELECT COUNT(*) FROM t1 WHERE t1.d IS NOT NULL) /
-(SELECT COUNT(DISTINCT t1.d) FROM t1 WHERE t1.d IS NOT NULL)
-AS 'ARITY 1';
-ARITY 1
-8.5000
-SELECT * FROM mysql.index_stats
-WHERE db_name='test' AND table_name='t1' AND index_name='idx4';
-db_name table_name index_name prefix_arity avg_frequency
-test t1 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t1 idx4 3 1.1304
-SELECT
-(SELECT COUNT(*) FROM t1 WHERE t1.e IS NOT NULL) /
-(SELECT COUNT(DISTINCT t1.e) FROM t1 WHERE t1.e IS NOT NULL)
-AS 'ARITY 1',
-(SELECT COUNT(*) FROM t1 WHERE t1.e IS NOT NULL AND t1.b IS NOT NULL) /
-(SELECT COUNT(DISTINCT t1.e, t1.b) FROM t1
-WHERE t1.e IS NOT NULL AND t1.b IS NOT NULL)
-AS 'ARITY 2',
-(SELECT COUNT(*) FROM t1
-WHERE t1.e IS NOT NULL AND t1.b IS NOT NULL AND t1.d IS NOT NULL) /
-(SELECT COUNT(DISTINCT t1.e, t1.b, t1.d) FROM t1
-WHERE t1.e IS NOT NULL AND t1.b IS NOT NULL AND t1.d IS NOT NULL)
-AS 'ARITY 3';
-ARITY 1 ARITY 2 ARITY 3
-6.2000 1.6875 1.1304
-DELETE FROM mysql.column_stats;
-set histogram_size=4;
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status Table is already up to date
-SELECT db_name, table_name, column_name,
-min_value, max_value,
-nulls_ratio, avg_frequency,
-hist_size, hist_type, HEX(histogram)
-FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_frequency hist_size hist_type HEX(histogram)
-test t1 a 0 49 0.0000 1.0000 4 SINGLE_PREC_HB 2E62A1D0
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 6.4000 4 SINGLE_PREC_HB 003FBFFF
-test t1 c aaaa dddddddd 0.1250 7.0000 4 SINGLE_PREC_HB 0055AAFF
-test t1 d 1989-03-12 1999-07-23 0.1500 8.5000 4 SINGLE_PREC_HB 001919FF
-test t1 e 0.01 0.112 0.2250 6.2000 4 SINGLE_PREC_HB 000564E1
-test t1 f 1 5 0.2000 6.4000 4 SINGLE_PREC_HB 3F7FBFBF
-DELETE FROM mysql.column_stats;
-set histogram_size=8;
-set histogram_type='DOUBLE_PREC_HB';
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status Table is already up to date
-SELECT db_name, table_name, column_name,
-min_value, max_value,
-nulls_ratio, avg_frequency,
-hist_size, hist_type, HEX(histogram)
-FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_frequency hist_size hist_type HEX(histogram)
-test t1 a 0 49 0.0000 1.0000 8 DOUBLE_PREC_HB 052F4363F4A1F9D0
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 6.4000 8 DOUBLE_PREC_HB 0000FF3FFFBFFFFF
-test t1 c aaaa dddddddd 0.1250 7.0000 8 DOUBLE_PREC_HB 00005555AAAAFFFF
-test t1 d 1989-03-12 1999-07-23 0.1500 8.5000 8 DOUBLE_PREC_HB 0000031A031AFFFF
-test t1 e 0.01 0.112 0.2250 6.2000 8 DOUBLE_PREC_HB 000005056464E1E1
-test t1 f 1 5 0.2000 6.4000 8 DOUBLE_PREC_HB FF3FFF7FFFBFFFBF
-DELETE FROM mysql.column_stats;
-set histogram_size= 0;
-set histogram_type=default;
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status Table is already up to date
-CREATE TABLE t3 (
-a int NOT NULL PRIMARY KEY,
-b varchar(32),
-c char(16),
-INDEX idx (c)
-) ENGINE=MYISAM;
-INSERT INTO t3 VALUES
-(0, NULL, NULL),
-(7, 'xxxxxxxxxxxxxxxxxxxxxxxxxx', 'dddddddd'),
-(17, 'vvvvvvvvvvvvv', 'aaaa'),
-(1, 'vvvvvvvvvvvvv', NULL),
-(12, 'wwwwwwwwwwwwwwwwwwwwwwwwwwww', 'dddddddd'),
-(23, 'vvvvvvvvvvvvv', 'dddddddd'),
-(8, 'vvvvvvvvvvvvv', 'aaaa'),
-(22, 'xxxxxxxxxxxxxxxxxxxxxxxxxx', 'aaaa'),
-(31, 'wwwwwwwwwwwwwwwwwwwwwwwwwwww', 'aaaa'),
-(10, NULL, 'aaaa'),
-(5, 'wwwwwwwwwwwwwwwwwwwwwwwwwwww', 'dddddddd'),
-(15, 'vvvvvvvvvvvvv', 'ccccccccc'),
-(30, NULL, 'bbbbbb'),
-(38, 'zzzzzzzzzzzzzzzzzz', 'bbbbbb'),
-(18, 'zzzzzzzzzzzzzzzzzz', 'ccccccccc'),
-(9, 'yyy', 'bbbbbb'),
-(29, 'vvvvvvvvvvvvv', 'dddddddd');
-ANALYZE TABLE t3;
-Table Op Msg_type Msg_text
-test.t3 analyze status Engine-independent statistics collected
-test.t3 analyze status OK
-SELECT * FROM mysql.table_stats;
-db_name table_name cardinality
-test t1 40
-test t3 17
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-test t3 a 0 38 0.0000 4.0000 1.0000 0 NULL NULL
-test t3 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.1765 18.0714 2.8000 0 NULL NULL
-test t3 c aaaa dddddddd 0.1176 6.4000 3.7500 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx1 1 6.4000
-test t1 idx1 2 1.6875
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-test t1 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t1 idx4 3 1.1304
-test t3 PRIMARY 1 1.0000
-test t3 idx 1 3.7500
-ALTER TABLE t1 RENAME TO s1;
-SELECT * FROM mysql.table_stats;
-db_name table_name cardinality
-test s1 40
-test t3 17
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test s1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test s1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test s1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test s1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test s1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test s1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-test t3 a 0 38 0.0000 4.0000 1.0000 0 NULL NULL
-test t3 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.1765 18.0714 2.8000 0 NULL NULL
-test t3 c aaaa dddddddd 0.1176 6.4000 3.7500 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test s1 PRIMARY 1 1.0000
-test s1 idx1 1 6.4000
-test s1 idx1 2 1.6875
-test s1 idx2 1 7.0000
-test s1 idx2 2 2.3846
-test s1 idx3 1 8.5000
-test s1 idx4 1 6.2000
-test s1 idx4 2 1.6875
-test s1 idx4 3 1.1304
-test t3 PRIMARY 1 1.0000
-test t3 idx 1 3.7500
-RENAME TABLE s1 TO t1;
-SELECT * FROM mysql.table_stats;
-db_name table_name cardinality
-test t1 40
-test t3 17
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-test t3 a 0 38 0.0000 4.0000 1.0000 0 NULL NULL
-test t3 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.1765 18.0714 2.8000 0 NULL NULL
-test t3 c aaaa dddddddd 0.1176 6.4000 3.7500 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx1 1 6.4000
-test t1 idx1 2 1.6875
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-test t1 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t1 idx4 3 1.1304
-test t3 PRIMARY 1 1.0000
-test t3 idx 1 3.7500
-DROP TABLE t3;
-SELECT * FROM mysql.table_stats;
-db_name table_name cardinality
-test t1 40
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx1 1 6.4000
-test t1 idx1 2 1.6875
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-test t1 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t1 idx4 3 1.1304
-CREATE TEMPORARY TABLE t0 (
-a int NOT NULL PRIMARY KEY,
-b varchar(32)
-);
-INSERT INTO t0 SELECT a,b FROM t1;
-ALTER TABLE t1 CHANGE COLUMN b x varchar(32),
-CHANGE COLUMN e y double;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `x` varchar(32) DEFAULT NULL,
- `c` char(16) DEFAULT NULL,
- `d` date DEFAULT NULL,
- `y` double DEFAULT NULL,
- `f` bit(3) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `idx1` (`x`,`y`),
- KEY `idx2` (`c`,`d`),
- KEY `idx3` (`d`),
- KEY `idx4` (`y`,`x`,`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-test t1 x vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t1 y 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-ALTER TABLE t1 CHANGE COLUMN x b varchar(32),
-CHANGE COLUMN y e double;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(32) DEFAULT NULL,
- `c` char(16) DEFAULT NULL,
- `d` date DEFAULT NULL,
- `e` double DEFAULT NULL,
- `f` bit(3) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `idx1` (`b`,`e`),
- KEY `idx2` (`c`,`d`),
- KEY `idx3` (`d`),
- KEY `idx4` (`e`,`b`,`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-ALTER TABLE t1 RENAME TO s1, CHANGE COLUMN b x varchar(32);
-SHOW CREATE TABLE s1;
-Table Create Table
-s1 CREATE TABLE `s1` (
- `a` int(11) NOT NULL,
- `x` varchar(32) DEFAULT NULL,
- `c` char(16) DEFAULT NULL,
- `d` date DEFAULT NULL,
- `e` double DEFAULT NULL,
- `f` bit(3) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `idx1` (`x`,`e`),
- KEY `idx2` (`c`,`d`),
- KEY `idx3` (`d`),
- KEY `idx4` (`e`,`x`,`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql.table_stats;
-db_name table_name cardinality
-test s1 40
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test s1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test s1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test s1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test s1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test s1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-test s1 x vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test s1 PRIMARY 1 1.0000
-test s1 idx1 1 6.4000
-test s1 idx1 2 1.6875
-test s1 idx2 1 7.0000
-test s1 idx2 2 2.3846
-test s1 idx3 1 8.5000
-test s1 idx4 1 6.2000
-test s1 idx4 2 1.6875
-test s1 idx4 3 1.1304
-ALTER TABLE s1 RENAME TO t1, CHANGE COLUMN x b varchar(32);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(32) DEFAULT NULL,
- `c` char(16) DEFAULT NULL,
- `d` date DEFAULT NULL,
- `e` double DEFAULT NULL,
- `f` bit(3) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `idx1` (`b`,`e`),
- KEY `idx2` (`c`,`d`),
- KEY `idx3` (`d`),
- KEY `idx4` (`e`,`b`,`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql.table_stats;
-db_name table_name cardinality
-test t1 40
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx1 1 6.4000
-test t1 idx1 2 1.6875
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-test t1 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t1 idx4 3 1.1304
-ALTER TABLE t1 CHANGE COLUMN b x varchar(30);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `x` varchar(30) DEFAULT NULL,
- `c` char(16) DEFAULT NULL,
- `d` date DEFAULT NULL,
- `e` double DEFAULT NULL,
- `f` bit(3) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `idx1` (`x`,`e`),
- KEY `idx2` (`c`,`d`),
- KEY `idx3` (`d`),
- KEY `idx4` (`e`,`x`,`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-ALTER TABLE t1 CHANGE COLUMN x b varchar(32);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(32) DEFAULT NULL,
- `c` char(16) DEFAULT NULL,
- `d` date DEFAULT NULL,
- `e` double DEFAULT NULL,
- `f` bit(3) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `idx1` (`b`,`e`),
- KEY `idx2` (`c`,`d`),
- KEY `idx3` (`d`),
- KEY `idx4` (`e`,`b`,`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-ANALYZE TABLE t1 PERSISTENT FOR COLUMNS(b) INDEXES(idx1, idx4);
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx1 1 6.4000
-test t1 idx1 2 1.6875
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-test t1 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t1 idx4 3 1.1304
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/save_column_stats'
- FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n'
- FROM mysql.column_stats WHERE column_name='b';
-SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/save_index_stats'
- FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n'
- FROM mysql.index_stats WHERE index_name IN ('idx1', 'idx4');
-ALTER TABLE t1 CHANGE COLUMN b x varchar(30);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `x` varchar(30) DEFAULT NULL,
- `c` char(16) DEFAULT NULL,
- `d` date DEFAULT NULL,
- `e` double DEFAULT NULL,
- `f` bit(3) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `idx1` (`x`,`e`),
- KEY `idx2` (`c`,`d`),
- KEY `idx3` (`d`),
- KEY `idx4` (`e`,`x`,`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-ALTER TABLE t1 CHANGE COLUMN x b varchar(32);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` varchar(32) DEFAULT NULL,
- `c` char(16) DEFAULT NULL,
- `d` date DEFAULT NULL,
- `e` double DEFAULT NULL,
- `f` bit(3) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `idx1` (`b`,`e`),
- KEY `idx2` (`c`,`d`),
- KEY `idx3` (`d`),
- KEY `idx4` (`e`,`b`,`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/save_column_stats'
- INTO TABLE mysql.column_stats
-FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n';
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/save_index_stats'
- INTO TABLE mysql.index_stats
-FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n';
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx1 1 6.4000
-test t1 idx1 2 1.6875
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-test t1 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t1 idx4 3 1.1304
-ALTER TABLE t1 DROP COLUMN b;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `c` char(16) DEFAULT NULL,
- `d` date DEFAULT NULL,
- `e` double DEFAULT NULL,
- `f` bit(3) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `idx1` (`e`),
- KEY `idx2` (`c`,`d`),
- KEY `idx3` (`d`),
- KEY `idx4` (`e`,`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-DROP INDEX idx2 ON t1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `c` char(16) DEFAULT NULL,
- `d` date DEFAULT NULL,
- `e` double DEFAULT NULL,
- `f` bit(3) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `idx1` (`e`),
- KEY `idx3` (`d`),
- KEY `idx4` (`e`,`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx3 1 8.5000
-DROP INDEX idx1 ON t1;
-DROP INDEX idx4 ON t1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `c` char(16) DEFAULT NULL,
- `d` date DEFAULT NULL,
- `e` double DEFAULT NULL,
- `f` bit(3) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `idx3` (`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 ADD COLUMN b varchar(32);
-CREATE INDEX idx1 ON t1(b, e);
-CREATE INDEX idx2 ON t1(c, d);
-CREATE INDEX idx4 ON t1(e, b, d);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `c` char(16) DEFAULT NULL,
- `d` date DEFAULT NULL,
- `e` double DEFAULT NULL,
- `f` bit(3) DEFAULT NULL,
- `b` varchar(32) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `idx3` (`d`),
- KEY `idx1` (`b`,`e`),
- KEY `idx2` (`c`,`d`),
- KEY `idx4` (`e`,`b`,`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx3 1 8.5000
-ANALYZE TABLE t1 PERSISTENT FOR COLUMNS(b) INDEXES(idx1, idx2, idx4);
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 b NULL NULL 1.0000 NULL NULL 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx1 1 NULL
-test t1 idx1 2 NULL
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-test t1 idx4 1 6.2000
-test t1 idx4 2 NULL
-test t1 idx4 3 NULL
-UPDATE t1 SET b=(SELECT b FROM t0 WHERE t0.a= t1.a);
-ANALYZE TABLE t1 PERSISTENT FOR COLUMNS(b) INDEXES(idx1, idx2, idx4);
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx1 1 6.4000
-test t1 idx1 2 1.6875
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-test t1 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t1 idx4 3 1.1304
-ALTER TABLE t1 DROP COLUMN b,
-DROP INDEX idx1, DROP INDEX idx2, DROP INDEX idx4;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `c` char(16) DEFAULT NULL,
- `d` date DEFAULT NULL,
- `e` double DEFAULT NULL,
- `f` bit(3) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `idx3` (`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx3 1 8.5000
-ALTER TABLE t1 ADD COLUMN b varchar(32);
-ALTER TABLE t1
-ADD INDEX idx1 (b, e), ADD INDEX idx2 (c, d), ADD INDEX idx4 (e, b, d);
-UPDATE t1 SET b=(SELECT b FROM t0 WHERE t0.a= t1.a);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `c` char(16) DEFAULT NULL,
- `d` date DEFAULT NULL,
- `e` double DEFAULT NULL,
- `f` bit(3) DEFAULT NULL,
- `b` varchar(32) DEFAULT NULL,
- PRIMARY KEY (`a`),
- KEY `idx3` (`d`),
- KEY `idx1` (`b`,`e`),
- KEY `idx2` (`c`,`d`),
- KEY `idx4` (`e`,`b`,`d`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx3 1 8.5000
-ANALYZE TABLE t1 PERSISTENT FOR COLUMNS(b) INDEXES(idx1, idx2, idx4);
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx1 1 6.4000
-test t1 idx1 2 1.6875
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-test t1 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t1 idx4 3 1.1304
-DELETE FROM mysql.table_stats;
-DELETE FROM mysql.column_stats;
-DELETE FROM mysql.index_stats;
-ANALYZE TABLE t1 PERSISTENT FOR COLUMNS() INDEXES();
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status Table is already up to date
-SELECT * FROM mysql.table_stats;
-db_name table_name cardinality
-test t1 40
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-ANALYZE TABLE t1 PERSISTENT FOR COLUMNS(c,e,b) INDEXES(idx2,idx4);
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status Table is already up to date
-SELECT * FROM mysql.table_stats;
-db_name table_name cardinality
-test t1 40
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t1 idx4 3 1.1304
-DELETE FROM mysql.index_stats WHERE table_name='t1' AND index_name='primary';
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t1 idx4 3 1.1304
-ANALYZE TABLE t1 PERSISTENT FOR COLUMNS() INDEXES(primary);
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status Table is already up to date
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t1 idx4 3 1.1304
-DELETE FROM mysql.table_stats;
-DELETE FROM mysql.column_stats;
-DELETE FROM mysql.index_stats;
-ANALYZE TABLE t1 PERSISTENT FOR COLUMNS ALL INDEXES ALL;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status Table is already up to date
-SELECT * FROM mysql.table_stats;
-db_name table_name cardinality
-test t1 40
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx1 1 6.4000
-test t1 idx1 2 1.6875
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-test t1 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t1 idx4 3 1.1304
-CREATE TABLE t2 LIKE t1;
-ALTER TABLE t2 ENGINE=InnoDB;
-INSERT INTO t2 SELECT * FROM t1;
-set optimizer_switch='extended_keys=off';
-ANALYZE TABLE t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-SELECT * FROM mysql.table_stats;
-db_name table_name cardinality
-test t1 40
-test t2 40
-SELECT * FROM mysql.column_stats ORDER BY column_name, table_name;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t2 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t2 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t2 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t2 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t2 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-test t2 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats ORDER BY index_name, prefix_arity, table_name;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t2 PRIMARY 1 1.0000
-test t1 idx1 1 6.4000
-test t2 idx1 1 6.4000
-test t1 idx1 2 1.6875
-test t2 idx1 2 1.6875
-test t1 idx2 1 7.0000
-test t2 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t2 idx2 2 2.3846
-test t1 idx3 1 8.5000
-test t2 idx3 1 8.5000
-test t1 idx4 1 6.2000
-test t2 idx4 1 6.2000
-test t1 idx4 2 1.6875
-test t2 idx4 2 1.6875
-test t1 idx4 3 1.1304
-test t2 idx4 3 1.1304
-DELETE FROM mysql.table_stats;
-DELETE FROM mysql.column_stats;
-DELETE FROM mysql.index_stats;
-set optimizer_switch='extended_keys=on';
-ANALYZE TABLE t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-SELECT * FROM mysql.table_stats;
-db_name table_name cardinality
-test t2 40
-SELECT * FROM mysql.column_stats ORDER BY column_name;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t2 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t2 b vvvvvvvvvvvvv zzzzzzzzzzzzzzzzzz 0.2000 17.1250 6.4000 0 NULL NULL
-test t2 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t2 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t2 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t2 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats ORDER BY index_name, prefix_arity, table_name;
-db_name table_name index_name prefix_arity avg_frequency
-test t2 PRIMARY 1 1.0000
-test t2 idx1 1 6.4000
-test t2 idx1 2 1.6875
-test t2 idx1 3 1.0000
-test t2 idx2 1 7.0000
-test t2 idx2 2 2.3846
-test t2 idx2 3 1.0000
-test t2 idx3 1 8.5000
-test t2 idx3 2 1.0000
-test t2 idx4 1 6.2000
-test t2 idx4 2 1.6875
-test t2 idx4 3 1.1304
-test t2 idx4 4 1.0000
-ALTER TABLE t2 DROP PRIMARY KEY, DROP INDEX idx1;
-SELECT * FROM mysql.index_stats ORDER BY index_name, prefix_arity, table_name;
-db_name table_name index_name prefix_arity avg_frequency
-test t2 idx2 1 7.0000
-test t2 idx2 2 2.3846
-test t2 idx3 1 8.5000
-test t2 idx4 1 6.2000
-test t2 idx4 2 1.6875
-test t2 idx4 3 1.1304
-UPDATE t2 SET b=0 WHERE b IS NULL;
-ALTER TABLE t2 ADD PRIMARY KEY (a,b);
-SELECT * FROM mysql.index_stats ORDER BY index_name, prefix_arity, table_name;
-db_name table_name index_name prefix_arity avg_frequency
-test t2 idx2 1 7.0000
-test t2 idx2 2 2.3846
-test t2 idx3 1 8.5000
-test t2 idx4 1 6.2000
-test t2 idx4 2 1.6875
-test t2 idx4 3 1.1304
-ANALYZE TABLE t2 PERSISTENT FOR COLUMNS() INDEXES ALL;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-SELECT * FROM mysql.index_stats ORDER BY index_name, prefix_arity, table_name;
-db_name table_name index_name prefix_arity avg_frequency
-test t2 PRIMARY 1 1.0000
-test t2 PRIMARY 2 1.0000
-test t2 idx2 1 7.0000
-test t2 idx2 2 2.3846
-test t2 idx2 3 1.0000
-test t2 idx2 4 1.0000
-test t2 idx3 1 8.5000
-test t2 idx3 2 1.0000
-test t2 idx3 3 1.0000
-test t2 idx4 1 6.2000
-test t2 idx4 2 1.7222
-test t2 idx4 3 1.1154
-test t2 idx4 4 1.0000
-ALTER TABLE t2 CHANGE COLUMN b b varchar(30);
-SELECT * FROM mysql.index_stats ORDER BY index_name, prefix_arity, table_name;
-db_name table_name index_name prefix_arity avg_frequency
-test t2 idx2 1 7.0000
-test t2 idx2 2 2.3846
-test t2 idx3 1 8.5000
-ANALYZE TABLE t2 PERSISTENT FOR COLUMNS ALL INDEXES ALL;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-SELECT * FROM mysql.index_stats ORDER BY index_name, prefix_arity, table_name;
-db_name table_name index_name prefix_arity avg_frequency
-test t2 PRIMARY 1 1.0000
-test t2 PRIMARY 2 1.0000
-test t2 idx2 1 7.0000
-test t2 idx2 2 2.3846
-test t2 idx2 3 1.0000
-test t2 idx2 4 1.0000
-test t2 idx3 1 8.5000
-test t2 idx3 2 1.0000
-test t2 idx3 3 1.0000
-test t2 idx4 1 6.2000
-test t2 idx4 2 1.7222
-test t2 idx4 3 1.1154
-test t2 idx4 4 1.0000
-ALTER TABLE t2 CHANGE COLUMN b b varchar(32);
-SELECT * FROM mysql.index_stats ORDER BY index_name, prefix_arity, table_name;
-db_name table_name index_name prefix_arity avg_frequency
-test t2 PRIMARY 1 1.0000
-test t2 PRIMARY 2 1.0000
-test t2 idx2 1 7.0000
-test t2 idx2 2 2.3846
-test t2 idx2 3 1.0000
-test t2 idx2 4 1.0000
-test t2 idx3 1 8.5000
-test t2 idx3 2 1.0000
-test t2 idx3 3 1.0000
-test t2 idx4 1 6.2000
-test t2 idx4 2 1.7222
-test t2 idx4 3 1.1154
-test t2 idx4 4 1.0000
-ANALYZE TABLE t2 PERSISTENT FOR COLUMNS ALL INDEXES ALL;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-SELECT * FROM mysql.index_stats ORDER BY index_name, prefix_arity, table_name;
-db_name table_name index_name prefix_arity avg_frequency
-test t2 PRIMARY 1 1.0000
-test t2 PRIMARY 2 1.0000
-test t2 idx2 1 7.0000
-test t2 idx2 2 2.3846
-test t2 idx2 3 1.0000
-test t2 idx2 4 1.0000
-test t2 idx3 1 8.5000
-test t2 idx3 2 1.0000
-test t2 idx3 3 1.0000
-test t2 idx4 1 6.2000
-test t2 idx4 2 1.7222
-test t2 idx4 3 1.1154
-test t2 idx4 4 1.0000
-ALTER TABLE t2 DROP COLUMN b, DROP PRIMARY KEY, ADD PRIMARY KEY(a);
-SELECT * FROM mysql.index_stats ORDER BY index_name, prefix_arity, table_name;
-db_name table_name index_name prefix_arity avg_frequency
-test t2 idx2 1 7.0000
-test t2 idx2 2 2.3846
-test t2 idx3 1 8.5000
-ANALYZE TABLE t2 PERSISTENT FOR COLUMNS() INDEXES ALL;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-SELECT * FROM mysql.index_stats ORDER BY index_name, prefix_arity, table_name;
-db_name table_name index_name prefix_arity avg_frequency
-test t2 PRIMARY 1 1.0000
-test t2 idx2 1 7.0000
-test t2 idx2 2 2.3846
-test t2 idx2 3 1.0000
-test t2 idx3 1 8.5000
-test t2 idx3 2 1.0000
-test t2 idx4 1 6.2000
-test t2 idx4 2 2.2308
-test t2 idx4 3 1.0000
-set optimizer_switch='extended_keys=off';
-ALTER TABLE t1
-DROP INDEX idx1,
-DROP INDEX idx4;
-ALTER TABLE t1
-MODIFY COLUMN b text,
-ADD INDEX idx1 (b(4), e),
-ADD INDEX idx4 (e, b(4), d);
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t2 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t2 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t2 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t2 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t2 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t2 PRIMARY 1 1.0000
-test t2 idx2 1 7.0000
-test t2 idx2 2 2.3846
-test t2 idx2 3 1.0000
-test t2 idx3 1 8.5000
-test t2 idx3 2 1.0000
-test t2 idx4 1 6.2000
-test t2 idx4 2 2.2308
-test t2 idx4 3 1.0000
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze Warning Engine-independent statistics are not collected for column 'b'
-test.t1 analyze status OK
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-test t2 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t2 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t2 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t2 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t2 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx1 1 NULL
-test t1 idx1 2 NULL
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-test t1 idx4 1 6.2000
-test t1 idx4 2 NULL
-test t1 idx4 3 NULL
-test t2 PRIMARY 1 1.0000
-test t2 idx2 1 7.0000
-test t2 idx2 2 2.3846
-test t2 idx2 3 1.0000
-test t2 idx3 1 8.5000
-test t2 idx3 2 1.0000
-test t2 idx4 1 6.2000
-test t2 idx4 2 2.2308
-test t2 idx4 3 1.0000
-DELETE FROM mysql.table_stats;
-DELETE FROM mysql.column_stats;
-DELETE FROM mysql.index_stats;
-ANALYZE TABLE mysql.column_stats PERSISTENT FOR ALL;
-Table Op Msg_type Msg_text
-mysql.column_stats analyze error Invalid argument
-ANALYZE TABLE mysql.column_stats;
-Table Op Msg_type Msg_text
-mysql.column_stats analyze status OK
-SELECT * FROM mysql.table_stats;
-db_name table_name cardinality
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-set use_stat_tables='never';
-ANALYZE TABLE t1 PERSISTENT FOR ALL;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze Warning Engine-independent statistics are not collected for column 'b'
-test.t1 analyze status Table is already up to date
-SELECT * FROM mysql.table_stats;
-db_name table_name cardinality
-test t1 40
-SELECT * FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_length avg_frequency hist_size hist_type histogram
-test t1 a 0 49 0.0000 4.0000 1.0000 0 NULL NULL
-test t1 c aaaa dddddddd 0.1250 6.6571 7.0000 0 NULL NULL
-test t1 d 1989-03-12 1999-07-23 0.1500 3.0000 8.5000 0 NULL NULL
-test t1 e 0.01 0.112 0.2250 8.0000 6.2000 0 NULL NULL
-test t1 f 1 5 0.2000 1.0000 6.4000 0 NULL NULL
-SELECT * FROM mysql.index_stats;
-db_name table_name index_name prefix_arity avg_frequency
-test t1 PRIMARY 1 1.0000
-test t1 idx1 1 NULL
-test t1 idx1 2 NULL
-test t1 idx2 1 7.0000
-test t1 idx2 2 2.3846
-test t1 idx3 1 8.5000
-test t1 idx4 1 6.2000
-test t1 idx4 2 NULL
-test t1 idx4 3 NULL
-DELETE FROM mysql.table_stats;
-DELETE FROM mysql.column_stats;
-DELETE FROM mysql.index_stats;
-ANALYZE TABLE t1 PERSISTENT FOR COLUMNS(b) INDEXES();
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze Warning Engine-independent statistics are not collected for column 'b'
-test.t1 analyze status Table is already up to date
-ANALYZE TABLE t1 PERSISTENT FOR columns(a,b) INDEXES();
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze Warning Engine-independent statistics are not collected for column 'b'
-test.t1 analyze status Table is already up to date
-ANALYZE TABLE t1 PERSISTENT FOR columns(b) indexes(idx2);
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze Warning Engine-independent statistics are not collected for column 'b'
-test.t1 analyze status Table is already up to date
-ANALYZE TABLE t1 PERSISTENT FOR columns() indexes(idx2);
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status Table is already up to date
-DELETE FROM mysql.table_stats;
-DELETE FROM mysql.column_stats;
-DELETE FROM mysql.index_stats;
-DROP TABLE t1,t2;
-set names utf8;
-CREATE DATABASE world;
-use world;
-CREATE TABLE Country (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name)
-) CHARACTER SET utf8 COLLATE utf8_bin;
-CREATE TABLE City (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-) CHARACTER SET utf8 COLLATE utf8_bin;
-CREATE TABLE CountryLanguage (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-) CHARACTER SET utf8 COLLATE utf8_bin;
-set use_stat_tables='preferably';
-ANALYZE TABLE Country, City, CountryLanguage;
-SELECT UPPER(db_name), UPPER(table_name), cardinality
-FROM mysql.table_stats;
-UPPER(db_name) UPPER(table_name) cardinality
-WORLD CITY 4079
-WORLD COUNTRY 239
-WORLD COUNTRYLANGUAGE 984
-SELECT UPPER(db_name), UPPER(table_name),
-column_name, min_value, max_value, nulls_ratio, avg_length, avg_frequency
-FROM mysql.column_stats;
-UPPER(db_name) UPPER(table_name) column_name min_value max_value nulls_ratio avg_length avg_frequency
-WORLD CITY Country ABW ZWE 0.0000 3.0000 17.5819
-WORLD CITY ID 1 4079 0.0000 4.0000 1.0000
-WORLD CITY Name A Coruña (La Coruña) Ürgenc 0.0000 8.6416 1.0195
-WORLD CITY Population 42 10500000 0.0000 4.0000 1.0467
-WORLD COUNTRY Capital 1 4074 0.0293 4.0000 1.0000
-WORLD COUNTRY Code ABW ZWE 0.0000 3.0000 1.0000
-WORLD COUNTRY Name Afghanistan Zimbabwe 0.0000 10.1088 1.0000
-WORLD COUNTRY Population 0 1277558000 0.0000 4.0000 1.0575
-WORLD COUNTRY SurfaceArea 0.40 17075400.00 0.0000 4.0000 1.0042
-WORLD COUNTRYLANGUAGE Country ABW ZWE 0.0000 3.0000 4.2232
-WORLD COUNTRYLANGUAGE Language Abhyasi [South]Mande 0.0000 7.1778 2.1532
-WORLD COUNTRYLANGUAGE Percentage 0.0 99.9 0.0000 4.0000 2.7640
-SELECT UPPER(db_name), UPPER(table_name),
-index_name, prefix_arity, avg_frequency
-FROM mysql.index_stats;
-UPPER(db_name) UPPER(table_name) index_name prefix_arity avg_frequency
-WORLD CITY Country 1 17.5819
-WORLD CITY PRIMARY 1 1.0000
-WORLD CITY Population 1 1.0467
-WORLD COUNTRY Name 1 1.0000
-WORLD COUNTRY PRIMARY 1 1.0000
-WORLD COUNTRYLANGUAGE PRIMARY 1 4.2232
-WORLD COUNTRYLANGUAGE PRIMARY 2 1.0000
-WORLD COUNTRYLANGUAGE Percentage 1 2.7640
-use test;
-set use_stat_tables='never';
-CREATE DATABASE world_innodb;
-use world_innodb;
-CREATE TABLE Country (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name)
-) CHARACTER SET utf8 COLLATE utf8_bin;
-CREATE TABLE City (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-) CHARACTER SET utf8 COLLATE utf8_bin;
-CREATE TABLE CountryLanguage (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-) CHARACTER SET utf8 COLLATE utf8_bin;
-ALTER TABLE Country ENGINE=InnoDB;
-ALTER TABLE City ENGINE=InnoDB;
-ALTER TABLE CountryLanguage ENGINE=InnoDB;
-set use_stat_tables='preferably';
-ANALYZE TABLE Country, City, CountryLanguage;
-SELECT UPPER(db_name), UPPER(table_name), cardinality
-FROM mysql.table_stats;
-UPPER(db_name) UPPER(table_name) cardinality
-WORLD CITY 4079
-WORLD COUNTRY 239
-WORLD COUNTRYLANGUAGE 984
-WORLD_INNODB CITY 4079
-WORLD_INNODB COUNTRY 239
-WORLD_INNODB COUNTRYLANGUAGE 984
-SELECT UPPER(db_name), UPPER(table_name),
-column_name, min_value, max_value, nulls_ratio, avg_length, avg_frequency
-FROM mysql.column_stats;
-UPPER(db_name) UPPER(table_name) column_name min_value max_value nulls_ratio avg_length avg_frequency
-WORLD CITY Country ABW ZWE 0.0000 3.0000 17.5819
-WORLD CITY ID 1 4079 0.0000 4.0000 1.0000
-WORLD CITY Name A Coruña (La Coruña) Ürgenc 0.0000 8.6416 1.0195
-WORLD CITY Population 42 10500000 0.0000 4.0000 1.0467
-WORLD COUNTRY Capital 1 4074 0.0293 4.0000 1.0000
-WORLD COUNTRY Code ABW ZWE 0.0000 3.0000 1.0000
-WORLD COUNTRY Name Afghanistan Zimbabwe 0.0000 10.1088 1.0000
-WORLD COUNTRY Population 0 1277558000 0.0000 4.0000 1.0575
-WORLD COUNTRY SurfaceArea 0.40 17075400.00 0.0000 4.0000 1.0042
-WORLD COUNTRYLANGUAGE Country ABW ZWE 0.0000 3.0000 4.2232
-WORLD COUNTRYLANGUAGE Language Abhyasi [South]Mande 0.0000 7.1778 2.1532
-WORLD COUNTRYLANGUAGE Percentage 0.0 99.9 0.0000 4.0000 2.7640
-WORLD_INNODB CITY Country ABW ZWE 0.0000 3.0000 17.5819
-WORLD_INNODB CITY ID 1 4079 0.0000 4.0000 1.0000
-WORLD_INNODB CITY Name A Coruña (La Coruña) Ürgenc 0.0000 8.6416 1.0195
-WORLD_INNODB CITY Population 42 10500000 0.0000 4.0000 1.0467
-WORLD_INNODB COUNTRY Capital 1 4074 0.0293 4.0000 1.0000
-WORLD_INNODB COUNTRY Code ABW ZWE 0.0000 3.0000 1.0000
-WORLD_INNODB COUNTRY Name Afghanistan Zimbabwe 0.0000 10.1088 1.0000
-WORLD_INNODB COUNTRY Population 0 1277558000 0.0000 4.0000 1.0575
-WORLD_INNODB COUNTRY SurfaceArea 0.40 17075400.00 0.0000 4.0000 1.0042
-WORLD_INNODB COUNTRYLANGUAGE Country ABW ZWE 0.0000 3.0000 4.2232
-WORLD_INNODB COUNTRYLANGUAGE Language Abhyasi [South]Mande 0.0000 7.1778 2.1532
-WORLD_INNODB COUNTRYLANGUAGE Percentage 0.0 99.9 0.0000 4.0000 2.7640
-SELECT UPPER(db_name), UPPER(table_name),
-index_name, prefix_arity, avg_frequency
-FROM mysql.index_stats;
-UPPER(db_name) UPPER(table_name) index_name prefix_arity avg_frequency
-WORLD CITY Country 1 17.5819
-WORLD CITY PRIMARY 1 1.0000
-WORLD CITY Population 1 1.0467
-WORLD COUNTRY Name 1 1.0000
-WORLD COUNTRY PRIMARY 1 1.0000
-WORLD COUNTRYLANGUAGE PRIMARY 1 4.2232
-WORLD COUNTRYLANGUAGE PRIMARY 2 1.0000
-WORLD COUNTRYLANGUAGE Percentage 1 2.7640
-WORLD_INNODB CITY Country 1 17.5819
-WORLD_INNODB CITY PRIMARY 1 1.0000
-WORLD_INNODB CITY Population 1 1.0467
-WORLD_INNODB COUNTRY Name 1 1.0000
-WORLD_INNODB COUNTRY PRIMARY 1 1.0000
-WORLD_INNODB COUNTRYLANGUAGE PRIMARY 1 4.2232
-WORLD_INNODB COUNTRYLANGUAGE PRIMARY 2 1.0000
-WORLD_INNODB COUNTRYLANGUAGE Percentage 1 2.7640
-use world;
-set use_stat_tables='preferably';
-set histogram_size=100;
-set histogram_type='SINGLE_PREC_HB';
-ANALYZE TABLE CountryLanguage;
-set histogram_size=254;
-set histogram_type='DOUBLE_PREC_HB';
-ANALYZE TABLE City;
-FLUSH TABLES;
-select UPPER(db_name),UPPER(table_name),UPPER(column_name),min_value,max_value,nulls_ratio,avg_length,avg_frequency,hist_size,hist_type,hex(histogram),decode_histogram(hist_type,histogram) from mysql.column_stats where UPPER(db_name)='WORLD' and UPPER(table_name)='COUNTRYLANGUAGE' and UPPER(column_name) = 'PERCENTAGE';;
-UPPER(db_name) WORLD
-UPPER(table_name) COUNTRYLANGUAGE
-UPPER(column_name) PERCENTAGE
-min_value 0.0
-max_value 99.9
-nulls_ratio 0.0000
-avg_length 4.0000
-avg_frequency 2.7640
-hist_size 100
-hist_type SINGLE_PREC_HB
-hex(histogram) 0000000000000000000000000101010101010101010202020303030304040404050505050606070707080809090A0A0B0C0D0D0E0E0F10111213131415161718191B1C1E202224292A2E33373B4850575F6A76818C9AA7B9C4CFDADFE5EBF0F4F8FAFCFF
-decode_histogram(hist_type,histogram) 0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.004,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.004,0.000,0.000,0.004,0.000,0.000,0.000,0.004,0.000,0.000,0.000,0.004,0.000,0.000,0.000,0.004,0.000,0.004,0.000,0.000,0.004,0.000,0.004,0.000,0.004,0.000,0.004,0.004,0.004,0.000,0.004,0.000,0.004,0.004,0.004,0.004,0.004,0.000,0.004,0.004,0.004,0.004,0.004,0.004,0.008,0.004,0.008,0.008,0.008,0.008,0.020,0.004,0.016,0.020,0.016,0.016,0.051,0.031,0.027,0.031,0.043,0.047,0.043,0.043,0.055,0.051,0.071,0.043,0.043,0.043,0.020,0.024,0.024,0.020,0.016,0.016,0.008,0.008,0.012,0.000
-select UPPER(db_name),UPPER(table_name),UPPER(column_name),min_value,max_value,nulls_ratio,avg_length,avg_frequency,hist_size,hist_type,hex(histogram),decode_histogram(hist_type,histogram) from mysql.column_stats where UPPER(db_name)='WORLD' and UPPER(table_name)='CITY' and UPPER(column_name) = 'POPULATION';;
-UPPER(db_name) WORLD
-UPPER(table_name) CITY
-UPPER(column_name) POPULATION
-min_value 42
-max_value 10500000
-nulls_ratio 0.0000
-avg_length 4.0000
-avg_frequency 1.0467
-hist_size 254
-hist_type DOUBLE_PREC_HB
-hex(histogram) 1F00A1002B023002350238023F02430249024E02520258025D02630268026E02720276027B02800285028C02920297029D02A102A802AC02B402BC02C402CC02D302DA02E302EA02F102F802010305030C03120319031F03290333033D0343034F03590363036D037803840390039A03A603B303C303D103E003F203020412042404330440045304600472047F049104A204B804C804DE04F2040A0526053F0558056F058E05B305D905F4051306380667068406AB06DA06020731075C079407C507F8072E085E08A508DF0824096909CC092E0A760AD50A400BA90B150CAD0C310D240E130F0E103B11B9126B14F0166B192F1CB71FFF240630483FC567
-decode_histogram(hist_type,histogram) 0.00047,0.00198,0.00601,0.00008,0.00008,0.00005,0.00011,0.00006,0.00009,0.00008,0.00006,0.00009,0.00008,0.00009,0.00008,0.00009,0.00006,0.00006,0.00008,0.00008,0.00008,0.00011,0.00009,0.00008,0.00009,0.00006,0.00011,0.00006,0.00012,0.00012,0.00012,0.00012,0.00011,0.00011,0.00014,0.00011,0.00011,0.00011,0.00014,0.00006,0.00011,0.00009,0.00011,0.00009,0.00015,0.00015,0.00015,0.00009,0.00018,0.00015,0.00015,0.00015,0.00017,0.00018,0.00018,0.00015,0.00018,0.00020,0.00024,0.00021,0.00023,0.00027,0.00024,0.00024,0.00027,0.00023,0.00020,0.00029,0.00020,0.00027,0.00020,0.00027,0.00026,0.00034,0.00024,0.00034,0.00031,0.00037,0.00043,0.00038,0.00038,0.00035,0.00047,0.00056,0.00058,0.00041,0.00047,0.00056,0.00072,0.00044,0.00060,0.00072,0.00061,0.00072,0.00066,0.00085,0.00075,0.00078,0.00082,0.00073,0.00108,0.00089,0.00105,0.00105,0.00151,0.00150,0.00110,0.00145,0.00163,0.00160,0.00165,0.00232,0.00201,0.00371,0.00365,0.00383,0.00459,0.00583,0.00662,0.00984,0.00969,0.01080,0.01379,0.02063,0.04308,0.05960,0.15816,0.59464
-set histogram_type=default;
-set histogram_size=default;
-use test;
-DROP DATABASE world;
-SELECT UPPER(db_name), UPPER(table_name), cardinality
-FROM mysql.table_stats;
-UPPER(db_name) UPPER(table_name) cardinality
-WORLD_INNODB CITY 4079
-WORLD_INNODB COUNTRY 239
-WORLD_INNODB COUNTRYLANGUAGE 984
-SELECT UPPER(db_name), UPPER(table_name),
-column_name, min_value, max_value, nulls_ratio, avg_length, avg_frequency
-FROM mysql.column_stats;
-UPPER(db_name) UPPER(table_name) column_name min_value max_value nulls_ratio avg_length avg_frequency
-WORLD_INNODB CITY Country ABW ZWE 0.0000 3.0000 17.5819
-WORLD_INNODB CITY ID 1 4079 0.0000 4.0000 1.0000
-WORLD_INNODB CITY Name A Coruña (La Coruña) Ürgenc 0.0000 8.6416 1.0195
-WORLD_INNODB CITY Population 42 10500000 0.0000 4.0000 1.0467
-WORLD_INNODB COUNTRY Capital 1 4074 0.0293 4.0000 1.0000
-WORLD_INNODB COUNTRY Code ABW ZWE 0.0000 3.0000 1.0000
-WORLD_INNODB COUNTRY Name Afghanistan Zimbabwe 0.0000 10.1088 1.0000
-WORLD_INNODB COUNTRY Population 0 1277558000 0.0000 4.0000 1.0575
-WORLD_INNODB COUNTRY SurfaceArea 0.40 17075400.00 0.0000 4.0000 1.0042
-WORLD_INNODB COUNTRYLANGUAGE Country ABW ZWE 0.0000 3.0000 4.2232
-WORLD_INNODB COUNTRYLANGUAGE Language Abhyasi [South]Mande 0.0000 7.1778 2.1532
-WORLD_INNODB COUNTRYLANGUAGE Percentage 0.0 99.9 0.0000 4.0000 2.7640
-SELECT UPPER(db_name), UPPER(table_name),
-index_name, prefix_arity, avg_frequency
-FROM mysql.index_stats;
-UPPER(db_name) UPPER(table_name) index_name prefix_arity avg_frequency
-WORLD_INNODB CITY Country 1 17.5819
-WORLD_INNODB CITY PRIMARY 1 1.0000
-WORLD_INNODB CITY Population 1 1.0467
-WORLD_INNODB COUNTRY Name 1 1.0000
-WORLD_INNODB COUNTRY PRIMARY 1 1.0000
-WORLD_INNODB COUNTRYLANGUAGE PRIMARY 1 4.2232
-WORLD_INNODB COUNTRYLANGUAGE PRIMARY 2 1.0000
-WORLD_INNODB COUNTRYLANGUAGE Percentage 1 2.7640
-DROP DATABASE world_innodb;
-SELECT UPPER(db_name), UPPER(table_name), cardinality
-FROM mysql.table_stats;
-UPPER(db_name) UPPER(table_name) cardinality
-SELECT UPPER(db_name), UPPER(table_name),
-column_name, min_value, max_value, nulls_ratio, avg_length, avg_frequency
-FROM mysql.column_stats;
-UPPER(db_name) UPPER(table_name) column_name min_value max_value nulls_ratio avg_length avg_frequency
-SELECT UPPER(db_name), UPPER(table_name),
-index_name, prefix_arity, avg_frequency
-FROM mysql.index_stats;
-UPPER(db_name) UPPER(table_name) index_name prefix_arity avg_frequency
-DELETE FROM mysql.table_stats;
-DELETE FROM mysql.column_stats;
-DELETE FROM mysql.index_stats;
-#
-# Bug mdev-4357: empty string as a value of the HIST_SIZE column
-# from mysql.column_stats
-#
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-set histogram_size=10;
-analyze table t1 persistent for all;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-select db_name, table_name, column_name,
-min_value, max_value,
-nulls_ratio, avg_frequency,
-hist_size, hist_type, HEX(histogram)
-FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_frequency hist_size hist_type HEX(histogram)
-test t1 a 1 3 0.0000 1.0000 10 SINGLE_PREC_HB 0000007F7F7F7FFFFFFF
-set histogram_size=default;
-drop table t1;
-#
-# Bug mdev-4359: wrong setting of the HIST_SIZE column
-# (see also mdev-4357) from mysql.column_stats
-#
-create table t1 ( a int);
-insert into t1 values (1),(2),(3),(4),(5);
-set histogram_size=10;
-set histogram_type='double_prec_hb';
-show variables like 'histogram%';
-Variable_name Value
-histogram_size 10
-histogram_type DOUBLE_PREC_HB
-analyze table t1 persistent for all;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-select db_name, table_name, column_name,
-min_value, max_value,
-nulls_ratio, avg_frequency,
-hist_size, hist_type, HEX(histogram)
-FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_frequency hist_size hist_type HEX(histogram)
-test t1 a 1 5 0.0000 1.0000 10 DOUBLE_PREC_HB 0000FF3FFF7FFFBFFFFF
-set histogram_size=default;
-set histogram_type=default;
-drop table t1;
-#
-# Bug mdev-4369: histogram for a column with many distinct values
-#
-CREATE TABLE t1 (id int);
-CREATE TABLE t2 (id int);
-INSERT INTO t1 (id) VALUES (1), (1), (1),(1);
-INSERT INTO t1 (id) SELECT id FROM t1;
-INSERT INTO t1 SELECT id+1 FROM t1;
-INSERT INTO t1 SELECT id+2 FROM t1;
-INSERT INTO t1 SELECT id+4 FROM t1;
-INSERT INTO t1 SELECT id+8 FROM t1;
-INSERT INTO t1 SELECT id+16 FROM t1;
-INSERT INTO t1 SELECT id+32 FROM t1;
-INSERT INTO t1 SELECT id+64 FROM t1;
-INSERT INTO t1 SELECT id+128 FROM t1;
-INSERT INTO t1 SELECT id+256 FROM t1;
-INSERT INTO t1 SELECT id+512 FROM t1;
-INSERT INTO t2 SELECT id FROM t1 ORDER BY id*rand();
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-8192
-SELECT COUNT(DISTINCT id) FROM t2;
-COUNT(DISTINCT id)
-1024
-set @@tmp_table_size=1024*16;
-set @@max_heap_table_size=1024*16;
-set histogram_size=63;
-analyze table t2 persistent for all;
-Table Op Msg_type Msg_text
-test.t2 analyze status Engine-independent statistics collected
-test.t2 analyze status OK
-select db_name, table_name, column_name,
-min_value, max_value,
-nulls_ratio, avg_frequency,
-hist_size, hist_type, HEX(histogram)
-FROM mysql.column_stats;
-db_name table_name column_name min_value max_value nulls_ratio avg_frequency hist_size hist_type HEX(histogram)
-test t2 id 1 1024 0.0000 8.0000 63 SINGLE_PREC_HB 03070B0F13171B1F23272B2F33373B3F43474B4F53575B5F63676B6F73777B7F83878B8F93979B9FA3A7ABAFB3B7BBBFC3C7CBCFD3D7DBDFE3E7EBEFF3F7FB
-set histogram_size=default;
-drop table t1, t2;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Bug MDEV-7383: min/max value for a column not utf8 compatible
-#
-create table t1 (a varchar(100)) engine=MyISAM;
-insert into t1 values(unhex('D879626AF872675F73E662F8'));
-analyze table t1 persistent for all;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze status OK
-show warnings;
-Level Code Message
-select db_name, table_name, column_name,
-HEX(min_value), HEX(max_value),
-nulls_ratio, avg_frequency,
-hist_size, hist_type, HEX(histogram)
-FROM mysql.column_stats;
-db_name table_name column_name HEX(min_value) HEX(max_value) nulls_ratio avg_frequency hist_size hist_type HEX(histogram)
-test t1 a D879626AF872675F73E662F8 D879626AF872675F73E662F8 0.0000 1.0000 0 NULL NULL
-drop table t1;
-#
-# MDEV-9590: Always print "Engine-independent statistic" warnings and
-# might be filtering columns unintentionally from engines
-#
-set use_stat_tables='NEVER';
-create table t1 (test blob);
-show variables like 'use_stat_tables';
-Variable_name Value
-use_stat_tables NEVER
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-drop table t1;
-#
-# MDEV-10435 crash with bad stat tables
-#
-set use_stat_tables='preferably';
-call mtr.add_suppression("Column count of mysql.table_stats is wrong. Expected 3, found 1. The table is probably corrupted");
-rename table mysql.table_stats to test.table_stats;
-flush tables;
-create table t1 (a int);
-rename table t1 to t2, t3 to t4;
-ERROR 42S02: Table 'test.t3' doesn't exist
-drop table t1;
-rename table test.table_stats to mysql.table_stats;
-rename table mysql.table_stats to test.table_stats;
-create table mysql.table_stats (a int);
-flush tables;
-create table t1 (a int);
-rename table t1 to t2, t3 to t4;
-ERROR 42S02: Table 'test.t3' doesn't exist
-drop table t1, mysql.table_stats;
-rename table test.table_stats to mysql.table_stats;
-set use_stat_tables=@save_use_stat_tables;
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10134 Add full support for DEFAULT
-#
-CREATE TABLE t1 (a BLOB, b TEXT DEFAULT DECODE_HISTOGRAM('SINGLE_PREC_HB',a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` blob DEFAULT NULL,
- `b` text DEFAULT decode_histogram('SINGLE_PREC_HB',`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES (0x0000000000000000000000000101010101010101010202020303030304040404050505050606070707080809090A0A0B0C0D0D0E0E0F10111213131415161718191B1C1E202224292A2E33373B4850575F6A76818C9AA7B9C4CFDADFE5EBF0F4F8FAFCFF);
-SELECT b FROM t1;
-b
-0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.004,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.004,0.000,0.000,0.004,0.000,0.000,0.000,0.004,0.000,0.000,0.000,0.004,0.000,0.000,0.000,0.004,0.000,0.004,0.000,0.000,0.004,0.000,0.004,0.000,0.004,0.000,0.004,0.004,0.004,0.000,0.004,0.000,0.004,0.004,0.004,0.004,0.004,0.000,0.004,0.004,0.004,0.004,0.004,0.004,0.008,0.004,0.008,0.008,0.008,0.008,0.020,0.004,0.016,0.020,0.016,0.016,0.051,0.031,0.027,0.031,0.043,0.047,0.043,0.043,0.055,0.051,0.071,0.043,0.043,0.043,0.020,0.024,0.024,0.020,0.016,0.016,0.008,0.008,0.012,0.000
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/statistics_index_crash-7362.result b/mysql-test/r/statistics_index_crash-7362.result
deleted file mode 100644
index c213fa49afe..00000000000
--- a/mysql-test/r/statistics_index_crash-7362.result
+++ /dev/null
@@ -1,35 +0,0 @@
-CREATE TABLE t1 (a longtext, FULLTEXT KEY (`a`)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (unhex('3E0D0A4141414142334E7A6143317963324541414141424977414141674541726D'));
-ANALYZE TABLE t1 PERSISTENT FOR ALL;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze Warning Engine-independent statistics are not collected for column 'a'
-test.t1 analyze status OK
-SELECT * FROM mysql.index_stats WHERE index_name='a' AND table_name='t1';
-db_name table_name index_name prefix_arity avg_frequency
-test t1 a 1 NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a longtext, FULLTEXT KEY (`a`)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (unhex('3E0D0A4141414142334E7A6143317963324541414141424977414141674541726D'));
-ANALYZE TABLE t1 PERSISTENT FOR ALL;
-Table Op Msg_type Msg_text
-test.t1 analyze status Engine-independent statistics collected
-test.t1 analyze Warning Engine-independent statistics are not collected for column 'a'
-test.t1 analyze status OK
-SELECT * FROM mysql.index_stats WHERE index_name='a' AND table_name='t1';
-db_name table_name index_name prefix_arity avg_frequency
-test t1 a 1 NULL
-DROP TABLE t1;
-CREATE TABLE geom (g GEOMETRY NOT NULL, SPATIAL INDEX(g)) ENGINE=MyISAM;
-INSERT INTO geom VALUES
-(MultiPolygonFromText('MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))')),
-(MPolyFromText('MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))')),
-(MPolyFromWKB(AsWKB(MultiPolygon(Polygon(LineString(Point(0, 3), Point(3, 3), Point(3, 0), Point(0, 3)))))));
-ANALYZE TABLE geom PERSISTENT FOR ALL;
-Table Op Msg_type Msg_text
-test.geom analyze status Engine-independent statistics collected
-test.geom analyze status OK
-SELECT * FROM mysql.index_stats WHERE index_name='g' AND table_name='geom';
-db_name table_name index_name prefix_arity avg_frequency
-test geom g 1 NULL
-DROP TABLE geom;
diff --git a/mysql-test/r/status.result b/mysql-test/r/status.result
deleted file mode 100644
index 18cde57b295..00000000000
--- a/mysql-test/r/status.result
+++ /dev/null
@@ -1,431 +0,0 @@
-set @old_concurrent_insert= @@global.concurrent_insert;
-set @@global.concurrent_insert= 0;
-SET @old_log_output = @@global.log_output;
-SET GLOBAL LOG_OUTPUT = 'FILE';
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection default;
-flush status;
-show status like 'Table_lock%';
-Variable_name Value
-Table_locks_immediate 0
-Table_locks_waited 0
-select * from information_schema.session_status where variable_name like 'Table_lock%';
-VARIABLE_NAME VARIABLE_VALUE
-TABLE_LOCKS_IMMEDIATE 0
-TABLE_LOCKS_WAITED 0
-set sql_log_bin=0;
-set @old_general_log = @@global.general_log;
-set global general_log = 'OFF';
-drop table if exists t1;
-create table t1(n int) engine=myisam;
-insert into t1 values(1);
-select get_lock('mysqltest_lock', 100);
-get_lock('mysqltest_lock', 100)
-1
-connection con2;
-# Sending:
-update t1 set n = get_lock('mysqltest_lock', 100);
-connection con1;
-# Wait for the first UPDATE to get blocked.
-# Sending:
-update t1 set n = 3;
-connection default;
-# wait for the second UPDATE to get blocked
-select release_lock('mysqltest_lock');
-release_lock('mysqltest_lock')
-1
-connection con2;
-# Reaping first UPDATE
-select release_lock('mysqltest_lock');
-release_lock('mysqltest_lock')
-1
-connection con1;
-# Reaping second UPDATE
-show status like 'Table_locks_waited';
-Variable_name Value
-Table_locks_waited 1
-connection default;
-drop table t1;
-set global general_log = @old_general_log;
-disconnect con2;
-disconnect con1;
-select 1;
-1
-1
-show status like 'last_query_cost';
-Variable_name Value
-Last_query_cost 0.000000
-create table t1 (a int);
-insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
-insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
-insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
-insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
-insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
-select * from t1 where a=6;
-a
-6
-6
-6
-6
-6
-show status like 'last_query_cost';
-Variable_name Value
-Last_query_cost 12.084449
-show status like 'last_query_cost';
-Variable_name Value
-Last_query_cost 12.084449
-select 1;
-1
-1
-show status like 'last_query_cost';
-Variable_name Value
-Last_query_cost 0.000000
-drop table t1;
-FLUSH STATUS;
-SHOW STATUS LIKE 'max_used_connections';
-Variable_name Value
-Max_used_connections 1
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'max_used_connections';
-VARIABLE_NAME VARIABLE_VALUE
-MAX_USED_CONNECTIONS 1
-SET @save_thread_cache_size=@@thread_cache_size;
-SET GLOBAL thread_cache_size=3;
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection con1;
-disconnect con2;
-SHOW STATUS LIKE 'max_used_connections';
-Variable_name Value
-Max_used_connections 3
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'max_used_connections';
-VARIABLE_NAME VARIABLE_VALUE
-MAX_USED_CONNECTIONS 3
-FLUSH STATUS;
-SHOW STATUS LIKE 'max_used_connections';
-Variable_name Value
-Max_used_connections 2
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'max_used_connections';
-VARIABLE_NAME VARIABLE_VALUE
-MAX_USED_CONNECTIONS 2
-connect con2,localhost,root,,;
-SHOW STATUS LIKE 'max_used_connections';
-Variable_name Value
-Max_used_connections 3
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'max_used_connections';
-VARIABLE_NAME VARIABLE_VALUE
-MAX_USED_CONNECTIONS 3
-connect con3,localhost,root,,;
-SHOW STATUS LIKE 'max_used_connections';
-Variable_name Value
-Max_used_connections 4
-SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'max_used_connections';
-VARIABLE_NAME VARIABLE_VALUE
-MAX_USED_CONNECTIONS 4
-connection default;
-SET GLOBAL thread_cache_size=@save_thread_cache_size;
-disconnect con3;
-disconnect con2;
-disconnect con1;
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1), (2);
-SELECT a FROM t1 LIMIT 1;
-a
-1
-SHOW SESSION STATUS LIKE 'Last_query_cost';
-Variable_name Value
-Last_query_cost 2.402418
-EXPLAIN SELECT a FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-SHOW SESSION STATUS LIKE 'Last_query_cost';
-Variable_name Value
-Last_query_cost 2.402418
-SELECT a FROM t1 UNION SELECT a FROM t1 ORDER BY a;
-a
-1
-2
-SHOW SESSION STATUS LIKE 'Last_query_cost';
-Variable_name Value
-Last_query_cost 0.000000
-EXPLAIN SELECT a FROM t1 UNION SELECT a FROM t1 ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 UNION t1 ALL NULL NULL NULL NULL 2
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL Using filesort
-SHOW SESSION STATUS LIKE 'Last_query_cost';
-Variable_name Value
-Last_query_cost 0.000000
-SELECT a IN (SELECT a FROM t1) FROM t1 LIMIT 1;
-a IN (SELECT a FROM t1)
-1
-SHOW SESSION STATUS LIKE 'Last_query_cost';
-Variable_name Value
-Last_query_cost 0.000000
-SELECT (SELECT a FROM t1 LIMIT 1) x FROM t1 LIMIT 1;
-x
-1
-SHOW SESSION STATUS LIKE 'Last_query_cost';
-Variable_name Value
-Last_query_cost 0.000000
-SELECT * FROM t1 a, t1 b LIMIT 1;
-a a
-1 1
-SHOW SESSION STATUS LIKE 'Last_query_cost';
-Variable_name Value
-Last_query_cost 5.205836
-DROP TABLE t1;
-connect con1,localhost,root,,;
-show status like 'com_show_status';
-Variable_name Value
-Com_show_status 3
-show status like 'hand%write%';
-Variable_name Value
-Handler_tmp_write 0
-Handler_write 0
-show status like '%tmp%';
-Variable_name Value
-Created_tmp_disk_tables 0
-Created_tmp_files 0
-Created_tmp_tables 0
-Handler_tmp_delete 0
-Handler_tmp_update 0
-Handler_tmp_write 0
-Rows_tmp_read 5
-show status like 'hand%write%';
-Variable_name Value
-Handler_tmp_write 0
-Handler_write 0
-show status like '%tmp%';
-Variable_name Value
-Created_tmp_disk_tables 0
-Created_tmp_files 0
-Created_tmp_tables 0
-Handler_tmp_delete 0
-Handler_tmp_update 0
-Handler_tmp_write 0
-Rows_tmp_read 14
-show status like 'com_show_status';
-Variable_name Value
-Com_show_status 8
-rnd_diff tmp_table_diff
-30 8
-disconnect con1;
-connection default;
-flush status;
-show status like 'Com%function';
-Variable_name Value
-Com_alter_function 0
-Com_create_function 0
-Com_drop_function 0
-create function f1 (x INTEGER) returns integer
-begin
-declare ret integer;
-set ret = x * 10;
-return ret;
-end //
-drop function f1;
-show status like 'Com%function';
-Variable_name Value
-Com_alter_function 0
-Com_create_function 1
-Com_drop_function 1
-connect root, localhost, root,,test;
-connection root;
-create database db37908;
-create table db37908.t1(f1 int);
-insert into db37908.t1 values(1);
-create user mysqltest_1@localhost;
-grant usage,execute on test.* to mysqltest_1@localhost;
-create procedure proc37908() begin select 1; end |
-create function func37908() returns int sql security invoker
-return (select * from db37908.t1 limit 1)|
-connect user1,localhost,mysqltest_1,,test;
-connection user1;
-select * from db37908.t1;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 't1'
-show status where variable_name ='uptime' and 2 in (select * from db37908.t1);
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 't1'
-show procedure status where name ='proc37908' and 1 in (select f1 from db37908.t1);
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 't1'
-show function status where name ='func37908' and 1 in (select func37908());
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 't1'
-connection default;
-disconnect user1;
-disconnect root;
-drop database db37908;
-drop procedure proc37908;
-drop function func37908;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_1@localhost;
-DROP USER mysqltest_1@localhost;
-connect con1,localhost,root,,;
-connection con1;
-DROP PROCEDURE IF EXISTS p1;
-DROP FUNCTION IF EXISTS f1;
-CREATE FUNCTION f1() RETURNS INTEGER
-BEGIN
-DECLARE foo INTEGER;
-DECLARE bar INTEGER;
-SET foo=1;
-SET bar=2;
-RETURN foo;
-END $$
-CREATE PROCEDURE p1()
-BEGIN
-SELECT 1;
-END $$
-SELECT f1();
-f1()
-1
-CALL p1();
-1
-1
-SELECT 9;
-9
-9
-disconnect con1;
-connection default;
-DROP PROCEDURE p1;
-DROP FUNCTION f1;
-flush status;
-create table t1 (a int not null auto_increment primary key, g int, b blob);
-insert into t1 (g,b) values (1,'a'), (2, 'b'), (3, 'b'), (1, 'c');
-select * from t1;
-a g b
-1 1 a
-2 2 b
-3 3 b
-4 1 c
-select b, count(*) from t1 group by b;
-b count(*)
-a 1
-b 2
-c 1
-select g, count(*) from t1 group by g;
-g count(*)
-1 2
-2 1
-3 1
-show status like 'Row%';
-Variable_name Value
-Rows_read 12
-Rows_sent 10
-Rows_tmp_read 14
-show status like 'Handler%';
-Variable_name Value
-Handler_commit 0
-Handler_delete 0
-Handler_discover 0
-Handler_external_lock 0
-Handler_icp_attempts 0
-Handler_icp_match 0
-Handler_mrr_init 0
-Handler_mrr_key_refills 0
-Handler_mrr_rowid_refills 0
-Handler_prepare 0
-Handler_read_first 0
-Handler_read_key 4
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 7
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 23
-Handler_rollback 0
-Handler_savepoint 0
-Handler_savepoint_rollback 0
-Handler_tmp_delete 0
-Handler_tmp_update 2
-Handler_tmp_write 7
-Handler_update 0
-Handler_write 4
-show status like '%tmp%';
-Variable_name Value
-Created_tmp_disk_tables 1
-Created_tmp_files 0
-Created_tmp_tables 2
-Handler_tmp_delete 0
-Handler_tmp_update 2
-Handler_tmp_write 7
-Rows_tmp_read 44
-drop table t1;
-CREATE TABLE t1 (i int(11) DEFAULT NULL, KEY i (i) ) ENGINE=MyISAM;
-insert into t1 values (1),(2),(3),(4),(5);
-flush status;
-select * from t1 where i=5 union select * from t1 where i=5;
-i
-5
-show status like "handler%";
-Variable_name Value
-Handler_commit 0
-Handler_delete 0
-Handler_discover 0
-Handler_external_lock 0
-Handler_icp_attempts 0
-Handler_icp_match 0
-Handler_mrr_init 0
-Handler_mrr_key_refills 0
-Handler_mrr_rowid_refills 0
-Handler_prepare 0
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 2
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 1
-Handler_read_rnd_next 2
-Handler_rollback 0
-Handler_savepoint 0
-Handler_savepoint_rollback 0
-Handler_tmp_delete 0
-Handler_tmp_update 0
-Handler_tmp_write 2
-Handler_update 0
-Handler_write 0
-drop table t1;
-#
-# MDEV-11153 - Introduce status variables for table cache monitoring and
-# tuning
-#
-SET @old_table_open_cache= @@table_open_cache;
-SET @@global.table_open_cache=10;
-FLUSH TABLES;
-FLUSH STATUS;
-SHOW STATUS LIKE 'Table_open_cache%';
-Variable_name Value
-Table_open_cache_active_instances 1
-Table_open_cache_hits 0
-Table_open_cache_misses 0
-Table_open_cache_overflows 0
-SHOW STATUS LIKE 'Table_open_cache%';
-Variable_name Value
-Table_open_cache_active_instances 1
-Table_open_cache_hits 30
-Table_open_cache_misses 15
-Table_open_cache_overflows 5
-FLUSH TABLES;
-FLUSH STATUS;
-SET @@global.table_open_cache= @old_table_open_cache;
-#
-# MDEV-14505 - Threads_running becomes scalability bottleneck
-#
-# Session status for Threads_running is currently always 1.
-SHOW STATUS LIKE 'Threads_running';
-Variable_name Value
-Threads_running 1
-SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='THREADS_RUNNING';
-VARIABLE_VALUE
-1
-FLUSH STATUS;
-SHOW STATUS LIKE 'Threads_running';
-Variable_name Value
-Threads_running 1
-SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='THREADS_RUNNING';
-VARIABLE_VALUE
-1
-connection default;
-set @@global.concurrent_insert= @old_concurrent_insert;
-SET GLOBAL log_output = @old_log_output;
diff --git a/mysql-test/r/status2.result b/mysql-test/r/status2.result
deleted file mode 100644
index 5805818fdf5..00000000000
--- a/mysql-test/r/status2.result
+++ /dev/null
@@ -1,77 +0,0 @@
-#
-# Bug#24289 Status Variable "Questions" gets wrong values with Stored Routines
-#
-FLUSH STATUS;
-CREATE FUNCTION testQuestion() RETURNS INTEGER
-BEGIN
-DECLARE foo INTEGER;
-DECLARE bar INTEGER;
-SET foo=1;
-SET bar=2;
-RETURN foo;
-END $$
-CREATE PROCEDURE testQuestion2()
-BEGIN
-SELECT 1;
-END $$
-DROP TABLE IF EXISTS t1,t2;
-CREATE TABLE t1 (c1 INT);
-CREATE TABLE t2 (c1 INT);
-CREATE EVENT ev1 ON SCHEDULE EVERY 1 SECOND
-DO INSERT INTO t1 VALUES(1);
-Assert Questions == 7
-SHOW STATUS LIKE 'Questions';
-Variable_name Value
-Questions 7
-SELECT testQuestion();
-testQuestion()
-1
-Assert Questions == 9
-SHOW STATUS LIKE 'Questions';
-Variable_name Value
-Questions 9
-CALL testQuestion2();
-1
-1
-Assert Questions == 11
-SHOW STATUS LIKE 'Questions';
-Variable_name Value
-Questions 11
-SELECT 1;
-1
-1
-Assert Questions == 13
-SHOW STATUS LIKE 'Questions';
-Variable_name Value
-Questions 13
-connect con1,localhost,root,,;
-connection con1;
-SELECT 1;
-1
-1
-connection default;
-disconnect con1;
-Assert Questions == 14
-SHOW STATUS LIKE 'Questions';
-Variable_name Value
-Questions 14
-CREATE TRIGGER trigg1 AFTER INSERT ON t1
-FOR EACH ROW BEGIN
-INSERT INTO t2 VALUES (1);
-END;
-$$
-Assert Questions == 16
-SHOW STATUS LIKE 'Questions';
-Variable_name Value
-Questions 16
-INSERT INTO t1 VALUES (1);
-Assert Questions == 18
-SHOW STATUS LIKE 'Questions';
-Variable_name Value
-Questions 18
-DROP PROCEDURE testQuestion2;
-DROP TRIGGER trigg1;
-DROP FUNCTION testQuestion;
-DROP EVENT ev1;
-DROP TABLE t1,t2;
-End of 6.0 tests
diff --git a/mysql-test/r/status_bug17954.result b/mysql-test/r/status_bug17954.result
deleted file mode 100644
index 82d4d1a9a7e..00000000000
--- a/mysql-test/r/status_bug17954.result
+++ /dev/null
@@ -1,14 +0,0 @@
-set @old_concurrent_insert= @@global.concurrent_insert;
-set @@global.concurrent_insert= 0;
-SET @old_log_output = @@global.log_output;
-SET GLOBAL LOG_OUTPUT = 'FILE';
-flush status;
-DROP VIEW IF EXISTS v1;
-CREATE VIEW v1 AS SELECT VARIABLE_NAME AS NAME, CONVERT(VARIABLE_VALUE, UNSIGNED) AS VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS;
-SELECT VALUE INTO @tc FROM v1 WHERE NAME = 'Threads_connected';
-SELECT NAME FROM v1 WHERE NAME = 'Threads_created' AND VALUE < @tc;
-NAME
-DROP VIEW v1;
-connection default;
-set @@global.concurrent_insert= @old_concurrent_insert;
-SET GLOBAL log_output = @old_log_output;
diff --git a/mysql-test/r/str_to_datetime_457.result b/mysql-test/r/str_to_datetime_457.result
deleted file mode 100644
index 4fd0d00691c..00000000000
--- a/mysql-test/r/str_to_datetime_457.result
+++ /dev/null
@@ -1,51 +0,0 @@
-select cast('01:02:03 ' as time), cast('01:02:03 ' as time);
-cast('01:02:03 ' as time) cast('01:02:03 ' as time)
-01:02:03 00:00:00
-select cast('2002-011-012' as date), cast('2002.11.12' as date), cast('2002.011.012' as date);
-cast('2002-011-012' as date) cast('2002.11.12' as date) cast('2002.011.012' as date)
-2002-11-12 2002-11-12 2002-11-12
-select cast('2012103123595912' as datetime(6)), cast('20121031235959123' as datetime(6));
-cast('2012103123595912' as datetime(6)) cast('20121031235959123' as datetime(6))
-2012-10-31 23:59:59.000000 2012-10-31 23:59:59.000000
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2012103123595912'
-Warning 1292 Truncated incorrect datetime value: '20121031235959123'
-select cast(0 as date), cast('0000-00-00' as date), cast('0' as date);
-cast(0 as date) cast('0000-00-00' as date) cast('0' as date)
-0000-00-00 0000-00-00 NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0'
-select extract(hour from '100000:02:03'), extract(hour from '100000:02:03 ');
-extract(hour from '100000:02:03') extract(hour from '100000:02:03 ')
-NULL NULL
-Warnings:
-Warning 1292 Truncated incorrect time value: '100000:02:03'
-Warning 1292 Truncated incorrect time value: '100000:02:03 '
-#
-# backward compatibility craziness
-#
-select cast('12:00:00.12.34.56' as time);
-cast('12:00:00.12.34.56' as time)
-12:00:00
-Warnings:
-Warning 1292 Truncated incorrect time value: '12:00:00.12.34.56'
-select cast('12:00:00 12.34.56' as time);
-cast('12:00:00 12.34.56' as time)
-12:34:56
-select cast('12:00:00-12.34.56' as time);
-cast('12:00:00-12.34.56' as time)
-12:00:00
-Warnings:
-Warning 1292 Truncated incorrect time value: '12:00:00-12.34.56'
-select cast('12:00:00.12.34.56' as datetime);
-cast('12:00:00.12.34.56' as datetime)
-2012-00-00 12:34:56
-select cast('12:00:00-12.34.56' as datetime);
-cast('12:00:00-12.34.56' as datetime)
-2012-00-00 12:34:56
-select cast('12:00:00 12.34.56' as datetime);
-cast('12:00:00 12.34.56' as datetime)
-2012-00-00 12:34:56
-select cast('12:00:00.123456' as time);
-cast('12:00:00.123456' as time)
-12:00:00
diff --git a/mysql-test/r/strict.result b/mysql-test/r/strict.result
deleted file mode 100644
index 315bb9dc1b5..00000000000
--- a/mysql-test/r/strict.result
+++ /dev/null
@@ -1,1530 +0,0 @@
-set @org_mode=@@sql_mode;
-set @@sql_mode='ansi,traditional';
-select @@sql_mode;
-@@sql_mode
-REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI,STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (col1 date);
-INSERT INTO t1 VALUES('2004-01-01'),('2004-02-29');
-INSERT INTO t1 VALUES('0000-10-31');
-INSERT INTO t1 VALUES('2004-0-31');
-ERROR 22007: Incorrect date value: '2004-0-31' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-01-02'),('2004-0-31');
-ERROR 22007: Incorrect date value: '2004-0-31' for column 'col1' at row 2
-INSERT INTO t1 VALUES('2004-10-0');
-ERROR 22007: Incorrect date value: '2004-10-0' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-09-31');
-ERROR 22007: Incorrect date value: '2004-09-31' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-10-32');
-ERROR 22007: Incorrect date value: '2004-10-32' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2003-02-29');
-ERROR 22007: Incorrect date value: '2003-02-29' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-13-15');
-ERROR 22007: Incorrect date value: '2004-13-15' for column 'col1' at row 1
-INSERT INTO t1 VALUES('0000-00-00');
-ERROR 22007: Incorrect date value: '0000-00-00' for column 'col1' at row 1
-INSERT INTO t1 VALUES ('59');
-ERROR 22007: Incorrect date value: '59' for column 'col1' at row 1
-set @@sql_mode='STRICT_ALL_TABLES';
-INSERT INTO t1 VALUES('2004-01-03'),('2004-0-31');
-set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_IN_DATE';
-INSERT INTO t1 VALUES('2004-0-30');
-ERROR 22007: Incorrect date value: '2004-0-30' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-01-04'),('2004-0-31'),('2004-01-05');
-ERROR 22007: Incorrect date value: '2004-0-31' for column 'col1' at row 2
-INSERT INTO t1 VALUES('0000-00-00');
-INSERT IGNORE INTO t1 VALUES('2004-0-29');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_DATE';
-INSERT INTO t1 VALUES('0000-00-00');
-ERROR 22007: Incorrect date value: '0000-00-00' for column 'col1' at row 1
-INSERT IGNORE INTO t1 VALUES('0000-00-00');
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-INSERT INTO t1 VALUES ('2004-0-30');
-INSERT INTO t1 VALUES ('2004-2-30');
-ERROR 22007: Incorrect date value: '2004-2-30' for column 'col1' at row 1
-set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
-INSERT INTO t1 VALUES ('2004-2-30');
-set @@sql_mode='ansi,traditional';
-INSERT IGNORE INTO t1 VALUES('2004-02-29'),('2004-13-15'),('0000-00-00');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col1' at row 3
-select * from t1;
-col1
-2004-01-01
-2004-02-29
-0000-10-31
-2004-01-02
-2004-01-03
-2004-00-31
-2004-01-04
-0000-00-00
-0000-00-00
-0000-00-00
-2004-00-30
-2004-02-30
-2004-02-29
-0000-00-00
-0000-00-00
-drop table t1;
-set @@sql_mode='strict_trans_tables';
-CREATE TABLE t1 (col1 date) engine=myisam;
-INSERT INTO t1 VALUES('2004-13-31'),('2004-1-1');
-ERROR 22007: Incorrect date value: '2004-13-31' for column 'col1' at row 1
-INSERT INTO t1 VALUES ('2004-1-2'), ('2004-13-31'),('2004-1-3');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 2
-INSERT IGNORE INTO t1 VALUES('2004-13-31'),('2004-1-4');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-INSERT INTO t1 VALUES ('2003-02-29');
-ERROR 22007: Incorrect date value: '2003-02-29' for column 'col1' at row 1
-INSERT ignore INTO t1 VALUES('2003-02-30');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
-INSERT ignore INTO t1 VALUES('2003-02-31');
-select * from t1;
-col1
-2004-01-02
-0000-00-00
-2004-01-03
-0000-00-00
-2004-01-04
-0000-00-00
-2003-02-31
-drop table t1;
-set @@sql_mode='strict_trans_tables';
-CREATE TABLE t1 (col1 date) engine=innodb;
-INSERT INTO t1 VALUES('2004-13-31'),('2004-1-1');
-ERROR 22007: Incorrect date value: '2004-13-31' for column 'col1' at row 1
-INSERT INTO t1 VALUES ('2004-1-2'), ('2004-13-31'),('2004-1-3');
-ERROR 22007: Incorrect date value: '2004-13-31' for column 'col1' at row 2
-INSERT IGNORE INTO t1 VALUES('2004-13-31'),('2004-1-4');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-INSERT INTO t1 VALUES ('2003-02-29');
-ERROR 22007: Incorrect date value: '2003-02-29' for column 'col1' at row 1
-INSERT ignore INTO t1 VALUES('2003-02-30');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
-INSERT ignore INTO t1 VALUES('2003-02-31');
-select * from t1;
-col1
-0000-00-00
-2004-01-04
-0000-00-00
-2003-02-31
-drop table t1;
-set @@sql_mode='ansi,traditional';
-CREATE TABLE t1 (col1 datetime);
-INSERT INTO t1 VALUES('2004-10-31 15:30:00'),('2004-02-29 15:30:00');
-INSERT INTO t1 VALUES('0000-10-31 15:30:00');
-INSERT INTO t1 VALUES('2004-0-31 15:30:00');
-ERROR 22007: Incorrect datetime value: '2004-0-31 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-10-0 15:30:00');
-ERROR 22007: Incorrect datetime value: '2004-10-0 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-09-31 15:30:00');
-ERROR 22007: Incorrect datetime value: '2004-09-31 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-10-32 15:30:00');
-ERROR 22007: Incorrect datetime value: '2004-10-32 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2003-02-29 15:30:00');
-ERROR 22007: Incorrect datetime value: '2003-02-29 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-13-15 15:30:00');
-ERROR 22007: Incorrect datetime value: '2004-13-15 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('0000-00-00 15:30:00');
-ERROR 22007: Incorrect datetime value: '0000-00-00 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES ('59');
-ERROR 22007: Incorrect datetime value: '59' for column 'col1' at row 1
-select * from t1;
-col1
-2004-10-31 15:30:00
-2004-02-29 15:30:00
-0000-10-31 15:30:00
-drop table t1;
-CREATE TABLE t1 (col1 timestamp);
-INSERT INTO t1 VALUES('2004-10-31 15:30:00'),('2004-02-29 15:30:00');
-INSERT INTO t1 VALUES('0000-10-31 15:30:00');
-ERROR 22007: Incorrect datetime value: '0000-10-31 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-0-31 15:30:00');
-ERROR 22007: Incorrect datetime value: '2004-0-31 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-10-0 15:30:00');
-ERROR 22007: Incorrect datetime value: '2004-10-0 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-09-31 15:30:00');
-ERROR 22007: Incorrect datetime value: '2004-09-31 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-10-32 15:30:00');
-ERROR 22007: Incorrect datetime value: '2004-10-32 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2003-02-29 15:30:00');
-ERROR 22007: Incorrect datetime value: '2003-02-29 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-13-15 15:30:00');
-ERROR 22007: Incorrect datetime value: '2004-13-15 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-02-29 25:30:00');
-ERROR 22007: Incorrect datetime value: '2004-02-29 25:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-02-29 15:65:00');
-ERROR 22007: Incorrect datetime value: '2004-02-29 15:65:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-02-29 15:31:61');
-ERROR 22007: Incorrect datetime value: '2004-02-29 15:31:61' for column 'col1' at row 1
-INSERT INTO t1 VALUES('0000-00-00 15:30:00');
-ERROR 22007: Incorrect datetime value: '0000-00-00 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('0000-00-00 00:00:00');
-ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'col1' at row 1
-INSERT IGNORE INTO t1 VALUES('0000-00-00 00:00:00');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-INSERT INTO t1 VALUES ('59');
-ERROR 22007: Incorrect datetime value: '59' for column 'col1' at row 1
-set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
-INSERT INTO t1 VALUES('2004-0-31 15:30:00');
-ERROR 22007: Incorrect datetime value: '2004-0-31 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-10-0 15:30:00');
-ERROR 22007: Incorrect datetime value: '2004-10-0 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-10-32 15:30:00');
-ERROR 22007: Incorrect datetime value: '2004-10-32 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 VALUES('2004-02-30 15:30:04');
-ERROR 22007: Incorrect datetime value: '2004-02-30 15:30:04' for column 'col1' at row 1
-INSERT INTO t1 VALUES('0000-00-00 00:00:00');
-set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_IN_DATE';
-INSERT INTO t1 VALUES('0000-00-00 00:00:00');
-set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_DATE';
-INSERT INTO t1 VALUES('0000-00-00 00:00:00');
-ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'col1' at row 1
-set @@sql_mode='ansi,traditional';
-SELECT * FROM t1;
-col1
-2004-10-31 15:30:00
-2004-02-29 15:30:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-DROP TABLE t1;
-CREATE TABLE t1 (col1 date, col2 datetime, col3 timestamp);
-INSERT INTO t1 (col1) VALUES (STR_TO_DATE('15.10.2004','%d.%m.%Y'));
-INSERT INTO t1 (col2) VALUES (STR_TO_DATE('15.10.2004 10.15','%d.%m.%Y %H.%i'));
-INSERT INTO t1 (col3) VALUES (STR_TO_DATE('15.10.2004 10.15','%d.%m.%Y %H.%i'));
-INSERT INTO t1 (col1) VALUES(STR_TO_DATE('31.10.0000 15.30','%d.%m.%Y %H.%i'));
-Warnings:
-Note 1265 Data truncated for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES(STR_TO_DATE('31.10.0000 15.30','%d.%m.%Y %H.%i'));
-INSERT INTO t1 (col1) VALUES(STR_TO_DATE('31.0.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR HY000: Incorrect datetime value: '31.0.2004 15.30' for function str_to_date
-INSERT INTO t1 (col1) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR HY000: Incorrect datetime value: '0.10.2004 15.30' for function str_to_date
-INSERT INTO t1 (col1) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR 22007: Incorrect date value: '2004-09-31 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR HY000: Incorrect datetime value: '32.10.2004 15.30' for function str_to_date
-INSERT INTO t1 (col1) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));
-ERROR 22007: Incorrect date value: '2003-02-29 15:30:00' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR HY000: Incorrect datetime value: '15.13.2004 15.30' for function str_to_date
-INSERT INTO t1 (col1) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));
-ERROR HY000: Incorrect datetime value: '00.00.0000' for function str_to_date
-INSERT INTO t1 (col2) VALUES(STR_TO_DATE('31.0.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR HY000: Incorrect datetime value: '31.0.2004 15.30' for function str_to_date
-INSERT INTO t1 (col2) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR HY000: Incorrect datetime value: '0.10.2004 15.30' for function str_to_date
-INSERT INTO t1 (col2) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR 22007: Incorrect datetime value: '2004-09-31 15:30:00' for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR HY000: Incorrect datetime value: '32.10.2004 15.30' for function str_to_date
-INSERT INTO t1 (col2) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));
-ERROR 22007: Incorrect datetime value: '2003-02-29 15:30:00' for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR HY000: Incorrect datetime value: '15.13.2004 15.30' for function str_to_date
-INSERT INTO t1 (col2) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));
-ERROR HY000: Incorrect datetime value: '00.00.0000' for function str_to_date
-INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.10.0000 15.30','%d.%m.%Y %H.%i'));
-ERROR 22007: Incorrect datetime value: '0000-10-31 15:30:00' for column 'col3' at row 1
-INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.0.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR HY000: Incorrect datetime value: '31.0.2004 15.30' for function str_to_date
-INSERT INTO t1 (col3) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR HY000: Incorrect datetime value: '0.10.2004 15.30' for function str_to_date
-INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR 22007: Incorrect datetime value: '2004-09-31 15:30:00' for column 'col3' at row 1
-INSERT INTO t1 (col3) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR HY000: Incorrect datetime value: '32.10.2004 15.30' for function str_to_date
-INSERT INTO t1 (col3) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));
-ERROR 22007: Incorrect datetime value: '2003-02-29 15:30:00' for column 'col3' at row 1
-INSERT INTO t1 (col3) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR HY000: Incorrect datetime value: '15.13.2004 15.30' for function str_to_date
-INSERT INTO t1 (col3) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));
-ERROR HY000: Incorrect datetime value: '00.00.0000' for function str_to_date
-drop table t1;
-CREATE TABLE t1 (col1 date, col2 datetime, col3 timestamp);
-INSERT INTO t1 (col1) VALUES (CAST('2004-10-15' AS DATE));
-INSERT INTO t1 (col2) VALUES (CAST('2004-10-15 10:15' AS DATETIME));
-INSERT INTO t1 (col3) VALUES (CAST('2004-10-15 10:15' AS DATETIME));
-INSERT INTO t1 (col1) VALUES(CAST('0000-10-31' AS DATE));
-INSERT INTO t1 (col1) VALUES(CAST('2004-10-0' AS DATE));
-ERROR 22007: Incorrect datetime value: '2004-10-0'
-INSERT INTO t1 (col1) VALUES(CAST('2004-0-10' AS DATE));
-ERROR 22007: Incorrect datetime value: '2004-0-10'
-INSERT INTO t1 (col1) VALUES(CAST('0000-00-00' AS DATE));
-ERROR 22007: Incorrect datetime value: '0000-00-00'
-INSERT INTO t1 (col2) VALUES(CAST('0000-10-31 15:30' AS DATETIME));
-INSERT INTO t1 (col2) VALUES(CAST('2004-10-0 15:30' AS DATETIME));
-ERROR 22007: Incorrect datetime value: '2004-10-0 15:30'
-INSERT INTO t1 (col2) VALUES(CAST('2004-0-10 15:30' AS DATETIME));
-ERROR 22007: Incorrect datetime value: '2004-0-10 15:30'
-INSERT INTO t1 (col2) VALUES(CAST('0000-00-00' AS DATETIME));
-ERROR 22007: Incorrect datetime value: '0000-00-00'
-INSERT INTO t1 (col3) VALUES(CAST('0000-10-31 15:30' AS DATETIME));
-ERROR 22007: Incorrect datetime value: '0000-10-31 15:30:00' for column 'col3' at row 1
-INSERT INTO t1 (col3) VALUES(CAST('2004-10-0 15:30' AS DATETIME));
-ERROR 22007: Incorrect datetime value: '2004-10-0 15:30'
-INSERT INTO t1 (col3) VALUES(CAST('2004-0-10 15:30' AS DATETIME));
-ERROR 22007: Incorrect datetime value: '2004-0-10 15:30'
-INSERT INTO t1 (col3) VALUES(CAST('0000-00-00' AS DATETIME));
-ERROR 22007: Incorrect datetime value: '0000-00-00'
-drop table t1;
-CREATE TABLE t1 (col1 date, col2 datetime, col3 timestamp);
-INSERT INTO t1 (col1) VALUES (CONVERT('2004-10-15',DATE));
-INSERT INTO t1 (col2) VALUES (CONVERT('2004-10-15 10:15',DATETIME));
-INSERT INTO t1 (col3) VALUES (CONVERT('2004-10-15 10:15',DATETIME));
-INSERT INTO t1 (col1) VALUES(CONVERT('0000-10-31' , DATE));
-INSERT INTO t1 (col1) VALUES(CONVERT('2004-10-0' , DATE));
-ERROR 22007: Incorrect datetime value: '2004-10-0'
-INSERT INTO t1 (col1) VALUES(CONVERT('2004-0-10' , DATE));
-ERROR 22007: Incorrect datetime value: '2004-0-10'
-INSERT INTO t1 (col1) VALUES('2004-0-10');
-ERROR 22007: Incorrect date value: '2004-0-10' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES(CONVERT('0000-00-00',DATE));
-ERROR 22007: Incorrect datetime value: '0000-00-00'
-INSERT INTO t1 (col2) VALUES(CONVERT('0000-10-31 15:30',DATETIME));
-INSERT INTO t1 (col2) VALUES(CONVERT('2004-10-0 15:30',DATETIME));
-ERROR 22007: Incorrect datetime value: '2004-10-0 15:30'
-INSERT INTO t1 (col2) VALUES(CONVERT('2004-0-10 15:30',DATETIME));
-ERROR 22007: Incorrect datetime value: '2004-0-10 15:30'
-INSERT INTO t1 (col2) VALUES(CONVERT('0000-00-00',DATETIME));
-ERROR 22007: Incorrect datetime value: '0000-00-00'
-INSERT INTO t1 (col3) VALUES(CONVERT('0000-10-31 15:30',DATETIME));
-ERROR 22007: Incorrect datetime value: '0000-10-31 15:30:00' for column 'col3' at row 1
-INSERT INTO t1 (col3) VALUES(CONVERT('2004-10-0 15:30',DATETIME));
-ERROR 22007: Incorrect datetime value: '2004-10-0 15:30'
-INSERT INTO t1 (col3) VALUES(CONVERT('2004-0-10 15:30',DATETIME));
-ERROR 22007: Incorrect datetime value: '2004-0-10 15:30'
-INSERT INTO t1 (col3) VALUES(CONVERT('0000-00-00',DATETIME));
-ERROR 22007: Incorrect datetime value: '0000-00-00'
-drop table t1;
-CREATE TABLE t1(col1 TINYINT, col2 TINYINT UNSIGNED);
-INSERT INTO t1 VALUES(-128,0),(0,0),(127,255),('-128','0'),('0','0'),('127','255'),(-128.0,0.0),(0.0,0.0),(127.0,255.0);
-SELECT MOD(col1,0) FROM t1 WHERE col1 > 0 LIMIT 2;
-MOD(col1,0)
-NULL
-NULL
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-INSERT INTO t1 (col1) VALUES(-129);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES(128);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES(-1);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES(256);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col1) VALUES('-129');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES('128');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES('-1');
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES('256');
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col1) VALUES(128.0);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES(-1.0);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES(256.0);
-ERROR 22003: Out of range value for column 'col2' at row 1
-SELECT MOD(col1,0) FROM t1 WHERE col1 > 0 LIMIT 1;
-MOD(col1,0)
-NULL
-Warnings:
-Warning 1365 Division by 0
-UPDATE t1 SET col1 = col1 - 50 WHERE col1 < 0;
-ERROR 22003: Out of range value for column 'col1' at row 1
-UPDATE t1 SET col2=col2 + 50 WHERE col2 > 0;
-ERROR 22003: Out of range value for column 'col2' at row 3
-UPDATE t1 SET col1=col1 / 0 WHERE col1 > 0;
-ERROR 22012: Division by 0
-set @@sql_mode='ERROR_FOR_DIVISION_BY_ZERO';
-INSERT INTO t1 values (1/0,1/0);
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-set @@sql_mode='ansi,traditional';
-SELECT MOD(col1,0) FROM t1 WHERE col1 > 0 LIMIT 2;
-MOD(col1,0)
-NULL
-NULL
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-INSERT INTO t1 (col1) VALUES ('');
-ERROR 22007: Incorrect integer value: '' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('a59b');
-ERROR 22007: Incorrect integer value: 'a59b' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('1a');
-ERROR 01000: Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 (col1) VALUES ('2a');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 values (1/0,1/0);
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-set @@sql_mode='ansi';
-INSERT INTO t1 values (1/0,1/0);
-set @@sql_mode='ansi,traditional';
-INSERT IGNORE INTO t1 VALUES('-129','-1'),('128','256');
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col2' at row 2
-INSERT IGNORE INTO t1 VALUES(-129.0,-1.0),(128.0,256.0);
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col2' at row 2
-UPDATE IGNORE t1 SET col2=1/NULL where col1=0;
-SELECT * FROM t1;
-col1 col2
--128 0
-0 NULL
-127 255
--128 0
-0 NULL
-127 255
--128 0
-0 NULL
-127 255
-NULL NULL
-2 NULL
-NULL NULL
-NULL NULL
--128 0
-127 255
--128 0
-127 255
-DROP TABLE t1;
-CREATE TABLE t1(col1 SMALLINT, col2 SMALLINT UNSIGNED);
-INSERT INTO t1 VALUES(-32768,0),(0,0),(32767,65535),('-32768','0'),('32767','65535'),(-32768.0,0.0),(32767.0,65535.0);
-INSERT INTO t1 (col1) VALUES(-32769);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES(32768);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES(-1);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES(65536);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col1) VALUES('-32769');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES('32768');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES('-1');
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES('65536');
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col1) VALUES(-32769.0);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES(32768.0);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES(-1.0);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES(65536.0);
-ERROR 22003: Out of range value for column 'col2' at row 1
-UPDATE t1 SET col1 = col1 - 50 WHERE col1 < 0;
-ERROR 22003: Out of range value for column 'col1' at row 1
-UPDATE t1 SET col2 = col2 + 50 WHERE col2 > 0;
-ERROR 22003: Out of range value for column 'col2' at row 3
-UPDATE t1 SET col1 = col1 / 0 WHERE col1 > 0;
-ERROR 22012: Division by 0
-UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0;
-ERROR 22012: Division by 0
-INSERT INTO t1 (col1) VALUES ('');
-ERROR 22007: Incorrect integer value: '' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('a59b');
-ERROR 22007: Incorrect integer value: 'a59b' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('1a');
-ERROR 01000: Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 (col1) VALUES ('2a');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 values (1/0,1/0);
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-INSERT IGNORE INTO t1 VALUES(-32769,-1),(32768,65536);
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col2' at row 2
-INSERT IGNORE INTO t1 VALUES('-32769','-1'),('32768','65536');
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col2' at row 2
-INSERT IGNORE INTO t1 VALUES(-32769,-1.0),(32768.0,65536.0);
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col2' at row 2
-UPDATE IGNORE t1 SET col2=1/NULL where col1=0;
-SELECT * FROM t1;
-col1 col2
--32768 0
-0 NULL
-32767 65535
--32768 0
-32767 65535
--32768 0
-32767 65535
-2 NULL
-NULL NULL
--32768 0
-32767 65535
--32768 0
-32767 65535
--32768 0
-32767 65535
-DROP TABLE t1;
-CREATE TABLE t1 (col1 MEDIUMINT, col2 MEDIUMINT UNSIGNED);
-INSERT INTO t1 VALUES(-8388608,0),(0,0),(8388607,16777215),('-8388608','0'),('8388607','16777215'),(-8388608.0,0.0),(8388607.0,16777215.0);
-INSERT INTO t1 (col1) VALUES(-8388609);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES(8388608);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES(-1);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES(16777216);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col1) VALUES('-8388609');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES('8388608');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES('-1');
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES('16777216');
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col1) VALUES(-8388609.0);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES(8388608.0);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES(-1.0);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES(16777216.0);
-ERROR 22003: Out of range value for column 'col2' at row 1
-UPDATE t1 SET col1 = col1 - 50 WHERE col1 < 0;
-ERROR 22003: Out of range value for column 'col1' at row 1
-UPDATE t1 SET col2 = col2 + 50 WHERE col2 > 0;
-ERROR 22003: Out of range value for column 'col2' at row 3
-UPDATE t1 SET col1 =col1 / 0 WHERE col1 > 0;
-ERROR 22012: Division by 0
-UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0;
-ERROR 22012: Division by 0
-INSERT INTO t1 (col1) VALUES ('');
-ERROR 22007: Incorrect integer value: '' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('a59b');
-ERROR 22007: Incorrect integer value: 'a59b' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('1a');
-ERROR 01000: Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 (col1) VALUES ('2a');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 values (1/0,1/0);
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-INSERT IGNORE INTO t1 VALUES(-8388609,-1),(8388608,16777216);
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col2' at row 2
-INSERT IGNORE INTO t1 VALUES('-8388609','-1'),('8388608','16777216');
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col2' at row 2
-INSERT IGNORE INTO t1 VALUES(-8388609.0,-1.0),(8388608.0,16777216.0);
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col2' at row 2
-UPDATE IGNORE t1 SET col2=1/NULL where col1=0;
-SELECT * FROM t1;
-col1 col2
--8388608 0
-0 NULL
-8388607 16777215
--8388608 0
-8388607 16777215
--8388608 0
-8388607 16777215
-2 NULL
-NULL NULL
--8388608 0
-8388607 16777215
--8388608 0
-8388607 16777215
--8388608 0
-8388607 16777215
-DROP TABLE t1;
-CREATE TABLE t1 (col1 INT, col2 INT UNSIGNED);
-INSERT INTO t1 VALUES(-2147483648,0),(0,0),(2147483647,4294967295),('-2147483648','0'),('2147483647','4294967295'),(-2147483648.0,0.0),(2147483647.0,4294967295.0);
-INSERT INTO t1 (col1) VALUES(-2147483649);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES(2147643648);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES(-1);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES(4294967296);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col1) VALUES('-2147483649');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES('2147643648');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES('-1');
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES('4294967296');
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col1) VALUES(-2147483649.0);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES(2147643648.0);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES(-1.0);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES(4294967296.0);
-ERROR 22003: Out of range value for column 'col2' at row 1
-UPDATE t1 SET col1 = col1 - 50 WHERE col1 < 0;
-ERROR 22003: Out of range value for column 'col1' at row 1
-UPDATE t1 SET col2 =col2 + 50 WHERE col2 > 0;
-ERROR 22003: Out of range value for column 'col2' at row 3
-UPDATE t1 SET col1 =col1 / 0 WHERE col1 > 0;
-ERROR 22012: Division by 0
-UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0;
-ERROR 22012: Division by 0
-INSERT INTO t1 (col1) VALUES ('');
-ERROR 22007: Incorrect integer value: '' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('a59b');
-ERROR 22007: Incorrect integer value: 'a59b' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('1a');
-ERROR 01000: Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 (col1) VALUES ('2a');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 values (1/0,1/0);
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-INSERT IGNORE INTO t1 values (-2147483649, -1),(2147643648,4294967296);
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col2' at row 2
-INSERT IGNORE INTO t1 values ('-2147483649', '-1'),('2147643648','4294967296');
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col2' at row 2
-INSERT IGNORE INTO t1 values (-2147483649.0, -1.0),(2147643648.0,4294967296.0);
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col2' at row 2
-UPDATE IGNORE t1 SET col2=1/NULL where col1=0;
-SELECT * FROM t1;
-col1 col2
--2147483648 0
-0 NULL
-2147483647 4294967295
--2147483648 0
-2147483647 4294967295
--2147483648 0
-2147483647 4294967295
-2 NULL
-NULL NULL
--2147483648 0
-2147483647 4294967295
--2147483648 0
-2147483647 4294967295
--2147483648 0
-2147483647 4294967295
-DROP TABLE t1;
-CREATE TABLE t1 (col1 BIGINT, col2 BIGINT UNSIGNED);
-INSERT INTO t1 VALUES(-9223372036854775808,0),(0,0),(9223372036854775807,18446744073709551615);
-INSERT INTO t1 VALUES('-9223372036854775808','0'),('9223372036854775807','18446744073709551615');
-INSERT INTO t1 VALUES(-9223372036854774000.0,0.0),(9223372036854775700.0,1844674407370954000.0);
-INSERT INTO t1 (col1) VALUES(-9223372036854775809);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES(9223372036854775808);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES(-1);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES(18446744073709551616);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col1) VALUES('-9223372036854775809');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES('9223372036854775808');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES('-1');
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES('18446744073709551616');
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col1) VALUES(-9223372036854785809.0);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES(9223372036854785808.0);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES(-1.0);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES(18446744073709551616.0);
-ERROR 22003: Out of range value for column 'col2' at row 1
-UPDATE t1 SET col1 =col1 / 0 WHERE col1 > 0;
-ERROR 22012: Division by 0
-UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0;
-ERROR 22012: Division by 0
-INSERT INTO t1 (col1) VALUES ('');
-ERROR 22007: Incorrect integer value: '' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('a59b');
-ERROR 22007: Incorrect integer value: 'a59b' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('1a');
-ERROR 01000: Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 (col1) VALUES ('2a');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 values (1/0,1/0);
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-INSERT IGNORE INTO t1 VALUES(-9223372036854775809,-1),(9223372036854775808,18446744073709551616);
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col2' at row 2
-INSERT IGNORE INTO t1 VALUES('-9223372036854775809','-1'),('9223372036854775808','18446744073709551616');
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col2' at row 2
-INSERT IGNORE INTO t1 VALUES(-9223372036854785809.0,-1.0),(9223372036854785808.0,18446744073709551616.0);
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-Warning 1264 Out of range value for column 'col2' at row 2
-UPDATE IGNORE t1 SET col2=1/NULL where col1=0;
-SELECT * FROM t1;
-col1 col2
--9223372036854775808 0
-0 NULL
-9223372036854775807 18446744073709551615
--9223372036854775808 0
-9223372036854775807 18446744073709551615
--9223372036854774000 0
-9223372036854775700 1844674407370954000
-2 NULL
-NULL NULL
--9223372036854775808 0
-9223372036854775807 18446744073709551615
--9223372036854775808 0
-9223372036854775807 18446744073709551615
--9223372036854775808 0
-9223372036854775807 18446744073709551615
-DROP TABLE t1;
-CREATE TABLE t1 (col1 NUMERIC(4,2));
-INSERT INTO t1 VALUES (10.55),(10.5555),(0),(-10.55),(-10.5555),(11),(1e+01);
-Warnings:
-Note 1265 Data truncated for column 'col1' at row 2
-Note 1265 Data truncated for column 'col1' at row 5
-INSERT INTO t1 VALUES ('10.55'),('10.5555'),('-10.55'),('-10.5555'),('11'),('1e+01');
-Warnings:
-Note 1265 Data truncated for column 'col1' at row 2
-Note 1265 Data truncated for column 'col1' at row 4
-INSERT INTO t1 VALUES (101.55);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 VALUES (101);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 VALUES (-101.55);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 VALUES (1010.55);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 VALUES (1010);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 VALUES ('101.55');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 VALUES ('101');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 VALUES ('-101.55');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 VALUES ('-1010.55');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 VALUES ('-100E+1');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 VALUES ('-100E');
-ERROR 01000: Data truncated for column 'col1' at row 1
-UPDATE t1 SET col1 =col1 * 50000 WHERE col1 =11;
-ERROR 22003: Out of range value for column 'col1' at row 6
-UPDATE t1 SET col1 =col1 / 0 WHERE col1 > 0;
-ERROR 22012: Division by 0
-UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0;
-ERROR 22012: Division by 0
-INSERT INTO t1 (col1) VALUES ('');
-ERROR 22007: Incorrect decimal value: '' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('a59b');
-ERROR 22007: Incorrect decimal value: 'a59b' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('1a');
-ERROR 01000: Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 (col1) VALUES ('2a');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 values (1/0);
-Warnings:
-Warning 1365 Division by 0
-INSERT IGNORE INTO t1 VALUES(1000),(-1000);
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-INSERT IGNORE INTO t1 VALUES('1000'),('-1000');
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-INSERT IGNORE INTO t1 VALUES(1000.0),(-1000.0);
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-UPDATE IGNORE t1 SET col1=1/NULL where col1=0;
-SELECT * FROM t1;
-col1
-10.55
-10.56
-NULL
--10.55
--10.56
-11.00
-10.00
-10.55
-10.56
--10.55
--10.56
-11.00
-10.00
-2.00
-NULL
-99.99
--99.99
-99.99
--99.99
-99.99
--99.99
-DROP TABLE t1;
-CREATE TABLE t1 (col1 FLOAT, col2 FLOAT UNSIGNED);
-INSERT INTO t1 VALUES (-1.1E-37,0),(+3.4E+38,+3.4E+38);
-INSERT INTO t1 VALUES ('-1.1E-37',0),('+3.4E+38','+3.4E+38');
-INSERT INTO t1 (col1) VALUES (3E-46);
-INSERT INTO t1 (col1) VALUES (+3.4E+39);
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES (-1.1E-3);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col1) VALUES ('+3.4E+39');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES ('-1.1E-3');
-ERROR 22003: Out of range value for column 'col2' at row 1
-UPDATE t1 SET col1 =col1 * 5000 WHERE col1 > 0;
-ERROR 22003: Out of range value for column 'col1' at row 2
-UPDATE t1 SET col2 =col2 / 0 WHERE col2 > 0;
-ERROR 22012: Division by 0
-UPDATE t1 SET col2= MOD(col2,0) WHERE col2 > 0;
-ERROR 22012: Division by 0
-INSERT INTO t1 (col1) VALUES ('');
-ERROR 22007: Incorrect double value: '' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('a59b');
-ERROR 22007: Incorrect double value: 'a59b' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('1a');
-ERROR 01000: Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 (col1) VALUES ('2a');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 (col1) VALUES (1/0);
-Warnings:
-Warning 1365 Division by 0
-INSERT IGNORE INTO t1 VALUES (+3.4E+39,-3.4E+39);
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-INSERT IGNORE INTO t1 VALUES ('+3.4E+39','-3.4E+39');
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-SELECT * FROM t1;
-col1 col2
--1.1e-37 0
-3.4e38 3.4e38
--1.1e-37 0
-3.4e38 3.4e38
-0 NULL
-2 NULL
-NULL NULL
-3.40282e38 0
-3.40282e38 0
-DROP TABLE t1;
-CREATE TABLE t1 (col1 DOUBLE PRECISION, col2 DOUBLE PRECISION UNSIGNED);
-INSERT INTO t1 VALUES (-2.2E-307,0),(2E-307,0),(+1.7E+308,+1.7E+308);
-INSERT INTO t1 VALUES ('-2.2E-307',0),('-2E-307',0),('+1.7E+308','+1.7E+308');
-INSERT INTO t1 (col1) VALUES (-2.2E-330);
-INSERT INTO t1 (col1) VALUES (+1.7E+309);
-Got one of the listed errors
-INSERT INTO t1 (col2) VALUES (-1.1E-3);
-ERROR 22003: Out of range value for column 'col2' at row 1
-INSERT INTO t1 (col1) VALUES ('+1.8E+309');
-ERROR 22003: Out of range value for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES ('-1.2E-3');
-ERROR 22003: Out of range value for column 'col2' at row 1
-UPDATE t1 SET col1 =col1 * 5000 WHERE col1 > 0;
-ERROR 22003: DOUBLE value is out of range in '"test"."t1"."col1" * 5000'
-UPDATE t1 SET col2 =col2 / 0 WHERE col2 > 0;
-ERROR 22012: Division by 0
-UPDATE t1 SET col2= MOD(col2,0) WHERE col2 > 0;
-ERROR 22012: Division by 0
-INSERT INTO t1 (col1) VALUES ('');
-ERROR 22007: Incorrect double value: '' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('a59b');
-ERROR 22007: Incorrect double value: 'a59b' for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('1a');
-ERROR 01000: Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 (col1) VALUES ('2a');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-INSERT IGNORE INTO t1 (col1) values (1/0);
-Warnings:
-Warning 1365 Division by 0
-INSERT IGNORE INTO t1 VALUES (+1.9E+309,-1.9E+309);
-ERROR 22007: Illegal double '1.9E+309' value found during parsing
-INSERT IGNORE INTO t1 VALUES ('+2.0E+309','-2.0E+309');
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-SELECT * FROM t1;
-col1 col2
--2.2e-307 0
-1e-303 0
-1.7e308 1.7e308
--2.2e-307 0
--2e-307 0
-1.7e308 1.7e308
-0 NULL
-2 NULL
-NULL NULL
-1.7976931348623157e308 0
-DROP TABLE t1;
-CREATE TABLE t1 (col1 CHAR(5), col2 VARCHAR(6));
-INSERT INTO t1 VALUES ('hello', 'hello'),('he', 'he'),('hello ', 'hello ');
-INSERT INTO t1 (col1) VALUES ('hellobob');
-ERROR 22001: Data too long for column 'col1' at row 1
-INSERT INTO t1 (col2) VALUES ('hellobob');
-ERROR 22001: Data too long for column 'col2' at row 1
-INSERT INTO t1 (col2) VALUES ('hello ');
-Warnings:
-Note 1265 Data truncated for column 'col2' at row 1
-UPDATE t1 SET col1 ='hellobob' WHERE col1 ='he';
-ERROR 22001: Data too long for column 'col1' at row 2
-UPDATE t1 SET col2 ='hellobob' WHERE col2 ='he';
-ERROR 22001: Data too long for column 'col2' at row 2
-INSERT IGNORE INTO t1 VALUES ('hellobob', 'hellobob');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-Warning 1265 Data truncated for column 'col2' at row 1
-UPDATE IGNORE t1 SET col2 ='hellotrudy' WHERE col2 ='he';
-Warnings:
-Warning 1265 Data truncated for column 'col2' at row 2
-SELECT * FROM t1;
-col1 col2
-hello hello
-he hellot
-hello hello
-NULL hello
-hello hellob
-DROP TABLE t1;
-CREATE TABLE t1 (col1 enum('red','blue','green'));
-INSERT INTO t1 VALUES ('red'),('blue'),('green');
-INSERT INTO t1 (col1) VALUES ('yellow');
-ERROR 01000: Data truncated for column 'col1' at row 1
-INSERT INTO t1 (col1) VALUES ('redd');
-ERROR 01000: Data truncated for column 'col1' at row 1
-INSERT INTO t1 VALUES ('');
-ERROR 01000: Data truncated for column 'col1' at row 1
-UPDATE t1 SET col1 ='yellow' WHERE col1 ='green';
-ERROR 01000: Data truncated for column 'col1' at row 3
-INSERT IGNORE INTO t1 VALUES ('yellow');
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 1
-UPDATE IGNORE t1 SET col1 ='yellow' WHERE col1 ='blue';
-Warnings:
-Warning 1265 Data truncated for column 'col1' at row 2
-SELECT * FROM t1;
-col1
-red
-
-green
-
-DROP TABLE t1;
-CREATE TABLE t1 (col1 INT NOT NULL, col2 CHAR(5) NOT NULL, col3 DATE NOT NULL);
-INSERT INTO t1 VALUES (100, 'hello', '2004-08-20');
-INSERT INTO t1 (col1,col2,col3) VALUES (101, 'hell2', '2004-08-21');
-INSERT INTO t1 (col1,col2,col3) VALUES (NULL, '', '2004-01-01');
-ERROR 23000: Column 'col1' cannot be null
-INSERT INTO t1 (col1,col2,col3) VALUES (102, NULL, '2004-01-01');
-ERROR 23000: Column 'col2' cannot be null
-INSERT INTO t1 VALUES (103,'',NULL);
-ERROR 23000: Column 'col3' cannot be null
-UPDATE t1 SET col1=NULL WHERE col1 =100;
-ERROR 23000: Column 'col1' cannot be null
-UPDATE t1 SET col2 =NULL WHERE col2 ='hello';
-ERROR 23000: Column 'col2' cannot be null
-UPDATE t1 SET col2 =NULL where col3 IS NOT NULL;
-ERROR 23000: Column 'col2' cannot be null
-INSERT IGNORE INTO t1 values (NULL,NULL,NULL);
-Warnings:
-Warning 1048 Column 'col1' cannot be null
-Warning 1048 Column 'col2' cannot be null
-Warning 1048 Column 'col3' cannot be null
-SELECT * FROM t1;
-col1 col2 col3
-100 hello 2004-08-20
-101 hell2 2004-08-21
-0 0000-00-00
-DROP TABLE t1;
-CREATE TABLE t1 (col1 INT NOT NULL default 99, col2 CHAR(6) NOT NULL);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE "t1" (
- "col1" int(11) NOT NULL DEFAULT 99,
- "col2" char(6) NOT NULL
-)
-INSERT INTO t1 VALUES (1, 'hello');
-INSERT INTO t1 (col2) VALUES ('hello2');
-INSERT INTO t1 (col2) VALUES (NULL);
-ERROR 23000: Column 'col2' cannot be null
-INSERT INTO t1 (col1) VALUES (2);
-ERROR HY000: Field 'col2' doesn't have a default value
-INSERT INTO t1 VALUES(default(col1),default(col2));
-ERROR HY000: Field 'col2' doesn't have a default value
-INSERT INTO t1 (col1) SELECT 1;
-ERROR HY000: Field 'col2' doesn't have a default value
-INSERT INTO t1 SELECT 1,NULL;
-ERROR 23000: Column 'col2' cannot be null
-INSERT IGNORE INTO t1 values (NULL,NULL);
-Warnings:
-Warning 1048 Column 'col1' cannot be null
-Warning 1048 Column 'col2' cannot be null
-INSERT IGNORE INTO t1 (col1) values (3);
-Warnings:
-Warning 1364 Field 'col2' doesn't have a default value
-INSERT IGNORE INTO t1 () values ();
-Warnings:
-Warning 1364 Field 'col2' doesn't have a default value
-SELECT * FROM t1;
-col1 col2
-1 hello
-99 hello2
-0
-3
-99
-DROP TABLE t1;
-set sql_mode='traditional';
-create table t1 (charcol char(255), varcharcol varchar(255),
-binarycol binary(255), varbinarycol varbinary(255), tinytextcol tinytext,
-tinyblobcol tinyblob);
-insert into t1 (charcol) values (repeat('x',256));
-ERROR 22001: Data too long for column 'charcol' at row 1
-insert into t1 (varcharcol) values (repeat('x',256));
-ERROR 22001: Data too long for column 'varcharcol' at row 1
-insert into t1 (binarycol) values (repeat('x',256));
-ERROR 22001: Data too long for column 'binarycol' at row 1
-insert into t1 (varbinarycol) values (repeat('x',256));
-ERROR 22001: Data too long for column 'varbinarycol' at row 1
-insert into t1 (tinytextcol) values (repeat('x',256));
-ERROR 22001: Data too long for column 'tinytextcol' at row 1
-insert into t1 (tinyblobcol) values (repeat('x',256));
-ERROR 22001: Data too long for column 'tinyblobcol' at row 1
-select * from t1;
-charcol varcharcol binarycol varbinarycol tinytextcol tinyblobcol
-drop table t1;
-set sql_mode='traditional';
-create table t1 (col1 datetime);
-insert into t1 values(STR_TO_DATE('31.10.2004 15.30 abc','%d.%m.%Y %H.%i'));
-ERROR 22007: Truncated incorrect datetime value: '31.10.2004 15.30 abc'
-insert into t1 values(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));
-ERROR HY000: Incorrect datetime value: '32.10.2004 15.30' for function str_to_date
-insert into t1 values(STR_TO_DATE('2004.12.12 22:22:33 AM','%Y.%m.%d %r'));
-ERROR HY000: Incorrect time value: '22:22:33 AM' for function str_to_date
-insert into t1 values(STR_TO_DATE('2004.12.12 abc','%Y.%m.%d %T'));
-ERROR HY000: Incorrect time value: 'abc' for function str_to_date
-set sql_mode='';
-insert into t1 values(STR_TO_DATE('31.10.2004 15.30 abc','%d.%m.%Y %H.%i'));
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '31.10.2004 15.30 abc'
-insert into t1 values(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));
-Warnings:
-Warning 1411 Incorrect datetime value: '32.10.2004 15.30' for function str_to_date
-insert into t1 values(STR_TO_DATE('2004.12.12 22:22:33 AM','%Y.%m.%d %r'));
-Warnings:
-Warning 1411 Incorrect time value: '22:22:33 AM' for function str_to_date
-insert into t1 values(STR_TO_DATE('2004.12.12 abc','%Y.%m.%d %T'));
-Warnings:
-Warning 1411 Incorrect time value: 'abc' for function str_to_date
-insert into t1 values(STR_TO_DATE('31.10.2004 15.30','%d.%m.%Y %H.%i'));
-insert into t1 values(STR_TO_DATE('2004.12.12 11:22:33 AM','%Y.%m.%d %r'));
-insert into t1 values(STR_TO_DATE('2004.12.12 10:22:59','%Y.%m.%d %T'));
-select * from t1;
-col1
-2004-10-31 15:30:00
-NULL
-NULL
-NULL
-2004-10-31 15:30:00
-2004-12-12 11:22:33
-2004-12-12 10:22:59
-set sql_mode='traditional';
-select count(*) from t1 where STR_TO_DATE('2004.12.12 10:22:61','%Y.%m.%d %T') IS NULL;
-count(*)
-7
-Warnings:
-Warning 1411 Incorrect datetime value: '2004.12.12 10:22:61' for function str_to_date
-drop table t1;
-create table t1 (col1 char(3), col2 integer);
-insert into t1 (col1) values (cast(1000 as char(3)));
-ERROR 22007: Truncated incorrect CHAR(3) value: '1000'
-insert into t1 (col1) values (cast(1000E+0 as char(3)));
-ERROR 22007: Truncated incorrect CHAR(3) value: '1000'
-insert into t1 (col1) values (cast(1000.0 as char(3)));
-ERROR 22007: Truncated incorrect CHAR(3) value: '1000.0'
-insert into t1 (col2) values (cast('abc' as signed integer));
-ERROR 22007: Truncated incorrect INTEGER value: 'abc'
-insert into t1 (col2) values (10E+0 + 'a');
-ERROR 22007: Truncated incorrect DOUBLE value: 'a'
-insert into t1 (col2) values (cast('10a' as unsigned integer));
-ERROR 22007: Truncated incorrect INTEGER value: '10a'
-insert into t1 (col2) values (cast('10' as unsigned integer));
-insert into t1 (col2) values (cast('10' as signed integer));
-insert into t1 (col2) values (10E+0 + '0 ');
-Warnings:
-Note 1292 Truncated incorrect DOUBLE value: '0 '
-select * from t1;
-col1 col2
-NULL 10
-NULL 10
-NULL 10
-drop table t1;
-create table t1 (col1 date, col2 datetime, col3 timestamp);
-insert into t1 values (0,0,0);
-ERROR 22007: Incorrect date value: '0' for column 'col1' at row 1
-insert into t1 values (0.0,0.0,0.0);
-ERROR 22007: Incorrect date value: '0.0' for column 'col1' at row 1
-insert into t1 (col1) values (convert('0000-00-00',date));
-ERROR 22007: Incorrect datetime value: '0000-00-00'
-insert into t1 (col1) values (cast('0000-00-00' as date));
-ERROR 22007: Incorrect datetime value: '0000-00-00'
-set sql_mode='no_zero_date';
-insert into t1 values (0,0,0);
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1265 Data truncated for column 'col3' at row 1
-insert into t1 values (0.0,0.0,0.0);
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col2' at row 1
-Warning 1265 Data truncated for column 'col3' at row 1
-drop table t1;
-set sql_mode='traditional';
-create table t1 (col1 date);
-insert ignore into t1 values ('0000-00-00');
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-insert into t1 select * from t1;
-ERROR 22007: Incorrect date value: '0000-00-00' for column 'col1' at row 1
-insert ignore into t1 values ('0000-00-00');
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-insert ignore into t1 (col1) values (cast('0000-00-00' as date));
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00'
-insert into t1 select * from t1;
-ERROR 22007: Incorrect date value: '0000-00-00' for column 'col1' at row 1
-alter table t1 modify col1 datetime;
-ERROR 22007: Incorrect datetime value: '0000-00-00' for column 'col1' at row 1
-alter ignore table t1 modify col1 datetime;
-Warnings:
-Warning 1264 Out of range value for column 'col1' at row 1
-Warning 1264 Out of range value for column 'col1' at row 2
-insert into t1 select * from t1;
-ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'col1' at row 1
-select * from t1;
-col1
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-NULL
-drop table t1;
-create table t1 (col1 tinyint);
-drop procedure if exists t1;
-Warnings:
-Note 1305 PROCEDURE test.t1 does not exist
-create procedure t1 () begin declare exit handler for sqlexception
-select'a'; insert into t1 values (200); end;|
-call t1();
-a
-a
-select * from t1;
-col1
-drop procedure t1;
-drop table t1;
-set sql_mode=@org_mode;
-SET @@sql_mode = 'traditional';
-CREATE TABLE t1 (i int not null);
-INSERT INTO t1 VALUES ();
-ERROR HY000: Field 'i' doesn't have a default value
-INSERT INTO t1 VALUES (DEFAULT);
-ERROR HY000: Field 'i' doesn't have a default value
-INSERT INTO t1 VALUES (DEFAULT(i));
-ERROR HY000: Field 'i' doesn't have a default value
-ALTER TABLE t1 ADD j int;
-INSERT INTO t1 SET j = 1;
-ERROR HY000: Field 'i' doesn't have a default value
-INSERT INTO t1 SET j = 1, i = DEFAULT;
-ERROR HY000: Field 'i' doesn't have a default value
-INSERT INTO t1 SET j = 1, i = DEFAULT(i);
-ERROR HY000: Field 'i' doesn't have a default value
-INSERT INTO t1 VALUES (DEFAULT,1);
-ERROR HY000: Field 'i' doesn't have a default value
-DROP TABLE t1;
-SET @@sql_mode = '';
-CREATE TABLE t1 (i int not null);
-INSERT INTO t1 VALUES ();
-Warnings:
-Warning 1364 Field 'i' doesn't have a default value
-INSERT INTO t1 VALUES (DEFAULT);
-Warnings:
-Warning 1364 Field 'i' doesn't have a default value
-INSERT INTO t1 VALUES (DEFAULT(i));
-ERROR HY000: Field 'i' doesn't have a default value
-ALTER TABLE t1 ADD j int;
-INSERT INTO t1 SET j = 1;
-Warnings:
-Warning 1364 Field 'i' doesn't have a default value
-INSERT INTO t1 SET j = 1, i = DEFAULT;
-Warnings:
-Warning 1364 Field 'i' doesn't have a default value
-INSERT INTO t1 SET j = 1, i = DEFAULT(i);
-ERROR HY000: Field 'i' doesn't have a default value
-INSERT INTO t1 VALUES (DEFAULT,1);
-Warnings:
-Warning 1364 Field 'i' doesn't have a default value
-DROP TABLE t1;
-set @@sql_mode='traditional';
-create table t1(a varchar(65537));
-ERROR 42000: Column length too big for column 'a' (max = 65532); use BLOB or TEXT instead
-create table t1(a varbinary(65537));
-ERROR 42000: Column length too big for column 'a' (max = 65532); use BLOB or TEXT instead
-set @@sql_mode='traditional';
-create table t1(a int, b date not null);
-alter table t1 modify a bigint unsigned not null;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bigint(20) unsigned NOT NULL,
- `b` date NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @@sql_mode='traditional';
-create table t1 (d date);
-insert into t1 values ('2000-10-00');
-ERROR 22007: Incorrect date value: '2000-10-00' for column 'd' at row 1
-insert into t1 values (1000);
-ERROR 22007: Incorrect date value: '1000' for column 'd' at row 1
-insert into t1 values ('2000-10-01');
-update t1 set d = 1100;
-ERROR 22007: Incorrect date value: '1100' for column 'd' at row 1
-select * from t1;
-d
-2000-10-01
-drop table t1;
-set @@sql_mode='traditional';
-create table t1(a int, b timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-alter table t1 add primary key(a);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1(a int, b timestamp not null default 20050102030405);
-alter table t1 add primary key(a);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` timestamp NOT NULL DEFAULT '2005-01-02 03:04:05',
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @@sql_mode='traditional';
-create table t1(a bit(2));
-insert into t1 values(b'101');
-ERROR 22001: Data too long for column 'a' at row 1
-select * from t1;
-a
-drop table t1;
-set sql_mode='traditional';
-create table t1 (date date not null);
-create table t2 select date from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `date` date NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t2,t1;
-set @@sql_mode= @org_mode;
-set @@sql_mode='traditional';
-create table t1 (i int)
-comment '123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*123456789*';
-ERROR HY000: Comment for table 't1' is too long (max = 2048)
-create table t1 (
-i int comment
-'123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*');
-ERROR HY000: Comment for field 'i' is too long (max = 1024)
-set @@sql_mode= @org_mode;
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1
-(i int comment
-'123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*');
-Warnings:
-Warning 1629 Comment for field 'i' is too long (max = 1024)
-select column_name, column_comment from information_schema.columns where
-table_schema = 'test' and table_name = 't1';
-column_name column_comment
-i 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*123456789*
- 123456789*123456789*123456789*12345
-drop table t1;
-set names utf8;
-create table t1 (i int)
-comment '123456789*123456789*123456789*123456789*123456789*123456789*';
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='123456789*123456789*123456789*123456789*123456789*123456789*'
-drop table t1;
-CREATE TABLE t3 (f1 INT) COMMENT 'כקבהחןכקבהחןכקבהחןכקבהחןכקבהחןכקבהחןכקבהחןכקבהחןכקבהחןכקבהחן';
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `f1` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='כקבהחןכקבהחןכקבהחןכקבהחןכקבהחןכקבהחןכקבהחןכקבהחןכקבהחןכקבהחן'
-DROP TABLE t3;
-set sql_mode= 'traditional';
-create table t1(col1 tinyint, col2 tinyint unsigned,
-col3 smallint, col4 smallint unsigned,
-col5 mediumint, col6 mediumint unsigned,
-col7 int, col8 int unsigned,
-col9 bigint, col10 bigint unsigned);
-insert into t1(col1) values('-');
-ERROR 22007: Incorrect integer value: '-' for column 'col1' at row 1
-insert into t1(col2) values('+');
-ERROR 22007: Incorrect integer value: '+' for column 'col2' at row 1
-insert into t1(col3) values('-');
-ERROR 22007: Incorrect integer value: '-' for column 'col3' at row 1
-insert into t1(col4) values('+');
-ERROR 22007: Incorrect integer value: '+' for column 'col4' at row 1
-insert into t1(col5) values('-');
-ERROR 22007: Incorrect integer value: '-' for column 'col5' at row 1
-insert into t1(col6) values('+');
-ERROR 22007: Incorrect integer value: '+' for column 'col6' at row 1
-insert into t1(col7) values('-');
-ERROR 22007: Incorrect integer value: '-' for column 'col7' at row 1
-insert into t1(col8) values('+');
-ERROR 22007: Incorrect integer value: '+' for column 'col8' at row 1
-insert into t1(col9) values('-');
-ERROR 22007: Incorrect integer value: '-' for column 'col9' at row 1
-insert into t1(col10) values('+');
-ERROR 22007: Incorrect integer value: '+' for column 'col10' at row 1
-drop table t1;
-set sql_mode='traditional';
-create table t1(a year);
-insert into t1 values ('-');
-ERROR 22007: Incorrect integer value: '-' for column 'a' at row 1
-insert into t1 values ('+');
-ERROR 22007: Incorrect integer value: '+' for column 'a' at row 1
-insert into t1 values ('');
-ERROR 22007: Incorrect integer value: '' for column 'a' at row 1
-insert into t1 values ('2000a');
-ERROR 01000: Data truncated for column 'a' at row 1
-insert into t1 values ('2E3x');
-ERROR 01000: Data truncated for column 'a' at row 1
-drop table t1;
-set sql_mode='traditional';
-create table t1 (f1 set('a','a'));
-ERROR HY000: Column 'f1' has duplicated value 'a' in SET
-create table t1 (f1 enum('a','a'));
-ERROR HY000: Column 'f1' has duplicated value 'a' in ENUM
-set @@sql_mode='NO_ZERO_DATE';
-create table t1(a datetime not null);
-select count(*) from t1 where a is null;
-count(*)
-0
-drop table t1;
-End of 5.0 tests
-#
-# Start of 5.6 tests
-#
-#
-# WL#946 TIME/TIMESTAMP/DATETIME with fractional seconds: CAST to DATETIME
-#
-#
-# STR_TO_DATE with NO_ZERO_DATE did not return NULL (with warning)
-# in get_date(). Only did in val_str() and val_int().
-SET sql_mode='NO_ZERO_DATE';
-SELECT STR_TO_DATE('2001','%Y'),CONCAT(STR_TO_DATE('2001','%Y')), STR_TO_DATE('2001','%Y')+1, STR_TO_DATE('0','%Y')+1, STR_TO_DATE('0000','%Y')+1;
-STR_TO_DATE('2001','%Y') CONCAT(STR_TO_DATE('2001','%Y')) STR_TO_DATE('2001','%Y')+1 STR_TO_DATE('0','%Y')+1 STR_TO_DATE('0000','%Y')+1
-2001-00-00 2001-00-00 20010001 20000001 NULL
-Warnings:
-Warning 1411 Incorrect datetime value: '0000' for function str_to_date
-SET sql_mode='NO_ZERO_IN_DATE';
-SELECT STR_TO_DATE('2001','%Y'),CONCAT(STR_TO_DATE('2001','%Y')), STR_TO_DATE('2001','%Y')+1, STR_TO_DATE('0000','%Y')+1;
-STR_TO_DATE('2001','%Y') CONCAT(STR_TO_DATE('2001','%Y')) STR_TO_DATE('2001','%Y')+1 STR_TO_DATE('0000','%Y')+1
-NULL NULL NULL 1
-Warnings:
-Warning 1411 Incorrect datetime value: '2001' for function str_to_date
-Warning 1411 Incorrect datetime value: '2001' for function str_to_date
-Warning 1411 Incorrect datetime value: '2001' for function str_to_date
-#
-# End of 5.6 tests
-#
diff --git a/mysql-test/r/strict_autoinc_1myisam.result b/mysql-test/r/strict_autoinc_1myisam.result
deleted file mode 100644
index b22540f295b..00000000000
--- a/mysql-test/r/strict_autoinc_1myisam.result
+++ /dev/null
@@ -1,26 +0,0 @@
-drop table if exists t1;
-set @org_mode=@@sql_mode;
-create table t1
-(
-`a` tinyint(4) NOT NULL auto_increment,
-primary key (`a`)
-) engine = 'MYISAM' ;
-set @@sql_mode='strict_all_tables';
-insert into t1 values(1000);
-ERROR 22003: Out of range value for column 'a' at row 1
-select count(*) from t1;
-count(*)
-0
-set auto_increment_increment=1000;
-set auto_increment_offset=700;
-insert into t1 values(null);
-ERROR 22003: Out of range value for column 'a' at row 1
-select count(*) from t1;
-count(*)
-0
-set @@sql_mode=@org_mode;
-insert into t1 values(null);
-ERROR 22003: Out of range value for column 'a' at row 1
-select * from t1;
-a
-drop table t1;
diff --git a/mysql-test/r/strict_autoinc_2innodb.result b/mysql-test/r/strict_autoinc_2innodb.result
deleted file mode 100644
index 1cf720da12a..00000000000
--- a/mysql-test/r/strict_autoinc_2innodb.result
+++ /dev/null
@@ -1,26 +0,0 @@
-drop table if exists t1;
-set @org_mode=@@sql_mode;
-create table t1
-(
-`a` tinyint(4) NOT NULL auto_increment,
-primary key (`a`)
-) engine = 'InnoDB' ;
-set @@sql_mode='strict_all_tables';
-insert into t1 values(1000);
-ERROR 22003: Out of range value for column 'a' at row 1
-select count(*) from t1;
-count(*)
-0
-set auto_increment_increment=1000;
-set auto_increment_offset=700;
-insert into t1 values(null);
-ERROR 22003: Out of range value for column 'a' at row 1
-select count(*) from t1;
-count(*)
-0
-set @@sql_mode=@org_mode;
-insert into t1 values(null);
-ERROR 22003: Out of range value for column 'a' at row 1
-select * from t1;
-a
-drop table t1;
diff --git a/mysql-test/r/strict_autoinc_3heap.result b/mysql-test/r/strict_autoinc_3heap.result
deleted file mode 100644
index 21eea537af5..00000000000
--- a/mysql-test/r/strict_autoinc_3heap.result
+++ /dev/null
@@ -1,26 +0,0 @@
-drop table if exists t1;
-set @org_mode=@@sql_mode;
-create table t1
-(
-`a` tinyint(4) NOT NULL auto_increment,
-primary key (`a`)
-) engine = 'MEMORY' ;
-set @@sql_mode='strict_all_tables';
-insert into t1 values(1000);
-ERROR 22003: Out of range value for column 'a' at row 1
-select count(*) from t1;
-count(*)
-0
-set auto_increment_increment=1000;
-set auto_increment_offset=700;
-insert into t1 values(null);
-ERROR 22003: Out of range value for column 'a' at row 1
-select count(*) from t1;
-count(*)
-0
-set @@sql_mode=@org_mode;
-insert into t1 values(null);
-ERROR 22003: Out of range value for column 'a' at row 1
-select * from t1;
-a
-drop table t1;
diff --git a/mysql-test/r/subselect.result b/mysql-test/r/subselect.result
deleted file mode 100644
index 1c087a3199c..00000000000
--- a/mysql-test/r/subselect.result
+++ /dev/null
@@ -1,7285 +0,0 @@
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t11,t12;
-drop view if exists v2;
-call mtr.add_suppression("Sort aborted.*");
-set @subselect_tmp=@@optimizer_switch;
-set @@optimizer_switch=ifnull(@optimizer_switch_for_subselect_test,
-"semijoin=on,firstmatch=on,loosescan=on,semijoin_with_cache=on,partial_match_rowid_merge=off,partial_match_table_scan=off");
-set join_cache_level=1;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-select (select 2);
-(select 2)
-2
-explain extended select (select 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select 2 AS `(select 2)`
-SELECT (SELECT 1) UNION SELECT (SELECT 2);
-(SELECT 1)
-1
-2
-explain extended SELECT (SELECT 1) UNION SELECT (SELECT 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1249 Select 4 was reduced during optimization
-Note 1003 /* select#1 */ select 1 AS `(SELECT 1)` union /* select#3 */ select 2 AS `(SELECT 2)`
-SELECT (SELECT (SELECT 0 UNION SELECT 0));
-(SELECT (SELECT 0 UNION SELECT 0))
-0
-explain extended SELECT (SELECT (SELECT 0 UNION SELECT 0));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 /* select#1 */ select (/* select#3 */ select 0 union /* select#4 */ select 0) AS `(SELECT (SELECT 0 UNION SELECT 0))`
-SELECT (SELECT 1 FROM (SELECT 1) as b HAVING a=1) as a;
-ERROR 42S22: Reference 'a' not supported (forward reference in item list)
-SELECT (SELECT 1 FROM (SELECT 1) as b HAVING b=1) as a,(SELECT 1 FROM (SELECT 1) as c HAVING a=1) as b;
-ERROR 42S22: Reference 'b' not supported (forward reference in item list)
-SELECT (SELECT 1),MAX(1) FROM (SELECT 1) as a;
-(SELECT 1) MAX(1)
-1 1
-SELECT (SELECT a) as a;
-ERROR 42S22: Reference 'a' not supported (forward reference in item list)
-EXPLAIN EXTENDED SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 1 100.00
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1276 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
-Note 1276 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 1 AS `1` from dual having (/* select#3 */ select 1) = 1
-SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
-1
-1
-SELECT (SELECT 1), a;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT 1 as a FROM (SELECT 1) as b HAVING (SELECT a)=1;
-a
-1
-SELECT 1 FROM (SELECT (SELECT a) b) c;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT * FROM (SELECT 1 as id) b WHERE id IN (SELECT * FROM (SELECT 1 as id) c ORDER BY id);
-id
-1
-SELECT * FROM (SELECT 1) a WHERE 1 IN (SELECT 1,1);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT 1 IN (SELECT 1);
-1 IN (SELECT 1)
-1
-SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
-1
-1
-select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE(1))' at line 1
-SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1))' at line 1
-SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT (SELECT 1,2,3) = ROW(1,2,3);
-(SELECT 1,2,3) = ROW(1,2,3)
-1
-SELECT (SELECT 1,2,3) = ROW(1,2,1);
-(SELECT 1,2,3) = ROW(1,2,1)
-0
-SELECT (SELECT 1,2,3) < ROW(1,2,1);
-(SELECT 1,2,3) < ROW(1,2,1)
-0
-SELECT (SELECT 1,2,3) > ROW(1,2,1);
-(SELECT 1,2,3) > ROW(1,2,1)
-1
-SELECT (SELECT 1,2,3) = ROW(1,2,NULL);
-(SELECT 1,2,3) = ROW(1,2,NULL)
-NULL
-SELECT ROW(1,2,3) = (SELECT 1,2,3);
-ROW(1,2,3) = (SELECT 1,2,3)
-1
-SELECT ROW(1,2,3) = (SELECT 1,2,1);
-ROW(1,2,3) = (SELECT 1,2,1)
-0
-SELECT ROW(1,2,3) < (SELECT 1,2,1);
-ROW(1,2,3) < (SELECT 1,2,1)
-0
-SELECT ROW(1,2,3) > (SELECT 1,2,1);
-ROW(1,2,3) > (SELECT 1,2,1)
-1
-SELECT ROW(1,2,3) = (SELECT 1,2,NULL);
-ROW(1,2,3) = (SELECT 1,2,NULL)
-NULL
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,2,'a');
-(SELECT 1.5,2,'a') = ROW(1.5,2,'a')
-1
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,2,'b');
-(SELECT 1.5,2,'a') = ROW(1.5,2,'b')
-0
-SELECT (SELECT 1.5,2,'a') = ROW('1.5b',2,'b');
-(SELECT 1.5,2,'a') = ROW('1.5b',2,'b')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1.5b'
-SELECT (SELECT 'b',2,'a') = ROW(1.5,2,'a');
-(SELECT 'b',2,'a') = ROW(1.5,2,'a')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,'2','a');
-(SELECT 1.5,2,'a') = ROW(1.5,'2','a')
-1
-SELECT (SELECT 1.5,'c','a') = ROW(1.5,2,'a');
-(SELECT 1.5,'c','a') = ROW(1.5,2,'a')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-SELECT (SELECT * FROM (SELECT 'test' a,'test' b) a);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT 1 as a,(SELECT a+a) b,(SELECT b);
-a b (SELECT b)
-1 2 2
-create table t1 (a int);
-create table t2 (a int, b int);
-create table t3 (a int);
-create table t4 (a int not null, b int not null);
-insert into t1 values (2);
-insert into t2 values (1,7),(2,7);
-insert into t4 values (4,8),(3,8),(5,9);
-select (select a from t1 where t1.a = a1) as a2, (select b from t2 where t2.b=a2) as a1;
-ERROR 42S22: Reference 'a1' not supported (forward reference in item list)
-select (select a from t1 where t1.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a) a
-NULL 1
-2 2
-select (select a from t1 where t1.a=t2.b), a from t2;
-(select a from t1 where t1.a=t2.b) a
-NULL 1
-NULL 2
-select (select a from t1), a, (select 1 union select 2 limit 1) from t2;
-(select a from t1) a (select 1 union select 2 limit 1)
-2 1 1
-2 2 1
-select (select a from t3), a from t2;
-(select a from t3) a
-NULL 1
-NULL 2
-select * from t2 where t2.a=(select a from t1);
-a b
-2 7
-insert into t3 values (6),(7),(3);
-select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1);
-a b
-1 7
-2 7
-(select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 order by a limit 2) limit 3;
-a b
-1 7
-2 7
-3 8
-(select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 where t4.b=(select max(t2.a)*4 from t2) order by a);
-a b
-1 7
-2 7
-4 8
-3 8
-explain extended (select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 where t4.b=(select max(t2.a)*4 from t2) order by a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-3 UNION t4 ALL NULL NULL NULL NULL 3 100.00 Using where
-4 SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00
-NULL UNION RESULT <union1,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 (/* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`b` = (/* select#2 */ select `test`.`t3`.`a` from `test`.`t3` order by 1 desc limit 1)) union (/* select#3 */ select `test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b` from `test`.`t4` where `test`.`t4`.`b` = (/* select#4 */ select max(`test`.`t2`.`a`) * 4 from `test`.`t2`))
-select (select a from t3 where a<t2.a*4 order by 1 desc limit 1), a from t2;
-(select a from t3 where a<t2.a*4 order by 1 desc limit 1) a
-3 1
-7 2
-select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
-(select * from t2 where a>1) as tt;
-(select t3.a from t3 where a<8 order by 1 desc limit 1) a
-7 2
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-explain extended select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
-(select * from t2 where a>1) as tt;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select `test`.`t3`.`a` from `test`.`t3` where `test`.`t3`.`a` < 8 order by 1 desc limit 1) AS `(select t3.a from t3 where a<8 order by 1 desc limit 1)`,`tt`.`a` AS `a` from (/* select#3 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`a` > 1) `tt`
-set optimizer_switch=@tmp_optimizer_switch;
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3) order by 1 desc limit 1);
-a
-2
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3 where t3.a > t1.a) order by 1 desc limit 1);
-a
-2
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3 where t3.a < t1.a) order by 1 desc limit 1);
-a
-select b,(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2) from t4;
-b (select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2)
-8 7.5000
-8 4.5000
-9 7.5000
-explain extended select b,(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2) from t4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t4 ALL NULL NULL NULL NULL 3 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t4.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t4`.`b` AS `b`,<expr_cache><`test`.`t4`.`a`>((/* select#2 */ select avg(`test`.`t2`.`a` + (/* select#3 */ select min(`test`.`t3`.`a`) from `test`.`t3` where `test`.`t3`.`a` >= `test`.`t4`.`a`)) from `test`.`t2`)) AS `(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2)` from `test`.`t4`
-select * from t3 where exists (select * from t2 where t2.b=t3.a);
-a
-7
-select * from t3 where not exists (select * from t2 where t2.b=t3.a);
-a
-6
-3
-select * from t3 where a in (select b from t2);
-a
-7
-select * from t3 where a not in (select b from t2);
-a
-6
-3
-select * from t3 where a = some (select b from t2);
-a
-7
-select * from t3 where a <> any (select b from t2);
-a
-6
-3
-select * from t3 where a = all (select b from t2);
-a
-7
-select * from t3 where a <> all (select b from t2);
-a
-6
-3
-insert into t2 values (100, 5);
-select * from t3 where a < any (select b from t2);
-a
-6
-3
-select * from t3 where a < all (select b from t2);
-a
-3
-select * from t3 where a >= any (select b from t2);
-a
-6
-7
-explain extended select * from t3 where a >= any (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(`test`.`t2`.`b`) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= all (select b from t2);
-a
-7
-delete from t2 where a=100;
-select * from t3 where a in (select a,b from t2);
-ERROR 21000: Operand should contain 1 column(s)
-select * from t3 where a in (select * from t2);
-ERROR 21000: Operand should contain 1 column(s)
-insert into t4 values (12,7),(1,7),(10,9),(9,6),(7,6),(3,9),(1,10);
-select b,max(a) as ma from t4 group by b having b < (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-insert into t2 values (2,10);
-select b,max(a) as ma from t4 group by b having ma < (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-10 1
-delete from t2 where a=2 and b=10;
-select b,max(a) as ma from t4 group by b having b >= (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-7 12
-create table t5 (a int);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-insert into t5 values (5);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-insert into t5 values (2);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-explain extended select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-3 DEPENDENT UNION t5 ALL NULL NULL NULL NULL 2 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1276 Field or reference 'test.t2.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t2.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select <expr_cache><`test`.`t2`.`a`>((/* select#2 */ select 2 from dual where 2 = `test`.`t2`.`a` union /* select#3 */ select `test`.`t5`.`a` from `test`.`t5` where `test`.`t5`.`a` = `test`.`t2`.`a`)) AS `(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a)`,`test`.`t2`.`a` AS `a` from `test`.`t2`
-select (select a from t1 where t1.a=t2.a union all select a from t5 where t5.a=t2.a), a from t2;
-ERROR 21000: Subquery returns more than 1 row
-create table t6 (patient_uq int, clinic_uq int, index i1 (clinic_uq));
-create table t7( uq int primary key, name char(25));
-insert into t7 values(1,"Oblastnaia bolnitsa"),(2,"Bolnitsa Krasnogo Kresta");
-insert into t6 values (1,1),(1,2),(2,2),(1,3);
-select * from t6 where exists (select * from t7 where uq = clinic_uq);
-patient_uq clinic_uq
-1 1
-1 2
-2 2
-explain extended select * from t6 where exists (select * from t7 where uq = clinic_uq);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t7 index PRIMARY PRIMARY 4 NULL 2 100.00 Using index
-1 PRIMARY t6 ALL i1 NULL NULL NULL 4 75.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.t6.clinic_uq' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`t6`.`patient_uq` AS `patient_uq`,`test`.`t6`.`clinic_uq` AS `clinic_uq` from `test`.`t7` join `test`.`t6` where `test`.`t6`.`clinic_uq` = `test`.`t7`.`uq`
-select * from t1 where a= (select a from t2,t4 where t2.b=t4.b);
-ERROR 23000: Column 'a' in field list is ambiguous
-drop table t1,t2,t3;
-CREATE TABLE t3 (a varchar(20),b char(1) NOT NULL default '0');
-INSERT INTO t3 VALUES ('W','a'),('A','c'),('J','b');
-CREATE TABLE t2 (a varchar(20),b int NOT NULL default '0');
-INSERT INTO t2 VALUES ('W','1'),('A','3'),('J','2');
-CREATE TABLE t1 (a varchar(20),b date NOT NULL default '0000-00-00');
-INSERT INTO t1 VALUES ('W','1732-02-22'),('A','1735-10-30'),('J','1743-04-13');
-SELECT * FROM t1 WHERE b = (SELECT MIN(b) FROM t1);
-a b
-W 1732-02-22
-SELECT * FROM t2 WHERE b = (SELECT MIN(b) FROM t2);
-a b
-W 1
-SELECT * FROM t3 WHERE b = (SELECT MIN(b) FROM t3);
-a b
-W a
-CREATE TABLE `t8` (
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-`email` varchar(60) character set latin1 NOT NULL default '',
-PRIMARY KEY (`pseudo`),
-UNIQUE KEY `email` (`email`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t8 (pseudo,email) VALUES ('joce','test');
-INSERT INTO t8 (pseudo,email) VALUES ('joce1','test1');
-INSERT INTO t8 (pseudo,email) VALUES ('2joce1','2test1');
-EXPLAIN EXTENDED SELECT pseudo,(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce')) FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-4 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-2 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00
-3 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select 'test' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo,email FROM
-t8 WHERE pseudo='joce');
-ERROR HY000: Illegal parameter data types varchar and row for operation '='
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT * FROM t8 WHERE
-pseudo='joce');
-ERROR HY000: Illegal parameter data types varchar and row for operation '='
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce');
-pseudo
-joce
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo LIKE '%joce%');
-ERROR 21000: Subquery returns more than 1 row
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8;
-CREATE TABLE `t1` (
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (topic,date,pseudo) VALUES
-('43506','2002-10-02','joce'),('40143','2002-08-03','joce');
-EXPLAIN EXTENDED SELECT DISTINCT date FROM t1 WHERE date='2002-08-03';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index NULL PRIMARY 43 NULL 2 100.00 Using where; Using index
-Warnings:
-Note 1003 select distinct `test`.`t1`.`date` AS `date` from `test`.`t1` where `test`.`t1`.`date` = DATE'2002-08-03'
-EXPLAIN EXTENDED SELECT (SELECT DISTINCT date FROM t1 WHERE date='2002-08-03');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t1 index NULL PRIMARY 43 NULL 2 100.00 Using where; Using index
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select distinct `test`.`t1`.`date` from `test`.`t1` where `test`.`t1`.`date` = DATE'2002-08-03') AS `(SELECT DISTINCT date FROM t1 WHERE date='2002-08-03')`
-SELECT DISTINCT date FROM t1 WHERE date='2002-08-03';
-date
-2002-08-03
-SELECT (SELECT DISTINCT date FROM t1 WHERE date='2002-08-03');
-(SELECT DISTINCT date FROM t1 WHERE date='2002-08-03')
-2002-08-03
-SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION SELECT 1) UNION ALL SELECT 1;
-1
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION ALL SELECT 1) UNION SELECT 1;
-ERROR 21000: Subquery returns more than 1 row
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION SELECT 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL topic 3 NULL 2 100.00 Using index
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-drop table t1;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM ROW_FORMAT=FIXED;
-INSERT INTO t1 (numeropost,maxnumrep) VALUES (40143,1),(43506,2);
-CREATE TABLE `t2` (
-`mot` varchar(30) NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`)
-) ENGINE=MyISAM ROW_FORMAT=DYNAMIC;
-INSERT INTO t2 (mot,topic,date,pseudo) VALUES ('joce','40143','2002-10-22','joce'), ('joce','43506','2002-10-22','joce');
-select numeropost as a FROM t1 GROUP BY (SELECT 1 FROM t1 HAVING a=1);
-a
-40143
-SELECT numeropost,maxnumrep FROM t1 WHERE exists (SELECT 1 FROM t2 WHERE (mot='joce') AND date >= '2002-10-21' AND t1.numeropost = t2.topic) ORDER BY maxnumrep DESC LIMIT 0, 20;
-numeropost maxnumrep
-43506 2
-40143 1
-SELECT (SELECT 1) as a FROM (SELECT 1 FROM t1 HAVING a=1) b;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT 1 IN (SELECT 1 FROM t2 HAVING a);
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-SELECT * from t2 where topic IN (SELECT SUM(topic) FROM t1);
-mot topic date pseudo
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-SELECT * from t2 where topic = any (SELECT SUM(topic) FROM t1);
-mot topic date pseudo
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT *, topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100) from t2;
-mot topic date pseudo topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100)
-joce 40143 2002-10-22 joce 1
-joce 43506 2002-10-22 joce 1
-SELECT * from t2 where topic = all (SELECT SUM(topic) FROM t2);
-mot topic date pseudo
-SELECT * from t2 where topic <> any (SELECT SUM(topic) FROM t2);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT *, topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000) from t2;
-mot topic date pseudo topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000)
-joce 40143 2002-10-22 joce 1
-joce 43506 2002-10-22 joce 0
-drop table t1,t2;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM ROW_FORMAT=FIXED;
-INSERT INTO t1 (numeropost,maxnumrep) VALUES (1,0),(2,1);
-select numeropost as a FROM t1 GROUP BY (SELECT 1 FROM t1 HAVING a=1);
-ERROR 21000: Subquery returns more than 1 row
-select numeropost as a FROM t1 ORDER BY (SELECT 1 FROM t1 HAVING a=1);
-ERROR 21000: Subquery returns more than 1 row
-show warnings;
-Level Code Message
-Error 1242 Subquery returns more than 1 row
-Error 1028 Sort aborted: Subquery returns more than 1 row
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-(select * from t1) union (select * from t1) order by (select a from t1 limit 1);
-a
-1
-2
-3
-drop table t1;
-CREATE TABLE t1 (field char(1) NOT NULL DEFAULT 'b');
-INSERT INTO t1 VALUES ();
-SELECT field FROM t1 WHERE 1=(SELECT 1 UNION ALL SELECT 1 FROM (SELECT 1) a HAVING field='b');
-ERROR 21000: Subquery returns more than 1 row
-drop table t1;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL default '0',
-`numreponse` int(10) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) NOT NULL default '',
-PRIMARY KEY (`numeropost`,`numreponse`),
-UNIQUE KEY `numreponse` (`numreponse`),
-KEY `pseudo` (`pseudo`,`numeropost`)
-) ENGINE=MyISAM;
-SELECT (SELECT numeropost FROM t1 HAVING numreponse=a),numreponse FROM (SELECT * FROM t1) as a;
-ERROR 42S22: Reference 'numreponse' not supported (forward reference in item list)
-SELECT numreponse, (SELECT numeropost FROM t1 HAVING numreponse=a) FROM (SELECT * FROM t1) as a;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT numreponse, (SELECT numeropost FROM t1 HAVING numreponse=1) FROM (SELECT * FROM t1) as a;
-numreponse (SELECT numeropost FROM t1 HAVING numreponse=1)
-INSERT INTO t1 (numeropost,numreponse,pseudo) VALUES (1,1,'joce'),(1,2,'joce'),(1,3,'test');
-EXPLAIN EXTENDED SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT 1 FROM t1 WHERE numeropost='1');
-ERROR 21000: Subquery returns more than 1 row
-SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT 1 FROM t1 WHERE numeropost='1');
-ERROR 21000: Subquery returns more than 1 row
-EXPLAIN EXTENDED SELECT MAX(numreponse) FROM t1 WHERE numeropost='1';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 select max(`test`.`t1`.`numreponse`) AS `MAX(numreponse)` from `test`.`t1` where `test`.`t1`.`numeropost` = '1'
-EXPLAIN EXTENDED SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT MAX(numreponse) FROM t1 WHERE numeropost='1');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 const PRIMARY,numreponse PRIMARY 7 const,const 1 100.00 Using index
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 /* select#1 */ select 3 AS `numreponse` from `test`.`t1` where 1
-drop table t1;
-CREATE TABLE t1 (a int(1));
-INSERT INTO t1 VALUES (1);
-SELECT 1 FROM (SELECT a FROM t1) b HAVING (SELECT b.a)=1;
-1
-1
-drop table t1;
-create table t1 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t1 values (0, 10),(1, 11),(2, 12);
-insert into t2 values (1, 21),(2, 22),(3, 23);
-select * from t1;
-a b
-0 10
-1 11
-2 12
-update t1 set b= (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-update t1 set b= (select b from t2 where t1.a = t2.a);
-select * from t1;
-a b
-0 NULL
-1 21
-2 22
-drop table t1, t2;
-create table t1 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t1 values (0, 10),(1, 11),(2, 12);
-insert into t2 values (1, 21),(2, 12),(3, 23);
-select * from t1;
-a b
-0 10
-1 11
-2 12
-select * from t1 where b = (select b from t2 where t1.a = t2.a);
-a b
-2 12
-delete from t1 where b in (select b from t1);
-affected rows: 3
-insert into t1 values (0, 10),(1, 11),(2, 12);
-delete from t1 where b = (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-delete from t1 where b = (select b from t2 where t1.a = t2.a);
-select * from t1 order by b;
-a b
-0 10
-1 11
-drop table t1, t2;
-create table t11 (a int NOT NULL, b int, primary key (a));
-create table t12 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t11 values (0, 10),(1, 11),(2, 12);
-insert into t12 values (33, 10),(22, 11),(2, 12);
-insert into t2 values (1, 21),(2, 12),(3, 23);
-select * from t11;
-a b
-0 10
-1 11
-2 12
-select * from t12;
-a b
-33 10
-22 11
-2 12
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t12 where t11.a = t12.a);
-ERROR HY000: Table 't12' is specified twice, both as a target for 'DELETE' and as a separate source for data
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t2 where t11.a = t2.a);
-select * from t11;
-a b
-0 10
-1 11
-select * from t12;
-a b
-33 10
-22 11
-drop table t11, t12, t2;
-CREATE TABLE t1 (x int) ENGINE=MyISAM;
-create table t2 (a int) ENGINE=MyISAM;
-create table t3 (b int);
-insert into t2 values (1);
-insert into t3 values (1),(2);
-INSERT INTO t1 (x) VALUES ((SELECT x FROM t1));
-ERROR HY000: Table 't1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-INSERT INTO t1 (x) VALUES ((SELECT b FROM t3));
-ERROR 21000: Subquery returns more than 1 row
-INSERT INTO t1 (x) VALUES ((SELECT a FROM t2));
-select * from t1;
-x
-1
-insert into t2 values (1);
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
-select * from t1;
-x
-1
-2
-INSERT INTO t1 (x) select (SELECT SUM(a)+1 FROM t2) FROM t2;
-select * from t1;
-x
-1
-2
-3
-3
-INSERT INTO t1 (x) select (SELECT SUM(x)+2 FROM t1) FROM t2;
-select * from t1;
-x
-1
-2
-3
-3
-11
-11
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(x) FROM t2));
-ERROR 42S22: Unknown column 'x' in 'field list'
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
-select * from t1;
-x
-1
-2
-3
-3
-11
-11
-2
-drop table t1, t2, t3;
-CREATE TABLE t1 (x int not null, y int, primary key (x)) ENGINE=MyISAM;
-create table t2 (a int);
-create table t3 (a int);
-insert into t2 values (1);
-insert into t3 values (1),(2);
-select * from t1;
-x y
-replace into t1 (x, y) VALUES ((SELECT x FROM t1), (SELECT a+1 FROM t2));
-ERROR HY000: Table 't1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-replace into t1 (x, y) VALUES ((SELECT a FROM t3), (SELECT a+1 FROM t2));
-ERROR 21000: Subquery returns more than 1 row
-replace into t1 (x, y) VALUES ((SELECT a FROM t2), (SELECT a+1 FROM t2));
-select * from t1;
-x y
-1 2
-replace into t1 (x, y) VALUES ((SELECT a FROM t2), (SELECT a+2 FROM t2));
-select * from t1;
-x y
-1 3
-replace DELAYED into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a FROM t2));
-select * from t1;
-x y
-1 3
-4 1
-replace DELAYED into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a+1 FROM t2));
-select * from t1;
-x y
-1 3
-4 2
-replace LOW_PRIORITY into t1 (x, y) VALUES ((SELECT a+1 FROM t2), (SELECT a FROM t2));
-select * from t1;
-x y
-1 3
-4 2
-2 1
-drop table t1, t2, t3;
-SELECT * FROM (SELECT 1) b WHERE 1 IN (SELECT *);
-ERROR HY000: No tables used
-CREATE TABLE t2 (id int(11) default NULL, KEY id (id)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (1),(2);
-SELECT * FROM t2 WHERE id IN (SELECT 1);
-id
-1
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ref id id 5 const 1 100.00 Using index
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t2`.`id` AS `id` from `test`.`t2` where `test`.`t2`.`id` = 1
-SELECT * FROM t2 WHERE id IN (SELECT 1 UNION SELECT 3);
-id
-1
-SELECT * FROM t2 WHERE id IN (SELECT 1+(select 1));
-id
-2
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1+(select 1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ref id id 5 const 1 100.00 Using where; Using index
-Warnings:
-Note 1249 Select 3 was reduced during optimization
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t2`.`id` AS `id` from `test`.`t2` where `test`.`t2`.`id` = <cache>(1 + 1)
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1 UNION SELECT 3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL id 5 NULL 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`id` AS `id` from `test`.`t2` where <expr_cache><`test`.`t2`.`id`>(<in_optimizer>(`test`.`t2`.`id`,<exists>(/* select#2 */ select 1 having <cache>(`test`.`t2`.`id`) = <ref_null_helper>(1) union /* select#3 */ select 3 having <cache>(`test`.`t2`.`id`) = <ref_null_helper>(3))))
-SELECT * FROM t2 WHERE id IN (SELECT 5 UNION SELECT 3);
-id
-SELECT * FROM t2 WHERE id IN (SELECT 5 UNION SELECT 2);
-id
-2
-INSERT INTO t2 VALUES ((SELECT * FROM t2));
-ERROR HY000: Table 't2' is specified twice, both as a target for 'INSERT' and as a separate source for data
-INSERT INTO t2 VALUES ((SELECT id FROM t2));
-ERROR HY000: Table 't2' is specified twice, both as a target for 'INSERT' and as a separate source for data
-SELECT * FROM t2;
-id
-1
-2
-CREATE TABLE t1 (id int(11) default NULL, KEY id (id)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 values (1),(1);
-UPDATE t2 SET id=(SELECT * FROM t1);
-ERROR 21000: Subquery returns more than 1 row
-drop table t2, t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-select 1 IN (SELECT * from t1);
-1 IN (SELECT * from t1)
-1
-select 10 IN (SELECT * from t1);
-10 IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a=2;
-select 1 IN (SELECT * from t1);
-1 IN (SELECT * from t1)
-1
-select 3 IN (SELECT * from t1);
-3 IN (SELECT * from t1)
-1
-select 10 IN (SELECT * from t1);
-10 IN (SELECT * from t1)
-NULL
-select 1 > ALL (SELECT * from t1);
-1 > ALL (SELECT * from t1)
-0
-select 10 > ALL (SELECT * from t1);
-10 > ALL (SELECT * from t1)
-NULL
-select 1 > ANY (SELECT * from t1);
-1 > ANY (SELECT * from t1)
-NULL
-select 10 > ANY (SELECT * from t1);
-10 > ANY (SELECT * from t1)
-1
-drop table t1;
-create table t1 (a varchar(20));
-insert into t1 values ('A'),('BC'),('DEF');
-select 'A' IN (SELECT * from t1);
-'A' IN (SELECT * from t1)
-1
-select 'XYZS' IN (SELECT * from t1);
-'XYZS' IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a='BC';
-select 'A' IN (SELECT * from t1);
-'A' IN (SELECT * from t1)
-1
-select 'DEF' IN (SELECT * from t1);
-'DEF' IN (SELECT * from t1)
-1
-select 'XYZS' IN (SELECT * from t1);
-'XYZS' IN (SELECT * from t1)
-NULL
-select 'A' > ALL (SELECT * from t1);
-'A' > ALL (SELECT * from t1)
-0
-select 'XYZS' > ALL (SELECT * from t1);
-'XYZS' > ALL (SELECT * from t1)
-NULL
-select 'A' > ANY (SELECT * from t1);
-'A' > ANY (SELECT * from t1)
-NULL
-select 'XYZS' > ANY (SELECT * from t1);
-'XYZS' > ANY (SELECT * from t1)
-1
-drop table t1;
-create table t1 (a float);
-insert into t1 values (1.5),(2.5),(3.5);
-select 1.5 IN (SELECT * from t1);
-1.5 IN (SELECT * from t1)
-1
-select 10.5 IN (SELECT * from t1);
-10.5 IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a=2.5;
-select 1.5 IN (SELECT * from t1);
-1.5 IN (SELECT * from t1)
-1
-select 3.5 IN (SELECT * from t1);
-3.5 IN (SELECT * from t1)
-1
-select 10.5 IN (SELECT * from t1);
-10.5 IN (SELECT * from t1)
-NULL
-select 1.5 > ALL (SELECT * from t1);
-1.5 > ALL (SELECT * from t1)
-0
-select 10.5 > ALL (SELECT * from t1);
-10.5 > ALL (SELECT * from t1)
-NULL
-select 1.5 > ANY (SELECT * from t1);
-1.5 > ANY (SELECT * from t1)
-NULL
-select 10.5 > ANY (SELECT * from t1);
-10.5 > ANY (SELECT * from t1)
-1
-explain extended select (select a+1) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t1`.`a` + 1 AS `(select a+1)` from `test`.`t1`
-select (select a+1) from t1;
-(select a+1)
-2.5
-NULL
-4.5
-drop table t1;
-CREATE TABLE t1 (a int(11) NOT NULL default '0', PRIMARY KEY (a));
-CREATE TABLE t2 (a int(11) default '0', INDEX (a));
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-INSERT INTO t2 VALUES (1),(2),(3);
-SELECT t1.a, t1.a in (select t2.a from t2) FROM t1;
-a t1.a in (select t2.a from t2)
-1 1
-2 1
-3 1
-4 0
-explain extended SELECT t1.a, t1.a in (select t2.a from t2) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 4 100.00 Using index
-2 SUBQUERY t2 index_subquery a a 5 func 2 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`a`) in t2 on a checking NULL having `test`.`t2`.`a` is null)))) AS `t1.a in (select t2.a from t2)` from `test`.`t1`
-CREATE TABLE t3 (a int(11) default '0');
-INSERT INTO t3 VALUES (1),(2),(3);
-SELECT t1.a, t1.a in (select t2.a from t2,t3 where t3.a=t2.a) FROM t1;
-a t1.a in (select t2.a from t2,t3 where t3.a=t2.a)
-1 1
-2 1
-3 1
-4 0
-explain extended SELECT t1.a, t1.a in (select t2.a from t2,t3 where t3.a=t2.a) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 4 100.00 Using index
-2 DEPENDENT SUBQUERY t2 ref_or_null a a 5 func 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `test`.`t2`.`a` from `test`.`t2` join `test`.`t3` where `test`.`t3`.`a` = `test`.`t2`.`a` and (<cache>(`test`.`t1`.`a`) = `test`.`t2`.`a` or `test`.`t2`.`a` is null) having `test`.`t2`.`a` is null))) AS `t1.a in (select t2.a from t2,t3 where t3.a=t2.a)` from `test`.`t1`
-drop table t1,t2,t3;
-# check correct NULL Processing for normal IN/ALL/ANY
-# and 2 ways of max/min optimization
-create table t1 (a int);
-insert into t1 values (1), (100), (NULL), (1000);
-create table t2 (a int not null);
-# subselect returns empty set (for NULL and non-NULL left part)
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 0
-100 0
-NULL 0
-1000 0
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 0
-100 0
-NULL 0
-1000 0
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 1
-100 1
-NULL 1
-1000 1
-select a from t1 where a in (select * from t2);
-a
-select a from t1 where a > any (select * from t2);
-a
-select a from t1 where a > all (select * from t2);
-a
-1
-100
-NULL
-1000
-select a from t1 where a in (select * from t2 group by a);
-a
-select a from t1 where a > any (select * from t2 group by a);
-a
-select a from t1 where a > all (select * from t2 group by a);
-a
-1
-100
-NULL
-1000
-insert into t2 values (1),(200);
-# sebselect returns non-empty set without NULLs
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 1
-100 0
-NULL NULL
-1000 0
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 0
-100 1
-NULL NULL
-1000 1
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 0
-100 0
-NULL NULL
-1000 1
-select a from t1 where a in (select * from t2);
-a
-1
-select a from t1 where a > any (select * from t2);
-a
-100
-1000
-select a from t1 where a > all (select * from t2);
-a
-1000
-select a from t1 where a in (select * from t2 group by a);
-a
-1
-select a from t1 where a > any (select * from t2 group by a);
-a
-100
-1000
-select a from t1 where a > all (select * from t2 group by a);
-a
-1000
-drop table t2;
-create table t2 (a int);
-insert into t2 values (1),(NULL),(200);
-# sebselect returns non-empty set with NULLs
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 1
-100 NULL
-NULL NULL
-1000 NULL
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 NULL
-100 1
-NULL NULL
-1000 1
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 0
-100 0
-NULL NULL
-1000 NULL
-select a from t1 where a in (select * from t2);
-a
-1
-select a from t1 where a > any (select * from t2);
-a
-100
-1000
-select a from t1 where a > all (select * from t2);
-a
-select a from t1 where a in (select * from t2 group by a);
-a
-1
-select a from t1 where a > any (select * from t2 group by a);
-a
-100
-1000
-select a from t1 where a > all (select * from t2 group by a);
-a
-drop table t1, t2;
-create table t1 (a float);
-select 10.5 IN (SELECT * from t1 LIMIT 1);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-select 10.5 IN (SELECT * from t1 LIMIT 1 UNION SELECT 1.5);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1.5)' at line 1
-select 10.5 IN (SELECT * from t1 UNION SELECT 1.5 LIMIT 1);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-drop table t1;
-create table t1 (a int, b int, c varchar(10));
-create table t2 (a int);
-insert into t1 values (1,2,'a'),(2,3,'b'),(3,4,'c');
-insert into t2 values (1),(2),(NULL);
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,2,'a'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,2,'a') (select c from t1 where a=t2.a)
-1 1 a
-2 0 b
-NULL NULL NULL
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,3,'b'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,3,'b') (select c from t1 where a=t2.a)
-1 0 a
-2 1 b
-NULL NULL NULL
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,4,'c'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,4,'c') (select c from t1 where a=t2.a)
-1 0 a
-2 0 b
-NULL NULL NULL
-drop table t1,t2;
-create table t1 (a int, b real, c varchar(10));
-insert into t1 values (1, 1, 'a'), (2,2,'b'), (NULL, 2, 'b');
-select ROW(1, 1, 'a') IN (select a,b,c from t1);
-ROW(1, 1, 'a') IN (select a,b,c from t1)
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1);
-ROW(1, 2, 'a') IN (select a,b,c from t1)
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1);
-ROW(1, 1, 'a') IN (select b,a,c from t1)
-1
-select ROW(1, 1, 'a') IN (select a,b,c from t1 where a is not null);
-ROW(1, 1, 'a') IN (select a,b,c from t1 where a is not null)
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1 where a is not null);
-ROW(1, 2, 'a') IN (select a,b,c from t1 where a is not null)
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1 where a is not null);
-ROW(1, 1, 'a') IN (select b,a,c from t1 where a is not null)
-1
-select ROW(1, 1, 'a') IN (select a,b,c from t1 where c='b' or c='a');
-ROW(1, 1, 'a') IN (select a,b,c from t1 where c='b' or c='a')
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1 where c='b' or c='a');
-ROW(1, 2, 'a') IN (select a,b,c from t1 where c='b' or c='a')
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1 where c='b' or c='a');
-ROW(1, 1, 'a') IN (select b,a,c from t1 where c='b' or c='a')
-1
-select ROW(1, 1, 'a') IN (select b,a,c from t1 limit 2);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1);
-do @a:=(SELECT a from t1);
-select @a;
-@a
-1
-set @a:=2;
-set @a:=(SELECT a from t1);
-select @a;
-@a
-1
-drop table t1;
-do (SELECT a from t1);
-ERROR 42S02: Table 'test.t1' doesn't exist
-set @a:=(SELECT a from t1);
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (a int, KEY(a));
-HANDLER t1 OPEN;
-HANDLER t1 READ a=((SELECT 1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1))' at line 1
-HANDLER t1 CLOSE;
-drop table t1;
-create table t1 (a int);
-create table t2 (b int);
-insert into t1 values (1),(2);
-insert into t2 values (1);
-select a from t1 where a in (select a from t1 where a in (select b from t2));
-a
-1
-drop table t1, t2;
-create table t1 (a int, b int);
-create table t2 like t1;
-insert into t1 values (1,2),(1,3),(1,4),(1,5);
-insert into t2 values (1,2),(1,3);
-select * from t1 where row(a,b) in (select a,b from t2);
-a b
-1 2
-1 3
-drop table t1, t2;
-CREATE TABLE `t1` (`i` int(11) NOT NULL default '0',PRIMARY KEY (`i`)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1);
-UPDATE t1 SET i=i+1 WHERE i=(SELECT MAX(i));
-select * from t1;
-i
-2
-drop table t1;
-CREATE TABLE t1 (a int(1));
-EXPLAIN EXTENDED SELECT (SELECT RAND() FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select rand() from `test`.`t1`) AS `(SELECT RAND() FROM t1)` from `test`.`t1`
-EXPLAIN EXTENDED SELECT (SELECT ENCRYPT('test') FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select encrypt('test') from `test`.`t1`) AS `(SELECT ENCRYPT('test') FROM t1)` from `test`.`t1`
-EXPLAIN EXTENDED SELECT (SELECT BENCHMARK(1,1) FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select benchmark(1,1) from `test`.`t1`) AS `(SELECT BENCHMARK(1,1) FROM t1)` from `test`.`t1`
-drop table t1;
-CREATE TABLE `t1` (
-`mot` varchar(30) character set latin1 NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`),
-KEY `pseudo` (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-CREATE TABLE `t2` (
-`mot` varchar(30) character set latin1 NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`),
-KEY `pseudo` (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-CREATE TABLE `t3` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT IGNORE INTO t1 VALUES ('joce','1','','joce'),('test','2','','test');
-Warnings:
-Warning 1265 Data truncated for column 'date' at row 1
-Warning 1265 Data truncated for column 'date' at row 2
-INSERT IGNORE INTO t2 VALUES ('joce','1','','joce'),('test','2','','test');
-Warnings:
-Warning 1265 Data truncated for column 'date' at row 1
-Warning 1265 Data truncated for column 'date' at row 2
-INSERT INTO t3 VALUES (1,1);
-SELECT DISTINCT topic FROM t2 WHERE NOT EXISTS(SELECT * FROM t3 WHERE
-numeropost=topic);
-topic
-2
-select * from t1;
-mot topic date pseudo
-joce 1 0000-00-00 joce
-test 2 0000-00-00 test
-DELETE FROM t1 WHERE topic IN (SELECT DISTINCT topic FROM t2 WHERE NOT
-EXISTS(SELECT * FROM t3 WHERE numeropost=topic));
-select * from t1;
-mot topic date pseudo
-joce 1 0000-00-00 joce
-drop table t1, t2, t3;
-SELECT * FROM (SELECT 1 as a,(SELECT a)) a;
-a (SELECT a)
-1 1
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT 1)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT 1)` int(1) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT a)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT a)` int(1) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT a+0)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT a+0)` int(3) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT (SELECT 1 as a UNION SELECT 1+1 limit 1,1) as a;
-select * from t1;
-a
-2
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(3) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-explain extended select a,(select (select rand() from t1 limit 1) from t1 limit 1)
-from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-2 UNCACHEABLE SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00
-3 UNCACHEABLE SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,(/* select#2 */ select (/* select#3 */ select rand() from `test`.`t1` limit 1) from `test`.`t1` limit 1) AS `(select (select rand() from t1 limit 1) from t1 limit 1)` from `test`.`t1`
-drop table t1;
-select t1.Continent, t2.Name, t2.Population from t1 LEFT JOIN t2 ON t1.Code = t2.Country where t2.Population IN (select max(t2.Population) AS Population from t2, t1 where t2.Country = t1.Code group by Continent);
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (
-ID int(11) NOT NULL auto_increment,
-name char(35) NOT NULL default '',
-t2 char(3) NOT NULL default '',
-District char(20) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (130,'Sydney','AUS','New South Wales',3276207);
-INSERT INTO t1 VALUES (131,'Melbourne','AUS','Victoria',2865329);
-INSERT INTO t1 VALUES (132,'Brisbane','AUS','Queensland',1291117);
-CREATE TABLE t2 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL default 'Asia',
-Region char(26) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-IndepYear smallint(6) default NULL,
-Population int(11) NOT NULL default '0',
-LifeExpectancy float(3,1) default NULL,
-GNP float(10,2) default NULL,
-GNPOld float(10,2) default NULL,
-LocalName char(45) NOT NULL default '',
-GovernmentForm char(45) NOT NULL default '',
-HeadOfState char(60) default NULL,
-Capital int(11) default NULL,
-Code2 char(2) NOT NULL default '',
-PRIMARY KEY (Code)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('AUS','Australia','Oceania','Australia and New Zealand',7741220.00,1901,18886000,79.8,351182.00,392911.00,'Australia','Constitutional Monarchy, Federation','Elisabeth II',135,'AU');
-INSERT INTO t2 VALUES ('AZE','Azerbaijan','Asia','Middle East',86600.00,1991,7734000,62.9,4127.00,4100.00,'Azärbaycan','Federal Republic','Heydär Äliyev',144,'AZ');
-select t2.Continent, t1.Name, t1.Population from t2 LEFT JOIN t1 ON t2.Code = t1.t2 where t1.Population IN (select max(t1.Population) AS Population from t1, t2 where t1.t2 = t2.Code group by Continent);
-Continent Name Population
-Oceania Sydney 3276207
-drop table t1, t2;
-CREATE TABLE `t1` (
-`id` mediumint(8) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `pseudo` (`pseudo`)
-) ENGINE=MyISAM PACK_KEYS=1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (pseudo) VALUES ('test');
-SELECT 0 IN (SELECT 1 FROM t1 a);
-0 IN (SELECT 1 FROM t1 a)
-0
-EXPLAIN EXTENDED SELECT 0 IN (SELECT 1 FROM t1 a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 /* select#1 */ select <in_optimizer>(0,<exists>(/* select#2 */ select 1 from dual where 0 = 1)) AS `0 IN (SELECT 1 FROM t1 a)`
-INSERT INTO t1 (pseudo) VALUES ('test1');
-SELECT 0 IN (SELECT 1 FROM t1 a);
-0 IN (SELECT 1 FROM t1 a)
-0
-EXPLAIN EXTENDED SELECT 0 IN (SELECT 1 FROM t1 a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 /* select#1 */ select <in_optimizer>(0,<exists>(/* select#2 */ select 1 from `test`.`t1` `a` where 0 = 1)) AS `0 IN (SELECT 1 FROM t1 a)`
-drop table t1;
-CREATE TABLE `t1` (
-`i` int(11) NOT NULL default '0',
-PRIMARY KEY (`i`)
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1);
-UPDATE t1 SET i=i+(SELECT MAX(i) FROM (SELECT 1) t) WHERE i=(SELECT MAX(i));
-UPDATE t1 SET i=i+1 WHERE i=(SELECT MAX(i));
-UPDATE t1 SET t.i=i+(SELECT MAX(i) FROM (SELECT 1) t);
-ERROR 42S22: Unknown column 't.i' in 'field list'
-select * from t1;
-i
-3
-drop table t1;
-CREATE TABLE t1 (
-id int(11) default NULL
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1),(1),(2),(2),(1),(3);
-CREATE TABLE t2 (
-id int(11) default NULL,
-name varchar(15) default NULL
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (4,'vita'), (1,'vita'), (2,'vita'), (1,'vita');
-update t1, t2 set t2.name='lenka' where t2.id in (select id from t1);
-select * from t2;
-id name
-4 vita
-1 lenka
-2 lenka
-1 lenka
-drop table t1,t2;
-create table t1 (a int, unique index indexa (a));
-insert into t1 values (-1), (-4), (-2), (NULL);
-select -10 IN (select a from t1 FORCE INDEX (indexa));
--10 IN (select a from t1 FORCE INDEX (indexa))
-NULL
-drop table t1;
-create table t1 (id int not null auto_increment primary key, salary int, key(salary));
-insert into t1 (salary) values (100),(1000),(10000),(10),(500),(5000),(50000);
-explain extended SELECT id FROM t1 where salary = (SELECT MAX(salary) FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ref salary salary 5 const 1 100.00 Using where
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id` from `test`.`t1` where `test`.`t1`.`salary` = (/* select#2 */ select max(`test`.`t1`.`salary`) from `test`.`t1`)
-drop table t1;
-CREATE TABLE t1 (
-ID int(10) unsigned NOT NULL auto_increment,
-SUB_ID int(3) unsigned NOT NULL default '0',
-REF_ID int(10) unsigned default NULL,
-REF_SUB int(3) unsigned default '0',
-PRIMARY KEY (ID,SUB_ID),
-UNIQUE KEY t1_PK (ID,SUB_ID),
-KEY t1_FK (REF_ID,REF_SUB),
-KEY t1_REFID (REF_ID)
-) ENGINE=MyISAM CHARSET=cp1251;
-INSERT INTO t1 VALUES (1,0,NULL,NULL),(2,0,NULL,NULL);
-SELECT DISTINCT REF_ID FROM t1 WHERE ID= (SELECT DISTINCT REF_ID FROM t1 WHERE ID=2);
-REF_ID
-DROP TABLE t1;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1,0), (2,0), (3,0);
-insert into t2 values (1,1), (2,1), (3,1), (2,2);
-update ignore t1 set b=(select b from t2 where t1.a=t2.a);
-Warnings:
-Warning 1242 Subquery returns more than 1 row
-select * from t1;
-a b
-1 1
-2 NULL
-3 1
-drop table t1, t2;
-CREATE TABLE `t1` (
-`id` mediumint(8) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) NOT NULL default '',
-`email` varchar(60) NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `email` (`email`),
-UNIQUE KEY `pseudo` (`pseudo`)
-) ENGINE=MyISAM CHARSET=latin1 PACK_KEYS=1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (id,pseudo,email) VALUES (1,'test','test'),(2,'test1','test1');
-SELECT pseudo as a, pseudo as b FROM t1 GROUP BY (SELECT a) ORDER BY (SELECT id*1);
-a b
-test test
-test1 test1
-drop table if exists t1;
-(SELECT 1 as a) UNION (SELECT 1) ORDER BY (SELECT a+0);
-a
-1
-create table t1 (a int not null, b int, primary key (a));
-create table t2 (a int not null, primary key (a));
-create table t3 (a int not null, b int, primary key (a));
-insert into t1 values (1,10), (2,20), (3,30), (4,40);
-insert into t2 values (2), (3), (4), (5);
-insert into t3 values (10,3), (20,4), (30,5);
-select * from t2 where t2.a in (select a from t1);
-a
-2
-3
-4
-explain extended select * from t2 where t2.a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 4 100.00 Using index
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 4 75.00 Using where; Using index; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 4 100.00 Using index
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 4 75.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a` and `test`.`t1`.`b` <> 30
-select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-a
-2
-3
-explain extended select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 4 100.00 Using index
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 4 75.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 4 test.t1.b 1 100.00 Using index
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t1` join `test`.`t3` join `test`.`t2` where `test`.`t3`.`a` = `test`.`t1`.`b` and `test`.`t1`.`a` = `test`.`t2`.`a`
-drop table t1, t2, t3;
-create table t1 (a int, b int, index a (a,b));
-create table t2 (a int, index a (a));
-create table t3 (a int, b int, index a (a));
-insert into t1 values (1,10), (2,20), (3,30), (4,40);
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t1
-select rand()*100000+200,rand()*100000 from t0 A, t0 B, t0 C, t0 D;
-insert into t2 values (2), (3), (4), (5);
-insert into t3 values (10,3), (20,4), (30,5);
-select * from t2 where t2.a in (select a from t1);
-a
-2
-3
-4
-explain extended select * from t2 where t2.a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 5 test.t2.a 101 100.00 Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`t2`.`a`
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 5 test.t2.a 101 100.00 Using where; Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`t2`.`a` and `test`.`t1`.`b` <> 30
-select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-a
-2
-3
-explain extended select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t3 index a a 5 NULL 3 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 10 test.t2.a,test.t3.a 116 100.00 Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1` join `test`.`t3`) where `test`.`t1`.`b` = `test`.`t3`.`a` and `test`.`t1`.`a` = `test`.`t2`.`a`
-insert into t1 values (3,31);
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-3
-4
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30 and t1.b <> 31);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 5 test.t2.a 101 100.00 Using where; Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`t2`.`a` and `test`.`t1`.`b` <> 30
-drop table t0, t1, t2, t3;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-create table t3 (a int, b int);
-insert into t1 values (0,100),(1,2), (1,3), (2,2), (2,7), (2,-1), (3,10);
-insert into t2 values (0,0), (1,1), (2,1), (3,1), (4,1);
-insert into t3 values (3,3), (2,2), (1,1);
-select a,(select count(distinct t1.b) as sum from t1,t2 where t1.a=t2.a and t2.b > 0 and t1.a <= t3.b group by t1.a order by sum limit 1) from t3;
-a (select count(distinct t1.b) as sum from t1,t2 where t1.a=t2.a and t2.b > 0 and t1.a <= t3.b group by t1.a order by sum limit 1)
-3 1
-2 2
-1 2
-drop table t1,t2,t3;
-create table t1 (s1 int);
-create table t2 (s1 int);
-insert into t1 values (1);
-insert into t2 values (1);
-select * from t1 where exists (select s1 from t2 having max(t2.s1)=t1.s1);
-s1
-1
-drop table t1,t2;
-create table t1 (s1 int);
-create table t2 (s1 int);
-insert into t1 values (1);
-insert into t2 values (1);
-update t1 set s1 = s1 + 1 where 1 = (select x.s1 as A from t2 WHERE t2.s1 > t1.s1 order by A);
-ERROR 42S22: Unknown column 'x.s1' in 'field list'
-DROP TABLE t1, t2;
-CREATE TABLE t1 (s1 CHAR(5) COLLATE latin1_german1_ci,
-s2 CHAR(5) COLLATE latin1_swedish_ci);
-INSERT INTO t1 VALUES ('z','?');
-select * from t1 where s1 > (select max(s2) from t1);
-ERROR HY000: Illegal mix of collations (latin1_german1_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '>'
-select * from t1 where s1 > any (select max(s2) from t1);
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin1_german1_ci,IMPLICIT) for operation '<'
-drop table t1;
-create table t1(toid int,rd int);
-create table t2(userid int,pmnew int,pmtotal int);
-insert into t2 values(1,0,0),(2,0,0);
-insert into t1 values(1,0),(1,0),(1,0),(1,12),(1,15),(1,123),(1,12312),(1,12312),(1,123),(2,0),(2,0),(2,1),(2,2);
-select userid,pmtotal,pmnew, (select count(rd) from t1 where toid=t2.userid) calc_total, (select count(rd) from t1 where rd=0 and toid=t2.userid) calc_new from t2 where userid in (select distinct toid from t1);
-userid pmtotal pmnew calc_total calc_new
-1 0 0 9 3
-2 0 0 4 2
-drop table t1, t2;
-create table t1 (s1 char(5));
-select (select 'a','b' from t1 union select 'a','b' from t1) from t1;
-ERROR 21000: Operand should contain 1 column(s)
-insert into t1 values ('tttt');
-select * from t1 where ('a','b')=(select 'a','b' from t1 union select 'a','b' from t1);
-s1
-tttt
-explain extended (select * from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 (select 'tttt' AS `s1` from dual)
-(select * from t1);
-s1
-tttt
-drop table t1;
-create table t1 (s1 char(5), index s1(s1));
-create table t2 (s1 char(5), index s1(s1));
-insert into t1 values ('a1'),('a2'),('a3');
-insert into t2 values ('a1'),('a2');
-select s1, s1 NOT IN (SELECT s1 FROM t2) from t1;
-s1 s1 NOT IN (SELECT s1 FROM t2)
-a1 0
-a2 0
-a3 1
-select s1, s1 = ANY (SELECT s1 FROM t2) from t1;
-s1 s1 = ANY (SELECT s1 FROM t2)
-a1 1
-a2 1
-a3 0
-select s1, s1 <> ALL (SELECT s1 FROM t2) from t1;
-s1 s1 <> ALL (SELECT s1 FROM t2)
-a1 0
-a2 0
-a3 1
-select s1, s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2') from t1;
-s1 s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2')
-a1 0
-a2 1
-a3 1
-explain extended select s1, s1 NOT IN (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null))))) AS `s1 NOT IN (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 = ANY (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null))))) AS `s1 = ANY (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 <> ALL (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null))))) AS `s1 <> ALL (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2') from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Using where; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL where `test`.`t2`.`s1` < 'a2' having trigcond(`test`.`t2`.`s1` is null))))) AS `s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2')` from `test`.`t1`
-drop table t1,t2;
-create table t2 (a int, b int not null);
-create table t3 (a int);
-insert into t3 values (6),(7),(3);
-select * from t3 where a >= all (select b from t2);
-a
-6
-7
-3
-explain extended select * from t3 where a >= all (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select max(NULL) from `test`.`t2`) > <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= some (select b from t2);
-a
-explain extended select * from t3 where a >= some (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(NULL) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= all (select b from t2 group by 1);
-a
-6
-7
-3
-explain extended select * from t3 where a >= all (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select max(NULL) from `test`.`t2`) > <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= some (select b from t2 group by 1);
-a
-explain extended select * from t3 where a >= some (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(NULL) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where NULL >= any (select b from t2);
-a
-explain extended select * from t3 where NULL >= any (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= any (select b from t2 group by 1);
-a
-explain extended select * from t3 where NULL >= any (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= some (select b from t2);
-a
-explain extended select * from t3 where NULL >= some (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= some (select b from t2 group by 1);
-a
-explain extended select * from t3 where NULL >= some (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-insert into t2 values (2,2), (2,1), (3,3), (3,1);
-select * from t3 where a > all (select max(b) from t2 group by a);
-a
-6
-7
-explain extended select * from t3 where a > all (select max(b) from t2 group by a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 4 100.00 Using temporary
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,<max>(/* select#2 */ select max(`test`.`t2`.`b`) from `test`.`t2` group by `test`.`t2`.`a`) >= <cache>(`test`.`t3`.`a`)))
-drop table t2, t3;
-CREATE TABLE `t1` ( `id` mediumint(9) NOT NULL auto_increment, `taskid` bigint(20) NOT NULL default '0', `dbid` int(11) NOT NULL default '0', `create_date` datetime NOT NULL default '0000-00-00 00:00:00', `last_update` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (`id`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=3 ;
-INSERT INTO `t1` (`id`, `taskid`, `dbid`, `create_date`,`last_update`) VALUES (1, 1, 15, '2003-09-29 10:31:36', '2003-09-29 10:31:36'), (2, 1, 21, now(), now());
-CREATE TABLE `t2` (`db_id` int(11) NOT NULL auto_increment,`name` varchar(200) NOT NULL default '',`primary_uid` smallint(6) NOT NULL default '0',`secondary_uid` smallint(6) NOT NULL default '0',PRIMARY KEY (`db_id`),UNIQUE KEY `name_2` (`name`),FULLTEXT KEY `name` (`name`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=2147483647;
-INSERT INTO `t2` (`db_id`, `name`, `primary_uid`, `secondary_uid`) VALUES (18, 'Not Set 1', 0, 0),(19, 'Valid', 1, 2),(20, 'Valid 2', 1, 2),(21, 'Should Not Return', 1, 2),(26, 'Not Set 2', 0, 0),(-1, 'ALL DB\'S', 0, 0);
-CREATE TABLE `t3` (`taskgenid` mediumint(9) NOT NULL auto_increment,`dbid` int(11) NOT NULL default '0',`taskid` int(11) NOT NULL default '0',`mon` tinyint(4) NOT NULL default '1',`tues` tinyint(4) NOT NULL default '1',`wed` tinyint(4) NOT NULL default '1',`thur` tinyint(4) NOT NULL default '1',`fri` tinyint(4) NOT NULL default '1',`sat` tinyint(4) NOT NULL default '0',`sun` tinyint(4) NOT NULL default '0',`how_often` smallint(6) NOT NULL default '1',`userid` smallint(6) NOT NULL default '0',`active` tinyint(4) NOT NULL default '1',PRIMARY KEY (`taskgenid`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=2 ;
-INSERT INTO `t3` (`taskgenid`, `dbid`, `taskid`, `mon`, `tues`,`wed`, `thur`, `fri`, `sat`, `sun`, `how_often`, `userid`, `active`) VALUES (1,-1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1);
-CREATE TABLE `t4` (`task_id` smallint(6) NOT NULL default '0',`description` varchar(200) NOT NULL default '') ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO `t4` (`task_id`, `description`) VALUES (1, 'Daily Check List'),(2, 'Weekly Status');
-select dbid, name, (date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01') from t3 a, t2 b, t4 WHERE dbid = - 1 AND primary_uid = '1' AND t4.task_id = taskid;
-dbid name (date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01')
--1 Valid 1
--1 Valid 2 1
--1 Should Not Return 0
-SELECT dbid, name FROM t3 a, t2 b, t4 WHERE dbid = - 1 AND primary_uid = '1' AND ((date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01')) AND t4.task_id = taskid;
-dbid name
--1 Valid
--1 Valid 2
-drop table t1,t2,t3,t4;
-CREATE TABLE t1 (id int(11) default NULL) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 (id int(11) default NULL) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (2),(6);
-select * from t1 where (1,2,6) in (select * from t2);
-ERROR 21000: Operand should contain 3 column(s)
-DROP TABLE t1,t2;
-create table t1 (s1 int);
-insert into t1 values (1);
-insert into t1 values (2);
-set sort_buffer_size = (select s1 from t1);
-ERROR 21000: Subquery returns more than 1 row
-do (select * from t1);
-Warnings:
-Error 1242 Subquery returns more than 1 row
-drop table t1;
-create table t1 (s1 char);
-insert into t1 values ('e');
-select * from t1 where 'f' > any (select s1 from t1);
-s1
-e
-select * from t1 where 'f' > any (select s1 from t1 union select s1 from t1);
-s1
-e
-explain extended select * from t1 where 'f' > any (select s1 from t1 union select s1 from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-3 UNION t1 system NULL NULL NULL NULL 1 100.00
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select 'e' AS `s1` from dual where 1
-drop table t1;
-CREATE TABLE t1 (number char(11) NOT NULL default '') ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES ('69294728265'),('18621828126'),('89356874041'),('95895001874');
-CREATE TABLE t2 (code char(5) NOT NULL default '',UNIQUE KEY code (code)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES ('1'),('1226'),('1245'),('1862'),('18623'),('1874'),('1967'),('6');
-select c.number as phone,(select p.code from t2 p where c.number like concat(p.code, '%') order by length(p.code) desc limit 1) as code from t1 c;
-phone code
-69294728265 6
-18621828126 1862
-89356874041 NULL
-95895001874 NULL
-drop table t1, t2;
-create table t1 (s1 int);
-create table t2 (s1 int);
-select * from t1 where (select count(*) from t2 where t1.s2) = 1;
-ERROR 42S22: Unknown column 't1.s2' in 'where clause'
-select * from t1 where (select count(*) from t2 group by t1.s2) = 1;
-ERROR 42S22: Unknown column 't1.s2' in 'group statement'
-select count(*) from t2 group by t1.s2;
-ERROR 42S22: Unknown column 't1.s2' in 'group statement'
-drop table t1, t2;
-CREATE TABLE t1(COLA FLOAT NOT NULL,COLB FLOAT NOT NULL,COLC VARCHAR(20) DEFAULT NULL,PRIMARY KEY (COLA, COLB));
-CREATE TABLE t2(COLA FLOAT NOT NULL,COLB FLOAT NOT NULL,COLC CHAR(1) NOT NULL,PRIMARY KEY (COLA));
-INSERT INTO t1 VALUES (1,1,'1A3240'), (1,2,'4W2365');
-INSERT INTO t2 VALUES (100, 200, 'C');
-SELECT DISTINCT COLC FROM t1 WHERE COLA = (SELECT COLA FROM t2 WHERE COLB = 200 AND COLC ='C' LIMIT 1);
-COLC
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a int(1));
-INSERT INTO t1 VALUES (1),(1),(1),(1),(1),(2),(3),(4),(5);
-SELECT DISTINCT (SELECT a) FROM t1 LIMIT 100;
-(SELECT a)
-1
-2
-3
-4
-5
-DROP TABLE t1;
-create table t1 (a int, b decimal(13, 3));
-insert into t1 values (1, 0.123);
-select a, (select max(b) from t1) into outfile "../../tmp/subselect.out.file.1" from t1;
-delete from t1;
-load data infile "../../tmp/subselect.out.file.1" into table t1;
-select * from t1;
-a b
-1 0.123
-drop table t1;
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL auto_increment,
-`id_cns` tinyint(3) unsigned NOT NULL default '0',
-`tipo` enum('','UNO','DUE') NOT NULL default '',
-`anno_dep` smallint(4) unsigned zerofill NOT NULL default '0000',
-`particolare` mediumint(8) unsigned NOT NULL default '0',
-`generale` mediumint(8) unsigned NOT NULL default '0',
-`bis` tinyint(3) unsigned NOT NULL default '0',
-PRIMARY KEY (`id`),
-UNIQUE KEY `idx_cns_gen_anno` (`anno_dep`,`id_cns`,`generale`,`particolare`),
-UNIQUE KEY `idx_cns_par_anno` (`id_cns`,`anno_dep`,`tipo`,`particolare`,`bis`)
-);
-INSERT INTO `t1` VALUES (1,16,'UNO',1987,2048,9681,0),(2,50,'UNO',1987,1536,13987,0),(3,16,'UNO',1987,2432,14594,0),(4,16,'UNO',1987,1792,13422,0),(5,16,'UNO',1987,1025,10240,0),(6,16,'UNO',1987,1026,7089,0);
-CREATE TABLE `t2` (
-`id` tinyint(3) unsigned NOT NULL auto_increment,
-`max_anno_dep` smallint(6) unsigned NOT NULL default '0',
-PRIMARY KEY (`id`)
-);
-INSERT INTO `t2` VALUES (16,1987),(50,1990),(51,1990);
-SELECT cns.id, cns.max_anno_dep, cns.max_anno_dep = (SELECT s.anno_dep FROM t1 AS s WHERE s.id_cns = cns.id ORDER BY s.anno_dep DESC LIMIT 1) AS PIPPO FROM t2 AS cns;
-id max_anno_dep PIPPO
-16 1987 1
-50 1990 0
-51 1990 NULL
-DROP TABLE t1, t2;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-SET SQL_SELECT_LIMIT=1;
-select sum(a) from (select * from t1) as a;
-sum(a)
-6
-select 2 in (select * from t1);
-2 in (select * from t1)
-1
-SET SQL_SELECT_LIMIT=default;
-drop table t1;
-CREATE TABLE t1 (a int, b int, INDEX (a));
-INSERT INTO t1 VALUES (1, 1), (1, 2), (1, 3);
-SELECT * FROM t1 WHERE a = (SELECT MAX(a) FROM t1 WHERE a = 1) ORDER BY b;
-a b
-1 1
-1 2
-1 3
-DROP TABLE t1;
-create table t1(val varchar(10));
-insert into t1 values ('aaa'), ('bbb'),('eee'),('mmm'),('ppp');
-select count(*) from t1 as w1 where w1.val in (select w2.val from t1 as w2 where w2.val like 'm%') and w1.val in (select w3.val from t1 as w3 where w3.val like 'e%');
-count(*)
-0
-drop table t1;
-create table t1 (id int not null, text varchar(20) not null default '', primary key (id));
-insert into t1 (id, text) values (1, 'text1'), (2, 'text2'), (3, 'text3'), (4, 'text4'), (5, 'text5'), (6, 'text6'), (7, 'text7'), (8, 'text8'), (9, 'text9'), (10, 'text10'), (11, 'text11'), (12, 'text12');
-select * from t1 where id not in (select id from t1 where id < 8);
-id text
-8 text8
-9 text9
-10 text10
-11 text11
-12 text12
-select * from t1 as tt where not exists (select id from t1 where id < 8 and (id = tt.id or id is null) having id is not null);
-id text
-8 text8
-9 text9
-10 text10
-11 text11
-12 text12
-explain extended select * from t1 where id not in (select id from t1 where id < 8);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 12 100.00 Using where
-2 DEPENDENT SUBQUERY t1 unique_subquery PRIMARY PRIMARY 4 func 1 100.00 Using index; Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`text` AS `text` from `test`.`t1` where !<expr_cache><`test`.`t1`.`id`>(<in_optimizer>(`test`.`t1`.`id`,<exists>(<primary_index_lookup>(<cache>(`test`.`t1`.`id`) in t1 on PRIMARY where `test`.`t1`.`id` < 8 and <cache>(`test`.`t1`.`id`) = `test`.`t1`.`id`))))
-explain extended select * from t1 as tt where not exists (select id from t1 where id < 8 and (id = tt.id or id is null) having id is not null);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY tt ALL NULL NULL NULL NULL 12 100.00 Using where
-2 DEPENDENT SUBQUERY t1 eq_ref PRIMARY PRIMARY 4 test.tt.id 1 100.00 Using where; Using index
-Warnings:
-Note 1276 Field or reference 'test.tt.id' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`tt`.`id` AS `id`,`test`.`tt`.`text` AS `text` from `test`.`t1` `tt` where !<in_optimizer>(1,<expr_cache><`test`.`tt`.`id`>(exists(/* select#2 */ select `test`.`t1`.`id` from `test`.`t1` where `test`.`t1`.`id` < 8 and `test`.`t1`.`id` = `test`.`tt`.`id` having `test`.`t1`.`id` is not null)))
-insert into t1 (id, text) values (1000, 'text1000'), (1001, 'text1001');
-create table t2 (id int not null, text varchar(20) not null default '', primary key (id));
-insert into t2 (id, text) values (1, 'text1'), (2, 'text2'), (3, 'text3'), (4, 'text4'), (5, 'text5'), (6, 'text6'), (7, 'text7'), (8, 'text8'), (9, 'text9'), (10, 'text10'), (11, 'text1'), (12, 'text2'), (13, 'text3'), (14, 'text4'), (15, 'text5'), (16, 'text6'), (17, 'text7'), (18, 'text8'), (19, 'text9'), (20, 'text10'),(21, 'text1'), (22, 'text2'), (23, 'text3'), (24, 'text4'), (25, 'text5'), (26, 'text6'), (27, 'text7'), (28, 'text8'), (29, 'text9'), (30, 'text10'), (31, 'text1'), (32, 'text2'), (33, 'text3'), (34, 'text4'), (35, 'text5'), (36, 'text6'), (37, 'text7'), (38, 'text8'), (39, 'text9'), (40, 'text10'), (41, 'text1'), (42, 'text2'), (43, 'text3'), (44, 'text4'), (45, 'text5'), (46, 'text6'), (47, 'text7'), (48, 'text8'), (49, 'text9'), (50, 'text10');
-select * from t1 a left join t2 b on (a.id=b.id or b.id is null) join t1 c on (if(isnull(b.id), 1000, b.id)=c.id);
-id text id text id text
-1 text1 1 text1 1 text1
-2 text2 2 text2 2 text2
-3 text3 3 text3 3 text3
-4 text4 4 text4 4 text4
-5 text5 5 text5 5 text5
-6 text6 6 text6 6 text6
-7 text7 7 text7 7 text7
-8 text8 8 text8 8 text8
-9 text9 9 text9 9 text9
-10 text10 10 text10 10 text10
-11 text11 11 text1 11 text11
-12 text12 12 text2 12 text12
-1000 text1000 NULL NULL 1000 text1000
-1001 text1001 NULL NULL 1000 text1000
-explain extended select * from t1 a left join t2 b on (a.id=b.id or b.id is null) join t1 c on (if(isnull(b.id), 1000, b.id)=c.id);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE a ALL NULL NULL NULL NULL 14 100.00
-1 SIMPLE b eq_ref PRIMARY PRIMARY 4 test.a.id 2 100.00
-1 SIMPLE c eq_ref PRIMARY PRIMARY 4 func 1 100.00 Using index condition
-Warnings:
-Note 1003 select `test`.`a`.`id` AS `id`,`test`.`a`.`text` AS `text`,`test`.`b`.`id` AS `id`,`test`.`b`.`text` AS `text`,`test`.`c`.`id` AS `id`,`test`.`c`.`text` AS `text` from `test`.`t1` `a` left join `test`.`t2` `b` on(`test`.`b`.`id` = `test`.`a`.`id` or `test`.`b`.`id` is null) join `test`.`t1` `c` where if(`test`.`b`.`id` is null,1000,`test`.`b`.`id`) = `test`.`c`.`id`
-drop table t1,t2;
-create table t1 (a int);
-insert into t1 values (1);
-explain select benchmark(1000, (select a from t1 where a=sha(rand())));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 1
-drop table t1;
-create table t1(id int);
-create table t2(id int);
-create table t3(flag int);
-select (select * from t3 where id not null) from t1, t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'null) from t1, t2' at line 1
-drop table t1,t2,t3;
-CREATE TABLE t1 (id INT);
-CREATE TABLE t2 (id INT);
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (1);
-SELECT t1.id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id);
-id c
-1 1
-2 0
-SELECT id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id);
-id c
-1 1
-2 0
-SELECT t1.id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id) ORDER BY t1.id;
-id c
-1 1
-2 0
-SELECT id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id) ORDER BY id;
-id c
-1 1
-2 0
-DROP TABLE t1,t2;
-CREATE TABLE t1 ( a int, b int );
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-SELECT a FROM t1 WHERE a > ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-ALTER TABLE t1 ADD INDEX (a);
-SELECT a FROM t1 WHERE a > ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (1,2) > ANY (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE a > ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ALL (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE a > ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) <> ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ANY (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 2 column(s)
-SELECT a FROM t1 WHERE a = ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ANY (SELECT a,2 FROM t1 WHERE b = 2);
-a
-SELECT a FROM t1 WHERE (1,2) <> ALL (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 2 column(s)
-SELECT a FROM t1 WHERE a <> ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) <> ALL (SELECT a,2 FROM t1 WHERE b = 2);
-a
-1
-2
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 WHERE b = 2 UNION SELECT a,1 FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 WHERE b = 2 UNION SELECT a,1 FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 HAVING a = 2 UNION SELECT a,1 FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 HAVING a = 2 UNION SELECT a,1 FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-3
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a > t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a > t1.a), '-')
-0-
-0-
-1-
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a < t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a < t1.a), '-')
-1-
-0-
-0-
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a = t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a = t1.a), '-')
-0-
-1-
-0-
-DROP TABLE t1;
-CREATE TABLE t1 ( a double, b double );
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-3
-DROP TABLE t1;
-CREATE TABLE t1 ( a char(1), b char(1));
-INSERT INTO t1 VALUES ('1','1'),('2','2'),('3','3');
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = '2');
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = '2');
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = '2');
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = '2');
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = '2');
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = '2');
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-DROP TABLE t1;
-create table t1 (a int, b int);
-insert into t1 values (1,2),(3,4);
-select * from t1 up where exists (select * from t1 where t1.a=up.a);
-a b
-1 2
-3 4
-explain extended select * from t1 up where exists (select * from t1 where t1.a=up.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY up ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1276 Field or reference 'test.up.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`up`.`a` AS `a`,`test`.`up`.`b` AS `b` from `test`.`t1` `up` semi join (`test`.`t1`) where 1
-drop table t1;
-CREATE TABLE t1 (t1_a int);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (t2_a int, t2_b int, PRIMARY KEY (t2_a, t2_b));
-INSERT INTO t2 VALUES (1, 1), (1, 2);
-SELECT * FROM t1, t2 table2 WHERE t1_a = 1 AND table2.t2_a = 1
-HAVING table2.t2_b = (SELECT MAX(t2_b) FROM t2 WHERE t2_a = table2.t2_a);
-t1_a t2_a t2_b
-1 1 2
-DROP TABLE t1, t2;
-CREATE TABLE t1 (id int(11) default NULL,name varchar(10) default NULL);
-INSERT INTO t1 VALUES (1,'Tim'),(2,'Rebecca'),(3,NULL);
-CREATE TABLE t2 (id int(11) default NULL, pet varchar(10) default NULL);
-INSERT INTO t2 VALUES (1,'Fido'),(2,'Spot'),(3,'Felix');
-SELECT a.*, b.* FROM (SELECT * FROM t1) AS a JOIN t2 as b on a.id=b.id;
-id name id pet
-1 Tim 1 Fido
-2 Rebecca 2 Spot
-3 NULL 3 Felix
-drop table t1,t2;
-CREATE TABLE t1 ( a int, b int );
-CREATE TABLE t2 ( c int, d int );
-INSERT INTO t1 VALUES (1,2), (2,3), (3,4);
-SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-abc b
-1 2
-2 3
-3 4
-INSERT INTO t2 SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-select * from t2;
-c d
-1 2
-2 3
-3 4
-CREATE TABLE t3 SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-select * from t3;
-abc b
-1 2
-2 3
-3 4
-prepare stmt1 from "INSERT INTO t2 SELECT a AS abc, b FROM t1 outr WHERE b = (SELECT MIN(b) FROM t1 WHERE a=outr.a);";
-execute stmt1;
-deallocate prepare stmt1;
-select * from t2;
-c d
-1 2
-2 3
-3 4
-1 2
-2 3
-3 4
-drop table t3;
-prepare stmt1 from "CREATE TABLE t3 SELECT a AS abc, b FROM t1 outr WHERE b = (SELECT MIN(b) FROM t1 WHERE a=outr.a);";
-execute stmt1;
-select * from t3;
-abc b
-1 2
-2 3
-3 4
-deallocate prepare stmt1;
-DROP TABLE t1, t2, t3;
-CREATE TABLE `t1` ( `a` int(11) default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-insert into t1 values (1);
-CREATE TABLE `t2` ( `b` int(11) default NULL, `a` int(11) default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-insert into t2 values (1,2);
-select t000.a, count(*) `C` FROM t1 t000 GROUP BY t000.a HAVING count(*) > ALL (SELECT count(*) FROM t2 t001 WHERE t001.a=1);
-a C
-1 1
-drop table t1,t2;
-create table t1 (a int not null auto_increment primary key, b varchar(40), fulltext(b));
-insert into t1 (b) values ('ball'),('ball games'), ('games'), ('foo'), ('foobar'), ('Serg'), ('Sergei'),('Georg'), ('Patrik'),('Hakan');
-create table t2 (a int);
-insert into t2 values (1),(3),(2),(7);
-select a,b from t1 where match(b) against ('Ball') > 0;
-a b
-1 ball
-2 ball games
-select a from t2 where a in (select a from t1 where match(b) against ('Ball') > 0);
-a
-1
-2
-drop table t1,t2;
-CREATE TABLE t1(`IZAVORGANG_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin,`KUERZEL` VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_bin,`IZAANALYSEART_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin,`IZAPMKZ_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin);
-CREATE INDEX AK01IZAVORGANG ON t1(izaAnalyseart_id,Kuerzel);
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000001','601','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000002','602','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000003','603','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000004','101','D0000000001','I0000000001');
-SELECT `IZAVORGANG_ID` FROM t1 WHERE `KUERZEL` IN(SELECT MIN(`KUERZEL`)`Feld1` FROM t1 WHERE `KUERZEL` LIKE'601%'And`IZAANALYSEART_ID`='D0000000001');
-IZAVORGANG_ID
-D0000000001
-drop table t1;
-CREATE TABLE `t1` ( `aid` int(11) NOT NULL default '0', `bid` int(11) NOT NULL default '0', PRIMARY KEY (`aid`,`bid`));
-CREATE TABLE `t2` ( `aid` int(11) NOT NULL default '0', `bid` int(11) NOT NULL default '0', PRIMARY KEY (`aid`,`bid`));
-insert into t1 values (1,1),(1,2),(2,1),(2,2);
-insert into t2 values (1,2),(2,2);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-alter table t2 drop primary key;
-alter table t2 add key KEY1 (aid, bid);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-alter table t2 drop key KEY1;
-alter table t2 add primary key (bid, aid);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-drop table t1,t2;
-CREATE TABLE t1 (howmanyvalues bigint, avalue int);
-INSERT INTO t1 VALUES (1, 1),(2, 1),(2, 2),(3, 1),(3, 2),(3, 3),(4, 1),(4, 2),(4, 3),(4, 4);
-SELECT howmanyvalues, count(*) from t1 group by howmanyvalues;
-howmanyvalues count(*)
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.howmanyvalues) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-CREATE INDEX t1_howmanyvalues_idx ON t1 (howmanyvalues);
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues+1 = a.howmanyvalues+1) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.howmanyvalues) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.avalue) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 1
-3 1
-4 1
-drop table t1;
-create table t1 (x int);
-select (select b.x from t1 as b where b.x=a.x) from t1 as a where a.x=2 group by a.x;
-(select b.x from t1 as b where b.x=a.x)
-drop table t1;
-CREATE TABLE `t1` ( `master` int(10) unsigned NOT NULL default '0', `map` smallint(6) unsigned NOT NULL default '0', `slave` int(10) unsigned NOT NULL default '0', `access` int(10) unsigned NOT NULL default '0', UNIQUE KEY `access_u` (`master`,`map`,`slave`));
-INSERT INTO `t1` VALUES (1,0,0,700),(1,1,1,400),(1,5,5,400),(1,12,12,400),(1,12,32,400),(4,12,32,400);
-CREATE TABLE `t2` ( `id` int(10) unsigned NOT NULL default '0', `pid` int(10) unsigned NOT NULL default '0', `map` smallint(6) unsigned NOT NULL default '0', `level` tinyint(4) unsigned NOT NULL default '0', `title` varchar(255) default NULL, PRIMARY KEY (`id`,`pid`,`map`), KEY `level` (`level`), KEY `id` (`id`,`map`)) ;
-INSERT INTO `t2` VALUES (6,5,12,7,'a'),(12,0,0,7,'a'),(12,1,0,7,'a'),(12,5,5,7,'a'),(12,5,12,7,'a');
-SELECT b.sc FROM (SELECT (SELECT a.access FROM t1 a WHERE a.map = op.map AND a.slave = op.pid AND a.master = 1) ac FROM t2 op WHERE op.id = 12 AND op.map = 0) b;
-ERROR 42S22: Unknown column 'b.sc' in 'field list'
-SELECT b.ac FROM (SELECT (SELECT a.access FROM t1 a WHERE a.map = op.map AND a.slave = op.pid AND a.master = 1) ac FROM t2 op WHERE op.id = 12 AND op.map = 0) b;
-ac
-700
-NULL
-drop tables t1,t2;
-create table t1 (a int not null, b int not null, c int, primary key (a,b));
-insert into t1 values (1,1,1), (2,2,2), (3,3,3);
-set @b:= 0;
-explain select sum(a) from t1 where b > @b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 8 NULL 3 Using where; Using index
-set @a:= (select sum(a) from t1 where b > @b);
-explain select a from t1 where c=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-do @a:= (select sum(a) from t1 where b > @b);
-explain select a from t1 where c=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-drop table t1;
-connect root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root;
-set @got_val= (SELECT 1 FROM (SELECT 'A' as my_col) as T1 ) ;
-disconnect root;
-connection default;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1,1),(1,2),(1,3),(2,4),(2,5);
-insert into t2 values (1,3),(2,1);
-select distinct a,b, (select max(b) from t2 where t1.b=t2.a) from t1 order by t1.b;
-a b (select max(b) from t2 where t1.b=t2.a)
-1 1 3
-1 2 1
-1 3 NULL
-2 4 NULL
-2 5 NULL
-drop table t1, t2;
-create table t1 (id int);
-create table t2 (id int, body text, fulltext (body));
-insert into t1 values(1),(2),(3);
-insert into t2 values (1,'test'), (2,'mysql'), (3,'test'), (4,'test');
-select count(distinct id) from t1 where id in (select id from t2 where match(body) against ('mysql' in boolean mode));
-count(distinct id)
-1
-drop table t2,t1;
-create table t1 (s1 int,s2 int);
-insert into t1 values (20,15);
-select * from t1 where (('a',null) <=> (select 'a',s2 from t1 where s1 = 0));
-s1 s2
-drop table t1;
-create table t1 (s1 int);
-insert into t1 values (1),(null);
-select * from t1 where s1 < all (select s1 from t1);
-s1
-select s1, s1 < all (select s1 from t1) from t1;
-s1 s1 < all (select s1 from t1)
-1 0
-NULL NULL
-drop table t1;
-CREATE TABLE t1 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL default 'Asia',
-Region char(26) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-IndepYear smallint(6) default NULL,
-Population int(11) NOT NULL default '0',
-LifeExpectancy float(3,1) default NULL,
-GNP float(10,2) default NULL,
-GNPOld float(10,2) default NULL,
-LocalName char(45) NOT NULL default '',
-GovernmentForm char(45) NOT NULL default '',
-HeadOfState char(60) default NULL,
-Capital int(11) default NULL,
-Code2 char(2) NOT NULL default ''
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('XXX','Xxxxx','Oceania','Xxxxxx',26.00,0,0,0,0,0,'Xxxxx','Xxxxx','Xxxxx',NULL,'XX');
-INSERT INTO t1 VALUES ('ASM','American Samoa','Oceania','Polynesia',199.00,0,68000,75.1,334.00,NULL,'Amerika Samoa','US Territory','George W. Bush',54,'AS');
-INSERT INTO t1 VALUES ('ATF','French Southern territories','Antarctica','Antarctica',7780.00,0,0,NULL,0.00,NULL,'Terres australes françaises','Nonmetropolitan Territory of France','Jacques Chirac',NULL,'TF');
-INSERT INTO t1 VALUES ('UMI','United States Minor Outlying Islands','Oceania','Micronesia/Caribbean',16.00,0,0,NULL,0.00,NULL,'United States Minor Outlying Islands','Dependent Territory of the US','George W. Bush',NULL,'UM');
-/*!40000 ALTER TABLE t1 ENABLE KEYS */;
-SELECT DISTINCT Continent AS c FROM t1 outr WHERE
-Code <> SOME ( SELECT Code FROM t1 WHERE Continent = outr.Continent AND
-Population < 200);
-c
-Oceania
-drop table t1;
-create table t1 (a1 int);
-create table t2 (b1 int);
-select * from t1 where a2 > any(select b1 from t2);
-ERROR 42S22: Unknown column 'a2' in 'IN/ALL/ANY subquery'
-select * from t1 where a1 > any(select b1 from t2);
-a1
-drop table t1,t2;
-create table t1 (a integer, b integer);
-select (select * from t1) = (select 1,2);
-(select * from t1) = (select 1,2)
-NULL
-select (select 1,2) = (select * from t1);
-(select 1,2) = (select * from t1)
-NULL
-select row(1,2) = ANY (select * from t1);
-row(1,2) = ANY (select * from t1)
-0
-select row(1,2) != ALL (select * from t1);
-row(1,2) != ALL (select * from t1)
-1
-drop table t1;
-create table t1 (a integer, b integer);
-select row(1,(2,2)) in (select * from t1 );
-ERROR 21000: Operand should contain 2 column(s)
-select row(1,(2,2)) = (select * from t1 );
-ERROR 21000: Operand should contain 2 column(s)
-select (select * from t1) = row(1,(2,2));
-ERROR 21000: Operand should contain 1 column(s)
-drop table t1;
-create table t1 (a integer);
-insert into t1 values (1);
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx ;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 as xx, 1 = ALL ( select 1 from t1 where 1 = xx );
-xx 1 = ALL ( select 1 from t1 where 1 = xx )
-1 1
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx from DUAL;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-drop table t1;
-CREATE TABLE t1 (
-categoryId int(11) NOT NULL,
-courseId int(11) NOT NULL,
-startDate datetime NOT NULL,
-endDate datetime NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL,
-attributes text NOT NULL
-);
-INSERT INTO t1 VALUES (1,41,'2004-02-09','2010-01-01','2004-02-09','2004-02-09',''),
-(1,86,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(1,87,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(2,52,'2004-03-15','2004-10-01','2004-03-15','2004-09-17',''),
-(2,53,'2004-03-16','2004-10-01','2004-03-16','2004-09-17',''),
-(2,88,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(2,89,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(3,51,'2004-02-09','2010-01-01','2004-02-09','2004-02-09',''),
-(5,12,'2004-02-18','2010-01-01','2004-02-18','2004-02-18','');
-CREATE TABLE t2 (
-userId int(11) NOT NULL,
-courseId int(11) NOT NULL,
-date datetime NOT NULL
-);
-INSERT INTO t2 VALUES (5141,71,'2003-11-18'),
-(5141,72,'2003-11-25'),(5141,41,'2004-08-06'),
-(5141,52,'2004-08-06'),(5141,53,'2004-08-06'),
-(5141,12,'2004-08-06'),(5141,86,'2004-10-21'),
-(5141,87,'2004-10-21'),(5141,88,'2004-10-21'),
-(5141,89,'2004-10-22'),(5141,51,'2004-10-26');
-CREATE TABLE t3 (
-groupId int(11) NOT NULL,
-parentId int(11) NOT NULL,
-startDate datetime NOT NULL,
-endDate datetime NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL,
-ordering int(11)
-);
-INSERT INTO t3 VALUES (12,9,'1000-01-01','3999-12-31','2004-01-29','2004-01-29',NULL);
-CREATE TABLE t4 (
-id int(11) NOT NULL,
-groupTypeId int(11) NOT NULL,
-groupKey varchar(50) NOT NULL,
-name text,
-ordering int(11),
-description text,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL
-);
-INSERT INTO t4 VALUES (9,5,'stationer','stationer',0,'Stationer','2004-01-29','2004-01-29'),
-(12,5,'group2','group2',0,'group2','2004-01-29','2004-01-29');
-CREATE TABLE t5 (
-userId int(11) NOT NULL,
-groupId int(11) NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL
-);
-INSERT INTO t5 VALUES (5141,12,'2004-08-06','2004-08-06');
-select
-count(distinct t2.userid) pass,
-groupstuff.*,
-count(t2.courseid) crse,
-t1.categoryid,
-t2.courseid,
-date_format(date, '%b%y') as colhead
-from t2
-join t1 on t2.courseid=t1.courseid
-join
-(
-select
-t5.userid,
-parentid,
-parentgroup,
-childid,
-groupname,
-grouptypeid
-from t5
-join
-(
-select t4.id as parentid,
-t4.name as parentgroup,
-t4.id as childid,
-t4.name as groupname,
-t4.grouptypeid
-from t4
-) as gin on t5.groupid=gin.childid
-) as groupstuff on t2.userid = groupstuff.userid
-group by
-groupstuff.groupname, colhead , t2.courseid;
-pass userid parentid parentgroup childid groupname grouptypeid crse categoryid courseid colhead
-1 5141 12 group2 12 group2 5 1 5 12 Aug04
-1 5141 12 group2 12 group2 5 1 1 41 Aug04
-1 5141 12 group2 12 group2 5 1 2 52 Aug04
-1 5141 12 group2 12 group2 5 1 2 53 Aug04
-1 5141 12 group2 12 group2 5 1 3 51 Oct04
-1 5141 12 group2 12 group2 5 1 1 86 Oct04
-1 5141 12 group2 12 group2 5 1 1 87 Oct04
-1 5141 12 group2 12 group2 5 1 2 88 Oct04
-1 5141 12 group2 12 group2 5 1 2 89 Oct04
-drop table t1, t2, t3, t4, t5;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-SELECT 1 FROM t1 WHERE (SELECT 1) in (SELECT 1);
-1
-1
-1
-1
-drop table t1;
-create table t1 (a int);
-create table t2 (a int);
-insert into t1 values (1),(2);
-insert into t2 values (0),(1),(2),(3);
-select a from t2 where a in (select a from t1);
-a
-1
-2
-select a from t2 having a in (select a from t1);
-a
-1
-2
-prepare stmt1 from "select a from t2 where a in (select a from t1)";
-execute stmt1;
-a
-1
-2
-execute stmt1;
-a
-1
-2
-deallocate prepare stmt1;
-prepare stmt1 from "select a from t2 having a in (select a from t1)";
-execute stmt1;
-a
-1
-2
-execute stmt1;
-a
-1
-2
-deallocate prepare stmt1;
-drop table t1, t2;
-create table t1 (a int, b int);
-insert into t1 values (1,2);
-select 1 = (select * from t1);
-ERROR HY000: Illegal parameter data types int and row for operation '='
-select (select * from t1) = 1;
-ERROR HY000: Illegal parameter data types row and int for operation '='
-select (1,2) = (select a from t1);
-ERROR HY000: Illegal parameter data types row and int for operation '='
-select (select a from t1) = (1,2);
-ERROR HY000: Illegal parameter data types int and row for operation '='
-select (1,2,3) = (select * from t1);
-ERROR 21000: Operand should contain 3 column(s)
-select (select * from t1) = (1,2,3);
-ERROR 21000: Operand should contain 2 column(s)
-drop table t1;
-CREATE TABLE `t1` (
-`itemid` bigint(20) unsigned NOT NULL auto_increment,
-`sessionid` bigint(20) unsigned default NULL,
-`time` int(10) unsigned NOT NULL default '0',
-`type` set('A','D','E','F','G','I','L','N','U') collate latin1_general_ci NOT
-NULL default '',
-`data` text collate latin1_general_ci NOT NULL,
-PRIMARY KEY (`itemid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t1` VALUES (1, 1, 1, 'D', '');
-CREATE TABLE `t2` (
-`sessionid` bigint(20) unsigned NOT NULL auto_increment,
-`pid` int(10) unsigned NOT NULL default '0',
-`date` int(10) unsigned NOT NULL default '0',
-`ip` varchar(15) collate latin1_general_ci NOT NULL default '',
-PRIMARY KEY (`sessionid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t2` VALUES (1, 1, 1, '10.10.10.1');
-SELECT s.ip, count( e.itemid ) FROM `t1` e JOIN t2 s ON s.sessionid = e.sessionid WHERE e.sessionid = ( SELECT sessionid FROM t2 ORDER BY sessionid DESC LIMIT 1 ) GROUP BY s.ip HAVING count( e.itemid ) >0 LIMIT 0 , 30;
-ip count( e.itemid )
-10.10.10.1 1
-drop tables t1,t2;
-create table t1 (fld enum('0','1'));
-insert into t1 values ('1');
-select * from (select max(fld) from t1) as foo;
-max(fld)
-1
-drop table t1;
-set @tmp11867_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin_with_cache=off';
-CREATE TABLE t1 (one int, two int, flag char(1));
-CREATE TABLE t2 (one int, two int, flag char(1));
-INSERT INTO t1 VALUES(1,2,'Y'),(2,3,'Y'),(3,4,'Y'),(5,6,'N'),(7,8,'N');
-INSERT INTO t2 VALUES(1,2,'Y'),(2,3,'Y'),(3,4,'Y'),(5,6,'N'),(7,8,'N');
-SELECT * FROM t1
-WHERE ROW(one,two) IN (SELECT DISTINCT one,two FROM t2 WHERE flag = 'N');
-one two flag
-5 6 N
-7 8 N
-SELECT * FROM t1
-WHERE ROW(one,two) IN (SELECT DISTINCT one,two FROM t1 WHERE flag = 'N');
-one two flag
-5 6 N
-7 8 N
-insert into t2 values (null,null,'N');
-insert into t2 values (null,3,'0');
-insert into t2 values (null,5,'0');
-insert into t2 values (10,null,'0');
-insert into t1 values (10,3,'0');
-insert into t1 values (10,5,'0');
-insert into t1 values (10,10,'0');
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N') as 'test' from t1;
-one two test
-1 2 NULL
-2 3 NULL
-3 4 NULL
-5 6 1
-7 8 1
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two from t1 where ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N');
-one two
-5 6
-7 8
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N' group by one,two) as 'test' from t1;
-one two test
-1 2 NULL
-2 3 NULL
-3 4 NULL
-5 6 1
-7 8 1
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0') as 'test' from t1;
-one two test
-1 2 0
-2 3 NULL
-3 4 0
-5 6 0
-7 8 0
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0' group by one,two) as 'test' from t1;
-one two test
-1 2 0
-2 3 NULL
-3 4 0
-5 6 0
-7 8 0
-10 3 NULL
-10 5 NULL
-10 10 NULL
-explain extended SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0') as 'test' from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two`,<expr_cache><`test`.`t1`.`one`,`test`.`t1`.`two`>(<in_optimizer>((`test`.`t1`.`one`,`test`.`t1`.`two`),<exists>(/* select#2 */ select `test`.`t2`.`one`,`test`.`t2`.`two` from `test`.`t2` where `test`.`t2`.`flag` = '0' and trigcond(trigcond(<cache>(`test`.`t1`.`one`) = `test`.`t2`.`one` or `test`.`t2`.`one` is null)) and trigcond(trigcond(<cache>(`test`.`t1`.`two`) = `test`.`t2`.`two` or `test`.`t2`.`two` is null)) having trigcond(`test`.`t2`.`one` is null) and trigcond(`test`.`t2`.`two` is null)))) AS `test` from `test`.`t1`
-explain extended SELECT one,two from t1 where ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`flag` = 'N'
-explain extended SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0' group by one,two) as 'test' from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two`,<expr_cache><`test`.`t1`.`one`,`test`.`t1`.`two`>(<in_optimizer>((`test`.`t1`.`one`,`test`.`t1`.`two`),<exists>(/* select#2 */ select `test`.`t2`.`one`,`test`.`t2`.`two` from `test`.`t2` where `test`.`t2`.`flag` = '0' and trigcond(trigcond(<cache>(`test`.`t1`.`one`) = `test`.`t2`.`one` or `test`.`t2`.`one` is null)) and trigcond(trigcond(<cache>(`test`.`t1`.`two`) = `test`.`t2`.`two` or `test`.`t2`.`two` is null)) having trigcond(`test`.`t2`.`one` is null) and trigcond(`test`.`t2`.`two` is null)))) AS `test` from `test`.`t1`
-DROP TABLE t1,t2;
-set optimizer_switch=@tmp11867_optimizer_switch;
-CREATE TABLE t1 (a char(5), b char(5));
-INSERT INTO t1 VALUES (NULL,'aaa'), ('aaa','aaa');
-SELECT * FROM t1 WHERE (a,b) IN (('aaa','aaa'), ('aaa','bbb'));
-a b
-aaa aaa
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int, b int);
-CREATE TABLE t3 (b int NOT NULL);
-INSERT INTO t1 VALUES (1), (2), (3), (4);
-INSERT INTO t2 VALUES (1,10), (3,30);
-SELECT * FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t3.b IS NOT NULL OR t2.a > 10;
-a b b
-SELECT * FROM t1
-WHERE t1.a NOT IN (SELECT a FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t3.b IS NOT NULL OR t2.a > 10);
-a
-1
-2
-3
-4
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (f1 INT);
-CREATE TABLE t2 (f2 INT);
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2);
-f1
-1
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2 WHERE 1=0);
-f1
-1
-INSERT INTO t2 VALUES (1);
-INSERT INTO t2 VALUES (2);
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2 WHERE f2=0);
-f1
-1
-DROP TABLE t1, t2;
-select 1 from dual where 1 < any (select 2);
-1
-1
-select 1 from dual where 1 < all (select 2);
-1
-1
-select 1 from dual where 2 > any (select 1);
-1
-1
-select 1 from dual where 2 > all (select 1);
-1
-1
-select 1 from dual where 1 < any (select 2 from dual);
-1
-1
-select 1 from dual where 1 < all (select 2 from dual where 1!=1);
-1
-1
-create table t1 (s1 char);
-insert into t1 values (1),(2);
-select * from t1 where (s1 < any (select s1 from t1));
-s1
-1
-select * from t1 where not (s1 < any (select s1 from t1));
-s1
-2
-select * from t1 where (s1 < ALL (select s1+1 from t1));
-s1
-1
-select * from t1 where not(s1 < ALL (select s1+1 from t1));
-s1
-2
-select * from t1 where (s1+1 = ANY (select s1 from t1));
-s1
-1
-select * from t1 where NOT(s1+1 = ANY (select s1 from t1));
-s1
-2
-select * from t1 where (s1 = ALL (select s1/s1 from t1));
-s1
-1
-select * from t1 where NOT(s1 = ALL (select s1/s1 from t1));
-s1
-2
-drop table t1;
-create table t1 (
-retailerID varchar(8) NOT NULL,
-statusID int(10) unsigned NOT NULL,
-changed datetime NOT NULL,
-UNIQUE KEY retailerID (retailerID, statusID, changed)
-);
-INSERT INTO t1 VALUES("0026", "1", "2005-12-06 12:18:56");
-INSERT INTO t1 VALUES("0026", "2", "2006-01-06 12:25:53");
-INSERT INTO t1 VALUES("0037", "1", "2005-12-06 12:18:56");
-INSERT INTO t1 VALUES("0037", "2", "2006-01-06 12:25:53");
-INSERT INTO t1 VALUES("0048", "1", "2006-01-06 12:37:50");
-INSERT INTO t1 VALUES("0059", "1", "2006-01-06 12:37:50");
-select * from t1 r1
-where (r1.retailerID,(r1.changed)) in
-(SELECT r2.retailerId,(max(changed)) from t1 r2
-group by r2.retailerId);
-retailerID statusID changed
-0026 2 2006-01-06 12:25:53
-0037 2 2006-01-06 12:25:53
-0048 1 2006-01-06 12:37:50
-0059 1 2006-01-06 12:37:50
-drop table t1;
-create table t1(a int, primary key (a));
-insert into t1 values (10);
-create table t2 (a int primary key, b varchar(32), c int, unique key b(c, b));
-insert into t2(a, c, b) values (1,10,'359'), (2,10,'35988'), (3,10,'35989');
-explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
-1 PRIMARY r const PRIMARY PRIMARY 4 const 1
-2 SUBQUERY t2 range b b 40 NULL 2 Using where
-SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
-a a b
-10 3 35989
-explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
-1 PRIMARY r const PRIMARY PRIMARY 4 const 1
-2 SUBQUERY t2 range b b 40 NULL 2 Using index condition
-SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
-a a b
-10 1 359
-drop table t1,t2;
-CREATE TABLE t1 (
-field1 int NOT NULL,
-field2 int NOT NULL,
-field3 int NOT NULL,
-PRIMARY KEY (field1,field2,field3)
-);
-CREATE TABLE t2 (
-fieldA int NOT NULL,
-fieldB int NOT NULL,
-PRIMARY KEY (fieldA,fieldB)
-);
-INSERT INTO t1 VALUES
-(1,1,1), (1,1,2), (1,2,1), (1,2,2), (1,2,3), (1,3,1);
-INSERT INTO t2 VALUES (1,1), (1,2), (1,3);
-SELECT field1, field2, COUNT(*)
-FROM t1 GROUP BY field1, field2;
-field1 field2 COUNT(*)
-1 1 2
-1 2 3
-1 3 1
-SELECT field1, field2
-FROM t1
-GROUP BY field1, field2
-HAVING COUNT(*) >= ALL (SELECT fieldB
-FROM t2 WHERE fieldA = field1);
-field1 field2
-1 2
-SELECT field1, field2
-FROM t1
-GROUP BY field1, field2
-HAVING COUNT(*) < ANY (SELECT fieldB
-FROM t2 WHERE fieldA = field1);
-field1 field2
-1 1
-1 3
-DROP TABLE t1, t2;
-CREATE TABLE t1(a int, INDEX (a));
-INSERT INTO t1 VALUES (1), (3), (5), (7);
-INSERT INTO t1 VALUES (NULL);
-CREATE TABLE t2(a int);
-INSERT INTO t2 VALUES (1),(2),(3);
-EXPLAIN SELECT a, a IN (SELECT a FROM t1) FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3
-2 SUBQUERY t1 index_subquery a a 5 func 2 Using index; Full scan on NULL key
-SELECT a, a IN (SELECT a FROM t1) FROM t2;
-a a IN (SELECT a FROM t1)
-1 1
-2 NULL
-3 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES ('1998-09-23'), ('2003-03-25');
-CREATE TABLE t2 AS SELECT
-(SELECT a FROM t1 WHERE a < '2000-01-01') AS sub_a
-FROM t1 WHERE a > '2000-01-01';
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `sub_a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t3 AS (SELECT a FROM t1 WHERE a < '2000-01-01') UNION (SELECT a FROM t1 WHERE a > '2000-01-01');
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) > 0;
-a
-SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) IS NULL;
-a
-1
-2
-EXPLAIN SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (2), (4), (1), (3);
-CREATE TABLE t2 (b int, c int);
-INSERT INTO t2 VALUES
-(2,1), (1,3), (2,1), (4,4), (2,2), (1,4);
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 2 );
-a
-2
-4
-1
-3
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 1);
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 2), a;
-a
-1
-2
-3
-4
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 1), a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT b, MAX(c) FROM t2 GROUP BY b, (SELECT c FROM t2 WHERE b > 2);
-b MAX(c)
-1 4
-2 2
-4 4
-SELECT b, MAX(c) FROM t2 GROUP BY b, (SELECT c FROM t2 WHERE b > 1);
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 2),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-a
-1
-2
-3
-4
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 1),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-a
-4
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b)) > 3;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 2),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b));
-a
-1
-2
-3
-4
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 1),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b));
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b));
-a
-1
-2
-3
-4
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b));
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1,t2;
-create table t1 (df decimal(5,1));
-insert into t1 values(1.1);
-insert into t1 values(2.2);
-select * from t1 where df <= all (select avg(df) from t1 group by df);
-df
-1.1
-select * from t1 where df >= all (select avg(df) from t1 group by df);
-df
-2.2
-drop table t1;
-create table t1 (df decimal(5,1));
-insert into t1 values(1.1);
-select 1.1 * exists(select * from t1);
-1.1 * exists(select * from t1)
-1.1
-drop table t1;
-CREATE TABLE t1 (
-grp int(11) default NULL,
-a decimal(10,2) default NULL);
-insert into t1 values (1, 1), (2, 2), (2, 3), (3, 4), (3, 5), (3, 6), (NULL, NULL);
-select * from t1;
-grp a
-1 1.00
-2 2.00
-2 3.00
-3 4.00
-3 5.00
-3 6.00
-NULL NULL
-select min(a) from t1 group by grp;
-min(a)
-NULL
-1.00
-2.00
-4.00
-drop table t1;
-CREATE table t1 ( c1 integer );
-INSERT INTO t1 VALUES ( 1 );
-INSERT INTO t1 VALUES ( 2 );
-INSERT INTO t1 VALUES ( 3 );
-CREATE TABLE t2 ( c2 integer );
-INSERT INTO t2 VALUES ( 1 );
-INSERT INTO t2 VALUES ( 4 );
-INSERT INTO t2 VALUES ( 5 );
-SELECT * FROM t1 LEFT JOIN t2 ON c1 = c2 WHERE c2 IN (1);
-c1 c2
-1 1
-SELECT * FROM t1 LEFT JOIN t2 ON c1 = c2
-WHERE c2 IN ( SELECT c2 FROM t2 WHERE c2 IN ( 1 ) );
-c1 c2
-1 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 ( c1 integer );
-INSERT INTO t1 VALUES ( 1 );
-INSERT INTO t1 VALUES ( 2 );
-INSERT INTO t1 VALUES ( 3 );
-INSERT INTO t1 VALUES ( 6 );
-CREATE TABLE t2 ( c2 integer );
-INSERT INTO t2 VALUES ( 1 );
-INSERT INTO t2 VALUES ( 4 );
-INSERT INTO t2 VALUES ( 5 );
-INSERT INTO t2 VALUES ( 6 );
-CREATE TABLE t3 ( c3 integer );
-INSERT INTO t3 VALUES ( 7 );
-INSERT INTO t3 VALUES ( 8 );
-SELECT c1,c2 FROM t1 LEFT JOIN t2 ON c1 = c2
-WHERE EXISTS (SELECT c3 FROM t3 WHERE c2 IS NULL );
-c1 c2
-2 NULL
-3 NULL
-DROP TABLE t1,t2,t3;
-CREATE TABLE `t1` (
-`itemid` bigint(20) unsigned NOT NULL auto_increment,
-`sessionid` bigint(20) unsigned default NULL,
-`time` int(10) unsigned NOT NULL default '0',
-`type` set('A','D','E','F','G','I','L','N','U') collate latin1_general_ci NOT
-NULL default '',
-`data` text collate latin1_general_ci NOT NULL,
-PRIMARY KEY (`itemid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t1` VALUES (1, 1, 1, 'D', '');
-CREATE TABLE `t2` (
-`sessionid` bigint(20) unsigned NOT NULL auto_increment,
-`pid` int(10) unsigned NOT NULL default '0',
-`date` int(10) unsigned NOT NULL default '0',
-`ip` varchar(15) collate latin1_general_ci NOT NULL default '',
-PRIMARY KEY (`sessionid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t2` VALUES (1, 1, 1, '10.10.10.1');
-SELECT s.ip, count( e.itemid ) FROM `t1` e JOIN t2 s ON s.sessionid = e.sessionid WHERE e.sessionid = ( SELECT sessionid FROM t2 ORDER BY sessionid DESC LIMIT 1 ) GROUP BY s.ip HAVING count( e.itemid ) >0 LIMIT 0 , 30;
-ip count( e.itemid )
-10.10.10.1 1
-drop tables t1,t2;
-CREATE TABLE t1 (EMPNUM CHAR(3));
-CREATE TABLE t2 (EMPNUM CHAR(3) );
-INSERT INTO t1 VALUES ('E1'),('E2');
-INSERT INTO t2 VALUES ('E1');
-DELETE FROM t1
-WHERE t1.EMPNUM NOT IN
-(SELECT t2.EMPNUM
-FROM t2
-WHERE t1.EMPNUM = t2.EMPNUM);
-select * from t1;
-EMPNUM
-E1
-DROP TABLE t1,t2;
-CREATE TABLE t1(select_id BIGINT, values_id BIGINT);
-INSERT INTO t1 VALUES (1, 1);
-CREATE TABLE t2 (select_id BIGINT, values_id BIGINT,
-PRIMARY KEY(select_id,values_id));
-INSERT INTO t2 VALUES (0, 1), (0, 2), (0, 3), (1, 5);
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id IN (1, 0));
-values_id
-1
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id BETWEEN 0 AND 1);
-values_id
-1
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id = 0 OR select_id = 1);
-values_id
-1
-DROP TABLE t1, t2;
-create table t1 (fld enum('0','1'));
-insert into t1 values ('1');
-select * from (select max(fld) from t1) as foo;
-max(fld)
-1
-drop table t1;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (c int, d int);
-CREATE TABLE t3 (e int);
-INSERT INTO t1 VALUES
-(1,10), (2,10), (1,20), (2,20), (3,20), (2,30), (4,40);
-INSERT INTO t2 VALUES
-(2,10), (2,20), (4,10), (5,10), (3,20), (2,40);
-INSERT INTO t3 VALUES (10), (30), (10), (20) ;
-SELECT a, MAX(b), MIN(b) FROM t1 GROUP BY a;
-a MAX(b) MIN(b)
-1 20 10
-2 30 10
-3 20 20
-4 40 40
-SELECT * FROM t2;
-c d
-2 10
-2 20
-4 10
-5 10
-3 20
-2 40
-SELECT * FROM t3;
-e
-10
-30
-10
-20
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)>20);
-a
-2
-4
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)<d);
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)>d);
-a
-2
-4
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE d >= SOME(SELECT e FROM t3 WHERE MAX(b)=e));
-a
-2
-3
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e <= d));
-a
-2
-3
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE d > SOME(SELECT e FROM t3 WHERE MAX(b)=e));
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e < d));
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE MIN(b) < d AND
-EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e <= d));
-a
-2
-SELECT a, SUM(a) FROM t1 GROUP BY a;
-a SUM(a)
-1 2
-2 6
-3 3
-4 4
-SELECT a FROM t1
-WHERE EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) = c) GROUP BY a;
-a
-3
-4
-SELECT a FROM t1 GROUP BY a
-HAVING EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) = c);
-a
-1
-3
-4
-SELECT a FROM t1
-WHERE a < 3 AND
-EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) != c) GROUP BY a;
-a
-1
-2
-SELECT a FROM t1
-WHERE a < 3 AND
-EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) != c);
-a
-1
-2
-1
-2
-2
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a < ALL(SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING EXISTS(SELECT t3.e FROM t3 GROUP BY t3.e
-HAVING SUM(t1.a+t2.c) < t3.e/4));
-a
-1
-2
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a > ALL(SELECT t2.c FROM t2
-WHERE EXISTS(SELECT t3.e FROM t3 GROUP BY t3.e
-HAVING SUM(t1.a+t2.c) < t3.e/4));
-a
-4
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a > ALL(SELECT t2.c FROM t2
-WHERE EXISTS(SELECT t3.e FROM t3
-WHERE SUM(t1.a+t2.c) < t3.e/4));
-ERROR HY000: Invalid use of group function
-SELECT t1.a from t1 GROUP BY t1.a HAVING AVG(SUM(t1.b)) > 20;
-ERROR HY000: Invalid use of group function
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING AVG(t2.c+SUM(t1.b)) > 20);
-a
-2
-3
-4
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING AVG(SUM(t1.b)) > 20);
-a
-2
-4
-SELECT t1.a, SUM(b) AS sum FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING t2.c+sum > 20);
-a sum
-2 60
-3 20
-4 40
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a varchar(5), b varchar(10));
-INSERT INTO t1 VALUES
-('AAA', 5), ('BBB', 4), ('BBB', 1), ('CCC', 2),
-('CCC', 7), ('AAA', 2), ('AAA', 4), ('BBB', 3), ('AAA', 8);
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-a b
-BBB 4
-CCC 7
-AAA 8
-EXPLAIN
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 21 test.t1.a,test.t1.b 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 9 Using temporary
-ALTER TABLE t1 ADD INDEX(a);
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-a b
-BBB 4
-CCC 7
-AAA 8
-EXPLAIN
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL a NULL NULL NULL 9 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 21 test.t1.a,test.t1.b 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 9 Using temporary
-DROP TABLE t1;
-create table t1( f1 int,f2 int);
-insert into t1 values (1,1),(2,2);
-select tt.t from (select 'crash1' as t, f2 from t1) as tt left join t1 on tt.t = 'crash2' and tt.f2 = t1.f2 where tt.t = 'crash1';
-t
-crash1
-crash1
-drop table t1;
-create table t1 (c int, key(c));
-insert into t1 values (1142477582), (1142455969);
-create table t2 (a int, b int);
-insert into t2 values (2, 1), (1, 0);
-delete from t1 where c <= 1140006215 and (select b from t2 where a = 2) = 1;
-drop table t1, t2;
-CREATE TABLE t1 (a INT);
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE no_such_column = ANY (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'IN/ALL/ANY subquery'
-CREATE VIEW v2 AS SELECT * FROM t1 WHERE no_such_column = (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'where clause'
-SELECT * FROM t1 WHERE no_such_column = ANY (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'IN/ALL/ANY subquery'
-DROP TABLE t1;
-create table t1 (i int, j bigint);
-insert into t1 values (1, 2), (2, 2), (3, 2);
-select * from (select min(i) from t1 where j=(select * from (select min(j) from t1) t2)) t3;
-min(i)
-1
-drop table t1;
-CREATE TABLE t1 (i BIGINT UNSIGNED);
-INSERT INTO t1 VALUES (10000000000000000000);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (i BIGINT UNSIGNED);
-INSERT INTO t2 VALUES (10000000000000000000);
-INSERT INTO t2 VALUES (1);
-/* simple test */
-SELECT t1.i FROM t1 JOIN t2 ON t1.i = t2.i;
-i
-10000000000000000000
-1
-/* subquery test */
-SELECT t1.i FROM t1 WHERE t1.i = (SELECT MAX(i) FROM t2);
-i
-10000000000000000000
-/* subquery test with cast*/
-SELECT t1.i FROM t1 WHERE t1.i = CAST((SELECT MAX(i) FROM t2) AS UNSIGNED);
-i
-10000000000000000000
-DROP TABLE t1;
-DROP TABLE t2;
-CREATE TABLE t1 (
-id bigint(20) unsigned NOT NULL auto_increment,
-name varchar(255) NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t1 VALUES
-(1, 'Balazs'), (2, 'Joe'), (3, 'Frank');
-CREATE TABLE t2 (
-id bigint(20) unsigned NOT NULL auto_increment,
-mid bigint(20) unsigned NOT NULL,
-date date NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t2 VALUES
-(1, 1, '2006-03-30'), (2, 2, '2006-04-06'), (3, 3, '2006-04-13'),
-(4, 2, '2006-04-20'), (5, 1, '2006-05-01');
-SELECT *,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 0, 1) AS date_last,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 3, 1) AS date_next_to_last
-FROM t1;
-id name date_last date_next_to_last
-1 Balazs 2006-05-01 NULL
-2 Joe 2006-04-20 NULL
-3 Frank 2006-04-13 NULL
-SELECT *,
-(SELECT COUNT(*) FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 1, 1) AS date_count
-FROM t1;
-id name date_count
-1 Balazs NULL
-2 Joe NULL
-3 Frank NULL
-SELECT *,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 0, 1) AS date_last,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 1, 1) AS date_next_to_last
-FROM t1;
-id name date_last date_next_to_last
-1 Balazs 2006-05-01 2006-03-30
-2 Joe 2006-04-20 2006-04-06
-3 Frank 2006-04-13 NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-i1 int(11) NOT NULL default '0',
-i2 int(11) NOT NULL default '0',
-t datetime NOT NULL default '0000-00-00 00:00:00',
-PRIMARY KEY (i1,i2,t)
-);
-INSERT INTO t1 VALUES
-(24,1,'2005-03-03 16:31:31'),(24,1,'2005-05-27 12:40:07'),
-(24,1,'2005-05-27 12:40:08'),(24,1,'2005-05-27 12:40:10'),
-(24,1,'2005-05-27 12:40:25'),(24,1,'2005-05-27 12:40:30'),
-(24,2,'2005-03-03 13:43:05'),(24,2,'2005-03-03 16:23:31'),
-(24,2,'2005-03-03 16:31:30'),(24,2,'2005-05-27 12:37:02'),
-(24,2,'2005-05-27 12:40:06');
-CREATE TABLE t2 (
-i1 int(11) NOT NULL default '0',
-i2 int(11) NOT NULL default '0',
-t datetime default NULL,
-PRIMARY KEY (i1)
-);
-INSERT INTO t2 VALUES (24,1,'2006-06-20 12:29:40');
-EXPLAIN
-SELECT * FROM t1,t2
-WHERE t1.t = (SELECT t1.t FROM t1
-WHERE t1.t < t2.t AND t1.i2=1 AND t2.i1=t1.i1
-ORDER BY t1.t DESC LIMIT 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-1 PRIMARY t1 index NULL PRIMARY 13 NULL 11 Using where; Using index
-2 SUBQUERY t1 range PRIMARY PRIMARY 13 NULL 5 Using where; Using index
-SELECT * FROM t1,t2
-WHERE t1.t = (SELECT t1.t FROM t1
-WHERE t1.t < t2.t AND t1.i2=1 AND t2.i1=t1.i1
-ORDER BY t1.t DESC LIMIT 1);
-i1 i2 t i1 i2 t
-24 1 2005-05-27 12:40:30 24 1 2006-06-20 12:29:40
-DROP TABLE t1, t2;
-CREATE TABLE t1 (i INT);
-(SELECT i FROM t1) UNION (SELECT i FROM t1);
-i
-SELECT sql_no_cache * FROM t1 WHERE NOT EXISTS
-(
-(SELECT i FROM t1) UNION
-(SELECT i FROM t1)
-);
-i
-SELECT * FROM t1
-WHERE NOT EXISTS (((SELECT i FROM t1) UNION (SELECT i FROM t1)));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION (SELECT i FROM t1)))' at line 2
-explain select ((select t11.i from t1 t11) union (select t12.i from t1 t12))
-from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'union (select t12.i from t1 t12))
-from t1' at line 1
-explain select * from t1 where not exists
-((select t11.i from t1 t11) union (select t12.i from t1 t12));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-3 UNION NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(250), b INT auto_increment, PRIMARY KEY (b));
-insert into t1 (a) values (FLOOR(rand() * 100));
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-SELECT a,
-(SELECT REPEAT(' ',250) FROM t1 i1
-WHERE i1.b=t1.a ORDER BY RAND() LIMIT 1) AS a
-FROM t1 ORDER BY a LIMIT 5;
-a a
-0 NULL
-0 NULL
-0 NULL
-0 NULL
-0 NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 values (1);
-INSERT INTO t1 VALUES (1,1),(1,2),(2,3),(3,4);
-SELECT (SELECT COUNT(DISTINCT t1.b) from t2) FROM t1 GROUP BY t1.a;
-(SELECT COUNT(DISTINCT t1.b) from t2)
-2
-1
-1
-SELECT (SELECT COUNT(DISTINCT t1.b) from t2 union select 1 from t2 where 12 < 3)
-FROM t1 GROUP BY t1.a;
-(SELECT COUNT(DISTINCT t1.b) from t2 union select 1 from t2 where 12 < 3)
-2
-1
-1
-SELECT COUNT(DISTINCT t1.b), (SELECT COUNT(DISTINCT t1.b)) FROM t1 GROUP BY t1.a;
-COUNT(DISTINCT t1.b) (SELECT COUNT(DISTINCT t1.b))
-2 2
-1 1
-1 1
-SELECT COUNT(DISTINCT t1.b),
-(SELECT COUNT(DISTINCT t1.b) union select 1 from DUAL where 12 < 3)
-FROM t1 GROUP BY t1.a;
-COUNT(DISTINCT t1.b) (SELECT COUNT(DISTINCT t1.b) union select 1 from DUAL where 12 < 3)
-2 2
-1 1
-1 1
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a;
-(
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-2
-1
-1
-SELECT (
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a LIMIT 1)
-FROM t1 t2
-GROUP BY t2.a;
-(
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a LIMIT 1)
-2
-2
-2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int, PRIMARY KEY (b));
-CREATE TABLE t2 (x int auto_increment, y int, z int,
-PRIMARY KEY (x), FOREIGN KEY (y) REFERENCES t1 (b));
-create table t3 (a int);
-insert into t3 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t1 select RAND()*1000, A.a + 10*(B.a+10*(C.a+10*D.a))
-from t3 A, t3 B, t3 C, t3 D where D.a<3;
-insert into t2(y,z) select t1.b, RAND()*1000 from t1, t3;
-SET SESSION sort_buffer_size = 32 * 1024;
-SELECT SQL_NO_CACHE COUNT(*)
-FROM (SELECT a, b, (SELECT x FROM t2 WHERE y=b ORDER BY z DESC LIMIT 1) c
-FROM t1) t;
-COUNT(*)
-3000
-SET SESSION sort_buffer_size = 8 * 1024 * 1024;
-SELECT SQL_NO_CACHE COUNT(*)
-FROM (SELECT a, b, (SELECT x FROM t2 WHERE y=b ORDER BY z DESC LIMIT 1) c
-FROM t1) t;
-COUNT(*)
-3000
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (id char(4) PRIMARY KEY, c int);
-CREATE TABLE t2 (c int);
-INSERT INTO t1 VALUES ('aa', 1);
-INSERT INTO t2 VALUES (1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT c FROM t2 WHERE c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-INSERT INTO t1 VALUES ('bb', 2), ('cc', 3), ('dd',1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT c FROM t2 WHERE c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-bb 2
-cc 3
-dd 1
-INSERT INTO t2 VALUES (2);
-CREATE TABLE t3 (c int);
-INSERT INTO t3 VALUES (1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT t2.c FROM t2 JOIN t3 ON t2.c=t3.c WHERE t2.c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-bb 2
-cc 3
-dd 1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1(f1 int);
-CREATE TABLE t2(f2 int, f21 int, f3 timestamp);
-INSERT INTO t1 VALUES (1),(1),(2),(2);
-INSERT INTO t2 VALUES (1,1,"2004-02-29 11:11:11"), (2,2,"2004-02-29 11:11:11");
-SELECT ((SELECT f2 FROM t2 WHERE f21=f1 LIMIT 1) * COUNT(f1)) AS sq FROM t1 GROUP BY f1;
-sq
-2
-4
-SELECT (SELECT SUM(1) FROM t2 ttt GROUP BY t2.f3 LIMIT 1) AS tt FROM t2;
-tt
-2
-2
-PREPARE stmt1 FROM 'SELECT ((SELECT f2 FROM t2 WHERE f21=f1 LIMIT 1) * COUNT(f1)) AS sq FROM t1 GROUP BY f1';
-EXECUTE stmt1;
-sq
-2
-4
-EXECUTE stmt1;
-sq
-2
-4
-DEALLOCATE PREPARE stmt1;
-SELECT f2, AVG(f21),
-(SELECT t.f3 FROM t2 AS t WHERE t2.f2=t.f2 AND t.f3=MAX(t2.f3)) AS test
-FROM t2 GROUP BY f2;
-f2 AVG(f21) test
-1 1.0000 2004-02-29 11:11:11
-2 2.0000 2004-02-29 11:11:11
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b INT, c CHAR(10) NOT NULL);
-INSERT INTO t1 VALUES
-(1,1,'a'), (1,2,'b'), (1,3,'c'), (1,4,'d'), (1,5,'e'),
-(2,1,'f'), (2,2,'g'), (2,3,'h'), (3,4,'i'), (3,3,'j'),
-(3,2,'k'), (3,1,'l'), (1,9,'m');
-SELECT a, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b)) AS test
-FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-DROP TABLE IF EXISTS t1xt2;
-CREATE TABLE t1 (
-id_1 int(5) NOT NULL,
-t varchar(4) DEFAULT NULL
-);
-CREATE TABLE t2 (
-id_2 int(5) NOT NULL,
-t varchar(4) DEFAULT NULL
-);
-CREATE TABLE t1xt2 (
-id_1 int(5) NOT NULL,
-id_2 int(5) NOT NULL
-);
-INSERT INTO t1 VALUES (1, 'a'), (2, 'b'), (3, 'c'), (4, 'd');
-INSERT INTO t2 VALUES (2, 'bb'), (3, 'cc'), (4, 'dd'), (12, 'aa');
-INSERT INTO t1xt2 VALUES (2, 2), (3, 3), (4, 4);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 where t1.id_1 = t1xt2.id_1)));
-id_1
-1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 where t1.id_1 = t1xt2.id_1))));
-id_1
-1
-2
-3
-4
-insert INTO t1xt2 VALUES (1, 12);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-2
-3
-4
-insert INTO t1xt2 VALUES (2, 12);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-3
-4
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t1xt2;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (3), (1), (2);
-SELECT 'this is ' 'a test.' AS col1, a AS col2 FROM t1;
-col1 col2
-this is a test. 3
-this is a test. 1
-this is a test. 2
-SELECT * FROM (SELECT 'this is ' 'a test.' AS col1, a AS t2 FROM t1) t;
-col1 t2
-this is a test. 3
-this is a test. 1
-this is a test. 2
-DROP table t1;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (m int, n int);
-INSERT INTO t1 VALUES (2,2), (2,2), (3,3), (3,3), (3,3), (4,4);
-INSERT INTO t2 VALUES (1,11), (2,22), (3,32), (4,44), (4,44);
-SELECT COUNT(*), a,
-(SELECT m FROM t2 WHERE m = count(*) LIMIT 1)
-FROM t1 GROUP BY a;
-COUNT(*) a (SELECT m FROM t2 WHERE m = count(*) LIMIT 1)
-2 2 2
-3 3 3
-1 4 1
-SELECT COUNT(*), a,
-(SELECT MIN(m) FROM t2 WHERE m = count(*))
-FROM t1 GROUP BY a;
-COUNT(*) a (SELECT MIN(m) FROM t2 WHERE m = count(*))
-2 2 2
-3 3 3
-1 4 1
-SELECT COUNT(*), a
-FROM t1 GROUP BY a
-HAVING (SELECT MIN(m) FROM t2 WHERE m = count(*)) > 1;
-COUNT(*) a
-2 2
-3 3
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (m int, n int);
-INSERT INTO t1 VALUES (2,2), (2,2), (3,3), (3,3), (3,3), (4,4);
-INSERT INTO t2 VALUES (1,11), (2,22), (3,32), (4,44), (4,44);
-SELECT COUNT(*) c, a,
-(SELECT GROUP_CONCAT(COUNT(a)) FROM t2 WHERE m = a)
-FROM t1 GROUP BY a;
-c a (SELECT GROUP_CONCAT(COUNT(a)) FROM t2 WHERE m = a)
-2 2 2
-3 3 3
-1 4 1,1
-SELECT COUNT(*) c, a,
-(SELECT GROUP_CONCAT(COUNT(a)+1) FROM t2 WHERE m = a)
-FROM t1 GROUP BY a;
-c a (SELECT GROUP_CONCAT(COUNT(a)+1) FROM t2 WHERE m = a)
-2 2 3
-3 3 4
-1 4 2,2
-DROP table t1,t2;
-CREATE TABLE t1 (a int, b INT, d INT, c CHAR(10) NOT NULL, PRIMARY KEY (a, b));
-INSERT INTO t1 VALUES (1,1,0,'a'), (1,2,0,'b'), (1,3,0,'c'), (1,4,0,'d'),
-(1,5,0,'e'), (2,1,0,'f'), (2,2,0,'g'), (2,3,0,'h'), (3,4,0,'i'), (3,3,0,'j'),
-(3,2,0,'k'), (3,1,0,'l'), (1,9,0,'m'), (1,0,10,'n'), (2,0,5,'o'), (3,0,7,'p');
-SELECT a, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b + 0)) as test
-FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-SELECT a x, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE x=t.a AND t.b=MAX(t1.b + 0)) as test
-FROM t1 GROUP BY a;
-x MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-SELECT a, AVG(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=AVG(t1.b)) AS test
-FROM t1 WHERE t1.d=0 GROUP BY a;
-a AVG(b) test
-1 4.0000 d
-2 2.0000 g
-3 2.5000 NULL
-SELECT tt.a,
-(SELECT (SELECT c FROM t1 as t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1) FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
-FROM t1 as tt;
-a test
-1 n
-1 n
-1 n
-1 n
-1 n
-1 n
-1 n
-2 o
-2 o
-2 o
-2 o
-3 p
-3 p
-3 p
-3 p
-3 p
-SELECT tt.a,
-(SELECT (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1)
-FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
-FROM t1 as tt GROUP BY tt.a;
-a test
-1 n
-2 o
-3 p
-SELECT tt.a, MAX(
-(SELECT (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1)
-FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1)) as test
-FROM t1 as tt GROUP BY tt.a;
-a test
-1 n
-2 o
-3 p
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-a
-1
-2
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-a
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-a
-1
-2
-SET @@sql_mode='ansi';
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-ERROR HY000: Invalid use of group function
-SET @@sql_mode=default;
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 values (1),(1),(1),(1);
-CREATE TABLE t2 (x INT);
-INSERT INTO t1 values (1000),(1001),(1002);
-SELECT SUM( (SELECT COUNT(a) FROM t2) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT SUM( (SELECT SUM(COUNT(a)) FROM t2) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT COUNT(1) FROM DUAL;
-COUNT(1)
-1
-SELECT SUM( (SELECT AVG( (SELECT t1.a FROM t2) ) FROM DUAL) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT
-SUM( (SELECT AVG( (SELECT COUNT(*) FROM t1 t HAVING t1.a < 12) ) FROM t2) )
-FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT t1.a as XXA,
-SUM( (SELECT AVG( (SELECT COUNT(*) FROM t1 t HAVING XXA < 12) ) FROM t2) )
-FROM t1;
-ERROR HY000: Invalid use of group function
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int, KEY (a));
-INSERT INTO t1 VALUES (1,1),(2,1);
-EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT COUNT(*) FROM t1 GROUP BY b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref a a 5 const 1 Using where; Using index
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-DROP TABLE t1;
-CREATE TABLE t1 (id int NOT NULL, st CHAR(2), INDEX idx(id));
-INSERT INTO t1 VALUES
-(3,'FL'), (2,'GA'), (4,'FL'), (1,'GA'), (5,'NY'), (7,'FL'), (6,'NY');
-CREATE TABLE t2 (id int NOT NULL, INDEX idx(id));
-INSERT INTO t2 VALUES (7), (5), (1), (3);
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id);
-id st
-3 FL
-1 GA
-7 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id)
-GROUP BY id;
-id st
-1 GA
-3 FL
-7 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND NOT EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id);
-id st
-2 GA
-4 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND NOT EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id)
-GROUP BY id;
-id st
-2 GA
-4 FL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-EXPLAIN EXTENDED
-SELECT * FROM (SELECT count(*) FROM t1 GROUP BY a) as res;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `res`.`count(*)` AS `count(*)` from (/* select#2 */ select count(0) AS `count(*)` from `test`.`t1` group by `test`.`t1`.`a`) `res`
-DROP TABLE t1;
-CREATE TABLE t1 (
-a varchar(255) default NULL,
-b timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
-INDEX idx(a,b)
-);
-CREATE TABLE t2 (
-a varchar(255) default NULL
-);
-INSERT INTO t1 VALUES ('abcdefghijk','2007-05-07 06:00:24');
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO `t1` VALUES ('asdf','2007-02-08 01:11:26');
-INSERT INTO `t2` VALUES ('abcdefghijk');
-INSERT INTO `t2` VALUES ('asdf');
-SET session sort_buffer_size=8192;
-SELECT (SELECT 1 FROM t1 WHERE t1.a=t2.a ORDER BY t1.b LIMIT 1) AS d1 FROM t2;
-d1
-1
-1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INTEGER, b INTEGER);
-CREATE TABLE t2 (x INTEGER);
-INSERT INTO t1 VALUES (1,11), (2,22), (2,22);
-INSERT INTO t2 VALUES (1), (2);
-SELECT a, COUNT(b), (SELECT COUNT(b) FROM t2) FROM t1 GROUP BY a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a, COUNT(b), (SELECT COUNT(b)+0 FROM t2) FROM t1 GROUP BY a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT SUM(t1.a)/AVG(t2.x) FROM t2) FROM t1;
-(SELECT SUM(t1.a)/AVG(t2.x) FROM t2)
-3.3333
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1, 2), (1,3), (1,4), (2,1), (2,2);
-SELECT a1.a, COUNT(*) FROM t1 a1 WHERE a1.a = 1
-AND EXISTS( SELECT a2.a FROM t1 a2 WHERE a2.a = a1.a)
-GROUP BY a1.a;
-a COUNT(*)
-1 3
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1),(2);
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a=0) FROM t1;
-(SELECT SUM(t1.a) FROM t2 WHERE a=0)
-NULL
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a!=0) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a=1) FROM t1;
-(SELECT SUM(t1.a) FROM t2 WHERE a=1)
-3
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a1 INT, a2 INT);
-CREATE TABLE t2 (b1 INT, b2 INT);
-INSERT INTO t1 VALUES (100, 200);
-INSERT INTO t1 VALUES (101, 201);
-INSERT INTO t2 VALUES (101, 201);
-INSERT INTO t2 VALUES (103, 203);
-SELECT ((a1,a2) IN (SELECT * FROM t2 WHERE b2 > 0)) IS NULL FROM t1;
-((a1,a2) IN (SELECT * FROM t2 WHERE b2 > 0)) IS NULL
-0
-0
-DROP TABLE t1, t2;
-CREATE TABLE t1 (s1 BINARY(5), s2 VARBINARY(5));
-INSERT INTO t1 VALUES (0x41,0x41), (0x42,0x42), (0x43,0x43);
-SELECT s1, s2 FROM t1 WHERE s2 IN (SELECT s1 FROM t1);
-s1 s2
-SELECT s1, s2 FROM t1 WHERE (s2, 10) IN (SELECT s1, 10 FROM t1);
-s1 s2
-CREATE INDEX I1 ON t1 (s1);
-CREATE INDEX I2 ON t1 (s2);
-SELECT s1, s2 FROM t1 WHERE s2 IN (SELECT s1 FROM t1);
-s1 s2
-SELECT s1, s2 FROM t1 WHERE (s2, 10) IN (SELECT s1, 10 FROM t1);
-s1 s2
-TRUNCATE t1;
-INSERT INTO t1 VALUES (0x41,0x41);
-SELECT * FROM t1 WHERE s1 = (SELECT s2 FROM t1);
-s1 s2
-DROP TABLE t1;
-CREATE TABLE t1 (a1 VARBINARY(2) NOT NULL DEFAULT '0', PRIMARY KEY (a1));
-CREATE TABLE t2 (a2 BINARY(2) default '0', INDEX (a2));
-CREATE TABLE t3 (a3 BINARY(2) default '0');
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-INSERT INTO t2 VALUES (1),(2),(3);
-INSERT INTO t3 VALUES (1),(2),(3);
-SELECT LEFT(t2.a2, 1) FROM t2,t3 WHERE t3.a3=t2.a2;
-LEFT(t2.a2, 1)
-1
-2
-3
-SELECT t1.a1, t1.a1 in (SELECT t2.a2 FROM t2,t3 WHERE t3.a3=t2.a2) FROM t1;
-a1 t1.a1 in (SELECT t2.a2 FROM t2,t3 WHERE t3.a3=t2.a2)
-1 0
-2 0
-3 0
-4 0
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a1 BINARY(3) PRIMARY KEY, b1 VARBINARY(3));
-CREATE TABLE t2 (a2 VARBINARY(3) PRIMARY KEY);
-CREATE TABLE t3 (a3 VARBINARY(3) PRIMARY KEY);
-INSERT INTO t1 VALUES (1,10), (2,20), (3,30), (4,40);
-INSERT INTO t2 VALUES (2), (3), (4), (5);
-INSERT INTO t3 VALUES (10), (20), (30);
-SELECT LEFT(t1.a1,1) FROM t1,t3 WHERE t1.b1=t3.a3;
-LEFT(t1.a1,1)
-1
-2
-3
-SELECT a2 FROM t2 WHERE t2.a2 IN (SELECT t1.a1 FROM t1,t3 WHERE t1.b1=t3.a3);
-a2
-DROP TABLE t1, t2, t3;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='semijoin_with_cache=off';
-SET optimizer_switch='materialization=off';
-CREATE TABLE t1 (a CHAR(1), b VARCHAR(10));
-INSERT INTO t1 VALUES ('a', 'aa');
-INSERT INTO t1 VALUES ('a', 'aaa');
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-a b
-CREATE INDEX I1 ON t1 (a);
-CREATE INDEX I2 ON t1 (b);
-EXPLAIN SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL I2 NULL NULL NULL 2 Using where
-1 PRIMARY t1 ref I1 I1 2 test.t1.b 2 Using where; Using index; FirstMatch(t1)
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-a b
-CREATE TABLE t2 (a VARCHAR(1), b VARCHAR(10));
-INSERT INTO t2 SELECT * FROM t1;
-CREATE INDEX I1 ON t2 (a);
-CREATE INDEX I2 ON t2 (b);
-EXPLAIN SELECT a,b FROM t2 WHERE b IN (SELECT a FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL I2 NULL NULL NULL 2 Using where
-1 PRIMARY t2 ref I1 I1 4 test.t2.b 2 Using where; Using index; FirstMatch(t2)
-SELECT a,b FROM t2 WHERE b IN (SELECT a FROM t2);
-a b
-EXPLAIN
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1 WHERE LENGTH(a)<500);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL I2 NULL NULL NULL 2 Using where
-1 PRIMARY t1 ref I1 I1 2 test.t1.b 2 Using where; Using index; FirstMatch(t1)
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1 WHERE LENGTH(a)<500);
-a b
-DROP TABLE t1,t2;
-SET optimizer_switch= @save_optimizer_switch;
-CREATE TABLE t1(a INT, b INT);
-INSERT INTO t1 VALUES (1,1), (1,2), (2,3), (2,4);
-EXPLAIN
-SELECT a AS out_a, MIN(b) FROM t1
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = out_a)
-GROUP BY a;
-ERROR 42S22: Unknown column 'out_a' in 'where clause'
-SELECT a AS out_a, MIN(b) FROM t1
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = out_a)
-GROUP BY a;
-ERROR 42S22: Unknown column 'out_a' in 'where clause'
-EXPLAIN
-SELECT a AS out_a, MIN(b) FROM t1 t1_outer
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = t1_outer.a)
-GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_outer ALL NULL NULL NULL NULL 4 Using where; Using temporary; Using filesort
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 4 Using where
-SELECT a AS out_a, MIN(b) FROM t1 t1_outer
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = t1_outer.a)
-GROUP BY a;
-out_a MIN(b)
-1 2
-2 4
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1),(2);
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a));
-2
-2
-2
-EXPLAIN EXTENDED
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 select 2 AS `2` from `test`.`t1` semi join (`test`.`t2`) where 1
-EXPLAIN EXTENDED
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a) UNION
-(SELECT 1 FROM t2 WHERE t1.a = t2.a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DEPENDENT UNION t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 2 AS `2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(exists((/* select#2 */ select 1 from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`) union (/* select#3 */ select 1 from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`)))
-DROP TABLE t1,t2;
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(f11 int, f12 int);
-create table t2(f21 int unsigned not null, f22 int, f23 varchar(10));
-insert into t1 values(1,1),(2,2), (3, 3);
-insert ignore into t2
-select -1 , (@a:=(A.a + 10 * (B.a + 10 * (C.a+10*D.a))))/5000 + 1, @a
-from t0 A, t0 B, t0 C, t0 D;
-set session sort_buffer_size= 33*1024;
-select count(*) from t1 where f12 =
-(select f22 from t2 where f22 = f12 order by f21 desc, f22, f23 limit 1);
-count(*)
-3
-drop table t0,t1,t2;
-CREATE TABLE t4 (
-f7 varchar(32) collate utf8_bin NOT NULL default '',
-f10 varchar(32) collate utf8_bin default NULL,
-PRIMARY KEY (f7)
-);
-INSERT INTO t4 VALUES(1,1), (2,null);
-CREATE TABLE t2 (
-f4 varchar(32) collate utf8_bin NOT NULL default '',
-f2 varchar(50) collate utf8_bin default NULL,
-f3 varchar(10) collate utf8_bin default NULL,
-PRIMARY KEY (f4),
-UNIQUE KEY uk1 (f2)
-);
-INSERT INTO t2 VALUES(1,1,null), (2,2,null);
-CREATE TABLE t1 (
-f8 varchar(32) collate utf8_bin NOT NULL default '',
-f1 varchar(10) collate utf8_bin default NULL,
-f9 varchar(32) collate utf8_bin default NULL,
-PRIMARY KEY (f8)
-);
-INSERT INTO t1 VALUES (1,'P',1), (2,'P',1), (3,'R',2);
-CREATE TABLE t3 (
-f6 varchar(32) collate utf8_bin NOT NULL default '',
-f5 varchar(50) collate utf8_bin default NULL,
-PRIMARY KEY (f6)
-);
-INSERT INTO t3 VALUES (1,null), (2,null);
-SELECT
-IF(t1.f1 = 'R', a1.f2, t2.f2) AS a4,
-IF(t1.f1 = 'R', a1.f3, t2.f3) AS f3,
-SUM(
-IF(
-(SELECT VPC.f2
-FROM t2 VPC, t4 a2, t2 a3
-WHERE
-VPC.f4 = a2.f10 AND a3.f2 = a4
-LIMIT 1) IS NULL,
-0,
-t3.f5
-)
-) AS a6
-FROM
-t2, t3, t1 JOIN t2 a1 ON t1.f9 = a1.f4
-GROUP BY a4;
-a4 f3 a6
-1 NULL NULL
-2 NULL NULL
-DROP TABLE t1, t2, t3, t4;
-create table t1 (a float(5,4) zerofill);
-create table t2 (a float(5,4),b float(2,0));
-select t1.a from t1 where
-t1.a= (select b from t2 limit 1) and not
-t1.a= (select a from t2 limit 1) ;
-a
-drop table t1, t2;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=0;
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> const distinct_key distinct_key 4 const 1 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from <materialize> (/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1` group by `test`.`t1`.`a`) join `test`.`t1` where `<subquery2>`.`min(a)` = 1
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 WHERE a > 3 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> const distinct_key distinct_key 4 const 1 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2 100.00 Using where; Using temporary
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from <materialize> (/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1` where `test`.`t1`.`a` > 3 group by `test`.`t1`.`a`) join `test`.`t1` where `<subquery2>`.`min(a)` = 1
-SET join_cache_level=@save_join_cache_level;
-DROP TABLE t1;
-#
-# Bug#45061: Incorrectly market field caused wrong result.
-#
-CREATE TABLE `C` (
-`int_nokey` int(11) NOT NULL,
-`int_key` int(11) NOT NULL,
-KEY `int_key` (`int_key`)
-);
-INSERT INTO `C` VALUES (9,9), (0,0), (8,6), (3,6), (7,6), (0,4),
-(1,7), (9,4), (0,8), (9,4), (0,7), (5,5), (0,0), (8,5), (8,7),
-(5,2), (1,8), (7,0), (0,9), (9,5);
-SELECT * FROM C WHERE `int_key` IN (SELECT `int_nokey`);
-int_nokey int_key
-9 9
-0 0
-5 5
-0 0
-EXPLAIN EXTENDED SELECT * FROM C WHERE `int_key` IN (SELECT `int_nokey`);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE C ALL NULL NULL NULL NULL 20 100.00 Using where
-DROP TABLE C;
-# End of test for bug#45061.
-#
-# Bug #46749: Segfault in add_key_fields() with outer subquery level
-# field references
-#
-CREATE TABLE t1 (
-a int,
-b int,
-UNIQUE (a), KEY (b)
-);
-INSERT INTO t1 VALUES (1,1), (2,1);
-CREATE TABLE st1 like t1;
-INSERT INTO st1 VALUES (1,1), (2,1);
-CREATE TABLE st2 like t1;
-INSERT INTO st2 VALUES (1,1), (2,1);
-EXPLAIN
-SELECT MAX(b), (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-FROM t1
-WHERE a = 230;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT MAX(b), (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-FROM t1
-WHERE a = 230;
-MAX(b) (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-NULL NULL
-DROP TABLE t1, st1, st2;
-#
-# Bug #48709: Assertion failed in sql_select.cc:11782:
-# int join_read_key(JOIN_TAB*)
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, int_key int);
-INSERT INTO t1 VALUES (10,1), (14,1);
-CREATE TABLE t2 (pk int PRIMARY KEY, int_key int);
-INSERT INTO t2 VALUES (3,3), (5,NULL), (7,3);
-# should have eq_ref for t1
-EXPLAIN
-SELECT * FROM t2 outr
-WHERE outr.int_key NOT IN (SELECT t1.pk FROM t1, t2)
-ORDER BY outr.pk;
-id select_type table type possible_keys key key_len ref rows Extra
-x x outr ALL x x x x x x
-x x t1 eq_ref x x x x x x
-x x t2 index x x x x x x
-# should not crash on debug binaries
-SELECT * FROM t2 outr
-WHERE outr.int_key NOT IN (SELECT t1.pk FROM t1, t2)
-ORDER BY outr.pk;
-pk int_key
-3 3
-7 3
-DROP TABLE t1,t2;
-#
-# Bug#12329653
-# EXPLAIN, UNION, PREPARED STATEMENT, CRASH, SQL_FULL_GROUP_BY
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-EXPLAIN EXTENDED
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-1
-1
-1
-PREPARE stmt FROM
-'SELECT 1 UNION ALL
-SELECT 1 FROM t1
-ORDER BY
-(SELECT 1 FROM t1 AS t1_0
- WHERE 1 < SOME (SELECT a1 FROM t1)
-)' ;
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-SET SESSION sql_mode=@old_sql_mode;
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2(a1 int);
-INSERT INTO t2 VALUES (3);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2.0 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 'a' FROM t2);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t2);
-1
-1
-1
-SET SESSION sql_mode=@old_sql_mode;
-DROP TABLE t1, t2;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-create table t2(i int);
-insert into t2 values(0);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-CREATE VIEW v1 AS
-SELECT 'f' FROM t2 UNION SELECT 'x' FROM t2
-;
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key)
-);
-SELECT t1.pk
-FROM t1
-WHERE t1.col_varchar_key < ALL ( SELECT * FROM v1 )
-;
-pk
-SET SESSION sql_mode=@old_sql_mode;
-drop table t2, t1;
-drop view v1;
-# End of 5.0 tests.
-create table t_out (subcase char(3),
-a1 char(2), b1 char(2), c1 char(2));
-create table t_in (a2 char(2), b2 char(2), c2 char(2));
-insert into t_out values ('A.1','2a', NULL, '2a');
-insert into t_out values ('A.3', '2a', NULL, '2a');
-insert into t_out values ('A.4', '2a', NULL, 'xx');
-insert into t_out values ('B.1', '2a', '2a', '2a');
-insert into t_out values ('B.2', '2a', '2a', '2a');
-insert into t_out values ('B.3', '3a', 'xx', '3a');
-insert into t_out values ('B.4', 'xx', '3a', '3a');
-insert into t_in values ('1a', '1a', '1a');
-insert into t_in values ('2a', '2a', '2a');
-insert into t_in values (NULL, '2a', '2a');
-insert into t_in values ('3a', NULL, '3a');
-
-Test general IN semantics (not top-level)
-
-case A.1
-select subcase,
-(a1, b1, c1) IN (select * from t_in where a2 = 'no_match') pred_in,
-(a1, b1, c1) NOT IN (select * from t_in where a2 = 'no_match') pred_not_in
-from t_out where subcase = 'A.1';
-subcase pred_in pred_not_in
-A.1 0 1
-case A.2 - impossible
-case A.3
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'A.3';
-subcase pred_in pred_not_in
-A.3 NULL NULL
-case A.4
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'A.4';
-subcase pred_in pred_not_in
-A.4 0 1
-case B.1
-select subcase,
-(a1, b1, c1) IN (select * from t_in where a2 = 'no_match') pred_in,
-(a1, b1, c1) NOT IN (select * from t_in where a2 = 'no_match') pred_not_in
-from t_out where subcase = 'B.1';
-subcase pred_in pred_not_in
-B.1 0 1
-case B.2
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.2';
-subcase pred_in pred_not_in
-B.2 1 0
-case B.3
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.3';
-subcase pred_in pred_not_in
-B.3 NULL NULL
-case B.4
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.4';
-subcase pred_in pred_not_in
-B.4 0 1
-
-Test IN as top-level predicate, and
-as non-top level for cases A.3, B.3 (the only cases with NULL result).
-
-case A.1
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.1' and
-(a1, b1, c1) IN (select * from t_in where a1 = 'no_match');
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.1' and
-(a1, b1, c1) NOT IN (select * from t_in where a1 = 'no_match');
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.1' and
-NOT((a1, b1, c1) IN (select * from t_in where a1 = 'no_match'));
-not_pred_in
-T
-case A.3
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.3' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.3' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.3' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-select case when count(*) > 0 then 'N' else 'wrong result' end as pred_in from t_out
-where subcase = 'A.3' and
-((a1, b1, c1) IN (select * from t_in)) is NULL and
-((a1, b1, c1) NOT IN (select * from t_in)) is NULL;
-pred_in
-N
-case A.4
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.4' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.4' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.4' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-T
-case B.1
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.1' and
-(a1, b1, c1) IN (select * from t_in where a1 = 'no_match');
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.1' and
-(a1, b1, c1) NOT IN (select * from t_in where a1 = 'no_match');
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.1' and
-NOT((a1, b1, c1) IN (select * from t_in where a1 = 'no_match'));
-not_pred_in
-T
-case B.2
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.2' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.2' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.2' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-case B.3
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.3' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.3' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.3' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-select case when count(*) > 0 then 'N' else 'wrong result' end as pred_in from t_out
-where subcase = 'B.3' and
-((a1, b1, c1) IN (select * from t_in)) is NULL and
-((a1, b1, c1) NOT IN (select * from t_in)) is NULL;
-pred_in
-N
-case B.4
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.4' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.4' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.4' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-T
-drop table t_out;
-drop table t_in;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-a
-1
-2
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-a
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-a
-1
-2
-SET @@sql_mode='ansi';
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-ERROR HY000: Invalid use of group function
-SET @@sql_mode=default;
-DROP TABLE t1;
-CREATE TABLE t1 (s1 CHAR(1));
-INSERT INTO t1 VALUES ('a');
-SELECT * FROM t1 WHERE _utf8'a' = ANY (SELECT s1 FROM t1);
-s1
-a
-DROP TABLE t1;
-CREATE TABLE t1(c INT, KEY(c));
-CREATE TABLE t2(a INT, b INT);
-INSERT INTO t2 VALUES (1, 10), (2, NULL);
-INSERT INTO t1 VALUES (1), (3);
-SELECT * FROM t2 WHERE b NOT IN (SELECT max(t.c) FROM t1, t1 t WHERE t.c>10);
-a b
-DROP TABLE t1,t2;
-CREATE TABLE t1(pk INT PRIMARY KEY, a INT, INDEX idx(a));
-INSERT INTO t1 VALUES (1, 10), (3, 30), (2, 20);
-CREATE TABLE t2(pk INT PRIMARY KEY, a INT, b INT, INDEX idxa(a));
-INSERT INTO t2 VALUES (2, 20, 700), (1, 10, 200), (4, 10, 100);
-SELECT * FROM t1
-WHERE EXISTS (SELECT DISTINCT a FROM t2 WHERE t1.a < t2.a ORDER BY b);
-pk a
-1 10
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY (a), KEY b (b));
-INSERT INTO t1 VALUES (1,NULL), (9,NULL);
-CREATE TABLE t2 (
-a INT,
-b INT,
-c INT,
-d INT,
-PRIMARY KEY (a),
-UNIQUE KEY b (b,c,d),
-KEY b_2 (b),
-KEY c (c),
-KEY d (d)
-);
-INSERT INTO t2 VALUES
-(43, 2, 11 ,30),
-(44, 2, 12 ,30),
-(45, 1, 1 ,10000),
-(46, 1, 2 ,10000),
-(556,1, 32 ,10000);
-CREATE TABLE t3 (
-a INT,
-b INT,
-c INT,
-PRIMARY KEY (a),
-UNIQUE KEY b (b,c),
-KEY c (c),
-KEY b_2 (b)
-);
-INSERT INTO t3 VALUES (1,1,1), (2,32,1);
-explain
-SELECT t1.a, (SELECT 1 FROM t2 WHERE t2.b=t3.c AND t2.c=t1.a ORDER BY t2.d LIMIT 1) AS incorrect FROM t1, t3 WHERE t3.b=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 2 Using index
-1 PRIMARY t3 ref b,b_2 b 5 test.t1.a 1 Using index
-2 DEPENDENT SUBQUERY t2 ref b,b_2,c b 10 test.t3.c,test.t1.a 1 Using where; Using index
-SELECT t1.a, (SELECT 1 FROM t2 WHERE t2.b=t3.c AND t2.c=t1.a ORDER BY t2.d LIMIT 1) AS incorrect FROM t1, t3 WHERE t3.b=t1.a;
-a incorrect
-1 1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (id int);
-CREATE TABLE t2 (id int, c int);
-INSERT INTO t1 (id) VALUES (1);
-INSERT INTO t2 (id) VALUES (1);
-INSERT INTO t1 (id) VALUES (1);
-INSERT INTO t2 (id) VALUES (1);
-CREATE VIEW v1 AS
-SELECT t2.c AS c FROM t1, t2
-WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-UPDATE v1 SET c=1;
-CREATE VIEW v2 (a,b) AS
-SELECT t2.id, t2.c AS c FROM t1, t2
-WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-INSERT INTO v2(a,b) VALUES (2,2);
-ERROR 44000: CHECK OPTION failed `test`.`v2`
-SELECT * FROM v1;
-c
-1
-1
-1
-1
-CREATE VIEW v3 AS
-SELECT t2.c AS c FROM t2
-WHERE 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-DELETE FROM v3;
-DROP VIEW v1,v2,v3;
-DROP TABLE t1,t2;
-#
-# BUG#37822 Correlated subquery with IN and IS UNKNOWN provides wrong result
-#
-create table t1(id integer primary key, g integer, v integer, s char(1));
-create table t2(id integer primary key, g integer, v integer, s char(1));
-insert into t1 values
-(10, 10, 10, 'l'),
-(20, 20, 20, 'l'),
-(40, 40, 40, 'l'),
-(41, 40, null, 'l'),
-(50, 50, 50, 'l'),
-(51, 50, null, 'l'),
-(60, 60, 60, 'l'),
-(61, 60, null, 'l'),
-(70, 70, 70, 'l'),
-(90, 90, null, 'l');
-insert into t2 values
-(10, 10, 10, 'r'),
-(30, 30, 30, 'r'),
-(50, 50, 50, 'r'),
-(60, 60, 60, 'r'),
-(61, 60, null, 'r'),
-(70, 70, 70, 'r'),
-(71, 70, null, 'r'),
-(80, 80, 80, 'r'),
-(81, 80, null, 'r'),
-(100,100,null, 'r');
-select *
-from t1
-where v in(select v
-from t2
-where t1.g=t2.g) is unknown;
-id g v s
-51 50 NULL l
-61 60 NULL l
-drop table t1, t2;
-#
-# Bug#37822 Correlated subquery with IN and IS UNKNOWN provides wrong result
-#
-create table t1(id integer primary key, g integer, v integer, s char(1));
-create table t2(id integer primary key, g integer, v integer, s char(1));
-insert into t1 values
-(10, 10, 10, 'l'),
-(20, 20, 20, 'l'),
-(40, 40, 40, 'l'),
-(41, 40, null, 'l'),
-(50, 50, 50, 'l'),
-(51, 50, null, 'l'),
-(60, 60, 60, 'l'),
-(61, 60, null, 'l'),
-(70, 70, 70, 'l'),
-(90, 90, null, 'l');
-insert into t2 values
-(10, 10, 10, 'r'),
-(30, 30, 30, 'r'),
-(50, 50, 50, 'r'),
-(60, 60, 60, 'r'),
-(61, 60, null, 'r'),
-(70, 70, 70, 'r'),
-(71, 70, null, 'r'),
-(80, 80, 80, 'r'),
-(81, 80, null, 'r'),
-(100,100,null, 'r');
-select *
-from t1
-where v in(select v
-from t2
-where t1.g=t2.g) is unknown;
-id g v s
-51 50 NULL l
-61 60 NULL l
-drop table t1, t2;
-#
-# Bug#33204: INTO is allowed in subselect, causing inconsistent results
-#
-CREATE TABLE t1( a INT );
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2( a INT, b INT );
-SELECT *
-FROM (SELECT a INTO @var FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var FROM t1 WHERE a = 2) t1a' at line 2
-SELECT *
-FROM (SELECT a INTO OUTFILE 'file' FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' FROM t1 WHERE a = 2) t1a' at line 2
-SELECT *
-FROM (SELECT a INTO DUMPFILE 'file' FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' FROM t1 WHERE a = 2) t1a' at line 2
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO @var FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO OUTFILE 'file' FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO DUMPFILE 'file' FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (SELECT a FROM t1 WHERE a = 2) t1a;
-a
-2
-SELECT * FROM (
-SELECT a FROM t1 WHERE a = 2
-UNION
-SELECT a FROM t1 WHERE a = 2
-) t1a;
-a
-2
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a FROM t1 WHERE a = 2
-UNION
-SELECT a FROM t1 WHERE a = 2
-) t1a;
-a
-1
-2
-SELECT * FROM ((SELECT 1 a) UNION SELECT 1 a) q;
-a
-1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a)) alias;
-a
-1
-SELECT * FROM (SELECT 1 UNION SELECT 1) t1a;
-1
-1
-SELECT * FROM ((SELECT 1 a INTO @a)) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)) t1a' at line 1
-SELECT * FROM ((SELECT 1 a INTO OUTFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )) t1a' at line 1
-SELECT * FROM ((SELECT 1 a INTO DUMPFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO @a)) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO DUMPFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO OUTFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO @a))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a))) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO DUMPFILE 'file' ))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' ))) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO OUTFILE 'file' ))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' ))) t1a' at line 1
-SELECT * FROM (SELECT 1 a ORDER BY a) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a ORDER BY a) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a LIMIT 1) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a ORDER BY a LIMIT 1) t1a;
-a
-1
-SELECT * FROM t1 JOIN (SELECT 1 UNION SELECT 1) alias ON 1;
-a 1
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 UNION SELECT 1)) ON 1;
-ERROR 42000: Every derived table must have its own alias
-SELECT * FROM t1 JOIN (t1 t1a UNION SELECT 1) ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1) ON 1' at line 1
-SELECT * FROM t1 JOIN ((t1 t1a UNION SELECT 1)) ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1)) ON 1' at line 1
-SELECT * FROM t1 JOIN (t1 t1a) t1a ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a ON 1' at line 1
-SELECT * FROM t1 JOIN ((t1 t1a)) t1a ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a ON 1' at line 1
-SELECT * FROM t1 JOIN (t1 t1a) ON 1;
-a a
-1 1
-2 1
-1 2
-2 2
-SELECT * FROM t1 JOIN ((t1 t1a)) ON 1;
-a a
-1 1
-2 1
-1 2
-2 2
-SELECT * FROM (t1 t1a);
-a
-1
-2
-SELECT * FROM ((t1 t1a));
-a
-1
-2
-SELECT * FROM t1 JOIN (SELECT 1 t1a) alias ON 1;
-a t1a
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 t1a)) alias ON 1;
-a t1a
-1 1
-2 1
-SELECT * FROM t1 JOIN (SELECT 1 a) a ON 1;
-a a
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 a)) a ON 1;
-a a
-1 1
-2 1
-SELECT * FROM (t1 JOIN (SELECT 1) t1a1 ON 1) t1a2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a2' at line 1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 3 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT ( SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT ( SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT a FROM t1 WHERE a = 1 ), a FROM t1;
-( SELECT a FROM t1 WHERE a = 1 ) a
-1 1
-1 2
-SELECT ( SELECT a FROM t1 WHERE a = 1 UNION SELECT 1 ), a FROM t1;
-( SELECT a FROM t1 WHERE a = 1 UNION SELECT 1 ) a
-1 1
-1 2
-SELECT * FROM t2 WHERE (a, b) IN (SELECT a, b FROM t2);
-a b
-SELECT 1 UNION ( SELECT 1 UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-( SELECT 1 UNION SELECT 1 ) UNION SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1' at line 1
-SELECT ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-( SELECT 1 UNION SELECT 1 UNION SELECT 1 )
-1
-SELECT ((SELECT 1 UNION SELECT 1 UNION SELECT 1));
-((SELECT 1 UNION SELECT 1 UNION SELECT 1))
-1
-SELECT * FROM ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: Every derived table must have its own alias
-SELECT * FROM ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 ) a;
-1
-1
-SELECT * FROM ( SELECT 1 UNION SELECT 1 UNION SELECT 1 ) a;
-1
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ALL ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a IN ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE EXISTS ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT EXISTS(SELECT 1+1);
-EXISTS(SELECT 1+1)
-1
-SELECT EXISTS(SELECT 1+1 INTO @test);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @test)' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT * FROM t1 WHERE EXISTS ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a ENUM('rainbow'));
-INSERT INTO t1 VALUES (),(),(),(),();
-SELECT 1 FROM t1 GROUP BY (SELECT 1 FROM t1 ORDER BY AVG(LAST_INSERT_ID()));
-1
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a LONGBLOB);
-INSERT INTO t1 SET a = 'aaaa';
-INSERT INTO t1 SET a = 'aaaa';
-SELECT 1 FROM t1 GROUP BY
-(SELECT LAST_INSERT_ID() FROM t1 ORDER BY MIN(a) ASC LIMIT 1);
-1
-1
-DROP TABLE t1;
-#
-# Bug #49512 : subquery with aggregate function crash
-# subselect_single_select_engine::exec()
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES();
-# should not crash
-SELECT 1 FROM t1 WHERE a <> SOME
-(
-SELECT MAX((SELECT a FROM t1 LIMIT 1)) AS d
-FROM t1,t1 a
-);
-1
-DROP TABLE t1;
-#
-# Bug #45989 take 2 : memory leak after explain encounters an
-# error in the query
-#
-CREATE TABLE t1(a LONGTEXT);
-INSERT INTO t1 VALUES (repeat('a',@@global.max_allowed_packet));
-INSERT INTO t1 VALUES (repeat('b',@@global.max_allowed_packet));
-EXPLAIN EXTENDED SELECT DISTINCT 1 FROM t1,
-(SELECT DISTINCTROW a AS away FROM t1 GROUP BY a WITH ROLLUP) AS d1
-WHERE t1.a = d1.a;
-ERROR 42S22: Unknown column 'd1.a' in 'where clause'
-DROP TABLE t1;
-Set up test tables.
-CREATE TABLE t1 (
-t1_id INT UNSIGNED,
-PRIMARY KEY(t1_id)
-) Engine=MyISAM;
-INSERT INTO t1 (t1_id) VALUES (1), (2), (3), (4), (5);
-CREATE TABLE t2 SELECT * FROM t1;
-CREATE TABLE t3 (
-t3_id INT UNSIGNED AUTO_INCREMENT,
-t1_id INT UNSIGNED,
-amount DECIMAL(16,2),
-PRIMARY KEY(t3_id),
-KEY(t1_id)
-) Engine=MyISAM;
-INSERT INTO t3 (t1_id, t3_id, amount)
-VALUES (1, 1, 100.00), (2, 2, 200.00), (4, 4, 400.00);
-This is the 'inner query' running by itself.
-Produces correct results.
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-SELECT * FROM (the same inner query)
-Produces correct results.
-SELECT * FROM (
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-) AS t;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-Now make t2.t1_id part of a key.
-ALTER TABLE t2 ADD PRIMARY KEY(t1_id);
-Same inner query by itself.
-Still correct results.
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-SELECT * FROM (the same inner query), now with indexes on the LEFT JOIN
-SELECT * FROM (
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-) AS t;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-DROP TABLE t3;
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Bug #52711: Segfault when doing EXPLAIN SELECT with
-# union...order by (select... where...)
-#
-CREATE TABLE t1 (a VARCHAR(10), FULLTEXT KEY a (a));
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1),(2);
-# Should not crash
-EXPLAIN
-SELECT * FROM t2 UNION SELECT * FROM t2
-ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE));
-# Should not crash
-SELECT * FROM t2 UNION SELECT * FROM t2
-ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE));
-DROP TABLE t1,t2;
-#
-# Bug #58818: Incorrect result for IN/ANY subquery
-# with HAVING condition
-#
-CREATE TABLE t1(i INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t1s(i INT);
-INSERT INTO t1s VALUES (10), (20), (30);
-CREATE TABLE t2s(i INT);
-INSERT INTO t2s VALUES (100), (200), (300);
-SELECT * FROM t1
-WHERE t1.i NOT IN
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-);
-i
-1
-2
-3
-SELECT * FROM t1
-WHERE t1.I IN
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-) IS UNKNOWN;
-i
-SELECT * FROM t1
-WHERE NOT t1.I = ANY
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-);
-i
-1
-2
-3
-SELECT * FROM t1
-WHERE t1.i = ANY (
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-) IS UNKNOWN;
-i
-DROP TABLE t1,t1s,t2s;
-# LP BUG#675248 - select->prep_where references on freed memory
-CREATE TABLE t1 (a int, b int);
-insert into t1 values (1,1),(0,0);
-CREATE TABLE t2 (c int);
-insert into t2 values (1),(2);
-prepare stmt1 from "select sum(a),(select sum(c) from t2 where table1.b) as sub
-from t1 as table1 group by sub";
-execute stmt1;
-sum(a) sub
-0 NULL
-1 3
-deallocate prepare stmt1;
-prepare stmt1 from "select sum(a),(select sum(c) from t2 having table1.b) as sub
-from t1 as table1";
-execute stmt1;
-sum(a) sub
-1 3
-deallocate prepare stmt1;
-drop table t1,t2;
-#
-# Bug LP#693935/#58727: Assertion failure with
-# a single row subquery returning more than one row
-#
-create table t1 (a char(1) charset utf8);
-insert into t1 values ('a'), ('b');
-create table t2 (a binary(1));
-insert into t2 values ('x'), ('y');
-select * from t2 where a=(select a from t1) and a='x';
-ERROR 21000: Subquery returns more than 1 row
-drop table t1,t2;
-# End of 5.1 tests
-#
-# Bug #11765713 58705:
-# OPTIMIZER LET ENGINE DEPEND ON UNINITIALIZED VALUES
-# CREATED BY OPT_SUM_QUERY
-#
-CREATE TABLE t1(a INT NOT NULL, KEY (a));
-INSERT INTO t1 VALUES (0), (1);
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1)
-);
-ERROR 21000: Subquery returns more than 1 row
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1 where a is null)
-);
-foo
-DROP TABLE t1;
-#
-# Bug #57704: Cleanup code dies with void TABLE::set_keyread(bool):
-# Assertion `file' failed.
-#
-CREATE TABLE t1 (a INT);
-SELECT 1 FROM
-(SELECT ROW(
-(SELECT 1 FROM t1 RIGHT JOIN
-(SELECT 1 FROM t1, t1 t2) AS d ON 1),
-1) FROM t1) AS e;
-ERROR 21000: Operand should contain 1 column(s)
-DROP TABLE t1;
-#
-# Bug#13721076 CRASH WITH TIME TYPE/TIMESTAMP() AND WARNINGS IN SUBQUERY
-#
-CREATE TABLE t1(a TIME NOT NULL);
-INSERT INTO t1 VALUES ('00:00:32');
-SELECT 1 FROM t1 WHERE a >
-(SELECT timestamp(a) AS a FROM t1);
-1
-DROP TABLE t1;
-#
-# No BUG#, a case brought from 5.2's innodb_mysql_lock.test
-#
-create table t1 (i int not null primary key);
-insert into t1 values (1),(2),(3),(4),(5);
-create table t2 (j int not null primary key);
-insert into t2 values (1),(2),(3),(4),(5);
-create table t3 (k int not null primary key);
-insert into t3 values (1),(2),(3);
-create view v2 as select t2.j as j from t2 where t2.j in (select t1.i from t1);
-select * from t3 where k in (select j from v2);
-k
-1
-2
-3
-drop table t1,t2,t3;
-drop view v2;
-#
-# Bug#52068: Optimizer generates invalid semijoin materialization plan
-#
-drop table if exists ot1, ot2, it1, it2;
-CREATE TABLE ot1(a INTEGER);
-INSERT INTO ot1 VALUES(5), (8);
-CREATE TABLE it2(a INTEGER);
-INSERT INTO it2 VALUES(9), (5), (1), (8);
-CREATE TABLE it3(a INTEGER);
-INSERT INTO it3 VALUES(7), (1), (0), (5), (1), (4);
-CREATE TABLE ot4(a INTEGER);
-INSERT INTO ot4 VALUES(1), (3), (5), (7), (9), (7), (3), (1);
-SELECT * FROM ot1,ot4
-WHERE (ot1.a,ot4.a) IN (SELECT it2.a,it3.a
-FROM it2,it3);
-a a
-5 1
-8 1
-5 5
-8 5
-5 7
-8 7
-5 7
-8 7
-5 1
-8 1
-explain SELECT * FROM ot1,ot4
-WHERE (ot1.a,ot4.a) IN (SELECT it2.a,it3.a
-FROM it2,it3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot1 ALL NULL NULL NULL NULL 2
-1 PRIMARY ot4 ALL NULL NULL NULL NULL 8 Using join buffer (flat, BNL join)
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-2 MATERIALIZED it2 ALL NULL NULL NULL NULL 4
-2 MATERIALIZED it3 ALL NULL NULL NULL NULL 6 Using join buffer (flat, BNL join)
-DROP TABLE IF EXISTS ot1, ot4, it2, it3;
-#
-# Bug#729039: NULL keys used to evaluate subquery
-#
-CREATE TABLE t1 (a int) ;
-INSERT INTO t1 VALUES (NULL), (1), (NULL), (2);
-CREATE TABLE t2 (a int, INDEX idx(a)) ;
-INSERT INTO t2 VALUES (NULL), (1), (NULL);
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 USE INDEX () WHERE t2.a = t1.a);
-a
-1
-EXPLAIN
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 USE INDEX() WHERE t2.a = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 WHERE t2.a = t1.a);
-a
-1
-EXPLAIN
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 WHERE t2.a = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 index idx idx 5 NULL 3 Using index
-DROP TABLE t1,t2;
-#
-# BUG#752992: Wrong results for a subquery with 'semijoin=on'
-#
-CREATE TABLE t1 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t1 VALUES (11,0);
-INSERT INTO t1 VALUES (12,5);
-INSERT INTO t1 VALUES (15,0);
-CREATE TABLE t2 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t2 VALUES (11,1);
-INSERT INTO t2 VALUES (12,2);
-INSERT INTO t2 VALUES (15,4);
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=0;
-EXPLAIN SELECT * FROM t1 WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 3
-1 PRIMARY it eq_ref PRIMARY PRIMARY 4 test.t1.pk 1 Using index
-1 PRIMARY t2 index NULL PRIMARY 4 NULL 3 Using index; FirstMatch(it)
-SELECT * FROM t1 WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON 1);
-pk i
-11 0
-12 5
-15 0
-SET join_cache_level=@save_join_cache_level;
-DROP table t1,t2;
-#
-# Bug#751350: crash with pushed condition for outer references when
-# there should be none of such conditions
-#
-CREATE TABLE t1 (a int, b int) ;
-INSERT INTO t1 VALUES (0,0),(0,0);
-set @optimizer_switch_save=@@optimizer_switch;
-set @@optimizer_switch='semijoin=off,materialization=on,in_to_exists=on';
-EXPLAIN
-SELECT b FROM t1
-WHERE ('0') IN ( SELECT a FROM t1 GROUP BY a )
-GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT b FROM t1
-WHERE ('0') IN ( SELECT a FROM t1 GROUP BY a )
-GROUP BY b;
-b
-0
-set @@optimizer_switch=@optimizer_switch_save;
-DROP TABLE t1;
-#
-# Bug #11765713 58705:
-# OPTIMIZER LET ENGINE DEPEND ON UNINITIALIZED VALUES
-# CREATED BY OPT_SUM_QUERY
-#
-CREATE TABLE t1(a INT NOT NULL, KEY (a));
-INSERT INTO t1 VALUES (0), (1);
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1)
-);
-ERROR 21000: Subquery returns more than 1 row
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1 where a is null)
-);
-foo
-DROP TABLE t1;
-CREATE TABLE t1 (a int(11), b varchar(1));
-INSERT INTO t1 VALUES (2,NULL),(5,'d'),(7,'g');
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 );
-a
-5
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 GROUP BY b );
-a
-7
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 );
-a
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
-a
-delete from t1;
-INSERT INTO t1 VALUES (2,NULL),(5,'d'),(7,'g');
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 );
-a
-5
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 GROUP BY b );
-a
-7
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 );
-a
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
-a
-drop table t1;
-#
-# Fix of lp:780386 (NULL left part with empty ALL subquery).
-#
-CREATE TABLE t1 ( f11 int) ;
-INSERT IGNORE INTO t1 VALUES (0),(0);
-CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
-INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
-DROP TABLE IF EXISTS t3;
-Warnings:
-Note 1051 Unknown table 'test.t3'
-CREATE TABLE t3 ( f3 int) ;
-INSERT INTO t3 VALUES (0),(0);
-SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
-r
-NULL
-5
-NULL
-5
-DROP TABLE t1, t2, t3;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2(a1 int);
-INSERT INTO t2 VALUES (3);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2.0 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 'a' FROM t2);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t2);
-1
-1
-1
-SET SESSION sql_mode=@old_sql_mode;
-DROP TABLE t1, t2;
-create table t2(i int);
-insert into t2 values(0);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-CREATE VIEW v1 AS
-SELECT 'f' FROM t2 UNION SELECT 'x' FROM t2
-;
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key)
-);
-SELECT t1.pk
-FROM t1
-WHERE t1.col_varchar_key < ALL ( SELECT * FROM v1 )
-;
-pk
-SET SESSION sql_mode=@old_sql_mode;
-drop table t2, t1;
-drop view v1;
-#
-# BUG#50257: Missing info in REF column of the EXPLAIN
-# lines for subselects
-#
-CREATE TABLE t1 (a INT, b INT, INDEX (a));
-INSERT INTO t1 VALUES (3, 10), (2, 20), (7, 10), (5, 20);
-EXPLAIN SELECT * FROM (SELECT * FROM t1 WHERE a=7) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 5 const 1
-EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 SUBQUERY t1 ref a a 5 const 1 Using index
-DROP TABLE t1;
-#
-# BUG#12616253 - WRONG RESULT WITH EXISTS(SUBQUERY) (MISSING ROWS)
-# (duplicate of LP bug #888456)
-#
-CREATE TABLE t1 (f1 varchar(1));
-INSERT INTO t1 VALUES ('v'),('s');
-CREATE TABLE t2 (f1_key varchar(1), KEY (f1_key));
-INSERT INTO t2 VALUES ('j'),('v'),('c'),('m'),('d'),
-('d'),('y'),('t'),('d'),('s');
-EXPLAIN
-SELECT table1.f1, table2.f1_key FROM t1 AS table1, t2 AS table2
-WHERE EXISTS (SELECT DISTINCT f1_key FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY table1 ALL NULL NULL NULL NULL 2
-1 PRIMARY table2 index NULL f1_key 4 NULL 10 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 index f1_key f1_key 4 NULL 10 Using where; Using index
-SELECT table1.f1, table2.f1_key FROM t1 AS table1, t2 AS table2
-WHERE EXISTS (SELECT DISTINCT f1_key FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1);
-f1 f1_key
-s c
-s d
-s d
-s d
-s j
-s m
-s s
-s t
-s v
-s y
-v c
-v d
-v d
-v d
-v j
-v m
-v s
-v t
-v v
-v y
-DROP TABLE t1,t2;
-#
-# LP bug 919427: EXPLAIN for a query over a single-row table
-# with IN subquery in WHERE condition
-#
-CREATE TABLE ot (
-col_int_nokey int(11),
-col_varchar_nokey varchar(1)
-) ;
-INSERT INTO ot VALUES (1,'x');
-CREATE TABLE it1(
-col_int_key int(11),
-col_varchar_key varchar(1),
-KEY idx_cvk_cik (col_varchar_key,col_int_key)
-);
-INSERT INTO it1 VALUES (NULL,'x'), (NULL,'f');
-CREATE TABLE it2 (
-col_int_key int(11),
-col_varchar_key varchar(1),
-col_varchar_key2 varchar(1),
-KEY idx_cvk_cvk2_cik (col_varchar_key, col_varchar_key2, col_int_key),
-KEY idx_cvk_cik (col_varchar_key, col_int_key)
-);
-INSERT INTO it2 VALUES (NULL,'x','x'), (NULL,'f','f');
-EXPLAIN
-SELECT col_int_nokey FROM ot
-WHERE col_varchar_nokey IN
-(SELECT col_varchar_key FROM it1 WHERE col_int_key IS NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot system NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED it1 ref idx_cvk_cik idx_cvk_cik 9 const,const 1 Using where; Using index
-SELECT col_int_nokey FROM ot
-WHERE col_varchar_nokey IN
-(SELECT col_varchar_key FROM it1 WHERE col_int_key IS NULL);
-col_int_nokey
-1
-EXPLAIN
-SELECT col_int_nokey FROM ot
-WHERE (col_varchar_nokey, 'x') IN
-(SELECT col_varchar_key, col_varchar_key2 FROM it2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot system NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-2 MATERIALIZED it2 ref idx_cvk_cvk2_cik,idx_cvk_cik idx_cvk_cvk2_cik 8 const,const 1 Using where; Using index
-SELECT col_int_nokey FROM ot
-WHERE (col_varchar_nokey, 'x') IN
-(SELECT col_varchar_key, col_varchar_key2 FROM it2);
-col_int_nokey
-1
-DROP TABLE ot,it1,it2;
-#
-# MDEV-746
-# Bug#13651009 WRONG RESULT FROM DERIVED TABLE IF THE SUBQUERY
-# HAS AN EMPTY RESULT
-#
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_int_nokey int NOT NULL,
-col_int_key int NOT NULL,
-col_time_key time NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_time_key (col_time_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-pk int NOT NULL AUTO_INCREMENT,
-col_int_nokey int NOT NULL,
-col_int_key int NOT NULL,
-col_time_key time NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_time_key (col_time_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,4,4,'00:00:00','b','b');
-SET @var2:=4, @var3:=8;
-
-Testcase without inner subquery
-EXPLAIN SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE sq4_alias1 system NULL NULL NULL NULL 0 Const row not found
-SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3;
-@var3:=12 pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-SELECT @var3;
-@var3
-8
-EXPLAIN SELECT * FROM ( SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3 ) AS alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 0 Const row not found
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM ( SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3 ) AS alias3;
-@var3:=12 pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-SELECT @var3;
-@var3
-8
-
-Testcase with inner subquery; crashed WL#6095
-SET @var3=8;
-EXPLAIN SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY c_sq1_alias1 system PRIMARY NULL NULL NULL 1
-SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3));
-pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-EXPLAIN SELECT * FROM ( SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3)) ) AS alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-3 DEPENDENT SUBQUERY c_sq1_alias1 system PRIMARY NULL NULL NULL 1
-SELECT * FROM ( SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3)) ) AS alias3;
-pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-DROP TABLE t1,t2;
-# End of 5.2 tests
-#
-# BUG#779885: Crash in eliminate_item_equal with materialization=on in
-#
-CREATE TABLE t1 ( f1 int );
-INSERT INTO t1 VALUES (19), (20);
-CREATE TABLE t2 ( f10 varchar(32) );
-INSERT INTO t2 VALUES ('c'),('d');
-CREATE TABLE t3 ( f10 varchar(32) );
-INSERT INTO t3 VALUES ('a'),('b');
-SELECT *
-FROM t1
-WHERE
-( 't' ) IN (
-SELECT t3.f10
-FROM t3
-JOIN t2
-ON t2.f10 = t3.f10
-);
-f1
-DROP TABLE t1,t2,t3;
-#
-# BUG lp:813473: Wrong result with outer join + NOT IN subquery
-# This bug is a duplicate of Bug#11764086 whose test case is added below
-#
-CREATE TABLE t1 (c int) ;
-INSERT INTO t1 VALUES (5),(6);
-CREATE TABLE t2 (a int, b int) ;
-INSERT INTO t2 VALUES (20,9),(20,9);
-create table t3 (d int, e int);
-insert into t3 values (2, 9), (3,10);
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-EXPLAIN
-SELECT t2.b , t1.c
-FROM t2 LEFT JOIN t1 ON t1.c < 3
-WHERE (t2.b , t1.c) NOT IN (SELECT * from t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where
-SELECT t2.b , t1.c
-FROM t2 LEFT JOIN t1 ON t1.c < 3
-WHERE (t2.b, t1.c) NOT IN (SELECT * from t3);
-b c
-9 NULL
-9 NULL
-SET optimizer_switch=@save_optimizer_switch;
-drop table t1, t2, t3;
-#
-# BUG#50257: Missing info in REF column of the EXPLAIN
-# lines for subselects
-#
-CREATE TABLE t1 (a INT, b INT, INDEX (a));
-INSERT INTO t1 VALUES (3, 10), (2, 20), (7, 10), (5, 20);
-
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-EXPLAIN SELECT * FROM (SELECT * FROM t1 WHERE a=7) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED t1 ref a a 5 const 1
-set optimizer_switch=@tmp_optimizer_switch;
-
-EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 SUBQUERY t1 ref a a 5 const 1 Using index
-
-DROP TABLE t1;
-#
-# Bug#11764086: Null left operand to NOT IN in WHERE clause
-# behaves differently than real NULL
-#
-CREATE TABLE parent (id int);
-INSERT INTO parent VALUES (1), (2);
-CREATE TABLE child (parent_id int, other int);
-INSERT INTO child VALUES (1,NULL);
-# Offending query (c.parent_id is NULL for null-complemented rows only)
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id NOT IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-);
-id parent_id
-1 1
-2 NULL
-# Some syntactic variations with IS FALSE and IS NOT TRUE
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-) IS NOT TRUE;
-id parent_id
-1 1
-2 NULL
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-) IS FALSE;
-id parent_id
-1 1
-2 NULL
-DROP TABLE parent, child;
-# End of test for bug#11764086.
-#
-# Bug 11765699 - 58690: !TABLE || (!TABLE->READ_SET ||
-# BITMAP_IS_SET(TABLE->READ_SET, FIELD_INDEX
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (0), (1);
-CREATE TABLE t2(
-b TEXT,
-c INT,
-PRIMARY KEY (b(1))
-);
-INSERT INTO t2 VALUES ('a', 2), ('b', 3);
-SELECT 1 FROM t1 WHERE a =
-(SELECT 1 FROM t2 WHERE b =
-(SELECT 1 FROM t1 t11 WHERE c = 1 OR t1.a = 1 AND 1 = 2)
-ORDER BY b
-);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-SELECT 1 FROM t1 WHERE a =
-(SELECT 1 FROM t2 WHERE b =
-(SELECT 1 FROM t1 t11 WHERE c = 1 OR t1.a = 1 AND 1 = 2)
-GROUP BY b
-);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-DROP TABLE t1, t2;
-#
-# BUG#12616253 - WRONG RESULT WITH EXISTS(SUBQUERY) (MISSING ROWS)
-#
-CREATE TABLE t1 (f1 varchar(1));
-INSERT INTO t1 VALUES ('v'),('s');
-CREATE TABLE t2 (f1_key varchar(1), KEY (f1_key));
-INSERT INTO t2 VALUES ('j'),('v'),('c'),('m'),('d'),
-('d'),('y'),('t'),('d'),('s');
-SELECT table1.f1, table2.f1_key
-FROM t1 AS table1, t2 AS table2
-WHERE EXISTS
-(
-SELECT DISTINCT f1_key
-FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1 );
-f1 f1_key
-s c
-s d
-s d
-s d
-s j
-s m
-s s
-s t
-s v
-s y
-v c
-v d
-v d
-v d
-v j
-v m
-v s
-v t
-v v
-v y
-explain SELECT table1.f1, table2.f1_key
-FROM t1 AS table1, t2 AS table2
-WHERE EXISTS
-(
-SELECT DISTINCT f1_key
-FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY table1 ALL NULL NULL NULL NULL 2
-1 PRIMARY table2 index NULL f1_key 4 NULL 10 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 index f1_key f1_key 4 NULL 10 Using where; Using index
-DROP TABLE t1,t2;
-#
-# lp:826279: assertion failure with GROUP BY a result of subquery
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (0), (0);
-CREATE TABLE t2 (a int, b int, c int);
-INSERT INTO t2 VALUES (10,7,0), (0,7,0);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (10,7), (0,7);
-SELECT SUM(DISTINCT b),
-(SELECT t2.a FROM t1 JOIN t2 ON t2.c != 0
-WHERE t.a != 0 AND t2.a != 0)
-FROM (SELECT * FROM t3) AS t
-GROUP BY 2;
-SUM(DISTINCT b) (SELECT t2.a FROM t1 JOIN t2 ON t2.c != 0
-WHERE t.a != 0 AND t2.a != 0)
-7 NULL
-SELECT SUM(DISTINCT b),
-(SELECT t2.a FROM t1,t2 WHERE t.a != 0 or 1=2 LIMIT 1)
-FROM (SELECT * FROM t3) AS t
-GROUP BY 2;
-SUM(DISTINCT b) (SELECT t2.a FROM t1,t2 WHERE t.a != 0 or 1=2 LIMIT 1)
-7 NULL
-7 10
-DROP TABLE t1,t2,t3;
-#
-# Bug#12329653
-# EXPLAIN, UNION, PREPARED STATEMENT, CRASH, SQL_FULL_GROUP_BY
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-1
-1
-1
-PREPARE stmt FROM
-'SELECT 1 UNION ALL
-SELECT 1 FROM t1
-ORDER BY
-(SELECT 1 FROM t1 AS t1_0
- WHERE 1 < SOME (SELECT a1 FROM t1)
-)' ;
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-SET SESSION sql_mode=@old_sql_mode;
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# LP BUG#833777 Performance regression with deeply nested subqueries
-#
-create table t1 (a int not null, b char(10) not null);
-insert into t1 values (1, 'a');
-set @@optimizer_switch='in_to_exists=on,semijoin=off,materialization=off,subquery_cache=off';
-select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1)))))))))))))))))))))))))))));
-a
-1
-set @@optimizer_switch=@subselect_tmp;
-drop table t1;
-#
-# LP BUG#894397 Wrong result with in_to_exists, constant table , semijoin=OFF,materialization=OFF
-#
-CREATE TABLE t1 (a varchar(3));
-INSERT INTO t1 VALUES ('AAA'),('BBB');
-CREATE TABLE t2 (a varchar(3));
-INSERT INTO t2 VALUES ('CCC');
-set @@optimizer_switch='semijoin=off,materialization=off,in_to_exists=on,subquery_cache=off';
-SELECT * FROM t1 WHERE t1.a IN (SELECT t2.a FROM t2 WHERE t2.a < 'ZZZ');
-a
-set @@optimizer_switch=@subselect_tmp;
-drop table t1, t2;
-#
-# LP bug #859375: Assertion `0' failed in st_select_lex_unit::optimize
-# with view , UNION and prepared statement (rewriting fake_select
-# condition).
-#
-CREATE TABLE t1 ( f1 int NOT NULL, f4 varchar(1) NOT NULL) ;
-INSERT INTO t1 VALUES (6,'d'),(7,'y');
-CREATE TABLE t2 ( f1 int NOT NULL, f2 int NOT NULL) ;
-INSERT INTO t2 VALUES (10,7);
-CREATE VIEW v2 AS SELECT * FROM t2;
-PREPARE st1 FROM "
- SELECT *
- FROM t1
- LEFT JOIN v2 ON ( v2.f2 = t1.f1 )
- WHERE v2.f1 NOT IN (
- SELECT 1 UNION
- SELECT 247
- )
-";
-EXECUTE st1;
-f1 f4 f1 f2
-7 y 10 7
-deallocate prepare st1;
-DROP VIEW v2;
-DROP TABLE t1,t2;
-#
-# LP bug #887458 Crash in subselect_union_engine::no_rows with
-# double UNION and join_cache_level=3,8
-# (IN/ALL/ANY optimizations should not be applied to fake_select)
-CREATE TABLE t2 ( a int, b varchar(1)) ;
-INSERT IGNORE INTO t2 VALUES (8,'y'),(8,'y');
-CREATE TABLE t1 ( b varchar(1)) ;
-INSERT IGNORE INTO t1 VALUES (NULL),(NULL);
-set @save_join_cache_level=@@join_cache_level;
-SET SESSION join_cache_level=3;
-SELECT *
-FROM t1, t2
-WHERE t2.b IN (
-SELECT 'm' UNION
-SELECT 'm'
-) OR t1.b <> SOME (
-SELECT 'v' UNION
-SELECT 't'
-);
-b a b
-set @@join_cache_level= @save_join_cache_level;
-drop table t1,t2;
-#
-# LP bug #885162 Got error 124 from storage engine with UNION inside
-# subquery and join_cache_level=3..8
-# (IN/ALL/ANY optimizations should not be applied to fake_select)
-#
-CREATE TABLE t1 (
-f1 varchar(1) DEFAULT NULL
-);
-INSERT INTO t1 VALUES ('c');
-set @save_join_cache_level=@@join_cache_level;
-SET SESSION join_cache_level=8;
-SELECT * FROM t1 WHERE t1.f1 IN ( SELECT 'k' UNION SELECT 'e' );
-f1
-set @@join_cache_level= @save_join_cache_level;
-drop table t1;
-#
-# LP BUG#747278 incorrect values of the NULL (no rows) single
-# row subquery requested via element_index() interface
-#
-CREATE TABLE t1 (f1a int, f1b int) ;
-INSERT IGNORE INTO t1 VALUES (1,1),(2,2);
-CREATE TABLE t2 ( f2 int);
-INSERT IGNORE INTO t2 VALUES (3),(4);
-CREATE TABLE t3 (f3a int default 1, f3b int default 2);
-INSERT INTO t3 VALUES (1,1),(2,2);
-set @old_optimizer_switch = @@session.optimizer_switch;
-set @@optimizer_switch='materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off,subquery_cache=off,semijoin=off';
-SELECT (SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-SELECT (SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-set @@session.optimizer_switch=@old_optimizer_switch;
-SELECT (SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-SELECT (SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-select (null, null) = (null, null);
-(null, null) = (null, null)
-NULL
-SELECT (SELECT f3a, f3a FROM t3 where f3a > 3) = (0, 0);
-(SELECT f3a, f3a FROM t3 where f3a > 3) = (0, 0)
-NULL
-drop tables t1,t2,t3;
-#
-# LP BUG#825051 Wrong result with date/datetime and subquery with GROUP BY and in_to_exists
-#
-CREATE TABLE t1 (a date, KEY (a)) ;
-INSERT INTO t1 VALUES ('2009-01-01'),('2009-02-02');
-set @old_optimizer_switch = @@optimizer_switch;
-SET @@optimizer_switch='semijoin=off,materialization=off,in_to_exists=on,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 4 NULL 2 Using where; Using index
-2 DEPENDENT SUBQUERY t1 index_subquery a a 4 func 2 Using index
-SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-a
-2009-01-01
-2009-02-02
-SET @@optimizer_switch='semijoin=off,materialization=on,in_to_exists=off,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 4 NULL 2 Using where; Using index
-2 MATERIALIZED t1 index NULL a 4 NULL 2 Using index
-SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-a
-2009-01-01
-2009-02-02
-set @@optimizer_switch=@old_optimizer_switch;
-drop table t1;
-#
-# LP BUG#908269 incorrect condition in case of subqueries depending
-# on constant tables
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 ( b INT ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1);
-CREATE TABLE t3 ( c INT );
-INSERT INTO t3 VALUES (4),(5);
-SET optimizer_switch='subquery_cache=off';
-SELECT ( SELECT b FROM t2 WHERE b = a OR EXISTS ( SELECT c FROM t3 WHERE c = b ) ) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR EXISTS ( SELECT c FROM t3 WHERE c = b ) )
-1
-NULL
-SELECT ( SELECT b FROM t2 WHERE b = a OR b * 0) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR b * 0)
-1
-NULL
-SELECT ( SELECT b FROM t2 WHERE b = a OR rand() * 0) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR rand() * 0)
-1
-NULL
-drop table t1,t2,t3;
-set optimizer_switch=@subselect_tmp;
-#
-# LP BUG#905353 Wrong non-empty result with a constant table,
-# aggregate function in subquery, MyISAM or Aria
-#
-CREATE TABLE t1 ( a INT ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1);
-SELECT a FROM t1 WHERE ( SELECT MIN(a) = 100 );
-a
-drop table t1;
-#
-# LP BUG#985667 Wrong result with subquery in SELECT clause, and constant table in
-# main query and implicit grouping
-#
-CREATE TABLE t1 (f1 int) engine=MyISAM;
-INSERT INTO t1 VALUES (7),(8);
-CREATE TABLE t2 (f2 int, f3 varchar(1)) engine=MyISAM;
-INSERT INTO t2 VALUES (3,'f');
-EXPLAIN
-SELECT COUNT(f1), (SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(f1), (SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 NULL
-EXPLAIN
-SELECT COUNT(f1), exists(SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(f1), exists(SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 0
-EXPLAIN
-SELECT COUNT(f1), f2 > ALL (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT COUNT(f1), f2 > ALL (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 1
-EXPLAIN
-SELECT COUNT(f1), f2 IN (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT COUNT(f1), f2 IN (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 0
-drop table t1,t2;
-#
-# LP BUG#1002079 Server crashes in Item_singlerow_subselect::val_int with constant table,
-# HAVING, UNION in subquery
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (7),(0);
-CREATE TABLE t2 (b INT);
-EXPLAIN
-SELECT SUM(a) AS f1, a AS f2 FROM (t1, t2) HAVING f2 >= ALL (SELECT 4 UNION SELECT 5) AND f1 = 7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT SUM(a) AS f1, a AS f2 FROM (t1, t2) HAVING f2 >= ALL (SELECT 4 UNION SELECT 5) AND f1 = 7;
-f1 f2
-drop table t1,t2;
-#
-# LP BUG#1008686 Server crashes in subselect_union_engine::no_rows on SELECT with impossible
-# WHERE and UNION in HAVING
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(7);
-EXPLAIN
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 0 HAVING a NOT IN ( SELECT 2 UNION SELECT 5 ) OR min_a != 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 0 HAVING a NOT IN ( SELECT 2 UNION SELECT 5 ) OR min_a != 1;
-min_a a
-EXPLAIN
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 1=2 HAVING a NOT IN ( SELECT a from t1 UNION select a+1 from t1 ) OR min_a != 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT UNION t1 ALL NULL NULL NULL NULL 2 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 1=2 HAVING a NOT IN ( SELECT a from t1 UNION select a+1 from t1 ) OR min_a != 1;
-min_a a
-drop table t1;
-#
-# MDEV-367: Different results with and without subquery_cache on
-# a query with a constant NOT IN condition
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2),(3);
-set @mdev367_optimizer_switch = @@optimizer_switch;
-set optimizer_switch = 'subquery_cache=on';
-SELECT * FROM t1 WHERE ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) OR a > 100;
-a
-SELECT *, ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) FROM t1;
-a ( 3, 3 ) NOT IN ( SELECT NULL, NULL )
-1 NULL
-2 NULL
-3 NULL
-set optimizer_switch=@mdev367_optimizer_switch;
-set optimizer_switch = 'subquery_cache=off';
-SELECT * FROM t1 WHERE ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) OR a > 100;
-a
-SELECT *, ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) FROM t1;
-a ( 3, 3 ) NOT IN ( SELECT NULL, NULL )
-1 NULL
-2 NULL
-3 NULL
-set optimizer_switch=@mdev367_optimizer_switch;
-DROP TABLE t1;
-#
-# MDEV-521 single value subselect transformation problem
-#
-CREATE TABLE t1 (f1 char(2), PRIMARY KEY (f1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('u1'),('u2');
-SELECT a.* FROM t1 a WHERE ( SELECT EXISTS ( SELECT 1 FROM t1 b WHERE b.f1 = a.f1 ) );
-f1
-u1
-u2
-FLUSH TABLES;
-SELECT a.* FROM t1 a WHERE ( SELECT EXISTS ( SELECT 1 FROM t1 b WHERE b.f1 = a.f1 ) );
-f1
-u1
-u2
-DROP TABLE t1;
-# return optimizer switch changed in the beginning of this test
-set optimizer_switch=@subselect_tmp;
-#
-# lp:944706 Query with impossible or constant subquery in WHERE or HAVING is not
-# precomputed and thus not part of optimization
-#
-CREATE TABLE t1 ( a VARCHAR(16), KEY (a) );
-INSERT INTO t1 VALUES ('Abilene'),('Akron'),('Albany'),('Albuquerque'),('Alexandria'),('Allentown'),
-('Amarillo'),('Anaheim'),('Anchorage'),('Ann Arbor'),('Arden-Arcade');
-EXPLAIN
-SELECT MAX( alias2.a ) AS field
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR alias1.a = 'y'
-HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible HAVING
-2 SUBQUERY t1 index_subquery a a 19 const 1 Using index; Using where
-SELECT MAX( alias2.a ) AS field
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR alias1.a = 'y'
-HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
-field
-EXPLAIN
-SELECT MAX( alias2.a )
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 index a a 19 NULL 11 Using where; Using index
-1 PRIMARY alias2 ref a a 19 test.alias1.a 2 Using index
-1 PRIMARY alias3 index NULL a 19 NULL 11 Using index; Using join buffer (flat, BNL join)
-2 SUBQUERY t1 index_subquery a a 19 const 1 Using index; Using where
-SELECT MAX( alias2.a )
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
-MAX( alias2.a )
-Arden-Arcade
-drop table t1;
-#
-# MDEV-277 CHEAP SQ: Server crashes in st_join_table::get_examined_rows
-# with semijoin+materialization, IN and = subqueries
-#
-CREATE TABLE t1 (a1 INT);
-INSERT INTO t1 VALUES (4),(6);
-CREATE TABLE t2 (b1 INT);
-INSERT INTO t2 VALUES (1),(7);
-EXPLAIN
-SELECT * FROM t1
-WHERE a1 = (SELECT COUNT(*) FROM t1 WHERE a1 IN (SELECT a1 FROM t1, t2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-SELECT * FROM t1
-WHERE a1 = (SELECT COUNT(*) FROM t1 WHERE a1 IN (SELECT a1 FROM t1, t2));
-a1
-drop table t1, t2;
-#
-# MDEV-287 CHEAP SQ: A query with subquery in SELECT list, EXISTS,
-# inner joins takes hundreds times longer
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(7);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (4),(5);
-CREATE TABLE t3 (c INT);
-INSERT INTO t3 VALUES (8),(3);
-set @@expensive_subquery_limit= 0;
-EXPLAIN
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 2
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 PRIMARY alias3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-flush status;
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-(SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 2
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 8
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 22
-set @@expensive_subquery_limit= default;
-EXPLAIN
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 2
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 PRIMARY alias3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-flush status;
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-(SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 16
-drop table t1, t2, t3;
-#
-# MDEV-288 CHEAP SQ: Valgrind warnings "Memory lost" with IN and EXISTS nested subquery, materialization+semijoin
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0),(8);
-CREATE TABLE t2 (b INT PRIMARY KEY);
-INSERT INTO t2 VALUES (1),(2);
-EXPLAIN
-SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-3 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
-a
-drop table t1,t2;
-#
-# MDEV-410: EXPLAIN shows type=range, while SHOW EXPLAIN and userstat show full table scan is used
-#
-CREATE TABLE t1 (a VARCHAR(3) PRIMARY KEY) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('USA');
-CREATE TABLE t2 (b INT, c VARCHAR(52), KEY(b)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3813,'United States'),(3940,'Russia');
-CREATE TABLE t3 (d INT, KEY(d)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (12),(22),(9),(45);
-create table t4 like t3;
-insert into t4 select * from t3;
-# This should not show range access for table t2
-explain
-SELECT MIN(b) FROM ( SELECT * FROM t1, t2, t3 WHERE d = b ) AS alias1
-WHERE SLEEP(0.1) OR c < 'p' OR b = ( SELECT MIN(b) FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL b NULL NULL NULL 2 Using where
-1 PRIMARY t3 ref d d 5 test.t2.b 2 Using where; Using index
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-set @tmp_mdev410=@@global.userstat;
-set global userstat=on;
-flush table_statistics;
-flush index_statistics;
-SELECT MIN(b) FROM ( SELECT * FROM t1, t2, t3 WHERE d = b ) AS alias1
-WHERE SLEEP(0.1) OR c < 'p' OR b = ( SELECT MIN(b) FROM t2 );
-MIN(b)
-NULL
-# The following shows that t2 was indeed scanned with a full scan.
-show table_statistics;
-Table_schema Table_name Rows_read Rows_changed Rows_changed_x_#indexes
-test t1 2 0 0
-test t2 3 0 0
-show index_statistics;
-Table_schema Table_name Index_name Rows_read
-test t2 b 1
-set global userstat=@tmp_mdev410;
-DROP TABLE t1,t2,t3,t4;
-#
-# MDEV-430: Server crashes in select_describe on EXPLAIN with
-# materialization+semijoin, 2 nested subqueries, aggregate functions
-#
-CREATE TABLE t1 (a INT, KEY(a));
-INSERT INTO t1 VALUES (1),(8);
-CREATE TABLE t2 (b INT, KEY(b));
-INSERT INTO t2 VALUES (45),(17),(20);
-EXPLAIN SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t1, t2 WHERE b = a GROUP BY a HAVING a <> 1 ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 range a a 5 NULL 2 Using where; Using index
-2 SUBQUERY t2 ref b b 5 test.t1.a 2 Using index
-DROP TABLE t1,t2;
-#
-# MDEV-435: Expensive subqueries may be evaluated during optimization in merge_key_fields
-#
-CREATE TABLE t1 (a INT, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (8),(0);
-CREATE TABLE t2 (b INT, c VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (4,'j'),(6,'v');
-CREATE TABLE t3 (d VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('b'),('c');
-EXPLAIN
-SELECT * FROM t1
-WHERE a = (SELECT MAX(b) FROM t2 WHERE c IN (SELECT MAX(d) FROM t3)) OR a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index a a 5 NULL 2 Using where; Using index
-2 SUBQUERY <subquery3> ALL distinct_key NULL NULL NULL 1
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1
-WHERE a = (SELECT MAX(b) FROM t2 WHERE c IN (SELECT MAX(d) FROM t3)) OR a = 10;
-a
-drop table t1, t2, t3;
-#
-# MDEV-405: Server crashes in test_if_skip_sort_order on EXPLAIN with GROUP BY and HAVING in EXISTS subquery
-#
-CREATE TABLE t1 (a INT, KEY(a));
-INSERT INTO t1 VALUES (1),(8);
-CREATE TABLE t2 (b INT, KEY(b));
-INSERT INTO t2 VALUES (45),(17),(20);
-EXPLAIN SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t1, t2 WHERE b = a GROUP BY a HAVING a <> 1 ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 range a a 5 NULL 2 Using where; Using index
-2 SUBQUERY t2 ref b b 5 test.t1.a 2 Using index
-DROP TABLE t1,t2;
-#
-# MDEV-5991: crash in Item_field::used_tables
-#
-create table t1 (c int);
-select exists(select 1 from t1 group by `c` in (select `c` from t1));
-exists(select 1 from t1 group by `c` in (select `c` from t1))
-0
-drop table t1;
-#
-# MDEV-7565: Server crash with Signal 6 (part 2)
-#
-Select
-(Select Sum(`TestCase`.Revenue) From mysql.slow_log E
-Where TestCase.TemplateID not in (Select 1 from mysql.slow_log where 2=2)
-) As `ControlRev`
-From
-(Select 3 as Revenue, 4 as TemplateID) As `TestCase`
-Group By TestCase.Revenue, TestCase.TemplateID;
-ControlRev
-NULL
-#
-# MDEV-7445:Server crash with Signal 6
-#
-CREATE PROCEDURE procedure2()
-BEGIN
-Select
-(Select Sum(`TestCase`.Revenue) From mysql.slow_log E
-Where TestCase.TemplateID not in (Select 1 from mysql.slow_log where 2=2)
-) As `ControlRev`
- From
-(Select 3 as Revenue, 4 as TemplateID) As `TestCase`
-Group By TestCase.Revenue, TestCase.TemplateID;
-END |
-call procedure2();
-ControlRev
-NULL
-call procedure2();
-ControlRev
-NULL
-drop procedure procedure2;
-SELECT
-(SELECT user FROM mysql.user
-WHERE h.host in (SELECT host FROM mysql.user)
-) AS sq
-FROM mysql.host h GROUP BY h.host;
-sq
-#
-# MDEV-7846:Server crashes in Item_subselect::fix
-#_fields or fails with Thread stack overrun
-#
-CREATE TABLE t1 (column1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3),(9);
-CREATE TABLE t2 (column2 INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1),(4);
-CREATE TABLE t3 (column3 INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (6),(8);
-CREATE TABLE t4 (column4 INT) ENGINE=MyISAM;
-INSERT INTO t4 VALUES (2),(5);
-PREPARE stmt FROM "
-SELECT (
- SELECT MAX( table1.column1 ) AS field1
- FROM t1 AS table1
- WHERE table3.column3 IN ( SELECT table2.column2 AS field2 FROM t2 AS table2 )
-) AS sq
-FROM t3 AS table3, t4 AS table4 GROUP BY sq
-";
-EXECUTE stmt;
-sq
-NULL
-EXECUTE stmt;
-sq
-NULL
-deallocate prepare stmt;
-drop table t1,t2,t3,t4;
-#
-# MDEV-7122
-# Assertion `0' failed in subselect_hash_sj_engine::init
-#
-SET SESSION big_tables=1;
-CREATE TABLE t1(a char(255) DEFAULT '', KEY(a(10))) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES(0),(0),(0);
-SELECT * FROM t1 WHERE a IN(SELECT MIN(a) FROM t1);
-a
-0
-0
-0
-DROP TABLE t1;
-SET SESSION big_tables=0;
-#
-# MDEV-10776: Server crash on query
-#
-create table t1 (field1 int);
-insert into t1 values (1);
-select round((select 1 from t1 limit 1))
-from t1
-group by round((select 1 from t1 limit 1));
-round((select 1 from t1 limit 1))
-1
-drop table t1;
-#
-# MDEV-7930: Assertion `table_share->tmp_table != NO_TMP_TABLE ||
-# m_lock_type != 2' failed in handler::ha_index_read_map
-#
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 INT, KEY(f2));
-INSERT INTO t2 VALUES (3);
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2;
-SELECT ( SELECT MIN(t2.f2) FROM t1 ) AS sq FROM t2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT ( SELECT MIN(v2.f2) FROM t1 ) AS sq FROM v2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT * FROM v2 where ( SELECT MIN(v2.f2) FROM t1 ) > 0;
-f2
-3
-SELECT count(*) FROM v2 group by ( SELECT MIN(v2.f2) FROM t1 );
-count(*)
-1
-delete from t1;
-SELECT ( SELECT MIN(t2.f2) FROM t1 ) AS sq FROM t2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT ( SELECT MIN(v2.f2) FROM t1 ) AS sq FROM v2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-drop view v2;
-drop table t1,t2;
-#
-# MDEV-10386 Assertion `fixed == 1' failed in virtual String* Item_func_conv_charset::val_str(String*)
-#
-CREATE TABLE t1 (f1 CHAR(3) CHARACTER SET utf8 NULL, f2 CHAR(3) CHARACTER SET latin1 NULL);
-INSERT INTO t1 VALUES ('foo','bar');
-SELECT * FROM t1 WHERE f2 >= SOME ( SELECT f1 FROM t1 );
-f1 f2
-SELECT * FROM t1 WHERE f2 <= SOME ( SELECT f1 FROM t1 );
-f1 f2
-foo bar
-DROP TABLE t1;
-#
-# MDEV-10146: Wrong result (or questionable result and behavior)
-# with aggregate function in uncorrelated SELECT subquery
-#
-CREATE TABLE t1 (f1 INT);
-CREATE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 int);
-INSERT INTO t2 VALUES (3);
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM t1;
-( SELECT MAX(f1) FROM t2 )
-2
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM v1;
-( SELECT MAX(f1) FROM t2 )
-2
-INSERT INTO t2 VALUES (4);
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM v1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-drop view v1;
-drop table t1,t2;
-CREATE TABLE t1 (f1 INT, KEY(f1)) ENGINE=MyISAM;
-INSERT t1 VALUES (4),(8);
-CREATE TABLE t2 (f2 INT, KEY(f2)) ENGINE=MyISAM;
-INSERT t2 VALUES (6);
-SELECT (SELECT MAX(sq.f2) FROM t1) FROM (SELECT * FROM t2) AS sq WHERE f2 = 2;
-(SELECT MAX(sq.f2) FROM t1)
-NULL
-#
-# Disable this query till MDEV-13399 is resolved
-#
-# INSERT t2 VALUES (9);
-# --error ER_SUBQUERY_NO_1_ROW
-# SELECT (SELECT MAX(sq.f2) FROM t1) FROM (SELECT * FROM t2) AS sq WHERE f2 = 2;
-#
-drop table t1, t2;
-#
-# MDEV-13933: Wrong results in COUNT() query with EXISTS and exists_to_in
-# (5.5 test)
-#
-SET @optimiser_switch_save= @@optimizer_switch;
-CREATE TABLE t1 (a INT NOT NULL);
-INSERT INTO t1 VALUES (1),(1),(1),(5),(5);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (5),(1);
-CREATE TABLE t3 (c INT, KEY(c));
-INSERT INTO t3 VALUES (5),(5);
-SET optimizer_switch='semijoin=on';
-select t1.a from t1 where t1.a in (select `test`.`t2`.`b` from `test`.`t2`)
-and t1.a in (select `test`.`t3`.`c` from `test`.`t3`);
-a
-5
-5
-SET optimizer_switch='semijoin=off';
-select t1.a from t1 where t1.a in (select `test`.`t2`.`b` from `test`.`t2`)
-and t1.a in (select `test`.`t3`.`c` from `test`.`t3`);
-a
-5
-5
-SET @@optimizer_switch= @optimiser_switch_save;
-DROP TABLE t1, t2, t3;
-End of 5.5 tests
-# End of 10.0 tests
-#
-# MDEV-9487: Server crashes in Time_and_counter_tracker::incr_loops
-# with UNION in ALL subquery
-#
-SET NAMES utf8;
-CREATE TABLE t1 (f VARCHAR(8)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo');
-SELECT f FROM t1 WHERE f > ALL ( SELECT 'bar' UNION SELECT 'baz' );
-f
-foo
-SELECT f FROM t1 WHERE f > ALL ( SELECT 'bar');
-f
-foo
-drop table t1;
-SET NAMES default;
-#
-# MDEV-10045: Server crashes in Time_and_counter_tracker::incr_loops
-#
-SET NAMES utf8;
-CREATE TABLE t1 (f1 VARCHAR(3), f2 INT UNSIGNED) ENGINE=MyISAM;
-CREATE TABLE t2 (f3 INT) ENGINE=MyISAM;
-SELECT * FROM t1, t2 WHERE f3 = f2 AND f1 > ANY ( SELECT 'foo' UNION SELECT 'bar' );
-f1 f2 f3
-SELECT * FROM t1, t2 WHERE f3 = f2 AND f1 > ANY ( SELECT 'foo');
-f1 f2 f3
-DROP TABLE t1, t2;
-SET NAMES default;
-# End of 10.1 tests
-#
-# MDEV-12564: IN TO EXISTS transformation for rows after
-# conversion an outer join to inner join
-#
-CREATE TABLE t (
-pk int PRIMARY KEY, i int NOT NULL, c varchar(8), KEY(c)
-) ENGINE=MyISAM;
-INSERT INTO t VALUES (1,10,'foo'),(2,20,'bar');
-SELECT * FROM t t1 RIGHT JOIN t t2 ON (t2.pk = t1.pk)
-WHERE (t2.i, t2.pk) NOT IN ( SELECT t3.i, t3.i FROM t t3, t t4 ) AND t1.c = 'foo';
-pk i c pk i c
-1 10 foo 1 10 foo
-DROP TABLE t;
-# End of 10.2 tests
diff --git a/mysql-test/r/subselect2.result b/mysql-test/r/subselect2.result
deleted file mode 100644
index 31e7774734e..00000000000
--- a/mysql-test/r/subselect2.result
+++ /dev/null
@@ -1,396 +0,0 @@
-drop table if exists t1, t2, t3, t4;
-set @subselect2_test_tmp=@@optimizer_switch;
-set optimizer_switch='semijoin=on,firstmatch=on,mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-CREATE TABLE t1
-(
-DOCID VARCHAR(32)BINARY NOT NULL
-, UUID VARCHAR(32)BINARY NOT NULL
-, MIMETYPE VARCHAR(80)BINARY
-, CONTENTDATA LONGBLOB
-, CONTENTSIZE INTEGER
-, VERSIONID INTEGER
-, REPID VARCHAR(32)BINARY
-, MODIFIED TIMESTAMP
-, MODIFIER VARCHAR(255)BINARY
-, ORIGINATOR INTEGER
-, PRIMARY KEY ( DOCID )
-) ENGINE=InnoDB
-;
-INSERT IGNORE INTO t1 (DOCID) VALUES ("1"), ("2");
-Warnings:
-Warning 1364 Field 'UUID' doesn't have a default value
-CREATE TABLE t2
-(
-DOCID VARCHAR(32)BINARY NOT NULL
-, DOCNAME VARCHAR(255)BINARY NOT NULL
-, DOCTYPEID VARCHAR(32)BINARY NOT NULL
-, FOLDERID VARCHAR(32)BINARY NOT NULL
-, AUTHOR VARCHAR(255)BINARY
-, CREATED TIMESTAMP NOT NULL
-, TITLE VARCHAR(255)BINARY
-, SUBTITLE VARCHAR(255)BINARY
-, DOCABSTRACT LONGBLOB
-, PUBLISHDATE TIMESTAMP
-, EXPIRATIONDATE TIMESTAMP
-, LOCKEDBY VARCHAR(80)BINARY
-, STATUS VARCHAR(80)BINARY
-, PARENTDOCID VARCHAR(32)BINARY
-, REPID VARCHAR(32)BINARY
-, MODIFIED TIMESTAMP NOT NULL
-, MODIFIER VARCHAR(255)BINARY NOT NULL
-, PUBLISHSTATUS INTEGER
-, ORIGINATOR INTEGER
-, PRIMARY KEY ( DOCID )
-) ENGINE=InnoDB
-;
-CREATE INDEX DDOCTYPEID_IDX ON t2 (DOCTYPEID);
-CREATE INDEX DFOLDERID_IDX ON t2 (FOLDERID);
-CREATE TABLE t3
-(
-FOLDERID VARCHAR(32)BINARY NOT NULL
-, FOLDERNAME VARCHAR(255)BINARY NOT NULL
-, CREATOR VARCHAR(255)BINARY
-, CREATED TIMESTAMP NOT NULL
-, DESCRIPTION VARCHAR(255)BINARY
-, FOLDERTYPE INTEGER NOT NULL
-, MODIFIED TIMESTAMP
-, MODIFIER VARCHAR(255)BINARY
-, FOLDERSIZE INTEGER NOT NULL
-, PARENTID VARCHAR(32)BINARY
-, REPID VARCHAR(32)BINARY
-, ORIGINATOR INTEGER
-, PRIMARY KEY ( FOLDERID )
-) ENGINE=InnoDB;
-CREATE INDEX FFOLDERID_IDX ON t3 (FOLDERID);
-CREATE INDEX CMFLDRPARNT_IDX ON t3 (PARENTID);
-CREATE TABLE t4
-(
-DOCTYPEID VARCHAR(32)BINARY NOT NULL
-, DOCTYPENAME VARCHAR(80)BINARY NOT NULL
-, DESCRIPTION VARCHAR(255)BINARY
-, EXTNDATA LONGBLOB
-, MODIFIED TIMESTAMP
-, MODIFIER VARCHAR(255)BINARY
-, ORIGINATOR INTEGER
-, PRIMARY KEY ( DOCTYPEID )
-) ENGINE=InnoDB;
-INSERT INTO t2 VALUES("c373e9f59cf15a6c3e57444553544200", "c373e9f59cf15a6c3e57444553544200", "340d243d45f111d497b00010a4ef934d", "2f6161e879db43c1a5b82c21ddc49089", NULL, "2003-06-06 07:48:42", NULL, NULL, NULL, "2003-06-06 07:48:42", "2003-06-06 07:48:42", NULL, NULL, NULL, "03eea05112b845949f3fd03278b5fe43", "2003-06-06 07:48:42", "admin", "0", NULL);
-INSERT INTO t2 VALUES("c373e9f5a472f43ba45e444553544200", "c373e9f5a472f43ba45e444553544200", "340d243d45f111d497b00010a4ef934d", "2f6161e879db43c1a5b82c21ddc49089", NULL, "2003-06-07 18:50:12", NULL, NULL, NULL, "2003-06-07 18:50:12", "2003-06-07 18:50:12", NULL, NULL, NULL, "03eea05112b845949f3fd03278b5fe43", "2003-06-07 18:50:12", "admin", "0", NULL);
-INSERT INTO t2 VALUES("c373e9f5a4a0f56014eb444553544200", "c373e9f5a4a0f56014eb444553544200", "340d243d45f111d497b00010a4ef934d", "2f6161e879db43c1a5b82c21ddc49089", NULL, "2003-06-07 19:39:26", NULL, NULL, NULL, "2003-06-07 19:39:26", "2003-06-07 19:39:26", NULL, NULL, NULL, "03eea05112b845949f3fd03278b5fe43", "2003-06-07 19:39:26", "admin", "0", NULL);
-INSERT INTO t2 VALUES("c373e9f5a4a0f8fa4a86444553544200", "c373e9f5a4a0f8fa4a86444553544200", "340d243d45f111d497b00010a4ef934d", "2f6161e879db43c1a5b82c21ddc49089", NULL, "2003-06-07 19:43:05", NULL, NULL, NULL, "2003-06-07 19:43:05", "2003-06-07 19:43:05", NULL, NULL, NULL, "03eea05112b845949f3fd03278b5fe43", "2003-06-07 19:43:05", "admin", "0", NULL);
-INSERT INTO t2 VALUES("c373e9f5ac7b537205ce444553544200", "c373e9f5ac7b537205ce444553544200", "340d243d45f111d497b00010a4ef934d", "2f6161e879db43c1a5b82c21ddc49089", NULL, "2003-06-09 08:15:24", NULL, NULL, NULL, "2003-06-09 08:15:24", "2003-06-09 08:15:24", NULL, NULL, NULL, "03eea05112b845949f3fd03278b5fe43", "2003-06-09 08:15:24", "admin", "0", NULL);
-INSERT INTO t2 VALUES("c373e9f5ad0792012454444553544200", "c373e9f5ad0792012454444553544200", "340d243d45f111d497b00010a4ef934d", "2f6161e879db43c1a5b82c21ddc49089", NULL, "2003-06-09 10:51:44", NULL, NULL, NULL, "2003-06-09 10:51:44", "2003-06-09 10:51:44", NULL, NULL, NULL, "03eea05112b845949f3fd03278b5fe43", "2003-06-09 10:51:44", "admin", "0", NULL);
-INSERT INTO t2 VALUES("c373e9f5ad079821ef34444553544200", "First Discussion", "c373e9f5ad079174ff17444553544200", "c373e9f5ad0796c0eca4444553544200", "Goldilocks", "2003-06-09 11:16:50", "Title: First Discussion", NULL, NULL, "2003-06-09 10:51:26", "2003-06-09 10:51:26", NULL, NULL, NULL, "03eea05112b845949f3fd03278b5fe43", "2003-06-09 11:16:50", "admin", "0", NULL);
-INSERT INTO t2 VALUES("c373e9f5ad07993f3859444553544200", "Last Discussion", "c373e9f5ad079174ff17444553544200", "c373e9f5ad0796c0eca4444553544200", "Goldilocks", "2003-06-09 11:21:06", "Title: Last Discussion", NULL, "Setting new abstract and keeping doc checked out", "2003-06-09 10:51:26", "2003-06-09 10:51:26", NULL, NULL, NULL, "03eea05112b845949f3fd03278b5fe43", "2003-06-09 11:21:06", "admin", "0", NULL);
-INSERT INTO t2 VALUES("c373e9f5ad079a3219c4444553544200", "testdoclayout", "340d243c45f111d497b00010a4ef934d", "c373e9f5ad0796c0eca4444553544200", "Goldilocks", "2003-06-09 11:25:31", "Title: Test doc layout", "Subtitle: test doc layout", NULL, "2003-06-09 10:51:27", "2003-06-09 10:51:27", NULL, NULL, NULL, "03eea05112b845949f3fd03278b5fe43", "2003-06-09 11:25:31", "admin", "0", NULL);
-INSERT INTO t3 VALUES("0c9aab05b15048c59bc35c8461507deb", "System", "System", "2003-06-05 16:30:00", "The system content repository folder.", "3", "2003-06-05 16:30:00", "System", "0", NULL, "9c9aab05b15048c59bc35c8461507deb", "1");
-INSERT INTO t3 VALUES("2f6161e879db43c1a5b82c21ddc49089", "Default", "System", "2003-06-09 10:52:02", "The default content repository folder.", "3", "2003-06-05 16:30:00", "System", "0", NULL, "03eea05112b845949f3fd03278b5fe43", "1");
-INSERT INTO t3 VALUES("c373e9f5ad0791724315444553544200", "AddDocumentTest", "admin", "2003-06-09 10:51:25", "Movie Reviews", "0", "2003-06-09 10:51:25", "admin", "0", "2f6161e879db43c1a5b82c21ddc49089", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad07919e1963444553544200", "NewDestDirectory", "admin", "2003-06-09 10:51:28", "Adding new directory", "128", "2003-06-09 10:51:28", "admin", "0", "2f6161e879db43c1a5b82c21ddc49089", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad07919fe525444553544200", "SubDestDirectory", "admin", "2003-06-09 10:51:28", "Adding new directory", "128", "2003-06-09 10:51:28", "admin", "0", "c373e9f5ad07919e1963444553544200", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0791a0dab5444553544200", "Level1", "admin", "2003-06-09 10:51:29", NULL, "0", "2003-06-09 10:51:29", "admin", "0", "2f6161e879db43c1a5b82c21ddc49089", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0791a14669444553544200", "Level2", "admin", "2003-06-09 10:51:29", NULL, "0", "2003-06-09 10:51:29", "admin", "0", "c373e9f5ad0791a0dab5444553544200", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0791a23c0e444553544200", "Level3", "admin", "2003-06-09 10:51:29", NULL, "0", "2003-06-09 10:51:29", "admin", "0", "c373e9f5ad0791a14669444553544200", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0791a6b11f444553544200", "Dir1", "admin", "2003-06-09 10:51:30", NULL, "0", "2003-06-09 10:51:30", "admin", "0", "2f6161e879db43c1a5b82c21ddc49089", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0791a897d6444553544200", "Dir2", "admin", "2003-06-09 10:51:30", NULL, "0", "2003-06-09 10:51:30", "admin", "0", "c373e9f5ad0791a6b11f444553544200", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0791a9a063444553544200", "NewDestDirectory", "admin", "2003-06-09 10:51:31", NULL, "0", "2003-06-09 10:51:31", "admin", "0", "c373e9f5ad0791a897d6444553544200", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0791aa73e3444553544200", "LevelA", "admin", "2003-06-09 10:51:31", NULL, "0", "2003-06-09 10:51:31", "admin", "0", "c373e9f5ad0791a0dab5444553544200", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0791ab034b444553544200", "LevelB", "admin", "2003-06-09 10:51:31", NULL, "0", "2003-06-09 10:51:31", "admin", "0", "c373e9f5ad0791aa73e3444553544200", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0791ac7311444553544200", "LevelC", "admin", "2003-06-09 10:51:32", NULL, "0", "2003-06-09 10:51:32", "admin", "0", "c373e9f5ad0791ab034b444553544200", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0791ad66cf444553544200", "test2", "admin", "2003-06-09 10:51:32", NULL, "0", "2003-06-09 10:51:32", "admin", "0", "c373e9f5ad0791724315444553544200", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0791aebd87444553544200", "test3", "admin", "2003-06-09 10:51:33", NULL, "0", "2003-06-09 10:51:33", "admin", "0", "c373e9f5ad0791ad66cf444553544200", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0791dbaac4444553544200", "Special Café Folder", "admin", "2003-06-09 10:51:43", "test folder names with special chars", "0", "2003-06-09 10:51:43", "admin", "0", "2f6161e879db43c1a5b82c21ddc49089", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0796bf913f444553544200", "CopiedFolder", "admin", "2003-06-09 11:09:05", "Movie Reviews", "0", "2003-06-09 11:09:05", "admin", "0", "c373e9f5ad0791a23c0e444553544200", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0796c0eca4444553544200", "Movie Reviews", "admin", "2003-06-09 11:09:13", "Movie Reviews", "0", "2003-06-09 11:09:13", "admin", "33", "c373e9f5ad0796bf913f444553544200", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad0796d9b895444553544200", "NewBookFolder", "admin", "2003-06-09 11:12:41", "NewBooks - folder", "0", "2003-06-09 11:12:41", "admin", "0", "c373e9f5ad0796c0eca4444553544200", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t3 VALUES("c373e9f5ad079b4c9355444553544200", "CopiedFolder", "admin", "2003-06-09 11:26:34", "Movie Reviews", "0", "2003-06-09 11:26:34", "admin", "0", "2f6161e879db43c1a5b82c21ddc49089", "03eea05112b845949f3fd03278b5fe43", NULL);
-INSERT INTO t4 VALUES("340d243c45f111d497b00010a4ef934d", "Document Layout", "The system Document Layouts Document Type", NULL, "2003-06-05 16:30:00", "System", "1");
-INSERT INTO t4 VALUES("340d243d45f111d497b00010a4ef934d", "Default", "The default system Document Type", NULL, "2003-06-05 16:30:00", "System", "1");
-INSERT INTO t4 VALUES("4d09dd60850711d4998a204c4f4f5020", "__SystemResourceType", "The type for all the uploaded resources", NULL, "2003-06-05 16:30:00", "System", "1");
-INSERT INTO t4 VALUES("91d4d595478211d497b40010a4ef934d", "__PmcSystemDefaultType", "The type for all the default available fields", NULL, "2003-06-05 16:30:00", "System", "1");
-INSERT INTO t4 VALUES("c373e9f59cf15a59b08a444553544200", "NoFieldDocType", "plain doc type", NULL, "2003-06-06 07:48:40", "admin", NULL);
-INSERT INTO t4 VALUES("c373e9f59cf15a5c6a99444553544200", "Movie Review", "This doc type is for movie reviews", "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<props autocheckin=\"false\" autopublish=\"false\" binary=\"choice\" categories=\"none\" cleanup=\"false\" folder=\"none\"><![CDATA[Doc type for cm tests]]></props>\r\n", "2003-06-06 07:48:40", "admin", NULL);
-INSERT INTO t4 VALUES("c373e9f59cf15a6116a5444553544200", "Special DocÃu20A4u20A4u0113ééøÉu016BType", "test special chars xxxé in doc type", NULL, "2003-06-06 07:48:41", "admin", NULL);
-INSERT INTO t4 VALUES("c373e9f59cf15a695d47444553544200", "Movie", NULL, NULL, "2003-06-06 07:48:41", "admin", NULL);
-INSERT INTO t4 VALUES("c373e9f5ad079174ff17444553544200", "Discussion", NULL, NULL, "2003-06-09 10:51:25", "admin", NULL);
-INSERT INTO t4 VALUES("c373e9f5ad0791da7e2b444553544200", "Books", "list of recommended books", "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<props autocheckin=\"false\" autopublish=\"false\" binary=\"choice\" categories=\"none\" cleanup=\"false\" folder=\"none\"><![CDATA[Doc type for cm tests]]><![CDATA[Doc type for book tests]]></props>\r\n", "2003-06-09 10:51:40", "admin", NULL);
-ALTER TABLE t2 ADD FOREIGN KEY FK_DCMNTS_DCTYPES ( DOCTYPEID)
-REFERENCES t4 (DOCTYPEID );
-ALTER TABLE t2 ADD FOREIGN KEY FK_DCMNTS_FLDRS ( FOLDERID)
-REFERENCES t3 (FOLDERID );
-ALTER TABLE t3 ADD FOREIGN KEY FK_FLDRS_PRNTID ( PARENTID)
-REFERENCES t3 (FOLDERID );
-SELECT t2.*, t4.DOCTYPENAME, t1.CONTENTSIZE,t1.MIMETYPE FROM t2 INNER JOIN t4 ON t2.DOCTYPEID = t4.DOCTYPEID LEFT OUTER JOIN t1 ON t2.DOCID = t1.DOCID WHERE t2.FOLDERID IN(SELECT t3.FOLDERID FROM t3 WHERE t3.PARENTID IN(SELECT t3.FOLDERID FROM t3 WHERE t3.PARENTID IN(SELECT t3.FOLDERID FROM t3 WHERE t3.PARENTID IN(SELECT t3.FOLDERID FROM t3 WHERE t3.PARENTID IN(SELECT t3.FOLDERID FROM t3 WHERE t3.PARENTID='2f6161e879db43c1a5b82c21ddc49089' AND t3.FOLDERNAME = 'Level1') AND t3.FOLDERNAME = 'Level2') AND t3.FOLDERNAME = 'Level3') AND t3.FOLDERNAME = 'CopiedFolder') AND t3.FOLDERNAME = 'Movie Reviews') AND t2.DOCNAME = 'Last Discussion';
-DOCID DOCNAME DOCTYPEID FOLDERID AUTHOR CREATED TITLE SUBTITLE DOCABSTRACT PUBLISHDATE EXPIRATIONDATE LOCKEDBY STATUS PARENTDOCID REPID MODIFIED MODIFIER PUBLISHSTATUS ORIGINATOR DOCTYPENAME CONTENTSIZE MIMETYPE
-c373e9f5ad07993f3859444553544200 Last Discussion c373e9f5ad079174ff17444553544200 c373e9f5ad0796c0eca4444553544200 Goldilocks 2003-06-09 11:21:06 Title: Last Discussion NULL Setting new abstract and keeping doc checked out 2003-06-09 10:51:26 2003-06-09 10:51:26 NULL NULL NULL 03eea05112b845949f3fd03278b5fe43 2003-06-09 11:21:06 admin 0 NULL Discussion NULL NULL
-EXPLAIN SELECT t2.*, t4.DOCTYPENAME, t1.CONTENTSIZE,t1.MIMETYPE FROM t2 INNER JOIN t4 ON t2.DOCTYPEID = t4.DOCTYPEID LEFT OUTER JOIN t1 ON t2.DOCID = t1.DOCID WHERE t2.FOLDERID IN(SELECT t3.FOLDERID FROM t3 WHERE t3.PARENTID IN(SELECT t3.FOLDERID FROM t3 WHERE t3.PARENTID IN(SELECT t3.FOLDERID FROM t3 WHERE t3.PARENTID IN(SELECT t3.FOLDERID FROM t3 WHERE t3.PARENTID IN(SELECT t3.FOLDERID FROM t3 WHERE t3.PARENTID='2f6161e879db43c1a5b82c21ddc49089' AND t3.FOLDERNAME = 'Level1') AND t3.FOLDERNAME = 'Level2') AND t3.FOLDERNAME = 'Level3') AND t3.FOLDERNAME = 'CopiedFolder') AND t3.FOLDERNAME = 'Movie Reviews') AND t2.DOCNAME = 'Last Discussion';
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL DDOCTYPEID_IDX,DFOLDERID_IDX NULL NULL NULL 9 Using where
-1 PRIMARY t1 eq_ref PRIMARY PRIMARY 34 test.t2.DOCID 1
-1 PRIMARY t4 eq_ref PRIMARY PRIMARY 34 test.t2.DOCTYPEID 1
-1 PRIMARY t3 eq_ref PRIMARY,FFOLDERID_IDX,CMFLDRPARNT_IDX PRIMARY 34 test.t2.FOLDERID 1 Using where
-1 PRIMARY t3 eq_ref PRIMARY,FFOLDERID_IDX,CMFLDRPARNT_IDX PRIMARY 34 test.t3.PARENTID 1 Using where
-1 PRIMARY t3 eq_ref PRIMARY,FFOLDERID_IDX,CMFLDRPARNT_IDX PRIMARY 34 test.t3.PARENTID 1 Using where
-1 PRIMARY t3 eq_ref PRIMARY,FFOLDERID_IDX,CMFLDRPARNT_IDX PRIMARY 34 test.t3.PARENTID 1 Using where
-1 PRIMARY t3 eq_ref PRIMARY,FFOLDERID_IDX,CMFLDRPARNT_IDX PRIMARY 34 test.t3.PARENTID 1 Using where
-drop table t1, t2, t3, t4;
-CREATE TABLE t1 (a int(10) , PRIMARY KEY (a)) Engine=InnoDB;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (a int(10), PRIMARY KEY (a)) Engine=InnoDB;
-INSERT INTO t2 VALUES (1);
-CREATE TABLE t3 (a int(10), b int(10), c int(10),
-PRIMARY KEY (a)) Engine=InnoDB;
-INSERT INTO t3 VALUES (1,2,1);
-SELECT t1.* FROM t1 WHERE (SELECT COUNT(*) FROM t3,t2 WHERE t3.c=t2.a
-and t2.a='1' AND t1.a=t3.b) > 0;
-a
-2
-DROP TABLE t1,t2,t3;
-#
-# Bug #902356: DISTINCT in materialized subquery
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, a int, KEY(a)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (0, 4), (8, 6);
-CREATE TABLE t2 (pk int PRIMARY KEY, a int, KEY(a)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (0, 4), (8, 6);
-CREATE TABLE t3 (b INT, KEY(b));
-INSERT INTO t3 VALUES (7), (0), (4), (2);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SET @tmp_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='materialization=on,in_to_exists=on';
-EXPLAIN
-SELECT * FROM t2,t3 WHERE (2,9) IN (SELECT DISTINCT a,pk FROM t1) OR a = b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index a a 5 NULL 2 Using where; Using index
-1 PRIMARY t3 ref b b 5 test.t2.a 2 Using index
-2 SUBQUERY t1 const PRIMARY,a PRIMARY 4 const 1 Using where
-SELECT * FROM t2,t3 WHERE (2,9) IN (SELECT DISTINCT a,pk FROM t1) OR a = b;
-pk a b
-0 4 4
-EXPLAIN
-SELECT * FROM t2,t3 WHERE (2,9) IN (SELECT DISTINCT a,pk FROM v1) OR a = b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index a a 5 NULL 2 Using where; Using index
-1 PRIMARY t3 ref b b 5 test.t2.a 2 Using index
-2 SUBQUERY t1 const PRIMARY,a PRIMARY 4 const 1 Using where
-SELECT * FROM t2,t3 WHERE (2,9) IN (SELECT DISTINCT a,pk FROM v1) OR a = b;
-pk a b
-0 4 4
-SET optimizer_switch=@tmp_optimizer_switch;
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# MDEV-536: LP:1050806 - different result for a query using subquery
-#
-DROP TABLE IF EXISTS `t1`;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-CREATE TABLE `t1` (
-`node_uid` bigint(20) unsigned DEFAULT NULL,
-`date` datetime DEFAULT NULL,
-`mirror_date` datetime DEFAULT NULL,
-KEY `date` (`date`)
-) ENGINE=MyISAM;
-INSERT INTO `t1` VALUES (2085,'2012-01-01 00:00:00','2013-01-01 00:00:00');
-INSERT INTO `t1` VALUES (2084,'2012-02-01 00:00:00','2013-01-01 00:00:00');
-INSERT INTO `t1` VALUES (2088,'2012-03-01 00:00:00','2013-01-01 00:00:00');
-SELECT * FROM (
-SELECT node_uid, date, mirror_date, @result := 0 AS result
-FROM t1
-WHERE date < '2012-12-12 12:12:12'
- AND node_uid in (2085, 2084)
-ORDER BY mirror_date ASC
-) AS calculated_result;
-node_uid date mirror_date result
-2085 2012-01-01 00:00:00 2013-01-01 00:00:00 0
-2084 2012-02-01 00:00:00 2013-01-01 00:00:00 0
-DROP TABLE t1;
-#
-# MDEV-567: Wrong result from a query with correlated subquery if ICP is allowed
-#
-CREATE TABLE t1 (a int, b int, INDEX idx(a));
-INSERT INTO t1 VALUES (9,0), (7,1), (1,9), (7,3), (2,1);
-CREATE TABLE t2 (a int, b int, INDEX idx(a));
-INSERT INTO t2 VALUES (2,1), (6,4), (7,6), (9,4);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (1,0), (1,1), (1,3);
-SELECT * FROM t3
-WHERE a = (SELECT COUNT(DISTINCT t2.b) FROM t1, t2
-WHERE t1.a = t2.a AND t2.a BETWEEN 7 AND 9
-AND t3.b = t1.b
-GROUP BY t1.b);
-a b
-1 0
-1 1
-1 3
-set @tmp_mdev567=@@optimizer_switch;
-set optimizer_switch='mrr=off';
-SELECT * FROM t3
-WHERE a = (SELECT COUNT(DISTINCT t2.b) FROM t1, t2
-WHERE t1.a = t2.a AND t2.a BETWEEN 7 AND 9
-AND t3.b = t1.b
-GROUP BY t1.b);
-a b
-1 0
-1 1
-1 3
-DROP TABLE t1,t2,t3;
-set optimizer_switch=@tmp_mdev567;
-#
-# MDEV-4996: degenerate OR formula in WHERE of a subquery
-#
-CREATE TABLE t1 (a int, c1 varchar(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (2,'x'), (8,'d');
-CREATE TABLE t2 (m int, n int, c2 varchar(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (0, 5, 'x'), (1, 4,'p');
-SELECT * FROM t1 WHERE c1 NOT IN (
-SELECT t2a.c2 FROM t2 AS t2a, t2 AS t2b, t2 AS t2c
-WHERE t2c.c2 = t2b.c2 AND ( t2a.m = t2b.n OR 0 ) AND
-( t2b.m != a OR t2b.m = t2a.m ));
-a c1
-2 x
-8 d
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE c1 NOT IN (
-SELECT t2a.c2 FROM t2 AS t2a, t2 AS t2b, t2 AS t2c
-WHERE t2c.c2 = t2b.c2 AND ( t2a.m = t2b.n OR 0 ) AND
-( t2b.m != a OR t2b.m = t2a.m ));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t2a ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t2b ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2c ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (incremental, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`c1` AS `c1` from `test`.`t1` where !<expr_cache><`test`.`t1`.`c1`,`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`c1`,<exists>(/* select#2 */ select `test`.`t2a`.`c2` from `test`.`t2` `t2a` join `test`.`t2` `t2b` join `test`.`t2` `t2c` where (`test`.`t2b`.`m` <> `test`.`t1`.`a` or `test`.`t2b`.`m` = `test`.`t2a`.`m`) and trigcond(<cache>(`test`.`t1`.`c1`) = `test`.`t2a`.`c2` or `test`.`t2a`.`c2` is null) and `test`.`t2c`.`c2` = `test`.`t2b`.`c2` and `test`.`t2b`.`n` = `test`.`t2a`.`m` having trigcond(`test`.`t2a`.`c2` is null))))
-DROP TABLE t1,t2;
-#
-# MDEV-614, also MDEV-536, also LP:1050806:
-# different result for a query using subquery between 5.5.25 and 5.5.27
-#
-CREATE TABLE `t1` (
-`node_uid` bigint(20) unsigned DEFAULT NULL,
-`date` datetime DEFAULT NULL,
-`mirror_date` datetime DEFAULT NULL,
-KEY `date` (`date`)
-) ENGINE=MyISAM;
-INSERT INTO `t1` VALUES (2085,'2012-01-01 00:00:00','2013-01-01 00:00:00');
-INSERT INTO `t1` VALUES (2084,'2012-02-01 00:00:00','2013-01-01 00:00:00');
-INSERT INTO `t1` VALUES (2088,'2012-03-01 00:00:00','2013-01-01 00:00:00');
-explain
-SELECT * FROM (
-SELECT node_uid, date, mirror_date, @result := 0 AS result
-FROM t1
-WHERE date < '2012-12-12 12:12:12'
- AND node_uid in (2085, 2084)
-ORDER BY mirror_date ASC
-) AS calculated_result;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED t1 range date date 6 NULL 2 Using index condition; Using where; Rowid-ordered scan; Using filesort
-SELECT * FROM (
-SELECT node_uid, date, mirror_date, @result := 0 AS result
-FROM t1
-WHERE date < '2012-12-12 12:12:12'
- AND node_uid in (2085, 2084)
-ORDER BY mirror_date ASC
-) AS calculated_result;
-node_uid date mirror_date result
-2085 2012-01-01 00:00:00 2013-01-01 00:00:00 0
-2084 2012-02-01 00:00:00 2013-01-01 00:00:00 0
-set @tmp_mdev614=@@optimizer_switch;
-set optimizer_switch='mrr=off';
-explain
-SELECT * FROM (
-SELECT node_uid, date, mirror_date, @result := 0 AS result
-FROM t1
-WHERE date < '2012-12-12 12:12:12'
- AND node_uid in (2085, 2084)
-ORDER BY mirror_date ASC
-) AS calculated_result;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED t1 range date date 6 NULL 2 Using index condition; Using where; Using filesort
-SELECT * FROM (
-SELECT node_uid, date, mirror_date, @result := 0 AS result
-FROM t1
-WHERE date < '2012-12-12 12:12:12'
- AND node_uid in (2085, 2084)
-ORDER BY mirror_date ASC
-) AS calculated_result;
-node_uid date mirror_date result
-2085 2012-01-01 00:00:00 2013-01-01 00:00:00 0
-2084 2012-02-01 00:00:00 2013-01-01 00:00:00 0
-set optimizer_switch=@tmp_mdev614;
-DROP TABLE t1;
-#
-# MDEV-4420: non-expensive single-value subquery used as
-# used as an access key to join a table
-#
-create table t1 (a varchar(3));
-insert into t1 values ('USA'), ('FRA');
-create table t2 select * from t1;
-insert into t2 values ('RUS');
-create table t3 select * from t2;
-create index idx on t3(a);
-explain extended
-select * from t1, t2 left join t3 on ( t2.a = t3.a )
-where t1.a = t2.a and ( t1.a = ( select min(a) from t1 ) or 0 );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t3 ref idx idx 6 func 2 100.00 Using where; Using index
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t2`.`a` AS `a`,`test`.`t3`.`a` AS `a` from `test`.`t1` join `test`.`t2` left join `test`.`t3` on(`test`.`t3`.`a` = `test`.`t1`.`a`) where `test`.`t1`.`a` = (/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1`) and `test`.`t2`.`a` = (/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1`)
-select * from t1, t2 left join t3 on ( t2.a = t3.a )
-where t1.a = t2.a and ( t1.a = ( select min(a) from t1 ) or 0 );
-a a a
-FRA FRA FRA
-drop table t1,t2,t3;
-#
-# MDEV-10148: Database crashes in the query to the View
-#
-CREATE TABLE t1 (
-key_code INT(11) NOT NULL,
-value_string VARCHAR(50) NULL DEFAULT NULL,
-PRIMARY KEY (key_code)
-) COLLATE='utf8_general_ci' ENGINE=InnoDB ;
-CREATE TABLE t2 (
-key_code INT(11) NOT NULL,
-target_date DATE NULL DEFAULT NULL,
-PRIMARY KEY (key_code)
-) COLLATE='utf8_general_ci' ENGINE=InnoDB ;
-CREATE TABLE t3 (
-now_date DATE NOT NULL,
-PRIMARY KEY (now_date)
-) COLLATE='utf8_general_ci' ENGINE=InnoDB ;
-CREATE VIEW v1
-AS
-SELECT
-B.key_code,
-B.target_date
-FROM
-t2 B INNER JOIN t3 C ON
-B.target_date = C.now_date
-;
-SET @s = 'SELECT A.* FROM t1 A WHERE A.key_code IN (SELECT key_code FROM v1)';
-PREPARE stmt FROM @s;
-EXECUTE stmt;
-key_code value_string
-EXECUTE stmt;
-key_code value_string
-DEALLOCATE PREPARE stmt;
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-set optimizer_switch=@subselect2_test_tmp;
-create table t1 (a int);
-create table t2 (a int);
-create table t3(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t2 select a from t1;
-insert into t3 select a from t1;
-select null in (select a from t1 where a < out3.a union select a from t2 where
-(select a from t3) +1 < out3.a+1) from t3 out3;
-ERROR 21000: Subquery returns more than 1 row
-drop table t1, t2, t3;
diff --git a/mysql-test/r/subselect3.result b/mysql-test/r/subselect3.result
deleted file mode 100644
index ca151daf146..00000000000
--- a/mysql-test/r/subselect3.result
+++ /dev/null
@@ -1,1547 +0,0 @@
-drop table if exists t0, t1, t2, t3, t4, t5, t11, t12, t21, t22;
-set @subselect3_tmp= @@optimizer_switch;
-set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on,semijoin_with_cache=on';
-set join_cache_level=1;
-create table t1 (oref int, grp int, ie int) ;
-insert into t1 (oref, grp, ie) values
-(1, 1, 1),
-(1, 1, 1),
-(1, 2, NULL),
-(2, 1, 3),
-(3, 1, 4),
-(3, 2, NULL);
-create table t2 (oref int, a int);
-insert into t2 values
-(1, 1),
-(2, 2),
-(3, 3),
-(4, NULL),
-(2, NULL);
-select a, oref, a in (select max(ie)
-from t1 where oref=t2.oref group by grp) Z from t2;
-a oref Z
-1 1 1
-2 2 0
-3 3 NULL
-NULL 4 0
-NULL 2 NULL
-explain extended
-select a, oref, a in (select max(ie)
-from t1 where oref=t2.oref group by grp) Z from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 5 100.00
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using temporary
-Warnings:
-Note 1276 Field or reference 'test.t2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`oref` AS `oref`,<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`oref`>(<in_optimizer>(`test`.`t2`.`a`,<exists>(/* select#2 */ select max(`test`.`t1`.`ie`) from `test`.`t1` where `test`.`t1`.`oref` = `test`.`t2`.`oref` group by `test`.`t1`.`grp` having trigcond(<cache>(`test`.`t2`.`a`) = <ref_null_helper>(max(`test`.`t1`.`ie`)))))) AS `Z` from `test`.`t2`
-explain extended
-select a, oref from t2
-where a in (select max(ie) from t1 where oref=t2.oref group by grp);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using temporary
-Warnings:
-Note 1276 Field or reference 'test.t2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`oref` AS `oref` from `test`.`t2` where <expr_cache><`test`.`t2`.`a`,`test`.`t2`.`oref`>(<in_optimizer>(`test`.`t2`.`a`,<exists>(/* select#2 */ select max(`test`.`t1`.`ie`) from `test`.`t1` where `test`.`t1`.`oref` = `test`.`t2`.`oref` group by `test`.`t1`.`grp` having <cache>(`test`.`t2`.`a`) = <ref_null_helper>(max(`test`.`t1`.`ie`)))))
-select a, oref, a in (
-select max(ie) from t1 where oref=t2.oref group by grp union
-select max(ie) from t1 where oref=t2.oref group by grp
-) Z from t2;
-a oref Z
-1 1 1
-2 2 0
-3 3 NULL
-NULL 4 0
-NULL 2 NULL
-create table t3 (a int);
-insert into t3 values (NULL), (NULL);
-flush status;
-select a in (select max(ie) from t1 where oref=4 group by grp) from t3;
-a in (select max(ie) from t1 where oref=4 group by grp)
-0
-0
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 11
-select ' ^ This must show 11' Z;
-Z
- ^ This must show 11
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch="partial_match_rowid_merge=off,partial_match_table_scan=off";
-explain extended select a in (select max(ie) from t1 where oref=4 group by grp) from t3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using temporary
-Warnings:
-Note 1003 /* select#1 */ select <expr_cache><`test`.`t3`.`a`>(<in_optimizer>(`test`.`t3`.`a`,<exists>(/* select#2 */ select max(`test`.`t1`.`ie`) from `test`.`t1` where `test`.`t1`.`oref` = 4 group by `test`.`t1`.`grp` having trigcond(<cache>(`test`.`t3`.`a`) = <ref_null_helper>(max(`test`.`t1`.`ie`)))))) AS `a in (select max(ie) from t1 where oref=4 group by grp)` from `test`.`t3`
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1, t2, t3;
-create table t1 (a int, oref int, key(a));
-insert into t1 values
-(1, 1),
-(1, NULL),
-(2, 3),
-(2, NULL),
-(3, NULL);
-insert into t1 values (5, 7), (8, 9), (4, 1);
-create table t2 (a int, oref int);
-insert into t2 values (1, 1), (2,2), (NULL, 3), (NULL, 4);
-select oref, a, a in (select a from t1 where oref=t2.oref) Z from t2;
-oref a Z
-1 1 1
-2 2 0
-3 NULL NULL
-4 NULL 0
-explain extended
-select oref, a, a in (select a from t1 where oref=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 100.00
-2 DEPENDENT SUBQUERY t1 index_subquery a a 5 func 2 100.00 Using where; Full scan on NULL key
-Warnings:
-Note 1276 Field or reference 'test.t2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`oref` AS `oref`,`test`.`t2`.`a` AS `a`,<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`oref`>(<in_optimizer>(`test`.`t2`.`a`,<exists>(<index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on a checking NULL where `test`.`t1`.`oref` = `test`.`t2`.`oref` having trigcond(`test`.`t1`.`a` is null))))) AS `Z` from `test`.`t2`
-flush status;
-select oref, a from t2 where a in (select a from t1 where oref=t2.oref);
-oref a
-1 1
-show status like '%Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 5
-delete from t2;
-insert into t2 values (NULL, 0),(NULL, 0), (NULL, 0), (NULL, 0);
-set optimizer_switch='subquery_cache=off';
-flush status;
-select oref, a, a in (select a from t1 where oref=t2.oref) Z from t2;
-oref a Z
-0 NULL 0
-0 NULL 0
-0 NULL 0
-0 NULL 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 41
-select 'No key lookups, seq reads: 29= 5 reads from t2 + 4 * 6 reads from t1.' Z;
-Z
-No key lookups, seq reads: 29= 5 reads from t2 + 4 * 6 reads from t1.
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1, t2;
-create table t1 (a int, b int, primary key (a));
-insert into t1 values (1,1), (3,1),(100,1);
-create table t2 (a int, b int);
-insert into t2 values (1,1),(2,1),(NULL,1),(NULL,0);
-select a,b, a in (select a from t1 where t1.b = t2.b) Z from t2 ;
-a b Z
-1 1 1
-2 1 0
-NULL 1 NULL
-NULL 0 0
-drop table t1, t2;
-create table t1 (a int, b int, key(a));
-insert into t1 values
-(0,0),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9);
-create table t2 like t1;
-insert into t2 select * from t1;
-update t2 set b=1;
-create table t3 (a int, oref int);
-insert into t3 values (1, 1), (NULL,1), (NULL,0);
-select a, oref,
-t3.a in (select t1.a from t1, t2 where t1.b=t2.a and t2.b=t3.oref) Z
-from t3;
-a oref Z
-1 1 1
-NULL 1 NULL
-NULL 0 0
-explain extended
-select a, oref,
-t3.a in (select t1.a from t1, t2 where t1.b=t2.a and t2.b=t3.oref) Z
-from t3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00
-2 DEPENDENT SUBQUERY t1 ref_or_null a a 5 func 4 100.00 Using where; Full scan on NULL key
-2 DEPENDENT SUBQUERY t2 ref a a 5 test.t1.b 1 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t3.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a`,`test`.`t3`.`oref` AS `oref`,<expr_cache><`test`.`t3`.`a`,`test`.`t3`.`oref`>(<in_optimizer>(`test`.`t3`.`a`,<exists>(/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`b` = `test`.`t3`.`oref` and trigcond(<cache>(`test`.`t3`.`a`) = `test`.`t1`.`a` or `test`.`t1`.`a` is null) and `test`.`t2`.`a` = `test`.`t1`.`b` having trigcond(`test`.`t1`.`a` is null)))) AS `Z` from `test`.`t3`
-drop table t1, t2, t3;
-create table t1 (a int NOT NULL, b int NOT NULL, key(a));
-insert into t1 values
-(0,0),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9);
-create table t2 like t1;
-insert into t2 select * from t1;
-update t2 set b=1;
-create table t3 (a int, oref int);
-insert into t3 values (1, 1), (NULL,1), (NULL,0);
-select a, oref,
-t3.a in (select t1.a from t1, t2 where t1.b=t2.a and t2.b=t3.oref) Z
-from t3;
-a oref Z
-1 1 1
-NULL 1 NULL
-NULL 0 0
-This must show a trig_cond:
-explain extended
-select a, oref,
-t3.a in (select t1.a from t1, t2 where t1.b=t2.a and t2.b=t3.oref) Z
-from t3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00
-2 DEPENDENT SUBQUERY t1 ref a a 4 func 2 100.00 Using where; Full scan on NULL key
-2 DEPENDENT SUBQUERY t2 ref a a 4 test.t1.b 1 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t3.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a`,`test`.`t3`.`oref` AS `oref`,<expr_cache><`test`.`t3`.`a`,`test`.`t3`.`oref`>(<in_optimizer>(`test`.`t3`.`a`,<exists>(/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`b` = `test`.`t3`.`oref` and trigcond(<cache>(`test`.`t3`.`a`) = `test`.`t1`.`a`) and `test`.`t2`.`a` = `test`.`t1`.`b`))) AS `Z` from `test`.`t3`
-drop table t1,t2,t3;
-create table t1 (oref int, grp int);
-insert into t1 (oref, grp) values
-(1, 1),
-(1, 1);
-create table t2 (oref int, a int);
-insert into t2 values
-(1, NULL),
-(2, NULL);
-select a, oref,
-a in (select count(*) from t1 group by grp having grp=t2.oref) Z from t2;
-a oref Z
-NULL 1 NULL
-NULL 2 0
-This must show a trig_cond:
-explain extended
-select a, oref,
-a in (select count(*) from t1 group by grp having grp=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary
-Warnings:
-Note 1276 Field or reference 't2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`oref` AS `oref`,<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`oref`>(<in_optimizer>(`test`.`t2`.`a`,<exists>(/* select#2 */ select count(0) from `test`.`t1` group by `test`.`t1`.`grp` having `test`.`t1`.`grp` = `test`.`t2`.`oref` and trigcond(<cache>(`test`.`t2`.`a`) = <ref_null_helper>(count(0)))))) AS `Z` from `test`.`t2`
-drop table t1, t2;
-create table t1 (a int, b int, primary key (a));
-insert into t1 values (1,1), (3,1),(100,1);
-create table t2 (a int, b int);
-insert into t2 values (1,1),(2,1),(NULL,1),(NULL,0);
-select a,b, a in (select a from t1 where t1.b = t2.b union select a from
-t1 where t1.b = t2.b) Z from t2 ;
-a b Z
-1 1 1
-2 1 0
-NULL 1 NULL
-NULL 0 0
-select a,b, a in (select a from t1 where t1.b = t2.b) Z from t2 ;
-a b Z
-1 1 1
-2 1 0
-NULL 1 NULL
-NULL 0 0
-drop table t1, t2;
-create table t3 (a int);
-insert into t3 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, oref int);
-insert into t2 values (NULL,1, 100), (NULL,2, 100);
-create table t1 (a int, b int, c int, key(a,b));
-insert into t1 select 2*A, 2*A, 100 from t3;
-explain extended select a,b, oref, (a,b) in (select a,b from t1 where c=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 index_subquery a a 5 func 2 100.00 Using where; Full scan on NULL key
-Warnings:
-Note 1276 Field or reference 'test.t2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`oref` AS `oref`,<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`b`,`test`.`t2`.`oref`>(<in_optimizer>((`test`.`t2`.`a`,`test`.`t2`.`b`),<exists>(<index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on a checking NULL where `test`.`t1`.`c` = `test`.`t2`.`oref` and trigcond(trigcond(<cache>(`test`.`t2`.`a`) = `test`.`t1`.`a` or `test`.`t1`.`a` is null)) and trigcond(trigcond(<cache>(`test`.`t2`.`b`) = `test`.`t1`.`b` or `test`.`t1`.`b` is null)) having trigcond(`test`.`t1`.`a` is null) and trigcond(`test`.`t1`.`b` is null))))) AS `Z` from `test`.`t2`
-select a,b, oref, (a,b) in (select a,b from t1 where c=t2.oref) Z from t2;
-a b oref Z
-NULL 1 100 0
-NULL 2 100 NULL
-create table t4 (x int);
-insert into t4 select A.a + 10*B.a from t1 A, t1 B;
-explain extended
-select a,b, oref,
-(a,b) in (select a,b from t1,t4 where c=t2.oref) Z
-from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 ref_or_null a a 5 func 2 100.00 Using where; Full scan on NULL key
-2 DEPENDENT SUBQUERY t4 ALL NULL NULL NULL NULL 100 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.t2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`oref` AS `oref`,<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`b`,`test`.`t2`.`oref`>(<in_optimizer>((`test`.`t2`.`a`,`test`.`t2`.`b`),<exists>(/* select#2 */ select `test`.`t1`.`a`,`test`.`t1`.`b` from `test`.`t1` join `test`.`t4` where `test`.`t1`.`c` = `test`.`t2`.`oref` and trigcond(trigcond(<cache>(`test`.`t2`.`a`) = `test`.`t1`.`a` or `test`.`t1`.`a` is null)) and trigcond(trigcond(<cache>(`test`.`t2`.`b`) = `test`.`t1`.`b` or `test`.`t1`.`b` is null)) having trigcond(`test`.`t1`.`a` is null) and trigcond(`test`.`t1`.`b` is null)))) AS `Z` from `test`.`t2`
-select a,b, oref,
-(a,b) in (select a,b from t1,t4 where c=t2.oref) Z
-from t2;
-a b oref Z
-NULL 1 100 0
-NULL 2 100 NULL
-drop table t1,t2,t3,t4;
-create table t1 (oref char(4), grp int, ie1 int, ie2 int);
-insert into t1 (oref, grp, ie1, ie2) values
-('aa', 10, 2, 1),
-('aa', 10, 1, 1),
-('aa', 20, 2, 1),
-('bb', 10, 3, 1),
-('cc', 10, 4, 2),
-('cc', 20, 3, 2),
-('ee', 10, 2, 1),
-('ee', 10, 1, 2),
-('ff', 20, 2, 2),
-('ff', 20, 1, 2);
-create table t2 (oref char(4), a int, b int);
-insert into t2 values
-('ee', NULL, 1),
-('bb', 2, 1),
-('ff', 2, 2),
-('cc', 3, NULL),
-('bb', NULL, NULL),
-('aa', 1, 1),
-('dd', 1, NULL);
-alter table t1 add index idx(ie1,ie2);
-select oref, a, b, (a,b) in (select ie1,ie2 from t1 where oref=t2.oref) Z from t2 where a=3 and b is null ;
-oref a b Z
-cc 3 NULL NULL
-insert into t2 values ('new1', 10,10);
-insert into t1 values ('new1', 1234, 10, NULL);
-select oref, a, b, (a,b) in (select ie1,ie2 from t1 where oref=t2.oref) Z from t2 where a=10 and b=10;
-oref a b Z
-new1 10 10 NULL
-explain extended
-select oref, a, b, (a,b) in (select ie1,ie2 from t1 where oref=t2.oref) Z from t2 where a=10 and b=10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 8 100.00 Using where
-2 DEPENDENT SUBQUERY t1 index_subquery idx idx 5 func 4 100.00 Using where; Full scan on NULL key
-Warnings:
-Note 1276 Field or reference 'test.t2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`oref` AS `oref`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`b`,`test`.`t2`.`oref`>(<in_optimizer>((`test`.`t2`.`a`,`test`.`t2`.`b`),<exists>(<index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on idx checking NULL where `test`.`t1`.`oref` = `test`.`t2`.`oref` and trigcond(trigcond(<cache>(`test`.`t2`.`a`) = `test`.`t1`.`ie1` or `test`.`t1`.`ie1` is null)) and trigcond(trigcond(<cache>(`test`.`t2`.`b`) = `test`.`t1`.`ie2` or `test`.`t1`.`ie2` is null)) having trigcond(`test`.`t1`.`ie1` is null) and trigcond(`test`.`t1`.`ie2` is null))))) AS `Z` from `test`.`t2` where `test`.`t2`.`a` = 10 and `test`.`t2`.`b` = 10
-drop table t1, t2;
-create table t1 (oref char(4), grp int, ie int);
-insert into t1 (oref, grp, ie) values
-('aa', 10, 2),
-('aa', 10, 1),
-('aa', 20, NULL),
-('bb', 10, 3),
-('cc', 10, 4),
-('cc', 20, NULL),
-('ee', 10, NULL),
-('ee', 10, NULL),
-('ff', 20, 2),
-('ff', 20, 1);
-create table t2 (oref char(4), a int);
-insert into t2 values
-('ee', NULL),
-('bb', 2),
-('ff', 2),
-('cc', 3),
-('aa', 1),
-('dd', NULL),
-('bb', NULL);
-select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
-oref a Z
-ee NULL NULL
-bb 2 0
-ff 2 1
-cc 3 NULL
-aa 1 1
-dd NULL 0
-bb NULL NULL
-select oref, a from t2 where a in (select ie from t1 where oref=t2.oref);
-oref a
-aa 1
-ff 2
-select oref, a from t2 where a not in (select ie from t1 where oref=t2.oref);
-oref a
-bb 2
-dd NULL
-select oref, a, a in (select min(ie) from t1 where oref=t2.oref group by grp) Z from t2;
-oref a Z
-ee NULL NULL
-bb 2 0
-ff 2 0
-cc 3 NULL
-aa 1 1
-dd NULL 0
-bb NULL NULL
-select oref, a from t2 where
-a in (select min(ie) from t1 where oref=t2.oref group by grp);
-oref a
-aa 1
-select oref, a from t2 where
-a not in (select min(ie) from t1 where oref=t2.oref group by grp);
-oref a
-bb 2
-ff 2
-dd NULL
-update t1 set ie=3 where oref='ff' and ie=1;
-select oref, a, a in (select min(ie) from t1 where oref=t2.oref group by
-grp) Z from t2;
-oref a Z
-ee NULL NULL
-bb 2 0
-ff 2 1
-cc 3 NULL
-aa 1 1
-dd NULL 0
-bb NULL NULL
-select oref, a from t2 where a in (select min(ie) from t1 where
-oref=t2.oref group by grp);
-oref a
-ff 2
-aa 1
-select oref, a from t2 where a not in (select min(ie) from t1 where
-oref=t2.oref group by grp);
-oref a
-bb 2
-dd NULL
-select oref, a, a in (select min(ie) from t1 where oref=t2.oref group by
-grp having min(ie) > 1) Z from t2;
-oref a Z
-ee NULL 0
-bb 2 0
-ff 2 1
-cc 3 0
-aa 1 0
-dd NULL 0
-bb NULL NULL
-select oref, a from t2 where a in (select min(ie) from t1 where
-oref=t2.oref group by grp having min(ie) > 1);
-oref a
-ff 2
-select oref, a from t2 where a not in (select min(ie) from t1 where
-oref=t2.oref group by grp having min(ie) > 1);
-oref a
-ee NULL
-bb 2
-cc 3
-aa 1
-dd NULL
-alter table t1 add index idx(ie);
-explain select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7
-2 DEPENDENT SUBQUERY t1 index_subquery idx idx 5 func 4 Using where; Full scan on NULL key
-select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
-oref a Z
-ee NULL NULL
-bb 2 0
-ff 2 1
-cc 3 NULL
-aa 1 1
-dd NULL 0
-bb NULL NULL
-select oref, a from t2 where a in (select ie from t1 where oref=t2.oref);
-oref a
-ff 2
-aa 1
-select oref, a from t2 where a not in (select ie from t1 where oref=t2.oref);
-oref a
-bb 2
-dd NULL
-alter table t1 drop index idx;
-alter table t1 add index idx(oref,ie);
-explain select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7
-2 DEPENDENT SUBQUERY t1 ref_or_null idx idx 10 test.t2.oref,func 4 Using where; Using index; Full scan on NULL key
-select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
-oref a Z
-ee NULL NULL
-bb 2 0
-ff 2 1
-cc 3 NULL
-aa 1 1
-dd NULL 0
-bb NULL NULL
-select oref, a from t2 where a in (select ie from t1 where oref=t2.oref);
-oref a
-ff 2
-aa 1
-select oref, a from t2 where a not in (select ie from t1 where oref=t2.oref);
-oref a
-bb 2
-dd NULL
-explain
-select oref, a,
-a in (select min(ie) from t1 where oref=t2.oref
-group by grp having min(ie) > 1) Z
-from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7
-2 DEPENDENT SUBQUERY t1 ref idx idx 5 test.t2.oref 2 Using where; Using temporary
-select oref, a,
-a in (select min(ie) from t1 where oref=t2.oref
-group by grp having min(ie) > 1) Z
-from t2;
-oref a Z
-ee NULL 0
-bb 2 0
-ff 2 1
-cc 3 0
-aa 1 0
-dd NULL 0
-bb NULL NULL
-select oref, a from t2 where a in (select min(ie) from t1 where oref=t2.oref
-group by grp having min(ie) > 1);
-oref a
-ff 2
-select oref, a from t2 where a not in (select min(ie) from t1 where oref=t2.oref
-group by grp having min(ie) > 1);
-oref a
-ee NULL
-bb 2
-cc 3
-aa 1
-dd NULL
-drop table t1,t2;
-create table t1 (oref char(4), grp int, ie1 int, ie2 int);
-insert into t1 (oref, grp, ie1, ie2) values
-('aa', 10, 2, 1),
-('aa', 10, 1, 1),
-('aa', 20, 2, 1),
-('bb', 10, 3, 1),
-('cc', 10, 4, 2),
-('cc', 20, 3, 2),
-('ee', 10, 2, 1),
-('ee', 10, 1, 2),
-('ff', 20, 2, 2),
-('ff', 20, 1, 2);
-create table t2 (oref char(4), a int, b int);
-insert into t2 values
-('ee', NULL, 1),
-('bb', 2, 1),
-('ff', 2, 2),
-('cc', 3, NULL),
-('bb', NULL, NULL),
-('aa', 1, 1),
-('dd', 1, NULL);
-select oref, a, b, (a,b) in (select ie1,ie2 from t1 where oref=t2.oref) Z from t2;
-oref a b Z
-ee NULL 1 NULL
-bb 2 1 0
-ff 2 2 1
-cc 3 NULL NULL
-bb NULL NULL NULL
-aa 1 1 1
-dd 1 NULL 0
-select oref, a, b from t2 where (a,b) in (select ie1,ie2 from t1 where oref=t2.oref);
-oref a b
-aa 1 1
-ff 2 2
-select oref, a, b from t2 where (a,b) not in (select ie1,ie2 from t1 where oref=t2.oref);
-oref a b
-bb 2 1
-dd 1 NULL
-select oref, a, b,
-(a,b) in (select min(ie1),max(ie2) from t1
-where oref=t2.oref group by grp) Z
-from t2;
-oref a b Z
-ee NULL 1 0
-bb 2 1 0
-ff 2 2 0
-cc 3 NULL NULL
-bb NULL NULL NULL
-aa 1 1 1
-dd 1 NULL 0
-select oref, a, b from t2 where
-(a,b) in (select min(ie1), max(ie2) from t1 where oref=t2.oref group by grp);
-oref a b
-aa 1 1
-select oref, a, b from t2 where
-(a,b) not in (select min(ie1), max(ie2) from t1 where oref=t2.oref group by grp);
-oref a b
-ee NULL 1
-bb 2 1
-ff 2 2
-dd 1 NULL
-alter table t1 add index idx(ie1,ie2);
-explain select oref, a, b, (a,b) in (select ie1,ie2 from t1 where oref=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7
-2 DEPENDENT SUBQUERY t1 index_subquery idx idx 5 func 4 Using where; Full scan on NULL key
-select oref, a, b, (a,b) in (select ie1,ie2 from t1 where oref=t2.oref) Z from t2;
-oref a b Z
-ee NULL 1 NULL
-bb 2 1 0
-ff 2 2 1
-cc 3 NULL NULL
-bb NULL NULL NULL
-aa 1 1 1
-dd 1 NULL 0
-select oref, a, b from t2 where (a,b) in (select ie1,ie2 from t1 where oref=t2.oref);
-oref a b
-ff 2 2
-aa 1 1
-select oref, a, b from t2 where (a,b) not in (select ie1,ie2 from t1 where oref=t2.oref);
-oref a b
-bb 2 1
-dd 1 NULL
-explain extended
-select oref, a, b, (a,b) in (select ie1,ie2 from t1 where oref=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7 100.00
-2 DEPENDENT SUBQUERY t1 index_subquery idx idx 5 func 4 100.00 Using where; Full scan on NULL key
-Warnings:
-Note 1276 Field or reference 'test.t2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`oref` AS `oref`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`b`,`test`.`t2`.`oref`>(<in_optimizer>((`test`.`t2`.`a`,`test`.`t2`.`b`),<exists>(<index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on idx checking NULL where `test`.`t1`.`oref` = `test`.`t2`.`oref` and trigcond(trigcond(<cache>(`test`.`t2`.`a`) = `test`.`t1`.`ie1` or `test`.`t1`.`ie1` is null)) and trigcond(trigcond(<cache>(`test`.`t2`.`b`) = `test`.`t1`.`ie2` or `test`.`t1`.`ie2` is null)) having trigcond(`test`.`t1`.`ie1` is null) and trigcond(`test`.`t1`.`ie2` is null))))) AS `Z` from `test`.`t2`
-drop table t1,t2;
-create table t1 (oref char(4), grp int, ie int primary key);
-insert into t1 (oref, grp, ie) values
-('aa', 10, 2),
-('aa', 10, 1),
-('bb', 10, 3),
-('cc', 10, 4),
-('cc', 20, 5),
-('cc', 10, 6);
-create table t2 (oref char(4), a int);
-insert into t2 values
-('ee', NULL),
-('bb', 2),
-('cc', 5),
-('cc', 2),
-('cc', NULL),
-('aa', 1),
-('bb', NULL);
-explain select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7
-2 DEPENDENT SUBQUERY t1 unique_subquery PRIMARY PRIMARY 4 func 1 Using where; Full scan on NULL key
-select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
-oref a Z
-ee NULL 0
-bb 2 0
-cc 5 1
-cc 2 0
-cc NULL NULL
-aa 1 1
-bb NULL NULL
-select oref, a from t2 where a in (select ie from t1 where oref=t2.oref);
-oref a
-cc 5
-aa 1
-select oref, a from t2 where a not in (select ie from t1 where oref=t2.oref);
-oref a
-ee NULL
-bb 2
-cc 2
-explain
-select oref, a, a in (select min(ie) from t1 where oref=t2.oref group by grp) Z from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 6 Using where; Using temporary
-select oref, a, a in (select min(ie) from t1 where oref=t2.oref group by grp) Z from t2;
-oref a Z
-ee NULL 0
-bb 2 0
-cc 5 1
-cc 2 0
-cc NULL NULL
-aa 1 1
-bb NULL NULL
-drop table t1,t2;
-create table t1 (a int, b int);
-insert into t1 values (0,0), (2,2), (3,3);
-create table t2 (a int, b int);
-insert into t2 values (1,1), (3,3);
-select a, b, (a,b) in (select a, min(b) from t2 group by a) Z from t1;
-a b Z
-0 0 0
-2 2 0
-3 3 1
-insert into t2 values (NULL,4);
-select a, b, (a,b) in (select a, min(b) from t2 group by a) Z from t1;
-a b Z
-0 0 0
-2 2 0
-3 3 1
-drop table t1,t2;
-CREATE TABLE t1 (a int, b INT, c CHAR(10) NOT NULL, PRIMARY KEY (a, b));
-INSERT INTO t1 VALUES (1,1,'a'), (1,2,'b'), (1,3,'c'), (1,4,'d'), (1,5,'e'),
-(2,1,'f'), (2,2,'g'), (2,3,'h'), (3,4,'i'),(3,3,'j'), (3,2,'k'), (3,1,'l'),
-(1,9,'m');
-CREATE TABLE t2 (a int, b INT, c CHAR(10) NOT NULL, PRIMARY KEY (a, b));
-INSERT INTO t2 SELECT * FROM t1;
-SELECT a, MAX(b), (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b))
-as test FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-SELECT * FROM t1 GROUP by t1.a
-HAVING (MAX(t1.b) > (SELECT MAX(t2.b) FROM t2 WHERE t2.c < t1.c
-HAVING MAX(t2.b+t1.a) < 10));
-a b c
-SELECT a,b,c FROM t1 WHERE b in (9,3,4) ORDER BY b,c;
-a b c
-1 3 c
-2 3 h
-3 3 j
-1 4 d
-3 4 i
-1 9 m
-SELECT a, MAX(b),
-(SELECT COUNT(DISTINCT t.c) FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b)
-LIMIT 1)
-as cnt,
-(SELECT t.b FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b) LIMIT 1)
-as t_b,
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b) LIMIT 1)
-as t_b,
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b) ORDER BY t.c LIMIT 1)
-as t_b
-FROM t1 GROUP BY a;
-a MAX(b) cnt t_b t_b t_b
-1 9 1 9 m m
-2 3 1 3 h h
-3 4 1 4 i i
-SELECT a, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b) LIMIT 1) as test
-FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-DROP TABLE t1, t2;
-set @@optimizer_switch="partial_match_rowid_merge=off,partial_match_table_scan=off";
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (b int, PRIMARY KEY(b));
-INSERT INTO t1 VALUES (1), (NULL), (4);
-INSERT INTO t2 VALUES (3), (1),(2), (5), (4), (7), (6);
-EXPLAIN EXTENDED
-SELECT a FROM t1, t2 WHERE a=b AND (b NOT IN (SELECT a FROM t1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 100.00 Using index
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`b` = `test`.`t1`.`a` and !<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` where trigcond(<cache>(`test`.`t2`.`b`) = `test`.`t1`.`a` or `test`.`t1`.`a` is null) having trigcond(`test`.`t1`.`a` is null))))
-SELECT a FROM t1, t2 WHERE a=b AND (b NOT IN (SELECT a FROM t1));
-a
-SELECT a FROM t1, t2 WHERE a=b AND (b NOT IN (SELECT a FROM t1 WHERE a > 4));
-a
-1
-4
-DROP TABLE t1,t2;
-CREATE TABLE t1 (id int);
-CREATE TABLE t2 (id int PRIMARY KEY);
-CREATE TABLE t3 (id int PRIMARY KEY, name varchar(10));
-INSERT INTO t1 VALUES (2), (NULL), (3), (1);
-INSERT INTO t2 VALUES (234), (345), (457);
-INSERT INTO t3 VALUES (222,'bbb'), (333,'ccc'), (111,'aaa');
-EXPLAIN
-SELECT * FROM t1
-WHERE t1.id NOT IN (SELECT t2.id FROM t2,t3
-WHERE t3.name='xxx' AND t2.id=t3.id);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2 eq_ref PRIMARY PRIMARY 4 func 1 Using where; Using index; Full scan on NULL key
-2 DEPENDENT SUBQUERY t3 eq_ref PRIMARY PRIMARY 4 test.t2.id 1 Using where
-SELECT * FROM t1
-WHERE t1.id NOT IN (SELECT t2.id FROM t2,t3
-WHERE t3.name='xxx' AND t2.id=t3.id);
-id
-2
-NULL
-3
-1
-SELECT (t1.id IN (SELECT t2.id FROM t2,t3
-WHERE t3.name='xxx' AND t2.id=t3.id)) AS x
-FROM t1;
-x
-0
-0
-0
-0
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a INT NOT NULL);
-INSERT INTO t1 VALUES (1),(-1), (65),(66);
-CREATE TABLE t2 (a INT UNSIGNED NOT NULL PRIMARY KEY);
-INSERT INTO t2 VALUES (65),(66);
-SELECT a FROM t1 WHERE a NOT IN (65,66);
-a
-1
--1
-SELECT a FROM t1 WHERE a NOT IN (SELECT a FROM t2);
-a
-1
--1
-EXPLAIN SELECT a FROM t1 WHERE a NOT IN (SELECT a FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2 unique_subquery PRIMARY PRIMARY 4 func 1 Using index; Using where
-DROP TABLE t1, t2;
-set @@optimizer_switch=@save_optimizer_switch;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES(1);
-CREATE TABLE t2 (placeholder CHAR(11));
-INSERT INTO t2 VALUES("placeholder");
-SELECT ROW(1, 2) IN (SELECT t1.a, 2) FROM t1 GROUP BY t1.a;
-ROW(1, 2) IN (SELECT t1.a, 2)
-1
-SELECT ROW(1, 2) IN (SELECT t1.a, 2 FROM t2) FROM t1 GROUP BY t1.a;
-ROW(1, 2) IN (SELECT t1.a, 2 FROM t2)
-1
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-CREATE TABLE t2 SELECT * FROM t1;
-SELECT 1 FROM t1 WHERE t1.a NOT IN (SELECT 1 FROM t1, t2 WHERE 0);
-1
-1
-1
-1
-DROP TABLE t1, t2;
-create table t1 (a int, b decimal(13, 3));
-insert into t1 values (1, 0.123);
-select a, (select max(b) from t1) into outfile "subselect.out.file.1" from t1;
-delete from t1;
-load data infile "subselect.out.file.1" into table t1;
-select * from t1;
-a b
-1 0.123
-drop table t1;
-CREATE TABLE t1 (
-pk INT PRIMARY KEY,
-int_key INT,
-varchar_key VARCHAR(5) UNIQUE,
-varchar_nokey VARCHAR(5)
-);
-INSERT INTO t1 VALUES (9, 7,NULL,NULL), (10,8,'p' ,'p');
-SELECT varchar_nokey
-FROM t1
-WHERE NULL NOT IN (
-SELECT INNR.pk FROM t1 AS INNR2
-LEFT JOIN t1 AS INNR ON ( INNR2.int_key = INNR.int_key )
-WHERE INNR.varchar_key > 'n{'
-);
-varchar_nokey
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (11);
-# 2nd and 3rd columns should be same
-SELECT a, ROW(11, 12) = (SELECT a, 22), ROW(11, 12) IN (SELECT a, 22) FROM t1 GROUP BY t1.a;
-a ROW(11, 12) = (SELECT a, 22) ROW(11, 12) IN (SELECT a, 22)
-1 0 0
-2 0 0
-11 0 0
-SELECT a, ROW(11, 12) = (SELECT a, 12), ROW(11, 12) IN (SELECT a, 12) FROM t1 GROUP BY t1.a;
-a ROW(11, 12) = (SELECT a, 12) ROW(11, 12) IN (SELECT a, 12)
-1 0 0
-2 0 0
-11 1 1
-SELECT a, ROW(11, 12) = (SELECT a, 22), ROW(11, 12) IN (SELECT a, 22) FROM t1;
-a ROW(11, 12) = (SELECT a, 22) ROW(11, 12) IN (SELECT a, 22)
-1 0 0
-2 0 0
-11 0 0
-SELECT a, ROW(11, 12) = (SELECT a, 12), ROW(11, 12) IN (SELECT a, 12) FROM t1;
-a ROW(11, 12) = (SELECT a, 12) ROW(11, 12) IN (SELECT a, 12)
-1 0 0
-2 0 0
-11 1 1
-SELECT a AS x, ROW(11, 12) = (SELECT MAX(x), 22), ROW(11, 12) IN (SELECT MAX(x), 22) FROM t1;
-x ROW(11, 12) = (SELECT MAX(x), 22) ROW(11, 12) IN (SELECT MAX(x), 22)
-1 0 0
-2 0 0
-11 0 0
-# 2nd and 3rd columns should be same
-EXPLAIN SELECT a AS x, ROW(11, 12) = (SELECT MAX(x), 12), ROW(11, 12) IN (SELECT MAX(x), 12) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-3 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-SELECT a AS x, ROW(11, 12) = (SELECT MAX(x), 12), ROW(11, 12) IN (SELECT MAX(x), 12) FROM t1;
-x ROW(11, 12) = (SELECT MAX(x), 12) ROW(11, 12) IN (SELECT MAX(x), 12)
-1 0 0
-2 0 0
-11 1 1
-DROP TABLE t1;
-# both columns should be same
-SELECT ROW(1,2) = (SELECT NULL, NULL), ROW(1,2) IN (SELECT NULL, NULL);
-ROW(1,2) = (SELECT NULL, NULL) ROW(1,2) IN (SELECT NULL, NULL)
-NULL NULL
-SELECT ROW(1,2) = (SELECT 1, NULL), ROW(1,2) IN (SELECT 1, NULL);
-ROW(1,2) = (SELECT 1, NULL) ROW(1,2) IN (SELECT 1, NULL)
-NULL NULL
-SELECT ROW(1,2) = (SELECT NULL, 2), ROW(1,2) IN (SELECT NULL, 2);
-ROW(1,2) = (SELECT NULL, 2) ROW(1,2) IN (SELECT NULL, 2)
-NULL NULL
-SELECT ROW(1,2) = (SELECT NULL, 1), ROW(1,2) IN (SELECT NULL, 1);
-ROW(1,2) = (SELECT NULL, 1) ROW(1,2) IN (SELECT NULL, 1)
-0 0
-SELECT ROW(1,2) = (SELECT 1, 1), ROW(1,2) IN (SELECT 1, 1);
-ROW(1,2) = (SELECT 1, 1) ROW(1,2) IN (SELECT 1, 1)
-0 0
-SELECT ROW(1,2) = (SELECT 1, 2), ROW(1,2) IN (SELECT 1, 2);
-ROW(1,2) = (SELECT 1, 2) ROW(1,2) IN (SELECT 1, 2)
-1 1
-CREATE TABLE t1 (a INT, b INT, c INT);
-INSERT INTO t1 VALUES (1,1,1), (1,1,1);
-EXPLAIN EXTENDED
-SELECT c FROM
-( SELECT
-(SELECT COUNT(a) FROM
-(SELECT COUNT(b) FROM t1) AS x GROUP BY c
-) FROM t1 GROUP BY b
-) AS y;
-ERROR 42S22: Unknown column 'c' in 'field list'
-SHOW WARNINGS;
-Level Code Message
-Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #2
-Note 1981 Aggregate function 'count()' of SELECT #3 belongs to SELECT #2
-Note 1276 Field or reference 'test.t1.c' of SELECT #3 was resolved in SELECT #2
-Error 1054 Unknown column 'c' in 'field list'
-DROP TABLE t1;
-End of 5.0 tests
-#
-# BUG#36896: Server crash on SELECT FROM DUAL
-#
-create table t1 (a int);
-select 1 as res from dual where (1) in (select * from t1);
-res
-drop table t1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (
-a int(11) default null,
-b int(11) default null,
-key (a)
-);
-insert into t1 select A.a+10*(B.a+10*C.a),A.a+10*(B.a+10*C.a) from t0 A, t0 B, t0 C;
-create table t2 (a int(11) default null);
-insert into t2 values (0),(1);
-create table t3 (a int(11) default null);
-insert into t3 values (0),(1);
-create table t4 (a int(11) default null);
-insert into t4 values (0),(1);
-create table t5 (a int(11) default null);
-insert into t5 values (0),(1),(0),(1);
-select * from t2, t3
-where
-t2.a < 10 and
-t3.a+1 = 2 and
-t3.a in (select t1.b from t1
-where t1.a+1=t1.a+1 and
-t1.a < (select t4.a+10
-from t4, t5 limit 2));
-ERROR 21000: Subquery returns more than 1 row
-drop table t0, t1, t2, t3, t4, t5;
-#
-# BUG#48177 - SELECTs with NOT IN subqueries containing NULL
-# values return too many records
-#
-CREATE TABLE t1 (
-i1 int DEFAULT NULL,
-i2 int DEFAULT NULL
-) ;
-INSERT INTO t1 VALUES (1, NULL);
-INSERT INTO t1 VALUES (2, 3);
-INSERT INTO t1 VALUES (4, NULL);
-INSERT INTO t1 VALUES (4, 0);
-INSERT INTO t1 VALUES (NULL, NULL);
-CREATE TABLE t2 (
-i1 int DEFAULT NULL,
-i2 int DEFAULT NULL
-) ;
-INSERT INTO t2 VALUES (4, NULL);
-INSERT INTO t2 VALUES (5, 0);
-
-Data in t1
-SELECT i1, i2 FROM t1;
-i1 i2
-1 NULL
-2 3
-4 NULL
-4 0
-NULL NULL
-
-Data in subquery (should be filtered out)
-SELECT i1, i2 FROM t2 ORDER BY i1;
-i1 i2
-4 NULL
-5 0
-FLUSH STATUS;
-set @save_optimizer_switch2=@@optimizer_switch;
-set optimizer_switch='subquery_cache=off';
-
-SELECT i1, i2
-FROM t1
-WHERE (i1, i2)
-NOT IN (SELECT i1, i2 FROM t2);
-i1 i2
-1 NULL
-2 3
-
-# Check that the subquery only has to be evaluated once
-# for all-NULL values even though there are two (NULL,NULL) records
-# Baseline:
-SHOW STATUS LIKE '%Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 18
-
-INSERT INTO t1 VALUES (NULL, NULL);
-FLUSH STATUS;
-
-SELECT i1, i2
-FROM t1
-WHERE (i1, i2)
-NOT IN (SELECT i1, i2 FROM t2);
-i1 i2
-1 NULL
-2 3
-
-# Handler_read_rnd_next should be one more than baseline
-# (read record from t1, but do not read from t2)
-SHOW STATUS LIKE '%Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 19
-set @@optimizer_switch=@save_optimizer_switch2;
-DROP TABLE t1,t2;
-End of 5.1 tests
-CREATE TABLE t1 (
-a int(11) NOT NULL,
-b int(11) NOT NULL,
-c datetime default NULL,
-PRIMARY KEY (a),
-KEY idx_bc (b,c)
-);
-INSERT INTO t1 VALUES
-(406989,67,'2006-02-23 17:08:46'), (150078,67,'2005-10-26 11:17:45'),
-(406993,67,'2006-02-27 11:20:57'), (245655,67,'2005-12-08 15:59:08'),
-(406994,67,'2006-02-27 11:26:46'), (256,67,NULL),
-(398341,67,'2006-02-20 04:48:44'), (254,67,NULL),(1120,67,NULL),
-(406988,67,'2006-02-23 17:07:22'), (255,67,NULL),
-(398340,67,'2006-02-20 04:38:53'),(406631,67,'2006-02-23 10:49:42'),
-(245653,67,'2005-12-08 15:59:07'),(406992,67,'2006-02-24 16:47:18'),
-(245654,67,'2005-12-08 15:59:08'),(406995,67,'2006-02-28 11:55:00'),
-(127261,67,'2005-10-13 12:17:58'),(406991,67,'2006-02-24 16:42:32'),
-(245652,67,'2005-12-08 15:58:27'),(398545,67,'2006-02-20 04:53:13'),
-(154504,67,'2005-10-28 11:53:01'),(9199,67,NULL),(1,67,'2006-02-23 15:01:35'),
-(223456,67,NULL),(4101,67,NULL),(1133,67,NULL),
-(406990,67,'2006-02-23 18:01:45'),(148815,67,'2005-10-25 15:34:17'),
-(148812,67,'2005-10-25 15:30:01'),(245651,67,'2005-12-08 15:58:27'),
-(154503,67,'2005-10-28 11:52:38');
-create table t11 select * from t1 where b = 67 AND (c IS NULL OR c > NOW()) order by 3 asc;
-create table t12 select * from t1 where b = 67 AND (c IS NULL OR c > NOW()) order by 3 desc;
-create table t21 select * from t1 where b = 67 AND (c IS NULL OR c > '2005-12-08') order by 3 asc;
-create table t22 select * from t1 where b = 67 AND (c IS NULL OR c > '2005-12-08') order by 3 desc;
-set @@optimizer_switch=@save_optimizer_switch;
-set @@optimizer_switch='materialization=off';
-update t22 set c = '2005-12-08 15:58:27' where a = 255;
-explain select t21.* from t21,t22 where t21.a = t22.a and
-t22.a in (select t12.a from t11, t12 where t11.a in(255,256) and t11.a = t12.a and t11.c is null) and t22.c is null order by t21.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t11 ALL NULL NULL NULL NULL 8 Using where; Start temporary; Using temporary; Using filesort
-1 PRIMARY t12 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t22 ALL NULL NULL NULL NULL 26 Using where; End temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t21 ALL NULL NULL NULL NULL 26 Using where; Using join buffer (flat, BNL join)
-select t21.* from t21,t22 where t21.a = t22.a and
-t22.a in (select t12.a from t11, t12 where t11.a in(255,256) and t11.a = t12.a and t11.c is null) and t22.c is null order by t21.a;
-a b c
-256 67 NULL
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1, t11, t12, t21, t22;
-create table t1(a int);
-insert into t1 values (0),(1);
-set @@optimizer_switch='firstmatch=off,materialization=off';
-explain
-select (select max(Y.a) from t1 Y where a in (select a from t1 Z) and a < X.a) as subq from t1 X;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY X ALL NULL NULL NULL NULL 2
-2 DEPENDENT SUBQUERY Y ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY Z ALL NULL NULL NULL NULL 2 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-select (select max(Y.a) from t1 Y where a in (select a from t1 Z) and a < X.a) as subq from t1 X;
-subq
-NULL
-0
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 as select * from t0;
-insert into t1 select a+10 from t0;
-set @@optimizer_switch='firstmatch=off,materialization=off';
-insert into t0 values(2);
-explain select * from t1 where 2 in (select a from t0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 11 Using where; Start temporary; End temporary
-1 PRIMARY t1 ALL NULL NULL NULL NULL 20 Using join buffer (flat, BNL join)
-select * from t1 where 2 in (select a from t0);
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-set @@optimizer_switch=@save_optimizer_switch;
-set @@optimizer_switch='materialization=off';
-explain select * from t1 where 2 in (select a from t0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 11 Using where; FirstMatch
-1 PRIMARY t1 ALL NULL NULL NULL NULL 20 Using join buffer (flat, BNL join)
-select * from t1 where 2 in (select a from t0);
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-set @@optimizer_switch=@save_optimizer_switch;
-set @@optimizer_switch=@save_optimizer_switch;
-set @@optimizer_switch='materialization=off';
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-explain select * from (select a from t0) X where a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 11
-1 PRIMARY t1 ALL NULL NULL NULL NULL 20 Using where; FirstMatch(<derived2>); Using join buffer (flat, BNL join)
-2 DERIVED t0 ALL NULL NULL NULL NULL 11
-drop table t0, t1;
-set optimizer_switch=@tmp_optimizer_switch;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (kp1 int, kp2 int, c int, filler char(100), key(kp1, kp2));
-insert into t1 select A.a+10*(B.a+10*C.a), 0, 0, 'filler' from t0 A, t0 B, t0 C;
-insert into t1 select * from t1 where kp1 < 20;
-create table t3 (a int);
-insert into t3 select A.a + 10*B.a from t0 A, t0 B;
-explain select * from t3 where a in (select kp1 from t1 where kp1<20);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range kp1 kp1 5 NULL 48 Using where; Using index; LooseScan
-1 PRIMARY t3 ALL NULL NULL NULL NULL 100 Using where; Using join buffer (flat, BNL join)
-create table t4 (pk int primary key);
-insert into t4 select a from t3;
-explain select * from t3 where a in (select t1.kp1 from t1,t4 where kp1<20
-and t4.pk=t1.c);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 100 Using where
-1 PRIMARY t1 ref kp1 kp1 5 test.t3.a 1 Using where
-1 PRIMARY t4 eq_ref PRIMARY PRIMARY 4 test.t1.c 1 Using index; FirstMatch(t3)
-drop table t1, t3, t4;
-set @@optimizer_switch=@save_optimizer_switch;
-create table t1 (a int) as select * from t0 where a < 5;
-set @save_max_heap_table_size=@@max_heap_table_size;
-set @@optimizer_switch='firstmatch=off,materialization=off';
-set @@max_heap_table_size= 16384;
-explain select count(*) from t0 A, t0 B, t0 C, t0 D where D.a in (select a from t1 E where a+1 < 10000 + A.a + B.a +C.a+D.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 10
-1 PRIMARY B ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-1 PRIMARY E ALL NULL NULL NULL NULL 5 Start temporary; Using join buffer (flat, BNL join)
-1 PRIMARY D ALL NULL NULL NULL NULL 10 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY C ALL NULL NULL NULL NULL 10 Using where; End temporary; Using join buffer (flat, BNL join)
-flush status;
-select count(*) from t0 A, t0 B, t0 C, t0 D where D.a in (select a from t1 E where a+1 < 10000 + A.a + B.a +C.a+D.a);
-count(*)
-5000
-show status like 'Created_tmp_disk_tables';
-Variable_name Value
-Created_tmp_disk_tables 1
-set @save_max_heap_table_size=@@max_heap_table_size;
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t0, t1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2(a int);
-insert into t2 values (1),(2);
-create table t3 ( a int , filler char(100), key(a));
-insert into t3 select A.a + 10*B.a, 'filler' from t0 A, t0 B;
-explain select * from t3 where a in (select a from t2) and (a > 5 or a < 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2
-1 PRIMARY t3 ref a a 5 test.t2.a 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using where
-select * from t3 where a in (select a from t2);
-a filler
-1 filler
-2 filler
-drop table t0, t2, t3;
-set @@optimizer_switch='firstmatch=off,materialization=off';
-create table t1 (a date);
-insert into t1 values ('2008-01-01'),('2008-01-01'),('2008-02-01'),('2008-02-01');
-create table t2 (a int);
-insert into t2 values (1),(2);
-create table t3 (a char(10));
-insert into t3 select * from t1;
-insert into t3 values (1),(2);
-explain select * from t2 where a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-explain select * from t2 where a in (select a from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-explain select * from t2 where a in (select a from t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY t3 ALL NULL NULL NULL NULL 6 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-explain select * from t1 where a in (select a from t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-1 PRIMARY t3 ALL NULL NULL NULL NULL 6 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-drop table t1, t2, t3;
-create table t1 (a decimal);
-insert into t1 values (1),(2);
-explain select * from t1 where a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-drop table t1;
-set @@optimizer_switch=@save_optimizer_switch;
-set @@optimizer_switch=@save_optimizer_switch;
-set @@optimizer_switch='materialization=off';
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 as select * from t1;
-create table t3 (a int, b int, filler char(100), key(a));
-insert into t3 select A.a + 10*B.a, A.a + 10*B.a, 'filler' from t1 A, t1 B, t1 C;
-explain select * from t1, t3 where t3.a in (select a from t2) and (t3.a < 10 or t3.a >30) and t1.a =3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 10 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 10 Using where; Start temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t3 ref a a 5 test.t2.a 10 End temporary
-explain select straight_join * from t1 A, t1 B where A.a in (select a from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 10 Using where
-1 PRIMARY B ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 10 Using where
-explain select * from t2 where a in (select straight_join A.a from t1 A, t1 B);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY A ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY B ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-explain select * from t2 where a in (select straight_join A.a from t1 A, t1 B);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY A ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY B ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-explain select straight_join * from t2 X, t2 Y
-where X.a in (select straight_join A.a from t1 A, t1 B);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY X ALL NULL NULL NULL NULL 10 Using where
-1 PRIMARY Y ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY A ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY B ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-create table t0 (a int, b int);
-insert into t0 values(1,1);
-explain select * from t0, t3 where t3.a in (select a from t2) and (t3.a < 10 or t3.a >30);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 10 Using where; Start temporary
-1 PRIMARY t3 ref a a 5 test.t2.a 10 End temporary
-create table t4 as select a as x, a as y from t1;
-explain select * from t0, t3 where (t3.a, t3.b) in (select x,y from t4) and (t3.a < 10 or t3.a >30);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 system NULL NULL NULL NULL 1
-1 PRIMARY t4 ALL NULL NULL NULL NULL 10 Using where; Start temporary
-1 PRIMARY t3 ref a a 5 test.t4.x 10 Using where; End temporary
-drop table t0,t1,t2,t3,t4;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b int, filler char(100), key(a,b));
-insert into t1 select A.a, B.a, 'filler' from t0 A, t0 B;
-create table t2 as select * from t1;
-explain select * from t2 where a in (select b from t1 where a=3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref a a 5 const 8 Using index; LooseScan
-1 PRIMARY t2 ALL NULL NULL NULL NULL 100 Using where; Using join buffer (flat, BNL join)
-explain select * from t2 where (b,a) in (select a,b from t1 where a=3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref a a 5 const 8 Using index; LooseScan
-1 PRIMARY t2 ALL NULL NULL NULL NULL 100 Using where; Using join buffer (flat, BNL join)
-drop table t1,t2;
-set @@optimizer_switch=@save_optimizer_switch;
-create table t1 (a int, b int);
-insert into t1 select a,a from t0;
-create table t2 (a int, b int);
-insert into t2 select A.a + 10*B.a, A.a + 10*B.a from t0 A, t0 B;
-set @@optimizer_switch='firstmatch=off,materialization=off';
-explain select * from t1 where (a,b) in (select a,b from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 10
-1 PRIMARY t2 ALL NULL NULL NULL NULL 100 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-set @save_optimizer_search_depth=@@optimizer_search_depth;
-set @@optimizer_search_depth=63;
-Warnings:
-Warning 1292 Truncated incorrect optimizer_search_depth value: '63'
-explain select * from t1 where (a,b) in (select a,b from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 10
-1 PRIMARY t2 ALL NULL NULL NULL NULL 100 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-set @@optimizer_search_depth=@save_optimizer_search_depth;
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t0, t1, t2;
-set @@optimizer_switch='materialization=off';
-create table t0 (a decimal(4,2));
-insert into t0 values (10.24), (22.11);
-create table t1 as select * from t0;
-insert into t1 select * from t0;
-explain select * from t0 where a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; FirstMatch(t0); Using join buffer (flat, BNL join)
-select * from t0 where a in (select a from t1);
-a
-10.24
-22.11
-drop table t0, t1;
-create table t0(a date);
-insert into t0 values ('2008-01-01'),('2008-02-02');
-create table t1 as select * from t0;
-insert into t1 select * from t0;
-explain select * from t0 where a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; FirstMatch(t0); Using join buffer (flat, BNL join)
-select * from t0 where a in (select a from t1);
-a
-2008-01-01
-2008-02-02
-drop table t0, t1;
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 as select a as a, a as b, a as c from t0 where a < 3;
-create table t2 as select a as a, a as b from t0 where a < 3;
-insert into t2 select * from t2;
-explain select * from t1 where (a,b,c) in (select X.a, Y.a, Z.a from t2 X, t2 Y, t2 Z where X.b=33);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-1 PRIMARY X ALL NULL NULL NULL NULL 6 Using where
-1 PRIMARY Y ALL NULL NULL NULL NULL 6 Using where
-1 PRIMARY Z ALL NULL NULL NULL NULL 6 Using where; FirstMatch(t1)
-drop table t0,t1,t2;
-set @@optimizer_switch=@save_optimizer_switch;
-
-BUG#37842: Assertion in DsMrr_impl::dsmrr_init, at handler.cc:4307
-
-CREATE TABLE t1 (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`int_key` int(11) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `int_key` (`int_key`)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,9),(2,3),(3,8),(4,6),(5,9),(6,5),(7,5),(8,9),(9,1),(10,10);
-SELECT `pk` FROM t1 AS OUTR WHERE `int_key` = ALL (
-SELECT `int_key` FROM t1 AS INNR WHERE INNR . `pk` >= 9
-);
-pk
-DROP TABLE t1;
-
-BUG#40118 Crash when running Batched Key Access and requiring one match for each key
-
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, key(a));
-insert into t1 select * from t0;
-alter table t1 add b int not null, add filler char(200);
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-set @save_join_cache_level=@@join_cache_level;
-set join_cache_level=6;
-select * from t0 where t0.a in (select t1.a from t1 where t1.b=0);
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-set join_cache_level=@save_join_cache_level;
-drop table t0, t1;
-#
-# BUG#32665 Query with dependent subquery is too slow
-#
-create table t1 (
-idIndividual int primary key
-);
-insert into t1 values (1),(2);
-create table t2 (
-idContact int primary key,
-contactType int,
-idObj int
-);
-insert into t2 values (1,1,1),(2,2,2),(3,3,3);
-create table t3 (
-idAddress int primary key,
-idContact int,
-postalStripped varchar(100)
-);
-insert into t3 values (1,1, 'foo'), (2,2,'bar');
-The following must be converted to a semi-join:
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch='materialization=off';
-explain extended SELECT a.idIndividual FROM t1 a
-WHERE a.idIndividual IN
-( SELECT c.idObj FROM t3 cona
-INNER JOIN t2 c ON c.idContact=cona.idContact
-WHERE cona.postalStripped='T2H3B2'
- );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY cona ALL NULL NULL NULL NULL 2 100.00 Using where; Start temporary
-1 PRIMARY c eq_ref PRIMARY PRIMARY 4 test.cona.idContact 1 100.00 Using where
-1 PRIMARY a eq_ref PRIMARY PRIMARY 4 test.c.idObj 1 100.00 Using index; End temporary
-Warnings:
-Note 1003 select `test`.`a`.`idIndividual` AS `idIndividual` from `test`.`t1` `a` semi join (`test`.`t3` `cona` join `test`.`t2` `c`) where `test`.`cona`.`postalStripped` = 'T2H3B2' and `test`.`a`.`idIndividual` = `test`.`c`.`idObj` and `test`.`c`.`idContact` = `test`.`cona`.`idContact`
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1,t2,t3;
-#
-# BUG#47367 Crash in Name_resolution_context::process_error
-#
-SET SESSION optimizer_switch = 'semijoin=off';
-CREATE TABLE t1 (f1 INTEGER);
-CREATE TABLE t2 LIKE t1;
-CREATE PROCEDURE p1 () BEGIN SELECT f1 FROM t1 WHERE f1 IN (SELECT f1 FROM t2); END|
-CALL p1;
-f1
-ALTER TABLE t2 CHANGE COLUMN f1 my_column INT;
-CALL p1;
-f1
-DROP PROCEDURE p1;
-# Restore the original column list of table t2:
-ALTER TABLE t2 CHANGE COLUMN my_column f1 INT;
-SET SESSION optimizer_switch = 'semijoin=on';
-# Recreate procedure so that we eliminate any caching effects
-CREATE PROCEDURE p1 () BEGIN SELECT f1 FROM t1 WHERE f1 IN (SELECT f1 FROM t2); END|
-CALL p1;
-f1
-ALTER TABLE t2 CHANGE COLUMN f1 my_column INT;
-CALL p1;
-ERROR 42S22: Unknown column 'f1' in 'where clause'
-DROP PROCEDURE p1;
-DROP TABLE t1, t2;
-#
-# fix of lp:824425 (prohibiting subqueries in row in
-# left part of IN/ALL/ANY)
-#
-CREATE TABLE t1 ( a int) ;
-INSERT INTO t1 VALUES (20),(30);
-CREATE TABLE t2 (a int) ;
-INSERT INTO t2 VALUES (3),(9);
-CREATE TABLE t3 ( a int, b int) ;
-INSERT INTO t3 VALUES (20,5),(30,6);
-set @optimizer_switch_save=@@optimizer_switch;
-SET SESSION optimizer_switch='semijoin=OFF,in_to_exists=OFF,materialization=ON,partial_match_rowid_merge=ON,partial_match_table_scan=OFF';
-SELECT * FROM t1
-WHERE (
-( SELECT a FROM t2 WHERE a = 9 )
-) NOT IN (
-SELECT b
-FROM t3
-);
-a
-20
-30
-explain extended
-SELECT * FROM t1
-WHERE (
-( SELECT a FROM t2 WHERE a = 9 )
-) NOT IN (
-SELECT b
-FROM t3
-);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where 1
-SELECT * FROM t1
-WHERE (
-( SELECT a FROM t2 WHERE a = 9 ),
-( SELECT a FROM t2 WHERE a = 3 )
-) NOT IN (
-SELECT b , a
-FROM t3
-);
-ERROR 42000: This version of MariaDB doesn't yet support 'SUBQUERY in ROW in left expression of IN/ALL/ANY'
-set optimizer_switch=@optimizer_switch_save;
-drop table t1,t2,t3;
-End of 5.3 tests
-#
-# BUG#48920: COUNT DISTINCT returns 1 for NULL values when in a subquery
-# in the select list
-#
-
-CREATE TABLE t1 (
-i int(11) DEFAULT NULL,
-v varchar(1) DEFAULT NULL
-);
-
-INSERT INTO t1 VALUES (8,'v');
-INSERT INTO t1 VALUES (9,'r');
-INSERT INTO t1 VALUES (NULL,'y');
-
-CREATE TABLE t2 (
-i int(11) DEFAULT NULL,
-v varchar(1) DEFAULT NULL,
-KEY i_key (i)
-);
-
-INSERT INTO t2 VALUES (NULL,'r');
-INSERT INTO t2 VALUES (0,'c');
-INSERT INTO t2 VALUES (0,'o');
-INSERT INTO t2 VALUES (2,'v');
-INSERT INTO t2 VALUES (7,'c');
-
-SELECT i, v, (SELECT COUNT(DISTINCT i)
-FROM t1
-WHERE v = t2.v) as subsel
-FROM t2;
-i v subsel
-NULL r 1
-0 c 0
-0 o 0
-2 v 1
-7 c 0
-
-EXPLAIN EXTENDED
-SELECT i, v, (SELECT COUNT(DISTINCT i)
-FROM t1
-WHERE v = t2.v) as subsel
-FROM t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 5 100.00
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t2.v' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`i` AS `i`,`test`.`t2`.`v` AS `v`,<expr_cache><`test`.`t2`.`v`>((/* select#2 */ select count(distinct `test`.`t1`.`i`) from `test`.`t1` where `test`.`t1`.`v` = `test`.`t2`.`v`)) AS `subsel` from `test`.`t2`
-DROP TABLE t1,t2;
-End of 5.6 tests
-set @@optimizer_switch=@subselect3_tmp;
diff --git a/mysql-test/r/subselect3_jcl6.result b/mysql-test/r/subselect3_jcl6.result
deleted file mode 100644
index adb3ec80394..00000000000
--- a/mysql-test/r/subselect3_jcl6.result
+++ /dev/null
@@ -1,1563 +0,0 @@
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch='optimize_join_buffer_size=on';
-set @@optimizer_switch='semijoin_with_cache=on';
-set @@optimizer_switch='outer_join_with_cache=on';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set join_cache_level=6;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 6
-set @join_cache_level_for_subselect3_test=@@join_cache_level;
-drop table if exists t0, t1, t2, t3, t4, t5, t11, t12, t21, t22;
-set @subselect3_tmp= @@optimizer_switch;
-set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on,semijoin_with_cache=on';
-set join_cache_level=@join_cache_level_for_subselect3_test;
-create table t1 (oref int, grp int, ie int) ;
-insert into t1 (oref, grp, ie) values
-(1, 1, 1),
-(1, 1, 1),
-(1, 2, NULL),
-(2, 1, 3),
-(3, 1, 4),
-(3, 2, NULL);
-create table t2 (oref int, a int);
-insert into t2 values
-(1, 1),
-(2, 2),
-(3, 3),
-(4, NULL),
-(2, NULL);
-select a, oref, a in (select max(ie)
-from t1 where oref=t2.oref group by grp) Z from t2;
-a oref Z
-1 1 1
-2 2 0
-3 3 NULL
-NULL 4 0
-NULL 2 NULL
-explain extended
-select a, oref, a in (select max(ie)
-from t1 where oref=t2.oref group by grp) Z from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 5 100.00
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using temporary
-Warnings:
-Note 1276 Field or reference 'test.t2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`oref` AS `oref`,<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`oref`>(<in_optimizer>(`test`.`t2`.`a`,<exists>(/* select#2 */ select max(`test`.`t1`.`ie`) from `test`.`t1` where `test`.`t1`.`oref` = `test`.`t2`.`oref` group by `test`.`t1`.`grp` having trigcond(<cache>(`test`.`t2`.`a`) = <ref_null_helper>(max(`test`.`t1`.`ie`)))))) AS `Z` from `test`.`t2`
-explain extended
-select a, oref from t2
-where a in (select max(ie) from t1 where oref=t2.oref group by grp);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using temporary
-Warnings:
-Note 1276 Field or reference 'test.t2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`oref` AS `oref` from `test`.`t2` where <expr_cache><`test`.`t2`.`a`,`test`.`t2`.`oref`>(<in_optimizer>(`test`.`t2`.`a`,<exists>(/* select#2 */ select max(`test`.`t1`.`ie`) from `test`.`t1` where `test`.`t1`.`oref` = `test`.`t2`.`oref` group by `test`.`t1`.`grp` having <cache>(`test`.`t2`.`a`) = <ref_null_helper>(max(`test`.`t1`.`ie`)))))
-select a, oref, a in (
-select max(ie) from t1 where oref=t2.oref group by grp union
-select max(ie) from t1 where oref=t2.oref group by grp
-) Z from t2;
-a oref Z
-1 1 1
-2 2 0
-3 3 NULL
-NULL 4 0
-NULL 2 NULL
-create table t3 (a int);
-insert into t3 values (NULL), (NULL);
-flush status;
-select a in (select max(ie) from t1 where oref=4 group by grp) from t3;
-a in (select max(ie) from t1 where oref=4 group by grp)
-0
-0
-show status like 'Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 11
-select ' ^ This must show 11' Z;
-Z
- ^ This must show 11
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch="partial_match_rowid_merge=off,partial_match_table_scan=off";
-explain extended select a in (select max(ie) from t1 where oref=4 group by grp) from t3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using temporary
-Warnings:
-Note 1003 /* select#1 */ select <expr_cache><`test`.`t3`.`a`>(<in_optimizer>(`test`.`t3`.`a`,<exists>(/* select#2 */ select max(`test`.`t1`.`ie`) from `test`.`t1` where `test`.`t1`.`oref` = 4 group by `test`.`t1`.`grp` having trigcond(<cache>(`test`.`t3`.`a`) = <ref_null_helper>(max(`test`.`t1`.`ie`)))))) AS `a in (select max(ie) from t1 where oref=4 group by grp)` from `test`.`t3`
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1, t2, t3;
-create table t1 (a int, oref int, key(a));
-insert into t1 values
-(1, 1),
-(1, NULL),
-(2, 3),
-(2, NULL),
-(3, NULL);
-insert into t1 values (5, 7), (8, 9), (4, 1);
-create table t2 (a int, oref int);
-insert into t2 values (1, 1), (2,2), (NULL, 3), (NULL, 4);
-select oref, a, a in (select a from t1 where oref=t2.oref) Z from t2;
-oref a Z
-1 1 1
-2 2 0
-3 NULL NULL
-4 NULL 0
-explain extended
-select oref, a, a in (select a from t1 where oref=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 100.00
-2 DEPENDENT SUBQUERY t1 index_subquery a a 5 func 2 100.00 Using where; Full scan on NULL key
-Warnings:
-Note 1276 Field or reference 'test.t2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`oref` AS `oref`,`test`.`t2`.`a` AS `a`,<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`oref`>(<in_optimizer>(`test`.`t2`.`a`,<exists>(<index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on a checking NULL where `test`.`t1`.`oref` = `test`.`t2`.`oref` having trigcond(`test`.`t1`.`a` is null))))) AS `Z` from `test`.`t2`
-flush status;
-select oref, a from t2 where a in (select a from t1 where oref=t2.oref);
-oref a
-1 1
-show status like '%Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 5
-delete from t2;
-insert into t2 values (NULL, 0),(NULL, 0), (NULL, 0), (NULL, 0);
-set optimizer_switch='subquery_cache=off';
-flush status;
-select oref, a, a in (select a from t1 where oref=t2.oref) Z from t2;
-oref a Z
-0 NULL 0
-0 NULL 0
-0 NULL 0
-0 NULL 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 41
-select 'No key lookups, seq reads: 29= 5 reads from t2 + 4 * 6 reads from t1.' Z;
-Z
-No key lookups, seq reads: 29= 5 reads from t2 + 4 * 6 reads from t1.
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1, t2;
-create table t1 (a int, b int, primary key (a));
-insert into t1 values (1,1), (3,1),(100,1);
-create table t2 (a int, b int);
-insert into t2 values (1,1),(2,1),(NULL,1),(NULL,0);
-select a,b, a in (select a from t1 where t1.b = t2.b) Z from t2 ;
-a b Z
-1 1 1
-2 1 0
-NULL 1 NULL
-NULL 0 0
-drop table t1, t2;
-create table t1 (a int, b int, key(a));
-insert into t1 values
-(0,0),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9);
-create table t2 like t1;
-insert into t2 select * from t1;
-update t2 set b=1;
-create table t3 (a int, oref int);
-insert into t3 values (1, 1), (NULL,1), (NULL,0);
-select a, oref,
-t3.a in (select t1.a from t1, t2 where t1.b=t2.a and t2.b=t3.oref) Z
-from t3;
-a oref Z
-1 1 1
-NULL 1 NULL
-NULL 0 0
-explain extended
-select a, oref,
-t3.a in (select t1.a from t1, t2 where t1.b=t2.a and t2.b=t3.oref) Z
-from t3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00
-2 DEPENDENT SUBQUERY t1 ref_or_null a a 5 func 4 100.00 Using where; Full scan on NULL key
-2 DEPENDENT SUBQUERY t2 ref a a 5 test.t1.b 1 100.00 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-Warnings:
-Note 1276 Field or reference 'test.t3.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a`,`test`.`t3`.`oref` AS `oref`,<expr_cache><`test`.`t3`.`a`,`test`.`t3`.`oref`>(<in_optimizer>(`test`.`t3`.`a`,<exists>(/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`b` = `test`.`t3`.`oref` and trigcond(<cache>(`test`.`t3`.`a`) = `test`.`t1`.`a` or `test`.`t1`.`a` is null) and `test`.`t2`.`a` = `test`.`t1`.`b` having trigcond(`test`.`t1`.`a` is null)))) AS `Z` from `test`.`t3`
-drop table t1, t2, t3;
-create table t1 (a int NOT NULL, b int NOT NULL, key(a));
-insert into t1 values
-(0,0),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9);
-create table t2 like t1;
-insert into t2 select * from t1;
-update t2 set b=1;
-create table t3 (a int, oref int);
-insert into t3 values (1, 1), (NULL,1), (NULL,0);
-select a, oref,
-t3.a in (select t1.a from t1, t2 where t1.b=t2.a and t2.b=t3.oref) Z
-from t3;
-a oref Z
-1 1 1
-NULL 1 NULL
-NULL 0 0
-This must show a trig_cond:
-explain extended
-select a, oref,
-t3.a in (select t1.a from t1, t2 where t1.b=t2.a and t2.b=t3.oref) Z
-from t3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00
-2 DEPENDENT SUBQUERY t1 ref a a 4 func 2 100.00 Using where; Full scan on NULL key
-2 DEPENDENT SUBQUERY t2 ref a a 4 test.t1.b 1 100.00 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-Warnings:
-Note 1276 Field or reference 'test.t3.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a`,`test`.`t3`.`oref` AS `oref`,<expr_cache><`test`.`t3`.`a`,`test`.`t3`.`oref`>(<in_optimizer>(`test`.`t3`.`a`,<exists>(/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`b` = `test`.`t3`.`oref` and trigcond(<cache>(`test`.`t3`.`a`) = `test`.`t1`.`a`) and `test`.`t2`.`a` = `test`.`t1`.`b`))) AS `Z` from `test`.`t3`
-drop table t1,t2,t3;
-create table t1 (oref int, grp int);
-insert into t1 (oref, grp) values
-(1, 1),
-(1, 1);
-create table t2 (oref int, a int);
-insert into t2 values
-(1, NULL),
-(2, NULL);
-select a, oref,
-a in (select count(*) from t1 group by grp having grp=t2.oref) Z from t2;
-a oref Z
-NULL 1 NULL
-NULL 2 0
-This must show a trig_cond:
-explain extended
-select a, oref,
-a in (select count(*) from t1 group by grp having grp=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary
-Warnings:
-Note 1276 Field or reference 't2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`oref` AS `oref`,<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`oref`>(<in_optimizer>(`test`.`t2`.`a`,<exists>(/* select#2 */ select count(0) from `test`.`t1` group by `test`.`t1`.`grp` having `test`.`t1`.`grp` = `test`.`t2`.`oref` and trigcond(<cache>(`test`.`t2`.`a`) = <ref_null_helper>(count(0)))))) AS `Z` from `test`.`t2`
-drop table t1, t2;
-create table t1 (a int, b int, primary key (a));
-insert into t1 values (1,1), (3,1),(100,1);
-create table t2 (a int, b int);
-insert into t2 values (1,1),(2,1),(NULL,1),(NULL,0);
-select a,b, a in (select a from t1 where t1.b = t2.b union select a from
-t1 where t1.b = t2.b) Z from t2 ;
-a b Z
-1 1 1
-2 1 0
-NULL 1 NULL
-NULL 0 0
-select a,b, a in (select a from t1 where t1.b = t2.b) Z from t2 ;
-a b Z
-1 1 1
-2 1 0
-NULL 1 NULL
-NULL 0 0
-drop table t1, t2;
-create table t3 (a int);
-insert into t3 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, oref int);
-insert into t2 values (NULL,1, 100), (NULL,2, 100);
-create table t1 (a int, b int, c int, key(a,b));
-insert into t1 select 2*A, 2*A, 100 from t3;
-explain extended select a,b, oref, (a,b) in (select a,b from t1 where c=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 index_subquery a a 5 func 2 100.00 Using where; Full scan on NULL key
-Warnings:
-Note 1276 Field or reference 'test.t2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`oref` AS `oref`,<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`b`,`test`.`t2`.`oref`>(<in_optimizer>((`test`.`t2`.`a`,`test`.`t2`.`b`),<exists>(<index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on a checking NULL where `test`.`t1`.`c` = `test`.`t2`.`oref` and trigcond(trigcond(<cache>(`test`.`t2`.`a`) = `test`.`t1`.`a` or `test`.`t1`.`a` is null)) and trigcond(trigcond(<cache>(`test`.`t2`.`b`) = `test`.`t1`.`b` or `test`.`t1`.`b` is null)) having trigcond(`test`.`t1`.`a` is null) and trigcond(`test`.`t1`.`b` is null))))) AS `Z` from `test`.`t2`
-select a,b, oref, (a,b) in (select a,b from t1 where c=t2.oref) Z from t2;
-a b oref Z
-NULL 1 100 0
-NULL 2 100 NULL
-create table t4 (x int);
-insert into t4 select A.a + 10*B.a from t1 A, t1 B;
-explain extended
-select a,b, oref,
-(a,b) in (select a,b from t1,t4 where c=t2.oref) Z
-from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 ref_or_null a a 5 func 2 100.00 Using where; Full scan on NULL key
-2 DEPENDENT SUBQUERY t4 ALL NULL NULL NULL NULL 100 100.00 Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.t2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`oref` AS `oref`,<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`b`,`test`.`t2`.`oref`>(<in_optimizer>((`test`.`t2`.`a`,`test`.`t2`.`b`),<exists>(/* select#2 */ select `test`.`t1`.`a`,`test`.`t1`.`b` from `test`.`t1` join `test`.`t4` where `test`.`t1`.`c` = `test`.`t2`.`oref` and trigcond(trigcond(<cache>(`test`.`t2`.`a`) = `test`.`t1`.`a` or `test`.`t1`.`a` is null)) and trigcond(trigcond(<cache>(`test`.`t2`.`b`) = `test`.`t1`.`b` or `test`.`t1`.`b` is null)) having trigcond(`test`.`t1`.`a` is null) and trigcond(`test`.`t1`.`b` is null)))) AS `Z` from `test`.`t2`
-select a,b, oref,
-(a,b) in (select a,b from t1,t4 where c=t2.oref) Z
-from t2;
-a b oref Z
-NULL 1 100 0
-NULL 2 100 NULL
-drop table t1,t2,t3,t4;
-create table t1 (oref char(4), grp int, ie1 int, ie2 int);
-insert into t1 (oref, grp, ie1, ie2) values
-('aa', 10, 2, 1),
-('aa', 10, 1, 1),
-('aa', 20, 2, 1),
-('bb', 10, 3, 1),
-('cc', 10, 4, 2),
-('cc', 20, 3, 2),
-('ee', 10, 2, 1),
-('ee', 10, 1, 2),
-('ff', 20, 2, 2),
-('ff', 20, 1, 2);
-create table t2 (oref char(4), a int, b int);
-insert into t2 values
-('ee', NULL, 1),
-('bb', 2, 1),
-('ff', 2, 2),
-('cc', 3, NULL),
-('bb', NULL, NULL),
-('aa', 1, 1),
-('dd', 1, NULL);
-alter table t1 add index idx(ie1,ie2);
-select oref, a, b, (a,b) in (select ie1,ie2 from t1 where oref=t2.oref) Z from t2 where a=3 and b is null ;
-oref a b Z
-cc 3 NULL NULL
-insert into t2 values ('new1', 10,10);
-insert into t1 values ('new1', 1234, 10, NULL);
-select oref, a, b, (a,b) in (select ie1,ie2 from t1 where oref=t2.oref) Z from t2 where a=10 and b=10;
-oref a b Z
-new1 10 10 NULL
-explain extended
-select oref, a, b, (a,b) in (select ie1,ie2 from t1 where oref=t2.oref) Z from t2 where a=10 and b=10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 8 100.00 Using where
-2 DEPENDENT SUBQUERY t1 index_subquery idx idx 5 func 4 100.00 Using where; Full scan on NULL key
-Warnings:
-Note 1276 Field or reference 'test.t2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`oref` AS `oref`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`b`,`test`.`t2`.`oref`>(<in_optimizer>((`test`.`t2`.`a`,`test`.`t2`.`b`),<exists>(<index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on idx checking NULL where `test`.`t1`.`oref` = `test`.`t2`.`oref` and trigcond(trigcond(<cache>(`test`.`t2`.`a`) = `test`.`t1`.`ie1` or `test`.`t1`.`ie1` is null)) and trigcond(trigcond(<cache>(`test`.`t2`.`b`) = `test`.`t1`.`ie2` or `test`.`t1`.`ie2` is null)) having trigcond(`test`.`t1`.`ie1` is null) and trigcond(`test`.`t1`.`ie2` is null))))) AS `Z` from `test`.`t2` where `test`.`t2`.`a` = 10 and `test`.`t2`.`b` = 10
-drop table t1, t2;
-create table t1 (oref char(4), grp int, ie int);
-insert into t1 (oref, grp, ie) values
-('aa', 10, 2),
-('aa', 10, 1),
-('aa', 20, NULL),
-('bb', 10, 3),
-('cc', 10, 4),
-('cc', 20, NULL),
-('ee', 10, NULL),
-('ee', 10, NULL),
-('ff', 20, 2),
-('ff', 20, 1);
-create table t2 (oref char(4), a int);
-insert into t2 values
-('ee', NULL),
-('bb', 2),
-('ff', 2),
-('cc', 3),
-('aa', 1),
-('dd', NULL),
-('bb', NULL);
-select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
-oref a Z
-ee NULL NULL
-bb 2 0
-ff 2 1
-cc 3 NULL
-aa 1 1
-dd NULL 0
-bb NULL NULL
-select oref, a from t2 where a in (select ie from t1 where oref=t2.oref);
-oref a
-aa 1
-ff 2
-select oref, a from t2 where a not in (select ie from t1 where oref=t2.oref);
-oref a
-bb 2
-dd NULL
-select oref, a, a in (select min(ie) from t1 where oref=t2.oref group by grp) Z from t2;
-oref a Z
-ee NULL NULL
-bb 2 0
-ff 2 0
-cc 3 NULL
-aa 1 1
-dd NULL 0
-bb NULL NULL
-select oref, a from t2 where
-a in (select min(ie) from t1 where oref=t2.oref group by grp);
-oref a
-aa 1
-select oref, a from t2 where
-a not in (select min(ie) from t1 where oref=t2.oref group by grp);
-oref a
-bb 2
-ff 2
-dd NULL
-update t1 set ie=3 where oref='ff' and ie=1;
-select oref, a, a in (select min(ie) from t1 where oref=t2.oref group by
-grp) Z from t2;
-oref a Z
-ee NULL NULL
-bb 2 0
-ff 2 1
-cc 3 NULL
-aa 1 1
-dd NULL 0
-bb NULL NULL
-select oref, a from t2 where a in (select min(ie) from t1 where
-oref=t2.oref group by grp);
-oref a
-ff 2
-aa 1
-select oref, a from t2 where a not in (select min(ie) from t1 where
-oref=t2.oref group by grp);
-oref a
-bb 2
-dd NULL
-select oref, a, a in (select min(ie) from t1 where oref=t2.oref group by
-grp having min(ie) > 1) Z from t2;
-oref a Z
-ee NULL 0
-bb 2 0
-ff 2 1
-cc 3 0
-aa 1 0
-dd NULL 0
-bb NULL NULL
-select oref, a from t2 where a in (select min(ie) from t1 where
-oref=t2.oref group by grp having min(ie) > 1);
-oref a
-ff 2
-select oref, a from t2 where a not in (select min(ie) from t1 where
-oref=t2.oref group by grp having min(ie) > 1);
-oref a
-ee NULL
-bb 2
-cc 3
-aa 1
-dd NULL
-alter table t1 add index idx(ie);
-explain select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7
-2 DEPENDENT SUBQUERY t1 index_subquery idx idx 5 func 4 Using where; Full scan on NULL key
-select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
-oref a Z
-ee NULL NULL
-bb 2 0
-ff 2 1
-cc 3 NULL
-aa 1 1
-dd NULL 0
-bb NULL NULL
-select oref, a from t2 where a in (select ie from t1 where oref=t2.oref);
-oref a
-aa 1
-ff 2
-select oref, a from t2 where a not in (select ie from t1 where oref=t2.oref);
-oref a
-bb 2
-dd NULL
-alter table t1 drop index idx;
-alter table t1 add index idx(oref,ie);
-explain select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7
-2 DEPENDENT SUBQUERY t1 ref_or_null idx idx 10 test.t2.oref,func 4 Using where; Using index; Full scan on NULL key
-select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
-oref a Z
-ee NULL NULL
-bb 2 0
-ff 2 1
-cc 3 NULL
-aa 1 1
-dd NULL 0
-bb NULL NULL
-select oref, a from t2 where a in (select ie from t1 where oref=t2.oref);
-oref a
-ff 2
-aa 1
-select oref, a from t2 where a not in (select ie from t1 where oref=t2.oref);
-oref a
-bb 2
-dd NULL
-explain
-select oref, a,
-a in (select min(ie) from t1 where oref=t2.oref
-group by grp having min(ie) > 1) Z
-from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7
-2 DEPENDENT SUBQUERY t1 ref idx idx 5 test.t2.oref 2 Using where; Using temporary
-select oref, a,
-a in (select min(ie) from t1 where oref=t2.oref
-group by grp having min(ie) > 1) Z
-from t2;
-oref a Z
-ee NULL 0
-bb 2 0
-ff 2 1
-cc 3 0
-aa 1 0
-dd NULL 0
-bb NULL NULL
-select oref, a from t2 where a in (select min(ie) from t1 where oref=t2.oref
-group by grp having min(ie) > 1);
-oref a
-ff 2
-select oref, a from t2 where a not in (select min(ie) from t1 where oref=t2.oref
-group by grp having min(ie) > 1);
-oref a
-ee NULL
-bb 2
-cc 3
-aa 1
-dd NULL
-drop table t1,t2;
-create table t1 (oref char(4), grp int, ie1 int, ie2 int);
-insert into t1 (oref, grp, ie1, ie2) values
-('aa', 10, 2, 1),
-('aa', 10, 1, 1),
-('aa', 20, 2, 1),
-('bb', 10, 3, 1),
-('cc', 10, 4, 2),
-('cc', 20, 3, 2),
-('ee', 10, 2, 1),
-('ee', 10, 1, 2),
-('ff', 20, 2, 2),
-('ff', 20, 1, 2);
-create table t2 (oref char(4), a int, b int);
-insert into t2 values
-('ee', NULL, 1),
-('bb', 2, 1),
-('ff', 2, 2),
-('cc', 3, NULL),
-('bb', NULL, NULL),
-('aa', 1, 1),
-('dd', 1, NULL);
-select oref, a, b, (a,b) in (select ie1,ie2 from t1 where oref=t2.oref) Z from t2;
-oref a b Z
-ee NULL 1 NULL
-bb 2 1 0
-ff 2 2 1
-cc 3 NULL NULL
-bb NULL NULL NULL
-aa 1 1 1
-dd 1 NULL 0
-select oref, a, b from t2 where (a,b) in (select ie1,ie2 from t1 where oref=t2.oref);
-oref a b
-aa 1 1
-ff 2 2
-select oref, a, b from t2 where (a,b) not in (select ie1,ie2 from t1 where oref=t2.oref);
-oref a b
-bb 2 1
-dd 1 NULL
-select oref, a, b,
-(a,b) in (select min(ie1),max(ie2) from t1
-where oref=t2.oref group by grp) Z
-from t2;
-oref a b Z
-ee NULL 1 0
-bb 2 1 0
-ff 2 2 0
-cc 3 NULL NULL
-bb NULL NULL NULL
-aa 1 1 1
-dd 1 NULL 0
-select oref, a, b from t2 where
-(a,b) in (select min(ie1), max(ie2) from t1 where oref=t2.oref group by grp);
-oref a b
-aa 1 1
-select oref, a, b from t2 where
-(a,b) not in (select min(ie1), max(ie2) from t1 where oref=t2.oref group by grp);
-oref a b
-ee NULL 1
-bb 2 1
-ff 2 2
-dd 1 NULL
-alter table t1 add index idx(ie1,ie2);
-explain select oref, a, b, (a,b) in (select ie1,ie2 from t1 where oref=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7
-2 DEPENDENT SUBQUERY t1 index_subquery idx idx 5 func 4 Using where; Full scan on NULL key
-select oref, a, b, (a,b) in (select ie1,ie2 from t1 where oref=t2.oref) Z from t2;
-oref a b Z
-ee NULL 1 NULL
-bb 2 1 0
-ff 2 2 1
-cc 3 NULL NULL
-bb NULL NULL NULL
-aa 1 1 1
-dd 1 NULL 0
-select oref, a, b from t2 where (a,b) in (select ie1,ie2 from t1 where oref=t2.oref);
-oref a b
-aa 1 1
-ff 2 2
-select oref, a, b from t2 where (a,b) not in (select ie1,ie2 from t1 where oref=t2.oref);
-oref a b
-bb 2 1
-dd 1 NULL
-explain extended
-select oref, a, b, (a,b) in (select ie1,ie2 from t1 where oref=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7 100.00
-2 DEPENDENT SUBQUERY t1 index_subquery idx idx 5 func 4 100.00 Using where; Full scan on NULL key
-Warnings:
-Note 1276 Field or reference 'test.t2.oref' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`oref` AS `oref`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`b`,`test`.`t2`.`oref`>(<in_optimizer>((`test`.`t2`.`a`,`test`.`t2`.`b`),<exists>(<index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on idx checking NULL where `test`.`t1`.`oref` = `test`.`t2`.`oref` and trigcond(trigcond(<cache>(`test`.`t2`.`a`) = `test`.`t1`.`ie1` or `test`.`t1`.`ie1` is null)) and trigcond(trigcond(<cache>(`test`.`t2`.`b`) = `test`.`t1`.`ie2` or `test`.`t1`.`ie2` is null)) having trigcond(`test`.`t1`.`ie1` is null) and trigcond(`test`.`t1`.`ie2` is null))))) AS `Z` from `test`.`t2`
-drop table t1,t2;
-create table t1 (oref char(4), grp int, ie int primary key);
-insert into t1 (oref, grp, ie) values
-('aa', 10, 2),
-('aa', 10, 1),
-('bb', 10, 3),
-('cc', 10, 4),
-('cc', 20, 5),
-('cc', 10, 6);
-create table t2 (oref char(4), a int);
-insert into t2 values
-('ee', NULL),
-('bb', 2),
-('cc', 5),
-('cc', 2),
-('cc', NULL),
-('aa', 1),
-('bb', NULL);
-explain select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7
-2 DEPENDENT SUBQUERY t1 unique_subquery PRIMARY PRIMARY 4 func 1 Using where; Full scan on NULL key
-select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
-oref a Z
-ee NULL 0
-bb 2 0
-cc 5 1
-cc 2 0
-cc NULL NULL
-aa 1 1
-bb NULL NULL
-select oref, a from t2 where a in (select ie from t1 where oref=t2.oref);
-oref a
-aa 1
-cc 5
-select oref, a from t2 where a not in (select ie from t1 where oref=t2.oref);
-oref a
-ee NULL
-bb 2
-cc 2
-explain
-select oref, a, a in (select min(ie) from t1 where oref=t2.oref group by grp) Z from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 6 Using where; Using temporary
-select oref, a, a in (select min(ie) from t1 where oref=t2.oref group by grp) Z from t2;
-oref a Z
-ee NULL 0
-bb 2 0
-cc 5 1
-cc 2 0
-cc NULL NULL
-aa 1 1
-bb NULL NULL
-drop table t1,t2;
-create table t1 (a int, b int);
-insert into t1 values (0,0), (2,2), (3,3);
-create table t2 (a int, b int);
-insert into t2 values (1,1), (3,3);
-select a, b, (a,b) in (select a, min(b) from t2 group by a) Z from t1;
-a b Z
-0 0 0
-2 2 0
-3 3 1
-insert into t2 values (NULL,4);
-select a, b, (a,b) in (select a, min(b) from t2 group by a) Z from t1;
-a b Z
-0 0 0
-2 2 0
-3 3 1
-drop table t1,t2;
-CREATE TABLE t1 (a int, b INT, c CHAR(10) NOT NULL, PRIMARY KEY (a, b));
-INSERT INTO t1 VALUES (1,1,'a'), (1,2,'b'), (1,3,'c'), (1,4,'d'), (1,5,'e'),
-(2,1,'f'), (2,2,'g'), (2,3,'h'), (3,4,'i'),(3,3,'j'), (3,2,'k'), (3,1,'l'),
-(1,9,'m');
-CREATE TABLE t2 (a int, b INT, c CHAR(10) NOT NULL, PRIMARY KEY (a, b));
-INSERT INTO t2 SELECT * FROM t1;
-SELECT a, MAX(b), (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b))
-as test FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-SELECT * FROM t1 GROUP by t1.a
-HAVING (MAX(t1.b) > (SELECT MAX(t2.b) FROM t2 WHERE t2.c < t1.c
-HAVING MAX(t2.b+t1.a) < 10));
-a b c
-SELECT a,b,c FROM t1 WHERE b in (9,3,4) ORDER BY b,c;
-a b c
-1 3 c
-2 3 h
-3 3 j
-1 4 d
-3 4 i
-1 9 m
-SELECT a, MAX(b),
-(SELECT COUNT(DISTINCT t.c) FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b)
-LIMIT 1)
-as cnt,
-(SELECT t.b FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b) LIMIT 1)
-as t_b,
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b) LIMIT 1)
-as t_b,
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b) ORDER BY t.c LIMIT 1)
-as t_b
-FROM t1 GROUP BY a;
-a MAX(b) cnt t_b t_b t_b
-1 9 1 9 m m
-2 3 1 3 h h
-3 4 1 4 i i
-SELECT a, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b) LIMIT 1) as test
-FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-DROP TABLE t1, t2;
-set @@optimizer_switch="partial_match_rowid_merge=off,partial_match_table_scan=off";
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (b int, PRIMARY KEY(b));
-INSERT INTO t1 VALUES (1), (NULL), (4);
-INSERT INTO t2 VALUES (3), (1),(2), (5), (4), (7), (6);
-EXPLAIN EXTENDED
-SELECT a FROM t1, t2 WHERE a=b AND (b NOT IN (SELECT a FROM t1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 100.00 Using index
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`b` = `test`.`t1`.`a` and !<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` where trigcond(<cache>(`test`.`t2`.`b`) = `test`.`t1`.`a` or `test`.`t1`.`a` is null) having trigcond(`test`.`t1`.`a` is null))))
-SELECT a FROM t1, t2 WHERE a=b AND (b NOT IN (SELECT a FROM t1));
-a
-SELECT a FROM t1, t2 WHERE a=b AND (b NOT IN (SELECT a FROM t1 WHERE a > 4));
-a
-1
-4
-DROP TABLE t1,t2;
-CREATE TABLE t1 (id int);
-CREATE TABLE t2 (id int PRIMARY KEY);
-CREATE TABLE t3 (id int PRIMARY KEY, name varchar(10));
-INSERT INTO t1 VALUES (2), (NULL), (3), (1);
-INSERT INTO t2 VALUES (234), (345), (457);
-INSERT INTO t3 VALUES (222,'bbb'), (333,'ccc'), (111,'aaa');
-EXPLAIN
-SELECT * FROM t1
-WHERE t1.id NOT IN (SELECT t2.id FROM t2,t3
-WHERE t3.name='xxx' AND t2.id=t3.id);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2 eq_ref PRIMARY PRIMARY 4 func 1 Using where; Using index; Full scan on NULL key
-2 DEPENDENT SUBQUERY t3 eq_ref PRIMARY PRIMARY 4 test.t2.id 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT * FROM t1
-WHERE t1.id NOT IN (SELECT t2.id FROM t2,t3
-WHERE t3.name='xxx' AND t2.id=t3.id);
-id
-2
-NULL
-3
-1
-SELECT (t1.id IN (SELECT t2.id FROM t2,t3
-WHERE t3.name='xxx' AND t2.id=t3.id)) AS x
-FROM t1;
-x
-0
-0
-0
-0
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a INT NOT NULL);
-INSERT INTO t1 VALUES (1),(-1), (65),(66);
-CREATE TABLE t2 (a INT UNSIGNED NOT NULL PRIMARY KEY);
-INSERT INTO t2 VALUES (65),(66);
-SELECT a FROM t1 WHERE a NOT IN (65,66);
-a
-1
--1
-SELECT a FROM t1 WHERE a NOT IN (SELECT a FROM t2);
-a
-1
--1
-EXPLAIN SELECT a FROM t1 WHERE a NOT IN (SELECT a FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2 unique_subquery PRIMARY PRIMARY 4 func 1 Using index; Using where
-DROP TABLE t1, t2;
-set @@optimizer_switch=@save_optimizer_switch;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES(1);
-CREATE TABLE t2 (placeholder CHAR(11));
-INSERT INTO t2 VALUES("placeholder");
-SELECT ROW(1, 2) IN (SELECT t1.a, 2) FROM t1 GROUP BY t1.a;
-ROW(1, 2) IN (SELECT t1.a, 2)
-1
-SELECT ROW(1, 2) IN (SELECT t1.a, 2 FROM t2) FROM t1 GROUP BY t1.a;
-ROW(1, 2) IN (SELECT t1.a, 2 FROM t2)
-1
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-CREATE TABLE t2 SELECT * FROM t1;
-SELECT 1 FROM t1 WHERE t1.a NOT IN (SELECT 1 FROM t1, t2 WHERE 0);
-1
-1
-1
-1
-DROP TABLE t1, t2;
-create table t1 (a int, b decimal(13, 3));
-insert into t1 values (1, 0.123);
-select a, (select max(b) from t1) into outfile "subselect.out.file.1" from t1;
-delete from t1;
-load data infile "subselect.out.file.1" into table t1;
-select * from t1;
-a b
-1 0.123
-drop table t1;
-CREATE TABLE t1 (
-pk INT PRIMARY KEY,
-int_key INT,
-varchar_key VARCHAR(5) UNIQUE,
-varchar_nokey VARCHAR(5)
-);
-INSERT INTO t1 VALUES (9, 7,NULL,NULL), (10,8,'p' ,'p');
-SELECT varchar_nokey
-FROM t1
-WHERE NULL NOT IN (
-SELECT INNR.pk FROM t1 AS INNR2
-LEFT JOIN t1 AS INNR ON ( INNR2.int_key = INNR.int_key )
-WHERE INNR.varchar_key > 'n{'
-);
-varchar_nokey
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (11);
-# 2nd and 3rd columns should be same
-SELECT a, ROW(11, 12) = (SELECT a, 22), ROW(11, 12) IN (SELECT a, 22) FROM t1 GROUP BY t1.a;
-a ROW(11, 12) = (SELECT a, 22) ROW(11, 12) IN (SELECT a, 22)
-1 0 0
-2 0 0
-11 0 0
-SELECT a, ROW(11, 12) = (SELECT a, 12), ROW(11, 12) IN (SELECT a, 12) FROM t1 GROUP BY t1.a;
-a ROW(11, 12) = (SELECT a, 12) ROW(11, 12) IN (SELECT a, 12)
-1 0 0
-2 0 0
-11 1 1
-SELECT a, ROW(11, 12) = (SELECT a, 22), ROW(11, 12) IN (SELECT a, 22) FROM t1;
-a ROW(11, 12) = (SELECT a, 22) ROW(11, 12) IN (SELECT a, 22)
-1 0 0
-2 0 0
-11 0 0
-SELECT a, ROW(11, 12) = (SELECT a, 12), ROW(11, 12) IN (SELECT a, 12) FROM t1;
-a ROW(11, 12) = (SELECT a, 12) ROW(11, 12) IN (SELECT a, 12)
-1 0 0
-2 0 0
-11 1 1
-SELECT a AS x, ROW(11, 12) = (SELECT MAX(x), 22), ROW(11, 12) IN (SELECT MAX(x), 22) FROM t1;
-x ROW(11, 12) = (SELECT MAX(x), 22) ROW(11, 12) IN (SELECT MAX(x), 22)
-1 0 0
-2 0 0
-11 0 0
-# 2nd and 3rd columns should be same
-EXPLAIN SELECT a AS x, ROW(11, 12) = (SELECT MAX(x), 12), ROW(11, 12) IN (SELECT MAX(x), 12) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-3 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-SELECT a AS x, ROW(11, 12) = (SELECT MAX(x), 12), ROW(11, 12) IN (SELECT MAX(x), 12) FROM t1;
-x ROW(11, 12) = (SELECT MAX(x), 12) ROW(11, 12) IN (SELECT MAX(x), 12)
-1 0 0
-2 0 0
-11 1 1
-DROP TABLE t1;
-# both columns should be same
-SELECT ROW(1,2) = (SELECT NULL, NULL), ROW(1,2) IN (SELECT NULL, NULL);
-ROW(1,2) = (SELECT NULL, NULL) ROW(1,2) IN (SELECT NULL, NULL)
-NULL NULL
-SELECT ROW(1,2) = (SELECT 1, NULL), ROW(1,2) IN (SELECT 1, NULL);
-ROW(1,2) = (SELECT 1, NULL) ROW(1,2) IN (SELECT 1, NULL)
-NULL NULL
-SELECT ROW(1,2) = (SELECT NULL, 2), ROW(1,2) IN (SELECT NULL, 2);
-ROW(1,2) = (SELECT NULL, 2) ROW(1,2) IN (SELECT NULL, 2)
-NULL NULL
-SELECT ROW(1,2) = (SELECT NULL, 1), ROW(1,2) IN (SELECT NULL, 1);
-ROW(1,2) = (SELECT NULL, 1) ROW(1,2) IN (SELECT NULL, 1)
-0 0
-SELECT ROW(1,2) = (SELECT 1, 1), ROW(1,2) IN (SELECT 1, 1);
-ROW(1,2) = (SELECT 1, 1) ROW(1,2) IN (SELECT 1, 1)
-0 0
-SELECT ROW(1,2) = (SELECT 1, 2), ROW(1,2) IN (SELECT 1, 2);
-ROW(1,2) = (SELECT 1, 2) ROW(1,2) IN (SELECT 1, 2)
-1 1
-CREATE TABLE t1 (a INT, b INT, c INT);
-INSERT INTO t1 VALUES (1,1,1), (1,1,1);
-EXPLAIN EXTENDED
-SELECT c FROM
-( SELECT
-(SELECT COUNT(a) FROM
-(SELECT COUNT(b) FROM t1) AS x GROUP BY c
-) FROM t1 GROUP BY b
-) AS y;
-ERROR 42S22: Unknown column 'c' in 'field list'
-SHOW WARNINGS;
-Level Code Message
-Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #2
-Note 1981 Aggregate function 'count()' of SELECT #3 belongs to SELECT #2
-Note 1276 Field or reference 'test.t1.c' of SELECT #3 was resolved in SELECT #2
-Error 1054 Unknown column 'c' in 'field list'
-DROP TABLE t1;
-End of 5.0 tests
-#
-# BUG#36896: Server crash on SELECT FROM DUAL
-#
-create table t1 (a int);
-select 1 as res from dual where (1) in (select * from t1);
-res
-drop table t1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (
-a int(11) default null,
-b int(11) default null,
-key (a)
-);
-insert into t1 select A.a+10*(B.a+10*C.a),A.a+10*(B.a+10*C.a) from t0 A, t0 B, t0 C;
-create table t2 (a int(11) default null);
-insert into t2 values (0),(1);
-create table t3 (a int(11) default null);
-insert into t3 values (0),(1);
-create table t4 (a int(11) default null);
-insert into t4 values (0),(1);
-create table t5 (a int(11) default null);
-insert into t5 values (0),(1),(0),(1);
-select * from t2, t3
-where
-t2.a < 10 and
-t3.a+1 = 2 and
-t3.a in (select t1.b from t1
-where t1.a+1=t1.a+1 and
-t1.a < (select t4.a+10
-from t4, t5 limit 2));
-ERROR 21000: Subquery returns more than 1 row
-drop table t0, t1, t2, t3, t4, t5;
-#
-# BUG#48177 - SELECTs with NOT IN subqueries containing NULL
-# values return too many records
-#
-CREATE TABLE t1 (
-i1 int DEFAULT NULL,
-i2 int DEFAULT NULL
-) ;
-INSERT INTO t1 VALUES (1, NULL);
-INSERT INTO t1 VALUES (2, 3);
-INSERT INTO t1 VALUES (4, NULL);
-INSERT INTO t1 VALUES (4, 0);
-INSERT INTO t1 VALUES (NULL, NULL);
-CREATE TABLE t2 (
-i1 int DEFAULT NULL,
-i2 int DEFAULT NULL
-) ;
-INSERT INTO t2 VALUES (4, NULL);
-INSERT INTO t2 VALUES (5, 0);
-
-Data in t1
-SELECT i1, i2 FROM t1;
-i1 i2
-1 NULL
-2 3
-4 NULL
-4 0
-NULL NULL
-
-Data in subquery (should be filtered out)
-SELECT i1, i2 FROM t2 ORDER BY i1;
-i1 i2
-4 NULL
-5 0
-FLUSH STATUS;
-set @save_optimizer_switch2=@@optimizer_switch;
-set optimizer_switch='subquery_cache=off';
-
-SELECT i1, i2
-FROM t1
-WHERE (i1, i2)
-NOT IN (SELECT i1, i2 FROM t2);
-i1 i2
-1 NULL
-2 3
-
-# Check that the subquery only has to be evaluated once
-# for all-NULL values even though there are two (NULL,NULL) records
-# Baseline:
-SHOW STATUS LIKE '%Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 18
-
-INSERT INTO t1 VALUES (NULL, NULL);
-FLUSH STATUS;
-
-SELECT i1, i2
-FROM t1
-WHERE (i1, i2)
-NOT IN (SELECT i1, i2 FROM t2);
-i1 i2
-1 NULL
-2 3
-
-# Handler_read_rnd_next should be one more than baseline
-# (read record from t1, but do not read from t2)
-SHOW STATUS LIKE '%Handler_read_rnd_next';
-Variable_name Value
-Handler_read_rnd_next 19
-set @@optimizer_switch=@save_optimizer_switch2;
-DROP TABLE t1,t2;
-End of 5.1 tests
-CREATE TABLE t1 (
-a int(11) NOT NULL,
-b int(11) NOT NULL,
-c datetime default NULL,
-PRIMARY KEY (a),
-KEY idx_bc (b,c)
-);
-INSERT INTO t1 VALUES
-(406989,67,'2006-02-23 17:08:46'), (150078,67,'2005-10-26 11:17:45'),
-(406993,67,'2006-02-27 11:20:57'), (245655,67,'2005-12-08 15:59:08'),
-(406994,67,'2006-02-27 11:26:46'), (256,67,NULL),
-(398341,67,'2006-02-20 04:48:44'), (254,67,NULL),(1120,67,NULL),
-(406988,67,'2006-02-23 17:07:22'), (255,67,NULL),
-(398340,67,'2006-02-20 04:38:53'),(406631,67,'2006-02-23 10:49:42'),
-(245653,67,'2005-12-08 15:59:07'),(406992,67,'2006-02-24 16:47:18'),
-(245654,67,'2005-12-08 15:59:08'),(406995,67,'2006-02-28 11:55:00'),
-(127261,67,'2005-10-13 12:17:58'),(406991,67,'2006-02-24 16:42:32'),
-(245652,67,'2005-12-08 15:58:27'),(398545,67,'2006-02-20 04:53:13'),
-(154504,67,'2005-10-28 11:53:01'),(9199,67,NULL),(1,67,'2006-02-23 15:01:35'),
-(223456,67,NULL),(4101,67,NULL),(1133,67,NULL),
-(406990,67,'2006-02-23 18:01:45'),(148815,67,'2005-10-25 15:34:17'),
-(148812,67,'2005-10-25 15:30:01'),(245651,67,'2005-12-08 15:58:27'),
-(154503,67,'2005-10-28 11:52:38');
-create table t11 select * from t1 where b = 67 AND (c IS NULL OR c > NOW()) order by 3 asc;
-create table t12 select * from t1 where b = 67 AND (c IS NULL OR c > NOW()) order by 3 desc;
-create table t21 select * from t1 where b = 67 AND (c IS NULL OR c > '2005-12-08') order by 3 asc;
-create table t22 select * from t1 where b = 67 AND (c IS NULL OR c > '2005-12-08') order by 3 desc;
-set @@optimizer_switch=@save_optimizer_switch;
-set @@optimizer_switch='materialization=off';
-update t22 set c = '2005-12-08 15:58:27' where a = 255;
-explain select t21.* from t21,t22 where t21.a = t22.a and
-t22.a in (select t12.a from t11, t12 where t11.a in(255,256) and t11.a = t12.a and t11.c is null) and t22.c is null order by t21.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t11 ALL NULL NULL NULL NULL 8 Using where; Start temporary; Using temporary; Using filesort
-1 PRIMARY t12 hash_ALL NULL #hash#$hj 4 test.t11.a 8 Using where; Using join buffer (flat, BNLH join)
-1 PRIMARY t22 hash_ALL NULL #hash#$hj 4 test.t11.a 26 Using where; End temporary; Using join buffer (incremental, BNLH join)
-1 PRIMARY t21 hash_ALL NULL #hash#$hj 4 test.t11.a 26 Using where; Using join buffer (incremental, BNLH join)
-select t21.* from t21,t22 where t21.a = t22.a and
-t22.a in (select t12.a from t11, t12 where t11.a in(255,256) and t11.a = t12.a and t11.c is null) and t22.c is null order by t21.a;
-a b c
-256 67 NULL
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1, t11, t12, t21, t22;
-create table t1(a int);
-insert into t1 values (0),(1);
-set @@optimizer_switch='firstmatch=off,materialization=off';
-explain
-select (select max(Y.a) from t1 Y where a in (select a from t1 Z) and a < X.a) as subq from t1 X;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY X ALL NULL NULL NULL NULL 2
-2 DEPENDENT SUBQUERY Y ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY Z hash_ALL NULL #hash#$hj 5 test.Y.a 2 Using where; Start temporary; End temporary; Using join buffer (flat, BNLH join)
-select (select max(Y.a) from t1 Y where a in (select a from t1 Z) and a < X.a) as subq from t1 X;
-subq
-NULL
-0
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 as select * from t0;
-insert into t1 select a+10 from t0;
-set @@optimizer_switch='firstmatch=off,materialization=off';
-insert into t0 values(2);
-explain select * from t1 where 2 in (select a from t0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 11 Using where; Start temporary; End temporary
-1 PRIMARY t1 ALL NULL NULL NULL NULL 20 Using join buffer (flat, BNL join)
-select * from t1 where 2 in (select a from t0);
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-set @@optimizer_switch=@save_optimizer_switch;
-set @@optimizer_switch='materialization=off';
-explain select * from t1 where 2 in (select a from t0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 11 Using where; FirstMatch
-1 PRIMARY t1 ALL NULL NULL NULL NULL 20 Using join buffer (flat, BNL join)
-select * from t1 where 2 in (select a from t0);
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-set @@optimizer_switch=@save_optimizer_switch;
-set @@optimizer_switch=@save_optimizer_switch;
-set @@optimizer_switch='materialization=off';
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-explain select * from (select a from t0) X where a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 11
-1 PRIMARY t1 ALL NULL NULL NULL NULL 20 Using where; FirstMatch(<derived2>); Using join buffer (flat, BNL join)
-2 DERIVED t0 ALL NULL NULL NULL NULL 11
-drop table t0, t1;
-set optimizer_switch=@tmp_optimizer_switch;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (kp1 int, kp2 int, c int, filler char(100), key(kp1, kp2));
-insert into t1 select A.a+10*(B.a+10*C.a), 0, 0, 'filler' from t0 A, t0 B, t0 C;
-insert into t1 select * from t1 where kp1 < 20;
-create table t3 (a int);
-insert into t3 select A.a + 10*B.a from t0 A, t0 B;
-explain select * from t3 where a in (select kp1 from t1 where kp1<20);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range kp1 kp1 5 NULL 48 Using where; Using index; LooseScan
-1 PRIMARY t3 ALL NULL NULL NULL NULL 100 Using where; Using join buffer (flat, BNL join)
-create table t4 (pk int primary key);
-insert into t4 select a from t3;
-explain select * from t3 where a in (select t1.kp1 from t1,t4 where kp1<20
-and t4.pk=t1.c);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 100 Using where
-1 PRIMARY t1 ref kp1 kp1 5 test.t3.a 1 Using where
-1 PRIMARY t4 eq_ref PRIMARY PRIMARY 4 test.t1.c 1 Using index; FirstMatch(t3)
-drop table t1, t3, t4;
-set @@optimizer_switch=@save_optimizer_switch;
-create table t1 (a int) as select * from t0 where a < 5;
-set @save_max_heap_table_size=@@max_heap_table_size;
-set @@optimizer_switch='firstmatch=off,materialization=off';
-set @@max_heap_table_size= 16384;
-explain select count(*) from t0 A, t0 B, t0 C, t0 D where D.a in (select a from t1 E where a+1 < 10000 + A.a + B.a +C.a+D.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 10
-1 PRIMARY B ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-1 PRIMARY E ALL NULL NULL NULL NULL 5 Using where; Start temporary; Using join buffer (incremental, BNL join)
-1 PRIMARY D hash_ALL NULL #hash#$hj 5 test.E.a 10 Using where; Using join buffer (incremental, BNLH join)
-1 PRIMARY C ALL NULL NULL NULL NULL 10 Using where; End temporary; Using join buffer (incremental, BNL join)
-flush status;
-select count(*) from t0 A, t0 B, t0 C, t0 D where D.a in (select a from t1 E where a+1 < 10000 + A.a + B.a +C.a+D.a);
-count(*)
-5000
-show status like 'Created_tmp_disk_tables';
-Variable_name Value
-Created_tmp_disk_tables 1
-set @save_max_heap_table_size=@@max_heap_table_size;
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t0, t1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2(a int);
-insert into t2 values (1),(2);
-create table t3 ( a int , filler char(100), key(a));
-insert into t3 select A.a + 10*B.a, 'filler' from t0 A, t0 B;
-explain select * from t3 where a in (select a from t2) and (a > 5 or a < 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2
-1 PRIMARY t3 ref a a 5 test.t2.a 1 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using where
-select * from t3 where a in (select a from t2);
-a filler
-1 filler
-2 filler
-drop table t0, t2, t3;
-set @@optimizer_switch='firstmatch=off,materialization=off';
-create table t1 (a date);
-insert into t1 values ('2008-01-01'),('2008-01-01'),('2008-02-01'),('2008-02-01');
-create table t2 (a int);
-insert into t2 values (1),(2);
-create table t3 (a char(10));
-insert into t3 select * from t1;
-insert into t3 values (1),(2);
-explain select * from t2 where a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY t1 hash_ALL NULL #hash#$hj 4 test.t2.a 4 Using where; Start temporary; End temporary; Using join buffer (flat, BNLH join)
-explain select * from t2 where a in (select a from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY t2 hash_ALL NULL #hash#$hj 5 test.t2.a 2 Using where; Start temporary; End temporary; Using join buffer (flat, BNLH join)
-explain select * from t2 where a in (select a from t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY t3 ALL NULL NULL NULL NULL 6 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-explain select * from t1 where a in (select a from t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-1 PRIMARY t3 ALL NULL NULL NULL NULL 6 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-drop table t1, t2, t3;
-create table t1 (a decimal);
-insert into t1 values (1),(2);
-explain select * from t1 where a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY t1 hash_ALL NULL #hash#$hj 6 test.t1.a 2 Using where; Start temporary; End temporary; Using join buffer (flat, BNLH join)
-drop table t1;
-set @@optimizer_switch=@save_optimizer_switch;
-set @@optimizer_switch=@save_optimizer_switch;
-set @@optimizer_switch='materialization=off';
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 as select * from t1;
-create table t3 (a int, b int, filler char(100), key(a));
-insert into t3 select A.a + 10*B.a, A.a + 10*B.a, 'filler' from t1 A, t1 B, t1 C;
-explain select * from t1, t3 where t3.a in (select a from t2) and (t3.a < 10 or t3.a >30) and t1.a =3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 10 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 10 Using where; Start temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t3 ref a a 5 test.t2.a 10 End temporary; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-explain select straight_join * from t1 A, t1 B where A.a in (select a from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 10 Using where
-1 PRIMARY B ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 10 Using where
-explain select * from t2 where a in (select straight_join A.a from t1 A, t1 B);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY A ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY B ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-explain select * from t2 where a in (select straight_join A.a from t1 A, t1 B);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY A ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY B ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-explain select straight_join * from t2 X, t2 Y
-where X.a in (select straight_join A.a from t1 A, t1 B);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY X ALL NULL NULL NULL NULL 10 Using where
-1 PRIMARY Y ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY A ALL NULL NULL NULL NULL 10 Using where
-2 DEPENDENT SUBQUERY B ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-create table t0 (a int, b int);
-insert into t0 values(1,1);
-explain select * from t0, t3 where t3.a in (select a from t2) and (t3.a < 10 or t3.a >30);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 10 Using where; Start temporary
-1 PRIMARY t3 ref a a 5 test.t2.a 10 End temporary; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-create table t4 as select a as x, a as y from t1;
-explain select * from t0, t3 where (t3.a, t3.b) in (select x,y from t4) and (t3.a < 10 or t3.a >30);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 system NULL NULL NULL NULL 1
-1 PRIMARY t4 ALL NULL NULL NULL NULL 10 Using where; Start temporary
-1 PRIMARY t3 ref a a 5 test.t4.x 10 Using where; End temporary; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-drop table t0,t1,t2,t3,t4;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b int, filler char(100), key(a,b));
-insert into t1 select A.a, B.a, 'filler' from t0 A, t0 B;
-create table t2 as select * from t1;
-explain select * from t2 where a in (select b from t1 where a=3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref a a 5 const 8 Using index; LooseScan
-1 PRIMARY t2 ALL NULL NULL NULL NULL 100 Using where; Using join buffer (flat, BNL join)
-explain select * from t2 where (b,a) in (select a,b from t1 where a=3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref a a 5 const 8 Using index; LooseScan
-1 PRIMARY t2 ALL NULL NULL NULL NULL 100 Using where; Using join buffer (flat, BNL join)
-drop table t1,t2;
-set @@optimizer_switch=@save_optimizer_switch;
-create table t1 (a int, b int);
-insert into t1 select a,a from t0;
-create table t2 (a int, b int);
-insert into t2 select A.a + 10*B.a, A.a + 10*B.a from t0 A, t0 B;
-set @@optimizer_switch='firstmatch=off,materialization=off';
-explain select * from t1 where (a,b) in (select a,b from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 10 Using where
-1 PRIMARY t2 hash_ALL NULL #hash#$hj 10 test.t1.a,test.t1.b 100 Using where; Start temporary; End temporary; Using join buffer (flat, BNLH join)
-set @save_optimizer_search_depth=@@optimizer_search_depth;
-set @@optimizer_search_depth=63;
-Warnings:
-Warning 1292 Truncated incorrect optimizer_search_depth value: '63'
-explain select * from t1 where (a,b) in (select a,b from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 10 Using where
-1 PRIMARY t2 hash_ALL NULL #hash#$hj 10 test.t1.a,test.t1.b 100 Using where; Start temporary; End temporary; Using join buffer (flat, BNLH join)
-set @@optimizer_search_depth=@save_optimizer_search_depth;
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t0, t1, t2;
-set @@optimizer_switch='materialization=off';
-create table t0 (a decimal(4,2));
-insert into t0 values (10.24), (22.11);
-create table t1 as select * from t0;
-insert into t1 select * from t0;
-explain select * from t0 where a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; FirstMatch(t0); Using join buffer (flat, BNL join)
-select * from t0 where a in (select a from t1);
-a
-10.24
-22.11
-drop table t0, t1;
-create table t0(a date);
-insert into t0 values ('2008-01-01'),('2008-02-02');
-create table t1 as select * from t0;
-insert into t1 select * from t0;
-explain select * from t0 where a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; FirstMatch(t0); Using join buffer (flat, BNL join)
-select * from t0 where a in (select a from t1);
-a
-2008-01-01
-2008-02-02
-drop table t0, t1;
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 as select a as a, a as b, a as c from t0 where a < 3;
-create table t2 as select a as a, a as b from t0 where a < 3;
-insert into t2 select * from t2;
-explain select * from t1 where (a,b,c) in (select X.a, Y.a, Z.a from t2 X, t2 Y, t2 Z where X.b=33);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-1 PRIMARY X ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY Y ALL NULL NULL NULL NULL 6 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY Z ALL NULL NULL NULL NULL 6 Using where; FirstMatch(t1); Using join buffer (incremental, BNL join)
-drop table t0,t1,t2;
-set @@optimizer_switch=@save_optimizer_switch;
-
-BUG#37842: Assertion in DsMrr_impl::dsmrr_init, at handler.cc:4307
-
-CREATE TABLE t1 (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`int_key` int(11) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `int_key` (`int_key`)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,9),(2,3),(3,8),(4,6),(5,9),(6,5),(7,5),(8,9),(9,1),(10,10);
-SELECT `pk` FROM t1 AS OUTR WHERE `int_key` = ALL (
-SELECT `int_key` FROM t1 AS INNR WHERE INNR . `pk` >= 9
-);
-pk
-DROP TABLE t1;
-
-BUG#40118 Crash when running Batched Key Access and requiring one match for each key
-
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, key(a));
-insert into t1 select * from t0;
-alter table t1 add b int not null, add filler char(200);
-insert into t1 select * from t1;
-insert into t1 select * from t1;
-set @save_join_cache_level=@@join_cache_level;
-set join_cache_level=6;
-select * from t0 where t0.a in (select t1.a from t1 where t1.b=0);
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-set join_cache_level=@save_join_cache_level;
-drop table t0, t1;
-#
-# BUG#32665 Query with dependent subquery is too slow
-#
-create table t1 (
-idIndividual int primary key
-);
-insert into t1 values (1),(2);
-create table t2 (
-idContact int primary key,
-contactType int,
-idObj int
-);
-insert into t2 values (1,1,1),(2,2,2),(3,3,3);
-create table t3 (
-idAddress int primary key,
-idContact int,
-postalStripped varchar(100)
-);
-insert into t3 values (1,1, 'foo'), (2,2,'bar');
-The following must be converted to a semi-join:
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch='materialization=off';
-explain extended SELECT a.idIndividual FROM t1 a
-WHERE a.idIndividual IN
-( SELECT c.idObj FROM t3 cona
-INNER JOIN t2 c ON c.idContact=cona.idContact
-WHERE cona.postalStripped='T2H3B2'
- );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY cona ALL NULL NULL NULL NULL 2 100.00 Using where; Start temporary
-1 PRIMARY c eq_ref PRIMARY PRIMARY 4 test.cona.idContact 1 100.00 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 PRIMARY a eq_ref PRIMARY PRIMARY 4 test.c.idObj 1 100.00 Using index; End temporary
-Warnings:
-Note 1003 select `test`.`a`.`idIndividual` AS `idIndividual` from `test`.`t1` `a` semi join (`test`.`t3` `cona` join `test`.`t2` `c`) where `test`.`cona`.`postalStripped` = 'T2H3B2' and `test`.`a`.`idIndividual` = `test`.`c`.`idObj` and `test`.`c`.`idContact` = `test`.`cona`.`idContact`
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1,t2,t3;
-#
-# BUG#47367 Crash in Name_resolution_context::process_error
-#
-SET SESSION optimizer_switch = 'semijoin=off';
-CREATE TABLE t1 (f1 INTEGER);
-CREATE TABLE t2 LIKE t1;
-CREATE PROCEDURE p1 () BEGIN SELECT f1 FROM t1 WHERE f1 IN (SELECT f1 FROM t2); END|
-CALL p1;
-f1
-ALTER TABLE t2 CHANGE COLUMN f1 my_column INT;
-CALL p1;
-f1
-DROP PROCEDURE p1;
-# Restore the original column list of table t2:
-ALTER TABLE t2 CHANGE COLUMN my_column f1 INT;
-SET SESSION optimizer_switch = 'semijoin=on';
-# Recreate procedure so that we eliminate any caching effects
-CREATE PROCEDURE p1 () BEGIN SELECT f1 FROM t1 WHERE f1 IN (SELECT f1 FROM t2); END|
-CALL p1;
-f1
-ALTER TABLE t2 CHANGE COLUMN f1 my_column INT;
-CALL p1;
-ERROR 42S22: Unknown column 'f1' in 'where clause'
-DROP PROCEDURE p1;
-DROP TABLE t1, t2;
-#
-# fix of lp:824425 (prohibiting subqueries in row in
-# left part of IN/ALL/ANY)
-#
-CREATE TABLE t1 ( a int) ;
-INSERT INTO t1 VALUES (20),(30);
-CREATE TABLE t2 (a int) ;
-INSERT INTO t2 VALUES (3),(9);
-CREATE TABLE t3 ( a int, b int) ;
-INSERT INTO t3 VALUES (20,5),(30,6);
-set @optimizer_switch_save=@@optimizer_switch;
-SET SESSION optimizer_switch='semijoin=OFF,in_to_exists=OFF,materialization=ON,partial_match_rowid_merge=ON,partial_match_table_scan=OFF';
-SELECT * FROM t1
-WHERE (
-( SELECT a FROM t2 WHERE a = 9 )
-) NOT IN (
-SELECT b
-FROM t3
-);
-a
-20
-30
-explain extended
-SELECT * FROM t1
-WHERE (
-( SELECT a FROM t2 WHERE a = 9 )
-) NOT IN (
-SELECT b
-FROM t3
-);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where 1
-SELECT * FROM t1
-WHERE (
-( SELECT a FROM t2 WHERE a = 9 ),
-( SELECT a FROM t2 WHERE a = 3 )
-) NOT IN (
-SELECT b , a
-FROM t3
-);
-ERROR 42000: This version of MariaDB doesn't yet support 'SUBQUERY in ROW in left expression of IN/ALL/ANY'
-set optimizer_switch=@optimizer_switch_save;
-drop table t1,t2,t3;
-End of 5.3 tests
-#
-# BUG#48920: COUNT DISTINCT returns 1 for NULL values when in a subquery
-# in the select list
-#
-
-CREATE TABLE t1 (
-i int(11) DEFAULT NULL,
-v varchar(1) DEFAULT NULL
-);
-
-INSERT INTO t1 VALUES (8,'v');
-INSERT INTO t1 VALUES (9,'r');
-INSERT INTO t1 VALUES (NULL,'y');
-
-CREATE TABLE t2 (
-i int(11) DEFAULT NULL,
-v varchar(1) DEFAULT NULL,
-KEY i_key (i)
-);
-
-INSERT INTO t2 VALUES (NULL,'r');
-INSERT INTO t2 VALUES (0,'c');
-INSERT INTO t2 VALUES (0,'o');
-INSERT INTO t2 VALUES (2,'v');
-INSERT INTO t2 VALUES (7,'c');
-
-SELECT i, v, (SELECT COUNT(DISTINCT i)
-FROM t1
-WHERE v = t2.v) as subsel
-FROM t2;
-i v subsel
-NULL r 1
-0 c 0
-0 o 0
-2 v 1
-7 c 0
-
-EXPLAIN EXTENDED
-SELECT i, v, (SELECT COUNT(DISTINCT i)
-FROM t1
-WHERE v = t2.v) as subsel
-FROM t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 5 100.00
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t2.v' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`i` AS `i`,`test`.`t2`.`v` AS `v`,<expr_cache><`test`.`t2`.`v`>((/* select#2 */ select count(distinct `test`.`t1`.`i`) from `test`.`t1` where `test`.`t1`.`v` = `test`.`t2`.`v`)) AS `subsel` from `test`.`t2`
-DROP TABLE t1,t2;
-End of 5.6 tests
-set @@optimizer_switch=@subselect3_tmp;
-set join_cache_level=default;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 2
-set @@optimizer_switch=@save_optimizer_switch;
-set @join_cache_level_for_subselect3_test=NULL;
diff --git a/mysql-test/r/subselect4.result b/mysql-test/r/subselect4.result
deleted file mode 100644
index 25290650e9b..00000000000
--- a/mysql-test/r/subselect4.result
+++ /dev/null
@@ -1,2516 +0,0 @@
-drop table if exists t0,t1,t2,t3,t4,t5,t6;
-drop view if exists v1, v2;
-set @subselect4_tmp= @@optimizer_switch;
-set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
-set optimizer_switch='semijoin_with_cache=on';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-#
-# Bug #46791: Assertion failed:(table->key_read==0),function unknown
-# function,file sql_base.cc
-#
-CREATE TABLE t1 (a INT, b INT, KEY(a));
-INSERT INTO t1 VALUES (1,1),(2,2);
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 VALUES (1,1),(2,2);
-CREATE TABLE t3 LIKE t1;
-# should have 1 impossible where and 2 dependent subqueries
-EXPLAIN
-SELECT 1 FROM t1
-WHERE NOT EXISTS (SELECT 1 FROM t2 WHERE 1 = (SELECT MIN(t2.b) FROM t3))
-ORDER BY count(*);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 5 NULL 2 Using index
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT SUBQUERY t3 system NULL NULL NULL NULL 0 Const row not found
-# should not crash the next statement
-SELECT 1 FROM t1
-WHERE NOT EXISTS (SELECT 1 FROM t2 WHERE 1 = (SELECT MIN(t2.b) FROM t3))
-ORDER BY count(*);
-1
-1
-# should not crash: the crash is caused by the previous statement
-SELECT 1;
-1
-1
-DROP TABLE t1,t2,t3;
-#
-# Bug #47106: Crash / segfault on adding EXPLAIN to a non-crashing
-# query
-#
-CREATE TABLE t1 (
-a INT,
-b INT,
-PRIMARY KEY (a),
-KEY b (b)
-);
-INSERT INTO t1 VALUES (1, 1), (2, 1);
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 SELECT * FROM t1;
-CREATE TABLE t3 LIKE t1;
-INSERT INTO t3 SELECT * FROM t1;
-# Should not crash.
-# Should have 1 impossible where and 2 dependent subqs.
-EXPLAIN
-SELECT
-(SELECT 1 FROM t1,t2 WHERE t2.b > t3.b)
-FROM t3 WHERE 1 = 0 GROUP BY 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 DEPENDENT SUBQUERY t1 index NULL PRIMARY 4 NULL 2 Using index
-2 DEPENDENT SUBQUERY t2 ALL b NULL NULL NULL 2 Range checked for each record (index map: 0x2)
-# should return 0 rows
-SELECT
-(SELECT 1 FROM t1,t2 WHERE t2.b > t3.b)
-FROM t3 WHERE 1 = 0 GROUP BY 1;
-(SELECT 1 FROM t1,t2 WHERE t2.b > t3.b)
-DROP TABLE t1,t2,t3;
-End of 5.0 tests.
-CREATE TABLE t1 (col_int_nokey int(11) NOT NULL, col_varchar_nokey varchar(1) NOT NULL) engine=myisam;
-INSERT INTO t1 VALUES (2,'s'),(0,'v'),(2,'s');
-CREATE TABLE t2 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-`col_int_key` int(11) NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_varchar_key` (`col_varchar_key`)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (4,10,'g'), (5,20,'v');
-SELECT t1.col_int_nokey,(SELECT MIN( t2_a.col_int_key ) FROM t2 t2_a, t2 t2_b, t1 t1_a WHERE t1_a.col_varchar_nokey = t2_b.col_varchar_key and t1.col_int_nokey ) as sub FROM t1;
-col_int_nokey sub
-2 10
-0 NULL
-2 10
-SELECT t1.col_int_nokey,(SELECT MIN( t2_a.col_int_key ) +1 FROM t2 t2_a, t2 t2_b, t1 t1_a WHERE t1_a.col_varchar_nokey = t2_b.col_varchar_key and t1.col_int_nokey ) as sub FROM t1;
-col_int_nokey sub
-2 11
-0 NULL
-2 11
-DROP TABLE t1,t2;
-#
-# Bug#54568: create view cause Assertion failed: 0,
-# file .\item_subselect.cc, line 836
-#
-EXPLAIN SELECT 1 LIKE ( 1 IN ( SELECT 1 ) );
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-DESCRIBE SELECT 1 LIKE ( 1 IN ( SELECT 1 ) );
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-# None of the below should crash
-CREATE VIEW v1 AS SELECT 1 LIKE ( 1 IN ( SELECT 1 ) );
-CREATE VIEW v2 AS SELECT 1 LIKE '%' ESCAPE ( 1 IN ( SELECT 1 ) );
-DROP VIEW v1, v2;
-#
-# Bug#51070: Query with a NOT IN subquery predicate returns a wrong
-# result set
-#
-CREATE TABLE t1 ( a INT, b INT );
-INSERT INTO t1 VALUES ( 1, NULL ), ( 2, NULL );
-CREATE TABLE t2 ( c INT, d INT );
-INSERT INTO t2 VALUES ( NULL, 3 ), ( NULL, 4 );
-CREATE TABLE t3 ( e INT, f INT );
-INSERT INTO t3 VALUES ( NULL, NULL ), ( NULL, NULL );
-CREATE TABLE t4 ( a INT );
-INSERT INTO t4 VALUES (1), (2), (3);
-CREATE TABLE t5 ( a INT );
-INSERT INTO t5 VALUES (NULL), (2);
-SET @old_optimizer_switch = @@session.optimizer_switch;
-SET SESSION optimizer_switch = 'materialization=off,in_to_exists=on,semijoin=off';
-EXPLAIN
-SELECT * FROM t1 WHERE ( a, b ) NOT IN ( SELECT c, d FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-x PRIMARY x x x x x x x x
-x DEPENDENT SUBQUERY x x x x x x x x
-SELECT * FROM t1 WHERE ( a, b ) NOT IN ( SELECT c, d FROM t2 );
-a b
-EXPLAIN
-SELECT * FROM t1 WHERE ( a, b ) NOT IN ( SELECT c, d FROM t2 ) IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 WHERE ( a, b ) NOT IN ( SELECT c, d FROM t2 ) IS NULL;
-a b
-1 NULL
-2 NULL
-SELECT * FROM t1 WHERE ( a, b ) IN ( SELECT c, d FROM t2 ) IS NULL;
-a b
-1 NULL
-2 NULL
-SELECT * FROM t1 WHERE ( a, b ) NOT IN ( SELECT c, d FROM t2 ) IS UNKNOWN;
-a b
-1 NULL
-2 NULL
-SELECT * FROM t1 WHERE (( a, b ) NOT IN ( SELECT c, d FROM t2 )) IS UNKNOWN;
-a b
-1 NULL
-2 NULL
-SELECT * FROM t1 WHERE 1 = 1 AND ( a, b ) NOT IN ( SELECT c, d FROM t2 );
-a b
-EXPLAIN
-SELECT * FROM t1 WHERE ( a, b ) NOT IN ( SELECT e, f FROM t3 );
-id select_type table type possible_keys key key_len ref rows Extra
-x PRIMARY x x x x x x x x
-x DEPENDENT SUBQUERY x x x x x x x x
-SELECT * FROM t1 WHERE ( a, b ) NOT IN ( SELECT e, f FROM t3 );
-a b
-EXPLAIN
-SELECT * FROM t2 WHERE ( c, d ) NOT IN ( SELECT a, b FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-x PRIMARY x x x x x x x x
-x DEPENDENT SUBQUERY x x x x x x x x
-SELECT * FROM t2 WHERE ( c, d ) NOT IN ( SELECT a, b FROM t1 );
-c d
-EXPLAIN
-SELECT * FROM t3 WHERE ( e, f ) NOT IN ( SELECT c, d FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-x PRIMARY x x x x x x x x
-x DEPENDENT SUBQUERY x x x x x x x x
-SELECT * FROM t3 WHERE ( e, f ) NOT IN ( SELECT c, d FROM t2 );
-e f
-EXPLAIN
-SELECT * FROM t2 WHERE ( c, d ) NOT IN ( SELECT e, f FROM t3 );
-id select_type table type possible_keys key key_len ref rows Extra
-x PRIMARY x x x x x x x x
-x DEPENDENT SUBQUERY x x x x x x x x
-SELECT * FROM t2 WHERE ( c, d ) NOT IN ( SELECT e, f FROM t3 );
-c d
-SELECT * FROM t1 WHERE ( a, b ) NOT IN
-( SELECT c, d FROM t2 WHERE c = 1 AND c <> 1 );
-a b
-1 NULL
-2 NULL
-SELECT * FROM t1 WHERE b NOT IN ( SELECT c FROM t2 WHERE c = 1 );
-a b
-1 NULL
-2 NULL
-SELECT * FROM t1 WHERE NULL NOT IN ( SELECT c FROM t2 WHERE c = 1 AND c <> 1 );
-a b
-1 NULL
-2 NULL
-SET SESSION optimizer_switch = @old_optimizer_switch;
-DROP TABLE t1, t2, t3, t4, t5;
-#
-# Bug#58207: invalid memory reads when using default column value and
-# tmptable needed
-#
-CREATE TABLE t(a VARCHAR(245) DEFAULT
-'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
-INSERT INTO t VALUES (''),(''),(''),(''),(''),(''),(''),(''),(''),(''),('');
-SELECT * FROM (SELECT default(a) FROM t GROUP BY a) d;
-default(a)
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-DROP TABLE t;
-#
-# LP BUG#1009187, MDEV-373, MYSQL bug#58628
-# Wrong result for a query with [NOT] IN subquery predicate if
-# the left part of the predicate is explicit NULL
-#
-CREATE TABLE t1 (pk INT NOT NULL, i INT NOT NULL);
-INSERT INTO t1 VALUES (0,10), (1,20), (2,30), (3,40);
-CREATE TABLE t2a (pk INT NOT NULL, i INT NOT NULL, PRIMARY KEY(i,pk));
-INSERT INTO t2a VALUES (0,0), (1,1), (2,2), (3,3);
-CREATE TABLE t2b (pk INT, i INT);
-INSERT INTO t2b VALUES (0,0), (1,1), (2,2), (3,3);
-CREATE TABLE t2c (pk INT NOT NULL, i INT NOT NULL);
-INSERT INTO t2c VALUES (0,0), (1,1), (2,2), (3,3);
-create index it2c on t2c (i,pk);
-CREATE TABLE t2d (pk INT NOT NULL, i INT NOT NULL, PRIMARY KEY(i));
-INSERT INTO t2d VALUES (0,0), (1,1), (2,2), (3,3);
-EXPLAIN
-SELECT * FROM t1 WHERE NULL NOT IN (SELECT t2a.i FROM t2a WHERE t2a.pk = t1.pk);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2a unique_subquery PRIMARY PRIMARY 8 const,test.t1.pk 1 Using index; Using where; Full scan on NULL key
-SELECT * FROM t1 WHERE NULL NOT IN (SELECT t2a.i FROM t2a WHERE t2a.pk = t1.pk);
-pk i
-SELECT * FROM t1 WHERE 1+NULL NOT IN (SELECT t2a.i FROM t2a WHERE t2a.pk = t1.pk);
-pk i
-SELECT * FROM t1 WHERE NULL IN (SELECT t2a.i FROM t2a WHERE t2a.pk = t1.pk) IS UNKNOWN;
-pk i
-0 10
-1 20
-2 30
-3 40
-SELECT t1.pk, NULL NOT IN (SELECT t2a.i FROM t2a WHERE t2a.pk = t1.pk) FROM t1;
-pk NULL NOT IN (SELECT t2a.i FROM t2a WHERE t2a.pk = t1.pk)
-0 NULL
-1 NULL
-2 NULL
-3 NULL
-EXPLAIN
-SELECT * FROM t1 WHERE NULL NOT IN (SELECT t2b.i FROM t2b WHERE t2b.pk = t1.pk);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2b ALL NULL NULL NULL NULL 4 Using where
-SELECT * FROM t1 WHERE NULL NOT IN (SELECT t2b.i FROM t2b WHERE t2b.pk = t1.pk);
-pk i
-SELECT * FROM t1 WHERE NULL IN (SELECT t2b.i FROM t2b WHERE t2b.pk = t1.pk) IS UNKNOWN;
-pk i
-0 10
-1 20
-2 30
-3 40
-SELECT t1.pk, NULL NOT IN (SELECT t2b.i FROM t2b WHERE t2b.pk = t1.pk) FROM t1;
-pk NULL NOT IN (SELECT t2b.i FROM t2b WHERE t2b.pk = t1.pk)
-0 NULL
-1 NULL
-2 NULL
-3 NULL
-EXPLAIN
-SELECT * FROM t1 WHERE NULL NOT IN (SELECT t2c.i FROM t2c WHERE t2c.pk = t1.pk);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2c index_subquery it2c it2c 8 const,test.t1.pk 2 Using index; Using where; Full scan on NULL key
-SELECT * FROM t1 WHERE NULL NOT IN (SELECT t2c.i FROM t2c WHERE t2c.pk = t1.pk);
-pk i
-SELECT * FROM t1 WHERE NULL IN (SELECT t2c.i FROM t2c WHERE t2c.pk = t1.pk) IS UNKNOWN;
-pk i
-0 10
-1 20
-2 30
-3 40
-SELECT t1.pk, NULL NOT IN (SELECT t2c.i FROM t2c WHERE t2c.pk = t1.pk) FROM t1;
-pk NULL NOT IN (SELECT t2c.i FROM t2c WHERE t2c.pk = t1.pk)
-0 NULL
-1 NULL
-2 NULL
-3 NULL
-EXPLAIN
-SELECT * FROM t1 WHERE NULL NOT IN (SELECT t2d.i FROM t2d WHERE t2d.pk = t1.pk);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2d const PRIMARY PRIMARY 4 const 1 Using where; Full scan on NULL key
-SELECT * FROM t1 WHERE NULL NOT IN (SELECT t2d.i FROM t2d WHERE t2d.pk = t1.pk);
-pk i
-SELECT * FROM t1 WHERE NULL IN (SELECT t2d.i FROM t2d WHERE t2d.pk = t1.pk) IS UNKNOWN;
-pk i
-0 10
-1 20
-2 30
-3 40
-SELECT t1.pk, NULL NOT IN (SELECT t2d.i FROM t2d WHERE t2d.pk = t1.pk) FROM t1;
-pk NULL NOT IN (SELECT t2d.i FROM t2d WHERE t2d.pk = t1.pk)
-0 NULL
-1 NULL
-2 NULL
-3 NULL
-EXPLAIN
-SELECT * FROM t1 WHERE (NULL, 1) NOT IN (SELECT t2a.i, t2a.pk FROM t2a WHERE t2a.pk = t1.pk);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2a unique_subquery PRIMARY PRIMARY 8 const,test.t1.pk 1 Using index; Using where; Full scan on NULL key
-SELECT * FROM t1 WHERE (NULL, 1) NOT IN (SELECT t2a.i, t2a.pk FROM t2a WHERE t2a.pk = t1.pk);
-pk i
-0 10
-2 30
-3 40
-SELECT (NULL, 1) NOT IN (SELECT t2a.i, t2a.pk FROM t2a WHERE t2a.pk = t1.pk) from t1;
-(NULL, 1) NOT IN (SELECT t2a.i, t2a.pk FROM t2a WHERE t2a.pk = t1.pk)
-1
-NULL
-1
-1
-EXPLAIN
-SELECT * FROM t1 WHERE (NULL, 1) NOT IN (SELECT t2b.i, t2b.pk FROM t2b WHERE t2b.pk = t1.pk);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2b ALL NULL NULL NULL NULL 4 Using where
-SELECT * FROM t1 WHERE (NULL, 1) NOT IN (SELECT t2b.i, t2b.pk FROM t2b WHERE t2b.pk = t1.pk);
-pk i
-0 10
-2 30
-3 40
-SELECT (NULL, 1) NOT IN (SELECT t2b.i, t2b.pk FROM t2b WHERE t2b.pk = t1.pk) from t1;
-(NULL, 1) NOT IN (SELECT t2b.i, t2b.pk FROM t2b WHERE t2b.pk = t1.pk)
-1
-NULL
-1
-1
-EXPLAIN
-SELECT * FROM t1 WHERE (NULL, 1) NOT IN (SELECT t2c.i, t2c.pk FROM t2c WHERE t2c.pk = t1.pk);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2c index_subquery it2c it2c 8 const,test.t1.pk 2 Using index; Using where; Full scan on NULL key
-SELECT * FROM t1 WHERE (NULL, 1) NOT IN (SELECT t2c.i, t2c.pk FROM t2c WHERE t2c.pk = t1.pk);
-pk i
-0 10
-2 30
-3 40
-SELECT (NULL, 1) NOT IN (SELECT t2c.i, t2c.pk FROM t2c WHERE t2c.pk = t1.pk) from t1;
-(NULL, 1) NOT IN (SELECT t2c.i, t2c.pk FROM t2c WHERE t2c.pk = t1.pk)
-1
-NULL
-1
-1
-EXPLAIN
-SELECT * FROM t1 WHERE (NULL, 1) NOT IN (SELECT t2d.i, t2d.pk FROM t2d WHERE t2d.pk = t1.pk);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2d const PRIMARY PRIMARY 4 const 1 Using where; Full scan on NULL key
-SELECT * FROM t1 WHERE (NULL, 1) NOT IN (SELECT t2d.i, t2d.pk FROM t2d WHERE t2d.pk = t1.pk);
-pk i
-0 10
-2 30
-3 40
-SELECT (NULL, 1) NOT IN (SELECT t2d.i, t2d.pk FROM t2d WHERE t2d.pk = t1.pk) from t1;
-(NULL, 1) NOT IN (SELECT t2d.i, t2d.pk FROM t2d WHERE t2d.pk = t1.pk)
-1
-NULL
-1
-1
-drop table t1, t2a, t2b, t2c, t2d;
-#
-# End of 5.1 tests.
-#
-#
-# BUG#46743 "Azalea processing correlated, aggregate SELECT
-# subqueries incorrectly"
-#
-CREATE TABLE t1 (c int);
-INSERT INTO t1 VALUES (NULL);
-CREATE TABLE t2 (d int , KEY (d));
-INSERT INTO t2 VALUES (NULL),(NULL);
-0 rows in subquery
-SELECT 1 AS RESULT FROM t2,t1 WHERE d = c;
-RESULT
-base query
-SELECT (SELECT 1 FROM t2 WHERE d = c) AS RESULT FROM t1 ;
-RESULT
-NULL
-EXPLAIN EXTENDED SELECT (SELECT 1 FROM t2 WHERE d = c) AS RESULT FROM t1 ;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1276 Field or reference 'test.t1.c' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select (/* select#2 */ select 1 from `test`.`t2` where 0) AS `RESULT` from dual
-first equivalent variant
-SELECT (SELECT 1 FROM t2 WHERE d = IFNULL(c,NULL)) AS RESULT FROM t1 GROUP BY c ;
-RESULT
-NULL
-EXPLAIN EXTENDED SELECT (SELECT 1 FROM t2 WHERE d = IFNULL(c,NULL)) AS RESULT FROM t1 GROUP BY c;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1276 Field or reference 'test.t1.c' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select (/* select#2 */ select 1 from `test`.`t2` where 0) AS `RESULT` from dual group by NULL
-second equivalent variant
-SELECT (SELECT 1 FROM t2 WHERE d = c) AS RESULT FROM t1 GROUP BY c ;
-RESULT
-NULL
-EXPLAIN EXTENDED SELECT (SELECT 1 FROM t2 WHERE d = c) AS RESULT FROM t1 GROUP BY c ;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1276 Field or reference 'test.t1.c' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select (/* select#2 */ select 1 from `test`.`t2` where 0) AS `RESULT` from dual group by NULL
-DROP TABLE t1,t2;
-#
-# BUG#45928 "Differing query results depending on MRR and
-# engine_condition_pushdown settings"
-#
-CREATE TABLE `t1` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`time_nokey` time NOT NULL,
-`varchar_key` varchar(1) NOT NULL,
-`varchar_nokey` varchar(1) NOT NULL,
-PRIMARY KEY (`pk`),
-KEY `varchar_key` (`varchar_key`)
-) AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
-INSERT INTO `t1` VALUES (10,'00:00:00','i','i'),(11,'00:00:00','','');
-set @old_optimizer_switch = @@session.optimizer_switch;
-SET SESSION OPTIMIZER_SWITCH = 'materialization=off,semijoin=off,loosescan=off,firstmatch=off,mrr=on,engine_condition_pushdown=on';
-Warnings:
-Warning 1681 'engine_condition_pushdown=on' is deprecated and will be removed in a future release
-SELECT `time_nokey` G1 FROM t1 WHERE ( `varchar_nokey` , `varchar_key` ) IN (
-SELECT `varchar_nokey` , `varchar_nokey` ) AND `varchar_key` >= 'c' HAVING G1 ORDER
-BY `pk` ;
-G1
-set @@session.optimizer_switch = @old_optimizer_switch;
-DROP TABLE t1;
-#
-# During work with BUG#45863 I had problems with a query that was
-# optimized differently in regular and prepared mode.
-# Because there was a bug in one of the selected strategies, I became
-# aware of the problem. Adding an EXPLAIN query to catch this.
-DROP TABLE IF EXISTS t1, t2, t3;
-CREATE TABLE t1
-(EMPNUM CHAR(3) NOT NULL,
-EMPNAME CHAR(20),
-GRADE DECIMAL(4),
-CITY CHAR(15));
-CREATE TABLE t2
-(PNUM CHAR(3) NOT NULL,
-PNAME CHAR(20),
-PTYPE CHAR(6),
-BUDGET DECIMAL(9),
-CITY CHAR(15));
-CREATE TABLE t3
-(EMPNUM CHAR(3) NOT NULL,
-PNUM CHAR(3) NOT NULL,
-HOURS DECIMAL(5));
-INSERT INTO t1 VALUES ('E1','Alice',12,'Deale');
-INSERT INTO t1 VALUES ('E2','Betty',10,'Vienna');
-INSERT INTO t1 VALUES ('E3','Carmen',13,'Vienna');
-INSERT INTO t1 VALUES ('E4','Don',12,'Deale');
-INSERT INTO t1 VALUES ('E5','Ed',13,'Akron');
-INSERT INTO t2 VALUES ('P1','MXSS','Design',10000,'Deale');
-INSERT INTO t2 VALUES ('P2','CALM','Code',30000,'Vienna');
-INSERT INTO t2 VALUES ('P3','SDP','Test',30000,'Tampa');
-INSERT INTO t2 VALUES ('P4','SDP','Design',20000,'Deale');
-INSERT INTO t2 VALUES ('P5','IRM','Test',10000,'Vienna');
-INSERT INTO t2 VALUES ('P6','PAYR','Design',50000,'Deale');
-INSERT INTO t3 VALUES ('E1','P1',40);
-INSERT INTO t3 VALUES ('E1','P2',20);
-INSERT INTO t3 VALUES ('E1','P3',80);
-INSERT INTO t3 VALUES ('E1','P4',20);
-INSERT INTO t3 VALUES ('E1','P5',12);
-INSERT INTO t3 VALUES ('E1','P6',12);
-INSERT INTO t3 VALUES ('E2','P1',40);
-INSERT INTO t3 VALUES ('E2','P2',80);
-INSERT INTO t3 VALUES ('E3','P2',20);
-INSERT INTO t3 VALUES ('E4','P2',20);
-INSERT INTO t3 VALUES ('E4','P4',40);
-INSERT INTO t3 VALUES ('E4','P5',80);
-SET @old_optimizer_switch = @@session.optimizer_switch;
-SET @old_join_cache_level = @@session.join_cache_level;
-SET SESSION optimizer_switch = 'firstmatch=on,loosescan=on,materialization=on,in_to_exists=off,semijoin=on';
-SET SESSION join_cache_level = 1;
-CREATE UNIQUE INDEX t1_IDX ON t1(EMPNUM);
-EXPLAIN SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
-(SELECT EMPNUM
-FROM t3
-WHERE PNUM IN
-(SELECT PNUM
-FROM t2
-WHERE PTYPE = 'Design'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL t1_IDX NULL NULL NULL 5
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 3 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 Using where
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-PREPARE stmt FROM "EXPLAIN SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
- (SELECT EMPNUM
- FROM t3
- WHERE PNUM IN
- (SELECT PNUM
- FROM t2
- WHERE PTYPE = 'Design'))";
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL t1_IDX NULL NULL NULL 5
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 3 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 Using where
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL t1_IDX NULL NULL NULL 5
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 3 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 Using where
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-DEALLOCATE PREPARE stmt;
-DROP INDEX t1_IDX ON t1;
-CREATE INDEX t1_IDX ON t1(EMPNUM);
-EXPLAIN SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
-(SELECT EMPNUM
-FROM t3
-WHERE PNUM IN
-(SELECT PNUM
-FROM t2
-WHERE PTYPE = 'Design'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL t1_IDX NULL NULL NULL 5
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 3 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 Using where
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-PREPARE stmt FROM "EXPLAIN SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
- (SELECT EMPNUM
- FROM t3
- WHERE PNUM IN
- (SELECT PNUM
- FROM t2
- WHERE PTYPE = 'Design'))";
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL t1_IDX NULL NULL NULL 5
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 3 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 Using where
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL t1_IDX NULL NULL NULL 5
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 3 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 Using where
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-DEALLOCATE PREPARE stmt;
-DROP INDEX t1_IDX ON t1;
-EXPLAIN SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
-(SELECT EMPNUM
-FROM t3
-WHERE PNUM IN
-(SELECT PNUM
-FROM t2
-WHERE PTYPE = 'Design'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 3 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 Using where
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-PREPARE stmt FROM "EXPLAIN SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
- (SELECT EMPNUM
- FROM t3
- WHERE PNUM IN
- (SELECT PNUM
- FROM t2
- WHERE PTYPE = 'Design'))";
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 3 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 Using where
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 3 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 Using where
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 12 Using where; Using join buffer (flat, BNL join)
-DEALLOCATE PREPARE stmt;
-SET SESSION optimizer_switch = @old_optimizer_switch;
-SET SESSION join_cache_level = @old_join_cache_level;
-DROP TABLE t1, t2, t3;
-#
-# BUG#45221 Query SELECT pk FROM C WHERE pk IN (SELECT int_key) failing
-#
-CREATE TABLE t1 (
-i1_key INT,
-i2 INT,
-i3 INT,
-KEY i1_index (i1_key)
-);
-INSERT INTO t1 VALUES (9,1,2), (9,2,1);
-CREATE TABLE t2 (
-pk INT NOT NULL,
-i1 INT,
-PRIMARY KEY (pk)
-);
-INSERT INTO t2 VALUES (9,1);
-# Enable Index condition pushdown
-set @old_icp=@@optimizer_switch;
-SET SESSION optimizer_switch="engine_condition_pushdown=on";
-Warnings:
-Warning 1681 'engine_condition_pushdown=on' is deprecated and will be removed in a future release
-
-SELECT pk
-FROM t2
-WHERE
-pk IN (
-SELECT i1_key
-FROM t1
-WHERE t1.i2 < t1.i3 XOR t2.i1 > 1
-ORDER BY t1.i2 desc);
-pk
-9
-# Restore old value for Index condition pushdown
-SET SESSION optimizer_switch=@old_icp;
-DROP TABLE t1,t2;
-#
-# End of 5.3 tests.
-#
-#
-# Bug#53236 Segfault in DTCollation::set(DTCollation&)
-#
-CREATE TABLE t1 (
-pk INTEGER AUTO_INCREMENT,
-col_varchar VARCHAR(1),
-PRIMARY KEY (pk)
-)
-;
-INSERT INTO t1 (col_varchar)
-VALUES
-('w'),
-('m')
-;
-SELECT table1.pk
-FROM ( t1 AS table1 JOIN t1 AS table2 ON (table1.col_varchar =
-table2.col_varchar) )
-WHERE ( 1, 2 ) IN ( SELECT SUBQUERY1_t1.pk AS SUBQUERY1_field1,
-SUBQUERY1_t1.pk AS SUBQUERY1_field2
-FROM ( t1 AS SUBQUERY1_t1 JOIN t1 AS SUBQUERY1_t2
-ON (SUBQUERY1_t2.col_varchar =
-SUBQUERY1_t1.col_varchar) ) )
-;
-pk
-drop table t1;
-#
-# BUG#716293: "Range checked for each record" is not used if condition refers to outside of subquery
-#
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, b int, `filler` char(200), key(a), key (b));
-insert into t2
-select A.a + 10*B.a + 100 * C.a, A.a + 10*B.a + 100 * C.a, 'filler' from t1 A, t1 B, t1 C;
-# The following must use "Range checked for each record" for table B
-explain
-select a,
-(select sum(X.a+B.b) from t1 X, t2 B where B.a=A.a or B.b=A.a)
-from t1 A;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 10
-2 DEPENDENT SUBQUERY X ALL NULL NULL NULL NULL 10
-2 DEPENDENT SUBQUERY B ALL a,b NULL NULL NULL 1000 Range checked for each record (index map: 0x3)
-drop table t1, t2;
-#
-# BUG#723822: Crash in get_constant_key_infix with EXISTS ( SELECT .. DISTINCT )
-#
-CREATE TABLE t1 ( f1 int(11), f3 varchar(1)) ;
-INSERT INTO t1 VALUES ('8','c'),('5','f');
-ALTER TABLE t1 ADD KEY (f3,f1);
-CREATE TABLE t2 ( f4 varchar(1)) ;
-INSERT INTO t2 VALUES ('f'),('d');
-SELECT * FROM t2
-WHERE EXISTS (
-SELECT DISTINCT f3
-FROM t1
-WHERE f3 <= t2.f4
-);
-f4
-f
-d
-drop table t1,t2;
-#
-# LP BUG#718763 Second crash in select_describe() and materialization
-#
-CREATE TABLE t1 ( f1 int(11), f3 int(11), f10 varchar(1), KEY (f3)) ;
-INSERT INTO t1 VALUES ('28','6','m'),('29','4','c');
-CREATE TABLE t2 (f11 varchar(1)) ;
-INSERT INTO t2 VALUES ('f'),('d');
-SET @old_optimizer_switch = @@session.optimizer_switch;
-SET SESSION optimizer_switch = 'materialization=on,in_to_exists=off';
-EXPLAIN
-SELECT * FROM t1
-WHERE f3 = (
-SELECT t1.f3 FROM t1
-WHERE ( t1.f10 ) IN ( SELECT f11 FROM t2 GROUP BY f11 ));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1
-WHERE f3 = (
-SELECT t1.f3 FROM t1
-WHERE ( t1.f10 ) IN ( SELECT f11 FROM t2 GROUP BY f11 ));
-f1 f3 f10
-EXPLAIN
-SELECT * FROM t1
-WHERE f3 = (
-SELECT f3 FROM t1
-WHERE ( f10, f10 ) IN ( SELECT f11, f11 FROM t2 GROUP BY f11 ));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY <subquery3> eq_ref distinct_key distinct_key 8 func,func 1
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1
-WHERE f3 = (
-SELECT f3 FROM t1
-WHERE ( f10, f10 ) IN ( SELECT f11, f11 FROM t2 GROUP BY f11 ));
-f1 f3 f10
-SET @@optimizer_switch = 'materialization=on,in_to_exists=off,semijoin=off';
-EXPLAIN
-SELECT * FROM t1
-WHERE f3 = (
-SELECT t1.f3 FROM t1
-WHERE ( t1.f10 ) IN ( SELECT max(f11) FROM t2 GROUP BY f11 ));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref f3 f3 5 const 0 Using where
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using temporary
-SELECT * FROM t1
-WHERE f3 = (
-SELECT t1.f3 FROM t1
-WHERE ( t1.f10 ) IN ( SELECT max(f11) FROM t2 GROUP BY f11 ));
-f1 f3 f10
-EXPLAIN
-SELECT * FROM t1
-WHERE f3 = (
-SELECT f3 FROM t1
-WHERE ( f10, f10 ) IN ( SELECT max(f11), f11 FROM t2 GROUP BY f11 ));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref f3 f3 5 const 0 Using where
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using temporary
-SELECT * FROM t1
-WHERE f3 = (
-SELECT f3 FROM t1
-WHERE ( f10, f10 ) IN ( SELECT max(f11), f11 FROM t2 GROUP BY f11 ));
-f1 f3 f10
-SET SESSION optimizer_switch = @old_optimizer_switch;
-drop table t1,t2;
-#
-# LP BUG#715738: Wrong result with implicit grouping and empty result set
-#
-CREATE TABLE t1 (f1 int, f2 int);
-CREATE TABLE t2 (f3 int, f4 int not null, PRIMARY KEY (f3));
-set @save_optimizer_switch=@@optimizer_switch;
-SET @@optimizer_switch = 'materialization=on,in_to_exists=off,semijoin=off';
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4) FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4) FROM t2);
-f1 f2
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3+f4, min(f4) FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3+f4, min(f4) FROM t2);
-f1 f2
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4)+max(f4) FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4)+max(f4) FROM t2);
-f1 f2
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, min(f4) FROM t2) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (2, 0) NOT IN (SELECT f3, min(f4) FROM t2) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, count(f4) FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, count(f4) FROM t2);
-f1 f2
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, f3 + count(f4) FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, f3 + count(f4) FROM t2);
-f1 f2
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 HAVING max(f4) > 7) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 HAVING max(f4) > 7) as not_in;
-not_in
-1
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 HAVING max(f4) is null) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 HAVING max(f4) is null) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4) FROM t2) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4) FROM t2) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4)+f3 FROM t2) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4)+f3 FROM t2) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT min(f3)+f3, min(f4)+f3+max(f4) FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No matching min/max row
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT min(f3)+f3, min(f4)+f3+max(f4) FROM t2);
-f1 f2
-SET @@optimizer_switch = 'materialization=off,in_to_exists=on,semijoin=off';
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4) FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4) FROM t2);
-f1 f2
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3+f4, min(f4) FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3+f4, min(f4) FROM t2);
-f1 f2
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4)+max(f4) FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4)+max(f4) FROM t2);
-f1 f2
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, min(f4) FROM t2) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (2, 0) NOT IN (SELECT f3, min(f4) FROM t2) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, count(f4) FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, count(f4) FROM t2);
-f1 f2
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, f3 + count(f4) FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, f3 + count(f4) FROM t2);
-f1 f2
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 HAVING max(f4) > 7) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 HAVING max(f4) > 7) as not_in;
-not_in
-1
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 HAVING max(f4) is null) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 HAVING max(f4) is null) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4) FROM t2) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4) FROM t2) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4)+f3 FROM t2) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4)+f3 FROM t2) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT min(f3)+f3, min(f4)+f3+max(f4) FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No matching min/max row
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT min(f3)+f3, min(f4)+f3+max(f4) FROM t2);
-f1 f2
-INSERT INTO t1 VALUES (1, 2);
-INSERT INTO t1 VALUES (3, 4);
-INSERT INTO t2 VALUES (5, 6);
-INSERT INTO t2 VALUES (7, 8);
-SET @@optimizer_switch = 'materialization=on,in_to_exists=off,semijoin=off';
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4) FROM t2 WHERE f3 > 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4) FROM t2 WHERE f3 > 10);
-f1 f2
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3+f4, min(f4) FROM t2 WHERE f3 > 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3+f4, min(f4) FROM t2 WHERE f3 > 10);
-f1 f2
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4)+max(f4) FROM t2 WHERE f3 > 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4)+max(f4) FROM t2 WHERE f3 > 10);
-f1 f2
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, min(f4) FROM t2 WHERE f3 > 10) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT (2, 0) NOT IN (SELECT f3, min(f4) FROM t2 WHERE f3 > 10) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10);
-f1 f2
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, f3 + count(f4) FROM t2 WHERE f3 > 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, f3 + count(f4) FROM t2 WHERE f3 > 10);
-f1 f2
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10 HAVING max(f4) > 7) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10 HAVING max(f4) > 7) as not_in;
-not_in
-1
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10 HAVING max(f4) is null) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10 HAVING max(f4) is null) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4) FROM t2 WHERE f3 > 10) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4) FROM t2 WHERE f3 > 10) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4)+f3 FROM t2 WHERE f3 > 10) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4)+f3 FROM t2 WHERE f3 > 10) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT min(f3)+f3, min(f4)+f3+max(f4) FROM t2 WHERE f3 > 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No matching min/max row
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT min(f3)+f3, min(f4)+f3+max(f4) FROM t2 WHERE f3 > 10);
-f1 f2
-SET @@optimizer_switch = 'materialization=off,in_to_exists=on,semijoin=off';
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4) FROM t2 WHERE f3 > 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4) FROM t2 WHERE f3 > 10);
-f1 f2
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3+f4, min(f4) FROM t2 WHERE f3 > 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3+f4, min(f4) FROM t2 WHERE f3 > 10);
-f1 f2
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4)+max(f4) FROM t2 WHERE f3 > 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, min(f4)+max(f4) FROM t2 WHERE f3 > 10);
-f1 f2
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, min(f4) FROM t2 WHERE f3 > 10) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT (2, 0) NOT IN (SELECT f3, min(f4) FROM t2 WHERE f3 > 10) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10);
-f1 f2
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, f3 + count(f4) FROM t2 WHERE f3 > 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT f3, f3 + count(f4) FROM t2 WHERE f3 > 10);
-f1 f2
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10 HAVING max(f4) > 7) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10 HAVING max(f4) > 7) as not_in;
-not_in
-1
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10 HAVING max(f4) is null) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT (2, 0) NOT IN (SELECT f3, count(f4) FROM t2 WHERE f3 > 10 HAVING max(f4) is null) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4) FROM t2 WHERE f3 > 10) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4) FROM t2 WHERE f3 > 10) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4)+f3 FROM t2 WHERE f3 > 10) as not_in;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t2 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Rowid-ordered scan
-SELECT (2, 0) NOT IN (SELECT max(f3+f3), count(f4)+f3 FROM t2 WHERE f3 > 10) as not_in;
-not_in
-NULL
-EXPLAIN
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT min(f3)+f3, min(f4)+f3+max(f4) FROM t2 WHERE f3 > 10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No matching min/max row
-SELECT * FROM t1 WHERE (2, 0) NOT IN (SELECT min(f3)+f3, min(f4)+f3+max(f4) FROM t2 WHERE f3 > 10);
-f1 f2
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1,t2;
-#
-# LP BUG#613029 Wrong result with materialization and semijoin, and
-# valgrind warnings in Protocol::net_store_data with materialization
-# for implicit grouping
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-f2 int(11) NOT NULL,
-f3 varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY f2 (f2));
-INSERT INTO t1 VALUES (1,9,'x');
-INSERT INTO t1 VALUES (2,5,'g');
-CREATE TABLE t2 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-f2 int(11) NOT NULL,
-f3 varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY f2 (f2));
-INSERT INTO t2 VALUES (1,7,'p');
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch='materialization=off,in_to_exists=on,semijoin=off';
-EXPLAIN
-SELECT t1.f3, MAX(t1.f2)
-FROM t1, t2
-WHERE (t2.pk = t1.pk) AND t2.pk IN (SELECT f2 FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system PRIMARY NULL NULL NULL 1
-1 PRIMARY t1 const PRIMARY PRIMARY 4 const 1
-2 DEPENDENT SUBQUERY t1 index_subquery f2 f2 4 func 2 Using index
-SELECT t1.f3, MAX(t1.f2)
-FROM t1, t2
-WHERE (t2.pk = t1.pk) AND t2.pk IN (SELECT f2 FROM t1);
-f3 MAX(t1.f2)
-NULL NULL
-set @@optimizer_switch='materialization=on,in_to_exists=off,semijoin=off';
-EXPLAIN
-SELECT t1.f3, MAX(t1.f2)
-FROM t1, t2
-WHERE (t2.pk = t1.pk) AND t2.pk IN (SELECT f2 FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system PRIMARY NULL NULL NULL 1
-1 PRIMARY t1 const PRIMARY PRIMARY 4 const 1
-2 MATERIALIZED t1 index NULL f2 4 NULL 2 Using index
-SELECT t1.f3, MAX(t1.f2)
-FROM t1, t2
-WHERE (t2.pk = t1.pk) AND t2.pk IN (SELECT f2 FROM t1);
-f3 MAX(t1.f2)
-NULL NULL
-TODO: add a test case for semijoin when the wrong result is fixed
-set @@optimizer_switch='materialization=off,semijoin=on';
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1, t2;
-#
-# LP BUG#777691 Wrong result with subqery in select list and subquery cache=off in maria-5.3
-#
-CREATE TABLE t1 ( f1 varchar(32)) ;
-INSERT INTO t1 VALUES ('b'),('x'),('c'),('x');
-CREATE TABLE t2 ( f2 int, f3 varchar(32)) ;
-INSERT INTO t2 VALUES (1,'x');
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch='materialization=off,in_to_exists=on,subquery_cache=off';
-EXPLAIN
-SELECT t1.f1, ( SELECT MAX( f2 ) FROM t2 WHERE t2.f3 = t1.f1 ) as max_f2 FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 DEPENDENT SUBQUERY t2 system NULL NULL NULL NULL 1
-SELECT t1.f1, ( SELECT MAX( f2 ) FROM t2 WHERE t2.f3 = t1.f1 ) as max_f2 FROM t1;
-f1 max_f2
-b NULL
-x 1
-c NULL
-x 1
-set @@optimizer_switch='materialization=on,in_to_exists=off,subquery_cache=off';
-EXPLAIN
-SELECT t1.f1, ( SELECT MAX( f2 ) FROM t2 WHERE t2.f3 = t1.f1 ) as max_f2 FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 DEPENDENT SUBQUERY t2 system NULL NULL NULL NULL 1
-SELECT t1.f1, ( SELECT MAX( f2 ) FROM t2 WHERE t2.f3 = t1.f1 ) as max_f2 FROM t1;
-f1 max_f2
-b NULL
-x 1
-c NULL
-x 1
-set @@optimizer_switch='materialization=off,in_to_exists=on,subquery_cache=off';
-Even when t2 is not constant table, the result must be the same.
-INSERT INTO t2 VALUES (2,'y');
-EXPLAIN
-SELECT t1.f1, ( SELECT MAX( f2 ) FROM t2 WHERE t2.f3 = t1.f1 ) as max_f2 FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT t1.f1, ( SELECT MAX( f2 ) FROM t2 WHERE t2.f3 = t1.f1 ) as max_f2 FROM t1;
-f1 max_f2
-b NULL
-x 1
-c NULL
-x 1
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1, t2;
-#
-# LP BUG#641203 Query returns rows where no result is expected (impossible WHERE)
-#
-CREATE TABLE t1 (c1 varchar(1) DEFAULT NULL);
-CREATE TABLE t2 (c1 varchar(1) DEFAULT NULL);
-INSERT INTO t2 VALUES ('k'), ('d');
-CREATE TABLE t3 (c1 varchar(1) DEFAULT NULL);
-INSERT INTO t3 VALUES ('a'), ('b'), ('c');
-CREATE TABLE t4 (c1 varchar(1) primary key);
-INSERT INTO t4 VALUES ('k'), ('d');
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-SET optimizer_switch='semijoin_with_cache=off';
-SET optimizer_switch='materialization=off';
-EXPLAIN
-SELECT * FROM t1 RIGHT JOIN t2 ON t1.c1 WHERE 's' IN (SELECT c1 FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; FirstMatch(t1)
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-SELECT * FROM t1 RIGHT JOIN t2 ON t1.c1 WHERE 's' IN (SELECT c1 FROM t2);
-c1 c1
-EXPLAIN
-SELECT * FROM t2 LEFT JOIN t1 ON t1.c1 WHERE 's' IN (SELECT c1 FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; FirstMatch(t1)
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-SELECT * FROM t2 LEFT JOIN t1 ON t1.c1 WHERE 's' IN (SELECT c1 FROM t2);
-c1 c1
-SET optimizer_switch='materialization=on';
-EXPLAIN
-SELECT * FROM (t2 LEFT JOIN t1 ON t1.c1) LEFT JOIN t3 on t3.c1 WHERE 's' IN (SELECT c1 FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM (t2 LEFT JOIN t1 ON t1.c1) LEFT JOIN t3 on t3.c1 WHERE 's' IN (SELECT c1 FROM t2);
-c1 c1 c1
-EXPLAIN
-SELECT * FROM t4 LEFT JOIN t2 ON t4.c1 WHERE 's' IN (SELECT c1 FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY t4 index NULL PRIMARY 3 NULL 2 Using index; Using join buffer (flat, BNL join)
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t4 LEFT JOIN t2 ON t4.c1 WHERE 's' IN (SELECT c1 FROM t2);
-c1 c1
-SET optimizer_switch=@save_optimizer_switch;
-drop table t1, t2, t3, t4;
-#
-# LP BUG#675981 Assertion `cache != __null' failed in sub_select_cache()
-# on EXPLAIN
-#
-CREATE TABLE t1 (f1 int,f2 int) ;
-INSERT IGNORE INTO t1 VALUES ('2','5'),('2',NULL);
-CREATE TABLE t2 (f1 int, f5 int) ;
-INSERT IGNORE INTO t2 VALUES (1,0);
-CREATE TABLE t3 (f4 int) ;
-INSERT IGNORE INTO t3 VALUES (0),(0);
-set @@optimizer_switch='in_to_exists=on,materialization=off,semijoin=off';
-EXPLAIN
-SELECT * FROM t2
-WHERE f1 IN (SELECT t1.f2 FROM t1 JOIN t3 ON t3.f4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-drop table t1, t2, t3;
-#
-# LP BUG#680005 Second assertion `cache != __null' failed in
-# sub_select_cache() on EXPLAIN
-#
-CREATE TABLE t1 (f1 int,f2 int,f4 int,f6 int,KEY (f4)) ;
-INSERT IGNORE INTO t1 VALUES
-('1','5','1','0'),('2','1','1','0'),('2','2','2','0'),('0',NULL,'0','0'),
-('2','1','2','0'),('2','0','0','0'),('2','2','2','0'),('2','8','2','0'),
-('2','7','2','0'),('2','5','2','0'),('2',NULL,'1','0');
-CREATE TABLE t2 (f3 int) ;
-INSERT IGNORE INTO t2 VALUES ('7');
-CREATE TABLE t3 (f3 int) ;
-INSERT IGNORE INTO t3 VALUES ('2');
-EXPLAIN
-SELECT t1.f4
-FROM t2 JOIN t1 ON t1.f6
-WHERE
-( t1.f2 ) IN (SELECT SUBQUERY2_t1.f3
-FROM t3 AS SUBQUERY2_t1
-JOIN
-(t1 AS SUBQUERY2_t2
-JOIN
-t1 AS SUBQUERY2_t3 ON SUBQUERY2_t3.f1)
-ON SUBQUERY2_t3.f2)
-GROUP BY t1.f4 ORDER BY t1.f1 LIMIT 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1 Using temporary; Using filesort
-1 PRIMARY t1 ALL NULL NULL NULL NULL 11 Using where
-2 DEPENDENT SUBQUERY SUBQUERY2_t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY SUBQUERY2_t2 index NULL f4 5 NULL 11 Using index
-2 DEPENDENT SUBQUERY SUBQUERY2_t3 ALL NULL NULL NULL NULL 11 Using where; Using join buffer (flat, BNL join)
-drop table t1, t2, t3;
-#
-# LP BUG#680038 bool close_thread_table(THD*, TABLE**):
-# Assertion `table->key_read == 0' failed in EXPLAIN
-#
-CREATE TABLE t1 (f1 int,f3 int,f4 int) ;
-INSERT IGNORE INTO t1 VALUES (NULL,1,0);
-CREATE TABLE t2 (f2 int,f4 int,f5 int) ;
-INSERT IGNORE INTO t2 VALUES (8,0,0),(5,0,0);
-CREATE TABLE t3 (f4 int,KEY (f4)) ;
-INSERT IGNORE INTO t3 VALUES (0),(0);
-set @@optimizer_switch='semijoin=off';
-EXPLAIN
-SELECT * FROM t1 WHERE
-(SELECT f2 FROM t2
-WHERE f4 <= ALL
-(SELECT max(SQ1_t1.f4)
-FROM t3 AS SQ1_t1 JOIN t3 AS SQ1_t3 ON SQ1_t3.f4
-GROUP BY SQ1_t1.f4));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-3 SUBQUERY SQ1_t1 index NULL f4 5 NULL 2 Using index; Using temporary
-3 SUBQUERY SQ1_t3 index f4 f4 5 NULL 2 Using where; Using index; Using join buffer (flat, BNL join)
-SELECT * FROM t1 WHERE
-(SELECT f2 FROM t2
-WHERE f4 <= ALL
-(SELECT max(SQ1_t1.f4)
-FROM t3 AS SQ1_t1 JOIN t3 AS SQ1_t3 ON SQ1_t3.f4
-GROUP BY SQ1_t1.f4));
-ERROR 21000: Subquery returns more than 1 row
-drop table t1, t2, t3;
-#
-# BUG#52317: Assertion failing in Field_varstring::store()
-# at field.cc:6833
-#
-CREATE TABLE t1 (i INTEGER);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (i INTEGER, KEY k(i));
-INSERT INTO t2 VALUES (1), (2);
-EXPLAIN
-SELECT i FROM t1 WHERE (1) NOT IN (SELECT i FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 SUBQUERY t2 index_subquery k k 5 const 2 Using index
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# LP BUG#680846: Crash in clear_tables() with subqueries
-#
-CREATE TABLE t1 (f3 int) ;
-INSERT IGNORE INTO t1 VALUES (0),(0);
-CREATE TABLE t2 (f1 int,f3 int,f4 varchar(32)) ;
-INSERT IGNORE INTO t2 VALUES (1,0,'f');
-EXPLAIN
-SELECT COUNT(t2.f3),
-(SELECT COUNT(f3) FROM t1 WHERE t2.f1) AS f9
-FROM t2 JOIN t1 ON t1.f3
-WHERE ('v') IN (SELECT f4 FROM t2)
-GROUP BY f9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(t2.f3),
-(SELECT COUNT(f3) FROM t1 WHERE t2.f1) AS f9
-FROM t2 JOIN t1 ON t1.f3
-WHERE ('v') IN (SELECT f4 FROM t2)
-GROUP BY f9;
-COUNT(t2.f3) f9
-EXPLAIN
-SELECT COUNT(t2.f3),
-(SELECT COUNT(f3) FROM t1 WHERE t2.f1) AS f9
-FROM t2 JOIN t1 ON t1.f3
-WHERE ('v') IN (SELECT f4 FROM t2)
-ORDER BY f9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(t2.f3),
-(SELECT COUNT(f3) FROM t1 WHERE t2.f1) AS f9
-FROM t2 JOIN t1 ON t1.f3
-WHERE ('v') IN (SELECT f4 FROM t2)
-ORDER BY f9;
-COUNT(t2.f3) f9
-0 NULL
-EXPLAIN
-SELECT COUNT(t2.f3),
-(SELECT t2.f1 FROM t1 limit 1) AS f9
-FROM t2 JOIN t1
-WHERE ('v') IN (SELECT f4 FROM t2)
-GROUP BY f9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(t2.f3),
-(SELECT t2.f1 FROM t1 limit 1) AS f9
-FROM t2 JOIN t1
-WHERE ('v') IN (SELECT f4 FROM t2)
-GROUP BY f9;
-COUNT(t2.f3) f9
-EXPLAIN
-SELECT COUNT(t2.f3),
-(SELECT t2.f1 FROM t1 limit 1) AS f9
-FROM t2 JOIN t1
-WHERE ('v') IN (SELECT f4 FROM t2)
-ORDER BY f9;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(t2.f3),
-(SELECT t2.f1 FROM t1 limit 1) AS f9
-FROM t2 JOIN t1
-WHERE ('v') IN (SELECT f4 FROM t2)
-ORDER BY f9;
-COUNT(t2.f3) f9
-0 NULL
-drop table t1,t2;
-#
-# LP BUG#682683 Crash in create_tmp_table called from
-# JOIN::init_execution
-#
-CREATE TABLE t2 (f1 int) ;
-INSERT INTO t2 VALUES (1),(2);
-CREATE TABLE t1 (f1 int) ;
-EXPLAIN
-SELECT (SELECT f1 FROM t1) AS field1 FROM t2 GROUP BY field1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (SELECT f1 FROM t1) AS field1 FROM t2 GROUP BY field1;
-field1
-NULL
-EXPLAIN
-SELECT (SELECT f1 FROM t1) AS field1 FROM t2 ORDER BY field1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (SELECT f1 FROM t1) AS field1 FROM t2 ORDER BY field1;
-field1
-NULL
-NULL
-INSERT INTO t1 VALUES (1),(2);
-EXPLAIN
-SELECT (SELECT f1 FROM t1) AS field1 FROM t2 GROUP BY field1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT (SELECT f1 FROM t1) AS field1 FROM t2 GROUP BY field1;
-ERROR 21000: Subquery returns more than 1 row
-EXPLAIN
-SELECT (SELECT f1 FROM t1) AS field1 FROM t2 ORDER BY field1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT (SELECT f1 FROM t1) AS field1 FROM t2 ORDER BY field1;
-ERROR 21000: Subquery returns more than 1 row
-drop table t1,t2;
-#
-# LP BUG#680943 Assertion `!table || (!table->read_set ||
-# bitmap_is_set(table->read_set, field_index))' failed with subquery
-#
-CREATE TABLE t1 (f1 int,f3 int) ;
-INSERT IGNORE INTO t1 VALUES ('6','0'),('4','0');
-CREATE TABLE t2 (f1 int,f2 int,f3 int) ;
-INSERT IGNORE INTO t2 VALUES ('6','0','0'),('2','0','0');
-SELECT f2
-FROM (SELECT * FROM t2) AS alias1
-WHERE (SELECT SQ2_t2.f1
-FROM t1 JOIN t1 AS SQ2_t2 ON SQ2_t2.f3
-WHERE SQ2_t2.f3 AND alias1.f1)
-ORDER BY f3 ;
-f2
-drop table t1,t2;
-#
-# LP BUG#715062: Wrong result with VIEW + UNION + subquery in maria-5.3-mwl89
-#
-create table t1 (f1 int);
-create table t2 (f2 int);
-create table t3 (f3 int);
-insert into t1 values (2);
-insert into t2 values (2);
-insert into t3 values (7);
-CREATE VIEW v1 AS SELECT 2 UNION SELECT 2 ;
-CREATE VIEW v2 AS SELECT * from t1 UNION SELECT * from t2 ;
-set @save_optimizer_switch=@@optimizer_switch;
-SET @@optimizer_switch = 'in_to_exists=off,semijoin=off,materialization=on';
-EXPLAIN
-SELECT 'bug' FROM DUAL WHERE ( 5 ) IN ( SELECT * FROM v1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY <derived3> ALL NULL NULL NULL NULL 2 Using where
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL No tables used
-4 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL
-SELECT 'bug' FROM DUAL WHERE ( 5 ) IN ( SELECT * FROM v1 );
-bug
-EXPLAIN
-SELECT ( 5 ) IN ( SELECT * FROM v1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY <derived3> ALL NULL NULL NULL NULL 2 Using where
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL No tables used
-4 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL
-SELECT ( 5 ) IN ( SELECT * FROM v1 );
-( 5 ) IN ( SELECT * FROM v1 )
-0
-EXPLAIN
-SELECT 'bug' FROM DUAL WHERE ( 5 ) IN (SELECT * FROM v2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY <derived3> ALL NULL NULL NULL NULL 2 Using where
-3 DERIVED t1 system NULL NULL NULL NULL 1
-4 UNION t2 system NULL NULL NULL NULL 1
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL
-SELECT 'bug' FROM DUAL WHERE ( 5 ) IN (SELECT * FROM v2);
-bug
-EXPLAIN
-SELECT 'bug' FROM t3 WHERE ( 5 ) IN (SELECT * FROM v2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 system NULL NULL NULL NULL 1
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2
-3 DERIVED t1 system NULL NULL NULL NULL 1
-4 UNION t2 system NULL NULL NULL NULL 1
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL
-SELECT 'bug' FROM t3 WHERE ( 5 ) IN (SELECT * FROM v2);
-bug
-EXPLAIN
-SELECT ( 5 ) IN ( SELECT * FROM v2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY <derived3> ALL NULL NULL NULL NULL 2 Using where
-3 DERIVED t1 system NULL NULL NULL NULL 1
-4 UNION t2 system NULL NULL NULL NULL 1
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL
-SELECT ( 5 ) IN ( SELECT * FROM v2 );
-( 5 ) IN ( SELECT * FROM v2 )
-0
-SET @@optimizer_switch = 'in_to_exists=on,semijoin=off,materialization=off';
-EXPLAIN
-SELECT 'bug' FROM DUAL WHERE ( 5 ) IN ( SELECT * FROM v1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY <derived3> ALL NULL NULL NULL NULL 2 Using where
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL No tables used
-4 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL
-SELECT 'bug' FROM DUAL WHERE ( 5 ) IN ( SELECT * FROM v1 );
-bug
-EXPLAIN
-SELECT ( 5 ) IN ( SELECT * FROM v1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY <derived3> ALL NULL NULL NULL NULL 2 Using where
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL No tables used
-4 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL
-SELECT ( 5 ) IN ( SELECT * FROM v1 );
-( 5 ) IN ( SELECT * FROM v1 )
-0
-EXPLAIN
-SELECT 'bug' FROM DUAL WHERE ( 5 ) IN (SELECT * FROM v2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY <derived3> ALL NULL NULL NULL NULL 2 Using where
-3 DERIVED t1 system NULL NULL NULL NULL 1
-4 UNION t2 system NULL NULL NULL NULL 1
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL
-SELECT 'bug' FROM DUAL WHERE ( 5 ) IN (SELECT * FROM v2);
-bug
-EXPLAIN
-SELECT 'bug' FROM t3 WHERE ( 5 ) IN (SELECT * FROM v2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 system NULL NULL NULL NULL 1
-2 SUBQUERY <derived3> ALL NULL NULL NULL NULL 2 Using where
-3 DERIVED t1 system NULL NULL NULL NULL 1
-4 UNION t2 system NULL NULL NULL NULL 1
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL
-SELECT 'bug' FROM t3 WHERE ( 5 ) IN (SELECT * FROM v2);
-bug
-EXPLAIN
-SELECT ( 5 ) IN ( SELECT * FROM v2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY <derived3> ALL NULL NULL NULL NULL 2 Using where
-3 DERIVED t1 system NULL NULL NULL NULL 1
-4 UNION t2 system NULL NULL NULL NULL 1
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL
-SELECT ( 5 ) IN ( SELECT * FROM v2 );
-( 5 ) IN ( SELECT * FROM v2 )
-0
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1,t2,t3;
-drop view v1,v2;
-#
-# LP BUG#715069 Wrong result with GROUP BY inside subquery and materialization=off
-#
-CREATE TABLE t0 ( f1 int(11), f2 int(11), f10 varchar(1), PRIMARY KEY (f1)) ;
-INSERT INTO t0 VALUES (8,8,'u'),(10,5,'o');
-CREATE TABLE t1 (f1a int, f2a int not null, f3a varchar(3) not null, PRIMARY KEY (f1a)) ;
-INSERT INTO t1 VALUES
-(8,8,'a1a'),
-(10,5,'b1b');
-CREATE TABLE t2 (f1b int, f2b int not null, f3b varchar(3) not null, PRIMARY KEY (f1b)) ;
-INSERT INTO t2 VALUES
-(10,5,'d1d');
-set @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-set @@optimizer_switch = 'in_to_exists=on,materialization=off,semijoin=off';
-EXPLAIN
-SELECT alias2.f1 , alias2.f2
-FROM t0 AS alias1
-RIGHT JOIN t0 AS alias2 ON alias2.f10
-WHERE ( alias2.f1 , alias2.f2 ) IN ( SELECT max(f2) , f1 FROM t0 GROUP BY f2 , f1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY alias1 index NULL PRIMARY 4 NULL 2 Using where; Using index
-2 DEPENDENT SUBQUERY t0 ALL NULL NULL NULL NULL 2 Using temporary
-SELECT alias2.f1 , alias2.f2
-FROM t0 AS alias1
-RIGHT JOIN t0 AS alias2 ON alias2.f10
-WHERE ( alias2.f1 , alias2.f2 ) IN ( SELECT max(f2) , f1 FROM t0 GROUP BY f2 , f1 );
-f1 f2
-8 8
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'u'
-EXPLAIN
-SELECT * FROM t2 WHERE (f1b, f2b) IN (SELECT max(f1a), f2a FROM t1 GROUP BY f1a, f2a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using temporary
-SELECT * FROM t2 WHERE (f1b, f2b) IN (SELECT max(f1a), f2a FROM t1 GROUP BY f1a, f2a);
-f1b f2b f3b
-10 5 d1d
-EXPLAIN
-SELECT * FROM t2 WHERE (f1b) IN (SELECT max(f1a) FROM t1 GROUP BY f1a, f2a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using temporary
-SELECT * FROM t2 WHERE (f1b) IN (SELECT max(f1a) FROM t1 GROUP BY f1a, f2a);
-f1b f2b f3b
-10 5 d1d
-set @@optimizer_switch = 'in_to_exists=off,materialization=on,semijoin=off';
-EXPLAIN
-SELECT alias2.f1 , alias2.f2
-FROM t0 AS alias1
-RIGHT JOIN t0 AS alias2 ON alias2.f10
-WHERE ( alias2.f1 , alias2.f2 ) IN ( SELECT max(f2) , f1 FROM t0 GROUP BY f2 , f1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY alias1 index NULL PRIMARY 4 NULL 2 Using where; Using index
-2 MATERIALIZED t0 ALL NULL NULL NULL NULL 2 Using temporary
-SELECT alias2.f1 , alias2.f2
-FROM t0 AS alias1
-RIGHT JOIN t0 AS alias2 ON alias2.f10
-WHERE ( alias2.f1 , alias2.f2 ) IN ( SELECT max(f2) , f1 FROM t0 GROUP BY f2 , f1 );
-f1 f2
-8 8
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'u'
-EXPLAIN
-SELECT * FROM t2 WHERE (f1b, f2b) IN (SELECT max(f1a), f2a FROM t1 GROUP BY f1a, f2a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2 Using temporary
-SELECT * FROM t2 WHERE (f1b, f2b) IN (SELECT max(f1a), f2a FROM t1 GROUP BY f1a, f2a);
-f1b f2b f3b
-10 5 d1d
-EXPLAIN
-SELECT * FROM t2 WHERE (f1b) IN (SELECT max(f1a) FROM t1 GROUP BY f1a, f2a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2 Using temporary
-SELECT * FROM t2 WHERE (f1b) IN (SELECT max(f1a) FROM t1 GROUP BY f1a, f2a);
-f1b f2b f3b
-10 5 d1d
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t0,t1,t2;
-#
-# LP BUG#715759 Wrong result with in_to_exists=on in maria-5.3-mwl89
-#
-set @save_optimizer_switch=@@optimizer_switch;
-CREATE TABLE t1 (a1 int, a2 int) ;
-INSERT INTO t1 VALUES (1, 2);
-INSERT INTO t1 VALUES (3, 4);
-CREATE TABLE t2 (b1 int, b2 int) ;
-INSERT INTO t2 VALUES (1, 2);
-SET @@optimizer_switch = 'in_to_exists=on,materialization=off,semijoin=off';
-EXPLAIN SELECT * FROM t1 WHERE a1 IN (SELECT b1 FROM t2 WHERE b1 = b2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT * FROM t1 WHERE a1 IN (SELECT b1 FROM t2 WHERE b1 = b2);
-a1 a2
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1, t2;
-#
-# LP BUG#772309 join_tab_cmp_straight(): Assertion `!jt2->emb_sj_nest' failed in maria-5.3-mwl89 with semijoin
-#
-CREATE TABLE t1 ( f2 int) ;
-INSERT INTO t1 VALUES (0),(0);
-CREATE TABLE t2 ( f1 int NOT NULL ) ;
-INSERT INTO t2 VALUES (0),(0);
-CREATE TABLE t3 ( f1 int NOT NULL , f2 int) ;
-INSERT INTO t3 VALUES (0,0), (0,0);
-EXPLAIN SELECT STRAIGHT_JOIN (
-SELECT f2 FROM t1 WHERE ( f2 ) IN ( SELECT t3.f2 FROM t3 JOIN t2 ON t2.f1 = 1 )
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-SELECT STRAIGHT_JOIN (
-SELECT f2 FROM t1 WHERE ( f2 ) IN ( SELECT t3.f2 FROM t3 JOIN t2 ON t2.f1 = 1 )
-);
-(
-SELECT f2 FROM t1 WHERE ( f2 ) IN ( SELECT t3.f2 FROM t3 JOIN t2 ON t2.f1 = 1 )
-)
-NULL
-drop table t1, t2, t3;
-#
-# LP BUG#777597 Wrong result with multipart keys, in_to_exists=on, NOT IN in MWL#89
-#
-CREATE TABLE t1 ( f4 int);
-INSERT IGNORE INTO t1 VALUES (2),(2);
-CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3) );
-INSERT IGNORE INTO t2 VALUES (6, 1), (6, 1);
-CREATE TABLE t3 ( f10 int );
-INSERT IGNORE INTO t3 VALUES (1);
-SET SESSION optimizer_switch='in_to_exists=on,materialization=off';
-EXPLAIN
-SELECT * FROM t1 WHERE ( 6 ) NOT IN ( SELECT t2.f3 FROM t2 JOIN t3 ON t3.f10 = t2.f10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t3 system NULL NULL NULL NULL 1
-2 SUBQUERY t2 ref_or_null f10 f10 10 const,const 2 Using where; Using index
-SELECT * FROM t1 WHERE ( 6 ) NOT IN ( SELECT t2.f3 FROM t2 JOIN t3 ON t3.f10 = t2.f10);
-f4
-drop table t1,t2,t3;
-#
-# LP BUG#778413 Third crash in select_describe() in maria-5.3-mwl89
-#
-CREATE TABLE t1 ( f11 int) ;
-INSERT INTO t1 VALUES (1),(1);
-CREATE TABLE t2 ( f1 int NOT NULL) ;
-INSERT INTO t2 VALUES (20);
-CREATE TABLE t3 (f3 int) ;
-INSERT INTO t3 VALUES (2),(2);
-EXPLAIN SELECT * FROM t2
-WHERE t2.f1 = (
-SELECT MAX( f3 ) FROM t3
-WHERE EXISTS (
-SELECT DISTINCT f11
-FROM t1));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-3 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-drop table t1, t2, t3;
-#
-# LP BUG#802979 Assertion `table->key_read == 0' in close_thread_table
-#
-CREATE TABLE t1 ( f1 int, f2 int , KEY (f1)) ;
-INSERT IGNORE INTO t1 VALUES (1,0),(5,0);
-CREATE TABLE t2 ( f1 int, f2 int , KEY (f1)) ;
-INSERT IGNORE INTO t2 VALUES (1,0),(5,0);
-CREATE TABLE t3 ( f1 int, f2 int , KEY (f1)) ;
-INSERT IGNORE INTO t3 VALUES (1,0),(5,0);
-CREATE TABLE t4 ( f1 int, f2 int , KEY (f1)) ;
-INSERT IGNORE INTO t4 VALUES (1,0),(5,0);
-EXPLAIN
-SELECT *
-FROM t1, t2
-WHERE t2.f2 = (SELECT f2 FROM t3
-WHERE EXISTS (SELECT DISTINCT f1 FROM t4))
-AND t2.f2 = t1.f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref f1 f1 5 const 0 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-3 SUBQUERY t4 index NULL f1 5 NULL 2 Using index
-SELECT *
-FROM t1, t2
-WHERE t2.f2 = (SELECT f2 FROM t3
-WHERE EXISTS (SELECT DISTINCT f1 FROM t4))
-AND t2.f2 = t1.f1;
-ERROR 21000: Subquery returns more than 1 row
-EXPLAIN
-SELECT *
-FROM t1, t2
-WHERE t2.f2 = (SELECT f2 FROM t3
-WHERE EXISTS (SELECT DISTINCT f1 FROM t4) LIMIT 1)
-AND t2.f2 = t1.f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref f1 f1 5 const 0 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-3 SUBQUERY t4 index NULL f1 5 NULL 2 Using index
-SELECT *
-FROM t1, t2
-WHERE t2.f2 = (SELECT f2 FROM t3
-WHERE EXISTS (SELECT DISTINCT f1 FROM t4) LIMIT 1)
-AND t2.f2 = t1.f1;
-f1 f2 f1 f2
-drop table t1,t2,t3,t4;
-#
-# LP BUG#611690 Crash in select_describe() with nested subqueries
-#
-CREATE TABLE t1 (
-col_int_key int(11) DEFAULT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-col_varchar_nokey varchar(1) DEFAULT NULL,
-KEY col_int_key (col_int_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES (8,'v','v');
-INSERT INTO t1 VALUES (9,'r','r');
-CREATE TABLE t2 (
-col_int_key int(11) DEFAULT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-col_varchar_nokey varchar(1) DEFAULT NULL,
-KEY col_int_key (col_int_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t2 VALUES (2,'w','w');
-INSERT INTO t2 VALUES (9,'m','m');
-set @old_optimizer_switch = @@optimizer_switch;
-set @@optimizer_switch='subquery_cache=off,materialization=on,in_to_exists=off,semijoin=off';
-EXPLAIN
-SELECT col_int_key
-FROM t2
-WHERE (SELECT SUBQUERY2_t1.col_int_key
-FROM t1 SUBQUERY2_t1 STRAIGHT_JOIN t1 SUBQUERY2_t2
-ON SUBQUERY2_t2.col_varchar_key
-WHERE SUBQUERY2_t2.col_varchar_nokey IN
-(SELECT col_varchar_nokey FROM t1 GROUP BY col_varchar_nokey));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index NULL col_int_key 5 NULL 2 Using index
-2 SUBQUERY SUBQUERY2_t1 index NULL col_int_key 5 NULL 2 Using index
-2 SUBQUERY SUBQUERY2_t2 ALL col_varchar_key NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-SELECT col_int_key
-FROM t2
-WHERE (SELECT SUBQUERY2_t1.col_int_key
-FROM t1 SUBQUERY2_t1 STRAIGHT_JOIN t1 SUBQUERY2_t2
-ON SUBQUERY2_t2.col_varchar_key
-WHERE SUBQUERY2_t2.col_varchar_nokey IN
-(SELECT col_varchar_nokey FROM t1 GROUP BY col_varchar_nokey));
-col_int_key
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-set @@optimizer_switch='subquery_cache=off,materialization=off,in_to_exists=on,semijoin=off';
-EXPLAIN
-SELECT col_int_key
-FROM t2
-WHERE (SELECT SUBQUERY2_t1.col_int_key
-FROM t1 SUBQUERY2_t1 STRAIGHT_JOIN t1 SUBQUERY2_t2
-ON SUBQUERY2_t2.col_varchar_key
-WHERE SUBQUERY2_t2.col_varchar_nokey IN
-(SELECT col_varchar_nokey FROM t1 GROUP BY col_varchar_nokey));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index NULL col_int_key 5 NULL 2 Using index
-2 SUBQUERY SUBQUERY2_t1 index NULL col_int_key 5 NULL 2 Using index
-2 SUBQUERY SUBQUERY2_t2 ALL col_varchar_key NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT col_int_key
-FROM t2
-WHERE (SELECT SUBQUERY2_t1.col_int_key
-FROM t1 SUBQUERY2_t1 STRAIGHT_JOIN t1 SUBQUERY2_t2
-ON SUBQUERY2_t2.col_varchar_key
-WHERE SUBQUERY2_t2.col_varchar_nokey IN
-(SELECT col_varchar_nokey FROM t1 GROUP BY col_varchar_nokey));
-col_int_key
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-drop table t1, t2;
-set @@optimizer_switch = @old_optimizer_switch;
-#
-# LP BUG#612543 Crash in Item_field::used_tables() with view + subquery + prepared statements
-#
-CREATE TABLE t1 ( f1 int(11), f2 varchar(1));
-CREATE TABLE t2 ( f3 varchar(1));
-insert into t1 values (2,'x'), (5,'y');
-insert into t2 values ('x'), ('z');
-CREATE VIEW v2 AS SELECT * FROM t2;
-set @old_optimizer_switch = @@optimizer_switch;
-set @@optimizer_switch='materialization=on,in_to_exists=off,semijoin=off,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 JOIN v2 ON t1.f2 > 'a' WHERE v2.f3 IN ( SELECT f2 FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-PREPARE st1 FROM "SELECT * FROM t1 JOIN v2 ON t1.f2 > 'a' WHERE v2.f3 IN ( SELECT f2 FROM t1 )";
-EXECUTE st1;
-f1 f2 f3
-2 x x
-5 y x
-EXECUTE st1;
-f1 f2 f3
-2 x x
-5 y x
-set @@optimizer_switch='materialization=off,in_to_exists=on,semijoin=off,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 JOIN v2 ON t1.f2 > 'a' WHERE v2.f3 IN ( SELECT f2 FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-PREPARE st2 FROM "SELECT * FROM t1 JOIN v2 ON t1.f2 > 'a' WHERE v2.f3 IN ( SELECT f2 FROM t1 )";
-EXECUTE st2;
-f1 f2 f3
-2 x x
-5 y x
-EXECUTE st2;
-f1 f2 f3
-2 x x
-5 y x
-set @@optimizer_switch='materialization=on,in_to_exists=on,semijoin=off,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 JOIN v2 ON t1.f2 > 'a' WHERE v2.f3 IN ( SELECT f2 FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-PREPARE st3 FROM "SELECT * FROM t1 JOIN v2 ON t1.f2 > 'a' WHERE v2.f3 IN ( SELECT f2 FROM t1 )";
-EXECUTE st3;
-f1 f2 f3
-2 x x
-5 y x
-EXECUTE st3;
-f1 f2 f3
-2 x x
-5 y x
-set @@optimizer_switch = @old_optimizer_switch;
-drop table t1, t2;
-drop view v2;
-#
-# LP BUG#611396 RQG: crash in Item_field::register_field_in_read_map with semijoin=off
-# and prepared statements and materialization
-CREATE TABLE t1 ( f1 int(11), f2 int(11)) ;
-CREATE TABLE t2 ( f1 int(11), f4 varchar(1), PRIMARY KEY (f1)) ;
-INSERT INTO t2 VALUES ('23','j'),('24','e');
-CREATE TABLE t3 ( f1 int(11), f4 varchar(1)) ;
-INSERT INTO t3 VALUES ('8','j');
-set @old_optimizer_switch = @@optimizer_switch;
-set @@optimizer_switch='materialization=on,in_to_exists=off,semijoin=off';
-EXPLAIN
-SELECT t2.f1, (SELECT f2 FROM t1 WHERE (7) IN (SELECT f1 FROM t1))
-FROM t2 JOIN t3 ON t3.f4 = t2.f4
-WHERE t3.f1 = 8
-GROUP BY 1, 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using filesort
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-3 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-PREPARE st1 FROM "
-SELECT t2.f1, (SELECT f2 FROM t1 WHERE (7) IN (SELECT f1 FROM t1))
-FROM t2 JOIN t3 ON t3.f4 = t2.f4
-WHERE t3.f1 = 8
-GROUP BY 1, 2";
-EXECUTE st1;
-f1 (SELECT f2 FROM t1 WHERE (7) IN (SELECT f1 FROM t1))
-23 NULL
-EXECUTE st1;
-f1 (SELECT f2 FROM t1 WHERE (7) IN (SELECT f1 FROM t1))
-23 NULL
-set @@optimizer_switch = @old_optimizer_switch;
-drop table t1, t2, t3;
-#
-# LP BUG#611382 RQG: Query returns extra rows when executed with materialization=on
-#
-CREATE TABLE t1 ( f4 varchar(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (NULL);
-CREATE TABLE t2 ( f2 date, f3 varchar(1), f4 varchar(1)) ;
-INSERT INTO t2 VALUES ('2005-05-03','c','c'),('1900-01-01','d','d');
-CREATE TABLE t3 ( f3 varchar(1)) ;
-INSERT INTO t3 VALUES ('c');
-set @old_optimizer_switch = @@optimizer_switch;
-set @@optimizer_switch = 'materialization=on,in_to_exists=off,semijoin=off';
-EXPLAIN SELECT t1.f4
-FROM t1 JOIN ( t2 JOIN t3 ON t3.f3 = t2.f4 ) ON t3.f3 = t2.f3
-WHERE t1.f4 IN ( SELECT f4 FROM t2 ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t3 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT t1.f4
-FROM t1 JOIN ( t2 JOIN t3 ON t3.f3 = t2.f4 ) ON t3.f3 = t2.f3
-WHERE t1.f4 IN ( SELECT f4 FROM t2 ) ;
-f4
-set @@optimizer_switch = 'materialization=off,in_to_exists=on,semijoin=off';
-EXPLAIN SELECT t1.f4
-FROM t1 JOIN ( t2 JOIN t3 ON t3.f3 = t2.f4 ) ON t3.f3 = t2.f3
-WHERE t1.f4 IN ( SELECT f4 FROM t2 ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t3 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT t1.f4
-FROM t1 JOIN ( t2 JOIN t3 ON t3.f3 = t2.f4 ) ON t3.f3 = t2.f3
-WHERE t1.f4 IN ( SELECT f4 FROM t2 ) ;
-f4
-set @@optimizer_switch = @old_optimizer_switch;
-drop table t1, t2, t3;
-#
-# LP BUG#782305: Wrong result/valgrind warning in Item_sum_hybrid::any_value()
-#
-CREATE TABLE t1 ( f1 int) ;
-INSERT INTO t1 VALUES (2),(3);
-CREATE TABLE t2 (f2 int) ;
-INSERT INTO t2 VALUES (2),(3);
-PREPARE st1 FROM '
-SELECT * FROM t2
-WHERE f2 <= SOME ( SELECT f1 FROM t1 );
-';
-EXECUTE st1;
-f2
-2
-3
-EXECUTE st1;
-f2
-2
-3
-PREPARE st2 FROM '
-SELECT * FROM t2
-WHERE f2 <= SOME (SELECT f1-2 FROM t1 UNION SELECT f1-1 FROM t1);
-';
-EXECUTE st2;
-f2
-2
-EXECUTE st2;
-f2
-2
-drop table t1, t2;
-#
-# LP BUG#825018: Crash in check_and_do_in_subquery_rewrites() with corrlated subquery in select list
-#
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (10,1),(11,7);
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES (2),(3);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (1,1);
-CREATE PROCEDURE sp1 () LANGUAGE SQL
-SELECT (SELECT t1.a
-FROM t1
-WHERE t1.b = t3.b
-AND t1.b IN ( SELECT a FROM t2 )) sq
-FROM t3
-GROUP BY 1;
-CALL sp1();
-sq
-NULL
-CALL sp1();
-sq
-NULL
-drop procedure sp1;
-prepare st1 from "
-SELECT (SELECT t1.a
- FROM t1
- WHERE t1.b = t3.b
- AND t1.b IN ( SELECT a FROM t2 )) sq
-FROM t3
-GROUP BY 1";
-execute st1;
-sq
-NULL
-execute st1;
-sq
-NULL
-deallocate prepare st1;
-drop table t1, t2, t3;
-set optimizer_switch=@subselect4_tmp;
-#
-# LP BUG#833702 Wrong result with nested IN and singlerow subqueries and equality propagation
-#
-CREATE TABLE t2 (c int , a int, b int);
-INSERT INTO t2 VALUES (10,7,0);
-CREATE TABLE t3 (a int, b int) ;
-INSERT INTO t3 VALUES (5,0),(7,0);
-CREATE TABLE t4 (a int);
-INSERT INTO t4 VALUES (2),(8);
-set @@optimizer_switch='semijoin=off,in_to_exists=on,materialization=off,subquery_cache=off';
-SELECT * FROM t2
-WHERE t2.b IN (SELECT b FROM t3 WHERE t3.a = t2.a AND a < SOME (SELECT * FROM t4))
-OR ( t2.c > 242 );
-c a b
-10 7 0
-EXPLAIN SELECT * FROM t2
-WHERE t2.b IN (SELECT t3.b FROM t3 WHERE t3.a < ANY (SELECT t4.a FROM t4) and t3.a = 7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where
-3 SUBQUERY t4 ALL NULL NULL NULL NULL 2
-SELECT * FROM t2
-WHERE t2.b IN (SELECT t3.b FROM t3 WHERE t3.a < ANY (SELECT t4.a FROM t4) and t3.a = 7);
-c a b
-10 7 0
-drop table t2, t3, t4;
-#
-# BUG#934597: Assertion `! is_set()' failed in Diagnostics_area::set_ok_status(THD...
-#
-CREATE TABLE t1 ( a VARCHAR(1) );
-INSERT INTO t1 VALUES ('u'),('k');
-CREATE TABLE t2 AS
-SELECT a AS field1 FROM t1
-WHERE ( SELECT alias1.a
-FROM t1 AS alias1
-) IS NOT NULL;
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t2;
-ERROR 42S02: Unknown table 'test.t2'
-DROP TABLE t1;
-#
-# LP BUG#1000649 EXPLAIN shows incorrectly a non-correlated constant IN subquery is correlated
-#
-create table ten (a int);
-insert into ten values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b int, c int);
-insert into t1 select a,a,a from ten;
-create table five (a int, b int, c int);
-insert into five select a,a,a from ten limit 5;
-set @@optimizer_switch='semijoin=on,in_to_exists=on,materialization=off';
-explain select * from t1 where 33 in (select b from five) or c > 11;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 10 Using where
-2 SUBQUERY five ALL NULL NULL NULL NULL 5 Using where
-drop table ten, t1, five;
-#
-# LP BUG#1008773 Wrong result (NULL instead of a value) with no matching rows, subquery in FROM and HAVING
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1);
-EXPLAIN
-SELECT MAX(a), ( SELECT 1 FROM t2 ) AS bb FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-2 SUBQUERY t2 system NULL NULL NULL NULL 1
-SELECT MAX(a), ( SELECT 1 FROM t2 ) AS bb FROM t1;
-MAX(a) bb
-NULL 1
-EXPLAIN
-SELECT MAX(a), 1 in ( SELECT b FROM t2 ) AS bb FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-2 SUBQUERY t2 system NULL NULL NULL NULL 1
-SELECT MAX(a), 1 in ( SELECT b FROM t2 ) AS bb FROM t1;
-MAX(a) bb
-NULL 1
-EXPLAIN
-SELECT MAX(a), 1 >= ALL ( SELECT b FROM t2 ) AS bb FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT MAX(a), 1 >= ALL ( SELECT b FROM t2 ) AS bb FROM t1;
-MAX(a) bb
-NULL 1
-EXPLAIN
-SELECT MAX(a), ( SELECT 1 FROM t2 where b = a) AS bb FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT MAX(a), ( SELECT 1 FROM t2 where b = a) AS bb FROM t1;
-MAX(a) bb
-NULL NULL
-EXPLAIN
-SELECT MAX(a), a in ( SELECT b FROM t2 ) AS bb FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-2 DEPENDENT SUBQUERY t2 system NULL NULL NULL NULL 1
-SELECT MAX(a), a in ( SELECT b FROM t2 ) AS bb FROM t1;
-MAX(a) bb
-NULL NULL
-EXPLAIN
-SELECT MAX(a), a >= ALL ( SELECT b FROM t2 ) AS bb FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-2 DEPENDENT SUBQUERY t2 system NULL NULL NULL NULL 1
-SELECT MAX(a), a >= ALL ( SELECT b FROM t2 ) AS bb FROM t1;
-MAX(a) bb
-NULL NULL
-drop table t1, t2;
-set optimizer_switch=@subselect4_tmp;
-#
-# MDEV-3928 Assertion `example' failed in Item_cache::is_expensive_processor with a 2-level IN subquery
-#
-CREATE TABLE t1 (a1 INT, b1 TIME) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4,'21:22:34'),(6,'10:50:38');
-CREATE TABLE t2 (a2 INT, b2 TIME) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8, '06:17:39');
-CREATE TABLE t3 (a3 INT, b3 TIME) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (1,'00:00:01'),(7,'00:00:02');
-EXPLAIN
-SELECT * FROM t1 WHERE a1 IN (
-SELECT a2 FROM t2 WHERE a2 IN (
-SELECT a3 FROM t3 WHERE b2 = b1 AND b2 <= b1 ORDER BY b3
-)
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 WHERE a1 IN (
-SELECT a2 FROM t2 WHERE a2 IN (
-SELECT a3 FROM t3 WHERE b2 = b1 AND b2 <= b1 ORDER BY b3
-)
-);
-a1 b1
-drop table t1, t2, t3;
-#
-# MDEV-4056:Server crashes in Item_func_trig_cond::val_int
-# with FROM and NOT IN subqueries, LEFT JOIN, derived_merge+in_to_exists
-#
-set @optimizer_switch_MDEV4056 = @@optimizer_switch;
-SET optimizer_switch = 'derived_merge=on,in_to_exists=on';
-CREATE TABLE t1 (a VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('x'),('d');
-CREATE TABLE t2 (pk INT PRIMARY KEY, b INT, c VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,2,'v'),(2,150,'v');
-SELECT * FROM t1 LEFT JOIN (
-SELECT * FROM t2 WHERE ( pk, pk ) NOT IN (
-SELECT MIN(b), SUM(pk) FROM t1
-)
-) AS alias1 ON (a = c)
-WHERE b IS NULL OR a < 'u';
-a pk b c
-x NULL NULL NULL
-d NULL NULL NULL
-drop table t1,t2;
-set @@optimizer_switch = @optimizer_switch_MDEV4056;
-#
-# MDEV-5103: server crashed on singular Item_equal
-#
-CREATE TABLE t1 (
-a enum('p','r') NOT NULL DEFAULT 'r',
-b int NOT NULL DEFAULT '0',
-c char(32) NOT NULL,
-d varchar(255) NOT NULL,
-PRIMARY KEY (a, b), UNIQUE KEY idx(a, c)
-);
-INSERT INTO t1 VALUES ('r', 1, 'ad18832202b199728921807033a8a515', '001_cbr643');
-CREATE TABLE t2 (
-a enum('p','r') NOT NULL DEFAULT 'r',
-b int NOT NULL DEFAULT '0',
-e datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
-PRIMARY KEY (a, b, e)
-);
-INSERT INTO t2 VALUES ('r', 1, '2013-10-05 14:25:30');
-SELECT * FROM t1 AS t
-WHERE a='r' AND (c,b) NOT IN (SELECT c,b FROM t2 WHERE (c,b)=(t.c,t.b));
-a b c d
-DROP TABLE t1, t2;
-#
-# MDEV-5468: assertion failure with a simplified condition in subselect
-#
-CREATE TABLE t1 (a int, b int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,1);
-CREATE TABLE t2 ( pk int PRIMARY KEY, c INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,4), (2,6);
-SELECT ( SELECT MAX(b) FROM t1, t2 WHERE pk = a AND b < from_sq.c ) AS select_sq,
-COUNT( DISTINCT from_sq.c )
-FROM ( SELECT DISTINCT t2_1.* FROM t2 AS t2_1, t2 AS t2_2 ) AS from_sq
-GROUP BY select_sq ;
-select_sq COUNT( DISTINCT from_sq.c )
-1 2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (id int, a2 char(2), a3 char(3)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'BE','BEL');
-CREATE TABLE t2 (id int, a2 char(2), a3 char(3)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,'BE','BEL'), (2,'MX','MEX');
-CREATE VIEW v2 AS SELECT DISTINCT * FROM t2;
-SELECT * FROM t1 AS outer_t1, v2
-WHERE v2.a3 = outer_t1.a3
-AND EXISTS ( SELECT * FROM t1 WHERE a2 < v2.a2 AND id = outer_t1.id )
-AND outer_t1.a3 < 'J'
-ORDER BY v2.id;
-id a2 a3 id a2 a3
-DROP VIEW v2;
-DROP TABLE t1,t2;
-#
-# MDEV-5686: degenerate disjunct in NOT IN subquery
-#
-CREATE TABLE t1 (a int, b int, c varchar(3)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,1,'CAN'),(2,2,'AUS');
-CREATE TABLE t2 (f int) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3);
-EXPLAIN EXTENDED
-SELECT * FROM t2
-WHERE f NOT IN (SELECT b FROM t1
-WHERE 0 OR (c IN ('USA') OR c NOT IN ('USA')) AND a = b);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1 100.00
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select 3 AS `f` from dual where !<expr_cache><3>(<in_optimizer>(3,<exists>(/* select#2 */ select `test`.`t1`.`b` from `test`.`t1` where (`test`.`t1`.`c` = 'USA' or `test`.`t1`.`c` <> 'USA') and trigcond(<cache>(3) = `test`.`t1`.`b` or `test`.`t1`.`b` is null) and `test`.`t1`.`b` = `test`.`t1`.`a` having trigcond(`test`.`t1`.`b` is null))))
-SELECT * FROM t2
-WHERE f NOT IN (SELECT b FROM t1
-WHERE 0 OR (c IN ('USA') OR c NOT IN ('USA')) AND a = b);
-f
-3
-DROP TABLE t1,t2;
-#
-# MDEV-3899 Valgrind warnings (blocks are definitely lost) in filesort on IN subquery with SUM and DISTINCT
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(9);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8);
-SELECT * FROM t1
-WHERE (1, 1) IN (SELECT a, SUM(DISTINCT a) FROM t1, t2 GROUP BY a);
-a
-1
-9
-drop table t1, t2;
-#
-# MDEV-3902 Assertion `record_length == m_record_length' failed at Filesort_buffer::alloc_sort_buffer
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (pk INT PRIMARY KEY, b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,1),(2,7);
-CREATE TABLE t3 (c INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (8);
-SELECT * FROM t1
-WHERE (1, 5) IN (SELECT b, SUM(DISTINCT b) FROM t2, t3 GROUP BY b);
-a
-SELECT * FROM t2 AS alias1, t2 AS alias2
-WHERE EXISTS ( SELECT 1 ) AND (alias2.pk = alias1.b )
-ORDER BY alias1.b;
-pk b pk b
-1 1 1 1
-drop table t1, t2, t3;
-#
-# MDEV-4144 simple subquery causes full scan instead of range scan
-#
-CREATE TABLE t1 (id int not null auto_increment, x int not null, primary key(id));
-INSERT INTO t1 (x) VALUES (0),(0),(0);
-EXPLAIN
-SELECT x FROM t1 WHERE id > (SELECT MAX(id) - 1000 FROM t1) ORDER BY x LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range PRIMARY PRIMARY 4 NULL 3 Using where; Using filesort
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-SELECT x FROM t1 WHERE id > (SELECT MAX(id) - 1000 FROM t1) ORDER BY x LIMIT 1;
-x
-0
-drop table t1;
-#
-# MDEV-7691: Assertion `outer_context || !*from_field || *from_field == not_found_field' ...
-#
-set optimizer_switch=default;
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4),(6);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1),(8);
-PREPARE stmt FROM "
-SELECT * FROM t2
-HAVING 0 IN (
- SELECT a FROM t1
- WHERE a IN (
- SELECT a FROM t1
- WHERE b = a
- )
-)
-";
-EXECUTE stmt;
-b
-EXECUTE stmt;
-b
-# Alternative test case, without HAVING
-CREATE TABLE t3 (i INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (4),(6);
-PREPARE stmt FROM "
-SELECT * FROM t3 AS t10
-WHERE EXISTS (
- SELECT * FROM t3 AS t20 WHERE t10.i IN (
- SELECT i FROM t3
- )
-)";
-EXECUTE stmt;
-i
-4
-6
-EXECUTE stmt;
-i
-4
-6
-drop table t1, t2, t3;
-#
-# MDEV-11078: NULL NOT IN (non-empty subquery) should never return results
-#
-create table t1(a int,b int);
-create table t2(a int,b int);
-insert into t1 value (1,2);
-select (NULL) in (select 1 from t1);
-(NULL) in (select 1 from t1)
-NULL
-select (null) in (select 1 from t2);
-(null) in (select 1 from t2)
-0
-select 1 in (select 1 from t1);
-1 in (select 1 from t1)
-1
-select 1 in (select 1 from t2);
-1 in (select 1 from t2)
-0
-select 1 from dual where null in (select 1 from t1);
-1
-select 1 from dual where null in (select 1 from t2);
-1
-select (null,null) in (select * from t1);
-(null,null) in (select * from t1)
-NULL
-select (null,null) in (select * from t2);
-(null,null) in (select * from t2)
-0
-select 1 from dual where null not in (select 1 from t1);
-1
-select 1 from dual where null not in (select 1 from t2);
-1
-1
-drop table t1,t2;
-#
-# MDEV-6486: Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))'
-# failed with SELECT SQ, TEXT field
-#
-CREATE TABLE t1 (a VARCHAR(8), KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo'),( 'bar');
-CREATE TABLE t2 (b VARCHAR(8), c TINYTEXT, KEY(b)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('baz','baz'),('qux', 'qux');
-SELECT ( SELECT COUNT(*) FROM t1 WHERE a = c ) AS field, COUNT(DISTINCT c)
-FROM t2 WHERE b <= 'quux' GROUP BY field;
-field COUNT(DISTINCT c)
-0 1
-drop table t1,t2;
-#
-# MDEV-15555: select from DUAL where false yielding wrong result when in a IN
-#
-explain
-SELECT 2 IN (SELECT 2 from DUAL WHERE 1 != 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-SELECT 2 IN (SELECT 2 from DUAL WHERE 1 != 1);
-2 IN (SELECT 2 from DUAL WHERE 1 != 1)
-0
-SET optimizer_switch= @@global.optimizer_switch;
-set @@tmp_table_size= @@global.tmp_table_size;
-#
-# MDEV-10232 Scalar result of subquery changes after adding an outer select stmt
-#
-create table t1(c1 int, c2 int, primary key(c2));
-insert into t1 values(2,1),(1,2);
-select (select c1 from t1 group by c1,c2 order by c1 limit 1) as x;
-x
-1
-(select c1 from t1 group by c1,c2 order by c1 limit 1);
-c1
-1
-drop table t1;
diff --git a/mysql-test/r/subselect_cache.result b/mysql-test/r/subselect_cache.result
deleted file mode 100644
index 813d668c88c..00000000000
--- a/mysql-test/r/subselect_cache.result
+++ /dev/null
@@ -1,3805 +0,0 @@
-drop table if exists t0,t1,t2,t3,t4,t5,t6,t7,t8,t9;
-drop view if exists v1;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-SET optimizer_switch='semijoin_with_cache=off';
-set optimizer_switch='subquery_cache=on';
-create table t1 (a int, b int);
-insert into t1 values (1,2),(3,4),(1,2),(3,4),(3,4),(4,5),(4,5),(5,6),(5,6),(4,5);
-create table t2 (c int, d int);
-insert into t2 values (2,3),(3,4),(5,6),(4,1);
-*
-* Test subquery as top item in different clauses
-*
-#single value subquery test (SELECT list)
-flush status;
-select a, (select d from t2 where b=c) from t1;
-a (select d from t2 where b=c)
-1 3
-3 1
-1 3
-3 1
-3 1
-4 6
-4 6
-5 NULL
-5 NULL
-4 6
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 4
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 7
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 31
-analyze format=json
-select a, (select d from t2 where b=c) from t1;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "subqueries": [
- {
- "expression_cache": {
- "r_loops": 10,
- "r_hit_ratio": 60,
- "query_block": {
- "select_id": 2,
- "r_loops": 4,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 4,
- "rows": 4,
- "r_rows": 4,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 18.75,
- "attached_condition": "t1.b = t2.c"
- }
- }
- }
- }
- ]
- }
-}
-analyze format=json
-select a, (select d from t2 where b=c), (select d from t2 where b=c union select 1 order by 1 limit 1) from t1;
-ANALYZE
-{
- "query_block": {
- "select_id": 1,
- "r_loops": 1,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "r_loops": 1,
- "rows": 10,
- "r_rows": 10,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 100
- },
- "subqueries": [
- {
- "expression_cache": {
- "r_loops": 10,
- "r_hit_ratio": 60,
- "query_block": {
- "union_result": {
- "table_name": "<union3,4>",
- "access_type": "ALL",
- "r_loops": 4,
- "r_rows": 1,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 3,
- "r_loops": 4,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 4,
- "rows": 4,
- "r_rows": 4,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 18.75,
- "attached_condition": "t1.b = t2.c"
- }
- }
- },
- {
- "query_block": {
- "select_id": 4,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
- }
- },
- {
- "expression_cache": {
- "r_loops": 10,
- "r_hit_ratio": 60,
- "query_block": {
- "select_id": 2,
- "r_loops": 4,
- "r_total_time_ms": "REPLACED",
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "r_loops": 4,
- "rows": 4,
- "r_rows": 4,
- "r_total_time_ms": "REPLACED",
- "filtered": 100,
- "r_filtered": 18.75,
- "attached_condition": "t1.b = t2.c"
- }
- }
- }
- }
- ]
- }
-}
-explain format=json
-select a, (select d from t2 where b=c) from t1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- },
- "subqueries": [
- {
- "expression_cache": {
- "state": "uninitialized",
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 4,
- "filtered": 100,
- "attached_condition": "t1.b = t2.c"
- }
- }
- }
- }
- ]
- }
-}
-explain format=json
-select a, (select d from t2 where b=c), (select d from t2 where b=c union select 1 order by 1 limit 1) from t1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- },
- "subqueries": [
- {
- "expression_cache": {
- "state": "uninitialized",
- "query_block": {
- "union_result": {
- "table_name": "<union3,4>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 3,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 4,
- "filtered": 100,
- "attached_condition": "t1.b = t2.c"
- }
- }
- },
- {
- "query_block": {
- "select_id": 4,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
- }
- },
- {
- "expression_cache": {
- "state": "uninitialized",
- "query_block": {
- "select_id": 2,
- "table": {
- "table_name": "t2",
- "access_type": "ALL",
- "rows": 4,
- "filtered": 100,
- "attached_condition": "t1.b = t2.c"
- }
- }
- }
- }
- ]
- }
-}
-set optimizer_switch='subquery_cache=off';
-flush status;
-select a, (select d from t2 where b=c) from t1;
-a (select d from t2 where b=c)
-1 3
-3 1
-1 3
-3 1
-3 1
-4 6
-4 6
-5 NULL
-5 NULL
-4 6
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 61
-set optimizer_switch='subquery_cache=on';
-#single value subquery test (where)
-flush status;
-select a from t1 where (select d from t2 where b=c);
-a
-1
-3
-1
-3
-3
-4
-4
-4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 4
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 7
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 31
-set optimizer_switch='subquery_cache=off';
-flush status;
-select a from t1 where (select d from t2 where b=c);
-a
-1
-3
-1
-3
-3
-4
-4
-4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 61
-set optimizer_switch='subquery_cache=on';
-#single value subquery test (having)
-flush status;
-select a from t1 where a > 0 having (select d from t2 where b=c);
-a
-1
-3
-1
-3
-3
-4
-4
-4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 4
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 7
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 31
-set optimizer_switch='subquery_cache=off';
-flush status;
-select a from t1 where a > 0 having (select d from t2 where b=c);
-a
-1
-3
-1
-3
-3
-4
-4
-4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 61
-set optimizer_switch='subquery_cache=on';
-#single value subquery test (OUTER JOIN ON)
-flush status;
-select ta.a, tb.a from t1 ta join t1 tb on (select d from t2 where tb.b=c);
-a a
-1 1
-3 1
-1 1
-3 1
-3 1
-4 1
-4 1
-5 1
-5 1
-4 1
-1 3
-3 3
-1 3
-3 3
-3 3
-4 3
-4 3
-5 3
-5 3
-4 3
-1 1
-3 1
-1 1
-3 1
-3 1
-4 1
-4 1
-5 1
-5 1
-4 1
-1 3
-3 3
-1 3
-3 3
-3 3
-4 3
-4 3
-5 3
-5 3
-4 3
-1 3
-3 3
-1 3
-3 3
-3 3
-4 3
-4 3
-5 3
-5 3
-4 3
-1 4
-3 4
-1 4
-3 4
-3 4
-4 4
-4 4
-5 4
-5 4
-4 4
-1 4
-3 4
-1 4
-3 4
-3 4
-4 4
-4 4
-5 4
-5 4
-4 4
-1 4
-3 4
-1 4
-3 4
-3 4
-4 4
-4 4
-5 4
-5 4
-4 4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 4
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 7
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 442
-set optimizer_switch='subquery_cache=off';
-flush status;
-select ta.a, tb.a from t1 ta join t1 tb on (select d from t2 where tb.b=c);
-a a
-1 1
-3 1
-1 1
-3 1
-3 1
-4 1
-4 1
-5 1
-5 1
-4 1
-1 3
-3 3
-1 3
-3 3
-3 3
-4 3
-4 3
-5 3
-5 3
-4 3
-1 1
-3 1
-1 1
-3 1
-3 1
-4 1
-4 1
-5 1
-5 1
-4 1
-1 3
-3 3
-1 3
-3 3
-3 3
-4 3
-4 3
-5 3
-5 3
-4 3
-1 3
-3 3
-1 3
-3 3
-3 3
-4 3
-4 3
-5 3
-5 3
-4 3
-1 4
-3 4
-1 4
-3 4
-3 4
-4 4
-4 4
-5 4
-5 4
-4 4
-1 4
-3 4
-1 4
-3 4
-3 4
-4 4
-4 4
-5 4
-5 4
-4 4
-1 4
-3 4
-1 4
-3 4
-3 4
-4 4
-4 4
-5 4
-5 4
-4 4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 472
-set optimizer_switch='subquery_cache=on';
-#single value subquery test (GROUP BY)
-flush status;
-select max(a) from t1 GROUP BY (select d from t2 where b=c);
-max(a)
-5
-3
-1
-4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 10
-Subquery_cache_miss 4
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 17
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 4
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 36
-set optimizer_switch='subquery_cache=off';
-flush status;
-select max(a) from t1 GROUP BY (select d from t2 where b=c);
-max(a)
-5
-3
-1
-4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 10
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 4
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 86
-set optimizer_switch='subquery_cache=on';
-#single value subquery test (distinct GROUP BY)
-flush status;
-select distinct max(a) from t1 GROUP BY (select d from t2 where b=c);
-max(a)
-5
-3
-1
-4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 10
-Subquery_cache_miss 4
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 17
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 4
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 41
-set optimizer_switch='subquery_cache=off';
-flush status;
-select distinct max(a) from t1 GROUP BY (select d from t2 where b=c);
-max(a)
-5
-3
-1
-4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 10
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 4
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 91
-set optimizer_switch='subquery_cache=on';
-#single value subquery test (ORDER BY)
-flush status;
-select a from t1 ORDER BY (select d from t2 where b=c);
-a
-5
-5
-3
-3
-3
-1
-1
-4
-4
-4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 4
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 7
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 31
-set optimizer_switch='subquery_cache=off';
-flush status;
-select a from t1 ORDER BY (select d from t2 where b=c);
-a
-5
-5
-3
-3
-3
-1
-1
-4
-4
-4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 61
-set optimizer_switch='subquery_cache=on';
-#single value subquery test (distinct ORDER BY)
-flush status;
-select distinct a from t1 ORDER BY (select d from t2 where b=c);
-a
-5
-3
-1
-4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 4
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 7
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 4
-Handler_read_rnd_deleted 1
-Handler_read_rnd_next 36
-set optimizer_switch='subquery_cache=off';
-flush status;
-select distinct a from t1 ORDER BY (select d from t2 where b=c);
-a
-5
-3
-1
-4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 4
-Handler_read_rnd_deleted 1
-Handler_read_rnd_next 66
-set optimizer_switch='subquery_cache=on';
-#single value subquery test (LEFT JOIN ON)
-flush status;
-select ta.a, tb.a from t1 ta left join t1 tb on (select d from t2 where tb.b=c);
-a a
-1 1
-1 3
-1 1
-1 3
-1 3
-1 4
-1 4
-1 4
-3 1
-3 3
-3 1
-3 3
-3 3
-3 4
-3 4
-3 4
-1 1
-1 3
-1 1
-1 3
-1 3
-1 4
-1 4
-1 4
-3 1
-3 3
-3 1
-3 3
-3 3
-3 4
-3 4
-3 4
-3 1
-3 3
-3 1
-3 3
-3 3
-3 4
-3 4
-3 4
-4 1
-4 3
-4 1
-4 3
-4 3
-4 4
-4 4
-4 4
-4 1
-4 3
-4 1
-4 3
-4 3
-4 4
-4 4
-4 4
-5 1
-5 3
-5 1
-5 3
-5 3
-5 4
-5 4
-5 4
-5 1
-5 3
-5 1
-5 3
-5 3
-5 4
-5 4
-5 4
-4 1
-4 3
-4 1
-4 3
-4 3
-4 4
-4 4
-4 4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 106
-Subquery_cache_miss 4
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 70
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 141
-set optimizer_switch='subquery_cache=off';
-flush status;
-select ta.a, tb.a from t1 ta left join t1 tb on (select d from t2 where tb.b=c);
-a a
-1 1
-1 3
-1 1
-1 3
-1 3
-1 4
-1 4
-1 4
-3 1
-3 3
-3 1
-3 3
-3 3
-3 4
-3 4
-3 4
-1 1
-1 3
-1 1
-1 3
-1 3
-1 4
-1 4
-1 4
-3 1
-3 3
-3 1
-3 3
-3 3
-3 4
-3 4
-3 4
-3 1
-3 3
-3 1
-3 3
-3 3
-3 4
-3 4
-3 4
-4 1
-4 3
-4 1
-4 3
-4 3
-4 4
-4 4
-4 4
-4 1
-4 3
-4 1
-4 3
-4 3
-4 4
-4 4
-4 4
-5 1
-5 3
-5 1
-5 3
-5 3
-5 4
-5 4
-5 4
-5 1
-5 3
-5 1
-5 3
-5 3
-5 4
-5 4
-5 4
-4 1
-4 3
-4 1
-4 3
-4 3
-4 4
-4 4
-4 4
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 671
-set optimizer_switch='subquery_cache=on';
-#single value subquery test (PS)
-prepare stmt1 from 'select a, (select d from t2 where b=c) + 1 from t1';
-execute stmt1;
-a (select d from t2 where b=c) + 1
-1 4
-3 2
-1 4
-3 2
-3 2
-4 7
-4 7
-5 NULL
-5 NULL
-4 7
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 4
-execute stmt1;
-a (select d from t2 where b=c) + 1
-1 4
-3 2
-1 4
-3 2
-3 2
-4 7
-4 7
-5 NULL
-5 NULL
-4 7
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 12
-Subquery_cache_miss 8
-deallocate prepare stmt1;
-#single value subquery test (SP)
-CREATE PROCEDURE p1() select a, (select d from t2 where b=c) + 1 from t1;
-call p1;
-a (select d from t2 where b=c) + 1
-1 4
-3 2
-1 4
-3 2
-3 2
-4 7
-4 7
-5 NULL
-5 NULL
-4 7
-call p1;
-a (select d from t2 where b=c) + 1
-1 4
-3 2
-1 4
-3 2
-3 2
-4 7
-4 7
-5 NULL
-5 NULL
-4 7
-drop procedure p1;
-#IN subquery test
-flush status;
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-select a, b , b in (select d from t2) as SUBS from t1;
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 4
-insert into t1 values (7,8),(9,NULL);
-select a, b , b in (select d from t2) as SUBS from t1;
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-7 8 0
-9 NULL NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 12
-Subquery_cache_miss 10
-insert into t2 values (8,NULL);
-select a, b , b in (select d from t2) as SUBS from t1;
-a b SUBS
-1 2 NULL
-3 4 1
-1 2 NULL
-3 4 1
-3 4 1
-4 5 NULL
-4 5 NULL
-5 6 1
-5 6 1
-4 5 NULL
-7 8 NULL
-9 NULL NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 18
-Subquery_cache_miss 16
-# multicolumn NOT IN with NULLs
-flush status;
-set optimizer_switch='subquery_cache=off';
-select a, b, (b, a) not in (select d, c from t2) as SUBS from t1;
-a b SUBS
-1 2 1
-3 4 0
-1 2 1
-3 4 0
-3 4 0
-4 5 1
-4 5 1
-5 6 0
-5 6 0
-4 5 1
-7 8 1
-9 NULL 1
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-set optimizer_switch='subquery_cache=on';
-select a, b, (b, a) not in (select d, c from t2) as SUBS from t1;
-a b SUBS
-1 2 1
-3 4 0
-1 2 1
-3 4 0
-3 4 0
-4 5 1
-4 5 1
-5 6 0
-5 6 0
-4 5 1
-7 8 1
-9 NULL 1
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 6
-# multicolumn NOT IN with NULLs (other order)
-flush status;
-set optimizer_switch='subquery_cache=off';
-select a, b, (a, b) not in (select d, c from t2) as SUBS from t1;
-a b SUBS
-1 2 1
-3 4 1
-1 2 1
-3 4 1
-3 4 1
-4 5 1
-4 5 1
-5 6 1
-5 6 1
-4 5 1
-7 8 NULL
-9 NULL NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-set optimizer_switch='subquery_cache=on';
-select a, b, (a, b) not in (select d, c from t2) as SUBS from t1;
-a b SUBS
-1 2 1
-3 4 1
-1 2 1
-3 4 1
-3 4 1
-4 5 1
-4 5 1
-5 6 1
-5 6 1
-4 5 1
-7 8 NULL
-9 NULL NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 6
-# multicolumn IN with NULLs
-flush status;
-set optimizer_switch='subquery_cache=off';
-select a, b, (b, a) in (select d, c from t2) as SUBS from t1;
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-7 8 0
-9 NULL 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-set optimizer_switch='subquery_cache=on';
-select a, b, (b, a) in (select d, c from t2) as SUBS from t1;
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-7 8 0
-9 NULL 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 6
-# multicolumn IN with NULLs (other order)
-flush status;
-set optimizer_switch='subquery_cache=off';
-select a, b, (a, b) in (select d, c from t2) as SUBS from t1;
-a b SUBS
-1 2 0
-3 4 0
-1 2 0
-3 4 0
-3 4 0
-4 5 0
-4 5 0
-5 6 0
-5 6 0
-4 5 0
-7 8 NULL
-9 NULL NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-set optimizer_switch='subquery_cache=on';
-select a, b, (a, b) in (select d, c from t2) as SUBS from t1;
-a b SUBS
-1 2 0
-3 4 0
-1 2 0
-3 4 0
-3 4 0
-4 5 0
-4 5 0
-5 6 0
-5 6 0
-4 5 0
-7 8 NULL
-9 NULL NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 6
-#IN subquery test (PS)
-delete from t1 where a > 6;
-delete from t2 where c > 6;
-prepare stmt1 from 'select a, b , b in (select d from t2) as SUBS from t1';
-execute stmt1;
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 12
-Subquery_cache_miss 10
-execute stmt1;
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 18
-Subquery_cache_miss 14
-insert into t1 values (7,8),(9,NULL);
-execute stmt1;
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-9 NULL NULL
-7 8 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 24
-Subquery_cache_miss 20
-execute stmt1;
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-9 NULL NULL
-7 8 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 30
-Subquery_cache_miss 26
-insert into t2 values (8,NULL);
-execute stmt1;
-a b SUBS
-1 2 NULL
-3 4 1
-1 2 NULL
-3 4 1
-3 4 1
-4 5 NULL
-4 5 NULL
-5 6 1
-5 6 1
-4 5 NULL
-9 NULL NULL
-7 8 NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 36
-Subquery_cache_miss 32
-execute stmt1;
-a b SUBS
-1 2 NULL
-3 4 1
-1 2 NULL
-3 4 1
-3 4 1
-4 5 NULL
-4 5 NULL
-5 6 1
-5 6 1
-4 5 NULL
-9 NULL NULL
-7 8 NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 42
-Subquery_cache_miss 38
-deallocate prepare stmt1;
-#IN subquery test (SP)
-delete from t1 where a > 6;
-delete from t2 where c > 6;
-CREATE PROCEDURE p1() select a, b , b in (select d from t2) as SUBS from t1;
-call p1();
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 48
-Subquery_cache_miss 42
-call p1();
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 54
-Subquery_cache_miss 46
-insert into t1 values (7,8),(9,NULL);
-call p1();
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-9 NULL NULL
-7 8 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 60
-Subquery_cache_miss 52
-call p1();
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-9 NULL NULL
-7 8 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 66
-Subquery_cache_miss 58
-insert into t2 values (8,NULL);
-call p1();
-a b SUBS
-1 2 NULL
-3 4 1
-1 2 NULL
-3 4 1
-3 4 1
-4 5 NULL
-4 5 NULL
-5 6 1
-5 6 1
-4 5 NULL
-9 NULL NULL
-7 8 NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 72
-Subquery_cache_miss 64
-call p1();
-a b SUBS
-1 2 NULL
-3 4 1
-1 2 NULL
-3 4 1
-3 4 1
-4 5 NULL
-4 5 NULL
-5 6 1
-5 6 1
-4 5 NULL
-9 NULL NULL
-7 8 NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 78
-Subquery_cache_miss 70
-drop procedure p1;
-# test of simple exists
-select a, b , exists (select * from t2 where b=d) as SUBS from t1;
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-9 NULL 0
-7 8 0
-# test of prepared statement exists
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 84
-Subquery_cache_miss 76
-prepare stmt1 from 'select a, b , exists (select * from t2 where b=d) as SUBS from t1';
-execute stmt1;
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-9 NULL 0
-7 8 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 90
-Subquery_cache_miss 82
-execute stmt1;
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-9 NULL 0
-7 8 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 96
-Subquery_cache_miss 88
-deallocate prepare stmt1;
-# test of stored procedure exists
-CREATE PROCEDURE p1() select a, b , exists (select * from t2 where b=d) as SUBS from t1;
-call p1;
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-9 NULL 0
-7 8 0
-call p1;
-a b SUBS
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 1
-5 6 1
-4 5 0
-9 NULL 0
-7 8 0
-drop procedure p1;
-#several subqueries
-set optimizer_switch='subquery_cache=off';
-flush status;
-select a, b , exists (select * from t2 where b=d) as SUBSE, b in (select d from t2) as SUBSI, (select d from t2 where b=c) SUBSR from t1;
-a b SUBSE SUBSI SUBSR
-1 2 0 NULL 3
-3 4 1 1 1
-1 2 0 NULL 3
-3 4 1 1 1
-3 4 1 1 1
-4 5 0 NULL 6
-4 5 0 NULL 6
-5 6 1 1 NULL
-5 6 1 1 NULL
-4 5 0 NULL 6
-9 NULL 0 NULL NULL
-7 8 0 NULL NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 11
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 145
-set optimizer_switch='subquery_cache=on';
-flush status;
-select a, b , exists (select * from t2 where b=d) as SUBSE, b in (select d from t2) as SUBSI, (select d from t2 where b=c) SUBSR from t1;
-a b SUBSE SUBSI SUBSR
-1 2 0 NULL 3
-3 4 1 1 1
-1 2 0 NULL 3
-3 4 1 1 1
-3 4 1 1 1
-4 5 0 NULL 6
-4 5 0 NULL 6
-5 6 1 1 NULL
-5 6 1 1 NULL
-4 5 0 NULL 6
-9 NULL 0 NULL NULL
-7 8 0 NULL NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 18
-Subquery_cache_miss 18
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 32
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 84
-#several subqueries (several levels)
-set optimizer_switch='subquery_cache=off';
-flush status;
-set optimizer_switch='subquery_cache=off';
-flush status;
-select a, b, (select exists (select * from t2 where b=d) from t2 where b=c) as SUNS1 from t1;
-a b SUNS1
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 NULL
-5 6 NULL
-4 5 0
-9 NULL NULL
-7 8 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 127
-set optimizer_switch='subquery_cache=on';
-flush status;
-select a, b, (select exists (select * from t2 where b=d) from t2 where b=c) as SUNS1 from t1;
-a b SUNS1
-1 2 0
-3 4 1
-1 2 0
-3 4 1
-3 4 1
-4 5 0
-4 5 0
-5 6 NULL
-5 6 NULL
-4 5 0
-9 NULL NULL
-7 8 0
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 10
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 13
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 69
-#clean up
-drop table t1,t2;
-test different types
-#int
-CREATE TABLE t1 ( a int, b int);
-INSERT INTO t1 VALUES(1,1),(2,2),(3,3);
-SELECT a FROM t1 WHERE NOT a IN (SELECT a FROM t1 WHERE b = 2);
-a
-1
-3
-DROP TABLE t1;
-#char
-CREATE TABLE t1 ( a char(1), b char (1));
-INSERT INTO t1 VALUES('1','1'),('2','2'),('3','3');
-SELECT a FROM t1 WHERE NOT a IN (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-DROP TABLE t1;
-#decimal
-CREATE TABLE t1 ( a decimal(3,1), b decimal(3,1));
-INSERT INTO t1 VALUES(1,1),(2,2),(3,3);
-SELECT a FROM t1 WHERE NOT a IN (SELECT a FROM t1 WHERE b = 2);
-a
-1.0
-3.0
-DROP TABLE t1;
-#date
-CREATE TABLE t1 ( a date, b date);
-INSERT INTO t1 VALUES('1000-01-01','1000-01-01'),('2000-02-01','2000-02-01'),('3000-03-03','3000-03-03');
-SELECT a FROM t1 WHERE NOT a IN (SELECT a FROM t1 WHERE b = '2000-02-01');
-a
-1000-01-01
-3000-03-03
-DROP TABLE t1;
-#datetime
-CREATE TABLE t1 ( a datetime, b datetime);
-INSERT INTO t1 VALUES('1000-01-01 01:01:01','1000-01-01 01:01:01'),('2000-02-02 02:02:02','2000-02-02 02:02:02'),('3000-03-03 03:03:03','3000-03-03 03:03:03');
-SELECT a FROM t1 WHERE NOT a IN (SELECT a FROM t1 WHERE b = '2000-02-02 02:02:02');
-a
-1000-01-01 01:01:01
-3000-03-03 03:03:03
-DROP TABLE t1;
-#time
-CREATE TABLE t1 ( a time, b time);
-INSERT INTO t1 VALUES('01:01:01','01:01:01'),('02:02:02','02:02:02'),('03:03:03','03:03:03');
-SELECT a FROM t1 WHERE NOT a IN (SELECT a FROM t1 WHERE b = '02:02:02');
-a
-01:01:01
-03:03:03
-DROP TABLE t1;
-#timestamp
-CREATE TABLE t1 ( a timestamp, b timestamp);
-INSERT INTO t1 VALUES('2000-02-02 01:01:01','2000-02-02 01:01:01'),('2000-02-02 02:02:02','2000-02-02 02:02:02'),('2000-02-02 03:03:03','2000-02-02 03:03:03');
-SELECT a FROM t1 WHERE NOT a IN (SELECT a FROM t1 WHERE b = '2000-02-02 02:02:02');
-a
-2000-02-02 01:01:01
-2000-02-02 03:03:03
-DROP TABLE t1;
-#bit
-CREATE TABLE t1 ( a bit(20), b bit(20));
-INSERT INTO t1 VALUES(1,1),(2,2),(3,3);
-SELECT a+0 FROM t1 WHERE NOT a IN (SELECT a FROM t1 WHERE b = 2);
-a+0
-1
-3
-DROP TABLE t1;
-#enum
-CREATE TABLE t1 ( a enum('1','2','3'), b enum('1','2','3'));
-INSERT INTO t1 VALUES('1','1'),('2','2'),('3','3');
-SELECT a FROM t1 WHERE NOT a IN (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-DROP TABLE t1;
-#set
-CREATE TABLE t1 ( a set('1','2','3'), b set('1','2','3'));
-INSERT INTO t1 VALUES('1','1'),('2','2'),('3','3');
-SELECT a FROM t1 WHERE NOT a IN (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-DROP TABLE t1;
-#blob
-CREATE TABLE t1 ( a blob, b blob);
-INSERT INTO t1 VALUES('1','1'),('2','2'),('3','3');
-SELECT a FROM t1 WHERE NOT a IN (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-DROP TABLE t1;
-#geometry
-CREATE TABLE t1 ( a geometry, b geometry);
-INSERT INTO t1 VALUES(POINT(1,1),POINT(1,1)),(POINT(2,2),POINT(2,2)),(POINT(3,3),POINT(3,3));
-SELECT astext(a) FROM t1 WHERE NOT a IN (SELECT a FROM t1 WHERE b = POINT(2,2));
-astext(a)
-POINT(1 1)
-POINT(3 3)
-DROP TABLE t1;
-#uncacheable queries test (random and side effect)
-flush status;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (2), (4), (1), (3);
-select a, a in (select a from t1) from t1 as ext;
-a a in (select a from t1)
-2 1
-4 1
-1 1
-3 1
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 4
-select a, a in (select a from t1 where -1 < rand()) from t1 as ext;
-a a in (select a from t1 where -1 < rand())
-2 1
-4 1
-1 1
-3 1
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 4
-select a, a in (select a from t1 where -1 < benchmark(a,100)) from t1 as ext;
-a a in (select a from t1 where -1 < benchmark(a,100))
-2 1
-4 1
-1 1
-3 1
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 4
-drop table t1;
-#test of sql_big_tables switch and outer table reference in subquery with grouping
-set big_tables=1;
-CREATE TABLE t1 (a INT PRIMARY KEY, b INT);
-INSERT INTO t1 VALUES (1,1),(2,1),(3,2),(4,2),(5,3),(6,3);
-SELECT (SELECT t1_outer.a FROM t1 AS t1_inner GROUP BY b LIMIT 1) FROM t1 AS t1_outer;
-(SELECT t1_outer.a FROM t1 AS t1_inner GROUP BY b LIMIT 1)
-1
-2
-3
-4
-5
-6
-drop table t1;
-set big_tables=0;
-#test of function reference to outer query
-set local group_concat_max_len=400;
-create table t2 (a int, b int);
-insert into t2 values (1,1), (2,2);
-select b x, (select group_concat(x) from t2) from t2;
-x (select group_concat(x) from t2)
-1 1,1
-2 2,2
-drop table t2;
-set local group_concat_max_len=default;
-#aggregate functions
-CREATE TABLE t1 (a int, b INT);
-CREATE TABLE t2 (c int, d INT);
-insert into t1 values (2,1), (3,1), (2,4), (3,4), (10,2), (20,2), (2,5),
-(3,5), (100,3), (200,3), (10,6), (20,6), (20,7), (100,8), (200,8);
-insert into t2 values (1,1),(3,3),(20,20);
-aggregate function as parameter of subquery
-set optimizer_switch='subquery_cache=off';
-flush status;
-select max(a), (select max(a) from t2 where max(a)=c) from t1 group by b;
-max(a) (select max(a) from t2 where max(a)=c)
-3 3
-20 20
-200 NULL
-3 3
-3 3
-20 20
-20 20
-200 NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 15
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 8
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 57
-set optimizer_switch='subquery_cache=on';
-flush status;
-select max(a), (select max(a) from t2 where max(a)=c) from t1 group by b;
-max(a) (select max(a) from t2 where max(a)=c)
-3 3
-20 20
-200 NULL
-3 3
-3 3
-20 20
-20 20
-200 NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 5
-Subquery_cache_miss 3
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 21
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 8
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 37
-argument of aggregate function as parameter of subquery (illegal use)
-set optimizer_switch='subquery_cache=off';
-flush status;
-select max(a), (select a from t2 where a=c) from t1 group by b;
-max(a) (select a from t2 where a=c)
-3 NULL
-20 NULL
-200 NULL
-3 NULL
-3 NULL
-20 NULL
-20 20
-200 NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 15
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 8
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 57
-set optimizer_switch='subquery_cache=on';
-flush status;
-select max(a), (select a from t2 where a=c) from t1 group by b;
-max(a) (select a from t2 where a=c)
-3 NULL
-20 NULL
-200 NULL
-3 NULL
-3 NULL
-20 NULL
-20 20
-200 NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 4
-Subquery_cache_miss 4
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 22
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 8
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 41
-drop table t1,t2;
-#test of flattening subquery optimisations and cache
-create table t0 (a int);
-insert into t0 values (9),(8),(7),(6),(5),(4),(3),(2),(1),(0);
-create table t1(a int, b int);
-insert into t1 values
-(0,0),(1,1),(2,2),(0,0),(1,1),(2,2),(0,0),(1,1),(2,2),(0,0),(1,1),(2,2),(0,0),(1,1),(2,2);
-create table t2 (pk int, a int, primary key(pk));
-insert into t2 select a,a from t0;
-set optimizer_switch='default,semijoin=on,materialization=on,subquery_cache=on';
-flush status;
-select * from t1 where a in (select pk from t2);
-a b
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 15
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 16
-alter table t2 drop primary key;
-set optimizer_switch='default,semijoin=off,materialization=off,subquery_cache=off';
-explain select * from t1 where a in (select pk from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 15 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 10 Using where
-flush status;
-select * from t1 where a in (select pk from t2);
-a b
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 151
-set optimizer_switch='default,semijoin=off,materialization=off,subquery_cache=on';
-explain select * from t1 where a in (select pk from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 15 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 10 Using where
-flush status;
-select * from t1 where a in (select pk from t2);
-a b
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 12
-Subquery_cache_miss 3
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 15
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 43
-set optimizer_switch='default,semijoin=off,materialization=on,subquery_cache=on';
-explain select * from t1 where a in (select pk from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 15 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 10
-flush status;
-select * from t1 where a in (select pk from t2);
-a b
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-0 0
-1 1
-2 2
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 12
-Subquery_cache_miss 3
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 18
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 27
-drop table t0,t1,t2;
-set optimizer_switch='default';
-#launchpad BUG#608834
-CREATE TABLE `t2` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=30 DEFAULT CHARSET=latin1;
-INSERT INTO `t2` VALUES (10,7,8,'01:27:35','v','v');
-INSERT INTO `t2` VALUES (11,1,9,'19:48:31','r','r');
-INSERT INTO `t2` VALUES (12,5,9,'00:00:00','a','a');
-INSERT INTO `t2` VALUES (13,3,186,'19:53:05','m','m');
-INSERT INTO `t2` VALUES (14,6,NULL,'19:18:56','y','y');
-INSERT INTO `t2` VALUES (15,92,2,'10:55:12','j','j');
-INSERT INTO `t2` VALUES (16,7,3,'00:25:00','d','d');
-INSERT INTO `t2` VALUES (17,NULL,0,'12:35:47','z','z');
-INSERT INTO `t2` VALUES (18,3,133,'19:53:03','e','e');
-INSERT INTO `t2` VALUES (19,5,1,'17:53:30','h','h');
-INSERT INTO `t2` VALUES (20,1,8,'11:35:49','b','b');
-INSERT INTO `t2` VALUES (21,2,5,NULL,'s','s');
-INSERT INTO `t2` VALUES (22,NULL,5,'06:01:40','e','e');
-INSERT INTO `t2` VALUES (23,1,8,'05:45:11','j','j');
-INSERT INTO `t2` VALUES (24,0,6,'00:00:00','e','e');
-INSERT INTO `t2` VALUES (25,210,51,'00:00:00','f','f');
-INSERT INTO `t2` VALUES (26,8,4,'06:11:01','v','v');
-INSERT INTO `t2` VALUES (27,7,7,'13:02:46','x','x');
-INSERT INTO `t2` VALUES (28,5,6,'21:44:25','m','m');
-INSERT INTO `t2` VALUES (29,NULL,4,'22:43:58','c','c');
-CREATE TABLE `t1` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;
-INSERT INTO `t1` VALUES (1,NULL,2,'11:28:45','w','w');
-INSERT INTO `t1` VALUES (2,7,9,'20:25:14','m','m');
-INSERT INTO `t1` VALUES (3,9,3,'13:47:24','m','m');
-INSERT INTO `t1` VALUES (4,7,9,'19:24:11','k','k');
-INSERT INTO `t1` VALUES (5,4,NULL,'15:59:13','r','r');
-INSERT INTO `t1` VALUES (6,2,9,'00:00:00','t','t');
-INSERT INTO `t1` VALUES (7,6,3,'15:15:04','j','j');
-INSERT INTO `t1` VALUES (8,8,8,'11:32:06','u','u');
-INSERT INTO `t1` VALUES (9,NULL,8,'18:32:33','h','h');
-INSERT INTO `t1` VALUES (10,5,53,'15:19:25','o','o');
-INSERT INTO `t1` VALUES (11,NULL,0,'19:03:19',NULL,NULL);
-INSERT INTO `t1` VALUES (12,6,5,'00:39:46','k','k');
-INSERT INTO `t1` VALUES (13,188,166,NULL,'e','e');
-INSERT INTO `t1` VALUES (14,2,3,'00:00:00','n','n');
-INSERT INTO `t1` VALUES (15,1,0,'13:12:11','t','t');
-INSERT INTO `t1` VALUES (16,1,1,'04:56:48','c','c');
-INSERT INTO `t1` VALUES (17,0,9,'19:56:05','m','m');
-INSERT INTO `t1` VALUES (18,9,5,'19:35:19','y','y');
-INSERT INTO `t1` VALUES (19,NULL,6,'05:03:03','f','f');
-INSERT INTO `t1` VALUES (20,4,2,'18:38:59','d','d');
-set @@optimizer_switch='subquery_cache=off';
-/* cache is off */ SELECT (
-SELECT 4
-FROM DUAL ) AS field1 , SUM( DISTINCT table1 . `pk` ) AS field2 , (
-SELECT MAX( SUBQUERY2_t1 . `col_int_nokey` ) AS SUBQUERY2_field1
-FROM ( t1 AS SUBQUERY2_t1 INNER JOIN t1 AS SUBQUERY2_t2 ON (SUBQUERY2_t2 . `col_int_key` = SUBQUERY2_t1 . `pk` ) )
-WHERE SUBQUERY2_t2 . `col_varchar_nokey` <= table1 . `col_varchar_key` OR SUBQUERY2_t1 . `col_int_nokey` < table1 . `pk` ) AS field3 , table1 . `col_time_key` AS field4 , table1 . `col_int_key` AS field5 , CONCAT ( table2 . `col_varchar_nokey` , table1 . `col_varchar_key` ) AS field6
-FROM ( t1 AS table1 INNER JOIN ( ( t1 AS table2 LEFT JOIN t2 AS table3 ON (table3 . `col_varchar_key` = table2 . `col_varchar_key` ) ) ) ON (table3 . `col_varchar_key` = table2 . `col_varchar_nokey` ) )
-WHERE ( table2 . `col_varchar_nokey` NOT IN (
-SELECT 'd' UNION
-SELECT 'u' ) ) OR table3 . `col_varchar_nokey` <= table1 . `col_varchar_key`
-GROUP BY field1, field3, field4, field5, field6
-ORDER BY table1 . `col_int_key` , field1, field2, field3, field4, field5, field6
-;
-field1 field2 field3 field4 field5 field6
-4 5 9 15:59:13 NULL cr
-4 5 9 15:59:13 NULL dr
-4 5 9 15:59:13 NULL er
-4 5 9 15:59:13 NULL fr
-4 5 9 15:59:13 NULL hr
-4 5 9 15:59:13 NULL jr
-4 5 9 15:59:13 NULL mr
-4 5 9 15:59:13 NULL rr
-4 5 9 15:59:13 NULL yr
-4 11 9 19:03:19 0 NULL
-4 15 9 13:12:11 0 ct
-4 15 9 13:12:11 0 dt
-4 15 9 13:12:11 0 et
-4 15 9 13:12:11 0 ft
-4 15 9 13:12:11 0 ht
-4 15 9 13:12:11 0 jt
-4 15 9 13:12:11 0 mt
-4 15 9 13:12:11 0 rt
-4 15 9 13:12:11 0 yt
-4 16 9 04:56:48 1 cc
-4 16 9 04:56:48 1 ec
-4 16 9 04:56:48 1 fc
-4 16 9 04:56:48 1 hc
-4 16 9 04:56:48 1 jc
-4 16 9 04:56:48 1 mc
-4 16 9 04:56:48 1 rc
-4 16 9 04:56:48 1 yc
-4 1 9 11:28:45 2 cw
-4 1 9 11:28:45 2 dw
-4 1 9 11:28:45 2 ew
-4 1 9 11:28:45 2 fw
-4 1 9 11:28:45 2 hw
-4 1 9 11:28:45 2 jw
-4 1 9 11:28:45 2 mw
-4 1 9 11:28:45 2 rw
-4 1 9 11:28:45 2 yw
-4 20 9 18:38:59 2 cd
-4 20 9 18:38:59 2 dd
-4 20 9 18:38:59 2 ed
-4 20 9 18:38:59 2 fd
-4 20 9 18:38:59 2 hd
-4 20 9 18:38:59 2 jd
-4 20 9 18:38:59 2 md
-4 20 9 18:38:59 2 rd
-4 20 9 18:38:59 2 yd
-4 3 9 13:47:24 3 cm
-4 3 9 13:47:24 3 dm
-4 3 9 13:47:24 3 em
-4 3 9 13:47:24 3 fm
-4 3 9 13:47:24 3 hm
-4 3 9 13:47:24 3 jm
-4 3 9 13:47:24 3 mm
-4 3 9 13:47:24 3 rm
-4 3 9 13:47:24 3 ym
-4 7 9 15:15:04 3 cj
-4 7 9 15:15:04 3 dj
-4 7 9 15:15:04 3 ej
-4 7 9 15:15:04 3 fj
-4 7 9 15:15:04 3 hj
-4 7 9 15:15:04 3 jj
-4 7 9 15:15:04 3 mj
-4 7 9 15:15:04 3 rj
-4 7 9 15:15:04 3 yj
-4 14 9 00:00:00 3 cn
-4 14 9 00:00:00 3 dn
-4 14 9 00:00:00 3 en
-4 14 9 00:00:00 3 fn
-4 14 9 00:00:00 3 hn
-4 14 9 00:00:00 3 jn
-4 14 9 00:00:00 3 mn
-4 14 9 00:00:00 3 rn
-4 14 9 00:00:00 3 yn
-4 12 9 00:39:46 5 ck
-4 12 9 00:39:46 5 dk
-4 12 9 00:39:46 5 ek
-4 12 9 00:39:46 5 fk
-4 12 9 00:39:46 5 hk
-4 12 9 00:39:46 5 jk
-4 12 9 00:39:46 5 mk
-4 12 9 00:39:46 5 rk
-4 12 9 00:39:46 5 yk
-4 18 9 19:35:19 5 cy
-4 18 9 19:35:19 5 dy
-4 18 9 19:35:19 5 ey
-4 18 9 19:35:19 5 fy
-4 18 9 19:35:19 5 hy
-4 18 9 19:35:19 5 jy
-4 18 9 19:35:19 5 my
-4 18 9 19:35:19 5 ry
-4 18 9 19:35:19 5 yy
-4 19 9 05:03:03 6 cf
-4 19 9 05:03:03 6 df
-4 19 9 05:03:03 6 ef
-4 19 9 05:03:03 6 ff
-4 19 9 05:03:03 6 hf
-4 19 9 05:03:03 6 jf
-4 19 9 05:03:03 6 mf
-4 19 9 05:03:03 6 rf
-4 19 9 05:03:03 6 yf
-4 8 9 11:32:06 8 cu
-4 8 9 11:32:06 8 du
-4 8 9 11:32:06 8 eu
-4 8 9 11:32:06 8 fu
-4 8 9 11:32:06 8 hu
-4 8 9 11:32:06 8 ju
-4 8 9 11:32:06 8 mu
-4 8 9 11:32:06 8 ru
-4 8 9 11:32:06 8 yu
-4 9 8 18:32:33 8 ch
-4 9 8 18:32:33 8 dh
-4 9 8 18:32:33 8 eh
-4 9 8 18:32:33 8 fh
-4 9 8 18:32:33 8 hh
-4 9 8 18:32:33 8 jh
-4 9 8 18:32:33 8 mh
-4 9 8 18:32:33 8 rh
-4 9 8 18:32:33 8 yh
-4 2 9 20:25:14 9 cm
-4 2 9 20:25:14 9 dm
-4 2 9 20:25:14 9 em
-4 2 9 20:25:14 9 fm
-4 2 9 20:25:14 9 hm
-4 2 9 20:25:14 9 jm
-4 2 9 20:25:14 9 mm
-4 2 9 20:25:14 9 rm
-4 2 9 20:25:14 9 ym
-4 4 9 19:24:11 9 ck
-4 4 9 19:24:11 9 dk
-4 4 9 19:24:11 9 ek
-4 4 9 19:24:11 9 fk
-4 4 9 19:24:11 9 hk
-4 4 9 19:24:11 9 jk
-4 4 9 19:24:11 9 mk
-4 4 9 19:24:11 9 rk
-4 4 9 19:24:11 9 yk
-4 6 9 00:00:00 9 ct
-4 6 9 00:00:00 9 dt
-4 6 9 00:00:00 9 et
-4 6 9 00:00:00 9 ft
-4 6 9 00:00:00 9 ht
-4 6 9 00:00:00 9 jt
-4 6 9 00:00:00 9 mt
-4 6 9 00:00:00 9 rt
-4 6 9 00:00:00 9 yt
-4 17 9 19:56:05 9 cm
-4 17 9 19:56:05 9 dm
-4 17 9 19:56:05 9 em
-4 17 9 19:56:05 9 fm
-4 17 9 19:56:05 9 hm
-4 17 9 19:56:05 9 jm
-4 17 9 19:56:05 9 mm
-4 17 9 19:56:05 9 rm
-4 17 9 19:56:05 9 ym
-4 10 9 15:19:25 53 co
-4 10 9 15:19:25 53 do
-4 10 9 15:19:25 53 eo
-4 10 9 15:19:25 53 fo
-4 10 9 15:19:25 53 ho
-4 10 9 15:19:25 53 jo
-4 10 9 15:19:25 53 mo
-4 10 9 15:19:25 53 ro
-4 10 9 15:19:25 53 yo
-4 13 9 NULL 166 ce
-4 13 9 NULL 166 de
-4 13 9 NULL 166 ee
-4 13 9 NULL 166 fe
-4 13 9 NULL 166 he
-4 13 9 NULL 166 je
-4 13 9 NULL 166 me
-4 13 9 NULL 166 re
-4 13 9 NULL 166 ye
-set @@optimizer_switch='subquery_cache=on';
-/* cache is on */ SELECT (
-SELECT 4
-FROM DUAL ) AS field1 , SUM( DISTINCT table1 . `pk` ) AS field2 , (
-SELECT MAX( SUBQUERY2_t1 . `col_int_nokey` ) AS SUBQUERY2_field1
-FROM ( t1 AS SUBQUERY2_t1 INNER JOIN t1 AS SUBQUERY2_t2 ON (SUBQUERY2_t2 . `col_int_key` = SUBQUERY2_t1 . `pk` ) )
-WHERE SUBQUERY2_t2 . `col_varchar_nokey` <= table1 . `col_varchar_key` OR SUBQUERY2_t1 . `col_int_nokey` < table1 . `pk` ) AS field3 , table1 . `col_time_key` AS field4 , table1 . `col_int_key` AS field5 , CONCAT ( table2 . `col_varchar_nokey` , table1 . `col_varchar_key` ) AS field6
-FROM ( t1 AS table1 INNER JOIN ( ( t1 AS table2 LEFT JOIN t2 AS table3 ON (table3 . `col_varchar_key` = table2 . `col_varchar_key` ) ) ) ON (table3 . `col_varchar_key` = table2 . `col_varchar_nokey` ) )
-WHERE ( table2 . `col_varchar_nokey` NOT IN (
-SELECT 'd' UNION
-SELECT 'u' ) ) OR table3 . `col_varchar_nokey` <= table1 . `col_varchar_key`
-GROUP BY field1, field3, field4, field5, field6
-ORDER BY table1 . `col_int_key` , field1, field2, field3, field4, field5, field6
-;
-field1 field2 field3 field4 field5 field6
-4 5 9 15:59:13 NULL cr
-4 5 9 15:59:13 NULL dr
-4 5 9 15:59:13 NULL er
-4 5 9 15:59:13 NULL fr
-4 5 9 15:59:13 NULL hr
-4 5 9 15:59:13 NULL jr
-4 5 9 15:59:13 NULL mr
-4 5 9 15:59:13 NULL rr
-4 5 9 15:59:13 NULL yr
-4 11 9 19:03:19 0 NULL
-4 15 9 13:12:11 0 ct
-4 15 9 13:12:11 0 dt
-4 15 9 13:12:11 0 et
-4 15 9 13:12:11 0 ft
-4 15 9 13:12:11 0 ht
-4 15 9 13:12:11 0 jt
-4 15 9 13:12:11 0 mt
-4 15 9 13:12:11 0 rt
-4 15 9 13:12:11 0 yt
-4 16 9 04:56:48 1 cc
-4 16 9 04:56:48 1 ec
-4 16 9 04:56:48 1 fc
-4 16 9 04:56:48 1 hc
-4 16 9 04:56:48 1 jc
-4 16 9 04:56:48 1 mc
-4 16 9 04:56:48 1 rc
-4 16 9 04:56:48 1 yc
-4 1 9 11:28:45 2 cw
-4 1 9 11:28:45 2 dw
-4 1 9 11:28:45 2 ew
-4 1 9 11:28:45 2 fw
-4 1 9 11:28:45 2 hw
-4 1 9 11:28:45 2 jw
-4 1 9 11:28:45 2 mw
-4 1 9 11:28:45 2 rw
-4 1 9 11:28:45 2 yw
-4 20 9 18:38:59 2 cd
-4 20 9 18:38:59 2 dd
-4 20 9 18:38:59 2 ed
-4 20 9 18:38:59 2 fd
-4 20 9 18:38:59 2 hd
-4 20 9 18:38:59 2 jd
-4 20 9 18:38:59 2 md
-4 20 9 18:38:59 2 rd
-4 20 9 18:38:59 2 yd
-4 3 9 13:47:24 3 cm
-4 3 9 13:47:24 3 dm
-4 3 9 13:47:24 3 em
-4 3 9 13:47:24 3 fm
-4 3 9 13:47:24 3 hm
-4 3 9 13:47:24 3 jm
-4 3 9 13:47:24 3 mm
-4 3 9 13:47:24 3 rm
-4 3 9 13:47:24 3 ym
-4 7 9 15:15:04 3 cj
-4 7 9 15:15:04 3 dj
-4 7 9 15:15:04 3 ej
-4 7 9 15:15:04 3 fj
-4 7 9 15:15:04 3 hj
-4 7 9 15:15:04 3 jj
-4 7 9 15:15:04 3 mj
-4 7 9 15:15:04 3 rj
-4 7 9 15:15:04 3 yj
-4 14 9 00:00:00 3 cn
-4 14 9 00:00:00 3 dn
-4 14 9 00:00:00 3 en
-4 14 9 00:00:00 3 fn
-4 14 9 00:00:00 3 hn
-4 14 9 00:00:00 3 jn
-4 14 9 00:00:00 3 mn
-4 14 9 00:00:00 3 rn
-4 14 9 00:00:00 3 yn
-4 12 9 00:39:46 5 ck
-4 12 9 00:39:46 5 dk
-4 12 9 00:39:46 5 ek
-4 12 9 00:39:46 5 fk
-4 12 9 00:39:46 5 hk
-4 12 9 00:39:46 5 jk
-4 12 9 00:39:46 5 mk
-4 12 9 00:39:46 5 rk
-4 12 9 00:39:46 5 yk
-4 18 9 19:35:19 5 cy
-4 18 9 19:35:19 5 dy
-4 18 9 19:35:19 5 ey
-4 18 9 19:35:19 5 fy
-4 18 9 19:35:19 5 hy
-4 18 9 19:35:19 5 jy
-4 18 9 19:35:19 5 my
-4 18 9 19:35:19 5 ry
-4 18 9 19:35:19 5 yy
-4 19 9 05:03:03 6 cf
-4 19 9 05:03:03 6 df
-4 19 9 05:03:03 6 ef
-4 19 9 05:03:03 6 ff
-4 19 9 05:03:03 6 hf
-4 19 9 05:03:03 6 jf
-4 19 9 05:03:03 6 mf
-4 19 9 05:03:03 6 rf
-4 19 9 05:03:03 6 yf
-4 8 9 11:32:06 8 cu
-4 8 9 11:32:06 8 du
-4 8 9 11:32:06 8 eu
-4 8 9 11:32:06 8 fu
-4 8 9 11:32:06 8 hu
-4 8 9 11:32:06 8 ju
-4 8 9 11:32:06 8 mu
-4 8 9 11:32:06 8 ru
-4 8 9 11:32:06 8 yu
-4 9 8 18:32:33 8 ch
-4 9 8 18:32:33 8 dh
-4 9 8 18:32:33 8 eh
-4 9 8 18:32:33 8 fh
-4 9 8 18:32:33 8 hh
-4 9 8 18:32:33 8 jh
-4 9 8 18:32:33 8 mh
-4 9 8 18:32:33 8 rh
-4 9 8 18:32:33 8 yh
-4 2 9 20:25:14 9 cm
-4 2 9 20:25:14 9 dm
-4 2 9 20:25:14 9 em
-4 2 9 20:25:14 9 fm
-4 2 9 20:25:14 9 hm
-4 2 9 20:25:14 9 jm
-4 2 9 20:25:14 9 mm
-4 2 9 20:25:14 9 rm
-4 2 9 20:25:14 9 ym
-4 4 9 19:24:11 9 ck
-4 4 9 19:24:11 9 dk
-4 4 9 19:24:11 9 ek
-4 4 9 19:24:11 9 fk
-4 4 9 19:24:11 9 hk
-4 4 9 19:24:11 9 jk
-4 4 9 19:24:11 9 mk
-4 4 9 19:24:11 9 rk
-4 4 9 19:24:11 9 yk
-4 6 9 00:00:00 9 ct
-4 6 9 00:00:00 9 dt
-4 6 9 00:00:00 9 et
-4 6 9 00:00:00 9 ft
-4 6 9 00:00:00 9 ht
-4 6 9 00:00:00 9 jt
-4 6 9 00:00:00 9 mt
-4 6 9 00:00:00 9 rt
-4 6 9 00:00:00 9 yt
-4 17 9 19:56:05 9 cm
-4 17 9 19:56:05 9 dm
-4 17 9 19:56:05 9 em
-4 17 9 19:56:05 9 fm
-4 17 9 19:56:05 9 hm
-4 17 9 19:56:05 9 jm
-4 17 9 19:56:05 9 mm
-4 17 9 19:56:05 9 rm
-4 17 9 19:56:05 9 ym
-4 10 9 15:19:25 53 co
-4 10 9 15:19:25 53 do
-4 10 9 15:19:25 53 eo
-4 10 9 15:19:25 53 fo
-4 10 9 15:19:25 53 ho
-4 10 9 15:19:25 53 jo
-4 10 9 15:19:25 53 mo
-4 10 9 15:19:25 53 ro
-4 10 9 15:19:25 53 yo
-4 13 9 NULL 166 ce
-4 13 9 NULL 166 de
-4 13 9 NULL 166 ee
-4 13 9 NULL 166 fe
-4 13 9 NULL 166 he
-4 13 9 NULL 166 je
-4 13 9 NULL 166 me
-4 13 9 NULL 166 re
-4 13 9 NULL 166 ye
-drop table t1,t2;
-set @@optimizer_switch= default;
-#launchpad BUG#609045
-CREATE TABLE `t1` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_date_key` date DEFAULT NULL,
-`col_date_nokey` date DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_time_nokey` time DEFAULT NULL,
-`col_datetime_key` datetime DEFAULT NULL,
-`col_datetime_nokey` datetime DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_date_key` (`col_date_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_datetime_key` (`col_datetime_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;
-INSERT INTO `t1` VALUES (1,NULL,2,NULL,NULL,'11:28:45','11:28:45','2004-10-11 18:13:16','2004-10-11 18:13:16','w','w');
-INSERT INTO `t1` VALUES (2,7,9,'2001-09-19','2001-09-19','20:25:14','20:25:14',NULL,NULL,'m','m');
-INSERT INTO `t1` VALUES (3,9,3,'2004-09-12','2004-09-12','13:47:24','13:47:24','1900-01-01 00:00:00','1900-01-01 00:00:00','m','m');
-INSERT INTO `t1` VALUES (4,7,9,NULL,NULL,'19:24:11','19:24:11','2009-07-25 00:00:00','2009-07-25 00:00:00','k','k');
-INSERT INTO `t1` VALUES (5,4,NULL,'2002-07-19','2002-07-19','15:59:13','15:59:13',NULL,NULL,'r','r');
-INSERT INTO `t1` VALUES (6,2,9,'2002-12-16','2002-12-16','00:00:00','00:00:00','2008-07-27 00:00:00','2008-07-27 00:00:00','t','t');
-INSERT INTO `t1` VALUES (7,6,3,'2006-02-08','2006-02-08','15:15:04','15:15:04','2002-11-13 16:37:31','2002-11-13 16:37:31','j','j');
-INSERT INTO `t1` VALUES (8,8,8,'2006-08-28','2006-08-28','11:32:06','11:32:06','1900-01-01 00:00:00','1900-01-01 00:00:00','u','u');
-INSERT INTO `t1` VALUES (9,NULL,8,'2001-04-14','2001-04-14','18:32:33','18:32:33','2003-12-10 00:00:00','2003-12-10 00:00:00','h','h');
-INSERT INTO `t1` VALUES (10,5,53,'2000-01-05','2000-01-05','15:19:25','15:19:25','2001-12-21 22:38:22','2001-12-21 22:38:22','o','o');
-INSERT INTO `t1` VALUES (11,NULL,0,'2003-12-06','2003-12-06','19:03:19','19:03:19','2008-12-13 23:16:44','2008-12-13 23:16:44',NULL,NULL);
-INSERT INTO `t1` VALUES (12,6,5,'1900-01-01','1900-01-01','00:39:46','00:39:46','2005-08-15 12:39:41','2005-08-15 12:39:41','k','k');
-INSERT INTO `t1` VALUES (13,188,166,'2002-11-27','2002-11-27',NULL,NULL,NULL,NULL,'e','e');
-INSERT INTO `t1` VALUES (14,2,3,NULL,NULL,'00:00:00','00:00:00','2006-09-11 12:06:14','2006-09-11 12:06:14','n','n');
-INSERT INTO `t1` VALUES (15,1,0,'2003-05-27','2003-05-27','13:12:11','13:12:11','2007-12-15 12:39:34','2007-12-15 12:39:34','t','t');
-INSERT INTO `t1` VALUES (16,1,1,'2005-05-03','2005-05-03','04:56:48','04:56:48','2005-08-09 00:00:00','2005-08-09 00:00:00','c','c');
-INSERT INTO `t1` VALUES (17,0,9,'2001-04-18','2001-04-18','19:56:05','19:56:05','2001-09-02 22:50:02','2001-09-02 22:50:02','m','m');
-INSERT INTO `t1` VALUES (18,9,5,'2005-12-27','2005-12-27','19:35:19','19:35:19','2005-12-16 22:58:11','2005-12-16 22:58:11','y','y');
-INSERT INTO `t1` VALUES (19,NULL,6,'2004-08-20','2004-08-20','05:03:03','05:03:03','2007-04-19 00:19:53','2007-04-19 00:19:53','f','f');
-INSERT INTO `t1` VALUES (20,4,2,'1900-01-01','1900-01-01','18:38:59','18:38:59','1900-01-01 00:00:00','1900-01-01 00:00:00','d','d');
-CREATE TABLE `t2` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_date_key` date DEFAULT NULL,
-`col_date_nokey` date DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_time_nokey` time DEFAULT NULL,
-`col_datetime_key` datetime DEFAULT NULL,
-`col_datetime_nokey` datetime DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_date_key` (`col_date_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_datetime_key` (`col_datetime_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-);
-INSERT INTO `t2` VALUES (10,7,8,NULL,NULL,'01:27:35','01:27:35','2002-02-26 06:14:37','2002-02-26 06:14:37','v','v');
-INSERT INTO `t2` VALUES (11,1,9,'2006-06-14','2006-06-14','19:48:31','19:48:31','1900-01-01 00:00:00','1900-01-01 00:00:00','r','r');
-INSERT INTO `t2` VALUES (12,5,9,'2002-09-12','2002-09-12','00:00:00','00:00:00','2006-12-03 09:37:26','2006-12-03 09:37:26','a','a');
-INSERT INTO `t2` VALUES (13,3,186,'2005-02-15','2005-02-15','19:53:05','19:53:05','2008-05-26 12:27:10','2008-05-26 12:27:10','m','m');
-INSERT INTO `t2` VALUES (14,6,NULL,NULL,NULL,'19:18:56','19:18:56','2004-12-14 16:37:30','2004-12-14 16:37:30','y','y');
-INSERT INTO `t2` VALUES (15,92,2,'2008-11-04','2008-11-04','10:55:12','10:55:12','2003-02-11 21:19:41','2003-02-11 21:19:41','j','j');
-INSERT INTO `t2` VALUES (16,7,3,'2004-09-04','2004-09-04','00:25:00','00:25:00','2009-10-18 02:27:49','2009-10-18 02:27:49','d','d');
-INSERT INTO `t2` VALUES (17,NULL,0,'2006-06-05','2006-06-05','12:35:47','12:35:47','2000-09-26 07:45:57','2000-09-26 07:45:57','z','z');
-INSERT INTO `t2` VALUES (18,3,133,'1900-01-01','1900-01-01','19:53:03','19:53:03',NULL,NULL,'e','e');
-INSERT INTO `t2` VALUES (19,5,1,'1900-01-01','1900-01-01','17:53:30','17:53:30','2005-11-10 12:40:29','2005-11-10 12:40:29','h','h');
-INSERT INTO `t2` VALUES (20,1,8,'1900-01-01','1900-01-01','11:35:49','11:35:49','2009-04-25 00:00:00','2009-04-25 00:00:00','b','b');
-INSERT INTO `t2` VALUES (21,2,5,'2005-01-13','2005-01-13',NULL,NULL,'2002-11-27 00:00:00','2002-11-27 00:00:00','s','s');
-INSERT INTO `t2` VALUES (22,NULL,5,'2006-05-21','2006-05-21','06:01:40','06:01:40','2004-01-26 20:32:32','2004-01-26 20:32:32','e','e');
-INSERT INTO `t2` VALUES (23,1,8,'2003-09-08','2003-09-08','05:45:11','05:45:11','2007-10-26 11:41:40','2007-10-26 11:41:40','j','j');
-INSERT INTO `t2` VALUES (24,0,6,'2006-12-23','2006-12-23','00:00:00','00:00:00','2005-10-07 00:00:00','2005-10-07 00:00:00','e','e');
-INSERT INTO `t2` VALUES (25,210,51,'2006-10-15','2006-10-15','00:00:00','00:00:00','2000-07-15 05:00:34','2000-07-15 05:00:34','f','f');
-INSERT INTO `t2` VALUES (26,8,4,'2005-04-06','2005-04-06','06:11:01','06:11:01','2000-04-03 16:33:32','2000-04-03 16:33:32','v','v');
-INSERT INTO `t2` VALUES (27,7,7,'2008-04-07','2008-04-07','13:02:46','13:02:46',NULL,NULL,'x','x');
-INSERT INTO `t2` VALUES (28,5,6,'2006-10-10','2006-10-10','21:44:25','21:44:25','2001-04-25 01:26:12','2001-04-25 01:26:12','m','m');
-INSERT INTO `t2` VALUES (29,NULL,4,'1900-01-01','1900-01-01','22:43:58','22:43:58','2000-12-27 00:00:00','2000-12-27 00:00:00','c','c');
-CREATE TABLE `t3` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_date_key` date DEFAULT NULL,
-`col_date_nokey` date DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_time_nokey` time DEFAULT NULL,
-`col_datetime_key` datetime DEFAULT NULL,
-`col_datetime_nokey` datetime DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_date_key` (`col_date_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_datetime_key` (`col_datetime_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-);
-INSERT INTO `t3` VALUES (1,1,7,'1900-01-01','1900-01-01','01:13:38','01:13:38','2005-02-05 00:00:00','2005-02-05 00:00:00','f','f');
-CREATE TABLE `t4` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_date_key` date DEFAULT NULL,
-`col_date_nokey` date DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_time_nokey` time DEFAULT NULL,
-`col_datetime_key` datetime DEFAULT NULL,
-`col_datetime_nokey` datetime DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_date_key` (`col_date_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_datetime_key` (`col_datetime_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-);
-INSERT INTO `t4` VALUES (1,6,NULL,'2003-05-12','2003-05-12',NULL,NULL,'2000-09-12 00:00:00','2000-09-12 00:00:00','r','r');
-INSERT INTO `t4` VALUES (2,8,0,'2003-01-07','2003-01-07','14:34:45','14:34:45','2004-08-10 09:09:31','2004-08-10 09:09:31','c','c');
-INSERT INTO `t4` VALUES (3,6,0,NULL,NULL,'11:49:48','11:49:48','2005-03-21 04:31:40','2005-03-21 04:31:40','o','o');
-INSERT INTO `t4` VALUES (4,6,7,'2005-03-12','2005-03-12','18:12:55','18:12:55','2002-10-25 23:50:35','2002-10-25 23:50:35','c','c');
-INSERT INTO `t4` VALUES (5,3,8,'2000-08-02','2000-08-02','18:30:05','18:30:05','2001-04-01 21:14:04','2001-04-01 21:14:04','d','d');
-INSERT INTO `t4` VALUES (6,9,4,'1900-01-01','1900-01-01','14:19:30','14:19:30','2005-03-12 06:02:34','2005-03-12 06:02:34','v','v');
-INSERT INTO `t4` VALUES (7,2,6,'2006-07-06','2006-07-06','05:20:04','05:20:04','2001-05-06 14:49:12','2001-05-06 14:49:12','m','m');
-INSERT INTO `t4` VALUES (8,1,5,'2006-12-24','2006-12-24','20:29:31','20:29:31','2004-04-25 00:00:00','2004-04-25 00:00:00','j','j');
-INSERT INTO `t4` VALUES (9,8,NULL,'2004-11-16','2004-11-16','07:08:09','07:08:09','2001-03-22 18:38:43','2001-03-22 18:38:43','f','f');
-INSERT INTO `t4` VALUES (10,0,NULL,'2002-09-09','2002-09-09','14:49:14','14:49:14','2006-04-25 21:03:02','2006-04-25 21:03:02','n','n');
-INSERT INTO `t4` VALUES (11,9,8,NULL,NULL,'00:00:00','00:00:00','2009-09-07 18:40:43','2009-09-07 18:40:43','z','z');
-INSERT INTO `t4` VALUES (12,8,8,'2008-06-24','2008-06-24','09:58:06','09:58:06','2004-03-23 00:00:00','2004-03-23 00:00:00','h','h');
-INSERT INTO `t4` VALUES (13,NULL,8,'2001-04-21','2001-04-21',NULL,NULL,'2009-04-15 00:08:29','2009-04-15 00:08:29','q','q');
-INSERT INTO `t4` VALUES (14,0,1,'2003-11-22','2003-11-22','18:24:16','18:24:16','2000-04-21 00:00:00','2000-04-21 00:00:00','w','w');
-INSERT INTO `t4` VALUES (15,5,1,'2004-09-12','2004-09-12','17:39:57','17:39:57','2000-02-17 19:41:23','2000-02-17 19:41:23','z','z');
-INSERT INTO `t4` VALUES (16,1,5,'2006-06-20','2006-06-20','08:23:21','08:23:21','2003-09-20 07:38:14','2003-09-20 07:38:14','j','j');
-INSERT INTO `t4` VALUES (17,1,2,NULL,NULL,NULL,NULL,'2000-11-28 20:42:12','2000-11-28 20:42:12','a','a');
-INSERT INTO `t4` VALUES (18,6,7,'2001-11-25','2001-11-25','21:50:46','21:50:46','2005-06-12 11:13:17','2005-06-12 11:13:17','m','m');
-INSERT INTO `t4` VALUES (19,6,6,'2004-10-26','2004-10-26','12:33:17','12:33:17','1900-01-01 00:00:00','1900-01-01 00:00:00','n','n');
-INSERT INTO `t4` VALUES (20,1,4,'2005-01-19','2005-01-19','03:06:43','03:06:43','2006-02-09 20:41:06','2006-02-09 20:41:06','e','e');
-INSERT INTO `t4` VALUES (21,8,7,'2008-07-06','2008-07-06','03:46:14','03:46:14','2004-05-22 01:05:57','2004-05-22 01:05:57','u','u');
-INSERT INTO `t4` VALUES (22,1,0,'1900-01-01','1900-01-01','20:34:52','20:34:52','2004-03-04 13:46:31','2004-03-04 13:46:31','s','s');
-INSERT INTO `t4` VALUES (23,0,9,'1900-01-01','1900-01-01',NULL,NULL,'1900-01-01 00:00:00','1900-01-01 00:00:00','u','u');
-INSERT INTO `t4` VALUES (24,4,3,'2004-06-08','2004-06-08','10:41:20','10:41:20','2004-10-20 07:20:19','2004-10-20 07:20:19','r','r');
-INSERT INTO `t4` VALUES (25,9,5,'2007-02-20','2007-02-20','08:43:11','08:43:11','2006-04-17 00:00:00','2006-04-17 00:00:00','g','g');
-INSERT INTO `t4` VALUES (26,8,1,'2008-06-18','2008-06-18',NULL,NULL,'2000-10-27 00:00:00','2000-10-27 00:00:00','o','o');
-INSERT INTO `t4` VALUES (27,5,1,'2008-05-15','2008-05-15','10:17:51','10:17:51','2007-04-14 08:54:06','2007-04-14 08:54:06','w','w');
-INSERT INTO `t4` VALUES (28,9,5,'2005-10-06','2005-10-06','06:34:09','06:34:09','2008-04-12 17:03:52','2008-04-12 17:03:52','b','b');
-INSERT INTO `t4` VALUES (29,5,9,NULL,NULL,'21:22:47','21:22:47','2007-02-19 17:37:09','2007-02-19 17:37:09',NULL,NULL);
-INSERT INTO `t4` VALUES (30,NULL,2,'2006-10-12','2006-10-12','04:02:32','04:02:32','1900-01-01 00:00:00','1900-01-01 00:00:00','y','y');
-INSERT INTO `t4` VALUES (31,NULL,5,'2005-01-24','2005-01-24','02:33:14','02:33:14','2001-10-10 08:32:27','2001-10-10 08:32:27','y','y');
-INSERT INTO `t4` VALUES (32,105,248,'2009-06-27','2009-06-27','16:32:56','16:32:56',NULL,NULL,'u','u');
-INSERT INTO `t4` VALUES (33,0,0,NULL,NULL,'21:32:42','21:32:42','2001-12-16 05:31:53','2001-12-16 05:31:53','p','p');
-INSERT INTO `t4` VALUES (34,3,8,NULL,NULL,'23:04:47','23:04:47','2003-07-19 18:03:28','2003-07-19 18:03:28','s','s');
-INSERT INTO `t4` VALUES (35,1,1,'1900-01-01','1900-01-01','22:05:43','22:05:43','2001-03-27 11:44:10','2001-03-27 11:44:10','e','e');
-INSERT INTO `t4` VALUES (36,75,255,'2005-12-22','2005-12-22','02:05:45','02:05:45','2008-06-15 02:13:00','2008-06-15 02:13:00','d','d');
-INSERT INTO `t4` VALUES (37,9,9,'2005-05-03','2005-05-03','00:00:00','00:00:00','2009-03-14 21:29:56','2009-03-14 21:29:56','d','d');
-INSERT INTO `t4` VALUES (38,7,9,'2003-05-27','2003-05-27','18:09:07','18:09:07','2005-01-02 00:00:00','2005-01-02 00:00:00','c','c');
-INSERT INTO `t4` VALUES (39,NULL,3,'2006-05-25','2006-05-25','10:54:06','10:54:06','2007-07-16 04:44:07','2007-07-16 04:44:07','b','b');
-INSERT INTO `t4` VALUES (40,NULL,9,NULL,NULL,'23:15:50','23:15:50','2003-08-26 21:38:26','2003-08-26 21:38:26','t','t');
-INSERT INTO `t4` VALUES (41,4,6,'2009-01-04','2009-01-04','10:17:40','10:17:40','2004-04-19 04:18:47','2004-04-19 04:18:47',NULL,NULL);
-INSERT INTO `t4` VALUES (42,0,4,'2009-02-14','2009-02-14','03:37:09','03:37:09','2000-01-06 20:32:48','2000-01-06 20:32:48','y','y');
-INSERT INTO `t4` VALUES (43,204,60,'2003-01-16','2003-01-16','22:26:06','22:26:06','2006-06-23 13:27:17','2006-06-23 13:27:17','c','c');
-INSERT INTO `t4` VALUES (44,0,7,'1900-01-01','1900-01-01','17:10:38','17:10:38','2007-11-27 00:00:00','2007-11-27 00:00:00','d','d');
-INSERT INTO `t4` VALUES (45,9,1,'2007-06-26','2007-06-26','00:00:00','00:00:00','2002-04-03 12:06:51','2002-04-03 12:06:51','x','x');
-INSERT INTO `t4` VALUES (46,8,6,'2004-03-27','2004-03-27','17:08:49','17:08:49','2008-12-28 09:47:42','2008-12-28 09:47:42','p','p');
-INSERT INTO `t4` VALUES (47,7,4,NULL,NULL,'19:04:40','19:04:40','2002-04-04 10:07:54','2002-04-04 10:07:54','e','e');
-INSERT INTO `t4` VALUES (48,8,NULL,'2005-06-06','2005-06-06','20:53:28','20:53:28','2003-04-26 02:55:13','2003-04-26 02:55:13','g','g');
-INSERT INTO `t4` VALUES (49,NULL,8,'2003-03-02','2003-03-02','11:46:03','11:46:03',NULL,NULL,'x','x');
-INSERT INTO `t4` VALUES (50,6,0,'2004-05-13','2004-05-13',NULL,NULL,'2009-02-19 03:17:06','2009-02-19 03:17:06','s','s');
-INSERT INTO `t4` VALUES (51,5,8,'2005-09-13','2005-09-13','10:58:07','10:58:07','1900-01-01 00:00:00','1900-01-01 00:00:00','e','e');
-INSERT INTO `t4` VALUES (52,2,151,'2005-10-03','2005-10-03','00:00:00','00:00:00','2000-11-10 08:20:01','2000-11-10 08:20:01','l','l');
-INSERT INTO `t4` VALUES (53,3,7,'2005-10-14','2005-10-14','09:43:15','09:43:15','2008-02-10 00:00:00','2008-02-10 00:00:00','p','p');
-INSERT INTO `t4` VALUES (54,7,6,NULL,NULL,'21:40:32','21:40:32','1900-01-01 00:00:00','1900-01-01 00:00:00','h','h');
-INSERT INTO `t4` VALUES (55,NULL,NULL,'2005-09-16','2005-09-16','00:17:44','00:17:44',NULL,NULL,'m','m');
-INSERT INTO `t4` VALUES (56,145,23,'2005-03-10','2005-03-10','16:47:26','16:47:26','2001-02-05 02:01:50','2001-02-05 02:01:50','n','n');
-INSERT INTO `t4` VALUES (57,0,2,'2000-06-19','2000-06-19','00:00:00','00:00:00','2000-10-28 08:44:25','2000-10-28 08:44:25','v','v');
-INSERT INTO `t4` VALUES (58,1,4,'2002-11-03','2002-11-03','05:25:59','05:25:59','2005-03-20 10:53:59','2005-03-20 10:53:59','b','b');
-INSERT INTO `t4` VALUES (59,7,NULL,'2009-01-05','2009-01-05','00:00:00','00:00:00','2001-06-02 13:54:13','2001-06-02 13:54:13','x','x');
-INSERT INTO `t4` VALUES (60,3,NULL,'2003-05-22','2003-05-22','20:33:04','20:33:04','1900-01-01 00:00:00','1900-01-01 00:00:00','r','r');
-INSERT INTO `t4` VALUES (61,NULL,77,'2005-07-02','2005-07-02','00:46:12','00:46:12','2009-07-16 13:05:43','2009-07-16 13:05:43','t','t');
-INSERT INTO `t4` VALUES (62,2,NULL,'1900-01-01','1900-01-01','00:00:00','00:00:00','2009-03-26 23:16:20','2009-03-26 23:16:20','w','w');
-INSERT INTO `t4` VALUES (63,2,NULL,'2006-06-21','2006-06-21','02:13:59','02:13:59','2003-02-06 18:12:15','2003-02-06 18:12:15','w','w');
-INSERT INTO `t4` VALUES (64,2,7,NULL,NULL,'02:54:47','02:54:47','2006-06-05 03:22:51','2006-06-05 03:22:51','k','k');
-INSERT INTO `t4` VALUES (65,8,1,'2005-12-16','2005-12-16','18:13:59','18:13:59','2002-02-10 05:47:27','2002-02-10 05:47:27','a','a');
-INSERT INTO `t4` VALUES (66,6,9,'2004-11-05','2004-11-05','13:53:08','13:53:08','2001-08-01 08:50:52','2001-08-01 08:50:52','t','t');
-INSERT INTO `t4` VALUES (67,1,6,NULL,NULL,'22:21:30','22:21:30','1900-01-01 00:00:00','1900-01-01 00:00:00','z','z');
-INSERT INTO `t4` VALUES (68,NULL,2,'2004-09-14','2004-09-14','11:41:50','11:41:50',NULL,NULL,'e','e');
-INSERT INTO `t4` VALUES (69,1,3,'2002-04-06','2002-04-06','15:20:02','15:20:02','1900-01-01 00:00:00','1900-01-01 00:00:00','q','q');
-INSERT INTO `t4` VALUES (70,0,0,NULL,NULL,NULL,NULL,'2000-09-23 00:00:00','2000-09-23 00:00:00','e','e');
-INSERT INTO `t4` VALUES (71,4,NULL,'2002-11-13','2002-11-13',NULL,NULL,'2007-07-09 08:32:49','2007-07-09 08:32:49','v','v');
-INSERT INTO `t4` VALUES (72,1,6,'2006-05-27','2006-05-27','07:51:52','07:51:52','2000-01-05 00:00:00','2000-01-05 00:00:00','d','d');
-INSERT INTO `t4` VALUES (73,1,3,'2000-12-22','2000-12-22','00:00:00','00:00:00','2000-09-24 00:00:00','2000-09-24 00:00:00','u','u');
-INSERT INTO `t4` VALUES (74,27,195,'2004-02-21','2004-02-21',NULL,NULL,'2005-05-06 00:00:00','2005-05-06 00:00:00','o','o');
-INSERT INTO `t4` VALUES (75,4,5,'2009-05-15','2009-05-15',NULL,NULL,'2000-03-11 00:00:00','2000-03-11 00:00:00','b','b');
-INSERT INTO `t4` VALUES (76,6,2,'2008-12-12','2008-12-12','12:31:05','12:31:05','2001-09-02 16:17:35','2001-09-02 16:17:35','c','c');
-INSERT INTO `t4` VALUES (77,2,7,'2000-04-15','2000-04-15','00:00:00','00:00:00','2006-04-25 05:43:44','2006-04-25 05:43:44','q','q');
-INSERT INTO `t4` VALUES (78,248,25,NULL,NULL,'01:16:45','01:16:45','2009-10-25 22:04:02','2009-10-25 22:04:02',NULL,NULL);
-INSERT INTO `t4` VALUES (79,NULL,NULL,'2001-10-18','2001-10-18','20:38:54','20:38:54','2004-08-06 00:00:00','2004-08-06 00:00:00','h','h');
-INSERT INTO `t4` VALUES (80,9,0,'2008-05-25','2008-05-25','00:30:15','00:30:15','2001-11-27 05:07:57','2001-11-27 05:07:57','d','d');
-INSERT INTO `t4` VALUES (81,75,98,'2004-12-02','2004-12-02','23:46:36','23:46:36','2009-06-28 03:18:39','2009-06-28 03:18:39','w','w');
-INSERT INTO `t4` VALUES (82,2,6,'2002-02-15','2002-02-15','19:03:13','19:03:13','2000-03-12 00:00:00','2000-03-12 00:00:00','m','m');
-INSERT INTO `t4` VALUES (83,9,5,'2002-03-03','2002-03-03','10:54:27','10:54:27',NULL,NULL,'i','i');
-INSERT INTO `t4` VALUES (84,4,0,NULL,NULL,'00:25:47','00:25:47','2007-10-20 00:00:00','2007-10-20 00:00:00','w','w');
-INSERT INTO `t4` VALUES (85,0,3,'2003-01-26','2003-01-26','08:44:27','08:44:27','2009-09-27 00:00:00','2009-09-27 00:00:00','f','f');
-INSERT INTO `t4` VALUES (86,0,1,'2001-12-19','2001-12-19','08:15:38','08:15:38','2002-07-16 00:00:00','2002-07-16 00:00:00','k','k');
-INSERT INTO `t4` VALUES (87,1,1,'2001-08-07','2001-08-07','19:56:21','19:56:21','2005-02-20 00:00:00','2005-02-20 00:00:00','v','v');
-INSERT INTO `t4` VALUES (88,119,147,'2005-02-16','2005-02-16','00:00:00','00:00:00',NULL,NULL,'c','c');
-INSERT INTO `t4` VALUES (89,1,3,'2006-06-10','2006-06-10','20:50:52','20:50:52','2001-07-16 00:00:00','2001-07-16 00:00:00','y','y');
-INSERT INTO `t4` VALUES (90,7,3,NULL,NULL,'03:54:39','03:54:39','2009-05-20 21:04:12','2009-05-20 21:04:12','h','h');
-INSERT INTO `t4` VALUES (91,2,NULL,'2005-04-06','2005-04-06','23:58:17','23:58:17','2002-03-13 10:55:40','2002-03-13 10:55:40',NULL,NULL);
-INSERT INTO `t4` VALUES (92,7,2,'2003-04-27','2003-04-27','12:54:58','12:54:58','2005-07-12 00:00:00','2005-07-12 00:00:00','t','t');
-INSERT INTO `t4` VALUES (93,2,1,'2005-10-13','2005-10-13','04:02:43','04:02:43','2006-07-22 09:46:34','2006-07-22 09:46:34','l','l');
-INSERT INTO `t4` VALUES (94,6,8,'2003-10-02','2003-10-02','11:31:12','11:31:12','2001-09-01 00:00:00','2001-09-01 00:00:00','a','a');
-INSERT INTO `t4` VALUES (95,4,8,'2005-09-09','2005-09-09','20:20:04','20:20:04','2002-05-27 18:38:45','2002-05-27 18:38:45','r','r');
-INSERT INTO `t4` VALUES (96,5,8,NULL,NULL,'00:22:24','00:22:24',NULL,NULL,'s','s');
-INSERT INTO `t4` VALUES (97,7,0,'2006-02-15','2006-02-15','10:09:31','10:09:31',NULL,NULL,'z','z');
-INSERT INTO `t4` VALUES (98,1,1,'1900-01-01','1900-01-01',NULL,NULL,'2009-08-08 22:38:53','2009-08-08 22:38:53','j','j');
-INSERT INTO `t4` VALUES (99,7,8,'2003-12-24','2003-12-24','18:45:35','18:45:35',NULL,NULL,'c','c');
-INSERT INTO `t4` VALUES (100,2,5,'2001-07-26','2001-07-26','11:49:25','11:49:25','2007-04-25 05:08:49','2007-04-25 05:08:49','f','f');
-SET @@optimizer_switch='subquery_cache=off';
-/* cache is off */ SELECT COUNT( DISTINCT table2 .`col_int_key` ) , (
-SELECT SUBQUERY2_t1 .`col_int_key`
-FROM t3 SUBQUERY2_t1 JOIN t2 ON SUBQUERY2_t1 .`col_int_key`
-WHERE table1 .`col_varchar_key` ) , table2 .`col_varchar_nokey` field10
-FROM t4 table1 JOIN ( t1 table2 STRAIGHT_JOIN t1 table3 ON table2 .`pk` ) ON table3 .`col_varchar_key` = table2 .`col_varchar_key`
-GROUP BY field10 ;
-COUNT( DISTINCT table2 .`col_int_key` ) (
-SELECT SUBQUERY2_t1 .`col_int_key`
-FROM t3 SUBQUERY2_t1 JOIN t2 ON SUBQUERY2_t1 .`col_int_key`
-WHERE table1 .`col_varchar_key` ) field10
-1 NULL c
-1 NULL d
-1 NULL e
-1 NULL f
-1 NULL h
-1 NULL j
-2 NULL k
-2 NULL m
-1 NULL n
-1 NULL o
-0 NULL r
-2 NULL t
-1 NULL u
-1 NULL w
-1 NULL y
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SET @@optimizer_switch='subquery_cache=on';
-/* cache is on */ SELECT COUNT( DISTINCT table2 .`col_int_key` ) , (
-SELECT SUBQUERY2_t1 .`col_int_key`
-FROM t3 SUBQUERY2_t1 JOIN t2 ON SUBQUERY2_t1 .`col_int_key`
-WHERE table1 .`col_varchar_key` ) , table2 .`col_varchar_nokey` field10
-FROM t4 table1 JOIN ( t1 table2 STRAIGHT_JOIN t1 table3 ON table2 .`pk` ) ON table3 .`col_varchar_key` = table2 .`col_varchar_key`
-GROUP BY field10 ;
-COUNT( DISTINCT table2 .`col_int_key` ) (
-SELECT SUBQUERY2_t1 .`col_int_key`
-FROM t3 SUBQUERY2_t1 JOIN t2 ON SUBQUERY2_t1 .`col_int_key`
-WHERE table1 .`col_varchar_key` ) field10
-1 NULL c
-1 NULL d
-1 NULL e
-1 NULL f
-1 NULL h
-1 NULL j
-2 NULL k
-2 NULL m
-1 NULL n
-1 NULL o
-0 NULL r
-2 NULL t
-1 NULL u
-1 NULL w
-1 NULL y
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-Warning 1292 Truncated incorrect DOUBLE value: 'd'
-Warning 1292 Truncated incorrect DOUBLE value: 'e'
-Warning 1292 Truncated incorrect DOUBLE value: 'f'
-Warning 1292 Truncated incorrect DOUBLE value: 'g'
-Warning 1292 Truncated incorrect DOUBLE value: 'h'
-Warning 1292 Truncated incorrect DOUBLE value: 'i'
-Warning 1292 Truncated incorrect DOUBLE value: 'j'
-Warning 1292 Truncated incorrect DOUBLE value: 'k'
-Warning 1292 Truncated incorrect DOUBLE value: 'l'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'n'
-Warning 1292 Truncated incorrect DOUBLE value: 'o'
-Warning 1292 Truncated incorrect DOUBLE value: 'p'
-Warning 1292 Truncated incorrect DOUBLE value: 'q'
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-Warning 1292 Truncated incorrect DOUBLE value: 's'
-Warning 1292 Truncated incorrect DOUBLE value: 't'
-Warning 1292 Truncated incorrect DOUBLE value: 'u'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'w'
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-Warning 1292 Truncated incorrect DOUBLE value: 'y'
-Warning 1292 Truncated incorrect DOUBLE value: 'z'
-drop table t1,t2,t3,t4;
-set @@optimizer_switch= default;
-#launchpad BUG#609045
-CREATE TABLE `t2` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=30 DEFAULT CHARSET=latin1;
-INSERT INTO `t2` VALUES (10,7,8,'v','v');
-INSERT INTO `t2` VALUES (11,1,9,'r','r');
-INSERT INTO `t2` VALUES (12,5,9,'a','a');
-INSERT INTO `t2` VALUES (13,3,186,'m','m');
-INSERT INTO `t2` VALUES (14,6,NULL,'y','y');
-INSERT INTO `t2` VALUES (15,92,2,'j','j');
-INSERT INTO `t2` VALUES (16,7,3,'d','d');
-INSERT INTO `t2` VALUES (17,NULL,0,'z','z');
-INSERT INTO `t2` VALUES (18,3,133,'e','e');
-INSERT INTO `t2` VALUES (19,5,1,'h','h');
-INSERT INTO `t2` VALUES (20,1,8,'b','b');
-INSERT INTO `t2` VALUES (21,2,5,'s','s');
-INSERT INTO `t2` VALUES (22,NULL,5,'e','e');
-INSERT INTO `t2` VALUES (23,1,8,'j','j');
-INSERT INTO `t2` VALUES (24,0,6,'e','e');
-INSERT INTO `t2` VALUES (25,210,51,'f','f');
-INSERT INTO `t2` VALUES (26,8,4,'v','v');
-INSERT INTO `t2` VALUES (27,7,7,'x','x');
-INSERT INTO `t2` VALUES (28,5,6,'m','m');
-INSERT INTO `t2` VALUES (29,NULL,4,'c','c');
-CREATE TABLE `t1` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;
-INSERT INTO `t1` VALUES (1,NULL,2,'w','w');
-INSERT INTO `t1` VALUES (2,7,9,'m','m');
-INSERT INTO `t1` VALUES (3,9,3,'m','m');
-INSERT INTO `t1` VALUES (4,7,9,'k','k');
-INSERT INTO `t1` VALUES (5,4,NULL,'r','r');
-INSERT INTO `t1` VALUES (6,2,9,'t','t');
-INSERT INTO `t1` VALUES (7,6,3,'j','j');
-INSERT INTO `t1` VALUES (8,8,8,'u','u');
-INSERT INTO `t1` VALUES (9,NULL,8,'h','h');
-INSERT INTO `t1` VALUES (10,5,53,'o','o');
-INSERT INTO `t1` VALUES (11,NULL,0,NULL,NULL);
-INSERT INTO `t1` VALUES (12,6,5,'k','k');
-INSERT INTO `t1` VALUES (13,188,166,'e','e');
-INSERT INTO `t1` VALUES (14,2,3,'n','n');
-INSERT INTO `t1` VALUES (15,1,0,'t','t');
-INSERT INTO `t1` VALUES (16,1,1,'c','c');
-INSERT INTO `t1` VALUES (17,0,9,'m','m');
-INSERT INTO `t1` VALUES (18,9,5,'y','y');
-INSERT INTO `t1` VALUES (19,NULL,6,'f','f');
-INSERT INTO `t1` VALUES (20,4,2,'d','d');
-SET @@optimizer_switch = 'subquery_cache=off';
-/* cache is off */ SELECT SUM( DISTINCT table1 .`pk` ) , (
-SELECT MAX( `col_int_nokey` )
-FROM t1
-WHERE table1 .`pk` ) field3
-FROM t1 table1
-JOIN (
-t1 table2
-JOIN t2 table3
-ON table3 .`col_varchar_key` = table2 .`col_varchar_key`
-)
-ON table3 .`col_varchar_key` = table2 .`col_varchar_nokey`
-GROUP BY field3 ;
-SUM( DISTINCT table1 .`pk` ) field3
-210 188
-SET @@optimizer_switch = 'subquery_cache=on';
-/* cache is on */ SELECT SUM( DISTINCT table1 .`pk` ) , (
-SELECT MAX( `col_int_nokey` )
-FROM t1
-WHERE table1 .`pk` ) field3
-FROM t1 table1
-JOIN (
-t1 table2
-JOIN t2 table3
-ON table3 .`col_varchar_key` = table2 .`col_varchar_key`
-)
-ON table3 .`col_varchar_key` = table2 .`col_varchar_nokey`
-GROUP BY field3 ;
-SUM( DISTINCT table1 .`pk` ) field3
-210 188
-drop table t1,t2;
-set @@optimizer_switch= default;
-#launchpad BUG#609052
-CREATE TABLE `t2` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=30 DEFAULT CHARSET=latin1;
-INSERT INTO `t2` VALUES (10,7,8,'01:27:35','v','v');
-INSERT INTO `t2` VALUES (11,1,9,'19:48:31','r','r');
-INSERT INTO `t2` VALUES (12,5,9,'00:00:00','a','a');
-INSERT INTO `t2` VALUES (13,3,186,'19:53:05','m','m');
-INSERT INTO `t2` VALUES (14,6,NULL,'19:18:56','y','y');
-INSERT INTO `t2` VALUES (15,92,2,'10:55:12','j','j');
-INSERT INTO `t2` VALUES (16,7,3,'00:25:00','d','d');
-INSERT INTO `t2` VALUES (17,NULL,0,'12:35:47','z','z');
-INSERT INTO `t2` VALUES (18,3,133,'19:53:03','e','e');
-INSERT INTO `t2` VALUES (19,5,1,'17:53:30','h','h');
-INSERT INTO `t2` VALUES (20,1,8,'11:35:49','b','b');
-INSERT INTO `t2` VALUES (21,2,5,NULL,'s','s');
-INSERT INTO `t2` VALUES (22,NULL,5,'06:01:40','e','e');
-INSERT INTO `t2` VALUES (23,1,8,'05:45:11','j','j');
-INSERT INTO `t2` VALUES (24,0,6,'00:00:00','e','e');
-INSERT INTO `t2` VALUES (25,210,51,'00:00:00','f','f');
-INSERT INTO `t2` VALUES (26,8,4,'06:11:01','v','v');
-INSERT INTO `t2` VALUES (27,7,7,'13:02:46','x','x');
-INSERT INTO `t2` VALUES (28,5,6,'21:44:25','m','m');
-INSERT INTO `t2` VALUES (29,NULL,4,'22:43:58','c','c');
-CREATE TABLE `t4` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=101 DEFAULT CHARSET=latin1;
-INSERT INTO `t4` VALUES (1,6,NULL,NULL,'r','r');
-INSERT INTO `t4` VALUES (2,8,0,'14:34:45','c','c');
-INSERT INTO `t4` VALUES (3,6,0,'11:49:48','o','o');
-INSERT INTO `t4` VALUES (4,6,7,'18:12:55','c','c');
-INSERT INTO `t4` VALUES (5,3,8,'18:30:05','d','d');
-INSERT INTO `t4` VALUES (6,9,4,'14:19:30','v','v');
-INSERT INTO `t4` VALUES (7,2,6,'05:20:04','m','m');
-INSERT INTO `t4` VALUES (8,1,5,'20:29:31','j','j');
-INSERT INTO `t4` VALUES (9,8,NULL,'07:08:09','f','f');
-INSERT INTO `t4` VALUES (10,0,NULL,'14:49:14','n','n');
-INSERT INTO `t4` VALUES (11,9,8,'00:00:00','z','z');
-INSERT INTO `t4` VALUES (12,8,8,'09:58:06','h','h');
-INSERT INTO `t4` VALUES (13,NULL,8,NULL,'q','q');
-INSERT INTO `t4` VALUES (14,0,1,'18:24:16','w','w');
-INSERT INTO `t4` VALUES (15,5,1,'17:39:57','z','z');
-INSERT INTO `t4` VALUES (16,1,5,'08:23:21','j','j');
-INSERT INTO `t4` VALUES (17,1,2,NULL,'a','a');
-INSERT INTO `t4` VALUES (18,6,7,'21:50:46','m','m');
-INSERT INTO `t4` VALUES (19,6,6,'12:33:17','n','n');
-INSERT INTO `t4` VALUES (20,1,4,'03:06:43','e','e');
-INSERT INTO `t4` VALUES (21,8,7,'03:46:14','u','u');
-INSERT INTO `t4` VALUES (22,1,0,'20:34:52','s','s');
-INSERT INTO `t4` VALUES (23,0,9,NULL,'u','u');
-INSERT INTO `t4` VALUES (24,4,3,'10:41:20','r','r');
-INSERT INTO `t4` VALUES (25,9,5,'08:43:11','g','g');
-INSERT INTO `t4` VALUES (26,8,1,NULL,'o','o');
-INSERT INTO `t4` VALUES (27,5,1,'10:17:51','w','w');
-INSERT INTO `t4` VALUES (28,9,5,'06:34:09','b','b');
-INSERT INTO `t4` VALUES (29,5,9,'21:22:47',NULL,NULL);
-INSERT INTO `t4` VALUES (30,NULL,2,'04:02:32','y','y');
-INSERT INTO `t4` VALUES (31,NULL,5,'02:33:14','y','y');
-INSERT INTO `t4` VALUES (32,105,248,'16:32:56','u','u');
-INSERT INTO `t4` VALUES (33,0,0,'21:32:42','p','p');
-INSERT INTO `t4` VALUES (34,3,8,'23:04:47','s','s');
-INSERT INTO `t4` VALUES (35,1,1,'22:05:43','e','e');
-INSERT INTO `t4` VALUES (36,75,255,'02:05:45','d','d');
-INSERT INTO `t4` VALUES (37,9,9,'00:00:00','d','d');
-INSERT INTO `t4` VALUES (38,7,9,'18:09:07','c','c');
-INSERT INTO `t4` VALUES (39,NULL,3,'10:54:06','b','b');
-INSERT INTO `t4` VALUES (40,NULL,9,'23:15:50','t','t');
-INSERT INTO `t4` VALUES (41,4,6,'10:17:40',NULL,NULL);
-INSERT INTO `t4` VALUES (42,0,4,'03:37:09','y','y');
-INSERT INTO `t4` VALUES (43,204,60,'22:26:06','c','c');
-INSERT INTO `t4` VALUES (44,0,7,'17:10:38','d','d');
-INSERT INTO `t4` VALUES (45,9,1,'00:00:00','x','x');
-INSERT INTO `t4` VALUES (46,8,6,'17:08:49','p','p');
-INSERT INTO `t4` VALUES (47,7,4,'19:04:40','e','e');
-INSERT INTO `t4` VALUES (48,8,NULL,'20:53:28','g','g');
-INSERT INTO `t4` VALUES (49,NULL,8,'11:46:03','x','x');
-INSERT INTO `t4` VALUES (50,6,0,NULL,'s','s');
-INSERT INTO `t4` VALUES (51,5,8,'10:58:07','e','e');
-INSERT INTO `t4` VALUES (52,2,151,'00:00:00','l','l');
-INSERT INTO `t4` VALUES (53,3,7,'09:43:15','p','p');
-INSERT INTO `t4` VALUES (54,7,6,'21:40:32','h','h');
-INSERT INTO `t4` VALUES (55,NULL,NULL,'00:17:44','m','m');
-INSERT INTO `t4` VALUES (56,145,23,'16:47:26','n','n');
-INSERT INTO `t4` VALUES (57,0,2,'00:00:00','v','v');
-INSERT INTO `t4` VALUES (58,1,4,'05:25:59','b','b');
-INSERT INTO `t4` VALUES (59,7,NULL,'00:00:00','x','x');
-INSERT INTO `t4` VALUES (60,3,NULL,'20:33:04','r','r');
-INSERT INTO `t4` VALUES (61,NULL,77,'00:46:12','t','t');
-INSERT INTO `t4` VALUES (62,2,NULL,'00:00:00','w','w');
-INSERT INTO `t4` VALUES (63,2,NULL,'02:13:59','w','w');
-INSERT INTO `t4` VALUES (64,2,7,'02:54:47','k','k');
-INSERT INTO `t4` VALUES (65,8,1,'18:13:59','a','a');
-INSERT INTO `t4` VALUES (66,6,9,'13:53:08','t','t');
-INSERT INTO `t4` VALUES (67,1,6,'22:21:30','z','z');
-INSERT INTO `t4` VALUES (68,NULL,2,'11:41:50','e','e');
-INSERT INTO `t4` VALUES (69,1,3,'15:20:02','q','q');
-INSERT INTO `t4` VALUES (70,0,0,NULL,'e','e');
-INSERT INTO `t4` VALUES (71,4,NULL,NULL,'v','v');
-INSERT INTO `t4` VALUES (72,1,6,'07:51:52','d','d');
-INSERT INTO `t4` VALUES (73,1,3,'00:00:00','u','u');
-INSERT INTO `t4` VALUES (74,27,195,NULL,'o','o');
-INSERT INTO `t4` VALUES (75,4,5,NULL,'b','b');
-INSERT INTO `t4` VALUES (76,6,2,'12:31:05','c','c');
-INSERT INTO `t4` VALUES (77,2,7,'00:00:00','q','q');
-INSERT INTO `t4` VALUES (78,248,25,'01:16:45',NULL,NULL);
-INSERT INTO `t4` VALUES (79,NULL,NULL,'20:38:54','h','h');
-INSERT INTO `t4` VALUES (80,9,0,'00:30:15','d','d');
-INSERT INTO `t4` VALUES (81,75,98,'23:46:36','w','w');
-INSERT INTO `t4` VALUES (82,2,6,'19:03:13','m','m');
-INSERT INTO `t4` VALUES (83,9,5,'10:54:27','i','i');
-INSERT INTO `t4` VALUES (84,4,0,'00:25:47','w','w');
-INSERT INTO `t4` VALUES (85,0,3,'08:44:27','f','f');
-INSERT INTO `t4` VALUES (86,0,1,'08:15:38','k','k');
-INSERT INTO `t4` VALUES (87,1,1,'19:56:21','v','v');
-INSERT INTO `t4` VALUES (88,119,147,'00:00:00','c','c');
-INSERT INTO `t4` VALUES (89,1,3,'20:50:52','y','y');
-INSERT INTO `t4` VALUES (90,7,3,'03:54:39','h','h');
-INSERT INTO `t4` VALUES (91,2,NULL,'23:58:17',NULL,NULL);
-INSERT INTO `t4` VALUES (92,7,2,'12:54:58','t','t');
-INSERT INTO `t4` VALUES (93,2,1,'04:02:43','l','l');
-INSERT INTO `t4` VALUES (94,6,8,'11:31:12','a','a');
-INSERT INTO `t4` VALUES (95,4,8,'20:20:04','r','r');
-INSERT INTO `t4` VALUES (96,5,8,'00:22:24','s','s');
-INSERT INTO `t4` VALUES (97,7,0,'10:09:31','z','z');
-INSERT INTO `t4` VALUES (98,1,1,NULL,'j','j');
-INSERT INTO `t4` VALUES (99,7,8,'18:45:35','c','c');
-INSERT INTO `t4` VALUES (100,2,5,'11:49:25','f','f');
-CREATE TABLE `t1` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;
-INSERT INTO `t1` VALUES (1,NULL,2,'11:28:45','w','w');
-INSERT INTO `t1` VALUES (2,7,9,'20:25:14','m','m');
-INSERT INTO `t1` VALUES (3,9,3,'13:47:24','m','m');
-INSERT INTO `t1` VALUES (4,7,9,'19:24:11','k','k');
-INSERT INTO `t1` VALUES (5,4,NULL,'15:59:13','r','r');
-INSERT INTO `t1` VALUES (6,2,9,'00:00:00','t','t');
-INSERT INTO `t1` VALUES (7,6,3,'15:15:04','j','j');
-INSERT INTO `t1` VALUES (8,8,8,'11:32:06','u','u');
-INSERT INTO `t1` VALUES (9,NULL,8,'18:32:33','h','h');
-INSERT INTO `t1` VALUES (10,5,53,'15:19:25','o','o');
-INSERT INTO `t1` VALUES (11,NULL,0,'19:03:19',NULL,NULL);
-INSERT INTO `t1` VALUES (12,6,5,'00:39:46','k','k');
-INSERT INTO `t1` VALUES (13,188,166,NULL,'e','e');
-INSERT INTO `t1` VALUES (14,2,3,'00:00:00','n','n');
-INSERT INTO `t1` VALUES (15,1,0,'13:12:11','t','t');
-INSERT INTO `t1` VALUES (16,1,1,'04:56:48','c','c');
-INSERT INTO `t1` VALUES (17,0,9,'19:56:05','m','m');
-INSERT INTO `t1` VALUES (18,9,5,'19:35:19','y','y');
-INSERT INTO `t1` VALUES (19,NULL,6,'05:03:03','f','f');
-INSERT INTO `t1` VALUES (20,4,2,'18:38:59','d','d');
-CREATE TABLE `t3` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
-INSERT INTO `t3` VALUES (10,8,8,'18:27:58',NULL,NULL);
-CREATE TABLE `t5` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-INSERT INTO `t5` VALUES (1,1,7,'01:13:38','f','f');
-SET @@optimizer_switch='subquery_cache=off';
-/* cache is off */ SELECT SQL_SMALL_RESULT MAX( DISTINCT table1 . `col_varchar_key` ) AS field1 , MIN( table1 . `col_varchar_nokey` ) AS field2 , COUNT( table1 . `col_varchar_key` ) AS field3 , table2 . `col_time_key` AS field4 , COUNT( DISTINCT table2 . `col_int_key` ) AS field5 , (
-SELECT MAX( SUBQUERY1_t2 . `col_int_nokey` ) AS SUBQUERY1_field1
-FROM ( t3 AS SUBQUERY1_t1 INNER JOIN t1 AS SUBQUERY1_t2 ON (SUBQUERY1_t2 . `col_varchar_key` = SUBQUERY1_t1 . `col_varchar_nokey` ) )
-WHERE SUBQUERY1_t2 . `pk` < SUBQUERY1_t2 . `pk` ) AS field6 , COUNT( table1 . `col_varchar_nokey` ) AS field7 , COUNT( table2 . `pk` ) AS field8 , (
-SELECT MAX( SUBQUERY2_t1 . `col_int_key` ) AS SUBQUERY2_field1
-FROM ( t5 AS SUBQUERY2_t1 LEFT JOIN t2 AS SUBQUERY2_t2 ON (SUBQUERY2_t2 . `col_int_key` = SUBQUERY2_t1 . `col_int_key` ) )
-WHERE SUBQUERY2_t2 . `col_varchar_nokey` != table1 . `col_varchar_key` OR SUBQUERY2_t1 . `col_varchar_nokey` >= 'o' ) AS field9 , CONCAT ( table1 . `col_varchar_key` , table2 . `col_varchar_nokey` ) AS field10
-FROM ( t4 AS table1 LEFT JOIN ( ( t1 AS table2 STRAIGHT_JOIN t1 AS table3 ON (table3 . `col_int_nokey` = table2 . `pk` ) ) ) ON (table3 . `col_varchar_key` = table2 . `col_varchar_key` ) )
-WHERE ( EXISTS (
-SELECT SUBQUERY3_t1 . `pk` AS SUBQUERY3_field1
-FROM ( t4 AS SUBQUERY3_t1 INNER JOIN t4 AS SUBQUERY3_t2 ON (SUBQUERY3_t2 . `col_varchar_key` = SUBQUERY3_t1 . `col_varchar_key` ) )
-WHERE SUBQUERY3_t1 . `col_int_key` > table3 . `pk` AND SUBQUERY3_t1 . `pk` != table3 . `pk` ) ) AND ( table1 . `pk` > 116 AND table1 . `pk` < ( 116 + 175 ) OR table1 . `pk` IN (251) ) OR table1 . `col_int_nokey` = table1 . `col_int_nokey`
-GROUP BY field4, field6, field9, field10
-HAVING field10 = 'c'
-;
-field1 field2 field3 field4 field5 field6 field7 field8 field9 field10
-SET @@optimizer_switch='subquery_cache=on';
-/* cache is on */ SELECT SQL_SMALL_RESULT MAX( DISTINCT table1 . `col_varchar_key` ) AS field1 , MIN( table1 . `col_varchar_nokey` ) AS field2 , COUNT( table1 . `col_varchar_key` ) AS field3 , table2 . `col_time_key` AS field4 , COUNT( DISTINCT table2 . `col_int_key` ) AS field5 , (
-SELECT MAX( SUBQUERY1_t2 . `col_int_nokey` ) AS SUBQUERY1_field1
-FROM ( t3 AS SUBQUERY1_t1 INNER JOIN t1 AS SUBQUERY1_t2 ON (SUBQUERY1_t2 . `col_varchar_key` = SUBQUERY1_t1 . `col_varchar_nokey` ) )
-WHERE SUBQUERY1_t2 . `pk` < SUBQUERY1_t2 . `pk` ) AS field6 , COUNT( table1 . `col_varchar_nokey` ) AS field7 , COUNT( table2 . `pk` ) AS field8 , (
-SELECT MAX( SUBQUERY2_t1 . `col_int_key` ) AS SUBQUERY2_field1
-FROM ( t5 AS SUBQUERY2_t1 LEFT JOIN t2 AS SUBQUERY2_t2 ON (SUBQUERY2_t2 . `col_int_key` = SUBQUERY2_t1 . `col_int_key` ) )
-WHERE SUBQUERY2_t2 . `col_varchar_nokey` != table1 . `col_varchar_key` OR SUBQUERY2_t1 . `col_varchar_nokey` >= 'o' ) AS field9 , CONCAT ( table1 . `col_varchar_key` , table2 . `col_varchar_nokey` ) AS field10
-FROM ( t4 AS table1 LEFT JOIN ( ( t1 AS table2 STRAIGHT_JOIN t1 AS table3 ON (table3 . `col_int_nokey` = table2 . `pk` ) ) ) ON (table3 . `col_varchar_key` = table2 . `col_varchar_key` ) )
-WHERE ( EXISTS (
-SELECT SUBQUERY3_t1 . `pk` AS SUBQUERY3_field1
-FROM ( t4 AS SUBQUERY3_t1 INNER JOIN t4 AS SUBQUERY3_t2 ON (SUBQUERY3_t2 . `col_varchar_key` = SUBQUERY3_t1 . `col_varchar_key` ) )
-WHERE SUBQUERY3_t1 . `col_int_key` > table3 . `pk` AND SUBQUERY3_t1 . `pk` != table3 . `pk` ) ) AND ( table1 . `pk` > 116 AND table1 . `pk` < ( 116 + 175 ) OR table1 . `pk` IN (251) ) OR table1 . `col_int_nokey` = table1 . `col_int_nokey`
-GROUP BY field4, field6, field9, field10
-HAVING field10 = 'c'
-;
-field1 field2 field3 field4 field5 field6 field7 field8 field9 field10
-drop table t1,t2,t3,t4,t5;
-set @@optimizer_switch= default;
-#launchpad BUG#609043
-CREATE TABLE `t1` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_date_key` date DEFAULT NULL,
-`col_date_nokey` date DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_time_nokey` time DEFAULT NULL,
-`col_datetime_key` datetime DEFAULT NULL,
-`col_datetime_nokey` datetime DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;
-INSERT INTO `t1` VALUES (19,NULL,6,'2004-08-20','2004-08-20','05:03:03','05:03:03','2007-04-19 00:19:53','2007-04-19 00:19:53','f','f');
-INSERT INTO `t1` VALUES (20,4,2,'1900-01-01','1900-01-01','18:38:59','18:38:59','1900-01-01 00:00:00','1900-01-01 00:00:00','d','d');
-CREATE TABLE `t2` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_date_key` date DEFAULT NULL,
-`col_date_nokey` date DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_time_nokey` time DEFAULT NULL,
-`col_datetime_key` datetime DEFAULT NULL,
-`col_datetime_nokey` datetime DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_date_key` (`col_date_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_datetime_key` (`col_datetime_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=30 DEFAULT CHARSET=latin1;
-CREATE TABLE `t3` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_date_key` date DEFAULT NULL,
-`col_date_nokey` date DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_time_nokey` time DEFAULT NULL,
-`col_datetime_key` datetime DEFAULT NULL,
-`col_datetime_nokey` datetime DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_date_key` (`col_date_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_datetime_key` (`col_datetime_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-CREATE TABLE `t4` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_date_key` date DEFAULT NULL,
-`col_date_nokey` date DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_time_nokey` time DEFAULT NULL,
-`col_datetime_key` datetime DEFAULT NULL,
-`col_datetime_nokey` datetime DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_date_key` (`col_date_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_datetime_key` (`col_datetime_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=MyISAM AUTO_INCREMENT=101 DEFAULT CHARSET=latin1;
-INSERT INTO `t4` VALUES (100,2,5,'2001-07-26','2001-07-26','11:49:25','11:49:25','2007-04-25 05:08:49','2007-04-25 05:08:49','f','f');
-SET @@optimizer_switch = 'subquery_cache=off';
-/* cache is off */ SELECT COUNT( DISTINCT table2 .`col_int_key` ) , (
-SELECT SUBQUERY2_t1 .`col_int_key`
-FROM t3 SUBQUERY2_t1 JOIN t2 ON SUBQUERY2_t1 .`col_int_key`
-WHERE table1 .`col_varchar_key` ) , table2 .`col_varchar_nokey` field10
-FROM t4 table1 JOIN ( t1 table2 STRAIGHT_JOIN t1 table3 ON table2 .`pk` ) ON table3 .`col_varchar_key` = table2 .`col_varchar_key`
-GROUP BY field10 ;
-COUNT( DISTINCT table2 .`col_int_key` ) (
-SELECT SUBQUERY2_t1 .`col_int_key`
-FROM t3 SUBQUERY2_t1 JOIN t2 ON SUBQUERY2_t1 .`col_int_key`
-WHERE table1 .`col_varchar_key` ) field10
-1 NULL d
-1 NULL f
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'f'
-Warning 1292 Truncated incorrect DOUBLE value: 'f'
-SET @@optimizer_switch = 'subquery_cache=on';
-/* cache is on */ SELECT COUNT( DISTINCT table2 .`col_int_key` ) , (
-SELECT SUBQUERY2_t1 .`col_int_key`
-FROM t3 SUBQUERY2_t1 JOIN t2 ON SUBQUERY2_t1 .`col_int_key`
-WHERE table1 .`col_varchar_key` ) , table2 .`col_varchar_nokey` field10
-FROM t4 table1 JOIN ( t1 table2 STRAIGHT_JOIN t1 table3 ON table2 .`pk` ) ON table3 .`col_varchar_key` = table2 .`col_varchar_key`
-GROUP BY field10 ;
-COUNT( DISTINCT table2 .`col_int_key` ) (
-SELECT SUBQUERY2_t1 .`col_int_key`
-FROM t3 SUBQUERY2_t1 JOIN t2 ON SUBQUERY2_t1 .`col_int_key`
-WHERE table1 .`col_varchar_key` ) field10
-1 NULL d
-1 NULL f
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'f'
-Warning 1292 Truncated incorrect DOUBLE value: 'f'
-drop table t1,t2,t3,t4;
-set @@optimizer_switch= default;
-#launchpad BUG#611625
-CREATE TABLE `t1` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`)
-) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;
-INSERT INTO `t1` VALUES (1,NULL,'w');
-INSERT INTO `t1` VALUES (2,7,'m');
-INSERT INTO `t1` VALUES (3,9,'m');
-INSERT INTO `t1` VALUES (4,7,'k');
-INSERT INTO `t1` VALUES (5,4,'r');
-INSERT INTO `t1` VALUES (6,2,'t');
-INSERT INTO `t1` VALUES (7,6,'j');
-INSERT INTO `t1` VALUES (8,8,'u');
-INSERT INTO `t1` VALUES (9,NULL,'h');
-INSERT INTO `t1` VALUES (10,5,'o');
-INSERT INTO `t1` VALUES (11,NULL,NULL);
-INSERT INTO `t1` VALUES (12,6,'k');
-INSERT INTO `t1` VALUES (13,188,'e');
-INSERT INTO `t1` VALUES (14,2,'n');
-INSERT INTO `t1` VALUES (15,1,'t');
-INSERT INTO `t1` VALUES (16,1,'c');
-INSERT INTO `t1` VALUES (17,0,'m');
-INSERT INTO `t1` VALUES (18,9,'y');
-INSERT INTO `t1` VALUES (19,NULL,'f');
-INSERT INTO `t1` VALUES (20,4,'d');
-CREATE TABLE `t3` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`)
-) ENGINE=MyISAM AUTO_INCREMENT=101 DEFAULT CHARSET=latin1;
-INSERT INTO `t3` VALUES (1,6,'r');
-INSERT INTO `t3` VALUES (2,8,'c');
-INSERT INTO `t3` VALUES (3,6,'o');
-INSERT INTO `t3` VALUES (4,6,'c');
-INSERT INTO `t3` VALUES (5,3,'d');
-INSERT INTO `t3` VALUES (6,9,'v');
-INSERT INTO `t3` VALUES (7,2,'m');
-INSERT INTO `t3` VALUES (8,1,'j');
-INSERT INTO `t3` VALUES (9,8,'f');
-INSERT INTO `t3` VALUES (10,0,'n');
-INSERT INTO `t3` VALUES (11,9,'z');
-INSERT INTO `t3` VALUES (12,8,'h');
-INSERT INTO `t3` VALUES (13,NULL,'q');
-INSERT INTO `t3` VALUES (14,0,'w');
-INSERT INTO `t3` VALUES (15,5,'z');
-INSERT INTO `t3` VALUES (16,1,'j');
-INSERT INTO `t3` VALUES (17,1,'a');
-INSERT INTO `t3` VALUES (18,6,'m');
-INSERT INTO `t3` VALUES (19,6,'n');
-INSERT INTO `t3` VALUES (20,1,'e');
-INSERT INTO `t3` VALUES (21,8,'u');
-INSERT INTO `t3` VALUES (22,1,'s');
-INSERT INTO `t3` VALUES (23,0,'u');
-INSERT INTO `t3` VALUES (24,4,'r');
-INSERT INTO `t3` VALUES (25,9,'g');
-INSERT INTO `t3` VALUES (26,8,'o');
-INSERT INTO `t3` VALUES (27,5,'w');
-INSERT INTO `t3` VALUES (28,9,'b');
-INSERT INTO `t3` VALUES (29,5,NULL);
-INSERT INTO `t3` VALUES (30,NULL,'y');
-INSERT INTO `t3` VALUES (31,NULL,'y');
-INSERT INTO `t3` VALUES (32,105,'u');
-INSERT INTO `t3` VALUES (33,0,'p');
-INSERT INTO `t3` VALUES (34,3,'s');
-INSERT INTO `t3` VALUES (35,1,'e');
-INSERT INTO `t3` VALUES (36,75,'d');
-INSERT INTO `t3` VALUES (37,9,'d');
-INSERT INTO `t3` VALUES (38,7,'c');
-INSERT INTO `t3` VALUES (39,NULL,'b');
-INSERT INTO `t3` VALUES (40,NULL,'t');
-INSERT INTO `t3` VALUES (41,4,NULL);
-INSERT INTO `t3` VALUES (42,0,'y');
-INSERT INTO `t3` VALUES (43,204,'c');
-INSERT INTO `t3` VALUES (44,0,'d');
-INSERT INTO `t3` VALUES (45,9,'x');
-INSERT INTO `t3` VALUES (46,8,'p');
-INSERT INTO `t3` VALUES (47,7,'e');
-INSERT INTO `t3` VALUES (48,8,'g');
-INSERT INTO `t3` VALUES (49,NULL,'x');
-INSERT INTO `t3` VALUES (50,6,'s');
-INSERT INTO `t3` VALUES (51,5,'e');
-INSERT INTO `t3` VALUES (52,2,'l');
-INSERT INTO `t3` VALUES (53,3,'p');
-INSERT INTO `t3` VALUES (54,7,'h');
-INSERT INTO `t3` VALUES (55,NULL,'m');
-INSERT INTO `t3` VALUES (56,145,'n');
-INSERT INTO `t3` VALUES (57,0,'v');
-INSERT INTO `t3` VALUES (58,1,'b');
-INSERT INTO `t3` VALUES (59,7,'x');
-INSERT INTO `t3` VALUES (60,3,'r');
-INSERT INTO `t3` VALUES (61,NULL,'t');
-INSERT INTO `t3` VALUES (62,2,'w');
-INSERT INTO `t3` VALUES (63,2,'w');
-INSERT INTO `t3` VALUES (64,2,'k');
-INSERT INTO `t3` VALUES (65,8,'a');
-INSERT INTO `t3` VALUES (66,6,'t');
-INSERT INTO `t3` VALUES (67,1,'z');
-INSERT INTO `t3` VALUES (68,NULL,'e');
-INSERT INTO `t3` VALUES (69,1,'q');
-INSERT INTO `t3` VALUES (70,0,'e');
-INSERT INTO `t3` VALUES (71,4,'v');
-INSERT INTO `t3` VALUES (72,1,'d');
-INSERT INTO `t3` VALUES (73,1,'u');
-INSERT INTO `t3` VALUES (74,27,'o');
-INSERT INTO `t3` VALUES (75,4,'b');
-INSERT INTO `t3` VALUES (76,6,'c');
-INSERT INTO `t3` VALUES (77,2,'q');
-INSERT INTO `t3` VALUES (78,248,NULL);
-INSERT INTO `t3` VALUES (79,NULL,'h');
-INSERT INTO `t3` VALUES (80,9,'d');
-INSERT INTO `t3` VALUES (81,75,'w');
-INSERT INTO `t3` VALUES (82,2,'m');
-INSERT INTO `t3` VALUES (83,9,'i');
-INSERT INTO `t3` VALUES (84,4,'w');
-INSERT INTO `t3` VALUES (85,0,'f');
-INSERT INTO `t3` VALUES (86,0,'k');
-INSERT INTO `t3` VALUES (87,1,'v');
-INSERT INTO `t3` VALUES (88,119,'c');
-INSERT INTO `t3` VALUES (89,1,'y');
-INSERT INTO `t3` VALUES (90,7,'h');
-INSERT INTO `t3` VALUES (91,2,NULL);
-INSERT INTO `t3` VALUES (92,7,'t');
-INSERT INTO `t3` VALUES (93,2,'l');
-INSERT INTO `t3` VALUES (94,6,'a');
-INSERT INTO `t3` VALUES (95,4,'r');
-INSERT INTO `t3` VALUES (96,5,'s');
-INSERT INTO `t3` VALUES (97,7,'z');
-INSERT INTO `t3` VALUES (98,1,'j');
-INSERT INTO `t3` VALUES (99,7,'c');
-INSERT INTO `t3` VALUES (100,2,'f');
-CREATE TABLE `t2` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`)
-) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
-INSERT INTO `t2` VALUES (10,8,NULL);
-set optimizer_switch='subquery_cache=off';
-SELECT (
-SELECT `col_int_nokey`
-FROM t3
-WHERE table1 .`col_varchar_nokey` ) field13
-FROM t2 table1 JOIN t1 table2 ON table2 .`pk`
-ORDER BY field13;
-field13
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-set optimizer_switch='subquery_cache=on';
-SELECT
-(SELECT `col_int_nokey`
- FROM t3
-WHERE table1 .`col_varchar_nokey` ) field13
-FROM t2 table1 JOIN t1 table2 ON table2 .`pk`
-ORDER BY field13;
-field13
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-drop table t1,t2,t3;
-set @@optimizer_switch= default;
-# LP BUG#615760 (part 1: double transformation)
-create table t1 (a int);
-insert into t1 values (1),(2);
-create table t2 (b int);
-insert into t2 values (1),(2);
-set optimizer_switch='default,semijoin=off,materialization=off,subquery_cache=on';
-explain extended
-select * from t1 where a in (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `test`.`t2`.`b` from `test`.`t2` where <cache>(`test`.`t1`.`a`) = `test`.`t2`.`b`)))
-drop table t1,t2;
-set @@optimizer_switch= default;
-# LP BUG#615760 (part 2: incorrect heap table index flags)
-SET SESSION optimizer_switch = 'index_merge=off,index_merge_union=off,index_merge_sort_union=off,index_merge_intersection=off,index_condition_pushdown=off,firstmatch=off,loosescan=off,materialization=off,semijoin=off,partial_match_rowid_merge=off,partial_match_table_scan=off,subquery_cache=on';
-CREATE TABLE `t1` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) AUTO_INCREMENT=30 DEFAULT CHARSET=latin1;
-INSERT INTO `t1` VALUES (10,7,8,'v','v');
-INSERT INTO `t1` VALUES (11,1,9,'r','r');
-INSERT INTO `t1` VALUES (12,5,9,'a','a');
-INSERT INTO `t1` VALUES (13,3,186,'m','m');
-INSERT INTO `t1` VALUES (14,6,NULL,'y','y');
-INSERT INTO `t1` VALUES (15,92,2,'j','j');
-INSERT INTO `t1` VALUES (16,7,3,'d','d');
-INSERT INTO `t1` VALUES (17,NULL,0,'z','z');
-INSERT INTO `t1` VALUES (18,3,133,'e','e');
-INSERT INTO `t1` VALUES (19,5,1,'h','h');
-INSERT INTO `t1` VALUES (20,1,8,'b','b');
-INSERT INTO `t1` VALUES (21,2,5,'s','s');
-INSERT INTO `t1` VALUES (22,NULL,5,'e','e');
-INSERT INTO `t1` VALUES (23,1,8,'j','j');
-INSERT INTO `t1` VALUES (24,0,6,'e','e');
-INSERT INTO `t1` VALUES (25,210,51,'f','f');
-INSERT INTO `t1` VALUES (26,8,4,'v','v');
-INSERT INTO `t1` VALUES (27,7,7,'x','x');
-INSERT INTO `t1` VALUES (28,5,6,'m','m');
-INSERT INTO `t1` VALUES (29,NULL,4,'c','c');
-CREATE TABLE `t2` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;
-INSERT INTO `t2` VALUES (1,NULL,2,'w','w');
-INSERT INTO `t2` VALUES (2,7,9,'m','m');
-INSERT INTO `t2` VALUES (3,9,3,'m','m');
-INSERT INTO `t2` VALUES (4,7,9,'k','k');
-INSERT INTO `t2` VALUES (5,4,NULL,'r','r');
-INSERT INTO `t2` VALUES (6,2,9,'t','t');
-INSERT INTO `t2` VALUES (7,6,3,'j','j');
-INSERT INTO `t2` VALUES (8,8,8,'u','u');
-INSERT INTO `t2` VALUES (9,NULL,8,'h','h');
-INSERT INTO `t2` VALUES (10,5,53,'o','o');
-INSERT INTO `t2` VALUES (11,NULL,0,NULL,NULL);
-INSERT INTO `t2` VALUES (12,6,5,'k','k');
-INSERT INTO `t2` VALUES (13,188,166,'e','e');
-INSERT INTO `t2` VALUES (14,2,3,'n','n');
-INSERT INTO `t2` VALUES (15,1,0,'t','t');
-INSERT INTO `t2` VALUES (16,1,1,'c','c');
-INSERT INTO `t2` VALUES (17,0,9,'m','m');
-INSERT INTO `t2` VALUES (18,9,5,'y','y');
-INSERT INTO `t2` VALUES (19,NULL,6,'f','f');
-INSERT INTO `t2` VALUES (20,4,2,'d','d');
-SELECT table1 .`col_varchar_nokey`
-FROM t2 table1 RIGHT JOIN t1 LEFT JOIN (
-SELECT SUBQUERY1_t2 .*
-FROM t1 SUBQUERY1_t1 LEFT JOIN t2 SUBQUERY1_t2 ON SUBQUERY1_t2 .`col_int_key` = SUBQUERY1_t1 .`col_int_nokey` ) table3 STRAIGHT_JOIN ( (
-SELECT *
-FROM t1 ) table4 JOIN ( t1 table5 JOIN t2 table6 ON table5 .`pk` ) ON table5 .`col_varchar_nokey` ) ON table6 .`pk` = table5 .`col_int_key` ON table5 .`col_varchar_nokey` ON table5 .`col_varchar_key`
-WHERE table3 .`col_varchar_key` IN (
-SELECT `col_varchar_key`
-FROM t2 ) AND table1 .`col_varchar_key` OR table1 .`pk` ;
-col_varchar_nokey
-drop table t1,t2;
-set @@optimizer_switch= default;
-set optimizer_switch='subquery_cache=on';
-# LP BUG#615378 (incorrect NULL result returning in Item_cache)
-CREATE TABLE `t1` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_varchar_key` (`col_varchar_key`)
-) DEFAULT CHARSET=latin1;
-INSERT INTO `t1` VALUES (10,'v');
-INSERT INTO `t1` VALUES (11,'r');
-CREATE TABLE `t2` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_varchar_key` (`col_varchar_key`)
-) DEFAULT CHARSET=latin1;
-INSERT INTO `t2` VALUES (1,'r');
-INSERT INTO `t2` VALUES (2,'c');
-CREATE TABLE `t3` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_varchar_key` (`col_varchar_key`)
-) DEFAULT CHARSET=latin1;
-INSERT INTO `t3` VALUES (1,'w');
-SELECT SUM( DISTINCT table2 . `pk` ) AS field2 ,
-(SELECT SUM( SUBQUERY1_t2 . `pk` ) AS SUBQUERY1_field1
-FROM t2 AS SUBQUERY1_t2 STRAIGHT_JOIN
-t3 AS SUBQUERY1_t3 ON (SUBQUERY1_t3 . `pk` = SUBQUERY1_t2 . `pk` )
-WHERE table1 . `col_varchar_key` ) AS field3
-FROM ( t1 AS table1 LEFT JOIN
-( t2 AS table2 STRAIGHT_JOIN
-t3 AS table3 ON (table3 . `pk` = table2 . `pk` ) )
-ON (table3 . `col_varchar_key` = table1 . `col_varchar_key` ) )
-WHERE ( table1 . `pk` < 5 ) OR ( table1 . `col_varchar_key` IS NOT NULL)
-GROUP BY field3
-HAVING (field3 <= 'h' AND field2 != 4) ;
-field2 field3
-drop tables t1, t2, t3;
-#
-# Test aggregate functions as parameters to subquery cache
-#
-CREATE TABLE t1 ( a INT, b INT, c INT, KEY (a, b));
-INSERT INTO t1 VALUES
-( 1, 1, 1 ),
-( 1, 2, 2 ),
-( 1, 3, 3 ),
-( 1, 4, 6 ),
-( 1, 5, 5 ),
-( 1, 9, 13 ),
-( 2, 1, 6 ),
-( 2, 2, 7 ),
-( 2, 3, 8 );
-SELECT a, AVG(t1.b),
-(SELECT t11.c FROM t1 t11 WHERE t11.a = t1.a AND t11.b = AVG(t1.b)) AS t11c
-FROM t1 GROUP BY a;
-a AVG(t1.b) t11c
-1 4.0000 6
-2 2.0000 7
-DROP TABLE t1;
-#
-# Test of LP BUG#800696 (deleting list of Items (OR arguments)
-# in optimization)
-#
-set optimizer_switch='subquery_cache=on,in_to_exists=on';
-CREATE TABLE t1 ( f3 int) ;
-INSERT INTO t1 VALUES (0),(0);
-CREATE TABLE t3 ( f3 int) ;
-INSERT INTO t3 VALUES (0),(0);
-CREATE TABLE t2 ( f1 int, f2 int, f3 int) ;
-INSERT INTO t2 VALUES (7,0,0);
-SELECT *
-FROM t2, t3
-WHERE t2.f2 OR t3.f3 IN
-(
-SELECT t2.f2
-FROM t1
-WHERE t2.f1 OR t2.f3 );
-f1 f2 f3 f3
-7 0 0 0
-7 0 0 0
-drop tables t1, t2, t3;
-#
-# Test of LP BUG#872775 view with "outer references" bug
-#
-set @@optimizer_switch= default;
-set optimizer_switch='subquery_cache=on';
-CREATE TABLE t1 (a int) ;
-CREATE TABLE t2 (b int, c varchar(1) NOT NULL ) ;
-INSERT INTO t2 VALUES (1,'x'),(2,'y');
-CREATE TABLE t3 (a int) ;
-CREATE TABLE t4 ( pk int(11) NOT NULL , b int(11) NOT NULL ) ;
-INSERT INTO t4 VALUES (26,9),(27,5),(28,0),(29,3);
-CREATE OR REPLACE VIEW v1 AS
-SELECT t2.b
-FROM t1
-JOIN t2
-WHERE t2 .c > (
-SELECT t2.c FROM t3
-);
-SELECT * FROM t4 WHERE b NOT IN ( SELECT * FROM v1 );
-pk b
-26 9
-27 5
-28 0
-29 3
-drop view v1;
-drop table t1,t2,t3,t4;
-SET optimizer_switch=@save_optimizer_switch;
-# restore default
-set @@optimizer_switch= default;
diff --git a/mysql-test/r/subselect_debug.result b/mysql-test/r/subselect_debug.result
deleted file mode 100644
index 9be53ae0473..00000000000
--- a/mysql-test/r/subselect_debug.result
+++ /dev/null
@@ -1,20 +0,0 @@
-CREATE TABLE t1(id INT);
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-INSERT INTO t1 SELECT a.id FROM t1 a,t1 b,t1 c,t1 d;
-SET @orig_debug=@@debug;
-SET GLOBAL debug_dbug="d,subselect_exec_fail";
-SELECT SUM(EXISTS(SELECT RAND() FROM t1)) FROM t1;
-SUM(EXISTS(SELECT RAND() FROM t1))
-0
-SELECT REVERSE(EXISTS(SELECT RAND() FROM t1));
-REVERSE(EXISTS(SELECT RAND() FROM t1))
-0
-SET GLOBAL debug_dbug=@orig_debug;
-DROP TABLE t1;
-create table t1 (i int);
-insert into t1 values (1),(2);
-select * from t1 where (i < 200 or i = 300) and i in (select i from t1);
-i
-1
-2
-drop table t1;
diff --git a/mysql-test/r/subselect_exists2in.result b/mysql-test/r/subselect_exists2in.result
deleted file mode 100644
index 95fc1c19b82..00000000000
--- a/mysql-test/r/subselect_exists2in.result
+++ /dev/null
@@ -1,975 +0,0 @@
-drop table if exists t1,t2,t3;
-set optimizer_switch='exists_to_in=on';
-#
-# LP BUG#884644 exists2in broke name resolution
-#
-CREATE TABLE t1 (f1 integer);
-SELECT * FROM t1 WHERE EXISTS (SELECT NO_SUCH_TABLE.NO_SUCH_FIELD FROM t1);
-ERROR 42S22: Unknown column 'NO_SUCH_TABLE.NO_SUCH_FIELD' in 'field list'
-drop table t1;
-#
-# LP BUG#884657 Wrong result with exists2in , correlated subquery
-#
-CREATE TABLE t1 ( a varchar(1)) ;
-INSERT INTO t1 VALUES ('c'),('b');
-CREATE TABLE t2 ( b varchar(1)) ;
-INSERT INTO t2 VALUES ('v'),('v'),('c'),(NULL),('x'),('i'),('e'),('p'),('s'),('j'),('z'),('c'),('a'),('q'),('y'),(NULL),('r'),('v'),(NULL),('r');
-CREATE TABLE t3 ( a int NOT NULL , b varchar(1)) ;
-INSERT INTO t3 VALUES (29,'c');
-SELECT *
-FROM t1, t2
-WHERE EXISTS (
-SELECT a
-FROM t3
-WHERE t3.b = t1.a
-AND t3.b <> t2.b
-);
-a b
-c v
-c v
-c x
-c i
-c e
-c p
-c s
-c j
-c z
-c a
-c q
-c y
-c r
-c v
-c r
-INSERT INTO t3 VALUES (2,'c');
-alter table t1 add index aa (a);
-alter table t3 add index bb (b);
--- EXIST to IN then semijoin (has priority over IN to EXISTS)
-set optimizer_switch='exists_to_in=on,in_to_exists=on,semijoin=on,materialization=off,subquery_cache=off';
-SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t3 WHERE t3.b = t1.a);
-a
-c
-explain extended
-SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t3 WHERE t3.b = t1.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index aa aa 4 NULL 2 100.00 Using index
-1 PRIMARY t3 ALL bb NULL NULL NULL 2 100.00 Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t3`) where `test`.`t3`.`b` = `test`.`t1`.`a`
--- EXIST to IN then IN to EXISTS
-set optimizer_switch='exists_to_in=on,in_to_exists=on,semijoin=off,materialization=off,subquery_cache=off';
-SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t3 WHERE t3.b = t1.a);
-a
-c
-explain extended
-SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t3 WHERE t3.b = t1.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL aa 4 NULL 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t3 ALL bb NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where <in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `test`.`t3`.`b` from `test`.`t3` where <cache>(`test`.`t1`.`a`) = `test`.`t3`.`b`))
--- EXIST2IN then MATERIALIZATION
-set optimizer_switch='exists_to_in=on,in_to_exists=off,semijoin=off,materialization=on,subquery_cache=off';
-SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t3 WHERE t3.b = t1.a);
-a
-c
-explain extended
-SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t3 WHERE t3.b = t1.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL aa 4 NULL 2 100.00 Using where; Using index
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where <in_optimizer>(`test`.`t1`.`a`,`test`.`t1`.`a` in ( <materialize> (/* select#2 */ select `test`.`t3`.`b` from `test`.`t3` where 1 ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`b`)))
--- NO EXIST2IN
-set optimizer_switch='exists_to_in=off,subquery_cache=off';
-SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t3 WHERE t3.b = t1.a);
-a
-c
-explain extended
-SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t3 WHERE t3.b = t1.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL aa 4 NULL 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t3 ALL bb NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where exists(/* select#2 */ select `test`.`t3`.`a` from `test`.`t3` where `test`.`t3`.`b` = `test`.`t1`.`a`)
-set optimizer_switch=default;
-set optimizer_switch='exists_to_in=on';
-drop table t1,t2,t3;
-#
-# From group_min_max.test
-#
-create table t1 (
-a1 char(64), a2 char(64), b char(16), c char(16) not null, d char(16), dummy char(64) default ' '
-);
-insert into t1 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4'),
-('d','a','a','a411','xy1'),('d','a','a','b411','xy2'),('d','a','a','c411','xy3'),('d','a','a','d411','xy4'),
-('d','a','b','e412','xy1'),('d','a','b','f412','xy2'),('d','a','b','g412','xy3'),('d','a','b','h412','xy4'),
-('d','b','a','i421','xy1'),('d','b','a','j421','xy2'),('d','b','a','k421','xy3'),('d','b','a','l421','xy4'),
-('d','b','b','m422','xy1'),('d','b','b','n422','xy2'),('d','b','b','o422','xy3'),('d','b','b','p422','xy4'),
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4'),
-('d','a','a','a411','xy1'),('d','a','a','b411','xy2'),('d','a','a','c411','xy3'),('d','a','a','d411','xy4'),
-('d','a','b','e412','xy1'),('d','a','b','f412','xy2'),('d','a','b','g412','xy3'),('d','a','b','h412','xy4'),
-('d','b','a','i421','xy1'),('d','b','a','j421','xy2'),('d','b','a','k421','xy3'),('d','b','a','l421','xy4'),
-('d','b','b','m422','xy1'),('d','b','b','n422','xy2'),('d','b','b','o422','xy3'),('d','b','b','p422','xy4');
-create index idx_t1_0 on t1 (a1);
-create index idx_t1_1 on t1 (a1,a2,b,c);
-create index idx_t1_2 on t1 (a1,a2,b);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-create table t2 (
-a1 char(64), a2 char(64) not null, b char(16), c char(16), d char(16), dummy char(64) default ' '
-);
-insert into t2 select * from t1;
-insert into t2 (a1, a2, b, c, d) values
-('a','a',NULL,'a777','xyz'),('a','a',NULL,'a888','xyz'),('a','a',NULL,'a999','xyz'),
-('a','a','a',NULL,'xyz'),
-('a','a','b',NULL,'xyz'),
-('a','b','a',NULL,'xyz'),
-('c','a',NULL,'c777','xyz'),('c','a',NULL,'c888','xyz'),('c','a',NULL,'c999','xyz'),
-('d','b','b',NULL,'xyz'),
-('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),
-('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),
-('a','a',NULL,'a777','xyz'),('a','a',NULL,'a888','xyz'),('a','a',NULL,'a999','xyz'),
-('a','a','a',NULL,'xyz'),
-('a','a','b',NULL,'xyz'),
-('a','b','a',NULL,'xyz'),
-('c','a',NULL,'c777','xyz'),('c','a',NULL,'c888','xyz'),('c','a',NULL,'c999','xyz'),
-('d','b','b',NULL,'xyz'),
-('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),
-('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz');
-create index idx_t2_0 on t2 (a1);
-create index idx_t2_1 on t2 (a1,a2,b,c);
-create index idx_t2_2 on t2 (a1,a2,b);
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status Table is already up to date
-create table t3 (
-a1 char(1), a2 char(1), b char(1), c char(4) not null, d char(3), dummy char(1) default ' '
-);
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-create index idx_t3_0 on t3 (a1);
-create index idx_t3_1 on t3 (a1,a2,b,c);
-create index idx_t3_2 on t3 (a1,a2,b);
-analyze table t3;
-Table Op Msg_type Msg_text
-test.t3 analyze status Table is already up to date
-explain select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.b) and
-t2.c > 'b1' )
-group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL idx_t1_1 163 NULL 128 Using where; Using index
-2 DEPENDENT SUBQUERY t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-2 DEPENDENT SUBQUERY t3 index NULL idx_t3_1 10 NULL 192 Using where; Using index; FirstMatch(t2); Using join buffer (flat, BNL join)
-select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.b) and
-t2.c > 'b1' )
-group by a1,a2,b;
-a1 a2 b c min(c) max(c)
-a a a a111 a111 d111
-a a b e112 e112 h112
-a b a i121 i121 l121
-a b b m122 m122 p122
-b a a a211 a211 d211
-b a b e212 e212 h212
-b b a i221 i221 l221
-b b b m222 m222 p222
-c a a a311 a311 d311
-c a b e312 e312 h312
-c b a i321 i321 l321
-c b b m322 m322 p322
-d a a a411 a411 d411
-d a b e412 e412 h412
-d b a i421 i421 l421
-d b b m422 m422 p422
-explain select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.c) and
-t2.c > 'b1' )
-group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL idx_t1_1 163 NULL 128 Using where; Using index
-2 DEPENDENT SUBQUERY t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-2 DEPENDENT SUBQUERY t3 index NULL idx_t3_1 10 NULL 192 Using where; Using index; FirstMatch(t2); Using join buffer (flat, BNL join)
-select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.c) and
-t2.c > 'b1' )
-group by a1,a2,b;
-a1 a2 b c min(c) max(c)
-a a a a111 a111 d111
-a a b e112 e112 h112
-a b a i121 i121 l121
-a b b m122 m122 p122
-b a a a211 a211 d211
-b a b e212 e212 h212
-b b a i221 i221 l221
-b b b m222 m222 p222
-c a a a311 a311 d311
-c a b e312 e312 h312
-c b a i321 i321 l321
-c b b m322 m322 o322
-d a a a411 a411 d411
-d a b e412 e412 h412
-d b a i421 i421 l421
-d b b m422 m422 o422
-drop table t1, t2, t3;
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (7),(0);
-CREATE TABLE t2 ( b INT );
-INSERT INTO t2 VALUES (0),(8);
-SELECT * FROM t1 WHERE
-EXISTS ( SELECT * FROM t2 WHERE b = a )
-OR a > 0;
-a
-7
-0
-explain extended
-SELECT * FROM t1 WHERE
-EXISTS ( SELECT * FROM t2 WHERE b = a )
-OR a > 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,`test`.`t1`.`a` in ( <materialize> (/* select#2 */ select `test`.`t2`.`b` from `test`.`t2` where 1 ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`b`)))) or `test`.`t1`.`a` > 0
-drop tables t1,t2;
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 ( b INT ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1);
-CREATE TABLE t3 ( c INT );
-INSERT INTO t3 VALUES (4),(5);
-SET optimizer_switch='exists_to_in=on,subquery_cache=off,materialization=on,in_to_exists=off,semijoin=off';
-explain extended
-SELECT ( SELECT b FROM t2 WHERE NOT EXISTS ( SELECT c FROM t3 WHERE c = b ) ) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t2 system NULL NULL NULL NULL 1 100.00
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t2.b' of SELECT #3 was resolved in SELECT #2
-Note 1003 /* select#1 */ select (/* select#2 */ select 1 from dual where !(1 is not null and <in_optimizer>(1,1 in ( <materialize> (/* select#3 */ select `test`.`t3`.`c` from `test`.`t3` where `test`.`t3`.`c` is not null ), <primary_index_lookup>(1 in <temporary table> on distinct_key where 1 = `<subquery3>`.`c`))))) AS `( SELECT b FROM t2 WHERE NOT EXISTS ( SELECT c FROM t3 WHERE c = b ) )` from `test`.`t1`
-SELECT ( SELECT b FROM t2 WHERE NOT EXISTS ( SELECT c FROM t3 WHERE c = b ) ) FROM t1;
-( SELECT b FROM t2 WHERE NOT EXISTS ( SELECT c FROM t3 WHERE c = b ) )
-1
-1
-SET optimizer_switch='exists_to_in=on,subquery_cache=off';
-explain extended
-SELECT ( SELECT b FROM t2 WHERE NOT EXISTS ( SELECT c FROM t3 WHERE c = b ) ) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t2 system NULL NULL NULL NULL 1 100.00
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t2.b' of SELECT #3 was resolved in SELECT #2
-Note 1003 /* select#1 */ select (/* select#2 */ select 1 from dual where !(1 is not null and <in_optimizer>(1,1 in ( <materialize> (/* select#3 */ select `test`.`t3`.`c` from `test`.`t3` where `test`.`t3`.`c` is not null ), <primary_index_lookup>(1 in <temporary table> on distinct_key where 1 = `<subquery3>`.`c`))))) AS `( SELECT b FROM t2 WHERE NOT EXISTS ( SELECT c FROM t3 WHERE c = b ) )` from `test`.`t1`
-SELECT ( SELECT b FROM t2 WHERE NOT EXISTS ( SELECT c FROM t3 WHERE c = b ) ) FROM t1;
-( SELECT b FROM t2 WHERE NOT EXISTS ( SELECT c FROM t3 WHERE c = b ) )
-1
-1
-SET optimizer_switch='exists_to_in=off,subquery_cache=off';
-explain extended
-SELECT ( SELECT b FROM t2 WHERE NOT EXISTS ( SELECT c FROM t3 WHERE c = b ) ) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t2 system NULL NULL NULL NULL 1 100.00
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t2.b' of SELECT #3 was resolved in SELECT #2
-Note 1003 /* select#1 */ select (/* select#2 */ select 1 from dual where !exists(/* select#3 */ select `test`.`t3`.`c` from `test`.`t3` where `test`.`t3`.`c` = 1)) AS `( SELECT b FROM t2 WHERE NOT EXISTS ( SELECT c FROM t3 WHERE c = b ) )` from `test`.`t1`
-SELECT ( SELECT b FROM t2 WHERE NOT EXISTS ( SELECT c FROM t3 WHERE c = b ) ) FROM t1;
-( SELECT b FROM t2 WHERE NOT EXISTS ( SELECT c FROM t3 WHERE c = b ) )
-1
-1
-set optimizer_switch=default;
-set optimizer_switch='exists_to_in=on';
-drop table t1,t2,t3;
-# multi condition test
-CREATE TABLE t1 ( a varchar(1), a1 varchar(1)) ;
-INSERT INTO t1 VALUES ('c', 'c'), ('b', 'b');
-CREATE TABLE t3 ( a int NOT NULL , b varchar(1), b1 varchar(1)) ;
-INSERT INTO t3 VALUES (29,'c','c');
-INSERT INTO t3 VALUES (2,'c','c');
-alter table t1 add index aa (a,a1);
-alter table t3 add index bb (b,b1);
--- EXIST to IN then semijoin (has priority over IN to EXISTS)
-set optimizer_switch='exists_to_in=on,in_to_exists=on,semijoin=on,materialization=off,subquery_cache=off';
-SELECT * FROM t1 WHERE EXISTS ( SELECT * FROM t3 WHERE t3.b = t1.a and t3.b1 = t1.a1);
-a a1
-c c
-explain extended
-SELECT * FROM t1 WHERE EXISTS ( SELECT * FROM t3 WHERE t3.b = t1.a and t3.b1 = t1.a1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 index bb bb 8 NULL 2 100.00 Using where; Using index; LooseScan
-1 PRIMARY t1 ref aa aa 8 test.t3.b,test.t3.b1 2 100.00 Using index
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t1.a1' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`a1` AS `a1` from `test`.`t1` semi join (`test`.`t3`) where `test`.`t1`.`a` = `test`.`t3`.`b` and `test`.`t1`.`a1` = `test`.`t3`.`b1`
--- EXIST to IN then IN to EXISTS
-set optimizer_switch='exists_to_in=on,in_to_exists=on,semijoin=off,materialization=off,subquery_cache=off';
-SELECT * FROM t1 WHERE EXISTS ( SELECT * FROM t3 WHERE t3.b = t1.a and t3.b1 = t1.a1);
-a a1
-c c
-explain extended
-SELECT * FROM t1 WHERE EXISTS ( SELECT * FROM t3 WHERE t3.b = t1.a and t3.b1 = t1.a1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL aa 8 NULL 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t3 index_subquery bb bb 8 func,func 2 100.00 Using index; Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t1.a1' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`a1` AS `a1` from `test`.`t1` where <in_optimizer>((`test`.`t1`.`a`,`test`.`t1`.`a1`),<exists>(<index_lookup>(<cache>(`test`.`t1`.`a`) in t3 on bb where <cache>(`test`.`t1`.`a`) = `test`.`t3`.`b` and <cache>(`test`.`t1`.`a1`) = `test`.`t3`.`b1`)))
--- EXIST2IN then MATERIALIZATION
-set optimizer_switch='exists_to_in=on,in_to_exists=off,semijoin=off,materialization=on,subquery_cache=off';
-SELECT * FROM t1 WHERE EXISTS ( SELECT * FROM t3 WHERE t3.b = t1.a and t3.b1 = t1.a1);
-a a1
-c c
-explain extended
-SELECT * FROM t1 WHERE EXISTS ( SELECT * FROM t3 WHERE t3.b = t1.a and t3.b1 = t1.a1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL aa 8 NULL 2 100.00 Using where; Using index
-2 MATERIALIZED t3 index NULL bb 8 NULL 2 100.00 Using index
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t1.a1' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`a1` AS `a1` from `test`.`t1` where <in_optimizer>((`test`.`t1`.`a`,`test`.`t1`.`a1`),(`test`.`t1`.`a`,`test`.`t1`.`a1`) in ( <materialize> (/* select#2 */ select `test`.`t3`.`b`,`test`.`t3`.`b1` from `test`.`t3` where 1 ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`b` and `test`.`t1`.`a1` = `<subquery2>`.`b1`)))
--- NO EXIST2IN
-set optimizer_switch='exists_to_in=off,subquery_cache=off';
-SELECT * FROM t1 WHERE EXISTS ( SELECT * FROM t3 WHERE t3.b = t1.a and t3.b1 = t1.a1);
-a a1
-c c
-explain extended
-SELECT * FROM t1 WHERE EXISTS ( SELECT * FROM t3 WHERE t3.b = t1.a and t3.b1 = t1.a1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL aa 8 NULL 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t3 ref bb bb 8 test.t1.a,test.t1.a1 2 100.00 Using index
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t1.a1' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`a1` AS `a1` from `test`.`t1` where exists(/* select#2 */ select 1 from `test`.`t3` where `test`.`t3`.`b` = `test`.`t1`.`a` and `test`.`t3`.`b1` = `test`.`t1`.`a1`)
-set optimizer_switch=default;
-set optimizer_switch='exists_to_in=on';
-drop table t1,t3;
-#
-# MDEV-159 Assertion about not marked for read failed in
-# String* Field_varstring::val_str(String*, String*)
-#
-SET optimizer_switch = REPLACE( @@optimizer_switch, '=on', '=off' );
-SET optimizer_switch='in_to_exists=on,exists_to_in=on';
-CREATE TABLE t1 ( a VARCHAR(1) );
-INSERT INTO t1 VALUES ('k'),('m');
-CREATE TABLE t2 ( b INT,
-c VARCHAR(1),
-d VARCHAR(1) NOT NULL );
-INSERT INTO t2 VALUES
-(4,'j','j'),(6,'v','v');
-CREATE ALGORITHM=MERGE VIEW v AS SELECT * FROM t2 WHERE b < 1;
-SELECT c FROM v
-WHERE EXISTS (
-SELECT * FROM t1, t2
-WHERE a <= v.d AND b = v.b
-);
-c
-explain extended
-SELECT c FROM v
-WHERE EXISTS (
-SELECT * FROM t1, t2
-WHERE a <= v.d AND b = v.b
-);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'v.d' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'v.b' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`c` AS `c` from `test`.`t2` where <in_optimizer>(`test`.`t2`.`b`,<exists>(/* select#2 */ select `test`.`t2`.`b` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` <= `test`.`t2`.`d` and <cache>(`test`.`t2`.`b`) = `test`.`t2`.`b`)) and `test`.`t2`.`b` < 1
-set optimizer_switch=default;
-set optimizer_switch='exists_to_in=on';
-drop view v;
-drop table t1,t2;
-#
-# MDEV-160 Exists2In: Crash in in hp_movelink with subquery_cache=ON
-#
-SET optimizer_switch = 'in_to_exists=on,subquery_cache=on,exists_to_in=on';
-CREATE TABLE t1 (
-a VARCHAR(3) NOT NULL,
-b VARCHAR(50)
-);
-INSERT INTO t1 VALUES
-('USA','Chinese'),('USA','English'),
-('FRA','French'),('ITA','Italian');
-CREATE TABLE t2 ( c VARCHAR(3) );
-INSERT INTO t2 VALUES ('USA'),('FRA');
-SELECT * FROM t1 AS alias1, t1 AS alias2
-WHERE EXISTS (
-SELECT * FROM t1, t2
-WHERE a <= alias2.a AND c = alias1.b
-) OR alias1 .a = 'foo';
-a b a b
-SELECT * FROM t1 AS alias1, t1 AS alias2
-WHERE EXISTS (
-SELECT * FROM t1, t2
-WHERE a <= alias2.a AND c = alias1.a
-) OR alias1 .a = 'foo';
-a b a b
-USA Chinese USA Chinese
-USA English USA Chinese
-FRA French USA Chinese
-USA Chinese USA English
-USA English USA English
-FRA French USA English
-USA Chinese FRA French
-USA English FRA French
-FRA French FRA French
-USA Chinese ITA Italian
-USA English ITA Italian
-FRA French ITA Italian
-drop table t1,t2;
-set optimizer_switch=default;
-set optimizer_switch='exists_to_in=on';
-#
-# MDEV-160 Exists2In: Crash in in hp_movelink with subquery_cache=ON
-#
-SET optimizer_switch = 'in_to_exists=on,subquery_cache=on,exists_to_in=on';
-CREATE TABLE t1 (
-a VARCHAR(3) NOT NULL,
-b VARCHAR(50)
-);
-INSERT INTO t1 VALUES
-('USA','Chinese'),('USA','English'),
-('FRA','French'),('ITA','Italian');
-CREATE TABLE t2 ( c VARCHAR(3) );
-INSERT INTO t2 VALUES ('USA'),('FRA');
-SELECT * FROM t1 AS alias1, t1 AS alias2
-WHERE EXISTS (
-SELECT * FROM t1, t2
-WHERE a <= alias2.a AND c = alias1.b
-) OR alias1 .a = 'foo';
-a b a b
-explain extended
-SELECT * FROM t1 AS alias1, t1 AS alias2
-WHERE EXISTS (
-SELECT * FROM t1, t2
-WHERE a <= alias2.a AND c = alias1.b
-) OR alias1 .a = 'foo';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 4 100.00
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 4 100.00 Using where; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 4 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.alias2.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.alias1.b' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`alias1`.`a` AS `a`,`test`.`alias1`.`b` AS `b`,`test`.`alias2`.`a` AS `a`,`test`.`alias2`.`b` AS `b` from `test`.`t1` `alias1` join `test`.`t1` `alias2` where <expr_cache><`test`.`alias1`.`b`,`test`.`alias2`.`a`>(<in_optimizer>(`test`.`alias1`.`b`,<exists>(/* select#2 */ select `test`.`t2`.`c` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` <= `test`.`alias2`.`a` and <cache>(`test`.`alias1`.`b`) = `test`.`t2`.`c`))) or `test`.`alias1`.`a` = 'foo'
-drop table t1,t2;
-set optimizer_switch=default;
-set optimizer_switch='exists_to_in=on';
-#
-# MDEV-245 Exists2In: Wrong result (extra rows) with
-# exists_to_in=ON, materialization=OFF, NOT EXISTS subquery
-#
-SET optimizer_switch='materialization=off,exists_to_in=on';
-CREATE TABLE t1 ( a INT ) ;
-INSERT INTO t1 VALUES (0),(8),(1);
-CREATE TABLE t2 ( b INT ) ;
-INSERT INTO t2 VALUES (1),(2),(3);
-SELECT * FROM t1 WHERE NOT EXISTS ( SELECT * FROM t2 WHERE b = a );
-a
-0
-8
-explain extended
-SELECT * FROM t1 WHERE NOT EXISTS ( SELECT * FROM t2 WHERE b = a );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where !(`test`.`t1`.`a` is not null and <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `test`.`t2`.`b` from `test`.`t2` where `test`.`t2`.`b` is not null and <cache>(`test`.`t1`.`a`) = `test`.`t2`.`b`))))
-drop table t1,t2;
-set optimizer_switch=default;
-set optimizer_switch='exists_to_in=on';
-#
-# MDEV-243 Wrong result (extra or missing rows) with
-# exists_to_in + materialization, EXISTS subquery
-#
-SET optimizer_switch='index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=off,exists_to_in=on';
-CREATE TABLE t1 ( a VARCHAR(1), b VARCHAR(1) );
-INSERT INTO t1 VALUES ('v','v'),('s','v');
-SELECT * FROM t1 AS alias
-WHERE EXISTS ( SELECT * FROM t1 WHERE a > alias.a AND a = alias.b );
-a b
-s v
-explain extended
-SELECT * FROM t1 AS alias
-WHERE EXISTS ( SELECT * FROM t1 WHERE a > alias.a AND a = alias.b );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY alias ALL NULL NULL NULL NULL 2 100.00 Using where
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where; FirstMatch(alias); Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.alias.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.alias.b' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`alias`.`a` AS `a`,`test`.`alias`.`b` AS `b` from `test`.`t1` `alias` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`alias`.`b` and `test`.`alias`.`b` > `test`.`alias`.`a`
-SET optimizer_switch = REPLACE( @@optimizer_switch, '=on', '=off' );
-SET optimizer_switch = 'exists_to_in=on,materialization=on,semijoin=off';
-SELECT * FROM t1 AS alias
-WHERE EXISTS ( SELECT * FROM t1 WHERE a > alias.a AND a = alias.b );
-a b
-s v
-explain extended
-SELECT * FROM t1 AS alias
-WHERE EXISTS ( SELECT * FROM t1 WHERE a > alias.a AND a = alias.b );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY alias ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.alias.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.alias.b' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`alias`.`a` AS `a`,`test`.`alias`.`b` AS `b` from `test`.`t1` `alias` where <in_optimizer>(`test`.`alias`.`b`,<exists>(/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` where `test`.`t1`.`a` > `test`.`alias`.`a` and <cache>(`test`.`alias`.`b`) = `test`.`t1`.`a`))
-SET optimizer_switch = 'exists_to_in=on,materialization=on,semijoin=on';
-SELECT * FROM t1 AS alias
-WHERE EXISTS ( SELECT * FROM t1 WHERE a > alias.a AND a = alias.b );
-a b
-s v
-explain extended
-SELECT * FROM t1 AS alias
-WHERE EXISTS ( SELECT * FROM t1 WHERE a > alias.a AND a = alias.b );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY alias ALL NULL NULL NULL NULL 2 100.00 Using where
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where; Start temporary; End temporary
-Warnings:
-Note 1276 Field or reference 'test.alias.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.alias.b' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`alias`.`a` AS `a`,`test`.`alias`.`b` AS `b` from `test`.`t1` `alias` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`alias`.`b` and `test`.`alias`.`b` > `test`.`alias`.`a`
-drop table t1;
-set optimizer_switch=default;
-set optimizer_switch='exists_to_in=on';
-#
-# MDEV-403 Wrong result (missing rows) with subquery in
-# EXISTS and an OR condition outside
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (2),(3);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1),(3);
-SET optimizer_switch = 'exists_to_in=off,in_to_exists=on';
-SELECT * FROM t1 AS alias1, t2 AS alias2
-WHERE EXISTS (
-SELECT 1 FROM t2 WHERE b = alias1.a AND b > alias2.b
-) OR a = 5;
-a b
-3 1
-SET optimizer_switch = 'exists_to_in=on,in_to_exists=on';
-SELECT * FROM t1 AS alias1, t2 AS alias2
-WHERE EXISTS (
-SELECT 1 FROM t2 WHERE b = alias1.a AND b > alias2.b
-) OR a = 5;
-a b
-3 1
-explain extended
-SELECT * FROM t1 AS alias1, t2 AS alias2
-WHERE EXISTS (
-SELECT 1 FROM t2 WHERE b = alias1.a AND b > alias2.b
-) OR a = 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.alias1.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.alias2.b' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`alias1`.`a` AS `a`,`test`.`alias2`.`b` AS `b` from `test`.`t1` `alias1` join `test`.`t2` `alias2` where <expr_cache><`test`.`alias1`.`a`,`test`.`alias2`.`b`>(<in_optimizer>(`test`.`alias1`.`a`,<exists>(/* select#2 */ select `test`.`t2`.`b` from `test`.`t2` where `test`.`t2`.`b` > `test`.`alias2`.`b` and <cache>(`test`.`alias1`.`a`) = `test`.`t2`.`b`))) or `test`.`alias1`.`a` = 5
-drop table t1, t2;
-set optimizer_switch=default;
-set optimizer_switch='exists_to_in=on';
-#
-# MDEV-404: Wrong result (extra rows) with STRAIGHT_JOIN,
-# EXISTS subquery, NOT NULL column
-# (same as above)
-#
-SET optimizer_switch = 'exists_to_in=on,in_to_exists=on';
-CREATE TABLE t1 (a INT, b VARCHAR(1) NOT NULL);
-INSERT INTO t1 VALUES (1,'s'),(2,'e');
-SELECT STRAIGHT_JOIN * FROM t1 AS alias1, t1 AS alias2
-WHERE EXISTS ( SELECT 1 FROM t1 WHERE b < alias2.b AND a = alias1.a );
-a b a b
-2 e 1 s
-drop table t1;
-set optimizer_switch=default;
-set optimizer_switch='exists_to_in=on';
-#
-# MDEV-3800: ORDER BY doesn't work with exists_to_in=ON on
-# a query with EXISTS subquery and OR condition
-#
-SET optimizer_switch = 'in_to_exists=on,exists_to_in=on';
-CREATE TABLE t1 (a INT, b VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4,'j'),(6,'v'),(3,'c');
-CREATE TABLE t2 (c VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('b'),('y');
-SELECT a FROM t1
-WHERE EXISTS (
-SELECT 1 FROM t2 WHERE c = b
-) OR b NOT IN ('U')
-ORDER BY a;
-a
-3
-4
-6
-select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`b` in (select `test`.`t2`.`c` from `test`.`t2` where 1 ) or (`test`.`t1`.`b` <> 'U') order by `test`.`t1`.`a`;
-a
-3
-4
-6
-drop table t1,t2;
-set optimizer_switch=default;
-set optimizer_switch='exists_to_in=on';
-#
-# correct calculation of reserved items (postreview-fix)
-#
-create table t1 (col1 int, col2 int, col3 int);
-insert into t1 values (1,2,3),(2,3,4),(4,5,6);
-create table t2 as select * from t1;
-explain extended
-select * from t1 where exists (select col2 from t2 where t2.col1=t1.col1 and t2.col2=t1.col2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.col1' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t1.col2' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`t1`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2`,`test`.`t1`.`col3` AS `col3` from `test`.`t1` semi join (`test`.`t2`) where 1
-select * from t1 where exists (select col2 from t2 where t2.col1=t1.col1 and t2.col2=t1.col2);
-col1 col2 col3
-1 2 3
-2 3 4
-4 5 6
-drop table t1,t2;
-#
-# MDEV-3879: Exists2In: Wrong result (extra row) and unexpected
-# warning with exists_to_in=on and a NOT EXISTS subquery
-#
-SET optimizer_switch = 'exists_to_in=on';
-CREATE TABLE t1 (a1 INT, b1 CHAR(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3,'y'),(6,'w');
-CREATE TABLE t2 (a2 INT, b2 CHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3,'y'),(6,'d');
-SELECT * FROM t1
-WHERE NOT EXISTS ( SELECT * FROM t2 WHERE b2 = b1 AND a2 = a1 );
-a1 b1
-6 w
-drop table t1, t2;
-#
-# MDEV-3880: Wrong result (missing rows) with exists_to_in=on,
-# LEFT JOIN and NOT EXISTS subquery.
-# (Duplicate of above MDEV-3879).
-#
-SET optimizer_switch = 'exists_to_in=on';
-CREATE TABLE t1 (a1 INT, b1 CHAR(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4,'b'),(5,'y');
-CREATE TABLE t2 (b2 CHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('z'),('b');
-CREATE TABLE t3 (a3 INT, b3 CHAR(1)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (4,'j'),(6,'v');
-SELECT * FROM t1 LEFT JOIN t2 ON ( b2 = b1 )
-WHERE NOT EXISTS ( SELECT * FROM t3 WHERE b3 = b2 AND a3 = a1 ) ;
-a1 b1 b2
-4 b b
-5 y NULL
-drop table t1, t2, t3;
-#
-# MDEV-3881: Endless loop and crash in Item_ref::real_item with
-# exists_to_in=on, NOT EXISTS subquery, merge view or from subquery,
-# constant table
-#
-SET optimizer_switch = 'exists_to_in=on';
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(7);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8);
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t2;
-CREATE TABLE t3 (c INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (4),(6);
-SELECT * FROM t1, v1 WHERE NOT EXISTS ( SELECT * FROM t3 WHERE c = b ) AND a = b;
-a b
-drop view v1;
-drop table t1, t2, t3;
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(7);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8);
-CREATE TABLE t3 (c INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (4),(6);
-SELECT * FROM t1, ( SELECT * FROM t2 ) alias WHERE NOT EXISTS ( SELECT * FROM t3 WHERE c = b ) AND a = b;
-a b
-drop table t1, t2, t3;
-#
-# MDEV-3906: Server crashes in Dependency_marker::visit_field
-# on 2nd execution of PS with exists_to_in and NOT EXISTS subquery
-#
-SET optimizer_switch='exists_to_in=on';
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(7);
-PREPARE stmt FROM '
-SELECT * FROM t1 AS alias
-WHERE NOT EXISTS ( SELECT * FROM t1 WHERE t1.a = alias.a )
-';
-EXECUTE stmt;
-a
-EXECUTE stmt;
-a
-drop table t1;
-#
-# MDEV-3904: Assertion `in_subs->has_strategy()' failed in
-# JOIN::choose_subquery_plan on 2nd execution of PS with
-# exists_to_in+semijoin, EXISTS subquery, MERGE view or FROM subquery
-#
-SET optimizer_switch='in_to_exists=on,semijoin=on,exists_to_in=on';
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (4),(6);
-CREATE ALGORITHM=MERGE VIEW v AS
-SELECT * FROM t1 WHERE EXISTS ( SELECT * FROM t2 WHERE b = a );
-PREPARE stmt FROM ' SELECT * FROM v ';
-EXECUTE stmt;
-a
-EXECUTE stmt;
-a
-drop view v;
-drop table t1,t2;
-set optimizer_switch=default;
-set optimizer_switch='exists_to_in=on';
-#
-# MDEV-3903: Server crashes in Item_cond::fix_fields on 2nd execution
-# of a prepared stmt with exists_to_in+materialization+semijoin,
-# EXISTS subquery, STRAIGHT_JOIN
-#
-SET optimizer_switch='materialization=on,semijoin=on,exists_to_in=on';
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3),(4);
-PREPARE stmt FROM
-'SELECT STRAIGHT_JOIN * FROM t1
-WHERE EXISTS ( SELECT * FROM t2 WHERE b = a )';
-EXECUTE stmt;
-a
-EXECUTE stmt;
-a
-drop table t1,t2;
-set optimizer_switch=default;
-set optimizer_switch='exists_to_in=on';
-#
-# MDEV-4152: Wrong result (missing rows) with exists_to_in=on,
-# inner joins
-#
-SET optimizer_switch='materialization=on,semijoin=on,exists_to_in=on';
-CREATE TABLE t1 (i INT, c1 CHAR(5), c2 CHAR(5), t1_field VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'test1','test2','f'), (2,'test3','test4','d');
-CREATE TABLE t2 (t2_field VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('m'), ('b');
-CREATE TABLE t3 (t3_field VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('b'),('c');
-SELECT * FROM t1, t2 outer_t2
-WHERE EXISTS ( SELECT 1 FROM t2, t3 WHERE t3_field = outer_t2.t2_field AND t2_field <= t1_field );
-i c1 c2 t1_field t2_field
-1 test1 test2 f b
-2 test3 test4 d b
-drop table t1,t2,t3;
-set optimizer_switch=default;
-set optimizer_switch='exists_to_in=on';
-#
-#MDEV-5401: Wrong result (missing row) on a 2nd execution of PS with
-#exists_to_in=on, MERGE view or a SELECT SQ
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1;
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (2),(3);
-SELECT * FROM v1 WHERE EXISTS ( SELECT * FROM t2 t2x, t2 t2y WHERE t2y.b = a );
-a
-2
-PREPARE stmt FROM "SELECT * FROM v1 WHERE EXISTS ( SELECT * FROM t2 t2x, t2 t2y WHERE t2y.b = a )";
-EXECUTE stmt;
-a
-2
-EXECUTE stmt;
-a
-2
-deallocate prepare stmt;
-drop view v1;
-drop table t1,t2;
-#
-#MDEV-10053: EXIST to IN transformation turned down
-#
-CREATE TABLE t1 (
-pk INT, f1 INT NOT NULL, f2 VARCHAR(3), f3 INT NULL, PRIMARY KEY(pk))
-ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,1,'foo',8), (2,5,'bar',7);
-set @optimizer_switch_save=@@optimizer_switch;
-set optimizer_switch='exists_to_in=off';
-explain extended SELECT STRAIGHT_JOIN sq1.f2
-FROM ( SELECT * FROM t1 ) AS sq1
-WHERE EXISTS ( SELECT * FROM t1 AS sq2
-WHERE sq1.`pk` IN ( SELECT f1 FROM t1 ) AND sq2.f1 = sq1.f1 );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DEPENDENT SUBQUERY <subquery4> eq_ref distinct_key distinct_key 4 func 1 100.00
-3 DEPENDENT SUBQUERY sq2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-4 MATERIALIZED t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1276 Field or reference 'sq1.pk' of SELECT #3 was resolved in SELECT #1
-Note 1276 Field or reference 'sq1.f1' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select straight_join `test`.`t1`.`f2` AS `f2` from `test`.`t1` where <expr_cache><`test`.`t1`.`f1`,`test`.`t1`.`pk`>(exists(/* select#3 */ select 1 from `test`.`t1` `sq2` semi join (`test`.`t1`) where `test`.`sq2`.`f1` = `test`.`t1`.`f1` and `test`.`t1`.`pk` = `test`.`t1`.`f1`))
-SELECT STRAIGHT_JOIN sq1.f2
-FROM ( SELECT * FROM t1 ) AS sq1
-WHERE EXISTS ( SELECT * FROM t1 AS sq2
-WHERE sq1.`pk` IN ( SELECT f1 FROM t1 ) AND sq2.f1 = sq1.f1 );
-f2
-foo
-set optimizer_switch='exists_to_in=on';
-explain extended SELECT STRAIGHT_JOIN sq1.f2
-FROM ( SELECT * FROM t1 ) AS sq1
-WHERE EXISTS ( SELECT * FROM t1 AS sq2
-WHERE sq1.`pk` IN ( SELECT f1 FROM t1 ) AND sq2.f1 = sq1.f1 );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DEPENDENT SUBQUERY <subquery4> eq_ref distinct_key distinct_key 4 func 1 100.00
-3 DEPENDENT SUBQUERY sq2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-4 MATERIALIZED t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1276 Field or reference 'sq1.pk' of SELECT #3 was resolved in SELECT #1
-Note 1276 Field or reference 'sq1.f1' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select straight_join `test`.`t1`.`f2` AS `f2` from `test`.`t1` where <expr_cache><`test`.`t1`.`f1`,`test`.`t1`.`pk`>(<in_optimizer>(`test`.`t1`.`f1`,<exists>(/* select#3 */ select `test`.`sq2`.`f1` from `test`.`t1` `sq2` semi join (`test`.`t1`) where `test`.`t1`.`pk` = `test`.`t1`.`f1` and <cache>(`test`.`t1`.`f1`) = `test`.`sq2`.`f1`)))
-SELECT STRAIGHT_JOIN sq1.f2
-FROM ( SELECT * FROM t1 ) AS sq1
-WHERE EXISTS ( SELECT * FROM t1 AS sq2
-WHERE sq1.`pk` IN ( SELECT f1 FROM t1 ) AND sq2.f1 = sq1.f1 );
-f2
-foo
-set optimizer_switch= @optimizer_switch_save;
-DROP TABLE t1;
-#
-# MDEV-14164: Unknown column error when adding aggregate to function
-# in oracle style procedure FOR loop
-#
-CREATE TABLE t1(id INT, val INT);
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE cur1 CURSOR FOR SELECT * FROM (
-SELECT DISTINCT id FROM t1) a
-WHERE NOT EXISTS (SELECT * FROM ( SELECT id FROM t1) b
-WHERE a.id=b.id);
-OPEN cur1;
-CLOSE cur1;
-OPEN cur1;
-CLOSE cur1;
-END;
-//
-CALL p1();
-DROP PROCEDURE p1;
-DROP TABLE t1;
-CREATE TABLE t1(id INT, val INT);
-CREATE PROCEDURE p1()
-BEGIN
-SELECT * FROM (SELECT DISTINCT id FROM t1) a
-WHERE NOT a.id IN (SELECT b.id FROM t1 b);
-SELECT * FROM (SELECT DISTINCT id FROM t1) a
-WHERE NOT EXISTS (SELECT * FROM t1 b WHERE a.id=b.id);
-END;
-//
-CALL p1();
-id
-id
-CALL p1();
-id
-id
-DROP PROCEDURE p1;
-DROP TABLE t1;
-# End of 10.0 tests
-set optimizer_switch=default;
diff --git a/mysql-test/r/subselect_exists2in_costmat.result b/mysql-test/r/subselect_exists2in_costmat.result
deleted file mode 100644
index a46996d9bad..00000000000
--- a/mysql-test/r/subselect_exists2in_costmat.result
+++ /dev/null
@@ -1,103 +0,0 @@
-set @subselect_mat_cost=@@optimizer_switch;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set long_query_time=0.1;
-drop database if exists world;
-set names utf8;
-create database world;
-use world;
-CREATE TABLE Country (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name)
-);
-CREATE TABLE City (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-);
-CREATE TABLE CountryLanguage (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-);
-Make the schema and data more diverse by adding more indexes, nullable
-columns, and NULL data.
-create index SurfaceArea on Country(SurfaceArea);
-create index Language on CountryLanguage(Language);
-create index CityName on City(Name);
-alter table City change population population int(11) null default 0;
-select max(id) from City into @max_city_id;
-insert into City values (@max_city_id + 1,'Kilifarevo','BGR',NULL);
-SELECT COUNT(*) FROM Country;
-COUNT(*)
-239
-SELECT COUNT(*) FROM City;
-COUNT(*)
-4080
-SELECT COUNT(*) FROM CountryLanguage;
-COUNT(*)
-984
-set @@optimizer_switch = 'exists_to_in=on,in_to_exists=on,semijoin=on,materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on';
-
-1. Subquery in a disjunctive WHERE clause of the outer query.
-
-
-Q1.1m:
-MATERIALIZATION: there are too many rows in the outer query
-to be looked up in the inner table.
-EXPLAIN
-SELECT Name FROM Country
-WHERE (EXISTS (select 1 from City where City.Population > 100000 and
-Code = Country) OR
-Name LIKE 'L%') AND
-surfacearea > 1000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country ALL Name,SurfaceArea NULL NULL NULL 239 Using where
-2 MATERIALIZED City ALL Population,Country NULL NULL NULL 4080 Using where
-SELECT Name FROM Country
-WHERE (EXISTS (select 1 from City where City.Population > 100000 and
-Code = Country) OR
-Name LIKE 'L%') AND
-surfacearea > 1000000;
-Name
-Algeria
-Angola
-Argentina
-Australia
-Bolivia
-Brazil
-Egypt
-South Africa
-Ethiopia
-Indonesia
-India
-Iran
-Canada
-Kazakstan
-China
-Colombia
-Congo, The Democratic Republic of the
-Libyan Arab Jamahiriya
-Mali
-Mauritania
-Mexico
-Mongolia
-Niger
-Peru
-Saudi Arabia
-Sudan
-Chad
-Russian Federation
-United States
-drop database world;
-set optimizer_switch=@subselect_mat_cost;
diff --git a/mysql-test/r/subselect_extra.result b/mysql-test/r/subselect_extra.result
deleted file mode 100644
index 73642c09324..00000000000
--- a/mysql-test/r/subselect_extra.result
+++ /dev/null
@@ -1,480 +0,0 @@
-drop table if exists t1,t2,t3,t4;
-drop view if exists v1,v2,v3;
-set @subselect_extra_tmp=@@optimizer_switch;
-set @@optimizer_switch=ifnull(@optimizer_switch_for_subselect_extra_test,
-"semijoin=on,firstmatch=on,loosescan=on,semijoin_with_cache=on,partial_match_rowid_merge=off,partial_match_table_scan=off");
-# From explain.test:
-#
-# Bug#37870: Usage of uninitialized value caused failed assertion.
-#
-create table t1 (dt datetime not null, t time not null);
-create table t2 (dt datetime not null);
-insert into t1 values ('2001-01-01 1:1:1', '1:1:1'),
-('2001-01-01 1:1:1', '1:1:1');
-insert into t2 values ('2001-01-01 1:1:1'), ('2001-01-01 1:1:1');
-flush tables;
-EXPLAIN SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN (SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.dt IS NULL );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY OUTR ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY INNR ALL NULL NULL NULL NULL 2 Using where; FirstMatch(OUTR); Using join buffer (flat, BNL join)
-flush tables;
-SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN (SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.dt IS NULL );
-dt
-flush tables;
-EXPLAIN SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN ( SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.t < '2005-11-13 7:41:31' );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY OUTR ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY INNR ALL NULL NULL NULL NULL 2 Using where; FirstMatch(OUTR); Using join buffer (flat, BNL join)
-flush tables;
-SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN ( SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.t < '2005-11-13 7:41:31' );
-dt
-2001-01-01 01:01:01
-2001-01-01 01:01:01
-drop tables t1, t2;
-# From type_datetime.test:
-#
-# Bug #32694: NOT NULL table field in a subquery produces invalid results
-#
-create table t1 (id int(10) not null, cur_date datetime not null);
-create table t2 (id int(10) not null, cur_date date not null);
-insert into t1 (id, cur_date) values (1, '2007-04-25 18:30:22');
-insert into t2 (id, cur_date) values (1, '2007-04-25');
-explain extended
-select * from t1
-where id in (select id from t1 as x1 where (t1.cur_date is null));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1276 Field or reference 'test.t1.cur_date' of SELECT #2 was resolved in SELECT #1
-Note 1003 select 1 AS `id`,'2007-04-25 18:30:22' AS `cur_date` from (dual) where 0
-select * from t1
-where id in (select id from t1 as x1 where (t1.cur_date is null));
-id cur_date
-explain extended
-select * from t2
-where id in (select id from t2 as x1 where (t2.cur_date is null));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1276 Field or reference 'test.t2.cur_date' of SELECT #2 was resolved in SELECT #1
-Note 1003 select 1 AS `id`,'2007-04-25' AS `cur_date` from (dual) where 0
-select * from t2
-where id in (select id from t2 as x1 where (t2.cur_date is null));
-id cur_date
-insert into t1 (id, cur_date) values (2, '2007-04-26 18:30:22');
-insert into t2 (id, cur_date) values (2, '2007-04-26');
-explain extended
-select * from t1
-where id in (select id from t1 as x1 where (t1.cur_date is null));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 PRIMARY x1 ALL NULL NULL NULL NULL 2 100.00 Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.t1.cur_date' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`t1`.`id` AS `id`,`test`.`t1`.`cur_date` AS `cur_date` from `test`.`t1` semi join (`test`.`t1` `x1`) where `test`.`x1`.`id` = `test`.`t1`.`id` and `test`.`t1`.`cur_date` = 0
-select * from t1
-where id in (select id from t1 as x1 where (t1.cur_date is null));
-id cur_date
-explain extended
-select * from t2
-where id in (select id from t2 as x1 where (t2.cur_date is null));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 PRIMARY x1 ALL NULL NULL NULL NULL 2 100.00 Using where; FirstMatch(t2); Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.t2.cur_date' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`t2`.`id` AS `id`,`test`.`t2`.`cur_date` AS `cur_date` from `test`.`t2` semi join (`test`.`t2` `x1`) where `test`.`x1`.`id` = `test`.`t2`.`id` and `test`.`t2`.`cur_date` = 0
-select * from t2
-where id in (select id from t2 as x1 where (t2.cur_date is null));
-id cur_date
-drop table t1,t2;
-#
-# From group_min_max.test
-#
-create table t1 (
-a1 char(64), a2 char(64), b char(16), c char(16) not null, d char(16), dummy char(64) default ' '
-);
-insert into t1 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4'),
-('d','a','a','a411','xy1'),('d','a','a','b411','xy2'),('d','a','a','c411','xy3'),('d','a','a','d411','xy4'),
-('d','a','b','e412','xy1'),('d','a','b','f412','xy2'),('d','a','b','g412','xy3'),('d','a','b','h412','xy4'),
-('d','b','a','i421','xy1'),('d','b','a','j421','xy2'),('d','b','a','k421','xy3'),('d','b','a','l421','xy4'),
-('d','b','b','m422','xy1'),('d','b','b','n422','xy2'),('d','b','b','o422','xy3'),('d','b','b','p422','xy4'),
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4'),
-('d','a','a','a411','xy1'),('d','a','a','b411','xy2'),('d','a','a','c411','xy3'),('d','a','a','d411','xy4'),
-('d','a','b','e412','xy1'),('d','a','b','f412','xy2'),('d','a','b','g412','xy3'),('d','a','b','h412','xy4'),
-('d','b','a','i421','xy1'),('d','b','a','j421','xy2'),('d','b','a','k421','xy3'),('d','b','a','l421','xy4'),
-('d','b','b','m422','xy1'),('d','b','b','n422','xy2'),('d','b','b','o422','xy3'),('d','b','b','p422','xy4');
-create index idx_t1_0 on t1 (a1);
-create index idx_t1_1 on t1 (a1,a2,b,c);
-create index idx_t1_2 on t1 (a1,a2,b);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-create table t2 (
-a1 char(64), a2 char(64) not null, b char(16), c char(16), d char(16), dummy char(64) default ' '
-);
-insert into t2 select * from t1;
-insert into t2 (a1, a2, b, c, d) values
-('a','a',NULL,'a777','xyz'),('a','a',NULL,'a888','xyz'),('a','a',NULL,'a999','xyz'),
-('a','a','a',NULL,'xyz'),
-('a','a','b',NULL,'xyz'),
-('a','b','a',NULL,'xyz'),
-('c','a',NULL,'c777','xyz'),('c','a',NULL,'c888','xyz'),('c','a',NULL,'c999','xyz'),
-('d','b','b',NULL,'xyz'),
-('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),
-('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),
-('a','a',NULL,'a777','xyz'),('a','a',NULL,'a888','xyz'),('a','a',NULL,'a999','xyz'),
-('a','a','a',NULL,'xyz'),
-('a','a','b',NULL,'xyz'),
-('a','b','a',NULL,'xyz'),
-('c','a',NULL,'c777','xyz'),('c','a',NULL,'c888','xyz'),('c','a',NULL,'c999','xyz'),
-('d','b','b',NULL,'xyz'),
-('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),
-('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz');
-create index idx_t2_0 on t2 (a1);
-create index idx_t2_1 on t2 (a1,a2,b,c);
-create index idx_t2_2 on t2 (a1,a2,b);
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status Table is already up to date
-create table t3 (
-a1 char(1), a2 char(1), b char(1), c char(4) not null, d char(3), dummy char(1) default ' '
-);
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-create index idx_t3_0 on t3 (a1);
-create index idx_t3_1 on t3 (a1,a2,b,c);
-create index idx_t3_2 on t3 (a1,a2,b);
-analyze table t3;
-Table Op Msg_type Msg_text
-test.t3 analyze status Table is already up to date
-explain select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.b) and
-t2.c > 'b1' )
-group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL idx_t1_1 163 NULL 128 Using where; Using index
-2 DEPENDENT SUBQUERY t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-2 DEPENDENT SUBQUERY t3 index NULL idx_t3_1 10 NULL 192 Using where; Using index; FirstMatch(t2); Using join buffer (flat, BNL join)
-select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.b) and
-t2.c > 'b1' )
-group by a1,a2,b;
-a1 a2 b c min(c) max(c)
-a a a a111 a111 d111
-a a b e112 e112 h112
-a b a i121 i121 l121
-a b b m122 m122 p122
-b a a a211 a211 d211
-b a b e212 e212 h212
-b b a i221 i221 l221
-b b b m222 m222 p222
-c a a a311 a311 d311
-c a b e312 e312 h312
-c b a i321 i321 l321
-c b b m322 m322 p322
-d a a a411 a411 d411
-d a b e412 e412 h412
-d b a i421 i421 l421
-d b b m422 m422 p422
-explain select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.c) and
-t2.c > 'b1' )
-group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL idx_t1_1 163 NULL 128 Using where; Using index
-2 DEPENDENT SUBQUERY t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-2 DEPENDENT SUBQUERY t3 index NULL idx_t3_1 10 NULL 192 Using where; Using index; FirstMatch(t2); Using join buffer (flat, BNL join)
-select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.c) and
-t2.c > 'b1' )
-group by a1,a2,b;
-a1 a2 b c min(c) max(c)
-a a a a111 a111 d111
-a a b e112 e112 h112
-a b a i121 i121 l121
-a b b m122 m122 p122
-b a a a211 a211 d211
-b a b e212 e212 h212
-b b a i221 i221 l221
-b b b m222 m222 p222
-c a a a311 a311 d311
-c a b e312 e312 h312
-c b a i321 i321 l321
-c b b m322 m322 o322
-d a a a411 a411 d411
-d a b e412 e412 h412
-d b a i421 i421 l421
-d b b m422 m422 o422
-drop table t1, t2, t3;
-#
-# From group_by.test
-#
-# Bug #21174: Index degrades sort performance and
-# optimizer does not honor IGNORE INDEX.
-# a.k.a WL3527.
-#
-CREATE TABLE t1 (a INT, b INT,
-PRIMARY KEY (a),
-KEY i2(a,b));
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8);
-INSERT INTO t1 SELECT a + 8,b FROM t1;
-INSERT INTO t1 SELECT a + 16,b FROM t1;
-INSERT INTO t1 SELECT a + 32,b FROM t1;
-INSERT INTO t1 SELECT a + 64,b FROM t1;
-INSERT INTO t1 SELECT a + 128,b FROM t1 limit 16;
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-EXPLAIN SELECT 1 FROM t1 WHERE a IN
-(SELECT a FROM t1 USE INDEX (i2) IGNORE INDEX (i2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index PRIMARY,i2 PRIMARY 4 NULL 144 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 144
-CREATE TABLE t2 (a INT, b INT, KEY(a));
-INSERT INTO t2 VALUES (1, 1), (2, 2), (3,3), (4,4);
-EXPLAIN SELECT a, SUM(b) FROM t2 GROUP BY a LIMIT 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 5 NULL 2
-EXPLAIN SELECT a, SUM(b) FROM t2 IGNORE INDEX (a) GROUP BY a LIMIT 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 Using temporary; Using filesort
-EXPLAIN SELECT 1 FROM t2 WHERE a IN
-(SELECT a FROM t1 USE INDEX (i2) IGNORE INDEX (i2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index a a 5 NULL 4 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 144
-DROP TABLE t1, t2;
-#
-# From derived_view.test
-#
-set @tmp_subselect_extra_derived=@@optimizer_switch;
-set optimizer_switch='derived_merge=on,derived_with_keys=on';
-#
-# LP bug #806504: right join over a view/derived table
-#
-CREATE TABLE t1 (a int, b int) ;
-INSERT INTO t1 VALUES (0,0);
-CREATE TABLE t2 (a int) ;
-INSERT INTO t2 VALUES (0), (0);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM t2 RIGHT JOIN (SELECT * FROM t1) AS t ON t.a != 0
-WHERE t.a IN (SELECT b FROM t1);
-a a b
-NULL 0 0
-EXPLAIN EXTENDED
-SELECT * FROM t2 RIGHT JOIN (SELECT * FROM t1) AS t ON t.a != 0
-WHERE t.a IN (SELECT b FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,0 AS `a`,0 AS `b` from `test`.`t2` semi join (dual) where 1
-SELECT * FROM t2 RIGHT JOIN v1 AS t ON t.a != 0
-WHERE t.a IN (SELECT b FROM t1);
-a a b
-NULL 0 0
-EXPLAIN EXTENDED
-SELECT * FROM t2 RIGHT JOIN v1 AS t ON t.a != 0
-WHERE t.a IN (SELECT b FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a`,0 AS `a`,0 AS `b` from `test`.`t2` semi join (dual) where 1
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# LP bug #793448: materialized view accessed by two-component key
-#
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (9,3), (2,5);
-CREATE TABLE t2 (a int, b int);
-INSERT INTO t2 VALUES (9,3), (3,7), (9,1), (2,5), (2,4), (3,8);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (10,3), (9,7), (9,1), (2,4);
-CREATE VIEW v1(a,b) AS SELECT a, MAX(b) FROM t2 GROUP BY a;
-CREATE VIEW v2(a,b) AS SELECT a,b FROM t2 UNION SELECT a,b FROM t3;
-SELECT * FROM v1;
-a b
-2 5
-3 8
-9 3
-SELECT a FROM t1 WHERE (a,b) IN (SELECT * FROM v1);
-a
-9
-2
-EXPLAIN
-SELECT a FROM t1 WHERE (a,b) IN (SELECT * FROM v1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY <derived3> ref key0 key0 10 test.t1.a,test.t1.b 2 FirstMatch(t1)
-3 DERIVED t2 ALL NULL NULL NULL NULL 6 Using temporary; Using filesort
-SELECT * FROM v2;
-a b
-9 3
-3 7
-9 1
-2 5
-2 4
-3 8
-10 3
-9 7
-SELECT a FROM t1 WHERE (a,b) IN (SELECT * FROM v2);
-a
-9
-2
-EXPLAIN
-SELECT a FROM t1 WHERE (a,b) IN (SELECT * FROM v2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY <derived3> ref key0 key0 10 test.t1.a,test.t1.b 2 FirstMatch(t1)
-3 DERIVED t2 ALL NULL NULL NULL NULL 6
-4 UNION t3 ALL NULL NULL NULL NULL 4
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL
-DROP VIEW v1,v2;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #874006: materialized view used in IN subquery
-#
-CREATE TABLE t3 (a int NOT NULL, b varchar(1), c varchar(1));
-INSERT INTO t3 VALUES (19,NULL,NULL), (20,'r','r');
-CREATE TABLE t1 (a int, b varchar(1) , c varchar(1));
-INSERT INTO t1 VALUES (1,NULL,NULL), (5,'r','r'), (7,'y','y');
-CREATE TABLE t2 (a int NOT NULL , b int, c varchar(1));
-INSERT INTO t2 VALUES (4,3,'r');
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-SET SESSION optimizer_switch='derived_with_keys=off';
-EXPLAIN
-SELECT * FROM t3
-WHERE t3.b IN (SELECT v1.b FROM v1, t2
-WHERE t2.c = v1.c AND t2.c = v1.b AND v1.b = t3.c);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 3 Using where; FirstMatch(t3); Using join buffer (flat, BNL join)
-3 DERIVED t1 ALL NULL NULL NULL NULL 3
-SELECT * FROM t3
-WHERE t3.b IN (SELECT v1.b FROM v1, t2
-WHERE t2.c = v1.c AND t2.c = v1.b AND v1.b = t3.c);
-a b c
-20 r r
-SET SESSION optimizer_switch='derived_with_keys=on';
-EXPLAIN
-SELECT * FROM t3
-WHERE t3.b IN (SELECT v1.b FROM v1, t2
-WHERE t2.c = v1.c AND t2.c = v1.b AND v1.b = t3.c);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-1 PRIMARY <derived3> ref key1 key1 8 const,const 0 Start temporary
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where; End temporary; Using join buffer (flat, BNL join)
-3 DERIVED t1 ALL NULL NULL NULL NULL 3
-SELECT * FROM t3
-WHERE t3.b IN (SELECT v1.b FROM v1, t2
-WHERE t2.c = v1.c AND t2.c = v1.b AND v1.b = t3.c);
-a b c
-20 r r
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #873263: materialized view used in correlated IN subquery
-#
-CREATE TABLE t1 (a int, b int) ;
-INSERT INTO t1 VALUES (5,4), (9,8);
-CREATE TABLE t2 (a int, b int) ;
-INSERT INTO t2 VALUES (4,5), (5,1);
-CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
-SET SESSION optimizer_switch='derived_with_keys=on';
-EXPLAIN
-SELECT * FROM t1 WHERE t1.b IN (SELECT v2.a FROM v2 WHERE v2.b = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY <derived3> ref key0 key0 10 test.t1.b,test.t1.a 2 FirstMatch(t1)
-3 DERIVED t2 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 WHERE t1.b IN (SELECT v2.a FROM v2 WHERE v2.b = t1.a);
-a b
-5 4
-DROP VIEW v2;
-DROP TABLE t1,t2;
-set optimizer_switch= @tmp_subselect_extra_derived;
diff --git a/mysql-test/r/subselect_extra_no_semijoin.result b/mysql-test/r/subselect_extra_no_semijoin.result
deleted file mode 100644
index fc8d5759945..00000000000
--- a/mysql-test/r/subselect_extra_no_semijoin.result
+++ /dev/null
@@ -1,484 +0,0 @@
-set @subselect_extra_no_sj_tmp=@@optimizer_switch;
-set @optimizer_switch_for_subselect_extra_test='semijoin=off,firstmatch=off,loosescan=off,semijoin_with_cache=off';
-drop table if exists t1,t2,t3,t4;
-drop view if exists v1,v2,v3;
-set @subselect_extra_tmp=@@optimizer_switch;
-set @@optimizer_switch=ifnull(@optimizer_switch_for_subselect_extra_test,
-"semijoin=on,firstmatch=on,loosescan=on,semijoin_with_cache=on,partial_match_rowid_merge=off,partial_match_table_scan=off");
-# From explain.test:
-#
-# Bug#37870: Usage of uninitialized value caused failed assertion.
-#
-create table t1 (dt datetime not null, t time not null);
-create table t2 (dt datetime not null);
-insert into t1 values ('2001-01-01 1:1:1', '1:1:1'),
-('2001-01-01 1:1:1', '1:1:1');
-insert into t2 values ('2001-01-01 1:1:1'), ('2001-01-01 1:1:1');
-flush tables;
-EXPLAIN SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN (SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.dt IS NULL );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY OUTR ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY INNR ALL NULL NULL NULL NULL 2 Using where
-flush tables;
-SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN (SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.dt IS NULL );
-dt
-flush tables;
-EXPLAIN SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN ( SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.t < '2005-11-13 7:41:31' );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY OUTR ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY INNR ALL NULL NULL NULL NULL 2 Using where
-flush tables;
-SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN ( SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.t < '2005-11-13 7:41:31' );
-dt
-2001-01-01 01:01:01
-2001-01-01 01:01:01
-drop tables t1, t2;
-# From type_datetime.test:
-#
-# Bug #32694: NOT NULL table field in a subquery produces invalid results
-#
-create table t1 (id int(10) not null, cur_date datetime not null);
-create table t2 (id int(10) not null, cur_date date not null);
-insert into t1 (id, cur_date) values (1, '2007-04-25 18:30:22');
-insert into t2 (id, cur_date) values (1, '2007-04-25');
-explain extended
-select * from t1
-where id in (select id from t1 as x1 where (t1.cur_date is null));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1276 Field or reference 'test.t1.cur_date' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 1 AS `id`,'2007-04-25 18:30:22' AS `cur_date` from dual where <expr_cache><1>(<in_optimizer>(1,<exists>(/* select#2 */ select `test`.`x1`.`id` from `test`.`t1` `x1` where 0)))
-select * from t1
-where id in (select id from t1 as x1 where (t1.cur_date is null));
-id cur_date
-explain extended
-select * from t2
-where id in (select id from t2 as x1 where (t2.cur_date is null));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1276 Field or reference 'test.t2.cur_date' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 1 AS `id`,'2007-04-25' AS `cur_date` from dual where <expr_cache><1>(<in_optimizer>(1,<exists>(/* select#2 */ select `test`.`x1`.`id` from `test`.`t2` `x1` where 0)))
-select * from t2
-where id in (select id from t2 as x1 where (t2.cur_date is null));
-id cur_date
-insert into t1 (id, cur_date) values (2, '2007-04-26 18:30:22');
-insert into t2 (id, cur_date) values (2, '2007-04-26');
-explain extended
-select * from t1
-where id in (select id from t1 as x1 where (t1.cur_date is null));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY x1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.cur_date' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`cur_date` AS `cur_date` from `test`.`t1` where <expr_cache><`test`.`t1`.`id`,`test`.`t1`.`cur_date`>(<in_optimizer>(`test`.`t1`.`id`,<exists>(/* select#2 */ select `test`.`x1`.`id` from `test`.`t1` `x1` where `test`.`t1`.`cur_date` = 0 and <cache>(`test`.`t1`.`id`) = `test`.`x1`.`id`)))
-select * from t1
-where id in (select id from t1 as x1 where (t1.cur_date is null));
-id cur_date
-explain extended
-select * from t2
-where id in (select id from t2 as x1 where (t2.cur_date is null));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY x1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t2.cur_date' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t2`.`id` AS `id`,`test`.`t2`.`cur_date` AS `cur_date` from `test`.`t2` where <expr_cache><`test`.`t2`.`id`,`test`.`t2`.`cur_date`>(<in_optimizer>(`test`.`t2`.`id`,<exists>(/* select#2 */ select `test`.`x1`.`id` from `test`.`t2` `x1` where `test`.`t2`.`cur_date` = 0 and <cache>(`test`.`t2`.`id`) = `test`.`x1`.`id`)))
-select * from t2
-where id in (select id from t2 as x1 where (t2.cur_date is null));
-id cur_date
-drop table t1,t2;
-#
-# From group_min_max.test
-#
-create table t1 (
-a1 char(64), a2 char(64), b char(16), c char(16) not null, d char(16), dummy char(64) default ' '
-);
-insert into t1 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4'),
-('d','a','a','a411','xy1'),('d','a','a','b411','xy2'),('d','a','a','c411','xy3'),('d','a','a','d411','xy4'),
-('d','a','b','e412','xy1'),('d','a','b','f412','xy2'),('d','a','b','g412','xy3'),('d','a','b','h412','xy4'),
-('d','b','a','i421','xy1'),('d','b','a','j421','xy2'),('d','b','a','k421','xy3'),('d','b','a','l421','xy4'),
-('d','b','b','m422','xy1'),('d','b','b','n422','xy2'),('d','b','b','o422','xy3'),('d','b','b','p422','xy4'),
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4'),
-('d','a','a','a411','xy1'),('d','a','a','b411','xy2'),('d','a','a','c411','xy3'),('d','a','a','d411','xy4'),
-('d','a','b','e412','xy1'),('d','a','b','f412','xy2'),('d','a','b','g412','xy3'),('d','a','b','h412','xy4'),
-('d','b','a','i421','xy1'),('d','b','a','j421','xy2'),('d','b','a','k421','xy3'),('d','b','a','l421','xy4'),
-('d','b','b','m422','xy1'),('d','b','b','n422','xy2'),('d','b','b','o422','xy3'),('d','b','b','p422','xy4');
-create index idx_t1_0 on t1 (a1);
-create index idx_t1_1 on t1 (a1,a2,b,c);
-create index idx_t1_2 on t1 (a1,a2,b);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-create table t2 (
-a1 char(64), a2 char(64) not null, b char(16), c char(16), d char(16), dummy char(64) default ' '
-);
-insert into t2 select * from t1;
-insert into t2 (a1, a2, b, c, d) values
-('a','a',NULL,'a777','xyz'),('a','a',NULL,'a888','xyz'),('a','a',NULL,'a999','xyz'),
-('a','a','a',NULL,'xyz'),
-('a','a','b',NULL,'xyz'),
-('a','b','a',NULL,'xyz'),
-('c','a',NULL,'c777','xyz'),('c','a',NULL,'c888','xyz'),('c','a',NULL,'c999','xyz'),
-('d','b','b',NULL,'xyz'),
-('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),
-('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),
-('a','a',NULL,'a777','xyz'),('a','a',NULL,'a888','xyz'),('a','a',NULL,'a999','xyz'),
-('a','a','a',NULL,'xyz'),
-('a','a','b',NULL,'xyz'),
-('a','b','a',NULL,'xyz'),
-('c','a',NULL,'c777','xyz'),('c','a',NULL,'c888','xyz'),('c','a',NULL,'c999','xyz'),
-('d','b','b',NULL,'xyz'),
-('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),('e','a','a',NULL,'xyz'),
-('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz'),('e','a','b',NULL,'xyz');
-create index idx_t2_0 on t2 (a1);
-create index idx_t2_1 on t2 (a1,a2,b,c);
-create index idx_t2_2 on t2 (a1,a2,b);
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status Table is already up to date
-create table t3 (
-a1 char(1), a2 char(1), b char(1), c char(4) not null, d char(3), dummy char(1) default ' '
-);
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-insert into t3 (a1, a2, b, c, d) values
-('a','a','a','a111','xy1'),('a','a','a','b111','xy2'),('a','a','a','c111','xy3'),('a','a','a','d111','xy4'),
-('a','a','b','e112','xy1'),('a','a','b','f112','xy2'),('a','a','b','g112','xy3'),('a','a','b','h112','xy4'),
-('a','b','a','i121','xy1'),('a','b','a','j121','xy2'),('a','b','a','k121','xy3'),('a','b','a','l121','xy4'),
-('a','b','b','m122','xy1'),('a','b','b','n122','xy2'),('a','b','b','o122','xy3'),('a','b','b','p122','xy4'),
-('b','a','a','a211','xy1'),('b','a','a','b211','xy2'),('b','a','a','c211','xy3'),('b','a','a','d211','xy4'),
-('b','a','b','e212','xy1'),('b','a','b','f212','xy2'),('b','a','b','g212','xy3'),('b','a','b','h212','xy4'),
-('b','b','a','i221','xy1'),('b','b','a','j221','xy2'),('b','b','a','k221','xy3'),('b','b','a','l221','xy4'),
-('b','b','b','m222','xy1'),('b','b','b','n222','xy2'),('b','b','b','o222','xy3'),('b','b','b','p222','xy4'),
-('c','a','a','a311','xy1'),('c','a','a','b311','xy2'),('c','a','a','c311','xy3'),('c','a','a','d311','xy4'),
-('c','a','b','e312','xy1'),('c','a','b','f312','xy2'),('c','a','b','g312','xy3'),('c','a','b','h312','xy4'),
-('c','b','a','i321','xy1'),('c','b','a','j321','xy2'),('c','b','a','k321','xy3'),('c','b','a','l321','xy4'),
-('c','b','b','m322','xy1'),('c','b','b','n322','xy2'),('c','b','b','o322','xy3'),('c','b','b','p322','xy4');
-create index idx_t3_0 on t3 (a1);
-create index idx_t3_1 on t3 (a1,a2,b,c);
-create index idx_t3_2 on t3 (a1,a2,b);
-analyze table t3;
-Table Op Msg_type Msg_text
-test.t3 analyze status Table is already up to date
-explain select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.b) and
-t2.c > 'b1' )
-group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL idx_t1_1 163 NULL 128 Using where; Using index
-2 DEPENDENT SUBQUERY t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-3 DEPENDENT SUBQUERY t3 index NULL idx_t3_1 10 NULL 192 Using where; Using index
-select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.b) and
-t2.c > 'b1' )
-group by a1,a2,b;
-a1 a2 b c min(c) max(c)
-a a a a111 a111 d111
-a a b e112 e112 h112
-a b a i121 i121 l121
-a b b m122 m122 p122
-b a a a211 a211 d211
-b a b e212 e212 h212
-b b a i221 i221 l221
-b b b m222 m222 p222
-c a a a311 a311 d311
-c a b e312 e312 h312
-c b a i321 i321 l321
-c b b m322 m322 p322
-d a a a411 a411 d411
-d a b e412 e412 h412
-d b a i421 i421 l421
-d b b m422 m422 p422
-explain select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.c) and
-t2.c > 'b1' )
-group by a1,a2,b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL idx_t1_1 163 NULL 128 Using where; Using index
-2 DEPENDENT SUBQUERY t2 index NULL idx_t2_1 163 NULL 164 Using where; Using index
-3 DEPENDENT SUBQUERY t3 index NULL idx_t3_1 10 NULL 192 Using where; Using index
-select a1,a2,b,c,min(c), max(c) from t1
-where exists ( select * from t2
-where t2.c in (select c from t3 where t3.c > t1.c) and
-t2.c > 'b1' )
-group by a1,a2,b;
-a1 a2 b c min(c) max(c)
-a a a a111 a111 d111
-a a b e112 e112 h112
-a b a i121 i121 l121
-a b b m122 m122 p122
-b a a a211 a211 d211
-b a b e212 e212 h212
-b b a i221 i221 l221
-b b b m222 m222 p222
-c a a a311 a311 d311
-c a b e312 e312 h312
-c b a i321 i321 l321
-c b b m322 m322 o322
-d a a a411 a411 d411
-d a b e412 e412 h412
-d b a i421 i421 l421
-d b b m422 m422 o422
-drop table t1, t2, t3;
-#
-# From group_by.test
-#
-# Bug #21174: Index degrades sort performance and
-# optimizer does not honor IGNORE INDEX.
-# a.k.a WL3527.
-#
-CREATE TABLE t1 (a INT, b INT,
-PRIMARY KEY (a),
-KEY i2(a,b));
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8);
-INSERT INTO t1 SELECT a + 8,b FROM t1;
-INSERT INTO t1 SELECT a + 16,b FROM t1;
-INSERT INTO t1 SELECT a + 32,b FROM t1;
-INSERT INTO t1 SELECT a + 64,b FROM t1;
-INSERT INTO t1 SELECT a + 128,b FROM t1 limit 16;
-ANALYZE TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-EXPLAIN SELECT 1 FROM t1 WHERE a IN
-(SELECT a FROM t1 USE INDEX (i2) IGNORE INDEX (i2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 144 Using where; Using index
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 144
-CREATE TABLE t2 (a INT, b INT, KEY(a));
-INSERT INTO t2 VALUES (1, 1), (2, 2), (3,3), (4,4);
-EXPLAIN SELECT a, SUM(b) FROM t2 GROUP BY a LIMIT 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 index NULL a 5 NULL 2
-EXPLAIN SELECT a, SUM(b) FROM t2 IGNORE INDEX (a) GROUP BY a LIMIT 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 4 Using temporary; Using filesort
-EXPLAIN SELECT 1 FROM t2 WHERE a IN
-(SELECT a FROM t1 USE INDEX (i2) IGNORE INDEX (i2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index NULL a 5 NULL 4 Using where; Using index
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 144
-DROP TABLE t1, t2;
-#
-# From derived_view.test
-#
-set @tmp_subselect_extra_derived=@@optimizer_switch;
-set optimizer_switch='derived_merge=on,derived_with_keys=on';
-#
-# LP bug #806504: right join over a view/derived table
-#
-CREATE TABLE t1 (a int, b int) ;
-INSERT INTO t1 VALUES (0,0);
-CREATE TABLE t2 (a int) ;
-INSERT INTO t2 VALUES (0), (0);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM t2 RIGHT JOIN (SELECT * FROM t1) AS t ON t.a != 0
-WHERE t.a IN (SELECT b FROM t1);
-a a b
-NULL 0 0
-EXPLAIN EXTENDED
-SELECT * FROM t2 RIGHT JOIN (SELECT * FROM t1) AS t ON t.a != 0
-WHERE t.a IN (SELECT b FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,0 AS `a`,0 AS `b` from `test`.`t2` where <expr_cache><0>(<in_optimizer>(0,<exists>(/* select#3 */ select 0 from dual where <cache>(0) = 0)))
-SELECT * FROM t2 RIGHT JOIN v1 AS t ON t.a != 0
-WHERE t.a IN (SELECT b FROM t1);
-a a b
-NULL 0 0
-EXPLAIN EXTENDED
-SELECT * FROM t2 RIGHT JOIN v1 AS t ON t.a != 0
-WHERE t.a IN (SELECT b FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,0 AS `a`,0 AS `b` from `test`.`t2` where <expr_cache><0>(<in_optimizer>(0,<exists>(/* select#2 */ select 0 from dual where <cache>(0) = 0)))
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# LP bug #793448: materialized view accessed by two-component key
-#
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (9,3), (2,5);
-CREATE TABLE t2 (a int, b int);
-INSERT INTO t2 VALUES (9,3), (3,7), (9,1), (2,5), (2,4), (3,8);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (10,3), (9,7), (9,1), (2,4);
-CREATE VIEW v1(a,b) AS SELECT a, MAX(b) FROM t2 GROUP BY a;
-CREATE VIEW v2(a,b) AS SELECT a,b FROM t2 UNION SELECT a,b FROM t3;
-SELECT * FROM v1;
-a b
-2 5
-3 8
-9 3
-SELECT a FROM t1 WHERE (a,b) IN (SELECT * FROM v1);
-a
-9
-2
-EXPLAIN
-SELECT a FROM t1 WHERE (a,b) IN (SELECT * FROM v1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY <derived3> index_subquery key0 key0 10 func,func 2 Using where
-3 DERIVED t2 ALL NULL NULL NULL NULL 6 Using temporary; Using filesort
-SELECT * FROM v2;
-a b
-9 3
-3 7
-9 1
-2 5
-2 4
-3 8
-10 3
-9 7
-SELECT a FROM t1 WHERE (a,b) IN (SELECT * FROM v2);
-a
-9
-2
-EXPLAIN
-SELECT a FROM t1 WHERE (a,b) IN (SELECT * FROM v2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY <derived3> index_subquery key0 key0 10 func,func 2 Using where
-3 DERIVED t2 ALL NULL NULL NULL NULL 6
-4 UNION t3 ALL NULL NULL NULL NULL 4
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL
-DROP VIEW v1,v2;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #874006: materialized view used in IN subquery
-#
-CREATE TABLE t3 (a int NOT NULL, b varchar(1), c varchar(1));
-INSERT INTO t3 VALUES (19,NULL,NULL), (20,'r','r');
-CREATE TABLE t1 (a int, b varchar(1) , c varchar(1));
-INSERT INTO t1 VALUES (1,NULL,NULL), (5,'r','r'), (7,'y','y');
-CREATE TABLE t2 (a int NOT NULL , b int, c varchar(1));
-INSERT INTO t2 VALUES (4,3,'r');
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-SET SESSION optimizer_switch='derived_with_keys=off';
-EXPLAIN
-SELECT * FROM t3
-WHERE t3.b IN (SELECT v1.b FROM v1, t2
-WHERE t2.c = v1.c AND t2.c = v1.b AND v1.b = t3.c);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY <derived3> ALL NULL NULL NULL NULL 3 Using where
-3 DERIVED t1 ALL NULL NULL NULL NULL 3 Using where
-SELECT * FROM t3
-WHERE t3.b IN (SELECT v1.b FROM v1, t2
-WHERE t2.c = v1.c AND t2.c = v1.b AND v1.b = t3.c);
-a b c
-20 r r
-SET SESSION optimizer_switch='derived_with_keys=on';
-EXPLAIN
-SELECT * FROM t3
-WHERE t3.b IN (SELECT v1.b FROM v1, t2
-WHERE t2.c = v1.c AND t2.c = v1.b AND v1.b = t3.c);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY <derived3> ref key1 key1 8 const,const 0 Using where
-3 DERIVED t1 ALL NULL NULL NULL NULL 3 Using where
-SELECT * FROM t3
-WHERE t3.b IN (SELECT v1.b FROM v1, t2
-WHERE t2.c = v1.c AND t2.c = v1.b AND v1.b = t3.c);
-a b c
-20 r r
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# LP bug #873263: materialized view used in correlated IN subquery
-#
-CREATE TABLE t1 (a int, b int) ;
-INSERT INTO t1 VALUES (5,4), (9,8);
-CREATE TABLE t2 (a int, b int) ;
-INSERT INTO t2 VALUES (4,5), (5,1);
-CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
-SET SESSION optimizer_switch='derived_with_keys=on';
-EXPLAIN
-SELECT * FROM t1 WHERE t1.b IN (SELECT v2.a FROM v2 WHERE v2.b = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY <derived3> ref key0 key0 5 test.t1.a 2 Using where
-3 DERIVED t2 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 WHERE t1.b IN (SELECT v2.a FROM v2 WHERE v2.b = t1.a);
-a b
-5 4
-DROP VIEW v2;
-DROP TABLE t1,t2;
-set optimizer_switch= @tmp_subselect_extra_derived;
-set optimizer_switch= @subselect_extra_no_sj_tmp;
-set @optimizer_switch_for_subselect_extra_test=null;
diff --git a/mysql-test/r/subselect_gis.result b/mysql-test/r/subselect_gis.result
deleted file mode 100644
index 34ab7748656..00000000000
--- a/mysql-test/r/subselect_gis.result
+++ /dev/null
@@ -1,8 +0,0 @@
-drop table if exists t1;
-create table t1(City VARCHAR(30),Location geometry);
-insert into t1 values("Paris",GeomFromText('POINT(2.33 48.87)'));
-select City from t1 where (select
-intersects(GeomFromText(AsText(Location)),GeomFromText('Polygon((2 50, 2.5
-50, 2.5 47, 2 47, 2 50))'))=0);
-City
-drop table t1;
diff --git a/mysql-test/r/subselect_innodb.result b/mysql-test/r/subselect_innodb.result
deleted file mode 100644
index ec7f2c0a3d5..00000000000
--- a/mysql-test/r/subselect_innodb.result
+++ /dev/null
@@ -1,617 +0,0 @@
-set @subselect_innodb_tmp=@@optimizer_switch;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-drop table if exists t1,t2,t3;
-CREATE TABLE t1
-(
-FOLDERID VARCHAR(32)BINARY NOT NULL
-, FOLDERNAME VARCHAR(255)BINARY NOT NULL
-, CREATOR VARCHAR(255)BINARY
-, CREATED TIMESTAMP NOT NULL
-, DESCRIPTION VARCHAR(255)BINARY
-, FOLDERTYPE INTEGER NOT NULL
-, MODIFIED TIMESTAMP
-, MODIFIER VARCHAR(255)BINARY
-, FOLDERSIZE INTEGER NOT NULL
-, PARENTID VARCHAR(32)BINARY
-, REPID VARCHAR(32)BINARY
-, ORIGINATOR INTEGER
-, PRIMARY KEY ( FOLDERID )
-) ENGINE=InnoDB;
-CREATE INDEX FFOLDERID_IDX ON t1 (FOLDERID);
-CREATE INDEX CMFLDRPARNT_IDX ON t1 (PARENTID);
-INSERT INTO t1 VALUES("0c9aab05b15048c59bc35c8461507deb", "System", "System", "2003-06-05 16:30:00", "The system content repository folder.", "3", "2003-06-05 16:30:00", "System", "0", NULL, "9c9aab05b15048c59bc35c8461507deb", "1");
-INSERT INTO t1 VALUES("2f6161e879db43c1a5b82c21ddc49089", "Default", "System", "2003-06-09 10:52:02", "The default content repository folder.", "3", "2003-06-05 16:30:00", "System", "0", NULL, "03eea05112b845949f3fd03278b5fe43", "1");
-INSERT INTO t1 VALUES("c373e9f5ad0791724315444553544200", "AddDocumentTest", "admin", "2003-06-09 10:51:25", "Movie Reviews", "0", "2003-06-09 10:51:25", "admin", "0", "2f6161e879db43c1a5b82c21ddc49089", "03eea05112b845949f3fd03278b5fe43", NULL);
-SELECT 'c373e9f5ad0791a0dab5444553544200' IN(SELECT t1.FOLDERID FROM t1 WHERE t1.PARENTID='2f6161e879db43c1a5b82c21ddc49089' AND t1.FOLDERNAME = 'Level1');
-'c373e9f5ad0791a0dab5444553544200' IN(SELECT t1.FOLDERID FROM t1 WHERE t1.PARENTID='2f6161e879db43c1a5b82c21ddc49089' AND t1.FOLDERNAME = 'Level1')
-0
-drop table t1;
-create table t1 (a int) engine=innodb;
-create table t2 (a int) engine=innodb;
-create table t3 (a int) engine=innodb;
-insert into t1 values (1),(2),(3),(4);
-insert into t2 values (10),(20),(30),(40);
-insert into t3 values (1),(2),(10),(50);
-select a from t3 where t3.a in (select a from t1 where a <= 3 union select * from t2 where a <= 30);
-a
-1
-2
-10
-drop table t1,t2,t3;
-CREATE TABLE t1 (
-processor_id INTEGER NOT NULL,
-PRIMARY KEY (processor_id)
-) ENGINE=InnoDB;
-CREATE TABLE t3 (
-yod_id BIGINT UNSIGNED AUTO_INCREMENT NOT NULL,
-login_processor INTEGER UNSIGNED ,
-PRIMARY KEY (yod_id)
-) ENGINE=InnoDB;
-CREATE TABLE t2 (
-processor_id INTEGER NOT NULL,
-yod_id BIGINT UNSIGNED NOT NULL,
-PRIMARY KEY (processor_id, yod_id),
-INDEX (processor_id),
-INDEX (yod_id),
-FOREIGN KEY (processor_id) REFERENCES t1(processor_id),
-FOREIGN KEY (yod_id) REFERENCES t3(yod_id)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t3 VALUES (1,1),(2,2),(3,3);
-INSERT INTO t2 VALUES (1,1),(2,2),(3,3);
-SELECT distinct p1.processor_id, (SELECT y.yod_id FROM t1 p2, t2 y WHERE p2.processor_id = p1.processor_id and p2.processor_id = y.processor_id) FROM t1 p1;
-processor_id (SELECT y.yod_id FROM t1 p2, t2 y WHERE p2.processor_id = p1.processor_id and p2.processor_id = y.processor_id)
-1 1
-2 2
-3 3
-drop table t2,t1,t3;
-CREATE TABLE t1 (
-id int(11) NOT NULL default '0',
-b int(11) default NULL,
-c char(3) default NULL,
-PRIMARY KEY (id),
-KEY t2i1 (b)
-) ENGINE=innodb DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES (0,0,'GPL'),(1,0,'GPL'),(2,1,'GPL'),(3,2,'GPL');
-CREATE TABLE t2 (
-id int(11) NOT NULL default '0',
-b int(11) default NULL,
-c char(3) default NULL,
-PRIMARY KEY (id),
-KEY t2i (b)
-) ENGINE=innodb DEFAULT CHARSET=latin1;
-INSERT INTO t2 VALUES (0,0,'GPL'),(1,0,'GPL'),(2,1,'GPL'),(3,2,'GPL');
-select (select max(id) from t2 where b=1 group by b) as x,b from t1 where b=1;
-x b
-2 1
-drop table t1,t2;
-create table t1 (id int not null, value char(255), primary key(id)) engine=innodb;
-create table t2 (id int not null, value char(255)) engine=innodb;
-insert into t1 values (1,'a'),(2,'b');
-insert into t2 values (1,'z'),(2,'x');
-select t2.id,t2.value,(select t1.value from t1 where t1.id=t2.id) from t2;
-id value (select t1.value from t1 where t1.id=t2.id)
-1 z a
-2 x b
-select t2.id,t2.value,(select t1.value from t1 where t1.id=t2.id) from t2;
-id value (select t1.value from t1 where t1.id=t2.id)
-1 z a
-2 x b
-drop table t1,t2;
-create table t1 (a int, b int) engine=innodb;
-insert into t1 values (1,2), (1,3), (2,3), (2,4), (2,5), (3,4), (4,5), (4,100);
-create table t2 (a int) engine=innodb;
-insert into t2 values (1),(2),(3),(4);
-select a, sum(b) as b from t1 group by a having b > (select max(a) from t2);
-a b
-1 5
-2 12
-4 105
-drop table t1, t2;
-CREATE TABLE `t1` ( `unit` varchar(50) NOT NULL default '', `ingredient` varchar(50) NOT NULL default '') ENGINE=InnoDB DEFAULT CHARSET=latin1;
-CREATE TABLE `t2` ( `ingredient` varchar(50) NOT NULL default '', `unit` varchar(50) NOT NULL default '', PRIMARY KEY (ingredient, unit)) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO `t1` VALUES ('xx','yy');
-INSERT INTO `t2` VALUES ('yy','xx');
-SELECT R.unit, R.ingredient FROM t1 R WHERE R.ingredient IN (SELECT N.ingredient FROM t2 N WHERE N.unit = R.unit);
-unit ingredient
-xx yy
-drop table t1, t2;
-CREATE TABLE t1 (
-id INT NOT NULL auto_increment,
-date1 DATE, coworkerid INT,
-description VARCHAR(255),
-sum_used DOUBLE,
-sum_remaining DOUBLE,
-comments VARCHAR(255),
-PRIMARY KEY(id)
-) engine=innodb;
-insert into t1 values (NULL, '1999-01-01', 1,'test', 22, 33, 'comment'), (NULL, '1999-01-01', 1,'test', 22, 33, 'comment'), (NULL, '1999-01-01', 1,'test', 22, 33, 'comment'), (NULL, '1998-01-01', 1,'test', 22, 33, 'comment'), (NULL, '1998-01-01', 1,'test', 22, 33, 'comment'), (NULL, '2004-01-01', 1,'test', 22, 33, 'comment'), (NULL, '2004-01-01', 1,'test', 22, 33, 'comment');
-SELECT DISTINCT
-(SELECT sum(sum_used) FROM t1 WHERE sum_used > 0 AND year(date1) <= '2004') as somallontvangsten,
-(SELECT sum(sum_used) FROM t1 WHERE sum_used < 0 AND year(date1) <= '2004') as somalluitgaven
-FROM t1;
-somallontvangsten somalluitgaven
-154 NULL
-select * from t1;
-id date1 coworkerid description sum_used sum_remaining comments
-1 1999-01-01 1 test 22 33 comment
-2 1999-01-01 1 test 22 33 comment
-3 1999-01-01 1 test 22 33 comment
-4 1998-01-01 1 test 22 33 comment
-5 1998-01-01 1 test 22 33 comment
-6 2004-01-01 1 test 22 33 comment
-7 2004-01-01 1 test 22 33 comment
-drop table t1;
-CREATE TABLE `t1` ( `a` char(3) NOT NULL default '', `b` char(3) NOT NULL default '', `c` char(3) NOT NULL default '', PRIMARY KEY (`a`,`b`,`c`)) ENGINE=InnoDB;
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t1 VALUES (1,1,1);
-INSERT INTO t2 VALUES (1,1,1);
-PREPARE my_stmt FROM "SELECT t1.b, count(*) FROM t1 group by t1.b having
-count(*) > ALL (SELECT COUNT(*) FROM t2 WHERE t2.a=1 GROUP By t2.b)";
-EXECUTE my_stmt;
-b count(*)
-EXECUTE my_stmt;
-b count(*)
-deallocate prepare my_stmt;
-drop table t1,t2;
-CREATE TABLE t1 (
-school_name varchar(45) NOT NULL,
-country varchar(45) NOT NULL,
-funds_requested float NOT NULL,
-schooltype varchar(45) NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-insert into t1 values ("the school", "USA", 1200, "Human");
-select count(country) as countrycount, sum(funds_requested) as smcnt,
-country, (select sum(funds_requested) from t1) as total_funds
-from t1
-group by country;
-countrycount smcnt country total_funds
-1 1200 USA 1200
-select count(country) as countrycount, sum(funds_requested) as smcnt,
-country, (select sum(funds_requested) from t1) as total_funds
-from t1
-group by country;
-countrycount smcnt country total_funds
-1 1200 USA 1200
-drop table t1;
-CREATE TABLE `t1` (
-`t3_id` int NOT NULL,
-`t1_id` int NOT NULL,
-PRIMARY KEY (`t1_id`)
-);
-CREATE TABLE `t2` (
-`t2_id` int NOT NULL,
-`t1_id` int NOT NULL,
-`b` int NOT NULL,
-PRIMARY KEY (`t2_id`),
-UNIQUE KEY `idx_t2_t1_b` (`t1_id`,`b`)
-) ENGINE=InnoDB;
-CREATE TABLE `t3` (
-`t3_id` int NOT NULL
-);
-INSERT INTO `t3` VALUES (3);
-select
-(SELECT rs.t2_id
-FROM t2 rs
-WHERE rs.t1_id=
-(SELECT lt.t1_id
-FROM t1 lt
-WHERE lt.t3_id=a.t3_id)
-ORDER BY b DESC LIMIT 1)
-from t3 AS a;
-(SELECT rs.t2_id
-FROM t2 rs
-WHERE rs.t1_id=
-(SELECT lt.t1_id
-FROM t1 lt
-WHERE lt.t3_id=a.t3_id)
-ORDER BY b DESC LIMIT 1)
-NULL
-DROP PROCEDURE IF EXISTS p1;
-create procedure p1()
-begin
-declare done int default 3;
-repeat
-select
-(SELECT rs.t2_id
-FROM t2 rs
-WHERE rs.t1_id=
-(SELECT lt.t1_id
-FROM t1 lt
-WHERE lt.t3_id=a.t3_id)
-ORDER BY b DESC LIMIT 1) as x
-from t3 AS a;
-set done= done-1;
-until done <= 0 end repeat;
-end//
-call p1();
-x
-NULL
-x
-NULL
-x
-NULL
-call p1();
-x
-NULL
-x
-NULL
-x
-NULL
-call p1();
-x
-NULL
-x
-NULL
-x
-NULL
-drop procedure p1;
-drop tables t1,t2,t3;
-#
-# Bug #58756
-# Crash in heap_rrnd on query with HAVING ... IN (subquery) + LIMIT
-#
-CREATE TABLE t1 (
-col_time_key time DEFAULT NULL,
-col_datetime_key datetime DEFAULT NULL,
-col_varchar_nokey varchar(1) DEFAULT NULL,
-KEY col_time_key (col_time_key),
-KEY col_datetime_key (col_datetime_key)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES ('17:53:30','2005-11-10 12:40:29','h');
-INSERT INTO t1 VALUES ('11:35:49','2009-04-25 00:00:00','b');
-INSERT INTO t1 VALUES (NULL,'2002-11-27 00:00:00','s');
-INSERT INTO t1 VALUES ('06:01:40','2004-01-26 20:32:32','e');
-INSERT INTO t1 VALUES ('05:45:11','2007-10-26 11:41:40','j');
-INSERT INTO t1 VALUES ('00:00:00','2005-10-07 00:00:00','e');
-INSERT INTO t1 VALUES ('00:00:00','2000-07-15 05:00:34','f');
-INSERT INTO t1 VALUES ('06:11:01','2000-04-03 16:33:32','v');
-INSERT INTO t1 VALUES ('13:02:46',NULL,'x');
-INSERT INTO t1 VALUES ('21:44:25','2001-04-25 01:26:12','m');
-INSERT INTO t1 VALUES ('22:43:58','2000-12-27 00:00:00','c');
-CREATE TABLE t2 (
-col_time_key time DEFAULT NULL,
-col_datetime_key datetime DEFAULT NULL,
-col_varchar_nokey varchar(1) DEFAULT NULL,
-KEY col_time_key (col_time_key),
-KEY col_datetime_key (col_datetime_key)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t2 VALUES ('11:28:45','2004-10-11 18:13:16','w');
-SELECT col_time_key, col_datetime_key
-FROM
-( SELECT * FROM t1 ) AS table1
-HAVING ( 'r' , 'e' ) IN
-( SELECT col_varchar_nokey , col_varchar_nokey FROM t2 )
-ORDER BY col_datetime_key
-LIMIT 10;
-col_time_key col_datetime_key
-DROP TABLE t1;
-DROP TABLE t2;
-# End of Bug #58756
-#
-# Bug#60085 crash in Item::save_in_field() with time data type
-#
-CREATE TABLE t1(a date, b int, unique(b), unique(a), key(b)) engine=innodb;
-INSERT INTO t1 VALUES ('2011-05-13', 0);
-SELECT * FROM t1 WHERE b < (SELECT CAST(a as date) FROM t1 GROUP BY a);
-a b
-2011-05-13 0
-DROP TABLE t1;
-#
-# Bug #11766300 59387: FAILING ASSERTION: CURSOR->POS_STATE == 1997660512 (BTR_PCUR_IS_POSITIONE
-#
-CREATE TABLE t1 (a INT) ENGINE=INNODB;
-INSERT INTO t1 VALUES (0);
-CREATE TABLE t2 (d BINARY(2), PRIMARY KEY (d(1)), UNIQUE KEY (d)) ENGINE=INNODB;
-SELECT 1 FROM t1 WHERE NOT EXISTS
-(SELECT 1 FROM t2 WHERE d = (SELECT d FROM t2 WHERE a >= 1) ORDER BY d);
-1
-1
-EXPLAIN SELECT 1 FROM t1 WHERE NOT EXISTS
-(SELECT 1 FROM t2 WHERE d = (SELECT d FROM t2 WHERE a >= 1) ORDER BY d);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 1 Using where
-2 DEPENDENT SUBQUERY t2 eq_ref PRIMARY,d PRIMARY 1 func 1 Using where
-3 DEPENDENT SUBQUERY t2 index NULL d 2 NULL 1 Using index
-DROP TABLE t2;
-CREATE TABLE t2 (b INT, c INT, UNIQUE KEY (b), UNIQUE KEY (b, c )) ENGINE=INNODB;
-INSERT INTO t2 VALUES (1, 1);
-SELECT 1 FROM t1
-WHERE a != (SELECT 1 FROM t2 WHERE a <=> b OR a > '' AND 6 = 7 ORDER BY b, c);
-1
-DROP TABLE t1, t2;
-#
-# Bug #13639204 64111: CRASH ON SELECT SUBQUERY WITH NON UNIQUE
-# INDEX
-#
-CREATE TABLE t1 (
-id int
-) ENGINE=InnoDB;
-INSERT INTO t1 (id) VALUES (11);
-CREATE TABLE t2 (
-t1_id int,
-position int,
-KEY t1_id (t1_id),
-KEY t1_id_position (t1_id,position)
-) ENGINE=InnoDB;
-EXPLAIN SELECT
-(SELECT position FROM t2
-WHERE t2.t1_id = t1.id
-ORDER BY t2.t1_id , t2.position
-LIMIT 10,1
-) AS maxkey
-FROM t1
-LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ref t1_id,t1_id_position t1_id_position 5 test.t1.id 1 Using where; Using index
-SELECT
-(SELECT position FROM t2
-WHERE t2.t1_id = t1.id
-ORDER BY t2.t1_id , t2.position
-LIMIT 10,1
-) AS maxkey
-FROM t1
-LIMIT 1;
-maxkey
-NULL
-DROP TABLE t1,t2;
-End of 5.1 tests
-#
-# lp:827416 Crash in select_describe() on EXPLAIN with DISTINCT in nested subqueries
-#
-CREATE TABLE t3 ( b int) ENGINE=InnoDB;
-CREATE TABLE t2 ( c int) ENGINE=InnoDB;
-CREATE TABLE t1 ( a int NOT NULL , PRIMARY KEY (a)) ENGINE=InnoDB;
-EXPLAIN SELECT *
-FROM t1
-WHERE t1.a = (
-SELECT SUM( c )
-FROM t2
-WHERE (SELECT DISTINCT b FROM t3) > 0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 1 Using temporary
-SELECT *
-FROM t1
-WHERE t1.a = (
-SELECT SUM( c )
-FROM t2
-WHERE (SELECT DISTINCT b FROM t3) > 0);
-a
-DROP TABLE t1, t2, t3;
-#
-# lp:858148 Fourth crash in select_describe() with nested subqueries
-#
-CREATE TABLE t1 ( f1 int(11)) ENGINE=InnoDB;
-CREATE TABLE t2 ( f1 int(11), f2 int(11), PRIMARY KEY (f1)) ;
-CREATE TABLE t3 ( f3 int(11)) ENGINE=InnoDB;
-EXPLAIN
-SELECT MAX( f1 ) FROM t2
-WHERE f2 >= (
-SELECT SUM( f1 )
-FROM t1
-WHERE EXISTS (
-SELECT f3
-FROM t3
-GROUP BY 1
-)
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 1
-SELECT MAX( f1 ) FROM t2
-WHERE f2 >= (
-SELECT SUM( f1 )
-FROM t1
-WHERE EXISTS (
-SELECT f3
-FROM t3
-GROUP BY 1
-)
-);
-MAX( f1 )
-NULL
-drop table t1, t2, t3;
-#
-# LP BUG#1006231 crash in select_describe
-#
-create table t1(a1 int) ENGINE=InnoDB;
-insert into t1 values (1);
-explain
-select 1 from t1 where 1 like (select 1 from t1 where 1 <=> (select 1 from t1 group by a1));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 1
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 1
-3 SUBQUERY t1 ALL NULL NULL NULL NULL 1 Using temporary; Using filesort
-select 1 from t1 where 1 like (select 1 from t1 where 1 <=> (select 1 from t1 group by a1));
-1
-1
-drop table t1;
-#
-# MDEV-3988 crash in create_tmp_table
-#
-drop table if exists `t1`,`t2`;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-Note 1051 Unknown table 'test.t2'
-create table `t1`(`a` char(1) character set utf8)engine=innodb;
-create table `t2`(`b` char(1) character set utf8)engine=memory;
-select distinct (select 1 from `t2` where `a`) `d2` from `t1`;
-d2
-select distinct (select 1 from `t2` where `a`) `d2`, a from `t1`;
-d2 a
-select distinct a, (select 1 from `t2` where `a`) `d2` from `t1`;
-a d2
-select distinct (1 + (select 1 from `t2` where `a`)) `d2` from `t1`;
-d2
-drop table t1,t2;
-#
-# MDEV-4042: Assertion `table->key_read == 0' fails in close_thread_table on EXPLAIN with GROUP BY and HAVING in EXISTS SQ,
-# MDEV-4536: ...sql/sql_base.cc:1598: bool close_thread_table(THD*, TABLE**): Assertion `table->key_read == 0' failed.
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-CREATE TABLE t2 (b INT PRIMARY KEY, c INT) ENGINE=InnoDB;
-CREATE TABLE t3 (d INT) ENGINE=InnoDB;
-EXPLAIN
-SELECT * FROM t1 WHERE EXISTS ( SELECT b FROM t2, t3 GROUP BY b HAVING b != 3 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t2 index NULL PRIMARY 4 NULL 1 Using index; Using temporary; Using filesort
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 1 Using join buffer (flat, BNL join)
-SELECT * FROM t1 WHERE EXISTS ( SELECT b FROM t2, t3 GROUP BY b HAVING b != 3 );
-a
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (
-pk int auto_increment primary key,
-col_int_key int(11),
-key col_int_key (col_int_key),col_varchar_key varchar(128),
-key (col_varchar_key)
-) engine=innodb;
-EXPLAIN
-SELECT 1 FROM t1 AS alias1
-WHERE EXISTS ( SELECT SQ2_alias1 . col_int_key AS SQ2_field1
-FROM ( t1 AS SQ2_alias1 RIGHT OUTER JOIN
-t1 AS SQ2_alias2 ON (SQ2_alias2 . col_int_key = SQ2_alias1 . col_int_key )
-)
-GROUP BY SQ2_field1
-HAVING SQ2_alias1 . col_int_key >= 7
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY SQ2_alias2 index NULL col_int_key 5 NULL 1 Using index; Using temporary; Using filesort
-2 SUBQUERY SQ2_alias1 ref col_int_key col_int_key 5 test.SQ2_alias2.col_int_key 1 Using where; Using index
-SELECT 1 FROM t1 AS alias1
-WHERE EXISTS ( SELECT SQ2_alias1 . col_int_key AS SQ2_field1
-FROM ( t1 AS SQ2_alias1 RIGHT OUTER JOIN
-t1 AS SQ2_alias2 ON (SQ2_alias2 . col_int_key = SQ2_alias1 . col_int_key )
-)
-GROUP BY SQ2_field1
-HAVING SQ2_alias1 . col_int_key >= 7
-);
-1
-drop table t1;
-set optimizer_switch=@subselect_innodb_tmp;
-#
-# MDEV-9635:Server crashes in part_of_refkey or assertion
-# `!created && key_to_save < (int)s->keys' failed in
-# TABLE::use_index(int) or with join_cache_level>2
-#
-SET join_cache_level=3;
-CREATE TABLE t1 (f1 VARCHAR(1024)) ENGINE=InnoDB;
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-CREATE TABLE t2 (f2 VARCHAR(4)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES ('foo'),('bar');
-SELECT * FROM v1, t2 WHERE ( f1, f2 ) IN ( SELECT f1, f1 FROM t1 );
-f1 f2
-set join_cache_level = default;
-drop view v1;
-drop table t1,t2;
-#
-# MDEV-10693: cost-based choice between materialization and in-to-exists
-# for a subquery from the expression used in ref access
-#
-CREATE TABLE t1 (i1 INT PRIMARY KEY) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (i2 INT) ENGINE=InnoDB;
-CREATE TABLE t3 (i3 INT PRIMARY KEY) ENGINE=InnoDB;
-INSERT INTO t3 VALUES (3);
-SELECT * FROM t1
-WHERE NULL IN ( SELECT i2 FROM t2
-WHERE i1 IN ( i2 IN ( SELECT i3 FROM t3 ) ) AND i2 = 2 );
-i1
-DROP TABLE t1,t2,t3;
-#
-# MDEV-6041: ORDER BY+subqueries: subquery_table.key=outer_table.col is not recongized as binding
-#
-create table t1(a int) engine=innodb;
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2(
-id int primary key,
-key1 int,
-col1 int,
-key(key1)
-) engine=innodb;
-insert into t2
-select
-A.a + B.a*10 + C.a*100 + D.a* 1000,
-A.a + 10*B.a,
-123456
-from t1 A, t1 B, t1 C, t1 D;
-# Table tsubq:
-# - must use 'ref' (not 'index'), and must not use 'Using filesort'
-# - shows a bad estimate for 'rows' (but I'm not sure if one can do better w/o histograms)
-explain select
-(SELECT
-concat(id, '-', key1, '-', col1)
-FROM t2
-WHERE t2.key1 = t1.a
-ORDER BY t2.id ASC LIMIT 1)
-from
-t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 10
-2 DEPENDENT SUBQUERY t2 ref key1 key1 5 test.t1.a 1 Using where
-#
-# MDEV-6081: ORDER BY+ref(const): selectivity is very incorrect (MySQL Bug#14338686)
-#
-alter table t2 add key2 int;
-update t2 set key2=key1;
-alter table t2 add key(key2);
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status OK
-flush tables;
-# Table tsubq must use 'ref' + Using filesort (not 'index' w/o filesort)
-explain select
-(SELECT
-concat(id, '-', key1, '-', col1)
-FROM t2
-WHERE t2.key1 = t1.a
-ORDER BY t2.key2 ASC LIMIT 1)
-from
-t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL #
-2 DEPENDENT SUBQUERY t2 ref key1 key1 5 test.t1.a # Using where; Using filesort
-drop table t1,t2;
-#
-# mdev-12931: semi-join in ON expression of STRAIGHT_JOIN
-# joining a base table and a mergeable derived table
-#
-CREATE TABLE t1 (f1 int) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (3),(2);
-CREATE TABLE t2 (f2 int) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (1),(4);
-CREATE TABLE t3 (f3 int) ENGINE=InnoDB;
-INSERT INTO t3 VALUES (5),(6);
-CREATE TABLE t4 (f4 int) ENGINE=InnoDB;
-INSERT INTO t4 VALUES (1),(8);
-SELECT *
-FROM t1
-INNER JOIN
-( t2 STRAIGHT_JOIN ( SELECT * FROM t3 ) AS sq
-ON ( 1 IN ( SELECT f4 FROM t4 ) ) )
-ON ( f1 >= f2 );
-f1 f2 f3
-3 1 5
-2 1 5
-3 1 6
-2 1 6
-EXPLAIN EXTENDED
-SELECT *
-FROM t1
-INNER JOIN
-( t2 STRAIGHT_JOIN ( SELECT * FROM t3 ) AS sq
-ON ( 1 IN ( SELECT f4 FROM t4 ) ) )
-ON ( f1 >= f2 );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 4 func 1 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (flat, BNL join)
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (incremental, BNL join)
-3 MATERIALIZED t4 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t2`.`f2` AS `f2`,`test`.`t3`.`f3` AS `f3` from `test`.`t1` join `test`.`t2` semi join (`test`.`t4`) join `test`.`t3` where `test`.`t4`.`f4` = 1 and `test`.`t1`.`f1` >= `test`.`t2`.`f2`
-DROP TABLE t1,t2,t3,t4;
diff --git a/mysql-test/r/subselect_mat.result b/mysql-test/r/subselect_mat.result
deleted file mode 100644
index 4d425d0fe5c..00000000000
--- a/mysql-test/r/subselect_mat.result
+++ /dev/null
@@ -1,2788 +0,0 @@
-set @subselect_mat_test_optimizer_switch_value='materialization=on,in_to_exists=off,semijoin=off';
-set @subselect_sj_mat_tmp= @@optimizer_switch;
-set optimizer_switch=ifnull(@subselect_mat_test_optimizer_switch_value, 'semijoin=on,firstmatch=on,loosescan=on,semijoin_with_cache=on');
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set @optimizer_switch_local_default= @@optimizer_switch;
-set @save_join_cache_level=@@join_cache_level;
-set join_cache_level=1;
-drop table if exists t1, t2, t3, t4, t5, t1i, t2i, t3i;
-drop table if exists columns;
-drop table if exists t1_16, t2_16, t3_16;
-drop view if exists v1, v2, v1m, v2m;
-create table t1 (a1 char(8), a2 char(8));
-create table t2 (b1 char(8), b2 char(8));
-create table t3 (c1 char(8), c2 char(8));
-insert into t1 values ('1 - 00', '2 - 00');
-insert into t1 values ('1 - 01', '2 - 01');
-insert into t1 values ('1 - 02', '2 - 02');
-insert into t2 values ('1 - 01', '2 - 01');
-insert into t2 values ('1 - 01', '2 - 01');
-insert into t2 values ('1 - 02', '2 - 02');
-insert into t2 values ('1 - 02', '2 - 02');
-insert into t2 values ('1 - 03', '2 - 03');
-insert into t3 values ('1 - 01', '2 - 01');
-insert into t3 values ('1 - 02', '2 - 02');
-insert into t3 values ('1 - 03', '2 - 03');
-insert into t3 values ('1 - 04', '2 - 04');
-create table t1i (a1 char(8), a2 char(8));
-create table t2i (b1 char(8), b2 char(8));
-create table t3i (c1 char(8), c2 char(8));
-create index it1i1 on t1i (a1);
-create index it1i2 on t1i (a2);
-create index it1i3 on t1i (a1, a2);
-create index it2i1 on t2i (b1);
-create index it2i2 on t2i (b2);
-create index it2i3 on t2i (b1, b2);
-create index it3i1 on t3i (c1);
-create index it3i2 on t3i (c2);
-create index it3i3 on t3i (c1, c2);
-insert into t1i select * from t1;
-insert into t2i select * from t2;
-insert into t3i select * from t3;
-set @@optimizer_switch='materialization=on,in_to_exists=off,firstmatch=off';
-/******************************************************************************
-* Simple tests.
-******************************************************************************/
-# non-indexed nullable fields
-explain extended
-select * from t1 where a1 in (select b1 from t2 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`>(<in_optimizer>(`test`.`t1`.`a1`,`test`.`t1`.`a1` in ( <materialize> (/* select#2 */ select `test`.`t2`.`b1` from `test`.`t2` where `test`.`t2`.`b1` > '0' ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery2>`.`b1`))))
-select * from t1 where a1 in (select b1 from t2 where b1 > '0');
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1 where a1 in (select b1 from t2 where b1 > '0' group by b1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`>(<in_optimizer>(`test`.`t1`.`a1`,`test`.`t1`.`a1` in ( <materialize> (/* select#2 */ select `test`.`t2`.`b1` from `test`.`t2` where `test`.`t2`.`b1` > '0' ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery2>`.`b1`))))
-select * from t1 where a1 in (select b1 from t2 where b1 > '0' group by b1);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1 where (a1, a2) in (select b1, b2 from t2 where b1 > '0' group by b1, b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),(`test`.`t1`.`a1`,`test`.`t1`.`a2`) in ( <materialize> (/* select#2 */ select `test`.`t2`.`b1`,`test`.`t2`.`b2` from `test`.`t2` where `test`.`t2`.`b1` > '0' ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery2>`.`b1` and `test`.`t1`.`a2` = `<subquery2>`.`b2`))))
-select * from t1 where (a1, a2) in (select b1, b2 from t2 where b1 > '0' group by b1, b2);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1 where (a1, a2) in (select b1, min(b2) from t2 where b1 > '0' group by b1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using temporary
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),(`test`.`t1`.`a1`,`test`.`t1`.`a2`) in ( <materialize> (/* select#2 */ select `test`.`t2`.`b1`,min(`test`.`t2`.`b2`) from `test`.`t2` where `test`.`t2`.`b1` > '0' group by `test`.`t2`.`b1` ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery2>`.`b1` and `test`.`t1`.`a2` = `<subquery2>`.`min(b2)`))))
-select * from t1 where (a1, a2) in (select b1, min(b2) from t2 where b1 > '0' group by b1);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1i where a1 in (select b1 from t2i where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1i index NULL _it1_idx # NULL 3 100.00 Using where;
-2 MATERIALIZED t2i index it2i1,it2i3 it2i1 # NULL 5 100.00 Using where;
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` where <expr_cache><`test`.`t1i`.`a1`>(<in_optimizer>(`test`.`t1i`.`a1`,`test`.`t1i`.`a1` in ( <materialize> (/* select#2 */ select `test`.`t2i`.`b1` from `test`.`t2i` where `test`.`t2i`.`b1` > '0' ), <primary_index_lookup>(`test`.`t1i`.`a1` in <temporary table> on distinct_key where `test`.`t1i`.`a1` = `<subquery2>`.`b1`))))
-select * from t1i where a1 in (select b1 from t2i where b1 > '0');
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1i where a1 in (select max(b1) from t2i where b1 > '0' group by b1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1i index NULL # 18 # 3 100.00 #
-2 MATERIALIZED t2i range it2i1,it2i3 # 9 # 5 100.00 #
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` where <expr_cache><`test`.`t1i`.`a1`>(<in_optimizer>(`test`.`t1i`.`a1`,`test`.`t1i`.`a1` in ( <materialize> (/* select#2 */ select max(`test`.`t2i`.`b1`) from `test`.`t2i` where `test`.`t2i`.`b1` > '0' group by `test`.`t2i`.`b1` ), <primary_index_lookup>(`test`.`t1i`.`a1` in <temporary table> on distinct_key where `test`.`t1i`.`a1` = `<subquery2>`.`max(b1)`))))
-select * from t1i where a1 in (select max(b1) from t2i where b1 > '0' group by b1);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1i where (a1, a2) in (select b1, b2 from t2i where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1i index NULL _it1_idx # NULL 3 100.00 Using where;
-2 MATERIALIZED t2i index it2i1,it2i3 it2i3 # NULL 5 100.00 Using where;
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` where <expr_cache><`test`.`t1i`.`a1`,`test`.`t1i`.`a2`>(<in_optimizer>((`test`.`t1i`.`a1`,`test`.`t1i`.`a2`),(`test`.`t1i`.`a1`,`test`.`t1i`.`a2`) in ( <materialize> (/* select#2 */ select `test`.`t2i`.`b1`,`test`.`t2i`.`b2` from `test`.`t2i` where `test`.`t2i`.`b1` > '0' ), <primary_index_lookup>(`test`.`t1i`.`a1` in <temporary table> on distinct_key where `test`.`t1i`.`a1` = `<subquery2>`.`b1` and `test`.`t1i`.`a2` = `<subquery2>`.`b2`))))
-select * from t1i where (a1, a2) in (select b1, b2 from t2i where b1 > '0');
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1i where (a1, a2) in (select b1, max(b2) from t2i where b1 > '0' group by b1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1i index NULL # # # 3 100.00 #
-2 MATERIALIZED t2i range it2i1,it2i3 # # # 3 100.00 #
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` where <expr_cache><`test`.`t1i`.`a1`,`test`.`t1i`.`a2`>(<in_optimizer>((`test`.`t1i`.`a1`,`test`.`t1i`.`a2`),(`test`.`t1i`.`a1`,`test`.`t1i`.`a2`) in ( <materialize> (/* select#2 */ select `test`.`t2i`.`b1`,max(`test`.`t2i`.`b2`) from `test`.`t2i` where `test`.`t2i`.`b1` > '0' group by `test`.`t2i`.`b1` ), <primary_index_lookup>(`test`.`t1i`.`a1` in <temporary table> on distinct_key where `test`.`t1i`.`a1` = `<subquery2>`.`b1` and `test`.`t1i`.`a2` = `<subquery2>`.`max(b2)`))))
-select * from t1i where (a1, a2) in (select b1, max(b2) from t2i where b1 > '0' group by b1);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1i where (a1, a2) in (select b1, min(b2) from t2i where b1 > '0' group by b1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1i index NULL # # # 3 100.00 #
-2 MATERIALIZED t2i range it2i1,it2i3 # # # 3 100.00 #
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` where <expr_cache><`test`.`t1i`.`a1`,`test`.`t1i`.`a2`>(<in_optimizer>((`test`.`t1i`.`a1`,`test`.`t1i`.`a2`),(`test`.`t1i`.`a1`,`test`.`t1i`.`a2`) in ( <materialize> (/* select#2 */ select `test`.`t2i`.`b1`,min(`test`.`t2i`.`b2`) from `test`.`t2i` where `test`.`t2i`.`b1` > '0' group by `test`.`t2i`.`b1` ), <primary_index_lookup>(`test`.`t1i`.`a1` in <temporary table> on distinct_key where `test`.`t1i`.`a1` = `<subquery2>`.`b1` and `test`.`t1i`.`a2` = `<subquery2>`.`min(b2)`))))
-select * from t1i where (a1, a2) in (select b1, min(b2) from t2i where b1 > '0' group by b1);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1 where (a1, a2) in (select b1, max(b2) from t2i group by b1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2i range NULL it2i3 9 NULL 3 100.00 Using index for group-by
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),(`test`.`t1`.`a1`,`test`.`t1`.`a2`) in ( <materialize> (/* select#2 */ select `test`.`t2i`.`b1`,max(`test`.`t2i`.`b2`) from `test`.`t2i` group by `test`.`t2i`.`b1` ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery2>`.`b1` and `test`.`t1`.`a2` = `<subquery2>`.`max(b2)`))))
-select * from t1 where (a1, a2) in (select b1, max(b2) from t2i group by b1);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-prepare st1 from "explain select * from t1 where (a1, a2) in (select b1, max(b2) from t2i group by b1)";
-execute st1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-2 MATERIALIZED t2i range NULL it2i3 9 NULL 3 Using index for group-by
-execute st1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-2 MATERIALIZED t2i range NULL it2i3 9 NULL 3 Using index for group-by
-prepare st2 from "select * from t1 where (a1, a2) in (select b1, max(b2) from t2i group by b1)";
-execute st2;
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-execute st2;
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1 where (a1, a2) in (select b1, min(b2) from t2i where b1 > '0' group by b1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2i range it2i1,it2i3 it2i3 18 NULL 3 100.00 Using where; Using index for group-by
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),(`test`.`t1`.`a1`,`test`.`t1`.`a2`) in ( <materialize> (/* select#2 */ select `test`.`t2i`.`b1`,min(`test`.`t2i`.`b2`) from `test`.`t2i` where `test`.`t2i`.`b1` > '0' group by `test`.`t2i`.`b1` ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery2>`.`b1` and `test`.`t1`.`a2` = `<subquery2>`.`min(b2)`))))
-select * from t1 where (a1, a2) in (select b1, min(b2) from t2i where b1 > '0' group by b1);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-select * from t1 where (a1, a2) in (select b1, min(b2) from t2i limit 1,1);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='semijoin=off';
-prepare st1 from
-"select * from t1 where (a1, a2) in (select b1, min(b2) from t2 where b1 > '0' group by b1)";
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='materialization=off,in_to_exists=on';
-execute st1;
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='semijoin=off';
-execute st1;
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='materialization=off,in_to_exists=on';
-prepare st1 from
-"select * from t1 where (a1, a2) in (select b1, min(b2) from t2 where b1 > '0' group by b1)";
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='semijoin=off';
-execute st1;
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='materialization=off,in_to_exists=on';
-execute st1;
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-set @@optimizer_switch=@save_optimizer_switch;
-explain extended
-select * from t1 where (a1, a2) in (select b1, b2 from t2 order by b1, b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),(`test`.`t1`.`a1`,`test`.`t1`.`a2`) in ( <materialize> (/* select#2 */ select `test`.`t2`.`b1`,`test`.`t2`.`b2` from `test`.`t2` order by `test`.`t2`.`b1`,`test`.`t2`.`b2` ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery2>`.`b1` and `test`.`t1`.`a2` = `<subquery2>`.`b2`))))
-select * from t1 where (a1, a2) in (select b1, b2 from t2 order by b1, b2);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1i where (a1, a2) in (select b1, b2 from t2i order by b1, b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1i index NULL it1i3 18 NULL 3 100.00 Using where; Using index
-2 MATERIALIZED t2i index NULL it2i3 18 NULL 5 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` where <expr_cache><`test`.`t1i`.`a1`,`test`.`t1i`.`a2`>(<in_optimizer>((`test`.`t1i`.`a1`,`test`.`t1i`.`a2`),(`test`.`t1i`.`a1`,`test`.`t1i`.`a2`) in ( <materialize> (/* select#2 */ select `test`.`t2i`.`b1`,`test`.`t2i`.`b2` from `test`.`t2i` order by `test`.`t2i`.`b1`,`test`.`t2i`.`b2` ), <primary_index_lookup>(`test`.`t1i`.`a1` in <temporary table> on distinct_key where `test`.`t1i`.`a1` = `<subquery2>`.`b1` and `test`.`t1i`.`a2` = `<subquery2>`.`b2`))))
-select * from t1i where (a1, a2) in (select b1, b2 from t2i order by b1, b2);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-/******************************************************************************
-* Views, UNIONs, several levels of nesting.
-******************************************************************************/
-# materialize the result of subquery over temp-table view
-create algorithm=merge view v1 as
-select b1, c2 from t2, t3 where b2 > c2;
-create algorithm=merge view v2 as
-select b1, c2 from t2, t3 group by b2, c2;
-Warnings:
-Warning 1354 View merge algorithm can't be used here for now (assumed undefined algorithm)
-create algorithm=temptable view v1m as
-select b1, c2 from t2, t3 where b2 > c2;
-create algorithm=temptable view v2m as
-select b1, c2 from t2, t3 group by b2, c2;
-select * from v1 where (c2, b1) in (select c2, b1 from v2 where b1 is not null);
-b1 c2
-1 - 02 2 - 01
-1 - 02 2 - 01
-1 - 03 2 - 01
-1 - 03 2 - 02
-select * from v1 where (c2, b1) in (select distinct c2, b1 from v2 where b1 is not null);
-b1 c2
-1 - 02 2 - 01
-1 - 02 2 - 01
-1 - 03 2 - 01
-1 - 03 2 - 02
-select * from v1m where (c2, b1) in (select c2, b1 from v2m where b1 is not null);
-b1 c2
-1 - 02 2 - 01
-1 - 02 2 - 01
-1 - 03 2 - 01
-1 - 03 2 - 02
-select * from v1m where (c2, b1) in (select distinct c2, b1 from v2m where b1 is not null);
-b1 c2
-1 - 02 2 - 01
-1 - 02 2 - 01
-1 - 03 2 - 01
-1 - 03 2 - 02
-drop view v1, v2, v1m, v2m;
-explain extended
-select * from t1
-where (a1, a2) in (select b1, b2 from t2 where b1 > '0') and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-4 MATERIALIZED t2i index it2i2 it2i3 18 NULL 5 100.00 Using where; Using index
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),(`test`.`t1`.`a1`,`test`.`t1`.`a2`) in ( <materialize> (/* select#2 */ select `test`.`t2`.`b1`,`test`.`t2`.`b2` from `test`.`t2` where `test`.`t2`.`b1` > '0' ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery2>`.`b1` and `test`.`t1`.`a2` = `<subquery2>`.`b2`)))) and <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),(`test`.`t1`.`a1`,`test`.`t1`.`a2`) in ( <materialize> (/* select#3 */ select `test`.`t3`.`c1`,`test`.`t3`.`c2` from `test`.`t3` where <expr_cache><`test`.`t3`.`c1`,`test`.`t3`.`c2`>(<in_optimizer>((`test`.`t3`.`c1`,`test`.`t3`.`c2`),(`test`.`t3`.`c1`,`test`.`t3`.`c2`) in ( <materialize> (/* select#4 */ select `test`.`t2i`.`b1`,`test`.`t2i`.`b2` from `test`.`t2i` where `test`.`t2i`.`b2` > '0' ), <primary_index_lookup>(`test`.`t3`.`c1` in <temporary table> on distinct_key where `test`.`t3`.`c1` = `<subquery4>`.`b1` and `test`.`t3`.`c2` = `<subquery4>`.`b2`)))) ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery3>`.`c1` and `test`.`t1`.`a2` = `<subquery3>`.`c2`))))
-select * from t1
-where (a1, a2) in (select b1, b2 from t2 where b1 > '0') and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1i
-where (a1, a2) in (select b1, b2 from t2i where b1 > '0') and
-(a1, a2) in (select c1, c2 from t3i
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1i index NULL # # # 3 100.00 #
-3 MATERIALIZED t3i index NULL # # # 4 100.00 #
-4 MATERIALIZED t2i index it2i2 # # # 5 100.00 #
-2 MATERIALIZED t2i index it2i1,it2i3 # # # 5 100.00 #
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` where <expr_cache><`test`.`t1i`.`a1`,`test`.`t1i`.`a2`>(<in_optimizer>((`test`.`t1i`.`a1`,`test`.`t1i`.`a2`),(`test`.`t1i`.`a1`,`test`.`t1i`.`a2`) in ( <materialize> (/* select#2 */ select `test`.`t2i`.`b1`,`test`.`t2i`.`b2` from `test`.`t2i` where `test`.`t2i`.`b1` > '0' ), <primary_index_lookup>(`test`.`t1i`.`a1` in <temporary table> on distinct_key where `test`.`t1i`.`a1` = `<subquery2>`.`b1` and `test`.`t1i`.`a2` = `<subquery2>`.`b2`)))) and <expr_cache><`test`.`t1i`.`a1`,`test`.`t1i`.`a2`>(<in_optimizer>((`test`.`t1i`.`a1`,`test`.`t1i`.`a2`),(`test`.`t1i`.`a1`,`test`.`t1i`.`a2`) in ( <materialize> (/* select#3 */ select `test`.`t3i`.`c1`,`test`.`t3i`.`c2` from `test`.`t3i` where <expr_cache><`test`.`t3i`.`c1`,`test`.`t3i`.`c2`>(<in_optimizer>((`test`.`t3i`.`c1`,`test`.`t3i`.`c2`),(`test`.`t3i`.`c1`,`test`.`t3i`.`c2`) in ( <materialize> (/* select#4 */ select `test`.`t2i`.`b1`,`test`.`t2i`.`b2` from `test`.`t2i` where `test`.`t2i`.`b2` > '0' ), <primary_index_lookup>(`test`.`t3i`.`c1` in <temporary table> on distinct_key where `test`.`t3i`.`c1` = `<subquery4>`.`b1` and `test`.`t3i`.`c2` = `<subquery4>`.`b2`)))) ), <primary_index_lookup>(`test`.`t1i`.`a1` in <temporary table> on distinct_key where `test`.`t1i`.`a1` = `<subquery3>`.`c1` and `test`.`t1i`.`a2` = `<subquery3>`.`c2`))))
-select * from t1i
-where (a1, a2) in (select b1, b2 from t2i where b1 > '0') and
-(a1, a2) in (select c1, c2 from t3i
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1
-where (a1, a2) in (select b1, b2 from t2
-where b2 in (select c2 from t3 where c2 LIKE '%02') or
-b2 in (select c2 from t3 where c2 LIKE '%03')) and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-5 MATERIALIZED t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-6 MATERIALIZED t2i index it2i2 it2i3 18 NULL 5 100.00 Using where; Using index
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-4 MATERIALIZED t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),(`test`.`t1`.`a1`,`test`.`t1`.`a2`) in ( <materialize> (/* select#2 */ select `test`.`t2`.`b1`,`test`.`t2`.`b2` from `test`.`t2` where <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#3 */ select `test`.`t3`.`c2` from `test`.`t3` where `test`.`t3`.`c2` like '%02' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery3>`.`c2`)))) or <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#4 */ select `test`.`t3`.`c2` from `test`.`t3` where `test`.`t3`.`c2` like '%03' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery4>`.`c2`)))) ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery2>`.`b1` and `test`.`t1`.`a2` = `<subquery2>`.`b2`)))) and <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),(`test`.`t1`.`a1`,`test`.`t1`.`a2`) in ( <materialize> (/* select#5 */ select `test`.`t3`.`c1`,`test`.`t3`.`c2` from `test`.`t3` where <expr_cache><`test`.`t3`.`c1`,`test`.`t3`.`c2`>(<in_optimizer>((`test`.`t3`.`c1`,`test`.`t3`.`c2`),(`test`.`t3`.`c1`,`test`.`t3`.`c2`) in ( <materialize> (/* select#6 */ select `test`.`t2i`.`b1`,`test`.`t2i`.`b2` from `test`.`t2i` where `test`.`t2i`.`b2` > '0' ), <primary_index_lookup>(`test`.`t3`.`c1` in <temporary table> on distinct_key where `test`.`t3`.`c1` = `<subquery6>`.`b1` and `test`.`t3`.`c2` = `<subquery6>`.`b2`)))) ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery5>`.`c1` and `test`.`t1`.`a2` = `<subquery5>`.`c2`))))
-select * from t1
-where (a1, a2) in (select b1, b2 from t2
-where b2 in (select c2 from t3 where c2 LIKE '%02') or
-b2 in (select c2 from t3 where c2 LIKE '%03')) and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-a1 a2
-1 - 02 2 - 02
-explain extended
-select * from t1
-where (a1, a2) in (select b1, b2 from t2
-where b2 in (select c2 from t3 t3a where c1 = a1) or
-b2 in (select c2 from t3 t3b where c2 LIKE '%03')) and
-(a1, a2) in (select c1, c2 from t3 t3c
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-5 MATERIALIZED t3c ALL NULL NULL NULL NULL 4 100.00 Using where
-6 MATERIALIZED t2i index it2i2 it2i3 18 NULL 5 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-4 MATERIALIZED t3b ALL NULL NULL NULL NULL 4 100.00 Using where
-3 DEPENDENT SUBQUERY t3a ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a1' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select `test`.`t2`.`b1`,`test`.`t2`.`b2` from `test`.`t2` where (<expr_cache><`test`.`t2`.`b2`,`test`.`t1`.`a1`>(<in_optimizer>(`test`.`t2`.`b2`,<exists>(/* select#3 */ select `test`.`t3a`.`c2` from `test`.`t3` `t3a` where `test`.`t3a`.`c1` = `test`.`t1`.`a1` and <cache>(`test`.`t2`.`b2`) = `test`.`t3a`.`c2`))) or <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#4 */ select `test`.`t3b`.`c2` from `test`.`t3` `t3b` where `test`.`t3b`.`c2` like '%03' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery4>`.`c2`))))) and <cache>(`test`.`t1`.`a1`) = `test`.`t2`.`b1` and <cache>(`test`.`t1`.`a2`) = `test`.`t2`.`b2`))) and <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),(`test`.`t1`.`a1`,`test`.`t1`.`a2`) in ( <materialize> (/* select#5 */ select `test`.`t3c`.`c1`,`test`.`t3c`.`c2` from `test`.`t3` `t3c` where <expr_cache><`test`.`t3c`.`c1`,`test`.`t3c`.`c2`>(<in_optimizer>((`test`.`t3c`.`c1`,`test`.`t3c`.`c2`),(`test`.`t3c`.`c1`,`test`.`t3c`.`c2`) in ( <materialize> (/* select#6 */ select `test`.`t2i`.`b1`,`test`.`t2i`.`b2` from `test`.`t2i` where `test`.`t2i`.`b2` > '0' ), <primary_index_lookup>(`test`.`t3c`.`c1` in <temporary table> on distinct_key where `test`.`t3c`.`c1` = `<subquery6>`.`b1` and `test`.`t3c`.`c2` = `<subquery6>`.`b2`)))) ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery5>`.`c1` and `test`.`t1`.`a2` = `<subquery5>`.`c2`))))
-select * from t1
-where (a1, a2) in (select b1, b2 from t2
-where b2 in (select c2 from t3 t3a where c1 = a1) or
-b2 in (select c2 from t3 t3b where c2 LIKE '%03')) and
-(a1, a2) in (select c1, c2 from t3 t3c
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-(select * from t1
-where (a1, a2) in (select b1, b2 from t2
-where b2 in (select c2 from t3 where c2 LIKE '%02') or
-b2 in (select c2 from t3 where c2 LIKE '%03')
-group by b1, b2) and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0')))
-UNION
-(select * from t1i
-where (a1, a2) in (select b1, b2 from t2i where b1 > '0') and
-(a1, a2) in (select c1, c2 from t3i
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0')));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL # # # 3 100.00 #
-5 MATERIALIZED t3 ALL NULL # # # 4 100.00 #
-6 MATERIALIZED t2i index it2i2 # # # 5 100.00 #
-2 MATERIALIZED t2 ALL NULL # # # 5 100.00 #
-4 MATERIALIZED t3 ALL NULL # # # 4 100.00 #
-3 MATERIALIZED t3 ALL NULL # # # 4 100.00 #
-7 UNION t1i index NULL # # # 3 100.00 #
-9 MATERIALIZED t3i index NULL # # # 4 100.00 #
-10 MATERIALIZED t2i index it2i2 # # # 5 100.00 #
-8 MATERIALIZED t2i index it2i1,it2i3 # # # 5 100.00 #
-NULL UNION RESULT <union1,7> ALL NULL # # # NULL NULL #
-Warnings:
-Note 1003 (/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),(`test`.`t1`.`a1`,`test`.`t1`.`a2`) in ( <materialize> (/* select#2 */ select `test`.`t2`.`b1`,`test`.`t2`.`b2` from `test`.`t2` where <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#3 */ select `test`.`t3`.`c2` from `test`.`t3` where `test`.`t3`.`c2` like '%02' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery3>`.`c2`)))) or <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#4 */ select `test`.`t3`.`c2` from `test`.`t3` where `test`.`t3`.`c2` like '%03' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery4>`.`c2`)))) ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery2>`.`b1` and `test`.`t1`.`a2` = `<subquery2>`.`b2`)))) and <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),(`test`.`t1`.`a1`,`test`.`t1`.`a2`) in ( <materialize> (/* select#5 */ select `test`.`t3`.`c1`,`test`.`t3`.`c2` from `test`.`t3` where <expr_cache><`test`.`t3`.`c1`,`test`.`t3`.`c2`>(<in_optimizer>((`test`.`t3`.`c1`,`test`.`t3`.`c2`),(`test`.`t3`.`c1`,`test`.`t3`.`c2`) in ( <materialize> (/* select#6 */ select `test`.`t2i`.`b1`,`test`.`t2i`.`b2` from `test`.`t2i` where `test`.`t2i`.`b2` > '0' ), <primary_index_lookup>(`test`.`t3`.`c1` in <temporary table> on distinct_key where `test`.`t3`.`c1` = `<subquery6>`.`b1` and `test`.`t3`.`c2` = `<subquery6>`.`b2`)))) ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery5>`.`c1` and `test`.`t1`.`a2` = `<subquery5>`.`c2`))))) union (/* select#7 */ select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` where <expr_cache><`test`.`t1i`.`a1`,`test`.`t1i`.`a2`>(<in_optimizer>((`test`.`t1i`.`a1`,`test`.`t1i`.`a2`),(`test`.`t1i`.`a1`,`test`.`t1i`.`a2`) in ( <materialize> (/* select#8 */ select `test`.`t2i`.`b1`,`test`.`t2i`.`b2` from `test`.`t2i` where `test`.`t2i`.`b1` > '0' ), <primary_index_lookup>(`test`.`t1i`.`a1` in <temporary table> on distinct_key where `test`.`t1i`.`a1` = `<subquery8>`.`b1` and `test`.`t1i`.`a2` = `<subquery8>`.`b2`)))) and <expr_cache><`test`.`t1i`.`a1`,`test`.`t1i`.`a2`>(<in_optimizer>((`test`.`t1i`.`a1`,`test`.`t1i`.`a2`),(`test`.`t1i`.`a1`,`test`.`t1i`.`a2`) in ( <materialize> (/* select#9 */ select `test`.`t3i`.`c1`,`test`.`t3i`.`c2` from `test`.`t3i` where <expr_cache><`test`.`t3i`.`c1`,`test`.`t3i`.`c2`>(<in_optimizer>((`test`.`t3i`.`c1`,`test`.`t3i`.`c2`),(`test`.`t3i`.`c1`,`test`.`t3i`.`c2`) in ( <materialize> (/* select#10 */ select `test`.`t2i`.`b1`,`test`.`t2i`.`b2` from `test`.`t2i` where `test`.`t2i`.`b2` > '0' ), <primary_index_lookup>(`test`.`t3i`.`c1` in <temporary table> on distinct_key where `test`.`t3i`.`c1` = `<subquery10>`.`b1` and `test`.`t3i`.`c2` = `<subquery10>`.`b2`)))) ), <primary_index_lookup>(`test`.`t1i`.`a1` in <temporary table> on distinct_key where `test`.`t1i`.`a1` = `<subquery9>`.`c1` and `test`.`t1i`.`a2` = `<subquery9>`.`c2`)))))
-(select * from t1
-where (a1, a2) in (select b1, b2 from t2
-where b2 in (select c2 from t3 where c2 LIKE '%02') or
-b2 in (select c2 from t3 where c2 LIKE '%03')
-group by b1, b2) and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0')))
-UNION
-(select * from t1i
-where (a1, a2) in (select b1, b2 from t2i where b1 > '0') and
-(a1, a2) in (select c1, c2 from t3i
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0')));
-a1 a2
-1 - 02 2 - 02
-1 - 01 2 - 01
-explain extended
-select * from t1
-where (a1, a2) in (select * from t1 where a1 > '0' UNION select * from t2 where b1 < '9') and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-4 MATERIALIZED t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-5 MATERIALIZED t2i index it2i2 it2i3 18 NULL 5 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-3 DEPENDENT UNION t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select `test`.`t1`.`a1`,`test`.`t1`.`a2` from `test`.`t1` where `test`.`t1`.`a1` > '0' and <cache>(`test`.`t1`.`a1`) = `test`.`t1`.`a1` and <cache>(`test`.`t1`.`a2`) = `test`.`t1`.`a2` union /* select#3 */ select `test`.`t2`.`b1`,`test`.`t2`.`b2` from `test`.`t2` where `test`.`t2`.`b1` < '9' and <cache>(`test`.`t1`.`a1`) = `test`.`t2`.`b1` and <cache>(`test`.`t1`.`a2`) = `test`.`t2`.`b2`))) and <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),(`test`.`t1`.`a1`,`test`.`t1`.`a2`) in ( <materialize> (/* select#4 */ select `test`.`t3`.`c1`,`test`.`t3`.`c2` from `test`.`t3` where <expr_cache><`test`.`t3`.`c1`,`test`.`t3`.`c2`>(<in_optimizer>((`test`.`t3`.`c1`,`test`.`t3`.`c2`),(`test`.`t3`.`c1`,`test`.`t3`.`c2`) in ( <materialize> (/* select#5 */ select `test`.`t2i`.`b1`,`test`.`t2i`.`b2` from `test`.`t2i` where `test`.`t2i`.`b2` > '0' ), <primary_index_lookup>(`test`.`t3`.`c1` in <temporary table> on distinct_key where `test`.`t3`.`c1` = `<subquery5>`.`b1` and `test`.`t3`.`c2` = `<subquery5>`.`b2`)))) ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery4>`.`c1` and `test`.`t1`.`a2` = `<subquery4>`.`c2`))))
-select * from t1
-where (a1, a2) in (select * from t1 where a1 > '0' UNION select * from t2 where b1 < '9') and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1, t3
-where (a1, a2) in (select * from t1 where a1 > '0' UNION select * from t2 where b1 < '9') and
-(c1, c2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0')) and
-a1 = c1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t3 ALL NULL NULL NULL NULL 4 100.00 Using where; Using join buffer (flat, BNL join)
-4 MATERIALIZED t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-5 MATERIALIZED t2i index it2i2 it2i3 18 NULL 5 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-3 DEPENDENT UNION t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2`,`test`.`t3`.`c1` AS `c1`,`test`.`t3`.`c2` AS `c2` from `test`.`t1` join `test`.`t3` where `test`.`t3`.`c1` = `test`.`t1`.`a1` and <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select `test`.`t1`.`a1`,`test`.`t1`.`a2` from `test`.`t1` where `test`.`t1`.`a1` > '0' and <cache>(`test`.`t1`.`a1`) = `test`.`t1`.`a1` and <cache>(`test`.`t1`.`a2`) = `test`.`t1`.`a2` union /* select#3 */ select `test`.`t2`.`b1`,`test`.`t2`.`b2` from `test`.`t2` where `test`.`t2`.`b1` < '9' and <cache>(`test`.`t1`.`a1`) = `test`.`t2`.`b1` and <cache>(`test`.`t1`.`a2`) = `test`.`t2`.`b2`))) and <expr_cache><`test`.`t3`.`c1`,`test`.`t3`.`c2`>(<in_optimizer>((`test`.`t3`.`c1`,`test`.`t3`.`c2`),(`test`.`t3`.`c1`,`test`.`t3`.`c2`) in ( <materialize> (/* select#4 */ select `test`.`t3`.`c1`,`test`.`t3`.`c2` from `test`.`t3` where <expr_cache><`test`.`t3`.`c1`,`test`.`t3`.`c2`>(<in_optimizer>((`test`.`t3`.`c1`,`test`.`t3`.`c2`),(`test`.`t3`.`c1`,`test`.`t3`.`c2`) in ( <materialize> (/* select#5 */ select `test`.`t2i`.`b1`,`test`.`t2i`.`b2` from `test`.`t2i` where `test`.`t2i`.`b2` > '0' ), <primary_index_lookup>(`test`.`t3`.`c1` in <temporary table> on distinct_key where `test`.`t3`.`c1` = `<subquery5>`.`b1` and `test`.`t3`.`c2` = `<subquery5>`.`b2`)))) ), <primary_index_lookup>(`test`.`t3`.`c1` in <temporary table> on distinct_key where `test`.`t3`.`c1` = `<subquery4>`.`c1` and `test`.`t3`.`c2` = `<subquery4>`.`c2`))))
-select * from t1, t3
-where (a1, a2) in (select * from t1 where a1 > '0' UNION select * from t2 where b1 < '9') and
-(c1, c2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0')) and
-a1 = c1;
-a1 a2 c1 c2
-1 - 01 2 - 01 1 - 01 2 - 01
-1 - 02 2 - 02 1 - 02 2 - 02
-/******************************************************************************
-* Negative tests, where materialization should not be applied.
-******************************************************************************/
-# UNION in a subquery
-explain extended
-select * from t3
-where c1 in (select a1 from t1 where a1 > '0' UNION select b1 from t2 where b1 < '9');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-3 DEPENDENT UNION t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`c1` AS `c1`,`test`.`t3`.`c2` AS `c2` from `test`.`t3` where <expr_cache><`test`.`t3`.`c1`>(<in_optimizer>(`test`.`t3`.`c1`,<exists>(/* select#2 */ select `test`.`t1`.`a1` from `test`.`t1` where `test`.`t1`.`a1` > '0' and <cache>(`test`.`t3`.`c1`) = `test`.`t1`.`a1` union /* select#3 */ select `test`.`t2`.`b1` from `test`.`t2` where `test`.`t2`.`b1` < '9' and <cache>(`test`.`t3`.`c1`) = `test`.`t2`.`b1`)))
-select * from t3
-where c1 in (select a1 from t1 where a1 > '0' UNION select b1 from t2 where b1 < '9');
-c1 c2
-1 - 01 2 - 01
-1 - 02 2 - 02
-1 - 03 2 - 03
-explain extended
-select * from t1
-where (a1, a2) in (select b1, b2 from t2
-where b2 in (select c2 from t3 t3a where c1 = a1) or
-b2 in (select c2 from t3 t3b where c2 LIKE '%03')) and
-(a1, a2) in (select c1, c2 from t3 t3c
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0' or b2 = a2));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-5 DEPENDENT SUBQUERY t3c ALL NULL NULL NULL NULL 4 100.00 Using where
-6 DEPENDENT SUBQUERY t2i index_subquery it2i1,it2i2,it2i3 it2i3 18 func,func 2 100.00 Using index; Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-4 MATERIALIZED t3b ALL NULL NULL NULL NULL 4 100.00 Using where
-3 DEPENDENT SUBQUERY t3a ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a1' of SELECT #3 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t1.a2' of SELECT #6 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select `test`.`t2`.`b1`,`test`.`t2`.`b2` from `test`.`t2` where (<expr_cache><`test`.`t2`.`b2`,`test`.`t1`.`a1`>(<in_optimizer>(`test`.`t2`.`b2`,<exists>(/* select#3 */ select `test`.`t3a`.`c2` from `test`.`t3` `t3a` where `test`.`t3a`.`c1` = `test`.`t1`.`a1` and <cache>(`test`.`t2`.`b2`) = `test`.`t3a`.`c2`))) or <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#4 */ select `test`.`t3b`.`c2` from `test`.`t3` `t3b` where `test`.`t3b`.`c2` like '%03' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery4>`.`c2`))))) and <cache>(`test`.`t1`.`a1`) = `test`.`t2`.`b1` and <cache>(`test`.`t1`.`a2`) = `test`.`t2`.`b2`))) and <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#5 */ select `test`.`t3c`.`c1`,`test`.`t3c`.`c2` from `test`.`t3` `t3c` where <expr_cache><`test`.`t3c`.`c1`,`test`.`t3c`.`c2`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t3c`.`c1`,`test`.`t3c`.`c2`),<exists>(<index_lookup>(<cache>(`test`.`t3c`.`c1`) in t2i on it2i3 where (`test`.`t2i`.`b2` > '0' or `test`.`t2i`.`b2` = `test`.`t1`.`a2`) and <cache>(`test`.`t3c`.`c1`) = `test`.`t2i`.`b1` and <cache>(`test`.`t3c`.`c2`) = `test`.`t2i`.`b2`)))) and <cache>(`test`.`t1`.`a1`) = `test`.`t3c`.`c1` and <cache>(`test`.`t1`.`a2`) = `test`.`t3c`.`c2`)))
-explain extended
-select * from t1 where (a1, a2) in (select '1 - 01', '2 - 01');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select '1 - 01','2 - 01' having (<cache>(`test`.`t1`.`a1`) = '1 - 01' or '1 - 01' is null) and (<cache>(`test`.`t1`.`a2`) = '2 - 01' or '2 - 01' is null) and '1 - 01' is null and '2 - 01' is null)))
-select * from t1 where (a1, a2) in (select '1 - 01', '2 - 01');
-a1 a2
-1 - 01 2 - 01
-explain extended
-select * from t1 where (a1, a2) in (select '1 - 01', '2 - 01' from dual);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select '1 - 01','2 - 01' having (<cache>(`test`.`t1`.`a1`) = '1 - 01' or '1 - 01' is null) and (<cache>(`test`.`t1`.`a2`) = '2 - 01' or '2 - 01' is null) and '1 - 01' is null and '2 - 01' is null)))
-select * from t1 where (a1, a2) in (select '1 - 01', '2 - 01' from dual);
-a1 a2
-1 - 01 2 - 01
-/******************************************************************************
-* Subqueries in other uncovered clauses.
-******************************************************************************/
-/* SELECT clause */
-select ((a1,a2) IN (select * from t2 where b2 > '0')) IS NULL from t1;
-((a1,a2) IN (select * from t2 where b2 > '0')) IS NULL
-0
-0
-0
-/* GROUP BY clause */
-create table columns (col int key);
-insert into columns values (1), (2);
-explain extended
-select * from t1 group by (select col from columns limit 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-2 SUBQUERY columns index NULL PRIMARY 4 NULL 2 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` group by (/* select#2 */ select `test`.`columns`.`col` from `test`.`columns` limit 1)
-select * from t1 group by (select col from columns limit 1);
-a1 a2
-1 - 00 2 - 00
-explain extended
-select * from t1 group by (a1 in (select col from columns));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using temporary; Using filesort
-2 DEPENDENT SUBQUERY columns unique_subquery PRIMARY PRIMARY 4 func 1 100.00 Using index; Using where; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` group by <expr_cache><`test`.`t1`.`a1`>(<in_optimizer>(`test`.`t1`.`a1`,<exists>(<primary_index_lookup>(<cache>(`test`.`t1`.`a1`) in columns on PRIMARY where trigcond(<cache>(`test`.`t1`.`a1`) = `test`.`columns`.`col`)))))
-select * from t1 group by (a1 in (select col from columns));
-a1 a2
-1 - 00 2 - 00
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1 - 00'
-Warning 1292 Truncated incorrect DOUBLE value: '1 - 01'
-Warning 1292 Truncated incorrect DOUBLE value: '1 - 02'
-/* ORDER BY clause */
-explain extended
-select * from t1 order by (select col from columns limit 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-2 SUBQUERY columns index NULL PRIMARY 4 NULL 2 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` order by (/* select#2 */ select `test`.`columns`.`col` from `test`.`columns` limit 1)
-select * from t1 order by (select col from columns limit 1);
-a1 a2
-1 - 00 2 - 00
-1 - 01 2 - 01
-1 - 02 2 - 02
-/******************************************************************************
-* Column types/sizes that affect materialization.
-******************************************************************************/
-/*
-Test that BLOBs are not materialized (except when arguments of some functions).
-*/
-# force materialization to be always considered
-set @prefix_len = 6;
-set @blob_len = 16;
-set @suffix_len = @blob_len - @prefix_len;
-create table t1_16 (a1 blob(16), a2 blob(16));
-create table t2_16 (b1 blob(16), b2 blob(16));
-create table t3_16 (c1 blob(16), c2 blob(16));
-insert into t1_16 values
-(concat('1 - 00', repeat('x', @suffix_len)), concat('2 - 00', repeat('x', @suffix_len)));
-insert into t1_16 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t1_16 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_16 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t2_16 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_16 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_16 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t3_16 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t3_16 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_16 values
-(concat('1 - 04', repeat('x', @suffix_len)), concat('2 - 04', repeat('x', @suffix_len)));
-explain extended select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select b1 from t2_16 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_16`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_16`.`a2`,7) AS `left(a2,7)` from `test`.`t1_16` where <expr_cache><`test`.`t1_16`.`a1`>(<in_optimizer>(`test`.`t1_16`.`a1`,<exists>(/* select#2 */ select `test`.`t2_16`.`b1` from `test`.`t2_16` where `test`.`t2_16`.`b1` > '0' and <cache>(`test`.`t1_16`.`a1`) = `test`.`t2_16`.`b1`)))
-select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select b1 from t2_16 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_16
-where (a1,a2) in (select b1, b2 from t2_16 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_16`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_16`.`a2`,7) AS `left(a2,7)` from `test`.`t1_16` where <expr_cache><`test`.`t1_16`.`a1`,`test`.`t1_16`.`a2`>(<in_optimizer>((`test`.`t1_16`.`a1`,`test`.`t1_16`.`a2`),<exists>(/* select#2 */ select `test`.`t2_16`.`b1`,`test`.`t2_16`.`b2` from `test`.`t2_16` where `test`.`t2_16`.`b1` > '0' and <cache>(`test`.`t1_16`.`a1`) = `test`.`t2_16`.`b1` and <cache>(`test`.`t1_16`.`a2`) = `test`.`t2_16`.`b2`)))
-select left(a1,7), left(a2,7)
-from t1_16
-where (a1,a2) in (select b1, b2 from t2_16 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select substring(b1,1,16) from t2_16 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_16`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_16`.`a2`,7) AS `left(a2,7)` from `test`.`t1_16` where <expr_cache><`test`.`t1_16`.`a1`>(<in_optimizer>(`test`.`t1_16`.`a1`,`test`.`t1_16`.`a1` in ( <materialize> (/* select#2 */ select substr(`test`.`t2_16`.`b1`,1,16) from `test`.`t2_16` where `test`.`t2_16`.`b1` > '0' ), <primary_index_lookup>(`test`.`t1_16`.`a1` in <temporary table> on distinct_key where `test`.`t1_16`.`a1` = `<subquery2>`.`substring(b1,1,16)`))))
-select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select substring(b1,1,16) from t2_16 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select group_concat(b1) from t2_16 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2_16 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_16`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_16`.`a2`,7) AS `left(a2,7)` from `test`.`t1_16` where <expr_cache><`test`.`t1_16`.`a1`>(<in_optimizer>(`test`.`t1_16`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_16`.`b1` separator ',') from `test`.`t2_16` group by `test`.`t2_16`.`b2` having <cache>(`test`.`t1_16`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_16`.`b1` separator ',')))))
-select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select group_concat(b1) from t2_16 group by b2);
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-set @@group_concat_max_len = 256;
-explain extended select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select group_concat(b1) from t2_16 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2_16 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_16`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_16`.`a2`,7) AS `left(a2,7)` from `test`.`t1_16` where <expr_cache><`test`.`t1_16`.`a1`>(<in_optimizer>(`test`.`t1_16`.`a1`,`test`.`t1_16`.`a1` in ( <materialize> (/* select#2 */ select group_concat(`test`.`t2_16`.`b1` separator ',') from `test`.`t2_16` group by `test`.`t2_16`.`b2` ), <primary_index_lookup>(`test`.`t1_16`.`a1` in <temporary table> on distinct_key where `test`.`t1_16`.`a1` = `<subquery2>`.`group_concat(b1)`))))
-select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select group_concat(b1) from t2_16 group by b2);
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended
-select * from t1
-where concat(a1,'x') IN
-(select left(a1,8) from t1_16
-where (a1, a2) IN
-(select t2_16.b1, t2_16.b2 from t2_16, t2
-where t2.b2 = substring(t2_16.b2,1,6) and
-t2.b1 IN (select c1 from t3 where c2 > '0')));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t1_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-3 DEPENDENT SUBQUERY t2_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-3 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-4 MATERIALIZED t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><concat(`test`.`t1`.`a1`,'x')>(<in_optimizer>(concat(`test`.`t1`.`a1`,'x'),<exists>(/* select#2 */ select left(`test`.`t1_16`.`a1`,8) from `test`.`t1_16` where <expr_cache><`test`.`t1_16`.`a1`,`test`.`t1_16`.`a2`>(<in_optimizer>((`test`.`t1_16`.`a1`,`test`.`t1_16`.`a2`),<exists>(/* select#3 */ select `test`.`t2_16`.`b1`,`test`.`t2_16`.`b2` from `test`.`t2_16` join `test`.`t2` where `test`.`t2`.`b2` = substr(`test`.`t2_16`.`b2`,1,6) and <expr_cache><`test`.`t2`.`b1`>(<in_optimizer>(`test`.`t2`.`b1`,`test`.`t2`.`b1` in ( <materialize> (/* select#4 */ select `test`.`t3`.`c1` from `test`.`t3` where `test`.`t3`.`c2` > '0' ), <primary_index_lookup>(`test`.`t2`.`b1` in <temporary table> on distinct_key where `test`.`t2`.`b1` = `<subquery4>`.`c1`)))) and <cache>(`test`.`t1_16`.`a1`) = `test`.`t2_16`.`b1` and <cache>(`test`.`t1_16`.`a2`) = `test`.`t2_16`.`b2`))) and <cache>(concat(`test`.`t1`.`a1`,'x')) = left(`test`.`t1_16`.`a1`,8))))
-drop table t1_16, t2_16, t3_16;
-set @blob_len = 512;
-set @suffix_len = @blob_len - @prefix_len;
-create table t1_512 (a1 blob(512), a2 blob(512));
-create table t2_512 (b1 blob(512), b2 blob(512));
-create table t3_512 (c1 blob(512), c2 blob(512));
-insert into t1_512 values
-(concat('1 - 00', repeat('x', @suffix_len)), concat('2 - 00', repeat('x', @suffix_len)));
-insert into t1_512 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t1_512 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_512 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t2_512 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_512 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_512 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t3_512 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t3_512 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_512 values
-(concat('1 - 04', repeat('x', @suffix_len)), concat('2 - 04', repeat('x', @suffix_len)));
-explain extended select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select b1 from t2_512 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_512 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2_512 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from `test`.`t1_512` where <expr_cache><`test`.`t1_512`.`a1`>(<in_optimizer>(`test`.`t1_512`.`a1`,<exists>(/* select#2 */ select `test`.`t2_512`.`b1` from `test`.`t2_512` where `test`.`t2_512`.`b1` > '0' and <cache>(`test`.`t1_512`.`a1`) = `test`.`t2_512`.`b1`)))
-select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select b1 from t2_512 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_512
-where (a1,a2) in (select b1, b2 from t2_512 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_512 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2_512 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from `test`.`t1_512` where <expr_cache><`test`.`t1_512`.`a1`,`test`.`t1_512`.`a2`>(<in_optimizer>((`test`.`t1_512`.`a1`,`test`.`t1_512`.`a2`),<exists>(/* select#2 */ select `test`.`t2_512`.`b1`,`test`.`t2_512`.`b2` from `test`.`t2_512` where `test`.`t2_512`.`b1` > '0' and <cache>(`test`.`t1_512`.`a1`) = `test`.`t2_512`.`b1` and <cache>(`test`.`t1_512`.`a2`) = `test`.`t2_512`.`b2`)))
-select left(a1,7), left(a2,7)
-from t1_512
-where (a1,a2) in (select b1, b2 from t2_512 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select substring(b1,1,512) from t2_512 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_512 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2_512 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from `test`.`t1_512` where <expr_cache><`test`.`t1_512`.`a1`>(<in_optimizer>(`test`.`t1_512`.`a1`,`test`.`t1_512`.`a1` in ( <materialize> (/* select#2 */ select substr(`test`.`t2_512`.`b1`,1,512) from `test`.`t2_512` where `test`.`t2_512`.`b1` > '0' ), <primary_index_lookup>(`test`.`t1_512`.`a1` in <temporary table> on distinct_key where `test`.`t1_512`.`a1` = `<subquery2>`.`substring(b1,1,512)`))))
-select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select substring(b1,1,512) from t2_512 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select group_concat(b1) from t2_512 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_512 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2_512 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from `test`.`t1_512` where <expr_cache><`test`.`t1_512`.`a1`>(<in_optimizer>(`test`.`t1_512`.`a1`,`test`.`t1_512`.`a1` in ( <materialize> (/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2` ), <primary_index_lookup>(`test`.`t1_512`.`a1` in <temporary table> on distinct_key where `test`.`t1_512`.`a1` = `<subquery2>`.`group_concat(b1)`))))
-select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select group_concat(b1) from t2_512 group by b2);
-left(a1,7) left(a2,7)
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-set @@group_concat_max_len = 256;
-explain extended select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select group_concat(b1) from t2_512 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_512 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2_512 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from `test`.`t1_512` where <expr_cache><`test`.`t1_512`.`a1`>(<in_optimizer>(`test`.`t1_512`.`a1`,`test`.`t1_512`.`a1` in ( <materialize> (/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2` ), <primary_index_lookup>(`test`.`t1_512`.`a1` in <temporary table> on distinct_key where `test`.`t1_512`.`a1` = `<subquery2>`.`group_concat(b1)`))))
-select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select group_concat(b1) from t2_512 group by b2);
-left(a1,7) left(a2,7)
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-drop table t1_512, t2_512, t3_512;
-set @blob_len = 1024;
-set @suffix_len = @blob_len - @prefix_len;
-create table t1_1024 (a1 blob(1024), a2 blob(1024));
-create table t2_1024 (b1 blob(1024), b2 blob(1024));
-create table t3_1024 (c1 blob(1024), c2 blob(1024));
-insert into t1_1024 values
-(concat('1 - 00', repeat('x', @suffix_len)), concat('2 - 00', repeat('x', @suffix_len)));
-insert into t1_1024 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t1_1024 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_1024 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t2_1024 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_1024 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_1024 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t3_1024 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t3_1024 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_1024 values
-(concat('1 - 04', repeat('x', @suffix_len)), concat('2 - 04', repeat('x', @suffix_len)));
-explain extended select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select b1 from t2_1024 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1024 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2_1024 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` where <expr_cache><`test`.`t1_1024`.`a1`>(<in_optimizer>(`test`.`t1_1024`.`a1`,<exists>(/* select#2 */ select `test`.`t2_1024`.`b1` from `test`.`t2_1024` where `test`.`t2_1024`.`b1` > '0' and <cache>(`test`.`t1_1024`.`a1`) = `test`.`t2_1024`.`b1`)))
-select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select b1 from t2_1024 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_1024
-where (a1,a2) in (select b1, b2 from t2_1024 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1024 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2_1024 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` where <expr_cache><`test`.`t1_1024`.`a1`,`test`.`t1_1024`.`a2`>(<in_optimizer>((`test`.`t1_1024`.`a1`,`test`.`t1_1024`.`a2`),<exists>(/* select#2 */ select `test`.`t2_1024`.`b1`,`test`.`t2_1024`.`b2` from `test`.`t2_1024` where `test`.`t2_1024`.`b1` > '0' and <cache>(`test`.`t1_1024`.`a1`) = `test`.`t2_1024`.`b1` and <cache>(`test`.`t1_1024`.`a2`) = `test`.`t2_1024`.`b2`)))
-select left(a1,7), left(a2,7)
-from t1_1024
-where (a1,a2) in (select b1, b2 from t2_1024 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select substring(b1,1,1024) from t2_1024 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1024 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2_1024 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` where <expr_cache><`test`.`t1_1024`.`a1`>(<in_optimizer>(`test`.`t1_1024`.`a1`,<exists>(/* select#2 */ select substr(`test`.`t2_1024`.`b1`,1,1024) from `test`.`t2_1024` where `test`.`t2_1024`.`b1` > '0' and <cache>(`test`.`t1_1024`.`a1`) = substr(`test`.`t2_1024`.`b1`,1,1024))))
-select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select substring(b1,1,1024) from t2_1024 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select group_concat(b1) from t2_1024 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1024 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2_1024 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` where <expr_cache><`test`.`t1_1024`.`a1`>(<in_optimizer>(`test`.`t1_1024`.`a1`,`test`.`t1_1024`.`a1` in ( <materialize> (/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2` ), <primary_index_lookup>(`test`.`t1_1024`.`a1` in <temporary table> on distinct_key where `test`.`t1_1024`.`a1` = `<subquery2>`.`group_concat(b1)`))))
-select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select group_concat(b1) from t2_1024 group by b2);
-left(a1,7) left(a2,7)
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-set @@group_concat_max_len = 256;
-explain extended select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select group_concat(b1) from t2_1024 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1024 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2_1024 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` where <expr_cache><`test`.`t1_1024`.`a1`>(<in_optimizer>(`test`.`t1_1024`.`a1`,`test`.`t1_1024`.`a1` in ( <materialize> (/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2` ), <primary_index_lookup>(`test`.`t1_1024`.`a1` in <temporary table> on distinct_key where `test`.`t1_1024`.`a1` = `<subquery2>`.`group_concat(b1)`))))
-select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select group_concat(b1) from t2_1024 group by b2);
-left(a1,7) left(a2,7)
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-drop table t1_1024, t2_1024, t3_1024;
-set @blob_len = 1025;
-set @suffix_len = @blob_len - @prefix_len;
-create table t1_1025 (a1 blob(1025), a2 blob(1025));
-create table t2_1025 (b1 blob(1025), b2 blob(1025));
-create table t3_1025 (c1 blob(1025), c2 blob(1025));
-insert into t1_1025 values
-(concat('1 - 00', repeat('x', @suffix_len)), concat('2 - 00', repeat('x', @suffix_len)));
-insert into t1_1025 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t1_1025 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_1025 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t2_1025 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_1025 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_1025 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t3_1025 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t3_1025 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_1025 values
-(concat('1 - 04', repeat('x', @suffix_len)), concat('2 - 04', repeat('x', @suffix_len)));
-explain extended select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select b1 from t2_1025 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1025 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2_1025 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` where <expr_cache><`test`.`t1_1025`.`a1`>(<in_optimizer>(`test`.`t1_1025`.`a1`,<exists>(/* select#2 */ select `test`.`t2_1025`.`b1` from `test`.`t2_1025` where `test`.`t2_1025`.`b1` > '0' and <cache>(`test`.`t1_1025`.`a1`) = `test`.`t2_1025`.`b1`)))
-select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select b1 from t2_1025 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_1025
-where (a1,a2) in (select b1, b2 from t2_1025 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1025 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2_1025 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` where <expr_cache><`test`.`t1_1025`.`a1`,`test`.`t1_1025`.`a2`>(<in_optimizer>((`test`.`t1_1025`.`a1`,`test`.`t1_1025`.`a2`),<exists>(/* select#2 */ select `test`.`t2_1025`.`b1`,`test`.`t2_1025`.`b2` from `test`.`t2_1025` where `test`.`t2_1025`.`b1` > '0' and <cache>(`test`.`t1_1025`.`a1`) = `test`.`t2_1025`.`b1` and <cache>(`test`.`t1_1025`.`a2`) = `test`.`t2_1025`.`b2`)))
-select left(a1,7), left(a2,7)
-from t1_1025
-where (a1,a2) in (select b1, b2 from t2_1025 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select substring(b1,1,1025) from t2_1025 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1025 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2_1025 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` where <expr_cache><`test`.`t1_1025`.`a1`>(<in_optimizer>(`test`.`t1_1025`.`a1`,<exists>(/* select#2 */ select substr(`test`.`t2_1025`.`b1`,1,1025) from `test`.`t2_1025` where `test`.`t2_1025`.`b1` > '0' and <cache>(`test`.`t1_1025`.`a1`) = substr(`test`.`t2_1025`.`b1`,1,1025))))
-select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select substring(b1,1,1025) from t2_1025 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select group_concat(b1) from t2_1025 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1025 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2_1025 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` where <expr_cache><`test`.`t1_1025`.`a1`>(<in_optimizer>(`test`.`t1_1025`.`a1`,`test`.`t1_1025`.`a1` in ( <materialize> (/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2` ), <primary_index_lookup>(`test`.`t1_1025`.`a1` in <temporary table> on distinct_key where `test`.`t1_1025`.`a1` = `<subquery2>`.`group_concat(b1)`))))
-select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select group_concat(b1) from t2_1025 group by b2);
-left(a1,7) left(a2,7)
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-set @@group_concat_max_len = 256;
-explain extended select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select group_concat(b1) from t2_1025 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1025 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2_1025 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` where <expr_cache><`test`.`t1_1025`.`a1`>(<in_optimizer>(`test`.`t1_1025`.`a1`,`test`.`t1_1025`.`a1` in ( <materialize> (/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2` ), <primary_index_lookup>(`test`.`t1_1025`.`a1` in <temporary table> on distinct_key where `test`.`t1_1025`.`a1` = `<subquery2>`.`group_concat(b1)`))))
-select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select group_concat(b1) from t2_1025 group by b2);
-left(a1,7) left(a2,7)
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-drop table t1_1025, t2_1025, t3_1025;
-create table t1bit (a1 bit(3), a2 bit(3));
-create table t2bit (b1 bit(3), b2 bit(3));
-insert into t1bit values (b'000', b'100');
-insert into t1bit values (b'001', b'101');
-insert into t1bit values (b'010', b'110');
-insert into t2bit values (b'001', b'101');
-insert into t2bit values (b'010', b'110');
-insert into t2bit values (b'110', b'111');
-explain extended select bin(a1), bin(a2)
-from t1bit
-where (a1, a2) in (select b1, b2 from t2bit);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1bit ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t2bit ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select conv(`test`.`t1bit`.`a1`,10,2) AS `bin(a1)`,conv(`test`.`t1bit`.`a2`,10,2) AS `bin(a2)` from `test`.`t1bit` where <expr_cache><`test`.`t1bit`.`a1`,`test`.`t1bit`.`a2`>(<in_optimizer>((`test`.`t1bit`.`a1`,`test`.`t1bit`.`a2`),(`test`.`t1bit`.`a1`,`test`.`t1bit`.`a2`) in ( <materialize> (/* select#2 */ select `test`.`t2bit`.`b1`,`test`.`t2bit`.`b2` from `test`.`t2bit` ), <primary_index_lookup>(`test`.`t1bit`.`a1` in <temporary table> on distinct_key where `test`.`t1bit`.`a1` = `<subquery2>`.`b1` and `test`.`t1bit`.`a2` = `<subquery2>`.`b2`))))
-select bin(a1), bin(a2)
-from t1bit
-where (a1, a2) in (select b1, b2 from t2bit);
-bin(a1) bin(a2)
-1 101
-10 110
-drop table t1bit, t2bit;
-create table t1bb (a1 bit(3), a2 blob(3));
-create table t2bb (b1 bit(3), b2 blob(3));
-insert into t1bb values (b'000', '100');
-insert into t1bb values (b'001', '101');
-insert into t1bb values (b'010', '110');
-insert into t2bb values (b'001', '101');
-insert into t2bb values (b'010', '110');
-insert into t2bb values (b'110', '111');
-explain extended select bin(a1), a2
-from t1bb
-where (a1, a2) in (select b1, b2 from t2bb);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1bb ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2bb ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select conv(`test`.`t1bb`.`a1`,10,2) AS `bin(a1)`,`test`.`t1bb`.`a2` AS `a2` from `test`.`t1bb` where <expr_cache><`test`.`t1bb`.`a1`,`test`.`t1bb`.`a2`>(<in_optimizer>((`test`.`t1bb`.`a1`,`test`.`t1bb`.`a2`),<exists>(/* select#2 */ select `test`.`t2bb`.`b1`,`test`.`t2bb`.`b2` from `test`.`t2bb` where <cache>(`test`.`t1bb`.`a1`) = `test`.`t2bb`.`b1` and <cache>(`test`.`t1bb`.`a2`) = `test`.`t2bb`.`b2`)))
-select bin(a1), a2
-from t1bb
-where (a1, a2) in (select b1, b2 from t2bb);
-bin(a1) a2
-1 101
-10 110
-drop table t1bb, t2bb;
-drop table t1, t2, t3, t1i, t2i, t3i, columns;
-/******************************************************************************
-* Test the cache of the left operand of IN.
-******************************************************************************/
-# Test that default values of Cached_item are not used for comparison
-create table t1 (s1 int);
-create table t2 (s2 int);
-insert into t1 values (5),(1),(0);
-insert into t2 values (0), (1);
-select s2 from t2 where s2 in (select s1 from t1);
-s2
-0
-1
-drop table t1, t2;
-create table t1 (a int not null, b int not null);
-create table t2 (c int not null, d int not null);
-create table t3 (e int not null);
-insert into t1 values (1,10);
-insert into t1 values (1,20);
-insert into t1 values (2,10);
-insert into t1 values (2,20);
-insert into t1 values (2,30);
-insert into t1 values (3,20);
-insert into t1 values (4,40);
-insert into t2 values (2,10);
-insert into t2 values (2,20);
-insert into t2 values (2,40);
-insert into t2 values (3,20);
-insert into t2 values (4,10);
-insert into t2 values (5,10);
-insert into t3 values (10);
-insert into t3 values (10);
-insert into t3 values (20);
-insert into t3 values (30);
-explain extended
-select a from t1 where a in (select c from t2 where d >= 20);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 7 100.00 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,`test`.`t1`.`a` in ( <materialize> (/* select#2 */ select `test`.`t2`.`c` from `test`.`t2` where `test`.`t2`.`d` >= 20 ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`c`))))
-select a from t1 where a in (select c from t2 where d >= 20);
-a
-2
-2
-2
-3
-create index it1a on t1(a);
-explain extended
-select a from t1 where a in (select c from t2 where d >= 20);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL it1a 4 NULL 7 100.00 Using where; Using index
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,`test`.`t1`.`a` in ( <materialize> (/* select#2 */ select `test`.`t2`.`c` from `test`.`t2` where `test`.`t2`.`d` >= 20 ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`c`))))
-select a from t1 where a in (select c from t2 where d >= 20);
-a
-2
-2
-2
-3
-insert into t2 values (1,10);
-explain extended
-select a from t1 where a in (select c from t2 where d >= 20);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL it1a 4 NULL 7 100.00 Using where; Using index
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 7 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,`test`.`t1`.`a` in ( <materialize> (/* select#2 */ select `test`.`t2`.`c` from `test`.`t2` where `test`.`t2`.`d` >= 20 ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`c`))))
-select a from t1 where a in (select c from t2 where d >= 20);
-a
-2
-2
-2
-3
-explain extended
-select a from t1 group by a having a in (select c from t2 where d >= 20);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL it1a 4 NULL 7 100.00 Using index
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 7 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` group by `test`.`t1`.`a` having <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,`test`.`t1`.`a` in ( <materialize> (/* select#2 */ select `test`.`t2`.`c` from `test`.`t2` where `test`.`t2`.`d` >= 20 ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`c`))))
-select a from t1 group by a having a in (select c from t2 where d >= 20);
-a
-2
-3
-create index iab on t1(a, b);
-explain extended
-select a from t1 group by a having a in (select c from t2 where d >= 20);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL it1a 4 NULL 7 100.00 Using index
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 7 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` group by `test`.`t1`.`a` having <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,`test`.`t1`.`a` in ( <materialize> (/* select#2 */ select `test`.`t2`.`c` from `test`.`t2` where `test`.`t2`.`d` >= 20 ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`c`))))
-select a from t1 group by a having a in (select c from t2 where d >= 20);
-a
-2
-3
-explain extended
-select a from t1 group by a
-having a in (select c from t2 where d >= some(select e from t3 where max(b)=e));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL iab 8 NULL 7 100.00 Using index
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 7 100.00 Using where
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.b' of SELECT #3 was resolved in SELECT #1
-Note 1981 Aggregate function 'max()' of SELECT #3 belongs to SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` group by `test`.`t1`.`a` having <expr_cache><`test`.`t1`.`a`,`test`.`t1`.`b`,max(`test`.`t1`.`b`),max(`test`.`t1`.`b`)>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `test`.`t2`.`c` from `test`.`t2` where <nop>(<expr_cache><`test`.`t2`.`d`,`test`.`t1`.`b`,max(`test`.`t1`.`b`),max(`test`.`t1`.`b`)>(<in_optimizer>(`test`.`t2`.`d`,<exists>(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where max(`test`.`t1`.`b`) = `test`.`t3`.`e` having <cache>(`test`.`t2`.`d`) >= <ref_null_helper>(`test`.`t3`.`e`))))) and <cache>(`test`.`t1`.`a`) = `test`.`t2`.`c`)))
-select a from t1 group by a
-having a in (select c from t2 where d >= some(select e from t3 where max(b)=e));
-a
-2
-3
-explain extended
-select a from t1
-where a in (select c from t2 where d >= some(select e from t3 where b=e));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL iab 8 NULL 7 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 7 100.00 Using where
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.b' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`,`test`.`t1`.`b`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `test`.`t2`.`c` from `test`.`t2` where <nop>(<expr_cache><`test`.`t2`.`d`,`test`.`t1`.`b`>(<in_optimizer>(`test`.`t2`.`d`,<exists>(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`e` and <cache>(`test`.`t2`.`d`) >= `test`.`t3`.`e`)))) and <cache>(`test`.`t1`.`a`) = `test`.`t2`.`c`)))
-select a from t1
-where a in (select c from t2 where d >= some(select e from t3 where b=e));
-a
-1
-2
-2
-2
-3
-drop table t1, t2, t3;
-create table t2 (a int, b int, key(a), key(b));
-insert into t2 values (3,3),(3,3),(3,3);
-select 1 from t2 where
-t2.a > 1
-or
-t2.a = 3 and not t2.a not in (select t2.b from t2);
-1
-1
-1
-1
-drop table t2;
-create table t1 (a1 int key);
-create table t2 (b1 int);
-insert into t1 values (5);
-explain select min(a1) from t1 where 7 in (select max(b1) from t2 group by b1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-select min(a1) from t1 where 7 in (select max(b1) from t2 group by b1);
-min(a1)
-NULL
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='materialization=off,in_to_exists=on';
-explain select min(a1) from t1 where 7 in (select max(b1) from t2 group by b1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-select min(a1) from t1 where 7 in (select max(b1) from t2 group by b1);
-min(a1)
-NULL
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='semijoin=off';
-explain select min(a1) from t1 where 7 in (select b1 from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-select min(a1) from t1 where 7 in (select b1 from t2);
-min(a1)
-NULL
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='materialization=off,in_to_exists=on';
-# with MariaDB and MWL#90, this particular case is solved:
-explain select min(a1) from t1 where 7 in (select b1 from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-select min(a1) from t1 where 7 in (select b1 from t2);
-min(a1)
-NULL
-# but when we go around MWL#90 code, the problem still shows up:
-explain select min(a1) from t1 where 7 in (select b1 from t2) or 2> 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-select min(a1) from t1 where 7 in (select b1 from t2) or 2> 4;
-min(a1)
-NULL
-set @@optimizer_switch= @save_optimizer_switch;
-drop table t1,t2;
-create table t1 (a char(2), b varchar(10));
-insert into t1 values ('a', 'aaa');
-insert into t1 values ('aa', 'aaaa');
-explain select a,b from t1 where b in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-select a,b from t1 where b in (select a from t1);
-a b
-prepare st1 from "select a,b from t1 where b in (select a from t1)";
-execute st1;
-a b
-execute st1;
-a b
-drop table t1;
-#
-# BUG#49630: Segfault in select_describe() with double
-# nested subquery and materialization
-#
-CREATE TABLE t1 (t1i int);
-CREATE TABLE t2 (t2i int);
-CREATE TABLE t3 (t3i int);
-CREATE TABLE t4 (t4i int);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (1),(2);
-INSERT INTO t3 VALUES (1),(2);
-INSERT INTO t4 VALUES (1),(2);
-
-EXPLAIN
-SELECT t1i
-FROM t1 JOIN t4 ON t1i=t4i
-WHERE (t1i) IN (
-SELECT t2i
-FROM t2
-WHERE (t2i) IN (
-SELECT max(t3i)
-FROM t3
-GROUP BY t3i
-)
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t4 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using where
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 2 Using temporary
-DROP TABLE t1,t2,t3,t4;
-CREATE TABLE t1 (
-pk INTEGER AUTO_INCREMENT,
-col_int_nokey INTEGER,
-col_int_key INTEGER,
-col_varchar_key VARCHAR(1),
-PRIMARY KEY (pk),
-KEY (col_int_key),
-KEY (col_varchar_key, col_int_key)
-)
-;
-INSERT INTO t1 (
-col_int_key, col_int_nokey, col_varchar_key
-)
-VALUES
-(2, NULL, 'w'),
-(9, 7, 'm'),
-(3, 9, 'm'),
-(9, 7, 'k'),
-(NULL, 4, 'r'),
-(9, 2, 't'),
-(3, 6, 'j'),
-(8, 8, 'u'),
-(8, NULL, 'h'),
-(53, 5, 'o'),
-(0, NULL, NULL),
-(5, 6, 'k'),
-(166, 188, 'e'),
-(3, 2, 'n'),
-(0, 1, 't'),
-(1, 1, 'c'),
-(9, 0, 'm'),
-(5, 9, 'y'),
-(6, NULL, 'f'),
-(2, 4, 'd')
-;
-SELECT table2.col_varchar_key AS field1,
-table2.col_int_nokey AS field2
-FROM ( t1 AS table1 LEFT OUTER JOIN t1 AS table2
-ON (table2.col_varchar_key = table1.col_varchar_key ) )
-WHERE table1.pk = 6
-HAVING ( field2 ) IN
-( SELECT SUBQUERY2_t2.col_int_nokey AS SUBQUERY2_field2
-FROM ( t1 AS SUBQUERY2_t1 JOIN t1 AS SUBQUERY2_t2
-ON (SUBQUERY2_t2.col_varchar_key = SUBQUERY2_t1.col_varchar_key ) ) )
-ORDER BY field2
-;
-field1 field2
-t 1
-t 2
-drop table t1;
-#
-# BUG#53103: MTR test ps crashes in optimize_cond()
-# when running with --debug
-#
-CREATE TABLE t1(track varchar(15));
-INSERT INTO t1 VALUES ('CAD'), ('CAD');
-PREPARE STMT FROM
-"SELECT 1 FROM t1
- WHERE
- track IN (SELECT track FROM t1
- GROUP BY track
- HAVING track>='CAD')";
-EXECUTE STMT ;
-1
-1
-1
-EXECUTE STMT ;
-1
-1
-1
-DEALLOCATE PREPARE STMT;
-DROP TABLE t1;
-# End of BUG#53103
-#
-# BUG#54511 - Assertion failed: cache != 0L in file
-# sql_select.cc::sub_select_cache on HAVING
-#
-CREATE TABLE t1 (i int(11));
-CREATE TABLE t2 (c char(1));
-CREATE TABLE t3 (c char(1));
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES ('a'), ('b');
-INSERT INTO t3 VALUES ('x'), ('y');
-SELECT COUNT( i ),i
-FROM t1
-HAVING ('c')
-IN (SELECT t2.c FROM (t2 JOIN t3));
-COUNT( i ) i
-DROP TABLE t1,t2,t3;
-# End BUG#54511
-#
-# BUG#56367 - Assertion exec_method != EXEC_MATERIALIZATION...
-# on subquery in FROM
-#
-CREATE TABLE t1 (a INTEGER);
-CREATE TABLE t2 (b INTEGER);
-INSERT INTO t2 VALUES (1);
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-explain SELECT a FROM (
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.a > 3 OR t2.b IN (SELECT a FROM t1)
-) table1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-3 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT a FROM (
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.a > 3 OR t2.b IN (SELECT a FROM t1)
-) table1;
-a
-set optimizer_switch=@tmp_optimizer_switch;
-DROP TABLE t1, t2;
-# End BUG#56367
-#
-# Bug#59833 - materialization=on/off leads to different result set
-# when using IN
-#
-CREATE TABLE t1 (
-pk int NOT NULL,
-f1 int DEFAULT NULL,
-PRIMARY KEY (pk)
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-pk int NOT NULL,
-f1 int DEFAULT NULL,
-PRIMARY KEY (pk)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (10,0);
-INSERT INTO t2 VALUES (10,0),(11,0);
-explain SELECT * FROM t1 JOIN t2 USING (f1)
-WHERE t1.f1 IN (SELECT t1.pk FROM t1 ORDER BY t1.f1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t1 system NULL NULL NULL NULL 1
-SELECT * FROM t1 JOIN t2 USING (f1)
-WHERE t1.f1 IN (SELECT t1.pk FROM t1 ORDER BY t1.f1);
-f1 pk pk
-DROP TABLE t1, t2;
-# End Bug#59833
-#
-# Bug#11852644 - CRASH IN ITEM_REF::SAVE_IN_FIELD ON SELECT DISTINCT
-#
-CREATE TABLE t1 (
-col_varchar_key varchar(1) DEFAULT NULL,
-col_varchar_nokey varchar(1) DEFAULT NULL,
-KEY col_varchar_key (col_varchar_key))
-;
-INSERT INTO t1 VALUES
-('v','v'),('r','r');
-CREATE TABLE t2 (
-col_varchar_key varchar(1) DEFAULT NULL,
-col_varchar_nokey varchar(1) DEFAULT NULL,
-KEY col_varchar_key(col_varchar_key))
-;
-INSERT INTO t2 VALUES
-('r','r'),('c','c');
-CREATE VIEW v3 AS SELECT * FROM t2;
-SELECT DISTINCT alias2.col_varchar_key
-FROM t1 AS alias1 JOIN v3 AS alias2
-ON alias2.col_varchar_key = alias1.col_varchar_key
-HAVING col_varchar_key IN (SELECT col_varchar_nokey FROM t2)
-;
-col_varchar_key
-r
-DROP TABLE t1, t2;
-DROP VIEW v3;
-# End Bug#11852644
-
-# Bug#12668294 - GROUP BY ON EMPTY RESULT GIVES EMPTY ROW
-# INSTEAD OF NULL WHEN MATERIALIZATION ON
-
-CREATE TABLE t1 (col_int_nokey INT) ENGINE=MEMORY;
-CREATE TABLE t2 (col_int_nokey INT) ENGINE=MEMORY;
-INSERT INTO t2 VALUES (8),(7);
-CREATE TABLE t3 (col_int_nokey INT) ENGINE=MEMORY;
-INSERT INTO t3 VALUES (7);
-SELECT MIN(t3.col_int_nokey),t1.col_int_nokey AS field3
-FROM t3
-LEFT JOIN t1
-ON t1.col_int_nokey
-WHERE (194, 200) IN (
-SELECT SQ4_alias1.col_int_nokey,
-SQ4_alias2.col_int_nokey
-FROM t2 AS SQ4_alias1
-JOIN
-t2 AS SQ4_alias2
-ON SQ4_alias2.col_int_nokey = 5
-)
-GROUP BY field3 ;
-MIN(t3.col_int_nokey) field3
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t3;
-CREATE TABLE t1 (f1 INT, f2 DECIMAL(5,3)) ENGINE=MyISAM;
-INSERT INTO t1 (f1, f2) VALUES (1, 1.789);
-INSERT INTO t1 (f1, f2) VALUES (13, 1.454);
-INSERT INTO t1 (f1, f2) VALUES (10, 1.668);
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 VALUES (1, 1.789);
-INSERT INTO t2 VALUES (13, 1.454);
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch=@optimizer_switch_local_default;
-SET @@optimizer_switch='semijoin=on,materialization=on';
-EXPLAIN SELECT COUNT(*) FROM t1 WHERE (f1,f2) IN (SELECT f1,f2 FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT COUNT(*) FROM t1 WHERE (f1,f2) IN (SELECT f1,f2 FROM t2);
-COUNT(*)
-2
-set @@optimizer_switch= @save_optimizer_switch;
-DROP TABLE t1, t2;
-CREATE TABLE t1 (
-pk int,
-a varchar(1),
-b varchar(4),
-c varchar(4),
-d varchar(4),
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (1,'o','ffff','ffff','ffoo'),(2,'f','ffff','ffff','ffff');
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 VALUES (1,'i','iiii','iiii','iiii'),(2,'f','ffff','ffff','ffff');
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch=@optimizer_switch_local_default;
-SET @@optimizer_switch='semijoin=on,materialization=on';
-EXPLAIN SELECT pk FROM t1 WHERE (a) IN (SELECT a FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t2 range PRIMARY PRIMARY 4 NULL 2 Using index condition; Using where; Rowid-ordered scan
-SELECT pk FROM t1 WHERE (a) IN (SELECT a FROM t2 WHERE pk > 0);
-pk
-2
-SELECT pk FROM t1 WHERE (b,c,d) IN (SELECT b,c,d FROM t2 WHERE pk > 0);
-pk
-2
-DROP TABLE t1, t2;
-set optimizer_switch=@save_optimizer_switch;
-#
-# BUG#50019: Wrong result for IN-subquery with materialization
-#
-create table t1(i int);
-insert into t1 values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-create table t2(i int);
-insert into t2 values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-create table t3(i int);
-insert into t3 values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-select * from t1 where t1.i in (select t2.i from t2 join t3 where t2.i + t3.i = 5);
-i
-1
-2
-3
-4
-set @save_optimizer_switch=@@optimizer_switch;
-set session optimizer_switch='materialization=off,in_to_exists=on';
-select * from t1 where t1.i in (select t2.i from t2 join t3 where t2.i + t3.i = 5);
-i
-1
-2
-3
-4
-set session optimizer_switch=@save_optimizer_switch;
-drop table t1, t2, t3;
-create table t0 (a int);
-insert into t0 values (0),(1),(2);
-create table t1 (a int);
-insert into t1 values (0),(1),(2);
-explain select a, a in (select a from t1) from t0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 3
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 3
-select a, a in (select a from t1) from t0;
-a a in (select a from t1)
-0 1
-1 1
-2 1
-prepare s from 'select a, a in (select a from t1) from t0';
-execute s;
-a a in (select a from t1)
-0 1
-1 1
-2 1
-update t1 set a=123;
-execute s;
-a a in (select a from t1)
-0 0
-1 0
-2 0
-drop table t0, t1;
-set optimizer_switch='firstmatch=on';
-#
-# MWL#90, review feedback: check what happens when the subquery
-# looks like candidate for MWL#90 checking at the first glance
-# but then subselect_hash_sj_engine::init_permanent() discovers
-# that it's not possible to perform duplicate removal for the
-# selected datatypes, and so materialization isn't applicable after
-# all.
-#
-set @blob_len = 1024;
-set @suffix_len = @blob_len - @prefix_len;
-create table t1_1024 (a1 blob(1024), a2 blob(1024));
-create table t2_1024 (b1 blob(1024), b2 blob(1024));
-insert into t1_1024 values
-(concat('1 - 00', repeat('x', @suffix_len)), concat('2 - 00', repeat('x', @suffix_len)));
-insert into t1_1024 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t1_1024 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_1024 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t2_1024 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_1024 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-explain select left(a1,7), left(a2,7) from t1_1024 where (a1,3) in (select substring(b1,1,1024), count(*) from t2_1024 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_1024 ALL NULL NULL NULL NULL 3 Using where
-2 DEPENDENT SUBQUERY t2_1024 ALL NULL NULL NULL NULL 3 Using where
-select left(a1,7), left(a2,7) from t1_1024 where (a1,3) in (select substring(b1,1,1024), count(*) from t2_1024 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-drop table t1_1024, t2_1024;
-#
-# BUG##836491: Crash in Item_field::Item_field from add_ref_to_table_cond() with semijoin+materialization
-#
-CREATE TABLE t1 (c int, d varchar(1), KEY(d)) ;
-INSERT INTO t1 VALUES (2,'x'),(2,'x'),(2,'j'),(2,'c');
-CREATE TABLE t2 (a int, d varchar(1)) ;
-INSERT INTO t2 VALUES (1,'x');
-CREATE TABLE t3 (d varchar(1)) ;
-INSERT INTO t3 VALUES ('x'),('x'),('j'),('c');
-SELECT t2.a, t1.c
-FROM t1, t2
-WHERE t2.d IN ( SELECT d FROM t3 )
-AND t1.d = t2.d
-GROUP BY 1 , 2;
-a c
-1 2
-drop table t1,t2,t3;
-#
-# BUG#836523: Crash in JOIN::get_partial_cost_and_fanout with semijoin+materialization
-#
-CREATE TABLE t1 (a varchar(1));
-INSERT INTO t1 VALUES ('a'),('a');
-CREATE TABLE t2 (a varchar(1));
-CREATE TABLE t3 (a int);
-INSERT INTO t3 VALUES (1),(2);
-CREATE TABLE t4 (a varchar(1));
-INSERT INTO t4 VALUES ('a'),('a');
-SELECT t1.a
-FROM t1
-WHERE t1.a IN (
-SELECT t2.a
-FROM t2, t3
-)
-HAVING a IN (
-SELECT a
-FROM t4
-);
-a
-DROP TABLE t1, t2, t3, t4;
-#
-# BUG#836507: Crash in setup_sj_materialization_part1() with semijoin+materialization
-#
-CREATE TABLE t1 (a int) ;
-INSERT IGNORE INTO t1 VALUES (1),(1);
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES (1);
-CREATE TABLE t3 (a int);
-CREATE TABLE t4 (a int);
-INSERT INTO t4 VALUES (2),(2);
-CREATE TABLE t5 (a int);
-INSERT INTO t5 VALUES (1);
-SELECT * FROM t1
-WHERE (a) IN (
-SELECT t5.a
-FROM (
-t2
-LEFT JOIN ( t3 , t4 )
-ON 1 = 1
-)
-JOIN t5
-);
-a
-1
-1
-DROP TABLE t1,t2,t3,t4,t5;
-#
-# BUG#836532: Crash in Item_equal_fields_iterator::get_curr_field with semijoin+materialization
-#
-CREATE TABLE t2 (a int);
-INSERT IGNORE INTO t2 VALUES ('a'),('a');
-Warnings:
-Warning 1366 Incorrect integer value: 'a' for column 'a' at row 1
-Warning 1366 Incorrect integer value: 'a' for column 'a' at row 2
-CREATE TABLE t4 (a varchar(1));
-INSERT INTO t4 VALUES ('m'),('o');
-CREATE TABLE t3 (a varchar(1) , b varchar(1) ) ;
-INSERT INTO t3 VALUES ('b','b');
-CREATE TABLE t5 (a varchar(1), KEY (a)) ;
-INSERT INTO t5 VALUES ('d'),('e');
-SELECT *
-FROM t2
-WHERE t2.a = ALL (
-SELECT t4.a
-FROM t4
-WHERE t4.a IN (
-SELECT t3.a
-FROM t3 , t5
-WHERE ( t5.a = t3.b )
-)
-);
-a
-0
-0
-DROP TABLE t2,t3,t4,t5;
-#
-# BUG#860300: Second crash with get_fanout_with_deps() with semijoin + materialization
-#
-set @tmp_860300=@@optimizer_switch;
-set optimizer_switch='semijoin=on,materialization=on,loosescan=off,firstmatch=off';
-CREATE TABLE t1 (f2 int);
-INSERT INTO t1 VALUES (9),(6);
-CREATE TABLE t3 (f4 int);
-CREATE TABLE t4 (f6 varchar(1));
-SELECT *
-FROM t3
-WHERE 'h' IN (SELECT f6
-FROM t4
-WHERE 5 IN (SELECT f2 FROM t1)
-GROUP BY t4.f6);
-f4
-DROP TABLE t1,t3,t4;
-set optimizer_switch=@tmp_860300;
-#
-# BUG#860535: Assertion `keypart_map' failed in mi_rkey with semijoin
-#
-set @tmp_860535=@@optimizer_switch;
-set optimizer_switch='semijoin=on,materialization=on,loosescan=off,firstmatch=off';
-CREATE TABLE t1 (f3 int) ;
-INSERT INTO t1 VALUES (1),(7);
-CREATE TABLE t2 (f3 int , f5 varchar(1), KEY (f3)) ;
-INSERT INTO t2 VALUES (7,'b');
-CREATE TABLE t3 (f3 int , f4 varchar(1) , KEY(f3), KEY (f4,f3)) ;
-INSERT INTO t3 VALUES (1,'t'),(7,'g');
-CREATE TABLE t4
-SELECT f3
-FROM t1 WHERE ( f3 ) NOT IN (
-SELECT f3
-FROM t2
-WHERE f5 IN (
-SELECT f4
-FROM t3
-WHERE t3.f3 < 3
-)
-);
-SELECT * FROM t4;
-f3
-1
-7
-DROP TABLE t1, t2, t3, t4;
-set optimizer_switch=@tmp_860535;
-#
-# BUG#860553: Crash in create_ref_for_key with semijoin + materialization
-#
-CREATE TABLE t1 (f1 int) ;
-CREATE TABLE t2 (f5 varchar(52) NOT NULL) ;
-CREATE TABLE t3 (f1 varchar(3), f4 varchar(52) , KEY (f4), PRIMARY KEY (f1));
-CREATE TABLE t4 (f3 int, KEY (f3));
-INSERT INTO t4 VALUES (17),(20);
-CREATE TABLE t5 (f2 int);
-INSERT INTO t5 VALUES (0),(0);
-SELECT *
-FROM t1
-JOIN t2
-ON ( t2.f5 ) IN (
-SELECT t3.f4
-FROM t3
-WHERE ( 1 ) IN (
-SELECT t4.f3
-FROM t4 , t5
-)
-);
-f1 f5
-DROP TABLE t1, t2, t3, t4, t5;
-#
-# BUG#868908: Crash in check_simple_equality() with semijoin + materialization + prepared statement
-#
-CREATE TABLE t1 ( a int );
-CREATE TABLE t3 ( b int, c int) ;
-CREATE TABLE t2 ( a int ) ;
-CREATE TABLE t4 ( a int , c int) ;
-PREPARE st1 FROM "
-SELECT STRAIGHT_JOIN *
-FROM t1
-WHERE ( 3 ) IN (
- SELECT t3.b
- FROM t3
- LEFT JOIN (
- t2 STRAIGHT_JOIN t4 ON ( t4.c = t2.a )
- ) ON ( t4.a = t3.c )
-);
-";
-EXECUTE st1;
-a
-EXECUTE st1;
-a
-DROP TABLE t1,t2,t3,t4;
-#
-# BUG#901032: Wrong result for MIN/MAX on an indexed column with materialization and semijoin
-#
-CREATE TABLE t1 ( a INT, KEY(a) );
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 ( b INT );
-INSERT INTO t2 VALUES (2);
-CREATE TABLE t3 ( c INT );
-INSERT INTO t3 VALUES (2);
-SELECT MIN(a) FROM t1, t2 WHERE b IN (SELECT c FROM t3 GROUP BY c);
-MIN(a)
-1
-DROP TABLE t1,t2,t3;
-#
-#
-# BUG#902632: Crash or invalid read at st_join_table::cleanup, st_table::disable_keyread
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1), (2);
-CREATE TABLE t2 ( b INT );
-INSERT INTO t2 VALUES (3), (4);
-CREATE TABLE t3 ( c INT );
-INSERT INTO t3 VALUES (5), (6);
-SELECT * FROM t1 WHERE EXISTS (
-SELECT DISTINCT b FROM t2
-WHERE b <= a
-AND b IN ( SELECT c FROM t3 GROUP BY c )
-);
-a
-DROP TABLE t1,t2,t3;
-#
-# BUG#901506: Crash in TABLE_LIST::print on EXPLAIN EXTENDED
-#
-CREATE TABLE t1 ( a INT, KEY(a) );
-INSERT INTO t1 VALUES (8);
-EXPLAIN EXTENDED
-SELECT * FROM t1
-WHERE a IN ( SELECT MIN(a) FROM t1 );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 /* select#1 */ select 8 AS `a` from dual where <expr_cache><8>(<in_optimizer>(8,<exists>(/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1` having <cache>(8) = <ref_null_helper>(min(`test`.`t1`.`a`)))))
-DROP TABLE t1;
-#
-# BUG#904432: Wrong result with LEFT JOIN, constant table, semijoin=ON,materialization=ON
-#
-CREATE TABLE t1 ( a INT ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4);
-CREATE TABLE t2 ( b INT NOT NULL, c INT );
-INSERT INTO t2 VALUES (4,2),(4,2),(4,4),(1,1);
-SELECT * FROM t1 LEFT JOIN t2 ON ( a = b )
-WHERE a IN ( SELECT c FROM t2 );
-a b c
-4 4 2
-4 4 2
-4 4 4
-DROP TABLE t1,t2;
-#
-# BUG#922254: Assertion `0' failed at item_cmpfunc.cc:5899: Item* Item_equal::get_first(JOIN_TAB*, Item*)
-#
-CREATE TABLE t1 ( a VARCHAR(3) );
-CREATE TABLE t2 ( b VARCHAR(3), c VARCHAR(8), KEY(c) );
-INSERT INTO t2 VALUES ('USA','Abilene'),('USA','Akron');
-EXPLAIN
-SELECT * FROM
-( SELECT * FROM t1 ) AS alias1,
-t2 AS alias2
-WHERE b = a AND a IN (
-SELECT alias3.c
-FROM t2 AS alias3, t2 AS alias4
-WHERE alias4.c = alias3.b
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-3 MATERIALIZED alias3 ALL NULL NULL NULL NULL 2
-3 MATERIALIZED alias4 index c c 11 NULL 2 Using where; Using index; Using join buffer (flat, BNL join)
-DROP TABLE t1,t2;
-#
-# BUG#928048: Query containing IN subquery with OR in the where clause returns a wrong result
-#
-create table t1 (a int, b int);
-insert into t1 values (7,5), (3,3), (5,4), (9,3);
-create table t2 (a int, b int, index i_a(a));
-insert into t2 values
-(4,2), (7,9), (7,4), (3,1), (5,3), (3,1), (9,4), (8,1);
-explain select * from t1 where t1.a in (select a from t2 where t2.a=7 or t2.b<=1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 MATERIALIZED t2 ALL i_a NULL NULL NULL 8 Using where
-select * from t1 where t1.a in (select a from t2 where t2.a=7 or t2.b<=1);
-a b
-7 5
-3 3
-drop table t1,t2;
-#
-# BUG#933407: Valgrind warnings in mark_as_null_row with materialization+semijoin, STRAIGHT_JOIN, impossible WHERE
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0),(8);
-SELECT STRAIGHT_JOIN MIN(a) FROM t1
-WHERE a IN (
-SELECT a FROM t1
-WHERE 'condition'='impossible'
- );
-MIN(a)
-NULL
-DROP TABLE t1;
-#
-# BUG#938131: Subquery materialization is not used in CREATE TABLE SELECT
-#
-CREATE TABLE t1(a int);
-INSERT INTO t1 values(1),(2);
-CREATE TABLE t2(a int);
-INSERT INTO t2 values(1),(2);
-# Should use Materialization:
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT * FROM t2 GROUP BY a HAVING a > 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using temporary
-flush status;
-CREATE TABLE t3 SELECT * FROM t1 WHERE a IN (SELECT * FROM t2 GROUP BY a HAVING a > 1);
-SHOW STATUS LIKE 'Created_tmp_tables';
-Variable_name Value
-Created_tmp_tables 3
-DROP TABLE t1,t2,t3;
-#
-# BUG#939009: Crash with aggregate function in IN subquery
-#
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='materialization=on,semijoin=on';
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (7,1), (4,2), (7,7);
-CREATE TABLE t2 ( c INT );
-INSERT INTO t2 VALUES (4), (7), (6);
-EXPLAIN EXTENDED
-SELECT * FROM t1
-WHERE a IN (SELECT MAX(c) FROM t2) AND b=7 AND (a IS NULL OR a=b);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> const distinct_key distinct_key 4 const 1 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from <materialize> (/* select#2 */ select max(`test`.`t2`.`c`) from `test`.`t2`) join `test`.`t1` where `test`.`t1`.`b` = 7 and `test`.`t1`.`a` = `<subquery2>`.`MAX(c)` and (<cache>(`<subquery2>`.`MAX(c)` is null) or `<subquery2>`.`MAX(c)` = 7)
-SELECT * FROM t1
-WHERE a IN (SELECT MAX(c) FROM t2) AND b=7 AND (a IS NULL OR a=b);
-a b
-7 7
-EXPLAIN
-SELECT * FROM t1
-WHERE a IN (SELECT MAX(c) FROM t2 WHERE c < 4) AND b=7 AND (a IS NULL OR a=b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> const distinct_key distinct_key 4 const 1
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 Using where
-SELECT * FROM t1
-WHERE a IN (SELECT MAX(c) FROM t2 WHERE c < 4) AND b=7 AND (a IS NULL OR a=b);
-a b
-SET optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t2;
-#
-# BUG#946055: Crash with semijoin IN subquery when hash join is used
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (7);
-CREATE TABLE t2 (b int, c int, d varchar(1), e varchar(1), KEY (c), KEY (d, c));
-INSERT INTO t2 VALUES
-(4,2,'v','v'), (6,1,'v','v'), (0,5,'x','x'), (7,1,'x','x'),
-(7,3,'i','i'), (7,1,'e','e'), (1,4,'p','p'), (1,2,'j','j');
-SET @save_optimizer_switch=@@optimizer_switch;
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=2;
-EXPLAIN
-SELECT a, c FROM t1, t2
-WHERE (a, c) IN (SELECT s1.b, s1.c FROM t2 AS s1, t2 AS s2
-WHERE s2.d = s1.e AND s1.e = (SELECT MAX(e) FROM t2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 index NULL c 5 NULL 8 Using where; Using index
-2 MATERIALIZED s2 ref d d 4 const 2 Using where; Using index
-2 MATERIALIZED s1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t2 ALL NULL NULL NULL NULL 8
-SELECT a, c FROM t1, t2
-WHERE (a, c) IN (SELECT s1.b, s1.c FROM t2 AS s1, t2 AS s2
-WHERE s2.d = s1.e AND s1.e = (SELECT MAX(e) FROM t2));
-a c
-7 1
-7 1
-7 1
-SET optimizer_switch='join_cache_hashed=on';
-SET join_cache_level=4;
-EXPLAIN
-SELECT a, c FROM t1, t2
-WHERE (a, c) IN (SELECT s1.b, s1.c FROM t2 AS s1, t2 AS s2
-WHERE s2.d = s1.e AND s1.e = (SELECT MAX(e) FROM t2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 index NULL c 5 NULL 8 Using where; Using index
-2 MATERIALIZED s2 ref d d 4 const 2 Using where; Using index
-2 MATERIALIZED s1 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t2 ALL NULL NULL NULL NULL 8
-SELECT a, c FROM t1, t2
-WHERE (a, c) IN (SELECT s1.b, s1.c FROM t2 AS s1, t2 AS s2
-WHERE s2.d = s1.e AND s1.e = (SELECT MAX(e) FROM t2));
-a c
-7 1
-7 1
-7 1
-SET optimizer_switch=@save_optimizer_switch;
-SET join_cache_level=@save_join_cache_level;
-DROP TABLE t1,t2;
-#
-# BUG#952297: Server crashes on 2nd execution of PS in Field::is_null with semijoin+materialization
-#
-CREATE TABLE t1 ( a VARCHAR(1) );
-INSERT INTO t1 VALUES ('y'),('z');
-CREATE TABLE t2 ( b VARCHAR(1), c VARCHAR(1) );
-INSERT INTO t2 VALUES ('v','v'),('v','v');
-CREATE VIEW v2 AS SELECT * FROM t2;
-PREPARE ps FROM '
-SELECT a FROM t1, v2
-WHERE ( c, b ) IN ( SELECT b, b FROM t2 )
-GROUP BY a ';
-EXECUTE ps;
-a
-y
-z
-EXECUTE ps;
-a
-y
-z
-DROP VIEW v2;
-DROP TABLE t1, t2;
-#
-# BUG#1000269: Wrong result (extra rows) with semijoin+materialization, IN subqueries, join_cache_level>0
-#
-CREATE TABLE t1 (a1 VARCHAR(1), a2 VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('b','b'),('e','e');
-CREATE TABLE t2 (b1 VARCHAR(1), b2 VARCHAR(1), KEY(b1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('v','v'),('s','s'),('l','l'), ('y','y'),('c','c'),('i','i');
-SELECT * FROM t1, t2 WHERE b1 IN ( SELECT b2 FROM t2 WHERE b1 > 'o' ) AND ( b1 < 'l' OR a1 IN ('b','c') );
-a1 a2 b1 b2
-b b v v
-b b s s
-b b y y
-DROP TABLE t1,t2;
-#
-# MDEV-4465: Reproducible crash (mysqld got signal 11) in multi_delete::initialize_tables with semijoin+materialization
-#
-CREATE TABLE t1 (
-id int(11) NOT NULL
-);
-CREATE TABLE t2 (
-id int(11) NOT NULL,
-a_id int(11) DEFAULT NULL
-);
-insert into t1 values (1), (2), (3);
-insert into t2 values (1, 1), (2, 1), (3, 1), (4, 2), (5, 3), (6, 3), (7, 3);
-delete t2 from t2 where a_id in (select * from (select t1.id from t1 limit 2) as x);
-drop table t1,t2;
-# This must be at the end:
-set optimizer_switch=@subselect_sj_mat_tmp;
-set join_cache_level=@save_join_cache_level;
-#
-# MDEV-4908: Assertion `((Item_cond *) cond)->functype() ==
-# ((Item_cond *) new_item)->functype()' fails on a query with
-# IN and equal conditions, AND/OR, materialization+semijoin
-#
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch = 'materialization=on,semijoin=on';
-CREATE TABLE t1 (pk INT, a INT, b INT, PRIMARY KEY(pk)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,3,5),(2,4,6);
-SELECT * FROM t1 WHERE 8 IN ( SELECT MIN(pk) FROM t1 ) AND ( pk = a OR pk = b );
-pk a b
-drop table t1;
-SET optimizer_switch=@save_optimizer_switch;
-#
-# MDEV-5011: ERROR Plugin 'MEMORY' has ref_count=1 after shutdown for SJM queries
-#
-CREATE TABLE t1 (pk INT, a INT, b INT, PRIMARY KEY(pk)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,3,5),(2,4,6);
-SELECT * FROM t1 WHERE 8 IN (SELECT MIN(pk) FROM t1) AND (pk = a OR pk = b);
-pk a b
-DROP TABLE t1;
-#
-# MDEV-5368: Server crashes in Item_in_subselect::optimize on 2nd
-# execution of PS with IN subqueries, materialization+semijoin
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(3);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2;
-INSERT INTO t2 VALUES (8),(9);
-PREPARE stmt FROM "
-SELECT * FROM t1 WHERE 1 IN ( SELECT b FROM v2 WHERE 2 IN ( SELECT MAX(a) FROM t1 ) )
-";
-EXECUTE stmt;
-a
-EXECUTE stmt;
-a
-DROP TABLE t1, t2;
-DROP VIEW v2;
-#
-# MDEV-5811: Server crashes in best_access_path with materialization+semijoin and big_tables=ON
-#
-SET @tmp_mdev5811= @@big_tables;
-SET big_tables = ON;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (3),(4);
-SELECT * FROM t1 AS t1_1, t1 AS t1_2
-WHERE ( t1_1.a, t1_2.a ) IN ( SELECT MAX(b), MIN(b) FROM t2 );
-a a
-DROP TABLE t1,t2;
-SET big_tables=@tmp_mdev5811;
-# End of 5.3 tests
-#
-# MDEV-5056: Wrong result (extra rows) with materialization+semijoin, IN subqueries
-#
-set @tmp_mdev5056=@@join_cache_level;
-SET join_cache_level = 2;
-CREATE TABLE t1 ( c1 VARCHAR(2), c2 VARCHAR(2), INDEX(c1) ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-('JP','OM'),('VA','JP'),('CA','ML'),('ML','EG'),('DK','CA'),
-('DK','QA'),('YE','PL'),('TR','ZW'),('DK','SK'),('SK','DK'),
-('RO','ML'),('ML','BG'),('BG','ZW'),('ZW','GE'),('GE','JP'),
-('PL','EG'),('QA','YE'),('WF','DK'),('DK','JP'),('EG','OM');
-CREATE TABLE t2 ( c3 VARCHAR(2), c4 VARCHAR(2) ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('CA','ML'),('IN','HU'),('HU','IN');
-SELECT * FROM t1 AS alias1, t1 AS alias2
-WHERE ( alias2.c2, alias1.c1 ) IN ( SELECT c4, c3 FROM t2 ) AND alias1.c1 IN ( SELECT c2 FROM t1 );
-c1 c2 c1 c2
-CA ML CA ML
-CA ML RO ML
-DROP TABLE t1,t2;
-set join_cache_level=@tmp_mdev5056;
-#
-# MDEV-5368: Server crashes in Item_in_subselect::optimize on 2nd
-# execution of PS with IN subqueries, materialization+semijoin
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(3);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2;
-INSERT INTO t2 VALUES (8),(9);
-PREPARE stmt FROM "
-SELECT * FROM t1 WHERE 1 IN ( SELECT b FROM v2 WHERE 2 IN ( SELECT MAX(a) FROM t1 ) )
-";
-EXECUTE stmt;
-a
-EXECUTE stmt;
-a
-DROP TABLE t1, t2;
-DROP VIEW v2;
-#
-# MDEV-6289 : Unexpected results when querying information_schema
-#
-CREATE TABLE t1 (
-id int(11) unsigned NOT NULL AUTO_INCREMENT,
-db varchar(254) NOT NULL DEFAULT '',
-PRIMARY KEY (id),
-UNIQUE KEY db (db)
-) DEFAULT CHARSET=utf8;
-INSERT INTO t1 (db) VALUES ('mysqltest1'),('mysqltest2'),('mysqltest3'),('mysqltest4');
-drop database if exists mysqltest1;
-drop database if exists mysqltest2;
-drop database if exists mysqltest3;
-drop database if exists mysqltest4;
-create database mysqltest1;
-create database mysqltest2;
-create database mysqltest3;
-create database mysqltest4;
-SELECT db FROM t1 WHERE db IN (SELECT SCHEMA_NAME FROM information_schema.schemata) ORDER BY db DESC;
-db
-mysqltest4
-mysqltest3
-mysqltest2
-mysqltest1
-EXPLAIN EXTENDED
-SELECT db FROM t1 WHERE db IN (SELECT SCHEMA_NAME FROM information_schema.schemata) ORDER BY db DESC;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2 100.00 Using temporary; Using filesort
-1 PRIMARY t1 eq_ref db db 764 information_schema.schemata.SCHEMA_NAME 1 100.00 Using where; Using index
-2 MATERIALIZED schemata ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 select `test`.`t1`.`db` AS `db` from `test`.`t1` semi join (`information_schema`.`schemata`) where `test`.`t1`.`db` = `information_schema`.`schemata`.`SCHEMA_NAME` order by `test`.`t1`.`db` desc
-drop table t1;
-drop database mysqltest1;
-drop database mysqltest2;
-drop database mysqltest3;
-drop database mysqltest4;
-#
-# MDEV-7810 Wrong result on execution of a query as a PS
-# (both 1st and further executions)
-CREATE TABLE t1 (a INT NOT NULL) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (0),(8);
-SELECT a FROM (SELECT DISTINCT * FROM t1) AS sq WHERE a IN (SELECT MIN(t2.a) FROM (t1 AS t2));
-a
-0
-PREPARE stmt FROM "
-SELECT a FROM (SELECT DISTINCT * FROM t1) AS sq WHERE a IN (SELECT MIN(t2.a) FROM (t1 AS t2))
-";
-execute stmt;
-a
-0
-execute stmt;
-a
-0
-drop table t1;
-#
-# MDEV-12429: IN subquery used in WHERE of EXISTS subquery
-#
-CREATE TABLE t1 (
-pk INT, f1 INT NOT NULL, f2 VARCHAR(3), f3 INT NULL, PRIMARY KEY(pk)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,1,'foo',8), (2,5,'bar',7);
-SELECT sq1.f2 FROM t1 AS sq1
-WHERE EXISTS ( SELECT * FROM t1 AS sq2
-WHERE sq1.`pk` IN ( SELECT f1 FROM t1 ) AND sq2.f1 = sq1.f1 );
-f2
-foo
-set @save_optimizer_switch= @@optimizer_switch;
-set optimizer_switch='exists_to_in=off';
-EXPLAIN
-SELECT sq1.f2 FROM t1 AS sq1
-WHERE EXISTS ( SELECT * FROM t1 AS sq2
-WHERE sq1.`pk` IN ( SELECT f1 FROM t1 ) AND sq2.f1 = sq1.f1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY sq1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-2 DEPENDENT SUBQUERY sq2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-# this checks the result set above
-set optimizer_switch= 'materialization=off,semijoin=off';
-SELECT sq1.f2 FROM t1 AS sq1
-WHERE EXISTS ( SELECT * FROM t1 AS sq2
-WHERE sq1.`pk` IN ( SELECT f1 FROM t1 ) AND sq2.f1 = sq1.f1 );
-f2
-foo
-set optimizer_switch= @save_optimizer_switch;
-DROP TABLE t1;
-#
-# MDEV-12145: IN subquery used in WHERE of EXISTS subquery
-#
-CREATE TABLE t1 (f1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4),(6);
-CREATE TABLE t2 (i2 INT, KEY(i2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8),(7),(1);
-CREATE TABLE t3 (f3 INT, i3 INT, KEY(i3)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (8,0),(6,3),(2,8),(3,8),(1,6),(0,0),(1,0),(1,5);
-set @save_optimizer_switch= @@optimizer_switch;
-set optimizer_switch='exists_to_in=off';
-SELECT * FROM t1
-WHERE EXISTS ( SELECT * FROM t2, t3
-WHERE i3 = i2 AND f1 IN ( SELECT f3 FROM t3 ) );
-f1
-6
-EXPLAIN EXTENDED
-SELECT * FROM t1
-WHERE EXISTS ( SELECT * FROM t2, t3
-WHERE i3 = i2 AND f1 IN ( SELECT f3 FROM t3 ) );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY <subquery3> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 DEPENDENT SUBQUERY t2 index i2 i2 5 NULL 3 100.00 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t3 ref i3 i3 5 test.t2.i2 2 100.00 Using index
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 8 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.f1' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`f1` AS `f1` from `test`.`t1` where <expr_cache><`test`.`t1`.`f1`>(exists(/* select#2 */ select 1 from `test`.`t2` semi join (`test`.`t3`) join `test`.`t3` where `test`.`t3`.`i3` = `test`.`t2`.`i2` and `test`.`t1`.`f1` = `test`.`t3`.`f3`))
-# this checks the result set above
-set optimizer_switch= 'materialization=off,semijoin=off';
-SELECT * FROM t1
-WHERE EXISTS ( SELECT * FROM t2, t3
-WHERE i3 = i2 AND f1 IN ( SELECT f3 FROM t3 ) );
-f1
-6
-set optimizer_switch= @save_optimizer_switch;
-DROP TABLE t1,t2,t3;
-#
-# MDEV-9686: IN subquery used in WHERE of a subquery from select list
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY, f1 INT);
-INSERT INTO t1 VALUES (1, 4),(2, 3),(3, 3),(4, 6),(5, 3);
-CREATE TABLE t2 (f2 INT);
-INSERT INTO t2 VALUES (1),(2),(3),(4),(5);
-# t1.pk is always IN ( SELECT f2 FROM t2 ),
-# so the IN condition should be true for every row,
-# and thus COUNT(*) should always return 5
-SELECT pk, f1, ( SELECT COUNT(*) FROM t2
-WHERE t1.pk IN ( SELECT f2 FROM t2 ) ) AS sq FROM t1;
-pk f1 sq
-1 4 5
-2 3 5
-3 3 5
-4 6 5
-5 3 5
-EXPLAIN EXTENDED
-SELECT pk, f1, ( SELECT COUNT(*) FROM t2
-WHERE t1.pk IN ( SELECT f2 FROM t2 ) ) AS sq FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5 100.00
-2 DEPENDENT SUBQUERY <subquery3> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 5 100.00 Using join buffer (flat, BNL join)
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.pk' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`f1` AS `f1`,<expr_cache><`test`.`t1`.`pk`>((/* select#2 */ select count(0) from `test`.`t2` semi join (`test`.`t2`) where `test`.`t1`.`pk` = `test`.`t2`.`f2`)) AS `sq` from `test`.`t1`
-# this checks the result set above
-set @save_optimizer_switch= @@optimizer_switch;
-set optimizer_switch= 'materialization=off,semijoin=off';
-SELECT pk, f1, ( SELECT COUNT(*) FROM t2
-WHERE t1.pk IN ( SELECT f2 FROM t2 ) ) AS sq FROM t1;
-pk f1 sq
-1 4 5
-2 3 5
-3 3 5
-4 6 5
-5 3 5
-set optimizer_switch= @save_optimizer_switch;
-DROP TABLE t1,t2;
-#
-# mdev-12838: scan of materialized of semi-join subquery in join
-#
-set @save_optimizer_switch=@@optimizer_switch;
-CREATE TABLE t1 (
-dispatch_group varchar(32),
-assignment_group varchar(32),
-sys_id char(32),
-PRIMARY KEY (sys_id),
-KEY idx1 (dispatch_group),
-KEY idx2 (assignment_group)
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-ugroup varchar(32),
-user varchar(32),
-sys_id char(32),
-PRIMARY KEY (sys_id),
-KEY idx3 (ugroup),
-KEY idx4 (user)
-) ENGINE=MyISAM;
-CREATE TABLE t3 (
-type mediumtext,
-sys_id char(32),
-PRIMARY KEY (sys_id)
-) ENGINE=MyISAM;
-set optimizer_switch='materialization=off';
-explain SELECT t1.assignment_group
-FROM t1, t3
-WHERE t1.assignment_group = t3.sys_id AND
-t1.dispatch_group IN
-(SELECT t2.ugroup
-FROM t2, t3 t3_i
-WHERE t2.ugroup = t3_i.sys_id AND
-t3_i.type LIKE '59e22fb137032000158bbfc8bcbe5d52' AND
-t2.user = '86826bf03710200044e0bfc8bcbe5d79');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ref idx3,idx4 idx4 35 const 2 Using index condition; Using where; Start temporary
-1 PRIMARY t3_i eq_ref PRIMARY PRIMARY 32 test.t2.ugroup 1 Using index condition; Using where
-1 PRIMARY t1 ref idx1,idx2 idx1 35 test.t3_i.sys_id 2 Using index condition; Using where; End temporary
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 32 test.t1.assignment_group 1 Using where; Using index
-SELECT t1.assignment_group
-FROM t1, t3
-WHERE t1.assignment_group = t3.sys_id AND
-t1.dispatch_group IN
-(SELECT t2.ugroup
-FROM t2, t3 t3_i
-WHERE t2.ugroup = t3_i.sys_id AND
-t3_i.type LIKE '59e22fb137032000158bbfc8bcbe5d52' AND
-t2.user = '86826bf03710200044e0bfc8bcbe5d79');
-assignment_group
-df50316637232000158bbfc8bcbe5d23
-e08fad2637232000158bbfc8bcbe5d39
-ec70316637232000158bbfc8bcbe5d60
-7b10fd2637232000158bbfc8bcbe5d30
-ebb4620037332000158bbfc8bcbe5d89
-set optimizer_switch='materialization=on';
-explain SELECT t1.assignment_group
-FROM t1, t3
-WHERE t1.assignment_group = t3.sys_id AND
-t1.dispatch_group IN
-(SELECT t2.ugroup
-FROM t2, t3 t3_i
-WHERE t2.ugroup = t3_i.sys_id AND
-t3_i.type LIKE '59e22fb137032000158bbfc8bcbe5d52' AND
-t2.user = '86826bf03710200044e0bfc8bcbe5d79');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2
-1 PRIMARY t1 ref idx1,idx2 idx1 35 test.t2.ugroup 2 Using where
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 32 test.t1.assignment_group 1 Using where; Using index
-2 MATERIALIZED t2 ref idx3,idx4 idx4 35 const 2 Using index condition; Using where
-2 MATERIALIZED t3_i eq_ref PRIMARY PRIMARY 32 test.t2.ugroup 1 Using index condition; Using where
-SELECT t1.assignment_group
-FROM t1, t3
-WHERE t1.assignment_group = t3.sys_id AND
-t1.dispatch_group IN
-(SELECT t2.ugroup
-FROM t2, t3 t3_i
-WHERE t2.ugroup = t3_i.sys_id AND
-t3_i.type LIKE '59e22fb137032000158bbfc8bcbe5d52' AND
-t2.user = '86826bf03710200044e0bfc8bcbe5d79');
-assignment_group
-df50316637232000158bbfc8bcbe5d23
-e08fad2637232000158bbfc8bcbe5d39
-ec70316637232000158bbfc8bcbe5d60
-7b10fd2637232000158bbfc8bcbe5d30
-ebb4620037332000158bbfc8bcbe5d89
-DROP TABLE t1,t2,t3;
-set optimizer_switch=@save_optimizer_switch;
-# End of 5.5 tests
-#
-# MDEV-7220: Materialization strategy is not used for REPLACE ... SELECT
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b int, c int);
-insert into t1
-select A.a+B.a*10+C.a*100, A.a+B.a*10+C.a*100, A.a+B.a*10+C.a*100
-from t0 A, t0 B, t0 C;
-create table t2 (a int, b int, c int);
-insert into t2 select A.a, A.a, A.a from t1 A;
-insert into t2 select * from t2;
-insert into t2 select * from t2;
-create table t3 as select * from t2 limit 1;
-# The testcase only makes sense if the following uses Materialization:
-explain
-select * from t1 where (a,b) in (select max(a),b from t2 group by b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 1000 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 test.t1.a,test.t1.b 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 4000 Using temporary
-flush status;
-replace into t3
-select * from t1 where (a,b) in (select max(a),b from t2 group by b);
-# Sequential reads:
-# 1K is read from t1
-# 4K is read from t2
-# 1K groups is read from the tmp. table
-#
-# Lookups:
-# 4K lookups in group by table
-# 1K lookups in temp.table
-#
-# Writes:
-# 2x 1K writes to temporary tables (grouping table and subquery materialization table
-#
-# The point is that neither counter should be in the millions (this
-# will happen if Materialization is not used
-show status where Variable_name like 'Handler_read%' or Variable_name like 'Handler_%write%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 5000
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 6003
-Handler_tmp_write 2000
-Handler_write 1000
-drop table t0,t1,t2,t3;
-#
-# MDEV-7971: Assertion `name != __null' failed in ACL_internal_schema_registry::lookup
-# on 2nd execution os PS with multi-table update
-#
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 INT);
-INSERT INTO t2 VALUES (3),(4);
-CREATE TABLE t3 (f3 INT);
-INSERT INTO t3 VALUES (5),(6);
-PREPARE stmt FROM '
- UPDATE t1, t2
- SET f1 = 5
- WHERE 8 IN ( SELECT MIN(f3) FROM t3 )
-';
-EXECUTE stmt;
-EXECUTE stmt;
-DROP TABLE t1,t2,t3;
-#
-# MDEV-10389: Query returns different results on a debug vs non-debug build of the same revision
-#
-CREATE TABLE t1 (i1 INT, i2 INT NOT NULL);
-INSERT INTO t1 VALUES (1,4),(2,6);
-SELECT * FROM t1 AS alias1
-WHERE alias1.i1 IN (
-SELECT i1 FROM t1 WHERE alias1.i2 IN ( SELECT i2 FROM t1 HAVING i2 <> 7 )
-);
-i1 i2
-1 4
-2 6
-DROP TABLE t1;
-set @subselect_mat_test_optimizer_switch_value=null;
-set @@optimizer_switch='materialization=on,in_to_exists=off,semijoin=off';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-create table t0 (a int);
-insert into t0 values (0),(1),(2);
-create table t1 (a int);
-insert into t1 values (0),(1),(2);
-explain select a, a in (select a from t1) from t0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 3
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 3
-select a, a in (select a from t1) from t0;
-a a in (select a from t1)
-0 1
-1 1
-2 1
-prepare s from 'select a, a in (select a from t1) from t0';
-execute s;
-a a in (select a from t1)
-0 1
-1 1
-2 1
-update t1 set a=123;
-execute s;
-a a in (select a from t1)
-0 0
-1 0
-2 0
-drop table t0, t1;
-#
-# LPBUG#609121: RQG: wrong result on aggregate + NOT IN + HAVING and
-# partial_match_table_scan=on
-#
-create table t1 (c1 int);
-create table t2 (c2 int);
-insert into t1 values (1);
-insert into t2 values (2);
-set @@optimizer_switch='semijoin=off';
-EXPLAIN
-SELECT SUM(c1) c1_sum FROM t1 WHERE c1 IN (SELECT c2 FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 system NULL NULL NULL NULL 1
-SELECT SUM(c1) c1_sum FROM t1 WHERE c1 IN (SELECT c2 FROM t2);
-c1_sum
-NULL
-EXPLAIN
-SELECT SUM(c1) c1_sum FROM t1 WHERE c1 IN (SELECT c2 FROM t2) HAVING c1_sum;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 system NULL NULL NULL NULL 1
-SELECT SUM(c1) c1_sum FROM t1 WHERE c1 IN (SELECT c2 FROM t2) HAVING c1_sum;
-c1_sum
-drop table t1, t2;
-#
-# BUG#52344 - Subquery materialization:
-# Assertion if subquery in on-clause of outer join
-#
-set @@optimizer_switch='semijoin=off';
-CREATE TABLE t1 (i INTEGER);
-INSERT INTO t1 VALUES (10);
-CREATE TABLE t2 (j INTEGER);
-INSERT INTO t2 VALUES (5);
-CREATE TABLE t3 (k INTEGER);
-EXPLAIN
-SELECT i FROM t1 LEFT JOIN t2 ON (j) IN (SELECT k FROM t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where
-2 MATERIALIZED t3 system NULL NULL NULL NULL 0 Const row not found
-SELECT i FROM t1 LEFT JOIN t2 ON (j) IN (SELECT k FROM t3);
-i
-10
-EXPLAIN
-SELECT i FROM t1 LEFT JOIN t2 ON (j) IN (SELECT max(k) FROM t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where
-2 MATERIALIZED t3 system NULL NULL NULL NULL 0 Const row not found
-SELECT i FROM t1 LEFT JOIN t2 ON (j) IN (SELECT max(k) FROM t3);
-i
-10
-DROP TABLE t1, t2, t3;
-#
-# LPBUG#611622/BUG#52344: Subquery materialization: Assertion
-# if subquery in on-clause of outer join
-#
-CREATE TABLE t1 (c1 int);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (c2 int);
-INSERT INTO t2 VALUES (10);
-PREPARE st1 FROM "
-SELECT *
-FROM t2 LEFT JOIN t2 t3 ON (8, 4) IN (SELECT c1, c1 FROM t1)";
-EXECUTE st1;
-c2 c2
-10 NULL
-EXECUTE st1;
-c2 c2
-10 NULL
-DROP TABLE t1, t2;
-#
-# Testcase backport: BUG#46548 IN-subqueries return 0 rows with materialization=on
-#
-CREATE TABLE t1 (
-pk int,
-a varchar(1),
-b varchar(4),
-c varchar(4),
-d varchar(4),
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (1,'o','ffff','ffff','ffoo'),(2,'f','ffff','ffff','ffff');
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 VALUES (1,'i','iiii','iiii','iiii'),(2,'f','ffff','ffff','ffff');
-SET @@optimizer_switch='default,semijoin=on,materialization=on';
-EXPLAIN SELECT pk FROM t1 WHERE (a) IN (SELECT a FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t2 range PRIMARY PRIMARY 4 NULL 2 Using index condition; Using where
-SELECT pk FROM t1 WHERE (a) IN (SELECT a FROM t2 WHERE pk > 0);
-pk
-2
-SELECT pk FROM t1 WHERE (b,c,d) IN (SELECT b,c,d FROM t2 WHERE pk > 0);
-pk
-2
-DROP TABLE t1, t2;
-#
-# BUG#724228: Wrong result with materialization=on and three aggregates in maria-5.3-mwl90
-#
-CREATE TABLE t1 ( f2 int(11)) ;
-INSERT IGNORE INTO t1 VALUES ('7'),('9'),('7'),('4'),('2'),('6'),('8'),('5'),('6'),('188'),('2'),('1'),('1'),('0'),('9'),('4');
-CREATE TABLE t2 ( f1 int(11), f2 int(11)) ENGINE=MyISAM;
-INSERT IGNORE INTO t2 VALUES ('1','1');
-CREATE TABLE t3 ( f1 int(11), f2 int(11), f3 int(11), PRIMARY KEY (f1)) ;
-INSERT IGNORE INTO t3 VALUES ('16','6','1'),('18','3','4'),('19',NULL,'9'),('20','0','6'),('41','2','0'),('42','2','5'),('43','9','6'),('44','7','4'),('45','1','4'),('46','222','238'),('47','3','6'),('48','6','6'),('49',NULL,'1'),('50','5','1');
-SET @_save_join_cache_level = @@join_cache_level;
-SET @_save_optimizer_switch = @@optimizer_switch;
-SET join_cache_level = 1;
-SET optimizer_switch='materialization=on';
-SELECT f1 FROM t3
-WHERE
-f1 NOT IN (SELECT MAX(f2) FROM t1) AND
-f3 IN (SELECT MIN(f1) FROM t2) AND
-f1 IN (SELECT COUNT(f2) FROM t1);
-f1
-16
-SET @@join_cache_level = @_save_join_cache_level;
-SET @@optimizer_switch = @_save_optimizer_switch;
-drop table t1, t2, t3;
-#
-# LPBUG#719198 Ordered_key::cmp_key_with_search_key(rownum_t): Assertion `!compare_pred[i]->null_value'
-# failed with subquery on both sides of NOT IN and materialization
-#
-CREATE TABLE t1 (f1a int, f1b int) ;
-INSERT IGNORE INTO t1 VALUES (1,1),(2,2);
-CREATE TABLE t2 ( f2 int);
-INSERT IGNORE INTO t2 VALUES (3),(4);
-CREATE TABLE t3 (f3a int, f3b int);
-set @@optimizer_switch='materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off,in_to_exists=off';
-EXPLAIN
-SELECT * FROM t2 WHERE (SELECT f3a FROM t3) NOT IN (SELECT f1a FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t2 WHERE (SELECT f3a FROM t3) NOT IN (SELECT f1a FROM t1);
-f2
-EXPLAIN
-SELECT (SELECT f3a FROM t3) NOT IN (SELECT f1a FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (SELECT f3a FROM t3) NOT IN (SELECT f1a FROM t1);
-(SELECT f3a FROM t3) NOT IN (SELECT f1a FROM t1)
-NULL
-EXPLAIN
-SELECT * FROM t2 WHERE (SELECT f3a, f3b FROM t3) NOT IN (SELECT f1a, f1b FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM t2 WHERE (SELECT f3a, f3b FROM t3) NOT IN (SELECT f1a, f1b FROM t1);
-f2
-EXPLAIN
-SELECT (SELECT f3a, f3b FROM t3) NOT IN (SELECT f1a, f1b FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT (SELECT f3a, f3b FROM t3) NOT IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-drop table t1, t2, t3;
-#
-# LPBUG#730604 Assertion `bit < (map)->n_bits' failed in maria-5.3 with
-# partial_match_rowid_merge
-#
-CREATE TABLE t1 (f1 int NOT NULL, f2 int, f3 int) ;
-CREATE TABLE t2 (f1 int NOT NULL, f2 int, f3 int) ;
-INSERT INTO t1 VALUES (60, 3, null), (61, null, 77);
-INSERT INTO t2 VALUES (1000,6,2);
-set @@optimizer_switch='materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off,in_to_exists=off';
-EXPLAIN
-SELECT (f1, f2, f3) NOT IN
-(SELECT COUNT(DISTINCT f2), f1, f3 FROM t1 GROUP BY f1, f3)
-FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2 Using filesort
-SELECT (f1, f2, f3) NOT IN
-(SELECT COUNT(DISTINCT f2), f1, f3 FROM t1 GROUP BY f1, f3)
-FROM t2;
-(f1, f2, f3) NOT IN
-(SELECT COUNT(DISTINCT f2), f1, f3 FROM t1 GROUP BY f1, f3)
-1
-drop table t1, t2;
-#
-# LPBUG#702301: MAX in select + always false WHERE with SQ
-#
-CREATE TABLE t1 (a int, b int, KEY (b));
-INSERT INTO t1 VALUES (3,1), (4,2);
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES (7), (8);
-set @@optimizer_switch='materialization=on,in_to_exists=off,semijoin=off';
-SELECT MAX(t1.b) AS max_res FROM t1 WHERE (9) IN (SELECT a FROM t2);
-max_res
-NULL
-EXPLAIN EXTENDED
-SELECT MAX(t1.b) AS max_res FROM t1 WHERE (9) IN (SELECT a FROM t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 /* select#1 */ select max(`test`.`t1`.`b`) AS `max_res` from `test`.`t1` where 0
-set @@optimizer_switch='materialization=off,in_to_exists=on,semijoin=off';
-SELECT MAX(t1.b) AS max_res FROM t1 WHERE (9) IN (SELECT a FROM t2);
-max_res
-NULL
-EXPLAIN EXTENDED
-SELECT MAX(t1.b) AS max_res FROM t1 WHERE (9) IN (SELECT a FROM t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select max(`test`.`t1`.`b`) AS `max_res` from `test`.`t1` where 0
-DROP TABLE t1,t2;
-#
-# LPBUG#825095: Wrong result with materialization and NOT IN with 2 expressions
-#
-CREATE TABLE t1 (a int,b int);
-INSERT INTO t1 VALUES (4,4),(4,2);
-CREATE TABLE t2 (b int, a int);
-INSERT INTO t2 VALUES (4,3),(8,4);
-set @@optimizer_switch='semijoin=off,in_to_exists=off,materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off';
-EXPLAIN SELECT *
-FROM t1
-WHERE (a, b) NOT IN (SELECT a, b FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT *
-FROM t1
-WHERE (a, b) NOT IN (SELECT a, b FROM t2);
-a b
-4 4
-4 2
-EXPLAIN
-SELECT a, b, (a, b) NOT IN (SELECT a, b FROM t2) as sq
-FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT a, b, (a, b) NOT IN (SELECT a, b FROM t2) as sq
-FROM t1;
-a b sq
-4 4 1
-4 2 1
-drop table t1, t2;
-#
-# MDEV-15235: Assertion `length > 0' failed in create_ref_for_key
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f CHAR(1));
-INSERT INTO t2 VALUES ('a'),('b');
-explain
-SELECT * FROM t2 WHERE f IN ( SELECT LEFT('foo',0) FROM t1 ORDER BY 1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT * FROM t2 WHERE f IN ( SELECT LEFT('foo',0) FROM t1 ORDER BY 1 );
-f
-DROP TABLE t1, t2;
-#
-# MDEV-9489: Assertion `0' failed in Protocol::end_statement() on
-# UNION ALL
-#
-CREATE TABLE t1 (f1 INT);
-CREATE TABLE t2 (f2 INT);
-INSERT INTO t1 VALUES (1),(2);
-( SELECT 1 FROM t1 WHERE f1 NOT IN ( SELECT f2 FROM t2 ) LIMIT 0 )
-UNION ALL
-( SELECT 1 FROM t1 WHERE f1 NOT IN ( SELECT f2 FROM t2 ) )
-;
-1
-1
-1
-drop table t1, t2;
diff --git a/mysql-test/r/subselect_mat_cost.result b/mysql-test/r/subselect_mat_cost.result
deleted file mode 100644
index a9f980fff5d..00000000000
--- a/mysql-test/r/subselect_mat_cost.result
+++ /dev/null
@@ -1,565 +0,0 @@
-set @subselect_mat_cost=@@optimizer_switch;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set long_query_time=0.1;
-TEST GROUP 1:
-Typical cases of in-to-exists and materialization subquery strategies
-=====================================================================
-drop database if exists world;
-set names utf8;
-create database world;
-use world;
-CREATE TABLE Country (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name)
-);
-CREATE TABLE City (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-);
-CREATE TABLE CountryLanguage (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-);
-Make the schema and data more diverse by adding more indexes, nullable
-columns, and NULL data.
-create index SurfaceArea on Country(SurfaceArea);
-create index Language on CountryLanguage(Language);
-create index CityName on City(Name);
-alter table City change population population int(11) null default 0;
-select max(id) from City into @max_city_id;
-insert into City values (@max_city_id + 1,'Kilifarevo','BGR',NULL);
-SELECT COUNT(*) FROM Country;
-COUNT(*)
-239
-SELECT COUNT(*) FROM City;
-COUNT(*)
-4080
-SELECT COUNT(*) FROM CountryLanguage;
-COUNT(*)
-984
-set @@optimizer_switch = 'in_to_exists=on,semijoin=on,materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on';
-
-1. Subquery in a disjunctive WHERE clause of the outer query.
-
-
-Q1.1m:
-MATERIALIZATION: there are too many rows in the outer query
-to be looked up in the inner table.
-EXPLAIN
-SELECT Name FROM Country
-WHERE (Code IN (select Country from City where City.Population > 100000) OR
-Name LIKE 'L%') AND
-surfacearea > 1000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country ALL Name,SurfaceArea NULL NULL NULL 239 Using where
-2 MATERIALIZED City ALL Population,Country NULL NULL NULL 4080 Using where
-SELECT Name FROM Country
-WHERE (Code IN (select Country from City where City.Population > 100000) OR
-Name LIKE 'L%') AND
-surfacearea > 1000000;
-Name
-Algeria
-Angola
-Argentina
-Australia
-Bolivia
-Brazil
-Egypt
-South Africa
-Ethiopia
-Indonesia
-India
-Iran
-Canada
-Kazakstan
-China
-Colombia
-Congo, The Democratic Republic of the
-Libyan Arab Jamahiriya
-Mali
-Mauritania
-Mexico
-Mongolia
-Niger
-Peru
-Saudi Arabia
-Sudan
-Chad
-Russian Federation
-United States
-Q1.1e:
-IN-EXISTS: the materialization cost is the same as above, but
-there are much fewer outer rows to be looked up, thus the
-materialization cost is too high to compensate for fast lookups.
-EXPLAIN
-SELECT Name FROM Country
-WHERE (Code IN (select Country from City where City.Population > 100000) OR
-Name LIKE 'L%') AND
-surfacearea > 10*1000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country range Name,SurfaceArea SurfaceArea 4 NULL 5 Using index condition; Using where; Rowid-ordered scan
-2 DEPENDENT SUBQUERY City index_subquery Population,Country Country 3 func 18 Using where
-SELECT Name FROM Country
-WHERE (Code IN (select Country from City where City.Population > 100000) OR
-Name LIKE 'L%') AND
-surfacearea > 10*1000000;
-Name
-Russian Federation
-
-Q1.2m:
-MATERIALIZATION: the IN predicate is pushed (attached) to the last table
-in the join order (Country, City), therefore there are too many row
-combinations to filter by re-executing the subquery for each combination.
-EXPLAIN
-SELECT *
-FROM Country, City
-WHERE City.Country = Country.Code AND
-Country.SurfaceArea < 3000 AND Country.SurfaceArea > 10 AND
-(City.Name IN
-(select Language from CountryLanguage where Percentage > 50) OR
-City.name LIKE '%Island%');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country ALL PRIMARY,SurfaceArea NULL NULL NULL 239 Using where
-1 PRIMARY City ref Country Country 3 world.Country.Code 18 Using where
-2 MATERIALIZED CountryLanguage ALL Percentage,Language NULL NULL NULL 984 Using where
-SELECT *
-FROM Country, City
-WHERE City.Country = Country.Code AND
-Country.SurfaceArea < 3000 AND Country.SurfaceArea > 10 AND
-(City.Name IN
-(select Language from CountryLanguage where Percentage > 50) OR
-City.name LIKE '%Island%');
-Code Name SurfaceArea Population Capital ID Name Country population
-CCK Cocos (Keeling) Islands 14.00 600 2317 2317 West Island CCK 167
-Q1.2e:
-IN_EXISTS: join order is the same, but the left IN operand refers to
-only the first table in the join order (Country), so there are much
-fewer rows to filter by subquery re-execution.
-EXPLAIN
-SELECT *
-FROM Country, City
-WHERE City.Country = Country.Code AND
-Country.SurfaceArea < 3000 AND Country.SurfaceArea > 10 AND
-(Country.Name IN
-(select Language from CountryLanguage where Percentage > 50) OR
-Country.name LIKE '%Island%');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country ALL PRIMARY,SurfaceArea NULL NULL NULL 239 Using where
-1 PRIMARY City ref Country Country 3 world.Country.Code 18
-2 DEPENDENT SUBQUERY CountryLanguage index_subquery Percentage,Language Language 30 func 2 Using where
-SELECT *
-FROM Country, City
-WHERE City.Country = Country.Code AND
-Country.SurfaceArea < 3000 AND Country.SurfaceArea > 10 AND
-(Country.Name IN
-(select Language from CountryLanguage where Percentage > 50) OR
-Country.name LIKE '%Island%');
-Code Name SurfaceArea Population Capital ID Name Country population
-VGB Virgin Islands, British 151.00 21000 537 537 Road Town VGB 8000
-CYM Cayman Islands 264.00 38000 553 553 George Town CYM 19600
-COK Cook Islands 236.00 20000 583 583 Avarua COK 11900
-FRO Faroe Islands 1399.00 43000 901 901 Tórshavn FRO 14542
-CXR Christmas Island 135.00 2500 1791 1791 Flying Fish Cove CXR 700
-KIR Kiribati 726.00 83000 2256 2255 Bikenibeu KIR 5055
-KIR Kiribati 726.00 83000 2256 2256 Bairiki KIR 2226
-CCK Cocos (Keeling) Islands 14.00 600 2317 2316 Bantam CCK 503
-CCK Cocos (Keeling) Islands 14.00 600 2317 2317 West Island CCK 167
-MHL Marshall Islands 181.00 64000 2507 2507 Dalap-Uliga-Darrit MHL 28000
-NRU Nauru 21.00 12000 2728 2727 Yangor NRU 4050
-NRU Nauru 21.00 12000 2728 2728 Yaren NRU 559
-NFK Norfolk Island 36.00 2000 2806 2806 Kingston NFK 800
-PLW Palau 459.00 19000 2881 2881 Koror PLW 12000
-MNP Northern Mariana Islands 464.00 78000 2913 2913 Garapan MNP 9200
-TCA Turks and Caicos Islands 430.00 17000 3423 3423 Cockburn Town TCA 4800
-TUV Tuvalu 26.00 12000 3424 3424 Funafuti TUV 4600
-VIR Virgin Islands, U.S. 347.00 93000 4067 4067 Charlotte Amalie VIR 13000
-
-Q1.3:
-For the same reasons as in Q2 IN-EXISTS and MATERIALIZATION chosen
-for each respective subquery.
-EXPLAIN
-SELECT City.Name, Country.Name
-FROM City,Country
-WHERE City.Country = Country.Code AND
-Country.SurfaceArea < 30000 AND Country.SurfaceArea > 10 AND
-((Country.Code, Country.Name) IN
-(select Country, Language from CountryLanguage where Percentage > 50) AND
-Country.Population > 3000000
-OR
-(Country.Code, City.Name) IN
-(select Country, Language from CountryLanguage));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country ALL PRIMARY,SurfaceArea NULL NULL NULL 239 Using where
-1 PRIMARY City ref Country Country 3 world.Country.Code 18 Using where
-3 MATERIALIZED CountryLanguage index PRIMARY,Language PRIMARY 33 NULL 984 Using index
-2 DEPENDENT SUBQUERY CountryLanguage unique_subquery PRIMARY,Percentage,Language PRIMARY 33 func,func 1 Using where
-SELECT City.Name, Country.Name
-FROM City,Country
-WHERE City.Country = Country.Code AND
-Country.SurfaceArea < 30000 AND Country.SurfaceArea > 10 AND
-((Country.Code, Country.Name) IN
-(select Country, Language from CountryLanguage where Percentage > 50) AND
-Country.Population > 3000000
-OR
-(Country.Code, City.Name) IN
-(select Country, Language from CountryLanguage));
-Name Name
-Kigali Rwanda
-
-2. NOT IN subqueries
-
-
-Q2.1:
-Number of cities that are not capitals in countries with small population.
-MATERIALIZATION is 50 times faster because the cost of each subquery
-re-execution is much higher than the cost of index lookups into the
-materialized subquery.
-EXPLAIN
-select count(*) from City
-where City.id not in (select capital from Country
-where capital is not null and population < 100000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY City index NULL PRIMARY 4 NULL 4080 Using where; Using index
-2 MATERIALIZED Country ALL NULL NULL NULL NULL 239 Using where
-
-Q2.2e:
-Countries that speak French, but do not speak English
-IN-EXISTS because the outer query filters many rows, thus
-there are few lookups to make.
-EXPLAIN
-SELECT Country.Name
-FROM Country, CountryLanguage
-WHERE Code NOT IN (SELECT Country FROM CountryLanguage WHERE Language = 'English')
-AND CountryLanguage.Language = 'French'
- AND Code = Country;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY CountryLanguage ref PRIMARY,Language Language 30 const 20 Using index condition
-1 PRIMARY Country eq_ref PRIMARY PRIMARY 3 world.CountryLanguage.Country 1 Using where
-2 DEPENDENT SUBQUERY CountryLanguage unique_subquery PRIMARY,Language PRIMARY 33 func,const 1 Using index; Using where
-SELECT Country.Name
-FROM Country, CountryLanguage
-WHERE Code NOT IN (SELECT Country FROM CountryLanguage WHERE Language = 'English')
-AND CountryLanguage.Language = 'French'
- AND Code = Country;
-Name
-France
-Saint Pierre and Miquelon
-Belgium
-Burundi
-Guadeloupe
-Haiti
-Madagascar
-Martinique
-Mayotte
-French Polynesia
-Rwanda
-Sao Tome and Principe
-Switzerland
-New Caledonia
-Lebanon
-Mauritius
-Andorra
-Italy
-Luxembourg
-Q2.2m:
-Countries that speak French OR Spanish, but do not speak English
-MATERIALIZATION because the outer query filters less rows than Q5-a,
-so there are more lookups.
-EXPLAIN
-SELECT Country.Name
-FROM Country, CountryLanguage
-WHERE Code NOT IN (SELECT Country FROM CountryLanguage WHERE Language = 'English')
-AND (CountryLanguage.Language = 'French' OR CountryLanguage.Language = 'Spanish')
-AND Code = Country;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY CountryLanguage range PRIMARY,Language Language 30 NULL 45 Using index condition; Using where; Rowid-ordered scan
-1 PRIMARY Country eq_ref PRIMARY PRIMARY 3 world.CountryLanguage.Country 1 Using where
-2 MATERIALIZED CountryLanguage ref PRIMARY,Language Language 30 const 47 Using index condition
-SELECT Country.Name
-FROM Country, CountryLanguage
-WHERE Code NOT IN (SELECT Country FROM CountryLanguage WHERE Language = 'English')
-AND (CountryLanguage.Language = 'French' OR CountryLanguage.Language = 'Spanish')
-AND Code = Country;
-Name
-Andorra
-Argentina
-Bolivia
-Chile
-Costa Rica
-Dominican Republic
-Ecuador
-El Salvador
-Spain
-Guatemala
-Honduras
-Colombia
-Cuba
-Mexico
-Nicaragua
-Panama
-Paraguay
-Peru
-France
-Saint Pierre and Miquelon
-Uruguay
-Venezuela
-Belgium
-Burundi
-Guadeloupe
-Haiti
-Madagascar
-Martinique
-Mayotte
-French Polynesia
-Rwanda
-Sao Tome and Principe
-Switzerland
-New Caledonia
-Lebanon
-Mauritius
-Andorra
-Italy
-Luxembourg
-France
-Sweden
-
-Q2.3e:
-Not a very meaningful query that tests NOT IN.
-IN-EXISTS because the outer query is cheap enough to reexecute many times.
-EXPLAIN
-select count(*)
-from CountryLanguage
-where (Language, Country) NOT IN
-(SELECT City.Name, Country.Code
-FROM City LEFT JOIN Country ON (Country = Code and City.Population < 10000))
-AND Language IN ('English','Spanish');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY CountryLanguage range Language Language 30 NULL 72 Using index condition; Using where; Rowid-ordered scan
-2 DEPENDENT SUBQUERY City ref CityName CityName 35 func 1 Using index condition
-2 DEPENDENT SUBQUERY Country eq_ref PRIMARY PRIMARY 3 world.City.Country 1 Using where; Using index
-select count(*)
-from CountryLanguage
-where (Language, Country) NOT IN
-(SELECT City.Name, Country.Code
-FROM City LEFT JOIN Country ON (Country = Code and City.Population < 10000))
-AND Language IN ('English','Spanish');
-count(*)
-88
-Q2.3m:
-MATERIALIZATION with the PARTIAL_MATCH_MERGE strategy, because the HAVING
-clause prevents the use of the index on City(Name), and in practice reduces
-radically the size of the temp table.
-EXPLAIN
-select count(*)
-from CountryLanguage
-where (Language, Country) NOT IN
-(SELECT City.Name, Country.Code
-FROM City LEFT JOIN Country ON (Country = Code)
-HAVING City.Name LIKE "Santa%");
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY CountryLanguage index NULL PRIMARY 33 NULL 984 Using where; Using index
-2 MATERIALIZED City ALL NULL NULL NULL NULL 4080
-2 MATERIALIZED Country eq_ref PRIMARY PRIMARY 3 world.City.Country 1 Using index
-select count(*)
-from CountryLanguage
-where (Language, Country) NOT IN
-(SELECT City.Name, Country.Code
-FROM City LEFT JOIN Country ON (Country = Code)
-HAVING City.Name LIKE "Santa%");
-count(*)
-984
-
-3. Subqueries with GROUP BY, HAVING, and aggregate functions
-
-Q3.1:
-Languages that are spoken in countries with 10 or 11 languages
-MATERIALIZATION is about 100 times faster than IN-EXISTS.
-EXPLAIN
-select count(*)
-from CountryLanguage
-where
-(Country, 10) IN (SELECT Code, COUNT(*) FROM CountryLanguage, Country
-WHERE Code = Country GROUP BY Code)
-OR
-(Country, 11) IN (SELECT Code, COUNT(*) FROM CountryLanguage, Country
-WHERE Code = Country GROUP BY Code)
-order by Country;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY CountryLanguage index NULL PRIMARY 33 NULL 984 Using where; Using index
-3 MATERIALIZED Country index PRIMARY PRIMARY 3 NULL 239 Using index
-3 MATERIALIZED CountryLanguage ref PRIMARY PRIMARY 3 world.Country.Code 4 Using index
-2 MATERIALIZED Country index PRIMARY PRIMARY 3 NULL 239 Using index
-2 MATERIALIZED CountryLanguage ref PRIMARY PRIMARY 3 world.Country.Code 4 Using index
-select count(*)
-from CountryLanguage
-where
-(Country, 10) IN (SELECT Code, COUNT(*) FROM CountryLanguage, Country
-WHERE Code = Country GROUP BY Code)
-OR
-(Country, 11) IN (SELECT Code, COUNT(*) FROM CountryLanguage, Country
-WHERE Code = Country GROUP BY Code)
-order by Country;
-count(*)
-102
-
-Q3.2:
-Countries whose capital is a city name that names more than one
-cities.
-MATERIALIZATION because the cost of single subquery execution is
-close to that of materializing the subquery.
-EXPLAIN
-select * from Country, City
-where capital = id and
-(City.name in (SELECT name FROM City
-GROUP BY name HAVING Count(*) > 2) OR
-capital is null);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country ALL NULL NULL NULL NULL 239 Using where
-1 PRIMARY City eq_ref PRIMARY PRIMARY 4 world.Country.Capital 1 Using where
-2 MATERIALIZED City index NULL CityName 35 NULL 4080 Using index
-select * from Country, City
-where capital = id and
-(City.name in (SELECT name FROM City
-GROUP BY name HAVING Count(*) > 2) OR
-capital is null);
-Code Name SurfaceArea Population Capital ID Name Country population
-BMU Bermuda 53.00 65000 191 191 Hamilton BMU 1200
-BOL Bolivia 1098581.00 8329000 194 194 La Paz BOL 758141
-CRI Costa Rica 51100.00 4023000 584 584 San José CRI 339131
-HKG Hong Kong 1075.00 6782000 937 937 Victoria HKG 1312637
-SYC Seychelles 455.00 77000 3206 3206 Victoria SYC 41000
-
-Q3.3: MATERIALIZATION is 25 times faster than IN-EXISTS
-EXPLAIN
-SELECT Name
-FROM Country
-WHERE Country.Code NOT IN
-(SELECT Country FROM City GROUP BY Name HAVING COUNT(Name) = 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country ALL NULL NULL NULL NULL 239 Using where
-2 MATERIALIZED City ALL NULL NULL NULL NULL 4080 Using temporary
-SELECT Name
-FROM Country
-WHERE Country.Code NOT IN
-(SELECT Country FROM City GROUP BY Name HAVING COUNT(Name) = 1);
-Name
-Antigua and Barbuda
-Costa Rica
-Montserrat
-Norfolk Island
-Seychelles
-Antarctica
-Bouvet Island
-British Indian Ocean Territory
-South Georgia and the South Sandwich Islands
-Heard Island and McDonald Islands
-French Southern territories
-United States Minor Outlying Islands
-
-4. Subqueries in the SELECT and HAVING clauses
-
-Q4.1m:
-Capital information about very big cities
-MATERIALIZATION
-EXPLAIN
-select Name, City.id in (select capital from Country where capital is not null) as is_capital
-from City
-where City.population > 10000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY City range Population Population 5 NULL 4 Using index condition; Rowid-ordered scan
-2 MATERIALIZED Country ALL NULL NULL NULL NULL 239 Using where
-select Name, City.id in (select capital from Country where capital is not null) as is_capital
-from City
-where City.population > 10000000;
-Name is_capital
-Mumbai (Bombay) 0
-Q4.1e:
-IN-TO-EXISTS after adding an index to make the subquery re-execution
-efficient.
-create index CountryCapital on Country(capital);
-EXPLAIN
-select Name, City.id in (select capital from Country where capital is not null) as is_capital
-from City
-where City.population > 10000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY City range Population Population 5 NULL 4 Using index condition; Rowid-ordered scan
-2 SUBQUERY Country index_subquery CountryCapital CountryCapital 5 func 2 Using index; Using where
-select Name, City.id in (select capital from Country where capital is not null) as is_capital
-from City
-where City.population > 10000000;
-Name is_capital
-Mumbai (Bombay) 0
-drop index CountryCapital on Country;
-
-Q4.2:
-MATERIALIZATION
-EXPLAIN
-SELECT City.Name, City.Population
-FROM City JOIN Country ON City.Country = Country.Code
-GROUP BY City.Name
-HAVING City.Name IN (select Name from Country where population < 1000000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY Country index PRIMARY PRIMARY 3 NULL 239 Using index; Using temporary; Using filesort
-1 PRIMARY City ref Country Country 3 world.Country.Code 18
-2 MATERIALIZED Country ALL Name NULL NULL NULL 239 Using where
-SELECT City.Name, City.Population
-FROM City JOIN Country ON City.Country = Country.Code
-GROUP BY City.Name
-HAVING City.Name IN (select Name from Country where population < 1000000);
-Name Population
-Djibouti 383000
-Gibraltar 27025
-Macao 437500
-San Marino 2294
-
-5. Subqueries with UNION
-
-Q5.1:
-EXPLAIN
-SELECT * from City where (Name, 91) in
-(SELECT Name, round(Population/1000)
-FROM City
-WHERE Country = "IND" AND Population > 2500000
-UNION
-SELECT Name, round(Population/1000)
-FROM City
-WHERE Country = "IND" AND Population < 100000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY City ALL NULL NULL NULL NULL 4080 Using where
-2 DEPENDENT SUBQUERY City ref Population,Country,CityName CityName 35 func 1 Using where
-3 DEPENDENT UNION City ref Population,Country,CityName CityName 35 func 1 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT * from City where (Name, 91) in
-(SELECT Name, round(Population/1000)
-FROM City
-WHERE Country = "IND" AND Population > 2500000
-UNION
-SELECT Name, round(Population/1000)
-FROM City
-WHERE Country = "IND" AND Population < 100000);
-ID Name Country population
-1359 Hassan IND 90803
-1360 Ambala Sadar IND 90712
-1361 Baidyabati IND 90601
-set @@optimizer_switch='default';
-drop database world;
-
-
-TEST GROUP 2:
-Tests of various combinations of optimizer switches, types of queries,
-available indexes, column nullability, constness of tables/predicates.
-=====================================================================
-set optimizer_switch=@subselect_mat_cost;
diff --git a/mysql-test/r/subselect_mat_cost_bugs.result b/mysql-test/r/subselect_mat_cost_bugs.result
deleted file mode 100644
index 125da8da517..00000000000
--- a/mysql-test/r/subselect_mat_cost_bugs.result
+++ /dev/null
@@ -1,521 +0,0 @@
-#
-# LP BUG#643424 valgrind warning in choose_subquery_plan()
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-c1 int(11) DEFAULT NULL,
-c2 int(11) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY c2 (c2));
-INSERT INTO t1 VALUES (1,NULL,2);
-INSERT INTO t1 VALUES (2,7,9);
-INSERT INTO t1 VALUES (9,NULL,8);
-CREATE TABLE t2 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-c1 int(11) DEFAULT NULL,
-c2 int(11) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY c2 (c2));
-INSERT INTO t2 VALUES (1,1,7);
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch='materialization=on,in_to_exists=on,semijoin=off';
-SELECT pk FROM t1 WHERE (c2, c1) IN (SELECT c2, c2 FROM t2);
-pk
-set session optimizer_switch=@save_optimizer_switch;
-drop table t1, t2;
-#
-# LP BUG#652727 Crash in create_ref_for_key()
-#
-CREATE TABLE t2 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-c1 int(11) DEFAULT NULL,
-PRIMARY KEY (pk));
-INSERT INTO t2 VALUES (10,7);
-INSERT INTO t2 VALUES (11,1);
-INSERT INTO t2 VALUES (17,NULL);
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-c1 int(11) DEFAULT NULL,
-PRIMARY KEY (pk));
-INSERT INTO t1 VALUES (15,1);
-INSERT INTO t1 VALUES (19,NULL);
-CREATE TABLE t3 (c2 int(11) DEFAULT NULL, KEY c2 (c2));
-INSERT INTO t3 VALUES (1);
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch='materialization=on,in_to_exists=on,semijoin=off';
-SELECT c2
-FROM t3
-WHERE (2, 6) IN (SELECT t1.c1, t1.c1 FROM t1 STRAIGHT_JOIN t2 ON t2.pk = t1.pk);
-c2
-set session optimizer_switch=@save_optimizer_switch;
-drop table t1, t2, t3;
-#
-# LP BUG#641245 Crash in Item_equal::contains
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-c1 int(11) DEFAULT NULL,
-c2 int(11) DEFAULT NULL,
-c3 varchar(1) DEFAULT NULL,
-c4 varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY c2 (c2),
-KEY c3 (c3,c2));
-INSERT INTO t1 VALUES (10,7,8,'v','v');
-INSERT INTO t1 VALUES (11,1,9,'r','r');
-INSERT INTO t1 VALUES (12,5,9,'a','a');
-INSERT INTO t1 VALUES (13,7,18,'v','v');
-INSERT INTO t1 VALUES (14,1,19,'r','r');
-INSERT INTO t1 VALUES (15,5,29,'a','a');
-INSERT INTO t1 VALUES (17,7,38,'v','v');
-INSERT INTO t1 VALUES (18,1,39,'r','r');
-INSERT INTO t1 VALUES (19,5,49,'a','a');
-create table t1a like t1;
-insert into t1a select * from t1;
-create table t1b like t1;
-insert into t1b select * from t1;
-CREATE TABLE t2 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-c1 int(11) DEFAULT NULL,
-c2 int(11) DEFAULT NULL,
-c3 varchar(1) DEFAULT NULL,
-c4 varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY c2 (c2),
-KEY c3 (c3,c2));
-INSERT INTO t2 VALUES (1,NULL,2,'w','w');
-INSERT INTO t2 VALUES (2,7,9,'m','m');
-set @@optimizer_switch='materialization=off,in_to_exists=on,semijoin=off';
-EXPLAIN EXTENDED SELECT pk
-FROM t1
-WHERE c1 IN
-(SELECT t1a.c1
-FROM (t1b JOIN t2 ON t2.c3 = t1b.c4) LEFT JOIN
-t1a ON (t1a.c2 = t1b.pk AND 2)
-WHERE t1.pk) ;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 9 100.00 Using where
-2 DEPENDENT SUBQUERY t1b ALL NULL NULL NULL NULL 9 100.00
-2 DEPENDENT SUBQUERY t1a ref c2 c2 5 test.t1b.pk 1 100.00 Using where
-2 DEPENDENT SUBQUERY t2 index c3 c3 9 NULL 2 100.00 Using where; Using index; Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.t1.pk' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`pk` AS `pk` from `test`.`t1` where <expr_cache><`test`.`t1`.`c1`,`test`.`t1`.`pk`>(<in_optimizer>(`test`.`t1`.`c1`,<exists>(/* select#2 */ select `test`.`t1a`.`c1` from `test`.`t1b` join `test`.`t2` left join `test`.`t1a` on(`test`.`t1a`.`c2` = `test`.`t1b`.`pk` and 2) where `test`.`t1`.`pk` <> 0 and <cache>(`test`.`t1`.`c1`) = `test`.`t1a`.`c1` and `test`.`t2`.`c3` = `test`.`t1b`.`c4`)))
-SELECT pk
-FROM t1
-WHERE c1 IN
-(SELECT t1a.c1
-FROM (t1b JOIN t2 ON t2.c3 = t1b.c4) LEFT JOIN
-t1a ON (t1a.c2 = t1b.pk AND 2)
-WHERE t1.pk) ;
-pk
-DROP TABLE t1, t1a, t1b, t2;
-#
-# LP BUG#714808 Assertion `outer_lookup_keys <= outer_record_count'
-# failed with materialization
-CREATE TABLE t1 ( pk int(11), PRIMARY KEY (pk)) ;
-CREATE TABLE t2 ( f2 int(11)) ;
-CREATE TABLE t3 ( f1 int(11), f3 varchar(1), KEY (f1)) ;
-INSERT INTO t3 VALUES (7,'f');
-set @@optimizer_switch='materialization=on,in_to_exists=on,semijoin=off';
-EXPLAIN
-SELECT t1.*
-FROM t3 RIGHT JOIN t1 ON t1.pk = t3.f1
-WHERE t3.f3 OR ( 3 ) IN ( SELECT f2 FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT t1.*
-FROM t3 RIGHT JOIN t1 ON t1.pk = t3.f1
-WHERE t3.f3 OR ( 3 ) IN ( SELECT f2 FROM t2 );
-pk
-drop table t1,t2,t3;
-#
-# LP BUG#714999 Second crash in select_describe() with nested subqueries
-#
-CREATE TABLE t1 ( pk int(11)) ;
-INSERT INTO t1 VALUES (29);
-CREATE TABLE t2 ( f1 varchar(1)) ;
-INSERT INTO t2 VALUES ('f'),('d');
-CREATE TABLE t3 ( f2 varchar(1)) ;
-EXPLAIN SELECT f2 FROM t3 WHERE (
-SELECT MAX( pk ) FROM t1
-WHERE EXISTS (
-SELECT max(f1)
-FROM t2 GROUP BY f1
-)
-) IS NULL ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 system NULL NULL NULL NULL 1
-3 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-drop table t1, t2, t3;
-#
-# LP BUG#715034 Item_sum_distinct::clear(): Assertion `tree != 0' failed
-#
-CREATE TABLE t2 ( f2 int(11)) ;
-CREATE TABLE t1 ( f3 int(11), KEY (f3)) ;
-INSERT INTO t1 VALUES (6),(4);
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-EXPLAIN
-SELECT * FROM (SELECT * FROM t2) AS a2
-WHERE (SELECT distinct SUM(distinct f3 ) FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 0 Const row not found
-3 SUBQUERY t1 index NULL f3 5 NULL 2 Using index
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-insert into t2 values (1),(2);
-EXPLAIN
-SELECT * FROM (SELECT * FROM t2) AS a2
-WHERE (SELECT distinct SUM(distinct f3 ) FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-3 SUBQUERY t1 index NULL f3 5 NULL 2 Using index
-2 DERIVED t2 ALL NULL NULL NULL NULL 2
-set optimizer_switch=@tmp_optimizer_switch;
-drop table t1,t2;
-#
-# LP BUG#715027 Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))' failed
-#
-CREATE TABLE t1 ( f1 int(11), PRIMARY KEY (f1)) ;
-INSERT INTO t1 VALUES (28),(29);
-CREATE TABLE t2 ( f2 int(11), f3 int(11), f10 varchar(1)) ;
-INSERT INTO t2 VALUES (NULL,6,'f'),(4,2,'d');
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-EXPLAIN
-SELECT alias2.f2 AS field1
-FROM t1 AS alias1 JOIN ( SELECT * FROM t2 ) AS alias2 ON alias2.f3 = alias1.f1
-WHERE (
-SELECT t2.f2
-FROM t2 JOIN t1 ON t1.f1
-WHERE t1.f1 AND alias2.f10
-)
-ORDER BY field1 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 Using where; Using filesort
-1 PRIMARY alias1 eq_ref PRIMARY PRIMARY 4 alias2.f3 1 Using index
-3 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2
-3 DEPENDENT SUBQUERY t1 index PRIMARY PRIMARY 4 NULL 2 Using where; Using index; Using join buffer (flat, BNL join)
-2 DERIVED t2 ALL NULL NULL NULL NULL 2
-SELECT alias2.f2 AS field1
-FROM t1 AS alias1 JOIN ( SELECT * FROM t2 ) AS alias2 ON alias2.f3 = alias1.f1
-WHERE (
-SELECT t2.f2
-FROM t2 JOIN t1 ON t1.f1
-WHERE t1.f1 AND alias2.f10
-)
-ORDER BY field1 ;
-field1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'f'
-Warning 1292 Truncated incorrect DOUBLE value: 'd'
-set optimizer_switch=@tmp_optimizer_switch;
-drop table t1,t2;
-#
-# LP BUG#718578 Yet another Assertion `!table ||
-# (!table->read_set || bitmap_is_set(table->read_set, field_index))'
-CREATE TABLE t1 ( f1 int(11), f2 int(11), f3 int(11)) ;
-INSERT IGNORE INTO t1 VALUES (28,5,6),(29,NULL,4);
-CREATE TABLE t2 ( f10 varchar(1) );
-INSERT IGNORE INTO t2 VALUES (NULL);
-SELECT f1 AS field1
-FROM ( SELECT * FROM t1 ) AS alias1
-WHERE (SELECT t1.f1
-FROM t2 JOIN t1 ON t1.f2
-WHERE alias1.f3 AND t1.f3) AND f2
-ORDER BY field1;
-field1
-28
-drop table t1,t2;
-#
-# LP BUG#601124 Bug in eliminate_item_equal
-# leads to crash in Item_func::Item_func
-CREATE TABLE t1 ( f1 int(11), f3 varchar(1)) ;
-INSERT INTO t1 VALUES (5,'m'),(NULL,'c');
-CREATE TABLE t2 ( f2 int(11), f3 varchar(1)) ;
-INSERT INTO t2 VALUES (6,'f'),(2,'d');
-CREATE TABLE t3 ( f2 int(11), f3 varchar(1)) ;
-INSERT INTO t3 VALUES (6,'f'),(2,'d');
-SELECT * FROM t3
-WHERE ( f2 ) IN (SELECT t1.f1
-FROM t1 STRAIGHT_JOIN t2 ON t2.f3 = t1.f3
-WHERE t2.f3 = 'c');
-f2 f3
-drop table t1,t2,t3;
-#
-# LP BUG#718593 Crash in substitute_for_best_equal_field -> eliminate_item_equal ->
-# Item_field::find_item_equal -> Item_equal::contains
-#
-set @save_optimizer_switch=@@optimizer_switch;
-SET @@optimizer_switch = 'semijoin=off';
-CREATE TABLE t1 ( f3 int(11), f10 varchar(1), f11 varchar(1)) ;
-INSERT IGNORE INTO t1 VALUES (6,'f','f'),(2,'d','d');
-CREATE TABLE t2 ( f12 int(11), f13 int(11)) ;
-insert into t2 values (1,2), (3,4);
-EXPLAIN
-SELECT * FROM t2
-WHERE ( f12 ) IN (
-SELECT alias2.f3
-FROM t1 AS alias1 JOIN t1 AS alias2 ON alias2.f10 = alias1.f11
-WHERE alias1.f11 OR alias1.f3 = 50 AND alias1.f10
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED alias1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED alias2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM t2
-WHERE ( f12 ) IN (
-SELECT alias2.f3
-FROM t1 AS alias1 JOIN t1 AS alias2 ON alias2.f10 = alias1.f11
-WHERE alias1.f11 OR alias1.f3 = 50 AND alias1.f10
-);
-f12 f13
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'f'
-Warning 1292 Truncated incorrect DOUBLE value: 'd'
-EXPLAIN
-SELECT * FROM t2
-WHERE ( f12 ) IN (
-SELECT alias2.f3
-FROM t1 AS alias1, t1 AS alias2
-WHERE (alias2.f10 = alias1.f11) AND (alias1.f11 OR alias1.f3 = 50 AND alias1.f10));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED alias1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED alias2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM t2
-WHERE ( f12 ) IN (
-SELECT alias2.f3
-FROM t1 AS alias1, t1 AS alias2
-WHERE (alias2.f10 = alias1.f11) AND (alias1.f11 OR alias1.f3 = 50 AND alias1.f10));
-f12 f13
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'f'
-Warning 1292 Truncated incorrect DOUBLE value: 'd'
-set @@optimizer_switch=@save_optimizer_switch;
-drop table t1, t2;
-#
-# MWL#89: test introduced after Sergey Petrunia's review - test that
-# keyparts wihtout index prefix are used with the IN-EXISTS strategy.
-#
-create table t1 (c1 int);
-insert into t1 values (1), (2), (3);
-create table t2 (kp1 int, kp2 int, c2 int, filler char(100));
-insert into t2 values (0,0,0,'filler'),(0,1,1,'filler'),(0,2,2,'filler'),(0,3,3,'filler');
-create index key1 on t2 (kp1, kp2);
-create index key2 on t2 (kp1);
-create index key3 on t2 (kp2);
-SET @@optimizer_switch='materialization=off,semijoin=off,in_to_exists=on';
-analyze table t2;
-Table Op Msg_type Msg_text
-test.t2 analyze status OK
-explain
-select c1 from t1 where c1 in (select kp1 from t2 where kp2 = 10 and c2 = 4) or c1 > 7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-2 DEPENDENT SUBQUERY t2 index_subquery key1,key2,key3 key1 10 func,const 1 Using where
-select c1 from t1 where c1 in (select kp1 from t2 where kp2 = 10 and c2 = 4) or c1 > 7;
-c1
-set @@optimizer_switch='default';
-drop table t1, t2;
-#
-# LP BUG#800679: Assertion `outer_join->table_count > 0' failed in
-# JOIN::choose_subquery_plan() with materialization=on,semijoin=off
-#
-CREATE TABLE t1 ( f1 int);
-insert into t1 values (1),(2);
-CREATE TABLE t2 ( f1 int);
-insert into t2 values (1),(2);
-SET @@optimizer_switch='materialization=on,semijoin=off';
-EXPLAIN
-SELECT * FROM t1
-WHERE (f1) IN (SELECT f1 FROM t2)
-LIMIT 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1
-WHERE (f1) IN (SELECT f1 FROM t2)
-LIMIT 0;
-f1
-set @@optimizer_switch='default';
-drop table t1, t2;
-#
-# LP BUG#834492: Crash in fix_semijoin_strategies_for_picked_join_order
-# with nested subqueries and LooseScan=ON
-#
-CREATE TABLE t3 (b int) ;
-INSERT INTO t3 VALUES (0),(0);
-CREATE TABLE t4 (a int, b int, c int, d int, PRIMARY KEY (a)) ;
-INSERT INTO t4 VALUES (28,0,0,0),(29,3,0,0);
-CREATE TABLE t5 (a int, b int, c int, d int, KEY (c,b)) ;
-INSERT INTO t5 VALUES (28,0,0,0),(29,3,0,0);
-SET @@optimizer_switch='semijoin=ON,loosescan=ON,firstmatch=OFF,materialization=OFF';
-EXPLAIN SELECT *
-FROM t3
-WHERE t3.b > ALL (
-SELECT c
-FROM t4
-WHERE t4.a >= t3.b
-AND a = SOME (SELECT b FROM t5));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t5 index c c 10 NULL 2 Using where; Using index; Start temporary
-2 DEPENDENT SUBQUERY t4 eq_ref PRIMARY PRIMARY 4 test.t5.b 1 Using index condition; Using where; End temporary
-SELECT *
-FROM t3
-WHERE t3.b > ALL (
-SELECT c
-FROM t4
-WHERE t4.a >= t3.b
-AND a = SOME (SELECT b FROM t5));
-b
-0
-0
-set @@optimizer_switch='default';
-drop table t3, t4, t5;
-#
-# LP BUG#858038 The result of a query with NOT IN subquery depends on the state of the optimizer switch
-#
-set @optimizer_switch_save= @@optimizer_switch;
-create table t1 (c1 char(2) not null, c2 char(2));
-create table t2 (c3 char(2), c4 char(2));
-insert into t1 values ('a1', 'b1');
-insert into t1 values ('a2', 'b2');
-insert into t2 values ('x1', 'y1');
-insert into t2 values ('a2', null);
-set @@optimizer_switch='in_to_exists=off,materialization=on,partial_match_rowid_merge=off,partial_match_table_scan=on';
-explain select * from t1 where c1 = 'a2' and (c1, c2) not in (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-select * from t1 where c1 = 'a2' and (c1, c2) not in (select * from t2);
-c1 c2
-set @@optimizer_switch='in_to_exists=off,materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off';
-explain select * from t1 where c1 = 'a2' and (c1, c2) not in (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-select * from t1 where c1 = 'a2' and (c1, c2) not in (select * from t2);
-c1 c2
-drop table t1, t2;
-set optimizer_switch= @optimizer_switch_save;
-#
-# MDEV-12673: cost-based choice between materialization and in-to-exists
-#
-CREATE TABLE t1 (
-pk1 int, a1 varchar(3), b1 varchar(3), PRIMARY KEY (pk1), KEY(a1), KEY(b1)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'foo','bar'),(2,'bar','foo');
-CREATE TABLE t2 (pk2 INT PRIMARY KEY, a2 VARCHAR(3), KEY(a2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,'abc'),(2,'xyz'),(3,'foo');
-SELECT 'qux' IN ( SELECT a1 FROM t1 INNER JOIN t2 WHERE a2 = b1 AND pk2 = 3 );
-'qux' IN ( SELECT a1 FROM t1 INNER JOIN t2 WHERE a2 = b1 AND pk2 = 3 )
-0
-SELECT 'bar' IN ( SELECT a1 FROM t1 INNER JOIN t2 WHERE a2 = b1 AND pk2 = 3 );
-'bar' IN ( SELECT a1 FROM t1 INNER JOIN t2 WHERE a2 = b1 AND pk2 = 3 )
-1
-EXPLAIN
-SELECT 'bar' IN ( SELECT a1 FROM t1 INNER JOIN t2 WHERE a2 = b1 AND pk2 = 3 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t2 const PRIMARY,a2 PRIMARY 4 const 1
-2 SUBQUERY t1 ref a1,b1 b1 6 const 1 Using where
-DROP TABLE t1,t2;
-CREATE TABLE t1 (i1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (i2 int, c2 varchar(3), KEY(i2,c2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,'abc'),(2,'foo');
-CREATE TABLE t3 (pk3 int PRIMARY KEY, c3 varchar(3)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (1,'foo'),(2,'bar');
-SELECT * FROM t1 WHERE i1 NOT IN (
-SELECT i2 FROM t2 RIGHT JOIN t3 ON (c3 = c2) WHERE pk3 = i1
-);
-i1
-1
-EXPLAIN
-SELECT * FROM t1 WHERE i1 NOT IN (
-SELECT i2 FROM t2 RIGHT JOIN t3 ON (c3 = c2) WHERE pk3 = i1
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t3 const PRIMARY PRIMARY 4 const 1
-2 DEPENDENT SUBQUERY t2 index NULL i2 11 NULL 2 Using where; Using index
-DROP TABLE t1,t2,t3;
-#
-# MDEV-7599: in-to-exists chosen after min/max optimization
-#
-set @optimizer_switch_save= @@optimizer_switch;
-CREATE TABLE t1 (a INT, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT, c INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,6),(2,4), (8,9);
-SELECT * FROM t2 WHERE b != ALL (SELECT MIN(a) FROM t1, t2 WHERE t2.c = t2.b);
-b c
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE b != ALL (SELECT MIN(a) FROM t1, t2 WHERE t2.c = t2.b);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t1 index NULL a 5 NULL 2 100.00 Using index
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where !<expr_cache><`test`.`t2`.`b`>(<in_optimizer>(`test`.`t2`.`b`,`test`.`t2`.`b` in ( <materialize> (/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1` join `test`.`t2` where `test`.`t2`.`c` = `test`.`t2`.`b` ), <primary_index_lookup>(`test`.`t2`.`b` in <temporary table> on distinct_key where `test`.`t2`.`b` = `<subquery2>`.`MIN(a)`))))
-set optimizer_switch= 'materialization=off';
-SELECT * FROM t2 WHERE b != ALL (SELECT MIN(a) FROM t1, t2 WHERE t2.c = t2.b);
-b c
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE b != ALL (SELECT MIN(a) FROM t1, t2 WHERE t2.c = t2.b);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t1 index NULL a 5 NULL 2 100.00 Using index
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where !<expr_cache><`test`.`t2`.`b`>(<in_optimizer>(`test`.`t2`.`b`,<exists>(/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1` join `test`.`t2` where `test`.`t2`.`c` = `test`.`t2`.`b` having trigcond(<cache>(`test`.`t2`.`b`) = <ref_null_helper>(min(`test`.`t1`.`a`))))))
-set optimizer_switch= @optimizer_switch_save;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (f1 varchar(10)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo'),('bar');
-CREATE TABLE t2 (f2 varchar(10), key(f2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('baz'),('qux');
-CREATE TABLE t3 (f3 varchar(10)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('abc'),('def');
-SELECT * FROM t1
-WHERE f1 = ALL( SELECT MAX(t2a.f2)
-FROM t2 AS t2a INNER JOIN t2 t2b INNER JOIN t3
-ON (f3 = t2b.f2) );
-f1
-DROP TABLE t1,t2,t3;
-#
-# MDEV-12963: min/max optimization optimizing away all tables employed
-# for uncorrelated IN subquery used in a disjunct of WHERE
-#
-create table t1 (a int, index idx(a)) engine=myisam;
-insert into t1 values (4),(7),(1),(3),(9);
-select * from t1 where a in (select max(a) from t1 where a < 4) or a > 5;
-a
-3
-7
-9
-explain
-select * from t1 where a in (select max(a) from t1 where a < 4) or a > 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index idx idx 5 NULL 5 Using where; Using index
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-drop table t1;
-#
-# MDEV-13135: subquery with ON expression subject to
-# semi-join optimizations
-#
-CREATE TABLE t1 (a INT);
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT a AS v_a FROM t1;
-INSERT INTO t1 VALUES (1),(3);
-CREATE TABLE t2 (b INT, KEY(b));
-INSERT INTO t2 VALUES (3),(4);
-SELECT * FROM t1 WHERE a NOT IN (
-SELECT b FROM t2 INNER JOIN v1 ON (b IN ( SELECT a FROM t1 ))
-WHERE v_a = b
-);
-a
-1
-DROP VIEW v1;
-DROP TABLE t1,t2;
diff --git a/mysql-test/r/subselect_no_exists_to_in.result b/mysql-test/r/subselect_no_exists_to_in.result
deleted file mode 100644
index eb912d9e331..00000000000
--- a/mysql-test/r/subselect_no_exists_to_in.result
+++ /dev/null
@@ -1,7289 +0,0 @@
-select @@optimizer_switch like '%exists_to_in=off%';
-@@optimizer_switch like '%exists_to_in=off%'
-0
-set optimizer_switch='exists_to_in=off';
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t11,t12;
-drop view if exists v2;
-call mtr.add_suppression("Sort aborted.*");
-set @subselect_tmp=@@optimizer_switch;
-set @@optimizer_switch=ifnull(@optimizer_switch_for_subselect_test,
-"semijoin=on,firstmatch=on,loosescan=on,semijoin_with_cache=on,partial_match_rowid_merge=off,partial_match_table_scan=off");
-set join_cache_level=1;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-select (select 2);
-(select 2)
-2
-explain extended select (select 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select 2 AS `(select 2)`
-SELECT (SELECT 1) UNION SELECT (SELECT 2);
-(SELECT 1)
-1
-2
-explain extended SELECT (SELECT 1) UNION SELECT (SELECT 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1249 Select 4 was reduced during optimization
-Note 1003 /* select#1 */ select 1 AS `(SELECT 1)` union /* select#3 */ select 2 AS `(SELECT 2)`
-SELECT (SELECT (SELECT 0 UNION SELECT 0));
-(SELECT (SELECT 0 UNION SELECT 0))
-0
-explain extended SELECT (SELECT (SELECT 0 UNION SELECT 0));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 /* select#1 */ select (/* select#3 */ select 0 union /* select#4 */ select 0) AS `(SELECT (SELECT 0 UNION SELECT 0))`
-SELECT (SELECT 1 FROM (SELECT 1) as b HAVING a=1) as a;
-ERROR 42S22: Reference 'a' not supported (forward reference in item list)
-SELECT (SELECT 1 FROM (SELECT 1) as b HAVING b=1) as a,(SELECT 1 FROM (SELECT 1) as c HAVING a=1) as b;
-ERROR 42S22: Reference 'b' not supported (forward reference in item list)
-SELECT (SELECT 1),MAX(1) FROM (SELECT 1) as a;
-(SELECT 1) MAX(1)
-1 1
-SELECT (SELECT a) as a;
-ERROR 42S22: Reference 'a' not supported (forward reference in item list)
-EXPLAIN EXTENDED SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 1 100.00
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1276 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
-Note 1276 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 1 AS `1` from dual having (/* select#3 */ select 1) = 1
-SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
-1
-1
-SELECT (SELECT 1), a;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT 1 as a FROM (SELECT 1) as b HAVING (SELECT a)=1;
-a
-1
-SELECT 1 FROM (SELECT (SELECT a) b) c;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT * FROM (SELECT 1 as id) b WHERE id IN (SELECT * FROM (SELECT 1 as id) c ORDER BY id);
-id
-1
-SELECT * FROM (SELECT 1) a WHERE 1 IN (SELECT 1,1);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT 1 IN (SELECT 1);
-1 IN (SELECT 1)
-1
-SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
-1
-1
-select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE(1))' at line 1
-SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1))' at line 1
-SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT (SELECT 1,2,3) = ROW(1,2,3);
-(SELECT 1,2,3) = ROW(1,2,3)
-1
-SELECT (SELECT 1,2,3) = ROW(1,2,1);
-(SELECT 1,2,3) = ROW(1,2,1)
-0
-SELECT (SELECT 1,2,3) < ROW(1,2,1);
-(SELECT 1,2,3) < ROW(1,2,1)
-0
-SELECT (SELECT 1,2,3) > ROW(1,2,1);
-(SELECT 1,2,3) > ROW(1,2,1)
-1
-SELECT (SELECT 1,2,3) = ROW(1,2,NULL);
-(SELECT 1,2,3) = ROW(1,2,NULL)
-NULL
-SELECT ROW(1,2,3) = (SELECT 1,2,3);
-ROW(1,2,3) = (SELECT 1,2,3)
-1
-SELECT ROW(1,2,3) = (SELECT 1,2,1);
-ROW(1,2,3) = (SELECT 1,2,1)
-0
-SELECT ROW(1,2,3) < (SELECT 1,2,1);
-ROW(1,2,3) < (SELECT 1,2,1)
-0
-SELECT ROW(1,2,3) > (SELECT 1,2,1);
-ROW(1,2,3) > (SELECT 1,2,1)
-1
-SELECT ROW(1,2,3) = (SELECT 1,2,NULL);
-ROW(1,2,3) = (SELECT 1,2,NULL)
-NULL
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,2,'a');
-(SELECT 1.5,2,'a') = ROW(1.5,2,'a')
-1
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,2,'b');
-(SELECT 1.5,2,'a') = ROW(1.5,2,'b')
-0
-SELECT (SELECT 1.5,2,'a') = ROW('1.5b',2,'b');
-(SELECT 1.5,2,'a') = ROW('1.5b',2,'b')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1.5b'
-SELECT (SELECT 'b',2,'a') = ROW(1.5,2,'a');
-(SELECT 'b',2,'a') = ROW(1.5,2,'a')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,'2','a');
-(SELECT 1.5,2,'a') = ROW(1.5,'2','a')
-1
-SELECT (SELECT 1.5,'c','a') = ROW(1.5,2,'a');
-(SELECT 1.5,'c','a') = ROW(1.5,2,'a')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-SELECT (SELECT * FROM (SELECT 'test' a,'test' b) a);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT 1 as a,(SELECT a+a) b,(SELECT b);
-a b (SELECT b)
-1 2 2
-create table t1 (a int);
-create table t2 (a int, b int);
-create table t3 (a int);
-create table t4 (a int not null, b int not null);
-insert into t1 values (2);
-insert into t2 values (1,7),(2,7);
-insert into t4 values (4,8),(3,8),(5,9);
-select (select a from t1 where t1.a = a1) as a2, (select b from t2 where t2.b=a2) as a1;
-ERROR 42S22: Reference 'a1' not supported (forward reference in item list)
-select (select a from t1 where t1.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a) a
-NULL 1
-2 2
-select (select a from t1 where t1.a=t2.b), a from t2;
-(select a from t1 where t1.a=t2.b) a
-NULL 1
-NULL 2
-select (select a from t1), a, (select 1 union select 2 limit 1) from t2;
-(select a from t1) a (select 1 union select 2 limit 1)
-2 1 1
-2 2 1
-select (select a from t3), a from t2;
-(select a from t3) a
-NULL 1
-NULL 2
-select * from t2 where t2.a=(select a from t1);
-a b
-2 7
-insert into t3 values (6),(7),(3);
-select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1);
-a b
-1 7
-2 7
-(select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 order by a limit 2) limit 3;
-a b
-1 7
-2 7
-3 8
-(select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 where t4.b=(select max(t2.a)*4 from t2) order by a);
-a b
-1 7
-2 7
-4 8
-3 8
-explain extended (select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 where t4.b=(select max(t2.a)*4 from t2) order by a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-3 UNION t4 ALL NULL NULL NULL NULL 3 100.00 Using where
-4 SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00
-NULL UNION RESULT <union1,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 (/* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`b` = (/* select#2 */ select `test`.`t3`.`a` from `test`.`t3` order by 1 desc limit 1)) union (/* select#3 */ select `test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b` from `test`.`t4` where `test`.`t4`.`b` = (/* select#4 */ select max(`test`.`t2`.`a`) * 4 from `test`.`t2`))
-select (select a from t3 where a<t2.a*4 order by 1 desc limit 1), a from t2;
-(select a from t3 where a<t2.a*4 order by 1 desc limit 1) a
-3 1
-7 2
-select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
-(select * from t2 where a>1) as tt;
-(select t3.a from t3 where a<8 order by 1 desc limit 1) a
-7 2
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-explain extended select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
-(select * from t2 where a>1) as tt;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select `test`.`t3`.`a` from `test`.`t3` where `test`.`t3`.`a` < 8 order by 1 desc limit 1) AS `(select t3.a from t3 where a<8 order by 1 desc limit 1)`,`tt`.`a` AS `a` from (/* select#3 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`a` > 1) `tt`
-set optimizer_switch=@tmp_optimizer_switch;
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3) order by 1 desc limit 1);
-a
-2
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3 where t3.a > t1.a) order by 1 desc limit 1);
-a
-2
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3 where t3.a < t1.a) order by 1 desc limit 1);
-a
-select b,(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2) from t4;
-b (select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2)
-8 7.5000
-8 4.5000
-9 7.5000
-explain extended select b,(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2) from t4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t4 ALL NULL NULL NULL NULL 3 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t4.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t4`.`b` AS `b`,<expr_cache><`test`.`t4`.`a`>((/* select#2 */ select avg(`test`.`t2`.`a` + (/* select#3 */ select min(`test`.`t3`.`a`) from `test`.`t3` where `test`.`t3`.`a` >= `test`.`t4`.`a`)) from `test`.`t2`)) AS `(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2)` from `test`.`t4`
-select * from t3 where exists (select * from t2 where t2.b=t3.a);
-a
-7
-select * from t3 where not exists (select * from t2 where t2.b=t3.a);
-a
-6
-3
-select * from t3 where a in (select b from t2);
-a
-7
-select * from t3 where a not in (select b from t2);
-a
-6
-3
-select * from t3 where a = some (select b from t2);
-a
-7
-select * from t3 where a <> any (select b from t2);
-a
-6
-3
-select * from t3 where a = all (select b from t2);
-a
-7
-select * from t3 where a <> all (select b from t2);
-a
-6
-3
-insert into t2 values (100, 5);
-select * from t3 where a < any (select b from t2);
-a
-6
-3
-select * from t3 where a < all (select b from t2);
-a
-3
-select * from t3 where a >= any (select b from t2);
-a
-6
-7
-explain extended select * from t3 where a >= any (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(`test`.`t2`.`b`) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= all (select b from t2);
-a
-7
-delete from t2 where a=100;
-select * from t3 where a in (select a,b from t2);
-ERROR 21000: Operand should contain 1 column(s)
-select * from t3 where a in (select * from t2);
-ERROR 21000: Operand should contain 1 column(s)
-insert into t4 values (12,7),(1,7),(10,9),(9,6),(7,6),(3,9),(1,10);
-select b,max(a) as ma from t4 group by b having b < (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-insert into t2 values (2,10);
-select b,max(a) as ma from t4 group by b having ma < (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-10 1
-delete from t2 where a=2 and b=10;
-select b,max(a) as ma from t4 group by b having b >= (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-7 12
-create table t5 (a int);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-insert into t5 values (5);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-insert into t5 values (2);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-explain extended select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-3 DEPENDENT UNION t5 ALL NULL NULL NULL NULL 2 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1276 Field or reference 'test.t2.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t2.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select <expr_cache><`test`.`t2`.`a`>((/* select#2 */ select 2 from dual where 2 = `test`.`t2`.`a` union /* select#3 */ select `test`.`t5`.`a` from `test`.`t5` where `test`.`t5`.`a` = `test`.`t2`.`a`)) AS `(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a)`,`test`.`t2`.`a` AS `a` from `test`.`t2`
-select (select a from t1 where t1.a=t2.a union all select a from t5 where t5.a=t2.a), a from t2;
-ERROR 21000: Subquery returns more than 1 row
-create table t6 (patient_uq int, clinic_uq int, index i1 (clinic_uq));
-create table t7( uq int primary key, name char(25));
-insert into t7 values(1,"Oblastnaia bolnitsa"),(2,"Bolnitsa Krasnogo Kresta");
-insert into t6 values (1,1),(1,2),(2,2),(1,3);
-select * from t6 where exists (select * from t7 where uq = clinic_uq);
-patient_uq clinic_uq
-1 1
-1 2
-2 2
-explain extended select * from t6 where exists (select * from t7 where uq = clinic_uq);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t6 ALL NULL NULL NULL NULL 4 100.00 Using where
-2 DEPENDENT SUBQUERY t7 eq_ref PRIMARY PRIMARY 4 test.t6.clinic_uq 1 100.00 Using index
-Warnings:
-Note 1276 Field or reference 'test.t6.clinic_uq' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t6`.`patient_uq` AS `patient_uq`,`test`.`t6`.`clinic_uq` AS `clinic_uq` from `test`.`t6` where <expr_cache><`test`.`t6`.`clinic_uq`>(exists(/* select#2 */ select 1 from `test`.`t7` where `test`.`t7`.`uq` = `test`.`t6`.`clinic_uq`))
-select * from t1 where a= (select a from t2,t4 where t2.b=t4.b);
-ERROR 23000: Column 'a' in field list is ambiguous
-drop table t1,t2,t3;
-CREATE TABLE t3 (a varchar(20),b char(1) NOT NULL default '0');
-INSERT INTO t3 VALUES ('W','a'),('A','c'),('J','b');
-CREATE TABLE t2 (a varchar(20),b int NOT NULL default '0');
-INSERT INTO t2 VALUES ('W','1'),('A','3'),('J','2');
-CREATE TABLE t1 (a varchar(20),b date NOT NULL default '0000-00-00');
-INSERT INTO t1 VALUES ('W','1732-02-22'),('A','1735-10-30'),('J','1743-04-13');
-SELECT * FROM t1 WHERE b = (SELECT MIN(b) FROM t1);
-a b
-W 1732-02-22
-SELECT * FROM t2 WHERE b = (SELECT MIN(b) FROM t2);
-a b
-W 1
-SELECT * FROM t3 WHERE b = (SELECT MIN(b) FROM t3);
-a b
-W a
-CREATE TABLE `t8` (
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-`email` varchar(60) character set latin1 NOT NULL default '',
-PRIMARY KEY (`pseudo`),
-UNIQUE KEY `email` (`email`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t8 (pseudo,email) VALUES ('joce','test');
-INSERT INTO t8 (pseudo,email) VALUES ('joce1','test1');
-INSERT INTO t8 (pseudo,email) VALUES ('2joce1','2test1');
-EXPLAIN EXTENDED SELECT pseudo,(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce')) FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-4 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-2 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00
-3 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select 'test' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo,email FROM
-t8 WHERE pseudo='joce');
-ERROR HY000: Illegal parameter data types varchar and row for operation '='
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT * FROM t8 WHERE
-pseudo='joce');
-ERROR HY000: Illegal parameter data types varchar and row for operation '='
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce');
-pseudo
-joce
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo LIKE '%joce%');
-ERROR 21000: Subquery returns more than 1 row
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8;
-CREATE TABLE `t1` (
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (topic,date,pseudo) VALUES
-('43506','2002-10-02','joce'),('40143','2002-08-03','joce');
-EXPLAIN EXTENDED SELECT DISTINCT date FROM t1 WHERE date='2002-08-03';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index NULL PRIMARY 43 NULL 2 100.00 Using where; Using index
-Warnings:
-Note 1003 select distinct `test`.`t1`.`date` AS `date` from `test`.`t1` where `test`.`t1`.`date` = DATE'2002-08-03'
-EXPLAIN EXTENDED SELECT (SELECT DISTINCT date FROM t1 WHERE date='2002-08-03');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t1 index NULL PRIMARY 43 NULL 2 100.00 Using where; Using index
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select distinct `test`.`t1`.`date` from `test`.`t1` where `test`.`t1`.`date` = DATE'2002-08-03') AS `(SELECT DISTINCT date FROM t1 WHERE date='2002-08-03')`
-SELECT DISTINCT date FROM t1 WHERE date='2002-08-03';
-date
-2002-08-03
-SELECT (SELECT DISTINCT date FROM t1 WHERE date='2002-08-03');
-(SELECT DISTINCT date FROM t1 WHERE date='2002-08-03')
-2002-08-03
-SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION SELECT 1) UNION ALL SELECT 1;
-1
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION ALL SELECT 1) UNION SELECT 1;
-ERROR 21000: Subquery returns more than 1 row
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION SELECT 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL topic 3 NULL 2 100.00 Using index
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-drop table t1;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM ROW_FORMAT=FIXED;
-INSERT INTO t1 (numeropost,maxnumrep) VALUES (40143,1),(43506,2);
-CREATE TABLE `t2` (
-`mot` varchar(30) NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`)
-) ENGINE=MyISAM ROW_FORMAT=DYNAMIC;
-INSERT INTO t2 (mot,topic,date,pseudo) VALUES ('joce','40143','2002-10-22','joce'), ('joce','43506','2002-10-22','joce');
-select numeropost as a FROM t1 GROUP BY (SELECT 1 FROM t1 HAVING a=1);
-a
-40143
-SELECT numeropost,maxnumrep FROM t1 WHERE exists (SELECT 1 FROM t2 WHERE (mot='joce') AND date >= '2002-10-21' AND t1.numeropost = t2.topic) ORDER BY maxnumrep DESC LIMIT 0, 20;
-numeropost maxnumrep
-43506 2
-40143 1
-SELECT (SELECT 1) as a FROM (SELECT 1 FROM t1 HAVING a=1) b;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT 1 IN (SELECT 1 FROM t2 HAVING a);
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-SELECT * from t2 where topic IN (SELECT SUM(topic) FROM t1);
-mot topic date pseudo
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-SELECT * from t2 where topic = any (SELECT SUM(topic) FROM t1);
-mot topic date pseudo
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT *, topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100) from t2;
-mot topic date pseudo topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100)
-joce 40143 2002-10-22 joce 1
-joce 43506 2002-10-22 joce 1
-SELECT * from t2 where topic = all (SELECT SUM(topic) FROM t2);
-mot topic date pseudo
-SELECT * from t2 where topic <> any (SELECT SUM(topic) FROM t2);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT *, topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000) from t2;
-mot topic date pseudo topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000)
-joce 40143 2002-10-22 joce 1
-joce 43506 2002-10-22 joce 0
-drop table t1,t2;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM ROW_FORMAT=FIXED;
-INSERT INTO t1 (numeropost,maxnumrep) VALUES (1,0),(2,1);
-select numeropost as a FROM t1 GROUP BY (SELECT 1 FROM t1 HAVING a=1);
-ERROR 21000: Subquery returns more than 1 row
-select numeropost as a FROM t1 ORDER BY (SELECT 1 FROM t1 HAVING a=1);
-ERROR 21000: Subquery returns more than 1 row
-show warnings;
-Level Code Message
-Error 1242 Subquery returns more than 1 row
-Error 1028 Sort aborted: Subquery returns more than 1 row
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-(select * from t1) union (select * from t1) order by (select a from t1 limit 1);
-a
-1
-2
-3
-drop table t1;
-CREATE TABLE t1 (field char(1) NOT NULL DEFAULT 'b');
-INSERT INTO t1 VALUES ();
-SELECT field FROM t1 WHERE 1=(SELECT 1 UNION ALL SELECT 1 FROM (SELECT 1) a HAVING field='b');
-ERROR 21000: Subquery returns more than 1 row
-drop table t1;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL default '0',
-`numreponse` int(10) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) NOT NULL default '',
-PRIMARY KEY (`numeropost`,`numreponse`),
-UNIQUE KEY `numreponse` (`numreponse`),
-KEY `pseudo` (`pseudo`,`numeropost`)
-) ENGINE=MyISAM;
-SELECT (SELECT numeropost FROM t1 HAVING numreponse=a),numreponse FROM (SELECT * FROM t1) as a;
-ERROR 42S22: Reference 'numreponse' not supported (forward reference in item list)
-SELECT numreponse, (SELECT numeropost FROM t1 HAVING numreponse=a) FROM (SELECT * FROM t1) as a;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT numreponse, (SELECT numeropost FROM t1 HAVING numreponse=1) FROM (SELECT * FROM t1) as a;
-numreponse (SELECT numeropost FROM t1 HAVING numreponse=1)
-INSERT INTO t1 (numeropost,numreponse,pseudo) VALUES (1,1,'joce'),(1,2,'joce'),(1,3,'test');
-EXPLAIN EXTENDED SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT 1 FROM t1 WHERE numeropost='1');
-ERROR 21000: Subquery returns more than 1 row
-SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT 1 FROM t1 WHERE numeropost='1');
-ERROR 21000: Subquery returns more than 1 row
-EXPLAIN EXTENDED SELECT MAX(numreponse) FROM t1 WHERE numeropost='1';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 select max(`test`.`t1`.`numreponse`) AS `MAX(numreponse)` from `test`.`t1` where `test`.`t1`.`numeropost` = '1'
-EXPLAIN EXTENDED SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT MAX(numreponse) FROM t1 WHERE numeropost='1');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 const PRIMARY,numreponse PRIMARY 7 const,const 1 100.00 Using index
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 /* select#1 */ select 3 AS `numreponse` from `test`.`t1` where 1
-drop table t1;
-CREATE TABLE t1 (a int(1));
-INSERT INTO t1 VALUES (1);
-SELECT 1 FROM (SELECT a FROM t1) b HAVING (SELECT b.a)=1;
-1
-1
-drop table t1;
-create table t1 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t1 values (0, 10),(1, 11),(2, 12);
-insert into t2 values (1, 21),(2, 22),(3, 23);
-select * from t1;
-a b
-0 10
-1 11
-2 12
-update t1 set b= (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-update t1 set b= (select b from t2 where t1.a = t2.a);
-select * from t1;
-a b
-0 NULL
-1 21
-2 22
-drop table t1, t2;
-create table t1 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t1 values (0, 10),(1, 11),(2, 12);
-insert into t2 values (1, 21),(2, 12),(3, 23);
-select * from t1;
-a b
-0 10
-1 11
-2 12
-select * from t1 where b = (select b from t2 where t1.a = t2.a);
-a b
-2 12
-delete from t1 where b in (select b from t1);
-affected rows: 3
-insert into t1 values (0, 10),(1, 11),(2, 12);
-delete from t1 where b = (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-delete from t1 where b = (select b from t2 where t1.a = t2.a);
-select * from t1 order by b;
-a b
-0 10
-1 11
-drop table t1, t2;
-create table t11 (a int NOT NULL, b int, primary key (a));
-create table t12 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t11 values (0, 10),(1, 11),(2, 12);
-insert into t12 values (33, 10),(22, 11),(2, 12);
-insert into t2 values (1, 21),(2, 12),(3, 23);
-select * from t11;
-a b
-0 10
-1 11
-2 12
-select * from t12;
-a b
-33 10
-22 11
-2 12
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t12 where t11.a = t12.a);
-ERROR HY000: Table 't12' is specified twice, both as a target for 'DELETE' and as a separate source for data
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t2 where t11.a = t2.a);
-select * from t11;
-a b
-0 10
-1 11
-select * from t12;
-a b
-33 10
-22 11
-drop table t11, t12, t2;
-CREATE TABLE t1 (x int) ENGINE=MyISAM;
-create table t2 (a int) ENGINE=MyISAM;
-create table t3 (b int);
-insert into t2 values (1);
-insert into t3 values (1),(2);
-INSERT INTO t1 (x) VALUES ((SELECT x FROM t1));
-ERROR HY000: Table 't1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-INSERT INTO t1 (x) VALUES ((SELECT b FROM t3));
-ERROR 21000: Subquery returns more than 1 row
-INSERT INTO t1 (x) VALUES ((SELECT a FROM t2));
-select * from t1;
-x
-1
-insert into t2 values (1);
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
-select * from t1;
-x
-1
-2
-INSERT INTO t1 (x) select (SELECT SUM(a)+1 FROM t2) FROM t2;
-select * from t1;
-x
-1
-2
-3
-3
-INSERT INTO t1 (x) select (SELECT SUM(x)+2 FROM t1) FROM t2;
-select * from t1;
-x
-1
-2
-3
-3
-11
-11
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(x) FROM t2));
-ERROR 42S22: Unknown column 'x' in 'field list'
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
-select * from t1;
-x
-1
-2
-3
-3
-11
-11
-2
-drop table t1, t2, t3;
-CREATE TABLE t1 (x int not null, y int, primary key (x)) ENGINE=MyISAM;
-create table t2 (a int);
-create table t3 (a int);
-insert into t2 values (1);
-insert into t3 values (1),(2);
-select * from t1;
-x y
-replace into t1 (x, y) VALUES ((SELECT x FROM t1), (SELECT a+1 FROM t2));
-ERROR HY000: Table 't1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-replace into t1 (x, y) VALUES ((SELECT a FROM t3), (SELECT a+1 FROM t2));
-ERROR 21000: Subquery returns more than 1 row
-replace into t1 (x, y) VALUES ((SELECT a FROM t2), (SELECT a+1 FROM t2));
-select * from t1;
-x y
-1 2
-replace into t1 (x, y) VALUES ((SELECT a FROM t2), (SELECT a+2 FROM t2));
-select * from t1;
-x y
-1 3
-replace DELAYED into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a FROM t2));
-select * from t1;
-x y
-1 3
-4 1
-replace DELAYED into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a+1 FROM t2));
-select * from t1;
-x y
-1 3
-4 2
-replace LOW_PRIORITY into t1 (x, y) VALUES ((SELECT a+1 FROM t2), (SELECT a FROM t2));
-select * from t1;
-x y
-1 3
-4 2
-2 1
-drop table t1, t2, t3;
-SELECT * FROM (SELECT 1) b WHERE 1 IN (SELECT *);
-ERROR HY000: No tables used
-CREATE TABLE t2 (id int(11) default NULL, KEY id (id)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (1),(2);
-SELECT * FROM t2 WHERE id IN (SELECT 1);
-id
-1
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ref id id 5 const 1 100.00 Using index
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t2`.`id` AS `id` from `test`.`t2` where `test`.`t2`.`id` = 1
-SELECT * FROM t2 WHERE id IN (SELECT 1 UNION SELECT 3);
-id
-1
-SELECT * FROM t2 WHERE id IN (SELECT 1+(select 1));
-id
-2
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1+(select 1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ref id id 5 const 1 100.00 Using where; Using index
-Warnings:
-Note 1249 Select 3 was reduced during optimization
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t2`.`id` AS `id` from `test`.`t2` where `test`.`t2`.`id` = <cache>(1 + 1)
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1 UNION SELECT 3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL id 5 NULL 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`id` AS `id` from `test`.`t2` where <expr_cache><`test`.`t2`.`id`>(<in_optimizer>(`test`.`t2`.`id`,<exists>(/* select#2 */ select 1 having <cache>(`test`.`t2`.`id`) = <ref_null_helper>(1) union /* select#3 */ select 3 having <cache>(`test`.`t2`.`id`) = <ref_null_helper>(3))))
-SELECT * FROM t2 WHERE id IN (SELECT 5 UNION SELECT 3);
-id
-SELECT * FROM t2 WHERE id IN (SELECT 5 UNION SELECT 2);
-id
-2
-INSERT INTO t2 VALUES ((SELECT * FROM t2));
-ERROR HY000: Table 't2' is specified twice, both as a target for 'INSERT' and as a separate source for data
-INSERT INTO t2 VALUES ((SELECT id FROM t2));
-ERROR HY000: Table 't2' is specified twice, both as a target for 'INSERT' and as a separate source for data
-SELECT * FROM t2;
-id
-1
-2
-CREATE TABLE t1 (id int(11) default NULL, KEY id (id)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 values (1),(1);
-UPDATE t2 SET id=(SELECT * FROM t1);
-ERROR 21000: Subquery returns more than 1 row
-drop table t2, t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-select 1 IN (SELECT * from t1);
-1 IN (SELECT * from t1)
-1
-select 10 IN (SELECT * from t1);
-10 IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a=2;
-select 1 IN (SELECT * from t1);
-1 IN (SELECT * from t1)
-1
-select 3 IN (SELECT * from t1);
-3 IN (SELECT * from t1)
-1
-select 10 IN (SELECT * from t1);
-10 IN (SELECT * from t1)
-NULL
-select 1 > ALL (SELECT * from t1);
-1 > ALL (SELECT * from t1)
-0
-select 10 > ALL (SELECT * from t1);
-10 > ALL (SELECT * from t1)
-NULL
-select 1 > ANY (SELECT * from t1);
-1 > ANY (SELECT * from t1)
-NULL
-select 10 > ANY (SELECT * from t1);
-10 > ANY (SELECT * from t1)
-1
-drop table t1;
-create table t1 (a varchar(20));
-insert into t1 values ('A'),('BC'),('DEF');
-select 'A' IN (SELECT * from t1);
-'A' IN (SELECT * from t1)
-1
-select 'XYZS' IN (SELECT * from t1);
-'XYZS' IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a='BC';
-select 'A' IN (SELECT * from t1);
-'A' IN (SELECT * from t1)
-1
-select 'DEF' IN (SELECT * from t1);
-'DEF' IN (SELECT * from t1)
-1
-select 'XYZS' IN (SELECT * from t1);
-'XYZS' IN (SELECT * from t1)
-NULL
-select 'A' > ALL (SELECT * from t1);
-'A' > ALL (SELECT * from t1)
-0
-select 'XYZS' > ALL (SELECT * from t1);
-'XYZS' > ALL (SELECT * from t1)
-NULL
-select 'A' > ANY (SELECT * from t1);
-'A' > ANY (SELECT * from t1)
-NULL
-select 'XYZS' > ANY (SELECT * from t1);
-'XYZS' > ANY (SELECT * from t1)
-1
-drop table t1;
-create table t1 (a float);
-insert into t1 values (1.5),(2.5),(3.5);
-select 1.5 IN (SELECT * from t1);
-1.5 IN (SELECT * from t1)
-1
-select 10.5 IN (SELECT * from t1);
-10.5 IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a=2.5;
-select 1.5 IN (SELECT * from t1);
-1.5 IN (SELECT * from t1)
-1
-select 3.5 IN (SELECT * from t1);
-3.5 IN (SELECT * from t1)
-1
-select 10.5 IN (SELECT * from t1);
-10.5 IN (SELECT * from t1)
-NULL
-select 1.5 > ALL (SELECT * from t1);
-1.5 > ALL (SELECT * from t1)
-0
-select 10.5 > ALL (SELECT * from t1);
-10.5 > ALL (SELECT * from t1)
-NULL
-select 1.5 > ANY (SELECT * from t1);
-1.5 > ANY (SELECT * from t1)
-NULL
-select 10.5 > ANY (SELECT * from t1);
-10.5 > ANY (SELECT * from t1)
-1
-explain extended select (select a+1) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t1`.`a` + 1 AS `(select a+1)` from `test`.`t1`
-select (select a+1) from t1;
-(select a+1)
-2.5
-NULL
-4.5
-drop table t1;
-CREATE TABLE t1 (a int(11) NOT NULL default '0', PRIMARY KEY (a));
-CREATE TABLE t2 (a int(11) default '0', INDEX (a));
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-INSERT INTO t2 VALUES (1),(2),(3);
-SELECT t1.a, t1.a in (select t2.a from t2) FROM t1;
-a t1.a in (select t2.a from t2)
-1 1
-2 1
-3 1
-4 0
-explain extended SELECT t1.a, t1.a in (select t2.a from t2) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 4 100.00 Using index
-2 SUBQUERY t2 index_subquery a a 5 func 2 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`a`) in t2 on a checking NULL having `test`.`t2`.`a` is null)))) AS `t1.a in (select t2.a from t2)` from `test`.`t1`
-CREATE TABLE t3 (a int(11) default '0');
-INSERT INTO t3 VALUES (1),(2),(3);
-SELECT t1.a, t1.a in (select t2.a from t2,t3 where t3.a=t2.a) FROM t1;
-a t1.a in (select t2.a from t2,t3 where t3.a=t2.a)
-1 1
-2 1
-3 1
-4 0
-explain extended SELECT t1.a, t1.a in (select t2.a from t2,t3 where t3.a=t2.a) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 4 100.00 Using index
-2 DEPENDENT SUBQUERY t2 ref_or_null a a 5 func 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `test`.`t2`.`a` from `test`.`t2` join `test`.`t3` where `test`.`t3`.`a` = `test`.`t2`.`a` and (<cache>(`test`.`t1`.`a`) = `test`.`t2`.`a` or `test`.`t2`.`a` is null) having `test`.`t2`.`a` is null))) AS `t1.a in (select t2.a from t2,t3 where t3.a=t2.a)` from `test`.`t1`
-drop table t1,t2,t3;
-# check correct NULL Processing for normal IN/ALL/ANY
-# and 2 ways of max/min optimization
-create table t1 (a int);
-insert into t1 values (1), (100), (NULL), (1000);
-create table t2 (a int not null);
-# subselect returns empty set (for NULL and non-NULL left part)
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 0
-100 0
-NULL 0
-1000 0
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 0
-100 0
-NULL 0
-1000 0
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 1
-100 1
-NULL 1
-1000 1
-select a from t1 where a in (select * from t2);
-a
-select a from t1 where a > any (select * from t2);
-a
-select a from t1 where a > all (select * from t2);
-a
-1
-100
-NULL
-1000
-select a from t1 where a in (select * from t2 group by a);
-a
-select a from t1 where a > any (select * from t2 group by a);
-a
-select a from t1 where a > all (select * from t2 group by a);
-a
-1
-100
-NULL
-1000
-insert into t2 values (1),(200);
-# sebselect returns non-empty set without NULLs
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 1
-100 0
-NULL NULL
-1000 0
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 0
-100 1
-NULL NULL
-1000 1
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 0
-100 0
-NULL NULL
-1000 1
-select a from t1 where a in (select * from t2);
-a
-1
-select a from t1 where a > any (select * from t2);
-a
-100
-1000
-select a from t1 where a > all (select * from t2);
-a
-1000
-select a from t1 where a in (select * from t2 group by a);
-a
-1
-select a from t1 where a > any (select * from t2 group by a);
-a
-100
-1000
-select a from t1 where a > all (select * from t2 group by a);
-a
-1000
-drop table t2;
-create table t2 (a int);
-insert into t2 values (1),(NULL),(200);
-# sebselect returns non-empty set with NULLs
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 1
-100 NULL
-NULL NULL
-1000 NULL
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 NULL
-100 1
-NULL NULL
-1000 1
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 0
-100 0
-NULL NULL
-1000 NULL
-select a from t1 where a in (select * from t2);
-a
-1
-select a from t1 where a > any (select * from t2);
-a
-100
-1000
-select a from t1 where a > all (select * from t2);
-a
-select a from t1 where a in (select * from t2 group by a);
-a
-1
-select a from t1 where a > any (select * from t2 group by a);
-a
-100
-1000
-select a from t1 where a > all (select * from t2 group by a);
-a
-drop table t1, t2;
-create table t1 (a float);
-select 10.5 IN (SELECT * from t1 LIMIT 1);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-select 10.5 IN (SELECT * from t1 LIMIT 1 UNION SELECT 1.5);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1.5)' at line 1
-select 10.5 IN (SELECT * from t1 UNION SELECT 1.5 LIMIT 1);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-drop table t1;
-create table t1 (a int, b int, c varchar(10));
-create table t2 (a int);
-insert into t1 values (1,2,'a'),(2,3,'b'),(3,4,'c');
-insert into t2 values (1),(2),(NULL);
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,2,'a'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,2,'a') (select c from t1 where a=t2.a)
-1 1 a
-2 0 b
-NULL NULL NULL
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,3,'b'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,3,'b') (select c from t1 where a=t2.a)
-1 0 a
-2 1 b
-NULL NULL NULL
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,4,'c'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,4,'c') (select c from t1 where a=t2.a)
-1 0 a
-2 0 b
-NULL NULL NULL
-drop table t1,t2;
-create table t1 (a int, b real, c varchar(10));
-insert into t1 values (1, 1, 'a'), (2,2,'b'), (NULL, 2, 'b');
-select ROW(1, 1, 'a') IN (select a,b,c from t1);
-ROW(1, 1, 'a') IN (select a,b,c from t1)
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1);
-ROW(1, 2, 'a') IN (select a,b,c from t1)
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1);
-ROW(1, 1, 'a') IN (select b,a,c from t1)
-1
-select ROW(1, 1, 'a') IN (select a,b,c from t1 where a is not null);
-ROW(1, 1, 'a') IN (select a,b,c from t1 where a is not null)
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1 where a is not null);
-ROW(1, 2, 'a') IN (select a,b,c from t1 where a is not null)
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1 where a is not null);
-ROW(1, 1, 'a') IN (select b,a,c from t1 where a is not null)
-1
-select ROW(1, 1, 'a') IN (select a,b,c from t1 where c='b' or c='a');
-ROW(1, 1, 'a') IN (select a,b,c from t1 where c='b' or c='a')
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1 where c='b' or c='a');
-ROW(1, 2, 'a') IN (select a,b,c from t1 where c='b' or c='a')
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1 where c='b' or c='a');
-ROW(1, 1, 'a') IN (select b,a,c from t1 where c='b' or c='a')
-1
-select ROW(1, 1, 'a') IN (select b,a,c from t1 limit 2);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1);
-do @a:=(SELECT a from t1);
-select @a;
-@a
-1
-set @a:=2;
-set @a:=(SELECT a from t1);
-select @a;
-@a
-1
-drop table t1;
-do (SELECT a from t1);
-ERROR 42S02: Table 'test.t1' doesn't exist
-set @a:=(SELECT a from t1);
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (a int, KEY(a));
-HANDLER t1 OPEN;
-HANDLER t1 READ a=((SELECT 1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1))' at line 1
-HANDLER t1 CLOSE;
-drop table t1;
-create table t1 (a int);
-create table t2 (b int);
-insert into t1 values (1),(2);
-insert into t2 values (1);
-select a from t1 where a in (select a from t1 where a in (select b from t2));
-a
-1
-drop table t1, t2;
-create table t1 (a int, b int);
-create table t2 like t1;
-insert into t1 values (1,2),(1,3),(1,4),(1,5);
-insert into t2 values (1,2),(1,3);
-select * from t1 where row(a,b) in (select a,b from t2);
-a b
-1 2
-1 3
-drop table t1, t2;
-CREATE TABLE `t1` (`i` int(11) NOT NULL default '0',PRIMARY KEY (`i`)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1);
-UPDATE t1 SET i=i+1 WHERE i=(SELECT MAX(i));
-select * from t1;
-i
-2
-drop table t1;
-CREATE TABLE t1 (a int(1));
-EXPLAIN EXTENDED SELECT (SELECT RAND() FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select rand() from `test`.`t1`) AS `(SELECT RAND() FROM t1)` from `test`.`t1`
-EXPLAIN EXTENDED SELECT (SELECT ENCRYPT('test') FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select encrypt('test') from `test`.`t1`) AS `(SELECT ENCRYPT('test') FROM t1)` from `test`.`t1`
-EXPLAIN EXTENDED SELECT (SELECT BENCHMARK(1,1) FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select benchmark(1,1) from `test`.`t1`) AS `(SELECT BENCHMARK(1,1) FROM t1)` from `test`.`t1`
-drop table t1;
-CREATE TABLE `t1` (
-`mot` varchar(30) character set latin1 NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`),
-KEY `pseudo` (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-CREATE TABLE `t2` (
-`mot` varchar(30) character set latin1 NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`),
-KEY `pseudo` (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-CREATE TABLE `t3` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT IGNORE INTO t1 VALUES ('joce','1','','joce'),('test','2','','test');
-Warnings:
-Warning 1265 Data truncated for column 'date' at row 1
-Warning 1265 Data truncated for column 'date' at row 2
-INSERT IGNORE INTO t2 VALUES ('joce','1','','joce'),('test','2','','test');
-Warnings:
-Warning 1265 Data truncated for column 'date' at row 1
-Warning 1265 Data truncated for column 'date' at row 2
-INSERT INTO t3 VALUES (1,1);
-SELECT DISTINCT topic FROM t2 WHERE NOT EXISTS(SELECT * FROM t3 WHERE
-numeropost=topic);
-topic
-2
-select * from t1;
-mot topic date pseudo
-joce 1 0000-00-00 joce
-test 2 0000-00-00 test
-DELETE FROM t1 WHERE topic IN (SELECT DISTINCT topic FROM t2 WHERE NOT
-EXISTS(SELECT * FROM t3 WHERE numeropost=topic));
-select * from t1;
-mot topic date pseudo
-joce 1 0000-00-00 joce
-drop table t1, t2, t3;
-SELECT * FROM (SELECT 1 as a,(SELECT a)) a;
-a (SELECT a)
-1 1
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT 1)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT 1)` int(1) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT a)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT a)` int(1) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT a+0)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT a+0)` int(3) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT (SELECT 1 as a UNION SELECT 1+1 limit 1,1) as a;
-select * from t1;
-a
-2
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(3) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-explain extended select a,(select (select rand() from t1 limit 1) from t1 limit 1)
-from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-2 UNCACHEABLE SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00
-3 UNCACHEABLE SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,(/* select#2 */ select (/* select#3 */ select rand() from `test`.`t1` limit 1) from `test`.`t1` limit 1) AS `(select (select rand() from t1 limit 1) from t1 limit 1)` from `test`.`t1`
-drop table t1;
-select t1.Continent, t2.Name, t2.Population from t1 LEFT JOIN t2 ON t1.Code = t2.Country where t2.Population IN (select max(t2.Population) AS Population from t2, t1 where t2.Country = t1.Code group by Continent);
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (
-ID int(11) NOT NULL auto_increment,
-name char(35) NOT NULL default '',
-t2 char(3) NOT NULL default '',
-District char(20) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (130,'Sydney','AUS','New South Wales',3276207);
-INSERT INTO t1 VALUES (131,'Melbourne','AUS','Victoria',2865329);
-INSERT INTO t1 VALUES (132,'Brisbane','AUS','Queensland',1291117);
-CREATE TABLE t2 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL default 'Asia',
-Region char(26) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-IndepYear smallint(6) default NULL,
-Population int(11) NOT NULL default '0',
-LifeExpectancy float(3,1) default NULL,
-GNP float(10,2) default NULL,
-GNPOld float(10,2) default NULL,
-LocalName char(45) NOT NULL default '',
-GovernmentForm char(45) NOT NULL default '',
-HeadOfState char(60) default NULL,
-Capital int(11) default NULL,
-Code2 char(2) NOT NULL default '',
-PRIMARY KEY (Code)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('AUS','Australia','Oceania','Australia and New Zealand',7741220.00,1901,18886000,79.8,351182.00,392911.00,'Australia','Constitutional Monarchy, Federation','Elisabeth II',135,'AU');
-INSERT INTO t2 VALUES ('AZE','Azerbaijan','Asia','Middle East',86600.00,1991,7734000,62.9,4127.00,4100.00,'Azärbaycan','Federal Republic','Heydär Äliyev',144,'AZ');
-select t2.Continent, t1.Name, t1.Population from t2 LEFT JOIN t1 ON t2.Code = t1.t2 where t1.Population IN (select max(t1.Population) AS Population from t1, t2 where t1.t2 = t2.Code group by Continent);
-Continent Name Population
-Oceania Sydney 3276207
-drop table t1, t2;
-CREATE TABLE `t1` (
-`id` mediumint(8) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `pseudo` (`pseudo`)
-) ENGINE=MyISAM PACK_KEYS=1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (pseudo) VALUES ('test');
-SELECT 0 IN (SELECT 1 FROM t1 a);
-0 IN (SELECT 1 FROM t1 a)
-0
-EXPLAIN EXTENDED SELECT 0 IN (SELECT 1 FROM t1 a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 /* select#1 */ select <in_optimizer>(0,<exists>(/* select#2 */ select 1 from dual where 0 = 1)) AS `0 IN (SELECT 1 FROM t1 a)`
-INSERT INTO t1 (pseudo) VALUES ('test1');
-SELECT 0 IN (SELECT 1 FROM t1 a);
-0 IN (SELECT 1 FROM t1 a)
-0
-EXPLAIN EXTENDED SELECT 0 IN (SELECT 1 FROM t1 a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 /* select#1 */ select <in_optimizer>(0,<exists>(/* select#2 */ select 1 from `test`.`t1` `a` where 0 = 1)) AS `0 IN (SELECT 1 FROM t1 a)`
-drop table t1;
-CREATE TABLE `t1` (
-`i` int(11) NOT NULL default '0',
-PRIMARY KEY (`i`)
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1);
-UPDATE t1 SET i=i+(SELECT MAX(i) FROM (SELECT 1) t) WHERE i=(SELECT MAX(i));
-UPDATE t1 SET i=i+1 WHERE i=(SELECT MAX(i));
-UPDATE t1 SET t.i=i+(SELECT MAX(i) FROM (SELECT 1) t);
-ERROR 42S22: Unknown column 't.i' in 'field list'
-select * from t1;
-i
-3
-drop table t1;
-CREATE TABLE t1 (
-id int(11) default NULL
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1),(1),(2),(2),(1),(3);
-CREATE TABLE t2 (
-id int(11) default NULL,
-name varchar(15) default NULL
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (4,'vita'), (1,'vita'), (2,'vita'), (1,'vita');
-update t1, t2 set t2.name='lenka' where t2.id in (select id from t1);
-select * from t2;
-id name
-4 vita
-1 lenka
-2 lenka
-1 lenka
-drop table t1,t2;
-create table t1 (a int, unique index indexa (a));
-insert into t1 values (-1), (-4), (-2), (NULL);
-select -10 IN (select a from t1 FORCE INDEX (indexa));
--10 IN (select a from t1 FORCE INDEX (indexa))
-NULL
-drop table t1;
-create table t1 (id int not null auto_increment primary key, salary int, key(salary));
-insert into t1 (salary) values (100),(1000),(10000),(10),(500),(5000),(50000);
-explain extended SELECT id FROM t1 where salary = (SELECT MAX(salary) FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ref salary salary 5 const 1 100.00 Using where
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id` from `test`.`t1` where `test`.`t1`.`salary` = (/* select#2 */ select max(`test`.`t1`.`salary`) from `test`.`t1`)
-drop table t1;
-CREATE TABLE t1 (
-ID int(10) unsigned NOT NULL auto_increment,
-SUB_ID int(3) unsigned NOT NULL default '0',
-REF_ID int(10) unsigned default NULL,
-REF_SUB int(3) unsigned default '0',
-PRIMARY KEY (ID,SUB_ID),
-UNIQUE KEY t1_PK (ID,SUB_ID),
-KEY t1_FK (REF_ID,REF_SUB),
-KEY t1_REFID (REF_ID)
-) ENGINE=MyISAM CHARSET=cp1251;
-INSERT INTO t1 VALUES (1,0,NULL,NULL),(2,0,NULL,NULL);
-SELECT DISTINCT REF_ID FROM t1 WHERE ID= (SELECT DISTINCT REF_ID FROM t1 WHERE ID=2);
-REF_ID
-DROP TABLE t1;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1,0), (2,0), (3,0);
-insert into t2 values (1,1), (2,1), (3,1), (2,2);
-update ignore t1 set b=(select b from t2 where t1.a=t2.a);
-Warnings:
-Warning 1242 Subquery returns more than 1 row
-select * from t1;
-a b
-1 1
-2 NULL
-3 1
-drop table t1, t2;
-CREATE TABLE `t1` (
-`id` mediumint(8) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) NOT NULL default '',
-`email` varchar(60) NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `email` (`email`),
-UNIQUE KEY `pseudo` (`pseudo`)
-) ENGINE=MyISAM CHARSET=latin1 PACK_KEYS=1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (id,pseudo,email) VALUES (1,'test','test'),(2,'test1','test1');
-SELECT pseudo as a, pseudo as b FROM t1 GROUP BY (SELECT a) ORDER BY (SELECT id*1);
-a b
-test test
-test1 test1
-drop table if exists t1;
-(SELECT 1 as a) UNION (SELECT 1) ORDER BY (SELECT a+0);
-a
-1
-create table t1 (a int not null, b int, primary key (a));
-create table t2 (a int not null, primary key (a));
-create table t3 (a int not null, b int, primary key (a));
-insert into t1 values (1,10), (2,20), (3,30), (4,40);
-insert into t2 values (2), (3), (4), (5);
-insert into t3 values (10,3), (20,4), (30,5);
-select * from t2 where t2.a in (select a from t1);
-a
-2
-3
-4
-explain extended select * from t2 where t2.a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 4 100.00 Using index
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 4 75.00 Using where; Using index; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 4 100.00 Using index
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 4 75.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a` and `test`.`t1`.`b` <> 30
-select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-a
-2
-3
-explain extended select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 4 100.00 Using index
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 4 75.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 4 test.t1.b 1 100.00 Using index
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t1` join `test`.`t3` join `test`.`t2` where `test`.`t3`.`a` = `test`.`t1`.`b` and `test`.`t1`.`a` = `test`.`t2`.`a`
-drop table t1, t2, t3;
-create table t1 (a int, b int, index a (a,b));
-create table t2 (a int, index a (a));
-create table t3 (a int, b int, index a (a));
-insert into t1 values (1,10), (2,20), (3,30), (4,40);
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t1
-select rand()*100000+200,rand()*100000 from t0 A, t0 B, t0 C, t0 D;
-insert into t2 values (2), (3), (4), (5);
-insert into t3 values (10,3), (20,4), (30,5);
-select * from t2 where t2.a in (select a from t1);
-a
-2
-3
-4
-explain extended select * from t2 where t2.a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 5 test.t2.a 101 100.00 Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`t2`.`a`
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 5 test.t2.a 101 100.00 Using where; Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`t2`.`a` and `test`.`t1`.`b` <> 30
-select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-a
-2
-3
-explain extended select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t3 index a a 5 NULL 3 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 10 test.t2.a,test.t3.a 116 100.00 Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1` join `test`.`t3`) where `test`.`t1`.`b` = `test`.`t3`.`a` and `test`.`t1`.`a` = `test`.`t2`.`a`
-insert into t1 values (3,31);
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-3
-4
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30 and t1.b <> 31);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 5 test.t2.a 101 100.00 Using where; Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`t2`.`a` and `test`.`t1`.`b` <> 30
-drop table t0, t1, t2, t3;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-create table t3 (a int, b int);
-insert into t1 values (0,100),(1,2), (1,3), (2,2), (2,7), (2,-1), (3,10);
-insert into t2 values (0,0), (1,1), (2,1), (3,1), (4,1);
-insert into t3 values (3,3), (2,2), (1,1);
-select a,(select count(distinct t1.b) as sum from t1,t2 where t1.a=t2.a and t2.b > 0 and t1.a <= t3.b group by t1.a order by sum limit 1) from t3;
-a (select count(distinct t1.b) as sum from t1,t2 where t1.a=t2.a and t2.b > 0 and t1.a <= t3.b group by t1.a order by sum limit 1)
-3 1
-2 2
-1 2
-drop table t1,t2,t3;
-create table t1 (s1 int);
-create table t2 (s1 int);
-insert into t1 values (1);
-insert into t2 values (1);
-select * from t1 where exists (select s1 from t2 having max(t2.s1)=t1.s1);
-s1
-1
-drop table t1,t2;
-create table t1 (s1 int);
-create table t2 (s1 int);
-insert into t1 values (1);
-insert into t2 values (1);
-update t1 set s1 = s1 + 1 where 1 = (select x.s1 as A from t2 WHERE t2.s1 > t1.s1 order by A);
-ERROR 42S22: Unknown column 'x.s1' in 'field list'
-DROP TABLE t1, t2;
-CREATE TABLE t1 (s1 CHAR(5) COLLATE latin1_german1_ci,
-s2 CHAR(5) COLLATE latin1_swedish_ci);
-INSERT INTO t1 VALUES ('z','?');
-select * from t1 where s1 > (select max(s2) from t1);
-ERROR HY000: Illegal mix of collations (latin1_german1_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '>'
-select * from t1 where s1 > any (select max(s2) from t1);
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin1_german1_ci,IMPLICIT) for operation '<'
-drop table t1;
-create table t1(toid int,rd int);
-create table t2(userid int,pmnew int,pmtotal int);
-insert into t2 values(1,0,0),(2,0,0);
-insert into t1 values(1,0),(1,0),(1,0),(1,12),(1,15),(1,123),(1,12312),(1,12312),(1,123),(2,0),(2,0),(2,1),(2,2);
-select userid,pmtotal,pmnew, (select count(rd) from t1 where toid=t2.userid) calc_total, (select count(rd) from t1 where rd=0 and toid=t2.userid) calc_new from t2 where userid in (select distinct toid from t1);
-userid pmtotal pmnew calc_total calc_new
-1 0 0 9 3
-2 0 0 4 2
-drop table t1, t2;
-create table t1 (s1 char(5));
-select (select 'a','b' from t1 union select 'a','b' from t1) from t1;
-ERROR 21000: Operand should contain 1 column(s)
-insert into t1 values ('tttt');
-select * from t1 where ('a','b')=(select 'a','b' from t1 union select 'a','b' from t1);
-s1
-tttt
-explain extended (select * from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 (select 'tttt' AS `s1` from dual)
-(select * from t1);
-s1
-tttt
-drop table t1;
-create table t1 (s1 char(5), index s1(s1));
-create table t2 (s1 char(5), index s1(s1));
-insert into t1 values ('a1'),('a2'),('a3');
-insert into t2 values ('a1'),('a2');
-select s1, s1 NOT IN (SELECT s1 FROM t2) from t1;
-s1 s1 NOT IN (SELECT s1 FROM t2)
-a1 0
-a2 0
-a3 1
-select s1, s1 = ANY (SELECT s1 FROM t2) from t1;
-s1 s1 = ANY (SELECT s1 FROM t2)
-a1 1
-a2 1
-a3 0
-select s1, s1 <> ALL (SELECT s1 FROM t2) from t1;
-s1 s1 <> ALL (SELECT s1 FROM t2)
-a1 0
-a2 0
-a3 1
-select s1, s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2') from t1;
-s1 s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2')
-a1 0
-a2 1
-a3 1
-explain extended select s1, s1 NOT IN (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null))))) AS `s1 NOT IN (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 = ANY (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null))))) AS `s1 = ANY (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 <> ALL (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null))))) AS `s1 <> ALL (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2') from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Using where; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL where `test`.`t2`.`s1` < 'a2' having trigcond(`test`.`t2`.`s1` is null))))) AS `s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2')` from `test`.`t1`
-drop table t1,t2;
-create table t2 (a int, b int not null);
-create table t3 (a int);
-insert into t3 values (6),(7),(3);
-select * from t3 where a >= all (select b from t2);
-a
-6
-7
-3
-explain extended select * from t3 where a >= all (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select max(NULL) from `test`.`t2`) > <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= some (select b from t2);
-a
-explain extended select * from t3 where a >= some (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(NULL) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= all (select b from t2 group by 1);
-a
-6
-7
-3
-explain extended select * from t3 where a >= all (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select max(NULL) from `test`.`t2`) > <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= some (select b from t2 group by 1);
-a
-explain extended select * from t3 where a >= some (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(NULL) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where NULL >= any (select b from t2);
-a
-explain extended select * from t3 where NULL >= any (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= any (select b from t2 group by 1);
-a
-explain extended select * from t3 where NULL >= any (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= some (select b from t2);
-a
-explain extended select * from t3 where NULL >= some (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= some (select b from t2 group by 1);
-a
-explain extended select * from t3 where NULL >= some (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-insert into t2 values (2,2), (2,1), (3,3), (3,1);
-select * from t3 where a > all (select max(b) from t2 group by a);
-a
-6
-7
-explain extended select * from t3 where a > all (select max(b) from t2 group by a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 4 100.00 Using temporary
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,<max>(/* select#2 */ select max(`test`.`t2`.`b`) from `test`.`t2` group by `test`.`t2`.`a`) >= <cache>(`test`.`t3`.`a`)))
-drop table t2, t3;
-CREATE TABLE `t1` ( `id` mediumint(9) NOT NULL auto_increment, `taskid` bigint(20) NOT NULL default '0', `dbid` int(11) NOT NULL default '0', `create_date` datetime NOT NULL default '0000-00-00 00:00:00', `last_update` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (`id`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=3 ;
-INSERT INTO `t1` (`id`, `taskid`, `dbid`, `create_date`,`last_update`) VALUES (1, 1, 15, '2003-09-29 10:31:36', '2003-09-29 10:31:36'), (2, 1, 21, now(), now());
-CREATE TABLE `t2` (`db_id` int(11) NOT NULL auto_increment,`name` varchar(200) NOT NULL default '',`primary_uid` smallint(6) NOT NULL default '0',`secondary_uid` smallint(6) NOT NULL default '0',PRIMARY KEY (`db_id`),UNIQUE KEY `name_2` (`name`),FULLTEXT KEY `name` (`name`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=2147483647;
-INSERT INTO `t2` (`db_id`, `name`, `primary_uid`, `secondary_uid`) VALUES (18, 'Not Set 1', 0, 0),(19, 'Valid', 1, 2),(20, 'Valid 2', 1, 2),(21, 'Should Not Return', 1, 2),(26, 'Not Set 2', 0, 0),(-1, 'ALL DB\'S', 0, 0);
-CREATE TABLE `t3` (`taskgenid` mediumint(9) NOT NULL auto_increment,`dbid` int(11) NOT NULL default '0',`taskid` int(11) NOT NULL default '0',`mon` tinyint(4) NOT NULL default '1',`tues` tinyint(4) NOT NULL default '1',`wed` tinyint(4) NOT NULL default '1',`thur` tinyint(4) NOT NULL default '1',`fri` tinyint(4) NOT NULL default '1',`sat` tinyint(4) NOT NULL default '0',`sun` tinyint(4) NOT NULL default '0',`how_often` smallint(6) NOT NULL default '1',`userid` smallint(6) NOT NULL default '0',`active` tinyint(4) NOT NULL default '1',PRIMARY KEY (`taskgenid`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=2 ;
-INSERT INTO `t3` (`taskgenid`, `dbid`, `taskid`, `mon`, `tues`,`wed`, `thur`, `fri`, `sat`, `sun`, `how_often`, `userid`, `active`) VALUES (1,-1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1);
-CREATE TABLE `t4` (`task_id` smallint(6) NOT NULL default '0',`description` varchar(200) NOT NULL default '') ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO `t4` (`task_id`, `description`) VALUES (1, 'Daily Check List'),(2, 'Weekly Status');
-select dbid, name, (date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01') from t3 a, t2 b, t4 WHERE dbid = - 1 AND primary_uid = '1' AND t4.task_id = taskid;
-dbid name (date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01')
--1 Valid 1
--1 Valid 2 1
--1 Should Not Return 0
-SELECT dbid, name FROM t3 a, t2 b, t4 WHERE dbid = - 1 AND primary_uid = '1' AND ((date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01')) AND t4.task_id = taskid;
-dbid name
--1 Valid
--1 Valid 2
-drop table t1,t2,t3,t4;
-CREATE TABLE t1 (id int(11) default NULL) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 (id int(11) default NULL) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (2),(6);
-select * from t1 where (1,2,6) in (select * from t2);
-ERROR 21000: Operand should contain 3 column(s)
-DROP TABLE t1,t2;
-create table t1 (s1 int);
-insert into t1 values (1);
-insert into t1 values (2);
-set sort_buffer_size = (select s1 from t1);
-ERROR 21000: Subquery returns more than 1 row
-do (select * from t1);
-Warnings:
-Error 1242 Subquery returns more than 1 row
-drop table t1;
-create table t1 (s1 char);
-insert into t1 values ('e');
-select * from t1 where 'f' > any (select s1 from t1);
-s1
-e
-select * from t1 where 'f' > any (select s1 from t1 union select s1 from t1);
-s1
-e
-explain extended select * from t1 where 'f' > any (select s1 from t1 union select s1 from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-3 UNION t1 system NULL NULL NULL NULL 1 100.00
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select 'e' AS `s1` from dual where 1
-drop table t1;
-CREATE TABLE t1 (number char(11) NOT NULL default '') ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES ('69294728265'),('18621828126'),('89356874041'),('95895001874');
-CREATE TABLE t2 (code char(5) NOT NULL default '',UNIQUE KEY code (code)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES ('1'),('1226'),('1245'),('1862'),('18623'),('1874'),('1967'),('6');
-select c.number as phone,(select p.code from t2 p where c.number like concat(p.code, '%') order by length(p.code) desc limit 1) as code from t1 c;
-phone code
-69294728265 6
-18621828126 1862
-89356874041 NULL
-95895001874 NULL
-drop table t1, t2;
-create table t1 (s1 int);
-create table t2 (s1 int);
-select * from t1 where (select count(*) from t2 where t1.s2) = 1;
-ERROR 42S22: Unknown column 't1.s2' in 'where clause'
-select * from t1 where (select count(*) from t2 group by t1.s2) = 1;
-ERROR 42S22: Unknown column 't1.s2' in 'group statement'
-select count(*) from t2 group by t1.s2;
-ERROR 42S22: Unknown column 't1.s2' in 'group statement'
-drop table t1, t2;
-CREATE TABLE t1(COLA FLOAT NOT NULL,COLB FLOAT NOT NULL,COLC VARCHAR(20) DEFAULT NULL,PRIMARY KEY (COLA, COLB));
-CREATE TABLE t2(COLA FLOAT NOT NULL,COLB FLOAT NOT NULL,COLC CHAR(1) NOT NULL,PRIMARY KEY (COLA));
-INSERT INTO t1 VALUES (1,1,'1A3240'), (1,2,'4W2365');
-INSERT INTO t2 VALUES (100, 200, 'C');
-SELECT DISTINCT COLC FROM t1 WHERE COLA = (SELECT COLA FROM t2 WHERE COLB = 200 AND COLC ='C' LIMIT 1);
-COLC
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a int(1));
-INSERT INTO t1 VALUES (1),(1),(1),(1),(1),(2),(3),(4),(5);
-SELECT DISTINCT (SELECT a) FROM t1 LIMIT 100;
-(SELECT a)
-1
-2
-3
-4
-5
-DROP TABLE t1;
-create table t1 (a int, b decimal(13, 3));
-insert into t1 values (1, 0.123);
-select a, (select max(b) from t1) into outfile "../../tmp/subselect.out.file.1" from t1;
-delete from t1;
-load data infile "../../tmp/subselect.out.file.1" into table t1;
-select * from t1;
-a b
-1 0.123
-drop table t1;
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL auto_increment,
-`id_cns` tinyint(3) unsigned NOT NULL default '0',
-`tipo` enum('','UNO','DUE') NOT NULL default '',
-`anno_dep` smallint(4) unsigned zerofill NOT NULL default '0000',
-`particolare` mediumint(8) unsigned NOT NULL default '0',
-`generale` mediumint(8) unsigned NOT NULL default '0',
-`bis` tinyint(3) unsigned NOT NULL default '0',
-PRIMARY KEY (`id`),
-UNIQUE KEY `idx_cns_gen_anno` (`anno_dep`,`id_cns`,`generale`,`particolare`),
-UNIQUE KEY `idx_cns_par_anno` (`id_cns`,`anno_dep`,`tipo`,`particolare`,`bis`)
-);
-INSERT INTO `t1` VALUES (1,16,'UNO',1987,2048,9681,0),(2,50,'UNO',1987,1536,13987,0),(3,16,'UNO',1987,2432,14594,0),(4,16,'UNO',1987,1792,13422,0),(5,16,'UNO',1987,1025,10240,0),(6,16,'UNO',1987,1026,7089,0);
-CREATE TABLE `t2` (
-`id` tinyint(3) unsigned NOT NULL auto_increment,
-`max_anno_dep` smallint(6) unsigned NOT NULL default '0',
-PRIMARY KEY (`id`)
-);
-INSERT INTO `t2` VALUES (16,1987),(50,1990),(51,1990);
-SELECT cns.id, cns.max_anno_dep, cns.max_anno_dep = (SELECT s.anno_dep FROM t1 AS s WHERE s.id_cns = cns.id ORDER BY s.anno_dep DESC LIMIT 1) AS PIPPO FROM t2 AS cns;
-id max_anno_dep PIPPO
-16 1987 1
-50 1990 0
-51 1990 NULL
-DROP TABLE t1, t2;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-SET SQL_SELECT_LIMIT=1;
-select sum(a) from (select * from t1) as a;
-sum(a)
-6
-select 2 in (select * from t1);
-2 in (select * from t1)
-1
-SET SQL_SELECT_LIMIT=default;
-drop table t1;
-CREATE TABLE t1 (a int, b int, INDEX (a));
-INSERT INTO t1 VALUES (1, 1), (1, 2), (1, 3);
-SELECT * FROM t1 WHERE a = (SELECT MAX(a) FROM t1 WHERE a = 1) ORDER BY b;
-a b
-1 1
-1 2
-1 3
-DROP TABLE t1;
-create table t1(val varchar(10));
-insert into t1 values ('aaa'), ('bbb'),('eee'),('mmm'),('ppp');
-select count(*) from t1 as w1 where w1.val in (select w2.val from t1 as w2 where w2.val like 'm%') and w1.val in (select w3.val from t1 as w3 where w3.val like 'e%');
-count(*)
-0
-drop table t1;
-create table t1 (id int not null, text varchar(20) not null default '', primary key (id));
-insert into t1 (id, text) values (1, 'text1'), (2, 'text2'), (3, 'text3'), (4, 'text4'), (5, 'text5'), (6, 'text6'), (7, 'text7'), (8, 'text8'), (9, 'text9'), (10, 'text10'), (11, 'text11'), (12, 'text12');
-select * from t1 where id not in (select id from t1 where id < 8);
-id text
-8 text8
-9 text9
-10 text10
-11 text11
-12 text12
-select * from t1 as tt where not exists (select id from t1 where id < 8 and (id = tt.id or id is null) having id is not null);
-id text
-8 text8
-9 text9
-10 text10
-11 text11
-12 text12
-explain extended select * from t1 where id not in (select id from t1 where id < 8);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 12 100.00 Using where
-2 DEPENDENT SUBQUERY t1 unique_subquery PRIMARY PRIMARY 4 func 1 100.00 Using index; Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`text` AS `text` from `test`.`t1` where !<expr_cache><`test`.`t1`.`id`>(<in_optimizer>(`test`.`t1`.`id`,<exists>(<primary_index_lookup>(<cache>(`test`.`t1`.`id`) in t1 on PRIMARY where `test`.`t1`.`id` < 8 and <cache>(`test`.`t1`.`id`) = `test`.`t1`.`id`))))
-explain extended select * from t1 as tt where not exists (select id from t1 where id < 8 and (id = tt.id or id is null) having id is not null);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY tt ALL NULL NULL NULL NULL 12 100.00 Using where
-2 DEPENDENT SUBQUERY t1 eq_ref PRIMARY PRIMARY 4 test.tt.id 1 100.00 Using where; Using index
-Warnings:
-Note 1276 Field or reference 'test.tt.id' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`tt`.`id` AS `id`,`test`.`tt`.`text` AS `text` from `test`.`t1` `tt` where !<expr_cache><`test`.`tt`.`id`>(exists(/* select#2 */ select `test`.`t1`.`id` from `test`.`t1` where `test`.`t1`.`id` < 8 and `test`.`t1`.`id` = `test`.`tt`.`id` having `test`.`t1`.`id` is not null))
-insert into t1 (id, text) values (1000, 'text1000'), (1001, 'text1001');
-create table t2 (id int not null, text varchar(20) not null default '', primary key (id));
-insert into t2 (id, text) values (1, 'text1'), (2, 'text2'), (3, 'text3'), (4, 'text4'), (5, 'text5'), (6, 'text6'), (7, 'text7'), (8, 'text8'), (9, 'text9'), (10, 'text10'), (11, 'text1'), (12, 'text2'), (13, 'text3'), (14, 'text4'), (15, 'text5'), (16, 'text6'), (17, 'text7'), (18, 'text8'), (19, 'text9'), (20, 'text10'),(21, 'text1'), (22, 'text2'), (23, 'text3'), (24, 'text4'), (25, 'text5'), (26, 'text6'), (27, 'text7'), (28, 'text8'), (29, 'text9'), (30, 'text10'), (31, 'text1'), (32, 'text2'), (33, 'text3'), (34, 'text4'), (35, 'text5'), (36, 'text6'), (37, 'text7'), (38, 'text8'), (39, 'text9'), (40, 'text10'), (41, 'text1'), (42, 'text2'), (43, 'text3'), (44, 'text4'), (45, 'text5'), (46, 'text6'), (47, 'text7'), (48, 'text8'), (49, 'text9'), (50, 'text10');
-select * from t1 a left join t2 b on (a.id=b.id or b.id is null) join t1 c on (if(isnull(b.id), 1000, b.id)=c.id);
-id text id text id text
-1 text1 1 text1 1 text1
-2 text2 2 text2 2 text2
-3 text3 3 text3 3 text3
-4 text4 4 text4 4 text4
-5 text5 5 text5 5 text5
-6 text6 6 text6 6 text6
-7 text7 7 text7 7 text7
-8 text8 8 text8 8 text8
-9 text9 9 text9 9 text9
-10 text10 10 text10 10 text10
-11 text11 11 text1 11 text11
-12 text12 12 text2 12 text12
-1000 text1000 NULL NULL 1000 text1000
-1001 text1001 NULL NULL 1000 text1000
-explain extended select * from t1 a left join t2 b on (a.id=b.id or b.id is null) join t1 c on (if(isnull(b.id), 1000, b.id)=c.id);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE a ALL NULL NULL NULL NULL 14 100.00
-1 SIMPLE b eq_ref PRIMARY PRIMARY 4 test.a.id 2 100.00
-1 SIMPLE c eq_ref PRIMARY PRIMARY 4 func 1 100.00 Using index condition
-Warnings:
-Note 1003 select `test`.`a`.`id` AS `id`,`test`.`a`.`text` AS `text`,`test`.`b`.`id` AS `id`,`test`.`b`.`text` AS `text`,`test`.`c`.`id` AS `id`,`test`.`c`.`text` AS `text` from `test`.`t1` `a` left join `test`.`t2` `b` on(`test`.`b`.`id` = `test`.`a`.`id` or `test`.`b`.`id` is null) join `test`.`t1` `c` where if(`test`.`b`.`id` is null,1000,`test`.`b`.`id`) = `test`.`c`.`id`
-drop table t1,t2;
-create table t1 (a int);
-insert into t1 values (1);
-explain select benchmark(1000, (select a from t1 where a=sha(rand())));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 1
-drop table t1;
-create table t1(id int);
-create table t2(id int);
-create table t3(flag int);
-select (select * from t3 where id not null) from t1, t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'null) from t1, t2' at line 1
-drop table t1,t2,t3;
-CREATE TABLE t1 (id INT);
-CREATE TABLE t2 (id INT);
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (1);
-SELECT t1.id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id);
-id c
-1 1
-2 0
-SELECT id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id);
-id c
-1 1
-2 0
-SELECT t1.id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id) ORDER BY t1.id;
-id c
-1 1
-2 0
-SELECT id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id) ORDER BY id;
-id c
-1 1
-2 0
-DROP TABLE t1,t2;
-CREATE TABLE t1 ( a int, b int );
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-SELECT a FROM t1 WHERE a > ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-ALTER TABLE t1 ADD INDEX (a);
-SELECT a FROM t1 WHERE a > ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (1,2) > ANY (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE a > ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ALL (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE a > ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) <> ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ANY (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 2 column(s)
-SELECT a FROM t1 WHERE a = ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ANY (SELECT a,2 FROM t1 WHERE b = 2);
-a
-SELECT a FROM t1 WHERE (1,2) <> ALL (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 2 column(s)
-SELECT a FROM t1 WHERE a <> ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) <> ALL (SELECT a,2 FROM t1 WHERE b = 2);
-a
-1
-2
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 WHERE b = 2 UNION SELECT a,1 FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 WHERE b = 2 UNION SELECT a,1 FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 HAVING a = 2 UNION SELECT a,1 FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 HAVING a = 2 UNION SELECT a,1 FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-3
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a > t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a > t1.a), '-')
-0-
-0-
-1-
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a < t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a < t1.a), '-')
-1-
-0-
-0-
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a = t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a = t1.a), '-')
-0-
-1-
-0-
-DROP TABLE t1;
-CREATE TABLE t1 ( a double, b double );
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-3
-DROP TABLE t1;
-CREATE TABLE t1 ( a char(1), b char(1));
-INSERT INTO t1 VALUES ('1','1'),('2','2'),('3','3');
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = '2');
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = '2');
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = '2');
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = '2');
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = '2');
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = '2');
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-DROP TABLE t1;
-create table t1 (a int, b int);
-insert into t1 values (1,2),(3,4);
-select * from t1 up where exists (select * from t1 where t1.a=up.a);
-a b
-1 2
-3 4
-explain extended select * from t1 up where exists (select * from t1 where t1.a=up.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY up ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.up.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`up`.`a` AS `a`,`test`.`up`.`b` AS `b` from `test`.`t1` `up` where <expr_cache><`test`.`up`.`a`>(exists(/* select#2 */ select 1 from `test`.`t1` where `test`.`t1`.`a` = `test`.`up`.`a`))
-drop table t1;
-CREATE TABLE t1 (t1_a int);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (t2_a int, t2_b int, PRIMARY KEY (t2_a, t2_b));
-INSERT INTO t2 VALUES (1, 1), (1, 2);
-SELECT * FROM t1, t2 table2 WHERE t1_a = 1 AND table2.t2_a = 1
-HAVING table2.t2_b = (SELECT MAX(t2_b) FROM t2 WHERE t2_a = table2.t2_a);
-t1_a t2_a t2_b
-1 1 2
-DROP TABLE t1, t2;
-CREATE TABLE t1 (id int(11) default NULL,name varchar(10) default NULL);
-INSERT INTO t1 VALUES (1,'Tim'),(2,'Rebecca'),(3,NULL);
-CREATE TABLE t2 (id int(11) default NULL, pet varchar(10) default NULL);
-INSERT INTO t2 VALUES (1,'Fido'),(2,'Spot'),(3,'Felix');
-SELECT a.*, b.* FROM (SELECT * FROM t1) AS a JOIN t2 as b on a.id=b.id;
-id name id pet
-1 Tim 1 Fido
-2 Rebecca 2 Spot
-3 NULL 3 Felix
-drop table t1,t2;
-CREATE TABLE t1 ( a int, b int );
-CREATE TABLE t2 ( c int, d int );
-INSERT INTO t1 VALUES (1,2), (2,3), (3,4);
-SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-abc b
-1 2
-2 3
-3 4
-INSERT INTO t2 SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-select * from t2;
-c d
-1 2
-2 3
-3 4
-CREATE TABLE t3 SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-select * from t3;
-abc b
-1 2
-2 3
-3 4
-prepare stmt1 from "INSERT INTO t2 SELECT a AS abc, b FROM t1 outr WHERE b = (SELECT MIN(b) FROM t1 WHERE a=outr.a);";
-execute stmt1;
-deallocate prepare stmt1;
-select * from t2;
-c d
-1 2
-2 3
-3 4
-1 2
-2 3
-3 4
-drop table t3;
-prepare stmt1 from "CREATE TABLE t3 SELECT a AS abc, b FROM t1 outr WHERE b = (SELECT MIN(b) FROM t1 WHERE a=outr.a);";
-execute stmt1;
-select * from t3;
-abc b
-1 2
-2 3
-3 4
-deallocate prepare stmt1;
-DROP TABLE t1, t2, t3;
-CREATE TABLE `t1` ( `a` int(11) default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-insert into t1 values (1);
-CREATE TABLE `t2` ( `b` int(11) default NULL, `a` int(11) default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-insert into t2 values (1,2);
-select t000.a, count(*) `C` FROM t1 t000 GROUP BY t000.a HAVING count(*) > ALL (SELECT count(*) FROM t2 t001 WHERE t001.a=1);
-a C
-1 1
-drop table t1,t2;
-create table t1 (a int not null auto_increment primary key, b varchar(40), fulltext(b));
-insert into t1 (b) values ('ball'),('ball games'), ('games'), ('foo'), ('foobar'), ('Serg'), ('Sergei'),('Georg'), ('Patrik'),('Hakan');
-create table t2 (a int);
-insert into t2 values (1),(3),(2),(7);
-select a,b from t1 where match(b) against ('Ball') > 0;
-a b
-1 ball
-2 ball games
-select a from t2 where a in (select a from t1 where match(b) against ('Ball') > 0);
-a
-1
-2
-drop table t1,t2;
-CREATE TABLE t1(`IZAVORGANG_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin,`KUERZEL` VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_bin,`IZAANALYSEART_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin,`IZAPMKZ_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin);
-CREATE INDEX AK01IZAVORGANG ON t1(izaAnalyseart_id,Kuerzel);
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000001','601','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000002','602','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000003','603','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000004','101','D0000000001','I0000000001');
-SELECT `IZAVORGANG_ID` FROM t1 WHERE `KUERZEL` IN(SELECT MIN(`KUERZEL`)`Feld1` FROM t1 WHERE `KUERZEL` LIKE'601%'And`IZAANALYSEART_ID`='D0000000001');
-IZAVORGANG_ID
-D0000000001
-drop table t1;
-CREATE TABLE `t1` ( `aid` int(11) NOT NULL default '0', `bid` int(11) NOT NULL default '0', PRIMARY KEY (`aid`,`bid`));
-CREATE TABLE `t2` ( `aid` int(11) NOT NULL default '0', `bid` int(11) NOT NULL default '0', PRIMARY KEY (`aid`,`bid`));
-insert into t1 values (1,1),(1,2),(2,1),(2,2);
-insert into t2 values (1,2),(2,2);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-alter table t2 drop primary key;
-alter table t2 add key KEY1 (aid, bid);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-alter table t2 drop key KEY1;
-alter table t2 add primary key (bid, aid);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-drop table t1,t2;
-CREATE TABLE t1 (howmanyvalues bigint, avalue int);
-INSERT INTO t1 VALUES (1, 1),(2, 1),(2, 2),(3, 1),(3, 2),(3, 3),(4, 1),(4, 2),(4, 3),(4, 4);
-SELECT howmanyvalues, count(*) from t1 group by howmanyvalues;
-howmanyvalues count(*)
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.howmanyvalues) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-CREATE INDEX t1_howmanyvalues_idx ON t1 (howmanyvalues);
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues+1 = a.howmanyvalues+1) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.howmanyvalues) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.avalue) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 1
-3 1
-4 1
-drop table t1;
-create table t1 (x int);
-select (select b.x from t1 as b where b.x=a.x) from t1 as a where a.x=2 group by a.x;
-(select b.x from t1 as b where b.x=a.x)
-drop table t1;
-CREATE TABLE `t1` ( `master` int(10) unsigned NOT NULL default '0', `map` smallint(6) unsigned NOT NULL default '0', `slave` int(10) unsigned NOT NULL default '0', `access` int(10) unsigned NOT NULL default '0', UNIQUE KEY `access_u` (`master`,`map`,`slave`));
-INSERT INTO `t1` VALUES (1,0,0,700),(1,1,1,400),(1,5,5,400),(1,12,12,400),(1,12,32,400),(4,12,32,400);
-CREATE TABLE `t2` ( `id` int(10) unsigned NOT NULL default '0', `pid` int(10) unsigned NOT NULL default '0', `map` smallint(6) unsigned NOT NULL default '0', `level` tinyint(4) unsigned NOT NULL default '0', `title` varchar(255) default NULL, PRIMARY KEY (`id`,`pid`,`map`), KEY `level` (`level`), KEY `id` (`id`,`map`)) ;
-INSERT INTO `t2` VALUES (6,5,12,7,'a'),(12,0,0,7,'a'),(12,1,0,7,'a'),(12,5,5,7,'a'),(12,5,12,7,'a');
-SELECT b.sc FROM (SELECT (SELECT a.access FROM t1 a WHERE a.map = op.map AND a.slave = op.pid AND a.master = 1) ac FROM t2 op WHERE op.id = 12 AND op.map = 0) b;
-ERROR 42S22: Unknown column 'b.sc' in 'field list'
-SELECT b.ac FROM (SELECT (SELECT a.access FROM t1 a WHERE a.map = op.map AND a.slave = op.pid AND a.master = 1) ac FROM t2 op WHERE op.id = 12 AND op.map = 0) b;
-ac
-700
-NULL
-drop tables t1,t2;
-create table t1 (a int not null, b int not null, c int, primary key (a,b));
-insert into t1 values (1,1,1), (2,2,2), (3,3,3);
-set @b:= 0;
-explain select sum(a) from t1 where b > @b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 8 NULL 3 Using where; Using index
-set @a:= (select sum(a) from t1 where b > @b);
-explain select a from t1 where c=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-do @a:= (select sum(a) from t1 where b > @b);
-explain select a from t1 where c=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-drop table t1;
-connect root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root;
-set @got_val= (SELECT 1 FROM (SELECT 'A' as my_col) as T1 ) ;
-disconnect root;
-connection default;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1,1),(1,2),(1,3),(2,4),(2,5);
-insert into t2 values (1,3),(2,1);
-select distinct a,b, (select max(b) from t2 where t1.b=t2.a) from t1 order by t1.b;
-a b (select max(b) from t2 where t1.b=t2.a)
-1 1 3
-1 2 1
-1 3 NULL
-2 4 NULL
-2 5 NULL
-drop table t1, t2;
-create table t1 (id int);
-create table t2 (id int, body text, fulltext (body));
-insert into t1 values(1),(2),(3);
-insert into t2 values (1,'test'), (2,'mysql'), (3,'test'), (4,'test');
-select count(distinct id) from t1 where id in (select id from t2 where match(body) against ('mysql' in boolean mode));
-count(distinct id)
-1
-drop table t2,t1;
-create table t1 (s1 int,s2 int);
-insert into t1 values (20,15);
-select * from t1 where (('a',null) <=> (select 'a',s2 from t1 where s1 = 0));
-s1 s2
-drop table t1;
-create table t1 (s1 int);
-insert into t1 values (1),(null);
-select * from t1 where s1 < all (select s1 from t1);
-s1
-select s1, s1 < all (select s1 from t1) from t1;
-s1 s1 < all (select s1 from t1)
-1 0
-NULL NULL
-drop table t1;
-CREATE TABLE t1 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL default 'Asia',
-Region char(26) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-IndepYear smallint(6) default NULL,
-Population int(11) NOT NULL default '0',
-LifeExpectancy float(3,1) default NULL,
-GNP float(10,2) default NULL,
-GNPOld float(10,2) default NULL,
-LocalName char(45) NOT NULL default '',
-GovernmentForm char(45) NOT NULL default '',
-HeadOfState char(60) default NULL,
-Capital int(11) default NULL,
-Code2 char(2) NOT NULL default ''
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('XXX','Xxxxx','Oceania','Xxxxxx',26.00,0,0,0,0,0,'Xxxxx','Xxxxx','Xxxxx',NULL,'XX');
-INSERT INTO t1 VALUES ('ASM','American Samoa','Oceania','Polynesia',199.00,0,68000,75.1,334.00,NULL,'Amerika Samoa','US Territory','George W. Bush',54,'AS');
-INSERT INTO t1 VALUES ('ATF','French Southern territories','Antarctica','Antarctica',7780.00,0,0,NULL,0.00,NULL,'Terres australes françaises','Nonmetropolitan Territory of France','Jacques Chirac',NULL,'TF');
-INSERT INTO t1 VALUES ('UMI','United States Minor Outlying Islands','Oceania','Micronesia/Caribbean',16.00,0,0,NULL,0.00,NULL,'United States Minor Outlying Islands','Dependent Territory of the US','George W. Bush',NULL,'UM');
-/*!40000 ALTER TABLE t1 ENABLE KEYS */;
-SELECT DISTINCT Continent AS c FROM t1 outr WHERE
-Code <> SOME ( SELECT Code FROM t1 WHERE Continent = outr.Continent AND
-Population < 200);
-c
-Oceania
-drop table t1;
-create table t1 (a1 int);
-create table t2 (b1 int);
-select * from t1 where a2 > any(select b1 from t2);
-ERROR 42S22: Unknown column 'a2' in 'IN/ALL/ANY subquery'
-select * from t1 where a1 > any(select b1 from t2);
-a1
-drop table t1,t2;
-create table t1 (a integer, b integer);
-select (select * from t1) = (select 1,2);
-(select * from t1) = (select 1,2)
-NULL
-select (select 1,2) = (select * from t1);
-(select 1,2) = (select * from t1)
-NULL
-select row(1,2) = ANY (select * from t1);
-row(1,2) = ANY (select * from t1)
-0
-select row(1,2) != ALL (select * from t1);
-row(1,2) != ALL (select * from t1)
-1
-drop table t1;
-create table t1 (a integer, b integer);
-select row(1,(2,2)) in (select * from t1 );
-ERROR 21000: Operand should contain 2 column(s)
-select row(1,(2,2)) = (select * from t1 );
-ERROR 21000: Operand should contain 2 column(s)
-select (select * from t1) = row(1,(2,2));
-ERROR 21000: Operand should contain 1 column(s)
-drop table t1;
-create table t1 (a integer);
-insert into t1 values (1);
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx ;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 as xx, 1 = ALL ( select 1 from t1 where 1 = xx );
-xx 1 = ALL ( select 1 from t1 where 1 = xx )
-1 1
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx from DUAL;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-drop table t1;
-CREATE TABLE t1 (
-categoryId int(11) NOT NULL,
-courseId int(11) NOT NULL,
-startDate datetime NOT NULL,
-endDate datetime NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL,
-attributes text NOT NULL
-);
-INSERT INTO t1 VALUES (1,41,'2004-02-09','2010-01-01','2004-02-09','2004-02-09',''),
-(1,86,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(1,87,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(2,52,'2004-03-15','2004-10-01','2004-03-15','2004-09-17',''),
-(2,53,'2004-03-16','2004-10-01','2004-03-16','2004-09-17',''),
-(2,88,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(2,89,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(3,51,'2004-02-09','2010-01-01','2004-02-09','2004-02-09',''),
-(5,12,'2004-02-18','2010-01-01','2004-02-18','2004-02-18','');
-CREATE TABLE t2 (
-userId int(11) NOT NULL,
-courseId int(11) NOT NULL,
-date datetime NOT NULL
-);
-INSERT INTO t2 VALUES (5141,71,'2003-11-18'),
-(5141,72,'2003-11-25'),(5141,41,'2004-08-06'),
-(5141,52,'2004-08-06'),(5141,53,'2004-08-06'),
-(5141,12,'2004-08-06'),(5141,86,'2004-10-21'),
-(5141,87,'2004-10-21'),(5141,88,'2004-10-21'),
-(5141,89,'2004-10-22'),(5141,51,'2004-10-26');
-CREATE TABLE t3 (
-groupId int(11) NOT NULL,
-parentId int(11) NOT NULL,
-startDate datetime NOT NULL,
-endDate datetime NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL,
-ordering int(11)
-);
-INSERT INTO t3 VALUES (12,9,'1000-01-01','3999-12-31','2004-01-29','2004-01-29',NULL);
-CREATE TABLE t4 (
-id int(11) NOT NULL,
-groupTypeId int(11) NOT NULL,
-groupKey varchar(50) NOT NULL,
-name text,
-ordering int(11),
-description text,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL
-);
-INSERT INTO t4 VALUES (9,5,'stationer','stationer',0,'Stationer','2004-01-29','2004-01-29'),
-(12,5,'group2','group2',0,'group2','2004-01-29','2004-01-29');
-CREATE TABLE t5 (
-userId int(11) NOT NULL,
-groupId int(11) NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL
-);
-INSERT INTO t5 VALUES (5141,12,'2004-08-06','2004-08-06');
-select
-count(distinct t2.userid) pass,
-groupstuff.*,
-count(t2.courseid) crse,
-t1.categoryid,
-t2.courseid,
-date_format(date, '%b%y') as colhead
-from t2
-join t1 on t2.courseid=t1.courseid
-join
-(
-select
-t5.userid,
-parentid,
-parentgroup,
-childid,
-groupname,
-grouptypeid
-from t5
-join
-(
-select t4.id as parentid,
-t4.name as parentgroup,
-t4.id as childid,
-t4.name as groupname,
-t4.grouptypeid
-from t4
-) as gin on t5.groupid=gin.childid
-) as groupstuff on t2.userid = groupstuff.userid
-group by
-groupstuff.groupname, colhead , t2.courseid;
-pass userid parentid parentgroup childid groupname grouptypeid crse categoryid courseid colhead
-1 5141 12 group2 12 group2 5 1 5 12 Aug04
-1 5141 12 group2 12 group2 5 1 1 41 Aug04
-1 5141 12 group2 12 group2 5 1 2 52 Aug04
-1 5141 12 group2 12 group2 5 1 2 53 Aug04
-1 5141 12 group2 12 group2 5 1 3 51 Oct04
-1 5141 12 group2 12 group2 5 1 1 86 Oct04
-1 5141 12 group2 12 group2 5 1 1 87 Oct04
-1 5141 12 group2 12 group2 5 1 2 88 Oct04
-1 5141 12 group2 12 group2 5 1 2 89 Oct04
-drop table t1, t2, t3, t4, t5;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-SELECT 1 FROM t1 WHERE (SELECT 1) in (SELECT 1);
-1
-1
-1
-1
-drop table t1;
-create table t1 (a int);
-create table t2 (a int);
-insert into t1 values (1),(2);
-insert into t2 values (0),(1),(2),(3);
-select a from t2 where a in (select a from t1);
-a
-1
-2
-select a from t2 having a in (select a from t1);
-a
-1
-2
-prepare stmt1 from "select a from t2 where a in (select a from t1)";
-execute stmt1;
-a
-1
-2
-execute stmt1;
-a
-1
-2
-deallocate prepare stmt1;
-prepare stmt1 from "select a from t2 having a in (select a from t1)";
-execute stmt1;
-a
-1
-2
-execute stmt1;
-a
-1
-2
-deallocate prepare stmt1;
-drop table t1, t2;
-create table t1 (a int, b int);
-insert into t1 values (1,2);
-select 1 = (select * from t1);
-ERROR HY000: Illegal parameter data types int and row for operation '='
-select (select * from t1) = 1;
-ERROR HY000: Illegal parameter data types row and int for operation '='
-select (1,2) = (select a from t1);
-ERROR HY000: Illegal parameter data types row and int for operation '='
-select (select a from t1) = (1,2);
-ERROR HY000: Illegal parameter data types int and row for operation '='
-select (1,2,3) = (select * from t1);
-ERROR 21000: Operand should contain 3 column(s)
-select (select * from t1) = (1,2,3);
-ERROR 21000: Operand should contain 2 column(s)
-drop table t1;
-CREATE TABLE `t1` (
-`itemid` bigint(20) unsigned NOT NULL auto_increment,
-`sessionid` bigint(20) unsigned default NULL,
-`time` int(10) unsigned NOT NULL default '0',
-`type` set('A','D','E','F','G','I','L','N','U') collate latin1_general_ci NOT
-NULL default '',
-`data` text collate latin1_general_ci NOT NULL,
-PRIMARY KEY (`itemid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t1` VALUES (1, 1, 1, 'D', '');
-CREATE TABLE `t2` (
-`sessionid` bigint(20) unsigned NOT NULL auto_increment,
-`pid` int(10) unsigned NOT NULL default '0',
-`date` int(10) unsigned NOT NULL default '0',
-`ip` varchar(15) collate latin1_general_ci NOT NULL default '',
-PRIMARY KEY (`sessionid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t2` VALUES (1, 1, 1, '10.10.10.1');
-SELECT s.ip, count( e.itemid ) FROM `t1` e JOIN t2 s ON s.sessionid = e.sessionid WHERE e.sessionid = ( SELECT sessionid FROM t2 ORDER BY sessionid DESC LIMIT 1 ) GROUP BY s.ip HAVING count( e.itemid ) >0 LIMIT 0 , 30;
-ip count( e.itemid )
-10.10.10.1 1
-drop tables t1,t2;
-create table t1 (fld enum('0','1'));
-insert into t1 values ('1');
-select * from (select max(fld) from t1) as foo;
-max(fld)
-1
-drop table t1;
-set @tmp11867_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin_with_cache=off';
-CREATE TABLE t1 (one int, two int, flag char(1));
-CREATE TABLE t2 (one int, two int, flag char(1));
-INSERT INTO t1 VALUES(1,2,'Y'),(2,3,'Y'),(3,4,'Y'),(5,6,'N'),(7,8,'N');
-INSERT INTO t2 VALUES(1,2,'Y'),(2,3,'Y'),(3,4,'Y'),(5,6,'N'),(7,8,'N');
-SELECT * FROM t1
-WHERE ROW(one,two) IN (SELECT DISTINCT one,two FROM t2 WHERE flag = 'N');
-one two flag
-5 6 N
-7 8 N
-SELECT * FROM t1
-WHERE ROW(one,two) IN (SELECT DISTINCT one,two FROM t1 WHERE flag = 'N');
-one two flag
-5 6 N
-7 8 N
-insert into t2 values (null,null,'N');
-insert into t2 values (null,3,'0');
-insert into t2 values (null,5,'0');
-insert into t2 values (10,null,'0');
-insert into t1 values (10,3,'0');
-insert into t1 values (10,5,'0');
-insert into t1 values (10,10,'0');
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N') as 'test' from t1;
-one two test
-1 2 NULL
-2 3 NULL
-3 4 NULL
-5 6 1
-7 8 1
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two from t1 where ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N');
-one two
-5 6
-7 8
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N' group by one,two) as 'test' from t1;
-one two test
-1 2 NULL
-2 3 NULL
-3 4 NULL
-5 6 1
-7 8 1
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0') as 'test' from t1;
-one two test
-1 2 0
-2 3 NULL
-3 4 0
-5 6 0
-7 8 0
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0' group by one,two) as 'test' from t1;
-one two test
-1 2 0
-2 3 NULL
-3 4 0
-5 6 0
-7 8 0
-10 3 NULL
-10 5 NULL
-10 10 NULL
-explain extended SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0') as 'test' from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two`,<expr_cache><`test`.`t1`.`one`,`test`.`t1`.`two`>(<in_optimizer>((`test`.`t1`.`one`,`test`.`t1`.`two`),<exists>(/* select#2 */ select `test`.`t2`.`one`,`test`.`t2`.`two` from `test`.`t2` where `test`.`t2`.`flag` = '0' and trigcond(trigcond(<cache>(`test`.`t1`.`one`) = `test`.`t2`.`one` or `test`.`t2`.`one` is null)) and trigcond(trigcond(<cache>(`test`.`t1`.`two`) = `test`.`t2`.`two` or `test`.`t2`.`two` is null)) having trigcond(`test`.`t2`.`one` is null) and trigcond(`test`.`t2`.`two` is null)))) AS `test` from `test`.`t1`
-explain extended SELECT one,two from t1 where ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`flag` = 'N'
-explain extended SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0' group by one,two) as 'test' from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two`,<expr_cache><`test`.`t1`.`one`,`test`.`t1`.`two`>(<in_optimizer>((`test`.`t1`.`one`,`test`.`t1`.`two`),<exists>(/* select#2 */ select `test`.`t2`.`one`,`test`.`t2`.`two` from `test`.`t2` where `test`.`t2`.`flag` = '0' and trigcond(trigcond(<cache>(`test`.`t1`.`one`) = `test`.`t2`.`one` or `test`.`t2`.`one` is null)) and trigcond(trigcond(<cache>(`test`.`t1`.`two`) = `test`.`t2`.`two` or `test`.`t2`.`two` is null)) having trigcond(`test`.`t2`.`one` is null) and trigcond(`test`.`t2`.`two` is null)))) AS `test` from `test`.`t1`
-DROP TABLE t1,t2;
-set optimizer_switch=@tmp11867_optimizer_switch;
-CREATE TABLE t1 (a char(5), b char(5));
-INSERT INTO t1 VALUES (NULL,'aaa'), ('aaa','aaa');
-SELECT * FROM t1 WHERE (a,b) IN (('aaa','aaa'), ('aaa','bbb'));
-a b
-aaa aaa
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int, b int);
-CREATE TABLE t3 (b int NOT NULL);
-INSERT INTO t1 VALUES (1), (2), (3), (4);
-INSERT INTO t2 VALUES (1,10), (3,30);
-SELECT * FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t3.b IS NOT NULL OR t2.a > 10;
-a b b
-SELECT * FROM t1
-WHERE t1.a NOT IN (SELECT a FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t3.b IS NOT NULL OR t2.a > 10);
-a
-1
-2
-3
-4
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (f1 INT);
-CREATE TABLE t2 (f2 INT);
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2);
-f1
-1
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2 WHERE 1=0);
-f1
-1
-INSERT INTO t2 VALUES (1);
-INSERT INTO t2 VALUES (2);
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2 WHERE f2=0);
-f1
-1
-DROP TABLE t1, t2;
-select 1 from dual where 1 < any (select 2);
-1
-1
-select 1 from dual where 1 < all (select 2);
-1
-1
-select 1 from dual where 2 > any (select 1);
-1
-1
-select 1 from dual where 2 > all (select 1);
-1
-1
-select 1 from dual where 1 < any (select 2 from dual);
-1
-1
-select 1 from dual where 1 < all (select 2 from dual where 1!=1);
-1
-1
-create table t1 (s1 char);
-insert into t1 values (1),(2);
-select * from t1 where (s1 < any (select s1 from t1));
-s1
-1
-select * from t1 where not (s1 < any (select s1 from t1));
-s1
-2
-select * from t1 where (s1 < ALL (select s1+1 from t1));
-s1
-1
-select * from t1 where not(s1 < ALL (select s1+1 from t1));
-s1
-2
-select * from t1 where (s1+1 = ANY (select s1 from t1));
-s1
-1
-select * from t1 where NOT(s1+1 = ANY (select s1 from t1));
-s1
-2
-select * from t1 where (s1 = ALL (select s1/s1 from t1));
-s1
-1
-select * from t1 where NOT(s1 = ALL (select s1/s1 from t1));
-s1
-2
-drop table t1;
-create table t1 (
-retailerID varchar(8) NOT NULL,
-statusID int(10) unsigned NOT NULL,
-changed datetime NOT NULL,
-UNIQUE KEY retailerID (retailerID, statusID, changed)
-);
-INSERT INTO t1 VALUES("0026", "1", "2005-12-06 12:18:56");
-INSERT INTO t1 VALUES("0026", "2", "2006-01-06 12:25:53");
-INSERT INTO t1 VALUES("0037", "1", "2005-12-06 12:18:56");
-INSERT INTO t1 VALUES("0037", "2", "2006-01-06 12:25:53");
-INSERT INTO t1 VALUES("0048", "1", "2006-01-06 12:37:50");
-INSERT INTO t1 VALUES("0059", "1", "2006-01-06 12:37:50");
-select * from t1 r1
-where (r1.retailerID,(r1.changed)) in
-(SELECT r2.retailerId,(max(changed)) from t1 r2
-group by r2.retailerId);
-retailerID statusID changed
-0026 2 2006-01-06 12:25:53
-0037 2 2006-01-06 12:25:53
-0048 1 2006-01-06 12:37:50
-0059 1 2006-01-06 12:37:50
-drop table t1;
-create table t1(a int, primary key (a));
-insert into t1 values (10);
-create table t2 (a int primary key, b varchar(32), c int, unique key b(c, b));
-insert into t2(a, c, b) values (1,10,'359'), (2,10,'35988'), (3,10,'35989');
-explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
-1 PRIMARY r const PRIMARY PRIMARY 4 const 1
-2 SUBQUERY t2 range b b 40 NULL 2 Using where
-SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
-a a b
-10 3 35989
-explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
-1 PRIMARY r const PRIMARY PRIMARY 4 const 1
-2 SUBQUERY t2 range b b 40 NULL 2 Using index condition
-SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
-a a b
-10 1 359
-drop table t1,t2;
-CREATE TABLE t1 (
-field1 int NOT NULL,
-field2 int NOT NULL,
-field3 int NOT NULL,
-PRIMARY KEY (field1,field2,field3)
-);
-CREATE TABLE t2 (
-fieldA int NOT NULL,
-fieldB int NOT NULL,
-PRIMARY KEY (fieldA,fieldB)
-);
-INSERT INTO t1 VALUES
-(1,1,1), (1,1,2), (1,2,1), (1,2,2), (1,2,3), (1,3,1);
-INSERT INTO t2 VALUES (1,1), (1,2), (1,3);
-SELECT field1, field2, COUNT(*)
-FROM t1 GROUP BY field1, field2;
-field1 field2 COUNT(*)
-1 1 2
-1 2 3
-1 3 1
-SELECT field1, field2
-FROM t1
-GROUP BY field1, field2
-HAVING COUNT(*) >= ALL (SELECT fieldB
-FROM t2 WHERE fieldA = field1);
-field1 field2
-1 2
-SELECT field1, field2
-FROM t1
-GROUP BY field1, field2
-HAVING COUNT(*) < ANY (SELECT fieldB
-FROM t2 WHERE fieldA = field1);
-field1 field2
-1 1
-1 3
-DROP TABLE t1, t2;
-CREATE TABLE t1(a int, INDEX (a));
-INSERT INTO t1 VALUES (1), (3), (5), (7);
-INSERT INTO t1 VALUES (NULL);
-CREATE TABLE t2(a int);
-INSERT INTO t2 VALUES (1),(2),(3);
-EXPLAIN SELECT a, a IN (SELECT a FROM t1) FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3
-2 SUBQUERY t1 index_subquery a a 5 func 2 Using index; Full scan on NULL key
-SELECT a, a IN (SELECT a FROM t1) FROM t2;
-a a IN (SELECT a FROM t1)
-1 1
-2 NULL
-3 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES ('1998-09-23'), ('2003-03-25');
-CREATE TABLE t2 AS SELECT
-(SELECT a FROM t1 WHERE a < '2000-01-01') AS sub_a
-FROM t1 WHERE a > '2000-01-01';
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `sub_a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t3 AS (SELECT a FROM t1 WHERE a < '2000-01-01') UNION (SELECT a FROM t1 WHERE a > '2000-01-01');
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) > 0;
-a
-SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) IS NULL;
-a
-1
-2
-EXPLAIN SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (2), (4), (1), (3);
-CREATE TABLE t2 (b int, c int);
-INSERT INTO t2 VALUES
-(2,1), (1,3), (2,1), (4,4), (2,2), (1,4);
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 2 );
-a
-2
-4
-1
-3
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 1);
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 2), a;
-a
-1
-2
-3
-4
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 1), a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT b, MAX(c) FROM t2 GROUP BY b, (SELECT c FROM t2 WHERE b > 2);
-b MAX(c)
-1 4
-2 2
-4 4
-SELECT b, MAX(c) FROM t2 GROUP BY b, (SELECT c FROM t2 WHERE b > 1);
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 2),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-a
-1
-2
-3
-4
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 1),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-a
-4
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b)) > 3;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 2),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b));
-a
-1
-2
-3
-4
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 1),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b));
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b));
-a
-1
-2
-3
-4
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b));
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1,t2;
-create table t1 (df decimal(5,1));
-insert into t1 values(1.1);
-insert into t1 values(2.2);
-select * from t1 where df <= all (select avg(df) from t1 group by df);
-df
-1.1
-select * from t1 where df >= all (select avg(df) from t1 group by df);
-df
-2.2
-drop table t1;
-create table t1 (df decimal(5,1));
-insert into t1 values(1.1);
-select 1.1 * exists(select * from t1);
-1.1 * exists(select * from t1)
-1.1
-drop table t1;
-CREATE TABLE t1 (
-grp int(11) default NULL,
-a decimal(10,2) default NULL);
-insert into t1 values (1, 1), (2, 2), (2, 3), (3, 4), (3, 5), (3, 6), (NULL, NULL);
-select * from t1;
-grp a
-1 1.00
-2 2.00
-2 3.00
-3 4.00
-3 5.00
-3 6.00
-NULL NULL
-select min(a) from t1 group by grp;
-min(a)
-NULL
-1.00
-2.00
-4.00
-drop table t1;
-CREATE table t1 ( c1 integer );
-INSERT INTO t1 VALUES ( 1 );
-INSERT INTO t1 VALUES ( 2 );
-INSERT INTO t1 VALUES ( 3 );
-CREATE TABLE t2 ( c2 integer );
-INSERT INTO t2 VALUES ( 1 );
-INSERT INTO t2 VALUES ( 4 );
-INSERT INTO t2 VALUES ( 5 );
-SELECT * FROM t1 LEFT JOIN t2 ON c1 = c2 WHERE c2 IN (1);
-c1 c2
-1 1
-SELECT * FROM t1 LEFT JOIN t2 ON c1 = c2
-WHERE c2 IN ( SELECT c2 FROM t2 WHERE c2 IN ( 1 ) );
-c1 c2
-1 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 ( c1 integer );
-INSERT INTO t1 VALUES ( 1 );
-INSERT INTO t1 VALUES ( 2 );
-INSERT INTO t1 VALUES ( 3 );
-INSERT INTO t1 VALUES ( 6 );
-CREATE TABLE t2 ( c2 integer );
-INSERT INTO t2 VALUES ( 1 );
-INSERT INTO t2 VALUES ( 4 );
-INSERT INTO t2 VALUES ( 5 );
-INSERT INTO t2 VALUES ( 6 );
-CREATE TABLE t3 ( c3 integer );
-INSERT INTO t3 VALUES ( 7 );
-INSERT INTO t3 VALUES ( 8 );
-SELECT c1,c2 FROM t1 LEFT JOIN t2 ON c1 = c2
-WHERE EXISTS (SELECT c3 FROM t3 WHERE c2 IS NULL );
-c1 c2
-2 NULL
-3 NULL
-DROP TABLE t1,t2,t3;
-CREATE TABLE `t1` (
-`itemid` bigint(20) unsigned NOT NULL auto_increment,
-`sessionid` bigint(20) unsigned default NULL,
-`time` int(10) unsigned NOT NULL default '0',
-`type` set('A','D','E','F','G','I','L','N','U') collate latin1_general_ci NOT
-NULL default '',
-`data` text collate latin1_general_ci NOT NULL,
-PRIMARY KEY (`itemid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t1` VALUES (1, 1, 1, 'D', '');
-CREATE TABLE `t2` (
-`sessionid` bigint(20) unsigned NOT NULL auto_increment,
-`pid` int(10) unsigned NOT NULL default '0',
-`date` int(10) unsigned NOT NULL default '0',
-`ip` varchar(15) collate latin1_general_ci NOT NULL default '',
-PRIMARY KEY (`sessionid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t2` VALUES (1, 1, 1, '10.10.10.1');
-SELECT s.ip, count( e.itemid ) FROM `t1` e JOIN t2 s ON s.sessionid = e.sessionid WHERE e.sessionid = ( SELECT sessionid FROM t2 ORDER BY sessionid DESC LIMIT 1 ) GROUP BY s.ip HAVING count( e.itemid ) >0 LIMIT 0 , 30;
-ip count( e.itemid )
-10.10.10.1 1
-drop tables t1,t2;
-CREATE TABLE t1 (EMPNUM CHAR(3));
-CREATE TABLE t2 (EMPNUM CHAR(3) );
-INSERT INTO t1 VALUES ('E1'),('E2');
-INSERT INTO t2 VALUES ('E1');
-DELETE FROM t1
-WHERE t1.EMPNUM NOT IN
-(SELECT t2.EMPNUM
-FROM t2
-WHERE t1.EMPNUM = t2.EMPNUM);
-select * from t1;
-EMPNUM
-E1
-DROP TABLE t1,t2;
-CREATE TABLE t1(select_id BIGINT, values_id BIGINT);
-INSERT INTO t1 VALUES (1, 1);
-CREATE TABLE t2 (select_id BIGINT, values_id BIGINT,
-PRIMARY KEY(select_id,values_id));
-INSERT INTO t2 VALUES (0, 1), (0, 2), (0, 3), (1, 5);
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id IN (1, 0));
-values_id
-1
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id BETWEEN 0 AND 1);
-values_id
-1
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id = 0 OR select_id = 1);
-values_id
-1
-DROP TABLE t1, t2;
-create table t1 (fld enum('0','1'));
-insert into t1 values ('1');
-select * from (select max(fld) from t1) as foo;
-max(fld)
-1
-drop table t1;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (c int, d int);
-CREATE TABLE t3 (e int);
-INSERT INTO t1 VALUES
-(1,10), (2,10), (1,20), (2,20), (3,20), (2,30), (4,40);
-INSERT INTO t2 VALUES
-(2,10), (2,20), (4,10), (5,10), (3,20), (2,40);
-INSERT INTO t3 VALUES (10), (30), (10), (20) ;
-SELECT a, MAX(b), MIN(b) FROM t1 GROUP BY a;
-a MAX(b) MIN(b)
-1 20 10
-2 30 10
-3 20 20
-4 40 40
-SELECT * FROM t2;
-c d
-2 10
-2 20
-4 10
-5 10
-3 20
-2 40
-SELECT * FROM t3;
-e
-10
-30
-10
-20
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)>20);
-a
-2
-4
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)<d);
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)>d);
-a
-2
-4
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE d >= SOME(SELECT e FROM t3 WHERE MAX(b)=e));
-a
-2
-3
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e <= d));
-a
-2
-3
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE d > SOME(SELECT e FROM t3 WHERE MAX(b)=e));
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e < d));
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE MIN(b) < d AND
-EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e <= d));
-a
-2
-SELECT a, SUM(a) FROM t1 GROUP BY a;
-a SUM(a)
-1 2
-2 6
-3 3
-4 4
-SELECT a FROM t1
-WHERE EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) = c) GROUP BY a;
-a
-3
-4
-SELECT a FROM t1 GROUP BY a
-HAVING EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) = c);
-a
-1
-3
-4
-SELECT a FROM t1
-WHERE a < 3 AND
-EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) != c) GROUP BY a;
-a
-1
-2
-SELECT a FROM t1
-WHERE a < 3 AND
-EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) != c);
-a
-1
-2
-1
-2
-2
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a < ALL(SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING EXISTS(SELECT t3.e FROM t3 GROUP BY t3.e
-HAVING SUM(t1.a+t2.c) < t3.e/4));
-a
-1
-2
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a > ALL(SELECT t2.c FROM t2
-WHERE EXISTS(SELECT t3.e FROM t3 GROUP BY t3.e
-HAVING SUM(t1.a+t2.c) < t3.e/4));
-a
-4
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a > ALL(SELECT t2.c FROM t2
-WHERE EXISTS(SELECT t3.e FROM t3
-WHERE SUM(t1.a+t2.c) < t3.e/4));
-ERROR HY000: Invalid use of group function
-SELECT t1.a from t1 GROUP BY t1.a HAVING AVG(SUM(t1.b)) > 20;
-ERROR HY000: Invalid use of group function
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING AVG(t2.c+SUM(t1.b)) > 20);
-a
-2
-3
-4
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING AVG(SUM(t1.b)) > 20);
-a
-2
-4
-SELECT t1.a, SUM(b) AS sum FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING t2.c+sum > 20);
-a sum
-2 60
-3 20
-4 40
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a varchar(5), b varchar(10));
-INSERT INTO t1 VALUES
-('AAA', 5), ('BBB', 4), ('BBB', 1), ('CCC', 2),
-('CCC', 7), ('AAA', 2), ('AAA', 4), ('BBB', 3), ('AAA', 8);
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-a b
-BBB 4
-CCC 7
-AAA 8
-EXPLAIN
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 21 test.t1.a,test.t1.b 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 9 Using temporary
-ALTER TABLE t1 ADD INDEX(a);
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-a b
-BBB 4
-CCC 7
-AAA 8
-EXPLAIN
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL a NULL NULL NULL 9 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 21 test.t1.a,test.t1.b 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 9 Using temporary
-DROP TABLE t1;
-create table t1( f1 int,f2 int);
-insert into t1 values (1,1),(2,2);
-select tt.t from (select 'crash1' as t, f2 from t1) as tt left join t1 on tt.t = 'crash2' and tt.f2 = t1.f2 where tt.t = 'crash1';
-t
-crash1
-crash1
-drop table t1;
-create table t1 (c int, key(c));
-insert into t1 values (1142477582), (1142455969);
-create table t2 (a int, b int);
-insert into t2 values (2, 1), (1, 0);
-delete from t1 where c <= 1140006215 and (select b from t2 where a = 2) = 1;
-drop table t1, t2;
-CREATE TABLE t1 (a INT);
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE no_such_column = ANY (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'IN/ALL/ANY subquery'
-CREATE VIEW v2 AS SELECT * FROM t1 WHERE no_such_column = (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'where clause'
-SELECT * FROM t1 WHERE no_such_column = ANY (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'IN/ALL/ANY subquery'
-DROP TABLE t1;
-create table t1 (i int, j bigint);
-insert into t1 values (1, 2), (2, 2), (3, 2);
-select * from (select min(i) from t1 where j=(select * from (select min(j) from t1) t2)) t3;
-min(i)
-1
-drop table t1;
-CREATE TABLE t1 (i BIGINT UNSIGNED);
-INSERT INTO t1 VALUES (10000000000000000000);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (i BIGINT UNSIGNED);
-INSERT INTO t2 VALUES (10000000000000000000);
-INSERT INTO t2 VALUES (1);
-/* simple test */
-SELECT t1.i FROM t1 JOIN t2 ON t1.i = t2.i;
-i
-10000000000000000000
-1
-/* subquery test */
-SELECT t1.i FROM t1 WHERE t1.i = (SELECT MAX(i) FROM t2);
-i
-10000000000000000000
-/* subquery test with cast*/
-SELECT t1.i FROM t1 WHERE t1.i = CAST((SELECT MAX(i) FROM t2) AS UNSIGNED);
-i
-10000000000000000000
-DROP TABLE t1;
-DROP TABLE t2;
-CREATE TABLE t1 (
-id bigint(20) unsigned NOT NULL auto_increment,
-name varchar(255) NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t1 VALUES
-(1, 'Balazs'), (2, 'Joe'), (3, 'Frank');
-CREATE TABLE t2 (
-id bigint(20) unsigned NOT NULL auto_increment,
-mid bigint(20) unsigned NOT NULL,
-date date NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t2 VALUES
-(1, 1, '2006-03-30'), (2, 2, '2006-04-06'), (3, 3, '2006-04-13'),
-(4, 2, '2006-04-20'), (5, 1, '2006-05-01');
-SELECT *,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 0, 1) AS date_last,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 3, 1) AS date_next_to_last
-FROM t1;
-id name date_last date_next_to_last
-1 Balazs 2006-05-01 NULL
-2 Joe 2006-04-20 NULL
-3 Frank 2006-04-13 NULL
-SELECT *,
-(SELECT COUNT(*) FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 1, 1) AS date_count
-FROM t1;
-id name date_count
-1 Balazs NULL
-2 Joe NULL
-3 Frank NULL
-SELECT *,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 0, 1) AS date_last,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 1, 1) AS date_next_to_last
-FROM t1;
-id name date_last date_next_to_last
-1 Balazs 2006-05-01 2006-03-30
-2 Joe 2006-04-20 2006-04-06
-3 Frank 2006-04-13 NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-i1 int(11) NOT NULL default '0',
-i2 int(11) NOT NULL default '0',
-t datetime NOT NULL default '0000-00-00 00:00:00',
-PRIMARY KEY (i1,i2,t)
-);
-INSERT INTO t1 VALUES
-(24,1,'2005-03-03 16:31:31'),(24,1,'2005-05-27 12:40:07'),
-(24,1,'2005-05-27 12:40:08'),(24,1,'2005-05-27 12:40:10'),
-(24,1,'2005-05-27 12:40:25'),(24,1,'2005-05-27 12:40:30'),
-(24,2,'2005-03-03 13:43:05'),(24,2,'2005-03-03 16:23:31'),
-(24,2,'2005-03-03 16:31:30'),(24,2,'2005-05-27 12:37:02'),
-(24,2,'2005-05-27 12:40:06');
-CREATE TABLE t2 (
-i1 int(11) NOT NULL default '0',
-i2 int(11) NOT NULL default '0',
-t datetime default NULL,
-PRIMARY KEY (i1)
-);
-INSERT INTO t2 VALUES (24,1,'2006-06-20 12:29:40');
-EXPLAIN
-SELECT * FROM t1,t2
-WHERE t1.t = (SELECT t1.t FROM t1
-WHERE t1.t < t2.t AND t1.i2=1 AND t2.i1=t1.i1
-ORDER BY t1.t DESC LIMIT 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-1 PRIMARY t1 index NULL PRIMARY 13 NULL 11 Using where; Using index
-2 SUBQUERY t1 range PRIMARY PRIMARY 13 NULL 5 Using where; Using index
-SELECT * FROM t1,t2
-WHERE t1.t = (SELECT t1.t FROM t1
-WHERE t1.t < t2.t AND t1.i2=1 AND t2.i1=t1.i1
-ORDER BY t1.t DESC LIMIT 1);
-i1 i2 t i1 i2 t
-24 1 2005-05-27 12:40:30 24 1 2006-06-20 12:29:40
-DROP TABLE t1, t2;
-CREATE TABLE t1 (i INT);
-(SELECT i FROM t1) UNION (SELECT i FROM t1);
-i
-SELECT sql_no_cache * FROM t1 WHERE NOT EXISTS
-(
-(SELECT i FROM t1) UNION
-(SELECT i FROM t1)
-);
-i
-SELECT * FROM t1
-WHERE NOT EXISTS (((SELECT i FROM t1) UNION (SELECT i FROM t1)));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION (SELECT i FROM t1)))' at line 2
-explain select ((select t11.i from t1 t11) union (select t12.i from t1 t12))
-from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'union (select t12.i from t1 t12))
-from t1' at line 1
-explain select * from t1 where not exists
-((select t11.i from t1 t11) union (select t12.i from t1 t12));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-3 UNION NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(250), b INT auto_increment, PRIMARY KEY (b));
-insert into t1 (a) values (FLOOR(rand() * 100));
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-SELECT a,
-(SELECT REPEAT(' ',250) FROM t1 i1
-WHERE i1.b=t1.a ORDER BY RAND() LIMIT 1) AS a
-FROM t1 ORDER BY a LIMIT 5;
-a a
-0 NULL
-0 NULL
-0 NULL
-0 NULL
-0 NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 values (1);
-INSERT INTO t1 VALUES (1,1),(1,2),(2,3),(3,4);
-SELECT (SELECT COUNT(DISTINCT t1.b) from t2) FROM t1 GROUP BY t1.a;
-(SELECT COUNT(DISTINCT t1.b) from t2)
-2
-1
-1
-SELECT (SELECT COUNT(DISTINCT t1.b) from t2 union select 1 from t2 where 12 < 3)
-FROM t1 GROUP BY t1.a;
-(SELECT COUNT(DISTINCT t1.b) from t2 union select 1 from t2 where 12 < 3)
-2
-1
-1
-SELECT COUNT(DISTINCT t1.b), (SELECT COUNT(DISTINCT t1.b)) FROM t1 GROUP BY t1.a;
-COUNT(DISTINCT t1.b) (SELECT COUNT(DISTINCT t1.b))
-2 2
-1 1
-1 1
-SELECT COUNT(DISTINCT t1.b),
-(SELECT COUNT(DISTINCT t1.b) union select 1 from DUAL where 12 < 3)
-FROM t1 GROUP BY t1.a;
-COUNT(DISTINCT t1.b) (SELECT COUNT(DISTINCT t1.b) union select 1 from DUAL where 12 < 3)
-2 2
-1 1
-1 1
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a;
-(
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-2
-1
-1
-SELECT (
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a LIMIT 1)
-FROM t1 t2
-GROUP BY t2.a;
-(
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a LIMIT 1)
-2
-2
-2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int, PRIMARY KEY (b));
-CREATE TABLE t2 (x int auto_increment, y int, z int,
-PRIMARY KEY (x), FOREIGN KEY (y) REFERENCES t1 (b));
-create table t3 (a int);
-insert into t3 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t1 select RAND()*1000, A.a + 10*(B.a+10*(C.a+10*D.a))
-from t3 A, t3 B, t3 C, t3 D where D.a<3;
-insert into t2(y,z) select t1.b, RAND()*1000 from t1, t3;
-SET SESSION sort_buffer_size = 32 * 1024;
-SELECT SQL_NO_CACHE COUNT(*)
-FROM (SELECT a, b, (SELECT x FROM t2 WHERE y=b ORDER BY z DESC LIMIT 1) c
-FROM t1) t;
-COUNT(*)
-3000
-SET SESSION sort_buffer_size = 8 * 1024 * 1024;
-SELECT SQL_NO_CACHE COUNT(*)
-FROM (SELECT a, b, (SELECT x FROM t2 WHERE y=b ORDER BY z DESC LIMIT 1) c
-FROM t1) t;
-COUNT(*)
-3000
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (id char(4) PRIMARY KEY, c int);
-CREATE TABLE t2 (c int);
-INSERT INTO t1 VALUES ('aa', 1);
-INSERT INTO t2 VALUES (1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT c FROM t2 WHERE c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-INSERT INTO t1 VALUES ('bb', 2), ('cc', 3), ('dd',1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT c FROM t2 WHERE c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-bb 2
-cc 3
-dd 1
-INSERT INTO t2 VALUES (2);
-CREATE TABLE t3 (c int);
-INSERT INTO t3 VALUES (1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT t2.c FROM t2 JOIN t3 ON t2.c=t3.c WHERE t2.c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-bb 2
-cc 3
-dd 1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1(f1 int);
-CREATE TABLE t2(f2 int, f21 int, f3 timestamp);
-INSERT INTO t1 VALUES (1),(1),(2),(2);
-INSERT INTO t2 VALUES (1,1,"2004-02-29 11:11:11"), (2,2,"2004-02-29 11:11:11");
-SELECT ((SELECT f2 FROM t2 WHERE f21=f1 LIMIT 1) * COUNT(f1)) AS sq FROM t1 GROUP BY f1;
-sq
-2
-4
-SELECT (SELECT SUM(1) FROM t2 ttt GROUP BY t2.f3 LIMIT 1) AS tt FROM t2;
-tt
-2
-2
-PREPARE stmt1 FROM 'SELECT ((SELECT f2 FROM t2 WHERE f21=f1 LIMIT 1) * COUNT(f1)) AS sq FROM t1 GROUP BY f1';
-EXECUTE stmt1;
-sq
-2
-4
-EXECUTE stmt1;
-sq
-2
-4
-DEALLOCATE PREPARE stmt1;
-SELECT f2, AVG(f21),
-(SELECT t.f3 FROM t2 AS t WHERE t2.f2=t.f2 AND t.f3=MAX(t2.f3)) AS test
-FROM t2 GROUP BY f2;
-f2 AVG(f21) test
-1 1.0000 2004-02-29 11:11:11
-2 2.0000 2004-02-29 11:11:11
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b INT, c CHAR(10) NOT NULL);
-INSERT INTO t1 VALUES
-(1,1,'a'), (1,2,'b'), (1,3,'c'), (1,4,'d'), (1,5,'e'),
-(2,1,'f'), (2,2,'g'), (2,3,'h'), (3,4,'i'), (3,3,'j'),
-(3,2,'k'), (3,1,'l'), (1,9,'m');
-SELECT a, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b)) AS test
-FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-DROP TABLE IF EXISTS t1xt2;
-CREATE TABLE t1 (
-id_1 int(5) NOT NULL,
-t varchar(4) DEFAULT NULL
-);
-CREATE TABLE t2 (
-id_2 int(5) NOT NULL,
-t varchar(4) DEFAULT NULL
-);
-CREATE TABLE t1xt2 (
-id_1 int(5) NOT NULL,
-id_2 int(5) NOT NULL
-);
-INSERT INTO t1 VALUES (1, 'a'), (2, 'b'), (3, 'c'), (4, 'd');
-INSERT INTO t2 VALUES (2, 'bb'), (3, 'cc'), (4, 'dd'), (12, 'aa');
-INSERT INTO t1xt2 VALUES (2, 2), (3, 3), (4, 4);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 where t1.id_1 = t1xt2.id_1)));
-id_1
-1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 where t1.id_1 = t1xt2.id_1))));
-id_1
-1
-2
-3
-4
-insert INTO t1xt2 VALUES (1, 12);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-2
-3
-4
-insert INTO t1xt2 VALUES (2, 12);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-3
-4
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t1xt2;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (3), (1), (2);
-SELECT 'this is ' 'a test.' AS col1, a AS col2 FROM t1;
-col1 col2
-this is a test. 3
-this is a test. 1
-this is a test. 2
-SELECT * FROM (SELECT 'this is ' 'a test.' AS col1, a AS t2 FROM t1) t;
-col1 t2
-this is a test. 3
-this is a test. 1
-this is a test. 2
-DROP table t1;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (m int, n int);
-INSERT INTO t1 VALUES (2,2), (2,2), (3,3), (3,3), (3,3), (4,4);
-INSERT INTO t2 VALUES (1,11), (2,22), (3,32), (4,44), (4,44);
-SELECT COUNT(*), a,
-(SELECT m FROM t2 WHERE m = count(*) LIMIT 1)
-FROM t1 GROUP BY a;
-COUNT(*) a (SELECT m FROM t2 WHERE m = count(*) LIMIT 1)
-2 2 2
-3 3 3
-1 4 1
-SELECT COUNT(*), a,
-(SELECT MIN(m) FROM t2 WHERE m = count(*))
-FROM t1 GROUP BY a;
-COUNT(*) a (SELECT MIN(m) FROM t2 WHERE m = count(*))
-2 2 2
-3 3 3
-1 4 1
-SELECT COUNT(*), a
-FROM t1 GROUP BY a
-HAVING (SELECT MIN(m) FROM t2 WHERE m = count(*)) > 1;
-COUNT(*) a
-2 2
-3 3
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (m int, n int);
-INSERT INTO t1 VALUES (2,2), (2,2), (3,3), (3,3), (3,3), (4,4);
-INSERT INTO t2 VALUES (1,11), (2,22), (3,32), (4,44), (4,44);
-SELECT COUNT(*) c, a,
-(SELECT GROUP_CONCAT(COUNT(a)) FROM t2 WHERE m = a)
-FROM t1 GROUP BY a;
-c a (SELECT GROUP_CONCAT(COUNT(a)) FROM t2 WHERE m = a)
-2 2 2
-3 3 3
-1 4 1,1
-SELECT COUNT(*) c, a,
-(SELECT GROUP_CONCAT(COUNT(a)+1) FROM t2 WHERE m = a)
-FROM t1 GROUP BY a;
-c a (SELECT GROUP_CONCAT(COUNT(a)+1) FROM t2 WHERE m = a)
-2 2 3
-3 3 4
-1 4 2,2
-DROP table t1,t2;
-CREATE TABLE t1 (a int, b INT, d INT, c CHAR(10) NOT NULL, PRIMARY KEY (a, b));
-INSERT INTO t1 VALUES (1,1,0,'a'), (1,2,0,'b'), (1,3,0,'c'), (1,4,0,'d'),
-(1,5,0,'e'), (2,1,0,'f'), (2,2,0,'g'), (2,3,0,'h'), (3,4,0,'i'), (3,3,0,'j'),
-(3,2,0,'k'), (3,1,0,'l'), (1,9,0,'m'), (1,0,10,'n'), (2,0,5,'o'), (3,0,7,'p');
-SELECT a, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b + 0)) as test
-FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-SELECT a x, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE x=t.a AND t.b=MAX(t1.b + 0)) as test
-FROM t1 GROUP BY a;
-x MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-SELECT a, AVG(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=AVG(t1.b)) AS test
-FROM t1 WHERE t1.d=0 GROUP BY a;
-a AVG(b) test
-1 4.0000 d
-2 2.0000 g
-3 2.5000 NULL
-SELECT tt.a,
-(SELECT (SELECT c FROM t1 as t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1) FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
-FROM t1 as tt;
-a test
-1 n
-1 n
-1 n
-1 n
-1 n
-1 n
-1 n
-2 o
-2 o
-2 o
-2 o
-3 p
-3 p
-3 p
-3 p
-3 p
-SELECT tt.a,
-(SELECT (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1)
-FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
-FROM t1 as tt GROUP BY tt.a;
-a test
-1 n
-2 o
-3 p
-SELECT tt.a, MAX(
-(SELECT (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1)
-FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1)) as test
-FROM t1 as tt GROUP BY tt.a;
-a test
-1 n
-2 o
-3 p
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-a
-1
-2
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-a
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-a
-1
-2
-SET @@sql_mode='ansi';
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-ERROR HY000: Invalid use of group function
-SET @@sql_mode=default;
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 values (1),(1),(1),(1);
-CREATE TABLE t2 (x INT);
-INSERT INTO t1 values (1000),(1001),(1002);
-SELECT SUM( (SELECT COUNT(a) FROM t2) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT SUM( (SELECT SUM(COUNT(a)) FROM t2) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT COUNT(1) FROM DUAL;
-COUNT(1)
-1
-SELECT SUM( (SELECT AVG( (SELECT t1.a FROM t2) ) FROM DUAL) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT
-SUM( (SELECT AVG( (SELECT COUNT(*) FROM t1 t HAVING t1.a < 12) ) FROM t2) )
-FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT t1.a as XXA,
-SUM( (SELECT AVG( (SELECT COUNT(*) FROM t1 t HAVING XXA < 12) ) FROM t2) )
-FROM t1;
-ERROR HY000: Invalid use of group function
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int, KEY (a));
-INSERT INTO t1 VALUES (1,1),(2,1);
-EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT COUNT(*) FROM t1 GROUP BY b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref a a 5 const 1 Using where; Using index
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-DROP TABLE t1;
-CREATE TABLE t1 (id int NOT NULL, st CHAR(2), INDEX idx(id));
-INSERT INTO t1 VALUES
-(3,'FL'), (2,'GA'), (4,'FL'), (1,'GA'), (5,'NY'), (7,'FL'), (6,'NY');
-CREATE TABLE t2 (id int NOT NULL, INDEX idx(id));
-INSERT INTO t2 VALUES (7), (5), (1), (3);
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id);
-id st
-3 FL
-1 GA
-7 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id)
-GROUP BY id;
-id st
-1 GA
-3 FL
-7 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND NOT EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id);
-id st
-2 GA
-4 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND NOT EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id)
-GROUP BY id;
-id st
-2 GA
-4 FL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-EXPLAIN EXTENDED
-SELECT * FROM (SELECT count(*) FROM t1 GROUP BY a) as res;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `res`.`count(*)` AS `count(*)` from (/* select#2 */ select count(0) AS `count(*)` from `test`.`t1` group by `test`.`t1`.`a`) `res`
-DROP TABLE t1;
-CREATE TABLE t1 (
-a varchar(255) default NULL,
-b timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
-INDEX idx(a,b)
-);
-CREATE TABLE t2 (
-a varchar(255) default NULL
-);
-INSERT INTO t1 VALUES ('abcdefghijk','2007-05-07 06:00:24');
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO `t1` VALUES ('asdf','2007-02-08 01:11:26');
-INSERT INTO `t2` VALUES ('abcdefghijk');
-INSERT INTO `t2` VALUES ('asdf');
-SET session sort_buffer_size=8192;
-SELECT (SELECT 1 FROM t1 WHERE t1.a=t2.a ORDER BY t1.b LIMIT 1) AS d1 FROM t2;
-d1
-1
-1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INTEGER, b INTEGER);
-CREATE TABLE t2 (x INTEGER);
-INSERT INTO t1 VALUES (1,11), (2,22), (2,22);
-INSERT INTO t2 VALUES (1), (2);
-SELECT a, COUNT(b), (SELECT COUNT(b) FROM t2) FROM t1 GROUP BY a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a, COUNT(b), (SELECT COUNT(b)+0 FROM t2) FROM t1 GROUP BY a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT SUM(t1.a)/AVG(t2.x) FROM t2) FROM t1;
-(SELECT SUM(t1.a)/AVG(t2.x) FROM t2)
-3.3333
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1, 2), (1,3), (1,4), (2,1), (2,2);
-SELECT a1.a, COUNT(*) FROM t1 a1 WHERE a1.a = 1
-AND EXISTS( SELECT a2.a FROM t1 a2 WHERE a2.a = a1.a)
-GROUP BY a1.a;
-a COUNT(*)
-1 3
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1),(2);
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a=0) FROM t1;
-(SELECT SUM(t1.a) FROM t2 WHERE a=0)
-NULL
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a!=0) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a=1) FROM t1;
-(SELECT SUM(t1.a) FROM t2 WHERE a=1)
-3
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a1 INT, a2 INT);
-CREATE TABLE t2 (b1 INT, b2 INT);
-INSERT INTO t1 VALUES (100, 200);
-INSERT INTO t1 VALUES (101, 201);
-INSERT INTO t2 VALUES (101, 201);
-INSERT INTO t2 VALUES (103, 203);
-SELECT ((a1,a2) IN (SELECT * FROM t2 WHERE b2 > 0)) IS NULL FROM t1;
-((a1,a2) IN (SELECT * FROM t2 WHERE b2 > 0)) IS NULL
-0
-0
-DROP TABLE t1, t2;
-CREATE TABLE t1 (s1 BINARY(5), s2 VARBINARY(5));
-INSERT INTO t1 VALUES (0x41,0x41), (0x42,0x42), (0x43,0x43);
-SELECT s1, s2 FROM t1 WHERE s2 IN (SELECT s1 FROM t1);
-s1 s2
-SELECT s1, s2 FROM t1 WHERE (s2, 10) IN (SELECT s1, 10 FROM t1);
-s1 s2
-CREATE INDEX I1 ON t1 (s1);
-CREATE INDEX I2 ON t1 (s2);
-SELECT s1, s2 FROM t1 WHERE s2 IN (SELECT s1 FROM t1);
-s1 s2
-SELECT s1, s2 FROM t1 WHERE (s2, 10) IN (SELECT s1, 10 FROM t1);
-s1 s2
-TRUNCATE t1;
-INSERT INTO t1 VALUES (0x41,0x41);
-SELECT * FROM t1 WHERE s1 = (SELECT s2 FROM t1);
-s1 s2
-DROP TABLE t1;
-CREATE TABLE t1 (a1 VARBINARY(2) NOT NULL DEFAULT '0', PRIMARY KEY (a1));
-CREATE TABLE t2 (a2 BINARY(2) default '0', INDEX (a2));
-CREATE TABLE t3 (a3 BINARY(2) default '0');
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-INSERT INTO t2 VALUES (1),(2),(3);
-INSERT INTO t3 VALUES (1),(2),(3);
-SELECT LEFT(t2.a2, 1) FROM t2,t3 WHERE t3.a3=t2.a2;
-LEFT(t2.a2, 1)
-1
-2
-3
-SELECT t1.a1, t1.a1 in (SELECT t2.a2 FROM t2,t3 WHERE t3.a3=t2.a2) FROM t1;
-a1 t1.a1 in (SELECT t2.a2 FROM t2,t3 WHERE t3.a3=t2.a2)
-1 0
-2 0
-3 0
-4 0
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a1 BINARY(3) PRIMARY KEY, b1 VARBINARY(3));
-CREATE TABLE t2 (a2 VARBINARY(3) PRIMARY KEY);
-CREATE TABLE t3 (a3 VARBINARY(3) PRIMARY KEY);
-INSERT INTO t1 VALUES (1,10), (2,20), (3,30), (4,40);
-INSERT INTO t2 VALUES (2), (3), (4), (5);
-INSERT INTO t3 VALUES (10), (20), (30);
-SELECT LEFT(t1.a1,1) FROM t1,t3 WHERE t1.b1=t3.a3;
-LEFT(t1.a1,1)
-1
-2
-3
-SELECT a2 FROM t2 WHERE t2.a2 IN (SELECT t1.a1 FROM t1,t3 WHERE t1.b1=t3.a3);
-a2
-DROP TABLE t1, t2, t3;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='semijoin_with_cache=off';
-SET optimizer_switch='materialization=off';
-CREATE TABLE t1 (a CHAR(1), b VARCHAR(10));
-INSERT INTO t1 VALUES ('a', 'aa');
-INSERT INTO t1 VALUES ('a', 'aaa');
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-a b
-CREATE INDEX I1 ON t1 (a);
-CREATE INDEX I2 ON t1 (b);
-EXPLAIN SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL I2 NULL NULL NULL 2 Using where
-1 PRIMARY t1 ref I1 I1 2 test.t1.b 2 Using where; Using index; FirstMatch(t1)
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-a b
-CREATE TABLE t2 (a VARCHAR(1), b VARCHAR(10));
-INSERT INTO t2 SELECT * FROM t1;
-CREATE INDEX I1 ON t2 (a);
-CREATE INDEX I2 ON t2 (b);
-EXPLAIN SELECT a,b FROM t2 WHERE b IN (SELECT a FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL I2 NULL NULL NULL 2 Using where
-1 PRIMARY t2 ref I1 I1 4 test.t2.b 2 Using where; Using index; FirstMatch(t2)
-SELECT a,b FROM t2 WHERE b IN (SELECT a FROM t2);
-a b
-EXPLAIN
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1 WHERE LENGTH(a)<500);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL I2 NULL NULL NULL 2 Using where
-1 PRIMARY t1 ref I1 I1 2 test.t1.b 2 Using where; Using index; FirstMatch(t1)
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1 WHERE LENGTH(a)<500);
-a b
-DROP TABLE t1,t2;
-SET optimizer_switch= @save_optimizer_switch;
-CREATE TABLE t1(a INT, b INT);
-INSERT INTO t1 VALUES (1,1), (1,2), (2,3), (2,4);
-EXPLAIN
-SELECT a AS out_a, MIN(b) FROM t1
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = out_a)
-GROUP BY a;
-ERROR 42S22: Unknown column 'out_a' in 'where clause'
-SELECT a AS out_a, MIN(b) FROM t1
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = out_a)
-GROUP BY a;
-ERROR 42S22: Unknown column 'out_a' in 'where clause'
-EXPLAIN
-SELECT a AS out_a, MIN(b) FROM t1 t1_outer
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = t1_outer.a)
-GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_outer ALL NULL NULL NULL NULL 4 Using where; Using temporary; Using filesort
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 4 Using where
-SELECT a AS out_a, MIN(b) FROM t1 t1_outer
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = t1_outer.a)
-GROUP BY a;
-out_a MIN(b)
-1 2
-2 4
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1),(2);
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a));
-2
-2
-2
-EXPLAIN EXTENDED
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 2 AS `2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(exists(/* select#2 */ select 1 from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`))
-EXPLAIN EXTENDED
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a) UNION
-(SELECT 1 FROM t2 WHERE t1.a = t2.a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DEPENDENT UNION t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 2 AS `2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(exists((/* select#2 */ select 1 from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`) union (/* select#3 */ select 1 from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`)))
-DROP TABLE t1,t2;
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(f11 int, f12 int);
-create table t2(f21 int unsigned not null, f22 int, f23 varchar(10));
-insert into t1 values(1,1),(2,2), (3, 3);
-insert ignore into t2
-select -1 , (@a:=(A.a + 10 * (B.a + 10 * (C.a+10*D.a))))/5000 + 1, @a
-from t0 A, t0 B, t0 C, t0 D;
-set session sort_buffer_size= 33*1024;
-select count(*) from t1 where f12 =
-(select f22 from t2 where f22 = f12 order by f21 desc, f22, f23 limit 1);
-count(*)
-3
-drop table t0,t1,t2;
-CREATE TABLE t4 (
-f7 varchar(32) collate utf8_bin NOT NULL default '',
-f10 varchar(32) collate utf8_bin default NULL,
-PRIMARY KEY (f7)
-);
-INSERT INTO t4 VALUES(1,1), (2,null);
-CREATE TABLE t2 (
-f4 varchar(32) collate utf8_bin NOT NULL default '',
-f2 varchar(50) collate utf8_bin default NULL,
-f3 varchar(10) collate utf8_bin default NULL,
-PRIMARY KEY (f4),
-UNIQUE KEY uk1 (f2)
-);
-INSERT INTO t2 VALUES(1,1,null), (2,2,null);
-CREATE TABLE t1 (
-f8 varchar(32) collate utf8_bin NOT NULL default '',
-f1 varchar(10) collate utf8_bin default NULL,
-f9 varchar(32) collate utf8_bin default NULL,
-PRIMARY KEY (f8)
-);
-INSERT INTO t1 VALUES (1,'P',1), (2,'P',1), (3,'R',2);
-CREATE TABLE t3 (
-f6 varchar(32) collate utf8_bin NOT NULL default '',
-f5 varchar(50) collate utf8_bin default NULL,
-PRIMARY KEY (f6)
-);
-INSERT INTO t3 VALUES (1,null), (2,null);
-SELECT
-IF(t1.f1 = 'R', a1.f2, t2.f2) AS a4,
-IF(t1.f1 = 'R', a1.f3, t2.f3) AS f3,
-SUM(
-IF(
-(SELECT VPC.f2
-FROM t2 VPC, t4 a2, t2 a3
-WHERE
-VPC.f4 = a2.f10 AND a3.f2 = a4
-LIMIT 1) IS NULL,
-0,
-t3.f5
-)
-) AS a6
-FROM
-t2, t3, t1 JOIN t2 a1 ON t1.f9 = a1.f4
-GROUP BY a4;
-a4 f3 a6
-1 NULL NULL
-2 NULL NULL
-DROP TABLE t1, t2, t3, t4;
-create table t1 (a float(5,4) zerofill);
-create table t2 (a float(5,4),b float(2,0));
-select t1.a from t1 where
-t1.a= (select b from t2 limit 1) and not
-t1.a= (select a from t2 limit 1) ;
-a
-drop table t1, t2;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=0;
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> const distinct_key distinct_key 4 const 1 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from <materialize> (/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1` group by `test`.`t1`.`a`) join `test`.`t1` where `<subquery2>`.`min(a)` = 1
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 WHERE a > 3 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> const distinct_key distinct_key 4 const 1 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2 100.00 Using where; Using temporary
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from <materialize> (/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1` where `test`.`t1`.`a` > 3 group by `test`.`t1`.`a`) join `test`.`t1` where `<subquery2>`.`min(a)` = 1
-SET join_cache_level=@save_join_cache_level;
-DROP TABLE t1;
-#
-# Bug#45061: Incorrectly market field caused wrong result.
-#
-CREATE TABLE `C` (
-`int_nokey` int(11) NOT NULL,
-`int_key` int(11) NOT NULL,
-KEY `int_key` (`int_key`)
-);
-INSERT INTO `C` VALUES (9,9), (0,0), (8,6), (3,6), (7,6), (0,4),
-(1,7), (9,4), (0,8), (9,4), (0,7), (5,5), (0,0), (8,5), (8,7),
-(5,2), (1,8), (7,0), (0,9), (9,5);
-SELECT * FROM C WHERE `int_key` IN (SELECT `int_nokey`);
-int_nokey int_key
-9 9
-0 0
-5 5
-0 0
-EXPLAIN EXTENDED SELECT * FROM C WHERE `int_key` IN (SELECT `int_nokey`);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE C ALL NULL NULL NULL NULL 20 100.00 Using where
-DROP TABLE C;
-# End of test for bug#45061.
-#
-# Bug #46749: Segfault in add_key_fields() with outer subquery level
-# field references
-#
-CREATE TABLE t1 (
-a int,
-b int,
-UNIQUE (a), KEY (b)
-);
-INSERT INTO t1 VALUES (1,1), (2,1);
-CREATE TABLE st1 like t1;
-INSERT INTO st1 VALUES (1,1), (2,1);
-CREATE TABLE st2 like t1;
-INSERT INTO st2 VALUES (1,1), (2,1);
-EXPLAIN
-SELECT MAX(b), (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-FROM t1
-WHERE a = 230;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT MAX(b), (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-FROM t1
-WHERE a = 230;
-MAX(b) (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-NULL NULL
-DROP TABLE t1, st1, st2;
-#
-# Bug #48709: Assertion failed in sql_select.cc:11782:
-# int join_read_key(JOIN_TAB*)
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, int_key int);
-INSERT INTO t1 VALUES (10,1), (14,1);
-CREATE TABLE t2 (pk int PRIMARY KEY, int_key int);
-INSERT INTO t2 VALUES (3,3), (5,NULL), (7,3);
-# should have eq_ref for t1
-EXPLAIN
-SELECT * FROM t2 outr
-WHERE outr.int_key NOT IN (SELECT t1.pk FROM t1, t2)
-ORDER BY outr.pk;
-id select_type table type possible_keys key key_len ref rows Extra
-x x outr ALL x x x x x x
-x x t1 eq_ref x x x x x x
-x x t2 index x x x x x x
-# should not crash on debug binaries
-SELECT * FROM t2 outr
-WHERE outr.int_key NOT IN (SELECT t1.pk FROM t1, t2)
-ORDER BY outr.pk;
-pk int_key
-3 3
-7 3
-DROP TABLE t1,t2;
-#
-# Bug#12329653
-# EXPLAIN, UNION, PREPARED STATEMENT, CRASH, SQL_FULL_GROUP_BY
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-EXPLAIN EXTENDED
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-1
-1
-1
-PREPARE stmt FROM
-'SELECT 1 UNION ALL
-SELECT 1 FROM t1
-ORDER BY
-(SELECT 1 FROM t1 AS t1_0
- WHERE 1 < SOME (SELECT a1 FROM t1)
-)' ;
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-SET SESSION sql_mode=@old_sql_mode;
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2(a1 int);
-INSERT INTO t2 VALUES (3);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2.0 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 'a' FROM t2);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t2);
-1
-1
-1
-SET SESSION sql_mode=@old_sql_mode;
-DROP TABLE t1, t2;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-create table t2(i int);
-insert into t2 values(0);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-CREATE VIEW v1 AS
-SELECT 'f' FROM t2 UNION SELECT 'x' FROM t2
-;
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key)
-);
-SELECT t1.pk
-FROM t1
-WHERE t1.col_varchar_key < ALL ( SELECT * FROM v1 )
-;
-pk
-SET SESSION sql_mode=@old_sql_mode;
-drop table t2, t1;
-drop view v1;
-# End of 5.0 tests.
-create table t_out (subcase char(3),
-a1 char(2), b1 char(2), c1 char(2));
-create table t_in (a2 char(2), b2 char(2), c2 char(2));
-insert into t_out values ('A.1','2a', NULL, '2a');
-insert into t_out values ('A.3', '2a', NULL, '2a');
-insert into t_out values ('A.4', '2a', NULL, 'xx');
-insert into t_out values ('B.1', '2a', '2a', '2a');
-insert into t_out values ('B.2', '2a', '2a', '2a');
-insert into t_out values ('B.3', '3a', 'xx', '3a');
-insert into t_out values ('B.4', 'xx', '3a', '3a');
-insert into t_in values ('1a', '1a', '1a');
-insert into t_in values ('2a', '2a', '2a');
-insert into t_in values (NULL, '2a', '2a');
-insert into t_in values ('3a', NULL, '3a');
-
-Test general IN semantics (not top-level)
-
-case A.1
-select subcase,
-(a1, b1, c1) IN (select * from t_in where a2 = 'no_match') pred_in,
-(a1, b1, c1) NOT IN (select * from t_in where a2 = 'no_match') pred_not_in
-from t_out where subcase = 'A.1';
-subcase pred_in pred_not_in
-A.1 0 1
-case A.2 - impossible
-case A.3
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'A.3';
-subcase pred_in pred_not_in
-A.3 NULL NULL
-case A.4
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'A.4';
-subcase pred_in pred_not_in
-A.4 0 1
-case B.1
-select subcase,
-(a1, b1, c1) IN (select * from t_in where a2 = 'no_match') pred_in,
-(a1, b1, c1) NOT IN (select * from t_in where a2 = 'no_match') pred_not_in
-from t_out where subcase = 'B.1';
-subcase pred_in pred_not_in
-B.1 0 1
-case B.2
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.2';
-subcase pred_in pred_not_in
-B.2 1 0
-case B.3
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.3';
-subcase pred_in pred_not_in
-B.3 NULL NULL
-case B.4
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.4';
-subcase pred_in pred_not_in
-B.4 0 1
-
-Test IN as top-level predicate, and
-as non-top level for cases A.3, B.3 (the only cases with NULL result).
-
-case A.1
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.1' and
-(a1, b1, c1) IN (select * from t_in where a1 = 'no_match');
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.1' and
-(a1, b1, c1) NOT IN (select * from t_in where a1 = 'no_match');
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.1' and
-NOT((a1, b1, c1) IN (select * from t_in where a1 = 'no_match'));
-not_pred_in
-T
-case A.3
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.3' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.3' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.3' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-select case when count(*) > 0 then 'N' else 'wrong result' end as pred_in from t_out
-where subcase = 'A.3' and
-((a1, b1, c1) IN (select * from t_in)) is NULL and
-((a1, b1, c1) NOT IN (select * from t_in)) is NULL;
-pred_in
-N
-case A.4
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.4' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.4' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.4' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-T
-case B.1
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.1' and
-(a1, b1, c1) IN (select * from t_in where a1 = 'no_match');
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.1' and
-(a1, b1, c1) NOT IN (select * from t_in where a1 = 'no_match');
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.1' and
-NOT((a1, b1, c1) IN (select * from t_in where a1 = 'no_match'));
-not_pred_in
-T
-case B.2
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.2' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.2' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.2' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-case B.3
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.3' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.3' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.3' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-select case when count(*) > 0 then 'N' else 'wrong result' end as pred_in from t_out
-where subcase = 'B.3' and
-((a1, b1, c1) IN (select * from t_in)) is NULL and
-((a1, b1, c1) NOT IN (select * from t_in)) is NULL;
-pred_in
-N
-case B.4
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.4' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.4' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.4' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-T
-drop table t_out;
-drop table t_in;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-a
-1
-2
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-a
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-a
-1
-2
-SET @@sql_mode='ansi';
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-ERROR HY000: Invalid use of group function
-SET @@sql_mode=default;
-DROP TABLE t1;
-CREATE TABLE t1 (s1 CHAR(1));
-INSERT INTO t1 VALUES ('a');
-SELECT * FROM t1 WHERE _utf8'a' = ANY (SELECT s1 FROM t1);
-s1
-a
-DROP TABLE t1;
-CREATE TABLE t1(c INT, KEY(c));
-CREATE TABLE t2(a INT, b INT);
-INSERT INTO t2 VALUES (1, 10), (2, NULL);
-INSERT INTO t1 VALUES (1), (3);
-SELECT * FROM t2 WHERE b NOT IN (SELECT max(t.c) FROM t1, t1 t WHERE t.c>10);
-a b
-DROP TABLE t1,t2;
-CREATE TABLE t1(pk INT PRIMARY KEY, a INT, INDEX idx(a));
-INSERT INTO t1 VALUES (1, 10), (3, 30), (2, 20);
-CREATE TABLE t2(pk INT PRIMARY KEY, a INT, b INT, INDEX idxa(a));
-INSERT INTO t2 VALUES (2, 20, 700), (1, 10, 200), (4, 10, 100);
-SELECT * FROM t1
-WHERE EXISTS (SELECT DISTINCT a FROM t2 WHERE t1.a < t2.a ORDER BY b);
-pk a
-1 10
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY (a), KEY b (b));
-INSERT INTO t1 VALUES (1,NULL), (9,NULL);
-CREATE TABLE t2 (
-a INT,
-b INT,
-c INT,
-d INT,
-PRIMARY KEY (a),
-UNIQUE KEY b (b,c,d),
-KEY b_2 (b),
-KEY c (c),
-KEY d (d)
-);
-INSERT INTO t2 VALUES
-(43, 2, 11 ,30),
-(44, 2, 12 ,30),
-(45, 1, 1 ,10000),
-(46, 1, 2 ,10000),
-(556,1, 32 ,10000);
-CREATE TABLE t3 (
-a INT,
-b INT,
-c INT,
-PRIMARY KEY (a),
-UNIQUE KEY b (b,c),
-KEY c (c),
-KEY b_2 (b)
-);
-INSERT INTO t3 VALUES (1,1,1), (2,32,1);
-explain
-SELECT t1.a, (SELECT 1 FROM t2 WHERE t2.b=t3.c AND t2.c=t1.a ORDER BY t2.d LIMIT 1) AS incorrect FROM t1, t3 WHERE t3.b=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 2 Using index
-1 PRIMARY t3 ref b,b_2 b 5 test.t1.a 1 Using index
-2 DEPENDENT SUBQUERY t2 ref b,b_2,c b 10 test.t3.c,test.t1.a 1 Using where; Using index
-SELECT t1.a, (SELECT 1 FROM t2 WHERE t2.b=t3.c AND t2.c=t1.a ORDER BY t2.d LIMIT 1) AS incorrect FROM t1, t3 WHERE t3.b=t1.a;
-a incorrect
-1 1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (id int);
-CREATE TABLE t2 (id int, c int);
-INSERT INTO t1 (id) VALUES (1);
-INSERT INTO t2 (id) VALUES (1);
-INSERT INTO t1 (id) VALUES (1);
-INSERT INTO t2 (id) VALUES (1);
-CREATE VIEW v1 AS
-SELECT t2.c AS c FROM t1, t2
-WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-UPDATE v1 SET c=1;
-CREATE VIEW v2 (a,b) AS
-SELECT t2.id, t2.c AS c FROM t1, t2
-WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-INSERT INTO v2(a,b) VALUES (2,2);
-ERROR 44000: CHECK OPTION failed `test`.`v2`
-SELECT * FROM v1;
-c
-1
-1
-1
-1
-CREATE VIEW v3 AS
-SELECT t2.c AS c FROM t2
-WHERE 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-DELETE FROM v3;
-DROP VIEW v1,v2,v3;
-DROP TABLE t1,t2;
-#
-# BUG#37822 Correlated subquery with IN and IS UNKNOWN provides wrong result
-#
-create table t1(id integer primary key, g integer, v integer, s char(1));
-create table t2(id integer primary key, g integer, v integer, s char(1));
-insert into t1 values
-(10, 10, 10, 'l'),
-(20, 20, 20, 'l'),
-(40, 40, 40, 'l'),
-(41, 40, null, 'l'),
-(50, 50, 50, 'l'),
-(51, 50, null, 'l'),
-(60, 60, 60, 'l'),
-(61, 60, null, 'l'),
-(70, 70, 70, 'l'),
-(90, 90, null, 'l');
-insert into t2 values
-(10, 10, 10, 'r'),
-(30, 30, 30, 'r'),
-(50, 50, 50, 'r'),
-(60, 60, 60, 'r'),
-(61, 60, null, 'r'),
-(70, 70, 70, 'r'),
-(71, 70, null, 'r'),
-(80, 80, 80, 'r'),
-(81, 80, null, 'r'),
-(100,100,null, 'r');
-select *
-from t1
-where v in(select v
-from t2
-where t1.g=t2.g) is unknown;
-id g v s
-51 50 NULL l
-61 60 NULL l
-drop table t1, t2;
-#
-# Bug#37822 Correlated subquery with IN and IS UNKNOWN provides wrong result
-#
-create table t1(id integer primary key, g integer, v integer, s char(1));
-create table t2(id integer primary key, g integer, v integer, s char(1));
-insert into t1 values
-(10, 10, 10, 'l'),
-(20, 20, 20, 'l'),
-(40, 40, 40, 'l'),
-(41, 40, null, 'l'),
-(50, 50, 50, 'l'),
-(51, 50, null, 'l'),
-(60, 60, 60, 'l'),
-(61, 60, null, 'l'),
-(70, 70, 70, 'l'),
-(90, 90, null, 'l');
-insert into t2 values
-(10, 10, 10, 'r'),
-(30, 30, 30, 'r'),
-(50, 50, 50, 'r'),
-(60, 60, 60, 'r'),
-(61, 60, null, 'r'),
-(70, 70, 70, 'r'),
-(71, 70, null, 'r'),
-(80, 80, 80, 'r'),
-(81, 80, null, 'r'),
-(100,100,null, 'r');
-select *
-from t1
-where v in(select v
-from t2
-where t1.g=t2.g) is unknown;
-id g v s
-51 50 NULL l
-61 60 NULL l
-drop table t1, t2;
-#
-# Bug#33204: INTO is allowed in subselect, causing inconsistent results
-#
-CREATE TABLE t1( a INT );
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2( a INT, b INT );
-SELECT *
-FROM (SELECT a INTO @var FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var FROM t1 WHERE a = 2) t1a' at line 2
-SELECT *
-FROM (SELECT a INTO OUTFILE 'file' FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' FROM t1 WHERE a = 2) t1a' at line 2
-SELECT *
-FROM (SELECT a INTO DUMPFILE 'file' FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' FROM t1 WHERE a = 2) t1a' at line 2
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO @var FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO OUTFILE 'file' FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO DUMPFILE 'file' FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (SELECT a FROM t1 WHERE a = 2) t1a;
-a
-2
-SELECT * FROM (
-SELECT a FROM t1 WHERE a = 2
-UNION
-SELECT a FROM t1 WHERE a = 2
-) t1a;
-a
-2
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a FROM t1 WHERE a = 2
-UNION
-SELECT a FROM t1 WHERE a = 2
-) t1a;
-a
-1
-2
-SELECT * FROM ((SELECT 1 a) UNION SELECT 1 a) q;
-a
-1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a)) alias;
-a
-1
-SELECT * FROM (SELECT 1 UNION SELECT 1) t1a;
-1
-1
-SELECT * FROM ((SELECT 1 a INTO @a)) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)) t1a' at line 1
-SELECT * FROM ((SELECT 1 a INTO OUTFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )) t1a' at line 1
-SELECT * FROM ((SELECT 1 a INTO DUMPFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO @a)) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO DUMPFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO OUTFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO @a))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a))) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO DUMPFILE 'file' ))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' ))) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO OUTFILE 'file' ))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' ))) t1a' at line 1
-SELECT * FROM (SELECT 1 a ORDER BY a) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a ORDER BY a) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a LIMIT 1) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a ORDER BY a LIMIT 1) t1a;
-a
-1
-SELECT * FROM t1 JOIN (SELECT 1 UNION SELECT 1) alias ON 1;
-a 1
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 UNION SELECT 1)) ON 1;
-ERROR 42000: Every derived table must have its own alias
-SELECT * FROM t1 JOIN (t1 t1a UNION SELECT 1) ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1) ON 1' at line 1
-SELECT * FROM t1 JOIN ((t1 t1a UNION SELECT 1)) ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1)) ON 1' at line 1
-SELECT * FROM t1 JOIN (t1 t1a) t1a ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a ON 1' at line 1
-SELECT * FROM t1 JOIN ((t1 t1a)) t1a ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a ON 1' at line 1
-SELECT * FROM t1 JOIN (t1 t1a) ON 1;
-a a
-1 1
-2 1
-1 2
-2 2
-SELECT * FROM t1 JOIN ((t1 t1a)) ON 1;
-a a
-1 1
-2 1
-1 2
-2 2
-SELECT * FROM (t1 t1a);
-a
-1
-2
-SELECT * FROM ((t1 t1a));
-a
-1
-2
-SELECT * FROM t1 JOIN (SELECT 1 t1a) alias ON 1;
-a t1a
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 t1a)) alias ON 1;
-a t1a
-1 1
-2 1
-SELECT * FROM t1 JOIN (SELECT 1 a) a ON 1;
-a a
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 a)) a ON 1;
-a a
-1 1
-2 1
-SELECT * FROM (t1 JOIN (SELECT 1) t1a1 ON 1) t1a2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a2' at line 1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 3 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT ( SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT ( SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT a FROM t1 WHERE a = 1 ), a FROM t1;
-( SELECT a FROM t1 WHERE a = 1 ) a
-1 1
-1 2
-SELECT ( SELECT a FROM t1 WHERE a = 1 UNION SELECT 1 ), a FROM t1;
-( SELECT a FROM t1 WHERE a = 1 UNION SELECT 1 ) a
-1 1
-1 2
-SELECT * FROM t2 WHERE (a, b) IN (SELECT a, b FROM t2);
-a b
-SELECT 1 UNION ( SELECT 1 UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-( SELECT 1 UNION SELECT 1 ) UNION SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1' at line 1
-SELECT ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-( SELECT 1 UNION SELECT 1 UNION SELECT 1 )
-1
-SELECT ((SELECT 1 UNION SELECT 1 UNION SELECT 1));
-((SELECT 1 UNION SELECT 1 UNION SELECT 1))
-1
-SELECT * FROM ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: Every derived table must have its own alias
-SELECT * FROM ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 ) a;
-1
-1
-SELECT * FROM ( SELECT 1 UNION SELECT 1 UNION SELECT 1 ) a;
-1
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ALL ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a IN ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE EXISTS ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT EXISTS(SELECT 1+1);
-EXISTS(SELECT 1+1)
-1
-SELECT EXISTS(SELECT 1+1 INTO @test);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @test)' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT * FROM t1 WHERE EXISTS ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a ENUM('rainbow'));
-INSERT INTO t1 VALUES (),(),(),(),();
-SELECT 1 FROM t1 GROUP BY (SELECT 1 FROM t1 ORDER BY AVG(LAST_INSERT_ID()));
-1
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a LONGBLOB);
-INSERT INTO t1 SET a = 'aaaa';
-INSERT INTO t1 SET a = 'aaaa';
-SELECT 1 FROM t1 GROUP BY
-(SELECT LAST_INSERT_ID() FROM t1 ORDER BY MIN(a) ASC LIMIT 1);
-1
-1
-DROP TABLE t1;
-#
-# Bug #49512 : subquery with aggregate function crash
-# subselect_single_select_engine::exec()
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES();
-# should not crash
-SELECT 1 FROM t1 WHERE a <> SOME
-(
-SELECT MAX((SELECT a FROM t1 LIMIT 1)) AS d
-FROM t1,t1 a
-);
-1
-DROP TABLE t1;
-#
-# Bug #45989 take 2 : memory leak after explain encounters an
-# error in the query
-#
-CREATE TABLE t1(a LONGTEXT);
-INSERT INTO t1 VALUES (repeat('a',@@global.max_allowed_packet));
-INSERT INTO t1 VALUES (repeat('b',@@global.max_allowed_packet));
-EXPLAIN EXTENDED SELECT DISTINCT 1 FROM t1,
-(SELECT DISTINCTROW a AS away FROM t1 GROUP BY a WITH ROLLUP) AS d1
-WHERE t1.a = d1.a;
-ERROR 42S22: Unknown column 'd1.a' in 'where clause'
-DROP TABLE t1;
-Set up test tables.
-CREATE TABLE t1 (
-t1_id INT UNSIGNED,
-PRIMARY KEY(t1_id)
-) Engine=MyISAM;
-INSERT INTO t1 (t1_id) VALUES (1), (2), (3), (4), (5);
-CREATE TABLE t2 SELECT * FROM t1;
-CREATE TABLE t3 (
-t3_id INT UNSIGNED AUTO_INCREMENT,
-t1_id INT UNSIGNED,
-amount DECIMAL(16,2),
-PRIMARY KEY(t3_id),
-KEY(t1_id)
-) Engine=MyISAM;
-INSERT INTO t3 (t1_id, t3_id, amount)
-VALUES (1, 1, 100.00), (2, 2, 200.00), (4, 4, 400.00);
-This is the 'inner query' running by itself.
-Produces correct results.
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-SELECT * FROM (the same inner query)
-Produces correct results.
-SELECT * FROM (
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-) AS t;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-Now make t2.t1_id part of a key.
-ALTER TABLE t2 ADD PRIMARY KEY(t1_id);
-Same inner query by itself.
-Still correct results.
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-SELECT * FROM (the same inner query), now with indexes on the LEFT JOIN
-SELECT * FROM (
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-) AS t;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-DROP TABLE t3;
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Bug #52711: Segfault when doing EXPLAIN SELECT with
-# union...order by (select... where...)
-#
-CREATE TABLE t1 (a VARCHAR(10), FULLTEXT KEY a (a));
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1),(2);
-# Should not crash
-EXPLAIN
-SELECT * FROM t2 UNION SELECT * FROM t2
-ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE));
-# Should not crash
-SELECT * FROM t2 UNION SELECT * FROM t2
-ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE));
-DROP TABLE t1,t2;
-#
-# Bug #58818: Incorrect result for IN/ANY subquery
-# with HAVING condition
-#
-CREATE TABLE t1(i INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t1s(i INT);
-INSERT INTO t1s VALUES (10), (20), (30);
-CREATE TABLE t2s(i INT);
-INSERT INTO t2s VALUES (100), (200), (300);
-SELECT * FROM t1
-WHERE t1.i NOT IN
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-);
-i
-1
-2
-3
-SELECT * FROM t1
-WHERE t1.I IN
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-) IS UNKNOWN;
-i
-SELECT * FROM t1
-WHERE NOT t1.I = ANY
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-);
-i
-1
-2
-3
-SELECT * FROM t1
-WHERE t1.i = ANY (
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-) IS UNKNOWN;
-i
-DROP TABLE t1,t1s,t2s;
-# LP BUG#675248 - select->prep_where references on freed memory
-CREATE TABLE t1 (a int, b int);
-insert into t1 values (1,1),(0,0);
-CREATE TABLE t2 (c int);
-insert into t2 values (1),(2);
-prepare stmt1 from "select sum(a),(select sum(c) from t2 where table1.b) as sub
-from t1 as table1 group by sub";
-execute stmt1;
-sum(a) sub
-0 NULL
-1 3
-deallocate prepare stmt1;
-prepare stmt1 from "select sum(a),(select sum(c) from t2 having table1.b) as sub
-from t1 as table1";
-execute stmt1;
-sum(a) sub
-1 3
-deallocate prepare stmt1;
-drop table t1,t2;
-#
-# Bug LP#693935/#58727: Assertion failure with
-# a single row subquery returning more than one row
-#
-create table t1 (a char(1) charset utf8);
-insert into t1 values ('a'), ('b');
-create table t2 (a binary(1));
-insert into t2 values ('x'), ('y');
-select * from t2 where a=(select a from t1) and a='x';
-ERROR 21000: Subquery returns more than 1 row
-drop table t1,t2;
-# End of 5.1 tests
-#
-# Bug #11765713 58705:
-# OPTIMIZER LET ENGINE DEPEND ON UNINITIALIZED VALUES
-# CREATED BY OPT_SUM_QUERY
-#
-CREATE TABLE t1(a INT NOT NULL, KEY (a));
-INSERT INTO t1 VALUES (0), (1);
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1)
-);
-ERROR 21000: Subquery returns more than 1 row
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1 where a is null)
-);
-foo
-DROP TABLE t1;
-#
-# Bug #57704: Cleanup code dies with void TABLE::set_keyread(bool):
-# Assertion `file' failed.
-#
-CREATE TABLE t1 (a INT);
-SELECT 1 FROM
-(SELECT ROW(
-(SELECT 1 FROM t1 RIGHT JOIN
-(SELECT 1 FROM t1, t1 t2) AS d ON 1),
-1) FROM t1) AS e;
-ERROR 21000: Operand should contain 1 column(s)
-DROP TABLE t1;
-#
-# Bug#13721076 CRASH WITH TIME TYPE/TIMESTAMP() AND WARNINGS IN SUBQUERY
-#
-CREATE TABLE t1(a TIME NOT NULL);
-INSERT INTO t1 VALUES ('00:00:32');
-SELECT 1 FROM t1 WHERE a >
-(SELECT timestamp(a) AS a FROM t1);
-1
-DROP TABLE t1;
-#
-# No BUG#, a case brought from 5.2's innodb_mysql_lock.test
-#
-create table t1 (i int not null primary key);
-insert into t1 values (1),(2),(3),(4),(5);
-create table t2 (j int not null primary key);
-insert into t2 values (1),(2),(3),(4),(5);
-create table t3 (k int not null primary key);
-insert into t3 values (1),(2),(3);
-create view v2 as select t2.j as j from t2 where t2.j in (select t1.i from t1);
-select * from t3 where k in (select j from v2);
-k
-1
-2
-3
-drop table t1,t2,t3;
-drop view v2;
-#
-# Bug#52068: Optimizer generates invalid semijoin materialization plan
-#
-drop table if exists ot1, ot2, it1, it2;
-CREATE TABLE ot1(a INTEGER);
-INSERT INTO ot1 VALUES(5), (8);
-CREATE TABLE it2(a INTEGER);
-INSERT INTO it2 VALUES(9), (5), (1), (8);
-CREATE TABLE it3(a INTEGER);
-INSERT INTO it3 VALUES(7), (1), (0), (5), (1), (4);
-CREATE TABLE ot4(a INTEGER);
-INSERT INTO ot4 VALUES(1), (3), (5), (7), (9), (7), (3), (1);
-SELECT * FROM ot1,ot4
-WHERE (ot1.a,ot4.a) IN (SELECT it2.a,it3.a
-FROM it2,it3);
-a a
-5 1
-8 1
-5 5
-8 5
-5 7
-8 7
-5 7
-8 7
-5 1
-8 1
-explain SELECT * FROM ot1,ot4
-WHERE (ot1.a,ot4.a) IN (SELECT it2.a,it3.a
-FROM it2,it3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot1 ALL NULL NULL NULL NULL 2
-1 PRIMARY ot4 ALL NULL NULL NULL NULL 8 Using join buffer (flat, BNL join)
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-2 MATERIALIZED it2 ALL NULL NULL NULL NULL 4
-2 MATERIALIZED it3 ALL NULL NULL NULL NULL 6 Using join buffer (flat, BNL join)
-DROP TABLE IF EXISTS ot1, ot4, it2, it3;
-#
-# Bug#729039: NULL keys used to evaluate subquery
-#
-CREATE TABLE t1 (a int) ;
-INSERT INTO t1 VALUES (NULL), (1), (NULL), (2);
-CREATE TABLE t2 (a int, INDEX idx(a)) ;
-INSERT INTO t2 VALUES (NULL), (1), (NULL);
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 USE INDEX () WHERE t2.a = t1.a);
-a
-1
-EXPLAIN
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 USE INDEX() WHERE t2.a = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 Using where
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 WHERE t2.a = t1.a);
-a
-1
-EXPLAIN
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 WHERE t2.a = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2 ref idx idx 5 test.t1.a 2 Using index
-DROP TABLE t1,t2;
-#
-# BUG#752992: Wrong results for a subquery with 'semijoin=on'
-#
-CREATE TABLE t1 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t1 VALUES (11,0);
-INSERT INTO t1 VALUES (12,5);
-INSERT INTO t1 VALUES (15,0);
-CREATE TABLE t2 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t2 VALUES (11,1);
-INSERT INTO t2 VALUES (12,2);
-INSERT INTO t2 VALUES (15,4);
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=0;
-EXPLAIN SELECT * FROM t1 WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 3
-1 PRIMARY it eq_ref PRIMARY PRIMARY 4 test.t1.pk 1 Using index
-1 PRIMARY t2 index NULL PRIMARY 4 NULL 3 Using index; FirstMatch(it)
-SELECT * FROM t1 WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON 1);
-pk i
-11 0
-12 5
-15 0
-SET join_cache_level=@save_join_cache_level;
-DROP table t1,t2;
-#
-# Bug#751350: crash with pushed condition for outer references when
-# there should be none of such conditions
-#
-CREATE TABLE t1 (a int, b int) ;
-INSERT INTO t1 VALUES (0,0),(0,0);
-set @optimizer_switch_save=@@optimizer_switch;
-set @@optimizer_switch='semijoin=off,materialization=on,in_to_exists=on';
-EXPLAIN
-SELECT b FROM t1
-WHERE ('0') IN ( SELECT a FROM t1 GROUP BY a )
-GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT b FROM t1
-WHERE ('0') IN ( SELECT a FROM t1 GROUP BY a )
-GROUP BY b;
-b
-0
-set @@optimizer_switch=@optimizer_switch_save;
-DROP TABLE t1;
-#
-# Bug #11765713 58705:
-# OPTIMIZER LET ENGINE DEPEND ON UNINITIALIZED VALUES
-# CREATED BY OPT_SUM_QUERY
-#
-CREATE TABLE t1(a INT NOT NULL, KEY (a));
-INSERT INTO t1 VALUES (0), (1);
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1)
-);
-ERROR 21000: Subquery returns more than 1 row
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1 where a is null)
-);
-foo
-DROP TABLE t1;
-CREATE TABLE t1 (a int(11), b varchar(1));
-INSERT INTO t1 VALUES (2,NULL),(5,'d'),(7,'g');
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 );
-a
-5
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 GROUP BY b );
-a
-7
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 );
-a
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
-a
-delete from t1;
-INSERT INTO t1 VALUES (2,NULL),(5,'d'),(7,'g');
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 );
-a
-5
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 GROUP BY b );
-a
-7
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 );
-a
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
-a
-drop table t1;
-#
-# Fix of lp:780386 (NULL left part with empty ALL subquery).
-#
-CREATE TABLE t1 ( f11 int) ;
-INSERT IGNORE INTO t1 VALUES (0),(0);
-CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
-INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
-DROP TABLE IF EXISTS t3;
-Warnings:
-Note 1051 Unknown table 'test.t3'
-CREATE TABLE t3 ( f3 int) ;
-INSERT INTO t3 VALUES (0),(0);
-SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
-r
-NULL
-5
-NULL
-5
-DROP TABLE t1, t2, t3;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2(a1 int);
-INSERT INTO t2 VALUES (3);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2.0 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 'a' FROM t2);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t2);
-1
-1
-1
-SET SESSION sql_mode=@old_sql_mode;
-DROP TABLE t1, t2;
-create table t2(i int);
-insert into t2 values(0);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-CREATE VIEW v1 AS
-SELECT 'f' FROM t2 UNION SELECT 'x' FROM t2
-;
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key)
-);
-SELECT t1.pk
-FROM t1
-WHERE t1.col_varchar_key < ALL ( SELECT * FROM v1 )
-;
-pk
-SET SESSION sql_mode=@old_sql_mode;
-drop table t2, t1;
-drop view v1;
-#
-# BUG#50257: Missing info in REF column of the EXPLAIN
-# lines for subselects
-#
-CREATE TABLE t1 (a INT, b INT, INDEX (a));
-INSERT INTO t1 VALUES (3, 10), (2, 20), (7, 10), (5, 20);
-EXPLAIN SELECT * FROM (SELECT * FROM t1 WHERE a=7) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 5 const 1
-EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 SUBQUERY t1 ref a a 5 const 1 Using index
-DROP TABLE t1;
-#
-# BUG#12616253 - WRONG RESULT WITH EXISTS(SUBQUERY) (MISSING ROWS)
-# (duplicate of LP bug #888456)
-#
-CREATE TABLE t1 (f1 varchar(1));
-INSERT INTO t1 VALUES ('v'),('s');
-CREATE TABLE t2 (f1_key varchar(1), KEY (f1_key));
-INSERT INTO t2 VALUES ('j'),('v'),('c'),('m'),('d'),
-('d'),('y'),('t'),('d'),('s');
-EXPLAIN
-SELECT table1.f1, table2.f1_key FROM t1 AS table1, t2 AS table2
-WHERE EXISTS (SELECT DISTINCT f1_key FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY table1 ALL NULL NULL NULL NULL 2
-1 PRIMARY table2 index NULL f1_key 4 NULL 10 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 index f1_key f1_key 4 NULL 10 Using where; Using index
-SELECT table1.f1, table2.f1_key FROM t1 AS table1, t2 AS table2
-WHERE EXISTS (SELECT DISTINCT f1_key FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1);
-f1 f1_key
-s c
-s d
-s d
-s d
-s j
-s m
-s s
-s t
-s v
-s y
-v c
-v d
-v d
-v d
-v j
-v m
-v s
-v t
-v v
-v y
-DROP TABLE t1,t2;
-#
-# LP bug 919427: EXPLAIN for a query over a single-row table
-# with IN subquery in WHERE condition
-#
-CREATE TABLE ot (
-col_int_nokey int(11),
-col_varchar_nokey varchar(1)
-) ;
-INSERT INTO ot VALUES (1,'x');
-CREATE TABLE it1(
-col_int_key int(11),
-col_varchar_key varchar(1),
-KEY idx_cvk_cik (col_varchar_key,col_int_key)
-);
-INSERT INTO it1 VALUES (NULL,'x'), (NULL,'f');
-CREATE TABLE it2 (
-col_int_key int(11),
-col_varchar_key varchar(1),
-col_varchar_key2 varchar(1),
-KEY idx_cvk_cvk2_cik (col_varchar_key, col_varchar_key2, col_int_key),
-KEY idx_cvk_cik (col_varchar_key, col_int_key)
-);
-INSERT INTO it2 VALUES (NULL,'x','x'), (NULL,'f','f');
-EXPLAIN
-SELECT col_int_nokey FROM ot
-WHERE col_varchar_nokey IN
-(SELECT col_varchar_key FROM it1 WHERE col_int_key IS NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot system NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED it1 ref idx_cvk_cik idx_cvk_cik 9 const,const 1 Using where; Using index
-SELECT col_int_nokey FROM ot
-WHERE col_varchar_nokey IN
-(SELECT col_varchar_key FROM it1 WHERE col_int_key IS NULL);
-col_int_nokey
-1
-EXPLAIN
-SELECT col_int_nokey FROM ot
-WHERE (col_varchar_nokey, 'x') IN
-(SELECT col_varchar_key, col_varchar_key2 FROM it2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot system NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-2 MATERIALIZED it2 ref idx_cvk_cvk2_cik,idx_cvk_cik idx_cvk_cvk2_cik 8 const,const 1 Using where; Using index
-SELECT col_int_nokey FROM ot
-WHERE (col_varchar_nokey, 'x') IN
-(SELECT col_varchar_key, col_varchar_key2 FROM it2);
-col_int_nokey
-1
-DROP TABLE ot,it1,it2;
-#
-# MDEV-746
-# Bug#13651009 WRONG RESULT FROM DERIVED TABLE IF THE SUBQUERY
-# HAS AN EMPTY RESULT
-#
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_int_nokey int NOT NULL,
-col_int_key int NOT NULL,
-col_time_key time NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_time_key (col_time_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-pk int NOT NULL AUTO_INCREMENT,
-col_int_nokey int NOT NULL,
-col_int_key int NOT NULL,
-col_time_key time NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_time_key (col_time_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,4,4,'00:00:00','b','b');
-SET @var2:=4, @var3:=8;
-
-Testcase without inner subquery
-EXPLAIN SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE sq4_alias1 system NULL NULL NULL NULL 0 Const row not found
-SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3;
-@var3:=12 pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-SELECT @var3;
-@var3
-8
-EXPLAIN SELECT * FROM ( SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3 ) AS alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 0 Const row not found
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM ( SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3 ) AS alias3;
-@var3:=12 pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-SELECT @var3;
-@var3
-8
-
-Testcase with inner subquery; crashed WL#6095
-SET @var3=8;
-EXPLAIN SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY c_sq1_alias1 system PRIMARY NULL NULL NULL 1
-SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3));
-pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-EXPLAIN SELECT * FROM ( SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3)) ) AS alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-3 DEPENDENT SUBQUERY c_sq1_alias1 system PRIMARY NULL NULL NULL 1
-SELECT * FROM ( SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3)) ) AS alias3;
-pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-DROP TABLE t1,t2;
-# End of 5.2 tests
-#
-# BUG#779885: Crash in eliminate_item_equal with materialization=on in
-#
-CREATE TABLE t1 ( f1 int );
-INSERT INTO t1 VALUES (19), (20);
-CREATE TABLE t2 ( f10 varchar(32) );
-INSERT INTO t2 VALUES ('c'),('d');
-CREATE TABLE t3 ( f10 varchar(32) );
-INSERT INTO t3 VALUES ('a'),('b');
-SELECT *
-FROM t1
-WHERE
-( 't' ) IN (
-SELECT t3.f10
-FROM t3
-JOIN t2
-ON t2.f10 = t3.f10
-);
-f1
-DROP TABLE t1,t2,t3;
-#
-# BUG lp:813473: Wrong result with outer join + NOT IN subquery
-# This bug is a duplicate of Bug#11764086 whose test case is added below
-#
-CREATE TABLE t1 (c int) ;
-INSERT INTO t1 VALUES (5),(6);
-CREATE TABLE t2 (a int, b int) ;
-INSERT INTO t2 VALUES (20,9),(20,9);
-create table t3 (d int, e int);
-insert into t3 values (2, 9), (3,10);
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-EXPLAIN
-SELECT t2.b , t1.c
-FROM t2 LEFT JOIN t1 ON t1.c < 3
-WHERE (t2.b , t1.c) NOT IN (SELECT * from t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where
-SELECT t2.b , t1.c
-FROM t2 LEFT JOIN t1 ON t1.c < 3
-WHERE (t2.b, t1.c) NOT IN (SELECT * from t3);
-b c
-9 NULL
-9 NULL
-SET optimizer_switch=@save_optimizer_switch;
-drop table t1, t2, t3;
-#
-# BUG#50257: Missing info in REF column of the EXPLAIN
-# lines for subselects
-#
-CREATE TABLE t1 (a INT, b INT, INDEX (a));
-INSERT INTO t1 VALUES (3, 10), (2, 20), (7, 10), (5, 20);
-
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-EXPLAIN SELECT * FROM (SELECT * FROM t1 WHERE a=7) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED t1 ref a a 5 const 1
-set optimizer_switch=@tmp_optimizer_switch;
-
-EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 SUBQUERY t1 ref a a 5 const 1 Using index
-
-DROP TABLE t1;
-#
-# Bug#11764086: Null left operand to NOT IN in WHERE clause
-# behaves differently than real NULL
-#
-CREATE TABLE parent (id int);
-INSERT INTO parent VALUES (1), (2);
-CREATE TABLE child (parent_id int, other int);
-INSERT INTO child VALUES (1,NULL);
-# Offending query (c.parent_id is NULL for null-complemented rows only)
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id NOT IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-);
-id parent_id
-1 1
-2 NULL
-# Some syntactic variations with IS FALSE and IS NOT TRUE
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-) IS NOT TRUE;
-id parent_id
-1 1
-2 NULL
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-) IS FALSE;
-id parent_id
-1 1
-2 NULL
-DROP TABLE parent, child;
-# End of test for bug#11764086.
-#
-# Bug 11765699 - 58690: !TABLE || (!TABLE->READ_SET ||
-# BITMAP_IS_SET(TABLE->READ_SET, FIELD_INDEX
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (0), (1);
-CREATE TABLE t2(
-b TEXT,
-c INT,
-PRIMARY KEY (b(1))
-);
-INSERT INTO t2 VALUES ('a', 2), ('b', 3);
-SELECT 1 FROM t1 WHERE a =
-(SELECT 1 FROM t2 WHERE b =
-(SELECT 1 FROM t1 t11 WHERE c = 1 OR t1.a = 1 AND 1 = 2)
-ORDER BY b
-);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-SELECT 1 FROM t1 WHERE a =
-(SELECT 1 FROM t2 WHERE b =
-(SELECT 1 FROM t1 t11 WHERE c = 1 OR t1.a = 1 AND 1 = 2)
-GROUP BY b
-);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-DROP TABLE t1, t2;
-#
-# BUG#12616253 - WRONG RESULT WITH EXISTS(SUBQUERY) (MISSING ROWS)
-#
-CREATE TABLE t1 (f1 varchar(1));
-INSERT INTO t1 VALUES ('v'),('s');
-CREATE TABLE t2 (f1_key varchar(1), KEY (f1_key));
-INSERT INTO t2 VALUES ('j'),('v'),('c'),('m'),('d'),
-('d'),('y'),('t'),('d'),('s');
-SELECT table1.f1, table2.f1_key
-FROM t1 AS table1, t2 AS table2
-WHERE EXISTS
-(
-SELECT DISTINCT f1_key
-FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1 );
-f1 f1_key
-s c
-s d
-s d
-s d
-s j
-s m
-s s
-s t
-s v
-s y
-v c
-v d
-v d
-v d
-v j
-v m
-v s
-v t
-v v
-v y
-explain SELECT table1.f1, table2.f1_key
-FROM t1 AS table1, t2 AS table2
-WHERE EXISTS
-(
-SELECT DISTINCT f1_key
-FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY table1 ALL NULL NULL NULL NULL 2
-1 PRIMARY table2 index NULL f1_key 4 NULL 10 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 index f1_key f1_key 4 NULL 10 Using where; Using index
-DROP TABLE t1,t2;
-#
-# lp:826279: assertion failure with GROUP BY a result of subquery
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (0), (0);
-CREATE TABLE t2 (a int, b int, c int);
-INSERT INTO t2 VALUES (10,7,0), (0,7,0);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (10,7), (0,7);
-SELECT SUM(DISTINCT b),
-(SELECT t2.a FROM t1 JOIN t2 ON t2.c != 0
-WHERE t.a != 0 AND t2.a != 0)
-FROM (SELECT * FROM t3) AS t
-GROUP BY 2;
-SUM(DISTINCT b) (SELECT t2.a FROM t1 JOIN t2 ON t2.c != 0
-WHERE t.a != 0 AND t2.a != 0)
-7 NULL
-SELECT SUM(DISTINCT b),
-(SELECT t2.a FROM t1,t2 WHERE t.a != 0 or 1=2 LIMIT 1)
-FROM (SELECT * FROM t3) AS t
-GROUP BY 2;
-SUM(DISTINCT b) (SELECT t2.a FROM t1,t2 WHERE t.a != 0 or 1=2 LIMIT 1)
-7 NULL
-7 10
-DROP TABLE t1,t2,t3;
-#
-# Bug#12329653
-# EXPLAIN, UNION, PREPARED STATEMENT, CRASH, SQL_FULL_GROUP_BY
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-1
-1
-1
-PREPARE stmt FROM
-'SELECT 1 UNION ALL
-SELECT 1 FROM t1
-ORDER BY
-(SELECT 1 FROM t1 AS t1_0
- WHERE 1 < SOME (SELECT a1 FROM t1)
-)' ;
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-SET SESSION sql_mode=@old_sql_mode;
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# LP BUG#833777 Performance regression with deeply nested subqueries
-#
-create table t1 (a int not null, b char(10) not null);
-insert into t1 values (1, 'a');
-set @@optimizer_switch='in_to_exists=on,semijoin=off,materialization=off,subquery_cache=off';
-select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1)))))))))))))))))))))))))))));
-a
-1
-set @@optimizer_switch=@subselect_tmp;
-drop table t1;
-#
-# LP BUG#894397 Wrong result with in_to_exists, constant table , semijoin=OFF,materialization=OFF
-#
-CREATE TABLE t1 (a varchar(3));
-INSERT INTO t1 VALUES ('AAA'),('BBB');
-CREATE TABLE t2 (a varchar(3));
-INSERT INTO t2 VALUES ('CCC');
-set @@optimizer_switch='semijoin=off,materialization=off,in_to_exists=on,subquery_cache=off';
-SELECT * FROM t1 WHERE t1.a IN (SELECT t2.a FROM t2 WHERE t2.a < 'ZZZ');
-a
-set @@optimizer_switch=@subselect_tmp;
-drop table t1, t2;
-#
-# LP bug #859375: Assertion `0' failed in st_select_lex_unit::optimize
-# with view , UNION and prepared statement (rewriting fake_select
-# condition).
-#
-CREATE TABLE t1 ( f1 int NOT NULL, f4 varchar(1) NOT NULL) ;
-INSERT INTO t1 VALUES (6,'d'),(7,'y');
-CREATE TABLE t2 ( f1 int NOT NULL, f2 int NOT NULL) ;
-INSERT INTO t2 VALUES (10,7);
-CREATE VIEW v2 AS SELECT * FROM t2;
-PREPARE st1 FROM "
- SELECT *
- FROM t1
- LEFT JOIN v2 ON ( v2.f2 = t1.f1 )
- WHERE v2.f1 NOT IN (
- SELECT 1 UNION
- SELECT 247
- )
-";
-EXECUTE st1;
-f1 f4 f1 f2
-7 y 10 7
-deallocate prepare st1;
-DROP VIEW v2;
-DROP TABLE t1,t2;
-#
-# LP bug #887458 Crash in subselect_union_engine::no_rows with
-# double UNION and join_cache_level=3,8
-# (IN/ALL/ANY optimizations should not be applied to fake_select)
-CREATE TABLE t2 ( a int, b varchar(1)) ;
-INSERT IGNORE INTO t2 VALUES (8,'y'),(8,'y');
-CREATE TABLE t1 ( b varchar(1)) ;
-INSERT IGNORE INTO t1 VALUES (NULL),(NULL);
-set @save_join_cache_level=@@join_cache_level;
-SET SESSION join_cache_level=3;
-SELECT *
-FROM t1, t2
-WHERE t2.b IN (
-SELECT 'm' UNION
-SELECT 'm'
-) OR t1.b <> SOME (
-SELECT 'v' UNION
-SELECT 't'
-);
-b a b
-set @@join_cache_level= @save_join_cache_level;
-drop table t1,t2;
-#
-# LP bug #885162 Got error 124 from storage engine with UNION inside
-# subquery and join_cache_level=3..8
-# (IN/ALL/ANY optimizations should not be applied to fake_select)
-#
-CREATE TABLE t1 (
-f1 varchar(1) DEFAULT NULL
-);
-INSERT INTO t1 VALUES ('c');
-set @save_join_cache_level=@@join_cache_level;
-SET SESSION join_cache_level=8;
-SELECT * FROM t1 WHERE t1.f1 IN ( SELECT 'k' UNION SELECT 'e' );
-f1
-set @@join_cache_level= @save_join_cache_level;
-drop table t1;
-#
-# LP BUG#747278 incorrect values of the NULL (no rows) single
-# row subquery requested via element_index() interface
-#
-CREATE TABLE t1 (f1a int, f1b int) ;
-INSERT IGNORE INTO t1 VALUES (1,1),(2,2);
-CREATE TABLE t2 ( f2 int);
-INSERT IGNORE INTO t2 VALUES (3),(4);
-CREATE TABLE t3 (f3a int default 1, f3b int default 2);
-INSERT INTO t3 VALUES (1,1),(2,2);
-set @old_optimizer_switch = @@session.optimizer_switch;
-set @@optimizer_switch='materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off,subquery_cache=off,semijoin=off';
-SELECT (SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-SELECT (SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-set @@session.optimizer_switch=@old_optimizer_switch;
-SELECT (SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-SELECT (SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-select (null, null) = (null, null);
-(null, null) = (null, null)
-NULL
-SELECT (SELECT f3a, f3a FROM t3 where f3a > 3) = (0, 0);
-(SELECT f3a, f3a FROM t3 where f3a > 3) = (0, 0)
-NULL
-drop tables t1,t2,t3;
-#
-# LP BUG#825051 Wrong result with date/datetime and subquery with GROUP BY and in_to_exists
-#
-CREATE TABLE t1 (a date, KEY (a)) ;
-INSERT INTO t1 VALUES ('2009-01-01'),('2009-02-02');
-set @old_optimizer_switch = @@optimizer_switch;
-SET @@optimizer_switch='semijoin=off,materialization=off,in_to_exists=on,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 4 NULL 2 Using where; Using index
-2 DEPENDENT SUBQUERY t1 index_subquery a a 4 func 2 Using index
-SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-a
-2009-01-01
-2009-02-02
-SET @@optimizer_switch='semijoin=off,materialization=on,in_to_exists=off,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 4 NULL 2 Using where; Using index
-2 MATERIALIZED t1 index NULL a 4 NULL 2 Using index
-SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-a
-2009-01-01
-2009-02-02
-set @@optimizer_switch=@old_optimizer_switch;
-drop table t1;
-#
-# LP BUG#908269 incorrect condition in case of subqueries depending
-# on constant tables
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 ( b INT ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1);
-CREATE TABLE t3 ( c INT );
-INSERT INTO t3 VALUES (4),(5);
-SET optimizer_switch='subquery_cache=off';
-SELECT ( SELECT b FROM t2 WHERE b = a OR EXISTS ( SELECT c FROM t3 WHERE c = b ) ) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR EXISTS ( SELECT c FROM t3 WHERE c = b ) )
-1
-NULL
-SELECT ( SELECT b FROM t2 WHERE b = a OR b * 0) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR b * 0)
-1
-NULL
-SELECT ( SELECT b FROM t2 WHERE b = a OR rand() * 0) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR rand() * 0)
-1
-NULL
-drop table t1,t2,t3;
-set optimizer_switch=@subselect_tmp;
-#
-# LP BUG#905353 Wrong non-empty result with a constant table,
-# aggregate function in subquery, MyISAM or Aria
-#
-CREATE TABLE t1 ( a INT ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1);
-SELECT a FROM t1 WHERE ( SELECT MIN(a) = 100 );
-a
-drop table t1;
-#
-# LP BUG#985667 Wrong result with subquery in SELECT clause, and constant table in
-# main query and implicit grouping
-#
-CREATE TABLE t1 (f1 int) engine=MyISAM;
-INSERT INTO t1 VALUES (7),(8);
-CREATE TABLE t2 (f2 int, f3 varchar(1)) engine=MyISAM;
-INSERT INTO t2 VALUES (3,'f');
-EXPLAIN
-SELECT COUNT(f1), (SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(f1), (SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 NULL
-EXPLAIN
-SELECT COUNT(f1), exists(SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(f1), exists(SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 0
-EXPLAIN
-SELECT COUNT(f1), f2 > ALL (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT COUNT(f1), f2 > ALL (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 1
-EXPLAIN
-SELECT COUNT(f1), f2 IN (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT COUNT(f1), f2 IN (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 0
-drop table t1,t2;
-#
-# LP BUG#1002079 Server crashes in Item_singlerow_subselect::val_int with constant table,
-# HAVING, UNION in subquery
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (7),(0);
-CREATE TABLE t2 (b INT);
-EXPLAIN
-SELECT SUM(a) AS f1, a AS f2 FROM (t1, t2) HAVING f2 >= ALL (SELECT 4 UNION SELECT 5) AND f1 = 7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT SUM(a) AS f1, a AS f2 FROM (t1, t2) HAVING f2 >= ALL (SELECT 4 UNION SELECT 5) AND f1 = 7;
-f1 f2
-drop table t1,t2;
-#
-# LP BUG#1008686 Server crashes in subselect_union_engine::no_rows on SELECT with impossible
-# WHERE and UNION in HAVING
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(7);
-EXPLAIN
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 0 HAVING a NOT IN ( SELECT 2 UNION SELECT 5 ) OR min_a != 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 0 HAVING a NOT IN ( SELECT 2 UNION SELECT 5 ) OR min_a != 1;
-min_a a
-EXPLAIN
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 1=2 HAVING a NOT IN ( SELECT a from t1 UNION select a+1 from t1 ) OR min_a != 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT UNION t1 ALL NULL NULL NULL NULL 2 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 1=2 HAVING a NOT IN ( SELECT a from t1 UNION select a+1 from t1 ) OR min_a != 1;
-min_a a
-drop table t1;
-#
-# MDEV-367: Different results with and without subquery_cache on
-# a query with a constant NOT IN condition
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2),(3);
-set @mdev367_optimizer_switch = @@optimizer_switch;
-set optimizer_switch = 'subquery_cache=on';
-SELECT * FROM t1 WHERE ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) OR a > 100;
-a
-SELECT *, ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) FROM t1;
-a ( 3, 3 ) NOT IN ( SELECT NULL, NULL )
-1 NULL
-2 NULL
-3 NULL
-set optimizer_switch=@mdev367_optimizer_switch;
-set optimizer_switch = 'subquery_cache=off';
-SELECT * FROM t1 WHERE ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) OR a > 100;
-a
-SELECT *, ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) FROM t1;
-a ( 3, 3 ) NOT IN ( SELECT NULL, NULL )
-1 NULL
-2 NULL
-3 NULL
-set optimizer_switch=@mdev367_optimizer_switch;
-DROP TABLE t1;
-#
-# MDEV-521 single value subselect transformation problem
-#
-CREATE TABLE t1 (f1 char(2), PRIMARY KEY (f1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('u1'),('u2');
-SELECT a.* FROM t1 a WHERE ( SELECT EXISTS ( SELECT 1 FROM t1 b WHERE b.f1 = a.f1 ) );
-f1
-u1
-u2
-FLUSH TABLES;
-SELECT a.* FROM t1 a WHERE ( SELECT EXISTS ( SELECT 1 FROM t1 b WHERE b.f1 = a.f1 ) );
-f1
-u1
-u2
-DROP TABLE t1;
-# return optimizer switch changed in the beginning of this test
-set optimizer_switch=@subselect_tmp;
-#
-# lp:944706 Query with impossible or constant subquery in WHERE or HAVING is not
-# precomputed and thus not part of optimization
-#
-CREATE TABLE t1 ( a VARCHAR(16), KEY (a) );
-INSERT INTO t1 VALUES ('Abilene'),('Akron'),('Albany'),('Albuquerque'),('Alexandria'),('Allentown'),
-('Amarillo'),('Anaheim'),('Anchorage'),('Ann Arbor'),('Arden-Arcade');
-EXPLAIN
-SELECT MAX( alias2.a ) AS field
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR alias1.a = 'y'
-HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible HAVING
-2 SUBQUERY t1 index_subquery a a 19 const 1 Using index; Using where
-SELECT MAX( alias2.a ) AS field
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR alias1.a = 'y'
-HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
-field
-EXPLAIN
-SELECT MAX( alias2.a )
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 index a a 19 NULL 11 Using where; Using index
-1 PRIMARY alias2 ref a a 19 test.alias1.a 2 Using index
-1 PRIMARY alias3 index NULL a 19 NULL 11 Using index; Using join buffer (flat, BNL join)
-2 SUBQUERY t1 index_subquery a a 19 const 1 Using index; Using where
-SELECT MAX( alias2.a )
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
-MAX( alias2.a )
-Arden-Arcade
-drop table t1;
-#
-# MDEV-277 CHEAP SQ: Server crashes in st_join_table::get_examined_rows
-# with semijoin+materialization, IN and = subqueries
-#
-CREATE TABLE t1 (a1 INT);
-INSERT INTO t1 VALUES (4),(6);
-CREATE TABLE t2 (b1 INT);
-INSERT INTO t2 VALUES (1),(7);
-EXPLAIN
-SELECT * FROM t1
-WHERE a1 = (SELECT COUNT(*) FROM t1 WHERE a1 IN (SELECT a1 FROM t1, t2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-SELECT * FROM t1
-WHERE a1 = (SELECT COUNT(*) FROM t1 WHERE a1 IN (SELECT a1 FROM t1, t2));
-a1
-drop table t1, t2;
-#
-# MDEV-287 CHEAP SQ: A query with subquery in SELECT list, EXISTS,
-# inner joins takes hundreds times longer
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(7);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (4),(5);
-CREATE TABLE t3 (c INT);
-INSERT INTO t3 VALUES (8),(3);
-set @@expensive_subquery_limit= 0;
-EXPLAIN
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 2
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 PRIMARY alias3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-flush status;
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-(SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 2
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 8
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 22
-set @@expensive_subquery_limit= default;
-EXPLAIN
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 2
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 PRIMARY alias3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-flush status;
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-(SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 16
-drop table t1, t2, t3;
-#
-# MDEV-288 CHEAP SQ: Valgrind warnings "Memory lost" with IN and EXISTS nested subquery, materialization+semijoin
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0),(8);
-CREATE TABLE t2 (b INT PRIMARY KEY);
-INSERT INTO t2 VALUES (1),(2);
-EXPLAIN
-SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-3 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
-a
-drop table t1,t2;
-#
-# MDEV-410: EXPLAIN shows type=range, while SHOW EXPLAIN and userstat show full table scan is used
-#
-CREATE TABLE t1 (a VARCHAR(3) PRIMARY KEY) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('USA');
-CREATE TABLE t2 (b INT, c VARCHAR(52), KEY(b)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3813,'United States'),(3940,'Russia');
-CREATE TABLE t3 (d INT, KEY(d)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (12),(22),(9),(45);
-create table t4 like t3;
-insert into t4 select * from t3;
-# This should not show range access for table t2
-explain
-SELECT MIN(b) FROM ( SELECT * FROM t1, t2, t3 WHERE d = b ) AS alias1
-WHERE SLEEP(0.1) OR c < 'p' OR b = ( SELECT MIN(b) FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL b NULL NULL NULL 2 Using where
-1 PRIMARY t3 ref d d 5 test.t2.b 2 Using where; Using index
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-set @tmp_mdev410=@@global.userstat;
-set global userstat=on;
-flush table_statistics;
-flush index_statistics;
-SELECT MIN(b) FROM ( SELECT * FROM t1, t2, t3 WHERE d = b ) AS alias1
-WHERE SLEEP(0.1) OR c < 'p' OR b = ( SELECT MIN(b) FROM t2 );
-MIN(b)
-NULL
-# The following shows that t2 was indeed scanned with a full scan.
-show table_statistics;
-Table_schema Table_name Rows_read Rows_changed Rows_changed_x_#indexes
-test t1 2 0 0
-test t2 3 0 0
-show index_statistics;
-Table_schema Table_name Index_name Rows_read
-test t2 b 1
-set global userstat=@tmp_mdev410;
-DROP TABLE t1,t2,t3,t4;
-#
-# MDEV-430: Server crashes in select_describe on EXPLAIN with
-# materialization+semijoin, 2 nested subqueries, aggregate functions
-#
-CREATE TABLE t1 (a INT, KEY(a));
-INSERT INTO t1 VALUES (1),(8);
-CREATE TABLE t2 (b INT, KEY(b));
-INSERT INTO t2 VALUES (45),(17),(20);
-EXPLAIN SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t1, t2 WHERE b = a GROUP BY a HAVING a <> 1 ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 range a a 5 NULL 2 Using where; Using index
-2 SUBQUERY t2 ref b b 5 test.t1.a 2 Using index
-DROP TABLE t1,t2;
-#
-# MDEV-435: Expensive subqueries may be evaluated during optimization in merge_key_fields
-#
-CREATE TABLE t1 (a INT, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (8),(0);
-CREATE TABLE t2 (b INT, c VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (4,'j'),(6,'v');
-CREATE TABLE t3 (d VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('b'),('c');
-EXPLAIN
-SELECT * FROM t1
-WHERE a = (SELECT MAX(b) FROM t2 WHERE c IN (SELECT MAX(d) FROM t3)) OR a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index a a 5 NULL 2 Using where; Using index
-2 SUBQUERY <subquery3> ALL distinct_key NULL NULL NULL 1
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1
-WHERE a = (SELECT MAX(b) FROM t2 WHERE c IN (SELECT MAX(d) FROM t3)) OR a = 10;
-a
-drop table t1, t2, t3;
-#
-# MDEV-405: Server crashes in test_if_skip_sort_order on EXPLAIN with GROUP BY and HAVING in EXISTS subquery
-#
-CREATE TABLE t1 (a INT, KEY(a));
-INSERT INTO t1 VALUES (1),(8);
-CREATE TABLE t2 (b INT, KEY(b));
-INSERT INTO t2 VALUES (45),(17),(20);
-EXPLAIN SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t1, t2 WHERE b = a GROUP BY a HAVING a <> 1 ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 range a a 5 NULL 2 Using where; Using index
-2 SUBQUERY t2 ref b b 5 test.t1.a 2 Using index
-DROP TABLE t1,t2;
-#
-# MDEV-5991: crash in Item_field::used_tables
-#
-create table t1 (c int);
-select exists(select 1 from t1 group by `c` in (select `c` from t1));
-exists(select 1 from t1 group by `c` in (select `c` from t1))
-0
-drop table t1;
-#
-# MDEV-7565: Server crash with Signal 6 (part 2)
-#
-Select
-(Select Sum(`TestCase`.Revenue) From mysql.slow_log E
-Where TestCase.TemplateID not in (Select 1 from mysql.slow_log where 2=2)
-) As `ControlRev`
-From
-(Select 3 as Revenue, 4 as TemplateID) As `TestCase`
-Group By TestCase.Revenue, TestCase.TemplateID;
-ControlRev
-NULL
-#
-# MDEV-7445:Server crash with Signal 6
-#
-CREATE PROCEDURE procedure2()
-BEGIN
-Select
-(Select Sum(`TestCase`.Revenue) From mysql.slow_log E
-Where TestCase.TemplateID not in (Select 1 from mysql.slow_log where 2=2)
-) As `ControlRev`
- From
-(Select 3 as Revenue, 4 as TemplateID) As `TestCase`
-Group By TestCase.Revenue, TestCase.TemplateID;
-END |
-call procedure2();
-ControlRev
-NULL
-call procedure2();
-ControlRev
-NULL
-drop procedure procedure2;
-SELECT
-(SELECT user FROM mysql.user
-WHERE h.host in (SELECT host FROM mysql.user)
-) AS sq
-FROM mysql.host h GROUP BY h.host;
-sq
-#
-# MDEV-7846:Server crashes in Item_subselect::fix
-#_fields or fails with Thread stack overrun
-#
-CREATE TABLE t1 (column1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3),(9);
-CREATE TABLE t2 (column2 INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1),(4);
-CREATE TABLE t3 (column3 INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (6),(8);
-CREATE TABLE t4 (column4 INT) ENGINE=MyISAM;
-INSERT INTO t4 VALUES (2),(5);
-PREPARE stmt FROM "
-SELECT (
- SELECT MAX( table1.column1 ) AS field1
- FROM t1 AS table1
- WHERE table3.column3 IN ( SELECT table2.column2 AS field2 FROM t2 AS table2 )
-) AS sq
-FROM t3 AS table3, t4 AS table4 GROUP BY sq
-";
-EXECUTE stmt;
-sq
-NULL
-EXECUTE stmt;
-sq
-NULL
-deallocate prepare stmt;
-drop table t1,t2,t3,t4;
-#
-# MDEV-7122
-# Assertion `0' failed in subselect_hash_sj_engine::init
-#
-SET SESSION big_tables=1;
-CREATE TABLE t1(a char(255) DEFAULT '', KEY(a(10))) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES(0),(0),(0);
-SELECT * FROM t1 WHERE a IN(SELECT MIN(a) FROM t1);
-a
-0
-0
-0
-DROP TABLE t1;
-SET SESSION big_tables=0;
-#
-# MDEV-10776: Server crash on query
-#
-create table t1 (field1 int);
-insert into t1 values (1);
-select round((select 1 from t1 limit 1))
-from t1
-group by round((select 1 from t1 limit 1));
-round((select 1 from t1 limit 1))
-1
-drop table t1;
-#
-# MDEV-7930: Assertion `table_share->tmp_table != NO_TMP_TABLE ||
-# m_lock_type != 2' failed in handler::ha_index_read_map
-#
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 INT, KEY(f2));
-INSERT INTO t2 VALUES (3);
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2;
-SELECT ( SELECT MIN(t2.f2) FROM t1 ) AS sq FROM t2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT ( SELECT MIN(v2.f2) FROM t1 ) AS sq FROM v2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT * FROM v2 where ( SELECT MIN(v2.f2) FROM t1 ) > 0;
-f2
-3
-SELECT count(*) FROM v2 group by ( SELECT MIN(v2.f2) FROM t1 );
-count(*)
-1
-delete from t1;
-SELECT ( SELECT MIN(t2.f2) FROM t1 ) AS sq FROM t2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT ( SELECT MIN(v2.f2) FROM t1 ) AS sq FROM v2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-drop view v2;
-drop table t1,t2;
-#
-# MDEV-10386 Assertion `fixed == 1' failed in virtual String* Item_func_conv_charset::val_str(String*)
-#
-CREATE TABLE t1 (f1 CHAR(3) CHARACTER SET utf8 NULL, f2 CHAR(3) CHARACTER SET latin1 NULL);
-INSERT INTO t1 VALUES ('foo','bar');
-SELECT * FROM t1 WHERE f2 >= SOME ( SELECT f1 FROM t1 );
-f1 f2
-SELECT * FROM t1 WHERE f2 <= SOME ( SELECT f1 FROM t1 );
-f1 f2
-foo bar
-DROP TABLE t1;
-#
-# MDEV-10146: Wrong result (or questionable result and behavior)
-# with aggregate function in uncorrelated SELECT subquery
-#
-CREATE TABLE t1 (f1 INT);
-CREATE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 int);
-INSERT INTO t2 VALUES (3);
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM t1;
-( SELECT MAX(f1) FROM t2 )
-2
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM v1;
-( SELECT MAX(f1) FROM t2 )
-2
-INSERT INTO t2 VALUES (4);
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM v1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-drop view v1;
-drop table t1,t2;
-CREATE TABLE t1 (f1 INT, KEY(f1)) ENGINE=MyISAM;
-INSERT t1 VALUES (4),(8);
-CREATE TABLE t2 (f2 INT, KEY(f2)) ENGINE=MyISAM;
-INSERT t2 VALUES (6);
-SELECT (SELECT MAX(sq.f2) FROM t1) FROM (SELECT * FROM t2) AS sq WHERE f2 = 2;
-(SELECT MAX(sq.f2) FROM t1)
-NULL
-#
-# Disable this query till MDEV-13399 is resolved
-#
-# INSERT t2 VALUES (9);
-# --error ER_SUBQUERY_NO_1_ROW
-# SELECT (SELECT MAX(sq.f2) FROM t1) FROM (SELECT * FROM t2) AS sq WHERE f2 = 2;
-#
-drop table t1, t2;
-#
-# MDEV-13933: Wrong results in COUNT() query with EXISTS and exists_to_in
-# (5.5 test)
-#
-SET @optimiser_switch_save= @@optimizer_switch;
-CREATE TABLE t1 (a INT NOT NULL);
-INSERT INTO t1 VALUES (1),(1),(1),(5),(5);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (5),(1);
-CREATE TABLE t3 (c INT, KEY(c));
-INSERT INTO t3 VALUES (5),(5);
-SET optimizer_switch='semijoin=on';
-select t1.a from t1 where t1.a in (select `test`.`t2`.`b` from `test`.`t2`)
-and t1.a in (select `test`.`t3`.`c` from `test`.`t3`);
-a
-5
-5
-SET optimizer_switch='semijoin=off';
-select t1.a from t1 where t1.a in (select `test`.`t2`.`b` from `test`.`t2`)
-and t1.a in (select `test`.`t3`.`c` from `test`.`t3`);
-a
-5
-5
-SET @@optimizer_switch= @optimiser_switch_save;
-DROP TABLE t1, t2, t3;
-End of 5.5 tests
-# End of 10.0 tests
-#
-# MDEV-9487: Server crashes in Time_and_counter_tracker::incr_loops
-# with UNION in ALL subquery
-#
-SET NAMES utf8;
-CREATE TABLE t1 (f VARCHAR(8)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo');
-SELECT f FROM t1 WHERE f > ALL ( SELECT 'bar' UNION SELECT 'baz' );
-f
-foo
-SELECT f FROM t1 WHERE f > ALL ( SELECT 'bar');
-f
-foo
-drop table t1;
-SET NAMES default;
-#
-# MDEV-10045: Server crashes in Time_and_counter_tracker::incr_loops
-#
-SET NAMES utf8;
-CREATE TABLE t1 (f1 VARCHAR(3), f2 INT UNSIGNED) ENGINE=MyISAM;
-CREATE TABLE t2 (f3 INT) ENGINE=MyISAM;
-SELECT * FROM t1, t2 WHERE f3 = f2 AND f1 > ANY ( SELECT 'foo' UNION SELECT 'bar' );
-f1 f2 f3
-SELECT * FROM t1, t2 WHERE f3 = f2 AND f1 > ANY ( SELECT 'foo');
-f1 f2 f3
-DROP TABLE t1, t2;
-SET NAMES default;
-# End of 10.1 tests
-#
-# MDEV-12564: IN TO EXISTS transformation for rows after
-# conversion an outer join to inner join
-#
-CREATE TABLE t (
-pk int PRIMARY KEY, i int NOT NULL, c varchar(8), KEY(c)
-) ENGINE=MyISAM;
-INSERT INTO t VALUES (1,10,'foo'),(2,20,'bar');
-SELECT * FROM t t1 RIGHT JOIN t t2 ON (t2.pk = t1.pk)
-WHERE (t2.i, t2.pk) NOT IN ( SELECT t3.i, t3.i FROM t t3, t t4 ) AND t1.c = 'foo';
-pk i c pk i c
-1 10 foo 1 10 foo
-DROP TABLE t;
-# End of 10.2 tests
-set optimizer_switch=default;
-select @@optimizer_switch like '%exists_to_in=off%';
-@@optimizer_switch like '%exists_to_in=off%'
-0
diff --git a/mysql-test/r/subselect_no_mat.result b/mysql-test/r/subselect_no_mat.result
deleted file mode 100644
index 72f30bbd21f..00000000000
--- a/mysql-test/r/subselect_no_mat.result
+++ /dev/null
@@ -1,7283 +0,0 @@
-select @@optimizer_switch like '%materialization=on%';
-@@optimizer_switch like '%materialization=on%'
-1
-set optimizer_switch='materialization=off';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set join_cache_level=1;
-set @join_cache_level_for_subselect_test=@@join_cache_level;
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t11,t12;
-drop view if exists v2;
-call mtr.add_suppression("Sort aborted.*");
-set @subselect_tmp=@@optimizer_switch;
-set @@optimizer_switch=ifnull(@optimizer_switch_for_subselect_test,
-"semijoin=on,firstmatch=on,loosescan=on,semijoin_with_cache=on,partial_match_rowid_merge=off,partial_match_table_scan=off");
-set join_cache_level=@join_cache_level_for_subselect_test;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-select (select 2);
-(select 2)
-2
-explain extended select (select 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select 2 AS `(select 2)`
-SELECT (SELECT 1) UNION SELECT (SELECT 2);
-(SELECT 1)
-1
-2
-explain extended SELECT (SELECT 1) UNION SELECT (SELECT 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1249 Select 4 was reduced during optimization
-Note 1003 /* select#1 */ select 1 AS `(SELECT 1)` union /* select#3 */ select 2 AS `(SELECT 2)`
-SELECT (SELECT (SELECT 0 UNION SELECT 0));
-(SELECT (SELECT 0 UNION SELECT 0))
-0
-explain extended SELECT (SELECT (SELECT 0 UNION SELECT 0));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 /* select#1 */ select (/* select#3 */ select 0 union /* select#4 */ select 0) AS `(SELECT (SELECT 0 UNION SELECT 0))`
-SELECT (SELECT 1 FROM (SELECT 1) as b HAVING a=1) as a;
-ERROR 42S22: Reference 'a' not supported (forward reference in item list)
-SELECT (SELECT 1 FROM (SELECT 1) as b HAVING b=1) as a,(SELECT 1 FROM (SELECT 1) as c HAVING a=1) as b;
-ERROR 42S22: Reference 'b' not supported (forward reference in item list)
-SELECT (SELECT 1),MAX(1) FROM (SELECT 1) as a;
-(SELECT 1) MAX(1)
-1 1
-SELECT (SELECT a) as a;
-ERROR 42S22: Reference 'a' not supported (forward reference in item list)
-EXPLAIN EXTENDED SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 1 100.00
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1276 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
-Note 1276 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 1 AS `1` from dual having (/* select#3 */ select 1) = 1
-SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
-1
-1
-SELECT (SELECT 1), a;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT 1 as a FROM (SELECT 1) as b HAVING (SELECT a)=1;
-a
-1
-SELECT 1 FROM (SELECT (SELECT a) b) c;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT * FROM (SELECT 1 as id) b WHERE id IN (SELECT * FROM (SELECT 1 as id) c ORDER BY id);
-id
-1
-SELECT * FROM (SELECT 1) a WHERE 1 IN (SELECT 1,1);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT 1 IN (SELECT 1);
-1 IN (SELECT 1)
-1
-SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
-1
-1
-select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE(1))' at line 1
-SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1))' at line 1
-SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT (SELECT 1,2,3) = ROW(1,2,3);
-(SELECT 1,2,3) = ROW(1,2,3)
-1
-SELECT (SELECT 1,2,3) = ROW(1,2,1);
-(SELECT 1,2,3) = ROW(1,2,1)
-0
-SELECT (SELECT 1,2,3) < ROW(1,2,1);
-(SELECT 1,2,3) < ROW(1,2,1)
-0
-SELECT (SELECT 1,2,3) > ROW(1,2,1);
-(SELECT 1,2,3) > ROW(1,2,1)
-1
-SELECT (SELECT 1,2,3) = ROW(1,2,NULL);
-(SELECT 1,2,3) = ROW(1,2,NULL)
-NULL
-SELECT ROW(1,2,3) = (SELECT 1,2,3);
-ROW(1,2,3) = (SELECT 1,2,3)
-1
-SELECT ROW(1,2,3) = (SELECT 1,2,1);
-ROW(1,2,3) = (SELECT 1,2,1)
-0
-SELECT ROW(1,2,3) < (SELECT 1,2,1);
-ROW(1,2,3) < (SELECT 1,2,1)
-0
-SELECT ROW(1,2,3) > (SELECT 1,2,1);
-ROW(1,2,3) > (SELECT 1,2,1)
-1
-SELECT ROW(1,2,3) = (SELECT 1,2,NULL);
-ROW(1,2,3) = (SELECT 1,2,NULL)
-NULL
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,2,'a');
-(SELECT 1.5,2,'a') = ROW(1.5,2,'a')
-1
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,2,'b');
-(SELECT 1.5,2,'a') = ROW(1.5,2,'b')
-0
-SELECT (SELECT 1.5,2,'a') = ROW('1.5b',2,'b');
-(SELECT 1.5,2,'a') = ROW('1.5b',2,'b')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1.5b'
-SELECT (SELECT 'b',2,'a') = ROW(1.5,2,'a');
-(SELECT 'b',2,'a') = ROW(1.5,2,'a')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,'2','a');
-(SELECT 1.5,2,'a') = ROW(1.5,'2','a')
-1
-SELECT (SELECT 1.5,'c','a') = ROW(1.5,2,'a');
-(SELECT 1.5,'c','a') = ROW(1.5,2,'a')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-SELECT (SELECT * FROM (SELECT 'test' a,'test' b) a);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT 1 as a,(SELECT a+a) b,(SELECT b);
-a b (SELECT b)
-1 2 2
-create table t1 (a int);
-create table t2 (a int, b int);
-create table t3 (a int);
-create table t4 (a int not null, b int not null);
-insert into t1 values (2);
-insert into t2 values (1,7),(2,7);
-insert into t4 values (4,8),(3,8),(5,9);
-select (select a from t1 where t1.a = a1) as a2, (select b from t2 where t2.b=a2) as a1;
-ERROR 42S22: Reference 'a1' not supported (forward reference in item list)
-select (select a from t1 where t1.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a) a
-NULL 1
-2 2
-select (select a from t1 where t1.a=t2.b), a from t2;
-(select a from t1 where t1.a=t2.b) a
-NULL 1
-NULL 2
-select (select a from t1), a, (select 1 union select 2 limit 1) from t2;
-(select a from t1) a (select 1 union select 2 limit 1)
-2 1 1
-2 2 1
-select (select a from t3), a from t2;
-(select a from t3) a
-NULL 1
-NULL 2
-select * from t2 where t2.a=(select a from t1);
-a b
-2 7
-insert into t3 values (6),(7),(3);
-select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1);
-a b
-1 7
-2 7
-(select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 order by a limit 2) limit 3;
-a b
-1 7
-2 7
-3 8
-(select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 where t4.b=(select max(t2.a)*4 from t2) order by a);
-a b
-1 7
-2 7
-4 8
-3 8
-explain extended (select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 where t4.b=(select max(t2.a)*4 from t2) order by a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-3 UNION t4 ALL NULL NULL NULL NULL 3 100.00 Using where
-4 SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00
-NULL UNION RESULT <union1,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 (/* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`b` = (/* select#2 */ select `test`.`t3`.`a` from `test`.`t3` order by 1 desc limit 1)) union (/* select#3 */ select `test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b` from `test`.`t4` where `test`.`t4`.`b` = (/* select#4 */ select max(`test`.`t2`.`a`) * 4 from `test`.`t2`))
-select (select a from t3 where a<t2.a*4 order by 1 desc limit 1), a from t2;
-(select a from t3 where a<t2.a*4 order by 1 desc limit 1) a
-3 1
-7 2
-select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
-(select * from t2 where a>1) as tt;
-(select t3.a from t3 where a<8 order by 1 desc limit 1) a
-7 2
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-explain extended select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
-(select * from t2 where a>1) as tt;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select `test`.`t3`.`a` from `test`.`t3` where `test`.`t3`.`a` < 8 order by 1 desc limit 1) AS `(select t3.a from t3 where a<8 order by 1 desc limit 1)`,`tt`.`a` AS `a` from (/* select#3 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`a` > 1) `tt`
-set optimizer_switch=@tmp_optimizer_switch;
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3) order by 1 desc limit 1);
-a
-2
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3 where t3.a > t1.a) order by 1 desc limit 1);
-a
-2
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3 where t3.a < t1.a) order by 1 desc limit 1);
-a
-select b,(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2) from t4;
-b (select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2)
-8 7.5000
-8 4.5000
-9 7.5000
-explain extended select b,(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2) from t4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t4 ALL NULL NULL NULL NULL 3 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t4.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t4`.`b` AS `b`,<expr_cache><`test`.`t4`.`a`>((/* select#2 */ select avg(`test`.`t2`.`a` + (/* select#3 */ select min(`test`.`t3`.`a`) from `test`.`t3` where `test`.`t3`.`a` >= `test`.`t4`.`a`)) from `test`.`t2`)) AS `(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2)` from `test`.`t4`
-select * from t3 where exists (select * from t2 where t2.b=t3.a);
-a
-7
-select * from t3 where not exists (select * from t2 where t2.b=t3.a);
-a
-6
-3
-select * from t3 where a in (select b from t2);
-a
-7
-select * from t3 where a not in (select b from t2);
-a
-6
-3
-select * from t3 where a = some (select b from t2);
-a
-7
-select * from t3 where a <> any (select b from t2);
-a
-6
-3
-select * from t3 where a = all (select b from t2);
-a
-7
-select * from t3 where a <> all (select b from t2);
-a
-6
-3
-insert into t2 values (100, 5);
-select * from t3 where a < any (select b from t2);
-a
-6
-3
-select * from t3 where a < all (select b from t2);
-a
-3
-select * from t3 where a >= any (select b from t2);
-a
-6
-7
-explain extended select * from t3 where a >= any (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(`test`.`t2`.`b`) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= all (select b from t2);
-a
-7
-delete from t2 where a=100;
-select * from t3 where a in (select a,b from t2);
-ERROR 21000: Operand should contain 1 column(s)
-select * from t3 where a in (select * from t2);
-ERROR 21000: Operand should contain 1 column(s)
-insert into t4 values (12,7),(1,7),(10,9),(9,6),(7,6),(3,9),(1,10);
-select b,max(a) as ma from t4 group by b having b < (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-insert into t2 values (2,10);
-select b,max(a) as ma from t4 group by b having ma < (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-10 1
-delete from t2 where a=2 and b=10;
-select b,max(a) as ma from t4 group by b having b >= (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-7 12
-create table t5 (a int);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-insert into t5 values (5);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-insert into t5 values (2);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-explain extended select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-3 DEPENDENT UNION t5 ALL NULL NULL NULL NULL 2 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1276 Field or reference 'test.t2.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t2.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select <expr_cache><`test`.`t2`.`a`>((/* select#2 */ select 2 from dual where 2 = `test`.`t2`.`a` union /* select#3 */ select `test`.`t5`.`a` from `test`.`t5` where `test`.`t5`.`a` = `test`.`t2`.`a`)) AS `(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a)`,`test`.`t2`.`a` AS `a` from `test`.`t2`
-select (select a from t1 where t1.a=t2.a union all select a from t5 where t5.a=t2.a), a from t2;
-ERROR 21000: Subquery returns more than 1 row
-create table t6 (patient_uq int, clinic_uq int, index i1 (clinic_uq));
-create table t7( uq int primary key, name char(25));
-insert into t7 values(1,"Oblastnaia bolnitsa"),(2,"Bolnitsa Krasnogo Kresta");
-insert into t6 values (1,1),(1,2),(2,2),(1,3);
-select * from t6 where exists (select * from t7 where uq = clinic_uq);
-patient_uq clinic_uq
-1 1
-1 2
-2 2
-explain extended select * from t6 where exists (select * from t7 where uq = clinic_uq);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t7 index PRIMARY PRIMARY 4 NULL 2 100.00 Using index
-1 PRIMARY t6 ALL i1 NULL NULL NULL 4 75.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.t6.clinic_uq' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`t6`.`patient_uq` AS `patient_uq`,`test`.`t6`.`clinic_uq` AS `clinic_uq` from `test`.`t7` join `test`.`t6` where `test`.`t6`.`clinic_uq` = `test`.`t7`.`uq`
-select * from t1 where a= (select a from t2,t4 where t2.b=t4.b);
-ERROR 23000: Column 'a' in field list is ambiguous
-drop table t1,t2,t3;
-CREATE TABLE t3 (a varchar(20),b char(1) NOT NULL default '0');
-INSERT INTO t3 VALUES ('W','a'),('A','c'),('J','b');
-CREATE TABLE t2 (a varchar(20),b int NOT NULL default '0');
-INSERT INTO t2 VALUES ('W','1'),('A','3'),('J','2');
-CREATE TABLE t1 (a varchar(20),b date NOT NULL default '0000-00-00');
-INSERT INTO t1 VALUES ('W','1732-02-22'),('A','1735-10-30'),('J','1743-04-13');
-SELECT * FROM t1 WHERE b = (SELECT MIN(b) FROM t1);
-a b
-W 1732-02-22
-SELECT * FROM t2 WHERE b = (SELECT MIN(b) FROM t2);
-a b
-W 1
-SELECT * FROM t3 WHERE b = (SELECT MIN(b) FROM t3);
-a b
-W a
-CREATE TABLE `t8` (
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-`email` varchar(60) character set latin1 NOT NULL default '',
-PRIMARY KEY (`pseudo`),
-UNIQUE KEY `email` (`email`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t8 (pseudo,email) VALUES ('joce','test');
-INSERT INTO t8 (pseudo,email) VALUES ('joce1','test1');
-INSERT INTO t8 (pseudo,email) VALUES ('2joce1','2test1');
-EXPLAIN EXTENDED SELECT pseudo,(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce')) FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-4 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-2 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00
-3 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select 'test' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo,email FROM
-t8 WHERE pseudo='joce');
-ERROR HY000: Illegal parameter data types varchar and row for operation '='
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT * FROM t8 WHERE
-pseudo='joce');
-ERROR HY000: Illegal parameter data types varchar and row for operation '='
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce');
-pseudo
-joce
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo LIKE '%joce%');
-ERROR 21000: Subquery returns more than 1 row
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8;
-CREATE TABLE `t1` (
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (topic,date,pseudo) VALUES
-('43506','2002-10-02','joce'),('40143','2002-08-03','joce');
-EXPLAIN EXTENDED SELECT DISTINCT date FROM t1 WHERE date='2002-08-03';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index NULL PRIMARY 43 NULL 2 100.00 Using where; Using index
-Warnings:
-Note 1003 select distinct `test`.`t1`.`date` AS `date` from `test`.`t1` where `test`.`t1`.`date` = DATE'2002-08-03'
-EXPLAIN EXTENDED SELECT (SELECT DISTINCT date FROM t1 WHERE date='2002-08-03');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t1 index NULL PRIMARY 43 NULL 2 100.00 Using where; Using index
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select distinct `test`.`t1`.`date` from `test`.`t1` where `test`.`t1`.`date` = DATE'2002-08-03') AS `(SELECT DISTINCT date FROM t1 WHERE date='2002-08-03')`
-SELECT DISTINCT date FROM t1 WHERE date='2002-08-03';
-date
-2002-08-03
-SELECT (SELECT DISTINCT date FROM t1 WHERE date='2002-08-03');
-(SELECT DISTINCT date FROM t1 WHERE date='2002-08-03')
-2002-08-03
-SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION SELECT 1) UNION ALL SELECT 1;
-1
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION ALL SELECT 1) UNION SELECT 1;
-ERROR 21000: Subquery returns more than 1 row
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION SELECT 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL topic 3 NULL 2 100.00 Using index
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-drop table t1;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM ROW_FORMAT=FIXED;
-INSERT INTO t1 (numeropost,maxnumrep) VALUES (40143,1),(43506,2);
-CREATE TABLE `t2` (
-`mot` varchar(30) NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`)
-) ENGINE=MyISAM ROW_FORMAT=DYNAMIC;
-INSERT INTO t2 (mot,topic,date,pseudo) VALUES ('joce','40143','2002-10-22','joce'), ('joce','43506','2002-10-22','joce');
-select numeropost as a FROM t1 GROUP BY (SELECT 1 FROM t1 HAVING a=1);
-a
-40143
-SELECT numeropost,maxnumrep FROM t1 WHERE exists (SELECT 1 FROM t2 WHERE (mot='joce') AND date >= '2002-10-21' AND t1.numeropost = t2.topic) ORDER BY maxnumrep DESC LIMIT 0, 20;
-numeropost maxnumrep
-43506 2
-40143 1
-SELECT (SELECT 1) as a FROM (SELECT 1 FROM t1 HAVING a=1) b;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT 1 IN (SELECT 1 FROM t2 HAVING a);
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-SELECT * from t2 where topic IN (SELECT SUM(topic) FROM t1);
-mot topic date pseudo
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-SELECT * from t2 where topic = any (SELECT SUM(topic) FROM t1);
-mot topic date pseudo
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT *, topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100) from t2;
-mot topic date pseudo topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100)
-joce 40143 2002-10-22 joce 1
-joce 43506 2002-10-22 joce 1
-SELECT * from t2 where topic = all (SELECT SUM(topic) FROM t2);
-mot topic date pseudo
-SELECT * from t2 where topic <> any (SELECT SUM(topic) FROM t2);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT *, topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000) from t2;
-mot topic date pseudo topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000)
-joce 40143 2002-10-22 joce 1
-joce 43506 2002-10-22 joce 0
-drop table t1,t2;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM ROW_FORMAT=FIXED;
-INSERT INTO t1 (numeropost,maxnumrep) VALUES (1,0),(2,1);
-select numeropost as a FROM t1 GROUP BY (SELECT 1 FROM t1 HAVING a=1);
-ERROR 21000: Subquery returns more than 1 row
-select numeropost as a FROM t1 ORDER BY (SELECT 1 FROM t1 HAVING a=1);
-ERROR 21000: Subquery returns more than 1 row
-show warnings;
-Level Code Message
-Error 1242 Subquery returns more than 1 row
-Error 1028 Sort aborted: Subquery returns more than 1 row
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-(select * from t1) union (select * from t1) order by (select a from t1 limit 1);
-a
-1
-2
-3
-drop table t1;
-CREATE TABLE t1 (field char(1) NOT NULL DEFAULT 'b');
-INSERT INTO t1 VALUES ();
-SELECT field FROM t1 WHERE 1=(SELECT 1 UNION ALL SELECT 1 FROM (SELECT 1) a HAVING field='b');
-ERROR 21000: Subquery returns more than 1 row
-drop table t1;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL default '0',
-`numreponse` int(10) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) NOT NULL default '',
-PRIMARY KEY (`numeropost`,`numreponse`),
-UNIQUE KEY `numreponse` (`numreponse`),
-KEY `pseudo` (`pseudo`,`numeropost`)
-) ENGINE=MyISAM;
-SELECT (SELECT numeropost FROM t1 HAVING numreponse=a),numreponse FROM (SELECT * FROM t1) as a;
-ERROR 42S22: Reference 'numreponse' not supported (forward reference in item list)
-SELECT numreponse, (SELECT numeropost FROM t1 HAVING numreponse=a) FROM (SELECT * FROM t1) as a;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT numreponse, (SELECT numeropost FROM t1 HAVING numreponse=1) FROM (SELECT * FROM t1) as a;
-numreponse (SELECT numeropost FROM t1 HAVING numreponse=1)
-INSERT INTO t1 (numeropost,numreponse,pseudo) VALUES (1,1,'joce'),(1,2,'joce'),(1,3,'test');
-EXPLAIN EXTENDED SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT 1 FROM t1 WHERE numeropost='1');
-ERROR 21000: Subquery returns more than 1 row
-SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT 1 FROM t1 WHERE numeropost='1');
-ERROR 21000: Subquery returns more than 1 row
-EXPLAIN EXTENDED SELECT MAX(numreponse) FROM t1 WHERE numeropost='1';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 select max(`test`.`t1`.`numreponse`) AS `MAX(numreponse)` from `test`.`t1` where `test`.`t1`.`numeropost` = '1'
-EXPLAIN EXTENDED SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT MAX(numreponse) FROM t1 WHERE numeropost='1');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 const PRIMARY,numreponse PRIMARY 7 const,const 1 100.00 Using index
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 /* select#1 */ select 3 AS `numreponse` from `test`.`t1` where 1
-drop table t1;
-CREATE TABLE t1 (a int(1));
-INSERT INTO t1 VALUES (1);
-SELECT 1 FROM (SELECT a FROM t1) b HAVING (SELECT b.a)=1;
-1
-1
-drop table t1;
-create table t1 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t1 values (0, 10),(1, 11),(2, 12);
-insert into t2 values (1, 21),(2, 22),(3, 23);
-select * from t1;
-a b
-0 10
-1 11
-2 12
-update t1 set b= (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-update t1 set b= (select b from t2 where t1.a = t2.a);
-select * from t1;
-a b
-0 NULL
-1 21
-2 22
-drop table t1, t2;
-create table t1 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t1 values (0, 10),(1, 11),(2, 12);
-insert into t2 values (1, 21),(2, 12),(3, 23);
-select * from t1;
-a b
-0 10
-1 11
-2 12
-select * from t1 where b = (select b from t2 where t1.a = t2.a);
-a b
-2 12
-delete from t1 where b in (select b from t1);
-affected rows: 3
-insert into t1 values (0, 10),(1, 11),(2, 12);
-delete from t1 where b = (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-delete from t1 where b = (select b from t2 where t1.a = t2.a);
-select * from t1 order by b;
-a b
-0 10
-1 11
-drop table t1, t2;
-create table t11 (a int NOT NULL, b int, primary key (a));
-create table t12 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t11 values (0, 10),(1, 11),(2, 12);
-insert into t12 values (33, 10),(22, 11),(2, 12);
-insert into t2 values (1, 21),(2, 12),(3, 23);
-select * from t11;
-a b
-0 10
-1 11
-2 12
-select * from t12;
-a b
-33 10
-22 11
-2 12
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t12 where t11.a = t12.a);
-ERROR HY000: Table 't12' is specified twice, both as a target for 'DELETE' and as a separate source for data
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t2 where t11.a = t2.a);
-select * from t11;
-a b
-0 10
-1 11
-select * from t12;
-a b
-33 10
-22 11
-drop table t11, t12, t2;
-CREATE TABLE t1 (x int) ENGINE=MyISAM;
-create table t2 (a int) ENGINE=MyISAM;
-create table t3 (b int);
-insert into t2 values (1);
-insert into t3 values (1),(2);
-INSERT INTO t1 (x) VALUES ((SELECT x FROM t1));
-ERROR HY000: Table 't1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-INSERT INTO t1 (x) VALUES ((SELECT b FROM t3));
-ERROR 21000: Subquery returns more than 1 row
-INSERT INTO t1 (x) VALUES ((SELECT a FROM t2));
-select * from t1;
-x
-1
-insert into t2 values (1);
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
-select * from t1;
-x
-1
-2
-INSERT INTO t1 (x) select (SELECT SUM(a)+1 FROM t2) FROM t2;
-select * from t1;
-x
-1
-2
-3
-3
-INSERT INTO t1 (x) select (SELECT SUM(x)+2 FROM t1) FROM t2;
-select * from t1;
-x
-1
-2
-3
-3
-11
-11
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(x) FROM t2));
-ERROR 42S22: Unknown column 'x' in 'field list'
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
-select * from t1;
-x
-1
-2
-3
-3
-11
-11
-2
-drop table t1, t2, t3;
-CREATE TABLE t1 (x int not null, y int, primary key (x)) ENGINE=MyISAM;
-create table t2 (a int);
-create table t3 (a int);
-insert into t2 values (1);
-insert into t3 values (1),(2);
-select * from t1;
-x y
-replace into t1 (x, y) VALUES ((SELECT x FROM t1), (SELECT a+1 FROM t2));
-ERROR HY000: Table 't1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-replace into t1 (x, y) VALUES ((SELECT a FROM t3), (SELECT a+1 FROM t2));
-ERROR 21000: Subquery returns more than 1 row
-replace into t1 (x, y) VALUES ((SELECT a FROM t2), (SELECT a+1 FROM t2));
-select * from t1;
-x y
-1 2
-replace into t1 (x, y) VALUES ((SELECT a FROM t2), (SELECT a+2 FROM t2));
-select * from t1;
-x y
-1 3
-replace DELAYED into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a FROM t2));
-select * from t1;
-x y
-1 3
-4 1
-replace DELAYED into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a+1 FROM t2));
-select * from t1;
-x y
-1 3
-4 2
-replace LOW_PRIORITY into t1 (x, y) VALUES ((SELECT a+1 FROM t2), (SELECT a FROM t2));
-select * from t1;
-x y
-1 3
-4 2
-2 1
-drop table t1, t2, t3;
-SELECT * FROM (SELECT 1) b WHERE 1 IN (SELECT *);
-ERROR HY000: No tables used
-CREATE TABLE t2 (id int(11) default NULL, KEY id (id)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (1),(2);
-SELECT * FROM t2 WHERE id IN (SELECT 1);
-id
-1
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ref id id 5 const 1 100.00 Using index
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t2`.`id` AS `id` from `test`.`t2` where `test`.`t2`.`id` = 1
-SELECT * FROM t2 WHERE id IN (SELECT 1 UNION SELECT 3);
-id
-1
-SELECT * FROM t2 WHERE id IN (SELECT 1+(select 1));
-id
-2
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1+(select 1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ref id id 5 const 1 100.00 Using where; Using index
-Warnings:
-Note 1249 Select 3 was reduced during optimization
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t2`.`id` AS `id` from `test`.`t2` where `test`.`t2`.`id` = <cache>(1 + 1)
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1 UNION SELECT 3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL id 5 NULL 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`id` AS `id` from `test`.`t2` where <expr_cache><`test`.`t2`.`id`>(<in_optimizer>(`test`.`t2`.`id`,<exists>(/* select#2 */ select 1 having <cache>(`test`.`t2`.`id`) = <ref_null_helper>(1) union /* select#3 */ select 3 having <cache>(`test`.`t2`.`id`) = <ref_null_helper>(3))))
-SELECT * FROM t2 WHERE id IN (SELECT 5 UNION SELECT 3);
-id
-SELECT * FROM t2 WHERE id IN (SELECT 5 UNION SELECT 2);
-id
-2
-INSERT INTO t2 VALUES ((SELECT * FROM t2));
-ERROR HY000: Table 't2' is specified twice, both as a target for 'INSERT' and as a separate source for data
-INSERT INTO t2 VALUES ((SELECT id FROM t2));
-ERROR HY000: Table 't2' is specified twice, both as a target for 'INSERT' and as a separate source for data
-SELECT * FROM t2;
-id
-1
-2
-CREATE TABLE t1 (id int(11) default NULL, KEY id (id)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 values (1),(1);
-UPDATE t2 SET id=(SELECT * FROM t1);
-ERROR 21000: Subquery returns more than 1 row
-drop table t2, t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-select 1 IN (SELECT * from t1);
-1 IN (SELECT * from t1)
-1
-select 10 IN (SELECT * from t1);
-10 IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a=2;
-select 1 IN (SELECT * from t1);
-1 IN (SELECT * from t1)
-1
-select 3 IN (SELECT * from t1);
-3 IN (SELECT * from t1)
-1
-select 10 IN (SELECT * from t1);
-10 IN (SELECT * from t1)
-NULL
-select 1 > ALL (SELECT * from t1);
-1 > ALL (SELECT * from t1)
-0
-select 10 > ALL (SELECT * from t1);
-10 > ALL (SELECT * from t1)
-NULL
-select 1 > ANY (SELECT * from t1);
-1 > ANY (SELECT * from t1)
-NULL
-select 10 > ANY (SELECT * from t1);
-10 > ANY (SELECT * from t1)
-1
-drop table t1;
-create table t1 (a varchar(20));
-insert into t1 values ('A'),('BC'),('DEF');
-select 'A' IN (SELECT * from t1);
-'A' IN (SELECT * from t1)
-1
-select 'XYZS' IN (SELECT * from t1);
-'XYZS' IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a='BC';
-select 'A' IN (SELECT * from t1);
-'A' IN (SELECT * from t1)
-1
-select 'DEF' IN (SELECT * from t1);
-'DEF' IN (SELECT * from t1)
-1
-select 'XYZS' IN (SELECT * from t1);
-'XYZS' IN (SELECT * from t1)
-NULL
-select 'A' > ALL (SELECT * from t1);
-'A' > ALL (SELECT * from t1)
-0
-select 'XYZS' > ALL (SELECT * from t1);
-'XYZS' > ALL (SELECT * from t1)
-NULL
-select 'A' > ANY (SELECT * from t1);
-'A' > ANY (SELECT * from t1)
-NULL
-select 'XYZS' > ANY (SELECT * from t1);
-'XYZS' > ANY (SELECT * from t1)
-1
-drop table t1;
-create table t1 (a float);
-insert into t1 values (1.5),(2.5),(3.5);
-select 1.5 IN (SELECT * from t1);
-1.5 IN (SELECT * from t1)
-1
-select 10.5 IN (SELECT * from t1);
-10.5 IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a=2.5;
-select 1.5 IN (SELECT * from t1);
-1.5 IN (SELECT * from t1)
-1
-select 3.5 IN (SELECT * from t1);
-3.5 IN (SELECT * from t1)
-1
-select 10.5 IN (SELECT * from t1);
-10.5 IN (SELECT * from t1)
-NULL
-select 1.5 > ALL (SELECT * from t1);
-1.5 > ALL (SELECT * from t1)
-0
-select 10.5 > ALL (SELECT * from t1);
-10.5 > ALL (SELECT * from t1)
-NULL
-select 1.5 > ANY (SELECT * from t1);
-1.5 > ANY (SELECT * from t1)
-NULL
-select 10.5 > ANY (SELECT * from t1);
-10.5 > ANY (SELECT * from t1)
-1
-explain extended select (select a+1) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t1`.`a` + 1 AS `(select a+1)` from `test`.`t1`
-select (select a+1) from t1;
-(select a+1)
-2.5
-NULL
-4.5
-drop table t1;
-CREATE TABLE t1 (a int(11) NOT NULL default '0', PRIMARY KEY (a));
-CREATE TABLE t2 (a int(11) default '0', INDEX (a));
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-INSERT INTO t2 VALUES (1),(2),(3);
-SELECT t1.a, t1.a in (select t2.a from t2) FROM t1;
-a t1.a in (select t2.a from t2)
-1 1
-2 1
-3 1
-4 0
-explain extended SELECT t1.a, t1.a in (select t2.a from t2) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 4 100.00 Using index
-2 SUBQUERY t2 index_subquery a a 5 func 2 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`a`) in t2 on a checking NULL having `test`.`t2`.`a` is null)))) AS `t1.a in (select t2.a from t2)` from `test`.`t1`
-CREATE TABLE t3 (a int(11) default '0');
-INSERT INTO t3 VALUES (1),(2),(3);
-SELECT t1.a, t1.a in (select t2.a from t2,t3 where t3.a=t2.a) FROM t1;
-a t1.a in (select t2.a from t2,t3 where t3.a=t2.a)
-1 1
-2 1
-3 1
-4 0
-explain extended SELECT t1.a, t1.a in (select t2.a from t2,t3 where t3.a=t2.a) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 4 100.00 Using index
-2 DEPENDENT SUBQUERY t2 ref_or_null a a 5 func 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `test`.`t2`.`a` from `test`.`t2` join `test`.`t3` where `test`.`t3`.`a` = `test`.`t2`.`a` and (<cache>(`test`.`t1`.`a`) = `test`.`t2`.`a` or `test`.`t2`.`a` is null) having `test`.`t2`.`a` is null))) AS `t1.a in (select t2.a from t2,t3 where t3.a=t2.a)` from `test`.`t1`
-drop table t1,t2,t3;
-# check correct NULL Processing for normal IN/ALL/ANY
-# and 2 ways of max/min optimization
-create table t1 (a int);
-insert into t1 values (1), (100), (NULL), (1000);
-create table t2 (a int not null);
-# subselect returns empty set (for NULL and non-NULL left part)
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 0
-100 0
-NULL 0
-1000 0
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 0
-100 0
-NULL 0
-1000 0
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 1
-100 1
-NULL 1
-1000 1
-select a from t1 where a in (select * from t2);
-a
-select a from t1 where a > any (select * from t2);
-a
-select a from t1 where a > all (select * from t2);
-a
-1
-100
-NULL
-1000
-select a from t1 where a in (select * from t2 group by a);
-a
-select a from t1 where a > any (select * from t2 group by a);
-a
-select a from t1 where a > all (select * from t2 group by a);
-a
-1
-100
-NULL
-1000
-insert into t2 values (1),(200);
-# sebselect returns non-empty set without NULLs
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 1
-100 0
-NULL NULL
-1000 0
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 0
-100 1
-NULL NULL
-1000 1
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 0
-100 0
-NULL NULL
-1000 1
-select a from t1 where a in (select * from t2);
-a
-1
-select a from t1 where a > any (select * from t2);
-a
-100
-1000
-select a from t1 where a > all (select * from t2);
-a
-1000
-select a from t1 where a in (select * from t2 group by a);
-a
-1
-select a from t1 where a > any (select * from t2 group by a);
-a
-100
-1000
-select a from t1 where a > all (select * from t2 group by a);
-a
-1000
-drop table t2;
-create table t2 (a int);
-insert into t2 values (1),(NULL),(200);
-# sebselect returns non-empty set with NULLs
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 1
-100 NULL
-NULL NULL
-1000 NULL
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 NULL
-100 1
-NULL NULL
-1000 1
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 0
-100 0
-NULL NULL
-1000 NULL
-select a from t1 where a in (select * from t2);
-a
-1
-select a from t1 where a > any (select * from t2);
-a
-100
-1000
-select a from t1 where a > all (select * from t2);
-a
-select a from t1 where a in (select * from t2 group by a);
-a
-1
-select a from t1 where a > any (select * from t2 group by a);
-a
-100
-1000
-select a from t1 where a > all (select * from t2 group by a);
-a
-drop table t1, t2;
-create table t1 (a float);
-select 10.5 IN (SELECT * from t1 LIMIT 1);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-select 10.5 IN (SELECT * from t1 LIMIT 1 UNION SELECT 1.5);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1.5)' at line 1
-select 10.5 IN (SELECT * from t1 UNION SELECT 1.5 LIMIT 1);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-drop table t1;
-create table t1 (a int, b int, c varchar(10));
-create table t2 (a int);
-insert into t1 values (1,2,'a'),(2,3,'b'),(3,4,'c');
-insert into t2 values (1),(2),(NULL);
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,2,'a'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,2,'a') (select c from t1 where a=t2.a)
-1 1 a
-2 0 b
-NULL NULL NULL
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,3,'b'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,3,'b') (select c from t1 where a=t2.a)
-1 0 a
-2 1 b
-NULL NULL NULL
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,4,'c'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,4,'c') (select c from t1 where a=t2.a)
-1 0 a
-2 0 b
-NULL NULL NULL
-drop table t1,t2;
-create table t1 (a int, b real, c varchar(10));
-insert into t1 values (1, 1, 'a'), (2,2,'b'), (NULL, 2, 'b');
-select ROW(1, 1, 'a') IN (select a,b,c from t1);
-ROW(1, 1, 'a') IN (select a,b,c from t1)
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1);
-ROW(1, 2, 'a') IN (select a,b,c from t1)
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1);
-ROW(1, 1, 'a') IN (select b,a,c from t1)
-1
-select ROW(1, 1, 'a') IN (select a,b,c from t1 where a is not null);
-ROW(1, 1, 'a') IN (select a,b,c from t1 where a is not null)
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1 where a is not null);
-ROW(1, 2, 'a') IN (select a,b,c from t1 where a is not null)
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1 where a is not null);
-ROW(1, 1, 'a') IN (select b,a,c from t1 where a is not null)
-1
-select ROW(1, 1, 'a') IN (select a,b,c from t1 where c='b' or c='a');
-ROW(1, 1, 'a') IN (select a,b,c from t1 where c='b' or c='a')
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1 where c='b' or c='a');
-ROW(1, 2, 'a') IN (select a,b,c from t1 where c='b' or c='a')
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1 where c='b' or c='a');
-ROW(1, 1, 'a') IN (select b,a,c from t1 where c='b' or c='a')
-1
-select ROW(1, 1, 'a') IN (select b,a,c from t1 limit 2);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1);
-do @a:=(SELECT a from t1);
-select @a;
-@a
-1
-set @a:=2;
-set @a:=(SELECT a from t1);
-select @a;
-@a
-1
-drop table t1;
-do (SELECT a from t1);
-ERROR 42S02: Table 'test.t1' doesn't exist
-set @a:=(SELECT a from t1);
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (a int, KEY(a));
-HANDLER t1 OPEN;
-HANDLER t1 READ a=((SELECT 1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1))' at line 1
-HANDLER t1 CLOSE;
-drop table t1;
-create table t1 (a int);
-create table t2 (b int);
-insert into t1 values (1),(2);
-insert into t2 values (1);
-select a from t1 where a in (select a from t1 where a in (select b from t2));
-a
-1
-drop table t1, t2;
-create table t1 (a int, b int);
-create table t2 like t1;
-insert into t1 values (1,2),(1,3),(1,4),(1,5);
-insert into t2 values (1,2),(1,3);
-select * from t1 where row(a,b) in (select a,b from t2);
-a b
-1 2
-1 3
-drop table t1, t2;
-CREATE TABLE `t1` (`i` int(11) NOT NULL default '0',PRIMARY KEY (`i`)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1);
-UPDATE t1 SET i=i+1 WHERE i=(SELECT MAX(i));
-select * from t1;
-i
-2
-drop table t1;
-CREATE TABLE t1 (a int(1));
-EXPLAIN EXTENDED SELECT (SELECT RAND() FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select rand() from `test`.`t1`) AS `(SELECT RAND() FROM t1)` from `test`.`t1`
-EXPLAIN EXTENDED SELECT (SELECT ENCRYPT('test') FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select encrypt('test') from `test`.`t1`) AS `(SELECT ENCRYPT('test') FROM t1)` from `test`.`t1`
-EXPLAIN EXTENDED SELECT (SELECT BENCHMARK(1,1) FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select benchmark(1,1) from `test`.`t1`) AS `(SELECT BENCHMARK(1,1) FROM t1)` from `test`.`t1`
-drop table t1;
-CREATE TABLE `t1` (
-`mot` varchar(30) character set latin1 NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`),
-KEY `pseudo` (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-CREATE TABLE `t2` (
-`mot` varchar(30) character set latin1 NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`),
-KEY `pseudo` (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-CREATE TABLE `t3` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT IGNORE INTO t1 VALUES ('joce','1','','joce'),('test','2','','test');
-Warnings:
-Warning 1265 Data truncated for column 'date' at row 1
-Warning 1265 Data truncated for column 'date' at row 2
-INSERT IGNORE INTO t2 VALUES ('joce','1','','joce'),('test','2','','test');
-Warnings:
-Warning 1265 Data truncated for column 'date' at row 1
-Warning 1265 Data truncated for column 'date' at row 2
-INSERT INTO t3 VALUES (1,1);
-SELECT DISTINCT topic FROM t2 WHERE NOT EXISTS(SELECT * FROM t3 WHERE
-numeropost=topic);
-topic
-2
-select * from t1;
-mot topic date pseudo
-joce 1 0000-00-00 joce
-test 2 0000-00-00 test
-DELETE FROM t1 WHERE topic IN (SELECT DISTINCT topic FROM t2 WHERE NOT
-EXISTS(SELECT * FROM t3 WHERE numeropost=topic));
-select * from t1;
-mot topic date pseudo
-joce 1 0000-00-00 joce
-drop table t1, t2, t3;
-SELECT * FROM (SELECT 1 as a,(SELECT a)) a;
-a (SELECT a)
-1 1
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT 1)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT 1)` int(1) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT a)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT a)` int(1) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT a+0)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT a+0)` int(3) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT (SELECT 1 as a UNION SELECT 1+1 limit 1,1) as a;
-select * from t1;
-a
-2
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(3) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-explain extended select a,(select (select rand() from t1 limit 1) from t1 limit 1)
-from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-2 UNCACHEABLE SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00
-3 UNCACHEABLE SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,(/* select#2 */ select (/* select#3 */ select rand() from `test`.`t1` limit 1) from `test`.`t1` limit 1) AS `(select (select rand() from t1 limit 1) from t1 limit 1)` from `test`.`t1`
-drop table t1;
-select t1.Continent, t2.Name, t2.Population from t1 LEFT JOIN t2 ON t1.Code = t2.Country where t2.Population IN (select max(t2.Population) AS Population from t2, t1 where t2.Country = t1.Code group by Continent);
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (
-ID int(11) NOT NULL auto_increment,
-name char(35) NOT NULL default '',
-t2 char(3) NOT NULL default '',
-District char(20) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (130,'Sydney','AUS','New South Wales',3276207);
-INSERT INTO t1 VALUES (131,'Melbourne','AUS','Victoria',2865329);
-INSERT INTO t1 VALUES (132,'Brisbane','AUS','Queensland',1291117);
-CREATE TABLE t2 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL default 'Asia',
-Region char(26) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-IndepYear smallint(6) default NULL,
-Population int(11) NOT NULL default '0',
-LifeExpectancy float(3,1) default NULL,
-GNP float(10,2) default NULL,
-GNPOld float(10,2) default NULL,
-LocalName char(45) NOT NULL default '',
-GovernmentForm char(45) NOT NULL default '',
-HeadOfState char(60) default NULL,
-Capital int(11) default NULL,
-Code2 char(2) NOT NULL default '',
-PRIMARY KEY (Code)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('AUS','Australia','Oceania','Australia and New Zealand',7741220.00,1901,18886000,79.8,351182.00,392911.00,'Australia','Constitutional Monarchy, Federation','Elisabeth II',135,'AU');
-INSERT INTO t2 VALUES ('AZE','Azerbaijan','Asia','Middle East',86600.00,1991,7734000,62.9,4127.00,4100.00,'Azärbaycan','Federal Republic','Heydär Äliyev',144,'AZ');
-select t2.Continent, t1.Name, t1.Population from t2 LEFT JOIN t1 ON t2.Code = t1.t2 where t1.Population IN (select max(t1.Population) AS Population from t1, t2 where t1.t2 = t2.Code group by Continent);
-Continent Name Population
-Oceania Sydney 3276207
-drop table t1, t2;
-CREATE TABLE `t1` (
-`id` mediumint(8) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `pseudo` (`pseudo`)
-) ENGINE=MyISAM PACK_KEYS=1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (pseudo) VALUES ('test');
-SELECT 0 IN (SELECT 1 FROM t1 a);
-0 IN (SELECT 1 FROM t1 a)
-0
-EXPLAIN EXTENDED SELECT 0 IN (SELECT 1 FROM t1 a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 /* select#1 */ select <in_optimizer>(0,<exists>(/* select#2 */ select 1 from dual where 0 = 1)) AS `0 IN (SELECT 1 FROM t1 a)`
-INSERT INTO t1 (pseudo) VALUES ('test1');
-SELECT 0 IN (SELECT 1 FROM t1 a);
-0 IN (SELECT 1 FROM t1 a)
-0
-EXPLAIN EXTENDED SELECT 0 IN (SELECT 1 FROM t1 a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 /* select#1 */ select <in_optimizer>(0,<exists>(/* select#2 */ select 1 from `test`.`t1` `a` where 0 = 1)) AS `0 IN (SELECT 1 FROM t1 a)`
-drop table t1;
-CREATE TABLE `t1` (
-`i` int(11) NOT NULL default '0',
-PRIMARY KEY (`i`)
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1);
-UPDATE t1 SET i=i+(SELECT MAX(i) FROM (SELECT 1) t) WHERE i=(SELECT MAX(i));
-UPDATE t1 SET i=i+1 WHERE i=(SELECT MAX(i));
-UPDATE t1 SET t.i=i+(SELECT MAX(i) FROM (SELECT 1) t);
-ERROR 42S22: Unknown column 't.i' in 'field list'
-select * from t1;
-i
-3
-drop table t1;
-CREATE TABLE t1 (
-id int(11) default NULL
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1),(1),(2),(2),(1),(3);
-CREATE TABLE t2 (
-id int(11) default NULL,
-name varchar(15) default NULL
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (4,'vita'), (1,'vita'), (2,'vita'), (1,'vita');
-update t1, t2 set t2.name='lenka' where t2.id in (select id from t1);
-select * from t2;
-id name
-4 vita
-1 lenka
-2 lenka
-1 lenka
-drop table t1,t2;
-create table t1 (a int, unique index indexa (a));
-insert into t1 values (-1), (-4), (-2), (NULL);
-select -10 IN (select a from t1 FORCE INDEX (indexa));
--10 IN (select a from t1 FORCE INDEX (indexa))
-NULL
-drop table t1;
-create table t1 (id int not null auto_increment primary key, salary int, key(salary));
-insert into t1 (salary) values (100),(1000),(10000),(10),(500),(5000),(50000);
-explain extended SELECT id FROM t1 where salary = (SELECT MAX(salary) FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ref salary salary 5 const 1 100.00 Using where
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id` from `test`.`t1` where `test`.`t1`.`salary` = (/* select#2 */ select max(`test`.`t1`.`salary`) from `test`.`t1`)
-drop table t1;
-CREATE TABLE t1 (
-ID int(10) unsigned NOT NULL auto_increment,
-SUB_ID int(3) unsigned NOT NULL default '0',
-REF_ID int(10) unsigned default NULL,
-REF_SUB int(3) unsigned default '0',
-PRIMARY KEY (ID,SUB_ID),
-UNIQUE KEY t1_PK (ID,SUB_ID),
-KEY t1_FK (REF_ID,REF_SUB),
-KEY t1_REFID (REF_ID)
-) ENGINE=MyISAM CHARSET=cp1251;
-INSERT INTO t1 VALUES (1,0,NULL,NULL),(2,0,NULL,NULL);
-SELECT DISTINCT REF_ID FROM t1 WHERE ID= (SELECT DISTINCT REF_ID FROM t1 WHERE ID=2);
-REF_ID
-DROP TABLE t1;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1,0), (2,0), (3,0);
-insert into t2 values (1,1), (2,1), (3,1), (2,2);
-update ignore t1 set b=(select b from t2 where t1.a=t2.a);
-Warnings:
-Warning 1242 Subquery returns more than 1 row
-select * from t1;
-a b
-1 1
-2 NULL
-3 1
-drop table t1, t2;
-CREATE TABLE `t1` (
-`id` mediumint(8) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) NOT NULL default '',
-`email` varchar(60) NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `email` (`email`),
-UNIQUE KEY `pseudo` (`pseudo`)
-) ENGINE=MyISAM CHARSET=latin1 PACK_KEYS=1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (id,pseudo,email) VALUES (1,'test','test'),(2,'test1','test1');
-SELECT pseudo as a, pseudo as b FROM t1 GROUP BY (SELECT a) ORDER BY (SELECT id*1);
-a b
-test test
-test1 test1
-drop table if exists t1;
-(SELECT 1 as a) UNION (SELECT 1) ORDER BY (SELECT a+0);
-a
-1
-create table t1 (a int not null, b int, primary key (a));
-create table t2 (a int not null, primary key (a));
-create table t3 (a int not null, b int, primary key (a));
-insert into t1 values (1,10), (2,20), (3,30), (4,40);
-insert into t2 values (2), (3), (4), (5);
-insert into t3 values (10,3), (20,4), (30,5);
-select * from t2 where t2.a in (select a from t1);
-a
-2
-3
-4
-explain extended select * from t2 where t2.a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 4 100.00 Using index
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 4 75.00 Using where; Using index; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 4 100.00 Using index
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 4 75.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a` and `test`.`t1`.`b` <> 30
-select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-a
-2
-3
-explain extended select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 4 100.00 Using index
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 4 75.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 4 test.t1.b 1 100.00 Using index
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t1` join `test`.`t3` join `test`.`t2` where `test`.`t3`.`a` = `test`.`t1`.`b` and `test`.`t1`.`a` = `test`.`t2`.`a`
-drop table t1, t2, t3;
-create table t1 (a int, b int, index a (a,b));
-create table t2 (a int, index a (a));
-create table t3 (a int, b int, index a (a));
-insert into t1 values (1,10), (2,20), (3,30), (4,40);
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t1
-select rand()*100000+200,rand()*100000 from t0 A, t0 B, t0 C, t0 D;
-insert into t2 values (2), (3), (4), (5);
-insert into t3 values (10,3), (20,4), (30,5);
-select * from t2 where t2.a in (select a from t1);
-a
-2
-3
-4
-explain extended select * from t2 where t2.a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 5 test.t2.a 101 100.00 Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`t2`.`a`
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 5 test.t2.a 101 100.00 Using where; Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`t2`.`a` and `test`.`t1`.`b` <> 30
-select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-a
-2
-3
-explain extended select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t3 index a a 5 NULL 3 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 10 test.t2.a,test.t3.a 116 100.00 Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1` join `test`.`t3`) where `test`.`t1`.`b` = `test`.`t3`.`a` and `test`.`t1`.`a` = `test`.`t2`.`a`
-insert into t1 values (3,31);
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-3
-4
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30 and t1.b <> 31);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 5 test.t2.a 101 100.00 Using where; Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`t2`.`a` and `test`.`t1`.`b` <> 30
-drop table t0, t1, t2, t3;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-create table t3 (a int, b int);
-insert into t1 values (0,100),(1,2), (1,3), (2,2), (2,7), (2,-1), (3,10);
-insert into t2 values (0,0), (1,1), (2,1), (3,1), (4,1);
-insert into t3 values (3,3), (2,2), (1,1);
-select a,(select count(distinct t1.b) as sum from t1,t2 where t1.a=t2.a and t2.b > 0 and t1.a <= t3.b group by t1.a order by sum limit 1) from t3;
-a (select count(distinct t1.b) as sum from t1,t2 where t1.a=t2.a and t2.b > 0 and t1.a <= t3.b group by t1.a order by sum limit 1)
-3 1
-2 2
-1 2
-drop table t1,t2,t3;
-create table t1 (s1 int);
-create table t2 (s1 int);
-insert into t1 values (1);
-insert into t2 values (1);
-select * from t1 where exists (select s1 from t2 having max(t2.s1)=t1.s1);
-s1
-1
-drop table t1,t2;
-create table t1 (s1 int);
-create table t2 (s1 int);
-insert into t1 values (1);
-insert into t2 values (1);
-update t1 set s1 = s1 + 1 where 1 = (select x.s1 as A from t2 WHERE t2.s1 > t1.s1 order by A);
-ERROR 42S22: Unknown column 'x.s1' in 'field list'
-DROP TABLE t1, t2;
-CREATE TABLE t1 (s1 CHAR(5) COLLATE latin1_german1_ci,
-s2 CHAR(5) COLLATE latin1_swedish_ci);
-INSERT INTO t1 VALUES ('z','?');
-select * from t1 where s1 > (select max(s2) from t1);
-ERROR HY000: Illegal mix of collations (latin1_german1_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '>'
-select * from t1 where s1 > any (select max(s2) from t1);
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin1_german1_ci,IMPLICIT) for operation '<'
-drop table t1;
-create table t1(toid int,rd int);
-create table t2(userid int,pmnew int,pmtotal int);
-insert into t2 values(1,0,0),(2,0,0);
-insert into t1 values(1,0),(1,0),(1,0),(1,12),(1,15),(1,123),(1,12312),(1,12312),(1,123),(2,0),(2,0),(2,1),(2,2);
-select userid,pmtotal,pmnew, (select count(rd) from t1 where toid=t2.userid) calc_total, (select count(rd) from t1 where rd=0 and toid=t2.userid) calc_new from t2 where userid in (select distinct toid from t1);
-userid pmtotal pmnew calc_total calc_new
-1 0 0 9 3
-2 0 0 4 2
-drop table t1, t2;
-create table t1 (s1 char(5));
-select (select 'a','b' from t1 union select 'a','b' from t1) from t1;
-ERROR 21000: Operand should contain 1 column(s)
-insert into t1 values ('tttt');
-select * from t1 where ('a','b')=(select 'a','b' from t1 union select 'a','b' from t1);
-s1
-tttt
-explain extended (select * from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 (select 'tttt' AS `s1` from dual)
-(select * from t1);
-s1
-tttt
-drop table t1;
-create table t1 (s1 char(5), index s1(s1));
-create table t2 (s1 char(5), index s1(s1));
-insert into t1 values ('a1'),('a2'),('a3');
-insert into t2 values ('a1'),('a2');
-select s1, s1 NOT IN (SELECT s1 FROM t2) from t1;
-s1 s1 NOT IN (SELECT s1 FROM t2)
-a1 0
-a2 0
-a3 1
-select s1, s1 = ANY (SELECT s1 FROM t2) from t1;
-s1 s1 = ANY (SELECT s1 FROM t2)
-a1 1
-a2 1
-a3 0
-select s1, s1 <> ALL (SELECT s1 FROM t2) from t1;
-s1 s1 <> ALL (SELECT s1 FROM t2)
-a1 0
-a2 0
-a3 1
-select s1, s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2') from t1;
-s1 s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2')
-a1 0
-a2 1
-a3 1
-explain extended select s1, s1 NOT IN (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null))))) AS `s1 NOT IN (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 = ANY (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null))))) AS `s1 = ANY (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 <> ALL (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null))))) AS `s1 <> ALL (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2') from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Using where; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL where `test`.`t2`.`s1` < 'a2' having trigcond(`test`.`t2`.`s1` is null))))) AS `s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2')` from `test`.`t1`
-drop table t1,t2;
-create table t2 (a int, b int not null);
-create table t3 (a int);
-insert into t3 values (6),(7),(3);
-select * from t3 where a >= all (select b from t2);
-a
-6
-7
-3
-explain extended select * from t3 where a >= all (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select max(NULL) from `test`.`t2`) > <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= some (select b from t2);
-a
-explain extended select * from t3 where a >= some (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(NULL) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= all (select b from t2 group by 1);
-a
-6
-7
-3
-explain extended select * from t3 where a >= all (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select max(NULL) from `test`.`t2`) > <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= some (select b from t2 group by 1);
-a
-explain extended select * from t3 where a >= some (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(NULL) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where NULL >= any (select b from t2);
-a
-explain extended select * from t3 where NULL >= any (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= any (select b from t2 group by 1);
-a
-explain extended select * from t3 where NULL >= any (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= some (select b from t2);
-a
-explain extended select * from t3 where NULL >= some (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= some (select b from t2 group by 1);
-a
-explain extended select * from t3 where NULL >= some (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-insert into t2 values (2,2), (2,1), (3,3), (3,1);
-select * from t3 where a > all (select max(b) from t2 group by a);
-a
-6
-7
-explain extended select * from t3 where a > all (select max(b) from t2 group by a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 4 100.00 Using temporary
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,<max>(/* select#2 */ select max(`test`.`t2`.`b`) from `test`.`t2` group by `test`.`t2`.`a`) >= <cache>(`test`.`t3`.`a`)))
-drop table t2, t3;
-CREATE TABLE `t1` ( `id` mediumint(9) NOT NULL auto_increment, `taskid` bigint(20) NOT NULL default '0', `dbid` int(11) NOT NULL default '0', `create_date` datetime NOT NULL default '0000-00-00 00:00:00', `last_update` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (`id`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=3 ;
-INSERT INTO `t1` (`id`, `taskid`, `dbid`, `create_date`,`last_update`) VALUES (1, 1, 15, '2003-09-29 10:31:36', '2003-09-29 10:31:36'), (2, 1, 21, now(), now());
-CREATE TABLE `t2` (`db_id` int(11) NOT NULL auto_increment,`name` varchar(200) NOT NULL default '',`primary_uid` smallint(6) NOT NULL default '0',`secondary_uid` smallint(6) NOT NULL default '0',PRIMARY KEY (`db_id`),UNIQUE KEY `name_2` (`name`),FULLTEXT KEY `name` (`name`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=2147483647;
-INSERT INTO `t2` (`db_id`, `name`, `primary_uid`, `secondary_uid`) VALUES (18, 'Not Set 1', 0, 0),(19, 'Valid', 1, 2),(20, 'Valid 2', 1, 2),(21, 'Should Not Return', 1, 2),(26, 'Not Set 2', 0, 0),(-1, 'ALL DB\'S', 0, 0);
-CREATE TABLE `t3` (`taskgenid` mediumint(9) NOT NULL auto_increment,`dbid` int(11) NOT NULL default '0',`taskid` int(11) NOT NULL default '0',`mon` tinyint(4) NOT NULL default '1',`tues` tinyint(4) NOT NULL default '1',`wed` tinyint(4) NOT NULL default '1',`thur` tinyint(4) NOT NULL default '1',`fri` tinyint(4) NOT NULL default '1',`sat` tinyint(4) NOT NULL default '0',`sun` tinyint(4) NOT NULL default '0',`how_often` smallint(6) NOT NULL default '1',`userid` smallint(6) NOT NULL default '0',`active` tinyint(4) NOT NULL default '1',PRIMARY KEY (`taskgenid`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=2 ;
-INSERT INTO `t3` (`taskgenid`, `dbid`, `taskid`, `mon`, `tues`,`wed`, `thur`, `fri`, `sat`, `sun`, `how_often`, `userid`, `active`) VALUES (1,-1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1);
-CREATE TABLE `t4` (`task_id` smallint(6) NOT NULL default '0',`description` varchar(200) NOT NULL default '') ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO `t4` (`task_id`, `description`) VALUES (1, 'Daily Check List'),(2, 'Weekly Status');
-select dbid, name, (date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01') from t3 a, t2 b, t4 WHERE dbid = - 1 AND primary_uid = '1' AND t4.task_id = taskid;
-dbid name (date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01')
--1 Valid 1
--1 Valid 2 1
--1 Should Not Return 0
-SELECT dbid, name FROM t3 a, t2 b, t4 WHERE dbid = - 1 AND primary_uid = '1' AND ((date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01')) AND t4.task_id = taskid;
-dbid name
--1 Valid
--1 Valid 2
-drop table t1,t2,t3,t4;
-CREATE TABLE t1 (id int(11) default NULL) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 (id int(11) default NULL) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (2),(6);
-select * from t1 where (1,2,6) in (select * from t2);
-ERROR 21000: Operand should contain 3 column(s)
-DROP TABLE t1,t2;
-create table t1 (s1 int);
-insert into t1 values (1);
-insert into t1 values (2);
-set sort_buffer_size = (select s1 from t1);
-ERROR 21000: Subquery returns more than 1 row
-do (select * from t1);
-Warnings:
-Error 1242 Subquery returns more than 1 row
-drop table t1;
-create table t1 (s1 char);
-insert into t1 values ('e');
-select * from t1 where 'f' > any (select s1 from t1);
-s1
-e
-select * from t1 where 'f' > any (select s1 from t1 union select s1 from t1);
-s1
-e
-explain extended select * from t1 where 'f' > any (select s1 from t1 union select s1 from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-3 UNION t1 system NULL NULL NULL NULL 1 100.00
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select 'e' AS `s1` from dual where 1
-drop table t1;
-CREATE TABLE t1 (number char(11) NOT NULL default '') ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES ('69294728265'),('18621828126'),('89356874041'),('95895001874');
-CREATE TABLE t2 (code char(5) NOT NULL default '',UNIQUE KEY code (code)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES ('1'),('1226'),('1245'),('1862'),('18623'),('1874'),('1967'),('6');
-select c.number as phone,(select p.code from t2 p where c.number like concat(p.code, '%') order by length(p.code) desc limit 1) as code from t1 c;
-phone code
-69294728265 6
-18621828126 1862
-89356874041 NULL
-95895001874 NULL
-drop table t1, t2;
-create table t1 (s1 int);
-create table t2 (s1 int);
-select * from t1 where (select count(*) from t2 where t1.s2) = 1;
-ERROR 42S22: Unknown column 't1.s2' in 'where clause'
-select * from t1 where (select count(*) from t2 group by t1.s2) = 1;
-ERROR 42S22: Unknown column 't1.s2' in 'group statement'
-select count(*) from t2 group by t1.s2;
-ERROR 42S22: Unknown column 't1.s2' in 'group statement'
-drop table t1, t2;
-CREATE TABLE t1(COLA FLOAT NOT NULL,COLB FLOAT NOT NULL,COLC VARCHAR(20) DEFAULT NULL,PRIMARY KEY (COLA, COLB));
-CREATE TABLE t2(COLA FLOAT NOT NULL,COLB FLOAT NOT NULL,COLC CHAR(1) NOT NULL,PRIMARY KEY (COLA));
-INSERT INTO t1 VALUES (1,1,'1A3240'), (1,2,'4W2365');
-INSERT INTO t2 VALUES (100, 200, 'C');
-SELECT DISTINCT COLC FROM t1 WHERE COLA = (SELECT COLA FROM t2 WHERE COLB = 200 AND COLC ='C' LIMIT 1);
-COLC
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a int(1));
-INSERT INTO t1 VALUES (1),(1),(1),(1),(1),(2),(3),(4),(5);
-SELECT DISTINCT (SELECT a) FROM t1 LIMIT 100;
-(SELECT a)
-1
-2
-3
-4
-5
-DROP TABLE t1;
-create table t1 (a int, b decimal(13, 3));
-insert into t1 values (1, 0.123);
-select a, (select max(b) from t1) into outfile "../../tmp/subselect.out.file.1" from t1;
-delete from t1;
-load data infile "../../tmp/subselect.out.file.1" into table t1;
-select * from t1;
-a b
-1 0.123
-drop table t1;
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL auto_increment,
-`id_cns` tinyint(3) unsigned NOT NULL default '0',
-`tipo` enum('','UNO','DUE') NOT NULL default '',
-`anno_dep` smallint(4) unsigned zerofill NOT NULL default '0000',
-`particolare` mediumint(8) unsigned NOT NULL default '0',
-`generale` mediumint(8) unsigned NOT NULL default '0',
-`bis` tinyint(3) unsigned NOT NULL default '0',
-PRIMARY KEY (`id`),
-UNIQUE KEY `idx_cns_gen_anno` (`anno_dep`,`id_cns`,`generale`,`particolare`),
-UNIQUE KEY `idx_cns_par_anno` (`id_cns`,`anno_dep`,`tipo`,`particolare`,`bis`)
-);
-INSERT INTO `t1` VALUES (1,16,'UNO',1987,2048,9681,0),(2,50,'UNO',1987,1536,13987,0),(3,16,'UNO',1987,2432,14594,0),(4,16,'UNO',1987,1792,13422,0),(5,16,'UNO',1987,1025,10240,0),(6,16,'UNO',1987,1026,7089,0);
-CREATE TABLE `t2` (
-`id` tinyint(3) unsigned NOT NULL auto_increment,
-`max_anno_dep` smallint(6) unsigned NOT NULL default '0',
-PRIMARY KEY (`id`)
-);
-INSERT INTO `t2` VALUES (16,1987),(50,1990),(51,1990);
-SELECT cns.id, cns.max_anno_dep, cns.max_anno_dep = (SELECT s.anno_dep FROM t1 AS s WHERE s.id_cns = cns.id ORDER BY s.anno_dep DESC LIMIT 1) AS PIPPO FROM t2 AS cns;
-id max_anno_dep PIPPO
-16 1987 1
-50 1990 0
-51 1990 NULL
-DROP TABLE t1, t2;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-SET SQL_SELECT_LIMIT=1;
-select sum(a) from (select * from t1) as a;
-sum(a)
-6
-select 2 in (select * from t1);
-2 in (select * from t1)
-1
-SET SQL_SELECT_LIMIT=default;
-drop table t1;
-CREATE TABLE t1 (a int, b int, INDEX (a));
-INSERT INTO t1 VALUES (1, 1), (1, 2), (1, 3);
-SELECT * FROM t1 WHERE a = (SELECT MAX(a) FROM t1 WHERE a = 1) ORDER BY b;
-a b
-1 1
-1 2
-1 3
-DROP TABLE t1;
-create table t1(val varchar(10));
-insert into t1 values ('aaa'), ('bbb'),('eee'),('mmm'),('ppp');
-select count(*) from t1 as w1 where w1.val in (select w2.val from t1 as w2 where w2.val like 'm%') and w1.val in (select w3.val from t1 as w3 where w3.val like 'e%');
-count(*)
-0
-drop table t1;
-create table t1 (id int not null, text varchar(20) not null default '', primary key (id));
-insert into t1 (id, text) values (1, 'text1'), (2, 'text2'), (3, 'text3'), (4, 'text4'), (5, 'text5'), (6, 'text6'), (7, 'text7'), (8, 'text8'), (9, 'text9'), (10, 'text10'), (11, 'text11'), (12, 'text12');
-select * from t1 where id not in (select id from t1 where id < 8);
-id text
-8 text8
-9 text9
-10 text10
-11 text11
-12 text12
-select * from t1 as tt where not exists (select id from t1 where id < 8 and (id = tt.id or id is null) having id is not null);
-id text
-8 text8
-9 text9
-10 text10
-11 text11
-12 text12
-explain extended select * from t1 where id not in (select id from t1 where id < 8);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 12 100.00 Using where
-2 DEPENDENT SUBQUERY t1 unique_subquery PRIMARY PRIMARY 4 func 1 100.00 Using index; Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`text` AS `text` from `test`.`t1` where !<expr_cache><`test`.`t1`.`id`>(<in_optimizer>(`test`.`t1`.`id`,<exists>(<primary_index_lookup>(<cache>(`test`.`t1`.`id`) in t1 on PRIMARY where `test`.`t1`.`id` < 8 and <cache>(`test`.`t1`.`id`) = `test`.`t1`.`id`))))
-explain extended select * from t1 as tt where not exists (select id from t1 where id < 8 and (id = tt.id or id is null) having id is not null);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY tt ALL NULL NULL NULL NULL 12 100.00 Using where
-2 DEPENDENT SUBQUERY t1 eq_ref PRIMARY PRIMARY 4 test.tt.id 1 100.00 Using where; Using index
-Warnings:
-Note 1276 Field or reference 'test.tt.id' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`tt`.`id` AS `id`,`test`.`tt`.`text` AS `text` from `test`.`t1` `tt` where !<in_optimizer>(1,<expr_cache><`test`.`tt`.`id`>(exists(/* select#2 */ select `test`.`t1`.`id` from `test`.`t1` where `test`.`t1`.`id` < 8 and `test`.`t1`.`id` = `test`.`tt`.`id` having `test`.`t1`.`id` is not null)))
-insert into t1 (id, text) values (1000, 'text1000'), (1001, 'text1001');
-create table t2 (id int not null, text varchar(20) not null default '', primary key (id));
-insert into t2 (id, text) values (1, 'text1'), (2, 'text2'), (3, 'text3'), (4, 'text4'), (5, 'text5'), (6, 'text6'), (7, 'text7'), (8, 'text8'), (9, 'text9'), (10, 'text10'), (11, 'text1'), (12, 'text2'), (13, 'text3'), (14, 'text4'), (15, 'text5'), (16, 'text6'), (17, 'text7'), (18, 'text8'), (19, 'text9'), (20, 'text10'),(21, 'text1'), (22, 'text2'), (23, 'text3'), (24, 'text4'), (25, 'text5'), (26, 'text6'), (27, 'text7'), (28, 'text8'), (29, 'text9'), (30, 'text10'), (31, 'text1'), (32, 'text2'), (33, 'text3'), (34, 'text4'), (35, 'text5'), (36, 'text6'), (37, 'text7'), (38, 'text8'), (39, 'text9'), (40, 'text10'), (41, 'text1'), (42, 'text2'), (43, 'text3'), (44, 'text4'), (45, 'text5'), (46, 'text6'), (47, 'text7'), (48, 'text8'), (49, 'text9'), (50, 'text10');
-select * from t1 a left join t2 b on (a.id=b.id or b.id is null) join t1 c on (if(isnull(b.id), 1000, b.id)=c.id);
-id text id text id text
-1 text1 1 text1 1 text1
-2 text2 2 text2 2 text2
-3 text3 3 text3 3 text3
-4 text4 4 text4 4 text4
-5 text5 5 text5 5 text5
-6 text6 6 text6 6 text6
-7 text7 7 text7 7 text7
-8 text8 8 text8 8 text8
-9 text9 9 text9 9 text9
-10 text10 10 text10 10 text10
-11 text11 11 text1 11 text11
-12 text12 12 text2 12 text12
-1000 text1000 NULL NULL 1000 text1000
-1001 text1001 NULL NULL 1000 text1000
-explain extended select * from t1 a left join t2 b on (a.id=b.id or b.id is null) join t1 c on (if(isnull(b.id), 1000, b.id)=c.id);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE a ALL NULL NULL NULL NULL 14 100.00
-1 SIMPLE b eq_ref PRIMARY PRIMARY 4 test.a.id 2 100.00
-1 SIMPLE c eq_ref PRIMARY PRIMARY 4 func 1 100.00 Using index condition
-Warnings:
-Note 1003 select `test`.`a`.`id` AS `id`,`test`.`a`.`text` AS `text`,`test`.`b`.`id` AS `id`,`test`.`b`.`text` AS `text`,`test`.`c`.`id` AS `id`,`test`.`c`.`text` AS `text` from `test`.`t1` `a` left join `test`.`t2` `b` on(`test`.`b`.`id` = `test`.`a`.`id` or `test`.`b`.`id` is null) join `test`.`t1` `c` where if(`test`.`b`.`id` is null,1000,`test`.`b`.`id`) = `test`.`c`.`id`
-drop table t1,t2;
-create table t1 (a int);
-insert into t1 values (1);
-explain select benchmark(1000, (select a from t1 where a=sha(rand())));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 1
-drop table t1;
-create table t1(id int);
-create table t2(id int);
-create table t3(flag int);
-select (select * from t3 where id not null) from t1, t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'null) from t1, t2' at line 1
-drop table t1,t2,t3;
-CREATE TABLE t1 (id INT);
-CREATE TABLE t2 (id INT);
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (1);
-SELECT t1.id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id);
-id c
-1 1
-2 0
-SELECT id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id);
-id c
-1 1
-2 0
-SELECT t1.id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id) ORDER BY t1.id;
-id c
-1 1
-2 0
-SELECT id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id) ORDER BY id;
-id c
-1 1
-2 0
-DROP TABLE t1,t2;
-CREATE TABLE t1 ( a int, b int );
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-SELECT a FROM t1 WHERE a > ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-ALTER TABLE t1 ADD INDEX (a);
-SELECT a FROM t1 WHERE a > ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (1,2) > ANY (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE a > ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ALL (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE a > ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) <> ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ANY (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 2 column(s)
-SELECT a FROM t1 WHERE a = ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ANY (SELECT a,2 FROM t1 WHERE b = 2);
-a
-SELECT a FROM t1 WHERE (1,2) <> ALL (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 2 column(s)
-SELECT a FROM t1 WHERE a <> ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) <> ALL (SELECT a,2 FROM t1 WHERE b = 2);
-a
-1
-2
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 WHERE b = 2 UNION SELECT a,1 FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 WHERE b = 2 UNION SELECT a,1 FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 HAVING a = 2 UNION SELECT a,1 FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 HAVING a = 2 UNION SELECT a,1 FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-3
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a > t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a > t1.a), '-')
-0-
-0-
-1-
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a < t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a < t1.a), '-')
-1-
-0-
-0-
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a = t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a = t1.a), '-')
-0-
-1-
-0-
-DROP TABLE t1;
-CREATE TABLE t1 ( a double, b double );
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-3
-DROP TABLE t1;
-CREATE TABLE t1 ( a char(1), b char(1));
-INSERT INTO t1 VALUES ('1','1'),('2','2'),('3','3');
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = '2');
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = '2');
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = '2');
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = '2');
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = '2');
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = '2');
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-DROP TABLE t1;
-create table t1 (a int, b int);
-insert into t1 values (1,2),(3,4);
-select * from t1 up where exists (select * from t1 where t1.a=up.a);
-a b
-1 2
-3 4
-explain extended select * from t1 up where exists (select * from t1 where t1.a=up.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY up ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where; FirstMatch(up); Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.up.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`up`.`a` AS `a`,`test`.`up`.`b` AS `b` from `test`.`t1` `up` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`up`.`a`
-drop table t1;
-CREATE TABLE t1 (t1_a int);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (t2_a int, t2_b int, PRIMARY KEY (t2_a, t2_b));
-INSERT INTO t2 VALUES (1, 1), (1, 2);
-SELECT * FROM t1, t2 table2 WHERE t1_a = 1 AND table2.t2_a = 1
-HAVING table2.t2_b = (SELECT MAX(t2_b) FROM t2 WHERE t2_a = table2.t2_a);
-t1_a t2_a t2_b
-1 1 2
-DROP TABLE t1, t2;
-CREATE TABLE t1 (id int(11) default NULL,name varchar(10) default NULL);
-INSERT INTO t1 VALUES (1,'Tim'),(2,'Rebecca'),(3,NULL);
-CREATE TABLE t2 (id int(11) default NULL, pet varchar(10) default NULL);
-INSERT INTO t2 VALUES (1,'Fido'),(2,'Spot'),(3,'Felix');
-SELECT a.*, b.* FROM (SELECT * FROM t1) AS a JOIN t2 as b on a.id=b.id;
-id name id pet
-1 Tim 1 Fido
-2 Rebecca 2 Spot
-3 NULL 3 Felix
-drop table t1,t2;
-CREATE TABLE t1 ( a int, b int );
-CREATE TABLE t2 ( c int, d int );
-INSERT INTO t1 VALUES (1,2), (2,3), (3,4);
-SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-abc b
-1 2
-2 3
-3 4
-INSERT INTO t2 SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-select * from t2;
-c d
-1 2
-2 3
-3 4
-CREATE TABLE t3 SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-select * from t3;
-abc b
-1 2
-2 3
-3 4
-prepare stmt1 from "INSERT INTO t2 SELECT a AS abc, b FROM t1 outr WHERE b = (SELECT MIN(b) FROM t1 WHERE a=outr.a);";
-execute stmt1;
-deallocate prepare stmt1;
-select * from t2;
-c d
-1 2
-2 3
-3 4
-1 2
-2 3
-3 4
-drop table t3;
-prepare stmt1 from "CREATE TABLE t3 SELECT a AS abc, b FROM t1 outr WHERE b = (SELECT MIN(b) FROM t1 WHERE a=outr.a);";
-execute stmt1;
-select * from t3;
-abc b
-1 2
-2 3
-3 4
-deallocate prepare stmt1;
-DROP TABLE t1, t2, t3;
-CREATE TABLE `t1` ( `a` int(11) default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-insert into t1 values (1);
-CREATE TABLE `t2` ( `b` int(11) default NULL, `a` int(11) default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-insert into t2 values (1,2);
-select t000.a, count(*) `C` FROM t1 t000 GROUP BY t000.a HAVING count(*) > ALL (SELECT count(*) FROM t2 t001 WHERE t001.a=1);
-a C
-1 1
-drop table t1,t2;
-create table t1 (a int not null auto_increment primary key, b varchar(40), fulltext(b));
-insert into t1 (b) values ('ball'),('ball games'), ('games'), ('foo'), ('foobar'), ('Serg'), ('Sergei'),('Georg'), ('Patrik'),('Hakan');
-create table t2 (a int);
-insert into t2 values (1),(3),(2),(7);
-select a,b from t1 where match(b) against ('Ball') > 0;
-a b
-1 ball
-2 ball games
-select a from t2 where a in (select a from t1 where match(b) against ('Ball') > 0);
-a
-1
-2
-drop table t1,t2;
-CREATE TABLE t1(`IZAVORGANG_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin,`KUERZEL` VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_bin,`IZAANALYSEART_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin,`IZAPMKZ_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin);
-CREATE INDEX AK01IZAVORGANG ON t1(izaAnalyseart_id,Kuerzel);
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000001','601','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000002','602','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000003','603','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000004','101','D0000000001','I0000000001');
-SELECT `IZAVORGANG_ID` FROM t1 WHERE `KUERZEL` IN(SELECT MIN(`KUERZEL`)`Feld1` FROM t1 WHERE `KUERZEL` LIKE'601%'And`IZAANALYSEART_ID`='D0000000001');
-IZAVORGANG_ID
-D0000000001
-drop table t1;
-CREATE TABLE `t1` ( `aid` int(11) NOT NULL default '0', `bid` int(11) NOT NULL default '0', PRIMARY KEY (`aid`,`bid`));
-CREATE TABLE `t2` ( `aid` int(11) NOT NULL default '0', `bid` int(11) NOT NULL default '0', PRIMARY KEY (`aid`,`bid`));
-insert into t1 values (1,1),(1,2),(2,1),(2,2);
-insert into t2 values (1,2),(2,2);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-alter table t2 drop primary key;
-alter table t2 add key KEY1 (aid, bid);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-alter table t2 drop key KEY1;
-alter table t2 add primary key (bid, aid);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-drop table t1,t2;
-CREATE TABLE t1 (howmanyvalues bigint, avalue int);
-INSERT INTO t1 VALUES (1, 1),(2, 1),(2, 2),(3, 1),(3, 2),(3, 3),(4, 1),(4, 2),(4, 3),(4, 4);
-SELECT howmanyvalues, count(*) from t1 group by howmanyvalues;
-howmanyvalues count(*)
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.howmanyvalues) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-CREATE INDEX t1_howmanyvalues_idx ON t1 (howmanyvalues);
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues+1 = a.howmanyvalues+1) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.howmanyvalues) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.avalue) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 1
-3 1
-4 1
-drop table t1;
-create table t1 (x int);
-select (select b.x from t1 as b where b.x=a.x) from t1 as a where a.x=2 group by a.x;
-(select b.x from t1 as b where b.x=a.x)
-drop table t1;
-CREATE TABLE `t1` ( `master` int(10) unsigned NOT NULL default '0', `map` smallint(6) unsigned NOT NULL default '0', `slave` int(10) unsigned NOT NULL default '0', `access` int(10) unsigned NOT NULL default '0', UNIQUE KEY `access_u` (`master`,`map`,`slave`));
-INSERT INTO `t1` VALUES (1,0,0,700),(1,1,1,400),(1,5,5,400),(1,12,12,400),(1,12,32,400),(4,12,32,400);
-CREATE TABLE `t2` ( `id` int(10) unsigned NOT NULL default '0', `pid` int(10) unsigned NOT NULL default '0', `map` smallint(6) unsigned NOT NULL default '0', `level` tinyint(4) unsigned NOT NULL default '0', `title` varchar(255) default NULL, PRIMARY KEY (`id`,`pid`,`map`), KEY `level` (`level`), KEY `id` (`id`,`map`)) ;
-INSERT INTO `t2` VALUES (6,5,12,7,'a'),(12,0,0,7,'a'),(12,1,0,7,'a'),(12,5,5,7,'a'),(12,5,12,7,'a');
-SELECT b.sc FROM (SELECT (SELECT a.access FROM t1 a WHERE a.map = op.map AND a.slave = op.pid AND a.master = 1) ac FROM t2 op WHERE op.id = 12 AND op.map = 0) b;
-ERROR 42S22: Unknown column 'b.sc' in 'field list'
-SELECT b.ac FROM (SELECT (SELECT a.access FROM t1 a WHERE a.map = op.map AND a.slave = op.pid AND a.master = 1) ac FROM t2 op WHERE op.id = 12 AND op.map = 0) b;
-ac
-700
-NULL
-drop tables t1,t2;
-create table t1 (a int not null, b int not null, c int, primary key (a,b));
-insert into t1 values (1,1,1), (2,2,2), (3,3,3);
-set @b:= 0;
-explain select sum(a) from t1 where b > @b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 8 NULL 3 Using where; Using index
-set @a:= (select sum(a) from t1 where b > @b);
-explain select a from t1 where c=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-do @a:= (select sum(a) from t1 where b > @b);
-explain select a from t1 where c=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-drop table t1;
-connect root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root;
-set @got_val= (SELECT 1 FROM (SELECT 'A' as my_col) as T1 ) ;
-disconnect root;
-connection default;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1,1),(1,2),(1,3),(2,4),(2,5);
-insert into t2 values (1,3),(2,1);
-select distinct a,b, (select max(b) from t2 where t1.b=t2.a) from t1 order by t1.b;
-a b (select max(b) from t2 where t1.b=t2.a)
-1 1 3
-1 2 1
-1 3 NULL
-2 4 NULL
-2 5 NULL
-drop table t1, t2;
-create table t1 (id int);
-create table t2 (id int, body text, fulltext (body));
-insert into t1 values(1),(2),(3);
-insert into t2 values (1,'test'), (2,'mysql'), (3,'test'), (4,'test');
-select count(distinct id) from t1 where id in (select id from t2 where match(body) against ('mysql' in boolean mode));
-count(distinct id)
-1
-drop table t2,t1;
-create table t1 (s1 int,s2 int);
-insert into t1 values (20,15);
-select * from t1 where (('a',null) <=> (select 'a',s2 from t1 where s1 = 0));
-s1 s2
-drop table t1;
-create table t1 (s1 int);
-insert into t1 values (1),(null);
-select * from t1 where s1 < all (select s1 from t1);
-s1
-select s1, s1 < all (select s1 from t1) from t1;
-s1 s1 < all (select s1 from t1)
-1 0
-NULL NULL
-drop table t1;
-CREATE TABLE t1 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL default 'Asia',
-Region char(26) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-IndepYear smallint(6) default NULL,
-Population int(11) NOT NULL default '0',
-LifeExpectancy float(3,1) default NULL,
-GNP float(10,2) default NULL,
-GNPOld float(10,2) default NULL,
-LocalName char(45) NOT NULL default '',
-GovernmentForm char(45) NOT NULL default '',
-HeadOfState char(60) default NULL,
-Capital int(11) default NULL,
-Code2 char(2) NOT NULL default ''
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('XXX','Xxxxx','Oceania','Xxxxxx',26.00,0,0,0,0,0,'Xxxxx','Xxxxx','Xxxxx',NULL,'XX');
-INSERT INTO t1 VALUES ('ASM','American Samoa','Oceania','Polynesia',199.00,0,68000,75.1,334.00,NULL,'Amerika Samoa','US Territory','George W. Bush',54,'AS');
-INSERT INTO t1 VALUES ('ATF','French Southern territories','Antarctica','Antarctica',7780.00,0,0,NULL,0.00,NULL,'Terres australes françaises','Nonmetropolitan Territory of France','Jacques Chirac',NULL,'TF');
-INSERT INTO t1 VALUES ('UMI','United States Minor Outlying Islands','Oceania','Micronesia/Caribbean',16.00,0,0,NULL,0.00,NULL,'United States Minor Outlying Islands','Dependent Territory of the US','George W. Bush',NULL,'UM');
-/*!40000 ALTER TABLE t1 ENABLE KEYS */;
-SELECT DISTINCT Continent AS c FROM t1 outr WHERE
-Code <> SOME ( SELECT Code FROM t1 WHERE Continent = outr.Continent AND
-Population < 200);
-c
-Oceania
-drop table t1;
-create table t1 (a1 int);
-create table t2 (b1 int);
-select * from t1 where a2 > any(select b1 from t2);
-ERROR 42S22: Unknown column 'a2' in 'IN/ALL/ANY subquery'
-select * from t1 where a1 > any(select b1 from t2);
-a1
-drop table t1,t2;
-create table t1 (a integer, b integer);
-select (select * from t1) = (select 1,2);
-(select * from t1) = (select 1,2)
-NULL
-select (select 1,2) = (select * from t1);
-(select 1,2) = (select * from t1)
-NULL
-select row(1,2) = ANY (select * from t1);
-row(1,2) = ANY (select * from t1)
-0
-select row(1,2) != ALL (select * from t1);
-row(1,2) != ALL (select * from t1)
-1
-drop table t1;
-create table t1 (a integer, b integer);
-select row(1,(2,2)) in (select * from t1 );
-ERROR 21000: Operand should contain 2 column(s)
-select row(1,(2,2)) = (select * from t1 );
-ERROR 21000: Operand should contain 2 column(s)
-select (select * from t1) = row(1,(2,2));
-ERROR 21000: Operand should contain 1 column(s)
-drop table t1;
-create table t1 (a integer);
-insert into t1 values (1);
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx ;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 as xx, 1 = ALL ( select 1 from t1 where 1 = xx );
-xx 1 = ALL ( select 1 from t1 where 1 = xx )
-1 1
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx from DUAL;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-drop table t1;
-CREATE TABLE t1 (
-categoryId int(11) NOT NULL,
-courseId int(11) NOT NULL,
-startDate datetime NOT NULL,
-endDate datetime NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL,
-attributes text NOT NULL
-);
-INSERT INTO t1 VALUES (1,41,'2004-02-09','2010-01-01','2004-02-09','2004-02-09',''),
-(1,86,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(1,87,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(2,52,'2004-03-15','2004-10-01','2004-03-15','2004-09-17',''),
-(2,53,'2004-03-16','2004-10-01','2004-03-16','2004-09-17',''),
-(2,88,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(2,89,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(3,51,'2004-02-09','2010-01-01','2004-02-09','2004-02-09',''),
-(5,12,'2004-02-18','2010-01-01','2004-02-18','2004-02-18','');
-CREATE TABLE t2 (
-userId int(11) NOT NULL,
-courseId int(11) NOT NULL,
-date datetime NOT NULL
-);
-INSERT INTO t2 VALUES (5141,71,'2003-11-18'),
-(5141,72,'2003-11-25'),(5141,41,'2004-08-06'),
-(5141,52,'2004-08-06'),(5141,53,'2004-08-06'),
-(5141,12,'2004-08-06'),(5141,86,'2004-10-21'),
-(5141,87,'2004-10-21'),(5141,88,'2004-10-21'),
-(5141,89,'2004-10-22'),(5141,51,'2004-10-26');
-CREATE TABLE t3 (
-groupId int(11) NOT NULL,
-parentId int(11) NOT NULL,
-startDate datetime NOT NULL,
-endDate datetime NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL,
-ordering int(11)
-);
-INSERT INTO t3 VALUES (12,9,'1000-01-01','3999-12-31','2004-01-29','2004-01-29',NULL);
-CREATE TABLE t4 (
-id int(11) NOT NULL,
-groupTypeId int(11) NOT NULL,
-groupKey varchar(50) NOT NULL,
-name text,
-ordering int(11),
-description text,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL
-);
-INSERT INTO t4 VALUES (9,5,'stationer','stationer',0,'Stationer','2004-01-29','2004-01-29'),
-(12,5,'group2','group2',0,'group2','2004-01-29','2004-01-29');
-CREATE TABLE t5 (
-userId int(11) NOT NULL,
-groupId int(11) NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL
-);
-INSERT INTO t5 VALUES (5141,12,'2004-08-06','2004-08-06');
-select
-count(distinct t2.userid) pass,
-groupstuff.*,
-count(t2.courseid) crse,
-t1.categoryid,
-t2.courseid,
-date_format(date, '%b%y') as colhead
-from t2
-join t1 on t2.courseid=t1.courseid
-join
-(
-select
-t5.userid,
-parentid,
-parentgroup,
-childid,
-groupname,
-grouptypeid
-from t5
-join
-(
-select t4.id as parentid,
-t4.name as parentgroup,
-t4.id as childid,
-t4.name as groupname,
-t4.grouptypeid
-from t4
-) as gin on t5.groupid=gin.childid
-) as groupstuff on t2.userid = groupstuff.userid
-group by
-groupstuff.groupname, colhead , t2.courseid;
-pass userid parentid parentgroup childid groupname grouptypeid crse categoryid courseid colhead
-1 5141 12 group2 12 group2 5 1 5 12 Aug04
-1 5141 12 group2 12 group2 5 1 1 41 Aug04
-1 5141 12 group2 12 group2 5 1 2 52 Aug04
-1 5141 12 group2 12 group2 5 1 2 53 Aug04
-1 5141 12 group2 12 group2 5 1 3 51 Oct04
-1 5141 12 group2 12 group2 5 1 1 86 Oct04
-1 5141 12 group2 12 group2 5 1 1 87 Oct04
-1 5141 12 group2 12 group2 5 1 2 88 Oct04
-1 5141 12 group2 12 group2 5 1 2 89 Oct04
-drop table t1, t2, t3, t4, t5;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-SELECT 1 FROM t1 WHERE (SELECT 1) in (SELECT 1);
-1
-1
-1
-1
-drop table t1;
-create table t1 (a int);
-create table t2 (a int);
-insert into t1 values (1),(2);
-insert into t2 values (0),(1),(2),(3);
-select a from t2 where a in (select a from t1);
-a
-1
-2
-select a from t2 having a in (select a from t1);
-a
-1
-2
-prepare stmt1 from "select a from t2 where a in (select a from t1)";
-execute stmt1;
-a
-1
-2
-execute stmt1;
-a
-1
-2
-deallocate prepare stmt1;
-prepare stmt1 from "select a from t2 having a in (select a from t1)";
-execute stmt1;
-a
-1
-2
-execute stmt1;
-a
-1
-2
-deallocate prepare stmt1;
-drop table t1, t2;
-create table t1 (a int, b int);
-insert into t1 values (1,2);
-select 1 = (select * from t1);
-ERROR HY000: Illegal parameter data types int and row for operation '='
-select (select * from t1) = 1;
-ERROR HY000: Illegal parameter data types row and int for operation '='
-select (1,2) = (select a from t1);
-ERROR HY000: Illegal parameter data types row and int for operation '='
-select (select a from t1) = (1,2);
-ERROR HY000: Illegal parameter data types int and row for operation '='
-select (1,2,3) = (select * from t1);
-ERROR 21000: Operand should contain 3 column(s)
-select (select * from t1) = (1,2,3);
-ERROR 21000: Operand should contain 2 column(s)
-drop table t1;
-CREATE TABLE `t1` (
-`itemid` bigint(20) unsigned NOT NULL auto_increment,
-`sessionid` bigint(20) unsigned default NULL,
-`time` int(10) unsigned NOT NULL default '0',
-`type` set('A','D','E','F','G','I','L','N','U') collate latin1_general_ci NOT
-NULL default '',
-`data` text collate latin1_general_ci NOT NULL,
-PRIMARY KEY (`itemid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t1` VALUES (1, 1, 1, 'D', '');
-CREATE TABLE `t2` (
-`sessionid` bigint(20) unsigned NOT NULL auto_increment,
-`pid` int(10) unsigned NOT NULL default '0',
-`date` int(10) unsigned NOT NULL default '0',
-`ip` varchar(15) collate latin1_general_ci NOT NULL default '',
-PRIMARY KEY (`sessionid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t2` VALUES (1, 1, 1, '10.10.10.1');
-SELECT s.ip, count( e.itemid ) FROM `t1` e JOIN t2 s ON s.sessionid = e.sessionid WHERE e.sessionid = ( SELECT sessionid FROM t2 ORDER BY sessionid DESC LIMIT 1 ) GROUP BY s.ip HAVING count( e.itemid ) >0 LIMIT 0 , 30;
-ip count( e.itemid )
-10.10.10.1 1
-drop tables t1,t2;
-create table t1 (fld enum('0','1'));
-insert into t1 values ('1');
-select * from (select max(fld) from t1) as foo;
-max(fld)
-1
-drop table t1;
-set @tmp11867_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin_with_cache=off';
-CREATE TABLE t1 (one int, two int, flag char(1));
-CREATE TABLE t2 (one int, two int, flag char(1));
-INSERT INTO t1 VALUES(1,2,'Y'),(2,3,'Y'),(3,4,'Y'),(5,6,'N'),(7,8,'N');
-INSERT INTO t2 VALUES(1,2,'Y'),(2,3,'Y'),(3,4,'Y'),(5,6,'N'),(7,8,'N');
-SELECT * FROM t1
-WHERE ROW(one,two) IN (SELECT DISTINCT one,two FROM t2 WHERE flag = 'N');
-one two flag
-5 6 N
-7 8 N
-SELECT * FROM t1
-WHERE ROW(one,two) IN (SELECT DISTINCT one,two FROM t1 WHERE flag = 'N');
-one two flag
-5 6 N
-7 8 N
-insert into t2 values (null,null,'N');
-insert into t2 values (null,3,'0');
-insert into t2 values (null,5,'0');
-insert into t2 values (10,null,'0');
-insert into t1 values (10,3,'0');
-insert into t1 values (10,5,'0');
-insert into t1 values (10,10,'0');
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N') as 'test' from t1;
-one two test
-1 2 NULL
-2 3 NULL
-3 4 NULL
-5 6 1
-7 8 1
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two from t1 where ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N');
-one two
-5 6
-7 8
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N' group by one,two) as 'test' from t1;
-one two test
-1 2 NULL
-2 3 NULL
-3 4 NULL
-5 6 1
-7 8 1
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0') as 'test' from t1;
-one two test
-1 2 0
-2 3 NULL
-3 4 0
-5 6 0
-7 8 0
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0' group by one,two) as 'test' from t1;
-one two test
-1 2 0
-2 3 NULL
-3 4 0
-5 6 0
-7 8 0
-10 3 NULL
-10 5 NULL
-10 10 NULL
-explain extended SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0') as 'test' from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two`,<expr_cache><`test`.`t1`.`one`,`test`.`t1`.`two`>(<in_optimizer>((`test`.`t1`.`one`,`test`.`t1`.`two`),<exists>(/* select#2 */ select `test`.`t2`.`one`,`test`.`t2`.`two` from `test`.`t2` where `test`.`t2`.`flag` = '0' and trigcond(trigcond(<cache>(`test`.`t1`.`one`) = `test`.`t2`.`one` or `test`.`t2`.`one` is null)) and trigcond(trigcond(<cache>(`test`.`t1`.`two`) = `test`.`t2`.`two` or `test`.`t2`.`two` is null)) having trigcond(`test`.`t2`.`one` is null) and trigcond(`test`.`t2`.`two` is null)))) AS `test` from `test`.`t1`
-explain extended SELECT one,two from t1 where ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 9 100.00 Using where; FirstMatch(t1)
-Warnings:
-Note 1003 select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`flag` = 'N' and `test`.`t2`.`one` = `test`.`t1`.`one` and `test`.`t2`.`two` = `test`.`t1`.`two`
-explain extended SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0' group by one,two) as 'test' from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two`,<expr_cache><`test`.`t1`.`one`,`test`.`t1`.`two`>(<in_optimizer>((`test`.`t1`.`one`,`test`.`t1`.`two`),<exists>(/* select#2 */ select `test`.`t2`.`one`,`test`.`t2`.`two` from `test`.`t2` where `test`.`t2`.`flag` = '0' and trigcond(trigcond(<cache>(`test`.`t1`.`one`) = `test`.`t2`.`one` or `test`.`t2`.`one` is null)) and trigcond(trigcond(<cache>(`test`.`t1`.`two`) = `test`.`t2`.`two` or `test`.`t2`.`two` is null)) having trigcond(`test`.`t2`.`one` is null) and trigcond(`test`.`t2`.`two` is null)))) AS `test` from `test`.`t1`
-DROP TABLE t1,t2;
-set optimizer_switch=@tmp11867_optimizer_switch;
-CREATE TABLE t1 (a char(5), b char(5));
-INSERT INTO t1 VALUES (NULL,'aaa'), ('aaa','aaa');
-SELECT * FROM t1 WHERE (a,b) IN (('aaa','aaa'), ('aaa','bbb'));
-a b
-aaa aaa
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int, b int);
-CREATE TABLE t3 (b int NOT NULL);
-INSERT INTO t1 VALUES (1), (2), (3), (4);
-INSERT INTO t2 VALUES (1,10), (3,30);
-SELECT * FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t3.b IS NOT NULL OR t2.a > 10;
-a b b
-SELECT * FROM t1
-WHERE t1.a NOT IN (SELECT a FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t3.b IS NOT NULL OR t2.a > 10);
-a
-1
-2
-3
-4
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (f1 INT);
-CREATE TABLE t2 (f2 INT);
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2);
-f1
-1
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2 WHERE 1=0);
-f1
-1
-INSERT INTO t2 VALUES (1);
-INSERT INTO t2 VALUES (2);
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2 WHERE f2=0);
-f1
-1
-DROP TABLE t1, t2;
-select 1 from dual where 1 < any (select 2);
-1
-1
-select 1 from dual where 1 < all (select 2);
-1
-1
-select 1 from dual where 2 > any (select 1);
-1
-1
-select 1 from dual where 2 > all (select 1);
-1
-1
-select 1 from dual where 1 < any (select 2 from dual);
-1
-1
-select 1 from dual where 1 < all (select 2 from dual where 1!=1);
-1
-1
-create table t1 (s1 char);
-insert into t1 values (1),(2);
-select * from t1 where (s1 < any (select s1 from t1));
-s1
-1
-select * from t1 where not (s1 < any (select s1 from t1));
-s1
-2
-select * from t1 where (s1 < ALL (select s1+1 from t1));
-s1
-1
-select * from t1 where not(s1 < ALL (select s1+1 from t1));
-s1
-2
-select * from t1 where (s1+1 = ANY (select s1 from t1));
-s1
-1
-select * from t1 where NOT(s1+1 = ANY (select s1 from t1));
-s1
-2
-select * from t1 where (s1 = ALL (select s1/s1 from t1));
-s1
-1
-select * from t1 where NOT(s1 = ALL (select s1/s1 from t1));
-s1
-2
-drop table t1;
-create table t1 (
-retailerID varchar(8) NOT NULL,
-statusID int(10) unsigned NOT NULL,
-changed datetime NOT NULL,
-UNIQUE KEY retailerID (retailerID, statusID, changed)
-);
-INSERT INTO t1 VALUES("0026", "1", "2005-12-06 12:18:56");
-INSERT INTO t1 VALUES("0026", "2", "2006-01-06 12:25:53");
-INSERT INTO t1 VALUES("0037", "1", "2005-12-06 12:18:56");
-INSERT INTO t1 VALUES("0037", "2", "2006-01-06 12:25:53");
-INSERT INTO t1 VALUES("0048", "1", "2006-01-06 12:37:50");
-INSERT INTO t1 VALUES("0059", "1", "2006-01-06 12:37:50");
-select * from t1 r1
-where (r1.retailerID,(r1.changed)) in
-(SELECT r2.retailerId,(max(changed)) from t1 r2
-group by r2.retailerId);
-retailerID statusID changed
-0026 2 2006-01-06 12:25:53
-0037 2 2006-01-06 12:25:53
-0048 1 2006-01-06 12:37:50
-0059 1 2006-01-06 12:37:50
-drop table t1;
-create table t1(a int, primary key (a));
-insert into t1 values (10);
-create table t2 (a int primary key, b varchar(32), c int, unique key b(c, b));
-insert into t2(a, c, b) values (1,10,'359'), (2,10,'35988'), (3,10,'35989');
-explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
-1 PRIMARY r const PRIMARY PRIMARY 4 const 1
-2 SUBQUERY t2 range b b 40 NULL 2 Using where
-SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
-a a b
-10 3 35989
-explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
-1 PRIMARY r const PRIMARY PRIMARY 4 const 1
-2 SUBQUERY t2 range b b 40 NULL 2 Using index condition
-SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
-a a b
-10 1 359
-drop table t1,t2;
-CREATE TABLE t1 (
-field1 int NOT NULL,
-field2 int NOT NULL,
-field3 int NOT NULL,
-PRIMARY KEY (field1,field2,field3)
-);
-CREATE TABLE t2 (
-fieldA int NOT NULL,
-fieldB int NOT NULL,
-PRIMARY KEY (fieldA,fieldB)
-);
-INSERT INTO t1 VALUES
-(1,1,1), (1,1,2), (1,2,1), (1,2,2), (1,2,3), (1,3,1);
-INSERT INTO t2 VALUES (1,1), (1,2), (1,3);
-SELECT field1, field2, COUNT(*)
-FROM t1 GROUP BY field1, field2;
-field1 field2 COUNT(*)
-1 1 2
-1 2 3
-1 3 1
-SELECT field1, field2
-FROM t1
-GROUP BY field1, field2
-HAVING COUNT(*) >= ALL (SELECT fieldB
-FROM t2 WHERE fieldA = field1);
-field1 field2
-1 2
-SELECT field1, field2
-FROM t1
-GROUP BY field1, field2
-HAVING COUNT(*) < ANY (SELECT fieldB
-FROM t2 WHERE fieldA = field1);
-field1 field2
-1 1
-1 3
-DROP TABLE t1, t2;
-CREATE TABLE t1(a int, INDEX (a));
-INSERT INTO t1 VALUES (1), (3), (5), (7);
-INSERT INTO t1 VALUES (NULL);
-CREATE TABLE t2(a int);
-INSERT INTO t2 VALUES (1),(2),(3);
-EXPLAIN SELECT a, a IN (SELECT a FROM t1) FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3
-2 SUBQUERY t1 index_subquery a a 5 func 2 Using index; Full scan on NULL key
-SELECT a, a IN (SELECT a FROM t1) FROM t2;
-a a IN (SELECT a FROM t1)
-1 1
-2 NULL
-3 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES ('1998-09-23'), ('2003-03-25');
-CREATE TABLE t2 AS SELECT
-(SELECT a FROM t1 WHERE a < '2000-01-01') AS sub_a
-FROM t1 WHERE a > '2000-01-01';
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `sub_a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t3 AS (SELECT a FROM t1 WHERE a < '2000-01-01') UNION (SELECT a FROM t1 WHERE a > '2000-01-01');
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) > 0;
-a
-SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) IS NULL;
-a
-1
-2
-EXPLAIN SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (2), (4), (1), (3);
-CREATE TABLE t2 (b int, c int);
-INSERT INTO t2 VALUES
-(2,1), (1,3), (2,1), (4,4), (2,2), (1,4);
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 2 );
-a
-2
-4
-1
-3
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 1);
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 2), a;
-a
-1
-2
-3
-4
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 1), a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT b, MAX(c) FROM t2 GROUP BY b, (SELECT c FROM t2 WHERE b > 2);
-b MAX(c)
-1 4
-2 2
-4 4
-SELECT b, MAX(c) FROM t2 GROUP BY b, (SELECT c FROM t2 WHERE b > 1);
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 2),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-a
-1
-2
-3
-4
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 1),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-a
-4
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b)) > 3;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 2),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b));
-a
-1
-2
-3
-4
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 1),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b));
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b));
-a
-1
-2
-3
-4
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b));
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1,t2;
-create table t1 (df decimal(5,1));
-insert into t1 values(1.1);
-insert into t1 values(2.2);
-select * from t1 where df <= all (select avg(df) from t1 group by df);
-df
-1.1
-select * from t1 where df >= all (select avg(df) from t1 group by df);
-df
-2.2
-drop table t1;
-create table t1 (df decimal(5,1));
-insert into t1 values(1.1);
-select 1.1 * exists(select * from t1);
-1.1 * exists(select * from t1)
-1.1
-drop table t1;
-CREATE TABLE t1 (
-grp int(11) default NULL,
-a decimal(10,2) default NULL);
-insert into t1 values (1, 1), (2, 2), (2, 3), (3, 4), (3, 5), (3, 6), (NULL, NULL);
-select * from t1;
-grp a
-1 1.00
-2 2.00
-2 3.00
-3 4.00
-3 5.00
-3 6.00
-NULL NULL
-select min(a) from t1 group by grp;
-min(a)
-NULL
-1.00
-2.00
-4.00
-drop table t1;
-CREATE table t1 ( c1 integer );
-INSERT INTO t1 VALUES ( 1 );
-INSERT INTO t1 VALUES ( 2 );
-INSERT INTO t1 VALUES ( 3 );
-CREATE TABLE t2 ( c2 integer );
-INSERT INTO t2 VALUES ( 1 );
-INSERT INTO t2 VALUES ( 4 );
-INSERT INTO t2 VALUES ( 5 );
-SELECT * FROM t1 LEFT JOIN t2 ON c1 = c2 WHERE c2 IN (1);
-c1 c2
-1 1
-SELECT * FROM t1 LEFT JOIN t2 ON c1 = c2
-WHERE c2 IN ( SELECT c2 FROM t2 WHERE c2 IN ( 1 ) );
-c1 c2
-1 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 ( c1 integer );
-INSERT INTO t1 VALUES ( 1 );
-INSERT INTO t1 VALUES ( 2 );
-INSERT INTO t1 VALUES ( 3 );
-INSERT INTO t1 VALUES ( 6 );
-CREATE TABLE t2 ( c2 integer );
-INSERT INTO t2 VALUES ( 1 );
-INSERT INTO t2 VALUES ( 4 );
-INSERT INTO t2 VALUES ( 5 );
-INSERT INTO t2 VALUES ( 6 );
-CREATE TABLE t3 ( c3 integer );
-INSERT INTO t3 VALUES ( 7 );
-INSERT INTO t3 VALUES ( 8 );
-SELECT c1,c2 FROM t1 LEFT JOIN t2 ON c1 = c2
-WHERE EXISTS (SELECT c3 FROM t3 WHERE c2 IS NULL );
-c1 c2
-2 NULL
-3 NULL
-DROP TABLE t1,t2,t3;
-CREATE TABLE `t1` (
-`itemid` bigint(20) unsigned NOT NULL auto_increment,
-`sessionid` bigint(20) unsigned default NULL,
-`time` int(10) unsigned NOT NULL default '0',
-`type` set('A','D','E','F','G','I','L','N','U') collate latin1_general_ci NOT
-NULL default '',
-`data` text collate latin1_general_ci NOT NULL,
-PRIMARY KEY (`itemid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t1` VALUES (1, 1, 1, 'D', '');
-CREATE TABLE `t2` (
-`sessionid` bigint(20) unsigned NOT NULL auto_increment,
-`pid` int(10) unsigned NOT NULL default '0',
-`date` int(10) unsigned NOT NULL default '0',
-`ip` varchar(15) collate latin1_general_ci NOT NULL default '',
-PRIMARY KEY (`sessionid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t2` VALUES (1, 1, 1, '10.10.10.1');
-SELECT s.ip, count( e.itemid ) FROM `t1` e JOIN t2 s ON s.sessionid = e.sessionid WHERE e.sessionid = ( SELECT sessionid FROM t2 ORDER BY sessionid DESC LIMIT 1 ) GROUP BY s.ip HAVING count( e.itemid ) >0 LIMIT 0 , 30;
-ip count( e.itemid )
-10.10.10.1 1
-drop tables t1,t2;
-CREATE TABLE t1 (EMPNUM CHAR(3));
-CREATE TABLE t2 (EMPNUM CHAR(3) );
-INSERT INTO t1 VALUES ('E1'),('E2');
-INSERT INTO t2 VALUES ('E1');
-DELETE FROM t1
-WHERE t1.EMPNUM NOT IN
-(SELECT t2.EMPNUM
-FROM t2
-WHERE t1.EMPNUM = t2.EMPNUM);
-select * from t1;
-EMPNUM
-E1
-DROP TABLE t1,t2;
-CREATE TABLE t1(select_id BIGINT, values_id BIGINT);
-INSERT INTO t1 VALUES (1, 1);
-CREATE TABLE t2 (select_id BIGINT, values_id BIGINT,
-PRIMARY KEY(select_id,values_id));
-INSERT INTO t2 VALUES (0, 1), (0, 2), (0, 3), (1, 5);
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id IN (1, 0));
-values_id
-1
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id BETWEEN 0 AND 1);
-values_id
-1
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id = 0 OR select_id = 1);
-values_id
-1
-DROP TABLE t1, t2;
-create table t1 (fld enum('0','1'));
-insert into t1 values ('1');
-select * from (select max(fld) from t1) as foo;
-max(fld)
-1
-drop table t1;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (c int, d int);
-CREATE TABLE t3 (e int);
-INSERT INTO t1 VALUES
-(1,10), (2,10), (1,20), (2,20), (3,20), (2,30), (4,40);
-INSERT INTO t2 VALUES
-(2,10), (2,20), (4,10), (5,10), (3,20), (2,40);
-INSERT INTO t3 VALUES (10), (30), (10), (20) ;
-SELECT a, MAX(b), MIN(b) FROM t1 GROUP BY a;
-a MAX(b) MIN(b)
-1 20 10
-2 30 10
-3 20 20
-4 40 40
-SELECT * FROM t2;
-c d
-2 10
-2 20
-4 10
-5 10
-3 20
-2 40
-SELECT * FROM t3;
-e
-10
-30
-10
-20
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)>20);
-a
-2
-4
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)<d);
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)>d);
-a
-2
-4
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE d >= SOME(SELECT e FROM t3 WHERE MAX(b)=e));
-a
-2
-3
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e <= d));
-a
-2
-3
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE d > SOME(SELECT e FROM t3 WHERE MAX(b)=e));
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e < d));
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE MIN(b) < d AND
-EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e <= d));
-a
-2
-SELECT a, SUM(a) FROM t1 GROUP BY a;
-a SUM(a)
-1 2
-2 6
-3 3
-4 4
-SELECT a FROM t1
-WHERE EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) = c) GROUP BY a;
-a
-3
-4
-SELECT a FROM t1 GROUP BY a
-HAVING EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) = c);
-a
-1
-3
-4
-SELECT a FROM t1
-WHERE a < 3 AND
-EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) != c) GROUP BY a;
-a
-1
-2
-SELECT a FROM t1
-WHERE a < 3 AND
-EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) != c);
-a
-1
-2
-1
-2
-2
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a < ALL(SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING EXISTS(SELECT t3.e FROM t3 GROUP BY t3.e
-HAVING SUM(t1.a+t2.c) < t3.e/4));
-a
-1
-2
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a > ALL(SELECT t2.c FROM t2
-WHERE EXISTS(SELECT t3.e FROM t3 GROUP BY t3.e
-HAVING SUM(t1.a+t2.c) < t3.e/4));
-a
-4
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a > ALL(SELECT t2.c FROM t2
-WHERE EXISTS(SELECT t3.e FROM t3
-WHERE SUM(t1.a+t2.c) < t3.e/4));
-ERROR HY000: Invalid use of group function
-SELECT t1.a from t1 GROUP BY t1.a HAVING AVG(SUM(t1.b)) > 20;
-ERROR HY000: Invalid use of group function
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING AVG(t2.c+SUM(t1.b)) > 20);
-a
-2
-3
-4
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING AVG(SUM(t1.b)) > 20);
-a
-2
-4
-SELECT t1.a, SUM(b) AS sum FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING t2.c+sum > 20);
-a sum
-2 60
-3 20
-4 40
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a varchar(5), b varchar(10));
-INSERT INTO t1 VALUES
-('AAA', 5), ('BBB', 4), ('BBB', 1), ('CCC', 2),
-('CCC', 7), ('AAA', 2), ('AAA', 4), ('BBB', 3), ('AAA', 8);
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-a b
-BBB 4
-CCC 7
-AAA 8
-EXPLAIN
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 9 Using where
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 9 Using temporary
-ALTER TABLE t1 ADD INDEX(a);
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-a b
-BBB 4
-CCC 7
-AAA 8
-EXPLAIN
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 9 Using where
-2 DEPENDENT SUBQUERY t1 index NULL a 8 NULL 1
-DROP TABLE t1;
-create table t1( f1 int,f2 int);
-insert into t1 values (1,1),(2,2);
-select tt.t from (select 'crash1' as t, f2 from t1) as tt left join t1 on tt.t = 'crash2' and tt.f2 = t1.f2 where tt.t = 'crash1';
-t
-crash1
-crash1
-drop table t1;
-create table t1 (c int, key(c));
-insert into t1 values (1142477582), (1142455969);
-create table t2 (a int, b int);
-insert into t2 values (2, 1), (1, 0);
-delete from t1 where c <= 1140006215 and (select b from t2 where a = 2) = 1;
-drop table t1, t2;
-CREATE TABLE t1 (a INT);
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE no_such_column = ANY (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'IN/ALL/ANY subquery'
-CREATE VIEW v2 AS SELECT * FROM t1 WHERE no_such_column = (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'where clause'
-SELECT * FROM t1 WHERE no_such_column = ANY (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'IN/ALL/ANY subquery'
-DROP TABLE t1;
-create table t1 (i int, j bigint);
-insert into t1 values (1, 2), (2, 2), (3, 2);
-select * from (select min(i) from t1 where j=(select * from (select min(j) from t1) t2)) t3;
-min(i)
-1
-drop table t1;
-CREATE TABLE t1 (i BIGINT UNSIGNED);
-INSERT INTO t1 VALUES (10000000000000000000);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (i BIGINT UNSIGNED);
-INSERT INTO t2 VALUES (10000000000000000000);
-INSERT INTO t2 VALUES (1);
-/* simple test */
-SELECT t1.i FROM t1 JOIN t2 ON t1.i = t2.i;
-i
-10000000000000000000
-1
-/* subquery test */
-SELECT t1.i FROM t1 WHERE t1.i = (SELECT MAX(i) FROM t2);
-i
-10000000000000000000
-/* subquery test with cast*/
-SELECT t1.i FROM t1 WHERE t1.i = CAST((SELECT MAX(i) FROM t2) AS UNSIGNED);
-i
-10000000000000000000
-DROP TABLE t1;
-DROP TABLE t2;
-CREATE TABLE t1 (
-id bigint(20) unsigned NOT NULL auto_increment,
-name varchar(255) NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t1 VALUES
-(1, 'Balazs'), (2, 'Joe'), (3, 'Frank');
-CREATE TABLE t2 (
-id bigint(20) unsigned NOT NULL auto_increment,
-mid bigint(20) unsigned NOT NULL,
-date date NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t2 VALUES
-(1, 1, '2006-03-30'), (2, 2, '2006-04-06'), (3, 3, '2006-04-13'),
-(4, 2, '2006-04-20'), (5, 1, '2006-05-01');
-SELECT *,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 0, 1) AS date_last,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 3, 1) AS date_next_to_last
-FROM t1;
-id name date_last date_next_to_last
-1 Balazs 2006-05-01 NULL
-2 Joe 2006-04-20 NULL
-3 Frank 2006-04-13 NULL
-SELECT *,
-(SELECT COUNT(*) FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 1, 1) AS date_count
-FROM t1;
-id name date_count
-1 Balazs NULL
-2 Joe NULL
-3 Frank NULL
-SELECT *,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 0, 1) AS date_last,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 1, 1) AS date_next_to_last
-FROM t1;
-id name date_last date_next_to_last
-1 Balazs 2006-05-01 2006-03-30
-2 Joe 2006-04-20 2006-04-06
-3 Frank 2006-04-13 NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-i1 int(11) NOT NULL default '0',
-i2 int(11) NOT NULL default '0',
-t datetime NOT NULL default '0000-00-00 00:00:00',
-PRIMARY KEY (i1,i2,t)
-);
-INSERT INTO t1 VALUES
-(24,1,'2005-03-03 16:31:31'),(24,1,'2005-05-27 12:40:07'),
-(24,1,'2005-05-27 12:40:08'),(24,1,'2005-05-27 12:40:10'),
-(24,1,'2005-05-27 12:40:25'),(24,1,'2005-05-27 12:40:30'),
-(24,2,'2005-03-03 13:43:05'),(24,2,'2005-03-03 16:23:31'),
-(24,2,'2005-03-03 16:31:30'),(24,2,'2005-05-27 12:37:02'),
-(24,2,'2005-05-27 12:40:06');
-CREATE TABLE t2 (
-i1 int(11) NOT NULL default '0',
-i2 int(11) NOT NULL default '0',
-t datetime default NULL,
-PRIMARY KEY (i1)
-);
-INSERT INTO t2 VALUES (24,1,'2006-06-20 12:29:40');
-EXPLAIN
-SELECT * FROM t1,t2
-WHERE t1.t = (SELECT t1.t FROM t1
-WHERE t1.t < t2.t AND t1.i2=1 AND t2.i1=t1.i1
-ORDER BY t1.t DESC LIMIT 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-1 PRIMARY t1 index NULL PRIMARY 13 NULL 11 Using where; Using index
-2 SUBQUERY t1 range PRIMARY PRIMARY 13 NULL 5 Using where; Using index
-SELECT * FROM t1,t2
-WHERE t1.t = (SELECT t1.t FROM t1
-WHERE t1.t < t2.t AND t1.i2=1 AND t2.i1=t1.i1
-ORDER BY t1.t DESC LIMIT 1);
-i1 i2 t i1 i2 t
-24 1 2005-05-27 12:40:30 24 1 2006-06-20 12:29:40
-DROP TABLE t1, t2;
-CREATE TABLE t1 (i INT);
-(SELECT i FROM t1) UNION (SELECT i FROM t1);
-i
-SELECT sql_no_cache * FROM t1 WHERE NOT EXISTS
-(
-(SELECT i FROM t1) UNION
-(SELECT i FROM t1)
-);
-i
-SELECT * FROM t1
-WHERE NOT EXISTS (((SELECT i FROM t1) UNION (SELECT i FROM t1)));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION (SELECT i FROM t1)))' at line 2
-explain select ((select t11.i from t1 t11) union (select t12.i from t1 t12))
-from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'union (select t12.i from t1 t12))
-from t1' at line 1
-explain select * from t1 where not exists
-((select t11.i from t1 t11) union (select t12.i from t1 t12));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-3 UNION NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(250), b INT auto_increment, PRIMARY KEY (b));
-insert into t1 (a) values (FLOOR(rand() * 100));
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-SELECT a,
-(SELECT REPEAT(' ',250) FROM t1 i1
-WHERE i1.b=t1.a ORDER BY RAND() LIMIT 1) AS a
-FROM t1 ORDER BY a LIMIT 5;
-a a
-0 NULL
-0 NULL
-0 NULL
-0 NULL
-0 NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 values (1);
-INSERT INTO t1 VALUES (1,1),(1,2),(2,3),(3,4);
-SELECT (SELECT COUNT(DISTINCT t1.b) from t2) FROM t1 GROUP BY t1.a;
-(SELECT COUNT(DISTINCT t1.b) from t2)
-2
-1
-1
-SELECT (SELECT COUNT(DISTINCT t1.b) from t2 union select 1 from t2 where 12 < 3)
-FROM t1 GROUP BY t1.a;
-(SELECT COUNT(DISTINCT t1.b) from t2 union select 1 from t2 where 12 < 3)
-2
-1
-1
-SELECT COUNT(DISTINCT t1.b), (SELECT COUNT(DISTINCT t1.b)) FROM t1 GROUP BY t1.a;
-COUNT(DISTINCT t1.b) (SELECT COUNT(DISTINCT t1.b))
-2 2
-1 1
-1 1
-SELECT COUNT(DISTINCT t1.b),
-(SELECT COUNT(DISTINCT t1.b) union select 1 from DUAL where 12 < 3)
-FROM t1 GROUP BY t1.a;
-COUNT(DISTINCT t1.b) (SELECT COUNT(DISTINCT t1.b) union select 1 from DUAL where 12 < 3)
-2 2
-1 1
-1 1
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a;
-(
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-2
-1
-1
-SELECT (
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a LIMIT 1)
-FROM t1 t2
-GROUP BY t2.a;
-(
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a LIMIT 1)
-2
-2
-2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int, PRIMARY KEY (b));
-CREATE TABLE t2 (x int auto_increment, y int, z int,
-PRIMARY KEY (x), FOREIGN KEY (y) REFERENCES t1 (b));
-create table t3 (a int);
-insert into t3 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t1 select RAND()*1000, A.a + 10*(B.a+10*(C.a+10*D.a))
-from t3 A, t3 B, t3 C, t3 D where D.a<3;
-insert into t2(y,z) select t1.b, RAND()*1000 from t1, t3;
-SET SESSION sort_buffer_size = 32 * 1024;
-SELECT SQL_NO_CACHE COUNT(*)
-FROM (SELECT a, b, (SELECT x FROM t2 WHERE y=b ORDER BY z DESC LIMIT 1) c
-FROM t1) t;
-COUNT(*)
-3000
-SET SESSION sort_buffer_size = 8 * 1024 * 1024;
-SELECT SQL_NO_CACHE COUNT(*)
-FROM (SELECT a, b, (SELECT x FROM t2 WHERE y=b ORDER BY z DESC LIMIT 1) c
-FROM t1) t;
-COUNT(*)
-3000
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (id char(4) PRIMARY KEY, c int);
-CREATE TABLE t2 (c int);
-INSERT INTO t1 VALUES ('aa', 1);
-INSERT INTO t2 VALUES (1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT c FROM t2 WHERE c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-INSERT INTO t1 VALUES ('bb', 2), ('cc', 3), ('dd',1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT c FROM t2 WHERE c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-bb 2
-cc 3
-dd 1
-INSERT INTO t2 VALUES (2);
-CREATE TABLE t3 (c int);
-INSERT INTO t3 VALUES (1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT t2.c FROM t2 JOIN t3 ON t2.c=t3.c WHERE t2.c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-bb 2
-cc 3
-dd 1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1(f1 int);
-CREATE TABLE t2(f2 int, f21 int, f3 timestamp);
-INSERT INTO t1 VALUES (1),(1),(2),(2);
-INSERT INTO t2 VALUES (1,1,"2004-02-29 11:11:11"), (2,2,"2004-02-29 11:11:11");
-SELECT ((SELECT f2 FROM t2 WHERE f21=f1 LIMIT 1) * COUNT(f1)) AS sq FROM t1 GROUP BY f1;
-sq
-2
-4
-SELECT (SELECT SUM(1) FROM t2 ttt GROUP BY t2.f3 LIMIT 1) AS tt FROM t2;
-tt
-2
-2
-PREPARE stmt1 FROM 'SELECT ((SELECT f2 FROM t2 WHERE f21=f1 LIMIT 1) * COUNT(f1)) AS sq FROM t1 GROUP BY f1';
-EXECUTE stmt1;
-sq
-2
-4
-EXECUTE stmt1;
-sq
-2
-4
-DEALLOCATE PREPARE stmt1;
-SELECT f2, AVG(f21),
-(SELECT t.f3 FROM t2 AS t WHERE t2.f2=t.f2 AND t.f3=MAX(t2.f3)) AS test
-FROM t2 GROUP BY f2;
-f2 AVG(f21) test
-1 1.0000 2004-02-29 11:11:11
-2 2.0000 2004-02-29 11:11:11
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b INT, c CHAR(10) NOT NULL);
-INSERT INTO t1 VALUES
-(1,1,'a'), (1,2,'b'), (1,3,'c'), (1,4,'d'), (1,5,'e'),
-(2,1,'f'), (2,2,'g'), (2,3,'h'), (3,4,'i'), (3,3,'j'),
-(3,2,'k'), (3,1,'l'), (1,9,'m');
-SELECT a, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b)) AS test
-FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-DROP TABLE IF EXISTS t1xt2;
-CREATE TABLE t1 (
-id_1 int(5) NOT NULL,
-t varchar(4) DEFAULT NULL
-);
-CREATE TABLE t2 (
-id_2 int(5) NOT NULL,
-t varchar(4) DEFAULT NULL
-);
-CREATE TABLE t1xt2 (
-id_1 int(5) NOT NULL,
-id_2 int(5) NOT NULL
-);
-INSERT INTO t1 VALUES (1, 'a'), (2, 'b'), (3, 'c'), (4, 'd');
-INSERT INTO t2 VALUES (2, 'bb'), (3, 'cc'), (4, 'dd'), (12, 'aa');
-INSERT INTO t1xt2 VALUES (2, 2), (3, 3), (4, 4);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 where t1.id_1 = t1xt2.id_1)));
-id_1
-1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 where t1.id_1 = t1xt2.id_1))));
-id_1
-1
-2
-3
-4
-insert INTO t1xt2 VALUES (1, 12);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-2
-3
-4
-insert INTO t1xt2 VALUES (2, 12);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-3
-4
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t1xt2;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (3), (1), (2);
-SELECT 'this is ' 'a test.' AS col1, a AS col2 FROM t1;
-col1 col2
-this is a test. 3
-this is a test. 1
-this is a test. 2
-SELECT * FROM (SELECT 'this is ' 'a test.' AS col1, a AS t2 FROM t1) t;
-col1 t2
-this is a test. 3
-this is a test. 1
-this is a test. 2
-DROP table t1;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (m int, n int);
-INSERT INTO t1 VALUES (2,2), (2,2), (3,3), (3,3), (3,3), (4,4);
-INSERT INTO t2 VALUES (1,11), (2,22), (3,32), (4,44), (4,44);
-SELECT COUNT(*), a,
-(SELECT m FROM t2 WHERE m = count(*) LIMIT 1)
-FROM t1 GROUP BY a;
-COUNT(*) a (SELECT m FROM t2 WHERE m = count(*) LIMIT 1)
-2 2 2
-3 3 3
-1 4 1
-SELECT COUNT(*), a,
-(SELECT MIN(m) FROM t2 WHERE m = count(*))
-FROM t1 GROUP BY a;
-COUNT(*) a (SELECT MIN(m) FROM t2 WHERE m = count(*))
-2 2 2
-3 3 3
-1 4 1
-SELECT COUNT(*), a
-FROM t1 GROUP BY a
-HAVING (SELECT MIN(m) FROM t2 WHERE m = count(*)) > 1;
-COUNT(*) a
-2 2
-3 3
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (m int, n int);
-INSERT INTO t1 VALUES (2,2), (2,2), (3,3), (3,3), (3,3), (4,4);
-INSERT INTO t2 VALUES (1,11), (2,22), (3,32), (4,44), (4,44);
-SELECT COUNT(*) c, a,
-(SELECT GROUP_CONCAT(COUNT(a)) FROM t2 WHERE m = a)
-FROM t1 GROUP BY a;
-c a (SELECT GROUP_CONCAT(COUNT(a)) FROM t2 WHERE m = a)
-2 2 2
-3 3 3
-1 4 1,1
-SELECT COUNT(*) c, a,
-(SELECT GROUP_CONCAT(COUNT(a)+1) FROM t2 WHERE m = a)
-FROM t1 GROUP BY a;
-c a (SELECT GROUP_CONCAT(COUNT(a)+1) FROM t2 WHERE m = a)
-2 2 3
-3 3 4
-1 4 2,2
-DROP table t1,t2;
-CREATE TABLE t1 (a int, b INT, d INT, c CHAR(10) NOT NULL, PRIMARY KEY (a, b));
-INSERT INTO t1 VALUES (1,1,0,'a'), (1,2,0,'b'), (1,3,0,'c'), (1,4,0,'d'),
-(1,5,0,'e'), (2,1,0,'f'), (2,2,0,'g'), (2,3,0,'h'), (3,4,0,'i'), (3,3,0,'j'),
-(3,2,0,'k'), (3,1,0,'l'), (1,9,0,'m'), (1,0,10,'n'), (2,0,5,'o'), (3,0,7,'p');
-SELECT a, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b + 0)) as test
-FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-SELECT a x, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE x=t.a AND t.b=MAX(t1.b + 0)) as test
-FROM t1 GROUP BY a;
-x MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-SELECT a, AVG(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=AVG(t1.b)) AS test
-FROM t1 WHERE t1.d=0 GROUP BY a;
-a AVG(b) test
-1 4.0000 d
-2 2.0000 g
-3 2.5000 NULL
-SELECT tt.a,
-(SELECT (SELECT c FROM t1 as t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1) FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
-FROM t1 as tt;
-a test
-1 n
-1 n
-1 n
-1 n
-1 n
-1 n
-1 n
-2 o
-2 o
-2 o
-2 o
-3 p
-3 p
-3 p
-3 p
-3 p
-SELECT tt.a,
-(SELECT (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1)
-FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
-FROM t1 as tt GROUP BY tt.a;
-a test
-1 n
-2 o
-3 p
-SELECT tt.a, MAX(
-(SELECT (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1)
-FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1)) as test
-FROM t1 as tt GROUP BY tt.a;
-a test
-1 n
-2 o
-3 p
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-a
-1
-2
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-a
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-a
-1
-2
-SET @@sql_mode='ansi';
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-ERROR HY000: Invalid use of group function
-SET @@sql_mode=default;
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 values (1),(1),(1),(1);
-CREATE TABLE t2 (x INT);
-INSERT INTO t1 values (1000),(1001),(1002);
-SELECT SUM( (SELECT COUNT(a) FROM t2) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT SUM( (SELECT SUM(COUNT(a)) FROM t2) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT COUNT(1) FROM DUAL;
-COUNT(1)
-1
-SELECT SUM( (SELECT AVG( (SELECT t1.a FROM t2) ) FROM DUAL) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT
-SUM( (SELECT AVG( (SELECT COUNT(*) FROM t1 t HAVING t1.a < 12) ) FROM t2) )
-FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT t1.a as XXA,
-SUM( (SELECT AVG( (SELECT COUNT(*) FROM t1 t HAVING XXA < 12) ) FROM t2) )
-FROM t1;
-ERROR HY000: Invalid use of group function
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int, KEY (a));
-INSERT INTO t1 VALUES (1,1),(2,1);
-EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT COUNT(*) FROM t1 GROUP BY b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref a a 5 const 1 Using where; Using index
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-DROP TABLE t1;
-CREATE TABLE t1 (id int NOT NULL, st CHAR(2), INDEX idx(id));
-INSERT INTO t1 VALUES
-(3,'FL'), (2,'GA'), (4,'FL'), (1,'GA'), (5,'NY'), (7,'FL'), (6,'NY');
-CREATE TABLE t2 (id int NOT NULL, INDEX idx(id));
-INSERT INTO t2 VALUES (7), (5), (1), (3);
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id);
-id st
-3 FL
-1 GA
-7 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id)
-GROUP BY id;
-id st
-1 GA
-3 FL
-7 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND NOT EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id);
-id st
-2 GA
-4 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND NOT EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id)
-GROUP BY id;
-id st
-2 GA
-4 FL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-EXPLAIN EXTENDED
-SELECT * FROM (SELECT count(*) FROM t1 GROUP BY a) as res;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `res`.`count(*)` AS `count(*)` from (/* select#2 */ select count(0) AS `count(*)` from `test`.`t1` group by `test`.`t1`.`a`) `res`
-DROP TABLE t1;
-CREATE TABLE t1 (
-a varchar(255) default NULL,
-b timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
-INDEX idx(a,b)
-);
-CREATE TABLE t2 (
-a varchar(255) default NULL
-);
-INSERT INTO t1 VALUES ('abcdefghijk','2007-05-07 06:00:24');
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO `t1` VALUES ('asdf','2007-02-08 01:11:26');
-INSERT INTO `t2` VALUES ('abcdefghijk');
-INSERT INTO `t2` VALUES ('asdf');
-SET session sort_buffer_size=8192;
-SELECT (SELECT 1 FROM t1 WHERE t1.a=t2.a ORDER BY t1.b LIMIT 1) AS d1 FROM t2;
-d1
-1
-1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INTEGER, b INTEGER);
-CREATE TABLE t2 (x INTEGER);
-INSERT INTO t1 VALUES (1,11), (2,22), (2,22);
-INSERT INTO t2 VALUES (1), (2);
-SELECT a, COUNT(b), (SELECT COUNT(b) FROM t2) FROM t1 GROUP BY a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a, COUNT(b), (SELECT COUNT(b)+0 FROM t2) FROM t1 GROUP BY a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT SUM(t1.a)/AVG(t2.x) FROM t2) FROM t1;
-(SELECT SUM(t1.a)/AVG(t2.x) FROM t2)
-3.3333
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1, 2), (1,3), (1,4), (2,1), (2,2);
-SELECT a1.a, COUNT(*) FROM t1 a1 WHERE a1.a = 1
-AND EXISTS( SELECT a2.a FROM t1 a2 WHERE a2.a = a1.a)
-GROUP BY a1.a;
-a COUNT(*)
-1 3
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1),(2);
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a=0) FROM t1;
-(SELECT SUM(t1.a) FROM t2 WHERE a=0)
-NULL
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a!=0) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a=1) FROM t1;
-(SELECT SUM(t1.a) FROM t2 WHERE a=1)
-3
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a1 INT, a2 INT);
-CREATE TABLE t2 (b1 INT, b2 INT);
-INSERT INTO t1 VALUES (100, 200);
-INSERT INTO t1 VALUES (101, 201);
-INSERT INTO t2 VALUES (101, 201);
-INSERT INTO t2 VALUES (103, 203);
-SELECT ((a1,a2) IN (SELECT * FROM t2 WHERE b2 > 0)) IS NULL FROM t1;
-((a1,a2) IN (SELECT * FROM t2 WHERE b2 > 0)) IS NULL
-0
-0
-DROP TABLE t1, t2;
-CREATE TABLE t1 (s1 BINARY(5), s2 VARBINARY(5));
-INSERT INTO t1 VALUES (0x41,0x41), (0x42,0x42), (0x43,0x43);
-SELECT s1, s2 FROM t1 WHERE s2 IN (SELECT s1 FROM t1);
-s1 s2
-SELECT s1, s2 FROM t1 WHERE (s2, 10) IN (SELECT s1, 10 FROM t1);
-s1 s2
-CREATE INDEX I1 ON t1 (s1);
-CREATE INDEX I2 ON t1 (s2);
-SELECT s1, s2 FROM t1 WHERE s2 IN (SELECT s1 FROM t1);
-s1 s2
-SELECT s1, s2 FROM t1 WHERE (s2, 10) IN (SELECT s1, 10 FROM t1);
-s1 s2
-TRUNCATE t1;
-INSERT INTO t1 VALUES (0x41,0x41);
-SELECT * FROM t1 WHERE s1 = (SELECT s2 FROM t1);
-s1 s2
-DROP TABLE t1;
-CREATE TABLE t1 (a1 VARBINARY(2) NOT NULL DEFAULT '0', PRIMARY KEY (a1));
-CREATE TABLE t2 (a2 BINARY(2) default '0', INDEX (a2));
-CREATE TABLE t3 (a3 BINARY(2) default '0');
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-INSERT INTO t2 VALUES (1),(2),(3);
-INSERT INTO t3 VALUES (1),(2),(3);
-SELECT LEFT(t2.a2, 1) FROM t2,t3 WHERE t3.a3=t2.a2;
-LEFT(t2.a2, 1)
-1
-2
-3
-SELECT t1.a1, t1.a1 in (SELECT t2.a2 FROM t2,t3 WHERE t3.a3=t2.a2) FROM t1;
-a1 t1.a1 in (SELECT t2.a2 FROM t2,t3 WHERE t3.a3=t2.a2)
-1 0
-2 0
-3 0
-4 0
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a1 BINARY(3) PRIMARY KEY, b1 VARBINARY(3));
-CREATE TABLE t2 (a2 VARBINARY(3) PRIMARY KEY);
-CREATE TABLE t3 (a3 VARBINARY(3) PRIMARY KEY);
-INSERT INTO t1 VALUES (1,10), (2,20), (3,30), (4,40);
-INSERT INTO t2 VALUES (2), (3), (4), (5);
-INSERT INTO t3 VALUES (10), (20), (30);
-SELECT LEFT(t1.a1,1) FROM t1,t3 WHERE t1.b1=t3.a3;
-LEFT(t1.a1,1)
-1
-2
-3
-SELECT a2 FROM t2 WHERE t2.a2 IN (SELECT t1.a1 FROM t1,t3 WHERE t1.b1=t3.a3);
-a2
-DROP TABLE t1, t2, t3;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='semijoin_with_cache=off';
-SET optimizer_switch='materialization=off';
-CREATE TABLE t1 (a CHAR(1), b VARCHAR(10));
-INSERT INTO t1 VALUES ('a', 'aa');
-INSERT INTO t1 VALUES ('a', 'aaa');
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-a b
-CREATE INDEX I1 ON t1 (a);
-CREATE INDEX I2 ON t1 (b);
-EXPLAIN SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL I2 NULL NULL NULL 2 Using where
-1 PRIMARY t1 ref I1 I1 2 test.t1.b 2 Using where; Using index; FirstMatch(t1)
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-a b
-CREATE TABLE t2 (a VARCHAR(1), b VARCHAR(10));
-INSERT INTO t2 SELECT * FROM t1;
-CREATE INDEX I1 ON t2 (a);
-CREATE INDEX I2 ON t2 (b);
-EXPLAIN SELECT a,b FROM t2 WHERE b IN (SELECT a FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL I2 NULL NULL NULL 2 Using where
-1 PRIMARY t2 ref I1 I1 4 test.t2.b 2 Using where; Using index; FirstMatch(t2)
-SELECT a,b FROM t2 WHERE b IN (SELECT a FROM t2);
-a b
-EXPLAIN
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1 WHERE LENGTH(a)<500);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL I2 NULL NULL NULL 2 Using where
-1 PRIMARY t1 ref I1 I1 2 test.t1.b 2 Using where; Using index; FirstMatch(t1)
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1 WHERE LENGTH(a)<500);
-a b
-DROP TABLE t1,t2;
-SET optimizer_switch= @save_optimizer_switch;
-CREATE TABLE t1(a INT, b INT);
-INSERT INTO t1 VALUES (1,1), (1,2), (2,3), (2,4);
-EXPLAIN
-SELECT a AS out_a, MIN(b) FROM t1
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = out_a)
-GROUP BY a;
-ERROR 42S22: Unknown column 'out_a' in 'where clause'
-SELECT a AS out_a, MIN(b) FROM t1
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = out_a)
-GROUP BY a;
-ERROR 42S22: Unknown column 'out_a' in 'where clause'
-EXPLAIN
-SELECT a AS out_a, MIN(b) FROM t1 t1_outer
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = t1_outer.a)
-GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_outer ALL NULL NULL NULL NULL 4 Using where; Using temporary; Using filesort
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 4 Using where
-SELECT a AS out_a, MIN(b) FROM t1 t1_outer
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = t1_outer.a)
-GROUP BY a;
-out_a MIN(b)
-1 2
-2 4
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1),(2);
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a));
-2
-2
-2
-EXPLAIN EXTENDED
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 select 2 AS `2` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`a` = `test`.`t1`.`a`
-EXPLAIN EXTENDED
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a) UNION
-(SELECT 1 FROM t2 WHERE t1.a = t2.a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DEPENDENT UNION t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 2 AS `2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(exists((/* select#2 */ select 1 from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`) union (/* select#3 */ select 1 from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`)))
-DROP TABLE t1,t2;
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(f11 int, f12 int);
-create table t2(f21 int unsigned not null, f22 int, f23 varchar(10));
-insert into t1 values(1,1),(2,2), (3, 3);
-insert ignore into t2
-select -1 , (@a:=(A.a + 10 * (B.a + 10 * (C.a+10*D.a))))/5000 + 1, @a
-from t0 A, t0 B, t0 C, t0 D;
-set session sort_buffer_size= 33*1024;
-select count(*) from t1 where f12 =
-(select f22 from t2 where f22 = f12 order by f21 desc, f22, f23 limit 1);
-count(*)
-3
-drop table t0,t1,t2;
-CREATE TABLE t4 (
-f7 varchar(32) collate utf8_bin NOT NULL default '',
-f10 varchar(32) collate utf8_bin default NULL,
-PRIMARY KEY (f7)
-);
-INSERT INTO t4 VALUES(1,1), (2,null);
-CREATE TABLE t2 (
-f4 varchar(32) collate utf8_bin NOT NULL default '',
-f2 varchar(50) collate utf8_bin default NULL,
-f3 varchar(10) collate utf8_bin default NULL,
-PRIMARY KEY (f4),
-UNIQUE KEY uk1 (f2)
-);
-INSERT INTO t2 VALUES(1,1,null), (2,2,null);
-CREATE TABLE t1 (
-f8 varchar(32) collate utf8_bin NOT NULL default '',
-f1 varchar(10) collate utf8_bin default NULL,
-f9 varchar(32) collate utf8_bin default NULL,
-PRIMARY KEY (f8)
-);
-INSERT INTO t1 VALUES (1,'P',1), (2,'P',1), (3,'R',2);
-CREATE TABLE t3 (
-f6 varchar(32) collate utf8_bin NOT NULL default '',
-f5 varchar(50) collate utf8_bin default NULL,
-PRIMARY KEY (f6)
-);
-INSERT INTO t3 VALUES (1,null), (2,null);
-SELECT
-IF(t1.f1 = 'R', a1.f2, t2.f2) AS a4,
-IF(t1.f1 = 'R', a1.f3, t2.f3) AS f3,
-SUM(
-IF(
-(SELECT VPC.f2
-FROM t2 VPC, t4 a2, t2 a3
-WHERE
-VPC.f4 = a2.f10 AND a3.f2 = a4
-LIMIT 1) IS NULL,
-0,
-t3.f5
-)
-) AS a6
-FROM
-t2, t3, t1 JOIN t2 a1 ON t1.f9 = a1.f4
-GROUP BY a4;
-a4 f3 a6
-1 NULL NULL
-2 NULL NULL
-DROP TABLE t1, t2, t3, t4;
-create table t1 (a float(5,4) zerofill);
-create table t2 (a float(5,4),b float(2,0));
-select t1.a from t1 where
-t1.a= (select b from t2 limit 1) and not
-t1.a= (select a from t2 limit 1) ;
-a
-drop table t1, t2;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=0;
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 WHERE a > 3 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00 Using where; Using temporary
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 0
-SET join_cache_level=@save_join_cache_level;
-DROP TABLE t1;
-#
-# Bug#45061: Incorrectly market field caused wrong result.
-#
-CREATE TABLE `C` (
-`int_nokey` int(11) NOT NULL,
-`int_key` int(11) NOT NULL,
-KEY `int_key` (`int_key`)
-);
-INSERT INTO `C` VALUES (9,9), (0,0), (8,6), (3,6), (7,6), (0,4),
-(1,7), (9,4), (0,8), (9,4), (0,7), (5,5), (0,0), (8,5), (8,7),
-(5,2), (1,8), (7,0), (0,9), (9,5);
-SELECT * FROM C WHERE `int_key` IN (SELECT `int_nokey`);
-int_nokey int_key
-9 9
-0 0
-5 5
-0 0
-EXPLAIN EXTENDED SELECT * FROM C WHERE `int_key` IN (SELECT `int_nokey`);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE C ALL NULL NULL NULL NULL 20 100.00 Using where
-DROP TABLE C;
-# End of test for bug#45061.
-#
-# Bug #46749: Segfault in add_key_fields() with outer subquery level
-# field references
-#
-CREATE TABLE t1 (
-a int,
-b int,
-UNIQUE (a), KEY (b)
-);
-INSERT INTO t1 VALUES (1,1), (2,1);
-CREATE TABLE st1 like t1;
-INSERT INTO st1 VALUES (1,1), (2,1);
-CREATE TABLE st2 like t1;
-INSERT INTO st2 VALUES (1,1), (2,1);
-EXPLAIN
-SELECT MAX(b), (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-FROM t1
-WHERE a = 230;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT MAX(b), (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-FROM t1
-WHERE a = 230;
-MAX(b) (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-NULL NULL
-DROP TABLE t1, st1, st2;
-#
-# Bug #48709: Assertion failed in sql_select.cc:11782:
-# int join_read_key(JOIN_TAB*)
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, int_key int);
-INSERT INTO t1 VALUES (10,1), (14,1);
-CREATE TABLE t2 (pk int PRIMARY KEY, int_key int);
-INSERT INTO t2 VALUES (3,3), (5,NULL), (7,3);
-# should have eq_ref for t1
-EXPLAIN
-SELECT * FROM t2 outr
-WHERE outr.int_key NOT IN (SELECT t1.pk FROM t1, t2)
-ORDER BY outr.pk;
-id select_type table type possible_keys key key_len ref rows Extra
-x x outr ALL x x x x x x
-x x t1 eq_ref x x x x x x
-x x t2 index x x x x x x
-# should not crash on debug binaries
-SELECT * FROM t2 outr
-WHERE outr.int_key NOT IN (SELECT t1.pk FROM t1, t2)
-ORDER BY outr.pk;
-pk int_key
-3 3
-7 3
-DROP TABLE t1,t2;
-#
-# Bug#12329653
-# EXPLAIN, UNION, PREPARED STATEMENT, CRASH, SQL_FULL_GROUP_BY
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-EXPLAIN EXTENDED
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-1
-1
-1
-PREPARE stmt FROM
-'SELECT 1 UNION ALL
-SELECT 1 FROM t1
-ORDER BY
-(SELECT 1 FROM t1 AS t1_0
- WHERE 1 < SOME (SELECT a1 FROM t1)
-)' ;
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-SET SESSION sql_mode=@old_sql_mode;
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2(a1 int);
-INSERT INTO t2 VALUES (3);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2.0 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 'a' FROM t2);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t2);
-1
-1
-1
-SET SESSION sql_mode=@old_sql_mode;
-DROP TABLE t1, t2;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-create table t2(i int);
-insert into t2 values(0);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-CREATE VIEW v1 AS
-SELECT 'f' FROM t2 UNION SELECT 'x' FROM t2
-;
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key)
-);
-SELECT t1.pk
-FROM t1
-WHERE t1.col_varchar_key < ALL ( SELECT * FROM v1 )
-;
-pk
-SET SESSION sql_mode=@old_sql_mode;
-drop table t2, t1;
-drop view v1;
-# End of 5.0 tests.
-create table t_out (subcase char(3),
-a1 char(2), b1 char(2), c1 char(2));
-create table t_in (a2 char(2), b2 char(2), c2 char(2));
-insert into t_out values ('A.1','2a', NULL, '2a');
-insert into t_out values ('A.3', '2a', NULL, '2a');
-insert into t_out values ('A.4', '2a', NULL, 'xx');
-insert into t_out values ('B.1', '2a', '2a', '2a');
-insert into t_out values ('B.2', '2a', '2a', '2a');
-insert into t_out values ('B.3', '3a', 'xx', '3a');
-insert into t_out values ('B.4', 'xx', '3a', '3a');
-insert into t_in values ('1a', '1a', '1a');
-insert into t_in values ('2a', '2a', '2a');
-insert into t_in values (NULL, '2a', '2a');
-insert into t_in values ('3a', NULL, '3a');
-
-Test general IN semantics (not top-level)
-
-case A.1
-select subcase,
-(a1, b1, c1) IN (select * from t_in where a2 = 'no_match') pred_in,
-(a1, b1, c1) NOT IN (select * from t_in where a2 = 'no_match') pred_not_in
-from t_out where subcase = 'A.1';
-subcase pred_in pred_not_in
-A.1 0 1
-case A.2 - impossible
-case A.3
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'A.3';
-subcase pred_in pred_not_in
-A.3 NULL NULL
-case A.4
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'A.4';
-subcase pred_in pred_not_in
-A.4 0 1
-case B.1
-select subcase,
-(a1, b1, c1) IN (select * from t_in where a2 = 'no_match') pred_in,
-(a1, b1, c1) NOT IN (select * from t_in where a2 = 'no_match') pred_not_in
-from t_out where subcase = 'B.1';
-subcase pred_in pred_not_in
-B.1 0 1
-case B.2
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.2';
-subcase pred_in pred_not_in
-B.2 1 0
-case B.3
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.3';
-subcase pred_in pred_not_in
-B.3 NULL NULL
-case B.4
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.4';
-subcase pred_in pred_not_in
-B.4 0 1
-
-Test IN as top-level predicate, and
-as non-top level for cases A.3, B.3 (the only cases with NULL result).
-
-case A.1
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.1' and
-(a1, b1, c1) IN (select * from t_in where a1 = 'no_match');
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.1' and
-(a1, b1, c1) NOT IN (select * from t_in where a1 = 'no_match');
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.1' and
-NOT((a1, b1, c1) IN (select * from t_in where a1 = 'no_match'));
-not_pred_in
-T
-case A.3
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.3' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.3' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.3' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-select case when count(*) > 0 then 'N' else 'wrong result' end as pred_in from t_out
-where subcase = 'A.3' and
-((a1, b1, c1) IN (select * from t_in)) is NULL and
-((a1, b1, c1) NOT IN (select * from t_in)) is NULL;
-pred_in
-N
-case A.4
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.4' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.4' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.4' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-T
-case B.1
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.1' and
-(a1, b1, c1) IN (select * from t_in where a1 = 'no_match');
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.1' and
-(a1, b1, c1) NOT IN (select * from t_in where a1 = 'no_match');
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.1' and
-NOT((a1, b1, c1) IN (select * from t_in where a1 = 'no_match'));
-not_pred_in
-T
-case B.2
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.2' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.2' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.2' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-case B.3
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.3' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.3' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.3' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-select case when count(*) > 0 then 'N' else 'wrong result' end as pred_in from t_out
-where subcase = 'B.3' and
-((a1, b1, c1) IN (select * from t_in)) is NULL and
-((a1, b1, c1) NOT IN (select * from t_in)) is NULL;
-pred_in
-N
-case B.4
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.4' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.4' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.4' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-T
-drop table t_out;
-drop table t_in;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-a
-1
-2
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-a
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-a
-1
-2
-SET @@sql_mode='ansi';
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-ERROR HY000: Invalid use of group function
-SET @@sql_mode=default;
-DROP TABLE t1;
-CREATE TABLE t1 (s1 CHAR(1));
-INSERT INTO t1 VALUES ('a');
-SELECT * FROM t1 WHERE _utf8'a' = ANY (SELECT s1 FROM t1);
-s1
-a
-DROP TABLE t1;
-CREATE TABLE t1(c INT, KEY(c));
-CREATE TABLE t2(a INT, b INT);
-INSERT INTO t2 VALUES (1, 10), (2, NULL);
-INSERT INTO t1 VALUES (1), (3);
-SELECT * FROM t2 WHERE b NOT IN (SELECT max(t.c) FROM t1, t1 t WHERE t.c>10);
-a b
-DROP TABLE t1,t2;
-CREATE TABLE t1(pk INT PRIMARY KEY, a INT, INDEX idx(a));
-INSERT INTO t1 VALUES (1, 10), (3, 30), (2, 20);
-CREATE TABLE t2(pk INT PRIMARY KEY, a INT, b INT, INDEX idxa(a));
-INSERT INTO t2 VALUES (2, 20, 700), (1, 10, 200), (4, 10, 100);
-SELECT * FROM t1
-WHERE EXISTS (SELECT DISTINCT a FROM t2 WHERE t1.a < t2.a ORDER BY b);
-pk a
-1 10
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY (a), KEY b (b));
-INSERT INTO t1 VALUES (1,NULL), (9,NULL);
-CREATE TABLE t2 (
-a INT,
-b INT,
-c INT,
-d INT,
-PRIMARY KEY (a),
-UNIQUE KEY b (b,c,d),
-KEY b_2 (b),
-KEY c (c),
-KEY d (d)
-);
-INSERT INTO t2 VALUES
-(43, 2, 11 ,30),
-(44, 2, 12 ,30),
-(45, 1, 1 ,10000),
-(46, 1, 2 ,10000),
-(556,1, 32 ,10000);
-CREATE TABLE t3 (
-a INT,
-b INT,
-c INT,
-PRIMARY KEY (a),
-UNIQUE KEY b (b,c),
-KEY c (c),
-KEY b_2 (b)
-);
-INSERT INTO t3 VALUES (1,1,1), (2,32,1);
-explain
-SELECT t1.a, (SELECT 1 FROM t2 WHERE t2.b=t3.c AND t2.c=t1.a ORDER BY t2.d LIMIT 1) AS incorrect FROM t1, t3 WHERE t3.b=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 2 Using index
-1 PRIMARY t3 ref b,b_2 b 5 test.t1.a 1 Using index
-2 DEPENDENT SUBQUERY t2 ref b,b_2,c b 10 test.t3.c,test.t1.a 1 Using where; Using index
-SELECT t1.a, (SELECT 1 FROM t2 WHERE t2.b=t3.c AND t2.c=t1.a ORDER BY t2.d LIMIT 1) AS incorrect FROM t1, t3 WHERE t3.b=t1.a;
-a incorrect
-1 1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (id int);
-CREATE TABLE t2 (id int, c int);
-INSERT INTO t1 (id) VALUES (1);
-INSERT INTO t2 (id) VALUES (1);
-INSERT INTO t1 (id) VALUES (1);
-INSERT INTO t2 (id) VALUES (1);
-CREATE VIEW v1 AS
-SELECT t2.c AS c FROM t1, t2
-WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-UPDATE v1 SET c=1;
-CREATE VIEW v2 (a,b) AS
-SELECT t2.id, t2.c AS c FROM t1, t2
-WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-INSERT INTO v2(a,b) VALUES (2,2);
-ERROR 44000: CHECK OPTION failed `test`.`v2`
-SELECT * FROM v1;
-c
-1
-1
-1
-1
-CREATE VIEW v3 AS
-SELECT t2.c AS c FROM t2
-WHERE 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-DELETE FROM v3;
-DROP VIEW v1,v2,v3;
-DROP TABLE t1,t2;
-#
-# BUG#37822 Correlated subquery with IN and IS UNKNOWN provides wrong result
-#
-create table t1(id integer primary key, g integer, v integer, s char(1));
-create table t2(id integer primary key, g integer, v integer, s char(1));
-insert into t1 values
-(10, 10, 10, 'l'),
-(20, 20, 20, 'l'),
-(40, 40, 40, 'l'),
-(41, 40, null, 'l'),
-(50, 50, 50, 'l'),
-(51, 50, null, 'l'),
-(60, 60, 60, 'l'),
-(61, 60, null, 'l'),
-(70, 70, 70, 'l'),
-(90, 90, null, 'l');
-insert into t2 values
-(10, 10, 10, 'r'),
-(30, 30, 30, 'r'),
-(50, 50, 50, 'r'),
-(60, 60, 60, 'r'),
-(61, 60, null, 'r'),
-(70, 70, 70, 'r'),
-(71, 70, null, 'r'),
-(80, 80, 80, 'r'),
-(81, 80, null, 'r'),
-(100,100,null, 'r');
-select *
-from t1
-where v in(select v
-from t2
-where t1.g=t2.g) is unknown;
-id g v s
-51 50 NULL l
-61 60 NULL l
-drop table t1, t2;
-#
-# Bug#37822 Correlated subquery with IN and IS UNKNOWN provides wrong result
-#
-create table t1(id integer primary key, g integer, v integer, s char(1));
-create table t2(id integer primary key, g integer, v integer, s char(1));
-insert into t1 values
-(10, 10, 10, 'l'),
-(20, 20, 20, 'l'),
-(40, 40, 40, 'l'),
-(41, 40, null, 'l'),
-(50, 50, 50, 'l'),
-(51, 50, null, 'l'),
-(60, 60, 60, 'l'),
-(61, 60, null, 'l'),
-(70, 70, 70, 'l'),
-(90, 90, null, 'l');
-insert into t2 values
-(10, 10, 10, 'r'),
-(30, 30, 30, 'r'),
-(50, 50, 50, 'r'),
-(60, 60, 60, 'r'),
-(61, 60, null, 'r'),
-(70, 70, 70, 'r'),
-(71, 70, null, 'r'),
-(80, 80, 80, 'r'),
-(81, 80, null, 'r'),
-(100,100,null, 'r');
-select *
-from t1
-where v in(select v
-from t2
-where t1.g=t2.g) is unknown;
-id g v s
-51 50 NULL l
-61 60 NULL l
-drop table t1, t2;
-#
-# Bug#33204: INTO is allowed in subselect, causing inconsistent results
-#
-CREATE TABLE t1( a INT );
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2( a INT, b INT );
-SELECT *
-FROM (SELECT a INTO @var FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var FROM t1 WHERE a = 2) t1a' at line 2
-SELECT *
-FROM (SELECT a INTO OUTFILE 'file' FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' FROM t1 WHERE a = 2) t1a' at line 2
-SELECT *
-FROM (SELECT a INTO DUMPFILE 'file' FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' FROM t1 WHERE a = 2) t1a' at line 2
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO @var FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO OUTFILE 'file' FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO DUMPFILE 'file' FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (SELECT a FROM t1 WHERE a = 2) t1a;
-a
-2
-SELECT * FROM (
-SELECT a FROM t1 WHERE a = 2
-UNION
-SELECT a FROM t1 WHERE a = 2
-) t1a;
-a
-2
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a FROM t1 WHERE a = 2
-UNION
-SELECT a FROM t1 WHERE a = 2
-) t1a;
-a
-1
-2
-SELECT * FROM ((SELECT 1 a) UNION SELECT 1 a) q;
-a
-1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a)) alias;
-a
-1
-SELECT * FROM (SELECT 1 UNION SELECT 1) t1a;
-1
-1
-SELECT * FROM ((SELECT 1 a INTO @a)) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)) t1a' at line 1
-SELECT * FROM ((SELECT 1 a INTO OUTFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )) t1a' at line 1
-SELECT * FROM ((SELECT 1 a INTO DUMPFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO @a)) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO DUMPFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO OUTFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO @a))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a))) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO DUMPFILE 'file' ))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' ))) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO OUTFILE 'file' ))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' ))) t1a' at line 1
-SELECT * FROM (SELECT 1 a ORDER BY a) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a ORDER BY a) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a LIMIT 1) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a ORDER BY a LIMIT 1) t1a;
-a
-1
-SELECT * FROM t1 JOIN (SELECT 1 UNION SELECT 1) alias ON 1;
-a 1
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 UNION SELECT 1)) ON 1;
-ERROR 42000: Every derived table must have its own alias
-SELECT * FROM t1 JOIN (t1 t1a UNION SELECT 1) ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1) ON 1' at line 1
-SELECT * FROM t1 JOIN ((t1 t1a UNION SELECT 1)) ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1)) ON 1' at line 1
-SELECT * FROM t1 JOIN (t1 t1a) t1a ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a ON 1' at line 1
-SELECT * FROM t1 JOIN ((t1 t1a)) t1a ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a ON 1' at line 1
-SELECT * FROM t1 JOIN (t1 t1a) ON 1;
-a a
-1 1
-2 1
-1 2
-2 2
-SELECT * FROM t1 JOIN ((t1 t1a)) ON 1;
-a a
-1 1
-2 1
-1 2
-2 2
-SELECT * FROM (t1 t1a);
-a
-1
-2
-SELECT * FROM ((t1 t1a));
-a
-1
-2
-SELECT * FROM t1 JOIN (SELECT 1 t1a) alias ON 1;
-a t1a
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 t1a)) alias ON 1;
-a t1a
-1 1
-2 1
-SELECT * FROM t1 JOIN (SELECT 1 a) a ON 1;
-a a
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 a)) a ON 1;
-a a
-1 1
-2 1
-SELECT * FROM (t1 JOIN (SELECT 1) t1a1 ON 1) t1a2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a2' at line 1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 3 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT ( SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT ( SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT a FROM t1 WHERE a = 1 ), a FROM t1;
-( SELECT a FROM t1 WHERE a = 1 ) a
-1 1
-1 2
-SELECT ( SELECT a FROM t1 WHERE a = 1 UNION SELECT 1 ), a FROM t1;
-( SELECT a FROM t1 WHERE a = 1 UNION SELECT 1 ) a
-1 1
-1 2
-SELECT * FROM t2 WHERE (a, b) IN (SELECT a, b FROM t2);
-a b
-SELECT 1 UNION ( SELECT 1 UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-( SELECT 1 UNION SELECT 1 ) UNION SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1' at line 1
-SELECT ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-( SELECT 1 UNION SELECT 1 UNION SELECT 1 )
-1
-SELECT ((SELECT 1 UNION SELECT 1 UNION SELECT 1));
-((SELECT 1 UNION SELECT 1 UNION SELECT 1))
-1
-SELECT * FROM ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: Every derived table must have its own alias
-SELECT * FROM ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 ) a;
-1
-1
-SELECT * FROM ( SELECT 1 UNION SELECT 1 UNION SELECT 1 ) a;
-1
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ALL ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a IN ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE EXISTS ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT EXISTS(SELECT 1+1);
-EXISTS(SELECT 1+1)
-1
-SELECT EXISTS(SELECT 1+1 INTO @test);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @test)' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT * FROM t1 WHERE EXISTS ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a ENUM('rainbow'));
-INSERT INTO t1 VALUES (),(),(),(),();
-SELECT 1 FROM t1 GROUP BY (SELECT 1 FROM t1 ORDER BY AVG(LAST_INSERT_ID()));
-1
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a LONGBLOB);
-INSERT INTO t1 SET a = 'aaaa';
-INSERT INTO t1 SET a = 'aaaa';
-SELECT 1 FROM t1 GROUP BY
-(SELECT LAST_INSERT_ID() FROM t1 ORDER BY MIN(a) ASC LIMIT 1);
-1
-1
-DROP TABLE t1;
-#
-# Bug #49512 : subquery with aggregate function crash
-# subselect_single_select_engine::exec()
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES();
-# should not crash
-SELECT 1 FROM t1 WHERE a <> SOME
-(
-SELECT MAX((SELECT a FROM t1 LIMIT 1)) AS d
-FROM t1,t1 a
-);
-1
-DROP TABLE t1;
-#
-# Bug #45989 take 2 : memory leak after explain encounters an
-# error in the query
-#
-CREATE TABLE t1(a LONGTEXT);
-INSERT INTO t1 VALUES (repeat('a',@@global.max_allowed_packet));
-INSERT INTO t1 VALUES (repeat('b',@@global.max_allowed_packet));
-EXPLAIN EXTENDED SELECT DISTINCT 1 FROM t1,
-(SELECT DISTINCTROW a AS away FROM t1 GROUP BY a WITH ROLLUP) AS d1
-WHERE t1.a = d1.a;
-ERROR 42S22: Unknown column 'd1.a' in 'where clause'
-DROP TABLE t1;
-Set up test tables.
-CREATE TABLE t1 (
-t1_id INT UNSIGNED,
-PRIMARY KEY(t1_id)
-) Engine=MyISAM;
-INSERT INTO t1 (t1_id) VALUES (1), (2), (3), (4), (5);
-CREATE TABLE t2 SELECT * FROM t1;
-CREATE TABLE t3 (
-t3_id INT UNSIGNED AUTO_INCREMENT,
-t1_id INT UNSIGNED,
-amount DECIMAL(16,2),
-PRIMARY KEY(t3_id),
-KEY(t1_id)
-) Engine=MyISAM;
-INSERT INTO t3 (t1_id, t3_id, amount)
-VALUES (1, 1, 100.00), (2, 2, 200.00), (4, 4, 400.00);
-This is the 'inner query' running by itself.
-Produces correct results.
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-SELECT * FROM (the same inner query)
-Produces correct results.
-SELECT * FROM (
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-) AS t;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-Now make t2.t1_id part of a key.
-ALTER TABLE t2 ADD PRIMARY KEY(t1_id);
-Same inner query by itself.
-Still correct results.
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-SELECT * FROM (the same inner query), now with indexes on the LEFT JOIN
-SELECT * FROM (
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-) AS t;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-DROP TABLE t3;
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Bug #52711: Segfault when doing EXPLAIN SELECT with
-# union...order by (select... where...)
-#
-CREATE TABLE t1 (a VARCHAR(10), FULLTEXT KEY a (a));
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1),(2);
-# Should not crash
-EXPLAIN
-SELECT * FROM t2 UNION SELECT * FROM t2
-ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE));
-# Should not crash
-SELECT * FROM t2 UNION SELECT * FROM t2
-ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE));
-DROP TABLE t1,t2;
-#
-# Bug #58818: Incorrect result for IN/ANY subquery
-# with HAVING condition
-#
-CREATE TABLE t1(i INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t1s(i INT);
-INSERT INTO t1s VALUES (10), (20), (30);
-CREATE TABLE t2s(i INT);
-INSERT INTO t2s VALUES (100), (200), (300);
-SELECT * FROM t1
-WHERE t1.i NOT IN
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-);
-i
-1
-2
-3
-SELECT * FROM t1
-WHERE t1.I IN
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-) IS UNKNOWN;
-i
-SELECT * FROM t1
-WHERE NOT t1.I = ANY
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-);
-i
-1
-2
-3
-SELECT * FROM t1
-WHERE t1.i = ANY (
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-) IS UNKNOWN;
-i
-DROP TABLE t1,t1s,t2s;
-# LP BUG#675248 - select->prep_where references on freed memory
-CREATE TABLE t1 (a int, b int);
-insert into t1 values (1,1),(0,0);
-CREATE TABLE t2 (c int);
-insert into t2 values (1),(2);
-prepare stmt1 from "select sum(a),(select sum(c) from t2 where table1.b) as sub
-from t1 as table1 group by sub";
-execute stmt1;
-sum(a) sub
-0 NULL
-1 3
-deallocate prepare stmt1;
-prepare stmt1 from "select sum(a),(select sum(c) from t2 having table1.b) as sub
-from t1 as table1";
-execute stmt1;
-sum(a) sub
-1 3
-deallocate prepare stmt1;
-drop table t1,t2;
-#
-# Bug LP#693935/#58727: Assertion failure with
-# a single row subquery returning more than one row
-#
-create table t1 (a char(1) charset utf8);
-insert into t1 values ('a'), ('b');
-create table t2 (a binary(1));
-insert into t2 values ('x'), ('y');
-select * from t2 where a=(select a from t1) and a='x';
-ERROR 21000: Subquery returns more than 1 row
-drop table t1,t2;
-# End of 5.1 tests
-#
-# Bug #11765713 58705:
-# OPTIMIZER LET ENGINE DEPEND ON UNINITIALIZED VALUES
-# CREATED BY OPT_SUM_QUERY
-#
-CREATE TABLE t1(a INT NOT NULL, KEY (a));
-INSERT INTO t1 VALUES (0), (1);
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1)
-);
-ERROR 21000: Subquery returns more than 1 row
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1 where a is null)
-);
-foo
-DROP TABLE t1;
-#
-# Bug #57704: Cleanup code dies with void TABLE::set_keyread(bool):
-# Assertion `file' failed.
-#
-CREATE TABLE t1 (a INT);
-SELECT 1 FROM
-(SELECT ROW(
-(SELECT 1 FROM t1 RIGHT JOIN
-(SELECT 1 FROM t1, t1 t2) AS d ON 1),
-1) FROM t1) AS e;
-ERROR 21000: Operand should contain 1 column(s)
-DROP TABLE t1;
-#
-# Bug#13721076 CRASH WITH TIME TYPE/TIMESTAMP() AND WARNINGS IN SUBQUERY
-#
-CREATE TABLE t1(a TIME NOT NULL);
-INSERT INTO t1 VALUES ('00:00:32');
-SELECT 1 FROM t1 WHERE a >
-(SELECT timestamp(a) AS a FROM t1);
-1
-DROP TABLE t1;
-#
-# No BUG#, a case brought from 5.2's innodb_mysql_lock.test
-#
-create table t1 (i int not null primary key);
-insert into t1 values (1),(2),(3),(4),(5);
-create table t2 (j int not null primary key);
-insert into t2 values (1),(2),(3),(4),(5);
-create table t3 (k int not null primary key);
-insert into t3 values (1),(2),(3);
-create view v2 as select t2.j as j from t2 where t2.j in (select t1.i from t1);
-select * from t3 where k in (select j from v2);
-k
-1
-2
-3
-drop table t1,t2,t3;
-drop view v2;
-#
-# Bug#52068: Optimizer generates invalid semijoin materialization plan
-#
-drop table if exists ot1, ot2, it1, it2;
-CREATE TABLE ot1(a INTEGER);
-INSERT INTO ot1 VALUES(5), (8);
-CREATE TABLE it2(a INTEGER);
-INSERT INTO it2 VALUES(9), (5), (1), (8);
-CREATE TABLE it3(a INTEGER);
-INSERT INTO it3 VALUES(7), (1), (0), (5), (1), (4);
-CREATE TABLE ot4(a INTEGER);
-INSERT INTO ot4 VALUES(1), (3), (5), (7), (9), (7), (3), (1);
-SELECT * FROM ot1,ot4
-WHERE (ot1.a,ot4.a) IN (SELECT it2.a,it3.a
-FROM it2,it3);
-a a
-5 1
-8 1
-5 5
-8 5
-5 7
-8 7
-5 7
-8 7
-5 1
-8 1
-explain SELECT * FROM ot1,ot4
-WHERE (ot1.a,ot4.a) IN (SELECT it2.a,it3.a
-FROM it2,it3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot1 ALL NULL NULL NULL NULL 2
-1 PRIMARY ot4 ALL NULL NULL NULL NULL 8 Using join buffer (flat, BNL join)
-1 PRIMARY it2 ALL NULL NULL NULL NULL 4 Using where
-1 PRIMARY it3 ALL NULL NULL NULL NULL 6 Using where; FirstMatch(ot4)
-DROP TABLE IF EXISTS ot1, ot4, it2, it3;
-#
-# Bug#729039: NULL keys used to evaluate subquery
-#
-CREATE TABLE t1 (a int) ;
-INSERT INTO t1 VALUES (NULL), (1), (NULL), (2);
-CREATE TABLE t2 (a int, INDEX idx(a)) ;
-INSERT INTO t2 VALUES (NULL), (1), (NULL);
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 USE INDEX () WHERE t2.a = t1.a);
-a
-1
-EXPLAIN
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 USE INDEX() WHERE t2.a = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 WHERE t2.a = t1.a);
-a
-1
-EXPLAIN
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 WHERE t2.a = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index idx idx 5 NULL 3 Using index; LooseScan
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-DROP TABLE t1,t2;
-#
-# BUG#752992: Wrong results for a subquery with 'semijoin=on'
-#
-CREATE TABLE t1 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t1 VALUES (11,0);
-INSERT INTO t1 VALUES (12,5);
-INSERT INTO t1 VALUES (15,0);
-CREATE TABLE t2 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t2 VALUES (11,1);
-INSERT INTO t2 VALUES (12,2);
-INSERT INTO t2 VALUES (15,4);
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=0;
-EXPLAIN SELECT * FROM t1 WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 3
-1 PRIMARY it eq_ref PRIMARY PRIMARY 4 test.t1.pk 1 Using index
-1 PRIMARY t2 index NULL PRIMARY 4 NULL 3 Using index; FirstMatch(it)
-SELECT * FROM t1 WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON 1);
-pk i
-11 0
-12 5
-15 0
-SET join_cache_level=@save_join_cache_level;
-DROP table t1,t2;
-#
-# Bug#751350: crash with pushed condition for outer references when
-# there should be none of such conditions
-#
-CREATE TABLE t1 (a int, b int) ;
-INSERT INTO t1 VALUES (0,0),(0,0);
-set @optimizer_switch_save=@@optimizer_switch;
-set @@optimizer_switch='semijoin=off,materialization=on,in_to_exists=on';
-EXPLAIN
-SELECT b FROM t1
-WHERE ('0') IN ( SELECT a FROM t1 GROUP BY a )
-GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT b FROM t1
-WHERE ('0') IN ( SELECT a FROM t1 GROUP BY a )
-GROUP BY b;
-b
-0
-set @@optimizer_switch=@optimizer_switch_save;
-DROP TABLE t1;
-#
-# Bug #11765713 58705:
-# OPTIMIZER LET ENGINE DEPEND ON UNINITIALIZED VALUES
-# CREATED BY OPT_SUM_QUERY
-#
-CREATE TABLE t1(a INT NOT NULL, KEY (a));
-INSERT INTO t1 VALUES (0), (1);
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1)
-);
-ERROR 21000: Subquery returns more than 1 row
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1 where a is null)
-);
-foo
-DROP TABLE t1;
-CREATE TABLE t1 (a int(11), b varchar(1));
-INSERT INTO t1 VALUES (2,NULL),(5,'d'),(7,'g');
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 );
-a
-5
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 GROUP BY b );
-a
-7
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 );
-a
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
-a
-delete from t1;
-INSERT INTO t1 VALUES (2,NULL),(5,'d'),(7,'g');
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 );
-a
-5
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 GROUP BY b );
-a
-7
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 );
-a
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
-a
-drop table t1;
-#
-# Fix of lp:780386 (NULL left part with empty ALL subquery).
-#
-CREATE TABLE t1 ( f11 int) ;
-INSERT IGNORE INTO t1 VALUES (0),(0);
-CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
-INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
-DROP TABLE IF EXISTS t3;
-Warnings:
-Note 1051 Unknown table 'test.t3'
-CREATE TABLE t3 ( f3 int) ;
-INSERT INTO t3 VALUES (0),(0);
-SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
-r
-NULL
-5
-NULL
-5
-DROP TABLE t1, t2, t3;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2(a1 int);
-INSERT INTO t2 VALUES (3);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2.0 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 'a' FROM t2);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t2);
-1
-1
-1
-SET SESSION sql_mode=@old_sql_mode;
-DROP TABLE t1, t2;
-create table t2(i int);
-insert into t2 values(0);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-CREATE VIEW v1 AS
-SELECT 'f' FROM t2 UNION SELECT 'x' FROM t2
-;
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key)
-);
-SELECT t1.pk
-FROM t1
-WHERE t1.col_varchar_key < ALL ( SELECT * FROM v1 )
-;
-pk
-SET SESSION sql_mode=@old_sql_mode;
-drop table t2, t1;
-drop view v1;
-#
-# BUG#50257: Missing info in REF column of the EXPLAIN
-# lines for subselects
-#
-CREATE TABLE t1 (a INT, b INT, INDEX (a));
-INSERT INTO t1 VALUES (3, 10), (2, 20), (7, 10), (5, 20);
-EXPLAIN SELECT * FROM (SELECT * FROM t1 WHERE a=7) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 5 const 1
-EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 SUBQUERY t1 ref a a 5 const 1 Using index
-DROP TABLE t1;
-#
-# BUG#12616253 - WRONG RESULT WITH EXISTS(SUBQUERY) (MISSING ROWS)
-# (duplicate of LP bug #888456)
-#
-CREATE TABLE t1 (f1 varchar(1));
-INSERT INTO t1 VALUES ('v'),('s');
-CREATE TABLE t2 (f1_key varchar(1), KEY (f1_key));
-INSERT INTO t2 VALUES ('j'),('v'),('c'),('m'),('d'),
-('d'),('y'),('t'),('d'),('s');
-EXPLAIN
-SELECT table1.f1, table2.f1_key FROM t1 AS table1, t2 AS table2
-WHERE EXISTS (SELECT DISTINCT f1_key FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY table1 ALL NULL NULL NULL NULL 2
-1 PRIMARY table2 index NULL f1_key 4 NULL 10 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 index f1_key f1_key 4 NULL 10 Using where; Using index
-SELECT table1.f1, table2.f1_key FROM t1 AS table1, t2 AS table2
-WHERE EXISTS (SELECT DISTINCT f1_key FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1);
-f1 f1_key
-s c
-s d
-s d
-s d
-s j
-s m
-s s
-s t
-s v
-s y
-v c
-v d
-v d
-v d
-v j
-v m
-v s
-v t
-v v
-v y
-DROP TABLE t1,t2;
-#
-# LP bug 919427: EXPLAIN for a query over a single-row table
-# with IN subquery in WHERE condition
-#
-CREATE TABLE ot (
-col_int_nokey int(11),
-col_varchar_nokey varchar(1)
-) ;
-INSERT INTO ot VALUES (1,'x');
-CREATE TABLE it1(
-col_int_key int(11),
-col_varchar_key varchar(1),
-KEY idx_cvk_cik (col_varchar_key,col_int_key)
-);
-INSERT INTO it1 VALUES (NULL,'x'), (NULL,'f');
-CREATE TABLE it2 (
-col_int_key int(11),
-col_varchar_key varchar(1),
-col_varchar_key2 varchar(1),
-KEY idx_cvk_cvk2_cik (col_varchar_key, col_varchar_key2, col_int_key),
-KEY idx_cvk_cik (col_varchar_key, col_int_key)
-);
-INSERT INTO it2 VALUES (NULL,'x','x'), (NULL,'f','f');
-EXPLAIN
-SELECT col_int_nokey FROM ot
-WHERE col_varchar_nokey IN
-(SELECT col_varchar_key FROM it1 WHERE col_int_key IS NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot system NULL NULL NULL NULL 1
-1 PRIMARY it1 ref idx_cvk_cik idx_cvk_cik 9 const,const 1 Using where; Using index; FirstMatch(ot)
-SELECT col_int_nokey FROM ot
-WHERE col_varchar_nokey IN
-(SELECT col_varchar_key FROM it1 WHERE col_int_key IS NULL);
-col_int_nokey
-1
-EXPLAIN
-SELECT col_int_nokey FROM ot
-WHERE (col_varchar_nokey, 'x') IN
-(SELECT col_varchar_key, col_varchar_key2 FROM it2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot system NULL NULL NULL NULL 1
-1 PRIMARY it2 ref idx_cvk_cvk2_cik,idx_cvk_cik idx_cvk_cvk2_cik 8 const,const 1 Using where; Using index; FirstMatch(ot)
-SELECT col_int_nokey FROM ot
-WHERE (col_varchar_nokey, 'x') IN
-(SELECT col_varchar_key, col_varchar_key2 FROM it2);
-col_int_nokey
-1
-DROP TABLE ot,it1,it2;
-#
-# MDEV-746
-# Bug#13651009 WRONG RESULT FROM DERIVED TABLE IF THE SUBQUERY
-# HAS AN EMPTY RESULT
-#
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_int_nokey int NOT NULL,
-col_int_key int NOT NULL,
-col_time_key time NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_time_key (col_time_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-pk int NOT NULL AUTO_INCREMENT,
-col_int_nokey int NOT NULL,
-col_int_key int NOT NULL,
-col_time_key time NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_time_key (col_time_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,4,4,'00:00:00','b','b');
-SET @var2:=4, @var3:=8;
-
-Testcase without inner subquery
-EXPLAIN SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE sq4_alias1 system NULL NULL NULL NULL 0 Const row not found
-SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3;
-@var3:=12 pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-SELECT @var3;
-@var3
-8
-EXPLAIN SELECT * FROM ( SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3 ) AS alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 0 Const row not found
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM ( SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3 ) AS alias3;
-@var3:=12 pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-SELECT @var3;
-@var3
-8
-
-Testcase with inner subquery; crashed WL#6095
-SET @var3=8;
-EXPLAIN SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY c_sq1_alias1 system PRIMARY NULL NULL NULL 1
-SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3));
-pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-EXPLAIN SELECT * FROM ( SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3)) ) AS alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-3 DEPENDENT SUBQUERY c_sq1_alias1 system PRIMARY NULL NULL NULL 1
-SELECT * FROM ( SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3)) ) AS alias3;
-pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-DROP TABLE t1,t2;
-# End of 5.2 tests
-#
-# BUG#779885: Crash in eliminate_item_equal with materialization=on in
-#
-CREATE TABLE t1 ( f1 int );
-INSERT INTO t1 VALUES (19), (20);
-CREATE TABLE t2 ( f10 varchar(32) );
-INSERT INTO t2 VALUES ('c'),('d');
-CREATE TABLE t3 ( f10 varchar(32) );
-INSERT INTO t3 VALUES ('a'),('b');
-SELECT *
-FROM t1
-WHERE
-( 't' ) IN (
-SELECT t3.f10
-FROM t3
-JOIN t2
-ON t2.f10 = t3.f10
-);
-f1
-DROP TABLE t1,t2,t3;
-#
-# BUG lp:813473: Wrong result with outer join + NOT IN subquery
-# This bug is a duplicate of Bug#11764086 whose test case is added below
-#
-CREATE TABLE t1 (c int) ;
-INSERT INTO t1 VALUES (5),(6);
-CREATE TABLE t2 (a int, b int) ;
-INSERT INTO t2 VALUES (20,9),(20,9);
-create table t3 (d int, e int);
-insert into t3 values (2, 9), (3,10);
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-EXPLAIN
-SELECT t2.b , t1.c
-FROM t2 LEFT JOIN t1 ON t1.c < 3
-WHERE (t2.b , t1.c) NOT IN (SELECT * from t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where
-SELECT t2.b , t1.c
-FROM t2 LEFT JOIN t1 ON t1.c < 3
-WHERE (t2.b, t1.c) NOT IN (SELECT * from t3);
-b c
-9 NULL
-9 NULL
-SET optimizer_switch=@save_optimizer_switch;
-drop table t1, t2, t3;
-#
-# BUG#50257: Missing info in REF column of the EXPLAIN
-# lines for subselects
-#
-CREATE TABLE t1 (a INT, b INT, INDEX (a));
-INSERT INTO t1 VALUES (3, 10), (2, 20), (7, 10), (5, 20);
-
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-EXPLAIN SELECT * FROM (SELECT * FROM t1 WHERE a=7) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED t1 ref a a 5 const 1
-set optimizer_switch=@tmp_optimizer_switch;
-
-EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 SUBQUERY t1 ref a a 5 const 1 Using index
-
-DROP TABLE t1;
-#
-# Bug#11764086: Null left operand to NOT IN in WHERE clause
-# behaves differently than real NULL
-#
-CREATE TABLE parent (id int);
-INSERT INTO parent VALUES (1), (2);
-CREATE TABLE child (parent_id int, other int);
-INSERT INTO child VALUES (1,NULL);
-# Offending query (c.parent_id is NULL for null-complemented rows only)
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id NOT IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-);
-id parent_id
-1 1
-2 NULL
-# Some syntactic variations with IS FALSE and IS NOT TRUE
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-) IS NOT TRUE;
-id parent_id
-1 1
-2 NULL
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-) IS FALSE;
-id parent_id
-1 1
-2 NULL
-DROP TABLE parent, child;
-# End of test for bug#11764086.
-#
-# Bug 11765699 - 58690: !TABLE || (!TABLE->READ_SET ||
-# BITMAP_IS_SET(TABLE->READ_SET, FIELD_INDEX
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (0), (1);
-CREATE TABLE t2(
-b TEXT,
-c INT,
-PRIMARY KEY (b(1))
-);
-INSERT INTO t2 VALUES ('a', 2), ('b', 3);
-SELECT 1 FROM t1 WHERE a =
-(SELECT 1 FROM t2 WHERE b =
-(SELECT 1 FROM t1 t11 WHERE c = 1 OR t1.a = 1 AND 1 = 2)
-ORDER BY b
-);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-SELECT 1 FROM t1 WHERE a =
-(SELECT 1 FROM t2 WHERE b =
-(SELECT 1 FROM t1 t11 WHERE c = 1 OR t1.a = 1 AND 1 = 2)
-GROUP BY b
-);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-DROP TABLE t1, t2;
-#
-# BUG#12616253 - WRONG RESULT WITH EXISTS(SUBQUERY) (MISSING ROWS)
-#
-CREATE TABLE t1 (f1 varchar(1));
-INSERT INTO t1 VALUES ('v'),('s');
-CREATE TABLE t2 (f1_key varchar(1), KEY (f1_key));
-INSERT INTO t2 VALUES ('j'),('v'),('c'),('m'),('d'),
-('d'),('y'),('t'),('d'),('s');
-SELECT table1.f1, table2.f1_key
-FROM t1 AS table1, t2 AS table2
-WHERE EXISTS
-(
-SELECT DISTINCT f1_key
-FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1 );
-f1 f1_key
-s c
-s d
-s d
-s d
-s j
-s m
-s s
-s t
-s v
-s y
-v c
-v d
-v d
-v d
-v j
-v m
-v s
-v t
-v v
-v y
-explain SELECT table1.f1, table2.f1_key
-FROM t1 AS table1, t2 AS table2
-WHERE EXISTS
-(
-SELECT DISTINCT f1_key
-FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY table1 ALL NULL NULL NULL NULL 2
-1 PRIMARY table2 index NULL f1_key 4 NULL 10 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 index f1_key f1_key 4 NULL 10 Using where; Using index
-DROP TABLE t1,t2;
-#
-# lp:826279: assertion failure with GROUP BY a result of subquery
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (0), (0);
-CREATE TABLE t2 (a int, b int, c int);
-INSERT INTO t2 VALUES (10,7,0), (0,7,0);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (10,7), (0,7);
-SELECT SUM(DISTINCT b),
-(SELECT t2.a FROM t1 JOIN t2 ON t2.c != 0
-WHERE t.a != 0 AND t2.a != 0)
-FROM (SELECT * FROM t3) AS t
-GROUP BY 2;
-SUM(DISTINCT b) (SELECT t2.a FROM t1 JOIN t2 ON t2.c != 0
-WHERE t.a != 0 AND t2.a != 0)
-7 NULL
-SELECT SUM(DISTINCT b),
-(SELECT t2.a FROM t1,t2 WHERE t.a != 0 or 1=2 LIMIT 1)
-FROM (SELECT * FROM t3) AS t
-GROUP BY 2;
-SUM(DISTINCT b) (SELECT t2.a FROM t1,t2 WHERE t.a != 0 or 1=2 LIMIT 1)
-7 NULL
-7 10
-DROP TABLE t1,t2,t3;
-#
-# Bug#12329653
-# EXPLAIN, UNION, PREPARED STATEMENT, CRASH, SQL_FULL_GROUP_BY
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-1
-1
-1
-PREPARE stmt FROM
-'SELECT 1 UNION ALL
-SELECT 1 FROM t1
-ORDER BY
-(SELECT 1 FROM t1 AS t1_0
- WHERE 1 < SOME (SELECT a1 FROM t1)
-)' ;
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-SET SESSION sql_mode=@old_sql_mode;
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# LP BUG#833777 Performance regression with deeply nested subqueries
-#
-create table t1 (a int not null, b char(10) not null);
-insert into t1 values (1, 'a');
-set @@optimizer_switch='in_to_exists=on,semijoin=off,materialization=off,subquery_cache=off';
-select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1)))))))))))))))))))))))))))));
-a
-1
-set @@optimizer_switch=@subselect_tmp;
-drop table t1;
-#
-# LP BUG#894397 Wrong result with in_to_exists, constant table , semijoin=OFF,materialization=OFF
-#
-CREATE TABLE t1 (a varchar(3));
-INSERT INTO t1 VALUES ('AAA'),('BBB');
-CREATE TABLE t2 (a varchar(3));
-INSERT INTO t2 VALUES ('CCC');
-set @@optimizer_switch='semijoin=off,materialization=off,in_to_exists=on,subquery_cache=off';
-SELECT * FROM t1 WHERE t1.a IN (SELECT t2.a FROM t2 WHERE t2.a < 'ZZZ');
-a
-set @@optimizer_switch=@subselect_tmp;
-drop table t1, t2;
-#
-# LP bug #859375: Assertion `0' failed in st_select_lex_unit::optimize
-# with view , UNION and prepared statement (rewriting fake_select
-# condition).
-#
-CREATE TABLE t1 ( f1 int NOT NULL, f4 varchar(1) NOT NULL) ;
-INSERT INTO t1 VALUES (6,'d'),(7,'y');
-CREATE TABLE t2 ( f1 int NOT NULL, f2 int NOT NULL) ;
-INSERT INTO t2 VALUES (10,7);
-CREATE VIEW v2 AS SELECT * FROM t2;
-PREPARE st1 FROM "
- SELECT *
- FROM t1
- LEFT JOIN v2 ON ( v2.f2 = t1.f1 )
- WHERE v2.f1 NOT IN (
- SELECT 1 UNION
- SELECT 247
- )
-";
-EXECUTE st1;
-f1 f4 f1 f2
-7 y 10 7
-deallocate prepare st1;
-DROP VIEW v2;
-DROP TABLE t1,t2;
-#
-# LP bug #887458 Crash in subselect_union_engine::no_rows with
-# double UNION and join_cache_level=3,8
-# (IN/ALL/ANY optimizations should not be applied to fake_select)
-CREATE TABLE t2 ( a int, b varchar(1)) ;
-INSERT IGNORE INTO t2 VALUES (8,'y'),(8,'y');
-CREATE TABLE t1 ( b varchar(1)) ;
-INSERT IGNORE INTO t1 VALUES (NULL),(NULL);
-set @save_join_cache_level=@@join_cache_level;
-SET SESSION join_cache_level=3;
-SELECT *
-FROM t1, t2
-WHERE t2.b IN (
-SELECT 'm' UNION
-SELECT 'm'
-) OR t1.b <> SOME (
-SELECT 'v' UNION
-SELECT 't'
-);
-b a b
-set @@join_cache_level= @save_join_cache_level;
-drop table t1,t2;
-#
-# LP bug #885162 Got error 124 from storage engine with UNION inside
-# subquery and join_cache_level=3..8
-# (IN/ALL/ANY optimizations should not be applied to fake_select)
-#
-CREATE TABLE t1 (
-f1 varchar(1) DEFAULT NULL
-);
-INSERT INTO t1 VALUES ('c');
-set @save_join_cache_level=@@join_cache_level;
-SET SESSION join_cache_level=8;
-SELECT * FROM t1 WHERE t1.f1 IN ( SELECT 'k' UNION SELECT 'e' );
-f1
-set @@join_cache_level= @save_join_cache_level;
-drop table t1;
-#
-# LP BUG#747278 incorrect values of the NULL (no rows) single
-# row subquery requested via element_index() interface
-#
-CREATE TABLE t1 (f1a int, f1b int) ;
-INSERT IGNORE INTO t1 VALUES (1,1),(2,2);
-CREATE TABLE t2 ( f2 int);
-INSERT IGNORE INTO t2 VALUES (3),(4);
-CREATE TABLE t3 (f3a int default 1, f3b int default 2);
-INSERT INTO t3 VALUES (1,1),(2,2);
-set @old_optimizer_switch = @@session.optimizer_switch;
-set @@optimizer_switch='materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off,subquery_cache=off,semijoin=off';
-SELECT (SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-SELECT (SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-set @@session.optimizer_switch=@old_optimizer_switch;
-SELECT (SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-SELECT (SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-select (null, null) = (null, null);
-(null, null) = (null, null)
-NULL
-SELECT (SELECT f3a, f3a FROM t3 where f3a > 3) = (0, 0);
-(SELECT f3a, f3a FROM t3 where f3a > 3) = (0, 0)
-NULL
-drop tables t1,t2,t3;
-#
-# LP BUG#825051 Wrong result with date/datetime and subquery with GROUP BY and in_to_exists
-#
-CREATE TABLE t1 (a date, KEY (a)) ;
-INSERT INTO t1 VALUES ('2009-01-01'),('2009-02-02');
-set @old_optimizer_switch = @@optimizer_switch;
-SET @@optimizer_switch='semijoin=off,materialization=off,in_to_exists=on,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 4 NULL 2 Using where; Using index
-2 DEPENDENT SUBQUERY t1 index_subquery a a 4 func 2 Using index
-SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-a
-2009-01-01
-2009-02-02
-SET @@optimizer_switch='semijoin=off,materialization=on,in_to_exists=off,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 4 NULL 2 Using where; Using index
-2 MATERIALIZED t1 index NULL a 4 NULL 2 Using index
-SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-a
-2009-01-01
-2009-02-02
-set @@optimizer_switch=@old_optimizer_switch;
-drop table t1;
-#
-# LP BUG#908269 incorrect condition in case of subqueries depending
-# on constant tables
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 ( b INT ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1);
-CREATE TABLE t3 ( c INT );
-INSERT INTO t3 VALUES (4),(5);
-SET optimizer_switch='subquery_cache=off';
-SELECT ( SELECT b FROM t2 WHERE b = a OR EXISTS ( SELECT c FROM t3 WHERE c = b ) ) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR EXISTS ( SELECT c FROM t3 WHERE c = b ) )
-1
-NULL
-SELECT ( SELECT b FROM t2 WHERE b = a OR b * 0) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR b * 0)
-1
-NULL
-SELECT ( SELECT b FROM t2 WHERE b = a OR rand() * 0) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR rand() * 0)
-1
-NULL
-drop table t1,t2,t3;
-set optimizer_switch=@subselect_tmp;
-#
-# LP BUG#905353 Wrong non-empty result with a constant table,
-# aggregate function in subquery, MyISAM or Aria
-#
-CREATE TABLE t1 ( a INT ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1);
-SELECT a FROM t1 WHERE ( SELECT MIN(a) = 100 );
-a
-drop table t1;
-#
-# LP BUG#985667 Wrong result with subquery in SELECT clause, and constant table in
-# main query and implicit grouping
-#
-CREATE TABLE t1 (f1 int) engine=MyISAM;
-INSERT INTO t1 VALUES (7),(8);
-CREATE TABLE t2 (f2 int, f3 varchar(1)) engine=MyISAM;
-INSERT INTO t2 VALUES (3,'f');
-EXPLAIN
-SELECT COUNT(f1), (SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(f1), (SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 NULL
-EXPLAIN
-SELECT COUNT(f1), exists(SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(f1), exists(SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 0
-EXPLAIN
-SELECT COUNT(f1), f2 > ALL (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT COUNT(f1), f2 > ALL (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 1
-EXPLAIN
-SELECT COUNT(f1), f2 IN (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT COUNT(f1), f2 IN (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 0
-drop table t1,t2;
-#
-# LP BUG#1002079 Server crashes in Item_singlerow_subselect::val_int with constant table,
-# HAVING, UNION in subquery
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (7),(0);
-CREATE TABLE t2 (b INT);
-EXPLAIN
-SELECT SUM(a) AS f1, a AS f2 FROM (t1, t2) HAVING f2 >= ALL (SELECT 4 UNION SELECT 5) AND f1 = 7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT SUM(a) AS f1, a AS f2 FROM (t1, t2) HAVING f2 >= ALL (SELECT 4 UNION SELECT 5) AND f1 = 7;
-f1 f2
-drop table t1,t2;
-#
-# LP BUG#1008686 Server crashes in subselect_union_engine::no_rows on SELECT with impossible
-# WHERE and UNION in HAVING
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(7);
-EXPLAIN
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 0 HAVING a NOT IN ( SELECT 2 UNION SELECT 5 ) OR min_a != 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 0 HAVING a NOT IN ( SELECT 2 UNION SELECT 5 ) OR min_a != 1;
-min_a a
-EXPLAIN
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 1=2 HAVING a NOT IN ( SELECT a from t1 UNION select a+1 from t1 ) OR min_a != 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT UNION t1 ALL NULL NULL NULL NULL 2 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 1=2 HAVING a NOT IN ( SELECT a from t1 UNION select a+1 from t1 ) OR min_a != 1;
-min_a a
-drop table t1;
-#
-# MDEV-367: Different results with and without subquery_cache on
-# a query with a constant NOT IN condition
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2),(3);
-set @mdev367_optimizer_switch = @@optimizer_switch;
-set optimizer_switch = 'subquery_cache=on';
-SELECT * FROM t1 WHERE ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) OR a > 100;
-a
-SELECT *, ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) FROM t1;
-a ( 3, 3 ) NOT IN ( SELECT NULL, NULL )
-1 NULL
-2 NULL
-3 NULL
-set optimizer_switch=@mdev367_optimizer_switch;
-set optimizer_switch = 'subquery_cache=off';
-SELECT * FROM t1 WHERE ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) OR a > 100;
-a
-SELECT *, ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) FROM t1;
-a ( 3, 3 ) NOT IN ( SELECT NULL, NULL )
-1 NULL
-2 NULL
-3 NULL
-set optimizer_switch=@mdev367_optimizer_switch;
-DROP TABLE t1;
-#
-# MDEV-521 single value subselect transformation problem
-#
-CREATE TABLE t1 (f1 char(2), PRIMARY KEY (f1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('u1'),('u2');
-SELECT a.* FROM t1 a WHERE ( SELECT EXISTS ( SELECT 1 FROM t1 b WHERE b.f1 = a.f1 ) );
-f1
-u1
-u2
-FLUSH TABLES;
-SELECT a.* FROM t1 a WHERE ( SELECT EXISTS ( SELECT 1 FROM t1 b WHERE b.f1 = a.f1 ) );
-f1
-u1
-u2
-DROP TABLE t1;
-# return optimizer switch changed in the beginning of this test
-set optimizer_switch=@subselect_tmp;
-#
-# lp:944706 Query with impossible or constant subquery in WHERE or HAVING is not
-# precomputed and thus not part of optimization
-#
-CREATE TABLE t1 ( a VARCHAR(16), KEY (a) );
-INSERT INTO t1 VALUES ('Abilene'),('Akron'),('Albany'),('Albuquerque'),('Alexandria'),('Allentown'),
-('Amarillo'),('Anaheim'),('Anchorage'),('Ann Arbor'),('Arden-Arcade');
-EXPLAIN
-SELECT MAX( alias2.a ) AS field
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR alias1.a = 'y'
-HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible HAVING
-2 SUBQUERY t1 index_subquery a a 19 const 1 Using index; Using where
-SELECT MAX( alias2.a ) AS field
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR alias1.a = 'y'
-HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
-field
-EXPLAIN
-SELECT MAX( alias2.a )
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 index a a 19 NULL 11 Using where; Using index
-1 PRIMARY alias2 ref a a 19 test.alias1.a 2 Using index
-1 PRIMARY alias3 index NULL a 19 NULL 11 Using index; Using join buffer (flat, BNL join)
-2 SUBQUERY t1 index_subquery a a 19 const 1 Using index; Using where
-SELECT MAX( alias2.a )
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
-MAX( alias2.a )
-Arden-Arcade
-drop table t1;
-#
-# MDEV-277 CHEAP SQ: Server crashes in st_join_table::get_examined_rows
-# with semijoin+materialization, IN and = subqueries
-#
-CREATE TABLE t1 (a1 INT);
-INSERT INTO t1 VALUES (4),(6);
-CREATE TABLE t2 (b1 INT);
-INSERT INTO t2 VALUES (1),(7);
-EXPLAIN
-SELECT * FROM t1
-WHERE a1 = (SELECT COUNT(*) FROM t1 WHERE a1 IN (SELECT a1 FROM t1, t2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where; Start temporary; Using join buffer (flat, BNL join)
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 End temporary; Using join buffer (flat, BNL join)
-SELECT * FROM t1
-WHERE a1 = (SELECT COUNT(*) FROM t1 WHERE a1 IN (SELECT a1 FROM t1, t2));
-a1
-drop table t1, t2;
-#
-# MDEV-287 CHEAP SQ: A query with subquery in SELECT list, EXISTS,
-# inner joins takes hundreds times longer
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(7);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (4),(5);
-CREATE TABLE t3 (c INT);
-INSERT INTO t3 VALUES (8),(3);
-set @@expensive_subquery_limit= 0;
-EXPLAIN
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 2
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 PRIMARY alias3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-flush status;
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-(SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 2
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 8
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 22
-set @@expensive_subquery_limit= default;
-EXPLAIN
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 2
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 PRIMARY alias3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-flush status;
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-(SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 16
-drop table t1, t2, t3;
-#
-# MDEV-288 CHEAP SQ: Valgrind warnings "Memory lost" with IN and EXISTS nested subquery, materialization+semijoin
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0),(8);
-CREATE TABLE t2 (b INT PRIMARY KEY);
-INSERT INTO t2 VALUES (1),(2);
-EXPLAIN
-SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-3 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
-a
-drop table t1,t2;
-#
-# MDEV-410: EXPLAIN shows type=range, while SHOW EXPLAIN and userstat show full table scan is used
-#
-CREATE TABLE t1 (a VARCHAR(3) PRIMARY KEY) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('USA');
-CREATE TABLE t2 (b INT, c VARCHAR(52), KEY(b)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3813,'United States'),(3940,'Russia');
-CREATE TABLE t3 (d INT, KEY(d)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (12),(22),(9),(45);
-create table t4 like t3;
-insert into t4 select * from t3;
-# This should not show range access for table t2
-explain
-SELECT MIN(b) FROM ( SELECT * FROM t1, t2, t3 WHERE d = b ) AS alias1
-WHERE SLEEP(0.1) OR c < 'p' OR b = ( SELECT MIN(b) FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL b NULL NULL NULL 2 Using where
-1 PRIMARY t3 ref d d 5 test.t2.b 2 Using where; Using index
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-set @tmp_mdev410=@@global.userstat;
-set global userstat=on;
-flush table_statistics;
-flush index_statistics;
-SELECT MIN(b) FROM ( SELECT * FROM t1, t2, t3 WHERE d = b ) AS alias1
-WHERE SLEEP(0.1) OR c < 'p' OR b = ( SELECT MIN(b) FROM t2 );
-MIN(b)
-NULL
-# The following shows that t2 was indeed scanned with a full scan.
-show table_statistics;
-Table_schema Table_name Rows_read Rows_changed Rows_changed_x_#indexes
-test t1 2 0 0
-test t2 3 0 0
-show index_statistics;
-Table_schema Table_name Index_name Rows_read
-test t2 b 1
-set global userstat=@tmp_mdev410;
-DROP TABLE t1,t2,t3,t4;
-#
-# MDEV-430: Server crashes in select_describe on EXPLAIN with
-# materialization+semijoin, 2 nested subqueries, aggregate functions
-#
-CREATE TABLE t1 (a INT, KEY(a));
-INSERT INTO t1 VALUES (1),(8);
-CREATE TABLE t2 (b INT, KEY(b));
-INSERT INTO t2 VALUES (45),(17),(20);
-EXPLAIN SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t1, t2 WHERE b = a GROUP BY a HAVING a <> 1 ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 range a a 5 NULL 2 Using where; Using index
-2 SUBQUERY t2 ref b b 5 test.t1.a 2 Using index
-DROP TABLE t1,t2;
-#
-# MDEV-435: Expensive subqueries may be evaluated during optimization in merge_key_fields
-#
-CREATE TABLE t1 (a INT, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (8),(0);
-CREATE TABLE t2 (b INT, c VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (4,'j'),(6,'v');
-CREATE TABLE t3 (d VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('b'),('c');
-EXPLAIN
-SELECT * FROM t1
-WHERE a = (SELECT MAX(b) FROM t2 WHERE c IN (SELECT MAX(d) FROM t3)) OR a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index a a 5 NULL 2 Using where; Using index
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1
-WHERE a = (SELECT MAX(b) FROM t2 WHERE c IN (SELECT MAX(d) FROM t3)) OR a = 10;
-a
-drop table t1, t2, t3;
-#
-# MDEV-405: Server crashes in test_if_skip_sort_order on EXPLAIN with GROUP BY and HAVING in EXISTS subquery
-#
-CREATE TABLE t1 (a INT, KEY(a));
-INSERT INTO t1 VALUES (1),(8);
-CREATE TABLE t2 (b INT, KEY(b));
-INSERT INTO t2 VALUES (45),(17),(20);
-EXPLAIN SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t1, t2 WHERE b = a GROUP BY a HAVING a <> 1 ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 range a a 5 NULL 2 Using where; Using index
-2 SUBQUERY t2 ref b b 5 test.t1.a 2 Using index
-DROP TABLE t1,t2;
-#
-# MDEV-5991: crash in Item_field::used_tables
-#
-create table t1 (c int);
-select exists(select 1 from t1 group by `c` in (select `c` from t1));
-exists(select 1 from t1 group by `c` in (select `c` from t1))
-0
-drop table t1;
-#
-# MDEV-7565: Server crash with Signal 6 (part 2)
-#
-Select
-(Select Sum(`TestCase`.Revenue) From mysql.slow_log E
-Where TestCase.TemplateID not in (Select 1 from mysql.slow_log where 2=2)
-) As `ControlRev`
-From
-(Select 3 as Revenue, 4 as TemplateID) As `TestCase`
-Group By TestCase.Revenue, TestCase.TemplateID;
-ControlRev
-NULL
-#
-# MDEV-7445:Server crash with Signal 6
-#
-CREATE PROCEDURE procedure2()
-BEGIN
-Select
-(Select Sum(`TestCase`.Revenue) From mysql.slow_log E
-Where TestCase.TemplateID not in (Select 1 from mysql.slow_log where 2=2)
-) As `ControlRev`
- From
-(Select 3 as Revenue, 4 as TemplateID) As `TestCase`
-Group By TestCase.Revenue, TestCase.TemplateID;
-END |
-call procedure2();
-ControlRev
-NULL
-call procedure2();
-ControlRev
-NULL
-drop procedure procedure2;
-SELECT
-(SELECT user FROM mysql.user
-WHERE h.host in (SELECT host FROM mysql.user)
-) AS sq
-FROM mysql.host h GROUP BY h.host;
-sq
-#
-# MDEV-7846:Server crashes in Item_subselect::fix
-#_fields or fails with Thread stack overrun
-#
-CREATE TABLE t1 (column1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3),(9);
-CREATE TABLE t2 (column2 INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1),(4);
-CREATE TABLE t3 (column3 INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (6),(8);
-CREATE TABLE t4 (column4 INT) ENGINE=MyISAM;
-INSERT INTO t4 VALUES (2),(5);
-PREPARE stmt FROM "
-SELECT (
- SELECT MAX( table1.column1 ) AS field1
- FROM t1 AS table1
- WHERE table3.column3 IN ( SELECT table2.column2 AS field2 FROM t2 AS table2 )
-) AS sq
-FROM t3 AS table3, t4 AS table4 GROUP BY sq
-";
-EXECUTE stmt;
-sq
-NULL
-EXECUTE stmt;
-sq
-NULL
-deallocate prepare stmt;
-drop table t1,t2,t3,t4;
-#
-# MDEV-7122
-# Assertion `0' failed in subselect_hash_sj_engine::init
-#
-SET SESSION big_tables=1;
-CREATE TABLE t1(a char(255) DEFAULT '', KEY(a(10))) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES(0),(0),(0);
-SELECT * FROM t1 WHERE a IN(SELECT MIN(a) FROM t1);
-a
-0
-0
-0
-DROP TABLE t1;
-SET SESSION big_tables=0;
-#
-# MDEV-10776: Server crash on query
-#
-create table t1 (field1 int);
-insert into t1 values (1);
-select round((select 1 from t1 limit 1))
-from t1
-group by round((select 1 from t1 limit 1));
-round((select 1 from t1 limit 1))
-1
-drop table t1;
-#
-# MDEV-7930: Assertion `table_share->tmp_table != NO_TMP_TABLE ||
-# m_lock_type != 2' failed in handler::ha_index_read_map
-#
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 INT, KEY(f2));
-INSERT INTO t2 VALUES (3);
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2;
-SELECT ( SELECT MIN(t2.f2) FROM t1 ) AS sq FROM t2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT ( SELECT MIN(v2.f2) FROM t1 ) AS sq FROM v2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT * FROM v2 where ( SELECT MIN(v2.f2) FROM t1 ) > 0;
-f2
-3
-SELECT count(*) FROM v2 group by ( SELECT MIN(v2.f2) FROM t1 );
-count(*)
-1
-delete from t1;
-SELECT ( SELECT MIN(t2.f2) FROM t1 ) AS sq FROM t2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT ( SELECT MIN(v2.f2) FROM t1 ) AS sq FROM v2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-drop view v2;
-drop table t1,t2;
-#
-# MDEV-10386 Assertion `fixed == 1' failed in virtual String* Item_func_conv_charset::val_str(String*)
-#
-CREATE TABLE t1 (f1 CHAR(3) CHARACTER SET utf8 NULL, f2 CHAR(3) CHARACTER SET latin1 NULL);
-INSERT INTO t1 VALUES ('foo','bar');
-SELECT * FROM t1 WHERE f2 >= SOME ( SELECT f1 FROM t1 );
-f1 f2
-SELECT * FROM t1 WHERE f2 <= SOME ( SELECT f1 FROM t1 );
-f1 f2
-foo bar
-DROP TABLE t1;
-#
-# MDEV-10146: Wrong result (or questionable result and behavior)
-# with aggregate function in uncorrelated SELECT subquery
-#
-CREATE TABLE t1 (f1 INT);
-CREATE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 int);
-INSERT INTO t2 VALUES (3);
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM t1;
-( SELECT MAX(f1) FROM t2 )
-2
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM v1;
-( SELECT MAX(f1) FROM t2 )
-2
-INSERT INTO t2 VALUES (4);
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM v1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-drop view v1;
-drop table t1,t2;
-CREATE TABLE t1 (f1 INT, KEY(f1)) ENGINE=MyISAM;
-INSERT t1 VALUES (4),(8);
-CREATE TABLE t2 (f2 INT, KEY(f2)) ENGINE=MyISAM;
-INSERT t2 VALUES (6);
-SELECT (SELECT MAX(sq.f2) FROM t1) FROM (SELECT * FROM t2) AS sq WHERE f2 = 2;
-(SELECT MAX(sq.f2) FROM t1)
-NULL
-#
-# Disable this query till MDEV-13399 is resolved
-#
-# INSERT t2 VALUES (9);
-# --error ER_SUBQUERY_NO_1_ROW
-# SELECT (SELECT MAX(sq.f2) FROM t1) FROM (SELECT * FROM t2) AS sq WHERE f2 = 2;
-#
-drop table t1, t2;
-#
-# MDEV-13933: Wrong results in COUNT() query with EXISTS and exists_to_in
-# (5.5 test)
-#
-SET @optimiser_switch_save= @@optimizer_switch;
-CREATE TABLE t1 (a INT NOT NULL);
-INSERT INTO t1 VALUES (1),(1),(1),(5),(5);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (5),(1);
-CREATE TABLE t3 (c INT, KEY(c));
-INSERT INTO t3 VALUES (5),(5);
-SET optimizer_switch='semijoin=on';
-select t1.a from t1 where t1.a in (select `test`.`t2`.`b` from `test`.`t2`)
-and t1.a in (select `test`.`t3`.`c` from `test`.`t3`);
-a
-5
-5
-SET optimizer_switch='semijoin=off';
-select t1.a from t1 where t1.a in (select `test`.`t2`.`b` from `test`.`t2`)
-and t1.a in (select `test`.`t3`.`c` from `test`.`t3`);
-a
-5
-5
-SET @@optimizer_switch= @optimiser_switch_save;
-DROP TABLE t1, t2, t3;
-End of 5.5 tests
-# End of 10.0 tests
-#
-# MDEV-9487: Server crashes in Time_and_counter_tracker::incr_loops
-# with UNION in ALL subquery
-#
-SET NAMES utf8;
-CREATE TABLE t1 (f VARCHAR(8)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo');
-SELECT f FROM t1 WHERE f > ALL ( SELECT 'bar' UNION SELECT 'baz' );
-f
-foo
-SELECT f FROM t1 WHERE f > ALL ( SELECT 'bar');
-f
-foo
-drop table t1;
-SET NAMES default;
-#
-# MDEV-10045: Server crashes in Time_and_counter_tracker::incr_loops
-#
-SET NAMES utf8;
-CREATE TABLE t1 (f1 VARCHAR(3), f2 INT UNSIGNED) ENGINE=MyISAM;
-CREATE TABLE t2 (f3 INT) ENGINE=MyISAM;
-SELECT * FROM t1, t2 WHERE f3 = f2 AND f1 > ANY ( SELECT 'foo' UNION SELECT 'bar' );
-f1 f2 f3
-SELECT * FROM t1, t2 WHERE f3 = f2 AND f1 > ANY ( SELECT 'foo');
-f1 f2 f3
-DROP TABLE t1, t2;
-SET NAMES default;
-# End of 10.1 tests
-#
-# MDEV-12564: IN TO EXISTS transformation for rows after
-# conversion an outer join to inner join
-#
-CREATE TABLE t (
-pk int PRIMARY KEY, i int NOT NULL, c varchar(8), KEY(c)
-) ENGINE=MyISAM;
-INSERT INTO t VALUES (1,10,'foo'),(2,20,'bar');
-SELECT * FROM t t1 RIGHT JOIN t t2 ON (t2.pk = t1.pk)
-WHERE (t2.i, t2.pk) NOT IN ( SELECT t3.i, t3.i FROM t t3, t t4 ) AND t1.c = 'foo';
-pk i c pk i c
-1 10 foo 1 10 foo
-DROP TABLE t;
-# End of 10.2 tests
-set optimizer_switch=default;
-select @@optimizer_switch like '%materialization=on%';
-@@optimizer_switch like '%materialization=on%'
-1
-set @join_cache_level_for_subselect_test=NULL;
diff --git a/mysql-test/r/subselect_no_opts.result b/mysql-test/r/subselect_no_opts.result
deleted file mode 100644
index de075d3245f..00000000000
--- a/mysql-test/r/subselect_no_opts.result
+++ /dev/null
@@ -1,7277 +0,0 @@
-set @optimizer_switch_for_subselect_test='materialization=off,semijoin=off,subquery_cache=off,mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set join_cache_level=1;
-set @join_cache_level_for_subselect_test=@@join_cache_level;
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t11,t12;
-drop view if exists v2;
-call mtr.add_suppression("Sort aborted.*");
-set @subselect_tmp=@@optimizer_switch;
-set @@optimizer_switch=ifnull(@optimizer_switch_for_subselect_test,
-"semijoin=on,firstmatch=on,loosescan=on,semijoin_with_cache=on,partial_match_rowid_merge=off,partial_match_table_scan=off");
-set join_cache_level=@join_cache_level_for_subselect_test;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-select (select 2);
-(select 2)
-2
-explain extended select (select 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select 2 AS `(select 2)`
-SELECT (SELECT 1) UNION SELECT (SELECT 2);
-(SELECT 1)
-1
-2
-explain extended SELECT (SELECT 1) UNION SELECT (SELECT 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1249 Select 4 was reduced during optimization
-Note 1003 /* select#1 */ select 1 AS `(SELECT 1)` union /* select#3 */ select 2 AS `(SELECT 2)`
-SELECT (SELECT (SELECT 0 UNION SELECT 0));
-(SELECT (SELECT 0 UNION SELECT 0))
-0
-explain extended SELECT (SELECT (SELECT 0 UNION SELECT 0));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 /* select#1 */ select (/* select#3 */ select 0 union /* select#4 */ select 0) AS `(SELECT (SELECT 0 UNION SELECT 0))`
-SELECT (SELECT 1 FROM (SELECT 1) as b HAVING a=1) as a;
-ERROR 42S22: Reference 'a' not supported (forward reference in item list)
-SELECT (SELECT 1 FROM (SELECT 1) as b HAVING b=1) as a,(SELECT 1 FROM (SELECT 1) as c HAVING a=1) as b;
-ERROR 42S22: Reference 'b' not supported (forward reference in item list)
-SELECT (SELECT 1),MAX(1) FROM (SELECT 1) as a;
-(SELECT 1) MAX(1)
-1 1
-SELECT (SELECT a) as a;
-ERROR 42S22: Reference 'a' not supported (forward reference in item list)
-EXPLAIN EXTENDED SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 1 100.00
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1276 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
-Note 1276 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 1 AS `1` from dual having (/* select#3 */ select 1) = 1
-SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
-1
-1
-SELECT (SELECT 1), a;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT 1 as a FROM (SELECT 1) as b HAVING (SELECT a)=1;
-a
-1
-SELECT 1 FROM (SELECT (SELECT a) b) c;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT * FROM (SELECT 1 as id) b WHERE id IN (SELECT * FROM (SELECT 1 as id) c ORDER BY id);
-id
-1
-SELECT * FROM (SELECT 1) a WHERE 1 IN (SELECT 1,1);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT 1 IN (SELECT 1);
-1 IN (SELECT 1)
-1
-SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
-1
-1
-select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE(1))' at line 1
-SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1))' at line 1
-SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT (SELECT 1,2,3) = ROW(1,2,3);
-(SELECT 1,2,3) = ROW(1,2,3)
-1
-SELECT (SELECT 1,2,3) = ROW(1,2,1);
-(SELECT 1,2,3) = ROW(1,2,1)
-0
-SELECT (SELECT 1,2,3) < ROW(1,2,1);
-(SELECT 1,2,3) < ROW(1,2,1)
-0
-SELECT (SELECT 1,2,3) > ROW(1,2,1);
-(SELECT 1,2,3) > ROW(1,2,1)
-1
-SELECT (SELECT 1,2,3) = ROW(1,2,NULL);
-(SELECT 1,2,3) = ROW(1,2,NULL)
-NULL
-SELECT ROW(1,2,3) = (SELECT 1,2,3);
-ROW(1,2,3) = (SELECT 1,2,3)
-1
-SELECT ROW(1,2,3) = (SELECT 1,2,1);
-ROW(1,2,3) = (SELECT 1,2,1)
-0
-SELECT ROW(1,2,3) < (SELECT 1,2,1);
-ROW(1,2,3) < (SELECT 1,2,1)
-0
-SELECT ROW(1,2,3) > (SELECT 1,2,1);
-ROW(1,2,3) > (SELECT 1,2,1)
-1
-SELECT ROW(1,2,3) = (SELECT 1,2,NULL);
-ROW(1,2,3) = (SELECT 1,2,NULL)
-NULL
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,2,'a');
-(SELECT 1.5,2,'a') = ROW(1.5,2,'a')
-1
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,2,'b');
-(SELECT 1.5,2,'a') = ROW(1.5,2,'b')
-0
-SELECT (SELECT 1.5,2,'a') = ROW('1.5b',2,'b');
-(SELECT 1.5,2,'a') = ROW('1.5b',2,'b')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1.5b'
-SELECT (SELECT 'b',2,'a') = ROW(1.5,2,'a');
-(SELECT 'b',2,'a') = ROW(1.5,2,'a')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,'2','a');
-(SELECT 1.5,2,'a') = ROW(1.5,'2','a')
-1
-SELECT (SELECT 1.5,'c','a') = ROW(1.5,2,'a');
-(SELECT 1.5,'c','a') = ROW(1.5,2,'a')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-SELECT (SELECT * FROM (SELECT 'test' a,'test' b) a);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT 1 as a,(SELECT a+a) b,(SELECT b);
-a b (SELECT b)
-1 2 2
-create table t1 (a int);
-create table t2 (a int, b int);
-create table t3 (a int);
-create table t4 (a int not null, b int not null);
-insert into t1 values (2);
-insert into t2 values (1,7),(2,7);
-insert into t4 values (4,8),(3,8),(5,9);
-select (select a from t1 where t1.a = a1) as a2, (select b from t2 where t2.b=a2) as a1;
-ERROR 42S22: Reference 'a1' not supported (forward reference in item list)
-select (select a from t1 where t1.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a) a
-NULL 1
-2 2
-select (select a from t1 where t1.a=t2.b), a from t2;
-(select a from t1 where t1.a=t2.b) a
-NULL 1
-NULL 2
-select (select a from t1), a, (select 1 union select 2 limit 1) from t2;
-(select a from t1) a (select 1 union select 2 limit 1)
-2 1 1
-2 2 1
-select (select a from t3), a from t2;
-(select a from t3) a
-NULL 1
-NULL 2
-select * from t2 where t2.a=(select a from t1);
-a b
-2 7
-insert into t3 values (6),(7),(3);
-select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1);
-a b
-1 7
-2 7
-(select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 order by a limit 2) limit 3;
-a b
-1 7
-2 7
-3 8
-(select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 where t4.b=(select max(t2.a)*4 from t2) order by a);
-a b
-1 7
-2 7
-4 8
-3 8
-explain extended (select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 where t4.b=(select max(t2.a)*4 from t2) order by a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-3 UNION t4 ALL NULL NULL NULL NULL 3 100.00 Using where
-4 SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00
-NULL UNION RESULT <union1,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 (/* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`b` = (/* select#2 */ select `test`.`t3`.`a` from `test`.`t3` order by 1 desc limit 1)) union (/* select#3 */ select `test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b` from `test`.`t4` where `test`.`t4`.`b` = (/* select#4 */ select max(`test`.`t2`.`a`) * 4 from `test`.`t2`))
-select (select a from t3 where a<t2.a*4 order by 1 desc limit 1), a from t2;
-(select a from t3 where a<t2.a*4 order by 1 desc limit 1) a
-3 1
-7 2
-select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
-(select * from t2 where a>1) as tt;
-(select t3.a from t3 where a<8 order by 1 desc limit 1) a
-7 2
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-explain extended select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
-(select * from t2 where a>1) as tt;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select `test`.`t3`.`a` from `test`.`t3` where `test`.`t3`.`a` < 8 order by 1 desc limit 1) AS `(select t3.a from t3 where a<8 order by 1 desc limit 1)`,`tt`.`a` AS `a` from (/* select#3 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`a` > 1) `tt`
-set optimizer_switch=@tmp_optimizer_switch;
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3) order by 1 desc limit 1);
-a
-2
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3 where t3.a > t1.a) order by 1 desc limit 1);
-a
-2
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3 where t3.a < t1.a) order by 1 desc limit 1);
-a
-select b,(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2) from t4;
-b (select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2)
-8 7.5000
-8 4.5000
-9 7.5000
-explain extended select b,(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2) from t4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t4 ALL NULL NULL NULL NULL 3 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t4.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t4`.`b` AS `b`,(/* select#2 */ select avg(`test`.`t2`.`a` + (/* select#3 */ select min(`test`.`t3`.`a`) from `test`.`t3` where `test`.`t3`.`a` >= `test`.`t4`.`a`)) from `test`.`t2`) AS `(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2)` from `test`.`t4`
-select * from t3 where exists (select * from t2 where t2.b=t3.a);
-a
-7
-select * from t3 where not exists (select * from t2 where t2.b=t3.a);
-a
-6
-3
-select * from t3 where a in (select b from t2);
-a
-7
-select * from t3 where a not in (select b from t2);
-a
-6
-3
-select * from t3 where a = some (select b from t2);
-a
-7
-select * from t3 where a <> any (select b from t2);
-a
-6
-3
-select * from t3 where a = all (select b from t2);
-a
-7
-select * from t3 where a <> all (select b from t2);
-a
-6
-3
-insert into t2 values (100, 5);
-select * from t3 where a < any (select b from t2);
-a
-6
-3
-select * from t3 where a < all (select b from t2);
-a
-3
-select * from t3 where a >= any (select b from t2);
-a
-6
-7
-explain extended select * from t3 where a >= any (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(`test`.`t2`.`b`) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= all (select b from t2);
-a
-7
-delete from t2 where a=100;
-select * from t3 where a in (select a,b from t2);
-ERROR 21000: Operand should contain 1 column(s)
-select * from t3 where a in (select * from t2);
-ERROR 21000: Operand should contain 1 column(s)
-insert into t4 values (12,7),(1,7),(10,9),(9,6),(7,6),(3,9),(1,10);
-select b,max(a) as ma from t4 group by b having b < (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-insert into t2 values (2,10);
-select b,max(a) as ma from t4 group by b having ma < (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-10 1
-delete from t2 where a=2 and b=10;
-select b,max(a) as ma from t4 group by b having b >= (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-7 12
-create table t5 (a int);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-insert into t5 values (5);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-insert into t5 values (2);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-explain extended select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-3 DEPENDENT UNION t5 ALL NULL NULL NULL NULL 2 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1276 Field or reference 'test.t2.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t2.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select (/* select#2 */ select 2 from dual where 2 = `test`.`t2`.`a` union /* select#3 */ select `test`.`t5`.`a` from `test`.`t5` where `test`.`t5`.`a` = `test`.`t2`.`a`) AS `(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a)`,`test`.`t2`.`a` AS `a` from `test`.`t2`
-select (select a from t1 where t1.a=t2.a union all select a from t5 where t5.a=t2.a), a from t2;
-ERROR 21000: Subquery returns more than 1 row
-create table t6 (patient_uq int, clinic_uq int, index i1 (clinic_uq));
-create table t7( uq int primary key, name char(25));
-insert into t7 values(1,"Oblastnaia bolnitsa"),(2,"Bolnitsa Krasnogo Kresta");
-insert into t6 values (1,1),(1,2),(2,2),(1,3);
-select * from t6 where exists (select * from t7 where uq = clinic_uq);
-patient_uq clinic_uq
-1 1
-1 2
-2 2
-explain extended select * from t6 where exists (select * from t7 where uq = clinic_uq);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t6 ALL NULL NULL NULL NULL 4 100.00 Using where
-2 DEPENDENT SUBQUERY t7 unique_subquery PRIMARY PRIMARY 4 func 1 100.00 Using index
-Warnings:
-Note 1276 Field or reference 'test.t6.clinic_uq' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t6`.`patient_uq` AS `patient_uq`,`test`.`t6`.`clinic_uq` AS `clinic_uq` from `test`.`t6` where <in_optimizer>(`test`.`t6`.`clinic_uq`,<exists>(<primary_index_lookup>(<cache>(`test`.`t6`.`clinic_uq`) in t7 on PRIMARY)))
-select * from t1 where a= (select a from t2,t4 where t2.b=t4.b);
-ERROR 23000: Column 'a' in field list is ambiguous
-drop table t1,t2,t3;
-CREATE TABLE t3 (a varchar(20),b char(1) NOT NULL default '0');
-INSERT INTO t3 VALUES ('W','a'),('A','c'),('J','b');
-CREATE TABLE t2 (a varchar(20),b int NOT NULL default '0');
-INSERT INTO t2 VALUES ('W','1'),('A','3'),('J','2');
-CREATE TABLE t1 (a varchar(20),b date NOT NULL default '0000-00-00');
-INSERT INTO t1 VALUES ('W','1732-02-22'),('A','1735-10-30'),('J','1743-04-13');
-SELECT * FROM t1 WHERE b = (SELECT MIN(b) FROM t1);
-a b
-W 1732-02-22
-SELECT * FROM t2 WHERE b = (SELECT MIN(b) FROM t2);
-a b
-W 1
-SELECT * FROM t3 WHERE b = (SELECT MIN(b) FROM t3);
-a b
-W a
-CREATE TABLE `t8` (
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-`email` varchar(60) character set latin1 NOT NULL default '',
-PRIMARY KEY (`pseudo`),
-UNIQUE KEY `email` (`email`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t8 (pseudo,email) VALUES ('joce','test');
-INSERT INTO t8 (pseudo,email) VALUES ('joce1','test1');
-INSERT INTO t8 (pseudo,email) VALUES ('2joce1','2test1');
-EXPLAIN EXTENDED SELECT pseudo,(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce')) FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-4 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-2 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00
-3 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select 'test' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo,email FROM
-t8 WHERE pseudo='joce');
-ERROR HY000: Illegal parameter data types varchar and row for operation '='
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT * FROM t8 WHERE
-pseudo='joce');
-ERROR HY000: Illegal parameter data types varchar and row for operation '='
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce');
-pseudo
-joce
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo LIKE '%joce%');
-ERROR 21000: Subquery returns more than 1 row
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8;
-CREATE TABLE `t1` (
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (topic,date,pseudo) VALUES
-('43506','2002-10-02','joce'),('40143','2002-08-03','joce');
-EXPLAIN EXTENDED SELECT DISTINCT date FROM t1 WHERE date='2002-08-03';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index NULL PRIMARY 43 NULL 2 100.00 Using where; Using index
-Warnings:
-Note 1003 select distinct `test`.`t1`.`date` AS `date` from `test`.`t1` where `test`.`t1`.`date` = DATE'2002-08-03'
-EXPLAIN EXTENDED SELECT (SELECT DISTINCT date FROM t1 WHERE date='2002-08-03');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t1 index NULL PRIMARY 43 NULL 2 100.00 Using where; Using index
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select distinct `test`.`t1`.`date` from `test`.`t1` where `test`.`t1`.`date` = DATE'2002-08-03') AS `(SELECT DISTINCT date FROM t1 WHERE date='2002-08-03')`
-SELECT DISTINCT date FROM t1 WHERE date='2002-08-03';
-date
-2002-08-03
-SELECT (SELECT DISTINCT date FROM t1 WHERE date='2002-08-03');
-(SELECT DISTINCT date FROM t1 WHERE date='2002-08-03')
-2002-08-03
-SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION SELECT 1) UNION ALL SELECT 1;
-1
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION ALL SELECT 1) UNION SELECT 1;
-ERROR 21000: Subquery returns more than 1 row
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION SELECT 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL topic 3 NULL 2 100.00 Using index
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-drop table t1;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM ROW_FORMAT=FIXED;
-INSERT INTO t1 (numeropost,maxnumrep) VALUES (40143,1),(43506,2);
-CREATE TABLE `t2` (
-`mot` varchar(30) NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`)
-) ENGINE=MyISAM ROW_FORMAT=DYNAMIC;
-INSERT INTO t2 (mot,topic,date,pseudo) VALUES ('joce','40143','2002-10-22','joce'), ('joce','43506','2002-10-22','joce');
-select numeropost as a FROM t1 GROUP BY (SELECT 1 FROM t1 HAVING a=1);
-a
-40143
-SELECT numeropost,maxnumrep FROM t1 WHERE exists (SELECT 1 FROM t2 WHERE (mot='joce') AND date >= '2002-10-21' AND t1.numeropost = t2.topic) ORDER BY maxnumrep DESC LIMIT 0, 20;
-numeropost maxnumrep
-43506 2
-40143 1
-SELECT (SELECT 1) as a FROM (SELECT 1 FROM t1 HAVING a=1) b;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT 1 IN (SELECT 1 FROM t2 HAVING a);
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-SELECT * from t2 where topic IN (SELECT SUM(topic) FROM t1);
-mot topic date pseudo
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-SELECT * from t2 where topic = any (SELECT SUM(topic) FROM t1);
-mot topic date pseudo
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT *, topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100) from t2;
-mot topic date pseudo topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100)
-joce 40143 2002-10-22 joce 1
-joce 43506 2002-10-22 joce 1
-SELECT * from t2 where topic = all (SELECT SUM(topic) FROM t2);
-mot topic date pseudo
-SELECT * from t2 where topic <> any (SELECT SUM(topic) FROM t2);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT *, topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000) from t2;
-mot topic date pseudo topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000)
-joce 40143 2002-10-22 joce 1
-joce 43506 2002-10-22 joce 0
-drop table t1,t2;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM ROW_FORMAT=FIXED;
-INSERT INTO t1 (numeropost,maxnumrep) VALUES (1,0),(2,1);
-select numeropost as a FROM t1 GROUP BY (SELECT 1 FROM t1 HAVING a=1);
-ERROR 21000: Subquery returns more than 1 row
-select numeropost as a FROM t1 ORDER BY (SELECT 1 FROM t1 HAVING a=1);
-ERROR 21000: Subquery returns more than 1 row
-show warnings;
-Level Code Message
-Error 1242 Subquery returns more than 1 row
-Error 1028 Sort aborted: Subquery returns more than 1 row
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-(select * from t1) union (select * from t1) order by (select a from t1 limit 1);
-a
-1
-2
-3
-drop table t1;
-CREATE TABLE t1 (field char(1) NOT NULL DEFAULT 'b');
-INSERT INTO t1 VALUES ();
-SELECT field FROM t1 WHERE 1=(SELECT 1 UNION ALL SELECT 1 FROM (SELECT 1) a HAVING field='b');
-ERROR 21000: Subquery returns more than 1 row
-drop table t1;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL default '0',
-`numreponse` int(10) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) NOT NULL default '',
-PRIMARY KEY (`numeropost`,`numreponse`),
-UNIQUE KEY `numreponse` (`numreponse`),
-KEY `pseudo` (`pseudo`,`numeropost`)
-) ENGINE=MyISAM;
-SELECT (SELECT numeropost FROM t1 HAVING numreponse=a),numreponse FROM (SELECT * FROM t1) as a;
-ERROR 42S22: Reference 'numreponse' not supported (forward reference in item list)
-SELECT numreponse, (SELECT numeropost FROM t1 HAVING numreponse=a) FROM (SELECT * FROM t1) as a;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT numreponse, (SELECT numeropost FROM t1 HAVING numreponse=1) FROM (SELECT * FROM t1) as a;
-numreponse (SELECT numeropost FROM t1 HAVING numreponse=1)
-INSERT INTO t1 (numeropost,numreponse,pseudo) VALUES (1,1,'joce'),(1,2,'joce'),(1,3,'test');
-EXPLAIN EXTENDED SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT 1 FROM t1 WHERE numeropost='1');
-ERROR 21000: Subquery returns more than 1 row
-SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT 1 FROM t1 WHERE numeropost='1');
-ERROR 21000: Subquery returns more than 1 row
-EXPLAIN EXTENDED SELECT MAX(numreponse) FROM t1 WHERE numeropost='1';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 select max(`test`.`t1`.`numreponse`) AS `MAX(numreponse)` from `test`.`t1` where `test`.`t1`.`numeropost` = '1'
-EXPLAIN EXTENDED SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT MAX(numreponse) FROM t1 WHERE numeropost='1');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 const PRIMARY,numreponse PRIMARY 7 const,const 1 100.00 Using index
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 /* select#1 */ select 3 AS `numreponse` from `test`.`t1` where 1
-drop table t1;
-CREATE TABLE t1 (a int(1));
-INSERT INTO t1 VALUES (1);
-SELECT 1 FROM (SELECT a FROM t1) b HAVING (SELECT b.a)=1;
-1
-1
-drop table t1;
-create table t1 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t1 values (0, 10),(1, 11),(2, 12);
-insert into t2 values (1, 21),(2, 22),(3, 23);
-select * from t1;
-a b
-0 10
-1 11
-2 12
-update t1 set b= (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-update t1 set b= (select b from t2 where t1.a = t2.a);
-select * from t1;
-a b
-0 NULL
-1 21
-2 22
-drop table t1, t2;
-create table t1 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t1 values (0, 10),(1, 11),(2, 12);
-insert into t2 values (1, 21),(2, 12),(3, 23);
-select * from t1;
-a b
-0 10
-1 11
-2 12
-select * from t1 where b = (select b from t2 where t1.a = t2.a);
-a b
-2 12
-delete from t1 where b in (select b from t1);
-affected rows: 3
-insert into t1 values (0, 10),(1, 11),(2, 12);
-delete from t1 where b = (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-delete from t1 where b = (select b from t2 where t1.a = t2.a);
-select * from t1 order by b;
-a b
-0 10
-1 11
-drop table t1, t2;
-create table t11 (a int NOT NULL, b int, primary key (a));
-create table t12 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t11 values (0, 10),(1, 11),(2, 12);
-insert into t12 values (33, 10),(22, 11),(2, 12);
-insert into t2 values (1, 21),(2, 12),(3, 23);
-select * from t11;
-a b
-0 10
-1 11
-2 12
-select * from t12;
-a b
-33 10
-22 11
-2 12
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t12 where t11.a = t12.a);
-ERROR HY000: Table 't12' is specified twice, both as a target for 'DELETE' and as a separate source for data
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t2 where t11.a = t2.a);
-select * from t11;
-a b
-0 10
-1 11
-select * from t12;
-a b
-33 10
-22 11
-drop table t11, t12, t2;
-CREATE TABLE t1 (x int) ENGINE=MyISAM;
-create table t2 (a int) ENGINE=MyISAM;
-create table t3 (b int);
-insert into t2 values (1);
-insert into t3 values (1),(2);
-INSERT INTO t1 (x) VALUES ((SELECT x FROM t1));
-ERROR HY000: Table 't1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-INSERT INTO t1 (x) VALUES ((SELECT b FROM t3));
-ERROR 21000: Subquery returns more than 1 row
-INSERT INTO t1 (x) VALUES ((SELECT a FROM t2));
-select * from t1;
-x
-1
-insert into t2 values (1);
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
-select * from t1;
-x
-1
-2
-INSERT INTO t1 (x) select (SELECT SUM(a)+1 FROM t2) FROM t2;
-select * from t1;
-x
-1
-2
-3
-3
-INSERT INTO t1 (x) select (SELECT SUM(x)+2 FROM t1) FROM t2;
-select * from t1;
-x
-1
-2
-3
-3
-11
-11
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(x) FROM t2));
-ERROR 42S22: Unknown column 'x' in 'field list'
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
-select * from t1;
-x
-1
-2
-3
-3
-11
-11
-2
-drop table t1, t2, t3;
-CREATE TABLE t1 (x int not null, y int, primary key (x)) ENGINE=MyISAM;
-create table t2 (a int);
-create table t3 (a int);
-insert into t2 values (1);
-insert into t3 values (1),(2);
-select * from t1;
-x y
-replace into t1 (x, y) VALUES ((SELECT x FROM t1), (SELECT a+1 FROM t2));
-ERROR HY000: Table 't1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-replace into t1 (x, y) VALUES ((SELECT a FROM t3), (SELECT a+1 FROM t2));
-ERROR 21000: Subquery returns more than 1 row
-replace into t1 (x, y) VALUES ((SELECT a FROM t2), (SELECT a+1 FROM t2));
-select * from t1;
-x y
-1 2
-replace into t1 (x, y) VALUES ((SELECT a FROM t2), (SELECT a+2 FROM t2));
-select * from t1;
-x y
-1 3
-replace DELAYED into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a FROM t2));
-select * from t1;
-x y
-1 3
-4 1
-replace DELAYED into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a+1 FROM t2));
-select * from t1;
-x y
-1 3
-4 2
-replace LOW_PRIORITY into t1 (x, y) VALUES ((SELECT a+1 FROM t2), (SELECT a FROM t2));
-select * from t1;
-x y
-1 3
-4 2
-2 1
-drop table t1, t2, t3;
-SELECT * FROM (SELECT 1) b WHERE 1 IN (SELECT *);
-ERROR HY000: No tables used
-CREATE TABLE t2 (id int(11) default NULL, KEY id (id)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (1),(2);
-SELECT * FROM t2 WHERE id IN (SELECT 1);
-id
-1
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ref id id 5 const 1 100.00 Using index
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t2`.`id` AS `id` from `test`.`t2` where `test`.`t2`.`id` = 1
-SELECT * FROM t2 WHERE id IN (SELECT 1 UNION SELECT 3);
-id
-1
-SELECT * FROM t2 WHERE id IN (SELECT 1+(select 1));
-id
-2
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1+(select 1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ref id id 5 const 1 100.00 Using where; Using index
-Warnings:
-Note 1249 Select 3 was reduced during optimization
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t2`.`id` AS `id` from `test`.`t2` where `test`.`t2`.`id` = <cache>(1 + 1)
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1 UNION SELECT 3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL id 5 NULL 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`id` AS `id` from `test`.`t2` where <in_optimizer>(`test`.`t2`.`id`,<exists>(/* select#2 */ select 1 having <cache>(`test`.`t2`.`id`) = <ref_null_helper>(1) union /* select#3 */ select 3 having <cache>(`test`.`t2`.`id`) = <ref_null_helper>(3)))
-SELECT * FROM t2 WHERE id IN (SELECT 5 UNION SELECT 3);
-id
-SELECT * FROM t2 WHERE id IN (SELECT 5 UNION SELECT 2);
-id
-2
-INSERT INTO t2 VALUES ((SELECT * FROM t2));
-ERROR HY000: Table 't2' is specified twice, both as a target for 'INSERT' and as a separate source for data
-INSERT INTO t2 VALUES ((SELECT id FROM t2));
-ERROR HY000: Table 't2' is specified twice, both as a target for 'INSERT' and as a separate source for data
-SELECT * FROM t2;
-id
-1
-2
-CREATE TABLE t1 (id int(11) default NULL, KEY id (id)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 values (1),(1);
-UPDATE t2 SET id=(SELECT * FROM t1);
-ERROR 21000: Subquery returns more than 1 row
-drop table t2, t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-select 1 IN (SELECT * from t1);
-1 IN (SELECT * from t1)
-1
-select 10 IN (SELECT * from t1);
-10 IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a=2;
-select 1 IN (SELECT * from t1);
-1 IN (SELECT * from t1)
-1
-select 3 IN (SELECT * from t1);
-3 IN (SELECT * from t1)
-1
-select 10 IN (SELECT * from t1);
-10 IN (SELECT * from t1)
-NULL
-select 1 > ALL (SELECT * from t1);
-1 > ALL (SELECT * from t1)
-0
-select 10 > ALL (SELECT * from t1);
-10 > ALL (SELECT * from t1)
-NULL
-select 1 > ANY (SELECT * from t1);
-1 > ANY (SELECT * from t1)
-NULL
-select 10 > ANY (SELECT * from t1);
-10 > ANY (SELECT * from t1)
-1
-drop table t1;
-create table t1 (a varchar(20));
-insert into t1 values ('A'),('BC'),('DEF');
-select 'A' IN (SELECT * from t1);
-'A' IN (SELECT * from t1)
-1
-select 'XYZS' IN (SELECT * from t1);
-'XYZS' IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a='BC';
-select 'A' IN (SELECT * from t1);
-'A' IN (SELECT * from t1)
-1
-select 'DEF' IN (SELECT * from t1);
-'DEF' IN (SELECT * from t1)
-1
-select 'XYZS' IN (SELECT * from t1);
-'XYZS' IN (SELECT * from t1)
-NULL
-select 'A' > ALL (SELECT * from t1);
-'A' > ALL (SELECT * from t1)
-0
-select 'XYZS' > ALL (SELECT * from t1);
-'XYZS' > ALL (SELECT * from t1)
-NULL
-select 'A' > ANY (SELECT * from t1);
-'A' > ANY (SELECT * from t1)
-NULL
-select 'XYZS' > ANY (SELECT * from t1);
-'XYZS' > ANY (SELECT * from t1)
-1
-drop table t1;
-create table t1 (a float);
-insert into t1 values (1.5),(2.5),(3.5);
-select 1.5 IN (SELECT * from t1);
-1.5 IN (SELECT * from t1)
-1
-select 10.5 IN (SELECT * from t1);
-10.5 IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a=2.5;
-select 1.5 IN (SELECT * from t1);
-1.5 IN (SELECT * from t1)
-1
-select 3.5 IN (SELECT * from t1);
-3.5 IN (SELECT * from t1)
-1
-select 10.5 IN (SELECT * from t1);
-10.5 IN (SELECT * from t1)
-NULL
-select 1.5 > ALL (SELECT * from t1);
-1.5 > ALL (SELECT * from t1)
-0
-select 10.5 > ALL (SELECT * from t1);
-10.5 > ALL (SELECT * from t1)
-NULL
-select 1.5 > ANY (SELECT * from t1);
-1.5 > ANY (SELECT * from t1)
-NULL
-select 10.5 > ANY (SELECT * from t1);
-10.5 > ANY (SELECT * from t1)
-1
-explain extended select (select a+1) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t1`.`a` + 1 AS `(select a+1)` from `test`.`t1`
-select (select a+1) from t1;
-(select a+1)
-2.5
-NULL
-4.5
-drop table t1;
-CREATE TABLE t1 (a int(11) NOT NULL default '0', PRIMARY KEY (a));
-CREATE TABLE t2 (a int(11) default '0', INDEX (a));
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-INSERT INTO t2 VALUES (1),(2),(3);
-SELECT t1.a, t1.a in (select t2.a from t2) FROM t1;
-a t1.a in (select t2.a from t2)
-1 1
-2 1
-3 1
-4 0
-explain extended SELECT t1.a, t1.a in (select t2.a from t2) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 4 100.00 Using index
-2 SUBQUERY t2 index_subquery a a 5 func 2 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,<in_optimizer>(`test`.`t1`.`a`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`a`) in t2 on a checking NULL having `test`.`t2`.`a` is null))) AS `t1.a in (select t2.a from t2)` from `test`.`t1`
-CREATE TABLE t3 (a int(11) default '0');
-INSERT INTO t3 VALUES (1),(2),(3);
-SELECT t1.a, t1.a in (select t2.a from t2,t3 where t3.a=t2.a) FROM t1;
-a t1.a in (select t2.a from t2,t3 where t3.a=t2.a)
-1 1
-2 1
-3 1
-4 0
-explain extended SELECT t1.a, t1.a in (select t2.a from t2,t3 where t3.a=t2.a) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 4 100.00 Using index
-2 DEPENDENT SUBQUERY t2 ref_or_null a a 5 func 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `test`.`t2`.`a` from `test`.`t2` join `test`.`t3` where `test`.`t3`.`a` = `test`.`t2`.`a` and (<cache>(`test`.`t1`.`a`) = `test`.`t2`.`a` or `test`.`t2`.`a` is null) having `test`.`t2`.`a` is null)) AS `t1.a in (select t2.a from t2,t3 where t3.a=t2.a)` from `test`.`t1`
-drop table t1,t2,t3;
-# check correct NULL Processing for normal IN/ALL/ANY
-# and 2 ways of max/min optimization
-create table t1 (a int);
-insert into t1 values (1), (100), (NULL), (1000);
-create table t2 (a int not null);
-# subselect returns empty set (for NULL and non-NULL left part)
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 0
-100 0
-NULL 0
-1000 0
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 0
-100 0
-NULL 0
-1000 0
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 1
-100 1
-NULL 1
-1000 1
-select a from t1 where a in (select * from t2);
-a
-select a from t1 where a > any (select * from t2);
-a
-select a from t1 where a > all (select * from t2);
-a
-1
-100
-NULL
-1000
-select a from t1 where a in (select * from t2 group by a);
-a
-select a from t1 where a > any (select * from t2 group by a);
-a
-select a from t1 where a > all (select * from t2 group by a);
-a
-1
-100
-NULL
-1000
-insert into t2 values (1),(200);
-# sebselect returns non-empty set without NULLs
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 1
-100 0
-NULL NULL
-1000 0
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 0
-100 1
-NULL NULL
-1000 1
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 0
-100 0
-NULL NULL
-1000 1
-select a from t1 where a in (select * from t2);
-a
-1
-select a from t1 where a > any (select * from t2);
-a
-100
-1000
-select a from t1 where a > all (select * from t2);
-a
-1000
-select a from t1 where a in (select * from t2 group by a);
-a
-1
-select a from t1 where a > any (select * from t2 group by a);
-a
-100
-1000
-select a from t1 where a > all (select * from t2 group by a);
-a
-1000
-drop table t2;
-create table t2 (a int);
-insert into t2 values (1),(NULL),(200);
-# sebselect returns non-empty set with NULLs
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 1
-100 NULL
-NULL NULL
-1000 NULL
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 NULL
-100 1
-NULL NULL
-1000 1
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 0
-100 0
-NULL NULL
-1000 NULL
-select a from t1 where a in (select * from t2);
-a
-1
-select a from t1 where a > any (select * from t2);
-a
-100
-1000
-select a from t1 where a > all (select * from t2);
-a
-select a from t1 where a in (select * from t2 group by a);
-a
-1
-select a from t1 where a > any (select * from t2 group by a);
-a
-100
-1000
-select a from t1 where a > all (select * from t2 group by a);
-a
-drop table t1, t2;
-create table t1 (a float);
-select 10.5 IN (SELECT * from t1 LIMIT 1);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-select 10.5 IN (SELECT * from t1 LIMIT 1 UNION SELECT 1.5);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1.5)' at line 1
-select 10.5 IN (SELECT * from t1 UNION SELECT 1.5 LIMIT 1);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-drop table t1;
-create table t1 (a int, b int, c varchar(10));
-create table t2 (a int);
-insert into t1 values (1,2,'a'),(2,3,'b'),(3,4,'c');
-insert into t2 values (1),(2),(NULL);
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,2,'a'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,2,'a') (select c from t1 where a=t2.a)
-1 1 a
-2 0 b
-NULL NULL NULL
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,3,'b'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,3,'b') (select c from t1 where a=t2.a)
-1 0 a
-2 1 b
-NULL NULL NULL
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,4,'c'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,4,'c') (select c from t1 where a=t2.a)
-1 0 a
-2 0 b
-NULL NULL NULL
-drop table t1,t2;
-create table t1 (a int, b real, c varchar(10));
-insert into t1 values (1, 1, 'a'), (2,2,'b'), (NULL, 2, 'b');
-select ROW(1, 1, 'a') IN (select a,b,c from t1);
-ROW(1, 1, 'a') IN (select a,b,c from t1)
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1);
-ROW(1, 2, 'a') IN (select a,b,c from t1)
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1);
-ROW(1, 1, 'a') IN (select b,a,c from t1)
-1
-select ROW(1, 1, 'a') IN (select a,b,c from t1 where a is not null);
-ROW(1, 1, 'a') IN (select a,b,c from t1 where a is not null)
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1 where a is not null);
-ROW(1, 2, 'a') IN (select a,b,c from t1 where a is not null)
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1 where a is not null);
-ROW(1, 1, 'a') IN (select b,a,c from t1 where a is not null)
-1
-select ROW(1, 1, 'a') IN (select a,b,c from t1 where c='b' or c='a');
-ROW(1, 1, 'a') IN (select a,b,c from t1 where c='b' or c='a')
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1 where c='b' or c='a');
-ROW(1, 2, 'a') IN (select a,b,c from t1 where c='b' or c='a')
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1 where c='b' or c='a');
-ROW(1, 1, 'a') IN (select b,a,c from t1 where c='b' or c='a')
-1
-select ROW(1, 1, 'a') IN (select b,a,c from t1 limit 2);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1);
-do @a:=(SELECT a from t1);
-select @a;
-@a
-1
-set @a:=2;
-set @a:=(SELECT a from t1);
-select @a;
-@a
-1
-drop table t1;
-do (SELECT a from t1);
-ERROR 42S02: Table 'test.t1' doesn't exist
-set @a:=(SELECT a from t1);
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (a int, KEY(a));
-HANDLER t1 OPEN;
-HANDLER t1 READ a=((SELECT 1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1))' at line 1
-HANDLER t1 CLOSE;
-drop table t1;
-create table t1 (a int);
-create table t2 (b int);
-insert into t1 values (1),(2);
-insert into t2 values (1);
-select a from t1 where a in (select a from t1 where a in (select b from t2));
-a
-1
-drop table t1, t2;
-create table t1 (a int, b int);
-create table t2 like t1;
-insert into t1 values (1,2),(1,3),(1,4),(1,5);
-insert into t2 values (1,2),(1,3);
-select * from t1 where row(a,b) in (select a,b from t2);
-a b
-1 2
-1 3
-drop table t1, t2;
-CREATE TABLE `t1` (`i` int(11) NOT NULL default '0',PRIMARY KEY (`i`)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1);
-UPDATE t1 SET i=i+1 WHERE i=(SELECT MAX(i));
-select * from t1;
-i
-2
-drop table t1;
-CREATE TABLE t1 (a int(1));
-EXPLAIN EXTENDED SELECT (SELECT RAND() FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select rand() from `test`.`t1`) AS `(SELECT RAND() FROM t1)` from `test`.`t1`
-EXPLAIN EXTENDED SELECT (SELECT ENCRYPT('test') FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select encrypt('test') from `test`.`t1`) AS `(SELECT ENCRYPT('test') FROM t1)` from `test`.`t1`
-EXPLAIN EXTENDED SELECT (SELECT BENCHMARK(1,1) FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select benchmark(1,1) from `test`.`t1`) AS `(SELECT BENCHMARK(1,1) FROM t1)` from `test`.`t1`
-drop table t1;
-CREATE TABLE `t1` (
-`mot` varchar(30) character set latin1 NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`),
-KEY `pseudo` (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-CREATE TABLE `t2` (
-`mot` varchar(30) character set latin1 NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`),
-KEY `pseudo` (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-CREATE TABLE `t3` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT IGNORE INTO t1 VALUES ('joce','1','','joce'),('test','2','','test');
-Warnings:
-Warning 1265 Data truncated for column 'date' at row 1
-Warning 1265 Data truncated for column 'date' at row 2
-INSERT IGNORE INTO t2 VALUES ('joce','1','','joce'),('test','2','','test');
-Warnings:
-Warning 1265 Data truncated for column 'date' at row 1
-Warning 1265 Data truncated for column 'date' at row 2
-INSERT INTO t3 VALUES (1,1);
-SELECT DISTINCT topic FROM t2 WHERE NOT EXISTS(SELECT * FROM t3 WHERE
-numeropost=topic);
-topic
-2
-select * from t1;
-mot topic date pseudo
-joce 1 0000-00-00 joce
-test 2 0000-00-00 test
-DELETE FROM t1 WHERE topic IN (SELECT DISTINCT topic FROM t2 WHERE NOT
-EXISTS(SELECT * FROM t3 WHERE numeropost=topic));
-select * from t1;
-mot topic date pseudo
-joce 1 0000-00-00 joce
-drop table t1, t2, t3;
-SELECT * FROM (SELECT 1 as a,(SELECT a)) a;
-a (SELECT a)
-1 1
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT 1)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT 1)` int(1) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT a)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT a)` int(1) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT a+0)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT a+0)` int(3) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT (SELECT 1 as a UNION SELECT 1+1 limit 1,1) as a;
-select * from t1;
-a
-2
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(3) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-explain extended select a,(select (select rand() from t1 limit 1) from t1 limit 1)
-from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-2 UNCACHEABLE SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00
-3 UNCACHEABLE SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,(/* select#2 */ select (/* select#3 */ select rand() from `test`.`t1` limit 1) from `test`.`t1` limit 1) AS `(select (select rand() from t1 limit 1) from t1 limit 1)` from `test`.`t1`
-drop table t1;
-select t1.Continent, t2.Name, t2.Population from t1 LEFT JOIN t2 ON t1.Code = t2.Country where t2.Population IN (select max(t2.Population) AS Population from t2, t1 where t2.Country = t1.Code group by Continent);
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (
-ID int(11) NOT NULL auto_increment,
-name char(35) NOT NULL default '',
-t2 char(3) NOT NULL default '',
-District char(20) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (130,'Sydney','AUS','New South Wales',3276207);
-INSERT INTO t1 VALUES (131,'Melbourne','AUS','Victoria',2865329);
-INSERT INTO t1 VALUES (132,'Brisbane','AUS','Queensland',1291117);
-CREATE TABLE t2 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL default 'Asia',
-Region char(26) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-IndepYear smallint(6) default NULL,
-Population int(11) NOT NULL default '0',
-LifeExpectancy float(3,1) default NULL,
-GNP float(10,2) default NULL,
-GNPOld float(10,2) default NULL,
-LocalName char(45) NOT NULL default '',
-GovernmentForm char(45) NOT NULL default '',
-HeadOfState char(60) default NULL,
-Capital int(11) default NULL,
-Code2 char(2) NOT NULL default '',
-PRIMARY KEY (Code)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('AUS','Australia','Oceania','Australia and New Zealand',7741220.00,1901,18886000,79.8,351182.00,392911.00,'Australia','Constitutional Monarchy, Federation','Elisabeth II',135,'AU');
-INSERT INTO t2 VALUES ('AZE','Azerbaijan','Asia','Middle East',86600.00,1991,7734000,62.9,4127.00,4100.00,'Azärbaycan','Federal Republic','Heydär Äliyev',144,'AZ');
-select t2.Continent, t1.Name, t1.Population from t2 LEFT JOIN t1 ON t2.Code = t1.t2 where t1.Population IN (select max(t1.Population) AS Population from t1, t2 where t1.t2 = t2.Code group by Continent);
-Continent Name Population
-Oceania Sydney 3276207
-drop table t1, t2;
-CREATE TABLE `t1` (
-`id` mediumint(8) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `pseudo` (`pseudo`)
-) ENGINE=MyISAM PACK_KEYS=1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (pseudo) VALUES ('test');
-SELECT 0 IN (SELECT 1 FROM t1 a);
-0 IN (SELECT 1 FROM t1 a)
-0
-EXPLAIN EXTENDED SELECT 0 IN (SELECT 1 FROM t1 a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 /* select#1 */ select <in_optimizer>(0,<exists>(/* select#2 */ select 1 from dual where 0 = 1)) AS `0 IN (SELECT 1 FROM t1 a)`
-INSERT INTO t1 (pseudo) VALUES ('test1');
-SELECT 0 IN (SELECT 1 FROM t1 a);
-0 IN (SELECT 1 FROM t1 a)
-0
-EXPLAIN EXTENDED SELECT 0 IN (SELECT 1 FROM t1 a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 /* select#1 */ select <in_optimizer>(0,<exists>(/* select#2 */ select 1 from `test`.`t1` `a` where 0 = 1)) AS `0 IN (SELECT 1 FROM t1 a)`
-drop table t1;
-CREATE TABLE `t1` (
-`i` int(11) NOT NULL default '0',
-PRIMARY KEY (`i`)
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1);
-UPDATE t1 SET i=i+(SELECT MAX(i) FROM (SELECT 1) t) WHERE i=(SELECT MAX(i));
-UPDATE t1 SET i=i+1 WHERE i=(SELECT MAX(i));
-UPDATE t1 SET t.i=i+(SELECT MAX(i) FROM (SELECT 1) t);
-ERROR 42S22: Unknown column 't.i' in 'field list'
-select * from t1;
-i
-3
-drop table t1;
-CREATE TABLE t1 (
-id int(11) default NULL
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1),(1),(2),(2),(1),(3);
-CREATE TABLE t2 (
-id int(11) default NULL,
-name varchar(15) default NULL
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (4,'vita'), (1,'vita'), (2,'vita'), (1,'vita');
-update t1, t2 set t2.name='lenka' where t2.id in (select id from t1);
-select * from t2;
-id name
-4 vita
-1 lenka
-2 lenka
-1 lenka
-drop table t1,t2;
-create table t1 (a int, unique index indexa (a));
-insert into t1 values (-1), (-4), (-2), (NULL);
-select -10 IN (select a from t1 FORCE INDEX (indexa));
--10 IN (select a from t1 FORCE INDEX (indexa))
-NULL
-drop table t1;
-create table t1 (id int not null auto_increment primary key, salary int, key(salary));
-insert into t1 (salary) values (100),(1000),(10000),(10),(500),(5000),(50000);
-explain extended SELECT id FROM t1 where salary = (SELECT MAX(salary) FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ref salary salary 5 const 1 100.00 Using where
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id` from `test`.`t1` where `test`.`t1`.`salary` = (/* select#2 */ select max(`test`.`t1`.`salary`) from `test`.`t1`)
-drop table t1;
-CREATE TABLE t1 (
-ID int(10) unsigned NOT NULL auto_increment,
-SUB_ID int(3) unsigned NOT NULL default '0',
-REF_ID int(10) unsigned default NULL,
-REF_SUB int(3) unsigned default '0',
-PRIMARY KEY (ID,SUB_ID),
-UNIQUE KEY t1_PK (ID,SUB_ID),
-KEY t1_FK (REF_ID,REF_SUB),
-KEY t1_REFID (REF_ID)
-) ENGINE=MyISAM CHARSET=cp1251;
-INSERT INTO t1 VALUES (1,0,NULL,NULL),(2,0,NULL,NULL);
-SELECT DISTINCT REF_ID FROM t1 WHERE ID= (SELECT DISTINCT REF_ID FROM t1 WHERE ID=2);
-REF_ID
-DROP TABLE t1;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1,0), (2,0), (3,0);
-insert into t2 values (1,1), (2,1), (3,1), (2,2);
-update ignore t1 set b=(select b from t2 where t1.a=t2.a);
-Warnings:
-Warning 1242 Subquery returns more than 1 row
-select * from t1;
-a b
-1 1
-2 NULL
-3 1
-drop table t1, t2;
-CREATE TABLE `t1` (
-`id` mediumint(8) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) NOT NULL default '',
-`email` varchar(60) NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `email` (`email`),
-UNIQUE KEY `pseudo` (`pseudo`)
-) ENGINE=MyISAM CHARSET=latin1 PACK_KEYS=1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (id,pseudo,email) VALUES (1,'test','test'),(2,'test1','test1');
-SELECT pseudo as a, pseudo as b FROM t1 GROUP BY (SELECT a) ORDER BY (SELECT id*1);
-a b
-test test
-test1 test1
-drop table if exists t1;
-(SELECT 1 as a) UNION (SELECT 1) ORDER BY (SELECT a+0);
-a
-1
-create table t1 (a int not null, b int, primary key (a));
-create table t2 (a int not null, primary key (a));
-create table t3 (a int not null, b int, primary key (a));
-insert into t1 values (1,10), (2,20), (3,30), (4,40);
-insert into t2 values (2), (3), (4), (5);
-insert into t3 values (10,3), (20,4), (30,5);
-select * from t2 where t2.a in (select a from t1);
-a
-2
-3
-4
-explain extended select * from t2 where t2.a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL PRIMARY 4 NULL 4 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t1 unique_subquery PRIMARY PRIMARY 4 func 1 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where <in_optimizer>(`test`.`t2`.`a`,<exists>(<primary_index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on PRIMARY)))
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL PRIMARY 4 NULL 4 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t1 unique_subquery PRIMARY PRIMARY 4 func 1 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where <in_optimizer>(`test`.`t2`.`a`,<exists>(<primary_index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on PRIMARY where `test`.`t1`.`b` <> 30 and <cache>(`test`.`t2`.`a`) = `test`.`t1`.`a`)))
-select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-a
-2
-3
-explain extended select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL PRIMARY 4 NULL 4 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t1 eq_ref PRIMARY PRIMARY 4 func 1 100.00 Using where
-2 DEPENDENT SUBQUERY t3 eq_ref PRIMARY PRIMARY 4 test.t1.b 1 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where <in_optimizer>(`test`.`t2`.`a`,<exists>(/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` join `test`.`t3` where `test`.`t3`.`a` = `test`.`t1`.`b` and <cache>(`test`.`t2`.`a`) = `test`.`t1`.`a`))
-drop table t1, t2, t3;
-create table t1 (a int, b int, index a (a,b));
-create table t2 (a int, index a (a));
-create table t3 (a int, b int, index a (a));
-insert into t1 values (1,10), (2,20), (3,30), (4,40);
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t1
-select rand()*100000+200,rand()*100000 from t0 A, t0 B, t0 C, t0 D;
-insert into t2 values (2), (3), (4), (5);
-insert into t3 values (10,3), (20,4), (30,5);
-select * from t2 where t2.a in (select a from t1);
-a
-2
-3
-4
-explain extended select * from t2 where t2.a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL a 5 NULL 4 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t1 index_subquery a a 5 func 1001 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where <in_optimizer>(`test`.`t2`.`a`,<exists>(<index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on a)))
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL a 5 NULL 4 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t1 index_subquery a a 5 func 1001 100.00 Using index; Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where <in_optimizer>(`test`.`t2`.`a`,<exists>(<index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on a where `test`.`t1`.`b` <> 30 and <cache>(`test`.`t2`.`a`) = `test`.`t1`.`a`)))
-select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-a
-2
-3
-explain extended select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL a 5 NULL 4 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t3 index a a 5 NULL 3 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t1 ref a a 10 func,test.t3.a 1167 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where <in_optimizer>(`test`.`t2`.`a`,<exists>(/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` join `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`a` and <cache>(`test`.`t2`.`a`) = `test`.`t1`.`a`))
-insert into t1 values (3,31);
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-3
-4
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30 and t1.b <> 31);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL a 5 NULL 4 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t1 index_subquery a a 5 func 1001 100.00 Using index; Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where <in_optimizer>(`test`.`t2`.`a`,<exists>(<index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on a where `test`.`t1`.`b` <> 30 and <cache>(`test`.`t2`.`a`) = `test`.`t1`.`a`)))
-drop table t0, t1, t2, t3;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-create table t3 (a int, b int);
-insert into t1 values (0,100),(1,2), (1,3), (2,2), (2,7), (2,-1), (3,10);
-insert into t2 values (0,0), (1,1), (2,1), (3,1), (4,1);
-insert into t3 values (3,3), (2,2), (1,1);
-select a,(select count(distinct t1.b) as sum from t1,t2 where t1.a=t2.a and t2.b > 0 and t1.a <= t3.b group by t1.a order by sum limit 1) from t3;
-a (select count(distinct t1.b) as sum from t1,t2 where t1.a=t2.a and t2.b > 0 and t1.a <= t3.b group by t1.a order by sum limit 1)
-3 1
-2 2
-1 2
-drop table t1,t2,t3;
-create table t1 (s1 int);
-create table t2 (s1 int);
-insert into t1 values (1);
-insert into t2 values (1);
-select * from t1 where exists (select s1 from t2 having max(t2.s1)=t1.s1);
-s1
-1
-drop table t1,t2;
-create table t1 (s1 int);
-create table t2 (s1 int);
-insert into t1 values (1);
-insert into t2 values (1);
-update t1 set s1 = s1 + 1 where 1 = (select x.s1 as A from t2 WHERE t2.s1 > t1.s1 order by A);
-ERROR 42S22: Unknown column 'x.s1' in 'field list'
-DROP TABLE t1, t2;
-CREATE TABLE t1 (s1 CHAR(5) COLLATE latin1_german1_ci,
-s2 CHAR(5) COLLATE latin1_swedish_ci);
-INSERT INTO t1 VALUES ('z','?');
-select * from t1 where s1 > (select max(s2) from t1);
-ERROR HY000: Illegal mix of collations (latin1_german1_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '>'
-select * from t1 where s1 > any (select max(s2) from t1);
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin1_german1_ci,IMPLICIT) for operation '<'
-drop table t1;
-create table t1(toid int,rd int);
-create table t2(userid int,pmnew int,pmtotal int);
-insert into t2 values(1,0,0),(2,0,0);
-insert into t1 values(1,0),(1,0),(1,0),(1,12),(1,15),(1,123),(1,12312),(1,12312),(1,123),(2,0),(2,0),(2,1),(2,2);
-select userid,pmtotal,pmnew, (select count(rd) from t1 where toid=t2.userid) calc_total, (select count(rd) from t1 where rd=0 and toid=t2.userid) calc_new from t2 where userid in (select distinct toid from t1);
-userid pmtotal pmnew calc_total calc_new
-1 0 0 9 3
-2 0 0 4 2
-drop table t1, t2;
-create table t1 (s1 char(5));
-select (select 'a','b' from t1 union select 'a','b' from t1) from t1;
-ERROR 21000: Operand should contain 1 column(s)
-insert into t1 values ('tttt');
-select * from t1 where ('a','b')=(select 'a','b' from t1 union select 'a','b' from t1);
-s1
-tttt
-explain extended (select * from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 (select 'tttt' AS `s1` from dual)
-(select * from t1);
-s1
-tttt
-drop table t1;
-create table t1 (s1 char(5), index s1(s1));
-create table t2 (s1 char(5), index s1(s1));
-insert into t1 values ('a1'),('a2'),('a3');
-insert into t2 values ('a1'),('a2');
-select s1, s1 NOT IN (SELECT s1 FROM t2) from t1;
-s1 s1 NOT IN (SELECT s1 FROM t2)
-a1 0
-a2 0
-a3 1
-select s1, s1 = ANY (SELECT s1 FROM t2) from t1;
-s1 s1 = ANY (SELECT s1 FROM t2)
-a1 1
-a2 1
-a3 0
-select s1, s1 <> ALL (SELECT s1 FROM t2) from t1;
-s1 s1 <> ALL (SELECT s1 FROM t2)
-a1 0
-a2 0
-a3 1
-select s1, s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2') from t1;
-s1 s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2')
-a1 0
-a2 1
-a3 1
-explain extended select s1, s1 NOT IN (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null)))) AS `s1 NOT IN (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 = ANY (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null)))) AS `s1 = ANY (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 <> ALL (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null)))) AS `s1 <> ALL (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2') from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Using where; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL where `test`.`t2`.`s1` < 'a2' having trigcond(`test`.`t2`.`s1` is null)))) AS `s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2')` from `test`.`t1`
-drop table t1,t2;
-create table t2 (a int, b int not null);
-create table t3 (a int);
-insert into t3 values (6),(7),(3);
-select * from t3 where a >= all (select b from t2);
-a
-6
-7
-3
-explain extended select * from t3 where a >= all (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select max(NULL) from `test`.`t2`) > <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= some (select b from t2);
-a
-explain extended select * from t3 where a >= some (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(NULL) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= all (select b from t2 group by 1);
-a
-6
-7
-3
-explain extended select * from t3 where a >= all (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select max(NULL) from `test`.`t2`) > <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= some (select b from t2 group by 1);
-a
-explain extended select * from t3 where a >= some (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(NULL) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where NULL >= any (select b from t2);
-a
-explain extended select * from t3 where NULL >= any (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= any (select b from t2 group by 1);
-a
-explain extended select * from t3 where NULL >= any (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= some (select b from t2);
-a
-explain extended select * from t3 where NULL >= some (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= some (select b from t2 group by 1);
-a
-explain extended select * from t3 where NULL >= some (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-insert into t2 values (2,2), (2,1), (3,3), (3,1);
-select * from t3 where a > all (select max(b) from t2 group by a);
-a
-6
-7
-explain extended select * from t3 where a > all (select max(b) from t2 group by a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 4 100.00 Using temporary
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,<max>(/* select#2 */ select max(`test`.`t2`.`b`) from `test`.`t2` group by `test`.`t2`.`a`) >= <cache>(`test`.`t3`.`a`)))
-drop table t2, t3;
-CREATE TABLE `t1` ( `id` mediumint(9) NOT NULL auto_increment, `taskid` bigint(20) NOT NULL default '0', `dbid` int(11) NOT NULL default '0', `create_date` datetime NOT NULL default '0000-00-00 00:00:00', `last_update` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (`id`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=3 ;
-INSERT INTO `t1` (`id`, `taskid`, `dbid`, `create_date`,`last_update`) VALUES (1, 1, 15, '2003-09-29 10:31:36', '2003-09-29 10:31:36'), (2, 1, 21, now(), now());
-CREATE TABLE `t2` (`db_id` int(11) NOT NULL auto_increment,`name` varchar(200) NOT NULL default '',`primary_uid` smallint(6) NOT NULL default '0',`secondary_uid` smallint(6) NOT NULL default '0',PRIMARY KEY (`db_id`),UNIQUE KEY `name_2` (`name`),FULLTEXT KEY `name` (`name`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=2147483647;
-INSERT INTO `t2` (`db_id`, `name`, `primary_uid`, `secondary_uid`) VALUES (18, 'Not Set 1', 0, 0),(19, 'Valid', 1, 2),(20, 'Valid 2', 1, 2),(21, 'Should Not Return', 1, 2),(26, 'Not Set 2', 0, 0),(-1, 'ALL DB\'S', 0, 0);
-CREATE TABLE `t3` (`taskgenid` mediumint(9) NOT NULL auto_increment,`dbid` int(11) NOT NULL default '0',`taskid` int(11) NOT NULL default '0',`mon` tinyint(4) NOT NULL default '1',`tues` tinyint(4) NOT NULL default '1',`wed` tinyint(4) NOT NULL default '1',`thur` tinyint(4) NOT NULL default '1',`fri` tinyint(4) NOT NULL default '1',`sat` tinyint(4) NOT NULL default '0',`sun` tinyint(4) NOT NULL default '0',`how_often` smallint(6) NOT NULL default '1',`userid` smallint(6) NOT NULL default '0',`active` tinyint(4) NOT NULL default '1',PRIMARY KEY (`taskgenid`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=2 ;
-INSERT INTO `t3` (`taskgenid`, `dbid`, `taskid`, `mon`, `tues`,`wed`, `thur`, `fri`, `sat`, `sun`, `how_often`, `userid`, `active`) VALUES (1,-1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1);
-CREATE TABLE `t4` (`task_id` smallint(6) NOT NULL default '0',`description` varchar(200) NOT NULL default '') ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO `t4` (`task_id`, `description`) VALUES (1, 'Daily Check List'),(2, 'Weekly Status');
-select dbid, name, (date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01') from t3 a, t2 b, t4 WHERE dbid = - 1 AND primary_uid = '1' AND t4.task_id = taskid;
-dbid name (date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01')
--1 Valid 1
--1 Valid 2 1
--1 Should Not Return 0
-SELECT dbid, name FROM t3 a, t2 b, t4 WHERE dbid = - 1 AND primary_uid = '1' AND ((date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01')) AND t4.task_id = taskid;
-dbid name
--1 Valid
--1 Valid 2
-drop table t1,t2,t3,t4;
-CREATE TABLE t1 (id int(11) default NULL) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 (id int(11) default NULL) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (2),(6);
-select * from t1 where (1,2,6) in (select * from t2);
-ERROR 21000: Operand should contain 3 column(s)
-DROP TABLE t1,t2;
-create table t1 (s1 int);
-insert into t1 values (1);
-insert into t1 values (2);
-set sort_buffer_size = (select s1 from t1);
-ERROR 21000: Subquery returns more than 1 row
-do (select * from t1);
-Warnings:
-Error 1242 Subquery returns more than 1 row
-drop table t1;
-create table t1 (s1 char);
-insert into t1 values ('e');
-select * from t1 where 'f' > any (select s1 from t1);
-s1
-e
-select * from t1 where 'f' > any (select s1 from t1 union select s1 from t1);
-s1
-e
-explain extended select * from t1 where 'f' > any (select s1 from t1 union select s1 from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-3 UNION t1 system NULL NULL NULL NULL 1 100.00
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select 'e' AS `s1` from dual where 1
-drop table t1;
-CREATE TABLE t1 (number char(11) NOT NULL default '') ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES ('69294728265'),('18621828126'),('89356874041'),('95895001874');
-CREATE TABLE t2 (code char(5) NOT NULL default '',UNIQUE KEY code (code)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES ('1'),('1226'),('1245'),('1862'),('18623'),('1874'),('1967'),('6');
-select c.number as phone,(select p.code from t2 p where c.number like concat(p.code, '%') order by length(p.code) desc limit 1) as code from t1 c;
-phone code
-69294728265 6
-18621828126 1862
-89356874041 NULL
-95895001874 NULL
-drop table t1, t2;
-create table t1 (s1 int);
-create table t2 (s1 int);
-select * from t1 where (select count(*) from t2 where t1.s2) = 1;
-ERROR 42S22: Unknown column 't1.s2' in 'where clause'
-select * from t1 where (select count(*) from t2 group by t1.s2) = 1;
-ERROR 42S22: Unknown column 't1.s2' in 'group statement'
-select count(*) from t2 group by t1.s2;
-ERROR 42S22: Unknown column 't1.s2' in 'group statement'
-drop table t1, t2;
-CREATE TABLE t1(COLA FLOAT NOT NULL,COLB FLOAT NOT NULL,COLC VARCHAR(20) DEFAULT NULL,PRIMARY KEY (COLA, COLB));
-CREATE TABLE t2(COLA FLOAT NOT NULL,COLB FLOAT NOT NULL,COLC CHAR(1) NOT NULL,PRIMARY KEY (COLA));
-INSERT INTO t1 VALUES (1,1,'1A3240'), (1,2,'4W2365');
-INSERT INTO t2 VALUES (100, 200, 'C');
-SELECT DISTINCT COLC FROM t1 WHERE COLA = (SELECT COLA FROM t2 WHERE COLB = 200 AND COLC ='C' LIMIT 1);
-COLC
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a int(1));
-INSERT INTO t1 VALUES (1),(1),(1),(1),(1),(2),(3),(4),(5);
-SELECT DISTINCT (SELECT a) FROM t1 LIMIT 100;
-(SELECT a)
-1
-2
-3
-4
-5
-DROP TABLE t1;
-create table t1 (a int, b decimal(13, 3));
-insert into t1 values (1, 0.123);
-select a, (select max(b) from t1) into outfile "../../tmp/subselect.out.file.1" from t1;
-delete from t1;
-load data infile "../../tmp/subselect.out.file.1" into table t1;
-select * from t1;
-a b
-1 0.123
-drop table t1;
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL auto_increment,
-`id_cns` tinyint(3) unsigned NOT NULL default '0',
-`tipo` enum('','UNO','DUE') NOT NULL default '',
-`anno_dep` smallint(4) unsigned zerofill NOT NULL default '0000',
-`particolare` mediumint(8) unsigned NOT NULL default '0',
-`generale` mediumint(8) unsigned NOT NULL default '0',
-`bis` tinyint(3) unsigned NOT NULL default '0',
-PRIMARY KEY (`id`),
-UNIQUE KEY `idx_cns_gen_anno` (`anno_dep`,`id_cns`,`generale`,`particolare`),
-UNIQUE KEY `idx_cns_par_anno` (`id_cns`,`anno_dep`,`tipo`,`particolare`,`bis`)
-);
-INSERT INTO `t1` VALUES (1,16,'UNO',1987,2048,9681,0),(2,50,'UNO',1987,1536,13987,0),(3,16,'UNO',1987,2432,14594,0),(4,16,'UNO',1987,1792,13422,0),(5,16,'UNO',1987,1025,10240,0),(6,16,'UNO',1987,1026,7089,0);
-CREATE TABLE `t2` (
-`id` tinyint(3) unsigned NOT NULL auto_increment,
-`max_anno_dep` smallint(6) unsigned NOT NULL default '0',
-PRIMARY KEY (`id`)
-);
-INSERT INTO `t2` VALUES (16,1987),(50,1990),(51,1990);
-SELECT cns.id, cns.max_anno_dep, cns.max_anno_dep = (SELECT s.anno_dep FROM t1 AS s WHERE s.id_cns = cns.id ORDER BY s.anno_dep DESC LIMIT 1) AS PIPPO FROM t2 AS cns;
-id max_anno_dep PIPPO
-16 1987 1
-50 1990 0
-51 1990 NULL
-DROP TABLE t1, t2;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-SET SQL_SELECT_LIMIT=1;
-select sum(a) from (select * from t1) as a;
-sum(a)
-6
-select 2 in (select * from t1);
-2 in (select * from t1)
-1
-SET SQL_SELECT_LIMIT=default;
-drop table t1;
-CREATE TABLE t1 (a int, b int, INDEX (a));
-INSERT INTO t1 VALUES (1, 1), (1, 2), (1, 3);
-SELECT * FROM t1 WHERE a = (SELECT MAX(a) FROM t1 WHERE a = 1) ORDER BY b;
-a b
-1 1
-1 2
-1 3
-DROP TABLE t1;
-create table t1(val varchar(10));
-insert into t1 values ('aaa'), ('bbb'),('eee'),('mmm'),('ppp');
-select count(*) from t1 as w1 where w1.val in (select w2.val from t1 as w2 where w2.val like 'm%') and w1.val in (select w3.val from t1 as w3 where w3.val like 'e%');
-count(*)
-0
-drop table t1;
-create table t1 (id int not null, text varchar(20) not null default '', primary key (id));
-insert into t1 (id, text) values (1, 'text1'), (2, 'text2'), (3, 'text3'), (4, 'text4'), (5, 'text5'), (6, 'text6'), (7, 'text7'), (8, 'text8'), (9, 'text9'), (10, 'text10'), (11, 'text11'), (12, 'text12');
-select * from t1 where id not in (select id from t1 where id < 8);
-id text
-8 text8
-9 text9
-10 text10
-11 text11
-12 text12
-select * from t1 as tt where not exists (select id from t1 where id < 8 and (id = tt.id or id is null) having id is not null);
-id text
-8 text8
-9 text9
-10 text10
-11 text11
-12 text12
-explain extended select * from t1 where id not in (select id from t1 where id < 8);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 12 100.00 Using where
-2 DEPENDENT SUBQUERY t1 unique_subquery PRIMARY PRIMARY 4 func 1 100.00 Using index; Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`text` AS `text` from `test`.`t1` where !<in_optimizer>(`test`.`t1`.`id`,<exists>(<primary_index_lookup>(<cache>(`test`.`t1`.`id`) in t1 on PRIMARY where `test`.`t1`.`id` < 8 and <cache>(`test`.`t1`.`id`) = `test`.`t1`.`id`)))
-explain extended select * from t1 as tt where not exists (select id from t1 where id < 8 and (id = tt.id or id is null) having id is not null);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY tt ALL NULL NULL NULL NULL 12 100.00 Using where
-2 DEPENDENT SUBQUERY t1 eq_ref PRIMARY PRIMARY 4 test.tt.id 1 100.00 Using where; Using index
-Warnings:
-Note 1276 Field or reference 'test.tt.id' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`tt`.`id` AS `id`,`test`.`tt`.`text` AS `text` from `test`.`t1` `tt` where !<in_optimizer>(1,exists(/* select#2 */ select `test`.`t1`.`id` from `test`.`t1` where `test`.`t1`.`id` < 8 and `test`.`t1`.`id` = `test`.`tt`.`id` having `test`.`t1`.`id` is not null))
-insert into t1 (id, text) values (1000, 'text1000'), (1001, 'text1001');
-create table t2 (id int not null, text varchar(20) not null default '', primary key (id));
-insert into t2 (id, text) values (1, 'text1'), (2, 'text2'), (3, 'text3'), (4, 'text4'), (5, 'text5'), (6, 'text6'), (7, 'text7'), (8, 'text8'), (9, 'text9'), (10, 'text10'), (11, 'text1'), (12, 'text2'), (13, 'text3'), (14, 'text4'), (15, 'text5'), (16, 'text6'), (17, 'text7'), (18, 'text8'), (19, 'text9'), (20, 'text10'),(21, 'text1'), (22, 'text2'), (23, 'text3'), (24, 'text4'), (25, 'text5'), (26, 'text6'), (27, 'text7'), (28, 'text8'), (29, 'text9'), (30, 'text10'), (31, 'text1'), (32, 'text2'), (33, 'text3'), (34, 'text4'), (35, 'text5'), (36, 'text6'), (37, 'text7'), (38, 'text8'), (39, 'text9'), (40, 'text10'), (41, 'text1'), (42, 'text2'), (43, 'text3'), (44, 'text4'), (45, 'text5'), (46, 'text6'), (47, 'text7'), (48, 'text8'), (49, 'text9'), (50, 'text10');
-select * from t1 a left join t2 b on (a.id=b.id or b.id is null) join t1 c on (if(isnull(b.id), 1000, b.id)=c.id);
-id text id text id text
-1 text1 1 text1 1 text1
-2 text2 2 text2 2 text2
-3 text3 3 text3 3 text3
-4 text4 4 text4 4 text4
-5 text5 5 text5 5 text5
-6 text6 6 text6 6 text6
-7 text7 7 text7 7 text7
-8 text8 8 text8 8 text8
-9 text9 9 text9 9 text9
-10 text10 10 text10 10 text10
-11 text11 11 text1 11 text11
-12 text12 12 text2 12 text12
-1000 text1000 NULL NULL 1000 text1000
-1001 text1001 NULL NULL 1000 text1000
-explain extended select * from t1 a left join t2 b on (a.id=b.id or b.id is null) join t1 c on (if(isnull(b.id), 1000, b.id)=c.id);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE a ALL NULL NULL NULL NULL 14 100.00
-1 SIMPLE b eq_ref PRIMARY PRIMARY 4 test.a.id 2 100.00
-1 SIMPLE c eq_ref PRIMARY PRIMARY 4 func 1 100.00 Using index condition
-Warnings:
-Note 1003 select `test`.`a`.`id` AS `id`,`test`.`a`.`text` AS `text`,`test`.`b`.`id` AS `id`,`test`.`b`.`text` AS `text`,`test`.`c`.`id` AS `id`,`test`.`c`.`text` AS `text` from `test`.`t1` `a` left join `test`.`t2` `b` on(`test`.`b`.`id` = `test`.`a`.`id` or `test`.`b`.`id` is null) join `test`.`t1` `c` where if(`test`.`b`.`id` is null,1000,`test`.`b`.`id`) = `test`.`c`.`id`
-drop table t1,t2;
-create table t1 (a int);
-insert into t1 values (1);
-explain select benchmark(1000, (select a from t1 where a=sha(rand())));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 1
-drop table t1;
-create table t1(id int);
-create table t2(id int);
-create table t3(flag int);
-select (select * from t3 where id not null) from t1, t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'null) from t1, t2' at line 1
-drop table t1,t2,t3;
-CREATE TABLE t1 (id INT);
-CREATE TABLE t2 (id INT);
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (1);
-SELECT t1.id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id);
-id c
-1 1
-2 0
-SELECT id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id);
-id c
-1 1
-2 0
-SELECT t1.id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id) ORDER BY t1.id;
-id c
-1 1
-2 0
-SELECT id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id) ORDER BY id;
-id c
-1 1
-2 0
-DROP TABLE t1,t2;
-CREATE TABLE t1 ( a int, b int );
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-SELECT a FROM t1 WHERE a > ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-ALTER TABLE t1 ADD INDEX (a);
-SELECT a FROM t1 WHERE a > ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (1,2) > ANY (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE a > ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ALL (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE a > ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) <> ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ANY (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 2 column(s)
-SELECT a FROM t1 WHERE a = ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ANY (SELECT a,2 FROM t1 WHERE b = 2);
-a
-SELECT a FROM t1 WHERE (1,2) <> ALL (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 2 column(s)
-SELECT a FROM t1 WHERE a <> ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) <> ALL (SELECT a,2 FROM t1 WHERE b = 2);
-a
-1
-2
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 WHERE b = 2 UNION SELECT a,1 FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 WHERE b = 2 UNION SELECT a,1 FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 HAVING a = 2 UNION SELECT a,1 FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 HAVING a = 2 UNION SELECT a,1 FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-3
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a > t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a > t1.a), '-')
-0-
-0-
-1-
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a < t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a < t1.a), '-')
-1-
-0-
-0-
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a = t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a = t1.a), '-')
-0-
-1-
-0-
-DROP TABLE t1;
-CREATE TABLE t1 ( a double, b double );
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-3
-DROP TABLE t1;
-CREATE TABLE t1 ( a char(1), b char(1));
-INSERT INTO t1 VALUES ('1','1'),('2','2'),('3','3');
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = '2');
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = '2');
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = '2');
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = '2');
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = '2');
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = '2');
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-DROP TABLE t1;
-create table t1 (a int, b int);
-insert into t1 values (1,2),(3,4);
-select * from t1 up where exists (select * from t1 where t1.a=up.a);
-a b
-1 2
-3 4
-explain extended select * from t1 up where exists (select * from t1 where t1.a=up.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY up ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.up.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`up`.`a` AS `a`,`test`.`up`.`b` AS `b` from `test`.`t1` `up` where <in_optimizer>(`test`.`up`.`a`,<exists>(/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` where <cache>(`test`.`up`.`a`) = `test`.`t1`.`a`))
-drop table t1;
-CREATE TABLE t1 (t1_a int);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (t2_a int, t2_b int, PRIMARY KEY (t2_a, t2_b));
-INSERT INTO t2 VALUES (1, 1), (1, 2);
-SELECT * FROM t1, t2 table2 WHERE t1_a = 1 AND table2.t2_a = 1
-HAVING table2.t2_b = (SELECT MAX(t2_b) FROM t2 WHERE t2_a = table2.t2_a);
-t1_a t2_a t2_b
-1 1 2
-DROP TABLE t1, t2;
-CREATE TABLE t1 (id int(11) default NULL,name varchar(10) default NULL);
-INSERT INTO t1 VALUES (1,'Tim'),(2,'Rebecca'),(3,NULL);
-CREATE TABLE t2 (id int(11) default NULL, pet varchar(10) default NULL);
-INSERT INTO t2 VALUES (1,'Fido'),(2,'Spot'),(3,'Felix');
-SELECT a.*, b.* FROM (SELECT * FROM t1) AS a JOIN t2 as b on a.id=b.id;
-id name id pet
-1 Tim 1 Fido
-2 Rebecca 2 Spot
-3 NULL 3 Felix
-drop table t1,t2;
-CREATE TABLE t1 ( a int, b int );
-CREATE TABLE t2 ( c int, d int );
-INSERT INTO t1 VALUES (1,2), (2,3), (3,4);
-SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-abc b
-1 2
-2 3
-3 4
-INSERT INTO t2 SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-select * from t2;
-c d
-1 2
-2 3
-3 4
-CREATE TABLE t3 SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-select * from t3;
-abc b
-1 2
-2 3
-3 4
-prepare stmt1 from "INSERT INTO t2 SELECT a AS abc, b FROM t1 outr WHERE b = (SELECT MIN(b) FROM t1 WHERE a=outr.a);";
-execute stmt1;
-deallocate prepare stmt1;
-select * from t2;
-c d
-1 2
-2 3
-3 4
-1 2
-2 3
-3 4
-drop table t3;
-prepare stmt1 from "CREATE TABLE t3 SELECT a AS abc, b FROM t1 outr WHERE b = (SELECT MIN(b) FROM t1 WHERE a=outr.a);";
-execute stmt1;
-select * from t3;
-abc b
-1 2
-2 3
-3 4
-deallocate prepare stmt1;
-DROP TABLE t1, t2, t3;
-CREATE TABLE `t1` ( `a` int(11) default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-insert into t1 values (1);
-CREATE TABLE `t2` ( `b` int(11) default NULL, `a` int(11) default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-insert into t2 values (1,2);
-select t000.a, count(*) `C` FROM t1 t000 GROUP BY t000.a HAVING count(*) > ALL (SELECT count(*) FROM t2 t001 WHERE t001.a=1);
-a C
-1 1
-drop table t1,t2;
-create table t1 (a int not null auto_increment primary key, b varchar(40), fulltext(b));
-insert into t1 (b) values ('ball'),('ball games'), ('games'), ('foo'), ('foobar'), ('Serg'), ('Sergei'),('Georg'), ('Patrik'),('Hakan');
-create table t2 (a int);
-insert into t2 values (1),(3),(2),(7);
-select a,b from t1 where match(b) against ('Ball') > 0;
-a b
-1 ball
-2 ball games
-select a from t2 where a in (select a from t1 where match(b) against ('Ball') > 0);
-a
-1
-2
-drop table t1,t2;
-CREATE TABLE t1(`IZAVORGANG_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin,`KUERZEL` VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_bin,`IZAANALYSEART_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin,`IZAPMKZ_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin);
-CREATE INDEX AK01IZAVORGANG ON t1(izaAnalyseart_id,Kuerzel);
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000001','601','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000002','602','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000003','603','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000004','101','D0000000001','I0000000001');
-SELECT `IZAVORGANG_ID` FROM t1 WHERE `KUERZEL` IN(SELECT MIN(`KUERZEL`)`Feld1` FROM t1 WHERE `KUERZEL` LIKE'601%'And`IZAANALYSEART_ID`='D0000000001');
-IZAVORGANG_ID
-D0000000001
-drop table t1;
-CREATE TABLE `t1` ( `aid` int(11) NOT NULL default '0', `bid` int(11) NOT NULL default '0', PRIMARY KEY (`aid`,`bid`));
-CREATE TABLE `t2` ( `aid` int(11) NOT NULL default '0', `bid` int(11) NOT NULL default '0', PRIMARY KEY (`aid`,`bid`));
-insert into t1 values (1,1),(1,2),(2,1),(2,2);
-insert into t2 values (1,2),(2,2);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-alter table t2 drop primary key;
-alter table t2 add key KEY1 (aid, bid);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-alter table t2 drop key KEY1;
-alter table t2 add primary key (bid, aid);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-drop table t1,t2;
-CREATE TABLE t1 (howmanyvalues bigint, avalue int);
-INSERT INTO t1 VALUES (1, 1),(2, 1),(2, 2),(3, 1),(3, 2),(3, 3),(4, 1),(4, 2),(4, 3),(4, 4);
-SELECT howmanyvalues, count(*) from t1 group by howmanyvalues;
-howmanyvalues count(*)
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.howmanyvalues) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-CREATE INDEX t1_howmanyvalues_idx ON t1 (howmanyvalues);
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues+1 = a.howmanyvalues+1) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.howmanyvalues) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.avalue) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 1
-3 1
-4 1
-drop table t1;
-create table t1 (x int);
-select (select b.x from t1 as b where b.x=a.x) from t1 as a where a.x=2 group by a.x;
-(select b.x from t1 as b where b.x=a.x)
-drop table t1;
-CREATE TABLE `t1` ( `master` int(10) unsigned NOT NULL default '0', `map` smallint(6) unsigned NOT NULL default '0', `slave` int(10) unsigned NOT NULL default '0', `access` int(10) unsigned NOT NULL default '0', UNIQUE KEY `access_u` (`master`,`map`,`slave`));
-INSERT INTO `t1` VALUES (1,0,0,700),(1,1,1,400),(1,5,5,400),(1,12,12,400),(1,12,32,400),(4,12,32,400);
-CREATE TABLE `t2` ( `id` int(10) unsigned NOT NULL default '0', `pid` int(10) unsigned NOT NULL default '0', `map` smallint(6) unsigned NOT NULL default '0', `level` tinyint(4) unsigned NOT NULL default '0', `title` varchar(255) default NULL, PRIMARY KEY (`id`,`pid`,`map`), KEY `level` (`level`), KEY `id` (`id`,`map`)) ;
-INSERT INTO `t2` VALUES (6,5,12,7,'a'),(12,0,0,7,'a'),(12,1,0,7,'a'),(12,5,5,7,'a'),(12,5,12,7,'a');
-SELECT b.sc FROM (SELECT (SELECT a.access FROM t1 a WHERE a.map = op.map AND a.slave = op.pid AND a.master = 1) ac FROM t2 op WHERE op.id = 12 AND op.map = 0) b;
-ERROR 42S22: Unknown column 'b.sc' in 'field list'
-SELECT b.ac FROM (SELECT (SELECT a.access FROM t1 a WHERE a.map = op.map AND a.slave = op.pid AND a.master = 1) ac FROM t2 op WHERE op.id = 12 AND op.map = 0) b;
-ac
-700
-NULL
-drop tables t1,t2;
-create table t1 (a int not null, b int not null, c int, primary key (a,b));
-insert into t1 values (1,1,1), (2,2,2), (3,3,3);
-set @b:= 0;
-explain select sum(a) from t1 where b > @b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 8 NULL 3 Using where; Using index
-set @a:= (select sum(a) from t1 where b > @b);
-explain select a from t1 where c=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-do @a:= (select sum(a) from t1 where b > @b);
-explain select a from t1 where c=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-drop table t1;
-connect root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root;
-set @got_val= (SELECT 1 FROM (SELECT 'A' as my_col) as T1 ) ;
-disconnect root;
-connection default;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1,1),(1,2),(1,3),(2,4),(2,5);
-insert into t2 values (1,3),(2,1);
-select distinct a,b, (select max(b) from t2 where t1.b=t2.a) from t1 order by t1.b;
-a b (select max(b) from t2 where t1.b=t2.a)
-1 1 3
-1 2 1
-1 3 NULL
-2 4 NULL
-2 5 NULL
-drop table t1, t2;
-create table t1 (id int);
-create table t2 (id int, body text, fulltext (body));
-insert into t1 values(1),(2),(3);
-insert into t2 values (1,'test'), (2,'mysql'), (3,'test'), (4,'test');
-select count(distinct id) from t1 where id in (select id from t2 where match(body) against ('mysql' in boolean mode));
-count(distinct id)
-1
-drop table t2,t1;
-create table t1 (s1 int,s2 int);
-insert into t1 values (20,15);
-select * from t1 where (('a',null) <=> (select 'a',s2 from t1 where s1 = 0));
-s1 s2
-drop table t1;
-create table t1 (s1 int);
-insert into t1 values (1),(null);
-select * from t1 where s1 < all (select s1 from t1);
-s1
-select s1, s1 < all (select s1 from t1) from t1;
-s1 s1 < all (select s1 from t1)
-1 0
-NULL NULL
-drop table t1;
-CREATE TABLE t1 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL default 'Asia',
-Region char(26) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-IndepYear smallint(6) default NULL,
-Population int(11) NOT NULL default '0',
-LifeExpectancy float(3,1) default NULL,
-GNP float(10,2) default NULL,
-GNPOld float(10,2) default NULL,
-LocalName char(45) NOT NULL default '',
-GovernmentForm char(45) NOT NULL default '',
-HeadOfState char(60) default NULL,
-Capital int(11) default NULL,
-Code2 char(2) NOT NULL default ''
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('XXX','Xxxxx','Oceania','Xxxxxx',26.00,0,0,0,0,0,'Xxxxx','Xxxxx','Xxxxx',NULL,'XX');
-INSERT INTO t1 VALUES ('ASM','American Samoa','Oceania','Polynesia',199.00,0,68000,75.1,334.00,NULL,'Amerika Samoa','US Territory','George W. Bush',54,'AS');
-INSERT INTO t1 VALUES ('ATF','French Southern territories','Antarctica','Antarctica',7780.00,0,0,NULL,0.00,NULL,'Terres australes françaises','Nonmetropolitan Territory of France','Jacques Chirac',NULL,'TF');
-INSERT INTO t1 VALUES ('UMI','United States Minor Outlying Islands','Oceania','Micronesia/Caribbean',16.00,0,0,NULL,0.00,NULL,'United States Minor Outlying Islands','Dependent Territory of the US','George W. Bush',NULL,'UM');
-/*!40000 ALTER TABLE t1 ENABLE KEYS */;
-SELECT DISTINCT Continent AS c FROM t1 outr WHERE
-Code <> SOME ( SELECT Code FROM t1 WHERE Continent = outr.Continent AND
-Population < 200);
-c
-Oceania
-drop table t1;
-create table t1 (a1 int);
-create table t2 (b1 int);
-select * from t1 where a2 > any(select b1 from t2);
-ERROR 42S22: Unknown column 'a2' in 'IN/ALL/ANY subquery'
-select * from t1 where a1 > any(select b1 from t2);
-a1
-drop table t1,t2;
-create table t1 (a integer, b integer);
-select (select * from t1) = (select 1,2);
-(select * from t1) = (select 1,2)
-NULL
-select (select 1,2) = (select * from t1);
-(select 1,2) = (select * from t1)
-NULL
-select row(1,2) = ANY (select * from t1);
-row(1,2) = ANY (select * from t1)
-0
-select row(1,2) != ALL (select * from t1);
-row(1,2) != ALL (select * from t1)
-1
-drop table t1;
-create table t1 (a integer, b integer);
-select row(1,(2,2)) in (select * from t1 );
-ERROR 21000: Operand should contain 2 column(s)
-select row(1,(2,2)) = (select * from t1 );
-ERROR 21000: Operand should contain 2 column(s)
-select (select * from t1) = row(1,(2,2));
-ERROR 21000: Operand should contain 1 column(s)
-drop table t1;
-create table t1 (a integer);
-insert into t1 values (1);
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx ;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 as xx, 1 = ALL ( select 1 from t1 where 1 = xx );
-xx 1 = ALL ( select 1 from t1 where 1 = xx )
-1 1
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx from DUAL;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-drop table t1;
-CREATE TABLE t1 (
-categoryId int(11) NOT NULL,
-courseId int(11) NOT NULL,
-startDate datetime NOT NULL,
-endDate datetime NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL,
-attributes text NOT NULL
-);
-INSERT INTO t1 VALUES (1,41,'2004-02-09','2010-01-01','2004-02-09','2004-02-09',''),
-(1,86,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(1,87,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(2,52,'2004-03-15','2004-10-01','2004-03-15','2004-09-17',''),
-(2,53,'2004-03-16','2004-10-01','2004-03-16','2004-09-17',''),
-(2,88,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(2,89,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(3,51,'2004-02-09','2010-01-01','2004-02-09','2004-02-09',''),
-(5,12,'2004-02-18','2010-01-01','2004-02-18','2004-02-18','');
-CREATE TABLE t2 (
-userId int(11) NOT NULL,
-courseId int(11) NOT NULL,
-date datetime NOT NULL
-);
-INSERT INTO t2 VALUES (5141,71,'2003-11-18'),
-(5141,72,'2003-11-25'),(5141,41,'2004-08-06'),
-(5141,52,'2004-08-06'),(5141,53,'2004-08-06'),
-(5141,12,'2004-08-06'),(5141,86,'2004-10-21'),
-(5141,87,'2004-10-21'),(5141,88,'2004-10-21'),
-(5141,89,'2004-10-22'),(5141,51,'2004-10-26');
-CREATE TABLE t3 (
-groupId int(11) NOT NULL,
-parentId int(11) NOT NULL,
-startDate datetime NOT NULL,
-endDate datetime NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL,
-ordering int(11)
-);
-INSERT INTO t3 VALUES (12,9,'1000-01-01','3999-12-31','2004-01-29','2004-01-29',NULL);
-CREATE TABLE t4 (
-id int(11) NOT NULL,
-groupTypeId int(11) NOT NULL,
-groupKey varchar(50) NOT NULL,
-name text,
-ordering int(11),
-description text,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL
-);
-INSERT INTO t4 VALUES (9,5,'stationer','stationer',0,'Stationer','2004-01-29','2004-01-29'),
-(12,5,'group2','group2',0,'group2','2004-01-29','2004-01-29');
-CREATE TABLE t5 (
-userId int(11) NOT NULL,
-groupId int(11) NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL
-);
-INSERT INTO t5 VALUES (5141,12,'2004-08-06','2004-08-06');
-select
-count(distinct t2.userid) pass,
-groupstuff.*,
-count(t2.courseid) crse,
-t1.categoryid,
-t2.courseid,
-date_format(date, '%b%y') as colhead
-from t2
-join t1 on t2.courseid=t1.courseid
-join
-(
-select
-t5.userid,
-parentid,
-parentgroup,
-childid,
-groupname,
-grouptypeid
-from t5
-join
-(
-select t4.id as parentid,
-t4.name as parentgroup,
-t4.id as childid,
-t4.name as groupname,
-t4.grouptypeid
-from t4
-) as gin on t5.groupid=gin.childid
-) as groupstuff on t2.userid = groupstuff.userid
-group by
-groupstuff.groupname, colhead , t2.courseid;
-pass userid parentid parentgroup childid groupname grouptypeid crse categoryid courseid colhead
-1 5141 12 group2 12 group2 5 1 5 12 Aug04
-1 5141 12 group2 12 group2 5 1 1 41 Aug04
-1 5141 12 group2 12 group2 5 1 2 52 Aug04
-1 5141 12 group2 12 group2 5 1 2 53 Aug04
-1 5141 12 group2 12 group2 5 1 3 51 Oct04
-1 5141 12 group2 12 group2 5 1 1 86 Oct04
-1 5141 12 group2 12 group2 5 1 1 87 Oct04
-1 5141 12 group2 12 group2 5 1 2 88 Oct04
-1 5141 12 group2 12 group2 5 1 2 89 Oct04
-drop table t1, t2, t3, t4, t5;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-SELECT 1 FROM t1 WHERE (SELECT 1) in (SELECT 1);
-1
-1
-1
-1
-drop table t1;
-create table t1 (a int);
-create table t2 (a int);
-insert into t1 values (1),(2);
-insert into t2 values (0),(1),(2),(3);
-select a from t2 where a in (select a from t1);
-a
-1
-2
-select a from t2 having a in (select a from t1);
-a
-1
-2
-prepare stmt1 from "select a from t2 where a in (select a from t1)";
-execute stmt1;
-a
-1
-2
-execute stmt1;
-a
-1
-2
-deallocate prepare stmt1;
-prepare stmt1 from "select a from t2 having a in (select a from t1)";
-execute stmt1;
-a
-1
-2
-execute stmt1;
-a
-1
-2
-deallocate prepare stmt1;
-drop table t1, t2;
-create table t1 (a int, b int);
-insert into t1 values (1,2);
-select 1 = (select * from t1);
-ERROR HY000: Illegal parameter data types int and row for operation '='
-select (select * from t1) = 1;
-ERROR HY000: Illegal parameter data types row and int for operation '='
-select (1,2) = (select a from t1);
-ERROR HY000: Illegal parameter data types row and int for operation '='
-select (select a from t1) = (1,2);
-ERROR HY000: Illegal parameter data types int and row for operation '='
-select (1,2,3) = (select * from t1);
-ERROR 21000: Operand should contain 3 column(s)
-select (select * from t1) = (1,2,3);
-ERROR 21000: Operand should contain 2 column(s)
-drop table t1;
-CREATE TABLE `t1` (
-`itemid` bigint(20) unsigned NOT NULL auto_increment,
-`sessionid` bigint(20) unsigned default NULL,
-`time` int(10) unsigned NOT NULL default '0',
-`type` set('A','D','E','F','G','I','L','N','U') collate latin1_general_ci NOT
-NULL default '',
-`data` text collate latin1_general_ci NOT NULL,
-PRIMARY KEY (`itemid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t1` VALUES (1, 1, 1, 'D', '');
-CREATE TABLE `t2` (
-`sessionid` bigint(20) unsigned NOT NULL auto_increment,
-`pid` int(10) unsigned NOT NULL default '0',
-`date` int(10) unsigned NOT NULL default '0',
-`ip` varchar(15) collate latin1_general_ci NOT NULL default '',
-PRIMARY KEY (`sessionid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t2` VALUES (1, 1, 1, '10.10.10.1');
-SELECT s.ip, count( e.itemid ) FROM `t1` e JOIN t2 s ON s.sessionid = e.sessionid WHERE e.sessionid = ( SELECT sessionid FROM t2 ORDER BY sessionid DESC LIMIT 1 ) GROUP BY s.ip HAVING count( e.itemid ) >0 LIMIT 0 , 30;
-ip count( e.itemid )
-10.10.10.1 1
-drop tables t1,t2;
-create table t1 (fld enum('0','1'));
-insert into t1 values ('1');
-select * from (select max(fld) from t1) as foo;
-max(fld)
-1
-drop table t1;
-set @tmp11867_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin_with_cache=off';
-CREATE TABLE t1 (one int, two int, flag char(1));
-CREATE TABLE t2 (one int, two int, flag char(1));
-INSERT INTO t1 VALUES(1,2,'Y'),(2,3,'Y'),(3,4,'Y'),(5,6,'N'),(7,8,'N');
-INSERT INTO t2 VALUES(1,2,'Y'),(2,3,'Y'),(3,4,'Y'),(5,6,'N'),(7,8,'N');
-SELECT * FROM t1
-WHERE ROW(one,two) IN (SELECT DISTINCT one,two FROM t2 WHERE flag = 'N');
-one two flag
-5 6 N
-7 8 N
-SELECT * FROM t1
-WHERE ROW(one,two) IN (SELECT DISTINCT one,two FROM t1 WHERE flag = 'N');
-one two flag
-5 6 N
-7 8 N
-insert into t2 values (null,null,'N');
-insert into t2 values (null,3,'0');
-insert into t2 values (null,5,'0');
-insert into t2 values (10,null,'0');
-insert into t1 values (10,3,'0');
-insert into t1 values (10,5,'0');
-insert into t1 values (10,10,'0');
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N') as 'test' from t1;
-one two test
-1 2 NULL
-2 3 NULL
-3 4 NULL
-5 6 1
-7 8 1
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two from t1 where ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N');
-one two
-5 6
-7 8
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N' group by one,two) as 'test' from t1;
-one two test
-1 2 NULL
-2 3 NULL
-3 4 NULL
-5 6 1
-7 8 1
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0') as 'test' from t1;
-one two test
-1 2 0
-2 3 NULL
-3 4 0
-5 6 0
-7 8 0
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0' group by one,two) as 'test' from t1;
-one two test
-1 2 0
-2 3 NULL
-3 4 0
-5 6 0
-7 8 0
-10 3 NULL
-10 5 NULL
-10 10 NULL
-explain extended SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0') as 'test' from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two`,<in_optimizer>((`test`.`t1`.`one`,`test`.`t1`.`two`),<exists>(/* select#2 */ select `test`.`t2`.`one`,`test`.`t2`.`two` from `test`.`t2` where `test`.`t2`.`flag` = '0' and trigcond(trigcond(<cache>(`test`.`t1`.`one`) = `test`.`t2`.`one` or `test`.`t2`.`one` is null)) and trigcond(trigcond(<cache>(`test`.`t1`.`two`) = `test`.`t2`.`two` or `test`.`t2`.`two` is null)) having trigcond(`test`.`t2`.`one` is null) and trigcond(`test`.`t2`.`two` is null))) AS `test` from `test`.`t1`
-explain extended SELECT one,two from t1 where ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two` from `test`.`t1` where <in_optimizer>((`test`.`t1`.`one`,`test`.`t1`.`two`),<exists>(/* select#2 */ select `test`.`t2`.`one`,`test`.`t2`.`two` from `test`.`t2` where `test`.`t2`.`flag` = 'N' and <cache>(`test`.`t1`.`one`) = `test`.`t2`.`one` and <cache>(`test`.`t1`.`two`) = `test`.`t2`.`two`))
-explain extended SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0' group by one,two) as 'test' from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two`,<in_optimizer>((`test`.`t1`.`one`,`test`.`t1`.`two`),<exists>(/* select#2 */ select `test`.`t2`.`one`,`test`.`t2`.`two` from `test`.`t2` where `test`.`t2`.`flag` = '0' and trigcond(trigcond(<cache>(`test`.`t1`.`one`) = `test`.`t2`.`one` or `test`.`t2`.`one` is null)) and trigcond(trigcond(<cache>(`test`.`t1`.`two`) = `test`.`t2`.`two` or `test`.`t2`.`two` is null)) having trigcond(`test`.`t2`.`one` is null) and trigcond(`test`.`t2`.`two` is null))) AS `test` from `test`.`t1`
-DROP TABLE t1,t2;
-set optimizer_switch=@tmp11867_optimizer_switch;
-CREATE TABLE t1 (a char(5), b char(5));
-INSERT INTO t1 VALUES (NULL,'aaa'), ('aaa','aaa');
-SELECT * FROM t1 WHERE (a,b) IN (('aaa','aaa'), ('aaa','bbb'));
-a b
-aaa aaa
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int, b int);
-CREATE TABLE t3 (b int NOT NULL);
-INSERT INTO t1 VALUES (1), (2), (3), (4);
-INSERT INTO t2 VALUES (1,10), (3,30);
-SELECT * FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t3.b IS NOT NULL OR t2.a > 10;
-a b b
-SELECT * FROM t1
-WHERE t1.a NOT IN (SELECT a FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t3.b IS NOT NULL OR t2.a > 10);
-a
-1
-2
-3
-4
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (f1 INT);
-CREATE TABLE t2 (f2 INT);
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2);
-f1
-1
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2 WHERE 1=0);
-f1
-1
-INSERT INTO t2 VALUES (1);
-INSERT INTO t2 VALUES (2);
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2 WHERE f2=0);
-f1
-1
-DROP TABLE t1, t2;
-select 1 from dual where 1 < any (select 2);
-1
-1
-select 1 from dual where 1 < all (select 2);
-1
-1
-select 1 from dual where 2 > any (select 1);
-1
-1
-select 1 from dual where 2 > all (select 1);
-1
-1
-select 1 from dual where 1 < any (select 2 from dual);
-1
-1
-select 1 from dual where 1 < all (select 2 from dual where 1!=1);
-1
-1
-create table t1 (s1 char);
-insert into t1 values (1),(2);
-select * from t1 where (s1 < any (select s1 from t1));
-s1
-1
-select * from t1 where not (s1 < any (select s1 from t1));
-s1
-2
-select * from t1 where (s1 < ALL (select s1+1 from t1));
-s1
-1
-select * from t1 where not(s1 < ALL (select s1+1 from t1));
-s1
-2
-select * from t1 where (s1+1 = ANY (select s1 from t1));
-s1
-1
-select * from t1 where NOT(s1+1 = ANY (select s1 from t1));
-s1
-2
-select * from t1 where (s1 = ALL (select s1/s1 from t1));
-s1
-1
-select * from t1 where NOT(s1 = ALL (select s1/s1 from t1));
-s1
-2
-drop table t1;
-create table t1 (
-retailerID varchar(8) NOT NULL,
-statusID int(10) unsigned NOT NULL,
-changed datetime NOT NULL,
-UNIQUE KEY retailerID (retailerID, statusID, changed)
-);
-INSERT INTO t1 VALUES("0026", "1", "2005-12-06 12:18:56");
-INSERT INTO t1 VALUES("0026", "2", "2006-01-06 12:25:53");
-INSERT INTO t1 VALUES("0037", "1", "2005-12-06 12:18:56");
-INSERT INTO t1 VALUES("0037", "2", "2006-01-06 12:25:53");
-INSERT INTO t1 VALUES("0048", "1", "2006-01-06 12:37:50");
-INSERT INTO t1 VALUES("0059", "1", "2006-01-06 12:37:50");
-select * from t1 r1
-where (r1.retailerID,(r1.changed)) in
-(SELECT r2.retailerId,(max(changed)) from t1 r2
-group by r2.retailerId);
-retailerID statusID changed
-0026 2 2006-01-06 12:25:53
-0037 2 2006-01-06 12:25:53
-0048 1 2006-01-06 12:37:50
-0059 1 2006-01-06 12:37:50
-drop table t1;
-create table t1(a int, primary key (a));
-insert into t1 values (10);
-create table t2 (a int primary key, b varchar(32), c int, unique key b(c, b));
-insert into t2(a, c, b) values (1,10,'359'), (2,10,'35988'), (3,10,'35989');
-explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
-1 PRIMARY r const PRIMARY PRIMARY 4 const 1
-2 SUBQUERY t2 range b b 40 NULL 2 Using where
-SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
-a a b
-10 3 35989
-explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
-1 PRIMARY r const PRIMARY PRIMARY 4 const 1
-2 SUBQUERY t2 range b b 40 NULL 2 Using index condition
-SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
-a a b
-10 1 359
-drop table t1,t2;
-CREATE TABLE t1 (
-field1 int NOT NULL,
-field2 int NOT NULL,
-field3 int NOT NULL,
-PRIMARY KEY (field1,field2,field3)
-);
-CREATE TABLE t2 (
-fieldA int NOT NULL,
-fieldB int NOT NULL,
-PRIMARY KEY (fieldA,fieldB)
-);
-INSERT INTO t1 VALUES
-(1,1,1), (1,1,2), (1,2,1), (1,2,2), (1,2,3), (1,3,1);
-INSERT INTO t2 VALUES (1,1), (1,2), (1,3);
-SELECT field1, field2, COUNT(*)
-FROM t1 GROUP BY field1, field2;
-field1 field2 COUNT(*)
-1 1 2
-1 2 3
-1 3 1
-SELECT field1, field2
-FROM t1
-GROUP BY field1, field2
-HAVING COUNT(*) >= ALL (SELECT fieldB
-FROM t2 WHERE fieldA = field1);
-field1 field2
-1 2
-SELECT field1, field2
-FROM t1
-GROUP BY field1, field2
-HAVING COUNT(*) < ANY (SELECT fieldB
-FROM t2 WHERE fieldA = field1);
-field1 field2
-1 1
-1 3
-DROP TABLE t1, t2;
-CREATE TABLE t1(a int, INDEX (a));
-INSERT INTO t1 VALUES (1), (3), (5), (7);
-INSERT INTO t1 VALUES (NULL);
-CREATE TABLE t2(a int);
-INSERT INTO t2 VALUES (1),(2),(3);
-EXPLAIN SELECT a, a IN (SELECT a FROM t1) FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3
-2 SUBQUERY t1 index_subquery a a 5 func 2 Using index; Full scan on NULL key
-SELECT a, a IN (SELECT a FROM t1) FROM t2;
-a a IN (SELECT a FROM t1)
-1 1
-2 NULL
-3 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES ('1998-09-23'), ('2003-03-25');
-CREATE TABLE t2 AS SELECT
-(SELECT a FROM t1 WHERE a < '2000-01-01') AS sub_a
-FROM t1 WHERE a > '2000-01-01';
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `sub_a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t3 AS (SELECT a FROM t1 WHERE a < '2000-01-01') UNION (SELECT a FROM t1 WHERE a > '2000-01-01');
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) > 0;
-a
-SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) IS NULL;
-a
-1
-2
-EXPLAIN SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (2), (4), (1), (3);
-CREATE TABLE t2 (b int, c int);
-INSERT INTO t2 VALUES
-(2,1), (1,3), (2,1), (4,4), (2,2), (1,4);
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 2 );
-a
-2
-4
-1
-3
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 1);
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 2), a;
-a
-1
-2
-3
-4
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 1), a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT b, MAX(c) FROM t2 GROUP BY b, (SELECT c FROM t2 WHERE b > 2);
-b MAX(c)
-1 4
-2 2
-4 4
-SELECT b, MAX(c) FROM t2 GROUP BY b, (SELECT c FROM t2 WHERE b > 1);
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 2),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-a
-1
-2
-3
-4
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 1),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-a
-4
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b)) > 3;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 2),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b));
-a
-1
-2
-3
-4
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 1),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b));
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b));
-a
-1
-2
-3
-4
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b));
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1,t2;
-create table t1 (df decimal(5,1));
-insert into t1 values(1.1);
-insert into t1 values(2.2);
-select * from t1 where df <= all (select avg(df) from t1 group by df);
-df
-1.1
-select * from t1 where df >= all (select avg(df) from t1 group by df);
-df
-2.2
-drop table t1;
-create table t1 (df decimal(5,1));
-insert into t1 values(1.1);
-select 1.1 * exists(select * from t1);
-1.1 * exists(select * from t1)
-1.1
-drop table t1;
-CREATE TABLE t1 (
-grp int(11) default NULL,
-a decimal(10,2) default NULL);
-insert into t1 values (1, 1), (2, 2), (2, 3), (3, 4), (3, 5), (3, 6), (NULL, NULL);
-select * from t1;
-grp a
-1 1.00
-2 2.00
-2 3.00
-3 4.00
-3 5.00
-3 6.00
-NULL NULL
-select min(a) from t1 group by grp;
-min(a)
-NULL
-1.00
-2.00
-4.00
-drop table t1;
-CREATE table t1 ( c1 integer );
-INSERT INTO t1 VALUES ( 1 );
-INSERT INTO t1 VALUES ( 2 );
-INSERT INTO t1 VALUES ( 3 );
-CREATE TABLE t2 ( c2 integer );
-INSERT INTO t2 VALUES ( 1 );
-INSERT INTO t2 VALUES ( 4 );
-INSERT INTO t2 VALUES ( 5 );
-SELECT * FROM t1 LEFT JOIN t2 ON c1 = c2 WHERE c2 IN (1);
-c1 c2
-1 1
-SELECT * FROM t1 LEFT JOIN t2 ON c1 = c2
-WHERE c2 IN ( SELECT c2 FROM t2 WHERE c2 IN ( 1 ) );
-c1 c2
-1 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 ( c1 integer );
-INSERT INTO t1 VALUES ( 1 );
-INSERT INTO t1 VALUES ( 2 );
-INSERT INTO t1 VALUES ( 3 );
-INSERT INTO t1 VALUES ( 6 );
-CREATE TABLE t2 ( c2 integer );
-INSERT INTO t2 VALUES ( 1 );
-INSERT INTO t2 VALUES ( 4 );
-INSERT INTO t2 VALUES ( 5 );
-INSERT INTO t2 VALUES ( 6 );
-CREATE TABLE t3 ( c3 integer );
-INSERT INTO t3 VALUES ( 7 );
-INSERT INTO t3 VALUES ( 8 );
-SELECT c1,c2 FROM t1 LEFT JOIN t2 ON c1 = c2
-WHERE EXISTS (SELECT c3 FROM t3 WHERE c2 IS NULL );
-c1 c2
-2 NULL
-3 NULL
-DROP TABLE t1,t2,t3;
-CREATE TABLE `t1` (
-`itemid` bigint(20) unsigned NOT NULL auto_increment,
-`sessionid` bigint(20) unsigned default NULL,
-`time` int(10) unsigned NOT NULL default '0',
-`type` set('A','D','E','F','G','I','L','N','U') collate latin1_general_ci NOT
-NULL default '',
-`data` text collate latin1_general_ci NOT NULL,
-PRIMARY KEY (`itemid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t1` VALUES (1, 1, 1, 'D', '');
-CREATE TABLE `t2` (
-`sessionid` bigint(20) unsigned NOT NULL auto_increment,
-`pid` int(10) unsigned NOT NULL default '0',
-`date` int(10) unsigned NOT NULL default '0',
-`ip` varchar(15) collate latin1_general_ci NOT NULL default '',
-PRIMARY KEY (`sessionid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t2` VALUES (1, 1, 1, '10.10.10.1');
-SELECT s.ip, count( e.itemid ) FROM `t1` e JOIN t2 s ON s.sessionid = e.sessionid WHERE e.sessionid = ( SELECT sessionid FROM t2 ORDER BY sessionid DESC LIMIT 1 ) GROUP BY s.ip HAVING count( e.itemid ) >0 LIMIT 0 , 30;
-ip count( e.itemid )
-10.10.10.1 1
-drop tables t1,t2;
-CREATE TABLE t1 (EMPNUM CHAR(3));
-CREATE TABLE t2 (EMPNUM CHAR(3) );
-INSERT INTO t1 VALUES ('E1'),('E2');
-INSERT INTO t2 VALUES ('E1');
-DELETE FROM t1
-WHERE t1.EMPNUM NOT IN
-(SELECT t2.EMPNUM
-FROM t2
-WHERE t1.EMPNUM = t2.EMPNUM);
-select * from t1;
-EMPNUM
-E1
-DROP TABLE t1,t2;
-CREATE TABLE t1(select_id BIGINT, values_id BIGINT);
-INSERT INTO t1 VALUES (1, 1);
-CREATE TABLE t2 (select_id BIGINT, values_id BIGINT,
-PRIMARY KEY(select_id,values_id));
-INSERT INTO t2 VALUES (0, 1), (0, 2), (0, 3), (1, 5);
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id IN (1, 0));
-values_id
-1
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id BETWEEN 0 AND 1);
-values_id
-1
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id = 0 OR select_id = 1);
-values_id
-1
-DROP TABLE t1, t2;
-create table t1 (fld enum('0','1'));
-insert into t1 values ('1');
-select * from (select max(fld) from t1) as foo;
-max(fld)
-1
-drop table t1;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (c int, d int);
-CREATE TABLE t3 (e int);
-INSERT INTO t1 VALUES
-(1,10), (2,10), (1,20), (2,20), (3,20), (2,30), (4,40);
-INSERT INTO t2 VALUES
-(2,10), (2,20), (4,10), (5,10), (3,20), (2,40);
-INSERT INTO t3 VALUES (10), (30), (10), (20) ;
-SELECT a, MAX(b), MIN(b) FROM t1 GROUP BY a;
-a MAX(b) MIN(b)
-1 20 10
-2 30 10
-3 20 20
-4 40 40
-SELECT * FROM t2;
-c d
-2 10
-2 20
-4 10
-5 10
-3 20
-2 40
-SELECT * FROM t3;
-e
-10
-30
-10
-20
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)>20);
-a
-2
-4
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)<d);
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)>d);
-a
-2
-4
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE d >= SOME(SELECT e FROM t3 WHERE MAX(b)=e));
-a
-2
-3
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e <= d));
-a
-2
-3
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE d > SOME(SELECT e FROM t3 WHERE MAX(b)=e));
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e < d));
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE MIN(b) < d AND
-EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e <= d));
-a
-2
-SELECT a, SUM(a) FROM t1 GROUP BY a;
-a SUM(a)
-1 2
-2 6
-3 3
-4 4
-SELECT a FROM t1
-WHERE EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) = c) GROUP BY a;
-a
-3
-4
-SELECT a FROM t1 GROUP BY a
-HAVING EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) = c);
-a
-1
-3
-4
-SELECT a FROM t1
-WHERE a < 3 AND
-EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) != c) GROUP BY a;
-a
-1
-2
-SELECT a FROM t1
-WHERE a < 3 AND
-EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) != c);
-a
-1
-2
-1
-2
-2
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a < ALL(SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING EXISTS(SELECT t3.e FROM t3 GROUP BY t3.e
-HAVING SUM(t1.a+t2.c) < t3.e/4));
-a
-1
-2
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a > ALL(SELECT t2.c FROM t2
-WHERE EXISTS(SELECT t3.e FROM t3 GROUP BY t3.e
-HAVING SUM(t1.a+t2.c) < t3.e/4));
-a
-4
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a > ALL(SELECT t2.c FROM t2
-WHERE EXISTS(SELECT t3.e FROM t3
-WHERE SUM(t1.a+t2.c) < t3.e/4));
-ERROR HY000: Invalid use of group function
-SELECT t1.a from t1 GROUP BY t1.a HAVING AVG(SUM(t1.b)) > 20;
-ERROR HY000: Invalid use of group function
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING AVG(t2.c+SUM(t1.b)) > 20);
-a
-2
-3
-4
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING AVG(SUM(t1.b)) > 20);
-a
-2
-4
-SELECT t1.a, SUM(b) AS sum FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING t2.c+sum > 20);
-a sum
-2 60
-3 20
-4 40
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a varchar(5), b varchar(10));
-INSERT INTO t1 VALUES
-('AAA', 5), ('BBB', 4), ('BBB', 1), ('CCC', 2),
-('CCC', 7), ('AAA', 2), ('AAA', 4), ('BBB', 3), ('AAA', 8);
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-a b
-BBB 4
-CCC 7
-AAA 8
-EXPLAIN
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 9 Using where
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 9 Using temporary
-ALTER TABLE t1 ADD INDEX(a);
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-a b
-BBB 4
-CCC 7
-AAA 8
-EXPLAIN
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 9 Using where
-2 DEPENDENT SUBQUERY t1 index NULL a 8 NULL 1
-DROP TABLE t1;
-create table t1( f1 int,f2 int);
-insert into t1 values (1,1),(2,2);
-select tt.t from (select 'crash1' as t, f2 from t1) as tt left join t1 on tt.t = 'crash2' and tt.f2 = t1.f2 where tt.t = 'crash1';
-t
-crash1
-crash1
-drop table t1;
-create table t1 (c int, key(c));
-insert into t1 values (1142477582), (1142455969);
-create table t2 (a int, b int);
-insert into t2 values (2, 1), (1, 0);
-delete from t1 where c <= 1140006215 and (select b from t2 where a = 2) = 1;
-drop table t1, t2;
-CREATE TABLE t1 (a INT);
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE no_such_column = ANY (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'IN/ALL/ANY subquery'
-CREATE VIEW v2 AS SELECT * FROM t1 WHERE no_such_column = (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'where clause'
-SELECT * FROM t1 WHERE no_such_column = ANY (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'IN/ALL/ANY subquery'
-DROP TABLE t1;
-create table t1 (i int, j bigint);
-insert into t1 values (1, 2), (2, 2), (3, 2);
-select * from (select min(i) from t1 where j=(select * from (select min(j) from t1) t2)) t3;
-min(i)
-1
-drop table t1;
-CREATE TABLE t1 (i BIGINT UNSIGNED);
-INSERT INTO t1 VALUES (10000000000000000000);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (i BIGINT UNSIGNED);
-INSERT INTO t2 VALUES (10000000000000000000);
-INSERT INTO t2 VALUES (1);
-/* simple test */
-SELECT t1.i FROM t1 JOIN t2 ON t1.i = t2.i;
-i
-10000000000000000000
-1
-/* subquery test */
-SELECT t1.i FROM t1 WHERE t1.i = (SELECT MAX(i) FROM t2);
-i
-10000000000000000000
-/* subquery test with cast*/
-SELECT t1.i FROM t1 WHERE t1.i = CAST((SELECT MAX(i) FROM t2) AS UNSIGNED);
-i
-10000000000000000000
-DROP TABLE t1;
-DROP TABLE t2;
-CREATE TABLE t1 (
-id bigint(20) unsigned NOT NULL auto_increment,
-name varchar(255) NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t1 VALUES
-(1, 'Balazs'), (2, 'Joe'), (3, 'Frank');
-CREATE TABLE t2 (
-id bigint(20) unsigned NOT NULL auto_increment,
-mid bigint(20) unsigned NOT NULL,
-date date NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t2 VALUES
-(1, 1, '2006-03-30'), (2, 2, '2006-04-06'), (3, 3, '2006-04-13'),
-(4, 2, '2006-04-20'), (5, 1, '2006-05-01');
-SELECT *,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 0, 1) AS date_last,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 3, 1) AS date_next_to_last
-FROM t1;
-id name date_last date_next_to_last
-1 Balazs 2006-05-01 NULL
-2 Joe 2006-04-20 NULL
-3 Frank 2006-04-13 NULL
-SELECT *,
-(SELECT COUNT(*) FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 1, 1) AS date_count
-FROM t1;
-id name date_count
-1 Balazs NULL
-2 Joe NULL
-3 Frank NULL
-SELECT *,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 0, 1) AS date_last,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 1, 1) AS date_next_to_last
-FROM t1;
-id name date_last date_next_to_last
-1 Balazs 2006-05-01 2006-03-30
-2 Joe 2006-04-20 2006-04-06
-3 Frank 2006-04-13 NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-i1 int(11) NOT NULL default '0',
-i2 int(11) NOT NULL default '0',
-t datetime NOT NULL default '0000-00-00 00:00:00',
-PRIMARY KEY (i1,i2,t)
-);
-INSERT INTO t1 VALUES
-(24,1,'2005-03-03 16:31:31'),(24,1,'2005-05-27 12:40:07'),
-(24,1,'2005-05-27 12:40:08'),(24,1,'2005-05-27 12:40:10'),
-(24,1,'2005-05-27 12:40:25'),(24,1,'2005-05-27 12:40:30'),
-(24,2,'2005-03-03 13:43:05'),(24,2,'2005-03-03 16:23:31'),
-(24,2,'2005-03-03 16:31:30'),(24,2,'2005-05-27 12:37:02'),
-(24,2,'2005-05-27 12:40:06');
-CREATE TABLE t2 (
-i1 int(11) NOT NULL default '0',
-i2 int(11) NOT NULL default '0',
-t datetime default NULL,
-PRIMARY KEY (i1)
-);
-INSERT INTO t2 VALUES (24,1,'2006-06-20 12:29:40');
-EXPLAIN
-SELECT * FROM t1,t2
-WHERE t1.t = (SELECT t1.t FROM t1
-WHERE t1.t < t2.t AND t1.i2=1 AND t2.i1=t1.i1
-ORDER BY t1.t DESC LIMIT 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-1 PRIMARY t1 index NULL PRIMARY 13 NULL 11 Using where; Using index
-2 SUBQUERY t1 range PRIMARY PRIMARY 13 NULL 5 Using where; Using index
-SELECT * FROM t1,t2
-WHERE t1.t = (SELECT t1.t FROM t1
-WHERE t1.t < t2.t AND t1.i2=1 AND t2.i1=t1.i1
-ORDER BY t1.t DESC LIMIT 1);
-i1 i2 t i1 i2 t
-24 1 2005-05-27 12:40:30 24 1 2006-06-20 12:29:40
-DROP TABLE t1, t2;
-CREATE TABLE t1 (i INT);
-(SELECT i FROM t1) UNION (SELECT i FROM t1);
-i
-SELECT sql_no_cache * FROM t1 WHERE NOT EXISTS
-(
-(SELECT i FROM t1) UNION
-(SELECT i FROM t1)
-);
-i
-SELECT * FROM t1
-WHERE NOT EXISTS (((SELECT i FROM t1) UNION (SELECT i FROM t1)));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION (SELECT i FROM t1)))' at line 2
-explain select ((select t11.i from t1 t11) union (select t12.i from t1 t12))
-from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'union (select t12.i from t1 t12))
-from t1' at line 1
-explain select * from t1 where not exists
-((select t11.i from t1 t11) union (select t12.i from t1 t12));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-3 UNION NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(250), b INT auto_increment, PRIMARY KEY (b));
-insert into t1 (a) values (FLOOR(rand() * 100));
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-SELECT a,
-(SELECT REPEAT(' ',250) FROM t1 i1
-WHERE i1.b=t1.a ORDER BY RAND() LIMIT 1) AS a
-FROM t1 ORDER BY a LIMIT 5;
-a a
-0 NULL
-0 NULL
-0 NULL
-0 NULL
-0 NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 values (1);
-INSERT INTO t1 VALUES (1,1),(1,2),(2,3),(3,4);
-SELECT (SELECT COUNT(DISTINCT t1.b) from t2) FROM t1 GROUP BY t1.a;
-(SELECT COUNT(DISTINCT t1.b) from t2)
-2
-1
-1
-SELECT (SELECT COUNT(DISTINCT t1.b) from t2 union select 1 from t2 where 12 < 3)
-FROM t1 GROUP BY t1.a;
-(SELECT COUNT(DISTINCT t1.b) from t2 union select 1 from t2 where 12 < 3)
-2
-1
-1
-SELECT COUNT(DISTINCT t1.b), (SELECT COUNT(DISTINCT t1.b)) FROM t1 GROUP BY t1.a;
-COUNT(DISTINCT t1.b) (SELECT COUNT(DISTINCT t1.b))
-2 2
-1 1
-1 1
-SELECT COUNT(DISTINCT t1.b),
-(SELECT COUNT(DISTINCT t1.b) union select 1 from DUAL where 12 < 3)
-FROM t1 GROUP BY t1.a;
-COUNT(DISTINCT t1.b) (SELECT COUNT(DISTINCT t1.b) union select 1 from DUAL where 12 < 3)
-2 2
-1 1
-1 1
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a;
-(
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-2
-1
-1
-SELECT (
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a LIMIT 1)
-FROM t1 t2
-GROUP BY t2.a;
-(
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a LIMIT 1)
-2
-2
-2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int, PRIMARY KEY (b));
-CREATE TABLE t2 (x int auto_increment, y int, z int,
-PRIMARY KEY (x), FOREIGN KEY (y) REFERENCES t1 (b));
-create table t3 (a int);
-insert into t3 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t1 select RAND()*1000, A.a + 10*(B.a+10*(C.a+10*D.a))
-from t3 A, t3 B, t3 C, t3 D where D.a<3;
-insert into t2(y,z) select t1.b, RAND()*1000 from t1, t3;
-SET SESSION sort_buffer_size = 32 * 1024;
-SELECT SQL_NO_CACHE COUNT(*)
-FROM (SELECT a, b, (SELECT x FROM t2 WHERE y=b ORDER BY z DESC LIMIT 1) c
-FROM t1) t;
-COUNT(*)
-3000
-SET SESSION sort_buffer_size = 8 * 1024 * 1024;
-SELECT SQL_NO_CACHE COUNT(*)
-FROM (SELECT a, b, (SELECT x FROM t2 WHERE y=b ORDER BY z DESC LIMIT 1) c
-FROM t1) t;
-COUNT(*)
-3000
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (id char(4) PRIMARY KEY, c int);
-CREATE TABLE t2 (c int);
-INSERT INTO t1 VALUES ('aa', 1);
-INSERT INTO t2 VALUES (1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT c FROM t2 WHERE c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-INSERT INTO t1 VALUES ('bb', 2), ('cc', 3), ('dd',1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT c FROM t2 WHERE c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-bb 2
-cc 3
-dd 1
-INSERT INTO t2 VALUES (2);
-CREATE TABLE t3 (c int);
-INSERT INTO t3 VALUES (1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT t2.c FROM t2 JOIN t3 ON t2.c=t3.c WHERE t2.c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-bb 2
-cc 3
-dd 1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1(f1 int);
-CREATE TABLE t2(f2 int, f21 int, f3 timestamp);
-INSERT INTO t1 VALUES (1),(1),(2),(2);
-INSERT INTO t2 VALUES (1,1,"2004-02-29 11:11:11"), (2,2,"2004-02-29 11:11:11");
-SELECT ((SELECT f2 FROM t2 WHERE f21=f1 LIMIT 1) * COUNT(f1)) AS sq FROM t1 GROUP BY f1;
-sq
-2
-4
-SELECT (SELECT SUM(1) FROM t2 ttt GROUP BY t2.f3 LIMIT 1) AS tt FROM t2;
-tt
-2
-2
-PREPARE stmt1 FROM 'SELECT ((SELECT f2 FROM t2 WHERE f21=f1 LIMIT 1) * COUNT(f1)) AS sq FROM t1 GROUP BY f1';
-EXECUTE stmt1;
-sq
-2
-4
-EXECUTE stmt1;
-sq
-2
-4
-DEALLOCATE PREPARE stmt1;
-SELECT f2, AVG(f21),
-(SELECT t.f3 FROM t2 AS t WHERE t2.f2=t.f2 AND t.f3=MAX(t2.f3)) AS test
-FROM t2 GROUP BY f2;
-f2 AVG(f21) test
-1 1.0000 2004-02-29 11:11:11
-2 2.0000 2004-02-29 11:11:11
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b INT, c CHAR(10) NOT NULL);
-INSERT INTO t1 VALUES
-(1,1,'a'), (1,2,'b'), (1,3,'c'), (1,4,'d'), (1,5,'e'),
-(2,1,'f'), (2,2,'g'), (2,3,'h'), (3,4,'i'), (3,3,'j'),
-(3,2,'k'), (3,1,'l'), (1,9,'m');
-SELECT a, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b)) AS test
-FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-DROP TABLE IF EXISTS t1xt2;
-CREATE TABLE t1 (
-id_1 int(5) NOT NULL,
-t varchar(4) DEFAULT NULL
-);
-CREATE TABLE t2 (
-id_2 int(5) NOT NULL,
-t varchar(4) DEFAULT NULL
-);
-CREATE TABLE t1xt2 (
-id_1 int(5) NOT NULL,
-id_2 int(5) NOT NULL
-);
-INSERT INTO t1 VALUES (1, 'a'), (2, 'b'), (3, 'c'), (4, 'd');
-INSERT INTO t2 VALUES (2, 'bb'), (3, 'cc'), (4, 'dd'), (12, 'aa');
-INSERT INTO t1xt2 VALUES (2, 2), (3, 3), (4, 4);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 where t1.id_1 = t1xt2.id_1)));
-id_1
-1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 where t1.id_1 = t1xt2.id_1))));
-id_1
-1
-2
-3
-4
-insert INTO t1xt2 VALUES (1, 12);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-2
-3
-4
-insert INTO t1xt2 VALUES (2, 12);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-3
-4
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t1xt2;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (3), (1), (2);
-SELECT 'this is ' 'a test.' AS col1, a AS col2 FROM t1;
-col1 col2
-this is a test. 3
-this is a test. 1
-this is a test. 2
-SELECT * FROM (SELECT 'this is ' 'a test.' AS col1, a AS t2 FROM t1) t;
-col1 t2
-this is a test. 3
-this is a test. 1
-this is a test. 2
-DROP table t1;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (m int, n int);
-INSERT INTO t1 VALUES (2,2), (2,2), (3,3), (3,3), (3,3), (4,4);
-INSERT INTO t2 VALUES (1,11), (2,22), (3,32), (4,44), (4,44);
-SELECT COUNT(*), a,
-(SELECT m FROM t2 WHERE m = count(*) LIMIT 1)
-FROM t1 GROUP BY a;
-COUNT(*) a (SELECT m FROM t2 WHERE m = count(*) LIMIT 1)
-2 2 2
-3 3 3
-1 4 1
-SELECT COUNT(*), a,
-(SELECT MIN(m) FROM t2 WHERE m = count(*))
-FROM t1 GROUP BY a;
-COUNT(*) a (SELECT MIN(m) FROM t2 WHERE m = count(*))
-2 2 2
-3 3 3
-1 4 1
-SELECT COUNT(*), a
-FROM t1 GROUP BY a
-HAVING (SELECT MIN(m) FROM t2 WHERE m = count(*)) > 1;
-COUNT(*) a
-2 2
-3 3
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (m int, n int);
-INSERT INTO t1 VALUES (2,2), (2,2), (3,3), (3,3), (3,3), (4,4);
-INSERT INTO t2 VALUES (1,11), (2,22), (3,32), (4,44), (4,44);
-SELECT COUNT(*) c, a,
-(SELECT GROUP_CONCAT(COUNT(a)) FROM t2 WHERE m = a)
-FROM t1 GROUP BY a;
-c a (SELECT GROUP_CONCAT(COUNT(a)) FROM t2 WHERE m = a)
-2 2 2
-3 3 3
-1 4 1,1
-SELECT COUNT(*) c, a,
-(SELECT GROUP_CONCAT(COUNT(a)+1) FROM t2 WHERE m = a)
-FROM t1 GROUP BY a;
-c a (SELECT GROUP_CONCAT(COUNT(a)+1) FROM t2 WHERE m = a)
-2 2 3
-3 3 4
-1 4 2,2
-DROP table t1,t2;
-CREATE TABLE t1 (a int, b INT, d INT, c CHAR(10) NOT NULL, PRIMARY KEY (a, b));
-INSERT INTO t1 VALUES (1,1,0,'a'), (1,2,0,'b'), (1,3,0,'c'), (1,4,0,'d'),
-(1,5,0,'e'), (2,1,0,'f'), (2,2,0,'g'), (2,3,0,'h'), (3,4,0,'i'), (3,3,0,'j'),
-(3,2,0,'k'), (3,1,0,'l'), (1,9,0,'m'), (1,0,10,'n'), (2,0,5,'o'), (3,0,7,'p');
-SELECT a, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b + 0)) as test
-FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-SELECT a x, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE x=t.a AND t.b=MAX(t1.b + 0)) as test
-FROM t1 GROUP BY a;
-x MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-SELECT a, AVG(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=AVG(t1.b)) AS test
-FROM t1 WHERE t1.d=0 GROUP BY a;
-a AVG(b) test
-1 4.0000 d
-2 2.0000 g
-3 2.5000 NULL
-SELECT tt.a,
-(SELECT (SELECT c FROM t1 as t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1) FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
-FROM t1 as tt;
-a test
-1 n
-1 n
-1 n
-1 n
-1 n
-1 n
-1 n
-2 o
-2 o
-2 o
-2 o
-3 p
-3 p
-3 p
-3 p
-3 p
-SELECT tt.a,
-(SELECT (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1)
-FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
-FROM t1 as tt GROUP BY tt.a;
-a test
-1 n
-2 o
-3 p
-SELECT tt.a, MAX(
-(SELECT (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1)
-FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1)) as test
-FROM t1 as tt GROUP BY tt.a;
-a test
-1 n
-2 o
-3 p
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-a
-1
-2
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-a
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-a
-1
-2
-SET @@sql_mode='ansi';
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-ERROR HY000: Invalid use of group function
-SET @@sql_mode=default;
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 values (1),(1),(1),(1);
-CREATE TABLE t2 (x INT);
-INSERT INTO t1 values (1000),(1001),(1002);
-SELECT SUM( (SELECT COUNT(a) FROM t2) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT SUM( (SELECT SUM(COUNT(a)) FROM t2) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT COUNT(1) FROM DUAL;
-COUNT(1)
-1
-SELECT SUM( (SELECT AVG( (SELECT t1.a FROM t2) ) FROM DUAL) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT
-SUM( (SELECT AVG( (SELECT COUNT(*) FROM t1 t HAVING t1.a < 12) ) FROM t2) )
-FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT t1.a as XXA,
-SUM( (SELECT AVG( (SELECT COUNT(*) FROM t1 t HAVING XXA < 12) ) FROM t2) )
-FROM t1;
-ERROR HY000: Invalid use of group function
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int, KEY (a));
-INSERT INTO t1 VALUES (1,1),(2,1);
-EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT COUNT(*) FROM t1 GROUP BY b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref a a 5 const 1 Using where; Using index
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-DROP TABLE t1;
-CREATE TABLE t1 (id int NOT NULL, st CHAR(2), INDEX idx(id));
-INSERT INTO t1 VALUES
-(3,'FL'), (2,'GA'), (4,'FL'), (1,'GA'), (5,'NY'), (7,'FL'), (6,'NY');
-CREATE TABLE t2 (id int NOT NULL, INDEX idx(id));
-INSERT INTO t2 VALUES (7), (5), (1), (3);
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id);
-id st
-3 FL
-1 GA
-7 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id)
-GROUP BY id;
-id st
-1 GA
-3 FL
-7 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND NOT EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id);
-id st
-2 GA
-4 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND NOT EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id)
-GROUP BY id;
-id st
-2 GA
-4 FL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-EXPLAIN EXTENDED
-SELECT * FROM (SELECT count(*) FROM t1 GROUP BY a) as res;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `res`.`count(*)` AS `count(*)` from (/* select#2 */ select count(0) AS `count(*)` from `test`.`t1` group by `test`.`t1`.`a`) `res`
-DROP TABLE t1;
-CREATE TABLE t1 (
-a varchar(255) default NULL,
-b timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
-INDEX idx(a,b)
-);
-CREATE TABLE t2 (
-a varchar(255) default NULL
-);
-INSERT INTO t1 VALUES ('abcdefghijk','2007-05-07 06:00:24');
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO `t1` VALUES ('asdf','2007-02-08 01:11:26');
-INSERT INTO `t2` VALUES ('abcdefghijk');
-INSERT INTO `t2` VALUES ('asdf');
-SET session sort_buffer_size=8192;
-SELECT (SELECT 1 FROM t1 WHERE t1.a=t2.a ORDER BY t1.b LIMIT 1) AS d1 FROM t2;
-d1
-1
-1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INTEGER, b INTEGER);
-CREATE TABLE t2 (x INTEGER);
-INSERT INTO t1 VALUES (1,11), (2,22), (2,22);
-INSERT INTO t2 VALUES (1), (2);
-SELECT a, COUNT(b), (SELECT COUNT(b) FROM t2) FROM t1 GROUP BY a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a, COUNT(b), (SELECT COUNT(b)+0 FROM t2) FROM t1 GROUP BY a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT SUM(t1.a)/AVG(t2.x) FROM t2) FROM t1;
-(SELECT SUM(t1.a)/AVG(t2.x) FROM t2)
-3.3333
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1, 2), (1,3), (1,4), (2,1), (2,2);
-SELECT a1.a, COUNT(*) FROM t1 a1 WHERE a1.a = 1
-AND EXISTS( SELECT a2.a FROM t1 a2 WHERE a2.a = a1.a)
-GROUP BY a1.a;
-a COUNT(*)
-1 3
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1),(2);
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a=0) FROM t1;
-(SELECT SUM(t1.a) FROM t2 WHERE a=0)
-NULL
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a!=0) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a=1) FROM t1;
-(SELECT SUM(t1.a) FROM t2 WHERE a=1)
-3
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a1 INT, a2 INT);
-CREATE TABLE t2 (b1 INT, b2 INT);
-INSERT INTO t1 VALUES (100, 200);
-INSERT INTO t1 VALUES (101, 201);
-INSERT INTO t2 VALUES (101, 201);
-INSERT INTO t2 VALUES (103, 203);
-SELECT ((a1,a2) IN (SELECT * FROM t2 WHERE b2 > 0)) IS NULL FROM t1;
-((a1,a2) IN (SELECT * FROM t2 WHERE b2 > 0)) IS NULL
-0
-0
-DROP TABLE t1, t2;
-CREATE TABLE t1 (s1 BINARY(5), s2 VARBINARY(5));
-INSERT INTO t1 VALUES (0x41,0x41), (0x42,0x42), (0x43,0x43);
-SELECT s1, s2 FROM t1 WHERE s2 IN (SELECT s1 FROM t1);
-s1 s2
-SELECT s1, s2 FROM t1 WHERE (s2, 10) IN (SELECT s1, 10 FROM t1);
-s1 s2
-CREATE INDEX I1 ON t1 (s1);
-CREATE INDEX I2 ON t1 (s2);
-SELECT s1, s2 FROM t1 WHERE s2 IN (SELECT s1 FROM t1);
-s1 s2
-SELECT s1, s2 FROM t1 WHERE (s2, 10) IN (SELECT s1, 10 FROM t1);
-s1 s2
-TRUNCATE t1;
-INSERT INTO t1 VALUES (0x41,0x41);
-SELECT * FROM t1 WHERE s1 = (SELECT s2 FROM t1);
-s1 s2
-DROP TABLE t1;
-CREATE TABLE t1 (a1 VARBINARY(2) NOT NULL DEFAULT '0', PRIMARY KEY (a1));
-CREATE TABLE t2 (a2 BINARY(2) default '0', INDEX (a2));
-CREATE TABLE t3 (a3 BINARY(2) default '0');
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-INSERT INTO t2 VALUES (1),(2),(3);
-INSERT INTO t3 VALUES (1),(2),(3);
-SELECT LEFT(t2.a2, 1) FROM t2,t3 WHERE t3.a3=t2.a2;
-LEFT(t2.a2, 1)
-1
-2
-3
-SELECT t1.a1, t1.a1 in (SELECT t2.a2 FROM t2,t3 WHERE t3.a3=t2.a2) FROM t1;
-a1 t1.a1 in (SELECT t2.a2 FROM t2,t3 WHERE t3.a3=t2.a2)
-1 0
-2 0
-3 0
-4 0
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a1 BINARY(3) PRIMARY KEY, b1 VARBINARY(3));
-CREATE TABLE t2 (a2 VARBINARY(3) PRIMARY KEY);
-CREATE TABLE t3 (a3 VARBINARY(3) PRIMARY KEY);
-INSERT INTO t1 VALUES (1,10), (2,20), (3,30), (4,40);
-INSERT INTO t2 VALUES (2), (3), (4), (5);
-INSERT INTO t3 VALUES (10), (20), (30);
-SELECT LEFT(t1.a1,1) FROM t1,t3 WHERE t1.b1=t3.a3;
-LEFT(t1.a1,1)
-1
-2
-3
-SELECT a2 FROM t2 WHERE t2.a2 IN (SELECT t1.a1 FROM t1,t3 WHERE t1.b1=t3.a3);
-a2
-DROP TABLE t1, t2, t3;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='semijoin_with_cache=off';
-SET optimizer_switch='materialization=off';
-CREATE TABLE t1 (a CHAR(1), b VARCHAR(10));
-INSERT INTO t1 VALUES ('a', 'aa');
-INSERT INTO t1 VALUES ('a', 'aaa');
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-a b
-CREATE INDEX I1 ON t1 (a);
-CREATE INDEX I2 ON t1 (b);
-EXPLAIN SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t1 index_subquery I1 I1 2 func 2 Using index; Using where
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-a b
-CREATE TABLE t2 (a VARCHAR(1), b VARCHAR(10));
-INSERT INTO t2 SELECT * FROM t1;
-CREATE INDEX I1 ON t2 (a);
-CREATE INDEX I2 ON t2 (b);
-EXPLAIN SELECT a,b FROM t2 WHERE b IN (SELECT a FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 index_subquery I1 I1 4 func 2 Using index; Using where
-SELECT a,b FROM t2 WHERE b IN (SELECT a FROM t2);
-a b
-EXPLAIN
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1 WHERE LENGTH(a)<500);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t1 index_subquery I1 I1 2 func 2 Using index; Using where
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1 WHERE LENGTH(a)<500);
-a b
-DROP TABLE t1,t2;
-SET optimizer_switch= @save_optimizer_switch;
-CREATE TABLE t1(a INT, b INT);
-INSERT INTO t1 VALUES (1,1), (1,2), (2,3), (2,4);
-EXPLAIN
-SELECT a AS out_a, MIN(b) FROM t1
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = out_a)
-GROUP BY a;
-ERROR 42S22: Unknown column 'out_a' in 'where clause'
-SELECT a AS out_a, MIN(b) FROM t1
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = out_a)
-GROUP BY a;
-ERROR 42S22: Unknown column 'out_a' in 'where clause'
-EXPLAIN
-SELECT a AS out_a, MIN(b) FROM t1 t1_outer
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = t1_outer.a)
-GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_outer ALL NULL NULL NULL NULL 4 Using where; Using temporary; Using filesort
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 4 Using where
-SELECT a AS out_a, MIN(b) FROM t1 t1_outer
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = t1_outer.a)
-GROUP BY a;
-out_a MIN(b)
-1 2
-2 4
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1),(2);
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a));
-2
-2
-2
-EXPLAIN EXTENDED
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 2 AS `2` from `test`.`t1` where <in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `test`.`t2`.`a` from `test`.`t2` where <cache>(`test`.`t1`.`a`) = `test`.`t2`.`a`))
-EXPLAIN EXTENDED
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a) UNION
-(SELECT 1 FROM t2 WHERE t1.a = t2.a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DEPENDENT UNION t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 2 AS `2` from `test`.`t1` where exists((/* select#2 */ select 1 from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`) union (/* select#3 */ select 1 from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`))
-DROP TABLE t1,t2;
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(f11 int, f12 int);
-create table t2(f21 int unsigned not null, f22 int, f23 varchar(10));
-insert into t1 values(1,1),(2,2), (3, 3);
-insert ignore into t2
-select -1 , (@a:=(A.a + 10 * (B.a + 10 * (C.a+10*D.a))))/5000 + 1, @a
-from t0 A, t0 B, t0 C, t0 D;
-set session sort_buffer_size= 33*1024;
-select count(*) from t1 where f12 =
-(select f22 from t2 where f22 = f12 order by f21 desc, f22, f23 limit 1);
-count(*)
-3
-drop table t0,t1,t2;
-CREATE TABLE t4 (
-f7 varchar(32) collate utf8_bin NOT NULL default '',
-f10 varchar(32) collate utf8_bin default NULL,
-PRIMARY KEY (f7)
-);
-INSERT INTO t4 VALUES(1,1), (2,null);
-CREATE TABLE t2 (
-f4 varchar(32) collate utf8_bin NOT NULL default '',
-f2 varchar(50) collate utf8_bin default NULL,
-f3 varchar(10) collate utf8_bin default NULL,
-PRIMARY KEY (f4),
-UNIQUE KEY uk1 (f2)
-);
-INSERT INTO t2 VALUES(1,1,null), (2,2,null);
-CREATE TABLE t1 (
-f8 varchar(32) collate utf8_bin NOT NULL default '',
-f1 varchar(10) collate utf8_bin default NULL,
-f9 varchar(32) collate utf8_bin default NULL,
-PRIMARY KEY (f8)
-);
-INSERT INTO t1 VALUES (1,'P',1), (2,'P',1), (3,'R',2);
-CREATE TABLE t3 (
-f6 varchar(32) collate utf8_bin NOT NULL default '',
-f5 varchar(50) collate utf8_bin default NULL,
-PRIMARY KEY (f6)
-);
-INSERT INTO t3 VALUES (1,null), (2,null);
-SELECT
-IF(t1.f1 = 'R', a1.f2, t2.f2) AS a4,
-IF(t1.f1 = 'R', a1.f3, t2.f3) AS f3,
-SUM(
-IF(
-(SELECT VPC.f2
-FROM t2 VPC, t4 a2, t2 a3
-WHERE
-VPC.f4 = a2.f10 AND a3.f2 = a4
-LIMIT 1) IS NULL,
-0,
-t3.f5
-)
-) AS a6
-FROM
-t2, t3, t1 JOIN t2 a1 ON t1.f9 = a1.f4
-GROUP BY a4;
-a4 f3 a6
-1 NULL NULL
-2 NULL NULL
-DROP TABLE t1, t2, t3, t4;
-create table t1 (a float(5,4) zerofill);
-create table t2 (a float(5,4),b float(2,0));
-select t1.a from t1 where
-t1.a= (select b from t2 limit 1) and not
-t1.a= (select a from t2 limit 1) ;
-a
-drop table t1, t2;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=0;
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 WHERE a > 3 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00 Using where; Using temporary
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 0
-SET join_cache_level=@save_join_cache_level;
-DROP TABLE t1;
-#
-# Bug#45061: Incorrectly market field caused wrong result.
-#
-CREATE TABLE `C` (
-`int_nokey` int(11) NOT NULL,
-`int_key` int(11) NOT NULL,
-KEY `int_key` (`int_key`)
-);
-INSERT INTO `C` VALUES (9,9), (0,0), (8,6), (3,6), (7,6), (0,4),
-(1,7), (9,4), (0,8), (9,4), (0,7), (5,5), (0,0), (8,5), (8,7),
-(5,2), (1,8), (7,0), (0,9), (9,5);
-SELECT * FROM C WHERE `int_key` IN (SELECT `int_nokey`);
-int_nokey int_key
-9 9
-0 0
-5 5
-0 0
-EXPLAIN EXTENDED SELECT * FROM C WHERE `int_key` IN (SELECT `int_nokey`);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE C ALL NULL NULL NULL NULL 20 100.00 Using where
-DROP TABLE C;
-# End of test for bug#45061.
-#
-# Bug #46749: Segfault in add_key_fields() with outer subquery level
-# field references
-#
-CREATE TABLE t1 (
-a int,
-b int,
-UNIQUE (a), KEY (b)
-);
-INSERT INTO t1 VALUES (1,1), (2,1);
-CREATE TABLE st1 like t1;
-INSERT INTO st1 VALUES (1,1), (2,1);
-CREATE TABLE st2 like t1;
-INSERT INTO st2 VALUES (1,1), (2,1);
-EXPLAIN
-SELECT MAX(b), (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-FROM t1
-WHERE a = 230;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT MAX(b), (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-FROM t1
-WHERE a = 230;
-MAX(b) (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-NULL NULL
-DROP TABLE t1, st1, st2;
-#
-# Bug #48709: Assertion failed in sql_select.cc:11782:
-# int join_read_key(JOIN_TAB*)
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, int_key int);
-INSERT INTO t1 VALUES (10,1), (14,1);
-CREATE TABLE t2 (pk int PRIMARY KEY, int_key int);
-INSERT INTO t2 VALUES (3,3), (5,NULL), (7,3);
-# should have eq_ref for t1
-EXPLAIN
-SELECT * FROM t2 outr
-WHERE outr.int_key NOT IN (SELECT t1.pk FROM t1, t2)
-ORDER BY outr.pk;
-id select_type table type possible_keys key key_len ref rows Extra
-x x outr ALL x x x x x x
-x x t1 eq_ref x x x x x x
-x x t2 index x x x x x x
-# should not crash on debug binaries
-SELECT * FROM t2 outr
-WHERE outr.int_key NOT IN (SELECT t1.pk FROM t1, t2)
-ORDER BY outr.pk;
-pk int_key
-3 3
-7 3
-DROP TABLE t1,t2;
-#
-# Bug#12329653
-# EXPLAIN, UNION, PREPARED STATEMENT, CRASH, SQL_FULL_GROUP_BY
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-EXPLAIN EXTENDED
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-1
-1
-1
-PREPARE stmt FROM
-'SELECT 1 UNION ALL
-SELECT 1 FROM t1
-ORDER BY
-(SELECT 1 FROM t1 AS t1_0
- WHERE 1 < SOME (SELECT a1 FROM t1)
-)' ;
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-SET SESSION sql_mode=@old_sql_mode;
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2(a1 int);
-INSERT INTO t2 VALUES (3);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2.0 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 'a' FROM t2);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t2);
-1
-1
-1
-SET SESSION sql_mode=@old_sql_mode;
-DROP TABLE t1, t2;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-create table t2(i int);
-insert into t2 values(0);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-CREATE VIEW v1 AS
-SELECT 'f' FROM t2 UNION SELECT 'x' FROM t2
-;
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key)
-);
-SELECT t1.pk
-FROM t1
-WHERE t1.col_varchar_key < ALL ( SELECT * FROM v1 )
-;
-pk
-SET SESSION sql_mode=@old_sql_mode;
-drop table t2, t1;
-drop view v1;
-# End of 5.0 tests.
-create table t_out (subcase char(3),
-a1 char(2), b1 char(2), c1 char(2));
-create table t_in (a2 char(2), b2 char(2), c2 char(2));
-insert into t_out values ('A.1','2a', NULL, '2a');
-insert into t_out values ('A.3', '2a', NULL, '2a');
-insert into t_out values ('A.4', '2a', NULL, 'xx');
-insert into t_out values ('B.1', '2a', '2a', '2a');
-insert into t_out values ('B.2', '2a', '2a', '2a');
-insert into t_out values ('B.3', '3a', 'xx', '3a');
-insert into t_out values ('B.4', 'xx', '3a', '3a');
-insert into t_in values ('1a', '1a', '1a');
-insert into t_in values ('2a', '2a', '2a');
-insert into t_in values (NULL, '2a', '2a');
-insert into t_in values ('3a', NULL, '3a');
-
-Test general IN semantics (not top-level)
-
-case A.1
-select subcase,
-(a1, b1, c1) IN (select * from t_in where a2 = 'no_match') pred_in,
-(a1, b1, c1) NOT IN (select * from t_in where a2 = 'no_match') pred_not_in
-from t_out where subcase = 'A.1';
-subcase pred_in pred_not_in
-A.1 0 1
-case A.2 - impossible
-case A.3
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'A.3';
-subcase pred_in pred_not_in
-A.3 NULL NULL
-case A.4
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'A.4';
-subcase pred_in pred_not_in
-A.4 0 1
-case B.1
-select subcase,
-(a1, b1, c1) IN (select * from t_in where a2 = 'no_match') pred_in,
-(a1, b1, c1) NOT IN (select * from t_in where a2 = 'no_match') pred_not_in
-from t_out where subcase = 'B.1';
-subcase pred_in pred_not_in
-B.1 0 1
-case B.2
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.2';
-subcase pred_in pred_not_in
-B.2 1 0
-case B.3
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.3';
-subcase pred_in pred_not_in
-B.3 NULL NULL
-case B.4
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.4';
-subcase pred_in pred_not_in
-B.4 0 1
-
-Test IN as top-level predicate, and
-as non-top level for cases A.3, B.3 (the only cases with NULL result).
-
-case A.1
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.1' and
-(a1, b1, c1) IN (select * from t_in where a1 = 'no_match');
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.1' and
-(a1, b1, c1) NOT IN (select * from t_in where a1 = 'no_match');
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.1' and
-NOT((a1, b1, c1) IN (select * from t_in where a1 = 'no_match'));
-not_pred_in
-T
-case A.3
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.3' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.3' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.3' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-select case when count(*) > 0 then 'N' else 'wrong result' end as pred_in from t_out
-where subcase = 'A.3' and
-((a1, b1, c1) IN (select * from t_in)) is NULL and
-((a1, b1, c1) NOT IN (select * from t_in)) is NULL;
-pred_in
-N
-case A.4
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.4' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.4' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.4' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-T
-case B.1
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.1' and
-(a1, b1, c1) IN (select * from t_in where a1 = 'no_match');
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.1' and
-(a1, b1, c1) NOT IN (select * from t_in where a1 = 'no_match');
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.1' and
-NOT((a1, b1, c1) IN (select * from t_in where a1 = 'no_match'));
-not_pred_in
-T
-case B.2
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.2' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.2' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.2' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-case B.3
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.3' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.3' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.3' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-select case when count(*) > 0 then 'N' else 'wrong result' end as pred_in from t_out
-where subcase = 'B.3' and
-((a1, b1, c1) IN (select * from t_in)) is NULL and
-((a1, b1, c1) NOT IN (select * from t_in)) is NULL;
-pred_in
-N
-case B.4
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.4' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.4' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.4' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-T
-drop table t_out;
-drop table t_in;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-a
-1
-2
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-a
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-a
-1
-2
-SET @@sql_mode='ansi';
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-ERROR HY000: Invalid use of group function
-SET @@sql_mode=default;
-DROP TABLE t1;
-CREATE TABLE t1 (s1 CHAR(1));
-INSERT INTO t1 VALUES ('a');
-SELECT * FROM t1 WHERE _utf8'a' = ANY (SELECT s1 FROM t1);
-s1
-a
-DROP TABLE t1;
-CREATE TABLE t1(c INT, KEY(c));
-CREATE TABLE t2(a INT, b INT);
-INSERT INTO t2 VALUES (1, 10), (2, NULL);
-INSERT INTO t1 VALUES (1), (3);
-SELECT * FROM t2 WHERE b NOT IN (SELECT max(t.c) FROM t1, t1 t WHERE t.c>10);
-a b
-DROP TABLE t1,t2;
-CREATE TABLE t1(pk INT PRIMARY KEY, a INT, INDEX idx(a));
-INSERT INTO t1 VALUES (1, 10), (3, 30), (2, 20);
-CREATE TABLE t2(pk INT PRIMARY KEY, a INT, b INT, INDEX idxa(a));
-INSERT INTO t2 VALUES (2, 20, 700), (1, 10, 200), (4, 10, 100);
-SELECT * FROM t1
-WHERE EXISTS (SELECT DISTINCT a FROM t2 WHERE t1.a < t2.a ORDER BY b);
-pk a
-1 10
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY (a), KEY b (b));
-INSERT INTO t1 VALUES (1,NULL), (9,NULL);
-CREATE TABLE t2 (
-a INT,
-b INT,
-c INT,
-d INT,
-PRIMARY KEY (a),
-UNIQUE KEY b (b,c,d),
-KEY b_2 (b),
-KEY c (c),
-KEY d (d)
-);
-INSERT INTO t2 VALUES
-(43, 2, 11 ,30),
-(44, 2, 12 ,30),
-(45, 1, 1 ,10000),
-(46, 1, 2 ,10000),
-(556,1, 32 ,10000);
-CREATE TABLE t3 (
-a INT,
-b INT,
-c INT,
-PRIMARY KEY (a),
-UNIQUE KEY b (b,c),
-KEY c (c),
-KEY b_2 (b)
-);
-INSERT INTO t3 VALUES (1,1,1), (2,32,1);
-explain
-SELECT t1.a, (SELECT 1 FROM t2 WHERE t2.b=t3.c AND t2.c=t1.a ORDER BY t2.d LIMIT 1) AS incorrect FROM t1, t3 WHERE t3.b=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 2 Using index
-1 PRIMARY t3 ref b,b_2 b 5 test.t1.a 1 Using index
-2 DEPENDENT SUBQUERY t2 ref b,b_2,c b 10 test.t3.c,test.t1.a 1 Using where; Using index
-SELECT t1.a, (SELECT 1 FROM t2 WHERE t2.b=t3.c AND t2.c=t1.a ORDER BY t2.d LIMIT 1) AS incorrect FROM t1, t3 WHERE t3.b=t1.a;
-a incorrect
-1 1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (id int);
-CREATE TABLE t2 (id int, c int);
-INSERT INTO t1 (id) VALUES (1);
-INSERT INTO t2 (id) VALUES (1);
-INSERT INTO t1 (id) VALUES (1);
-INSERT INTO t2 (id) VALUES (1);
-CREATE VIEW v1 AS
-SELECT t2.c AS c FROM t1, t2
-WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-UPDATE v1 SET c=1;
-CREATE VIEW v2 (a,b) AS
-SELECT t2.id, t2.c AS c FROM t1, t2
-WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-INSERT INTO v2(a,b) VALUES (2,2);
-ERROR 44000: CHECK OPTION failed `test`.`v2`
-SELECT * FROM v1;
-c
-1
-1
-1
-1
-CREATE VIEW v3 AS
-SELECT t2.c AS c FROM t2
-WHERE 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-DELETE FROM v3;
-DROP VIEW v1,v2,v3;
-DROP TABLE t1,t2;
-#
-# BUG#37822 Correlated subquery with IN and IS UNKNOWN provides wrong result
-#
-create table t1(id integer primary key, g integer, v integer, s char(1));
-create table t2(id integer primary key, g integer, v integer, s char(1));
-insert into t1 values
-(10, 10, 10, 'l'),
-(20, 20, 20, 'l'),
-(40, 40, 40, 'l'),
-(41, 40, null, 'l'),
-(50, 50, 50, 'l'),
-(51, 50, null, 'l'),
-(60, 60, 60, 'l'),
-(61, 60, null, 'l'),
-(70, 70, 70, 'l'),
-(90, 90, null, 'l');
-insert into t2 values
-(10, 10, 10, 'r'),
-(30, 30, 30, 'r'),
-(50, 50, 50, 'r'),
-(60, 60, 60, 'r'),
-(61, 60, null, 'r'),
-(70, 70, 70, 'r'),
-(71, 70, null, 'r'),
-(80, 80, 80, 'r'),
-(81, 80, null, 'r'),
-(100,100,null, 'r');
-select *
-from t1
-where v in(select v
-from t2
-where t1.g=t2.g) is unknown;
-id g v s
-51 50 NULL l
-61 60 NULL l
-drop table t1, t2;
-#
-# Bug#37822 Correlated subquery with IN and IS UNKNOWN provides wrong result
-#
-create table t1(id integer primary key, g integer, v integer, s char(1));
-create table t2(id integer primary key, g integer, v integer, s char(1));
-insert into t1 values
-(10, 10, 10, 'l'),
-(20, 20, 20, 'l'),
-(40, 40, 40, 'l'),
-(41, 40, null, 'l'),
-(50, 50, 50, 'l'),
-(51, 50, null, 'l'),
-(60, 60, 60, 'l'),
-(61, 60, null, 'l'),
-(70, 70, 70, 'l'),
-(90, 90, null, 'l');
-insert into t2 values
-(10, 10, 10, 'r'),
-(30, 30, 30, 'r'),
-(50, 50, 50, 'r'),
-(60, 60, 60, 'r'),
-(61, 60, null, 'r'),
-(70, 70, 70, 'r'),
-(71, 70, null, 'r'),
-(80, 80, 80, 'r'),
-(81, 80, null, 'r'),
-(100,100,null, 'r');
-select *
-from t1
-where v in(select v
-from t2
-where t1.g=t2.g) is unknown;
-id g v s
-51 50 NULL l
-61 60 NULL l
-drop table t1, t2;
-#
-# Bug#33204: INTO is allowed in subselect, causing inconsistent results
-#
-CREATE TABLE t1( a INT );
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2( a INT, b INT );
-SELECT *
-FROM (SELECT a INTO @var FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var FROM t1 WHERE a = 2) t1a' at line 2
-SELECT *
-FROM (SELECT a INTO OUTFILE 'file' FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' FROM t1 WHERE a = 2) t1a' at line 2
-SELECT *
-FROM (SELECT a INTO DUMPFILE 'file' FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' FROM t1 WHERE a = 2) t1a' at line 2
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO @var FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO OUTFILE 'file' FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO DUMPFILE 'file' FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (SELECT a FROM t1 WHERE a = 2) t1a;
-a
-2
-SELECT * FROM (
-SELECT a FROM t1 WHERE a = 2
-UNION
-SELECT a FROM t1 WHERE a = 2
-) t1a;
-a
-2
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a FROM t1 WHERE a = 2
-UNION
-SELECT a FROM t1 WHERE a = 2
-) t1a;
-a
-1
-2
-SELECT * FROM ((SELECT 1 a) UNION SELECT 1 a) q;
-a
-1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a)) alias;
-a
-1
-SELECT * FROM (SELECT 1 UNION SELECT 1) t1a;
-1
-1
-SELECT * FROM ((SELECT 1 a INTO @a)) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)) t1a' at line 1
-SELECT * FROM ((SELECT 1 a INTO OUTFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )) t1a' at line 1
-SELECT * FROM ((SELECT 1 a INTO DUMPFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO @a)) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO DUMPFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO OUTFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO @a))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a))) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO DUMPFILE 'file' ))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' ))) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO OUTFILE 'file' ))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' ))) t1a' at line 1
-SELECT * FROM (SELECT 1 a ORDER BY a) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a ORDER BY a) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a LIMIT 1) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a ORDER BY a LIMIT 1) t1a;
-a
-1
-SELECT * FROM t1 JOIN (SELECT 1 UNION SELECT 1) alias ON 1;
-a 1
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 UNION SELECT 1)) ON 1;
-ERROR 42000: Every derived table must have its own alias
-SELECT * FROM t1 JOIN (t1 t1a UNION SELECT 1) ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1) ON 1' at line 1
-SELECT * FROM t1 JOIN ((t1 t1a UNION SELECT 1)) ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1)) ON 1' at line 1
-SELECT * FROM t1 JOIN (t1 t1a) t1a ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a ON 1' at line 1
-SELECT * FROM t1 JOIN ((t1 t1a)) t1a ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a ON 1' at line 1
-SELECT * FROM t1 JOIN (t1 t1a) ON 1;
-a a
-1 1
-2 1
-1 2
-2 2
-SELECT * FROM t1 JOIN ((t1 t1a)) ON 1;
-a a
-1 1
-2 1
-1 2
-2 2
-SELECT * FROM (t1 t1a);
-a
-1
-2
-SELECT * FROM ((t1 t1a));
-a
-1
-2
-SELECT * FROM t1 JOIN (SELECT 1 t1a) alias ON 1;
-a t1a
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 t1a)) alias ON 1;
-a t1a
-1 1
-2 1
-SELECT * FROM t1 JOIN (SELECT 1 a) a ON 1;
-a a
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 a)) a ON 1;
-a a
-1 1
-2 1
-SELECT * FROM (t1 JOIN (SELECT 1) t1a1 ON 1) t1a2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a2' at line 1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 3 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT ( SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT ( SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT a FROM t1 WHERE a = 1 ), a FROM t1;
-( SELECT a FROM t1 WHERE a = 1 ) a
-1 1
-1 2
-SELECT ( SELECT a FROM t1 WHERE a = 1 UNION SELECT 1 ), a FROM t1;
-( SELECT a FROM t1 WHERE a = 1 UNION SELECT 1 ) a
-1 1
-1 2
-SELECT * FROM t2 WHERE (a, b) IN (SELECT a, b FROM t2);
-a b
-SELECT 1 UNION ( SELECT 1 UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-( SELECT 1 UNION SELECT 1 ) UNION SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1' at line 1
-SELECT ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-( SELECT 1 UNION SELECT 1 UNION SELECT 1 )
-1
-SELECT ((SELECT 1 UNION SELECT 1 UNION SELECT 1));
-((SELECT 1 UNION SELECT 1 UNION SELECT 1))
-1
-SELECT * FROM ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: Every derived table must have its own alias
-SELECT * FROM ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 ) a;
-1
-1
-SELECT * FROM ( SELECT 1 UNION SELECT 1 UNION SELECT 1 ) a;
-1
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ALL ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a IN ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE EXISTS ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT EXISTS(SELECT 1+1);
-EXISTS(SELECT 1+1)
-1
-SELECT EXISTS(SELECT 1+1 INTO @test);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @test)' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT * FROM t1 WHERE EXISTS ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a ENUM('rainbow'));
-INSERT INTO t1 VALUES (),(),(),(),();
-SELECT 1 FROM t1 GROUP BY (SELECT 1 FROM t1 ORDER BY AVG(LAST_INSERT_ID()));
-1
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a LONGBLOB);
-INSERT INTO t1 SET a = 'aaaa';
-INSERT INTO t1 SET a = 'aaaa';
-SELECT 1 FROM t1 GROUP BY
-(SELECT LAST_INSERT_ID() FROM t1 ORDER BY MIN(a) ASC LIMIT 1);
-1
-1
-DROP TABLE t1;
-#
-# Bug #49512 : subquery with aggregate function crash
-# subselect_single_select_engine::exec()
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES();
-# should not crash
-SELECT 1 FROM t1 WHERE a <> SOME
-(
-SELECT MAX((SELECT a FROM t1 LIMIT 1)) AS d
-FROM t1,t1 a
-);
-1
-DROP TABLE t1;
-#
-# Bug #45989 take 2 : memory leak after explain encounters an
-# error in the query
-#
-CREATE TABLE t1(a LONGTEXT);
-INSERT INTO t1 VALUES (repeat('a',@@global.max_allowed_packet));
-INSERT INTO t1 VALUES (repeat('b',@@global.max_allowed_packet));
-EXPLAIN EXTENDED SELECT DISTINCT 1 FROM t1,
-(SELECT DISTINCTROW a AS away FROM t1 GROUP BY a WITH ROLLUP) AS d1
-WHERE t1.a = d1.a;
-ERROR 42S22: Unknown column 'd1.a' in 'where clause'
-DROP TABLE t1;
-Set up test tables.
-CREATE TABLE t1 (
-t1_id INT UNSIGNED,
-PRIMARY KEY(t1_id)
-) Engine=MyISAM;
-INSERT INTO t1 (t1_id) VALUES (1), (2), (3), (4), (5);
-CREATE TABLE t2 SELECT * FROM t1;
-CREATE TABLE t3 (
-t3_id INT UNSIGNED AUTO_INCREMENT,
-t1_id INT UNSIGNED,
-amount DECIMAL(16,2),
-PRIMARY KEY(t3_id),
-KEY(t1_id)
-) Engine=MyISAM;
-INSERT INTO t3 (t1_id, t3_id, amount)
-VALUES (1, 1, 100.00), (2, 2, 200.00), (4, 4, 400.00);
-This is the 'inner query' running by itself.
-Produces correct results.
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-SELECT * FROM (the same inner query)
-Produces correct results.
-SELECT * FROM (
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-) AS t;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-Now make t2.t1_id part of a key.
-ALTER TABLE t2 ADD PRIMARY KEY(t1_id);
-Same inner query by itself.
-Still correct results.
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-SELECT * FROM (the same inner query), now with indexes on the LEFT JOIN
-SELECT * FROM (
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-) AS t;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-DROP TABLE t3;
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Bug #52711: Segfault when doing EXPLAIN SELECT with
-# union...order by (select... where...)
-#
-CREATE TABLE t1 (a VARCHAR(10), FULLTEXT KEY a (a));
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1),(2);
-# Should not crash
-EXPLAIN
-SELECT * FROM t2 UNION SELECT * FROM t2
-ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE));
-# Should not crash
-SELECT * FROM t2 UNION SELECT * FROM t2
-ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE));
-DROP TABLE t1,t2;
-#
-# Bug #58818: Incorrect result for IN/ANY subquery
-# with HAVING condition
-#
-CREATE TABLE t1(i INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t1s(i INT);
-INSERT INTO t1s VALUES (10), (20), (30);
-CREATE TABLE t2s(i INT);
-INSERT INTO t2s VALUES (100), (200), (300);
-SELECT * FROM t1
-WHERE t1.i NOT IN
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-);
-i
-1
-2
-3
-SELECT * FROM t1
-WHERE t1.I IN
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-) IS UNKNOWN;
-i
-SELECT * FROM t1
-WHERE NOT t1.I = ANY
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-);
-i
-1
-2
-3
-SELECT * FROM t1
-WHERE t1.i = ANY (
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-) IS UNKNOWN;
-i
-DROP TABLE t1,t1s,t2s;
-# LP BUG#675248 - select->prep_where references on freed memory
-CREATE TABLE t1 (a int, b int);
-insert into t1 values (1,1),(0,0);
-CREATE TABLE t2 (c int);
-insert into t2 values (1),(2);
-prepare stmt1 from "select sum(a),(select sum(c) from t2 where table1.b) as sub
-from t1 as table1 group by sub";
-execute stmt1;
-sum(a) sub
-0 NULL
-1 3
-deallocate prepare stmt1;
-prepare stmt1 from "select sum(a),(select sum(c) from t2 having table1.b) as sub
-from t1 as table1";
-execute stmt1;
-sum(a) sub
-1 3
-deallocate prepare stmt1;
-drop table t1,t2;
-#
-# Bug LP#693935/#58727: Assertion failure with
-# a single row subquery returning more than one row
-#
-create table t1 (a char(1) charset utf8);
-insert into t1 values ('a'), ('b');
-create table t2 (a binary(1));
-insert into t2 values ('x'), ('y');
-select * from t2 where a=(select a from t1) and a='x';
-ERROR 21000: Subquery returns more than 1 row
-drop table t1,t2;
-# End of 5.1 tests
-#
-# Bug #11765713 58705:
-# OPTIMIZER LET ENGINE DEPEND ON UNINITIALIZED VALUES
-# CREATED BY OPT_SUM_QUERY
-#
-CREATE TABLE t1(a INT NOT NULL, KEY (a));
-INSERT INTO t1 VALUES (0), (1);
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1)
-);
-ERROR 21000: Subquery returns more than 1 row
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1 where a is null)
-);
-foo
-DROP TABLE t1;
-#
-# Bug #57704: Cleanup code dies with void TABLE::set_keyread(bool):
-# Assertion `file' failed.
-#
-CREATE TABLE t1 (a INT);
-SELECT 1 FROM
-(SELECT ROW(
-(SELECT 1 FROM t1 RIGHT JOIN
-(SELECT 1 FROM t1, t1 t2) AS d ON 1),
-1) FROM t1) AS e;
-ERROR 21000: Operand should contain 1 column(s)
-DROP TABLE t1;
-#
-# Bug#13721076 CRASH WITH TIME TYPE/TIMESTAMP() AND WARNINGS IN SUBQUERY
-#
-CREATE TABLE t1(a TIME NOT NULL);
-INSERT INTO t1 VALUES ('00:00:32');
-SELECT 1 FROM t1 WHERE a >
-(SELECT timestamp(a) AS a FROM t1);
-1
-DROP TABLE t1;
-#
-# No BUG#, a case brought from 5.2's innodb_mysql_lock.test
-#
-create table t1 (i int not null primary key);
-insert into t1 values (1),(2),(3),(4),(5);
-create table t2 (j int not null primary key);
-insert into t2 values (1),(2),(3),(4),(5);
-create table t3 (k int not null primary key);
-insert into t3 values (1),(2),(3);
-create view v2 as select t2.j as j from t2 where t2.j in (select t1.i from t1);
-select * from t3 where k in (select j from v2);
-k
-1
-2
-3
-drop table t1,t2,t3;
-drop view v2;
-#
-# Bug#52068: Optimizer generates invalid semijoin materialization plan
-#
-drop table if exists ot1, ot2, it1, it2;
-CREATE TABLE ot1(a INTEGER);
-INSERT INTO ot1 VALUES(5), (8);
-CREATE TABLE it2(a INTEGER);
-INSERT INTO it2 VALUES(9), (5), (1), (8);
-CREATE TABLE it3(a INTEGER);
-INSERT INTO it3 VALUES(7), (1), (0), (5), (1), (4);
-CREATE TABLE ot4(a INTEGER);
-INSERT INTO ot4 VALUES(1), (3), (5), (7), (9), (7), (3), (1);
-SELECT * FROM ot1,ot4
-WHERE (ot1.a,ot4.a) IN (SELECT it2.a,it3.a
-FROM it2,it3);
-a a
-5 1
-8 1
-5 5
-8 5
-5 7
-8 7
-5 7
-8 7
-5 1
-8 1
-explain SELECT * FROM ot1,ot4
-WHERE (ot1.a,ot4.a) IN (SELECT it2.a,it3.a
-FROM it2,it3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot1 ALL NULL NULL NULL NULL 2
-1 PRIMARY ot4 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY it2 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY it3 ALL NULL NULL NULL NULL 6 Using where; Using join buffer (flat, BNL join)
-DROP TABLE IF EXISTS ot1, ot4, it2, it3;
-#
-# Bug#729039: NULL keys used to evaluate subquery
-#
-CREATE TABLE t1 (a int) ;
-INSERT INTO t1 VALUES (NULL), (1), (NULL), (2);
-CREATE TABLE t2 (a int, INDEX idx(a)) ;
-INSERT INTO t2 VALUES (NULL), (1), (NULL);
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 USE INDEX () WHERE t2.a = t1.a);
-a
-1
-EXPLAIN
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 USE INDEX() WHERE t2.a = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 Using where
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 WHERE t2.a = t1.a);
-a
-1
-EXPLAIN
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 WHERE t2.a = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t2 index_subquery idx idx 5 func 2 Using index
-DROP TABLE t1,t2;
-#
-# BUG#752992: Wrong results for a subquery with 'semijoin=on'
-#
-CREATE TABLE t1 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t1 VALUES (11,0);
-INSERT INTO t1 VALUES (12,5);
-INSERT INTO t1 VALUES (15,0);
-CREATE TABLE t2 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t2 VALUES (11,1);
-INSERT INTO t2 VALUES (12,2);
-INSERT INTO t2 VALUES (15,4);
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=0;
-EXPLAIN SELECT * FROM t1 WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-2 DEPENDENT SUBQUERY it eq_ref PRIMARY PRIMARY 4 func 1 Using index
-2 DEPENDENT SUBQUERY t2 index NULL PRIMARY 4 NULL 3 Using index
-SELECT * FROM t1 WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON 1);
-pk i
-11 0
-12 5
-15 0
-SET join_cache_level=@save_join_cache_level;
-DROP table t1,t2;
-#
-# Bug#751350: crash with pushed condition for outer references when
-# there should be none of such conditions
-#
-CREATE TABLE t1 (a int, b int) ;
-INSERT INTO t1 VALUES (0,0),(0,0);
-set @optimizer_switch_save=@@optimizer_switch;
-set @@optimizer_switch='semijoin=off,materialization=on,in_to_exists=on';
-EXPLAIN
-SELECT b FROM t1
-WHERE ('0') IN ( SELECT a FROM t1 GROUP BY a )
-GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT b FROM t1
-WHERE ('0') IN ( SELECT a FROM t1 GROUP BY a )
-GROUP BY b;
-b
-0
-set @@optimizer_switch=@optimizer_switch_save;
-DROP TABLE t1;
-#
-# Bug #11765713 58705:
-# OPTIMIZER LET ENGINE DEPEND ON UNINITIALIZED VALUES
-# CREATED BY OPT_SUM_QUERY
-#
-CREATE TABLE t1(a INT NOT NULL, KEY (a));
-INSERT INTO t1 VALUES (0), (1);
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1)
-);
-ERROR 21000: Subquery returns more than 1 row
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1 where a is null)
-);
-foo
-DROP TABLE t1;
-CREATE TABLE t1 (a int(11), b varchar(1));
-INSERT INTO t1 VALUES (2,NULL),(5,'d'),(7,'g');
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 );
-a
-5
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 GROUP BY b );
-a
-7
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 );
-a
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
-a
-delete from t1;
-INSERT INTO t1 VALUES (2,NULL),(5,'d'),(7,'g');
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 );
-a
-5
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 GROUP BY b );
-a
-7
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 );
-a
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
-a
-drop table t1;
-#
-# Fix of lp:780386 (NULL left part with empty ALL subquery).
-#
-CREATE TABLE t1 ( f11 int) ;
-INSERT IGNORE INTO t1 VALUES (0),(0);
-CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
-INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
-DROP TABLE IF EXISTS t3;
-Warnings:
-Note 1051 Unknown table 'test.t3'
-CREATE TABLE t3 ( f3 int) ;
-INSERT INTO t3 VALUES (0),(0);
-SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
-r
-NULL
-5
-NULL
-5
-DROP TABLE t1, t2, t3;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2(a1 int);
-INSERT INTO t2 VALUES (3);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2.0 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 'a' FROM t2);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t2);
-1
-1
-1
-SET SESSION sql_mode=@old_sql_mode;
-DROP TABLE t1, t2;
-create table t2(i int);
-insert into t2 values(0);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-CREATE VIEW v1 AS
-SELECT 'f' FROM t2 UNION SELECT 'x' FROM t2
-;
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key)
-);
-SELECT t1.pk
-FROM t1
-WHERE t1.col_varchar_key < ALL ( SELECT * FROM v1 )
-;
-pk
-SET SESSION sql_mode=@old_sql_mode;
-drop table t2, t1;
-drop view v1;
-#
-# BUG#50257: Missing info in REF column of the EXPLAIN
-# lines for subselects
-#
-CREATE TABLE t1 (a INT, b INT, INDEX (a));
-INSERT INTO t1 VALUES (3, 10), (2, 20), (7, 10), (5, 20);
-EXPLAIN SELECT * FROM (SELECT * FROM t1 WHERE a=7) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 5 const 1
-EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 SUBQUERY t1 ref a a 5 const 1 Using index
-DROP TABLE t1;
-#
-# BUG#12616253 - WRONG RESULT WITH EXISTS(SUBQUERY) (MISSING ROWS)
-# (duplicate of LP bug #888456)
-#
-CREATE TABLE t1 (f1 varchar(1));
-INSERT INTO t1 VALUES ('v'),('s');
-CREATE TABLE t2 (f1_key varchar(1), KEY (f1_key));
-INSERT INTO t2 VALUES ('j'),('v'),('c'),('m'),('d'),
-('d'),('y'),('t'),('d'),('s');
-EXPLAIN
-SELECT table1.f1, table2.f1_key FROM t1 AS table1, t2 AS table2
-WHERE EXISTS (SELECT DISTINCT f1_key FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY table1 ALL NULL NULL NULL NULL 2
-1 PRIMARY table2 index NULL f1_key 4 NULL 10 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 index f1_key f1_key 4 NULL 10 Using where; Using index
-SELECT table1.f1, table2.f1_key FROM t1 AS table1, t2 AS table2
-WHERE EXISTS (SELECT DISTINCT f1_key FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1);
-f1 f1_key
-s c
-s d
-s d
-s d
-s j
-s m
-s s
-s t
-s v
-s y
-v c
-v d
-v d
-v d
-v j
-v m
-v s
-v t
-v v
-v y
-DROP TABLE t1,t2;
-#
-# LP bug 919427: EXPLAIN for a query over a single-row table
-# with IN subquery in WHERE condition
-#
-CREATE TABLE ot (
-col_int_nokey int(11),
-col_varchar_nokey varchar(1)
-) ;
-INSERT INTO ot VALUES (1,'x');
-CREATE TABLE it1(
-col_int_key int(11),
-col_varchar_key varchar(1),
-KEY idx_cvk_cik (col_varchar_key,col_int_key)
-);
-INSERT INTO it1 VALUES (NULL,'x'), (NULL,'f');
-CREATE TABLE it2 (
-col_int_key int(11),
-col_varchar_key varchar(1),
-col_varchar_key2 varchar(1),
-KEY idx_cvk_cvk2_cik (col_varchar_key, col_varchar_key2, col_int_key),
-KEY idx_cvk_cik (col_varchar_key, col_int_key)
-);
-INSERT INTO it2 VALUES (NULL,'x','x'), (NULL,'f','f');
-EXPLAIN
-SELECT col_int_nokey FROM ot
-WHERE col_varchar_nokey IN
-(SELECT col_varchar_key FROM it1 WHERE col_int_key IS NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY it1 index_subquery idx_cvk_cik idx_cvk_cik 9 func,const 2 Using index; Using where
-SELECT col_int_nokey FROM ot
-WHERE col_varchar_nokey IN
-(SELECT col_varchar_key FROM it1 WHERE col_int_key IS NULL);
-col_int_nokey
-1
-EXPLAIN
-SELECT col_int_nokey FROM ot
-WHERE (col_varchar_nokey, 'x') IN
-(SELECT col_varchar_key, col_varchar_key2 FROM it2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY it2 index_subquery idx_cvk_cvk2_cik,idx_cvk_cik idx_cvk_cvk2_cik 8 func,const 1 Using index; Using where
-SELECT col_int_nokey FROM ot
-WHERE (col_varchar_nokey, 'x') IN
-(SELECT col_varchar_key, col_varchar_key2 FROM it2);
-col_int_nokey
-1
-DROP TABLE ot,it1,it2;
-#
-# MDEV-746
-# Bug#13651009 WRONG RESULT FROM DERIVED TABLE IF THE SUBQUERY
-# HAS AN EMPTY RESULT
-#
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_int_nokey int NOT NULL,
-col_int_key int NOT NULL,
-col_time_key time NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_time_key (col_time_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-pk int NOT NULL AUTO_INCREMENT,
-col_int_nokey int NOT NULL,
-col_int_key int NOT NULL,
-col_time_key time NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_time_key (col_time_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,4,4,'00:00:00','b','b');
-SET @var2:=4, @var3:=8;
-
-Testcase without inner subquery
-EXPLAIN SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE sq4_alias1 system NULL NULL NULL NULL 0 Const row not found
-SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3;
-@var3:=12 pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-SELECT @var3;
-@var3
-8
-EXPLAIN SELECT * FROM ( SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3 ) AS alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 0 Const row not found
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM ( SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3 ) AS alias3;
-@var3:=12 pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-SELECT @var3;
-@var3
-8
-
-Testcase with inner subquery; crashed WL#6095
-SET @var3=8;
-EXPLAIN SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY c_sq1_alias1 system PRIMARY NULL NULL NULL 1
-SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3));
-pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-EXPLAIN SELECT * FROM ( SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3)) ) AS alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-3 DEPENDENT SUBQUERY c_sq1_alias1 system PRIMARY NULL NULL NULL 1
-SELECT * FROM ( SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3)) ) AS alias3;
-pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-DROP TABLE t1,t2;
-# End of 5.2 tests
-#
-# BUG#779885: Crash in eliminate_item_equal with materialization=on in
-#
-CREATE TABLE t1 ( f1 int );
-INSERT INTO t1 VALUES (19), (20);
-CREATE TABLE t2 ( f10 varchar(32) );
-INSERT INTO t2 VALUES ('c'),('d');
-CREATE TABLE t3 ( f10 varchar(32) );
-INSERT INTO t3 VALUES ('a'),('b');
-SELECT *
-FROM t1
-WHERE
-( 't' ) IN (
-SELECT t3.f10
-FROM t3
-JOIN t2
-ON t2.f10 = t3.f10
-);
-f1
-DROP TABLE t1,t2,t3;
-#
-# BUG lp:813473: Wrong result with outer join + NOT IN subquery
-# This bug is a duplicate of Bug#11764086 whose test case is added below
-#
-CREATE TABLE t1 (c int) ;
-INSERT INTO t1 VALUES (5),(6);
-CREATE TABLE t2 (a int, b int) ;
-INSERT INTO t2 VALUES (20,9),(20,9);
-create table t3 (d int, e int);
-insert into t3 values (2, 9), (3,10);
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-EXPLAIN
-SELECT t2.b , t1.c
-FROM t2 LEFT JOIN t1 ON t1.c < 3
-WHERE (t2.b , t1.c) NOT IN (SELECT * from t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where
-SELECT t2.b , t1.c
-FROM t2 LEFT JOIN t1 ON t1.c < 3
-WHERE (t2.b, t1.c) NOT IN (SELECT * from t3);
-b c
-9 NULL
-9 NULL
-SET optimizer_switch=@save_optimizer_switch;
-drop table t1, t2, t3;
-#
-# BUG#50257: Missing info in REF column of the EXPLAIN
-# lines for subselects
-#
-CREATE TABLE t1 (a INT, b INT, INDEX (a));
-INSERT INTO t1 VALUES (3, 10), (2, 20), (7, 10), (5, 20);
-
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-EXPLAIN SELECT * FROM (SELECT * FROM t1 WHERE a=7) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED t1 ref a a 5 const 1
-set optimizer_switch=@tmp_optimizer_switch;
-
-EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 SUBQUERY t1 ref a a 5 const 1 Using index
-
-DROP TABLE t1;
-#
-# Bug#11764086: Null left operand to NOT IN in WHERE clause
-# behaves differently than real NULL
-#
-CREATE TABLE parent (id int);
-INSERT INTO parent VALUES (1), (2);
-CREATE TABLE child (parent_id int, other int);
-INSERT INTO child VALUES (1,NULL);
-# Offending query (c.parent_id is NULL for null-complemented rows only)
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id NOT IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-);
-id parent_id
-1 1
-2 NULL
-# Some syntactic variations with IS FALSE and IS NOT TRUE
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-) IS NOT TRUE;
-id parent_id
-1 1
-2 NULL
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-) IS FALSE;
-id parent_id
-1 1
-2 NULL
-DROP TABLE parent, child;
-# End of test for bug#11764086.
-#
-# Bug 11765699 - 58690: !TABLE || (!TABLE->READ_SET ||
-# BITMAP_IS_SET(TABLE->READ_SET, FIELD_INDEX
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (0), (1);
-CREATE TABLE t2(
-b TEXT,
-c INT,
-PRIMARY KEY (b(1))
-);
-INSERT INTO t2 VALUES ('a', 2), ('b', 3);
-SELECT 1 FROM t1 WHERE a =
-(SELECT 1 FROM t2 WHERE b =
-(SELECT 1 FROM t1 t11 WHERE c = 1 OR t1.a = 1 AND 1 = 2)
-ORDER BY b
-);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-SELECT 1 FROM t1 WHERE a =
-(SELECT 1 FROM t2 WHERE b =
-(SELECT 1 FROM t1 t11 WHERE c = 1 OR t1.a = 1 AND 1 = 2)
-GROUP BY b
-);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-DROP TABLE t1, t2;
-#
-# BUG#12616253 - WRONG RESULT WITH EXISTS(SUBQUERY) (MISSING ROWS)
-#
-CREATE TABLE t1 (f1 varchar(1));
-INSERT INTO t1 VALUES ('v'),('s');
-CREATE TABLE t2 (f1_key varchar(1), KEY (f1_key));
-INSERT INTO t2 VALUES ('j'),('v'),('c'),('m'),('d'),
-('d'),('y'),('t'),('d'),('s');
-SELECT table1.f1, table2.f1_key
-FROM t1 AS table1, t2 AS table2
-WHERE EXISTS
-(
-SELECT DISTINCT f1_key
-FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1 );
-f1 f1_key
-s c
-s d
-s d
-s d
-s j
-s m
-s s
-s t
-s v
-s y
-v c
-v d
-v d
-v d
-v j
-v m
-v s
-v t
-v v
-v y
-explain SELECT table1.f1, table2.f1_key
-FROM t1 AS table1, t2 AS table2
-WHERE EXISTS
-(
-SELECT DISTINCT f1_key
-FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY table1 ALL NULL NULL NULL NULL 2
-1 PRIMARY table2 index NULL f1_key 4 NULL 10 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 index f1_key f1_key 4 NULL 10 Using where; Using index
-DROP TABLE t1,t2;
-#
-# lp:826279: assertion failure with GROUP BY a result of subquery
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (0), (0);
-CREATE TABLE t2 (a int, b int, c int);
-INSERT INTO t2 VALUES (10,7,0), (0,7,0);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (10,7), (0,7);
-SELECT SUM(DISTINCT b),
-(SELECT t2.a FROM t1 JOIN t2 ON t2.c != 0
-WHERE t.a != 0 AND t2.a != 0)
-FROM (SELECT * FROM t3) AS t
-GROUP BY 2;
-SUM(DISTINCT b) (SELECT t2.a FROM t1 JOIN t2 ON t2.c != 0
-WHERE t.a != 0 AND t2.a != 0)
-7 NULL
-SELECT SUM(DISTINCT b),
-(SELECT t2.a FROM t1,t2 WHERE t.a != 0 or 1=2 LIMIT 1)
-FROM (SELECT * FROM t3) AS t
-GROUP BY 2;
-SUM(DISTINCT b) (SELECT t2.a FROM t1,t2 WHERE t.a != 0 or 1=2 LIMIT 1)
-7 NULL
-7 10
-DROP TABLE t1,t2,t3;
-#
-# Bug#12329653
-# EXPLAIN, UNION, PREPARED STATEMENT, CRASH, SQL_FULL_GROUP_BY
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-1
-1
-1
-PREPARE stmt FROM
-'SELECT 1 UNION ALL
-SELECT 1 FROM t1
-ORDER BY
-(SELECT 1 FROM t1 AS t1_0
- WHERE 1 < SOME (SELECT a1 FROM t1)
-)' ;
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-SET SESSION sql_mode=@old_sql_mode;
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# LP BUG#833777 Performance regression with deeply nested subqueries
-#
-create table t1 (a int not null, b char(10) not null);
-insert into t1 values (1, 'a');
-set @@optimizer_switch='in_to_exists=on,semijoin=off,materialization=off,subquery_cache=off';
-select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1)))))))))))))))))))))))))))));
-a
-1
-set @@optimizer_switch=@subselect_tmp;
-drop table t1;
-#
-# LP BUG#894397 Wrong result with in_to_exists, constant table , semijoin=OFF,materialization=OFF
-#
-CREATE TABLE t1 (a varchar(3));
-INSERT INTO t1 VALUES ('AAA'),('BBB');
-CREATE TABLE t2 (a varchar(3));
-INSERT INTO t2 VALUES ('CCC');
-set @@optimizer_switch='semijoin=off,materialization=off,in_to_exists=on,subquery_cache=off';
-SELECT * FROM t1 WHERE t1.a IN (SELECT t2.a FROM t2 WHERE t2.a < 'ZZZ');
-a
-set @@optimizer_switch=@subselect_tmp;
-drop table t1, t2;
-#
-# LP bug #859375: Assertion `0' failed in st_select_lex_unit::optimize
-# with view , UNION and prepared statement (rewriting fake_select
-# condition).
-#
-CREATE TABLE t1 ( f1 int NOT NULL, f4 varchar(1) NOT NULL) ;
-INSERT INTO t1 VALUES (6,'d'),(7,'y');
-CREATE TABLE t2 ( f1 int NOT NULL, f2 int NOT NULL) ;
-INSERT INTO t2 VALUES (10,7);
-CREATE VIEW v2 AS SELECT * FROM t2;
-PREPARE st1 FROM "
- SELECT *
- FROM t1
- LEFT JOIN v2 ON ( v2.f2 = t1.f1 )
- WHERE v2.f1 NOT IN (
- SELECT 1 UNION
- SELECT 247
- )
-";
-EXECUTE st1;
-f1 f4 f1 f2
-7 y 10 7
-deallocate prepare st1;
-DROP VIEW v2;
-DROP TABLE t1,t2;
-#
-# LP bug #887458 Crash in subselect_union_engine::no_rows with
-# double UNION and join_cache_level=3,8
-# (IN/ALL/ANY optimizations should not be applied to fake_select)
-CREATE TABLE t2 ( a int, b varchar(1)) ;
-INSERT IGNORE INTO t2 VALUES (8,'y'),(8,'y');
-CREATE TABLE t1 ( b varchar(1)) ;
-INSERT IGNORE INTO t1 VALUES (NULL),(NULL);
-set @save_join_cache_level=@@join_cache_level;
-SET SESSION join_cache_level=3;
-SELECT *
-FROM t1, t2
-WHERE t2.b IN (
-SELECT 'm' UNION
-SELECT 'm'
-) OR t1.b <> SOME (
-SELECT 'v' UNION
-SELECT 't'
-);
-b a b
-set @@join_cache_level= @save_join_cache_level;
-drop table t1,t2;
-#
-# LP bug #885162 Got error 124 from storage engine with UNION inside
-# subquery and join_cache_level=3..8
-# (IN/ALL/ANY optimizations should not be applied to fake_select)
-#
-CREATE TABLE t1 (
-f1 varchar(1) DEFAULT NULL
-);
-INSERT INTO t1 VALUES ('c');
-set @save_join_cache_level=@@join_cache_level;
-SET SESSION join_cache_level=8;
-SELECT * FROM t1 WHERE t1.f1 IN ( SELECT 'k' UNION SELECT 'e' );
-f1
-set @@join_cache_level= @save_join_cache_level;
-drop table t1;
-#
-# LP BUG#747278 incorrect values of the NULL (no rows) single
-# row subquery requested via element_index() interface
-#
-CREATE TABLE t1 (f1a int, f1b int) ;
-INSERT IGNORE INTO t1 VALUES (1,1),(2,2);
-CREATE TABLE t2 ( f2 int);
-INSERT IGNORE INTO t2 VALUES (3),(4);
-CREATE TABLE t3 (f3a int default 1, f3b int default 2);
-INSERT INTO t3 VALUES (1,1),(2,2);
-set @old_optimizer_switch = @@session.optimizer_switch;
-set @@optimizer_switch='materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off,subquery_cache=off,semijoin=off';
-SELECT (SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-SELECT (SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-set @@session.optimizer_switch=@old_optimizer_switch;
-SELECT (SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-SELECT (SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-select (null, null) = (null, null);
-(null, null) = (null, null)
-NULL
-SELECT (SELECT f3a, f3a FROM t3 where f3a > 3) = (0, 0);
-(SELECT f3a, f3a FROM t3 where f3a > 3) = (0, 0)
-NULL
-drop tables t1,t2,t3;
-#
-# LP BUG#825051 Wrong result with date/datetime and subquery with GROUP BY and in_to_exists
-#
-CREATE TABLE t1 (a date, KEY (a)) ;
-INSERT INTO t1 VALUES ('2009-01-01'),('2009-02-02');
-set @old_optimizer_switch = @@optimizer_switch;
-SET @@optimizer_switch='semijoin=off,materialization=off,in_to_exists=on,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 4 NULL 2 Using where; Using index
-2 DEPENDENT SUBQUERY t1 index_subquery a a 4 func 2 Using index
-SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-a
-2009-01-01
-2009-02-02
-SET @@optimizer_switch='semijoin=off,materialization=on,in_to_exists=off,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 4 NULL 2 Using where; Using index
-2 MATERIALIZED t1 index NULL a 4 NULL 2 Using index
-SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-a
-2009-01-01
-2009-02-02
-set @@optimizer_switch=@old_optimizer_switch;
-drop table t1;
-#
-# LP BUG#908269 incorrect condition in case of subqueries depending
-# on constant tables
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 ( b INT ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1);
-CREATE TABLE t3 ( c INT );
-INSERT INTO t3 VALUES (4),(5);
-SET optimizer_switch='subquery_cache=off';
-SELECT ( SELECT b FROM t2 WHERE b = a OR EXISTS ( SELECT c FROM t3 WHERE c = b ) ) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR EXISTS ( SELECT c FROM t3 WHERE c = b ) )
-1
-NULL
-SELECT ( SELECT b FROM t2 WHERE b = a OR b * 0) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR b * 0)
-1
-NULL
-SELECT ( SELECT b FROM t2 WHERE b = a OR rand() * 0) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR rand() * 0)
-1
-NULL
-drop table t1,t2,t3;
-set optimizer_switch=@subselect_tmp;
-#
-# LP BUG#905353 Wrong non-empty result with a constant table,
-# aggregate function in subquery, MyISAM or Aria
-#
-CREATE TABLE t1 ( a INT ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1);
-SELECT a FROM t1 WHERE ( SELECT MIN(a) = 100 );
-a
-drop table t1;
-#
-# LP BUG#985667 Wrong result with subquery in SELECT clause, and constant table in
-# main query and implicit grouping
-#
-CREATE TABLE t1 (f1 int) engine=MyISAM;
-INSERT INTO t1 VALUES (7),(8);
-CREATE TABLE t2 (f2 int, f3 varchar(1)) engine=MyISAM;
-INSERT INTO t2 VALUES (3,'f');
-EXPLAIN
-SELECT COUNT(f1), (SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(f1), (SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 NULL
-EXPLAIN
-SELECT COUNT(f1), exists(SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(f1), exists(SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 0
-EXPLAIN
-SELECT COUNT(f1), f2 > ALL (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT COUNT(f1), f2 > ALL (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 1
-EXPLAIN
-SELECT COUNT(f1), f2 IN (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT COUNT(f1), f2 IN (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 0
-drop table t1,t2;
-#
-# LP BUG#1002079 Server crashes in Item_singlerow_subselect::val_int with constant table,
-# HAVING, UNION in subquery
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (7),(0);
-CREATE TABLE t2 (b INT);
-EXPLAIN
-SELECT SUM(a) AS f1, a AS f2 FROM (t1, t2) HAVING f2 >= ALL (SELECT 4 UNION SELECT 5) AND f1 = 7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT SUM(a) AS f1, a AS f2 FROM (t1, t2) HAVING f2 >= ALL (SELECT 4 UNION SELECT 5) AND f1 = 7;
-f1 f2
-drop table t1,t2;
-#
-# LP BUG#1008686 Server crashes in subselect_union_engine::no_rows on SELECT with impossible
-# WHERE and UNION in HAVING
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(7);
-EXPLAIN
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 0 HAVING a NOT IN ( SELECT 2 UNION SELECT 5 ) OR min_a != 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 0 HAVING a NOT IN ( SELECT 2 UNION SELECT 5 ) OR min_a != 1;
-min_a a
-EXPLAIN
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 1=2 HAVING a NOT IN ( SELECT a from t1 UNION select a+1 from t1 ) OR min_a != 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT UNION t1 ALL NULL NULL NULL NULL 2 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 1=2 HAVING a NOT IN ( SELECT a from t1 UNION select a+1 from t1 ) OR min_a != 1;
-min_a a
-drop table t1;
-#
-# MDEV-367: Different results with and without subquery_cache on
-# a query with a constant NOT IN condition
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2),(3);
-set @mdev367_optimizer_switch = @@optimizer_switch;
-set optimizer_switch = 'subquery_cache=on';
-SELECT * FROM t1 WHERE ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) OR a > 100;
-a
-SELECT *, ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) FROM t1;
-a ( 3, 3 ) NOT IN ( SELECT NULL, NULL )
-1 NULL
-2 NULL
-3 NULL
-set optimizer_switch=@mdev367_optimizer_switch;
-set optimizer_switch = 'subquery_cache=off';
-SELECT * FROM t1 WHERE ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) OR a > 100;
-a
-SELECT *, ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) FROM t1;
-a ( 3, 3 ) NOT IN ( SELECT NULL, NULL )
-1 NULL
-2 NULL
-3 NULL
-set optimizer_switch=@mdev367_optimizer_switch;
-DROP TABLE t1;
-#
-# MDEV-521 single value subselect transformation problem
-#
-CREATE TABLE t1 (f1 char(2), PRIMARY KEY (f1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('u1'),('u2');
-SELECT a.* FROM t1 a WHERE ( SELECT EXISTS ( SELECT 1 FROM t1 b WHERE b.f1 = a.f1 ) );
-f1
-u1
-u2
-FLUSH TABLES;
-SELECT a.* FROM t1 a WHERE ( SELECT EXISTS ( SELECT 1 FROM t1 b WHERE b.f1 = a.f1 ) );
-f1
-u1
-u2
-DROP TABLE t1;
-# return optimizer switch changed in the beginning of this test
-set optimizer_switch=@subselect_tmp;
-#
-# lp:944706 Query with impossible or constant subquery in WHERE or HAVING is not
-# precomputed and thus not part of optimization
-#
-CREATE TABLE t1 ( a VARCHAR(16), KEY (a) );
-INSERT INTO t1 VALUES ('Abilene'),('Akron'),('Albany'),('Albuquerque'),('Alexandria'),('Allentown'),
-('Amarillo'),('Anaheim'),('Anchorage'),('Ann Arbor'),('Arden-Arcade');
-EXPLAIN
-SELECT MAX( alias2.a ) AS field
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR alias1.a = 'y'
-HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible HAVING
-2 SUBQUERY t1 index_subquery a a 19 const 1 Using index; Using where
-SELECT MAX( alias2.a ) AS field
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR alias1.a = 'y'
-HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
-field
-EXPLAIN
-SELECT MAX( alias2.a )
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 index a a 19 NULL 11 Using where; Using index
-1 PRIMARY alias2 ref a a 19 test.alias1.a 2 Using index
-1 PRIMARY alias3 index NULL a 19 NULL 11 Using index; Using join buffer (flat, BNL join)
-2 SUBQUERY t1 index_subquery a a 19 const 1 Using index; Using where
-SELECT MAX( alias2.a )
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
-MAX( alias2.a )
-Arden-Arcade
-drop table t1;
-#
-# MDEV-277 CHEAP SQ: Server crashes in st_join_table::get_examined_rows
-# with semijoin+materialization, IN and = subqueries
-#
-CREATE TABLE t1 (a1 INT);
-INSERT INTO t1 VALUES (4),(6);
-CREATE TABLE t2 (b1 INT);
-INSERT INTO t2 VALUES (1),(7);
-EXPLAIN
-SELECT * FROM t1
-WHERE a1 = (SELECT COUNT(*) FROM t1 WHERE a1 IN (SELECT a1 FROM t1, t2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-SELECT * FROM t1
-WHERE a1 = (SELECT COUNT(*) FROM t1 WHERE a1 IN (SELECT a1 FROM t1, t2));
-a1
-drop table t1, t2;
-#
-# MDEV-287 CHEAP SQ: A query with subquery in SELECT list, EXISTS,
-# inner joins takes hundreds times longer
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(7);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (4),(5);
-CREATE TABLE t3 (c INT);
-INSERT INTO t3 VALUES (8),(3);
-set @@expensive_subquery_limit= 0;
-EXPLAIN
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 2
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 PRIMARY alias3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-flush status;
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-(SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 2
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 8
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 22
-set @@expensive_subquery_limit= default;
-EXPLAIN
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 2
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 PRIMARY alias3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-flush status;
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-(SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 16
-drop table t1, t2, t3;
-#
-# MDEV-288 CHEAP SQ: Valgrind warnings "Memory lost" with IN and EXISTS nested subquery, materialization+semijoin
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0),(8);
-CREATE TABLE t2 (b INT PRIMARY KEY);
-INSERT INTO t2 VALUES (1),(2);
-EXPLAIN
-SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-3 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
-a
-drop table t1,t2;
-#
-# MDEV-410: EXPLAIN shows type=range, while SHOW EXPLAIN and userstat show full table scan is used
-#
-CREATE TABLE t1 (a VARCHAR(3) PRIMARY KEY) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('USA');
-CREATE TABLE t2 (b INT, c VARCHAR(52), KEY(b)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3813,'United States'),(3940,'Russia');
-CREATE TABLE t3 (d INT, KEY(d)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (12),(22),(9),(45);
-create table t4 like t3;
-insert into t4 select * from t3;
-# This should not show range access for table t2
-explain
-SELECT MIN(b) FROM ( SELECT * FROM t1, t2, t3 WHERE d = b ) AS alias1
-WHERE SLEEP(0.1) OR c < 'p' OR b = ( SELECT MIN(b) FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL b NULL NULL NULL 2 Using where
-1 PRIMARY t3 ref d d 5 test.t2.b 2 Using where; Using index
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-set @tmp_mdev410=@@global.userstat;
-set global userstat=on;
-flush table_statistics;
-flush index_statistics;
-SELECT MIN(b) FROM ( SELECT * FROM t1, t2, t3 WHERE d = b ) AS alias1
-WHERE SLEEP(0.1) OR c < 'p' OR b = ( SELECT MIN(b) FROM t2 );
-MIN(b)
-NULL
-# The following shows that t2 was indeed scanned with a full scan.
-show table_statistics;
-Table_schema Table_name Rows_read Rows_changed Rows_changed_x_#indexes
-test t1 2 0 0
-test t2 3 0 0
-show index_statistics;
-Table_schema Table_name Index_name Rows_read
-test t2 b 1
-set global userstat=@tmp_mdev410;
-DROP TABLE t1,t2,t3,t4;
-#
-# MDEV-430: Server crashes in select_describe on EXPLAIN with
-# materialization+semijoin, 2 nested subqueries, aggregate functions
-#
-CREATE TABLE t1 (a INT, KEY(a));
-INSERT INTO t1 VALUES (1),(8);
-CREATE TABLE t2 (b INT, KEY(b));
-INSERT INTO t2 VALUES (45),(17),(20);
-EXPLAIN SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t1, t2 WHERE b = a GROUP BY a HAVING a <> 1 ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 range a a 5 NULL 2 Using where; Using index
-2 SUBQUERY t2 ref b b 5 test.t1.a 2 Using index
-DROP TABLE t1,t2;
-#
-# MDEV-435: Expensive subqueries may be evaluated during optimization in merge_key_fields
-#
-CREATE TABLE t1 (a INT, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (8),(0);
-CREATE TABLE t2 (b INT, c VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (4,'j'),(6,'v');
-CREATE TABLE t3 (d VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('b'),('c');
-EXPLAIN
-SELECT * FROM t1
-WHERE a = (SELECT MAX(b) FROM t2 WHERE c IN (SELECT MAX(d) FROM t3)) OR a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index a a 5 NULL 2 Using where; Using index
-2 SUBQUERY <subquery3> ALL distinct_key NULL NULL NULL 1
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1
-WHERE a = (SELECT MAX(b) FROM t2 WHERE c IN (SELECT MAX(d) FROM t3)) OR a = 10;
-a
-drop table t1, t2, t3;
-#
-# MDEV-405: Server crashes in test_if_skip_sort_order on EXPLAIN with GROUP BY and HAVING in EXISTS subquery
-#
-CREATE TABLE t1 (a INT, KEY(a));
-INSERT INTO t1 VALUES (1),(8);
-CREATE TABLE t2 (b INT, KEY(b));
-INSERT INTO t2 VALUES (45),(17),(20);
-EXPLAIN SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t1, t2 WHERE b = a GROUP BY a HAVING a <> 1 ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 range a a 5 NULL 2 Using where; Using index
-2 SUBQUERY t2 ref b b 5 test.t1.a 2 Using index
-DROP TABLE t1,t2;
-#
-# MDEV-5991: crash in Item_field::used_tables
-#
-create table t1 (c int);
-select exists(select 1 from t1 group by `c` in (select `c` from t1));
-exists(select 1 from t1 group by `c` in (select `c` from t1))
-0
-drop table t1;
-#
-# MDEV-7565: Server crash with Signal 6 (part 2)
-#
-Select
-(Select Sum(`TestCase`.Revenue) From mysql.slow_log E
-Where TestCase.TemplateID not in (Select 1 from mysql.slow_log where 2=2)
-) As `ControlRev`
-From
-(Select 3 as Revenue, 4 as TemplateID) As `TestCase`
-Group By TestCase.Revenue, TestCase.TemplateID;
-ControlRev
-NULL
-#
-# MDEV-7445:Server crash with Signal 6
-#
-CREATE PROCEDURE procedure2()
-BEGIN
-Select
-(Select Sum(`TestCase`.Revenue) From mysql.slow_log E
-Where TestCase.TemplateID not in (Select 1 from mysql.slow_log where 2=2)
-) As `ControlRev`
- From
-(Select 3 as Revenue, 4 as TemplateID) As `TestCase`
-Group By TestCase.Revenue, TestCase.TemplateID;
-END |
-call procedure2();
-ControlRev
-NULL
-call procedure2();
-ControlRev
-NULL
-drop procedure procedure2;
-SELECT
-(SELECT user FROM mysql.user
-WHERE h.host in (SELECT host FROM mysql.user)
-) AS sq
-FROM mysql.host h GROUP BY h.host;
-sq
-#
-# MDEV-7846:Server crashes in Item_subselect::fix
-#_fields or fails with Thread stack overrun
-#
-CREATE TABLE t1 (column1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3),(9);
-CREATE TABLE t2 (column2 INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1),(4);
-CREATE TABLE t3 (column3 INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (6),(8);
-CREATE TABLE t4 (column4 INT) ENGINE=MyISAM;
-INSERT INTO t4 VALUES (2),(5);
-PREPARE stmt FROM "
-SELECT (
- SELECT MAX( table1.column1 ) AS field1
- FROM t1 AS table1
- WHERE table3.column3 IN ( SELECT table2.column2 AS field2 FROM t2 AS table2 )
-) AS sq
-FROM t3 AS table3, t4 AS table4 GROUP BY sq
-";
-EXECUTE stmt;
-sq
-NULL
-EXECUTE stmt;
-sq
-NULL
-deallocate prepare stmt;
-drop table t1,t2,t3,t4;
-#
-# MDEV-7122
-# Assertion `0' failed in subselect_hash_sj_engine::init
-#
-SET SESSION big_tables=1;
-CREATE TABLE t1(a char(255) DEFAULT '', KEY(a(10))) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES(0),(0),(0);
-SELECT * FROM t1 WHERE a IN(SELECT MIN(a) FROM t1);
-a
-0
-0
-0
-DROP TABLE t1;
-SET SESSION big_tables=0;
-#
-# MDEV-10776: Server crash on query
-#
-create table t1 (field1 int);
-insert into t1 values (1);
-select round((select 1 from t1 limit 1))
-from t1
-group by round((select 1 from t1 limit 1));
-round((select 1 from t1 limit 1))
-1
-drop table t1;
-#
-# MDEV-7930: Assertion `table_share->tmp_table != NO_TMP_TABLE ||
-# m_lock_type != 2' failed in handler::ha_index_read_map
-#
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 INT, KEY(f2));
-INSERT INTO t2 VALUES (3);
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2;
-SELECT ( SELECT MIN(t2.f2) FROM t1 ) AS sq FROM t2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT ( SELECT MIN(v2.f2) FROM t1 ) AS sq FROM v2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT * FROM v2 where ( SELECT MIN(v2.f2) FROM t1 ) > 0;
-f2
-3
-SELECT count(*) FROM v2 group by ( SELECT MIN(v2.f2) FROM t1 );
-count(*)
-1
-delete from t1;
-SELECT ( SELECT MIN(t2.f2) FROM t1 ) AS sq FROM t2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT ( SELECT MIN(v2.f2) FROM t1 ) AS sq FROM v2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-drop view v2;
-drop table t1,t2;
-#
-# MDEV-10386 Assertion `fixed == 1' failed in virtual String* Item_func_conv_charset::val_str(String*)
-#
-CREATE TABLE t1 (f1 CHAR(3) CHARACTER SET utf8 NULL, f2 CHAR(3) CHARACTER SET latin1 NULL);
-INSERT INTO t1 VALUES ('foo','bar');
-SELECT * FROM t1 WHERE f2 >= SOME ( SELECT f1 FROM t1 );
-f1 f2
-SELECT * FROM t1 WHERE f2 <= SOME ( SELECT f1 FROM t1 );
-f1 f2
-foo bar
-DROP TABLE t1;
-#
-# MDEV-10146: Wrong result (or questionable result and behavior)
-# with aggregate function in uncorrelated SELECT subquery
-#
-CREATE TABLE t1 (f1 INT);
-CREATE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 int);
-INSERT INTO t2 VALUES (3);
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM t1;
-( SELECT MAX(f1) FROM t2 )
-2
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM v1;
-( SELECT MAX(f1) FROM t2 )
-2
-INSERT INTO t2 VALUES (4);
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM v1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-drop view v1;
-drop table t1,t2;
-CREATE TABLE t1 (f1 INT, KEY(f1)) ENGINE=MyISAM;
-INSERT t1 VALUES (4),(8);
-CREATE TABLE t2 (f2 INT, KEY(f2)) ENGINE=MyISAM;
-INSERT t2 VALUES (6);
-SELECT (SELECT MAX(sq.f2) FROM t1) FROM (SELECT * FROM t2) AS sq WHERE f2 = 2;
-(SELECT MAX(sq.f2) FROM t1)
-NULL
-#
-# Disable this query till MDEV-13399 is resolved
-#
-# INSERT t2 VALUES (9);
-# --error ER_SUBQUERY_NO_1_ROW
-# SELECT (SELECT MAX(sq.f2) FROM t1) FROM (SELECT * FROM t2) AS sq WHERE f2 = 2;
-#
-drop table t1, t2;
-#
-# MDEV-13933: Wrong results in COUNT() query with EXISTS and exists_to_in
-# (5.5 test)
-#
-SET @optimiser_switch_save= @@optimizer_switch;
-CREATE TABLE t1 (a INT NOT NULL);
-INSERT INTO t1 VALUES (1),(1),(1),(5),(5);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (5),(1);
-CREATE TABLE t3 (c INT, KEY(c));
-INSERT INTO t3 VALUES (5),(5);
-SET optimizer_switch='semijoin=on';
-select t1.a from t1 where t1.a in (select `test`.`t2`.`b` from `test`.`t2`)
-and t1.a in (select `test`.`t3`.`c` from `test`.`t3`);
-a
-5
-5
-SET optimizer_switch='semijoin=off';
-select t1.a from t1 where t1.a in (select `test`.`t2`.`b` from `test`.`t2`)
-and t1.a in (select `test`.`t3`.`c` from `test`.`t3`);
-a
-5
-5
-SET @@optimizer_switch= @optimiser_switch_save;
-DROP TABLE t1, t2, t3;
-End of 5.5 tests
-# End of 10.0 tests
-#
-# MDEV-9487: Server crashes in Time_and_counter_tracker::incr_loops
-# with UNION in ALL subquery
-#
-SET NAMES utf8;
-CREATE TABLE t1 (f VARCHAR(8)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo');
-SELECT f FROM t1 WHERE f > ALL ( SELECT 'bar' UNION SELECT 'baz' );
-f
-foo
-SELECT f FROM t1 WHERE f > ALL ( SELECT 'bar');
-f
-foo
-drop table t1;
-SET NAMES default;
-#
-# MDEV-10045: Server crashes in Time_and_counter_tracker::incr_loops
-#
-SET NAMES utf8;
-CREATE TABLE t1 (f1 VARCHAR(3), f2 INT UNSIGNED) ENGINE=MyISAM;
-CREATE TABLE t2 (f3 INT) ENGINE=MyISAM;
-SELECT * FROM t1, t2 WHERE f3 = f2 AND f1 > ANY ( SELECT 'foo' UNION SELECT 'bar' );
-f1 f2 f3
-SELECT * FROM t1, t2 WHERE f3 = f2 AND f1 > ANY ( SELECT 'foo');
-f1 f2 f3
-DROP TABLE t1, t2;
-SET NAMES default;
-# End of 10.1 tests
-#
-# MDEV-12564: IN TO EXISTS transformation for rows after
-# conversion an outer join to inner join
-#
-CREATE TABLE t (
-pk int PRIMARY KEY, i int NOT NULL, c varchar(8), KEY(c)
-) ENGINE=MyISAM;
-INSERT INTO t VALUES (1,10,'foo'),(2,20,'bar');
-SELECT * FROM t t1 RIGHT JOIN t t2 ON (t2.pk = t1.pk)
-WHERE (t2.i, t2.pk) NOT IN ( SELECT t3.i, t3.i FROM t t3, t t4 ) AND t1.c = 'foo';
-pk i c pk i c
-1 10 foo 1 10 foo
-DROP TABLE t;
-# End of 10.2 tests
-set @optimizer_switch_for_subselect_test=null;
diff --git a/mysql-test/r/subselect_no_scache.result b/mysql-test/r/subselect_no_scache.result
deleted file mode 100644
index a594f5f85b9..00000000000
--- a/mysql-test/r/subselect_no_scache.result
+++ /dev/null
@@ -1,7296 +0,0 @@
-select @@optimizer_switch like '%subquery_cache=on%';
-@@optimizer_switch like '%subquery_cache=on%'
-1
-set optimizer_switch='subquery_cache=off';
-set join_cache_level=1;
-set @join_cache_level_for_subselect_test=@@join_cache_level;
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t11,t12;
-drop view if exists v2;
-call mtr.add_suppression("Sort aborted.*");
-set @subselect_tmp=@@optimizer_switch;
-set @@optimizer_switch=ifnull(@optimizer_switch_for_subselect_test,
-"semijoin=on,firstmatch=on,loosescan=on,semijoin_with_cache=on,partial_match_rowid_merge=off,partial_match_table_scan=off");
-set join_cache_level=@join_cache_level_for_subselect_test;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-select (select 2);
-(select 2)
-2
-explain extended select (select 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select 2 AS `(select 2)`
-SELECT (SELECT 1) UNION SELECT (SELECT 2);
-(SELECT 1)
-1
-2
-explain extended SELECT (SELECT 1) UNION SELECT (SELECT 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1249 Select 4 was reduced during optimization
-Note 1003 /* select#1 */ select 1 AS `(SELECT 1)` union /* select#3 */ select 2 AS `(SELECT 2)`
-SELECT (SELECT (SELECT 0 UNION SELECT 0));
-(SELECT (SELECT 0 UNION SELECT 0))
-0
-explain extended SELECT (SELECT (SELECT 0 UNION SELECT 0));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 /* select#1 */ select (/* select#3 */ select 0 union /* select#4 */ select 0) AS `(SELECT (SELECT 0 UNION SELECT 0))`
-SELECT (SELECT 1 FROM (SELECT 1) as b HAVING a=1) as a;
-ERROR 42S22: Reference 'a' not supported (forward reference in item list)
-SELECT (SELECT 1 FROM (SELECT 1) as b HAVING b=1) as a,(SELECT 1 FROM (SELECT 1) as c HAVING a=1) as b;
-ERROR 42S22: Reference 'b' not supported (forward reference in item list)
-SELECT (SELECT 1),MAX(1) FROM (SELECT 1) as a;
-(SELECT 1) MAX(1)
-1 1
-SELECT (SELECT a) as a;
-ERROR 42S22: Reference 'a' not supported (forward reference in item list)
-EXPLAIN EXTENDED SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 1 100.00
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1276 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
-Note 1276 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 1 AS `1` from dual having (/* select#3 */ select 1) = 1
-SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
-1
-1
-SELECT (SELECT 1), a;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT 1 as a FROM (SELECT 1) as b HAVING (SELECT a)=1;
-a
-1
-SELECT 1 FROM (SELECT (SELECT a) b) c;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT * FROM (SELECT 1 as id) b WHERE id IN (SELECT * FROM (SELECT 1 as id) c ORDER BY id);
-id
-1
-SELECT * FROM (SELECT 1) a WHERE 1 IN (SELECT 1,1);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT 1 IN (SELECT 1);
-1 IN (SELECT 1)
-1
-SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
-1
-1
-select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE(1))' at line 1
-SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1))' at line 1
-SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT (SELECT 1,2,3) = ROW(1,2,3);
-(SELECT 1,2,3) = ROW(1,2,3)
-1
-SELECT (SELECT 1,2,3) = ROW(1,2,1);
-(SELECT 1,2,3) = ROW(1,2,1)
-0
-SELECT (SELECT 1,2,3) < ROW(1,2,1);
-(SELECT 1,2,3) < ROW(1,2,1)
-0
-SELECT (SELECT 1,2,3) > ROW(1,2,1);
-(SELECT 1,2,3) > ROW(1,2,1)
-1
-SELECT (SELECT 1,2,3) = ROW(1,2,NULL);
-(SELECT 1,2,3) = ROW(1,2,NULL)
-NULL
-SELECT ROW(1,2,3) = (SELECT 1,2,3);
-ROW(1,2,3) = (SELECT 1,2,3)
-1
-SELECT ROW(1,2,3) = (SELECT 1,2,1);
-ROW(1,2,3) = (SELECT 1,2,1)
-0
-SELECT ROW(1,2,3) < (SELECT 1,2,1);
-ROW(1,2,3) < (SELECT 1,2,1)
-0
-SELECT ROW(1,2,3) > (SELECT 1,2,1);
-ROW(1,2,3) > (SELECT 1,2,1)
-1
-SELECT ROW(1,2,3) = (SELECT 1,2,NULL);
-ROW(1,2,3) = (SELECT 1,2,NULL)
-NULL
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,2,'a');
-(SELECT 1.5,2,'a') = ROW(1.5,2,'a')
-1
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,2,'b');
-(SELECT 1.5,2,'a') = ROW(1.5,2,'b')
-0
-SELECT (SELECT 1.5,2,'a') = ROW('1.5b',2,'b');
-(SELECT 1.5,2,'a') = ROW('1.5b',2,'b')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1.5b'
-SELECT (SELECT 'b',2,'a') = ROW(1.5,2,'a');
-(SELECT 'b',2,'a') = ROW(1.5,2,'a')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,'2','a');
-(SELECT 1.5,2,'a') = ROW(1.5,'2','a')
-1
-SELECT (SELECT 1.5,'c','a') = ROW(1.5,2,'a');
-(SELECT 1.5,'c','a') = ROW(1.5,2,'a')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-SELECT (SELECT * FROM (SELECT 'test' a,'test' b) a);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT 1 as a,(SELECT a+a) b,(SELECT b);
-a b (SELECT b)
-1 2 2
-create table t1 (a int);
-create table t2 (a int, b int);
-create table t3 (a int);
-create table t4 (a int not null, b int not null);
-insert into t1 values (2);
-insert into t2 values (1,7),(2,7);
-insert into t4 values (4,8),(3,8),(5,9);
-select (select a from t1 where t1.a = a1) as a2, (select b from t2 where t2.b=a2) as a1;
-ERROR 42S22: Reference 'a1' not supported (forward reference in item list)
-select (select a from t1 where t1.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a) a
-NULL 1
-2 2
-select (select a from t1 where t1.a=t2.b), a from t2;
-(select a from t1 where t1.a=t2.b) a
-NULL 1
-NULL 2
-select (select a from t1), a, (select 1 union select 2 limit 1) from t2;
-(select a from t1) a (select 1 union select 2 limit 1)
-2 1 1
-2 2 1
-select (select a from t3), a from t2;
-(select a from t3) a
-NULL 1
-NULL 2
-select * from t2 where t2.a=(select a from t1);
-a b
-2 7
-insert into t3 values (6),(7),(3);
-select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1);
-a b
-1 7
-2 7
-(select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 order by a limit 2) limit 3;
-a b
-1 7
-2 7
-3 8
-(select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 where t4.b=(select max(t2.a)*4 from t2) order by a);
-a b
-1 7
-2 7
-4 8
-3 8
-explain extended (select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 where t4.b=(select max(t2.a)*4 from t2) order by a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-3 UNION t4 ALL NULL NULL NULL NULL 3 100.00 Using where
-4 SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00
-NULL UNION RESULT <union1,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 (/* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`b` = (/* select#2 */ select `test`.`t3`.`a` from `test`.`t3` order by 1 desc limit 1)) union (/* select#3 */ select `test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b` from `test`.`t4` where `test`.`t4`.`b` = (/* select#4 */ select max(`test`.`t2`.`a`) * 4 from `test`.`t2`))
-select (select a from t3 where a<t2.a*4 order by 1 desc limit 1), a from t2;
-(select a from t3 where a<t2.a*4 order by 1 desc limit 1) a
-3 1
-7 2
-select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
-(select * from t2 where a>1) as tt;
-(select t3.a from t3 where a<8 order by 1 desc limit 1) a
-7 2
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-explain extended select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
-(select * from t2 where a>1) as tt;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select `test`.`t3`.`a` from `test`.`t3` where `test`.`t3`.`a` < 8 order by 1 desc limit 1) AS `(select t3.a from t3 where a<8 order by 1 desc limit 1)`,`tt`.`a` AS `a` from (/* select#3 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`a` > 1) `tt`
-set optimizer_switch=@tmp_optimizer_switch;
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3) order by 1 desc limit 1);
-a
-2
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3 where t3.a > t1.a) order by 1 desc limit 1);
-a
-2
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3 where t3.a < t1.a) order by 1 desc limit 1);
-a
-select b,(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2) from t4;
-b (select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2)
-8 7.5000
-8 4.5000
-9 7.5000
-explain extended select b,(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2) from t4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t4 ALL NULL NULL NULL NULL 3 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t4.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t4`.`b` AS `b`,(/* select#2 */ select avg(`test`.`t2`.`a` + (/* select#3 */ select min(`test`.`t3`.`a`) from `test`.`t3` where `test`.`t3`.`a` >= `test`.`t4`.`a`)) from `test`.`t2`) AS `(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2)` from `test`.`t4`
-select * from t3 where exists (select * from t2 where t2.b=t3.a);
-a
-7
-select * from t3 where not exists (select * from t2 where t2.b=t3.a);
-a
-6
-3
-select * from t3 where a in (select b from t2);
-a
-7
-select * from t3 where a not in (select b from t2);
-a
-6
-3
-select * from t3 where a = some (select b from t2);
-a
-7
-select * from t3 where a <> any (select b from t2);
-a
-6
-3
-select * from t3 where a = all (select b from t2);
-a
-7
-select * from t3 where a <> all (select b from t2);
-a
-6
-3
-insert into t2 values (100, 5);
-select * from t3 where a < any (select b from t2);
-a
-6
-3
-select * from t3 where a < all (select b from t2);
-a
-3
-select * from t3 where a >= any (select b from t2);
-a
-6
-7
-explain extended select * from t3 where a >= any (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(`test`.`t2`.`b`) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= all (select b from t2);
-a
-7
-delete from t2 where a=100;
-select * from t3 where a in (select a,b from t2);
-ERROR 21000: Operand should contain 1 column(s)
-select * from t3 where a in (select * from t2);
-ERROR 21000: Operand should contain 1 column(s)
-insert into t4 values (12,7),(1,7),(10,9),(9,6),(7,6),(3,9),(1,10);
-select b,max(a) as ma from t4 group by b having b < (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-insert into t2 values (2,10);
-select b,max(a) as ma from t4 group by b having ma < (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-10 1
-delete from t2 where a=2 and b=10;
-select b,max(a) as ma from t4 group by b having b >= (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-7 12
-create table t5 (a int);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-insert into t5 values (5);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-insert into t5 values (2);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-explain extended select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-3 DEPENDENT UNION t5 ALL NULL NULL NULL NULL 2 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1276 Field or reference 'test.t2.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t2.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select (/* select#2 */ select 2 from dual where 2 = `test`.`t2`.`a` union /* select#3 */ select `test`.`t5`.`a` from `test`.`t5` where `test`.`t5`.`a` = `test`.`t2`.`a`) AS `(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a)`,`test`.`t2`.`a` AS `a` from `test`.`t2`
-select (select a from t1 where t1.a=t2.a union all select a from t5 where t5.a=t2.a), a from t2;
-ERROR 21000: Subquery returns more than 1 row
-create table t6 (patient_uq int, clinic_uq int, index i1 (clinic_uq));
-create table t7( uq int primary key, name char(25));
-insert into t7 values(1,"Oblastnaia bolnitsa"),(2,"Bolnitsa Krasnogo Kresta");
-insert into t6 values (1,1),(1,2),(2,2),(1,3);
-select * from t6 where exists (select * from t7 where uq = clinic_uq);
-patient_uq clinic_uq
-1 1
-1 2
-2 2
-explain extended select * from t6 where exists (select * from t7 where uq = clinic_uq);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t7 index PRIMARY PRIMARY 4 NULL 2 100.00 Using index
-1 PRIMARY t6 ALL i1 NULL NULL NULL 4 75.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1276 Field or reference 'test.t6.clinic_uq' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`t6`.`patient_uq` AS `patient_uq`,`test`.`t6`.`clinic_uq` AS `clinic_uq` from `test`.`t7` join `test`.`t6` where `test`.`t6`.`clinic_uq` = `test`.`t7`.`uq`
-select * from t1 where a= (select a from t2,t4 where t2.b=t4.b);
-ERROR 23000: Column 'a' in field list is ambiguous
-drop table t1,t2,t3;
-CREATE TABLE t3 (a varchar(20),b char(1) NOT NULL default '0');
-INSERT INTO t3 VALUES ('W','a'),('A','c'),('J','b');
-CREATE TABLE t2 (a varchar(20),b int NOT NULL default '0');
-INSERT INTO t2 VALUES ('W','1'),('A','3'),('J','2');
-CREATE TABLE t1 (a varchar(20),b date NOT NULL default '0000-00-00');
-INSERT INTO t1 VALUES ('W','1732-02-22'),('A','1735-10-30'),('J','1743-04-13');
-SELECT * FROM t1 WHERE b = (SELECT MIN(b) FROM t1);
-a b
-W 1732-02-22
-SELECT * FROM t2 WHERE b = (SELECT MIN(b) FROM t2);
-a b
-W 1
-SELECT * FROM t3 WHERE b = (SELECT MIN(b) FROM t3);
-a b
-W a
-CREATE TABLE `t8` (
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-`email` varchar(60) character set latin1 NOT NULL default '',
-PRIMARY KEY (`pseudo`),
-UNIQUE KEY `email` (`email`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t8 (pseudo,email) VALUES ('joce','test');
-INSERT INTO t8 (pseudo,email) VALUES ('joce1','test1');
-INSERT INTO t8 (pseudo,email) VALUES ('2joce1','2test1');
-EXPLAIN EXTENDED SELECT pseudo,(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce')) FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-4 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-2 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00
-3 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select 'test' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo,email FROM
-t8 WHERE pseudo='joce');
-ERROR HY000: Illegal parameter data types varchar and row for operation '='
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT * FROM t8 WHERE
-pseudo='joce');
-ERROR HY000: Illegal parameter data types varchar and row for operation '='
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce');
-pseudo
-joce
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo LIKE '%joce%');
-ERROR 21000: Subquery returns more than 1 row
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8;
-CREATE TABLE `t1` (
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (topic,date,pseudo) VALUES
-('43506','2002-10-02','joce'),('40143','2002-08-03','joce');
-EXPLAIN EXTENDED SELECT DISTINCT date FROM t1 WHERE date='2002-08-03';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index NULL PRIMARY 43 NULL 2 100.00 Using where; Using index
-Warnings:
-Note 1003 select distinct `test`.`t1`.`date` AS `date` from `test`.`t1` where `test`.`t1`.`date` = DATE'2002-08-03'
-EXPLAIN EXTENDED SELECT (SELECT DISTINCT date FROM t1 WHERE date='2002-08-03');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t1 index NULL PRIMARY 43 NULL 2 100.00 Using where; Using index
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select distinct `test`.`t1`.`date` from `test`.`t1` where `test`.`t1`.`date` = DATE'2002-08-03') AS `(SELECT DISTINCT date FROM t1 WHERE date='2002-08-03')`
-SELECT DISTINCT date FROM t1 WHERE date='2002-08-03';
-date
-2002-08-03
-SELECT (SELECT DISTINCT date FROM t1 WHERE date='2002-08-03');
-(SELECT DISTINCT date FROM t1 WHERE date='2002-08-03')
-2002-08-03
-SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION SELECT 1) UNION ALL SELECT 1;
-1
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION ALL SELECT 1) UNION SELECT 1;
-ERROR 21000: Subquery returns more than 1 row
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION SELECT 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL topic 3 NULL 2 100.00 Using index
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-drop table t1;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM ROW_FORMAT=FIXED;
-INSERT INTO t1 (numeropost,maxnumrep) VALUES (40143,1),(43506,2);
-CREATE TABLE `t2` (
-`mot` varchar(30) NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`)
-) ENGINE=MyISAM ROW_FORMAT=DYNAMIC;
-INSERT INTO t2 (mot,topic,date,pseudo) VALUES ('joce','40143','2002-10-22','joce'), ('joce','43506','2002-10-22','joce');
-select numeropost as a FROM t1 GROUP BY (SELECT 1 FROM t1 HAVING a=1);
-a
-40143
-SELECT numeropost,maxnumrep FROM t1 WHERE exists (SELECT 1 FROM t2 WHERE (mot='joce') AND date >= '2002-10-21' AND t1.numeropost = t2.topic) ORDER BY maxnumrep DESC LIMIT 0, 20;
-numeropost maxnumrep
-43506 2
-40143 1
-SELECT (SELECT 1) as a FROM (SELECT 1 FROM t1 HAVING a=1) b;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT 1 IN (SELECT 1 FROM t2 HAVING a);
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-SELECT * from t2 where topic IN (SELECT SUM(topic) FROM t1);
-mot topic date pseudo
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-SELECT * from t2 where topic = any (SELECT SUM(topic) FROM t1);
-mot topic date pseudo
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT *, topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100) from t2;
-mot topic date pseudo topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100)
-joce 40143 2002-10-22 joce 1
-joce 43506 2002-10-22 joce 1
-SELECT * from t2 where topic = all (SELECT SUM(topic) FROM t2);
-mot topic date pseudo
-SELECT * from t2 where topic <> any (SELECT SUM(topic) FROM t2);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT *, topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000) from t2;
-mot topic date pseudo topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000)
-joce 40143 2002-10-22 joce 1
-joce 43506 2002-10-22 joce 0
-drop table t1,t2;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM ROW_FORMAT=FIXED;
-INSERT INTO t1 (numeropost,maxnumrep) VALUES (1,0),(2,1);
-select numeropost as a FROM t1 GROUP BY (SELECT 1 FROM t1 HAVING a=1);
-ERROR 21000: Subquery returns more than 1 row
-select numeropost as a FROM t1 ORDER BY (SELECT 1 FROM t1 HAVING a=1);
-ERROR 21000: Subquery returns more than 1 row
-show warnings;
-Level Code Message
-Error 1242 Subquery returns more than 1 row
-Error 1028 Sort aborted: Subquery returns more than 1 row
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-(select * from t1) union (select * from t1) order by (select a from t1 limit 1);
-a
-1
-2
-3
-drop table t1;
-CREATE TABLE t1 (field char(1) NOT NULL DEFAULT 'b');
-INSERT INTO t1 VALUES ();
-SELECT field FROM t1 WHERE 1=(SELECT 1 UNION ALL SELECT 1 FROM (SELECT 1) a HAVING field='b');
-ERROR 21000: Subquery returns more than 1 row
-drop table t1;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL default '0',
-`numreponse` int(10) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) NOT NULL default '',
-PRIMARY KEY (`numeropost`,`numreponse`),
-UNIQUE KEY `numreponse` (`numreponse`),
-KEY `pseudo` (`pseudo`,`numeropost`)
-) ENGINE=MyISAM;
-SELECT (SELECT numeropost FROM t1 HAVING numreponse=a),numreponse FROM (SELECT * FROM t1) as a;
-ERROR 42S22: Reference 'numreponse' not supported (forward reference in item list)
-SELECT numreponse, (SELECT numeropost FROM t1 HAVING numreponse=a) FROM (SELECT * FROM t1) as a;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT numreponse, (SELECT numeropost FROM t1 HAVING numreponse=1) FROM (SELECT * FROM t1) as a;
-numreponse (SELECT numeropost FROM t1 HAVING numreponse=1)
-INSERT INTO t1 (numeropost,numreponse,pseudo) VALUES (1,1,'joce'),(1,2,'joce'),(1,3,'test');
-EXPLAIN EXTENDED SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT 1 FROM t1 WHERE numeropost='1');
-ERROR 21000: Subquery returns more than 1 row
-SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT 1 FROM t1 WHERE numeropost='1');
-ERROR 21000: Subquery returns more than 1 row
-EXPLAIN EXTENDED SELECT MAX(numreponse) FROM t1 WHERE numeropost='1';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 select max(`test`.`t1`.`numreponse`) AS `MAX(numreponse)` from `test`.`t1` where `test`.`t1`.`numeropost` = '1'
-EXPLAIN EXTENDED SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT MAX(numreponse) FROM t1 WHERE numeropost='1');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 const PRIMARY,numreponse PRIMARY 7 const,const 1 100.00 Using index
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 /* select#1 */ select 3 AS `numreponse` from `test`.`t1` where 1
-drop table t1;
-CREATE TABLE t1 (a int(1));
-INSERT INTO t1 VALUES (1);
-SELECT 1 FROM (SELECT a FROM t1) b HAVING (SELECT b.a)=1;
-1
-1
-drop table t1;
-create table t1 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t1 values (0, 10),(1, 11),(2, 12);
-insert into t2 values (1, 21),(2, 22),(3, 23);
-select * from t1;
-a b
-0 10
-1 11
-2 12
-update t1 set b= (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-update t1 set b= (select b from t2 where t1.a = t2.a);
-select * from t1;
-a b
-0 NULL
-1 21
-2 22
-drop table t1, t2;
-create table t1 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t1 values (0, 10),(1, 11),(2, 12);
-insert into t2 values (1, 21),(2, 12),(3, 23);
-select * from t1;
-a b
-0 10
-1 11
-2 12
-select * from t1 where b = (select b from t2 where t1.a = t2.a);
-a b
-2 12
-delete from t1 where b in (select b from t1);
-affected rows: 3
-insert into t1 values (0, 10),(1, 11),(2, 12);
-delete from t1 where b = (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-delete from t1 where b = (select b from t2 where t1.a = t2.a);
-select * from t1 order by b;
-a b
-0 10
-1 11
-drop table t1, t2;
-create table t11 (a int NOT NULL, b int, primary key (a));
-create table t12 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t11 values (0, 10),(1, 11),(2, 12);
-insert into t12 values (33, 10),(22, 11),(2, 12);
-insert into t2 values (1, 21),(2, 12),(3, 23);
-select * from t11;
-a b
-0 10
-1 11
-2 12
-select * from t12;
-a b
-33 10
-22 11
-2 12
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t12 where t11.a = t12.a);
-ERROR HY000: Table 't12' is specified twice, both as a target for 'DELETE' and as a separate source for data
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t2 where t11.a = t2.a);
-select * from t11;
-a b
-0 10
-1 11
-select * from t12;
-a b
-33 10
-22 11
-drop table t11, t12, t2;
-CREATE TABLE t1 (x int) ENGINE=MyISAM;
-create table t2 (a int) ENGINE=MyISAM;
-create table t3 (b int);
-insert into t2 values (1);
-insert into t3 values (1),(2);
-INSERT INTO t1 (x) VALUES ((SELECT x FROM t1));
-ERROR HY000: Table 't1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-INSERT INTO t1 (x) VALUES ((SELECT b FROM t3));
-ERROR 21000: Subquery returns more than 1 row
-INSERT INTO t1 (x) VALUES ((SELECT a FROM t2));
-select * from t1;
-x
-1
-insert into t2 values (1);
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
-select * from t1;
-x
-1
-2
-INSERT INTO t1 (x) select (SELECT SUM(a)+1 FROM t2) FROM t2;
-select * from t1;
-x
-1
-2
-3
-3
-INSERT INTO t1 (x) select (SELECT SUM(x)+2 FROM t1) FROM t2;
-select * from t1;
-x
-1
-2
-3
-3
-11
-11
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(x) FROM t2));
-ERROR 42S22: Unknown column 'x' in 'field list'
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
-select * from t1;
-x
-1
-2
-3
-3
-11
-11
-2
-drop table t1, t2, t3;
-CREATE TABLE t1 (x int not null, y int, primary key (x)) ENGINE=MyISAM;
-create table t2 (a int);
-create table t3 (a int);
-insert into t2 values (1);
-insert into t3 values (1),(2);
-select * from t1;
-x y
-replace into t1 (x, y) VALUES ((SELECT x FROM t1), (SELECT a+1 FROM t2));
-ERROR HY000: Table 't1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-replace into t1 (x, y) VALUES ((SELECT a FROM t3), (SELECT a+1 FROM t2));
-ERROR 21000: Subquery returns more than 1 row
-replace into t1 (x, y) VALUES ((SELECT a FROM t2), (SELECT a+1 FROM t2));
-select * from t1;
-x y
-1 2
-replace into t1 (x, y) VALUES ((SELECT a FROM t2), (SELECT a+2 FROM t2));
-select * from t1;
-x y
-1 3
-replace DELAYED into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a FROM t2));
-select * from t1;
-x y
-1 3
-4 1
-replace DELAYED into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a+1 FROM t2));
-select * from t1;
-x y
-1 3
-4 2
-replace LOW_PRIORITY into t1 (x, y) VALUES ((SELECT a+1 FROM t2), (SELECT a FROM t2));
-select * from t1;
-x y
-1 3
-4 2
-2 1
-drop table t1, t2, t3;
-SELECT * FROM (SELECT 1) b WHERE 1 IN (SELECT *);
-ERROR HY000: No tables used
-CREATE TABLE t2 (id int(11) default NULL, KEY id (id)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (1),(2);
-SELECT * FROM t2 WHERE id IN (SELECT 1);
-id
-1
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ref id id 5 const 1 100.00 Using index
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t2`.`id` AS `id` from `test`.`t2` where `test`.`t2`.`id` = 1
-SELECT * FROM t2 WHERE id IN (SELECT 1 UNION SELECT 3);
-id
-1
-SELECT * FROM t2 WHERE id IN (SELECT 1+(select 1));
-id
-2
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1+(select 1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ref id id 5 const 1 100.00 Using where; Using index
-Warnings:
-Note 1249 Select 3 was reduced during optimization
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t2`.`id` AS `id` from `test`.`t2` where `test`.`t2`.`id` = <cache>(1 + 1)
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1 UNION SELECT 3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL id 5 NULL 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`id` AS `id` from `test`.`t2` where <in_optimizer>(`test`.`t2`.`id`,<exists>(/* select#2 */ select 1 having <cache>(`test`.`t2`.`id`) = <ref_null_helper>(1) union /* select#3 */ select 3 having <cache>(`test`.`t2`.`id`) = <ref_null_helper>(3)))
-SELECT * FROM t2 WHERE id IN (SELECT 5 UNION SELECT 3);
-id
-SELECT * FROM t2 WHERE id IN (SELECT 5 UNION SELECT 2);
-id
-2
-INSERT INTO t2 VALUES ((SELECT * FROM t2));
-ERROR HY000: Table 't2' is specified twice, both as a target for 'INSERT' and as a separate source for data
-INSERT INTO t2 VALUES ((SELECT id FROM t2));
-ERROR HY000: Table 't2' is specified twice, both as a target for 'INSERT' and as a separate source for data
-SELECT * FROM t2;
-id
-1
-2
-CREATE TABLE t1 (id int(11) default NULL, KEY id (id)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 values (1),(1);
-UPDATE t2 SET id=(SELECT * FROM t1);
-ERROR 21000: Subquery returns more than 1 row
-drop table t2, t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-select 1 IN (SELECT * from t1);
-1 IN (SELECT * from t1)
-1
-select 10 IN (SELECT * from t1);
-10 IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a=2;
-select 1 IN (SELECT * from t1);
-1 IN (SELECT * from t1)
-1
-select 3 IN (SELECT * from t1);
-3 IN (SELECT * from t1)
-1
-select 10 IN (SELECT * from t1);
-10 IN (SELECT * from t1)
-NULL
-select 1 > ALL (SELECT * from t1);
-1 > ALL (SELECT * from t1)
-0
-select 10 > ALL (SELECT * from t1);
-10 > ALL (SELECT * from t1)
-NULL
-select 1 > ANY (SELECT * from t1);
-1 > ANY (SELECT * from t1)
-NULL
-select 10 > ANY (SELECT * from t1);
-10 > ANY (SELECT * from t1)
-1
-drop table t1;
-create table t1 (a varchar(20));
-insert into t1 values ('A'),('BC'),('DEF');
-select 'A' IN (SELECT * from t1);
-'A' IN (SELECT * from t1)
-1
-select 'XYZS' IN (SELECT * from t1);
-'XYZS' IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a='BC';
-select 'A' IN (SELECT * from t1);
-'A' IN (SELECT * from t1)
-1
-select 'DEF' IN (SELECT * from t1);
-'DEF' IN (SELECT * from t1)
-1
-select 'XYZS' IN (SELECT * from t1);
-'XYZS' IN (SELECT * from t1)
-NULL
-select 'A' > ALL (SELECT * from t1);
-'A' > ALL (SELECT * from t1)
-0
-select 'XYZS' > ALL (SELECT * from t1);
-'XYZS' > ALL (SELECT * from t1)
-NULL
-select 'A' > ANY (SELECT * from t1);
-'A' > ANY (SELECT * from t1)
-NULL
-select 'XYZS' > ANY (SELECT * from t1);
-'XYZS' > ANY (SELECT * from t1)
-1
-drop table t1;
-create table t1 (a float);
-insert into t1 values (1.5),(2.5),(3.5);
-select 1.5 IN (SELECT * from t1);
-1.5 IN (SELECT * from t1)
-1
-select 10.5 IN (SELECT * from t1);
-10.5 IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a=2.5;
-select 1.5 IN (SELECT * from t1);
-1.5 IN (SELECT * from t1)
-1
-select 3.5 IN (SELECT * from t1);
-3.5 IN (SELECT * from t1)
-1
-select 10.5 IN (SELECT * from t1);
-10.5 IN (SELECT * from t1)
-NULL
-select 1.5 > ALL (SELECT * from t1);
-1.5 > ALL (SELECT * from t1)
-0
-select 10.5 > ALL (SELECT * from t1);
-10.5 > ALL (SELECT * from t1)
-NULL
-select 1.5 > ANY (SELECT * from t1);
-1.5 > ANY (SELECT * from t1)
-NULL
-select 10.5 > ANY (SELECT * from t1);
-10.5 > ANY (SELECT * from t1)
-1
-explain extended select (select a+1) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t1`.`a` + 1 AS `(select a+1)` from `test`.`t1`
-select (select a+1) from t1;
-(select a+1)
-2.5
-NULL
-4.5
-drop table t1;
-CREATE TABLE t1 (a int(11) NOT NULL default '0', PRIMARY KEY (a));
-CREATE TABLE t2 (a int(11) default '0', INDEX (a));
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-INSERT INTO t2 VALUES (1),(2),(3);
-SELECT t1.a, t1.a in (select t2.a from t2) FROM t1;
-a t1.a in (select t2.a from t2)
-1 1
-2 1
-3 1
-4 0
-explain extended SELECT t1.a, t1.a in (select t2.a from t2) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 4 100.00 Using index
-2 SUBQUERY t2 index_subquery a a 5 func 2 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,<in_optimizer>(`test`.`t1`.`a`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`a`) in t2 on a checking NULL having `test`.`t2`.`a` is null))) AS `t1.a in (select t2.a from t2)` from `test`.`t1`
-CREATE TABLE t3 (a int(11) default '0');
-INSERT INTO t3 VALUES (1),(2),(3);
-SELECT t1.a, t1.a in (select t2.a from t2,t3 where t3.a=t2.a) FROM t1;
-a t1.a in (select t2.a from t2,t3 where t3.a=t2.a)
-1 1
-2 1
-3 1
-4 0
-explain extended SELECT t1.a, t1.a in (select t2.a from t2,t3 where t3.a=t2.a) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 4 100.00 Using index
-2 DEPENDENT SUBQUERY t2 ref_or_null a a 5 func 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `test`.`t2`.`a` from `test`.`t2` join `test`.`t3` where `test`.`t3`.`a` = `test`.`t2`.`a` and (<cache>(`test`.`t1`.`a`) = `test`.`t2`.`a` or `test`.`t2`.`a` is null) having `test`.`t2`.`a` is null)) AS `t1.a in (select t2.a from t2,t3 where t3.a=t2.a)` from `test`.`t1`
-drop table t1,t2,t3;
-# check correct NULL Processing for normal IN/ALL/ANY
-# and 2 ways of max/min optimization
-create table t1 (a int);
-insert into t1 values (1), (100), (NULL), (1000);
-create table t2 (a int not null);
-# subselect returns empty set (for NULL and non-NULL left part)
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 0
-100 0
-NULL 0
-1000 0
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 0
-100 0
-NULL 0
-1000 0
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 1
-100 1
-NULL 1
-1000 1
-select a from t1 where a in (select * from t2);
-a
-select a from t1 where a > any (select * from t2);
-a
-select a from t1 where a > all (select * from t2);
-a
-1
-100
-NULL
-1000
-select a from t1 where a in (select * from t2 group by a);
-a
-select a from t1 where a > any (select * from t2 group by a);
-a
-select a from t1 where a > all (select * from t2 group by a);
-a
-1
-100
-NULL
-1000
-insert into t2 values (1),(200);
-# sebselect returns non-empty set without NULLs
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 1
-100 0
-NULL NULL
-1000 0
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 0
-100 1
-NULL NULL
-1000 1
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 0
-100 0
-NULL NULL
-1000 1
-select a from t1 where a in (select * from t2);
-a
-1
-select a from t1 where a > any (select * from t2);
-a
-100
-1000
-select a from t1 where a > all (select * from t2);
-a
-1000
-select a from t1 where a in (select * from t2 group by a);
-a
-1
-select a from t1 where a > any (select * from t2 group by a);
-a
-100
-1000
-select a from t1 where a > all (select * from t2 group by a);
-a
-1000
-drop table t2;
-create table t2 (a int);
-insert into t2 values (1),(NULL),(200);
-# sebselect returns non-empty set with NULLs
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 1
-100 NULL
-NULL NULL
-1000 NULL
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 NULL
-100 1
-NULL NULL
-1000 1
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 0
-100 0
-NULL NULL
-1000 NULL
-select a from t1 where a in (select * from t2);
-a
-1
-select a from t1 where a > any (select * from t2);
-a
-100
-1000
-select a from t1 where a > all (select * from t2);
-a
-select a from t1 where a in (select * from t2 group by a);
-a
-1
-select a from t1 where a > any (select * from t2 group by a);
-a
-100
-1000
-select a from t1 where a > all (select * from t2 group by a);
-a
-drop table t1, t2;
-create table t1 (a float);
-select 10.5 IN (SELECT * from t1 LIMIT 1);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-select 10.5 IN (SELECT * from t1 LIMIT 1 UNION SELECT 1.5);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1.5)' at line 1
-select 10.5 IN (SELECT * from t1 UNION SELECT 1.5 LIMIT 1);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-drop table t1;
-create table t1 (a int, b int, c varchar(10));
-create table t2 (a int);
-insert into t1 values (1,2,'a'),(2,3,'b'),(3,4,'c');
-insert into t2 values (1),(2),(NULL);
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,2,'a'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,2,'a') (select c from t1 where a=t2.a)
-1 1 a
-2 0 b
-NULL NULL NULL
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,3,'b'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,3,'b') (select c from t1 where a=t2.a)
-1 0 a
-2 1 b
-NULL NULL NULL
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,4,'c'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,4,'c') (select c from t1 where a=t2.a)
-1 0 a
-2 0 b
-NULL NULL NULL
-drop table t1,t2;
-create table t1 (a int, b real, c varchar(10));
-insert into t1 values (1, 1, 'a'), (2,2,'b'), (NULL, 2, 'b');
-select ROW(1, 1, 'a') IN (select a,b,c from t1);
-ROW(1, 1, 'a') IN (select a,b,c from t1)
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1);
-ROW(1, 2, 'a') IN (select a,b,c from t1)
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1);
-ROW(1, 1, 'a') IN (select b,a,c from t1)
-1
-select ROW(1, 1, 'a') IN (select a,b,c from t1 where a is not null);
-ROW(1, 1, 'a') IN (select a,b,c from t1 where a is not null)
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1 where a is not null);
-ROW(1, 2, 'a') IN (select a,b,c from t1 where a is not null)
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1 where a is not null);
-ROW(1, 1, 'a') IN (select b,a,c from t1 where a is not null)
-1
-select ROW(1, 1, 'a') IN (select a,b,c from t1 where c='b' or c='a');
-ROW(1, 1, 'a') IN (select a,b,c from t1 where c='b' or c='a')
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1 where c='b' or c='a');
-ROW(1, 2, 'a') IN (select a,b,c from t1 where c='b' or c='a')
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1 where c='b' or c='a');
-ROW(1, 1, 'a') IN (select b,a,c from t1 where c='b' or c='a')
-1
-select ROW(1, 1, 'a') IN (select b,a,c from t1 limit 2);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1);
-do @a:=(SELECT a from t1);
-select @a;
-@a
-1
-set @a:=2;
-set @a:=(SELECT a from t1);
-select @a;
-@a
-1
-drop table t1;
-do (SELECT a from t1);
-ERROR 42S02: Table 'test.t1' doesn't exist
-set @a:=(SELECT a from t1);
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (a int, KEY(a));
-HANDLER t1 OPEN;
-HANDLER t1 READ a=((SELECT 1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1))' at line 1
-HANDLER t1 CLOSE;
-drop table t1;
-create table t1 (a int);
-create table t2 (b int);
-insert into t1 values (1),(2);
-insert into t2 values (1);
-select a from t1 where a in (select a from t1 where a in (select b from t2));
-a
-1
-drop table t1, t2;
-create table t1 (a int, b int);
-create table t2 like t1;
-insert into t1 values (1,2),(1,3),(1,4),(1,5);
-insert into t2 values (1,2),(1,3);
-select * from t1 where row(a,b) in (select a,b from t2);
-a b
-1 2
-1 3
-drop table t1, t2;
-CREATE TABLE `t1` (`i` int(11) NOT NULL default '0',PRIMARY KEY (`i`)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1);
-UPDATE t1 SET i=i+1 WHERE i=(SELECT MAX(i));
-select * from t1;
-i
-2
-drop table t1;
-CREATE TABLE t1 (a int(1));
-EXPLAIN EXTENDED SELECT (SELECT RAND() FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select rand() from `test`.`t1`) AS `(SELECT RAND() FROM t1)` from `test`.`t1`
-EXPLAIN EXTENDED SELECT (SELECT ENCRYPT('test') FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select encrypt('test') from `test`.`t1`) AS `(SELECT ENCRYPT('test') FROM t1)` from `test`.`t1`
-EXPLAIN EXTENDED SELECT (SELECT BENCHMARK(1,1) FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select benchmark(1,1) from `test`.`t1`) AS `(SELECT BENCHMARK(1,1) FROM t1)` from `test`.`t1`
-drop table t1;
-CREATE TABLE `t1` (
-`mot` varchar(30) character set latin1 NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`),
-KEY `pseudo` (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-CREATE TABLE `t2` (
-`mot` varchar(30) character set latin1 NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`),
-KEY `pseudo` (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-CREATE TABLE `t3` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT IGNORE INTO t1 VALUES ('joce','1','','joce'),('test','2','','test');
-Warnings:
-Warning 1265 Data truncated for column 'date' at row 1
-Warning 1265 Data truncated for column 'date' at row 2
-INSERT IGNORE INTO t2 VALUES ('joce','1','','joce'),('test','2','','test');
-Warnings:
-Warning 1265 Data truncated for column 'date' at row 1
-Warning 1265 Data truncated for column 'date' at row 2
-INSERT INTO t3 VALUES (1,1);
-SELECT DISTINCT topic FROM t2 WHERE NOT EXISTS(SELECT * FROM t3 WHERE
-numeropost=topic);
-topic
-2
-select * from t1;
-mot topic date pseudo
-joce 1 0000-00-00 joce
-test 2 0000-00-00 test
-DELETE FROM t1 WHERE topic IN (SELECT DISTINCT topic FROM t2 WHERE NOT
-EXISTS(SELECT * FROM t3 WHERE numeropost=topic));
-select * from t1;
-mot topic date pseudo
-joce 1 0000-00-00 joce
-drop table t1, t2, t3;
-SELECT * FROM (SELECT 1 as a,(SELECT a)) a;
-a (SELECT a)
-1 1
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT 1)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT 1)` int(1) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT a)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT a)` int(1) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT a+0)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT a+0)` int(3) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT (SELECT 1 as a UNION SELECT 1+1 limit 1,1) as a;
-select * from t1;
-a
-2
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(3) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-explain extended select a,(select (select rand() from t1 limit 1) from t1 limit 1)
-from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-2 UNCACHEABLE SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00
-3 UNCACHEABLE SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,(/* select#2 */ select (/* select#3 */ select rand() from `test`.`t1` limit 1) from `test`.`t1` limit 1) AS `(select (select rand() from t1 limit 1) from t1 limit 1)` from `test`.`t1`
-drop table t1;
-select t1.Continent, t2.Name, t2.Population from t1 LEFT JOIN t2 ON t1.Code = t2.Country where t2.Population IN (select max(t2.Population) AS Population from t2, t1 where t2.Country = t1.Code group by Continent);
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (
-ID int(11) NOT NULL auto_increment,
-name char(35) NOT NULL default '',
-t2 char(3) NOT NULL default '',
-District char(20) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (130,'Sydney','AUS','New South Wales',3276207);
-INSERT INTO t1 VALUES (131,'Melbourne','AUS','Victoria',2865329);
-INSERT INTO t1 VALUES (132,'Brisbane','AUS','Queensland',1291117);
-CREATE TABLE t2 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL default 'Asia',
-Region char(26) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-IndepYear smallint(6) default NULL,
-Population int(11) NOT NULL default '0',
-LifeExpectancy float(3,1) default NULL,
-GNP float(10,2) default NULL,
-GNPOld float(10,2) default NULL,
-LocalName char(45) NOT NULL default '',
-GovernmentForm char(45) NOT NULL default '',
-HeadOfState char(60) default NULL,
-Capital int(11) default NULL,
-Code2 char(2) NOT NULL default '',
-PRIMARY KEY (Code)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('AUS','Australia','Oceania','Australia and New Zealand',7741220.00,1901,18886000,79.8,351182.00,392911.00,'Australia','Constitutional Monarchy, Federation','Elisabeth II',135,'AU');
-INSERT INTO t2 VALUES ('AZE','Azerbaijan','Asia','Middle East',86600.00,1991,7734000,62.9,4127.00,4100.00,'Azärbaycan','Federal Republic','Heydär Äliyev',144,'AZ');
-select t2.Continent, t1.Name, t1.Population from t2 LEFT JOIN t1 ON t2.Code = t1.t2 where t1.Population IN (select max(t1.Population) AS Population from t1, t2 where t1.t2 = t2.Code group by Continent);
-Continent Name Population
-Oceania Sydney 3276207
-drop table t1, t2;
-CREATE TABLE `t1` (
-`id` mediumint(8) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `pseudo` (`pseudo`)
-) ENGINE=MyISAM PACK_KEYS=1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (pseudo) VALUES ('test');
-SELECT 0 IN (SELECT 1 FROM t1 a);
-0 IN (SELECT 1 FROM t1 a)
-0
-EXPLAIN EXTENDED SELECT 0 IN (SELECT 1 FROM t1 a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 /* select#1 */ select <in_optimizer>(0,<exists>(/* select#2 */ select 1 from dual where 0 = 1)) AS `0 IN (SELECT 1 FROM t1 a)`
-INSERT INTO t1 (pseudo) VALUES ('test1');
-SELECT 0 IN (SELECT 1 FROM t1 a);
-0 IN (SELECT 1 FROM t1 a)
-0
-EXPLAIN EXTENDED SELECT 0 IN (SELECT 1 FROM t1 a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 /* select#1 */ select <in_optimizer>(0,<exists>(/* select#2 */ select 1 from `test`.`t1` `a` where 0 = 1)) AS `0 IN (SELECT 1 FROM t1 a)`
-drop table t1;
-CREATE TABLE `t1` (
-`i` int(11) NOT NULL default '0',
-PRIMARY KEY (`i`)
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1);
-UPDATE t1 SET i=i+(SELECT MAX(i) FROM (SELECT 1) t) WHERE i=(SELECT MAX(i));
-UPDATE t1 SET i=i+1 WHERE i=(SELECT MAX(i));
-UPDATE t1 SET t.i=i+(SELECT MAX(i) FROM (SELECT 1) t);
-ERROR 42S22: Unknown column 't.i' in 'field list'
-select * from t1;
-i
-3
-drop table t1;
-CREATE TABLE t1 (
-id int(11) default NULL
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1),(1),(2),(2),(1),(3);
-CREATE TABLE t2 (
-id int(11) default NULL,
-name varchar(15) default NULL
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (4,'vita'), (1,'vita'), (2,'vita'), (1,'vita');
-update t1, t2 set t2.name='lenka' where t2.id in (select id from t1);
-select * from t2;
-id name
-4 vita
-1 lenka
-2 lenka
-1 lenka
-drop table t1,t2;
-create table t1 (a int, unique index indexa (a));
-insert into t1 values (-1), (-4), (-2), (NULL);
-select -10 IN (select a from t1 FORCE INDEX (indexa));
--10 IN (select a from t1 FORCE INDEX (indexa))
-NULL
-drop table t1;
-create table t1 (id int not null auto_increment primary key, salary int, key(salary));
-insert into t1 (salary) values (100),(1000),(10000),(10),(500),(5000),(50000);
-explain extended SELECT id FROM t1 where salary = (SELECT MAX(salary) FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ref salary salary 5 const 1 100.00 Using where
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id` from `test`.`t1` where `test`.`t1`.`salary` = (/* select#2 */ select max(`test`.`t1`.`salary`) from `test`.`t1`)
-drop table t1;
-CREATE TABLE t1 (
-ID int(10) unsigned NOT NULL auto_increment,
-SUB_ID int(3) unsigned NOT NULL default '0',
-REF_ID int(10) unsigned default NULL,
-REF_SUB int(3) unsigned default '0',
-PRIMARY KEY (ID,SUB_ID),
-UNIQUE KEY t1_PK (ID,SUB_ID),
-KEY t1_FK (REF_ID,REF_SUB),
-KEY t1_REFID (REF_ID)
-) ENGINE=MyISAM CHARSET=cp1251;
-INSERT INTO t1 VALUES (1,0,NULL,NULL),(2,0,NULL,NULL);
-SELECT DISTINCT REF_ID FROM t1 WHERE ID= (SELECT DISTINCT REF_ID FROM t1 WHERE ID=2);
-REF_ID
-DROP TABLE t1;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1,0), (2,0), (3,0);
-insert into t2 values (1,1), (2,1), (3,1), (2,2);
-update ignore t1 set b=(select b from t2 where t1.a=t2.a);
-Warnings:
-Warning 1242 Subquery returns more than 1 row
-select * from t1;
-a b
-1 1
-2 NULL
-3 1
-drop table t1, t2;
-CREATE TABLE `t1` (
-`id` mediumint(8) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) NOT NULL default '',
-`email` varchar(60) NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `email` (`email`),
-UNIQUE KEY `pseudo` (`pseudo`)
-) ENGINE=MyISAM CHARSET=latin1 PACK_KEYS=1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (id,pseudo,email) VALUES (1,'test','test'),(2,'test1','test1');
-SELECT pseudo as a, pseudo as b FROM t1 GROUP BY (SELECT a) ORDER BY (SELECT id*1);
-a b
-test test
-test1 test1
-drop table if exists t1;
-(SELECT 1 as a) UNION (SELECT 1) ORDER BY (SELECT a+0);
-a
-1
-create table t1 (a int not null, b int, primary key (a));
-create table t2 (a int not null, primary key (a));
-create table t3 (a int not null, b int, primary key (a));
-insert into t1 values (1,10), (2,20), (3,30), (4,40);
-insert into t2 values (2), (3), (4), (5);
-insert into t3 values (10,3), (20,4), (30,5);
-select * from t2 where t2.a in (select a from t1);
-a
-2
-3
-4
-explain extended select * from t2 where t2.a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 4 100.00 Using index
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 4 75.00 Using where; Using index; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 4 100.00 Using index
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 4 75.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a` and `test`.`t1`.`b` <> 30
-select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-a
-2
-3
-explain extended select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 4 100.00 Using index
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 4 75.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 4 test.t1.b 1 100.00 Using index
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t1` join `test`.`t3` join `test`.`t2` where `test`.`t3`.`a` = `test`.`t1`.`b` and `test`.`t1`.`a` = `test`.`t2`.`a`
-drop table t1, t2, t3;
-create table t1 (a int, b int, index a (a,b));
-create table t2 (a int, index a (a));
-create table t3 (a int, b int, index a (a));
-insert into t1 values (1,10), (2,20), (3,30), (4,40);
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t1
-select rand()*100000+200,rand()*100000 from t0 A, t0 B, t0 C, t0 D;
-insert into t2 values (2), (3), (4), (5);
-insert into t3 values (10,3), (20,4), (30,5);
-select * from t2 where t2.a in (select a from t1);
-a
-2
-3
-4
-explain extended select * from t2 where t2.a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 5 test.t2.a 101 100.00 Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`t2`.`a`
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 5 test.t2.a 101 100.00 Using where; Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`t2`.`a` and `test`.`t1`.`b` <> 30
-select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-a
-2
-3
-explain extended select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t3 index a a 5 NULL 3 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 10 test.t2.a,test.t3.a 116 100.00 Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1` join `test`.`t3`) where `test`.`t1`.`b` = `test`.`t3`.`a` and `test`.`t1`.`a` = `test`.`t2`.`a`
-insert into t1 values (3,31);
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-3
-4
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30 and t1.b <> 31);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index a a 5 NULL 4 100.00 Using where; Using index
-1 PRIMARY t1 ref a a 5 test.t2.a 101 100.00 Using where; Using index; FirstMatch(t2)
-Warnings:
-Note 1003 select `test`.`t2`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) where `test`.`t1`.`a` = `test`.`t2`.`a` and `test`.`t1`.`b` <> 30
-drop table t0, t1, t2, t3;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-create table t3 (a int, b int);
-insert into t1 values (0,100),(1,2), (1,3), (2,2), (2,7), (2,-1), (3,10);
-insert into t2 values (0,0), (1,1), (2,1), (3,1), (4,1);
-insert into t3 values (3,3), (2,2), (1,1);
-select a,(select count(distinct t1.b) as sum from t1,t2 where t1.a=t2.a and t2.b > 0 and t1.a <= t3.b group by t1.a order by sum limit 1) from t3;
-a (select count(distinct t1.b) as sum from t1,t2 where t1.a=t2.a and t2.b > 0 and t1.a <= t3.b group by t1.a order by sum limit 1)
-3 1
-2 2
-1 2
-drop table t1,t2,t3;
-create table t1 (s1 int);
-create table t2 (s1 int);
-insert into t1 values (1);
-insert into t2 values (1);
-select * from t1 where exists (select s1 from t2 having max(t2.s1)=t1.s1);
-s1
-1
-drop table t1,t2;
-create table t1 (s1 int);
-create table t2 (s1 int);
-insert into t1 values (1);
-insert into t2 values (1);
-update t1 set s1 = s1 + 1 where 1 = (select x.s1 as A from t2 WHERE t2.s1 > t1.s1 order by A);
-ERROR 42S22: Unknown column 'x.s1' in 'field list'
-DROP TABLE t1, t2;
-CREATE TABLE t1 (s1 CHAR(5) COLLATE latin1_german1_ci,
-s2 CHAR(5) COLLATE latin1_swedish_ci);
-INSERT INTO t1 VALUES ('z','?');
-select * from t1 where s1 > (select max(s2) from t1);
-ERROR HY000: Illegal mix of collations (latin1_german1_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '>'
-select * from t1 where s1 > any (select max(s2) from t1);
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin1_german1_ci,IMPLICIT) for operation '<'
-drop table t1;
-create table t1(toid int,rd int);
-create table t2(userid int,pmnew int,pmtotal int);
-insert into t2 values(1,0,0),(2,0,0);
-insert into t1 values(1,0),(1,0),(1,0),(1,12),(1,15),(1,123),(1,12312),(1,12312),(1,123),(2,0),(2,0),(2,1),(2,2);
-select userid,pmtotal,pmnew, (select count(rd) from t1 where toid=t2.userid) calc_total, (select count(rd) from t1 where rd=0 and toid=t2.userid) calc_new from t2 where userid in (select distinct toid from t1);
-userid pmtotal pmnew calc_total calc_new
-1 0 0 9 3
-2 0 0 4 2
-drop table t1, t2;
-create table t1 (s1 char(5));
-select (select 'a','b' from t1 union select 'a','b' from t1) from t1;
-ERROR 21000: Operand should contain 1 column(s)
-insert into t1 values ('tttt');
-select * from t1 where ('a','b')=(select 'a','b' from t1 union select 'a','b' from t1);
-s1
-tttt
-explain extended (select * from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 (select 'tttt' AS `s1` from dual)
-(select * from t1);
-s1
-tttt
-drop table t1;
-create table t1 (s1 char(5), index s1(s1));
-create table t2 (s1 char(5), index s1(s1));
-insert into t1 values ('a1'),('a2'),('a3');
-insert into t2 values ('a1'),('a2');
-select s1, s1 NOT IN (SELECT s1 FROM t2) from t1;
-s1 s1 NOT IN (SELECT s1 FROM t2)
-a1 0
-a2 0
-a3 1
-select s1, s1 = ANY (SELECT s1 FROM t2) from t1;
-s1 s1 = ANY (SELECT s1 FROM t2)
-a1 1
-a2 1
-a3 0
-select s1, s1 <> ALL (SELECT s1 FROM t2) from t1;
-s1 s1 <> ALL (SELECT s1 FROM t2)
-a1 0
-a2 0
-a3 1
-select s1, s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2') from t1;
-s1 s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2')
-a1 0
-a2 1
-a3 1
-explain extended select s1, s1 NOT IN (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null)))) AS `s1 NOT IN (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 = ANY (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null)))) AS `s1 = ANY (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 <> ALL (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL having trigcond(`test`.`t2`.`s1` is null)))) AS `s1 <> ALL (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2') from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 SUBQUERY t2 index_subquery s1 s1 6 func 2 100.00 Using index; Using where; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<in_optimizer>(`test`.`t1`.`s1`,<exists>(<index_lookup>(<cache>(`test`.`t1`.`s1`) in t2 on s1 checking NULL where `test`.`t2`.`s1` < 'a2' having trigcond(`test`.`t2`.`s1` is null)))) AS `s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2')` from `test`.`t1`
-drop table t1,t2;
-create table t2 (a int, b int not null);
-create table t3 (a int);
-insert into t3 values (6),(7),(3);
-select * from t3 where a >= all (select b from t2);
-a
-6
-7
-3
-explain extended select * from t3 where a >= all (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select max(NULL) from `test`.`t2`) > <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= some (select b from t2);
-a
-explain extended select * from t3 where a >= some (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(NULL) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= all (select b from t2 group by 1);
-a
-6
-7
-3
-explain extended select * from t3 where a >= all (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select max(NULL) from `test`.`t2`) > <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= some (select b from t2 group by 1);
-a
-explain extended select * from t3 where a >= some (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(NULL) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where NULL >= any (select b from t2);
-a
-explain extended select * from t3 where NULL >= any (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= any (select b from t2 group by 1);
-a
-explain extended select * from t3 where NULL >= any (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= some (select b from t2);
-a
-explain extended select * from t3 where NULL >= some (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= some (select b from t2 group by 1);
-a
-explain extended select * from t3 where NULL >= some (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-insert into t2 values (2,2), (2,1), (3,3), (3,1);
-select * from t3 where a > all (select max(b) from t2 group by a);
-a
-6
-7
-explain extended select * from t3 where a > all (select max(b) from t2 group by a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 4 100.00 Using temporary
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,<max>(/* select#2 */ select max(`test`.`t2`.`b`) from `test`.`t2` group by `test`.`t2`.`a`) >= <cache>(`test`.`t3`.`a`)))
-drop table t2, t3;
-CREATE TABLE `t1` ( `id` mediumint(9) NOT NULL auto_increment, `taskid` bigint(20) NOT NULL default '0', `dbid` int(11) NOT NULL default '0', `create_date` datetime NOT NULL default '0000-00-00 00:00:00', `last_update` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (`id`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=3 ;
-INSERT INTO `t1` (`id`, `taskid`, `dbid`, `create_date`,`last_update`) VALUES (1, 1, 15, '2003-09-29 10:31:36', '2003-09-29 10:31:36'), (2, 1, 21, now(), now());
-CREATE TABLE `t2` (`db_id` int(11) NOT NULL auto_increment,`name` varchar(200) NOT NULL default '',`primary_uid` smallint(6) NOT NULL default '0',`secondary_uid` smallint(6) NOT NULL default '0',PRIMARY KEY (`db_id`),UNIQUE KEY `name_2` (`name`),FULLTEXT KEY `name` (`name`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=2147483647;
-INSERT INTO `t2` (`db_id`, `name`, `primary_uid`, `secondary_uid`) VALUES (18, 'Not Set 1', 0, 0),(19, 'Valid', 1, 2),(20, 'Valid 2', 1, 2),(21, 'Should Not Return', 1, 2),(26, 'Not Set 2', 0, 0),(-1, 'ALL DB\'S', 0, 0);
-CREATE TABLE `t3` (`taskgenid` mediumint(9) NOT NULL auto_increment,`dbid` int(11) NOT NULL default '0',`taskid` int(11) NOT NULL default '0',`mon` tinyint(4) NOT NULL default '1',`tues` tinyint(4) NOT NULL default '1',`wed` tinyint(4) NOT NULL default '1',`thur` tinyint(4) NOT NULL default '1',`fri` tinyint(4) NOT NULL default '1',`sat` tinyint(4) NOT NULL default '0',`sun` tinyint(4) NOT NULL default '0',`how_often` smallint(6) NOT NULL default '1',`userid` smallint(6) NOT NULL default '0',`active` tinyint(4) NOT NULL default '1',PRIMARY KEY (`taskgenid`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=2 ;
-INSERT INTO `t3` (`taskgenid`, `dbid`, `taskid`, `mon`, `tues`,`wed`, `thur`, `fri`, `sat`, `sun`, `how_often`, `userid`, `active`) VALUES (1,-1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1);
-CREATE TABLE `t4` (`task_id` smallint(6) NOT NULL default '0',`description` varchar(200) NOT NULL default '') ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO `t4` (`task_id`, `description`) VALUES (1, 'Daily Check List'),(2, 'Weekly Status');
-select dbid, name, (date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01') from t3 a, t2 b, t4 WHERE dbid = - 1 AND primary_uid = '1' AND t4.task_id = taskid;
-dbid name (date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01')
--1 Valid 1
--1 Valid 2 1
--1 Should Not Return 0
-SELECT dbid, name FROM t3 a, t2 b, t4 WHERE dbid = - 1 AND primary_uid = '1' AND ((date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01')) AND t4.task_id = taskid;
-dbid name
--1 Valid
--1 Valid 2
-drop table t1,t2,t3,t4;
-CREATE TABLE t1 (id int(11) default NULL) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 (id int(11) default NULL) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (2),(6);
-select * from t1 where (1,2,6) in (select * from t2);
-ERROR 21000: Operand should contain 3 column(s)
-DROP TABLE t1,t2;
-create table t1 (s1 int);
-insert into t1 values (1);
-insert into t1 values (2);
-set sort_buffer_size = (select s1 from t1);
-ERROR 21000: Subquery returns more than 1 row
-do (select * from t1);
-Warnings:
-Error 1242 Subquery returns more than 1 row
-drop table t1;
-create table t1 (s1 char);
-insert into t1 values ('e');
-select * from t1 where 'f' > any (select s1 from t1);
-s1
-e
-select * from t1 where 'f' > any (select s1 from t1 union select s1 from t1);
-s1
-e
-explain extended select * from t1 where 'f' > any (select s1 from t1 union select s1 from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-3 UNION t1 system NULL NULL NULL NULL 1 100.00
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select 'e' AS `s1` from dual where 1
-drop table t1;
-CREATE TABLE t1 (number char(11) NOT NULL default '') ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES ('69294728265'),('18621828126'),('89356874041'),('95895001874');
-CREATE TABLE t2 (code char(5) NOT NULL default '',UNIQUE KEY code (code)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES ('1'),('1226'),('1245'),('1862'),('18623'),('1874'),('1967'),('6');
-select c.number as phone,(select p.code from t2 p where c.number like concat(p.code, '%') order by length(p.code) desc limit 1) as code from t1 c;
-phone code
-69294728265 6
-18621828126 1862
-89356874041 NULL
-95895001874 NULL
-drop table t1, t2;
-create table t1 (s1 int);
-create table t2 (s1 int);
-select * from t1 where (select count(*) from t2 where t1.s2) = 1;
-ERROR 42S22: Unknown column 't1.s2' in 'where clause'
-select * from t1 where (select count(*) from t2 group by t1.s2) = 1;
-ERROR 42S22: Unknown column 't1.s2' in 'group statement'
-select count(*) from t2 group by t1.s2;
-ERROR 42S22: Unknown column 't1.s2' in 'group statement'
-drop table t1, t2;
-CREATE TABLE t1(COLA FLOAT NOT NULL,COLB FLOAT NOT NULL,COLC VARCHAR(20) DEFAULT NULL,PRIMARY KEY (COLA, COLB));
-CREATE TABLE t2(COLA FLOAT NOT NULL,COLB FLOAT NOT NULL,COLC CHAR(1) NOT NULL,PRIMARY KEY (COLA));
-INSERT INTO t1 VALUES (1,1,'1A3240'), (1,2,'4W2365');
-INSERT INTO t2 VALUES (100, 200, 'C');
-SELECT DISTINCT COLC FROM t1 WHERE COLA = (SELECT COLA FROM t2 WHERE COLB = 200 AND COLC ='C' LIMIT 1);
-COLC
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a int(1));
-INSERT INTO t1 VALUES (1),(1),(1),(1),(1),(2),(3),(4),(5);
-SELECT DISTINCT (SELECT a) FROM t1 LIMIT 100;
-(SELECT a)
-1
-2
-3
-4
-5
-DROP TABLE t1;
-create table t1 (a int, b decimal(13, 3));
-insert into t1 values (1, 0.123);
-select a, (select max(b) from t1) into outfile "../../tmp/subselect.out.file.1" from t1;
-delete from t1;
-load data infile "../../tmp/subselect.out.file.1" into table t1;
-select * from t1;
-a b
-1 0.123
-drop table t1;
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL auto_increment,
-`id_cns` tinyint(3) unsigned NOT NULL default '0',
-`tipo` enum('','UNO','DUE') NOT NULL default '',
-`anno_dep` smallint(4) unsigned zerofill NOT NULL default '0000',
-`particolare` mediumint(8) unsigned NOT NULL default '0',
-`generale` mediumint(8) unsigned NOT NULL default '0',
-`bis` tinyint(3) unsigned NOT NULL default '0',
-PRIMARY KEY (`id`),
-UNIQUE KEY `idx_cns_gen_anno` (`anno_dep`,`id_cns`,`generale`,`particolare`),
-UNIQUE KEY `idx_cns_par_anno` (`id_cns`,`anno_dep`,`tipo`,`particolare`,`bis`)
-);
-INSERT INTO `t1` VALUES (1,16,'UNO',1987,2048,9681,0),(2,50,'UNO',1987,1536,13987,0),(3,16,'UNO',1987,2432,14594,0),(4,16,'UNO',1987,1792,13422,0),(5,16,'UNO',1987,1025,10240,0),(6,16,'UNO',1987,1026,7089,0);
-CREATE TABLE `t2` (
-`id` tinyint(3) unsigned NOT NULL auto_increment,
-`max_anno_dep` smallint(6) unsigned NOT NULL default '0',
-PRIMARY KEY (`id`)
-);
-INSERT INTO `t2` VALUES (16,1987),(50,1990),(51,1990);
-SELECT cns.id, cns.max_anno_dep, cns.max_anno_dep = (SELECT s.anno_dep FROM t1 AS s WHERE s.id_cns = cns.id ORDER BY s.anno_dep DESC LIMIT 1) AS PIPPO FROM t2 AS cns;
-id max_anno_dep PIPPO
-16 1987 1
-50 1990 0
-51 1990 NULL
-DROP TABLE t1, t2;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-SET SQL_SELECT_LIMIT=1;
-select sum(a) from (select * from t1) as a;
-sum(a)
-6
-select 2 in (select * from t1);
-2 in (select * from t1)
-1
-SET SQL_SELECT_LIMIT=default;
-drop table t1;
-CREATE TABLE t1 (a int, b int, INDEX (a));
-INSERT INTO t1 VALUES (1, 1), (1, 2), (1, 3);
-SELECT * FROM t1 WHERE a = (SELECT MAX(a) FROM t1 WHERE a = 1) ORDER BY b;
-a b
-1 1
-1 2
-1 3
-DROP TABLE t1;
-create table t1(val varchar(10));
-insert into t1 values ('aaa'), ('bbb'),('eee'),('mmm'),('ppp');
-select count(*) from t1 as w1 where w1.val in (select w2.val from t1 as w2 where w2.val like 'm%') and w1.val in (select w3.val from t1 as w3 where w3.val like 'e%');
-count(*)
-0
-drop table t1;
-create table t1 (id int not null, text varchar(20) not null default '', primary key (id));
-insert into t1 (id, text) values (1, 'text1'), (2, 'text2'), (3, 'text3'), (4, 'text4'), (5, 'text5'), (6, 'text6'), (7, 'text7'), (8, 'text8'), (9, 'text9'), (10, 'text10'), (11, 'text11'), (12, 'text12');
-select * from t1 where id not in (select id from t1 where id < 8);
-id text
-8 text8
-9 text9
-10 text10
-11 text11
-12 text12
-select * from t1 as tt where not exists (select id from t1 where id < 8 and (id = tt.id or id is null) having id is not null);
-id text
-8 text8
-9 text9
-10 text10
-11 text11
-12 text12
-explain extended select * from t1 where id not in (select id from t1 where id < 8);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 12 100.00 Using where
-2 DEPENDENT SUBQUERY t1 unique_subquery PRIMARY PRIMARY 4 func 1 100.00 Using index; Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`text` AS `text` from `test`.`t1` where !<in_optimizer>(`test`.`t1`.`id`,<exists>(<primary_index_lookup>(<cache>(`test`.`t1`.`id`) in t1 on PRIMARY where `test`.`t1`.`id` < 8 and <cache>(`test`.`t1`.`id`) = `test`.`t1`.`id`)))
-explain extended select * from t1 as tt where not exists (select id from t1 where id < 8 and (id = tt.id or id is null) having id is not null);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY tt ALL NULL NULL NULL NULL 12 100.00 Using where
-2 DEPENDENT SUBQUERY t1 eq_ref PRIMARY PRIMARY 4 test.tt.id 1 100.00 Using where; Using index
-Warnings:
-Note 1276 Field or reference 'test.tt.id' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`tt`.`id` AS `id`,`test`.`tt`.`text` AS `text` from `test`.`t1` `tt` where !<in_optimizer>(1,exists(/* select#2 */ select `test`.`t1`.`id` from `test`.`t1` where `test`.`t1`.`id` < 8 and `test`.`t1`.`id` = `test`.`tt`.`id` having `test`.`t1`.`id` is not null))
-insert into t1 (id, text) values (1000, 'text1000'), (1001, 'text1001');
-create table t2 (id int not null, text varchar(20) not null default '', primary key (id));
-insert into t2 (id, text) values (1, 'text1'), (2, 'text2'), (3, 'text3'), (4, 'text4'), (5, 'text5'), (6, 'text6'), (7, 'text7'), (8, 'text8'), (9, 'text9'), (10, 'text10'), (11, 'text1'), (12, 'text2'), (13, 'text3'), (14, 'text4'), (15, 'text5'), (16, 'text6'), (17, 'text7'), (18, 'text8'), (19, 'text9'), (20, 'text10'),(21, 'text1'), (22, 'text2'), (23, 'text3'), (24, 'text4'), (25, 'text5'), (26, 'text6'), (27, 'text7'), (28, 'text8'), (29, 'text9'), (30, 'text10'), (31, 'text1'), (32, 'text2'), (33, 'text3'), (34, 'text4'), (35, 'text5'), (36, 'text6'), (37, 'text7'), (38, 'text8'), (39, 'text9'), (40, 'text10'), (41, 'text1'), (42, 'text2'), (43, 'text3'), (44, 'text4'), (45, 'text5'), (46, 'text6'), (47, 'text7'), (48, 'text8'), (49, 'text9'), (50, 'text10');
-select * from t1 a left join t2 b on (a.id=b.id or b.id is null) join t1 c on (if(isnull(b.id), 1000, b.id)=c.id);
-id text id text id text
-1 text1 1 text1 1 text1
-2 text2 2 text2 2 text2
-3 text3 3 text3 3 text3
-4 text4 4 text4 4 text4
-5 text5 5 text5 5 text5
-6 text6 6 text6 6 text6
-7 text7 7 text7 7 text7
-8 text8 8 text8 8 text8
-9 text9 9 text9 9 text9
-10 text10 10 text10 10 text10
-11 text11 11 text1 11 text11
-12 text12 12 text2 12 text12
-1000 text1000 NULL NULL 1000 text1000
-1001 text1001 NULL NULL 1000 text1000
-explain extended select * from t1 a left join t2 b on (a.id=b.id or b.id is null) join t1 c on (if(isnull(b.id), 1000, b.id)=c.id);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE a ALL NULL NULL NULL NULL 14 100.00
-1 SIMPLE b eq_ref PRIMARY PRIMARY 4 test.a.id 2 100.00
-1 SIMPLE c eq_ref PRIMARY PRIMARY 4 func 1 100.00 Using index condition
-Warnings:
-Note 1003 select `test`.`a`.`id` AS `id`,`test`.`a`.`text` AS `text`,`test`.`b`.`id` AS `id`,`test`.`b`.`text` AS `text`,`test`.`c`.`id` AS `id`,`test`.`c`.`text` AS `text` from `test`.`t1` `a` left join `test`.`t2` `b` on(`test`.`b`.`id` = `test`.`a`.`id` or `test`.`b`.`id` is null) join `test`.`t1` `c` where if(`test`.`b`.`id` is null,1000,`test`.`b`.`id`) = `test`.`c`.`id`
-drop table t1,t2;
-create table t1 (a int);
-insert into t1 values (1);
-explain select benchmark(1000, (select a from t1 where a=sha(rand())));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 1
-drop table t1;
-create table t1(id int);
-create table t2(id int);
-create table t3(flag int);
-select (select * from t3 where id not null) from t1, t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'null) from t1, t2' at line 1
-drop table t1,t2,t3;
-CREATE TABLE t1 (id INT);
-CREATE TABLE t2 (id INT);
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (1);
-SELECT t1.id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id);
-id c
-1 1
-2 0
-SELECT id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id);
-id c
-1 1
-2 0
-SELECT t1.id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id) ORDER BY t1.id;
-id c
-1 1
-2 0
-SELECT id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id) ORDER BY id;
-id c
-1 1
-2 0
-DROP TABLE t1,t2;
-CREATE TABLE t1 ( a int, b int );
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-SELECT a FROM t1 WHERE a > ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-ALTER TABLE t1 ADD INDEX (a);
-SELECT a FROM t1 WHERE a > ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (1,2) > ANY (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE a > ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ALL (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE a > ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) <> ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ANY (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 2 column(s)
-SELECT a FROM t1 WHERE a = ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ANY (SELECT a,2 FROM t1 WHERE b = 2);
-a
-SELECT a FROM t1 WHERE (1,2) <> ALL (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 2 column(s)
-SELECT a FROM t1 WHERE a <> ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) <> ALL (SELECT a,2 FROM t1 WHERE b = 2);
-a
-1
-2
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 WHERE b = 2 UNION SELECT a,1 FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 WHERE b = 2 UNION SELECT a,1 FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 HAVING a = 2 UNION SELECT a,1 FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 HAVING a = 2 UNION SELECT a,1 FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-3
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a > t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a > t1.a), '-')
-0-
-0-
-1-
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a < t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a < t1.a), '-')
-1-
-0-
-0-
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a = t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a = t1.a), '-')
-0-
-1-
-0-
-DROP TABLE t1;
-CREATE TABLE t1 ( a double, b double );
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-3
-DROP TABLE t1;
-CREATE TABLE t1 ( a char(1), b char(1));
-INSERT INTO t1 VALUES ('1','1'),('2','2'),('3','3');
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = '2');
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = '2');
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = '2');
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = '2');
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = '2');
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = '2');
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-DROP TABLE t1;
-create table t1 (a int, b int);
-insert into t1 values (1,2),(3,4);
-select * from t1 up where exists (select * from t1 where t1.a=up.a);
-a b
-1 2
-3 4
-explain extended select * from t1 up where exists (select * from t1 where t1.a=up.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY up ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1276 Field or reference 'test.up.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`up`.`a` AS `a`,`test`.`up`.`b` AS `b` from `test`.`t1` `up` semi join (`test`.`t1`) where 1
-drop table t1;
-CREATE TABLE t1 (t1_a int);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (t2_a int, t2_b int, PRIMARY KEY (t2_a, t2_b));
-INSERT INTO t2 VALUES (1, 1), (1, 2);
-SELECT * FROM t1, t2 table2 WHERE t1_a = 1 AND table2.t2_a = 1
-HAVING table2.t2_b = (SELECT MAX(t2_b) FROM t2 WHERE t2_a = table2.t2_a);
-t1_a t2_a t2_b
-1 1 2
-DROP TABLE t1, t2;
-CREATE TABLE t1 (id int(11) default NULL,name varchar(10) default NULL);
-INSERT INTO t1 VALUES (1,'Tim'),(2,'Rebecca'),(3,NULL);
-CREATE TABLE t2 (id int(11) default NULL, pet varchar(10) default NULL);
-INSERT INTO t2 VALUES (1,'Fido'),(2,'Spot'),(3,'Felix');
-SELECT a.*, b.* FROM (SELECT * FROM t1) AS a JOIN t2 as b on a.id=b.id;
-id name id pet
-1 Tim 1 Fido
-2 Rebecca 2 Spot
-3 NULL 3 Felix
-drop table t1,t2;
-CREATE TABLE t1 ( a int, b int );
-CREATE TABLE t2 ( c int, d int );
-INSERT INTO t1 VALUES (1,2), (2,3), (3,4);
-SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-abc b
-1 2
-2 3
-3 4
-INSERT INTO t2 SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-select * from t2;
-c d
-1 2
-2 3
-3 4
-CREATE TABLE t3 SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-select * from t3;
-abc b
-1 2
-2 3
-3 4
-prepare stmt1 from "INSERT INTO t2 SELECT a AS abc, b FROM t1 outr WHERE b = (SELECT MIN(b) FROM t1 WHERE a=outr.a);";
-execute stmt1;
-deallocate prepare stmt1;
-select * from t2;
-c d
-1 2
-2 3
-3 4
-1 2
-2 3
-3 4
-drop table t3;
-prepare stmt1 from "CREATE TABLE t3 SELECT a AS abc, b FROM t1 outr WHERE b = (SELECT MIN(b) FROM t1 WHERE a=outr.a);";
-execute stmt1;
-select * from t3;
-abc b
-1 2
-2 3
-3 4
-deallocate prepare stmt1;
-DROP TABLE t1, t2, t3;
-CREATE TABLE `t1` ( `a` int(11) default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-insert into t1 values (1);
-CREATE TABLE `t2` ( `b` int(11) default NULL, `a` int(11) default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-insert into t2 values (1,2);
-select t000.a, count(*) `C` FROM t1 t000 GROUP BY t000.a HAVING count(*) > ALL (SELECT count(*) FROM t2 t001 WHERE t001.a=1);
-a C
-1 1
-drop table t1,t2;
-create table t1 (a int not null auto_increment primary key, b varchar(40), fulltext(b));
-insert into t1 (b) values ('ball'),('ball games'), ('games'), ('foo'), ('foobar'), ('Serg'), ('Sergei'),('Georg'), ('Patrik'),('Hakan');
-create table t2 (a int);
-insert into t2 values (1),(3),(2),(7);
-select a,b from t1 where match(b) against ('Ball') > 0;
-a b
-1 ball
-2 ball games
-select a from t2 where a in (select a from t1 where match(b) against ('Ball') > 0);
-a
-1
-2
-drop table t1,t2;
-CREATE TABLE t1(`IZAVORGANG_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin,`KUERZEL` VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_bin,`IZAANALYSEART_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin,`IZAPMKZ_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin);
-CREATE INDEX AK01IZAVORGANG ON t1(izaAnalyseart_id,Kuerzel);
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000001','601','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000002','602','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000003','603','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000004','101','D0000000001','I0000000001');
-SELECT `IZAVORGANG_ID` FROM t1 WHERE `KUERZEL` IN(SELECT MIN(`KUERZEL`)`Feld1` FROM t1 WHERE `KUERZEL` LIKE'601%'And`IZAANALYSEART_ID`='D0000000001');
-IZAVORGANG_ID
-D0000000001
-drop table t1;
-CREATE TABLE `t1` ( `aid` int(11) NOT NULL default '0', `bid` int(11) NOT NULL default '0', PRIMARY KEY (`aid`,`bid`));
-CREATE TABLE `t2` ( `aid` int(11) NOT NULL default '0', `bid` int(11) NOT NULL default '0', PRIMARY KEY (`aid`,`bid`));
-insert into t1 values (1,1),(1,2),(2,1),(2,2);
-insert into t2 values (1,2),(2,2);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-alter table t2 drop primary key;
-alter table t2 add key KEY1 (aid, bid);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-alter table t2 drop key KEY1;
-alter table t2 add primary key (bid, aid);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-drop table t1,t2;
-CREATE TABLE t1 (howmanyvalues bigint, avalue int);
-INSERT INTO t1 VALUES (1, 1),(2, 1),(2, 2),(3, 1),(3, 2),(3, 3),(4, 1),(4, 2),(4, 3),(4, 4);
-SELECT howmanyvalues, count(*) from t1 group by howmanyvalues;
-howmanyvalues count(*)
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.howmanyvalues) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-CREATE INDEX t1_howmanyvalues_idx ON t1 (howmanyvalues);
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues+1 = a.howmanyvalues+1) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.howmanyvalues) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.avalue) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 1
-3 1
-4 1
-drop table t1;
-create table t1 (x int);
-select (select b.x from t1 as b where b.x=a.x) from t1 as a where a.x=2 group by a.x;
-(select b.x from t1 as b where b.x=a.x)
-drop table t1;
-CREATE TABLE `t1` ( `master` int(10) unsigned NOT NULL default '0', `map` smallint(6) unsigned NOT NULL default '0', `slave` int(10) unsigned NOT NULL default '0', `access` int(10) unsigned NOT NULL default '0', UNIQUE KEY `access_u` (`master`,`map`,`slave`));
-INSERT INTO `t1` VALUES (1,0,0,700),(1,1,1,400),(1,5,5,400),(1,12,12,400),(1,12,32,400),(4,12,32,400);
-CREATE TABLE `t2` ( `id` int(10) unsigned NOT NULL default '0', `pid` int(10) unsigned NOT NULL default '0', `map` smallint(6) unsigned NOT NULL default '0', `level` tinyint(4) unsigned NOT NULL default '0', `title` varchar(255) default NULL, PRIMARY KEY (`id`,`pid`,`map`), KEY `level` (`level`), KEY `id` (`id`,`map`)) ;
-INSERT INTO `t2` VALUES (6,5,12,7,'a'),(12,0,0,7,'a'),(12,1,0,7,'a'),(12,5,5,7,'a'),(12,5,12,7,'a');
-SELECT b.sc FROM (SELECT (SELECT a.access FROM t1 a WHERE a.map = op.map AND a.slave = op.pid AND a.master = 1) ac FROM t2 op WHERE op.id = 12 AND op.map = 0) b;
-ERROR 42S22: Unknown column 'b.sc' in 'field list'
-SELECT b.ac FROM (SELECT (SELECT a.access FROM t1 a WHERE a.map = op.map AND a.slave = op.pid AND a.master = 1) ac FROM t2 op WHERE op.id = 12 AND op.map = 0) b;
-ac
-700
-NULL
-drop tables t1,t2;
-create table t1 (a int not null, b int not null, c int, primary key (a,b));
-insert into t1 values (1,1,1), (2,2,2), (3,3,3);
-set @b:= 0;
-explain select sum(a) from t1 where b > @b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 8 NULL 3 Using where; Using index
-set @a:= (select sum(a) from t1 where b > @b);
-explain select a from t1 where c=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-do @a:= (select sum(a) from t1 where b > @b);
-explain select a from t1 where c=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-drop table t1;
-connect root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root;
-set @got_val= (SELECT 1 FROM (SELECT 'A' as my_col) as T1 ) ;
-disconnect root;
-connection default;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1,1),(1,2),(1,3),(2,4),(2,5);
-insert into t2 values (1,3),(2,1);
-select distinct a,b, (select max(b) from t2 where t1.b=t2.a) from t1 order by t1.b;
-a b (select max(b) from t2 where t1.b=t2.a)
-1 1 3
-1 2 1
-1 3 NULL
-2 4 NULL
-2 5 NULL
-drop table t1, t2;
-create table t1 (id int);
-create table t2 (id int, body text, fulltext (body));
-insert into t1 values(1),(2),(3);
-insert into t2 values (1,'test'), (2,'mysql'), (3,'test'), (4,'test');
-select count(distinct id) from t1 where id in (select id from t2 where match(body) against ('mysql' in boolean mode));
-count(distinct id)
-1
-drop table t2,t1;
-create table t1 (s1 int,s2 int);
-insert into t1 values (20,15);
-select * from t1 where (('a',null) <=> (select 'a',s2 from t1 where s1 = 0));
-s1 s2
-drop table t1;
-create table t1 (s1 int);
-insert into t1 values (1),(null);
-select * from t1 where s1 < all (select s1 from t1);
-s1
-select s1, s1 < all (select s1 from t1) from t1;
-s1 s1 < all (select s1 from t1)
-1 0
-NULL NULL
-drop table t1;
-CREATE TABLE t1 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL default 'Asia',
-Region char(26) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-IndepYear smallint(6) default NULL,
-Population int(11) NOT NULL default '0',
-LifeExpectancy float(3,1) default NULL,
-GNP float(10,2) default NULL,
-GNPOld float(10,2) default NULL,
-LocalName char(45) NOT NULL default '',
-GovernmentForm char(45) NOT NULL default '',
-HeadOfState char(60) default NULL,
-Capital int(11) default NULL,
-Code2 char(2) NOT NULL default ''
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('XXX','Xxxxx','Oceania','Xxxxxx',26.00,0,0,0,0,0,'Xxxxx','Xxxxx','Xxxxx',NULL,'XX');
-INSERT INTO t1 VALUES ('ASM','American Samoa','Oceania','Polynesia',199.00,0,68000,75.1,334.00,NULL,'Amerika Samoa','US Territory','George W. Bush',54,'AS');
-INSERT INTO t1 VALUES ('ATF','French Southern territories','Antarctica','Antarctica',7780.00,0,0,NULL,0.00,NULL,'Terres australes françaises','Nonmetropolitan Territory of France','Jacques Chirac',NULL,'TF');
-INSERT INTO t1 VALUES ('UMI','United States Minor Outlying Islands','Oceania','Micronesia/Caribbean',16.00,0,0,NULL,0.00,NULL,'United States Minor Outlying Islands','Dependent Territory of the US','George W. Bush',NULL,'UM');
-/*!40000 ALTER TABLE t1 ENABLE KEYS */;
-SELECT DISTINCT Continent AS c FROM t1 outr WHERE
-Code <> SOME ( SELECT Code FROM t1 WHERE Continent = outr.Continent AND
-Population < 200);
-c
-Oceania
-drop table t1;
-create table t1 (a1 int);
-create table t2 (b1 int);
-select * from t1 where a2 > any(select b1 from t2);
-ERROR 42S22: Unknown column 'a2' in 'IN/ALL/ANY subquery'
-select * from t1 where a1 > any(select b1 from t2);
-a1
-drop table t1,t2;
-create table t1 (a integer, b integer);
-select (select * from t1) = (select 1,2);
-(select * from t1) = (select 1,2)
-NULL
-select (select 1,2) = (select * from t1);
-(select 1,2) = (select * from t1)
-NULL
-select row(1,2) = ANY (select * from t1);
-row(1,2) = ANY (select * from t1)
-0
-select row(1,2) != ALL (select * from t1);
-row(1,2) != ALL (select * from t1)
-1
-drop table t1;
-create table t1 (a integer, b integer);
-select row(1,(2,2)) in (select * from t1 );
-ERROR 21000: Operand should contain 2 column(s)
-select row(1,(2,2)) = (select * from t1 );
-ERROR 21000: Operand should contain 2 column(s)
-select (select * from t1) = row(1,(2,2));
-ERROR 21000: Operand should contain 1 column(s)
-drop table t1;
-create table t1 (a integer);
-insert into t1 values (1);
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx ;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 as xx, 1 = ALL ( select 1 from t1 where 1 = xx );
-xx 1 = ALL ( select 1 from t1 where 1 = xx )
-1 1
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx from DUAL;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-drop table t1;
-CREATE TABLE t1 (
-categoryId int(11) NOT NULL,
-courseId int(11) NOT NULL,
-startDate datetime NOT NULL,
-endDate datetime NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL,
-attributes text NOT NULL
-);
-INSERT INTO t1 VALUES (1,41,'2004-02-09','2010-01-01','2004-02-09','2004-02-09',''),
-(1,86,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(1,87,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(2,52,'2004-03-15','2004-10-01','2004-03-15','2004-09-17',''),
-(2,53,'2004-03-16','2004-10-01','2004-03-16','2004-09-17',''),
-(2,88,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(2,89,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(3,51,'2004-02-09','2010-01-01','2004-02-09','2004-02-09',''),
-(5,12,'2004-02-18','2010-01-01','2004-02-18','2004-02-18','');
-CREATE TABLE t2 (
-userId int(11) NOT NULL,
-courseId int(11) NOT NULL,
-date datetime NOT NULL
-);
-INSERT INTO t2 VALUES (5141,71,'2003-11-18'),
-(5141,72,'2003-11-25'),(5141,41,'2004-08-06'),
-(5141,52,'2004-08-06'),(5141,53,'2004-08-06'),
-(5141,12,'2004-08-06'),(5141,86,'2004-10-21'),
-(5141,87,'2004-10-21'),(5141,88,'2004-10-21'),
-(5141,89,'2004-10-22'),(5141,51,'2004-10-26');
-CREATE TABLE t3 (
-groupId int(11) NOT NULL,
-parentId int(11) NOT NULL,
-startDate datetime NOT NULL,
-endDate datetime NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL,
-ordering int(11)
-);
-INSERT INTO t3 VALUES (12,9,'1000-01-01','3999-12-31','2004-01-29','2004-01-29',NULL);
-CREATE TABLE t4 (
-id int(11) NOT NULL,
-groupTypeId int(11) NOT NULL,
-groupKey varchar(50) NOT NULL,
-name text,
-ordering int(11),
-description text,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL
-);
-INSERT INTO t4 VALUES (9,5,'stationer','stationer',0,'Stationer','2004-01-29','2004-01-29'),
-(12,5,'group2','group2',0,'group2','2004-01-29','2004-01-29');
-CREATE TABLE t5 (
-userId int(11) NOT NULL,
-groupId int(11) NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL
-);
-INSERT INTO t5 VALUES (5141,12,'2004-08-06','2004-08-06');
-select
-count(distinct t2.userid) pass,
-groupstuff.*,
-count(t2.courseid) crse,
-t1.categoryid,
-t2.courseid,
-date_format(date, '%b%y') as colhead
-from t2
-join t1 on t2.courseid=t1.courseid
-join
-(
-select
-t5.userid,
-parentid,
-parentgroup,
-childid,
-groupname,
-grouptypeid
-from t5
-join
-(
-select t4.id as parentid,
-t4.name as parentgroup,
-t4.id as childid,
-t4.name as groupname,
-t4.grouptypeid
-from t4
-) as gin on t5.groupid=gin.childid
-) as groupstuff on t2.userid = groupstuff.userid
-group by
-groupstuff.groupname, colhead , t2.courseid;
-pass userid parentid parentgroup childid groupname grouptypeid crse categoryid courseid colhead
-1 5141 12 group2 12 group2 5 1 5 12 Aug04
-1 5141 12 group2 12 group2 5 1 1 41 Aug04
-1 5141 12 group2 12 group2 5 1 2 52 Aug04
-1 5141 12 group2 12 group2 5 1 2 53 Aug04
-1 5141 12 group2 12 group2 5 1 3 51 Oct04
-1 5141 12 group2 12 group2 5 1 1 86 Oct04
-1 5141 12 group2 12 group2 5 1 1 87 Oct04
-1 5141 12 group2 12 group2 5 1 2 88 Oct04
-1 5141 12 group2 12 group2 5 1 2 89 Oct04
-drop table t1, t2, t3, t4, t5;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-SELECT 1 FROM t1 WHERE (SELECT 1) in (SELECT 1);
-1
-1
-1
-1
-drop table t1;
-create table t1 (a int);
-create table t2 (a int);
-insert into t1 values (1),(2);
-insert into t2 values (0),(1),(2),(3);
-select a from t2 where a in (select a from t1);
-a
-1
-2
-select a from t2 having a in (select a from t1);
-a
-1
-2
-prepare stmt1 from "select a from t2 where a in (select a from t1)";
-execute stmt1;
-a
-1
-2
-execute stmt1;
-a
-1
-2
-deallocate prepare stmt1;
-prepare stmt1 from "select a from t2 having a in (select a from t1)";
-execute stmt1;
-a
-1
-2
-execute stmt1;
-a
-1
-2
-deallocate prepare stmt1;
-drop table t1, t2;
-create table t1 (a int, b int);
-insert into t1 values (1,2);
-select 1 = (select * from t1);
-ERROR HY000: Illegal parameter data types int and row for operation '='
-select (select * from t1) = 1;
-ERROR HY000: Illegal parameter data types row and int for operation '='
-select (1,2) = (select a from t1);
-ERROR HY000: Illegal parameter data types row and int for operation '='
-select (select a from t1) = (1,2);
-ERROR HY000: Illegal parameter data types int and row for operation '='
-select (1,2,3) = (select * from t1);
-ERROR 21000: Operand should contain 3 column(s)
-select (select * from t1) = (1,2,3);
-ERROR 21000: Operand should contain 2 column(s)
-drop table t1;
-CREATE TABLE `t1` (
-`itemid` bigint(20) unsigned NOT NULL auto_increment,
-`sessionid` bigint(20) unsigned default NULL,
-`time` int(10) unsigned NOT NULL default '0',
-`type` set('A','D','E','F','G','I','L','N','U') collate latin1_general_ci NOT
-NULL default '',
-`data` text collate latin1_general_ci NOT NULL,
-PRIMARY KEY (`itemid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t1` VALUES (1, 1, 1, 'D', '');
-CREATE TABLE `t2` (
-`sessionid` bigint(20) unsigned NOT NULL auto_increment,
-`pid` int(10) unsigned NOT NULL default '0',
-`date` int(10) unsigned NOT NULL default '0',
-`ip` varchar(15) collate latin1_general_ci NOT NULL default '',
-PRIMARY KEY (`sessionid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t2` VALUES (1, 1, 1, '10.10.10.1');
-SELECT s.ip, count( e.itemid ) FROM `t1` e JOIN t2 s ON s.sessionid = e.sessionid WHERE e.sessionid = ( SELECT sessionid FROM t2 ORDER BY sessionid DESC LIMIT 1 ) GROUP BY s.ip HAVING count( e.itemid ) >0 LIMIT 0 , 30;
-ip count( e.itemid )
-10.10.10.1 1
-drop tables t1,t2;
-create table t1 (fld enum('0','1'));
-insert into t1 values ('1');
-select * from (select max(fld) from t1) as foo;
-max(fld)
-1
-drop table t1;
-set @tmp11867_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin_with_cache=off';
-CREATE TABLE t1 (one int, two int, flag char(1));
-CREATE TABLE t2 (one int, two int, flag char(1));
-INSERT INTO t1 VALUES(1,2,'Y'),(2,3,'Y'),(3,4,'Y'),(5,6,'N'),(7,8,'N');
-INSERT INTO t2 VALUES(1,2,'Y'),(2,3,'Y'),(3,4,'Y'),(5,6,'N'),(7,8,'N');
-SELECT * FROM t1
-WHERE ROW(one,two) IN (SELECT DISTINCT one,two FROM t2 WHERE flag = 'N');
-one two flag
-5 6 N
-7 8 N
-SELECT * FROM t1
-WHERE ROW(one,two) IN (SELECT DISTINCT one,two FROM t1 WHERE flag = 'N');
-one two flag
-5 6 N
-7 8 N
-insert into t2 values (null,null,'N');
-insert into t2 values (null,3,'0');
-insert into t2 values (null,5,'0');
-insert into t2 values (10,null,'0');
-insert into t1 values (10,3,'0');
-insert into t1 values (10,5,'0');
-insert into t1 values (10,10,'0');
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N') as 'test' from t1;
-one two test
-1 2 NULL
-2 3 NULL
-3 4 NULL
-5 6 1
-7 8 1
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two from t1 where ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N');
-one two
-5 6
-7 8
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N' group by one,two) as 'test' from t1;
-one two test
-1 2 NULL
-2 3 NULL
-3 4 NULL
-5 6 1
-7 8 1
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0') as 'test' from t1;
-one two test
-1 2 0
-2 3 NULL
-3 4 0
-5 6 0
-7 8 0
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0' group by one,two) as 'test' from t1;
-one two test
-1 2 0
-2 3 NULL
-3 4 0
-5 6 0
-7 8 0
-10 3 NULL
-10 5 NULL
-10 10 NULL
-explain extended SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0') as 'test' from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two`,<in_optimizer>((`test`.`t1`.`one`,`test`.`t1`.`two`),<exists>(/* select#2 */ select `test`.`t2`.`one`,`test`.`t2`.`two` from `test`.`t2` where `test`.`t2`.`flag` = '0' and trigcond(trigcond(<cache>(`test`.`t1`.`one`) = `test`.`t2`.`one` or `test`.`t2`.`one` is null)) and trigcond(trigcond(<cache>(`test`.`t1`.`two`) = `test`.`t2`.`two` or `test`.`t2`.`two` is null)) having trigcond(`test`.`t2`.`one` is null) and trigcond(`test`.`t2`.`two` is null))) AS `test` from `test`.`t1`
-explain extended SELECT one,two from t1 where ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`flag` = 'N'
-explain extended SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0' group by one,two) as 'test' from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two`,<in_optimizer>((`test`.`t1`.`one`,`test`.`t1`.`two`),<exists>(/* select#2 */ select `test`.`t2`.`one`,`test`.`t2`.`two` from `test`.`t2` where `test`.`t2`.`flag` = '0' and trigcond(trigcond(<cache>(`test`.`t1`.`one`) = `test`.`t2`.`one` or `test`.`t2`.`one` is null)) and trigcond(trigcond(<cache>(`test`.`t1`.`two`) = `test`.`t2`.`two` or `test`.`t2`.`two` is null)) having trigcond(`test`.`t2`.`one` is null) and trigcond(`test`.`t2`.`two` is null))) AS `test` from `test`.`t1`
-DROP TABLE t1,t2;
-set optimizer_switch=@tmp11867_optimizer_switch;
-CREATE TABLE t1 (a char(5), b char(5));
-INSERT INTO t1 VALUES (NULL,'aaa'), ('aaa','aaa');
-SELECT * FROM t1 WHERE (a,b) IN (('aaa','aaa'), ('aaa','bbb'));
-a b
-aaa aaa
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int, b int);
-CREATE TABLE t3 (b int NOT NULL);
-INSERT INTO t1 VALUES (1), (2), (3), (4);
-INSERT INTO t2 VALUES (1,10), (3,30);
-SELECT * FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t3.b IS NOT NULL OR t2.a > 10;
-a b b
-SELECT * FROM t1
-WHERE t1.a NOT IN (SELECT a FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t3.b IS NOT NULL OR t2.a > 10);
-a
-1
-2
-3
-4
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (f1 INT);
-CREATE TABLE t2 (f2 INT);
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2);
-f1
-1
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2 WHERE 1=0);
-f1
-1
-INSERT INTO t2 VALUES (1);
-INSERT INTO t2 VALUES (2);
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2 WHERE f2=0);
-f1
-1
-DROP TABLE t1, t2;
-select 1 from dual where 1 < any (select 2);
-1
-1
-select 1 from dual where 1 < all (select 2);
-1
-1
-select 1 from dual where 2 > any (select 1);
-1
-1
-select 1 from dual where 2 > all (select 1);
-1
-1
-select 1 from dual where 1 < any (select 2 from dual);
-1
-1
-select 1 from dual where 1 < all (select 2 from dual where 1!=1);
-1
-1
-create table t1 (s1 char);
-insert into t1 values (1),(2);
-select * from t1 where (s1 < any (select s1 from t1));
-s1
-1
-select * from t1 where not (s1 < any (select s1 from t1));
-s1
-2
-select * from t1 where (s1 < ALL (select s1+1 from t1));
-s1
-1
-select * from t1 where not(s1 < ALL (select s1+1 from t1));
-s1
-2
-select * from t1 where (s1+1 = ANY (select s1 from t1));
-s1
-1
-select * from t1 where NOT(s1+1 = ANY (select s1 from t1));
-s1
-2
-select * from t1 where (s1 = ALL (select s1/s1 from t1));
-s1
-1
-select * from t1 where NOT(s1 = ALL (select s1/s1 from t1));
-s1
-2
-drop table t1;
-create table t1 (
-retailerID varchar(8) NOT NULL,
-statusID int(10) unsigned NOT NULL,
-changed datetime NOT NULL,
-UNIQUE KEY retailerID (retailerID, statusID, changed)
-);
-INSERT INTO t1 VALUES("0026", "1", "2005-12-06 12:18:56");
-INSERT INTO t1 VALUES("0026", "2", "2006-01-06 12:25:53");
-INSERT INTO t1 VALUES("0037", "1", "2005-12-06 12:18:56");
-INSERT INTO t1 VALUES("0037", "2", "2006-01-06 12:25:53");
-INSERT INTO t1 VALUES("0048", "1", "2006-01-06 12:37:50");
-INSERT INTO t1 VALUES("0059", "1", "2006-01-06 12:37:50");
-select * from t1 r1
-where (r1.retailerID,(r1.changed)) in
-(SELECT r2.retailerId,(max(changed)) from t1 r2
-group by r2.retailerId);
-retailerID statusID changed
-0026 2 2006-01-06 12:25:53
-0037 2 2006-01-06 12:25:53
-0048 1 2006-01-06 12:37:50
-0059 1 2006-01-06 12:37:50
-drop table t1;
-create table t1(a int, primary key (a));
-insert into t1 values (10);
-create table t2 (a int primary key, b varchar(32), c int, unique key b(c, b));
-insert into t2(a, c, b) values (1,10,'359'), (2,10,'35988'), (3,10,'35989');
-explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
-1 PRIMARY r const PRIMARY PRIMARY 4 const 1
-2 SUBQUERY t2 range b b 40 NULL 2 Using where
-SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
-a a b
-10 3 35989
-explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
-1 PRIMARY r const PRIMARY PRIMARY 4 const 1
-2 SUBQUERY t2 range b b 40 NULL 2 Using index condition
-SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
-a a b
-10 1 359
-drop table t1,t2;
-CREATE TABLE t1 (
-field1 int NOT NULL,
-field2 int NOT NULL,
-field3 int NOT NULL,
-PRIMARY KEY (field1,field2,field3)
-);
-CREATE TABLE t2 (
-fieldA int NOT NULL,
-fieldB int NOT NULL,
-PRIMARY KEY (fieldA,fieldB)
-);
-INSERT INTO t1 VALUES
-(1,1,1), (1,1,2), (1,2,1), (1,2,2), (1,2,3), (1,3,1);
-INSERT INTO t2 VALUES (1,1), (1,2), (1,3);
-SELECT field1, field2, COUNT(*)
-FROM t1 GROUP BY field1, field2;
-field1 field2 COUNT(*)
-1 1 2
-1 2 3
-1 3 1
-SELECT field1, field2
-FROM t1
-GROUP BY field1, field2
-HAVING COUNT(*) >= ALL (SELECT fieldB
-FROM t2 WHERE fieldA = field1);
-field1 field2
-1 2
-SELECT field1, field2
-FROM t1
-GROUP BY field1, field2
-HAVING COUNT(*) < ANY (SELECT fieldB
-FROM t2 WHERE fieldA = field1);
-field1 field2
-1 1
-1 3
-DROP TABLE t1, t2;
-CREATE TABLE t1(a int, INDEX (a));
-INSERT INTO t1 VALUES (1), (3), (5), (7);
-INSERT INTO t1 VALUES (NULL);
-CREATE TABLE t2(a int);
-INSERT INTO t2 VALUES (1),(2),(3);
-EXPLAIN SELECT a, a IN (SELECT a FROM t1) FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3
-2 SUBQUERY t1 index_subquery a a 5 func 2 Using index; Full scan on NULL key
-SELECT a, a IN (SELECT a FROM t1) FROM t2;
-a a IN (SELECT a FROM t1)
-1 1
-2 NULL
-3 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES ('1998-09-23'), ('2003-03-25');
-CREATE TABLE t2 AS SELECT
-(SELECT a FROM t1 WHERE a < '2000-01-01') AS sub_a
-FROM t1 WHERE a > '2000-01-01';
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `sub_a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t3 AS (SELECT a FROM t1 WHERE a < '2000-01-01') UNION (SELECT a FROM t1 WHERE a > '2000-01-01');
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) > 0;
-a
-SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) IS NULL;
-a
-1
-2
-EXPLAIN SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (2), (4), (1), (3);
-CREATE TABLE t2 (b int, c int);
-INSERT INTO t2 VALUES
-(2,1), (1,3), (2,1), (4,4), (2,2), (1,4);
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 2 );
-a
-2
-4
-1
-3
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 1);
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 2), a;
-a
-1
-2
-3
-4
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 1), a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT b, MAX(c) FROM t2 GROUP BY b, (SELECT c FROM t2 WHERE b > 2);
-b MAX(c)
-1 4
-2 2
-4 4
-SELECT b, MAX(c) FROM t2 GROUP BY b, (SELECT c FROM t2 WHERE b > 1);
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 2),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-a
-1
-2
-3
-4
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 1),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-a
-4
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b)) > 3;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 2),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b));
-a
-1
-2
-3
-4
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 1),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b));
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b));
-a
-1
-2
-3
-4
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b));
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1,t2;
-create table t1 (df decimal(5,1));
-insert into t1 values(1.1);
-insert into t1 values(2.2);
-select * from t1 where df <= all (select avg(df) from t1 group by df);
-df
-1.1
-select * from t1 where df >= all (select avg(df) from t1 group by df);
-df
-2.2
-drop table t1;
-create table t1 (df decimal(5,1));
-insert into t1 values(1.1);
-select 1.1 * exists(select * from t1);
-1.1 * exists(select * from t1)
-1.1
-drop table t1;
-CREATE TABLE t1 (
-grp int(11) default NULL,
-a decimal(10,2) default NULL);
-insert into t1 values (1, 1), (2, 2), (2, 3), (3, 4), (3, 5), (3, 6), (NULL, NULL);
-select * from t1;
-grp a
-1 1.00
-2 2.00
-2 3.00
-3 4.00
-3 5.00
-3 6.00
-NULL NULL
-select min(a) from t1 group by grp;
-min(a)
-NULL
-1.00
-2.00
-4.00
-drop table t1;
-CREATE table t1 ( c1 integer );
-INSERT INTO t1 VALUES ( 1 );
-INSERT INTO t1 VALUES ( 2 );
-INSERT INTO t1 VALUES ( 3 );
-CREATE TABLE t2 ( c2 integer );
-INSERT INTO t2 VALUES ( 1 );
-INSERT INTO t2 VALUES ( 4 );
-INSERT INTO t2 VALUES ( 5 );
-SELECT * FROM t1 LEFT JOIN t2 ON c1 = c2 WHERE c2 IN (1);
-c1 c2
-1 1
-SELECT * FROM t1 LEFT JOIN t2 ON c1 = c2
-WHERE c2 IN ( SELECT c2 FROM t2 WHERE c2 IN ( 1 ) );
-c1 c2
-1 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 ( c1 integer );
-INSERT INTO t1 VALUES ( 1 );
-INSERT INTO t1 VALUES ( 2 );
-INSERT INTO t1 VALUES ( 3 );
-INSERT INTO t1 VALUES ( 6 );
-CREATE TABLE t2 ( c2 integer );
-INSERT INTO t2 VALUES ( 1 );
-INSERT INTO t2 VALUES ( 4 );
-INSERT INTO t2 VALUES ( 5 );
-INSERT INTO t2 VALUES ( 6 );
-CREATE TABLE t3 ( c3 integer );
-INSERT INTO t3 VALUES ( 7 );
-INSERT INTO t3 VALUES ( 8 );
-SELECT c1,c2 FROM t1 LEFT JOIN t2 ON c1 = c2
-WHERE EXISTS (SELECT c3 FROM t3 WHERE c2 IS NULL );
-c1 c2
-2 NULL
-3 NULL
-DROP TABLE t1,t2,t3;
-CREATE TABLE `t1` (
-`itemid` bigint(20) unsigned NOT NULL auto_increment,
-`sessionid` bigint(20) unsigned default NULL,
-`time` int(10) unsigned NOT NULL default '0',
-`type` set('A','D','E','F','G','I','L','N','U') collate latin1_general_ci NOT
-NULL default '',
-`data` text collate latin1_general_ci NOT NULL,
-PRIMARY KEY (`itemid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t1` VALUES (1, 1, 1, 'D', '');
-CREATE TABLE `t2` (
-`sessionid` bigint(20) unsigned NOT NULL auto_increment,
-`pid` int(10) unsigned NOT NULL default '0',
-`date` int(10) unsigned NOT NULL default '0',
-`ip` varchar(15) collate latin1_general_ci NOT NULL default '',
-PRIMARY KEY (`sessionid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t2` VALUES (1, 1, 1, '10.10.10.1');
-SELECT s.ip, count( e.itemid ) FROM `t1` e JOIN t2 s ON s.sessionid = e.sessionid WHERE e.sessionid = ( SELECT sessionid FROM t2 ORDER BY sessionid DESC LIMIT 1 ) GROUP BY s.ip HAVING count( e.itemid ) >0 LIMIT 0 , 30;
-ip count( e.itemid )
-10.10.10.1 1
-drop tables t1,t2;
-CREATE TABLE t1 (EMPNUM CHAR(3));
-CREATE TABLE t2 (EMPNUM CHAR(3) );
-INSERT INTO t1 VALUES ('E1'),('E2');
-INSERT INTO t2 VALUES ('E1');
-DELETE FROM t1
-WHERE t1.EMPNUM NOT IN
-(SELECT t2.EMPNUM
-FROM t2
-WHERE t1.EMPNUM = t2.EMPNUM);
-select * from t1;
-EMPNUM
-E1
-DROP TABLE t1,t2;
-CREATE TABLE t1(select_id BIGINT, values_id BIGINT);
-INSERT INTO t1 VALUES (1, 1);
-CREATE TABLE t2 (select_id BIGINT, values_id BIGINT,
-PRIMARY KEY(select_id,values_id));
-INSERT INTO t2 VALUES (0, 1), (0, 2), (0, 3), (1, 5);
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id IN (1, 0));
-values_id
-1
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id BETWEEN 0 AND 1);
-values_id
-1
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id = 0 OR select_id = 1);
-values_id
-1
-DROP TABLE t1, t2;
-create table t1 (fld enum('0','1'));
-insert into t1 values ('1');
-select * from (select max(fld) from t1) as foo;
-max(fld)
-1
-drop table t1;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (c int, d int);
-CREATE TABLE t3 (e int);
-INSERT INTO t1 VALUES
-(1,10), (2,10), (1,20), (2,20), (3,20), (2,30), (4,40);
-INSERT INTO t2 VALUES
-(2,10), (2,20), (4,10), (5,10), (3,20), (2,40);
-INSERT INTO t3 VALUES (10), (30), (10), (20) ;
-SELECT a, MAX(b), MIN(b) FROM t1 GROUP BY a;
-a MAX(b) MIN(b)
-1 20 10
-2 30 10
-3 20 20
-4 40 40
-SELECT * FROM t2;
-c d
-2 10
-2 20
-4 10
-5 10
-3 20
-2 40
-SELECT * FROM t3;
-e
-10
-30
-10
-20
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)>20);
-a
-2
-4
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)<d);
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)>d);
-a
-2
-4
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE d >= SOME(SELECT e FROM t3 WHERE MAX(b)=e));
-a
-2
-3
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e <= d));
-a
-2
-3
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE d > SOME(SELECT e FROM t3 WHERE MAX(b)=e));
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e < d));
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE MIN(b) < d AND
-EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e <= d));
-a
-2
-SELECT a, SUM(a) FROM t1 GROUP BY a;
-a SUM(a)
-1 2
-2 6
-3 3
-4 4
-SELECT a FROM t1
-WHERE EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) = c) GROUP BY a;
-a
-3
-4
-SELECT a FROM t1 GROUP BY a
-HAVING EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) = c);
-a
-1
-3
-4
-SELECT a FROM t1
-WHERE a < 3 AND
-EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) != c) GROUP BY a;
-a
-1
-2
-SELECT a FROM t1
-WHERE a < 3 AND
-EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) != c);
-a
-1
-2
-1
-2
-2
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a < ALL(SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING EXISTS(SELECT t3.e FROM t3 GROUP BY t3.e
-HAVING SUM(t1.a+t2.c) < t3.e/4));
-a
-1
-2
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a > ALL(SELECT t2.c FROM t2
-WHERE EXISTS(SELECT t3.e FROM t3 GROUP BY t3.e
-HAVING SUM(t1.a+t2.c) < t3.e/4));
-a
-4
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a > ALL(SELECT t2.c FROM t2
-WHERE EXISTS(SELECT t3.e FROM t3
-WHERE SUM(t1.a+t2.c) < t3.e/4));
-ERROR HY000: Invalid use of group function
-SELECT t1.a from t1 GROUP BY t1.a HAVING AVG(SUM(t1.b)) > 20;
-ERROR HY000: Invalid use of group function
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING AVG(t2.c+SUM(t1.b)) > 20);
-a
-2
-3
-4
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING AVG(SUM(t1.b)) > 20);
-a
-2
-4
-SELECT t1.a, SUM(b) AS sum FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING t2.c+sum > 20);
-a sum
-2 60
-3 20
-4 40
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a varchar(5), b varchar(10));
-INSERT INTO t1 VALUES
-('AAA', 5), ('BBB', 4), ('BBB', 1), ('CCC', 2),
-('CCC', 7), ('AAA', 2), ('AAA', 4), ('BBB', 3), ('AAA', 8);
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-a b
-BBB 4
-CCC 7
-AAA 8
-EXPLAIN
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 9 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 21 test.t1.a,test.t1.b 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 9 Using temporary
-ALTER TABLE t1 ADD INDEX(a);
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-a b
-BBB 4
-CCC 7
-AAA 8
-EXPLAIN
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL a NULL NULL NULL 9 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 21 test.t1.a,test.t1.b 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 9 Using temporary
-DROP TABLE t1;
-create table t1( f1 int,f2 int);
-insert into t1 values (1,1),(2,2);
-select tt.t from (select 'crash1' as t, f2 from t1) as tt left join t1 on tt.t = 'crash2' and tt.f2 = t1.f2 where tt.t = 'crash1';
-t
-crash1
-crash1
-drop table t1;
-create table t1 (c int, key(c));
-insert into t1 values (1142477582), (1142455969);
-create table t2 (a int, b int);
-insert into t2 values (2, 1), (1, 0);
-delete from t1 where c <= 1140006215 and (select b from t2 where a = 2) = 1;
-drop table t1, t2;
-CREATE TABLE t1 (a INT);
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE no_such_column = ANY (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'IN/ALL/ANY subquery'
-CREATE VIEW v2 AS SELECT * FROM t1 WHERE no_such_column = (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'where clause'
-SELECT * FROM t1 WHERE no_such_column = ANY (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'IN/ALL/ANY subquery'
-DROP TABLE t1;
-create table t1 (i int, j bigint);
-insert into t1 values (1, 2), (2, 2), (3, 2);
-select * from (select min(i) from t1 where j=(select * from (select min(j) from t1) t2)) t3;
-min(i)
-1
-drop table t1;
-CREATE TABLE t1 (i BIGINT UNSIGNED);
-INSERT INTO t1 VALUES (10000000000000000000);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (i BIGINT UNSIGNED);
-INSERT INTO t2 VALUES (10000000000000000000);
-INSERT INTO t2 VALUES (1);
-/* simple test */
-SELECT t1.i FROM t1 JOIN t2 ON t1.i = t2.i;
-i
-10000000000000000000
-1
-/* subquery test */
-SELECT t1.i FROM t1 WHERE t1.i = (SELECT MAX(i) FROM t2);
-i
-10000000000000000000
-/* subquery test with cast*/
-SELECT t1.i FROM t1 WHERE t1.i = CAST((SELECT MAX(i) FROM t2) AS UNSIGNED);
-i
-10000000000000000000
-DROP TABLE t1;
-DROP TABLE t2;
-CREATE TABLE t1 (
-id bigint(20) unsigned NOT NULL auto_increment,
-name varchar(255) NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t1 VALUES
-(1, 'Balazs'), (2, 'Joe'), (3, 'Frank');
-CREATE TABLE t2 (
-id bigint(20) unsigned NOT NULL auto_increment,
-mid bigint(20) unsigned NOT NULL,
-date date NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t2 VALUES
-(1, 1, '2006-03-30'), (2, 2, '2006-04-06'), (3, 3, '2006-04-13'),
-(4, 2, '2006-04-20'), (5, 1, '2006-05-01');
-SELECT *,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 0, 1) AS date_last,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 3, 1) AS date_next_to_last
-FROM t1;
-id name date_last date_next_to_last
-1 Balazs 2006-05-01 NULL
-2 Joe 2006-04-20 NULL
-3 Frank 2006-04-13 NULL
-SELECT *,
-(SELECT COUNT(*) FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 1, 1) AS date_count
-FROM t1;
-id name date_count
-1 Balazs NULL
-2 Joe NULL
-3 Frank NULL
-SELECT *,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 0, 1) AS date_last,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 1, 1) AS date_next_to_last
-FROM t1;
-id name date_last date_next_to_last
-1 Balazs 2006-05-01 2006-03-30
-2 Joe 2006-04-20 2006-04-06
-3 Frank 2006-04-13 NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-i1 int(11) NOT NULL default '0',
-i2 int(11) NOT NULL default '0',
-t datetime NOT NULL default '0000-00-00 00:00:00',
-PRIMARY KEY (i1,i2,t)
-);
-INSERT INTO t1 VALUES
-(24,1,'2005-03-03 16:31:31'),(24,1,'2005-05-27 12:40:07'),
-(24,1,'2005-05-27 12:40:08'),(24,1,'2005-05-27 12:40:10'),
-(24,1,'2005-05-27 12:40:25'),(24,1,'2005-05-27 12:40:30'),
-(24,2,'2005-03-03 13:43:05'),(24,2,'2005-03-03 16:23:31'),
-(24,2,'2005-03-03 16:31:30'),(24,2,'2005-05-27 12:37:02'),
-(24,2,'2005-05-27 12:40:06');
-CREATE TABLE t2 (
-i1 int(11) NOT NULL default '0',
-i2 int(11) NOT NULL default '0',
-t datetime default NULL,
-PRIMARY KEY (i1)
-);
-INSERT INTO t2 VALUES (24,1,'2006-06-20 12:29:40');
-EXPLAIN
-SELECT * FROM t1,t2
-WHERE t1.t = (SELECT t1.t FROM t1
-WHERE t1.t < t2.t AND t1.i2=1 AND t2.i1=t1.i1
-ORDER BY t1.t DESC LIMIT 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-1 PRIMARY t1 index NULL PRIMARY 13 NULL 11 Using where; Using index
-2 SUBQUERY t1 range PRIMARY PRIMARY 13 NULL 5 Using where; Using index
-SELECT * FROM t1,t2
-WHERE t1.t = (SELECT t1.t FROM t1
-WHERE t1.t < t2.t AND t1.i2=1 AND t2.i1=t1.i1
-ORDER BY t1.t DESC LIMIT 1);
-i1 i2 t i1 i2 t
-24 1 2005-05-27 12:40:30 24 1 2006-06-20 12:29:40
-DROP TABLE t1, t2;
-CREATE TABLE t1 (i INT);
-(SELECT i FROM t1) UNION (SELECT i FROM t1);
-i
-SELECT sql_no_cache * FROM t1 WHERE NOT EXISTS
-(
-(SELECT i FROM t1) UNION
-(SELECT i FROM t1)
-);
-i
-SELECT * FROM t1
-WHERE NOT EXISTS (((SELECT i FROM t1) UNION (SELECT i FROM t1)));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION (SELECT i FROM t1)))' at line 2
-explain select ((select t11.i from t1 t11) union (select t12.i from t1 t12))
-from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'union (select t12.i from t1 t12))
-from t1' at line 1
-explain select * from t1 where not exists
-((select t11.i from t1 t11) union (select t12.i from t1 t12));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-3 UNION NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(250), b INT auto_increment, PRIMARY KEY (b));
-insert into t1 (a) values (FLOOR(rand() * 100));
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-SELECT a,
-(SELECT REPEAT(' ',250) FROM t1 i1
-WHERE i1.b=t1.a ORDER BY RAND() LIMIT 1) AS a
-FROM t1 ORDER BY a LIMIT 5;
-a a
-0 NULL
-0 NULL
-0 NULL
-0 NULL
-0 NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 values (1);
-INSERT INTO t1 VALUES (1,1),(1,2),(2,3),(3,4);
-SELECT (SELECT COUNT(DISTINCT t1.b) from t2) FROM t1 GROUP BY t1.a;
-(SELECT COUNT(DISTINCT t1.b) from t2)
-2
-1
-1
-SELECT (SELECT COUNT(DISTINCT t1.b) from t2 union select 1 from t2 where 12 < 3)
-FROM t1 GROUP BY t1.a;
-(SELECT COUNT(DISTINCT t1.b) from t2 union select 1 from t2 where 12 < 3)
-2
-1
-1
-SELECT COUNT(DISTINCT t1.b), (SELECT COUNT(DISTINCT t1.b)) FROM t1 GROUP BY t1.a;
-COUNT(DISTINCT t1.b) (SELECT COUNT(DISTINCT t1.b))
-2 2
-1 1
-1 1
-SELECT COUNT(DISTINCT t1.b),
-(SELECT COUNT(DISTINCT t1.b) union select 1 from DUAL where 12 < 3)
-FROM t1 GROUP BY t1.a;
-COUNT(DISTINCT t1.b) (SELECT COUNT(DISTINCT t1.b) union select 1 from DUAL where 12 < 3)
-2 2
-1 1
-1 1
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a;
-(
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-2
-1
-1
-SELECT (
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a LIMIT 1)
-FROM t1 t2
-GROUP BY t2.a;
-(
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a LIMIT 1)
-2
-2
-2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int, PRIMARY KEY (b));
-CREATE TABLE t2 (x int auto_increment, y int, z int,
-PRIMARY KEY (x), FOREIGN KEY (y) REFERENCES t1 (b));
-create table t3 (a int);
-insert into t3 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t1 select RAND()*1000, A.a + 10*(B.a+10*(C.a+10*D.a))
-from t3 A, t3 B, t3 C, t3 D where D.a<3;
-insert into t2(y,z) select t1.b, RAND()*1000 from t1, t3;
-SET SESSION sort_buffer_size = 32 * 1024;
-SELECT SQL_NO_CACHE COUNT(*)
-FROM (SELECT a, b, (SELECT x FROM t2 WHERE y=b ORDER BY z DESC LIMIT 1) c
-FROM t1) t;
-COUNT(*)
-3000
-SET SESSION sort_buffer_size = 8 * 1024 * 1024;
-SELECT SQL_NO_CACHE COUNT(*)
-FROM (SELECT a, b, (SELECT x FROM t2 WHERE y=b ORDER BY z DESC LIMIT 1) c
-FROM t1) t;
-COUNT(*)
-3000
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (id char(4) PRIMARY KEY, c int);
-CREATE TABLE t2 (c int);
-INSERT INTO t1 VALUES ('aa', 1);
-INSERT INTO t2 VALUES (1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT c FROM t2 WHERE c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-INSERT INTO t1 VALUES ('bb', 2), ('cc', 3), ('dd',1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT c FROM t2 WHERE c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-bb 2
-cc 3
-dd 1
-INSERT INTO t2 VALUES (2);
-CREATE TABLE t3 (c int);
-INSERT INTO t3 VALUES (1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT t2.c FROM t2 JOIN t3 ON t2.c=t3.c WHERE t2.c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-bb 2
-cc 3
-dd 1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1(f1 int);
-CREATE TABLE t2(f2 int, f21 int, f3 timestamp);
-INSERT INTO t1 VALUES (1),(1),(2),(2);
-INSERT INTO t2 VALUES (1,1,"2004-02-29 11:11:11"), (2,2,"2004-02-29 11:11:11");
-SELECT ((SELECT f2 FROM t2 WHERE f21=f1 LIMIT 1) * COUNT(f1)) AS sq FROM t1 GROUP BY f1;
-sq
-2
-4
-SELECT (SELECT SUM(1) FROM t2 ttt GROUP BY t2.f3 LIMIT 1) AS tt FROM t2;
-tt
-2
-2
-PREPARE stmt1 FROM 'SELECT ((SELECT f2 FROM t2 WHERE f21=f1 LIMIT 1) * COUNT(f1)) AS sq FROM t1 GROUP BY f1';
-EXECUTE stmt1;
-sq
-2
-4
-EXECUTE stmt1;
-sq
-2
-4
-DEALLOCATE PREPARE stmt1;
-SELECT f2, AVG(f21),
-(SELECT t.f3 FROM t2 AS t WHERE t2.f2=t.f2 AND t.f3=MAX(t2.f3)) AS test
-FROM t2 GROUP BY f2;
-f2 AVG(f21) test
-1 1.0000 2004-02-29 11:11:11
-2 2.0000 2004-02-29 11:11:11
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b INT, c CHAR(10) NOT NULL);
-INSERT INTO t1 VALUES
-(1,1,'a'), (1,2,'b'), (1,3,'c'), (1,4,'d'), (1,5,'e'),
-(2,1,'f'), (2,2,'g'), (2,3,'h'), (3,4,'i'), (3,3,'j'),
-(3,2,'k'), (3,1,'l'), (1,9,'m');
-SELECT a, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b)) AS test
-FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-DROP TABLE IF EXISTS t1xt2;
-CREATE TABLE t1 (
-id_1 int(5) NOT NULL,
-t varchar(4) DEFAULT NULL
-);
-CREATE TABLE t2 (
-id_2 int(5) NOT NULL,
-t varchar(4) DEFAULT NULL
-);
-CREATE TABLE t1xt2 (
-id_1 int(5) NOT NULL,
-id_2 int(5) NOT NULL
-);
-INSERT INTO t1 VALUES (1, 'a'), (2, 'b'), (3, 'c'), (4, 'd');
-INSERT INTO t2 VALUES (2, 'bb'), (3, 'cc'), (4, 'dd'), (12, 'aa');
-INSERT INTO t1xt2 VALUES (2, 2), (3, 3), (4, 4);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 where t1.id_1 = t1xt2.id_1)));
-id_1
-1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 where t1.id_1 = t1xt2.id_1))));
-id_1
-1
-2
-3
-4
-insert INTO t1xt2 VALUES (1, 12);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-2
-3
-4
-insert INTO t1xt2 VALUES (2, 12);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-3
-4
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t1xt2;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (3), (1), (2);
-SELECT 'this is ' 'a test.' AS col1, a AS col2 FROM t1;
-col1 col2
-this is a test. 3
-this is a test. 1
-this is a test. 2
-SELECT * FROM (SELECT 'this is ' 'a test.' AS col1, a AS t2 FROM t1) t;
-col1 t2
-this is a test. 3
-this is a test. 1
-this is a test. 2
-DROP table t1;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (m int, n int);
-INSERT INTO t1 VALUES (2,2), (2,2), (3,3), (3,3), (3,3), (4,4);
-INSERT INTO t2 VALUES (1,11), (2,22), (3,32), (4,44), (4,44);
-SELECT COUNT(*), a,
-(SELECT m FROM t2 WHERE m = count(*) LIMIT 1)
-FROM t1 GROUP BY a;
-COUNT(*) a (SELECT m FROM t2 WHERE m = count(*) LIMIT 1)
-2 2 2
-3 3 3
-1 4 1
-SELECT COUNT(*), a,
-(SELECT MIN(m) FROM t2 WHERE m = count(*))
-FROM t1 GROUP BY a;
-COUNT(*) a (SELECT MIN(m) FROM t2 WHERE m = count(*))
-2 2 2
-3 3 3
-1 4 1
-SELECT COUNT(*), a
-FROM t1 GROUP BY a
-HAVING (SELECT MIN(m) FROM t2 WHERE m = count(*)) > 1;
-COUNT(*) a
-2 2
-3 3
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (m int, n int);
-INSERT INTO t1 VALUES (2,2), (2,2), (3,3), (3,3), (3,3), (4,4);
-INSERT INTO t2 VALUES (1,11), (2,22), (3,32), (4,44), (4,44);
-SELECT COUNT(*) c, a,
-(SELECT GROUP_CONCAT(COUNT(a)) FROM t2 WHERE m = a)
-FROM t1 GROUP BY a;
-c a (SELECT GROUP_CONCAT(COUNT(a)) FROM t2 WHERE m = a)
-2 2 2
-3 3 3
-1 4 1,1
-SELECT COUNT(*) c, a,
-(SELECT GROUP_CONCAT(COUNT(a)+1) FROM t2 WHERE m = a)
-FROM t1 GROUP BY a;
-c a (SELECT GROUP_CONCAT(COUNT(a)+1) FROM t2 WHERE m = a)
-2 2 3
-3 3 4
-1 4 2,2
-DROP table t1,t2;
-CREATE TABLE t1 (a int, b INT, d INT, c CHAR(10) NOT NULL, PRIMARY KEY (a, b));
-INSERT INTO t1 VALUES (1,1,0,'a'), (1,2,0,'b'), (1,3,0,'c'), (1,4,0,'d'),
-(1,5,0,'e'), (2,1,0,'f'), (2,2,0,'g'), (2,3,0,'h'), (3,4,0,'i'), (3,3,0,'j'),
-(3,2,0,'k'), (3,1,0,'l'), (1,9,0,'m'), (1,0,10,'n'), (2,0,5,'o'), (3,0,7,'p');
-SELECT a, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b + 0)) as test
-FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-SELECT a x, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE x=t.a AND t.b=MAX(t1.b + 0)) as test
-FROM t1 GROUP BY a;
-x MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-SELECT a, AVG(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=AVG(t1.b)) AS test
-FROM t1 WHERE t1.d=0 GROUP BY a;
-a AVG(b) test
-1 4.0000 d
-2 2.0000 g
-3 2.5000 NULL
-SELECT tt.a,
-(SELECT (SELECT c FROM t1 as t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1) FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
-FROM t1 as tt;
-a test
-1 n
-1 n
-1 n
-1 n
-1 n
-1 n
-1 n
-2 o
-2 o
-2 o
-2 o
-3 p
-3 p
-3 p
-3 p
-3 p
-SELECT tt.a,
-(SELECT (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1)
-FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
-FROM t1 as tt GROUP BY tt.a;
-a test
-1 n
-2 o
-3 p
-SELECT tt.a, MAX(
-(SELECT (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1)
-FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1)) as test
-FROM t1 as tt GROUP BY tt.a;
-a test
-1 n
-2 o
-3 p
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-a
-1
-2
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-a
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-a
-1
-2
-SET @@sql_mode='ansi';
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-ERROR HY000: Invalid use of group function
-SET @@sql_mode=default;
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 values (1),(1),(1),(1);
-CREATE TABLE t2 (x INT);
-INSERT INTO t1 values (1000),(1001),(1002);
-SELECT SUM( (SELECT COUNT(a) FROM t2) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT SUM( (SELECT SUM(COUNT(a)) FROM t2) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT COUNT(1) FROM DUAL;
-COUNT(1)
-1
-SELECT SUM( (SELECT AVG( (SELECT t1.a FROM t2) ) FROM DUAL) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT
-SUM( (SELECT AVG( (SELECT COUNT(*) FROM t1 t HAVING t1.a < 12) ) FROM t2) )
-FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT t1.a as XXA,
-SUM( (SELECT AVG( (SELECT COUNT(*) FROM t1 t HAVING XXA < 12) ) FROM t2) )
-FROM t1;
-ERROR HY000: Invalid use of group function
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int, KEY (a));
-INSERT INTO t1 VALUES (1,1),(2,1);
-EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT COUNT(*) FROM t1 GROUP BY b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref a a 5 const 1 Using where; Using index
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-DROP TABLE t1;
-CREATE TABLE t1 (id int NOT NULL, st CHAR(2), INDEX idx(id));
-INSERT INTO t1 VALUES
-(3,'FL'), (2,'GA'), (4,'FL'), (1,'GA'), (5,'NY'), (7,'FL'), (6,'NY');
-CREATE TABLE t2 (id int NOT NULL, INDEX idx(id));
-INSERT INTO t2 VALUES (7), (5), (1), (3);
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id);
-id st
-3 FL
-1 GA
-7 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id)
-GROUP BY id;
-id st
-1 GA
-3 FL
-7 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND NOT EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id);
-id st
-2 GA
-4 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND NOT EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id)
-GROUP BY id;
-id st
-2 GA
-4 FL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-EXPLAIN EXTENDED
-SELECT * FROM (SELECT count(*) FROM t1 GROUP BY a) as res;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `res`.`count(*)` AS `count(*)` from (/* select#2 */ select count(0) AS `count(*)` from `test`.`t1` group by `test`.`t1`.`a`) `res`
-DROP TABLE t1;
-CREATE TABLE t1 (
-a varchar(255) default NULL,
-b timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
-INDEX idx(a,b)
-);
-CREATE TABLE t2 (
-a varchar(255) default NULL
-);
-INSERT INTO t1 VALUES ('abcdefghijk','2007-05-07 06:00:24');
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO `t1` VALUES ('asdf','2007-02-08 01:11:26');
-INSERT INTO `t2` VALUES ('abcdefghijk');
-INSERT INTO `t2` VALUES ('asdf');
-SET session sort_buffer_size=8192;
-SELECT (SELECT 1 FROM t1 WHERE t1.a=t2.a ORDER BY t1.b LIMIT 1) AS d1 FROM t2;
-d1
-1
-1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INTEGER, b INTEGER);
-CREATE TABLE t2 (x INTEGER);
-INSERT INTO t1 VALUES (1,11), (2,22), (2,22);
-INSERT INTO t2 VALUES (1), (2);
-SELECT a, COUNT(b), (SELECT COUNT(b) FROM t2) FROM t1 GROUP BY a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a, COUNT(b), (SELECT COUNT(b)+0 FROM t2) FROM t1 GROUP BY a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT SUM(t1.a)/AVG(t2.x) FROM t2) FROM t1;
-(SELECT SUM(t1.a)/AVG(t2.x) FROM t2)
-3.3333
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1, 2), (1,3), (1,4), (2,1), (2,2);
-SELECT a1.a, COUNT(*) FROM t1 a1 WHERE a1.a = 1
-AND EXISTS( SELECT a2.a FROM t1 a2 WHERE a2.a = a1.a)
-GROUP BY a1.a;
-a COUNT(*)
-1 3
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1),(2);
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a=0) FROM t1;
-(SELECT SUM(t1.a) FROM t2 WHERE a=0)
-NULL
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a!=0) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a=1) FROM t1;
-(SELECT SUM(t1.a) FROM t2 WHERE a=1)
-3
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a1 INT, a2 INT);
-CREATE TABLE t2 (b1 INT, b2 INT);
-INSERT INTO t1 VALUES (100, 200);
-INSERT INTO t1 VALUES (101, 201);
-INSERT INTO t2 VALUES (101, 201);
-INSERT INTO t2 VALUES (103, 203);
-SELECT ((a1,a2) IN (SELECT * FROM t2 WHERE b2 > 0)) IS NULL FROM t1;
-((a1,a2) IN (SELECT * FROM t2 WHERE b2 > 0)) IS NULL
-0
-0
-DROP TABLE t1, t2;
-CREATE TABLE t1 (s1 BINARY(5), s2 VARBINARY(5));
-INSERT INTO t1 VALUES (0x41,0x41), (0x42,0x42), (0x43,0x43);
-SELECT s1, s2 FROM t1 WHERE s2 IN (SELECT s1 FROM t1);
-s1 s2
-SELECT s1, s2 FROM t1 WHERE (s2, 10) IN (SELECT s1, 10 FROM t1);
-s1 s2
-CREATE INDEX I1 ON t1 (s1);
-CREATE INDEX I2 ON t1 (s2);
-SELECT s1, s2 FROM t1 WHERE s2 IN (SELECT s1 FROM t1);
-s1 s2
-SELECT s1, s2 FROM t1 WHERE (s2, 10) IN (SELECT s1, 10 FROM t1);
-s1 s2
-TRUNCATE t1;
-INSERT INTO t1 VALUES (0x41,0x41);
-SELECT * FROM t1 WHERE s1 = (SELECT s2 FROM t1);
-s1 s2
-DROP TABLE t1;
-CREATE TABLE t1 (a1 VARBINARY(2) NOT NULL DEFAULT '0', PRIMARY KEY (a1));
-CREATE TABLE t2 (a2 BINARY(2) default '0', INDEX (a2));
-CREATE TABLE t3 (a3 BINARY(2) default '0');
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-INSERT INTO t2 VALUES (1),(2),(3);
-INSERT INTO t3 VALUES (1),(2),(3);
-SELECT LEFT(t2.a2, 1) FROM t2,t3 WHERE t3.a3=t2.a2;
-LEFT(t2.a2, 1)
-1
-2
-3
-SELECT t1.a1, t1.a1 in (SELECT t2.a2 FROM t2,t3 WHERE t3.a3=t2.a2) FROM t1;
-a1 t1.a1 in (SELECT t2.a2 FROM t2,t3 WHERE t3.a3=t2.a2)
-1 0
-2 0
-3 0
-4 0
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a1 BINARY(3) PRIMARY KEY, b1 VARBINARY(3));
-CREATE TABLE t2 (a2 VARBINARY(3) PRIMARY KEY);
-CREATE TABLE t3 (a3 VARBINARY(3) PRIMARY KEY);
-INSERT INTO t1 VALUES (1,10), (2,20), (3,30), (4,40);
-INSERT INTO t2 VALUES (2), (3), (4), (5);
-INSERT INTO t3 VALUES (10), (20), (30);
-SELECT LEFT(t1.a1,1) FROM t1,t3 WHERE t1.b1=t3.a3;
-LEFT(t1.a1,1)
-1
-2
-3
-SELECT a2 FROM t2 WHERE t2.a2 IN (SELECT t1.a1 FROM t1,t3 WHERE t1.b1=t3.a3);
-a2
-DROP TABLE t1, t2, t3;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='semijoin_with_cache=off';
-SET optimizer_switch='materialization=off';
-CREATE TABLE t1 (a CHAR(1), b VARCHAR(10));
-INSERT INTO t1 VALUES ('a', 'aa');
-INSERT INTO t1 VALUES ('a', 'aaa');
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-a b
-CREATE INDEX I1 ON t1 (a);
-CREATE INDEX I2 ON t1 (b);
-EXPLAIN SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL I2 NULL NULL NULL 2 Using where
-1 PRIMARY t1 ref I1 I1 2 test.t1.b 2 Using where; Using index; FirstMatch(t1)
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-a b
-CREATE TABLE t2 (a VARCHAR(1), b VARCHAR(10));
-INSERT INTO t2 SELECT * FROM t1;
-CREATE INDEX I1 ON t2 (a);
-CREATE INDEX I2 ON t2 (b);
-EXPLAIN SELECT a,b FROM t2 WHERE b IN (SELECT a FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL I2 NULL NULL NULL 2 Using where
-1 PRIMARY t2 ref I1 I1 4 test.t2.b 2 Using where; Using index; FirstMatch(t2)
-SELECT a,b FROM t2 WHERE b IN (SELECT a FROM t2);
-a b
-EXPLAIN
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1 WHERE LENGTH(a)<500);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL I2 NULL NULL NULL 2 Using where
-1 PRIMARY t1 ref I1 I1 2 test.t1.b 2 Using where; Using index; FirstMatch(t1)
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1 WHERE LENGTH(a)<500);
-a b
-DROP TABLE t1,t2;
-SET optimizer_switch= @save_optimizer_switch;
-CREATE TABLE t1(a INT, b INT);
-INSERT INTO t1 VALUES (1,1), (1,2), (2,3), (2,4);
-EXPLAIN
-SELECT a AS out_a, MIN(b) FROM t1
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = out_a)
-GROUP BY a;
-ERROR 42S22: Unknown column 'out_a' in 'where clause'
-SELECT a AS out_a, MIN(b) FROM t1
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = out_a)
-GROUP BY a;
-ERROR 42S22: Unknown column 'out_a' in 'where clause'
-EXPLAIN
-SELECT a AS out_a, MIN(b) FROM t1 t1_outer
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = t1_outer.a)
-GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_outer ALL NULL NULL NULL NULL 4 Using where; Using temporary; Using filesort
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 4 Using where
-SELECT a AS out_a, MIN(b) FROM t1 t1_outer
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = t1_outer.a)
-GROUP BY a;
-out_a MIN(b)
-1 2
-2 4
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1),(2);
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a));
-2
-2
-2
-EXPLAIN EXTENDED
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 select 2 AS `2` from `test`.`t1` semi join (`test`.`t2`) where 1
-EXPLAIN EXTENDED
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a) UNION
-(SELECT 1 FROM t2 WHERE t1.a = t2.a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DEPENDENT UNION t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 2 AS `2` from `test`.`t1` where exists((/* select#2 */ select 1 from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`) union (/* select#3 */ select 1 from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`))
-DROP TABLE t1,t2;
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(f11 int, f12 int);
-create table t2(f21 int unsigned not null, f22 int, f23 varchar(10));
-insert into t1 values(1,1),(2,2), (3, 3);
-insert ignore into t2
-select -1 , (@a:=(A.a + 10 * (B.a + 10 * (C.a+10*D.a))))/5000 + 1, @a
-from t0 A, t0 B, t0 C, t0 D;
-set session sort_buffer_size= 33*1024;
-select count(*) from t1 where f12 =
-(select f22 from t2 where f22 = f12 order by f21 desc, f22, f23 limit 1);
-count(*)
-3
-drop table t0,t1,t2;
-CREATE TABLE t4 (
-f7 varchar(32) collate utf8_bin NOT NULL default '',
-f10 varchar(32) collate utf8_bin default NULL,
-PRIMARY KEY (f7)
-);
-INSERT INTO t4 VALUES(1,1), (2,null);
-CREATE TABLE t2 (
-f4 varchar(32) collate utf8_bin NOT NULL default '',
-f2 varchar(50) collate utf8_bin default NULL,
-f3 varchar(10) collate utf8_bin default NULL,
-PRIMARY KEY (f4),
-UNIQUE KEY uk1 (f2)
-);
-INSERT INTO t2 VALUES(1,1,null), (2,2,null);
-CREATE TABLE t1 (
-f8 varchar(32) collate utf8_bin NOT NULL default '',
-f1 varchar(10) collate utf8_bin default NULL,
-f9 varchar(32) collate utf8_bin default NULL,
-PRIMARY KEY (f8)
-);
-INSERT INTO t1 VALUES (1,'P',1), (2,'P',1), (3,'R',2);
-CREATE TABLE t3 (
-f6 varchar(32) collate utf8_bin NOT NULL default '',
-f5 varchar(50) collate utf8_bin default NULL,
-PRIMARY KEY (f6)
-);
-INSERT INTO t3 VALUES (1,null), (2,null);
-SELECT
-IF(t1.f1 = 'R', a1.f2, t2.f2) AS a4,
-IF(t1.f1 = 'R', a1.f3, t2.f3) AS f3,
-SUM(
-IF(
-(SELECT VPC.f2
-FROM t2 VPC, t4 a2, t2 a3
-WHERE
-VPC.f4 = a2.f10 AND a3.f2 = a4
-LIMIT 1) IS NULL,
-0,
-t3.f5
-)
-) AS a6
-FROM
-t2, t3, t1 JOIN t2 a1 ON t1.f9 = a1.f4
-GROUP BY a4;
-a4 f3 a6
-1 NULL NULL
-2 NULL NULL
-DROP TABLE t1, t2, t3, t4;
-create table t1 (a float(5,4) zerofill);
-create table t2 (a float(5,4),b float(2,0));
-select t1.a from t1 where
-t1.a= (select b from t2 limit 1) and not
-t1.a= (select a from t2 limit 1) ;
-a
-drop table t1, t2;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=0;
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> const distinct_key distinct_key 4 const 1 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from <materialize> (/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1` group by `test`.`t1`.`a`) join `test`.`t1` where `<subquery2>`.`min(a)` = 1
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 WHERE a > 3 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> const distinct_key distinct_key 4 const 1 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2 100.00 Using where; Using temporary
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from <materialize> (/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1` where `test`.`t1`.`a` > 3 group by `test`.`t1`.`a`) join `test`.`t1` where `<subquery2>`.`min(a)` = 1
-SET join_cache_level=@save_join_cache_level;
-DROP TABLE t1;
-#
-# Bug#45061: Incorrectly market field caused wrong result.
-#
-CREATE TABLE `C` (
-`int_nokey` int(11) NOT NULL,
-`int_key` int(11) NOT NULL,
-KEY `int_key` (`int_key`)
-);
-INSERT INTO `C` VALUES (9,9), (0,0), (8,6), (3,6), (7,6), (0,4),
-(1,7), (9,4), (0,8), (9,4), (0,7), (5,5), (0,0), (8,5), (8,7),
-(5,2), (1,8), (7,0), (0,9), (9,5);
-SELECT * FROM C WHERE `int_key` IN (SELECT `int_nokey`);
-int_nokey int_key
-9 9
-0 0
-5 5
-0 0
-EXPLAIN EXTENDED SELECT * FROM C WHERE `int_key` IN (SELECT `int_nokey`);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE C ALL NULL NULL NULL NULL 20 100.00 Using where
-DROP TABLE C;
-# End of test for bug#45061.
-#
-# Bug #46749: Segfault in add_key_fields() with outer subquery level
-# field references
-#
-CREATE TABLE t1 (
-a int,
-b int,
-UNIQUE (a), KEY (b)
-);
-INSERT INTO t1 VALUES (1,1), (2,1);
-CREATE TABLE st1 like t1;
-INSERT INTO st1 VALUES (1,1), (2,1);
-CREATE TABLE st2 like t1;
-INSERT INTO st2 VALUES (1,1), (2,1);
-EXPLAIN
-SELECT MAX(b), (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-FROM t1
-WHERE a = 230;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT MAX(b), (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-FROM t1
-WHERE a = 230;
-MAX(b) (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-NULL NULL
-DROP TABLE t1, st1, st2;
-#
-# Bug #48709: Assertion failed in sql_select.cc:11782:
-# int join_read_key(JOIN_TAB*)
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, int_key int);
-INSERT INTO t1 VALUES (10,1), (14,1);
-CREATE TABLE t2 (pk int PRIMARY KEY, int_key int);
-INSERT INTO t2 VALUES (3,3), (5,NULL), (7,3);
-# should have eq_ref for t1
-EXPLAIN
-SELECT * FROM t2 outr
-WHERE outr.int_key NOT IN (SELECT t1.pk FROM t1, t2)
-ORDER BY outr.pk;
-id select_type table type possible_keys key key_len ref rows Extra
-x x outr ALL x x x x x x
-x x t1 eq_ref x x x x x x
-x x t2 index x x x x x x
-# should not crash on debug binaries
-SELECT * FROM t2 outr
-WHERE outr.int_key NOT IN (SELECT t1.pk FROM t1, t2)
-ORDER BY outr.pk;
-pk int_key
-3 3
-7 3
-DROP TABLE t1,t2;
-#
-# Bug#12329653
-# EXPLAIN, UNION, PREPARED STATEMENT, CRASH, SQL_FULL_GROUP_BY
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-EXPLAIN EXTENDED
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-1
-1
-1
-PREPARE stmt FROM
-'SELECT 1 UNION ALL
-SELECT 1 FROM t1
-ORDER BY
-(SELECT 1 FROM t1 AS t1_0
- WHERE 1 < SOME (SELECT a1 FROM t1)
-)' ;
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-SET SESSION sql_mode=@old_sql_mode;
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2(a1 int);
-INSERT INTO t2 VALUES (3);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2.0 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 'a' FROM t2);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t2);
-1
-1
-1
-SET SESSION sql_mode=@old_sql_mode;
-DROP TABLE t1, t2;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-create table t2(i int);
-insert into t2 values(0);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-CREATE VIEW v1 AS
-SELECT 'f' FROM t2 UNION SELECT 'x' FROM t2
-;
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key)
-);
-SELECT t1.pk
-FROM t1
-WHERE t1.col_varchar_key < ALL ( SELECT * FROM v1 )
-;
-pk
-SET SESSION sql_mode=@old_sql_mode;
-drop table t2, t1;
-drop view v1;
-# End of 5.0 tests.
-create table t_out (subcase char(3),
-a1 char(2), b1 char(2), c1 char(2));
-create table t_in (a2 char(2), b2 char(2), c2 char(2));
-insert into t_out values ('A.1','2a', NULL, '2a');
-insert into t_out values ('A.3', '2a', NULL, '2a');
-insert into t_out values ('A.4', '2a', NULL, 'xx');
-insert into t_out values ('B.1', '2a', '2a', '2a');
-insert into t_out values ('B.2', '2a', '2a', '2a');
-insert into t_out values ('B.3', '3a', 'xx', '3a');
-insert into t_out values ('B.4', 'xx', '3a', '3a');
-insert into t_in values ('1a', '1a', '1a');
-insert into t_in values ('2a', '2a', '2a');
-insert into t_in values (NULL, '2a', '2a');
-insert into t_in values ('3a', NULL, '3a');
-
-Test general IN semantics (not top-level)
-
-case A.1
-select subcase,
-(a1, b1, c1) IN (select * from t_in where a2 = 'no_match') pred_in,
-(a1, b1, c1) NOT IN (select * from t_in where a2 = 'no_match') pred_not_in
-from t_out where subcase = 'A.1';
-subcase pred_in pred_not_in
-A.1 0 1
-case A.2 - impossible
-case A.3
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'A.3';
-subcase pred_in pred_not_in
-A.3 NULL NULL
-case A.4
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'A.4';
-subcase pred_in pred_not_in
-A.4 0 1
-case B.1
-select subcase,
-(a1, b1, c1) IN (select * from t_in where a2 = 'no_match') pred_in,
-(a1, b1, c1) NOT IN (select * from t_in where a2 = 'no_match') pred_not_in
-from t_out where subcase = 'B.1';
-subcase pred_in pred_not_in
-B.1 0 1
-case B.2
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.2';
-subcase pred_in pred_not_in
-B.2 1 0
-case B.3
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.3';
-subcase pred_in pred_not_in
-B.3 NULL NULL
-case B.4
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.4';
-subcase pred_in pred_not_in
-B.4 0 1
-
-Test IN as top-level predicate, and
-as non-top level for cases A.3, B.3 (the only cases with NULL result).
-
-case A.1
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.1' and
-(a1, b1, c1) IN (select * from t_in where a1 = 'no_match');
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.1' and
-(a1, b1, c1) NOT IN (select * from t_in where a1 = 'no_match');
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.1' and
-NOT((a1, b1, c1) IN (select * from t_in where a1 = 'no_match'));
-not_pred_in
-T
-case A.3
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.3' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.3' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.3' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-select case when count(*) > 0 then 'N' else 'wrong result' end as pred_in from t_out
-where subcase = 'A.3' and
-((a1, b1, c1) IN (select * from t_in)) is NULL and
-((a1, b1, c1) NOT IN (select * from t_in)) is NULL;
-pred_in
-N
-case A.4
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.4' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.4' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.4' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-T
-case B.1
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.1' and
-(a1, b1, c1) IN (select * from t_in where a1 = 'no_match');
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.1' and
-(a1, b1, c1) NOT IN (select * from t_in where a1 = 'no_match');
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.1' and
-NOT((a1, b1, c1) IN (select * from t_in where a1 = 'no_match'));
-not_pred_in
-T
-case B.2
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.2' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.2' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.2' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-case B.3
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.3' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.3' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.3' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-select case when count(*) > 0 then 'N' else 'wrong result' end as pred_in from t_out
-where subcase = 'B.3' and
-((a1, b1, c1) IN (select * from t_in)) is NULL and
-((a1, b1, c1) NOT IN (select * from t_in)) is NULL;
-pred_in
-N
-case B.4
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.4' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.4' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.4' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-T
-drop table t_out;
-drop table t_in;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-a
-1
-2
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-a
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-a
-1
-2
-SET @@sql_mode='ansi';
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-ERROR HY000: Invalid use of group function
-SET @@sql_mode=default;
-DROP TABLE t1;
-CREATE TABLE t1 (s1 CHAR(1));
-INSERT INTO t1 VALUES ('a');
-SELECT * FROM t1 WHERE _utf8'a' = ANY (SELECT s1 FROM t1);
-s1
-a
-DROP TABLE t1;
-CREATE TABLE t1(c INT, KEY(c));
-CREATE TABLE t2(a INT, b INT);
-INSERT INTO t2 VALUES (1, 10), (2, NULL);
-INSERT INTO t1 VALUES (1), (3);
-SELECT * FROM t2 WHERE b NOT IN (SELECT max(t.c) FROM t1, t1 t WHERE t.c>10);
-a b
-DROP TABLE t1,t2;
-CREATE TABLE t1(pk INT PRIMARY KEY, a INT, INDEX idx(a));
-INSERT INTO t1 VALUES (1, 10), (3, 30), (2, 20);
-CREATE TABLE t2(pk INT PRIMARY KEY, a INT, b INT, INDEX idxa(a));
-INSERT INTO t2 VALUES (2, 20, 700), (1, 10, 200), (4, 10, 100);
-SELECT * FROM t1
-WHERE EXISTS (SELECT DISTINCT a FROM t2 WHERE t1.a < t2.a ORDER BY b);
-pk a
-1 10
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY (a), KEY b (b));
-INSERT INTO t1 VALUES (1,NULL), (9,NULL);
-CREATE TABLE t2 (
-a INT,
-b INT,
-c INT,
-d INT,
-PRIMARY KEY (a),
-UNIQUE KEY b (b,c,d),
-KEY b_2 (b),
-KEY c (c),
-KEY d (d)
-);
-INSERT INTO t2 VALUES
-(43, 2, 11 ,30),
-(44, 2, 12 ,30),
-(45, 1, 1 ,10000),
-(46, 1, 2 ,10000),
-(556,1, 32 ,10000);
-CREATE TABLE t3 (
-a INT,
-b INT,
-c INT,
-PRIMARY KEY (a),
-UNIQUE KEY b (b,c),
-KEY c (c),
-KEY b_2 (b)
-);
-INSERT INTO t3 VALUES (1,1,1), (2,32,1);
-explain
-SELECT t1.a, (SELECT 1 FROM t2 WHERE t2.b=t3.c AND t2.c=t1.a ORDER BY t2.d LIMIT 1) AS incorrect FROM t1, t3 WHERE t3.b=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 2 Using index
-1 PRIMARY t3 ref b,b_2 b 5 test.t1.a 1 Using index
-2 DEPENDENT SUBQUERY t2 ref b,b_2,c b 10 test.t3.c,test.t1.a 1 Using where; Using index
-SELECT t1.a, (SELECT 1 FROM t2 WHERE t2.b=t3.c AND t2.c=t1.a ORDER BY t2.d LIMIT 1) AS incorrect FROM t1, t3 WHERE t3.b=t1.a;
-a incorrect
-1 1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (id int);
-CREATE TABLE t2 (id int, c int);
-INSERT INTO t1 (id) VALUES (1);
-INSERT INTO t2 (id) VALUES (1);
-INSERT INTO t1 (id) VALUES (1);
-INSERT INTO t2 (id) VALUES (1);
-CREATE VIEW v1 AS
-SELECT t2.c AS c FROM t1, t2
-WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-UPDATE v1 SET c=1;
-CREATE VIEW v2 (a,b) AS
-SELECT t2.id, t2.c AS c FROM t1, t2
-WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-INSERT INTO v2(a,b) VALUES (2,2);
-ERROR 44000: CHECK OPTION failed `test`.`v2`
-SELECT * FROM v1;
-c
-1
-1
-1
-1
-CREATE VIEW v3 AS
-SELECT t2.c AS c FROM t2
-WHERE 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-DELETE FROM v3;
-DROP VIEW v1,v2,v3;
-DROP TABLE t1,t2;
-#
-# BUG#37822 Correlated subquery with IN and IS UNKNOWN provides wrong result
-#
-create table t1(id integer primary key, g integer, v integer, s char(1));
-create table t2(id integer primary key, g integer, v integer, s char(1));
-insert into t1 values
-(10, 10, 10, 'l'),
-(20, 20, 20, 'l'),
-(40, 40, 40, 'l'),
-(41, 40, null, 'l'),
-(50, 50, 50, 'l'),
-(51, 50, null, 'l'),
-(60, 60, 60, 'l'),
-(61, 60, null, 'l'),
-(70, 70, 70, 'l'),
-(90, 90, null, 'l');
-insert into t2 values
-(10, 10, 10, 'r'),
-(30, 30, 30, 'r'),
-(50, 50, 50, 'r'),
-(60, 60, 60, 'r'),
-(61, 60, null, 'r'),
-(70, 70, 70, 'r'),
-(71, 70, null, 'r'),
-(80, 80, 80, 'r'),
-(81, 80, null, 'r'),
-(100,100,null, 'r');
-select *
-from t1
-where v in(select v
-from t2
-where t1.g=t2.g) is unknown;
-id g v s
-51 50 NULL l
-61 60 NULL l
-drop table t1, t2;
-#
-# Bug#37822 Correlated subquery with IN and IS UNKNOWN provides wrong result
-#
-create table t1(id integer primary key, g integer, v integer, s char(1));
-create table t2(id integer primary key, g integer, v integer, s char(1));
-insert into t1 values
-(10, 10, 10, 'l'),
-(20, 20, 20, 'l'),
-(40, 40, 40, 'l'),
-(41, 40, null, 'l'),
-(50, 50, 50, 'l'),
-(51, 50, null, 'l'),
-(60, 60, 60, 'l'),
-(61, 60, null, 'l'),
-(70, 70, 70, 'l'),
-(90, 90, null, 'l');
-insert into t2 values
-(10, 10, 10, 'r'),
-(30, 30, 30, 'r'),
-(50, 50, 50, 'r'),
-(60, 60, 60, 'r'),
-(61, 60, null, 'r'),
-(70, 70, 70, 'r'),
-(71, 70, null, 'r'),
-(80, 80, 80, 'r'),
-(81, 80, null, 'r'),
-(100,100,null, 'r');
-select *
-from t1
-where v in(select v
-from t2
-where t1.g=t2.g) is unknown;
-id g v s
-51 50 NULL l
-61 60 NULL l
-drop table t1, t2;
-#
-# Bug#33204: INTO is allowed in subselect, causing inconsistent results
-#
-CREATE TABLE t1( a INT );
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2( a INT, b INT );
-SELECT *
-FROM (SELECT a INTO @var FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var FROM t1 WHERE a = 2) t1a' at line 2
-SELECT *
-FROM (SELECT a INTO OUTFILE 'file' FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' FROM t1 WHERE a = 2) t1a' at line 2
-SELECT *
-FROM (SELECT a INTO DUMPFILE 'file' FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' FROM t1 WHERE a = 2) t1a' at line 2
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO @var FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO OUTFILE 'file' FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO DUMPFILE 'file' FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (SELECT a FROM t1 WHERE a = 2) t1a;
-a
-2
-SELECT * FROM (
-SELECT a FROM t1 WHERE a = 2
-UNION
-SELECT a FROM t1 WHERE a = 2
-) t1a;
-a
-2
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a FROM t1 WHERE a = 2
-UNION
-SELECT a FROM t1 WHERE a = 2
-) t1a;
-a
-1
-2
-SELECT * FROM ((SELECT 1 a) UNION SELECT 1 a) q;
-a
-1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a)) alias;
-a
-1
-SELECT * FROM (SELECT 1 UNION SELECT 1) t1a;
-1
-1
-SELECT * FROM ((SELECT 1 a INTO @a)) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)) t1a' at line 1
-SELECT * FROM ((SELECT 1 a INTO OUTFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )) t1a' at line 1
-SELECT * FROM ((SELECT 1 a INTO DUMPFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO @a)) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO DUMPFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO OUTFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO @a))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a))) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO DUMPFILE 'file' ))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' ))) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO OUTFILE 'file' ))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' ))) t1a' at line 1
-SELECT * FROM (SELECT 1 a ORDER BY a) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a ORDER BY a) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a LIMIT 1) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a ORDER BY a LIMIT 1) t1a;
-a
-1
-SELECT * FROM t1 JOIN (SELECT 1 UNION SELECT 1) alias ON 1;
-a 1
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 UNION SELECT 1)) ON 1;
-ERROR 42000: Every derived table must have its own alias
-SELECT * FROM t1 JOIN (t1 t1a UNION SELECT 1) ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1) ON 1' at line 1
-SELECT * FROM t1 JOIN ((t1 t1a UNION SELECT 1)) ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1)) ON 1' at line 1
-SELECT * FROM t1 JOIN (t1 t1a) t1a ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a ON 1' at line 1
-SELECT * FROM t1 JOIN ((t1 t1a)) t1a ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a ON 1' at line 1
-SELECT * FROM t1 JOIN (t1 t1a) ON 1;
-a a
-1 1
-2 1
-1 2
-2 2
-SELECT * FROM t1 JOIN ((t1 t1a)) ON 1;
-a a
-1 1
-2 1
-1 2
-2 2
-SELECT * FROM (t1 t1a);
-a
-1
-2
-SELECT * FROM ((t1 t1a));
-a
-1
-2
-SELECT * FROM t1 JOIN (SELECT 1 t1a) alias ON 1;
-a t1a
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 t1a)) alias ON 1;
-a t1a
-1 1
-2 1
-SELECT * FROM t1 JOIN (SELECT 1 a) a ON 1;
-a a
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 a)) a ON 1;
-a a
-1 1
-2 1
-SELECT * FROM (t1 JOIN (SELECT 1) t1a1 ON 1) t1a2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a2' at line 1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 3 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT ( SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT ( SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT a FROM t1 WHERE a = 1 ), a FROM t1;
-( SELECT a FROM t1 WHERE a = 1 ) a
-1 1
-1 2
-SELECT ( SELECT a FROM t1 WHERE a = 1 UNION SELECT 1 ), a FROM t1;
-( SELECT a FROM t1 WHERE a = 1 UNION SELECT 1 ) a
-1 1
-1 2
-SELECT * FROM t2 WHERE (a, b) IN (SELECT a, b FROM t2);
-a b
-SELECT 1 UNION ( SELECT 1 UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-( SELECT 1 UNION SELECT 1 ) UNION SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1' at line 1
-SELECT ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-( SELECT 1 UNION SELECT 1 UNION SELECT 1 )
-1
-SELECT ((SELECT 1 UNION SELECT 1 UNION SELECT 1));
-((SELECT 1 UNION SELECT 1 UNION SELECT 1))
-1
-SELECT * FROM ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: Every derived table must have its own alias
-SELECT * FROM ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 ) a;
-1
-1
-SELECT * FROM ( SELECT 1 UNION SELECT 1 UNION SELECT 1 ) a;
-1
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ALL ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a IN ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE EXISTS ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT EXISTS(SELECT 1+1);
-EXISTS(SELECT 1+1)
-1
-SELECT EXISTS(SELECT 1+1 INTO @test);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @test)' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT * FROM t1 WHERE EXISTS ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a ENUM('rainbow'));
-INSERT INTO t1 VALUES (),(),(),(),();
-SELECT 1 FROM t1 GROUP BY (SELECT 1 FROM t1 ORDER BY AVG(LAST_INSERT_ID()));
-1
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a LONGBLOB);
-INSERT INTO t1 SET a = 'aaaa';
-INSERT INTO t1 SET a = 'aaaa';
-SELECT 1 FROM t1 GROUP BY
-(SELECT LAST_INSERT_ID() FROM t1 ORDER BY MIN(a) ASC LIMIT 1);
-1
-1
-DROP TABLE t1;
-#
-# Bug #49512 : subquery with aggregate function crash
-# subselect_single_select_engine::exec()
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES();
-# should not crash
-SELECT 1 FROM t1 WHERE a <> SOME
-(
-SELECT MAX((SELECT a FROM t1 LIMIT 1)) AS d
-FROM t1,t1 a
-);
-1
-DROP TABLE t1;
-#
-# Bug #45989 take 2 : memory leak after explain encounters an
-# error in the query
-#
-CREATE TABLE t1(a LONGTEXT);
-INSERT INTO t1 VALUES (repeat('a',@@global.max_allowed_packet));
-INSERT INTO t1 VALUES (repeat('b',@@global.max_allowed_packet));
-EXPLAIN EXTENDED SELECT DISTINCT 1 FROM t1,
-(SELECT DISTINCTROW a AS away FROM t1 GROUP BY a WITH ROLLUP) AS d1
-WHERE t1.a = d1.a;
-ERROR 42S22: Unknown column 'd1.a' in 'where clause'
-DROP TABLE t1;
-Set up test tables.
-CREATE TABLE t1 (
-t1_id INT UNSIGNED,
-PRIMARY KEY(t1_id)
-) Engine=MyISAM;
-INSERT INTO t1 (t1_id) VALUES (1), (2), (3), (4), (5);
-CREATE TABLE t2 SELECT * FROM t1;
-CREATE TABLE t3 (
-t3_id INT UNSIGNED AUTO_INCREMENT,
-t1_id INT UNSIGNED,
-amount DECIMAL(16,2),
-PRIMARY KEY(t3_id),
-KEY(t1_id)
-) Engine=MyISAM;
-INSERT INTO t3 (t1_id, t3_id, amount)
-VALUES (1, 1, 100.00), (2, 2, 200.00), (4, 4, 400.00);
-This is the 'inner query' running by itself.
-Produces correct results.
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-SELECT * FROM (the same inner query)
-Produces correct results.
-SELECT * FROM (
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-) AS t;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-Now make t2.t1_id part of a key.
-ALTER TABLE t2 ADD PRIMARY KEY(t1_id);
-Same inner query by itself.
-Still correct results.
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-SELECT * FROM (the same inner query), now with indexes on the LEFT JOIN
-SELECT * FROM (
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-) AS t;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-DROP TABLE t3;
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Bug #52711: Segfault when doing EXPLAIN SELECT with
-# union...order by (select... where...)
-#
-CREATE TABLE t1 (a VARCHAR(10), FULLTEXT KEY a (a));
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1),(2);
-# Should not crash
-EXPLAIN
-SELECT * FROM t2 UNION SELECT * FROM t2
-ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE));
-# Should not crash
-SELECT * FROM t2 UNION SELECT * FROM t2
-ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE));
-DROP TABLE t1,t2;
-#
-# Bug #58818: Incorrect result for IN/ANY subquery
-# with HAVING condition
-#
-CREATE TABLE t1(i INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t1s(i INT);
-INSERT INTO t1s VALUES (10), (20), (30);
-CREATE TABLE t2s(i INT);
-INSERT INTO t2s VALUES (100), (200), (300);
-SELECT * FROM t1
-WHERE t1.i NOT IN
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-);
-i
-1
-2
-3
-SELECT * FROM t1
-WHERE t1.I IN
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-) IS UNKNOWN;
-i
-SELECT * FROM t1
-WHERE NOT t1.I = ANY
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-);
-i
-1
-2
-3
-SELECT * FROM t1
-WHERE t1.i = ANY (
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-) IS UNKNOWN;
-i
-DROP TABLE t1,t1s,t2s;
-# LP BUG#675248 - select->prep_where references on freed memory
-CREATE TABLE t1 (a int, b int);
-insert into t1 values (1,1),(0,0);
-CREATE TABLE t2 (c int);
-insert into t2 values (1),(2);
-prepare stmt1 from "select sum(a),(select sum(c) from t2 where table1.b) as sub
-from t1 as table1 group by sub";
-execute stmt1;
-sum(a) sub
-0 NULL
-1 3
-deallocate prepare stmt1;
-prepare stmt1 from "select sum(a),(select sum(c) from t2 having table1.b) as sub
-from t1 as table1";
-execute stmt1;
-sum(a) sub
-1 3
-deallocate prepare stmt1;
-drop table t1,t2;
-#
-# Bug LP#693935/#58727: Assertion failure with
-# a single row subquery returning more than one row
-#
-create table t1 (a char(1) charset utf8);
-insert into t1 values ('a'), ('b');
-create table t2 (a binary(1));
-insert into t2 values ('x'), ('y');
-select * from t2 where a=(select a from t1) and a='x';
-ERROR 21000: Subquery returns more than 1 row
-drop table t1,t2;
-# End of 5.1 tests
-#
-# Bug #11765713 58705:
-# OPTIMIZER LET ENGINE DEPEND ON UNINITIALIZED VALUES
-# CREATED BY OPT_SUM_QUERY
-#
-CREATE TABLE t1(a INT NOT NULL, KEY (a));
-INSERT INTO t1 VALUES (0), (1);
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1)
-);
-ERROR 21000: Subquery returns more than 1 row
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1 where a is null)
-);
-foo
-DROP TABLE t1;
-#
-# Bug #57704: Cleanup code dies with void TABLE::set_keyread(bool):
-# Assertion `file' failed.
-#
-CREATE TABLE t1 (a INT);
-SELECT 1 FROM
-(SELECT ROW(
-(SELECT 1 FROM t1 RIGHT JOIN
-(SELECT 1 FROM t1, t1 t2) AS d ON 1),
-1) FROM t1) AS e;
-ERROR 21000: Operand should contain 1 column(s)
-DROP TABLE t1;
-#
-# Bug#13721076 CRASH WITH TIME TYPE/TIMESTAMP() AND WARNINGS IN SUBQUERY
-#
-CREATE TABLE t1(a TIME NOT NULL);
-INSERT INTO t1 VALUES ('00:00:32');
-SELECT 1 FROM t1 WHERE a >
-(SELECT timestamp(a) AS a FROM t1);
-1
-DROP TABLE t1;
-#
-# No BUG#, a case brought from 5.2's innodb_mysql_lock.test
-#
-create table t1 (i int not null primary key);
-insert into t1 values (1),(2),(3),(4),(5);
-create table t2 (j int not null primary key);
-insert into t2 values (1),(2),(3),(4),(5);
-create table t3 (k int not null primary key);
-insert into t3 values (1),(2),(3);
-create view v2 as select t2.j as j from t2 where t2.j in (select t1.i from t1);
-select * from t3 where k in (select j from v2);
-k
-1
-2
-3
-drop table t1,t2,t3;
-drop view v2;
-#
-# Bug#52068: Optimizer generates invalid semijoin materialization plan
-#
-drop table if exists ot1, ot2, it1, it2;
-CREATE TABLE ot1(a INTEGER);
-INSERT INTO ot1 VALUES(5), (8);
-CREATE TABLE it2(a INTEGER);
-INSERT INTO it2 VALUES(9), (5), (1), (8);
-CREATE TABLE it3(a INTEGER);
-INSERT INTO it3 VALUES(7), (1), (0), (5), (1), (4);
-CREATE TABLE ot4(a INTEGER);
-INSERT INTO ot4 VALUES(1), (3), (5), (7), (9), (7), (3), (1);
-SELECT * FROM ot1,ot4
-WHERE (ot1.a,ot4.a) IN (SELECT it2.a,it3.a
-FROM it2,it3);
-a a
-5 1
-8 1
-5 5
-8 5
-5 7
-8 7
-5 7
-8 7
-5 1
-8 1
-explain SELECT * FROM ot1,ot4
-WHERE (ot1.a,ot4.a) IN (SELECT it2.a,it3.a
-FROM it2,it3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot1 ALL NULL NULL NULL NULL 2
-1 PRIMARY ot4 ALL NULL NULL NULL NULL 8 Using join buffer (flat, BNL join)
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-2 MATERIALIZED it2 ALL NULL NULL NULL NULL 4
-2 MATERIALIZED it3 ALL NULL NULL NULL NULL 6 Using join buffer (flat, BNL join)
-DROP TABLE IF EXISTS ot1, ot4, it2, it3;
-#
-# Bug#729039: NULL keys used to evaluate subquery
-#
-CREATE TABLE t1 (a int) ;
-INSERT INTO t1 VALUES (NULL), (1), (NULL), (2);
-CREATE TABLE t2 (a int, INDEX idx(a)) ;
-INSERT INTO t2 VALUES (NULL), (1), (NULL);
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 USE INDEX () WHERE t2.a = t1.a);
-a
-1
-EXPLAIN
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 USE INDEX() WHERE t2.a = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 WHERE t2.a = t1.a);
-a
-1
-EXPLAIN
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 WHERE t2.a = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 index idx idx 5 NULL 3 Using index
-DROP TABLE t1,t2;
-#
-# BUG#752992: Wrong results for a subquery with 'semijoin=on'
-#
-CREATE TABLE t1 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t1 VALUES (11,0);
-INSERT INTO t1 VALUES (12,5);
-INSERT INTO t1 VALUES (15,0);
-CREATE TABLE t2 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t2 VALUES (11,1);
-INSERT INTO t2 VALUES (12,2);
-INSERT INTO t2 VALUES (15,4);
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=0;
-EXPLAIN SELECT * FROM t1 WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 3
-1 PRIMARY it eq_ref PRIMARY PRIMARY 4 test.t1.pk 1 Using index
-1 PRIMARY t2 index NULL PRIMARY 4 NULL 3 Using index; FirstMatch(it)
-SELECT * FROM t1 WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON 1);
-pk i
-11 0
-12 5
-15 0
-SET join_cache_level=@save_join_cache_level;
-DROP table t1,t2;
-#
-# Bug#751350: crash with pushed condition for outer references when
-# there should be none of such conditions
-#
-CREATE TABLE t1 (a int, b int) ;
-INSERT INTO t1 VALUES (0,0),(0,0);
-set @optimizer_switch_save=@@optimizer_switch;
-set @@optimizer_switch='semijoin=off,materialization=on,in_to_exists=on';
-EXPLAIN
-SELECT b FROM t1
-WHERE ('0') IN ( SELECT a FROM t1 GROUP BY a )
-GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT b FROM t1
-WHERE ('0') IN ( SELECT a FROM t1 GROUP BY a )
-GROUP BY b;
-b
-0
-set @@optimizer_switch=@optimizer_switch_save;
-DROP TABLE t1;
-#
-# Bug #11765713 58705:
-# OPTIMIZER LET ENGINE DEPEND ON UNINITIALIZED VALUES
-# CREATED BY OPT_SUM_QUERY
-#
-CREATE TABLE t1(a INT NOT NULL, KEY (a));
-INSERT INTO t1 VALUES (0), (1);
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1)
-);
-ERROR 21000: Subquery returns more than 1 row
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1 where a is null)
-);
-foo
-DROP TABLE t1;
-CREATE TABLE t1 (a int(11), b varchar(1));
-INSERT INTO t1 VALUES (2,NULL),(5,'d'),(7,'g');
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 );
-a
-5
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 GROUP BY b );
-a
-7
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 );
-a
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
-a
-delete from t1;
-INSERT INTO t1 VALUES (2,NULL),(5,'d'),(7,'g');
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 );
-a
-5
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 GROUP BY b );
-a
-7
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 );
-a
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
-a
-drop table t1;
-#
-# Fix of lp:780386 (NULL left part with empty ALL subquery).
-#
-CREATE TABLE t1 ( f11 int) ;
-INSERT IGNORE INTO t1 VALUES (0),(0);
-CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
-INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
-DROP TABLE IF EXISTS t3;
-Warnings:
-Note 1051 Unknown table 'test.t3'
-CREATE TABLE t3 ( f3 int) ;
-INSERT INTO t3 VALUES (0),(0);
-SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
-r
-NULL
-5
-NULL
-5
-DROP TABLE t1, t2, t3;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2(a1 int);
-INSERT INTO t2 VALUES (3);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2.0 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 'a' FROM t2);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t2);
-1
-1
-1
-SET SESSION sql_mode=@old_sql_mode;
-DROP TABLE t1, t2;
-create table t2(i int);
-insert into t2 values(0);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-CREATE VIEW v1 AS
-SELECT 'f' FROM t2 UNION SELECT 'x' FROM t2
-;
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key)
-);
-SELECT t1.pk
-FROM t1
-WHERE t1.col_varchar_key < ALL ( SELECT * FROM v1 )
-;
-pk
-SET SESSION sql_mode=@old_sql_mode;
-drop table t2, t1;
-drop view v1;
-#
-# BUG#50257: Missing info in REF column of the EXPLAIN
-# lines for subselects
-#
-CREATE TABLE t1 (a INT, b INT, INDEX (a));
-INSERT INTO t1 VALUES (3, 10), (2, 20), (7, 10), (5, 20);
-EXPLAIN SELECT * FROM (SELECT * FROM t1 WHERE a=7) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 5 const 1
-EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 SUBQUERY t1 ref a a 5 const 1 Using index
-DROP TABLE t1;
-#
-# BUG#12616253 - WRONG RESULT WITH EXISTS(SUBQUERY) (MISSING ROWS)
-# (duplicate of LP bug #888456)
-#
-CREATE TABLE t1 (f1 varchar(1));
-INSERT INTO t1 VALUES ('v'),('s');
-CREATE TABLE t2 (f1_key varchar(1), KEY (f1_key));
-INSERT INTO t2 VALUES ('j'),('v'),('c'),('m'),('d'),
-('d'),('y'),('t'),('d'),('s');
-EXPLAIN
-SELECT table1.f1, table2.f1_key FROM t1 AS table1, t2 AS table2
-WHERE EXISTS (SELECT DISTINCT f1_key FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY table1 ALL NULL NULL NULL NULL 2
-1 PRIMARY table2 index NULL f1_key 4 NULL 10 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 index f1_key f1_key 4 NULL 10 Using where; Using index
-SELECT table1.f1, table2.f1_key FROM t1 AS table1, t2 AS table2
-WHERE EXISTS (SELECT DISTINCT f1_key FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1);
-f1 f1_key
-s c
-s d
-s d
-s d
-s j
-s m
-s s
-s t
-s v
-s y
-v c
-v d
-v d
-v d
-v j
-v m
-v s
-v t
-v v
-v y
-DROP TABLE t1,t2;
-#
-# LP bug 919427: EXPLAIN for a query over a single-row table
-# with IN subquery in WHERE condition
-#
-CREATE TABLE ot (
-col_int_nokey int(11),
-col_varchar_nokey varchar(1)
-) ;
-INSERT INTO ot VALUES (1,'x');
-CREATE TABLE it1(
-col_int_key int(11),
-col_varchar_key varchar(1),
-KEY idx_cvk_cik (col_varchar_key,col_int_key)
-);
-INSERT INTO it1 VALUES (NULL,'x'), (NULL,'f');
-CREATE TABLE it2 (
-col_int_key int(11),
-col_varchar_key varchar(1),
-col_varchar_key2 varchar(1),
-KEY idx_cvk_cvk2_cik (col_varchar_key, col_varchar_key2, col_int_key),
-KEY idx_cvk_cik (col_varchar_key, col_int_key)
-);
-INSERT INTO it2 VALUES (NULL,'x','x'), (NULL,'f','f');
-EXPLAIN
-SELECT col_int_nokey FROM ot
-WHERE col_varchar_nokey IN
-(SELECT col_varchar_key FROM it1 WHERE col_int_key IS NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot system NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED it1 ref idx_cvk_cik idx_cvk_cik 9 const,const 1 Using where; Using index
-SELECT col_int_nokey FROM ot
-WHERE col_varchar_nokey IN
-(SELECT col_varchar_key FROM it1 WHERE col_int_key IS NULL);
-col_int_nokey
-1
-EXPLAIN
-SELECT col_int_nokey FROM ot
-WHERE (col_varchar_nokey, 'x') IN
-(SELECT col_varchar_key, col_varchar_key2 FROM it2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot system NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-2 MATERIALIZED it2 ref idx_cvk_cvk2_cik,idx_cvk_cik idx_cvk_cvk2_cik 8 const,const 1 Using where; Using index
-SELECT col_int_nokey FROM ot
-WHERE (col_varchar_nokey, 'x') IN
-(SELECT col_varchar_key, col_varchar_key2 FROM it2);
-col_int_nokey
-1
-DROP TABLE ot,it1,it2;
-#
-# MDEV-746
-# Bug#13651009 WRONG RESULT FROM DERIVED TABLE IF THE SUBQUERY
-# HAS AN EMPTY RESULT
-#
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_int_nokey int NOT NULL,
-col_int_key int NOT NULL,
-col_time_key time NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_time_key (col_time_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-pk int NOT NULL AUTO_INCREMENT,
-col_int_nokey int NOT NULL,
-col_int_key int NOT NULL,
-col_time_key time NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_time_key (col_time_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,4,4,'00:00:00','b','b');
-SET @var2:=4, @var3:=8;
-
-Testcase without inner subquery
-EXPLAIN SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE sq4_alias1 system NULL NULL NULL NULL 0 Const row not found
-SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3;
-@var3:=12 pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-SELECT @var3;
-@var3
-8
-EXPLAIN SELECT * FROM ( SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3 ) AS alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 0 Const row not found
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM ( SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3 ) AS alias3;
-@var3:=12 pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-SELECT @var3;
-@var3
-8
-
-Testcase with inner subquery; crashed WL#6095
-SET @var3=8;
-EXPLAIN SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY c_sq1_alias1 system PRIMARY NULL NULL NULL 1
-SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3));
-pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-EXPLAIN SELECT * FROM ( SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3)) ) AS alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-3 DEPENDENT SUBQUERY c_sq1_alias1 system PRIMARY NULL NULL NULL 1
-SELECT * FROM ( SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3)) ) AS alias3;
-pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-DROP TABLE t1,t2;
-# End of 5.2 tests
-#
-# BUG#779885: Crash in eliminate_item_equal with materialization=on in
-#
-CREATE TABLE t1 ( f1 int );
-INSERT INTO t1 VALUES (19), (20);
-CREATE TABLE t2 ( f10 varchar(32) );
-INSERT INTO t2 VALUES ('c'),('d');
-CREATE TABLE t3 ( f10 varchar(32) );
-INSERT INTO t3 VALUES ('a'),('b');
-SELECT *
-FROM t1
-WHERE
-( 't' ) IN (
-SELECT t3.f10
-FROM t3
-JOIN t2
-ON t2.f10 = t3.f10
-);
-f1
-DROP TABLE t1,t2,t3;
-#
-# BUG lp:813473: Wrong result with outer join + NOT IN subquery
-# This bug is a duplicate of Bug#11764086 whose test case is added below
-#
-CREATE TABLE t1 (c int) ;
-INSERT INTO t1 VALUES (5),(6);
-CREATE TABLE t2 (a int, b int) ;
-INSERT INTO t2 VALUES (20,9),(20,9);
-create table t3 (d int, e int);
-insert into t3 values (2, 9), (3,10);
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-EXPLAIN
-SELECT t2.b , t1.c
-FROM t2 LEFT JOIN t1 ON t1.c < 3
-WHERE (t2.b , t1.c) NOT IN (SELECT * from t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where
-SELECT t2.b , t1.c
-FROM t2 LEFT JOIN t1 ON t1.c < 3
-WHERE (t2.b, t1.c) NOT IN (SELECT * from t3);
-b c
-9 NULL
-9 NULL
-SET optimizer_switch=@save_optimizer_switch;
-drop table t1, t2, t3;
-#
-# BUG#50257: Missing info in REF column of the EXPLAIN
-# lines for subselects
-#
-CREATE TABLE t1 (a INT, b INT, INDEX (a));
-INSERT INTO t1 VALUES (3, 10), (2, 20), (7, 10), (5, 20);
-
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-EXPLAIN SELECT * FROM (SELECT * FROM t1 WHERE a=7) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED t1 ref a a 5 const 1
-set optimizer_switch=@tmp_optimizer_switch;
-
-EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 SUBQUERY t1 ref a a 5 const 1 Using index
-
-DROP TABLE t1;
-#
-# Bug#11764086: Null left operand to NOT IN in WHERE clause
-# behaves differently than real NULL
-#
-CREATE TABLE parent (id int);
-INSERT INTO parent VALUES (1), (2);
-CREATE TABLE child (parent_id int, other int);
-INSERT INTO child VALUES (1,NULL);
-# Offending query (c.parent_id is NULL for null-complemented rows only)
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id NOT IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-);
-id parent_id
-1 1
-2 NULL
-# Some syntactic variations with IS FALSE and IS NOT TRUE
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-) IS NOT TRUE;
-id parent_id
-1 1
-2 NULL
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-) IS FALSE;
-id parent_id
-1 1
-2 NULL
-DROP TABLE parent, child;
-# End of test for bug#11764086.
-#
-# Bug 11765699 - 58690: !TABLE || (!TABLE->READ_SET ||
-# BITMAP_IS_SET(TABLE->READ_SET, FIELD_INDEX
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (0), (1);
-CREATE TABLE t2(
-b TEXT,
-c INT,
-PRIMARY KEY (b(1))
-);
-INSERT INTO t2 VALUES ('a', 2), ('b', 3);
-SELECT 1 FROM t1 WHERE a =
-(SELECT 1 FROM t2 WHERE b =
-(SELECT 1 FROM t1 t11 WHERE c = 1 OR t1.a = 1 AND 1 = 2)
-ORDER BY b
-);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-SELECT 1 FROM t1 WHERE a =
-(SELECT 1 FROM t2 WHERE b =
-(SELECT 1 FROM t1 t11 WHERE c = 1 OR t1.a = 1 AND 1 = 2)
-GROUP BY b
-);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-DROP TABLE t1, t2;
-#
-# BUG#12616253 - WRONG RESULT WITH EXISTS(SUBQUERY) (MISSING ROWS)
-#
-CREATE TABLE t1 (f1 varchar(1));
-INSERT INTO t1 VALUES ('v'),('s');
-CREATE TABLE t2 (f1_key varchar(1), KEY (f1_key));
-INSERT INTO t2 VALUES ('j'),('v'),('c'),('m'),('d'),
-('d'),('y'),('t'),('d'),('s');
-SELECT table1.f1, table2.f1_key
-FROM t1 AS table1, t2 AS table2
-WHERE EXISTS
-(
-SELECT DISTINCT f1_key
-FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1 );
-f1 f1_key
-s c
-s d
-s d
-s d
-s j
-s m
-s s
-s t
-s v
-s y
-v c
-v d
-v d
-v d
-v j
-v m
-v s
-v t
-v v
-v y
-explain SELECT table1.f1, table2.f1_key
-FROM t1 AS table1, t2 AS table2
-WHERE EXISTS
-(
-SELECT DISTINCT f1_key
-FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY table1 ALL NULL NULL NULL NULL 2
-1 PRIMARY table2 index NULL f1_key 4 NULL 10 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 index f1_key f1_key 4 NULL 10 Using where; Using index
-DROP TABLE t1,t2;
-#
-# lp:826279: assertion failure with GROUP BY a result of subquery
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (0), (0);
-CREATE TABLE t2 (a int, b int, c int);
-INSERT INTO t2 VALUES (10,7,0), (0,7,0);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (10,7), (0,7);
-SELECT SUM(DISTINCT b),
-(SELECT t2.a FROM t1 JOIN t2 ON t2.c != 0
-WHERE t.a != 0 AND t2.a != 0)
-FROM (SELECT * FROM t3) AS t
-GROUP BY 2;
-SUM(DISTINCT b) (SELECT t2.a FROM t1 JOIN t2 ON t2.c != 0
-WHERE t.a != 0 AND t2.a != 0)
-7 NULL
-SELECT SUM(DISTINCT b),
-(SELECT t2.a FROM t1,t2 WHERE t.a != 0 or 1=2 LIMIT 1)
-FROM (SELECT * FROM t3) AS t
-GROUP BY 2;
-SUM(DISTINCT b) (SELECT t2.a FROM t1,t2 WHERE t.a != 0 or 1=2 LIMIT 1)
-7 NULL
-7 10
-DROP TABLE t1,t2,t3;
-#
-# Bug#12329653
-# EXPLAIN, UNION, PREPARED STATEMENT, CRASH, SQL_FULL_GROUP_BY
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-1
-1
-1
-PREPARE stmt FROM
-'SELECT 1 UNION ALL
-SELECT 1 FROM t1
-ORDER BY
-(SELECT 1 FROM t1 AS t1_0
- WHERE 1 < SOME (SELECT a1 FROM t1)
-)' ;
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-SET SESSION sql_mode=@old_sql_mode;
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# LP BUG#833777 Performance regression with deeply nested subqueries
-#
-create table t1 (a int not null, b char(10) not null);
-insert into t1 values (1, 'a');
-set @@optimizer_switch='in_to_exists=on,semijoin=off,materialization=off,subquery_cache=off';
-select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1)))))))))))))))))))))))))))));
-a
-1
-set @@optimizer_switch=@subselect_tmp;
-drop table t1;
-#
-# LP BUG#894397 Wrong result with in_to_exists, constant table , semijoin=OFF,materialization=OFF
-#
-CREATE TABLE t1 (a varchar(3));
-INSERT INTO t1 VALUES ('AAA'),('BBB');
-CREATE TABLE t2 (a varchar(3));
-INSERT INTO t2 VALUES ('CCC');
-set @@optimizer_switch='semijoin=off,materialization=off,in_to_exists=on,subquery_cache=off';
-SELECT * FROM t1 WHERE t1.a IN (SELECT t2.a FROM t2 WHERE t2.a < 'ZZZ');
-a
-set @@optimizer_switch=@subselect_tmp;
-drop table t1, t2;
-#
-# LP bug #859375: Assertion `0' failed in st_select_lex_unit::optimize
-# with view , UNION and prepared statement (rewriting fake_select
-# condition).
-#
-CREATE TABLE t1 ( f1 int NOT NULL, f4 varchar(1) NOT NULL) ;
-INSERT INTO t1 VALUES (6,'d'),(7,'y');
-CREATE TABLE t2 ( f1 int NOT NULL, f2 int NOT NULL) ;
-INSERT INTO t2 VALUES (10,7);
-CREATE VIEW v2 AS SELECT * FROM t2;
-PREPARE st1 FROM "
- SELECT *
- FROM t1
- LEFT JOIN v2 ON ( v2.f2 = t1.f1 )
- WHERE v2.f1 NOT IN (
- SELECT 1 UNION
- SELECT 247
- )
-";
-EXECUTE st1;
-f1 f4 f1 f2
-7 y 10 7
-deallocate prepare st1;
-DROP VIEW v2;
-DROP TABLE t1,t2;
-#
-# LP bug #887458 Crash in subselect_union_engine::no_rows with
-# double UNION and join_cache_level=3,8
-# (IN/ALL/ANY optimizations should not be applied to fake_select)
-CREATE TABLE t2 ( a int, b varchar(1)) ;
-INSERT IGNORE INTO t2 VALUES (8,'y'),(8,'y');
-CREATE TABLE t1 ( b varchar(1)) ;
-INSERT IGNORE INTO t1 VALUES (NULL),(NULL);
-set @save_join_cache_level=@@join_cache_level;
-SET SESSION join_cache_level=3;
-SELECT *
-FROM t1, t2
-WHERE t2.b IN (
-SELECT 'm' UNION
-SELECT 'm'
-) OR t1.b <> SOME (
-SELECT 'v' UNION
-SELECT 't'
-);
-b a b
-set @@join_cache_level= @save_join_cache_level;
-drop table t1,t2;
-#
-# LP bug #885162 Got error 124 from storage engine with UNION inside
-# subquery and join_cache_level=3..8
-# (IN/ALL/ANY optimizations should not be applied to fake_select)
-#
-CREATE TABLE t1 (
-f1 varchar(1) DEFAULT NULL
-);
-INSERT INTO t1 VALUES ('c');
-set @save_join_cache_level=@@join_cache_level;
-SET SESSION join_cache_level=8;
-SELECT * FROM t1 WHERE t1.f1 IN ( SELECT 'k' UNION SELECT 'e' );
-f1
-set @@join_cache_level= @save_join_cache_level;
-drop table t1;
-#
-# LP BUG#747278 incorrect values of the NULL (no rows) single
-# row subquery requested via element_index() interface
-#
-CREATE TABLE t1 (f1a int, f1b int) ;
-INSERT IGNORE INTO t1 VALUES (1,1),(2,2);
-CREATE TABLE t2 ( f2 int);
-INSERT IGNORE INTO t2 VALUES (3),(4);
-CREATE TABLE t3 (f3a int default 1, f3b int default 2);
-INSERT INTO t3 VALUES (1,1),(2,2);
-set @old_optimizer_switch = @@session.optimizer_switch;
-set @@optimizer_switch='materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off,subquery_cache=off,semijoin=off';
-SELECT (SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-SELECT (SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-set @@session.optimizer_switch=@old_optimizer_switch;
-SELECT (SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-SELECT (SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-select (null, null) = (null, null);
-(null, null) = (null, null)
-NULL
-SELECT (SELECT f3a, f3a FROM t3 where f3a > 3) = (0, 0);
-(SELECT f3a, f3a FROM t3 where f3a > 3) = (0, 0)
-NULL
-drop tables t1,t2,t3;
-#
-# LP BUG#825051 Wrong result with date/datetime and subquery with GROUP BY and in_to_exists
-#
-CREATE TABLE t1 (a date, KEY (a)) ;
-INSERT INTO t1 VALUES ('2009-01-01'),('2009-02-02');
-set @old_optimizer_switch = @@optimizer_switch;
-SET @@optimizer_switch='semijoin=off,materialization=off,in_to_exists=on,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 4 NULL 2 Using where; Using index
-2 DEPENDENT SUBQUERY t1 index_subquery a a 4 func 2 Using index
-SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-a
-2009-01-01
-2009-02-02
-SET @@optimizer_switch='semijoin=off,materialization=on,in_to_exists=off,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 4 NULL 2 Using where; Using index
-2 MATERIALIZED t1 index NULL a 4 NULL 2 Using index
-SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-a
-2009-01-01
-2009-02-02
-set @@optimizer_switch=@old_optimizer_switch;
-drop table t1;
-#
-# LP BUG#908269 incorrect condition in case of subqueries depending
-# on constant tables
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 ( b INT ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1);
-CREATE TABLE t3 ( c INT );
-INSERT INTO t3 VALUES (4),(5);
-SET optimizer_switch='subquery_cache=off';
-SELECT ( SELECT b FROM t2 WHERE b = a OR EXISTS ( SELECT c FROM t3 WHERE c = b ) ) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR EXISTS ( SELECT c FROM t3 WHERE c = b ) )
-1
-NULL
-SELECT ( SELECT b FROM t2 WHERE b = a OR b * 0) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR b * 0)
-1
-NULL
-SELECT ( SELECT b FROM t2 WHERE b = a OR rand() * 0) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR rand() * 0)
-1
-NULL
-drop table t1,t2,t3;
-set optimizer_switch=@subselect_tmp;
-#
-# LP BUG#905353 Wrong non-empty result with a constant table,
-# aggregate function in subquery, MyISAM or Aria
-#
-CREATE TABLE t1 ( a INT ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1);
-SELECT a FROM t1 WHERE ( SELECT MIN(a) = 100 );
-a
-drop table t1;
-#
-# LP BUG#985667 Wrong result with subquery in SELECT clause, and constant table in
-# main query and implicit grouping
-#
-CREATE TABLE t1 (f1 int) engine=MyISAM;
-INSERT INTO t1 VALUES (7),(8);
-CREATE TABLE t2 (f2 int, f3 varchar(1)) engine=MyISAM;
-INSERT INTO t2 VALUES (3,'f');
-EXPLAIN
-SELECT COUNT(f1), (SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(f1), (SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 NULL
-EXPLAIN
-SELECT COUNT(f1), exists(SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(f1), exists(SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 0
-EXPLAIN
-SELECT COUNT(f1), f2 > ALL (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT COUNT(f1), f2 > ALL (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 1
-EXPLAIN
-SELECT COUNT(f1), f2 IN (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT COUNT(f1), f2 IN (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 0
-drop table t1,t2;
-#
-# LP BUG#1002079 Server crashes in Item_singlerow_subselect::val_int with constant table,
-# HAVING, UNION in subquery
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (7),(0);
-CREATE TABLE t2 (b INT);
-EXPLAIN
-SELECT SUM(a) AS f1, a AS f2 FROM (t1, t2) HAVING f2 >= ALL (SELECT 4 UNION SELECT 5) AND f1 = 7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT SUM(a) AS f1, a AS f2 FROM (t1, t2) HAVING f2 >= ALL (SELECT 4 UNION SELECT 5) AND f1 = 7;
-f1 f2
-drop table t1,t2;
-#
-# LP BUG#1008686 Server crashes in subselect_union_engine::no_rows on SELECT with impossible
-# WHERE and UNION in HAVING
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(7);
-EXPLAIN
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 0 HAVING a NOT IN ( SELECT 2 UNION SELECT 5 ) OR min_a != 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 0 HAVING a NOT IN ( SELECT 2 UNION SELECT 5 ) OR min_a != 1;
-min_a a
-EXPLAIN
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 1=2 HAVING a NOT IN ( SELECT a from t1 UNION select a+1 from t1 ) OR min_a != 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT UNION t1 ALL NULL NULL NULL NULL 2 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 1=2 HAVING a NOT IN ( SELECT a from t1 UNION select a+1 from t1 ) OR min_a != 1;
-min_a a
-drop table t1;
-#
-# MDEV-367: Different results with and without subquery_cache on
-# a query with a constant NOT IN condition
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2),(3);
-set @mdev367_optimizer_switch = @@optimizer_switch;
-set optimizer_switch = 'subquery_cache=on';
-SELECT * FROM t1 WHERE ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) OR a > 100;
-a
-SELECT *, ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) FROM t1;
-a ( 3, 3 ) NOT IN ( SELECT NULL, NULL )
-1 NULL
-2 NULL
-3 NULL
-set optimizer_switch=@mdev367_optimizer_switch;
-set optimizer_switch = 'subquery_cache=off';
-SELECT * FROM t1 WHERE ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) OR a > 100;
-a
-SELECT *, ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) FROM t1;
-a ( 3, 3 ) NOT IN ( SELECT NULL, NULL )
-1 NULL
-2 NULL
-3 NULL
-set optimizer_switch=@mdev367_optimizer_switch;
-DROP TABLE t1;
-#
-# MDEV-521 single value subselect transformation problem
-#
-CREATE TABLE t1 (f1 char(2), PRIMARY KEY (f1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('u1'),('u2');
-SELECT a.* FROM t1 a WHERE ( SELECT EXISTS ( SELECT 1 FROM t1 b WHERE b.f1 = a.f1 ) );
-f1
-u1
-u2
-FLUSH TABLES;
-SELECT a.* FROM t1 a WHERE ( SELECT EXISTS ( SELECT 1 FROM t1 b WHERE b.f1 = a.f1 ) );
-f1
-u1
-u2
-DROP TABLE t1;
-# return optimizer switch changed in the beginning of this test
-set optimizer_switch=@subselect_tmp;
-#
-# lp:944706 Query with impossible or constant subquery in WHERE or HAVING is not
-# precomputed and thus not part of optimization
-#
-CREATE TABLE t1 ( a VARCHAR(16), KEY (a) );
-INSERT INTO t1 VALUES ('Abilene'),('Akron'),('Albany'),('Albuquerque'),('Alexandria'),('Allentown'),
-('Amarillo'),('Anaheim'),('Anchorage'),('Ann Arbor'),('Arden-Arcade');
-EXPLAIN
-SELECT MAX( alias2.a ) AS field
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR alias1.a = 'y'
-HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible HAVING
-2 SUBQUERY t1 index_subquery a a 19 const 1 Using index; Using where
-SELECT MAX( alias2.a ) AS field
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR alias1.a = 'y'
-HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
-field
-EXPLAIN
-SELECT MAX( alias2.a )
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 index a a 19 NULL 11 Using where; Using index
-1 PRIMARY alias2 ref a a 19 test.alias1.a 2 Using index
-1 PRIMARY alias3 index NULL a 19 NULL 11 Using index; Using join buffer (flat, BNL join)
-2 SUBQUERY t1 index_subquery a a 19 const 1 Using index; Using where
-SELECT MAX( alias2.a )
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
-MAX( alias2.a )
-Arden-Arcade
-drop table t1;
-#
-# MDEV-277 CHEAP SQ: Server crashes in st_join_table::get_examined_rows
-# with semijoin+materialization, IN and = subqueries
-#
-CREATE TABLE t1 (a1 INT);
-INSERT INTO t1 VALUES (4),(6);
-CREATE TABLE t2 (b1 INT);
-INSERT INTO t2 VALUES (1),(7);
-EXPLAIN
-SELECT * FROM t1
-WHERE a1 = (SELECT COUNT(*) FROM t1 WHERE a1 IN (SELECT a1 FROM t1, t2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-SELECT * FROM t1
-WHERE a1 = (SELECT COUNT(*) FROM t1 WHERE a1 IN (SELECT a1 FROM t1, t2));
-a1
-drop table t1, t2;
-#
-# MDEV-287 CHEAP SQ: A query with subquery in SELECT list, EXISTS,
-# inner joins takes hundreds times longer
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(7);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (4),(5);
-CREATE TABLE t3 (c INT);
-INSERT INTO t3 VALUES (8),(3);
-set @@expensive_subquery_limit= 0;
-EXPLAIN
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 2
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 PRIMARY alias3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-flush status;
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-(SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 58
-set @@expensive_subquery_limit= default;
-EXPLAIN
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 2
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 PRIMARY alias3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-flush status;
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-(SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 16
-drop table t1, t2, t3;
-#
-# MDEV-288 CHEAP SQ: Valgrind warnings "Memory lost" with IN and EXISTS nested subquery, materialization+semijoin
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0),(8);
-CREATE TABLE t2 (b INT PRIMARY KEY);
-INSERT INTO t2 VALUES (1),(2);
-EXPLAIN
-SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-3 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
-a
-drop table t1,t2;
-#
-# MDEV-410: EXPLAIN shows type=range, while SHOW EXPLAIN and userstat show full table scan is used
-#
-CREATE TABLE t1 (a VARCHAR(3) PRIMARY KEY) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('USA');
-CREATE TABLE t2 (b INT, c VARCHAR(52), KEY(b)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3813,'United States'),(3940,'Russia');
-CREATE TABLE t3 (d INT, KEY(d)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (12),(22),(9),(45);
-create table t4 like t3;
-insert into t4 select * from t3;
-# This should not show range access for table t2
-explain
-SELECT MIN(b) FROM ( SELECT * FROM t1, t2, t3 WHERE d = b ) AS alias1
-WHERE SLEEP(0.1) OR c < 'p' OR b = ( SELECT MIN(b) FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL b NULL NULL NULL 2 Using where
-1 PRIMARY t3 ref d d 5 test.t2.b 2 Using where; Using index
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-set @tmp_mdev410=@@global.userstat;
-set global userstat=on;
-flush table_statistics;
-flush index_statistics;
-SELECT MIN(b) FROM ( SELECT * FROM t1, t2, t3 WHERE d = b ) AS alias1
-WHERE SLEEP(0.1) OR c < 'p' OR b = ( SELECT MIN(b) FROM t2 );
-MIN(b)
-NULL
-# The following shows that t2 was indeed scanned with a full scan.
-show table_statistics;
-Table_schema Table_name Rows_read Rows_changed Rows_changed_x_#indexes
-test t1 2 0 0
-test t2 3 0 0
-show index_statistics;
-Table_schema Table_name Index_name Rows_read
-test t2 b 1
-set global userstat=@tmp_mdev410;
-DROP TABLE t1,t2,t3,t4;
-#
-# MDEV-430: Server crashes in select_describe on EXPLAIN with
-# materialization+semijoin, 2 nested subqueries, aggregate functions
-#
-CREATE TABLE t1 (a INT, KEY(a));
-INSERT INTO t1 VALUES (1),(8);
-CREATE TABLE t2 (b INT, KEY(b));
-INSERT INTO t2 VALUES (45),(17),(20);
-EXPLAIN SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t1, t2 WHERE b = a GROUP BY a HAVING a <> 1 ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 range a a 5 NULL 2 Using where; Using index
-2 SUBQUERY t2 ref b b 5 test.t1.a 2 Using index
-DROP TABLE t1,t2;
-#
-# MDEV-435: Expensive subqueries may be evaluated during optimization in merge_key_fields
-#
-CREATE TABLE t1 (a INT, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (8),(0);
-CREATE TABLE t2 (b INT, c VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (4,'j'),(6,'v');
-CREATE TABLE t3 (d VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('b'),('c');
-EXPLAIN
-SELECT * FROM t1
-WHERE a = (SELECT MAX(b) FROM t2 WHERE c IN (SELECT MAX(d) FROM t3)) OR a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index a a 5 NULL 2 Using where; Using index
-2 SUBQUERY <subquery3> ALL distinct_key NULL NULL NULL 1
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1
-WHERE a = (SELECT MAX(b) FROM t2 WHERE c IN (SELECT MAX(d) FROM t3)) OR a = 10;
-a
-drop table t1, t2, t3;
-#
-# MDEV-405: Server crashes in test_if_skip_sort_order on EXPLAIN with GROUP BY and HAVING in EXISTS subquery
-#
-CREATE TABLE t1 (a INT, KEY(a));
-INSERT INTO t1 VALUES (1),(8);
-CREATE TABLE t2 (b INT, KEY(b));
-INSERT INTO t2 VALUES (45),(17),(20);
-EXPLAIN SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t1, t2 WHERE b = a GROUP BY a HAVING a <> 1 ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 range a a 5 NULL 2 Using where; Using index
-2 SUBQUERY t2 ref b b 5 test.t1.a 2 Using index
-DROP TABLE t1,t2;
-#
-# MDEV-5991: crash in Item_field::used_tables
-#
-create table t1 (c int);
-select exists(select 1 from t1 group by `c` in (select `c` from t1));
-exists(select 1 from t1 group by `c` in (select `c` from t1))
-0
-drop table t1;
-#
-# MDEV-7565: Server crash with Signal 6 (part 2)
-#
-Select
-(Select Sum(`TestCase`.Revenue) From mysql.slow_log E
-Where TestCase.TemplateID not in (Select 1 from mysql.slow_log where 2=2)
-) As `ControlRev`
-From
-(Select 3 as Revenue, 4 as TemplateID) As `TestCase`
-Group By TestCase.Revenue, TestCase.TemplateID;
-ControlRev
-NULL
-#
-# MDEV-7445:Server crash with Signal 6
-#
-CREATE PROCEDURE procedure2()
-BEGIN
-Select
-(Select Sum(`TestCase`.Revenue) From mysql.slow_log E
-Where TestCase.TemplateID not in (Select 1 from mysql.slow_log where 2=2)
-) As `ControlRev`
- From
-(Select 3 as Revenue, 4 as TemplateID) As `TestCase`
-Group By TestCase.Revenue, TestCase.TemplateID;
-END |
-call procedure2();
-ControlRev
-NULL
-call procedure2();
-ControlRev
-NULL
-drop procedure procedure2;
-SELECT
-(SELECT user FROM mysql.user
-WHERE h.host in (SELECT host FROM mysql.user)
-) AS sq
-FROM mysql.host h GROUP BY h.host;
-sq
-#
-# MDEV-7846:Server crashes in Item_subselect::fix
-#_fields or fails with Thread stack overrun
-#
-CREATE TABLE t1 (column1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3),(9);
-CREATE TABLE t2 (column2 INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1),(4);
-CREATE TABLE t3 (column3 INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (6),(8);
-CREATE TABLE t4 (column4 INT) ENGINE=MyISAM;
-INSERT INTO t4 VALUES (2),(5);
-PREPARE stmt FROM "
-SELECT (
- SELECT MAX( table1.column1 ) AS field1
- FROM t1 AS table1
- WHERE table3.column3 IN ( SELECT table2.column2 AS field2 FROM t2 AS table2 )
-) AS sq
-FROM t3 AS table3, t4 AS table4 GROUP BY sq
-";
-EXECUTE stmt;
-sq
-NULL
-EXECUTE stmt;
-sq
-NULL
-deallocate prepare stmt;
-drop table t1,t2,t3,t4;
-#
-# MDEV-7122
-# Assertion `0' failed in subselect_hash_sj_engine::init
-#
-SET SESSION big_tables=1;
-CREATE TABLE t1(a char(255) DEFAULT '', KEY(a(10))) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES(0),(0),(0);
-SELECT * FROM t1 WHERE a IN(SELECT MIN(a) FROM t1);
-a
-0
-0
-0
-DROP TABLE t1;
-SET SESSION big_tables=0;
-#
-# MDEV-10776: Server crash on query
-#
-create table t1 (field1 int);
-insert into t1 values (1);
-select round((select 1 from t1 limit 1))
-from t1
-group by round((select 1 from t1 limit 1));
-round((select 1 from t1 limit 1))
-1
-drop table t1;
-#
-# MDEV-7930: Assertion `table_share->tmp_table != NO_TMP_TABLE ||
-# m_lock_type != 2' failed in handler::ha_index_read_map
-#
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 INT, KEY(f2));
-INSERT INTO t2 VALUES (3);
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2;
-SELECT ( SELECT MIN(t2.f2) FROM t1 ) AS sq FROM t2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT ( SELECT MIN(v2.f2) FROM t1 ) AS sq FROM v2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT * FROM v2 where ( SELECT MIN(v2.f2) FROM t1 ) > 0;
-f2
-3
-SELECT count(*) FROM v2 group by ( SELECT MIN(v2.f2) FROM t1 );
-count(*)
-1
-delete from t1;
-SELECT ( SELECT MIN(t2.f2) FROM t1 ) AS sq FROM t2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT ( SELECT MIN(v2.f2) FROM t1 ) AS sq FROM v2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-drop view v2;
-drop table t1,t2;
-#
-# MDEV-10386 Assertion `fixed == 1' failed in virtual String* Item_func_conv_charset::val_str(String*)
-#
-CREATE TABLE t1 (f1 CHAR(3) CHARACTER SET utf8 NULL, f2 CHAR(3) CHARACTER SET latin1 NULL);
-INSERT INTO t1 VALUES ('foo','bar');
-SELECT * FROM t1 WHERE f2 >= SOME ( SELECT f1 FROM t1 );
-f1 f2
-SELECT * FROM t1 WHERE f2 <= SOME ( SELECT f1 FROM t1 );
-f1 f2
-foo bar
-DROP TABLE t1;
-#
-# MDEV-10146: Wrong result (or questionable result and behavior)
-# with aggregate function in uncorrelated SELECT subquery
-#
-CREATE TABLE t1 (f1 INT);
-CREATE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 int);
-INSERT INTO t2 VALUES (3);
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM t1;
-( SELECT MAX(f1) FROM t2 )
-2
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM v1;
-( SELECT MAX(f1) FROM t2 )
-2
-INSERT INTO t2 VALUES (4);
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM v1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-drop view v1;
-drop table t1,t2;
-CREATE TABLE t1 (f1 INT, KEY(f1)) ENGINE=MyISAM;
-INSERT t1 VALUES (4),(8);
-CREATE TABLE t2 (f2 INT, KEY(f2)) ENGINE=MyISAM;
-INSERT t2 VALUES (6);
-SELECT (SELECT MAX(sq.f2) FROM t1) FROM (SELECT * FROM t2) AS sq WHERE f2 = 2;
-(SELECT MAX(sq.f2) FROM t1)
-NULL
-#
-# Disable this query till MDEV-13399 is resolved
-#
-# INSERT t2 VALUES (9);
-# --error ER_SUBQUERY_NO_1_ROW
-# SELECT (SELECT MAX(sq.f2) FROM t1) FROM (SELECT * FROM t2) AS sq WHERE f2 = 2;
-#
-drop table t1, t2;
-#
-# MDEV-13933: Wrong results in COUNT() query with EXISTS and exists_to_in
-# (5.5 test)
-#
-SET @optimiser_switch_save= @@optimizer_switch;
-CREATE TABLE t1 (a INT NOT NULL);
-INSERT INTO t1 VALUES (1),(1),(1),(5),(5);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (5),(1);
-CREATE TABLE t3 (c INT, KEY(c));
-INSERT INTO t3 VALUES (5),(5);
-SET optimizer_switch='semijoin=on';
-select t1.a from t1 where t1.a in (select `test`.`t2`.`b` from `test`.`t2`)
-and t1.a in (select `test`.`t3`.`c` from `test`.`t3`);
-a
-5
-5
-SET optimizer_switch='semijoin=off';
-select t1.a from t1 where t1.a in (select `test`.`t2`.`b` from `test`.`t2`)
-and t1.a in (select `test`.`t3`.`c` from `test`.`t3`);
-a
-5
-5
-SET @@optimizer_switch= @optimiser_switch_save;
-DROP TABLE t1, t2, t3;
-End of 5.5 tests
-# End of 10.0 tests
-#
-# MDEV-9487: Server crashes in Time_and_counter_tracker::incr_loops
-# with UNION in ALL subquery
-#
-SET NAMES utf8;
-CREATE TABLE t1 (f VARCHAR(8)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo');
-SELECT f FROM t1 WHERE f > ALL ( SELECT 'bar' UNION SELECT 'baz' );
-f
-foo
-SELECT f FROM t1 WHERE f > ALL ( SELECT 'bar');
-f
-foo
-drop table t1;
-SET NAMES default;
-#
-# MDEV-10045: Server crashes in Time_and_counter_tracker::incr_loops
-#
-SET NAMES utf8;
-CREATE TABLE t1 (f1 VARCHAR(3), f2 INT UNSIGNED) ENGINE=MyISAM;
-CREATE TABLE t2 (f3 INT) ENGINE=MyISAM;
-SELECT * FROM t1, t2 WHERE f3 = f2 AND f1 > ANY ( SELECT 'foo' UNION SELECT 'bar' );
-f1 f2 f3
-SELECT * FROM t1, t2 WHERE f3 = f2 AND f1 > ANY ( SELECT 'foo');
-f1 f2 f3
-DROP TABLE t1, t2;
-SET NAMES default;
-# End of 10.1 tests
-#
-# MDEV-12564: IN TO EXISTS transformation for rows after
-# conversion an outer join to inner join
-#
-CREATE TABLE t (
-pk int PRIMARY KEY, i int NOT NULL, c varchar(8), KEY(c)
-) ENGINE=MyISAM;
-INSERT INTO t VALUES (1,10,'foo'),(2,20,'bar');
-SELECT * FROM t t1 RIGHT JOIN t t2 ON (t2.pk = t1.pk)
-WHERE (t2.i, t2.pk) NOT IN ( SELECT t3.i, t3.i FROM t t3, t t4 ) AND t1.c = 'foo';
-pk i c pk i c
-1 10 foo 1 10 foo
-DROP TABLE t;
-# End of 10.2 tests
-set optimizer_switch=default;
-select @@optimizer_switch like '%subquery_cache=on%';
-@@optimizer_switch like '%subquery_cache=on%'
-1
-set @join_cache_level_for_subselect_test=NULL;
diff --git a/mysql-test/r/subselect_no_semijoin.result b/mysql-test/r/subselect_no_semijoin.result
deleted file mode 100644
index e068b28b017..00000000000
--- a/mysql-test/r/subselect_no_semijoin.result
+++ /dev/null
@@ -1,7278 +0,0 @@
-set @optimizer_switch_for_subselect_test='semijoin=off,mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set join_cache_level=1;
-set @join_cache_level_for_subselect_test=@@join_cache_level;
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t11,t12;
-drop view if exists v2;
-call mtr.add_suppression("Sort aborted.*");
-set @subselect_tmp=@@optimizer_switch;
-set @@optimizer_switch=ifnull(@optimizer_switch_for_subselect_test,
-"semijoin=on,firstmatch=on,loosescan=on,semijoin_with_cache=on,partial_match_rowid_merge=off,partial_match_table_scan=off");
-set join_cache_level=@join_cache_level_for_subselect_test;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-select (select 2);
-(select 2)
-2
-explain extended select (select 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select 2 AS `(select 2)`
-SELECT (SELECT 1) UNION SELECT (SELECT 2);
-(SELECT 1)
-1
-2
-explain extended SELECT (SELECT 1) UNION SELECT (SELECT 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1249 Select 4 was reduced during optimization
-Note 1003 /* select#1 */ select 1 AS `(SELECT 1)` union /* select#3 */ select 2 AS `(SELECT 2)`
-SELECT (SELECT (SELECT 0 UNION SELECT 0));
-(SELECT (SELECT 0 UNION SELECT 0))
-0
-explain extended SELECT (SELECT (SELECT 0 UNION SELECT 0));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union3,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 /* select#1 */ select (/* select#3 */ select 0 union /* select#4 */ select 0) AS `(SELECT (SELECT 0 UNION SELECT 0))`
-SELECT (SELECT 1 FROM (SELECT 1) as b HAVING a=1) as a;
-ERROR 42S22: Reference 'a' not supported (forward reference in item list)
-SELECT (SELECT 1 FROM (SELECT 1) as b HAVING b=1) as a,(SELECT 1 FROM (SELECT 1) as c HAVING a=1) as b;
-ERROR 42S22: Reference 'b' not supported (forward reference in item list)
-SELECT (SELECT 1),MAX(1) FROM (SELECT 1) as a;
-(SELECT 1) MAX(1)
-1 1
-SELECT (SELECT a) as a;
-ERROR 42S22: Reference 'a' not supported (forward reference in item list)
-EXPLAIN EXTENDED SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 1 100.00
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1276 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
-Note 1276 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 1 AS `1` from dual having (/* select#3 */ select 1) = 1
-SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
-1
-1
-SELECT (SELECT 1), a;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT 1 as a FROM (SELECT 1) as b HAVING (SELECT a)=1;
-a
-1
-SELECT 1 FROM (SELECT (SELECT a) b) c;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT * FROM (SELECT 1 as id) b WHERE id IN (SELECT * FROM (SELECT 1 as id) c ORDER BY id);
-id
-1
-SELECT * FROM (SELECT 1) a WHERE 1 IN (SELECT 1,1);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT 1 IN (SELECT 1);
-1 IN (SELECT 1)
-1
-SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
-1
-1
-select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE(1))' at line 1
-SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1))' at line 1
-SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;
-ERROR 42S22: Unknown column 'a' in 'field list'
-SELECT (SELECT 1,2,3) = ROW(1,2,3);
-(SELECT 1,2,3) = ROW(1,2,3)
-1
-SELECT (SELECT 1,2,3) = ROW(1,2,1);
-(SELECT 1,2,3) = ROW(1,2,1)
-0
-SELECT (SELECT 1,2,3) < ROW(1,2,1);
-(SELECT 1,2,3) < ROW(1,2,1)
-0
-SELECT (SELECT 1,2,3) > ROW(1,2,1);
-(SELECT 1,2,3) > ROW(1,2,1)
-1
-SELECT (SELECT 1,2,3) = ROW(1,2,NULL);
-(SELECT 1,2,3) = ROW(1,2,NULL)
-NULL
-SELECT ROW(1,2,3) = (SELECT 1,2,3);
-ROW(1,2,3) = (SELECT 1,2,3)
-1
-SELECT ROW(1,2,3) = (SELECT 1,2,1);
-ROW(1,2,3) = (SELECT 1,2,1)
-0
-SELECT ROW(1,2,3) < (SELECT 1,2,1);
-ROW(1,2,3) < (SELECT 1,2,1)
-0
-SELECT ROW(1,2,3) > (SELECT 1,2,1);
-ROW(1,2,3) > (SELECT 1,2,1)
-1
-SELECT ROW(1,2,3) = (SELECT 1,2,NULL);
-ROW(1,2,3) = (SELECT 1,2,NULL)
-NULL
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,2,'a');
-(SELECT 1.5,2,'a') = ROW(1.5,2,'a')
-1
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,2,'b');
-(SELECT 1.5,2,'a') = ROW(1.5,2,'b')
-0
-SELECT (SELECT 1.5,2,'a') = ROW('1.5b',2,'b');
-(SELECT 1.5,2,'a') = ROW('1.5b',2,'b')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1.5b'
-SELECT (SELECT 'b',2,'a') = ROW(1.5,2,'a');
-(SELECT 'b',2,'a') = ROW(1.5,2,'a')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-SELECT (SELECT 1.5,2,'a') = ROW(1.5,'2','a');
-(SELECT 1.5,2,'a') = ROW(1.5,'2','a')
-1
-SELECT (SELECT 1.5,'c','a') = ROW(1.5,2,'a');
-(SELECT 1.5,'c','a') = ROW(1.5,2,'a')
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-SELECT (SELECT * FROM (SELECT 'test' a,'test' b) a);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT 1 as a,(SELECT a+a) b,(SELECT b);
-a b (SELECT b)
-1 2 2
-create table t1 (a int);
-create table t2 (a int, b int);
-create table t3 (a int);
-create table t4 (a int not null, b int not null);
-insert into t1 values (2);
-insert into t2 values (1,7),(2,7);
-insert into t4 values (4,8),(3,8),(5,9);
-select (select a from t1 where t1.a = a1) as a2, (select b from t2 where t2.b=a2) as a1;
-ERROR 42S22: Reference 'a1' not supported (forward reference in item list)
-select (select a from t1 where t1.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a) a
-NULL 1
-2 2
-select (select a from t1 where t1.a=t2.b), a from t2;
-(select a from t1 where t1.a=t2.b) a
-NULL 1
-NULL 2
-select (select a from t1), a, (select 1 union select 2 limit 1) from t2;
-(select a from t1) a (select 1 union select 2 limit 1)
-2 1 1
-2 2 1
-select (select a from t3), a from t2;
-(select a from t3) a
-NULL 1
-NULL 2
-select * from t2 where t2.a=(select a from t1);
-a b
-2 7
-insert into t3 values (6),(7),(3);
-select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1);
-a b
-1 7
-2 7
-(select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 order by a limit 2) limit 3;
-a b
-1 7
-2 7
-3 8
-(select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 where t4.b=(select max(t2.a)*4 from t2) order by a);
-a b
-1 7
-2 7
-4 8
-3 8
-explain extended (select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)) union (select * from t4 where t4.b=(select max(t2.a)*4 from t2) order by a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-3 UNION t4 ALL NULL NULL NULL NULL 3 100.00 Using where
-4 SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00
-NULL UNION RESULT <union1,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 (/* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`b` = (/* select#2 */ select `test`.`t3`.`a` from `test`.`t3` order by 1 desc limit 1)) union (/* select#3 */ select `test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b` from `test`.`t4` where `test`.`t4`.`b` = (/* select#4 */ select max(`test`.`t2`.`a`) * 4 from `test`.`t2`))
-select (select a from t3 where a<t2.a*4 order by 1 desc limit 1), a from t2;
-(select a from t3 where a<t2.a*4 order by 1 desc limit 1) a
-3 1
-7 2
-select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
-(select * from t2 where a>1) as tt;
-(select t3.a from t3 where a<8 order by 1 desc limit 1) a
-7 2
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-explain extended select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
-(select * from t2 where a>1) as tt;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select `test`.`t3`.`a` from `test`.`t3` where `test`.`t3`.`a` < 8 order by 1 desc limit 1) AS `(select t3.a from t3 where a<8 order by 1 desc limit 1)`,`tt`.`a` AS `a` from (/* select#3 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where `test`.`t2`.`a` > 1) `tt`
-set optimizer_switch=@tmp_optimizer_switch;
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3) order by 1 desc limit 1);
-a
-2
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3 where t3.a > t1.a) order by 1 desc limit 1);
-a
-2
-select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3 where t3.a < t1.a) order by 1 desc limit 1);
-a
-select b,(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2) from t4;
-b (select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2)
-8 7.5000
-8 4.5000
-9 7.5000
-explain extended select b,(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2) from t4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t4 ALL NULL NULL NULL NULL 3 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t4.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t4`.`b` AS `b`,<expr_cache><`test`.`t4`.`a`>((/* select#2 */ select avg(`test`.`t2`.`a` + (/* select#3 */ select min(`test`.`t3`.`a`) from `test`.`t3` where `test`.`t3`.`a` >= `test`.`t4`.`a`)) from `test`.`t2`)) AS `(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2)` from `test`.`t4`
-select * from t3 where exists (select * from t2 where t2.b=t3.a);
-a
-7
-select * from t3 where not exists (select * from t2 where t2.b=t3.a);
-a
-6
-3
-select * from t3 where a in (select b from t2);
-a
-7
-select * from t3 where a not in (select b from t2);
-a
-6
-3
-select * from t3 where a = some (select b from t2);
-a
-7
-select * from t3 where a <> any (select b from t2);
-a
-6
-3
-select * from t3 where a = all (select b from t2);
-a
-7
-select * from t3 where a <> all (select b from t2);
-a
-6
-3
-insert into t2 values (100, 5);
-select * from t3 where a < any (select b from t2);
-a
-6
-3
-select * from t3 where a < all (select b from t2);
-a
-3
-select * from t3 where a >= any (select b from t2);
-a
-6
-7
-explain extended select * from t3 where a >= any (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(`test`.`t2`.`b`) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= all (select b from t2);
-a
-7
-delete from t2 where a=100;
-select * from t3 where a in (select a,b from t2);
-ERROR 21000: Operand should contain 1 column(s)
-select * from t3 where a in (select * from t2);
-ERROR 21000: Operand should contain 1 column(s)
-insert into t4 values (12,7),(1,7),(10,9),(9,6),(7,6),(3,9),(1,10);
-select b,max(a) as ma from t4 group by b having b < (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-insert into t2 values (2,10);
-select b,max(a) as ma from t4 group by b having ma < (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-10 1
-delete from t2 where a=2 and b=10;
-select b,max(a) as ma from t4 group by b having b >= (select max(t2.a) from t2 where t2.b=t4.b);
-b ma
-7 12
-create table t5 (a int);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-insert into t5 values (5);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-insert into t5 values (2);
-select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a) a
-NULL 1
-2 2
-explain extended select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-3 DEPENDENT UNION t5 ALL NULL NULL NULL NULL 2 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1276 Field or reference 'test.t2.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t2.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select <expr_cache><`test`.`t2`.`a`>((/* select#2 */ select 2 from dual where 2 = `test`.`t2`.`a` union /* select#3 */ select `test`.`t5`.`a` from `test`.`t5` where `test`.`t5`.`a` = `test`.`t2`.`a`)) AS `(select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a)`,`test`.`t2`.`a` AS `a` from `test`.`t2`
-select (select a from t1 where t1.a=t2.a union all select a from t5 where t5.a=t2.a), a from t2;
-ERROR 21000: Subquery returns more than 1 row
-create table t6 (patient_uq int, clinic_uq int, index i1 (clinic_uq));
-create table t7( uq int primary key, name char(25));
-insert into t7 values(1,"Oblastnaia bolnitsa"),(2,"Bolnitsa Krasnogo Kresta");
-insert into t6 values (1,1),(1,2),(2,2),(1,3);
-select * from t6 where exists (select * from t7 where uq = clinic_uq);
-patient_uq clinic_uq
-1 1
-1 2
-2 2
-explain extended select * from t6 where exists (select * from t7 where uq = clinic_uq);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t6 ALL NULL NULL NULL NULL 4 100.00 Using where
-2 MATERIALIZED t7 index PRIMARY PRIMARY 4 NULL 2 100.00 Using index
-Warnings:
-Note 1276 Field or reference 'test.t6.clinic_uq' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t6`.`patient_uq` AS `patient_uq`,`test`.`t6`.`clinic_uq` AS `clinic_uq` from `test`.`t6` where <expr_cache><`test`.`t6`.`clinic_uq`>(<in_optimizer>(`test`.`t6`.`clinic_uq`,`test`.`t6`.`clinic_uq` in ( <materialize> (/* select#2 */ select `test`.`t7`.`uq` from `test`.`t7` where 1 ), <primary_index_lookup>(`test`.`t6`.`clinic_uq` in <temporary table> on distinct_key where `test`.`t6`.`clinic_uq` = `<subquery2>`.`uq`))))
-select * from t1 where a= (select a from t2,t4 where t2.b=t4.b);
-ERROR 23000: Column 'a' in field list is ambiguous
-drop table t1,t2,t3;
-CREATE TABLE t3 (a varchar(20),b char(1) NOT NULL default '0');
-INSERT INTO t3 VALUES ('W','a'),('A','c'),('J','b');
-CREATE TABLE t2 (a varchar(20),b int NOT NULL default '0');
-INSERT INTO t2 VALUES ('W','1'),('A','3'),('J','2');
-CREATE TABLE t1 (a varchar(20),b date NOT NULL default '0000-00-00');
-INSERT INTO t1 VALUES ('W','1732-02-22'),('A','1735-10-30'),('J','1743-04-13');
-SELECT * FROM t1 WHERE b = (SELECT MIN(b) FROM t1);
-a b
-W 1732-02-22
-SELECT * FROM t2 WHERE b = (SELECT MIN(b) FROM t2);
-a b
-W 1
-SELECT * FROM t3 WHERE b = (SELECT MIN(b) FROM t3);
-a b
-W a
-CREATE TABLE `t8` (
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-`email` varchar(60) character set latin1 NOT NULL default '',
-PRIMARY KEY (`pseudo`),
-UNIQUE KEY `email` (`email`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t8 (pseudo,email) VALUES ('joce','test');
-INSERT INTO t8 (pseudo,email) VALUES ('joce1','test1');
-INSERT INTO t8 (pseudo,email) VALUES ('2joce1','2test1');
-EXPLAIN EXTENDED SELECT pseudo,(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce')) FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-4 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-2 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00
-3 SUBQUERY t8 const PRIMARY PRIMARY 37 const 1 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select 'test' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo,email FROM
-t8 WHERE pseudo='joce');
-ERROR HY000: Illegal parameter data types varchar and row for operation '='
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT * FROM t8 WHERE
-pseudo='joce');
-ERROR HY000: Illegal parameter data types varchar and row for operation '='
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce');
-pseudo
-joce
-SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo LIKE '%joce%');
-ERROR 21000: Subquery returns more than 1 row
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8;
-CREATE TABLE `t1` (
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (topic,date,pseudo) VALUES
-('43506','2002-10-02','joce'),('40143','2002-08-03','joce');
-EXPLAIN EXTENDED SELECT DISTINCT date FROM t1 WHERE date='2002-08-03';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index NULL PRIMARY 43 NULL 2 100.00 Using where; Using index
-Warnings:
-Note 1003 select distinct `test`.`t1`.`date` AS `date` from `test`.`t1` where `test`.`t1`.`date` = DATE'2002-08-03'
-EXPLAIN EXTENDED SELECT (SELECT DISTINCT date FROM t1 WHERE date='2002-08-03');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t1 index NULL PRIMARY 43 NULL 2 100.00 Using where; Using index
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select distinct `test`.`t1`.`date` from `test`.`t1` where `test`.`t1`.`date` = DATE'2002-08-03') AS `(SELECT DISTINCT date FROM t1 WHERE date='2002-08-03')`
-SELECT DISTINCT date FROM t1 WHERE date='2002-08-03';
-date
-2002-08-03
-SELECT (SELECT DISTINCT date FROM t1 WHERE date='2002-08-03');
-(SELECT DISTINCT date FROM t1 WHERE date='2002-08-03')
-2002-08-03
-SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION SELECT 1) UNION ALL SELECT 1;
-1
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION ALL SELECT 1) UNION SELECT 1;
-ERROR 21000: Subquery returns more than 1 row
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1=(SELECT 1 UNION SELECT 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL topic 3 NULL 2 100.00 Using index
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-drop table t1;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM ROW_FORMAT=FIXED;
-INSERT INTO t1 (numeropost,maxnumrep) VALUES (40143,1),(43506,2);
-CREATE TABLE `t2` (
-`mot` varchar(30) NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`)
-) ENGINE=MyISAM ROW_FORMAT=DYNAMIC;
-INSERT INTO t2 (mot,topic,date,pseudo) VALUES ('joce','40143','2002-10-22','joce'), ('joce','43506','2002-10-22','joce');
-select numeropost as a FROM t1 GROUP BY (SELECT 1 FROM t1 HAVING a=1);
-a
-40143
-SELECT numeropost,maxnumrep FROM t1 WHERE exists (SELECT 1 FROM t2 WHERE (mot='joce') AND date >= '2002-10-21' AND t1.numeropost = t2.topic) ORDER BY maxnumrep DESC LIMIT 0, 20;
-numeropost maxnumrep
-43506 2
-40143 1
-SELECT (SELECT 1) as a FROM (SELECT 1 FROM t1 HAVING a=1) b;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT 1 IN (SELECT 1 FROM t2 HAVING a);
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-SELECT * from t2 where topic IN (SELECT SUM(topic) FROM t1);
-mot topic date pseudo
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-SELECT * from t2 where topic = any (SELECT SUM(topic) FROM t1);
-mot topic date pseudo
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic);
-mot topic date pseudo
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT *, topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100) from t2;
-mot topic date pseudo topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 4100)
-joce 40143 2002-10-22 joce 1
-joce 43506 2002-10-22 joce 1
-SELECT * from t2 where topic = all (SELECT SUM(topic) FROM t2);
-mot topic date pseudo
-SELECT * from t2 where topic <> any (SELECT SUM(topic) FROM t2);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-joce 43506 2002-10-22 joce
-SELECT * from t2 where topic IN (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT * from t2 where topic = any (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT * from t2 where topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000);
-mot topic date pseudo
-joce 40143 2002-10-22 joce
-SELECT *, topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000) from t2;
-mot topic date pseudo topic = all (SELECT topic FROM t2 GROUP BY topic HAVING topic < 41000)
-joce 40143 2002-10-22 joce 1
-joce 43506 2002-10-22 joce 0
-drop table t1,t2;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM ROW_FORMAT=FIXED;
-INSERT INTO t1 (numeropost,maxnumrep) VALUES (1,0),(2,1);
-select numeropost as a FROM t1 GROUP BY (SELECT 1 FROM t1 HAVING a=1);
-ERROR 21000: Subquery returns more than 1 row
-select numeropost as a FROM t1 ORDER BY (SELECT 1 FROM t1 HAVING a=1);
-ERROR 21000: Subquery returns more than 1 row
-show warnings;
-Level Code Message
-Error 1242 Subquery returns more than 1 row
-Error 1028 Sort aborted: Subquery returns more than 1 row
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-(select * from t1) union (select * from t1) order by (select a from t1 limit 1);
-a
-1
-2
-3
-drop table t1;
-CREATE TABLE t1 (field char(1) NOT NULL DEFAULT 'b');
-INSERT INTO t1 VALUES ();
-SELECT field FROM t1 WHERE 1=(SELECT 1 UNION ALL SELECT 1 FROM (SELECT 1) a HAVING field='b');
-ERROR 21000: Subquery returns more than 1 row
-drop table t1;
-CREATE TABLE `t1` (
-`numeropost` mediumint(8) unsigned NOT NULL default '0',
-`numreponse` int(10) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) NOT NULL default '',
-PRIMARY KEY (`numeropost`,`numreponse`),
-UNIQUE KEY `numreponse` (`numreponse`),
-KEY `pseudo` (`pseudo`,`numeropost`)
-) ENGINE=MyISAM;
-SELECT (SELECT numeropost FROM t1 HAVING numreponse=a),numreponse FROM (SELECT * FROM t1) as a;
-ERROR 42S22: Reference 'numreponse' not supported (forward reference in item list)
-SELECT numreponse, (SELECT numeropost FROM t1 HAVING numreponse=a) FROM (SELECT * FROM t1) as a;
-ERROR 42S22: Unknown column 'a' in 'having clause'
-SELECT numreponse, (SELECT numeropost FROM t1 HAVING numreponse=1) FROM (SELECT * FROM t1) as a;
-numreponse (SELECT numeropost FROM t1 HAVING numreponse=1)
-INSERT INTO t1 (numeropost,numreponse,pseudo) VALUES (1,1,'joce'),(1,2,'joce'),(1,3,'test');
-EXPLAIN EXTENDED SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT 1 FROM t1 WHERE numeropost='1');
-ERROR 21000: Subquery returns more than 1 row
-SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT 1 FROM t1 WHERE numeropost='1');
-ERROR 21000: Subquery returns more than 1 row
-EXPLAIN EXTENDED SELECT MAX(numreponse) FROM t1 WHERE numeropost='1';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 select max(`test`.`t1`.`numreponse`) AS `MAX(numreponse)` from `test`.`t1` where `test`.`t1`.`numeropost` = '1'
-EXPLAIN EXTENDED SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT MAX(numreponse) FROM t1 WHERE numeropost='1');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 const PRIMARY,numreponse PRIMARY 7 const,const 1 100.00 Using index
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 /* select#1 */ select 3 AS `numreponse` from `test`.`t1` where 1
-drop table t1;
-CREATE TABLE t1 (a int(1));
-INSERT INTO t1 VALUES (1);
-SELECT 1 FROM (SELECT a FROM t1) b HAVING (SELECT b.a)=1;
-1
-1
-drop table t1;
-create table t1 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t1 values (0, 10),(1, 11),(2, 12);
-insert into t2 values (1, 21),(2, 22),(3, 23);
-select * from t1;
-a b
-0 10
-1 11
-2 12
-update t1 set b= (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-update t1 set b= (select b from t2 where t1.a = t2.a);
-select * from t1;
-a b
-0 NULL
-1 21
-2 22
-drop table t1, t2;
-create table t1 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t1 values (0, 10),(1, 11),(2, 12);
-insert into t2 values (1, 21),(2, 12),(3, 23);
-select * from t1;
-a b
-0 10
-1 11
-2 12
-select * from t1 where b = (select b from t2 where t1.a = t2.a);
-a b
-2 12
-delete from t1 where b in (select b from t1);
-affected rows: 3
-insert into t1 values (0, 10),(1, 11),(2, 12);
-delete from t1 where b = (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-delete from t1 where b = (select b from t2 where t1.a = t2.a);
-select * from t1 order by b;
-a b
-0 10
-1 11
-drop table t1, t2;
-create table t11 (a int NOT NULL, b int, primary key (a));
-create table t12 (a int NOT NULL, b int, primary key (a));
-create table t2 (a int NOT NULL, b int, primary key (a));
-insert into t11 values (0, 10),(1, 11),(2, 12);
-insert into t12 values (33, 10),(22, 11),(2, 12);
-insert into t2 values (1, 21),(2, 12),(3, 23);
-select * from t11;
-a b
-0 10
-1 11
-2 12
-select * from t12;
-a b
-33 10
-22 11
-2 12
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t12 where t11.a = t12.a);
-ERROR HY000: Table 't12' is specified twice, both as a target for 'DELETE' and as a separate source for data
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t2);
-ERROR 21000: Subquery returns more than 1 row
-delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t2 where t11.a = t2.a);
-select * from t11;
-a b
-0 10
-1 11
-select * from t12;
-a b
-33 10
-22 11
-drop table t11, t12, t2;
-CREATE TABLE t1 (x int) ENGINE=MyISAM;
-create table t2 (a int) ENGINE=MyISAM;
-create table t3 (b int);
-insert into t2 values (1);
-insert into t3 values (1),(2);
-INSERT INTO t1 (x) VALUES ((SELECT x FROM t1));
-ERROR HY000: Table 't1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-INSERT INTO t1 (x) VALUES ((SELECT b FROM t3));
-ERROR 21000: Subquery returns more than 1 row
-INSERT INTO t1 (x) VALUES ((SELECT a FROM t2));
-select * from t1;
-x
-1
-insert into t2 values (1);
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
-select * from t1;
-x
-1
-2
-INSERT INTO t1 (x) select (SELECT SUM(a)+1 FROM t2) FROM t2;
-select * from t1;
-x
-1
-2
-3
-3
-INSERT INTO t1 (x) select (SELECT SUM(x)+2 FROM t1) FROM t2;
-select * from t1;
-x
-1
-2
-3
-3
-11
-11
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(x) FROM t2));
-ERROR 42S22: Unknown column 'x' in 'field list'
-INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
-select * from t1;
-x
-1
-2
-3
-3
-11
-11
-2
-drop table t1, t2, t3;
-CREATE TABLE t1 (x int not null, y int, primary key (x)) ENGINE=MyISAM;
-create table t2 (a int);
-create table t3 (a int);
-insert into t2 values (1);
-insert into t3 values (1),(2);
-select * from t1;
-x y
-replace into t1 (x, y) VALUES ((SELECT x FROM t1), (SELECT a+1 FROM t2));
-ERROR HY000: Table 't1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-replace into t1 (x, y) VALUES ((SELECT a FROM t3), (SELECT a+1 FROM t2));
-ERROR 21000: Subquery returns more than 1 row
-replace into t1 (x, y) VALUES ((SELECT a FROM t2), (SELECT a+1 FROM t2));
-select * from t1;
-x y
-1 2
-replace into t1 (x, y) VALUES ((SELECT a FROM t2), (SELECT a+2 FROM t2));
-select * from t1;
-x y
-1 3
-replace DELAYED into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a FROM t2));
-select * from t1;
-x y
-1 3
-4 1
-replace DELAYED into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a+1 FROM t2));
-select * from t1;
-x y
-1 3
-4 2
-replace LOW_PRIORITY into t1 (x, y) VALUES ((SELECT a+1 FROM t2), (SELECT a FROM t2));
-select * from t1;
-x y
-1 3
-4 2
-2 1
-drop table t1, t2, t3;
-SELECT * FROM (SELECT 1) b WHERE 1 IN (SELECT *);
-ERROR HY000: No tables used
-CREATE TABLE t2 (id int(11) default NULL, KEY id (id)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (1),(2);
-SELECT * FROM t2 WHERE id IN (SELECT 1);
-id
-1
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ref id id 5 const 1 100.00 Using index
-Warnings:
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t2`.`id` AS `id` from `test`.`t2` where `test`.`t2`.`id` = 1
-SELECT * FROM t2 WHERE id IN (SELECT 1 UNION SELECT 3);
-id
-1
-SELECT * FROM t2 WHERE id IN (SELECT 1+(select 1));
-id
-2
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1+(select 1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ref id id 5 const 1 100.00 Using where; Using index
-Warnings:
-Note 1249 Select 3 was reduced during optimization
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t2`.`id` AS `id` from `test`.`t2` where `test`.`t2`.`id` = <cache>(1 + 1)
-EXPLAIN EXTENDED SELECT * FROM t2 WHERE id IN (SELECT 1 UNION SELECT 3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL id 5 NULL 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`id` AS `id` from `test`.`t2` where <expr_cache><`test`.`t2`.`id`>(<in_optimizer>(`test`.`t2`.`id`,<exists>(/* select#2 */ select 1 having <cache>(`test`.`t2`.`id`) = <ref_null_helper>(1) union /* select#3 */ select 3 having <cache>(`test`.`t2`.`id`) = <ref_null_helper>(3))))
-SELECT * FROM t2 WHERE id IN (SELECT 5 UNION SELECT 3);
-id
-SELECT * FROM t2 WHERE id IN (SELECT 5 UNION SELECT 2);
-id
-2
-INSERT INTO t2 VALUES ((SELECT * FROM t2));
-ERROR HY000: Table 't2' is specified twice, both as a target for 'INSERT' and as a separate source for data
-INSERT INTO t2 VALUES ((SELECT id FROM t2));
-ERROR HY000: Table 't2' is specified twice, both as a target for 'INSERT' and as a separate source for data
-SELECT * FROM t2;
-id
-1
-2
-CREATE TABLE t1 (id int(11) default NULL, KEY id (id)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 values (1),(1);
-UPDATE t2 SET id=(SELECT * FROM t1);
-ERROR 21000: Subquery returns more than 1 row
-drop table t2, t1;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-select 1 IN (SELECT * from t1);
-1 IN (SELECT * from t1)
-1
-select 10 IN (SELECT * from t1);
-10 IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a=2;
-select 1 IN (SELECT * from t1);
-1 IN (SELECT * from t1)
-1
-select 3 IN (SELECT * from t1);
-3 IN (SELECT * from t1)
-1
-select 10 IN (SELECT * from t1);
-10 IN (SELECT * from t1)
-NULL
-select 1 > ALL (SELECT * from t1);
-1 > ALL (SELECT * from t1)
-0
-select 10 > ALL (SELECT * from t1);
-10 > ALL (SELECT * from t1)
-NULL
-select 1 > ANY (SELECT * from t1);
-1 > ANY (SELECT * from t1)
-NULL
-select 10 > ANY (SELECT * from t1);
-10 > ANY (SELECT * from t1)
-1
-drop table t1;
-create table t1 (a varchar(20));
-insert into t1 values ('A'),('BC'),('DEF');
-select 'A' IN (SELECT * from t1);
-'A' IN (SELECT * from t1)
-1
-select 'XYZS' IN (SELECT * from t1);
-'XYZS' IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a='BC';
-select 'A' IN (SELECT * from t1);
-'A' IN (SELECT * from t1)
-1
-select 'DEF' IN (SELECT * from t1);
-'DEF' IN (SELECT * from t1)
-1
-select 'XYZS' IN (SELECT * from t1);
-'XYZS' IN (SELECT * from t1)
-NULL
-select 'A' > ALL (SELECT * from t1);
-'A' > ALL (SELECT * from t1)
-0
-select 'XYZS' > ALL (SELECT * from t1);
-'XYZS' > ALL (SELECT * from t1)
-NULL
-select 'A' > ANY (SELECT * from t1);
-'A' > ANY (SELECT * from t1)
-NULL
-select 'XYZS' > ANY (SELECT * from t1);
-'XYZS' > ANY (SELECT * from t1)
-1
-drop table t1;
-create table t1 (a float);
-insert into t1 values (1.5),(2.5),(3.5);
-select 1.5 IN (SELECT * from t1);
-1.5 IN (SELECT * from t1)
-1
-select 10.5 IN (SELECT * from t1);
-10.5 IN (SELECT * from t1)
-0
-select NULL IN (SELECT * from t1);
-NULL IN (SELECT * from t1)
-NULL
-update t1 set a=NULL where a=2.5;
-select 1.5 IN (SELECT * from t1);
-1.5 IN (SELECT * from t1)
-1
-select 3.5 IN (SELECT * from t1);
-3.5 IN (SELECT * from t1)
-1
-select 10.5 IN (SELECT * from t1);
-10.5 IN (SELECT * from t1)
-NULL
-select 1.5 > ALL (SELECT * from t1);
-1.5 > ALL (SELECT * from t1)
-0
-select 10.5 > ALL (SELECT * from t1);
-10.5 > ALL (SELECT * from t1)
-NULL
-select 1.5 > ANY (SELECT * from t1);
-1.5 > ANY (SELECT * from t1)
-NULL
-select 10.5 > ANY (SELECT * from t1);
-10.5 > ANY (SELECT * from t1)
-1
-explain extended select (select a+1) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1249 Select 2 was reduced during optimization
-Note 1003 select `test`.`t1`.`a` + 1 AS `(select a+1)` from `test`.`t1`
-select (select a+1) from t1;
-(select a+1)
-2.5
-NULL
-4.5
-drop table t1;
-CREATE TABLE t1 (a int(11) NOT NULL default '0', PRIMARY KEY (a));
-CREATE TABLE t2 (a int(11) default '0', INDEX (a));
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-INSERT INTO t2 VALUES (1),(2),(3);
-SELECT t1.a, t1.a in (select t2.a from t2) FROM t1;
-a t1.a in (select t2.a from t2)
-1 1
-2 1
-3 1
-4 0
-explain extended SELECT t1.a, t1.a in (select t2.a from t2) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 4 100.00 Using index
-2 MATERIALIZED t2 index a a 5 NULL 3 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,`test`.`t1`.`a` in ( <materialize> (/* select#2 */ select `test`.`t2`.`a` from `test`.`t2` ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`a`)))) AS `t1.a in (select t2.a from t2)` from `test`.`t1`
-CREATE TABLE t3 (a int(11) default '0');
-INSERT INTO t3 VALUES (1),(2),(3);
-SELECT t1.a, t1.a in (select t2.a from t2,t3 where t3.a=t2.a) FROM t1;
-a t1.a in (select t2.a from t2,t3 where t3.a=t2.a)
-1 1
-2 1
-3 1
-4 0
-explain extended SELECT t1.a, t1.a in (select t2.a from t2,t3 where t3.a=t2.a) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 4 100.00 Using index
-2 MATERIALIZED t2 index a a 5 NULL 3 100.00 Using index
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,`test`.`t1`.`a` in ( <materialize> (/* select#2 */ select `test`.`t2`.`a` from `test`.`t2` join `test`.`t3` where `test`.`t3`.`a` = `test`.`t2`.`a` ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`a`)))) AS `t1.a in (select t2.a from t2,t3 where t3.a=t2.a)` from `test`.`t1`
-drop table t1,t2,t3;
-# check correct NULL Processing for normal IN/ALL/ANY
-# and 2 ways of max/min optimization
-create table t1 (a int);
-insert into t1 values (1), (100), (NULL), (1000);
-create table t2 (a int not null);
-# subselect returns empty set (for NULL and non-NULL left part)
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 0
-100 0
-NULL 0
-1000 0
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 0
-100 0
-NULL 0
-1000 0
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 1
-100 1
-NULL 1
-1000 1
-select a from t1 where a in (select * from t2);
-a
-select a from t1 where a > any (select * from t2);
-a
-select a from t1 where a > all (select * from t2);
-a
-1
-100
-NULL
-1000
-select a from t1 where a in (select * from t2 group by a);
-a
-select a from t1 where a > any (select * from t2 group by a);
-a
-select a from t1 where a > all (select * from t2 group by a);
-a
-1
-100
-NULL
-1000
-insert into t2 values (1),(200);
-# sebselect returns non-empty set without NULLs
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 1
-100 0
-NULL NULL
-1000 0
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 0
-100 1
-NULL NULL
-1000 1
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 0
-100 0
-NULL NULL
-1000 1
-select a from t1 where a in (select * from t2);
-a
-1
-select a from t1 where a > any (select * from t2);
-a
-100
-1000
-select a from t1 where a > all (select * from t2);
-a
-1000
-select a from t1 where a in (select * from t2 group by a);
-a
-1
-select a from t1 where a > any (select * from t2 group by a);
-a
-100
-1000
-select a from t1 where a > all (select * from t2 group by a);
-a
-1000
-drop table t2;
-create table t2 (a int);
-insert into t2 values (1),(NULL),(200);
-# sebselect returns non-empty set with NULLs
-select a, a in (select * from t2) from t1;
-a a in (select * from t2)
-1 1
-100 NULL
-NULL NULL
-1000 NULL
-select a, a > any (select * from t2) from t1;
-a a > any (select * from t2)
-1 NULL
-100 1
-NULL NULL
-1000 1
-select a, a > all (select * from t2) from t1;
-a a > all (select * from t2)
-1 0
-100 0
-NULL NULL
-1000 NULL
-select a from t1 where a in (select * from t2);
-a
-1
-select a from t1 where a > any (select * from t2);
-a
-100
-1000
-select a from t1 where a > all (select * from t2);
-a
-select a from t1 where a in (select * from t2 group by a);
-a
-1
-select a from t1 where a > any (select * from t2 group by a);
-a
-100
-1000
-select a from t1 where a > all (select * from t2 group by a);
-a
-drop table t1, t2;
-create table t1 (a float);
-select 10.5 IN (SELECT * from t1 LIMIT 1);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-select 10.5 IN (SELECT * from t1 LIMIT 1 UNION SELECT 1.5);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1.5)' at line 1
-select 10.5 IN (SELECT * from t1 UNION SELECT 1.5 LIMIT 1);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-drop table t1;
-create table t1 (a int, b int, c varchar(10));
-create table t2 (a int);
-insert into t1 values (1,2,'a'),(2,3,'b'),(3,4,'c');
-insert into t2 values (1),(2),(NULL);
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,2,'a'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,2,'a') (select c from t1 where a=t2.a)
-1 1 a
-2 0 b
-NULL NULL NULL
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,3,'b'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,3,'b') (select c from t1 where a=t2.a)
-1 0 a
-2 1 b
-NULL NULL NULL
-select a, (select a,b,c from t1 where t1.a=t2.a) = ROW(a,4,'c'),(select c from t1 where a=t2.a) from t2;
-a (select a,b,c from t1 where t1.a=t2.a) = ROW(a,4,'c') (select c from t1 where a=t2.a)
-1 0 a
-2 0 b
-NULL NULL NULL
-drop table t1,t2;
-create table t1 (a int, b real, c varchar(10));
-insert into t1 values (1, 1, 'a'), (2,2,'b'), (NULL, 2, 'b');
-select ROW(1, 1, 'a') IN (select a,b,c from t1);
-ROW(1, 1, 'a') IN (select a,b,c from t1)
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1);
-ROW(1, 2, 'a') IN (select a,b,c from t1)
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1);
-ROW(1, 1, 'a') IN (select b,a,c from t1)
-1
-select ROW(1, 1, 'a') IN (select a,b,c from t1 where a is not null);
-ROW(1, 1, 'a') IN (select a,b,c from t1 where a is not null)
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1 where a is not null);
-ROW(1, 2, 'a') IN (select a,b,c from t1 where a is not null)
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1 where a is not null);
-ROW(1, 1, 'a') IN (select b,a,c from t1 where a is not null)
-1
-select ROW(1, 1, 'a') IN (select a,b,c from t1 where c='b' or c='a');
-ROW(1, 1, 'a') IN (select a,b,c from t1 where c='b' or c='a')
-1
-select ROW(1, 2, 'a') IN (select a,b,c from t1 where c='b' or c='a');
-ROW(1, 2, 'a') IN (select a,b,c from t1 where c='b' or c='a')
-0
-select ROW(1, 1, 'a') IN (select b,a,c from t1 where c='b' or c='a');
-ROW(1, 1, 'a') IN (select b,a,c from t1 where c='b' or c='a')
-1
-select ROW(1, 1, 'a') IN (select b,a,c from t1 limit 2);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1);
-do @a:=(SELECT a from t1);
-select @a;
-@a
-1
-set @a:=2;
-set @a:=(SELECT a from t1);
-select @a;
-@a
-1
-drop table t1;
-do (SELECT a from t1);
-ERROR 42S02: Table 'test.t1' doesn't exist
-set @a:=(SELECT a from t1);
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (a int, KEY(a));
-HANDLER t1 OPEN;
-HANDLER t1 READ a=((SELECT 1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1))' at line 1
-HANDLER t1 CLOSE;
-drop table t1;
-create table t1 (a int);
-create table t2 (b int);
-insert into t1 values (1),(2);
-insert into t2 values (1);
-select a from t1 where a in (select a from t1 where a in (select b from t2));
-a
-1
-drop table t1, t2;
-create table t1 (a int, b int);
-create table t2 like t1;
-insert into t1 values (1,2),(1,3),(1,4),(1,5);
-insert into t2 values (1,2),(1,3);
-select * from t1 where row(a,b) in (select a,b from t2);
-a b
-1 2
-1 3
-drop table t1, t2;
-CREATE TABLE `t1` (`i` int(11) NOT NULL default '0',PRIMARY KEY (`i`)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1);
-UPDATE t1 SET i=i+1 WHERE i=(SELECT MAX(i));
-select * from t1;
-i
-2
-drop table t1;
-CREATE TABLE t1 (a int(1));
-EXPLAIN EXTENDED SELECT (SELECT RAND() FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select rand() from `test`.`t1`) AS `(SELECT RAND() FROM t1)` from `test`.`t1`
-EXPLAIN EXTENDED SELECT (SELECT ENCRYPT('test') FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select encrypt('test') from `test`.`t1`) AS `(SELECT ENCRYPT('test') FROM t1)` from `test`.`t1`
-EXPLAIN EXTENDED SELECT (SELECT BENCHMARK(1,1) FROM t1) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select (/* select#2 */ select benchmark(1,1) from `test`.`t1`) AS `(SELECT BENCHMARK(1,1) FROM t1)` from `test`.`t1`
-drop table t1;
-CREATE TABLE `t1` (
-`mot` varchar(30) character set latin1 NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`),
-KEY `pseudo` (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-CREATE TABLE `t2` (
-`mot` varchar(30) character set latin1 NOT NULL default '',
-`topic` mediumint(8) unsigned NOT NULL default '0',
-`date` date NOT NULL default '0000-00-00',
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`mot`,`pseudo`,`date`,`topic`),
-KEY `pseudo` (`pseudo`,`date`,`topic`),
-KEY `topic` (`topic`)
-) ENGINE=MyISAM CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-CREATE TABLE `t3` (
-`numeropost` mediumint(8) unsigned NOT NULL auto_increment,
-`maxnumrep` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`numeropost`),
-UNIQUE KEY `maxnumrep` (`maxnumrep`)
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT IGNORE INTO t1 VALUES ('joce','1','','joce'),('test','2','','test');
-Warnings:
-Warning 1265 Data truncated for column 'date' at row 1
-Warning 1265 Data truncated for column 'date' at row 2
-INSERT IGNORE INTO t2 VALUES ('joce','1','','joce'),('test','2','','test');
-Warnings:
-Warning 1265 Data truncated for column 'date' at row 1
-Warning 1265 Data truncated for column 'date' at row 2
-INSERT INTO t3 VALUES (1,1);
-SELECT DISTINCT topic FROM t2 WHERE NOT EXISTS(SELECT * FROM t3 WHERE
-numeropost=topic);
-topic
-2
-select * from t1;
-mot topic date pseudo
-joce 1 0000-00-00 joce
-test 2 0000-00-00 test
-DELETE FROM t1 WHERE topic IN (SELECT DISTINCT topic FROM t2 WHERE NOT
-EXISTS(SELECT * FROM t3 WHERE numeropost=topic));
-select * from t1;
-mot topic date pseudo
-joce 1 0000-00-00 joce
-drop table t1, t2, t3;
-SELECT * FROM (SELECT 1 as a,(SELECT a)) a;
-a (SELECT a)
-1 1
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT 1)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT 1)` int(1) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT a)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT a)` int(1) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT * FROM (SELECT 1 as a,(SELECT a+0)) a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) NOT NULL DEFAULT 0,
- `(SELECT a+0)` int(3) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 SELECT (SELECT 1 as a UNION SELECT 1+1 limit 1,1) as a;
-select * from t1;
-a
-2
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(3) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-explain extended select a,(select (select rand() from t1 limit 1) from t1 limit 1)
-from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-2 UNCACHEABLE SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00
-3 UNCACHEABLE SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,(/* select#2 */ select (/* select#3 */ select rand() from `test`.`t1` limit 1) from `test`.`t1` limit 1) AS `(select (select rand() from t1 limit 1) from t1 limit 1)` from `test`.`t1`
-drop table t1;
-select t1.Continent, t2.Name, t2.Population from t1 LEFT JOIN t2 ON t1.Code = t2.Country where t2.Population IN (select max(t2.Population) AS Population from t2, t1 where t2.Country = t1.Code group by Continent);
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (
-ID int(11) NOT NULL auto_increment,
-name char(35) NOT NULL default '',
-t2 char(3) NOT NULL default '',
-District char(20) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (130,'Sydney','AUS','New South Wales',3276207);
-INSERT INTO t1 VALUES (131,'Melbourne','AUS','Victoria',2865329);
-INSERT INTO t1 VALUES (132,'Brisbane','AUS','Queensland',1291117);
-CREATE TABLE t2 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL default 'Asia',
-Region char(26) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-IndepYear smallint(6) default NULL,
-Population int(11) NOT NULL default '0',
-LifeExpectancy float(3,1) default NULL,
-GNP float(10,2) default NULL,
-GNPOld float(10,2) default NULL,
-LocalName char(45) NOT NULL default '',
-GovernmentForm char(45) NOT NULL default '',
-HeadOfState char(60) default NULL,
-Capital int(11) default NULL,
-Code2 char(2) NOT NULL default '',
-PRIMARY KEY (Code)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('AUS','Australia','Oceania','Australia and New Zealand',7741220.00,1901,18886000,79.8,351182.00,392911.00,'Australia','Constitutional Monarchy, Federation','Elisabeth II',135,'AU');
-INSERT INTO t2 VALUES ('AZE','Azerbaijan','Asia','Middle East',86600.00,1991,7734000,62.9,4127.00,4100.00,'Azärbaycan','Federal Republic','Heydär Äliyev',144,'AZ');
-select t2.Continent, t1.Name, t1.Population from t2 LEFT JOIN t1 ON t2.Code = t1.t2 where t1.Population IN (select max(t1.Population) AS Population from t1, t2 where t1.t2 = t2.Code group by Continent);
-Continent Name Population
-Oceania Sydney 3276207
-drop table t1, t2;
-CREATE TABLE `t1` (
-`id` mediumint(8) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) character set latin1 NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `pseudo` (`pseudo`)
-) ENGINE=MyISAM PACK_KEYS=1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (pseudo) VALUES ('test');
-SELECT 0 IN (SELECT 1 FROM t1 a);
-0 IN (SELECT 1 FROM t1 a)
-0
-EXPLAIN EXTENDED SELECT 0 IN (SELECT 1 FROM t1 a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 /* select#1 */ select <in_optimizer>(0,<exists>(/* select#2 */ select 1 from dual where 0 = 1)) AS `0 IN (SELECT 1 FROM t1 a)`
-INSERT INTO t1 (pseudo) VALUES ('test1');
-SELECT 0 IN (SELECT 1 FROM t1 a);
-0 IN (SELECT 1 FROM t1 a)
-0
-EXPLAIN EXTENDED SELECT 0 IN (SELECT 1 FROM t1 a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1003 /* select#1 */ select <in_optimizer>(0,<exists>(/* select#2 */ select 1 from `test`.`t1` `a` where 0 = 1)) AS `0 IN (SELECT 1 FROM t1 a)`
-drop table t1;
-CREATE TABLE `t1` (
-`i` int(11) NOT NULL default '0',
-PRIMARY KEY (`i`)
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1);
-UPDATE t1 SET i=i+(SELECT MAX(i) FROM (SELECT 1) t) WHERE i=(SELECT MAX(i));
-UPDATE t1 SET i=i+1 WHERE i=(SELECT MAX(i));
-UPDATE t1 SET t.i=i+(SELECT MAX(i) FROM (SELECT 1) t);
-ERROR 42S22: Unknown column 't.i' in 'field list'
-select * from t1;
-i
-3
-drop table t1;
-CREATE TABLE t1 (
-id int(11) default NULL
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1),(1),(2),(2),(1),(3);
-CREATE TABLE t2 (
-id int(11) default NULL,
-name varchar(15) default NULL
-) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (4,'vita'), (1,'vita'), (2,'vita'), (1,'vita');
-update t1, t2 set t2.name='lenka' where t2.id in (select id from t1);
-select * from t2;
-id name
-4 vita
-1 lenka
-2 lenka
-1 lenka
-drop table t1,t2;
-create table t1 (a int, unique index indexa (a));
-insert into t1 values (-1), (-4), (-2), (NULL);
-select -10 IN (select a from t1 FORCE INDEX (indexa));
--10 IN (select a from t1 FORCE INDEX (indexa))
-NULL
-drop table t1;
-create table t1 (id int not null auto_increment primary key, salary int, key(salary));
-insert into t1 (salary) values (100),(1000),(10000),(10),(500),(5000),(50000);
-explain extended SELECT id FROM t1 where salary = (SELECT MAX(salary) FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ref salary salary 5 const 1 100.00 Using where
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id` from `test`.`t1` where `test`.`t1`.`salary` = (/* select#2 */ select max(`test`.`t1`.`salary`) from `test`.`t1`)
-drop table t1;
-CREATE TABLE t1 (
-ID int(10) unsigned NOT NULL auto_increment,
-SUB_ID int(3) unsigned NOT NULL default '0',
-REF_ID int(10) unsigned default NULL,
-REF_SUB int(3) unsigned default '0',
-PRIMARY KEY (ID,SUB_ID),
-UNIQUE KEY t1_PK (ID,SUB_ID),
-KEY t1_FK (REF_ID,REF_SUB),
-KEY t1_REFID (REF_ID)
-) ENGINE=MyISAM CHARSET=cp1251;
-INSERT INTO t1 VALUES (1,0,NULL,NULL),(2,0,NULL,NULL);
-SELECT DISTINCT REF_ID FROM t1 WHERE ID= (SELECT DISTINCT REF_ID FROM t1 WHERE ID=2);
-REF_ID
-DROP TABLE t1;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1,0), (2,0), (3,0);
-insert into t2 values (1,1), (2,1), (3,1), (2,2);
-update ignore t1 set b=(select b from t2 where t1.a=t2.a);
-Warnings:
-Warning 1242 Subquery returns more than 1 row
-select * from t1;
-a b
-1 1
-2 NULL
-3 1
-drop table t1, t2;
-CREATE TABLE `t1` (
-`id` mediumint(8) unsigned NOT NULL auto_increment,
-`pseudo` varchar(35) NOT NULL default '',
-`email` varchar(60) NOT NULL default '',
-PRIMARY KEY (`id`),
-UNIQUE KEY `email` (`email`),
-UNIQUE KEY `pseudo` (`pseudo`)
-) ENGINE=MyISAM CHARSET=latin1 PACK_KEYS=1 ROW_FORMAT=DYNAMIC;
-INSERT INTO t1 (id,pseudo,email) VALUES (1,'test','test'),(2,'test1','test1');
-SELECT pseudo as a, pseudo as b FROM t1 GROUP BY (SELECT a) ORDER BY (SELECT id*1);
-a b
-test test
-test1 test1
-drop table if exists t1;
-(SELECT 1 as a) UNION (SELECT 1) ORDER BY (SELECT a+0);
-a
-1
-create table t1 (a int not null, b int, primary key (a));
-create table t2 (a int not null, primary key (a));
-create table t3 (a int not null, b int, primary key (a));
-insert into t1 values (1,10), (2,20), (3,30), (4,40);
-insert into t2 values (2), (3), (4), (5);
-insert into t3 values (10,3), (20,4), (30,5);
-select * from t2 where t2.a in (select a from t1);
-a
-2
-3
-4
-explain extended select * from t2 where t2.a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL PRIMARY 4 NULL 4 100.00 Using where; Using index
-2 MATERIALIZED t1 index PRIMARY PRIMARY 4 NULL 4 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where <expr_cache><`test`.`t2`.`a`>(<in_optimizer>(`test`.`t2`.`a`,`test`.`t2`.`a` in ( <materialize> (/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` ), <primary_index_lookup>(`test`.`t2`.`a` in <temporary table> on distinct_key where `test`.`t2`.`a` = `<subquery2>`.`a`))))
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL PRIMARY 4 NULL 4 100.00 Using where; Using index
-2 MATERIALIZED t1 ALL PRIMARY NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where <expr_cache><`test`.`t2`.`a`>(<in_optimizer>(`test`.`t2`.`a`,`test`.`t2`.`a` in ( <materialize> (/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` where `test`.`t1`.`b` <> 30 ), <primary_index_lookup>(`test`.`t2`.`a` in <temporary table> on distinct_key where `test`.`t2`.`a` = `<subquery2>`.`a`))))
-select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-a
-2
-3
-explain extended select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL PRIMARY 4 NULL 4 100.00 Using where; Using index
-2 MATERIALIZED t3 index PRIMARY PRIMARY 4 NULL 3 100.00 Using index
-2 MATERIALIZED t1 ALL PRIMARY NULL NULL NULL 4 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where <expr_cache><`test`.`t2`.`a`>(<in_optimizer>(`test`.`t2`.`a`,`test`.`t2`.`a` in ( <materialize> (/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` join `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`a` ), <primary_index_lookup>(`test`.`t2`.`a` in <temporary table> on distinct_key where `test`.`t2`.`a` = `<subquery2>`.`a`))))
-drop table t1, t2, t3;
-create table t1 (a int, b int, index a (a,b));
-create table t2 (a int, index a (a));
-create table t3 (a int, b int, index a (a));
-insert into t1 values (1,10), (2,20), (3,30), (4,40);
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t1
-select rand()*100000+200,rand()*100000 from t0 A, t0 B, t0 C, t0 D;
-insert into t2 values (2), (3), (4), (5);
-insert into t3 values (10,3), (20,4), (30,5);
-select * from t2 where t2.a in (select a from t1);
-a
-2
-3
-4
-explain extended select * from t2 where t2.a in (select a from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL a 5 NULL 4 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t1 index_subquery a a 5 func 1001 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where <expr_cache><`test`.`t2`.`a`>(<in_optimizer>(`test`.`t2`.`a`,<exists>(<index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on a))))
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL a 5 NULL 4 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t1 index_subquery a a 5 func 1001 100.00 Using index; Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where <expr_cache><`test`.`t2`.`a`>(<in_optimizer>(`test`.`t2`.`a`,<exists>(<index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on a where `test`.`t1`.`b` <> 30 and <cache>(`test`.`t2`.`a`) = `test`.`t1`.`a`))))
-select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-a
-2
-3
-explain extended select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL a 5 NULL 4 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t3 index a a 5 NULL 3 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t1 ref a a 10 func,test.t3.a 1167 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where <expr_cache><`test`.`t2`.`a`>(<in_optimizer>(`test`.`t2`.`a`,<exists>(/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` join `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`a` and <cache>(`test`.`t2`.`a`) = `test`.`t1`.`a`)))
-insert into t1 values (3,31);
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-a
-2
-3
-4
-select * from t2 where t2.a in (select a from t1 where t1.b <> 30 and t1.b <> 31);
-a
-2
-4
-explain extended select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL a 5 NULL 4 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t1 index_subquery a a 5 func 1001 100.00 Using index; Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where <expr_cache><`test`.`t2`.`a`>(<in_optimizer>(`test`.`t2`.`a`,<exists>(<index_lookup>(<cache>(`test`.`t2`.`a`) in t1 on a where `test`.`t1`.`b` <> 30 and <cache>(`test`.`t2`.`a`) = `test`.`t1`.`a`))))
-drop table t0, t1, t2, t3;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-create table t3 (a int, b int);
-insert into t1 values (0,100),(1,2), (1,3), (2,2), (2,7), (2,-1), (3,10);
-insert into t2 values (0,0), (1,1), (2,1), (3,1), (4,1);
-insert into t3 values (3,3), (2,2), (1,1);
-select a,(select count(distinct t1.b) as sum from t1,t2 where t1.a=t2.a and t2.b > 0 and t1.a <= t3.b group by t1.a order by sum limit 1) from t3;
-a (select count(distinct t1.b) as sum from t1,t2 where t1.a=t2.a and t2.b > 0 and t1.a <= t3.b group by t1.a order by sum limit 1)
-3 1
-2 2
-1 2
-drop table t1,t2,t3;
-create table t1 (s1 int);
-create table t2 (s1 int);
-insert into t1 values (1);
-insert into t2 values (1);
-select * from t1 where exists (select s1 from t2 having max(t2.s1)=t1.s1);
-s1
-1
-drop table t1,t2;
-create table t1 (s1 int);
-create table t2 (s1 int);
-insert into t1 values (1);
-insert into t2 values (1);
-update t1 set s1 = s1 + 1 where 1 = (select x.s1 as A from t2 WHERE t2.s1 > t1.s1 order by A);
-ERROR 42S22: Unknown column 'x.s1' in 'field list'
-DROP TABLE t1, t2;
-CREATE TABLE t1 (s1 CHAR(5) COLLATE latin1_german1_ci,
-s2 CHAR(5) COLLATE latin1_swedish_ci);
-INSERT INTO t1 VALUES ('z','?');
-select * from t1 where s1 > (select max(s2) from t1);
-ERROR HY000: Illegal mix of collations (latin1_german1_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '>'
-select * from t1 where s1 > any (select max(s2) from t1);
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin1_german1_ci,IMPLICIT) for operation '<'
-drop table t1;
-create table t1(toid int,rd int);
-create table t2(userid int,pmnew int,pmtotal int);
-insert into t2 values(1,0,0),(2,0,0);
-insert into t1 values(1,0),(1,0),(1,0),(1,12),(1,15),(1,123),(1,12312),(1,12312),(1,123),(2,0),(2,0),(2,1),(2,2);
-select userid,pmtotal,pmnew, (select count(rd) from t1 where toid=t2.userid) calc_total, (select count(rd) from t1 where rd=0 and toid=t2.userid) calc_new from t2 where userid in (select distinct toid from t1);
-userid pmtotal pmnew calc_total calc_new
-1 0 0 9 3
-2 0 0 4 2
-drop table t1, t2;
-create table t1 (s1 char(5));
-select (select 'a','b' from t1 union select 'a','b' from t1) from t1;
-ERROR 21000: Operand should contain 1 column(s)
-insert into t1 values ('tttt');
-select * from t1 where ('a','b')=(select 'a','b' from t1 union select 'a','b' from t1);
-s1
-tttt
-explain extended (select * from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 (select 'tttt' AS `s1` from dual)
-(select * from t1);
-s1
-tttt
-drop table t1;
-create table t1 (s1 char(5), index s1(s1));
-create table t2 (s1 char(5), index s1(s1));
-insert into t1 values ('a1'),('a2'),('a3');
-insert into t2 values ('a1'),('a2');
-select s1, s1 NOT IN (SELECT s1 FROM t2) from t1;
-s1 s1 NOT IN (SELECT s1 FROM t2)
-a1 0
-a2 0
-a3 1
-select s1, s1 = ANY (SELECT s1 FROM t2) from t1;
-s1 s1 = ANY (SELECT s1 FROM t2)
-a1 1
-a2 1
-a3 0
-select s1, s1 <> ALL (SELECT s1 FROM t2) from t1;
-s1 s1 <> ALL (SELECT s1 FROM t2)
-a1 0
-a2 0
-a3 1
-select s1, s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2') from t1;
-s1 s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2')
-a1 0
-a2 1
-a3 1
-explain extended select s1, s1 NOT IN (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 MATERIALIZED t2 index s1 s1 6 NULL 2 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,`test`.`t1`.`s1` in ( <materialize> (/* select#2 */ select `test`.`t2`.`s1` from `test`.`t2` ), <primary_index_lookup>(`test`.`t1`.`s1` in <temporary table> on distinct_key where `test`.`t1`.`s1` = `<subquery2>`.`s1`)))) AS `s1 NOT IN (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 = ANY (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 MATERIALIZED t2 index s1 s1 6 NULL 2 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,`test`.`t1`.`s1` in ( <materialize> (/* select#2 */ select `test`.`t2`.`s1` from `test`.`t2` ), <primary_index_lookup>(`test`.`t1`.`s1` in <temporary table> on distinct_key where `test`.`t1`.`s1` = `<subquery2>`.`s1`)))) AS `s1 = ANY (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 <> ALL (SELECT s1 FROM t2) from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 MATERIALIZED t2 index s1 s1 6 NULL 2 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,`test`.`t1`.`s1` in ( <materialize> (/* select#2 */ select `test`.`t2`.`s1` from `test`.`t2` ), <primary_index_lookup>(`test`.`t1`.`s1` in <temporary table> on distinct_key where `test`.`t1`.`s1` = `<subquery2>`.`s1`)))) AS `s1 <> ALL (SELECT s1 FROM t2)` from `test`.`t1`
-explain extended select s1, s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2') from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL s1 6 NULL 3 100.00 Using index
-2 MATERIALIZED t2 index s1 s1 6 NULL 2 50.00 Using where; Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`s1` AS `s1`,!<expr_cache><`test`.`t1`.`s1`>(<in_optimizer>(`test`.`t1`.`s1`,`test`.`t1`.`s1` in ( <materialize> (/* select#2 */ select `test`.`t2`.`s1` from `test`.`t2` where `test`.`t2`.`s1` < 'a2' ), <primary_index_lookup>(`test`.`t1`.`s1` in <temporary table> on distinct_key where `test`.`t1`.`s1` = `<subquery2>`.`s1`)))) AS `s1 NOT IN (SELECT s1 FROM t2 WHERE s1 < 'a2')` from `test`.`t1`
-drop table t1,t2;
-create table t2 (a int, b int not null);
-create table t3 (a int);
-insert into t3 values (6),(7),(3);
-select * from t3 where a >= all (select b from t2);
-a
-6
-7
-3
-explain extended select * from t3 where a >= all (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select max(NULL) from `test`.`t2`) > <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= some (select b from t2);
-a
-explain extended select * from t3 where a >= some (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(NULL) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= all (select b from t2 group by 1);
-a
-6
-7
-3
-explain extended select * from t3 where a >= all (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select max(NULL) from `test`.`t2`) > <cache>(`test`.`t3`.`a`)))
-select * from t3 where a >= some (select b from t2 group by 1);
-a
-explain extended select * from t3 where a >= some (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>(<in_optimizer>(`test`.`t3`.`a`,(/* select#2 */ select min(NULL) from `test`.`t2`) <= <cache>(`test`.`t3`.`a`)))
-select * from t3 where NULL >= any (select b from t2);
-a
-explain extended select * from t3 where NULL >= any (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= any (select b from t2 group by 1);
-a
-explain extended select * from t3 where NULL >= any (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= some (select b from t2);
-a
-explain extended select * from t3 where NULL >= some (select b from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-select * from t3 where NULL >= some (select b from t2 group by 1);
-a
-explain extended select * from t3 where NULL >= some (select b from t2 group by 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where 0
-insert into t2 values (2,2), (2,1), (3,3), (3,1);
-select * from t3 where a > all (select max(b) from t2 group by a);
-a
-6
-7
-explain extended select * from t3 where a > all (select max(b) from t2 group by a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 4 100.00 Using temporary
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>(<in_optimizer>(`test`.`t3`.`a`,<max>(/* select#2 */ select max(`test`.`t2`.`b`) from `test`.`t2` group by `test`.`t2`.`a`) >= <cache>(`test`.`t3`.`a`)))
-drop table t2, t3;
-CREATE TABLE `t1` ( `id` mediumint(9) NOT NULL auto_increment, `taskid` bigint(20) NOT NULL default '0', `dbid` int(11) NOT NULL default '0', `create_date` datetime NOT NULL default '0000-00-00 00:00:00', `last_update` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (`id`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=3 ;
-INSERT INTO `t1` (`id`, `taskid`, `dbid`, `create_date`,`last_update`) VALUES (1, 1, 15, '2003-09-29 10:31:36', '2003-09-29 10:31:36'), (2, 1, 21, now(), now());
-CREATE TABLE `t2` (`db_id` int(11) NOT NULL auto_increment,`name` varchar(200) NOT NULL default '',`primary_uid` smallint(6) NOT NULL default '0',`secondary_uid` smallint(6) NOT NULL default '0',PRIMARY KEY (`db_id`),UNIQUE KEY `name_2` (`name`),FULLTEXT KEY `name` (`name`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=2147483647;
-INSERT INTO `t2` (`db_id`, `name`, `primary_uid`, `secondary_uid`) VALUES (18, 'Not Set 1', 0, 0),(19, 'Valid', 1, 2),(20, 'Valid 2', 1, 2),(21, 'Should Not Return', 1, 2),(26, 'Not Set 2', 0, 0),(-1, 'ALL DB\'S', 0, 0);
-CREATE TABLE `t3` (`taskgenid` mediumint(9) NOT NULL auto_increment,`dbid` int(11) NOT NULL default '0',`taskid` int(11) NOT NULL default '0',`mon` tinyint(4) NOT NULL default '1',`tues` tinyint(4) NOT NULL default '1',`wed` tinyint(4) NOT NULL default '1',`thur` tinyint(4) NOT NULL default '1',`fri` tinyint(4) NOT NULL default '1',`sat` tinyint(4) NOT NULL default '0',`sun` tinyint(4) NOT NULL default '0',`how_often` smallint(6) NOT NULL default '1',`userid` smallint(6) NOT NULL default '0',`active` tinyint(4) NOT NULL default '1',PRIMARY KEY (`taskgenid`)) ENGINE=MyISAM CHARSET=latin1 AUTO_INCREMENT=2 ;
-INSERT INTO `t3` (`taskgenid`, `dbid`, `taskid`, `mon`, `tues`,`wed`, `thur`, `fri`, `sat`, `sun`, `how_often`, `userid`, `active`) VALUES (1,-1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1);
-CREATE TABLE `t4` (`task_id` smallint(6) NOT NULL default '0',`description` varchar(200) NOT NULL default '') ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO `t4` (`task_id`, `description`) VALUES (1, 'Daily Check List'),(2, 'Weekly Status');
-select dbid, name, (date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01') from t3 a, t2 b, t4 WHERE dbid = - 1 AND primary_uid = '1' AND t4.task_id = taskid;
-dbid name (date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01')
--1 Valid 1
--1 Valid 2 1
--1 Should Not Return 0
-SELECT dbid, name FROM t3 a, t2 b, t4 WHERE dbid = - 1 AND primary_uid = '1' AND ((date_format(now() , '%Y-%m-%d') - INTERVAL how_often DAY) >= ifnull((SELECT date_format(max(create_date),'%Y-%m-%d') FROM t1 WHERE dbid = b.db_id AND taskid = a.taskgenid), '1950-01-01')) AND t4.task_id = taskid;
-dbid name
--1 Valid
--1 Valid 2
-drop table t1,t2,t3,t4;
-CREATE TABLE t1 (id int(11) default NULL) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 (id int(11) default NULL) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES (2),(6);
-select * from t1 where (1,2,6) in (select * from t2);
-ERROR 21000: Operand should contain 3 column(s)
-DROP TABLE t1,t2;
-create table t1 (s1 int);
-insert into t1 values (1);
-insert into t1 values (2);
-set sort_buffer_size = (select s1 from t1);
-ERROR 21000: Subquery returns more than 1 row
-do (select * from t1);
-Warnings:
-Error 1242 Subquery returns more than 1 row
-drop table t1;
-create table t1 (s1 char);
-insert into t1 values ('e');
-select * from t1 where 'f' > any (select s1 from t1);
-s1
-e
-select * from t1 where 'f' > any (select s1 from t1 union select s1 from t1);
-s1
-e
-explain extended select * from t1 where 'f' > any (select s1 from t1 union select s1 from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1 100.00
-2 SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-3 UNION t1 system NULL NULL NULL NULL 1 100.00
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select 'e' AS `s1` from dual where 1
-drop table t1;
-CREATE TABLE t1 (number char(11) NOT NULL default '') ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t1 VALUES ('69294728265'),('18621828126'),('89356874041'),('95895001874');
-CREATE TABLE t2 (code char(5) NOT NULL default '',UNIQUE KEY code (code)) ENGINE=MyISAM CHARSET=latin1;
-INSERT INTO t2 VALUES ('1'),('1226'),('1245'),('1862'),('18623'),('1874'),('1967'),('6');
-select c.number as phone,(select p.code from t2 p where c.number like concat(p.code, '%') order by length(p.code) desc limit 1) as code from t1 c;
-phone code
-69294728265 6
-18621828126 1862
-89356874041 NULL
-95895001874 NULL
-drop table t1, t2;
-create table t1 (s1 int);
-create table t2 (s1 int);
-select * from t1 where (select count(*) from t2 where t1.s2) = 1;
-ERROR 42S22: Unknown column 't1.s2' in 'where clause'
-select * from t1 where (select count(*) from t2 group by t1.s2) = 1;
-ERROR 42S22: Unknown column 't1.s2' in 'group statement'
-select count(*) from t2 group by t1.s2;
-ERROR 42S22: Unknown column 't1.s2' in 'group statement'
-drop table t1, t2;
-CREATE TABLE t1(COLA FLOAT NOT NULL,COLB FLOAT NOT NULL,COLC VARCHAR(20) DEFAULT NULL,PRIMARY KEY (COLA, COLB));
-CREATE TABLE t2(COLA FLOAT NOT NULL,COLB FLOAT NOT NULL,COLC CHAR(1) NOT NULL,PRIMARY KEY (COLA));
-INSERT INTO t1 VALUES (1,1,'1A3240'), (1,2,'4W2365');
-INSERT INTO t2 VALUES (100, 200, 'C');
-SELECT DISTINCT COLC FROM t1 WHERE COLA = (SELECT COLA FROM t2 WHERE COLB = 200 AND COLC ='C' LIMIT 1);
-COLC
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a int(1));
-INSERT INTO t1 VALUES (1),(1),(1),(1),(1),(2),(3),(4),(5);
-SELECT DISTINCT (SELECT a) FROM t1 LIMIT 100;
-(SELECT a)
-1
-2
-3
-4
-5
-DROP TABLE t1;
-create table t1 (a int, b decimal(13, 3));
-insert into t1 values (1, 0.123);
-select a, (select max(b) from t1) into outfile "../../tmp/subselect.out.file.1" from t1;
-delete from t1;
-load data infile "../../tmp/subselect.out.file.1" into table t1;
-select * from t1;
-a b
-1 0.123
-drop table t1;
-CREATE TABLE `t1` (
-`id` int(11) NOT NULL auto_increment,
-`id_cns` tinyint(3) unsigned NOT NULL default '0',
-`tipo` enum('','UNO','DUE') NOT NULL default '',
-`anno_dep` smallint(4) unsigned zerofill NOT NULL default '0000',
-`particolare` mediumint(8) unsigned NOT NULL default '0',
-`generale` mediumint(8) unsigned NOT NULL default '0',
-`bis` tinyint(3) unsigned NOT NULL default '0',
-PRIMARY KEY (`id`),
-UNIQUE KEY `idx_cns_gen_anno` (`anno_dep`,`id_cns`,`generale`,`particolare`),
-UNIQUE KEY `idx_cns_par_anno` (`id_cns`,`anno_dep`,`tipo`,`particolare`,`bis`)
-);
-INSERT INTO `t1` VALUES (1,16,'UNO',1987,2048,9681,0),(2,50,'UNO',1987,1536,13987,0),(3,16,'UNO',1987,2432,14594,0),(4,16,'UNO',1987,1792,13422,0),(5,16,'UNO',1987,1025,10240,0),(6,16,'UNO',1987,1026,7089,0);
-CREATE TABLE `t2` (
-`id` tinyint(3) unsigned NOT NULL auto_increment,
-`max_anno_dep` smallint(6) unsigned NOT NULL default '0',
-PRIMARY KEY (`id`)
-);
-INSERT INTO `t2` VALUES (16,1987),(50,1990),(51,1990);
-SELECT cns.id, cns.max_anno_dep, cns.max_anno_dep = (SELECT s.anno_dep FROM t1 AS s WHERE s.id_cns = cns.id ORDER BY s.anno_dep DESC LIMIT 1) AS PIPPO FROM t2 AS cns;
-id max_anno_dep PIPPO
-16 1987 1
-50 1990 0
-51 1990 NULL
-DROP TABLE t1, t2;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-SET SQL_SELECT_LIMIT=1;
-select sum(a) from (select * from t1) as a;
-sum(a)
-6
-select 2 in (select * from t1);
-2 in (select * from t1)
-1
-SET SQL_SELECT_LIMIT=default;
-drop table t1;
-CREATE TABLE t1 (a int, b int, INDEX (a));
-INSERT INTO t1 VALUES (1, 1), (1, 2), (1, 3);
-SELECT * FROM t1 WHERE a = (SELECT MAX(a) FROM t1 WHERE a = 1) ORDER BY b;
-a b
-1 1
-1 2
-1 3
-DROP TABLE t1;
-create table t1(val varchar(10));
-insert into t1 values ('aaa'), ('bbb'),('eee'),('mmm'),('ppp');
-select count(*) from t1 as w1 where w1.val in (select w2.val from t1 as w2 where w2.val like 'm%') and w1.val in (select w3.val from t1 as w3 where w3.val like 'e%');
-count(*)
-0
-drop table t1;
-create table t1 (id int not null, text varchar(20) not null default '', primary key (id));
-insert into t1 (id, text) values (1, 'text1'), (2, 'text2'), (3, 'text3'), (4, 'text4'), (5, 'text5'), (6, 'text6'), (7, 'text7'), (8, 'text8'), (9, 'text9'), (10, 'text10'), (11, 'text11'), (12, 'text12');
-select * from t1 where id not in (select id from t1 where id < 8);
-id text
-8 text8
-9 text9
-10 text10
-11 text11
-12 text12
-select * from t1 as tt where not exists (select id from t1 where id < 8 and (id = tt.id or id is null) having id is not null);
-id text
-8 text8
-9 text9
-10 text10
-11 text11
-12 text12
-explain extended select * from t1 where id not in (select id from t1 where id < 8);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 12 100.00 Using where
-2 MATERIALIZED t1 range PRIMARY PRIMARY 4 NULL 7 100.00 Using where; Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`text` AS `text` from `test`.`t1` where !<expr_cache><`test`.`t1`.`id`>(<in_optimizer>(`test`.`t1`.`id`,`test`.`t1`.`id` in ( <materialize> (/* select#2 */ select `test`.`t1`.`id` from `test`.`t1` where `test`.`t1`.`id` < 8 ), <primary_index_lookup>(`test`.`t1`.`id` in <temporary table> on distinct_key where `test`.`t1`.`id` = `<subquery2>`.`id`))))
-explain extended select * from t1 as tt where not exists (select id from t1 where id < 8 and (id = tt.id or id is null) having id is not null);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY tt ALL NULL NULL NULL NULL 12 100.00 Using where
-2 DEPENDENT SUBQUERY t1 eq_ref PRIMARY PRIMARY 4 test.tt.id 1 100.00 Using where; Using index
-Warnings:
-Note 1276 Field or reference 'test.tt.id' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`tt`.`id` AS `id`,`test`.`tt`.`text` AS `text` from `test`.`t1` `tt` where !<in_optimizer>(1,<expr_cache><`test`.`tt`.`id`>(exists(/* select#2 */ select `test`.`t1`.`id` from `test`.`t1` where `test`.`t1`.`id` < 8 and `test`.`t1`.`id` = `test`.`tt`.`id` having `test`.`t1`.`id` is not null)))
-insert into t1 (id, text) values (1000, 'text1000'), (1001, 'text1001');
-create table t2 (id int not null, text varchar(20) not null default '', primary key (id));
-insert into t2 (id, text) values (1, 'text1'), (2, 'text2'), (3, 'text3'), (4, 'text4'), (5, 'text5'), (6, 'text6'), (7, 'text7'), (8, 'text8'), (9, 'text9'), (10, 'text10'), (11, 'text1'), (12, 'text2'), (13, 'text3'), (14, 'text4'), (15, 'text5'), (16, 'text6'), (17, 'text7'), (18, 'text8'), (19, 'text9'), (20, 'text10'),(21, 'text1'), (22, 'text2'), (23, 'text3'), (24, 'text4'), (25, 'text5'), (26, 'text6'), (27, 'text7'), (28, 'text8'), (29, 'text9'), (30, 'text10'), (31, 'text1'), (32, 'text2'), (33, 'text3'), (34, 'text4'), (35, 'text5'), (36, 'text6'), (37, 'text7'), (38, 'text8'), (39, 'text9'), (40, 'text10'), (41, 'text1'), (42, 'text2'), (43, 'text3'), (44, 'text4'), (45, 'text5'), (46, 'text6'), (47, 'text7'), (48, 'text8'), (49, 'text9'), (50, 'text10');
-select * from t1 a left join t2 b on (a.id=b.id or b.id is null) join t1 c on (if(isnull(b.id), 1000, b.id)=c.id);
-id text id text id text
-1 text1 1 text1 1 text1
-2 text2 2 text2 2 text2
-3 text3 3 text3 3 text3
-4 text4 4 text4 4 text4
-5 text5 5 text5 5 text5
-6 text6 6 text6 6 text6
-7 text7 7 text7 7 text7
-8 text8 8 text8 8 text8
-9 text9 9 text9 9 text9
-10 text10 10 text10 10 text10
-11 text11 11 text1 11 text11
-12 text12 12 text2 12 text12
-1000 text1000 NULL NULL 1000 text1000
-1001 text1001 NULL NULL 1000 text1000
-explain extended select * from t1 a left join t2 b on (a.id=b.id or b.id is null) join t1 c on (if(isnull(b.id), 1000, b.id)=c.id);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE a ALL NULL NULL NULL NULL 14 100.00
-1 SIMPLE b eq_ref PRIMARY PRIMARY 4 test.a.id 2 100.00
-1 SIMPLE c eq_ref PRIMARY PRIMARY 4 func 1 100.00 Using index condition
-Warnings:
-Note 1003 select `test`.`a`.`id` AS `id`,`test`.`a`.`text` AS `text`,`test`.`b`.`id` AS `id`,`test`.`b`.`text` AS `text`,`test`.`c`.`id` AS `id`,`test`.`c`.`text` AS `text` from `test`.`t1` `a` left join `test`.`t2` `b` on(`test`.`b`.`id` = `test`.`a`.`id` or `test`.`b`.`id` is null) join `test`.`t1` `c` where if(`test`.`b`.`id` is null,1000,`test`.`b`.`id`) = `test`.`c`.`id`
-drop table t1,t2;
-create table t1 (a int);
-insert into t1 values (1);
-explain select benchmark(1000, (select a from t1 where a=sha(rand())));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNCACHEABLE SUBQUERY t1 system NULL NULL NULL NULL 1
-drop table t1;
-create table t1(id int);
-create table t2(id int);
-create table t3(flag int);
-select (select * from t3 where id not null) from t1, t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'null) from t1, t2' at line 1
-drop table t1,t2,t3;
-CREATE TABLE t1 (id INT);
-CREATE TABLE t2 (id INT);
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (1);
-SELECT t1.id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id);
-id c
-1 1
-2 0
-SELECT id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id);
-id c
-1 1
-2 0
-SELECT t1.id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id) ORDER BY t1.id;
-id c
-1 1
-2 0
-SELECT id, ( SELECT COUNT(t.id) FROM t2 AS t WHERE t.id = t1.id ) AS c FROM t1 LEFT JOIN t2 USING (id) ORDER BY id;
-id c
-1 1
-2 0
-DROP TABLE t1,t2;
-CREATE TABLE t1 ( a int, b int );
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-SELECT a FROM t1 WHERE a > ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-ALTER TABLE t1 ADD INDEX (a);
-SELECT a FROM t1 WHERE a > ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-3
-SELECT a FROM t1 WHERE a < ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-SELECT a FROM t1 WHERE a = ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-SELECT a FROM t1 WHERE a >= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL ( SELECT a FROM t1 WHERE b = 2 );
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2 UNION SELECT a FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 HAVING a = 2 UNION SELECT a FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (1,2) > ANY (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE a > ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ALL (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE a > ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) > ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) <> ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ANY (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 2 column(s)
-SELECT a FROM t1 WHERE a = ANY (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) = ANY (SELECT a,2 FROM t1 WHERE b = 2);
-a
-SELECT a FROM t1 WHERE (1,2) <> ALL (SELECT a FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 2 column(s)
-SELECT a FROM t1 WHERE a <> ALL (SELECT a,2 FROM t1 WHERE b = 2);
-ERROR 21000: Operand should contain 1 column(s)
-SELECT a FROM t1 WHERE (1,2) <> ALL (SELECT a,2 FROM t1 WHERE b = 2);
-a
-1
-2
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 WHERE b = 2 UNION SELECT a,1 FROM t1 WHERE b = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 WHERE b = 2 UNION SELECT a,1 FROM t1 WHERE b = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE (a,1) = ANY (SELECT a,1 FROM t1 HAVING a = 2 UNION SELECT a,1 FROM t1 HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE (a,1) <> ALL (SELECT a,1 FROM t1 HAVING a = 2 UNION SELECT a,1 FROM t1 HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2 group by a);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 group by a HAVING a = 2);
-a
-1
-3
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a > t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a > t1.a), '-')
-0-
-0-
-1-
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a < t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a < t1.a), '-')
-1-
-0-
-0-
-SELECT concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a = t1.a), '-') from t1 a;
-concat(EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a = t1.a), '-')
-0-
-1-
-0-
-DROP TABLE t1;
-CREATE TABLE t1 ( a double, b double );
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = 2e0);
-a
-1
-3
-DROP TABLE t1;
-CREATE TABLE t1 ( a char(1), b char(1));
-INSERT INTO t1 VALUES ('1','1'),('2','2'),('3','3');
-SELECT a FROM t1 WHERE a > ANY (SELECT a FROM t1 WHERE b = '2');
-a
-3
-SELECT a FROM t1 WHERE a < ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-SELECT a FROM t1 WHERE a = ANY (SELECT a FROM t1 WHERE b = '2');
-a
-2
-SELECT a FROM t1 WHERE a >= ANY (SELECT a FROM t1 WHERE b = '2');
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ANY (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-SELECT a FROM t1 WHERE a > ALL (SELECT a FROM t1 WHERE b = '2');
-a
-3
-SELECT a FROM t1 WHERE a < ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-SELECT a FROM t1 WHERE a = ALL (SELECT a FROM t1 WHERE b = '2');
-a
-2
-SELECT a FROM t1 WHERE a >= ALL (SELECT a FROM t1 WHERE b = '2');
-a
-2
-3
-SELECT a FROM t1 WHERE a <= ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-2
-SELECT a FROM t1 WHERE a <> ALL (SELECT a FROM t1 WHERE b = '2');
-a
-1
-3
-DROP TABLE t1;
-create table t1 (a int, b int);
-insert into t1 values (1,2),(3,4);
-select * from t1 up where exists (select * from t1 where t1.a=up.a);
-a b
-1 2
-3 4
-explain extended select * from t1 up where exists (select * from t1 where t1.a=up.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY up ALL NULL NULL NULL NULL 2 100.00 Using where
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1276 Field or reference 'test.up.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`up`.`a` AS `a`,`test`.`up`.`b` AS `b` from `test`.`t1` `up` where <expr_cache><`test`.`up`.`a`>(<in_optimizer>(`test`.`up`.`a`,`test`.`up`.`a` in ( <materialize> (/* select#2 */ select `test`.`t1`.`a` from `test`.`t1` where 1 ), <primary_index_lookup>(`test`.`up`.`a` in <temporary table> on distinct_key where `test`.`up`.`a` = `<subquery2>`.`a`))))
-drop table t1;
-CREATE TABLE t1 (t1_a int);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (t2_a int, t2_b int, PRIMARY KEY (t2_a, t2_b));
-INSERT INTO t2 VALUES (1, 1), (1, 2);
-SELECT * FROM t1, t2 table2 WHERE t1_a = 1 AND table2.t2_a = 1
-HAVING table2.t2_b = (SELECT MAX(t2_b) FROM t2 WHERE t2_a = table2.t2_a);
-t1_a t2_a t2_b
-1 1 2
-DROP TABLE t1, t2;
-CREATE TABLE t1 (id int(11) default NULL,name varchar(10) default NULL);
-INSERT INTO t1 VALUES (1,'Tim'),(2,'Rebecca'),(3,NULL);
-CREATE TABLE t2 (id int(11) default NULL, pet varchar(10) default NULL);
-INSERT INTO t2 VALUES (1,'Fido'),(2,'Spot'),(3,'Felix');
-SELECT a.*, b.* FROM (SELECT * FROM t1) AS a JOIN t2 as b on a.id=b.id;
-id name id pet
-1 Tim 1 Fido
-2 Rebecca 2 Spot
-3 NULL 3 Felix
-drop table t1,t2;
-CREATE TABLE t1 ( a int, b int );
-CREATE TABLE t2 ( c int, d int );
-INSERT INTO t1 VALUES (1,2), (2,3), (3,4);
-SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-abc b
-1 2
-2 3
-3 4
-INSERT INTO t2 SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-select * from t2;
-c d
-1 2
-2 3
-3 4
-CREATE TABLE t3 SELECT a AS abc, b FROM t1 outr WHERE b =
-(SELECT MIN(b) FROM t1 WHERE a=outr.a);
-select * from t3;
-abc b
-1 2
-2 3
-3 4
-prepare stmt1 from "INSERT INTO t2 SELECT a AS abc, b FROM t1 outr WHERE b = (SELECT MIN(b) FROM t1 WHERE a=outr.a);";
-execute stmt1;
-deallocate prepare stmt1;
-select * from t2;
-c d
-1 2
-2 3
-3 4
-1 2
-2 3
-3 4
-drop table t3;
-prepare stmt1 from "CREATE TABLE t3 SELECT a AS abc, b FROM t1 outr WHERE b = (SELECT MIN(b) FROM t1 WHERE a=outr.a);";
-execute stmt1;
-select * from t3;
-abc b
-1 2
-2 3
-3 4
-deallocate prepare stmt1;
-DROP TABLE t1, t2, t3;
-CREATE TABLE `t1` ( `a` int(11) default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-insert into t1 values (1);
-CREATE TABLE `t2` ( `b` int(11) default NULL, `a` int(11) default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-insert into t2 values (1,2);
-select t000.a, count(*) `C` FROM t1 t000 GROUP BY t000.a HAVING count(*) > ALL (SELECT count(*) FROM t2 t001 WHERE t001.a=1);
-a C
-1 1
-drop table t1,t2;
-create table t1 (a int not null auto_increment primary key, b varchar(40), fulltext(b));
-insert into t1 (b) values ('ball'),('ball games'), ('games'), ('foo'), ('foobar'), ('Serg'), ('Sergei'),('Georg'), ('Patrik'),('Hakan');
-create table t2 (a int);
-insert into t2 values (1),(3),(2),(7);
-select a,b from t1 where match(b) against ('Ball') > 0;
-a b
-1 ball
-2 ball games
-select a from t2 where a in (select a from t1 where match(b) against ('Ball') > 0);
-a
-1
-2
-drop table t1,t2;
-CREATE TABLE t1(`IZAVORGANG_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin,`KUERZEL` VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_bin,`IZAANALYSEART_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin,`IZAPMKZ_ID` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_bin);
-CREATE INDEX AK01IZAVORGANG ON t1(izaAnalyseart_id,Kuerzel);
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000001','601','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000002','602','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000003','603','D0000000001','I0000000001');
-INSERT INTO t1(`IZAVORGANG_ID`,`KUERZEL`,`IZAANALYSEART_ID`,`IZAPMKZ_ID`)VALUES('D0000000004','101','D0000000001','I0000000001');
-SELECT `IZAVORGANG_ID` FROM t1 WHERE `KUERZEL` IN(SELECT MIN(`KUERZEL`)`Feld1` FROM t1 WHERE `KUERZEL` LIKE'601%'And`IZAANALYSEART_ID`='D0000000001');
-IZAVORGANG_ID
-D0000000001
-drop table t1;
-CREATE TABLE `t1` ( `aid` int(11) NOT NULL default '0', `bid` int(11) NOT NULL default '0', PRIMARY KEY (`aid`,`bid`));
-CREATE TABLE `t2` ( `aid` int(11) NOT NULL default '0', `bid` int(11) NOT NULL default '0', PRIMARY KEY (`aid`,`bid`));
-insert into t1 values (1,1),(1,2),(2,1),(2,2);
-insert into t2 values (1,2),(2,2);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-alter table t2 drop primary key;
-alter table t2 add key KEY1 (aid, bid);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-alter table t2 drop key KEY1;
-alter table t2 add primary key (bid, aid);
-select * from t1 where t1.aid not in (select aid from t2 where bid=t1.bid);
-aid bid
-1 1
-2 1
-drop table t1,t2;
-CREATE TABLE t1 (howmanyvalues bigint, avalue int);
-INSERT INTO t1 VALUES (1, 1),(2, 1),(2, 2),(3, 1),(3, 2),(3, 3),(4, 1),(4, 2),(4, 3),(4, 4);
-SELECT howmanyvalues, count(*) from t1 group by howmanyvalues;
-howmanyvalues count(*)
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.howmanyvalues) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-CREATE INDEX t1_howmanyvalues_idx ON t1 (howmanyvalues);
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues+1 = a.howmanyvalues+1) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.howmanyvalues) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 2
-3 3
-4 4
-SELECT a.howmanyvalues, (SELECT count(*) from t1 b where b.howmanyvalues = a.avalue) as mycount from t1 a group by a.howmanyvalues;
-howmanyvalues mycount
-1 1
-2 1
-3 1
-4 1
-drop table t1;
-create table t1 (x int);
-select (select b.x from t1 as b where b.x=a.x) from t1 as a where a.x=2 group by a.x;
-(select b.x from t1 as b where b.x=a.x)
-drop table t1;
-CREATE TABLE `t1` ( `master` int(10) unsigned NOT NULL default '0', `map` smallint(6) unsigned NOT NULL default '0', `slave` int(10) unsigned NOT NULL default '0', `access` int(10) unsigned NOT NULL default '0', UNIQUE KEY `access_u` (`master`,`map`,`slave`));
-INSERT INTO `t1` VALUES (1,0,0,700),(1,1,1,400),(1,5,5,400),(1,12,12,400),(1,12,32,400),(4,12,32,400);
-CREATE TABLE `t2` ( `id` int(10) unsigned NOT NULL default '0', `pid` int(10) unsigned NOT NULL default '0', `map` smallint(6) unsigned NOT NULL default '0', `level` tinyint(4) unsigned NOT NULL default '0', `title` varchar(255) default NULL, PRIMARY KEY (`id`,`pid`,`map`), KEY `level` (`level`), KEY `id` (`id`,`map`)) ;
-INSERT INTO `t2` VALUES (6,5,12,7,'a'),(12,0,0,7,'a'),(12,1,0,7,'a'),(12,5,5,7,'a'),(12,5,12,7,'a');
-SELECT b.sc FROM (SELECT (SELECT a.access FROM t1 a WHERE a.map = op.map AND a.slave = op.pid AND a.master = 1) ac FROM t2 op WHERE op.id = 12 AND op.map = 0) b;
-ERROR 42S22: Unknown column 'b.sc' in 'field list'
-SELECT b.ac FROM (SELECT (SELECT a.access FROM t1 a WHERE a.map = op.map AND a.slave = op.pid AND a.master = 1) ac FROM t2 op WHERE op.id = 12 AND op.map = 0) b;
-ac
-700
-NULL
-drop tables t1,t2;
-create table t1 (a int not null, b int not null, c int, primary key (a,b));
-insert into t1 values (1,1,1), (2,2,2), (3,3,3);
-set @b:= 0;
-explain select sum(a) from t1 where b > @b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 8 NULL 3 Using where; Using index
-set @a:= (select sum(a) from t1 where b > @b);
-explain select a from t1 where c=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-do @a:= (select sum(a) from t1 where b > @b);
-explain select a from t1 where c=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-drop table t1;
-connect root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
-connection root;
-set @got_val= (SELECT 1 FROM (SELECT 'A' as my_col) as T1 ) ;
-disconnect root;
-connection default;
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1,1),(1,2),(1,3),(2,4),(2,5);
-insert into t2 values (1,3),(2,1);
-select distinct a,b, (select max(b) from t2 where t1.b=t2.a) from t1 order by t1.b;
-a b (select max(b) from t2 where t1.b=t2.a)
-1 1 3
-1 2 1
-1 3 NULL
-2 4 NULL
-2 5 NULL
-drop table t1, t2;
-create table t1 (id int);
-create table t2 (id int, body text, fulltext (body));
-insert into t1 values(1),(2),(3);
-insert into t2 values (1,'test'), (2,'mysql'), (3,'test'), (4,'test');
-select count(distinct id) from t1 where id in (select id from t2 where match(body) against ('mysql' in boolean mode));
-count(distinct id)
-1
-drop table t2,t1;
-create table t1 (s1 int,s2 int);
-insert into t1 values (20,15);
-select * from t1 where (('a',null) <=> (select 'a',s2 from t1 where s1 = 0));
-s1 s2
-drop table t1;
-create table t1 (s1 int);
-insert into t1 values (1),(null);
-select * from t1 where s1 < all (select s1 from t1);
-s1
-select s1, s1 < all (select s1 from t1) from t1;
-s1 s1 < all (select s1 from t1)
-1 0
-NULL NULL
-drop table t1;
-CREATE TABLE t1 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL default 'Asia',
-Region char(26) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-IndepYear smallint(6) default NULL,
-Population int(11) NOT NULL default '0',
-LifeExpectancy float(3,1) default NULL,
-GNP float(10,2) default NULL,
-GNPOld float(10,2) default NULL,
-LocalName char(45) NOT NULL default '',
-GovernmentForm char(45) NOT NULL default '',
-HeadOfState char(60) default NULL,
-Capital int(11) default NULL,
-Code2 char(2) NOT NULL default ''
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('XXX','Xxxxx','Oceania','Xxxxxx',26.00,0,0,0,0,0,'Xxxxx','Xxxxx','Xxxxx',NULL,'XX');
-INSERT INTO t1 VALUES ('ASM','American Samoa','Oceania','Polynesia',199.00,0,68000,75.1,334.00,NULL,'Amerika Samoa','US Territory','George W. Bush',54,'AS');
-INSERT INTO t1 VALUES ('ATF','French Southern territories','Antarctica','Antarctica',7780.00,0,0,NULL,0.00,NULL,'Terres australes françaises','Nonmetropolitan Territory of France','Jacques Chirac',NULL,'TF');
-INSERT INTO t1 VALUES ('UMI','United States Minor Outlying Islands','Oceania','Micronesia/Caribbean',16.00,0,0,NULL,0.00,NULL,'United States Minor Outlying Islands','Dependent Territory of the US','George W. Bush',NULL,'UM');
-/*!40000 ALTER TABLE t1 ENABLE KEYS */;
-SELECT DISTINCT Continent AS c FROM t1 outr WHERE
-Code <> SOME ( SELECT Code FROM t1 WHERE Continent = outr.Continent AND
-Population < 200);
-c
-Oceania
-drop table t1;
-create table t1 (a1 int);
-create table t2 (b1 int);
-select * from t1 where a2 > any(select b1 from t2);
-ERROR 42S22: Unknown column 'a2' in 'IN/ALL/ANY subquery'
-select * from t1 where a1 > any(select b1 from t2);
-a1
-drop table t1,t2;
-create table t1 (a integer, b integer);
-select (select * from t1) = (select 1,2);
-(select * from t1) = (select 1,2)
-NULL
-select (select 1,2) = (select * from t1);
-(select 1,2) = (select * from t1)
-NULL
-select row(1,2) = ANY (select * from t1);
-row(1,2) = ANY (select * from t1)
-0
-select row(1,2) != ALL (select * from t1);
-row(1,2) != ALL (select * from t1)
-1
-drop table t1;
-create table t1 (a integer, b integer);
-select row(1,(2,2)) in (select * from t1 );
-ERROR 21000: Operand should contain 2 column(s)
-select row(1,(2,2)) = (select * from t1 );
-ERROR 21000: Operand should contain 2 column(s)
-select (select * from t1) = row(1,(2,2));
-ERROR 21000: Operand should contain 1 column(s)
-drop table t1;
-create table t1 (a integer);
-insert into t1 values (1);
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx ;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 as xx, 1 = ALL ( select 1 from t1 where 1 = xx );
-xx 1 = ALL ( select 1 from t1 where 1 = xx )
-1 1
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx from DUAL;
-ERROR 42S22: Reference 'xx' not supported (forward reference in item list)
-drop table t1;
-CREATE TABLE t1 (
-categoryId int(11) NOT NULL,
-courseId int(11) NOT NULL,
-startDate datetime NOT NULL,
-endDate datetime NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL,
-attributes text NOT NULL
-);
-INSERT INTO t1 VALUES (1,41,'2004-02-09','2010-01-01','2004-02-09','2004-02-09',''),
-(1,86,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(1,87,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(2,52,'2004-03-15','2004-10-01','2004-03-15','2004-09-17',''),
-(2,53,'2004-03-16','2004-10-01','2004-03-16','2004-09-17',''),
-(2,88,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(2,89,'2004-08-16','2004-08-16','2004-08-16','2004-08-16',''),
-(3,51,'2004-02-09','2010-01-01','2004-02-09','2004-02-09',''),
-(5,12,'2004-02-18','2010-01-01','2004-02-18','2004-02-18','');
-CREATE TABLE t2 (
-userId int(11) NOT NULL,
-courseId int(11) NOT NULL,
-date datetime NOT NULL
-);
-INSERT INTO t2 VALUES (5141,71,'2003-11-18'),
-(5141,72,'2003-11-25'),(5141,41,'2004-08-06'),
-(5141,52,'2004-08-06'),(5141,53,'2004-08-06'),
-(5141,12,'2004-08-06'),(5141,86,'2004-10-21'),
-(5141,87,'2004-10-21'),(5141,88,'2004-10-21'),
-(5141,89,'2004-10-22'),(5141,51,'2004-10-26');
-CREATE TABLE t3 (
-groupId int(11) NOT NULL,
-parentId int(11) NOT NULL,
-startDate datetime NOT NULL,
-endDate datetime NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL,
-ordering int(11)
-);
-INSERT INTO t3 VALUES (12,9,'1000-01-01','3999-12-31','2004-01-29','2004-01-29',NULL);
-CREATE TABLE t4 (
-id int(11) NOT NULL,
-groupTypeId int(11) NOT NULL,
-groupKey varchar(50) NOT NULL,
-name text,
-ordering int(11),
-description text,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL
-);
-INSERT INTO t4 VALUES (9,5,'stationer','stationer',0,'Stationer','2004-01-29','2004-01-29'),
-(12,5,'group2','group2',0,'group2','2004-01-29','2004-01-29');
-CREATE TABLE t5 (
-userId int(11) NOT NULL,
-groupId int(11) NOT NULL,
-createDate datetime NOT NULL,
-modifyDate timestamp NOT NULL
-);
-INSERT INTO t5 VALUES (5141,12,'2004-08-06','2004-08-06');
-select
-count(distinct t2.userid) pass,
-groupstuff.*,
-count(t2.courseid) crse,
-t1.categoryid,
-t2.courseid,
-date_format(date, '%b%y') as colhead
-from t2
-join t1 on t2.courseid=t1.courseid
-join
-(
-select
-t5.userid,
-parentid,
-parentgroup,
-childid,
-groupname,
-grouptypeid
-from t5
-join
-(
-select t4.id as parentid,
-t4.name as parentgroup,
-t4.id as childid,
-t4.name as groupname,
-t4.grouptypeid
-from t4
-) as gin on t5.groupid=gin.childid
-) as groupstuff on t2.userid = groupstuff.userid
-group by
-groupstuff.groupname, colhead , t2.courseid;
-pass userid parentid parentgroup childid groupname grouptypeid crse categoryid courseid colhead
-1 5141 12 group2 12 group2 5 1 5 12 Aug04
-1 5141 12 group2 12 group2 5 1 1 41 Aug04
-1 5141 12 group2 12 group2 5 1 2 52 Aug04
-1 5141 12 group2 12 group2 5 1 2 53 Aug04
-1 5141 12 group2 12 group2 5 1 3 51 Oct04
-1 5141 12 group2 12 group2 5 1 1 86 Oct04
-1 5141 12 group2 12 group2 5 1 1 87 Oct04
-1 5141 12 group2 12 group2 5 1 2 88 Oct04
-1 5141 12 group2 12 group2 5 1 2 89 Oct04
-drop table t1, t2, t3, t4, t5;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-SELECT 1 FROM t1 WHERE (SELECT 1) in (SELECT 1);
-1
-1
-1
-1
-drop table t1;
-create table t1 (a int);
-create table t2 (a int);
-insert into t1 values (1),(2);
-insert into t2 values (0),(1),(2),(3);
-select a from t2 where a in (select a from t1);
-a
-1
-2
-select a from t2 having a in (select a from t1);
-a
-1
-2
-prepare stmt1 from "select a from t2 where a in (select a from t1)";
-execute stmt1;
-a
-1
-2
-execute stmt1;
-a
-1
-2
-deallocate prepare stmt1;
-prepare stmt1 from "select a from t2 having a in (select a from t1)";
-execute stmt1;
-a
-1
-2
-execute stmt1;
-a
-1
-2
-deallocate prepare stmt1;
-drop table t1, t2;
-create table t1 (a int, b int);
-insert into t1 values (1,2);
-select 1 = (select * from t1);
-ERROR HY000: Illegal parameter data types int and row for operation '='
-select (select * from t1) = 1;
-ERROR HY000: Illegal parameter data types row and int for operation '='
-select (1,2) = (select a from t1);
-ERROR HY000: Illegal parameter data types row and int for operation '='
-select (select a from t1) = (1,2);
-ERROR HY000: Illegal parameter data types int and row for operation '='
-select (1,2,3) = (select * from t1);
-ERROR 21000: Operand should contain 3 column(s)
-select (select * from t1) = (1,2,3);
-ERROR 21000: Operand should contain 2 column(s)
-drop table t1;
-CREATE TABLE `t1` (
-`itemid` bigint(20) unsigned NOT NULL auto_increment,
-`sessionid` bigint(20) unsigned default NULL,
-`time` int(10) unsigned NOT NULL default '0',
-`type` set('A','D','E','F','G','I','L','N','U') collate latin1_general_ci NOT
-NULL default '',
-`data` text collate latin1_general_ci NOT NULL,
-PRIMARY KEY (`itemid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t1` VALUES (1, 1, 1, 'D', '');
-CREATE TABLE `t2` (
-`sessionid` bigint(20) unsigned NOT NULL auto_increment,
-`pid` int(10) unsigned NOT NULL default '0',
-`date` int(10) unsigned NOT NULL default '0',
-`ip` varchar(15) collate latin1_general_ci NOT NULL default '',
-PRIMARY KEY (`sessionid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t2` VALUES (1, 1, 1, '10.10.10.1');
-SELECT s.ip, count( e.itemid ) FROM `t1` e JOIN t2 s ON s.sessionid = e.sessionid WHERE e.sessionid = ( SELECT sessionid FROM t2 ORDER BY sessionid DESC LIMIT 1 ) GROUP BY s.ip HAVING count( e.itemid ) >0 LIMIT 0 , 30;
-ip count( e.itemid )
-10.10.10.1 1
-drop tables t1,t2;
-create table t1 (fld enum('0','1'));
-insert into t1 values ('1');
-select * from (select max(fld) from t1) as foo;
-max(fld)
-1
-drop table t1;
-set @tmp11867_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin_with_cache=off';
-CREATE TABLE t1 (one int, two int, flag char(1));
-CREATE TABLE t2 (one int, two int, flag char(1));
-INSERT INTO t1 VALUES(1,2,'Y'),(2,3,'Y'),(3,4,'Y'),(5,6,'N'),(7,8,'N');
-INSERT INTO t2 VALUES(1,2,'Y'),(2,3,'Y'),(3,4,'Y'),(5,6,'N'),(7,8,'N');
-SELECT * FROM t1
-WHERE ROW(one,two) IN (SELECT DISTINCT one,two FROM t2 WHERE flag = 'N');
-one two flag
-5 6 N
-7 8 N
-SELECT * FROM t1
-WHERE ROW(one,two) IN (SELECT DISTINCT one,two FROM t1 WHERE flag = 'N');
-one two flag
-5 6 N
-7 8 N
-insert into t2 values (null,null,'N');
-insert into t2 values (null,3,'0');
-insert into t2 values (null,5,'0');
-insert into t2 values (10,null,'0');
-insert into t1 values (10,3,'0');
-insert into t1 values (10,5,'0');
-insert into t1 values (10,10,'0');
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N') as 'test' from t1;
-one two test
-1 2 NULL
-2 3 NULL
-3 4 NULL
-5 6 1
-7 8 1
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two from t1 where ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N');
-one two
-5 6
-7 8
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N' group by one,two) as 'test' from t1;
-one two test
-1 2 NULL
-2 3 NULL
-3 4 NULL
-5 6 1
-7 8 1
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0') as 'test' from t1;
-one two test
-1 2 0
-2 3 NULL
-3 4 0
-5 6 0
-7 8 0
-10 3 NULL
-10 5 NULL
-10 10 NULL
-SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0' group by one,two) as 'test' from t1;
-one two test
-1 2 0
-2 3 NULL
-3 4 0
-5 6 0
-7 8 0
-10 3 NULL
-10 5 NULL
-10 10 NULL
-explain extended SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0') as 'test' from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two`,<expr_cache><`test`.`t1`.`one`,`test`.`t1`.`two`>(<in_optimizer>((`test`.`t1`.`one`,`test`.`t1`.`two`),(`test`.`t1`.`one`,`test`.`t1`.`two`) in ( <materialize> (/* select#2 */ select `test`.`t2`.`one`,`test`.`t2`.`two` from `test`.`t2` where `test`.`t2`.`flag` = '0' ), <primary_index_lookup>(`test`.`t1`.`one` in <temporary table> on distinct_key where `test`.`t1`.`one` = `<subquery2>`.`one` and `test`.`t1`.`two` = `<subquery2>`.`two`)))) AS `test` from `test`.`t1`
-explain extended SELECT one,two from t1 where ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two` from `test`.`t1` where <expr_cache><`test`.`t1`.`one`,`test`.`t1`.`two`>(<in_optimizer>((`test`.`t1`.`one`,`test`.`t1`.`two`),(`test`.`t1`.`one`,`test`.`t1`.`two`) in ( <materialize> (/* select#2 */ select `test`.`t2`.`one`,`test`.`t2`.`two` from `test`.`t2` where `test`.`t2`.`flag` = 'N' ), <primary_index_lookup>(`test`.`t1`.`one` in <temporary table> on distinct_key where `test`.`t1`.`one` = `<subquery2>`.`one` and `test`.`t1`.`two` = `<subquery2>`.`two`))))
-explain extended SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = '0' group by one,two) as 'test' from t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 9 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`one` AS `one`,`test`.`t1`.`two` AS `two`,<expr_cache><`test`.`t1`.`one`,`test`.`t1`.`two`>(<in_optimizer>((`test`.`t1`.`one`,`test`.`t1`.`two`),(`test`.`t1`.`one`,`test`.`t1`.`two`) in ( <materialize> (/* select#2 */ select `test`.`t2`.`one`,`test`.`t2`.`two` from `test`.`t2` where `test`.`t2`.`flag` = '0' ), <primary_index_lookup>(`test`.`t1`.`one` in <temporary table> on distinct_key where `test`.`t1`.`one` = `<subquery2>`.`one` and `test`.`t1`.`two` = `<subquery2>`.`two`)))) AS `test` from `test`.`t1`
-DROP TABLE t1,t2;
-set optimizer_switch=@tmp11867_optimizer_switch;
-CREATE TABLE t1 (a char(5), b char(5));
-INSERT INTO t1 VALUES (NULL,'aaa'), ('aaa','aaa');
-SELECT * FROM t1 WHERE (a,b) IN (('aaa','aaa'), ('aaa','bbb'));
-a b
-aaa aaa
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int, b int);
-CREATE TABLE t3 (b int NOT NULL);
-INSERT INTO t1 VALUES (1), (2), (3), (4);
-INSERT INTO t2 VALUES (1,10), (3,30);
-SELECT * FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t3.b IS NOT NULL OR t2.a > 10;
-a b b
-SELECT * FROM t1
-WHERE t1.a NOT IN (SELECT a FROM t2 LEFT JOIN t3 ON t2.b=t3.b
-WHERE t3.b IS NOT NULL OR t2.a > 10);
-a
-1
-2
-3
-4
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (f1 INT);
-CREATE TABLE t2 (f2 INT);
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2);
-f1
-1
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2 WHERE 1=0);
-f1
-1
-INSERT INTO t2 VALUES (1);
-INSERT INTO t2 VALUES (2);
-SELECT * FROM t1 WHERE f1 > ALL (SELECT f2 FROM t2 WHERE f2=0);
-f1
-1
-DROP TABLE t1, t2;
-select 1 from dual where 1 < any (select 2);
-1
-1
-select 1 from dual where 1 < all (select 2);
-1
-1
-select 1 from dual where 2 > any (select 1);
-1
-1
-select 1 from dual where 2 > all (select 1);
-1
-1
-select 1 from dual where 1 < any (select 2 from dual);
-1
-1
-select 1 from dual where 1 < all (select 2 from dual where 1!=1);
-1
-1
-create table t1 (s1 char);
-insert into t1 values (1),(2);
-select * from t1 where (s1 < any (select s1 from t1));
-s1
-1
-select * from t1 where not (s1 < any (select s1 from t1));
-s1
-2
-select * from t1 where (s1 < ALL (select s1+1 from t1));
-s1
-1
-select * from t1 where not(s1 < ALL (select s1+1 from t1));
-s1
-2
-select * from t1 where (s1+1 = ANY (select s1 from t1));
-s1
-1
-select * from t1 where NOT(s1+1 = ANY (select s1 from t1));
-s1
-2
-select * from t1 where (s1 = ALL (select s1/s1 from t1));
-s1
-1
-select * from t1 where NOT(s1 = ALL (select s1/s1 from t1));
-s1
-2
-drop table t1;
-create table t1 (
-retailerID varchar(8) NOT NULL,
-statusID int(10) unsigned NOT NULL,
-changed datetime NOT NULL,
-UNIQUE KEY retailerID (retailerID, statusID, changed)
-);
-INSERT INTO t1 VALUES("0026", "1", "2005-12-06 12:18:56");
-INSERT INTO t1 VALUES("0026", "2", "2006-01-06 12:25:53");
-INSERT INTO t1 VALUES("0037", "1", "2005-12-06 12:18:56");
-INSERT INTO t1 VALUES("0037", "2", "2006-01-06 12:25:53");
-INSERT INTO t1 VALUES("0048", "1", "2006-01-06 12:37:50");
-INSERT INTO t1 VALUES("0059", "1", "2006-01-06 12:37:50");
-select * from t1 r1
-where (r1.retailerID,(r1.changed)) in
-(SELECT r2.retailerId,(max(changed)) from t1 r2
-group by r2.retailerId);
-retailerID statusID changed
-0026 2 2006-01-06 12:25:53
-0037 2 2006-01-06 12:25:53
-0048 1 2006-01-06 12:37:50
-0059 1 2006-01-06 12:37:50
-drop table t1;
-create table t1(a int, primary key (a));
-insert into t1 values (10);
-create table t2 (a int primary key, b varchar(32), c int, unique key b(c, b));
-insert into t2(a, c, b) values (1,10,'359'), (2,10,'35988'), (3,10,'35989');
-explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
-1 PRIMARY r const PRIMARY PRIMARY 4 const 1
-2 SUBQUERY t2 range b b 40 NULL 2 Using where
-SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
-a a b
-10 3 35989
-explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
-1 PRIMARY r const PRIMARY PRIMARY 4 const 1
-2 SUBQUERY t2 range b b 40 NULL 2 Using index condition
-SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
-ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
- ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
-a a b
-10 1 359
-drop table t1,t2;
-CREATE TABLE t1 (
-field1 int NOT NULL,
-field2 int NOT NULL,
-field3 int NOT NULL,
-PRIMARY KEY (field1,field2,field3)
-);
-CREATE TABLE t2 (
-fieldA int NOT NULL,
-fieldB int NOT NULL,
-PRIMARY KEY (fieldA,fieldB)
-);
-INSERT INTO t1 VALUES
-(1,1,1), (1,1,2), (1,2,1), (1,2,2), (1,2,3), (1,3,1);
-INSERT INTO t2 VALUES (1,1), (1,2), (1,3);
-SELECT field1, field2, COUNT(*)
-FROM t1 GROUP BY field1, field2;
-field1 field2 COUNT(*)
-1 1 2
-1 2 3
-1 3 1
-SELECT field1, field2
-FROM t1
-GROUP BY field1, field2
-HAVING COUNT(*) >= ALL (SELECT fieldB
-FROM t2 WHERE fieldA = field1);
-field1 field2
-1 2
-SELECT field1, field2
-FROM t1
-GROUP BY field1, field2
-HAVING COUNT(*) < ANY (SELECT fieldB
-FROM t2 WHERE fieldA = field1);
-field1 field2
-1 1
-1 3
-DROP TABLE t1, t2;
-CREATE TABLE t1(a int, INDEX (a));
-INSERT INTO t1 VALUES (1), (3), (5), (7);
-INSERT INTO t1 VALUES (NULL);
-CREATE TABLE t2(a int);
-INSERT INTO t2 VALUES (1),(2),(3);
-EXPLAIN SELECT a, a IN (SELECT a FROM t1) FROM t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3
-2 MATERIALIZED t1 index a a 5 NULL 5 Using index
-SELECT a, a IN (SELECT a FROM t1) FROM t2;
-a a IN (SELECT a FROM t1)
-1 1
-2 NULL
-3 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES ('1998-09-23'), ('2003-03-25');
-CREATE TABLE t2 AS SELECT
-(SELECT a FROM t1 WHERE a < '2000-01-01') AS sub_a
-FROM t1 WHERE a > '2000-01-01';
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `sub_a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t3 AS (SELECT a FROM t1 WHERE a < '2000-01-01') UNION (SELECT a FROM t1 WHERE a > '2000-01-01');
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) > 0;
-a
-SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) IS NULL;
-a
-1
-2
-EXPLAIN SELECT a FROM t1 WHERE (SELECT 1 FROM DUAL WHERE 1=0) IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (2), (4), (1), (3);
-CREATE TABLE t2 (b int, c int);
-INSERT INTO t2 VALUES
-(2,1), (1,3), (2,1), (4,4), (2,2), (1,4);
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 2 );
-a
-2
-4
-1
-3
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 1);
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 2), a;
-a
-1
-2
-3
-4
-SELECT a FROM t1 ORDER BY (SELECT c FROM t2 WHERE b > 1), a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT b, MAX(c) FROM t2 GROUP BY b, (SELECT c FROM t2 WHERE b > 2);
-b MAX(c)
-1 4
-2 2
-4 4
-SELECT b, MAX(c) FROM t2 GROUP BY b, (SELECT c FROM t2 WHERE b > 1);
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 2),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-a
-1
-2
-3
-4
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 1),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b)) > 3;
-a
-4
-SELECT a FROM t1 GROUP BY a
-HAVING IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b)) > 3;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 2),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b));
-a
-1
-2
-3
-4
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 1),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b));
-ERROR 21000: Subquery returns more than 1 row
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 2 ORDER BY b));
-a
-1
-2
-3
-4
-SELECT a FROM t1
-ORDER BY IFNULL((SELECT b FROM t2 WHERE b > 4),
-(SELECT c FROM t2 WHERE c=a AND b > 1 ORDER BY b));
-ERROR 21000: Subquery returns more than 1 row
-DROP TABLE t1,t2;
-create table t1 (df decimal(5,1));
-insert into t1 values(1.1);
-insert into t1 values(2.2);
-select * from t1 where df <= all (select avg(df) from t1 group by df);
-df
-1.1
-select * from t1 where df >= all (select avg(df) from t1 group by df);
-df
-2.2
-drop table t1;
-create table t1 (df decimal(5,1));
-insert into t1 values(1.1);
-select 1.1 * exists(select * from t1);
-1.1 * exists(select * from t1)
-1.1
-drop table t1;
-CREATE TABLE t1 (
-grp int(11) default NULL,
-a decimal(10,2) default NULL);
-insert into t1 values (1, 1), (2, 2), (2, 3), (3, 4), (3, 5), (3, 6), (NULL, NULL);
-select * from t1;
-grp a
-1 1.00
-2 2.00
-2 3.00
-3 4.00
-3 5.00
-3 6.00
-NULL NULL
-select min(a) from t1 group by grp;
-min(a)
-NULL
-1.00
-2.00
-4.00
-drop table t1;
-CREATE table t1 ( c1 integer );
-INSERT INTO t1 VALUES ( 1 );
-INSERT INTO t1 VALUES ( 2 );
-INSERT INTO t1 VALUES ( 3 );
-CREATE TABLE t2 ( c2 integer );
-INSERT INTO t2 VALUES ( 1 );
-INSERT INTO t2 VALUES ( 4 );
-INSERT INTO t2 VALUES ( 5 );
-SELECT * FROM t1 LEFT JOIN t2 ON c1 = c2 WHERE c2 IN (1);
-c1 c2
-1 1
-SELECT * FROM t1 LEFT JOIN t2 ON c1 = c2
-WHERE c2 IN ( SELECT c2 FROM t2 WHERE c2 IN ( 1 ) );
-c1 c2
-1 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 ( c1 integer );
-INSERT INTO t1 VALUES ( 1 );
-INSERT INTO t1 VALUES ( 2 );
-INSERT INTO t1 VALUES ( 3 );
-INSERT INTO t1 VALUES ( 6 );
-CREATE TABLE t2 ( c2 integer );
-INSERT INTO t2 VALUES ( 1 );
-INSERT INTO t2 VALUES ( 4 );
-INSERT INTO t2 VALUES ( 5 );
-INSERT INTO t2 VALUES ( 6 );
-CREATE TABLE t3 ( c3 integer );
-INSERT INTO t3 VALUES ( 7 );
-INSERT INTO t3 VALUES ( 8 );
-SELECT c1,c2 FROM t1 LEFT JOIN t2 ON c1 = c2
-WHERE EXISTS (SELECT c3 FROM t3 WHERE c2 IS NULL );
-c1 c2
-2 NULL
-3 NULL
-DROP TABLE t1,t2,t3;
-CREATE TABLE `t1` (
-`itemid` bigint(20) unsigned NOT NULL auto_increment,
-`sessionid` bigint(20) unsigned default NULL,
-`time` int(10) unsigned NOT NULL default '0',
-`type` set('A','D','E','F','G','I','L','N','U') collate latin1_general_ci NOT
-NULL default '',
-`data` text collate latin1_general_ci NOT NULL,
-PRIMARY KEY (`itemid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t1` VALUES (1, 1, 1, 'D', '');
-CREATE TABLE `t2` (
-`sessionid` bigint(20) unsigned NOT NULL auto_increment,
-`pid` int(10) unsigned NOT NULL default '0',
-`date` int(10) unsigned NOT NULL default '0',
-`ip` varchar(15) collate latin1_general_ci NOT NULL default '',
-PRIMARY KEY (`sessionid`)
-) DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-INSERT INTO `t2` VALUES (1, 1, 1, '10.10.10.1');
-SELECT s.ip, count( e.itemid ) FROM `t1` e JOIN t2 s ON s.sessionid = e.sessionid WHERE e.sessionid = ( SELECT sessionid FROM t2 ORDER BY sessionid DESC LIMIT 1 ) GROUP BY s.ip HAVING count( e.itemid ) >0 LIMIT 0 , 30;
-ip count( e.itemid )
-10.10.10.1 1
-drop tables t1,t2;
-CREATE TABLE t1 (EMPNUM CHAR(3));
-CREATE TABLE t2 (EMPNUM CHAR(3) );
-INSERT INTO t1 VALUES ('E1'),('E2');
-INSERT INTO t2 VALUES ('E1');
-DELETE FROM t1
-WHERE t1.EMPNUM NOT IN
-(SELECT t2.EMPNUM
-FROM t2
-WHERE t1.EMPNUM = t2.EMPNUM);
-select * from t1;
-EMPNUM
-E1
-DROP TABLE t1,t2;
-CREATE TABLE t1(select_id BIGINT, values_id BIGINT);
-INSERT INTO t1 VALUES (1, 1);
-CREATE TABLE t2 (select_id BIGINT, values_id BIGINT,
-PRIMARY KEY(select_id,values_id));
-INSERT INTO t2 VALUES (0, 1), (0, 2), (0, 3), (1, 5);
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id IN (1, 0));
-values_id
-1
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id BETWEEN 0 AND 1);
-values_id
-1
-SELECT values_id FROM t1
-WHERE values_id IN (SELECT values_id FROM t2
-WHERE select_id = 0 OR select_id = 1);
-values_id
-1
-DROP TABLE t1, t2;
-create table t1 (fld enum('0','1'));
-insert into t1 values ('1');
-select * from (select max(fld) from t1) as foo;
-max(fld)
-1
-drop table t1;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (c int, d int);
-CREATE TABLE t3 (e int);
-INSERT INTO t1 VALUES
-(1,10), (2,10), (1,20), (2,20), (3,20), (2,30), (4,40);
-INSERT INTO t2 VALUES
-(2,10), (2,20), (4,10), (5,10), (3,20), (2,40);
-INSERT INTO t3 VALUES (10), (30), (10), (20) ;
-SELECT a, MAX(b), MIN(b) FROM t1 GROUP BY a;
-a MAX(b) MIN(b)
-1 20 10
-2 30 10
-3 20 20
-4 40 40
-SELECT * FROM t2;
-c d
-2 10
-2 20
-4 10
-5 10
-3 20
-2 40
-SELECT * FROM t3;
-e
-10
-30
-10
-20
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)>20);
-a
-2
-4
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)<d);
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2 WHERE MAX(b)>d);
-a
-2
-4
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE d >= SOME(SELECT e FROM t3 WHERE MAX(b)=e));
-a
-2
-3
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e <= d));
-a
-2
-3
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE d > SOME(SELECT e FROM t3 WHERE MAX(b)=e));
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e < d));
-a
-2
-SELECT a FROM t1 GROUP BY a
-HAVING a IN (SELECT c FROM t2
-WHERE MIN(b) < d AND
-EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e <= d));
-a
-2
-SELECT a, SUM(a) FROM t1 GROUP BY a;
-a SUM(a)
-1 2
-2 6
-3 3
-4 4
-SELECT a FROM t1
-WHERE EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) = c) GROUP BY a;
-a
-3
-4
-SELECT a FROM t1 GROUP BY a
-HAVING EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) = c);
-a
-1
-3
-4
-SELECT a FROM t1
-WHERE a < 3 AND
-EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) != c) GROUP BY a;
-a
-1
-2
-SELECT a FROM t1
-WHERE a < 3 AND
-EXISTS(SELECT c FROM t2 GROUP BY c HAVING SUM(a) != c);
-a
-1
-2
-1
-2
-2
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a < ALL(SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING EXISTS(SELECT t3.e FROM t3 GROUP BY t3.e
-HAVING SUM(t1.a+t2.c) < t3.e/4));
-a
-1
-2
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a > ALL(SELECT t2.c FROM t2
-WHERE EXISTS(SELECT t3.e FROM t3 GROUP BY t3.e
-HAVING SUM(t1.a+t2.c) < t3.e/4));
-a
-4
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a > ALL(SELECT t2.c FROM t2
-WHERE EXISTS(SELECT t3.e FROM t3
-WHERE SUM(t1.a+t2.c) < t3.e/4));
-ERROR HY000: Invalid use of group function
-SELECT t1.a from t1 GROUP BY t1.a HAVING AVG(SUM(t1.b)) > 20;
-ERROR HY000: Invalid use of group function
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING AVG(t2.c+SUM(t1.b)) > 20);
-a
-2
-3
-4
-SELECT t1.a FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING AVG(SUM(t1.b)) > 20);
-a
-2
-4
-SELECT t1.a, SUM(b) AS sum FROM t1 GROUP BY t1.a
-HAVING t1.a IN (SELECT t2.c FROM t2 GROUP BY t2.c
-HAVING t2.c+sum > 20);
-a sum
-2 60
-3 20
-4 40
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a varchar(5), b varchar(10));
-INSERT INTO t1 VALUES
-('AAA', 5), ('BBB', 4), ('BBB', 1), ('CCC', 2),
-('CCC', 7), ('AAA', 2), ('AAA', 4), ('BBB', 3), ('AAA', 8);
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-a b
-BBB 4
-CCC 7
-AAA 8
-EXPLAIN
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 9 Using where
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 9 Using temporary
-ALTER TABLE t1 ADD INDEX(a);
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-a b
-BBB 4
-CCC 7
-AAA 8
-EXPLAIN
-SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 9 Using where
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 9 Using temporary
-DROP TABLE t1;
-create table t1( f1 int,f2 int);
-insert into t1 values (1,1),(2,2);
-select tt.t from (select 'crash1' as t, f2 from t1) as tt left join t1 on tt.t = 'crash2' and tt.f2 = t1.f2 where tt.t = 'crash1';
-t
-crash1
-crash1
-drop table t1;
-create table t1 (c int, key(c));
-insert into t1 values (1142477582), (1142455969);
-create table t2 (a int, b int);
-insert into t2 values (2, 1), (1, 0);
-delete from t1 where c <= 1140006215 and (select b from t2 where a = 2) = 1;
-drop table t1, t2;
-CREATE TABLE t1 (a INT);
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE no_such_column = ANY (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'IN/ALL/ANY subquery'
-CREATE VIEW v2 AS SELECT * FROM t1 WHERE no_such_column = (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'where clause'
-SELECT * FROM t1 WHERE no_such_column = ANY (SELECT 1);
-ERROR 42S22: Unknown column 'no_such_column' in 'IN/ALL/ANY subquery'
-DROP TABLE t1;
-create table t1 (i int, j bigint);
-insert into t1 values (1, 2), (2, 2), (3, 2);
-select * from (select min(i) from t1 where j=(select * from (select min(j) from t1) t2)) t3;
-min(i)
-1
-drop table t1;
-CREATE TABLE t1 (i BIGINT UNSIGNED);
-INSERT INTO t1 VALUES (10000000000000000000);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (i BIGINT UNSIGNED);
-INSERT INTO t2 VALUES (10000000000000000000);
-INSERT INTO t2 VALUES (1);
-/* simple test */
-SELECT t1.i FROM t1 JOIN t2 ON t1.i = t2.i;
-i
-10000000000000000000
-1
-/* subquery test */
-SELECT t1.i FROM t1 WHERE t1.i = (SELECT MAX(i) FROM t2);
-i
-10000000000000000000
-/* subquery test with cast*/
-SELECT t1.i FROM t1 WHERE t1.i = CAST((SELECT MAX(i) FROM t2) AS UNSIGNED);
-i
-10000000000000000000
-DROP TABLE t1;
-DROP TABLE t2;
-CREATE TABLE t1 (
-id bigint(20) unsigned NOT NULL auto_increment,
-name varchar(255) NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t1 VALUES
-(1, 'Balazs'), (2, 'Joe'), (3, 'Frank');
-CREATE TABLE t2 (
-id bigint(20) unsigned NOT NULL auto_increment,
-mid bigint(20) unsigned NOT NULL,
-date date NOT NULL,
-PRIMARY KEY (id)
-);
-INSERT INTO t2 VALUES
-(1, 1, '2006-03-30'), (2, 2, '2006-04-06'), (3, 3, '2006-04-13'),
-(4, 2, '2006-04-20'), (5, 1, '2006-05-01');
-SELECT *,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 0, 1) AS date_last,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 3, 1) AS date_next_to_last
-FROM t1;
-id name date_last date_next_to_last
-1 Balazs 2006-05-01 NULL
-2 Joe 2006-04-20 NULL
-3 Frank 2006-04-13 NULL
-SELECT *,
-(SELECT COUNT(*) FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 1, 1) AS date_count
-FROM t1;
-id name date_count
-1 Balazs NULL
-2 Joe NULL
-3 Frank NULL
-SELECT *,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 0, 1) AS date_last,
-(SELECT date FROM t2 WHERE mid = t1.id
-ORDER BY date DESC LIMIT 1, 1) AS date_next_to_last
-FROM t1;
-id name date_last date_next_to_last
-1 Balazs 2006-05-01 2006-03-30
-2 Joe 2006-04-20 2006-04-06
-3 Frank 2006-04-13 NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-i1 int(11) NOT NULL default '0',
-i2 int(11) NOT NULL default '0',
-t datetime NOT NULL default '0000-00-00 00:00:00',
-PRIMARY KEY (i1,i2,t)
-);
-INSERT INTO t1 VALUES
-(24,1,'2005-03-03 16:31:31'),(24,1,'2005-05-27 12:40:07'),
-(24,1,'2005-05-27 12:40:08'),(24,1,'2005-05-27 12:40:10'),
-(24,1,'2005-05-27 12:40:25'),(24,1,'2005-05-27 12:40:30'),
-(24,2,'2005-03-03 13:43:05'),(24,2,'2005-03-03 16:23:31'),
-(24,2,'2005-03-03 16:31:30'),(24,2,'2005-05-27 12:37:02'),
-(24,2,'2005-05-27 12:40:06');
-CREATE TABLE t2 (
-i1 int(11) NOT NULL default '0',
-i2 int(11) NOT NULL default '0',
-t datetime default NULL,
-PRIMARY KEY (i1)
-);
-INSERT INTO t2 VALUES (24,1,'2006-06-20 12:29:40');
-EXPLAIN
-SELECT * FROM t1,t2
-WHERE t1.t = (SELECT t1.t FROM t1
-WHERE t1.t < t2.t AND t1.i2=1 AND t2.i1=t1.i1
-ORDER BY t1.t DESC LIMIT 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-1 PRIMARY t1 index NULL PRIMARY 13 NULL 11 Using where; Using index
-2 SUBQUERY t1 range PRIMARY PRIMARY 13 NULL 5 Using where; Using index
-SELECT * FROM t1,t2
-WHERE t1.t = (SELECT t1.t FROM t1
-WHERE t1.t < t2.t AND t1.i2=1 AND t2.i1=t1.i1
-ORDER BY t1.t DESC LIMIT 1);
-i1 i2 t i1 i2 t
-24 1 2005-05-27 12:40:30 24 1 2006-06-20 12:29:40
-DROP TABLE t1, t2;
-CREATE TABLE t1 (i INT);
-(SELECT i FROM t1) UNION (SELECT i FROM t1);
-i
-SELECT sql_no_cache * FROM t1 WHERE NOT EXISTS
-(
-(SELECT i FROM t1) UNION
-(SELECT i FROM t1)
-);
-i
-SELECT * FROM t1
-WHERE NOT EXISTS (((SELECT i FROM t1) UNION (SELECT i FROM t1)));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION (SELECT i FROM t1)))' at line 2
-explain select ((select t11.i from t1 t11) union (select t12.i from t1 t12))
-from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'union (select t12.i from t1 t12))
-from t1' at line 1
-explain select * from t1 where not exists
-((select t11.i from t1 t11) union (select t12.i from t1 t12));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 Const row not found
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-3 UNION NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(250), b INT auto_increment, PRIMARY KEY (b));
-insert into t1 (a) values (FLOOR(rand() * 100));
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-insert into t1 (a) select FLOOR(rand() * 100) from t1;
-SELECT a,
-(SELECT REPEAT(' ',250) FROM t1 i1
-WHERE i1.b=t1.a ORDER BY RAND() LIMIT 1) AS a
-FROM t1 ORDER BY a LIMIT 5;
-a a
-0 NULL
-0 NULL
-0 NULL
-0 NULL
-0 NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 values (1);
-INSERT INTO t1 VALUES (1,1),(1,2),(2,3),(3,4);
-SELECT (SELECT COUNT(DISTINCT t1.b) from t2) FROM t1 GROUP BY t1.a;
-(SELECT COUNT(DISTINCT t1.b) from t2)
-2
-1
-1
-SELECT (SELECT COUNT(DISTINCT t1.b) from t2 union select 1 from t2 where 12 < 3)
-FROM t1 GROUP BY t1.a;
-(SELECT COUNT(DISTINCT t1.b) from t2 union select 1 from t2 where 12 < 3)
-2
-1
-1
-SELECT COUNT(DISTINCT t1.b), (SELECT COUNT(DISTINCT t1.b)) FROM t1 GROUP BY t1.a;
-COUNT(DISTINCT t1.b) (SELECT COUNT(DISTINCT t1.b))
-2 2
-1 1
-1 1
-SELECT COUNT(DISTINCT t1.b),
-(SELECT COUNT(DISTINCT t1.b) union select 1 from DUAL where 12 < 3)
-FROM t1 GROUP BY t1.a;
-COUNT(DISTINCT t1.b) (SELECT COUNT(DISTINCT t1.b) union select 1 from DUAL where 12 < 3)
-2 2
-1 1
-1 1
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a;
-(
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-2
-1
-1
-SELECT (
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a LIMIT 1)
-FROM t1 t2
-GROUP BY t2.a;
-(
-SELECT (
-SELECT (
-SELECT COUNT(DISTINCT t1.b)
-)
-)
-FROM t1 GROUP BY t1.a LIMIT 1)
-2
-2
-2
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int, PRIMARY KEY (b));
-CREATE TABLE t2 (x int auto_increment, y int, z int,
-PRIMARY KEY (x), FOREIGN KEY (y) REFERENCES t1 (b));
-create table t3 (a int);
-insert into t3 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t1 select RAND()*1000, A.a + 10*(B.a+10*(C.a+10*D.a))
-from t3 A, t3 B, t3 C, t3 D where D.a<3;
-insert into t2(y,z) select t1.b, RAND()*1000 from t1, t3;
-SET SESSION sort_buffer_size = 32 * 1024;
-SELECT SQL_NO_CACHE COUNT(*)
-FROM (SELECT a, b, (SELECT x FROM t2 WHERE y=b ORDER BY z DESC LIMIT 1) c
-FROM t1) t;
-COUNT(*)
-3000
-SET SESSION sort_buffer_size = 8 * 1024 * 1024;
-SELECT SQL_NO_CACHE COUNT(*)
-FROM (SELECT a, b, (SELECT x FROM t2 WHERE y=b ORDER BY z DESC LIMIT 1) c
-FROM t1) t;
-COUNT(*)
-3000
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (id char(4) PRIMARY KEY, c int);
-CREATE TABLE t2 (c int);
-INSERT INTO t1 VALUES ('aa', 1);
-INSERT INTO t2 VALUES (1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT c FROM t2 WHERE c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-INSERT INTO t1 VALUES ('bb', 2), ('cc', 3), ('dd',1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT c FROM t2 WHERE c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-bb 2
-cc 3
-dd 1
-INSERT INTO t2 VALUES (2);
-CREATE TABLE t3 (c int);
-INSERT INTO t3 VALUES (1);
-SELECT * FROM t1
-WHERE EXISTS (SELECT t2.c FROM t2 JOIN t3 ON t2.c=t3.c WHERE t2.c=1
-UNION
-SELECT c from t2 WHERE c=t1.c);
-id c
-aa 1
-bb 2
-cc 3
-dd 1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1(f1 int);
-CREATE TABLE t2(f2 int, f21 int, f3 timestamp);
-INSERT INTO t1 VALUES (1),(1),(2),(2);
-INSERT INTO t2 VALUES (1,1,"2004-02-29 11:11:11"), (2,2,"2004-02-29 11:11:11");
-SELECT ((SELECT f2 FROM t2 WHERE f21=f1 LIMIT 1) * COUNT(f1)) AS sq FROM t1 GROUP BY f1;
-sq
-2
-4
-SELECT (SELECT SUM(1) FROM t2 ttt GROUP BY t2.f3 LIMIT 1) AS tt FROM t2;
-tt
-2
-2
-PREPARE stmt1 FROM 'SELECT ((SELECT f2 FROM t2 WHERE f21=f1 LIMIT 1) * COUNT(f1)) AS sq FROM t1 GROUP BY f1';
-EXECUTE stmt1;
-sq
-2
-4
-EXECUTE stmt1;
-sq
-2
-4
-DEALLOCATE PREPARE stmt1;
-SELECT f2, AVG(f21),
-(SELECT t.f3 FROM t2 AS t WHERE t2.f2=t.f2 AND t.f3=MAX(t2.f3)) AS test
-FROM t2 GROUP BY f2;
-f2 AVG(f21) test
-1 1.0000 2004-02-29 11:11:11
-2 2.0000 2004-02-29 11:11:11
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b INT, c CHAR(10) NOT NULL);
-INSERT INTO t1 VALUES
-(1,1,'a'), (1,2,'b'), (1,3,'c'), (1,4,'d'), (1,5,'e'),
-(2,1,'f'), (2,2,'g'), (2,3,'h'), (3,4,'i'), (3,3,'j'),
-(3,2,'k'), (3,1,'l'), (1,9,'m');
-SELECT a, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b)) AS test
-FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-DROP TABLE IF EXISTS t1xt2;
-CREATE TABLE t1 (
-id_1 int(5) NOT NULL,
-t varchar(4) DEFAULT NULL
-);
-CREATE TABLE t2 (
-id_2 int(5) NOT NULL,
-t varchar(4) DEFAULT NULL
-);
-CREATE TABLE t1xt2 (
-id_1 int(5) NOT NULL,
-id_2 int(5) NOT NULL
-);
-INSERT INTO t1 VALUES (1, 'a'), (2, 'b'), (3, 'c'), (4, 'd');
-INSERT INTO t2 VALUES (2, 'bb'), (3, 'cc'), (4, 'dd'), (12, 'aa');
-INSERT INTO t1xt2 VALUES (2, 2), (3, 3), (4, 4);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 where t1.id_1 = t1xt2.id_1)));
-id_1
-1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 where t1.id_1 = t1xt2.id_1))));
-id_1
-1
-2
-3
-4
-insert INTO t1xt2 VALUES (1, 12);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-1
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-2
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-2
-3
-4
-insert INTO t1xt2 VALUES (2, 12);
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-1
-2
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1));
-id_1
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN ((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1)));
-id_1
-3
-4
-SELECT DISTINCT t1.id_1 FROM t1 WHERE
-(12 NOT IN (((SELECT t1xt2.id_2 FROM t1xt2 WHERE t1.id_1 = t1xt2.id_1))));
-id_1
-3
-4
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t1xt2;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (3), (1), (2);
-SELECT 'this is ' 'a test.' AS col1, a AS col2 FROM t1;
-col1 col2
-this is a test. 3
-this is a test. 1
-this is a test. 2
-SELECT * FROM (SELECT 'this is ' 'a test.' AS col1, a AS t2 FROM t1) t;
-col1 t2
-this is a test. 3
-this is a test. 1
-this is a test. 2
-DROP table t1;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (m int, n int);
-INSERT INTO t1 VALUES (2,2), (2,2), (3,3), (3,3), (3,3), (4,4);
-INSERT INTO t2 VALUES (1,11), (2,22), (3,32), (4,44), (4,44);
-SELECT COUNT(*), a,
-(SELECT m FROM t2 WHERE m = count(*) LIMIT 1)
-FROM t1 GROUP BY a;
-COUNT(*) a (SELECT m FROM t2 WHERE m = count(*) LIMIT 1)
-2 2 2
-3 3 3
-1 4 1
-SELECT COUNT(*), a,
-(SELECT MIN(m) FROM t2 WHERE m = count(*))
-FROM t1 GROUP BY a;
-COUNT(*) a (SELECT MIN(m) FROM t2 WHERE m = count(*))
-2 2 2
-3 3 3
-1 4 1
-SELECT COUNT(*), a
-FROM t1 GROUP BY a
-HAVING (SELECT MIN(m) FROM t2 WHERE m = count(*)) > 1;
-COUNT(*) a
-2 2
-3 3
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int);
-CREATE TABLE t2 (m int, n int);
-INSERT INTO t1 VALUES (2,2), (2,2), (3,3), (3,3), (3,3), (4,4);
-INSERT INTO t2 VALUES (1,11), (2,22), (3,32), (4,44), (4,44);
-SELECT COUNT(*) c, a,
-(SELECT GROUP_CONCAT(COUNT(a)) FROM t2 WHERE m = a)
-FROM t1 GROUP BY a;
-c a (SELECT GROUP_CONCAT(COUNT(a)) FROM t2 WHERE m = a)
-2 2 2
-3 3 3
-1 4 1,1
-SELECT COUNT(*) c, a,
-(SELECT GROUP_CONCAT(COUNT(a)+1) FROM t2 WHERE m = a)
-FROM t1 GROUP BY a;
-c a (SELECT GROUP_CONCAT(COUNT(a)+1) FROM t2 WHERE m = a)
-2 2 3
-3 3 4
-1 4 2,2
-DROP table t1,t2;
-CREATE TABLE t1 (a int, b INT, d INT, c CHAR(10) NOT NULL, PRIMARY KEY (a, b));
-INSERT INTO t1 VALUES (1,1,0,'a'), (1,2,0,'b'), (1,3,0,'c'), (1,4,0,'d'),
-(1,5,0,'e'), (2,1,0,'f'), (2,2,0,'g'), (2,3,0,'h'), (3,4,0,'i'), (3,3,0,'j'),
-(3,2,0,'k'), (3,1,0,'l'), (1,9,0,'m'), (1,0,10,'n'), (2,0,5,'o'), (3,0,7,'p');
-SELECT a, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b + 0)) as test
-FROM t1 GROUP BY a;
-a MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-SELECT a x, MAX(b),
-(SELECT t.c FROM t1 AS t WHERE x=t.a AND t.b=MAX(t1.b + 0)) as test
-FROM t1 GROUP BY a;
-x MAX(b) test
-1 9 m
-2 3 h
-3 4 i
-SELECT a, AVG(b),
-(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=AVG(t1.b)) AS test
-FROM t1 WHERE t1.d=0 GROUP BY a;
-a AVG(b) test
-1 4.0000 d
-2 2.0000 g
-3 2.5000 NULL
-SELECT tt.a,
-(SELECT (SELECT c FROM t1 as t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1) FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
-FROM t1 as tt;
-a test
-1 n
-1 n
-1 n
-1 n
-1 n
-1 n
-1 n
-2 o
-2 o
-2 o
-2 o
-3 p
-3 p
-3 p
-3 p
-3 p
-SELECT tt.a,
-(SELECT (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1)
-FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
-FROM t1 as tt GROUP BY tt.a;
-a test
-1 n
-2 o
-3 p
-SELECT tt.a, MAX(
-(SELECT (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
-LIMIT 1)
-FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1)) as test
-FROM t1 as tt GROUP BY tt.a;
-a test
-1 n
-2 o
-3 p
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-a
-1
-2
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-a
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-a
-1
-2
-SET @@sql_mode='ansi';
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-ERROR HY000: Invalid use of group function
-SET @@sql_mode=default;
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 values (1),(1),(1),(1);
-CREATE TABLE t2 (x INT);
-INSERT INTO t1 values (1000),(1001),(1002);
-SELECT SUM( (SELECT COUNT(a) FROM t2) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT SUM( (SELECT SUM(COUNT(a)) FROM t2) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT COUNT(1) FROM DUAL;
-COUNT(1)
-1
-SELECT SUM( (SELECT AVG( (SELECT t1.a FROM t2) ) FROM DUAL) ) FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT
-SUM( (SELECT AVG( (SELECT COUNT(*) FROM t1 t HAVING t1.a < 12) ) FROM t2) )
-FROM t1;
-ERROR HY000: Invalid use of group function
-SELECT t1.a as XXA,
-SUM( (SELECT AVG( (SELECT COUNT(*) FROM t1 t HAVING XXA < 12) ) FROM t2) )
-FROM t1;
-ERROR HY000: Invalid use of group function
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int, b int, KEY (a));
-INSERT INTO t1 VALUES (1,1),(2,1);
-EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT COUNT(*) FROM t1 GROUP BY b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref a a 5 const 1 Using where; Using index
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-DROP TABLE t1;
-CREATE TABLE t1 (id int NOT NULL, st CHAR(2), INDEX idx(id));
-INSERT INTO t1 VALUES
-(3,'FL'), (2,'GA'), (4,'FL'), (1,'GA'), (5,'NY'), (7,'FL'), (6,'NY');
-CREATE TABLE t2 (id int NOT NULL, INDEX idx(id));
-INSERT INTO t2 VALUES (7), (5), (1), (3);
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id);
-id st
-3 FL
-1 GA
-7 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id)
-GROUP BY id;
-id st
-1 GA
-3 FL
-7 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND NOT EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id);
-id st
-2 GA
-4 FL
-SELECT id, st FROM t1
-WHERE st IN ('GA','FL') AND NOT EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id)
-GROUP BY id;
-id st
-2 GA
-4 FL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-EXPLAIN EXTENDED
-SELECT * FROM (SELECT count(*) FROM t1 GROUP BY a) as res;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `res`.`count(*)` AS `count(*)` from (/* select#2 */ select count(0) AS `count(*)` from `test`.`t1` group by `test`.`t1`.`a`) `res`
-DROP TABLE t1;
-CREATE TABLE t1 (
-a varchar(255) default NULL,
-b timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
-INDEX idx(a,b)
-);
-CREATE TABLE t2 (
-a varchar(255) default NULL
-);
-INSERT INTO t1 VALUES ('abcdefghijk','2007-05-07 06:00:24');
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO t1 SELECT * FROM t1;
-INSERT INTO `t1` VALUES ('asdf','2007-02-08 01:11:26');
-INSERT INTO `t2` VALUES ('abcdefghijk');
-INSERT INTO `t2` VALUES ('asdf');
-SET session sort_buffer_size=8192;
-SELECT (SELECT 1 FROM t1 WHERE t1.a=t2.a ORDER BY t1.b LIMIT 1) AS d1 FROM t2;
-d1
-1
-1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INTEGER, b INTEGER);
-CREATE TABLE t2 (x INTEGER);
-INSERT INTO t1 VALUES (1,11), (2,22), (2,22);
-INSERT INTO t2 VALUES (1), (2);
-SELECT a, COUNT(b), (SELECT COUNT(b) FROM t2) FROM t1 GROUP BY a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT a, COUNT(b), (SELECT COUNT(b)+0 FROM t2) FROM t1 GROUP BY a;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT SUM(t1.a)/AVG(t2.x) FROM t2) FROM t1;
-(SELECT SUM(t1.a)/AVG(t2.x) FROM t2)
-3.3333
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (1, 2), (1,3), (1,4), (2,1), (2,2);
-SELECT a1.a, COUNT(*) FROM t1 a1 WHERE a1.a = 1
-AND EXISTS( SELECT a2.a FROM t1 a2 WHERE a2.a = a1.a)
-GROUP BY a1.a;
-a COUNT(*)
-1 3
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1),(2);
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a=0) FROM t1;
-(SELECT SUM(t1.a) FROM t2 WHERE a=0)
-NULL
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a!=0) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT (SELECT SUM(t1.a) FROM t2 WHERE a=1) FROM t1;
-(SELECT SUM(t1.a) FROM t2 WHERE a=1)
-3
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a1 INT, a2 INT);
-CREATE TABLE t2 (b1 INT, b2 INT);
-INSERT INTO t1 VALUES (100, 200);
-INSERT INTO t1 VALUES (101, 201);
-INSERT INTO t2 VALUES (101, 201);
-INSERT INTO t2 VALUES (103, 203);
-SELECT ((a1,a2) IN (SELECT * FROM t2 WHERE b2 > 0)) IS NULL FROM t1;
-((a1,a2) IN (SELECT * FROM t2 WHERE b2 > 0)) IS NULL
-0
-0
-DROP TABLE t1, t2;
-CREATE TABLE t1 (s1 BINARY(5), s2 VARBINARY(5));
-INSERT INTO t1 VALUES (0x41,0x41), (0x42,0x42), (0x43,0x43);
-SELECT s1, s2 FROM t1 WHERE s2 IN (SELECT s1 FROM t1);
-s1 s2
-SELECT s1, s2 FROM t1 WHERE (s2, 10) IN (SELECT s1, 10 FROM t1);
-s1 s2
-CREATE INDEX I1 ON t1 (s1);
-CREATE INDEX I2 ON t1 (s2);
-SELECT s1, s2 FROM t1 WHERE s2 IN (SELECT s1 FROM t1);
-s1 s2
-SELECT s1, s2 FROM t1 WHERE (s2, 10) IN (SELECT s1, 10 FROM t1);
-s1 s2
-TRUNCATE t1;
-INSERT INTO t1 VALUES (0x41,0x41);
-SELECT * FROM t1 WHERE s1 = (SELECT s2 FROM t1);
-s1 s2
-DROP TABLE t1;
-CREATE TABLE t1 (a1 VARBINARY(2) NOT NULL DEFAULT '0', PRIMARY KEY (a1));
-CREATE TABLE t2 (a2 BINARY(2) default '0', INDEX (a2));
-CREATE TABLE t3 (a3 BINARY(2) default '0');
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-INSERT INTO t2 VALUES (1),(2),(3);
-INSERT INTO t3 VALUES (1),(2),(3);
-SELECT LEFT(t2.a2, 1) FROM t2,t3 WHERE t3.a3=t2.a2;
-LEFT(t2.a2, 1)
-1
-2
-3
-SELECT t1.a1, t1.a1 in (SELECT t2.a2 FROM t2,t3 WHERE t3.a3=t2.a2) FROM t1;
-a1 t1.a1 in (SELECT t2.a2 FROM t2,t3 WHERE t3.a3=t2.a2)
-1 0
-2 0
-3 0
-4 0
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (a1 BINARY(3) PRIMARY KEY, b1 VARBINARY(3));
-CREATE TABLE t2 (a2 VARBINARY(3) PRIMARY KEY);
-CREATE TABLE t3 (a3 VARBINARY(3) PRIMARY KEY);
-INSERT INTO t1 VALUES (1,10), (2,20), (3,30), (4,40);
-INSERT INTO t2 VALUES (2), (3), (4), (5);
-INSERT INTO t3 VALUES (10), (20), (30);
-SELECT LEFT(t1.a1,1) FROM t1,t3 WHERE t1.b1=t3.a3;
-LEFT(t1.a1,1)
-1
-2
-3
-SELECT a2 FROM t2 WHERE t2.a2 IN (SELECT t1.a1 FROM t1,t3 WHERE t1.b1=t3.a3);
-a2
-DROP TABLE t1, t2, t3;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='semijoin_with_cache=off';
-SET optimizer_switch='materialization=off';
-CREATE TABLE t1 (a CHAR(1), b VARCHAR(10));
-INSERT INTO t1 VALUES ('a', 'aa');
-INSERT INTO t1 VALUES ('a', 'aaa');
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-a b
-CREATE INDEX I1 ON t1 (a);
-CREATE INDEX I2 ON t1 (b);
-EXPLAIN SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t1 index_subquery I1 I1 2 func 2 Using index; Using where
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1);
-a b
-CREATE TABLE t2 (a VARCHAR(1), b VARCHAR(10));
-INSERT INTO t2 SELECT * FROM t1;
-CREATE INDEX I1 ON t2 (a);
-CREATE INDEX I2 ON t2 (b);
-EXPLAIN SELECT a,b FROM t2 WHERE b IN (SELECT a FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 index_subquery I1 I1 4 func 2 Using index; Using where
-SELECT a,b FROM t2 WHERE b IN (SELECT a FROM t2);
-a b
-EXPLAIN
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1 WHERE LENGTH(a)<500);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t1 index_subquery I1 I1 2 func 2 Using index; Using where
-SELECT a,b FROM t1 WHERE b IN (SELECT a FROM t1 WHERE LENGTH(a)<500);
-a b
-DROP TABLE t1,t2;
-SET optimizer_switch= @save_optimizer_switch;
-CREATE TABLE t1(a INT, b INT);
-INSERT INTO t1 VALUES (1,1), (1,2), (2,3), (2,4);
-EXPLAIN
-SELECT a AS out_a, MIN(b) FROM t1
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = out_a)
-GROUP BY a;
-ERROR 42S22: Unknown column 'out_a' in 'where clause'
-SELECT a AS out_a, MIN(b) FROM t1
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = out_a)
-GROUP BY a;
-ERROR 42S22: Unknown column 'out_a' in 'where clause'
-EXPLAIN
-SELECT a AS out_a, MIN(b) FROM t1 t1_outer
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = t1_outer.a)
-GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_outer ALL NULL NULL NULL NULL 4 Using where; Using temporary; Using filesort
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 4 Using where
-SELECT a AS out_a, MIN(b) FROM t1 t1_outer
-WHERE b > (SELECT MIN(b) FROM t1 WHERE a = t1_outer.a)
-GROUP BY a;
-out_a MIN(b)
-1 2
-2 4
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (1),(2);
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a));
-2
-2
-2
-EXPLAIN EXTENDED
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 2 AS `2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,`test`.`t1`.`a` in ( <materialize> (/* select#2 */ select `test`.`t2`.`a` from `test`.`t2` where 1 ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`a`))))
-EXPLAIN EXTENDED
-SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a) UNION
-(SELECT 1 FROM t2 WHERE t1.a = t2.a));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DEPENDENT UNION t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 2 AS `2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(exists((/* select#2 */ select 1 from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`) union (/* select#3 */ select 1 from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`)))
-DROP TABLE t1,t2;
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(f11 int, f12 int);
-create table t2(f21 int unsigned not null, f22 int, f23 varchar(10));
-insert into t1 values(1,1),(2,2), (3, 3);
-insert ignore into t2
-select -1 , (@a:=(A.a + 10 * (B.a + 10 * (C.a+10*D.a))))/5000 + 1, @a
-from t0 A, t0 B, t0 C, t0 D;
-set session sort_buffer_size= 33*1024;
-select count(*) from t1 where f12 =
-(select f22 from t2 where f22 = f12 order by f21 desc, f22, f23 limit 1);
-count(*)
-3
-drop table t0,t1,t2;
-CREATE TABLE t4 (
-f7 varchar(32) collate utf8_bin NOT NULL default '',
-f10 varchar(32) collate utf8_bin default NULL,
-PRIMARY KEY (f7)
-);
-INSERT INTO t4 VALUES(1,1), (2,null);
-CREATE TABLE t2 (
-f4 varchar(32) collate utf8_bin NOT NULL default '',
-f2 varchar(50) collate utf8_bin default NULL,
-f3 varchar(10) collate utf8_bin default NULL,
-PRIMARY KEY (f4),
-UNIQUE KEY uk1 (f2)
-);
-INSERT INTO t2 VALUES(1,1,null), (2,2,null);
-CREATE TABLE t1 (
-f8 varchar(32) collate utf8_bin NOT NULL default '',
-f1 varchar(10) collate utf8_bin default NULL,
-f9 varchar(32) collate utf8_bin default NULL,
-PRIMARY KEY (f8)
-);
-INSERT INTO t1 VALUES (1,'P',1), (2,'P',1), (3,'R',2);
-CREATE TABLE t3 (
-f6 varchar(32) collate utf8_bin NOT NULL default '',
-f5 varchar(50) collate utf8_bin default NULL,
-PRIMARY KEY (f6)
-);
-INSERT INTO t3 VALUES (1,null), (2,null);
-SELECT
-IF(t1.f1 = 'R', a1.f2, t2.f2) AS a4,
-IF(t1.f1 = 'R', a1.f3, t2.f3) AS f3,
-SUM(
-IF(
-(SELECT VPC.f2
-FROM t2 VPC, t4 a2, t2 a3
-WHERE
-VPC.f4 = a2.f10 AND a3.f2 = a4
-LIMIT 1) IS NULL,
-0,
-t3.f5
-)
-) AS a6
-FROM
-t2, t3, t1 JOIN t2 a1 ON t1.f9 = a1.f4
-GROUP BY a4;
-a4 f3 a6
-1 NULL NULL
-2 NULL NULL
-DROP TABLE t1, t2, t3, t4;
-create table t1 (a float(5,4) zerofill);
-create table t2 (a float(5,4),b float(2,0));
-select t1.a from t1 where
-t1.a= (select b from t2 limit 1) and not
-t1.a= (select a from t2 limit 1) ;
-a
-drop table t1, t2;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=0;
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 WHERE a > 3 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00 Using where; Using temporary
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 0
-SET join_cache_level=@save_join_cache_level;
-DROP TABLE t1;
-#
-# Bug#45061: Incorrectly market field caused wrong result.
-#
-CREATE TABLE `C` (
-`int_nokey` int(11) NOT NULL,
-`int_key` int(11) NOT NULL,
-KEY `int_key` (`int_key`)
-);
-INSERT INTO `C` VALUES (9,9), (0,0), (8,6), (3,6), (7,6), (0,4),
-(1,7), (9,4), (0,8), (9,4), (0,7), (5,5), (0,0), (8,5), (8,7),
-(5,2), (1,8), (7,0), (0,9), (9,5);
-SELECT * FROM C WHERE `int_key` IN (SELECT `int_nokey`);
-int_nokey int_key
-9 9
-0 0
-5 5
-0 0
-EXPLAIN EXTENDED SELECT * FROM C WHERE `int_key` IN (SELECT `int_nokey`);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE C ALL NULL NULL NULL NULL 20 100.00 Using where
-DROP TABLE C;
-# End of test for bug#45061.
-#
-# Bug #46749: Segfault in add_key_fields() with outer subquery level
-# field references
-#
-CREATE TABLE t1 (
-a int,
-b int,
-UNIQUE (a), KEY (b)
-);
-INSERT INTO t1 VALUES (1,1), (2,1);
-CREATE TABLE st1 like t1;
-INSERT INTO st1 VALUES (1,1), (2,1);
-CREATE TABLE st2 like t1;
-INSERT INTO st2 VALUES (1,1), (2,1);
-EXPLAIN
-SELECT MAX(b), (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-FROM t1
-WHERE a = 230;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT MAX(b), (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-FROM t1
-WHERE a = 230;
-MAX(b) (SELECT COUNT(*) FROM st1,st2 WHERE st2.b <= t1.b)
-NULL NULL
-DROP TABLE t1, st1, st2;
-#
-# Bug #48709: Assertion failed in sql_select.cc:11782:
-# int join_read_key(JOIN_TAB*)
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, int_key int);
-INSERT INTO t1 VALUES (10,1), (14,1);
-CREATE TABLE t2 (pk int PRIMARY KEY, int_key int);
-INSERT INTO t2 VALUES (3,3), (5,NULL), (7,3);
-# should have eq_ref for t1
-EXPLAIN
-SELECT * FROM t2 outr
-WHERE outr.int_key NOT IN (SELECT t1.pk FROM t1, t2)
-ORDER BY outr.pk;
-id select_type table type possible_keys key key_len ref rows Extra
-x x outr ALL x x x x x x
-x x t1 index x x x x x x
-x x t2 index x x x x x x
-# should not crash on debug binaries
-SELECT * FROM t2 outr
-WHERE outr.int_key NOT IN (SELECT t1.pk FROM t1, t2)
-ORDER BY outr.pk;
-pk int_key
-3 3
-7 3
-DROP TABLE t1,t2;
-#
-# Bug#12329653
-# EXPLAIN, UNION, PREPARED STATEMENT, CRASH, SQL_FULL_GROUP_BY
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-EXPLAIN EXTENDED
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1` from `test`.`t1` where 1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-1
-1
-1
-PREPARE stmt FROM
-'SELECT 1 UNION ALL
-SELECT 1 FROM t1
-ORDER BY
-(SELECT 1 FROM t1 AS t1_0
- WHERE 1 < SOME (SELECT a1 FROM t1)
-)' ;
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-SET SESSION sql_mode=@old_sql_mode;
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2(a1 int);
-INSERT INTO t2 VALUES (3);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2.0 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 'a' FROM t2);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t2);
-1
-1
-1
-SET SESSION sql_mode=@old_sql_mode;
-DROP TABLE t1, t2;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-create table t2(i int);
-insert into t2 values(0);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-CREATE VIEW v1 AS
-SELECT 'f' FROM t2 UNION SELECT 'x' FROM t2
-;
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key)
-);
-SELECT t1.pk
-FROM t1
-WHERE t1.col_varchar_key < ALL ( SELECT * FROM v1 )
-;
-pk
-SET SESSION sql_mode=@old_sql_mode;
-drop table t2, t1;
-drop view v1;
-# End of 5.0 tests.
-create table t_out (subcase char(3),
-a1 char(2), b1 char(2), c1 char(2));
-create table t_in (a2 char(2), b2 char(2), c2 char(2));
-insert into t_out values ('A.1','2a', NULL, '2a');
-insert into t_out values ('A.3', '2a', NULL, '2a');
-insert into t_out values ('A.4', '2a', NULL, 'xx');
-insert into t_out values ('B.1', '2a', '2a', '2a');
-insert into t_out values ('B.2', '2a', '2a', '2a');
-insert into t_out values ('B.3', '3a', 'xx', '3a');
-insert into t_out values ('B.4', 'xx', '3a', '3a');
-insert into t_in values ('1a', '1a', '1a');
-insert into t_in values ('2a', '2a', '2a');
-insert into t_in values (NULL, '2a', '2a');
-insert into t_in values ('3a', NULL, '3a');
-
-Test general IN semantics (not top-level)
-
-case A.1
-select subcase,
-(a1, b1, c1) IN (select * from t_in where a2 = 'no_match') pred_in,
-(a1, b1, c1) NOT IN (select * from t_in where a2 = 'no_match') pred_not_in
-from t_out where subcase = 'A.1';
-subcase pred_in pred_not_in
-A.1 0 1
-case A.2 - impossible
-case A.3
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'A.3';
-subcase pred_in pred_not_in
-A.3 NULL NULL
-case A.4
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'A.4';
-subcase pred_in pred_not_in
-A.4 0 1
-case B.1
-select subcase,
-(a1, b1, c1) IN (select * from t_in where a2 = 'no_match') pred_in,
-(a1, b1, c1) NOT IN (select * from t_in where a2 = 'no_match') pred_not_in
-from t_out where subcase = 'B.1';
-subcase pred_in pred_not_in
-B.1 0 1
-case B.2
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.2';
-subcase pred_in pred_not_in
-B.2 1 0
-case B.3
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.3';
-subcase pred_in pred_not_in
-B.3 NULL NULL
-case B.4
-select subcase,
-(a1, b1, c1) IN (select * from t_in) pred_in,
-(a1, b1, c1) NOT IN (select * from t_in) pred_not_in
-from t_out where subcase = 'B.4';
-subcase pred_in pred_not_in
-B.4 0 1
-
-Test IN as top-level predicate, and
-as non-top level for cases A.3, B.3 (the only cases with NULL result).
-
-case A.1
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.1' and
-(a1, b1, c1) IN (select * from t_in where a1 = 'no_match');
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.1' and
-(a1, b1, c1) NOT IN (select * from t_in where a1 = 'no_match');
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.1' and
-NOT((a1, b1, c1) IN (select * from t_in where a1 = 'no_match'));
-not_pred_in
-T
-case A.3
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.3' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.3' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.3' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-select case when count(*) > 0 then 'N' else 'wrong result' end as pred_in from t_out
-where subcase = 'A.3' and
-((a1, b1, c1) IN (select * from t_in)) is NULL and
-((a1, b1, c1) NOT IN (select * from t_in)) is NULL;
-pred_in
-N
-case A.4
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'A.4' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'A.4' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'A.4' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-T
-case B.1
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.1' and
-(a1, b1, c1) IN (select * from t_in where a1 = 'no_match');
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.1' and
-(a1, b1, c1) NOT IN (select * from t_in where a1 = 'no_match');
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.1' and
-NOT((a1, b1, c1) IN (select * from t_in where a1 = 'no_match'));
-not_pred_in
-T
-case B.2
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.2' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.2' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.2' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-case B.3
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.3' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.3' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.3' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-F
-select case when count(*) > 0 then 'N' else 'wrong result' end as pred_in from t_out
-where subcase = 'B.3' and
-((a1, b1, c1) IN (select * from t_in)) is NULL and
-((a1, b1, c1) NOT IN (select * from t_in)) is NULL;
-pred_in
-N
-case B.4
-select case when count(*) > 0 then 'T' else 'F' end as pred_in from t_out
-where subcase = 'B.4' and
-(a1, b1, c1) IN (select * from t_in);
-pred_in
-F
-select case when count(*) > 0 then 'T' else 'F' end as pred_not_in from t_out
-where subcase = 'B.4' and
-(a1, b1, c1) NOT IN (select * from t_in);
-pred_not_in
-T
-select case when count(*) > 0 then 'T' else 'F' end as not_pred_in from t_out
-where subcase = 'B.4' and
-NOT((a1, b1, c1) IN (select * from t_in));
-not_pred_in
-T
-drop table t_out;
-drop table t_in;
-CREATE TABLE t1 (a INT, b INT);
-INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-a
-1
-2
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-a
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-a
-1
-2
-SET @@sql_mode='ansi';
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 1 GROUP BY a;
-ERROR HY000: Invalid use of group function
-SELECT a FROM t1 t0
-WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
-ERROR HY000: Invalid use of group function
-SET @@sql_mode=default;
-DROP TABLE t1;
-CREATE TABLE t1 (s1 CHAR(1));
-INSERT INTO t1 VALUES ('a');
-SELECT * FROM t1 WHERE _utf8'a' = ANY (SELECT s1 FROM t1);
-s1
-a
-DROP TABLE t1;
-CREATE TABLE t1(c INT, KEY(c));
-CREATE TABLE t2(a INT, b INT);
-INSERT INTO t2 VALUES (1, 10), (2, NULL);
-INSERT INTO t1 VALUES (1), (3);
-SELECT * FROM t2 WHERE b NOT IN (SELECT max(t.c) FROM t1, t1 t WHERE t.c>10);
-a b
-DROP TABLE t1,t2;
-CREATE TABLE t1(pk INT PRIMARY KEY, a INT, INDEX idx(a));
-INSERT INTO t1 VALUES (1, 10), (3, 30), (2, 20);
-CREATE TABLE t2(pk INT PRIMARY KEY, a INT, b INT, INDEX idxa(a));
-INSERT INTO t2 VALUES (2, 20, 700), (1, 10, 200), (4, 10, 100);
-SELECT * FROM t1
-WHERE EXISTS (SELECT DISTINCT a FROM t2 WHERE t1.a < t2.a ORDER BY b);
-pk a
-1 10
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT, b INT, PRIMARY KEY (a), KEY b (b));
-INSERT INTO t1 VALUES (1,NULL), (9,NULL);
-CREATE TABLE t2 (
-a INT,
-b INT,
-c INT,
-d INT,
-PRIMARY KEY (a),
-UNIQUE KEY b (b,c,d),
-KEY b_2 (b),
-KEY c (c),
-KEY d (d)
-);
-INSERT INTO t2 VALUES
-(43, 2, 11 ,30),
-(44, 2, 12 ,30),
-(45, 1, 1 ,10000),
-(46, 1, 2 ,10000),
-(556,1, 32 ,10000);
-CREATE TABLE t3 (
-a INT,
-b INT,
-c INT,
-PRIMARY KEY (a),
-UNIQUE KEY b (b,c),
-KEY c (c),
-KEY b_2 (b)
-);
-INSERT INTO t3 VALUES (1,1,1), (2,32,1);
-explain
-SELECT t1.a, (SELECT 1 FROM t2 WHERE t2.b=t3.c AND t2.c=t1.a ORDER BY t2.d LIMIT 1) AS incorrect FROM t1, t3 WHERE t3.b=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 2 Using index
-1 PRIMARY t3 ref b,b_2 b 5 test.t1.a 1 Using index
-2 DEPENDENT SUBQUERY t2 ref b,b_2,c b 10 test.t3.c,test.t1.a 1 Using where; Using index
-SELECT t1.a, (SELECT 1 FROM t2 WHERE t2.b=t3.c AND t2.c=t1.a ORDER BY t2.d LIMIT 1) AS incorrect FROM t1, t3 WHERE t3.b=t1.a;
-a incorrect
-1 1
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (id int);
-CREATE TABLE t2 (id int, c int);
-INSERT INTO t1 (id) VALUES (1);
-INSERT INTO t2 (id) VALUES (1);
-INSERT INTO t1 (id) VALUES (1);
-INSERT INTO t2 (id) VALUES (1);
-CREATE VIEW v1 AS
-SELECT t2.c AS c FROM t1, t2
-WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-UPDATE v1 SET c=1;
-CREATE VIEW v2 (a,b) AS
-SELECT t2.id, t2.c AS c FROM t1, t2
-WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-INSERT INTO v2(a,b) VALUES (2,2);
-ERROR 44000: CHECK OPTION failed `test`.`v2`
-SELECT * FROM v1;
-c
-1
-1
-1
-1
-CREATE VIEW v3 AS
-SELECT t2.c AS c FROM t2
-WHERE 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-DELETE FROM v3;
-DROP VIEW v1,v2,v3;
-DROP TABLE t1,t2;
-#
-# BUG#37822 Correlated subquery with IN and IS UNKNOWN provides wrong result
-#
-create table t1(id integer primary key, g integer, v integer, s char(1));
-create table t2(id integer primary key, g integer, v integer, s char(1));
-insert into t1 values
-(10, 10, 10, 'l'),
-(20, 20, 20, 'l'),
-(40, 40, 40, 'l'),
-(41, 40, null, 'l'),
-(50, 50, 50, 'l'),
-(51, 50, null, 'l'),
-(60, 60, 60, 'l'),
-(61, 60, null, 'l'),
-(70, 70, 70, 'l'),
-(90, 90, null, 'l');
-insert into t2 values
-(10, 10, 10, 'r'),
-(30, 30, 30, 'r'),
-(50, 50, 50, 'r'),
-(60, 60, 60, 'r'),
-(61, 60, null, 'r'),
-(70, 70, 70, 'r'),
-(71, 70, null, 'r'),
-(80, 80, 80, 'r'),
-(81, 80, null, 'r'),
-(100,100,null, 'r');
-select *
-from t1
-where v in(select v
-from t2
-where t1.g=t2.g) is unknown;
-id g v s
-51 50 NULL l
-61 60 NULL l
-drop table t1, t2;
-#
-# Bug#37822 Correlated subquery with IN and IS UNKNOWN provides wrong result
-#
-create table t1(id integer primary key, g integer, v integer, s char(1));
-create table t2(id integer primary key, g integer, v integer, s char(1));
-insert into t1 values
-(10, 10, 10, 'l'),
-(20, 20, 20, 'l'),
-(40, 40, 40, 'l'),
-(41, 40, null, 'l'),
-(50, 50, 50, 'l'),
-(51, 50, null, 'l'),
-(60, 60, 60, 'l'),
-(61, 60, null, 'l'),
-(70, 70, 70, 'l'),
-(90, 90, null, 'l');
-insert into t2 values
-(10, 10, 10, 'r'),
-(30, 30, 30, 'r'),
-(50, 50, 50, 'r'),
-(60, 60, 60, 'r'),
-(61, 60, null, 'r'),
-(70, 70, 70, 'r'),
-(71, 70, null, 'r'),
-(80, 80, 80, 'r'),
-(81, 80, null, 'r'),
-(100,100,null, 'r');
-select *
-from t1
-where v in(select v
-from t2
-where t1.g=t2.g) is unknown;
-id g v s
-51 50 NULL l
-61 60 NULL l
-drop table t1, t2;
-#
-# Bug#33204: INTO is allowed in subselect, causing inconsistent results
-#
-CREATE TABLE t1( a INT );
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2( a INT, b INT );
-SELECT *
-FROM (SELECT a INTO @var FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var FROM t1 WHERE a = 2) t1a' at line 2
-SELECT *
-FROM (SELECT a INTO OUTFILE 'file' FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' FROM t1 WHERE a = 2) t1a' at line 2
-SELECT *
-FROM (SELECT a INTO DUMPFILE 'file' FROM t1 WHERE a = 2) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' FROM t1 WHERE a = 2) t1a' at line 2
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO @var FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO OUTFILE 'file' FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a INTO DUMPFILE 'file' FROM t1 WHERE a = 2
-) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' FROM t1 WHERE a = 2
-) t1a' at line 4
-SELECT * FROM (SELECT a FROM t1 WHERE a = 2) t1a;
-a
-2
-SELECT * FROM (
-SELECT a FROM t1 WHERE a = 2
-UNION
-SELECT a FROM t1 WHERE a = 2
-) t1a;
-a
-2
-SELECT * FROM (
-SELECT 1 a
-UNION
-SELECT a FROM t1 WHERE a = 2
-UNION
-SELECT a FROM t1 WHERE a = 2
-) t1a;
-a
-1
-2
-SELECT * FROM ((SELECT 1 a) UNION SELECT 1 a) q;
-a
-1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a)) alias;
-a
-1
-SELECT * FROM (SELECT 1 UNION SELECT 1) t1a;
-1
-1
-SELECT * FROM ((SELECT 1 a INTO @a)) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)) t1a' at line 1
-SELECT * FROM ((SELECT 1 a INTO OUTFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )) t1a' at line 1
-SELECT * FROM ((SELECT 1 a INTO DUMPFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO @a)) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO DUMPFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION (SELECT 1 a INTO OUTFILE 'file' )) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO @a))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a))) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO DUMPFILE 'file' ))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' ))) t1a' at line 1
-SELECT * FROM (SELECT 1 a UNION ((SELECT 1 a INTO OUTFILE 'file' ))) t1a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' ))) t1a' at line 1
-SELECT * FROM (SELECT 1 a ORDER BY a) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a ORDER BY a) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a LIMIT 1) t1a;
-a
-1
-SELECT * FROM (SELECT 1 a UNION SELECT 1 a ORDER BY a LIMIT 1) t1a;
-a
-1
-SELECT * FROM t1 JOIN (SELECT 1 UNION SELECT 1) alias ON 1;
-a 1
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 UNION SELECT 1)) ON 1;
-ERROR 42000: Every derived table must have its own alias
-SELECT * FROM t1 JOIN (t1 t1a UNION SELECT 1) ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1) ON 1' at line 1
-SELECT * FROM t1 JOIN ((t1 t1a UNION SELECT 1)) ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT 1)) ON 1' at line 1
-SELECT * FROM t1 JOIN (t1 t1a) t1a ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a ON 1' at line 1
-SELECT * FROM t1 JOIN ((t1 t1a)) t1a ON 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a ON 1' at line 1
-SELECT * FROM t1 JOIN (t1 t1a) ON 1;
-a a
-1 1
-2 1
-1 2
-2 2
-SELECT * FROM t1 JOIN ((t1 t1a)) ON 1;
-a a
-1 1
-2 1
-1 2
-2 2
-SELECT * FROM (t1 t1a);
-a
-1
-2
-SELECT * FROM ((t1 t1a));
-a
-1
-2
-SELECT * FROM t1 JOIN (SELECT 1 t1a) alias ON 1;
-a t1a
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 t1a)) alias ON 1;
-a t1a
-1 1
-2 1
-SELECT * FROM t1 JOIN (SELECT 1 a) a ON 1;
-a a
-1 1
-2 1
-SELECT * FROM t1 JOIN ((SELECT 1 a)) a ON 1;
-a a
-1 1
-2 1
-SELECT * FROM (t1 JOIN (SELECT 1) t1a1 ON 1) t1a2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't1a2' at line 1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 3 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO @a);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @a)' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT ( SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT ( SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO OUTFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO OUTFILE 'file' )' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 INTO DUMPFILE 'file' );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO DUMPFILE 'file' )' at line 1
-SELECT ( SELECT a FROM t1 WHERE a = 1 ), a FROM t1;
-( SELECT a FROM t1 WHERE a = 1 ) a
-1 1
-1 2
-SELECT ( SELECT a FROM t1 WHERE a = 1 UNION SELECT 1 ), a FROM t1;
-( SELECT a FROM t1 WHERE a = 1 UNION SELECT 1 ) a
-1 1
-1 2
-SELECT * FROM t2 WHERE (a, b) IN (SELECT a, b FROM t2);
-a b
-SELECT 1 UNION ( SELECT 1 UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-( SELECT 1 UNION SELECT 1 ) UNION SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1' at line 1
-SELECT ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1' at line 1
-SELECT ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-( SELECT 1 UNION SELECT 1 UNION SELECT 1 )
-1
-SELECT ((SELECT 1 UNION SELECT 1 UNION SELECT 1));
-((SELECT 1 UNION SELECT 1 UNION SELECT 1))
-1
-SELECT * FROM ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: Every derived table must have its own alias
-SELECT * FROM ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 ) a;
-1
-1
-SELECT * FROM ( SELECT 1 UNION SELECT 1 UNION SELECT 1 ) a;
-1
-1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION ( SELECT 1 UNION SELECT 1 ) );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) )' at line 1
-SELECT * FROM t1 WHERE a = ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ALL ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ANY ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 ) UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a IN ( ( SELECT 1 UNION SELECT 1 ) UNION SELECT 1 );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT 1 )' at line 1
-SELECT * FROM t1 WHERE a = ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ALL ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a = ANY ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION SELECT 1 UNION SELECT 1 );
-a
-1
-SELECT * FROM t1 WHERE EXISTS ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT EXISTS(SELECT 1+1);
-EXISTS(SELECT 1+1)
-1
-SELECT EXISTS(SELECT 1+1 INTO @test);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @test)' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 UNION SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT * FROM t1 WHERE EXISTS ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-SELECT * FROM t1 WHERE a IN ( SELECT 1 INTO @v );
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @v )' at line 1
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a ENUM('rainbow'));
-INSERT INTO t1 VALUES (),(),(),(),();
-SELECT 1 FROM t1 GROUP BY (SELECT 1 FROM t1 ORDER BY AVG(LAST_INSERT_ID()));
-1
-1
-DROP TABLE t1;
-CREATE TABLE t1 (a LONGBLOB);
-INSERT INTO t1 SET a = 'aaaa';
-INSERT INTO t1 SET a = 'aaaa';
-SELECT 1 FROM t1 GROUP BY
-(SELECT LAST_INSERT_ID() FROM t1 ORDER BY MIN(a) ASC LIMIT 1);
-1
-1
-DROP TABLE t1;
-#
-# Bug #49512 : subquery with aggregate function crash
-# subselect_single_select_engine::exec()
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES();
-# should not crash
-SELECT 1 FROM t1 WHERE a <> SOME
-(
-SELECT MAX((SELECT a FROM t1 LIMIT 1)) AS d
-FROM t1,t1 a
-);
-1
-DROP TABLE t1;
-#
-# Bug #45989 take 2 : memory leak after explain encounters an
-# error in the query
-#
-CREATE TABLE t1(a LONGTEXT);
-INSERT INTO t1 VALUES (repeat('a',@@global.max_allowed_packet));
-INSERT INTO t1 VALUES (repeat('b',@@global.max_allowed_packet));
-EXPLAIN EXTENDED SELECT DISTINCT 1 FROM t1,
-(SELECT DISTINCTROW a AS away FROM t1 GROUP BY a WITH ROLLUP) AS d1
-WHERE t1.a = d1.a;
-ERROR 42S22: Unknown column 'd1.a' in 'where clause'
-DROP TABLE t1;
-Set up test tables.
-CREATE TABLE t1 (
-t1_id INT UNSIGNED,
-PRIMARY KEY(t1_id)
-) Engine=MyISAM;
-INSERT INTO t1 (t1_id) VALUES (1), (2), (3), (4), (5);
-CREATE TABLE t2 SELECT * FROM t1;
-CREATE TABLE t3 (
-t3_id INT UNSIGNED AUTO_INCREMENT,
-t1_id INT UNSIGNED,
-amount DECIMAL(16,2),
-PRIMARY KEY(t3_id),
-KEY(t1_id)
-) Engine=MyISAM;
-INSERT INTO t3 (t1_id, t3_id, amount)
-VALUES (1, 1, 100.00), (2, 2, 200.00), (4, 4, 400.00);
-This is the 'inner query' running by itself.
-Produces correct results.
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-SELECT * FROM (the same inner query)
-Produces correct results.
-SELECT * FROM (
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-) AS t;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-Now make t2.t1_id part of a key.
-ALTER TABLE t2 ADD PRIMARY KEY(t1_id);
-Same inner query by itself.
-Still correct results.
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-SELECT * FROM (the same inner query), now with indexes on the LEFT JOIN
-SELECT * FROM (
-SELECT
-t1.t1_id,
-IFNULL((SELECT SUM(amount) FROM t3 WHERE t3.t1_id=t1.t1_id), 0) AS total_amount
-FROM
-t1
-LEFT JOIN t2 ON t2.t1_id=t1.t1_id
-GROUP BY
-t1.t1_id
-) AS t;
-t1_id total_amount
-1 100.00
-2 200.00
-3 0.00
-4 400.00
-5 0.00
-DROP TABLE t3;
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Bug #52711: Segfault when doing EXPLAIN SELECT with
-# union...order by (select... where...)
-#
-CREATE TABLE t1 (a VARCHAR(10), FULLTEXT KEY a (a));
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1),(2);
-# Should not crash
-EXPLAIN
-SELECT * FROM t2 UNION SELECT * FROM t2
-ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE));
-# Should not crash
-SELECT * FROM t2 UNION SELECT * FROM t2
-ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE));
-DROP TABLE t1,t2;
-#
-# Bug #58818: Incorrect result for IN/ANY subquery
-# with HAVING condition
-#
-CREATE TABLE t1(i INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t1s(i INT);
-INSERT INTO t1s VALUES (10), (20), (30);
-CREATE TABLE t2s(i INT);
-INSERT INTO t2s VALUES (100), (200), (300);
-SELECT * FROM t1
-WHERE t1.i NOT IN
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-);
-i
-1
-2
-3
-SELECT * FROM t1
-WHERE t1.I IN
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-) IS UNKNOWN;
-i
-SELECT * FROM t1
-WHERE NOT t1.I = ANY
-(
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-);
-i
-1
-2
-3
-SELECT * FROM t1
-WHERE t1.i = ANY (
-SELECT STRAIGHT_JOIN t2s.i
-FROM
-t1s LEFT OUTER JOIN t2s ON t2s.i = t1s.i
-HAVING t2s.i = 999
-) IS UNKNOWN;
-i
-DROP TABLE t1,t1s,t2s;
-# LP BUG#675248 - select->prep_where references on freed memory
-CREATE TABLE t1 (a int, b int);
-insert into t1 values (1,1),(0,0);
-CREATE TABLE t2 (c int);
-insert into t2 values (1),(2);
-prepare stmt1 from "select sum(a),(select sum(c) from t2 where table1.b) as sub
-from t1 as table1 group by sub";
-execute stmt1;
-sum(a) sub
-0 NULL
-1 3
-deallocate prepare stmt1;
-prepare stmt1 from "select sum(a),(select sum(c) from t2 having table1.b) as sub
-from t1 as table1";
-execute stmt1;
-sum(a) sub
-1 3
-deallocate prepare stmt1;
-drop table t1,t2;
-#
-# Bug LP#693935/#58727: Assertion failure with
-# a single row subquery returning more than one row
-#
-create table t1 (a char(1) charset utf8);
-insert into t1 values ('a'), ('b');
-create table t2 (a binary(1));
-insert into t2 values ('x'), ('y');
-select * from t2 where a=(select a from t1) and a='x';
-ERROR 21000: Subquery returns more than 1 row
-drop table t1,t2;
-# End of 5.1 tests
-#
-# Bug #11765713 58705:
-# OPTIMIZER LET ENGINE DEPEND ON UNINITIALIZED VALUES
-# CREATED BY OPT_SUM_QUERY
-#
-CREATE TABLE t1(a INT NOT NULL, KEY (a));
-INSERT INTO t1 VALUES (0), (1);
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1)
-);
-ERROR 21000: Subquery returns more than 1 row
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1 where a is null)
-);
-foo
-DROP TABLE t1;
-#
-# Bug #57704: Cleanup code dies with void TABLE::set_keyread(bool):
-# Assertion `file' failed.
-#
-CREATE TABLE t1 (a INT);
-SELECT 1 FROM
-(SELECT ROW(
-(SELECT 1 FROM t1 RIGHT JOIN
-(SELECT 1 FROM t1, t1 t2) AS d ON 1),
-1) FROM t1) AS e;
-ERROR 21000: Operand should contain 1 column(s)
-DROP TABLE t1;
-#
-# Bug#13721076 CRASH WITH TIME TYPE/TIMESTAMP() AND WARNINGS IN SUBQUERY
-#
-CREATE TABLE t1(a TIME NOT NULL);
-INSERT INTO t1 VALUES ('00:00:32');
-SELECT 1 FROM t1 WHERE a >
-(SELECT timestamp(a) AS a FROM t1);
-1
-DROP TABLE t1;
-#
-# No BUG#, a case brought from 5.2's innodb_mysql_lock.test
-#
-create table t1 (i int not null primary key);
-insert into t1 values (1),(2),(3),(4),(5);
-create table t2 (j int not null primary key);
-insert into t2 values (1),(2),(3),(4),(5);
-create table t3 (k int not null primary key);
-insert into t3 values (1),(2),(3);
-create view v2 as select t2.j as j from t2 where t2.j in (select t1.i from t1);
-select * from t3 where k in (select j from v2);
-k
-1
-2
-3
-drop table t1,t2,t3;
-drop view v2;
-#
-# Bug#52068: Optimizer generates invalid semijoin materialization plan
-#
-drop table if exists ot1, ot2, it1, it2;
-CREATE TABLE ot1(a INTEGER);
-INSERT INTO ot1 VALUES(5), (8);
-CREATE TABLE it2(a INTEGER);
-INSERT INTO it2 VALUES(9), (5), (1), (8);
-CREATE TABLE it3(a INTEGER);
-INSERT INTO it3 VALUES(7), (1), (0), (5), (1), (4);
-CREATE TABLE ot4(a INTEGER);
-INSERT INTO ot4 VALUES(1), (3), (5), (7), (9), (7), (3), (1);
-SELECT * FROM ot1,ot4
-WHERE (ot1.a,ot4.a) IN (SELECT it2.a,it3.a
-FROM it2,it3);
-a a
-5 1
-8 1
-5 5
-8 5
-5 7
-8 7
-5 7
-8 7
-5 1
-8 1
-explain SELECT * FROM ot1,ot4
-WHERE (ot1.a,ot4.a) IN (SELECT it2.a,it3.a
-FROM it2,it3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot1 ALL NULL NULL NULL NULL 2
-1 PRIMARY ot4 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED it2 ALL NULL NULL NULL NULL 4
-2 MATERIALIZED it3 ALL NULL NULL NULL NULL 6 Using join buffer (flat, BNL join)
-DROP TABLE IF EXISTS ot1, ot4, it2, it3;
-#
-# Bug#729039: NULL keys used to evaluate subquery
-#
-CREATE TABLE t1 (a int) ;
-INSERT INTO t1 VALUES (NULL), (1), (NULL), (2);
-CREATE TABLE t2 (a int, INDEX idx(a)) ;
-INSERT INTO t2 VALUES (NULL), (1), (NULL);
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 USE INDEX () WHERE t2.a = t1.a);
-a
-1
-EXPLAIN
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 USE INDEX() WHERE t2.a = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 WHERE t2.a = t1.a);
-a
-1
-EXPLAIN
-SELECT * FROM t1
-WHERE EXISTS (SELECT a FROM t2 WHERE t2.a = t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where
-2 MATERIALIZED t2 index idx idx 5 NULL 3 Using index
-DROP TABLE t1,t2;
-#
-# BUG#752992: Wrong results for a subquery with 'semijoin=on'
-#
-CREATE TABLE t1 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t1 VALUES (11,0);
-INSERT INTO t1 VALUES (12,5);
-INSERT INTO t1 VALUES (15,0);
-CREATE TABLE t2 (pk INTEGER PRIMARY KEY, i INTEGER NOT NULL);
-INSERT INTO t2 VALUES (11,1);
-INSERT INTO t2 VALUES (12,2);
-INSERT INTO t2 VALUES (15,4);
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=0;
-EXPLAIN SELECT * FROM t1 WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-2 MATERIALIZED t2 index NULL PRIMARY 4 NULL 3 Using index
-2 MATERIALIZED it index PRIMARY PRIMARY 4 NULL 3 Using index
-SELECT * FROM t1 WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON 1);
-pk i
-11 0
-12 5
-15 0
-SET join_cache_level=@save_join_cache_level;
-DROP table t1,t2;
-#
-# Bug#751350: crash with pushed condition for outer references when
-# there should be none of such conditions
-#
-CREATE TABLE t1 (a int, b int) ;
-INSERT INTO t1 VALUES (0,0),(0,0);
-set @optimizer_switch_save=@@optimizer_switch;
-set @@optimizer_switch='semijoin=off,materialization=on,in_to_exists=on';
-EXPLAIN
-SELECT b FROM t1
-WHERE ('0') IN ( SELECT a FROM t1 GROUP BY a )
-GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT b FROM t1
-WHERE ('0') IN ( SELECT a FROM t1 GROUP BY a )
-GROUP BY b;
-b
-0
-set @@optimizer_switch=@optimizer_switch_save;
-DROP TABLE t1;
-#
-# Bug #11765713 58705:
-# OPTIMIZER LET ENGINE DEPEND ON UNINITIALIZED VALUES
-# CREATED BY OPT_SUM_QUERY
-#
-CREATE TABLE t1(a INT NOT NULL, KEY (a));
-INSERT INTO t1 VALUES (0), (1);
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1)
-);
-ERROR 21000: Subquery returns more than 1 row
-SELECT 1 as foo FROM t1 WHERE a < SOME
-(SELECT a FROM t1 WHERE a <=>
-(SELECT a FROM t1 where a is null)
-);
-foo
-DROP TABLE t1;
-CREATE TABLE t1 (a int(11), b varchar(1));
-INSERT INTO t1 VALUES (2,NULL),(5,'d'),(7,'g');
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 );
-a
-5
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 GROUP BY b );
-a
-7
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 );
-a
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
-a
-delete from t1;
-INSERT INTO t1 VALUES (2,NULL),(5,'d'),(7,'g');
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 );
-a
-5
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 GROUP BY b );
-a
-7
-SELECT a FROM t1 WHERE b > ANY ( SELECT b FROM t1 );
-a
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b >= ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b = ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 );
-a
-5
-7
-SELECT a FROM t1 WHERE b <> ANY ( SELECT b FROM t1 GROUP BY b );
-a
-5
-7
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b < ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b > ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b >= ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b = ALL ( SELECT b FROM t1 GROUP BY b );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 );
-a
-SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
-a
-drop table t1;
-#
-# Fix of lp:780386 (NULL left part with empty ALL subquery).
-#
-CREATE TABLE t1 ( f11 int) ;
-INSERT IGNORE INTO t1 VALUES (0),(0);
-CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
-INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
-DROP TABLE IF EXISTS t3;
-Warnings:
-Note 1051 Unknown table 'test.t3'
-CREATE TABLE t3 ( f3 int) ;
-INSERT INTO t3 VALUES (0),(0);
-SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
-r
-NULL
-5
-NULL
-5
-DROP TABLE t1, t2, t3;
-#
-# Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2(a1 int);
-INSERT INTO t2 VALUES (3);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 2.0 FROM t2);
-1
-1
-1
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT 'a' FROM t2);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t2);
-1
-1
-1
-SET SESSION sql_mode=@old_sql_mode;
-DROP TABLE t1, t2;
-create table t2(i int);
-insert into t2 values(0);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-CREATE VIEW v1 AS
-SELECT 'f' FROM t2 UNION SELECT 'x' FROM t2
-;
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key)
-);
-SELECT t1.pk
-FROM t1
-WHERE t1.col_varchar_key < ALL ( SELECT * FROM v1 )
-;
-pk
-SET SESSION sql_mode=@old_sql_mode;
-drop table t2, t1;
-drop view v1;
-#
-# BUG#50257: Missing info in REF column of the EXPLAIN
-# lines for subselects
-#
-CREATE TABLE t1 (a INT, b INT, INDEX (a));
-INSERT INTO t1 VALUES (3, 10), (2, 20), (7, 10), (5, 20);
-EXPLAIN SELECT * FROM (SELECT * FROM t1 WHERE a=7) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 5 const 1
-EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 SUBQUERY t1 ref a a 5 const 1 Using index
-DROP TABLE t1;
-#
-# BUG#12616253 - WRONG RESULT WITH EXISTS(SUBQUERY) (MISSING ROWS)
-# (duplicate of LP bug #888456)
-#
-CREATE TABLE t1 (f1 varchar(1));
-INSERT INTO t1 VALUES ('v'),('s');
-CREATE TABLE t2 (f1_key varchar(1), KEY (f1_key));
-INSERT INTO t2 VALUES ('j'),('v'),('c'),('m'),('d'),
-('d'),('y'),('t'),('d'),('s');
-EXPLAIN
-SELECT table1.f1, table2.f1_key FROM t1 AS table1, t2 AS table2
-WHERE EXISTS (SELECT DISTINCT f1_key FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY table1 ALL NULL NULL NULL NULL 2
-1 PRIMARY table2 index NULL f1_key 4 NULL 10 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 index f1_key f1_key 4 NULL 10 Using where; Using index
-SELECT table1.f1, table2.f1_key FROM t1 AS table1, t2 AS table2
-WHERE EXISTS (SELECT DISTINCT f1_key FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1);
-f1 f1_key
-s c
-s d
-s d
-s d
-s j
-s m
-s s
-s t
-s v
-s y
-v c
-v d
-v d
-v d
-v j
-v m
-v s
-v t
-v v
-v y
-DROP TABLE t1,t2;
-#
-# LP bug 919427: EXPLAIN for a query over a single-row table
-# with IN subquery in WHERE condition
-#
-CREATE TABLE ot (
-col_int_nokey int(11),
-col_varchar_nokey varchar(1)
-) ;
-INSERT INTO ot VALUES (1,'x');
-CREATE TABLE it1(
-col_int_key int(11),
-col_varchar_key varchar(1),
-KEY idx_cvk_cik (col_varchar_key,col_int_key)
-);
-INSERT INTO it1 VALUES (NULL,'x'), (NULL,'f');
-CREATE TABLE it2 (
-col_int_key int(11),
-col_varchar_key varchar(1),
-col_varchar_key2 varchar(1),
-KEY idx_cvk_cvk2_cik (col_varchar_key, col_varchar_key2, col_int_key),
-KEY idx_cvk_cik (col_varchar_key, col_int_key)
-);
-INSERT INTO it2 VALUES (NULL,'x','x'), (NULL,'f','f');
-EXPLAIN
-SELECT col_int_nokey FROM ot
-WHERE col_varchar_nokey IN
-(SELECT col_varchar_key FROM it1 WHERE col_int_key IS NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY it1 index_subquery idx_cvk_cik idx_cvk_cik 9 func,const 2 Using index; Using where
-SELECT col_int_nokey FROM ot
-WHERE col_varchar_nokey IN
-(SELECT col_varchar_key FROM it1 WHERE col_int_key IS NULL);
-col_int_nokey
-1
-EXPLAIN
-SELECT col_int_nokey FROM ot
-WHERE (col_varchar_nokey, 'x') IN
-(SELECT col_varchar_key, col_varchar_key2 FROM it2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY it2 index_subquery idx_cvk_cvk2_cik,idx_cvk_cik idx_cvk_cvk2_cik 8 func,const 1 Using index; Using where
-SELECT col_int_nokey FROM ot
-WHERE (col_varchar_nokey, 'x') IN
-(SELECT col_varchar_key, col_varchar_key2 FROM it2);
-col_int_nokey
-1
-DROP TABLE ot,it1,it2;
-#
-# MDEV-746
-# Bug#13651009 WRONG RESULT FROM DERIVED TABLE IF THE SUBQUERY
-# HAS AN EMPTY RESULT
-#
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_int_nokey int NOT NULL,
-col_int_key int NOT NULL,
-col_time_key time NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_time_key (col_time_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-pk int NOT NULL AUTO_INCREMENT,
-col_int_nokey int NOT NULL,
-col_int_key int NOT NULL,
-col_time_key time NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_time_key (col_time_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,4,4,'00:00:00','b','b');
-SET @var2:=4, @var3:=8;
-
-Testcase without inner subquery
-EXPLAIN SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE sq4_alias1 system NULL NULL NULL NULL 0 Const row not found
-SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3;
-@var3:=12 pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-SELECT @var3;
-@var3
-8
-EXPLAIN SELECT * FROM ( SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3 ) AS alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 0 Const row not found
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT * FROM ( SELECT @var3:=12, sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
-sq4_alias1.col_varchar_key = @var3 ) AS alias3;
-@var3:=12 pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-SELECT @var3;
-@var3
-8
-
-Testcase with inner subquery; crashed WL#6095
-SET @var3=8;
-EXPLAIN SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY c_sq1_alias1 system PRIMARY NULL NULL NULL 1
-SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3));
-pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-EXPLAIN SELECT * FROM ( SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3)) ) AS alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-3 DEPENDENT SUBQUERY c_sq1_alias1 system PRIMARY NULL NULL NULL 1
-SELECT * FROM ( SELECT sq4_alias1.*
-FROM t1 AS sq4_alias1
-WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
-NOT IN
-(SELECT c_sq1_alias1.col_varchar_key AS c_sq1_field1,
-c_sq1_alias1.col_varchar_nokey AS c_sq1_field2
-FROM t2 AS c_sq1_alias1
-WHERE (c_sq1_alias1.col_int_nokey != @var2
-OR c_sq1_alias1.pk != @var3)) ) AS alias3;
-pk col_int_nokey col_int_key col_time_key col_varchar_key col_varchar_nokey
-DROP TABLE t1,t2;
-# End of 5.2 tests
-#
-# BUG#779885: Crash in eliminate_item_equal with materialization=on in
-#
-CREATE TABLE t1 ( f1 int );
-INSERT INTO t1 VALUES (19), (20);
-CREATE TABLE t2 ( f10 varchar(32) );
-INSERT INTO t2 VALUES ('c'),('d');
-CREATE TABLE t3 ( f10 varchar(32) );
-INSERT INTO t3 VALUES ('a'),('b');
-SELECT *
-FROM t1
-WHERE
-( 't' ) IN (
-SELECT t3.f10
-FROM t3
-JOIN t2
-ON t2.f10 = t3.f10
-);
-f1
-DROP TABLE t1,t2,t3;
-#
-# BUG lp:813473: Wrong result with outer join + NOT IN subquery
-# This bug is a duplicate of Bug#11764086 whose test case is added below
-#
-CREATE TABLE t1 (c int) ;
-INSERT INTO t1 VALUES (5),(6);
-CREATE TABLE t2 (a int, b int) ;
-INSERT INTO t2 VALUES (20,9),(20,9);
-create table t3 (d int, e int);
-insert into t3 values (2, 9), (3,10);
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-EXPLAIN
-SELECT t2.b , t1.c
-FROM t2 LEFT JOIN t1 ON t1.c < 3
-WHERE (t2.b , t1.c) NOT IN (SELECT * from t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 2
-SELECT t2.b , t1.c
-FROM t2 LEFT JOIN t1 ON t1.c < 3
-WHERE (t2.b, t1.c) NOT IN (SELECT * from t3);
-b c
-9 NULL
-9 NULL
-SET optimizer_switch=@save_optimizer_switch;
-drop table t1, t2, t3;
-#
-# BUG#50257: Missing info in REF column of the EXPLAIN
-# lines for subselects
-#
-CREATE TABLE t1 (a INT, b INT, INDEX (a));
-INSERT INTO t1 VALUES (3, 10), (2, 20), (7, 10), (5, 20);
-
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-EXPLAIN SELECT * FROM (SELECT * FROM t1 WHERE a=7) t;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED t1 ref a a 5 const 1
-set optimizer_switch=@tmp_optimizer_switch;
-
-EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 SUBQUERY t1 ref a a 5 const 1 Using index
-
-DROP TABLE t1;
-#
-# Bug#11764086: Null left operand to NOT IN in WHERE clause
-# behaves differently than real NULL
-#
-CREATE TABLE parent (id int);
-INSERT INTO parent VALUES (1), (2);
-CREATE TABLE child (parent_id int, other int);
-INSERT INTO child VALUES (1,NULL);
-# Offending query (c.parent_id is NULL for null-complemented rows only)
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id NOT IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-);
-id parent_id
-1 1
-2 NULL
-# Some syntactic variations with IS FALSE and IS NOT TRUE
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-) IS NOT TRUE;
-id parent_id
-1 1
-2 NULL
-SELECT p.id, c.parent_id
-FROM parent p
-LEFT JOIN child c
-ON p.id = c.parent_id
-WHERE c.parent_id IN (
-SELECT parent_id
-FROM child
-WHERE parent_id = 3
-) IS FALSE;
-id parent_id
-1 1
-2 NULL
-DROP TABLE parent, child;
-# End of test for bug#11764086.
-#
-# Bug 11765699 - 58690: !TABLE || (!TABLE->READ_SET ||
-# BITMAP_IS_SET(TABLE->READ_SET, FIELD_INDEX
-#
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (0), (1);
-CREATE TABLE t2(
-b TEXT,
-c INT,
-PRIMARY KEY (b(1))
-);
-INSERT INTO t2 VALUES ('a', 2), ('b', 3);
-SELECT 1 FROM t1 WHERE a =
-(SELECT 1 FROM t2 WHERE b =
-(SELECT 1 FROM t1 t11 WHERE c = 1 OR t1.a = 1 AND 1 = 2)
-ORDER BY b
-);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-SELECT 1 FROM t1 WHERE a =
-(SELECT 1 FROM t2 WHERE b =
-(SELECT 1 FROM t1 t11 WHERE c = 1 OR t1.a = 1 AND 1 = 2)
-GROUP BY b
-);
-1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-Warning 1292 Truncated incorrect DOUBLE value: 'a'
-Warning 1292 Truncated incorrect DOUBLE value: 'b'
-DROP TABLE t1, t2;
-#
-# BUG#12616253 - WRONG RESULT WITH EXISTS(SUBQUERY) (MISSING ROWS)
-#
-CREATE TABLE t1 (f1 varchar(1));
-INSERT INTO t1 VALUES ('v'),('s');
-CREATE TABLE t2 (f1_key varchar(1), KEY (f1_key));
-INSERT INTO t2 VALUES ('j'),('v'),('c'),('m'),('d'),
-('d'),('y'),('t'),('d'),('s');
-SELECT table1.f1, table2.f1_key
-FROM t1 AS table1, t2 AS table2
-WHERE EXISTS
-(
-SELECT DISTINCT f1_key
-FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1 );
-f1 f1_key
-s c
-s d
-s d
-s d
-s j
-s m
-s s
-s t
-s v
-s y
-v c
-v d
-v d
-v d
-v j
-v m
-v s
-v t
-v v
-v y
-explain SELECT table1.f1, table2.f1_key
-FROM t1 AS table1, t2 AS table2
-WHERE EXISTS
-(
-SELECT DISTINCT f1_key
-FROM t2
-WHERE f1_key != table2.f1_key AND f1_key >= table1.f1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY table1 ALL NULL NULL NULL NULL 2
-1 PRIMARY table2 index NULL f1_key 4 NULL 10 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t2 index f1_key f1_key 4 NULL 10 Using where; Using index
-DROP TABLE t1,t2;
-#
-# lp:826279: assertion failure with GROUP BY a result of subquery
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (0), (0);
-CREATE TABLE t2 (a int, b int, c int);
-INSERT INTO t2 VALUES (10,7,0), (0,7,0);
-CREATE TABLE t3 (a int, b int);
-INSERT INTO t3 VALUES (10,7), (0,7);
-SELECT SUM(DISTINCT b),
-(SELECT t2.a FROM t1 JOIN t2 ON t2.c != 0
-WHERE t.a != 0 AND t2.a != 0)
-FROM (SELECT * FROM t3) AS t
-GROUP BY 2;
-SUM(DISTINCT b) (SELECT t2.a FROM t1 JOIN t2 ON t2.c != 0
-WHERE t.a != 0 AND t2.a != 0)
-7 NULL
-SELECT SUM(DISTINCT b),
-(SELECT t2.a FROM t1,t2 WHERE t.a != 0 or 1=2 LIMIT 1)
-FROM (SELECT * FROM t3) AS t
-GROUP BY 2;
-SUM(DISTINCT b) (SELECT t2.a FROM t1,t2 WHERE t.a != 0 or 1=2 LIMIT 1)
-7 NULL
-7 10
-DROP TABLE t1,t2,t3;
-#
-# Bug#12329653
-# EXPLAIN, UNION, PREPARED STATEMENT, CRASH, SQL_FULL_GROUP_BY
-#
-CREATE TABLE t1(a1 int);
-INSERT INTO t1 VALUES (1),(2);
-SELECT @@session.sql_mode INTO @old_sql_mode;
-SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
-SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
-1
-1
-1
-PREPARE stmt FROM
-'SELECT 1 UNION ALL
-SELECT 1 FROM t1
-ORDER BY
-(SELECT 1 FROM t1 AS t1_0
- WHERE 1 < SOME (SELECT a1 FROM t1)
-)' ;
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-EXECUTE stmt ;
-ERROR 21000: Subquery returns more than 1 row
-SET SESSION sql_mode=@old_sql_mode;
-DEALLOCATE PREPARE stmt;
-DROP TABLE t1;
-#
-# LP BUG#833777 Performance regression with deeply nested subqueries
-#
-create table t1 (a int not null, b char(10) not null);
-insert into t1 values (1, 'a');
-set @@optimizer_switch='in_to_exists=on,semijoin=off,materialization=off,subquery_cache=off';
-select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1 where a in (select a from t1)))))))))))))))))))))))))))));
-a
-1
-set @@optimizer_switch=@subselect_tmp;
-drop table t1;
-#
-# LP BUG#894397 Wrong result with in_to_exists, constant table , semijoin=OFF,materialization=OFF
-#
-CREATE TABLE t1 (a varchar(3));
-INSERT INTO t1 VALUES ('AAA'),('BBB');
-CREATE TABLE t2 (a varchar(3));
-INSERT INTO t2 VALUES ('CCC');
-set @@optimizer_switch='semijoin=off,materialization=off,in_to_exists=on,subquery_cache=off';
-SELECT * FROM t1 WHERE t1.a IN (SELECT t2.a FROM t2 WHERE t2.a < 'ZZZ');
-a
-set @@optimizer_switch=@subselect_tmp;
-drop table t1, t2;
-#
-# LP bug #859375: Assertion `0' failed in st_select_lex_unit::optimize
-# with view , UNION and prepared statement (rewriting fake_select
-# condition).
-#
-CREATE TABLE t1 ( f1 int NOT NULL, f4 varchar(1) NOT NULL) ;
-INSERT INTO t1 VALUES (6,'d'),(7,'y');
-CREATE TABLE t2 ( f1 int NOT NULL, f2 int NOT NULL) ;
-INSERT INTO t2 VALUES (10,7);
-CREATE VIEW v2 AS SELECT * FROM t2;
-PREPARE st1 FROM "
- SELECT *
- FROM t1
- LEFT JOIN v2 ON ( v2.f2 = t1.f1 )
- WHERE v2.f1 NOT IN (
- SELECT 1 UNION
- SELECT 247
- )
-";
-EXECUTE st1;
-f1 f4 f1 f2
-7 y 10 7
-deallocate prepare st1;
-DROP VIEW v2;
-DROP TABLE t1,t2;
-#
-# LP bug #887458 Crash in subselect_union_engine::no_rows with
-# double UNION and join_cache_level=3,8
-# (IN/ALL/ANY optimizations should not be applied to fake_select)
-CREATE TABLE t2 ( a int, b varchar(1)) ;
-INSERT IGNORE INTO t2 VALUES (8,'y'),(8,'y');
-CREATE TABLE t1 ( b varchar(1)) ;
-INSERT IGNORE INTO t1 VALUES (NULL),(NULL);
-set @save_join_cache_level=@@join_cache_level;
-SET SESSION join_cache_level=3;
-SELECT *
-FROM t1, t2
-WHERE t2.b IN (
-SELECT 'm' UNION
-SELECT 'm'
-) OR t1.b <> SOME (
-SELECT 'v' UNION
-SELECT 't'
-);
-b a b
-set @@join_cache_level= @save_join_cache_level;
-drop table t1,t2;
-#
-# LP bug #885162 Got error 124 from storage engine with UNION inside
-# subquery and join_cache_level=3..8
-# (IN/ALL/ANY optimizations should not be applied to fake_select)
-#
-CREATE TABLE t1 (
-f1 varchar(1) DEFAULT NULL
-);
-INSERT INTO t1 VALUES ('c');
-set @save_join_cache_level=@@join_cache_level;
-SET SESSION join_cache_level=8;
-SELECT * FROM t1 WHERE t1.f1 IN ( SELECT 'k' UNION SELECT 'e' );
-f1
-set @@join_cache_level= @save_join_cache_level;
-drop table t1;
-#
-# LP BUG#747278 incorrect values of the NULL (no rows) single
-# row subquery requested via element_index() interface
-#
-CREATE TABLE t1 (f1a int, f1b int) ;
-INSERT IGNORE INTO t1 VALUES (1,1),(2,2);
-CREATE TABLE t2 ( f2 int);
-INSERT IGNORE INTO t2 VALUES (3),(4);
-CREATE TABLE t3 (f3a int default 1, f3b int default 2);
-INSERT INTO t3 VALUES (1,1),(2,2);
-set @old_optimizer_switch = @@session.optimizer_switch;
-set @@optimizer_switch='materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off,subquery_cache=off,semijoin=off';
-SELECT (SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-SELECT (SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-set @@session.optimizer_switch=@old_optimizer_switch;
-SELECT (SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) NOT IN (SELECT f1a, f1b FROM t1)
-NULL
-SELECT (SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1) FROM t2;
-(SELECT f3a FROM t3 where f3a > 3) IN (SELECT f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1) FROM t2;
-(SELECT f3a,f3a FROM t3 where f3a > 3) IN (SELECT f1a,f1a FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1) FROM t2;
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-NULL
-SELECT (SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1);
-(SELECT f3a, f3b FROM t3 where f3a > 3) IN (SELECT f1a, f1b FROM t1)
-NULL
-select (null, null) = (null, null);
-(null, null) = (null, null)
-NULL
-SELECT (SELECT f3a, f3a FROM t3 where f3a > 3) = (0, 0);
-(SELECT f3a, f3a FROM t3 where f3a > 3) = (0, 0)
-NULL
-drop tables t1,t2,t3;
-#
-# LP BUG#825051 Wrong result with date/datetime and subquery with GROUP BY and in_to_exists
-#
-CREATE TABLE t1 (a date, KEY (a)) ;
-INSERT INTO t1 VALUES ('2009-01-01'),('2009-02-02');
-set @old_optimizer_switch = @@optimizer_switch;
-SET @@optimizer_switch='semijoin=off,materialization=off,in_to_exists=on,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 4 NULL 2 Using where; Using index
-2 DEPENDENT SUBQUERY t1 index_subquery a a 4 func 2 Using index
-SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-a
-2009-01-01
-2009-02-02
-SET @@optimizer_switch='semijoin=off,materialization=on,in_to_exists=off,subquery_cache=off';
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index NULL a 4 NULL 2 Using where; Using index
-2 MATERIALIZED t1 index NULL a 4 NULL 2 Using index
-SELECT * FROM t1 WHERE a IN (SELECT a AS field1 FROM t1 GROUP BY field1);
-a
-2009-01-01
-2009-02-02
-set @@optimizer_switch=@old_optimizer_switch;
-drop table t1;
-#
-# LP BUG#908269 incorrect condition in case of subqueries depending
-# on constant tables
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 ( b INT ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1);
-CREATE TABLE t3 ( c INT );
-INSERT INTO t3 VALUES (4),(5);
-SET optimizer_switch='subquery_cache=off';
-SELECT ( SELECT b FROM t2 WHERE b = a OR EXISTS ( SELECT c FROM t3 WHERE c = b ) ) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR EXISTS ( SELECT c FROM t3 WHERE c = b ) )
-1
-NULL
-SELECT ( SELECT b FROM t2 WHERE b = a OR b * 0) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR b * 0)
-1
-NULL
-SELECT ( SELECT b FROM t2 WHERE b = a OR rand() * 0) FROM t1;
-( SELECT b FROM t2 WHERE b = a OR rand() * 0)
-1
-NULL
-drop table t1,t2,t3;
-set optimizer_switch=@subselect_tmp;
-#
-# LP BUG#905353 Wrong non-empty result with a constant table,
-# aggregate function in subquery, MyISAM or Aria
-#
-CREATE TABLE t1 ( a INT ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1);
-SELECT a FROM t1 WHERE ( SELECT MIN(a) = 100 );
-a
-drop table t1;
-#
-# LP BUG#985667 Wrong result with subquery in SELECT clause, and constant table in
-# main query and implicit grouping
-#
-CREATE TABLE t1 (f1 int) engine=MyISAM;
-INSERT INTO t1 VALUES (7),(8);
-CREATE TABLE t2 (f2 int, f3 varchar(1)) engine=MyISAM;
-INSERT INTO t2 VALUES (3,'f');
-EXPLAIN
-SELECT COUNT(f1), (SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(f1), (SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 NULL
-EXPLAIN
-SELECT COUNT(f1), exists(SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT COUNT(f1), exists(SELECT f1 FROM t1 WHERE f2 > 0 limit 1) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 0
-EXPLAIN
-SELECT COUNT(f1), f2 > ALL (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT COUNT(f1), f2 > ALL (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 1
-EXPLAIN
-SELECT COUNT(f1), f2 IN (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT COUNT(f1), f2 IN (SELECT f1 FROM t1 WHERE f2 > 0) AS f4 FROM t2, t1 WHERE 'v'= f3;
-COUNT(f1) f4
-0 0
-drop table t1,t2;
-#
-# LP BUG#1002079 Server crashes in Item_singlerow_subselect::val_int with constant table,
-# HAVING, UNION in subquery
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (7),(0);
-CREATE TABLE t2 (b INT);
-EXPLAIN
-SELECT SUM(a) AS f1, a AS f2 FROM (t1, t2) HAVING f2 >= ALL (SELECT 4 UNION SELECT 5) AND f1 = 7;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 0 Const row not found
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT SUM(a) AS f1, a AS f2 FROM (t1, t2) HAVING f2 >= ALL (SELECT 4 UNION SELECT 5) AND f1 = 7;
-f1 f2
-drop table t1,t2;
-#
-# LP BUG#1008686 Server crashes in subselect_union_engine::no_rows on SELECT with impossible
-# WHERE and UNION in HAVING
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(7);
-EXPLAIN
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 0 HAVING a NOT IN ( SELECT 2 UNION SELECT 5 ) OR min_a != 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 0 HAVING a NOT IN ( SELECT 2 UNION SELECT 5 ) OR min_a != 1;
-min_a a
-EXPLAIN
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 1=2 HAVING a NOT IN ( SELECT a from t1 UNION select a+1 from t1 ) OR min_a != 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-3 DEPENDENT UNION t1 ALL NULL NULL NULL NULL 2 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-SELECT MIN(a) AS min_a, a FROM t1 WHERE 1=2 HAVING a NOT IN ( SELECT a from t1 UNION select a+1 from t1 ) OR min_a != 1;
-min_a a
-drop table t1;
-#
-# MDEV-367: Different results with and without subquery_cache on
-# a query with a constant NOT IN condition
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2),(3);
-set @mdev367_optimizer_switch = @@optimizer_switch;
-set optimizer_switch = 'subquery_cache=on';
-SELECT * FROM t1 WHERE ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) OR a > 100;
-a
-SELECT *, ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) FROM t1;
-a ( 3, 3 ) NOT IN ( SELECT NULL, NULL )
-1 NULL
-2 NULL
-3 NULL
-set optimizer_switch=@mdev367_optimizer_switch;
-set optimizer_switch = 'subquery_cache=off';
-SELECT * FROM t1 WHERE ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) OR a > 100;
-a
-SELECT *, ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) FROM t1;
-a ( 3, 3 ) NOT IN ( SELECT NULL, NULL )
-1 NULL
-2 NULL
-3 NULL
-set optimizer_switch=@mdev367_optimizer_switch;
-DROP TABLE t1;
-#
-# MDEV-521 single value subselect transformation problem
-#
-CREATE TABLE t1 (f1 char(2), PRIMARY KEY (f1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('u1'),('u2');
-SELECT a.* FROM t1 a WHERE ( SELECT EXISTS ( SELECT 1 FROM t1 b WHERE b.f1 = a.f1 ) );
-f1
-u1
-u2
-FLUSH TABLES;
-SELECT a.* FROM t1 a WHERE ( SELECT EXISTS ( SELECT 1 FROM t1 b WHERE b.f1 = a.f1 ) );
-f1
-u1
-u2
-DROP TABLE t1;
-# return optimizer switch changed in the beginning of this test
-set optimizer_switch=@subselect_tmp;
-#
-# lp:944706 Query with impossible or constant subquery in WHERE or HAVING is not
-# precomputed and thus not part of optimization
-#
-CREATE TABLE t1 ( a VARCHAR(16), KEY (a) );
-INSERT INTO t1 VALUES ('Abilene'),('Akron'),('Albany'),('Albuquerque'),('Alexandria'),('Allentown'),
-('Amarillo'),('Anaheim'),('Anchorage'),('Ann Arbor'),('Arden-Arcade');
-EXPLAIN
-SELECT MAX( alias2.a ) AS field
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR alias1.a = 'y'
-HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible HAVING
-2 SUBQUERY t1 index_subquery a a 19 const 1 Using index; Using where
-SELECT MAX( alias2.a ) AS field
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR alias1.a = 'y'
-HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
-field
-EXPLAIN
-SELECT MAX( alias2.a )
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 index a a 19 NULL 11 Using where; Using index
-1 PRIMARY alias2 ref a a 19 test.alias1.a 2 Using index
-1 PRIMARY alias3 index NULL a 19 NULL 11 Using index; Using join buffer (flat, BNL join)
-2 SUBQUERY t1 index_subquery a a 19 const 1 Using index; Using where
-SELECT MAX( alias2.a )
-FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
-WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
-MAX( alias2.a )
-Arden-Arcade
-drop table t1;
-#
-# MDEV-277 CHEAP SQ: Server crashes in st_join_table::get_examined_rows
-# with semijoin+materialization, IN and = subqueries
-#
-CREATE TABLE t1 (a1 INT);
-INSERT INTO t1 VALUES (4),(6);
-CREATE TABLE t2 (b1 INT);
-INSERT INTO t2 VALUES (1),(7);
-EXPLAIN
-SELECT * FROM t1
-WHERE a1 = (SELECT COUNT(*) FROM t1 WHERE a1 IN (SELECT a1 FROM t1, t2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-SELECT * FROM t1
-WHERE a1 = (SELECT COUNT(*) FROM t1 WHERE a1 IN (SELECT a1 FROM t1, t2));
-a1
-drop table t1, t2;
-#
-# MDEV-287 CHEAP SQ: A query with subquery in SELECT list, EXISTS,
-# inner joins takes hundreds times longer
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(7);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (4),(5);
-CREATE TABLE t3 (c INT);
-INSERT INTO t3 VALUES (8),(3);
-set @@expensive_subquery_limit= 0;
-EXPLAIN
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 2
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 PRIMARY alias3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-flush status;
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-(SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 6
-Subquery_cache_miss 2
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 8
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 22
-set @@expensive_subquery_limit= default;
-EXPLAIN
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 2
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-1 PRIMARY alias3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t3 ALL NULL NULL NULL NULL 2
-flush status;
-SELECT (SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-FROM t2 alias1, t1 alias2, t1 alias3;
-(SELECT MIN(b) FROM t1, t2 WHERE b = a AND (b = alias1.b OR EXISTS (SELECT * FROM t3)))
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-show status like "subquery_cache%";
-Variable_name Value
-Subquery_cache_hit 0
-Subquery_cache_miss 0
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 16
-drop table t1, t2, t3;
-#
-# MDEV-288 CHEAP SQ: Valgrind warnings "Memory lost" with IN and EXISTS nested subquery, materialization+semijoin
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0),(8);
-CREATE TABLE t2 (b INT PRIMARY KEY);
-INSERT INTO t2 VALUES (1),(2);
-EXPLAIN
-SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-3 SUBQUERY t1 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
-a
-drop table t1,t2;
-#
-# MDEV-410: EXPLAIN shows type=range, while SHOW EXPLAIN and userstat show full table scan is used
-#
-CREATE TABLE t1 (a VARCHAR(3) PRIMARY KEY) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('USA');
-CREATE TABLE t2 (b INT, c VARCHAR(52), KEY(b)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3813,'United States'),(3940,'Russia');
-CREATE TABLE t3 (d INT, KEY(d)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (12),(22),(9),(45);
-create table t4 like t3;
-insert into t4 select * from t3;
-# This should not show range access for table t2
-explain
-SELECT MIN(b) FROM ( SELECT * FROM t1, t2, t3 WHERE d = b ) AS alias1
-WHERE SLEEP(0.1) OR c < 'p' OR b = ( SELECT MIN(b) FROM t2 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ALL b NULL NULL NULL 2 Using where
-1 PRIMARY t3 ref d d 5 test.t2.b 2 Using where; Using index
-3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-set @tmp_mdev410=@@global.userstat;
-set global userstat=on;
-flush table_statistics;
-flush index_statistics;
-SELECT MIN(b) FROM ( SELECT * FROM t1, t2, t3 WHERE d = b ) AS alias1
-WHERE SLEEP(0.1) OR c < 'p' OR b = ( SELECT MIN(b) FROM t2 );
-MIN(b)
-NULL
-# The following shows that t2 was indeed scanned with a full scan.
-show table_statistics;
-Table_schema Table_name Rows_read Rows_changed Rows_changed_x_#indexes
-test t1 2 0 0
-test t2 3 0 0
-show index_statistics;
-Table_schema Table_name Index_name Rows_read
-test t2 b 1
-set global userstat=@tmp_mdev410;
-DROP TABLE t1,t2,t3,t4;
-#
-# MDEV-430: Server crashes in select_describe on EXPLAIN with
-# materialization+semijoin, 2 nested subqueries, aggregate functions
-#
-CREATE TABLE t1 (a INT, KEY(a));
-INSERT INTO t1 VALUES (1),(8);
-CREATE TABLE t2 (b INT, KEY(b));
-INSERT INTO t2 VALUES (45),(17),(20);
-EXPLAIN SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t1, t2 WHERE b = a GROUP BY a HAVING a <> 1 ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 range a a 5 NULL 2 Using where; Using index
-2 SUBQUERY t2 ref b b 5 test.t1.a 2 Using index
-DROP TABLE t1,t2;
-#
-# MDEV-435: Expensive subqueries may be evaluated during optimization in merge_key_fields
-#
-CREATE TABLE t1 (a INT, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (8),(0);
-CREATE TABLE t2 (b INT, c VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (4,'j'),(6,'v');
-CREATE TABLE t3 (d VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('b'),('c');
-EXPLAIN
-SELECT * FROM t1
-WHERE a = (SELECT MAX(b) FROM t2 WHERE c IN (SELECT MAX(d) FROM t3)) OR a = 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index a a 5 NULL 2 Using where; Using index
-2 SUBQUERY <subquery3> ALL distinct_key NULL NULL NULL 1
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1
-WHERE a = (SELECT MAX(b) FROM t2 WHERE c IN (SELECT MAX(d) FROM t3)) OR a = 10;
-a
-drop table t1, t2, t3;
-#
-# MDEV-405: Server crashes in test_if_skip_sort_order on EXPLAIN with GROUP BY and HAVING in EXISTS subquery
-#
-CREATE TABLE t1 (a INT, KEY(a));
-INSERT INTO t1 VALUES (1),(8);
-CREATE TABLE t2 (b INT, KEY(b));
-INSERT INTO t2 VALUES (45),(17),(20);
-EXPLAIN SELECT * FROM t1 WHERE EXISTS ( SELECT a FROM t1, t2 WHERE b = a GROUP BY a HAVING a <> 1 ) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY t1 range a a 5 NULL 2 Using where; Using index
-2 SUBQUERY t2 ref b b 5 test.t1.a 2 Using index
-DROP TABLE t1,t2;
-#
-# MDEV-5991: crash in Item_field::used_tables
-#
-create table t1 (c int);
-select exists(select 1 from t1 group by `c` in (select `c` from t1));
-exists(select 1 from t1 group by `c` in (select `c` from t1))
-0
-drop table t1;
-#
-# MDEV-7565: Server crash with Signal 6 (part 2)
-#
-Select
-(Select Sum(`TestCase`.Revenue) From mysql.slow_log E
-Where TestCase.TemplateID not in (Select 1 from mysql.slow_log where 2=2)
-) As `ControlRev`
-From
-(Select 3 as Revenue, 4 as TemplateID) As `TestCase`
-Group By TestCase.Revenue, TestCase.TemplateID;
-ControlRev
-NULL
-#
-# MDEV-7445:Server crash with Signal 6
-#
-CREATE PROCEDURE procedure2()
-BEGIN
-Select
-(Select Sum(`TestCase`.Revenue) From mysql.slow_log E
-Where TestCase.TemplateID not in (Select 1 from mysql.slow_log where 2=2)
-) As `ControlRev`
- From
-(Select 3 as Revenue, 4 as TemplateID) As `TestCase`
-Group By TestCase.Revenue, TestCase.TemplateID;
-END |
-call procedure2();
-ControlRev
-NULL
-call procedure2();
-ControlRev
-NULL
-drop procedure procedure2;
-SELECT
-(SELECT user FROM mysql.user
-WHERE h.host in (SELECT host FROM mysql.user)
-) AS sq
-FROM mysql.host h GROUP BY h.host;
-sq
-#
-# MDEV-7846:Server crashes in Item_subselect::fix
-#_fields or fails with Thread stack overrun
-#
-CREATE TABLE t1 (column1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (3),(9);
-CREATE TABLE t2 (column2 INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1),(4);
-CREATE TABLE t3 (column3 INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (6),(8);
-CREATE TABLE t4 (column4 INT) ENGINE=MyISAM;
-INSERT INTO t4 VALUES (2),(5);
-PREPARE stmt FROM "
-SELECT (
- SELECT MAX( table1.column1 ) AS field1
- FROM t1 AS table1
- WHERE table3.column3 IN ( SELECT table2.column2 AS field2 FROM t2 AS table2 )
-) AS sq
-FROM t3 AS table3, t4 AS table4 GROUP BY sq
-";
-EXECUTE stmt;
-sq
-NULL
-EXECUTE stmt;
-sq
-NULL
-deallocate prepare stmt;
-drop table t1,t2,t3,t4;
-#
-# MDEV-7122
-# Assertion `0' failed in subselect_hash_sj_engine::init
-#
-SET SESSION big_tables=1;
-CREATE TABLE t1(a char(255) DEFAULT '', KEY(a(10))) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-INSERT INTO t1 VALUES(0),(0),(0);
-SELECT * FROM t1 WHERE a IN(SELECT MIN(a) FROM t1);
-a
-0
-0
-0
-DROP TABLE t1;
-SET SESSION big_tables=0;
-#
-# MDEV-10776: Server crash on query
-#
-create table t1 (field1 int);
-insert into t1 values (1);
-select round((select 1 from t1 limit 1))
-from t1
-group by round((select 1 from t1 limit 1));
-round((select 1 from t1 limit 1))
-1
-drop table t1;
-#
-# MDEV-7930: Assertion `table_share->tmp_table != NO_TMP_TABLE ||
-# m_lock_type != 2' failed in handler::ha_index_read_map
-#
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 INT, KEY(f2));
-INSERT INTO t2 VALUES (3);
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2;
-SELECT ( SELECT MIN(t2.f2) FROM t1 ) AS sq FROM t2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT ( SELECT MIN(v2.f2) FROM t1 ) AS sq FROM v2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT * FROM v2 where ( SELECT MIN(v2.f2) FROM t1 ) > 0;
-f2
-3
-SELECT count(*) FROM v2 group by ( SELECT MIN(v2.f2) FROM t1 );
-count(*)
-1
-delete from t1;
-SELECT ( SELECT MIN(t2.f2) FROM t1 ) AS sq FROM t2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-SELECT ( SELECT MIN(v2.f2) FROM t1 ) AS sq FROM v2 GROUP BY sq;
-ERROR 42000: Can't group on 'sq'
-drop view v2;
-drop table t1,t2;
-#
-# MDEV-10386 Assertion `fixed == 1' failed in virtual String* Item_func_conv_charset::val_str(String*)
-#
-CREATE TABLE t1 (f1 CHAR(3) CHARACTER SET utf8 NULL, f2 CHAR(3) CHARACTER SET latin1 NULL);
-INSERT INTO t1 VALUES ('foo','bar');
-SELECT * FROM t1 WHERE f2 >= SOME ( SELECT f1 FROM t1 );
-f1 f2
-SELECT * FROM t1 WHERE f2 <= SOME ( SELECT f1 FROM t1 );
-f1 f2
-foo bar
-DROP TABLE t1;
-#
-# MDEV-10146: Wrong result (or questionable result and behavior)
-# with aggregate function in uncorrelated SELECT subquery
-#
-CREATE TABLE t1 (f1 INT);
-CREATE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 int);
-INSERT INTO t2 VALUES (3);
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM t1;
-( SELECT MAX(f1) FROM t2 )
-2
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM v1;
-( SELECT MAX(f1) FROM t2 )
-2
-INSERT INTO t2 VALUES (4);
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM v1;
-ERROR 21000: Subquery returns more than 1 row
-SELECT ( SELECT MAX(f1) FROM t2 ) FROM t1;
-ERROR 21000: Subquery returns more than 1 row
-drop view v1;
-drop table t1,t2;
-CREATE TABLE t1 (f1 INT, KEY(f1)) ENGINE=MyISAM;
-INSERT t1 VALUES (4),(8);
-CREATE TABLE t2 (f2 INT, KEY(f2)) ENGINE=MyISAM;
-INSERT t2 VALUES (6);
-SELECT (SELECT MAX(sq.f2) FROM t1) FROM (SELECT * FROM t2) AS sq WHERE f2 = 2;
-(SELECT MAX(sq.f2) FROM t1)
-NULL
-#
-# Disable this query till MDEV-13399 is resolved
-#
-# INSERT t2 VALUES (9);
-# --error ER_SUBQUERY_NO_1_ROW
-# SELECT (SELECT MAX(sq.f2) FROM t1) FROM (SELECT * FROM t2) AS sq WHERE f2 = 2;
-#
-drop table t1, t2;
-#
-# MDEV-13933: Wrong results in COUNT() query with EXISTS and exists_to_in
-# (5.5 test)
-#
-SET @optimiser_switch_save= @@optimizer_switch;
-CREATE TABLE t1 (a INT NOT NULL);
-INSERT INTO t1 VALUES (1),(1),(1),(5),(5);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (5),(1);
-CREATE TABLE t3 (c INT, KEY(c));
-INSERT INTO t3 VALUES (5),(5);
-SET optimizer_switch='semijoin=on';
-select t1.a from t1 where t1.a in (select `test`.`t2`.`b` from `test`.`t2`)
-and t1.a in (select `test`.`t3`.`c` from `test`.`t3`);
-a
-5
-5
-SET optimizer_switch='semijoin=off';
-select t1.a from t1 where t1.a in (select `test`.`t2`.`b` from `test`.`t2`)
-and t1.a in (select `test`.`t3`.`c` from `test`.`t3`);
-a
-5
-5
-SET @@optimizer_switch= @optimiser_switch_save;
-DROP TABLE t1, t2, t3;
-End of 5.5 tests
-# End of 10.0 tests
-#
-# MDEV-9487: Server crashes in Time_and_counter_tracker::incr_loops
-# with UNION in ALL subquery
-#
-SET NAMES utf8;
-CREATE TABLE t1 (f VARCHAR(8)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('foo');
-SELECT f FROM t1 WHERE f > ALL ( SELECT 'bar' UNION SELECT 'baz' );
-f
-foo
-SELECT f FROM t1 WHERE f > ALL ( SELECT 'bar');
-f
-foo
-drop table t1;
-SET NAMES default;
-#
-# MDEV-10045: Server crashes in Time_and_counter_tracker::incr_loops
-#
-SET NAMES utf8;
-CREATE TABLE t1 (f1 VARCHAR(3), f2 INT UNSIGNED) ENGINE=MyISAM;
-CREATE TABLE t2 (f3 INT) ENGINE=MyISAM;
-SELECT * FROM t1, t2 WHERE f3 = f2 AND f1 > ANY ( SELECT 'foo' UNION SELECT 'bar' );
-f1 f2 f3
-SELECT * FROM t1, t2 WHERE f3 = f2 AND f1 > ANY ( SELECT 'foo');
-f1 f2 f3
-DROP TABLE t1, t2;
-SET NAMES default;
-# End of 10.1 tests
-#
-# MDEV-12564: IN TO EXISTS transformation for rows after
-# conversion an outer join to inner join
-#
-CREATE TABLE t (
-pk int PRIMARY KEY, i int NOT NULL, c varchar(8), KEY(c)
-) ENGINE=MyISAM;
-INSERT INTO t VALUES (1,10,'foo'),(2,20,'bar');
-SELECT * FROM t t1 RIGHT JOIN t t2 ON (t2.pk = t1.pk)
-WHERE (t2.i, t2.pk) NOT IN ( SELECT t3.i, t3.i FROM t t3, t t4 ) AND t1.c = 'foo';
-pk i c pk i c
-1 10 foo 1 10 foo
-DROP TABLE t;
-# End of 10.2 tests
-set @optimizer_switch_for_subselect_test=null;
-set @join_cache_level_for_subselect_test=NULL;
diff --git a/mysql-test/r/subselect_notembedded.result b/mysql-test/r/subselect_notembedded.result
deleted file mode 100644
index 9153706fc27..00000000000
--- a/mysql-test/r/subselect_notembedded.result
+++ /dev/null
@@ -1,40 +0,0 @@
-purge master logs before (select adddate(current_timestamp(), interval -4 day));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'select adddate(current_timestamp(), interval -4 day))' at line 1
-purge master logs before adddate(current_timestamp(), interval -4 day);
-drop table if exists t1;
-create table t1(a int,b int,key(a),key(b));
-insert into t1(a,b) values (1,2),(2,1),(2,3),(3,4),(5,4),(5,5),
-(6,7),(7,4),(5,3);
-5
-4
-3
-2
-1
-26
-25
-24
-23
-22
-21
-20
-19
-18
-17
-16
-15
-14
-13
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
-drop table t1;
-End of 5.1 tests
diff --git a/mysql-test/r/subselect_nulls.result b/mysql-test/r/subselect_nulls.result
deleted file mode 100644
index 08982371269..00000000000
--- a/mysql-test/r/subselect_nulls.result
+++ /dev/null
@@ -1,123 +0,0 @@
-drop table if exists x1;
-drop table if exists x2;
-set @tmp_subselect_nulls=@@optimizer_switch;
-set optimizer_switch='semijoin=off';
-create table x1(k int primary key, d1 int, d2 int);
-create table x2(k int primary key, d1 int, d2 int);
-insert into x1 values
-(10, 10, 10),
-(20, 20, 20),
-(21, 20, null),
-(30, null, 30),
-(40, 40, 40);
-insert into x2 values
-(10, 10, 10),
-(20, 20, 20),
-(21, 20, null),
-(30, null, 30);
-select *
-from x1
-where (d1, d2) in (select d1, d2
-from x2);
-k d1 d2
-10 10 10
-20 20 20
-select *
-from x1
-where (d1, d2) in (select d1, d2
-from x2) is true;
-k d1 d2
-10 10 10
-20 20 20
-select *
-from x1
-where (d1, d2) in (select d1, d2
-from x2) is false;
-k d1 d2
-40 40 40
-select *
-from x1
-where (d1, d2) in (select d1, d2
-from x2) is unknown;
-k d1 d2
-21 20 NULL
-30 NULL 30
-select *
-from x1
-where d1 in (select d1
-from x2
-where x1.d2=x2.d2);
-k d1 d2
-10 10 10
-20 20 20
-select *
-from x1
-where d1 in (select d1
-from x2
-where x1.d2=x2.d2) is true;
-k d1 d2
-10 10 10
-20 20 20
-select *
-from x1
-where d1 in (select d1
-from x2
-where x1.d2=x2.d2) is false;
-k d1 d2
-21 20 NULL
-40 40 40
-select *
-from x1
-where d1 in (select d1
-from x2
-where x1.d2=x2.d2) is unknown;
-k d1 d2
-30 NULL 30
-select *
-from x1
-where 1 in (select 1
-from x2
-where x1.d1=x2.d1 and x1.d2=x2.d2);
-k d1 d2
-10 10 10
-20 20 20
-select *
-from x1
-where 1 in (select 1
-from x2
-where x1.d1=x2.d1 and x1.d2=x2.d2) is true;
-k d1 d2
-10 10 10
-20 20 20
-select *
-from x1
-where 1 in (select 1
-from x2
-where x1.d1=x2.d1 and x1.d2=x2.d2) is false;
-k d1 d2
-21 20 NULL
-30 NULL 30
-40 40 40
-select *
-from x1
-where 1 in (select 1
-from x2
-where x1.d1=x2.d1 and x1.d2=x2.d2) is unknown;
-k d1 d2
-select *
-from x1
-where exists (select *
-from x2
-where x1.d1=x2.d1 and x1.d2=x2.d2);
-k d1 d2
-10 10 10
-20 20 20
-set optimizer_switch= @tmp_subselect_nulls;
-drop table x1;
-drop table x2;
-select (select 1, 2) in (select 3, 4);
-(select 1, 2) in (select 3, 4)
-0
-select (select NULL, NULL) in (select 3, 4);
-(select NULL, NULL) in (select 3, 4)
-NULL
diff --git a/mysql-test/r/subselect_partial_match.result b/mysql-test/r/subselect_partial_match.result
deleted file mode 100644
index 5f444457794..00000000000
--- a/mysql-test/r/subselect_partial_match.result
+++ /dev/null
@@ -1,985 +0,0 @@
-set @save_optimizer_switch=@@optimizer_switch;
--------------------------------
-Part 1: Feature tests.
--------------------------------
-Default for all tests.
-set @@optimizer_switch = "materialization=on,in_to_exists=off,semijoin=off,subquery_cache=off";
-set @test_default_opt_switch = @@optimizer_switch;
-set @in_exists = "materialization=off,in_to_exists=on,semijoin=off,subquery_cache=off";
--------------------------------------------------------------------------
-Schema requires partial matching, but data analysis discoveres there is
-no need. This is possible only if all outer columns are not NULL.
--------------------------------------------------------------------------
-create table t1 (a1 char(8) not null, a2 char(8) not null);
-create table t2 (b1 char(8), b2 char(8));
-insert into t1 values ('1 - 00', '2 - 00');
-insert into t1 values ('1 - 01', '2 - 01');
-insert into t2 values ('1 - 00', '2 - 00');
-insert into t2 values ('1 - 01', NULL );
-insert into t2 values (NULL , '2 - 02');
-insert into t2 values (NULL , NULL );
-insert into t2 values ('1 - 02', '2 - 02');
-select * from t1
-where (a1, a2) not in (select * from t2 where b1 is not null and b2 is not null);
-a1 a2
-1 - 01 2 - 01
-select a1, a2, (a1, a2) not in (select * from t2) as in_res from t1;
-a1 a2 in_res
-1 - 00 2 - 00 0
-1 - 01 2 - 01 NULL
-drop table t1, t2;
--------------------------------------------------------------------------
-NULLs in the outer columns, no NULLs in the suqbuery
--------------------------------------------------------------------------
-create table t1 (a1 char(8), a2 char(8));
-create table t2 (b1 char(8) not null, b2 char(8) not null);
-insert into t1 values (NULL , '2 - 00');
-insert into t1 values ('1 - 01', '2 - 01');
-insert into t1 values (NULL , NULL );
-insert into t2 values ('1 - 00', '2 - 00');
-insert into t2 values ('1 - 01', '2 - 01');
-insert into t2 values ('1 - 02', '2 - 00');
-select * from t1
-where (a1, a2) not in (select * from t2 where b1 is not null and b2 is not null);
-a1 a2
-select a1, a2, (a1, a2) not in (select * from t2) as in_res from t1;
-a1 a2 in_res
-NULL 2 - 00 NULL
-1 - 01 2 - 01 0
-NULL NULL NULL
-select * from t1
-where (a1, a2) in (select * from t2 where b1 is not null and b2 is not null);
-a1 a2
-1 - 01 2 - 01
-select a1, a2, (a1, a2) in (select * from t2) as in_res from t1;
-a1 a2 in_res
-NULL 2 - 00 NULL
-1 - 01 2 - 01 1
-NULL NULL NULL
-drop table t1, t2;
--------------------------------------------------------------------------
-NULLs in the outer column, NULLs in the subquery, there is
-no value match in any column, but there is a partial match
-such that some of the matching NULLs are in the outer columns,
-the other NULLs are in the inner columns.
--------------------------------------------------------------------------
-create table t1 (a1 char(1), a2 char(1), a3 char(1));
-create table t2 (b1 char(1), b2 char(1), b3 char(1));
-insert into t1 values ('c', NULL, 'a');
-insert into t2 values (NULL, 'x', NULL);
-insert into t2 values (NULL, 'y', NULL);
-insert into t2 values ('o', 'z', 'p');
-set @@optimizer_switch='partial_match_rowid_merge=on,partial_match_table_scan=off';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-c NULL a NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-a1 a2 a3
-set @@optimizer_switch='partial_match_rowid_merge=off,partial_match_table_scan=on';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-c NULL a NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-a1 a2 a3
-set @@optimizer_switch=@in_exists;
-EXPLAIN
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 Using where
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-c NULL a NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 Using where
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-a1 a2 a3
-set @@optimizer_switch = @test_default_opt_switch;
-drop table t1, t2;
-create table t1 (a1 char(1), a2 char(1) not null, a3 char(1));
-create table t2 (b1 char(1), b2 char(1), b3 char(1));
-insert into t1 values (NULL, 'y', NULL);
-insert into t2 values ('v', 'x', NULL);
-insert into t2 values (NULL, 'y', 'w');
-set @@optimizer_switch='partial_match_rowid_merge=on,partial_match_table_scan=off';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-NULL y NULL NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-a1 a2 a3
-set @@optimizer_switch='partial_match_rowid_merge=off,partial_match_table_scan=on';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-NULL y NULL NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-a1 a2 a3
-set @@optimizer_switch=@in_exists;
-EXPLAIN
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-NULL y NULL NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-a1 a2 a3
-set @@optimizer_switch = @test_default_opt_switch;
-drop table t1, t2;
--------------------------------------------------------------------------
-There is only one column in the subquery to complement the NULLs in the
-outer reference. It is a NULL column, so a match is guaranteed.
--------------------------------------------------------------------------
-create table t1 (a1 char(1), a2 char(1), a3 char(1));
-create table t2 (b1 char(1), b2 char(1), b3 char(1));
-insert into t1 values (NULL, 'g', NULL);
-insert into t2 values ('z', NULL, 'y');
-insert into t2 values (NULL, 'z', 'y');
-set @@optimizer_switch='partial_match_rowid_merge=on,partial_match_table_scan=off';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-NULL g NULL NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-a1 a2 a3
-set @@optimizer_switch='partial_match_rowid_merge=off,partial_match_table_scan=on';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-NULL g NULL NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-a1 a2 a3
-set @@optimizer_switch=@in_exists;
-EXPLAIN
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-NULL g NULL NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-a1 a2 a3
-set @@optimizer_switch = @test_default_opt_switch;
-drop table t1, t2;
--------------------------------------------------------------------------
-The intersection of the NULL bitmaps is empty because the ranges
-of NULL bits do not overlap.
--------------------------------------------------------------------------
-create table t1 (a1 char(1), a2 char(1), a3 char(1));
-create table t2 (b1 char(1), b2 char(1), b3 char(1));
-insert into t1 values ('b', 'g', NULL);
-insert into t2 values ('z', NULL, 'y');
-insert into t2 values (NULL, 'z', 'y');
-set @@optimizer_switch='partial_match_rowid_merge=on,partial_match_table_scan=off';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-b g NULL 0
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-a1 a2 a3
-b g NULL
-set @@optimizer_switch='partial_match_rowid_merge=off,partial_match_table_scan=on';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-b g NULL 0
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-a1 a2 a3
-b g NULL
-set @@optimizer_switch=@in_exists;
-EXPLAIN
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT t1.*, (a1, a2, a3) IN (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-b g NULL 0
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT * from t1 where (a1, a2, a3) NOT IN (select * from t2);
-a1 a2 a3
-b g NULL
-drop table t1, t2;
--------------------------------------------------------------------------
-The intersection of the NULL bitmaps is non-empty, and there is a
-non-NULL column.
--------------------------------------------------------------------------
-create table t1 (a1 char(1), a2 char(1), a3 char(1) not null, a4 char(10));
-create table t2 (b1 char(1), b2 char(1), b3 char(1), b4 char(1));
-insert into t1 values ('a', 'g', 'x', NULL);
-insert into t2 values ('z', NULL, 'y', 'x');
-insert into t2 values (NULL, NULL, 'x', 'y');
-insert into t2 values ('x', 'w', 'z', NULL);
-set @@optimizer_switch='partial_match_rowid_merge=on,partial_match_table_scan=off';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 Using where
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-a1 a2 a3 a4 in_res
-a g x NULL NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 Using where
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-a1 a2 a3 a4
-set @@optimizer_switch='partial_match_rowid_merge=off,partial_match_table_scan=on';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 Using where
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-a1 a2 a3 a4 in_res
-a g x NULL NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 Using where
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-a1 a2 a3 a4
-set @@optimizer_switch=@in_exists;
-EXPLAIN
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 Using where
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-a1 a2 a3 a4 in_res
-a g x NULL NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 3 Using where
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-a1 a2 a3 a4
-drop table t1, t2;
--------------------------------------------------------------------------
-Value match in one row, but the NULL complement match in another.
-The result must be false.
--------------------------------------------------------------------------
-create table t1 (a1 char(2), a2 char(1), a3 char(1) not null, a4 char(10));
-create table t2 (b1 char(2), b2 char(1), b3 char(1), b4 char(1));
-insert into t1 values ('99', NULL, 'j', 'f');
-insert into t2 values ('01', NULL, 'y', NULL);
-insert into t2 values ('02', NULL, 'x', 'y');
-insert into t2 values ('03', 'q', 'y', 'x');
-insert into t2 values (NULL, 'q', 'm', 'p');
-insert into t2 values ('m', 'z', 'j', NULL);
-insert into t2 values (NULL, 'z', 'b', NULL);
-insert into t2 values (NULL, 'z', 'a', NULL);
-insert into t2 values ('34', 'q', 'y', 'x');
-set @@optimizer_switch='partial_match_rowid_merge=on,partial_match_table_scan=off';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 8 Using where
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-a1 a2 a3 a4 in_res
-99 NULL j f 0
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 8 Using where
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-a1 a2 a3 a4
-99 NULL j f
-set @@optimizer_switch='partial_match_rowid_merge=off,partial_match_table_scan=on';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 8 Using where
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-a1 a2 a3 a4 in_res
-99 NULL j f 0
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 8 Using where
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-a1 a2 a3 a4
-99 NULL j f
-set @@optimizer_switch=@in_exists;
-EXPLAIN
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 8 Using where
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-a1 a2 a3 a4 in_res
-99 NULL j f 0
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 8 Using where
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-a1 a2 a3 a4
-99 NULL j f
-drop table t1, t2;
--------------------------------------------------------------------------
-Test the intersection of larger number of rows with NULL, such that
-the number is at the boundary 32. This test is based on the implementation
-of MY_BITMAP which uses 32 bit words, and the intersection operation works
-by intersecting the bitmap word by word.
--------------------------------------------------------------------------
-create table t1 (a1 char(2), a2 char(2), a3 char(1), a4 char(10)) ENGINE=MyISAM;
-create table t2 (b1 char(2), b2 char(2), b3 char(1), b4 char(1)) ENGINE=MyISAM;
-insert into t1 values (NULL, '98', NULL, 'b');
-insert into t1 values (NULL, '99', NULL, 'c');
-insert into t2 values ('00', 'rr', 'y', NULL);
-insert into t2 values ('01', 'rr', 'y', NULL);
-insert into t2 values ('02', NULL, 'x', 'y');
-insert into t2 values ('03', 'qq', 'y', 'x');
-insert into t2 values ('04', 'qq', 'm', 'p');
-insert into t2 values ('05', 'rr', 'y', NULL);
-insert into t2 values ('06', NULL, 'x', 'y');
-insert into t2 values ('07', 'qq', 'y', 'x');
-insert into t2 values ('08', 'qq', 'm', 'q');
-insert into t2 values ('09', 'rr', 'y', NULL);
-insert into t2 values ('10', NULL, 'x', 'y');
-insert into t2 values ('11', 'qq', 'y', 'x');
-insert into t2 values ('12', 'qq', 'm', 'k');
-insert into t2 values ('13', 'rr', 'y', NULL);
-insert into t2 values ('14', NULL, 'x', 'y');
-insert into t2 values ('15', 'qq', 'y', 'x');
-insert into t2 values ('16', 'qq', 'm', 's');
-insert into t2 values ('17', 'rr', 'y', NULL);
-insert into t2 values ('18', NULL, 'x', 'y');
-insert into t2 values ('19', 'qq', 'y', 'x');
-insert into t2 values ('20', 'qq', 'm', 't');
-insert into t2 values ('21', 'rr', 'y', NULL);
-insert into t2 values ('22', NULL, 'x', 'y');
-insert into t2 values ('23', 'qq', 'y', 'x');
-insert into t2 values ('24', 'qq', 'm', 'u');
-insert into t2 values ('25', 'rr', 'y', NULL);
-insert into t2 values ('26', NULL, 'x', 'y');
-insert into t2 values ('27', 'qq', 'y', 'x');
-insert into t2 values ('28', 'qq', 'm', 'y');
-insert into t2 values ('29', 'rr', 'y', NULL);
-insert into t2 values ('30', NULL, 'x', 'z');
-insert into t2 values ('31', 'ss', 'h', NULL);
-insert into t2 values ('32', 'vv', 'i', NULL);
-the only partial matching row
-insert into t2 values ('33', NULL, 'j', NULL);
-insert into t2 values ('34', 'qq', 'y', 'x');
-set @@optimizer_switch='partial_match_rowid_merge=on,partial_match_table_scan=off';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 35 Using where
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-a1 a2 a3 a4 in_res
-NULL 98 NULL b NULL
-NULL 99 NULL c NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 35 Using where
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-a1 a2 a3 a4
-set @@optimizer_switch='partial_match_rowid_merge=off,partial_match_table_scan=on';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 35 Using where
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-a1 a2 a3 a4 in_res
-NULL 98 NULL b NULL
-NULL 99 NULL c NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 35 Using where
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-a1 a2 a3 a4
-set @@optimizer_switch=@in_exists;
-EXPLAIN
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 35 Using where
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-a1 a2 a3 a4 in_res
-NULL 98 NULL b NULL
-NULL 99 NULL c NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 35 Using where
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-a1 a2 a3 a4
-change the mathcing row to be the last one in the first bitmap word
-update t2 set b2 = 'zz' where b1 = 33;
-update t2 set b2 = NULL where b1 = 31;
-set @@optimizer_switch='partial_match_rowid_merge=on,partial_match_table_scan=off';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 35 Using where
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-a1 a2 a3 a4 in_res
-NULL 98 NULL b NULL
-NULL 99 NULL c NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 35 Using where
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-a1 a2 a3 a4
-set @@optimizer_switch='partial_match_rowid_merge=off,partial_match_table_scan=on';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 35 Using where
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-a1 a2 a3 a4 in_res
-NULL 98 NULL b NULL
-NULL 99 NULL c NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 35 Using where
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-a1 a2 a3 a4
-set @@optimizer_switch=@in_exists;
-EXPLAIN
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 35 Using where
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-a1 a2 a3 a4 in_res
-NULL 98 NULL b NULL
-NULL 99 NULL c NULL
-EXPLAIN
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 35 Using where
-SELECT * from t1 where (a1, a2, a3, a4) NOT IN (select * from t2);
-a1 a2 a3 a4
-drop table t1, t2;
--------------------------------------------------------------------------
-All columns require partial matching (no non-null columns)
--------------------------------------------------------------------------
-TODO
--------------------------------------------------------------------------
-Both non-NULL columns and columns with NULLs
--------------------------------------------------------------------------
-TODO
--------------------------------------------------------------------------
-Covering NULL rows
--------------------------------------------------------------------------
-create table t1 (a1 char(8), a2 char(8));
-create table t2 (b1 char(8), b2 char(8));
-insert into t1 values ('1 - 00', '2 - 00');
-insert into t1 values ('1 - 01', '2 - 01');
-insert into t2 values ('1 - 01', NULL );
-insert into t2 values (NULL , '2 - 02');
-insert into t2 values (NULL , NULL );
-insert into t2 values ('1 - 02', '2 - 02');
-select * from t1
-where (a1, a2) not in (select * from t2);
-a1 a2
-select a1, a2, (a1, a2) not in (select * from t2) as in_res from t1;
-a1 a2 in_res
-1 - 00 2 - 00 NULL
-1 - 01 2 - 01 NULL
-insert into t2 values ('1 - 01', '2 - 01');
-select * from t1
-where (a1, a2) not in (select * from t2);
-a1 a2
-select a1, a2, (a1, a2) not in (select * from t2) as in_res from t1;
-a1 a2 in_res
-1 - 00 2 - 00 NULL
-1 - 01 2 - 01 0
-select * from t1
-where (a1, a2) in (select * from t2);
-a1 a2
-1 - 01 2 - 01
-select a1, a2, (a1, a2) in (select * from t2) as in_res from t1;
-a1 a2 in_res
-1 - 00 2 - 00 NULL
-1 - 01 2 - 01 1
-drop table t1, t2;
--------------------------------------------------------------------------
-Covering NULL columns
--------------------------------------------------------------------------
-this case affects only the rowid-merge algorithm
-set @@optimizer_switch="partial_match_rowid_merge=on,partial_match_table_scan=off";
-create table t1 (a1 char(8) not null, a2 char(8), a3 char(8) not null);
-create table t2 (b1 char(8) not null, b2 char(8), b3 char(8) not null);
-insert into t1 values ('1 - 00', '2 - 00', '3 - 00');
-insert into t1 values ('1 - 01', '2 - 01', '3 - 01');
-insert into t2 values ('1 - 01', NULL, '3 - x1');
-insert into t2 values ('1 - 02', NULL, '3 - 02');
-insert into t2 values ('1 - 00', NULL, '3 - 00');
-select * from t1
-where (a1, a2, a3) not in (select * from t2);
-a1 a2 a3
-1 - 01 2 - 01 3 - 01
-select *, (a1, a2, a3) not in (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-1 - 00 2 - 00 3 - 00 NULL
-1 - 01 2 - 01 3 - 01 1
-select * from t1
-where (a1, a2, a3) in (select * from t2);
-a1 a2 a3
-select *, (a1, a2, a3) in (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-1 - 00 2 - 00 3 - 00 NULL
-1 - 01 2 - 01 3 - 01 0
-drop table t1, t2;
-create table t1 (a1 char(8), a2 char(8), a3 char(8) not null);
-create table t2 (b1 char(8), b2 char(8), b3 char(8) not null);
-insert into t1 values ('1 - 00', '2 - 00', '3 - 00');
-insert into t1 values ('1 - 01', '2 - 01', '3 - 01');
-insert into t2 values (NULL, NULL, '3 - x1');
-insert into t2 values (NULL, NULL, '3 - 02');
-insert into t2 values (NULL, NULL, '3 - 00');
-select * from t1
-where (a1, a2, a3) not in (select * from t2);
-a1 a2 a3
-1 - 01 2 - 01 3 - 01
-select *, (a1, a2, a3) not in (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-1 - 00 2 - 00 3 - 00 NULL
-1 - 01 2 - 01 3 - 01 1
-select * from t1
-where (a1, a2, a3) in (select * from t2);
-a1 a2 a3
-select *, (a1, a2, a3) in (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-1 - 00 2 - 00 3 - 00 NULL
-1 - 01 2 - 01 3 - 01 0
-drop table t1, t2;
--------------------------------------------------------------------------
-Covering NULL row, and a NULL column
--------------------------------------------------------------------------
-create table t1 (a1 char(8) not null, a2 char(8), a3 char(8));
-create table t2 (b1 char(8), b2 char(8), b3 char(8));
-insert into t1 values ('1 - 00', '2 - 00', '3 - 00');
-insert into t1 values ('1 - 01', '2 - 01', '3 - 01');
-insert into t2 values ('1 - 01', NULL, '3 - x1');
-insert into t2 values (NULL , NULL, NULL );
-insert into t2 values ('1 - 00', NULL, '3 - 00');
-select * from t1
-where (a1, a2, a3) not in (select * from t2);
-a1 a2 a3
-select *, (a1, a2, a3) not in (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-1 - 00 2 - 00 3 - 00 NULL
-1 - 01 2 - 01 3 - 01 NULL
-select * from t1
-where (a1, a2, a3) in (select * from t2);
-a1 a2 a3
-select *, (a1, a2, a3) in (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-1 - 00 2 - 00 3 - 00 NULL
-1 - 01 2 - 01 3 - 01 NULL
-drop table t1, t2;
--------------------------------------------------------------------------
-Covering NULL row, and covering NULL columns
--------------------------------------------------------------------------
-create table t1 (a1 char(8) not null, a2 char(8), a3 char(8));
-create table t2 (b1 char(8), b2 char(8), b3 char(8));
-insert into t1 values ('1 - 00', '2 - 00', '3 - 00');
-insert into t1 values ('1 - 01', '2 - 01', '3 - 01');
-insert into t2 values (NULL, NULL, NULL);
-insert into t2 values (NULL, NULL, NULL);
-select * from t1
-where (a1, a2, a3) not in (select * from t2);
-a1 a2 a3
-select *, (a1, a2, a3) not in (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-1 - 00 2 - 00 3 - 00 NULL
-1 - 01 2 - 01 3 - 01 NULL
-select * from t1
-where (a1, a2, a3) in (select * from t2);
-a1 a2 a3
-select *, (a1, a2, a3) in (select * from t2) as in_res from t1;
-a1 a2 a3 in_res
-1 - 00 2 - 00 3 - 00 NULL
-1 - 01 2 - 01 3 - 01 NULL
-drop table t1, t2;
--------------------------------------------------------------------------
-Small buffer for the rowid_merge partial match algorithm that forces
-reverting to table scan partial match.
--------------------------------------------------------------------------
-set @save_rowid_merge_buff_size = @@rowid_merge_buff_size;
-set @@rowid_merge_buff_size = 0;
-create table t1 (a1 char(2), a2 char(2), a3 char(1), a4 char(10));
-create table t2 (b1 char(2), b2 char(2), b3 char(1), b4 char(1));
-insert into t1 values (NULL, '98', NULL, 'b');
-insert into t1 values (NULL, '99', NULL, 'c');
-insert into t2 values ('00', 'rr', 'y', NULL);
-insert into t2 values ('01', 'rr', 'y', NULL);
-insert into t2 values ('02', NULL, 'x', 'y');
-insert into t2 values ('03', 'qq', 'y', 'x');
-set @@optimizer_switch='partial_match_rowid_merge=on,partial_match_table_scan=off';
-EXPLAIN
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 4 Using where
-SELECT t1.*, (a1, a2, a3, a4) IN (select * from t2) as in_res from t1;
-a1 a2 a3 a4 in_res
-NULL 98 NULL b 0
-NULL 99 NULL c 0
-drop table t1, t2;
-set @@rowid_merge_buff_size = @save_rowid_merge_buff_size;
--------------------------------
-Part 2: Test cases for bugs.
--------------------------------
-drop table if exists t1, t2;
-#
-# LP BUG#608744
-#
-set @@optimizer_switch="materialization=on,semijoin=off,partial_match_rowid_merge=on,partial_match_table_scan=off";
-create table t1 (a1 char(1), a2 char(1));
-insert into t1 values (NULL, 'b');
-create table t2 (b1 char(1), b2 char(2));
-insert into t2 values ('a','b'), ('c', 'd');
-select * from t1 where (a1, a2) NOT IN (select b1, b2 from t2);
-a1 a2
-drop table t1,t2;
-#
-# LP BUG#601156
-#
-CREATE TABLE t1 (a1 int DEFAULT NULL, a2 int DEFAULT NULL);
-INSERT INTO t1 VALUES (NULL,2);
-INSERT INTO t1 VALUES (4,NULL);
-CREATE TABLE t2 (b1 int DEFAULT NULL, b2 int DEFAULT NULL);
-INSERT INTO t2 VALUES (6,NULL);
-INSERT INTO t2 VALUES (NULL,0);
-set @@optimizer_switch='materialization=on,semijoin=off,partial_match_rowid_merge=on,partial_match_table_scan=on';
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-EXPLAIN EXTENDED
-SELECT * FROM (SELECT * FROM t1 WHERE a1 NOT IN (SELECT b2 FROM t2)) table1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 /* select#1 */ select `table1`.`a1` AS `a1`,`table1`.`a2` AS `a2` from (/* select#2 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where !<in_optimizer>(`test`.`t1`.`a1`,`test`.`t1`.`a1` in ( <materialize> (/* select#3 */ select `test`.`t2`.`b2` from `test`.`t2` ), <primary_index_lookup>(`test`.`t1`.`a1` in <temporary table> on distinct_key where `test`.`t1`.`a1` = `<subquery3>`.`b2`)))) `table1`
-set optimizer_switch=@tmp_optimizer_switch;
-DROP TABLE t1, t2;
-#
-# LP BUG#613009 Crash in Ordered_key::get_field_idx
-#
-set @@optimizer_switch='materialization=on,semijoin=off,partial_match_rowid_merge=on,partial_match_table_scan=off';
-create table t1 (a1 char(3) DEFAULT NULL, a2 char(3) DEFAULT NULL);
-insert into t1 values (NULL, 'a21'), (NULL, 'a22');
-explain select * from t1 where (a1, a2) not in (select a1, a2 from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-select * from t1 where (a1, a2) not in (select a1, a2 from t1);
-a1 a2
-drop table t1;
-#
-# LP BUG#680058 void Ordered_key::add_key(rownum_t):
-# Assertion `key_buff_elements && cur_key_idx < key_buff_elements' failed
-#
-create table t1 (f1 char(1), f2 char(1));
-insert into t1 values ('t', '0'), ('0', 't');
-create table t2 (f3 char(1), f4 char(1));
-insert into t2 values ('t', NULL), ('t', NULL), ('d', 'y');
-set @@optimizer_switch='materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off,semijoin=off';
-select * from t1 where (f1, f2) not in (select * from t2);
-f1 f2
-0 t
-drop table t1, t2;
-#
-# LP BUG#809245 Second assertion `bit < (map)->n_bits' with partial_match_merge
-#
-CREATE TABLE t1 (d varchar(32)) ;
-INSERT INTO t1 VALUES ('r');
-CREATE TABLE t2 ( a int, c varchar(32)) ;
-INSERT INTO t2 VALUES (5,'r');
-CREATE TABLE t3 ( a int NOT NULL , d varchar(32)) ;
-INSERT INTO t3 VALUES (10,'g');
-set @@optimizer_switch='materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off,in_to_exists=off';
-EXPLAIN SELECT *
-FROM t1
-WHERE (t1.d , t1.d) NOT IN (
-SELECT t3.d , t2.c
-FROM t3 LEFT JOIN t2 ON t3.a = t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED t3 system NULL NULL NULL NULL 1
-2 MATERIALIZED t2 system NULL NULL NULL NULL 1
-SELECT *
-FROM t1
-WHERE (t1.d , t1.d) NOT IN (
-SELECT t3.d , t2.c
-FROM t3 LEFT JOIN t2 ON t3.a = t2.a);
-d
-r
-set @@optimizer_switch='materialization=off,in_to_exists=on';
-EXPLAIN SELECT *
-FROM t1
-WHERE (t1.d , t1.d) NOT IN (
-SELECT t3.d , t2.c
-FROM t3 LEFT JOIN t2 ON t3.a = t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t3 system NULL NULL NULL NULL 1
-2 DEPENDENT SUBQUERY t2 system NULL NULL NULL NULL 1
-SELECT *
-FROM t1
-WHERE (t1.d , t1.d) NOT IN (
-SELECT t3.d , t2.c
-FROM t3 LEFT JOIN t2 ON t3.a = t2.a);
-d
-r
-drop table t1, t2, t3;
-#
-# LP BUG#809266 Diverging results with partial_match_rowid_merge=on
-#
-CREATE TABLE t1 (c int) ;
-INSERT INTO t1 VALUES (0),(0);
-CREATE TABLE t2 (a int, b int) ;
-INSERT INTO t2 VALUES (6,3), (9,NULL);
-set @@optimizer_switch='materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off,in_to_exists=off';
-EXPLAIN
-SELECT * FROM t1 WHERE (6, 4 ) NOT IN (SELECT b, a FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 WHERE (6, 4 ) NOT IN (SELECT b, a FROM t2);
-c
-0
-0
-EXPLAIN
-SELECT * FROM t1 WHERE (6, 4 ) NOT IN (SELECT a, b FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 WHERE (6, 4 ) NOT IN (SELECT a, b FROM t2);
-c
-0
-0
-set @@optimizer_switch='materialization=off,in_to_exists=on';
-EXPLAIN
-SELECT * FROM t1 WHERE (6, 4 ) NOT IN (SELECT b, a FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 WHERE (6, 4 ) NOT IN (SELECT b, a FROM t2);
-c
-0
-0
-EXPLAIN
-SELECT * FROM t1 WHERE (6, 4 ) NOT IN (SELECT a, b FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1 WHERE (6, 4 ) NOT IN (SELECT a, b FROM t2);
-c
-0
-0
-drop table t1, t2;
-#
-# LP BUG#856152 Wrong result with NOT IN subquery and partial_match_rowid_merge
-#
-CREATE TABLE t1 ( f1 integer NOT NULL , f2 integer) ;
-INSERT INTO t1 VALUES (3,3),(48,NULL),(49,1);
-CREATE TABLE t2 ( f3 int) ;
-INSERT INTO t2 VALUES (5);
-set @@optimizer_switch='in_to_exists=off,materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off';
-EXPLAIN SELECT * FROM t2 WHERE ( 3 , 1 ) NOT IN ( SELECT f1 , f2 FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 3
-SELECT * FROM t2 WHERE ( 3 , 1 ) NOT IN ( SELECT f1 , f2 FROM t1 );
-f3
-5
-set @@optimizer_switch='in_to_exists=on,materialization=off';
-EXPLAIN SELECT * FROM t2 WHERE ( 3 , 1 ) NOT IN ( SELECT f1 , f2 FROM t1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 3 Using where
-SELECT * FROM t2 WHERE ( 3 , 1 ) NOT IN ( SELECT f1 , f2 FROM t1 );
-f3
-5
-drop table t1, t2;
-#
-# LP BUG#869036 Wrong result with in_to_exists=ON and NOT IN
-#
-create table outer_sq (f1 char(1), f2 char(1));
-insert into outer_sq values (NULL, 'c'), ('g', 'c');
-create table inner_sq (f3 char(1), f4 char(1));
-insert into inner_sq values(null, 'i'), ('v', null);
-All three strategies below must produce the same result.
-set @@optimizer_switch='in_to_exists=off,materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off';
-SELECT outer_sq.*, (f1, f2) IN (select * from inner_sq) from outer_sq;
-f1 f2 (f1, f2) IN (select * from inner_sq)
-NULL c NULL
-g c 0
-SELECT * from outer_sq where (f1, f2) NOT IN (select * from inner_sq);
-f1 f2
-g c
-set @@optimizer_switch='in_to_exists=off,materialization=on,partial_match_rowid_merge=off,partial_match_table_scan=on';
-SELECT outer_sq.*, (f1, f2) IN (select * from inner_sq) from outer_sq;
-f1 f2 (f1, f2) IN (select * from inner_sq)
-NULL c NULL
-g c 0
-SELECT * from outer_sq where (f1, f2) NOT IN (select * from inner_sq);
-f1 f2
-g c
-set @@optimizer_switch='in_to_exists=on,materialization=off';
-SELECT outer_sq.*, (f1, f2) IN (select * from inner_sq) from outer_sq;
-f1 f2 (f1, f2) IN (select * from inner_sq)
-NULL c NULL
-g c 0
-SELECT * from outer_sq where (f1, f2) NOT IN (select * from inner_sq);
-f1 f2
-g c
-drop table outer_sq, inner_sq;
-#
-# LP BUG#893486 Wrong result with partial_match_rowid_merge , NOT IN , NULLs
-#
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (0,NULL),(2,NULL);
-CREATE TABLE t2 (c int, d int);
-INSERT INTO t2 VALUES (2,3),(4,5),(6, NULL);
-set @@optimizer_switch='materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off,in_to_exists=off';
-EXPLAIN SELECT * FROM t1 WHERE (a, b) NOT IN (SELECT c, d FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3
-SELECT * FROM t1 WHERE (a, b) NOT IN (SELECT c, d FROM t2);
-a b
-0 NULL
-SELECT a, b, (a, b) NOT IN (SELECT c, d FROM t2) subq_res FROM t1;
-a b subq_res
-0 NULL 1
-2 NULL NULL
-EXPLAIN SELECT * FROM t1 WHERE (a, b) NOT IN (SELECT c, d FROM t2 WHERE d is not NULL);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 Using where
-SELECT * FROM t1 WHERE (a, b) NOT IN (SELECT c, d FROM t2 WHERE d is not NULL);
-a b
-0 NULL
-SELECT a, b, (a, b) NOT IN (SELECT c, d FROM t2 WHERE d is not NULL) subq_res FROM t1;
-a b subq_res
-0 NULL 1
-2 NULL NULL
-drop table t1,t2;
-set @@optimizer_switch=@save_optimizer_switch;
diff --git a/mysql-test/r/subselect_sj.result b/mysql-test/r/subselect_sj.result
deleted file mode 100644
index 9631192da33..00000000000
--- a/mysql-test/r/subselect_sj.result
+++ /dev/null
@@ -1,3168 +0,0 @@
-drop table if exists t0, t1, t2, t3, t4, t5, t10, t11, t12;
-drop view if exists v1, v2, v3, v4;
-drop procedure if exists p1;
-set @subselect_sj_tmp= @@optimizer_switch;
-set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-SET optimizer_switch=ifnull(@optimizer_switch_for_subselect_sj_test,'outer_join_with_cache=off');
-SET optimizer_switch=ifnull(@optimizer_switch_for_subselect_sj_test,'semijoin_with_cache=off');
-set join_cache_level=1;
-set @save_optimizer_switch=@@optimizer_switch;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int, b int);
-insert into t1 values (0,0),(1,1),(2,2);
-create table t2 as select * from t1;
-create table t11(a int, b int);
-create table t10 (pk int, a int, primary key(pk));
-insert into t10 select a,a from t0;
-create table t12 like t10;
-insert into t12 select * from t10;
-Flattened because of dependency, t10=func(t1)
-explain select * from t1 where a in (select pk from t10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY t10 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using index
-select * from t1 where a in (select pk from t10);
-a b
-0 0
-1 1
-2 2
-A confluent case of dependency
-explain select * from t1 where a in (select a from t10 where pk=12);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-select * from t1 where a in (select a from t10 where pk=12);
-a b
-explain select * from t1 where a in (select a from t10 where pk=9);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t10 const PRIMARY PRIMARY 4 const 1
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-select * from t1 where a in (select a from t10 where pk=9);
-a b
-An empty table inside
-explain select * from t1 where a in (select a from t11);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-select * from t1 where a in (select a from t11);
-a b
-explain select * from t1 where a in (select pk from t10) and b in (select pk from t10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY t10 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using index
-1 PRIMARY t10 eq_ref PRIMARY PRIMARY 4 test.t1.b 1 Using index
-select * from t1 where a in (select pk from t10) and b in (select pk from t10);
-a b
-0 0
-1 1
-2 2
-flattening a nested subquery
-explain select * from t1 where a in (select pk from t10 where t10.a in (select pk from t12));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY t10 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where
-1 PRIMARY t12 eq_ref PRIMARY PRIMARY 4 test.t10.a 1 Using index
-select * from t1 where a in (select pk from t10 where t10.a in (select pk from t12));
-a b
-0 0
-1 1
-2 2
-flattening subquery w/ several tables
-explain extended select * from t1 where a in (select t10.pk from t10, t12 where t12.pk=t10.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t10 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 100.00 Using where
-1 PRIMARY t12 eq_ref PRIMARY PRIMARY 4 test.t10.a 1 100.00 Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t10` join `test`.`t12` join `test`.`t1` where `test`.`t12`.`pk` = `test`.`t10`.`a` and `test`.`t10`.`pk` = `test`.`t1`.`a`
-subqueries within outer joins go into ON expr.
-explAin extended
-select * from t1 left join (t2 A, t2 B) on ( A.A= t1.A And B.A in (select pk from t10));
-id select_type tABle type possiBle_keys key key_len ref rows filtered ExtrA
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY A ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY B ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t10 index PRIMARY PRIMARY 4 NULL 10 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`A` AS `A`,`test`.`t1`.`B` AS `B`,`test`.`A`.`A` AS `A`,`test`.`A`.`B` AS `B`,`test`.`B`.`A` AS `A`,`test`.`B`.`B` AS `B` from `test`.`t1` left join (`test`.`t2` `A` join `test`.`t2` `B`) on(`test`.`A`.`A` = `test`.`t1`.`A` And <in_optimizer>(`test`.`B`.`A`,`test`.`B`.`A` in ( <mAteriAlize> (/* select#2 */ select `test`.`t10`.`pk` from `test`.`t10` ), <primAry_index_lookup>(`test`.`B`.`A` in <temporAry tABle> on distinct_key where `test`.`B`.`A` = `<suBquery2>`.`pk`)))) where 1
-t2 should be wrapped into OJ-nest, so we have "t1 LJ (t2 J t10)"
-explAin extended
-select * from t1 left join t2 on (t2.A= t1.A And t2.A in (select pk from t10));
-id select_type tABle type possiBle_keys key key_len ref rows filtered ExtrA
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 MATERIALIZED t10 index PRIMARY PRIMARY 4 NULL 10 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`A` AS `A`,`test`.`t1`.`B` AS `B`,`test`.`t2`.`A` AS `A`,`test`.`t2`.`B` AS `B` from `test`.`t1` left join `test`.`t2` on(`test`.`t2`.`A` = `test`.`t1`.`A` And <in_optimizer>(`test`.`t1`.`A`,`test`.`t1`.`A` in ( <mAteriAlize> (/* select#2 */ select `test`.`t10`.`pk` from `test`.`t10` ), <primAry_index_lookup>(`test`.`t1`.`A` in <temporAry tABle> on distinct_key where `test`.`t1`.`A` = `<suBquery2>`.`pk`)))) where 1
-set join_buffer_size=8*1024;
-we shouldn't flatten if we're going to get a join of > MAX_TABLES.
-explain select * from
-t1 s00, t1 s01, t1 s02, t1 s03, t1 s04,t1 s05,t1 s06,t1 s07,t1 s08,t1 s09,
-t1 s10, t1 s11, t1 s12, t1 s13, t1 s14,t1 s15,t1 s16,t1 s17,t1 s18,t1 s19,
-t1 s20, t1 s21, t1 s22, t1 s23, t1 s24,t1 s25,t1 s26,t1 s27,t1 s28,t1 s29,
-t1 s30, t1 s31, t1 s32, t1 s33, t1 s34,t1 s35,t1 s36,t1 s37,t1 s38,t1 s39,
-t1 s40, t1 s41, t1 s42, t1 s43, t1 s44,t1 s45,t1 s46,t1 s47,t1 s48,t1 s49
-where
-s00.a in (
-select m00.a from
-t1 m00, t1 m01, t1 m02, t1 m03, t1 m04,t1 m05,t1 m06,t1 m07,t1 m08,t1 m09,
-t1 m10, t1 m11, t1 m12, t1 m13, t1 m14,t1 m15,t1 m16,t1 m17,t1 m18,t1 m19
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY s00 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY s01 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s02 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s03 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s04 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s05 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s06 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s07 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s08 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s09 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s10 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s11 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s12 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s13 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s14 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s15 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s16 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s17 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s18 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s19 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s20 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s21 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s22 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s23 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s24 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s25 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s26 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s27 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s28 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s29 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s30 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s31 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s32 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s33 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s34 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s35 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s36 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s37 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s38 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s39 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s40 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s41 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s42 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s43 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s44 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s45 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s46 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s47 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s48 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s49 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m00 ALL NULL NULL NULL NULL 3 Using where
-2 DEPENDENT SUBQUERY m01 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m02 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m03 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m04 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m05 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m06 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m07 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m08 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m09 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m10 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m11 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m12 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m13 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m14 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m15 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m16 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m17 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m18 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m19 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-select * from
-t1 left join t2 on (t2.a= t1.a and t2.a in (select pk from t10))
-where t1.a < 5;
-a b a b
-0 0 0 0
-1 1 1 1
-2 2 2 2
-set join_buffer_size=default;
-prepare s1 from
-' select * from
- t1 left join t2 on (t2.a= t1.a and t2.a in (select pk from t10))
- where t1.a < 5';
-execute s1;
-a b a b
-0 0 0 0
-1 1 1 1
-2 2 2 2
-execute s1;
-a b a b
-0 0 0 0
-1 1 1 1
-2 2 2 2
-insert into t1 select (A.a + 10 * B.a),1 from t0 A, t0 B;
-explain extended select * from t1 where a in (select pk from t10 where pk<3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t10 range PRIMARY PRIMARY 4 NULL 4 100.00 Using where; Using index
-1 PRIMARY t1 ALL NULL NULL NULL NULL 103 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t10` join `test`.`t1` where `test`.`t1`.`a` = `test`.`t10`.`pk` and `test`.`t10`.`pk` < 3
-drop table t0, t1, t2;
-drop table t10, t11, t12;
-
-Bug#37899: Wrongly checked optimization prerequisite caused failed
-assertion.
-
-CREATE TABLE t1 (
-`pk` int(11),
-`varchar_nokey` varchar(5)
-);
-INSERT INTO t1 VALUES
-(1,'qk'),(2,'j'),(3,'aew');
-SELECT *
-FROM t1
-WHERE varchar_nokey IN (
-SELECT
-varchar_nokey
-FROM
-t1
-) XOR pk = 30;
-pk varchar_nokey
-1 qk
-2 j
-3 aew
-drop table t1;
-#
-# BUG#41842: Semi-join materialization strategy crashes when the upper query has HAVING
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-int_nokey int(11) NOT NULL,
-time_key time NOT NULL,
-datetime_key datetime NOT NULL,
-datetime_nokey datetime NOT NULL,
-varchar_key varchar(1) NOT NULL,
-varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY time_key (time_key),
-KEY datetime_key (datetime_key),
-KEY varchar_key (varchar_key)
-);
-INSERT INTO t1 VALUES
-(1,0, '00:16:10','2008-09-03 14:25:40','2008-09-03 14:25:40','h','h'),
-(2,7, '00:00:00','2001-01-13 00:00:00','2001-01-13 00:00:00','',''),
-(3,0, '00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','x','x'),
-(4,2, '16:29:24','2000-10-16 01:39:08','2000-10-16 01:39:08','w','w'),
-(5,1, '09:23:32','0000-00-00 00:00:00','0000-00-00 00:00:00','p','p'),
-(6,3, '00:00:00','2007-12-02 00:00:00','2007-12-02 00:00:00','o','o'),
-(7,3, '00:00:00','2008-09-11 00:00:00','2008-09-11 00:00:00','',''),
-(8,0, '13:59:04','0000-00-00 00:00:00','0000-00-00 00:00:00','s','s'),
-(9,7, '09:01:06','0000-00-00 00:00:00','0000-00-00 00:00:00','d','d'),
-(10,5,'00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','n','n'),
-(11,0,'21:06:46','0000-00-00 00:00:00','0000-00-00 00:00:00','o','o'),
-(12,2,'00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','',''),
-(13,6,'14:45:34','2003-07-28 02:34:08','2003-07-28 02:34:08','w','w'),
-(14,1,'15:04:12','0000-00-00 00:00:00','0000-00-00 00:00:00','o','o'),
-(15,0,'00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','x','x'),
-(16,0,'15:55:23','2004-03-17 00:32:27','2004-03-17 00:32:27','p','p'),
-(17,1,'16:30:00','2004-12-27 19:20:00','2004-12-27 19:20:00','d','d'),
-(18,0,'00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','h','h'),
-(19,0,'14:13:26','2008-11-09 05:53:48','2008-11-09 05:53:48','o','o'),
-(20,0,'00:00:00','2009-10-11 06:58:04','2009-10-11 06:58:04','k','k');
-CREATE TABLE t2 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-int_nokey int(11) NOT NULL,
-time_key time NOT NULL,
-datetime_key datetime NOT NULL,
-datetime_nokey datetime NOT NULL,
-varchar_key varchar(1) NOT NULL,
-varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY time_key (time_key),
-KEY datetime_key (datetime_key),
-KEY varchar_key (varchar_key)
-);
-INSERT INTO t2 VALUES
-(10,0,'19:39:13','0000-00-00 00:00:00','0000-00-00 00:00:00','g','g'),
-(11,8,'03:43:53','0000-00-00 00:00:00','0000-00-00 00:00:00','b','b');
-SELECT OUTR.datetime_nokey AS X FROM t1 AS OUTR
-WHERE
-OUTR.varchar_nokey IN (SELECT
-INNR . varchar_nokey AS Y
-FROM t2 AS INNR
-WHERE
-INNR . datetime_key >= INNR . time_key OR
-INNR . pk = INNR . int_nokey
-)
-AND OUTR . varchar_nokey <= 'w'
-HAVING X > '2012-12-12';
-X
-drop table t1, t2;
-#
-# Bug#45191: Incorrectly initialized semi-join led to a wrong result.
-#
-CREATE TABLE STAFF (EMPNUM CHAR(3) NOT NULL,
-EMPNAME CHAR(20), GRADE DECIMAL(4), CITY CHAR(15));
-CREATE TABLE PROJ (PNUM CHAR(3) NOT NULL,
-PNAME CHAR(20), PTYPE CHAR(6),
-BUDGET DECIMAL(9),
-CITY CHAR(15));
-CREATE TABLE WORKS (EMPNUM CHAR(3) NOT NULL,
-PNUM CHAR(3) NOT NULL, HOURS DECIMAL(5));
-INSERT INTO STAFF VALUES ('E1','Alice',12,'Deale');
-INSERT INTO STAFF VALUES ('E2','Betty',10,'Vienna');
-INSERT INTO STAFF VALUES ('E3','Carmen',13,'Vienna');
-INSERT INTO STAFF VALUES ('E4','Don',12,'Deale');
-INSERT INTO STAFF VALUES ('E5','Ed',13,'Akron');
-INSERT INTO PROJ VALUES ('P1','MXSS','Design',10000,'Deale');
-INSERT INTO PROJ VALUES ('P2','CALM','Code',30000,'Vienna');
-INSERT INTO PROJ VALUES ('P3','SDP','Test',30000,'Tampa');
-INSERT INTO PROJ VALUES ('P4','SDP','Design',20000,'Deale');
-INSERT INTO PROJ VALUES ('P5','IRM','Test',10000,'Vienna');
-INSERT INTO PROJ VALUES ('P6','PAYR','Design',50000,'Deale');
-INSERT INTO WORKS VALUES ('E1','P1',40);
-INSERT INTO WORKS VALUES ('E1','P2',20);
-INSERT INTO WORKS VALUES ('E1','P3',80);
-INSERT INTO WORKS VALUES ('E1','P4',20);
-INSERT INTO WORKS VALUES ('E1','P5',12);
-INSERT INTO WORKS VALUES ('E1','P6',12);
-INSERT INTO WORKS VALUES ('E2','P1',40);
-INSERT INTO WORKS VALUES ('E2','P2',80);
-INSERT INTO WORKS VALUES ('E3','P2',20);
-INSERT INTO WORKS VALUES ('E4','P2',20);
-INSERT INTO WORKS VALUES ('E4','P4',40);
-INSERT INTO WORKS VALUES ('E4','P5',80);
-set optimizer_switch=@save_optimizer_switch;
-set optimizer_switch='materialization=off';
-explain SELECT EMPNUM, EMPNAME
-FROM STAFF
-WHERE EMPNUM IN
-(SELECT EMPNUM FROM WORKS
-WHERE PNUM IN
-(SELECT PNUM FROM PROJ));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY STAFF ALL NULL NULL NULL NULL 5
-1 PRIMARY PROJ ALL NULL NULL NULL NULL 6
-1 PRIMARY WORKS ALL NULL NULL NULL NULL 12 Using where; FirstMatch(STAFF)
-SELECT EMPNUM, EMPNAME
-FROM STAFF
-WHERE EMPNUM IN
-(SELECT EMPNUM FROM WORKS
-WHERE PNUM IN
-(SELECT PNUM FROM PROJ));
-EMPNUM EMPNAME
-E1 Alice
-E2 Betty
-E3 Carmen
-E4 Don
-set optimizer_switch=@save_optimizer_switch;
-drop table STAFF,WORKS,PROJ;
-# End of bug#45191
-#
-# Bug#46550 Azalea returning duplicate results for some IN subqueries
-# w/ semijoin=on
-#
-DROP TABLE IF EXISTS t0, t1, t2;
-CREATE TABLE t0 (
-int_key int(11) DEFAULT NULL,
-varchar_key varchar(1) DEFAULT NULL,
-varchar_nokey varchar(1) DEFAULT NULL,
-KEY int_key (int_key),
-KEY varchar_key (varchar_key,int_key)
-);
-INSERT INTO t0 VALUES
-(1,'m','m'),
-(40,'h','h'),
-(1,'r','r'),
-(1,'h','h'),
-(9,'x','x'),
-(NULL,'q','q'),
-(NULL,'k','k'),
-(7,'l','l'),
-(182,'k','k'),
-(202,'a','a'),
-(7,'x','x'),
-(6,'j','j'),
-(119,'z','z'),
-(4,'d','d'),
-(5,'h','h'),
-(1,'u','u'),
-(3,'q','q'),
-(7,'a','a'),
-(3,'e','e'),
-(6,'l','l');
-CREATE TABLE t1 (
-int_key int(11) DEFAULT NULL,
-varchar_key varchar(1) DEFAULT NULL,
-varchar_nokey varchar(1) DEFAULT NULL,
-KEY int_key (int_key),
-KEY varchar_key (varchar_key,int_key)
-);
-INSERT INTO t1 VALUES (7,NULL,NULL),(4,'x','x');
-CREATE TABLE t2 (
-int_key int(11) DEFAULT NULL,
-varchar_key varchar(1) DEFAULT NULL,
-varchar_nokey varchar(1) DEFAULT NULL,
-KEY int_key (int_key),
-KEY varchar_key (varchar_key,int_key)
-);
-INSERT INTO t2 VALUES (123,NULL,NULL);
-SELECT int_key
-FROM t0
-WHERE varchar_nokey IN (
-SELECT t1 .varchar_key from t1
-);
-int_key
-9
-7
-DROP TABLE t0, t1, t2;
-# End of bug#46550
-#
-# Bug #46744 Crash in optimize_semijoin_nests on empty view
-# with limit and procedure.
-#
-DROP TABLE IF EXISTS t1, t2;
-DROP VIEW IF EXISTS v1;
-DROP PROCEDURE IF EXISTS p1;
-CREATE TABLE t1 ( f1 int );
-CREATE TABLE t2 ( f1 int );
-insert into t2 values (5), (7);
-CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1 LIMIT 2;
-create procedure p1()
-select COUNT(*)
-FROM v1 WHERE f1 IN
-(SELECT f1 FROM t2 WHERE f1 = ANY (SELECT f1 FROM v1));
-SET SESSION optimizer_switch = 'semijoin=on';
-CALL p1();
-COUNT(*)
-0
-SET SESSION optimizer_switch = 'semijoin=off';
-CALL p1();
-COUNT(*)
-0
-drop table t1, t2;
-drop view v1;
-drop procedure p1;
-set SESSION optimizer_switch=@save_optimizer_switch;
-# End of bug#46744
-
-Bug#46797 "Crash in fix_semijoin_strategies_for_picked_join_order
-with semijoin=on"
-
-CREATE TABLE t1 (
-varchar_key varchar(1) DEFAULT NULL,
-KEY varchar_key (varchar_key)
-);
-CREATE TABLE t2 (
-varchar_key varchar(1) DEFAULT NULL,
-KEY varchar_key (varchar_key)
-);
-INSERT INTO t2 VALUES
-(NULL),(NULL),(NULL),(NULL),('a'),('a'),('a'),('b'),('b'),('b'),('b'),('c'),
-('c'),('c'),('c'),('c'),('c'),('c'),('d'),('d'),('d'),('d'),('d'),('d'),('e'),
-('e'),('e'),('e'),('e'),('e'),('f'),('f'),('f'),('g'),('g'),('h'),('h'),('h'),
-('h'),('i'),('j'),('j'),('j'),('k'),('k'),('l'),('l'),('m'),('m'),('m'),('m'),
-('n'),('n'),('n'),('o'),('o'),('o'),('p'),('p'),('p'),('q'),('q'),('q'),('r'),
-('r'),('r'),('r'),('s'),('s'),('s'),('s'),('t'),('t'),('t'),('t'),('u'),('u'),
-('u'),('u'),('v'),('v'),('v'),('v'),('w'),('w'),('w'),('w'),('w'),('w'),('x'),
-('x'),('x'),('y'),('y'),('y'),('y'),('z'),('z'),('z'),('z');
-CREATE TABLE t3 (
-varchar_key varchar(1) DEFAULT NULL,
-KEY varchar_key (varchar_key)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t3 VALUES
-(NULL),('c'),('d'),('e'),('f'),('h'),('j'),('k'),('k'),('m'),('m'),('m'),
-('n'),('o'),('r'),('t'),('t'),('u'),('w'),('y');
-SELECT varchar_key FROM t3
-WHERE (SELECT varchar_key FROM t3
-WHERE (varchar_key,varchar_key)
-IN (SELECT t1.varchar_key, t2 .varchar_key
-FROM t1 RIGHT JOIN t2 ON t1.varchar_key
-)
-);
-varchar_key
-DROP TABLE t1, t2, t3;
-#
-# Bug#46556 Returning incorrect, empty results for some IN subqueries
-# w/semijoin=on
-#
-CREATE TABLE t0 (
-pk INTEGER,
-vkey VARCHAR(1),
-vnokey VARCHAR(1),
-PRIMARY KEY (pk),
-KEY vkey(vkey)
-);
-INSERT INTO t0
-VALUES (1,'g','g'), (2,'v','v'), (3,'t','t'), (4,'u','u'), (5,'n','n');
-EXPLAIN EXTENDED SELECT vkey FROM t0 WHERE pk IN
-(SELECT t1.pk FROM t0 t1 JOIN t0 t2 ON t2.vkey = t1.vnokey);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t0 ALL PRIMARY NULL NULL NULL 5 100.00
-1 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.t0.pk 1 100.00 Using where
-1 PRIMARY t2 ref vkey vkey 4 test.t1.vnokey 2 100.00 Using index; FirstMatch(t1)
-Warnings:
-Note 1003 select `test`.`t0`.`vkey` AS `vkey` from `test`.`t0` `t1` semi join (`test`.`t0` `t2`) join `test`.`t0` where `test`.`t1`.`pk` = `test`.`t0`.`pk` and `test`.`t2`.`vkey` = `test`.`t1`.`vnokey`
-SELECT vkey FROM t0 WHERE pk IN
-(SELECT t1.pk FROM t0 t1 JOIN t0 t2 ON t2.vkey = t1.vnokey);
-vkey
-g
-v
-t
-u
-n
-DROP TABLE t0;
-# End of bug#46556
-
-Bug #48073 Subquery on char columns from view crashes Mysql
-
-DROP TABLE IF EXISTS t1, t2;
-DROP VIEW IF EXISTS v1;
-CREATE TABLE t1 (
-city VARCHAR(50) NOT NULL,
-country_id SMALLINT UNSIGNED NOT NULL
-);
-INSERT INTO t1 VALUES
-('Batna',2),
-('Bchar',2),
-('Skikda',2),
-('Tafuna',3),
-('Algeria',2) ;
-CREATE TABLE t2 (
-country_id SMALLINT UNSIGNED NOT NULL,
-country VARCHAR(50) NOT NULL
-);
-INSERT INTO t2 VALUES
-(2,'Algeria'),
-(3,'American Samoa') ;
-CREATE VIEW v1 AS
-SELECT country_id, country
-FROM t2
-WHERE LEFT(country,1) = "A"
-;
-SELECT city, country_id
-FROM t1
-WHERE city IN (
-SELECT country
-FROM t2
-WHERE LEFT(country, 1) = "A"
-);
-city country_id
-Algeria 2
-SELECT city, country_id
-FROM t1
-WHERE city IN (
-SELECT country
-FROM v1
-);
-city country_id
-Algeria 2
-drop table t1, t2;
-drop view v1;
-# End of bug#48073
-
-Bug#48834: Procedure with view + subquery + semijoin=on
-crashes on second call.
-
-SET SESSION optimizer_switch ='semijoin=on';
-CREATE TABLE t1 ( t1field integer, primary key (t1field));
-CREATE TABLE t2 ( t2field integer, primary key (t2field));
-CREATE VIEW v1 AS
-SELECT t1field as v1field
-FROM t1 A
-WHERE A.t1field IN (SELECT t1field FROM t2 );
-CREATE VIEW v2 AS
-SELECT t2field as v2field
-FROM t2 A
-WHERE A.t2field IN (SELECT t2field FROM t2 );
-CREATE PROCEDURE p1 ()
-BEGIN
-SELECT v1field
-FROM v1
-WHERE v1field IN ( SELECT v2field as vf_inner FROM v2 );
-END|
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t2 VALUES (2),(3),(4);
-CALL p1;
-v1field
-2
-3
-CALL p1;
-v1field
-2
-3
-DROP TABLE t1,t2;
-DROP VIEW v1,v2;
-DROP PROCEDURE p1;
-set SESSION optimizer_switch=@save_optimizer_switch;
-# End of BUG#48834
-
-Bug#49097 subquery with view generates wrong result with
-non-prepared statement
-
-DROP TABLE IF EXISTS t1, t2;
-DROP VIEW IF EXISTS v1;
-CREATE TABLE t1 (
-city VARCHAR(50) NOT NULL,
-country_id SMALLINT UNSIGNED NOT NULL
-);
-INSERT INTO t1 VALUES
-('Batna',2),
-('Bchar',2),
-('Skikda',2),
-('Tafuna',3),
-('Algeria',2) ;
-CREATE TABLE t2 (
-country_id SMALLINT UNSIGNED NOT NULL,
-country VARCHAR(50) NOT NULL
-);
-INSERT INTO t2 VALUES
-(2,'Algeria'),
-(3,'XAmerican Samoa') ;
-CREATE VIEW v1 AS
-SELECT country_id, country
-FROM t2
-WHERE LEFT(country,1) = "A"
-;
-SELECT city, country_id
-FROM t1
-WHERE country_id IN (
-SELECT country_id
-FROM t2
-WHERE LEFT(country,1) = "A"
-);
-city country_id
-Batna 2
-Bchar 2
-Skikda 2
-Algeria 2
-SELECT city, country_id
-FROM t1
-WHERE country_id IN (
-SELECT country_id
-FROM v1
-);
-city country_id
-Batna 2
-Bchar 2
-Skikda 2
-Algeria 2
-PREPARE stmt FROM
-"
-SELECT city, country_id
-FROM t1
-WHERE country_id IN (
- SELECT country_id
- FROM v1
-);
-";
-execute stmt;
-city country_id
-Batna 2
-Bchar 2
-Skikda 2
-Algeria 2
-deallocate prepare stmt;
-drop table t1, t2;
-drop view v1;
-# End of Bug#49097
-#
-# BUG#38075: Wrong result: rows matching a subquery with outer join not returned
-#
-DROP TABLE IF EXISTS ot1, it1, it2;
-CREATE TABLE it2 (
-int_key int(11) NOT NULL,
-datetime_key datetime NOT NULL,
-KEY int_key (int_key),
-KEY datetime_key (datetime_key)
-);
-INSERT INTO it2 VALUES
-(5,'2002-04-10 14:25:30'), (0,'0000-00-00 00:00:00'),
-(0,'2006-09-14 04:01:02'), (4,'0000-00-00 00:00:00'),
-(8,'0000-00-00 00:00:00'), (5,'0000-00-00 00:00:00'),
-(9,'0000-00-00 00:00:00'), (8,'2007-04-01 11:04:17'),
-(1,'0000-00-00 00:00:00'), (7,'2009-01-12 00:00:00'),
-(0,'2009-06-05 00:00:00'), (3,'2006-02-14 18:06:35'),
-(5,'2006-02-21 07:08:16'), (0,'0000-00-00 00:00:00'),
-(7,'0000-00-00 00:00:00'), (0,'0000-00-00 00:00:00'),
-(0,'2007-02-13 00:00:00'), (1,'0000-00-00 00:00:00'),
-(0,'0000-00-00 00:00:00'), (1,'2003-08-11 00:00:00');
-CREATE TABLE ot1 (
-int_nokey int(11) NOT NULL,
-int_key int(11) NOT NULL,
-KEY int_key (int_key)
-);
-INSERT INTO ot1 VALUES
-(5,0), (3,0), (0,2), (3,0), (1,3), (0,0), (1,7), (7,0), (1,7), (0,7),
-(0,9), (8,2), (4,4), (9,3), (0,9), (2,5), (0,5), (8,0), (5,8), (1,5);
-CREATE TABLE it1 (
-int_nokey int(11) NOT NULL,
-int_key int(11) NOT NULL,
-KEY int_key (int_key)
-);
-INSERT INTO it1 VALUES
-(9,5), (0,4);
-SELECT int_key FROM ot1
-WHERE int_nokey IN (SELECT it2.int_key
-FROM it1 LEFT JOIN it2 ON it2.datetime_key);
-int_key
-0
-0
-0
-0
-0
-0
-2
-2
-3
-5
-5
-7
-7
-7
-8
-9
-9
-EXPLAIN
-SELECT int_key FROM ot1
-WHERE int_nokey IN (SELECT it2.int_key
-FROM it1 LEFT JOIN it2 ON it2.datetime_key);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 11
-1 PRIMARY ot1 ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED it1 index NULL int_key 4 NULL 2 Using index
-2 MATERIALIZED it2 ALL int_key,datetime_key NULL NULL NULL 20 Using where
-DROP TABLE ot1, it1, it2;
-# End of BUG#38075
-#
-# BUG#31480: Incorrect result for nested subquery when executed via semi join
-#
-create table t1 (a int not null, b int not null);
-create table t2 (c int not null, d int not null);
-create table t3 (e int not null);
-insert into t1 values (1,10);
-insert into t1 values (2,10);
-insert into t1 values (1,20);
-insert into t1 values (2,20);
-insert into t1 values (3,20);
-insert into t1 values (2,30);
-insert into t1 values (4,40);
-insert into t2 values (2,10);
-insert into t2 values (2,20);
-insert into t2 values (4,10);
-insert into t2 values (5,10);
-insert into t2 values (3,20);
-insert into t2 values (2,40);
-insert into t3 values (10);
-insert into t3 values (30);
-insert into t3 values (10);
-insert into t3 values (20);
-explain extended
-select a from t1
-where a in (select c from t2 where d >= some(select e from t3 where b=e));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 7 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 6 100.00 Using where; FirstMatch(t1)
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.b' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`c` = `test`.`t1`.`a` and <nop>(<expr_cache><`test`.`t2`.`d`,`test`.`t1`.`b`>(<in_optimizer>(`test`.`t2`.`d`,<exists>(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`e` and <cache>(`test`.`t2`.`d`) >= `test`.`t3`.`e`))))
-show warnings;
-Level Code Message
-Note 1276 Field or reference 'test.t1.b' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`c` = `test`.`t1`.`a` and <nop>(<expr_cache><`test`.`t2`.`d`,`test`.`t1`.`b`>(<in_optimizer>(`test`.`t2`.`d`,<exists>(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`e` and <cache>(`test`.`t2`.`d`) >= `test`.`t3`.`e`))))
-select a from t1
-where a in (select c from t2 where d >= some(select e from t3 where b=e));
-a
-2
-2
-3
-2
-drop table t1, t2, t3;
-#
-# Bug#48213 Materialized subselect crashes if using GEOMETRY type
-#
-CREATE TABLE t1 (
-pk int,
-a varchar(1),
-b varchar(4),
-c tinyblob,
-d blob,
-e mediumblob,
-f longblob,
-g tinytext,
-h text,
-i mediumtext,
-j longtext,
-k geometry,
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (1,'o','ffff','ffff','ffoo','ffff','ffff','ffff','ffff','ffff','ffff',GeomFromText('POLYGON((0 0, 0 2, 2 2, 2 0, 0 0))')), (2,'f','ffff','ffff','ffff', 'ffff','ffff','ffff','ffff','ffff','ffff',GeomFromText('POLYGON((0 0, 0 2, 2 2, 2 0, 0 0))'));
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 VALUES (1,'i','iiii','iiii','iiii','iiii','ffff','ffff','ffff','ffff','ffff',GeomFromText('POLYGON((0 0, 0 2, 2 2, 2 0, 0 0))')), (2,'f','ffff','ffff','ffff','ffff','ffff','ffff','ffff','ffff','ffff',GeomFromText('POLYGON((0 0, 0 2, 2 2, 2 0, 0 0))'));
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (a, b) IN (SELECT a, b FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 11 func,func 1 100.00
-2 MATERIALIZED t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (a, b) IN (SELECT a, b FROM t2 WHERE pk > 0);
-pk
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, c) IN (SELECT b, c FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`c` = `test`.`t1`.`c` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, c) IN (SELECT b, c FROM t2 WHERE pk > 0);
-pk
-1
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, d) IN (SELECT b, d FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`d` = `test`.`t1`.`d` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, d) IN (SELECT b, d FROM t2 WHERE pk > 0);
-pk
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, e) IN (SELECT b, e FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`e` = `test`.`t1`.`e` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, e) IN (SELECT b, e FROM t2 WHERE pk > 0);
-pk
-1
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, f) IN (SELECT b, f FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`f` = `test`.`t1`.`f` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, f) IN (SELECT b, f FROM t2 WHERE pk > 0);
-pk
-1
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, g) IN (SELECT b, g FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`g` = `test`.`t1`.`g` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, g) IN (SELECT b, g FROM t2 WHERE pk > 0);
-pk
-1
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, h) IN (SELECT b, h FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`h` = `test`.`t1`.`h` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, h) IN (SELECT b, h FROM t2 WHERE pk > 0);
-pk
-1
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, i) IN (SELECT b, i FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`i` = `test`.`t1`.`i` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, i) IN (SELECT b, i FROM t2 WHERE pk > 0);
-pk
-1
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, j) IN (SELECT b, j FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`j` = `test`.`t1`.`j` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, j) IN (SELECT b, j FROM t2 WHERE pk > 0);
-pk
-1
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, k) IN (SELECT b, k FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`k` = `test`.`t1`.`k` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, k) IN (SELECT b, k FROM t2 WHERE pk > 0);
-pk
-1
-2
-DROP TABLE t1, t2;
-# End of Bug#48213
-#
-# Bug#49198 Wrong result for second call of procedure
-# with view in subselect.
-#
-CREATE TABLE t1 (t1field integer, primary key (t1field));
-CREATE TABLE t2 (t2field integer, primary key (t2field));
-CREATE TABLE t3 (t3field integer, primary key (t3field));
-CREATE VIEW v2 AS SELECT * FROM t2;
-CREATE VIEW v3 AS SELECT * FROM t3;
-INSERT INTO t1 VALUES(1),(2);
-INSERT INTO t2 VALUES(1),(2);
-INSERT INTO t3 VALUES(1),(2);
-PREPARE stmt FROM
-"
-SELECT t1field
-FROM t1
-WHERE t1field IN (SELECT * FROM v2);
-";
-EXECUTE stmt;
-t1field
-1
-2
-EXECUTE stmt;
-t1field
-1
-2
-PREPARE stmt FROM
-"
-EXPLAIN
-SELECT t1field
-FROM t1
-WHERE t1field IN (SELECT * FROM v2)
- AND t1field IN (SELECT * FROM v3)
-";
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 2 Using index
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.t1.t1field 1 Using index
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 4 test.t1.t1field 1 Using index
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 2 Using index
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.t1.t1field 1 Using index
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 4 test.t1.t1field 1 Using index
-DROP TABLE t1, t2, t3;
-DROP VIEW v2, v3;
-# End of Bug#49198
-#
-# Bug#45174: Incorrectly applied equality propagation caused wrong
-# result on a query with a materialized semi-join.
-#
-CREATE TABLE `t1` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`varchar_key` varchar(1) NOT NULL,
-`varchar_nokey` varchar(1) NOT NULL,
-PRIMARY KEY (`pk`),
-KEY `varchar_key` (`varchar_key`)
-);
-INSERT INTO `t1` VALUES (11,'m','m'),(12,'j','j'),(13,'z','z'),(14,'a','a'),(15,'',''),(16,'e','e'),(17,'t','t'),(19,'b','b'),(20,'w','w'),(21,'m','m'),(23,'',''),(24,'w','w'),(26,'e','e'),(27,'e','e'),(28,'p','p');
-CREATE TABLE `t2` (
-`varchar_nokey` varchar(1) NOT NULL
-);
-INSERT INTO `t2` VALUES ('v'),('u'),('n'),('l'),('h'),('u'),('n'),('j'),('k'),('e'),('i'),('u'),('n'),('b'),('x'),(''),('q'),('u');
-EXPLAIN EXTENDED SELECT varchar_nokey
-FROM t2
-WHERE ( `varchar_nokey` , `varchar_nokey` ) IN (
-SELECT `varchar_key` , `varchar_nokey`
-FROM t1
-WHERE `varchar_nokey` < 'n' XOR `pk` ) ;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 15 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 18 100.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t1 ALL varchar_key NULL NULL NULL 15 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`varchar_nokey` AS `varchar_nokey` from `test`.`t2` semi join (`test`.`t1`) where `test`.`t1`.`varchar_nokey` = `test`.`t1`.`varchar_key` and `test`.`t2`.`varchar_nokey` = `test`.`t1`.`varchar_key` and (`test`.`t1`.`varchar_key` < 'n' xor `test`.`t1`.`pk`)
-SELECT varchar_nokey
-FROM t2
-WHERE ( `varchar_nokey` , `varchar_nokey` ) IN (
-SELECT `varchar_key` , `varchar_nokey`
-FROM t1
-WHERE `varchar_nokey` < 'n' XOR `pk` ) ;
-varchar_nokey
-DROP TABLE t1, t2;
-# End of the test for bug#45174.
-#
-# BUG#43768: Prepared query with nested subqueries core dumps on second execution
-#
-create table t1 (
-id int(11) unsigned not null primary key auto_increment,
-partner_id varchar(35) not null,
-t1_status_id int(10) unsigned
-);
-insert into t1 values ("1", "partner1", "10"), ("2", "partner2", "10"),
-("3", "partner3", "10"), ("4", "partner4", "10");
-create table t2 (
-id int(11) unsigned not null default '0',
-t1_line_id int(11) unsigned not null default '0',
-article_id varchar(20),
-sequence int(11) not null default '0',
-primary key (id,t1_line_id)
-);
-insert into t2 values ("1", "1", "sup", "0"), ("2", "1", "sup", "1"),
-("2", "2", "sup", "2"), ("2", "3", "sup", "3"),
-("2", "4", "imp", "4"), ("3", "1", "sup", "0"),
-("4", "1", "sup", "0");
-create table t3 (
-id int(11) not null default '0',
-preceding_id int(11) not null default '0',
-primary key (id,preceding_id)
-);
-create table t4 (
-user_id varchar(50) not null,
-article_id varchar(20) not null,
-primary key (user_id,article_id)
-);
-insert into t4 values("nicke", "imp");
-prepare stmt from
-'select t1.partner_id
-from t1
-where
- t1.id in (
- select pl_inner.id
- from t2 as pl_inner
- where pl_inner.article_id in (
- select t4.article_id from t4
- where t4.user_id = \'nicke\'
- )
- )';
-execute stmt;
-partner_id
-partner2
-execute stmt;
-partner_id
-partner2
-drop table t1,t2,t3,t4;
-#
-# Bug#48623 Multiple subqueries are optimized incorrectly
-#
-CREATE TABLE t1(val VARCHAR(10));
-CREATE TABLE t2(val VARCHAR(10));
-CREATE TABLE t3(val VARCHAR(10));
-INSERT INTO t1 VALUES('aaa'), ('bbb'), ('eee'), ('mmm'), ('ppp');
-INSERT INTO t2 VALUES('aaa'), ('aaa'), ('bbb'), ('eee'), ('mmm'), ('ppp');
-INSERT INTO t3 VALUES('aaa'), ('bbb'), ('eee'), ('mmm'), ('ppp');
-EXPLAIN
-SELECT *
-FROM t1
-WHERE t1.val IN (SELECT t2.val FROM t2
-WHERE t2.val LIKE 'a%' OR t2.val LIKE 'e%')
-AND t1.val IN (SELECT t3.val FROM t3
-WHERE t3.val LIKE 'a%' OR t3.val LIKE 'e%');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 13 func 1
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 13 func 1
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 5 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 Using where
-SELECT *
-FROM t1
-WHERE t1.val IN (SELECT t2.val FROM t2
-WHERE t2.val LIKE 'a%' OR t2.val LIKE 'e%')
-AND t1.val IN (SELECT t3.val FROM t3
-WHERE t3.val LIKE 'a%' OR t3.val LIKE 'e%');
-val
-aaa
-eee
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t3;
-# End of Bug#48623
-#
-# LPBUG#602574: RQG: sql_select.cc:5385: bool greedy_search(JOIN*, table_map, uint,
-# uint): Assertion `join->best_read <
-#
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='materialization=off';
-CREATE TABLE t1 (
-varchar_key varchar(1) DEFAULT NULL,
-KEY varchar_key (varchar_key)
-);
-CREATE TABLE t2 (
-varchar_key varchar(1) DEFAULT NULL,
-KEY varchar_key (varchar_key)
-);
-INSERT INTO t2 VALUES
-(NULL),(NULL),(NULL),(NULL),('a'),('a'),('a'),('b'),('b'),('b'),('b'),('c'),
-('c'),('c'),('c'),('c'),('c'),('c'),('d'),('d'),('d'),('d'),('d'),('d'),('e'),
-('e'),('e'),('e'),('e'),('e'),('f'),('f'),('f'),('g'),('g'),('h'),('h'),('h'),
-('h'),('i'),('j'),('j'),('j'),('k'),('k'),('l'),('l'),('m'),('m'),('m'),('m'),
-('n'),('n'),('n'),('o'),('o'),('o'),('p'),('p'),('p'),('q'),('q'),('q'),('r'),
-('r'),('r'),('r'),('s'),('s'),('s'),('s'),('t'),('t'),('t'),('t'),('u'),('u'),
-('u'),('u'),('v'),('v'),('v'),('v'),('w'),('w'),('w'),('w'),('w'),('w'),('x'),
-('x'),('x'),('y'),('y'),('y'),('y'),('z'),('z'),('z'),('z');
-CREATE TABLE t3 (
-varchar_key varchar(1) DEFAULT NULL,
-KEY varchar_key (varchar_key)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t3 VALUES
-(NULL),('c'),('d'),('e'),('f'),('h'),('j'),('k'),('k'),('m'),('m'),('m'),
-('n'),('o'),('r'),('t'),('t'),('u'),('w'),('y');
-SELECT varchar_key FROM t3
-WHERE (SELECT varchar_key FROM t3
-WHERE (varchar_key,varchar_key)
-IN (SELECT t1.varchar_key, t2 .varchar_key
-FROM t1 RIGHT JOIN t2 ON t1.varchar_key
-)
-);
-varchar_key
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1, t2, t3;
-#
-# Bug#46692 "Crash occurring on queries with nested FROM subqueries
-# using materialization."
-#
-CREATE TABLE t1 (
-pk INTEGER PRIMARY KEY,
-int_key INTEGER,
-KEY int_key(int_key)
-);
-INSERT INTO t1 VALUES (10,186),(11,NULL),(12,2),(13,3),(14,0),(15,133),(16,1);
-CREATE TABLE t2 (
-pk INTEGER PRIMARY KEY,
-int_key INTEGER,
-KEY int_key(int_key)
-);
-INSERT INTO t2 VALUES (1,7),(2,2);
-SELECT * FROM t1 WHERE (140, 4) IN
-(SELECT t2.int_key, t2 .pk FROM t2 STRAIGHT_JOIN t1 ON t2.int_key);
-pk int_key
-DROP TABLE t1, t2;
-#
-# Bug#42353 "SELECT ... WHERE oe IN (SELECT w/ LEFT JOIN) query
-# causes crash."
-#
-CREATE TABLE t1 (
-pk INTEGER PRIMARY KEY,
-int_nokey INTEGER,
-int_key INTEGER,
-date_key DATE,
-datetime_nokey DATETIME,
-varchar_nokey VARCHAR(1)
-);
-CREATE TABLE t2 (
-date_nokey DATE
-);
-CREATE TABLE t3 (
-pk INTEGER PRIMARY KEY,
-int_nokey INTEGER,
-date_key date,
-varchar_key VARCHAR(1),
-varchar_nokey VARCHAR(1),
-KEY date_key (date_key)
-);
-SELECT date_key FROM t1
-WHERE (int_key, int_nokey)
-IN (SELECT t3.int_nokey, t3.pk
-FROM t2 LEFT JOIN t3 ON (t2.date_nokey < t3.date_key)
-WHERE t3.varchar_key <= t3.varchar_nokey OR t3.int_nokey <= t3.pk
-)
-AND (varchar_nokey <> 'f' OR NOT int_key < 7);
-date_key
-#
-# Bug#45933 "Crash in optimize_semijoin_nests on JOIN in subquery
-# + AND in outer query".
-#
-INSERT INTO t1 VALUES (10,7,5,'2009-06-16','2002-04-10 14:25:30','w'),
-(11,7,0,'0000-00-00','0000-00-00 00:00:00','s'),
-(12,4,0,'2003-07-14','2006-09-14 04:01:02','y'),
-(13,0,4,'2002-07-25','0000-00-00 00:00:00','c'),
-(14,1,8,'2007-07-03','0000-00-00 00:00:00','q'),
-(15,6,5,'2001-11-12','0000-00-00 00:00:00',''),
-(16,2,9,'0000-00-00','0000-00-00 00:00:00','j'),
-(29,9,1,'0000-00-00','2003-08-11 00:00:00','m');
-INSERT INTO t3 VALUES (1,9,'0000-00-00','b','b'),
-(2,2,'2002-09-17','h','h');
-SELECT t1.varchar_nokey FROM t1 JOIN t3 ON t1.datetime_nokey
-WHERE t1.varchar_nokey
-IN (SELECT varchar_nokey FROM t1
-WHERE (pk)
-IN (SELECT t3.int_nokey
-FROM t3 LEFT JOIN t1 ON t1.varchar_nokey
-WHERE t3.date_key BETWEEN '2008-06-07' AND '2006-06-26'
- )
-);
-varchar_nokey
-DROP TABLE t1, t2, t3;
-#
-# Bug#45219 "Crash on SELECT DISTINCT query containing a
-# LEFT JOIN in subquery"
-#
-CREATE TABLE t1 (
-pk INTEGER NOT NULL,
-int_nokey INTEGER NOT NULL,
-datetime_key DATETIME NOT NULL,
-varchar_key VARCHAR(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY datetime_key (datetime_key),
-KEY varchar_key (varchar_key)
-);
-INSERT INTO t1 VALUES
-(1,9,'0000-00-00 00:00:00','p'),(2,0,'2002-02-09 07:38:13','v'),
-(3,8,'2001-05-03 12:08:14','t'),(4,3,'0000-00-00 00:00:00','u'),
-(5,7,'2009-07-28 03:43:30','n'),(6,0,'2009-08-04 00:00:00','l'),
-(7,1,'0000-00-00 00:00:00','h'),(8,9,'0000-00-00 00:00:00','u'),
-(9,0,'2005-08-02 17:16:54','n'),(10,9,'2002-12-21 00:00:00','j'),
-(11,0,'2005-08-15 12:37:35','k'),(12,5,'0000-00-00 00:00:00','e'),
-(13,0,'2006-03-10 00:00:00','i'),(14,8,'2005-05-16 11:02:36','u'),
-(15,8,'2008-11-02 00:00:00','n'),(16,5,'2006-03-15 00:00:00','b'),
-(17,1,'0000-00-00 00:00:00','x'),(18,7,'0000-00-00 00:00:00',''),
-(19,0,'2008-12-17 20:15:40','q'),(20,9,'0000-00-00 00:00:00','u');
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 VALUES
-(10,0,'2006-07-07 07:26:28','q'),(11,5,'2002-09-23 00:00:00','m'),
-(12,7,'0000-00-00 00:00:00','j'),(13,1,'2006-06-07 00:00:00','z'),
-(14,8,'2000-09-16 12:15:34','a'),(15,2,'2007-08-05 15:47:52',''),
-(16,1,'0000-00-00 00:00:00','e'),(17,8,'2005-12-02 19:34:26','t'),
-(18,5,'0000-00-00 00:00:00','q'),(19,4,'0000-00-00 00:00:00','b'),
-(20,5,'2007-12-28 00:00:00','w'),(21,3,'2004-08-02 11:48:43','m'),
-(22,0,'0000-00-00 00:00:00','x'),(23,8,'2004-04-19 12:18:43',''),
-(24,0,'2009-04-27 00:00:00','w'),(25,4,'2006-10-20 14:52:15','x'),
-(26,0,'0000-00-00 00:00:00','e'),(27,0,'2002-03-22 11:48:37','e'),
-(28,2,'0000-00-00 00:00:00','p'),(29,0,'2001-01-04 03:55:07','x');
-CREATE TABLE t3 LIKE t1;
-INSERT INTO t3 VALUES
-(10,8,'2007-08-19 08:08:38','i'),(11,0,'2000-05-21 03:51:51','');
-SELECT DISTINCT datetime_key FROM t1
-WHERE (int_nokey, pk)
-IN (SELECT t3.pk, t3.pk FROM t2 LEFT JOIN t3 ON t3.varchar_key)
-AND pk = 9;
-datetime_key
-DROP TABLE t1, t2, t3;
-#
-# BUG#53060: LooseScan semijoin strategy does not return all rows
-#
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin=on,materialization=off';
-set optimizer_switch='firstmatch=off,loosescan=on';
-CREATE TABLE t1 (i INTEGER);
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
-CREATE TABLE t2 (i INTEGER, j INTEGER, KEY k(i, j));
-INSERT INTO t2 VALUES (1, 0), (1, 1), (2, 0), (2, 1);
-EXPLAIN
-SELECT * FROM t1 WHERE (i) IN (SELECT i FROM t2 where j > 0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index k k 10 NULL 4 Using where; Using index; LooseScan
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM t1 WHERE (i) IN (SELECT i FROM t2 where j > 0);
-i
-1
-2
-DROP TABLE t1, t2;
-set optimizer_switch=@save_optimizer_switch;
-#
-# BUG#49453: re-execution of prepared statement with view
-# and semijoin crashes
-#
-CREATE TABLE t1 (city VARCHAR(50), country_id INT);
-CREATE TABLE t2 (country_id INT, country VARCHAR(50));
-INSERT INTO t1 VALUES
-('Batna',2),('Bchar',2),('Skikda',2),('Tafuna',3),('Algeria',2) ;
-INSERT INTO t2 VALUES (2,'Algeria'),(2,'AlgeriaDup'),(3,'XAmerican Samoa');
-CREATE VIEW v1 AS
-SELECT country_id as vf_country_id
-FROM t2
-WHERE LEFT(country,1) = "A";
-PREPARE stmt FROM "
-SELECT city, country_id
-FROM t1
-WHERE country_id IN (SELECT vf_country_id FROM v1);
-";
-
-EXECUTE stmt;
-city country_id
-Batna 2
-Bchar 2
-Skikda 2
-Algeria 2
-EXECUTE stmt;
-city country_id
-Batna 2
-Bchar 2
-Skikda 2
-Algeria 2
-DROP TABLE t1,t2;
-DROP VIEW v1;
-#
-# Bug#54437 Extra rows with LEFT JOIN + semijoin
-#
-create table t1 (a int);
-create table t2 (a int);
-create table t3 (a int);
-insert into t1 values(1),(1);
-insert into t2 values(1),(1),(1),(1);
-insert into t3 values(2),(2);
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='materialization=off';
-set optimizer_switch='semijoin=off';
-explain
-select * from t1 where t1.a in (select t2.a from t2 left join t3 on t2.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where
-select * from t1 where t1.a in (select t2.a from t2 left join t3 on t2.a=t3.a);
-a
-1
-1
-set optimizer_switch='semijoin=on';
-explain
-select * from t1 where t1.a in (select t2.a from t2 left join t3 on t2.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 Using where; Start temporary
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where; End temporary
-select * from t1 where t1.a in (select t2.a from t2 left join t3 on t2.a=t3.a);
-a
-1
-1
-set optimizer_switch=@save_optimizer_switch;
-drop table t1,t2,t3;
-#
-# Bug#55955: crash in MEMORY engine with IN(LEFT JOIN (JOIN))
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-CREATE TABLE t3 (a INT);
-INSERT INTO t1 VALUES(1),(1);
-INSERT INTO t2 VALUES(1),(1);
-INSERT INTO t3 VALUES(2),(2);
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin=off,materialization=off';
-EXPLAIN
-SELECT * FROM t1
-WHERE t1.a IN (SELECT t2.a
-FROM t2 LEFT JOIN (t2 AS t2inner, t3) ON t2.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2inner ALL NULL NULL NULL NULL 2
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1
-WHERE t1.a IN (SELECT t2.a
-FROM t2 LEFT JOIN (t2 AS t2inner, t3) ON t2.a=t3.a);
-a
-1
-1
-set optimizer_switch='semijoin=off,materialization=on';
-EXPLAIN
-SELECT * FROM t1
-WHERE t1.a IN (SELECT t2.a
-FROM t2 LEFT JOIN (t2 AS t2inner, t3) ON t2.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-2 MATERIALIZED t2inner ALL NULL NULL NULL NULL 2
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1
-WHERE t1.a IN (SELECT t2.a
-FROM t2 LEFT JOIN (t2 AS t2inner, t3) ON t2.a=t3.a);
-a
-1
-1
-set optimizer_switch='semijoin=on,materialization=off';
-EXPLAIN
-SELECT * FROM t1
-WHERE t1.a IN (SELECT t2.a
-FROM t2 LEFT JOIN (t2 AS t2inner, t3) ON t2.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Start temporary
-1 PRIMARY t2inner ALL NULL NULL NULL NULL 2
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where; End temporary
-SELECT * FROM t1
-WHERE t1.a IN (SELECT t2.a
-FROM t2 LEFT JOIN (t2 AS t2inner, t3) ON t2.a=t3.a);
-a
-1
-1
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t2,t3;
-#
-# BUG#52329 - Wrong result: subquery materialization, IN,
-# non-null field followed by nullable
-#
-CREATE TABLE t1 (a1 CHAR(8) NOT NULL, a2 char(8) NOT NULL);
-CREATE TABLE t2a (b1 char(8), b2 char(8));
-CREATE TABLE t2b (b1 CHAR(8), b2 char(8) NOT NULL);
-CREATE TABLE t2c (b1 CHAR(8) NOT NULL, b2 char(8));
-INSERT INTO t1 VALUES ('1 - 12', '2 - 22');
-INSERT INTO t2a VALUES ('1 - 11', '2 - 21'),
-('1 - 11', '2 - 21'),
-('1 - 12', '2 - 22'),
-('1 - 12', '2 - 22'),
-('1 - 13', '2 - 23');
-INSERT INTO t2b SELECT * FROM t2a;
-INSERT INTO t2c SELECT * FROM t2a;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin=off,materialization=on';
-SELECT * FROM t1
-WHERE (a1, a2) IN (
-SELECT b1, b2 FROM t2c WHERE b1 > '0' GROUP BY b1, b2);
-a1 a2
-1 - 12 2 - 22
-SELECT * FROM t1
-WHERE (a1, a2) IN (
-SELECT b1, b2 FROM t2a WHERE b1 > '0');
-a1 a2
-1 - 12 2 - 22
-SELECT * FROM t1
-WHERE (a1, a2) IN (
-SELECT b1, b2 FROM t2b WHERE b1 > '0');
-a1 a2
-1 - 12 2 - 22
-SELECT * FROM t1
-WHERE (a1, a2) IN (
-SELECT b1, b2 FROM t2c WHERE b1 > '0');
-a1 a2
-1 - 12 2 - 22
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t2a,t2b,t2c;
-#
-# Bug#57623: subquery within before insert trigger causes crash (sj=on)
-#
-CREATE TABLE ot1(a INT);
-CREATE TABLE ot2(a INT);
-CREATE TABLE ot3(a INT);
-CREATE TABLE it1(a INT);
-INSERT INTO ot1 VALUES(0),(1),(2),(3),(4),(5),(6),(7);
-INSERT INTO ot2 VALUES(0),(2),(4),(6);
-INSERT INTO ot3 VALUES(0),(3),(6);
-INSERT INTO it1 VALUES(0),(1),(2),(3),(4),(5),(6),(7);
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin=on';
-set optimizer_switch='materialization=off';
-explain SELECT *
-FROM ot1
-LEFT JOIN
-(ot2 JOIN ot3 on ot2.a=ot3.a)
-ON ot1.a=ot2.a AND ot1.a IN (SELECT a from it1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot1 ALL NULL NULL NULL NULL 8
-1 PRIMARY ot3 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY ot2 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY it1 ALL NULL NULL NULL NULL 8 Using where
-SELECT *
-FROM ot1
-LEFT JOIN
-(ot2 JOIN ot3 on ot2.a=ot3.a)
-ON ot1.a=ot2.a AND ot1.a IN (SELECT a from it1);
-a a a
-0 0 0
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-5 NULL NULL
-6 6 6
-7 NULL NULL
-prepare s from 'SELECT *
-FROM ot1
-LEFT JOIN
-(ot2 JOIN ot3 on ot2.a=ot3.a)
-ON ot1.a=ot2.a AND ot1.a IN (SELECT a from it1)';
-execute s;
-a a a
-0 0 0
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-5 NULL NULL
-6 6 6
-7 NULL NULL
-execute s;
-a a a
-0 0 0
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-5 NULL NULL
-6 6 6
-7 NULL NULL
-deallocate prepare s;
-set optimizer_switch='materialization=on';
-explain SELECT *
-FROM ot1
-LEFT JOIN
-(ot2 JOIN ot3 on ot2.a=ot3.a)
-ON ot1.a=ot2.a AND ot1.a IN (SELECT a from it1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot1 ALL NULL NULL NULL NULL 8
-1 PRIMARY ot3 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY ot2 ALL NULL NULL NULL NULL 4 Using where
-2 MATERIALIZED it1 ALL NULL NULL NULL NULL 8
-SELECT *
-FROM ot1
-LEFT JOIN
-(ot2 JOIN ot3 on ot2.a=ot3.a)
-ON ot1.a=ot2.a AND ot1.a IN (SELECT a from it1);
-a a a
-0 0 0
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-5 NULL NULL
-6 6 6
-7 NULL NULL
-prepare s from 'SELECT *
-FROM ot1
-LEFT JOIN
-(ot2 JOIN ot3 on ot2.a=ot3.a)
-ON ot1.a=ot2.a AND ot1.a IN (SELECT a from it1)';
-execute s;
-a a a
-0 0 0
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-5 NULL NULL
-6 6 6
-7 NULL NULL
-execute s;
-a a a
-0 0 0
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-5 NULL NULL
-6 6 6
-7 NULL NULL
-deallocate prepare s;
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE ot1, ot2, ot3, it1;
-#
-# Bug#59919/11766739: Crash in tmp_table_param::init() with semijoin=on
-#
-CREATE TABLE t1 (f1 INTEGER) ENGINE=MyISAM;
-CREATE TABLE t2 (f1 INTEGER, f2 INTEGER) ENGINE=MyISAM;
-CREATE TABLE t3 (f1 INTEGER, f2 INTEGER) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (1,1), (2,1);
-INSERT INTO t3 VALUES
-(1,1), (2,1), (5,4), (7,3), (8,2), (8,1), (7,3),
-(9,5), (4,3), (7,2), (7,7), (3,1), (5,8), (9,7);
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin=off,materialization=on';
-EXPLAIN
-SELECT * FROM t3
-WHERE f2 IN (SELECT t1.f1
-FROM t1 LEFT OUTER JOIN (t2 AS b1 JOIN t2 AS b2 ON TRUE) ON TRUE);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 14 Using where
-2 MATERIALIZED t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED b1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED b2 ALL NULL NULL NULL NULL 2
-SELECT * FROM t3
-WHERE f2 IN (SELECT t1.f1
-FROM t1 LEFT OUTER JOIN (t2 AS b1 JOIN t2 AS b2 ON TRUE) ON TRUE);
-f1 f2
-1 1
-2 1
-8 1
-3 1
-set optimizer_switch='semijoin=on,materialization=on';
-EXPLAIN
-SELECT * FROM t3
-WHERE f2 IN (SELECT t1.f1
-FROM t1 LEFT OUTER JOIN (t2 AS b1 JOIN t2 AS b2 ON TRUE) ON TRUE);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 1
-1 PRIMARY t3 ALL NULL NULL NULL NULL 14 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED b1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED b2 ALL NULL NULL NULL NULL 2
-SELECT * FROM t3
-WHERE f2 IN (SELECT t1.f1
-FROM t1 LEFT OUTER JOIN (t2 AS b1 JOIN t2 AS b2 ON TRUE) ON TRUE);
-f1 f2
-1 1
-2 1
-8 1
-3 1
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1, t2, t3 ;
-#
-#
-# BUG#784723: Wrong result with semijoin + nested subqueries in maria-5.3
-#
-CREATE TABLE t1 ( t1field integer, primary key (t1field));
-CREATE TABLE t2 ( t2field integer, primary key (t2field));
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t2 VALUES (2),(3),(4);
-explain
-SELECT * FROM t1 A
-WHERE
-A.t1field IN (SELECT A.t1field FROM t2 B) AND
-A.t1field IN (SELECT C.t2field FROM t2 C
-WHERE C.t2field IN (SELECT D.t2field FROM t2 D));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A index PRIMARY PRIMARY 4 NULL 3 Using index
-1 PRIMARY B index NULL PRIMARY 4 NULL 3 Using index; Start temporary; End temporary
-1 PRIMARY C eq_ref PRIMARY PRIMARY 4 test.A.t1field 1 Using index
-1 PRIMARY D eq_ref PRIMARY PRIMARY 4 test.A.t1field 1 Using index
-SELECT * FROM t1 A
-WHERE
-A.t1field IN (SELECT A.t1field FROM t2 B) AND
-A.t1field IN (SELECT C.t2field FROM t2 C
-WHERE C.t2field IN (SELECT D.t2field FROM t2 D));
-t1field
-2
-3
-drop table t1,t2;
-#
-# BUG#787299: Valgrind complains on a join query with two IN subqueries
-#
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-create table t2 as select * from t1;
-select * from t1 A, t1 B
-where A.a = B.a and A.a in (select a from t2 C) and B.a in (select a from t2 D);
-a a
-1 1
-2 2
-3 3
-explain
-select * from t1 A, t1 B
-where A.a = B.a and A.a in (select a from t2 C) and B.a in (select a from t2 D);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 3
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY B ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED C ALL NULL NULL NULL NULL 3
-3 MATERIALIZED D ALL NULL NULL NULL NULL 3
-drop table t1, t2;
-#
-# BUG#784441: Abort on semijoin with a view as the inner table
-#
-CREATE TABLE t1 (a int) ;
-INSERT INTO t1 VALUES (1), (1);
-CREATE TABLE t2 (a int) ;
-INSERT INTO t2 VALUES (1), (1);
-CREATE VIEW v1 AS SELECT 1;
-EXPLAIN
-SELECT * FROM t1 INNER JOIN t2 ON t2.a != 0 AND t2.a IN (SELECT * FROM v1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived3> system NULL NULL NULL NULL 1
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL No tables used
-SELECT * FROM t1 INNER JOIN t2 ON t2.a != 0 AND t2.a IN (SELECT * FROM v1);
-a a
-1 1
-1 1
-1 1
-1 1
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# BUG#751439 Assertion `!table->file || table->file->inited == handler::NONE' failed with subquery
-#
-CREATE TABLE t1 ( f10 int, f11 int) ;
-INSERT IGNORE INTO t1 VALUES (0,0),(0,0);
-CREATE TABLE t2 ( f11 int);
-INSERT IGNORE INTO t2 VALUES (0),(0);
-CREATE TABLE t3 ( f11 int) ;
-INSERT IGNORE INTO t3 VALUES (0);
-SELECT alias1.f11 AS field2
-FROM ( t3 AS alias2 JOIN t1 AS alias3 ON alias3.f10 = 1)
-LEFT JOIN ( t2 AS alias1 ) ON alias3.f11 = 1
-WHERE alias2.f11 IN ( SELECT f11 FROM t2 )
-GROUP BY field2 ;
-field2
-drop table t1, t2, t3;
-#
-# BUG#778406 Crash in hp_movelink with Aria engine and subqueries
-#
-CREATE TABLE t4 (f10 varchar(32) , KEY (f10)) ENGINE=Aria;
-INSERT INTO t4 VALUES ('x'),('m'),('c');
-CREATE TABLE t1 (f11 int) ENGINE=Aria;
-INSERT INTO t1 VALUES (0),(0),(0);
-CREATE TABLE t2 ( f10 int) ENGINE=Aria;
-INSERT INTO t2 VALUES (0),(0),(0);
-CREATE TABLE t3 ( f10 int, f11 int) ENGINE=Aria;
-SELECT *
-FROM t4
-WHERE f10 IN
-( SELECT t1.f11
-FROM t1
-LEFT JOIN t2 JOIN t3 ON t3.f10 = t2.f10 ON t3.f11 != 0 );
-f10
-x
-m
-c
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-drop table t1,t2,t3,t4;
-#
-# BUG#751484: Valgrind warning / sporadic crash in evaluate_join_record sql_select.cc:14099 with semijoin
-#
-CREATE TABLE t1 ( f10 int, f11 int, KEY (f10));
-INSERT IGNORE INTO t1 VALUES (0, 0),(0, 0);
-CREATE TABLE t3 ( f10 int);
-INSERT IGNORE INTO t3 VALUES (0);
-set @tmp_751484= @@optimizer_switch;
-set optimizer_switch='materialization=on';
-SELECT * FROM t1
-WHERE f11 IN (
-SELECT C_SQ1_alias1.f11
-FROM t1 AS C_SQ1_alias1
-JOIN t3 AS C_SQ1_alias2
-ON C_SQ1_alias2.f10 = C_SQ1_alias1.f10
-);
-f10 f11
-0 0
-0 0
-set optimizer_switch='materialization=off';
-SELECT * FROM t1
-WHERE f11 IN (
-SELECT C_SQ1_alias1.f11
-FROM t1 AS C_SQ1_alias1
-JOIN t3 AS C_SQ1_alias2
-ON C_SQ1_alias2.f10 = C_SQ1_alias1.f10
-);
-f10 f11
-0 0
-0 0
-set optimizer_switch=@tmp_751484;
-drop table t1, t3;
-# BUG#795530 Wrong result with subquery semijoin materialization and outer join
-# Simplified testcase that uses DuplicateElimination
-#
-create table t1 (a int);
-create table t2 (a int, b char(10));
-insert into t1 values (1),(2);
-insert into t2 values (1, 'one'), (3, 'three');
-create table t3 (b char(10));
-insert into t3 values('three'),( 'four');
-insert into t3 values('three'),( 'four');
-insert into t3 values('three'),( 'four');
-insert into t3 values('three'),( 'four');
-explain select * from t3 where t3.b in (select t2.b from t1 left join t2 on t1.a=t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2
-1 PRIMARY t3 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using where
-select * from t3 where t3.b in (select t2.b from t1 left join t2 on t1.a=t2.a);
-b
-drop table t1, t2, t3;
-#
-# BUG#600958 RQG: Crash in optimize_semijoin_nests
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_int_key int(11) DEFAULT NULL,
-col_date_key date DEFAULT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_date_key (col_date_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES (10,8,'2002-02-21',NULL);
-CREATE TABLE t2 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_int_key int(11) DEFAULT NULL,
-col_date_key date DEFAULT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_date_key (col_date_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-INSERT INTO t2 VALUES (1,7,'1900-01-01','f');
-SELECT col_date_key FROM t1
-WHERE 5 IN (
-SELECT SUBQUERY3_t1 .col_int_key
-FROM t2 SUBQUERY3_t1
-LEFT JOIN t1 SUBQUERY3_t2 ON SUBQUERY3_t1 .col_varchar_key
-);
-col_date_key
-drop table t2, t1;
-#
-# No BUG#: Duplicate weedout check is not done for outer joins
-#
-create table t1 (a int);
-create table t2 (a int);
-insert into t1 values (1),(1),(2),(2);
-insert into t2 values (1);
-create table t0 (a int);
-insert into t0 values (1),(2);
-set @tmp_20110622= @@optimizer_switch;
-set optimizer_switch='firstmatch=off,loosescan=off,materialization=off';
-# Check DuplicateWeedout + join buffer
-explain
-select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Start temporary
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where; End temporary
-select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
-a
-1
-2
-# Check DuplicateWeedout without join buffer
-set @tmp_jcl_20110622= @@join_cache_level;
-set join_cache_level= 0;
-explain
-select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Start temporary
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where; End temporary
-select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
-a
-1
-2
-# Check FirstMatch without join buffer:
-set optimizer_switch='firstmatch=on';
-explain
-select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Start temporary
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where; End temporary
-select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
-a
-1
-2
-#
-# Now, check the same for multiple inner tables:
-alter table t2 add b int;
-update t2 set b=a;
-create table t3 as select * from t2;
-set optimizer_switch='firstmatch=off';
-set join_cache_level= 0;
-# DuplicateWeedout without join buffer
-explain
-select * from t0
-where a in (select t1.a from t1 left join (t3 join t2 on t3.b=t2.b) on t1.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Start temporary
-1 PRIMARY t3 ALL NULL NULL NULL NULL 1 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where; End temporary
-select * from t0
-where a in (select t1.a from t1 left join (t3 join t2 on t3.b=t2.b) on t1.a=t3.a);
-a
-1
-2
-set @@join_cache_level=@tmp_jcl_20110622;
-# DuplicateWeedout + join buffer
-explain
-select * from t0
-where a in (select t1.a from t1 left join (t3 join t2 on t3.b=t2.b) on t1.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Start temporary
-1 PRIMARY t3 ALL NULL NULL NULL NULL 1 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where; End temporary
-select * from t0
-where a in (select t1.a from t1 left join (t3 join t2 on t3.b=t2.b) on t1.a=t3.a);
-a
-1
-2
-# Now, let the inner join side have a 'partial' match
-select * from t3;
-a b
-1 1
-insert into t3 values(2,2);
-explain
-select * from t0
-where a in (select t1.a from t1 left join (t3 join t2 on t3.b=t2.b) on t1.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Start temporary
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where; End temporary
-select * from t0
-where a in (select t1.a from t1 left join (t3 join t2 on t3.b=t2.b) on t1.a=t3.a);
-a
-1
-2
-set @@optimizer_switch=@tmp_20110622;
-drop table t0, t1, t2, t3;
-#
-# BUG#802965: Crash in do_copy_not_null with semijoin=on in maria-5.3
-#
-set @save_802965= @@optimizer_switch;
-set optimizer_switch='semijoin=on,materialization=off,firstmatch=off,loosescan=off';
-CREATE TABLE t2 ( f1 int NOT NULL , PRIMARY KEY (f1)) ;
-INSERT IGNORE INTO t2 VALUES (19),(20);
-CREATE TABLE t1 ( f1 int NOT NULL , PRIMARY KEY (f1)) ;
-INSERT IGNORE INTO t1 VALUES (21),(22),(23),(24);
-SELECT *
-FROM t2 , t1
-WHERE t2.f1 IN
-(
-SELECT SQ1_alias1.f1
-FROM t1 AS SQ1_alias1 LEFT JOIN t2 AS SQ1_alias2 JOIN t2 AS SQ1_alias3 ON SQ1_alias3.f1 ON SQ1_alias3.f1
-)
-AND t1.f1 = t2.f1 ;
-f1 f1
-DROP TABLE t1, t2;
-set optimizer_switch=@save_802965;
-#
-# BUG#803365: Crash in pull_out_semijoin_tables with outer join + semijoin + derived tables in maria-5.3 with WL#106
-#
-CREATE TABLE t1 ( f1 int) ;
-INSERT INTO t1 VALUES (1),(1);
-CREATE TABLE t2 ( f2 int) ;
-INSERT INTO t2 VALUES (1),(1);
-CREATE TABLE t3 ( f3 int) ;
-INSERT INTO t3 VALUES (1),(1);
-SELECT *
-FROM t1
-WHERE t1.f1 IN (
-SELECT t2.f2
-FROM t2
-LEFT JOIN (
-SELECT *
-FROM t3
-) AS alias1
-ON alias1.f3 = t2.f2
-);
-f1
-1
-1
-DROP TABLE t1,t2,t3;
-#
-# BUG#611704: Crash in replace_where_subcondition with nested subquery and semijoin=on
-#
-CREATE TABLE t1 ( f1 int) ;
-CREATE TABLE t2 ( f1 int) ;
-CREATE TABLE t3 ( f1 int) ;
-SELECT * FROM (
-SELECT t3.*
-FROM t2 STRAIGHT_JOIN t3
-ON t3.f1
-AND (t3.f1 ) IN (
-SELECT t1.f1
-FROM t1
-)
-) AS alias1;
-f1
-DROP TABLE t1,t2,t3;
-# BUG#611704: another testcase:
-CREATE TABLE t1 ( f1 int(11), f3 varchar(1), f4 varchar(1)) ;
-CREATE TABLE t2 ( f2 int(11), KEY (f2));
-CREATE TABLE t3 ( f4 varchar(1)) ;
-PREPARE st1 FROM '
-SELECT *
-FROM t1
-STRAIGHT_JOIN ( t2 STRAIGHT_JOIN t3 ON t2.f2 )
-ON (t1.f3) IN ( SELECT f4 FROM t1 )
-';
-EXECUTE st1;
-f1 f3 f4 f2 f4
-DROP TABLE t1,t2,t3;
-#
-# BUG#803457: Wrong result with semijoin + view + outer join in maria-5.3-subqueries-mwl90
-# (Original testcase)
-#
-CREATE TABLE t1 (f1 int, f2 int );
-INSERT INTO t1 VALUES (2,0),(4,0),(0,NULL);
-CREATE TABLE t2 (f2 int, f3 int );
-INSERT INTO t2 VALUES (NULL,NULL),(0,0);
-CREATE TABLE t3 ( f1 int, f3 int );
-INSERT INTO t3 VALUES (2,0),(4,0),(0,NULL),(4,0),(8,0);
-CREATE TABLE t4 ( f2 int, KEY (f2) );
-INSERT INTO t4 VALUES (0),(NULL);
-CREATE VIEW v4 AS SELECT DISTINCT f2 FROM t4 ;
-# The following must not have outer joins:
-explain extended
-SELECT * FROM t1 NATURAL LEFT JOIN (t2, t3) WHERE t2.f3 IN (SELECT * FROM t4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 PRIMARY t4 ref f2 f2 5 test.t2.f3 2 100.00 Using index; FirstMatch(t2)
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t2`.`f3` AS `f3`,`test`.`t3`.`f3` AS `f3` from `test`.`t1` semi join (`test`.`t4`) join `test`.`t2` join `test`.`t3` where `test`.`t4`.`f2` = `test`.`t2`.`f3` and `test`.`t3`.`f1` = `test`.`t1`.`f1` and `test`.`t1`.`f2` = `test`.`t2`.`f2`
-SELECT * FROM t1 NATURAL LEFT JOIN (t2, t3) WHERE t2.f3 IN (SELECT * FROM t4);
-f1 f2 f3 f3
-2 0 0 0
-4 0 0 0
-4 0 0 0
-drop view v4;
-drop table t1, t2, t3, t4;
-#
-# BUG#803303: Wrong result with semijoin=on, outer join in maria-5.3-subqueries-mwl90
-#
-# Testcase#1:
-set @tmp803303= @@optimizer_switch;
-set optimizer_switch = 'semijoin=on,materialization=off,firstmatch=off,loosescan=off';
-CREATE TABLE t2 ( f1 int) ;
-INSERT IGNORE INTO t2 VALUES (6),(8);
-CREATE TABLE t1 ( f1 int, f2 int, f3 int) ;
-INSERT IGNORE INTO t1 VALUES (8,0,0),(7,0,0),(9,0,0);
-SELECT alias2.f1
-FROM t2 AS alias1
-LEFT JOIN ( t1 AS alias2 JOIN t1 AS alias3 ON alias3.f2 = alias2.f3 )
-ON alias3.f2 = alias2.f2
-WHERE alias2.f1 IN ( SELECT f1 FROM t2 AS alias4 ) ;
-f1
-8
-8
-8
-8
-8
-8
-drop table t1,t2;
-set optimizer_switch= @tmp803303;
-# Testcase #2:
-CREATE TABLE t1 ( f10 int) ;
-INSERT INTO t1 VALUES (0),(0);
-CREATE TABLE t2 ( f10 int, f11 varchar(1)) ;
-INSERT INTO t2 VALUES (0,'a'),(0,'b');
-CREATE TABLE t3 ( f10 int) ;
-INSERT INTO t3 VALUES (0),(0),(0),(0),(0);
-CREATE TABLE t4 ( f10 varchar(1), f11 int) ;
-INSERT INTO t4 VALUES ('a',0),('b',0);
-SELECT * FROM t1
-LEFT JOIN ( t2 JOIN t3 ON t3.f10 = t2.f10 ) ON t1.f10 = t2.f10
-WHERE t2.f10 IN (
-SELECT t4.f11
-FROM t4
-WHERE t4.f10 != t2.f11
-);
-f10 f10 f11 f10
-0 0 a 0
-0 0 a 0
-0 0 b 0
-0 0 b 0
-0 0 a 0
-0 0 a 0
-0 0 b 0
-0 0 b 0
-0 0 a 0
-0 0 a 0
-0 0 b 0
-0 0 b 0
-0 0 a 0
-0 0 a 0
-0 0 b 0
-0 0 b 0
-0 0 a 0
-0 0 a 0
-0 0 b 0
-0 0 b 0
-drop table t1,t2,t3,t4;
-#
-# BUG#803457: Wrong result with semijoin + view + outer join in maria-5.3-subqueries-mwl90
-#
-set @tmp803457=@@optimizer_switch;
-set optimizer_switch='materialization=off';
-CREATE TABLE t1 (f1 int, f2 int );
-INSERT INTO t1 VALUES (2,0),(4,0),(0,NULL);
-CREATE TABLE t2 (f2 int, f3 int );
-INSERT INTO t2 VALUES (NULL,NULL),(0,0);
-CREATE TABLE t3 ( f1 int, f3 int );
-INSERT INTO t3 VALUES (2,0),(4,0),(0,NULL),(4,0),(8,0);
-CREATE TABLE t4 ( f2 int);
-INSERT INTO t4 VALUES (0),(NULL);
-# The following uses Duplicate Weedout, and "End temporary" must not be
-# in the middle of the inner side of an outer join:
-explain
-SELECT * FROM t1 NATURAL LEFT JOIN (t2, t3) WHERE IFNULL(t2.f3,'foo') IN (SELECT * FROM t4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY t3 ALL NULL NULL NULL NULL 5 Using where
-1 PRIMARY t4 ALL NULL NULL NULL NULL 2 Using where; Start temporary; End temporary
-SELECT * FROM t1 NATURAL LEFT JOIN (t2, t3 ) WHERE IFNULL(t2.f3,'foo') IN (SELECT * FROM t4);
-f1 f2 f3 f3
-2 0 0 0
-4 0 0 0
-4 0 0 0
-0 NULL NULL NULL
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'foo'
-Warning 1292 Truncated incorrect DOUBLE value: 'foo'
-DROP TABLE t1, t2, t3, t4;
-set @tmp803457=@@optimizer_switch;
-#
-# BUG#818280: crash in do_copy_not_null() in maria-5.3 with semijoin
-#
-CREATE TABLE t1 ( c1 int NOT NULL , c2 int NOT NULL, PRIMARY KEY (c1)) ;
-INSERT IGNORE INTO t1 VALUES (2,7),(1,3),(5,6);
-CREATE TABLE t3 ( c1 int NOT NULL , c2 int NOT NULL, PRIMARY KEY (c1)) ;
-INSERT IGNORE INTO t3 VALUES (2,7),(1,3),(5,6);
-CREATE TABLE t2 ( c1 int NOT NULL , c5 int NOT NULL );
-INSERT IGNORE INTO t2 VALUES (2,2),(2,2),(5,6);
-SELECT * FROM t1 WHERE c1 IN ( SELECT t3.c1 FROM t3 LEFT JOIN t2 ON t2 .c1 = t3 .c1 WHERE t2.c5 != 0 );
-c1 c2
-2 7
-5 6
-DROP TABLE t1, t2, t3;
-#
-# BUG#834534: Assertion `0' failed in replace_where_subcondition with semijoin subquery in HAVING
-#
-CREATE TABLE t1 ( d int );
-INSERT INTO t1 VALUES (2),(2),(0),(2),(2);
-CREATE TABLE t2 ( b int );
-INSERT INTO t2 VALUES (4),(3),(3);
-CREATE TABLE t3 ( a int );
-SELECT *
-FROM t3
-WHERE (t3.a) IN (
-SELECT t1.d
-FROM t1
-HAVING ( 4 ) IN (
-SELECT t2.b
-FROM t2
-)
-);
-a
-drop table t1, t2,t3;
-#
-# BUG#834758: Wrong result with innner join, LooseScan, two-column IN() predicate
-#
-set @tmp835758=@@optimizer_switch;
-set optimizer_switch='semijoin=on,loosescan=on,materialization=off,firstmatch=off';
-CREATE TABLE t1 (b int) ;
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 (a int, PRIMARY KEY (a)) ;
-INSERT INTO t2 VALUES (6),(10);
-CREATE TABLE t3 (a int, b int, KEY (b)) ;
-INSERT INTO t3 VALUES (6,5),(6,2),(8,0),(9,1),(6,5);
-# This used to incorrectly pick a join order of (t1, LooseScan(t3), t2):
-explain
-SELECT * FROM t1, t2 WHERE (t2.a , t1.b) IN (SELECT a, b FROM t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 2 Using index; Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL b NULL NULL NULL 5 Using where; Start temporary; End temporary
-SELECT * FROM t1, t2 WHERE (t2.a , t1.b) IN (SELECT a, b FROM t3);
-b a
-5 6
-DROP TABLE t1, t2, t3;
-set @@optimizer_switch= @tmp835758;
-#
-# BUG#834739: Wrong result with 3-way inner join, LooseScan,multipart keys
-#
-set @tmp834739=@@optimizer_switch;
-set optimizer_switch='semijoin=on,loosescan=on,materialization=off,firstmatch=off';
-CREATE TABLE t2 ( b int, c int, KEY (b)) ;
-INSERT INTO t2 VALUES (1,0),(1,0),(9,0),(1,0),(5,0);
-INSERT INTO t2 VALUES (2,0),(3,0),(8,0),(6,0),(5,0);
-CREATE TABLE t3 ( a int);
-INSERT INTO t3 VALUES (0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0);
-CREATE TABLE t4 ( a int);
-INSERT INTO t4 VALUES (0),(0),(0);
-CREATE TABLE t5 ( b int, a int , KEY (a,b)) ;
-INSERT INTO t5 VALUES (7,0),(9,0);
-explain
-SELECT * FROM t3 WHERE t3.a IN (SELECT t5.a FROM t2, t4, t5 WHERE t2.c = t5.a AND t2.b = t5.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t5 index a a 10 NULL 2 Using index; Start temporary
-1 PRIMARY t4 ALL NULL NULL NULL NULL 3
-1 PRIMARY t2 ALL b NULL NULL NULL 10 Using where
-1 PRIMARY t3 ALL NULL NULL NULL NULL 15 Using where; End temporary; Using join buffer (flat, BNL join)
-SELECT * FROM t3 WHERE t3.a IN (SELECT t5.a FROM t2, t4, t5 WHERE t2.c = t5.a AND t2.b = t5.b);
-a
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-DROP TABLE t2, t3, t4, t5;
-set @@optimizer_switch=@tmp834739;
-#
-# BUG#830993: Crash in end_read_record with derived table
-#
-set @tmp_830993=@@optimizer_switch;
-set optimizer_switch='semijoin=on,loosescan=off,materialization=off,firstmatch=off';
-set @tmp_830993_jbs= @@join_buffer_size;
-set join_buffer_size=160;
-CREATE TABLE t1 (
-a int(11) NOT NULL AUTO_INCREMENT,
-b int(11) DEFAULT NULL,
-c int(11) DEFAULT NULL,
-d time DEFAULT NULL,
-e varchar(1) DEFAULT NULL,
-f varchar(1) DEFAULT NULL,
-PRIMARY KEY (a),
-KEY c (c),
-KEY d (d),
-KEY e (e,c)
-);
-INSERT INTO t1 VALUES (10,NULL,8,'22:55:23','x','x'),
-(11,8,7,'10:19:31','d','d'),(12,1,1,'14:40:36','r','r'),
-(13,9,7,'04:37:47','f','f'),(14,4,9,'19:34:06','y','y'),
-(15,3,NULL,'20:35:33','u','u'),(16,2,1,NULL,'m','m'),
-(17,NULL,9,'14:43:37',NULL,NULL),(18,2,2,'02:23:09','o','o'),
-(19,NULL,9,'01:22:45','w','w'),(20,6,2,'00:00:00','m','m'),
-(21,7,4,'00:13:25','q','q'),(22,2,0,'03:47:16',NULL,NULL),
-(23,5,4,'01:41:48','d','d'),(24,7,8,'00:00:00','g','g'),
-(25,6,NULL,'22:32:04','x','x'),(26,6,NULL,'16:44:14','f','f'),
-(27,2,0,'17:38:37','p','p'),(28,9,NULL,'08:46:48','j','j'),
-(29,6,8,'14:11:27','c','c');
-CREATE TABLE t2 like t1;
-INSERT INTO t2 VALUES (1,2,4,'22:34:09','v','v'),
-(2,150,62,'14:26:02','v','v'),(3,NULL,7,'14:03:03','c','c'),
-(4,2,1,'01:46:09',NULL,NULL),(5,5,0,'16:21:18','x','x'),
-(6,3,7,'18:56:33','i','i'),(7,1,7,NULL,'e','e'),
-(8,4,1,'09:29:08','p','p'),(9,NULL,7,'19:11:10','s','s'),
-(10,2,1,'11:57:26','j','j'),(11,6,5,'00:39:46','z','z'),
-(12,6,2,'03:28:15','c','c'),(13,8,0,'06:44:18','a','a'),
-(14,2,1,'14:36:39','q','q'),(15,6,8,'18:42:45','y','y'),
-(16,8,1,'02:57:29',NULL,NULL),(17,3,1,'16:46:13','r','r'),
-(18,3,9,'19:39:02','v','v'),(19,9,1,NULL,NULL,NULL),
-(20,6,5,'20:58:33','r','r');
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-explain
-SELECT
-alias1.a, alias1.b, alias1.c, alias1.d, alias1.e, alias1.f,
-alias2.a as a2_a, alias2.b as a2_b, alias2.c as a2_c, alias2.d as a2_d,
-alias2.e as a2_e, alias2.f as a2_f,
-t2.a as t2_a, t2.b as t2_b, t2.c as t2_c, t2.d as t2_d, t2.e as t2_e, t2.f as t2_f
-FROM
-(SELECT * FROM t2) AS alias1,
-t1 AS alias2,
-t2
-WHERE
-alias1.c IN (SELECT SQ3_alias1.b
-FROM t2 AS SQ3_alias1 STRAIGHT_JOIN t2 AS SQ3_alias2)
-LIMIT 100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY SQ3_alias1 ALL NULL NULL NULL NULL 20 Start temporary
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY SQ3_alias2 index NULL PRIMARY 4 NULL 20 Using index; End temporary
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 20 Using join buffer (flat, BNL join)
-1 PRIMARY t2 ALL NULL NULL NULL NULL 20 Using join buffer (flat, BNL join)
-2 DERIVED t2 ALL NULL NULL NULL NULL 20
-create table t3 as
-SELECT
-alias1.a, alias1.b, alias1.c, alias1.d, alias1.e, alias1.f,
-alias2.a as a2_a, alias2.b as a2_b, alias2.c as a2_c, alias2.d as a2_d,
-alias2.e as a2_e, alias2.f as a2_f,
-t2.a as t2_a, t2.b as t2_b, t2.c as t2_c, t2.d as t2_d, t2.e as t2_e, t2.f as t2_f
-FROM
-(SELECT * FROM t2) AS alias1,
-t1 AS alias2,
-t2
-WHERE
-alias1.c IN (SELECT SQ3_alias1.b
-FROM t2 AS SQ3_alias1 STRAIGHT_JOIN t2 AS SQ3_alias2)
-LIMIT 100;
-set optimizer_switch=@tmp_optimizer_switch;
-drop table t1,t2, t3;
-set optimizer_switch=@tmp_830993;
-set join_buffer_size= @tmp_830993_jbs;
-#
-# BUG##849717: Crash in Item_func::fix_fields on second execution of a prepared statement with semijoin
-#
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int);
-CREATE TABLE t3 (a int, b int) ;
-PREPARE st1 FROM "SELECT * FROM t2 LEFT JOIN t1 ON t2.a != 0 AND ('j','r') IN ( SELECT b,a FROM t3)";
-EXECUTE st1;
-a a
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'j'
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-EXECUTE st1;
-a a
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'j'
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-DROP TABLE t1, t2, t3;
-#
-# BUG#849776: Wrong result with semijoin + "Impossible where"
-#
-CREATE TABLE t1 ( b varchar(1), a integer) ;
-INSERT INTO t1 VALUES ('z',8);
-CREATE TABLE t2 ( a integer, b varchar(1)) ;
-CREATE TABLE t4 ( a integer, b varchar(1)) ;
-CREATE TABLE t5 ( a integer) ;
-INSERT INTO t5 VALUES (8);
-select * from t5 where (a) in (
-SELECT t1.a
-FROM t1 LEFT JOIN t2 ON t1.a = t2.a
-WHERE t2.b NOT IN (SELECT t4.b FROM t4 WHERE t4.b < t1.b)
-);
-a
-8
-DROP TABLE t1, t2, t4, t5;
-#
-# BUG#861147: Assertion `fixed == 1' failed in Item_func_eq::val_int() with semijoin + materialization + max_join_size
-#
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-set @tmp_mjs_861147= @@max_join_size;
-SET max_join_size=10;
-set @tmp_os_861147= @@optimizer_switch;
-set @@optimizer_switch='semijoin=on,materialization=on';
-explain
-select * from t1 where a in (select max(A.a + B.a + C.a) from t1 A, t1 B, t1 C);
-ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
-set max_join_size= @tmp_mjs_861147;
-set optimizer_switch= @tmp_os_861147;
-drop table t1;
-#
-# BUG#877288: Wrong result with semijoin + materialization + multipart key
-#
-set @tmp_877288=@@optimizer_switch;
-set optimizer_switch='semijoin=ON,materialization=ON';
-CREATE TABLE t1 ( a int) ;
-INSERT INTO t1 VALUES (19),(19),(19),(20),(20),(20),(20),(20),(20);
-CREATE TABLE t2 ( b int NOT NULL , c int NOT NULL , KEY (b,c)) ;
-INSERT INTO t2 VALUES (14,1),(15,1),(16,1),(17,1),(18,1),(19,1),(20,1);
-CREATE TABLE t3 ( a int, d int) ;
-INSERT INTO t3 VALUES (19,1),(7,1),(3,1),(3,1),(20,1),(3,1),(16,1),(17,1),(9,1),(4,1),(6,1),(15,1),(17,1);
-explain
-SELECT * FROM t1 WHERE (a) IN (SELECT a FROM t2 JOIN t3 ON b = a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 9
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 13 Using where
-2 MATERIALIZED t2 ref b b 4 test.t3.a 1 Using index
-SELECT * FROM t1 WHERE (a) IN (SELECT a FROM t2 JOIN t3 ON b = a);
-a
-19
-19
-19
-20
-20
-20
-20
-20
-20
-DROP TABLE t1,t2,t3;
-set optimizer_switch=@tmp_877288;
-#
-# BUG#878753: Assertion '0' failed in replace_where_subcondition with derived_merge
-#
-set @tmp878753= @@optimizer_switch;
-set optimizer_switch= 'semijoin=on,derived_merge=on';
-CREATE TABLE t1 (b int(11)) ;
-CREATE TABLE t2 (c int, b int, d varchar(52) NOT NULL) ;
-CREATE TABLE t3 (b int(11)) ;
-PREPARE st1 FROM '
- SELECT * FROM t1
- JOIN (
- SELECT t2.* FROM t2
- WHERE t2.d <> "a"
- AND t2.c IN (
- SELECT t3.b
- FROM t3
- )
- ) AS alias2
- ON ( alias2.b = t1.b );
-';
-EXECUTE st1;
-b c b d
-DROP TABLE t1,t2,t3;
-set optimizer_switch=@tmp878753;
-#
-# Bug #889750: semijoin=on + firstmatch=off + semijoin_with_cache=off
-#
-create table t1 (a int);
-insert into t1 values (7), (1), (5), (3);
-create table t2 (a int);
-insert into t2 values (4), (1), (8), (3), (9), (2);
-set @tmp_otimizer_switch= @@optimizer_switch;
-set optimizer_switch='semijoin=on';
-set optimizer_switch='firstmatch=off';
-set optimizer_switch='semijoin_with_cache=on';
-explain
-select * from t1 where t1.a in (select t2.a from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-1 PRIMARY t2 ALL NULL NULL NULL NULL 6 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-select * from t1 where t1.a in (select t2.a from t2);
-a
-1
-3
-set optimizer_switch='semijoin_with_cache=off';
-explain
-select * from t1 where t1.a in (select t2.a from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-1 PRIMARY t2 ALL NULL NULL NULL NULL 6 Using where; Start temporary; End temporary
-select * from t1 where t1.a in (select t2.a from t2);
-a
-1
-3
-set optimizer_switch= @tmp_otimizer_switch;
-drop table t1,t2;
-#
-# Bug #887496: semijoin with IN equality for the second part of an index
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (9), (0), (8), (5);
-CREATE TABLE t2 (a int, b varchar(1), INDEX idx (b,a));
-INSERT INTO t2 VALUES (5,'r'), (5,'z');
-CREATE TABLE t3 (a int, b varchar(1), INDEX idx (b,a));
-INSERT INTO t3 VALUES (5,'r'), (5,'z');
-set @tmp_otimizer_switch= @@optimizer_switch;
-SET SESSION optimizer_switch='semijoin=on,firstmatch=on';
-SET SESSION optimizer_switch='loosescan=off';
-EXPLAIN
-SELECT * FROM t1 WHERE a IN (SELECT t2.a FROM t2,t3 WHERE t2.b = t3.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index idx idx 9 NULL 2 Using where; Using index; Start temporary
-1 PRIMARY t3 ref idx idx 4 test.t2.b 1 Using index
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; End temporary; Using join buffer (flat, BNL join)
-SELECT * FROM t1 WHERE a IN (SELECT t2.a FROM t2,t3 WHERE t2.b = t3.b);
-a
-5
-SET SESSION optimizer_switch='loosescan=on';
-EXPLAIN
-SELECT * FROM t1 WHERE a IN (SELECT t2.a FROM t2,t3 WHERE t2.b = t3.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index idx idx 9 NULL 2 Using where; Using index; Start temporary
-1 PRIMARY t3 ref idx idx 4 test.t2.b 1 Using index
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; End temporary; Using join buffer (flat, BNL join)
-SELECT * FROM t1 WHERE a IN (SELECT t2.a FROM t2,t3 WHERE t2.b = t3.b);
-a
-5
-set optimizer_switch= @tmp_otimizer_switch;
-DROP TABLE t1,t2,t3;
-#
-# Bug #901312: materialized semijoin + right join
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (4), (1);
-CREATE TABLE t2 (b int);
-INSERT INTO t2 VALUES (4), (1);
-CREATE TABLE t3 (c int);
-INSERT INTO t3 VALUES (4), (1);
-set @tmp_otimizer_switch= @@optimizer_switch;
-SET SESSION optimizer_switch='semijoin=on,materialization=on';
-EXPLAIN
-SELECT * FROM t1 RIGHT JOIN t2 ON b = a WHERE t2.b IN (SELECT c FROM t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 RIGHT JOIN t2 ON b = a WHERE t2.b IN (SELECT c FROM t3);
-a b
-4 4
-1 1
-set optimizer_switch= @tmp_otimizer_switch;
-DROP TABLE t1,t2,t3;
-#
-# Bug #901709: assertion failure with record count == 0
-#
-CREATE TABLE t1 (a int, KEY (a));
-INSERT INTO t1 VALUES (4), (6);
-CREATE TABLE t2 (a int, KEY (a));
-INSERT INTO t2 VALUES (4), (6);
-CREATE TABLE t3 (b int);
-INSERT INTO t3 VALUES (4);
-CREATE TABLE t4 (c int);
-SET @tmp_optimizer_switch=@@optimizer_switch;
-SET @@optimizer_switch='semijoin=on';
-SET @@optimizer_switch='materialization=on';
-SET @@optimizer_switch='firstmatch=on';
-SET optimizer_switch='semijoin_with_cache=on';
-SET optimizer_prune_level=0;
-EXPLAIN
-SELECT * FROM t1, t2
-WHERE t1.a = t2.a AND t2.a IN (SELECT b FROM t3 STRAIGHT_JOIN t4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 system NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 1
-1 PRIMARY t1 ref a a 5 const 1 Using index
-1 PRIMARY t2 ref a a 5 func 1 Using index
-2 MATERIALIZED t4 ALL NULL NULL NULL NULL 0
-SELECT * FROM t1, t2
-WHERE t1.a = t2.a AND t2.a IN (SELECT b FROM t3 STRAIGHT_JOIN t4);
-a a
-SET optimizer_prune_level=DEFAULT;
-SET optimizer_switch=@tmp_optimizer_switch;
-DROP TABLE t1,t2,t3,t4;
-#
-# BUG#901399: Wrong result (extra row) with semijoin=ON, materialization=OFF, optimizer_prune_level=0
-#
-set @opl_901399= @@optimizer_prune_level;
-set @os_091399= @@optimizer_switch;
-SET optimizer_prune_level=0;
-SET optimizer_switch = 'materialization=off';
-CREATE TABLE t1 ( c INT ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-(0),(1),(2),(3),(4),(5),
-(6),(7),(8),(9),(10),(11),(12);
-CREATE TABLE t2 ( a INT, b INT, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3,20),(2,21),(3,22);
-SELECT *
-FROM t1 AS alias1, t1 AS alias2
-WHERE ( alias1.c, alias2.c )
-IN (
-SELECT alias3.a, alias3.a
-FROM t2 AS alias3, t2 alias4
-WHERE alias3.b = alias4.b
-);
-c c
-2 2
-3 3
-set optimizer_prune_level= @opl_901399;
-set optimizer_switch= @os_091399;
-DROP TABLE t1,t2;
-#
-# BUG#912510: Crash in do_copy_not_null with semijoin=ON, firstmatch=ON, aggregate ...
-#
-CREATE TABLE t1 ( a VARCHAR(1) NOT NULL );
-INSERT INTO t1 VALUES ('k'),('l');
-CREATE TABLE t2 ( b VARCHAR(1) NOT NULL, KEY(b) );
-INSERT INTO t2 VALUES ('k'),('l');
-CREATE TABLE t3 ( c VARCHAR(1) NOT NULL, KEY(c) );
-INSERT INTO t3 VALUES ('m'),('n');
-SELECT a, COUNT(*) FROM t1
-WHERE a IN (
-SELECT b FROM t2 force index(b), t3 force index(c)
-WHERE c = b AND b = a
-);
-a COUNT(*)
-NULL 0
-DROP TABLE t1, t2, t3;
-#
-# BUG#920255: Wrong result (extra rows) with loosescan and IN subquery
-#
-CREATE TABLE t1 ( a INT PRIMARY KEY, b INT, KEY(b) );
-INSERT INTO t1 VALUES
-(1,2),(2,1),(3,3),(4,2),(5,5),
-(6,3),(7,1),(8,4),(9,3),(10,2);
-CREATE TABLE t2 ( c INT, d INT, UNIQUE KEY(c) );
-INSERT INTO t2 VALUES
-(1,2),(2,1),(3,3),(4,2),(5,5),(6,3),(7,1);
-SELECT a, b, d FROM t1, t2
-WHERE ( b, d ) IN
-( SELECT b, d FROM t1, t2 WHERE b = c );
-a b d
-2 1 2
-7 1 2
-2 1 2
-7 1 2
-1 2 1
-4 2 1
-10 2 1
-1 2 1
-4 2 1
-10 2 1
-3 3 3
-6 3 3
-9 3 3
-3 3 3
-6 3 3
-9 3 3
-8 4 2
-8 4 2
-5 5 5
-DROP TABLE t1, t2;
-#
-# BUG#920713: Wrong result (missing rows) with firstmatch+BNL, IN subquery, ...
-#
-CREATE TABLE t1 ( a VARCHAR(1) ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('e'),('w'),('a'),('h'),('x'),('k'),('g');
-CREATE TABLE t2 ( b INT, c VARCHAR(1) );
-INSERT INTO t2 VALUES (0,'j'),(8,'v');
-SELECT * FROM t1 alias1, t2 alias2
-WHERE alias2.c IN (
-SELECT alias4.c FROM t1 alias3, t2 alias4
-);
-a b c
-e 0 j
-e 8 v
-w 0 j
-w 8 v
-a 0 j
-a 8 v
-h 0 j
-h 8 v
-x 0 j
-x 8 v
-k 0 j
-k 8 v
-g 0 j
-g 8 v
-DROP TABLE t1, t2;
-#
-# BUG#923246: Loosescan reports different result than other semijoin methods
-#
-set @tmp_923246= @@optimizer_switch;
-set optimizer_switch='mrr=on,materialization=off';
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (kp1 int, kp2 int, c int, filler char(100), key(kp1, kp2));
-insert into t1 select A.a+10*(B.a+10*C.a), 0, 0, 'filler' from t0 A, t0 B, t0 C;
-insert into t1 select * from t1 where kp1 < 20;
-create table t3 (a int);
-insert into t3 select A.a + 10*B.a from t0 A, t0 B;
-select * from t3 where a in (select kp1 from t1 where kp1<20);
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-explain select * from t3 where a in (select kp1 from t1 where kp1<20);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range kp1 kp1 5 NULL 48 Using where; Using index; LooseScan
-1 PRIMARY t3 ALL NULL NULL NULL NULL 100 Using where; Using join buffer (flat, BNL join)
-drop table t0,t1,t3;
-set optimizer_switch= @tmp_923246;
-#
-# BUG#952583: Server crashes in Item_field::fix_after_pullout on INSERT .. SELECT
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 ( b INT );
-INSERT INTO t2 VALUES (3),(4);
-INSERT INTO t1
-SELECT * FROM ( SELECT * FROM t1 ) AS alias
-WHERE a IN ( SELECT b FROM t2 );
-DROP TABLE t1, t2;
-#
-# BUG#952372: Server crashes on 2nd execution of PS in find_field_in_tables with semijoin+materialization
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (2),(3);
-CREATE VIEW v1 AS SELECT * FROM t1;
-CREATE TABLE t2 ( b VARCHAR(1) );
-INSERT INTO t2 VALUES ('v'),('v');
-PREPARE pstmt FROM
-'SELECT DISTINCT a FROM v1, t2
- WHERE b IN ( SELECT MIN(b) FROM t2 )';
-EXECUTE pstmt;
-a
-2
-3
-EXECUTE pstmt;
-a
-2
-3
-DEALLOCATE PREPARE pstmt;
-DROP VIEW v1;
-DROP TABLE t1, t2;
-#
-# BUG#978479: Wrong result (extra rows) with derived_with_keys+loosescan+semijoin=ON, materialization=OFF
-#
-set @tmp_jcl_978479= @@join_cache_level;
-set join_cache_level=0;
-set @tmp_os_978479= @@optimizer_switch;
-set optimizer_switch = 'derived_with_keys=on,loosescan=on,semijoin=on,materialization=off';
-# Part#1: make sure EXPLAIN is using LooseScan:
-CREATE TABLE t1 ( a INT, b INT );
-INSERT INTO t1 VALUES
-(4,0),(6,8),(3,1),(5,8),(3,9),(2,4),
-(2,6),(9,1),(5,4),(7,7),(5,4);
-CREATE ALGORITHM=TEMPTABLE
-VIEW v1 AS SELECT * FROM t1;
-# This will use LooseScan:
-EXPLAIN
-SELECT * FROM t1 AS t1_1, t1 AS t1_2
-WHERE (t1_1.a, t1_2.a) IN ( SELECT a, b FROM v1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_1 ALL NULL NULL NULL NULL 11 Using where
-1 PRIMARY <derived3> ref key0 key0 5 test.t1_1.a 2 Start temporary
-1 PRIMARY t1_2 ALL NULL NULL NULL NULL 11 Using where; End temporary
-3 DERIVED t1 ALL NULL NULL NULL NULL 11
-SELECT * FROM t1 AS t1_1, t1 AS t1_2
-WHERE (t1_1.a, t1_2.a) IN ( SELECT a, b FROM v1 );
-a b a b
-3 1 9 1
-5 8 4 0
-3 9 9 1
-2 4 6 8
-2 4 4 0
-2 6 6 8
-2 6 4 0
-5 4 4 0
-7 7 7 7
-5 4 4 0
-DROP VIEW v1;
-DROP TABLE t1;
-set @@join_cache_level= @tmp_jcl_978479;
-set @@optimizer_switch= @tmp_os_978479;
-#
-# BUG#998236: Assertion failure or valgrind errors at best_access_path ...
-#
-CREATE TABLE t1 (a1 VARCHAR(3), a2 VARCHAR(35), KEY(a1,a2)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-('USA','Arvada'),('USA','Athens'),('USA','Atlanta'),('USA','Augusta'),
-('USA','Aurora'),('USA','Aurora'),('USA','Austin'),('USA','Bakersfield'),
-('USA','Baltimore'),('USA','Baton'),('USA','Beaumont'),('USA','Bellevue'),
-('USA','Berkeley'),('USA','Billings'),('USA','Birmingham'),('USA','Boise'),
-('USA','Boston'),('USA','Boulder'),('USA','Bridgeport'),('USA','Brockton'),
-('USA','Brownsville'),('USA','Buffalo'),('USA','Burbank'),('USA','Cambridge'),
-('USA','Cape'),('USA','Carrollton'),('USA','Carson'),('USA','Cary'),
-('USA','Cedar'),('USA','Chandler'),('USA','Charleston'),('USA','Charlotte'),
-('USA','Chattanooga'),('USA','Chesapeake'),('USA','Chicago'),('USA','Chula'),
-('USA','Cincinnati'),('USA','Citrus'),('USA','Clarksville'),('USA','Clearwater'),
-('USA','Cleveland'),('USA','Colorado'),('USA','Columbia'),('USA','Columbus'),
-('USA','Columbus'),('USA','Compton'),('USA','Concord'),('USA','Coral'),
-('USA','Corona'),('USA','Corpus'),('USA','Costa'),('USA','Dallas'),('USA','Daly'),
-('USA','Davenport'),('USA','Dayton'),('USA','Denver'),('USA','DesMoines'),
-('USA','Detroit'),('USA','Downey'),('USA','Durham'),('USA','East'),('USA','ElCajon'),
-('USA','ElMonte'),('USA','ElPaso'),('USA','Elgin'),('USA','Elizabeth'),
-('USA','Erie'),('USA','Escondido'),('USA','Eugene'),('USA','Evansville'),
-('USA','Fairfield'),('USA','Fall'),('USA','Fayetteville'),('USA','Flint'),
-('USA','Fontana'),('USA','FortCollins'),('USA','FortLauderdale'),('USA','FortWayne'),
-('USA','FortWorth'),('USA','Fremont'),('USA','Fresno'),('USA','Fullerton'),
-('USA','Gainesville'),('USA','GardenGrove'),('USA','Garland'),('USA','Gary'),
-('USA','Gilbert'),('USA','Glendale'),('USA','Glendale'),('USA','GrandPrairie'),
-('USA','GrandRapids'),('USA','Green Bay'),('USA','Greensboro'),('USA','Hampton'),
-('USA','Hartford'),('USA','Hayward'),('USA','Henderson'),('USA','Hialeah'),
-('USA','Inglewood'),('USA','Livonia');
-CREATE TABLE t3 (c1 VARCHAR(3), c2 VARCHAR(16), PRIMARY KEY (c1,c2)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('USA','Chinese'), ('USA','English');
-CREATE TABLE t2 (b1 INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1);
-SELECT alias1.a1 AS field1
-FROM t1 AS alias1, t1 AS alias2
-WHERE alias1.a2 IN ( SELECT a1 FROM t1, t2 )
-AND alias1.a1 IS NULL
-AND ( alias1.a1, alias2.a1 ) IN ( SELECT c1, c1 FROM t3 )
-GROUP BY field1;
-field1
-DROP TABLE t1,t3,t2;
-#
-# BUG#1002630: Valgrind warnings 'Invalid read' in subselect_engine::calc_const_tables with SELECT
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(7);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (4),(6);
-SELECT ( SELECT SUM(a) FROM t1 ) AS t1sum, b
-FROM t2
-WHERE (1,1) IN ( SELECT MAX(a), MIN(a) FROM t1 )
-GROUP BY b
-HAVING t1sum <> 1;
-t1sum b
-DROP TABLE t1, t2;
-#
-# MDEV-3911: Assertion `fixed == 0' failed in Item_field::fix_fields
-# on 2nd execution of PS with semijoin=on and IN subquery
-#
-CREATE TABLE t1 (a INT, b INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (0,4),(8,6);
-CREATE TABLE t2 (c INT, d INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (7,1),(0,7);
-PREPARE stmt FROM ' SELECT * FROM t1 WHERE ( a, b ) IN ( SELECT c, d FROM t2 ) ';
-execute stmt;
-a b
-execute stmt;
-a b
-deallocate prepare stmt;
-drop table t1,t2;
-#
-# MDEV-4335: Unexpected results when selecting on information_schema
-#
-CREATE TABLE t1 (db VARCHAR(64) DEFAULT NULL);
-INSERT INTO t1 VALUES ('mysql'),('information_schema');
-SELECT * FROM t1 WHERE db IN (SELECT `SCHEMA_NAME` FROM information_schema.SCHEMATA);
-db
-information_schema
-mysql
-DROP TABLE t1;
-#
-# MDEV-5581: Server crashes in in JOIN::prepare on 2nd execution of PS with materialization+semijoin
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (2),(3);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (8),(9);
-CREATE TABLE t3 (c INT, INDEX(c));
-INSERT INTO t2 VALUES (5),(6);
-PREPARE stmt FROM
-"SELECT * FROM t1 WHERE ( 9, 5 ) IN ( SELECT b, COUNT(*) FROM t2 WHERE 1 IN ( SELECT MIN(c) FROM t3 ) )";
-EXECUTE stmt;
-a
-EXECUTE stmt;
-a
-DROP TABLE t1,t2,t3;
-#
-# MySQL Bug#13340270: assertion table->sort.record_pointers == __null
-#
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_int_key int DEFAULT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-col_varchar_nokey varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_varchar_key (col_varchar_key, col_int_key)
-);
-INSERT INTO t1 VALUES
-(10,8,'x','x'),
-(11,7,'d','d'),
-(12,1,'r','r'),
-(13,7,'f','f'),
-(14,9,'y','y'),
-(15,NULL,'u','u'),
-(16,1,'m','m'),
-(17,9,NULL,NULL),
-(18,2,'o','o'),
-(19,9,'w','w'),
-(20,2,'m','m'),
-(21,4,'q','q');
-CREATE TABLE t2
-SELECT alias1.col_varchar_nokey AS field1
-FROM t1 AS alias1 JOIN t1 AS alias2
-ON alias2.col_int_key = alias1.pk OR
-alias2.col_int_key = alias1.col_int_key
-WHERE alias1.pk = 58 OR alias1.col_varchar_key = 'o'
-
-;
-EXPLAIN SELECT *
-FROM t2
-WHERE (field1) IN (SELECT alias1.col_varchar_nokey AS field1
-FROM t1 AS alias1 JOIN t1 AS alias2
-ON alias2.col_int_key = alias1.pk OR
-alias2.col_int_key = alias1.col_int_key
-WHERE alias1.pk = 58 OR alias1.col_varchar_key = 'o'
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY alias1 index_merge PRIMARY,col_int_key,col_varchar_key PRIMARY,col_varchar_key 4,4 NULL 2 Using sort_union(PRIMARY,col_varchar_key); Using where
-1 PRIMARY alias2 ALL col_int_key NULL NULL NULL 12 Range checked for each record (index map: 0x2); FirstMatch(t2)
-SELECT *
-FROM t2
-WHERE (field1) IN (SELECT alias1.col_varchar_nokey AS field1
-FROM t1 AS alias1 JOIN t1 AS alias2
-ON alias2.col_int_key = alias1.pk OR
-alias2.col_int_key = alias1.col_int_key
-WHERE alias1.pk = 58 OR alias1.col_varchar_key = 'o'
-);
-field1
-o
-o
-DROP TABLE t1, t2;
-#
-# MDEV-389: Wrong result (missing row) with semijoin, join_cache_level>4, LEFT JOIN...
-# (testcase only)
-#
-connect con1,localhost,root,,;
-connection con1;
-SET join_cache_level = 5;
-SET optimizer_switch = 'semijoin=on';
-CREATE TABLE t1 (a INT NOT NULL, b CHAR(1), KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4,'p'),(1,'q'),(8,'e');
-CREATE TABLE t2 (c INT, d CHAR(1), KEY(c), KEY(d)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (4,'f'),(2,'i'),(5,'h'),(3,'q'),(1,'g');
-SELECT a, COUNT(*) AS cnt
-FROM t1 LEFT JOIN t2 ON (d = b)
-WHERE a IN ( SELECT c FROM t2 WHERE b > 'k' )
-GROUP BY a ORDER BY a, cnt LIMIT 2;
-a cnt
-1 1
-4 1
-drop table t1, t2;
-connection default;
-disconnect con1;
-#
-# MDEV-4071: Valgrind warnings 'Invalid read' in subselect_engine::calc_const_tables with ...
-#
-CREATE TABLE t1 (b INT, c VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (7,'v'),(0,'s');
-CREATE TABLE t2 (a INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (0),(8);
-SELECT c, SUM( DISTINCT b ) AS sm FROM t1
-WHERE ( 5, 108 ) IN ( SELECT MIN(a), MAX(a) FROM t2 )
-GROUP BY b
-HAVING c <> ( SELECT MAX( c ) FROM t1 )
-ORDER BY sm;
-c sm
-DROP TABLE t1,t2;
-#
-# mdev-4173 ignored duplicate value when converting heap to temp table
-# could lead to extra rows in semijoin queries or missing row in union queries
-#
-CREATE TABLE t1 (i1 INT) engine=myisam;
-INSERT INTO t1 VALUES
-(4),(8),(0),(0),(0),(7),(7),(5),(3),(4),(9),(6),(1),(5),(6),(2),(4),(4);
-CREATE TABLE t2 (i2 INT, j2 INT) engine=myisam;
-INSERT INTO t2 VALUES
-(7,1),(0,7),(9,4),(3,7),(4,0),(2,2),(5,9),(3,4),
-(1,0),(3,9),(5,8),(1,8),(204,18),(224,84),(9,6);
-CREATE TABLE t3 (i3 INT, KEY(i3)) engine=myisam;
-INSERT INTO t3 VALUES
-(0),(8),(1),(8),(9),(24),(6),(1),(6),(2),(4),(2),(1);
-select @@max_heap_table_size into @tmp_max_heap_table_size;
-select @@join_buffer_size into @tmp_join_buffer_size;
-set max_heap_table_size=16*1024;
-COUNT(*)
-2834
-COUNT(*)
-2834
-COUNT(*)
-2834
-COUNT(*)
-2834
-COUNT(*)
-2834
-COUNT(*)
-2834
-COUNT(*)
-2834
-COUNT(*)
-2834
-DROP TABLE t1, t2, t3;
-set join_buffer_size = @tmp_join_buffer_size;
-set max_heap_table_size = @tmp_max_heap_table_size;
-#
-# MDEV-5161: Wrong result (missing rows) with semijoin, LEFT JOIN, ORDER BY, constant table
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY, c1 VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'v'),(2,'v'),(3,'c'),(4,NULL),(5,'x');
-CREATE TABLE t2 (c2 VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('x');
-CREATE TABLE t3 (c3 VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('x'),('d');
-SELECT * FROM t1, t2 WHERE pk IN ( SELECT pk FROM t1 LEFT JOIN t3 ON (c1 = c3 ) ) ORDER BY c2, c1;
-pk c1 c2
-1 v x
-2 v x
-3 c x
-4 NULL x
-5 x x
-# This should show that "t1 left join t3" is still in the semi-join nest:
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2 WHERE pk IN ( SELECT pk FROM t1 LEFT JOIN t3 ON (c1 = c3 ) ) ORDER BY c2, c1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1 100.00 Using temporary; Using filesort
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 5 100.00 Start temporary
-1 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.t1.pk 1 100.00
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 100.00 Using where; End temporary
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`c1` AS `c1`,'x' AS `c2` from `test`.`t1` semi join (`test`.`t1` left join `test`.`t3` on(`test`.`t1`.`c1` = `test`.`t3`.`c3`)) where `test`.`t1`.`pk` = `test`.`t1`.`pk` order by 'x',`test`.`t1`.`c1`
-DROP TABLE t1,t2,t3;
-#
-# MDEV-5059: Wrong result (missing row) wih semijoin, join_cache_level > 2, LEFT JOIN, ORDER BY
-#
-SET @tmp_mdev5059=@@join_cache_level;
-SET join_cache_level = 3;
-set @tmp_os_mdev5059= @@optimizer_switch;
-set optimizer_switch=default;
-CREATE TABLE t1 (pk1 INT PRIMARY KEY, i1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,4),(2,5);
-CREATE TABLE t2 (i2 INT, c2 CHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,'v'),(7,'s');
-CREATE TABLE t3 (pk3 INT PRIMARY KEY, i3 INT, c3 CHAR(1), INDEX(i3), INDEX(c3,i3)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (1,7,'g'),(2,4,'p'),(3,1,'q');
-CREATE TABLE t4 (i4 INT) ENGINE=MyISAM;
-INSERT INTO t4 VALUES (1);
-SELECT * FROM t1, t2 LEFT JOIN t3 ON (c3 = c2)
-WHERE ( i2, pk1 ) IN ( SELECT i3, 1 FROM t3, t4 ) ORDER BY i1, c2;
-pk1 i1 i2 c2 pk3 i3 c3
-1 4 7 s NULL NULL NULL
-1 4 1 v NULL NULL NULL
-SET join_cache_level=@tmp_mdev5059;
-set optimizer_switch=@tmp_os_mdev5059;
-DROP TABLE t1,t2,t3,t4;
-#
-# MDEV-7911: crash in Item_cond::eval_not_null_tables
-#
-create table t1(a int);
-insert into t1 values(1),(2),(3),(null);
-explain
-select 1 from t1 where _cp932 "1" in (select '1' from t1);
-ERROR HY000: Illegal mix of collations (cp932_japanese_ci,COERCIBLE) and (latin1_swedish_ci,COERCIBLE) for operation '='
-drop table t1;
-#
-# MDEV-7823: Server crashes in next_depth_first_tab on nested IN clauses with SQ inside
-#
-set @tmp_mdev7823=@@optimizer_switch;
-set optimizer_switch=default;
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (f2 INT, KEY(f2));
-INSERT INTO t2 VALUES (8),(0);
-CREATE TABLE t3 (f3 INT);
-INSERT INTO t3 VALUES (1),(2);
-CREATE TABLE t4 (f4 INT);
-INSERT INTO t4 VALUES (0),(5);
-explain
-SELECT * FROM t1, t2, t3 WHERE f2 IN ( f1 IN ( SELECT f4 FROM t4 ) );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ref f2 f2 5 const 0 Using where; Using index
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t4 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1, t2, t3 WHERE f2 IN ( f1 IN ( SELECT f4 FROM t4 ) );
-f1 f2 f3
-1 0 1
-1 0 2
-drop table t1,t2,t3,t4;
-set optimizer_switch= @tmp_mdev7823;
-#
-# MDEV-6859: scalar subqueries in a comparison produced unexpected result
-#
-set @tmp_mdev6859=@@optimizer_switch;
-set optimizer_switch=default;
-CREATE TABLE t1 (
-project_number varchar(50) NOT NULL,
-PRIMARY KEY (project_number)
-) ENGINE=MyISAM;
-INSERT INTO t1 (project_number) VALUES ('aaa'),('bbb');
-CREATE TABLE t2 (
-id int(10) unsigned NOT NULL AUTO_INCREMENT,
-project_number varchar(50) NOT NULL,
-history_date date NOT NULL,
-country varchar(50) NOT NULL,
-PRIMARY KEY (id)
-) ENGINE=MyISAM;
-INSERT INTO t2 (id, project_number, history_date, country) VALUES
-(1, 'aaa', '2014-08-09', 'france'),(2, 'aaa', '2014-09-09', 'singapore');
-CREATE TABLE t3 (
-region varchar(50) NOT NULL,
-country varchar(50) NOT NULL
-) ENGINE=MyISAM;
-INSERT INTO t3 (region, country) VALUES ('apac', 'singapore'),('eame', 'france');
-SELECT SQL_NO_CACHE a.project_number
-FROM t1 a
-WHERE ( SELECT z.country
-FROM t2 z
-WHERE z.project_number = a.project_number AND z.history_date <= '2014-09-01'
-ORDER BY z.id DESC LIMIT 1
-) IN (
-SELECT r.country
-FROM t3 r
-WHERE r.region = 'eame'
- );
-project_number
-aaa
-drop table t1, t2, t3;
-set optimizer_switch= @tmp_mdev6859;
-#
-# MDEV-12675: subquery subject to semi-join optimizations
-# in ON expression of INNER JOIN
-#
-set @tmp_mdev12675=@@optimizer_switch;
-set optimizer_switch=default;
-create table t1 (a int) engine=myisam;
-insert into t1 values (5),(3),(2),(7),(2),(5),(1);
-create table t2 (b int, index idx(b)) engine=myisam;
-insert into t2 values (2),(3),(2),(1),(3),(4);
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-analyze table t1,t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-test.t2 analyze status OK
-explain
-select a from t1, t2 where b between 1 and 2 and a in (select b from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 7 Using where
-1 PRIMARY t2 ref idx idx 5 test.t1.a 256 Using index; FirstMatch(t1)
-1 PRIMARY t2 range idx idx 5 NULL 2 Using where; Using index; Using join buffer (flat, BNL join)
-explain
-select a from t1 join t2 on b between 1 and 2 and a in (select b from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 7 Using where
-1 PRIMARY t2 ref idx idx 5 test.t1.a 256 Using index; FirstMatch(t1)
-1 PRIMARY t2 range idx idx 5 NULL 2 Using where; Using index; Using join buffer (flat, BNL join)
-drop table t1,t2;
-set optimizer_switch= @tmp_mdev12675;
-#
-# MDEV-12817: subquery NOT subject to semi-join optimizations
-# in ON expression of INNER JOIN
-#
-CREATE TABLE t1 (c1 int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (c2 int) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3),(4);
-CREATE TABLE t3 (c3 int) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (5),(6);
-CREATE TABLE t4 (c4 int) ENGINE=MyISAM;
-INSERT INTO t4 VALUES (7),(8);
-SELECT c1
-FROM t1
-LEFT JOIN
-( t2 INNER JOIN t3 ON ( 1 IN ( SELECT c4 FROM t4 ) ) )
-ON (c1 = c3);
-c1
-1
-2
-EXPLAIN EXTENDED SELECT c1
-FROM t1
-LEFT JOIN
-( t2 INNER JOIN t3 ON ( 1 IN ( SELECT c4 FROM t4 ) ) )
-ON (c1 = c3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 SUBQUERY t4 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`c1` AS `c1` from `test`.`t1` left join (`test`.`t2` join `test`.`t3`) on(`test`.`t3`.`c3` = `test`.`t1`.`c1` and <cache>(<in_optimizer>(1,<exists>(/* select#2 */ select `test`.`t4`.`c4` from `test`.`t4` where 1 = `test`.`t4`.`c4`)))) where 1
-# mdev-12820
-SELECT *
-FROM t1
-LEFT JOIN
-( ( SELECT * FROM t2 WHERE c2 IN ( SELECT c3 FROM t3 ) ) AS sq INNER JOIN t4 )
-ON (c1 = c2);
-c1 c2 c4
-1 NULL NULL
-2 NULL NULL
-EXPLAIN EXTENDED SELECT *
-FROM t1
-LEFT JOIN
-( ( SELECT * FROM t2 WHERE c2 IN ( SELECT c3 FROM t3 ) ) AS sq INNER JOIN t4 )
-ON (c1 = c2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 PRIMARY t4 ALL NULL NULL NULL NULL 2 100.00
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`c1` AS `c1`,`test`.`t2`.`c2` AS `c2`,`test`.`t4`.`c4` AS `c4` from `test`.`t1` left join (`test`.`t2` join `test`.`t4`) on(`test`.`t2`.`c2` = `test`.`t1`.`c1` and <in_optimizer>(`test`.`t1`.`c1`,<exists>(/* select#3 */ select `test`.`t3`.`c3` from `test`.`t3` where <cache>(`test`.`t2`.`c2`) = `test`.`t3`.`c3`))) where 1
-DROP TABLE t1,t2,t3,t4;
-set optimizer_switch=@subselect_sj_tmp;
diff --git a/mysql-test/r/subselect_sj2.result b/mysql-test/r/subselect_sj2.result
deleted file mode 100644
index 948be5766a2..00000000000
--- a/mysql-test/r/subselect_sj2.result
+++ /dev/null
@@ -1,1335 +0,0 @@
-set @subselect_sj2_tmp= @@optimizer_switch;
-set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-SET optimizer_switch=ifnull(@optimizer_switch_for_subselect_sj2_test,'outer_join_with_cache=off');
-SET optimizer_switch=ifnull(@optimizer_switch_for_subselect_sj2_test,'semijoin_with_cache=off');
-set join_cache_level=1;
-drop table if exists t0, t1, t2, t3, t4, t5;
-drop view if exists v1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (
-a int,
-b int
-);
-insert into t1 values (1,1),(1,1),(2,2);
-create table t2 (
-a int,
-b int,
-key(b)
-);
-insert into t2 select a, a/2 from t0;
-insert into t2 select a+10, a+10/2 from t0;
-select * from t1;
-a b
-1 1
-1 1
-2 2
-select * from t2;
-a b
-0 0
-1 1
-2 1
-3 2
-4 2
-5 3
-6 3
-7 4
-8 4
-9 5
-10 5
-11 6
-12 7
-13 8
-14 9
-15 10
-16 11
-17 12
-18 13
-19 14
-explain select * from t2 where b in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL b NULL NULL NULL 20
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 3
-select * from t2 where b in (select a from t1);
-a b
-1 1
-2 1
-3 2
-4 2
-create table t3 (
-a int,
-b int,
-key(b),
-pk1 char(200), pk2 char(200), pk3 char(200),
-primary key(pk1, pk2, pk3)
-) engine=innodb;
-insert into t3 select a,a, a,a,a from t0;
-insert into t3 select a,a, a+100,a+100,a+100 from t0;
-explain select * from t3 where b in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL b NULL NULL NULL 20
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 3
-select * from t3 where b in (select a from t1);
-a b pk1 pk2 pk3
-1 1 1 1 1
-1 1 101 101 101
-2 2 102 102 102
-2 2 2 2 2
-set @save_max_heap_table_size= @@max_heap_table_size;
-set max_heap_table_size=16384;
-set @save_join_buffer_size = @@join_buffer_size;
-set join_buffer_size= 8192;
-drop table t3;
-create table t3 (
-a int,
-b int,
-key(b),
-pk1 char(200), pk2 char(200),
-primary key(pk1, pk2)
-) engine=innodb;
-insert into t3 select
-A.a + 10*B.a, A.a + 10*B.a, A.a + 10*B.a, A.a + 10*B.a
-from t0 A, t0 B where B.a <5;
-explain select * from t3 where b in (select a from t0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL b NULL NULL NULL #
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func #
-2 MATERIALIZED t0 ALL NULL NULL NULL NULL #
-select * from t3 where b in (select A.a+B.a from t0 A, t0 B where B.a<5);
-a b pk1 pk2
-0 0 0 0
-1 1 1 1
-10 10 10 10
-11 11 11 11
-12 12 12 12
-13 13 13 13
-2 2 2 2
-3 3 3 3
-4 4 4 4
-5 5 5 5
-6 6 6 6
-7 7 7 7
-8 8 8 8
-9 9 9 9
-set join_buffer_size= @save_join_buffer_size;
-set max_heap_table_size= @save_max_heap_table_size;
-explain select * from t1 where a in (select b from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY t2 ref b b 5 test.t1.a 2 Using index; FirstMatch(t1)
-select * from t1;
-a b
-1 1
-1 1
-2 2
-select * from t1 where a in (select b from t2);
-a b
-1 1
-1 1
-2 2
-drop table t1, t2, t3;
-set @save_join_buffer_size = @@join_buffer_size;
-set join_buffer_size= 8192;
-create table t1 (a int, filler1 binary(200), filler2 binary(200));
-insert into t1 select a, 'filler123456', 'filler123456' from t0;
-insert into t1 select a+10, 'filler123456', 'filler123456' from t0;
-create table t2 as select * from t1;
-insert into t1 select a+20, 'filler123456', 'filler123456' from t0;
-insert into t1 values (2, 'duplicate ok', 'duplicate ok');
-insert into t1 values (18, 'duplicate ok', 'duplicate ok');
-insert into t2 values (3, 'duplicate ok', 'duplicate ok');
-insert into t2 values (19, 'duplicate ok', 'duplicate ok');
-explain select
-a, mid(filler1, 1,10), length(filler1)=length(filler2) as Z
-from t1 ot where a in (select a from t2 it);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 22
-1 PRIMARY ot ALL NULL NULL NULL NULL 32 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED it ALL NULL NULL NULL NULL 22
-select
-a, mid(filler1, 1,10), length(filler1)=length(filler2) as Z
-from t1 ot where a in (select a from t2 it);
-a mid(filler1, 1,10) Z
-0 filler1234 1
-1 filler1234 1
-2 filler1234 1
-3 filler1234 1
-4 filler1234 1
-5 filler1234 1
-6 filler1234 1
-7 filler1234 1
-8 filler1234 1
-9 filler1234 1
-10 filler1234 1
-11 filler1234 1
-12 filler1234 1
-13 filler1234 1
-14 filler1234 1
-15 filler1234 1
-16 filler1234 1
-17 filler1234 1
-18 filler1234 1
-19 filler1234 1
-2 duplicate 1
-18 duplicate 1
-explain select
-a, mid(filler1, 1,10), length(filler1)=length(filler2)
-from t2 ot where a in (select a from t1 it);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot ALL NULL NULL NULL NULL 22
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED it ALL NULL NULL NULL NULL 32
-select
-a, mid(filler1, 1,10), length(filler1)=length(filler2)
-from t2 ot where a in (select a from t1 it);
-a mid(filler1, 1,10) length(filler1)=length(filler2)
-0 filler1234 1
-1 filler1234 1
-2 filler1234 1
-3 filler1234 1
-4 filler1234 1
-5 filler1234 1
-6 filler1234 1
-7 filler1234 1
-8 filler1234 1
-9 filler1234 1
-10 filler1234 1
-11 filler1234 1
-12 filler1234 1
-13 filler1234 1
-14 filler1234 1
-15 filler1234 1
-16 filler1234 1
-17 filler1234 1
-18 filler1234 1
-19 filler1234 1
-3 duplicate 1
-19 duplicate 1
-insert into t1 select a+20, 'filler123456', 'filler123456' from t0;
-insert into t1 select a+20, 'filler123456', 'filler123456' from t0;
-explain select
-a, mid(filler1, 1,10), length(filler1)=length(filler2) as Z
-from t1 ot where a in (select a from t2 it);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 22
-1 PRIMARY ot ALL NULL NULL NULL NULL 52 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED it ALL NULL NULL NULL NULL 22
-select
-a, mid(filler1, 1,10), length(filler1)=length(filler2) as Z
-from t1 ot where a in (select a from t2 it);
-a mid(filler1, 1,10) Z
-0 filler1234 1
-1 filler1234 1
-2 filler1234 1
-3 filler1234 1
-4 filler1234 1
-5 filler1234 1
-6 filler1234 1
-7 filler1234 1
-8 filler1234 1
-9 filler1234 1
-10 filler1234 1
-11 filler1234 1
-12 filler1234 1
-13 filler1234 1
-14 filler1234 1
-15 filler1234 1
-16 filler1234 1
-17 filler1234 1
-18 filler1234 1
-19 filler1234 1
-2 duplicate 1
-18 duplicate 1
-explain select
-a, mid(filler1, 1,10), length(filler1)=length(filler2)
-from t2 ot where a in (select a from t1 it);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot ALL NULL NULL NULL NULL 22
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED it ALL NULL NULL NULL NULL 52
-select
-a, mid(filler1, 1,10), length(filler1)=length(filler2)
-from t2 ot where a in (select a from t1 it);
-a mid(filler1, 1,10) length(filler1)=length(filler2)
-0 filler1234 1
-1 filler1234 1
-2 filler1234 1
-3 filler1234 1
-4 filler1234 1
-5 filler1234 1
-6 filler1234 1
-7 filler1234 1
-8 filler1234 1
-9 filler1234 1
-10 filler1234 1
-11 filler1234 1
-12 filler1234 1
-13 filler1234 1
-14 filler1234 1
-15 filler1234 1
-16 filler1234 1
-17 filler1234 1
-18 filler1234 1
-19 filler1234 1
-3 duplicate 1
-19 duplicate 1
-drop table t1, t2;
-create table t1 (a int, b int, key(a));
-create table t2 (a int, b int, key(a));
-create table t3 (a int, b int, key(a));
-insert into t1 select a,a from t0;
-insert into t2 select a,a from t0;
-insert into t3 select a,a from t0;
-t2 and t3 must be use 'ref', not 'ALL':
-explain select *
-from t0 where a in
-(select t2.a+t3.a from t1 left join (t2 join t3) on t2.a=t1.a and t3.a=t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 10
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func 1 Using where
-2 MATERIALIZED t1 index a a 5 NULL 10 Using where; Using index
-2 MATERIALIZED t2 ref a a 5 test.t1.a 1 Using index
-2 MATERIALIZED t3 ref a a 5 test.t1.a 1 Using index
-drop table t0, t1,t2,t3;
-CREATE TABLE t1 (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-);
-CREATE TABLE t2 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name),
-INDEX (Population)
-);
-CREATE TABLE t3 (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-);
-set @bug35674_save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='materialization=off';
-EXPLAIN
-SELECT Name FROM t2
-WHERE t2.Code IN (SELECT Country FROM t1 WHERE Population > 5000000)
-AND
-t2.Code IN (SELECT Country FROM t3
-WHERE Language='English' AND Percentage > 10 AND
-t2.Population > 100000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range Population,Country Population 4 NULL 1 Using index condition; Rowid-ordered scan; Start temporary
-1 PRIMARY t2 eq_ref PRIMARY,Population PRIMARY 3 test.t1.Country 1 Using where; End temporary
-1 PRIMARY t3 eq_ref PRIMARY,Percentage PRIMARY 33 test.t1.Country,const 1 Using index condition; Using where
-set optimizer_switch=@bug35674_save_optimizer_switch;
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (
-Code char(3) NOT NULL DEFAULT '',
-Name char(52) NOT NULL DEFAULT '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL DEFAULT 'Asia',
-Region char(26) NOT NULL DEFAULT '',
-SurfaceArea float(10,2) NOT NULL DEFAULT '0.00',
-IndepYear smallint(6) DEFAULT NULL,
-Population int(11) NOT NULL DEFAULT '0',
-LifeExpectancy float(3,1) DEFAULT NULL,
-GNP float(10,2) DEFAULT NULL,
-GNPOld float(10,2) DEFAULT NULL,
-LocalName char(45) NOT NULL DEFAULT '',
-GovernmentForm char(45) NOT NULL DEFAULT '',
-HeadOfState char(60) DEFAULT NULL,
-Capital int(11) DEFAULT NULL,
-Code2 char(2) NOT NULL DEFAULT '',
-PRIMARY KEY (Code)
-);
-CREATE TABLE t2 (
-ID int(11) NOT NULL AUTO_INCREMENT,
-Name char(35) NOT NULL DEFAULT '',
-CountryCode char(3) NOT NULL DEFAULT '',
-District char(20) NOT NULL DEFAULT '',
-Population int(11) NOT NULL DEFAULT '0',
-PRIMARY KEY (ID),
-KEY CountryCode (CountryCode)
-);
-Fill the table with test data
-This must not use LooseScan:
-EXPLAIN SELECT Name FROM t1
-WHERE t1.Code IN (
-SELECT t2.CountryCode FROM t2 WHERE Population > 5000000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 31
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 3 func 1
-2 MATERIALIZED t2 ALL CountryCode NULL NULL NULL 545 Using where
-SELECT Name FROM t1
-WHERE t1.Code IN (
-SELECT t2.CountryCode FROM t2 WHERE Population > 5000000);
-Name
-Austria
-Canada
-China
-Czech Republic
-drop table t1, t2;
-drop procedure if exists p1;
-drop procedure if exists p2;
-drop procedure if exists p3;
-drop procedure if exists p4;
-CREATE TABLE t1(a INT);
-CREATE TABLE t2(c INT);
-CREATE PROCEDURE p1(v1 int)
-BEGIN
-SELECT 1 FROM t1 WHERE a = v1 AND a IN (SELECT c FROM t2);
-END
-//
-CREATE PROCEDURE p2(v1 int)
-BEGIN
-SELECT 1 FROM t1 WHERE a IN (SELECT c FROM t2);
-END
-//
-CREATE PROCEDURE p3(v1 int)
-BEGIN
-SELECT 1
-FROM
-t1 t01,t1 t02,t1 t03,t1 t04,t1 t05,t1 t06,t1 t07,t1 t08,
-t1 t09,t1 t10,t1 t11,t1 t12,t1 t13,t1 t14,t1 t15,t1 t16,
-t1 t17,t1 t18,t1 t19,t1 t20,t1 t21,t1 t22,t1 t23,t1 t24,
-t1 t25,t1 t26,t1 t27,t1 t28,t1 t29,t1 t30,t1 t31,t1 t32,
-t1 t33,t1 t34,t1 t35,t1 t36,t1 t37,t1 t38,t1 t39,t1 t40,
-t1 t41,t1 t42,t1 t43,t1 t44,t1 t45,t1 t46,t1 t47,t1 t48,
-t1 t49,t1 t50,t1 t51,t1 t52,t1 t53,t1 t54,t1 t55,t1 t56,
-t1 t57,t1 t58,t1 t59,t1 t60
-WHERE t01.a IN (SELECT c FROM t2);
-END
-//
-CREATE PROCEDURE p4(v1 int)
-BEGIN
-SELECT 1
-FROM
-t1 t01,t1 t02,t1 t03,t1 t04,t1 t05,t1 t06,t1 t07,t1 t08,
-t1 t09,t1 t10,t1 t11,t1 t12,t1 t13,t1 t14,t1 t15,t1 t16,
-t1 t17,t1 t18,t1 t19,t1 t20,t1 t21,t1 t22,t1 t23,t1 t24,
-t1 t25,t1 t26,t1 t27,t1 t28,t1 t29,t1 t30,t1 t31,t1 t32,
-t1 t33,t1 t34,t1 t35,t1 t36,t1 t37,t1 t38,t1 t39,t1 t40,
-t1 t41,t1 t42,t1 t43,t1 t44,t1 t45,t1 t46,t1 t47,t1 t48,
-t1 t49,t1 t50,t1 t51,t1 t52,t1 t53,t1 t54,t1 t55,t1 t56,
-t1 t57,t1 t58,t1 t59,t1 t60
-WHERE t01.a = v1 AND t01.a IN (SELECT c FROM t2);
-END
-//
-CALL p1(1);
-1
-CALL p2(1);
-1
-CALL p3(1);
-1
-CALL p4(1);
-1
-DROP TABLE t1, t2;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP PROCEDURE p3;
-DROP PROCEDURE p4;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4);
-create table t1 (a int, b int, key(a));
-insert into t1 select a,a from t0;
-insert into t1 select a+5,a from t0;
-create table t2 (a int, b int, primary key(a));
-insert into t2 select * from t1;
-Table t2, unlike table t1, should be displayed as pulled out
-explain extended select * from t0
-where t0.a in ( select t1.a from t1,t2 where t2.a=t0.a and
-t1.b=t2.b);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 5 100.00 Using where
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.t0.a 1 100.00
-1 PRIMARY t1 ref a a 5 test.t0.a 1 100.00 Using where; FirstMatch(t2)
-Warnings:
-Note 1276 Field or reference 'test.t0.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`t0`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) join `test`.`t0` where `test`.`t2`.`a` = `test`.`t0`.`a` and `test`.`t1`.`a` = `test`.`t0`.`a` and `test`.`t1`.`b` = `test`.`t2`.`b`
-update t1 set a=3, b=11 where a=4;
-update t2 set b=11 where a=3;
-select * from t0 where t0.a in
-(select t1.a from t1, t2 where t2.a=t0.a and t1.b=t2.b);
-a
-0
-1
-2
-3
-drop table t0, t1, t2;
-CREATE TABLE t1 (
-id int(11) NOT NULL,
-PRIMARY KEY (id));
-CREATE TABLE t2 (
-id int(11) NOT NULL,
-fid int(11) NOT NULL,
-PRIMARY KEY (id));
-insert into t1 values(1);
-insert into t2 values(1,7503),(2,1);
-explain select count(*)
-from t1
-where fid IN (select fid from t2 where (id between 7502 and 8420) order by fid );
-ERROR 42S22: Unknown column 'fid' in 'IN/ALL/ANY subquery'
-drop table t1, t2;
-create table t1 (a int, b int, key (a), key (b));
-insert into t1 values (2,4),(2,4),(2,4);
-select t1.a from t1
-where
-t1.a in (select 1 from t1 where t1.a in (select 1 from t1) group by t1.a);
-a
-drop table t1;
-create table t1(a int,b int,key(a),key(b));
-insert into t1 values (1,1),(2,2),(3,3);
-select 1 from t1
-where t1.a not in (select 1 from t1
-where t1.a in (select 1 from t1)
-group by t1.b);
-1
-1
-1
-drop table t1;
-CREATE TABLE t1
-(EMPNUM CHAR(3) NOT NULL,
-EMPNAME CHAR(20),
-GRADE DECIMAL(4),
-CITY CHAR(15));
-CREATE TABLE t2
-(PNUM CHAR(3) NOT NULL,
-PNAME CHAR(20),
-PTYPE CHAR(6),
-BUDGET DECIMAL(9),
-CITY CHAR(15));
-CREATE TABLE t3
-(EMPNUM CHAR(3) NOT NULL,
-PNUM CHAR(3) NOT NULL,
-HOURS DECIMAL(5));
-INSERT INTO t1 VALUES ('E1','Alice',12,'Deale');
-INSERT INTO t1 VALUES ('E2','Betty',10,'Vienna');
-INSERT INTO t1 VALUES ('E3','Carmen',13,'Vienna');
-INSERT INTO t1 VALUES ('E4','Don',12,'Deale');
-INSERT INTO t1 VALUES ('E5','Ed',13,'Akron');
-INSERT INTO t2 VALUES ('P1','MXSS','Design',10000,'Deale');
-INSERT INTO t2 VALUES ('P2','CALM','Code',30000,'Vienna');
-INSERT INTO t2 VALUES ('P3','SDP','Test',30000,'Tampa');
-INSERT INTO t2 VALUES ('P4','SDP','Design',20000,'Deale');
-INSERT INTO t2 VALUES ('P5','IRM','Test',10000,'Vienna');
-INSERT INTO t2 VALUES ('P6','PAYR','Design',50000,'Deale');
-INSERT INTO t3 VALUES ('E1','P1',40);
-INSERT INTO t3 VALUES ('E1','P2',20);
-INSERT INTO t3 VALUES ('E1','P3',80);
-INSERT INTO t3 VALUES ('E1','P4',20);
-INSERT INTO t3 VALUES ('E1','P5',12);
-INSERT INTO t3 VALUES ('E1','P6',12);
-INSERT INTO t3 VALUES ('E2','P1',40);
-INSERT INTO t3 VALUES ('E2','P2',80);
-INSERT INTO t3 VALUES ('E3','P2',20);
-INSERT INTO t3 VALUES ('E4','P2',20);
-INSERT INTO t3 VALUES ('E4','P4',40);
-INSERT INTO t3 VALUES ('E4','P5',80);
-SELECT * FROM t1;
-EMPNUM EMPNAME GRADE CITY
-E1 Alice 12 Deale
-E2 Betty 10 Vienna
-E3 Carmen 13 Vienna
-E4 Don 12 Deale
-E5 Ed 13 Akron
-CREATE UNIQUE INDEX t1_IDX ON t1(EMPNUM);
-SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
-(SELECT EMPNUM
-FROM t3
-WHERE PNUM IN
-(SELECT PNUM
-FROM t2
-WHERE PTYPE = 'Design'));
-EMPNAME
-Alice
-Betty
-Don
-DROP INDEX t1_IDX ON t1;
-CREATE INDEX t1_IDX ON t1(EMPNUM);
-SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
-(SELECT EMPNUM
-FROM t3
-WHERE PNUM IN
-(SELECT PNUM
-FROM t2
-WHERE PTYPE = 'Design'));
-EMPNAME
-Alice
-Betty
-Don
-DROP INDEX t1_IDX ON t1;
-SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
-(SELECT EMPNUM
-FROM t3
-WHERE PNUM IN
-(SELECT PNUM
-FROM t2
-WHERE PTYPE = 'Design'));
-EMPNAME
-Alice
-Betty
-Don
-DROP TABLE t1, t2, t3;
-CREATE TABLE t1 (f1 INT NOT NULL);
-CREATE VIEW v1 (a) AS SELECT f1 IN (SELECT f1 FROM t1) FROM t1;
-SELECT * FROM v1;
-a
-drop view v1;
-drop table t1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int, b int);
-insert into t1 values (0,0),(1,1),(2,2);
-create table t2 as select * from t1;
-create table t3 (pk int, a int, primary key(pk));
-insert into t3 select a,a from t0;
-explain
-select * from t1 left join t2 on (t2.a= t1.a and t2.a in (select pk from t3));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 Using where
-2 MATERIALIZED t3 index PRIMARY PRIMARY 4 NULL 10 Using index
-drop table t0, t1, t2, t3;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a char(200), b char(200), c char(200), primary key (a,b,c)) engine=innodb;
-insert into t2 select concat(a, repeat('X',198)),repeat('B',200),repeat('B',200) from t1;
-insert into t2 select concat(a, repeat('Y',198)),repeat('B',200),repeat('B',200) from t1;
-alter table t2 add filler1 int;
-insert into t1 select A.a + 10*(B.a + 10*C.a) from t1 A, t1 B, t1 C;
-set @save_join_buffer_size=@@join_buffer_size;
-set join_buffer_size=1;
-select * from t2 where filler1 in ( select a from t1);
-a b c filler1
-set join_buffer_size=default;
-drop table t1, t2;
-create table t1 (a int not null);
-drop procedure if exists p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE EXIT HANDLER FOR SQLEXCEPTION select a from t1;
-prepare s1 from '
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in ( select a from t1)
- )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))';
-execute s1;
-END;
-|
-call p1();
-a
-drop procedure p1;
-drop table t1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int) as select A.a + 10 *(B.a + 10*C.a) as a from t0 A, t0 B, t0 C;
-create table t2 (id int, a int, primary key(id), key(a)) as select a as id, a as a from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `id` int(11) NOT NULL,
- `a` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `a` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-set @a=0;
-create table t3 as select * from t2 limit 0;
-insert into t3 select @a:=@a+1, t2.a from t2, t0;
-insert into t3 select @a:=@a+1, t2.a from t2, t0;
-insert into t3 select @a:=@a+1, t2.a from t2, t0;
-alter table t3 add primary key(id), add key(a);
-The following must use loose index scan over t3, key a:
-explain select count(a) from t2 where a in ( SELECT a FROM t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index a a 5 NULL 1000 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t3 index a a 5 NULL 30000 Using index
-select count(a) from t2 where a in ( SELECT a FROM t3);
-count(a)
-1000
-drop table t0,t1,t2,t3;
-
-BUG#42740: crash in optimize_semijoin_nests
-
-create table t1 (c6 timestamp,key (c6)) engine=innodb;
-create table t2 (c2 double) engine=innodb;
-explain select 1 from t2 where c2 = any (select log10(null) from t1 where c6 <null) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-drop table t1, t2;
-#
-# BUG#42742: crash in setup_sj_materialization, Copy_field::set
-#
-create table t3 ( c1 year) engine=innodb;
-insert into t3 values (2135),(2142);
-create table t2 (c1 tinytext,c2 text,c6 timestamp) engine=innodb;
-# The following must not crash, EXPLAIN should show one SJ strategy, not a mix:
-explain select 1 from t2 where
-c2 in (select 1 from t3, t2) and
-c1 in (select convert(c6,char(1)) from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where; FirstMatch(t2)
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 FirstMatch(t2)
-drop table t2, t3;
-#
-# BUG#761598: InnoDB: Error: row_search_for_mysql() is called without ha_innobase::external_lock() in maria-5.3
-#
-CREATE TABLE t1 ( f1 int NOT NULL , f10 int) ;
-INSERT IGNORE INTO t1 VALUES (25,0),(29,0);
-CREATE TABLE t2 ( f10 int) ENGINE=InnoDB;
-CREATE TABLE t3 ( f11 int) ;
-INSERT IGNORE INTO t3 VALUES (0);
-SELECT alias1.f10 AS field2
-FROM t2 AS alias1
-JOIN (
-t3 AS alias2
-JOIN t1 AS alias3
-ON alias3.f10
-) ON alias3.f1
-WHERE alias2.f11 IN (
-SELECT SQ4_alias1.f10
-FROM t1 AS SQ4_alias1
-LEFT JOIN t2 AS SQ4_alias3 ON SQ4_alias3.f10
-)
-GROUP BY field2;
-field2
-drop table t1, t2, t3;
-#
-# BUG#849763: Wrong result with second execution of prepared statement with semijoin + view
-#
-CREATE TABLE t1 ( c varchar(1)) engine=innodb;
-INSERT INTO t1 VALUES ('r');
-CREATE TABLE t2 ( a integer, b varchar(1), c varchar(1)) engine=innodb;
-INSERT INTO t2 VALUES (1,'r','r');
-CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1;
-PREPARE st1 FROM 'SELECT * FROM t2 WHERE a = SOME (SELECT a FROM v1 WHERE v1.c = t2.c)';
-EXECUTE st1;
-a b c
-1 r r
-EXECUTE st1;
-a b c
-1 r r
-DROP VIEW v1;
-DROP TABLE t1, t2;
-#
-# BUG#858732: Wrong result with semijoin + loosescan + comma join
-#
-CREATE TABLE t1 (f13 int(11) NOT NULL , PRIMARY KEY (f13)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (16),(24);
-CREATE TABLE t2 (f14 int(11) NOT NULL, f12 varchar(1) NOT NULL, KEY (f12,f14)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (6,'y');
-CREATE TABLE t3 (f12 varchar(1) NOT NULL) ENGINE=InnoDB;
-INSERT INTO t3 VALUES ('r'),('s'),('t'),('v'),('w'),('x'),('y');
-# The following must use LooseScan but not join buffering
-explain
-SELECT * FROM t3
-WHERE f12 IN (SELECT alias2.f12 FROM t1 AS alias1, t2 AS alias2, t1 WHERE alias1.f13 = 24);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 const PRIMARY PRIMARY 4 const 1 Using index
-1 PRIMARY alias2 index f12 f12 7 NULL 1 Using index; LooseScan
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 2 Using index; FirstMatch(alias2)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 7 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM t3
-WHERE f12 IN (SELECT alias2.f12 FROM t1 AS alias1, t2 AS alias2, t1 WHERE alias1.f13 = 24);
-f12
-y
-DROP TABLE t1,t2,t3;
-#
-# BUG#869012: Wrong result with semijoin + materialization + AND in WHERE
-#
-CREATE TABLE t1 (f3 varchar(1) , f4 varchar(1) ) engine=InnoDB;
-INSERT IGNORE INTO t1 VALUES ('x','x'),('x','x');
-CREATE TABLE t2 ( f4 varchar(1) ) ;
-INSERT IGNORE INTO t2 VALUES ('g');
-CREATE TABLE t3 (f4 varchar(1) ) Engine=InnoDB;
-INSERT IGNORE INTO t3 VALUES ('x');
-set @tmp_869012=@@optimizer_switch;
-SET optimizer_switch='semijoin=on,materialization=on';
-SELECT *
-FROM t1 , t2
-WHERE ( t1.f4 ) IN ( SELECT f4 FROM t3 )
-AND t2.f4 != t1.f3 ;
-f3 f4 f4
-x x g
-x x g
-set optimizer_switch= @tmp_869012;
-DROP TABLE t1,t2,t3;
-#
-# BUG#869001: Wrong result with semijoin + materialization + firstmatch + multipart key
-#
-set @tmp869001_jcl= @@join_cache_level;
-set @tmp869001_os= @@optimizer_switch;
-SET join_cache_level=0;
-SET optimizer_switch='materialization=on,semijoin=on,firstmatch=on,loosescan=off';
-CREATE TABLE t1 ( f2 int, f3 varchar(1), KEY (f3,f2)) engine=innodb;
-INSERT INTO t1 VALUES (8,'x'),(NULL,'x'),(8,'c');
-CREATE TABLE t2 ( f4 varchar(1)) engine=innodb;
-INSERT INTO t2 VALUES ('x');
-CREATE TABLE t3 ( f1 int) engine=innodb;
-INSERT INTO t3 VALUES (8),(6),(2),(9),(6);
-CREATE TABLE t4 ( f3 varchar(1)) engine=innodb;
-INSERT INTO t4 VALUES ('p'),('j'),('c');
-SELECT *
-FROM t1 JOIN t2 ON (t2.f4 = t1.f3 )
-WHERE ( 8 ) IN (
-SELECT t3.f1 FROM t3 , t4
-);
-f2 f3 f4
-NULL x x
-8 x x
-DROP TABLE t1, t2, t3, t4;
-set join_cache_level= @tmp869001_jcl;
-set optimizer_switch= @tmp869001_os;
-#
-# Bug #881318: join cache + duplicate elimination + left join
-# with empty materialized derived inner table
-#
-CREATE TABLE t1 (b varchar(1)) ENGINE=InnoDB;
-CREATE TABLE t2 (a varchar(1)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES ('a');
-CREATE TABLE t3 (a varchar(1), b varchar(1)) ENGINE=InnoDB;
-INSERT INTO t3 VALUES ('c','c');
-CREATE TABLE t4 (b varchar(1)) ENGINE=InnoDB;
-INSERT INTO t4 VALUES ('c'), ('b');
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-EXPLAIN
-SELECT * FROM t3 LEFT JOIN (v1,t2) ON t3.a = t2.a
-WHERE t3.b IN (SELECT b FROM t4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 2
-2 MATERIALIZED t4 ALL NULL NULL NULL NULL 2
-3 DERIVED t1 ALL NULL NULL NULL NULL 1
-SELECT * FROM t3 LEFT JOIN (v1,t2) ON t3.a = t2.a
-WHERE t3.b IN (SELECT b FROM t4);
-a b b a
-c c NULL NULL
-DROP VIEW v1;
-DROP TABLE t1,t2,t3,t4;
-#
-# BUG#912538: Wrong result (missing rows) with semijoin=on, firstmatch=on, ...
-#
-CREATE TABLE t1 ( a INT NOT NULL, UNIQUE KEY(a) );
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-CREATE TABLE t2 ( b INT, c INT ) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (1,1);
-SELECT * FROM t1, t2 WHERE c IN (SELECT c FROM t1, t2 WHERE a = b);
-a b c
-1 1 1
-2 1 1
-3 1 1
-4 1 1
-DROP TABLE t1,t2;
-#
-# BUG#962667: Assertion `0' failed in QUICK_INDEX_SORT_SELECT::need_sorted_output()
-# with index_merge+index_merge_sort_union+loosescan+semijoin
-#
-CREATE TABLE t1 (
-a INT, b VARCHAR(1), c INT,
-KEY(a), KEY(b)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-(1,'v',9),(2,'v',8),(3,'c',7),(4,'m',6),(5,'x',5),
-(6,'i',4),(7,'e',3),(8,'p',2),(9,'s',1),(10,'j',9),
-(11,'z',8),(12,'c',7),(13,'a',6),(14,'q',5),(15,'y',4),
-(16,'n',3),(17,'r',2),(18,'v',1),(19,'p',0);
-CREATE TABLE t2 (
-pk INT, d VARCHAR(1), e INT,
-PRIMARY KEY(pk), KEY(d,e)
-) ENGINE=InnoDB;
-INSERT INTO t2 VALUES
-(1,'x',1),(2,'d',2),(3,'r',3),(4,'f',4),(5,'y',5),
-(6,'u',6),(7,'m',7),(8,'k',8),(9,'o',9),(10,'w',1),
-(11,'m',2),(12,'q',3),(13,'m',4),(14,'d',5),
-(15,'g',6),(16,'x',7),(17,'f',8);
-explain
-SELECT * FROM t1 WHERE b IN (
-SELECT d FROM t2, t1
-WHERE a = d AND ( pk < 2 OR d = 'z' )
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL b NULL NULL NULL 19
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t2 index PRIMARY,d d 9 NULL 17 Using where; Using index
-2 MATERIALIZED t1 ref a a 5 test.t2.d 1 Using where; Using index
-SELECT * FROM t1 WHERE b IN (
-SELECT d FROM t2, t1
-WHERE a = d AND ( pk < 2 OR d = 'z' )
-);
-a b c
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'x'
-DROP TABLE t1, t2;
-#
-# BUG#951937: Wrong result (missing rows) with semijoin+materialization, IN subquery, InnoDB, TEMPTABLE view
-#
-CREATE TABLE t1 (
-a VARCHAR(1),
-b VARCHAR(1) NOT NULL,
-KEY(a)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-('j','j'),('v','v'),('c','c'),('m','m'),('d','d'),
-('y','y'),('t','t'),('d','d'),('s','s'),('r','r'),
-('m','m'),('b','b'),('x','x'),('g','g'),('p','p'),
-('q','q'),('w','w'),('d','d'),('e','e');
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-# This query returned 6 rows instead of 19
-SELECT * FROM v1
-WHERE ( a, a ) IN (
-SELECT alias2.b, alias2.a
-FROM t1 AS alias1, t1 AS alias2
-WHERE alias2.b = alias1.a
-AND ( alias1.b >= alias1.a OR alias2.b = 'z' )
-);
-a b
-b b
-c c
-d d
-d d
-d d
-e e
-g g
-j j
-m m
-m m
-p p
-q q
-r r
-s s
-t t
-v v
-w w
-x x
-y y
-# Another testcase, without the VIEW:
-CREATE TABLE t2 (a VARCHAR(1), b VARCHAR(1) NOT NULL, KEY(a)) ENGINE=InnoDB;
-INSERT INTO t2 SELECT * FROM t1;
-INSERT INTO t2 SELECT * FROM t1;
-EXPLAIN
-SELECT * FROM t2
-WHERE (a, a) IN (SELECT alias2.b, alias2.a FROM t1 AS alias1, t1 AS alias2
-WHERE
-alias2.b = alias1.a AND
-(alias1.b >= alias1.a OR alias2.b = 'z'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL a NULL NULL NULL 38
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-2 MATERIALIZED alias1 ALL a NULL NULL NULL 19 Using where
-2 MATERIALIZED alias2 ref a a 4 test.alias1.a 1 Using where
-SELECT * FROM t2
-WHERE (a, a) IN (SELECT alias2.b, alias2.a FROM t1 AS alias1, t1 AS alias2
-WHERE
-alias2.b = alias1.a AND
-(alias1.b >= alias1.a OR alias2.b = 'z'));
-a b
-b b
-b b
-c c
-c c
-d d
-d d
-d d
-d d
-d d
-d d
-e e
-e e
-g g
-g g
-j j
-j j
-m m
-m m
-m m
-m m
-p p
-p p
-q q
-q q
-r r
-r r
-s s
-s s
-t t
-t t
-v v
-v v
-w w
-w w
-x x
-x x
-y y
-y y
-DROP VIEW v1;
-DROP TABLE t1, t2;
-#
-# BUG#965872: Server crashes in embedding_sjm on a simple 1-table select with AND and OR
-# (this is a regression caused by the fix for BUG#951937)
-CREATE TABLE t1 ( a INT, b INT, c INT, d INT );
-INSERT INTO t1 VALUES (4,2,8,9),(4,2,7,8);
-SELECT * FROM t1
-WHERE a = d AND ( b = 50 AND b = d OR a = c );
-a b c d
-DROP TABLE t1;
-#
-# BUG#951283: Wrong result (missing rows) with semijoin+firstmatch, IN/ANY subquery
-#
-set @tmp_951283=@@optimizer_prune_level;
-SET optimizer_prune_level=0;
-CREATE TABLE t1 ( a INT ) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-(10),(11),(12),(13),(14),(15),(16),
-(17),(18),(19),(20),(21),(22),(23);
-CREATE TABLE t2 (
-b INT PRIMARY KEY,
-c VARCHAR(1),
-d VARCHAR(1),
-KEY(c)
-) ENGINE=InnoDB;
-INSERT INTO t2 VALUES
-(1,'j','j'),(2,'v','v'),(3,'c','c'),(4,'m','m'),
-(5,'d','d'),(6,'d','d'),(7,'y','y'),(8,'t','t'),
-(9,'d','d'),(10,'s','s'),(11,'r','r'),(12,'m','m'),
-(13,'b','b'),(14,'x','x'),(15,'g','g'),(16,'p','p'),
-(17,'q','q'),(18,'w','w'),(19,'d','d');
-EXPLAIN
-SELECT COUNT(*) FROM t1 AS alias1, t1 AS alias2, t2 AS alias3
-WHERE alias3.d IN (
-SELECT alias4.c FROM t2 AS alias4, t2 AS alias5
-WHERE alias5.b = alias4.b
-AND ( alias5.b >= alias3.b OR alias5.c != alias3.c )
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias3 ALL PRIMARY NULL NULL NULL 19 Using where
-1 PRIMARY alias4 ref PRIMARY,c c 4 test.alias3.d 1 Using index
-1 PRIMARY alias5 eq_ref PRIMARY PRIMARY 4 test.alias4.b 1 Using where; FirstMatch(alias3)
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 14 Using join buffer (flat, BNL join)
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 14 Using join buffer (flat, BNL join)
-SELECT COUNT(*) FROM t1 AS alias1, t1 AS alias2, t2 AS alias3
-WHERE alias3.d IN (
-SELECT alias4.c FROM t2 AS alias4, t2 AS alias5
-WHERE alias5.b = alias4.b
-AND ( alias5.b >= alias3.b OR alias5.c != alias3.c )
-);
-COUNT(*)
-3724
-EXPLAIN
-SELECT COUNT(*) FROM t1 AS alias1, t1 AS alias2, t2 AS alias3
-WHERE alias3.d IN (
-SELECT alias4.c FROM t2 AS alias4, t2 AS alias5
-WHERE alias5.b = alias4.b
-AND ( alias5.b >= alias3.b OR alias3.c != alias5.c )
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias3 ALL PRIMARY NULL NULL NULL 19 Using where
-1 PRIMARY alias4 ref PRIMARY,c c 4 test.alias3.d 1 Using index
-1 PRIMARY alias5 eq_ref PRIMARY PRIMARY 4 test.alias4.b 1 Using where; FirstMatch(alias3)
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 14 Using join buffer (flat, BNL join)
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 14 Using join buffer (flat, BNL join)
-SELECT COUNT(*) FROM t1 AS alias1, t1 AS alias2, t2 AS alias3
-WHERE alias3.d IN (
-SELECT alias4.c FROM t2 AS alias4, t2 AS alias5
-WHERE alias5.b = alias4.b
-AND ( alias5.b >= alias3.b OR alias3.c != alias5.c )
-);
-COUNT(*)
-3724
-set optimizer_prune_level=@tmp_951283;
-DROP TABLE t1,t2;
-#
-# Bug mdev-5135: crash on semijoin with nested outer joins
-#
-CREATE TABLE t1 (i1 int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (i2 int, INDEX(i2)) ENGINE=MyISAM;
-CREATE TABLE t3 (i3 int, c varchar(1), INDEX(i3), INDEX(c)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (3,'x'),(4,'y');
-SELECT * FROM t1 WHERE ( 1, 1 ) IN (
-SELECT i2, i2 FROM t2 LEFT OUTER JOIN (
-t3 AS t3a INNER JOIN t3 AS t3b ON ( t3a.i3 = t3b.i3 )
-) ON ( t3a.c = t3b.c )
-);
-i1
-DROP TABLE t1,t2,t3;
-#
-# MDEV-5582: Plugin 'MEMORY' has ref_count=1 after shutdown with materialization+semijoin
-#
-CREATE TABLE t1 (a INT) engine=innodb;
-INSERT INTO t1 VALUES (8),(9);
-CREATE TABLE t2 (b INT) engine=innodb;
-INSERT INTO t2 VALUES (2),(3);
-CREATE TABLE t3 (c INT, INDEX(c)) engine=innodb;
-INSERT INTO t2 VALUES (4),(5);
-explain
-SELECT * FROM t1 WHERE 9 IN ( SELECT b FROM t2 WHERE 1 IN ( SELECT MIN(c) FROM t3 ) );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-3 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL No matching min/max row
-SELECT * FROM t1 WHERE 9 IN ( SELECT b FROM t2 WHERE 1 IN ( SELECT MIN(c) FROM t3 ) );
-a
-DROP TABLE t1,t2,t3;
-DROP TABLE IF EXISTS t1,t2,t3,t4;
-#
-# MDEV-4782: Valgrind warnings (Conditional jump or move depends on uninitialised value) with InnoDB, semijoin
-#
-CREATE TABLE t1 ( t1_pk1 varchar(3), t1_pk2 varchar(52), PRIMARY KEY (t1_pk1,t1_pk2)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('CHN','Chinese'),('USA','English');
-CREATE TABLE t2 ( t2_i int(11), t2_c varchar(52)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (86,'English');
-CREATE TABLE t3 ( t3_i int(11), t3_c varchar(35)) ENGINE=InnoDB;
-INSERT INTO t3 VALUES (3989,'Abilene'),(3873,'Akron');
-create table t4 like t1;
-insert into t4 select * from t1;
-SELECT * FROM t1, t3 WHERE t3_c IN ( SELECT t1_pk2 FROM t4, t2 WHERE t2_c = t1_pk2 AND t2_i >= t3_i ) AND ( t1_pk1 = 'POL' );
-t1_pk1 t1_pk2 t3_i t3_c
-explain
-SELECT * FROM t1, t3 WHERE t3_c IN ( SELECT t1_pk2 FROM t4, t2 WHERE t2_c = t1_pk2 AND t2_i >= t3_i ) AND ( t1_pk1 = 'POL' );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref PRIMARY PRIMARY 5 const 1 Using where; Using index
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Start temporary
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t4 index NULL PRIMARY 59 NULL 2 Using where; Using index; End temporary
-DROP TABLE t1,t2,t3,t4;
-#
-# MDEV-6263: Wrong result when using IN subquery with order by
-#
-CREATE TABLE t1 (
-id int(11) NOT NULL,
-nombre varchar(255) NOT NULL,
-PRIMARY KEY (id)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t1 (id, nombre) VALUES
-(1, 'row 1'),(2, 'row 2'),(3, 'row 3'),
-(4, 'row 4'),(5, 'row 5'),(6, 'row 6');
-CREATE TABLE t2 (
-id_algo int(11) NOT NULL,
-id_agente int(11) NOT NULL,
-PRIMARY KEY (id_algo,id_agente),
-KEY another_data (id_agente)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t2 (id_algo, id_agente) VALUES
-(1, 1),(1, 2),(2, 1),(2, 2),(2, 3),(3, 1);
-SELECT * FROM t1 WHERE id in (select distinct id_agente from t2) ORDER BY nombre ASC;
-id nombre
-1 row 1
-2 row 2
-3 row 3
-SELECT * FROM t1 WHERE id in (select distinct id_agente from t2);
-id nombre
-1 row 1
-2 row 2
-3 row 3
-DROP TABLE t1, t2;
-#
-# MDEV-7474: Semi-Join's DuplicateWeedout strategy skipped for some values of optimizer_search_depth
-#
-CREATE TABLE t1 (
-t1id BIGINT(20) NOT NULL,
-code VARCHAR(20),
-PRIMARY KEY (t1id)
-) COLLATE='utf8mb4_bin' ENGINE=InnoDB;
-CREATE TABLE t2 (
-t2id BIGINT(20) NOT NULL,
-t1idref BIGINT(20) NOT NULL,
-code VARCHAR(20),
-PRIMARY KEY (t2id),
-INDEX FK_T2_T1Id (t1idref),
-CONSTRAINT FK_T2_T1Id FOREIGN KEY (t1idref) REFERENCES t1 (t1id)
-) COLLATE='utf8mb4_bin' ENGINE=InnoDB;
-CREATE TABLE t3 (
-t3idref BIGINT(20) NOT NULL,
-t2idref BIGINT(20) NOT NULL,
-sequencenumber INT(10) NOT NULL,
-PRIMARY KEY (t3idref, t2idref),
-INDEX FK_T3_T2Id (t2idref),
-CONSTRAINT FK_T3_T2Id FOREIGN KEY (t2idref) REFERENCES t2 (t2id)
-) COLLATE='utf8mb4_bin' ENGINE=InnoDB;
-INSERT INTO t1 (t1id) VALUES (100001),(100017),(100018),(100026),(100027),(100028),(100029),(100030),
-(100031),(100032),(100033),(100034),(100035),(100036),(100037),(100038),(100040),(100041),(100042),
-(100043),(100044),(100045),(100046),(100047);
-INSERT IGNORE INTO t2 (t2id, t1idref) SELECT t1id, t1id FROM t1;
-INSERT IGNORE INTO t1 VALUES (200001, 'a');
-INSERT IGNORE INTO t2 (t2id, t1idref) VALUES (200011, 200001),(200012, 200001),(200013, 200001);
-INSERT IGNORE INTO t3 VALUES (1, 200011, 1), (1, 200012, 2), (1, 200013, 3);
-set @tmp7474= @@optimizer_search_depth;
-SET SESSION optimizer_search_depth = 1;
-SELECT SQL_NO_CACHE
-T2_0_.t1idref,
-T2_0_.t2id
-FROM
-t2 T2_0_
-WHERE
-T2_0_.t1idref IN (
-SELECT
-T1_1_.t1id
-FROM
-t3 T3_0_
-INNER JOIN
-t2 T2_1_
-ON T3_0_.t2idref=T2_1_.t2id
-INNER JOIN
-t1 T1_1_
-ON T2_1_.t1idref=T1_1_.t1id
-WHERE
-T3_0_.t3idref= 1
-);
-t1idref t2id
-200001 200011
-200001 200012
-200001 200013
-explain SELECT SQL_NO_CACHE
-T2_0_.t1idref,
-T2_0_.t2id
-FROM
-t2 T2_0_
-WHERE
-T2_0_.t1idref IN (
-SELECT
-T1_1_.t1id
-FROM
-t3 T3_0_
-INNER JOIN
-t2 T2_1_
-ON T3_0_.t2idref=T2_1_.t2id
-INNER JOIN
-t1 T1_1_
-ON T2_1_.t1idref=T1_1_.t1id
-WHERE
-T3_0_.t3idref= 1
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY T3_0_ ref PRIMARY,FK_T3_T2Id PRIMARY 8 const 3 Using index; Start temporary
-1 PRIMARY T2_1_ eq_ref PRIMARY,FK_T2_T1Id PRIMARY 8 test.T3_0_.t2idref 1
-1 PRIMARY T1_1_ eq_ref PRIMARY PRIMARY 8 test.T2_1_.t1idref 1 Using index
-1 PRIMARY T2_0_ ref FK_T2_T1Id FK_T2_T1Id 8 test.T2_1_.t1idref 1 Using index; End temporary
-drop table t3,t2,t1;
-set optimizer_search_depth=@tmp7474;
-#
-#
-#
-CREATE TABLE t1 (
-id int(16) NOT NULL AUTO_INCREMENT,
-PRIMARY KEY (id)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-CREATE TABLE t2 (
-id int(16) NOT NULL AUTO_INCREMENT,
-t3_id int(16) NOT NULL DEFAULT '0',
-t1_id int(16) NOT NULL DEFAULT '0',
-PRIMARY KEY (id),
-KEY t3_idx (t3_id),
-KEY t1_idx (t1_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-CREATE TABLE t3 (
-id int(16) NOT NULL AUTO_INCREMENT,
-PRIMARY KEY (id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-INSERT INTO t3 VALUES (1);
-INSERT INTO t2 VALUES (1, 1, 1);
-INSERT INTO t2 VALUES (2, 1, 2);
-INSERT INTO t2 VALUES (3, 1, 2);
-INSERT INTO t2 VALUES (4, 1, 1);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t1 VALUES (2);
-SELECT * FROM t1 WHERE t1.id IN (
-SELECT t2.t1_id FROM t3 JOIN t2 ON t3.id = t2.t3_id WHERE t3.id = 1
-);
-id
-1
-2
-drop table t1,t2,t3;
-#
-# MDEV-11108: Assertion `uniq_tuple_length_arg <= table->file->max_key_length()' failed in SJ_TMP_TABLE::create_sj_weedout_tmp_table
-#
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-CREATE TABLE t2 (pk BLOB, b INT, PRIMARY KEY(pk(1000))) ENGINE=InnoDB;
-CREATE TABLE t3 (c INT) ENGINE=InnoDB;
-CREATE OR REPLACE ALGORITHM=MERGE VIEW v3 AS SELECT * FROM t3;
-INSERT INTO t3 VALUES (1),(2),(3),(4),(5),(6),(7),(8);
-SELECT * FROM t1, t2
-WHERE a IN ( SELECT b FROM t2 LEFT JOIN v3 ON ( c = b ) ) ;
-a pk b
-DROP TABLE t1,t2,t3;
-DROP VIEW v3;
-# This must be the last in the file:
-set optimizer_switch=@subselect_sj2_tmp;
diff --git a/mysql-test/r/subselect_sj2_jcl6.result b/mysql-test/r/subselect_sj2_jcl6.result
deleted file mode 100644
index 2955307eb86..00000000000
--- a/mysql-test/r/subselect_sj2_jcl6.result
+++ /dev/null
@@ -1,1445 +0,0 @@
-set @save_optimizer_switch_jcl6=@@optimizer_switch;
-set @@optimizer_switch='optimize_join_buffer_size=on';
-set @@optimizer_switch='semijoin_with_cache=on';
-set @@optimizer_switch='outer_join_with_cache=on';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set join_cache_level=6;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 6
-set @optimizer_switch_for_subselect_sj2_test=@@optimizer_switch;
-set @join_cache_level_for_subselect_sj2_test=@@join_cache_level;
-set @subselect_sj2_tmp= @@optimizer_switch;
-set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-SET optimizer_switch=ifnull(@optimizer_switch_for_subselect_sj2_test,'outer_join_with_cache=off');
-SET optimizer_switch=ifnull(@optimizer_switch_for_subselect_sj2_test,'semijoin_with_cache=off');
-set join_cache_level=@join_cache_level_for_subselect_sj2_test;
-drop table if exists t0, t1, t2, t3, t4, t5;
-drop view if exists v1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (
-a int,
-b int
-);
-insert into t1 values (1,1),(1,1),(2,2);
-create table t2 (
-a int,
-b int,
-key(b)
-);
-insert into t2 select a, a/2 from t0;
-insert into t2 select a+10, a+10/2 from t0;
-select * from t1;
-a b
-1 1
-1 1
-2 2
-select * from t2;
-a b
-0 0
-1 1
-2 1
-3 2
-4 2
-5 3
-6 3
-7 4
-8 4
-9 5
-10 5
-11 6
-12 7
-13 8
-14 9
-15 10
-16 11
-17 12
-18 13
-19 14
-explain select * from t2 where b in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL b NULL NULL NULL 20
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 3
-select * from t2 where b in (select a from t1);
-a b
-1 1
-2 1
-3 2
-4 2
-create table t3 (
-a int,
-b int,
-key(b),
-pk1 char(200), pk2 char(200), pk3 char(200),
-primary key(pk1, pk2, pk3)
-) engine=innodb;
-insert into t3 select a,a, a,a,a from t0;
-insert into t3 select a,a, a+100,a+100,a+100 from t0;
-explain select * from t3 where b in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL b NULL NULL NULL 20
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 3
-select * from t3 where b in (select a from t1);
-a b pk1 pk2 pk3
-1 1 1 1 1
-1 1 101 101 101
-2 2 102 102 102
-2 2 2 2 2
-set @save_max_heap_table_size= @@max_heap_table_size;
-set max_heap_table_size=16384;
-set @save_join_buffer_size = @@join_buffer_size;
-set join_buffer_size= 8192;
-drop table t3;
-create table t3 (
-a int,
-b int,
-key(b),
-pk1 char(200), pk2 char(200),
-primary key(pk1, pk2)
-) engine=innodb;
-insert into t3 select
-A.a + 10*B.a, A.a + 10*B.a, A.a + 10*B.a, A.a + 10*B.a
-from t0 A, t0 B where B.a <5;
-explain select * from t3 where b in (select a from t0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL b NULL NULL NULL #
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func #
-2 MATERIALIZED t0 ALL NULL NULL NULL NULL #
-select * from t3 where b in (select A.a+B.a from t0 A, t0 B where B.a<5);
-a b pk1 pk2
-0 0 0 0
-1 1 1 1
-10 10 10 10
-11 11 11 11
-12 12 12 12
-13 13 13 13
-2 2 2 2
-3 3 3 3
-4 4 4 4
-5 5 5 5
-6 6 6 6
-7 7 7 7
-8 8 8 8
-9 9 9 9
-set join_buffer_size= @save_join_buffer_size;
-set max_heap_table_size= @save_max_heap_table_size;
-explain select * from t1 where a in (select b from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t2 index b b 5 NULL 20 Using index
-select * from t1;
-a b
-1 1
-1 1
-2 2
-select * from t1 where a in (select b from t2);
-a b
-1 1
-1 1
-2 2
-drop table t1, t2, t3;
-set @save_join_buffer_size = @@join_buffer_size;
-set join_buffer_size= 8192;
-create table t1 (a int, filler1 binary(200), filler2 binary(200));
-insert into t1 select a, 'filler123456', 'filler123456' from t0;
-insert into t1 select a+10, 'filler123456', 'filler123456' from t0;
-create table t2 as select * from t1;
-insert into t1 select a+20, 'filler123456', 'filler123456' from t0;
-insert into t1 values (2, 'duplicate ok', 'duplicate ok');
-insert into t1 values (18, 'duplicate ok', 'duplicate ok');
-insert into t2 values (3, 'duplicate ok', 'duplicate ok');
-insert into t2 values (19, 'duplicate ok', 'duplicate ok');
-explain select
-a, mid(filler1, 1,10), length(filler1)=length(filler2) as Z
-from t1 ot where a in (select a from t2 it);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 22
-1 PRIMARY ot hash_ALL NULL #hash#$hj 5 test.it.a 32 Using where; Using join buffer (flat, BNLH join)
-2 MATERIALIZED it ALL NULL NULL NULL NULL 22 Using where
-select
-a, mid(filler1, 1,10), length(filler1)=length(filler2) as Z
-from t1 ot where a in (select a from t2 it);
-a mid(filler1, 1,10) Z
-0 filler1234 1
-1 filler1234 1
-2 filler1234 1
-3 filler1234 1
-4 filler1234 1
-5 filler1234 1
-6 filler1234 1
-7 filler1234 1
-8 filler1234 1
-9 filler1234 1
-10 filler1234 1
-11 filler1234 1
-12 filler1234 1
-13 filler1234 1
-14 filler1234 1
-15 filler1234 1
-16 filler1234 1
-17 filler1234 1
-18 filler1234 1
-19 filler1234 1
-2 duplicate 1
-18 duplicate 1
-explain select
-a, mid(filler1, 1,10), length(filler1)=length(filler2)
-from t2 ot where a in (select a from t1 it);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot ALL NULL NULL NULL NULL 22
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED it ALL NULL NULL NULL NULL 32
-select
-a, mid(filler1, 1,10), length(filler1)=length(filler2)
-from t2 ot where a in (select a from t1 it);
-a mid(filler1, 1,10) length(filler1)=length(filler2)
-0 filler1234 1
-1 filler1234 1
-2 filler1234 1
-3 filler1234 1
-4 filler1234 1
-5 filler1234 1
-6 filler1234 1
-7 filler1234 1
-8 filler1234 1
-9 filler1234 1
-10 filler1234 1
-11 filler1234 1
-12 filler1234 1
-13 filler1234 1
-14 filler1234 1
-15 filler1234 1
-16 filler1234 1
-17 filler1234 1
-18 filler1234 1
-19 filler1234 1
-3 duplicate 1
-19 duplicate 1
-insert into t1 select a+20, 'filler123456', 'filler123456' from t0;
-insert into t1 select a+20, 'filler123456', 'filler123456' from t0;
-explain select
-a, mid(filler1, 1,10), length(filler1)=length(filler2) as Z
-from t1 ot where a in (select a from t2 it);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 22
-1 PRIMARY ot hash_ALL NULL #hash#$hj 5 test.it.a 52 Using where; Using join buffer (flat, BNLH join)
-2 MATERIALIZED it ALL NULL NULL NULL NULL 22 Using where
-select
-a, mid(filler1, 1,10), length(filler1)=length(filler2) as Z
-from t1 ot where a in (select a from t2 it);
-a mid(filler1, 1,10) Z
-0 filler1234 1
-1 filler1234 1
-2 filler1234 1
-3 filler1234 1
-4 filler1234 1
-5 filler1234 1
-6 filler1234 1
-7 filler1234 1
-8 filler1234 1
-9 filler1234 1
-10 filler1234 1
-11 filler1234 1
-12 filler1234 1
-13 filler1234 1
-14 filler1234 1
-15 filler1234 1
-16 filler1234 1
-17 filler1234 1
-18 filler1234 1
-19 filler1234 1
-2 duplicate 1
-18 duplicate 1
-explain select
-a, mid(filler1, 1,10), length(filler1)=length(filler2)
-from t2 ot where a in (select a from t1 it);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot ALL NULL NULL NULL NULL 22
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED it ALL NULL NULL NULL NULL 52
-select
-a, mid(filler1, 1,10), length(filler1)=length(filler2)
-from t2 ot where a in (select a from t1 it);
-a mid(filler1, 1,10) length(filler1)=length(filler2)
-0 filler1234 1
-1 filler1234 1
-2 filler1234 1
-3 filler1234 1
-4 filler1234 1
-5 filler1234 1
-6 filler1234 1
-7 filler1234 1
-8 filler1234 1
-9 filler1234 1
-10 filler1234 1
-11 filler1234 1
-12 filler1234 1
-13 filler1234 1
-14 filler1234 1
-15 filler1234 1
-16 filler1234 1
-17 filler1234 1
-18 filler1234 1
-19 filler1234 1
-3 duplicate 1
-19 duplicate 1
-drop table t1, t2;
-create table t1 (a int, b int, key(a));
-create table t2 (a int, b int, key(a));
-create table t3 (a int, b int, key(a));
-insert into t1 select a,a from t0;
-insert into t2 select a,a from t0;
-insert into t3 select a,a from t0;
-t2 and t3 must be use 'ref', not 'ALL':
-explain select *
-from t0 where a in
-(select t2.a+t3.a from t1 left join (t2 join t3) on t2.a=t1.a and t3.a=t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 10
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func 1 Using where
-2 MATERIALIZED t1 index a a 5 NULL 10 Using where; Using index
-2 MATERIALIZED t2 ref a a 5 test.t1.a 1 Using index
-2 MATERIALIZED t3 ref a a 5 test.t1.a 1 Using index
-drop table t0, t1,t2,t3;
-CREATE TABLE t1 (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-);
-CREATE TABLE t2 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name),
-INDEX (Population)
-);
-CREATE TABLE t3 (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-);
-set @bug35674_save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='materialization=off';
-EXPLAIN
-SELECT Name FROM t2
-WHERE t2.Code IN (SELECT Country FROM t1 WHERE Population > 5000000)
-AND
-t2.Code IN (SELECT Country FROM t3
-WHERE Language='English' AND Percentage > 10 AND
-t2.Population > 100000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range Population,Country Population 4 NULL 1 Using index condition; Rowid-ordered scan; Start temporary
-1 PRIMARY t2 eq_ref PRIMARY,Population PRIMARY 3 test.t1.Country 1 Using where; End temporary; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 PRIMARY t3 eq_ref PRIMARY,Percentage PRIMARY 33 test.t1.Country,const 1 Using index condition; Using where; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-set optimizer_switch=@bug35674_save_optimizer_switch;
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (
-Code char(3) NOT NULL DEFAULT '',
-Name char(52) NOT NULL DEFAULT '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL DEFAULT 'Asia',
-Region char(26) NOT NULL DEFAULT '',
-SurfaceArea float(10,2) NOT NULL DEFAULT '0.00',
-IndepYear smallint(6) DEFAULT NULL,
-Population int(11) NOT NULL DEFAULT '0',
-LifeExpectancy float(3,1) DEFAULT NULL,
-GNP float(10,2) DEFAULT NULL,
-GNPOld float(10,2) DEFAULT NULL,
-LocalName char(45) NOT NULL DEFAULT '',
-GovernmentForm char(45) NOT NULL DEFAULT '',
-HeadOfState char(60) DEFAULT NULL,
-Capital int(11) DEFAULT NULL,
-Code2 char(2) NOT NULL DEFAULT '',
-PRIMARY KEY (Code)
-);
-CREATE TABLE t2 (
-ID int(11) NOT NULL AUTO_INCREMENT,
-Name char(35) NOT NULL DEFAULT '',
-CountryCode char(3) NOT NULL DEFAULT '',
-District char(20) NOT NULL DEFAULT '',
-Population int(11) NOT NULL DEFAULT '0',
-PRIMARY KEY (ID),
-KEY CountryCode (CountryCode)
-);
-Fill the table with test data
-This must not use LooseScan:
-EXPLAIN SELECT Name FROM t1
-WHERE t1.Code IN (
-SELECT t2.CountryCode FROM t2 WHERE Population > 5000000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 31
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 3 func 1
-2 MATERIALIZED t2 ALL CountryCode NULL NULL NULL 545 Using where
-SELECT Name FROM t1
-WHERE t1.Code IN (
-SELECT t2.CountryCode FROM t2 WHERE Population > 5000000);
-Name
-Austria
-Canada
-China
-Czech Republic
-drop table t1, t2;
-drop procedure if exists p1;
-drop procedure if exists p2;
-drop procedure if exists p3;
-drop procedure if exists p4;
-CREATE TABLE t1(a INT);
-CREATE TABLE t2(c INT);
-CREATE PROCEDURE p1(v1 int)
-BEGIN
-SELECT 1 FROM t1 WHERE a = v1 AND a IN (SELECT c FROM t2);
-END
-//
-CREATE PROCEDURE p2(v1 int)
-BEGIN
-SELECT 1 FROM t1 WHERE a IN (SELECT c FROM t2);
-END
-//
-CREATE PROCEDURE p3(v1 int)
-BEGIN
-SELECT 1
-FROM
-t1 t01,t1 t02,t1 t03,t1 t04,t1 t05,t1 t06,t1 t07,t1 t08,
-t1 t09,t1 t10,t1 t11,t1 t12,t1 t13,t1 t14,t1 t15,t1 t16,
-t1 t17,t1 t18,t1 t19,t1 t20,t1 t21,t1 t22,t1 t23,t1 t24,
-t1 t25,t1 t26,t1 t27,t1 t28,t1 t29,t1 t30,t1 t31,t1 t32,
-t1 t33,t1 t34,t1 t35,t1 t36,t1 t37,t1 t38,t1 t39,t1 t40,
-t1 t41,t1 t42,t1 t43,t1 t44,t1 t45,t1 t46,t1 t47,t1 t48,
-t1 t49,t1 t50,t1 t51,t1 t52,t1 t53,t1 t54,t1 t55,t1 t56,
-t1 t57,t1 t58,t1 t59,t1 t60
-WHERE t01.a IN (SELECT c FROM t2);
-END
-//
-CREATE PROCEDURE p4(v1 int)
-BEGIN
-SELECT 1
-FROM
-t1 t01,t1 t02,t1 t03,t1 t04,t1 t05,t1 t06,t1 t07,t1 t08,
-t1 t09,t1 t10,t1 t11,t1 t12,t1 t13,t1 t14,t1 t15,t1 t16,
-t1 t17,t1 t18,t1 t19,t1 t20,t1 t21,t1 t22,t1 t23,t1 t24,
-t1 t25,t1 t26,t1 t27,t1 t28,t1 t29,t1 t30,t1 t31,t1 t32,
-t1 t33,t1 t34,t1 t35,t1 t36,t1 t37,t1 t38,t1 t39,t1 t40,
-t1 t41,t1 t42,t1 t43,t1 t44,t1 t45,t1 t46,t1 t47,t1 t48,
-t1 t49,t1 t50,t1 t51,t1 t52,t1 t53,t1 t54,t1 t55,t1 t56,
-t1 t57,t1 t58,t1 t59,t1 t60
-WHERE t01.a = v1 AND t01.a IN (SELECT c FROM t2);
-END
-//
-CALL p1(1);
-1
-CALL p2(1);
-1
-CALL p3(1);
-1
-CALL p4(1);
-1
-DROP TABLE t1, t2;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP PROCEDURE p3;
-DROP PROCEDURE p4;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4);
-create table t1 (a int, b int, key(a));
-insert into t1 select a,a from t0;
-insert into t1 select a+5,a from t0;
-create table t2 (a int, b int, primary key(a));
-insert into t2 select * from t1;
-Table t2, unlike table t1, should be displayed as pulled out
-explain extended select * from t0
-where t0.a in ( select t1.a from t1,t2 where t2.a=t0.a and
-t1.b=t2.b);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 5 100.00 Using where
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.t0.a 1 100.00 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 PRIMARY t1 ref a a 5 test.t0.a 1 100.00 Using where; FirstMatch(t2); Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-Warnings:
-Note 1276 Field or reference 'test.t0.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`t0`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) join `test`.`t0` where `test`.`t2`.`a` = `test`.`t0`.`a` and `test`.`t1`.`a` = `test`.`t0`.`a` and `test`.`t1`.`b` = `test`.`t2`.`b`
-update t1 set a=3, b=11 where a=4;
-update t2 set b=11 where a=3;
-# Not anymore:
-# The following query gives wrong result due to Bug#49129
-select * from t0 where t0.a in
-(select t1.a from t1, t2 where t2.a=t0.a and t1.b=t2.b);
-a
-0
-1
-2
-3
-drop table t0, t1, t2;
-CREATE TABLE t1 (
-id int(11) NOT NULL,
-PRIMARY KEY (id));
-CREATE TABLE t2 (
-id int(11) NOT NULL,
-fid int(11) NOT NULL,
-PRIMARY KEY (id));
-insert into t1 values(1);
-insert into t2 values(1,7503),(2,1);
-explain select count(*)
-from t1
-where fid IN (select fid from t2 where (id between 7502 and 8420) order by fid );
-ERROR 42S22: Unknown column 'fid' in 'IN/ALL/ANY subquery'
-drop table t1, t2;
-create table t1 (a int, b int, key (a), key (b));
-insert into t1 values (2,4),(2,4),(2,4);
-select t1.a from t1
-where
-t1.a in (select 1 from t1 where t1.a in (select 1 from t1) group by t1.a);
-a
-drop table t1;
-create table t1(a int,b int,key(a),key(b));
-insert into t1 values (1,1),(2,2),(3,3);
-select 1 from t1
-where t1.a not in (select 1 from t1
-where t1.a in (select 1 from t1)
-group by t1.b);
-1
-1
-1
-drop table t1;
-CREATE TABLE t1
-(EMPNUM CHAR(3) NOT NULL,
-EMPNAME CHAR(20),
-GRADE DECIMAL(4),
-CITY CHAR(15));
-CREATE TABLE t2
-(PNUM CHAR(3) NOT NULL,
-PNAME CHAR(20),
-PTYPE CHAR(6),
-BUDGET DECIMAL(9),
-CITY CHAR(15));
-CREATE TABLE t3
-(EMPNUM CHAR(3) NOT NULL,
-PNUM CHAR(3) NOT NULL,
-HOURS DECIMAL(5));
-INSERT INTO t1 VALUES ('E1','Alice',12,'Deale');
-INSERT INTO t1 VALUES ('E2','Betty',10,'Vienna');
-INSERT INTO t1 VALUES ('E3','Carmen',13,'Vienna');
-INSERT INTO t1 VALUES ('E4','Don',12,'Deale');
-INSERT INTO t1 VALUES ('E5','Ed',13,'Akron');
-INSERT INTO t2 VALUES ('P1','MXSS','Design',10000,'Deale');
-INSERT INTO t2 VALUES ('P2','CALM','Code',30000,'Vienna');
-INSERT INTO t2 VALUES ('P3','SDP','Test',30000,'Tampa');
-INSERT INTO t2 VALUES ('P4','SDP','Design',20000,'Deale');
-INSERT INTO t2 VALUES ('P5','IRM','Test',10000,'Vienna');
-INSERT INTO t2 VALUES ('P6','PAYR','Design',50000,'Deale');
-INSERT INTO t3 VALUES ('E1','P1',40);
-INSERT INTO t3 VALUES ('E1','P2',20);
-INSERT INTO t3 VALUES ('E1','P3',80);
-INSERT INTO t3 VALUES ('E1','P4',20);
-INSERT INTO t3 VALUES ('E1','P5',12);
-INSERT INTO t3 VALUES ('E1','P6',12);
-INSERT INTO t3 VALUES ('E2','P1',40);
-INSERT INTO t3 VALUES ('E2','P2',80);
-INSERT INTO t3 VALUES ('E3','P2',20);
-INSERT INTO t3 VALUES ('E4','P2',20);
-INSERT INTO t3 VALUES ('E4','P4',40);
-INSERT INTO t3 VALUES ('E4','P5',80);
-SELECT * FROM t1;
-EMPNUM EMPNAME GRADE CITY
-E1 Alice 12 Deale
-E2 Betty 10 Vienna
-E3 Carmen 13 Vienna
-E4 Don 12 Deale
-E5 Ed 13 Akron
-CREATE UNIQUE INDEX t1_IDX ON t1(EMPNUM);
-SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
-(SELECT EMPNUM
-FROM t3
-WHERE PNUM IN
-(SELECT PNUM
-FROM t2
-WHERE PTYPE = 'Design'));
-EMPNAME
-Alice
-Betty
-Don
-DROP INDEX t1_IDX ON t1;
-CREATE INDEX t1_IDX ON t1(EMPNUM);
-SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
-(SELECT EMPNUM
-FROM t3
-WHERE PNUM IN
-(SELECT PNUM
-FROM t2
-WHERE PTYPE = 'Design'));
-EMPNAME
-Alice
-Betty
-Don
-DROP INDEX t1_IDX ON t1;
-SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
-(SELECT EMPNUM
-FROM t3
-WHERE PNUM IN
-(SELECT PNUM
-FROM t2
-WHERE PTYPE = 'Design'));
-EMPNAME
-Alice
-Betty
-Don
-DROP TABLE t1, t2, t3;
-CREATE TABLE t1 (f1 INT NOT NULL);
-CREATE VIEW v1 (a) AS SELECT f1 IN (SELECT f1 FROM t1) FROM t1;
-SELECT * FROM v1;
-a
-drop view v1;
-drop table t1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int, b int);
-insert into t1 values (0,0),(1,1),(2,2);
-create table t2 as select * from t1;
-create table t3 (pk int, a int, primary key(pk));
-insert into t3 select a,a from t0;
-explain
-select * from t1 left join t2 on (t2.a= t1.a and t2.a in (select pk from t3));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-1 PRIMARY t2 hash_ALL NULL #hash#$hj 5 test.t1.a 3 Using where; Using join buffer (flat, BNLH join)
-2 MATERIALIZED t3 index PRIMARY PRIMARY 4 NULL 10 Using index
-drop table t0, t1, t2, t3;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a char(200), b char(200), c char(200), primary key (a,b,c)) engine=innodb;
-insert into t2 select concat(a, repeat('X',198)),repeat('B',200),repeat('B',200) from t1;
-insert into t2 select concat(a, repeat('Y',198)),repeat('B',200),repeat('B',200) from t1;
-alter table t2 add filler1 int;
-insert into t1 select A.a + 10*(B.a + 10*C.a) from t1 A, t1 B, t1 C;
-set @save_join_buffer_size=@@join_buffer_size;
-set join_buffer_size=1;
-select * from t2 where filler1 in ( select a from t1);
-a b c filler1
-set join_buffer_size=default;
-drop table t1, t2;
-create table t1 (a int not null);
-drop procedure if exists p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE EXIT HANDLER FOR SQLEXCEPTION select a from t1;
-prepare s1 from '
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in ( select a from t1)
- )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))';
-execute s1;
-END;
-|
-call p1();
-a
-drop procedure p1;
-drop table t1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int) as select A.a + 10 *(B.a + 10*C.a) as a from t0 A, t0 B, t0 C;
-create table t2 (id int, a int, primary key(id), key(a)) as select a as id, a as a from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `id` int(11) NOT NULL,
- `a` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `a` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-set @a=0;
-create table t3 as select * from t2 limit 0;
-insert into t3 select @a:=@a+1, t2.a from t2, t0;
-insert into t3 select @a:=@a+1, t2.a from t2, t0;
-insert into t3 select @a:=@a+1, t2.a from t2, t0;
-alter table t3 add primary key(id), add key(a);
-The following must use loose index scan over t3, key a:
-explain select count(a) from t2 where a in ( SELECT a FROM t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index a a 5 NULL 1000 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t3 index a a 5 NULL 30000 Using index
-select count(a) from t2 where a in ( SELECT a FROM t3);
-count(a)
-1000
-drop table t0,t1,t2,t3;
-
-BUG#42740: crash in optimize_semijoin_nests
-
-create table t1 (c6 timestamp,key (c6)) engine=innodb;
-create table t2 (c2 double) engine=innodb;
-explain select 1 from t2 where c2 = any (select log10(null) from t1 where c6 <null) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-drop table t1, t2;
-#
-# BUG#42742: crash in setup_sj_materialization, Copy_field::set
-#
-create table t3 ( c1 year) engine=innodb;
-insert into t3 values (2135),(2142);
-create table t2 (c1 tinytext,c2 text,c6 timestamp) engine=innodb;
-# The following must not crash, EXPLAIN should show one SJ strategy, not a mix:
-explain select 1 from t2 where
-c2 in (select 1 from t3, t2) and
-c1 in (select convert(c6,char(1)) from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 4 func 1 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 FirstMatch((sj-nest)); Using join buffer (incremental, BNL join)
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 1
-drop table t2, t3;
-#
-# BUG#761598: InnoDB: Error: row_search_for_mysql() is called without ha_innobase::external_lock() in maria-5.3
-#
-CREATE TABLE t1 ( f1 int NOT NULL , f10 int) ;
-INSERT IGNORE INTO t1 VALUES (25,0),(29,0);
-CREATE TABLE t2 ( f10 int) ENGINE=InnoDB;
-CREATE TABLE t3 ( f11 int) ;
-INSERT IGNORE INTO t3 VALUES (0);
-SELECT alias1.f10 AS field2
-FROM t2 AS alias1
-JOIN (
-t3 AS alias2
-JOIN t1 AS alias3
-ON alias3.f10
-) ON alias3.f1
-WHERE alias2.f11 IN (
-SELECT SQ4_alias1.f10
-FROM t1 AS SQ4_alias1
-LEFT JOIN t2 AS SQ4_alias3 ON SQ4_alias3.f10
-)
-GROUP BY field2;
-field2
-drop table t1, t2, t3;
-#
-# BUG#849763: Wrong result with second execution of prepared statement with semijoin + view
-#
-CREATE TABLE t1 ( c varchar(1)) engine=innodb;
-INSERT INTO t1 VALUES ('r');
-CREATE TABLE t2 ( a integer, b varchar(1), c varchar(1)) engine=innodb;
-INSERT INTO t2 VALUES (1,'r','r');
-CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1;
-PREPARE st1 FROM 'SELECT * FROM t2 WHERE a = SOME (SELECT a FROM v1 WHERE v1.c = t2.c)';
-EXECUTE st1;
-a b c
-1 r r
-EXECUTE st1;
-a b c
-1 r r
-DROP VIEW v1;
-DROP TABLE t1, t2;
-#
-# BUG#858732: Wrong result with semijoin + loosescan + comma join
-#
-CREATE TABLE t1 (f13 int(11) NOT NULL , PRIMARY KEY (f13)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (16),(24);
-CREATE TABLE t2 (f14 int(11) NOT NULL, f12 varchar(1) NOT NULL, KEY (f12,f14)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (6,'y');
-CREATE TABLE t3 (f12 varchar(1) NOT NULL) ENGINE=InnoDB;
-INSERT INTO t3 VALUES ('r'),('s'),('t'),('v'),('w'),('x'),('y');
-# The following must use LooseScan but not join buffering
-explain
-SELECT * FROM t3
-WHERE f12 IN (SELECT alias2.f12 FROM t1 AS alias1, t2 AS alias2, t1 WHERE alias1.f13 = 24);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 const PRIMARY PRIMARY 4 const 1 Using index
-1 PRIMARY alias2 index f12 f12 7 NULL 1 Using index; LooseScan
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 2 Using index; FirstMatch(alias2)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 7 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM t3
-WHERE f12 IN (SELECT alias2.f12 FROM t1 AS alias1, t2 AS alias2, t1 WHERE alias1.f13 = 24);
-f12
-y
-DROP TABLE t1,t2,t3;
-#
-# BUG#869012: Wrong result with semijoin + materialization + AND in WHERE
-#
-CREATE TABLE t1 (f3 varchar(1) , f4 varchar(1) ) engine=InnoDB;
-INSERT IGNORE INTO t1 VALUES ('x','x'),('x','x');
-CREATE TABLE t2 ( f4 varchar(1) ) ;
-INSERT IGNORE INTO t2 VALUES ('g');
-CREATE TABLE t3 (f4 varchar(1) ) Engine=InnoDB;
-INSERT IGNORE INTO t3 VALUES ('x');
-set @tmp_869012=@@optimizer_switch;
-SET optimizer_switch='semijoin=on,materialization=on';
-SELECT *
-FROM t1 , t2
-WHERE ( t1.f4 ) IN ( SELECT f4 FROM t3 )
-AND t2.f4 != t1.f3 ;
-f3 f4 f4
-x x g
-x x g
-set optimizer_switch= @tmp_869012;
-DROP TABLE t1,t2,t3;
-#
-# BUG#869001: Wrong result with semijoin + materialization + firstmatch + multipart key
-#
-set @tmp869001_jcl= @@join_cache_level;
-set @tmp869001_os= @@optimizer_switch;
-SET join_cache_level=0;
-SET optimizer_switch='materialization=on,semijoin=on,firstmatch=on,loosescan=off';
-CREATE TABLE t1 ( f2 int, f3 varchar(1), KEY (f3,f2)) engine=innodb;
-INSERT INTO t1 VALUES (8,'x'),(NULL,'x'),(8,'c');
-CREATE TABLE t2 ( f4 varchar(1)) engine=innodb;
-INSERT INTO t2 VALUES ('x');
-CREATE TABLE t3 ( f1 int) engine=innodb;
-INSERT INTO t3 VALUES (8),(6),(2),(9),(6);
-CREATE TABLE t4 ( f3 varchar(1)) engine=innodb;
-INSERT INTO t4 VALUES ('p'),('j'),('c');
-SELECT *
-FROM t1 JOIN t2 ON (t2.f4 = t1.f3 )
-WHERE ( 8 ) IN (
-SELECT t3.f1 FROM t3 , t4
-);
-f2 f3 f4
-NULL x x
-8 x x
-DROP TABLE t1, t2, t3, t4;
-set join_cache_level= @tmp869001_jcl;
-set optimizer_switch= @tmp869001_os;
-#
-# Bug #881318: join cache + duplicate elimination + left join
-# with empty materialized derived inner table
-#
-CREATE TABLE t1 (b varchar(1)) ENGINE=InnoDB;
-CREATE TABLE t2 (a varchar(1)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES ('a');
-CREATE TABLE t3 (a varchar(1), b varchar(1)) ENGINE=InnoDB;
-INSERT INTO t3 VALUES ('c','c');
-CREATE TABLE t4 (b varchar(1)) ENGINE=InnoDB;
-INSERT INTO t4 VALUES ('c'), ('b');
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-EXPLAIN
-SELECT * FROM t3 LEFT JOIN (v1,t2) ON t3.a = t2.a
-WHERE t3.b IN (SELECT b FROM t4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY t2 hash_ALL NULL #hash#$hj 4 test.t3.a 1 Using where; Using join buffer (flat, BNLH join)
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 2 Using join buffer (incremental, BNL join)
-2 MATERIALIZED t4 ALL NULL NULL NULL NULL 2
-3 DERIVED t1 ALL NULL NULL NULL NULL 1
-SELECT * FROM t3 LEFT JOIN (v1,t2) ON t3.a = t2.a
-WHERE t3.b IN (SELECT b FROM t4);
-a b b a
-c c NULL NULL
-DROP VIEW v1;
-DROP TABLE t1,t2,t3,t4;
-#
-# BUG#912538: Wrong result (missing rows) with semijoin=on, firstmatch=on, ...
-#
-CREATE TABLE t1 ( a INT NOT NULL, UNIQUE KEY(a) );
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-CREATE TABLE t2 ( b INT, c INT ) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (1,1);
-SELECT * FROM t1, t2 WHERE c IN (SELECT c FROM t1, t2 WHERE a = b);
-a b c
-1 1 1
-2 1 1
-3 1 1
-4 1 1
-DROP TABLE t1,t2;
-#
-# BUG#962667: Assertion `0' failed in QUICK_INDEX_SORT_SELECT::need_sorted_output()
-# with index_merge+index_merge_sort_union+loosescan+semijoin
-#
-CREATE TABLE t1 (
-a INT, b VARCHAR(1), c INT,
-KEY(a), KEY(b)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-(1,'v',9),(2,'v',8),(3,'c',7),(4,'m',6),(5,'x',5),
-(6,'i',4),(7,'e',3),(8,'p',2),(9,'s',1),(10,'j',9),
-(11,'z',8),(12,'c',7),(13,'a',6),(14,'q',5),(15,'y',4),
-(16,'n',3),(17,'r',2),(18,'v',1),(19,'p',0);
-CREATE TABLE t2 (
-pk INT, d VARCHAR(1), e INT,
-PRIMARY KEY(pk), KEY(d,e)
-) ENGINE=InnoDB;
-INSERT INTO t2 VALUES
-(1,'x',1),(2,'d',2),(3,'r',3),(4,'f',4),(5,'y',5),
-(6,'u',6),(7,'m',7),(8,'k',8),(9,'o',9),(10,'w',1),
-(11,'m',2),(12,'q',3),(13,'m',4),(14,'d',5),
-(15,'g',6),(16,'x',7),(17,'f',8);
-explain
-SELECT * FROM t1 WHERE b IN (
-SELECT d FROM t2, t1
-WHERE a = d AND ( pk < 2 OR d = 'z' )
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL b NULL NULL NULL 19
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t2 index PRIMARY,d d 9 NULL 17 Using where; Using index
-2 MATERIALIZED t1 ref a a 5 test.t2.d 1 Using where; Using index
-SELECT * FROM t1 WHERE b IN (
-SELECT d FROM t2, t1
-WHERE a = d AND ( pk < 2 OR d = 'z' )
-);
-a b c
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'x'
-DROP TABLE t1, t2;
-#
-# BUG#951937: Wrong result (missing rows) with semijoin+materialization, IN subquery, InnoDB, TEMPTABLE view
-#
-CREATE TABLE t1 (
-a VARCHAR(1),
-b VARCHAR(1) NOT NULL,
-KEY(a)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-('j','j'),('v','v'),('c','c'),('m','m'),('d','d'),
-('y','y'),('t','t'),('d','d'),('s','s'),('r','r'),
-('m','m'),('b','b'),('x','x'),('g','g'),('p','p'),
-('q','q'),('w','w'),('d','d'),('e','e');
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-# This query returned 6 rows instead of 19
-SELECT * FROM v1
-WHERE ( a, a ) IN (
-SELECT alias2.b, alias2.a
-FROM t1 AS alias1, t1 AS alias2
-WHERE alias2.b = alias1.a
-AND ( alias1.b >= alias1.a OR alias2.b = 'z' )
-);
-a b
-b b
-c c
-d d
-d d
-d d
-e e
-g g
-j j
-m m
-m m
-p p
-q q
-r r
-s s
-t t
-v v
-w w
-x x
-y y
-# Another testcase, without the VIEW:
-CREATE TABLE t2 (a VARCHAR(1), b VARCHAR(1) NOT NULL, KEY(a)) ENGINE=InnoDB;
-INSERT INTO t2 SELECT * FROM t1;
-INSERT INTO t2 SELECT * FROM t1;
-EXPLAIN
-SELECT * FROM t2
-WHERE (a, a) IN (SELECT alias2.b, alias2.a FROM t1 AS alias1, t1 AS alias2
-WHERE
-alias2.b = alias1.a AND
-(alias1.b >= alias1.a OR alias2.b = 'z'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL a NULL NULL NULL 38
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-2 MATERIALIZED alias1 ALL a NULL NULL NULL 19 Using where
-2 MATERIALIZED alias2 ref a a 4 test.alias1.a 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-SELECT * FROM t2
-WHERE (a, a) IN (SELECT alias2.b, alias2.a FROM t1 AS alias1, t1 AS alias2
-WHERE
-alias2.b = alias1.a AND
-(alias1.b >= alias1.a OR alias2.b = 'z'));
-a b
-b b
-b b
-c c
-c c
-d d
-d d
-d d
-d d
-d d
-d d
-e e
-e e
-g g
-g g
-j j
-j j
-m m
-m m
-m m
-m m
-p p
-p p
-q q
-q q
-r r
-r r
-s s
-s s
-t t
-t t
-v v
-v v
-w w
-w w
-x x
-x x
-y y
-y y
-DROP VIEW v1;
-DROP TABLE t1, t2;
-#
-# BUG#965872: Server crashes in embedding_sjm on a simple 1-table select with AND and OR
-# (this is a regression caused by the fix for BUG#951937)
-CREATE TABLE t1 ( a INT, b INT, c INT, d INT );
-INSERT INTO t1 VALUES (4,2,8,9),(4,2,7,8);
-SELECT * FROM t1
-WHERE a = d AND ( b = 50 AND b = d OR a = c );
-a b c d
-DROP TABLE t1;
-#
-# BUG#951283: Wrong result (missing rows) with semijoin+firstmatch, IN/ANY subquery
-#
-set @tmp_951283=@@optimizer_prune_level;
-SET optimizer_prune_level=0;
-CREATE TABLE t1 ( a INT ) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-(10),(11),(12),(13),(14),(15),(16),
-(17),(18),(19),(20),(21),(22),(23);
-CREATE TABLE t2 (
-b INT PRIMARY KEY,
-c VARCHAR(1),
-d VARCHAR(1),
-KEY(c)
-) ENGINE=InnoDB;
-INSERT INTO t2 VALUES
-(1,'j','j'),(2,'v','v'),(3,'c','c'),(4,'m','m'),
-(5,'d','d'),(6,'d','d'),(7,'y','y'),(8,'t','t'),
-(9,'d','d'),(10,'s','s'),(11,'r','r'),(12,'m','m'),
-(13,'b','b'),(14,'x','x'),(15,'g','g'),(16,'p','p'),
-(17,'q','q'),(18,'w','w'),(19,'d','d');
-EXPLAIN
-SELECT COUNT(*) FROM t1 AS alias1, t1 AS alias2, t2 AS alias3
-WHERE alias3.d IN (
-SELECT alias4.c FROM t2 AS alias4, t2 AS alias5
-WHERE alias5.b = alias4.b
-AND ( alias5.b >= alias3.b OR alias5.c != alias3.c )
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias3 ALL PRIMARY NULL NULL NULL 19 Using where
-1 PRIMARY alias4 ref PRIMARY,c c 4 test.alias3.d 1 Using index
-1 PRIMARY alias5 eq_ref PRIMARY PRIMARY 4 test.alias4.b 1 Using where; FirstMatch(alias3)
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 14 Using join buffer (flat, BNL join)
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 14 Using join buffer (incremental, BNL join)
-SELECT COUNT(*) FROM t1 AS alias1, t1 AS alias2, t2 AS alias3
-WHERE alias3.d IN (
-SELECT alias4.c FROM t2 AS alias4, t2 AS alias5
-WHERE alias5.b = alias4.b
-AND ( alias5.b >= alias3.b OR alias5.c != alias3.c )
-);
-COUNT(*)
-3724
-EXPLAIN
-SELECT COUNT(*) FROM t1 AS alias1, t1 AS alias2, t2 AS alias3
-WHERE alias3.d IN (
-SELECT alias4.c FROM t2 AS alias4, t2 AS alias5
-WHERE alias5.b = alias4.b
-AND ( alias5.b >= alias3.b OR alias3.c != alias5.c )
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias3 ALL PRIMARY NULL NULL NULL 19 Using where
-1 PRIMARY alias4 ref PRIMARY,c c 4 test.alias3.d 1 Using index
-1 PRIMARY alias5 eq_ref PRIMARY PRIMARY 4 test.alias4.b 1 Using where; FirstMatch(alias3)
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 14 Using join buffer (flat, BNL join)
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 14 Using join buffer (incremental, BNL join)
-SELECT COUNT(*) FROM t1 AS alias1, t1 AS alias2, t2 AS alias3
-WHERE alias3.d IN (
-SELECT alias4.c FROM t2 AS alias4, t2 AS alias5
-WHERE alias5.b = alias4.b
-AND ( alias5.b >= alias3.b OR alias3.c != alias5.c )
-);
-COUNT(*)
-3724
-set optimizer_prune_level=@tmp_951283;
-DROP TABLE t1,t2;
-#
-# Bug mdev-5135: crash on semijoin with nested outer joins
-#
-CREATE TABLE t1 (i1 int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (i2 int, INDEX(i2)) ENGINE=MyISAM;
-CREATE TABLE t3 (i3 int, c varchar(1), INDEX(i3), INDEX(c)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (3,'x'),(4,'y');
-SELECT * FROM t1 WHERE ( 1, 1 ) IN (
-SELECT i2, i2 FROM t2 LEFT OUTER JOIN (
-t3 AS t3a INNER JOIN t3 AS t3b ON ( t3a.i3 = t3b.i3 )
-) ON ( t3a.c = t3b.c )
-);
-i1
-DROP TABLE t1,t2,t3;
-#
-# MDEV-5582: Plugin 'MEMORY' has ref_count=1 after shutdown with materialization+semijoin
-#
-CREATE TABLE t1 (a INT) engine=innodb;
-INSERT INTO t1 VALUES (8),(9);
-CREATE TABLE t2 (b INT) engine=innodb;
-INSERT INTO t2 VALUES (2),(3);
-CREATE TABLE t3 (c INT, INDEX(c)) engine=innodb;
-INSERT INTO t2 VALUES (4),(5);
-explain
-SELECT * FROM t1 WHERE 9 IN ( SELECT b FROM t2 WHERE 1 IN ( SELECT MIN(c) FROM t3 ) );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-3 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL No matching min/max row
-SELECT * FROM t1 WHERE 9 IN ( SELECT b FROM t2 WHERE 1 IN ( SELECT MIN(c) FROM t3 ) );
-a
-DROP TABLE t1,t2,t3;
-DROP TABLE IF EXISTS t1,t2,t3,t4;
-#
-# MDEV-4782: Valgrind warnings (Conditional jump or move depends on uninitialised value) with InnoDB, semijoin
-#
-CREATE TABLE t1 ( t1_pk1 varchar(3), t1_pk2 varchar(52), PRIMARY KEY (t1_pk1,t1_pk2)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('CHN','Chinese'),('USA','English');
-CREATE TABLE t2 ( t2_i int(11), t2_c varchar(52)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (86,'English');
-CREATE TABLE t3 ( t3_i int(11), t3_c varchar(35)) ENGINE=InnoDB;
-INSERT INTO t3 VALUES (3989,'Abilene'),(3873,'Akron');
-create table t4 like t1;
-insert into t4 select * from t1;
-SELECT * FROM t1, t3 WHERE t3_c IN ( SELECT t1_pk2 FROM t4, t2 WHERE t2_c = t1_pk2 AND t2_i >= t3_i ) AND ( t1_pk1 = 'POL' );
-t1_pk1 t1_pk2 t3_i t3_c
-explain
-SELECT * FROM t1, t3 WHERE t3_c IN ( SELECT t1_pk2 FROM t4, t2 WHERE t2_c = t1_pk2 AND t2_i >= t3_i ) AND ( t1_pk1 = 'POL' );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref PRIMARY PRIMARY 5 const 1 Using where; Using index
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Start temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY t4 hash_index NULL #hash#$hj:PRIMARY 54:59 test.t3.t3_c 2 Using where; Using index; End temporary; Using join buffer (incremental, BNLH join)
-DROP TABLE t1,t2,t3,t4;
-#
-# MDEV-6263: Wrong result when using IN subquery with order by
-#
-CREATE TABLE t1 (
-id int(11) NOT NULL,
-nombre varchar(255) NOT NULL,
-PRIMARY KEY (id)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t1 (id, nombre) VALUES
-(1, 'row 1'),(2, 'row 2'),(3, 'row 3'),
-(4, 'row 4'),(5, 'row 5'),(6, 'row 6');
-CREATE TABLE t2 (
-id_algo int(11) NOT NULL,
-id_agente int(11) NOT NULL,
-PRIMARY KEY (id_algo,id_agente),
-KEY another_data (id_agente)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t2 (id_algo, id_agente) VALUES
-(1, 1),(1, 2),(2, 1),(2, 2),(2, 3),(3, 1);
-SELECT * FROM t1 WHERE id in (select distinct id_agente from t2) ORDER BY nombre ASC;
-id nombre
-1 row 1
-2 row 2
-3 row 3
-SELECT * FROM t1 WHERE id in (select distinct id_agente from t2);
-id nombre
-1 row 1
-2 row 2
-3 row 3
-DROP TABLE t1, t2;
-#
-# MDEV-7474: Semi-Join's DuplicateWeedout strategy skipped for some values of optimizer_search_depth
-#
-CREATE TABLE t1 (
-t1id BIGINT(20) NOT NULL,
-code VARCHAR(20),
-PRIMARY KEY (t1id)
-) COLLATE='utf8mb4_bin' ENGINE=InnoDB;
-CREATE TABLE t2 (
-t2id BIGINT(20) NOT NULL,
-t1idref BIGINT(20) NOT NULL,
-code VARCHAR(20),
-PRIMARY KEY (t2id),
-INDEX FK_T2_T1Id (t1idref),
-CONSTRAINT FK_T2_T1Id FOREIGN KEY (t1idref) REFERENCES t1 (t1id)
-) COLLATE='utf8mb4_bin' ENGINE=InnoDB;
-CREATE TABLE t3 (
-t3idref BIGINT(20) NOT NULL,
-t2idref BIGINT(20) NOT NULL,
-sequencenumber INT(10) NOT NULL,
-PRIMARY KEY (t3idref, t2idref),
-INDEX FK_T3_T2Id (t2idref),
-CONSTRAINT FK_T3_T2Id FOREIGN KEY (t2idref) REFERENCES t2 (t2id)
-) COLLATE='utf8mb4_bin' ENGINE=InnoDB;
-INSERT INTO t1 (t1id) VALUES (100001),(100017),(100018),(100026),(100027),(100028),(100029),(100030),
-(100031),(100032),(100033),(100034),(100035),(100036),(100037),(100038),(100040),(100041),(100042),
-(100043),(100044),(100045),(100046),(100047);
-INSERT IGNORE INTO t2 (t2id, t1idref) SELECT t1id, t1id FROM t1;
-INSERT IGNORE INTO t1 VALUES (200001, 'a');
-INSERT IGNORE INTO t2 (t2id, t1idref) VALUES (200011, 200001),(200012, 200001),(200013, 200001);
-INSERT IGNORE INTO t3 VALUES (1, 200011, 1), (1, 200012, 2), (1, 200013, 3);
-set @tmp7474= @@optimizer_search_depth;
-SET SESSION optimizer_search_depth = 1;
-SELECT SQL_NO_CACHE
-T2_0_.t1idref,
-T2_0_.t2id
-FROM
-t2 T2_0_
-WHERE
-T2_0_.t1idref IN (
-SELECT
-T1_1_.t1id
-FROM
-t3 T3_0_
-INNER JOIN
-t2 T2_1_
-ON T3_0_.t2idref=T2_1_.t2id
-INNER JOIN
-t1 T1_1_
-ON T2_1_.t1idref=T1_1_.t1id
-WHERE
-T3_0_.t3idref= 1
-);
-t1idref t2id
-200001 200011
-200001 200012
-200001 200013
-explain SELECT SQL_NO_CACHE
-T2_0_.t1idref,
-T2_0_.t2id
-FROM
-t2 T2_0_
-WHERE
-T2_0_.t1idref IN (
-SELECT
-T1_1_.t1id
-FROM
-t3 T3_0_
-INNER JOIN
-t2 T2_1_
-ON T3_0_.t2idref=T2_1_.t2id
-INNER JOIN
-t1 T1_1_
-ON T2_1_.t1idref=T1_1_.t1id
-WHERE
-T3_0_.t3idref= 1
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY T3_0_ ref PRIMARY,FK_T3_T2Id PRIMARY 8 const 3 Using index; Start temporary
-1 PRIMARY T2_1_ eq_ref PRIMARY,FK_T2_T1Id PRIMARY 8 test.T3_0_.t2idref 1 Using join buffer (flat, BKA join); Key-ordered scan
-1 PRIMARY T1_1_ eq_ref PRIMARY PRIMARY 8 test.T2_1_.t1idref 1 Using index
-1 PRIMARY T2_0_ ref FK_T2_T1Id FK_T2_T1Id 8 test.T2_1_.t1idref 1 Using index; End temporary
-drop table t3,t2,t1;
-set optimizer_search_depth=@tmp7474;
-#
-#
-#
-CREATE TABLE t1 (
-id int(16) NOT NULL AUTO_INCREMENT,
-PRIMARY KEY (id)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-CREATE TABLE t2 (
-id int(16) NOT NULL AUTO_INCREMENT,
-t3_id int(16) NOT NULL DEFAULT '0',
-t1_id int(16) NOT NULL DEFAULT '0',
-PRIMARY KEY (id),
-KEY t3_idx (t3_id),
-KEY t1_idx (t1_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-CREATE TABLE t3 (
-id int(16) NOT NULL AUTO_INCREMENT,
-PRIMARY KEY (id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-INSERT INTO t3 VALUES (1);
-INSERT INTO t2 VALUES (1, 1, 1);
-INSERT INTO t2 VALUES (2, 1, 2);
-INSERT INTO t2 VALUES (3, 1, 2);
-INSERT INTO t2 VALUES (4, 1, 1);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t1 VALUES (2);
-SELECT * FROM t1 WHERE t1.id IN (
-SELECT t2.t1_id FROM t3 JOIN t2 ON t3.id = t2.t3_id WHERE t3.id = 1
-);
-id
-1
-2
-drop table t1,t2,t3;
-#
-# MDEV-11108: Assertion `uniq_tuple_length_arg <= table->file->max_key_length()' failed in SJ_TMP_TABLE::create_sj_weedout_tmp_table
-#
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-CREATE TABLE t2 (pk BLOB, b INT, PRIMARY KEY(pk(1000))) ENGINE=InnoDB;
-CREATE TABLE t3 (c INT) ENGINE=InnoDB;
-CREATE OR REPLACE ALGORITHM=MERGE VIEW v3 AS SELECT * FROM t3;
-INSERT INTO t3 VALUES (1),(2),(3),(4),(5),(6),(7),(8);
-SELECT * FROM t1, t2
-WHERE a IN ( SELECT b FROM t2 LEFT JOIN v3 ON ( c = b ) ) ;
-a pk b
-DROP TABLE t1,t2,t3;
-DROP VIEW v3;
-# This must be the last in the file:
-set optimizer_switch=@subselect_sj2_tmp;
-#
-# Bug #898073: potential incremental join cache for semijoin
-#
-CREATE TABLE t1 (a int, b varchar(1), KEY (b,a));
-INSERT INTO t1 VALUES (0,'x'), (5,'r');
-CREATE TABLE t2 (a int) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (8);
-CREATE TABLE t3 (b varchar(1), c varchar(1)) ENGINE=InnoDB;
-INSERT INTO t3 VALUES ('x','x');
-CREATE TABLE t4 (a int NOT NULL, b varchar(1)) ENGINE=InnoDB;
-INSERT INTO t4 VALUES (20,'r'), (10,'x');
-set @tmp_optimizer_switch=@@optimizer_switch;
-SET SESSION optimizer_switch='semijoin_with_cache=on';
-SET SESSION join_cache_level=2;
-EXPLAIN
-SELECT t3.* FROM t1 JOIN t3 ON t3.b = t1.b
-WHERE c IN (SELECT t4.b FROM t4 JOIN t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 1 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using join buffer (flat, BNL join)
-1 PRIMARY t4 ALL NULL NULL NULL NULL 2 Using where; FirstMatch(t3); Using join buffer (incremental, BNL join)
-1 PRIMARY t1 ref b b 4 test.t3.b 1 Using index
-SELECT t3.* FROM t1 JOIN t3 ON t3.b = t1.b
-WHERE c IN (SELECT t4.b FROM t4 JOIN t2);
-b c
-x x
-set optimizer_switch=@tmp_optimizer_switch;
-set join_cache_level=default;
-DROP TABLE t1,t2,t3,t4;
-#
-# Bug #899696: potential incremental join cache for semijoin
-#
-CREATE TABLE t1 (pk int PRIMARY KEY, a int);
-INSERT INTO t1 VALUES (1, 6), (2, 8);
-CREATE TABLE t2 (b int) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (8);
-CREATE TABLE t3 (pk int PRIMARY KEY, a int);
-INSERT INTO t3 VALUES (1, 6), (2, 8);
-CREATE TABLE t4 (b int) ENGINE=InnoDB;
-INSERT INTO t4 VALUES (2);
-set @tmp_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch = 'semijoin_with_cache=on';
-SET join_cache_level = 2;
-EXPLAIN
-SELECT * FROM t1, t2 WHERE b IN (SELECT a FROM t3, t4 WHERE b = pk);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1
-1 PRIMARY t4 ALL NULL NULL NULL NULL 1 Using where
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 4 test.t4.b 1 Using where; FirstMatch(t2)
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-SELECT * FROM t1, t2 WHERE b IN (SELECT a FROM t3, t4 WHERE b = pk);
-pk a b
-1 6 8
-2 8 8
-set optimizer_switch=@tmp_optimizer_switch;
-set join_cache_level=default;
-DROP TABLE t1,t2,t3,t4;
-#
-# Bug #899962: materialized subquery with join_cache_level=3
-#
-CREATE TABLE t1 (a varchar(1), b varchar(1)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('v','v');
-CREATE TABLE t2 (a varchar(1), b varchar(1)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES ('v','v');
-set @tmp_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch = 'semijoin_with_cache=on';
-SET join_cache_level = 3;
-EXPLAIN
-SELECT * FROM t1 WHERE b IN (SELECT a FROM t2 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 1
-SELECT * FROM t1 WHERE b IN (SELECT a FROM t2 GROUP BY a);
-a b
-v v
-EXPLAIN
-SELECT * FROM t1 WHERE b IN (SELECT max(a) FROM t2 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 1 Using where
-1 PRIMARY <subquery2> hash_ALL distinct_key #hash#distinct_key 4 test.t1.b 1 Using join buffer (flat, BNLH join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 1 Using temporary
-SELECT * FROM t1 WHERE b IN (SELECT max(a) FROM t2 GROUP BY a);
-a b
-v v
-set optimizer_switch=@tmp_optimizer_switch;
-set join_cache_level=default;
-DROP TABLE t1,t2;
-set join_cache_level=default;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 2
-set @@optimizer_switch=@save_optimizer_switch_jcl6;
-set @optimizer_switch_for_subselect_sj2_test=NULL;
-set @join_cache_level_subselect_sj2_test=NULL;
diff --git a/mysql-test/r/subselect_sj2_mat.result b/mysql-test/r/subselect_sj2_mat.result
deleted file mode 100644
index 6a1f310511f..00000000000
--- a/mysql-test/r/subselect_sj2_mat.result
+++ /dev/null
@@ -1,1672 +0,0 @@
-set optimizer_switch='materialization=on';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set @subselect_sj2_tmp= @@optimizer_switch;
-set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-SET optimizer_switch=ifnull(@optimizer_switch_for_subselect_sj2_test,'outer_join_with_cache=off');
-SET optimizer_switch=ifnull(@optimizer_switch_for_subselect_sj2_test,'semijoin_with_cache=off');
-set join_cache_level=1;
-drop table if exists t0, t1, t2, t3, t4, t5;
-drop view if exists v1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (
-a int,
-b int
-);
-insert into t1 values (1,1),(1,1),(2,2);
-create table t2 (
-a int,
-b int,
-key(b)
-);
-insert into t2 select a, a/2 from t0;
-insert into t2 select a+10, a+10/2 from t0;
-select * from t1;
-a b
-1 1
-1 1
-2 2
-select * from t2;
-a b
-0 0
-1 1
-2 1
-3 2
-4 2
-5 3
-6 3
-7 4
-8 4
-9 5
-10 5
-11 6
-12 7
-13 8
-14 9
-15 10
-16 11
-17 12
-18 13
-19 14
-explain select * from t2 where b in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL b NULL NULL NULL 20
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 3
-select * from t2 where b in (select a from t1);
-a b
-1 1
-2 1
-3 2
-4 2
-create table t3 (
-a int,
-b int,
-key(b),
-pk1 char(200), pk2 char(200), pk3 char(200),
-primary key(pk1, pk2, pk3)
-) engine=innodb;
-insert into t3 select a,a, a,a,a from t0;
-insert into t3 select a,a, a+100,a+100,a+100 from t0;
-explain select * from t3 where b in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL b NULL NULL NULL 20
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 3
-select * from t3 where b in (select a from t1);
-a b pk1 pk2 pk3
-1 1 1 1 1
-1 1 101 101 101
-2 2 102 102 102
-2 2 2 2 2
-set @save_max_heap_table_size= @@max_heap_table_size;
-set max_heap_table_size=16384;
-set @save_join_buffer_size = @@join_buffer_size;
-set join_buffer_size= 8192;
-drop table t3;
-create table t3 (
-a int,
-b int,
-key(b),
-pk1 char(200), pk2 char(200),
-primary key(pk1, pk2)
-) engine=innodb;
-insert into t3 select
-A.a + 10*B.a, A.a + 10*B.a, A.a + 10*B.a, A.a + 10*B.a
-from t0 A, t0 B where B.a <5;
-explain select * from t3 where b in (select a from t0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL b NULL NULL NULL #
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func #
-2 MATERIALIZED t0 ALL NULL NULL NULL NULL #
-select * from t3 where b in (select A.a+B.a from t0 A, t0 B where B.a<5);
-a b pk1 pk2
-0 0 0 0
-1 1 1 1
-10 10 10 10
-11 11 11 11
-12 12 12 12
-13 13 13 13
-2 2 2 2
-3 3 3 3
-4 4 4 4
-5 5 5 5
-6 6 6 6
-7 7 7 7
-8 8 8 8
-9 9 9 9
-set join_buffer_size= @save_join_buffer_size;
-set max_heap_table_size= @save_max_heap_table_size;
-explain select * from t1 where a in (select b from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY t2 ref b b 5 test.t1.a 2 Using index; FirstMatch(t1)
-select * from t1;
-a b
-1 1
-1 1
-2 2
-select * from t1 where a in (select b from t2);
-a b
-1 1
-1 1
-2 2
-drop table t1, t2, t3;
-set @save_join_buffer_size = @@join_buffer_size;
-set join_buffer_size= 8192;
-create table t1 (a int, filler1 binary(200), filler2 binary(200));
-insert into t1 select a, 'filler123456', 'filler123456' from t0;
-insert into t1 select a+10, 'filler123456', 'filler123456' from t0;
-create table t2 as select * from t1;
-insert into t1 select a+20, 'filler123456', 'filler123456' from t0;
-insert into t1 values (2, 'duplicate ok', 'duplicate ok');
-insert into t1 values (18, 'duplicate ok', 'duplicate ok');
-insert into t2 values (3, 'duplicate ok', 'duplicate ok');
-insert into t2 values (19, 'duplicate ok', 'duplicate ok');
-explain select
-a, mid(filler1, 1,10), length(filler1)=length(filler2) as Z
-from t1 ot where a in (select a from t2 it);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 22
-1 PRIMARY ot ALL NULL NULL NULL NULL 32 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED it ALL NULL NULL NULL NULL 22
-select
-a, mid(filler1, 1,10), length(filler1)=length(filler2) as Z
-from t1 ot where a in (select a from t2 it);
-a mid(filler1, 1,10) Z
-0 filler1234 1
-1 filler1234 1
-2 filler1234 1
-3 filler1234 1
-4 filler1234 1
-5 filler1234 1
-6 filler1234 1
-7 filler1234 1
-8 filler1234 1
-9 filler1234 1
-10 filler1234 1
-11 filler1234 1
-12 filler1234 1
-13 filler1234 1
-14 filler1234 1
-15 filler1234 1
-16 filler1234 1
-17 filler1234 1
-18 filler1234 1
-19 filler1234 1
-2 duplicate 1
-18 duplicate 1
-explain select
-a, mid(filler1, 1,10), length(filler1)=length(filler2)
-from t2 ot where a in (select a from t1 it);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot ALL NULL NULL NULL NULL 22
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED it ALL NULL NULL NULL NULL 32
-select
-a, mid(filler1, 1,10), length(filler1)=length(filler2)
-from t2 ot where a in (select a from t1 it);
-a mid(filler1, 1,10) length(filler1)=length(filler2)
-0 filler1234 1
-1 filler1234 1
-2 filler1234 1
-3 filler1234 1
-4 filler1234 1
-5 filler1234 1
-6 filler1234 1
-7 filler1234 1
-8 filler1234 1
-9 filler1234 1
-10 filler1234 1
-11 filler1234 1
-12 filler1234 1
-13 filler1234 1
-14 filler1234 1
-15 filler1234 1
-16 filler1234 1
-17 filler1234 1
-18 filler1234 1
-19 filler1234 1
-3 duplicate 1
-19 duplicate 1
-insert into t1 select a+20, 'filler123456', 'filler123456' from t0;
-insert into t1 select a+20, 'filler123456', 'filler123456' from t0;
-explain select
-a, mid(filler1, 1,10), length(filler1)=length(filler2) as Z
-from t1 ot where a in (select a from t2 it);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 22
-1 PRIMARY ot ALL NULL NULL NULL NULL 52 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED it ALL NULL NULL NULL NULL 22
-select
-a, mid(filler1, 1,10), length(filler1)=length(filler2) as Z
-from t1 ot where a in (select a from t2 it);
-a mid(filler1, 1,10) Z
-0 filler1234 1
-1 filler1234 1
-2 filler1234 1
-3 filler1234 1
-4 filler1234 1
-5 filler1234 1
-6 filler1234 1
-7 filler1234 1
-8 filler1234 1
-9 filler1234 1
-10 filler1234 1
-11 filler1234 1
-12 filler1234 1
-13 filler1234 1
-14 filler1234 1
-15 filler1234 1
-16 filler1234 1
-17 filler1234 1
-18 filler1234 1
-19 filler1234 1
-2 duplicate 1
-18 duplicate 1
-explain select
-a, mid(filler1, 1,10), length(filler1)=length(filler2)
-from t2 ot where a in (select a from t1 it);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot ALL NULL NULL NULL NULL 22
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED it ALL NULL NULL NULL NULL 52
-select
-a, mid(filler1, 1,10), length(filler1)=length(filler2)
-from t2 ot where a in (select a from t1 it);
-a mid(filler1, 1,10) length(filler1)=length(filler2)
-0 filler1234 1
-1 filler1234 1
-2 filler1234 1
-3 filler1234 1
-4 filler1234 1
-5 filler1234 1
-6 filler1234 1
-7 filler1234 1
-8 filler1234 1
-9 filler1234 1
-10 filler1234 1
-11 filler1234 1
-12 filler1234 1
-13 filler1234 1
-14 filler1234 1
-15 filler1234 1
-16 filler1234 1
-17 filler1234 1
-18 filler1234 1
-19 filler1234 1
-3 duplicate 1
-19 duplicate 1
-drop table t1, t2;
-create table t1 (a int, b int, key(a));
-create table t2 (a int, b int, key(a));
-create table t3 (a int, b int, key(a));
-insert into t1 select a,a from t0;
-insert into t2 select a,a from t0;
-insert into t3 select a,a from t0;
-t2 and t3 must be use 'ref', not 'ALL':
-explain select *
-from t0 where a in
-(select t2.a+t3.a from t1 left join (t2 join t3) on t2.a=t1.a and t3.a=t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 10
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func 1 Using where
-2 MATERIALIZED t1 index a a 5 NULL 10 Using where; Using index
-2 MATERIALIZED t2 ref a a 5 test.t1.a 1 Using index
-2 MATERIALIZED t3 ref a a 5 test.t1.a 1 Using index
-drop table t0, t1,t2,t3;
-CREATE TABLE t1 (
-ID int(11) NOT NULL auto_increment,
-Name char(35) NOT NULL default '',
-Country char(3) NOT NULL default '',
-Population int(11) NOT NULL default '0',
-PRIMARY KEY (ID),
-INDEX (Population),
-INDEX (Country)
-);
-CREATE TABLE t2 (
-Code char(3) NOT NULL default '',
-Name char(52) NOT NULL default '',
-SurfaceArea float(10,2) NOT NULL default '0.00',
-Population int(11) NOT NULL default '0',
-Capital int(11) default NULL,
-PRIMARY KEY (Code),
-UNIQUE INDEX (Name),
-INDEX (Population)
-);
-CREATE TABLE t3 (
-Country char(3) NOT NULL default '',
-Language char(30) NOT NULL default '',
-Percentage float(3,1) NOT NULL default '0.0',
-PRIMARY KEY (Country, Language),
-INDEX (Percentage)
-);
-set @bug35674_save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='materialization=off';
-EXPLAIN
-SELECT Name FROM t2
-WHERE t2.Code IN (SELECT Country FROM t1 WHERE Population > 5000000)
-AND
-t2.Code IN (SELECT Country FROM t3
-WHERE Language='English' AND Percentage > 10 AND
-t2.Population > 100000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range Population,Country Population 4 NULL 1 Using index condition; Rowid-ordered scan; Start temporary
-1 PRIMARY t2 eq_ref PRIMARY,Population PRIMARY 3 test.t1.Country 1 Using where; End temporary
-1 PRIMARY t3 eq_ref PRIMARY,Percentage PRIMARY 33 test.t1.Country,const 1 Using index condition; Using where
-set optimizer_switch=@bug35674_save_optimizer_switch;
-DROP TABLE t1,t2,t3;
-CREATE TABLE t1 (
-Code char(3) NOT NULL DEFAULT '',
-Name char(52) NOT NULL DEFAULT '',
-Continent enum('Asia','Europe','North America','Africa','Oceania','Antarctica','South America') NOT NULL DEFAULT 'Asia',
-Region char(26) NOT NULL DEFAULT '',
-SurfaceArea float(10,2) NOT NULL DEFAULT '0.00',
-IndepYear smallint(6) DEFAULT NULL,
-Population int(11) NOT NULL DEFAULT '0',
-LifeExpectancy float(3,1) DEFAULT NULL,
-GNP float(10,2) DEFAULT NULL,
-GNPOld float(10,2) DEFAULT NULL,
-LocalName char(45) NOT NULL DEFAULT '',
-GovernmentForm char(45) NOT NULL DEFAULT '',
-HeadOfState char(60) DEFAULT NULL,
-Capital int(11) DEFAULT NULL,
-Code2 char(2) NOT NULL DEFAULT '',
-PRIMARY KEY (Code)
-);
-CREATE TABLE t2 (
-ID int(11) NOT NULL AUTO_INCREMENT,
-Name char(35) NOT NULL DEFAULT '',
-CountryCode char(3) NOT NULL DEFAULT '',
-District char(20) NOT NULL DEFAULT '',
-Population int(11) NOT NULL DEFAULT '0',
-PRIMARY KEY (ID),
-KEY CountryCode (CountryCode)
-);
-Fill the table with test data
-This must not use LooseScan:
-EXPLAIN SELECT Name FROM t1
-WHERE t1.Code IN (
-SELECT t2.CountryCode FROM t2 WHERE Population > 5000000);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 31
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 3 func 1
-2 MATERIALIZED t2 ALL CountryCode NULL NULL NULL 545 Using where
-SELECT Name FROM t1
-WHERE t1.Code IN (
-SELECT t2.CountryCode FROM t2 WHERE Population > 5000000);
-Name
-Austria
-Canada
-China
-Czech Republic
-drop table t1, t2;
-drop procedure if exists p1;
-drop procedure if exists p2;
-drop procedure if exists p3;
-drop procedure if exists p4;
-CREATE TABLE t1(a INT);
-CREATE TABLE t2(c INT);
-CREATE PROCEDURE p1(v1 int)
-BEGIN
-SELECT 1 FROM t1 WHERE a = v1 AND a IN (SELECT c FROM t2);
-END
-//
-CREATE PROCEDURE p2(v1 int)
-BEGIN
-SELECT 1 FROM t1 WHERE a IN (SELECT c FROM t2);
-END
-//
-CREATE PROCEDURE p3(v1 int)
-BEGIN
-SELECT 1
-FROM
-t1 t01,t1 t02,t1 t03,t1 t04,t1 t05,t1 t06,t1 t07,t1 t08,
-t1 t09,t1 t10,t1 t11,t1 t12,t1 t13,t1 t14,t1 t15,t1 t16,
-t1 t17,t1 t18,t1 t19,t1 t20,t1 t21,t1 t22,t1 t23,t1 t24,
-t1 t25,t1 t26,t1 t27,t1 t28,t1 t29,t1 t30,t1 t31,t1 t32,
-t1 t33,t1 t34,t1 t35,t1 t36,t1 t37,t1 t38,t1 t39,t1 t40,
-t1 t41,t1 t42,t1 t43,t1 t44,t1 t45,t1 t46,t1 t47,t1 t48,
-t1 t49,t1 t50,t1 t51,t1 t52,t1 t53,t1 t54,t1 t55,t1 t56,
-t1 t57,t1 t58,t1 t59,t1 t60
-WHERE t01.a IN (SELECT c FROM t2);
-END
-//
-CREATE PROCEDURE p4(v1 int)
-BEGIN
-SELECT 1
-FROM
-t1 t01,t1 t02,t1 t03,t1 t04,t1 t05,t1 t06,t1 t07,t1 t08,
-t1 t09,t1 t10,t1 t11,t1 t12,t1 t13,t1 t14,t1 t15,t1 t16,
-t1 t17,t1 t18,t1 t19,t1 t20,t1 t21,t1 t22,t1 t23,t1 t24,
-t1 t25,t1 t26,t1 t27,t1 t28,t1 t29,t1 t30,t1 t31,t1 t32,
-t1 t33,t1 t34,t1 t35,t1 t36,t1 t37,t1 t38,t1 t39,t1 t40,
-t1 t41,t1 t42,t1 t43,t1 t44,t1 t45,t1 t46,t1 t47,t1 t48,
-t1 t49,t1 t50,t1 t51,t1 t52,t1 t53,t1 t54,t1 t55,t1 t56,
-t1 t57,t1 t58,t1 t59,t1 t60
-WHERE t01.a = v1 AND t01.a IN (SELECT c FROM t2);
-END
-//
-CALL p1(1);
-1
-CALL p2(1);
-1
-CALL p3(1);
-1
-CALL p4(1);
-1
-DROP TABLE t1, t2;
-DROP PROCEDURE p1;
-DROP PROCEDURE p2;
-DROP PROCEDURE p3;
-DROP PROCEDURE p4;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4);
-create table t1 (a int, b int, key(a));
-insert into t1 select a,a from t0;
-insert into t1 select a+5,a from t0;
-create table t2 (a int, b int, primary key(a));
-insert into t2 select * from t1;
-Table t2, unlike table t1, should be displayed as pulled out
-explain extended select * from t0
-where t0.a in ( select t1.a from t1,t2 where t2.a=t0.a and
-t1.b=t2.b);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 5 100.00 Using where
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.t0.a 1 100.00
-1 PRIMARY t1 ref a a 5 test.t0.a 1 100.00 Using where; FirstMatch(t2)
-Warnings:
-Note 1276 Field or reference 'test.t0.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`t0`.`a` AS `a` from `test`.`t2` semi join (`test`.`t1`) join `test`.`t0` where `test`.`t2`.`a` = `test`.`t0`.`a` and `test`.`t1`.`a` = `test`.`t0`.`a` and `test`.`t1`.`b` = `test`.`t2`.`b`
-update t1 set a=3, b=11 where a=4;
-update t2 set b=11 where a=3;
-select * from t0 where t0.a in
-(select t1.a from t1, t2 where t2.a=t0.a and t1.b=t2.b);
-a
-0
-1
-2
-3
-drop table t0, t1, t2;
-CREATE TABLE t1 (
-id int(11) NOT NULL,
-PRIMARY KEY (id));
-CREATE TABLE t2 (
-id int(11) NOT NULL,
-fid int(11) NOT NULL,
-PRIMARY KEY (id));
-insert into t1 values(1);
-insert into t2 values(1,7503),(2,1);
-explain select count(*)
-from t1
-where fid IN (select fid from t2 where (id between 7502 and 8420) order by fid );
-ERROR 42S22: Unknown column 'fid' in 'IN/ALL/ANY subquery'
-drop table t1, t2;
-create table t1 (a int, b int, key (a), key (b));
-insert into t1 values (2,4),(2,4),(2,4);
-select t1.a from t1
-where
-t1.a in (select 1 from t1 where t1.a in (select 1 from t1) group by t1.a);
-a
-drop table t1;
-create table t1(a int,b int,key(a),key(b));
-insert into t1 values (1,1),(2,2),(3,3);
-select 1 from t1
-where t1.a not in (select 1 from t1
-where t1.a in (select 1 from t1)
-group by t1.b);
-1
-1
-1
-drop table t1;
-CREATE TABLE t1
-(EMPNUM CHAR(3) NOT NULL,
-EMPNAME CHAR(20),
-GRADE DECIMAL(4),
-CITY CHAR(15));
-CREATE TABLE t2
-(PNUM CHAR(3) NOT NULL,
-PNAME CHAR(20),
-PTYPE CHAR(6),
-BUDGET DECIMAL(9),
-CITY CHAR(15));
-CREATE TABLE t3
-(EMPNUM CHAR(3) NOT NULL,
-PNUM CHAR(3) NOT NULL,
-HOURS DECIMAL(5));
-INSERT INTO t1 VALUES ('E1','Alice',12,'Deale');
-INSERT INTO t1 VALUES ('E2','Betty',10,'Vienna');
-INSERT INTO t1 VALUES ('E3','Carmen',13,'Vienna');
-INSERT INTO t1 VALUES ('E4','Don',12,'Deale');
-INSERT INTO t1 VALUES ('E5','Ed',13,'Akron');
-INSERT INTO t2 VALUES ('P1','MXSS','Design',10000,'Deale');
-INSERT INTO t2 VALUES ('P2','CALM','Code',30000,'Vienna');
-INSERT INTO t2 VALUES ('P3','SDP','Test',30000,'Tampa');
-INSERT INTO t2 VALUES ('P4','SDP','Design',20000,'Deale');
-INSERT INTO t2 VALUES ('P5','IRM','Test',10000,'Vienna');
-INSERT INTO t2 VALUES ('P6','PAYR','Design',50000,'Deale');
-INSERT INTO t3 VALUES ('E1','P1',40);
-INSERT INTO t3 VALUES ('E1','P2',20);
-INSERT INTO t3 VALUES ('E1','P3',80);
-INSERT INTO t3 VALUES ('E1','P4',20);
-INSERT INTO t3 VALUES ('E1','P5',12);
-INSERT INTO t3 VALUES ('E1','P6',12);
-INSERT INTO t3 VALUES ('E2','P1',40);
-INSERT INTO t3 VALUES ('E2','P2',80);
-INSERT INTO t3 VALUES ('E3','P2',20);
-INSERT INTO t3 VALUES ('E4','P2',20);
-INSERT INTO t3 VALUES ('E4','P4',40);
-INSERT INTO t3 VALUES ('E4','P5',80);
-SELECT * FROM t1;
-EMPNUM EMPNAME GRADE CITY
-E1 Alice 12 Deale
-E2 Betty 10 Vienna
-E3 Carmen 13 Vienna
-E4 Don 12 Deale
-E5 Ed 13 Akron
-CREATE UNIQUE INDEX t1_IDX ON t1(EMPNUM);
-SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
-(SELECT EMPNUM
-FROM t3
-WHERE PNUM IN
-(SELECT PNUM
-FROM t2
-WHERE PTYPE = 'Design'));
-EMPNAME
-Alice
-Betty
-Don
-DROP INDEX t1_IDX ON t1;
-CREATE INDEX t1_IDX ON t1(EMPNUM);
-SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
-(SELECT EMPNUM
-FROM t3
-WHERE PNUM IN
-(SELECT PNUM
-FROM t2
-WHERE PTYPE = 'Design'));
-EMPNAME
-Alice
-Betty
-Don
-DROP INDEX t1_IDX ON t1;
-SELECT EMPNAME
-FROM t1
-WHERE EMPNUM IN
-(SELECT EMPNUM
-FROM t3
-WHERE PNUM IN
-(SELECT PNUM
-FROM t2
-WHERE PTYPE = 'Design'));
-EMPNAME
-Alice
-Betty
-Don
-DROP TABLE t1, t2, t3;
-CREATE TABLE t1 (f1 INT NOT NULL);
-CREATE VIEW v1 (a) AS SELECT f1 IN (SELECT f1 FROM t1) FROM t1;
-SELECT * FROM v1;
-a
-drop view v1;
-drop table t1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int, b int);
-insert into t1 values (0,0),(1,1),(2,2);
-create table t2 as select * from t1;
-create table t3 (pk int, a int, primary key(pk));
-insert into t3 select a,a from t0;
-explain
-select * from t1 left join t2 on (t2.a= t1.a and t2.a in (select pk from t3));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 Using where
-2 MATERIALIZED t3 index PRIMARY PRIMARY 4 NULL 10 Using index
-drop table t0, t1, t2, t3;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a char(200), b char(200), c char(200), primary key (a,b,c)) engine=innodb;
-insert into t2 select concat(a, repeat('X',198)),repeat('B',200),repeat('B',200) from t1;
-insert into t2 select concat(a, repeat('Y',198)),repeat('B',200),repeat('B',200) from t1;
-alter table t2 add filler1 int;
-insert into t1 select A.a + 10*(B.a + 10*C.a) from t1 A, t1 B, t1 C;
-set @save_join_buffer_size=@@join_buffer_size;
-set join_buffer_size=1;
-select * from t2 where filler1 in ( select a from t1);
-a b c filler1
-set join_buffer_size=default;
-drop table t1, t2;
-create table t1 (a int not null);
-drop procedure if exists p1;
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE EXIT HANDLER FOR SQLEXCEPTION select a from t1;
-prepare s1 from '
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in (
- select a from t1 where a in ( select a from t1)
- )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))';
-execute s1;
-END;
-|
-call p1();
-a
-drop procedure p1;
-drop table t1;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int) as select A.a + 10 *(B.a + 10*C.a) as a from t0 A, t0 B, t0 C;
-create table t2 (id int, a int, primary key(id), key(a)) as select a as id, a as a from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `id` int(11) NOT NULL,
- `a` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `a` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-set @a=0;
-create table t3 as select * from t2 limit 0;
-insert into t3 select @a:=@a+1, t2.a from t2, t0;
-insert into t3 select @a:=@a+1, t2.a from t2, t0;
-insert into t3 select @a:=@a+1, t2.a from t2, t0;
-alter table t3 add primary key(id), add key(a);
-The following must use loose index scan over t3, key a:
-explain select count(a) from t2 where a in ( SELECT a FROM t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index a a 5 NULL 1000 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t3 index a a 5 NULL 30000 Using index
-select count(a) from t2 where a in ( SELECT a FROM t3);
-count(a)
-1000
-drop table t0,t1,t2,t3;
-
-BUG#42740: crash in optimize_semijoin_nests
-
-create table t1 (c6 timestamp,key (c6)) engine=innodb;
-create table t2 (c2 double) engine=innodb;
-explain select 1 from t2 where c2 = any (select log10(null) from t1 where c6 <null) ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-drop table t1, t2;
-#
-# BUG#42742: crash in setup_sj_materialization, Copy_field::set
-#
-create table t3 ( c1 year) engine=innodb;
-insert into t3 values (2135),(2142);
-create table t2 (c1 tinytext,c2 text,c6 timestamp) engine=innodb;
-# The following must not crash, EXPLAIN should show one SJ strategy, not a mix:
-explain select 1 from t2 where
-c2 in (select 1 from t3, t2) and
-c1 in (select convert(c6,char(1)) from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where; FirstMatch(t2)
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 FirstMatch(t2)
-drop table t2, t3;
-#
-# BUG#761598: InnoDB: Error: row_search_for_mysql() is called without ha_innobase::external_lock() in maria-5.3
-#
-CREATE TABLE t1 ( f1 int NOT NULL , f10 int) ;
-INSERT IGNORE INTO t1 VALUES (25,0),(29,0);
-CREATE TABLE t2 ( f10 int) ENGINE=InnoDB;
-CREATE TABLE t3 ( f11 int) ;
-INSERT IGNORE INTO t3 VALUES (0);
-SELECT alias1.f10 AS field2
-FROM t2 AS alias1
-JOIN (
-t3 AS alias2
-JOIN t1 AS alias3
-ON alias3.f10
-) ON alias3.f1
-WHERE alias2.f11 IN (
-SELECT SQ4_alias1.f10
-FROM t1 AS SQ4_alias1
-LEFT JOIN t2 AS SQ4_alias3 ON SQ4_alias3.f10
-)
-GROUP BY field2;
-field2
-drop table t1, t2, t3;
-#
-# BUG#849763: Wrong result with second execution of prepared statement with semijoin + view
-#
-CREATE TABLE t1 ( c varchar(1)) engine=innodb;
-INSERT INTO t1 VALUES ('r');
-CREATE TABLE t2 ( a integer, b varchar(1), c varchar(1)) engine=innodb;
-INSERT INTO t2 VALUES (1,'r','r');
-CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1;
-PREPARE st1 FROM 'SELECT * FROM t2 WHERE a = SOME (SELECT a FROM v1 WHERE v1.c = t2.c)';
-EXECUTE st1;
-a b c
-1 r r
-EXECUTE st1;
-a b c
-1 r r
-DROP VIEW v1;
-DROP TABLE t1, t2;
-#
-# BUG#858732: Wrong result with semijoin + loosescan + comma join
-#
-CREATE TABLE t1 (f13 int(11) NOT NULL , PRIMARY KEY (f13)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (16),(24);
-CREATE TABLE t2 (f14 int(11) NOT NULL, f12 varchar(1) NOT NULL, KEY (f12,f14)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (6,'y');
-CREATE TABLE t3 (f12 varchar(1) NOT NULL) ENGINE=InnoDB;
-INSERT INTO t3 VALUES ('r'),('s'),('t'),('v'),('w'),('x'),('y');
-# The following must use LooseScan but not join buffering
-explain
-SELECT * FROM t3
-WHERE f12 IN (SELECT alias2.f12 FROM t1 AS alias1, t2 AS alias2, t1 WHERE alias1.f13 = 24);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias1 const PRIMARY PRIMARY 4 const 1 Using index
-1 PRIMARY alias2 index f12 f12 7 NULL 1 Using index; LooseScan
-1 PRIMARY t1 index NULL PRIMARY 4 NULL 2 Using index; FirstMatch(alias2)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 7 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM t3
-WHERE f12 IN (SELECT alias2.f12 FROM t1 AS alias1, t2 AS alias2, t1 WHERE alias1.f13 = 24);
-f12
-y
-DROP TABLE t1,t2,t3;
-#
-# BUG#869012: Wrong result with semijoin + materialization + AND in WHERE
-#
-CREATE TABLE t1 (f3 varchar(1) , f4 varchar(1) ) engine=InnoDB;
-INSERT IGNORE INTO t1 VALUES ('x','x'),('x','x');
-CREATE TABLE t2 ( f4 varchar(1) ) ;
-INSERT IGNORE INTO t2 VALUES ('g');
-CREATE TABLE t3 (f4 varchar(1) ) Engine=InnoDB;
-INSERT IGNORE INTO t3 VALUES ('x');
-set @tmp_869012=@@optimizer_switch;
-SET optimizer_switch='semijoin=on,materialization=on';
-SELECT *
-FROM t1 , t2
-WHERE ( t1.f4 ) IN ( SELECT f4 FROM t3 )
-AND t2.f4 != t1.f3 ;
-f3 f4 f4
-x x g
-x x g
-set optimizer_switch= @tmp_869012;
-DROP TABLE t1,t2,t3;
-#
-# BUG#869001: Wrong result with semijoin + materialization + firstmatch + multipart key
-#
-set @tmp869001_jcl= @@join_cache_level;
-set @tmp869001_os= @@optimizer_switch;
-SET join_cache_level=0;
-SET optimizer_switch='materialization=on,semijoin=on,firstmatch=on,loosescan=off';
-CREATE TABLE t1 ( f2 int, f3 varchar(1), KEY (f3,f2)) engine=innodb;
-INSERT INTO t1 VALUES (8,'x'),(NULL,'x'),(8,'c');
-CREATE TABLE t2 ( f4 varchar(1)) engine=innodb;
-INSERT INTO t2 VALUES ('x');
-CREATE TABLE t3 ( f1 int) engine=innodb;
-INSERT INTO t3 VALUES (8),(6),(2),(9),(6);
-CREATE TABLE t4 ( f3 varchar(1)) engine=innodb;
-INSERT INTO t4 VALUES ('p'),('j'),('c');
-SELECT *
-FROM t1 JOIN t2 ON (t2.f4 = t1.f3 )
-WHERE ( 8 ) IN (
-SELECT t3.f1 FROM t3 , t4
-);
-f2 f3 f4
-NULL x x
-8 x x
-DROP TABLE t1, t2, t3, t4;
-set join_cache_level= @tmp869001_jcl;
-set optimizer_switch= @tmp869001_os;
-#
-# Bug #881318: join cache + duplicate elimination + left join
-# with empty materialized derived inner table
-#
-CREATE TABLE t1 (b varchar(1)) ENGINE=InnoDB;
-CREATE TABLE t2 (a varchar(1)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES ('a');
-CREATE TABLE t3 (a varchar(1), b varchar(1)) ENGINE=InnoDB;
-INSERT INTO t3 VALUES ('c','c');
-CREATE TABLE t4 (b varchar(1)) ENGINE=InnoDB;
-INSERT INTO t4 VALUES ('c'), ('b');
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-EXPLAIN
-SELECT * FROM t3 LEFT JOIN (v1,t2) ON t3.a = t2.a
-WHERE t3.b IN (SELECT b FROM t4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 2
-2 MATERIALIZED t4 ALL NULL NULL NULL NULL 2
-3 DERIVED t1 ALL NULL NULL NULL NULL 1
-SELECT * FROM t3 LEFT JOIN (v1,t2) ON t3.a = t2.a
-WHERE t3.b IN (SELECT b FROM t4);
-a b b a
-c c NULL NULL
-DROP VIEW v1;
-DROP TABLE t1,t2,t3,t4;
-#
-# BUG#912538: Wrong result (missing rows) with semijoin=on, firstmatch=on, ...
-#
-CREATE TABLE t1 ( a INT NOT NULL, UNIQUE KEY(a) );
-INSERT INTO t1 VALUES (1),(2),(3),(4);
-CREATE TABLE t2 ( b INT, c INT ) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (1,1);
-SELECT * FROM t1, t2 WHERE c IN (SELECT c FROM t1, t2 WHERE a = b);
-a b c
-1 1 1
-2 1 1
-3 1 1
-4 1 1
-DROP TABLE t1,t2;
-#
-# BUG#962667: Assertion `0' failed in QUICK_INDEX_SORT_SELECT::need_sorted_output()
-# with index_merge+index_merge_sort_union+loosescan+semijoin
-#
-CREATE TABLE t1 (
-a INT, b VARCHAR(1), c INT,
-KEY(a), KEY(b)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-(1,'v',9),(2,'v',8),(3,'c',7),(4,'m',6),(5,'x',5),
-(6,'i',4),(7,'e',3),(8,'p',2),(9,'s',1),(10,'j',9),
-(11,'z',8),(12,'c',7),(13,'a',6),(14,'q',5),(15,'y',4),
-(16,'n',3),(17,'r',2),(18,'v',1),(19,'p',0);
-CREATE TABLE t2 (
-pk INT, d VARCHAR(1), e INT,
-PRIMARY KEY(pk), KEY(d,e)
-) ENGINE=InnoDB;
-INSERT INTO t2 VALUES
-(1,'x',1),(2,'d',2),(3,'r',3),(4,'f',4),(5,'y',5),
-(6,'u',6),(7,'m',7),(8,'k',8),(9,'o',9),(10,'w',1),
-(11,'m',2),(12,'q',3),(13,'m',4),(14,'d',5),
-(15,'g',6),(16,'x',7),(17,'f',8);
-explain
-SELECT * FROM t1 WHERE b IN (
-SELECT d FROM t2, t1
-WHERE a = d AND ( pk < 2 OR d = 'z' )
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL b NULL NULL NULL 19
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t2 index PRIMARY,d d 9 NULL 17 Using where; Using index
-2 MATERIALIZED t1 ref a a 5 test.t2.d 1 Using where; Using index
-SELECT * FROM t1 WHERE b IN (
-SELECT d FROM t2, t1
-WHERE a = d AND ( pk < 2 OR d = 'z' )
-);
-a b c
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'x'
-DROP TABLE t1, t2;
-#
-# BUG#951937: Wrong result (missing rows) with semijoin+materialization, IN subquery, InnoDB, TEMPTABLE view
-#
-CREATE TABLE t1 (
-a VARCHAR(1),
-b VARCHAR(1) NOT NULL,
-KEY(a)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-('j','j'),('v','v'),('c','c'),('m','m'),('d','d'),
-('y','y'),('t','t'),('d','d'),('s','s'),('r','r'),
-('m','m'),('b','b'),('x','x'),('g','g'),('p','p'),
-('q','q'),('w','w'),('d','d'),('e','e');
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-# This query returned 6 rows instead of 19
-SELECT * FROM v1
-WHERE ( a, a ) IN (
-SELECT alias2.b, alias2.a
-FROM t1 AS alias1, t1 AS alias2
-WHERE alias2.b = alias1.a
-AND ( alias1.b >= alias1.a OR alias2.b = 'z' )
-);
-a b
-b b
-c c
-d d
-d d
-d d
-e e
-g g
-j j
-m m
-m m
-p p
-q q
-r r
-s s
-t t
-v v
-w w
-x x
-y y
-# Another testcase, without the VIEW:
-CREATE TABLE t2 (a VARCHAR(1), b VARCHAR(1) NOT NULL, KEY(a)) ENGINE=InnoDB;
-INSERT INTO t2 SELECT * FROM t1;
-INSERT INTO t2 SELECT * FROM t1;
-EXPLAIN
-SELECT * FROM t2
-WHERE (a, a) IN (SELECT alias2.b, alias2.a FROM t1 AS alias1, t1 AS alias2
-WHERE
-alias2.b = alias1.a AND
-(alias1.b >= alias1.a OR alias2.b = 'z'));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL a NULL NULL NULL 38
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-2 MATERIALIZED alias1 ALL a NULL NULL NULL 19 Using where
-2 MATERIALIZED alias2 ref a a 4 test.alias1.a 1 Using where
-SELECT * FROM t2
-WHERE (a, a) IN (SELECT alias2.b, alias2.a FROM t1 AS alias1, t1 AS alias2
-WHERE
-alias2.b = alias1.a AND
-(alias1.b >= alias1.a OR alias2.b = 'z'));
-a b
-b b
-b b
-c c
-c c
-d d
-d d
-d d
-d d
-d d
-d d
-e e
-e e
-g g
-g g
-j j
-j j
-m m
-m m
-m m
-m m
-p p
-p p
-q q
-q q
-r r
-r r
-s s
-s s
-t t
-t t
-v v
-v v
-w w
-w w
-x x
-x x
-y y
-y y
-DROP VIEW v1;
-DROP TABLE t1, t2;
-#
-# BUG#965872: Server crashes in embedding_sjm on a simple 1-table select with AND and OR
-# (this is a regression caused by the fix for BUG#951937)
-CREATE TABLE t1 ( a INT, b INT, c INT, d INT );
-INSERT INTO t1 VALUES (4,2,8,9),(4,2,7,8);
-SELECT * FROM t1
-WHERE a = d AND ( b = 50 AND b = d OR a = c );
-a b c d
-DROP TABLE t1;
-#
-# BUG#951283: Wrong result (missing rows) with semijoin+firstmatch, IN/ANY subquery
-#
-set @tmp_951283=@@optimizer_prune_level;
-SET optimizer_prune_level=0;
-CREATE TABLE t1 ( a INT ) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-(10),(11),(12),(13),(14),(15),(16),
-(17),(18),(19),(20),(21),(22),(23);
-CREATE TABLE t2 (
-b INT PRIMARY KEY,
-c VARCHAR(1),
-d VARCHAR(1),
-KEY(c)
-) ENGINE=InnoDB;
-INSERT INTO t2 VALUES
-(1,'j','j'),(2,'v','v'),(3,'c','c'),(4,'m','m'),
-(5,'d','d'),(6,'d','d'),(7,'y','y'),(8,'t','t'),
-(9,'d','d'),(10,'s','s'),(11,'r','r'),(12,'m','m'),
-(13,'b','b'),(14,'x','x'),(15,'g','g'),(16,'p','p'),
-(17,'q','q'),(18,'w','w'),(19,'d','d');
-EXPLAIN
-SELECT COUNT(*) FROM t1 AS alias1, t1 AS alias2, t2 AS alias3
-WHERE alias3.d IN (
-SELECT alias4.c FROM t2 AS alias4, t2 AS alias5
-WHERE alias5.b = alias4.b
-AND ( alias5.b >= alias3.b OR alias5.c != alias3.c )
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias3 ALL PRIMARY NULL NULL NULL 19 Using where
-1 PRIMARY alias4 ref PRIMARY,c c 4 test.alias3.d 1 Using index
-1 PRIMARY alias5 eq_ref PRIMARY PRIMARY 4 test.alias4.b 1 Using where; FirstMatch(alias3)
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 14 Using join buffer (flat, BNL join)
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 14 Using join buffer (flat, BNL join)
-SELECT COUNT(*) FROM t1 AS alias1, t1 AS alias2, t2 AS alias3
-WHERE alias3.d IN (
-SELECT alias4.c FROM t2 AS alias4, t2 AS alias5
-WHERE alias5.b = alias4.b
-AND ( alias5.b >= alias3.b OR alias5.c != alias3.c )
-);
-COUNT(*)
-3724
-EXPLAIN
-SELECT COUNT(*) FROM t1 AS alias1, t1 AS alias2, t2 AS alias3
-WHERE alias3.d IN (
-SELECT alias4.c FROM t2 AS alias4, t2 AS alias5
-WHERE alias5.b = alias4.b
-AND ( alias5.b >= alias3.b OR alias3.c != alias5.c )
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY alias3 ALL PRIMARY NULL NULL NULL 19 Using where
-1 PRIMARY alias4 ref PRIMARY,c c 4 test.alias3.d 1 Using index
-1 PRIMARY alias5 eq_ref PRIMARY PRIMARY 4 test.alias4.b 1 Using where; FirstMatch(alias3)
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 14 Using join buffer (flat, BNL join)
-1 PRIMARY alias1 ALL NULL NULL NULL NULL 14 Using join buffer (flat, BNL join)
-SELECT COUNT(*) FROM t1 AS alias1, t1 AS alias2, t2 AS alias3
-WHERE alias3.d IN (
-SELECT alias4.c FROM t2 AS alias4, t2 AS alias5
-WHERE alias5.b = alias4.b
-AND ( alias5.b >= alias3.b OR alias3.c != alias5.c )
-);
-COUNT(*)
-3724
-set optimizer_prune_level=@tmp_951283;
-DROP TABLE t1,t2;
-#
-# Bug mdev-5135: crash on semijoin with nested outer joins
-#
-CREATE TABLE t1 (i1 int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (i2 int, INDEX(i2)) ENGINE=MyISAM;
-CREATE TABLE t3 (i3 int, c varchar(1), INDEX(i3), INDEX(c)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (3,'x'),(4,'y');
-SELECT * FROM t1 WHERE ( 1, 1 ) IN (
-SELECT i2, i2 FROM t2 LEFT OUTER JOIN (
-t3 AS t3a INNER JOIN t3 AS t3b ON ( t3a.i3 = t3b.i3 )
-) ON ( t3a.c = t3b.c )
-);
-i1
-DROP TABLE t1,t2,t3;
-#
-# MDEV-5582: Plugin 'MEMORY' has ref_count=1 after shutdown with materialization+semijoin
-#
-CREATE TABLE t1 (a INT) engine=innodb;
-INSERT INTO t1 VALUES (8),(9);
-CREATE TABLE t2 (b INT) engine=innodb;
-INSERT INTO t2 VALUES (2),(3);
-CREATE TABLE t3 (c INT, INDEX(c)) engine=innodb;
-INSERT INTO t2 VALUES (4),(5);
-explain
-SELECT * FROM t1 WHERE 9 IN ( SELECT b FROM t2 WHERE 1 IN ( SELECT MIN(c) FROM t3 ) );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-3 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL No matching min/max row
-SELECT * FROM t1 WHERE 9 IN ( SELECT b FROM t2 WHERE 1 IN ( SELECT MIN(c) FROM t3 ) );
-a
-DROP TABLE t1,t2,t3;
-DROP TABLE IF EXISTS t1,t2,t3,t4;
-#
-# MDEV-4782: Valgrind warnings (Conditional jump or move depends on uninitialised value) with InnoDB, semijoin
-#
-CREATE TABLE t1 ( t1_pk1 varchar(3), t1_pk2 varchar(52), PRIMARY KEY (t1_pk1,t1_pk2)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('CHN','Chinese'),('USA','English');
-CREATE TABLE t2 ( t2_i int(11), t2_c varchar(52)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (86,'English');
-CREATE TABLE t3 ( t3_i int(11), t3_c varchar(35)) ENGINE=InnoDB;
-INSERT INTO t3 VALUES (3989,'Abilene'),(3873,'Akron');
-create table t4 like t1;
-insert into t4 select * from t1;
-SELECT * FROM t1, t3 WHERE t3_c IN ( SELECT t1_pk2 FROM t4, t2 WHERE t2_c = t1_pk2 AND t2_i >= t3_i ) AND ( t1_pk1 = 'POL' );
-t1_pk1 t1_pk2 t3_i t3_c
-explain
-SELECT * FROM t1, t3 WHERE t3_c IN ( SELECT t1_pk2 FROM t4, t2 WHERE t2_c = t1_pk2 AND t2_i >= t3_i ) AND ( t1_pk1 = 'POL' );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ref PRIMARY PRIMARY 5 const 1 Using where; Using index
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Start temporary
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t4 index NULL PRIMARY 59 NULL 2 Using where; Using index; End temporary
-DROP TABLE t1,t2,t3,t4;
-#
-# MDEV-6263: Wrong result when using IN subquery with order by
-#
-CREATE TABLE t1 (
-id int(11) NOT NULL,
-nombre varchar(255) NOT NULL,
-PRIMARY KEY (id)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t1 (id, nombre) VALUES
-(1, 'row 1'),(2, 'row 2'),(3, 'row 3'),
-(4, 'row 4'),(5, 'row 5'),(6, 'row 6');
-CREATE TABLE t2 (
-id_algo int(11) NOT NULL,
-id_agente int(11) NOT NULL,
-PRIMARY KEY (id_algo,id_agente),
-KEY another_data (id_agente)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-INSERT INTO t2 (id_algo, id_agente) VALUES
-(1, 1),(1, 2),(2, 1),(2, 2),(2, 3),(3, 1);
-SELECT * FROM t1 WHERE id in (select distinct id_agente from t2) ORDER BY nombre ASC;
-id nombre
-1 row 1
-2 row 2
-3 row 3
-SELECT * FROM t1 WHERE id in (select distinct id_agente from t2);
-id nombre
-1 row 1
-2 row 2
-3 row 3
-DROP TABLE t1, t2;
-#
-# MDEV-7474: Semi-Join's DuplicateWeedout strategy skipped for some values of optimizer_search_depth
-#
-CREATE TABLE t1 (
-t1id BIGINT(20) NOT NULL,
-code VARCHAR(20),
-PRIMARY KEY (t1id)
-) COLLATE='utf8mb4_bin' ENGINE=InnoDB;
-CREATE TABLE t2 (
-t2id BIGINT(20) NOT NULL,
-t1idref BIGINT(20) NOT NULL,
-code VARCHAR(20),
-PRIMARY KEY (t2id),
-INDEX FK_T2_T1Id (t1idref),
-CONSTRAINT FK_T2_T1Id FOREIGN KEY (t1idref) REFERENCES t1 (t1id)
-) COLLATE='utf8mb4_bin' ENGINE=InnoDB;
-CREATE TABLE t3 (
-t3idref BIGINT(20) NOT NULL,
-t2idref BIGINT(20) NOT NULL,
-sequencenumber INT(10) NOT NULL,
-PRIMARY KEY (t3idref, t2idref),
-INDEX FK_T3_T2Id (t2idref),
-CONSTRAINT FK_T3_T2Id FOREIGN KEY (t2idref) REFERENCES t2 (t2id)
-) COLLATE='utf8mb4_bin' ENGINE=InnoDB;
-INSERT INTO t1 (t1id) VALUES (100001),(100017),(100018),(100026),(100027),(100028),(100029),(100030),
-(100031),(100032),(100033),(100034),(100035),(100036),(100037),(100038),(100040),(100041),(100042),
-(100043),(100044),(100045),(100046),(100047);
-INSERT IGNORE INTO t2 (t2id, t1idref) SELECT t1id, t1id FROM t1;
-INSERT IGNORE INTO t1 VALUES (200001, 'a');
-INSERT IGNORE INTO t2 (t2id, t1idref) VALUES (200011, 200001),(200012, 200001),(200013, 200001);
-INSERT IGNORE INTO t3 VALUES (1, 200011, 1), (1, 200012, 2), (1, 200013, 3);
-set @tmp7474= @@optimizer_search_depth;
-SET SESSION optimizer_search_depth = 1;
-SELECT SQL_NO_CACHE
-T2_0_.t1idref,
-T2_0_.t2id
-FROM
-t2 T2_0_
-WHERE
-T2_0_.t1idref IN (
-SELECT
-T1_1_.t1id
-FROM
-t3 T3_0_
-INNER JOIN
-t2 T2_1_
-ON T3_0_.t2idref=T2_1_.t2id
-INNER JOIN
-t1 T1_1_
-ON T2_1_.t1idref=T1_1_.t1id
-WHERE
-T3_0_.t3idref= 1
-);
-t1idref t2id
-200001 200011
-200001 200012
-200001 200013
-explain SELECT SQL_NO_CACHE
-T2_0_.t1idref,
-T2_0_.t2id
-FROM
-t2 T2_0_
-WHERE
-T2_0_.t1idref IN (
-SELECT
-T1_1_.t1id
-FROM
-t3 T3_0_
-INNER JOIN
-t2 T2_1_
-ON T3_0_.t2idref=T2_1_.t2id
-INNER JOIN
-t1 T1_1_
-ON T2_1_.t1idref=T1_1_.t1id
-WHERE
-T3_0_.t3idref= 1
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY T3_0_ ref PRIMARY,FK_T3_T2Id PRIMARY 8 const 3 Using index; Start temporary
-1 PRIMARY T2_1_ eq_ref PRIMARY,FK_T2_T1Id PRIMARY 8 test.T3_0_.t2idref 1
-1 PRIMARY T1_1_ eq_ref PRIMARY PRIMARY 8 test.T2_1_.t1idref 1 Using index
-1 PRIMARY T2_0_ ref FK_T2_T1Id FK_T2_T1Id 8 test.T2_1_.t1idref 1 Using index; End temporary
-drop table t3,t2,t1;
-set optimizer_search_depth=@tmp7474;
-#
-#
-#
-CREATE TABLE t1 (
-id int(16) NOT NULL AUTO_INCREMENT,
-PRIMARY KEY (id)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-CREATE TABLE t2 (
-id int(16) NOT NULL AUTO_INCREMENT,
-t3_id int(16) NOT NULL DEFAULT '0',
-t1_id int(16) NOT NULL DEFAULT '0',
-PRIMARY KEY (id),
-KEY t3_idx (t3_id),
-KEY t1_idx (t1_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-CREATE TABLE t3 (
-id int(16) NOT NULL AUTO_INCREMENT,
-PRIMARY KEY (id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-INSERT INTO t3 VALUES (1);
-INSERT INTO t2 VALUES (1, 1, 1);
-INSERT INTO t2 VALUES (2, 1, 2);
-INSERT INTO t2 VALUES (3, 1, 2);
-INSERT INTO t2 VALUES (4, 1, 1);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t1 VALUES (2);
-SELECT * FROM t1 WHERE t1.id IN (
-SELECT t2.t1_id FROM t3 JOIN t2 ON t3.id = t2.t3_id WHERE t3.id = 1
-);
-id
-1
-2
-drop table t1,t2,t3;
-#
-# MDEV-11108: Assertion `uniq_tuple_length_arg <= table->file->max_key_length()' failed in SJ_TMP_TABLE::create_sj_weedout_tmp_table
-#
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-CREATE TABLE t2 (pk BLOB, b INT, PRIMARY KEY(pk(1000))) ENGINE=InnoDB;
-CREATE TABLE t3 (c INT) ENGINE=InnoDB;
-CREATE OR REPLACE ALGORITHM=MERGE VIEW v3 AS SELECT * FROM t3;
-INSERT INTO t3 VALUES (1),(2),(3),(4),(5),(6),(7),(8);
-SELECT * FROM t1, t2
-WHERE a IN ( SELECT b FROM t2 LEFT JOIN v3 ON ( c = b ) ) ;
-a pk b
-DROP TABLE t1,t2,t3;
-DROP VIEW v3;
-# This must be the last in the file:
-set optimizer_switch=@subselect_sj2_tmp;
-set optimizer_switch=default;
-select @@optimizer_switch like '%materialization=on%';
-@@optimizer_switch like '%materialization=on%'
-1
-#
-# BUG#906385: EXPLAIN EXTENDED crashes in TABLE_LIST::print with limited max_join_size
-#
-CREATE TABLE t1 ( a INT );
-CREATE TABLE t2 ( b INT );
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES
-(1),(2),(3),(4),(5),
-(6),(7),(8),(9),(10),
-(11),(12),(13),(14),(15),
-(16),(17),(18),(19),(20);
-set @tmp_906385=@@max_join_size;
-SET max_join_size = 80;
-EXPLAIN EXTENDED
-SELECT COUNT(*) FROM t1
-WHERE a IN
-( SELECT b FROM t2 GROUP BY b )
-AND ( 6 ) IN
-( SELECT MIN( t2.b ) FROM t2 alias1, t2 );
-ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
-DROP TABLE t1, t2;
-set max_join_size= @tmp_906385;
-#
-# mdev-3995: Wrong result for semijoin with materialization
-#
-set @save_optimizer_switch=@@optimizer_switch;
-CREATE TABLE t1 (
-cat_id int(10) unsigned NOT NULL,
-PRIMARY KEY (cat_id)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-(709411),(709412),(709413),(709414),(709416),(709417),(709418),(709419),(709421),(709422),
-(709424),(709425),(709427),(709428),(709429),(709431),(709432),(709433),(709434),(709435),
-(709438),(709439),(709441),(709442),(709443),(709444),(709445),(709446),(709447),(709450),
-(709451),(709454),(709455),(709456),(709457),(709459),(709460),(709461),(709462),(709463),
-(709464),(709465),(709467),(709469),(709470),(709471),(709472),(709473),(709474),(709475),
-(709476),(709477),(709478),(709479),(709480),(709481),(709483),(709484),(709485),(709487),
-(709490),(709491),(709492),(709493),(709494),(709495),(709496),(709497),(709498),(709499),
-(709500),(709501),(709502),(709503),(709504),(709505),(709506),(709507),(709509),(709510),
-(709511),(709512),(709513),(709514),(709515),(709516),(709517),(709518),(709519),(709520),
-(709521),(709522),(709523),(709524),(709525),(709526),(709527),(709528),(709529),(709530),
-(709531),(709532),(709533),(709534),(709535),(709536),(709537),(709538),(709539),(709540),
-(709541),(709542),(709543),(709544),(709545),(709546),(709548),(709549),(709551),(709552),
-(709553),(709555),(709556),(709557),(709558),(709559),(709560),(709561),(709562),(709563),
-(709564),(709565),(709566),(709567),(709568),(709569),(709570),(709571),(709572),(709573),
-(709574),(709575),(709576),(709577),(709578),(709579),(709580),(709581),(709582),(709583),
-(709584),(709585),(709586),(709587),(709588),(709590),(709591),(709592),(709593),(709594),
-(709595),(709596),(709597),(709598),(709600),(709601),(709602),(709603),(709604),(709605),
-(709606),(709608),(709609),(709610),(709611),(709612),(709613),(709614),(709615),(709616),
-(709617),(709618),(709619),(709620),(709621),(709622),(709623),(709624),(709625),(709626),
-(709627),(709628),(709629),(709630),(709631),(709632),(709633),(709634),(709635),(709637),
-(709638),(709639),(709640),(709641),(709642),(709643),(709644),(709645),(709646),(709649),
-(709650),(709651),(709652),(709653),(709654),(709655),(709656),(709657),(709658),(709659);
-CREATE TABLE t2 (
-cat_id int(10) NOT NULL,
-KEY cat_id (cat_id)
-) ENGINE=MyISAM;
-INSERT INTO t2 VALUES
-(708742),(708755),(708759),(708761),(708766),(708769),(708796),(708798),(708824),(708825),
-(708838),(708844),(708861),(708882),(708887),(708889),(708890),(709586),(709626);
-CREATE TABLE t3 (
-sack_id int(10) unsigned NOT NULL,
-kit_id tinyint(3) unsigned NOT NULL DEFAULT '0',
-cat_id int(10) unsigned NOT NULL,
-PRIMARY KEY (sack_id,kit_id,cat_id)
-) ENGINE=MyISAM;
-INSERT INTO t3 VALUES
-(33479,6,708523),(33479,6,708632),(33479,6,709085),(33479,6,709586),(33479,6,709626);
-CREATE TABLE t4 (
-cat_id int(10) unsigned NOT NULL,
-KEY cat_id (cat_id)
-) ENGINE=MyISAM;
-INSERT INTO t4 (cat_id) SELECT cat_id from t2;
-set optimizer_switch='materialization=off';
-EXPLAIN
-SELECT count(*) FROM t1, t3
-WHERE t1.cat_id = t3.cat_id AND
-t3.cat_id IN (SELECT cat_id FROM t2) AND
-t3.sack_id = 33479 AND t3.kit_id = 6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ref PRIMARY PRIMARY 5 const,const 4 Using index
-1 PRIMARY t2 ref cat_id cat_id 4 test.t3.cat_id 2 Using where; Using index; FirstMatch(t3)
-1 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.t2.cat_id 1 Using where; Using index
-SELECT count(*) FROM t1, t3
-WHERE t1.cat_id = t3.cat_id AND
-t3.cat_id IN (SELECT cat_id FROM t2) AND
-t3.sack_id = 33479 AND t3.kit_id = 6;
-count(*)
-2
-set optimizer_switch='materialization=on';
-EXPLAIN
-SELECT count(*) FROM t1, t3
-WHERE t1.cat_id = t3.cat_id AND
-t3.cat_id IN (SELECT cat_id FROM t4) AND
-t3.sack_id = 33479 AND t3.kit_id = 6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ref PRIMARY PRIMARY 5 const,const 4 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.t3.cat_id 1 Using index
-2 MATERIALIZED t4 index cat_id cat_id 4 NULL 19 Using index
-SELECT count(*) FROM t1, t3
-WHERE t1.cat_id = t3.cat_id AND
-t3.cat_id IN (SELECT cat_id FROM t4) AND
-t3.sack_id = 33479 AND t3.kit_id = 6;
-count(*)
-2
-EXPLAIN
-SELECT count(*) FROM t1, t3
-WHERE t1.cat_id = t3.cat_id AND
-t3.cat_id IN (SELECT cat_id FROM t2) AND
-t3.sack_id = 33479 AND t3.kit_id = 6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ref PRIMARY PRIMARY 5 const,const 4 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 Using where
-1 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.t3.cat_id 1 Using index
-2 MATERIALIZED t2 index cat_id cat_id 4 NULL 19 Using index
-SELECT count(*) FROM t1, t3
-WHERE t1.cat_id = t3.cat_id AND
-t3.cat_id IN (SELECT cat_id FROM t2) AND
-t3.sack_id = 33479 AND t3.kit_id = 6;
-count(*)
-2
-DROP TABLE t1,t2,t3,t4;
-set optimizer_switch=@save_optimizer_switch;
-#
-# mdev-3913: LEFT JOIN with materialized multi-table IN subquery in WHERE
-#
-set @save_optimizer_switch=@@optimizer_switch;
-CREATE TABLE t1 (a1 char(1), b1 char(1), index idx(b1,a1));
-INSERT INTO t1 VALUES ('f','c'),('d','m'),('g','y');
-INSERT INTO t1 VALUES ('f','c'),('d','m'),('g','y');
-CREATE TABLE t2 (a2 char(1), b2 char(1));
-INSERT INTO t2 VALUES ('y','y'),('y','y'),('w','w');
-CREATE TABLE t3 (a3 int);
-INSERT INTO t3 VALUES (8),(6);
-CREATE TABLE t4 (a4 char(1), b4 char(1));
-INSERT INTO t4 VALUES ('y','y'),('y','y'),('w','w');
-set optimizer_switch='materialization=off';
-EXPLAIN EXTENDED
-SELECT * FROM t1 LEFT JOIN t2 ON ( b1 = a2 )
-WHERE ( b1, b1 ) IN ( SELECT a4, b4 FROM t3, t4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 100.00 Start temporary
-1 PRIMARY t4 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t1 ref idx idx 2 test.t4.a4 1 100.00 Using index; End temporary
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`b1` AS `b1`,`test`.`t2`.`a2` AS `a2`,`test`.`t2`.`b2` AS `b2` from `test`.`t1` semi join (`test`.`t3` join `test`.`t4`) left join `test`.`t2` on(`test`.`t2`.`a2` = `test`.`t4`.`a4`) where `test`.`t4`.`b4` = `test`.`t4`.`a4` and `test`.`t1`.`b1` = `test`.`t4`.`a4`
-SELECT * FROM t1 LEFT JOIN t2 ON ( b1 = a2 )
-WHERE ( b1, b1 ) IN ( SELECT a4, b4 FROM t3, t4);
-a1 b1 a2 b2
-g y y y
-g y y y
-g y y y
-g y y y
-set optimizer_switch='materialization=on';
-EXPLAIN EXTENDED
-SELECT * FROM t1 LEFT JOIN t2 ON ( b1 = a2 )
-WHERE ( b1, b1 ) IN ( SELECT a4, b4 FROM t3, t4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 100.00
-1 PRIMARY t1 ref idx idx 2 test.t4.a4 1 100.00 Using index
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 2 100.00
-2 MATERIALIZED t4 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`b1` AS `b1`,`test`.`t2`.`a2` AS `a2`,`test`.`t2`.`b2` AS `b2` from `test`.`t1` semi join (`test`.`t3` join `test`.`t4`) left join `test`.`t2` on(`test`.`t1`.`b1` = `test`.`t4`.`a4` and `test`.`t2`.`a2` = `test`.`t4`.`a4`) where `test`.`t4`.`b4` = `test`.`t4`.`a4` and `test`.`t1`.`b1` = `test`.`t4`.`a4`
-SELECT * FROM t1 LEFT JOIN t2 ON ( b1 = a2 )
-WHERE ( b1, b1 ) IN ( SELECT a4, b4 FROM t3, t4);
-a1 b1 a2 b2
-g y y y
-g y y y
-g y y y
-g y y y
-DROP TABLE t1,t2,t3,t4;
-set optimizer_switch=@save_optimizer_switch;
-#
-# mdev-4172: LEFT JOIN with materialized multi-table IN subquery in WHERE
-# and OR in ON condition
-#
-set @save_optimizer_switch=@@optimizer_switch;
-CREATE TABLE t1 (a1 int, c1 varchar(1));
-INSERT t1 VALUES (7,'v'), (3,'y');
-CREATE TABLE t2 (c2 varchar(1));
-INSERT INTO t2 VALUES ('y'), ('y');
-CREATE TABLE t3 (c3 varchar(1));
-INSERT INTO t3 VALUES
-('j'), ('v'), ('c'), ('m'), ('d'),
-('d'), ('y'), ('t'), ('d'), ('s');
-CREATE TABLE t4 (a4 int, c4 varchar(1));
-INSERT INTO t4 SELECT * FROM t1;
-set optimizer_switch='materialization=off';
-EXPLAIN EXTENDED
-SELECT * FROM t1 LEFT JOIN t2 ON (c2 = c1 OR c1 > 'z')
-WHERE c1 IN ( SELECT c4 FROM t3,t4 WHERE c3 = c4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t4 ALL NULL NULL NULL NULL 2 100.00 Using where; Start temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 10 100.00 Using where; End temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`c1` AS `c1`,`test`.`t2`.`c2` AS `c2` from `test`.`t1` semi join (`test`.`t3` join `test`.`t4`) left join `test`.`t2` on(`test`.`t2`.`c2` = `test`.`t1`.`c1` or `test`.`t1`.`c1` > 'z') where `test`.`t4`.`c4` = `test`.`t1`.`c1` and `test`.`t3`.`c3` = `test`.`t1`.`c1`
-SELECT * FROM t1 LEFT JOIN t2 ON (c2 = c1 OR c1 > 'z')
-WHERE c1 IN ( SELECT c4 FROM t3,t4 WHERE c3 = c4);
-a1 c1 c2
-3 y y
-3 y y
-7 v NULL
-set optimizer_switch='materialization=on';
-EXPLAIN EXTENDED
-SELECT * FROM t1 LEFT JOIN t2 ON (c2 = c1 OR c1 > 'z')
-WHERE c1 IN ( SELECT c4 FROM t3,t4 WHERE c3 = c4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t4 ALL NULL NULL NULL NULL 2 100.00
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 10 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`c1` AS `c1`,`test`.`t2`.`c2` AS `c2` from `test`.`t1` semi join (`test`.`t3` join `test`.`t4`) left join `test`.`t2` on(`test`.`t2`.`c2` = `test`.`t1`.`c1` or `test`.`t1`.`c1` > 'z') where `test`.`t3`.`c3` = `test`.`t4`.`c4`
-SELECT * FROM t1 LEFT JOIN t2 ON (c2 = c1 OR c1 > 'z')
-WHERE c1 IN ( SELECT c4 FROM t3,t4 WHERE c3 = c4);
-a1 c1 c2
-3 y y
-3 y y
-7 v NULL
-DROP TABLE t1,t2,t3,t4;
-set optimizer_switch=@save_optimizer_switch;
-#
-# mdev-4177: materialization of a subquery whose WHERE condition is OR
-# formula with two disjucts such that the second one is always false
-#
-set @save_optimizer_switch=@@optimizer_switch;
-set @save_join_cache_level=@@join_cache_level;
-CREATE TABLE t1 (i1 int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1), (7), (4), (8), (4);
-CREATE TABLE t2 (i2 int) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (7), (5);
-CREATE TABLE t3 (i3 int) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (7), (2), (9);
-set join_cache_level=3;
-set optimizer_switch='materialization=off,semijoin=off';
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE i1 IN (SELECT i3 FROM t2, t3 WHERE i3 = i2 OR 1=2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00
-2 DEPENDENT SUBQUERY t3 hash_ALL NULL #hash#$hj 5 func 3 100.00 Using where; Using join buffer (flat, BNLH join)
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`i1` AS `i1` from `test`.`t1` where <expr_cache><`test`.`t1`.`i1`>(<in_optimizer>(`test`.`t1`.`i1`,<exists>(/* select#2 */ select `test`.`t3`.`i3` from `test`.`t2` join `test`.`t3` where `test`.`t3`.`i3` = `test`.`t2`.`i2` and <cache>(`test`.`t1`.`i1`) = `test`.`t3`.`i3`)))
-SELECT * FROM t1 WHERE i1 IN (SELECT i3 FROM t2, t3 WHERE i3 = i2 OR 1=2);
-i1
-7
-set optimizer_switch='materialization=on,semijoin=on';
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE i1 IN (SELECT i3 FROM t2, t3 WHERE i3 = i2 OR 1=2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 100.00
-1 PRIMARY t1 hash_ALL NULL #hash#$hj 5 test.t2.i2 5 100.00 Using where; Using join buffer (flat, BNLH join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 MATERIALIZED t3 hash_ALL NULL #hash#$hj 5 test.t2.i2 3 100.00 Using where; Using join buffer (flat, BNLH join)
-Warnings:
-Note 1003 select `test`.`t1`.`i1` AS `i1` from `test`.`t1` semi join (`test`.`t2` join `test`.`t3`) where `test`.`t3`.`i3` = `test`.`t2`.`i2` and `test`.`t1`.`i1` = `test`.`t2`.`i2`
-SELECT * FROM t1 WHERE i1 IN (SELECT i3 FROM t2, t3 WHERE i3 = i2 OR 1=2);
-i1
-7
-EXPLAIN EXTENDED
-SELECT * FROM t1
-WHERE i1 IN (SELECT i3 FROM t2, t3 WHERE i3 > 0 AND i3 = i2 OR 1=2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 3 100.00
-1 PRIMARY t1 hash_ALL NULL #hash#$hj 5 test.t2.i2 5 100.00 Using where; Using join buffer (flat, BNLH join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 MATERIALIZED t3 hash_ALL NULL #hash#$hj 5 test.t2.i2 3 100.00 Using where; Using join buffer (flat, BNLH join)
-Warnings:
-Note 1003 select `test`.`t1`.`i1` AS `i1` from `test`.`t1` semi join (`test`.`t2` join `test`.`t3`) where `test`.`t3`.`i3` = `test`.`t2`.`i2` and `test`.`t1`.`i1` = `test`.`t2`.`i2` and `test`.`t3`.`i3` > 0
-SELECT * FROM t1
-WHERE i1 IN (SELECT i3 FROM t2, t3 WHERE i3 > 0 AND i3 = i2 OR 1=2);
-i1
-7
-SELECT * FROM t1
-WHERE i1 IN (SELECT i3 FROM t2, t3 WHERE i3 > 7 AND i3 = i2 OR 1=2);
-i1
-DROP TABLE t1,t2,t3;
-set join_cache_level= @save_join_cache_level;
-set optimizer_switch=@save_optimizer_switch;
-#
-# mdev-7791: materialization of a semi-join subquery +
-# RAND() in WHERE
-# (materialized table is accessed last)
-#
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='materialization=on';
-create table t1(i int);
-insert into t1 values (1), (2), (3), (7), (9), (10);
-create table t2(i int);
-insert into t2 values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-select * from t1 where (rand() < 0) and i in (select i from t2);
-i
-explain extended
-select * from t1 where (rand() < 0) and i in (select i from t2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 10 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`i` AS `i` from `test`.`t1` semi join (`test`.`t2`) where rand() < 0
-drop table t1,t2;
-set optimizer_switch=@save_optimizer_switch;
-#
-# mdev-12855: materialization of a semi-join subquery + ORDER BY
-#
-CREATE TABLE t1 (f1 varchar(8), KEY(f1)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('qux'),('foo');
-CREATE TABLE t2 (f2 varchar(8)) ENGINE=InnoDB;
-INSERT INTO t2 VALUES ('bar'),('foo'),('qux');
-SELECT f1 FROM t1
-WHERE f1 IN ( SELECT f2 FROM t2 WHERE f2 > 'bar' )
-HAVING f1 != 'foo'
-ORDER BY f1;
-f1
-qux
-explain SELECT f1 FROM t1
-WHERE f1 IN ( SELECT f2 FROM t2 WHERE f2 > 'bar' )
-HAVING f1 != 'foo'
-ORDER BY f1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index f1 f1 11 NULL 2 Using where; Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 11 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 Using where
-DROP TABLE t1,t2;
diff --git a/mysql-test/r/subselect_sj_aria.result b/mysql-test/r/subselect_sj_aria.result
deleted file mode 100644
index ea6cc8d14c4..00000000000
--- a/mysql-test/r/subselect_sj_aria.result
+++ /dev/null
@@ -1,59 +0,0 @@
-drop table if exists t1,t2,t3,t4;
-#
-# BUG#887468: Second assertion `keypart_map' failed in maria_rkey with semijoin
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_int_key int(11) DEFAULT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-dummy char(30),
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=Aria AUTO_INCREMENT=30 DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1;
-INSERT INTO t1 (pk, col_varchar_key, col_int_key) VALUES
-(10,NULL,0), (11,'d',4), (12,'g',8), (13,'x',NULL), (14,'f',NULL),
-(15,'p',0), (16,'j',NULL), (17,'c',8), (18,'z',8), (19,'j',6), (20,NULL,2),
-(21,'p',3), (22,'w',1), (23,'c',NULL), (24,'j',1), (25,'f',10), (26,'v',2),
-(27,'f',103), (28,'q',3), (29,'y',6);
-CREATE TABLE t2 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_int_key int(11) DEFAULT NULL,
-dummy char(36),
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key)
-) ENGINE=Aria AUTO_INCREMENT=101 DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1;
-INSERT INTO t2 ( pk, col_int_key) VALUES
-(1,8), (2,2), (3,9), (4,6), (5,NULL), (6,NULL), (7,48), (8,228), (9,3), (10,5),
-(11,39), (12,6), (13,8), (14,3), (15,NULL), (16,2), (17,6), (18,3), (19,1), (20,4),
-(21,3), (22,1), (23,NULL), (24,97), (25,0), (26,0), (27,9), (28,5), (29,9), (30,0),
-(31,2), (32,172), (33,NULL), (34,5), (35,119), (36,1), (37,4), (38,8), (39,NULL), (40,6),
-(41,5), (42,5), (43,1), (44,7), (45,2), (46,8), (47,9), (48,NULL), (49,NULL), (50,3),
-(51,172), (52,NULL), (53,6), (54,6), (55,5), (56,4), (57,3), (58,2), (59,7), (60,4),
-(61,6), (62,0), (63,8), (64,5), (65,8), (66,2), (67,9), (68,7), (69,5), (70,7),
-(71,0), (72,4), (73,3), (74,1), (75,0), (76,6), (77,2), (78,NULL), (79,8), (80,NULL),
-(81,NULL), (82,NULL), (83,3), (84,7), (85,3), (86,5), (87,5), (88,1), (89,2), (90,1),
-(91,7), (92,1), (93,9), (94,9), (95,8), (96,3), (97,7), (98,4), (99,9), (100,0);
-CREATE TABLE t3 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-dummy char(34),
-col_varchar_key varchar(1) DEFAULT NULL,
-col_int_key int(11) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=Aria AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1;
-INSERT INTO t3 (pk, col_varchar_key) VALUES (1,'v'), (2,'c'), (3,NULL);
-CREATE TABLE t4 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-dummy char (38),
-PRIMARY KEY (pk)
-) ENGINE=Aria AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1;
-INSERT INTO t4 (pk) VALUES (1), (2), (3);
-SELECT *
-FROM t1
-JOIN t2
-ON ( t2.col_int_key = t1.pk )
-WHERE t1.col_varchar_key IN (
-SELECT t3.col_varchar_key FROM t3, t4
-);
-pk col_int_key col_varchar_key dummy pk col_int_key dummy
-drop table t1, t2, t3, t4;
diff --git a/mysql-test/r/subselect_sj_jcl6.result b/mysql-test/r/subselect_sj_jcl6.result
deleted file mode 100644
index 77a073ea2d3..00000000000
--- a/mysql-test/r/subselect_sj_jcl6.result
+++ /dev/null
@@ -1,3422 +0,0 @@
-set @save_optimizer_switch_jcl6=@@optimizer_switch;
-set @@optimizer_switch='optimize_join_buffer_size=on';
-set @@optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
-set @@optimizer_switch='semijoin_with_cache=on';
-set @@optimizer_switch='outer_join_with_cache=on';
-set @@optimizer_switch='join_cache_hashed=off';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set join_cache_level=6;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 6
-set @optimizer_switch_for_subselect_sj_test=@@optimizer_switch;
-set @join_cache_level_for_subselect_sj_test=@@join_cache_level;
-drop table if exists t0, t1, t2, t3, t4, t5, t10, t11, t12;
-drop view if exists v1, v2, v3, v4;
-drop procedure if exists p1;
-set @subselect_sj_tmp= @@optimizer_switch;
-set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-SET optimizer_switch=ifnull(@optimizer_switch_for_subselect_sj_test,'outer_join_with_cache=off');
-SET optimizer_switch=ifnull(@optimizer_switch_for_subselect_sj_test,'semijoin_with_cache=off');
-set join_cache_level=@join_cache_level_for_subselect_sj_test;
-set @save_optimizer_switch=@@optimizer_switch;
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int, b int);
-insert into t1 values (0,0),(1,1),(2,2);
-create table t2 as select * from t1;
-create table t11(a int, b int);
-create table t10 (pk int, a int, primary key(pk));
-insert into t10 select a,a from t0;
-create table t12 like t10;
-insert into t12 select * from t10;
-Flattened because of dependency, t10=func(t1)
-explain select * from t1 where a in (select pk from t10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY t10 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using index
-select * from t1 where a in (select pk from t10);
-a b
-0 0
-1 1
-2 2
-A confluent case of dependency
-explain select * from t1 where a in (select a from t10 where pk=12);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-select * from t1 where a in (select a from t10 where pk=12);
-a b
-explain select * from t1 where a in (select a from t10 where pk=9);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t10 const PRIMARY PRIMARY 4 const 1
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-select * from t1 where a in (select a from t10 where pk=9);
-a b
-An empty table inside
-explain select * from t1 where a in (select a from t11);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-select * from t1 where a in (select a from t11);
-a b
-explain select * from t1 where a in (select pk from t10) and b in (select pk from t10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY t10 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using index
-1 PRIMARY t10 eq_ref PRIMARY PRIMARY 4 test.t1.b 1 Using index
-select * from t1 where a in (select pk from t10) and b in (select pk from t10);
-a b
-0 0
-1 1
-2 2
-flattening a nested subquery
-explain select * from t1 where a in (select pk from t10 where t10.a in (select pk from t12));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY t10 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 PRIMARY t12 eq_ref PRIMARY PRIMARY 4 test.t10.a 1 Using index
-select * from t1 where a in (select pk from t10 where t10.a in (select pk from t12));
-a b
-0 0
-1 1
-2 2
-flattening subquery w/ several tables
-explain extended select * from t1 where a in (select t10.pk from t10, t12 where t12.pk=t10.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t10 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 100.00 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 PRIMARY t12 eq_ref PRIMARY PRIMARY 4 test.t10.a 1 100.00 Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t10` join `test`.`t12` join `test`.`t1` where `test`.`t12`.`pk` = `test`.`t10`.`a` and `test`.`t10`.`pk` = `test`.`t1`.`a`
-subqueries within outer joins go into ON expr.
-explAin extended
-select * from t1 left join (t2 A, t2 B) on ( A.A= t1.A And B.A in (select pk from t10));
-id select_type tABle type possiBle_keys key key_len ref rows filtered ExtrA
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY A ALL NULL NULL NULL NULL 3 100.00 Using where; Using join Buffer (flAt, BNL join)
-1 PRIMARY B ALL NULL NULL NULL NULL 3 100.00 Using where; Using join Buffer (incrementAl, BNL join)
-2 MATERIALIZED t10 index PRIMARY PRIMARY 4 NULL 10 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`A` AS `A`,`test`.`t1`.`B` AS `B`,`test`.`A`.`A` AS `A`,`test`.`A`.`B` AS `B`,`test`.`B`.`A` AS `A`,`test`.`B`.`B` AS `B` from `test`.`t1` left join (`test`.`t2` `A` join `test`.`t2` `B`) on(`test`.`A`.`A` = `test`.`t1`.`A` And <in_optimizer>(`test`.`B`.`A`,`test`.`B`.`A` in ( <mAteriAlize> (/* select#2 */ select `test`.`t10`.`pk` from `test`.`t10` ), <primAry_index_lookup>(`test`.`B`.`A` in <temporAry tABle> on distinct_key where `test`.`B`.`A` = `<suBquery2>`.`pk`)))) where 1
-t2 should be wrapped into OJ-nest, so we have "t1 LJ (t2 J t10)"
-explAin extended
-select * from t1 left join t2 on (t2.A= t1.A And t2.A in (select pk from t10));
-id select_type tABle type possiBle_keys key key_len ref rows filtered ExtrA
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join Buffer (flAt, BNL join)
-2 MATERIALIZED t10 index PRIMARY PRIMARY 4 NULL 10 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`A` AS `A`,`test`.`t1`.`B` AS `B`,`test`.`t2`.`A` AS `A`,`test`.`t2`.`B` AS `B` from `test`.`t1` left join `test`.`t2` on(`test`.`t2`.`A` = `test`.`t1`.`A` And <in_optimizer>(`test`.`t1`.`A`,`test`.`t1`.`A` in ( <mAteriAlize> (/* select#2 */ select `test`.`t10`.`pk` from `test`.`t10` ), <primAry_index_lookup>(`test`.`t1`.`A` in <temporAry tABle> on distinct_key where `test`.`t1`.`A` = `<suBquery2>`.`pk`)))) where 1
-set join_buffer_size=8*1024;
-we shouldn't flatten if we're going to get a join of > MAX_TABLES.
-explain select * from
-t1 s00, t1 s01, t1 s02, t1 s03, t1 s04,t1 s05,t1 s06,t1 s07,t1 s08,t1 s09,
-t1 s10, t1 s11, t1 s12, t1 s13, t1 s14,t1 s15,t1 s16,t1 s17,t1 s18,t1 s19,
-t1 s20, t1 s21, t1 s22, t1 s23, t1 s24,t1 s25,t1 s26,t1 s27,t1 s28,t1 s29,
-t1 s30, t1 s31, t1 s32, t1 s33, t1 s34,t1 s35,t1 s36,t1 s37,t1 s38,t1 s39,
-t1 s40, t1 s41, t1 s42, t1 s43, t1 s44,t1 s45,t1 s46,t1 s47,t1 s48,t1 s49
-where
-s00.a in (
-select m00.a from
-t1 m00, t1 m01, t1 m02, t1 m03, t1 m04,t1 m05,t1 m06,t1 m07,t1 m08,t1 m09,
-t1 m10, t1 m11, t1 m12, t1 m13, t1 m14,t1 m15,t1 m16,t1 m17,t1 m18,t1 m19
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY s00 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY s01 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY s02 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s03 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s04 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s05 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s06 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s07 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s08 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s09 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s10 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s11 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s12 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s13 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s14 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s15 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s16 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s17 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s18 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s19 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s20 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s21 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s22 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s23 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s24 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s25 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s26 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s27 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s28 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s29 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s30 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s31 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s32 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s33 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s34 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s35 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s36 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s37 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s38 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s39 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s40 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s41 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s42 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s43 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s44 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s45 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s46 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s47 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s48 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-1 PRIMARY s49 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m00 ALL NULL NULL NULL NULL 3 Using where
-2 DEPENDENT SUBQUERY m01 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY m02 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m03 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m04 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m05 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m06 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m07 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m08 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m09 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m10 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m11 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m12 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m13 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m14 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m15 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m16 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m17 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m18 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY m19 ALL NULL NULL NULL NULL 3 Using join buffer (incremental, BNL join)
-select * from
-t1 left join t2 on (t2.a= t1.a and t2.a in (select pk from t10))
-where t1.a < 5;
-a b a b
-0 0 0 0
-1 1 1 1
-2 2 2 2
-set join_buffer_size=default;
-prepare s1 from
-' select * from
- t1 left join t2 on (t2.a= t1.a and t2.a in (select pk from t10))
- where t1.a < 5';
-execute s1;
-a b a b
-0 0 0 0
-1 1 1 1
-2 2 2 2
-execute s1;
-a b a b
-0 0 0 0
-1 1 1 1
-2 2 2 2
-insert into t1 select (A.a + 10 * B.a),1 from t0 A, t0 B;
-explain extended select * from t1 where a in (select pk from t10 where pk<3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t10 range PRIMARY PRIMARY 4 NULL 4 100.00 Using where; Using index
-1 PRIMARY t1 ALL NULL NULL NULL NULL 103 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t10` join `test`.`t1` where `test`.`t1`.`a` = `test`.`t10`.`pk` and `test`.`t10`.`pk` < 3
-drop table t0, t1, t2;
-drop table t10, t11, t12;
-
-Bug#37899: Wrongly checked optimization prerequisite caused failed
-assertion.
-
-CREATE TABLE t1 (
-`pk` int(11),
-`varchar_nokey` varchar(5)
-);
-INSERT INTO t1 VALUES
-(1,'qk'),(2,'j'),(3,'aew');
-SELECT *
-FROM t1
-WHERE varchar_nokey IN (
-SELECT
-varchar_nokey
-FROM
-t1
-) XOR pk = 30;
-pk varchar_nokey
-1 qk
-2 j
-3 aew
-drop table t1;
-#
-# BUG#41842: Semi-join materialization strategy crashes when the upper query has HAVING
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-int_nokey int(11) NOT NULL,
-time_key time NOT NULL,
-datetime_key datetime NOT NULL,
-datetime_nokey datetime NOT NULL,
-varchar_key varchar(1) NOT NULL,
-varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY time_key (time_key),
-KEY datetime_key (datetime_key),
-KEY varchar_key (varchar_key)
-);
-INSERT INTO t1 VALUES
-(1,0, '00:16:10','2008-09-03 14:25:40','2008-09-03 14:25:40','h','h'),
-(2,7, '00:00:00','2001-01-13 00:00:00','2001-01-13 00:00:00','',''),
-(3,0, '00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','x','x'),
-(4,2, '16:29:24','2000-10-16 01:39:08','2000-10-16 01:39:08','w','w'),
-(5,1, '09:23:32','0000-00-00 00:00:00','0000-00-00 00:00:00','p','p'),
-(6,3, '00:00:00','2007-12-02 00:00:00','2007-12-02 00:00:00','o','o'),
-(7,3, '00:00:00','2008-09-11 00:00:00','2008-09-11 00:00:00','',''),
-(8,0, '13:59:04','0000-00-00 00:00:00','0000-00-00 00:00:00','s','s'),
-(9,7, '09:01:06','0000-00-00 00:00:00','0000-00-00 00:00:00','d','d'),
-(10,5,'00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','n','n'),
-(11,0,'21:06:46','0000-00-00 00:00:00','0000-00-00 00:00:00','o','o'),
-(12,2,'00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','',''),
-(13,6,'14:45:34','2003-07-28 02:34:08','2003-07-28 02:34:08','w','w'),
-(14,1,'15:04:12','0000-00-00 00:00:00','0000-00-00 00:00:00','o','o'),
-(15,0,'00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','x','x'),
-(16,0,'15:55:23','2004-03-17 00:32:27','2004-03-17 00:32:27','p','p'),
-(17,1,'16:30:00','2004-12-27 19:20:00','2004-12-27 19:20:00','d','d'),
-(18,0,'00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','h','h'),
-(19,0,'14:13:26','2008-11-09 05:53:48','2008-11-09 05:53:48','o','o'),
-(20,0,'00:00:00','2009-10-11 06:58:04','2009-10-11 06:58:04','k','k');
-CREATE TABLE t2 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-int_nokey int(11) NOT NULL,
-time_key time NOT NULL,
-datetime_key datetime NOT NULL,
-datetime_nokey datetime NOT NULL,
-varchar_key varchar(1) NOT NULL,
-varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY time_key (time_key),
-KEY datetime_key (datetime_key),
-KEY varchar_key (varchar_key)
-);
-INSERT INTO t2 VALUES
-(10,0,'19:39:13','0000-00-00 00:00:00','0000-00-00 00:00:00','g','g'),
-(11,8,'03:43:53','0000-00-00 00:00:00','0000-00-00 00:00:00','b','b');
-SELECT OUTR.datetime_nokey AS X FROM t1 AS OUTR
-WHERE
-OUTR.varchar_nokey IN (SELECT
-INNR . varchar_nokey AS Y
-FROM t2 AS INNR
-WHERE
-INNR . datetime_key >= INNR . time_key OR
-INNR . pk = INNR . int_nokey
-)
-AND OUTR . varchar_nokey <= 'w'
-HAVING X > '2012-12-12';
-X
-drop table t1, t2;
-#
-# Bug#45191: Incorrectly initialized semi-join led to a wrong result.
-#
-CREATE TABLE STAFF (EMPNUM CHAR(3) NOT NULL,
-EMPNAME CHAR(20), GRADE DECIMAL(4), CITY CHAR(15));
-CREATE TABLE PROJ (PNUM CHAR(3) NOT NULL,
-PNAME CHAR(20), PTYPE CHAR(6),
-BUDGET DECIMAL(9),
-CITY CHAR(15));
-CREATE TABLE WORKS (EMPNUM CHAR(3) NOT NULL,
-PNUM CHAR(3) NOT NULL, HOURS DECIMAL(5));
-INSERT INTO STAFF VALUES ('E1','Alice',12,'Deale');
-INSERT INTO STAFF VALUES ('E2','Betty',10,'Vienna');
-INSERT INTO STAFF VALUES ('E3','Carmen',13,'Vienna');
-INSERT INTO STAFF VALUES ('E4','Don',12,'Deale');
-INSERT INTO STAFF VALUES ('E5','Ed',13,'Akron');
-INSERT INTO PROJ VALUES ('P1','MXSS','Design',10000,'Deale');
-INSERT INTO PROJ VALUES ('P2','CALM','Code',30000,'Vienna');
-INSERT INTO PROJ VALUES ('P3','SDP','Test',30000,'Tampa');
-INSERT INTO PROJ VALUES ('P4','SDP','Design',20000,'Deale');
-INSERT INTO PROJ VALUES ('P5','IRM','Test',10000,'Vienna');
-INSERT INTO PROJ VALUES ('P6','PAYR','Design',50000,'Deale');
-INSERT INTO WORKS VALUES ('E1','P1',40);
-INSERT INTO WORKS VALUES ('E1','P2',20);
-INSERT INTO WORKS VALUES ('E1','P3',80);
-INSERT INTO WORKS VALUES ('E1','P4',20);
-INSERT INTO WORKS VALUES ('E1','P5',12);
-INSERT INTO WORKS VALUES ('E1','P6',12);
-INSERT INTO WORKS VALUES ('E2','P1',40);
-INSERT INTO WORKS VALUES ('E2','P2',80);
-INSERT INTO WORKS VALUES ('E3','P2',20);
-INSERT INTO WORKS VALUES ('E4','P2',20);
-INSERT INTO WORKS VALUES ('E4','P4',40);
-INSERT INTO WORKS VALUES ('E4','P5',80);
-set optimizer_switch=@save_optimizer_switch;
-set optimizer_switch='materialization=off';
-explain SELECT EMPNUM, EMPNAME
-FROM STAFF
-WHERE EMPNUM IN
-(SELECT EMPNUM FROM WORKS
-WHERE PNUM IN
-(SELECT PNUM FROM PROJ));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY STAFF ALL NULL NULL NULL NULL 5
-1 PRIMARY PROJ ALL NULL NULL NULL NULL 6 Using join buffer (flat, BNL join)
-1 PRIMARY WORKS ALL NULL NULL NULL NULL 12 Using where; FirstMatch(STAFF); Using join buffer (incremental, BNL join)
-SELECT EMPNUM, EMPNAME
-FROM STAFF
-WHERE EMPNUM IN
-(SELECT EMPNUM FROM WORKS
-WHERE PNUM IN
-(SELECT PNUM FROM PROJ));
-EMPNUM EMPNAME
-E1 Alice
-E2 Betty
-E3 Carmen
-E4 Don
-set optimizer_switch=@save_optimizer_switch;
-drop table STAFF,WORKS,PROJ;
-# End of bug#45191
-#
-# Bug#46550 Azalea returning duplicate results for some IN subqueries
-# w/ semijoin=on
-#
-DROP TABLE IF EXISTS t0, t1, t2;
-CREATE TABLE t0 (
-int_key int(11) DEFAULT NULL,
-varchar_key varchar(1) DEFAULT NULL,
-varchar_nokey varchar(1) DEFAULT NULL,
-KEY int_key (int_key),
-KEY varchar_key (varchar_key,int_key)
-);
-INSERT INTO t0 VALUES
-(1,'m','m'),
-(40,'h','h'),
-(1,'r','r'),
-(1,'h','h'),
-(9,'x','x'),
-(NULL,'q','q'),
-(NULL,'k','k'),
-(7,'l','l'),
-(182,'k','k'),
-(202,'a','a'),
-(7,'x','x'),
-(6,'j','j'),
-(119,'z','z'),
-(4,'d','d'),
-(5,'h','h'),
-(1,'u','u'),
-(3,'q','q'),
-(7,'a','a'),
-(3,'e','e'),
-(6,'l','l');
-CREATE TABLE t1 (
-int_key int(11) DEFAULT NULL,
-varchar_key varchar(1) DEFAULT NULL,
-varchar_nokey varchar(1) DEFAULT NULL,
-KEY int_key (int_key),
-KEY varchar_key (varchar_key,int_key)
-);
-INSERT INTO t1 VALUES (7,NULL,NULL),(4,'x','x');
-CREATE TABLE t2 (
-int_key int(11) DEFAULT NULL,
-varchar_key varchar(1) DEFAULT NULL,
-varchar_nokey varchar(1) DEFAULT NULL,
-KEY int_key (int_key),
-KEY varchar_key (varchar_key,int_key)
-);
-INSERT INTO t2 VALUES (123,NULL,NULL);
-SELECT int_key
-FROM t0
-WHERE varchar_nokey IN (
-SELECT t1 .varchar_key from t1
-);
-int_key
-9
-7
-DROP TABLE t0, t1, t2;
-# End of bug#46550
-#
-# Bug #46744 Crash in optimize_semijoin_nests on empty view
-# with limit and procedure.
-#
-DROP TABLE IF EXISTS t1, t2;
-DROP VIEW IF EXISTS v1;
-DROP PROCEDURE IF EXISTS p1;
-CREATE TABLE t1 ( f1 int );
-CREATE TABLE t2 ( f1 int );
-insert into t2 values (5), (7);
-CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1 LIMIT 2;
-create procedure p1()
-select COUNT(*)
-FROM v1 WHERE f1 IN
-(SELECT f1 FROM t2 WHERE f1 = ANY (SELECT f1 FROM v1));
-SET SESSION optimizer_switch = 'semijoin=on';
-CALL p1();
-COUNT(*)
-0
-SET SESSION optimizer_switch = 'semijoin=off';
-CALL p1();
-COUNT(*)
-0
-drop table t1, t2;
-drop view v1;
-drop procedure p1;
-set SESSION optimizer_switch=@save_optimizer_switch;
-# End of bug#46744
-
-Bug#46797 "Crash in fix_semijoin_strategies_for_picked_join_order
-with semijoin=on"
-
-CREATE TABLE t1 (
-varchar_key varchar(1) DEFAULT NULL,
-KEY varchar_key (varchar_key)
-);
-CREATE TABLE t2 (
-varchar_key varchar(1) DEFAULT NULL,
-KEY varchar_key (varchar_key)
-);
-INSERT INTO t2 VALUES
-(NULL),(NULL),(NULL),(NULL),('a'),('a'),('a'),('b'),('b'),('b'),('b'),('c'),
-('c'),('c'),('c'),('c'),('c'),('c'),('d'),('d'),('d'),('d'),('d'),('d'),('e'),
-('e'),('e'),('e'),('e'),('e'),('f'),('f'),('f'),('g'),('g'),('h'),('h'),('h'),
-('h'),('i'),('j'),('j'),('j'),('k'),('k'),('l'),('l'),('m'),('m'),('m'),('m'),
-('n'),('n'),('n'),('o'),('o'),('o'),('p'),('p'),('p'),('q'),('q'),('q'),('r'),
-('r'),('r'),('r'),('s'),('s'),('s'),('s'),('t'),('t'),('t'),('t'),('u'),('u'),
-('u'),('u'),('v'),('v'),('v'),('v'),('w'),('w'),('w'),('w'),('w'),('w'),('x'),
-('x'),('x'),('y'),('y'),('y'),('y'),('z'),('z'),('z'),('z');
-CREATE TABLE t3 (
-varchar_key varchar(1) DEFAULT NULL,
-KEY varchar_key (varchar_key)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t3 VALUES
-(NULL),('c'),('d'),('e'),('f'),('h'),('j'),('k'),('k'),('m'),('m'),('m'),
-('n'),('o'),('r'),('t'),('t'),('u'),('w'),('y');
-SELECT varchar_key FROM t3
-WHERE (SELECT varchar_key FROM t3
-WHERE (varchar_key,varchar_key)
-IN (SELECT t1.varchar_key, t2 .varchar_key
-FROM t1 RIGHT JOIN t2 ON t1.varchar_key
-)
-);
-varchar_key
-DROP TABLE t1, t2, t3;
-#
-# Bug#46556 Returning incorrect, empty results for some IN subqueries
-# w/semijoin=on
-#
-CREATE TABLE t0 (
-pk INTEGER,
-vkey VARCHAR(1),
-vnokey VARCHAR(1),
-PRIMARY KEY (pk),
-KEY vkey(vkey)
-);
-INSERT INTO t0
-VALUES (1,'g','g'), (2,'v','v'), (3,'t','t'), (4,'u','u'), (5,'n','n');
-EXPLAIN EXTENDED SELECT vkey FROM t0 WHERE pk IN
-(SELECT t1.pk FROM t0 t1 JOIN t0 t2 ON t2.vkey = t1.vnokey);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t0 ALL PRIMARY NULL NULL NULL 5 100.00
-1 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.t0.pk 1 100.00 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 PRIMARY t2 ref vkey vkey 4 test.t1.vnokey 2 100.00 Using index; FirstMatch(t1)
-Warnings:
-Note 1003 select `test`.`t0`.`vkey` AS `vkey` from `test`.`t0` `t1` semi join (`test`.`t0` `t2`) join `test`.`t0` where `test`.`t1`.`pk` = `test`.`t0`.`pk` and `test`.`t2`.`vkey` = `test`.`t1`.`vnokey`
-SELECT vkey FROM t0 WHERE pk IN
-(SELECT t1.pk FROM t0 t1 JOIN t0 t2 ON t2.vkey = t1.vnokey);
-vkey
-g
-v
-t
-u
-n
-DROP TABLE t0;
-# End of bug#46556
-
-Bug #48073 Subquery on char columns from view crashes Mysql
-
-DROP TABLE IF EXISTS t1, t2;
-DROP VIEW IF EXISTS v1;
-CREATE TABLE t1 (
-city VARCHAR(50) NOT NULL,
-country_id SMALLINT UNSIGNED NOT NULL
-);
-INSERT INTO t1 VALUES
-('Batna',2),
-('Bchar',2),
-('Skikda',2),
-('Tafuna',3),
-('Algeria',2) ;
-CREATE TABLE t2 (
-country_id SMALLINT UNSIGNED NOT NULL,
-country VARCHAR(50) NOT NULL
-);
-INSERT INTO t2 VALUES
-(2,'Algeria'),
-(3,'American Samoa') ;
-CREATE VIEW v1 AS
-SELECT country_id, country
-FROM t2
-WHERE LEFT(country,1) = "A"
-;
-SELECT city, country_id
-FROM t1
-WHERE city IN (
-SELECT country
-FROM t2
-WHERE LEFT(country, 1) = "A"
-);
-city country_id
-Algeria 2
-SELECT city, country_id
-FROM t1
-WHERE city IN (
-SELECT country
-FROM v1
-);
-city country_id
-Algeria 2
-drop table t1, t2;
-drop view v1;
-# End of bug#48073
-
-Bug#48834: Procedure with view + subquery + semijoin=on
-crashes on second call.
-
-SET SESSION optimizer_switch ='semijoin=on';
-CREATE TABLE t1 ( t1field integer, primary key (t1field));
-CREATE TABLE t2 ( t2field integer, primary key (t2field));
-CREATE VIEW v1 AS
-SELECT t1field as v1field
-FROM t1 A
-WHERE A.t1field IN (SELECT t1field FROM t2 );
-CREATE VIEW v2 AS
-SELECT t2field as v2field
-FROM t2 A
-WHERE A.t2field IN (SELECT t2field FROM t2 );
-CREATE PROCEDURE p1 ()
-BEGIN
-SELECT v1field
-FROM v1
-WHERE v1field IN ( SELECT v2field as vf_inner FROM v2 );
-END|
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t2 VALUES (2),(3),(4);
-CALL p1;
-v1field
-2
-3
-CALL p1;
-v1field
-2
-3
-DROP TABLE t1,t2;
-DROP VIEW v1,v2;
-DROP PROCEDURE p1;
-set SESSION optimizer_switch=@save_optimizer_switch;
-# End of BUG#48834
-
-Bug#49097 subquery with view generates wrong result with
-non-prepared statement
-
-DROP TABLE IF EXISTS t1, t2;
-DROP VIEW IF EXISTS v1;
-CREATE TABLE t1 (
-city VARCHAR(50) NOT NULL,
-country_id SMALLINT UNSIGNED NOT NULL
-);
-INSERT INTO t1 VALUES
-('Batna',2),
-('Bchar',2),
-('Skikda',2),
-('Tafuna',3),
-('Algeria',2) ;
-CREATE TABLE t2 (
-country_id SMALLINT UNSIGNED NOT NULL,
-country VARCHAR(50) NOT NULL
-);
-INSERT INTO t2 VALUES
-(2,'Algeria'),
-(3,'XAmerican Samoa') ;
-CREATE VIEW v1 AS
-SELECT country_id, country
-FROM t2
-WHERE LEFT(country,1) = "A"
-;
-SELECT city, country_id
-FROM t1
-WHERE country_id IN (
-SELECT country_id
-FROM t2
-WHERE LEFT(country,1) = "A"
-);
-city country_id
-Batna 2
-Bchar 2
-Skikda 2
-Algeria 2
-SELECT city, country_id
-FROM t1
-WHERE country_id IN (
-SELECT country_id
-FROM v1
-);
-city country_id
-Batna 2
-Bchar 2
-Skikda 2
-Algeria 2
-PREPARE stmt FROM
-"
-SELECT city, country_id
-FROM t1
-WHERE country_id IN (
- SELECT country_id
- FROM v1
-);
-";
-execute stmt;
-city country_id
-Batna 2
-Bchar 2
-Skikda 2
-Algeria 2
-deallocate prepare stmt;
-drop table t1, t2;
-drop view v1;
-# End of Bug#49097
-#
-# BUG#38075: Wrong result: rows matching a subquery with outer join not returned
-#
-DROP TABLE IF EXISTS ot1, it1, it2;
-CREATE TABLE it2 (
-int_key int(11) NOT NULL,
-datetime_key datetime NOT NULL,
-KEY int_key (int_key),
-KEY datetime_key (datetime_key)
-);
-INSERT INTO it2 VALUES
-(5,'2002-04-10 14:25:30'), (0,'0000-00-00 00:00:00'),
-(0,'2006-09-14 04:01:02'), (4,'0000-00-00 00:00:00'),
-(8,'0000-00-00 00:00:00'), (5,'0000-00-00 00:00:00'),
-(9,'0000-00-00 00:00:00'), (8,'2007-04-01 11:04:17'),
-(1,'0000-00-00 00:00:00'), (7,'2009-01-12 00:00:00'),
-(0,'2009-06-05 00:00:00'), (3,'2006-02-14 18:06:35'),
-(5,'2006-02-21 07:08:16'), (0,'0000-00-00 00:00:00'),
-(7,'0000-00-00 00:00:00'), (0,'0000-00-00 00:00:00'),
-(0,'2007-02-13 00:00:00'), (1,'0000-00-00 00:00:00'),
-(0,'0000-00-00 00:00:00'), (1,'2003-08-11 00:00:00');
-CREATE TABLE ot1 (
-int_nokey int(11) NOT NULL,
-int_key int(11) NOT NULL,
-KEY int_key (int_key)
-);
-INSERT INTO ot1 VALUES
-(5,0), (3,0), (0,2), (3,0), (1,3), (0,0), (1,7), (7,0), (1,7), (0,7),
-(0,9), (8,2), (4,4), (9,3), (0,9), (2,5), (0,5), (8,0), (5,8), (1,5);
-CREATE TABLE it1 (
-int_nokey int(11) NOT NULL,
-int_key int(11) NOT NULL,
-KEY int_key (int_key)
-);
-INSERT INTO it1 VALUES
-(9,5), (0,4);
-SELECT int_key FROM ot1
-WHERE int_nokey IN (SELECT it2.int_key
-FROM it1 LEFT JOIN it2 ON it2.datetime_key);
-int_key
-0
-0
-0
-0
-0
-0
-2
-2
-3
-5
-5
-7
-7
-7
-8
-9
-9
-EXPLAIN
-SELECT int_key FROM ot1
-WHERE int_nokey IN (SELECT it2.int_key
-FROM it1 LEFT JOIN it2 ON it2.datetime_key);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 11
-1 PRIMARY ot1 ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED it1 index NULL int_key 4 NULL 2 Using index
-2 MATERIALIZED it2 ALL int_key,datetime_key NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-DROP TABLE ot1, it1, it2;
-# End of BUG#38075
-#
-# BUG#31480: Incorrect result for nested subquery when executed via semi join
-#
-create table t1 (a int not null, b int not null);
-create table t2 (c int not null, d int not null);
-create table t3 (e int not null);
-insert into t1 values (1,10);
-insert into t1 values (2,10);
-insert into t1 values (1,20);
-insert into t1 values (2,20);
-insert into t1 values (3,20);
-insert into t1 values (2,30);
-insert into t1 values (4,40);
-insert into t2 values (2,10);
-insert into t2 values (2,20);
-insert into t2 values (4,10);
-insert into t2 values (5,10);
-insert into t2 values (3,20);
-insert into t2 values (2,40);
-insert into t3 values (10);
-insert into t3 values (30);
-insert into t3 values (10);
-insert into t3 values (20);
-explain extended
-select a from t1
-where a in (select c from t2 where d >= some(select e from t3 where b=e));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 7 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 6 100.00 Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.b' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`c` = `test`.`t1`.`a` and <nop>(<expr_cache><`test`.`t2`.`d`,`test`.`t1`.`b`>(<in_optimizer>(`test`.`t2`.`d`,<exists>(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`e` and <cache>(`test`.`t2`.`d`) >= `test`.`t3`.`e`))))
-show warnings;
-Level Code Message
-Note 1276 Field or reference 'test.t1.b' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`c` = `test`.`t1`.`a` and <nop>(<expr_cache><`test`.`t2`.`d`,`test`.`t1`.`b`>(<in_optimizer>(`test`.`t2`.`d`,<exists>(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`e` and <cache>(`test`.`t2`.`d`) >= `test`.`t3`.`e`))))
-select a from t1
-where a in (select c from t2 where d >= some(select e from t3 where b=e));
-a
-2
-2
-3
-2
-drop table t1, t2, t3;
-#
-# Bug#48213 Materialized subselect crashes if using GEOMETRY type
-#
-CREATE TABLE t1 (
-pk int,
-a varchar(1),
-b varchar(4),
-c tinyblob,
-d blob,
-e mediumblob,
-f longblob,
-g tinytext,
-h text,
-i mediumtext,
-j longtext,
-k geometry,
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (1,'o','ffff','ffff','ffoo','ffff','ffff','ffff','ffff','ffff','ffff',GeomFromText('POLYGON((0 0, 0 2, 2 2, 2 0, 0 0))')), (2,'f','ffff','ffff','ffff', 'ffff','ffff','ffff','ffff','ffff','ffff',GeomFromText('POLYGON((0 0, 0 2, 2 2, 2 0, 0 0))'));
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 VALUES (1,'i','iiii','iiii','iiii','iiii','ffff','ffff','ffff','ffff','ffff',GeomFromText('POLYGON((0 0, 0 2, 2 2, 2 0, 0 0))')), (2,'f','ffff','ffff','ffff','ffff','ffff','ffff','ffff','ffff','ffff',GeomFromText('POLYGON((0 0, 0 2, 2 2, 2 0, 0 0))'));
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (a, b) IN (SELECT a, b FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 11 func,func 1 100.00
-2 MATERIALIZED t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (a, b) IN (SELECT a, b FROM t2 WHERE pk > 0);
-pk
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, c) IN (SELECT b, c FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1); Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`c` = `test`.`t1`.`c` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, c) IN (SELECT b, c FROM t2 WHERE pk > 0);
-pk
-1
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, d) IN (SELECT b, d FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1); Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`d` = `test`.`t1`.`d` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, d) IN (SELECT b, d FROM t2 WHERE pk > 0);
-pk
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, e) IN (SELECT b, e FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1); Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`e` = `test`.`t1`.`e` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, e) IN (SELECT b, e FROM t2 WHERE pk > 0);
-pk
-1
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, f) IN (SELECT b, f FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1); Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`f` = `test`.`t1`.`f` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, f) IN (SELECT b, f FROM t2 WHERE pk > 0);
-pk
-1
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, g) IN (SELECT b, g FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1); Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`g` = `test`.`t1`.`g` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, g) IN (SELECT b, g FROM t2 WHERE pk > 0);
-pk
-1
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, h) IN (SELECT b, h FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1); Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`h` = `test`.`t1`.`h` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, h) IN (SELECT b, h FROM t2 WHERE pk > 0);
-pk
-1
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, i) IN (SELECT b, i FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1); Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`i` = `test`.`t1`.`i` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, i) IN (SELECT b, i FROM t2 WHERE pk > 0);
-pk
-1
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, j) IN (SELECT b, j FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1); Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`j` = `test`.`t1`.`j` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, j) IN (SELECT b, j FROM t2 WHERE pk > 0);
-pk
-1
-2
-EXPLAIN EXTENDED SELECT pk FROM t1 WHERE (b, k) IN (SELECT b, k FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 range PRIMARY PRIMARY 4 NULL 2 100.00 Using index condition; Using where; Rowid-ordered scan; FirstMatch(t1); Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`b` and `test`.`t2`.`k` = `test`.`t1`.`k` and `test`.`t2`.`pk` > 0
-SELECT pk FROM t1 WHERE (b, k) IN (SELECT b, k FROM t2 WHERE pk > 0);
-pk
-1
-2
-DROP TABLE t1, t2;
-# End of Bug#48213
-#
-# Bug#49198 Wrong result for second call of procedure
-# with view in subselect.
-#
-CREATE TABLE t1 (t1field integer, primary key (t1field));
-CREATE TABLE t2 (t2field integer, primary key (t2field));
-CREATE TABLE t3 (t3field integer, primary key (t3field));
-CREATE VIEW v2 AS SELECT * FROM t2;
-CREATE VIEW v3 AS SELECT * FROM t3;
-INSERT INTO t1 VALUES(1),(2);
-INSERT INTO t2 VALUES(1),(2);
-INSERT INTO t3 VALUES(1),(2);
-PREPARE stmt FROM
-"
-SELECT t1field
-FROM t1
-WHERE t1field IN (SELECT * FROM v2);
-";
-EXECUTE stmt;
-t1field
-1
-2
-EXECUTE stmt;
-t1field
-1
-2
-PREPARE stmt FROM
-"
-EXPLAIN
-SELECT t1field
-FROM t1
-WHERE t1field IN (SELECT * FROM v2)
- AND t1field IN (SELECT * FROM v3)
-";
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 2 Using index
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.t1.t1field 1 Using index
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 4 test.t1.t1field 1 Using index
-EXECUTE stmt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 index PRIMARY PRIMARY 4 NULL 2 Using index
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.t1.t1field 1 Using index
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 4 test.t1.t1field 1 Using index
-DROP TABLE t1, t2, t3;
-DROP VIEW v2, v3;
-# End of Bug#49198
-#
-# Bug#45174: Incorrectly applied equality propagation caused wrong
-# result on a query with a materialized semi-join.
-#
-CREATE TABLE `t1` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`varchar_key` varchar(1) NOT NULL,
-`varchar_nokey` varchar(1) NOT NULL,
-PRIMARY KEY (`pk`),
-KEY `varchar_key` (`varchar_key`)
-);
-INSERT INTO `t1` VALUES (11,'m','m'),(12,'j','j'),(13,'z','z'),(14,'a','a'),(15,'',''),(16,'e','e'),(17,'t','t'),(19,'b','b'),(20,'w','w'),(21,'m','m'),(23,'',''),(24,'w','w'),(26,'e','e'),(27,'e','e'),(28,'p','p');
-CREATE TABLE `t2` (
-`varchar_nokey` varchar(1) NOT NULL
-);
-INSERT INTO `t2` VALUES ('v'),('u'),('n'),('l'),('h'),('u'),('n'),('j'),('k'),('e'),('i'),('u'),('n'),('b'),('x'),(''),('q'),('u');
-EXPLAIN EXTENDED SELECT varchar_nokey
-FROM t2
-WHERE ( `varchar_nokey` , `varchar_nokey` ) IN (
-SELECT `varchar_key` , `varchar_nokey`
-FROM t1
-WHERE `varchar_nokey` < 'n' XOR `pk` ) ;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 15 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 18 100.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t1 ALL varchar_key NULL NULL NULL 15 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t2`.`varchar_nokey` AS `varchar_nokey` from `test`.`t2` semi join (`test`.`t1`) where `test`.`t1`.`varchar_nokey` = `test`.`t1`.`varchar_key` and `test`.`t2`.`varchar_nokey` = `test`.`t1`.`varchar_key` and (`test`.`t1`.`varchar_key` < 'n' xor `test`.`t1`.`pk`)
-SELECT varchar_nokey
-FROM t2
-WHERE ( `varchar_nokey` , `varchar_nokey` ) IN (
-SELECT `varchar_key` , `varchar_nokey`
-FROM t1
-WHERE `varchar_nokey` < 'n' XOR `pk` ) ;
-varchar_nokey
-DROP TABLE t1, t2;
-# End of the test for bug#45174.
-#
-# BUG#43768: Prepared query with nested subqueries core dumps on second execution
-#
-create table t1 (
-id int(11) unsigned not null primary key auto_increment,
-partner_id varchar(35) not null,
-t1_status_id int(10) unsigned
-);
-insert into t1 values ("1", "partner1", "10"), ("2", "partner2", "10"),
-("3", "partner3", "10"), ("4", "partner4", "10");
-create table t2 (
-id int(11) unsigned not null default '0',
-t1_line_id int(11) unsigned not null default '0',
-article_id varchar(20),
-sequence int(11) not null default '0',
-primary key (id,t1_line_id)
-);
-insert into t2 values ("1", "1", "sup", "0"), ("2", "1", "sup", "1"),
-("2", "2", "sup", "2"), ("2", "3", "sup", "3"),
-("2", "4", "imp", "4"), ("3", "1", "sup", "0"),
-("4", "1", "sup", "0");
-create table t3 (
-id int(11) not null default '0',
-preceding_id int(11) not null default '0',
-primary key (id,preceding_id)
-);
-create table t4 (
-user_id varchar(50) not null,
-article_id varchar(20) not null,
-primary key (user_id,article_id)
-);
-insert into t4 values("nicke", "imp");
-prepare stmt from
-'select t1.partner_id
-from t1
-where
- t1.id in (
- select pl_inner.id
- from t2 as pl_inner
- where pl_inner.article_id in (
- select t4.article_id from t4
- where t4.user_id = \'nicke\'
- )
- )';
-execute stmt;
-partner_id
-partner2
-execute stmt;
-partner_id
-partner2
-drop table t1,t2,t3,t4;
-#
-# Bug#48623 Multiple subqueries are optimized incorrectly
-#
-CREATE TABLE t1(val VARCHAR(10));
-CREATE TABLE t2(val VARCHAR(10));
-CREATE TABLE t3(val VARCHAR(10));
-INSERT INTO t1 VALUES('aaa'), ('bbb'), ('eee'), ('mmm'), ('ppp');
-INSERT INTO t2 VALUES('aaa'), ('aaa'), ('bbb'), ('eee'), ('mmm'), ('ppp');
-INSERT INTO t3 VALUES('aaa'), ('bbb'), ('eee'), ('mmm'), ('ppp');
-EXPLAIN
-SELECT *
-FROM t1
-WHERE t1.val IN (SELECT t2.val FROM t2
-WHERE t2.val LIKE 'a%' OR t2.val LIKE 'e%')
-AND t1.val IN (SELECT t3.val FROM t3
-WHERE t3.val LIKE 'a%' OR t3.val LIKE 'e%');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 13 func 1
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 13 func 1
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 5 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 Using where
-SELECT *
-FROM t1
-WHERE t1.val IN (SELECT t2.val FROM t2
-WHERE t2.val LIKE 'a%' OR t2.val LIKE 'e%')
-AND t1.val IN (SELECT t3.val FROM t3
-WHERE t3.val LIKE 'a%' OR t3.val LIKE 'e%');
-val
-aaa
-eee
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t3;
-# End of Bug#48623
-#
-# LPBUG#602574: RQG: sql_select.cc:5385: bool greedy_search(JOIN*, table_map, uint,
-# uint): Assertion `join->best_read <
-#
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='materialization=off';
-CREATE TABLE t1 (
-varchar_key varchar(1) DEFAULT NULL,
-KEY varchar_key (varchar_key)
-);
-CREATE TABLE t2 (
-varchar_key varchar(1) DEFAULT NULL,
-KEY varchar_key (varchar_key)
-);
-INSERT INTO t2 VALUES
-(NULL),(NULL),(NULL),(NULL),('a'),('a'),('a'),('b'),('b'),('b'),('b'),('c'),
-('c'),('c'),('c'),('c'),('c'),('c'),('d'),('d'),('d'),('d'),('d'),('d'),('e'),
-('e'),('e'),('e'),('e'),('e'),('f'),('f'),('f'),('g'),('g'),('h'),('h'),('h'),
-('h'),('i'),('j'),('j'),('j'),('k'),('k'),('l'),('l'),('m'),('m'),('m'),('m'),
-('n'),('n'),('n'),('o'),('o'),('o'),('p'),('p'),('p'),('q'),('q'),('q'),('r'),
-('r'),('r'),('r'),('s'),('s'),('s'),('s'),('t'),('t'),('t'),('t'),('u'),('u'),
-('u'),('u'),('v'),('v'),('v'),('v'),('w'),('w'),('w'),('w'),('w'),('w'),('x'),
-('x'),('x'),('y'),('y'),('y'),('y'),('z'),('z'),('z'),('z');
-CREATE TABLE t3 (
-varchar_key varchar(1) DEFAULT NULL,
-KEY varchar_key (varchar_key)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t3 VALUES
-(NULL),('c'),('d'),('e'),('f'),('h'),('j'),('k'),('k'),('m'),('m'),('m'),
-('n'),('o'),('r'),('t'),('t'),('u'),('w'),('y');
-SELECT varchar_key FROM t3
-WHERE (SELECT varchar_key FROM t3
-WHERE (varchar_key,varchar_key)
-IN (SELECT t1.varchar_key, t2 .varchar_key
-FROM t1 RIGHT JOIN t2 ON t1.varchar_key
-)
-);
-varchar_key
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1, t2, t3;
-#
-# Bug#46692 "Crash occurring on queries with nested FROM subqueries
-# using materialization."
-#
-CREATE TABLE t1 (
-pk INTEGER PRIMARY KEY,
-int_key INTEGER,
-KEY int_key(int_key)
-);
-INSERT INTO t1 VALUES (10,186),(11,NULL),(12,2),(13,3),(14,0),(15,133),(16,1);
-CREATE TABLE t2 (
-pk INTEGER PRIMARY KEY,
-int_key INTEGER,
-KEY int_key(int_key)
-);
-INSERT INTO t2 VALUES (1,7),(2,2);
-SELECT * FROM t1 WHERE (140, 4) IN
-(SELECT t2.int_key, t2 .pk FROM t2 STRAIGHT_JOIN t1 ON t2.int_key);
-pk int_key
-DROP TABLE t1, t2;
-#
-# Bug#42353 "SELECT ... WHERE oe IN (SELECT w/ LEFT JOIN) query
-# causes crash."
-#
-CREATE TABLE t1 (
-pk INTEGER PRIMARY KEY,
-int_nokey INTEGER,
-int_key INTEGER,
-date_key DATE,
-datetime_nokey DATETIME,
-varchar_nokey VARCHAR(1)
-);
-CREATE TABLE t2 (
-date_nokey DATE
-);
-CREATE TABLE t3 (
-pk INTEGER PRIMARY KEY,
-int_nokey INTEGER,
-date_key date,
-varchar_key VARCHAR(1),
-varchar_nokey VARCHAR(1),
-KEY date_key (date_key)
-);
-SELECT date_key FROM t1
-WHERE (int_key, int_nokey)
-IN (SELECT t3.int_nokey, t3.pk
-FROM t2 LEFT JOIN t3 ON (t2.date_nokey < t3.date_key)
-WHERE t3.varchar_key <= t3.varchar_nokey OR t3.int_nokey <= t3.pk
-)
-AND (varchar_nokey <> 'f' OR NOT int_key < 7);
-date_key
-#
-# Bug#45933 "Crash in optimize_semijoin_nests on JOIN in subquery
-# + AND in outer query".
-#
-INSERT INTO t1 VALUES (10,7,5,'2009-06-16','2002-04-10 14:25:30','w'),
-(11,7,0,'0000-00-00','0000-00-00 00:00:00','s'),
-(12,4,0,'2003-07-14','2006-09-14 04:01:02','y'),
-(13,0,4,'2002-07-25','0000-00-00 00:00:00','c'),
-(14,1,8,'2007-07-03','0000-00-00 00:00:00','q'),
-(15,6,5,'2001-11-12','0000-00-00 00:00:00',''),
-(16,2,9,'0000-00-00','0000-00-00 00:00:00','j'),
-(29,9,1,'0000-00-00','2003-08-11 00:00:00','m');
-INSERT INTO t3 VALUES (1,9,'0000-00-00','b','b'),
-(2,2,'2002-09-17','h','h');
-SELECT t1.varchar_nokey FROM t1 JOIN t3 ON t1.datetime_nokey
-WHERE t1.varchar_nokey
-IN (SELECT varchar_nokey FROM t1
-WHERE (pk)
-IN (SELECT t3.int_nokey
-FROM t3 LEFT JOIN t1 ON t1.varchar_nokey
-WHERE t3.date_key BETWEEN '2008-06-07' AND '2006-06-26'
- )
-);
-varchar_nokey
-DROP TABLE t1, t2, t3;
-#
-# Bug#45219 "Crash on SELECT DISTINCT query containing a
-# LEFT JOIN in subquery"
-#
-CREATE TABLE t1 (
-pk INTEGER NOT NULL,
-int_nokey INTEGER NOT NULL,
-datetime_key DATETIME NOT NULL,
-varchar_key VARCHAR(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY datetime_key (datetime_key),
-KEY varchar_key (varchar_key)
-);
-INSERT INTO t1 VALUES
-(1,9,'0000-00-00 00:00:00','p'),(2,0,'2002-02-09 07:38:13','v'),
-(3,8,'2001-05-03 12:08:14','t'),(4,3,'0000-00-00 00:00:00','u'),
-(5,7,'2009-07-28 03:43:30','n'),(6,0,'2009-08-04 00:00:00','l'),
-(7,1,'0000-00-00 00:00:00','h'),(8,9,'0000-00-00 00:00:00','u'),
-(9,0,'2005-08-02 17:16:54','n'),(10,9,'2002-12-21 00:00:00','j'),
-(11,0,'2005-08-15 12:37:35','k'),(12,5,'0000-00-00 00:00:00','e'),
-(13,0,'2006-03-10 00:00:00','i'),(14,8,'2005-05-16 11:02:36','u'),
-(15,8,'2008-11-02 00:00:00','n'),(16,5,'2006-03-15 00:00:00','b'),
-(17,1,'0000-00-00 00:00:00','x'),(18,7,'0000-00-00 00:00:00',''),
-(19,0,'2008-12-17 20:15:40','q'),(20,9,'0000-00-00 00:00:00','u');
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 VALUES
-(10,0,'2006-07-07 07:26:28','q'),(11,5,'2002-09-23 00:00:00','m'),
-(12,7,'0000-00-00 00:00:00','j'),(13,1,'2006-06-07 00:00:00','z'),
-(14,8,'2000-09-16 12:15:34','a'),(15,2,'2007-08-05 15:47:52',''),
-(16,1,'0000-00-00 00:00:00','e'),(17,8,'2005-12-02 19:34:26','t'),
-(18,5,'0000-00-00 00:00:00','q'),(19,4,'0000-00-00 00:00:00','b'),
-(20,5,'2007-12-28 00:00:00','w'),(21,3,'2004-08-02 11:48:43','m'),
-(22,0,'0000-00-00 00:00:00','x'),(23,8,'2004-04-19 12:18:43',''),
-(24,0,'2009-04-27 00:00:00','w'),(25,4,'2006-10-20 14:52:15','x'),
-(26,0,'0000-00-00 00:00:00','e'),(27,0,'2002-03-22 11:48:37','e'),
-(28,2,'0000-00-00 00:00:00','p'),(29,0,'2001-01-04 03:55:07','x');
-CREATE TABLE t3 LIKE t1;
-INSERT INTO t3 VALUES
-(10,8,'2007-08-19 08:08:38','i'),(11,0,'2000-05-21 03:51:51','');
-SELECT DISTINCT datetime_key FROM t1
-WHERE (int_nokey, pk)
-IN (SELECT t3.pk, t3.pk FROM t2 LEFT JOIN t3 ON t3.varchar_key)
-AND pk = 9;
-datetime_key
-DROP TABLE t1, t2, t3;
-#
-# BUG#53060: LooseScan semijoin strategy does not return all rows
-#
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin=on,materialization=off';
-set optimizer_switch='firstmatch=off,loosescan=on';
-CREATE TABLE t1 (i INTEGER);
-INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
-CREATE TABLE t2 (i INTEGER, j INTEGER, KEY k(i, j));
-INSERT INTO t2 VALUES (1, 0), (1, 1), (2, 0), (2, 1);
-EXPLAIN
-SELECT * FROM t1 WHERE (i) IN (SELECT i FROM t2 where j > 0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index k k 10 NULL 4 Using where; Using index; LooseScan
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM t1 WHERE (i) IN (SELECT i FROM t2 where j > 0);
-i
-1
-2
-DROP TABLE t1, t2;
-set optimizer_switch=@save_optimizer_switch;
-#
-# BUG#49453: re-execution of prepared statement with view
-# and semijoin crashes
-#
-CREATE TABLE t1 (city VARCHAR(50), country_id INT);
-CREATE TABLE t2 (country_id INT, country VARCHAR(50));
-INSERT INTO t1 VALUES
-('Batna',2),('Bchar',2),('Skikda',2),('Tafuna',3),('Algeria',2) ;
-INSERT INTO t2 VALUES (2,'Algeria'),(2,'AlgeriaDup'),(3,'XAmerican Samoa');
-CREATE VIEW v1 AS
-SELECT country_id as vf_country_id
-FROM t2
-WHERE LEFT(country,1) = "A";
-PREPARE stmt FROM "
-SELECT city, country_id
-FROM t1
-WHERE country_id IN (SELECT vf_country_id FROM v1);
-";
-
-EXECUTE stmt;
-city country_id
-Batna 2
-Bchar 2
-Skikda 2
-Algeria 2
-EXECUTE stmt;
-city country_id
-Batna 2
-Bchar 2
-Skikda 2
-Algeria 2
-DROP TABLE t1,t2;
-DROP VIEW v1;
-#
-# Bug#54437 Extra rows with LEFT JOIN + semijoin
-#
-create table t1 (a int);
-create table t2 (a int);
-create table t3 (a int);
-insert into t1 values(1),(1);
-insert into t2 values(1),(1),(1),(1);
-insert into t3 values(2),(2);
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='materialization=off';
-set optimizer_switch='semijoin=off';
-explain
-select * from t1 where t1.a in (select t2.a from t2 left join t3 on t2.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 4 Using where
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-select * from t1 where t1.a in (select t2.a from t2 left join t3 on t2.a=t3.a);
-a
-1
-1
-set optimizer_switch='semijoin=on';
-explain
-select * from t1 where t1.a in (select t2.a from t2 left join t3 on t2.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL NULL NULL NULL NULL 4 Using where; Start temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where; End temporary; Using join buffer (incremental, BNL join)
-select * from t1 where t1.a in (select t2.a from t2 left join t3 on t2.a=t3.a);
-a
-1
-1
-set optimizer_switch=@save_optimizer_switch;
-drop table t1,t2,t3;
-#
-# Bug#55955: crash in MEMORY engine with IN(LEFT JOIN (JOIN))
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-CREATE TABLE t3 (a INT);
-INSERT INTO t1 VALUES(1),(1);
-INSERT INTO t2 VALUES(1),(1);
-INSERT INTO t3 VALUES(2),(2);
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin=off,materialization=off';
-EXPLAIN
-SELECT * FROM t1
-WHERE t1.a IN (SELECT t2.a
-FROM t2 LEFT JOIN (t2 AS t2inner, t3) ON t2.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY t2inner ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-SELECT * FROM t1
-WHERE t1.a IN (SELECT t2.a
-FROM t2 LEFT JOIN (t2 AS t2inner, t3) ON t2.a=t3.a);
-a
-1
-1
-set optimizer_switch='semijoin=off,materialization=on';
-EXPLAIN
-SELECT * FROM t1
-WHERE t1.a IN (SELECT t2.a
-FROM t2 LEFT JOIN (t2 AS t2inner, t3) ON t2.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-2 MATERIALIZED t2inner ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (incremental, BNL join)
-SELECT * FROM t1
-WHERE t1.a IN (SELECT t2.a
-FROM t2 LEFT JOIN (t2 AS t2inner, t3) ON t2.a=t3.a);
-a
-1
-1
-set optimizer_switch='semijoin=on,materialization=off';
-EXPLAIN
-SELECT * FROM t1
-WHERE t1.a IN (SELECT t2.a
-FROM t2 LEFT JOIN (t2 AS t2inner, t3) ON t2.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Start temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t2inner ALL NULL NULL NULL NULL 2 Using join buffer (incremental, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where; End temporary; Using join buffer (incremental, BNL join)
-SELECT * FROM t1
-WHERE t1.a IN (SELECT t2.a
-FROM t2 LEFT JOIN (t2 AS t2inner, t3) ON t2.a=t3.a);
-a
-1
-1
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t2,t3;
-#
-# BUG#52329 - Wrong result: subquery materialization, IN,
-# non-null field followed by nullable
-#
-CREATE TABLE t1 (a1 CHAR(8) NOT NULL, a2 char(8) NOT NULL);
-CREATE TABLE t2a (b1 char(8), b2 char(8));
-CREATE TABLE t2b (b1 CHAR(8), b2 char(8) NOT NULL);
-CREATE TABLE t2c (b1 CHAR(8) NOT NULL, b2 char(8));
-INSERT INTO t1 VALUES ('1 - 12', '2 - 22');
-INSERT INTO t2a VALUES ('1 - 11', '2 - 21'),
-('1 - 11', '2 - 21'),
-('1 - 12', '2 - 22'),
-('1 - 12', '2 - 22'),
-('1 - 13', '2 - 23');
-INSERT INTO t2b SELECT * FROM t2a;
-INSERT INTO t2c SELECT * FROM t2a;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin=off,materialization=on';
-SELECT * FROM t1
-WHERE (a1, a2) IN (
-SELECT b1, b2 FROM t2c WHERE b1 > '0' GROUP BY b1, b2);
-a1 a2
-1 - 12 2 - 22
-SELECT * FROM t1
-WHERE (a1, a2) IN (
-SELECT b1, b2 FROM t2a WHERE b1 > '0');
-a1 a2
-1 - 12 2 - 22
-SELECT * FROM t1
-WHERE (a1, a2) IN (
-SELECT b1, b2 FROM t2b WHERE b1 > '0');
-a1 a2
-1 - 12 2 - 22
-SELECT * FROM t1
-WHERE (a1, a2) IN (
-SELECT b1, b2 FROM t2c WHERE b1 > '0');
-a1 a2
-1 - 12 2 - 22
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t2a,t2b,t2c;
-#
-# Bug#57623: subquery within before insert trigger causes crash (sj=on)
-#
-CREATE TABLE ot1(a INT);
-CREATE TABLE ot2(a INT);
-CREATE TABLE ot3(a INT);
-CREATE TABLE it1(a INT);
-INSERT INTO ot1 VALUES(0),(1),(2),(3),(4),(5),(6),(7);
-INSERT INTO ot2 VALUES(0),(2),(4),(6);
-INSERT INTO ot3 VALUES(0),(3),(6);
-INSERT INTO it1 VALUES(0),(1),(2),(3),(4),(5),(6),(7);
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin=on';
-set optimizer_switch='materialization=off';
-explain SELECT *
-FROM ot1
-LEFT JOIN
-(ot2 JOIN ot3 on ot2.a=ot3.a)
-ON ot1.a=ot2.a AND ot1.a IN (SELECT a from it1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot1 ALL NULL NULL NULL NULL 8
-1 PRIMARY ot3 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY ot2 ALL NULL NULL NULL NULL 4 Using where; Using join buffer (incremental, BNL join)
-2 DEPENDENT SUBQUERY it1 ALL NULL NULL NULL NULL 8 Using where
-SELECT *
-FROM ot1
-LEFT JOIN
-(ot2 JOIN ot3 on ot2.a=ot3.a)
-ON ot1.a=ot2.a AND ot1.a IN (SELECT a from it1);
-a a a
-0 0 0
-6 6 6
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-5 NULL NULL
-7 NULL NULL
-prepare s from 'SELECT *
-FROM ot1
-LEFT JOIN
-(ot2 JOIN ot3 on ot2.a=ot3.a)
-ON ot1.a=ot2.a AND ot1.a IN (SELECT a from it1)';
-execute s;
-a a a
-0 0 0
-6 6 6
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-5 NULL NULL
-7 NULL NULL
-execute s;
-a a a
-0 0 0
-6 6 6
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-5 NULL NULL
-7 NULL NULL
-deallocate prepare s;
-set optimizer_switch='materialization=on';
-explain SELECT *
-FROM ot1
-LEFT JOIN
-(ot2 JOIN ot3 on ot2.a=ot3.a)
-ON ot1.a=ot2.a AND ot1.a IN (SELECT a from it1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY ot1 ALL NULL NULL NULL NULL 8
-1 PRIMARY ot3 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY ot2 ALL NULL NULL NULL NULL 4 Using where; Using join buffer (incremental, BNL join)
-2 MATERIALIZED it1 ALL NULL NULL NULL NULL 8
-SELECT *
-FROM ot1
-LEFT JOIN
-(ot2 JOIN ot3 on ot2.a=ot3.a)
-ON ot1.a=ot2.a AND ot1.a IN (SELECT a from it1);
-a a a
-0 0 0
-6 6 6
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-5 NULL NULL
-7 NULL NULL
-prepare s from 'SELECT *
-FROM ot1
-LEFT JOIN
-(ot2 JOIN ot3 on ot2.a=ot3.a)
-ON ot1.a=ot2.a AND ot1.a IN (SELECT a from it1)';
-execute s;
-a a a
-0 0 0
-6 6 6
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-5 NULL NULL
-7 NULL NULL
-execute s;
-a a a
-0 0 0
-6 6 6
-1 NULL NULL
-2 NULL NULL
-3 NULL NULL
-4 NULL NULL
-5 NULL NULL
-7 NULL NULL
-deallocate prepare s;
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE ot1, ot2, ot3, it1;
-#
-# Bug#59919/11766739: Crash in tmp_table_param::init() with semijoin=on
-#
-CREATE TABLE t1 (f1 INTEGER) ENGINE=MyISAM;
-CREATE TABLE t2 (f1 INTEGER, f2 INTEGER) ENGINE=MyISAM;
-CREATE TABLE t3 (f1 INTEGER, f2 INTEGER) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (1,1), (2,1);
-INSERT INTO t3 VALUES
-(1,1), (2,1), (5,4), (7,3), (8,2), (8,1), (7,3),
-(9,5), (4,3), (7,2), (7,7), (3,1), (5,8), (9,7);
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin=off,materialization=on';
-EXPLAIN
-SELECT * FROM t3
-WHERE f2 IN (SELECT t1.f1
-FROM t1 LEFT OUTER JOIN (t2 AS b1 JOIN t2 AS b2 ON TRUE) ON TRUE);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 14 Using where
-2 MATERIALIZED t1 system NULL NULL NULL NULL 1
-2 MATERIALIZED b1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED b2 ALL NULL NULL NULL NULL 2
-SELECT * FROM t3
-WHERE f2 IN (SELECT t1.f1
-FROM t1 LEFT OUTER JOIN (t2 AS b1 JOIN t2 AS b2 ON TRUE) ON TRUE);
-f1 f2
-1 1
-2 1
-8 1
-3 1
-set optimizer_switch='semijoin=on,materialization=on';
-EXPLAIN
-SELECT * FROM t3
-WHERE f2 IN (SELECT t1.f1
-FROM t1 LEFT OUTER JOIN (t2 AS b1 JOIN t2 AS b2 ON TRUE) ON TRUE);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 1
-1 PRIMARY t3 ALL NULL NULL NULL NULL 14 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED b1 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED b2 ALL NULL NULL NULL NULL 2
-SELECT * FROM t3
-WHERE f2 IN (SELECT t1.f1
-FROM t1 LEFT OUTER JOIN (t2 AS b1 JOIN t2 AS b2 ON TRUE) ON TRUE);
-f1 f2
-1 1
-2 1
-8 1
-3 1
-set optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1, t2, t3 ;
-#
-#
-# BUG#784723: Wrong result with semijoin + nested subqueries in maria-5.3
-#
-CREATE TABLE t1 ( t1field integer, primary key (t1field));
-CREATE TABLE t2 ( t2field integer, primary key (t2field));
-INSERT INTO t1 VALUES (1),(2),(3);
-INSERT INTO t2 VALUES (2),(3),(4);
-explain
-SELECT * FROM t1 A
-WHERE
-A.t1field IN (SELECT A.t1field FROM t2 B) AND
-A.t1field IN (SELECT C.t2field FROM t2 C
-WHERE C.t2field IN (SELECT D.t2field FROM t2 D));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A index PRIMARY PRIMARY 4 NULL 3 Using index
-1 PRIMARY B index NULL PRIMARY 4 NULL 3 Using index; FirstMatch(A); Using join buffer (flat, BNL join)
-1 PRIMARY C eq_ref PRIMARY PRIMARY 4 test.A.t1field 1 Using index
-1 PRIMARY D eq_ref PRIMARY PRIMARY 4 test.A.t1field 1 Using index
-SELECT * FROM t1 A
-WHERE
-A.t1field IN (SELECT A.t1field FROM t2 B) AND
-A.t1field IN (SELECT C.t2field FROM t2 C
-WHERE C.t2field IN (SELECT D.t2field FROM t2 D));
-t1field
-2
-3
-drop table t1,t2;
-#
-# BUG#787299: Valgrind complains on a join query with two IN subqueries
-#
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-create table t2 as select * from t1;
-select * from t1 A, t1 B
-where A.a = B.a and A.a in (select a from t2 C) and B.a in (select a from t2 D);
-a a
-1 1
-2 2
-3 3
-explain
-select * from t1 A, t1 B
-where A.a = B.a and A.a in (select a from t2 C) and B.a in (select a from t2 D);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY A ALL NULL NULL NULL NULL 3
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY B ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED C ALL NULL NULL NULL NULL 3
-3 MATERIALIZED D ALL NULL NULL NULL NULL 3
-drop table t1, t2;
-#
-# BUG#784441: Abort on semijoin with a view as the inner table
-#
-CREATE TABLE t1 (a int) ;
-INSERT INTO t1 VALUES (1), (1);
-CREATE TABLE t2 (a int) ;
-INSERT INTO t2 VALUES (1), (1);
-CREATE VIEW v1 AS SELECT 1;
-EXPLAIN
-SELECT * FROM t1 INNER JOIN t2 ON t2.a != 0 AND t2.a IN (SELECT * FROM v1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived3> system NULL NULL NULL NULL 1
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL No tables used
-SELECT * FROM t1 INNER JOIN t2 ON t2.a != 0 AND t2.a IN (SELECT * FROM v1);
-a a
-1 1
-1 1
-1 1
-1 1
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# BUG#751439 Assertion `!table->file || table->file->inited == handler::NONE' failed with subquery
-#
-CREATE TABLE t1 ( f10 int, f11 int) ;
-INSERT IGNORE INTO t1 VALUES (0,0),(0,0);
-CREATE TABLE t2 ( f11 int);
-INSERT IGNORE INTO t2 VALUES (0),(0);
-CREATE TABLE t3 ( f11 int) ;
-INSERT IGNORE INTO t3 VALUES (0);
-SELECT alias1.f11 AS field2
-FROM ( t3 AS alias2 JOIN t1 AS alias3 ON alias3.f10 = 1)
-LEFT JOIN ( t2 AS alias1 ) ON alias3.f11 = 1
-WHERE alias2.f11 IN ( SELECT f11 FROM t2 )
-GROUP BY field2 ;
-field2
-drop table t1, t2, t3;
-#
-# BUG#778406 Crash in hp_movelink with Aria engine and subqueries
-#
-CREATE TABLE t4 (f10 varchar(32) , KEY (f10)) ENGINE=Aria;
-INSERT INTO t4 VALUES ('x'),('m'),('c');
-CREATE TABLE t1 (f11 int) ENGINE=Aria;
-INSERT INTO t1 VALUES (0),(0),(0);
-CREATE TABLE t2 ( f10 int) ENGINE=Aria;
-INSERT INTO t2 VALUES (0),(0),(0);
-CREATE TABLE t3 ( f10 int, f11 int) ENGINE=Aria;
-SELECT *
-FROM t4
-WHERE f10 IN
-( SELECT t1.f11
-FROM t1
-LEFT JOIN t2 JOIN t3 ON t3.f10 = t2.f10 ON t3.f11 != 0 );
-f10
-x
-m
-c
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-drop table t1,t2,t3,t4;
-#
-# BUG#751484: Valgrind warning / sporadic crash in evaluate_join_record sql_select.cc:14099 with semijoin
-#
-CREATE TABLE t1 ( f10 int, f11 int, KEY (f10));
-INSERT IGNORE INTO t1 VALUES (0, 0),(0, 0);
-CREATE TABLE t3 ( f10 int);
-INSERT IGNORE INTO t3 VALUES (0);
-set @tmp_751484= @@optimizer_switch;
-set optimizer_switch='materialization=on';
-SELECT * FROM t1
-WHERE f11 IN (
-SELECT C_SQ1_alias1.f11
-FROM t1 AS C_SQ1_alias1
-JOIN t3 AS C_SQ1_alias2
-ON C_SQ1_alias2.f10 = C_SQ1_alias1.f10
-);
-f10 f11
-0 0
-0 0
-set optimizer_switch='materialization=off';
-SELECT * FROM t1
-WHERE f11 IN (
-SELECT C_SQ1_alias1.f11
-FROM t1 AS C_SQ1_alias1
-JOIN t3 AS C_SQ1_alias2
-ON C_SQ1_alias2.f10 = C_SQ1_alias1.f10
-);
-f10 f11
-0 0
-0 0
-set optimizer_switch=@tmp_751484;
-drop table t1, t3;
-# BUG#795530 Wrong result with subquery semijoin materialization and outer join
-# Simplified testcase that uses DuplicateElimination
-#
-create table t1 (a int);
-create table t2 (a int, b char(10));
-insert into t1 values (1),(2);
-insert into t2 values (1, 'one'), (3, 'three');
-create table t3 (b char(10));
-insert into t3 values('three'),( 'four');
-insert into t3 values('three'),( 'four');
-insert into t3 values('three'),( 'four');
-insert into t3 values('three'),( 'four');
-explain select * from t3 where t3.b in (select t2.b from t1 left join t2 on t1.a=t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2
-1 PRIMARY t3 ALL NULL NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-select * from t3 where t3.b in (select t2.b from t1 left join t2 on t1.a=t2.a);
-b
-drop table t1, t2, t3;
-#
-# BUG#600958 RQG: Crash in optimize_semijoin_nests
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_int_key int(11) DEFAULT NULL,
-col_date_key date DEFAULT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_date_key (col_date_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES (10,8,'2002-02-21',NULL);
-CREATE TABLE t2 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_int_key int(11) DEFAULT NULL,
-col_date_key date DEFAULT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_date_key (col_date_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-INSERT INTO t2 VALUES (1,7,'1900-01-01','f');
-SELECT col_date_key FROM t1
-WHERE 5 IN (
-SELECT SUBQUERY3_t1 .col_int_key
-FROM t2 SUBQUERY3_t1
-LEFT JOIN t1 SUBQUERY3_t2 ON SUBQUERY3_t1 .col_varchar_key
-);
-col_date_key
-drop table t2, t1;
-#
-# No BUG#: Duplicate weedout check is not done for outer joins
-#
-create table t1 (a int);
-create table t2 (a int);
-insert into t1 values (1),(1),(2),(2);
-insert into t2 values (1);
-create table t0 (a int);
-insert into t0 values (1),(2);
-set @tmp_20110622= @@optimizer_switch;
-set optimizer_switch='firstmatch=off,loosescan=off,materialization=off';
-# Check DuplicateWeedout + join buffer
-explain
-select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Start temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where; End temporary; Using join buffer (incremental, BNL join)
-select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
-a
-1
-2
-# Check DuplicateWeedout without join buffer
-set @tmp_jcl_20110622= @@join_cache_level;
-set join_cache_level= 0;
-explain
-select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Start temporary
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where; End temporary
-select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
-a
-1
-2
-# Check FirstMatch without join buffer:
-set optimizer_switch='firstmatch=on';
-explain
-select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Start temporary
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where; End temporary
-select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
-a
-1
-2
-#
-# Now, check the same for multiple inner tables:
-alter table t2 add b int;
-update t2 set b=a;
-create table t3 as select * from t2;
-set optimizer_switch='firstmatch=off';
-set join_cache_level= 0;
-# DuplicateWeedout without join buffer
-explain
-select * from t0
-where a in (select t1.a from t1 left join (t3 join t2 on t3.b=t2.b) on t1.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Start temporary
-1 PRIMARY t3 ALL NULL NULL NULL NULL 1 Using where
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where; End temporary
-select * from t0
-where a in (select t1.a from t1 left join (t3 join t2 on t3.b=t2.b) on t1.a=t3.a);
-a
-1
-2
-set @@join_cache_level=@tmp_jcl_20110622;
-# DuplicateWeedout + join buffer
-explain
-select * from t0
-where a in (select t1.a from t1 left join (t3 join t2 on t3.b=t2.b) on t1.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Start temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 1 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using where; End temporary; Using join buffer (incremental, BNL join)
-select * from t0
-where a in (select t1.a from t1 left join (t3 join t2 on t3.b=t2.b) on t1.a=t3.a);
-a
-1
-2
-# Now, let the inner join side have a 'partial' match
-select * from t3;
-a b
-1 1
-insert into t3 values(2,2);
-explain
-select * from t0
-where a in (select t1.a from t1 left join (t3 join t2 on t3.b=t2.b) on t1.a=t3.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; Start temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t2 ALL NULL NULL NULL NULL 1 Using join buffer (incremental, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where; End temporary; Using join buffer (incremental, BNL join)
-select * from t0
-where a in (select t1.a from t1 left join (t3 join t2 on t3.b=t2.b) on t1.a=t3.a);
-a
-1
-2
-set @@optimizer_switch=@tmp_20110622;
-drop table t0, t1, t2, t3;
-#
-# BUG#802965: Crash in do_copy_not_null with semijoin=on in maria-5.3
-#
-set @save_802965= @@optimizer_switch;
-set optimizer_switch='semijoin=on,materialization=off,firstmatch=off,loosescan=off';
-CREATE TABLE t2 ( f1 int NOT NULL , PRIMARY KEY (f1)) ;
-INSERT IGNORE INTO t2 VALUES (19),(20);
-CREATE TABLE t1 ( f1 int NOT NULL , PRIMARY KEY (f1)) ;
-INSERT IGNORE INTO t1 VALUES (21),(22),(23),(24);
-SELECT *
-FROM t2 , t1
-WHERE t2.f1 IN
-(
-SELECT SQ1_alias1.f1
-FROM t1 AS SQ1_alias1 LEFT JOIN t2 AS SQ1_alias2 JOIN t2 AS SQ1_alias3 ON SQ1_alias3.f1 ON SQ1_alias3.f1
-)
-AND t1.f1 = t2.f1 ;
-f1 f1
-DROP TABLE t1, t2;
-set optimizer_switch=@save_802965;
-#
-# BUG#803365: Crash in pull_out_semijoin_tables with outer join + semijoin + derived tables in maria-5.3 with WL#106
-#
-CREATE TABLE t1 ( f1 int) ;
-INSERT INTO t1 VALUES (1),(1);
-CREATE TABLE t2 ( f2 int) ;
-INSERT INTO t2 VALUES (1),(1);
-CREATE TABLE t3 ( f3 int) ;
-INSERT INTO t3 VALUES (1),(1);
-SELECT *
-FROM t1
-WHERE t1.f1 IN (
-SELECT t2.f2
-FROM t2
-LEFT JOIN (
-SELECT *
-FROM t3
-) AS alias1
-ON alias1.f3 = t2.f2
-);
-f1
-1
-1
-DROP TABLE t1,t2,t3;
-#
-# BUG#611704: Crash in replace_where_subcondition with nested subquery and semijoin=on
-#
-CREATE TABLE t1 ( f1 int) ;
-CREATE TABLE t2 ( f1 int) ;
-CREATE TABLE t3 ( f1 int) ;
-SELECT * FROM (
-SELECT t3.*
-FROM t2 STRAIGHT_JOIN t3
-ON t3.f1
-AND (t3.f1 ) IN (
-SELECT t1.f1
-FROM t1
-)
-) AS alias1;
-f1
-DROP TABLE t1,t2,t3;
-# BUG#611704: another testcase:
-CREATE TABLE t1 ( f1 int(11), f3 varchar(1), f4 varchar(1)) ;
-CREATE TABLE t2 ( f2 int(11), KEY (f2));
-CREATE TABLE t3 ( f4 varchar(1)) ;
-PREPARE st1 FROM '
-SELECT *
-FROM t1
-STRAIGHT_JOIN ( t2 STRAIGHT_JOIN t3 ON t2.f2 )
-ON (t1.f3) IN ( SELECT f4 FROM t1 )
-';
-EXECUTE st1;
-f1 f3 f4 f2 f4
-DROP TABLE t1,t2,t3;
-#
-# BUG#803457: Wrong result with semijoin + view + outer join in maria-5.3-subqueries-mwl90
-# (Original testcase)
-#
-CREATE TABLE t1 (f1 int, f2 int );
-INSERT INTO t1 VALUES (2,0),(4,0),(0,NULL);
-CREATE TABLE t2 (f2 int, f3 int );
-INSERT INTO t2 VALUES (NULL,NULL),(0,0);
-CREATE TABLE t3 ( f1 int, f3 int );
-INSERT INTO t3 VALUES (2,0),(4,0),(0,NULL),(4,0),(8,0);
-CREATE TABLE t4 ( f2 int, KEY (f2) );
-INSERT INTO t4 VALUES (0),(NULL);
-CREATE VIEW v4 AS SELECT DISTINCT f2 FROM t4 ;
-# The following must not have outer joins:
-explain extended
-SELECT * FROM t1 NATURAL LEFT JOIN (t2, t3) WHERE t2.f3 IN (SELECT * FROM t4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (incremental, BNL join)
-2 MATERIALIZED t4 index f2 f2 5 NULL 2 100.00 Using index
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t2`.`f3` AS `f3`,`test`.`t3`.`f3` AS `f3` from `test`.`t1` semi join (`test`.`t4`) join `test`.`t2` join `test`.`t3` where `test`.`t3`.`f1` = `test`.`t1`.`f1` and `test`.`t1`.`f2` = `test`.`t2`.`f2`
-SELECT * FROM t1 NATURAL LEFT JOIN (t2, t3) WHERE t2.f3 IN (SELECT * FROM t4);
-f1 f2 f3 f3
-2 0 0 0
-4 0 0 0
-4 0 0 0
-drop view v4;
-drop table t1, t2, t3, t4;
-#
-# BUG#803303: Wrong result with semijoin=on, outer join in maria-5.3-subqueries-mwl90
-#
-# Testcase#1:
-set @tmp803303= @@optimizer_switch;
-set optimizer_switch = 'semijoin=on,materialization=off,firstmatch=off,loosescan=off';
-CREATE TABLE t2 ( f1 int) ;
-INSERT IGNORE INTO t2 VALUES (6),(8);
-CREATE TABLE t1 ( f1 int, f2 int, f3 int) ;
-INSERT IGNORE INTO t1 VALUES (8,0,0),(7,0,0),(9,0,0);
-SELECT alias2.f1
-FROM t2 AS alias1
-LEFT JOIN ( t1 AS alias2 JOIN t1 AS alias3 ON alias3.f2 = alias2.f3 )
-ON alias3.f2 = alias2.f2
-WHERE alias2.f1 IN ( SELECT f1 FROM t2 AS alias4 ) ;
-f1
-8
-8
-8
-8
-8
-8
-drop table t1,t2;
-set optimizer_switch= @tmp803303;
-# Testcase #2:
-CREATE TABLE t1 ( f10 int) ;
-INSERT INTO t1 VALUES (0),(0);
-CREATE TABLE t2 ( f10 int, f11 varchar(1)) ;
-INSERT INTO t2 VALUES (0,'a'),(0,'b');
-CREATE TABLE t3 ( f10 int) ;
-INSERT INTO t3 VALUES (0),(0),(0),(0),(0);
-CREATE TABLE t4 ( f10 varchar(1), f11 int) ;
-INSERT INTO t4 VALUES ('a',0),('b',0);
-SELECT * FROM t1
-LEFT JOIN ( t2 JOIN t3 ON t3.f10 = t2.f10 ) ON t1.f10 = t2.f10
-WHERE t2.f10 IN (
-SELECT t4.f11
-FROM t4
-WHERE t4.f10 != t2.f11
-);
-f10 f10 f11 f10
-0 0 b 0
-0 0 b 0
-0 0 a 0
-0 0 a 0
-0 0 b 0
-0 0 b 0
-0 0 a 0
-0 0 a 0
-0 0 b 0
-0 0 b 0
-0 0 a 0
-0 0 a 0
-0 0 b 0
-0 0 b 0
-0 0 a 0
-0 0 a 0
-0 0 b 0
-0 0 b 0
-0 0 a 0
-0 0 a 0
-drop table t1,t2,t3,t4;
-#
-# BUG#803457: Wrong result with semijoin + view + outer join in maria-5.3-subqueries-mwl90
-#
-set @tmp803457=@@optimizer_switch;
-set optimizer_switch='materialization=off';
-CREATE TABLE t1 (f1 int, f2 int );
-INSERT INTO t1 VALUES (2,0),(4,0),(0,NULL);
-CREATE TABLE t2 (f2 int, f3 int );
-INSERT INTO t2 VALUES (NULL,NULL),(0,0);
-CREATE TABLE t3 ( f1 int, f3 int );
-INSERT INTO t3 VALUES (2,0),(4,0),(0,NULL),(4,0),(8,0);
-CREATE TABLE t4 ( f2 int);
-INSERT INTO t4 VALUES (0),(NULL);
-# The following uses Duplicate Weedout, and "End temporary" must not be
-# in the middle of the inner side of an outer join:
-explain
-SELECT * FROM t1 NATURAL LEFT JOIN (t2, t3) WHERE IFNULL(t2.f3,'foo') IN (SELECT * FROM t4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 5 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY t4 ALL NULL NULL NULL NULL 2 Using where; Start temporary; End temporary; Using join buffer (incremental, BNL join)
-SELECT * FROM t1 NATURAL LEFT JOIN (t2, t3 ) WHERE IFNULL(t2.f3,'foo') IN (SELECT * FROM t4);
-f1 f2 f3 f3
-2 0 0 0
-4 0 0 0
-4 0 0 0
-0 NULL NULL NULL
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'foo'
-Warning 1292 Truncated incorrect DOUBLE value: 'foo'
-DROP TABLE t1, t2, t3, t4;
-set @tmp803457=@@optimizer_switch;
-#
-# BUG#818280: crash in do_copy_not_null() in maria-5.3 with semijoin
-#
-CREATE TABLE t1 ( c1 int NOT NULL , c2 int NOT NULL, PRIMARY KEY (c1)) ;
-INSERT IGNORE INTO t1 VALUES (2,7),(1,3),(5,6);
-CREATE TABLE t3 ( c1 int NOT NULL , c2 int NOT NULL, PRIMARY KEY (c1)) ;
-INSERT IGNORE INTO t3 VALUES (2,7),(1,3),(5,6);
-CREATE TABLE t2 ( c1 int NOT NULL , c5 int NOT NULL );
-INSERT IGNORE INTO t2 VALUES (2,2),(2,2),(5,6);
-SELECT * FROM t1 WHERE c1 IN ( SELECT t3.c1 FROM t3 LEFT JOIN t2 ON t2 .c1 = t3 .c1 WHERE t2.c5 != 0 );
-c1 c2
-2 7
-5 6
-DROP TABLE t1, t2, t3;
-#
-# BUG#834534: Assertion `0' failed in replace_where_subcondition with semijoin subquery in HAVING
-#
-CREATE TABLE t1 ( d int );
-INSERT INTO t1 VALUES (2),(2),(0),(2),(2);
-CREATE TABLE t2 ( b int );
-INSERT INTO t2 VALUES (4),(3),(3);
-CREATE TABLE t3 ( a int );
-SELECT *
-FROM t3
-WHERE (t3.a) IN (
-SELECT t1.d
-FROM t1
-HAVING ( 4 ) IN (
-SELECT t2.b
-FROM t2
-)
-);
-a
-drop table t1, t2,t3;
-#
-# BUG#834758: Wrong result with innner join, LooseScan, two-column IN() predicate
-#
-set @tmp835758=@@optimizer_switch;
-set optimizer_switch='semijoin=on,loosescan=on,materialization=off,firstmatch=off';
-CREATE TABLE t1 (b int) ;
-INSERT INTO t1 VALUES (1),(5);
-CREATE TABLE t2 (a int, PRIMARY KEY (a)) ;
-INSERT INTO t2 VALUES (6),(10);
-CREATE TABLE t3 (a int, b int, KEY (b)) ;
-INSERT INTO t3 VALUES (6,5),(6,2),(8,0),(9,1),(6,5);
-# This used to incorrectly pick a join order of (t1, LooseScan(t3), t2):
-explain
-SELECT * FROM t1, t2 WHERE (t2.a , t1.b) IN (SELECT a, b FROM t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 2 Using index; Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL b NULL NULL NULL 5 Using where; Start temporary; End temporary; Using join buffer (incremental, BNL join)
-SELECT * FROM t1, t2 WHERE (t2.a , t1.b) IN (SELECT a, b FROM t3);
-b a
-5 6
-DROP TABLE t1, t2, t3;
-set @@optimizer_switch= @tmp835758;
-#
-# BUG#834739: Wrong result with 3-way inner join, LooseScan,multipart keys
-#
-set @tmp834739=@@optimizer_switch;
-set optimizer_switch='semijoin=on,loosescan=on,materialization=off,firstmatch=off';
-CREATE TABLE t2 ( b int, c int, KEY (b)) ;
-INSERT INTO t2 VALUES (1,0),(1,0),(9,0),(1,0),(5,0);
-INSERT INTO t2 VALUES (2,0),(3,0),(8,0),(6,0),(5,0);
-CREATE TABLE t3 ( a int);
-INSERT INTO t3 VALUES (0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0);
-CREATE TABLE t4 ( a int);
-INSERT INTO t4 VALUES (0),(0),(0);
-CREATE TABLE t5 ( b int, a int , KEY (a,b)) ;
-INSERT INTO t5 VALUES (7,0),(9,0);
-explain
-SELECT * FROM t3 WHERE t3.a IN (SELECT t5.a FROM t2, t4, t5 WHERE t2.c = t5.a AND t2.b = t5.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t5 index a a 10 NULL 2 Using index; Start temporary
-1 PRIMARY t4 ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
-1 PRIMARY t2 ALL b NULL NULL NULL 10 Using where; Using join buffer (incremental, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 15 Using where; End temporary; Using join buffer (incremental, BNL join)
-SELECT * FROM t3 WHERE t3.a IN (SELECT t5.a FROM t2, t4, t5 WHERE t2.c = t5.a AND t2.b = t5.b);
-a
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-DROP TABLE t2, t3, t4, t5;
-set @@optimizer_switch=@tmp834739;
-#
-# BUG#830993: Crash in end_read_record with derived table
-#
-set @tmp_830993=@@optimizer_switch;
-set optimizer_switch='semijoin=on,loosescan=off,materialization=off,firstmatch=off';
-set @tmp_830993_jbs= @@join_buffer_size;
-set join_buffer_size=160;
-CREATE TABLE t1 (
-a int(11) NOT NULL AUTO_INCREMENT,
-b int(11) DEFAULT NULL,
-c int(11) DEFAULT NULL,
-d time DEFAULT NULL,
-e varchar(1) DEFAULT NULL,
-f varchar(1) DEFAULT NULL,
-PRIMARY KEY (a),
-KEY c (c),
-KEY d (d),
-KEY e (e,c)
-);
-INSERT INTO t1 VALUES (10,NULL,8,'22:55:23','x','x'),
-(11,8,7,'10:19:31','d','d'),(12,1,1,'14:40:36','r','r'),
-(13,9,7,'04:37:47','f','f'),(14,4,9,'19:34:06','y','y'),
-(15,3,NULL,'20:35:33','u','u'),(16,2,1,NULL,'m','m'),
-(17,NULL,9,'14:43:37',NULL,NULL),(18,2,2,'02:23:09','o','o'),
-(19,NULL,9,'01:22:45','w','w'),(20,6,2,'00:00:00','m','m'),
-(21,7,4,'00:13:25','q','q'),(22,2,0,'03:47:16',NULL,NULL),
-(23,5,4,'01:41:48','d','d'),(24,7,8,'00:00:00','g','g'),
-(25,6,NULL,'22:32:04','x','x'),(26,6,NULL,'16:44:14','f','f'),
-(27,2,0,'17:38:37','p','p'),(28,9,NULL,'08:46:48','j','j'),
-(29,6,8,'14:11:27','c','c');
-CREATE TABLE t2 like t1;
-INSERT INTO t2 VALUES (1,2,4,'22:34:09','v','v'),
-(2,150,62,'14:26:02','v','v'),(3,NULL,7,'14:03:03','c','c'),
-(4,2,1,'01:46:09',NULL,NULL),(5,5,0,'16:21:18','x','x'),
-(6,3,7,'18:56:33','i','i'),(7,1,7,NULL,'e','e'),
-(8,4,1,'09:29:08','p','p'),(9,NULL,7,'19:11:10','s','s'),
-(10,2,1,'11:57:26','j','j'),(11,6,5,'00:39:46','z','z'),
-(12,6,2,'03:28:15','c','c'),(13,8,0,'06:44:18','a','a'),
-(14,2,1,'14:36:39','q','q'),(15,6,8,'18:42:45','y','y'),
-(16,8,1,'02:57:29',NULL,NULL),(17,3,1,'16:46:13','r','r'),
-(18,3,9,'19:39:02','v','v'),(19,9,1,NULL,NULL,NULL),
-(20,6,5,'20:58:33','r','r');
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-explain
-SELECT
-alias1.a, alias1.b, alias1.c, alias1.d, alias1.e, alias1.f,
-alias2.a as a2_a, alias2.b as a2_b, alias2.c as a2_c, alias2.d as a2_d,
-alias2.e as a2_e, alias2.f as a2_f,
-t2.a as t2_a, t2.b as t2_b, t2.c as t2_c, t2.d as t2_d, t2.e as t2_e, t2.f as t2_f
-FROM
-(SELECT * FROM t2) AS alias1,
-t1 AS alias2,
-t2
-WHERE
-alias1.c IN (SELECT SQ3_alias1.b
-FROM t2 AS SQ3_alias1 STRAIGHT_JOIN t2 AS SQ3_alias2)
-LIMIT 100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY SQ3_alias1 ALL NULL NULL NULL NULL 20 Start temporary
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY SQ3_alias2 index NULL PRIMARY 4 NULL 20 Using index; End temporary; Using join buffer (incremental, BNL join)
-1 PRIMARY alias2 ALL NULL NULL NULL NULL 20 Using join buffer (incremental, BNL join)
-1 PRIMARY t2 ALL NULL NULL NULL NULL 20 Using join buffer (incremental, BNL join)
-2 DERIVED t2 ALL NULL NULL NULL NULL 20
-create table t3 as
-SELECT
-alias1.a, alias1.b, alias1.c, alias1.d, alias1.e, alias1.f,
-alias2.a as a2_a, alias2.b as a2_b, alias2.c as a2_c, alias2.d as a2_d,
-alias2.e as a2_e, alias2.f as a2_f,
-t2.a as t2_a, t2.b as t2_b, t2.c as t2_c, t2.d as t2_d, t2.e as t2_e, t2.f as t2_f
-FROM
-(SELECT * FROM t2) AS alias1,
-t1 AS alias2,
-t2
-WHERE
-alias1.c IN (SELECT SQ3_alias1.b
-FROM t2 AS SQ3_alias1 STRAIGHT_JOIN t2 AS SQ3_alias2)
-LIMIT 100;
-set optimizer_switch=@tmp_optimizer_switch;
-drop table t1,t2, t3;
-set optimizer_switch=@tmp_830993;
-set join_buffer_size= @tmp_830993_jbs;
-#
-# BUG##849717: Crash in Item_func::fix_fields on second execution of a prepared statement with semijoin
-#
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int);
-CREATE TABLE t3 (a int, b int) ;
-PREPARE st1 FROM "SELECT * FROM t2 LEFT JOIN t1 ON t2.a != 0 AND ('j','r') IN ( SELECT b,a FROM t3)";
-EXECUTE st1;
-a a
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'j'
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-EXECUTE st1;
-a a
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'j'
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-DROP TABLE t1, t2, t3;
-#
-# BUG#849776: Wrong result with semijoin + "Impossible where"
-#
-CREATE TABLE t1 ( b varchar(1), a integer) ;
-INSERT INTO t1 VALUES ('z',8);
-CREATE TABLE t2 ( a integer, b varchar(1)) ;
-CREATE TABLE t4 ( a integer, b varchar(1)) ;
-CREATE TABLE t5 ( a integer) ;
-INSERT INTO t5 VALUES (8);
-select * from t5 where (a) in (
-SELECT t1.a
-FROM t1 LEFT JOIN t2 ON t1.a = t2.a
-WHERE t2.b NOT IN (SELECT t4.b FROM t4 WHERE t4.b < t1.b)
-);
-a
-8
-DROP TABLE t1, t2, t4, t5;
-#
-# BUG#861147: Assertion `fixed == 1' failed in Item_func_eq::val_int() with semijoin + materialization + max_join_size
-#
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-set @tmp_mjs_861147= @@max_join_size;
-SET max_join_size=10;
-set @tmp_os_861147= @@optimizer_switch;
-set @@optimizer_switch='semijoin=on,materialization=on';
-explain
-select * from t1 where a in (select max(A.a + B.a + C.a) from t1 A, t1 B, t1 C);
-ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
-set max_join_size= @tmp_mjs_861147;
-set optimizer_switch= @tmp_os_861147;
-drop table t1;
-#
-# BUG#877288: Wrong result with semijoin + materialization + multipart key
-#
-set @tmp_877288=@@optimizer_switch;
-set optimizer_switch='semijoin=ON,materialization=ON';
-CREATE TABLE t1 ( a int) ;
-INSERT INTO t1 VALUES (19),(19),(19),(20),(20),(20),(20),(20),(20);
-CREATE TABLE t2 ( b int NOT NULL , c int NOT NULL , KEY (b,c)) ;
-INSERT INTO t2 VALUES (14,1),(15,1),(16,1),(17,1),(18,1),(19,1),(20,1);
-CREATE TABLE t3 ( a int, d int) ;
-INSERT INTO t3 VALUES (19,1),(7,1),(3,1),(3,1),(20,1),(3,1),(16,1),(17,1),(9,1),(4,1),(6,1),(15,1),(17,1);
-explain
-SELECT * FROM t1 WHERE (a) IN (SELECT a FROM t2 JOIN t3 ON b = a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 9
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 13 Using where
-2 MATERIALIZED t2 ref b b 4 test.t3.a 1 Using index
-SELECT * FROM t1 WHERE (a) IN (SELECT a FROM t2 JOIN t3 ON b = a);
-a
-19
-19
-19
-20
-20
-20
-20
-20
-20
-DROP TABLE t1,t2,t3;
-set optimizer_switch=@tmp_877288;
-#
-# BUG#878753: Assertion '0' failed in replace_where_subcondition with derived_merge
-#
-set @tmp878753= @@optimizer_switch;
-set optimizer_switch= 'semijoin=on,derived_merge=on';
-CREATE TABLE t1 (b int(11)) ;
-CREATE TABLE t2 (c int, b int, d varchar(52) NOT NULL) ;
-CREATE TABLE t3 (b int(11)) ;
-PREPARE st1 FROM '
- SELECT * FROM t1
- JOIN (
- SELECT t2.* FROM t2
- WHERE t2.d <> "a"
- AND t2.c IN (
- SELECT t3.b
- FROM t3
- )
- ) AS alias2
- ON ( alias2.b = t1.b );
-';
-EXECUTE st1;
-b c b d
-DROP TABLE t1,t2,t3;
-set optimizer_switch=@tmp878753;
-#
-# Bug #889750: semijoin=on + firstmatch=off + semijoin_with_cache=off
-#
-create table t1 (a int);
-insert into t1 values (7), (1), (5), (3);
-create table t2 (a int);
-insert into t2 values (4), (1), (8), (3), (9), (2);
-set @tmp_otimizer_switch= @@optimizer_switch;
-set optimizer_switch='semijoin=on';
-set optimizer_switch='firstmatch=off';
-set optimizer_switch='semijoin_with_cache=on';
-explain
-select * from t1 where t1.a in (select t2.a from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-1 PRIMARY t2 ALL NULL NULL NULL NULL 6 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-select * from t1 where t1.a in (select t2.a from t2);
-a
-1
-3
-set optimizer_switch='semijoin_with_cache=off';
-explain
-select * from t1 where t1.a in (select t2.a from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-1 PRIMARY t2 ALL NULL NULL NULL NULL 6 Using where; Start temporary; End temporary
-select * from t1 where t1.a in (select t2.a from t2);
-a
-1
-3
-set optimizer_switch= @tmp_otimizer_switch;
-drop table t1,t2;
-#
-# Bug #887496: semijoin with IN equality for the second part of an index
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (9), (0), (8), (5);
-CREATE TABLE t2 (a int, b varchar(1), INDEX idx (b,a));
-INSERT INTO t2 VALUES (5,'r'), (5,'z');
-CREATE TABLE t3 (a int, b varchar(1), INDEX idx (b,a));
-INSERT INTO t3 VALUES (5,'r'), (5,'z');
-set @tmp_otimizer_switch= @@optimizer_switch;
-SET SESSION optimizer_switch='semijoin=on,firstmatch=on';
-SET SESSION optimizer_switch='loosescan=off';
-EXPLAIN
-SELECT * FROM t1 WHERE a IN (SELECT t2.a FROM t2,t3 WHERE t2.b = t3.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index idx idx 9 NULL 2 Using where; Using index; Start temporary
-1 PRIMARY t3 ref idx idx 4 test.t2.b 1 Using index
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; End temporary; Using join buffer (flat, BNL join)
-SELECT * FROM t1 WHERE a IN (SELECT t2.a FROM t2,t3 WHERE t2.b = t3.b);
-a
-5
-SET SESSION optimizer_switch='loosescan=on';
-EXPLAIN
-SELECT * FROM t1 WHERE a IN (SELECT t2.a FROM t2,t3 WHERE t2.b = t3.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 index idx idx 9 NULL 2 Using where; Using index; Start temporary
-1 PRIMARY t3 ref idx idx 4 test.t2.b 1 Using index
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 Using where; End temporary; Using join buffer (flat, BNL join)
-SELECT * FROM t1 WHERE a IN (SELECT t2.a FROM t2,t3 WHERE t2.b = t3.b);
-a
-5
-set optimizer_switch= @tmp_otimizer_switch;
-DROP TABLE t1,t2,t3;
-#
-# Bug #901312: materialized semijoin + right join
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (4), (1);
-CREATE TABLE t2 (b int);
-INSERT INTO t2 VALUES (4), (1);
-CREATE TABLE t3 (c int);
-INSERT INTO t3 VALUES (4), (1);
-set @tmp_otimizer_switch= @@optimizer_switch;
-SET SESSION optimizer_switch='semijoin=on,materialization=on';
-EXPLAIN
-SELECT * FROM t1 RIGHT JOIN t2 ON b = a WHERE t2.b IN (SELECT c FROM t3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t3 ALL NULL NULL NULL NULL 2
-SELECT * FROM t1 RIGHT JOIN t2 ON b = a WHERE t2.b IN (SELECT c FROM t3);
-a b
-4 4
-1 1
-set optimizer_switch= @tmp_otimizer_switch;
-DROP TABLE t1,t2,t3;
-#
-# Bug #901709: assertion failure with record count == 0
-#
-CREATE TABLE t1 (a int, KEY (a));
-INSERT INTO t1 VALUES (4), (6);
-CREATE TABLE t2 (a int, KEY (a));
-INSERT INTO t2 VALUES (4), (6);
-CREATE TABLE t3 (b int);
-INSERT INTO t3 VALUES (4);
-CREATE TABLE t4 (c int);
-SET @tmp_optimizer_switch=@@optimizer_switch;
-SET @@optimizer_switch='semijoin=on';
-SET @@optimizer_switch='materialization=on';
-SET @@optimizer_switch='firstmatch=on';
-SET optimizer_switch='semijoin_with_cache=on';
-SET optimizer_prune_level=0;
-EXPLAIN
-SELECT * FROM t1, t2
-WHERE t1.a = t2.a AND t2.a IN (SELECT b FROM t3 STRAIGHT_JOIN t4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t3 system NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 1
-1 PRIMARY t1 ref a a 5 const 1 Using index
-1 PRIMARY t2 ref a a 5 func 1 Using index
-2 MATERIALIZED t4 ALL NULL NULL NULL NULL 0
-SELECT * FROM t1, t2
-WHERE t1.a = t2.a AND t2.a IN (SELECT b FROM t3 STRAIGHT_JOIN t4);
-a a
-SET optimizer_prune_level=DEFAULT;
-SET optimizer_switch=@tmp_optimizer_switch;
-DROP TABLE t1,t2,t3,t4;
-#
-# BUG#901399: Wrong result (extra row) with semijoin=ON, materialization=OFF, optimizer_prune_level=0
-#
-set @opl_901399= @@optimizer_prune_level;
-set @os_091399= @@optimizer_switch;
-SET optimizer_prune_level=0;
-SET optimizer_switch = 'materialization=off';
-CREATE TABLE t1 ( c INT ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-(0),(1),(2),(3),(4),(5),
-(6),(7),(8),(9),(10),(11),(12);
-CREATE TABLE t2 ( a INT, b INT, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3,20),(2,21),(3,22);
-SELECT *
-FROM t1 AS alias1, t1 AS alias2
-WHERE ( alias1.c, alias2.c )
-IN (
-SELECT alias3.a, alias3.a
-FROM t2 AS alias3, t2 alias4
-WHERE alias3.b = alias4.b
-);
-c c
-2 2
-3 3
-set optimizer_prune_level= @opl_901399;
-set optimizer_switch= @os_091399;
-DROP TABLE t1,t2;
-#
-# BUG#912510: Crash in do_copy_not_null with semijoin=ON, firstmatch=ON, aggregate ...
-#
-CREATE TABLE t1 ( a VARCHAR(1) NOT NULL );
-INSERT INTO t1 VALUES ('k'),('l');
-CREATE TABLE t2 ( b VARCHAR(1) NOT NULL, KEY(b) );
-INSERT INTO t2 VALUES ('k'),('l');
-CREATE TABLE t3 ( c VARCHAR(1) NOT NULL, KEY(c) );
-INSERT INTO t3 VALUES ('m'),('n');
-SELECT a, COUNT(*) FROM t1
-WHERE a IN (
-SELECT b FROM t2 force index(b), t3 force index(c)
-WHERE c = b AND b = a
-);
-a COUNT(*)
-NULL 0
-DROP TABLE t1, t2, t3;
-#
-# BUG#920255: Wrong result (extra rows) with loosescan and IN subquery
-#
-CREATE TABLE t1 ( a INT PRIMARY KEY, b INT, KEY(b) );
-INSERT INTO t1 VALUES
-(1,2),(2,1),(3,3),(4,2),(5,5),
-(6,3),(7,1),(8,4),(9,3),(10,2);
-CREATE TABLE t2 ( c INT, d INT, UNIQUE KEY(c) );
-INSERT INTO t2 VALUES
-(1,2),(2,1),(3,3),(4,2),(5,5),(6,3),(7,1);
-SELECT a, b, d FROM t1, t2
-WHERE ( b, d ) IN
-( SELECT b, d FROM t1, t2 WHERE b = c );
-a b d
-1 2 1
-1 2 1
-2 1 2
-2 1 2
-3 3 3
-3 3 3
-4 2 1
-4 2 1
-5 5 5
-6 3 3
-6 3 3
-7 1 2
-7 1 2
-8 4 2
-8 4 2
-9 3 3
-9 3 3
-10 2 1
-10 2 1
-DROP TABLE t1, t2;
-#
-# BUG#920713: Wrong result (missing rows) with firstmatch+BNL, IN subquery, ...
-#
-CREATE TABLE t1 ( a VARCHAR(1) ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('e'),('w'),('a'),('h'),('x'),('k'),('g');
-CREATE TABLE t2 ( b INT, c VARCHAR(1) );
-INSERT INTO t2 VALUES (0,'j'),(8,'v');
-SELECT * FROM t1 alias1, t2 alias2
-WHERE alias2.c IN (
-SELECT alias4.c FROM t1 alias3, t2 alias4
-);
-a b c
-e 0 j
-e 8 v
-w 0 j
-w 8 v
-a 0 j
-a 8 v
-h 0 j
-h 8 v
-x 0 j
-x 8 v
-k 0 j
-k 8 v
-g 0 j
-g 8 v
-DROP TABLE t1, t2;
-#
-# BUG#923246: Loosescan reports different result than other semijoin methods
-#
-set @tmp_923246= @@optimizer_switch;
-set optimizer_switch='mrr=on,materialization=off';
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (kp1 int, kp2 int, c int, filler char(100), key(kp1, kp2));
-insert into t1 select A.a+10*(B.a+10*C.a), 0, 0, 'filler' from t0 A, t0 B, t0 C;
-insert into t1 select * from t1 where kp1 < 20;
-create table t3 (a int);
-insert into t3 select A.a + 10*B.a from t0 A, t0 B;
-select * from t3 where a in (select kp1 from t1 where kp1<20);
-a
-0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-explain select * from t3 where a in (select kp1 from t1 where kp1<20);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range kp1 kp1 5 NULL 48 Using where; Using index; LooseScan
-1 PRIMARY t3 ALL NULL NULL NULL NULL 100 Using where; Using join buffer (flat, BNL join)
-drop table t0,t1,t3;
-set optimizer_switch= @tmp_923246;
-#
-# BUG#952583: Server crashes in Item_field::fix_after_pullout on INSERT .. SELECT
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 ( b INT );
-INSERT INTO t2 VALUES (3),(4);
-INSERT INTO t1
-SELECT * FROM ( SELECT * FROM t1 ) AS alias
-WHERE a IN ( SELECT b FROM t2 );
-DROP TABLE t1, t2;
-#
-# BUG#952372: Server crashes on 2nd execution of PS in find_field_in_tables with semijoin+materialization
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (2),(3);
-CREATE VIEW v1 AS SELECT * FROM t1;
-CREATE TABLE t2 ( b VARCHAR(1) );
-INSERT INTO t2 VALUES ('v'),('v');
-PREPARE pstmt FROM
-'SELECT DISTINCT a FROM v1, t2
- WHERE b IN ( SELECT MIN(b) FROM t2 )';
-EXECUTE pstmt;
-a
-2
-3
-EXECUTE pstmt;
-a
-2
-3
-DEALLOCATE PREPARE pstmt;
-DROP VIEW v1;
-DROP TABLE t1, t2;
-#
-# BUG#978479: Wrong result (extra rows) with derived_with_keys+loosescan+semijoin=ON, materialization=OFF
-#
-set @tmp_jcl_978479= @@join_cache_level;
-set join_cache_level=0;
-set @tmp_os_978479= @@optimizer_switch;
-set optimizer_switch = 'derived_with_keys=on,loosescan=on,semijoin=on,materialization=off';
-# Part#1: make sure EXPLAIN is using LooseScan:
-CREATE TABLE t1 ( a INT, b INT );
-INSERT INTO t1 VALUES
-(4,0),(6,8),(3,1),(5,8),(3,9),(2,4),
-(2,6),(9,1),(5,4),(7,7),(5,4);
-CREATE ALGORITHM=TEMPTABLE
-VIEW v1 AS SELECT * FROM t1;
-# This will use LooseScan:
-EXPLAIN
-SELECT * FROM t1 AS t1_1, t1 AS t1_2
-WHERE (t1_1.a, t1_2.a) IN ( SELECT a, b FROM v1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_1 ALL NULL NULL NULL NULL 11 Using where
-1 PRIMARY <derived3> ref key0 key0 5 test.t1_1.a 2 Start temporary
-1 PRIMARY t1_2 ALL NULL NULL NULL NULL 11 Using where; End temporary
-3 DERIVED t1 ALL NULL NULL NULL NULL 11
-SELECT * FROM t1 AS t1_1, t1 AS t1_2
-WHERE (t1_1.a, t1_2.a) IN ( SELECT a, b FROM v1 );
-a b a b
-3 1 9 1
-5 8 4 0
-3 9 9 1
-2 4 6 8
-2 4 4 0
-2 6 6 8
-2 6 4 0
-5 4 4 0
-7 7 7 7
-5 4 4 0
-DROP VIEW v1;
-DROP TABLE t1;
-set @@join_cache_level= @tmp_jcl_978479;
-set @@optimizer_switch= @tmp_os_978479;
-#
-# BUG#998236: Assertion failure or valgrind errors at best_access_path ...
-#
-CREATE TABLE t1 (a1 VARCHAR(3), a2 VARCHAR(35), KEY(a1,a2)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-('USA','Arvada'),('USA','Athens'),('USA','Atlanta'),('USA','Augusta'),
-('USA','Aurora'),('USA','Aurora'),('USA','Austin'),('USA','Bakersfield'),
-('USA','Baltimore'),('USA','Baton'),('USA','Beaumont'),('USA','Bellevue'),
-('USA','Berkeley'),('USA','Billings'),('USA','Birmingham'),('USA','Boise'),
-('USA','Boston'),('USA','Boulder'),('USA','Bridgeport'),('USA','Brockton'),
-('USA','Brownsville'),('USA','Buffalo'),('USA','Burbank'),('USA','Cambridge'),
-('USA','Cape'),('USA','Carrollton'),('USA','Carson'),('USA','Cary'),
-('USA','Cedar'),('USA','Chandler'),('USA','Charleston'),('USA','Charlotte'),
-('USA','Chattanooga'),('USA','Chesapeake'),('USA','Chicago'),('USA','Chula'),
-('USA','Cincinnati'),('USA','Citrus'),('USA','Clarksville'),('USA','Clearwater'),
-('USA','Cleveland'),('USA','Colorado'),('USA','Columbia'),('USA','Columbus'),
-('USA','Columbus'),('USA','Compton'),('USA','Concord'),('USA','Coral'),
-('USA','Corona'),('USA','Corpus'),('USA','Costa'),('USA','Dallas'),('USA','Daly'),
-('USA','Davenport'),('USA','Dayton'),('USA','Denver'),('USA','DesMoines'),
-('USA','Detroit'),('USA','Downey'),('USA','Durham'),('USA','East'),('USA','ElCajon'),
-('USA','ElMonte'),('USA','ElPaso'),('USA','Elgin'),('USA','Elizabeth'),
-('USA','Erie'),('USA','Escondido'),('USA','Eugene'),('USA','Evansville'),
-('USA','Fairfield'),('USA','Fall'),('USA','Fayetteville'),('USA','Flint'),
-('USA','Fontana'),('USA','FortCollins'),('USA','FortLauderdale'),('USA','FortWayne'),
-('USA','FortWorth'),('USA','Fremont'),('USA','Fresno'),('USA','Fullerton'),
-('USA','Gainesville'),('USA','GardenGrove'),('USA','Garland'),('USA','Gary'),
-('USA','Gilbert'),('USA','Glendale'),('USA','Glendale'),('USA','GrandPrairie'),
-('USA','GrandRapids'),('USA','Green Bay'),('USA','Greensboro'),('USA','Hampton'),
-('USA','Hartford'),('USA','Hayward'),('USA','Henderson'),('USA','Hialeah'),
-('USA','Inglewood'),('USA','Livonia');
-CREATE TABLE t3 (c1 VARCHAR(3), c2 VARCHAR(16), PRIMARY KEY (c1,c2)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('USA','Chinese'), ('USA','English');
-CREATE TABLE t2 (b1 INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1);
-SELECT alias1.a1 AS field1
-FROM t1 AS alias1, t1 AS alias2
-WHERE alias1.a2 IN ( SELECT a1 FROM t1, t2 )
-AND alias1.a1 IS NULL
-AND ( alias1.a1, alias2.a1 ) IN ( SELECT c1, c1 FROM t3 )
-GROUP BY field1;
-field1
-DROP TABLE t1,t3,t2;
-#
-# BUG#1002630: Valgrind warnings 'Invalid read' in subselect_engine::calc_const_tables with SELECT
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(7);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (4),(6);
-SELECT ( SELECT SUM(a) FROM t1 ) AS t1sum, b
-FROM t2
-WHERE (1,1) IN ( SELECT MAX(a), MIN(a) FROM t1 )
-GROUP BY b
-HAVING t1sum <> 1;
-t1sum b
-DROP TABLE t1, t2;
-#
-# MDEV-3911: Assertion `fixed == 0' failed in Item_field::fix_fields
-# on 2nd execution of PS with semijoin=on and IN subquery
-#
-CREATE TABLE t1 (a INT, b INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (0,4),(8,6);
-CREATE TABLE t2 (c INT, d INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (7,1),(0,7);
-PREPARE stmt FROM ' SELECT * FROM t1 WHERE ( a, b ) IN ( SELECT c, d FROM t2 ) ';
-execute stmt;
-a b
-execute stmt;
-a b
-deallocate prepare stmt;
-drop table t1,t2;
-#
-# MDEV-4335: Unexpected results when selecting on information_schema
-#
-CREATE TABLE t1 (db VARCHAR(64) DEFAULT NULL);
-INSERT INTO t1 VALUES ('mysql'),('information_schema');
-SELECT * FROM t1 WHERE db IN (SELECT `SCHEMA_NAME` FROM information_schema.SCHEMATA);
-db
-information_schema
-mysql
-DROP TABLE t1;
-#
-# MDEV-5581: Server crashes in in JOIN::prepare on 2nd execution of PS with materialization+semijoin
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (2),(3);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (8),(9);
-CREATE TABLE t3 (c INT, INDEX(c));
-INSERT INTO t2 VALUES (5),(6);
-PREPARE stmt FROM
-"SELECT * FROM t1 WHERE ( 9, 5 ) IN ( SELECT b, COUNT(*) FROM t2 WHERE 1 IN ( SELECT MIN(c) FROM t3 ) )";
-EXECUTE stmt;
-a
-EXECUTE stmt;
-a
-DROP TABLE t1,t2,t3;
-#
-# MySQL Bug#13340270: assertion table->sort.record_pointers == __null
-#
-CREATE TABLE t1 (
-pk int NOT NULL,
-col_int_key int DEFAULT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-col_varchar_nokey varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_varchar_key (col_varchar_key, col_int_key)
-);
-INSERT INTO t1 VALUES
-(10,8,'x','x'),
-(11,7,'d','d'),
-(12,1,'r','r'),
-(13,7,'f','f'),
-(14,9,'y','y'),
-(15,NULL,'u','u'),
-(16,1,'m','m'),
-(17,9,NULL,NULL),
-(18,2,'o','o'),
-(19,9,'w','w'),
-(20,2,'m','m'),
-(21,4,'q','q');
-CREATE TABLE t2
-SELECT alias1.col_varchar_nokey AS field1
-FROM t1 AS alias1 JOIN t1 AS alias2
-ON alias2.col_int_key = alias1.pk OR
-alias2.col_int_key = alias1.col_int_key
-WHERE alias1.pk = 58 OR alias1.col_varchar_key = 'o'
-
-;
-EXPLAIN SELECT *
-FROM t2
-WHERE (field1) IN (SELECT alias1.col_varchar_nokey AS field1
-FROM t1 AS alias1 JOIN t1 AS alias2
-ON alias2.col_int_key = alias1.pk OR
-alias2.col_int_key = alias1.col_int_key
-WHERE alias1.pk = 58 OR alias1.col_varchar_key = 'o'
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2
-1 PRIMARY alias1 index_merge PRIMARY,col_int_key,col_varchar_key PRIMARY,col_varchar_key 4,4 NULL 2 Using sort_union(PRIMARY,col_varchar_key); Using where
-1 PRIMARY alias2 ALL col_int_key NULL NULL NULL 12 Range checked for each record (index map: 0x2); FirstMatch(t2)
-SELECT *
-FROM t2
-WHERE (field1) IN (SELECT alias1.col_varchar_nokey AS field1
-FROM t1 AS alias1 JOIN t1 AS alias2
-ON alias2.col_int_key = alias1.pk OR
-alias2.col_int_key = alias1.col_int_key
-WHERE alias1.pk = 58 OR alias1.col_varchar_key = 'o'
-);
-field1
-o
-o
-DROP TABLE t1, t2;
-#
-# MDEV-389: Wrong result (missing row) with semijoin, join_cache_level>4, LEFT JOIN...
-# (testcase only)
-#
-connect con1,localhost,root,,;
-connection con1;
-SET join_cache_level = 5;
-SET optimizer_switch = 'semijoin=on';
-CREATE TABLE t1 (a INT NOT NULL, b CHAR(1), KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4,'p'),(1,'q'),(8,'e');
-CREATE TABLE t2 (c INT, d CHAR(1), KEY(c), KEY(d)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (4,'f'),(2,'i'),(5,'h'),(3,'q'),(1,'g');
-SELECT a, COUNT(*) AS cnt
-FROM t1 LEFT JOIN t2 ON (d = b)
-WHERE a IN ( SELECT c FROM t2 WHERE b > 'k' )
-GROUP BY a ORDER BY a, cnt LIMIT 2;
-a cnt
-1 1
-4 1
-drop table t1, t2;
-connection default;
-disconnect con1;
-#
-# MDEV-4071: Valgrind warnings 'Invalid read' in subselect_engine::calc_const_tables with ...
-#
-CREATE TABLE t1 (b INT, c VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (7,'v'),(0,'s');
-CREATE TABLE t2 (a INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (0),(8);
-SELECT c, SUM( DISTINCT b ) AS sm FROM t1
-WHERE ( 5, 108 ) IN ( SELECT MIN(a), MAX(a) FROM t2 )
-GROUP BY b
-HAVING c <> ( SELECT MAX( c ) FROM t1 )
-ORDER BY sm;
-c sm
-DROP TABLE t1,t2;
-#
-# mdev-4173 ignored duplicate value when converting heap to temp table
-# could lead to extra rows in semijoin queries or missing row in union queries
-#
-CREATE TABLE t1 (i1 INT) engine=myisam;
-INSERT INTO t1 VALUES
-(4),(8),(0),(0),(0),(7),(7),(5),(3),(4),(9),(6),(1),(5),(6),(2),(4),(4);
-CREATE TABLE t2 (i2 INT, j2 INT) engine=myisam;
-INSERT INTO t2 VALUES
-(7,1),(0,7),(9,4),(3,7),(4,0),(2,2),(5,9),(3,4),
-(1,0),(3,9),(5,8),(1,8),(204,18),(224,84),(9,6);
-CREATE TABLE t3 (i3 INT, KEY(i3)) engine=myisam;
-INSERT INTO t3 VALUES
-(0),(8),(1),(8),(9),(24),(6),(1),(6),(2),(4),(2),(1);
-select @@max_heap_table_size into @tmp_max_heap_table_size;
-select @@join_buffer_size into @tmp_join_buffer_size;
-set max_heap_table_size=16*1024;
-COUNT(*)
-2834
-COUNT(*)
-2834
-COUNT(*)
-2834
-COUNT(*)
-2834
-COUNT(*)
-2834
-COUNT(*)
-2834
-COUNT(*)
-2834
-COUNT(*)
-2834
-DROP TABLE t1, t2, t3;
-set join_buffer_size = @tmp_join_buffer_size;
-set max_heap_table_size = @tmp_max_heap_table_size;
-#
-# MDEV-5161: Wrong result (missing rows) with semijoin, LEFT JOIN, ORDER BY, constant table
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY, c1 VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'v'),(2,'v'),(3,'c'),(4,NULL),(5,'x');
-CREATE TABLE t2 (c2 VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('x');
-CREATE TABLE t3 (c3 VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES ('x'),('d');
-SELECT * FROM t1, t2 WHERE pk IN ( SELECT pk FROM t1 LEFT JOIN t3 ON (c1 = c3 ) ) ORDER BY c2, c1;
-pk c1 c2
-1 v x
-2 v x
-3 c x
-4 NULL x
-5 x x
-# This should show that "t1 left join t3" is still in the semi-join nest:
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2 WHERE pk IN ( SELECT pk FROM t1 LEFT JOIN t3 ON (c1 = c3 ) ) ORDER BY c2, c1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1 100.00 Using temporary; Using filesort
-1 PRIMARY t1 ALL PRIMARY NULL NULL NULL 5 100.00 Start temporary
-1 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.t1.pk 1 100.00 Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 100.00 Using where; End temporary; Using join buffer (incremental, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`c1` AS `c1`,'x' AS `c2` from `test`.`t1` semi join (`test`.`t1` left join `test`.`t3` on(`test`.`t1`.`c1` = `test`.`t3`.`c3`)) where `test`.`t1`.`pk` = `test`.`t1`.`pk` order by 'x',`test`.`t1`.`c1`
-DROP TABLE t1,t2,t3;
-#
-# MDEV-5059: Wrong result (missing row) wih semijoin, join_cache_level > 2, LEFT JOIN, ORDER BY
-#
-SET @tmp_mdev5059=@@join_cache_level;
-SET join_cache_level = 3;
-set @tmp_os_mdev5059= @@optimizer_switch;
-set optimizer_switch=default;
-CREATE TABLE t1 (pk1 INT PRIMARY KEY, i1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,4),(2,5);
-CREATE TABLE t2 (i2 INT, c2 CHAR(1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1,'v'),(7,'s');
-CREATE TABLE t3 (pk3 INT PRIMARY KEY, i3 INT, c3 CHAR(1), INDEX(i3), INDEX(c3,i3)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (1,7,'g'),(2,4,'p'),(3,1,'q');
-CREATE TABLE t4 (i4 INT) ENGINE=MyISAM;
-INSERT INTO t4 VALUES (1);
-SELECT * FROM t1, t2 LEFT JOIN t3 ON (c3 = c2)
-WHERE ( i2, pk1 ) IN ( SELECT i3, 1 FROM t3, t4 ) ORDER BY i1, c2;
-pk1 i1 i2 c2 pk3 i3 c3
-1 4 7 s NULL NULL NULL
-1 4 1 v NULL NULL NULL
-SET join_cache_level=@tmp_mdev5059;
-set optimizer_switch=@tmp_os_mdev5059;
-DROP TABLE t1,t2,t3,t4;
-#
-# MDEV-7911: crash in Item_cond::eval_not_null_tables
-#
-create table t1(a int);
-insert into t1 values(1),(2),(3),(null);
-explain
-select 1 from t1 where _cp932 "1" in (select '1' from t1);
-ERROR HY000: Illegal mix of collations (cp932_japanese_ci,COERCIBLE) and (latin1_swedish_ci,COERCIBLE) for operation '='
-drop table t1;
-#
-# MDEV-7823: Server crashes in next_depth_first_tab on nested IN clauses with SQ inside
-#
-set @tmp_mdev7823=@@optimizer_switch;
-set optimizer_switch=default;
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (f2 INT, KEY(f2));
-INSERT INTO t2 VALUES (8),(0);
-CREATE TABLE t3 (f3 INT);
-INSERT INTO t3 VALUES (1),(2);
-CREATE TABLE t4 (f4 INT);
-INSERT INTO t4 VALUES (0),(5);
-explain
-SELECT * FROM t1, t2, t3 WHERE f2 IN ( f1 IN ( SELECT f4 FROM t4 ) );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 ref f2 f2 5 const 0 Using where; Using index
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t4 ALL NULL NULL NULL NULL 2 Using where
-SELECT * FROM t1, t2, t3 WHERE f2 IN ( f1 IN ( SELECT f4 FROM t4 ) );
-f1 f2 f3
-1 0 1
-1 0 2
-drop table t1,t2,t3,t4;
-set optimizer_switch= @tmp_mdev7823;
-#
-# MDEV-6859: scalar subqueries in a comparison produced unexpected result
-#
-set @tmp_mdev6859=@@optimizer_switch;
-set optimizer_switch=default;
-CREATE TABLE t1 (
-project_number varchar(50) NOT NULL,
-PRIMARY KEY (project_number)
-) ENGINE=MyISAM;
-INSERT INTO t1 (project_number) VALUES ('aaa'),('bbb');
-CREATE TABLE t2 (
-id int(10) unsigned NOT NULL AUTO_INCREMENT,
-project_number varchar(50) NOT NULL,
-history_date date NOT NULL,
-country varchar(50) NOT NULL,
-PRIMARY KEY (id)
-) ENGINE=MyISAM;
-INSERT INTO t2 (id, project_number, history_date, country) VALUES
-(1, 'aaa', '2014-08-09', 'france'),(2, 'aaa', '2014-09-09', 'singapore');
-CREATE TABLE t3 (
-region varchar(50) NOT NULL,
-country varchar(50) NOT NULL
-) ENGINE=MyISAM;
-INSERT INTO t3 (region, country) VALUES ('apac', 'singapore'),('eame', 'france');
-SELECT SQL_NO_CACHE a.project_number
-FROM t1 a
-WHERE ( SELECT z.country
-FROM t2 z
-WHERE z.project_number = a.project_number AND z.history_date <= '2014-09-01'
-ORDER BY z.id DESC LIMIT 1
-) IN (
-SELECT r.country
-FROM t3 r
-WHERE r.region = 'eame'
- );
-project_number
-aaa
-drop table t1, t2, t3;
-set optimizer_switch= @tmp_mdev6859;
-#
-# MDEV-12675: subquery subject to semi-join optimizations
-# in ON expression of INNER JOIN
-#
-set @tmp_mdev12675=@@optimizer_switch;
-set optimizer_switch=default;
-create table t1 (a int) engine=myisam;
-insert into t1 values (5),(3),(2),(7),(2),(5),(1);
-create table t2 (b int, index idx(b)) engine=myisam;
-insert into t2 values (2),(3),(2),(1),(3),(4);
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-insert into t2 select b+10 from t2;
-analyze table t1,t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-test.t2 analyze status OK
-explain
-select a from t1, t2 where b between 1 and 2 and a in (select b from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 7 Using where
-1 PRIMARY t2 ref idx idx 5 test.t1.a 256 Using index; FirstMatch(t1)
-1 PRIMARY t2 range idx idx 5 NULL 2 Using where; Using index; Using join buffer (flat, BNL join)
-explain
-select a from t1 join t2 on b between 1 and 2 and a in (select b from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 7 Using where
-1 PRIMARY t2 ref idx idx 5 test.t1.a 256 Using index; FirstMatch(t1)
-1 PRIMARY t2 range idx idx 5 NULL 2 Using where; Using index; Using join buffer (flat, BNL join)
-drop table t1,t2;
-set optimizer_switch= @tmp_mdev12675;
-#
-# MDEV-12817: subquery NOT subject to semi-join optimizations
-# in ON expression of INNER JOIN
-#
-CREATE TABLE t1 (c1 int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (c2 int) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3),(4);
-CREATE TABLE t3 (c3 int) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (5),(6);
-CREATE TABLE t4 (c4 int) ENGINE=MyISAM;
-INSERT INTO t4 VALUES (7),(8);
-SELECT c1
-FROM t1
-LEFT JOIN
-( t2 INNER JOIN t3 ON ( 1 IN ( SELECT c4 FROM t4 ) ) )
-ON (c1 = c3);
-c1
-1
-2
-EXPLAIN EXTENDED SELECT c1
-FROM t1
-LEFT JOIN
-( t2 INNER JOIN t3 ON ( 1 IN ( SELECT c4 FROM t4 ) ) )
-ON (c1 = c3);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (incremental, BNL join)
-2 SUBQUERY t4 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`c1` AS `c1` from `test`.`t1` left join (`test`.`t2` join `test`.`t3`) on(`test`.`t3`.`c3` = `test`.`t1`.`c1` and <cache>(<in_optimizer>(1,<exists>(/* select#2 */ select `test`.`t4`.`c4` from `test`.`t4` where 1 = `test`.`t4`.`c4`)))) where 1
-# mdev-12820
-SELECT *
-FROM t1
-LEFT JOIN
-( ( SELECT * FROM t2 WHERE c2 IN ( SELECT c3 FROM t3 ) ) AS sq INNER JOIN t4 )
-ON (c1 = c2);
-c1 c2 c4
-1 NULL NULL
-2 NULL NULL
-EXPLAIN EXTENDED SELECT *
-FROM t1
-LEFT JOIN
-( ( SELECT * FROM t2 WHERE c2 IN ( SELECT c3 FROM t3 ) ) AS sq INNER JOIN t4 )
-ON (c1 = c2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t4 ALL NULL NULL NULL NULL 2 100.00 Using join buffer (incremental, BNL join)
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`c1` AS `c1`,`test`.`t2`.`c2` AS `c2`,`test`.`t4`.`c4` AS `c4` from `test`.`t1` left join (`test`.`t2` join `test`.`t4`) on(`test`.`t2`.`c2` = `test`.`t1`.`c1` and <in_optimizer>(`test`.`t1`.`c1`,<exists>(/* select#3 */ select `test`.`t3`.`c3` from `test`.`t3` where <cache>(`test`.`t2`.`c2`) = `test`.`t3`.`c3`))) where 1
-DROP TABLE t1,t2,t3,t4;
-set optimizer_switch=@subselect_sj_tmp;
-#
-# BUG#49129: Wrong result with IN-subquery with join_cache_level=6 and firstmatch=off
-#
-CREATE TABLE t0 (a INT);
-INSERT INTO t0 VALUES (0),(1),(2),(3),(4);
-CREATE TABLE t1 (a INT, b INT, KEY(a));
-INSERT INTO t1 SELECT a, a from t0;
-INSERT INTO t1 SELECT a+5, a from t0;
-INSERT INTO t1 SELECT a+10, a from t0;
-CREATE TABLE t2 (a INT, b INT, PRIMARY KEY(a));
-INSERT INTO t2 SELECT * FROM t1;
-UPDATE t1 SET a=3, b=11 WHERE a=4;
-UPDATE t2 SET b=11 WHERE a=3;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='firstmatch=off';
-The following should use a join order of t0,t1,t2, with DuplicateElimination:
-explain
-SELECT * FROM t0 WHERE t0.a IN
-(SELECT t1.a FROM t1, t2 WHERE t2.a=t0.a AND t1.b=t2.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 5 Using where
-1 PRIMARY t1 ref a a 5 test.t0.a 1 Start temporary; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.t0.a 1 Using where; End temporary; Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
-SELECT * FROM t0 WHERE t0.a IN
-(SELECT t1.a FROM t1, t2 WHERE t2.a=t0.a AND t1.b=t2.b);
-a
-0
-1
-2
-3
-set optimizer_switch=@save_optimizer_switch;
-drop table t0, t1, t2;
-#
-# Bug #891995: IN subquery with join_cache_level >= 3
-#
-CREATE TABLE t1 (a varchar(1));
-INSERT INTO t1 VALUES ('w'),('q');
-CREATE TABLE t2 (a int NOT NULL, b time, PRIMARY KEY (a));
-INSERT INTO t2 VALUES
-(2,'18:56:33'), (5,'19:11:10'), (3,'18:56:33'), (7,'19:11:10');
-CREATE TABLE t3 (
-a int NOT NULL, b int, c int, d varchar(1), PRIMARY KEY (a), KEY (d,c)
-);
-INSERT INTO t3 VALUES
-(25,158,10,'f'), (26,5,2,'v'), (27,163,103,'f'), (28,2,3,'q'), (29,8,6,'y');
-set @save_optimizer_switch=@@optimizer_switch;
-SET SESSION optimizer_switch='semijoin=on';
-SET SESSION optimizer_switch='join_cache_hashed=on';
-SET SESSION join_cache_level=3;
-EXPLAIN
-SELECT * FROM t1, t2
-WHERE t2.a IN (SELECT b FROM t3 WHERE t3.d <= t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL PRIMARY NULL NULL NULL 4 Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL d NULL NULL NULL 5 Range checked for each record (index map: 0x2); FirstMatch(t2)
-SELECT * FROM t1, t2
-WHERE t2.a IN (SELECT b FROM t3 WHERE t3.d <= t1.a);
-a a b
-w 2 18:56:33
-q 2 18:56:33
-w 5 19:11:10
-SET SESSION optimizer_switch='mrr=on';
-SET SESSION join_cache_level=6;
-EXPLAIN
-SELECT * FROM t1, t2
-WHERE t2.a IN (SELECT b FROM t3 WHERE t3.d <= t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY t2 ALL PRIMARY NULL NULL NULL 4 Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL d NULL NULL NULL 5 Range checked for each record (index map: 0x2); FirstMatch(t2)
-SELECT * FROM t1, t2
-WHERE t2.a IN (SELECT b FROM t3 WHERE t3.d <= t1.a);
-a a b
-w 2 18:56:33
-q 2 18:56:33
-w 5 19:11:10
-set optimizer_switch=@save_optimizer_switch;
-set join_cache_level=default;
-DROP TABLE t1,t2,t3;
-#
-# BUG#912513: Wrong result (missing rows) with join_cache_hashed+materialization+semijoin=on
-#
-set @os_912513= @@optimizer_switch;
-set @jcl_912513= @@join_cache_level;
-SET optimizer_switch = 'semijoin=on,materialization=on,join_cache_hashed=on';
-SET join_cache_level = 3;
-CREATE TABLE t1 ( a INT, b INT, KEY(a) );
-INSERT INTO t1 VALUES
-(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7);
-CREATE TABLE t2 ( c INT );
-INSERT INTO t2 VALUES (1),(2),(3),(4),(5),(6),(7);
-SELECT alias1.* FROM
-t1 AS alias1 INNER JOIN t1 AS alias2
-ON alias2.a = alias1.b
-WHERE alias1.b IN (
-SELECT a FROM t1, t2
-);
-a b
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-7 7
-DROP table t1, t2;
-set @@optimizer_switch= @os_912513;
-set @@join_cache_level= @jcl_912513;
-# End
-#
-# BUG#934342: outer join + semijoin materialization
-# + join_cache_level > 2
-#
-CREATE TABLE t1 (a varchar(1), b varchar(1), INDEX idx_a(a) );
-INSERT INTO t1 VALUES ('v','v'), ('w','w'), ('t','t');
-CREATE TABLE t2 (c varchar(1), INDEX idx_c(c) );
-INSERT INTO t2 VALUES ('v'), ('v'), ('s'), ('j');
-CREATE TABLE t3 (c varchar(1), d varchar(1), INDEX idx_c(c) );
-INSERT INTO t3 VALUES ('v','v'), ('v','v'), ('s','s'), ('j','j');
-INSERT INTO t3 VALUES ('m','m'), ('d','d'), ('k','k'), ('m','m');
-set @tmp_otimizer_switch= @@optimizer_switch;
-set @tmp_join_cache_level=@@join_cache_level;
-set optimizer_switch = 'materialization=on,semijoin=on,join_cache_hashed=on';
-set join_cache_level=0;
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2 ON (c = b)
-WHERE (a, b) IN (SELECT a, b FROM t1 t);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL idx_a NULL NULL NULL 3
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-1 PRIMARY t2 ref idx_c idx_c 4 test.t1.b 2 Using where; Using index
-2 MATERIALIZED t ALL idx_a NULL NULL NULL 3
-SELECT * FROM t1 LEFT JOIN t2 ON (c = b)
-WHERE (a, b) IN (SELECT a, b FROM t1 t);
-a b c
-v v v
-v v v
-w w NULL
-t t NULL
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t3 ON (c = b)
-WHERE (a, b) IN (SELECT a, b FROM t1 t);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL idx_a NULL NULL NULL 3
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-1 PRIMARY t3 ref idx_c idx_c 4 test.t1.b 2 Using where
-2 MATERIALIZED t ALL idx_a NULL NULL NULL 3
-SELECT * FROM t1 LEFT JOIN t3 ON (c = b)
-WHERE (a, b) IN (SELECT a, b FROM t1 t);
-a b c d
-v v v v
-v v v v
-w w NULL NULL
-t t NULL NULL
-set join_cache_level=6;
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t2 ON (c = b)
-WHERE (a, b) IN (SELECT a, b FROM t1 t);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL idx_a NULL NULL NULL 3
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-1 PRIMARY t2 ref idx_c idx_c 4 test.t1.b 2 Using where; Using index
-2 MATERIALIZED t ALL idx_a NULL NULL NULL 3
-SELECT * FROM t1 LEFT JOIN t2 ON (c = b)
-WHERE (a, b) IN (SELECT a, b FROM t1 t);
-a b c
-v v v
-v v v
-w w NULL
-t t NULL
-EXPLAIN
-SELECT * FROM t1 LEFT JOIN t3 ON (c = b)
-WHERE (a, b) IN (SELECT a, b FROM t1 t);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL idx_a NULL NULL NULL 3
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-1 PRIMARY t3 ref idx_c idx_c 4 test.t1.b 2 Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-2 MATERIALIZED t ALL idx_a NULL NULL NULL 3
-SELECT * FROM t1 LEFT JOIN t3 ON (c = b)
-WHERE (a, b) IN (SELECT a, b FROM t1 t);
-a b c d
-v v v v
-v v v v
-w w NULL NULL
-t t NULL NULL
-set optimizer_switch=@tmp_optimizer_switch;
-set join_cache_level=@tmp_join_cache_level;
-DROP TABLE t1,t2,t3;
-# End
-#
-# BUG#934348: GROUP BY with HAVING + semijoin materialization
-# + join_cache_level > 2
-#
-CREATE TABLE t1 (a varchar(1), INDEX idx_a(a));
-INSERT INTO t1 VALUES ('c'), ('v'), ('c');
-CREATE TABLE t2 (b varchar(1));
-INSERT INTO t2 VALUES ('v'), ('c');
-set @tmp_otimizer_switch= @@optimizer_switch;
-set @tmp_join_cache_level=@@join_cache_level;
-set optimizer_switch = 'materialization=on,semijoin=on,join_cache_hashed=on';
-set join_cache_level=0;
-EXPLAIN
-SELECT a FROM t1 t WHERE a IN (SELECT b FROM t1, t2 WHERE b = a)
-GROUP BY a HAVING a != 'z';
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t index idx_a idx_a 4 NULL 3 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t1 ref idx_a idx_a 4 test.t2.b 2 Using index
-SELECT a FROM t1 t WHERE a IN (SELECT b FROM t1, t2 WHERE b = a)
-GROUP BY a HAVING a != 'z';
-a
-c
-v
-set join_cache_level=6;
-EXPLAIN
-SELECT a FROM t1 t WHERE a IN (SELECT b FROM t1, t2 WHERE b = a)
-GROUP BY a HAVING a != 'z';
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t index idx_a idx_a 4 NULL 3 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using where
-2 MATERIALIZED t1 ref idx_a idx_a 4 test.t2.b 2 Using index
-SELECT a FROM t1 t WHERE a IN (SELECT b FROM t1, t2 WHERE b = a)
-GROUP BY a HAVING a != 'z';
-a
-c
-v
-set optimizer_switch=@tmp_optimizer_switch;
-set join_cache_level=@tmp_join_cache_level;
-DROP TABLE t1,t2;
-# End
-set join_cache_level=default;
-show variables like 'join_cache_level';
-Variable_name Value
-join_cache_level 2
-set @@optimizer_switch=@save_optimizer_switch_jcl6;
-set @optimizer_switch_for_subselect_sj_test=NULL;
-set @join_cache_level_subselect_sj_test=NULL;
diff --git a/mysql-test/r/subselect_sj_mat.result b/mysql-test/r/subselect_sj_mat.result
deleted file mode 100644
index 9e1870875ce..00000000000
--- a/mysql-test/r/subselect_sj_mat.result
+++ /dev/null
@@ -1,2517 +0,0 @@
-set @subselect_sj_mat_tmp= @@optimizer_switch;
-set optimizer_switch=ifnull(@subselect_mat_test_optimizer_switch_value, 'semijoin=on,firstmatch=on,loosescan=on,semijoin_with_cache=on');
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-set @optimizer_switch_local_default= @@optimizer_switch;
-set @save_join_cache_level=@@join_cache_level;
-set join_cache_level=1;
-drop table if exists t1, t2, t3, t4, t5, t1i, t2i, t3i;
-drop table if exists columns;
-drop table if exists t1_16, t2_16, t3_16;
-drop view if exists v1, v2, v1m, v2m;
-create table t1 (a1 char(8), a2 char(8));
-create table t2 (b1 char(8), b2 char(8));
-create table t3 (c1 char(8), c2 char(8));
-insert into t1 values ('1 - 00', '2 - 00');
-insert into t1 values ('1 - 01', '2 - 01');
-insert into t1 values ('1 - 02', '2 - 02');
-insert into t2 values ('1 - 01', '2 - 01');
-insert into t2 values ('1 - 01', '2 - 01');
-insert into t2 values ('1 - 02', '2 - 02');
-insert into t2 values ('1 - 02', '2 - 02');
-insert into t2 values ('1 - 03', '2 - 03');
-insert into t3 values ('1 - 01', '2 - 01');
-insert into t3 values ('1 - 02', '2 - 02');
-insert into t3 values ('1 - 03', '2 - 03');
-insert into t3 values ('1 - 04', '2 - 04');
-create table t1i (a1 char(8), a2 char(8));
-create table t2i (b1 char(8), b2 char(8));
-create table t3i (c1 char(8), c2 char(8));
-create index it1i1 on t1i (a1);
-create index it1i2 on t1i (a2);
-create index it1i3 on t1i (a1, a2);
-create index it2i1 on t2i (b1);
-create index it2i2 on t2i (b2);
-create index it2i3 on t2i (b1, b2);
-create index it3i1 on t3i (c1);
-create index it3i2 on t3i (c2);
-create index it3i3 on t3i (c1, c2);
-insert into t1i select * from t1;
-insert into t2i select * from t2;
-insert into t3i select * from t3;
-set @@optimizer_switch='materialization=on,in_to_exists=off,firstmatch=off';
-/******************************************************************************
-* Simple tests.
-******************************************************************************/
-# non-indexed nullable fields
-explain extended
-select * from t1 where a1 in (select b1 from t2 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b1` > '0'
-select * from t1 where a1 in (select b1 from t2 where b1 > '0');
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1 where a1 in (select b1 from t2 where b1 > '0' group by b1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b1` > '0'
-select * from t1 where a1 in (select b1 from t2 where b1 > '0' group by b1);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1 where (a1, a2) in (select b1, b2 from t2 where b1 > '0' group by b1, b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 16 func,func 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b1` > '0'
-select * from t1 where (a1, a2) in (select b1, b2 from t2 where b1 > '0' group by b1, b2);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1 where (a1, a2) in (select b1, min(b2) from t2 where b1 > '0' group by b1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 16 test.t1.a1,test.t1.a2 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using temporary
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from <materialize> (/* select#2 */ select `test`.`t2`.`b1`,min(`test`.`t2`.`b2`) from `test`.`t2` where `test`.`t2`.`b1` > '0' group by `test`.`t2`.`b1`) join `test`.`t1` where `<subquery2>`.`b1` = `test`.`t1`.`a1` and `<subquery2>`.`min(b2)` = `test`.`t1`.`a2`
-select * from t1 where (a1, a2) in (select b1, min(b2) from t2 where b1 > '0' group by b1);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1i where a1 in (select b1 from t2i where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2i index it2i1,it2i3 it2i1 # NULL 5 50.00 Using where; Using index; LooseScan
-1 PRIMARY t1i ref _it1_idx _it1_idx # _ref_ 1 100.00
-Warnings:
-Note 1003 select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` semi join (`test`.`t2i`) where `test`.`t1i`.`a1` = `test`.`t2i`.`b1` and `test`.`t2i`.`b1` > '0'
-select * from t1i where a1 in (select b1 from t2i where b1 > '0');
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1i where a1 in (select max(b1) from t2i where b1 > '0' group by b1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1i index it1i1,it1i3 # 18 # 3 100.00 #
-1 PRIMARY <subquery2> eq_ref distinct_key # 8 # 1 100.00 #
-2 MATERIALIZED t2i range it2i1,it2i3 # 9 # 5 100.00 #
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from <materialize> (/* select#2 */ select max(`test`.`t2i`.`b1`) from `test`.`t2i` where `test`.`t2i`.`b1` > '0' group by `test`.`t2i`.`b1`) join `test`.`t1i` where `<subquery2>`.`max(b1)` = `test`.`t1i`.`a1`
-select * from t1i where a1 in (select max(b1) from t2i where b1 > '0' group by b1);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1i where (a1, a2) in (select b1, b2 from t2i where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2i index it2i1,it2i2,it2i3 it2i3 # NULL 5 50.00 Using where; Using index; LooseScan
-1 PRIMARY t1i ref _it1_idx _it1_idx # _ref_ 1 100.00
-Warnings:
-Note 1003 select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` semi join (`test`.`t2i`) where `test`.`t1i`.`a1` = `test`.`t2i`.`b1` and `test`.`t1i`.`a2` = `test`.`t2i`.`b2` and `test`.`t2i`.`b1` > '0'
-select * from t1i where (a1, a2) in (select b1, b2 from t2i where b1 > '0');
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1i where (a1, a2) in (select b1, max(b2) from t2i where b1 > '0' group by b1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1i index it1i1,it1i2,it1i3 # # # 3 100.00 #
-1 PRIMARY <subquery2> eq_ref distinct_key # # # 1 100.00 #
-2 MATERIALIZED t2i range it2i1,it2i3 # # # 3 100.00 #
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from <materialize> (/* select#2 */ select `test`.`t2i`.`b1`,max(`test`.`t2i`.`b2`) from `test`.`t2i` where `test`.`t2i`.`b1` > '0' group by `test`.`t2i`.`b1`) join `test`.`t1i` where `<subquery2>`.`b1` = `test`.`t1i`.`a1` and `<subquery2>`.`max(b2)` = `test`.`t1i`.`a2`
-select * from t1i where (a1, a2) in (select b1, max(b2) from t2i where b1 > '0' group by b1);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1i where (a1, a2) in (select b1, min(b2) from t2i where b1 > '0' group by b1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1i index it1i1,it1i2,it1i3 # # # 3 100.00 #
-1 PRIMARY <subquery2> eq_ref distinct_key # # # 1 100.00 #
-2 MATERIALIZED t2i range it2i1,it2i3 # # # 3 100.00 #
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from <materialize> (/* select#2 */ select `test`.`t2i`.`b1`,min(`test`.`t2i`.`b2`) from `test`.`t2i` where `test`.`t2i`.`b1` > '0' group by `test`.`t2i`.`b1`) join `test`.`t1i` where `<subquery2>`.`b1` = `test`.`t1i`.`a1` and `<subquery2>`.`min(b2)` = `test`.`t1i`.`a2`
-select * from t1i where (a1, a2) in (select b1, min(b2) from t2i where b1 > '0' group by b1);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1 where (a1, a2) in (select b1, max(b2) from t2i group by b1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 16 test.t1.a1,test.t1.a2 1 100.00
-2 MATERIALIZED t2i range NULL it2i3 9 NULL 3 100.00 Using index for group-by
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from <materialize> (/* select#2 */ select `test`.`t2i`.`b1`,max(`test`.`t2i`.`b2`) from `test`.`t2i` group by `test`.`t2i`.`b1`) join `test`.`t1` where `<subquery2>`.`b1` = `test`.`t1`.`a1` and `<subquery2>`.`max(b2)` = `test`.`t1`.`a2`
-select * from t1 where (a1, a2) in (select b1, max(b2) from t2i group by b1);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-prepare st1 from "explain select * from t1 where (a1, a2) in (select b1, max(b2) from t2i group by b1)";
-execute st1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 16 test.t1.a1,test.t1.a2 1
-2 MATERIALIZED t2i range NULL it2i3 9 NULL 3 Using index for group-by
-execute st1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 16 test.t1.a1,test.t1.a2 1
-2 MATERIALIZED t2i range NULL it2i3 9 NULL 3 Using index for group-by
-prepare st2 from "select * from t1 where (a1, a2) in (select b1, max(b2) from t2i group by b1)";
-execute st2;
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-execute st2;
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1 where (a1, a2) in (select b1, min(b2) from t2i where b1 > '0' group by b1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 16 test.t1.a1,test.t1.a2 1 100.00
-2 MATERIALIZED t2i range it2i1,it2i3 it2i3 18 NULL 3 100.00 Using where; Using index for group-by
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from <materialize> (/* select#2 */ select `test`.`t2i`.`b1`,min(`test`.`t2i`.`b2`) from `test`.`t2i` where `test`.`t2i`.`b1` > '0' group by `test`.`t2i`.`b1`) join `test`.`t1` where `<subquery2>`.`b1` = `test`.`t1`.`a1` and `<subquery2>`.`min(b2)` = `test`.`t1`.`a2`
-select * from t1 where (a1, a2) in (select b1, min(b2) from t2i where b1 > '0' group by b1);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-select * from t1 where (a1, a2) in (select b1, min(b2) from t2i limit 1,1);
-ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='semijoin=off';
-prepare st1 from
-"select * from t1 where (a1, a2) in (select b1, min(b2) from t2 where b1 > '0' group by b1)";
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='materialization=off,in_to_exists=on';
-execute st1;
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='semijoin=off';
-execute st1;
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='materialization=off,in_to_exists=on';
-prepare st1 from
-"select * from t1 where (a1, a2) in (select b1, min(b2) from t2 where b1 > '0' group by b1)";
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='semijoin=off';
-execute st1;
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='materialization=off,in_to_exists=on';
-execute st1;
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-set @@optimizer_switch=@save_optimizer_switch;
-explain extended
-select * from t1 where (a1, a2) in (select b1, b2 from t2 order by b1, b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 16 test.t1.a1,test.t1.a2 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from <materialize> (/* select#2 */ select `test`.`t2`.`b1`,`test`.`t2`.`b2` from `test`.`t2` order by `test`.`t2`.`b1`,`test`.`t2`.`b2`) join `test`.`t1` where `<subquery2>`.`b1` = `test`.`t1`.`a1` and `<subquery2>`.`b2` = `test`.`t1`.`a2`
-select * from t1 where (a1, a2) in (select b1, b2 from t2 order by b1, b2);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1i where (a1, a2) in (select b1, b2 from t2i order by b1, b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1i index it1i1,it1i2,it1i3 it1i3 18 NULL 3 100.00 Using where; Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 16 test.t1i.a1,test.t1i.a2 1 100.00
-2 MATERIALIZED t2i index NULL it2i3 18 NULL 5 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from <materialize> (/* select#2 */ select `test`.`t2i`.`b1`,`test`.`t2i`.`b2` from `test`.`t2i` order by `test`.`t2i`.`b1`,`test`.`t2i`.`b2`) join `test`.`t1i` where `<subquery2>`.`b1` = `test`.`t1i`.`a1` and `<subquery2>`.`b2` = `test`.`t1i`.`a2`
-select * from t1i where (a1, a2) in (select b1, b2 from t2i order by b1, b2);
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-/******************************************************************************
-* Views, UNIONs, several levels of nesting.
-******************************************************************************/
-# materialize the result of subquery over temp-table view
-create algorithm=merge view v1 as
-select b1, c2 from t2, t3 where b2 > c2;
-create algorithm=merge view v2 as
-select b1, c2 from t2, t3 group by b2, c2;
-Warnings:
-Warning 1354 View merge algorithm can't be used here for now (assumed undefined algorithm)
-create algorithm=temptable view v1m as
-select b1, c2 from t2, t3 where b2 > c2;
-create algorithm=temptable view v2m as
-select b1, c2 from t2, t3 group by b2, c2;
-select * from v1 where (c2, b1) in (select c2, b1 from v2 where b1 is not null);
-b1 c2
-1 - 02 2 - 01
-1 - 02 2 - 01
-1 - 03 2 - 01
-1 - 03 2 - 02
-select * from v1 where (c2, b1) in (select distinct c2, b1 from v2 where b1 is not null);
-b1 c2
-1 - 02 2 - 01
-1 - 02 2 - 01
-1 - 03 2 - 01
-1 - 03 2 - 02
-select * from v1m where (c2, b1) in (select c2, b1 from v2m where b1 is not null);
-b1 c2
-1 - 02 2 - 01
-1 - 02 2 - 01
-1 - 03 2 - 01
-1 - 03 2 - 02
-select * from v1m where (c2, b1) in (select distinct c2, b1 from v2m where b1 is not null);
-b1 c2
-1 - 02 2 - 01
-1 - 02 2 - 01
-1 - 03 2 - 01
-1 - 03 2 - 02
-drop view v1, v2, v1m, v2m;
-explain extended
-select * from t1
-where (a1, a2) in (select b1, b2 from t2 where b1 > '0') and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 16 func,func 1 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 16 func,func 1 100.00
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-3 MATERIALIZED t2i index it2i1,it2i2,it2i3 it2i3 18 NULL 5 80.00 Using where; Using index; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2`) semi join (`test`.`t2i` join `test`.`t3`) where `test`.`t2i`.`b1` = `test`.`t3`.`c1` and `test`.`t2i`.`b2` = `test`.`t3`.`c2` and `test`.`t2`.`b1` > '0' and `test`.`t3`.`c2` > '0'
-select * from t1
-where (a1, a2) in (select b1, b2 from t2 where b1 > '0') and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1i
-where (a1, a2) in (select b1, b2 from t2i where b1 > '0') and
-(a1, a2) in (select c1, c2 from t3i
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2i index it2i1,it2i2,it2i3 # # # 5 50.00 #
-1 PRIMARY t1i ref it1i1,it1i2,it1i3 # # # 1 100.00 #
-1 PRIMARY t3i ref it3i1,it3i2,it3i3 # # # 1 100.00 #
-1 PRIMARY t2i ref it2i1,it2i2,it2i3 # # # 2 100.00 #
-Warnings:
-Note 1003 select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` semi join (`test`.`t2i`) semi join (`test`.`t2i` join `test`.`t3i`) where `test`.`t1i`.`a1` = `test`.`t2i`.`b1` and `test`.`t3i`.`c1` = `test`.`t2i`.`b1` and `test`.`t2i`.`b1` = `test`.`t2i`.`b1` and `test`.`t1i`.`a2` = `test`.`t2i`.`b2` and `test`.`t3i`.`c2` = `test`.`t2i`.`b2` and `test`.`t2i`.`b2` = `test`.`t2i`.`b2` and `test`.`t2i`.`b1` > '0' and `test`.`t2i`.`b2` > '0'
-select * from t1i
-where (a1, a2) in (select b1, b2 from t2i where b1 > '0') and
-(a1, a2) in (select c1, c2 from t3i
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1
-where (a1, a2) in (select b1, b2 from t2
-where b2 in (select c2 from t3 where c2 LIKE '%02') or
-b2 in (select c2 from t3 where c2 LIKE '%03')) and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery5> eq_ref distinct_key distinct_key 16 func,func 1 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 16 func,func 1 100.00
-5 MATERIALIZED t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-5 MATERIALIZED t2i index it2i1,it2i2,it2i3 it2i3 18 NULL 5 80.00 Using where; Using index; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-4 MATERIALIZED t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2`) semi join (`test`.`t2i` join `test`.`t3`) where `test`.`t2i`.`b1` = `test`.`t3`.`c1` and `test`.`t2i`.`b2` = `test`.`t3`.`c2` and (<expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#3 */ select `test`.`t3`.`c2` from `test`.`t3` where `test`.`t3`.`c2` like '%02' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery3>`.`c2`)))) or <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#4 */ select `test`.`t3`.`c2` from `test`.`t3` where `test`.`t3`.`c2` like '%03' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery4>`.`c2`))))) and `test`.`t3`.`c2` > '0'
-select * from t1
-where (a1, a2) in (select b1, b2 from t2
-where b2 in (select c2 from t3 where c2 LIKE '%02') or
-b2 in (select c2 from t3 where c2 LIKE '%03')) and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-a1 a2
-1 - 02 2 - 02
-explain extended
-select * from t1
-where (a1, a2) in (select b1, b2 from t2
-where b2 in (select c2 from t3 t3a where c1 = a1) or
-b2 in (select c2 from t3 t3b where c2 LIKE '%03')) and
-(a1, a2) in (select c1, c2 from t3 t3c
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery5> eq_ref distinct_key distinct_key 16 func,func 1 100.00
-1 PRIMARY t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-5 MATERIALIZED t3c ALL NULL NULL NULL NULL 4 100.00 Using where
-5 MATERIALIZED t2i index it2i1,it2i2,it2i3 it2i3 18 NULL 5 80.00 Using where; Using index; Using join buffer (flat, BNL join)
-4 MATERIALIZED t3b ALL NULL NULL NULL NULL 4 100.00 Using where
-3 DEPENDENT SUBQUERY t3a ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a1' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2`) semi join (`test`.`t2i` join `test`.`t3` `t3c`) where `test`.`t2i`.`b1` = `test`.`t3c`.`c1` and `test`.`t2`.`b1` = `test`.`t1`.`a1` and `test`.`t2i`.`b2` = `test`.`t3c`.`c2` and `test`.`t2`.`b2` = `test`.`t1`.`a2` and (<expr_cache><`test`.`t2`.`b2`,`test`.`t1`.`a1`>(<in_optimizer>(`test`.`t2`.`b2`,<exists>(/* select#3 */ select `test`.`t3a`.`c2` from `test`.`t3` `t3a` where `test`.`t3a`.`c1` = `test`.`t1`.`a1` and <cache>(`test`.`t2`.`b2`) = `test`.`t3a`.`c2`))) or <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#4 */ select `test`.`t3b`.`c2` from `test`.`t3` `t3b` where `test`.`t3b`.`c2` like '%03' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery4>`.`c2`))))) and `test`.`t3c`.`c2` > '0'
-select * from t1
-where (a1, a2) in (select b1, b2 from t2
-where b2 in (select c2 from t3 t3a where c1 = a1) or
-b2 in (select c2 from t3 t3b where c2 LIKE '%03')) and
-(a1, a2) in (select c1, c2 from t3 t3c
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-(select * from t1
-where (a1, a2) in (select b1, b2 from t2
-where b2 in (select c2 from t3 where c2 LIKE '%02') or
-b2 in (select c2 from t3 where c2 LIKE '%03')
-group by b1, b2) and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0')))
-UNION
-(select * from t1i
-where (a1, a2) in (select b1, b2 from t2i where b1 > '0') and
-(a1, a2) in (select c1, c2 from t3i
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0')));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL # # # 3 100.00 #
-1 PRIMARY <subquery5> eq_ref distinct_key # # # 1 100.00 #
-1 PRIMARY <subquery2> eq_ref distinct_key # # # 1 100.00 #
-5 MATERIALIZED t3 ALL NULL # # # 4 100.00 #
-5 MATERIALIZED t2i index it2i1,it2i2,it2i3 # # # 5 80.00 #
-2 MATERIALIZED t2 ALL NULL # # # 5 100.00 #
-4 MATERIALIZED t3 ALL NULL # # # 4 100.00 #
-3 MATERIALIZED t3 ALL NULL # # # 4 100.00 #
-7 UNION t2i index it2i1,it2i2,it2i3 # # # 5 50.00 #
-7 UNION t1i ref it1i1,it1i2,it1i3 # # # 1 100.00 #
-7 UNION t3i ref it3i1,it3i2,it3i3 # # # 1 100.00 #
-7 UNION t2i ref it2i1,it2i2,it2i3 # # # 2 100.00 #
-NULL UNION RESULT <union1,7> ALL NULL # # # NULL NULL #
-Warnings:
-Note 1003 (/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2`) semi join (`test`.`t2i` join `test`.`t3`) where `test`.`t2i`.`b1` = `test`.`t3`.`c1` and `test`.`t2i`.`b2` = `test`.`t3`.`c2` and (<expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#3 */ select `test`.`t3`.`c2` from `test`.`t3` where `test`.`t3`.`c2` like '%02' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery3>`.`c2`)))) or <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#4 */ select `test`.`t3`.`c2` from `test`.`t3` where `test`.`t3`.`c2` like '%03' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery4>`.`c2`))))) and `test`.`t3`.`c2` > '0') union (/* select#7 */ select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` semi join (`test`.`t2i`) semi join (`test`.`t2i` join `test`.`t3i`) where `test`.`t1i`.`a1` = `test`.`t2i`.`b1` and `test`.`t3i`.`c1` = `test`.`t2i`.`b1` and `test`.`t2i`.`b1` = `test`.`t2i`.`b1` and `test`.`t1i`.`a2` = `test`.`t2i`.`b2` and `test`.`t3i`.`c2` = `test`.`t2i`.`b2` and `test`.`t2i`.`b2` = `test`.`t2i`.`b2` and `test`.`t2i`.`b1` > '0' and `test`.`t2i`.`b2` > '0')
-(select * from t1
-where (a1, a2) in (select b1, b2 from t2
-where b2 in (select c2 from t3 where c2 LIKE '%02') or
-b2 in (select c2 from t3 where c2 LIKE '%03')
-group by b1, b2) and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0')))
-UNION
-(select * from t1i
-where (a1, a2) in (select b1, b2 from t2i where b1 > '0') and
-(a1, a2) in (select c1, c2 from t3i
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0')));
-a1 a2
-1 - 02 2 - 02
-1 - 01 2 - 01
-explain extended
-select * from t1
-where (a1, a2) in (select * from t1 where a1 > '0' UNION select * from t2 where b1 < '9') and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY <subquery4> eq_ref distinct_key distinct_key 16 func,func 1 100.00
-4 MATERIALIZED t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-4 MATERIALIZED t2i index it2i1,it2i2,it2i3 it2i3 18 NULL 5 80.00 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-3 DEPENDENT UNION t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2i` join `test`.`t3`) where `test`.`t2i`.`b1` = `test`.`t3`.`c1` and `test`.`t2i`.`b2` = `test`.`t3`.`c2` and <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select `test`.`t1`.`a1`,`test`.`t1`.`a2` from `test`.`t1` where `test`.`t1`.`a1` > '0' and <cache>(`test`.`t1`.`a1`) = `test`.`t1`.`a1` and <cache>(`test`.`t1`.`a2`) = `test`.`t1`.`a2` union /* select#3 */ select `test`.`t2`.`b1`,`test`.`t2`.`b2` from `test`.`t2` where `test`.`t2`.`b1` < '9' and <cache>(`test`.`t1`.`a1`) = `test`.`t2`.`b1` and <cache>(`test`.`t1`.`a2`) = `test`.`t2`.`b2`))) and `test`.`t3`.`c2` > '0'
-select * from t1
-where (a1, a2) in (select * from t1 where a1 > '0' UNION select * from t2 where b1 < '9') and
-(a1, a2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
-a1 a2
-1 - 01 2 - 01
-1 - 02 2 - 02
-explain extended
-select * from t1, t3
-where (a1, a2) in (select * from t1 where a1 > '0' UNION select * from t2 where b1 < '9') and
-(c1, c2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0')) and
-a1 = c1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t3 ALL NULL NULL NULL NULL 4 100.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <subquery4> eq_ref distinct_key distinct_key 16 func,func 1 100.00
-4 MATERIALIZED t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-4 MATERIALIZED t2i index it2i1,it2i2,it2i3 it2i3 18 NULL 5 80.00 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-3 DEPENDENT UNION t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2`,`test`.`t3`.`c1` AS `c1`,`test`.`t3`.`c2` AS `c2` from `test`.`t1` semi join (`test`.`t2i` join `test`.`t3`) join `test`.`t3` where `test`.`t3`.`c1` = `test`.`t1`.`a1` and `test`.`t2i`.`b1` = `test`.`t3`.`c1` and `test`.`t2i`.`b2` = `test`.`t3`.`c2` and <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select `test`.`t1`.`a1`,`test`.`t1`.`a2` from `test`.`t1` where `test`.`t1`.`a1` > '0' and <cache>(`test`.`t1`.`a1`) = `test`.`t1`.`a1` and <cache>(`test`.`t1`.`a2`) = `test`.`t1`.`a2` union /* select#3 */ select `test`.`t2`.`b1`,`test`.`t2`.`b2` from `test`.`t2` where `test`.`t2`.`b1` < '9' and <cache>(`test`.`t1`.`a1`) = `test`.`t2`.`b1` and <cache>(`test`.`t1`.`a2`) = `test`.`t2`.`b2`))) and `test`.`t3`.`c2` > '0'
-select * from t1, t3
-where (a1, a2) in (select * from t1 where a1 > '0' UNION select * from t2 where b1 < '9') and
-(c1, c2) in (select c1, c2 from t3
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0')) and
-a1 = c1;
-a1 a2 c1 c2
-1 - 01 2 - 01 1 - 01 2 - 01
-1 - 02 2 - 02 1 - 02 2 - 02
-/******************************************************************************
-* Negative tests, where materialization should not be applied.
-******************************************************************************/
-# UNION in a subquery
-explain extended
-select * from t3
-where c1 in (select a1 from t1 where a1 > '0' UNION select b1 from t2 where b1 < '9');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-3 DEPENDENT UNION t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t3`.`c1` AS `c1`,`test`.`t3`.`c2` AS `c2` from `test`.`t3` where <expr_cache><`test`.`t3`.`c1`>(<in_optimizer>(`test`.`t3`.`c1`,<exists>(/* select#2 */ select `test`.`t1`.`a1` from `test`.`t1` where `test`.`t1`.`a1` > '0' and <cache>(`test`.`t3`.`c1`) = `test`.`t1`.`a1` union /* select#3 */ select `test`.`t2`.`b1` from `test`.`t2` where `test`.`t2`.`b1` < '9' and <cache>(`test`.`t3`.`c1`) = `test`.`t2`.`b1`)))
-select * from t3
-where c1 in (select a1 from t1 where a1 > '0' UNION select b1 from t2 where b1 < '9');
-c1 c2
-1 - 01 2 - 01
-1 - 02 2 - 02
-1 - 03 2 - 03
-explain extended
-select * from t1
-where (a1, a2) in (select b1, b2 from t2
-where b2 in (select c2 from t3 t3a where c1 = a1) or
-b2 in (select c2 from t3 t3b where c2 LIKE '%03')) and
-(a1, a2) in (select c1, c2 from t3 t3c
-where (c1, c2) in (select b1, b2 from t2i where b2 > '0' or b2 = a2));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t2i ref it2i1,it2i2,it2i3 it2i3 18 test.t1.a1,test.t1.a2 2 100.00 Using index; Start temporary
-1 PRIMARY t3c ALL NULL NULL NULL NULL 4 100.00 Using where; End temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-4 MATERIALIZED t3b ALL NULL NULL NULL NULL 4 100.00 Using where
-3 DEPENDENT SUBQUERY t3a ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a1' of SELECT #3 was resolved in SELECT #1
-Note 1276 Field or reference 'test.t1.a2' of SELECT #6 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2`) semi join (`test`.`t2i` join `test`.`t3` `t3c`) where `test`.`t2i`.`b1` = `test`.`t1`.`a1` and `test`.`t3c`.`c1` = `test`.`t1`.`a1` and `test`.`t2`.`b1` = `test`.`t1`.`a1` and `test`.`t2i`.`b2` = `test`.`t1`.`a2` and `test`.`t3c`.`c2` = `test`.`t1`.`a2` and `test`.`t2`.`b2` = `test`.`t1`.`a2` and (<expr_cache><`test`.`t2`.`b2`,`test`.`t1`.`a1`>(<in_optimizer>(`test`.`t2`.`b2`,<exists>(/* select#3 */ select `test`.`t3a`.`c2` from `test`.`t3` `t3a` where `test`.`t3a`.`c1` = `test`.`t1`.`a1` and <cache>(`test`.`t2`.`b2`) = `test`.`t3a`.`c2`))) or <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#4 */ select `test`.`t3b`.`c2` from `test`.`t3` `t3b` where `test`.`t3b`.`c2` like '%03' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery4>`.`c2`)))))
-explain extended
-select * from t1 where (a1, a2) in (select '1 - 01', '2 - 01');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select '1 - 01','2 - 01' having (<cache>(`test`.`t1`.`a1`) = '1 - 01' or '1 - 01' is null) and (<cache>(`test`.`t1`.`a2`) = '2 - 01' or '2 - 01' is null) and '1 - 01' is null and '2 - 01' is null)))
-select * from t1 where (a1, a2) in (select '1 - 01', '2 - 01');
-a1 a2
-1 - 01 2 - 01
-explain extended
-select * from t1 where (a1, a2) in (select '1 - 01', '2 - 01' from dual);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select '1 - 01','2 - 01' having (<cache>(`test`.`t1`.`a1`) = '1 - 01' or '1 - 01' is null) and (<cache>(`test`.`t1`.`a2`) = '2 - 01' or '2 - 01' is null) and '1 - 01' is null and '2 - 01' is null)))
-select * from t1 where (a1, a2) in (select '1 - 01', '2 - 01' from dual);
-a1 a2
-1 - 01 2 - 01
-/******************************************************************************
-* Subqueries in other uncovered clauses.
-******************************************************************************/
-/* SELECT clause */
-select ((a1,a2) IN (select * from t2 where b2 > '0')) IS NULL from t1;
-((a1,a2) IN (select * from t2 where b2 > '0')) IS NULL
-0
-0
-0
-/* GROUP BY clause */
-create table columns (col int key);
-insert into columns values (1), (2);
-explain extended
-select * from t1 group by (select col from columns limit 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-2 SUBQUERY columns index NULL PRIMARY 4 NULL 2 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` group by (/* select#2 */ select `test`.`columns`.`col` from `test`.`columns` limit 1)
-select * from t1 group by (select col from columns limit 1);
-a1 a2
-1 - 00 2 - 00
-explain extended
-select * from t1 group by (a1 in (select col from columns));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using temporary; Using filesort
-2 DEPENDENT SUBQUERY columns unique_subquery PRIMARY PRIMARY 4 func 1 100.00 Using index; Using where; Full scan on NULL key
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` group by <expr_cache><`test`.`t1`.`a1`>(<in_optimizer>(`test`.`t1`.`a1`,<exists>(<primary_index_lookup>(<cache>(`test`.`t1`.`a1`) in columns on PRIMARY where trigcond(<cache>(`test`.`t1`.`a1`) = `test`.`columns`.`col`)))))
-select * from t1 group by (a1 in (select col from columns));
-a1 a2
-1 - 00 2 - 00
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1 - 00'
-Warning 1292 Truncated incorrect DOUBLE value: '1 - 01'
-Warning 1292 Truncated incorrect DOUBLE value: '1 - 02'
-/* ORDER BY clause */
-explain extended
-select * from t1 order by (select col from columns limit 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-2 SUBQUERY columns index NULL PRIMARY 4 NULL 2 100.00 Using index
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` order by (/* select#2 */ select `test`.`columns`.`col` from `test`.`columns` limit 1)
-select * from t1 order by (select col from columns limit 1);
-a1 a2
-1 - 00 2 - 00
-1 - 01 2 - 01
-1 - 02 2 - 02
-/******************************************************************************
-* Column types/sizes that affect materialization.
-******************************************************************************/
-/*
-Test that BLOBs are not materialized (except when arguments of some functions).
-*/
-# force materialization to be always considered
-set @prefix_len = 6;
-set @blob_len = 16;
-set @suffix_len = @blob_len - @prefix_len;
-create table t1_16 (a1 blob(16), a2 blob(16));
-create table t2_16 (b1 blob(16), b2 blob(16));
-create table t3_16 (c1 blob(16), c2 blob(16));
-insert into t1_16 values
-(concat('1 - 00', repeat('x', @suffix_len)), concat('2 - 00', repeat('x', @suffix_len)));
-insert into t1_16 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t1_16 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_16 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t2_16 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_16 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_16 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t3_16 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t3_16 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_16 values
-(concat('1 - 04', repeat('x', @suffix_len)), concat('2 - 04', repeat('x', @suffix_len)));
-explain extended select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select b1 from t2_16 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t2_16 ALL NULL NULL NULL NULL 3 100.00 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select left(`test`.`t1_16`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_16`.`a2`,7) AS `left(a2,7)` from `test`.`t1_16` semi join (`test`.`t2_16`) where `test`.`t2_16`.`b1` = `test`.`t1_16`.`a1` and `test`.`t1_16`.`a1` > '0'
-select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select b1 from t2_16 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_16
-where (a1,a2) in (select b1, b2 from t2_16 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t2_16 ALL NULL NULL NULL NULL 3 100.00 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select left(`test`.`t1_16`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_16`.`a2`,7) AS `left(a2,7)` from `test`.`t1_16` semi join (`test`.`t2_16`) where `test`.`t2_16`.`b1` = `test`.`t1_16`.`a1` and `test`.`t2_16`.`b2` = `test`.`t1_16`.`a2` and `test`.`t1_16`.`a1` > '0'
-select left(a1,7), left(a2,7)
-from t1_16
-where (a1,a2) in (select b1, b2 from t2_16 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select substring(b1,1,16) from t2_16 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_16 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 19 func 1 100.00 Using where
-2 MATERIALIZED t2_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select left(`test`.`t1_16`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_16`.`a2`,7) AS `left(a2,7)` from `test`.`t1_16` semi join (`test`.`t2_16`) where `test`.`t2_16`.`b1` > '0' and `test`.`t1_16`.`a1` = substr(`test`.`t2_16`.`b1`,1,16)
-select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select substring(b1,1,16) from t2_16 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select group_concat(b1) from t2_16 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-2 DEPENDENT SUBQUERY t2_16 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_16`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_16`.`a2`,7) AS `left(a2,7)` from `test`.`t1_16` where <expr_cache><`test`.`t1_16`.`a1`>(<in_optimizer>(`test`.`t1_16`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_16`.`b1` separator ',') from `test`.`t2_16` group by `test`.`t2_16`.`b2` having <cache>(`test`.`t1_16`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_16`.`b1` separator ',')))))
-select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select group_concat(b1) from t2_16 group by b2);
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-set @@group_concat_max_len = 256;
-explain extended select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select group_concat(b1) from t2_16 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_16 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 260 test.t1_16.a1 1 100.00 Using where
-2 MATERIALIZED t2_16 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_16`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_16`.`a2`,7) AS `left(a2,7)` from <materialize> (/* select#2 */ select group_concat(`test`.`t2_16`.`b1` separator ',') from `test`.`t2_16` group by `test`.`t2_16`.`b2`) join `test`.`t1_16` where `test`.`t1_16`.`a1` = `<subquery2>`.`group_concat(b1)`
-select left(a1,7), left(a2,7)
-from t1_16
-where a1 in (select group_concat(b1) from t2_16 group by b2);
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended
-select * from t1
-where concat(a1,'x') IN
-(select left(a1,8) from t1_16
-where (a1, a2) IN
-(select t2_16.b1, t2_16.b2 from t2_16, t2
-where t2.b2 = substring(t2_16.b2,1,6) and
-t2.b1 IN (select c1 from t3 where c2 > '0')));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY t1_16 ALL NULL NULL NULL NULL 3 100.00 Using where; Start temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t2_16 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t3 ALL NULL NULL NULL NULL 4 100.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t2 ALL NULL NULL NULL NULL 5 100.00 Using where; End temporary; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t3` join `test`.`t2_16` join `test`.`t2` join `test`.`t1_16`) where `test`.`t2`.`b1` = `test`.`t3`.`c1` and `test`.`t2_16`.`b1` = `test`.`t1_16`.`a1` and `test`.`t2_16`.`b2` = `test`.`t1_16`.`a2` and `test`.`t2`.`b2` = substr(`test`.`t1_16`.`a2`,1,6) and `test`.`t3`.`c2` > '0' and concat(`test`.`t1`.`a1`,'x') = left(`test`.`t1_16`.`a1`,8)
-drop table t1_16, t2_16, t3_16;
-set @blob_len = 512;
-set @suffix_len = @blob_len - @prefix_len;
-create table t1_512 (a1 blob(512), a2 blob(512));
-create table t2_512 (b1 blob(512), b2 blob(512));
-create table t3_512 (c1 blob(512), c2 blob(512));
-insert into t1_512 values
-(concat('1 - 00', repeat('x', @suffix_len)), concat('2 - 00', repeat('x', @suffix_len)));
-insert into t1_512 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t1_512 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_512 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t2_512 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_512 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_512 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t3_512 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t3_512 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_512 values
-(concat('1 - 04', repeat('x', @suffix_len)), concat('2 - 04', repeat('x', @suffix_len)));
-explain extended select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select b1 from t2_512 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_512 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t2_512 ALL NULL NULL NULL NULL 3 100.00 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from `test`.`t1_512` semi join (`test`.`t2_512`) where `test`.`t2_512`.`b1` = `test`.`t1_512`.`a1` and `test`.`t1_512`.`a1` > '0'
-select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select b1 from t2_512 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_512
-where (a1,a2) in (select b1, b2 from t2_512 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_512 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t2_512 ALL NULL NULL NULL NULL 3 100.00 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from `test`.`t1_512` semi join (`test`.`t2_512`) where `test`.`t2_512`.`b1` = `test`.`t1_512`.`a1` and `test`.`t2_512`.`b2` = `test`.`t1_512`.`a2` and `test`.`t1_512`.`a1` > '0'
-select left(a1,7), left(a2,7)
-from t1_512
-where (a1,a2) in (select b1, b2 from t2_512 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select substring(b1,1,512) from t2_512 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_512 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 516 func 1 100.00 Using where
-2 MATERIALIZED t2_512 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from `test`.`t1_512` semi join (`test`.`t2_512`) where `test`.`t2_512`.`b1` > '0' and `test`.`t1_512`.`a1` = substr(`test`.`t2_512`.`b1`,1,512)
-select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select substring(b1,1,512) from t2_512 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select group_concat(b1) from t2_512 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_512 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 260 test.t1_512.a1 1 100.00 Using where
-2 MATERIALIZED t2_512 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from <materialize> (/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2`) join `test`.`t1_512` where `test`.`t1_512`.`a1` = `<subquery2>`.`group_concat(b1)`
-select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select group_concat(b1) from t2_512 group by b2);
-left(a1,7) left(a2,7)
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-set @@group_concat_max_len = 256;
-explain extended select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select group_concat(b1) from t2_512 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_512 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 260 test.t1_512.a1 1 100.00 Using where
-2 MATERIALIZED t2_512 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from <materialize> (/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2`) join `test`.`t1_512` where `test`.`t1_512`.`a1` = `<subquery2>`.`group_concat(b1)`
-select left(a1,7), left(a2,7)
-from t1_512
-where a1 in (select group_concat(b1) from t2_512 group by b2);
-left(a1,7) left(a2,7)
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-drop table t1_512, t2_512, t3_512;
-set @blob_len = 1024;
-set @suffix_len = @blob_len - @prefix_len;
-create table t1_1024 (a1 blob(1024), a2 blob(1024));
-create table t2_1024 (b1 blob(1024), b2 blob(1024));
-create table t3_1024 (c1 blob(1024), c2 blob(1024));
-insert into t1_1024 values
-(concat('1 - 00', repeat('x', @suffix_len)), concat('2 - 00', repeat('x', @suffix_len)));
-insert into t1_1024 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t1_1024 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_1024 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t2_1024 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_1024 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_1024 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t3_1024 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t3_1024 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_1024 values
-(concat('1 - 04', repeat('x', @suffix_len)), concat('2 - 04', repeat('x', @suffix_len)));
-explain extended select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select b1 from t2_1024 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1024 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t2_1024 ALL NULL NULL NULL NULL 3 100.00 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` semi join (`test`.`t2_1024`) where `test`.`t2_1024`.`b1` = `test`.`t1_1024`.`a1` and `test`.`t1_1024`.`a1` > '0'
-select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select b1 from t2_1024 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_1024
-where (a1,a2) in (select b1, b2 from t2_1024 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1024 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t2_1024 ALL NULL NULL NULL NULL 3 100.00 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` semi join (`test`.`t2_1024`) where `test`.`t2_1024`.`b1` = `test`.`t1_1024`.`a1` and `test`.`t2_1024`.`b2` = `test`.`t1_1024`.`a2` and `test`.`t1_1024`.`a1` > '0'
-select left(a1,7), left(a2,7)
-from t1_1024
-where (a1,a2) in (select b1, b2 from t2_1024 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select substring(b1,1,1024) from t2_1024 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1024 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY t2_1024 ALL NULL NULL NULL NULL 3 100.00 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` semi join (`test`.`t2_1024`) where `test`.`t2_1024`.`b1` > '0' and `test`.`t1_1024`.`a1` = substr(`test`.`t2_1024`.`b1`,1,1024)
-select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select substring(b1,1,1024) from t2_1024 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select group_concat(b1) from t2_1024 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1024 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 260 test.t1_1024.a1 1 100.00 Using where
-2 MATERIALIZED t2_1024 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from <materialize> (/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2`) join `test`.`t1_1024` where `test`.`t1_1024`.`a1` = `<subquery2>`.`group_concat(b1)`
-select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select group_concat(b1) from t2_1024 group by b2);
-left(a1,7) left(a2,7)
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-set @@group_concat_max_len = 256;
-explain extended select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select group_concat(b1) from t2_1024 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1024 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 260 test.t1_1024.a1 1 100.00 Using where
-2 MATERIALIZED t2_1024 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from <materialize> (/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2`) join `test`.`t1_1024` where `test`.`t1_1024`.`a1` = `<subquery2>`.`group_concat(b1)`
-select left(a1,7), left(a2,7)
-from t1_1024
-where a1 in (select group_concat(b1) from t2_1024 group by b2);
-left(a1,7) left(a2,7)
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-drop table t1_1024, t2_1024, t3_1024;
-set @blob_len = 1025;
-set @suffix_len = @blob_len - @prefix_len;
-create table t1_1025 (a1 blob(1025), a2 blob(1025));
-create table t2_1025 (b1 blob(1025), b2 blob(1025));
-create table t3_1025 (c1 blob(1025), c2 blob(1025));
-insert into t1_1025 values
-(concat('1 - 00', repeat('x', @suffix_len)), concat('2 - 00', repeat('x', @suffix_len)));
-insert into t1_1025 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t1_1025 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_1025 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t2_1025 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_1025 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_1025 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t3_1025 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t3_1025 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-insert into t3_1025 values
-(concat('1 - 04', repeat('x', @suffix_len)), concat('2 - 04', repeat('x', @suffix_len)));
-explain extended select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select b1 from t2_1025 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1025 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t2_1025 ALL NULL NULL NULL NULL 3 100.00 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` semi join (`test`.`t2_1025`) where `test`.`t2_1025`.`b1` = `test`.`t1_1025`.`a1` and `test`.`t1_1025`.`a1` > '0'
-select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select b1 from t2_1025 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_1025
-where (a1,a2) in (select b1, b2 from t2_1025 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1025 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY t2_1025 ALL NULL NULL NULL NULL 3 100.00 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` semi join (`test`.`t2_1025`) where `test`.`t2_1025`.`b1` = `test`.`t1_1025`.`a1` and `test`.`t2_1025`.`b2` = `test`.`t1_1025`.`a2` and `test`.`t1_1025`.`a1` > '0'
-select left(a1,7), left(a2,7)
-from t1_1025
-where (a1,a2) in (select b1, b2 from t2_1025 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select substring(b1,1,1025) from t2_1025 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1025 ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY t2_1025 ALL NULL NULL NULL NULL 3 100.00 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` semi join (`test`.`t2_1025`) where `test`.`t2_1025`.`b1` > '0' and `test`.`t1_1025`.`a1` = substr(`test`.`t2_1025`.`b1`,1,1025)
-select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select substring(b1,1,1025) from t2_1025 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-1 - 02x 2 - 02x
-explain extended select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select group_concat(b1) from t2_1025 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1025 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 260 test.t1_1025.a1 1 100.00 Using where
-2 MATERIALIZED t2_1025 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from <materialize> (/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2`) join `test`.`t1_1025` where `test`.`t1_1025`.`a1` = `<subquery2>`.`group_concat(b1)`
-select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select group_concat(b1) from t2_1025 group by b2);
-left(a1,7) left(a2,7)
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-set @@group_concat_max_len = 256;
-explain extended select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select group_concat(b1) from t2_1025 group by b2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1_1025 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 260 test.t1_1025.a1 1 100.00 Using where
-2 MATERIALIZED t2_1025 ALL NULL NULL NULL NULL 3 100.00 Using filesort
-Warnings:
-Note 1003 /* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from <materialize> (/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2`) join `test`.`t1_1025` where `test`.`t1_1025`.`a1` = `<subquery2>`.`group_concat(b1)`
-select left(a1,7), left(a2,7)
-from t1_1025
-where a1 in (select group_concat(b1) from t2_1025 group by b2);
-left(a1,7) left(a2,7)
-Warnings:
-Warning 1260 Row 1 was cut by GROUP_CONCAT()
-Warning 1260 Row 2 was cut by GROUP_CONCAT()
-Warning 1260 Row 3 was cut by GROUP_CONCAT()
-drop table t1_1025, t2_1025, t3_1025;
-create table t1bit (a1 bit(3), a2 bit(3));
-create table t2bit (b1 bit(3), b2 bit(3));
-insert into t1bit values (b'000', b'100');
-insert into t1bit values (b'001', b'101');
-insert into t1bit values (b'010', b'110');
-insert into t2bit values (b'001', b'101');
-insert into t2bit values (b'010', b'110');
-insert into t2bit values (b'110', b'111');
-explain extended select bin(a1), bin(a2)
-from t1bit
-where (a1, a2) in (select b1, b2 from t2bit);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1bit ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1 100.00
-2 MATERIALIZED t2bit ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 select conv(`test`.`t1bit`.`a1`,10,2) AS `bin(a1)`,conv(`test`.`t1bit`.`a2`,10,2) AS `bin(a2)` from `test`.`t1bit` semi join (`test`.`t2bit`) where 1
-select bin(a1), bin(a2)
-from t1bit
-where (a1, a2) in (select b1, b2 from t2bit);
-bin(a1) bin(a2)
-1 101
-10 110
-drop table t1bit, t2bit;
-create table t1bb (a1 bit(3), a2 blob(3));
-create table t2bb (b1 bit(3), b2 blob(3));
-insert into t1bb values (b'000', '100');
-insert into t1bb values (b'001', '101');
-insert into t1bb values (b'010', '110');
-insert into t2bb values (b'001', '101');
-insert into t2bb values (b'010', '110');
-insert into t2bb values (b'110', '111');
-explain extended select bin(a1), a2
-from t1bb
-where (a1, a2) in (select b1, b2 from t2bb);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1bb ALL NULL NULL NULL NULL 3 100.00
-1 PRIMARY t2bb ALL NULL NULL NULL NULL 3 100.00 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select conv(`test`.`t1bb`.`a1`,10,2) AS `bin(a1)`,`test`.`t1bb`.`a2` AS `a2` from `test`.`t1bb` semi join (`test`.`t2bb`) where `test`.`t2bb`.`b1` = `test`.`t1bb`.`a1` and `test`.`t2bb`.`b2` = `test`.`t1bb`.`a2`
-select bin(a1), a2
-from t1bb
-where (a1, a2) in (select b1, b2 from t2bb);
-bin(a1) a2
-1 101
-10 110
-drop table t1bb, t2bb;
-drop table t1, t2, t3, t1i, t2i, t3i, columns;
-/******************************************************************************
-* Test the cache of the left operand of IN.
-******************************************************************************/
-# Test that default values of Cached_item are not used for comparison
-create table t1 (s1 int);
-create table t2 (s2 int);
-insert into t1 values (5),(1),(0);
-insert into t2 values (0), (1);
-select s2 from t2 where s2 in (select s1 from t1);
-s2
-0
-1
-drop table t1, t2;
-create table t1 (a int not null, b int not null);
-create table t2 (c int not null, d int not null);
-create table t3 (e int not null);
-insert into t1 values (1,10);
-insert into t1 values (1,20);
-insert into t1 values (2,10);
-insert into t1 values (2,20);
-insert into t1 values (2,30);
-insert into t1 values (3,20);
-insert into t1 values (4,40);
-insert into t2 values (2,10);
-insert into t2 values (2,20);
-insert into t2 values (2,40);
-insert into t2 values (3,20);
-insert into t2 values (4,10);
-insert into t2 values (5,10);
-insert into t3 values (10);
-insert into t3 values (10);
-insert into t3 values (20);
-insert into t3 values (30);
-explain extended
-select a from t1 where a in (select c from t2 where d >= 20);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 6 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 7 100.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t2`.`c` and `test`.`t2`.`d` >= 20
-select a from t1 where a in (select c from t2 where d >= 20);
-a
-2
-2
-2
-3
-create index it1a on t1(a);
-explain extended
-select a from t1 where a in (select c from t2 where d >= 20);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index it1a it1a 4 NULL 7 100.00 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 6 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`d` >= 20
-select a from t1 where a in (select c from t2 where d >= 20);
-a
-2
-2
-2
-3
-insert into t2 values (1,10);
-explain extended
-select a from t1 where a in (select c from t2 where d >= 20);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index it1a it1a 4 NULL 7 100.00 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 7 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`d` >= 20
-select a from t1 where a in (select c from t2 where d >= 20);
-a
-2
-2
-2
-3
-explain extended
-select a from t1 group by a having a in (select c from t2 where d >= 20);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL it1a 4 NULL 7 100.00 Using index
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 7 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` group by `test`.`t1`.`a` having <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,`test`.`t1`.`a` in ( <materialize> (/* select#2 */ select `test`.`t2`.`c` from `test`.`t2` where `test`.`t2`.`d` >= 20 ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`c`))))
-select a from t1 group by a having a in (select c from t2 where d >= 20);
-a
-2
-3
-create index iab on t1(a, b);
-explain extended
-select a from t1 group by a having a in (select c from t2 where d >= 20);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL it1a 4 NULL 7 100.00 Using index
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 7 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` group by `test`.`t1`.`a` having <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,`test`.`t1`.`a` in ( <materialize> (/* select#2 */ select `test`.`t2`.`c` from `test`.`t2` where `test`.`t2`.`d` >= 20 ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`c`))))
-select a from t1 group by a having a in (select c from t2 where d >= 20);
-a
-2
-3
-explain extended
-select a from t1 group by a
-having a in (select c from t2 where d >= some(select e from t3 where max(b)=e));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 index NULL iab 8 NULL 7 100.00 Using index
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 7 100.00 Using where
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.b' of SELECT #3 was resolved in SELECT #1
-Note 1981 Aggregate function 'max()' of SELECT #3 belongs to SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` group by `test`.`t1`.`a` having <expr_cache><`test`.`t1`.`a`,`test`.`t1`.`b`,max(`test`.`t1`.`b`),max(`test`.`t1`.`b`)>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `test`.`t2`.`c` from `test`.`t2` where <nop>(<expr_cache><`test`.`t2`.`d`,`test`.`t1`.`b`,max(`test`.`t1`.`b`),max(`test`.`t1`.`b`)>(<in_optimizer>(`test`.`t2`.`d`,<exists>(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where max(`test`.`t1`.`b`) = `test`.`t3`.`e` having <cache>(`test`.`t2`.`d`) >= <ref_null_helper>(`test`.`t3`.`e`))))) and <cache>(`test`.`t1`.`a`) = `test`.`t2`.`c`)))
-select a from t1 group by a
-having a in (select c from t2 where d >= some(select e from t3 where max(b)=e));
-a
-2
-3
-explain extended
-select a from t1
-where a in (select c from t2 where d >= some(select e from t3 where b=e));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 7 100.00 Start temporary
-1 PRIMARY t1 ref it1a,iab iab 4 test.t2.c 1 100.00 Using where; Using index; End temporary
-3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.b' of SELECT #3 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t2`.`c` and <nop>(<expr_cache><`test`.`t2`.`d`,`test`.`t1`.`b`>(<in_optimizer>(`test`.`t2`.`d`,<exists>(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`e` and <cache>(`test`.`t2`.`d`) >= `test`.`t3`.`e`))))
-select a from t1
-where a in (select c from t2 where d >= some(select e from t3 where b=e));
-a
-2
-2
-2
-3
-1
-drop table t1, t2, t3;
-create table t2 (a int, b int, key(a), key(b));
-insert into t2 values (3,3),(3,3),(3,3);
-select 1 from t2 where
-t2.a > 1
-or
-t2.a = 3 and not t2.a not in (select t2.b from t2);
-1
-1
-1
-1
-drop table t2;
-create table t1 (a1 int key);
-create table t2 (b1 int);
-insert into t1 values (5);
-explain select min(a1) from t1 where 7 in (select max(b1) from t2 group by b1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> const distinct_key distinct_key 4 const 1
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-select min(a1) from t1 where 7 in (select max(b1) from t2 group by b1);
-min(a1)
-NULL
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='materialization=off,in_to_exists=on';
-explain select min(a1) from t1 where 7 in (select max(b1) from t2 group by b1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-select min(a1) from t1 where 7 in (select max(b1) from t2 group by b1);
-min(a1)
-NULL
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='semijoin=off';
-explain select min(a1) from t1 where 7 in (select b1 from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-select min(a1) from t1 where 7 in (select b1 from t2);
-min(a1)
-NULL
-set @@optimizer_switch=@optimizer_switch_local_default;
-set @@optimizer_switch='materialization=off,in_to_exists=on';
-# with MariaDB and MWL#90, this particular case is solved:
-explain select min(a1) from t1 where 7 in (select b1 from t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-select min(a1) from t1 where 7 in (select b1 from t2);
-min(a1)
-NULL
-# but when we go around MWL#90 code, the problem still shows up:
-explain select min(a1) from t1 where 7 in (select b1 from t2) or 2> 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-select min(a1) from t1 where 7 in (select b1 from t2) or 2> 4;
-min(a1)
-NULL
-set @@optimizer_switch= @save_optimizer_switch;
-drop table t1,t2;
-create table t1 (a char(2), b varchar(10));
-insert into t1 values ('a', 'aaa');
-insert into t1 values ('aa', 'aaaa');
-explain select a,b from t1 where b in (select a from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 2 func 1 Using where
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-select a,b from t1 where b in (select a from t1);
-a b
-prepare st1 from "select a,b from t1 where b in (select a from t1)";
-execute st1;
-a b
-execute st1;
-a b
-drop table t1;
-#
-# BUG#49630: Segfault in select_describe() with double
-# nested subquery and materialization
-#
-CREATE TABLE t1 (t1i int);
-CREATE TABLE t2 (t2i int);
-CREATE TABLE t3 (t3i int);
-CREATE TABLE t4 (t4i int);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (1),(2);
-INSERT INTO t3 VALUES (1),(2);
-INSERT INTO t4 VALUES (1),(2);
-
-EXPLAIN
-SELECT t1i
-FROM t1 JOIN t4 ON t1i=t4i
-WHERE (t1i) IN (
-SELECT t2i
-FROM t2
-WHERE (t2i) IN (
-SELECT max(t3i)
-FROM t3
-GROUP BY t3i
-)
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY <subquery3> eq_ref distinct_key distinct_key 4 const 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-1 PRIMARY t4 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 2 Using temporary
-DROP TABLE t1,t2,t3,t4;
-CREATE TABLE t1 (
-pk INTEGER AUTO_INCREMENT,
-col_int_nokey INTEGER,
-col_int_key INTEGER,
-col_varchar_key VARCHAR(1),
-PRIMARY KEY (pk),
-KEY (col_int_key),
-KEY (col_varchar_key, col_int_key)
-)
-;
-INSERT INTO t1 (
-col_int_key, col_int_nokey, col_varchar_key
-)
-VALUES
-(2, NULL, 'w'),
-(9, 7, 'm'),
-(3, 9, 'm'),
-(9, 7, 'k'),
-(NULL, 4, 'r'),
-(9, 2, 't'),
-(3, 6, 'j'),
-(8, 8, 'u'),
-(8, NULL, 'h'),
-(53, 5, 'o'),
-(0, NULL, NULL),
-(5, 6, 'k'),
-(166, 188, 'e'),
-(3, 2, 'n'),
-(0, 1, 't'),
-(1, 1, 'c'),
-(9, 0, 'm'),
-(5, 9, 'y'),
-(6, NULL, 'f'),
-(2, 4, 'd')
-;
-SELECT table2.col_varchar_key AS field1,
-table2.col_int_nokey AS field2
-FROM ( t1 AS table1 LEFT OUTER JOIN t1 AS table2
-ON (table2.col_varchar_key = table1.col_varchar_key ) )
-WHERE table1.pk = 6
-HAVING ( field2 ) IN
-( SELECT SUBQUERY2_t2.col_int_nokey AS SUBQUERY2_field2
-FROM ( t1 AS SUBQUERY2_t1 JOIN t1 AS SUBQUERY2_t2
-ON (SUBQUERY2_t2.col_varchar_key = SUBQUERY2_t1.col_varchar_key ) ) )
-ORDER BY field2
-;
-field1 field2
-t 1
-t 2
-drop table t1;
-#
-# BUG#53103: MTR test ps crashes in optimize_cond()
-# when running with --debug
-#
-CREATE TABLE t1(track varchar(15));
-INSERT INTO t1 VALUES ('CAD'), ('CAD');
-PREPARE STMT FROM
-"SELECT 1 FROM t1
- WHERE
- track IN (SELECT track FROM t1
- GROUP BY track
- HAVING track>='CAD')";
-EXECUTE STMT ;
-1
-1
-1
-EXECUTE STMT ;
-1
-1
-1
-DEALLOCATE PREPARE STMT;
-DROP TABLE t1;
-# End of BUG#53103
-#
-# BUG#54511 - Assertion failed: cache != 0L in file
-# sql_select.cc::sub_select_cache on HAVING
-#
-CREATE TABLE t1 (i int(11));
-CREATE TABLE t2 (c char(1));
-CREATE TABLE t3 (c char(1));
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES ('a'), ('b');
-INSERT INTO t3 VALUES ('x'), ('y');
-SELECT COUNT( i ),i
-FROM t1
-HAVING ('c')
-IN (SELECT t2.c FROM (t2 JOIN t3));
-COUNT( i ) i
-DROP TABLE t1,t2,t3;
-# End BUG#54511
-#
-# BUG#56367 - Assertion exec_method != EXEC_MATERIALIZATION...
-# on subquery in FROM
-#
-CREATE TABLE t1 (a INTEGER);
-CREATE TABLE t2 (b INTEGER);
-INSERT INTO t2 VALUES (1);
-set @tmp_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='derived_merge=off,derived_with_keys=off';
-explain SELECT a FROM (
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.a > 3 OR t2.b IN (SELECT a FROM t1)
-) table1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-3 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-SELECT a FROM (
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.a > 3 OR t2.b IN (SELECT a FROM t1)
-) table1;
-a
-set optimizer_switch=@tmp_optimizer_switch;
-DROP TABLE t1, t2;
-# End BUG#56367
-#
-# Bug#59833 - materialization=on/off leads to different result set
-# when using IN
-#
-CREATE TABLE t1 (
-pk int NOT NULL,
-f1 int DEFAULT NULL,
-PRIMARY KEY (pk)
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-pk int NOT NULL,
-f1 int DEFAULT NULL,
-PRIMARY KEY (pk)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (10,0);
-INSERT INTO t2 VALUES (10,0),(11,0);
-explain SELECT * FROM t1 JOIN t2 USING (f1)
-WHERE t1.f1 IN (SELECT t1.pk FROM t1 ORDER BY t1.f1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 const 1
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t1 system NULL NULL NULL NULL 1
-SELECT * FROM t1 JOIN t2 USING (f1)
-WHERE t1.f1 IN (SELECT t1.pk FROM t1 ORDER BY t1.f1);
-f1 pk pk
-DROP TABLE t1, t2;
-# End Bug#59833
-#
-# Bug#11852644 - CRASH IN ITEM_REF::SAVE_IN_FIELD ON SELECT DISTINCT
-#
-CREATE TABLE t1 (
-col_varchar_key varchar(1) DEFAULT NULL,
-col_varchar_nokey varchar(1) DEFAULT NULL,
-KEY col_varchar_key (col_varchar_key))
-;
-INSERT INTO t1 VALUES
-('v','v'),('r','r');
-CREATE TABLE t2 (
-col_varchar_key varchar(1) DEFAULT NULL,
-col_varchar_nokey varchar(1) DEFAULT NULL,
-KEY col_varchar_key(col_varchar_key))
-;
-INSERT INTO t2 VALUES
-('r','r'),('c','c');
-CREATE VIEW v3 AS SELECT * FROM t2;
-SELECT DISTINCT alias2.col_varchar_key
-FROM t1 AS alias1 JOIN v3 AS alias2
-ON alias2.col_varchar_key = alias1.col_varchar_key
-HAVING col_varchar_key IN (SELECT col_varchar_nokey FROM t2)
-;
-col_varchar_key
-r
-DROP TABLE t1, t2;
-DROP VIEW v3;
-# End Bug#11852644
-
-# Bug#12668294 - GROUP BY ON EMPTY RESULT GIVES EMPTY ROW
-# INSTEAD OF NULL WHEN MATERIALIZATION ON
-
-CREATE TABLE t1 (col_int_nokey INT) ENGINE=MEMORY;
-CREATE TABLE t2 (col_int_nokey INT) ENGINE=MEMORY;
-INSERT INTO t2 VALUES (8),(7);
-CREATE TABLE t3 (col_int_nokey INT) ENGINE=MEMORY;
-INSERT INTO t3 VALUES (7);
-SELECT MIN(t3.col_int_nokey),t1.col_int_nokey AS field3
-FROM t3
-LEFT JOIN t1
-ON t1.col_int_nokey
-WHERE (194, 200) IN (
-SELECT SQ4_alias1.col_int_nokey,
-SQ4_alias2.col_int_nokey
-FROM t2 AS SQ4_alias1
-JOIN
-t2 AS SQ4_alias2
-ON SQ4_alias2.col_int_nokey = 5
-)
-GROUP BY field3 ;
-MIN(t3.col_int_nokey) field3
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t3;
-CREATE TABLE t1 (f1 INT, f2 DECIMAL(5,3)) ENGINE=MyISAM;
-INSERT INTO t1 (f1, f2) VALUES (1, 1.789);
-INSERT INTO t1 (f1, f2) VALUES (13, 1.454);
-INSERT INTO t1 (f1, f2) VALUES (10, 1.668);
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 VALUES (1, 1.789);
-INSERT INTO t2 VALUES (13, 1.454);
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch=@optimizer_switch_local_default;
-SET @@optimizer_switch='semijoin=on,materialization=on';
-EXPLAIN SELECT COUNT(*) FROM t1 WHERE (f1,f2) IN (SELECT f1,f2 FROM t2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-SELECT COUNT(*) FROM t1 WHERE (f1,f2) IN (SELECT f1,f2 FROM t2);
-COUNT(*)
-2
-set @@optimizer_switch= @save_optimizer_switch;
-DROP TABLE t1, t2;
-CREATE TABLE t1 (
-pk int,
-a varchar(1),
-b varchar(4),
-c varchar(4),
-d varchar(4),
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (1,'o','ffff','ffff','ffoo'),(2,'f','ffff','ffff','ffff');
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t2 VALUES (1,'i','iiii','iiii','iiii'),(2,'f','ffff','ffff','ffff');
-set @save_optimizer_switch=@@optimizer_switch;
-set @@optimizer_switch=@optimizer_switch_local_default;
-SET @@optimizer_switch='semijoin=on,materialization=on';
-EXPLAIN SELECT pk FROM t1 WHERE (a) IN (SELECT a FROM t2 WHERE pk > 0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t2 range PRIMARY PRIMARY 4 NULL 2 Using index condition; Using where; Rowid-ordered scan
-SELECT pk FROM t1 WHERE (a) IN (SELECT a FROM t2 WHERE pk > 0);
-pk
-2
-SELECT pk FROM t1 WHERE (b,c,d) IN (SELECT b,c,d FROM t2 WHERE pk > 0);
-pk
-2
-DROP TABLE t1, t2;
-set optimizer_switch=@save_optimizer_switch;
-#
-# BUG#50019: Wrong result for IN-subquery with materialization
-#
-create table t1(i int);
-insert into t1 values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-create table t2(i int);
-insert into t2 values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-create table t3(i int);
-insert into t3 values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-select * from t1 where t1.i in (select t2.i from t2 join t3 where t2.i + t3.i = 5);
-i
-1
-2
-3
-4
-set @save_optimizer_switch=@@optimizer_switch;
-set session optimizer_switch='materialization=off,in_to_exists=on';
-select * from t1 where t1.i in (select t2.i from t2 join t3 where t2.i + t3.i = 5);
-i
-4
-3
-2
-1
-set session optimizer_switch=@save_optimizer_switch;
-drop table t1, t2, t3;
-create table t0 (a int);
-insert into t0 values (0),(1),(2);
-create table t1 (a int);
-insert into t1 values (0),(1),(2);
-explain select a, a in (select a from t1) from t0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 3
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 3
-select a, a in (select a from t1) from t0;
-a a in (select a from t1)
-0 1
-1 1
-2 1
-prepare s from 'select a, a in (select a from t1) from t0';
-execute s;
-a a in (select a from t1)
-0 1
-1 1
-2 1
-update t1 set a=123;
-execute s;
-a a in (select a from t1)
-0 0
-1 0
-2 0
-drop table t0, t1;
-set optimizer_switch='firstmatch=on';
-#
-# MWL#90, review feedback: check what happens when the subquery
-# looks like candidate for MWL#90 checking at the first glance
-# but then subselect_hash_sj_engine::init_permanent() discovers
-# that it's not possible to perform duplicate removal for the
-# selected datatypes, and so materialization isn't applicable after
-# all.
-#
-set @blob_len = 1024;
-set @suffix_len = @blob_len - @prefix_len;
-create table t1_1024 (a1 blob(1024), a2 blob(1024));
-create table t2_1024 (b1 blob(1024), b2 blob(1024));
-insert into t1_1024 values
-(concat('1 - 00', repeat('x', @suffix_len)), concat('2 - 00', repeat('x', @suffix_len)));
-insert into t1_1024 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t1_1024 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_1024 values
-(concat('1 - 01', repeat('x', @suffix_len)), concat('2 - 01', repeat('x', @suffix_len)));
-insert into t2_1024 values
-(concat('1 - 02', repeat('x', @suffix_len)), concat('2 - 02', repeat('x', @suffix_len)));
-insert into t2_1024 values
-(concat('1 - 03', repeat('x', @suffix_len)), concat('2 - 03', repeat('x', @suffix_len)));
-explain select left(a1,7), left(a2,7) from t1_1024 where (a1,3) in (select substring(b1,1,1024), count(*) from t2_1024 where b1 > '0');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1_1024 ALL NULL NULL NULL NULL 3 Using where
-2 DEPENDENT SUBQUERY t2_1024 ALL NULL NULL NULL NULL 3 Using where
-select left(a1,7), left(a2,7) from t1_1024 where (a1,3) in (select substring(b1,1,1024), count(*) from t2_1024 where b1 > '0');
-left(a1,7) left(a2,7)
-1 - 01x 2 - 01x
-drop table t1_1024, t2_1024;
-#
-# BUG##836491: Crash in Item_field::Item_field from add_ref_to_table_cond() with semijoin+materialization
-#
-CREATE TABLE t1 (c int, d varchar(1), KEY(d)) ;
-INSERT INTO t1 VALUES (2,'x'),(2,'x'),(2,'j'),(2,'c');
-CREATE TABLE t2 (a int, d varchar(1)) ;
-INSERT INTO t2 VALUES (1,'x');
-CREATE TABLE t3 (d varchar(1)) ;
-INSERT INTO t3 VALUES ('x'),('x'),('j'),('c');
-SELECT t2.a, t1.c
-FROM t1, t2
-WHERE t2.d IN ( SELECT d FROM t3 )
-AND t1.d = t2.d
-GROUP BY 1 , 2;
-a c
-1 2
-drop table t1,t2,t3;
-#
-# BUG#836523: Crash in JOIN::get_partial_cost_and_fanout with semijoin+materialization
-#
-CREATE TABLE t1 (a varchar(1));
-INSERT INTO t1 VALUES ('a'),('a');
-CREATE TABLE t2 (a varchar(1));
-CREATE TABLE t3 (a int);
-INSERT INTO t3 VALUES (1),(2);
-CREATE TABLE t4 (a varchar(1));
-INSERT INTO t4 VALUES ('a'),('a');
-SELECT t1.a
-FROM t1
-WHERE t1.a IN (
-SELECT t2.a
-FROM t2, t3
-)
-HAVING a IN (
-SELECT a
-FROM t4
-);
-a
-DROP TABLE t1, t2, t3, t4;
-#
-# BUG#836507: Crash in setup_sj_materialization_part1() with semijoin+materialization
-#
-CREATE TABLE t1 (a int) ;
-INSERT IGNORE INTO t1 VALUES (1),(1);
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES (1);
-CREATE TABLE t3 (a int);
-CREATE TABLE t4 (a int);
-INSERT INTO t4 VALUES (2),(2);
-CREATE TABLE t5 (a int);
-INSERT INTO t5 VALUES (1);
-SELECT * FROM t1
-WHERE (a) IN (
-SELECT t5.a
-FROM (
-t2
-LEFT JOIN ( t3 , t4 )
-ON 1 = 1
-)
-JOIN t5
-);
-a
-1
-1
-DROP TABLE t1,t2,t3,t4,t5;
-#
-# BUG#836532: Crash in Item_equal_fields_iterator::get_curr_field with semijoin+materialization
-#
-CREATE TABLE t2 (a int);
-INSERT IGNORE INTO t2 VALUES ('a'),('a');
-Warnings:
-Warning 1366 Incorrect integer value: 'a' for column 'a' at row 1
-Warning 1366 Incorrect integer value: 'a' for column 'a' at row 2
-CREATE TABLE t4 (a varchar(1));
-INSERT INTO t4 VALUES ('m'),('o');
-CREATE TABLE t3 (a varchar(1) , b varchar(1) ) ;
-INSERT INTO t3 VALUES ('b','b');
-CREATE TABLE t5 (a varchar(1), KEY (a)) ;
-INSERT INTO t5 VALUES ('d'),('e');
-SELECT *
-FROM t2
-WHERE t2.a = ALL (
-SELECT t4.a
-FROM t4
-WHERE t4.a IN (
-SELECT t3.a
-FROM t3 , t5
-WHERE ( t5.a = t3.b )
-)
-);
-a
-0
-0
-DROP TABLE t2,t3,t4,t5;
-#
-# BUG#860300: Second crash with get_fanout_with_deps() with semijoin + materialization
-#
-set @tmp_860300=@@optimizer_switch;
-set optimizer_switch='semijoin=on,materialization=on,loosescan=off,firstmatch=off';
-CREATE TABLE t1 (f2 int);
-INSERT INTO t1 VALUES (9),(6);
-CREATE TABLE t3 (f4 int);
-CREATE TABLE t4 (f6 varchar(1));
-SELECT *
-FROM t3
-WHERE 'h' IN (SELECT f6
-FROM t4
-WHERE 5 IN (SELECT f2 FROM t1)
-GROUP BY t4.f6);
-f4
-DROP TABLE t1,t3,t4;
-set optimizer_switch=@tmp_860300;
-#
-# BUG#860535: Assertion `keypart_map' failed in mi_rkey with semijoin
-#
-set @tmp_860535=@@optimizer_switch;
-set optimizer_switch='semijoin=on,materialization=on,loosescan=off,firstmatch=off';
-CREATE TABLE t1 (f3 int) ;
-INSERT INTO t1 VALUES (1),(7);
-CREATE TABLE t2 (f3 int , f5 varchar(1), KEY (f3)) ;
-INSERT INTO t2 VALUES (7,'b');
-CREATE TABLE t3 (f3 int , f4 varchar(1) , KEY(f3), KEY (f4,f3)) ;
-INSERT INTO t3 VALUES (1,'t'),(7,'g');
-CREATE TABLE t4
-SELECT f3
-FROM t1 WHERE ( f3 ) NOT IN (
-SELECT f3
-FROM t2
-WHERE f5 IN (
-SELECT f4
-FROM t3
-WHERE t3.f3 < 3
-)
-);
-SELECT * FROM t4;
-f3
-1
-7
-DROP TABLE t1, t2, t3, t4;
-set optimizer_switch=@tmp_860535;
-#
-# BUG#860553: Crash in create_ref_for_key with semijoin + materialization
-#
-CREATE TABLE t1 (f1 int) ;
-CREATE TABLE t2 (f5 varchar(52) NOT NULL) ;
-CREATE TABLE t3 (f1 varchar(3), f4 varchar(52) , KEY (f4), PRIMARY KEY (f1));
-CREATE TABLE t4 (f3 int, KEY (f3));
-INSERT INTO t4 VALUES (17),(20);
-CREATE TABLE t5 (f2 int);
-INSERT INTO t5 VALUES (0),(0);
-SELECT *
-FROM t1
-JOIN t2
-ON ( t2.f5 ) IN (
-SELECT t3.f4
-FROM t3
-WHERE ( 1 ) IN (
-SELECT t4.f3
-FROM t4 , t5
-)
-);
-f1 f5
-DROP TABLE t1, t2, t3, t4, t5;
-#
-# BUG#868908: Crash in check_simple_equality() with semijoin + materialization + prepared statement
-#
-CREATE TABLE t1 ( a int );
-CREATE TABLE t3 ( b int, c int) ;
-CREATE TABLE t2 ( a int ) ;
-CREATE TABLE t4 ( a int , c int) ;
-PREPARE st1 FROM "
-SELECT STRAIGHT_JOIN *
-FROM t1
-WHERE ( 3 ) IN (
- SELECT t3.b
- FROM t3
- LEFT JOIN (
- t2 STRAIGHT_JOIN t4 ON ( t4.c = t2.a )
- ) ON ( t4.a = t3.c )
-);
-";
-EXECUTE st1;
-a
-EXECUTE st1;
-a
-DROP TABLE t1,t2,t3,t4;
-#
-# BUG#901032: Wrong result for MIN/MAX on an indexed column with materialization and semijoin
-#
-CREATE TABLE t1 ( a INT, KEY(a) );
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 ( b INT );
-INSERT INTO t2 VALUES (2);
-CREATE TABLE t3 ( c INT );
-INSERT INTO t3 VALUES (2);
-SELECT MIN(a) FROM t1, t2 WHERE b IN (SELECT c FROM t3 GROUP BY c);
-MIN(a)
-1
-DROP TABLE t1,t2,t3;
-#
-#
-# BUG#902632: Crash or invalid read at st_join_table::cleanup, st_table::disable_keyread
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1), (2);
-CREATE TABLE t2 ( b INT );
-INSERT INTO t2 VALUES (3), (4);
-CREATE TABLE t3 ( c INT );
-INSERT INTO t3 VALUES (5), (6);
-SELECT * FROM t1 WHERE EXISTS (
-SELECT DISTINCT b FROM t2
-WHERE b <= a
-AND b IN ( SELECT c FROM t3 GROUP BY c )
-);
-a
-DROP TABLE t1,t2,t3;
-#
-# BUG#901506: Crash in TABLE_LIST::print on EXPLAIN EXTENDED
-#
-CREATE TABLE t1 ( a INT, KEY(a) );
-INSERT INTO t1 VALUES (8);
-EXPLAIN EXTENDED
-SELECT * FROM t1
-WHERE a IN ( SELECT MIN(a) FROM t1 );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system a NULL NULL NULL 1 100.00
-1 PRIMARY <subquery2> system NULL NULL NULL NULL 1 100.00
-2 MATERIALIZED NULL NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-Warnings:
-Note 1003 /* select#1 */ select 8 AS `a` from dual where 1
-DROP TABLE t1;
-#
-# BUG#904432: Wrong result with LEFT JOIN, constant table, semijoin=ON,materialization=ON
-#
-CREATE TABLE t1 ( a INT ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4);
-CREATE TABLE t2 ( b INT NOT NULL, c INT );
-INSERT INTO t2 VALUES (4,2),(4,2),(4,4),(1,1);
-SELECT * FROM t1 LEFT JOIN t2 ON ( a = b )
-WHERE a IN ( SELECT c FROM t2 );
-a b c
-4 4 2
-4 4 2
-4 4 4
-DROP TABLE t1,t2;
-#
-# BUG#922254: Assertion `0' failed at item_cmpfunc.cc:5899: Item* Item_equal::get_first(JOIN_TAB*, Item*)
-#
-CREATE TABLE t1 ( a VARCHAR(3) );
-CREATE TABLE t2 ( b VARCHAR(3), c VARCHAR(8), KEY(c) );
-INSERT INTO t2 VALUES ('USA','Abilene'),('USA','Akron');
-EXPLAIN
-SELECT * FROM
-( SELECT * FROM t1 ) AS alias1,
-t2 AS alias2
-WHERE b = a AND a IN (
-SELECT alias3.c
-FROM t2 AS alias3, t2 AS alias4
-WHERE alias4.c = alias3.b
-);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-DROP TABLE t1,t2;
-#
-# BUG#928048: Query containing IN subquery with OR in the where clause returns a wrong result
-#
-create table t1 (a int, b int);
-insert into t1 values (7,5), (3,3), (5,4), (9,3);
-create table t2 (a int, b int, index i_a(a));
-insert into t2 values
-(4,2), (7,9), (7,4), (3,1), (5,3), (3,1), (9,4), (8,1);
-explain select * from t1 where t1.a in (select a from t2 where t2.a=7 or t2.b<=1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t2 ALL i_a NULL NULL NULL 8 Using where
-select * from t1 where t1.a in (select a from t2 where t2.a=7 or t2.b<=1);
-a b
-7 5
-3 3
-drop table t1,t2;
-#
-# BUG#933407: Valgrind warnings in mark_as_null_row with materialization+semijoin, STRAIGHT_JOIN, impossible WHERE
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (0),(8);
-SELECT STRAIGHT_JOIN MIN(a) FROM t1
-WHERE a IN (
-SELECT a FROM t1
-WHERE 'condition'='impossible'
- );
-MIN(a)
-NULL
-DROP TABLE t1;
-#
-# BUG#938131: Subquery materialization is not used in CREATE TABLE SELECT
-#
-CREATE TABLE t1(a int);
-INSERT INTO t1 values(1),(2);
-CREATE TABLE t2(a int);
-INSERT INTO t2 values(1),(2);
-# Should use Materialization:
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT * FROM t2 GROUP BY a HAVING a > 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 test.t1.a 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using temporary
-flush status;
-CREATE TABLE t3 SELECT * FROM t1 WHERE a IN (SELECT * FROM t2 GROUP BY a HAVING a > 1);
-SHOW STATUS LIKE 'Created_tmp_tables';
-Variable_name Value
-Created_tmp_tables 2
-DROP TABLE t1,t2,t3;
-#
-# BUG#939009: Crash with aggregate function in IN subquery
-#
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='materialization=on,semijoin=on';
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (7,1), (4,2), (7,7);
-CREATE TABLE t2 ( c INT );
-INSERT INTO t2 VALUES (4), (7), (6);
-EXPLAIN EXTENDED
-SELECT * FROM t1
-WHERE a IN (SELECT MAX(c) FROM t2) AND b=7 AND (a IS NULL OR a=b);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> const distinct_key distinct_key 4 const 1 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from <materialize> (/* select#2 */ select max(`test`.`t2`.`c`) from `test`.`t2`) join `test`.`t1` where `test`.`t1`.`b` = 7 and `test`.`t1`.`a` = `<subquery2>`.`MAX(c)` and (<cache>(`<subquery2>`.`MAX(c)` is null) or `<subquery2>`.`MAX(c)` = 7)
-SELECT * FROM t1
-WHERE a IN (SELECT MAX(c) FROM t2) AND b=7 AND (a IS NULL OR a=b);
-a b
-7 7
-EXPLAIN
-SELECT * FROM t1
-WHERE a IN (SELECT MAX(c) FROM t2 WHERE c < 4) AND b=7 AND (a IS NULL OR a=b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> const distinct_key distinct_key 4 const 1
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 3 Using where
-SELECT * FROM t1
-WHERE a IN (SELECT MAX(c) FROM t2 WHERE c < 4) AND b=7 AND (a IS NULL OR a=b);
-a b
-SET optimizer_switch=@save_optimizer_switch;
-DROP TABLE t1,t2;
-#
-# BUG#946055: Crash with semijoin IN subquery when hash join is used
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (7);
-CREATE TABLE t2 (b int, c int, d varchar(1), e varchar(1), KEY (c), KEY (d, c));
-INSERT INTO t2 VALUES
-(4,2,'v','v'), (6,1,'v','v'), (0,5,'x','x'), (7,1,'x','x'),
-(7,3,'i','i'), (7,1,'e','e'), (1,4,'p','p'), (1,2,'j','j');
-SET @save_optimizer_switch=@@optimizer_switch;
-SET @save_join_cache_level=@@join_cache_level;
-SET join_cache_level=2;
-EXPLAIN
-SELECT a, c FROM t1, t2
-WHERE (a, c) IN (SELECT s1.b, s1.c FROM t2 AS s1, t2 AS s2
-WHERE s2.d = s1.e AND s1.e = (SELECT MAX(e) FROM t2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 index c c 5 NULL 8 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-2 MATERIALIZED s2 ref d d 4 const 2 Using where; Using index
-2 MATERIALIZED s1 ALL c NULL NULL NULL 8 Using where; Using join buffer (flat, BNL join)
-3 SUBQUERY t2 ALL NULL NULL NULL NULL 8
-SELECT a, c FROM t1, t2
-WHERE (a, c) IN (SELECT s1.b, s1.c FROM t2 AS s1, t2 AS s2
-WHERE s2.d = s1.e AND s1.e = (SELECT MAX(e) FROM t2));
-a c
-7 1
-7 1
-7 1
-SET optimizer_switch='join_cache_hashed=on';
-SET join_cache_level=4;
-EXPLAIN
-SELECT a, c FROM t1, t2
-WHERE (a, c) IN (SELECT s1.b, s1.c FROM t2 AS s1, t2 AS s2
-WHERE s2.d = s1.e AND s1.e = (SELECT MAX(e) FROM t2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 1
-1 PRIMARY t2 index c c 5 NULL 8 Using index
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 func,func 1
-2 MATERIALIZED s2 ref d d 4 const 2 Using where; Using index
-2 MATERIALIZED s1 hash_ALL c #hash#$hj 5 const 8 Using where; Using join buffer (flat, BNLH join)
-3 SUBQUERY t2 ALL NULL NULL NULL NULL 8
-SELECT a, c FROM t1, t2
-WHERE (a, c) IN (SELECT s1.b, s1.c FROM t2 AS s1, t2 AS s2
-WHERE s2.d = s1.e AND s1.e = (SELECT MAX(e) FROM t2));
-a c
-7 1
-7 1
-7 1
-SET optimizer_switch=@save_optimizer_switch;
-SET join_cache_level=@save_join_cache_level;
-DROP TABLE t1,t2;
-#
-# BUG#952297: Server crashes on 2nd execution of PS in Field::is_null with semijoin+materialization
-#
-CREATE TABLE t1 ( a VARCHAR(1) );
-INSERT INTO t1 VALUES ('y'),('z');
-CREATE TABLE t2 ( b VARCHAR(1), c VARCHAR(1) );
-INSERT INTO t2 VALUES ('v','v'),('v','v');
-CREATE VIEW v2 AS SELECT * FROM t2;
-PREPARE ps FROM '
-SELECT a FROM t1, v2
-WHERE ( c, b ) IN ( SELECT b, b FROM t2 )
-GROUP BY a ';
-EXECUTE ps;
-a
-y
-z
-EXECUTE ps;
-a
-y
-z
-DROP VIEW v2;
-DROP TABLE t1, t2;
-#
-# BUG#1000269: Wrong result (extra rows) with semijoin+materialization, IN subqueries, join_cache_level>0
-#
-CREATE TABLE t1 (a1 VARCHAR(1), a2 VARCHAR(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('b','b'),('e','e');
-CREATE TABLE t2 (b1 VARCHAR(1), b2 VARCHAR(1), KEY(b1)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('v','v'),('s','s'),('l','l'), ('y','y'),('c','c'),('i','i');
-SELECT * FROM t1, t2 WHERE b1 IN ( SELECT b2 FROM t2 WHERE b1 > 'o' ) AND ( b1 < 'l' OR a1 IN ('b','c') );
-a1 a2 b1 b2
-b b v v
-b b s s
-b b y y
-DROP TABLE t1,t2;
-#
-# MDEV-4465: Reproducible crash (mysqld got signal 11) in multi_delete::initialize_tables with semijoin+materialization
-#
-CREATE TABLE t1 (
-id int(11) NOT NULL
-);
-CREATE TABLE t2 (
-id int(11) NOT NULL,
-a_id int(11) DEFAULT NULL
-);
-insert into t1 values (1), (2), (3);
-insert into t2 values (1, 1), (2, 1), (3, 1), (4, 2), (5, 3), (6, 3), (7, 3);
-delete t2 from t2 where a_id in (select * from (select t1.id from t1 limit 2) as x);
-drop table t1,t2;
-# This must be at the end:
-set optimizer_switch=@subselect_sj_mat_tmp;
-set join_cache_level=@save_join_cache_level;
-#
-# MDEV-4908: Assertion `((Item_cond *) cond)->functype() ==
-# ((Item_cond *) new_item)->functype()' fails on a query with
-# IN and equal conditions, AND/OR, materialization+semijoin
-#
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch = 'materialization=on,semijoin=on';
-CREATE TABLE t1 (pk INT, a INT, b INT, PRIMARY KEY(pk)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,3,5),(2,4,6);
-SELECT * FROM t1 WHERE 8 IN ( SELECT MIN(pk) FROM t1 ) AND ( pk = a OR pk = b );
-pk a b
-drop table t1;
-SET optimizer_switch=@save_optimizer_switch;
-#
-# MDEV-5011: ERROR Plugin 'MEMORY' has ref_count=1 after shutdown for SJM queries
-#
-CREATE TABLE t1 (pk INT, a INT, b INT, PRIMARY KEY(pk)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,3,5),(2,4,6);
-SELECT * FROM t1 WHERE 8 IN (SELECT MIN(pk) FROM t1) AND (pk = a OR pk = b);
-pk a b
-DROP TABLE t1;
-#
-# MDEV-5368: Server crashes in Item_in_subselect::optimize on 2nd
-# execution of PS with IN subqueries, materialization+semijoin
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(3);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2;
-INSERT INTO t2 VALUES (8),(9);
-PREPARE stmt FROM "
-SELECT * FROM t1 WHERE 1 IN ( SELECT b FROM v2 WHERE 2 IN ( SELECT MAX(a) FROM t1 ) )
-";
-EXECUTE stmt;
-a
-EXECUTE stmt;
-a
-DROP TABLE t1, t2;
-DROP VIEW v2;
-#
-# MDEV-5811: Server crashes in best_access_path with materialization+semijoin and big_tables=ON
-#
-SET @tmp_mdev5811= @@big_tables;
-SET big_tables = ON;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (3),(4);
-SELECT * FROM t1 AS t1_1, t1 AS t1_2
-WHERE ( t1_1.a, t1_2.a ) IN ( SELECT MAX(b), MIN(b) FROM t2 );
-a a
-DROP TABLE t1,t2;
-SET big_tables=@tmp_mdev5811;
-# End of 5.3 tests
-#
-# MDEV-5056: Wrong result (extra rows) with materialization+semijoin, IN subqueries
-#
-set @tmp_mdev5056=@@join_cache_level;
-SET join_cache_level = 2;
-CREATE TABLE t1 ( c1 VARCHAR(2), c2 VARCHAR(2), INDEX(c1) ) ENGINE=MyISAM;
-INSERT INTO t1 VALUES
-('JP','OM'),('VA','JP'),('CA','ML'),('ML','EG'),('DK','CA'),
-('DK','QA'),('YE','PL'),('TR','ZW'),('DK','SK'),('SK','DK'),
-('RO','ML'),('ML','BG'),('BG','ZW'),('ZW','GE'),('GE','JP'),
-('PL','EG'),('QA','YE'),('WF','DK'),('DK','JP'),('EG','OM');
-CREATE TABLE t2 ( c3 VARCHAR(2), c4 VARCHAR(2) ) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('CA','ML'),('IN','HU'),('HU','IN');
-SELECT * FROM t1 AS alias1, t1 AS alias2
-WHERE ( alias2.c2, alias1.c1 ) IN ( SELECT c4, c3 FROM t2 ) AND alias1.c1 IN ( SELECT c2 FROM t1 );
-c1 c2 c1 c2
-CA ML CA ML
-CA ML RO ML
-DROP TABLE t1,t2;
-set join_cache_level=@tmp_mdev5056;
-#
-# MDEV-5368: Server crashes in Item_in_subselect::optimize on 2nd
-# execution of PS with IN subqueries, materialization+semijoin
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(3);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2;
-INSERT INTO t2 VALUES (8),(9);
-PREPARE stmt FROM "
-SELECT * FROM t1 WHERE 1 IN ( SELECT b FROM v2 WHERE 2 IN ( SELECT MAX(a) FROM t1 ) )
-";
-EXECUTE stmt;
-a
-EXECUTE stmt;
-a
-DROP TABLE t1, t2;
-DROP VIEW v2;
-#
-# MDEV-6289 : Unexpected results when querying information_schema
-#
-CREATE TABLE t1 (
-id int(11) unsigned NOT NULL AUTO_INCREMENT,
-db varchar(254) NOT NULL DEFAULT '',
-PRIMARY KEY (id),
-UNIQUE KEY db (db)
-) DEFAULT CHARSET=utf8;
-INSERT INTO t1 (db) VALUES ('mysqltest1'),('mysqltest2'),('mysqltest3'),('mysqltest4');
-drop database if exists mysqltest1;
-drop database if exists mysqltest2;
-drop database if exists mysqltest3;
-drop database if exists mysqltest4;
-create database mysqltest1;
-create database mysqltest2;
-create database mysqltest3;
-create database mysqltest4;
-SELECT db FROM t1 WHERE db IN (SELECT SCHEMA_NAME FROM information_schema.schemata) ORDER BY db DESC;
-db
-mysqltest4
-mysqltest3
-mysqltest2
-mysqltest1
-EXPLAIN EXTENDED
-SELECT db FROM t1 WHERE db IN (SELECT SCHEMA_NAME FROM information_schema.schemata) ORDER BY db DESC;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2 100.00 Using temporary; Using filesort
-1 PRIMARY t1 eq_ref db db 764 information_schema.schemata.SCHEMA_NAME 1 100.00 Using where; Using index
-2 MATERIALIZED schemata ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 select `test`.`t1`.`db` AS `db` from `test`.`t1` semi join (`information_schema`.`schemata`) where `test`.`t1`.`db` = `information_schema`.`schemata`.`SCHEMA_NAME` order by `test`.`t1`.`db` desc
-drop table t1;
-drop database mysqltest1;
-drop database mysqltest2;
-drop database mysqltest3;
-drop database mysqltest4;
-#
-# MDEV-7810 Wrong result on execution of a query as a PS
-# (both 1st and further executions)
-CREATE TABLE t1 (a INT NOT NULL) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (0),(8);
-SELECT a FROM (SELECT DISTINCT * FROM t1) AS sq WHERE a IN (SELECT MIN(t2.a) FROM (t1 AS t2));
-a
-0
-PREPARE stmt FROM "
-SELECT a FROM (SELECT DISTINCT * FROM t1) AS sq WHERE a IN (SELECT MIN(t2.a) FROM (t1 AS t2))
-";
-execute stmt;
-a
-0
-execute stmt;
-a
-0
-drop table t1;
-#
-# MDEV-12429: IN subquery used in WHERE of EXISTS subquery
-#
-CREATE TABLE t1 (
-pk INT, f1 INT NOT NULL, f2 VARCHAR(3), f3 INT NULL, PRIMARY KEY(pk)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,1,'foo',8), (2,5,'bar',7);
-SELECT sq1.f2 FROM t1 AS sq1
-WHERE EXISTS ( SELECT * FROM t1 AS sq2
-WHERE sq1.`pk` IN ( SELECT f1 FROM t1 ) AND sq2.f1 = sq1.f1 );
-f2
-foo
-set @save_optimizer_switch= @@optimizer_switch;
-set optimizer_switch='exists_to_in=off';
-EXPLAIN
-SELECT sq1.f2 FROM t1 AS sq1
-WHERE EXISTS ( SELECT * FROM t1 AS sq2
-WHERE sq1.`pk` IN ( SELECT f1 FROM t1 ) AND sq2.f1 = sq1.f1 );
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY sq1 ALL NULL NULL NULL NULL 2 Using where
-2 DEPENDENT SUBQUERY <subquery3> eq_ref distinct_key distinct_key 4 func 1
-2 DEPENDENT SUBQUERY sq2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 2
-# this checks the result set above
-set optimizer_switch= 'materialization=off,semijoin=off';
-SELECT sq1.f2 FROM t1 AS sq1
-WHERE EXISTS ( SELECT * FROM t1 AS sq2
-WHERE sq1.`pk` IN ( SELECT f1 FROM t1 ) AND sq2.f1 = sq1.f1 );
-f2
-foo
-set optimizer_switch= @save_optimizer_switch;
-DROP TABLE t1;
-#
-# MDEV-12145: IN subquery used in WHERE of EXISTS subquery
-#
-CREATE TABLE t1 (f1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4),(6);
-CREATE TABLE t2 (i2 INT, KEY(i2)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (8),(7),(1);
-CREATE TABLE t3 (f3 INT, i3 INT, KEY(i3)) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (8,0),(6,3),(2,8),(3,8),(1,6),(0,0),(1,0),(1,5);
-set @save_optimizer_switch= @@optimizer_switch;
-set optimizer_switch='exists_to_in=off';
-SELECT * FROM t1
-WHERE EXISTS ( SELECT * FROM t2, t3
-WHERE i3 = i2 AND f1 IN ( SELECT f3 FROM t3 ) );
-f1
-6
-EXPLAIN EXTENDED
-SELECT * FROM t1
-WHERE EXISTS ( SELECT * FROM t2, t3
-WHERE i3 = i2 AND f1 IN ( SELECT f3 FROM t3 ) );
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY <subquery3> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 DEPENDENT SUBQUERY t2 index i2 i2 5 NULL 3 100.00 Using where; Using index; Using join buffer (flat, BNL join)
-2 DEPENDENT SUBQUERY t3 ref i3 i3 5 test.t2.i2 2 100.00 Using index
-3 MATERIALIZED t3 ALL NULL NULL NULL NULL 8 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.f1' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`f1` AS `f1` from `test`.`t1` where <expr_cache><`test`.`t1`.`f1`>(exists(/* select#2 */ select 1 from `test`.`t2` semi join (`test`.`t3`) join `test`.`t3` where `test`.`t3`.`i3` = `test`.`t2`.`i2` and `test`.`t1`.`f1` = `test`.`t3`.`f3`))
-# this checks the result set above
-set optimizer_switch= 'materialization=off,semijoin=off';
-SELECT * FROM t1
-WHERE EXISTS ( SELECT * FROM t2, t3
-WHERE i3 = i2 AND f1 IN ( SELECT f3 FROM t3 ) );
-f1
-6
-set optimizer_switch= @save_optimizer_switch;
-DROP TABLE t1,t2,t3;
-#
-# MDEV-9686: IN subquery used in WHERE of a subquery from select list
-#
-CREATE TABLE t1 (pk INT PRIMARY KEY, f1 INT);
-INSERT INTO t1 VALUES (1, 4),(2, 3),(3, 3),(4, 6),(5, 3);
-CREATE TABLE t2 (f2 INT);
-INSERT INTO t2 VALUES (1),(2),(3),(4),(5);
-# t1.pk is always IN ( SELECT f2 FROM t2 ),
-# so the IN condition should be true for every row,
-# and thus COUNT(*) should always return 5
-SELECT pk, f1, ( SELECT COUNT(*) FROM t2
-WHERE t1.pk IN ( SELECT f2 FROM t2 ) ) AS sq FROM t1;
-pk f1 sq
-1 4 5
-2 3 5
-3 3 5
-4 6 5
-5 3 5
-EXPLAIN EXTENDED
-SELECT pk, f1, ( SELECT COUNT(*) FROM t2
-WHERE t1.pk IN ( SELECT f2 FROM t2 ) ) AS sq FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 5 100.00
-2 DEPENDENT SUBQUERY <subquery3> eq_ref distinct_key distinct_key 4 func 1 100.00
-2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 5 100.00 Using join buffer (flat, BNL join)
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1276 Field or reference 'test.t1.pk' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`f1` AS `f1`,<expr_cache><`test`.`t1`.`pk`>((/* select#2 */ select count(0) from `test`.`t2` semi join (`test`.`t2`) where `test`.`t1`.`pk` = `test`.`t2`.`f2`)) AS `sq` from `test`.`t1`
-# this checks the result set above
-set @save_optimizer_switch= @@optimizer_switch;
-set optimizer_switch= 'materialization=off,semijoin=off';
-SELECT pk, f1, ( SELECT COUNT(*) FROM t2
-WHERE t1.pk IN ( SELECT f2 FROM t2 ) ) AS sq FROM t1;
-pk f1 sq
-1 4 5
-2 3 5
-3 3 5
-4 6 5
-5 3 5
-set optimizer_switch= @save_optimizer_switch;
-DROP TABLE t1,t2;
-#
-# mdev-12838: scan of materialized of semi-join subquery in join
-#
-set @save_optimizer_switch=@@optimizer_switch;
-CREATE TABLE t1 (
-dispatch_group varchar(32),
-assignment_group varchar(32),
-sys_id char(32),
-PRIMARY KEY (sys_id),
-KEY idx1 (dispatch_group),
-KEY idx2 (assignment_group)
-) ENGINE=MyISAM;
-CREATE TABLE t2 (
-ugroup varchar(32),
-user varchar(32),
-sys_id char(32),
-PRIMARY KEY (sys_id),
-KEY idx3 (ugroup),
-KEY idx4 (user)
-) ENGINE=MyISAM;
-CREATE TABLE t3 (
-type mediumtext,
-sys_id char(32),
-PRIMARY KEY (sys_id)
-) ENGINE=MyISAM;
-set optimizer_switch='materialization=off';
-explain SELECT t1.assignment_group
-FROM t1, t3
-WHERE t1.assignment_group = t3.sys_id AND
-t1.dispatch_group IN
-(SELECT t2.ugroup
-FROM t2, t3 t3_i
-WHERE t2.ugroup = t3_i.sys_id AND
-t3_i.type LIKE '59e22fb137032000158bbfc8bcbe5d52' AND
-t2.user = '86826bf03710200044e0bfc8bcbe5d79');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t2 ref idx3,idx4 idx4 35 const 2 Using index condition; Using where; Start temporary
-1 PRIMARY t3_i eq_ref PRIMARY PRIMARY 32 test.t2.ugroup 1 Using index condition; Using where
-1 PRIMARY t1 ref idx1,idx2 idx1 35 test.t3_i.sys_id 2 Using index condition; Using where; End temporary
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 32 test.t1.assignment_group 1 Using where; Using index
-SELECT t1.assignment_group
-FROM t1, t3
-WHERE t1.assignment_group = t3.sys_id AND
-t1.dispatch_group IN
-(SELECT t2.ugroup
-FROM t2, t3 t3_i
-WHERE t2.ugroup = t3_i.sys_id AND
-t3_i.type LIKE '59e22fb137032000158bbfc8bcbe5d52' AND
-t2.user = '86826bf03710200044e0bfc8bcbe5d79');
-assignment_group
-df50316637232000158bbfc8bcbe5d23
-e08fad2637232000158bbfc8bcbe5d39
-ec70316637232000158bbfc8bcbe5d60
-7b10fd2637232000158bbfc8bcbe5d30
-ebb4620037332000158bbfc8bcbe5d89
-set optimizer_switch='materialization=on';
-explain SELECT t1.assignment_group
-FROM t1, t3
-WHERE t1.assignment_group = t3.sys_id AND
-t1.dispatch_group IN
-(SELECT t2.ugroup
-FROM t2, t3 t3_i
-WHERE t2.ugroup = t3_i.sys_id AND
-t3_i.type LIKE '59e22fb137032000158bbfc8bcbe5d52' AND
-t2.user = '86826bf03710200044e0bfc8bcbe5d79');
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2
-1 PRIMARY t1 ref idx1,idx2 idx1 35 test.t2.ugroup 2 Using where
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 32 test.t1.assignment_group 1 Using where; Using index
-2 MATERIALIZED t2 ref idx3,idx4 idx4 35 const 2 Using index condition; Using where
-2 MATERIALIZED t3_i eq_ref PRIMARY PRIMARY 32 test.t2.ugroup 1 Using index condition; Using where
-SELECT t1.assignment_group
-FROM t1, t3
-WHERE t1.assignment_group = t3.sys_id AND
-t1.dispatch_group IN
-(SELECT t2.ugroup
-FROM t2, t3 t3_i
-WHERE t2.ugroup = t3_i.sys_id AND
-t3_i.type LIKE '59e22fb137032000158bbfc8bcbe5d52' AND
-t2.user = '86826bf03710200044e0bfc8bcbe5d79');
-assignment_group
-df50316637232000158bbfc8bcbe5d23
-e08fad2637232000158bbfc8bcbe5d39
-ec70316637232000158bbfc8bcbe5d60
-7b10fd2637232000158bbfc8bcbe5d30
-ebb4620037332000158bbfc8bcbe5d89
-DROP TABLE t1,t2,t3;
-set optimizer_switch=@save_optimizer_switch;
-# End of 5.5 tests
-#
-# MDEV-7220: Materialization strategy is not used for REPLACE ... SELECT
-#
-create table t0(a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (a int, b int, c int);
-insert into t1
-select A.a+B.a*10+C.a*100, A.a+B.a*10+C.a*100, A.a+B.a*10+C.a*100
-from t0 A, t0 B, t0 C;
-create table t2 (a int, b int, c int);
-insert into t2 select A.a, A.a, A.a from t1 A;
-insert into t2 select * from t2;
-insert into t2 select * from t2;
-create table t3 as select * from t2 limit 1;
-# The testcase only makes sense if the following uses Materialization:
-explain
-select * from t1 where (a,b) in (select max(a),b from t2 group by b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 1000 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 8 test.t1.a,test.t1.b 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 4000 Using temporary
-flush status;
-replace into t3
-select * from t1 where (a,b) in (select max(a),b from t2 group by b);
-# Sequential reads:
-# 1K is read from t1
-# 4K is read from t2
-# 1K groups is read from the tmp. table
-#
-# Lookups:
-# 4K lookups in group by table
-# 1K lookups in temp.table
-#
-# Writes:
-# 2x 1K writes to temporary tables (grouping table and subquery materialization table
-#
-# The point is that neither counter should be in the millions (this
-# will happen if Materialization is not used
-show status where Variable_name like 'Handler_read%' or Variable_name like 'Handler_%write%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 5000
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 6003
-Handler_tmp_write 2000
-Handler_write 1000
-drop table t0,t1,t2,t3;
-#
-# MDEV-7971: Assertion `name != __null' failed in ACL_internal_schema_registry::lookup
-# on 2nd execution os PS with multi-table update
-#
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (f2 INT);
-INSERT INTO t2 VALUES (3),(4);
-CREATE TABLE t3 (f3 INT);
-INSERT INTO t3 VALUES (5),(6);
-PREPARE stmt FROM '
- UPDATE t1, t2
- SET f1 = 5
- WHERE 8 IN ( SELECT MIN(f3) FROM t3 )
-';
-EXECUTE stmt;
-EXECUTE stmt;
-DROP TABLE t1,t2,t3;
-#
-# MDEV-10389: Query returns different results on a debug vs non-debug build of the same revision
-#
-CREATE TABLE t1 (i1 INT, i2 INT NOT NULL);
-INSERT INTO t1 VALUES (1,4),(2,6);
-SELECT * FROM t1 AS alias1
-WHERE alias1.i1 IN (
-SELECT i1 FROM t1 WHERE alias1.i2 IN ( SELECT i2 FROM t1 HAVING i2 <> 7 )
-);
-i1 i2
-1 4
-2 6
-DROP TABLE t1;
diff --git a/mysql-test/r/subselect_sj_nonmerged.result b/mysql-test/r/subselect_sj_nonmerged.result
deleted file mode 100644
index c7e04225ffe..00000000000
--- a/mysql-test/r/subselect_sj_nonmerged.result
+++ /dev/null
@@ -1,122 +0,0 @@
-drop table if exists t0, t1, t2, t3, t4;
-set @save_optimizer_switch=@@optimizer_switch;
-set optimizer_switch='semijoin=on,materialization=on';
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 as select * from t0;
-# The following should use full scan on <subquery2> and it must scan 1 row:
-explain select * from t0 where a in (select max(a) from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 1
-1 PRIMARY t0 ALL NULL NULL NULL NULL 10 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 10
-select * from t0 where a in (select max(a) from t1);
-a
-9
-insert into t1 values (11);
-select * from t0 where a in (select max(a) from t1);
-a
-delete from t1 where a=11;
-insert into t0 values (NULL);
-select * from t0 where a in (select max(a) from t1);
-a
-9
-delete from t0 where a is NULL;
-delete from t1;
-select * from t0 where a in (select max(a) from t1);
-a
-insert into t0 values (NULL);
-select * from t0 where a in (select max(a) from t1);
-a
-delete from t0 where a is NULL;
-drop table t1;
-create table t1 (a int, b int);
-insert into t1 select a,a from t0;
-create table t2 as select * from t1 where a<5;
-create table t3 as select (A.a + 10*B.a) as a from t0 A, t0 B;
-alter table t3 add primary key(a);
-# The following should have do a full scan on <subquery2> and scan 5 rows
-# (despite that subquery's join output estimate is 50 rows)
-explain select * from t3 where a in (select max(t2.a) from t1, t2 group by t2.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 5
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 8 <subquery2>.max(t2.a) 1 Using where; Using index
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 Using temporary
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-# Compare to this which really will have 50 record combinations:
-explain select * from t3 where a in (select max(t2.a) from t1, t2 group by t2.b, t1.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 50
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 8 <subquery2>.max(t2.a) 1 Using where; Using index
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 Using temporary
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-# Outer joins also work:
-explain select * from t3
-where a in (select max(t2.a) from t1 left join t2 on t1.a=t2.a group by t2.b, t1.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 50
-1 PRIMARY t3 eq_ref PRIMARY PRIMARY 8 <subquery2>.max(t2.a) 1 Using where; Using index
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 10 Using temporary
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 Using where
-SET optimizer_switch=@save_optimizer_switch;
-create table t4 (a int, b int, filler char(20), unique key(a,b));
-insert into t4 select A.a + 10*B.a, A.a + 10*B.a, 'filler' from t0 A, t0 B;
-explain select * from t0, t4 where
-t4.b=t0.a and t4.a in (select max(t2.a) from t1, t2 group by t2.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t0 ALL NULL NULL NULL NULL 10
-1 PRIMARY t4 ALL a NULL NULL NULL 100 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 test.t4.a 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 Using temporary
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-insert into t4 select 100 + (B.a *100 + A.a), 100 + (B.a*100 + A.a), 'filler' from t4 A, t0 B;
-explain select * from t4 where
-t4.a in (select max(t2.a) from t1, t2 group by t2.b) and
-t4.b in (select max(t2.a) from t1, t2 group by t2.b);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery3> ALL distinct_key NULL NULL NULL 5
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 5 Using join buffer (flat, BNL join)
-1 PRIMARY t4 ref a a 10 <subquery2>.max(t2.a),<subquery3>.max(t2.a) 12
-3 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 Using temporary
-3 MATERIALIZED t1 ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 5 Using temporary
-2 MATERIALIZED t1 ALL NULL NULL NULL NULL 10 Using join buffer (flat, BNL join)
-drop table t1,t2,t3,t4;
-drop table t0;
-#
-# BUG#780359: Crash with get_fanout_with_deps in maria-5.3-mwl90
-#
-CREATE TABLE t1 (f1 int);
-INSERT INTO t1 VALUES (2),(2);
-CREATE TABLE t2 (f3 int);
-INSERT INTO t2 VALUES (2),(2);
-SELECT *
-FROM t1
-WHERE ( f1 ) IN (
-SELECT t2.f3
-FROM t2
-WHERE t2.f3 = 97
-AND t2.f3 = 50
-GROUP BY 1
-);
-f1
-DROP TABLE t1, t2;
-#
-# BUG#727183: WL#90 does not trigger with non-comma joins
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int, key(a));
-insert into t1 select A.a + 10*B.a + 100*C.a from t0 A, t0 B, t0 C;
-# The following must use non-merged SJ-Materialization:
-explain select * from t1 X join t0 Y on X.a < Y.a where X.a in (select max(a) from t0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 1
-1 PRIMARY X ref a a 5 <subquery2>.max(a) 1 Using index
-1 PRIMARY Y ALL NULL NULL NULL NULL 10 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED t0 ALL NULL NULL NULL NULL 10
-drop table t0, t1;
-set optimizer_switch=@save_optimizer_switch;
diff --git a/mysql-test/r/sum_distinct-big.result b/mysql-test/r/sum_distinct-big.result
deleted file mode 100644
index 2d350826ac8..00000000000
--- a/mysql-test/r/sum_distinct-big.result
+++ /dev/null
@@ -1,180 +0,0 @@
-DROP TABLE IF EXISTS t1, t2;
-set @save_tmp_table_size=@@tmp_table_size;
-set @save_max_heap_table_size=@@max_heap_table_size;
-set @save_storage_engine=@@storage_engine;
-set storage_engine=MYISAM;
-CREATE TABLE t1 (id INTEGER);
-CREATE TABLE t2 (id INTEGER);
-INSERT INTO t1 (id) VALUES (1), (1), (1),(1);
-INSERT INTO t1 (id) SELECT id FROM t1;
-/* 8 */
-INSERT INTO t1 (id) SELECT id FROM t1;
-/* 12 */
-INSERT INTO t1 (id) SELECT id FROM t1;
-/* 16 */
-INSERT INTO t1 (id) SELECT id FROM t1;
-/* 20 */
-INSERT INTO t1 (id) SELECT id FROM t1;
-/* 24 */
-INSERT INTO t1 SELECT id+1 FROM t1;
-INSERT INTO t1 SELECT id+2 FROM t1;
-INSERT INTO t1 SELECT id+4 FROM t1;
-INSERT INTO t1 SELECT id+8 FROM t1;
-INSERT INTO t1 SELECT id+16 FROM t1;
-INSERT INTO t1 SELECT id+32 FROM t1;
-INSERT INTO t1 SELECT id+64 FROM t1;
-INSERT INTO t1 SELECT id+128 FROM t1;
-INSERT INTO t1 SELECT id+256 FROM t1;
-INSERT INTO t1 SELECT id+512 FROM t1;
-SELECT AVG(DISTINCT id) FROM t1 GROUP BY id % 13;
-AVG(DISTINCT id)
-513.5000
-508.0000
-509.0000
-510.0000
-511.0000
-512.0000
-513.0000
-514.0000
-515.0000
-516.0000
-517.0000
-511.5000
-512.5000
-SELECT SUM(DISTINCT id)/COUNT(DISTINCT id) FROM t1 GROUP BY id % 13;
-SUM(DISTINCT id)/COUNT(DISTINCT id)
-513.5000
-508.0000
-509.0000
-510.0000
-511.0000
-512.0000
-513.0000
-514.0000
-515.0000
-516.0000
-517.0000
-511.5000
-512.5000
-INSERT INTO t1 SELECT id+1024 FROM t1;
-INSERT INTO t1 SELECT id+2048 FROM t1;
-INSERT INTO t1 SELECT id+4096 FROM t1;
-INSERT INTO t1 SELECT id+8192 FROM t1;
-INSERT INTO t2 SELECT id FROM t1 ORDER BY id*rand();
-SELECT SUM(DISTINCT id) sm FROM t1;
-sm
-134225920
-SELECT SUM(DISTINCT id) sm FROM t2;
-sm
-134225920
-SELECT SUM(DISTINCT id) sm FROM t1 group by id % 13;
-sm
-10327590
-10328851
-10330112
-10331373
-10332634
-10317510
-10318770
-10320030
-10321290
-10322550
-10323810
-10325070
-10326330
-SET max_heap_table_size=16384;
-SHOW variables LIKE 'max_heap_table_size';
-Variable_name Value
-max_heap_table_size 16384
-SELECT SUM(DISTINCT id) sm FROM t1;
-sm
-134225920
-SELECT SUM(DISTINCT id) sm FROM t2;
-sm
-134225920
-SELECT SUM(DISTINCT id) sm FROM t1 GROUP BY id % 13;
-sm
-10327590
-10328851
-10330112
-10331373
-10332634
-10317510
-10318770
-10320030
-10321290
-10322550
-10323810
-10325070
-10326330
-#
-# Bug mdev-4063: SUM(DISTINCT...) with small'max_heap_table_size
-# (bug #56927)
-#
-SET max_heap_table_size=default;
-INSERT INTO t1 SELECT id+16384 FROM t1;
-DELETE FROM t2;
-INSERT INTO t2 SELECT id FROM t1 ORDER BY id*rand();
-SELECT SUM(DISTINCT id) sm FROM t2;
-sm
-536887296
-SET max_heap_table_size=16384;
-SELECT SUM(DISTINCT id) sm FROM t2;
-sm
-536887296
-DROP TABLE t1;
-DROP TABLE t2;
-SET @@tmp_table_size=@save_tmp_table_size;
-SET @@max_heap_table_size=@save_max_heap_table_size;
-#
-# Bug mdev-4311: COUNT(DISTINCT...) requiring a file for Unique
-# (bug #68749)
-#
-set @save_storage_engine=@@storage_engine;
-set storage_engine=INNODB;
-CREATE TABLE t1 (id INTEGER) ENGINE=InnoDB;
-CREATE TABLE t2 (id INTEGER) ENGINE=InnoDB;
-INSERT INTO t1 (id) VALUES (1), (1), (1),(1);
-INSERT INTO t1 (id) SELECT id FROM t1;
-INSERT INTO t1 (id) SELECT id FROM t1;
-INSERT INTO t1 (id) SELECT id FROM t1;
-INSERT INTO t1 (id) SELECT id FROM t1;
-INSERT INTO t1 (id) SELECT id FROM t1;
-INSERT INTO t1 SELECT id+1 FROM t1;
-INSERT INTO t1 SELECT id+2 FROM t1;
-INSERT INTO t1 SELECT id+4 FROM t1;
-INSERT INTO t1 SELECT id+8 FROM t1;
-INSERT INTO t1 SELECT id+16 FROM t1;
-INSERT INTO t1 SELECT id+32 FROM t1;
-INSERT INTO t1 SELECT id+64 FROM t1;
-INSERT INTO t1 SELECT id+128 FROM t1;
-INSERT INTO t1 SELECT id+256 FROM t1;
-INSERT INTO t1 SELECT id+512 FROM t1;
-INSERT INTO t1 SELECT id+1024 FROM t1;
-INSERT INTO t1 SELECT id+2048 FROM t1;
-INSERT INTO t1 SELECT id+4096 FROM t1;
-INSERT INTO t1 SELECT id+8192 FROM t1;
-INSERT INTO t2 SELECT id FROM t1 ORDER BY id*rand();
-INSERT INTO t2 VALUE(NULL);
-# With default tmp_table_size / max_heap_table_size
-SELECT SQL_NO_CACHE count(DISTINCT id) sm FROM t2;
-sm
-16384
-set @@tmp_table_size=1024*256;
-# With reduced tmp_table_size
-SELECT SQL_NO_CACHE count(DISTINCT id) sm FROM t2;
-sm
-16384
-set @@tmp_table_size=@save_tmp_table_size;
-SET @@max_heap_table_size=1024*256;
-# With reduced max_heap_table_size
-SELECT SQL_NO_CACHE count(DISTINCT id) sm FROM t2;
-sm
-16384
-SET @@max_heap_table_size=@save_max_heap_table_size;
-# Back to default tmp_table_size / max_heap_table_size
-SELECT SQL_NO_CACHE count(DISTINCT id) sm FROM t2;
-sm
-16384
-DROP TABLE t1,t2;
-set storage_engine=@save_storage_engine;
diff --git a/mysql-test/r/sum_distinct.result b/mysql-test/r/sum_distinct.result
deleted file mode 100644
index 2746f5a09f4..00000000000
--- a/mysql-test/r/sum_distinct.result
+++ /dev/null
@@ -1,109 +0,0 @@
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (
-id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
-gender CHAR(1),
-name VARCHAR(20)
-);
-SELECT SUM(DISTINCT LENGTH(name)) s1 FROM t1;
-s1
-NULL
-INSERT INTO t1 (gender, name) VALUES (NULL, NULL);
-INSERT INTO t1 (gender, name) VALUES (NULL, NULL);
-INSERT INTO t1 (gender, name) VALUES (NULL, NULL);
-SELECT SUM(DISTINCT LENGTH(name)) s1 FROM t1;
-s1
-NULL
-INSERT INTO t1 (gender, name) VALUES ('F', 'Helen'), ('F', 'Anastasia'),
-('F', 'Katherine'), ('F', 'Margo'), ('F', 'Magdalene'), ('F', 'Mary');
-CREATE TABLE t2 SELECT name FROM t1;
-SELECT (SELECT SUM(DISTINCT LENGTH(name)) FROM t1) FROM t2;
-(SELECT SUM(DISTINCT LENGTH(name)) FROM t1)
-18
-18
-18
-18
-18
-18
-18
-18
-18
-DROP TABLE t2;
-INSERT INTO t1 (gender, name) VALUES ('F', 'Eva'), ('F', 'Sofia'),
-('F', 'Sara'), ('F', 'Golda'), ('F', 'Toba'), ('F', 'Victory'),
-('F', 'Faina'), ('F', 'Miriam'), ('F', 'Beki'), ('F', 'America'),
-('F', 'Susan'), ('F', 'Glory'), ('F', 'Priscilla'), ('F', 'Rosmary'),
-('F', 'Rose'), ('F', 'Margareth'), ('F', 'Elizabeth'), ('F', 'Meredith'),
-('F', 'Julie'), ('F', 'Xenia'), ('F', 'Zena'), ('F', 'Olga'),
-('F', 'Brunhilda'), ('F', 'Nataly'), ('F', 'Lara'), ('F', 'Svetlana'),
-('F', 'Grethem'), ('F', 'Irene');
-SELECT
-SUM(DISTINCT LENGTH(name)) s1,
-SUM(DISTINCT SUBSTRING(NAME, 1, 3)) s2,
-SUM(DISTINCT LENGTH(SUBSTRING(name, 1, 4))) s3
-FROM t1;
-s1 s2 s3
-42 0 7
-SELECT
-SUM(DISTINCT LENGTH(g1.name)) s1,
-SUM(DISTINCT SUBSTRING(g2.name, 1, 3)) s2,
-SUM(DISTINCT LENGTH(SUBSTRING(g3.name, 1, 4))) s3
-FROM t1 g1, t1 g2, t1 g3;
-s1 s2 s3
-42 0 7
-SELECT
-SUM(DISTINCT LENGTH(g1.name)) s1,
-SUM(DISTINCT SUBSTRING(g2.name, 1, 3)) s2,
-SUM(DISTINCT LENGTH(SUBSTRING(g3.name, 1, 4))) s3
-FROM t1 g1, t1 g2, t1 g3 GROUP BY LENGTH(SUBSTRING(g3.name, 5, 10));
-s1 s2 s3
-42 0 NULL
-42 0 7
-42 0 4
-42 0 4
-42 0 4
-42 0 4
-42 0 4
-SELECT SQL_BUFFER_RESULT
-SUM(DISTINCT LENGTH(name)) s1,
-SUM(DISTINCT SUBSTRING(NAME, 1, 3)) s2,
-SUM(DISTINCT LENGTH(SUBSTRING(name, 1, 4))) s3
-FROM t1;
-s1 s2 s3
-42 0 7
-SELECT SQL_BUFFER_RESULT
-SUM(DISTINCT LENGTH(g1.name)) s1,
-SUM(DISTINCT SUBSTRING(g2.name, 1, 3)) s2,
-SUM(DISTINCT LENGTH(SUBSTRING(g3.name, 1, 4))) s3
-FROM t1 g1, t1 g2, t1 g3 GROUP BY LENGTH(SUBSTRING(g3.name, 5, 10));
-s1 s2 s3
-42 0 NULL
-42 0 7
-42 0 4
-42 0 4
-42 0 4
-42 0 4
-42 0 4
-SET @l=1;
-UPDATE t1 SET name=CONCAT(name, @l:=@l+1);
-SELECT SUM(DISTINCT RIGHT(name, 1)) FROM t1;
-SUM(DISTINCT RIGHT(name, 1))
-45
-SELECT SUM(DISTINCT id) FROM t1;
-SUM(DISTINCT id)
-703
-SELECT SUM(DISTINCT id % 11) FROM t1;
-SUM(DISTINCT id % 11)
-55
-DROP TABLE t1;
-#
-# Bug #777654: empty subselect in FROM clause returning
-# SUM(DISTINCT) over non-nullable field
-#
-CREATE TABLE t1 (a int NOT NULL) ;
-SELECT SUM(DISTINCT a) FROM t1;
-SUM(DISTINCT a)
-NULL
-SELECT * FROM (SELECT SUM(DISTINCT a) FROM t1) AS t;
-SUM(DISTINCT a)
-NULL
-DROP TABLE t1;
diff --git a/mysql-test/r/symlink-aria-11902.result b/mysql-test/r/symlink-aria-11902.result
deleted file mode 100644
index 4d8f179dac9..00000000000
--- a/mysql-test/r/symlink-aria-11902.result
+++ /dev/null
@@ -1,43 +0,0 @@
-set default_storage_engine=Aria;
-call mtr.add_suppression("File.*t1.* not found");
-create table mysql.t1 (a int, b char(16), index(a));
-insert mysql.t1 values (100, 'test'),(101,'test');
-create table t1 (a int, b char(16), index(a))
-data directory="MYSQLTEST_VARDIR/tmp/foo";
-insert t1 values (200, 'some'),(201,'some');
-select * from t1;
-a b
-200 some
-201 some
-flush tables;
-set debug_sync='mi_open_datafile SIGNAL ok WAIT_FOR go';
-select * from t1;
-connect con1, localhost, root;
-set debug_sync='now WAIT_FOR ok';
-set debug_sync='now SIGNAL go';
-connection default;
-ERROR HY000: File 'MYSQLTEST_VARDIR/tmp/foo/t1.MAD' not found (Errcode: 20 <errmsg>)
-flush tables;
-drop table if exists t1;
-create table t1 (a int, b char(16), index (a))
-index directory="MYSQLTEST_VARDIR/tmp/foo";
-insert t1 values (200, 'some'),(201,'some');
-explain select a from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 2 Using index
-select a from t1;
-a
-200
-201
-flush tables;
-set debug_sync='mi_open_kfile SIGNAL waiting WAIT_FOR run';
-select a from t1;
-connection con1;
-set debug_sync='now WAIT_FOR waiting';
-set debug_sync='now SIGNAL run';
-connection default;
-ERROR HY000: Can't find file: './test/t1.MAI' (errno: 20 <errmsg>)
-flush tables;
-drop table if exists t1;
-drop table mysql.t1;
-set debug_sync='RESET';
diff --git a/mysql-test/r/symlink-myisam-11902.result b/mysql-test/r/symlink-myisam-11902.result
deleted file mode 100644
index bc9a0316bab..00000000000
--- a/mysql-test/r/symlink-myisam-11902.result
+++ /dev/null
@@ -1,42 +0,0 @@
-call mtr.add_suppression("File.*t1.* not found");
-create table mysql.t1 (a int, b char(16), index(a));
-insert mysql.t1 values (100, 'test'),(101,'test');
-create table t1 (a int, b char(16), index(a))
-data directory="MYSQLTEST_VARDIR/tmp/foo";
-insert t1 values (200, 'some'),(201,'some');
-select * from t1;
-a b
-200 some
-201 some
-flush tables;
-set debug_sync='mi_open_datafile SIGNAL ok WAIT_FOR go';
-select * from t1;
-connect con1, localhost, root;
-set debug_sync='now WAIT_FOR ok';
-set debug_sync='now SIGNAL go';
-connection default;
-ERROR HY000: File 'MYSQLTEST_VARDIR/tmp/foo/t1.MYD' not found (Errcode: 20 <errmsg>)
-flush tables;
-drop table if exists t1;
-create table t1 (a int, b char(16), index (a))
-index directory="MYSQLTEST_VARDIR/tmp/foo";
-insert t1 values (200, 'some'),(201,'some');
-explain select a from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 2 Using index
-select a from t1;
-a
-200
-201
-flush tables;
-set debug_sync='mi_open_kfile SIGNAL waiting WAIT_FOR run';
-select a from t1;
-connection con1;
-set debug_sync='now WAIT_FOR waiting';
-set debug_sync='now SIGNAL run';
-connection default;
-ERROR HY000: Can't find file: './test/t1.MYI' (errno: 20 <errmsg>)
-flush tables;
-drop table if exists t1;
-drop table mysql.t1;
-set debug_sync='RESET';
diff --git a/mysql-test/r/symlink.result b/mysql-test/r/symlink.result
deleted file mode 100644
index e8063ee736c..00000000000
--- a/mysql-test/r/symlink.result
+++ /dev/null
@@ -1,251 +0,0 @@
-drop table if exists t1,t2,t7,t8,t9;
-drop database if exists mysqltest;
-create table t1 (a int not null auto_increment, b char(16) not null, primary key (a));
-create table t2 (a int not null auto_increment, b char(16) not null, primary key (a));
-insert into t1 (b) values ("test"),("test1"),("test2"),("test3");
-insert into t2 (b) select b from t1;
-insert into t1 (b) select b from t2;
-insert into t2 (b) select b from t1;
-insert into t1 (b) select b from t2;
-insert into t2 (b) select b from t1;
-insert into t1 (b) select b from t2;
-insert into t2 (b) select b from t1;
-insert into t1 (b) select b from t2;
-insert into t2 (b) select b from t1;
-insert into t1 (b) select b from t2;
-insert into t2 (b) select b from t1;
-insert into t1 (b) select b from t2;
-insert into t2 (b) select b from t1;
-insert into t1 (b) select b from t2;
-insert into t2 (b) select b from t1;
-insert into t1 (b) select b from t2;
-insert into t2 (b) select b from t1;
-insert into t1 (b) select b from t2;
-drop table t2;
-create table t9 (a int not null auto_increment, b char(16) not null, primary key (a))
-engine=myisam data directory="MYSQLTEST_VARDIR/tmp" index directory="MYSQLTEST_VARDIR/run";
-insert into t9 select * from t1;
-check table t9;
-Table Op Msg_type Msg_text
-test.t9 check status OK
-optimize table t9;
-Table Op Msg_type Msg_text
-test.t9 optimize status OK
-repair table t9;
-Table Op Msg_type Msg_text
-test.t9 repair status OK
-alter table t9 add column c int not null;
-show create table t9;
-Table Create Table
-t9 CREATE TABLE `t9` (
- `a` int(11) NOT NULL AUTO_INCREMENT,
- `b` char(16) NOT NULL,
- `c` int(11) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM AUTO_INCREMENT=16725 DEFAULT CHARSET=latin1 DATA DIRECTORY='MYSQLTEST_VARDIR/tmp/' INDEX DIRECTORY='MYSQLTEST_VARDIR/run/'
-alter table t9 rename t8, add column d int not null;
-alter table t8 rename t7;
-rename table t7 to t9;
-drop table t1;
-SHOW CREATE TABLE t9;
-Table Create Table
-t9 CREATE TABLE `t9` (
- `a` int(11) NOT NULL AUTO_INCREMENT,
- `b` char(16) NOT NULL,
- `c` int(11) NOT NULL,
- `d` int(11) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM AUTO_INCREMENT=16725 DEFAULT CHARSET=latin1 DATA DIRECTORY='MYSQLTEST_VARDIR/tmp/' INDEX DIRECTORY='MYSQLTEST_VARDIR/run/'
-create database mysqltest;
-create table mysqltest.t9 (a int not null auto_increment, b char(16) not null, primary key (a))
-engine=myisam index directory="/this-dir-does-not-exist";
-Got one of the listed errors
-create table mysqltest.t9 (a int not null auto_increment, b char(16) not null, primary key (a))
-engine=myisam index directory="not-hard-path";
-ERROR 42000: Incorrect table name 'not-hard-path'
-create table mysqltest.t9 (a int not null auto_increment, b char(16) not null, primary key (a))
-engine=myisam index directory="MYSQLTEST_VARDIR/run";
-Got one of the listed errors
-create table mysqltest.t9 (a int not null auto_increment, b char(16) not null, primary key (a))
-engine=myisam data directory="MYSQLTEST_VARDIR/tmp";
-Got one of the listed errors
-alter table t9 rename mysqltest.t9;
-select count(*) from mysqltest.t9;
-count(*)
-16724
-show create table mysqltest.t9;
-Table Create Table
-t9 CREATE TABLE `t9` (
- `a` int(11) NOT NULL AUTO_INCREMENT,
- `b` char(16) NOT NULL,
- `c` int(11) NOT NULL,
- `d` int(11) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM AUTO_INCREMENT=16725 DEFAULT CHARSET=latin1 DATA DIRECTORY='MYSQLTEST_VARDIR/tmp/' INDEX DIRECTORY='MYSQLTEST_VARDIR/run/'
-drop database mysqltest;
-create table t1 (a int not null) engine=myisam;
-alter table t1 data directory="MYSQLTEST_VARDIR/tmp";
-Warnings:
-Warning 1618 <DATA DIRECTORY> option ignored
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 add b int;
-alter table t1 data directory="MYSQLTEST_VARDIR/log";
-Warnings:
-Warning 1618 <DATA DIRECTORY> option ignored
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 index directory="MYSQLTEST_VARDIR/log";
-Warnings:
-Warning 1618 <INDEX DIRECTORY> option ignored
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1(a INT)
-DATA DIRECTORY='TEST_DIR/tmp'
-INDEX DIRECTORY='TEST_DIR/tmp';
-Got one of the listed errors
-CREATE TABLE t2(a INT)
-DATA DIRECTORY='TEST_DIR/tmp'
-INDEX DIRECTORY='TEST_DIR/tmp';
-RENAME TABLE t2 TO t1;
-ERROR HY000: Can't create/write to file 'TEST_DIR/tmp/t1.MYI' (Errcode: 17 "File exists")
-DROP TABLE t2;
-connect session1,localhost,root,,;
-connect session2,localhost,root,,;
-connection session1;
-create temporary table t1 (a int) engine=myisam data directory="MYSQLTEST_VARDIR/log" select 9 a;
-show create table t1;
-Table Create Table
-t1 CREATE TEMPORARY TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 DATA DIRECTORY='MYSQLTEST_VARDIR/log/'
-connection session2;
-create temporary table t1 (a int) engine=myisam data directory="MYSQLTEST_VARDIR/log" select 99 a;
-show create table t1;
-Table Create Table
-t1 CREATE TEMPORARY TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 DATA DIRECTORY='MYSQLTEST_VARDIR/log/'
-connection default;
-create table t1 (a int) engine=myisam select 42 a;
-connection session1;
-select * from t1;
-a
-9
-disconnect session1;
-connection session2;
-select * from t1;
-a
-99
-disconnect session2;
-connection default;
-select * from t1;
-a
-42
-drop table t1;
-End of 4.1 tests
-SET SESSION keep_files_on_create = TRUE;
-CREATE TABLE t1 (a INT) ENGINE MYISAM;
-Got one of the listed errors
-SET SESSION keep_files_on_create = FALSE;
-CREATE TABLE t1 (a INT) ENGINE MYISAM;
-DROP TABLE t1;
-End of 5.0 tests
-CREATE TABLE t1(a INT)
-INDEX DIRECTORY='MYSQLD_DATADIR/mysql';
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT)
-DATA DIRECTORY='MYSQLD_DATADIR/test';
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT)
-DATA DIRECTORY='MYSQLD_DATADIR/';
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT)
-INDEX DIRECTORY='MYSQLD_DATADIR';
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT)
-INDEX DIRECTORY='TEST_DIR/master-data_var';
-ERROR HY000: Can't create/write to file 'TEST_DIR/master-data_var/t1.MYI' (Errcode: 2 "No such file or directory")
-SET @OLD_SQL_MODE=@@SQL_MODE, @@SQL_MODE='NO_DIR_IN_CREATE';
-CREATE TABLE t1(a INT) DATA DIRECTORY='MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY='MYSQLTEST_VARDIR/tmp';
-Warnings:
-Warning 1618 <DATA DIRECTORY> option ignored
-Warning 1618 <INDEX DIRECTORY> option ignored
-DROP TABLE t1;
-SET @@SQL_MODE=@OLD_SQL_MODE;
-#
-# BUG#40980 - Drop table can remove another MyISAM table's
-# data and index files
-#
-CREATE TABLE user(a INT) DATA DIRECTORY='MYSQL_TMP_DIR/mysql'
- INDEX DIRECTORY='MYSQL_TMP_DIR/mysql';
-FLUSH TABLE user;
-# Symlinking mysql database to tmpdir
-FLUSH TABLE mysql.user;
-DROP TABLE user;
-FLUSH TABLE mysql.user;
-SELECT * FROM mysql.user;
-End of 5.1 tests
-#
-# Test for bug #11759990 - "52354: 'CREATE TABLE .. LIKE ... '
-# STATEMENTS FAIL".
-#
-drop table if exists t1, t2;
-create table t1 (a int primary key) engine=myisam
-data directory="MYSQLTEST_VARDIR/tmp"
- index directory="MYSQLTEST_VARDIR/run";
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 DATA DIRECTORY='MYSQLTEST_VARDIR/tmp/' INDEX DIRECTORY='MYSQLTEST_VARDIR/run/'
-select create_options from information_schema.tables where table_name='t1';
-create_options
-DATA DIRECTORY='MYSQLTEST_VARDIR/tmp/' INDEX DIRECTORY='MYSQLTEST_VARDIR/run/'
-# CREATE TABLE LIKE statement on table with INDEX/DATA DIRECTORY
-# options should not fail. Per documentation newly created table
-# should not inherit value of these options from the original table.
-create table t2 like t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) NOT NULL,
- PRIMARY KEY (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop tables t1, t2;
-#
-# Test for bug #25514146 DB_NAME IS IGNORED WHEN CREATING TABLE
-# WITH DATA DIRECTORY
-#
-# Make sure we have no current database
-CREATE DATABASE x;
-USE x;
-DROP DATABASE x;
-CREATE TABLE test.t1(id INT(11)) ENGINE MYISAM
-DATA DIRECTORY "MYSQLTEST_VARDIR/tmp";
-DROP TABLE test.t1;
-use test;
-create table t1(c1 int, c2 int, c3 varchar(100)) engine=MyISAM data directory='MYSQL_TMP_DIR' index directory = 'MYSQL_TMP_DIR';
-insert t1 values (1,2,3), (2,3,4), (3,4,5), (4,5,6), (5,6,7), (6,7,8), (7,8,9);
-alter online table t1 delay_key_write=1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(11) DEFAULT NULL,
- `c2` int(11) DEFAULT NULL,
- `c3` varchar(100) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 DELAY_KEY_WRITE=1 DATA DIRECTORY='MYSQL_TMP_DIR/' INDEX DIRECTORY='MYSQL_TMP_DIR/'
-drop table t1;
diff --git a/mysql-test/r/synchronization.result b/mysql-test/r/synchronization.result
deleted file mode 100644
index ee8195820b0..00000000000
--- a/mysql-test/r/synchronization.result
+++ /dev/null
@@ -1,218 +0,0 @@
-DROP TABLE IF EXISTS t1,t2;
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-CREATE TABLE t1 (x1 INT);
-connection con1;
-ALTER TABLE t1 CHANGE x1 x2 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-ALTER TABLE t1 CHANGE x2 x1 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-connection con1;
-ALTER TABLE t1 CHANGE x1 x2 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-ALTER TABLE t1 CHANGE x2 x1 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-connection con1;
-ALTER TABLE t1 CHANGE x1 x2 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-ALTER TABLE t1 CHANGE x2 x1 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-connection con1;
-ALTER TABLE t1 CHANGE x1 x2 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-ALTER TABLE t1 CHANGE x2 x1 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-connection con1;
-ALTER TABLE t1 CHANGE x1 x2 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-ALTER TABLE t1 CHANGE x2 x1 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-connection con1;
-ALTER TABLE t1 CHANGE x1 x2 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-ALTER TABLE t1 CHANGE x2 x1 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-connection con1;
-ALTER TABLE t1 CHANGE x1 x2 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-ALTER TABLE t1 CHANGE x2 x1 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-connection con1;
-ALTER TABLE t1 CHANGE x1 x2 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-ALTER TABLE t1 CHANGE x2 x1 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-connection con1;
-ALTER TABLE t1 CHANGE x1 x2 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-ALTER TABLE t1 CHANGE x2 x1 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-connection con1;
-ALTER TABLE t1 CHANGE x1 x2 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-ALTER TABLE t1 CHANGE x2 x1 INT;
-connection con2;
-CREATE TABLE t2 LIKE t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `xx` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-connection con1;
-DROP TABLE t1;
-connection default;
-disconnect con1;
-disconnect con2;
diff --git a/mysql-test/r/sysdate_is_now.result b/mysql-test/r/sysdate_is_now.result
deleted file mode 100644
index 82861436ff6..00000000000
--- a/mysql-test/r/sysdate_is_now.result
+++ /dev/null
@@ -1,4 +0,0 @@
-set timestamp=1;
-SELECT sleep(1),NOW()-SYSDATE() as zero;
-sleep(1) zero
-0 0
diff --git a/mysql-test/r/system_mysql_db.result b/mysql-test/r/system_mysql_db.result
deleted file mode 100644
index 2abcfb92ffa..00000000000
--- a/mysql-test/r/system_mysql_db.result
+++ /dev/null
@@ -1,318 +0,0 @@
-show tables;
-Tables_in_db
-column_stats
-columns_priv
-db
-event
-func
-general_log
-gtid_slave_pos
-help_category
-help_keyword
-help_relation
-help_topic
-host
-index_stats
-innodb_index_stats
-innodb_table_stats
-plugin
-proc
-procs_priv
-proxies_priv
-roles_mapping
-servers
-slow_log
-table_stats
-tables_priv
-time_zone
-time_zone_leap_second
-time_zone_name
-time_zone_transition
-time_zone_transition_type
-transaction_registry
-user
-show create table db;
-Table Create Table
-db CREATE TABLE `db` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_history_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- PRIMARY KEY (`Host`,`Db`,`User`),
- KEY `User` (`User`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Database privileges'
-show create table host;
-Table Create Table
-host CREATE TABLE `host` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- PRIMARY KEY (`Host`,`Db`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Host privileges; Merged with database privileges'
-show create table user;
-Table Create Table
-user CREATE TABLE `user` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Password` char(41) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Reload_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Shutdown_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Process_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `File_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_db_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Super_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Repl_slave_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Repl_client_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_user_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tablespace_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_history_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `ssl_type` enum('','ANY','X509','SPECIFIED') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `ssl_cipher` blob NOT NULL,
- `x509_issuer` blob NOT NULL,
- `x509_subject` blob NOT NULL,
- `max_questions` int(11) unsigned NOT NULL DEFAULT 0,
- `max_updates` int(11) unsigned NOT NULL DEFAULT 0,
- `max_connections` int(11) unsigned NOT NULL DEFAULT 0,
- `max_user_connections` int(11) NOT NULL DEFAULT 0,
- `plugin` char(64) CHARACTER SET latin1 NOT NULL DEFAULT '',
- `authentication_string` text COLLATE utf8_bin NOT NULL,
- `password_expired` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `is_role` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `default_role` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `max_statement_time` decimal(12,6) NOT NULL DEFAULT 0.000000,
- PRIMARY KEY (`Host`,`User`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and global privileges'
-show create table func;
-Table Create Table
-func CREATE TABLE `func` (
- `name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `ret` tinyint(1) NOT NULL DEFAULT 0,
- `dl` char(128) COLLATE utf8_bin NOT NULL DEFAULT '',
- `type` enum('function','aggregate') CHARACTER SET utf8 NOT NULL,
- PRIMARY KEY (`name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User defined functions'
-show create table tables_priv;
-Table Create Table
-tables_priv CREATE TABLE `tables_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Grantor` char(141) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `Table_priv` set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger','Delete versioning rows') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
- PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`),
- KEY `Grantor` (`Grantor`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table privileges'
-show create table columns_priv;
-Table Create Table
-columns_priv CREATE TABLE `columns_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Column_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
- PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`,`Column_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column privileges'
-show create table procs_priv;
-Table Create Table
-procs_priv CREATE TABLE `procs_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Routine_name` char(64) CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Routine_type` enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY') COLLATE utf8_bin NOT NULL,
- `Grantor` char(141) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Proc_priv` set('Execute','Alter Routine','Grant') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- PRIMARY KEY (`Host`,`Db`,`User`,`Routine_name`,`Routine_type`),
- KEY `Grantor` (`Grantor`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Procedure privileges'
-show create table servers;
-Table Create Table
-servers CREATE TABLE `servers` (
- `Server_name` char(64) NOT NULL DEFAULT '',
- `Host` char(64) NOT NULL DEFAULT '',
- `Db` char(64) NOT NULL DEFAULT '',
- `Username` char(80) NOT NULL DEFAULT '',
- `Password` char(64) NOT NULL DEFAULT '',
- `Port` int(4) NOT NULL DEFAULT 0,
- `Socket` char(64) NOT NULL DEFAULT '',
- `Wrapper` char(64) NOT NULL DEFAULT '',
- `Owner` char(64) NOT NULL DEFAULT '',
- PRIMARY KEY (`Server_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table'
-show create table proc;
-Table Create Table
-proc CREATE TABLE `proc` (
- `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `name` char(64) NOT NULL DEFAULT '',
- `type` enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY') NOT NULL,
- `specific_name` char(64) NOT NULL DEFAULT '',
- `language` enum('SQL') NOT NULL DEFAULT 'SQL',
- `sql_data_access` enum('CONTAINS_SQL','NO_SQL','READS_SQL_DATA','MODIFIES_SQL_DATA') NOT NULL DEFAULT 'CONTAINS_SQL',
- `is_deterministic` enum('YES','NO') NOT NULL DEFAULT 'NO',
- `security_type` enum('INVOKER','DEFINER') NOT NULL DEFAULT 'DEFINER',
- `param_list` blob NOT NULL,
- `returns` longblob NOT NULL,
- `body` longblob NOT NULL,
- `definer` char(141) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH','EMPTY_STRING_IS_NULL','SIMULTANEOUS_ASSIGNMENT') NOT NULL DEFAULT '',
- `comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
- `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `body_utf8` longblob DEFAULT NULL,
- `aggregate` enum('NONE','GROUP') NOT NULL DEFAULT 'NONE',
- PRIMARY KEY (`db`,`name`,`type`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stored Procedures'
-show create table event;
-Table Create Table
-event CREATE TABLE `event` (
- `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `name` char(64) NOT NULL DEFAULT '',
- `body` longblob NOT NULL,
- `definer` char(141) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `execute_at` datetime DEFAULT NULL,
- `interval_value` int(11) DEFAULT NULL,
- `interval_field` enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') DEFAULT NULL,
- `created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `last_executed` datetime DEFAULT NULL,
- `starts` datetime DEFAULT NULL,
- `ends` datetime DEFAULT NULL,
- `status` enum('ENABLED','DISABLED','SLAVESIDE_DISABLED') NOT NULL DEFAULT 'ENABLED',
- `on_completion` enum('DROP','PRESERVE') NOT NULL DEFAULT 'DROP',
- `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH','EMPTY_STRING_IS_NULL','SIMULTANEOUS_ASSIGNMENT') NOT NULL DEFAULT '',
- `comment` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `originator` int(10) unsigned NOT NULL,
- `time_zone` char(64) CHARACTER SET latin1 NOT NULL DEFAULT 'SYSTEM',
- `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `body_utf8` longblob DEFAULT NULL,
- PRIMARY KEY (`db`,`name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Events'
-show create table general_log;
-Table Create Table
-general_log CREATE TABLE `general_log` (
- `event_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `command_type` varchar(64) NOT NULL,
- `argument` mediumtext NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log'
-show create table slow_log;
-Table Create Table
-slow_log CREATE TABLE `slow_log` (
- `start_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `query_time` time(6) NOT NULL,
- `lock_time` time(6) NOT NULL,
- `rows_sent` int(11) NOT NULL,
- `rows_examined` int(11) NOT NULL,
- `db` varchar(512) NOT NULL,
- `last_insert_id` int(11) NOT NULL,
- `insert_id` int(11) NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `sql_text` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `rows_affected` int(11) NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log'
-show create table table_stats;
-Table Create Table
-table_stats CREATE TABLE `table_stats` (
- `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `cardinality` bigint(21) unsigned DEFAULT NULL,
- PRIMARY KEY (`db_name`,`table_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Statistics on Tables'
-show create table column_stats;
-Table Create Table
-column_stats CREATE TABLE `column_stats` (
- `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `column_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `min_value` varbinary(255) DEFAULT NULL,
- `max_value` varbinary(255) DEFAULT NULL,
- `nulls_ratio` decimal(12,4) DEFAULT NULL,
- `avg_length` decimal(12,4) DEFAULT NULL,
- `avg_frequency` decimal(12,4) DEFAULT NULL,
- `hist_size` tinyint(3) unsigned DEFAULT NULL,
- `hist_type` enum('SINGLE_PREC_HB','DOUBLE_PREC_HB') COLLATE utf8_bin DEFAULT NULL,
- `histogram` varbinary(255) DEFAULT NULL,
- PRIMARY KEY (`db_name`,`table_name`,`column_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Statistics on Columns'
-show create table index_stats;
-Table Create Table
-index_stats CREATE TABLE `index_stats` (
- `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `index_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `prefix_arity` int(11) unsigned NOT NULL,
- `avg_frequency` decimal(12,4) DEFAULT NULL,
- PRIMARY KEY (`db_name`,`table_name`,`index_name`,`prefix_arity`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Statistics on Indexes'
-show tables;
-Tables_in_test
diff --git a/mysql-test/r/system_mysql_db_fix40123.result b/mysql-test/r/system_mysql_db_fix40123.result
deleted file mode 100644
index 2abcfb92ffa..00000000000
--- a/mysql-test/r/system_mysql_db_fix40123.result
+++ /dev/null
@@ -1,318 +0,0 @@
-show tables;
-Tables_in_db
-column_stats
-columns_priv
-db
-event
-func
-general_log
-gtid_slave_pos
-help_category
-help_keyword
-help_relation
-help_topic
-host
-index_stats
-innodb_index_stats
-innodb_table_stats
-plugin
-proc
-procs_priv
-proxies_priv
-roles_mapping
-servers
-slow_log
-table_stats
-tables_priv
-time_zone
-time_zone_leap_second
-time_zone_name
-time_zone_transition
-time_zone_transition_type
-transaction_registry
-user
-show create table db;
-Table Create Table
-db CREATE TABLE `db` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_history_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- PRIMARY KEY (`Host`,`Db`,`User`),
- KEY `User` (`User`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Database privileges'
-show create table host;
-Table Create Table
-host CREATE TABLE `host` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- PRIMARY KEY (`Host`,`Db`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Host privileges; Merged with database privileges'
-show create table user;
-Table Create Table
-user CREATE TABLE `user` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Password` char(41) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Reload_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Shutdown_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Process_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `File_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_db_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Super_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Repl_slave_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Repl_client_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_user_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tablespace_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_history_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `ssl_type` enum('','ANY','X509','SPECIFIED') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `ssl_cipher` blob NOT NULL,
- `x509_issuer` blob NOT NULL,
- `x509_subject` blob NOT NULL,
- `max_questions` int(11) unsigned NOT NULL DEFAULT 0,
- `max_updates` int(11) unsigned NOT NULL DEFAULT 0,
- `max_connections` int(11) unsigned NOT NULL DEFAULT 0,
- `max_user_connections` int(11) NOT NULL DEFAULT 0,
- `plugin` char(64) CHARACTER SET latin1 NOT NULL DEFAULT '',
- `authentication_string` text COLLATE utf8_bin NOT NULL,
- `password_expired` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `is_role` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `default_role` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `max_statement_time` decimal(12,6) NOT NULL DEFAULT 0.000000,
- PRIMARY KEY (`Host`,`User`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and global privileges'
-show create table func;
-Table Create Table
-func CREATE TABLE `func` (
- `name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `ret` tinyint(1) NOT NULL DEFAULT 0,
- `dl` char(128) COLLATE utf8_bin NOT NULL DEFAULT '',
- `type` enum('function','aggregate') CHARACTER SET utf8 NOT NULL,
- PRIMARY KEY (`name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User defined functions'
-show create table tables_priv;
-Table Create Table
-tables_priv CREATE TABLE `tables_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Grantor` char(141) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `Table_priv` set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger','Delete versioning rows') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
- PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`),
- KEY `Grantor` (`Grantor`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table privileges'
-show create table columns_priv;
-Table Create Table
-columns_priv CREATE TABLE `columns_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Column_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
- PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`,`Column_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column privileges'
-show create table procs_priv;
-Table Create Table
-procs_priv CREATE TABLE `procs_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Routine_name` char(64) CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Routine_type` enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY') COLLATE utf8_bin NOT NULL,
- `Grantor` char(141) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Proc_priv` set('Execute','Alter Routine','Grant') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- PRIMARY KEY (`Host`,`Db`,`User`,`Routine_name`,`Routine_type`),
- KEY `Grantor` (`Grantor`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Procedure privileges'
-show create table servers;
-Table Create Table
-servers CREATE TABLE `servers` (
- `Server_name` char(64) NOT NULL DEFAULT '',
- `Host` char(64) NOT NULL DEFAULT '',
- `Db` char(64) NOT NULL DEFAULT '',
- `Username` char(80) NOT NULL DEFAULT '',
- `Password` char(64) NOT NULL DEFAULT '',
- `Port` int(4) NOT NULL DEFAULT 0,
- `Socket` char(64) NOT NULL DEFAULT '',
- `Wrapper` char(64) NOT NULL DEFAULT '',
- `Owner` char(64) NOT NULL DEFAULT '',
- PRIMARY KEY (`Server_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table'
-show create table proc;
-Table Create Table
-proc CREATE TABLE `proc` (
- `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `name` char(64) NOT NULL DEFAULT '',
- `type` enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY') NOT NULL,
- `specific_name` char(64) NOT NULL DEFAULT '',
- `language` enum('SQL') NOT NULL DEFAULT 'SQL',
- `sql_data_access` enum('CONTAINS_SQL','NO_SQL','READS_SQL_DATA','MODIFIES_SQL_DATA') NOT NULL DEFAULT 'CONTAINS_SQL',
- `is_deterministic` enum('YES','NO') NOT NULL DEFAULT 'NO',
- `security_type` enum('INVOKER','DEFINER') NOT NULL DEFAULT 'DEFINER',
- `param_list` blob NOT NULL,
- `returns` longblob NOT NULL,
- `body` longblob NOT NULL,
- `definer` char(141) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH','EMPTY_STRING_IS_NULL','SIMULTANEOUS_ASSIGNMENT') NOT NULL DEFAULT '',
- `comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
- `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `body_utf8` longblob DEFAULT NULL,
- `aggregate` enum('NONE','GROUP') NOT NULL DEFAULT 'NONE',
- PRIMARY KEY (`db`,`name`,`type`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stored Procedures'
-show create table event;
-Table Create Table
-event CREATE TABLE `event` (
- `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `name` char(64) NOT NULL DEFAULT '',
- `body` longblob NOT NULL,
- `definer` char(141) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `execute_at` datetime DEFAULT NULL,
- `interval_value` int(11) DEFAULT NULL,
- `interval_field` enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') DEFAULT NULL,
- `created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `last_executed` datetime DEFAULT NULL,
- `starts` datetime DEFAULT NULL,
- `ends` datetime DEFAULT NULL,
- `status` enum('ENABLED','DISABLED','SLAVESIDE_DISABLED') NOT NULL DEFAULT 'ENABLED',
- `on_completion` enum('DROP','PRESERVE') NOT NULL DEFAULT 'DROP',
- `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH','EMPTY_STRING_IS_NULL','SIMULTANEOUS_ASSIGNMENT') NOT NULL DEFAULT '',
- `comment` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `originator` int(10) unsigned NOT NULL,
- `time_zone` char(64) CHARACTER SET latin1 NOT NULL DEFAULT 'SYSTEM',
- `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `body_utf8` longblob DEFAULT NULL,
- PRIMARY KEY (`db`,`name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Events'
-show create table general_log;
-Table Create Table
-general_log CREATE TABLE `general_log` (
- `event_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `command_type` varchar(64) NOT NULL,
- `argument` mediumtext NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log'
-show create table slow_log;
-Table Create Table
-slow_log CREATE TABLE `slow_log` (
- `start_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `query_time` time(6) NOT NULL,
- `lock_time` time(6) NOT NULL,
- `rows_sent` int(11) NOT NULL,
- `rows_examined` int(11) NOT NULL,
- `db` varchar(512) NOT NULL,
- `last_insert_id` int(11) NOT NULL,
- `insert_id` int(11) NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `sql_text` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `rows_affected` int(11) NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log'
-show create table table_stats;
-Table Create Table
-table_stats CREATE TABLE `table_stats` (
- `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `cardinality` bigint(21) unsigned DEFAULT NULL,
- PRIMARY KEY (`db_name`,`table_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Statistics on Tables'
-show create table column_stats;
-Table Create Table
-column_stats CREATE TABLE `column_stats` (
- `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `column_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `min_value` varbinary(255) DEFAULT NULL,
- `max_value` varbinary(255) DEFAULT NULL,
- `nulls_ratio` decimal(12,4) DEFAULT NULL,
- `avg_length` decimal(12,4) DEFAULT NULL,
- `avg_frequency` decimal(12,4) DEFAULT NULL,
- `hist_size` tinyint(3) unsigned DEFAULT NULL,
- `hist_type` enum('SINGLE_PREC_HB','DOUBLE_PREC_HB') COLLATE utf8_bin DEFAULT NULL,
- `histogram` varbinary(255) DEFAULT NULL,
- PRIMARY KEY (`db_name`,`table_name`,`column_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Statistics on Columns'
-show create table index_stats;
-Table Create Table
-index_stats CREATE TABLE `index_stats` (
- `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `index_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `prefix_arity` int(11) unsigned NOT NULL,
- `avg_frequency` decimal(12,4) DEFAULT NULL,
- PRIMARY KEY (`db_name`,`table_name`,`index_name`,`prefix_arity`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Statistics on Indexes'
-show tables;
-Tables_in_test
diff --git a/mysql-test/r/system_mysql_db_fix50030.result b/mysql-test/r/system_mysql_db_fix50030.result
deleted file mode 100644
index 81b6da4c16d..00000000000
--- a/mysql-test/r/system_mysql_db_fix50030.result
+++ /dev/null
@@ -1,318 +0,0 @@
-show tables;
-Tables_in_db
-column_stats
-columns_priv
-db
-event
-func
-general_log
-gtid_slave_pos
-help_category
-help_keyword
-help_relation
-help_topic
-host
-index_stats
-innodb_index_stats
-innodb_table_stats
-plugin
-proc
-procs_priv
-proxies_priv
-roles_mapping
-servers
-slow_log
-table_stats
-tables_priv
-time_zone
-time_zone_leap_second
-time_zone_name
-time_zone_transition
-time_zone_transition_type
-transaction_registry
-user
-show create table db;
-Table Create Table
-db CREATE TABLE `db` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_history_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- PRIMARY KEY (`Host`,`Db`,`User`),
- KEY `User` (`User`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Database privileges'
-show create table host;
-Table Create Table
-host CREATE TABLE `host` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- PRIMARY KEY (`Host`,`Db`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Host privileges; Merged with database privileges'
-show create table user;
-Table Create Table
-user CREATE TABLE `user` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Password` char(41) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Reload_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Shutdown_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Process_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `File_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_db_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Super_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Repl_slave_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Repl_client_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_user_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tablespace_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_history_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `ssl_type` enum('','ANY','X509','SPECIFIED') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `ssl_cipher` blob NOT NULL,
- `x509_issuer` blob NOT NULL,
- `x509_subject` blob NOT NULL,
- `max_questions` int(11) unsigned NOT NULL DEFAULT 0,
- `max_updates` int(11) unsigned NOT NULL DEFAULT 0,
- `max_connections` int(11) unsigned NOT NULL DEFAULT 0,
- `max_user_connections` int(11) NOT NULL DEFAULT 0,
- `plugin` char(64) CHARACTER SET latin1 NOT NULL DEFAULT '',
- `authentication_string` text COLLATE utf8_bin NOT NULL,
- `password_expired` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `is_role` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `default_role` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `max_statement_time` decimal(12,6) NOT NULL DEFAULT 0.000000,
- PRIMARY KEY (`Host`,`User`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and global privileges'
-show create table func;
-Table Create Table
-func CREATE TABLE `func` (
- `name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `ret` tinyint(1) NOT NULL DEFAULT 0,
- `dl` char(128) COLLATE utf8_bin NOT NULL DEFAULT '',
- `type` enum('function','aggregate') CHARACTER SET utf8 NOT NULL,
- PRIMARY KEY (`name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User defined functions'
-show create table tables_priv;
-Table Create Table
-tables_priv CREATE TABLE `tables_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Grantor` char(141) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `Table_priv` set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger','Delete versioning rows') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
- PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`),
- KEY `Grantor` (`Grantor`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table privileges'
-show create table columns_priv;
-Table Create Table
-columns_priv CREATE TABLE `columns_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Column_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
- PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`,`Column_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column privileges'
-show create table procs_priv;
-Table Create Table
-procs_priv CREATE TABLE `procs_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Routine_name` char(64) CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Routine_type` enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY') COLLATE utf8_bin NOT NULL,
- `Grantor` char(141) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Proc_priv` set('Execute','Alter Routine','Grant') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- PRIMARY KEY (`Host`,`Db`,`User`,`Routine_name`,`Routine_type`),
- KEY `Grantor` (`Grantor`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Procedure privileges'
-show create table servers;
-Table Create Table
-servers CREATE TABLE `servers` (
- `Server_name` char(64) NOT NULL DEFAULT '',
- `Host` char(64) NOT NULL DEFAULT '',
- `Db` char(64) NOT NULL DEFAULT '',
- `Username` char(80) NOT NULL DEFAULT '',
- `Password` char(64) NOT NULL DEFAULT '',
- `Port` int(4) NOT NULL DEFAULT 0,
- `Socket` char(64) NOT NULL DEFAULT '',
- `Wrapper` char(64) NOT NULL DEFAULT '',
- `Owner` char(64) NOT NULL DEFAULT '',
- PRIMARY KEY (`Server_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table'
-show create table proc;
-Table Create Table
-proc CREATE TABLE `proc` (
- `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `name` char(64) NOT NULL DEFAULT '',
- `type` enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY') NOT NULL,
- `specific_name` char(64) NOT NULL DEFAULT '',
- `language` enum('SQL') NOT NULL DEFAULT 'SQL',
- `sql_data_access` enum('CONTAINS_SQL','NO_SQL','READS_SQL_DATA','MODIFIES_SQL_DATA') NOT NULL DEFAULT 'CONTAINS_SQL',
- `is_deterministic` enum('YES','NO') NOT NULL DEFAULT 'NO',
- `security_type` enum('INVOKER','DEFINER') NOT NULL DEFAULT 'DEFINER',
- `param_list` blob NOT NULL DEFAULT '',
- `returns` longblob NOT NULL,
- `body` longblob NOT NULL,
- `definer` char(141) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH','EMPTY_STRING_IS_NULL','SIMULTANEOUS_ASSIGNMENT') NOT NULL DEFAULT '',
- `comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
- `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `body_utf8` longblob DEFAULT NULL,
- `aggregate` enum('NONE','GROUP') NOT NULL DEFAULT 'NONE',
- PRIMARY KEY (`db`,`name`,`type`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stored Procedures'
-show create table event;
-Table Create Table
-event CREATE TABLE `event` (
- `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `name` char(64) NOT NULL DEFAULT '',
- `body` longblob NOT NULL,
- `definer` char(141) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `execute_at` datetime DEFAULT NULL,
- `interval_value` int(11) DEFAULT NULL,
- `interval_field` enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') DEFAULT NULL,
- `created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `last_executed` datetime DEFAULT NULL,
- `starts` datetime DEFAULT NULL,
- `ends` datetime DEFAULT NULL,
- `status` enum('ENABLED','DISABLED','SLAVESIDE_DISABLED') NOT NULL DEFAULT 'ENABLED',
- `on_completion` enum('DROP','PRESERVE') NOT NULL DEFAULT 'DROP',
- `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH','EMPTY_STRING_IS_NULL','SIMULTANEOUS_ASSIGNMENT') NOT NULL DEFAULT '',
- `comment` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `originator` int(10) unsigned NOT NULL,
- `time_zone` char(64) CHARACTER SET latin1 NOT NULL DEFAULT 'SYSTEM',
- `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `body_utf8` longblob DEFAULT NULL,
- PRIMARY KEY (`db`,`name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Events'
-show create table general_log;
-Table Create Table
-general_log CREATE TABLE `general_log` (
- `event_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `command_type` varchar(64) NOT NULL,
- `argument` mediumtext NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log'
-show create table slow_log;
-Table Create Table
-slow_log CREATE TABLE `slow_log` (
- `start_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `query_time` time(6) NOT NULL,
- `lock_time` time(6) NOT NULL,
- `rows_sent` int(11) NOT NULL,
- `rows_examined` int(11) NOT NULL,
- `db` varchar(512) NOT NULL,
- `last_insert_id` int(11) NOT NULL,
- `insert_id` int(11) NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `sql_text` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `rows_affected` int(11) NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log'
-show create table table_stats;
-Table Create Table
-table_stats CREATE TABLE `table_stats` (
- `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `cardinality` bigint(21) unsigned DEFAULT NULL,
- PRIMARY KEY (`db_name`,`table_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Statistics on Tables'
-show create table column_stats;
-Table Create Table
-column_stats CREATE TABLE `column_stats` (
- `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `column_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `min_value` varbinary(255) DEFAULT NULL,
- `max_value` varbinary(255) DEFAULT NULL,
- `nulls_ratio` decimal(12,4) DEFAULT NULL,
- `avg_length` decimal(12,4) DEFAULT NULL,
- `avg_frequency` decimal(12,4) DEFAULT NULL,
- `hist_size` tinyint(3) unsigned DEFAULT NULL,
- `hist_type` enum('SINGLE_PREC_HB','DOUBLE_PREC_HB') COLLATE utf8_bin DEFAULT NULL,
- `histogram` varbinary(255) DEFAULT NULL,
- PRIMARY KEY (`db_name`,`table_name`,`column_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Statistics on Columns'
-show create table index_stats;
-Table Create Table
-index_stats CREATE TABLE `index_stats` (
- `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `index_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `prefix_arity` int(11) unsigned NOT NULL,
- `avg_frequency` decimal(12,4) DEFAULT NULL,
- PRIMARY KEY (`db_name`,`table_name`,`index_name`,`prefix_arity`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Statistics on Indexes'
-show tables;
-Tables_in_test
diff --git a/mysql-test/r/system_mysql_db_fix50117.result b/mysql-test/r/system_mysql_db_fix50117.result
deleted file mode 100644
index 2abcfb92ffa..00000000000
--- a/mysql-test/r/system_mysql_db_fix50117.result
+++ /dev/null
@@ -1,318 +0,0 @@
-show tables;
-Tables_in_db
-column_stats
-columns_priv
-db
-event
-func
-general_log
-gtid_slave_pos
-help_category
-help_keyword
-help_relation
-help_topic
-host
-index_stats
-innodb_index_stats
-innodb_table_stats
-plugin
-proc
-procs_priv
-proxies_priv
-roles_mapping
-servers
-slow_log
-table_stats
-tables_priv
-time_zone
-time_zone_leap_second
-time_zone_name
-time_zone_transition
-time_zone_transition_type
-transaction_registry
-user
-show create table db;
-Table Create Table
-db CREATE TABLE `db` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_history_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- PRIMARY KEY (`Host`,`Db`,`User`),
- KEY `User` (`User`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Database privileges'
-show create table host;
-Table Create Table
-host CREATE TABLE `host` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- PRIMARY KEY (`Host`,`Db`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Host privileges; Merged with database privileges'
-show create table user;
-Table Create Table
-user CREATE TABLE `user` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Password` char(41) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Reload_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Shutdown_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Process_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `File_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_db_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Super_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Repl_slave_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Repl_client_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_user_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tablespace_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_history_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `ssl_type` enum('','ANY','X509','SPECIFIED') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `ssl_cipher` blob NOT NULL,
- `x509_issuer` blob NOT NULL,
- `x509_subject` blob NOT NULL,
- `max_questions` int(11) unsigned NOT NULL DEFAULT 0,
- `max_updates` int(11) unsigned NOT NULL DEFAULT 0,
- `max_connections` int(11) unsigned NOT NULL DEFAULT 0,
- `max_user_connections` int(11) NOT NULL DEFAULT 0,
- `plugin` char(64) CHARACTER SET latin1 NOT NULL DEFAULT '',
- `authentication_string` text COLLATE utf8_bin NOT NULL,
- `password_expired` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `is_role` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `default_role` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `max_statement_time` decimal(12,6) NOT NULL DEFAULT 0.000000,
- PRIMARY KEY (`Host`,`User`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and global privileges'
-show create table func;
-Table Create Table
-func CREATE TABLE `func` (
- `name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `ret` tinyint(1) NOT NULL DEFAULT 0,
- `dl` char(128) COLLATE utf8_bin NOT NULL DEFAULT '',
- `type` enum('function','aggregate') CHARACTER SET utf8 NOT NULL,
- PRIMARY KEY (`name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User defined functions'
-show create table tables_priv;
-Table Create Table
-tables_priv CREATE TABLE `tables_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Grantor` char(141) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `Table_priv` set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger','Delete versioning rows') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
- PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`),
- KEY `Grantor` (`Grantor`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table privileges'
-show create table columns_priv;
-Table Create Table
-columns_priv CREATE TABLE `columns_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Column_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
- PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`,`Column_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column privileges'
-show create table procs_priv;
-Table Create Table
-procs_priv CREATE TABLE `procs_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Routine_name` char(64) CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Routine_type` enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY') COLLATE utf8_bin NOT NULL,
- `Grantor` char(141) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Proc_priv` set('Execute','Alter Routine','Grant') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- PRIMARY KEY (`Host`,`Db`,`User`,`Routine_name`,`Routine_type`),
- KEY `Grantor` (`Grantor`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Procedure privileges'
-show create table servers;
-Table Create Table
-servers CREATE TABLE `servers` (
- `Server_name` char(64) NOT NULL DEFAULT '',
- `Host` char(64) NOT NULL DEFAULT '',
- `Db` char(64) NOT NULL DEFAULT '',
- `Username` char(80) NOT NULL DEFAULT '',
- `Password` char(64) NOT NULL DEFAULT '',
- `Port` int(4) NOT NULL DEFAULT 0,
- `Socket` char(64) NOT NULL DEFAULT '',
- `Wrapper` char(64) NOT NULL DEFAULT '',
- `Owner` char(64) NOT NULL DEFAULT '',
- PRIMARY KEY (`Server_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table'
-show create table proc;
-Table Create Table
-proc CREATE TABLE `proc` (
- `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `name` char(64) NOT NULL DEFAULT '',
- `type` enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY') NOT NULL,
- `specific_name` char(64) NOT NULL DEFAULT '',
- `language` enum('SQL') NOT NULL DEFAULT 'SQL',
- `sql_data_access` enum('CONTAINS_SQL','NO_SQL','READS_SQL_DATA','MODIFIES_SQL_DATA') NOT NULL DEFAULT 'CONTAINS_SQL',
- `is_deterministic` enum('YES','NO') NOT NULL DEFAULT 'NO',
- `security_type` enum('INVOKER','DEFINER') NOT NULL DEFAULT 'DEFINER',
- `param_list` blob NOT NULL,
- `returns` longblob NOT NULL,
- `body` longblob NOT NULL,
- `definer` char(141) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH','EMPTY_STRING_IS_NULL','SIMULTANEOUS_ASSIGNMENT') NOT NULL DEFAULT '',
- `comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
- `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `body_utf8` longblob DEFAULT NULL,
- `aggregate` enum('NONE','GROUP') NOT NULL DEFAULT 'NONE',
- PRIMARY KEY (`db`,`name`,`type`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stored Procedures'
-show create table event;
-Table Create Table
-event CREATE TABLE `event` (
- `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `name` char(64) NOT NULL DEFAULT '',
- `body` longblob NOT NULL,
- `definer` char(141) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `execute_at` datetime DEFAULT NULL,
- `interval_value` int(11) DEFAULT NULL,
- `interval_field` enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') DEFAULT NULL,
- `created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `last_executed` datetime DEFAULT NULL,
- `starts` datetime DEFAULT NULL,
- `ends` datetime DEFAULT NULL,
- `status` enum('ENABLED','DISABLED','SLAVESIDE_DISABLED') NOT NULL DEFAULT 'ENABLED',
- `on_completion` enum('DROP','PRESERVE') NOT NULL DEFAULT 'DROP',
- `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH','EMPTY_STRING_IS_NULL','SIMULTANEOUS_ASSIGNMENT') NOT NULL DEFAULT '',
- `comment` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `originator` int(10) unsigned NOT NULL,
- `time_zone` char(64) CHARACTER SET latin1 NOT NULL DEFAULT 'SYSTEM',
- `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `body_utf8` longblob DEFAULT NULL,
- PRIMARY KEY (`db`,`name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Events'
-show create table general_log;
-Table Create Table
-general_log CREATE TABLE `general_log` (
- `event_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `command_type` varchar(64) NOT NULL,
- `argument` mediumtext NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log'
-show create table slow_log;
-Table Create Table
-slow_log CREATE TABLE `slow_log` (
- `start_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
- `user_host` mediumtext NOT NULL,
- `query_time` time(6) NOT NULL,
- `lock_time` time(6) NOT NULL,
- `rows_sent` int(11) NOT NULL,
- `rows_examined` int(11) NOT NULL,
- `db` varchar(512) NOT NULL,
- `last_insert_id` int(11) NOT NULL,
- `insert_id` int(11) NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `sql_text` mediumtext NOT NULL,
- `thread_id` bigint(21) unsigned NOT NULL,
- `rows_affected` int(11) NOT NULL
-) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log'
-show create table table_stats;
-Table Create Table
-table_stats CREATE TABLE `table_stats` (
- `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `cardinality` bigint(21) unsigned DEFAULT NULL,
- PRIMARY KEY (`db_name`,`table_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Statistics on Tables'
-show create table column_stats;
-Table Create Table
-column_stats CREATE TABLE `column_stats` (
- `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `column_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `min_value` varbinary(255) DEFAULT NULL,
- `max_value` varbinary(255) DEFAULT NULL,
- `nulls_ratio` decimal(12,4) DEFAULT NULL,
- `avg_length` decimal(12,4) DEFAULT NULL,
- `avg_frequency` decimal(12,4) DEFAULT NULL,
- `hist_size` tinyint(3) unsigned DEFAULT NULL,
- `hist_type` enum('SINGLE_PREC_HB','DOUBLE_PREC_HB') COLLATE utf8_bin DEFAULT NULL,
- `histogram` varbinary(255) DEFAULT NULL,
- PRIMARY KEY (`db_name`,`table_name`,`column_name`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Statistics on Columns'
-show create table index_stats;
-Table Create Table
-index_stats CREATE TABLE `index_stats` (
- `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `index_name` varchar(64) COLLATE utf8_bin NOT NULL,
- `prefix_arity` int(11) unsigned NOT NULL,
- `avg_frequency` decimal(12,4) DEFAULT NULL,
- PRIMARY KEY (`db_name`,`table_name`,`index_name`,`prefix_arity`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Statistics on Indexes'
-show tables;
-Tables_in_test
diff --git a/mysql-test/r/system_mysql_db_refs.result b/mysql-test/r/system_mysql_db_refs.result
deleted file mode 100644
index 96ecd2f27c0..00000000000
--- a/mysql-test/r/system_mysql_db_refs.result
+++ /dev/null
@@ -1,67 +0,0 @@
-set @name="This is a very long string, that mustn't find room in a system field like Table_name. Thus it should be cut by the actual size of the field. So we can use this string to find out the actual length of the field and to use it in any compare queries";
-create table test_db select * from mysql.db;
-delete from test_db;
-insert ignore into test_db (Host,Db,User) values (@name,@name,@name);
-create table test_host select * from mysql.host;
-delete from test_host;
-insert ignore into test_host (Host,Db) values (@name,@name);
-create table test_user select * from mysql.user;
-delete from test_user;
-insert ignore into test_user (Host,User) values (@name,@name);
-create table test_func select * from mysql.func;
-delete from test_func;
-insert ignore into test_func (name) values (@name);
-create table test_tables_priv select * from mysql.tables_priv;
-delete from test_tables_priv;
-insert ignore into test_tables_priv (Host,Db,User,Table_name) values (@name,@name,@name,@name);
-create table test_columns_priv select * from mysql.columns_priv;
-delete from test_columns_priv;
-insert ignore into test_columns_priv (Host,Db,User,Table_name,Column_name) values (@name,@name,@name,@name,@name);
-select
-if(isnull(test_db.Host),'WRONG!!!','ok') as test_db_Host,
-if(isnull(test_host.Host),'WRONG!!!','ok') as test_host_Host,
-if(isnull(test_user.Host),'WRONG!!!','ok') as test_user_Host,
-if(isnull(test_tables_priv.Host),'WRONG!!!','ok') as test_tables_priv_Host,
-if(isnull(test_columns_priv.Host),'WRONG!!!','ok') as test_columns_priv_Host
-from test_db
-left join test_host on test_db.Host=test_host.Host
-left join test_user on test_db.Host=test_user.Host
-left join test_tables_priv on test_db.Host=test_tables_priv.Host
-left join test_columns_priv on test_db.Host=test_columns_priv.Host;
-test_db_Host test_host_Host test_user_Host test_tables_priv_Host test_columns_priv_Host
-ok ok ok ok ok
-select
-if(isnull(test_db.Db),'WRONG!!!','ok') as test_db_Db,
-if(isnull(test_host.Db),'WRONG!!!','ok') as test_host_Db,
-if(isnull(test_tables_priv.Db),'WRONG!!!','ok') as test_tables_priv_Db,
-if(isnull(test_columns_priv.Db),'WRONG!!!','ok') as est_columns_priv_Db
-from test_db
-left join test_host on test_db.Db=test_host.Db
-left join test_tables_priv on test_db.Db=test_tables_priv.Db
-left join test_columns_priv on test_db.Db=test_columns_priv.Db;
-test_db_Db test_host_Db test_tables_priv_Db est_columns_priv_Db
-ok ok ok ok
-select
-if(isnull(test_db.User),'WRONG!!!','ok') as test_db_User,
-if(isnull(test_user.User),'WRONG!!!','ok') as test_user_User,
-if(isnull(test_tables_priv.User),'WRONG!!!','ok') as test_tables_priv_User,
-if(isnull(test_columns_priv.User),'WRONG!!!','ok') as test_columns_priv_User
-from test_db
-left join test_user on test_db.User=test_user.User
-left join test_tables_priv on test_db.User=test_tables_priv.User
-left join test_columns_priv on test_db.User=test_columns_priv.User;
-test_db_User test_user_User test_tables_priv_User test_columns_priv_User
-ok ok ok ok
-select
-if(isnull(test_tables_priv.User),'WRONG!!!','ok') as test_tables_priv_User,
-if(isnull(test_columns_priv.User),'WRONG!!!','ok') as test_columns_priv_User
-from test_tables_priv
-left join test_columns_priv on test_tables_priv.Table_name=test_columns_priv.Table_name;
-test_tables_priv_User test_columns_priv_User
-ok ok
-drop table test_columns_priv;
-drop table test_tables_priv;
-drop table test_func;
-drop table test_host;
-drop table test_user;
-drop table test_db;
diff --git a/mysql-test/r/table_elim.result b/mysql-test/r/table_elim.result
deleted file mode 100644
index cf9a4a38779..00000000000
--- a/mysql-test/r/table_elim.result
+++ /dev/null
@@ -1,706 +0,0 @@
-drop table if exists t0, t1, t2, t3, t4, t5, t6;
-drop view if exists v1, v2;
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3);
-create table t0 as select * from t1;
-create table t2 (a int primary key, b int)
-as select a, a as b from t1 where a in (1,2);
-create table t3 (a int primary key, b int)
-as select a, a as b from t1 where a in (1,3);
-# This will be eliminated:
-explain select t1.a from t1 left join t2 on t2.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-explain extended select t1.a from t1 left join t2 on t2.a=t1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 1
-select t1.a from t1 left join t2 on t2.a=t1.a;
-a
-0
-1
-2
-3
-# This will not be eliminated as t2.b is in in select list:
-explain select * from t1 left join t2 on t2.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where
-# This will not be eliminated as t2.b is in in order list:
-explain select t1.a from t1 left join t2 on t2.a=t1.a order by t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using temporary; Using filesort
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where
-# This will not be eliminated as t2.b is in group list:
-explain select t1.a from t1 left join t2 on t2.a=t1.a group by t2.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using temporary; Using filesort
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where
-# This will not be eliminated as t2.b is in the WHERE
-explain select t1.a from t1 left join t2 on t2.a=t1.a where t2.b < 3 or t2.b is null;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where
-# Elimination of multiple tables:
-explain select t1.a from t1 left join (t2 join t3) on t2.a=t1.a and t3.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-# Elimination of multiple tables (2):
-explain select t1.a from t1 left join (t2 join t3 on t2.b=t3.b) on t2.a=t1.a and t3.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-# Elimination when done within an outer join nest:
-explain extended
-select t0.*
-from
-t0 left join (t1 left join (t2 join t3 on t2.b=t3.b) on t2.a=t1.a and
-t3.a=t1.a) on t0.a=t1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t0 ALL NULL NULL NULL NULL 4 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t0`.`a` AS `a` from `test`.`t0` left join (`test`.`t1`) on(`test`.`t1`.`a` = `test`.`t0`.`a`) where 1
-# Elimination with aggregate functions
-explain select count(*) from t1 left join t2 on t2.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-explain select count(1) from t1 left join t2 on t2.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-explain select count(1) from t1 left join t2 on t2.a=t1.a group by t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using temporary; Using filesort
-This must not use elimination:
-explain select count(1) from t1 left join t2 on t2.a=t1.a group by t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using temporary; Using filesort
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where; Using index
-drop table t0, t1, t2, t3;
-create table t0 ( id integer, primary key (id));
-create table t1 (
-id integer,
-attr1 integer,
-primary key (id),
-key (attr1)
-);
-create table t2 (
-id integer,
-attr2 integer,
-fromdate date,
-primary key (id, fromdate),
-key (attr2,fromdate)
-);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-insert into t0 select A.id + 10*B.id from t0 A, t0 B where B.id > 0;
-insert into t1 select id, id from t0;
-insert into t2 select id, id, date_add('2009-06-22', interval id day) from t0;
-insert into t2 select id, id+1, date_add('2008-06-22', interval id day) from t0;
-create view v1 as
-select
-f.id, a1.attr1, a2.attr2
-from
-t0 f
-left join t1 a1 on a1.id=f.id
-left join t2 a2 on a2.id=f.id and
-a2.fromdate=(select MAX(fromdate) from
-t2 where id=a2.id);
-create view v2 as
-select
-f.id, a1.attr1, a2.attr2
-from
-t0 f
-left join t1 a1 on a1.id=f.id
-left join t2 a2 on a2.id=f.id and
-a2.fromdate=(select MAX(fromdate) from
-t2 where id=f.id);
-This should use one table:
-explain select id from v1 where id=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY f const PRIMARY PRIMARY 4 const 1 Using index
-This should use one table:
-explain extended select id from v1 where id in (1,2,3,4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY f range PRIMARY PRIMARY 4 NULL 4 100.00 Using where; Using index
-Warnings:
-Note 1276 Field or reference 'test.a2.id' of SELECT #3 was resolved in SELECT #2
-Note 1003 /* select#1 */ select `f`.`id` AS `id` from `test`.`t0` `f` where `f`.`id` in (1,2,3,4)
-This should use facts and a1 tables:
-explain extended select id from v1 where attr1 between 12 and 14;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY a1 range PRIMARY,attr1 attr1 5 NULL 2 100.00 Using index condition
-1 PRIMARY f eq_ref PRIMARY PRIMARY 4 test.a1.id 1 100.00 Using index
-Warnings:
-Note 1276 Field or reference 'test.a2.id' of SELECT #3 was resolved in SELECT #2
-Note 1003 /* select#1 */ select `f`.`id` AS `id` from `test`.`t0` `f` join `test`.`t1` `a1` where `f`.`id` = `a1`.`id` and `a1`.`attr1` between 12 and 14
-This should use facts, a2 and its subquery:
-explain extended select id from v1 where attr2 between 12 and 14;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY a2 range PRIMARY,attr2 attr2 5 NULL 5 100.00 Using index condition; Using where
-1 PRIMARY f eq_ref PRIMARY PRIMARY 4 test.a2.id 1 100.00 Using index
-3 DEPENDENT SUBQUERY t2 ref PRIMARY PRIMARY 4 test.a2.id 2 100.00 Using index
-Warnings:
-Note 1276 Field or reference 'test.a2.id' of SELECT #3 was resolved in SELECT #2
-Note 1003 /* select#1 */ select `f`.`id` AS `id` from `test`.`t0` `f` join `test`.`t2` `a2` where `f`.`id` = `a2`.`id` and `a2`.`attr2` between 12 and 14 and `a2`.`fromdate` = <expr_cache><`a2`.`id`>((/* select#3 */ select max(`test`.`t2`.`fromdate`) from `test`.`t2` where `test`.`t2`.`id` = `a2`.`id`))
-This should use one table:
-explain select id from v2 where id=2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY f const PRIMARY PRIMARY 4 const 1 Using index
-This should use one table:
-explain extended select id from v2 where id in (1,2,3,4);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY f range PRIMARY PRIMARY 4 NULL 4 100.00 Using where; Using index
-Warnings:
-Note 1276 Field or reference 'test.f.id' of SELECT #3 was resolved in SELECT #2
-Note 1003 /* select#1 */ select `f`.`id` AS `id` from `test`.`t0` `f` where `f`.`id` in (1,2,3,4)
-This should use facts and a1 tables:
-explain extended select id from v2 where attr1 between 12 and 14;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY a1 range PRIMARY,attr1 attr1 5 NULL 2 100.00 Using index condition
-1 PRIMARY f eq_ref PRIMARY PRIMARY 4 test.a1.id 1 100.00 Using index
-Warnings:
-Note 1276 Field or reference 'test.f.id' of SELECT #3 was resolved in SELECT #2
-Note 1003 /* select#1 */ select `f`.`id` AS `id` from `test`.`t0` `f` join `test`.`t1` `a1` where `f`.`id` = `a1`.`id` and `a1`.`attr1` between 12 and 14
-This should use facts, a2 and its subquery:
-explain extended select id from v2 where attr2 between 12 and 14;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY a2 range PRIMARY,attr2 attr2 5 NULL 5 100.00 Using index condition
-1 PRIMARY f eq_ref PRIMARY PRIMARY 4 test.a2.id 1 100.00 Using where; Using index
-3 DEPENDENT SUBQUERY t2 ref PRIMARY PRIMARY 4 test.f.id 2 100.00 Using index
-Warnings:
-Note 1276 Field or reference 'test.f.id' of SELECT #3 was resolved in SELECT #2
-Note 1003 /* select#1 */ select `f`.`id` AS `id` from `test`.`t0` `f` join `test`.`t2` `a2` where `f`.`id` = `a2`.`id` and `a2`.`attr2` between 12 and 14 and `a2`.`fromdate` = <expr_cache><`f`.`id`>((/* select#3 */ select max(`test`.`t2`.`fromdate`) from `test`.`t2` where `test`.`t2`.`id` = `f`.`id`))
-drop view v1, v2;
-drop table t0, t1, t2;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3);
-create table t2 (pk1 int, pk2 int, pk3 int, col int, primary key(pk1, pk2, pk3));
-insert into t2 select a,a,a,a from t1;
-This must use only t1:
-explain select t1.* from t1 left join t2 on t2.pk1=t1.a and
-t2.pk2=t2.pk1+1 and
-t2.pk3=t2.pk2+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-This must use only t1:
-explain select t1.* from t1 left join t2 on t2.pk1=t1.a and
-t2.pk3=t2.pk1+1 and
-t2.pk2=t2.pk3+1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-This must use both:
-explain select t1.* from t1 left join t2 on t2.pk1=t1.a and
-t2.pk3=t2.pk1+1 and
-t2.pk2=t2.pk3+t2.col;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 ref PRIMARY PRIMARY 4 test.t1.a 1 Using where
-This must use only t1:
-explain select t1.* from t1 left join t2 on t2.pk2=t1.a and
-t2.pk1=t2.pk2+1 and
-t2.pk3=t2.pk1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-drop table t1, t2;
-create table t1 (pk int primary key, col int);
-insert into t1 values (1,1),(2,2);
-create table t2 like t1;
-insert into t2 select * from t1;
-create table t3 like t1;
-insert into t3 select * from t1;
-explain
-select t1.* from t1 left join ( t2 left join t3 on t3.pk=t2.col) on t2.col=t1.col;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-explain
-select t1.*, t2.* from t1 left join (t2 left join t3 on t3.pk=t2.col) on t2.pk=t1.col;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.col 1 Using where
-explain select t1.*
-from
-t1 left join ( t2 left join t3 on t3.pk=t2.col or t3.pk=t2.col)
-on t2.col=t1.col or t2.col=t1.col;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where
-explain select t1.*, t2.*
-from
-t1 left join
-(t2 left join t3 on t3.pk=t2.col or t3.pk=t2.col)
-on t2.pk=t1.col or t2.pk=t1.col;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.col 1 Using where
-drop table t1, t2, t3;
-#
-# Check things that look like functional dependencies but really are not
-#
-create table t1 (a char(10) character set latin1 collate latin1_general_ci primary key);
-insert into t1 values ('foo');
-insert into t1 values ('bar');
-create table t2 (a char(10) character set latin1 collate latin1_general_cs primary key);
-insert into t2 values ('foo');
-insert into t2 values ('FOO');
-this must not use table elimination:
-explain select t1.* from t1 left join t2 on t2.a='foo' collate latin1_general_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 10 NULL 2 Using index
-1 SIMPLE t2 index PRIMARY PRIMARY 10 NULL 2 Using where; Using index
-this must not use table elimination:
-explain select t1.* from t1 left join t2 on t2.a=t1.a collate latin1_general_ci;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 10 NULL 2 Using index
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 2 Range checked for each record (index map: 0x1)
-drop table t1,t2;
-create table t1 (a int primary key);
-insert into t1 values (1),(2);
-create table t2 (a char(10) primary key);
-insert into t2 values ('1'),('1.0');
-this must not use table elimination:
-explain select t1.* from t1 left join t2 on t2.a=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 2 Using index
-1 SIMPLE t2 index PRIMARY PRIMARY 10 NULL 2 Using where; Using index
-this must not use table elimination:
-explain select t1.* from t1 left join t2 on t2.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 2 Using index
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 2 Range checked for each record (index map: 0x1)
-drop table t1, t2;
-create table t1 (a char(10) primary key);
-insert into t1 values ('foo'),('bar');
-create table t2 (a char(10), unique key(a(2)));
-insert into t2 values
-('foo'),('bar'),('boo'),('car'),('coo'),('par'),('doo'),('tar');
-explain select t1.* from t1 left join t2 on t2.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 10 NULL 2 Using index
-1 SIMPLE t2 ref a a 3 test.t1.a 2 Using where
-drop table t1, t2;
-#
-# check UPDATE/DELETE that look like they could be eliminated
-#
-create table t1 (a int primary key, b int);
-insert into t1 values (1,1),(2,2),(3,3);
-create table t2 like t1;
-insert into t2 select * from t1;
-update t1 left join t2 using (a) set t2.a=t2.a+100;
-select * from t1;
-a b
-1 1
-2 2
-3 3
-select * from t2;
-a b
-101 1
-102 2
-103 3
-delete from t2;
-insert into t2 select * from t1;
-delete t2 from t1 left join t2 using (a);
-select * from t1;
-a b
-1 1
-2 2
-3 3
-select * from t2;
-a b
-drop table t1, t2;
-#
-# Tests with various edge-case ON expressions
-#
-create table t1 (a int, b int, c int, d int);
-insert into t1 values (0,0,0,0),(1,1,1,1),(2,2,2,2),(3,3,3,3);
-create table t2 (pk int primary key, b int)
-as select a as pk, a as b from t1 where a in (1,2);
-create table t3 (pk1 int, pk2 int, b int, unique(pk1,pk2));
-insert into t3 select a as pk1, a as pk2, a as b from t1 where a in (1,3);
-explain select t1.a from t1 left join t2 on t2.pk=t1.a and t2.b<t1.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-explain select t1.a from t1 left join t2 on t2.pk=t1.a or t2.b<t1.b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 2 Using where
-explain select t1.a from t1 left join t2 on t2.b<t1.b or t2.pk=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 2 Using where
-explain select t1.a from t1 left join t2 on t2.pk between 10 and 20;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 index PRIMARY PRIMARY 4 NULL 2 Using where; Using index
-explain select t1.a from t1 left join t2 on t2.pk between 0.5 and 1.5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 index PRIMARY PRIMARY 4 NULL 2 Using where; Using index
-explain select t1.a from t1 left join t2 on t2.pk between 10 and 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-explain select t1.a from t1 left join t2 on t2.pk in (10);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-explain select t1.a from t1 left join t2 on t2.pk in (t1.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-explain select t1.a from t1 left join t2 on TRUE;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 index NULL PRIMARY 4 NULL 2 Using where; Using index
-explain select t1.a from t1 left join t3 on t3.pk1=t1.a and t3.pk2 IS NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-drop table t1,t2,t3;
-#
-# Multi-equality tests
-#
-create table t1 (a int, b int, c int, d int);
-insert into t1 values (0,0,0,0),(1,1,1,1),(2,2,2,2),(3,3,3,3);
-create table t2 (pk int primary key, b int, c int);
-insert into t2 select a,a,a from t1 where a in (1,2);
-explain
-select t1.*
-from t1 left join t2 on t2.pk=t2.c and t2.b=t1.a and t1.a=t1.b and t2.c=t2.b
-where t1.d=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-explain
-select t1.*
-from
-t1
-left join
-t2
-on (t2.pk=t2.c and t2.b=t1.a and t1.a=t1.b and t2.c=t2.b) or
-(t2.pk=t2.c and t2.b=t1.a and t1.a=t1.b and t2.c=t2.b)
-where t1.d=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-#This can't be eliminated:
-explain
-select t1.*
-from
-t1
-left join
-t2
-on (t2.pk=t2.c and t2.b=t1.a and t2.c=t1.b) or
-(t2.pk=t2.c and t1.a=t1.b and t2.c=t1.b)
-where t1.d=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.b 1 Using where
-explain
-select t1.*
-from
-t1
-left join
-t2
-on (t2.pk=t2.c and t2.b=t1.a and t2.c=t1.b) or
-(t2.pk=t2.c and t2.c=t1.b)
-;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-explain
-select t1.*
-from t1 left join t2 on t2.pk=3 or t2.pk= 4;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 index PRIMARY PRIMARY 4 NULL 2 Using where; Using index
-explain
-select t1.*
-from t1 left join t2 on t2.pk=3 or t2.pk= 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-explain
-select t1.*
-from t1 left join t2 on (t2.pk=3 and t2.b=3) or (t2.pk= 4 and t2.b=3);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 2 Using where
-drop table t1, t2;
-#
-# LPBUG#523593: Running RQG optimizer_no_subquery crashes MariaDB
-#
-CREATE TABLE t1 (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_date_key` date DEFAULT NULL,
-`col_date_nokey` date DEFAULT NULL,
-`col_time_key` time DEFAULT NULL,
-`col_time_nokey` time DEFAULT NULL,
-`col_datetime_key` datetime DEFAULT NULL,
-`col_datetime_nokey` datetime DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_int_key` (`col_int_key`),
-KEY `col_date_key` (`col_date_key`),
-KEY `col_time_key` (`col_time_key`),
-KEY `col_datetime_key` (`col_datetime_key`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-);
-CREATE TABLE t2 LIKE t1;
-INSERT INTO t1 VALUES
-(10,7,8,NULL,NULL,'01:27:35','01:27:35','2002-02-26 06:14:37','2002-02-26 06:14:37','v','v'),
-(11,1,9,'2006-06-14','2006-06-14','19:48:31','19:48:31','1900-01-01 00:00:00','1900-01-01 00:00:00','r','r');
-INSERT INTO t2 SELECT * FROM t1;
-SELECT table2.col_int_key AS field1
-FROM (
-t2 AS table1
-RIGHT OUTER JOIN
-(
-( t1 AS table2 STRAIGHT_JOIN
-t1 AS table3 ON (
-(table3.col_varchar_nokey = table2.col_varchar_key ) AND
-(table3.pk = table2.col_int_key))
-)
-) ON
-(
-(table3.col_varchar_key = table2.col_varchar_key) OR
-(table3.col_int_key = table2.pk)
-)
-)
-HAVING field1 < 216;
-field1
-DROP TABLE t1, t2;
-#
-# LPBUG#524025 Running RQG outer_join test leads to crash
-#
-CREATE TABLE t0 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-PRIMARY KEY (pk)
-);
-CREATE TABLE t1 (
-col_int int(11) DEFAULT NULL,
-col_int_key int(11) DEFAULT NULL,
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_varchar_10_latin1 varchar(10) DEFAULT NULL,
-PRIMARY KEY (pk)
-);
-INSERT INTO t1 VALUES (5,5,1,'t'), (NULL,NULL,2,'y');
-CREATE TABLE t2 (
-col_int int(11) DEFAULT NULL
-);
-INSERT INTO t2 VALUES (8), (4);
-CREATE TABLE t3 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-PRIMARY KEY (pk)
-);
-INSERT INTO t3 VALUES (1),(8);
-CREATE TABLE t4 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_varchar_1024_latin1_key varchar(1024) DEFAULT NULL,
-col_int int(11) DEFAULT NULL,
-PRIMARY KEY (pk)
-);
-INSERT INTO t4 VALUES (1,'o',1), (2,'w',2);
-CREATE TABLE t5 (
-col_varchar_1024_utf8_key varchar(1024) CHARACTER SET utf8 DEFAULT NULL,
-col_varchar_1024_latin1_key varchar(1024) DEFAULT NULL,
-col_varchar_10_utf8_key varchar(1024) CHARACTER SET utf8 DEFAULT NULL,
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_int_key int(11) DEFAULT NULL,
-PRIMARY KEY (pk)
-);
-INSERT INTO t5 VALUES ('k','a','z',1,2),('x','a','w',2,7);
-CREATE TABLE t6 (
-col_int int(11) DEFAULT NULL,
-col_int_key int(11) DEFAULT NULL
-);
-INSERT INTO t6 VALUES (6,1),(8,3);
-SELECT
-table3.col_int AS field1,
-table1.col_int AS field2,
-table1.col_int_key AS field3,
-table1.pk AS field4,
-table1.col_int AS field5,
-table2.col_int AS field6
-FROM
-t1 AS table1
-LEFT OUTER JOIN
-t4 AS table2
-LEFT JOIN t6 AS table3
-RIGHT JOIN t3 AS table4
-LEFT JOIN t5 AS table5 ON table4.pk = table5.pk
-LEFT JOIN t0 AS table6 ON table5.col_int_key = table6.pk
-ON table3.col_int_key = table5.pk
-ON table2.col_varchar_1024_latin1_key = table5.col_varchar_10_utf8_key
-LEFT JOIN t6 AS table7 ON table2.pk = table7.col_int
-ON table1.col_varchar_10_latin1 = table5.col_varchar_1024_latin1_key
-LEFT JOIN t2 AS table8 ON table3.col_int = table8.col_int
-WHERE
-table1.col_int_key < table2.pk
-HAVING
-field4 != 6;
-field1 field2 field3 field4 field5 field6
-drop table t0,t1,t2,t3,t4,t5,t6;
-#
-# BUG#675118: Elimination of a table results in an invalid execution plan
-#
-CREATE TABLE t1 (f1 int(11), PRIMARY KEY (f1)) ;
-CREATE TABLE t2 (f4 varchar(1024), KEY (f4)) ;
-Warnings:
-Warning 1071 Specified key was too long; max key length is 1000 bytes
-INSERT IGNORE INTO t2 VALUES ('xcddwntkbxyorzdv'),
-('cnxxcddwntkbxyor'),('r'),('r'), ('did'),('I'),('when'),
-('hczkfqjeggivdvac'),('e'),('okay'),('up');
-CREATE TABLE t3 (f4 varchar(1024), f1 int(11), f2 int(11)) ;
-INSERT IGNORE INTO t3 VALUES ('f','4','0'),('n','5','-996540416');
-CREATE TABLE t4 (f1 int(11), f3 varchar(10)) ;
-INSERT IGNORE INTO t4 VALUES ('8','n'),('9','nwzcerzsgx'),('10','c');
-CREATE TABLE t5 (f5 int(11), KEY (f5)) ;
-EXPLAIN
-SELECT t3.f2
-FROM t2
-LEFT JOIN t3
-LEFT JOIN t4
-LEFT JOIN t1 ON t4.f1 = t1.f1
-JOIN t5 ON t4.f3 ON t3.f1 = t5.f5 ON t2.f4 = t3.f4
-WHERE t3.f2 ;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t5 ref f5 f5 5 test.t3.f1 2 Using where; Using index
-1 SIMPLE t4 ALL NULL NULL NULL NULL 3 Using where
-1 SIMPLE t2 ALL f4 NULL NULL NULL 11 Using where; Using join buffer (flat, BNL join)
-# ^^ The above must not produce a QEP of t3,t5,t2,t4
-# as that violates the "no interleaving of outer join nests" rule.
-DROP TABLE t1,t2,t3,t4,t5;
-#
-# BUG#997747: Assertion `join->best_read < ((double)1.79..5e+308L)'
-# failed in greedy_search with LEFT JOINs and unique keys
-#
-CREATE TABLE t1 (a1 INT);
-CREATE TABLE t2 (b1 INT);
-CREATE TABLE t3 (c1 INT, UNIQUE KEY(c1));
-CREATE TABLE t4 (d1 INT, UNIQUE KEY(d1));
-CREATE TABLE t5 (e1 INT);
-INSERT INTO t1 VALUES (1),(2);
-INSERT INTO t2 VALUES (2),(3);
-INSERT INTO t3 VALUES (3),(4);
-INSERT INTO t4 VALUES (4),(5);
-INSERT INTO t5 VALUES (5),(6);
-SELECT a1 FROM t1 LEFT JOIN t2 LEFT JOIN t3 LEFT JOIN t4
-ON c1 = d1 ON d1 = b1 ON a1 = b1
-LEFT JOIN t5 ON a1 = e1 ;
-a1
-1
-2
-DROP TABLE t1,t2,t3,t4,t5;
-#
-# BUG#884184: Wrong result with RIGHT JOIN + derived_merge
-#
-CREATE TABLE t1 (a int(11), b varchar(1)) ;
-INSERT IGNORE INTO t1 VALUES (0,'g');
-CREATE TABLE t3 ( a varchar(1)) ;
-INSERT IGNORE INTO t3 VALUES ('g');
-CREATE TABLE t2 ( a int(11) NOT NULL, PRIMARY KEY (a));
-INSERT INTO t2 VALUES (9), (10);
-create view v1 as SELECT t1.* FROM t1 LEFT JOIN t2 ON ( t1.a = t2.a ) WHERE t2.a <> 0;
-SELECT alias1.* FROM t3 LEFT JOIN v1 as alias1 ON ( t3.a = alias1.b );
-a b
-NULL NULL
-EXPLAIN SELECT alias1.* FROM t3 LEFT JOIN v1 as alias1 ON ( t3.a = alias1.b );
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 system NULL NULL NULL NULL 1
-1 SIMPLE t1 ALL NULL NULL NULL NULL 1 Using where
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using index
-drop view v1;
-DROP TABLE t1,t2,t3;
-#
-# MDEV-5344: LEFT OUTER JOIN table data is lost in ON DUPLICATE KEY UPDATE section
-#
-create table t1 (
-id int(10) unsigned NOT NULL DEFAULT '0',
-v int(10) unsigned DEFAULT '0',
-PRIMARY KEY (id)
-);
-create table t2 (
-id int(10) unsigned NOT NULL DEFAULT '0',
-PRIMARY KEY (id)
-) ;
-create table t3 (
-id int(10) unsigned NOT NULL DEFAULT '0',
-v int(10) unsigned DEFAULT '0',
-PRIMARY KEY (id)
-);
-insert into t1 values (1, 10), (2, 10);
-insert into t2 values (1), (2);
-insert into t3 values (1, 20);
-insert into t1
-select t2.id, 5 from t2 LEFT OUTER JOIN t3 ON t2.id = t3.id
-on duplicate key update t1.v = t3.v;
-select * from t1;
-id v
-1 20
-2 NULL
-drop table t1,t2,t3;
-#
-# BUG#919878: Assertion `!eliminated_tables...
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2
-( b INT, UNIQUE INDEX(b) );
-INSERT INTO t2 VALUES (1),(2);
-EXPLAIN EXTENDED
-SELECT * FROM t2
-WHERE b IN (
-SELECT SUM(a) FROM t1 LEFT JOIN t2 ON b=a
-);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 index NULL b 5 NULL 2 100.00 Using where; Using index
-2 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t2`.`b` AS `b` from `test`.`t2` where <expr_cache><`test`.`t2`.`b`>(<in_optimizer>(`test`.`t2`.`b`,<exists>(/* select#2 */ select sum(1) from dual where 1 having <cache>(`test`.`t2`.`b`) = <ref_null_helper>(sum(1)))))
-DROP TABLE t1,t2;
-#
-# MDEV-4840: Wrong result (missing rows) on LEFT JOIN with InnoDB tables
-#
-CREATE TABLE t1 (alpha3 VARCHAR(3));
-INSERT INTO t1 VALUES ('USA'),('CAN');
-CREATE TABLE t2 ( t3_code VARCHAR(3), name VARCHAR(64));
-INSERT INTO t2 VALUES ('USA','Austin'),('USA','Boston');
-CREATE TABLE t3 ( code VARCHAR(3), name VARCHAR(64), PRIMARY KEY (code), UNIQUE KEY (name));
-INSERT INTO t3 VALUES ('CAN','Canada'),('USA','United States');
-SELECT * FROM t1 LEFT JOIN ( t2 LEFT JOIN t3 ON t2.t3_code = t3.code ) ON t1.alpha3 = t3.code;
-alpha3 t3_code name code name
-USA USA Austin USA United States
-USA USA Boston USA United States
-CAN NULL NULL NULL NULL
-SELECT t1.alpha3 FROM t1 LEFT JOIN ( t2 LEFT JOIN t3 ON t2.t3_code = t3.code ) ON t1.alpha3 = t3.code;
-alpha3
-USA
-USA
-CAN
-DROP TABLE t1, t2, t3;
-SET optimizer_switch=@save_optimizer_switch;
-#
-# MDEV-7893: table_elimination works wrong with on computed expression and compound unique key
-# (just a testcase)
-CREATE TABLE t1 (
-PostID int(10) unsigned NOT NULL
-) DEFAULT CHARSET=utf8;
-INSERT INTO t1 (PostID) VALUES (1), (2);
-CREATE TABLE t2 (
-VoteID int(10) unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT,
-EntityID int(10) unsigned NOT NULL,
-UserID int(10) unsigned NOT NULL,
-UNIQUE KEY EntityID (EntityID,UserID)
-) DEFAULT CHARSET=utf8;
-INSERT INTO t2 (EntityID, UserID) VALUES (1, 30), (2, 30);
-SELECT t1.*, T.Voted as Voted
-FROM
-t1 LEFT JOIN (
-SELECT 1 AS Voted, EntityID
-FROM t2
-WHERE t2.UserID = '20' ) AS T
-ON T.EntityID = t1.PostID
-WHERE t1.PostID='1'
-LIMIT 1;
-PostID Voted
-1 NULL
-DROP TABLE t1,t2;
diff --git a/mysql-test/r/table_elim_debug.result b/mysql-test/r/table_elim_debug.result
deleted file mode 100644
index ae49b1433fd..00000000000
--- a/mysql-test/r/table_elim_debug.result
+++ /dev/null
@@ -1,22 +0,0 @@
-drop table if exists t1, t2;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3);
-create table t2 (a int primary key, b int)
-as select a, a as b from t1 where a in (1,2);
-explain select t1.a from t1 left join t2 on t2.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-set optimizer_switch='table_elimination=off';
-explain select t1.a from t1 left join t2 on t2.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where; Using index
-set optimizer_switch='table_elimination=on';
-explain select t1.a from t1 left join t2 on t2.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-set optimizer_switch='table_elimination=default';
-explain select t1.a from t1 left join t2 on t2.a=t1.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4
-drop table t1, t2;
diff --git a/mysql-test/r/table_keyinfo-6838.result b/mysql-test/r/table_keyinfo-6838.result
deleted file mode 100644
index 55b035069ce..00000000000
--- a/mysql-test/r/table_keyinfo-6838.result
+++ /dev/null
@@ -1,12 +0,0 @@
-CREATE TABLE t1 (i INT, state VARCHAR(997)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (2,'Louisiana'),(9,'Maine');
-CREATE TABLE t2 (state VARCHAR(997), j INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('Louisiana',9),('Alaska',5);
-INSERT INTO t2 SELECT t2.* FROM t2 JOIN t2 AS t3 JOIN t2 AS t4 JOIN t2 AS t5 JOIN t2 AS t6;
-SET @@max_heap_table_size= 16384;
-set @@optimizer_switch='derived_merge=OFF';
-set @@optimizer_switch='extended_keys=ON';
-SELECT * FROM t1 AS t1_1 LEFT JOIN ( t1 AS t1_2 INNER JOIN (SELECT * FROM t2) v2 ON t1_2.i = j ) ON t1_1.state = v2.state LIMIT 1;
-i state i state state j
-2 Louisiana 9 Maine Louisiana 9
-DROP TABLE t1, t2;
diff --git a/mysql-test/r/table_options-5867.result b/mysql-test/r/table_options-5867.result
deleted file mode 100644
index f915c2740ae..00000000000
--- a/mysql-test/r/table_options-5867.result
+++ /dev/null
@@ -1,37 +0,0 @@
-install soname 'ha_example';
-set sql_mode='ignore_bad_table_options';
-create table t1 (
-a int complex='c,f,f,f' invalid=3
-) engine=example ull=10000 str='dskj' one_or_two='one' yesno=0
-foobar=barfoo;
-Warnings:
-Warning 1911 Unknown option 'invalid'
-Warning 1911 Unknown option 'foobar'
-create table t2 (a int, key (a) some_option=2014);
-Warnings:
-Warning 1911 Unknown option 'some_option'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `complex`='c,f,f,f' `invalid`=3
-) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `ull`=10000 `str`='dskj' `one_or_two`='one' `yesno`=0 `foobar`=barfoo
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL,
- KEY `a` (`a`) `some_option`=2014
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-set sql_mode='';
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `complex`='c,f,f,f' /* `invalid`=3 */
-) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `ull`=10000 `str`='dskj' `one_or_two`='one' `yesno`=0 /* `foobar`=barfoo */
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL,
- KEY `a` (`a`) /* `some_option`=2014 */
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-uninstall soname 'ha_example';
diff --git a/mysql-test/r/table_options.result b/mysql-test/r/table_options.result
deleted file mode 100644
index 164fe4e30d0..00000000000
--- a/mysql-test/r/table_options.result
+++ /dev/null
@@ -1,182 +0,0 @@
-drop table if exists t1;
-SET @OLD_SQL_MODE=@@SQL_MODE;
-SET SQL_MODE='IGNORE_BAD_TABLE_OPTIONS';
-create table t1 (a int fkey=vvv, key akey (a) dff=vvv) tkey1='1v1';
-Warnings:
-Warning 1911 Unknown option 'fkey'
-Warning 1911 Unknown option 'dff'
-Warning 1911 Unknown option 'tkey1'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `fkey`=vvv,
- KEY `akey` (`a`) `dff`=vvv
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey1`='1v1'
-drop table t1;
-#reassiginig options in the same line
-create table t1 (a int fkey=vvv, key akey (a) dff=vvv) tkey1=1v1 TKEY1=DEFAULT tkey1=1v2 tkey2=2v1;
-Warnings:
-Warning 1911 Unknown option 'fkey'
-Warning 1911 Unknown option 'dff'
-Warning 1911 Unknown option 'tkey1'
-Warning 1911 Unknown option 'tkey2'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `fkey`=vvv,
- KEY `akey` (`a`) `dff`=vvv
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey1`=1v2 `tkey2`=2v1
-#add option
-alter table t1 tkey4=4v1;
-Warnings:
-Warning 1911 Unknown option 'tkey4'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `fkey`=vvv,
- KEY `akey` (`a`) `dff`=vvv
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey1`=1v2 `tkey2`=2v1 `tkey4`=4v1
-#remove options
-alter table t1 tkey3=DEFAULT tkey4=DEFAULT;
-Warnings:
-Warning 1911 Unknown option 'tkey3'
-Warning 1911 Unknown option 'tkey4'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `fkey`=vvv,
- KEY `akey` (`a`) `dff`=vvv
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey1`=1v2 `tkey2`=2v1
-drop table t1;
-create table t1 (a int fkey1=v1, key akey (a) kkey1=v1) tkey1=1v1 tkey1=1v2 TKEY1=DEFAULT tkey2=2v1 tkey3=3v1;
-Warnings:
-Warning 1911 Unknown option 'fkey1'
-Warning 1911 Unknown option 'kkey1'
-Warning 1911 Unknown option 'TKEY1'
-Warning 1911 Unknown option 'tkey2'
-Warning 1911 Unknown option 'tkey3'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `fkey1`=v1,
- KEY `akey` (`a`) `kkey1`=v1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey2`=2v1 `tkey3`=3v1
-#change field with option with the same value
-alter table t1 change a a int `FKEY1`='v1';
-Warnings:
-Warning 1911 Unknown option 'FKEY1'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `FKEY1`='v1',
- KEY `akey` (`a`) `kkey1`=v1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey2`=2v1 `tkey3`=3v1
-#change field with option with a different value
-alter table t1 change a a int fkey1=v2;
-Warnings:
-Warning 1911 Unknown option 'fkey1'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `fkey1`=v2,
- KEY `akey` (`a`) `kkey1`=v1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey2`=2v1 `tkey3`=3v1
-#new column no options
-alter table t1 add column b int;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `fkey1`=v2,
- `b` int(11) DEFAULT NULL,
- KEY `akey` (`a`) `kkey1`=v1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey2`=2v1 `tkey3`=3v1
-#new key with options
-alter table t1 add key bkey (b) kkey2=v1;
-Warnings:
-Warning 1911 Unknown option 'kkey2'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `fkey1`=v2,
- `b` int(11) DEFAULT NULL,
- KEY `akey` (`a`) `kkey1`=v1,
- KEY `bkey` (`b`) `kkey2`=v1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey2`=2v1 `tkey3`=3v1
-#new column with options
-alter table t1 add column c int fkey1=v1 fkey2=v2;
-Warnings:
-Warning 1911 Unknown option 'fkey1'
-Warning 1911 Unknown option 'fkey2'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `fkey1`=v2,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT NULL `fkey1`=v1 `fkey2`=v2,
- KEY `akey` (`a`) `kkey1`=v1,
- KEY `bkey` (`b`) `kkey2`=v1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey2`=2v1 `tkey3`=3v1
-#new key no options
-alter table t1 add key ckey (c);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `fkey1`=v2,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT NULL `fkey1`=v1 `fkey2`=v2,
- KEY `akey` (`a`) `kkey1`=v1,
- KEY `bkey` (`b`) `kkey2`=v1,
- KEY `ckey` (`c`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey2`=2v1 `tkey3`=3v1
-#drop column
-alter table t1 drop b;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `fkey1`=v2,
- `c` int(11) DEFAULT NULL `fkey1`=v1 `fkey2`=v2,
- KEY `akey` (`a`) `kkey1`=v1,
- KEY `ckey` (`c`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey2`=2v1 `tkey3`=3v1
-#add column with options after delete
-alter table t1 add column b int fkey2=v1;
-Warnings:
-Warning 1911 Unknown option 'fkey2'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `fkey1`=v2,
- `c` int(11) DEFAULT NULL `fkey1`=v1 `fkey2`=v2,
- `b` int(11) DEFAULT NULL `fkey2`=v1,
- KEY `akey` (`a`) `kkey1`=v1,
- KEY `ckey` (`c`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey2`=2v1 `tkey3`=3v1
-#add key
-alter table t1 add key bkey (b) kkey2=v2;
-Warnings:
-Warning 1911 Unknown option 'kkey2'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL `fkey1`=v2,
- `c` int(11) DEFAULT NULL `fkey1`=v1 `fkey2`=v2,
- `b` int(11) DEFAULT NULL `fkey2`=v1,
- KEY `akey` (`a`) `kkey1`=v1,
- KEY `ckey` (`c`),
- KEY `bkey` (`b`) `kkey2`=v2
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey2`=2v1 `tkey3`=3v1
-drop table t1;
-create table t1 (a int) tkey1=100;
-Warnings:
-Warning 1911 Unknown option 'tkey1'
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 `tkey1`=100
-drop table t1;
-#error on unknown option
-SET SQL_MODE='';
-create table t1 (a int fkey=vvv, key akey (a) dff=vvv) tkey1=1v1;
-ERROR HY000: Unknown option 'fkey'
-SET @@SQL_MODE=@OLD_SQL_MODE;
diff --git a/mysql-test/r/table_value_constr.result b/mysql-test/r/table_value_constr.result
deleted file mode 100644
index 39caba331ef..00000000000
--- a/mysql-test/r/table_value_constr.result
+++ /dev/null
@@ -1,2073 +0,0 @@
-create table t1 (a int, b int);
-insert into t1 values (1,2),(4,6),(9,7),
-(1,1),(2,5),(7,8);
-# just VALUES
-values (1,2);
-1 2
-1 2
-values (1,2), (3,4), (5.6,0);
-1 2
-1.0 2
-3.0 4
-5.6 0
-values ("abc", "def");
-abc def
-abc def
-# UNION that uses VALUES structure(s)
-select 1,2
-union
-values (1,2);
-1 2
-1 2
-values (1,2)
-union
-select 1,2;
-1 2
-1 2
-select 1,2
-union
-values (1,2),(3,4),(5,6),(7,8);
-1 2
-1 2
-3 4
-5 6
-7 8
-select 3,7
-union
-values (1,2),(3,4),(5,6);
-3 7
-3 7
-1 2
-3 4
-5 6
-select 3,7,4
-union
-values (1,2,5),(4,5,6);
-3 7 4
-3 7 4
-1 2 5
-4 5 6
-select 1,2
-union
-values (1,7),(3,6.5);
-1 2
-1 2.0
-1 7.0
-3 6.5
-select 1,2
-union
-values (1,2.0),(3,6);
-1 2
-1 2.0
-3 6.0
-select 1.8,2
-union
-values (1,2),(3,6);
-1.8 2
-1.8 2
-1.0 2
-3.0 6
-values (1,2.4),(3,6)
-union
-select 2.8,9;
-1 2.4
-1.0 2.4
-3.0 6.0
-2.8 9.0
-values (1,2),(3,4),(5,6),(7,8)
-union
-select 5,6;
-1 2
-1 2
-3 4
-5 6
-7 8
-select "ab","cdf"
-union
-values ("al","zl"),("we","q");
-ab cdf
-ab cdf
-al zl
-we q
-values ("ab", "cdf")
-union
-select "ab","cdf";
-ab cdf
-ab cdf
-values (1,2)
-union
-values (1,2),(5,6);
-1 2
-1 2
-5 6
-values (1,2)
-union
-values (3,4),(5,6);
-1 2
-1 2
-3 4
-5 6
-values (1,2)
-union
-values (1,2)
-union values (4,5);
-1 2
-1 2
-4 5
-# UNION ALL that uses VALUES structure
-values (1,2),(3,4)
-union all
-select 5,6;
-1 2
-1 2
-3 4
-5 6
-values (1,2),(3,4)
-union all
-select 1,2;
-1 2
-1 2
-3 4
-1 2
-select 5,6
-union all
-values (1,2),(3,4);
-5 6
-5 6
-1 2
-3 4
-select 1,2
-union all
-values (1,2),(3,4);
-1 2
-1 2
-1 2
-3 4
-values (1,2)
-union all
-values (1,2),(5,6);
-1 2
-1 2
-1 2
-5 6
-values (1,2)
-union all
-values (3,4),(5,6);
-1 2
-1 2
-3 4
-5 6
-values (1,2)
-union all
-values (1,2)
-union all
-values (4,5);
-1 2
-1 2
-1 2
-4 5
-values (1,2)
-union all
-values (1,2)
-union values (1,2);
-1 2
-1 2
-values (1,2)
-union
-values (1,2)
-union all
-values (1,2);
-1 2
-1 2
-1 2
-# EXCEPT that uses VALUES structure(s)
-select 1,2
-except
-values (3,4),(5,6);
-1 2
-1 2
-select 1,2
-except
-values (1,2),(3,4);
-1 2
-values (1,2),(3,4)
-except
-select 5,6;
-1 2
-1 2
-3 4
-values (1,2),(3,4)
-except
-select 1,2;
-1 2
-3 4
-values (1,2),(3,4)
-except
-values (5,6);
-1 2
-1 2
-3 4
-values (1,2),(3,4)
-except
-values (1,2);
-1 2
-3 4
-# INTERSECT that uses VALUES structure(s)
-select 1,2
-intersect
-values (3,4),(5,6);
-1 2
-select 1,2
-intersect
-values (1,2),(3,4);
-1 2
-1 2
-values (1,2),(3,4)
-intersect
-select 5,6;
-1 2
-values (1,2),(3,4)
-intersect
-select 1,2;
-1 2
-1 2
-values (1,2),(3,4)
-intersect
-values (5,6);
-1 2
-values (1,2),(3,4)
-intersect
-values (1,2);
-1 2
-1 2
-# combination of different structures that uses VALUES structures : UNION + EXCEPT
-values (1,2),(3,4)
-except
-select 1,2
-union values (1,2);
-1 2
-1 2
-3 4
-values (1,2),(3,4)
-except
-values (1,2)
-union
-values (1,2);
-1 2
-1 2
-3 4
-values (1,2),(3,4)
-except
-values (1,2)
-union
-values (3,4);
-1 2
-3 4
-values (1,2),(3,4)
-union
-values (1,2)
-except
-values (1,2);
-1 2
-3 4
-# combination of different structures that uses VALUES structures : UNION ALL + EXCEPT
-values (1,2),(3,4)
-except
-select 1,2
-union all
-values (1,2);
-1 2
-1 2
-3 4
-values (1,2),(3,4)
-except
-values (1,2)
-union all
-values (1,2);
-1 2
-1 2
-3 4
-values (1,2),(3,4)
-except
-values (1,2)
-union all
-values (3,4);
-1 2
-3 4
-3 4
-values (1,2),(3,4)
-union all
-values (1,2)
-except
-values (1,2);
-1 2
-3 4
-# combination of different structures that uses VALUES structures : UNION + INTERSECT
-values (1,2),(3,4)
-intersect
-select 1,2
-union
-values (1,2);
-1 2
-1 2
-values (1,2),(3,4)
-intersect
-values (1,2)
-union
-values (1,2);
-1 2
-1 2
-values (1,2),(3,4)
-intersect
-values (1,2)
-union
-values (3,4);
-1 2
-1 2
-3 4
-values (1,2),(3,4)
-union
-values (1,2)
-intersect
-values (1,2);
-1 2
-1 2
-3 4
-# combination of different structures that uses VALUES structures : UNION ALL + INTERSECT
-values (1,2),(3,4)
-intersect
-select 1,2
-union all
-values (1,2);
-1 2
-1 2
-1 2
-values (1,2),(3,4)
-intersect
-values (1,2)
-union all
-values (1,2);
-1 2
-1 2
-1 2
-values (1,2),(3,4)
-intersect
-values (1,2)
-union all
-values (3,4);
-1 2
-1 2
-3 4
-values (1,2),(3,4)
-union all
-values (1,2)
-intersect
-values (1,2);
-1 2
-1 2
-3 4
-1 2
-# combination of different structures that uses VALUES structures : UNION + UNION ALL
-values (1,2),(3,4)
-union all
-select 1,2
-union
-values (1,2);
-1 2
-1 2
-3 4
-values (1,2),(3,4)
-union all
-values (1,2)
-union
-values (1,2);
-1 2
-1 2
-3 4
-values (1,2),(3,4)
-union all
-values (1,2)
-union
-values (3,4);
-1 2
-1 2
-3 4
-values (1,2),(3,4)
-union
-values (1,2)
-union all
-values (1,2);
-1 2
-1 2
-3 4
-1 2
-values (1,2)
-union
-values (1,2)
-union all
-values (1,2);
-1 2
-1 2
-1 2
-# CTE that uses VALUES structure(s) : non-recursive CTE
-with t2 as
-(
-values (1,2),(3,4)
-)
-select * from t2;
-1 2
-1 2
-3 4
-with t2 as
-(
-select 1,2
-union
-values (1,2)
-)
-select * from t2;
-1 2
-1 2
-with t2 as
-(
-select 1,2
-union
-values (1,2),(3,4)
-)
-select * from t2;
-1 2
-1 2
-3 4
-with t2 as
-(
-values (1,2)
-union
-select 1,2
-)
-select * from t2;
-1 2
-1 2
-with t2 as
-(
-values (1,2),(3,4)
-union
-select 1,2
-)
-select * from t2;
-1 2
-1 2
-3 4
-with t2 as
-(
-values (5,6)
-union
-values (1,2),(3,4)
-)
-select * from t2;
-5 6
-5 6
-1 2
-3 4
-with t2 as
-(
-values (1,2)
-union
-values (1,2),(3,4)
-)
-select * from t2;
-1 2
-1 2
-3 4
-with t2 as
-(
-select 1,2
-union all
-values (1,2),(3,4)
-)
-select * from t2;
-1 2
-1 2
-1 2
-3 4
-with t2 as
-(
-values (1,2),(3,4)
-union all
-select 1,2
-)
-select * from t2;
-1 2
-1 2
-3 4
-1 2
-with t2 as
-(
-values (1,2)
-union all
-values (1,2),(3,4)
-)
-select * from t2;
-1 2
-1 2
-1 2
-3 4
-# recursive CTE that uses VALUES structure(s) : singe VALUES structure as anchor
-with recursive t2(a,b) as
-(
-values(1,1)
-union
-select t1.a, t1.b
-from t1,t2
-where t1.a=t2.a
-)
-select * from t2;
-a b
-1 1
-1 2
-with recursive t2(a,b) as
-(
-values(1,1)
-union
-select t1.a+1, t1.b
-from t1,t2
-where t1.a=t2.a
-)
-select * from t2;
-a b
-1 1
-2 2
-2 1
-3 5
-# recursive CTE that uses VALUES structure(s) : several VALUES structures as anchors
-with recursive t2(a,b) as
-(
-values(1,1)
-union
-values (3,4)
-union
-select t2.a+1, t1.b
-from t1,t2
-where t1.a=t2.a
-)
-select * from t2;
-a b
-1 1
-3 4
-2 2
-2 1
-3 5
-# recursive CTE that uses VALUES structure(s) : that uses UNION ALL
-with recursive t2(a,b,st) as
-(
-values(1,1,1)
-union all
-select t2.a, t1.b, t2.st+1
-from t1,t2
-where t1.a=t2.a and st<3
-)
-select * from t2;
-a b st
-1 1 1
-1 2 2
-1 1 2
-1 2 3
-1 2 3
-1 1 3
-1 1 3
-# recursive CTE that uses VALUES structure(s) : computation of factorial (first 10 elements)
-with recursive fact(n,f) as
-(
-values(1,1)
-union
-select n+1,f*n from fact where n < 10
-)
-select * from fact;
-n f
-1 1
-2 1
-3 2
-4 6
-5 24
-6 120
-7 720
-8 5040
-9 40320
-10 362880
-# Derived table that uses VALUES structure(s) : singe VALUES structure
-select * from (values (1,2),(3,4)) as t2;
-1 2
-1 2
-3 4
-# Derived table that uses VALUES structure(s) : UNION with VALUES structure(s)
-select * from (select 1,2 union values (1,2)) as t2;
-1 2
-1 2
-select * from (select 1,2 union values (1,2),(3,4)) as t2;
-1 2
-1 2
-3 4
-select * from (values (1,2) union select 1,2) as t2;
-1 2
-1 2
-select * from (values (1,2),(3,4) union select 1,2) as t2;
-1 2
-1 2
-3 4
-select * from (values (5,6) union values (1,2),(3,4)) as t2;
-5 6
-5 6
-1 2
-3 4
-select * from (values (1,2) union values (1,2),(3,4)) as t2;
-1 2
-1 2
-3 4
-# Derived table that uses VALUES structure(s) : UNION ALL with VALUES structure(s)
-select * from (select 1,2 union all values (1,2),(3,4)) as t2;
-1 2
-1 2
-1 2
-3 4
-select * from (values (1,2),(3,4) union all select 1,2) as t2;
-1 2
-1 2
-3 4
-1 2
-select * from (values (1,2) union all values (1,2),(3,4)) as t2;
-1 2
-1 2
-1 2
-3 4
-# CREATE VIEW that uses VALUES structure(s) : singe VALUES structure
-create view v1 as values (1,2),(3,4);
-select * from v1;
-1 2
-1 2
-3 4
-drop view v1;
-# CREATE VIEW that uses VALUES structure(s) : UNION with VALUES structure(s)
-create view v1 as
-select 1,2
-union
-values (1,2);
-select * from v1;
-1 2
-1 2
-drop view v1;
-create view v1 as
-select 1,2
-union
-values (1,2),(3,4);
-select * from v1;
-1 2
-1 2
-3 4
-drop view v1;
-create view v1 as
-values (1,2)
-union
-select 1,2;
-select * from v1;
-1 2
-1 2
-drop view v1;
-create view v1 as
-values (1,2),(3,4)
-union
-select 1,2;
-select * from v1;
-1 2
-1 2
-3 4
-drop view v1;
-create view v1 as
-values (5,6)
-union
-values (1,2),(3,4);
-select * from v1;
-5 6
-5 6
-1 2
-3 4
-drop view v1;
-# CREATE VIEW that uses VALUES structure(s) : UNION ALL with VALUES structure(s)
-create view v1 as
-values (1,2)
-union
-values (1,2),(3,4);
-select * from v1;
-1 2
-1 2
-3 4
-drop view v1;
-create view v1 as
-select 1,2
-union all
-values (1,2),(3,4);
-select * from v1;
-1 2
-1 2
-1 2
-3 4
-drop view v1;
-create view v1 as
-values (1,2),(3,4)
-union all
-select 1,2;
-select * from v1;
-1 2
-1 2
-3 4
-1 2
-drop view v1;
-create view v1 as
-values (1,2)
-union all
-values (1,2),(3,4);
-select * from v1;
-1 2
-1 2
-1 2
-3 4
-drop view v1;
-# IN-subquery with VALUES structure(s) : simple case
-select * from t1
-where a in (values (1));
-a b
-1 2
-1 1
-select * from t1
-where a in (select * from (values (1)) as tvc_0);
-a b
-1 2
-1 1
-explain extended select * from t1
-where a in (values (1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery3> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED <derived2> ALL NULL NULL NULL NULL 2 100.00
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1)) `tvc_0`) where `test`.`t1`.`a` = `tvc_0`.`1`
-explain extended select * from t1
-where a in (select * from (values (1)) as tvc_0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1)) `tvc_0`) where `test`.`t1`.`a` = `tvc_0`.`1`
-# IN-subquery with VALUES structure(s) : UNION with VALUES on the first place
-select * from t1
-where a in (values (1) union select 2);
-a b
-1 2
-1 1
-2 5
-select * from t1
-where a in (select * from (values (1)) as tvc_0 union
-select 2);
-a b
-1 2
-1 1
-2 5
-explain extended select * from t1
-where a in (values (1) union select 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-4 DEPENDENT SUBQUERY <derived2> ref key0 key0 4 func 2 100.00
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union4,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#4 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where <cache>(`test`.`t1`.`a`) = `tvc_0`.`1` union /* select#3 */ select 2 having <cache>(`test`.`t1`.`a`) = <ref_null_helper>(2))))
-explain extended select * from t1
-where a in (select * from (values (1)) as tvc_0 union
-select 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 DEPENDENT SUBQUERY <derived3> ref key0 key0 4 func 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where <cache>(`test`.`t1`.`a`) = `tvc_0`.`1` union /* select#4 */ select 2 having <cache>(`test`.`t1`.`a`) = <ref_null_helper>(2))))
-# IN-subquery with VALUES structure(s) : UNION with VALUES on the second place
-select * from t1
-where a in (select 2 union values (1));
-a b
-1 2
-1 1
-2 5
-select * from t1
-where a in (select 2 union
-select * from (values (1)) tvc_0);
-a b
-1 2
-1 1
-2 5
-explain extended select * from t1
-where a in (select 2 union values (1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 DEPENDENT UNION <derived3> ref key0 key0 4 func 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select 2 having <cache>(`test`.`t1`.`a`) = <ref_null_helper>(2) union /* select#4 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where <cache>(`test`.`t1`.`a`) = `tvc_0`.`1`)))
-explain extended select * from t1
-where a in (select 2 union
-select * from (values (1)) tvc_0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION <derived4> ref key0 key0 4 func 2 100.00
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select 2 having <cache>(`test`.`t1`.`a`) = <ref_null_helper>(2) union /* select#3 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where <cache>(`test`.`t1`.`a`) = `tvc_0`.`1`)))
-# IN-subquery with VALUES structure(s) : UNION ALL
-select * from t1
-where a in (values (1) union all select b from t1);
-a b
-1 2
-1 1
-2 5
-7 8
-select * from t1
-where a in (select * from (values (1)) as tvc_0 union all
-select b from t1);
-a b
-1 2
-1 1
-2 5
-7 8
-explain extended select * from t1
-where a in (values (1) union all select b from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-4 DEPENDENT SUBQUERY <derived2> ref key0 key0 4 func 2 100.00
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#4 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where <cache>(`test`.`t1`.`a`) = `tvc_0`.`1` union all /* select#3 */ select `test`.`t1`.`b` from `test`.`t1` where <cache>(`test`.`t1`.`a`) = `test`.`t1`.`b`)))
-explain extended select * from t1
-where a in (select * from (values (1)) as tvc_0 union all
-select b from t1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 DEPENDENT SUBQUERY <derived3> ref key0 key0 4 func 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 DEPENDENT UNION t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where <cache>(`test`.`t1`.`a`) = `tvc_0`.`1` union all /* select#4 */ select `test`.`t1`.`b` from `test`.`t1` where <cache>(`test`.`t1`.`a`) = `test`.`t1`.`b`)))
-# NOT IN subquery with VALUES structure(s) : simple case
-select * from t1
-where a not in (values (1),(2));
-a b
-4 6
-9 7
-7 8
-select * from t1
-where a not in (select * from (values (1),(2)) as tvc_0);
-a b
-4 6
-9 7
-7 8
-explain extended select * from t1
-where a not in (values (1),(2));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-3 MATERIALIZED <derived2> ALL NULL NULL NULL NULL 2 100.00
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where !<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,`test`.`t1`.`a` in ( <materialize> (/* select#3 */ select `tvc_0`.`1` from (values (1),(2)) `tvc_0` ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery3>`.`1`))))
-explain extended select * from t1
-where a not in (select * from (values (1),(2)) as tvc_0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where !<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,`test`.`t1`.`a` in ( <materialize> (/* select#2 */ select `tvc_0`.`1` from (values (1),(2)) `tvc_0` ), <primary_index_lookup>(`test`.`t1`.`a` in <temporary table> on distinct_key where `test`.`t1`.`a` = `<subquery2>`.`1`))))
-# NOT IN subquery with VALUES structure(s) : UNION with VALUES on the first place
-select * from t1
-where a not in (values (1) union select 2);
-a b
-4 6
-9 7
-7 8
-select * from t1
-where a not in (select * from (values (1)) as tvc_0 union
-select 2);
-a b
-4 6
-9 7
-7 8
-explain extended select * from t1
-where a not in (values (1) union select 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-4 DEPENDENT SUBQUERY <derived2> ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union4,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where !<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#4 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where trigcond(<cache>(`test`.`t1`.`a`) = `tvc_0`.`1`) union /* select#3 */ select 2 having trigcond(<cache>(`test`.`t1`.`a`) = <ref_null_helper>(2)))))
-explain extended select * from t1
-where a not in (select * from (values (1)) as tvc_0 union
-select 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 DEPENDENT SUBQUERY <derived3> ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where !<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where trigcond(<cache>(`test`.`t1`.`a`) = `tvc_0`.`1`) union /* select#4 */ select 2 having trigcond(<cache>(`test`.`t1`.`a`) = <ref_null_helper>(2)))))
-# NOT IN subquery with VALUES structure(s) : UNION with VALUES on the second place
-select * from t1
-where a not in (select 2 union values (1));
-a b
-4 6
-9 7
-7 8
-select * from t1
-where a not in (select 2 union
-select * from (values (1)) as tvc_0);
-a b
-4 6
-9 7
-7 8
-explain extended select * from t1
-where a not in (select 2 union values (1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 DEPENDENT UNION <derived3> ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where !<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select 2 having trigcond(<cache>(`test`.`t1`.`a`) = <ref_null_helper>(2)) union /* select#4 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where trigcond(<cache>(`test`.`t1`.`a`) = `tvc_0`.`1`))))
-explain extended select * from t1
-where a not in (select 2 union
-select * from (values (1)) as tvc_0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION <derived4> ALL NULL NULL NULL NULL 2 100.00 Using where
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where !<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select 2 having trigcond(<cache>(`test`.`t1`.`a`) = <ref_null_helper>(2)) union /* select#3 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where trigcond(<cache>(`test`.`t1`.`a`) = `tvc_0`.`1`))))
-# ANY-subquery with VALUES structure(s) : simple case
-select * from t1
-where a = any (values (1),(2));
-a b
-1 2
-1 1
-2 5
-select * from t1
-where a = any (select * from (values (1),(2)) as tvc_0);
-a b
-1 2
-1 1
-2 5
-explain extended select * from t1
-where a = any (values (1),(2));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery3> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-3 MATERIALIZED <derived2> ALL NULL NULL NULL NULL 2 100.00
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) where `test`.`t1`.`a` = `tvc_0`.`1`
-explain extended select * from t1
-where a = any (select * from (values (1),(2)) as tvc_0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 2 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) where `test`.`t1`.`a` = `tvc_0`.`1`
-# ANY-subquery with VALUES structure(s) : UNION with VALUES on the first place
-select * from t1
-where a = any (values (1) union select 2);
-a b
-1 2
-1 1
-2 5
-select * from t1
-where a = any (select * from (values (1)) as tvc_0 union
-select 2);
-a b
-1 2
-1 1
-2 5
-explain extended select * from t1
-where a = any (values (1) union select 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-4 DEPENDENT SUBQUERY <derived2> ref key0 key0 4 func 2 100.00
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union4,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#4 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where <cache>(`test`.`t1`.`a`) = `tvc_0`.`1` union /* select#3 */ select 2 having <cache>(`test`.`t1`.`a`) = <ref_null_helper>(2))))
-explain extended select * from t1
-where a = any (select * from (values (1)) as tvc_0 union
-select 2);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 DEPENDENT SUBQUERY <derived3> ref key0 key0 4 func 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where <cache>(`test`.`t1`.`a`) = `tvc_0`.`1` union /* select#4 */ select 2 having <cache>(`test`.`t1`.`a`) = <ref_null_helper>(2))))
-# ANY-subquery with VALUES structure(s) : UNION with VALUES on the second place
-select * from t1
-where a = any (select 2 union values (1));
-a b
-1 2
-1 1
-2 5
-select * from t1
-where a = any (select 2 union
-select * from (values (1)) as tvc_0);
-a b
-1 2
-1 1
-2 5
-explain extended select * from t1
-where a = any (select 2 union values (1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 DEPENDENT UNION <derived3> ref key0 key0 4 func 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select 2 having <cache>(`test`.`t1`.`a`) = <ref_null_helper>(2) union /* select#4 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where <cache>(`test`.`t1`.`a`) = `tvc_0`.`1`)))
-explain extended select * from t1
-where a = any (select 2 union
-select * from (values (1)) as tvc_0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION <derived4> ref key0 key0 4 func 2 100.00
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select 2 having <cache>(`test`.`t1`.`a`) = <ref_null_helper>(2) union /* select#3 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where <cache>(`test`.`t1`.`a`) = `tvc_0`.`1`)))
-# ALL-subquery with VALUES structure(s) : simple case
-select * from t1
-where a = all (values (1));
-a b
-1 2
-1 1
-select * from t1
-where a = all (select * from (values (1)) as tvc_0);
-a b
-1 2
-1 1
-explain extended select * from t1
-where a = all (values (1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-3 DEPENDENT SUBQUERY <derived2> ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <not>(<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#3 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where trigcond(<cache>(`test`.`t1`.`a`) <> `tvc_0`.`1`)))))
-explain extended select * from t1
-where a = all (select * from (values (1)) as tvc_0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 DEPENDENT SUBQUERY <derived3> ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <not>(<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where trigcond(<cache>(`test`.`t1`.`a`) <> `tvc_0`.`1`)))))
-# ALL-subquery with VALUES structure(s) : UNION with VALUES on the first place
-select * from t1
-where a = all (values (1) union select 1);
-a b
-1 2
-1 1
-select * from t1
-where a = all (select * from (values (1)) as tvc_0 union
-select 1);
-a b
-1 2
-1 1
-explain extended select * from t1
-where a = all (values (1) union select 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-4 DEPENDENT SUBQUERY <derived2> ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union4,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <not>(<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#4 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where trigcond(<cache>(`test`.`t1`.`a`) <> `tvc_0`.`1`) union /* select#3 */ select 1 having trigcond(<cache>(`test`.`t1`.`a`) <> <ref_null_helper>(1))))))
-explain extended select * from t1
-where a = all (select * from (values (1)) as tvc_0 union
-select 1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 DEPENDENT SUBQUERY <derived3> ALL NULL NULL NULL NULL 2 100.00 Using where
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 DEPENDENT UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <not>(<expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where trigcond(<cache>(`test`.`t1`.`a`) <> `tvc_0`.`1`) union /* select#4 */ select 1 having trigcond(<cache>(`test`.`t1`.`a`) <> <ref_null_helper>(1))))))
-# ALL-subquery with VALUES structure(s) : UNION with VALUES on the second place
-select * from t1
-where a = any (select 1 union values (1));
-a b
-1 2
-1 1
-select * from t1
-where a = any (select 1 union
-select * from (values (1)) as tvc_0);
-a b
-1 2
-1 1
-explain extended select * from t1
-where a = any (select 1 union values (1));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-4 DEPENDENT UNION <derived3> ref key0 key0 4 func 2 100.00
-3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,4> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select 1 having <cache>(`test`.`t1`.`a`) = <ref_null_helper>(1) union /* select#4 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where <cache>(`test`.`t1`.`a`) = `tvc_0`.`1`)))
-explain extended select * from t1
-where a = any (select 1 union
-select * from (values (1)) as tvc_0);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where
-2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 DEPENDENT UNION <derived4> ref key0 key0 4 func 2 100.00
-4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(<in_optimizer>(`test`.`t1`.`a`,<exists>(/* select#2 */ select 1 having <cache>(`test`.`t1`.`a`) = <ref_null_helper>(1) union /* select#3 */ select `tvc_0`.`1` from (values (1)) `tvc_0` where <cache>(`test`.`t1`.`a`) = `tvc_0`.`1`)))
-# prepare statement that uses VALUES structure(s): single VALUES structure
-prepare stmt1 from "
-values (1,2);
-";
-execute stmt1;
-1 2
-1 2
-execute stmt1;
-1 2
-1 2
-deallocate prepare stmt1;
-# prepare statement that uses VALUES structure(s): UNION with VALUES structure(s)
-prepare stmt1 from "
- select 1,2
- union
- values (1,2),(3,4);
-";
-execute stmt1;
-1 2
-1 2
-3 4
-execute stmt1;
-1 2
-1 2
-3 4
-deallocate prepare stmt1;
-prepare stmt1 from "
- values (1,2),(3,4)
- union
- select 1,2;
-";
-execute stmt1;
-1 2
-1 2
-3 4
-execute stmt1;
-1 2
-1 2
-3 4
-deallocate prepare stmt1;
-prepare stmt1 from "
- select 1,2
- union
- values (3,4)
- union
- values (1,2);
-";
-execute stmt1;
-1 2
-1 2
-3 4
-execute stmt1;
-1 2
-1 2
-3 4
-deallocate prepare stmt1;
-prepare stmt1 from "
- values (5,6)
- union
- values (1,2),(3,4);
-";
-execute stmt1;
-5 6
-5 6
-1 2
-3 4
-execute stmt1;
-5 6
-5 6
-1 2
-3 4
-deallocate prepare stmt1;
-# prepare statement that uses VALUES structure(s): UNION ALL with VALUES structure(s)
-prepare stmt1 from "
- select 1,2
- union
- values (1,2),(3,4);
-";
-execute stmt1;
-1 2
-1 2
-3 4
-execute stmt1;
-1 2
-1 2
-3 4
-deallocate prepare stmt1;
-prepare stmt1 from "
- values (1,2),(3,4)
- union all
- select 1,2;
-";
-execute stmt1;
-1 2
-1 2
-3 4
-1 2
-execute stmt1;
-1 2
-1 2
-3 4
-1 2
-deallocate prepare stmt1;
-prepare stmt1 from "
- select 1,2
- union all
- values (3,4)
- union all
- values (1,2);
-";
-execute stmt1;
-1 2
-1 2
-3 4
-1 2
-execute stmt1;
-1 2
-1 2
-3 4
-1 2
-deallocate prepare stmt1;
-prepare stmt1 from "
- values (1,2)
- union all
- values (1,2),(3,4);
-";
-execute stmt1;
-1 2
-1 2
-1 2
-3 4
-execute stmt1;
-1 2
-1 2
-1 2
-3 4
-deallocate prepare stmt1;
-# explain query that uses VALUES structure(s): single VALUES structure
-explain
-values (1,2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-explain format=json
-values (1,2);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<unit1>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-# explain query that uses VALUES structure(s): UNION with VALUES structure(s)
-explain
-select 1,2
-union
-values (1,2),(3,4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-explain
-values (1,2),(3,4)
-union
-select 1,2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-explain
-values (5,6)
-union
-values (1,2),(3,4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-explain format=json
-select 1,2
-union
-values (1,2),(3,4);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-explain format=json
-values (1,2),(3,4)
-union
-select 1,2;
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-explain format=json
-values (5,6)
-union
-values (1,2),(3,4);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-explain
-select 1,2
-union
-values (3,4)
-union
-values (1,2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,2,3> ALL NULL NULL NULL NULL NULL
-explain format=json
-select 1,2
-union
-values (3,4)
-union
-values (1,2);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-# explain query that uses VALUES structure(s): UNION ALL with VALUES structure(s)
-explain
-select 1,2
-union
-values (1,2),(3,4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-explain
-values (1,2),(3,4)
-union all
-select 1,2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-explain
-values (1,2)
-union all
-values (1,2),(3,4);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-explain format=json
-values (1,2),(3,4)
-union all
-select 1,2;
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-explain format=json
-select 1,2
-union
-values (1,2),(3,4);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-explain format=json
-values (1,2)
-union all
-values (1,2),(3,4);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-explain
-select 1,2
-union all
-values (3,4)
-union all
-values (1,2);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-explain format=json
-select 1,2
-union all
-values (3,4)
-union all
-values (1,2);
-EXPLAIN
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2,3>",
- "access_type": "ALL",
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-# analyze query that uses VALUES structure(s): single VALUES structure
-analyze
-values (1,2);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-analyze format=json
-values (1,2);
-ANALYZE
-{
- "query_block": {
- "union_result": {
- "table_name": "<unit1>",
- "access_type": "ALL",
- "r_loops": 0,
- "r_rows": null,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-# analyze query that uses VALUES structure(s): UNION with VALUES structure(s)
-analyze
-select 1,2
-union
-values (1,2),(3,4);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL 2.00 NULL NULL
-analyze
-values (1,2),(3,4)
-union
-select 1,2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL 2.00 NULL NULL
-analyze
-values (5,6)
-union
-values (1,2),(3,4);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL 3.00 NULL NULL
-analyze format=json
-select 1,2
-union
-values (1,2),(3,4);
-ANALYZE
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "r_loops": 1,
- "r_rows": 2,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-analyze format=json
-values (1,2),(3,4)
-union
-select 1,2;
-ANALYZE
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "r_loops": 1,
- "r_rows": 2,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-analyze format=json
-values (5,6)
-union
-values (1,2),(3,4);
-ANALYZE
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "r_loops": 1,
- "r_rows": 3,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-analyze
-select 1,2
-union
-values (3,4)
-union
-values (1,2);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,2,3> ALL NULL NULL NULL NULL NULL 2.00 NULL NULL
-analyze format=json
-select 1,2
-union
-values (3,4)
-union
-values (1,2);
-ANALYZE
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2,3>",
- "access_type": "ALL",
- "r_loops": 1,
- "r_rows": 2,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-# analyze query that uses VALUES structure(s): UNION ALL with VALUES structure(s)
-analyze
-select 1,2
-union
-values (1,2),(3,4);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL 2.00 NULL NULL
-analyze
-values (1,2),(3,4)
-union all
-select 1,2;
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-analyze
-values (1,2)
-union all
-values (1,2),(3,4);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-analyze format=json
-values (1,2),(3,4)
-union all
-select 1,2;
-ANALYZE
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "r_loops": 0,
- "r_rows": null,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-analyze format=json
-select 1,2
-union
-values (1,2),(3,4);
-ANALYZE
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "r_loops": 1,
- "r_rows": 2,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-analyze format=json
-values (1,2)
-union all
-values (1,2),(3,4);
-ANALYZE
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2>",
- "access_type": "ALL",
- "r_loops": 0,
- "r_rows": null,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-analyze
-select 1,2
-union all
-values (3,4)
-union all
-values (1,2);
-id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-3 UNION NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-analyze format=json
-select 1,2
-union all
-values (3,4)
-union all
-values (1,2);
-ANALYZE
-{
- "query_block": {
- "union_result": {
- "table_name": "<union1,2,3>",
- "access_type": "ALL",
- "r_loops": 0,
- "r_rows": null,
- "query_specifications": [
- {
- "query_block": {
- "select_id": 1,
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 2,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- },
- {
- "query_block": {
- "select_id": 3,
- "operation": "UNION",
- "table": {
- "message": "No tables used"
- }
- }
- }
- ]
- }
- }
-}
-# different number of values in TVC
-values (1,2),(3,4,5);
-ERROR HY000: The used table value constructor has a different number of values
-# illegal parameter data types in TVC
-values (1,point(1,1)),(1,1);
-ERROR HY000: Illegal parameter data types geometry and int for operation 'TABLE VALUE CONSTRUCTOR'
-values (1,point(1,1)+1);
-ERROR HY000: Illegal parameter data types geometry and int for operation '+'
-# field reference in TVC
-select * from (values (1), (b), (2)) as new_tvc;
-ERROR HY000: Field reference 'b' can't be used in table value constructor
-select * from (values (1), (t1.b), (2)) as new_tvc;
-ERROR HY000: Field reference 't1.b' can't be used in table value constructor
-drop table t1;
diff --git a/mysql-test/r/tablelock.result b/mysql-test/r/tablelock.result
deleted file mode 100644
index 6923ad40916..00000000000
--- a/mysql-test/r/tablelock.result
+++ /dev/null
@@ -1,57 +0,0 @@
-drop table if exists t1,t2;
-create table t1 ( n int auto_increment primary key);
-lock tables t1 write;
-insert into t1 values(NULL);
-unlock tables;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-lock tables t1 write, t1 as t0 read;
-insert into t1 values(NULL);
-unlock tables;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-lock tables t1 write, t1 as t0 read, t1 as t2 read;
-insert into t1 values(NULL);
-unlock tables;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-lock tables t1 write, t1 as t0 write, t1 as t2 read;
-insert into t1 values(NULL);
-unlock tables;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-lock tables t1 write, t1 as t0 write, t1 as t2 read, t1 as t3 read;
-insert into t1 values(NULL);
-unlock tables;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-lock tables t1 write, t1 as t0 write, t1 as t2 write;
-insert into t1 values(NULL);
-unlock tables;
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-drop table t1;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int);
-lock tables t1 write,t1 as b write, t2 write, t2 as c read;
-drop table t1,t2;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (a int);
-lock tables t1 write,t1 as b write, t2 write, t2 as c read;
-drop table t2,t1;
-unlock tables;
-create temporary table t1(f1 int);
-lock tables t1 write;
-insert into t1 values (1);
-show columns from t1;
-Field Type Null Key Default Extra
-f1 int(11) YES NULL
-insert into t1 values(2);
-drop table t1;
-unlock tables;
diff --git a/mysql-test/r/tablespace.result b/mysql-test/r/tablespace.result
deleted file mode 100644
index 38d450ae430..00000000000
--- a/mysql-test/r/tablespace.result
+++ /dev/null
@@ -1,112 +0,0 @@
-CREATE TABLE t1(a int) TABLESPACE ts ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) /*!50100 TABLESPACE ts */ ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1(a int) TABLESPACE ts STORAGE DISK ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) /*!50100 TABLESPACE ts STORAGE DISK */ ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1(a int) TABLESPACE ts STORAGE MEMORY ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) /*!50100 TABLESPACE ts STORAGE MEMORY */ ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1(a int) STORAGE MEMORY ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) /*!50100 STORAGE MEMORY */ ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1(a int) STORAGE DISK ENGINE=MyISAM;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) /*!50100 STORAGE DISK */ ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1(a int) TABLESPACE ts ENGINE=MyISAM;
-ALTER TABLE t1 ADD COLUMN b int;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) /*!50100 TABLESPACE ts */ ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1(a int) TABLESPACE ts STORAGE DISK ENGINE=MyISAM;
-ALTER TABLE t1 ADD COLUMN b int;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) /*!50100 TABLESPACE ts STORAGE DISK */ ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1(a int) ENGINE=MyISAM;
-ALTER TABLE t1 TABLESPACE ts;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) /*!50100 TABLESPACE ts */ ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 TABLESPACE ts2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) /*!50100 TABLESPACE ts2 */ ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1(a int) ENGINE=MyISAM;
-ALTER TABLE t1 STORAGE MEMORY;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) /*!50100 STORAGE MEMORY */ ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 STORAGE DISK;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) /*!50100 STORAGE DISK */ ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1(a int) ENGINE=MyISAM;
-ALTER TABLE t1 STORAGE MEMORY TABLESPACE ts;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) /*!50100 TABLESPACE ts STORAGE MEMORY */ ENGINE=MyISAM DEFAULT CHARSET=latin1
-ALTER TABLE t1 STORAGE DISK TABLESPACE ts2;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) /*!50100 TABLESPACE ts2 STORAGE DISK */ ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) DEFAULT NULL,
- `c` int(11) DEFAULT NULL,
- `d` int(11) NOT NULL,
- `e` int(11) DEFAULT NULL,
- `f` int(11) DEFAULT NULL,
- `g` int(11) DEFAULT NULL,
- `h` int(11) NOT NULL,
- `i` int(11) DEFAULT NULL,
- `j` int(11) DEFAULT NULL,
- `k` int(11) DEFAULT NULL,
- PRIMARY KEY (`a`)
-) /*!50100 TABLESPACE the_tablespacename STORAGE DISK */ ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
diff --git a/mysql-test/r/tc_heuristic_recover.result b/mysql-test/r/tc_heuristic_recover.result
deleted file mode 100644
index 193a73c77f8..00000000000
--- a/mysql-test/r/tc_heuristic_recover.result
+++ /dev/null
@@ -1,38 +0,0 @@
-call mtr.add_suppression("Can't init tc log");
-call mtr.add_suppression("Found 1 prepared transactions!");
-call mtr.add_suppression("Aborting");
-CREATE TABLE t1 (i INT) ENGINE=InnoDB;
-SET GLOBAL innodb_flush_log_at_trx_commit=1;
-FLUSH TABLES;
-connect con1,localhost,root,,;
-set debug_sync='ha_commit_trans_after_prepare WAIT_FOR go';
-INSERT INTO t1 VALUES (1);;
-connection default;
-# Prove that no COMMIT or ROLLBACK occurred yet.
-SELECT * FROM t1;
-i
-SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
-SELECT * FROM t1;
-i
-1
-# Kill the server
-FOUND 1 /was in the XA prepared state/ in mysqld.1.err
-FOUND 1 /Found 1 prepared transactions!/ in mysqld.1.err
-NOT FOUND /\[ERROR\] Can\'t init tc log/ in mysqld.1.err
-FOUND 2 /was in the XA prepared state/ in mysqld.1.err
-FOUND 1 /Found 1 prepared transactions!/ in mysqld.1.err
-FOUND 1 /\[ERROR\] Can\'t init tc log/ in mysqld.1.err
-FOUND 1 /Please restart mysqld without --tc-heuristic-recover/ in mysqld.1.err
-FOUND 3 /was in the XA prepared state/ in mysqld.1.err
-FOUND 1 /Found 1 prepared transactions!/ in mysqld.1.err
-FOUND 2 /\[ERROR\] Can\'t init tc log/ in mysqld.1.err
-FOUND 2 /Please restart mysqld without --tc-heuristic-recover/ in mysqld.1.err
-FOUND 3 /was in the XA prepared state/ in mysqld.1.err
-FOUND 1 /Found 1 prepared transactions!/ in mysqld.1.err
-SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
-SELECT * FROM t1;
-i
-SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
-SELECT * FROM t1;
-i
-DROP TABLE t1;
diff --git a/mysql-test/r/temp_table.result b/mysql-test/r/temp_table.result
deleted file mode 100644
index d1bec4a2af5..00000000000
--- a/mysql-test/r/temp_table.result
+++ /dev/null
@@ -1,550 +0,0 @@
-drop table if exists t1,t2;
-drop view if exists v1;
-#
-# test basic creation of temporary tables together with normal table
-#
-create table t1 (a int);
-create temporary table t1 AS SELECT 1;
-create temporary table t1 AS SELECT 1;
-ERROR 42S01: Table 't1' already exists
-create temporary table t1 (a int);
-ERROR 42S01: Table 't1' already exists
-drop temporary table t1;
-drop table t1;
-create temporary table t1 AS SELECT 1;
-create temporary table t1 AS SELECT 1;
-ERROR 42S01: Table 't1' already exists
-create temporary table t1 (a int);
-ERROR 42S01: Table 't1' already exists
-drop temporary table t1;
-#
-# Test with rename
-#
-CREATE TABLE t1 (c int not null, d char (10) not null);
-insert into t1 values(1,""),(2,"a"),(3,"b");
-CREATE TEMPORARY TABLE t1 (a int not null, b char (10) not null);
-insert into t1 values(4,"e"),(5,"f"),(6,"g");
-alter table t1 rename t2;
-select * from t1;
-c d
-1
-2 a
-3 b
-select * from t2;
-a b
-4 e
-5 f
-6 g
-CREATE TABLE t2 (x int not null, y int not null);
-alter table t2 rename t1;
-select * from t1;
-a b
-4 e
-5 f
-6 g
-create TEMPORARY TABLE t2 engine=heap select * from t1;
-create TEMPORARY TABLE IF NOT EXISTS t2 (a int) engine=heap;
-Warnings:
-Note 1050 Table 't2' already exists
-CREATE TEMPORARY TABLE t1 (a int not null, b char (10) not null);
-ERROR 42S01: Table 't1' already exists
-ALTER TABLE t1 RENAME t2;
-ERROR 42S01: Table 't2' already exists
-select * from t2;
-a b
-4 e
-5 f
-6 g
-alter table t2 add primary key (a,b);
-drop table t1,t2;
-select * from t1;
-c d
-1
-2 a
-3 b
-drop table t2;
-create temporary table t1 select *,2 as "e" from t1;
-select * from t1;
-c d e
-1 2
-2 a 2
-3 b 2
-drop table t1;
-drop table t1;
-CREATE TABLE t1 (pkCrash INTEGER PRIMARY KEY,strCrash VARCHAR(255));
-INSERT INTO t1 ( pkCrash, strCrash ) VALUES ( 1, '1');
-SELECT CONCAT_WS(pkCrash, strCrash) FROM t1;
-CONCAT_WS(pkCrash, strCrash)
-1
-drop table t1;
-create temporary table t1 select 1 as 'x';
-drop table t1;
-CREATE TABLE t1 (x INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TEMPORARY TABLE tmp SELECT *, NULL FROM t1;
-drop table t1;
-create temporary table t1 (id int(10) not null unique);
-create temporary table t2 (id int(10) not null primary key,
-val int(10) not null);
-insert into t1 values (1),(2),(4);
-insert into t2 values (1,1),(2,1),(3,1),(4,2);
-select one.id, two.val, elt(two.val,'one','two') from t1 one, t2 two where two.id=one.id order by one.id;
-id val elt(two.val,'one','two')
-1 1 one
-2 1 one
-4 2 two
-drop table t1,t2;
-create temporary table t1 (a int not null);
-insert into t1 values (1),(1);
-alter table t1 add primary key (a);
-ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
-drop table t1;
-CREATE TABLE t1 (
-d datetime default NULL
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES ('2002-10-24 14:50:32'),('2002-10-24 14:50:33'),('2002-10-24 14:50:34'),('2002-10-24 14:50:34'),('2002-10-24 14:50:34'),('2002-10-24 14:50:35'),('2002-10-24 14:50:35'),('2002-10-24 14:50:35'),('2002-10-24 14:50:35'),('2002-10-24 14:50:36'),('2002-10-24 14:50:36'),('2002-10-24 14:50:36'),('2002-10-24 14:50:36'),('2002-10-24 14:50:37'),('2002-10-24 14:50:37'),('2002-10-24 14:50:37'),('2002-10-24 14:50:37'),('2002-10-24 14:50:38'),('2002-10-24 14:50:38'),('2002-10-24 14:50:38'),('2002-10-24 14:50:39'),('2002-10-24 14:50:39'),('2002-10-24 14:50:39'),('2002-10-24 14:50:39'),('2002-10-24 14:50:40'),('2002-10-24 14:50:40'),('2002-10-24 14:50:40');
-flush status;
-select * from t1 group by d;
-d
-2002-10-24 14:50:32
-2002-10-24 14:50:33
-2002-10-24 14:50:34
-2002-10-24 14:50:35
-2002-10-24 14:50:36
-2002-10-24 14:50:37
-2002-10-24 14:50:38
-2002-10-24 14:50:39
-2002-10-24 14:50:40
-show status like "created_tmp%tables";
-Variable_name Value
-Created_tmp_disk_tables 0
-Created_tmp_tables 1
-drop table t1;
-create temporary table v1 as select 'This is temp. table' A;
-create view v1 as select 'This is view' A;
-select * from v1;
-A
-This is temp. table
-show create table v1;
-Table Create Table
-v1 CREATE TEMPORARY TABLE `v1` (
- `A` varchar(19) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 'This is view' AS `A` latin1 latin1_swedish_ci
-drop view v1;
-select * from v1;
-A
-This is temp. table
-create view v1 as select 'This is view again' A;
-select * from v1;
-A
-This is temp. table
-drop table v1;
-select * from v1;
-A
-This is view again
-drop view v1;
-create table t1 (a int, b int, index(a), index(b));
-create table t2 (c int auto_increment, d varchar(255), primary key (c));
-insert into t1 values (3,1),(3,2);
-insert into t2 values (NULL, 'foo'), (NULL, 'bar');
-select d, c from t1 left join t2 on b = c where a = 3 order by d;
-d c
-bar 2
-foo 1
-drop table t1, t2;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (i INT);
-LOCK TABLE t1 WRITE;
-connect conn1, localhost, root,,;
-CREATE TEMPORARY TABLE t1 (i INT);
-The following command should not block
-DROP TEMPORARY TABLE t1;
-disconnect conn1;
-connection default;
-DROP TABLE t1;
-CREATE TABLE t1 (i INT);
-CREATE TEMPORARY TABLE t2 (i INT);
-DROP TEMPORARY TABLE t2, t1;
-ERROR 42S02: Unknown table 'test.t1'
-SELECT * FROM t2;
-ERROR 42S02: Table 'test.t2' doesn't exist
-SELECT * FROM t1;
-i
-DROP TABLE t1;
-End of 4.1 tests.
-CREATE TABLE t1 ( c FLOAT( 20, 14 ) );
-INSERT INTO t1 VALUES( 12139 );
-CREATE TABLE t2 ( c FLOAT(30,18) );
-INSERT INTO t2 VALUES( 123456 );
-SELECT AVG( c ) FROM t1 UNION SELECT 1;
-AVG( c )
-12139.000000000000000000
-1.000000000000000000
-SELECT 1 UNION SELECT AVG( c ) FROM t1;
-1
-1.000000000000000000
-12139.000000000000000000
-SELECT 1 UNION SELECT * FROM t2 UNION SELECT 1;
-1
-1.000000000000000000
-123456.000000000000000000
-SELECT c/1 FROM t1 UNION SELECT 1;
-c/1
-12139.000000000000000000
-1.000000000000000000
-DROP TABLE t1, t2;
-create temporary table t1 (a int);
-insert into t1 values (4711);
-select * from t1;
-a
-4711
-truncate t1;
-insert into t1 values (42);
-select * from t1;
-a
-42
-drop table t1;
-CREATE TEMPORARY TABLE t1(a INT, b VARCHAR(20));
-INSERT INTO t1 VALUES(1, 'val1'), (2, 'val2'), (3, 'val3');
-DELETE FROM t1 WHERE a=1;
-SELECT count(*) FROM t1;
-count(*)
-2
-DELETE FROM t1;
-SELECT * FROM t1;
-a b
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1,t2;
-DROP FUNCTION IF EXISTS f1;
-CREATE TEMPORARY TABLE t1 (a INT);
-CREATE TEMPORARY TABLE t2 LIKE t1;
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-return 1;
-END|
-INSERT INTO t2 SELECT * FROM t1;
-INSERT INTO t1 SELECT f1();
-CREATE TABLE t3 SELECT * FROM t1;
-INSERT INTO t1 SELECT f1();
-UPDATE t1,t2 SET t1.a = t2.a;
-INSERT INTO t2 SELECT f1();
-DROP TABLE t1,t2,t3;
-DROP FUNCTION f1;
-#
-# Bug #48067: A temp table with the same name as an existing table,
-# makes drop database fail.
-#
-DROP TEMPORARY TABLE IF EXISTS bug48067.t1;
-DROP DATABASE IF EXISTS bug48067;
-CREATE DATABASE bug48067;
-CREATE TABLE bug48067.t1 (c1 int);
-INSERT INTO bug48067.t1 values (1);
-CREATE TEMPORARY TABLE bug48067.t1 (c1 int);
-DROP DATABASE bug48067;
-DROP TEMPORARY table bug48067.t1;
-End of 5.1 tests
-#
-# Test that admin statements work for temporary tables.
-#
-DROP TABLE IF EXISTS t1,t2;
-CREATE TEMPORARY TABLE t1(a INT);
-CREATE TEMPORARY TABLE t2(b INT);
-CREATE TEMPORARY TABLE t3(c INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-INSERT INTO t2 VALUES (11), (12), (13);
-INSERT INTO t3 VALUES (101), (102), (103);
-ANALYZE TABLE t1, t2, t3;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-test.t2 analyze status OK
-test.t3 analyze status OK
-INSERT INTO t1 VALUES (1), (2), (3);
-INSERT INTO t2 VALUES (11), (12), (13);
-INSERT INTO t3 VALUES (101), (102), (103);
-CHECK TABLE t1, t2, t3;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-test.t2 check status OK
-test.t3 check status OK
-INSERT INTO t1 VALUES (1), (2), (3);
-INSERT INTO t2 VALUES (11), (12), (13);
-INSERT INTO t3 VALUES (101), (102), (103);
-CHECKSUM TABLE t1, t2, t3;
-Table Checksum
-test.t1 xxx
-test.t2 xxx
-test.t3 xxx
-INSERT INTO t1 VALUES (1), (2), (3);
-INSERT INTO t2 VALUES (11), (12), (13);
-INSERT INTO t3 VALUES (101), (102), (103);
-OPTIMIZE TABLE t1, t2, t3;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-test.t2 optimize status OK
-test.t3 optimize status OK
-INSERT INTO t1 VALUES (1), (2), (3);
-INSERT INTO t2 VALUES (11), (12), (13);
-INSERT INTO t3 VALUES (101), (102), (103);
-REPAIR TABLE t1, t2, t3;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-test.t2 repair status OK
-test.t3 repair status OK
-DROP TABLES t1, t2, t3;
-CREATE TEMPORARY TABLE t1 (a int);
-RENAME TABLE t1 TO t2;
-DROP TABLE t2;
-create temporary temporary table t1 (a int);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'temporary table t1 (a int)' at line 1
-flush status;
-create table t1 (a int);
-create temporary table t2 (a int);
-create temporary table t3 (a int);
-drop table t1;
-drop table t2;
-drop temporary table t3;
-show status like 'com_create%table';
-Variable_name Value
-Com_create_table 1
-Com_create_temporary_table 2
-show status like 'com_drop%table';
-Variable_name Value
-Com_drop_table 2
-Com_drop_temporary_table 1
-#
-# Some more generic temporary table tests
-# added during MDEV-5535.
-#
-DROP DATABASE IF EXISTS temp_db;
-CREATE DATABASE temp_db;
-USE temp_db;
-#
-# SHOW TABLES do not list temporary tables.
-#
-CREATE TEMPORARY TABLE temp_t1(i INT) ENGINE=INNODB;
-INSERT INTO temp_t1 VALUES(1);
-SELECT * FROM temp_t1;
-i
-1
-SHOW TABLES;
-Tables_in_temp_db
-DROP TABLE temp_t1;
-#
-# Create and drop a temporary table.
-#
-CREATE TEMPORARY TABLE temp_t1(i INT) ENGINE=INNODB;
-INSERT INTO temp_t1 VALUES(1);
-SELECT * FROM temp_t1;
-i
-1
-DROP TABLE temp_t1;
-SELECT * FROM temp_t1;
-ERROR 42S02: Table 'temp_db.temp_t1' doesn't exist
-#
-# Create a temporary table and base table with same name and DROP TABLE.
-#
-CREATE TABLE t1(c1 VARCHAR(20)) ENGINE=INNODB;
-INSERT INTO t1 VALUES("BASE TABLE");
-CREATE TEMPORARY TABLE t1(c1 VARCHAR(20)) ENGINE=INNODB;
-INSERT INTO t1 VALUES("TEMPORARY TABLE");
-SELECT * FROM t1;
-c1
-TEMPORARY TABLE
-DROP TABLE t1;
-SELECT * FROM t1;
-c1
-BASE TABLE
-DROP TABLE t1;
-SELECT * FROM t1;
-ERROR 42S02: Table 'temp_db.t1' doesn't exist
-#
-# Create a temporary table and base table with same name and DROP TEMPORARY
-# TABLE.
-#
-CREATE TABLE t1(c1 VARCHAR(20)) ENGINE=INNODB;
-INSERT INTO t1 VALUES("BASE TABLE");
-CREATE TEMPORARY TABLE t1(c1 VARCHAR(20)) ENGINE=INNODB;
-INSERT INTO t1 VALUES("TEMPORARY TABLE");
-SELECT * FROM t1;
-c1
-TEMPORARY TABLE
-DROP TEMPORARY TABLE t1;
-SELECT * FROM t1;
-c1
-BASE TABLE
-DROP TEMPORARY TABLE t1;
-ERROR 42S02: Unknown table 'temp_db.t1'
-SELECT * FROM t1;
-c1
-BASE TABLE
-DROP TABLE t1;
-#
-# Create a temporary table and drop its parent database.
-#
-USE temp_db;
-CREATE TEMPORARY TABLE temp_t1(i INT) ENGINE=INNODB;
-INSERT INTO temp_t1 VALUES (1);
-DROP DATABASE temp_db;
-CREATE DATABASE temp_db;
-USE temp_db;
-DROP TEMPORARY TABLE temp_t1;
-#
-# Similar to above, but this time with a base table with same name.
-#
-USE temp_db;
-CREATE TABLE t1(i INT)ENGINE=INNODB;
-CREATE TEMPORARY TABLE t1(i INT) ENGINE=INNODB;
-INSERT INTO t1 VALUES (1);
-DROP DATABASE temp_db;
-CREATE DATABASE temp_db;
-USE temp_db;
-DROP TEMPORARY TABLE t1;
-DROP TABLE t1;
-ERROR 42S02: Unknown table 'temp_db.t1'
-#
-# Create a temporary table within a function.
-#
-USE temp_db;
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-DROP TEMPORARY TABLE IF EXISTS temp_t1;
-CREATE TEMPORARY TABLE temp_t1(i INT) ENGINE=INNODB;
-INSERT INTO `temp_t1` VALUES(1);
-RETURN (SELECT COUNT(*) FROM temp_t1);
-END|
-SELECT f1();
-f1()
-1
-SELECT * FROM temp_t1;
-i
-1
-DROP TABLE temp_t1;
-CREATE TEMPORARY TABLE `temp_t1`(i INT) ENGINE=INNODB;
-SELECT f1();
-f1()
-1
-SELECT * FROM temp_t1;
-i
-1
-DROP FUNCTION f1;
-#
-# Create and drop a temporary table within a function.
-#
-CREATE FUNCTION f2() RETURNS INT
-BEGIN
-DROP TEMPORARY TABLE IF EXISTS temp_t1;
-CREATE TEMPORARY TABLE temp_t1(i INT) ENGINE=INNODB;
-INSERT INTO temp_t1 VALUES(1);
-DROP TABLE temp_t1;
-RETURN 0;
-END|
-ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger
-CREATE FUNCTION f2() RETURNS INT
-BEGIN
-DROP TEMPORARY TABLE IF EXISTS temp_t1;
-CREATE TEMPORARY TABLE temp_t1(i INT) ENGINE=INNODB;
-INSERT INTO temp_t1 VALUES(1);
-DROP TEMPORARY TABLE temp_t1;
-RETURN 0;
-END|
-SELECT f2();
-f2()
-0
-DROP FUNCTION f2;
-#
-# Create a temporary table within a function and select it from another
-# function.
-#
-CREATE FUNCTION f2() RETURNS INT
-BEGIN
-DROP TEMPORARY TABLE IF EXISTS temp_t1;
-CREATE TEMPORARY TABLE temp_t1 (i INT) ENGINE=INNODB;
-INSERT INTO temp_t1 VALUES (1);
-RETURN f2_1();
-END|
-CREATE FUNCTION f2_1() RETURNS INT
-RETURN (SELECT COUNT(*) FROM temp_t1)|
-SELECT f2();
-f2()
-1
-DROP TEMPORARY TABLE temp_t1;
-DROP FUNCTION f2;
-#
-# Create temporary table like base table.
-#
-CREATE TABLE t1(i INT) ENGINE=INNODB;
-INSERT INTO t1 VALUES(1);
-CREATE TEMPORARY TABLE temp_t1 LIKE t1;
-SELECT * FROM temp_t1;
-i
-CREATE TEMPORARY TABLE t1 LIKE t1;
-ERROR 42000: Not unique table/alias: 't1'
-DROP TABLE temp_t1, t1;
-#
-# Create temporary table as base table.
-#
-CREATE TABLE t1(i INT) ENGINE=INNODB;
-INSERT INTO t1 VALUES(1);
-CREATE TEMPORARY TABLE temp_t1 AS SELECT * FROM t1;
-SELECT * FROM temp_t1;
-i
-1
-DROP TABLE temp_t1, t1;
-#
-# ALTER TABLE RENAME & ENABLE/DISABLE KEYS (shortcuts)
-#
-CREATE TEMPORARY TABLE t1(i INT PRIMARY KEY) ENGINE=MYISAM;
-INSERT INTO t1 VALUES(1);
-SELECT COUNT(*)=1 FROM t1;
-COUNT(*)=1
-1
-ALTER TABLE t1 RENAME t2;
-SELECT COUNT(*)=1 FROM t2;
-COUNT(*)=1
-1
-ALTER TABLE t2 RENAME t1;
-ALTER TABLE t1 DISABLE KEYS;
-ALTER TABLE t1 ENABLE KEYS;
-LOCK TABLES t1 WRITE;
-ALTER TABLE t1 RENAME t2;
-SELECT COUNT(*)=1 FROM t2;
-COUNT(*)=1
-1
-ALTER TABLE t2 RENAME t1;
-ALTER TABLE t1 DISABLE KEYS;
-ALTER TABLE t1 ENABLE KEYS;
-UNLOCK TABLES;
-LOCK TABLES t1 READ;
-ALTER TABLE t1 RENAME t2;
-SELECT COUNT(*)=1 FROM t2;
-COUNT(*)=1
-1
-ALTER TABLE t2 RENAME t1;
-ALTER TABLE t1 DISABLE KEYS;
-ALTER TABLE t1 ENABLE KEYS;
-UNLOCK TABLES;
-FLUSH TABLES WITH READ LOCK;
-ALTER TABLE t1 RENAME t2;
-SELECT COUNT(*)=1 FROM t2;
-COUNT(*)=1
-1
-ALTER TABLE t2 RENAME t1;
-ALTER TABLE t1 DISABLE KEYS;
-ALTER TABLE t1 ENABLE KEYS;
-UNLOCK TABLES;
-ALTER TABLE t1 RENAME t2, LOCK SHARED;
-ALTER TABLE t2 RENAME t1, LOCK EXCLUSIVE;
-DROP TABLE t1;
-#
-# MDEV-10792: Assertion `thd->mdl_context.is_lock_owner
-# (MDL_key::TABLE, table->db, table->table_name, MDL_SHARED)'
-# failed in mysql_rm_table_no_locks
-#
-CREATE TEMPORARY TABLE t1 (i INT);
-DROP TABLE nonexisting_table, t1;
-ERROR 42S02: Unknown table 'temp_db.nonexisting_table'
-# Cleanup
-DROP DATABASE temp_db;
diff --git a/mysql-test/r/temp_table_frm.result b/mysql-test/r/temp_table_frm.result
deleted file mode 100644
index 19c66380af2..00000000000
--- a/mysql-test/r/temp_table_frm.result
+++ /dev/null
@@ -1,21 +0,0 @@
-set @@session.max_heap_table_size=16*1024*1024;
-create table t1 select * from information_schema.session_status where variable_name like 'Opened%';
-create temporary table t2 (a int) engine=memory;
-select variable_name, session_status.variable_value - t1.variable_value
-from information_schema.session_status join t1 using (variable_name);
-variable_name session_status.variable_value - t1.variable_value
-OPENED_FILES 0
-OPENED_PLUGIN_LIBRARIES 0
-OPENED_TABLE_DEFINITIONS 2
-OPENED_TABLES 1
-OPENED_VIEWS 0
-truncate table t2;
-select variable_name, session_status.variable_value - t1.variable_value
-from information_schema.session_status join t1 using (variable_name);
-variable_name session_status.variable_value - t1.variable_value
-OPENED_FILES 0
-OPENED_PLUGIN_LIBRARIES 0
-OPENED_TABLE_DEFINITIONS 2
-OPENED_TABLES 1
-OPENED_VIEWS 0
-drop table t1;
diff --git a/mysql-test/r/temporal_literal.result b/mysql-test/r/temporal_literal.result
deleted file mode 100644
index f4f43fe9ba3..00000000000
--- a/mysql-test/r/temporal_literal.result
+++ /dev/null
@@ -1,643 +0,0 @@
-DROP TABLE IF EXISTS t1, t2;
-SET NAMES latin1;
-#
-# Testing DATE literals
-#
-SELECT DATE'xxxx';
-ERROR HY000: Incorrect DATE value: 'xxxx'
-SELECT DATE'01';
-ERROR HY000: Incorrect DATE value: '01'
-SELECT DATE'01-01';
-ERROR HY000: Incorrect DATE value: '01-01'
-SELECT DATE'2001';
-ERROR HY000: Incorrect DATE value: '2001'
-SELECT DATE'2001-01';
-ERROR HY000: Incorrect DATE value: '2001-01'
-SELECT DATE'2001-00-00';
-DATE'2001-00-00'
-2001-00-00
-SELECT DATE'2001-01-00';
-DATE'2001-01-00'
-2001-01-00
-SELECT DATE'0000-00-00';
-DATE'0000-00-00'
-0000-00-00
-SELECT DATE'2001-01-01 00:00:00';
-ERROR HY000: Incorrect DATE value: '2001-01-01 00:00:00'
-SELECT DATE'01:01:01';
-DATE'01:01:01'
-2001-01-01
-SELECT DATE'01-01-01';
-DATE'01-01-01'
-2001-01-01
-SELECT DATE'2010-01-01';
-DATE'2010-01-01'
-2010-01-01
-SELECT DATE '2010-01-01';
-DATE '2010-01-01'
-2010-01-01
-CREATE TABLE t1 AS SELECT DATE'2010-01-01';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `DATE'2010-01-01'` date NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
-{d'2001-01-01'},
-{ d '2001-01-01' },
-{d'2001-01-01 10:10:10'};
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `{d'2001-01-01'}` date NOT NULL,
- `{ d '2001-01-01' }` date NOT NULL,
- `2001-01-01 10:10:10` varchar(19) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXPLAIN EXTENDED SELECT {d'2010-01-01'};
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select DATE'2010-01-01' AS `{d'2010-01-01'}`
-EXPLAIN EXTENDED SELECT DATE'2010-01-01';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select DATE'2010-01-01' AS `DATE'2010-01-01'`
-#
-# Testing DATE literals in non-default sql_mode
-#
-SET sql_mode=no_zero_in_date;
-SELECT DATE'2001-00-00';
-ERROR HY000: Incorrect DATE value: '2001-00-00'
-SELECT DATE'2001-01-00';
-ERROR HY000: Incorrect DATE value: '2001-01-00'
-SELECT DATE'0000-00-00';
-DATE'0000-00-00'
-0000-00-00
-SET sql_mode=no_zero_date;
-SELECT DATE'0000-00-00';
-ERROR HY000: Incorrect DATE value: '0000-00-00'
-SET sql_mode=default;
-#
-# Testing TIME literals
-#
-SELECT TIME'xxxx';
-ERROR HY000: Incorrect TIME value: 'xxxx'
-SELECT TIME'900:00:00';
-ERROR HY000: Incorrect TIME value: '900:00:00'
-SELECT TIME'-900:00:00';
-ERROR HY000: Incorrect TIME value: '-900:00:00'
-SELECT TIME'1 24:00:00';
-TIME'1 24:00:00'
-48:00:00
-SELECT TIME'30 24:00:00';
-TIME'30 24:00:00'
-744:00:00
-SELECT TIME'0000-00-00 00:00:00';
-ERROR HY000: Incorrect TIME value: '0000-00-00 00:00:00'
-SELECT TIME'40 24:00:00';
-ERROR HY000: Incorrect TIME value: '40 24:00:00'
-SELECT TIME'10';
-TIME'10'
-00:00:10
-SELECT TIME'10:10';
-TIME'10:10'
-10:10:00
-SELECT TIME'10:11.12';
-TIME'10:11.12'
-10:11:00.12
-SELECT TIME'10:10:10';
-TIME'10:10:10'
-10:10:10
-SELECT TIME'10:10:10.';
-TIME'10:10:10.'
-10:10:10
-SELECT TIME'10:10:10.1';
-TIME'10:10:10.1'
-10:10:10.1
-SELECT TIME'10:10:10.12';
-TIME'10:10:10.12'
-10:10:10.12
-SELECT TIME'10:10:10.123';
-TIME'10:10:10.123'
-10:10:10.123
-SELECT TIME'10:10:10.1234';
-TIME'10:10:10.1234'
-10:10:10.1234
-SELECT TIME'10:10:10.12345';
-TIME'10:10:10.12345'
-10:10:10.12345
-SELECT TIME'10:10:10.123456';
-TIME'10:10:10.123456'
-10:10:10.123456
-SELECT TIME'-10:00:00';
-TIME'-10:00:00'
--10:00:00
-SELECT TIME '10:11:12';
-TIME '10:11:12'
-10:11:12
-CREATE TABLE t1 AS SELECT
-TIME'10:10:10',
-TIME'10:10:10.',
-TIME'10:10:10.1',
-TIME'10:10:10.12',
-TIME'10:10:10.123',
-TIME'10:10:10.1234',
-TIME'10:10:10.12345',
-TIME'10:10:10.123456';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `TIME'10:10:10'` time NOT NULL,
- `TIME'10:10:10.'` time NOT NULL,
- `TIME'10:10:10.1'` time(1) NOT NULL,
- `TIME'10:10:10.12'` time(2) NOT NULL,
- `TIME'10:10:10.123'` time(3) NOT NULL,
- `TIME'10:10:10.1234'` time(4) NOT NULL,
- `TIME'10:10:10.12345'` time(5) NOT NULL,
- `TIME'10:10:10.123456'` time(6) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
-{t'10:10:10'},
-{ t '10:10:10' },
-{t'10:10:10.'},
-{t'10:10:10.123456'},
-{t'2001-01-01'};
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `{t'10:10:10'}` time NOT NULL,
- `{ t '10:10:10' }` time NOT NULL,
- `{t'10:10:10.'}` time NOT NULL,
- `{t'10:10:10.123456'}` time(6) NOT NULL,
- `2001-01-01` varchar(10) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXPLAIN EXTENDED SELECT {t'10:01:01'};
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select TIME'10:01:01' AS `{t'10:01:01'}`
-EXPLAIN EXTENDED SELECT TIME'10:01:01';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select TIME'10:01:01' AS `TIME'10:01:01'`
-#
-# Testing TIMESTAMP literals
-#
-SELECT TIMESTAMP'xxxx';
-ERROR HY000: Incorrect DATETIME value: 'xxxx'
-SELECT TIMESTAMP'2010';
-ERROR HY000: Incorrect DATETIME value: '2010'
-SELECT TIMESTAMP'2010-01';
-ERROR HY000: Incorrect DATETIME value: '2010-01'
-SELECT TIMESTAMP'2010-01-01';
-ERROR HY000: Incorrect DATETIME value: '2010-01-01'
-SELECT TIMESTAMP'2010-01-01 00';
-TIMESTAMP'2010-01-01 00'
-2010-01-01 00:00:00
-SELECT TIMESTAMP'2010-01-01 00:01';
-TIMESTAMP'2010-01-01 00:01'
-2010-01-01 00:01:00
-SELECT TIMESTAMP'2010-01-01 10:10:10';
-TIMESTAMP'2010-01-01 10:10:10'
-2010-01-01 10:10:10
-SELECT TIMESTAMP'2010-01-01 10:10:10.';
-TIMESTAMP'2010-01-01 10:10:10.'
-2010-01-01 10:10:10
-SELECT TIMESTAMP'2010-01-01 10:10:10.1';
-TIMESTAMP'2010-01-01 10:10:10.1'
-2010-01-01 10:10:10.1
-SELECT TIMESTAMP'2010-01-01 10:10:10.12';
-TIMESTAMP'2010-01-01 10:10:10.12'
-2010-01-01 10:10:10.12
-SELECT TIMESTAMP'2010-01-01 10:10:10.123';
-TIMESTAMP'2010-01-01 10:10:10.123'
-2010-01-01 10:10:10.123
-SELECT TIMESTAMP'2010-01-01 10:10:10.1234';
-TIMESTAMP'2010-01-01 10:10:10.1234'
-2010-01-01 10:10:10.1234
-SELECT TIMESTAMP'2010-01-01 10:10:10.12345';
-TIMESTAMP'2010-01-01 10:10:10.12345'
-2010-01-01 10:10:10.12345
-SELECT TIMESTAMP'2010-01-01 10:10:10.123456';
-TIMESTAMP'2010-01-01 10:10:10.123456'
-2010-01-01 10:10:10.123456
-SELECT TIMESTAMP '2010-01-01 10:20:30';
-TIMESTAMP '2010-01-01 10:20:30'
-2010-01-01 10:20:30
-CREATE TABLE t1 AS SELECT
-TIMESTAMP'2010-01-01 10:10:10',
-TIMESTAMP'2010-01-01 10:10:10.',
-TIMESTAMP'2010-01-01 10:10:10.1',
-TIMESTAMP'2010-01-01 10:10:10.12',
-TIMESTAMP'2010-01-01 10:10:10.123',
-TIMESTAMP'2010-01-01 10:10:10.1234',
-TIMESTAMP'2010-01-01 10:10:10.12345',
-TIMESTAMP'2010-01-01 10:10:10.123456';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `TIMESTAMP'2010-01-01 10:10:10'` datetime NOT NULL,
- `TIMESTAMP'2010-01-01 10:10:10.'` datetime NOT NULL,
- `TIMESTAMP'2010-01-01 10:10:10.1'` datetime(1) NOT NULL,
- `TIMESTAMP'2010-01-01 10:10:10.12'` datetime(2) NOT NULL,
- `TIMESTAMP'2010-01-01 10:10:10.123'` datetime(3) NOT NULL,
- `TIMESTAMP'2010-01-01 10:10:10.1234'` datetime(4) NOT NULL,
- `TIMESTAMP'2010-01-01 10:10:10.12345'` datetime(5) NOT NULL,
- `TIMESTAMP'2010-01-01 10:10:10.123456'` datetime(6) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
-{ts'2001-01-01 10:10:10'},
-{ ts '2001-01-01 10:10:10' },
-{ts'2001-01-01 10:10:10.'},
-{ts'2001-01-01 10:10:10.123456'},
-{ts'2001-01-01'};
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `{ts'2001-01-01 10:10:10'}` datetime NOT NULL,
- `{ ts '2001-01-01 10:10:10' }` datetime NOT NULL,
- `{ts'2001-01-01 10:10:10.'}` datetime NOT NULL,
- `{ts'2001-01-01 10:10:10.123456'}` datetime(6) NOT NULL,
- `2001-01-01` varchar(10) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-EXPLAIN EXTENDED SELECT {ts'2010-01-01 10:10:10'};
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select TIMESTAMP'2010-01-01 10:10:10' AS `{ts'2010-01-01 10:10:10'}`
-EXPLAIN EXTENDED SELECT TIMESTAMP'2010-01-01 10:10:10';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select TIMESTAMP'2010-01-01 10:10:10' AS `TIMESTAMP'2010-01-01 10:10:10'`
-#
-# Testing nanosecond rounding for TIMESTAMP literals with bad dates
-#
-SELECT TIMESTAMP'2001-00-00 00:00:00.999999';
-TIMESTAMP'2001-00-00 00:00:00.999999'
-2001-00-00 00:00:00.999999
-SELECT TIMESTAMP'2001-00-01 00:00:00.999999';
-TIMESTAMP'2001-00-01 00:00:00.999999'
-2001-00-01 00:00:00.999999
-SELECT TIMESTAMP'2001-01-00 00:00:00.999999';
-TIMESTAMP'2001-01-00 00:00:00.999999'
-2001-01-00 00:00:00.999999
-SELECT TIMESTAMP'2001-00-00 00:00:00.9999999';
-TIMESTAMP'2001-00-00 00:00:00.9999999'
-2001-00-00 00:00:00.999999
-Warnings:
-Note 1292 Truncated incorrect datetime value: '2001-00-00 00:00:00.9999999'
-SELECT TIMESTAMP'2001-00-01 00:00:00.9999999';
-TIMESTAMP'2001-00-01 00:00:00.9999999'
-2001-00-01 00:00:00.999999
-Warnings:
-Note 1292 Truncated incorrect datetime value: '2001-00-01 00:00:00.9999999'
-SELECT TIMESTAMP'2001-01-00 00:00:00.9999999';
-TIMESTAMP'2001-01-00 00:00:00.9999999'
-2001-01-00 00:00:00.999999
-Warnings:
-Note 1292 Truncated incorrect datetime value: '2001-01-00 00:00:00.9999999'
-#
-# String literal with bad dates and nanoseconds to DATETIME(N)
-#
-CREATE TABLE t1 (a DATETIME(6));
-INSERT INTO t1 VALUES ('2001-00-00 00:00:00.9999999');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-INSERT INTO t1 VALUES ('2001-00-01 00:00:00.9999999');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-INSERT INTO t1 VALUES ('2001-01-00 00:00:00.9999999');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1;
-a
-2001-00-00 00:00:00.999999
-2001-00-01 00:00:00.999999
-2001-01-00 00:00:00.999999
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME(5));
-INSERT INTO t1 VALUES ('2001-00-00 00:00:00.9999999');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-INSERT INTO t1 VALUES ('2001-00-01 00:00:00.9999999');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-INSERT INTO t1 VALUES ('2001-01-00 00:00:00.9999999');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1;
-a
-2001-00-00 00:00:00.99999
-2001-00-01 00:00:00.99999
-2001-01-00 00:00:00.99999
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES ('2001-00-00 00:00:00.9999999');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-INSERT INTO t1 VALUES ('2001-00-01 00:00:00.9999999');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-INSERT INTO t1 VALUES ('2001-01-00 00:00:00.9999999');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1;
-a
-2001-00-00 00:00:00
-2001-00-01 00:00:00
-2001-01-00 00:00:00
-DROP TABLE t1;
-#
-# Testing Item_date_literal::eq
-#
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('2001-01-01'),('2003-01-01');
-SELECT * FROM t1 WHERE a BETWEEN DATE'2001-01-01' AND DATE'2002-01-01';
-a
-2001-01-01
-SELECT DATE'2001-01-01' FROM t1 GROUP BY DATE'2001-01-01';
-DATE'2001-01-01'
-2001-01-01
-DROP TABLE t1;
-#
-# TIME literals in no-zero date context
-#
-SET timestamp=unix_timestamp('2001-02-03 10:20:30');
-SELECT TO_DAYS(TIME'00:00:00');
-TO_DAYS(TIME'00:00:00')
-730884
-SELECT TO_SECONDS(TIME'00:00:00');
-TO_SECONDS(TIME'00:00:00')
-63148377600
-SELECT DAYOFYEAR(TIME'00:00:00');
-DAYOFYEAR(TIME'00:00:00')
-34
-SELECT WEEK(TIME'00:00:00');
-WEEK(TIME'00:00:00')
-4
-SELECT YEARWEEK(TIME'00:00:00');
-YEARWEEK(TIME'00:00:00')
-200104
-SELECT WEEKDAY(TIME'00:00:00');
-WEEKDAY(TIME'00:00:00')
-5
-SELECT CONVERT_TZ(TIME'00:00:00','+00:00','+01:00');
-CONVERT_TZ(TIME'00:00:00','+00:00','+01:00')
-2001-02-03 01:00:00
-SELECT DATE_ADD(TIME'00:00:00', INTERVAL 1 HOUR);
-DATE_ADD(TIME'00:00:00', INTERVAL 1 HOUR)
-01:00:00
-SELECT TIMESTAMPDIFF(SECOND,TIME'00:00:00', TIME'00:00:00');
-TIMESTAMPDIFF(SECOND,TIME'00:00:00', TIME'00:00:00')
-0
-SET timestamp=DEFAULT;
-#
-# Testing Item_func::fix_fields()
-#
-SELECT 'a' LIKE 'a' ESCAPE DATE'2001-01-01';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT 'a' LIKE 'a' ESCAPE TIMESTAMP'2001-01-01 00:00:00';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT 'a' LIKE 'a' ESCAPE TIME'00:00:00';
-ERROR HY000: Incorrect arguments to ESCAPE
-#
-# MDEV-4871 Temporal literals do not accept nanoseconds
-#
-SELECT TIME'10:10:10.1234567';
-TIME'10:10:10.1234567'
-10:10:10.123456
-Warnings:
-Note 1292 Truncated incorrect time value: '10:10:10.1234567'
-SELECT TIME('10:10:10.1234567');
-TIME('10:10:10.1234567')
-10:10:10.123456
-Warnings:
-Note 1292 Truncated incorrect time value: '10:10:10.1234567'
-SELECT TIME'10:10:10.123456xyz';
-ERROR HY000: Incorrect TIME value: '10:10:10.123456xyz'
-SELECT TIME'10:10:10.1234567xyz';
-ERROR HY000: Incorrect TIME value: '10:10:10.1234567xyz'
-SELECT TIME('10:10:10.123456xyz');
-TIME('10:10:10.123456xyz')
-10:10:10.123456
-Warnings:
-Warning 1292 Truncated incorrect time value: '10:10:10.123456xyz'
-SELECT TIME('10:10:10.1234567xyz');
-TIME('10:10:10.1234567xyz')
-10:10:10.123456
-Warnings:
-Warning 1292 Truncated incorrect time value: '10:10:10.1234567xyz'
-SELECT TIMESTAMP'2001-01-01 10:10:10.1234567';
-TIMESTAMP'2001-01-01 10:10:10.1234567'
-2001-01-01 10:10:10.123456
-Warnings:
-Note 1292 Truncated incorrect datetime value: '2001-01-01 10:10:10.1234567'
-SELECT TIMESTAMP('2001-01-01 10:10:10.1234567');
-TIMESTAMP('2001-01-01 10:10:10.1234567')
-2001-01-01 10:10:10.123456
-Warnings:
-Note 1292 Truncated incorrect datetime value: '2001-01-01 10:10:10.1234567'
-SELECT TIMESTAMP'2001-01-01 10:10:10.123456xyz';
-ERROR HY000: Incorrect DATETIME value: '2001-01-01 10:10:10.123456xyz'
-SELECT TIMESTAMP'2001-01-01 10:10:10.1234567xyz';
-ERROR HY000: Incorrect DATETIME value: '2001-01-01 10:10:10.1234567xyz'
-SELECT TIMESTAMP('2001-01-01 10:10:10.123456xyz');
-TIMESTAMP('2001-01-01 10:10:10.123456xyz')
-2001-01-01 10:10:10.123456
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2001-01-01 10:10:10.123456xyz'
-SELECT TIMESTAMP('2001-01-01 10:10:10.1234567xyz');
-TIMESTAMP('2001-01-01 10:10:10.1234567xyz')
-2001-01-01 10:10:10.123456
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2001-01-01 10:10:10.1234567xyz'
-CREATE TABLE t1 (a TIME(6));
-INSERT INTO t1 VALUES (TIME'10:20:30.1234567');
-Warnings:
-Note 1292 Truncated incorrect time value: '10:20:30.1234567'
-INSERT INTO t1 VALUES (TIME('10:20:30.1234567'));
-Warnings:
-Note 1292 Truncated incorrect time value: '10:20:30.1234567'
-SELECT * FROM t1;
-a
-10:20:30.123456
-10:20:30.123456
-DROP TABLE t1;
-#
-# MDEV-5969 Crash in prepared statement with NO_ZERO_IN_DATE and ROLLUP
-#
-CREATE TABLE t1
-(
-year INT NOT NULL,
-product VARCHAR(32) NOT NULL,
-profit INT
-);
-INSERT INTO t1 VALUES ('2001','car',101);
-INSERT INTO t1 VALUES ('2001','gas',102);
-INSERT INTO t1 VALUES ('2001','toy',103);
-INSERT INTO t1 VALUES ('2002','car',201);
-INSERT INTO t1 VALUES ('2002','gas',202);
-INSERT INTO t1 VALUES ('2002','toy',203);
-SET sql_mode=DEFAULT;
-PREPARE stmt FROM "SELECT DATE'2001-00-00' AS c,year, SUM(profit) FROM t1 GROUP BY c,year WITH ROLLUP";
-EXECUTE stmt;
-c year SUM(profit)
-2001-00-00 2001 306
-2001-00-00 2002 606
-2001-00-00 NULL 912
-NULL NULL 912
-SET sql_mode='no_zero_in_date';
-EXECUTE stmt;
-c year SUM(profit)
-NULL 2001 306
-NULL 2002 606
-NULL NULL 912
-NULL NULL 912
-Warnings:
-Warning 1292 Incorrect datetime value: '2001-00-00'
-Warning 1292 Incorrect datetime value: '2001-00-00'
-Warning 1292 Incorrect datetime value: '2001-00-00'
-Warning 1292 Incorrect datetime value: '2001-00-00'
-Warning 1292 Incorrect datetime value: '2001-00-00'
-Warning 1292 Incorrect datetime value: '2001-00-00'
-Warning 1292 Incorrect datetime value: '2001-00-00'
-Warning 1292 Incorrect datetime value: '2001-00-00'
-Warning 1292 Incorrect datetime value: '2001-00-00'
-Warning 1292 Incorrect datetime value: '2001-00-00'
-Warning 1292 Incorrect datetime value: '2001-00-00'
-Warning 1292 Incorrect datetime value: '2001-00-00'
-Warning 1292 Incorrect datetime value: '2001-00-00'
-Warning 1292 Incorrect datetime value: '2001-00-00'
-Warning 1292 Incorrect datetime value: '2001-00-00'
-SET sql_mode=DEFAULT;
-DROP TABLE t1;
-#
-# MDEV-5971 Asymmetry between CAST(DATE'2001-00-00') to INT and TO CHAR in prepared statements
-#
-SET sql_mode=DEFAULT;
-PREPARE stmt FROM "SELECT CAST(DATE'2001-00-00' AS SIGNED) AS c";
-SET sql_mode='no_zero_in_date';
-EXECUTE stmt;
-c
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2001-00-00'
-SET sql_mode=DEFAULT;
-PREPARE stmt FROM "SELECT CAST(DATE'2001-00-00' AS CHAR) AS c";
-SET sql_mode='no_zero_in_date';
-EXECUTE stmt;
-c
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2001-00-00'
-SET sql_mode=DEFAULT;
-PREPARE stmt FROM "SELECT CAST(DATE'2001-00-00' AS DECIMAL(30,0)) AS c";
-SET sql_mode='no_zero_in_date';
-EXECUTE stmt;
-c
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2001-00-00'
-SET sql_mode=DEFAULT;
-PREPARE stmt FROM "SELECT CAST(DATE'2001-00-00' AS DOUBLE) AS c";
-SET sql_mode='no_zero_in_date';
-EXECUTE stmt;
-c
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2001-00-00'
-#
-# Zero month or zero day automatically mean NULL flag, no matter SQL_MODE is.
-# Only zero year is OK for NOT NULL.
-#
-SET sql_mode=DEFAULT;
-PREPARE stmt FROM "CREATE TABLE t1 AS SELECT CAST(DATE'2001-00-00' AS CHAR) AS c";
-EXECUTE stmt;
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-c varchar(10) YES NULL
-SELECT * FROM t1;
-c
-2001-00-00
-DROP TABLE t1;
-SET sql_mode='no_zero_in_date';
-EXECUTE stmt;
-Warnings:
-Warning 1292 Incorrect datetime value: '2001-00-00'
-SHOW COLUMNS FROM t1;
-Field Type Null Key Default Extra
-c varchar(10) YES NULL
-SELECT * FROM t1;
-c
-NULL
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 AS SELECT
-DATE'2001-01-01',
-DATE'0000-01-01',
-DATE'2001-00-00',
-DATE'2001-00-01',
-DATE'2001-01-00';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `DATE'2001-01-01'` date NOT NULL,
- `DATE'0000-01-01'` date NOT NULL,
- `DATE'2001-00-00'` date DEFAULT NULL,
- `DATE'2001-00-01'` date DEFAULT NULL,
- `DATE'2001-01-00'` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT
-TIMESTAMP'2001-01-01 00:00:00',
-TIMESTAMP'0000-01-01 00:00:00',
-TIMESTAMP'2001-00-00 00:00:00',
-TIMESTAMP'2001-00-01 00:00:00',
-TIMESTAMP'2001-01-00 00:00:00';
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `TIMESTAMP'2001-01-01 00:00:00'` datetime NOT NULL,
- `TIMESTAMP'0000-01-01 00:00:00'` datetime NOT NULL,
- `TIMESTAMP'2001-00-00 00:00:00'` datetime DEFAULT NULL,
- `TIMESTAMP'2001-00-01 00:00:00'` datetime DEFAULT NULL,
- `TIMESTAMP'2001-01-00 00:00:00'` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# MDEV-5975 Prepared statements with DATE literals do not honor NO_ZERO_IN_DATE
-#
-SET sql_mode=DEFAULT;
-PREPARE stmt FROM "SELECT (SELECT DATE'2001-00-00') AS c";
-EXECUTE stmt;
-c
-2001-00-00
-SET sql_mode='no_zero_in_date';
-EXECUTE stmt;
-c
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2001-00-00'
-DEALLOCATE PREPARE stmt;
-SET sql_mode=DEFAULT;
-PREPARE stmt FROM "SELECT (SELECT TIMESTAMP'2001-00-00 10:20:30') AS c";
-EXECUTE stmt;
-c
-2001-00-00 10:20:30
-SET sql_mode='no_zero_in_date';
-EXECUTE stmt;
-c
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2001-00-00 10:20:30'
-DEALLOCATE PREPARE stmt;
-SET sql_mode=DEFAULT;
diff --git a/mysql-test/r/temporal_scale_4283.result b/mysql-test/r/temporal_scale_4283.result
deleted file mode 100644
index 685a6192a97..00000000000
--- a/mysql-test/r/temporal_scale_4283.result
+++ /dev/null
@@ -1,12 +0,0 @@
-create table t1 (a int);
-insert into t1 values (4),(8);
-select distinct 100 mod timestampadd( week, a, '2002-05-20' ) from t1;
-100 mod timestampadd( week, a, '2002-05-20' )
-100
-drop table t1;
-create table t1 (i int);
-insert into t1 values (2),(4);
-select distinct convert_tz( '2001-03-21', 'utc', 'met' ) mod i from t1;
-convert_tz( '2001-03-21', 'utc', 'met' ) mod i
-0
-drop table t1;
diff --git a/mysql-test/r/thread_id_overflow.result b/mysql-test/r/thread_id_overflow.result
deleted file mode 100644
index 8303debb246..00000000000
--- a/mysql-test/r/thread_id_overflow.result
+++ /dev/null
@@ -1,23 +0,0 @@
-connect con1, localhost,root;
-disconnect con1;
-connect con2, localhost,root;
-connection con2;
-connection default;
-SET @orig_debug=@@debug_dbug;
-SET GLOBAL DEBUG_DBUG='+d,thread_id_overflow';
-connect con3, localhost,root;
-connection con3;
-SELECT CONNECTION_ID();
-CONNECTION_ID()
-4294967294
-connection default;
-SET GLOBAL DEBUG_DBUG=@orig_debug;
-connect con4, localhost,root;
-connection con4;
-select IF(connection_id() - max_id = 1,'Good','Bad') as result;
-result
-Good
-disconnect con4;
-disconnect con3;
-disconnect con2;
-connection default;
diff --git a/mysql-test/r/timeout.result b/mysql-test/r/timeout.result
deleted file mode 100644
index 8d1ca137043..00000000000
--- a/mysql-test/r/timeout.result
+++ /dev/null
@@ -1,67 +0,0 @@
-#
-# MDEV-11379 - AliSQL: [Feature] Issue#8: SELECT FOR UPDATE WAIT
-# MDEV-11388 - AliSQL: [Feature] Issue#15 DDL FAST FAIL
-#
-CREATE TABLE t1(a INT, b TEXT, c MULTIPOLYGON NOT NULL);
-CREATE INDEX i1 ON t1(a) WAIT 1;
-CREATE FULLTEXT INDEX i2 ON t1(b) WAIT 1;
-CREATE SPATIAL INDEX i3 ON t1(c) WAIT 1;
-ALTER TABLE t1 WAIT 1 COMMENT='test';
-OPTIMIZE TABLE t1 WAIT 1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-DROP INDEX i1 ON t1 WAIT 1;
-TRUNCATE TABLE t1 WAIT 1;
-RENAME TABLE t1 WAIT 1 TO t2;
-RENAME TABLE t2 NOWAIT TO t1;
-connect con1, localhost, root,,;
-LOCK TABLE t1 WRITE WAIT 31536001;
-Warnings:
-Warning 1292 Truncated incorrect lock_wait_timeout value: '31536001'
-connection default;
-CREATE INDEX i1 ON t1(a) WAIT 0;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-CREATE INDEX i1 ON t1(a) NOWAIT;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-CREATE FULLTEXT INDEX i2 ON t1(b) WAIT 0;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-CREATE FULLTEXT INDEX i2 ON t1(b) NOWAIT;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-CREATE SPATIAL INDEX i3 ON t1(c) WAIT 0;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-CREATE SPATIAL INDEX i3 ON t1(c) NOWAIT;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-ALTER TABLE t1 WAIT 0 COMMENT='test';
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-ALTER TABLE t1 NOWAIT COMMENT='test';
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-OPTIMIZE TABLE t1 WAIT 0;
-Table Op Msg_type Msg_text
-test.t1 optimize Error Lock wait timeout exceeded; try restarting transaction
-test.t1 optimize status Operation failed
-OPTIMIZE TABLE t1 NOWAIT;
-Table Op Msg_type Msg_text
-test.t1 optimize Error Lock wait timeout exceeded; try restarting transaction
-test.t1 optimize status Operation failed
-DROP INDEX i1 ON t1 WAIT 0;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-DROP INDEX i1 ON t1 NOWAIT;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-TRUNCATE TABLE t1 WAIT 0;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-TRUNCATE TABLE t1 NOWAIT;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-RENAME TABLE t1 WAIT 0 TO t2;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-RENAME TABLE t1 NOWAIT TO t2;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-DROP TABLE t1 WAIT 0;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-DROP TABLE t1 NOWAIT;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-LOCK TABLE t1 WRITE WAIT 0;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-LOCK TABLE t1 WRITE NOWAIT;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-disconnect con1;
-DROP TABLE t1 WAIT 1;
diff --git a/mysql-test/r/timezone.result b/mysql-test/r/timezone.result
deleted file mode 100644
index d84fe54ba8c..00000000000
--- a/mysql-test/r/timezone.result
+++ /dev/null
@@ -1,50 +0,0 @@
-DROP TABLE IF EXISTS t1;
-show variables like "system_time_zone";
-Variable_name Value
-system_time_zone MET
-select @a:=FROM_UNIXTIME(1);
-@a:=FROM_UNIXTIME(1)
-1970-01-01 01:00:01
-select unix_timestamp(@a);
-unix_timestamp(@a)
-1
-CREATE TABLE t1 (ts int);
-INSERT INTO t1 (ts) VALUES (Unix_timestamp('2002-10-27 01:00'));
-INSERT INTO t1 (ts) VALUES (Unix_timestamp('2002-10-27 02:00'));
-INSERT INTO t1 (ts) VALUES (Unix_timestamp('2002-10-27 03:00'));
-INSERT INTO t1 (ts) VALUES (Unix_timestamp('2002-10-27 02:00'));
-INSERT INTO t1 (ts) VALUES (Unix_timestamp('2002-10-27 01:00'));
-INSERT INTO t1 (ts) VALUES (Unix_timestamp('2002-10-27 02:00'));
-INSERT INTO t1 (ts) VALUES (Unix_timestamp('2003-03-30 02:59:59'));
-INSERT INTO t1 (ts) VALUES (Unix_timestamp('2003-03-30 03:00:00'));
-INSERT INTO t1 (ts) VALUES (Unix_timestamp('2003-03-30 03:59:59'));
-INSERT INTO t1 (ts) VALUES (Unix_timestamp('2003-03-30 04:00:01'));
-SELECT ts,from_unixtime(ts) FROM t1;
-ts from_unixtime(ts)
-1035673200 2002-10-27 01:00:00
-1035680400 2002-10-27 02:00:00
-1035684000 2002-10-27 03:00:00
-1035680400 2002-10-27 02:00:00
-1035673200 2002-10-27 01:00:00
-1035680400 2002-10-27 02:00:00
-1048986000 2003-03-30 03:00:00
-1048986000 2003-03-30 03:00:00
-1048989599 2003-03-30 03:59:59
-1048989601 2003-03-30 04:00:01
-DROP TABLE t1;
-CREATE TABLE t1 (ts timestamp);
-INSERT INTO t1 (ts) VALUES ('2003-03-30 01:59:59'),
-('2003-03-30 02:59:59'),
-('2003-03-30 03:00:00');
-Warnings:
-Warning 1299 Invalid TIMESTAMP value in column 'ts' at row 2
-DROP TABLE t1;
-select unix_timestamp('1970-01-01 01:00:00'),
-unix_timestamp('1970-01-01 01:00:01'),
-unix_timestamp('2038-01-19 04:14:07'),
-unix_timestamp('2038-01-19 04:14:08');
-unix_timestamp('1970-01-01 01:00:00') unix_timestamp('1970-01-01 01:00:01') unix_timestamp('2038-01-19 04:14:07') unix_timestamp('2038-01-19 04:14:08')
-0 1 2147483647 NULL
-select unix_timestamp('1969-12-31 23:59:59'), unix_timestamp('1970-01-01 00:00:00'), unix_timestamp('1970-01-01 00:59:59');
-unix_timestamp('1969-12-31 23:59:59') unix_timestamp('1970-01-01 00:00:00') unix_timestamp('1970-01-01 00:59:59')
-NULL NULL NULL
diff --git a/mysql-test/r/timezone2.result b/mysql-test/r/timezone2.result
deleted file mode 100644
index 096e996bffb..00000000000
--- a/mysql-test/r/timezone2.result
+++ /dev/null
@@ -1,334 +0,0 @@
-drop table if exists t1, t2;
-drop function if exists f1;
-create table t1 (ts timestamp);
-set time_zone='+00:00';
-select unix_timestamp(utc_timestamp())-unix_timestamp(current_timestamp());
-unix_timestamp(utc_timestamp())-unix_timestamp(current_timestamp())
-0
-insert into t1 (ts) values ('2003-03-30 02:30:00');
-set time_zone='+10:30';
-select unix_timestamp(utc_timestamp())-unix_timestamp(current_timestamp());
-unix_timestamp(utc_timestamp())-unix_timestamp(current_timestamp())
--37800
-insert into t1 (ts) values ('2003-03-30 02:30:00');
-set time_zone='-10:00';
-select unix_timestamp(utc_timestamp())-unix_timestamp(current_timestamp());
-unix_timestamp(utc_timestamp())-unix_timestamp(current_timestamp())
-36000
-insert into t1 (ts) values ('2003-03-30 02:30:00');
-select * from t1;
-ts
-2003-03-29 16:30:00
-2003-03-29 06:00:00
-2003-03-30 02:30:00
-drop table t1;
-select Name from mysql.time_zone_name where Name in
-('UTC','Universal','MET','Europe/Moscow','leap/Europe/Moscow');
-Name
-Europe/Moscow
-leap/Europe/Moscow
-MET
-Universal
-UTC
-create table t1 (i int, ts timestamp);
-set time_zone='MET';
-insert into t1 (i, ts) values
-(unix_timestamp('2003-03-01 00:00:00'),'2003-03-01 00:00:00');
-insert into t1 (i, ts) values
-(unix_timestamp('2003-03-30 01:59:59'),'2003-03-30 01:59:59'),
-(unix_timestamp('2003-03-30 02:30:00'),'2003-03-30 02:30:00'),
-(unix_timestamp('2003-03-30 03:00:00'),'2003-03-30 03:00:00');
-Warnings:
-Warning 1299 Invalid TIMESTAMP value in column 'ts' at row 2
-insert into t1 (i, ts) values
-(unix_timestamp(20030330015959),20030330015959),
-(unix_timestamp(20030330023000),20030330023000),
-(unix_timestamp(20030330030000),20030330030000);
-Warnings:
-Warning 1299 Invalid TIMESTAMP value in column 'ts' at row 2
-insert into t1 (i, ts) values
-(unix_timestamp('2003-05-01 00:00:00'),'2003-05-01 00:00:00');
-insert into t1 (i, ts) values
-(unix_timestamp('2003-10-26 01:00:00'),'2003-10-26 01:00:00'),
-(unix_timestamp('2003-10-26 02:00:00'),'2003-10-26 02:00:00'),
-(unix_timestamp('2003-10-26 02:59:59'),'2003-10-26 02:59:59'),
-(unix_timestamp('2003-10-26 04:00:00'),'2003-10-26 04:00:00'),
-(unix_timestamp('2003-10-26 02:59:59'),'2003-10-26 02:59:59');
-set time_zone='UTC';
-select * from t1;
-i ts
-1046473200 2003-02-28 23:00:00
-1048985999 2003-03-30 00:59:59
-1048986000 2003-03-30 01:00:00
-1048986000 2003-03-30 01:00:00
-1048985999 2003-03-30 00:59:59
-1048986000 2003-03-30 01:00:00
-1048986000 2003-03-30 01:00:00
-1051740000 2003-04-30 22:00:00
-1067122800 2003-10-25 23:00:00
-1067126400 2003-10-26 00:00:00
-1067129999 2003-10-26 00:59:59
-1067137200 2003-10-26 03:00:00
-1067129999 2003-10-26 00:59:59
-truncate table t1;
-set time_zone='Europe/Moscow';
-insert into t1 (i, ts) values
-(unix_timestamp('2004-01-01 00:00:00'),'2004-01-01 00:00:00'),
-(unix_timestamp('2004-03-28 02:30:00'),'2004-03-28 02:30:00'),
-(unix_timestamp('2004-08-01 00:00:00'),'2003-08-01 00:00:00'),
-(unix_timestamp('2004-10-31 02:30:00'),'2004-10-31 02:30:00');
-Warnings:
-Warning 1299 Invalid TIMESTAMP value in column 'ts' at row 2
-select * from t1;
-i ts
-1072904400 2004-01-01 00:00:00
-1080428400 2004-03-28 03:00:00
-1091304000 2003-08-01 00:00:00
-1099175400 2004-10-31 02:30:00
-truncate table t1;
-set time_zone='leap/Europe/Moscow';
-insert into t1 (i, ts) values
-(unix_timestamp('2004-01-01 00:00:00'),'2004-01-01 00:00:00'),
-(unix_timestamp('2004-03-28 02:30:00'),'2004-03-28 02:30:00'),
-(unix_timestamp('2004-08-01 00:00:00'),'2003-08-01 00:00:00'),
-(unix_timestamp('2004-10-31 02:30:00'),'2004-10-31 02:30:00');
-Warnings:
-Warning 1299 Invalid TIMESTAMP value in column 'ts' at row 2
-select * from t1;
-i ts
-1072904422 2004-01-01 00:00:00
-1080428422 2004-03-28 03:00:00
-1091304022 2003-08-01 00:00:00
-1099175422 2004-10-31 02:30:00
-truncate table t1;
-insert into t1 (i, ts) values
-(unix_timestamp('1981-07-01 03:59:59'),'1981-07-01 03:59:59'),
-(unix_timestamp('1981-07-01 04:00:00'),'1981-07-01 04:00:00');
-select * from t1;
-i ts
-362793608 1981-07-01 03:59:59
-362793610 1981-07-01 04:00:00
-select from_unixtime(362793609);
-from_unixtime(362793609)
-1981-07-01 03:59:59
-drop table t1;
-create table t1 (ts timestamp);
-set time_zone='UTC';
-insert into t1 values ('0000-00-00 00:00:00'),('1969-12-31 23:59:59'),
-('1970-01-01 00:00:00'),('1970-01-01 00:00:01'),
-('2038-01-19 03:14:07'),('2038-01-19 03:14:08');
-Warnings:
-Warning 1264 Out of range value for column 'ts' at row 2
-Warning 1264 Out of range value for column 'ts' at row 3
-Warning 1264 Out of range value for column 'ts' at row 6
-select * from t1;
-ts
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-1970-01-01 00:00:01
-2038-01-19 03:14:07
-0000-00-00 00:00:00
-truncate table t1;
-set time_zone='MET';
-insert into t1 values ('0000-00-00 00:00:00'),('1970-01-01 00:30:00'),
-('1970-01-01 01:00:00'),('1970-01-01 01:00:01'),
-('2038-01-19 04:14:07'),('2038-01-19 04:14:08');
-Warnings:
-Warning 1264 Out of range value for column 'ts' at row 2
-Warning 1264 Out of range value for column 'ts' at row 3
-Warning 1264 Out of range value for column 'ts' at row 6
-select * from t1;
-ts
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-1970-01-01 01:00:01
-2038-01-19 04:14:07
-0000-00-00 00:00:00
-truncate table t1;
-set time_zone='+01:30';
-insert into t1 values ('0000-00-00 00:00:00'),('1970-01-01 01:00:00'),
-('1970-01-01 01:30:00'),('1970-01-01 01:30:01'),
-('2038-01-19 04:44:07'),('2038-01-19 04:44:08');
-Warnings:
-Warning 1264 Out of range value for column 'ts' at row 2
-Warning 1264 Out of range value for column 'ts' at row 3
-Warning 1264 Out of range value for column 'ts' at row 6
-select * from t1;
-ts
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-1970-01-01 01:30:01
-2038-01-19 04:44:07
-0000-00-00 00:00:00
-drop table t1;
-show variables like 'time_zone';
-Variable_name Value
-time_zone +01:30
-set time_zone = default;
-show variables like 'time_zone';
-Variable_name Value
-time_zone SYSTEM
-set time_zone= '0';
-ERROR HY000: Unknown or incorrect time zone: '0'
-set time_zone= '0:0';
-ERROR HY000: Unknown or incorrect time zone: '0:0'
-set time_zone= '-20:00';
-ERROR HY000: Unknown or incorrect time zone: '-20:00'
-set time_zone= '+20:00';
-ERROR HY000: Unknown or incorrect time zone: '+20:00'
-set time_zone= 'Some/Unknown/Time/Zone';
-ERROR HY000: Unknown or incorrect time zone: 'Some/Unknown/Time/Zone'
-select convert_tz(now(),'UTC', 'Universal') = now();
-convert_tz(now(),'UTC', 'Universal') = now()
-1
-select convert_tz(now(),'utc', 'UTC') = now();
-convert_tz(now(),'utc', 'UTC') = now()
-1
-select convert_tz('1917-11-07 12:00:00', 'MET', 'UTC');
-convert_tz('1917-11-07 12:00:00', 'MET', 'UTC')
-1917-11-07 12:00:00
-select convert_tz('1970-01-01 01:00:00', 'MET', 'UTC');
-convert_tz('1970-01-01 01:00:00', 'MET', 'UTC')
-1970-01-01 01:00:00
-select convert_tz('1970-01-01 01:00:01', 'MET', 'UTC');
-convert_tz('1970-01-01 01:00:01', 'MET', 'UTC')
-1970-01-01 00:00:01
-select convert_tz('2003-03-01 00:00:00', 'MET', 'UTC');
-convert_tz('2003-03-01 00:00:00', 'MET', 'UTC')
-2003-02-28 23:00:00
-select convert_tz('2003-03-30 01:59:59', 'MET', 'UTC');
-convert_tz('2003-03-30 01:59:59', 'MET', 'UTC')
-2003-03-30 00:59:59
-select convert_tz('2003-03-30 02:30:00', 'MET', 'UTC');
-convert_tz('2003-03-30 02:30:00', 'MET', 'UTC')
-2003-03-30 01:00:00
-select convert_tz('2003-03-30 03:00:00', 'MET', 'UTC');
-convert_tz('2003-03-30 03:00:00', 'MET', 'UTC')
-2003-03-30 01:00:00
-select convert_tz('2003-05-01 00:00:00', 'MET', 'UTC');
-convert_tz('2003-05-01 00:00:00', 'MET', 'UTC')
-2003-04-30 22:00:00
-select convert_tz('2003-10-26 01:00:00', 'MET', 'UTC');
-convert_tz('2003-10-26 01:00:00', 'MET', 'UTC')
-2003-10-25 23:00:00
-select convert_tz('2003-10-26 02:00:00', 'MET', 'UTC');
-convert_tz('2003-10-26 02:00:00', 'MET', 'UTC')
-2003-10-26 00:00:00
-select convert_tz('2003-10-26 02:59:59', 'MET', 'UTC');
-convert_tz('2003-10-26 02:59:59', 'MET', 'UTC')
-2003-10-26 00:59:59
-select convert_tz('2003-10-26 04:00:00', 'MET', 'UTC');
-convert_tz('2003-10-26 04:00:00', 'MET', 'UTC')
-2003-10-26 03:00:00
-select convert_tz('2038-01-19 04:14:07', 'MET', 'UTC');
-convert_tz('2038-01-19 04:14:07', 'MET', 'UTC')
-2038-01-19 03:14:07
-select convert_tz('2038-01-19 04:14:08', 'MET', 'UTC');
-convert_tz('2038-01-19 04:14:08', 'MET', 'UTC')
-2038-01-19 04:14:08
-select convert_tz('2103-01-01 04:00:00', 'MET', 'UTC');
-convert_tz('2103-01-01 04:00:00', 'MET', 'UTC')
-2103-01-01 04:00:00
-create table t1 (tz varchar(3));
-insert into t1 (tz) values ('MET'), ('UTC');
-select tz, convert_tz('2003-12-31 00:00:00',tz,'UTC'), convert_tz('2003-12-31 00:00:00','UTC',tz) from t1 order by tz;
-tz convert_tz('2003-12-31 00:00:00',tz,'UTC') convert_tz('2003-12-31 00:00:00','UTC',tz)
-MET 2003-12-30 23:00:00 2003-12-31 01:00:00
-UTC 2003-12-31 00:00:00 2003-12-31 00:00:00
-drop table t1;
-select convert_tz('2003-12-31 04:00:00', NULL, 'UTC');
-convert_tz('2003-12-31 04:00:00', NULL, 'UTC')
-NULL
-select convert_tz('2003-12-31 04:00:00', 'SomeNotExistingTimeZone', 'UTC');
-convert_tz('2003-12-31 04:00:00', 'SomeNotExistingTimeZone', 'UTC')
-NULL
-select convert_tz('2003-12-31 04:00:00', 'MET', 'SomeNotExistingTimeZone');
-convert_tz('2003-12-31 04:00:00', 'MET', 'SomeNotExistingTimeZone')
-NULL
-select convert_tz('2003-12-31 04:00:00', 'MET', NULL);
-convert_tz('2003-12-31 04:00:00', 'MET', NULL)
-NULL
-select convert_tz( NULL, 'MET', 'UTC');
-convert_tz( NULL, 'MET', 'UTC')
-NULL
-create table t1 (ts timestamp);
-set timestamp=1000000000;
-insert into t1 (ts) values (now());
-select convert_tz(ts, @@time_zone, 'Japan') from t1;
-convert_tz(ts, @@time_zone, 'Japan')
-2001-09-09 10:46:40
-drop table t1;
-select convert_tz('2005-01-14 17:00:00', 'UTC', custTimeZone) from (select 'UTC' as custTimeZone) as tmp;
-convert_tz('2005-01-14 17:00:00', 'UTC', custTimeZone)
-2005-01-14 17:00:00
-create table t1 select convert_tz(NULL, NULL, NULL);
-select * from t1;
-convert_tz(NULL, NULL, NULL)
-NULL
-drop table t1;
-SET @old_log_bin_trust_function_creators = @@global.log_bin_trust_function_creators;
-SET GLOBAL log_bin_trust_function_creators = 1;
-create table t1 (ldt datetime, udt datetime);
-create function f1(i datetime) returns datetime
-return convert_tz(i, 'UTC', 'Europe/Moscow');
-create trigger t1_bi before insert on t1 for each row
-set new.udt:= convert_tz(new.ldt, 'Europe/Moscow', 'UTC');
-insert into t1 (ldt) values ('2006-04-19 16:30:00');
-select * from t1;
-ldt udt
-2006-04-19 16:30:00 2006-04-19 12:30:00
-select ldt, f1(udt) as ldt2 from t1;
-ldt ldt2
-2006-04-19 16:30:00 2006-04-19 16:30:00
-drop table t1;
-drop function f1;
-SET @@global.log_bin_trust_function_creators= @old_log_bin_trust_function_creators;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (t TIMESTAMP);
-INSERT INTO t1 VALUES (NULL), (NULL);
-LOCK TABLES t1 WRITE;
-SELECT CONVERT_TZ(NOW(), 'UTC', 'Europe/Moscow') IS NULL;
-CONVERT_TZ(NOW(), 'UTC', 'Europe/Moscow') IS NULL
-0
-UPDATE t1 SET t = CONVERT_TZ(t, 'UTC', 'Europe/Moscow');
-UNLOCK TABLES;
-DROP TABLE t1;
-#
-# Bug #55424: convert_tz crashes when fed invalid data
-#
-CREATE TABLE t1 (a SET('x') NOT NULL);
-INSERT INTO t1 VALUES ('');
-SELECT CONVERT_TZ(1, a, 1) FROM t1;
-CONVERT_TZ(1, a, 1)
-NULL
-SELECT CONVERT_TZ(1, 1, a) FROM t1;
-CONVERT_TZ(1, 1, a)
-NULL
-DROP TABLE t1;
-End of 5.1 tests
-#
-# Start of 5.3 tests
-#
-#
-# MDEV-4653 Wrong result for CONVERT_TZ(TIME('00:00:00'),'+00:00','+7:5')
-#
-SET timestamp=unix_timestamp('2001-02-03 10:20:30');
-SELECT CONVERT_TZ(TIME('00:00:00'),'+00:00','+7:5');
-CONVERT_TZ(TIME('00:00:00'),'+00:00','+7:5')
-2001-02-03 07:05:00
-SELECT CONVERT_TZ(TIME('2010-01-01 00:00:00'),'+00:00','+7:5');
-CONVERT_TZ(TIME('2010-01-01 00:00:00'),'+00:00','+7:5')
-2001-02-03 07:05:00
-SET timestamp=DEFAULT;
-#
-# MDEV-5506 safe_mutex: Trying to lock unitialized mutex at safemalloc.c on server shutdown after SELECT with CONVERT_TZ
-#
-SELECT CONVERT_TZ('2001-10-08 00:00:00', MAKE_SET(0,'+01:00'), '+00:00' );
-CONVERT_TZ('2001-10-08 00:00:00', MAKE_SET(0,'+01:00'), '+00:00' )
-NULL
-#
-# End of 5.3 tests
-#
diff --git a/mysql-test/r/timezone3.result b/mysql-test/r/timezone3.result
deleted file mode 100644
index ceac4a5aefb..00000000000
--- a/mysql-test/r/timezone3.result
+++ /dev/null
@@ -1,49 +0,0 @@
-drop table if exists t1;
-create table t1 (i int, c varchar(20));
-insert into t1 values
-(unix_timestamp("2004-01-01 00:00:00"), "2004-01-01 00:00:00");
-insert into t1 values
-(unix_timestamp("2004-03-28 01:59:59"), "2004-03-28 01:59:59"),
-(unix_timestamp("2004-03-28 02:30:00"), "2004-03-28 02:30:00"),
-(unix_timestamp("2004-03-28 03:00:00"), "2004-03-28 03:00:00");
-insert into t1 values
-(unix_timestamp('2004-05-01 00:00:00'),'2004-05-01 00:00:00');
-insert into t1 values
-(unix_timestamp('2004-10-31 01:00:00'),'2004-10-31 01:00:00'),
-(unix_timestamp('2004-10-31 02:00:00'),'2004-10-31 02:00:00'),
-(unix_timestamp('2004-10-31 02:59:59'),'2004-10-31 02:59:59'),
-(unix_timestamp('2004-10-31 04:00:00'),'2004-10-31 04:00:00'),
-(unix_timestamp('2004-10-31 02:59:59'),'2004-10-31 02:59:59');
-insert into t1 values
-(unix_timestamp('1981-07-01 03:59:59'),'1981-07-01 03:59:59'),
-(unix_timestamp('1981-07-01 04:00:00'),'1981-07-01 04:00:00');
-insert into t1 values
-(unix_timestamp('2009-01-01 02:59:59'),'2009-01-01 02:59:59'),
-(unix_timestamp('2009-01-01 03:00:00'),'2009-01-01 03:00:00');
-select i, from_unixtime(i), c from t1;
-i from_unixtime(i) c
-1072904422 2004-01-01 00:00:00 2004-01-01 00:00:00
-1080428421 2004-03-28 01:59:59 2004-03-28 01:59:59
-1080428422 2004-03-28 03:00:00 2004-03-28 02:30:00
-1080428422 2004-03-28 03:00:00 2004-03-28 03:00:00
-1083355222 2004-05-01 00:00:00 2004-05-01 00:00:00
-1099170022 2004-10-31 01:00:00 2004-10-31 01:00:00
-1099177222 2004-10-31 02:00:00 2004-10-31 02:00:00
-1099180821 2004-10-31 02:59:59 2004-10-31 02:59:59
-1099184422 2004-10-31 04:00:00 2004-10-31 04:00:00
-1099180821 2004-10-31 02:59:59 2004-10-31 02:59:59
-362793608 1981-07-01 03:59:59 1981-07-01 03:59:59
-362793610 1981-07-01 04:00:00 1981-07-01 04:00:00
-1230768022 2009-01-01 02:59:59 2009-01-01 02:59:59
-1230768024 2009-01-01 03:00:00 2009-01-01 03:00:00
-drop table t1;
-create table t1 (ts timestamp);
-insert into t1 values (19730101235900), (20040101235900);
-select * from t1;
-ts
-1973-01-01 23:59:00
-2004-01-01 23:59:00
-drop table t1;
-SELECT FROM_UNIXTIME(1230768022), FROM_UNIXTIME(1230768023), FROM_UNIXTIME(1230768024);
-FROM_UNIXTIME(1230768022) FROM_UNIXTIME(1230768023) FROM_UNIXTIME(1230768024)
-2009-01-01 02:59:59 2009-01-01 02:59:59 2009-01-01 03:00:00
diff --git a/mysql-test/r/timezone4.result b/mysql-test/r/timezone4.result
deleted file mode 100644
index 28028bea657..00000000000
--- a/mysql-test/r/timezone4.result
+++ /dev/null
@@ -1,6 +0,0 @@
-select from_unixtime(0);
-from_unixtime(0)
-1969-12-31 14:00:00
-select unix_timestamp('1969-12-31 14:00:01');
-unix_timestamp('1969-12-31 14:00:01')
-1
diff --git a/mysql-test/r/timezone_grant.result b/mysql-test/r/timezone_grant.result
deleted file mode 100644
index 42ce458d00f..00000000000
--- a/mysql-test/r/timezone_grant.result
+++ /dev/null
@@ -1,92 +0,0 @@
-drop tables if exists t1, t2;
-drop view if exists v1;
-delete from mysql.user where user like 'mysqltest\_%';
-delete from mysql.db where user like 'mysqltest\_%';
-delete from mysql.tables_priv where user like 'mysqltest\_%';
-delete from mysql.columns_priv where user like 'mysqltest\_%';
-flush privileges;
-create table t1 (a int, b datetime);
-create table t2 (c int, d datetime);
-create user mysqltest_1@localhost;
-grant all privileges on test.* to mysqltest_1@localhost;
-connect tzuser, localhost, mysqltest_1,,;
-connection tzuser;
-show grants for current_user();
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT ALL PRIVILEGES ON `test`.* TO 'mysqltest_1'@'localhost'
-set time_zone= '+00:00';
-set time_zone= 'Europe/Moscow';
-select convert_tz('2004-10-21 19:00:00', 'Europe/Moscow', 'UTC');
-convert_tz('2004-10-21 19:00:00', 'Europe/Moscow', 'UTC')
-2004-10-21 15:00:00
-select convert_tz(b, 'Europe/Moscow', 'UTC') from t1;
-convert_tz(b, 'Europe/Moscow', 'UTC')
-update t1, t2 set t1.b = convert_tz('2004-10-21 19:00:00', 'Europe/Moscow', 'UTC')
-where t1.a = t2.c and t2.d = (select max(d) from t2);
-select * from mysql.time_zone_name;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'time_zone_name'
-select Name, convert_tz('2004-10-21 19:00:00', Name, 'UTC') from mysql.time_zone_name;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'time_zone_name'
-connection default;
-disconnect tzuser;
-connection default;
-delete from mysql.db where user like 'mysqltest\_%';
-flush privileges;
-grant all privileges on test.t1 to mysqltest_1@localhost;
-grant all privileges on test.t2 to mysqltest_1@localhost;
-connect tzuser2, localhost, mysqltest_1,,;
-connection tzuser2;
-show grants for current_user();
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
-GRANT ALL PRIVILEGES ON `test`.`t2` TO 'mysqltest_1'@'localhost'
-GRANT ALL PRIVILEGES ON `test`.`t1` TO 'mysqltest_1'@'localhost'
-set time_zone= '+00:00';
-set time_zone= 'Europe/Moscow';
-select convert_tz('2004-11-31 12:00:00', 'Europe/Moscow', 'UTC');
-convert_tz('2004-11-31 12:00:00', 'Europe/Moscow', 'UTC')
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2004-11-31 12:00:00'
-select convert_tz(b, 'Europe/Moscow', 'UTC') from t1;
-convert_tz(b, 'Europe/Moscow', 'UTC')
-update t1, t2 set t1.b = convert_tz('2004-11-30 12:00:00', 'Europe/Moscow', 'UTC')
-where t1.a = t2.c and t2.d = (select max(d) from t2);
-select * from mysql.time_zone_name;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'time_zone_name'
-select Name, convert_tz('2004-11-30 12:00:00', Name, 'UTC') from mysql.time_zone_name;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'time_zone_name'
-drop table t1, t2;
-create table t1 (a int, b datetime);
-create table t2 (a int, b varchar(40));
-update t1 set b = '2005-01-01 10:00';
-update t1 set b = convert_tz(b, 'UTC', 'UTC');
-update t1 join t2 on (t1.a = t2.a) set t1.b = '2005-01-01 10:00' where t2.b = 'foo';
-update t1 join t2 on (t1.a = t2.a) set t1.b = convert_tz('2005-01-01 10:00','UTC','UTC') where t2.b = 'foo';
-connection default;
-disconnect tzuser2;
-delete from mysql.user where user like 'mysqltest\_%';
-delete from mysql.db where user like 'mysqltest\_%';
-delete from mysql.tables_priv where user like 'mysqltest\_%';
-flush privileges;
-drop table t1, t2;
-create table t1 (a int, b datetime);
-insert into t1 values (1, 20010101000000), (2, 20020101000000);
-create user mysqltest_1@localhost;
-grant all privileges on test.* to mysqltest_1@localhost;
-connect tzuser3, localhost, mysqltest_1,,;
-create view v1 as select a, convert_tz(b, 'UTC', 'Europe/Moscow') as lb from t1;
-select * from v1;
-a lb
-1 2001-01-01 03:00:00
-2 2002-01-01 03:00:00
-select * from v1, mysql.time_zone;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'time_zone'
-drop view v1;
-create view v1 as select a, convert_tz(b, 'UTC', 'Europe/Moscow') as lb from t1, mysql.time_zone;
-ERROR 42000: ANY command denied to user 'mysqltest_1'@'localhost' for table 'time_zone'
-connection default;
-disconnect tzuser3;
-drop table t1;
-drop user mysqltest_1@localhost;
diff --git a/mysql-test/r/tmp_table_count-7586.result b/mysql-test/r/tmp_table_count-7586.result
deleted file mode 100644
index 0c526e0d4a3..00000000000
--- a/mysql-test/r/tmp_table_count-7586.result
+++ /dev/null
@@ -1,83 +0,0 @@
-create table t2 (a int);
-insert into t2 values (1),(2),(3);
-create view v2 as select a from t2;
-flush status;
-select * from v2;
-a
-1
-2
-3
-show status like '%Created_tmp%';
-Variable_name Value
-Created_tmp_disk_tables 0
-Created_tmp_files 0
-Created_tmp_tables 0
-explain select * from v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-select * from (select * from t2) T1;
-a
-1
-2
-3
-show status like '%Created_tmp%';
-Variable_name Value
-Created_tmp_disk_tables 0
-Created_tmp_files 0
-Created_tmp_tables 0
-explain select * from (select * from t2) T1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 3
-drop view v2;
-drop table t2;
-CREATE TABLE t1(a int);
-INSERT INTO t1 values(1),(2);
-CREATE TABLE t2(a int);
-INSERT INTO t2 values(1),(2);
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT * FROM t2 GROUP BY a HAVING a > 1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 test.t1.a 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Using temporary
-truncate table performance_schema.events_statements_history_long;
-flush status;
-CREATE TABLE t3 SELECT * FROM t1 WHERE a IN (SELECT * FROM t2 GROUP BY a HAVING a > 1);
-# Performance schema should be the same as "Created_tmp_tables" variable below
-select sum(created_tmp_tables) from performance_schema.events_statements_history_long;
-sum(created_tmp_tables)
-2
-show status like '%Created_tmp%';
-Variable_name Value
-Created_tmp_disk_tables 0
-Created_tmp_files 0
-Created_tmp_tables 2
-drop table t3;
-EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT * FROM t2 GROUP BY a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
-2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2
-truncate table performance_schema.events_statements_history_long;
-flush status;
-CREATE TABLE t3 SELECT * FROM t1 WHERE a IN (SELECT * FROM t2 GROUP BY a);
-# Performance schema should be the same as "Created_tmp_tables" variable below
-select sum(created_tmp_tables) from performance_schema.events_statements_history_long;
-sum(created_tmp_tables)
-1
-show status like '%Created_tmp%';
-Variable_name Value
-Created_tmp_disk_tables 0
-Created_tmp_files 0
-Created_tmp_tables 1
-drop table t1,t2,t3;
-truncate table performance_schema.events_statements_history_long;
-flush status;
-# Performance schema should be the same as "Created_tmp_tables" variable below
-select sum(created_tmp_tables) from performance_schema.events_statements_history_long;
-sum(created_tmp_tables)
-0
-show status like '%Created_tmp%';
-Variable_name Value
-Created_tmp_disk_tables 0
-Created_tmp_files 0
-Created_tmp_tables 0
diff --git a/mysql-test/r/trans_read_only.result b/mysql-test/r/trans_read_only.result
deleted file mode 100644
index 5e86b0993cd..00000000000
--- a/mysql-test/r/trans_read_only.result
+++ /dev/null
@@ -1,42 +0,0 @@
-#
-# WL#5968: Implement START TRANSACTION READ (WRITE|ONLY);
-#
-#
-# Test9: The --transaction-read-only startup option.
-# Check that the option was set by the .opt file.
-SELECT @@tx_read_only;
-@@tx_read_only
-1
-# Also for new connections.
-connect con1, localhost, root;
-SELECT @@tx_read_only;
-@@tx_read_only
-1
-SET SESSION TRANSACTION READ WRITE;
-SELECT @@tx_read_only;
-@@tx_read_only
-0
-disconnect con1;
-connection default;
-SELECT @@tx_read_only;
-@@tx_read_only
-1
-#
-# Test 10: SET TRANSACTION / START TRANSACTION + implicit commit.
-SET SESSION TRANSACTION READ WRITE;
-SET TRANSACTION READ ONLY;
-# Since DDL does implicit commit before starting, SET TRANSACTION
-# will have no effect because the "next" transaction will already
-# be over before the DDL statement starts.
-CREATE TABLE t1 (a INT);
-START TRANSACTION READ ONLY;
-# The same happens with START TRANSACTION
-DROP TABLE t1;
-#
-# Test 11: INSERT DELAYED
-CREATE TABLE t1(a INT);
-START TRANSACTION READ ONLY;
-INSERT DELAYED INTO t1 VALUES (1);
-ERROR 25006: Cannot execute statement in a READ ONLY transaction
-COMMIT;
-DROP TABLE t1;
diff --git a/mysql-test/r/transaction_timeout.result b/mysql-test/r/transaction_timeout.result
deleted file mode 100644
index 95237cf6940..00000000000
--- a/mysql-test/r/transaction_timeout.result
+++ /dev/null
@@ -1,51 +0,0 @@
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-# Test idle_transaction_timeout
-connect c0,localhost,root,,test,,;
-SHOW VARIABLES LIKE 'idle_%transaction_timeout';
-Variable_name Value
-idle_readonly_transaction_timeout 0
-idle_transaction_timeout 0
-idle_write_transaction_timeout 0
-SET autocommit=0;
-SET idle_transaction_timeout=1;
-BEGIN;
-SELECT * FROM t1;
-a
-SELECT * FROM t1;
-Got one of the listed errors
-disconnect c0;
-# Test idle_readonly_transaction_timeout
-connect c1,localhost,root,,test,,;
-SHOW VARIABLES LIKE 'idle_%transaction_timeout';
-Variable_name Value
-idle_readonly_transaction_timeout 0
-idle_transaction_timeout 0
-idle_write_transaction_timeout 0
-SET autocommit=0;
-SET idle_readonly_transaction_timeout=1;
-BEGIN;
-SELECT * FROM t1;
-a
-SELECT * FROM t1;
-Got one of the listed errors
-disconnect c1;
-# Test idle_write_transaction_timeout
-connect c2,localhost,root,,test,,;
-SHOW VARIABLES LIKE 'idle_%transaction_timeout';
-Variable_name Value
-idle_readonly_transaction_timeout 0
-idle_transaction_timeout 0
-idle_write_transaction_timeout 0
-SET autocommit=0;
-SET idle_write_transaction_timeout=1;
-BEGIN;
-SELECT * FROM t1;
-a
-SELECT * FROM t1;
-a
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t1;
-Got one of the listed errors
-disconnect c2;
-connection default;
-DROP TABLE t1;
diff --git a/mysql-test/r/trigger-compat.result b/mysql-test/r/trigger-compat.result
deleted file mode 100644
index 387d4fb1489..00000000000
--- a/mysql-test/r/trigger-compat.result
+++ /dev/null
@@ -1,144 +0,0 @@
-DELETE FROM mysql.user WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.db WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.tables_priv WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.columns_priv WHERE User LIKE 'mysqltest_%';
-FLUSH PRIVILEGES;
-DROP DATABASE IF EXISTS mysqltest_db1;
-CREATE DATABASE mysqltest_db1;
-CREATE USER mysqltest_dfn@localhost;
-CREATE USER mysqltest_inv@localhost;
-GRANT CREATE, TRIGGER ON mysqltest_db1.* TO mysqltest_dfn@localhost;
-connect wl2818_definer_con,localhost,mysqltest_dfn,,mysqltest_db1;
-connection wl2818_definer_con;
-CREATE TABLE t1(num_value INT);
-CREATE TABLE t2(user_str TEXT);
-CREATE TRIGGER wl2818_trg1 BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 VALUES(CURRENT_USER());
-
----> patching t1.TRG...
-
-CREATE TRIGGER wl2818_trg2 AFTER INSERT ON t1
-FOR EACH ROW
-INSERT INTO t2 VALUES(CURRENT_USER());
-Warnings:
-Warning 1454 No definer attribute for trigger 'mysqltest_db1'.'wl2818_trg1'. The trigger will be activated under the authorization of the invoker, which may have insufficient privileges. Please recreate the trigger
-
-SELECT trigger_name, definer FROM INFORMATION_SCHEMA.TRIGGERS ORDER BY trigger_name;
-trigger_name definer
-wl2818_trg1
-wl2818_trg2 mysqltest_dfn@localhost
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS ORDER BY trigger_name;
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest_db1 wl2818_trg1 INSERT def mysqltest_db1 t1 1 NULL INSERT INTO t2 VALUES(CURRENT_USER()) ROW BEFORE NULL NULL OLD NEW # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION latin1 latin1_swedish_ci latin1_swedish_ci
-def mysqltest_db1 wl2818_trg2 INSERT def mysqltest_db1 t1 1 NULL INSERT INTO t2 VALUES(CURRENT_USER()) ROW AFTER NULL NULL OLD NEW # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION mysqltest_dfn@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-DROP TRIGGER wl2818_trg1;
-Warnings:
-Warning 1454 No definer attribute for trigger 'mysqltest_db1'.'wl2818_trg1'. The trigger will be activated under the authorization of the invoker, which may have insufficient privileges. Please recreate the trigger
-DROP TRIGGER wl2818_trg2;
-disconnect wl2818_definer_con;
-connection default;
-use mysqltest_db1;
-DROP TABLE t1;
-DROP TABLE t2;
-DROP USER mysqltest_dfn@localhost;
-DROP USER mysqltest_inv@localhost;
-DROP DATABASE mysqltest_db1;
-USE test;
-#
-# Bug#45235: 5.1 does not support 5.0-only syntax triggers in any way
-#
-DROP TABLE IF EXISTS t1, t2, t3;
-CREATE TABLE t1 ( a INT );
-CREATE TABLE t2 ( a INT );
-CREATE TABLE t3 ( a INT );
-INSERT INTO t1 VALUES (1), (2), (3);
-INSERT INTO t2 VALUES (1), (2), (3);
-INSERT INTO t3 VALUES (1), (2), (3);
-# We simulate importing a trigger from 5.0 by writing a .TRN file for
-# each trigger plus a .TRG file the way MySQL 5.0 would have done it,
-# with syntax allowed in 5.0 only.
-#
-# Note that in 5.0 the following lines are missing from t1.TRG:
-#
-# client_cs_names='latin1'
-# connection_cl_names='latin1_swedish_ci'
-# db_cl_names='latin1_swedish_ci'
-FLUSH TABLE t1;
-FLUSH TABLE t2;
-# We will get parse errors for most DDL and DML statements when the table
-# has broken triggers. The parse error refers to the first broken
-# trigger.
-CREATE TRIGGER tr16 AFTER UPDATE ON t1 FOR EACH ROW INSERT INTO t1 VALUES (1);
-ERROR 42000: Trigger 'tr13' has an error in its body: 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'a USING t1 a' at line 1'
-CREATE TRIGGER tr22 BEFORE INSERT ON t2 FOR EACH ROW DELETE FROM non_existing_table;
-ERROR 42000: Unknown trigger has an error in its body: 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Not allowed syntax here, and trigger name cant be extracted either.' at line 1'
-SHOW TRIGGERS;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-tr11 INSERT t1 DELETE FROM t3 BEFORE # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-tr12 INSERT t1 DELETE FROM t3 AFTER # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-tr15 UPDATE t1 CREATE DEFINER=`root`@`localhost` TRIGGER tr15 BEFORE UPDATE ON t1 FOR EACH ROW DELETE FROM non_existing_table a USING non_existing_table a BEFORE # latin1 latin1_swedish_ci latin1_swedish_ci
-tr13 DELETE t1 CREATE DEFINER=`root`@`localhost` TRIGGER tr13 BEFORE DELETE ON t1 FOR EACH ROW DELETE FROM t1 a USING t1 a BEFORE # latin1 latin1_swedish_ci latin1_swedish_ci
-tr14 DELETE t1 DELETE FROM non_existing_table AFTER # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-INSERT INTO t1 VALUES (1);
-ERROR 42000: Trigger 'tr13' has an error in its body: 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'a USING t1 a' at line 1'
-INSERT INTO t2 VALUES (1);
-ERROR 42000: Unknown trigger has an error in its body: 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Not allowed syntax here, and trigger name cant be extracted either.' at line 1'
-DELETE FROM t1;
-ERROR 42000: Trigger 'tr13' has an error in its body: 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'a USING t1 a' at line 1'
-UPDATE t1 SET a = 1 WHERE a = 1;
-ERROR 42000: Trigger 'tr13' has an error in its body: 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'a USING t1 a' at line 1'
-SELECT * FROM t1;
-a
-1
-2
-3
-RENAME TABLE t1 TO t1_2;
-ERROR 42000: Trigger 'tr13' has an error in its body: 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'a USING t1 a' at line 1'
-SHOW TRIGGERS;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-tr11 INSERT t1 DELETE FROM t3 BEFORE # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-tr12 INSERT t1 DELETE FROM t3 AFTER # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-tr15 UPDATE t1 CREATE DEFINER=`root`@`localhost` TRIGGER tr15 BEFORE UPDATE ON t1 FOR EACH ROW DELETE FROM non_existing_table a USING non_existing_table a BEFORE # latin1 latin1_swedish_ci latin1_swedish_ci
-tr13 DELETE t1 CREATE DEFINER=`root`@`localhost` TRIGGER tr13 BEFORE DELETE ON t1 FOR EACH ROW DELETE FROM t1 a USING t1 a BEFORE # latin1 latin1_swedish_ci latin1_swedish_ci
-tr14 DELETE t1 DELETE FROM non_existing_table AFTER # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-DROP TRIGGER tr11;
-Warnings:
-Warning 1603 Triggers for table `test`.`t1` have no creation context
-DROP TRIGGER tr12;
-DROP TRIGGER tr13;
-DROP TRIGGER tr14;
-DROP TRIGGER tr15;
-SHOW TRIGGERS;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-# Make sure there is no trigger file left.
-# We write the same trigger files one more time to test DROP TABLE.
-FLUSH TABLE t1;
-FLUSH TABLE t2;
-DROP TABLE t1;
-Warnings:
-Warning 1603 Triggers for table `test`.`t1` have no creation context
-DROP TABLE t2;
-Warnings:
-Warning 1603 Triggers for table `test`.`t2` have no creation context
-DROP TABLE t3;
-# Make sure there is no trigger file left.
-CREATE TABLE t1 ( a INT );
-CREATE TABLE t2 ( a INT );
-INSERT INTO t1 VALUES (1), (2), (3);
-INSERT INTO t2 VALUES (1), (2), (3);
-# We write three trigger files. First trigger is syntaxically incorrect, next trigger is correct
-# and last trigger is broken.
-# Next we try to execute SHOW CREATE TRIGGER command for broken trigger and then try to drop one.
-FLUSH TABLE t1;
-SHOW CREATE TRIGGER tr12;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-tr12 CREATE DEFINER=`root`@`localhost` TRIGGER tr12 BEFORE INSERT ON t1 FOR EACH ROW DELETE FROM t2 latin1 latin1_swedish_ci latin1_swedish_ci NULL
-Warnings:
-Warning 1603 Triggers for table `test`.`t1` have no creation context
-SHOW CREATE TRIGGER tr11;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-tr11 CREATE DEFINER=`root`@`localhost` TRIGGER tr11 BEFORE DELETE ON t1 FOR EACH ROW DELETE FROM t1 a USING t1 a latin1 latin1_swedish_ci latin1_swedish_ci NULL
-DROP TRIGGER tr12;
-DROP TRIGGER tr11;
-DROP TABLE t1;
-DROP TABLE t2;
diff --git a/mysql-test/r/trigger-trans.result b/mysql-test/r/trigger-trans.result
deleted file mode 100644
index c58c4230a40..00000000000
--- a/mysql-test/r/trigger-trans.result
+++ /dev/null
@@ -1,231 +0,0 @@
-drop table if exists t1;
-create table t1 (a varchar(16), b int) engine=innodb;
-create trigger t1_bi before insert on t1 for each row
-begin
-set new.a := upper(new.a);
-set new.b := new.b + 3;
-end|
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test' and event_object_table = 't1';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-test t1_bi test t1 begin
-set new.a := upper(new.a);
-set new.b := new.b + 3;
-end
-insert into t1 values ('The Lion', 10);
-select * from t1;
-a b
-THE LION 13
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
-test.t1 optimize status OK
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test' and event_object_table = 't1';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-test t1_bi test t1 begin
-set new.a := upper(new.a);
-set new.b := new.b + 3;
-end
-insert into t1 values ('The Unicorn', 20);
-select * from t1;
-a b
-THE LION 13
-THE UNICORN 23
-alter table t1 add column c int default 0;
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test' and event_object_table = 't1';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-test t1_bi test t1 begin
-set new.a := upper(new.a);
-set new.b := new.b + 3;
-end
-insert into t1 values ('Alice', 30, 1);
-select * from t1;
-a b c
-THE LION 13 0
-THE UNICORN 23 0
-ALICE 33 1
-alter table t1 rename to t1;
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test' and event_object_table = 't1';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-test t1_bi test t1 begin
-set new.a := upper(new.a);
-set new.b := new.b + 3;
-end
-insert into t1 values ('The Crown', 40, 1);
-select * from t1;
-a b c
-THE LION 13 0
-THE UNICORN 23 0
-ALICE 33 1
-THE CROWN 43 1
-alter table t1 rename to t1, add column d int default 0;
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test' and event_object_table = 't1';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-test t1_bi test t1 begin
-set new.a := upper(new.a);
-set new.b := new.b + 3;
-end
-insert into t1 values ('The Pie', 50, 1, 1);
-select * from t1;
-a b c d
-THE LION 13 0 0
-THE UNICORN 23 0 0
-ALICE 33 1 0
-THE CROWN 43 1 0
-THE PIE 53 1 1
-drop table t1;
-
-Bug#26141 mixing table types in trigger causes full
-table lock on innodb table
-
-Ensure we do not open and lock tables for the triggers we do not
-fire.
-
-drop table if exists t1, t2, t3;
-drop trigger if exists trg_bug26141_au;
-drop trigger if exists trg_bug26141_ai;
-create table t1 (c int primary key) engine=innodb;
-create table t2 (c int) engine=myisam;
-create table t3 (c int) engine=myisam;
-insert into t1 (c) values (1);
-create trigger trg_bug26141_ai after insert on t1
-for each row
-begin
-insert into t2 (c) values (1);
-# We need the 'sync' lock to synchronously wait in connection 2 till
-# the moment when the trigger acquired all the locks.
-select release_lock("lock_bug26141_sync") into @a;
-# 1000 is time in seconds of lock wait timeout -- this is a way
-# to cause a manageable sleep up to 1000 seconds
-select get_lock("lock_bug26141_wait", 1000) into @a;
-end|
-create trigger trg_bug26141_au after update on t1
-for each row
-begin
-insert into t3 (c) values (1);
-end|
-connect connection_aux,localhost,root,,test,,;
-connect connection_update,localhost,root,,test,,;
-connection connection_aux;
-select get_lock("lock_bug26141_wait", 0);
-get_lock("lock_bug26141_wait", 0)
-1
-connection default;
-select get_lock("lock_bug26141_sync", /* must not be priorly locked */ 0);
-get_lock("lock_bug26141_sync", /* must not be priorly locked */ 0)
-1
-insert into t1 (c) values (2);
-connection connection_update;
-select get_lock("lock_bug26141_sync", 1000);
-get_lock("lock_bug26141_sync", 1000)
-1
-update t1 set c=3 where c=1;
-select release_lock("lock_bug26141_sync");
-release_lock("lock_bug26141_sync")
-1
-connection connection_aux;
-select release_lock("lock_bug26141_wait");
-release_lock("lock_bug26141_wait")
-1
-connection default;
-select * from t1;
-c
-2
-3
-select * from t2;
-c
-1
-select * from t3;
-c
-1
-drop table t1, t2, t3;
-disconnect connection_update;
-disconnect connection_aux;
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-CREATE TABLE t1(a INT PRIMARY KEY) ENGINE=innodb;
-CREATE TABLE t2(b INT, FOREIGN KEY(b) REFERENCES t1(a)) ENGINE=innodb;
-INSERT INTO t1 VALUES (1);
-CREATE TRIGGER t1_bd BEFORE DELETE ON t1 FOR EACH ROW SET @a = 1;
-CREATE TRIGGER t1_ad AFTER DELETE ON t1 FOR EACH ROW SET @b = 1;
-SET @a = 0;
-SET @b = 0;
-TRUNCATE t1;
-ERROR 42000: Cannot truncate a table referenced in a foreign key constraint (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`b`) REFERENCES `test`.`t1` (`a`))
-SELECT @a, @b;
-@a @b
-0 0
-DELETE FROM t1;
-SELECT @a, @b;
-@a @b
-1 1
-INSERT INTO t1 VALUES (1);
-DELETE FROM t1;
-SELECT @a, @b;
-@a @b
-1 1
-DROP TABLE t2, t1;
-End of 5.0 tests
-BUG#31612
-Trigger fired multiple times leads to gaps in auto_increment sequence
-create table t1 (a int, val char(1)) engine=InnoDB;
-create table t2 (b int auto_increment primary key,
-val char(1)) engine=InnoDB;
-create trigger t1_after_insert after
-insert on t1 for each row insert into t2 set val=NEW.val;
-insert into t1 values ( 123, 'a'), ( 123, 'b'), ( 123, 'c'),
-(123, 'd'), (123, 'e'), (123, 'f'), (123, 'g');
-insert into t1 values ( 654, 'a'), ( 654, 'b'), ( 654, 'c'),
-(654, 'd'), (654, 'e'), (654, 'f'), (654, 'g');
-select * from t2 order by b;
-b val
-1 a
-2 b
-3 c
-4 d
-5 e
-6 f
-7 g
-8 a
-9 b
-10 c
-11 d
-12 e
-13 f
-14 g
-drop trigger t1_after_insert;
-drop table t1,t2;
-#
-#Bug#19683834 SOME INNODB ERRORS CAUSES STORED FUNCTION
-# AND TRIGGER HANDLERS TO BE IGNORED
-#Code fixed in Bug#16041903
-CREATE TABLE t1 (id int unsigned PRIMARY KEY, val int DEFAULT 0)
-ENGINE=InnoDB;
-INSERT INTO t1 (id) VALUES (1), (2);
-CREATE TABLE t2 (id int PRIMARY KEY);
-CREATE TABLE t3 LIKE t2;
-CREATE TRIGGER bef_insert BEFORE INSERT ON t2 FOR EACH ROW
-BEGIN
-DECLARE CONTINUE HANDLER FOR 1062 BEGIN END;
-INSERT INTO t3 (id) VALUES (NEW.id);
-INSERT INTO t3 (id) VALUES (NEW.id);
-END//
-START TRANSACTION;
-UPDATE t1 SET val = val + 1;
-connect con2,localhost,root,,test,,;
-SET SESSION innodb_lock_wait_timeout = 2;
-UPDATE t1 SET val = val + 1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-INSERT INTO t2 (id) VALUES (1);
-disconnect con2;
-connection default;
-DROP TABLE t3, t2, t1;
diff --git a/mysql-test/r/trigger.result b/mysql-test/r/trigger.result
deleted file mode 100644
index 8473b3bb90d..00000000000
--- a/mysql-test/r/trigger.result
+++ /dev/null
@@ -1,2417 +0,0 @@
-drop table if exists t1, t2, t3, t4;
-drop view if exists v1;
-drop database if exists mysqltest;
-drop function if exists f1;
-drop function if exists f2;
-drop procedure if exists p1;
-connect addconroot1, localhost, root,,;
-connect addconroot2, localhost, root,,;
-connect addconwithoutdb, localhost, root,,*NO-ONE*;
-connection default;
-create table t1 (i int);
-create trigger trg before insert on t1 for each row set @a:=1;
-set @a:=0;
-select @a;
-@a
-0
-insert into t1 values (1);
-select @a;
-@a
-1
-drop trigger trg;
-create trigger trg before insert on t1 for each row set @a:=new.i;
-insert into t1 values (123);
-select @a;
-@a
-123
-drop trigger trg;
-drop table t1;
-create table t1 (i int not null, j int);
-create trigger trg before insert on t1 for each row
-begin
-if isnull(new.j) then
-set new.j:= new.i * 10;
-end if;
-end|
-insert into t1 (i) values (1)|
-insert into t1 (i,j) values (2, 3)|
-select * from t1|
-i j
-1 10
-2 3
-drop trigger trg|
-drop table t1|
-create table t1 (i int not null primary key);
-create trigger trg after insert on t1 for each row
-set @a:= if(@a,concat(@a, ":", new.i), new.i);
-set @a:="";
-insert into t1 values (2),(3),(4),(5);
-select @a;
-@a
-2:3:4:5
-drop trigger trg;
-drop table t1;
-create table t1 (aid int not null primary key, balance int not null default 0);
-insert into t1 values (1, 1000), (2,3000);
-create trigger trg before update on t1 for each row
-begin
-declare loc_err varchar(255);
-if abs(new.balance - old.balance) > 1000 then
-set new.balance:= old.balance;
-set loc_err := concat("Too big change for aid = ", new.aid);
-set @update_failed:= if(@update_failed, concat(@a, ":", loc_err), loc_err);
-end if;
-end|
-set @update_failed:=""|
-update t1 set balance=1500|
-select @update_failed;
-select * from t1|
-@update_failed
-Too big change for aid = 2
-aid balance
-1 1500
-2 3000
-drop trigger trg|
-drop table t1|
-create table t1 (i int);
-insert into t1 values (1),(2),(3),(4);
-create trigger trg after update on t1 for each row
-set @total_change:=@total_change + new.i - old.i;
-set @total_change:=0;
-update t1 set i=3;
-select @total_change;
-@total_change
-2
-drop trigger trg;
-drop table t1;
-create table t1 (i int);
-insert into t1 values (1),(2),(3),(4);
-create trigger trg before delete on t1 for each row
-set @del_sum:= @del_sum + old.i;
-set @del_sum:= 0;
-delete from t1 where i <= 3;
-select @del_sum;
-@del_sum
-6
-drop trigger trg;
-drop table t1;
-create table t1 (i int);
-insert into t1 values (1),(2),(3),(4);
-create trigger trg after delete on t1 for each row set @del:= 1;
-set @del:= 0;
-delete from t1 where i <> 0;
-select @del;
-@del
-1
-drop trigger trg;
-drop table t1;
-create table t1 (i int, j int);
-create trigger trg1 before insert on t1 for each row
-begin
-if new.j > 10 then
-set new.j := 10;
-end if;
-end|
-create trigger trg2 before update on t1 for each row
-begin
-if old.i % 2 = 0 then
-set new.j := -1;
-end if;
-end|
-create trigger trg3 after update on t1 for each row
-begin
-if new.j = -1 then
-set @fired:= "Yes";
-end if;
-end|
-set @fired:="";
-insert into t1 values (1,2),(2,3),(3,14);
-select @fired;
-@fired
-
-select * from t1;
-i j
-1 2
-2 3
-3 10
-update t1 set j= 20;
-select @fired;
-@fired
-Yes
-select * from t1;
-i j
-1 20
-2 -1
-3 20
-drop trigger trg1;
-drop trigger trg2;
-drop trigger trg3;
-drop table t1;
-create table t1 (id int not null primary key, data int);
-create trigger t1_bi before insert on t1 for each row
-set @log:= concat(@log, "(BEFORE_INSERT: new=(id=", new.id, ", data=", new.data,"))");
-create trigger t1_ai after insert on t1 for each row
-set @log:= concat(@log, "(AFTER_INSERT: new=(id=", new.id, ", data=", new.data,"))");
-create trigger t1_bu before update on t1 for each row
-set @log:= concat(@log, "(BEFORE_UPDATE: old=(id=", old.id, ", data=", old.data,
-") new=(id=", new.id, ", data=", new.data,"))");
-create trigger t1_au after update on t1 for each row
-set @log:= concat(@log, "(AFTER_UPDATE: old=(id=", old.id, ", data=", old.data,
-") new=(id=", new.id, ", data=", new.data,"))");
-create trigger t1_bd before delete on t1 for each row
-set @log:= concat(@log, "(BEFORE_DELETE: old=(id=", old.id, ", data=", old.data,"))");
-create trigger t1_ad after delete on t1 for each row
-set @log:= concat(@log, "(AFTER_DELETE: old=(id=", old.id, ", data=", old.data,"))");
-set @log:= "";
-insert into t1 values (1, 1);
-select @log;
-@log
-(BEFORE_INSERT: new=(id=1, data=1))(AFTER_INSERT: new=(id=1, data=1))
-set @log:= "";
-insert ignore t1 values (1, 2);
-Warnings:
-Warning 1062 Duplicate entry '1' for key 'PRIMARY'
-select @log;
-@log
-(BEFORE_INSERT: new=(id=1, data=2))
-set @log:= "";
-insert into t1 (id, data) values (1, 3), (2, 2) on duplicate key update data= data + 1;
-select @log;
-@log
-(BEFORE_INSERT: new=(id=1, data=3))(BEFORE_UPDATE: old=(id=1, data=1) new=(id=1, data=2))(AFTER_UPDATE: old=(id=1, data=1) new=(id=1, data=2))(BEFORE_INSERT: new=(id=2, data=2))(AFTER_INSERT: new=(id=2, data=2))
-set @log:= "";
-replace t1 values (1, 4), (3, 3);
-select @log;
-@log
-(BEFORE_INSERT: new=(id=1, data=4))(BEFORE_DELETE: old=(id=1, data=2))(AFTER_DELETE: old=(id=1, data=2))(AFTER_INSERT: new=(id=1, data=4))(BEFORE_INSERT: new=(id=3, data=3))(AFTER_INSERT: new=(id=3, data=3))
-drop trigger t1_bd;
-drop trigger t1_ad;
-set @log:= "";
-replace t1 values (1, 5);
-select @log;
-@log
-(BEFORE_INSERT: new=(id=1, data=5))(AFTER_INSERT: new=(id=1, data=5))
-drop table t1;
-create table t1 (id int primary key, data varchar(10), fk int);
-create table t2 (event varchar(100));
-create table t3 (id int primary key);
-create trigger t1_ai after insert on t1 for each row
-insert into t2 values (concat("INSERT INTO t1 id=", new.id, " data='", new.data, "'"));
-insert into t1 (id, data) values (1, "one"), (2, "two");
-select * from t1;
-id data fk
-1 one NULL
-2 two NULL
-select * from t2;
-event
-INSERT INTO t1 id=1 data='one'
-INSERT INTO t1 id=2 data='two'
-drop trigger t1_ai;
-create trigger t1_bi before insert on t1 for each row
-begin
-if exists (select id from t3 where id=new.fk) then
-insert into t2 values (concat("INSERT INTO t1 id=", new.id, " data='", new.data, "' fk=", new.fk));
-else
-insert into t2 values (concat("INSERT INTO t1 FAILED id=", new.id, " data='", new.data, "' fk=", new.fk));
-set new.id= NULL;
-end if;
-end|
-insert into t3 values (1);
-insert into t1 values (4, "four", 1), (5, "five", 2);
-Warnings:
-Warning 1048 Column 'id' cannot be null
-select * from t1;
-id data fk
-1 one NULL
-2 two NULL
-4 four 1
-0 five 2
-select * from t2;
-event
-INSERT INTO t1 id=1 data='one'
-INSERT INTO t1 id=2 data='two'
-INSERT INTO t1 id=4 data='four' fk=1
-INSERT INTO t1 FAILED id=5 data='five' fk=2
-drop table t1, t2, t3;
-create table t1 (id int primary key, data varchar(10));
-create table t2 (seq int);
-insert into t2 values (10);
-create function f1 () returns int return (select max(seq) from t2);
-create trigger t1_bi before insert on t1 for each row
-begin
-if new.id > f1() then
-set new.id:= f1();
-end if;
-end|
-insert into t1 values (1, "first");
-insert into t1 values (f1(), "max");
-select * from t1;
-id data
-1 first
-10 max
-drop table t1, t2;
-drop function f1;
-create table t1 (id int primary key, fk_t2 int);
-create table t2 (id int primary key, fk_t3 int);
-create table t3 (id int primary key);
-insert into t1 values (1,1), (2,1), (3,2);
-insert into t2 values (1,1), (2,2);
-insert into t3 values (1), (2);
-create trigger t3_ad after delete on t3 for each row
-delete from t2 where fk_t3=old.id;
-create trigger t2_ad after delete on t2 for each row
-delete from t1 where fk_t2=old.id;
-delete from t3 where id = 1;
-select * from t1 left join (t2 left join t3 on t2.fk_t3 = t3.id) on t1.fk_t2 = t2.id;
-id fk_t2 id fk_t3 id
-3 2 2 2 2
-drop table t1, t2, t3;
-create table t1 (id int primary key, copy int);
-create table t2 (id int primary key, data int);
-insert into t2 values (1,1), (2,2);
-create trigger t1_bi before insert on t1 for each row
-set new.copy= (select data from t2 where id = new.id);
-create trigger t1_bu before update on t1 for each row
-set new.copy= (select data from t2 where id = new.id);
-insert into t1 values (1,3), (2,4), (3,3);
-update t1 set copy= 1 where id = 2;
-select * from t1;
-id copy
-1 1
-2 2
-3 NULL
-drop table t1, t2;
-create table t1 (i int);
-create table t3 (i int);
-create trigger trg before insert on t1 for each row set @a:= old.i;
-ERROR HY000: There is no OLD row in on INSERT trigger
-create trigger trg before delete on t1 for each row set @a:= new.i;
-ERROR HY000: There is no NEW row in on DELETE trigger
-create trigger trg before update on t1 for each row set old.i:=1;
-ERROR HY000: Updating of OLD row is not allowed in trigger
-create trigger trg before delete on t1 for each row set new.i:=1;
-ERROR HY000: There is no NEW row in on DELETE trigger
-create trigger trg after update on t1 for each row set new.i:=1;
-ERROR HY000: Updating of NEW row is not allowed in after trigger
-create trigger trg before update on t1 for each row set new.j:=1;
-ERROR 42S22: Unknown column 'j' in 'NEW'
-create trigger trg before update on t1 for each row set @a:=old.j;
-ERROR 42S22: Unknown column 'j' in 'OLD'
-create trigger trg before insert on t2 for each row set @a:=1;
-ERROR 42S02: Table 'test.t2' doesn't exist
-create trigger trg before insert on t1 for each row set @a:=1;
-create trigger trg after insert on t1 for each row set @a:=1;
-ERROR HY000: Trigger 'test.trg' already exists
-create trigger trg2 before insert on t1 for each row set @a:=1;
-drop trigger trg2;
-create trigger trg before insert on t3 for each row set @a:=1;
-ERROR HY000: Trigger 'test.trg' already exists
-create trigger trg2 before insert on t3 for each row set @a:=1;
-drop trigger trg2;
-drop trigger trg;
-drop trigger trg;
-ERROR HY000: Trigger does not exist
-create view v1 as select * from t1;
-create trigger trg before insert on v1 for each row set @a:=1;
-ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
-drop view v1;
-drop table t1;
-drop table t3;
-create temporary table t1 (i int);
-create trigger trg before insert on t1 for each row set @a:=1;
-ERROR HY000: Trigger's 't1' is view or temporary table
-drop table t1;
-create table t1 (x1col char);
-create trigger tx1 before insert on t1 for each row set new.x1col = 'x';
-insert into t1 values ('y');
-drop trigger tx1;
-drop table t1;
-create table t1 (i int) engine=myisam;
-insert into t1 values (1), (2);
-create trigger trg1 before delete on t1 for each row set @del_before:= @del_before + old.i;
-create trigger trg2 after delete on t1 for each row set @del_after:= @del_after + old.i;
-set @del_before:=0, @del_after:= 0;
-delete from t1;
-select @del_before, @del_after;
-@del_before @del_after
-3 3
-drop trigger trg1;
-drop trigger trg2;
-drop table t1;
-create table t1 (a int);
-create trigger trg1 before insert on t1 for each row set new.a= 10;
-drop table t1;
-create table t1 (a int);
-insert into t1 values ();
-select * from t1;
-a
-NULL
-drop table t1;
-create database mysqltest;
-use mysqltest;
-create table t1 (i int);
-create trigger trg1 before insert on t1 for each row set @a:= 1;
-drop database mysqltest;
-use test;
-create database mysqltest;
-create table mysqltest.t1 (i int);
-create trigger trg1 before insert on mysqltest.t1 for each row set @a:= 1;
-ERROR HY000: Trigger in wrong schema
-use mysqltest;
-create trigger test.trg1 before insert on t1 for each row set @a:= 1;
-ERROR 42S02: Table 'test.t1' doesn't exist
-drop database mysqltest;
-use test;
-create table t1 (i int, j int default 10, k int not null, key (k));
-create table t2 (i int);
-insert into t1 (i, k) values (1, 1);
-insert into t2 values (1);
-create trigger trg1 before update on t1 for each row set @a:= @a + new.j - old.j;
-create trigger trg2 after update on t1 for each row set @b:= "Fired";
-set @a:= 0, @b:= "";
-update t1, t2 set j = j + 10 where t1.i = t2.i;
-select @a, @b;
-@a @b
-10 Fired
-insert into t1 values (2, 13, 2);
-insert into t2 values (2);
-set @a:= 0, @b:= "";
-update t1, t2 set j = j + 15 where t1.i = t2.i and t1.k >= 2;
-select @a, @b;
-@a @b
-15 Fired
-create trigger trg3 before delete on t1 for each row set @c:= @c + old.j;
-create trigger trg4 before delete on t2 for each row set @d:= @d + old.i;
-create trigger trg5 after delete on t1 for each row set @e:= "After delete t1 fired";
-create trigger trg6 after delete on t2 for each row set @f:= "After delete t2 fired";
-set @c:= 0, @d:= 0, @e:= "", @f:= "";
-delete t1, t2 from t1, t2 where t1.i = t2.i;
-select @c, @d, @e, @f;
-@c @d @e @f
-48 3 After delete t1 fired After delete t2 fired
-drop table t1, t2;
-create table t1 (i int, j int default 10)|
-create table t2 (i int)|
-insert into t2 values (1), (2)|
-create trigger trg1 before insert on t1 for each row
-begin
-if new.i = 1 then
-set new.j := 1;
-end if;
-end|
-create trigger trg2 after insert on t1 for each row set @a:= 1|
-set @a:= 0|
-insert into t1 (i) select * from t2|
-select * from t1|
-i j
-1 1
-2 10
-select @a|
-@a
-1
-drop table t1, t2|
-create table t1 (i int, j int, k int);
-create trigger trg1 before insert on t1 for each row set new.k = new.i;
-create trigger trg2 after insert on t1 for each row set @b:= "Fired";
-set @b:="";
-load data infile '../../std_data/rpl_loaddata.dat' into table t1 (@a, i);
-select *, @b from t1;
-i j k @b
-10 NULL 10 Fired
-15 NULL 15 Fired
-set @b:="";
-load data infile '../../std_data/loaddata5.dat' into table t1 fields terminated by '' enclosed by '' (i, j);
-Warnings:
-Note 1265 Data truncated for column 'i' at row 1
-Note 1265 Data truncated for column 'j' at row 1
-Note 1265 Data truncated for column 'i' at row 2
-Note 1265 Data truncated for column 'j' at row 2
-Note 1265 Data truncated for column 'i' at row 3
-Note 1265 Data truncated for column 'j' at row 3
-select *, @b from t1;
-i j k @b
-10 NULL 10 Fired
-15 NULL 15 Fired
-1 2 1 Fired
-3 4 3 Fired
-5 6 5 Fired
-drop table t1;
-create table t1 (i int, at int, k int, key(k)) engine=myisam;
-create table t2 (i int);
-insert into t1 values (1, 1, 1);
-insert into t2 values (1), (2), (3);
-create trigger ai after insert on t1 for each row set @a:= new.at;
-create trigger au after update on t1 for each row set @a:= new.at;
-create trigger ad after delete on t1 for each row set @a:= old.at;
-alter table t1 drop column at;
-select * from t1;
-i k
-1 1
-insert into t1 values (2, 1);
-ERROR 42S22: Unknown column 'at' in 'NEW'
-select * from t1;
-i k
-1 1
-2 1
-update t1 set k = 2 where i = 2;
-ERROR 42S22: Unknown column 'at' in 'NEW'
-select * from t1;
-i k
-1 1
-2 2
-delete from t1 where i = 2;
-ERROR 42S22: Unknown column 'at' in 'OLD'
-select * from t1;
-i k
-1 1
-load data infile '../../std_data/loaddata5.dat' into table t1 fields terminated by '' enclosed by '' (i, k);
-ERROR 42S22: Unknown column 'at' in 'NEW'
-select * from t1;
-i k
-1 1
-1 2
-insert into t1 select 3, 3;
-ERROR 42S22: Unknown column 'at' in 'NEW'
-select * from t1;
-i k
-1 1
-1 2
-3 3
-update t1, t2 set k = k + 10 where t1.i = t2.i;
-ERROR 42S22: Unknown column 'at' in 'NEW'
-select * from t1;
-i k
-1 11
-1 2
-3 3
-update t1, t2 set k = k + 10 where t1.i = t2.i and k < 3;
-ERROR 42S22: Unknown column 'at' in 'NEW'
-select * from t1;
-i k
-1 11
-1 12
-3 3
-delete t1, t2 from t1 straight_join t2 where t1.i = t2.i;
-ERROR 42S22: Unknown column 'at' in 'OLD'
-select * from t1;
-i k
-1 12
-3 3
-delete t2, t1 from t2 straight_join t1 where t1.i = t2.i;
-ERROR 42S22: Unknown column 'at' in 'OLD'
-select * from t1;
-i k
-3 3
-alter table t1 add primary key (i);
-insert into t1 values (3, 4) on duplicate key update k= k + 10;
-ERROR 42S22: Unknown column 'at' in 'NEW'
-select * from t1;
-i k
-3 13
-replace into t1 values (3, 3);
-ERROR 42S22: Unknown column 'at' in 'OLD'
-select * from t1;
-i k
-drop table t1, t2;
-create table t1 (i int, bt int, k int, key(k)) engine=myisam;
-create table t2 (i int);
-insert into t1 values (1, 1, 1), (2, 2, 2);
-insert into t2 values (1), (2), (3);
-create trigger bi before insert on t1 for each row set @a:= new.bt;
-create trigger bu before update on t1 for each row set @a:= new.bt;
-create trigger bd before delete on t1 for each row set @a:= old.bt;
-alter table t1 drop column bt;
-insert into t1 values (3, 3);
-ERROR 42S22: Unknown column 'bt' in 'NEW'
-select * from t1;
-i k
-1 1
-2 2
-update t1 set i = 2;
-ERROR 42S22: Unknown column 'bt' in 'NEW'
-select * from t1;
-i k
-1 1
-2 2
-delete from t1;
-ERROR 42S22: Unknown column 'bt' in 'OLD'
-select * from t1;
-i k
-1 1
-2 2
-load data infile '../../std_data/loaddata5.dat' into table t1 fields terminated by '' enclosed by '' (i, k);
-ERROR 42S22: Unknown column 'bt' in 'NEW'
-select * from t1;
-i k
-1 1
-2 2
-insert into t1 select 3, 3;
-ERROR 42S22: Unknown column 'bt' in 'NEW'
-select * from t1;
-i k
-1 1
-2 2
-update t1, t2 set k = k + 10 where t1.i = t2.i;
-ERROR 42S22: Unknown column 'bt' in 'NEW'
-select * from t1;
-i k
-1 1
-2 2
-update t1, t2 set k = k + 10 where t1.i = t2.i and k < 2;
-ERROR 42S22: Unknown column 'bt' in 'NEW'
-select * from t1;
-i k
-1 1
-2 2
-delete t1, t2 from t1 straight_join t2 where t1.i = t2.i;
-ERROR 42S22: Unknown column 'bt' in 'OLD'
-select * from t1;
-i k
-1 1
-2 2
-delete t2, t1 from t2 straight_join t1 where t1.i = t2.i;
-ERROR 42S22: Unknown column 'bt' in 'OLD'
-select * from t1;
-i k
-1 1
-2 2
-alter table t1 add primary key (i);
-drop trigger bi;
-insert into t1 values (2, 4) on duplicate key update k= k + 10;
-ERROR 42S22: Unknown column 'bt' in 'NEW'
-select * from t1;
-i k
-1 1
-2 2
-replace into t1 values (2, 4);
-ERROR 42S22: Unknown column 'bt' in 'OLD'
-select * from t1;
-i k
-1 1
-2 2
-drop table t1, t2;
-drop function if exists bug5893;
-create table t1 (col1 int, col2 int);
-insert into t1 values (1, 2);
-create function bug5893 () returns int return 5;
-create trigger t1_bu before update on t1 for each row set new.col1= bug5893();
-drop function bug5893;
-update t1 set col2 = 4;
-ERROR 42000: FUNCTION test.bug5893 does not exist
-drop trigger t1_bu;
-drop table t1;
-set sql_mode='ansi';
-create table t1 ("t1 column" int);
-create trigger t1_bi before insert on t1 for each row set new."t1 column" = 5;
-set sql_mode="";
-insert into t1 values (0);
-create trigger t1_af after insert on t1 for each row set @a=10;
-insert into t1 values (0);
-select * from t1;
-t1 column
-5
-5
-select @a;
-@a
-10
-show triggers;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-t1_bi INSERT t1 set new."t1 column" = 5 BEFORE # REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-t1_af INSERT t1 set @a=10 AFTER # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-drop table t1;
-set sql_mode="traditional";
-create table t1 (a date);
-insert into t1 values ('2004-01-00');
-ERROR 22007: Incorrect date value: '2004-01-00' for column 'a' at row 1
-set sql_mode="";
-create trigger t1_bi before insert on t1 for each row set new.a = '2004-01-00';
-set sql_mode="traditional";
-insert into t1 values ('2004-01-01');
-select * from t1;
-a
-2004-01-00
-set sql_mode=default;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show triggers;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-t1_bi INSERT t1 set new.a = '2004-01-00' BEFORE # root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-drop table t1;
-create table t1 (id int);
-create trigger t1_ai after insert on t1 for each row reset query cache;
-ERROR 0A000: RESET is not allowed in stored function or trigger
-create trigger t1_ai after insert on t1 for each row reset master;
-ERROR 0A000: RESET is not allowed in stored function or trigger
-create trigger t1_ai after insert on t1 for each row reset slave;
-ERROR 0A000: RESET is not allowed in stored function or trigger
-create trigger t1_ai after insert on t1 for each row flush hosts;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create trigger t1_ai after insert on t1 for each row flush tables with read lock;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create trigger t1_ai after insert on t1 for each row flush logs;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create trigger t1_ai after insert on t1 for each row flush status;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create trigger t1_ai after insert on t1 for each row flush slave;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create trigger t1_ai after insert on t1 for each row flush master;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create trigger t1_ai after insert on t1 for each row flush des_key_file;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create trigger t1_ai after insert on t1 for each row flush user_resources;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create trigger t1_ai after insert on t1 for each row flush tables;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-create trigger t1_ai after insert on t1 for each row flush privileges;
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop procedure if exists p1;
-create trigger t1_ai after insert on t1 for each row call p1();
-create procedure p1() flush tables;
-insert into t1 values (0);
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop procedure p1;
-create procedure p1() reset query cache;
-insert into t1 values (0);
-ERROR 0A000: RESET is not allowed in stored function or trigger
-drop procedure p1;
-create procedure p1() reset master;
-insert into t1 values (0);
-ERROR 0A000: RESET is not allowed in stored function or trigger
-drop procedure p1;
-create procedure p1() reset slave;
-insert into t1 values (0);
-ERROR 0A000: RESET is not allowed in stored function or trigger
-drop procedure p1;
-create procedure p1() flush hosts;
-insert into t1 values (0);
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop procedure p1;
-create procedure p1() flush privileges;
-insert into t1 values (0);
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop procedure p1;
-create procedure p1() flush tables with read lock;
-insert into t1 values (0);
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop procedure p1;
-create procedure p1() flush tables;
-insert into t1 values (0);
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop procedure p1;
-create procedure p1() flush logs;
-insert into t1 values (0);
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop procedure p1;
-create procedure p1() flush status;
-insert into t1 values (0);
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop procedure p1;
-create procedure p1() flush slave;
-insert into t1 values (0);
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop procedure p1;
-create procedure p1() flush master;
-insert into t1 values (0);
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop procedure p1;
-create procedure p1() flush des_key_file;
-insert into t1 values (0);
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop procedure p1;
-create procedure p1() flush user_resources;
-insert into t1 values (0);
-ERROR 0A000: FLUSH is not allowed in stored function or trigger
-drop procedure p1;
-drop table t1;
-create table t1 (id int, data int, username varchar(16));
-insert into t1 (id, data) values (1, 0);
-create trigger t1_whoupdated before update on t1 for each row
-begin
-declare user varchar(32);
-declare i int;
-select user() into user;
-set NEW.username = user;
-select count(*) from ((select 1) union (select 2)) as d1 into i;
-end|
-update t1 set data = 1;
-connection addconroot1;
-update t1 set data = 2;
-connection default;
-drop table t1;
-create table t1 (c1 int, c2 datetime);
-create trigger tr1 before insert on t1 for each row
-begin
-set new.c2= '2004-04-01';
-select 'hello';
-end|
-ERROR 0A000: Not allowed to return a result set from a trigger
-insert into t1 (c1) values (1),(2),(3);
-select * from t1;
-c1 c2
-1 NULL
-2 NULL
-3 NULL
-drop procedure if exists bug11587;
-create procedure bug11587(x char(16))
-begin
-select "hello";
-select "hello again";
-end|
-create trigger tr1 before insert on t1 for each row
-begin
-call bug11587();
-set new.c2= '2004-04-02';
-end|
-insert into t1 (c1) values (4),(5),(6);
-ERROR 0A000: Not allowed to return a result set from a trigger
-select * from t1;
-c1 c2
-1 NULL
-2 NULL
-3 NULL
-drop procedure bug11587;
-drop table t1;
-create table t1 (f1 integer);
-create table t2 (f2 integer);
-create trigger t1_ai after insert on t1
-for each row insert into t2 values (new.f1+1);
-create trigger t2_ai after insert on t2
-for each row insert into t1 values (new.f2+1);
-set @SAVE_SP_RECURSION_LEVELS=@@max_sp_recursion_depth;
-set @@max_sp_recursion_depth=100;
-insert into t1 values (1);
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-set @@max_sp_recursion_depth=@SAVE_SP_RECURSION_LEVELS;
-select * from t1;
-f1
-1
-select * from t2;
-f2
-2
-drop trigger t1_ai;
-drop trigger t2_ai;
-create trigger t1_bu before update on t1
-for each row insert into t1 values (2);
-update t1 set f1= 10;
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-select * from t1;
-f1
-1
-drop trigger t1_bu;
-create trigger t1_bu before update on t1
-for each row delete from t1 where f1=new.f1;
-update t1 set f1= 10;
-ERROR HY000: Can't update table 't1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-select * from t1;
-f1
-1
-drop trigger t1_bu;
-create trigger t1_bi before insert on t1
-for each row set new.f1=(select sum(f1) from t1);
-insert into t1 values (3);
-select * from t1;
-f1
-1
-1
-drop trigger t1_bi;
-drop tables t1, t2;
-create table t1 (id int);
-create table t2 (id int);
-create trigger t1_bi before insert on t1 for each row insert into t2 values (new.id);
-prepare stmt1 from "insert into t1 values (10)";
-create procedure p1() insert into t1 values (10);
-call p1();
-drop trigger t1_bi;
-execute stmt1;
-call p1();
-deallocate prepare stmt1;
-drop procedure p1;
-create table t3 (id int);
-create trigger t1_bi after insert on t1 for each row insert into t2 values (new.id);
-prepare stmt1 from "insert into t1 values (10)";
-create procedure p1() insert into t1 values (10);
-call p1();
-drop trigger t1_bi;
-create trigger t1_bi after insert on t1 for each row insert into t3 values (new.id);
-execute stmt1;
-call p1();
-deallocate prepare stmt1;
-drop procedure p1;
-drop table t1, t2, t3;
-create table t1 (a int);
-CREATE PROCEDURE `p1`()
-begin
-insert into t1 values (1);
-end//
-create trigger trg before insert on t1 for each row
-begin
-declare done int default 0;
-set done= not done;
-end//
-CALL p1();
-drop procedure p1;
-drop table t1;
-connection addconwithoutdb;
-create trigger t1_bi before insert on test.t1 for each row set @a:=0;
-ERROR 3D000: No database selected
-create trigger test.t1_bi before insert on t1 for each row set @a:=0;
-ERROR 42S02: Table 'test.t1' doesn't exist
-drop trigger t1_bi;
-ERROR 3D000: No database selected
-connection default;
-create table t1 (id int);
-create trigger t1_bi before insert on t1 for each row set @a:=new.id;
-create trigger t1_ai after insert on test.t1 for each row set @b:=new.id;
-insert into t1 values (101);
-select @a, @b;
-@a @b
-101 101
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-test t1_bi test t1 set @a:=new.id
-test t1_ai test t1 set @b:=new.id
-rename table t1 to t2;
-insert into t2 values (102);
-select @a, @b;
-@a @b
-102 102
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-test t1_bi test t2 set @a:=new.id
-test t1_ai test t2 set @b:=new.id
-alter table t2 rename to t3;
-insert into t3 values (103);
-select @a, @b;
-@a @b
-103 103
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-test t1_bi test t3 set @a:=new.id
-test t1_ai test t3 set @b:=new.id
-alter table t3 rename to t4, add column val int default 0;
-insert into t4 values (104, 1);
-select @a, @b;
-@a @b
-104 104
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-test t1_bi test t4 set @a:=new.id
-test t1_ai test t4 set @b:=new.id
-drop trigger t1_bi;
-drop trigger t1_ai;
-drop table t4;
-create database mysqltest;
-use mysqltest;
-create table t1 (id int);
-create trigger t1_bi before insert on t1 for each row set @a:=new.id;
-insert into t1 values (101);
-select @a;
-@a
-101
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test' or event_object_schema = 'mysqltest';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-mysqltest t1_bi mysqltest t1 set @a:=new.id
-rename table t1 to test.t2;
-ERROR HY000: Trigger in wrong schema
-insert into t1 values (102);
-select @a;
-@a
-102
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test' or event_object_schema = 'mysqltest';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-mysqltest t1_bi mysqltest t1 set @a:=new.id
-drop trigger test.t1_bi;
-ERROR HY000: Trigger does not exist
-alter table t1 rename to test.t1;
-ERROR HY000: Trigger in wrong schema
-insert into t1 values (103);
-select @a;
-@a
-103
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test' or event_object_schema = 'mysqltest';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-mysqltest t1_bi mysqltest t1 set @a:=new.id
-drop trigger test.t1_bi;
-ERROR HY000: Trigger does not exist
-alter table t1 rename to test.t1, add column val int default 0;
-ERROR HY000: Trigger in wrong schema
-insert into t1 values (104);
-select @a;
-@a
-104
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test' or event_object_schema = 'mysqltest';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-mysqltest t1_bi mysqltest t1 set @a:=new.id
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `id` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop trigger test.t1_bi;
-ERROR HY000: Trigger does not exist
-drop trigger t1_bi;
-drop table t1;
-drop database mysqltest;
-use test;
-create table t1 (id int);
-create trigger t1_bi before insert on t1 for each row set @a:=new.id;
-create trigger t1_ai after insert on t1 for each row set @b:=new.id;
-insert into t1 values (101);
-select @a, @b;
-@a @b
-101 101
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-test t1_bi test t1 set @a:=new.id
-test t1_ai test t1 set @b:=new.id
-rename table t1 to t2;
-ERROR HY000: Can't create/write to file './test/t1_ai.TRN~' (Errcode: 13 "Permission denied")
-insert into t1 values (102);
-select @a, @b;
-@a @b
-102 102
-select trigger_schema, trigger_name, event_object_schema,
-event_object_table, action_statement from information_schema.triggers
-where event_object_schema = 'test';
-trigger_schema trigger_name event_object_schema event_object_table action_statement
-test t1_bi test t1 set @a:=new.id
-test t1_ai test t1 set @b:=new.id
-drop trigger t1_bi;
-drop trigger t1_ai;
-drop table t1;
-create table t1 (i int);
-create trigger t1_bi before insert on t1 for each row return 0;
-ERROR 42000: RETURN is only allowed in a FUNCTION
-insert into t1 values (1);
-drop table t1;
-create table t1 (a varchar(64), b int);
-create table t2 like t1;
-create trigger t1_ai after insert on t1 for each row
-set @a:= (select max(a) from t1);
-insert into t1 (a) values
-("Twas"),("brillig"),("and"),("the"),("slithy"),("toves"),
-("Did"),("gyre"),("and"),("gimble"),("in"),("the"),("wabe");
-create trigger t2_ai after insert on t2 for each row
-set @a:= (select max(a) from t2);
-insert into t2 select * from t1;
-load data infile '../../std_data/words.dat' into table t1 (a);
-drop trigger t1_ai;
-drop trigger t2_ai;
-create function f1() returns int return (select max(b) from t1);
-insert into t1 values
-("All",f1()),("mimsy",f1()),("were",f1()),("the",f1()),("borogoves",f1()),
-("And",f1()),("the",f1()),("mome", f1()),("raths",f1()),("outgrabe",f1());
-create function f2() returns int return (select max(b) from t2);
-insert into t2 select a, f2() from t1;
-load data infile '../../std_data/words.dat' into table t1 (a) set b:= f1();
-drop function f1;
-drop function f2;
-drop table t1, t2;
-create table t1(i int not null, j int not null, n numeric(15,2), primary key(i,j));
-create table t2(i int not null, n numeric(15,2), primary key(i));
-create trigger t1_ai after insert on t1 for each row
-begin
-declare sn numeric(15,2);
-select sum(n) into sn from t1 where i=new.i;
-replace into t2 values(new.i, sn);
-end|
-insert into t1 values
-(1,1,10.00),(1,2,10.00),(1,3,10.00),(1,4,10.00),(1,5,10.00),
-(1,6,10.00),(1,7,10.00),(1,8,10.00),(1,9,10.00),(1,10,10.00),
-(1,11,10.00),(1,12,10.00),(1,13,10.00),(1,14,10.00),(1,15,10.00);
-select * from t1;
-i j n
-1 1 10.00
-1 2 10.00
-1 3 10.00
-1 4 10.00
-1 5 10.00
-1 6 10.00
-1 7 10.00
-1 8 10.00
-1 9 10.00
-1 10 10.00
-1 11 10.00
-1 12 10.00
-1 13 10.00
-1 14 10.00
-1 15 10.00
-select * from t2;
-i n
-1 150.00
-drop tables t1, t2;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (
-conn_id INT,
-trigger_conn_id INT
-);
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-SET NEW.trigger_conn_id = CONNECTION_ID();
-INSERT INTO t1 (conn_id, trigger_conn_id) VALUES (CONNECTION_ID(), -1);
-connect con1,localhost,root,,;
-INSERT INTO t1 (conn_id, trigger_conn_id) VALUES (CONNECTION_ID(), -1);
-connection default;
-disconnect con1;
-SELECT * FROM t1 WHERE conn_id != trigger_conn_id;
-conn_id trigger_conn_id
-DROP TRIGGER t1_bi;
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (i1 INT);
-SET @save_sql_mode=@@sql_mode;
-SET SQL_MODE='';
-CREATE TRIGGER t1_ai AFTER INSERT ON t1 FOR EACH ROW
-SET @x = 5/0;
-SET SQL_MODE='traditional';
-CREATE TRIGGER t1_au AFTER UPDATE ON t1 FOR EACH ROW
-SET @x = 5/0;
-SET @x=1;
-INSERT INTO t1 VALUES (@x);
-SELECT @x;
-@x
-NULL
-SET @x=2;
-UPDATE t1 SET i1 = @x;
-SELECT @x;
-@x
-NULL
-SET SQL_MODE='';
-SET @x=3;
-INSERT INTO t1 VALUES (@x);
-SELECT @x;
-@x
-NULL
-SET @x=4;
-UPDATE t1 SET i1 = @x;
-SELECT @x;
-@x
-NULL
-SET @@sql_mode=@save_sql_mode;
-DROP TRIGGER t1_ai;
-DROP TRIGGER t1_au;
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-DROP PROCEDURE IF EXISTS p1;
-DROP PROCEDURE IF EXISTS p2;
-CREATE TABLE t1 (i1 INT);
-INSERT INTO t1 VALUES (3);
-CREATE PROCEDURE p1(OUT i1 INT) DETERMINISTIC NO SQL SET i1 = 5;
-CREATE PROCEDURE p2(INOUT i1 INT) DETERMINISTIC NO SQL SET i1 = i1 * 7;
-CREATE TRIGGER t1_bu BEFORE UPDATE ON t1 FOR EACH ROW
-BEGIN
-CALL p1(NEW.i1);
-CALL p2(NEW.i1);
-END//
-UPDATE t1 SET i1 = 11 WHERE i1 = 3;
-DROP TRIGGER t1_bu;
-DROP PROCEDURE p2;
-DROP PROCEDURE p1;
-INSERT INTO t1 VALUES (13);
-CREATE PROCEDURE p1(OUT i1 INT) DETERMINISTIC NO SQL SET @a = 17;
-CREATE TRIGGER t1_bu BEFORE UPDATE ON t1 FOR EACH ROW
-CALL p1(OLD.i1);
-UPDATE t1 SET i1 = 19 WHERE i1 = 13;
-ERROR 42000: OUT or INOUT argument 1 for routine test.p1 is not a variable or NEW pseudo-variable in BEFORE trigger
-DROP TRIGGER t1_bu;
-DROP PROCEDURE p1;
-INSERT INTO t1 VALUES (23);
-CREATE PROCEDURE p1(INOUT i1 INT) DETERMINISTIC NO SQL SET @a = i1 * 29;
-CREATE TRIGGER t1_bu BEFORE UPDATE ON t1 FOR EACH ROW
-CALL p1(OLD.i1);
-UPDATE t1 SET i1 = 31 WHERE i1 = 23;
-ERROR 42000: OUT or INOUT argument 1 for routine test.p1 is not a variable or NEW pseudo-variable in BEFORE trigger
-DROP TRIGGER t1_bu;
-DROP PROCEDURE p1;
-INSERT INTO t1 VALUES (37);
-CREATE PROCEDURE p1(OUT i1 INT) DETERMINISTIC NO SQL SET @a = 41;
-CREATE TRIGGER t1_au AFTER UPDATE ON t1 FOR EACH ROW
-CALL p1(NEW.i1);
-UPDATE t1 SET i1 = 43 WHERE i1 = 37;
-ERROR 42000: OUT or INOUT argument 1 for routine test.p1 is not a variable or NEW pseudo-variable in BEFORE trigger
-DROP TRIGGER t1_au;
-DROP PROCEDURE p1;
-INSERT INTO t1 VALUES (47);
-CREATE PROCEDURE p1(INOUT i1 INT) DETERMINISTIC NO SQL SET @a = i1 * 49;
-CREATE TRIGGER t1_au AFTER UPDATE ON t1 FOR EACH ROW
-CALL p1(NEW.i1);
-UPDATE t1 SET i1 = 51 WHERE i1 = 47;
-ERROR 42000: OUT or INOUT argument 1 for routine test.p1 is not a variable or NEW pseudo-variable in BEFORE trigger
-DROP TRIGGER t1_au;
-DROP PROCEDURE p1;
-SELECT * FROM t1;
-i1
-35
-13
-23
-43
-51
-DROP TABLE t1;
-create trigger wont_work after update on mysql.user for each row
-begin
-set @a:= 1;
-end|
-ERROR HY000: Triggers can not be created on system tables
-use mysql|
-create trigger wont_work after update on event for each row
-begin
-set @a:= 1;
-end|
-ERROR HY000: Triggers can not be created on system tables
-use test|
-DROP TABLE IF EXISTS t1;
-DROP TABLE IF EXISTS t2;
-CREATE TABLE t1(c INT);
-CREATE TABLE t2(c INT);
-CREATE DEFINER=longer_than_80_456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789@localhost
-TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a = 1;
-ERROR HY000: String 'longer_than_80_4567890123456789012345678901234567890123456789012345678' is too long for user name (should be no longer than 80)
-CREATE DEFINER=some_user_name@1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY
-TRIGGER t2_bi BEFORE INSERT ON t2 FOR EACH ROW SET @a = 2;
-ERROR HY000: String '1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY' is too long for host name (should be no longer than 60)
-DROP TABLE t1;
-DROP TABLE t2;
-drop table if exists t1;
-drop table if exists t2;
-drop table if exists t3;
-drop table if exists t4;
-SET @save_sql_mode=@@sql_mode;
-SET sql_mode='TRADITIONAL'|
-create table t1 (id int(10) not null primary key, v int(10) )|
-create table t2 (id int(10) not null primary key, v int(10) )|
-create table t3 (id int(10) not null primary key, v int(10) )|
-create table t4 (c int)|
-create trigger t4_bi before insert on t4 for each row set @t4_bi_called:=1|
-create trigger t4_bu before update on t4 for each row set @t4_bu_called:=1|
-insert into t1 values(10, 10)|
-set @a:=1/0|
-Warnings:
-Warning 1365 Division by 0
-select 1/0 from t1|
-1/0
-NULL
-Warnings:
-Warning 1365 Division by 0
-create trigger t1_bi before insert on t1 for each row set @a:=1/0|
-insert into t1 values(20, 20)|
-drop trigger t1_bi|
-create trigger t1_bi before insert on t1 for each row
-begin
-insert into t2 values (new.id, new.v);
-update t2 set v=v+1 where id= new.id;
-replace t3 values (new.id, 0);
-update t2, t3 set t2.v=new.v, t3.v=new.v where t2.id=t3.id;
-create temporary table t5 select * from t1;
-delete from t5;
-insert into t5 select * from t1;
-insert into t4 values (0);
-set @check= (select count(*) from t5);
-update t4 set c= @check;
-drop temporary table t5;
-set @a:=1/0;
-end|
-set @check=0, @t4_bi_called=0, @t4_bu_called=0|
-insert into t1 values(30, 30)|
-select @check, @t4_bi_called, @t4_bu_called|
-@check @t4_bi_called @t4_bu_called
-2 1 1
-SET @@sql_mode=@save_sql_mode;
-drop table t1;
-drop table t2;
-drop table t3;
-drop table t4;
-drop table if exists t1;
-create table t1 (i int, j int key);
-insert into t1 values (1,1), (2,2), (3,3);
-create trigger t1_bu before update on t1 for each row
-set new.j = new.j + 10;
-update t1 set i= i+ 10 where j > 2;
-select * from t1;
-i j
-1 1
-2 2
-13 13
-drop table t1;
-CREATE TABLE t1 (a INT PRIMARY KEY);
-CREATE TABLE t2 (a INT PRIMARY KEY);
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8);
-CREATE TRIGGER trg_t1 BEFORE DELETE on t1 FOR EACH ROW
-INSERT INTO t2 VALUES (OLD.a);
-FLUSH STATUS;
-TRUNCATE t1;
-SHOW STATUS LIKE 'handler_delete';
-Variable_name Value
-Handler_delete 0
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-0
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8);
-DELETE FROM t2;
-FLUSH STATUS;
-DELETE FROM t1;
-SHOW STATUS LIKE 'handler_delete';
-Variable_name Value
-Handler_delete 8
-SELECT COUNT(*) FROM t2;
-COUNT(*)
-8
-DROP TRIGGER trg_t1;
-DROP TABLE t1,t2;
-drop table if exists t1;
-drop function if exists f1;
-create table t1 (i int);
-create function f1() returns int return 10;
-create trigger t1_bi before insert on t1 for each row set @a:= f1() + 10;
-insert into t1 values ();
-select @a;
-@a
-20
-connection addconroot1;
-insert into t1 values ();
-select @a;
-@a
-20
-connection default;
-drop table t1;
-drop function f1;
-drop table if exists t1;
-create table t1(a int, b varchar(50));
-drop trigger not_a_trigger;
-ERROR HY000: Trigger does not exist
-drop trigger if exists not_a_trigger;
-Warnings:
-Note 1360 Trigger does not exist
-create trigger t1_bi before insert on t1
-for each row set NEW.b := "In trigger t1_bi";
-insert into t1 values (1, "a");
-drop trigger if exists t1_bi;
-insert into t1 values (2, "b");
-drop trigger if exists t1_bi;
-Warnings:
-Note 1360 Trigger does not exist
-insert into t1 values (3, "c");
-select * from t1;
-a b
-1 In trigger t1_bi
-2 b
-3 c
-drop table t1;
-CREATE TABLE t1 (
-id int NOT NULL DEFAULT '0',
-a varchar(10) NOT NULL,
-b varchar(10),
-c varchar(10),
-d timestamp NOT NULL,
-PRIMARY KEY (id, a)
-);
-CREATE TABLE t2 (
-fubar_id int unsigned NOT NULL DEFAULT '0',
-last_change_time datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
-PRIMARY KEY (fubar_id)
-);
-CREATE TRIGGER fubar_change
-AFTER UPDATE ON t1
-FOR EACH ROW
-BEGIN
-INSERT INTO t2 (fubar_id, last_change_time)
-SELECT DISTINCT NEW.id AS fubar_id, NOW() AS last_change_time
-FROM t1 WHERE (id = NEW.id) AND (OLD.c != NEW.c)
-ON DUPLICATE KEY UPDATE
-last_change_time =
-IF((fubar_id = NEW.id)AND(OLD.c != NEW.c),NOW(),last_change_time);
-END
-|
-INSERT INTO t1 (id,a, b,c,d) VALUES
-(1,'a','b','c',now()),(2,'a','b','c',now());
-UPDATE t1 SET c='Bang!' WHERE id=1;
-SELECT fubar_id FROM t2;
-fubar_id
-1
-DROP TABLE t1,t2;
-DROP TABLE IF EXISTS bug21825_A;
-DROP TABLE IF EXISTS bug21825_B;
-CREATE TABLE bug21825_A (id int(10));
-CREATE TABLE bug21825_B (id int(10));
-CREATE TRIGGER trgA AFTER INSERT ON bug21825_A
-FOR EACH ROW
-BEGIN
-INSERT INTO bug21825_B (id) values (1);
-END//
-INSERT INTO bug21825_A (id) VALUES (10);
-INSERT INTO bug21825_A (id) VALUES (20);
-DROP TABLE bug21825_B;
-DELETE FROM bug21825_A WHERE id = 20;
-DROP TABLE bug21825_A;
-DROP TABLE IF EXISTS bug22580_t1;
-DROP PROCEDURE IF EXISTS bug22580_proc_1;
-DROP PROCEDURE IF EXISTS bug22580_proc_2;
-CREATE TABLE bug22580_t1 (a INT, b INT);
-CREATE PROCEDURE bug22580_proc_2()
-BEGIN
-DROP TABLE IF EXISTS bug22580_tmp;
-CREATE TEMPORARY TABLE bug22580_tmp (a INT);
-DROP TABLE bug22580_tmp;
-END||
-CREATE PROCEDURE bug22580_proc_1()
-BEGIN
-CALL bug22580_proc_2();
-END||
-CREATE TRIGGER t1bu BEFORE UPDATE ON bug22580_t1
-FOR EACH ROW
-BEGIN
-CALL bug22580_proc_1();
-END||
-INSERT INTO bug22580_t1 VALUES (1,1);
-DROP TABLE bug22580_t1;
-DROP PROCEDURE bug22580_proc_1;
-DROP PROCEDURE bug22580_proc_2;
-DROP TRIGGER IF EXISTS trg27006_a_update;
-DROP TRIGGER IF EXISTS trg27006_a_insert;
-CREATE TABLE t1 (
-`id` int(10) unsigned NOT NULL auto_increment,
-`val` varchar(10) NOT NULL,
-PRIMARY KEY (`id`)
-);
-CREATE TABLE t2 like t1;
-CREATE TRIGGER trg27006_a_insert AFTER INSERT ON t1 FOR EACH ROW
-BEGIN
-insert into t2 values (NULL,new.val);
-END |
-CREATE TRIGGER trg27006_a_update AFTER UPDATE ON t1 FOR EACH ROW
-BEGIN
-insert into t2 values (NULL,new.val);
-END |
-INSERT INTO t1(val) VALUES ('test1'),('test2');
-SELECT * FROM t1;
-id val
-1 test1
-2 test2
-SELECT * FROM t2;
-id val
-1 test1
-2 test2
-INSERT INTO t1 VALUES (2,'test2') ON DUPLICATE KEY UPDATE val=VALUES(val);
-INSERT INTO t1 VALUES (2,'test3') ON DUPLICATE KEY UPDATE val=VALUES(val);
-INSERT INTO t1 VALUES (3,'test4') ON DUPLICATE KEY UPDATE val=VALUES(val);
-SELECT * FROM t1;
-id val
-1 test1
-2 test3
-3 test4
-SELECT * FROM t2;
-id val
-1 test1
-2 test2
-3 test3
-4 test4
-DROP TRIGGER trg27006_a_insert;
-DROP TRIGGER trg27006_a_update;
-drop table t1,t2;
-drop table if exists t1, t2, t3;
-create table t1 (i int);
-create trigger t1_bi before insert on t1 for each row set new.i = 7;
-create trigger t1_ai after insert on t1 for each row set @a := 7;
-create table t2 (j int);
-insert into t2 values (1), (2);
-set @a:="";
-insert into t1 select * from t2;
-select * from t1;
-i
-7
-7
-select @a;
-@a
-7
-drop trigger t1_bi;
-drop trigger t1_ai;
-create table t3 (isave int);
-create trigger t1_bi before insert on t1 for each row insert into t3 values (new.i);
-insert into t1 select * from t2;
-select * from t1;
-i
-7
-7
-1
-2
-select * from t3;
-isave
-1
-2
-drop table t1, t2, t3;
-disconnect addconroot1;
-disconnect addconroot2;
-disconnect addconwithoutdb;
-
-Bug#28502 Triggers that update another innodb table will block
-on X lock unnecessarily
-
-Ensure we do not open and lock tables for triggers we do not fire.
-
-drop table if exists t1, t2;
-drop trigger if exists trg_bug28502_au;
-create table t1 (id int, count int);
-create table t2 (id int);
-create trigger trg_bug28502_au before update on t2
-for each row
-begin
-if (new.id is not null) then
-update t1 set count= count + 1 where id = old.id;
-end if;
-end|
-insert into t1 (id, count) values (1, 0);
-lock table t1 write;
-connect connection_insert, localhost, root, , test, , ;
-connection connection_insert;
-insert into t2 set id=1;
-connection default;
-unlock tables;
-update t2 set id=1 where id=1;
-select * from t1;
-id count
-1 1
-select * from t2;
-id
-1
-drop table t1, t2;
-disconnect connection_insert;
-
-Additionally, provide test coverage for triggers and
-all MySQL data changing commands.
-
-drop table if exists t1, t2, t1_op_log;
-drop view if exists v1;
-drop trigger if exists trg_bug28502_bi;
-drop trigger if exists trg_bug28502_ai;
-drop trigger if exists trg_bug28502_bu;
-drop trigger if exists trg_bug28502_au;
-drop trigger if exists trg_bug28502_bd;
-drop trigger if exists trg_bug28502_ad;
-create table t1 (id int primary key auto_increment, operation varchar(255));
-create table t2 (id int primary key);
-create table t1_op_log(operation varchar(255));
-create view v1 as select * from t1;
-create trigger trg_bug28502_bi before insert on t1
-for each row
-insert into t1_op_log (operation)
-values (concat("Before INSERT, new=", new.operation));
-create trigger trg_bug28502_ai after insert on t1
-for each row
-insert into t1_op_log (operation)
-values (concat("After INSERT, new=", new.operation));
-create trigger trg_bug28502_bu before update on t1
-for each row
-insert into t1_op_log (operation)
-values (concat("Before UPDATE, new=", new.operation,
-", old=", old.operation));
-create trigger trg_bug28502_au after update on t1
-for each row
-insert into t1_op_log (operation)
-values (concat("After UPDATE, new=", new.operation,
-", old=", old.operation));
-create trigger trg_bug28502_bd before delete on t1
-for each row
-insert into t1_op_log (operation)
-values (concat("Before DELETE, old=", old.operation));
-create trigger trg_bug28502_ad after delete on t1
-for each row
-insert into t1_op_log (operation)
-values (concat("After DELETE, old=", old.operation));
-insert into t1 (operation) values ("INSERT");
-set @id=last_insert_id();
-select * from t1;
-id operation
-1 INSERT
-select * from t1_op_log;
-operation
-Before INSERT, new=INSERT
-After INSERT, new=INSERT
-truncate t1_op_log;
-update t1 set operation="UPDATE" where id=@id;
-select * from t1;
-id operation
-1 UPDATE
-select * from t1_op_log;
-operation
-Before UPDATE, new=UPDATE, old=INSERT
-After UPDATE, new=UPDATE, old=INSERT
-truncate t1_op_log;
-delete from t1 where id=@id;
-select * from t1;
-id operation
-select * from t1_op_log;
-operation
-Before DELETE, old=UPDATE
-After DELETE, old=UPDATE
-truncate t1;
-truncate t1_op_log;
-insert into t1 (id, operation) values
-(NULL, "INSERT ON DUPLICATE KEY UPDATE, inserting a new key")
-on duplicate key update id=NULL, operation="Should never happen";
-set @id=last_insert_id();
-select * from t1;
-id operation
-1 INSERT ON DUPLICATE KEY UPDATE, inserting a new key
-select * from t1_op_log;
-operation
-Before INSERT, new=INSERT ON DUPLICATE KEY UPDATE, inserting a new key
-After INSERT, new=INSERT ON DUPLICATE KEY UPDATE, inserting a new key
-truncate t1_op_log;
-insert into t1 (id, operation) values
-(@id, "INSERT ON DUPLICATE KEY UPDATE, the key value is the same")
-on duplicate key update id=NULL,
-operation="INSERT ON DUPLICATE KEY UPDATE, updating the duplicate";
-select * from t1;
-id operation
-0 INSERT ON DUPLICATE KEY UPDATE, updating the duplicate
-select * from t1_op_log;
-operation
-Before INSERT, new=INSERT ON DUPLICATE KEY UPDATE, the key value is the same
-Before UPDATE, new=INSERT ON DUPLICATE KEY UPDATE, updating the duplicate, old=INSERT ON DUPLICATE KEY UPDATE, inserting a new key
-After UPDATE, new=INSERT ON DUPLICATE KEY UPDATE, updating the duplicate, old=INSERT ON DUPLICATE KEY UPDATE, inserting a new key
-truncate t1;
-truncate t1_op_log;
-replace into t1 values (NULL, "REPLACE, inserting a new key");
-set @id=last_insert_id();
-select * from t1;
-id operation
-1 REPLACE, inserting a new key
-select * from t1_op_log;
-operation
-Before INSERT, new=REPLACE, inserting a new key
-After INSERT, new=REPLACE, inserting a new key
-truncate t1_op_log;
-replace into t1 values (@id, "REPLACE, deleting the duplicate");
-select * from t1;
-id operation
-1 REPLACE, deleting the duplicate
-select * from t1_op_log;
-operation
-Before INSERT, new=REPLACE, deleting the duplicate
-Before DELETE, old=REPLACE, inserting a new key
-After DELETE, old=REPLACE, inserting a new key
-After INSERT, new=REPLACE, deleting the duplicate
-truncate t1;
-truncate t1_op_log;
-insert into t1
-select NULL, "CREATE TABLE ... SELECT, inserting a new key";
-set @id=last_insert_id();
-select * from t1;
-id operation
-1 CREATE TABLE ... SELECT, inserting a new key
-select * from t1_op_log;
-operation
-Before INSERT, new=CREATE TABLE ... SELECT, inserting a new key
-After INSERT, new=CREATE TABLE ... SELECT, inserting a new key
-truncate t1_op_log;
-replace into t1
-select @id, "CREATE TABLE ... REPLACE SELECT, deleting a duplicate key";
-select * from t1;
-id operation
-1 CREATE TABLE ... REPLACE SELECT, deleting a duplicate key
-select * from t1_op_log;
-operation
-Before INSERT, new=CREATE TABLE ... REPLACE SELECT, deleting a duplicate key
-Before DELETE, old=CREATE TABLE ... SELECT, inserting a new key
-After DELETE, old=CREATE TABLE ... SELECT, inserting a new key
-After INSERT, new=CREATE TABLE ... REPLACE SELECT, deleting a duplicate key
-truncate t1;
-truncate t1_op_log;
-insert into t1 (id, operation)
-select NULL, "INSERT ... SELECT, inserting a new key";
-set @id=last_insert_id();
-select * from t1;
-id operation
-1 INSERT ... SELECT, inserting a new key
-select * from t1_op_log;
-operation
-Before INSERT, new=INSERT ... SELECT, inserting a new key
-After INSERT, new=INSERT ... SELECT, inserting a new key
-truncate t1_op_log;
-insert into t1 (id, operation)
-select @id,
-"INSERT ... SELECT ... ON DUPLICATE KEY UPDATE, updating a duplicate"
-on duplicate key update id=NULL,
-operation="INSERT ... SELECT ... ON DUPLICATE KEY UPDATE, updating a duplicate";
-select * from t1;
-id operation
-0 INSERT ... SELECT ... ON DUPLICATE KEY UPDATE, updating a duplicate
-select * from t1_op_log;
-operation
-Before INSERT, new=INSERT ... SELECT ... ON DUPLICATE KEY UPDATE, updating a duplicate
-Before UPDATE, new=INSERT ... SELECT ... ON DUPLICATE KEY UPDATE, updating a duplicate, old=INSERT ... SELECT, inserting a new key
-After UPDATE, new=INSERT ... SELECT ... ON DUPLICATE KEY UPDATE, updating a duplicate, old=INSERT ... SELECT, inserting a new key
-truncate t1;
-truncate t1_op_log;
-replace into t1 (id, operation)
-select NULL, "REPLACE ... SELECT, inserting a new key";
-set @id=last_insert_id();
-select * from t1;
-id operation
-1 REPLACE ... SELECT, inserting a new key
-select * from t1_op_log;
-operation
-Before INSERT, new=REPLACE ... SELECT, inserting a new key
-After INSERT, new=REPLACE ... SELECT, inserting a new key
-truncate t1_op_log;
-replace into t1 (id, operation)
-select @id, "REPLACE ... SELECT, deleting a duplicate";
-select * from t1;
-id operation
-1 REPLACE ... SELECT, deleting a duplicate
-select * from t1_op_log;
-operation
-Before INSERT, new=REPLACE ... SELECT, deleting a duplicate
-Before DELETE, old=REPLACE ... SELECT, inserting a new key
-After DELETE, old=REPLACE ... SELECT, inserting a new key
-After INSERT, new=REPLACE ... SELECT, deleting a duplicate
-truncate t1;
-truncate t1_op_log;
-insert into t1 (id, operation) values (1, "INSERT for multi-DELETE");
-insert into t2 (id) values (1);
-delete t1.*, t2.* from t1, t2 where t1.id=1;
-select * from t1;
-id operation
-select * from t2;
-id
-select * from t1_op_log;
-operation
-Before INSERT, new=INSERT for multi-DELETE
-After INSERT, new=INSERT for multi-DELETE
-Before DELETE, old=INSERT for multi-DELETE
-After DELETE, old=INSERT for multi-DELETE
-truncate t1;
-truncate t2;
-truncate t1_op_log;
-insert into t1 (id, operation) values (1, "INSERT for multi-UPDATE");
-insert into t2 (id) values (1);
-update t1, t2 set t1.id=2, operation="multi-UPDATE" where t1.id=1;
-update t1, t2
-set t2.id=3, operation="multi-UPDATE, SET for t2, but the trigger is fired" where t1.id=2;
-select * from t1;
-id operation
-2 multi-UPDATE, SET for t2, but the trigger is fired
-select * from t2;
-id
-3
-select * from t1_op_log;
-operation
-Before INSERT, new=INSERT for multi-UPDATE
-After INSERT, new=INSERT for multi-UPDATE
-Before UPDATE, new=multi-UPDATE, old=INSERT for multi-UPDATE
-After UPDATE, new=multi-UPDATE, old=INSERT for multi-UPDATE
-Before UPDATE, new=multi-UPDATE, SET for t2, but the trigger is fired, old=multi-UPDATE
-After UPDATE, new=multi-UPDATE, SET for t2, but the trigger is fired, old=multi-UPDATE
-truncate table t1;
-truncate table t2;
-truncate table t1_op_log;
-
-Now do the same but use a view instead of the base table.
-
-insert into v1 (operation) values ("INSERT");
-set @id=last_insert_id();
-select * from t1;
-id operation
-1 INSERT
-select * from t1_op_log;
-operation
-Before INSERT, new=INSERT
-After INSERT, new=INSERT
-truncate t1_op_log;
-update v1 set operation="UPDATE" where id=@id;
-select * from t1;
-id operation
-1 UPDATE
-select * from t1_op_log;
-operation
-Before UPDATE, new=UPDATE, old=INSERT
-After UPDATE, new=UPDATE, old=INSERT
-truncate t1_op_log;
-delete from v1 where id=@id;
-select * from t1;
-id operation
-select * from t1_op_log;
-operation
-Before DELETE, old=UPDATE
-After DELETE, old=UPDATE
-truncate t1;
-truncate t1_op_log;
-insert into v1 (id, operation) values
-(NULL, "INSERT ON DUPLICATE KEY UPDATE, inserting a new key")
-on duplicate key update id=NULL, operation="Should never happen";
-set @id=last_insert_id();
-select * from t1;
-id operation
-1 INSERT ON DUPLICATE KEY UPDATE, inserting a new key
-select * from t1_op_log;
-operation
-Before INSERT, new=INSERT ON DUPLICATE KEY UPDATE, inserting a new key
-After INSERT, new=INSERT ON DUPLICATE KEY UPDATE, inserting a new key
-truncate t1_op_log;
-insert into v1 (id, operation) values
-(@id, "INSERT ON DUPLICATE KEY UPDATE, the key value is the same")
-on duplicate key update id=NULL,
-operation="INSERT ON DUPLICATE KEY UPDATE, updating the duplicate";
-select * from t1;
-id operation
-0 INSERT ON DUPLICATE KEY UPDATE, updating the duplicate
-select * from t1_op_log;
-operation
-Before INSERT, new=INSERT ON DUPLICATE KEY UPDATE, the key value is the same
-Before UPDATE, new=INSERT ON DUPLICATE KEY UPDATE, updating the duplicate, old=INSERT ON DUPLICATE KEY UPDATE, inserting a new key
-After UPDATE, new=INSERT ON DUPLICATE KEY UPDATE, updating the duplicate, old=INSERT ON DUPLICATE KEY UPDATE, inserting a new key
-truncate t1;
-truncate t1_op_log;
-replace into v1 values (NULL, "REPLACE, inserting a new key");
-set @id=last_insert_id();
-select * from t1;
-id operation
-1 REPLACE, inserting a new key
-select * from t1_op_log;
-operation
-Before INSERT, new=REPLACE, inserting a new key
-After INSERT, new=REPLACE, inserting a new key
-truncate t1_op_log;
-replace into v1 values (@id, "REPLACE, deleting the duplicate");
-select * from t1;
-id operation
-1 REPLACE, deleting the duplicate
-select * from t1_op_log;
-operation
-Before INSERT, new=REPLACE, deleting the duplicate
-Before DELETE, old=REPLACE, inserting a new key
-After DELETE, old=REPLACE, inserting a new key
-After INSERT, new=REPLACE, deleting the duplicate
-truncate t1;
-truncate t1_op_log;
-insert into v1
-select NULL, "CREATE TABLE ... SELECT, inserting a new key";
-set @id=last_insert_id();
-select * from t1;
-id operation
-1 CREATE TABLE ... SELECT, inserting a new key
-select * from t1_op_log;
-operation
-Before INSERT, new=CREATE TABLE ... SELECT, inserting a new key
-After INSERT, new=CREATE TABLE ... SELECT, inserting a new key
-truncate t1_op_log;
-replace into v1
-select @id, "CREATE TABLE ... REPLACE SELECT, deleting a duplicate key";
-select * from t1;
-id operation
-1 CREATE TABLE ... REPLACE SELECT, deleting a duplicate key
-select * from t1_op_log;
-operation
-Before INSERT, new=CREATE TABLE ... REPLACE SELECT, deleting a duplicate key
-Before DELETE, old=CREATE TABLE ... SELECT, inserting a new key
-After DELETE, old=CREATE TABLE ... SELECT, inserting a new key
-After INSERT, new=CREATE TABLE ... REPLACE SELECT, deleting a duplicate key
-truncate t1;
-truncate t1_op_log;
-insert into v1 (id, operation)
-select NULL, "INSERT ... SELECT, inserting a new key";
-set @id=last_insert_id();
-select * from t1;
-id operation
-1 INSERT ... SELECT, inserting a new key
-select * from t1_op_log;
-operation
-Before INSERT, new=INSERT ... SELECT, inserting a new key
-After INSERT, new=INSERT ... SELECT, inserting a new key
-truncate t1_op_log;
-insert into v1 (id, operation)
-select @id,
-"INSERT ... SELECT ... ON DUPLICATE KEY UPDATE, updating a duplicate"
-on duplicate key update id=NULL,
-operation="INSERT ... SELECT ... ON DUPLICATE KEY UPDATE, updating a duplicate";
-select * from t1;
-id operation
-0 INSERT ... SELECT ... ON DUPLICATE KEY UPDATE, updating a duplicate
-select * from t1_op_log;
-operation
-Before INSERT, new=INSERT ... SELECT ... ON DUPLICATE KEY UPDATE, updating a duplicate
-Before UPDATE, new=INSERT ... SELECT ... ON DUPLICATE KEY UPDATE, updating a duplicate, old=INSERT ... SELECT, inserting a new key
-After UPDATE, new=INSERT ... SELECT ... ON DUPLICATE KEY UPDATE, updating a duplicate, old=INSERT ... SELECT, inserting a new key
-truncate t1;
-truncate t1_op_log;
-replace into v1 (id, operation)
-select NULL, "REPLACE ... SELECT, inserting a new key";
-set @id=last_insert_id();
-select * from t1;
-id operation
-1 REPLACE ... SELECT, inserting a new key
-select * from t1_op_log;
-operation
-Before INSERT, new=REPLACE ... SELECT, inserting a new key
-After INSERT, new=REPLACE ... SELECT, inserting a new key
-truncate t1_op_log;
-replace into v1 (id, operation)
-select @id, "REPLACE ... SELECT, deleting a duplicate";
-select * from t1;
-id operation
-1 REPLACE ... SELECT, deleting a duplicate
-select * from t1_op_log;
-operation
-Before INSERT, new=REPLACE ... SELECT, deleting a duplicate
-Before DELETE, old=REPLACE ... SELECT, inserting a new key
-After DELETE, old=REPLACE ... SELECT, inserting a new key
-After INSERT, new=REPLACE ... SELECT, deleting a duplicate
-truncate t1;
-truncate t1_op_log;
-insert into v1 (id, operation) values (1, "INSERT for multi-DELETE");
-insert into t2 (id) values (1);
-delete v1.*, t2.* from v1, t2 where v1.id=1;
-select * from t1;
-id operation
-select * from t2;
-id
-select * from t1_op_log;
-operation
-Before INSERT, new=INSERT for multi-DELETE
-After INSERT, new=INSERT for multi-DELETE
-Before DELETE, old=INSERT for multi-DELETE
-After DELETE, old=INSERT for multi-DELETE
-truncate t1;
-truncate t2;
-truncate t1_op_log;
-insert into v1 (id, operation) values (1, "INSERT for multi-UPDATE");
-insert into t2 (id) values (1);
-update v1, t2 set v1.id=2, operation="multi-UPDATE" where v1.id=1;
-update v1, t2
-set t2.id=3, operation="multi-UPDATE, SET for t2, but the trigger is fired" where v1.id=2;
-select * from t1;
-id operation
-2 multi-UPDATE, SET for t2, but the trigger is fired
-select * from t2;
-id
-3
-select * from t1_op_log;
-operation
-Before INSERT, new=INSERT for multi-UPDATE
-After INSERT, new=INSERT for multi-UPDATE
-Before UPDATE, new=multi-UPDATE, old=INSERT for multi-UPDATE
-After UPDATE, new=multi-UPDATE, old=INSERT for multi-UPDATE
-Before UPDATE, new=multi-UPDATE, SET for t2, but the trigger is fired, old=multi-UPDATE
-After UPDATE, new=multi-UPDATE, SET for t2, but the trigger is fired, old=multi-UPDATE
-drop view v1;
-drop table t1, t2, t1_op_log;
-
-Bug#27248 Triggers: error if insert affects temporary table
-
-The bug was fixed by the fix for Bug#26141
-
-drop table if exists t1;
-drop temporary table if exists t2;
-create table t1 (s1 int);
-create temporary table t2 (s1 int);
-create trigger t1_bi before insert on t1 for each row insert into t2 values (0);
-create trigger t1_bd before delete on t1 for each row delete from t2;
-insert into t1 values (0);
-insert into t1 values (0);
-select * from t1;
-s1
-0
-0
-select * from t2;
-s1
-0
-0
-delete from t1;
-select * from t1;
-s1
-select * from t2;
-s1
-drop table t1;
-drop temporary table t2;
-#------------------------------------------------------------------------
-# Bug#39953 Triggers are not working properly with multi table updates
-#------------------------------------------------------------------------
-DROP TABLE IF EXISTS t1;
-DROP TRIGGER IF EXISTS t_insert;
-DROP TABLE IF EXISTS t2;
-CREATE TABLE t1 (a int, date_insert timestamp, PRIMARY KEY (a));
-INSERT INTO t1 (a) VALUES (2),(5);
-CREATE TABLE t2 (a int, b int, PRIMARY KEY (a));
-CREATE TRIGGER t_insert AFTER INSERT ON t2 FOR EACH ROW BEGIN UPDATE t1,t2 SET
-date_insert=NOW() WHERE t1.a=t2.b AND t2.a=NEW.a; END |
-INSERT INTO t2 (a,b) VALUES (1,2);
-DROP TRIGGER t_insert;
-CREATE TRIGGER t_insert AFTER INSERT ON t2 FOR EACH ROW BEGIN UPDATE t1,t2 SET
-date_insert=NOW(),b=b+1 WHERE t1.a=t2.b AND t2.a=NEW.a; END |
-INSERT INTO t2 (a,b) VALUES (3,5);
-ERROR HY000: Can't update table 't2' in stored function/trigger because it is already used by statement which invoked this stored function/trigger
-DROP TABLE t1;
-DROP TRIGGER t_insert;
-DROP TABLE t2;
-End of 5.0 tests
-drop table if exists table_25411_a;
-drop table if exists table_25411_b;
-create table table_25411_a(a int);
-create table table_25411_b(b int);
-create trigger trg_25411a_ai after insert on table_25411_a
-for each row
-insert into table_25411_b select new.*;
-select * from table_25411_a;
-a
-insert into table_25411_a values (1);
-ERROR 42S02: Unknown table 'test.new'
-select * from table_25411_a;
-a
-1
-drop table table_25411_a;
-drop table table_25411_b;
-DROP TRIGGER IF EXISTS trg;
-SHOW CREATE TRIGGER trg;
-ERROR HY000: Trigger does not exist
-drop table if exists t1;
-create table t1 (i int, j int);
-create trigger t1_bi before insert on t1 for each row begin end;
-create trigger t1_bi before insert on t1 for each row begin end;
-ERROR HY000: Trigger 'test.t1_bi' already exists
-create trigger t1_bi2 before insert on t1 for each row begin end;
-drop trigger t1_bi;
-drop trigger t1_bi2;
-drop trigger t1_bi;
-ERROR HY000: Trigger does not exist
-lock tables t1 read;
-create trigger t1_bi before insert on t1 for each row begin end;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-create trigger t1_bi before insert on t1 for each row begin end;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-drop trigger t1_bi;
-ERROR HY000: Trigger does not exist
-unlock tables;
-create trigger t1_bi before insert on t1 for each row begin end;
-lock tables t1 read;
-create trigger t1_bi before insert on t1 for each row begin end;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-drop trigger t1_bi;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-unlock tables;
-drop trigger t1_bi;
-lock tables t1 write;
-create trigger b1_bi before insert on t1 for each row set new.i = new.i + 10;
-insert into t1 values (10, 10);
-drop trigger b1_bi;
-insert into t1 values (10, 10);
-select * from t1;
-i j
-20 10
-10 10
-unlock tables;
-drop table t1;
-drop table if exists t1, t2;
-drop trigger if exists trg1;
-drop trigger if exists trg2;
-create table t1 (a int);
-create table t2 (b int);
-create trigger trg1 after update on t1 for each row set @a= @a+1;
-create trigger trg2 after update on t2 for each row set @b= @b+1;
-insert into t1 values (1), (2), (3);
-insert into t2 values (1), (2), (3);
-set @a= 0;
-set @b= 0;
-update t1, t2 set t1.a= t1.a, t2.b= t2.b;
-select @a, @b;
-@a @b
-3 3
-update t1, t2 set t1.a= t2.b, t2.b= t1.a;
-select @a, @b;
-@a @b
-6 6
-update t1 set a= a;
-select @a, @b;
-@a @b
-9 6
-update t2 set b= b;
-select @a, @b;
-@a @b
-9 9
-update t1 set a= 1;
-select @a, @b;
-@a @b
-12 9
-update t2 set b= 1;
-select @a, @b;
-@a @b
-12 12
-drop trigger trg1;
-drop trigger trg2;
-drop table t1, t2;
-CREATE TABLE t1 ( a INT, b INT );
-CREATE TABLE t2 ( a INT AUTO_INCREMENT KEY, b INT );
-INSERT INTO t1 (a) VALUES (1);
-CREATE TRIGGER tr1
-BEFORE INSERT ON t2
-FOR EACH ROW
-BEGIN
-UPDATE a_nonextisting_table SET a = 1;
-END//
-CREATE TABLE IF NOT EXISTS t2 ( a INT, b INT ) SELECT a, b FROM t1;
-Warnings:
-Note 1050 Table 't2' already exists
-SELECT * FROM t2;
-a b
-DROP TABLE t1, t2;
-#
-# Bug#51650 crash with user variables and triggers
-#
-DROP TRIGGER IF EXISTS trg1;
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (b VARCHAR(50) NOT NULL);
-CREATE TABLE t2 (a VARCHAR(10) NOT NULL DEFAULT '');
-CREATE TRIGGER trg1 AFTER INSERT ON t2
-FOR EACH ROW BEGIN
-SELECT 1 FROM t1 c WHERE
-(@bug51650 IS NULL OR @bug51650 != c.b) AND c.b = NEW.a LIMIT 1 INTO @foo;
-END//
-SET @bug51650 = 1;
-INSERT IGNORE INTO t2 VALUES();
-INSERT IGNORE INTO t1 SET b = '777';
-INSERT IGNORE INTO t2 SET a = '111';
-SET @bug51650 = 1;
-INSERT IGNORE INTO t2 SET a = '777';
-DROP TRIGGER trg1;
-DROP TABLE t1, t2;
-CREATE TABLE t1 (id INT NOT NULL);
-CREATE TABLE t2 (id INT NOT NULL);
-INSERT t1 VALUES (1),(2),(3);
-UPDATE IGNORE t1 SET id=NULL;
-Warnings:
-Warning 1048 Column 'id' cannot be null
-Warning 1048 Column 'id' cannot be null
-Warning 1048 Column 'id' cannot be null
-CREATE TRIGGER t1_bu BEFORE UPDATE ON t1 FOR EACH ROW
-INSERT INTO t2 VALUES (3);
-UPDATE t1 SET id=NULL;
-Warnings:
-Warning 1048 Column 'id' cannot be null
-Warning 1048 Column 'id' cannot be null
-Warning 1048 Column 'id' cannot be null
-DROP TRIGGER t1_bu;
-DROP TABLE t1,t2;
-#
-# Bug#50755: Crash if stored routine def contains version comments
-#
-DROP DATABASE IF EXISTS db1;
-DROP TRIGGER IF EXISTS trg1;
-DROP TABLE IF EXISTS t1, t2;
-CREATE DATABASE db1;
-USE db1;
-CREATE TABLE t1 (b INT);
-CREATE TABLE t2 (a INT);
-CREATE TRIGGER trg1 BEFORE INSERT ON t2 FOR EACH ROW INSERT/*!INTO*/t1 VALUES (1);
-# Used to crash
-SHOW TRIGGERS IN db1;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg1 INSERT t2 CREATE DEFINER=`root`@`localhost` TRIGGER trg1 BEFORE INSERT ON t2 FOR EACH ROW INSERTINTOt1 VALUES (1) BEFORE # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION latin1 latin1_swedish_ci latin1_swedish_ci
-INSERT INTO t2 VALUES (1);
-ERROR 42000: Trigger 'trg1' has an error in its body: 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VALUES (1)' at line 1'
-SELECT * FROM t1;
-b
-# Work around Bug#45235
-DROP DATABASE db1;
-USE test;
-End of 5.1 tests.
-create table t1 (i int);
-create table t2 (i int);
-flush tables;
-flush status;
-CREATE DEFINER=`root`@`localhost` TRIGGER trg AFTER DELETE ON t1 FOR EACH ROW BEGIN DELETE FROM t2 WHERE t2.i = OLD.i; END //
-insert into t1 values (1),(2);
-insert into t2 values (1),(2);
-delete from t1 where i=1;
-show status like 'Opened_tables';
-Variable_name Value
-Opened_tables 3
-select * from t1;
-i
-2
-select * from t2;
-i
-2
-drop table t1,t2;
-End of 5.2 tests.
-#
-# Bug#34453 Can't change size of file (Errcode: 1224)
-#
-DROP TRIGGER IF EXISTS t1_bi;
-DROP TRIGGER IF EXISTS t1_bd;
-DROP TABLE IF EXISTS t1;
-DROP TEMPORARY TABLE IF EXISTS t2;
-CREATE TABLE t1 (s1 INT);
-CREATE TEMPORARY TABLE t2 (s1 INT);
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 VALUES (0);
-CREATE TRIGGER t1_bd BEFORE DELETE ON t1 FOR EACH ROW DELETE FROM t2;
-INSERT INTO t1 VALUES (0);
-INSERT INTO t1 VALUES (0);
-SELECT * FROM t1;
-s1
-0
-0
-SELECT * FROM t2;
-s1
-0
-0
-# Reported to give ERROR 14 (HY000):
-# Can't change size of file (Errcode: 1224)
-# on Windows
-DELETE FROM t1;
-DROP TABLE t1;
-DROP TEMPORARY TABLE t2;
-SET sql_mode = 'NO_ENGINE_SUBSTITUTION';
-DROP TRIGGER IF EXISTS trg1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE a CHAR;
-SELECT 'ab' INTO a;
-SELECT 'ab' INTO a;
-SELECT 'a' INTO a;
-END|
-INSERT INTO t1 VALUES (1);
-DROP TRIGGER trg1;
-DROP TABLE t1;
-DROP TRIGGER IF EXISTS trg1;
-DROP TRIGGER IF EXISTS trg2;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE trg1 CHAR;
-SELECT 'ab' INTO trg1;
-END|
-CREATE TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE trg2 CHAR;
-SELECT 'ab' INTO trg2;
-END|
-SET sql_mode = DEFAULT;
-INSERT INTO t1 VALUES (0);
-SELECT * FROM t1;
-a
-0
-SHOW WARNINGS;
-Level Code Message
-INSERT INTO t1 VALUES (1),(2);
-DROP TRIGGER trg1;
-DROP TRIGGER trg2;
-DROP TABLE t1;
-#
-# Bug #46747 "Crash in MDL_ticket::upgrade_shared_lock_to_exclusive
-# on TRIGGER + TEMP table".
-#
-drop trigger if exists t1_bi;
-drop temporary table if exists t1;
-drop table if exists t1;
-create table t1 (i int);
-create trigger t1_bi before insert on t1 for each row set @a:=1;
-# Create temporary table which shadows base table with trigger.
-create temporary table t1 (j int);
-# Dropping of trigger should succeed.
-drop trigger t1_bi;
-select trigger_name from information_schema.triggers
-where event_object_schema = 'test' and event_object_table = 't1';
-trigger_name
-# Clean-up.
-drop temporary table t1;
-drop table t1;
-#
-# Bug #12362125: SP INOUT HANDLING IS BROKEN FOR TEXT TYPE.
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(c TEXT);
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-BEGIN
-DECLARE v TEXT;
-SET v = 'aaa';
-SET NEW.c = v;
-END|
-INSERT INTO t1 VALUES('qazwsxedc');
-SELECT c FROM t1;
-c
-aaa
-DROP TABLE t1;
-
-End of 5.5 tests.
-#
-# BUG #910083: materialized subquery in a trigger
-#
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='materialization=on';
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (b int);
-CREATE TRIGGER tr AFTER UPDATE ON t1 FOR EACH ROW
-UPDATE t2 SET b = (SELECT COUNT(a) FROM t1);
-INSERT INTO t1
-VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9);
-INSERT INTO t2
-VALUES (0),(0),(0),(0),(0),(0),(0),(0),(0);
-UPDATE t1 SET a = 3;
-connect con1,localhost,root,,;
-SELECT COUNT(*) FROM t1;
-COUNT(*)
-9
-disconnect con1;
-connection default;
-SELECT * FROM t2;
-b
-9
-9
-9
-9
-9
-9
-9
-9
-9
-UPDATE t1 SET a = 2;
-SELECT * FROM t2;
-b
-9
-9
-9
-9
-9
-9
-9
-9
-9
-SET optimizer_switch=@save_optimizer_switch;
-DROP TRIGGER tr;
-DROP TABLE t1, t2;
-End of 5.3 tests.
-set time_zone="+00:00";
-SET TIMESTAMP=UNIX_TIMESTAMP('2001-01-01 10:20:30');
-SET @@session.sql_mode = 'STRICT_ALL_TABLES,STRICT_TRANS_TABLES';
-CREATE TABLE t1 (c CHAR(1) NOT NULL);
-CREATE TRIGGER t1_bi
-BEFORE INSERT
-ON t1
-FOR EACH ROW
-BEGIN
-SET NEW.c = 'www';
-END;
-|
-SET @@session.sql_mode = default;
-INSERT INTO t1 VALUES ('a');
-ERROR 22001: Data too long for column 'c' at row 1
-show create trigger t1_bi;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-t1_bi STRICT_TRANS_TABLES,STRICT_ALL_TABLES CREATE DEFINER=`root`@`localhost` TRIGGER t1_bi
-BEFORE INSERT
-ON t1
-FOR EACH ROW
-BEGIN
-SET NEW.c = 'www';
-END latin1 latin1_swedish_ci latin1_swedish_ci 2001-01-01 10:20:30.00
-DROP TRIGGER t1_bi;
-DROP TABLE t1;
-SET TIMESTAMP=DEFAULT;
-set time_zone= @@global.time_zone;
-#
-# MDEV-13936: Server crashes in Time_and_counter_tracker::incr_loops
-#
-CREATE TABLE t1 (i INT);
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE RAND() > 0.5;
-CREATE TABLE t2 (a int);
-CREATE TABLE t3 (a int);
-create trigger trg after insert on t2 for each row
-INSERT INTO t3 SELECT MAX(i) FROM v1 UNION SELECT MAX(i) FROM v1;
-drop table t1;
-insert into t2 value (2);
-ERROR 42S02: Table 'test.t1' doesn't exist
-CREATE TABLE t1 (i INT);
-insert into t2 value (2);
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-End of 10.1 tests.
-create table t1 (i int);
-create trigger tr1 after insert on t1 for each row set @a=@a+1;
-create trigger tr2 after insert on t1 for each row set @a=@a+1;
-create trigger tr3 after insert on t1 for each row set @a=@a+1;
-flush status;
-show status like 'Executed_triggers';
-Variable_name Value
-Executed_triggers 0
-set @a=0;
-insert into t1 values (1);
-show status like 'Executed_triggers';
-Variable_name Value
-Executed_triggers 3
-select @a;
-@a
-3
-drop table t1;
-create table t1 (i int);
-set time_zone="+0:00";
-SET TIMESTAMP=UNIX_TIMESTAMP('2016-01-01 10:10:10.33');
-select now(2);
-now(2)
-2016-01-01 10:10:10.33
-create or replace trigger tr1 after insert on t1 for each row set @a=@a+1;
-SET TIMESTAMP=UNIX_TIMESTAMP('2016-01-01 10:10:10.99');
-select now(2);
-now(2)
-2016-01-01 10:10:10.99
-create or replace trigger tr2 after insert on t1 for each row set @a=@a+1;
-select now(2);
-now(2)
-2016-01-01 10:10:10.99
-select trigger_name, action_order, created from information_schema.triggers
-where event_object_table = 't1' and trigger_schema='test';
-trigger_name action_order created
-tr1 1 2016-01-01 10:10:10.33
-tr2 2 2016-01-01 10:10:10.99
-drop table t1;
-set time_zone= @@global.time_zone;
-# MDEV-12992: Increasing memory consumption
-with each invocation of trigger
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (b INT);
-CREATE TRIGGER tr
-AFTER UPDATE ON t1 FOR EACH ROW SELECT (SELECT b FROM t2) INTO @x;
-# Running 20000 queries
-DROP TABLE t1,t2;
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12461 TYPE OF and ROW TYPE OF anchored data types
-#
-CREATE TABLE t1 (a INT, b INT, total INT);
-CREATE TRIGGER tr1 BEFORE INSERT ON t1
-FOR EACH ROW
-BEGIN
-DECLARE va TYPE OF t1.a DEFAULT NEW.a;
-DECLARE vb TYPE OF t1.b DEFAULT NEW.b;
-SET NEW.total:= va + vb;
-END;
-$$
-INSERT INTO t1 (a,b) VALUES (10, 20);
-SELECT * FROM t1;
-a b total
-10 20 30
-DROP TABLE t1;
diff --git a/mysql-test/r/trigger_no_defaults-11698.result b/mysql-test/r/trigger_no_defaults-11698.result
deleted file mode 100644
index 8ce495eaf3a..00000000000
--- a/mysql-test/r/trigger_no_defaults-11698.result
+++ /dev/null
@@ -1,42 +0,0 @@
-set sql_mode='strict_all_tables';
-create table t1 (a int not null, b int);
-insert t1 (b) values (1);
-ERROR HY000: Field 'a' doesn't have a default value
-create trigger trgi before insert on t1 for each row
-case new.b
-when 10 then
-set new.a = new.b;
-when 30 then
-set new.a = new.a;
-else
-do 1;
-end case|
-insert t1 (b) values (10);
-insert t1 (b) values (20);
-ERROR HY000: Field 'a' doesn't have a default value
-insert t1 (b) values (30);
-select * from t1;
-a b
-10 10
-0 30
-drop table t1;
-set sql_mode=default;
-set sql_mode='';
-create table t1 (
-id int(11) not null auto_increment primary key,
-data1 varchar(10) not null,
-data2 varchar(10) not null
-);
-insert into t1 (data2) values ('x');
-Warnings:
-Warning 1364 Field 'data1' doesn't have a default value
-create trigger test_trigger before insert on t1 for each row begin end;
-insert into t1 (data2) values ('y');
-Warnings:
-Warning 1364 Field 'data1' doesn't have a default value
-select * from t1;
-id data1 data2
-1 x
-2 y
-drop table t1;
-set sql_mode=default;
diff --git a/mysql-test/r/trigger_notembedded.result b/mysql-test/r/trigger_notembedded.result
deleted file mode 100644
index 3ee84c3c308..00000000000
--- a/mysql-test/r/trigger_notembedded.result
+++ /dev/null
@@ -1,572 +0,0 @@
-DELETE FROM mysql.user WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.db WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.tables_priv WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.columns_priv WHERE User LIKE 'mysqltest_%';
-FLUSH PRIVILEGES;
-DROP DATABASE IF EXISTS mysqltest_db1;
-CREATE DATABASE mysqltest_db1;
-CREATE USER mysqltest_dfn@localhost;
-CREATE USER mysqltest_inv@localhost;
-GRANT CREATE ON mysqltest_db1.* TO mysqltest_dfn@localhost;
-connect wl2818_definer_con,localhost,mysqltest_dfn,,mysqltest_db1;
-connection wl2818_definer_con;
-CREATE TABLE t1(num_value INT);
-CREATE TABLE t2(user_str TEXT);
-disconnect wl2818_definer_con;
-connection default;
-GRANT INSERT, DROP ON mysqltest_db1.t1 TO mysqltest_dfn@localhost;
-GRANT INSERT, DROP ON mysqltest_db1.t2 TO mysqltest_dfn@localhost;
-connection default;
-GRANT SUPER ON *.* TO mysqltest_dfn@localhost;
-connect wl2818_definer_con,localhost,mysqltest_dfn,,mysqltest_db1;
-connection wl2818_definer_con;
-CREATE TRIGGER trg1 AFTER INSERT ON t1
-FOR EACH ROW
-INSERT INTO t2 VALUES(CURRENT_USER());
-ERROR 42000: TRIGGER command denied to user 'mysqltest_dfn'@'localhost' for table 't1'
-disconnect wl2818_definer_con;
-connection default;
-GRANT TRIGGER ON mysqltest_db1.t1 TO mysqltest_dfn@localhost;
-connect wl2818_definer_con,localhost,mysqltest_dfn,,mysqltest_db1;
-connection wl2818_definer_con;
-CREATE TRIGGER trg1 AFTER INSERT ON t1
-FOR EACH ROW
-INSERT INTO t2 VALUES(CURRENT_USER());
-disconnect wl2818_definer_con;
-connection default;
-REVOKE TRIGGER ON mysqltest_db1.t1 FROM mysqltest_dfn@localhost;
-connect wl2818_definer_con,localhost,mysqltest_dfn,,mysqltest_db1;
-connection wl2818_definer_con;
-DROP TRIGGER trg1;
-ERROR 42000: TRIGGER command denied to user 'mysqltest_dfn'@'localhost' for table 't1'
-disconnect wl2818_definer_con;
-connect wl2818_definer_con,localhost,mysqltest_dfn,,mysqltest_db1;
-connection wl2818_definer_con;
-INSERT INTO t1 VALUES(0);
-ERROR 42000: TRIGGER command denied to user 'mysqltest_dfn'@'localhost' for table 't1'
-disconnect wl2818_definer_con;
-connection default;
-GRANT TRIGGER ON mysqltest_db1.t1 TO mysqltest_dfn@localhost;
-connect wl2818_definer_con,localhost,mysqltest_dfn,,mysqltest_db1;
-connection wl2818_definer_con;
-INSERT INTO t1 VALUES(0);
-DROP TRIGGER trg1;
-TRUNCATE TABLE t1;
-TRUNCATE TABLE t2;
-disconnect wl2818_definer_con;
-connection default;
-REVOKE SUPER ON *.* FROM mysqltest_dfn@localhost;
-connect wl2818_definer_con,localhost,mysqltest_dfn,,mysqltest_db1;
-connection wl2818_definer_con;
-CREATE TRIGGER trg1 AFTER INSERT ON t1
-FOR EACH ROW
-INSERT INTO t2 VALUES(CURRENT_USER());
-connection default;
-GRANT ALL PRIVILEGES ON mysqltest_db1.t1 TO mysqltest_dfn@localhost;
-GRANT ALL PRIVILEGES ON mysqltest_db1.t2 TO mysqltest_dfn@localhost;
-GRANT ALL PRIVILEGES ON mysqltest_db1.t1
-TO 'mysqltest_inv'@localhost;
-GRANT SELECT ON mysqltest_db1.t2
-TO 'mysqltest_inv'@localhost;
-connection wl2818_definer_con;
-use mysqltest_db1;
-INSERT INTO t1 VALUES(1);
-SELECT * FROM t1;
-num_value
-1
-SELECT * FROM t2;
-user_str
-mysqltest_dfn@localhost
-connect wl2818_invoker_con,localhost,mysqltest_inv,,mysqltest_db1;
-connection wl2818_invoker_con;
-use mysqltest_db1;
-INSERT INTO t1 VALUES(2);
-SELECT * FROM t1;
-num_value
-1
-2
-SELECT * FROM t2;
-user_str
-mysqltest_dfn@localhost
-mysqltest_dfn@localhost
-connection default;
-use mysqltest_db1;
-REVOKE INSERT ON mysqltest_db1.t2 FROM mysqltest_dfn@localhost;
-connection wl2818_invoker_con;
-use mysqltest_db1;
-INSERT INTO t1 VALUES(3);
-ERROR 42000: INSERT command denied to user 'mysqltest_dfn'@'localhost' for table 't2'
-SELECT * FROM t1;
-num_value
-1
-2
-3
-SELECT * FROM t2;
-user_str
-mysqltest_dfn@localhost
-mysqltest_dfn@localhost
-connection wl2818_definer_con;
-use mysqltest_db1;
-DROP TRIGGER trg1;
-CREATE DEFINER='mysqltest_inv'@'localhost'
- TRIGGER trg1 BEFORE INSERT ON t1
-FOR EACH ROW
-SET @new_sum = 0;
-ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
-connection default;
-use mysqltest_db1;
-GRANT SUPER ON *.* TO mysqltest_dfn@localhost;
-disconnect wl2818_definer_con;
-connect wl2818_definer_con,localhost,mysqltest_dfn,,mysqltest_db1;
-connection wl2818_definer_con;
-CREATE DEFINER='mysqltest_inv'@'localhost'
- TRIGGER trg1 BEFORE INSERT ON t1
-FOR EACH ROW
-SET @new_sum = 0;
-CREATE DEFINER='mysqltest_nonexs'@'localhost'
- TRIGGER trg2 AFTER INSERT ON t1
-FOR EACH ROW
-SET @new_sum = 0;
-Warnings:
-Note 1449 The user specified as a definer ('mysqltest_nonexs'@'localhost') does not exist
-INSERT INTO t1 VALUES(6);
-ERROR HY000: The user specified as a definer ('mysqltest_nonexs'@'localhost') does not exist
-SHOW TRIGGERS;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-trg1 INSERT t1 SET @new_sum = 0 BEFORE # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION mysqltest_inv@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-trg2 INSERT t1 SET @new_sum = 0 AFTER # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION mysqltest_nonexs@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-DROP TRIGGER trg1;
-DROP TRIGGER trg2;
-CREATE TRIGGER trg1 BEFORE INSERT ON t1
-FOR EACH ROW
-SET @a = 1;
-CREATE TRIGGER trg2 AFTER INSERT ON t1
-FOR EACH ROW
-SET @a = 2;
-CREATE TRIGGER trg3 BEFORE UPDATE ON t1
-FOR EACH ROW
-SET @a = 3;
-CREATE TRIGGER trg4 AFTER UPDATE ON t1
-FOR EACH ROW
-SET @a = 4;
-CREATE TRIGGER trg5 BEFORE DELETE ON t1
-FOR EACH ROW
-SET @a = 5;
-
-SELECT trigger_name, definer FROM INFORMATION_SCHEMA.TRIGGERS ORDER BY trigger_name;
-trigger_name definer
-trg1
-trg2 @
-trg3 @abc@def@@%
-trg4 @hostname
-trg5 @abcdef@@@hostname
-
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS ORDER BY trigger_name;
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def mysqltest_db1 trg1 INSERT def mysqltest_db1 t1 1 NULL SET @a = 1 ROW BEFORE NULL NULL OLD NEW # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION latin1 latin1_swedish_ci latin1_swedish_ci
-def mysqltest_db1 trg2 INSERT def mysqltest_db1 t1 1 NULL SET @a = 2 ROW AFTER NULL NULL OLD NEW # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION @ latin1 latin1_swedish_ci latin1_swedish_ci
-def mysqltest_db1 trg3 UPDATE def mysqltest_db1 t1 1 NULL SET @a = 3 ROW BEFORE NULL NULL OLD NEW # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION @abc@def@@% latin1 latin1_swedish_ci latin1_swedish_ci
-def mysqltest_db1 trg4 UPDATE def mysqltest_db1 t1 1 NULL SET @a = 4 ROW AFTER NULL NULL OLD NEW # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION @hostname latin1 latin1_swedish_ci latin1_swedish_ci
-def mysqltest_db1 trg5 DELETE def mysqltest_db1 t1 1 NULL SET @a = 5 ROW BEFORE NULL NULL OLD NEW # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION @abcdef@@@hostname latin1 latin1_swedish_ci latin1_swedish_ci
-connection default;
-DROP USER mysqltest_dfn@localhost;
-DROP USER mysqltest_inv@localhost;
-DROP DATABASE mysqltest_db1;
-DELETE FROM mysql.user WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.db WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.tables_priv WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.columns_priv WHERE User LIKE 'mysqltest_%';
-FLUSH PRIVILEGES;
-DROP DATABASE IF EXISTS mysqltest_db1;
-CREATE DATABASE mysqltest_db1;
-use mysqltest_db1;
-CREATE TABLE t1(col CHAR(20));
-CREATE TABLE t2(col CHAR(20));
-CREATE TABLE t3(col CHAR(20));
-CREATE TABLE t4(col CHAR(20));
-CREATE USER mysqltest_u1@localhost;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-GRANT TRIGGER ON mysqltest_db1.* TO mysqltest_u1@localhost;
-SET @mysqltest_var = NULL;
-connect bug15166_u1_con,localhost,mysqltest_u1,,mysqltest_db1;
-connection default;
-use mysqltest_db1;
-GRANT DELETE ON mysqltest_db1.* TO mysqltest_u1@localhost;
-SHOW GRANTS FOR mysqltest_u1@localhost;
-Grants for mysqltest_u1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_u1'@'localhost'
-GRANT DELETE, TRIGGER ON `mysqltest_db1`.* TO 'mysqltest_u1'@'localhost'
-connection bug15166_u1_con;
-use mysqltest_db1;
-CREATE TRIGGER t1_trg_after_delete AFTER DELETE ON t1
-FOR EACH ROW
-SET @mysqltest_var = 'Hello, world!';
-connection default;
-use mysqltest_db1;
-GRANT UPDATE ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-GRANT UPDATE ON mysqltest_db1.t2 TO mysqltest_u1@localhost;
-GRANT UPDATE(col) ON mysqltest_db1.t3 TO mysqltest_u1@localhost;
-GRANT UPDATE(col) ON mysqltest_db1.t4 TO mysqltest_u1@localhost;
-connection bug15166_u1_con;
-use mysqltest_db1;
-CREATE TRIGGER t1_trg_err_1 BEFORE INSERT ON t1
-FOR EACH ROW
-SET @mysqltest_var = NEW.col;
-DROP TRIGGER t1_trg_err_1;
-CREATE TRIGGER t1_trg_err_2 BEFORE DELETE ON t1
-FOR EACH ROW
-SET @mysqltest_var = OLD.col;
-DROP TRIGGER t1_trg_err_2;
-CREATE TRIGGER t2_trg_before_insert BEFORE INSERT ON t2
-FOR EACH ROW
-SET NEW.col = 't2_trg_before_insert';
-CREATE TRIGGER t3_trg_err_1 BEFORE INSERT ON t3
-FOR EACH ROW
-SET @mysqltest_var = NEW.col;
-DROP TRIGGER t3_trg_err_1;
-CREATE TRIGGER t3_trg_err_2 BEFORE DELETE ON t3
-FOR EACH ROW
-SET @mysqltest_var = OLD.col;
-DROP TRIGGER t3_trg_err_2;
-CREATE TRIGGER t4_trg_before_insert BEFORE INSERT ON t4
-FOR EACH ROW
-SET NEW.col = 't4_trg_before_insert';
-connection default;
-use mysqltest_db1;
-REVOKE UPDATE ON mysqltest_db1.t1 FROM mysqltest_u1@localhost;
-REVOKE UPDATE ON mysqltest_db1.t2 FROM mysqltest_u1@localhost;
-GRANT SELECT ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-GRANT SELECT ON mysqltest_db1.t2 TO mysqltest_u1@localhost;
-REVOKE UPDATE(col) ON mysqltest_db1.t3 FROM mysqltest_u1@localhost;
-REVOKE UPDATE(col) ON mysqltest_db1.t4 FROM mysqltest_u1@localhost;
-GRANT SELECT(col) on mysqltest_db1.t3 TO mysqltest_u1@localhost;
-GRANT SELECT(col) on mysqltest_db1.t4 TO mysqltest_u1@localhost;
-connection bug15166_u1_con;
-use mysqltest_db1;
-CREATE TRIGGER t1_trg_after_insert AFTER INSERT ON t1
-FOR EACH ROW
-SET @mysqltest_var = NEW.col;
-CREATE TRIGGER t1_trg_after_update AFTER UPDATE ON t1
-FOR EACH ROW
-SET @mysqltest_var = OLD.col;
-CREATE TRIGGER t2_trg_err_1 BEFORE UPDATE ON t2
-FOR EACH ROW
-SET NEW.col = 't2_trg_err_1';
-DROP TRIGGER t2_trg_err_1;
-CREATE TRIGGER t2_trg_err_2 BEFORE UPDATE ON t2
-FOR EACH ROW
-SET NEW.col = CONCAT(OLD.col, '(updated)');
-DROP TRIGGER t2_trg_err_2;
-CREATE TRIGGER t3_trg_after_insert AFTER INSERT ON t3
-FOR EACH ROW
-SET @mysqltest_var = NEW.col;
-CREATE TRIGGER t3_trg_after_update AFTER UPDATE ON t3
-FOR EACH ROW
-SET @mysqltest_var = OLD.col;
-CREATE TRIGGER t4_trg_err_1 BEFORE UPDATE ON t4
-FOR EACH ROW
-SET NEW.col = 't4_trg_err_1';
-DROP TRIGGER t4_trg_err_1;
-CREATE TRIGGER t4_trg_err_2 BEFORE UPDATE ON t4
-FOR EACH ROW
-SET NEW.col = CONCAT(OLD.col, '(updated)');
-DROP TRIGGER t4_trg_err_2;
-connection default;
-use mysqltest_db1;
-REVOKE SELECT ON mysqltest_db1.t1 FROM mysqltest_u1@localhost;
-REVOKE SELECT ON mysqltest_db1.t2 FROM mysqltest_u1@localhost;
-GRANT UPDATE ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-GRANT UPDATE ON mysqltest_db1.t2 TO mysqltest_u1@localhost;
-REVOKE SELECT(col) ON mysqltest_db1.t3 FROM mysqltest_u1@localhost;
-REVOKE SELECT(col) ON mysqltest_db1.t4 FROM mysqltest_u1@localhost;
-GRANT UPDATE(col) ON mysqltest_db1.t3 TO mysqltest_u1@localhost;
-GRANT UPDATE(col) ON mysqltest_db1.t4 TO mysqltest_u1@localhost;
-INSERT INTO t1 VALUES('line1');
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for column 'col' in table 't1'
-SELECT * FROM t1;
-col
-line1
-SELECT @mysqltest_var;
-@mysqltest_var
-NULL
-INSERT INTO t2 VALUES('line2');
-SELECT * FROM t2;
-col
-t2_trg_before_insert
-INSERT INTO t3 VALUES('t3_line1');
-ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for column 'col' in table 't3'
-SELECT * FROM t3;
-col
-t3_line1
-SELECT @mysqltest_var;
-@mysqltest_var
-NULL
-INSERT INTO t4 VALUES('t4_line2');
-SELECT * FROM t4;
-col
-t4_trg_before_insert
-connection default;
-use mysqltest_db1;
-REVOKE UPDATE ON mysqltest_db1.t1 FROM mysqltest_u1@localhost;
-REVOKE UPDATE ON mysqltest_db1.t2 FROM mysqltest_u1@localhost;
-GRANT SELECT ON mysqltest_db1.t1 TO mysqltest_u1@localhost;
-GRANT SELECT ON mysqltest_db1.t2 TO mysqltest_u1@localhost;
-REVOKE UPDATE(col) ON mysqltest_db1.t3 FROM mysqltest_u1@localhost;
-REVOKE UPDATE(col) ON mysqltest_db1.t4 FROM mysqltest_u1@localhost;
-GRANT SELECT(col) ON mysqltest_db1.t3 TO mysqltest_u1@localhost;
-GRANT SELECT(col) ON mysqltest_db1.t4 TO mysqltest_u1@localhost;
-INSERT INTO t1 VALUES('line3');
-SELECT * FROM t1;
-col
-line1
-line3
-SELECT @mysqltest_var;
-@mysqltest_var
-line3
-INSERT INTO t2 VALUES('line4');
-ERROR 42000: UPDATE command denied to user 'mysqltest_u1'@'localhost' for column 'col' in table 't2'
-SELECT * FROM t2;
-col
-t2_trg_before_insert
-INSERT INTO t3 VALUES('t3_line2');
-SELECT * FROM t3;
-col
-t3_line1
-t3_line2
-SELECT @mysqltest_var;
-@mysqltest_var
-t3_line2
-INSERT INTO t4 VALUES('t4_line2');
-ERROR 42000: UPDATE command denied to user 'mysqltest_u1'@'localhost' for column 'col' in table 't4'
-SELECT * FROM t4;
-col
-t4_trg_before_insert
-DELETE FROM t1;
-SELECT @mysqltest_var;
-@mysqltest_var
-Hello, world!
-DROP USER mysqltest_u1@localhost;
-DROP DATABASE mysqltest_db1;
-DELETE FROM mysql.user WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.db WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.tables_priv WHERE User LIKE 'mysqltest_%';
-DELETE FROM mysql.columns_priv WHERE User LIKE 'mysqltest_%';
-FLUSH PRIVILEGES;
-DROP DATABASE IF EXISTS mysqltest_db1;
-CREATE DATABASE mysqltest_db1;
-USE mysqltest_db1;
-CREATE TABLE t1 (i1 INT);
-CREATE TABLE t2 (i1 INT);
-CREATE USER mysqltest_dfn@localhost;
-CREATE USER mysqltest_inv@localhost;
-GRANT EXECUTE, CREATE ROUTINE, TRIGGER ON *.* TO mysqltest_dfn@localhost;
-GRANT INSERT ON mysqltest_db1.* TO mysqltest_inv@localhost;
-connect definer,localhost,mysqltest_dfn,,mysqltest_db1;
-connect invoker,localhost,mysqltest_inv,,mysqltest_db1;
-connection definer;
-CREATE PROCEDURE p1(OUT i INT) DETERMINISTIC NO SQL SET i = 3;
-CREATE PROCEDURE p2(INOUT i INT) DETERMINISTIC NO SQL SET i = i * 5;
-connection definer;
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-CALL p1(NEW.i1);
-CREATE TRIGGER t2_bi BEFORE INSERT ON t2 FOR EACH ROW
-CALL p2(NEW.i1);
-connection invoker;
-INSERT INTO t1 VALUES (7);
-ERROR 42000: UPDATE command denied to user 'mysqltest_dfn'@'localhost' for column 'i1' in table 't1'
-INSERT INTO t2 VALUES (11);
-ERROR 42000: SELECT, UPDATE command denied to user 'mysqltest_dfn'@'localhost' for column 'i1' in table 't2'
-connection definer;
-DROP TRIGGER t2_bi;
-DROP TRIGGER t1_bi;
-connection default;
-GRANT SELECT ON mysqltest_db1.* TO mysqltest_dfn@localhost;
-connection definer;
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-CALL p1(NEW.i1);
-CREATE TRIGGER t2_bi BEFORE INSERT ON t2 FOR EACH ROW
-CALL p2(NEW.i1);
-connection invoker;
-INSERT INTO t1 VALUES (13);
-ERROR 42000: UPDATE command denied to user 'mysqltest_dfn'@'localhost' for column 'i1' in table 't1'
-INSERT INTO t2 VALUES (17);
-ERROR 42000: UPDATE command denied to user 'mysqltest_dfn'@'localhost' for column 'i1' in table 't2'
-connection default;
-REVOKE SELECT ON mysqltest_db1.* FROM mysqltest_dfn@localhost;
-connection definer;
-DROP TRIGGER t2_bi;
-DROP TRIGGER t1_bi;
-connection default;
-GRANT UPDATE ON mysqltest_db1.* TO mysqltest_dfn@localhost;
-connection definer;
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-CALL p1(NEW.i1);
-CREATE TRIGGER t2_bi BEFORE INSERT ON t2 FOR EACH ROW
-CALL p2(NEW.i1);
-connection invoker;
-INSERT INTO t1 VALUES (19);
-INSERT INTO t2 VALUES (23);
-ERROR 42000: SELECT command denied to user 'mysqltest_dfn'@'localhost' for column 'i1' in table 't2'
-connection default;
-REVOKE UPDATE ON mysqltest_db1.* FROM mysqltest_dfn@localhost;
-connection definer;
-DROP TRIGGER t2_bi;
-DROP TRIGGER t1_bi;
-connection default;
-GRANT SELECT, UPDATE ON mysqltest_db1.* TO mysqltest_dfn@localhost;
-connection definer;
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-CALL p1(NEW.i1);
-CREATE TRIGGER t2_bi BEFORE INSERT ON t2 FOR EACH ROW
-CALL p2(NEW.i1);
-connection invoker;
-INSERT INTO t1 VALUES (29);
-INSERT INTO t2 VALUES (31);
-connection default;
-REVOKE SELECT, UPDATE ON mysqltest_db1.* FROM mysqltest_dfn@localhost;
-connection definer;
-DROP TRIGGER t2_bi;
-DROP TRIGGER t1_bi;
-connection default;
-DROP PROCEDURE p2;
-DROP PROCEDURE p1;
-connection default;
-GRANT UPDATE ON mysqltest_db1.* TO mysqltest_dfn@localhost;
-connection definer;
-CREATE PROCEDURE p1(OUT i INT) DETERMINISTIC NO SQL SET i = 37;
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-CALL p1(NEW.i1);
-connection invoker;
-INSERT INTO t1 VALUES (41);
-connection definer;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1(IN i INT) DETERMINISTIC NO SQL SET @v1 = i + 43;
-connection invoker;
-INSERT INTO t1 VALUES (47);
-ERROR 42000: SELECT command denied to user 'mysqltest_dfn'@'localhost' for column 'i1' in table 't1'
-connection definer;
-DROP PROCEDURE p1;
-CREATE PROCEDURE p1(INOUT i INT) DETERMINISTIC NO SQL SET i = i + 51;
-connection invoker;
-INSERT INTO t1 VALUES (53);
-ERROR 42000: SELECT command denied to user 'mysqltest_dfn'@'localhost' for column 'i1' in table 't1'
-connection default;
-DROP PROCEDURE p1;
-REVOKE UPDATE ON mysqltest_db1.* FROM mysqltest_dfn@localhost;
-connection definer;
-DROP TRIGGER t1_bi;
-disconnect definer;
-disconnect invoker;
-connection default;
-DROP USER mysqltest_inv@localhost;
-DROP USER mysqltest_dfn@localhost;
-DROP TABLE t2;
-DROP TABLE t1;
-DROP DATABASE mysqltest_db1;
-USE test;
-CREATE TABLE t1 (id INTEGER);
-CREATE TABLE t2 (id INTEGER);
-INSERT INTO t2 VALUES (1),(2);
-CREATE TRIGGER t1_test AFTER INSERT ON t1 FOR EACH ROW
-INSERT INTO t2 VALUES (new.id);
-CONNECT rl_holder, localhost, root,,;
-CONNECT rl_acquirer, localhost, root,,;
-CONNECT wl_acquirer, localhost, root,,;
-CONNECT rl_contender, localhost, root,,;
-connection rl_holder;
-SELECT GET_LOCK('B26162',120);
-GET_LOCK('B26162',120)
-1
-connection rl_acquirer;
-SELECT 'rl_acquirer', GET_LOCK('B26162',120), id FROM t2 WHERE id = 1;
-connection wl_acquirer;
-SET SESSION LOW_PRIORITY_UPDATES=1;
-SET GLOBAL LOW_PRIORITY_UPDATES=1;
-INSERT INTO t1 VALUES (5);
-connection rl_contender;
-SELECT 'rl_contender', id FROM t2 WHERE id > 1;
-connection rl_holder;
-SELECT RELEASE_LOCK('B26162');
-RELEASE_LOCK('B26162')
-1
-connection rl_acquirer;
-rl_acquirer GET_LOCK('B26162',120) id
-rl_acquirer 1 1
-SELECT RELEASE_LOCK('B26162');
-RELEASE_LOCK('B26162')
-1
-connection wl_acquirer;
-connection rl_contender;
-rl_contender id
-rl_contender 2
-connection default;
-disconnect rl_acquirer;
-disconnect wl_acquirer;
-disconnect rl_contender;
-disconnect rl_holder;
-DROP TRIGGER t1_test;
-DROP TABLE t1,t2;
-SET SESSION LOW_PRIORITY_UPDATES=DEFAULT;
-SET GLOBAL LOW_PRIORITY_UPDATES=DEFAULT;
-End of 5.0 tests.
-drop table if exists t1;
-create table t1 (i int);
-connect flush,localhost,root,,test,,;
-connection default;
-lock tables t1 write;
-connection flush;
-flush tables with read lock;;
-connection default;
-create trigger t1_bi before insert on t1 for each row begin end;
-unlock tables;
-connection flush;
-unlock tables;
-connection default;
-select * from t1;
-i
-drop table t1;
-disconnect flush;
-CREATE DATABASE db1;
-CREATE TABLE db1.t1 (a char(30)) ENGINE=MEMORY;
-CREATE TRIGGER db1.trg AFTER INSERT ON db1.t1 FOR EACH ROW
-INSERT INTO db1.t1 VALUES('Some very sensitive data goes here');
-CREATE USER 'no_rights'@'localhost';
-REVOKE ALL ON *.* FROM 'no_rights'@'localhost';
-FLUSH PRIVILEGES;
-connect con1,localhost,no_rights,,;
-SELECT trigger_name FROM INFORMATION_SCHEMA.TRIGGERS
-WHERE trigger_schema = 'db1';
-trigger_name
-SHOW CREATE TRIGGER db1.trg;
-ERROR 42000: Access denied; you need (at least one of) the TRIGGER privilege(s) for this operation
-connection default;
-disconnect con1;
-DROP USER 'no_rights'@'localhost';
-DROP DATABASE db1;
-DROP DATABASE IF EXISTS mysqltest_db1;
-CREATE DATABASE mysqltest_db1;
-USE mysqltest_db1;
-CREATE USER mysqltest_u1@localhost;
-GRANT ALL ON mysqltest_db1.* TO mysqltest_u1@localhost;
-connect con1,localhost,mysqltest_u1,,mysqltest_db1;
-CREATE TABLE t1 (
-a1 int,
-a2 int
-);
-INSERT INTO t1 VALUES (1, 20);
-CREATE TRIGGER mysqltest_db1.upd_t1
-BEFORE UPDATE ON t1 FOR EACH ROW SET new.a2 = 200;
-CREATE TABLE t2 (
-a1 int
-);
-INSERT INTO t2 VALUES (2);
-connection default;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
-UPDATE IGNORE t1, t2 SET t1.a1 = 2, t2.a1 = 3 WHERE t1.a1 = 1 AND t2.a1 = 2;
-ERROR 42000: TRIGGER command denied to user 'mysqltest_u1'@'localhost' for table 't1'
-DROP DATABASE mysqltest_db1;
-DROP USER mysqltest_u1@localhost;
-disconnect con1;
-connection default;
-USE test;
-End of 5.1 tests.
diff --git a/mysql-test/r/trigger_null-8605.result b/mysql-test/r/trigger_null-8605.result
deleted file mode 100644
index 10315988708..00000000000
--- a/mysql-test/r/trigger_null-8605.result
+++ /dev/null
@@ -1,366 +0,0 @@
-set sql_mode=strict_all_tables;
-set time_zone="+02:00";
-create table t1 (a int not null, b int, c int);
-create trigger trgi before insert on t1 for each row set new.a=if(new.a is null,new.b,new.c);
-insert t1 values (10, NULL, 1);
-insert t1 values (NULL, 2, NULL);
-insert t1 values (NULL, NULL, 20);
-ERROR 23000: Column 'a' cannot be null
-insert t1 values (1, 2, NULL);
-ERROR 23000: Column 'a' cannot be null
-select * from t1;
-a b c
-1 NULL 1
-2 2 NULL
-insert ignore t1 values (NULL, NULL, 30);
-Warnings:
-Warning 1048 Column 'a' cannot be null
-insert ignore t1 values (1, 3, NULL);
-Warnings:
-Warning 1048 Column 'a' cannot be null
-select * from t1;
-a b c
-1 NULL 1
-2 2 NULL
-0 NULL 30
-0 3 NULL
-insert t1 set a=NULL, b=4, c=a;
-select * from t1;
-a b c
-1 NULL 1
-2 2 NULL
-0 NULL 30
-0 3 NULL
-4 4 NULL
-delete from t1;
-insert t1 (a,c) values (10, 1);
-insert t1 (a,b) values (NULL, 2);
-insert t1 (a,c) values (NULL, 20);
-ERROR 23000: Column 'a' cannot be null
-insert t1 (a,b) values (1, 2);
-ERROR 23000: Column 'a' cannot be null
-select * from t1;
-a b c
-1 NULL 1
-2 2 NULL
-delete from t1;
-insert t1 select 10, NULL, 1;
-insert t1 select NULL, 2, NULL;
-insert t1 select NULL, NULL, 20;
-ERROR 23000: Column 'a' cannot be null
-insert t1 select 1, 2, NULL;
-ERROR 23000: Column 'a' cannot be null
-insert ignore t1 select NULL, NULL, 30;
-Warnings:
-Warning 1048 Column 'a' cannot be null
-insert ignore t1 select 1, 3, NULL;
-Warnings:
-Warning 1048 Column 'a' cannot be null
-select * from t1;
-a b c
-1 NULL 1
-2 2 NULL
-0 NULL 30
-0 3 NULL
-delete from t1;
-insert delayed t1 values (10, NULL, 1);
-insert delayed t1 values (NULL, 2, NULL);
-insert delayed t1 values (NULL, NULL, 20);
-ERROR 23000: Column 'a' cannot be null
-insert delayed t1 values (1, 2, NULL);
-ERROR 23000: Column 'a' cannot be null
-select * from t1;
-a b c
-1 NULL 1
-2 2 NULL
-insert delayed ignore t1 values (NULL, NULL, 30);
-Warnings:
-Warning 1048 Column 'a' cannot be null
-insert delayed ignore t1 values (1, 3, NULL);
-Warnings:
-Warning 1048 Column 'a' cannot be null
-flush table t1;
-select * from t1;
-a b c
-1 NULL 1
-2 2 NULL
-0 NULL 30
-0 3 NULL
-delete from t1;
-alter table t1 add primary key (a);
-create trigger trgu before update on t1 for each row set new.a=if(new.a is null,new.b,new.c);
-insert t1 values (100,100,100), (200,200,200), (300,300,300);
-insert t1 values (100,100,100) on duplicate key update a=10, b=NULL, c=1;
-insert t1 values (200,200,200) on duplicate key update a=NULL, b=2, c=NULL;
-insert t1 values (300,300,300) on duplicate key update a=NULL, b=NULL, c=20;
-ERROR 23000: Column 'a' cannot be null
-insert t1 values (300,300,300) on duplicate key update a=1, b=2, c=NULL;
-ERROR 23000: Column 'a' cannot be null
-select * from t1;
-a b c
-1 NULL 1
-2 2 NULL
-300 300 300
-delete from t1;
-insert t1 values (1,100,1), (2,200,2);
-replace t1 values (10, NULL, 1);
-replace t1 values (NULL, 2, NULL);
-replace t1 values (NULL, NULL, 30);
-ERROR 23000: Column 'a' cannot be null
-replace t1 values (1, 3, NULL);
-ERROR 23000: Column 'a' cannot be null
-select * from t1;
-a b c
-1 NULL 1
-2 2 NULL
-delete from t1;
-insert t1 values (100,100,100), (200,200,200), (300,300,300);
-update t1 set a=10, b=NULL, c=1 where a=100;
-update t1 set a=NULL, b=2, c=NULL where a=200;
-update t1 set a=NULL, b=NULL, c=20 where a=300;
-ERROR 23000: Column 'a' cannot be null
-update t1 set a=1, b=2, c=NULL where a=300;
-ERROR 23000: Column 'a' cannot be null
-select * from t1;
-a b c
-1 NULL 1
-2 2 NULL
-300 300 300
-set statement sql_mode='' for update t1 set a=1, b=2, c=NULL where a > 1;
-ERROR 23000: Duplicate entry '0' for key 'PRIMARY'
-select * from t1;
-a b c
-1 NULL 1
-0 2 NULL
-300 300 300
-update t1 set a=NULL, b=4, c=a where a=300;
-select * from t1;
-a b c
-1 NULL 1
-0 2 NULL
-4 4 NULL
-delete from t1;
-create table t2 (d int, e int);
-insert t1 values (100,100,100), (200,200,200), (300,300,300);
-insert t2 select a,b from t1;
-update t1,t2 set a=10, b=NULL, c=1 where b=d and e=100;
-update t1,t2 set a=NULL, b=2, c=NULL where b=d and e=200;
-update t1,t2 set a=NULL, b=NULL, c=20 where b=d and e=300;
-ERROR 23000: Column 'a' cannot be null
-update t1,t2 set a=1, b=2, c=NULL where b=d and e=300;
-ERROR 23000: Column 'a' cannot be null
-select * from t1;
-a b c
-1 NULL 1
-2 2 NULL
-300 300 300
-update t1,t2 set a=NULL, b=4, c=a where b=d and e=300;
-select * from t1;
-a b c
-1 NULL 1
-2 2 NULL
-4 4 300
-delete from t1;
-insert t2 values (2,2);
-create view v1 as select * from t1, t2 where d=2;
-insert v1 (a,c) values (10, 1);
-insert v1 (a,b) values (NULL, 2);
-insert v1 (a,c) values (NULL, 20);
-ERROR 23000: Column 'a' cannot be null
-insert v1 (a,b) values (1, 2);
-ERROR 23000: Column 'a' cannot be null
-select * from v1;
-a b c d e
-1 NULL 1 2 2
-2 2 NULL 2 2
-delete from t1;
-drop view v1;
-drop table t2;
-load data infile 'mdev8605.txt' into table t1 fields terminated by ',';
-ERROR 23000: Column 'a' cannot be null
-select * from t1;
-a b c
-1 NULL 1
-2 2 NULL
-drop table t1;
-create table t1 (a timestamp, b int auto_increment primary key);
-create trigger trgi before insert on t1 for each row set new.a=if(new.a is null, '2000-10-20 10:20:30', NULL);
-set statement timestamp=777777777 for insert t1 (a) values (NULL);
-set statement timestamp=888888888 for insert t1 (a) values ('1999-12-11 10:9:8');
-select b, a, unix_timestamp(a) from t1;
-b a unix_timestamp(a)
-1 2000-10-20 10:20:30 972030030
-2 1998-03-03 03:34:48 888888888
-set statement timestamp=999999999 for update t1 set b=3 where b=2;
-select b, a, unix_timestamp(a) from t1;
-b a unix_timestamp(a)
-1 2000-10-20 10:20:30 972030030
-3 2001-09-09 03:46:39 999999999
-create trigger trgu before update on t1 for each row set new.a='2011-11-11 11:11:11';
-update t1 set b=4 where b=3;
-select b, a, unix_timestamp(a) from t1;
-b a unix_timestamp(a)
-1 2000-10-20 10:20:30 972030030
-4 2011-11-11 11:11:11 1321002671
-drop table t1;
-create table t1 (a int auto_increment primary key);
-create trigger trgi before insert on t1 for each row set new.a=if(new.a is null, 5, NULL);
-insert t1 values (NULL);
-insert t1 values (10);
-select a from t1;
-a
-5
-6
-drop table t1;
-create table t1 (a int, b int, c int);
-create trigger trgi before insert on t1 for each row set new.a=if(new.a is null,new.b,new.c);
-insert t1 values (10, NULL, 1);
-insert t1 values (NULL, 2, NULL);
-insert t1 values (NULL, NULL, 20);
-insert t1 values (1, 2, NULL);
-select * from t1;
-a b c
-1 NULL 1
-2 2 NULL
-NULL NULL 20
-NULL 2 NULL
-drop table t1;
-create table t1 (a1 tinyint not null, a2 timestamp not null,
-a3 tinyint not null auto_increment primary key,
-b tinyint, c int not null);
-create trigger trgi before insert on t1 for each row
-begin
-if new.b=1 then set new.a1=if(new.c,new.c,null); end if;
-if new.b=2 then set new.a2=if(new.c,new.c,null); end if;
-if new.b=3 then set new.a3=if(new.c,new.c,null); end if;
-end|
-set statement timestamp=777777777 for
-load data infile 'sep8605.txt' into table t1 fields terminated by ',';
-ERROR 23000: Column 'a1' cannot be null
-select * from t1;
-a1 a2 a3 b c
-1 2010-11-12 01:02:03 10 0 0
-2 2010-11-12 01:02:03 11 1 2
-3 1994-08-25 03:22:57 12 0 0
-4 2000-09-08 07:06:05 13 2 908070605
-5 1994-08-25 03:22:57 14 2 0
-6 2010-11-12 01:02:03 15 0 0
-7 2010-11-12 01:02:03 20 3 20
-8 2010-11-12 01:02:03 21 3 0
-delete from t1;
-set statement timestamp=777777777 for
-load data infile 'sep8605.txt' into table t1 fields terminated by ','
- (@a,a2,a3,b,c) set a1=100-@a;
-ERROR 23000: Column 'a1' cannot be null
-select 100-a1,a2,a3,b,c from t1;
-100-a1 a2 a3 b c
-1 2010-11-12 01:02:03 10 0 0
-98 2010-11-12 01:02:03 11 1 2
-3 1994-08-25 03:22:57 12 0 0
-4 2000-09-08 07:06:05 13 2 908070605
-5 1994-08-25 03:22:57 14 2 0
-6 2010-11-12 01:02:03 22 0 0
-7 2010-11-12 01:02:03 20 3 20
-8 2010-11-12 01:02:03 23 3 0
-delete from t1;
-set statement timestamp=777777777 for
-load data infile 'fix8605.txt' into table t1 fields terminated by '';
-ERROR 23000: Column 'a1' cannot be null
-select * from t1;
-a1 a2 a3 b c
-1 2010-11-12 01:02:03 10 0 0
-5 1994-08-25 03:22:57 14 2 0
-8 2010-11-12 01:02:03 24 3 0
-delete from t1;
-set statement timestamp=777777777 for
-load xml infile 'xml8605.txt' into table t1 rows identified by '<row>';
-ERROR 23000: Column 'a1' cannot be null
-select * from t1;
-a1 a2 a3 b c
-1 2010-11-12 01:02:03 10 0 0
-2 2010-11-12 01:02:03 11 1 2
-3 1994-08-25 03:22:57 12 0 0
-4 2000-09-08 07:06:05 13 2 908070605
-5 1994-08-25 03:22:57 14 2 0
-6 2010-11-12 01:02:03 25 0 0
-7 2010-11-12 01:02:03 20 3 20
-8 2010-11-12 01:02:03 26 3 0
-drop table t1;
-create table t1 (a int not null default 5, b int, c int);
-create trigger trgi before insert on t1 for each row set new.b=new.c;
-insert t1 values (DEFAULT,2,1);
-select * from t1;
-a b c
-5 1 1
-drop table t1;
-create table t1 (a int not null, b int not null default 5, c int);
-create trigger trgi before insert on t1 for each row
-begin
-if new.c=1 then set new.a=1, new.b=1; end if;
-if new.c=2 then set new.a=NULL, new.b=NULL; end if;
-if new.c=3 then set new.a=2; end if;
-end|
-insert t1 values (9, 9, 1);
-insert t1 values (9, 9, 2);
-ERROR 23000: Column 'a' cannot be null
-insert t1 (a,c) values (9, 3);
-select * from t1;
-a b c
-1 1 1
-2 5 3
-drop table t1;
-set session sql_mode ='no_auto_value_on_zero';
-create table t1 (id int unsigned auto_increment primary key);
-insert t1 values (0);
-select * from t1;
-id
-0
-delete from t1;
-create trigger t1_bi before insert on t1 for each row begin end;
-insert t1 values (0);
-insert t1 (id) values (0);
-ERROR 23000: Duplicate entry '0' for key 'PRIMARY'
-drop table t1;
-create table t1 (a int not null, b int);
-create trigger trgi before update on t1 for each row do 1;
-insert t1 values (1,1),(2,2),(3,3),(1,4);
-create table t2 select a as c, b as d from t1;
-update t1 set a=(select count(c) from t2 where c+1=a+1 group by a);
-select * from t1;
-a b
-2 1
-1 2
-1 3
-2 4
-drop table t1, t2;
-create table t1 (a int not null);
-create table t2 (f1 int unsigned not null, f2 int);
-insert into t2 values (1, null);
-create trigger tr1 before update on t1 for each row do 1;
-create trigger tr2 after update on t2 for each row update t1 set a=new.f2;
-update t2 set f2=1 where f1=1;
-drop table t1, t2;
-create table t1 (a int not null, primary key (a));
-insert into t1 (a) values (1);
-show columns from t1;
-Field Type Null Key Default Extra
-a int(11) NO PRI NULL
-create trigger t1bu before update on t1 for each row begin end;
-show columns from t1;
-Field Type Null Key Default Extra
-a int(11) NO PRI NULL
-insert into t1 (a) values (3);
-show columns from t1;
-Field Type Null Key Default Extra
-a int(11) NO PRI NULL
-drop table t1;
-create table t1 (
-pk int primary key,
-i int,
-v1 int as (i) virtual,
-v2 int as (i) virtual
-);
-create trigger tr before update on t1 for each row set @a = 1;
-insert into t1 (pk, i) values (null, null);
-ERROR 23000: Column 'pk' cannot be null
-drop table t1;
diff --git a/mysql-test/r/trigger_wl3253.result b/mysql-test/r/trigger_wl3253.result
deleted file mode 100644
index bd2d250cb2f..00000000000
--- a/mysql-test/r/trigger_wl3253.result
+++ /dev/null
@@ -1,502 +0,0 @@
-#
-# WL#3253: multiple triggers per table
-#
-SET @binlog_format_saved = @@binlog_format;
-SET binlog_format=ROW;
-SET time_zone='+00:00';
-#
-# Test 1.
-# Check that the sequence of triggers for the same combination
-# of event type/action type can be created for a table
-# and is fired consequently in the order of its creation
-# during statement execution.
-# In this test we check BEFORE triggers.
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT, b INT AUTO_INCREMENT PRIMARY KEY);
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 (a) VALUES (NEW.a);
-CREATE TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 (a) VALUES (NEW.a + 100);
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t2 ORDER BY b;
-a b
-1 1
-101 2
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Test 2.
-# Check that the sequence of triggers for the same combination
-# of event type/action type can be created for a table
-# and is fired consequently in the order of its creation
-# during statement execution.
-# In this test we check AFTER triggers.
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT, b INT AUTO_INCREMENT PRIMARY KEY);
-CREATE TRIGGER tr1_bi AFTER INSERT ON t1 FOR EACH ROW INSERT INTO t2 (a) VALUES (NEW.a);
-CREATE TRIGGER tr2_bi AFTER INSERT ON t1 FOR EACH ROW INSERT INTO t2 (a) VALUES (NEW.a + 100);
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t2 ORDER BY b;
-a b
-1 1
-101 2
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Test 3.
-# Check that the sequences of triggers for the different event types
-# can be created for a table and are fired consequently
-# in the order of its creation during statement execution.
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT, b INT AUTO_INCREMENT PRIMARY KEY);
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 (a) VALUES (NEW.a);
-CREATE TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 (a) VALUES (NEW.a + 100);
-CREATE TRIGGER tr1_bu BEFORE UPDATE ON t1 FOR EACH ROW INSERT INTO t2 (a) VALUES (NEW.a);
-CREATE TRIGGER tr2_bu BEFORE UPDATE ON t1 FOR EACH ROW INSERT INTO t2 (a) VALUES (NEW.a + 300);
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t2 ORDER BY b;
-a b
-1 1
-101 2
-UPDATE t1 SET a = 5;
-SELECT * FROM t2 ORDER BY b;
-a b
-1 1
-101 2
-5 3
-305 4
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Test 4.
-# Check that every new created trigger has unique action_order value
-# started from 1 and NOT NULL value for creation timestamp.
-#
-CREATE TABLE t1 (a INT);
-SET TIMESTAMP=UNIX_TIMESTAMP('2013-01-31 09:00:00');
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1;
-SET TIMESTAMP=UNIX_TIMESTAMP('2013-01-31 09:00:01');
-CREATE TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=2;
-SELECT trigger_name, created, action_order FROM information_schema.triggers WHERE trigger_schema='test';
-trigger_name created action_order
-tr1_bi 2013-01-31 09:00:00.00 1
-tr2_bi 2013-01-31 09:00:01.00 2
-DROP TABLE t1;
-SET TIMESTAMP=DEFAULT;
-#
-# Test 5.
-# Check that action_order attribute isn't shown
-# in the output of SHOW TRIGGERS and SHOW CREATE TRIGGER
-#
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1;
-SHOW TRIGGERS;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-tr1_bi INSERT t1 SET @a:=1 BEFORE # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_schema = 'test';
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def test tr1_bi INSERT def test t1 1 NULL SET @a:=1 ROW BEFORE NULL NULL OLD NEW # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE TRIGGER tr1_bi;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-tr1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1 latin1 latin1_swedish_ci latin1_swedish_ci #
-DROP TABLE t1;
-#
-# Test 6.
-# Check that action_order attribute is reused when trigger
-# are recreated.
-#
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1;
-SELECT trigger_name, action_order FROM information_schema.triggers WHERE trigger_schema='test';
-trigger_name action_order
-tr1_bi 1
-DROP TRIGGER tr1_bi;
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=2;
-SELECT trigger_name, action_order FROM information_schema.triggers WHERE trigger_schema='test';
-trigger_name action_order
-tr1_bi 1
-DROP TABLE t1;
-#
-# Test 7.
-# Check that it is possible to create several triggers with
-# the same value for creation timestamp.
-#
-CREATE TABLE t1 (a INT);
-SET TIMESTAMP=UNIX_TIMESTAMP('2013-01-31 09:00:01');
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1;
-CREATE TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=2;
-SELECT trigger_name, created, action_order FROM information_schema.triggers WHERE trigger_schema='test';
-trigger_name created action_order
-tr1_bi 2013-01-31 09:00:01.00 1
-tr2_bi 2013-01-31 09:00:01.00 2
-DROP TABLE t1;
-SET TIMESTAMP=DEFAULT;
-#
-# Test 8.
-# Check that SHOW CREATE TRIGGER outputs the CREATED attribute
-# and it is not NULL
-#
-CREATE TABLE t1 (a INT);
-SET TIMESTAMP=UNIX_TIMESTAMP('2013-01-31 09:00:01');
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1;
-SHOW CREATE TRIGGER tr1_bi;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-tr1_bi STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1 latin1 latin1_swedish_ci latin1_swedish_ci 2013-01-31 09:00:01.00
-DROP TABLE t1;
-SET TIMESTAMP=DEFAULT;
-#
-# Test 9.
-# Check that SHOW TRIGGERS outputs the CREATED attribute
-# and it is not NULL.
-#
-CREATE TABLE t1 (a INT);
-SET TIMESTAMP=UNIX_TIMESTAMP('2013-01-31 09:00:01');
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1;
-SHOW TRIGGERS;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-tr1_bi INSERT t1 SET @a:=1 BEFORE 2013-01-31 09:00:01.00 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_schema = 'test';
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def test tr1_bi INSERT def test t1 1 NULL SET @a:=1 ROW BEFORE NULL NULL OLD NEW 2013-01-31 09:00:01.00 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-DROP TABLE t1;
-SET TIMESTAMP=DEFAULT;
-#
-# Test 10.
-# Check that FOLLOWS clause is supported and works correctly.
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT, b INT AUTO_INCREMENT PRIMARY KEY);
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 (a) VALUES (NEW.a + 100);
-CREATE TRIGGER tr3_bi BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 (a) VALUES (NEW.a + 300);
-CREATE TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW FOLLOWS tr1_bi INSERT INTO t2 (a) VALUES (NEW.a + 200);
-SELECT trigger_name, action_order FROM information_schema.triggers WHERE trigger_schema='test';
-trigger_name action_order
-tr1_bi 1
-tr2_bi 2
-tr3_bi 3
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t2 ORDER BY b;
-a b
-101 1
-201 2
-301 3
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Test 11.
-# Check that PRECEDES clause is supported and works correctly.
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT, b INT AUTO_INCREMENT PRIMARY KEY);
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 (a) VALUES (NEW.a + 100);
-CREATE TRIGGER tr3_bi BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 (a) VALUES (NEW.a + 300);
-CREATE TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW PRECEDES tr3_bi INSERT INTO t2 (a) VALUES (NEW.a + 200);
-SELECT trigger_name, action_order FROM information_schema.triggers WHERE trigger_schema='test';
-trigger_name action_order
-tr1_bi 1
-tr2_bi 2
-tr3_bi 3
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t2 ORDER BY b;
-a b
-101 1
-201 2
-301 3
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Test 12.
-# Check that the PRECEDES works properly for the 1st trigger in the chain.
-#
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT, b INT AUTO_INCREMENT PRIMARY KEY);
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 (a) VALUES (NEW.a + 100);
-CREATE TRIGGER tr0_bi BEFORE INSERT ON t1 FOR EACH ROW PRECEDES tr1_bi INSERT INTO t2 (a) VALUES (NEW.a);
-SELECT trigger_name, action_order FROM information_schema.triggers WHERE trigger_schema='test';
-trigger_name action_order
-tr0_bi 1
-tr1_bi 2
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t2 ORDER BY b;
-a b
-1 1
-101 2
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# Test 13.
-# Check that error is reported if the FOLLOWS clause references to
-# non-existing trigger
-#
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1;
-CREATE TRIGGER tr3_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=3;
-CREATE TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW FOLLOWS tr0_bi SET @a:=2;
-ERROR HY000: Referenced trigger 'tr0_bi' for the given action time and event type does not exist
-SELECT trigger_name, action_order FROM information_schema.triggers WHERE trigger_schema='test';
-trigger_name action_order
-tr1_bi 1
-tr3_bi 2
-DROP TABLE t1;
-#
-# Test 14.
-# Check that error is reported if the PRECEDES clause references to
-# non-existing trigger
-#
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1;
-CREATE TRIGGER tr3_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=3;
-CREATE TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW PRECEDES tr0_bi SET @a:=2;
-ERROR HY000: Referenced trigger 'tr0_bi' for the given action time and event type does not exist
-SELECT trigger_name, action_order FROM information_schema.triggers WHERE trigger_schema='test';
-trigger_name action_order
-tr1_bi 1
-tr3_bi 2
-DROP TABLE t1;
-#
-# Test 15.
-# Check that action_order value is independent for each type of event
-# (INSERT/UPDATE/DELETE)
-#
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1;
-CREATE TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=2;
-CREATE TRIGGER tr1_bu BEFORE UPDATE ON t1 FOR EACH ROW SET @a:=3;
-SELECT trigger_name, action_order FROM information_schema.triggers WHERE trigger_schema='test';
-trigger_name action_order
-tr1_bi 1
-tr2_bi 2
-tr1_bu 1
-CREATE TRIGGER tr3_bi BEFORE INSERT ON t1 FOR EACH ROW FOLLOWS tr2_bi SET @a:=3;
-CREATE TRIGGER tr2_bu BEFORE UPDATE ON t1 FOR EACH ROW FOLLOWS tr1_bu SET @a:=3;
-SELECT trigger_name, action_order FROM information_schema.triggers WHERE trigger_schema='test';
-trigger_name action_order
-tr1_bi 1
-tr2_bi 2
-tr3_bi 3
-tr1_bu 1
-tr2_bu 2
-DROP TABLE t1;
-#
-# Test 16.
-# Check that the trigger in the clause FOLLOWS/PRECEDES can refences
-# only to the trigger for the same ACTION/TIMINMG
-#
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1;
-CREATE TRIGGER tr1_bu BEFORE UPDATE ON t1 FOR EACH ROW SET @a:=3;
-CREATE TRIGGER tr2_bu BEFORE UPDATE ON t1 FOR EACH ROW FOLLOWS tr1_bi SET @a:=3;
-ERROR HY000: Referenced trigger 'tr1_bi' for the given action time and event type does not exist
-CREATE TRIGGER tr2_au AFTER UPDATE ON t1 FOR EACH ROW FOLLOWS tr1_bi SET @a:=3;
-ERROR HY000: Referenced trigger 'tr1_bi' for the given action time and event type does not exist
-CREATE TRIGGER tr1_au AFTER UPDATE ON t1 FOR EACH ROW FOLLOWS tr1_bu SET @a:=3;
-ERROR HY000: Referenced trigger 'tr1_bu' for the given action time and event type does not exist
-CREATE TRIGGER tr1_ai AFTER INSERT ON t1 FOR EACH ROW FOLLOWS tr1_bi SET @a:=3;
-ERROR HY000: Referenced trigger 'tr1_bi' for the given action time and event type does not exist
-SHOW TRIGGERS;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-tr1_bi INSERT t1 SET @a:=1 BEFORE # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-tr1_bu UPDATE t1 SET @a:=3 BEFORE # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_schema = 'test';
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def test tr1_bi INSERT def test t1 1 NULL SET @a:=1 ROW BEFORE NULL NULL OLD NEW # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-def test tr1_bu UPDATE def test t1 1 NULL SET @a:=3 ROW BEFORE NULL NULL OLD NEW # STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-DROP TABLE t1;
-#
-# Test 17. Check that table's triggers are dumped correctly.
-#
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1;
-CREATE TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=2;
-CREATE TRIGGER tr1_bu BEFORE UPDATE ON t1 FOR EACH ROW SET @a:=3;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1 */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=2 */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER tr1_bu BEFORE UPDATE ON t1 FOR EACH ROW SET @a:=3 */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-DROP TABLE t1;
-#
-# Test 18. Check that table's triggers are dumped in right order
-# taking into account the PRECEDES/FOLLOWS clauses.
-#
-CREATE TABLE t1 (a INT);
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1;
-CREATE TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=2;
-CREATE TRIGGER tr0_bi BEFORE INSERT ON t1 FOR EACH ROW PRECEDES tr1_bi SET @a:=0;
-CREATE TRIGGER tr1_1_bi BEFORE INSERT ON t1 FOR EACH ROW FOLLOWS tr1_bi SET @a:=0;
-# Expected order of triggers in the dump is: tr0_bi, tr1_bi, tr1_1_bi, tr2_i.
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER tr0_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=0 */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1 */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER tr1_1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=0 */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = latin1 */ ;
-/*!50003 SET character_set_results = latin1 */ ;
-/*!50003 SET collation_connection = latin1_swedish_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=2 */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-DROP TABLE t1;
-#
-# Test 19. Check that table's triggers are dumped correctly in xml.
-#
-CREATE TABLE t1 (a INT);
-SET TIMESTAMP=UNIX_TIMESTAMP('2013-01-31 09:00:00');
-CREATE TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1;
-CREATE TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=2;
-CREATE TRIGGER tr1_bu BEFORE UPDATE ON t1 FOR EACH ROW SET @a:=3;
-SET TIMESTAMP=DEFAULT;
-<?xml version="1.0"?>
-<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<database name="test">
- <table_data name="t1">
- </table_data>
- <triggers name="t1">
- <trigger Trigger="tr1_bi" sql_mode="STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci" Created="2013-01-31 09:00:00.00">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1
-]]>
- </trigger>
- <trigger Trigger="tr2_bi" sql_mode="STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci" Created="2013-01-31 09:00:00.00">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` TRIGGER tr2_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=2
-]]>
- </trigger>
- <trigger Trigger="tr1_bu" sql_mode="STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" character_set_client="latin1" collation_connection="latin1_swedish_ci" Database_Collation="latin1_swedish_ci" Created="2013-01-31 09:00:00.00">
-<![CDATA[
-CREATE DEFINER=`root`@`localhost` TRIGGER tr1_bu BEFORE UPDATE ON t1 FOR EACH ROW SET @a:=3
-]]>
- </trigger>
- </triggers>
-</database>
-</mysqldump>
-DROP TABLE t1;
-#
-# Test 20. Check that the statement CHECK TABLE FOR UPGRADE outputs
-# the warnings for triggers created by a server without support for wl3253.
-#
-CREATE TABLE t1 (a INT);
-FLUSH TABLE t1;
-CHECK TABLE t1 FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-SHOW TRIGGERS;
-Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
-tr1_bi INSERT t1 SET @a:=1 BEFORE NULL NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-tr1_ai INSERT t1 SET @a:=2 AFTER NULL NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_schema = 'test';
-TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
-def test tr1_bi INSERT def test t1 1 NULL SET @a:=1 ROW BEFORE NULL NULL OLD NEW NULL NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-def test tr1_ai INSERT def test t1 1 NULL SET @a:=2 ROW AFTER NULL NULL OLD NEW NULL NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
-SHOW CREATE TRIGGER tr1_bi;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-tr1_bi NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER tr1_bi BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1 latin1 latin1_swedish_ci latin1_swedish_ci NULL
-SHOW CREATE TRIGGER tr1_ai;
-Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation Created
-tr1_ai NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` TRIGGER tr1_ai AFTER INSERT ON t1 FOR EACH ROW SET @a:=2 latin1 latin1_swedish_ci latin1_swedish_ci NULL
-DROP TABLE t1;
-SET binlog_format=@binlog_format_saved;
-# End of tests.
-#
diff --git a/mysql-test/r/true.require b/mysql-test/r/true.require
deleted file mode 100644
index 09aae1ed1d0..00000000000
--- a/mysql-test/r/true.require
+++ /dev/null
@@ -1,2 +0,0 @@
-TRUE
-1
diff --git a/mysql-test/r/truncate-stale-6500.result b/mysql-test/r/truncate-stale-6500.result
deleted file mode 100644
index b6222716953..00000000000
--- a/mysql-test/r/truncate-stale-6500.result
+++ /dev/null
@@ -1,33 +0,0 @@
-SET GLOBAL query_cache_size=1024*1024*8;
-CREATE TABLE `test` (
-`uniqueId` INT NOT NULL,
-`partitionId` INT NOT NULL,
-PRIMARY KEY (`uniqueId`,`partitionId`)
-) ENGINE=InnoDB PARTITION BY LIST (partitionId) (
-PARTITION p01 VALUES IN (1),
-PARTITION p02 VALUES IN (2)
-);
-INSERT INTO `test`(`uniqueId`,`partitionId`) VALUES(407237055, 2);
-SELECT * FROM `test`;
-uniqueId partitionId
-407237055 2
-#Confirms 1 row in partition 'p02'
-SELECT TABLE_NAME, PARTITION_NAME, TABLE_ROWS FROM information_schema.PARTITIONS where TABLE_NAME = 'test';
-TABLE_NAME PARTITION_NAME TABLE_ROWS
-test p01 0
-test p02 1
-ALTER TABLE `test` TRUNCATE PARTITION `p02`;
-#Confirms no more rows in partition 'p02'
-SELECT TABLE_NAME, PARTITION_NAME, TABLE_ROWS FROM information_schema.PARTITIONS where TABLE_NAME = 'test';
-TABLE_NAME PARTITION_NAME TABLE_ROWS
-test p01 0
-test p02 0
-#Before the patch, this returned the previously existing values.
-SELECT * FROM `test`;
-uniqueId partitionId
-SELECT SQL_CACHE * FROM `test`;
-uniqueId partitionId
-SELECT SQL_NO_CACHE * FROM `test`;
-uniqueId partitionId
-DROP TABLE test;
-SET GLOBAL query_cache_size=DEFAULT;
diff --git a/mysql-test/r/truncate.result b/mysql-test/r/truncate.result
deleted file mode 100644
index 48839f0eadb..00000000000
--- a/mysql-test/r/truncate.result
+++ /dev/null
@@ -1,161 +0,0 @@
-drop table if exists t1, t2;
-create table t1 (a integer, b integer,c1 CHAR(10));
-insert into t1 (a) values (1),(2);
-truncate table t1;
-select count(*) from t1;
-count(*)
-0
-insert into t1 values(1,2,"test");
-select count(*) from t1;
-count(*)
-1
-delete from t1;
-select * from t1;
-a b c1
-drop table t1;
-select count(*) from t1;
-ERROR 42S02: Table 'test.t1' doesn't exist
-create temporary table t1 (n int);
-insert into t1 values (1),(2),(3);
-truncate table t1;
-select * from t1;
-n
-drop table t1;
-truncate non_existing_table;
-ERROR 42S02: Table 'test.non_existing_table' doesn't exist
-create table t1 (a integer auto_increment primary key);
-insert into t1 (a) values (NULL),(NULL);
-truncate table t1;
-insert into t1 (a) values (NULL),(NULL);
-SELECT * from t1;
-a
-1
-2
-delete from t1;
-insert into t1 (a) values (NULL),(NULL);
-SELECT * from t1;
-a
-3
-4
-drop table t1;
-create temporary table t1 (a integer auto_increment primary key);
-insert into t1 (a) values (NULL),(NULL);
-truncate table t1;
-insert into t1 (a) values (NULL),(NULL);
-SELECT * from t1;
-a
-1
-2
-delete from t1;
-insert into t1 (a) values (NULL),(NULL);
-SELECT * from t1;
-a
-3
-4
-drop table t1;
-create table t1 (s1 int);
-insert into t1 (s1) values (1), (2), (3), (4), (5);
-create view v1 as select * from t1;
-truncate table v1;
-ERROR 42S02: Table 'test.v1' doesn't exist
-drop view v1;
-drop table t1;
-#
-# Bug#20667 - Truncate table fails for a write locked table
-#
-CREATE TABLE t1 (c1 INT);
-LOCK TABLE t1 WRITE;
-INSERT INTO t1 VALUES (1);
-SELECT * FROM t1;
-c1
-1
-TRUNCATE TABLE t1;
-SELECT * FROM t1;
-c1
-UNLOCK TABLES;
-LOCK TABLE t1 READ;
-TRUNCATE TABLE t1;
-ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
-UNLOCK TABLES;
-CREATE TABLE t2 (c1 INT);
-LOCK TABLE t2 WRITE;
-TRUNCATE TABLE t1;
-ERROR HY000: Table 't1' was not locked with LOCK TABLES
-UNLOCK TABLES;
-CREATE VIEW v1 AS SELECT t1.c1 FROM t1,t2 WHERE t1.c1 = t2.c1;
-INSERT INTO t1 VALUES (1), (2), (3);
-INSERT INTO t2 VALUES (1), (3), (4);
-SELECT * FROM v1;
-c1
-1
-3
-TRUNCATE v1;
-ERROR 42S02: Table 'test.v1' doesn't exist
-SELECT * FROM v1;
-c1
-1
-3
-LOCK TABLE t1 WRITE;
-SELECT * FROM v1;
-ERROR HY000: Table 'v1' was not locked with LOCK TABLES
-TRUNCATE v1;
-ERROR HY000: Table 'v1' was not locked with LOCK TABLES
-SELECT * FROM v1;
-ERROR HY000: Table 'v1' was not locked with LOCK TABLES
-UNLOCK TABLES;
-LOCK TABLE t1 WRITE, t2 WRITE;
-SELECT * FROM v1;
-ERROR HY000: Table 'v1' was not locked with LOCK TABLES
-TRUNCATE v1;
-ERROR HY000: Table 'v1' was not locked with LOCK TABLES
-SELECT * FROM v1;
-ERROR HY000: Table 'v1' was not locked with LOCK TABLES
-UNLOCK TABLES;
-LOCK TABLE v1 WRITE;
-SELECT * FROM v1;
-c1
-1
-3
-TRUNCATE v1;
-ERROR HY000: Table 'v1' was not locked with LOCK TABLES
-SELECT * FROM v1;
-c1
-1
-3
-UNLOCK TABLES;
-LOCK TABLE t1 WRITE, t2 WRITE, v1 WRITE;
-SELECT * FROM v1;
-c1
-1
-3
-TRUNCATE v1;
-ERROR HY000: Table 'v1' was not locked with LOCK TABLES
-SELECT * FROM v1;
-c1
-1
-3
-UNLOCK TABLES;
-DROP VIEW v1;
-DROP TABLE t1, t2;
-CREATE PROCEDURE p1() SET @a = 5;
-TRUNCATE p1;
-ERROR 42S02: Table 'test.p1' doesn't exist
-SHOW CREATE PROCEDURE p1;
-Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
-p1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`()
-SET @a = 5 latin1 latin1_swedish_ci latin1_swedish_ci
-DROP PROCEDURE p1;
-#
-# Bug#46452 Crash in MDL, HANDLER OPEN + TRUNCATE TABLE
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 AS SELECT 1 AS f1;
-HANDLER t1 OPEN;
-# Here comes the crash.
-TRUNCATE t1;
-# Currently TRUNCATE, just like other DDL, implicitly closes
-# open HANDLER table.
-HANDLER t1 READ FIRST;
-ERROR 42S02: Unknown table 't1' in HANDLER
-DROP TABLE t1;
-# End of 6.0 tests
diff --git a/mysql-test/r/truncate_badse.result b/mysql-test/r/truncate_badse.result
deleted file mode 100644
index 16f44f180ed..00000000000
--- a/mysql-test/r/truncate_badse.result
+++ /dev/null
@@ -1,13 +0,0 @@
-install plugin example soname 'ha_example';
-create table t1 (a int) engine=example;
-select 1;
-1
-1
-uninstall plugin example;
-flush tables;
-select count(*) from information_schema.plugins where plugin_name='example';
-count(*)
-0
-truncate table t1;
-ERROR 42000: Unknown storage engine 'EXAMPLE'
-drop table t1;
diff --git a/mysql-test/r/truncate_coverage.result b/mysql-test/r/truncate_coverage.result
deleted file mode 100644
index 078de1ef3ab..00000000000
--- a/mysql-test/r/truncate_coverage.result
+++ /dev/null
@@ -1,56 +0,0 @@
-SET DEBUG_SYNC='RESET';
-DROP TABLE IF EXISTS t1;
-#
-# Bug#20667 - Truncate table fails for a write locked table
-#
-CREATE TABLE t1 (c1 INT);
-INSERT INTO t1 VALUES (1);
-connect con1, localhost, root,,;
-START TRANSACTION;
-INSERT INTO t1 VALUES (2);
-connection default;
-SET DEBUG_SYNC='mdl_acquire_lock_wait SIGNAL waiting';
-TRUNCATE TABLE t1;
-connection con1;
-SET DEBUG_SYNC='now WAIT_FOR waiting';
-KILL QUERY @id;
-connection default;
-ERROR 70100: Query execution was interrupted
-connection con1;
-# Release SW lock by committing transaction.
-COMMIT;
-disconnect con1;
-connection default;
-UNLOCK TABLES;
-DROP TABLE t1;
-SET DEBUG_SYNC='RESET';
-#
-# Bug#57659 Segfault in Query_cache::invalidate_data for TRUNCATE TABLE
-#
-# Note that this test case only reproduces the problem
-# when it is run with valgrind.
-DROP TABLE IF EXISTS t1, m1;
-CREATE TABLE t1(a INT) engine=memory;
-CREATE TABLE m1(a INT) engine=merge UNION(t1);
-connect con2, localhost, root;
-connect con1, localhost, root;
-SET DEBUG_SYNC= 'open_tables_after_open_and_process_table SIGNAL opened WAIT_FOR dropped';
-# Sending:
-TRUNCATE TABLE m1;
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR opened';
-# Sending:
-FLUSH TABLES;
-connection default;
-# Waiting for FLUSH TABLES to be blocked.
-SET DEBUG_SYNC= 'now SIGNAL dropped';
-connection con1;
-# Reaping: TRUNCATE TABLE m1
-ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
-disconnect con1;
-connection con2;
-# Reaping: FLUSH TABLES
-disconnect con2;
-connection default;
-SET DEBUG_SYNC= 'RESET';
-DROP TABLE m1, t1;
diff --git a/mysql-test/r/type_binary.result b/mysql-test/r/type_binary.result
deleted file mode 100644
index 7dfe44ab045..00000000000
--- a/mysql-test/r/type_binary.result
+++ /dev/null
@@ -1,182 +0,0 @@
-create table t1 (s1 binary(3));
-insert into t1 values (0x61), (0x6120), (0x612020);
-select hex(s1) from t1;
-hex(s1)
-610000
-612000
-612020
-drop table t1;
-create table t1 (s1 binary(2), s2 varbinary(2));
-insert into t1 values (0x4100,0x4100);
-select length(concat('*',s1,'*',s2,'*')) from t1;
-length(concat('*',s1,'*',s2,'*'))
-7
-delete from t1;
-insert into t1 values (0x4120,0x4120);
-select length(concat('*',s1,'*',s2,'*')) from t1;
-length(concat('*',s1,'*',s2,'*'))
-7
-drop table t1;
-create table t1 (s1 varbinary(20), s2 varbinary(20));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s1` varbinary(20) DEFAULT NULL,
- `s2` varbinary(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values (0x41,0x4100),(0x41,0x4120),(0x4100,0x4120);
-select hex(s1), hex(s2) from t1;
-hex(s1) hex(s2)
-41 4100
-41 4120
-4100 4120
-select count(*) from t1 where s1 < s2;
-count(*)
-3
-drop table t1;
-create table t1 (s1 varbinary(2), s2 varchar(1));
-insert into t1 values (0x41,'a'), (0x4100,'b'), (0x41,'c'), (0x4100,'d');
-select hex(s1),s2 from t1 order by s1,s2;
-hex(s1) s2
-41 a
-41 c
-4100 b
-4100 d
-drop table t1;
-create table t1 (s1 binary(2) primary key);
-insert into t1 values (0x01);
-insert into t1 values (0x0120);
-insert into t1 values (0x0100);
-ERROR 23000: Duplicate entry '\x01' for key 'PRIMARY'
-select hex(s1) from t1 order by s1;
-hex(s1)
-0100
-0120
-select hex(s1) from t1 where s1=0x01;
-hex(s1)
-select hex(s1) from t1 where s1=0x0120;
-hex(s1)
-0120
-select hex(s1) from t1 where s1=0x0100;
-hex(s1)
-0100
-select count(distinct s1) from t1;
-count(distinct s1)
-2
-alter table t1 drop primary key;
-select hex(s1) from t1 where s1=0x01;
-hex(s1)
-select hex(s1) from t1 where s1=0x0120;
-hex(s1)
-0120
-select hex(s1) from t1 where s1=0x0100;
-hex(s1)
-0100
-select count(distinct s1) from t1;
-count(distinct s1)
-2
-drop table t1;
-create table t1 (s1 varbinary(2) primary key);
-insert into t1 values (0x01);
-insert into t1 values (0x0120);
-insert into t1 values (0x0100);
-select hex(s1) from t1 order by s1;
-hex(s1)
-01
-0100
-0120
-select hex(s1) from t1 where s1=0x01;
-hex(s1)
-01
-select hex(s1) from t1 where s1=0x0120;
-hex(s1)
-0120
-select hex(s1) from t1 where s1=0x0100;
-hex(s1)
-0100
-select count(distinct s1) from t1;
-count(distinct s1)
-3
-alter table t1 drop primary key;
-select hex(s1) from t1 where s1=0x01;
-hex(s1)
-01
-select hex(s1) from t1 where s1=0x0120;
-hex(s1)
-0120
-select hex(s1) from t1 where s1=0x0100;
-hex(s1)
-0100
-select count(distinct s1) from t1;
-count(distinct s1)
-3
-drop table t1;
-select hex(cast(0x10 as binary(2)));
-hex(cast(0x10 as binary(2)))
-1000
-create table t1 (b binary(2), vb varbinary(2));
-insert into t1 values(0x4120, 0x4120);
-insert ignore into t1 values(0x412020, 0x412020);
-Warnings:
-Warning 1265 Data truncated for column 'b' at row 1
-Warning 1265 Data truncated for column 'vb' at row 1
-drop table t1;
-create table t1 (c char(2), vc varchar(2));
-insert into t1 values(0x4120, 0x4120);
-insert into t1 values(0x412020, 0x412020);
-Warnings:
-Note 1265 Data truncated for column 'vc' at row 1
-drop table t1;
-set @old_sql_mode= @@sql_mode, sql_mode= 'traditional';
-create table t1 (b binary(2), vb varbinary(2));
-insert into t1 values(0x4120, 0x4120);
-insert into t1 values(0x412020, NULL);
-ERROR 22001: Data too long for column 'b' at row 1
-insert into t1 values(NULL, 0x412020);
-ERROR 22001: Data too long for column 'vb' at row 1
-drop table t1;
-set @@sql_mode= @old_sql_mode;
-create table t1(f1 int, f2 binary(2) not null, f3 char(2) not null);
-insert ignore into t1 set f1=1;
-Warnings:
-Warning 1364 Field 'f2' doesn't have a default value
-Warning 1364 Field 'f3' doesn't have a default value
-select hex(f2), hex(f3) from t1;
-hex(f2) hex(f3)
-0000
-drop table t1;
-End of 5.0 tests
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-8472 BINARY, VARBINARY and BLOB return different warnings on CAST to DECIMAL
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a BINARY(30));
-INSERT INTO t1 VALUES ('1äÖüß@µ*$');
-SELECT CAST(a AS DECIMAL) FROM t1;
-CAST(a AS DECIMAL)
-1
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '1\xC3\xA4\xC3\x96\xC3\xBC\xC3\x9F@\xC2\xB5*$\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
-DROP TABLE t1;
-CREATE TABLE t1 (a VARBINARY(30));
-INSERT INTO t1 VALUES ('1äÖüß@µ*$');
-SELECT CAST(a AS DECIMAL) FROM t1;
-CAST(a AS DECIMAL)
-1
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '1\xC3\xA4\xC3\x96\xC3\xBC\xC3\x9F@\xC2\xB5*$'
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES ('1äÖüß@µ*$');
-SELECT CAST(a AS DECIMAL) FROM t1;
-CAST(a AS DECIMAL)
-1
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '1\xC3\xA4\xC3\x96\xC3\xBC\xC3\x9F@\xC2\xB5*$'
-DROP TABLE t1;
-#
-# End of 10.0 tests
-#
diff --git a/mysql-test/r/type_bit.result b/mysql-test/r/type_bit.result
deleted file mode 100644
index 30cd94c9277..00000000000
--- a/mysql-test/r/type_bit.result
+++ /dev/null
@@ -1,832 +0,0 @@
-select 0 + b'1';
-0 + b'1'
-1
-select 0 + b'0';
-0 + b'0'
-0
-select 0 + b'000001';
-0 + b'000001'
-1
-select 0 + b'000011';
-0 + b'000011'
-3
-select 0 + b'000101';
-0 + b'000101'
-5
-select 0 + b'000000';
-0 + b'000000'
-0
-select 0 + b'10000000';
-0 + b'10000000'
-128
-select 0 + b'11111111';
-0 + b'11111111'
-255
-select 0 + b'10000001';
-0 + b'10000001'
-129
-select 0 + b'1000000000000000';
-0 + b'1000000000000000'
-32768
-select 0 + b'1111111111111111';
-0 + b'1111111111111111'
-65535
-select 0 + b'1000000000000001';
-0 + b'1000000000000001'
-32769
-drop table if exists t1,t2;
-create table t1 (a bit(65));
-ERROR 42000: Display width out of range for 'a' (max = 64)
-create table t1 (a bit(0));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bit(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a bit(64));
-insert into t1 values
-(b'1111111111111111111111111111111111111111111111111111111111111111'),
-(b'1000000000000000000000000000000000000000000000000000000000000000'),
-(b'0000000000000000000000000000000000000000000000000000000000000001'),
-(b'1010101010101010101010101010101010101010101010101010101010101010'),
-(b'0101010101010101010101010101010101010101010101010101010101010101');
-select hex(a) from t1;
-hex(a)
-FFFFFFFFFFFFFFFF
-8000000000000000
-1
-AAAAAAAAAAAAAAAA
-5555555555555555
-drop table t1;
-create table t1 (a bit);
-insert into t1 values (b'0'), (b'1'), (b'000'), (b'100'), (b'001');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 4
-select hex(a) from t1;
-hex(a)
-0
-1
-0
-1
-1
-alter table t1 add unique (a);
-ERROR 23000: Duplicate entry '\x00' for key 'a'
-drop table t1;
-create table t1 (a bit(2));
-insert into t1 values (b'00'), (b'01'), (b'10'), (b'100');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 4
-select a+0 from t1;
-a+0
-0
-1
-2
-3
-alter table t1 add key (a);
-explain select a+0 from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 2 NULL 4 Using index
-select a+0 from t1;
-a+0
-0
-1
-2
-3
-drop table t1;
-create table t1 (a bit(7), b bit(9), key(a, b));
-insert into t1 values
-(94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),
-(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),
-(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),
-(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),
-(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),
-(44, 307), (68, 454), (57, 135);
-explain select a+0 from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 38 Using index
-select a+0 from t1;
-a+0
-0
-4
-5
-9
-23
-24
-28
-29
-30
-31
-34
-44
-49
-56
-57
-59
-60
-61
-68
-68
-75
-77
-78
-79
-87
-88
-94
-94
-104
-106
-108
-111
-116
-118
-119
-122
-123
-127
-explain select b+0 from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 38 Using index
-select b+0 from t1;
-b+0
-177
-245
-178
-363
-36
-398
-499
-399
-83
-438
-202
-307
-345
-379
-135
-188
-343
-152
-206
-454
-42
-133
-123
-349
-351
-411
-46
-468
-280
-446
-67
-368
-390
-380
-368
-118
-411
-403
-explain select a+0, b+0 from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 38 Using index
-select a+0, b+0 from t1;
-a+0 b+0
-0 177
-4 245
-5 178
-9 363
-23 36
-24 398
-28 499
-29 399
-30 83
-31 438
-34 202
-44 307
-49 345
-56 379
-57 135
-59 188
-60 343
-61 152
-68 206
-68 454
-75 42
-77 133
-78 123
-79 349
-87 351
-88 411
-94 46
-94 468
-104 280
-106 446
-108 67
-111 368
-116 390
-118 380
-119 368
-122 118
-123 411
-127 403
-explain select a+0, b+0 from t1 where a > 40 and b > 200 order by 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 2 NULL 27 Using where; Using index; Using filesort
-select a+0, b+0 from t1 where a > 40 and b > 200 order by 1;
-a+0 b+0
-44 307
-49 345
-56 379
-60 343
-68 206
-68 454
-79 349
-87 351
-88 411
-94 468
-104 280
-106 446
-111 368
-116 390
-118 380
-119 368
-123 411
-127 403
-explain select a+0, b+0 from t1 where a > 40 and a < 70 order by 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 2 NULL 8 Using where; Using index; Using filesort
-select a+0, b+0 from t1 where a > 40 and a < 70 order by 2;
-a+0 b+0
-57 135
-61 152
-59 188
-68 206
-44 307
-60 343
-49 345
-56 379
-68 454
-set @@max_length_for_sort_data=0;
-Warnings:
-Warning 1292 Truncated incorrect max_length_for_sort_data value: '0'
-select a+0, b+0 from t1 where a > 40 and a < 70 order by 2;
-a+0 b+0
-57 135
-61 152
-59 188
-68 206
-44 307
-60 343
-49 345
-56 379
-68 454
-select hex(min(a)) from t1;
-hex(min(a))
-0
-select hex(min(b)) from t1;
-hex(min(b))
-24
-select hex(min(a)), hex(max(a)), hex(min(b)), hex(max(b)) from t1;
-hex(min(a)) hex(max(a)) hex(min(b)) hex(max(b))
-0 7F 24 1F3
-drop table t1;
-create table t1 (a int not null, b bit, c bit(9), key(a, b, c));
-insert into t1 values
-(4, NULL, 1), (4, 0, 3), (2, 1, 4), (1, 1, 100), (4, 0, 23), (4, 0, 54),
-(56, 0, 22), (4, 1, 100), (23, 0, 1), (4, 0, 34);
-select a+0, b+0, c+0 from t1;
-a+0 b+0 c+0
-1 1 100
-2 1 4
-4 NULL 1
-4 0 3
-4 0 23
-4 0 34
-4 0 54
-4 1 100
-23 0 1
-56 0 22
-select hex(min(b)) from t1 where a = 4;
-hex(min(b))
-0
-select hex(min(c)) from t1 where a = 4 and b = 0;
-hex(min(c))
-3
-select hex(max(b)) from t1;
-hex(max(b))
-1
-select a+0, b+0, c+0 from t1 where a = 4 and b = 0 limit 2;
-a+0 b+0 c+0
-4 0 3
-4 0 23
-select a+0, b+0, c+0 from t1 where a = 4 and b = 1;
-a+0 b+0 c+0
-4 1 100
-select a+0, b+0, c+0 from t1 where a = 4 and b = 1 and c=100;
-a+0 b+0 c+0
-4 1 100
-select a+0, b+0, c+0 from t1 order by b desc;
-a+0 b+0 c+0
-2 1 4
-1 1 100
-4 1 100
-4 0 3
-4 0 23
-4 0 54
-56 0 22
-23 0 1
-4 0 34
-4 NULL 1
-select a+0, b+0, c+0 from t1 order by c;
-a+0 b+0 c+0
-4 NULL 1
-23 0 1
-4 0 3
-2 1 4
-56 0 22
-4 0 23
-4 0 34
-4 0 54
-1 1 100
-4 1 100
-drop table t1;
-create table t1(a bit(2), b bit(2));
-insert into t1 (a) values (0x01), (0x03), (0x02);
-update t1 set b= concat(a);
-select a+0, b+0 from t1;
-a+0 b+0
-1 1
-3 3
-2 2
-drop table t1;
-create table t1 (a bit(7), key(a));
-insert into t1 values (44), (57);
-select a+0 from t1;
-a+0
-44
-57
-drop table t1;
-create table t1 (a bit(3), b bit(12));
-insert into t1 values (7,(1<<12)-2), (0x01,0x01ff);
-select hex(a),hex(b) from t1;
-hex(a) hex(b)
-7 FFE
-1 1FF
-select hex(concat(a)),hex(concat(b)) from t1;
-hex(concat(a)) hex(concat(b))
-07 0FFE
-01 01FF
-drop table t1;
-create table t1(a int, b bit not null);
-alter table t1 add primary key (a);
-drop table t1;
-create table t1 (a bit(19), b bit(5));
-insert into t1 values (1000, 10), (3, 8), (200, 6), (2303, 2), (12345, 4), (1, 0);
-select a+0, b+0 from t1;
-a+0 b+0
-1000 10
-3 8
-200 6
-2303 2
-12345 4
-1 0
-alter table t1 engine=heap;
-select a+0, b+0 from t1;
-a+0 b+0
-1000 10
-3 8
-200 6
-2303 2
-12345 4
-1 0
-alter table t1 add key(a, b);
-select a+0, b+0 from t1;
-a+0 b+0
-1000 10
-3 8
-200 6
-2303 2
-12345 4
-1 0
-alter table t1 engine=myisam;
-select a+0, b+0 from t1;
-a+0 b+0
-1 0
-3 8
-200 6
-1000 10
-2303 2
-12345 4
-create table t2 engine=heap select * from t1;
-select a+0, b+0 from t2;
-a+0 b+0
-1 0
-3 8
-200 6
-1000 10
-2303 2
-12345 4
-drop table t1;
-create table t1 select * from t2;
-select a+0, b+0 from t1;
-a+0 b+0
-1 0
-3 8
-200 6
-1000 10
-2303 2
-12345 4
-drop table t1, t2;
-create table t1 (a int, b time, c tinyint, d bool, e char(10), f bit(1),
-g bit(1) NOT NULL default 1, h char(1) default 'a');
-insert into t1 set a=1;
-select hex(g), h from t1;
-hex(g) h
-1 a
-drop table t1;
-create table t1 (a int, b time, c tinyint, d bool, e char(10), f bit(1),
-g bit(1) NOT NULL default 1);
-insert into t1 set a=1;
-select hex(g) from t1;
-hex(g)
-1
-drop table t1;
-create table t1 (a int, b time, c tinyint, d bool, e char(10), f bit(1),
-h char(1) default 'a') engine=myisam;
-insert into t1 set a=1;
-select h from t1;
-h
-a
-drop table t1;
-create table t1 (a bit(8)) engine=heap;
-insert ignore into t1 values ('1111100000');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select a+0 from t1;
-a+0
-255
-drop table t1;
-create table t1 (a bit(7));
-insert into t1 values (120), (0), (111);
-select a+0 from t1 union select a+0 from t1;
-a+0
-120
-0
-111
-select a+0 from t1 union select NULL;
-a+0
-120
-0
-111
-NULL
-select NULL union select a+0 from t1;
-NULL
-NULL
-120
-0
-111
-create table t2 select a from t1 union select a from t1;
-select a+0 from t2;
-a+0
-120
-0
-111
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` bit(7) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-create table t1 (id1 int(11), b1 bit(1));
-create table t2 (id2 int(11), b2 bit(1));
-insert into t1 values (1, 1), (2, 0), (3, 1);
-insert into t2 values (2, 1), (3, 0), (4, 0);
-create algorithm=undefined view v1 as
-select b1+0, b2+0 from t1, t2 where id1 = id2 and b1 = 0
-union
-select b1+0, b2+0 from t1, t2 where id1 = id2 and b2 = 1;
-select * from v1;
-b1+0 b2+0
-0 1
-drop table t1, t2;
-drop view v1;
-create table t1(a bit(4));
-insert into t1(a) values (1), (2), (5), (4), (3);
-insert into t1 select * from t1;
-select a+0 from t1;
-a+0
-1
-2
-5
-4
-3
-1
-2
-5
-4
-3
-drop table t1;
-create table t1 (a1 int(11), b1 bit(2));
-create table t2 (a2 int(11), b2 bit(2));
-insert into t1 values (1, 1), (2, 0), (3, 1), (4, 2);
-insert into t2 values (2, 1), (3, 0), (4, 1), (5, 2);
-select a1, a2, b1+0, b2+0 from t1 join t2 on a1 = a2;
-a1 a2 b1+0 b2+0
-2 2 0 1
-3 3 1 0
-4 4 2 1
-select a1, a2, b1+0, b2+0 from t1 join t2 on a1 = a2 order by a1;
-a1 a2 b1+0 b2+0
-2 2 0 1
-3 3 1 0
-4 4 2 1
-select a1, a2, b1+0, b2+0 from t1 join t2 on b1 = b2;
-a1 a2 b1+0 b2+0
-1 2 1 1
-3 2 1 1
-2 3 0 0
-1 4 1 1
-3 4 1 1
-4 5 2 2
-select sum(a1), b1+0, b2+0 from t1 join t2 on b1 = b2 group by b1 order by 1;
-sum(a1) b1+0 b2+0
-2 0 0
-4 2 2
-8 1 1
-select 1 from t1 join t2 on b1 = b2 group by b1 order by 1;
-1
-1
-1
-1
-select b1+0,sum(b1), sum(b2) from t1 join t2 on b1 = b2 group by b1 order by 1;
-b1+0 sum(b1) sum(b2)
-0 0 0
-1 4 4
-2 2 2
-drop table t1, t2;
-create table t1 (a bit(7));
-insert into t1 values (0x60);
-select * from t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a a 16 7 1 Y 32 0 63
-a
-`
-drop table t1;
-create table bug15583(b BIT(8), n INT);
-insert into bug15583 values(128, 128);
-insert into bug15583 values(null, null);
-insert into bug15583 values(0, 0);
-insert into bug15583 values(255, 255);
-select hex(b), bin(b), oct(b), hex(n), bin(n), oct(n) from bug15583;
-hex(b) bin(b) oct(b) hex(n) bin(n) oct(n)
-80 10000000 200 80 10000000 200
-NULL NULL NULL NULL NULL NULL
-0 0 0 0 0 0
-FF 11111111 377 FF 11111111 377
-select hex(b)=hex(n) as should_be_onetrue, bin(b)=bin(n) as should_be_onetrue, oct(b)=oct(n) as should_be_onetrue from bug15583;
-should_be_onetrue should_be_onetrue should_be_onetrue
-1 1 1
-NULL NULL NULL
-1 1 1
-1 1 1
-select hex(b + 0), bin(b + 0), oct(b + 0), hex(n), bin(n), oct(n) from bug15583;
-hex(b + 0) bin(b + 0) oct(b + 0) hex(n) bin(n) oct(n)
-80 10000000 200 80 10000000 200
-NULL NULL NULL NULL NULL NULL
-0 0 0 0 0 0
-FF 11111111 377 FF 11111111 377
-select conv(b, 10, 2), conv(b + 0, 10, 2) from bug15583;
-conv(b, 10, 2) conv(b + 0, 10, 2)
-10000000 10000000
-NULL NULL
-0 0
-11111111 11111111
-drop table bug15583;
-create table t1(a bit(1), b smallint unsigned);
-insert ignore into t1 (b, a) values ('2', '1');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select hex(a), b from t1;
-hex(a) b
-1 2
-drop table t1;
-create table t1(bit_field bit(2), int_field int, key a(bit_field));
-insert into t1 values (1,2);
-handler t1 open as t1;
-handler t1 read a=(1);
-bit_field int_field
- 2
-handler t1 close;
-drop table t1;
-CREATE TABLE t1 (b BIT(2), a VARCHAR(5));
-INSERT INTO t1 (b, a) VALUES (1, "x"), (3, "zz"), (0, "y"), (3, "z");
-SELECT b+0, COUNT(DISTINCT a) FROM t1 GROUP BY b;
-b+0 COUNT(DISTINCT a)
-0 1
-1 1
-3 2
-DROP TABLE t1;
-CREATE TABLE t1 (a CHAR(5), b BIT(2));
-INSERT INTO t1 (b, a) VALUES (1, "x"), (3, "zz"), (0, "y"), (3, "z");
-SELECT b+0, COUNT(DISTINCT a) FROM t1 GROUP BY b;
-b+0 COUNT(DISTINCT a)
-0 1
-1 1
-3 2
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b BIT(2));
-INSERT INTO t1 (b, a) VALUES (1, 1), (3, 2), (0, 3), (3, 4);
-SELECT b+0, COUNT(DISTINCT a) FROM t1 GROUP BY b;
-b+0 COUNT(DISTINCT a)
-0 1
-1 1
-3 2
-DROP TABLE t1;
-CREATE TABLE t1 (b BIT);
-INSERT INTO t1 (b) VALUES (1), (0);
-SELECT DISTINCT b FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 b b 16 1 1 Y 32 0 63
-b
-#
-#
-SELECT b FROM t1 GROUP BY b;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 b b 16 1 1 Y 32 0 63
-b
-#
-#
-DROP TABLE t1;
-CREATE TABLE t1 (a int, b bit(2));
-INSERT INTO t1 VALUES (3, 2), (2, 3), (2, 0), (3, 2), (3, 1);
-SELECT COUNT(DISTINCT b) FROM t1 GROUP BY a;
-COUNT(DISTINCT b)
-2
-2
-DROP TABLE t1;
-create table t2 (a int, b bit(2), c char(10));
-INSERT INTO t2 VALUES (3, 2, 'two'), (2, 3, 'three'), (2, 0, 'zero'),
-(3, 2, 'two'), (3, 1, 'one');
-SELECT COUNT(DISTINCT b,c) FROM t2 GROUP BY a;
-COUNT(DISTINCT b,c)
-2
-2
-DROP TABLE t2;
-CREATE TABLE t1(a BIT(13), KEY(a));
-INSERT IGNORE INTO t1(a) VALUES
-(65535),(65525),(65535),(65535),(65535),(65535),(65535),(65535),(65535),(65535);
-EXPLAIN SELECT 1 FROM t1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range NULL a 3 NULL 6 Using index for group-by
-SELECT 1 FROM t1 GROUP BY a;
-1
-1
-DROP TABLE t1;
-CREATE TABLE t1 (b BIT NOT NULL, i2 INTEGER NOT NULL, s VARCHAR(255) NOT NULL);
-INSERT INTO t1 VALUES(0x01,100,''), (0x00,300,''), (0x01,200,''), (0x00,100,'');
-SELECT HEX(b), i2 FROM t1 WHERE (i2>=100 AND i2<201) AND b=TRUE;
-HEX(b) i2
-1 100
-1 200
-CREATE TABLE t2 (b1 BIT NOT NULL, b2 BIT NOT NULL, i2 INTEGER NOT NULL,
-s VARCHAR(255) NOT NULL);
-INSERT INTO t2 VALUES (0x01,0x00,100,''), (0x00,0x01,300,''),
-(0x01,0x00,200,''), (0x00,0x01,100,'');
-SELECT HEX(b1), i2 FROM t2 WHERE (i2>=100 AND i2<201) AND b1=TRUE;
-HEX(b1) i2
-1 100
-1 200
-SELECT HEX(b2), i2 FROM t2 WHERE (i2>=100 AND i2<201) AND b2=FALSE;
-HEX(b2) i2
-0 100
-0 200
-SELECT HEX(b1), HEX(b2), i2 FROM t2
-WHERE (i2>=100 AND i2<201) AND b1=TRUE AND b2=FALSE;
-HEX(b1) HEX(b2) i2
-1 0 100
-1 0 200
-DROP TABLE t1, t2;
-CREATE TABLE IF NOT EXISTS t1 (
-f1 bit(2) NOT NULL default b'10',
-f2 bit(14) NOT NULL default b'11110000111100'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f1` bit(2) NOT NULL DEFAULT b'10',
- `f2` bit(14) NOT NULL DEFAULT b'11110000111100'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci
-DROP TABLE t1;
-CREATE TABLE IF NOT EXISTS t1 (
-f1 bit(2) NOT NULL default b''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f1` bit(2) NOT NULL DEFAULT b'0'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci
-DROP TABLE t1;
-create table t1bit7 (a1 bit(7) not null) engine=MyISAM;
-create table t2bit7 (b1 bit(7)) engine=MyISAM;
-insert into t1bit7 values (b'1100000');
-insert into t1bit7 values (b'1100001');
-insert into t1bit7 values (b'1100010');
-insert into t2bit7 values (b'1100001');
-insert into t2bit7 values (b'1100010');
-insert into t2bit7 values (b'1100110');
-select bin(a1) from t1bit7, t2bit7 where t1bit7.a1=t2bit7.b1;
-bin(a1)
-1100001
-1100010
-drop table t1bit7, t2bit7;
-create table t1bit7 (a1 bit(15) not null) engine=MyISAM;
-create table t2bit7 (b1 bit(15)) engine=MyISAM;
-insert into t1bit7 values (b'110000011111111');
-insert into t1bit7 values (b'110000111111111');
-insert into t1bit7 values (b'110001011111111');
-insert into t2bit7 values (b'110000111111111');
-insert into t2bit7 values (b'110001011111111');
-insert into t2bit7 values (b'110011011111111');
-select bin(a1) from t1bit7, t2bit7 where t1bit7.a1=t2bit7.b1;
-bin(a1)
-110000111111111
-110001011111111
-drop table t1bit7, t2bit7;
-#
-# Bug42803: Field_bit does not have unsigned_flag field,
-# can lead to bad memory access
-#
-CREATE TABLE t1 (a BIT(7), b BIT(9), KEY(a, b));
-INSERT INTO t1 VALUES(0, 0), (5, 3), (5, 6), (6, 4), (7, 0);
-EXPLAIN SELECT a+0, b+0 FROM t1 WHERE a > 4 and b < 7 ORDER BY 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 2 NULL 4 Using where; Using index; Using filesort
-DROP TABLE t1;
-End of 5.0 tests
-create table t1(a bit(7));
-insert into t1 values(0x40);
-alter table t1 modify column a bit(8);
-select hex(a) from t1;
-hex(a)
-40
-insert into t1 values(0x80);
-select hex(a) from t1;
-hex(a)
-40
-80
-create index a on t1(a);
-insert into t1 values(0x81);
-select hex(a) from t1;
-hex(a)
-40
-80
-81
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bit(8) DEFAULT NULL,
- KEY `a` (`a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-#
-# Bug#50591 bit(31) causes Duplicate entry '1-NULL' for key 'group_key'
-#
-CREATE TABLE t1(a INT, b BIT(7) NOT NULL);
-INSERT INTO t1 VALUES (NULL, 0),(NULL, 0);
-SELECT SUM(a) FROM t1 GROUP BY b, a;
-SUM(a)
-NULL
-DROP TABLE t1;
-CREATE TABLE t1(a INT, b BIT(7) NOT NULL, c BIT(8) NOT NULL);
-INSERT INTO t1 VALUES (NULL, 0, 0),(NULL, 0, 0);
-SELECT SUM(a) FROM t1 GROUP BY c, b, a;
-SUM(a)
-NULL
-DROP TABLE t1;
-End of 5.1 tests
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8867 Wrong field type or metadata for COALESCE(bit_column, 1)
-#
-CREATE TABLE t1 (val bit(1));
-INSERT INTO t1 VALUES (0);
-CREATE TABLE t2 AS SELECT COALESCE(val, 1) AS c FROM t1;
-SELECT * FROM t2;
-c
-0
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c` decimal(1,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-SELECT COALESCE(val, 1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def COALESCE(val, 1) 246 2 1 Y 32896 0 63
-COALESCE(val, 1)
-0
-DROP TABLE t1;
diff --git a/mysql-test/r/type_bit_innodb.result b/mysql-test/r/type_bit_innodb.result
deleted file mode 100644
index 9b186207f3f..00000000000
--- a/mysql-test/r/type_bit_innodb.result
+++ /dev/null
@@ -1,424 +0,0 @@
-select 0 + b'1';
-0 + b'1'
-1
-select 0 + b'0';
-0 + b'0'
-0
-select 0 + b'000001';
-0 + b'000001'
-1
-select 0 + b'000011';
-0 + b'000011'
-3
-select 0 + b'000101';
-0 + b'000101'
-5
-select 0 + b'000000';
-0 + b'000000'
-0
-select 0 + b'10000000';
-0 + b'10000000'
-128
-select 0 + b'11111111';
-0 + b'11111111'
-255
-select 0 + b'10000001';
-0 + b'10000001'
-129
-select 0 + b'1000000000000000';
-0 + b'1000000000000000'
-32768
-select 0 + b'1111111111111111';
-0 + b'1111111111111111'
-65535
-select 0 + b'1000000000000001';
-0 + b'1000000000000001'
-32769
-drop table if exists t1;
-create table t1 (a bit(65)) engine=innodb;
-ERROR 42000: Display width out of range for 'a' (max = 64)
-create table t1 (a bit(0)) engine=innodb;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bit(1) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a bit(64)) engine=innodb;
-insert into t1 values
-(b'1111111111111111111111111111111111111111111111111111111111111111'),
-(b'1000000000000000000000000000000000000000000000000000000000000000'),
-(b'0000000000000000000000000000000000000000000000000000000000000001'),
-(b'1010101010101010101010101010101010101010101010101010101010101010'),
-(b'0101010101010101010101010101010101010101010101010101010101010101');
-select hex(a) from t1;
-hex(a)
-FFFFFFFFFFFFFFFF
-8000000000000000
-1
-AAAAAAAAAAAAAAAA
-5555555555555555
-drop table t1;
-create table t1 (a bit) engine=innodb;
-insert ignore into t1 values (b'0'), (b'1'), (b'000'), (b'100'), (b'001');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 4
-select hex(a) from t1;
-hex(a)
-0
-1
-0
-1
-1
-alter table t1 add unique (a);
-ERROR 23000: Duplicate entry '' for key 'a'
-drop table t1;
-create table t1 (a bit(2)) engine=innodb;
-insert ignore into t1 values (b'00'), (b'01'), (b'10'), (b'100');
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 4
-select a+0 from t1;
-a+0
-0
-1
-2
-3
-alter table t1 add key (a);
-explain select a+0 from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 2 NULL 4 Using index
-select a+0 from t1;
-a+0
-0
-1
-2
-3
-drop table t1;
-create table t1 (a bit(7), b bit(9), key(a, b)) engine=innodb;
-insert into t1 values
-(94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),
-(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),
-(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),
-(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),
-(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),
-(44, 307), (68, 454), (57, 135);
-explain select a+0 from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 38 Using index
-select a+0 from t1;
-a+0
-0
-4
-5
-9
-23
-24
-28
-29
-30
-31
-34
-44
-49
-56
-57
-59
-60
-61
-68
-68
-75
-77
-78
-79
-87
-88
-94
-94
-104
-106
-108
-111
-116
-118
-119
-122
-123
-127
-explain select b+0 from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 38 Using index
-select b+0 from t1;
-b+0
-177
-245
-178
-363
-36
-398
-499
-399
-83
-438
-202
-307
-345
-379
-135
-188
-343
-152
-206
-454
-42
-133
-123
-349
-351
-411
-46
-468
-280
-446
-67
-368
-390
-380
-368
-118
-411
-403
-explain select a+0, b+0 from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 5 NULL 38 Using index
-select a+0, b+0 from t1;
-a+0 b+0
-0 177
-4 245
-5 178
-9 363
-23 36
-24 398
-28 499
-29 399
-30 83
-31 438
-34 202
-44 307
-49 345
-56 379
-57 135
-59 188
-60 343
-61 152
-68 206
-68 454
-75 42
-77 133
-78 123
-79 349
-87 351
-88 411
-94 46
-94 468
-104 280
-106 446
-108 67
-111 368
-116 390
-118 380
-119 368
-122 118
-123 411
-127 403
-explain select a+0, b+0 from t1 where a > 40 and b > 200 order by 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 2 NULL # Using where; Using index; Using filesort
-select a+0, b+0 from t1 where a > 40 and b > 200 order by 1;
-a+0 b+0
-44 307
-49 345
-56 379
-60 343
-68 206
-68 454
-79 349
-87 351
-88 411
-94 468
-104 280
-106 446
-111 368
-116 390
-118 380
-119 368
-123 411
-127 403
-explain select a+0, b+0 from t1 where a > 40 and a < 70 order by 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 2 NULL 9 Using where; Using index; Using filesort
-select a+0, b+0 from t1 where a > 40 and a < 70 order by 2;
-a+0 b+0
-57 135
-61 152
-59 188
-68 206
-44 307
-60 343
-49 345
-56 379
-68 454
-set @@max_length_for_sort_data=0;
-Warnings:
-Warning 1292 Truncated incorrect max_length_for_sort_data value: '0'
-select a+0, b+0 from t1 where a > 40 and a < 70 order by 2;
-a+0 b+0
-57 135
-61 152
-59 188
-68 206
-44 307
-60 343
-49 345
-56 379
-68 454
-select hex(min(a)) from t1;
-hex(min(a))
-0
-select hex(min(b)) from t1;
-hex(min(b))
-24
-select hex(min(a)), hex(max(a)), hex(min(b)), hex(max(b)) from t1;
-hex(min(a)) hex(max(a)) hex(min(b)) hex(max(b))
-0 7F 24 1F3
-drop table t1;
-create table t1 (a int not null, b bit, c bit(9), key(a, b, c)) engine=innodb;
-insert into t1 values
-(4, NULL, 1), (4, 0, 3), (2, 1, 4), (1, 1, 100), (4, 0, 23), (4, 0, 54),
-(56, 0, 22), (4, 1, 100), (23, 0, 1), (4, 0, 34);
-select a+0, b+0, c+0 from t1;
-a+0 b+0 c+0
-1 1 100
-2 1 4
-4 NULL 1
-4 0 3
-4 0 23
-4 0 34
-4 0 54
-4 1 100
-23 0 1
-56 0 22
-select hex(min(b)) from t1 where a = 4;
-hex(min(b))
-0
-select hex(min(c)) from t1 where a = 4 and b = 0;
-hex(min(c))
-3
-select hex(max(b)) from t1;
-hex(max(b))
-1
-select a+0, b+0, c+0 from t1 where a = 4 and b = 0 limit 2;
-a+0 b+0 c+0
-4 0 3
-4 0 23
-select a+0, b+0, c+0 from t1 where a = 4 and b = 1;
-a+0 b+0 c+0
-4 1 100
-select a+0, b+0, c+0 from t1 where a = 4 and b = 1 and c=100;
-a+0 b+0 c+0
-4 1 100
-select a+0, b+0, c+0 from t1 order by b desc;
-a+0 b+0 c+0
-2 1 4
-1 1 100
-4 1 100
-4 0 3
-4 0 23
-4 0 54
-56 0 22
-23 0 1
-4 0 34
-4 NULL 1
-select a+0, b+0, c+0 from t1 order by c;
-a+0 b+0 c+0
-4 NULL 1
-23 0 1
-4 0 3
-2 1 4
-56 0 22
-4 0 23
-4 0 34
-4 0 54
-1 1 100
-4 1 100
-drop table t1;
-create table t1(a bit(2), b bit(2)) engine=innodb;
-insert into t1 (a) values (0x01), (0x03), (0x02);
-update t1 set b= concat(a);
-select a+0, b+0 from t1;
-a+0 b+0
-1 1
-3 3
-2 2
-drop table t1;
-create table t1 (a bit(7), key(a)) engine=innodb;
-insert into t1 values (44), (57);
-select a+0 from t1;
-a+0
-44
-57
-drop table t1;
-create table t1 (a bit(3), b bit(12)) engine=innodb;
-insert into t1 values (7,(1<<12)-2), (0x01,0x01ff);
-select hex(a),hex(b) from t1;
-hex(a) hex(b)
-7 FFE
-1 1FF
-select hex(concat(a)),hex(concat(b)) from t1;
-hex(concat(a)) hex(concat(b))
-07 0FFE
-01 01FF
-drop table t1;
-create table t1(a int, b bit not null) engine=innodb;
-alter table t1 add primary key (a);
-drop table t1;
-create table t1 (a bit, b bit(10)) engine=innodb;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bit(1) DEFAULT NULL,
- `b` bit(10) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-alter table t1 engine=heap;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bit(1) DEFAULT NULL,
- `b` bit(10) DEFAULT NULL
-) ENGINE=MEMORY DEFAULT CHARSET=latin1
-alter table t1 engine=innodb;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` bit(1) DEFAULT NULL,
- `b` bit(10) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a bit(7)) engine=innodb;
-insert into t1 values (0x60);
-select * from t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a a 16 7 1 Y 32 0 63
-a
-`
-drop table t1;
-End of 5.0 tests
-create table t1(f1 bit(2) not null default b'10',f2 bit(14) not null default b'11110000111100');
-insert into t1 (f1) values (default);
-insert into t1 values (b'',b''),('','');
-select hex(f1), hex(f2) from t1;
-hex(f1) hex(f2)
-2 3C3C
-0 0
-0 0
-drop table t1;
diff --git a/mysql-test/r/type_blob.result b/mysql-test/r/type_blob.result
deleted file mode 100644
index 569ba65df3f..00000000000
--- a/mysql-test/r/type_blob.result
+++ /dev/null
@@ -1,1065 +0,0 @@
-drop table if exists t1,t2,t3,t4,t5,t6,t7;
-CREATE TABLE t1 (a blob, b text, c blob(250), d text(70000), e text(70000000));
-show columns from t1;
-Field Type Null Key Default Extra
-a blob YES NULL
-b text YES NULL
-c tinyblob YES NULL
-d mediumtext YES NULL
-e longtext YES NULL
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t2 (a char(255), b varbinary(70000), c varchar(70000000));
-Warnings:
-Note 1246 Converting column 'b' from VARBINARY to BLOB
-Note 1246 Converting column 'c' from VARCHAR to TEXT
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t4 (c varchar(65530) character set utf8 not null);
-Warnings:
-Note 1246 Converting column 'c' from VARCHAR to TEXT
-show columns from t2;
-Field Type Null Key Default Extra
-a char(255) YES NULL
-b mediumblob YES NULL
-c longtext YES NULL
-create table t3 (a long, b long byte);
-show create TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` mediumtext DEFAULT NULL,
- `b` mediumblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create TABLE t4;
-Table Create Table
-t4 CREATE TABLE `t4` (
- `c` mediumtext CHARACTER SET utf8 NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1,t2,t3,t4;
-CREATE TABLE t1 (a char(257) default "hello");
-ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead
-CREATE TABLE t2 (a char(256));
-ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-CREATE TABLE t1 (a varchar(70000) default "hello");
-Warnings:
-Note 1246 Converting column 'a' from VARCHAR to TEXT
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` mediumtext DEFAULT 'hello'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t2 (a blob default "hello");
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` blob DEFAULT 'hello'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1,t2;
-create table t1 (nr int(5) not null auto_increment,b blob,str char(10), primary key (nr));
-insert into t1 values (null,"a","A");
-insert into t1 values (null,"bbb","BBB");
-insert into t1 values (null,"ccc","CCC");
-select last_insert_id();
-last_insert_id()
-3
-select * from t1,t1 as t2;
-nr b str nr b str
-1 a A 1 a A
-2 bbb BBB 1 a A
-3 ccc CCC 1 a A
-1 a A 2 bbb BBB
-2 bbb BBB 2 bbb BBB
-3 ccc CCC 2 bbb BBB
-1 a A 3 ccc CCC
-2 bbb BBB 3 ccc CCC
-3 ccc CCC 3 ccc CCC
-drop table t1;
-create table t1 (a text);
-insert into t1 values ('where');
-update t1 set a='Where';
-select * from t1;
-a
-Where
-drop table t1;
-create table t1 (t text,c char(10),b blob, d varbinary(10));
-insert into t1 values (NULL,NULL,NULL,NULL);
-insert into t1 values ("","","","");
-insert into t1 values ("hello","hello","hello","hello");
-insert into t1 values ("HELLO","HELLO","HELLO","HELLO");
-insert into t1 values ("HELLO MY","HELLO MY","HELLO MY","HELLO MY");
-insert into t1 values ("a","a","a","a");
-insert into t1 values (1,1,1,1);
-insert into t1 values (NULL,NULL,NULL,NULL);
-update t1 set c="",b=null where c="1";
-lock tables t1 READ;
-show full fields from t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-t text latin1_swedish_ci YES NULL #
-c char(10) latin1_swedish_ci YES NULL #
-b blob NULL YES NULL #
-d varbinary(10) NULL YES NULL #
-lock tables t1 WRITE;
-show full fields from t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-t text latin1_swedish_ci YES NULL #
-c char(10) latin1_swedish_ci YES NULL #
-b blob NULL YES NULL #
-d varbinary(10) NULL YES NULL #
-unlock tables;
-select t from t1 where t like "hello";
-t
-hello
-HELLO
-select c from t1 where c like "hello";
-c
-hello
-HELLO
-select b from t1 where b like "hello";
-b
-hello
-select d from t1 where d like "hello";
-d
-hello
-select c from t1 having c like "hello";
-c
-hello
-HELLO
-select d from t1 having d like "hello";
-d
-hello
-select t from t1 where t like "%HELLO%";
-t
-hello
-HELLO
-HELLO MY
-select c from t1 where c like "%HELLO%";
-c
-hello
-HELLO
-HELLO MY
-select b from t1 where b like "%HELLO%";
-b
-HELLO
-HELLO MY
-select d from t1 where d like "%HELLO%";
-d
-HELLO
-HELLO MY
-select c from t1 having c like "%HELLO%";
-c
-hello
-HELLO
-HELLO MY
-select d from t1 having d like "%HELLO%";
-d
-HELLO
-HELLO MY
-select d from t1 having d like "%HE%LLO%";
-d
-HELLO
-HELLO MY
-select t from t1 order by t;
-t
-NULL
-NULL
-
-1
-a
-hello
-HELLO
-HELLO MY
-select c from t1 order by c;
-c
-NULL
-NULL
-
-
-a
-hello
-HELLO
-HELLO MY
-select b from t1 order by b;
-b
-NULL
-NULL
-NULL
-
-HELLO
-HELLO MY
-a
-hello
-select d from t1 order by d;
-d
-NULL
-NULL
-
-1
-HELLO
-HELLO MY
-a
-hello
-select distinct t from t1;
-t
-NULL
-
-hello
-HELLO MY
-a
-1
-select distinct b from t1;
-b
-NULL
-
-hello
-HELLO
-HELLO MY
-a
-select distinct t from t1 order by t;
-t
-NULL
-
-1
-a
-hello
-HELLO MY
-select distinct b from t1 order by b;
-b
-NULL
-
-HELLO
-HELLO MY
-a
-hello
-select t from t1 group by t;
-t
-NULL
-
-1
-a
-hello
-HELLO MY
-select b from t1 group by b;
-b
-NULL
-
-HELLO
-HELLO MY
-a
-hello
-set big_tables=1;
-select distinct t from t1;
-t
-NULL
-
-hello
-HELLO MY
-a
-1
-select distinct b from t1;
-b
-NULL
-
-hello
-HELLO
-HELLO MY
-a
-select distinct t from t1 order by t;
-t
-NULL
-
-1
-a
-hello
-HELLO MY
-select distinct b from t1 order by b;
-b
-NULL
-
-HELLO
-HELLO MY
-a
-hello
-select distinct c from t1;
-c
-NULL
-
-hello
-HELLO MY
-a
-select distinct d from t1;
-d
-NULL
-
-hello
-HELLO
-HELLO MY
-a
-1
-select distinct c from t1 order by c;
-c
-NULL
-
-a
-hello
-HELLO MY
-select distinct d from t1 order by d;
-d
-NULL
-
-1
-HELLO
-HELLO MY
-a
-hello
-select c from t1 group by c;
-c
-NULL
-
-a
-hello
-HELLO MY
-select d from t1 group by d;
-d
-NULL
-
-1
-HELLO
-HELLO MY
-a
-hello
-set big_tables=0;
-select distinct * from t1;
-t c b d
-NULL NULL NULL NULL
-
-hello hello hello hello
-HELLO HELLO HELLO HELLO
-HELLO MY HELLO MY HELLO MY HELLO MY
-a a a a
-1 NULL 1
-select t,count(*) from t1 group by t;
-t count(*)
-NULL 2
- 1
-1 1
-a 1
-hello 2
-HELLO MY 1
-select b,count(*) from t1 group by b;
-b count(*)
-NULL 3
- 1
-HELLO 1
-HELLO MY 1
-a 1
-hello 1
-select c,count(*) from t1 group by c;
-c count(*)
-NULL 2
- 2
-a 1
-hello 2
-HELLO MY 1
-select d,count(*) from t1 group by d;
-d count(*)
-NULL 2
- 1
-1 1
-HELLO 1
-HELLO MY 1
-a 1
-hello 1
-drop table t1;
-create table t1 (a text, unique (a(2100)));
-ERROR 42000: Specified key was too long; max key length is 1000 bytes
-create table t1 (a text, key (a(2100)));
-Warnings:
-Note 1071 Specified key was too long; max key length is 1000 bytes
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text DEFAULT NULL,
- KEY `a` (`a`(1000))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 (
-t1_id bigint(21) NOT NULL auto_increment,
-_field_72 varchar(128) DEFAULT '' NOT NULL,
-_field_95 varchar(32),
-_field_115 tinyint(4) DEFAULT '0' NOT NULL,
-_field_122 tinyint(4) DEFAULT '0' NOT NULL,
-_field_126 tinyint(4),
-_field_134 tinyint(4),
-PRIMARY KEY (t1_id),
-UNIQUE _field_72 (_field_72),
-KEY _field_115 (_field_115),
-KEY _field_122 (_field_122)
-);
-INSERT INTO t1 VALUES (1,'admin','21232f297a57a5a743894a0e4a801fc3',0,1,NULL,NULL);
-INSERT INTO t1 VALUES (2,'hroberts','7415275a8c95952901e42b13a6b78566',0,1,NULL,NULL);
-INSERT INTO t1 VALUES (3,'guest','d41d8cd98f00b204e9800998ecf8427e',1,0,NULL,NULL);
-CREATE TABLE t2 (
-seq_0_id bigint(21) DEFAULT '0' NOT NULL,
-seq_1_id bigint(21) DEFAULT '0' NOT NULL,
-PRIMARY KEY (seq_0_id,seq_1_id)
-);
-INSERT INTO t2 VALUES (1,1);
-INSERT INTO t2 VALUES (2,1);
-INSERT INTO t2 VALUES (2,2);
-CREATE TABLE t3 (
-t3_id bigint(21) NOT NULL auto_increment,
-_field_131 varchar(128),
-_field_133 tinyint(4) DEFAULT '0' NOT NULL,
-_field_135 datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
-_field_137 tinyint(4),
-_field_139 datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
-_field_140 blob,
-_field_142 tinyint(4) DEFAULT '0' NOT NULL,
-_field_145 tinyint(4) DEFAULT '0' NOT NULL,
-_field_148 tinyint(4) DEFAULT '0' NOT NULL,
-PRIMARY KEY (t3_id),
-KEY _field_133 (_field_133),
-KEY _field_135 (_field_135),
-KEY _field_139 (_field_139),
-KEY _field_142 (_field_142),
-KEY _field_145 (_field_145),
-KEY _field_148 (_field_148)
-);
-INSERT INTO t3 VALUES (1,'test job 1',0,'0000-00-00 00:00:00',0,'1999-02-25 22:43:32','test\r\njob\r\n1',0,0,0);
-INSERT INTO t3 VALUES (2,'test job 2',0,'0000-00-00 00:00:00',0,'1999-02-26 21:08:04','',0,0,0);
-CREATE TABLE t4 (
-seq_0_id bigint(21) DEFAULT '0' NOT NULL,
-seq_1_id bigint(21) DEFAULT '0' NOT NULL,
-PRIMARY KEY (seq_0_id,seq_1_id)
-);
-INSERT INTO t4 VALUES (1,1);
-INSERT INTO t4 VALUES (2,1);
-CREATE TABLE t5 (
-t5_id bigint(21) NOT NULL auto_increment,
-_field_149 tinyint(4),
-_field_156 varchar(128) DEFAULT '' NOT NULL,
-_field_157 varchar(128) DEFAULT '' NOT NULL,
-_field_158 varchar(128) DEFAULT '' NOT NULL,
-_field_159 varchar(128) DEFAULT '' NOT NULL,
-_field_160 varchar(128) DEFAULT '' NOT NULL,
-_field_161 varchar(128) DEFAULT '' NOT NULL,
-PRIMARY KEY (t5_id),
-KEY _field_156 (_field_156),
-KEY _field_157 (_field_157),
-KEY _field_158 (_field_158),
-KEY _field_159 (_field_159),
-KEY _field_160 (_field_160),
-KEY _field_161 (_field_161)
-);
-INSERT INTO t5 VALUES (1,0,'tomato','','','','','');
-INSERT INTO t5 VALUES (2,0,'cilantro','','','','','');
-CREATE TABLE t6 (
-seq_0_id bigint(21) DEFAULT '0' NOT NULL,
-seq_1_id bigint(21) DEFAULT '0' NOT NULL,
-PRIMARY KEY (seq_0_id,seq_1_id)
-);
-INSERT INTO t6 VALUES (1,1);
-INSERT INTO t6 VALUES (1,2);
-INSERT INTO t6 VALUES (2,2);
-CREATE TABLE t7 (
-t7_id bigint(21) NOT NULL auto_increment,
-_field_143 tinyint(4),
-_field_165 varchar(32),
-_field_166 smallint(6) DEFAULT '0' NOT NULL,
-PRIMARY KEY (t7_id),
-KEY _field_166 (_field_166)
-);
-INSERT INTO t7 VALUES (1,0,'High',1);
-INSERT INTO t7 VALUES (2,0,'Medium',2);
-INSERT INTO t7 VALUES (3,0,'Low',3);
-select replace(t3._field_140, "\r","^M"),t3_id,min(t3._field_131), min(t3._field_135), min(t3._field_139), min(t3._field_137), min(link_alias_142._field_165), min(link_alias_133._field_72), min(t3._field_145), min(link_alias_148._field_156), replace(min(t3._field_140), "\r","^M"),t3.t3_id from t3 left join t4 on t4.seq_0_id = t3.t3_id left join t7 link_alias_142 on t4.seq_1_id = link_alias_142.t7_id left join t6 on t6.seq_0_id = t3.t3_id left join t1 link_alias_133 on t6.seq_1_id = link_alias_133.t1_id left join t2 on t2.seq_0_id = t3.t3_id left join t5 link_alias_148 on t2.seq_1_id = link_alias_148.t5_id where t3.t3_id in (1) group by t3.t3_id order by link_alias_142._field_166, _field_139, link_alias_133._field_72, _field_135, link_alias_148._field_156;
-replace(t3._field_140, "\r","^M") t3_id min(t3._field_131) min(t3._field_135) min(t3._field_139) min(t3._field_137) min(link_alias_142._field_165) min(link_alias_133._field_72) min(t3._field_145) min(link_alias_148._field_156) replace(min(t3._field_140), "\r","^M") t3_id
-test^M
-job^M
-1 1 test job 1 0000-00-00 00:00:00 1999-02-25 22:43:32 0 High admin 0 tomato test^M
-job^M
-1 1
-drop table t1,t2,t3,t4,t5,t6,t7;
-create table t1 (a blob);
-insert into t1 values ("empty"),("");
-select a,reverse(a) from t1;
-a reverse(a)
-empty ytpme
-
-drop table t1;
-create table t1 (a blob, key (a(10)));
-insert into t1 values ("bye"),("hello"),("hello"),("hello word");
-select * from t1 where a like "hello%";
-a
-hello
-hello
-hello word
-drop table t1;
-CREATE TABLE t1 (
-f1 int(11) DEFAULT '0' NOT NULL,
-f2 varchar(16) DEFAULT '' NOT NULL,
-f5 text,
-KEY index_name (f1,f2,f5(16))
-);
-INSERT INTO t1 VALUES (0,'traktor','1111111111111');
-INSERT INTO t1 VALUES (1,'traktor','1111111111111111111111111');
-select count(*) from t1 where f2='traktor';
-count(*)
-2
-drop table t1;
-create table t1 (foobar tinyblob not null, boggle smallint not null, key (foobar(32), boggle));
-insert into t1 values ('fish', 10),('bear', 20);
-select foobar, boggle from t1 where foobar = 'fish';
-foobar boggle
-fish 10
-select foobar, boggle from t1 where foobar = 'fish' and boggle = 10;
-foobar boggle
-fish 10
-drop table t1;
-create table t1 (id integer auto_increment unique,imagem LONGBLOB not null default '');
-insert into t1 (id) values (1);
-select
-charset(load_file('../../std_data/words.dat')),
-collation(load_file('../../std_data/words.dat')),
-coercibility(load_file('../../std_data/words.dat'));
-charset(load_file('../../std_data/words.dat')) collation(load_file('../../std_data/words.dat')) coercibility(load_file('../../std_data/words.dat'))
-binary binary 4
-explain extended select
-charset(load_file('MYSQLTEST_VARDIR/std_data/words.dat')),
-collation(load_file('MYSQLTEST_VARDIR/std_data/words.dat')),
-coercibility(load_file('MYSQLTEST_VARDIR/std_data/words.dat'));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select charset(load_file('MYSQLTEST_VARDIR/std_data/words.dat')) AS `charset(load_file('MYSQLTEST_VARDIR/std_data/words.dat'))`,collation(load_file('MYSQLTEST_VARDIR/std_data/words.dat')) AS `collation(load_file('MYSQLTEST_VARDIR/std_data/words.dat'))`,coercibility(load_file('MYSQLTEST_VARDIR/std_data/words.dat')) AS `coercibility(load_file('MYSQLTEST_VARDIR/std_data/words.dat'))`
-update t1 set imagem=load_file('MYSQLTEST_VARDIR/std_data/words.dat') where id=1;
-select if(imagem is null, "ERROR", "OK"),length(imagem) from t1 where id = 1;
-if(imagem is null, "ERROR", "OK") length(imagem)
-OK 581
-drop table t1;
-create table t1 select load_file('MYSQLTEST_VARDIR/std_data/words.dat') l;
-show full fields from t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-l longblob NULL YES NULL #
-drop table t1;
-create table t1 (id integer primary key auto_increment, txt text not null, unique index txt_index (txt (20)));
-insert into t1 (txt) values ('Chevy'), ('Chevy ');
-ERROR 23000: Duplicate entry 'Chevy ' for key 'txt_index'
-insert into t1 (txt) values ('Chevy'), ('CHEVY');
-ERROR 23000: Duplicate entry 'Chevy' for key 'txt_index'
-alter table t1 drop index txt_index, add index txt_index (txt(20));
-insert into t1 (txt) values ('Chevy ');
-select * from t1 where txt='Chevy';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt='Chevy ';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt='Chevy ' or txt='Chevy';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt='Chevy' or txt='Chevy ';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where id='1' or id='2';
-id txt
-1 Chevy
-2 Chevy
-insert into t1 (txt) values('Ford');
-select * from t1 where txt='Chevy' or txt='Chevy ' or txt='Ford';
-id txt
-1 Chevy
-2 Chevy
-3 Ford
-select * from t1 where txt='Chevy' or txt='Chevy ';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt='Chevy' or txt='Chevy ' or txt=' Chevy';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt in ('Chevy ','Chevy');
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt in ('Chevy');
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt between 'Chevy' and 'Chevy';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt between 'Chevy' and 'Chevy' or txt='Chevy ';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt between 'Chevy' and 'Chevy ';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt < 'Chevy ';
-id txt
-select * from t1 where txt <= 'Chevy';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt > 'Chevy';
-id txt
-3 Ford
-select * from t1 where txt >= 'Chevy';
-id txt
-1 Chevy
-2 Chevy
-3 Ford
-drop table t1;
-create table t1 (id integer primary key auto_increment, txt text, index txt_index (txt (20)));
-insert into t1 (txt) values ('Chevy'), ('Chevy '), (NULL);
-select * from t1 where txt='Chevy' or txt is NULL;
-id txt
-1 Chevy
-2 Chevy
-3 NULL
-explain select * from t1 where txt='Chevy' or txt is NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null txt_index txt_index 23 const 2 Using where
-select * from t1 where txt='Chevy ';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt='Chevy ' or txt='Chevy';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt='Chevy' or txt='Chevy ';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where id='1' or id='2';
-id txt
-1 Chevy
-2 Chevy
-insert into t1 (txt) values('Ford');
-select * from t1 where txt='Chevy' or txt='Chevy ' or txt='Ford';
-id txt
-1 Chevy
-2 Chevy
-4 Ford
-select * from t1 where txt='Chevy' or txt='Chevy ';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt='Chevy' or txt='Chevy ' or txt=' Chevy';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt in ('Chevy ','Chevy');
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt in ('Chevy');
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt between 'Chevy' and 'Chevy';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt between 'Chevy' and 'Chevy' or txt='Chevy ';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt between 'Chevy' and 'Chevy ';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt < 'Chevy ';
-id txt
-select * from t1 where txt < 'Chevy ' or txt is NULL;
-id txt
-3 NULL
-select * from t1 where txt <= 'Chevy';
-id txt
-1 Chevy
-2 Chevy
-select * from t1 where txt > 'Chevy';
-id txt
-4 Ford
-select * from t1 where txt >= 'Chevy';
-id txt
-1 Chevy
-2 Chevy
-4 Ford
-alter table t1 modify column txt blob;
-explain select * from t1 where txt='Chevy' or txt is NULL;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null txt_index txt_index 23 const 2 Using where
-select * from t1 where txt='Chevy' or txt is NULL;
-id txt
-1 Chevy
-3 NULL
-explain select * from t1 where txt='Chevy' or txt is NULL order by txt;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref_or_null txt_index txt_index 23 const 2 Using where; Using filesort
-select * from t1 where txt='Chevy' or txt is NULL order by txt;
-id txt
-3 NULL
-1 Chevy
-drop table t1;
-CREATE TABLE t1 ( i int(11) NOT NULL default '0', c text NOT NULL, d varchar(1) NOT NULL DEFAULT ' ', PRIMARY KEY (i), KEY (c(1),d));
-INSERT t1 (i, c) VALUES (1,''),(2,''),(3,'asdfh'),(4,'');
-select max(i) from t1 where c = '';
-max(i)
-4
-drop table t1;
-create table t1 (a int, b int, c tinyblob, d int, e int);
-alter table t1 add primary key (a,b,c(255),d);
-alter table t1 add key (a,b,d,e);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) NOT NULL,
- `b` int(11) NOT NULL,
- `c` tinyblob NOT NULL,
- `d` int(11) NOT NULL,
- `e` int(11) DEFAULT NULL,
- PRIMARY KEY (`a`,`b`,`c`(255),`d`),
- KEY `a` (`a`,`b`,`d`,`e`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE table t1 (a blob);
-insert into t1 values ('b'),('a\0'),('a'),('a '),('aa'),(NULL);
-select hex(a) from t1 order by a;
-hex(a)
-NULL
-61
-6100
-6120
-6161
-62
-select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0');
-b
-NULL
-6100
-610000
-612000
-616100
-6200
-alter table t1 modify a varbinary(5);
-select hex(a) from t1 order by a;
-hex(a)
-NULL
-61
-6100
-6120
-6161
-62
-select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0');
-b
-NULL
-6100
-610000
-612000
-616100
-6200
-alter table t1 modify a char(5);
-select hex(a) from t1 order by a;
-hex(a)
-NULL
-6100
-61
-61
-6161
-62
-select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0');
-b
-NULL
-610000
-6100
-6100
-616100
-6200
-alter table t1 modify a binary(5);
-select hex(a) from t1 order by a;
-hex(a)
-NULL
-6100000000
-6100000000
-6100000000
-6161000000
-6200000000
-select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0');
-b
-NULL
-610000000000
-610000000000
-610000000000
-616100000000
-620000000000
-drop table t1;
-create table t1 (a text default '');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values (default);
-select * from t1;
-a
-
-drop table t1;
-set @@sql_mode='TRADITIONAL';
-create table t1 (a text default '');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` text DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @@sql_mode='';
-CREATE TABLE t (c TEXT CHARSET ASCII);
-INSERT INTO t (c) VALUES (REPEAT('1',65537));
-Warnings:
-Warning 1265 Data truncated for column 'c' at row 1
-INSERT INTO t (c) VALUES (REPEAT('2',65536));
-Warnings:
-Warning 1265 Data truncated for column 'c' at row 1
-INSERT INTO t (c) VALUES (REPEAT('3',65535));
-SELECT LENGTH(c), CHAR_LENGTH(c) FROM t;
-LENGTH(c) CHAR_LENGTH(c)
-65535 65535
-65535 65535
-65535 65535
-DROP TABLE t;
-drop table if exists b15776;
-create table b15776 (data blob(2147483647));
-drop table b15776;
-create table b15776 (data blob(-1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1))' at line 1
-create table b15776 (data blob(2147483648));
-drop table b15776;
-create table b15776 (data blob(4294967294));
-drop table b15776;
-create table b15776 (data blob(4294967295));
-drop table b15776;
-create table b15776 (data blob(4294967296));
-ERROR 42000: Display width out of range for 'data' (max = 4294967295)
-CREATE TABLE b15776 (a blob(2147483647), b blob(2147483648), c blob(4294967295), a1 text(2147483647), b1 text(2147483648), c1 text(4294967295) );
-show columns from b15776;
-Field Type Null Key Default Extra
-a longblob YES NULL
-b longblob YES NULL
-c longblob YES NULL
-a1 longtext YES NULL
-b1 longtext YES NULL
-c1 longtext YES NULL
-drop table b15776;
-CREATE TABLE b15776 (a blob(4294967296));
-ERROR 42000: Display width out of range for 'a' (max = 4294967295)
-CREATE TABLE b15776 (a text(4294967296));
-ERROR 42000: Display width out of range for 'a' (max = 4294967295)
-CREATE TABLE b15776 (a blob(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
-ERROR 42000: Display width out of range for 'a' (max = 4294967295)
-CREATE TABLE b15776 (a text(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
-ERROR 42000: Display width out of range for 'a' (max = 4294967295)
-CREATE TABLE b15776 (a int(0));
-INSERT INTO b15776 values (NULL), (1), (42), (654);
-SELECT * from b15776 ORDER BY a;
-a
-NULL
-1
-42
-654
-DROP TABLE b15776;
-CREATE TABLE b15776 (a int(-1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1))' at line 1
-CREATE TABLE b15776 (a int(255));
-DROP TABLE b15776;
-CREATE TABLE b15776 (a int(256));
-ERROR 42000: Display width out of range for 'a' (max = 255)
-CREATE TABLE b15776 (data blob(-1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1))' at line 1
-CREATE TABLE b15776 (a char(2147483647));
-ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead
-CREATE TABLE b15776 (a char(2147483648));
-ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead
-CREATE TABLE b15776 (a char(4294967295));
-ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead
-CREATE TABLE b15776 (a char(4294967296));
-ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead
-CREATE TABLE b15776 (a year(?));
-Warnings:
-Note 1287 'YEAR(?)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-INSERT INTO b15776 VALUES (42);
-SELECT * FROM b15776;
-a
-2042
-DROP TABLE b15776;
-CREATE TABLE b15776 (a year(4294967296));
-SHOW CREATE TABLE b15776;
-Table Create Table
-b15776 CREATE TABLE `b15776` (
- `a` year(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE b15776;
-CREATE TABLE b15776 (a year(0));
-Warnings:
-Note 1287 'YEAR(0)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-DROP TABLE b15776;
-CREATE TABLE b15776 (a year(-2));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-2))' at line 1
-CREATE TABLE b15776 (a timestamp(4294967294));
-ERROR 42000: Too big precision 4294967294 specified for 'a'. Maximum is 6
-CREATE TABLE b15776 (a timestamp(4294967295));
-ERROR 42000: Too big precision 4294967295 specified for 'a'. Maximum is 6
-CREATE TABLE b15776 (a timestamp(4294967296));
-ERROR 42000: Too big precision 4294967296 specified for 'a'. Maximum is 6
-CREATE TABLE b15776 (a timestamp(-1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1))' at line 1
-CREATE TABLE b15776 (a timestamp(-2));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-2))' at line 1
-CREATE TABLE b15776 (a int(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
-ERROR 42000: Display width out of range for 'a' (max = 255)
-CREATE TABLE b15776 (a char(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
-ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead
-CREATE TABLE b15776 (a year(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
-SHOW CREATE TABLE b15776;
-Table Create Table
-b15776 CREATE TABLE `b15776` (
- `a` year(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE b15776;
-CREATE TABLE b15776 select cast(null as char(4294967295));
-show columns from b15776;
-Field Type Null Key Default Extra
-cast(null as char(4294967295)) char(0) YES NULL
-drop table b15776;
-CREATE TABLE b15776 select cast(null as nchar(4294967295));
-show columns from b15776;
-Field Type Null Key Default Extra
-cast(null as nchar(4294967295)) char(0) YES NULL
-drop table b15776;
-CREATE TABLE b15776 select cast(null as binary(4294967295));
-show columns from b15776;
-Field Type Null Key Default Extra
-cast(null as binary(4294967295)) binary(0) YES NULL
-drop table b15776;
-explain select cast(1 as char(4294967295));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-explain select cast(1 as nchar(4294967295));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-explain select cast(1 as binary(4294967295));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-explain select cast(1 as char(4294967296));
-ERROR 42000: Display width out of range for '1' (max = 4294967295)
-explain select cast(1 as nchar(4294967296));
-ERROR 42000: Display width out of range for '1' (max = 4294967295)
-explain select cast(1 as binary(4294967296));
-ERROR 42000: Display width out of range for '1' (max = 4294967295)
-explain select cast(1 as decimal(-1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1))' at line 1
-explain select cast(1 as decimal(64, 30));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-explain select cast(1 as decimal(64, 999999999999999999999999999999));
-Got one of the listed errors
-explain select cast(1 as decimal(4294967296));
-Got one of the listed errors
-explain select cast(1 as decimal(999999999999999999999999999999999999));
-Got one of the listed errors
-explain select convert(1, char(4294967295));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-explain select convert(1, char(4294967296));
-ERROR 42000: Display width out of range for '1' (max = 4294967295)
-explain select convert(1, char(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
-ERROR 42000: Display width out of range for '1' (max = 4294967295)
-explain select convert(1, nchar(4294967295));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-explain select convert(1, nchar(4294967296));
-ERROR 42000: Display width out of range for '1' (max = 4294967295)
-explain select convert(1, nchar(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
-ERROR 42000: Display width out of range for '1' (max = 4294967295)
-explain select convert(1, binary(4294967295));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-explain select convert(1, binary(4294967296));
-ERROR 42000: Display width out of range for '1' (max = 4294967295)
-explain select convert(1, binary(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
-ERROR 42000: Display width out of range for '1' (max = 4294967295)
-End of 5.0 tests
-CREATE TABLE t1(id INT NOT NULL);
-CREATE TABLE t2(id INT NOT NULL, c TEXT NOT NULL);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (1, '');
-UPDATE t2 SET c = REPEAT('1', 70000);
-Warnings:
-Warning 1265 Data truncated for column 'c' at row 1
-SELECT LENGTH(c) FROM t2;
-LENGTH(c)
-65535
-UPDATE t1 LEFT JOIN t2 USING(id) SET t2.c = REPEAT('1', 70000) WHERE t1.id = 1;
-Warnings:
-Warning 1265 Data truncated for column 'c' at row 1
-SELECT LENGTH(c) FROM t2;
-LENGTH(c)
-65535
-DROP TABLE t1, t2;
-# Bug #52160: crash and inconsistent results when grouping
-# by a function and column
-CREATE FUNCTION f1() RETURNS TINYBLOB RETURN 1;
-CREATE TABLE t1(a CHAR(1));
-INSERT INTO t1 VALUES ('0'), ('0');
-SELECT COUNT(*) FROM t1 GROUP BY f1(), a;
-COUNT(*)
-2
-DROP FUNCTION f1;
-DROP TABLE t1;
-End of 5.1 tests
-#
-# Start of 5.5 tests
-#
-CREATE TABLE t1 ( f1 blob, f2 blob );
-INSERT INTO t1 VALUES ('','');
-SELECT f1,f2,"found row" FROM t1 WHERE f1 = f2 ;
-f1 f2 found row
- found row
-DROP TABLE t1;
-#
-# MDEV-9319 ALTER from a bigger to a smaller blob type truncates too much data
-#
-CREATE TABLE t1 (a MEDIUMBLOB);
-INSERT INTO t1 VALUES (REPEAT(0x61,128000));
-SELECT LENGTH(a) FROM t1;
-LENGTH(a)
-128000
-ALTER TABLE t1 MODIFY a BLOB;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT LENGTH(a) FROM t1;
-LENGTH(a)
-65535
-DROP TABLE t1;
-CREATE TABLE t1 (a BLOB);
-INSERT INTO t1 VALUES (REPEAT(0x61,65000));
-SELECT LENGTH(a) FROM t1;
-LENGTH(a)
-65000
-ALTER TABLE t1 MODIFY a TINYBLOB;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT LENGTH(a) FROM t1;
-LENGTH(a)
-255
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
diff --git a/mysql-test/r/type_date.result b/mysql-test/r/type_date.result
deleted file mode 100644
index 69bdf569787..00000000000
--- a/mysql-test/r/type_date.result
+++ /dev/null
@@ -1,891 +0,0 @@
-drop table if exists t1,t2;
-create table t1 (a char(16), b date, c datetime);
-insert into t1 SET a='test 2000-01-01', b='2000-01-01', c='2000-01-01';
-select * from t1 where c = '2000-01-01';
-a b c
-test 2000-01-01 2000-01-01 2000-01-01 00:00:00
-select * from t1 where b = '2000-01-01';
-a b c
-test 2000-01-01 2000-01-01 2000-01-01 00:00:00
-drop table t1;
-CREATE TABLE t1 (name char(6),cdate date);
-INSERT INTO t1 VALUES ('name1','1998-01-01');
-INSERT INTO t1 VALUES ('name2','1998-01-01');
-INSERT INTO t1 VALUES ('name1','1998-01-02');
-INSERT INTO t1 VALUES ('name2','1998-01-02');
-CREATE TABLE t2 (cdate date, note char(6));
-INSERT INTO t2 VALUES ('1998-01-01','note01');
-INSERT INTO t2 VALUES ('1998-01-02','note02');
-select name,t1.cdate,note from t1,t2 where t1.cdate=t2.cdate and t1.cdate='1998-01-01';
-name cdate note
-name1 1998-01-01 note01
-name2 1998-01-01 note01
-drop table t1,t2;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES(1);
-SELECT * FROM t1 WHERE LAST_DAY('0000-00-00 00:00:00') IS NULL;
-a
-1
-DROP TABLE t1;
-CREATE TABLE t1 ( datum DATE );
-INSERT INTO t1 VALUES ( "2000-1-1" );
-INSERT INTO t1 VALUES ( "2000-1-2" );
-INSERT INTO t1 VALUES ( "2000-1-3" );
-INSERT INTO t1 VALUES ( "2000-1-4" );
-INSERT INTO t1 VALUES ( "2000-1-5" );
-SELECT * FROM t1 WHERE datum BETWEEN cast("2000-1-2" as date) AND cast("2000-1-4" as date);
-datum
-2000-01-02
-2000-01-03
-2000-01-04
-SELECT * FROM t1 WHERE datum BETWEEN cast("2000-1-2" as date) AND datum - INTERVAL 100 DAY;
-datum
-DROP TABLE t1;
-CREATE TABLE t1 (
-user_id char(10),
-summa int(11),
-rdate date
-);
-INSERT INTO t1 VALUES ('aaa',100,'1998-01-01');
-INSERT INTO t1 VALUES ('aaa',200,'1998-01-03');
-INSERT INTO t1 VALUES ('bbb',50,'1998-01-02');
-INSERT INTO t1 VALUES ('bbb',200,'1998-01-04');
-select max(rdate) as s from t1 where rdate < '1998-01-03' having s> "1998-01-01";
-s
-1998-01-02
-select max(rdate) as s from t1 having s="1998-01-04";
-s
-1998-01-04
-select max(rdate+0) as s from t1 having s="19980104";
-s
-19980104
-drop table t1;
-create table t1 (date date);
-insert into t1 values ("2000-08-10"),("2000-08-11");
-select date_add(date,INTERVAL 1 DAY),date_add(date,INTERVAL 1 SECOND) from t1;
-date_add(date,INTERVAL 1 DAY) date_add(date,INTERVAL 1 SECOND)
-2000-08-11 2000-08-10 00:00:01
-2000-08-12 2000-08-11 00:00:01
-drop table t1;
-CREATE TABLE t1(AFIELD INT);
-INSERT INTO t1 VALUES(1);
-CREATE TABLE t2(GMT VARCHAR(32));
-INSERT INTO t2 VALUES('GMT-0800');
-SELECT DATE_FORMAT("2002-03-06 10:11:12", CONCAT('%a, %d %M %Y %H:%i:%s ', t2.GMT))
-FROM t1, t2 GROUP BY t1.AFIELD;
-DATE_FORMAT("2002-03-06 10:11:12", CONCAT('%a, %d %M %Y %H:%i:%s ', t2.GMT))
-Wed, 06 March 2002 10:11:12 GMT-0800
-INSERT INTO t1 VALUES(1);
-SELECT DATE_FORMAT("2002-03-06 10:11:12", CONCAT('%a, %d %M %Y %H:%i:%s ', t2.GMT)),
-DATE_FORMAT("2002-03-06 10:11:12", CONCAT('%a, %d %M %Y %H:%i:%s ', t2.GMT))
-FROM t1,t2 GROUP BY t1.AFIELD;
-DATE_FORMAT("2002-03-06 10:11:12", CONCAT('%a, %d %M %Y %H:%i:%s ', t2.GMT)) DATE_FORMAT("2002-03-06 10:11:12", CONCAT('%a, %d %M %Y %H:%i:%s ', t2.GMT))
-Wed, 06 March 2002 10:11:12 GMT-0800 Wed, 06 March 2002 10:11:12 GMT-0800
-drop table t1,t2;
-CREATE TABLE t1 (f1 time default NULL, f2 time default NULL);
-INSERT INTO t1 (f1, f2) VALUES ('09:00', '12:00');
-SELECT DATE_FORMAT(f1, "%l.%i %p") , DATE_FORMAT(f2, "%l.%i %p") FROM t1;
-DATE_FORMAT(f1, "%l.%i %p") DATE_FORMAT(f2, "%l.%i %p")
-9.00 AM 12.00 PM
-DROP TABLE t1;
-CREATE TABLE t1 (f1 DATE);
-CREATE TABLE t2 (f2 VARCHAR(8));
-CREATE TABLE t3 (f2 CHAR(8));
-INSERT INTO t1 VALUES ('1978-11-26');
-INSERT INTO t2 SELECT f1+0 FROM t1;
-INSERT INTO t2 SELECT f1+0 FROM t1 UNION SELECT f1+0 FROM t1;
-INSERT INTO t3 SELECT f1+0 FROM t1;
-INSERT INTO t3 SELECT f1+0 FROM t1 UNION SELECT f1+0 FROM t1;
-SELECT * FROM t2;
-f2
-19781126
-19781126
-SELECT * FROM t3;
-f2
-19781126
-19781126
-DROP TABLE t1, t2, t3;
-CREATE TABLE t1 (y YEAR);
-INSERT IGNORE INTO t1 VALUES ('abc');
-Warnings:
-Warning 1366 Incorrect integer value: 'abc' for column 'y' at row 1
-SELECT * FROM t1;
-y
-0000
-DROP TABLE t1;
-create table t1(start_date date, end_date date);
-insert into t1 values ('2000-01-01','2000-01-02');
-select 1 from t1 where cast('2000-01-01 12:01:01' as datetime) between start_date and end_date;
-1
-1
-drop table t1;
-select @d:=1111;
-@d:=1111
-1111
-select year(@d), month(@d), day(@d), cast(@d as date);
-year(@d) month(@d) day(@d) cast(@d as date)
-2000 11 11 2000-11-11
-select @d:=011111;
-@d:=011111
-11111
-select year(@d), month(@d), day(@d), cast(@d as date);
-year(@d) month(@d) day(@d) cast(@d as date)
-2001 11 11 2001-11-11
-select @d:=1311;
-@d:=1311
-1311
-select year(@d), month(@d), day(@d), cast(@d as date);
-year(@d) month(@d) day(@d) cast(@d as date)
-NULL NULL NULL NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '1311'
-Warning 1292 Incorrect datetime value: '1311'
-Warning 1292 Incorrect datetime value: '1311'
-Warning 1292 Incorrect datetime value: '1311'
-create table t1 (d date , dt datetime , ts timestamp);
-insert ignore into t1 values (9912101,9912101,9912101);
-Warnings:
-Warning 1265 Data truncated for column 'd' at row 1
-Warning 1265 Data truncated for column 'dt' at row 1
-Warning 1265 Data truncated for column 'ts' at row 1
-insert into t1 values (11111,11111,11111);
-select * from t1;
-d dt ts
-0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00
-2001-11-11 2001-11-11 00:00:00 2001-11-11 00:00:00
-drop table t1;
-CREATE TABLE t1 (
-a INT
-);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t1 VALUES (NULL);
-SELECT str_to_date( '', a ) FROM t1;
-str_to_date( '', a )
-0000-00-00 00:00:00.000000
-NULL
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE, b INT, PRIMARY KEY (a,b));
-SET timestamp=UNIX_TIMESTAMP('2016-07-21 14:48:18');
-INSERT INTO t1 VALUES (DATE(NOW()), 1);
-SELECT COUNT(*) FROM t1 WHERE a = NOW();
-COUNT(*)
-0
-EXPLAIN SELECT COUNT(*) FROM t1 WHERE a = NOW();
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-INSERT INTO t1 VALUES (DATE(NOW()), 2);
-SELECT COUNT(*) FROM t1 WHERE a = NOW();
-COUNT(*)
-0
-EXPLAIN SELECT COUNT(*) FROM t1 WHERE a = NOW();
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-SELECT COUNT(*) FROM t1 WHERE a = NOW() AND b = 1;
-COUNT(*)
-0
-EXPLAIN SELECT COUNT(*) FROM t1 WHERE a = NOW() AND b = 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-ALTER TABLE t1 DROP PRIMARY KEY;
-SELECT COUNT(*) FROM t1 WHERE a = NOW();
-COUNT(*)
-0
-EXPLAIN SELECT COUNT(*) FROM t1 WHERE a = NOW();
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-SET timestamp=DEFAULT;
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE);
-CREATE TABLE t2 (a DATE);
-CREATE INDEX i ON t1 (a);
-INSERT INTO t1 VALUES ('0000-00-00'),('0000-00-00');
-INSERT INTO t2 VALUES ('0000-00-00'),('0000-00-00');
-SELECT * FROM t1 WHERE a = '0000-00-00';
-a
-0000-00-00
-0000-00-00
-SELECT * FROM t2 WHERE a = '0000-00-00';
-a
-0000-00-00
-0000-00-00
-SET SQL_MODE=TRADITIONAL;
-EXPLAIN SELECT * FROM t1 WHERE a = '0000-00-00';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref i i 4 const 1 Using index
-SELECT * FROM t1 WHERE a = '0000-00-00';
-a
-0000-00-00
-0000-00-00
-SELECT * FROM t2 WHERE a = '0000-00-00';
-a
-0000-00-00
-0000-00-00
-INSERT INTO t1 VALUES ('0000-00-00');
-ERROR 22007: Incorrect date value: '0000-00-00' for column 'a' at row 1
-SET SQL_MODE=DEFAULT;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DATE);
-CREATE TABLE t2 (a DATE);
-CREATE INDEX i ON t1 (a);
-INSERT INTO t1 VALUES ('1000-00-00'),('1000-00-00');
-INSERT INTO t2 VALUES ('1000-00-00'),('1000-00-00');
-SELECT * FROM t1 WHERE a = '1000-00-00';
-a
-1000-00-00
-1000-00-00
-SELECT * FROM t2 WHERE a = '1000-00-00';
-a
-1000-00-00
-1000-00-00
-SET SQL_MODE=TRADITIONAL;
-EXPLAIN SELECT * FROM t1 WHERE a = '1000-00-00';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref i i 4 const 1 Using index
-SELECT * FROM t1 WHERE a = '1000-00-00';
-a
-1000-00-00
-1000-00-00
-SELECT * FROM t2 WHERE a = '1000-00-00';
-a
-1000-00-00
-1000-00-00
-INSERT INTO t1 VALUES ('1000-00-00');
-ERROR 22007: Incorrect date value: '1000-00-00' for column 'a' at row 1
-SET SQL_MODE=DEFAULT;
-DROP TABLE t1,t2;
-CREATE TABLE t1 SELECT curdate() AS f1;
-SELECT hour(f1), minute(f1), second(f1) FROM t1;
-hour(f1) minute(f1) second(f1)
-0 0 0
-DROP TABLE t1;
-End of 5.0 tests
-create table t1 (a date, primary key (a))engine=memory;
-insert into t1 values ('0000-01-01'), ('0000-00-01'), ('0001-01-01');
-select * from t1 where a between '0000-00-01' and '0000-00-02';
-a
-0000-00-01
-drop table t1;
-#
-# Bug#50918: Date columns treated differently in Views than in Base
-# Tables
-#
-CREATE TABLE t1 ( the_date DATE, the_time TIME );
-INSERT INTO t1 VALUES ( '2010-01-01', '01:01:01' );
-SELECT * FROM t1 t11 JOIN t1 t12 ON addtime( t11.the_date, t11.the_time ) =
-addtime( t12.the_date, t12.the_time );
-the_date the_time the_date the_time
-2010-01-01 01:01:01 2010-01-01 01:01:01
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM t1 JOIN v1 ON addtime( t1.the_date, t1.the_time ) =
-addtime( v1.the_date, v1.the_time );
-the_date the_time the_date the_time
-2010-01-01 01:01:01 2010-01-01 01:01:01
-SELECT * FROM t1 JOIN v1 ON addtime( t1.the_date, t1.the_time ) =
-addtime( cast(v1.the_date AS DATETIME), v1.the_time );
-the_date the_time the_date the_time
-2010-01-01 01:01:01 2010-01-01 01:01:01
-DROP TABLE t1;
-DROP VIEW v1;
-#
-# Bug#59685 crash in String::length with date types
-#
-CREATE TABLE t1(a DATE, b YEAR, KEY(a));
-INSERT INTO t1 VALUES ('2011-01-01',2011);
-SELECT b = (SELECT CONVERT(a, DATE) FROM t1 GROUP BY a) FROM t1;
-b = (SELECT CONVERT(a, DATE) FROM t1 GROUP BY a)
-0
-SELECT b = CONVERT((SELECT CONVERT(a, DATE) FROM t1 GROUP BY a), DATE) FROM t1;
-b = CONVERT((SELECT CONVERT(a, DATE) FROM t1 GROUP BY a), DATE)
-0
-DROP TABLE t1;
-End of 5.1 tests
-create table t1 (f1 date, key (f1));
-insert ignore t1 values ('2010-10-10 15:foobar');
-Warnings:
-Warning 1265 Data truncated for column 'f1' at row 1
-drop table t1;
-#
-# MDEV-4634 Crash in CONVERT_TZ
-#
-SELECT CONVERT_TZ(GREATEST(DATE('2021-00-00'),DATE('2022-00-00')),'+00:00','+7:5');
-CONVERT_TZ(GREATEST(DATE('2021-00-00'),DATE('2022-00-00')),'+00:00','+7:5')
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2022-00-00'
-#
-# MDEV-4804 Date comparing false result
-#
-SET @h0="20111107";
-SET @h1="0";
-SET @@timestamp=UNIX_TIMESTAMP('2013-08-19 20:30:00');
-SELECT
-COALESCE(DATE(@h0),DATE("1901-01-01")) AS h0d,
-COALESCE(DATE(@h1),DATE(NOW())) AS h1d,
-COALESCE(DATE(@h0),DATE("1901-01-01"))>COALESCE(DATE(@h1),DATE(NOW())) AS compare_h0_gt_h1;
-h0d h1d compare_h0_gt_h1
-2011-11-07 2013-08-19 0
-Warnings:
-Warning 1292 Incorrect datetime value: '0'
-Warning 1292 Incorrect datetime value: '0'
-SELECT
-DATE('20011107'),
-DATE('0'),
-COALESCE(DATE('0'),CURRENT_DATE) AS d1,
-DATE('20011107')>COALESCE(DATE('0'),CURRENT_DATE) AS cmp;
-DATE('20011107') DATE('0') d1 cmp
-2001-11-07 NULL 2013-08-19 0
-Warnings:
-Warning 1292 Incorrect datetime value: '0'
-Warning 1292 Incorrect datetime value: '0'
-Warning 1292 Incorrect datetime value: '0'
-SELECT
-DATE('20011107'),
-DATE('0'),
-IFNULL(DATE('0'),CURRENT_DATE) AS d1,
-DATE('20011107')>IFNULL(DATE('0'),CURRENT_DATE) AS cmp;
-DATE('20011107') DATE('0') d1 cmp
-2001-11-07 NULL 2013-08-19 0
-Warnings:
-Warning 1292 Incorrect datetime value: '0'
-Warning 1292 Incorrect datetime value: '0'
-Warning 1292 Incorrect datetime value: '0'
-#
-# MDEV-5041 Inserting a TIME with hour>24 into a DATETIME column produces a wrong value
-#
-SELECT CAST(TIME('-800:20:30') AS DATE);
-CAST(TIME('-800:20:30') AS DATE)
-2013-07-16
-SELECT CAST(TIME('800:20:30') AS DATE);
-CAST(TIME('800:20:30') AS DATE)
-2013-09-21
-SELECT CAST(TIME('33 08:20:30') AS DATE);
-CAST(TIME('33 08:20:30') AS DATE)
-2013-09-21
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES (TIME('800:20:30'));
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-INSERT INTO t1 VALUES (TIME('33 08:20:30'));
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SET SQL_MODE=NO_ZERO_IN_DATE;
-INSERT INTO t1 VALUES (TIME('48:20:30'));
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SET SQL_MODE=DEFAULT;
-SELECT * FROM t1;
-a
-2013-09-21
-2013-09-21
-2013-08-21
-DROP TABLE t1;
-CREATE PROCEDURE test5041()
-BEGIN
-DECLARE t TIME;
-DECLARE d DATE;
-SET t= TIME('800:00:00');
-SET d= t;
-SELECT d;
-END;|
-call test5041();
-d
-2013-09-21
-Warnings:
-Note 1265 Data truncated for column 'd' at row 1
-drop procedure test5041;
-SET @@timestamp=DEFAULT;
-#
-# End of 5.3 tests
-#
-#
-# Bug #33629: last_day function can return null, but has 'not null'
-# flag set for result
-#
-SELECT 1 FROM (SELECT LAST_DAY('0')) a;
-1
-1
-Warnings:
-Warning 1292 Incorrect datetime value: '0'
-SELECT 1 FROM (SELECT MAKEDATE(2011,0)) a;
-1
-1
-CREATE TABLE t1 AS
-SELECT LAST_DAY('1970-01-01') AS f1,
-MAKEDATE(1970, 1) AS f2;
-DESCRIBE t1;
-Field Type Null Key Default Extra
-f1 date YES NULL
-f2 date YES NULL
-DROP TABLE t1;
-#
-#
-# Bug#57278: Crash on min/max + with date out of range.
-#
-set @a=(select min(makedate('111','1'))) ;
-select @a;
-@a
-0111-01-01
-#
-#
-# BUG LP:1008487 virtual bool Item_cache::is_expensive(): Assertion `example' failed
-#
-SET TIMESTAMP=UNIX_TIMESTAMP('2017-01-03 00:00:00');
-create table t1(a date,key(a));
-insert into t1 values ('2012-01-01'),('2012-02-02');
-explain
-select 1 from t1 as t1_0 inner join t1 as t2 on (t1_0.a <=> now()) join t1 on 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1_0 ref a a 4 const 1 Using where; Using index
-1 SIMPLE t2 index NULL a 4 NULL 2 Using index; Using join buffer (flat, BNL join)
-1 SIMPLE t1 index NULL a 4 NULL 2 Using index; Using join buffer (incremental, BNL join)
-select 1 from t1 as t1_0 inner join t1 as t2 on (t1_0.a <=> now()) join t1 on 1;
-1
-SET TIMESTAMP=UNIX_TIMESTAMP('2012-01-03 00:00:01');
-explain
-select 1 from t1 as t1_0 inner join t1 as t2 on (t1_0.a <=> now()) join t1 on 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-select 1 from t1 as t1_0 inner join t1 as t2 on (t1_0.a <=> now()) join t1 on 1;
-1
-drop table t1;
-SET TIMESTAMP=DEFAULT;
-#
-# MDEV-9521 Least function returns 0000-00-00 for null date columns instead of null
-# MDEV-9972 Least function retuns date in date time format
-#
-CREATE TABLE t1 (
-id BIGINT NOT NULL,
-date_debut DATE NOT NULL,
-date_fin DATE DEFAULT NULL);
-CREATE TABLE t2(
-id BIGINT NOT NULL,
-date_debut DATE NOT NULL,
-date_fin DATE DEFAULT NULL);
-INSERT INTO t1 VALUES (1,'2016-01-01','2016-01-31');
-INSERT INTO t1 VALUES (2,'2016-02-01',null);
-INSERT INTO t1 VALUES (3,'2016-03-01','2016-03-31');
-INSERT INTO t1 VALUES (4,'2016-04-01',null);
-INSERT INTO t2 VALUES (1,'2016-01-01','2016-01-31');
-INSERT INTO t2 VALUES (2,'2016-02-01','2016-01-28');
-INSERT INTO t2 VALUES (3,'2016-03-01',null);
-INSERT INTO t2 VALUES (4,'2016-04-01',null);
-SELECT t1.id,
-GREATEST(t2.date_debut, t1.date_debut) AS date_debut,
-LEAST(IFNULL(t2.date_fin, IFNULL(t1.date_fin, NULL)),
-IFNULL(t1.date_fin, IFNULL(t2.date_fin, NULL))) AS date_fin
-FROM t1 LEFT JOIN t2 ON (t1.id=t2.id);
-id date_debut date_fin
-1 2016-01-01 2016-01-31
-2 2016-02-01 2016-01-28
-3 2016-03-01 2016-03-31
-4 2016-04-01 NULL
-DROP TABLE t1,t2;
-SELECT
-LEAST(COALESCE(DATE(NULL), DATE(NULL)), COALESCE(DATE(NULL), DATE(NULL))) AS d0,
-LEAST(IFNULL(DATE(NULL), DATE(NULL)), IFNULL(DATE(NULL), DATE(NULL))) AS d1;
-d0 d1
-NULL NULL
-#
-# MDEV-9511 Valgrind warnings 'Invalid read' in Field_newdate::cmp and Field_newdate::val_str
-#
-CREATE TABLE t1 (f1 DATE, f2 VARCHAR(1));
-INSERT INTO t1 VALUES ('2003-04-27','a'),('1900-01-01','a');
-SELECT GROUP_CONCAT(f2, IF(f1, f2, f1), f1 ORDER BY 2,1,3) FROM t1;
-GROUP_CONCAT(f2, IF(f1, f2, f1), f1 ORDER BY 2,1,3)
-aa1900-01-01,aa2003-04-27
-DROP TABLE t1;
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-7824 [Bug #68041] Zero date can be inserted in strict no-zero mode through a default value
-#
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a DATE DEFAULT '0000-00-00');
-SET sql_mode=TRADITIONAL;
-INSERT INTO t1 VALUES ('0000-00-00');
-ERROR 22007: Incorrect date value: '0000-00-00' for column 'a' at row 1
-INSERT INTO t1 VALUES ();
-ERROR 22007: Incorrect default value '0000-00-00' for column 'a'
-INSERT INTO t1 VALUES (DEFAULT);
-ERROR 22007: Incorrect default value '0000-00-00' for column 'a'
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a DATE NOT NULL DEFAULT '0000-00-00', b DATE NOT NULL DEFAULT '0000-00-00');
-CREATE TABLE t2 (a DATE NOT NULL DEFAULT '0000-00-00');
-INSERT INTO t2 VALUES ('0000-00-00');
-SET sql_mode=TRADITIONAL;
-INSERT INTO t1 (a) SELECT a FROM t2;
-ERROR 22007: Incorrect default value '0000-00-00' for column 'b'
-DROP TABLE t1, t2;
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a DATE DEFAULT '0000-00-00', b DATE DEFAULT '0000-00-00');
-INSERT INTO t1 VALUES (DEFAULT,DEFAULT);;
-SELECT a INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/mdev-7824.txt' FROM t1;
-DELETE FROM t1;
-SET sql_mode=TRADITIONAL;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/mdev-7824.txt' INTO TABLE t1 (a);
-ERROR 22007: Incorrect default value '0000-00-00' for column 'b'
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a DATE DEFAULT '0000-00-00');;
-SET sql_mode='NO_ZERO_DATE';
-ALTER TABLE t1 ADD b INT NOT NULL;
-ERROR 42000: Invalid default value for 'a'
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-#
-# End of MDEV-7824 [Bug #68041] Zero date can be inserted in strict no-zero mode through a default value
-#
-#
-# MDEV-8373 Zero date can be inserted in strict no-zero mode through CREATE TABLE AS SELECT timestamp_field
-#
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a DATE);;
-INSERT INTO t1 VALUES (0);
-SET sql_mode='TRADITIONAL';
-CREATE TABLE t2 AS SELECT * FROM t1;
-ERROR 22007: Incorrect date value: '0000-00-00' for column 'a' at row 1
-DROP TABLE t1;
-#
-# End of MDEV-8373 Zero date can be inserted in strict no-zero mode through CREATE TABLE AS SELECT timestamp_field
-#
-#
-# MDEV-8722 The patch for MDEV-8688 disabled equal field propagation for temporal column and BETWEEN and IN
-#
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('2001-01-01'),('2001-01-02');
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a BETWEEN '2001-01-01' AND '2001-01-02';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2001-01-01'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01' AND a IN ('2001-01-01','2001-01-02');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2001-01-01'
-DROP TABLE t1;
-#
-# MDEV-8699 Wrong result for SELECT..WHERE HEX(date_column)!='323030312D30312D3031' AND date_column='2001-01-01x'
-#
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('2001-01-01'),('2001-01-02');
-SELECT * FROM t1 WHERE a='2001-01-01x';
-a
-2001-01-01
-Warnings:
-Warning 1292 Truncated incorrect date value: '2001-01-01x'
-SELECT * FROM t1 WHERE HEX(a)!='323030312D30312D3031';
-a
-2001-01-02
-SELECT * FROM t1 WHERE HEX(a)!='323030312D30312D3031' AND a='2001-01-01x';
-a
-Warnings:
-Warning 1292 Truncated incorrect date value: '2001-01-01x'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE HEX(a)!='323030312D30312D3031' AND a='2001-01-01x';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Warning 1292 Truncated incorrect date value: '2001-01-01x'
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE HEX(a)!=CONCAT('xx',RAND()) AND a='2001-01-01x';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Warning 1292 Truncated incorrect date value: '2001-01-01x'
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2001-01-01' and <cache>(hex(DATE'2001-01-01')) <> concat('xx',rand())
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('2001-01-01'),('2001-01-02');
-SELECT * FROM t1 WHERE LENGTH(a)=11;
-a
-SELECT * FROM t1 WHERE LENGTH(a)=11 AND a=' 2001-01-01';
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=11 AND a=' 2001-01-01';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=11+RAND() AND a=' 2001-01-01';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2001-01-01' and <cache>(octet_length(DATE'2001-01-01')) = 11 + rand()
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=11+RAND() AND a=' garbage ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Warning 1292 Incorrect datetime value: ' garbage '
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'0000-00-00' and <cache>(octet_length(DATE'0000-00-00')) = 11 + rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('2001-01-01'),('2001-01-01');
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a='20010101';
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a='20010101';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8+RAND() AND a='20010101';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2001-01-01' and <cache>(octet_length(DATE'2001-01-01')) = 8 + rand()
-DROP TABLE t1;
-#
-# MDEV-8706 Wrong result for SELECT..WHERE time_column=TIMESTAMP'2015-08-30 00:00:00' AND time_column='00:00:00'
-#
-SET timestamp=UNIX_TIMESTAMP('2015-08-30 10:20:30');
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('2015-08-30'),('2015-08-31');
-SELECT * FROM t1 WHERE a=TIME'00:00:00';
-a
-2015-08-30
-SELECT * FROM t1 WHERE LENGTH(a)=10;
-a
-2015-08-30
-2015-08-31
-SELECT * FROM t1 WHERE LENGTH(a)=10 AND a=TIME'00:00:00';
-a
-2015-08-30
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=10 AND a=TIME'00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2015-08-30'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIME'00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2015-08-30' and <cache>(octet_length(DATE'2015-08-30')) = 30 + rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('2015-08-30'),('2015-08-31');
-SELECT * FROM t1 WHERE a=TIME'24:00:00';
-a
-2015-08-31
-SELECT * FROM t1 WHERE LENGTH(a)=10;
-a
-2015-08-30
-2015-08-31
-SELECT * FROM t1 WHERE LENGTH(a)=10 AND a=TIME'24:00:00';
-a
-2015-08-31
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=10 AND a=TIME'24:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2015-08-31'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIME'24:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2015-08-31' and <cache>(octet_length(DATE'2015-08-31')) = 30 + rand()
-DROP TABLE t1;
-# In this example '00:00:00' is not recognized as TIME'00:00:00'
-# and is treated as DATE'0000-00-00'.
-# This may change after MDEV-8322 Distinguish between time and date strings more carefully
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('2015-08-30'),('2015-08-31');
-SELECT * FROM t1 WHERE a='00:00:00';
-a
-SELECT * FROM t1 WHERE LENGTH(a)=10;
-a
-2015-08-30
-2015-08-31
-SELECT * FROM t1 WHERE LENGTH(a)=10 AND a='00:00:00';
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=10 AND a='00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'0000-00-00'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a='00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'0000-00-00' and <cache>(octet_length(DATE'0000-00-00')) = 30 + rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('2015-08-30'),('2015-08-31');
-SELECT * FROM t1 WHERE a=TIMESTAMP'2015-08-30 00:00:00';
-a
-2015-08-30
-SELECT * FROM t1 WHERE LENGTH(a)=10;
-a
-2015-08-30
-2015-08-31
-SELECT * FROM t1 WHERE LENGTH(a)=10 AND a=TIMESTAMP'2015-08-30 00:00:00';
-a
-2015-08-30
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=10 AND a=TIMESTAMP'2015-08-30 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2015-08-30 00:00:00'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIMESTAMP'2015-08-30 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2015-08-30 00:00:00' and <cache>(octet_length(DATE'2015-08-30')) = 30 + rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('2015-08-30'),('2015-08-31');
-SELECT * FROM t1 WHERE a=TIMESTAMP'2015-08-30 00:00:00.1';
-a
-SELECT * FROM t1 WHERE LENGTH(a)=10;
-a
-2015-08-30
-2015-08-31
-SELECT * FROM t1 WHERE LENGTH(a)=10 AND a=TIMESTAMP'2015-08-30 00:00:00.1';
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=10 AND a=TIMESTAMP'2015-08-30 00:00:00.1';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2015-08-30 00:00:00.1'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIMESTAMP'2015-08-30 00:00:00.1';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2015-08-30 00:00:00.1' and <cache>(octet_length(DATE'2015-08-30')) = 30 + rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('2015-08-30'),('2015-08-31');
-SELECT * FROM t1 WHERE a='2015-08-30 00:00:00';
-a
-2015-08-30
-SELECT * FROM t1 WHERE LENGTH(a)=10;
-a
-2015-08-30
-2015-08-31
-SELECT * FROM t1 WHERE LENGTH(a)=10 AND a='2015-08-30 00:00:00';
-a
-2015-08-30
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=10 AND a='2015-08-30 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2015-08-30'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a='2015-08-30 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2015-08-30' and <cache>(octet_length(DATE'2015-08-30')) = 30 + rand()
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-# MDEV-8795 Equal expression propagation does not work for temporal literals
-#
-CREATE TABLE t1 (a DATE);
-INSERT INTO t1 VALUES ('2001-01-01'),('2001-01-02');
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE COALESCE(a)=DATE'2001-01-01' AND COALESCE(a)>=DATE'2001-01-01';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = DATE'2001-01-01'
-DROP TABLE t1;
-#
-# MDEV-8658 DATE(zerofill_column) and DATE(COALESCE(zerofill_column)) return different results
-#
-CREATE TABLE t1 (a INT(6) ZEROFILL, b DECIMAL(6) ZEROFILL, c DOUBLE(6,0) ZEROFILL);
-INSERT INTO t1 VALUES (1,1,1);
-INSERT INTO t1 VALUES (10101,10101,10101);
-SELECT DATE(a), DATE(b), DATE(c) FROM t1;
-DATE(a) DATE(b) DATE(c)
-NULL NULL NULL
-2001-01-01 2001-01-01 2001-01-01
-Warnings:
-Warning 1292 Incorrect datetime value: '1' for column 'a' at row 1
-Warning 1292 Incorrect datetime value: '1' for column 'b' at row 1
-Warning 1292 Incorrect datetime value: '1' for column 'c' at row 1
-SELECT DATE(COALESCE(a)), DATE(COALESCE(b)), DATE(COALESCE(c)) FROM t1;
-DATE(COALESCE(a)) DATE(COALESCE(b)) DATE(COALESCE(c))
-NULL NULL NULL
-2001-01-01 2001-01-01 2001-01-01
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-Warning 1292 Incorrect datetime value: '1'
-Warning 1292 Incorrect datetime value: '1'
-DROP TABLE t1;
-CREATE TABLE t1 (a INT(6), b DECIMAL(6), c DOUBLE(6,0));
-INSERT INTO t1 VALUES (1,1,1);
-INSERT INTO t1 VALUES (10101,10101,10101);
-SELECT DATE(a), DATE(b), DATE(c) FROM t1;
-DATE(a) DATE(b) DATE(c)
-NULL NULL NULL
-2001-01-01 2001-01-01 2001-01-01
-Warnings:
-Warning 1292 Incorrect datetime value: '1' for column 'a' at row 1
-Warning 1292 Incorrect datetime value: '1' for column 'b' at row 1
-Warning 1292 Incorrect datetime value: '1' for column 'c' at row 1
-SELECT DATE(COALESCE(a)), DATE(COALESCE(b)), DATE(COALESCE(c)) FROM t1;
-DATE(COALESCE(a)) DATE(COALESCE(b)) DATE(COALESCE(c))
-NULL NULL NULL
-2001-01-01 2001-01-01 2001-01-01
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-Warning 1292 Incorrect datetime value: '1'
-Warning 1292 Incorrect datetime value: '1'
-DROP TABLE t1;
-#
-# MDEV-14221 Assertion `0' failed in Item::field_type_for_temporal_comparison
-#
-CREATE TABLE t1 (d DATE);
-INSERT INTO t1 VALUES ('1985-05-13'),('1989-12-24');
-SELECT d, COUNT(*) FROM t1 GROUP BY d WITH ROLLUP HAVING CASE d WHEN '2017-05-25' THEN 0 ELSE 1 END;
-d COUNT(*)
-1985-05-13 1
-1989-12-24 1
-NULL 2
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12721 Wrong execution plan for WHERE (date_field <=> timestamp_expr AND TRUE)
-#
-CREATE TABLE t1(a DATE,KEY(a));
-INSERT INTO t1 VALUES ('2012-01-01'),('2012-02-02');
-EXPLAIN SELECT 1 FROM t1 WHERE t1.a <=> TIMESTAMP'2001-01-01 00:00:01' AND TRUE;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT 1 FROM t1 WHERE t1.a <=> TIMESTAMP('2001-01-01', '00:00:01') AND TRUE;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT 1 FROM t1 WHERE t1.a <=> TIMESTAMP'2001-01-01 00:00:00' AND TRUE;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 4 const 1 Using where; Using index
-EXPLAIN SELECT 1 FROM t1 WHERE t1.a <=> TIMESTAMP('2001-01-01', '00:00:00') AND TRUE;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 4 const 1 Using where; Using index
-DROP TABLE t1;
-#
-# End of 10.3 tests
-#
diff --git a/mysql-test/r/type_datetime.result b/mysql-test/r/type_datetime.result
deleted file mode 100644
index 74b761a2e8f..00000000000
--- a/mysql-test/r/type_datetime.result
+++ /dev/null
@@ -1,1303 +0,0 @@
-drop table if exists t1;
-create table t1 (t datetime);
-insert into t1 values (101),(691231),(700101),(991231),(10000101),(99991231),(101000000),(691231000000),(700101000000),(991231235959),(10000101000000),(99991231235959),(20030100000000),(20030000000000);
-select * from t1;
-t
-2000-01-01 00:00:00
-2069-12-31 00:00:00
-1970-01-01 00:00:00
-1999-12-31 00:00:00
-1000-01-01 00:00:00
-9999-12-31 00:00:00
-2000-01-01 00:00:00
-2069-12-31 00:00:00
-1970-01-01 00:00:00
-1999-12-31 23:59:59
-1000-01-01 00:00:00
-9999-12-31 23:59:59
-2003-01-00 00:00:00
-2003-00-00 00:00:00
-delete from t1 where t > 0;
-optimize table t1;
-Table Op Msg_type Msg_text
-test.t1 optimize status OK
-check table t1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-delete from t1;
-insert into t1 values("000101"),("691231"),("700101"),("991231"),("00000101"),("00010101"),("99991231"),("00101000000"),("691231000000"),("700101000000"),("991231235959"),("10000101000000"),("99991231235959"),("20030100000000"),("20030000000000");
-insert into t1 values ("2003-003-03");
-insert into t1 values ("20030102T131415"),("2001-01-01T01:01:01"), ("2001-1-1T1:01:01");
-select * from t1;
-t
-2000-01-01 00:00:00
-2069-12-31 00:00:00
-1970-01-01 00:00:00
-1999-12-31 00:00:00
-0000-01-01 00:00:00
-0001-01-01 00:00:00
-9999-12-31 00:00:00
-2000-10-10 00:00:00
-2069-12-31 00:00:00
-1970-01-01 00:00:00
-1999-12-31 23:59:59
-1000-01-01 00:00:00
-9999-12-31 23:59:59
-2003-01-00 00:00:00
-2003-00-00 00:00:00
-2003-03-03 00:00:00
-2003-01-02 13:14:15
-2001-01-01 01:01:01
-2001-01-01 01:01:01
-truncate table t1;
-insert ignore into t1 values("2003-0303 12:13:14");
-Warnings:
-Warning 1265 Data truncated for column 't' at row 1
-select * from t1;
-t
-0000-00-00 00:00:00
-drop table t1;
-CREATE TABLE t1 (a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, b date, c time, d datetime);
-insert into t1 (b,c,d) values(now(),curtime(),now());
-Warnings:
-Note 1265 Data truncated for column 'b' at row 1
-select date_format(a,"%Y-%m-%d")=b,right(a+0,6)=c+0,a=d+0 from t1;
-date_format(a,"%Y-%m-%d")=b right(a+0,6)=c+0 a=d+0
-1 1 1
-drop table t1;
-CREATE TABLE t1 (a datetime not null);
-insert into t1 values (0);
-select * from t1 where a is null;
-a
-0000-00-00 00:00:00
-drop table t1;
-create table t1 (id int, dt datetime);
-insert into t1 values (1,"2001-08-14 00:00:00"),(2,"2001-08-15 00:00:00"),(3,"2001-08-16 00:00:00"),(4,"2003-09-15 01:20:30");
-select * from t1 where dt='2001-08-14 00:00:00' and dt = if(id=1,'2001-08-14 00:00:00','1999-08-15');
-id dt
-1 2001-08-14 00:00:00
-create index dt on t1 (dt);
-select * from t1 where dt > 20021020;
-id dt
-4 2003-09-15 01:20:30
-select * from t1 ignore index (dt) where dt > 20021020;
-id dt
-4 2003-09-15 01:20:30
-drop table t1;
-CREATE TABLE `t1` (
-`date` datetime NOT NULL default '0000-00-00 00:00:00',
-`numfacture` int(6) unsigned NOT NULL default '0',
-`expedition` datetime NOT NULL default '0000-00-00 00:00:00',
-PRIMARY KEY (`numfacture`),
-KEY `date` (`date`),
-KEY `expedition` (`expedition`)
-) ENGINE=MyISAM;
-INSERT INTO t1 (expedition) VALUES ('0001-00-00 00:00:00');
-SELECT * FROM t1 WHERE expedition='0001-00-00 00:00:00';
-date numfacture expedition
-0000-00-00 00:00:00 0 0001-00-00 00:00:00
-INSERT INTO t1 (numfacture,expedition) VALUES ('1212','0001-00-00 00:00:00');
-SELECT * FROM t1 WHERE expedition='0001-00-00 00:00:00';
-date numfacture expedition
-0000-00-00 00:00:00 0 0001-00-00 00:00:00
-0000-00-00 00:00:00 1212 0001-00-00 00:00:00
-EXPLAIN SELECT * FROM t1 WHERE expedition='0001-00-00 00:00:00';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref expedition expedition 5 const 1
-drop table t1;
-create table t1 (a datetime not null, b datetime not null);
-insert into t1 values (now(), now());
-insert into t1 values (now(), now());
-select * from t1 where a is null or b is null;
-a b
-drop table t1;
-create table t1 (t datetime);
-insert ignore into t1 values (20030102030460),(20030102036301),(20030102240401),
-(20030132030401),(20031302030401),(100001202030401);
-Warnings:
-Warning 1265 Data truncated for column 't' at row 1
-Warning 1265 Data truncated for column 't' at row 2
-Warning 1265 Data truncated for column 't' at row 3
-Warning 1265 Data truncated for column 't' at row 4
-Warning 1265 Data truncated for column 't' at row 5
-Warning 1265 Data truncated for column 't' at row 6
-select * from t1;
-t
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-delete from t1;
-insert ignore into t1 values
-("2003-01-02 03:04:60"),("2003-01-02 03:63:01"),("2003-01-02 24:04:01"),
-("2003-01-32 03:04:01"),("2003-13-02 03:04:01"), ("10000-12-02 03:04:00");
-Warnings:
-Warning 1265 Data truncated for column 't' at row 1
-Warning 1265 Data truncated for column 't' at row 2
-Warning 1265 Data truncated for column 't' at row 3
-Warning 1265 Data truncated for column 't' at row 4
-Warning 1265 Data truncated for column 't' at row 5
-Warning 1265 Data truncated for column 't' at row 6
-select * from t1;
-t
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-delete from t1;
-insert ignore into t1 values ("0000-00-00 00:00:00 some trailer"),("2003-01-01 00:00:00 some trailer");
-Warnings:
-Warning 1265 Data truncated for column 't' at row 1
-Warning 1265 Data truncated for column 't' at row 2
-select * from t1 order by t;
-t
-0000-00-00 00:00:00
-2003-01-01 00:00:00
-drop table t1;
-create table t1 (dt datetime);
-insert into t1 values ("12-00-00"), ("00-00-00 01:00:00");
-insert into t1 values ("00-00-00"), ("00-00-00 00:00:00");
-select * from t1;
-dt
-2012-00-00 00:00:00
-2000-00-00 01:00:00
-0000-00-00 00:00:00
-0000-00-00 00:00:00
-drop table t1;
-select cast('2006-12-05 22:10:10' as datetime) + 0;
-cast('2006-12-05 22:10:10' as datetime) + 0
-20061205221010
-CREATE TABLE t1(a DATETIME NOT NULL);
-INSERT INTO t1 VALUES ('20060606155555');
-SELECT a FROM t1 WHERE a=(SELECT MAX(a) FROM t1) AND (a="20060606155555");
-a
-2006-06-06 15:55:55
-PREPARE s FROM 'SELECT a FROM t1 WHERE a=(SELECT MAX(a) FROM t1) AND (a="20060606155555")';
-EXECUTE s;
-a
-2006-06-06 15:55:55
-DROP PREPARE s;
-DROP TABLE t1;
-SELECT CAST(CAST('2006-08-10' AS DATE) AS DECIMAL(20,6));
-CAST(CAST('2006-08-10' AS DATE) AS DECIMAL(20,6))
-20060810.000000
-SELECT CAST(CAST('2006-08-10 10:11:12' AS DATETIME(6)) AS DECIMAL(20,6));
-CAST(CAST('2006-08-10 10:11:12' AS DATETIME(6)) AS DECIMAL(20,6))
-20060810101112.000000
-SELECT CAST(CAST('2006-08-10 10:11:12' AS DATETIME(6)) + INTERVAL 14 MICROSECOND AS DECIMAL(20,6));
-CAST(CAST('2006-08-10 10:11:12' AS DATETIME(6)) + INTERVAL 14 MICROSECOND AS DECIMAL(20,6))
-20060810101112.000014
-SELECT CAST(CAST('10:11:12.098700' AS TIME(6)) AS DECIMAL(20,6));
-CAST(CAST('10:11:12.098700' AS TIME(6)) AS DECIMAL(20,6))
-101112.098700
-set @org_mode=@@sql_mode;
-create table t1 (da date default '1962-03-03 23:33:34', dt datetime default '1962-03-03');
-Warnings:
-Note 1265 Data truncated for column 'da' at row 1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `da` date DEFAULT '1962-03-03',
- `dt` datetime DEFAULT '1962-03-03 00:00:00'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ();
-insert into t1 values ('2007-03-23 13:49:38','2007-03-23 13:49:38');
-Warnings:
-Note 1265 Data truncated for column 'da' at row 1
-set @@sql_mode='ansi,traditional';
-insert into t1 values ('2007-03-23 13:49:38','2007-03-23 13:49:38');
-Warnings:
-Note 1265 Data truncated for column 'da' at row 1
-insert into t1 set dt='2007-03-23 13:49:38',da=dt;
-Warnings:
-Note 1265 Data truncated for column 'da' at row 1
-insert into t1 values ('2007-03-32','2007-03-23 13:49:38');
-ERROR 22007: Incorrect date value: '2007-03-32' for column 'da' at row 1
-select * from t1;
-da dt
-1962-03-03 1962-03-03 00:00:00
-2007-03-23 2007-03-23 13:49:38
-2007-03-23 2007-03-23 13:49:38
-2007-03-23 2007-03-23 13:49:38
-drop table t1;
-create table t1 (da date default '1962-03-32 23:33:34', dt datetime default '1962-03-03');
-ERROR 42000: Invalid default value for 'da'
-create table t1 (t time default '916:00:00 a');
-ERROR 42000: Invalid default value for 't'
-set @@sql_mode= @org_mode;
-create table t1 (f1 date, f2 datetime, f3 timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1(f1) values(curdate());
-select curdate() < now(), f1 < now(), cast(f1 as date) < now() from t1;
-curdate() < now() f1 < now() cast(f1 as date) < now()
-1 1 1
-delete from t1;
-insert into t1 values('2001-01-01','2001-01-01 01:01:01','2001-01-01 01:01:01');
-insert into t1 values('2001-02-05','2001-02-05 00:00:00','2001-02-05 01:01:01');
-insert into t1 values('2001-03-10','2001-03-09 01:01:01','2001-03-10 01:01:01');
-insert into t1 values('2001-04-15','2001-04-15 00:00:00','2001-04-15 00:00:00');
-insert into t1 values('2001-05-20','2001-05-20 01:01:01','2001-05-20 01:01:01');
-select f1, f3 from t1 where f1 >= '2001-02-05 00:00:00' and f3 <= '2001-04-15';
-f1 f3
-2001-02-05 2001-02-05 01:01:01
-2001-03-10 2001-03-10 01:01:01
-2001-04-15 2001-04-15 00:00:00
-select f1, f3 from t1 where f1 >= '2001-2-5 0:0:0' and f2 <= '2001-4-15';
-f1 f3
-2001-02-05 2001-02-05 01:01:01
-2001-03-10 2001-03-10 01:01:01
-2001-04-15 2001-04-15 00:00:00
-select f1, f2 from t1 where if(1, f1, 0) >= f2;
-f1 f2
-2001-02-05 2001-02-05 00:00:00
-2001-03-10 2001-03-09 01:01:01
-2001-04-15 2001-04-15 00:00:00
-select 1 from dual where cast('2001-1-1 2:3:4' as date) = cast('2001-01-01' as datetime);
-1
-1
-select f1, f2, f1 > f2, f1 = f2, f1 < f2 from t1;
-f1 f2 f1 > f2 f1 = f2 f1 < f2
-2001-01-01 2001-01-01 01:01:01 0 0 1
-2001-02-05 2001-02-05 00:00:00 0 1 0
-2001-03-10 2001-03-09 01:01:01 1 0 0
-2001-04-15 2001-04-15 00:00:00 0 1 0
-2001-05-20 2001-05-20 01:01:01 0 0 1
-drop table t1;
-create table t1 (f1 date, f2 datetime, f3 timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values('2001-01-01','2001-01-01 01:01:01','2001-01-01 01:01:01');
-insert into t1 values('2001-02-05','2001-02-05 00:00:00','2001-02-05 01:01:01');
-insert into t1 values('2001-03-10','2001-03-09 01:01:01','2001-03-10 01:01:01');
-insert into t1 values('2001-04-15','2001-04-15 00:00:00','2001-04-15 00:00:00');
-insert into t1 values('2001-05-20','2001-05-20 01:01:01','2001-05-20 01:01:01');
-select f2 from t1 where f2 between '2001-2-5' and '01-04-14';
-f2
-2001-02-05 00:00:00
-2001-03-09 01:01:01
-select f1, f2, f3 from t1 where f1 between f2 and f3;
-f1 f2 f3
-2001-02-05 2001-02-05 00:00:00 2001-02-05 01:01:01
-2001-03-10 2001-03-09 01:01:01 2001-03-10 01:01:01
-2001-04-15 2001-04-15 00:00:00 2001-04-15 00:00:00
-select f1, f2, f3 from t1 where cast(f1 as datetime) between f2 and
-cast(f3 as date);
-f1 f2 f3
-2001-02-05 2001-02-05 00:00:00 2001-02-05 01:01:01
-2001-03-10 2001-03-09 01:01:01 2001-03-10 01:01:01
-2001-04-15 2001-04-15 00:00:00 2001-04-15 00:00:00
-select f2 from t1 where '2001-04-10 12:34:56' between f2 and '01-05-01';
-f2
-2001-01-01 01:01:01
-2001-02-05 00:00:00
-2001-03-09 01:01:01
-select f2, f3 from t1 where '01-03-10' between f2 and f3;
-f2 f3
-2001-03-09 01:01:01 2001-03-10 01:01:01
-select f2 from t1 where DATE(f2) between "2001-4-15" AND "01-4-15";
-f2
-2001-04-15 00:00:00
-SELECT 1 from dual where NOW() BETWEEN CURRENT_DATE() - INTERVAL 1 DAY AND CURRENT_DATE();
-1
-drop table t1;
-create table t1 (f1 date);
-insert into t1 values('01-01-01'),('01-01-02'),('01-01-03');
-select * from t1 where f1 in ('01-01-01','2001-01-02','2001-01-03 00:00:00');
-f1
-2001-01-01
-2001-01-02
-2001-01-03
-create table t2(f2 datetime);
-insert into t2 values('01-01-01 00:00:00'),('01-02-03 12:34:56'),('02-04-06 11:22:33');
-select * from t2 where f2 in ('01-01-01','01-02-03 12:34:56','01-02-03');
-f2
-2001-01-01 00:00:00
-2001-02-03 12:34:56
-select * from t1,t2 where '01-01-02' in (f1, cast(f2 as date));
-f1 f2
-2001-01-02 2001-01-01 00:00:00
-2001-01-02 2001-02-03 12:34:56
-2001-01-02 2002-04-06 11:22:33
-select * from t1,t2 where '01-01-01' in (f1, '01-02-03');
-f1 f2
-2001-01-01 2001-01-01 00:00:00
-2001-01-01 2001-02-03 12:34:56
-2001-01-01 2002-04-06 11:22:33
-select * from t1,t2 where if(1,'01-02-03 12:34:56','') in (f1, f2);
-f1 f2
-2001-01-01 2001-02-03 12:34:56
-2001-01-02 2001-02-03 12:34:56
-2001-01-03 2001-02-03 12:34:56
-create table t3(f3 varchar(20));
-insert into t3 select * from t2;
-select * from t2,t3 where f2 in (f3,'03-04-05');
-f2 f3
-2001-01-01 00:00:00 2001-01-01 00:00:00
-2001-02-03 12:34:56 2001-02-03 12:34:56
-2002-04-06 11:22:33 2002-04-06 11:22:33
-select f1,f2,f3 from t1,t2,t3 where (f1,'1') in ((f2,'1'),(f3,'1'));
-f1 f2 f3
-2001-01-01 2001-01-01 00:00:00 2001-01-01 00:00:00
-2001-01-01 2001-02-03 12:34:56 2001-01-01 00:00:00
-2001-01-01 2002-04-06 11:22:33 2001-01-01 00:00:00
-2001-01-01 2001-01-01 00:00:00 2001-02-03 12:34:56
-2001-01-01 2001-01-01 00:00:00 2002-04-06 11:22:33
-select f1 from t1 where ('1',f1) in (('1','01-01-01'),('1','2001-1-1 0:0:0'),('1','02-02-02'));
-f1
-2001-01-01
-drop table t1,t2,t3;
-select least(cast('01-01-01' as date), '01-01-02');
-least(cast('01-01-01' as date), '01-01-02')
-2001-01-01
-select greatest(cast('01-01-01' as date), '01-01-02');
-greatest(cast('01-01-01' as date), '01-01-02')
-2001-01-02
-select least(cast('01-01-01' as date), '01-01-02') + 0;
-least(cast('01-01-01' as date), '01-01-02') + 0
-20010101
-select greatest(cast('01-01-01' as date), '01-01-02') + 0;
-greatest(cast('01-01-01' as date), '01-01-02') + 0
-20010102
-select least(cast('01-01-01' as datetime), '01-01-02') + 0;
-least(cast('01-01-01' as datetime), '01-01-02') + 0
-20010101000000.000000
-select cast(least(cast('01-01-01' as datetime), '01-01-02') as signed);
-cast(least(cast('01-01-01' as datetime), '01-01-02') as signed)
-20010101000000
-select cast(least(cast('01-01-01' as datetime), '01-01-02') as decimal(16,2));
-cast(least(cast('01-01-01' as datetime), '01-01-02') as decimal(16,2))
-20010101000000.00
-DROP PROCEDURE IF EXISTS test27759 ;
-CREATE PROCEDURE test27759()
-BEGIN
-declare v_a date default '2007-4-10';
-declare v_b date default '2007-4-11';
-declare v_c datetime default '2004-4-9 0:0:0';
-select v_a as a,v_b as b,
-least( v_a, v_b ) as a_then_b,
-least( v_b, v_a ) as b_then_a,
-least( v_c, v_a ) as c_then_a;
-END;|
-call test27759();
-a b a_then_b b_then_a c_then_a
-2007-04-10 2007-04-11 2007-04-10 2007-04-10 2004-04-09 00:00:00
-drop procedure test27759;
-create table t1 (f1 date);
-insert into t1 values (curdate());
-select left(f1,10) = curdate() from t1;
-left(f1,10) = curdate()
-1
-drop table t1;
-create table t1(f1 date);
-insert into t1 values('01-01-01'),('02-02-02'),('01-01-01'),('02-02-02');
-set @bug28261='';
-select if(@bug28261 = f1, '', @bug28261:= f1) from t1;
-if(@bug28261 = f1, '', @bug28261:= f1)
-2001-01-01
-2002-02-02
-2001-01-01
-2002-02-02
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-select if(@bug28261 = f1, '', @bug28261:= f1) from t1;
-if(@bug28261 = f1, '', @bug28261:= f1)
-2001-01-01
-2002-02-02
-2001-01-01
-2002-02-02
-select if(@bug28261 = f1, '', @bug28261:= f1) from t1;
-if(@bug28261 = f1, '', @bug28261:= f1)
-2001-01-01
-2002-02-02
-2001-01-01
-2002-02-02
-drop table t1;
-create table t1(f1 datetime);
-insert into t1 values('2001-01-01'),('2002-02-02');
-select * from t1 where f1 between 20020101 and 20070101000000;
-f1
-2002-02-02 00:00:00
-select * from t1 where f1 between 2002010 and 20070101000000;
-f1
-2001-01-01 00:00:00
-2002-02-02 00:00:00
-Warnings:
-Warning 1292 Incorrect datetime value: '2002010'
-select * from t1 where f1 between 20020101 and 2007010100000;
-f1
-Warnings:
-Warning 1292 Incorrect datetime value: '2007010100000'
-drop table t1;
-#
-# Bug#27216: functions with parameters of different date types may
-# return wrong type of the result.
-#
-create table t1 (f1 date, f2 datetime, f3 varchar(20));
-create table t2 as select coalesce(f1,f1) as f4 from t1;
-desc t2;
-Field Type Null Key Default Extra
-f4 date YES NULL
-create table t3 as select coalesce(f1,f2) as f4 from t1;
-desc t3;
-Field Type Null Key Default Extra
-f4 datetime YES NULL
-create table t4 as select coalesce(f2,f2) as f4 from t1;
-desc t4;
-Field Type Null Key Default Extra
-f4 datetime YES NULL
-create table t5 as select coalesce(f1,f3) as f4 from t1;
-desc t5;
-Field Type Null Key Default Extra
-f4 varchar(20) YES NULL
-create table t6 as select coalesce(f2,f3) as f4 from t1;
-desc t6;
-Field Type Null Key Default Extra
-f4 varchar(20) YES NULL
-create table t7 as select coalesce(makedate(1997,1),f2) as f4 from t1;
-desc t7;
-Field Type Null Key Default Extra
-f4 datetime YES NULL
-create table t8 as select coalesce(cast('01-01-01' as datetime),f2) as f4
-from t1;
-desc t8;
-Field Type Null Key Default Extra
-f4 datetime YES NULL
-create table t9 as select case when 1 then cast('01-01-01' as date)
-when 0 then cast('01-01-01' as date) end as f4 from t1;
-desc t9;
-Field Type Null Key Default Extra
-f4 date YES NULL
-create table t10 as select case when 1 then cast('01-01-01' as datetime)
-when 0 then cast('01-01-01' as datetime) end as f4 from t1;
-desc t10;
-Field Type Null Key Default Extra
-f4 datetime YES NULL
-create table t11 as select if(1, cast('01-01-01' as datetime),
-cast('01-01-01' as date)) as f4 from t1;
-desc t11;
-Field Type Null Key Default Extra
-f4 datetime YES NULL
-create table t12 as select least(cast('01-01-01' as datetime),
-cast('01-01-01' as date)) as f4 from t1;
-desc t12;
-Field Type Null Key Default Extra
-f4 datetime YES NULL
-create table t13 as select ifnull(cast('01-01-01' as datetime),
-cast('01-01-01' as date)) as f4 from t1;
-desc t13;
-Field Type Null Key Default Extra
-f4 datetime YES NULL
-drop tables t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13;
-###################################################################
-create table t1 (f1 time);
-insert into t1 set f1 = '45:44:44';
-insert into t1 set f1 = '15:44:44';
-select * from t1 where (convert(f1,datetime)) != 1;
-f1
-45:44:44
-15:44:44
-Warnings:
-Warning 1292 Incorrect datetime value: '1'
-drop table t1;
-create table t1 (a tinyint);
-insert into t1 values (), (), ();
-select sum(a) from t1 group by convert(a, datetime);
-sum(a)
-NULL
-drop table t1;
-create table t1 (id int(10) not null, cur_date datetime not null);
-create table t2 (id int(10) not null, cur_date date not null);
-insert into t1 (id, cur_date) values (1, '2007-04-25 18:30:22');
-insert into t2 (id, cur_date) values (1, '2007-04-25');
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='semijoin_with_cache=off';
-explain extended
-select * from t1
-where id in (select id from t1 as x1 where (t1.cur_date is null));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1276 Field or reference 'test.t1.cur_date' of SELECT #2 was resolved in SELECT #1
-Note 1003 select 1 AS `id`,'2007-04-25 18:30:22' AS `cur_date` from (dual) where 0
-select * from t1
-where id in (select id from t1 as x1 where (t1.cur_date is null));
-id cur_date
-explain extended
-select * from t2
-where id in (select id from t2 as x1 where (t2.cur_date is null));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Note 1276 Field or reference 'test.t2.cur_date' of SELECT #2 was resolved in SELECT #1
-Note 1003 select 1 AS `id`,'2007-04-25' AS `cur_date` from (dual) where 0
-select * from t2
-where id in (select id from t2 as x1 where (t2.cur_date is null));
-id cur_date
-insert into t1 (id, cur_date) values (2, '2007-04-26 18:30:22');
-insert into t2 (id, cur_date) values (2, '2007-04-26');
-explain extended
-select * from t1
-where id in (select id from t1 as x1 where (t1.cur_date is null));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 PRIMARY x1 ALL NULL NULL NULL NULL 2 100.00 Using where; Start temporary; End temporary
-Warnings:
-Note 1276 Field or reference 'test.t1.cur_date' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`t1`.`id` AS `id`,`test`.`t1`.`cur_date` AS `cur_date` from `test`.`t1` semi join (`test`.`t1` `x1`) where `test`.`x1`.`id` = `test`.`t1`.`id` and `test`.`t1`.`cur_date` = 0
-select * from t1
-where id in (select id from t1 as x1 where (t1.cur_date is null));
-id cur_date
-explain extended
-select * from t2
-where id in (select id from t2 as x1 where (t2.cur_date is null));
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 PRIMARY x1 ALL NULL NULL NULL NULL 2 100.00 Using where; Start temporary; End temporary
-Warnings:
-Note 1276 Field or reference 'test.t2.cur_date' of SELECT #2 was resolved in SELECT #1
-Note 1003 select `test`.`t2`.`id` AS `id`,`test`.`t2`.`cur_date` AS `cur_date` from `test`.`t2` semi join (`test`.`t2` `x1`) where `test`.`x1`.`id` = `test`.`t2`.`id` and `test`.`t2`.`cur_date` = 0
-select * from t2
-where id in (select id from t2 as x1 where (t2.cur_date is null));
-id cur_date
-SET optimizer_switch=@save_optimizer_switch;
-drop table t1,t2;
-SELECT
-CAST('NULL' AS DATE) <=> CAST('2008-01-01' AS DATE) n1,
-CAST('2008-01-01' AS DATE) <=> CAST('NULL' AS DATE) n2,
-CAST('NULL' AS DATE) <=> CAST('NULL' AS DATE) n3,
-CAST('NULL' AS DATE) <> CAST('2008-01-01' AS DATE) n4,
-CAST('2008-01-01' AS DATE) <> CAST('NULL' AS DATE) n5,
-CAST('NULL' AS DATE) <> CAST('NULL' AS DATE) n6,
-CAST('NULL' AS DATE) < CAST('2008-01-01' AS DATE) n7,
-CAST('2008-01-01' AS DATE) < CAST('NULL' AS DATE) n8,
-CAST('NULL' AS DATE) < CAST('NULL' AS DATE) n9;
-n1 n2 n3 n4 n5 n6 n7 n8 n9
-0 0 1 1 1 0 1 0 0
-Warnings:
-Warning 1292 Incorrect datetime value: 'NULL'
-Warning 1292 Incorrect datetime value: 'NULL'
-Warning 1292 Incorrect datetime value: 'NULL'
-Warning 1292 Incorrect datetime value: 'NULL'
-Warning 1292 Incorrect datetime value: 'NULL'
-Warning 1292 Incorrect datetime value: 'NULL'
-Warning 1292 Incorrect datetime value: 'NULL'
-Warning 1292 Incorrect datetime value: 'NULL'
-Warning 1292 Incorrect datetime value: 'NULL'
-Warning 1292 Incorrect datetime value: 'NULL'
-Warning 1292 Incorrect datetime value: 'NULL'
-Warning 1292 Incorrect datetime value: 'NULL'
-End of 5.0 tests
-set @org_mode=@@sql_mode;
-create table t1 (da date default '1962-03-03 23:33:34', dt datetime default '1962-03-03');
-Warnings:
-Note 1265 Data truncated for column 'da' at row 1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `da` date DEFAULT '1962-03-03',
- `dt` datetime DEFAULT '1962-03-03 00:00:00'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ();
-insert into t1 values ('2007-03-23 13:49:38','2007-03-23 13:49:38');
-Warnings:
-Note 1265 Data truncated for column 'da' at row 1
-set @@sql_mode='ansi,traditional';
-insert into t1 values ('2007-03-23 13:49:38','2007-03-23 13:49:38');
-Warnings:
-Note 1265 Data truncated for column 'da' at row 1
-insert into t1 set dt='2007-03-23 13:49:38',da=dt;
-Warnings:
-Note 1265 Data truncated for column 'da' at row 1
-insert into t1 values ('2007-03-32','2007-03-23 13:49:38');
-ERROR 22007: Incorrect date value: '2007-03-32' for column 'da' at row 1
-select * from t1;
-da dt
-1962-03-03 1962-03-03 00:00:00
-2007-03-23 2007-03-23 13:49:38
-2007-03-23 2007-03-23 13:49:38
-2007-03-23 2007-03-23 13:49:38
-drop table t1;
-create table t1 (da date default '1962-03-32 23:33:34', dt datetime default '1962-03-03');
-ERROR 42000: Invalid default value for 'da'
-create table t1 (t time default '916:00:00 a');
-ERROR 42000: Invalid default value for 't'
-set @@sql_mode= @org_mode;
-SELECT CAST(CAST('2006-08-10 10:11:12.0123450' AS DATETIME(6)) AS DECIMAL(30,7));
-CAST(CAST('2006-08-10 10:11:12.0123450' AS DATETIME(6)) AS DECIMAL(30,7))
-20060810101112.0123450
-Warnings:
-Note 1292 Truncated incorrect datetime value: '2006-08-10 10:11:12.0123450'
-SELECT CAST(CAST('00000002006-000008-0000010 000010:0000011:00000012.0123450' AS DATETIME(6)) AS DECIMAL(30,7));
-CAST(CAST('00000002006-000008-0000010 000010:0000011:00000012.0123450' AS DATETIME(6)) AS DECIMAL(30,7))
-20060810101112.0123450
-Warnings:
-Note 1292 Truncated incorrect datetime value: '00000002006-000008-0000010 000010:0000011:00000012.0123450'
-SELECT CAST(CAST('00000002006-000008-0000010 000010:0000011:00000012.012345' AS DATETIME(6)) AS DECIMAL(30,7));
-CAST(CAST('00000002006-000008-0000010 000010:0000011:00000012.012345' AS DATETIME(6)) AS DECIMAL(30,7))
-20060810101112.0123450
-SELECT CAST(CAST('2008-07-29T10:42:51.1234567' AS DateTime(6)) AS DECIMAL(30,7));
-CAST(CAST('2008-07-29T10:42:51.1234567' AS DateTime(6)) AS DECIMAL(30,7))
-20080729104251.1234560
-Warnings:
-Note 1292 Truncated incorrect datetime value: '2008-07-29T10:42:51.1234567'
-#
-# Bug#59173: Failure to handle DATE(TIME) values where Year, Month or
-# Day is ZERO
-#
-CREATE TABLE t1 (dt1 DATETIME);
-INSERT INTO t1 (dt1) VALUES ('0000-00-01 00:00:01');
-DELETE FROM t1 WHERE dt1 = '0000-00-01 00:00:01';
-# Should be empty
-SELECT * FROM t1;
-dt1
-DROP TABLE t1;
-End of 5.1 tests
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 10:20:30');
-create table t1 (d date, t time) engine=myisam;
-insert into t1 values ('2000-12-03','22:55:23'),('2008-05-03','10:19:31');
-select case when d = '2012-12-12' then d else t end as cond, group_concat( d ) from t1 group by cond;
-cond group_concat( d )
-2001-01-01 10:19:31 2008-05-03
-2001-01-01 22:55:23 2000-12-03
-drop table t1;
-SET timestamp=DEFAULT;
-#
-# Semantics of the condition <non-nullable datetime field> IS NULL
-# when the field belongs to an inner table of an outer join
-#
-create table t1 (a int, b date not null);
-insert t1 values (1, 0), (2, '1999-01-02');
-create table t2 (c int);
-insert t2 values (1),(3);
-select * from t2 left join t1 on t1.a=t2.c where t1.a is null;
-c a b
-3 NULL NULL
-select * from t2 left join t1 on t1.a=t2.c where t1.b is null;
-c a b
-1 1 0000-00-00
-3 NULL NULL
-drop table t1,t2;
-#
-# MDEV-4634 Crash in CONVERT_TZ
-#
-SELECT CONVERT_TZ(GREATEST(TIMESTAMP('2021-00-00'),TIMESTAMP('2022-00-00')),'+00:00','+7:5');
-CONVERT_TZ(GREATEST(TIMESTAMP('2021-00-00'),TIMESTAMP('2022-00-00')),'+00:00','+7:5')
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '2022-00-00 00:00:00'
-#
-# MDEV-5041 Inserting a TIME with hour>24 into a DATETIME column produces a wrong value
-#
-SET @@timestamp=UNIX_TIMESTAMP('2013-08-19 20:30:00');
-SELECT CAST(TIME('-800:20:30') AS DATETIME);
-CAST(TIME('-800:20:30') AS DATETIME)
-2013-07-16 15:39:30
-SELECT CAST(TIME('800:20:30') AS DATETIME);
-CAST(TIME('800:20:30') AS DATETIME)
-2013-09-21 08:20:30
-SELECT CAST(TIME('33 08:20:30') AS DATETIME);
-CAST(TIME('33 08:20:30') AS DATETIME)
-2013-09-21 08:20:30
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES (TIME('800:20:30'));
-INSERT INTO t1 VALUES (TIME('33 08:20:30'));
-SET SQL_MODE=NO_ZERO_IN_DATE;
-INSERT INTO t1 VALUES (TIME('48:20:30'));
-SET SQL_MODE=DEFAULT;
-SELECT * FROM t1;
-a
-2013-09-21 08:20:30
-2013-09-21 08:20:30
-2013-08-21 00:20:30
-DROP TABLE t1;
-CREATE PROCEDURE test5041()
-BEGIN
-DECLARE t TIME;
-DECLARE dt DATETIME;
-SET t= TIME('800:20:30');
-SET dt= t;
-SELECT dt;
-END;|
-call test5041();
-dt
-2013-09-21 08:20:30
-drop procedure test5041;
-SET @@timestamp=DEFAULT;
-#
-# MDEV-6097 Inconsistent results for CAST(int,decimal,double AS DATETIME)
-#
-SELECT
-CAST(010203101112 AS DATETIME(1)) AS c1,
-CAST(010203101112.2 AS DATETIME(1)) AS c2,
-CAST(010203101112.2+0e0 AS DATETIME(1)) AS c3;
-c1 c2 c3
-2001-02-03 10:11:12.0 2001-02-03 10:11:12.2 2001-02-03 10:11:12.2
-End of 5.3 tests
-#
-# Start of 5.5 tests
-#
-#
-# Bug#52849 datetime index not work
-#
-CREATE TABLE t1 (Id INT, AtTime DATETIME, KEY AtTime (AtTime));
-SET NAMES CP850;
-INSERT INTO t1 VALUES (1,'2010-04-12 22:30:12'), (2,'2010-04-12 22:30:12'), (3,'2010-04-12 22:30:12');
-EXPLAIN EXTENDED SELECT * FROM t1 FORCE INDEX(attime) WHERE AtTime = '2010-02-22 18:40:07';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ref AtTime AtTime 6 const 1 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`Id` AS `Id`,`test`.`t1`.`AtTime` AS `AtTime` from `test`.`t1` FORCE INDEX (`attime`) where `test`.`t1`.`AtTime` = TIMESTAMP'2010-02-22 18:40:07'
-DROP TABLE t1;
-SET NAMES latin1;
-#
-# Bug#56271: Wrong comparison result with STR_TO_DATE function
-#
-CREATE TABLE t1 (
-`year` int(4) NOT NULL,
-`month` int(2) NOT NULL
-);
-INSERT INTO t1 VALUES (2010,3),(2010,4),(2009,8),(2008,9);
-SELECT *
-FROM t1
-WHERE STR_TO_DATE(CONCAT_WS('/01/',`month`,`year`), '%m/%d/%Y') >=
-STR_TO_DATE('1/1/2010', '%m/%d/%Y');
-year month
-2010 3
-2010 4
-create table t2(f1 datetime primary key);
-insert into t2 select STR_TO_DATE(CONCAT_WS('/01/',`month`,`year`), '%m/%d/%Y') from t1;
-select * from t2 where f1=STR_TO_DATE('4/1/2010', '%m/%d/%Y');
-f1
-2010-04-01 00:00:00
-t2 should be const
-explain select * from t2 where f1=STR_TO_DATE('4/1/2010', '%m/%d/%Y');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 const PRIMARY PRIMARY 5 const 1 Using index
-DROP TABLE t1,t2;
-#
-# Bug#57095: Wrongly chosen expression cache type led to a wrong
-# result.
-#
-CREATE TABLE t1 (`b` datetime );
-INSERT INTO t1 VALUES ('2010-01-01 00:00:00'), ('2010-01-01 00:00:00');
-SELECT * FROM t1 WHERE b <= coalesce(NULL, now());
-b
-2010-01-01 00:00:00
-2010-01-01 00:00:00
-DROP TABLE t1;
-#
-#
-# BUG#12561818: RERUN OF STORED FUNCTION GIVES ERROR 1172:
-# RESULT CONSISTED OF MORE THAN ONE ROW
-#
-CREATE TABLE t1 (a DATE NOT NULL, b INT);
-INSERT INTO t1 VALUES ('0000-00-00',1), ('1999-05-10',2);
-CREATE TABLE t2 (a DATETIME NOT NULL, b INT);
-INSERT INTO t2 VALUES ('0000-00-00 00:00:00',1), ('1999-05-10 00:00:00',2);
-
-SELECT * FROM t1 WHERE a IS NULL;
-a b
-0000-00-00 1
-SELECT * FROM t2 WHERE a IS NULL;
-a b
-0000-00-00 00:00:00 1
-SELECT * FROM t1 LEFT JOIN t1 AS t1_2 ON 1 WHERE t1_2.a IS NULL;
-a b a b
-0000-00-00 1 0000-00-00 1
-1999-05-10 2 0000-00-00 1
-SELECT * FROM t2 LEFT JOIN t2 AS t2_2 ON 1 WHERE t2_2.a IS NULL;
-a b a b
-0000-00-00 00:00:00 1 0000-00-00 00:00:00 1
-1999-05-10 00:00:00 2 0000-00-00 00:00:00 1
-SELECT * FROM t1 JOIN t1 AS t1_2 ON 1 WHERE t1_2.a IS NULL;
-a b a b
-0000-00-00 1 0000-00-00 1
-1999-05-10 2 0000-00-00 1
-SELECT * FROM t2 JOIN t2 AS t2_2 ON 1 WHERE t2_2.a IS NULL;
-a b a b
-0000-00-00 00:00:00 1 0000-00-00 00:00:00 1
-1999-05-10 00:00:00 2 0000-00-00 00:00:00 1
-
-PREPARE stmt1 FROM
-'SELECT *
- FROM t1 LEFT JOIN t1 AS t1_2 ON 1
- WHERE t1_2.a IS NULL AND t1_2.b < 2';
-EXECUTE stmt1;
-a b a b
-0000-00-00 1 0000-00-00 1
-1999-05-10 2 0000-00-00 1
-EXECUTE stmt1;
-a b a b
-0000-00-00 1 0000-00-00 1
-1999-05-10 2 0000-00-00 1
-DEALLOCATE PREPARE stmt1;
-DROP TABLE t1,t2;
-#
-# MDEV-9374 having '2015-01-01 01:00:00.000001' > coalesce(NULL) returns true
-#
-CREATE TABLE t1 (c1 DATETIME(0));
-INSERT INTO t1 VALUES (NULL);
-SELECT * FROM t1 HAVING '2015-01-01 01:00:00.000001' > COALESCE(c1);
-c1
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-7824 [Bug #68041] Zero date can be inserted in strict no-zero mode through a default value
-#
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a DATETIME DEFAULT '0000-00-00 00:00:00');
-SET sql_mode=TRADITIONAL;
-INSERT INTO t1 VALUES ('0000-00-00 00:00:00');
-ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'a' at row 1
-INSERT INTO t1 VALUES ();
-ERROR 22007: Incorrect default value '0000-00-00 00:00:00' for column 'a'
-INSERT INTO t1 VALUES (DEFAULT);
-ERROR 22007: Incorrect default value '0000-00-00 00:00:00' for column 'a'
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', b DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00');
-CREATE TABLE t2 (a DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00');
-INSERT INTO t2 VALUES ('0000-00-00 00:00:00');
-SET sql_mode=TRADITIONAL;
-INSERT INTO t1 (a) SELECT a FROM t2;
-ERROR 22007: Incorrect default value '0000-00-00 00:00:00' for column 'b'
-DROP TABLE t1, t2;
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a DATETIME DEFAULT '0000-00-00 00:00:00', b DATETIME DEFAULT '0000-00-00 00:00:00');
-INSERT INTO t1 VALUES (DEFAULT,DEFAULT);;
-SELECT a INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/mdev-7824.txt' FROM t1;
-DELETE FROM t1;
-SET sql_mode=TRADITIONAL;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/mdev-7824.txt' INTO TABLE t1 (a);
-ERROR 22007: Incorrect default value '0000-00-00 00:00:00' for column 'b'
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a DATETIME DEFAULT '0000-00-00 00:00:00');;
-SET sql_mode='NO_ZERO_DATE';
-ALTER TABLE t1 ADD b INT NOT NULL;
-ERROR 42000: Invalid default value for 'a'
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-#
-# End of MDEV-7824 [Bug #68041] Zero date can be inserted in strict no-zero mode through a default value
-#
-#
-# MDEV-8373 Zero date can be inserted in strict no-zero mode through CREATE TABLE AS SELECT timestamp_field
-#
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a DATETIME);;
-INSERT INTO t1 VALUES (0);
-SET sql_mode='TRADITIONAL';
-CREATE TABLE t2 AS SELECT * FROM t1;
-ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'a' at row 1
-DROP TABLE t1;
-#
-# End of MDEV-8373 Zero date can be inserted in strict no-zero mode through CREATE TABLE AS SELECT timestamp_field
-#
-#
-# MDEV-8336 The meaning of NO_ZERO_DATE is not clear for DATETIME
-#
-SET sql_mode='NO_ZERO_DATE';
-SELECT TIMESTAMP'0000-00-01 10:20:30';
-TIMESTAMP'0000-00-01 10:20:30'
-0000-00-01 10:20:30
-SELECT TIMESTAMP'0000-00-00 10:20:30';
-TIMESTAMP'0000-00-00 10:20:30'
-0000-00-00 10:20:30
-SELECT TIMESTAMP'0000-00-00 00:00:00.000001';
-TIMESTAMP'0000-00-00 00:00:00.000001'
-0000-00-00 00:00:00.000001
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES ('0000-00-00 10:20:30');
-SELECT a, LEAST(a,'2001-01-01 10:20:30') FROM t1;
-a LEAST(a,'2001-01-01 10:20:30')
-0000-00-00 10:20:30 0000-00-00 10:20:30.000000
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME(6));
-INSERT INTO t1 VALUES ('0000-00-00 00:00:00.000001');
-SELECT a, LEAST(a,'2001-01-01 10:20:30') FROM t1;
-a LEAST(a,'2001-01-01 10:20:30')
-0000-00-00 00:00:00.000001 0000-00-00 00:00:00.000001
-DROP TABLE t1;
-SELECT STR_TO_DATE('0000-00-00 10:20:30','%Y-%m-%d %h:%i:%s');
-STR_TO_DATE('0000-00-00 10:20:30','%Y-%m-%d %h:%i:%s')
-0000-00-00 10:20:30
-SELECT STR_TO_DATE('0000-00-00 00:00:00.000001','%Y-%m-%d %H:%i:%s.%f');
-STR_TO_DATE('0000-00-00 00:00:00.000001','%Y-%m-%d %H:%i:%s.%f')
-0000-00-00 00:00:00.000001
-SET old_mode=zero_date_time_cast;
-SELECT CAST(TIME'10:20:30' AS DATETIME);
-CAST(TIME'10:20:30' AS DATETIME)
-0000-00-00 10:20:30
-SELECT CAST(TIME'00:00:00.000001' AS DATETIME(6));
-CAST(TIME'00:00:00.000001' AS DATETIME(6))
-0000-00-00 00:00:00.000001
-SELECT CAST(CAST('10:20:30' AS TIME) AS DATETIME);
-CAST(CAST('10:20:30' AS TIME) AS DATETIME)
-0000-00-00 10:20:30
-SELECT CAST(CAST('00:00:00.000001' AS TIME(6)) AS DATETIME(6));
-CAST(CAST('00:00:00.000001' AS TIME(6)) AS DATETIME(6))
-0000-00-00 00:00:00.000001
-SELECT CAST(CAST(TIMESTAMP'0000-00-00 10:20:30' AS TIME) AS DATETIME);
-CAST(CAST(TIMESTAMP'0000-00-00 10:20:30' AS TIME) AS DATETIME)
-0000-00-00 10:20:30
-SELECT CAST(CAST(TIMESTAMP'0000-00-00 00:00:00.000001' AS TIME(6)) AS DATETIME(6));
-CAST(CAST(TIMESTAMP'0000-00-00 00:00:00.000001' AS TIME(6)) AS DATETIME(6))
-0000-00-00 00:00:00.000001
-SET old_mode=DEFAULT;
-SET sql_mode=DEFAULT;
-#
-# MDEV-8699 Wrong result for SELECT..WHERE HEX(date_column)!='323030312D30312D3031' AND date_column='2001-01-01x'
-#
-CREATE TABLE t1 (a DATETIME);;
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00'),('2001-01-01 00:00:01');
-SELECT * FROM t1 WHERE a='2001-01-01 00:00:00x';
-a
-2001-01-01 00:00:00
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2001-01-01 00:00:00x'
-SELECT * FROM t1 WHERE LENGTH(a) != 20;
-a
-2001-01-01 00:00:00
-2001-01-01 00:00:01
-SELECT * FROM t1 WHERE LENGTH(a) != 20 AND a='2001-01-01 00:00:00x';
-a
-2001-01-01 00:00:00
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2001-01-01 00:00:00x'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a) != 20 AND a='2001-01-01 00:00:00x';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2001-01-01 00:00:00x'
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=30+RAND() AND a='2001-01-01 00:00:00x';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2001-01-01 00:00:00x'
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00' and <cache>(octet_length(TIMESTAMP'2001-01-01 00:00:00')) <> 30 + rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME);;
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00'),('2001-01-01 00:00:01');
-SELECT * FROM t1 WHERE LENGTH(a)=19;
-a
-2001-01-01 00:00:00
-2001-01-01 00:00:01
-SELECT * FROM t1 WHERE LENGTH(a)=19 AND a=' 2001-01-01 00:00:00';
-a
-2001-01-01 00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=19 AND a=' 2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=19+RAND() AND a=' 2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00' and <cache>(octet_length(TIMESTAMP'2001-01-01 00:00:00')) = 19 + rand()
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=' garbage ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Warning 1292 Incorrect datetime value: ' garbage '
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'0000-00-00 00:00:00' and <cache>(octet_length(TIMESTAMP'0000-00-00 00:00:00')) = 30 + rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME);;
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00'),('2001-01-01 00:00:01');
-SELECT * FROM t1 WHERE a=TIMESTAMP'2001-01-01 00:00:00.000000';
-a
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE LENGTH(a)=19;
-a
-2001-01-01 00:00:00
-2001-01-01 00:00:01
-SELECT * FROM t1 WHERE LENGTH(a)=19 AND a=TIMESTAMP'2001-01-01 00:00:00.000000';
-a
-2001-01-01 00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=19 AND a=TIMESTAMP'2001-01-01 00:00:00.000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00.000000'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIMESTAMP'2001-01-01 00:00:00.000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00.000000' and <cache>(octet_length(TIMESTAMP'2001-01-01 00:00:00')) = 30 + rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME(6));;
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00.000000'),('2001-01-01 00:00:01.000000');
-SELECT * FROM t1 WHERE a=TIMESTAMP'2001-01-01 00:00:00.000000';
-a
-2001-01-01 00:00:00.000000
-SELECT * FROM t1 WHERE LENGTH(a)=26;
-a
-2001-01-01 00:00:00.000000
-2001-01-01 00:00:01.000000
-SELECT * FROM t1 WHERE LENGTH(a)=26 AND a=TIMESTAMP'2001-01-01 00:00:00.000000';
-a
-2001-01-01 00:00:00.000000
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=26 AND a=TIMESTAMP'2001-01-01 00:00:00.000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00.000000'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=40+RAND() AND a=TIMESTAMP'2001-01-01 00:00:00.000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00.000000' and <cache>(octet_length(TIMESTAMP'2001-01-01 00:00:00.000000')) = 40 + rand()
-DROP TABLE t1;
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 10:20:30');
-CREATE TABLE t1 (a DATETIME);;
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00'),('2001-01-01 00:00:01');
-SELECT * FROM t1 WHERE a=TIME'00:00:00';
-a
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE LENGTH(a)=19;
-a
-2001-01-01 00:00:00
-2001-01-01 00:00:01
-SELECT * FROM t1 WHERE LENGTH(a)=19 AND a=TIME'00:00:00';
-a
-2001-01-01 00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=19 AND a=TIME'00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=40+RAND() AND a=TIME'00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00' and <cache>(octet_length(TIMESTAMP'2001-01-01 00:00:00')) = 40 + rand()
-DROP TABLE t1;
-#
-# MDEV-8795 Equal expression propagation does not work for temporal literals
-#
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00'),('2001-01-02 00:00:00');
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE COALESCE(a)=TIMESTAMP'2001-01-01 00:00:00' AND COALESCE(a)>=TIMESTAMP'2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = TIMESTAMP'2001-01-01 00:00:00'
-DROP TABLE t1;
-#
-# MDEV-8875 Wrong metadata for MAX(CAST(time_column AS DATETIME))
-#
-SET timestamp=UNIX_TIMESTAMP('2015-01-01 00:00:00');
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('00:00:00'),('00:01:00');
-SELECT MAX(CAST(a AS DATETIME)) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def MAX(CAST(a AS DATETIME)) 12 19 19 Y 128 0 63
-MAX(CAST(a AS DATETIME))
-2015-01-01 00:01:00
-CREATE TABLE t2 AS SELECT MAX(CAST(a AS DATETIME)) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `MAX(CAST(a AS DATETIME))` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-# MDEV-8860 Wrong result for WHERE 2016 < SOME (SELECT CAST(time_column AS DATETIME) FROM t1)
-#
-SET timestamp=UNIX_TIMESTAMP('2015-01-01 00:00:00');
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('00:00:00'),('00:01:00');
-SELECT 1 FROM t1 WHERE 2016 > SOME (SELECT CAST(a AS DATETIME) FROM t1);
-1
-Warnings:
-Warning 1292 Incorrect datetime value: '2016'
-SELECT * FROM t1 WHERE 2016 > CAST(a AS DATETIME);
-a
-Warnings:
-Warning 1292 Incorrect datetime value: '2016'
-SELECT 1 FROM t1 WHERE 20160101 > SOME (SELECT CAST(a AS DATETIME) FROM t1);
-1
-1
-1
-SELECT * FROM t1 WHERE 20160101 > CAST(a AS DATETIME);
-a
-00:00:00
-00:01:00
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9337 ALTER from DECIMAL and INT to DATETIME returns a wrong result
-#
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES (1000);
-SELECT * FROM t1;
-a
-2000-10-00 00:00:00
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME);
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 VALUES (1000);
-INSERT INTO t1 SELECT * FROM t2;
-SELECT * FROM t1;
-a
-2000-10-00 00:00:00
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1000);
-ALTER TABLE t1 MODIFY a DATETIME;
-SELECT * FROM t1;
-a
-2000-10-00 00:00:00
-DROP TABLE t1;
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES (1000.0);
-SELECT * FROM t1;
-a
-2000-10-00 00:00:00
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (a DATETIME);
-CREATE TABLE t2 (a DECIMAL(4,0));
-INSERT INTO t2 VALUES (1000);
-INSERT INTO t1 SELECT * FROM t2;
-SELECT * FROM t1;
-a
-2000-10-00 00:00:00
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DECIMAL(4,0));
-INSERT INTO t1 VALUES (1000);
-ALTER TABLE t1 MODIFY a DATETIME;
-SELECT * FROM t1;
-a
-2000-10-00 00:00:00
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-11331 Wrong result for INSERT INTO t1 (datetime_field) VALUES (hybrid_function_of_TIME_data_type)
-#
-SET timestamp=UNIX_TIMESTAMP('2001-02-03 10:00:00');
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES (TIME'10:20:30');
-INSERT INTO t1 VALUES (COALESCE(TIME'10:20:30'));
-INSERT INTO t1 VALUES (LEAST(TIME'10:20:30',TIME'10:20:30'));
-SELECT * FROM t1;
-a
-2001-02-03 10:20:30
-2001-02-03 10:20:30
-2001-02-03 10:20:30
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-# MDEV-15310 Range optimizer does not work well for "WHERE temporal_column NOT IN (const_list)"
-#
-#
-# DATETIME(0)
-#
-CREATE TABLE t1 (a DATETIME, filler CHAR(200), KEY(a));
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:02', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:03', 'yes');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:04', 'yes');
-EXPLAIN SELECT * FROM t1 WHERE a NOT IN ('2001-01-01 23:00:01','2001-01-01 23:00:02');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 6 NULL 5 Using index condition
-SELECT * FROM t1 WHERE a NOT IN ('2001-01-01 23:00:01','2001-01-01 23:00:02');
-a filler
-2001-01-01 23:00:03 yes
-2001-01-01 23:00:04 yes
-DROP TABLE t1;
-#
-# DATETIME(1)
-#
-CREATE TABLE t1 (a DATETIME(1), filler CHAR(200), KEY(a));
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:02.1', 'no');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:03.1', 'yes');
-INSERT INTO t1 VALUES ('2001-01-01 23:00:04.1', 'yes');
-EXPLAIN SELECT * FROM t1 WHERE a NOT IN ('2001-01-01 23:00:01.1','2001-01-01 23:00:02.1');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 7 NULL 5 Using index condition
-SELECT * FROM t1 WHERE a NOT IN ('2001-01-01 23:00:01.1','2001-01-01 23:00:02.1');
-a filler
-2001-01-01 23:00:03.1 yes
-2001-01-01 23:00:04.1 yes
-DROP TABLE t1;
-#
-# End of 10.3 tests
-#
diff --git a/mysql-test/r/type_datetime_hires.result b/mysql-test/r/type_datetime_hires.result
deleted file mode 100644
index 38e2c2a5ac8..00000000000
--- a/mysql-test/r/type_datetime_hires.result
+++ /dev/null
@@ -1,354 +0,0 @@
-SET timestamp=UNIX_TIMESTAMP('2001-02-03 10:20:30');
-drop table if exists t1, t2, t3;
-create table t1 (a datetime(7));
-ERROR 42000: Too big precision 7 specified for 'a'. Maximum is 6
-create table t1 (a datetime(3), key(a));
-insert t1 values ('2010-12-11 00:20:03.1234');
-insert t1 values ('2010-12-11 15:47:11.1234');
-insert t1 values (20101211010203.45678);
-insert t1 values (20101211030405.789e0);
-insert ignore t1 values (99991231235959e1);
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-0000-00-00 00:00:00.000
-2010-12-11 00:20:03.123
-2010-12-11 01:02:03.456
-2010-12-11 03:04:05.789
-2010-12-11 15:47:11.123
-select truncate(a, 6) from t1;
-truncate(a, 6)
-0.000000
-20101211002003.120000
-20101211010203.457031
-20101211030405.790000
-20101211154711.120000
-select a DIV 1 from t1;
-a DIV 1
-0
-20101211002003
-20101211010203
-20101211030405
-20101211154711
-select group_concat(distinct a) from t1;
-group_concat(distinct a)
-0000-00-00 00:00:00.000,2010-12-11 00:20:03.123,2010-12-11 01:02:03.456,2010-12-11 03:04:05.789,2010-12-11 15:47:11.123
-alter table t1 engine=innodb;
-select * from t1 order by a;
-a
-0000-00-00 00:00:00.000
-2010-12-11 00:20:03.123
-2010-12-11 01:02:03.456
-2010-12-11 03:04:05.789
-2010-12-11 15:47:11.123
-select * from t1 order by a+0;
-a
-0000-00-00 00:00:00.000
-2010-12-11 00:20:03.123
-2010-12-11 01:02:03.456
-2010-12-11 03:04:05.789
-2010-12-11 15:47:11.123
-drop table t1;
-create table t1 (a datetime(4)) engine=innodb;
-insert t1 values ('2010-12-11 01:02:03.456789');
-select * from t1;
-a
-2010-12-11 01:02:03.4567
-select extract(microsecond from a + interval 100 microsecond) from t1 where a>'2010-11-12 01:02:03.456';
-extract(microsecond from a + interval 100 microsecond)
-456800
-select a from t1 where a>'2010-11-12 01:02:03.456' group by a;
-a
-2010-12-11 01:02:03.4567
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` datetime(4) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-show columns from t1;
-Field Type Null Key Default Extra
-a datetime(4) YES NULL
-select table_name, column_name, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, datetime_precision, character_set_name, collation_name, column_type, column_key, extra from information_schema.columns where table_name='t1';
-table_name t1
-column_name a
-column_default NULL
-is_nullable YES
-data_type datetime
-character_maximum_length NULL
-character_octet_length NULL
-numeric_precision NULL
-numeric_scale NULL
-datetime_precision 4
-character_set_name NULL
-collation_name NULL
-column_type datetime(4)
-column_key
-extra
-select a, a+interval 9876543 microsecond from t1;
-a a+interval 9876543 microsecond
-2010-12-11 01:02:03.4567 2010-12-11 01:02:13.333243
-update t1 set a=a+interval 9876543 microsecond;
-select * from t1;
-a
-2010-12-11 01:02:13.3332
-select a, a + interval 2 year from t1;
-a a + interval 2 year
-2010-12-11 01:02:13.3332 2012-12-11 01:02:13.3332
-insert ignore t1 select a + interval 2 year from t1;
-select * from t1;
-a
-2010-12-11 01:02:13.3332
-2012-12-11 01:02:13.3332
-delete from t1 where a < 20110101;
-select * from t1;
-a
-2012-12-11 01:02:13.3332
-create table t2 select * from t1;
-create table t3 like t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` datetime(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` datetime(4) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-drop table t2, t3;
-insert t1 values ('2010-12-13 14:15:16.222222');
-select a, a+0, a-1, a*1, a/2 from t1;
-a a+0 a-1 a*1 a/2
-2012-12-11 01:02:13.3332 20121211010213.3332 20121211010212.3332 20121211010213.3332 10060605505106.66660000
-2010-12-13 14:15:16.2222 20101213141516.2222 20101213141515.2222 20101213141516.2222 10050606570758.11110000
-select max(a), min(a), sum(a), avg(a) from t1;
-max(a) min(a) sum(a) avg(a)
-2012-12-11 01:02:13.3332 2010-12-13 14:15:16.2222 40222424151729.5554 20111212075864.77770000
-create table t2 select a, a+0, a-1, a*1, a/2 from t1;
-create table t3 select max(a), min(a), sum(a), avg(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` datetime(4) DEFAULT NULL,
- `a+0` decimal(19,4) DEFAULT NULL,
- `a-1` decimal(19,4) DEFAULT NULL,
- `a*1` decimal(19,4) DEFAULT NULL,
- `a/2` decimal(22,8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `max(a)` datetime(4) DEFAULT NULL,
- `min(a)` datetime(4) DEFAULT NULL,
- `sum(a)` decimal(40,4) DEFAULT NULL,
- `avg(a)` decimal(22,8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2, t3;
-create table t1 (f0_datetime datetime(0), f1_datetime datetime(1), f2_datetime datetime(2), f3_datetime datetime(3), f4_datetime datetime(4), f5_datetime datetime(5), f6_datetime datetime(6));
-insert t1 values ( '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432');
-select * from t1;
-f0_datetime 2010-11-12 11:14:17
-f1_datetime 2010-11-12 11:14:17.7
-f2_datetime 2010-11-12 11:14:17.76
-f3_datetime 2010-11-12 11:14:17.765
-f4_datetime 2010-11-12 11:14:17.7654
-f5_datetime 2010-11-12 11:14:17.76543
-f6_datetime 2010-11-12 11:14:17.765432
-select cast(f0_datetime as time(4)) time4_f0_datetime, cast(f1_datetime as datetime(3)) datetime3_f1_datetime, cast(f2_datetime as date) date_f2_datetime, cast(f4_datetime as double) double_f3_datetime, cast(f4_datetime as decimal(40,5)) decimal5_f4_datetime, cast(f5_datetime as signed) bigint_f5_datetime, cast(f6_datetime as char(255)) varchar_f6_datetime from t1;
-time4_f0_datetime 11:14:17.0000
-datetime3_f1_datetime 2010-11-12 11:14:17.700
-date_f2_datetime 2010-11-12
-double_f3_datetime 20101112111417.766
-decimal5_f4_datetime 20101112111417.76540
-bigint_f5_datetime 20101112111417
-varchar_f6_datetime 2010-11-12 11:14:17.765432
-create table t2 (time4_f0_datetime time(4), datetime3_f1_datetime datetime(3), date_f2_datetime date, double_f3_datetime double, decimal5_f4_datetime decimal(40,5), bigint_f5_datetime bigint, varchar_f6_datetime varchar(255));
-insert t2 select * from t1;
-Warnings:
-Level Note
-Code 1265
-Message Data truncated for column 'time4_f0_datetime' at row 1
-Level Note
-Code 1265
-Message Data truncated for column 'date_f2_datetime' at row 1
-select * from t2;
-time4_f0_datetime 11:14:17.0000
-datetime3_f1_datetime 2010-11-12 11:14:17.700
-date_f2_datetime 2010-11-12
-double_f3_datetime 20101112111417.766
-decimal5_f4_datetime 20101112111417.76540
-bigint_f5_datetime 20101112111417
-varchar_f6_datetime 2010-11-12 11:14:17.765432
-alter table t1 change f0_datetime time4_f0_datetime time(4), change f1_datetime datetime3_f1_datetime datetime(3), change f2_datetime date_f2_datetime date, change f3_datetime double_f3_datetime double, change f4_datetime decimal5_f4_datetime decimal(40,5), change f5_datetime bigint_f5_datetime bigint, change f6_datetime varchar_f6_datetime varchar(255);
-Warnings:
-Level Note
-Code 1265
-Message Data truncated for column 'time4_f0_datetime' at row 1
-Level Note
-Code 1265
-Message Data truncated for column 'date_f2_datetime' at row 1
-select * from t1;
-time4_f0_datetime 11:14:17.0000
-datetime3_f1_datetime 2010-11-12 11:14:17.700
-date_f2_datetime 2010-11-12
-double_f3_datetime 20101112111417.766
-decimal5_f4_datetime 20101112111417.76540
-bigint_f5_datetime 20101112111417
-varchar_f6_datetime 2010-11-12 11:14:17.765432
-alter table t1 modify time4_f0_datetime datetime(0), modify datetime3_f1_datetime datetime(1), modify date_f2_datetime datetime(2), modify double_f3_datetime datetime(3), modify decimal5_f4_datetime datetime(4), modify bigint_f5_datetime datetime(5), modify varchar_f6_datetime datetime(6);
-select * from t1;
-time4_f0_datetime 2001-02-03 11:14:17
-datetime3_f1_datetime 2010-11-12 11:14:17.7
-date_f2_datetime 2010-11-12 00:00:00.00
-double_f3_datetime 2010-11-12 11:14:17.766
-decimal5_f4_datetime 2010-11-12 11:14:17.7654
-bigint_f5_datetime 2010-11-12 11:14:17.00000
-varchar_f6_datetime 2010-11-12 11:14:17.765432
-delete from t1;
-insert t1 select * from t2;
-select * from t1;
-time4_f0_datetime 2001-02-03 11:14:17
-datetime3_f1_datetime 2010-11-12 11:14:17.7
-date_f2_datetime 2010-11-12 00:00:00.00
-double_f3_datetime 2010-11-12 11:14:17.765
-decimal5_f4_datetime 2010-11-12 11:14:17.7654
-bigint_f5_datetime 2010-11-12 11:14:17.00000
-varchar_f6_datetime 2010-11-12 11:14:17.765432
-drop table t1, t2;
-create table t1 (a datetime(6), b datetime(6));
-create procedure foo(x datetime, y datetime(4)) insert into t1 values (x, y);
-call foo('2010-02-03 4:5:6.789123', '2010-02-03 4:5:6.789123');
-select * from t1;
-a b
-2010-02-03 04:05:06.000000 2010-02-03 04:05:06.789100
-create procedure bar(a int, c datetime(5))
-begin
-declare b datetime(4);
-set b = c + interval a microsecond;
-insert t1 values (b, c + interval a microsecond);
-end|
-call bar(1111111, '2011-01-02 3:4:5.123456');
-select * from t1;
-a b
-2010-02-03 04:05:06.000000 2010-02-03 04:05:06.789100
-2011-01-02 03:04:06.234500 2011-01-02 03:04:06.234561
-drop procedure foo;
-drop procedure bar;
-create function xyz(s char(20)) returns datetime(4)
-return addtime('2010-10-10 10:10:10.101010', s);
-select xyz('1:1:1.010101');
-xyz('1:1:1.010101')
-2010-10-10 11:11:11.1111
-drop function xyz;
-create view v1 as select * from t1 group by a,b;
-select * from v1;
-a b
-2010-02-03 04:05:06.000000 2010-02-03 04:05:06.789100
-2011-01-02 03:04:06.234500 2011-01-02 03:04:06.234561
-show columns from v1;
-Field Type Null Key Default Extra
-a datetime(6) YES NULL
-b datetime(6) YES NULL
-create table t2 select * from v1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` datetime(6) DEFAULT NULL,
- `b` datetime(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t2;
-a b
-2010-02-03 04:05:06.000000 2010-02-03 04:05:06.789100
-2011-01-02 03:04:06.234500 2011-01-02 03:04:06.234561
-drop view v1;
-drop table t1, t2;
-SET timestamp=DEFAULT;
-CREATE TABLE t1 (
-taken datetime(5) NOT NULL DEFAULT '0000-00-00 00:00:00',
-id int(11) NOT NULL DEFAULT '0',
-PRIMARY KEY (id,taken),
-KEY taken (taken)
-)
-PARTITION BY RANGE (to_days(taken))
-(
-PARTITION p01 VALUES LESS THAN (732920),
-PARTITION p02 VALUES LESS THAN (732950),
-PARTITION p03 VALUES LESS THAN MAXVALUE);
-INSERT INTO t1 VALUES
-('2006-09-27 21:50:01.123456',0),
-('2006-09-27 21:50:01.123456',1),
-('2006-09-27 21:50:01.123456',2),
-('2006-09-28 21:50:01.123456',3),
-('2006-09-29 21:50:01.123456',4),
-('2006-09-29 21:50:01.123456',5),
-('2006-09-30 21:50:01.123456',6),
-('2006-10-01 21:50:01.123456',7),
-('2006-10-02 21:50:01.123456',8),
-('2006-10-02 21:50:01.123456',9);
-SELECT id,to_days(taken) FROM t1 order by 2;
-id to_days(taken)
-0 732946
-1 732946
-2 732946
-3 732947
-5 732948
-4 732948
-6 732949
-7 732950
-8 732951
-9 732951
-CREATE TABLE t2 (
-taken datetime(5) NOT NULL DEFAULT '0000-00-00 00:00:00',
-id int(11) NOT NULL DEFAULT '0',
-PRIMARY KEY (id,taken),
-KEY taken (taken)
-)
-PARTITION BY RANGE (extract(microsecond from taken))
-(
-PARTITION p01 VALUES LESS THAN (123000),
-PARTITION p02 VALUES LESS THAN (500000),
-PARTITION p03 VALUES LESS THAN MAXVALUE);
-INSERT INTO t2 VALUES
-('2006-09-27 21:50:01',0),
-('2006-09-27 21:50:01.1',1),
-('2006-09-27 21:50:01.12',2),
-('2006-09-28 21:50:01.123',3),
-('2006-09-29 21:50:01.1234',4),
-('2006-09-29 21:50:01.12345',5),
-('2006-09-30 21:50:01.123456',6),
-('2006-10-01 21:50:01.56',7),
-('2006-10-02 21:50:01.567',8),
-('2006-10-02 21:50:01.5678',9);
-select table_name,partition_name,partition_method,partition_expression,partition_description,table_rows from information_schema.partitions where table_name in ('t1', 't2');
-table_name partition_name partition_method partition_expression partition_description table_rows
-t1 p01 RANGE to_days(`taken`) 732920 0
-t1 p02 RANGE to_days(`taken`) 732950 7
-t1 p03 RANGE to_days(`taken`) MAXVALUE 3
-t2 p01 RANGE extract(microsecond from `taken`) 123000 3
-t2 p02 RANGE extract(microsecond from `taken`) 500000 4
-t2 p03 RANGE extract(microsecond from `taken`) MAXVALUE 3
-drop table t1, t2;
-create table t1 (a datetime, b datetime(6));
-insert t1 values ('2010-01-02 03:04:05.678912', '2010-01-02 03:04:05.678912');
-update t1 set b=a;
-select * from t1;
-a b
-2010-01-02 03:04:05 2010-01-02 03:04:05.000000
-alter table t1 modify b datetime, modify a datetime(6);
-select * from t1;
-a b
-2010-01-02 03:04:05.000000 2010-01-02 03:04:05
-drop table t1;
-#
-# MDEV-4651 Crash in my_decimal2decimal in a ORDER BY query
-#
-SET @@time_zone='+00:00';
-CREATE TABLE t1 (a DATETIME(4) NOT NULL);
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00'),('2000-00-00 00:00:00');
-SELECT UNIX_TIMESTAMP(a) FROM t1 ORDER BY 1;
-UNIX_TIMESTAMP(a)
-NULL
-978307200.0000
-DROP TABLE t1;
-SET @@time_zone=DEFAULT;
diff --git a/mysql-test/r/type_decimal.result b/mysql-test/r/type_decimal.result
deleted file mode 100644
index f96f98e7a9b..00000000000
--- a/mysql-test/r/type_decimal.result
+++ /dev/null
@@ -1,1086 +0,0 @@
-DROP TABLE IF EXISTS t1, t2;
-SET SQL_WARNINGS=1;
-CREATE TABLE t1 (
-id int(11) NOT NULL auto_increment,
-datatype_id int(11) DEFAULT '0' NOT NULL,
-min_value decimal(20,10) DEFAULT '0.0000000000' NOT NULL,
-max_value decimal(20,10) DEFAULT '0.0000000000' NOT NULL,
-valuename varchar(20),
-forecolor int(11),
-backcolor int(11),
-PRIMARY KEY (id),
-UNIQUE datatype_id (datatype_id, min_value, max_value)
-);
-INSERT INTO t1 VALUES ( '1', '4', '0.0000000000', '0.0000000000', 'Ei saja', '0', '16776960');
-INSERT INTO t1 VALUES ( '2', '4', '1.0000000000', '1.0000000000', 'Sajab', '16777215', '255');
-INSERT INTO t1 VALUES ( '3', '1', '2.0000000000', '49.0000000000', '', '0', '16777215');
-INSERT INTO t1 VALUES ( '60', '11', '0.0000000000', '0.0000000000', 'Rikkis', '16777215', '16711680');
-INSERT INTO t1 VALUES ( '4', '12', '1.0000000000', '1.0000000000', 'nork sadu', '65280', '14474460');
-INSERT INTO t1 VALUES ( '5', '12', '2.0000000000', '2.0000000000', 'keskmine sadu', '255', '14474460');
-INSERT INTO t1 VALUES ( '6', '12', '3.0000000000', '3.0000000000', 'tugev sadu', '127', '14474460');
-INSERT INTO t1 VALUES ( '43', '39', '6.0000000000', '6.0000000000', 'lobjakas', '13107327', '16763080');
-INSERT INTO t1 VALUES ( '40', '39', '2.0000000000', '2.0000000000', 'vihm', '8355839', '16777215');
-INSERT INTO t1 VALUES ( '53', '1', '-35.0000000000', '-5.0000000000', '', '0', '16777215');
-INSERT INTO t1 VALUES ( '41', '39', '3.0000000000', '3.0000000000', 'külm vihm', '120', '16763080');
-INSERT INTO t1 VALUES ( '12', '21', '21.0000000000', '21.0000000000', 'Kuiv', '13158600', '16777215');
-INSERT INTO t1 VALUES ( '13', '21', '13.0000000000', '13.0000000000', 'Märg', '5263615', '16777215');
-INSERT INTO t1 VALUES ( '14', '21', '22.0000000000', '22.0000000000', 'Niiske', '9869055', '16777215');
-INSERT INTO t1 VALUES ( '19', '21', '33.0000000000', '33.0000000000', 'Märg', '5263615', '16777215');
-INSERT INTO t1 VALUES ( '15', '21', '23.0000000000', '23.0000000000', 'Märg', '5263615', '16777215');
-INSERT INTO t1 VALUES ( '16', '21', '31.0000000000', '31.0000000000', 'Kuiv', '13158600', '16777215');
-INSERT INTO t1 VALUES ( '17', '21', '12.0000000000', '12.0000000000', 'Niiske', '9869055', '16777215');
-INSERT INTO t1 VALUES ( '18', '21', '32.0000000000', '32.0000000000', 'Niiske', '9869055', '16777215');
-INSERT INTO t1 VALUES ( '20', '21', '331.0000000000', '331.0000000000', 'Härmatise hoiatus!', '14448840', '13158600');
-INSERT INTO t1 VALUES ( '21', '21', '11.0000000000', '11.0000000000', 'Kuiv', '13158600', '16777215');
-INSERT INTO t1 VALUES ( '22', '33', '21.0000000000', '21.0000000000', 'Pilves, kuiv', '8355711', '12632256');
-INSERT INTO t1 VALUES ( '23', '33', '13.0000000000', '13.0000000000', 'Sajab, märg', '0', '8355839');
-INSERT INTO t1 VALUES ( '24', '33', '22.0000000000', '22.0000000000', 'Pilves, niiske', '8355711', '12632319');
-INSERT INTO t1 VALUES ( '29', '33', '33.0000000000', '33.0000000000', 'Selge, märg', '16777215', '8355839');
-INSERT INTO t1 VALUES ( '25', '33', '23.0000000000', '23.0000000000', 'Pilves, märg', '8355711', '8355839');
-INSERT INTO t1 VALUES ( '26', '33', '31.0000000000', '31.0000000000', 'Selge, kuiv', '16777215', '12632256');
-INSERT INTO t1 VALUES ( '27', '33', '12.0000000000', '12.0000000000', 'Sajab, niiske', '0', '12632319');
-INSERT INTO t1 VALUES ( '28', '33', '32.0000000000', '32.0000000000', 'Selge, niiske', '16777215', '12632319');
-INSERT INTO t1 VALUES ( '30', '33', '331.0000000000', '331.0000000000', 'Härmatis! selge,kuiv', '16711680', '12632256');
-INSERT INTO t1 VALUES ( '31', '33', '11.0000000000', '11.0000000000', 'Sajab, kuiv', '0', '12632256');
-INSERT INTO t1 VALUES ( '32', '11', '1.0000000000', '1.0000000000', 'Korras', '16777215', '49152');
-INSERT INTO t1 VALUES ( '33', '21', '335.0000000000', '335.0000000000', 'Härmatis!', '14448840', '11842740');
-INSERT INTO t1 VALUES ( '34', '21', '134.0000000000', '134.0000000000', 'Hoiatus, M+S!', '255', '13158600');
-INSERT INTO t1 VALUES ( '35', '21', '133.0000000000', '133.0000000000', 'Hoiatus, märg!', '5263615', '13158600');
-INSERT INTO t1 VALUES ( '36', '21', '135.0000000000', '135.0000000000', 'Härmatis!', '14448840', '11842740');
-INSERT INTO t1 VALUES ( '37', '21', '334.0000000000', '334.0000000000', 'Härmatise hoiatus!', '14448840', '13158600');
-INSERT INTO t1 VALUES ( '38', '21', '132.0000000000', '132.0000000000', 'Hoiatus, niiske!', '9869055', '13158600');
-INSERT INTO t1 VALUES ( '39', '39', '1.0000000000', '1.0000000000', 'ei saja', '11206570', '16777215');
-INSERT INTO t1 VALUES ( '44', '39', '4.0000000000', '5.0000000000', 'lumi', '16711680', '16763080');
-INSERT INTO t1 VALUES ( '45', '12', '0.0000000000', '0.0000000000', '', '16777215', '14474460');
-INSERT INTO t1 VALUES ( '46', '39', '8.0000000000', '8.0000000000', 'rahe', '9830400', '16763080');
-INSERT INTO t1 VALUES ( '47', '39', '9.0000000000', '9.0000000000', 'tüüp ebaselge', '12582912', '16777215');
-INSERT INTO t1 VALUES ( '48', '39', '7.0000000000', '7.0000000000', 'lumetuisk', '7209070', '16763080');
-INSERT INTO t1 VALUES ( '142', '15', '2.0000000000', '49.0000000000', '', '0', '16777215');
-INSERT INTO t1 VALUES ( '52', '1', '-4.9000000000', '-0.1000000000', '', '0', '15774720');
-INSERT INTO t1 VALUES ( '141', '15', '-4.9000000000', '-0.1000000000', '', '0', '15774720');
-INSERT INTO t1 VALUES ( '55', '8', '0.0000000000', '0.0000000000', '', '0', '16777215');
-INSERT INTO t1 VALUES ( '56', '8', '0.0100000000', '0.1000000000', '', '0', '16770560');
-INSERT INTO t1 VALUES ( '57', '8', '0.1100000000', '25.0000000000', '', '0', '15774720');
-INSERT INTO t1 VALUES ( '58', '2', '90.0000000000', '94.9000000000', '', NULL, '16770560');
-INSERT INTO t1 VALUES ( '59', '6', '0.0000000000', '360.0000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '61', '21', '38.0000000000', '38.0000000000', 'Niiske', '9869055', '16777215');
-INSERT INTO t1 VALUES ( '62', '38', '500.0000000000', '999.0000000000', '', '0', '16770560');
-INSERT INTO t1 VALUES ( '63', '38', '1000.0000000000', '2000.0000000000', '', '0', '16777215');
-INSERT INTO t1 VALUES ( '64', '17', '0.0000000000', '0.0000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '65', '17', '0.1000000000', '10.0000000000', '', NULL, '16770560');
-INSERT INTO t1 VALUES ( '67', '21', '412.0000000000', '412.0000000000', 'Niiske', '9869055', '16777215');
-INSERT INTO t1 VALUES ( '68', '21', '413.0000000000', '413.0000000000', 'Märg', '5263615', '16777215');
-INSERT INTO t1 VALUES ( '69', '21', '113.0000000000', '113.0000000000', 'Märg', '5263615', '16777215');
-INSERT INTO t1 VALUES ( '70', '21', '416.0000000000', '416.0000000000', 'Lumine!', '16711680', '11842740');
-INSERT INTO t1 VALUES ( '71', '38', '0.0000000000', '499.0000000000', '', NULL, '16711680');
-INSERT INTO t1 VALUES ( '72', '22', '-49.0000000000', '49.0000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '73', '13', '0.0000000000', '9.9000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '74', '13', '10.0000000000', '14.9000000000', '', NULL, '16770560');
-INSERT INTO t1 VALUES ( '75', '7', '0.0000000000', '50.0000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '76', '18', '0.0000000000', '0.0000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '77', '18', '0.1000000000', '10.0000000000', '', NULL, '16770560');
-INSERT INTO t1 VALUES ( '78', '19', '300.0000000000', '400.0000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '79', '19', '0.0000000000', '299.0000000000', '', NULL, '16770560');
-INSERT INTO t1 VALUES ( '80', '23', '0.0000000000', '100.0000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '81', '24', '0.0000000000', '200.0000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '82', '26', '0.0000000000', '0.0000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '83', '26', '0.1000000000', '5.0000000000', '', NULL, '16776960');
-INSERT INTO t1 VALUES ( '84', '21', '422.0000000000', '422.0000000000', 'Niiske', '9869055', '16777215');
-INSERT INTO t1 VALUES ( '85', '21', '411.0000000000', '411.0000000000', 'Saju hoiat.,kuiv!', '16777215', '13158600');
-INSERT INTO t1 VALUES ( '86', '21', '423.0000000000', '423.0000000000', 'Märg', '5263615', '16777215');
-INSERT INTO t1 VALUES ( '144', '16', '-49.0000000000', '-5.0000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '88', '16', '2.0000000000', '49.0000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '89', '21', '338.0000000000', '338.0000000000', 'Härm.hoiatus, N+S!', '16744319', '13158600');
-INSERT INTO t1 VALUES ( '90', '21', '332.0000000000', '332.0000000000', 'Härm.hoiat., niiske!', '16744319', '13158600');
-INSERT INTO t1 VALUES ( '91', '21', '114.0000000000', '114.0000000000', 'Hoiatus, M+S!', '255', '13158600');
-INSERT INTO t1 VALUES ( '92', '21', '117.0000000000', '117.0000000000', 'Hoiatus, JÄÄ!', '14448840', '16711680');
-INSERT INTO t1 VALUES ( '93', '21', '116.0000000000', '116.0000000000', 'Lumine!', '16711680', '11842740');
-INSERT INTO t1 VALUES ( '94', '21', '414.0000000000', '414.0000000000', 'Hoiatus, M+S!', '255', '13158600');
-INSERT INTO t1 VALUES ( '95', '21', '325.0000000000', '325.0000000000', 'Härmatis!', '14448840', '11842740');
-INSERT INTO t1 VALUES ( '96', '21', '321.0000000000', '321.0000000000', 'Härmatise hoiatus!', '14448840', '13158600');
-INSERT INTO t1 VALUES ( '97', '21', '328.0000000000', '328.0000000000', 'Härm.hoiatus, N+S!', '16744319', '13158600');
-INSERT INTO t1 VALUES ( '98', '21', '28.0000000000', '28.0000000000', 'Niiske ja sool', '9869055', '16777215');
-INSERT INTO t1 VALUES ( '99', '21', '118.0000000000', '118.0000000000', 'Hoiatus, N+S!', '9869055', '13158600');
-INSERT INTO t1 VALUES ( '100', '21', '418.0000000000', '418.0000000000', 'Hoiatus, N+S!', '9869055', '13158600');
-INSERT INTO t1 VALUES ( '101', '21', '322.0000000000', '322.0000000000', 'Härm.hoiat., niiske!', '16744319', '13158600');
-INSERT INTO t1 VALUES ( '102', '21', '428.0000000000', '428.0000000000', 'Hoiatus, N+S!', '9869055', '13158600');
-INSERT INTO t1 VALUES ( '103', '21', '432.0000000000', '432.0000000000', 'Hoiatus, niiske!', '7895240', '13158600');
-INSERT INTO t1 VALUES ( '104', '21', '421.0000000000', '421.0000000000', 'Saju hoiat.,kuiv!', '16777215', '13158600');
-INSERT INTO t1 VALUES ( '105', '21', '24.0000000000', '24.0000000000', 'Märg ja sool', '255', '16777215');
-INSERT INTO t1 VALUES ( '106', '21', '438.0000000000', '438.0000000000', 'Hoiatus, N+S!', '9869055', '13158600');
-INSERT INTO t1 VALUES ( '107', '21', '112.0000000000', '112.0000000000', 'Hoiatus, niiske!', '9869055', '13158600');
-INSERT INTO t1 VALUES ( '108', '21', '34.0000000000', '34.0000000000', 'Märg ja sool', '255', '16777215');
-INSERT INTO t1 VALUES ( '109', '21', '434.0000000000', '434.0000000000', 'Hoiatus, M+S!', '255', '13158600');
-INSERT INTO t1 VALUES ( '110', '21', '124.0000000000', '124.0000000000', 'Hoiatus, M+S!', '255', '13158600');
-INSERT INTO t1 VALUES ( '111', '21', '424.0000000000', '424.0000000000', 'Hoiatus, M+S!', '255', '13158600');
-INSERT INTO t1 VALUES ( '112', '21', '123.0000000000', '123.0000000000', 'Hoiatus, märg!', '5263615', '13158600');
-INSERT INTO t1 VALUES ( '140', '15', '-49.0000000000', '-5.0000000000', '', '0', '16777215');
-INSERT INTO t1 VALUES ( '114', '21', '18.0000000000', '18.0000000000', 'Niiske ja sool', '9869055', '16777215');
-INSERT INTO t1 VALUES ( '115', '21', '122.0000000000', '122.0000000000', 'Hoiatus, niiske!', '9869055', '13158600');
-INSERT INTO t1 VALUES ( '116', '21', '14.0000000000', '14.0000000000', 'Märg ja sool', '255', '16777215');
-INSERT INTO t1 VALUES ( '117', '21', '311.0000000000', '311.0000000000', 'Härmatise hoiatus!', '14448840', '13158600');
-INSERT INTO t1 VALUES ( '121', '2', '95.0000000000', '100.0000000000', '', NULL, '15774720');
-INSERT INTO t1 VALUES ( '118', '2', '0.0000000000', '89.9000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '119', '21', '16.0000000000', '16.0000000000', 'Lumine!', '16711680', '11842740');
-INSERT INTO t1 VALUES ( '120', '21', '26.0000000000', '26.0000000000', 'Lumine!', '16711680', '11842740');
-INSERT INTO t1 VALUES ( '122', '13', '15.0000000000', '50.0000000000', '', NULL, '15774720');
-INSERT INTO t1 VALUES ( '123', '5', '0.0000000000', '9.9000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '124', '5', '10.0000000000', '14.9000000000', '', NULL, '16770560');
-INSERT INTO t1 VALUES ( '125', '5', '15.0000000000', '50.0000000000', '', NULL, '15774720');
-INSERT INTO t1 VALUES ( '126', '21', '128.0000000000', '128.0000000000', 'Hoiatus, N+S!', '9869055', '13158600');
-INSERT INTO t1 VALUES ( '127', '21', '318.0000000000', '318.0000000000', 'Härm.hoiatus, N+S!', '16744319', '13158600');
-INSERT INTO t1 VALUES ( '128', '21', '312.0000000000', '312.0000000000', 'Härm.hoiat., niiske!', '16744319', '13158600');
-INSERT INTO t1 VALUES ( '129', '21', '126.0000000000', '126.0000000000', 'Lumine!', '16711680', '11842740');
-INSERT INTO t1 VALUES ( '130', '21', '324.0000000000', '324.0000000000', 'Härmatise hoiatus!', '14448840', '13158600');
-INSERT INTO t1 VALUES ( '131', '21', '316.0000000000', '316.0000000000', 'Lumine!', '16711680', '11842740');
-INSERT INTO t1 VALUES ( '132', '1', '0.0000000000', '1.9000000000', '', NULL, '16769024');
-INSERT INTO t1 VALUES ( '134', '3', '-50.0000000000', '50.0000000000', '', NULL, '16777215');
-INSERT INTO t1 VALUES ( '135', '8', '26.0000000000', '2000.0000000000', '', '9868950', '15774720');
-INSERT INTO t1 VALUES ( '136', '21', '426.0000000000', '426.0000000000', 'Lumine!', '16711680', '11842740');
-INSERT INTO t1 VALUES ( '137', '21', '127.0000000000', '127.0000000000', 'Hoiatus, JÄÄ!', '14448840', '16711680');
-INSERT INTO t1 VALUES ( '138', '21', '121.0000000000', '121.0000000000', 'Kuiv', '13158600', '16777215');
-INSERT INTO t1 VALUES ( '139', '21', '326.0000000000', '326.0000000000', 'Lumine!', '16711680', '11842740');
-INSERT INTO t1 VALUES ( '143', '16', '-4.9000000000', '-0.1000000000', '', NULL, '15774720');
-INSERT INTO t1 VALUES ( '145', '15', '0.0000000000', '1.9000000000', '', '0', '16769024');
-INSERT INTO t1 VALUES ( '146', '16', '0.0000000000', '1.9000000000', '', '0', '16769024');
-select * from t1 where min_value<=1 and max_value>=-1 and datatype_id=16;
-id datatype_id min_value max_value valuename forecolor backcolor
-143 16 -4.9000000000 -0.1000000000 NULL 15774720
-146 16 0.0000000000 1.9000000000 0 16769024
-select * from t1 where min_value<=-1 and max_value>=-1 and datatype_id=16;
-id datatype_id min_value max_value valuename forecolor backcolor
-143 16 -4.9000000000 -0.1000000000 NULL 15774720
-drop table t1;
-create table t1 (a decimal(10,2));
-insert into t1 values ("0.0"),("-0.0"),("+0.0"),("01.0"),("+01.0"),("-01.0");
-insert into t1 values ("-.1"),("+.1"),(".1");
-insert into t1 values ("00000000000001"),("+0000000000001"),("-0000000000001");
-insert ignore into t1 values ("+111111111.11"),("111111111.11"),("-11111111.11");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-insert ignore into t1 values ("-111111111.11"),("+1111111111.11"),("1111111111.11");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-insert ignore into t1 values ("1e+1000"),("1e-1000"),("-1e+1000");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Note 1265 Data truncated for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-insert ignore into t1 values ("1e+4294967296"),("1e-4294967296");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Note 1265 Data truncated for column 'a' at row 2
-insert ignore into t1 values ("1e+18446744073709551615"),("1e+18446744073709551616"),("1e-9223372036854775807"),("1e-9223372036854775809");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1366 Incorrect decimal value: '1e+18446744073709551616' for column 'a' at row 2
-Note 1265 Data truncated for column 'a' at row 3
-Warning 1366 Incorrect decimal value: '1e-9223372036854775809' for column 'a' at row 4
-insert ignore into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-Note 1265 Data truncated for column 'a' at row 3
-select * from t1;
-a
-0.00
-0.00
-0.00
-1.00
-1.00
--1.00
--0.10
-0.10
-0.10
-1.00
-1.00
--1.00
-99999999.99
-99999999.99
--11111111.11
--99999999.99
-99999999.99
-99999999.99
-99999999.99
-0.00
--99999999.99
-99999999.99
-0.00
-99999999.99
-0.00
-0.00
-0.00
-123.40
-12340.00
-1.23
-1230.00
-123.00
-drop table t1;
-create table t1 (a decimal(10,2) unsigned);
-insert into t1 values ("0.0"),("-0.0"),("+0.0"),("01.0"),("+01.0"),("-01.0");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 6
-insert ignore into t1 values ("-.1"),("+.1"),(".1");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-insert into t1 values ("00000000000001"),("+0000000000001"),("-0000000000001");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 3
-insert ignore into t1 values ("+111111111.11"),("111111111.11"),("-11111111.11");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-insert ignore into t1 values ("-111111111.11"),("+1111111111.11"),("1111111111.11");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-insert ignore into t1 values ("1e+1000"),("1e-1000"),("-1e+1000");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Note 1265 Data truncated for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-insert ignore into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-Note 1265 Data truncated for column 'a' at row 3
-select * from t1;
-a
-0.00
-0.00
-0.00
-1.00
-1.00
-0.00
-0.00
-0.10
-0.10
-1.00
-1.00
-0.00
-99999999.99
-99999999.99
-0.00
-0.00
-99999999.99
-99999999.99
-99999999.99
-0.00
-0.00
-123.40
-12340.00
-1.23
-1230.00
-123.00
-drop table t1;
-create table t1 (a decimal(10,2) zerofill);
-insert into t1 values ("0.0"),("-0.0"),("+0.0"),("01.0"),("+01.0"),("-01.0");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 6
-insert ignore into t1 values ("-.1"),("+.1"),(".1");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-insert into t1 values ("00000000000001"),("+0000000000001"),("-0000000000001");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 3
-insert ignore into t1 values ("+111111111.11"),("111111111.11"),("-11111111.11");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-insert ignore into t1 values ("-111111111.11"),("+1111111111.11"),("1111111111.11");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-insert ignore into t1 values ("1e+1000"),("1e-1000"),("-1e+1000");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Note 1265 Data truncated for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-insert ignore into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-Note 1265 Data truncated for column 'a' at row 3
-select * from t1;
-a
-00000000.00
-00000000.00
-00000000.00
-00000001.00
-00000001.00
-00000000.00
-00000000.00
-00000000.10
-00000000.10
-00000001.00
-00000001.00
-00000000.00
-99999999.99
-99999999.99
-00000000.00
-00000000.00
-99999999.99
-99999999.99
-99999999.99
-00000000.00
-00000000.00
-00000123.40
-00012340.00
-00000001.23
-00001230.00
-00000123.00
-drop table t1;
-create table t1 (a decimal(10,2));
-insert into t1 values (0.0),("-0.0"),(+0.0),(01.0),(+01.0),(-01.0);
-insert into t1 values (-.1),(+.1),(.1);
-insert into t1 values (00000000000001),(+0000000000001),(-0000000000001);
-insert ignore into t1 values (+111111111.11),(111111111.11),(-11111111.11);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-insert ignore into t1 values (-111111111.11),(+1111111111.11),(1111111111.11);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-insert ignore into t1 values (1e+100),(1e-100),(-1e+100);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Note 1265 Data truncated for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-insert into t1 values (123.4e0),(123.4e+2),(123.4e-2),(123e1),(123e+0);
-Warnings:
-Note 1265 Data truncated for column 'a' at row 3
-insert into t1 values (MID("987",1,2)),("987 "),("987.6e+2 ");
-Warnings:
-Note 1265 Data truncated for column 'a' at row 2
-Note 1265 Data truncated for column 'a' at row 3
-select * from t1;
-a
-0.00
-0.00
-0.00
-1.00
-1.00
--1.00
--0.10
-0.10
-0.10
-1.00
-1.00
--1.00
-99999999.99
-99999999.99
--11111111.11
--99999999.99
-99999999.99
-99999999.99
-99999999.99
-0.00
--99999999.99
-123.40
-12340.00
-1.23
-1230.00
-123.00
-98.00
-987.00
-98760.00
-drop table t1;
-create table t1 (a decimal);
-insert ignore into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+12345678901'),(99999999999999);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 6
-Warning 1264 Out of range value for column 'a' at row 7
-select * from t1;
-a
--9999999999
--1
-1
-1
-1
-9999999999
-9999999999
-drop table t1;
-create table t1 (a decimal unsigned);
-insert ignore into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+1234567890'),(99999999999999);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 7
-select * from t1;
-a
-0
-0
-1
-1
-1
-1234567890
-9999999999
-drop table t1;
-create table t1 (a decimal zerofill);
-insert ignore into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+1234567890'),(99999999999999);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 7
-select * from t1;
-a
-0000000000
-0000000000
-0000000001
-0000000001
-0000000001
-1234567890
-9999999999
-drop table t1;
-create table t1 (a decimal unsigned zerofill);
-insert ignore into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+1234567890'),(99999999999999);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 7
-select * from t1;
-a
-0000000000
-0000000000
-0000000001
-0000000001
-0000000001
-1234567890
-9999999999
-drop table t1;
-create table t1(a decimal(10,0));
-insert ignore into t1 values ("1e4294967295");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-9999999999
-delete from t1;
-insert ignore into t1 values("1e4294967297");
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-9999999999
-drop table t1;
-CREATE TABLE t1 (a_dec DECIMAL(-1,0));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1,0))' at line 1
-CREATE TABLE t1 (a_dec DECIMAL(-2,1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-2,1))' at line 1
-CREATE TABLE t1 (a_dec DECIMAL(-1,1));
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1,1))' at line 1
-CREATE TABLE t1 (a_dec DECIMAL(0,11));
-ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 'a_dec')
-create table t1(a decimal(7,3));
-insert into t1 values ('1'),('+1'),('-1'),('0000000001'),('+0000000001'),('-0000000001'),('10'),('+10'),('-10'),('0000000010'),('+0000000010'),('-0000000010'),('100'),('+100'),('-100'),('0000000100'),('+0000000100'),('-0000000100'),('1000'),('+1000'),('-1000'),('0000001000'),('+0000001000'),('-0000001000'),('10000'),('+10000'),('-10000'),('0000010000'),('+0000010000'),('-0000010000'),('100000'),('+100000'),('-100000'),('0000100000'),('+0000100000'),('-0000100000'),('1000000'),('+1000000'),('-1000000'),('0001000000'),('+0001000000'),('-0001000000'),('10000000'),('+10000000'),('-10000000'),('0010000000'),('+0010000000'),('-0010000000'),('100000000'),('+100000000'),('-100000000'),('0100000000'),('+0100000000'),('-0100000000'),('1000000000'),('+1000000000'),('-1000000000'),('1000000000'),('+1000000000'),('-1000000000');
-select * from t1;
-a
-1.000
-1.000
--1.000
-1.000
-1.000
--1.000
-10.000
-10.000
--10.000
-10.000
-10.000
--10.000
-100.000
-100.000
--100.000
-100.000
-100.000
--100.000
-1000.000
-1000.000
--1000.000
-1000.000
-1000.000
--1000.000
-9999.999
-9999.999
--9999.999
-9999.999
-9999.999
--9999.999
-9999.999
-9999.999
--9999.999
-9999.999
-9999.999
--9999.999
-9999.999
-9999.999
--9999.999
-9999.999
-9999.999
--9999.999
-9999.999
-9999.999
--9999.999
-9999.999
-9999.999
--9999.999
-9999.999
-9999.999
--9999.999
-9999.999
-9999.999
--9999.999
-9999.999
-9999.999
--9999.999
-9999.999
-9999.999
--9999.999
-drop table t1;
-create table t1(a decimal(7,3) unsigned);
-insert into t1 values ('1'),('+1'),('-1'),('0000000001'),('+0000000001'),('-0000000001'),('10'),('+10'),('-10'),('0000000010'),('+0000000010'),('-0000000010'),('100'),('+100'),('-100'),('0000000100'),('+0000000100'),('-0000000100'),('1000'),('+1000'),('-1000'),('0000001000'),('+0000001000'),('-0000001000'),('10000'),('+10000'),('-10000'),('0000010000'),('+0000010000'),('-0000010000'),('100000'),('+100000'),('-100000'),('0000100000'),('+0000100000'),('-0000100000'),('1000000'),('+1000000'),('-1000000'),('0001000000'),('+0001000000'),('-0001000000'),('10000000'),('+10000000'),('-10000000'),('0010000000'),('+0010000000'),('-0010000000'),('100000000'),('+100000000'),('-100000000'),('0100000000'),('+0100000000'),('-0100000000'),('1000000000'),('+1000000000'),('-1000000000'),('1000000000'),('+1000000000'),('-1000000000');
-select * from t1;
-a
-1.000
-1.000
-0.000
-1.000
-1.000
-0.000
-10.000
-10.000
-0.000
-10.000
-10.000
-0.000
-100.000
-100.000
-0.000
-100.000
-100.000
-0.000
-1000.000
-1000.000
-0.000
-1000.000
-1000.000
-0.000
-9999.999
-9999.999
-0.000
-9999.999
-9999.999
-0.000
-9999.999
-9999.999
-0.000
-9999.999
-9999.999
-0.000
-9999.999
-9999.999
-0.000
-9999.999
-9999.999
-0.000
-9999.999
-9999.999
-0.000
-9999.999
-9999.999
-0.000
-9999.999
-9999.999
-0.000
-9999.999
-9999.999
-0.000
-9999.999
-9999.999
-0.000
-9999.999
-9999.999
-0.000
-drop table t1;
-create table t1(a decimal(7,3) zerofill);
-insert into t1 values ('1'),('+1'),('-1'),('0000000001'),('+0000000001'),('-0000000001'),('10'),('+10'),('-10'),('0000000010'),('+0000000010'),('-0000000010'),('100'),('+100'),('-100'),('0000000100'),('+0000000100'),('-0000000100'),('1000'),('+1000'),('-1000'),('0000001000'),('+0000001000'),('-0000001000'),('10000'),('+10000'),('-10000'),('0000010000'),('+0000010000'),('-0000010000'),('100000'),('+100000'),('-100000'),('0000100000'),('+0000100000'),('-0000100000'),('1000000'),('+1000000'),('-1000000'),('0001000000'),('+0001000000'),('-0001000000'),('10000000'),('+10000000'),('-10000000'),('0010000000'),('+0010000000'),('-0010000000'),('100000000'),('+100000000'),('-100000000'),('0100000000'),('+0100000000'),('-0100000000'),('1000000000'),('+1000000000'),('-1000000000'),('1000000000'),('+1000000000'),('-1000000000');
-select * from t1;
-a
-0001.000
-0001.000
-0000.000
-0001.000
-0001.000
-0000.000
-0010.000
-0010.000
-0000.000
-0010.000
-0010.000
-0000.000
-0100.000
-0100.000
-0000.000
-0100.000
-0100.000
-0000.000
-1000.000
-1000.000
-0000.000
-1000.000
-1000.000
-0000.000
-9999.999
-9999.999
-0000.000
-9999.999
-9999.999
-0000.000
-9999.999
-9999.999
-0000.000
-9999.999
-9999.999
-0000.000
-9999.999
-9999.999
-0000.000
-9999.999
-9999.999
-0000.000
-9999.999
-9999.999
-0000.000
-9999.999
-9999.999
-0000.000
-9999.999
-9999.999
-0000.000
-9999.999
-9999.999
-0000.000
-9999.999
-9999.999
-0000.000
-9999.999
-9999.999
-0000.000
-drop table t1;
-create table t1(a decimal(10,5), b decimal(10,1));
-insert into t1 values(123.12345, 123.12345);
-Warnings:
-Note 1265 Data truncated for column 'b' at row 1
-update t1 set b=a;
-Warnings:
-Note 1265 Data truncated for column 'b' at row 1
-select * from t1;
-a b
-123.12345 123.1
-drop table t1;
-End of 4.1 tests
-CREATE TABLE t1
-(EMPNUM CHAR(3) NOT NULL,
-HOURS DECIMAL(5));
-CREATE TABLE t2
-(EMPNUM CHAR(3) NOT NULL,
-HOURS BIGINT);
-INSERT INTO t1 VALUES ('E1',40);
-INSERT INTO t1 VALUES ('E8',NULL);
-INSERT INTO t2 VALUES ('E1',40);
-SELECT EMPNUM FROM t1 WHERE HOURS IN (SELECT HOURS FROM t2);
-EMPNUM
-E1
-SELECT EMPNUM FROM t1 WHERE HOURS IN (SELECT HOURS FROM t1);
-EMPNUM
-E1
-DROP TABLE t1,t2;
-create table t1 (d decimal(64,0));
-insert into t1 values (1);
-select * from t1;
-d
-1
-drop table t1;
-create table t1 (d decimal(5));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `d` decimal(5,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (d decimal);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `d` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (d decimal(66,0));
-ERROR 42000: Too big precision 66 specified for 'd'. Maximum is 65
-CREATE TABLE t1 (i INT, d1 DECIMAL(9,2), d2 DECIMAL(9,2));
-INSERT INTO t1 VALUES (1, 101.40, 21.40), (1, -80.00, 0.00),
-(2, 0.00, 0.00), (2, -13.20, 0.00), (2, 59.60, 46.40),
-(2, 30.40, 30.40), (3, 37.00, 7.40), (3, -29.60, 0.00),
-(4, 60.00, 15.40), (4, -10.60, 0.00), (4, -34.00, 0.00),
-(5, 33.00, 0.00), (5, -25.80, 0.00), (5, 0.00, 7.20),
-(6, 0.00, 0.00), (6, -51.40, 0.00);
-SELECT i, SUM(d1) AS a, SUM(d2) AS b FROM t1 GROUP BY i HAVING a <> b;
-i a b
-6 -51.40 0.00
-SELECT i, ROUND(SUM(d1), 2) AS a, ROUND(SUM(d2), 2) AS b FROM t1 GROUP BY i
-HAVING a <> b;
-i a b
-6 -51.40 0.00
-drop table t1;
-create table t1 (c1 varchar(100), c2 longtext);
-insert into t1 set c1= 'non PS, 1.0 as constant', c2=1.0;
-prepare stmt from "insert into t1 set c1='PS, 1.0 as constant ', c2=1.0";
-execute stmt;
-set @a=1.0;
-insert into t1 set c1='non PS, 1.0 in parameter', c2=@a;
-prepare stmt from "insert into t1 set c1='PS, 1.0 in parameter ', c2=?";
-execute stmt using @a;
-select * from t1;
-c1 c2
-non PS, 1.0 as constant 1.0
-PS, 1.0 as constant 1.0
-non PS, 1.0 in parameter 1.0
-PS, 1.0 in parameter 1.0
-deallocate prepare stmt;
-drop table t1;
-create table t1 (
-strippedproductid char(15) not null default '',
-zlevelprice decimal(10,2) default null,
-primary key (strippedproductid)
-);
-create table t2 (
-productid char(15) not null default '',
-zlevelprice char(21) default null,
-primary key (productid)
-);
-insert into t1 values ('002trans','49.99');
-insert into t1 values ('003trans','39.98');
-insert into t1 values ('004trans','31.18');
-insert INTO t2 SELECT * FROM t1;
-select * from t2;
-productid zlevelprice
-002trans 49.99
-003trans 39.98
-004trans 31.18
-drop table t1, t2;
-create table t1 (f1 decimal(5));
-insert into t1 values (40);
-flush tables;
-select f1 from t1 where f1 in (select f1 from t1);
-f1
-40
-drop table t1;
-create table t1 as
-select from_days(s) as date,t
-from (select 1 as s,'t' as t union select null, null ) as sub1;
-select group_concat(t) from t1 group by week(date)/10;
-group_concat(t)
-t
-drop table t1;
-CREATE TABLE t1 (
-qty decimal(16,6) default NULL,
-dps tinyint(3) unsigned default NULL
-);
-INSERT INTO t1 VALUES (1.1325,3);
-SELECT ROUND(qty,3), dps, ROUND(qty,dps) FROM t1;
-ROUND(qty,3) dps ROUND(qty,dps)
-1.133 3 1.133000
-DROP TABLE t1;
-create table t1 (c1 decimal(10,6));
-insert into t1 (c1) values (9.99e-4);
-insert into t1 (c1) values (9.98e-4);
-insert into t1 (c1) values (0.000999);
-insert into t1 (c1) values (cast(9.99e-4 as decimal(10,6)));
-select * from t1;
-c1
-0.000999
-0.000998
-0.000999
-0.000999
-drop table t1;
-SELECT 1 % .123456789123456789123456789123456789123456789123456789123456789123456789123456789 AS '%';
-%
-0.01234568701234568701234568701234568701
-SELECT MOD(1, .123456789123456789123456789123456789123456789123456789123456789123456789123456789) AS 'MOD()';
-MOD()
-0.01234568701234568701234568701234568701
-create table t1 (f1 decimal(6,6),f2 decimal(6,6) zerofill);
-insert into t1 values (-0.123456,0.123456);
-select group_concat(f1),group_concat(f2) from t1;
-group_concat(f1) group_concat(f2)
--0.123456 0.123456
-drop table t1;
-create table t1 (
-ua_id decimal(22,0) not null,
-ua_invited_by_id decimal(22,0) default NULL,
-primary key(ua_id)
-);
-insert into t1 values (123, NULL), (456, NULL);
-this must not produce error 1048:
-select * from t1 where ua_invited_by_id not in (select ua_id from t1);
-ua_id ua_invited_by_id
-drop table t1;
-DROP TABLE IF EXISTS t3;
-DROP TABLE IF EXISTS t4;
-CREATE TABLE t1( a NUMERIC, b INT );
-INSERT INTO t1 VALUES (123456, 40), (123456, 40);
-SELECT TRUNCATE( a, b ) AS c FROM t1 ORDER BY c;
-c
-123456
-123456
-SELECT ROUND( a, b ) AS c FROM t1 ORDER BY c;
-c
-123456
-123456
-SELECT ROUND( a, 100 ) AS c FROM t1 ORDER BY c;
-c
-123456.00000000000000000000000000000000000000
-123456.00000000000000000000000000000000000000
-CREATE TABLE t2( a NUMERIC, b INT );
-INSERT INTO t2 VALUES (123456, 100);
-SELECT TRUNCATE( a, b ) AS c FROM t2 ORDER BY c;
-c
-123456
-SELECT ROUND( a, b ) AS c FROM t2 ORDER BY c;
-c
-123456
-CREATE TABLE t3( a DECIMAL, b INT );
-INSERT INTO t3 VALUES (123456, 40), (123456, 40);
-SELECT TRUNCATE( a, b ) AS c FROM t3 ORDER BY c;
-c
-123456
-123456
-SELECT ROUND( a, b ) AS c FROM t3 ORDER BY c;
-c
-123456
-123456
-SELECT ROUND( a, 100 ) AS c FROM t3 ORDER BY c;
-c
-123456.00000000000000000000000000000000000000
-123456.00000000000000000000000000000000000000
-CREATE TABLE t4( a DECIMAL, b INT );
-INSERT INTO t4 VALUES (123456, 40), (123456, 40);
-SELECT TRUNCATE( a, b ) AS c FROM t4 ORDER BY c;
-c
-123456
-123456
-SELECT ROUND( a, b ) AS c FROM t4 ORDER BY c;
-c
-123456
-123456
-SELECT ROUND( a, 100 ) AS c FROM t4 ORDER BY c;
-c
-123456.00000000000000000000000000000000000000
-123456.00000000000000000000000000000000000000
-delete from t1;
-INSERT INTO t1 VALUES (1234567890, 20), (999.99, 5);
-Warnings:
-Note 1265 Data truncated for column 'a' at row 2
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(10,0) DEFAULT NULL,
- `b` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select round(a,b) as c from t1 order by c;
-c
-1000
-1234567890
-DROP TABLE t1, t2, t3, t4;
-CREATE TABLE t1( a DECIMAL(4, 3), b INT );
-INSERT INTO t1 VALUES ( 1, 5 ), ( 2, 4 ), ( 3, 3 ), ( 4, 2 ), ( 5, 1 );
-SELECT a, b, ROUND( a, b ) AS c FROM t1 ORDER BY c;
-a b c
-1.000 5 1.000
-2.000 4 2.000
-3.000 3 3.000
-4.000 2 4.000
-5.000 1 5.000
-SELECT a, b, ROUND( a, b ) AS c FROM t1 ORDER BY c DESC;
-a b c
-5.000 1 5.000
-4.000 2 4.000
-3.000 3 3.000
-2.000 4 2.000
-1.000 5 1.000
-CREATE TABLE t2 ( a INT, b INT, c DECIMAL(5, 4) );
-INSERT INTO t2 VALUES ( 0, 1, 1.2345 ), ( 1, 2, 1.2345 ),
-( 3, 3, 1.2345 ), ( 2, 4, 1.2345 );
-SELECT a, b, MAX(ROUND(c, a))
-FROM t2
-GROUP BY a, b
-ORDER BY b;
-a b MAX(ROUND(c, a))
-0 1 1.0000
-1 2 1.2000
-3 3 1.2350
-2 4 1.2300
-SELECT a, b, ROUND(c, a)
-FROM t2;
-a b ROUND(c, a)
-0 1 1.0000
-1 2 1.2000
-3 3 1.2350
-2 4 1.2300
-CREATE TABLE t3( a INT, b DECIMAL(6, 3) );
-INSERT INTO t3 VALUES( 0, 1.5 );
-SELECT ROUND( b, a ) FROM t3;
-ROUND( b, a )
-2.000
-CREATE TABLE t4( a INT, b DECIMAL( 12, 0) );
-INSERT INTO t4 VALUES( -9, 1.5e9 );
-SELECT ROUND( b, a ) FROM t4;
-ROUND( b, a )
-2000000000
-CREATE TABLE t5( a INT, b DECIMAL( 13, 12 ) );
-INSERT INTO t5 VALUES( 0, 1.5 );
-INSERT INTO t5 VALUES( 9, 1.5e-9 );
-SELECT ROUND( b, a ) FROM t5;
-ROUND( b, a )
-2.000000000000
-0.000000002000
-CREATE TABLE t6( a INT );
-INSERT INTO t6 VALUES( 6 / 8 );
-SELECT * FROM t6;
-a
-1
-SELECT ROUND(20061108085411.000002);
-ROUND(20061108085411.000002)
-20061108085411
-DROP TABLE t1, t2, t3, t4, t5, t6;
-create table t1(`c` decimal(9,2));
-insert into t1 values (300),(201.11);
-select max(case 1 when 1 then c else null end) from t1 group by c;
-max(case 1 when 1 then c else null end)
-201.11
-300.00
-drop table t1;
-End of 5.0 tests
-CREATE TABLE t1 (a INTEGER);
-INSERT INTO t1 VALUES (NULL);
-CREATE TABLE t2 (b INTEGER);
-INSERT INTO t2 VALUES (NULL), (NULL);
-SELECT b FROM t1 JOIN t2 WHERE CONVERT(a, DECIMAL)|CONVERT(b, DECIMAL);
-b
-DROP TABLE t1, t2;
-CREATE TABLE t1 (col0 INTEGER, col1 REAL);
-CREATE TABLE t2 (col0 INTEGER);
-INSERT INTO t1 VALUES (0, 0.0), (NULL, NULL);
-INSERT INTO t2 VALUES (1);
-SELECT 1 FROM t1
-JOIN
-(
-SELECT t2.col0 FROM t2 RIGHT JOIN t1 USING(col0)
-GROUP BY t2.col0
-) AS subq
-WHERE t1.col1 + CAST(subq.col0 AS DECIMAL);
-1
-SELECT 1 FROM t1
-JOIN
-(
-SELECT t2.col0 FROM t2 RIGHT JOIN t1 USING(col0)
-GROUP BY t2.col0
-) AS subq
-WHERE CONCAT(t1.col1, CAST(subq.col0 AS DECIMAL));
-1
-DROP TABLE t1, t2;
-#
-# Start of 5.5 tests
-#
-#
-# MDEV-8267 Add /*old*/ comment into I_S.COLUMN_TYPE for old DECIMAL
-#
-SHOW CREATE TABLE t1dec102;
-Table Create Table
-t1dec102 CREATE TABLE `t1dec102` (
- `a` decimal(10,2)/*old*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW COLUMNS FROM t1dec102;
-Field Type Null Key Default Extra
-a decimal(10,2)/*old*/ YES NULL
-SELECT COLUMN_NAME, DATA_TYPE, COLUMN_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='t1dec102';
-COLUMN_NAME DATA_TYPE COLUMN_TYPE
-a decimal decimal(10,2)/*old*/
-DROP TABLE t1dec102;
-select cast('-0.0' as decimal(5,1)) < 0;
-cast('-0.0' as decimal(5,1)) < 0
-0
-#
-# End of 5.5 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-15420 Wrong result for CAST from TIME or DATETIME with zero integer part and non-zero microseconds to DECIMAL(X,Y)
-#
-SET sql_mode='';
-SELECT
-CAST(TIMESTAMP'0000-00-00 00:00:00.123456' AS DECIMAL(10,6)) AS c1,
-CAST(TIME'00:00:00.123456' AS DECIMAL(10,6)) AS c2;
-c1 c2
-0.123456 0.123456
-SET sql_mode=DEFAULT;
-#
-# End of 10.2 tests
-#
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-9217 Split Item::tmp_table_field_from_field_type() into virtual methods in Type_handler
-#
-# This creates the old DECIMAL. Will be fixed in MDEV-12574.
-CREATE TABLE t1 AS SELECT MAX(a) FROM t1dec102;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `MAX(a)` decimal(10,2)/*old*/ DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT COALESCE(a) FROM t1dec102;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `COALESCE(a)` decimal(10,2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-CREATE TABLE t2 AS SELECT a FROM t1dec102 UNION SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` decimal(21,2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (a MEDIUMINT);
-CREATE TABLE t2 AS SELECT a FROM t1dec102 UNION SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` decimal(10,2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (a YEAR);
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT a FROM t1dec102;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` decimal(10,2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-DROP TABLE t1dec102;
diff --git a/mysql-test/r/type_enum.result b/mysql-test/r/type_enum.result
deleted file mode 100644
index 02d71c6bd9f..00000000000
--- a/mysql-test/r/type_enum.result
+++ /dev/null
@@ -1,2313 +0,0 @@
-DROP TABLE if exists t1;
-CREATE TABLE t1 (
-field enum('001001','001004','001010','001018','001019','001020','001021','001027','001028','001029','001030','001031','001100','002003','002004','002005','002007','002008','002009','002012','002013','002014','003002','003003','003004','003005','003006','003007','003008','003009','003010','003011','003012','003013','003014','003015','003016','003017','003018','003019','004002','004003','004005','004006','004007','004008','004010','004012','004014','004016','004017','004020','004021','004022','004023','004024','004025','004026','006002','006004','006006','006010','006011','006012','006013','006014','007001','007002','007003','007004','007005','007006','007007','007008','007009','007010','007011','007012','007013','007014','007015','007016','007017','007018','007019','007020','007021','007022','007023','007024','007025','007026','007027','007028','007029','007030','007031','007032','007033','007034','007035','007036','007037','007038','007039','007040','007043','007044','009001','009002','009004','009005','009006','009007','009008','009009','009010','009011','009012','009013','010002','010003','010004','010005','010006','010007','010008','010009','010010','010011','010012','010013','010015','010016','010017','010018','010019','010020','010021','010022','010023','010024','010025','010026','010027','010028','011001','011002','011003','011004','011006','011012','011013','011014','011015','011016','012017','012018','012019','012023','012027','012028','012029','012030','012031','012032','012033','012034','012035','012036','012037','012038','012039','014001','016002','016003','016004','016007','016010','016011','016016','016019','016020','016021','016022','016023','016024','016026','016027','016028','016029','016030','016031','016032','016033','016034','017002','018001','019002','019004','020001','020003','020004','020005','020006','020007','020008','020009','022001','022002','022003','023001','023002','023003','023004','023005','023006','023007','023008','023010','023011','023012','023017','023019','023020','023021','023025','023026','023027','023028','023029','023030','023031','023032','023033','023034','023035','025001','025003','025004','025005','025006','025007','025008','025009','025010','025011','025012','025013','025014','025015','025016','025017','025018','025019','025020','025021','025022','025023','025024','025025','025026','025027','025028','025029','025030','025031','025032','025033','025034','025035','025036','025037','025038','025039','025040','025041','025042','025043','025044','025045','025046','025047','025048','025049','025050','025051','025052','025053','025054','025055','025056','025057','025058','025059','025060','025061','025062','025063','027001','027002','027011','035008','035012','036001','037001','037003','037004','037005','037006','037007','037008','037009','038004','038005','038006','038007','038009','039001','039002','039003','039004','039005','039006','046001','046002','046003','046004','046005','046007','046008','046009','046010','046011','046012','046013','046014','047001','047002','048001','051001','051002','051003','051004','052001','052002','052005','053015','053016','053019','053020','053023','053024','053026','053028','053029','053033','053034','053036','053037','053038','053039','053041','053042','053043','053045','053046','053047','053048','053051','053052','053054','053055','053056','053057','053068','053069','053070','053073','053074','053075','053086','053094','053095','053096','053097','053098','053099','053100','053101','053102','053103','053104','053105','053107','053122','053123','053124','053125','053127','053128','054001','054002','054003','054004','054005','054006','054007','054009','054010','056001','056002','056003','056004','056005','056006','056009','056010','056011','056016','056017','056018','056019','056020','056021','056022','057001','057002','057003','057004','058002','058003','058004','058005','060001','060003','060004','060005','060006','060007','061002','061003','061004','061005','061006','069006','069007','069010','069011','069012','069013','069014','069015','069016','069017','069018','069020','069021','069022','069023','069024','071002','071003','071004','071005','071006','071008','071011','071013','071020','071021','071022','072001','073001','073002','073003','073004','074001','074002','074003','074004','074005','074006','074007','074008','074009','074010','074011','074012','075001','075007','076101','076102','076103','077001','077002','077003','077004','077006','077007','077008','077009','078005','079002','079003','079004','079005','079006','079007','081001','082006','082007','082011','082013','082014','082015','082016','082017','082021','082022','082023','082024','082025','082026','082027','082028','082029','082030','082031','082032','082033','082034','082035','082036','082037','082038','082039','082040','082041','082042','082043','082044','084001','084002','084003','084004','084005','084007','084008','084009','084011','084013','084014','084016','084017','084027','084031','084032','084033','084035','084036','084037','084038','084039','084040','084041','084042','084043','084044','084045','084046','084047','084048','084049','084050','084051','085001','085002','085003','085004','085005','085006','085007','085009','085011','085012','085013','085014','085015','085016','085017','085018','085019','085020','085021','085022','085023','085028','085029','085030','085031','085033','085034','085035','085036','085037','085038','085040','085041','085042','085043','085044','085045','085046','085047','085048','085063','085064','085065','085068','085070','085071','085073','085082','085083','085086','085088','085089','085090','085091','085092','085093','085094','085095','085096','085097','085098','085099','085100','085101','085102','085103','085104','085105','085106','085107','085108','085109','085110','085111','085112','085113','085115','085119','085120','085121','085122','085123','085124','085125','085126','085127','085128','085129','085130','085132','085133','085134','085135','085136','085137','086001','086002','086003','086004','086005','088001','088003','088005','088006','088007','088008','088009','089001','090001','090002','090003','090004','090005','090006','090007','090008','090009','090010','090013','090015','090016','090017','090018','090019','090022','090027','090028','091001','091002','091005','091008','091009','091010','091011','091012','091013','091014','091015','091016','091017','091018','093001','093003','093098','093100','093102','093104','093141','093142','093146','093151','093153','093167','093168','093176','094001','094002','094004','094005','095004','099001','099002','100001','101001','102002','102003','105001','105002','106001','113001','113002','113003','113004','113005','113006','113007','113008','113009','113010','113011','113012','113013','113014','113015','113016','113017','113018','113019','113020','113021','113022','113023','113024','113025','113026','113027','113028','114001','115001','115002','115003','115004','115005','115006','115007','115008','115009','115010','115011','115012','115013','115014','115015','115016','115017','115018','115020','115021','115022','115023','115025','115026','115027','115028','115029','115030','115031','115032','115033','115034','115035','115036','115039','115040','115041','115042','115043','115044','115045','115046','115047','115048','115049','115050','115051','115052','115053','115054','115055','115056','115057','115059','115060','115061','115062','115063','115064','115065','115066','115067','115068','115069','115070','115071','115072','115073','115075','115076','115081','115082','115085','115086','115087','115088','115095','115096','115097','115098','115099','115101','115102','115103','115104','115105','115106','115108','115109','115110','115111','115112','115113','115114','115115','115116','115117','115118','115119','115120','115121','115122','116001','116002','116003','116004','116005','116006','116007','116008','116009','116010','116011','116012','117001','117002','117003','123001','124010','124014','124015','124019','124024','124025','124026','124027','124028','124029','124030','124031','124032','124033','124035','124036','124037','124038','124039','124040','124041','124042','124043','124044','124045','124046','124047','124048','124049','124050','124051','124052','124053','124054','124055','124056','124057','124058','124059','124060','124061','124062','124063','124064','124065','126001','126002','126003','126004','126005','126006','126007','126008','126009','126010','126011','126012','130001','132001','132002','132003','133001','133008','133009','133010','133011','133012','133013','133014','133015','133016','133017','133018','133019','133020','133021','133022','133023','133024','133025','133027','133028','133029','133030','133031','134001','135001','135002','135003','135004','135005','135006','135007','135008','135009','135010','136001','137009','137010','137011','137012','137013','137014','137015','137016','137017','137018','137019','138001','138002','138003','138004','139001','139003','140001','141001','141002','141003','141006','141007','141008','141009','141011','141012','141014','141015','141016','141017','141018','141019','141020','141021','141022','141023','141024','141025','141026','141027','141028','142001','142002','142003','142004','142005','142006','142007','142008','142010','142011','142012','144001','145001','145002','145003','145004','145005','145006','145007','145008','145009','145010','145011','145012','145013','145014','145015','145016','147001','150003','150005','150009','150013','150014','150015','150016','150017','150020','150021','152001','152002','152003','152004','152005','152006','152007','154001','154002','154003','155001','155002','155003','155004','155005','155006','159001','159002','159003','159004','160001','160002','160003','161001','162001','162002','162003','162004','162007','162010','162011','162012','163001','163002','163003','163005','163010','163011','163014','163015','163016','165001','165002','165003','165004','165005','165006','165007','165008','165009','165010','165011','165012','165013','165014','165015','165016','165017','165018','165019','165020','165021','165022','165023','165024','165025','165026','165027','165028','165029','165030','165031','165032','165033','165034','165035','165036','167001','168001','168002','168003','168004','168005','168007','168008','168009','168010','168011','168012','168013','168014','169001','169002','169003','169007','169008','169009','169010','170001','171001','171002','171003','171004','171005','171006','171007','171008','171009','172001','174001','174002','174003','176001','176002','176003','177001','177002','179001','179002','179003','179004','179005','179006','179007','179008','179009','179010','179011','179012','179013','179014','179015','179016','179017','179018','179019','179020','179021','179022','179023','179024','179025','179026','179027','179028','179029','179030','179031','179032','179033','179034','179035','179036','179037','179038','179039','179040','179041','179042','179043','179044','179045','179046','179047','180001','180010','180012','180013','180014','180015','180016','180017','180018','180019','180020','180021','180022','180023','180024','180025','180026','180027','180028','180030','180031','180032','180033','180034','180035','180036','180037','180038','180039','180041','180042','180043','180044','180045','180046','180047','180048','180049','180050','180051','180052','180053','180054','180055','180056','180057','180058','180059','180060','180061','180062','180063','180064','180065','180066','180067','180068','180069','180070','180071','182001','184001','184002','184005','184006','184007','184008','184009','184010','184011','185001','185003','187001','188001','188002','188003','188004','188005','188006','188007','188008','188009','188010','188011','191001','191002','192002','194001','194002','194003','194004','194005','194006','194007','195001','195002','195003','195004','195005','195006','195007','196001','196002','197001','197002','197003','197004','197005','197006','198001','198003','198004','198005','198006','198007','198008','198009','198010','198011','198012','198013','198014','198015','198016','198017','201001','201002','201005','202001','203001','203002','203003','203017','203018','203019','204001','204002','204003','205001','208001','208002','208003','208004','208005','209001','209002','209003','210001','210002','210003','210004','210005','210006','210007','210008','210009','210010','210011','210012','210013','211017','212001','212002','212003','212004','212005','212006','212007','212008','212009','212010','212011','212012','212013','218001','218003','218004','218006','218007','218008','218009','218011','218015','218016','218017','218018','218019','218020','218021','218022','218023','218024','218025','218026','218027','218028','218029','218030','218031','218032','218033','218034','218035','218036','221001','221002','221003','221004','221005','221006','221007','221008','221009','221010','221011','221012','221013','223001','223002','223003','224001','224002','224003','224006','224007','224008','225001','225002','225003','225004','225005','225006','225007','225008','225009','225010','225011','225012','225013','226001','226002','226003','226004','226005','226006','226007','226008','226009','227001','227002','227003','227004','227005','227006','227007','227008','227009','227010','227011','227012','227013','227014','227015','227016','227017','227018','227019','227020','227021','227022','227023','227024','227025','227026','227027','227028','227029','227030','227031','227032','227033','227034','227035','227036','227037','227038','227039','227040','227041','227042','227043','227044','227045','227046','227047','227048','227049','227050','227051','227052','227053','227054','227055','227056','227057','227058','227059','227060','227061','227062','227063','227064','227065','227066','227067','227068','227069','227070','227071','227072','227073','227074','227075','227076','227077','227078','227079','227080','227081','227082','227083','227084','227085','227086','227087','227088','227089','227090','227091','227092','227093','227094','227095','227096','227097','227098','227099','227100','227101','227102','227103','227104','227105','227106','227107','227108','227109','227110','227111','227112','227113','227114','227115','227116','227117','227118','227119','227120','227122','227123','227124','227125','227126','227127','227128','227129','227130','227131','227132','227133','227134','227135','227136','227137','227138','227139','227140','227141','227142','227143','227144','227145','227146','227147','227148','227149','227150','227151','227152','228001','229001','229002','229003','229004','229005','230001','230002','232001','233001','233002','233003','233004','233005','233006','233007','233008','234001','234002','234003','234004','234005','234006','234007','234008','234009','234010','234011','234012','234013','234014','234015','234016','234017','234018','234019','234020','234021','234022','234023','234024','234025','234026','234027','234028','234029','234030','235001','235002','235003','235004','235005','236001','236002','236003','237001','238002','238003','238004','238005','238006','238007','238008','333013','333014','333015','333016','333017','333018','333019','333020','333021','333022','333023','333024','333025','333030','333031','333032','333033','333034','333035','334001','334002','334003','334004','334005','334006','334007','336004','337001','337002','337003','337004','339001','339002','343001','344001','344002','344003','344004','344005','345001','345002','345003','347001','347002','348001','348002','348003','348004','348005','349001','349002','349003','350001','353001','353002','353003','353004','355001','355002','355003','355004','355005','355006','356001','358001','359001','359002','360001','360002','360003','360004','360005','366001','366002','366003','366004','369001','373001','373002','373003','373004','373005','373006','373007','373008','373009','373010','373011','373012','373013','373014','373015','373016','373017','373018','373019','373020','373021','374001','374002','374003','374004','374005','374006','374007','374008','374009','374010','374011','374012','374013','374014','374015','374016','376001','376002','376003','376004','376005','376006','376007','376008','376009','376010','376011','376012','376013','376016','376017','376018','376019','376020','376021','379003','382001','382002','383001','384001','384002','385001','385002','386001','386002','386003','386004','386005','386006','386007','386008','386009','386010','386011','386012','386013','386014','387001','389001','389002','389003','389004','392001','393001','393002','393003','393004','395001','396001','397001','397002','399001','399002','399003','400001','400002','401001','401002','401003','402001','402002','402003','402004','402005','403001','403002','403003','504001','504002','504004','504005','504006','504007','504008','504009','504010','504011','504012','504013','504014','504017','504018','504019','504021','504022','504023','504024','504025','506001','506002','508001','508002','511001','511002','511003','511004','511005','511006','511007','511008','511009','511010','511011','511012','511013','511014','511017','511018','511020','511021','511022','511024','511028','511029','513001','513002','513003','513004','514001','515001','515002','515003','515007','515008','515009','515010','515011','515012','515013','515014','515015','518001','518002','518003','520001','520002','521001','521002','521003','521004','521005','521006','521007','521008','521009','521010','521011','521012','521013','521014','521015','521016','523001','523002','523003','523004','523005','523006','523007','524001','700001','701001','701002','701003','702001','702002','702003','702004','702005','702006','702007','702008','703001','703002','703003','704001','704002','704003','704004','705001','706001','706002','707001','707002','707003','708001','709001','709002','710001','710002','711001','711002','712001','713001','713002','714001','714002','715001','716001','718001','718002','719001','719002','991001','991002','991003','991004','991005','991006','991007','991008','992001','995001','996001','996002','996003','998001','998002','998003','998004','998005','998006','998007','999001','999002','011017','011018','034001','034002','071010','208006','239001','519001','519003','126013','184012','053071','374017','374018','374019','374020','374021','404001','405002','405001','405003','405007','405006','405005','405004','240011','240010','240009','240008','240007','240006','240005','240004','240003','240002','240001','240012','240013','240014','240015','240016','240017','357001','235006','235007','712002','355008','355007','056023','999999','046015','019005','126014','241003','241002','241001','240018','240020','240019','242001','242002','242003','242004','242005','242006','089002','406001','406002','406003','406004','406005','406006','243001','243002','243003','243004','243005','243006','243007','243008','010030','010029','407001','407006','407005','407004','407003','407002','408001','366005','133032','016035','077010','996004','025064','011019','407007','407008','407009','409001','115123','504026','039007','039009','039008','039010','039011','039012','180072','240021','240023','408002','405008','235008','525001','525002','525003','525004','410001','410002','410003','410004','410005','410006','410007','410008','410009','410010','410011','410012','410013','410014','410015','410016','344006','240031','240030','240029','240028','240027','240026','240025','240024','240034','240033','240032','410017','410018','411001','411002','411003','411004','411005','411006','411007','411008','203020','203021','203022','412001','412002','412003','412004','069025','244001','244002','244009','244008','244007','244006','244005','244004','244003','244015','244014','244013','244012','244011','244010','244016','244017','240042','240041','240040','240039','240038','240037','240036','240035','405009','405010','240043','504034','504033','504032','504031','504030','504029','504028','504027','504042','504041','504040','504039','504038','504037','504036','504035','800001','410019','410020','410021','244018','244019','244020','399004','413001','504043','198018','198019','344007','082045','010031','010032','010033','010034','010035','504044','515016','801002','801003','801004','801005','802001','801001','414001','414002','414003','141029','141030','803001','803002','803003','803004','803005','803006','803007','803008','803009','803010','803011','803012','803013','803014','803015','803016','803017','410022','410023','803018','803019','803020','415002','415001','244021','011020','011023','011022','011021','025065','165037','165038','165039','416001','416002','416003','417001','418001','504045','803022','803021','240022','419001','420001','804010','804009','804008','804007','804006','804005','804004','804003','804002','804001','804020','804019','804018','804017','804016','804015','804014','804013','804012','804011','804024','804021','804023','804022','511019','511016','511015','511032','511031','511030','511027','511026','511025','511033','511023','133034','133033','169011','344008','344009','244022','244026','244025','244030','244023','244024','244027','244028','244029','244031','082046','082047','082048','126015','126016','416004','416005','421001','421002','016037','016036','115124','115125','115126','240049','240048','240047','240046','240045','240044','244032','244033','422001','422002','422003','422004','422005','184013','239002','805001','805002','805003','805004','805005','056024','423001','344010','235009','212014','056025','056026','802002','244034','244035','244036','244037','244038','244039','515017','504046','203015','245002','245001','071023','056027','056028','056029','056030','056031','056032','424001','056034','056033','805006','805007','805008','805009','805010','422008','422007','422006','422010','422009','422011','209004','150022','150023','100002','056035','023036','185004','185005','246001','247001','247002','425001','416006','165042','165041','165040','165043','010040','010039','010038','010037','010036','422012','422013','422014','422015','426000','248001','248002','248003','248004','248005','249001','249002','249003','249004','249005','249006','250007','250001','250002','250003','250004','250005','250006','250008','250009','250010','250011','250012','250013','251001','251002','422016','422017','422018','806001','806002','116013','235010','235011','091026','091027','091028','091029','091019','091020','091021','091022','091023','091024','091025','252001','243009','249007','249008','249009','011024','011025','427001','428002','428001','169012','429001','429002','429003') DEFAULT '001001' NOT NULL,
-KEY field (field)
-);
-INSERT INTO t1 VALUES ('001001'),('001001'),('001001'),('001001'),('001001'),('001001'),('001001'),('001001'),('001001'),('001010'),('001010'),('001010'),('001010'),('001010'),('001018'),('001018'),('001018'),('001018'),('001018'),('001018'),('001020'),('001020'),('001020'),('001020'),('001020'),('001020'),('001020'),('001020'),('001021'),('001021'),('001021'),('001021'),('001021'),('001021'),('001027'),('001027'),('001028'),('001030'),('001030'),('001030'),('001030'),('001031'),('001031'),('001031'),('001031'),('001031'),('001100'),('001100'),('002003'),('002003'),('002003'),('002003'),('002003'),('002003'),('002003'),('002003'),('002003'),('002004'),('002004'),('002004'),('002004'),('002004'),('002004'),('002004'),('002004'),('002004'),('002005'),('002005'),('002005'),('002005'),('002005'),('002005'),('002005'),('002005'),('002007'),('002007'),('002007'),('002007'),('002007'),('002007'),('002007'),('002008'),('002008'),('002008'),('002008'),('002008'),('002008'),('002008'),('002008'),('002009'),('002009'),('002009'),('002009'),('002009'),('002009'),('002009'),('002009'),('002012'),('002012'),('002012'),('002012'),('002012'),('002012'),('002012'),('002013'),('002013'),('002013'),('002013'),('002013'),('002013'),('002013'),('002013'),('002013'),('002014'),('002014'),('002014'),('002014'),('002014'),('002014'),('002014'),('002014'),('003002'),('003002'),('003002'),('003002'),('003002'),('003002'),('003003'),('003003'),('003003'),('003003'),('003003'),('003003'),('003004'),('003004'),('003004'),('003004'),('003004'),('003004'),('003005'),('003005'),('003005'),('003005'),('003005'),('003005'),('003005'),('003005'),('003005'),('003006'),('003006'),('003006'),('003006'),('003006'),('003006'),('003006'),('003006'),('003007'),('003007'),('003007'),('003007'),('003007'),('003008'),('003008'),('003008'),('003008'),('003008'),('003008'),('003009'),('003009'),('003009'),('003009'),('003009'),('003009'),('003009'),('003009'),('003009'),('003010'),('003010'),('003010'),('003010'),('003010'),('003010'),('003010'),('003010'),('003010'),('003011'),('003011'),('003011'),('003011'),('003011'),('003011'),('003011'),('003011'),('003012'),('003012'),('003012'),('003012'),('003012'),('003012'),('003012'),('003012'),('003013'),('003013'),('003013'),('003013'),('003013'),('003013'),('003013'),('003013'),('003014'),('003014'),('003014'),('003014'),('003014'),('003014'),('003014'),('003014'),('003015'),('003015'),('003015'),('003015'),('003015'),('003015'),('003016'),('003016'),('003016'),('003016'),('003016'),('003016'),('003017'),('003017'),('003017'),('003017'),('003017'),('003018'),('003018'),('003018'),('003018'),('003018'),('003019'),('003019'),('004003'),('004005'),('004005'),('004005'),('004005'),('004005'),('004005'),('004006'),('004008'),('004010'),('004012'),('004012'),('004014'),('004014'),('004014'),('004014'),('004014'),('004016'),('004017'),('004017'),('004017'),('004017'),('004017'),('004017'),('004017'),('004017'),('004020'),('004020'),('004020'),('004020'),('004020'),('004020'),('004021'),('004021'),('004021'),('004021'),('004021'),('004021'),('004021'),('004022'),('004023'),('004023'),('004023'),('004023'),('004023'),('004023'),('004023'),('004025'),('004026'),('004026'),('004026'),('004026'),('004026'),('006004'),('006006'),('006010'),('006010'),('006010'),('006010'),('006010'),('006010'),('006010'),('006011'),('006011'),('006011'),('006011'),('006011'),('006011'),('006012'),('006012'),('006012'),('006012'),('006012'),('006012'),('006014'),('006014'),('006014'),('007001'),('007001'),('007002'),('007003'),('007005'),('007007'),('007008'),('007009'),('007011'),('007012'),('007013'),('007015'),('007016'),('007017'),('007018'),('007019'),('007019'),('007020'),('007021'),('007021'),('007022'),('007023'),('007023'),('007025'),('007025'),('007025'),('007027'),('007029'),('007031'),('007031'),('007032'),('007034'),('007034'),('007036'),('007036'),('007036'),('007037'),('007037'),('007038'),('007040'),('007040'),('007040'),('007043'),('009001'),('009001'),('009001'),('009001'),('009001'),('009001'),('009001'),('009002'),('009002'),('009002'),('009002'),('009002'),('009004'),('009004'),('009004'),('009004'),('009005'),('009005'),('009005'),('009005'),('009005'),('009005'),('009005'),('009005'),('009006'),('009006'),('009006'),('009006'),('009007'),('009007'),('009007'),('009007'),('009007'),('009007'),('009008'),('009010'),('009010'),('009010'),('009010'),('009010'),('009010'),('009011'),('009011'),('009011'),('009011'),('009011'),('009012'),('009013'),('009013'),('009013'),('010002'),('010002'),('010002'),('010002'),('010002'),('010002'),('010002'),('010002'),('010003'),('010003'),('010003'),('010003'),('010003'),('010003'),('010003'),('010003'),('010003'),('010004'),('010004'),('010004'),('010004'),('010004'),('010004'),('010004'),('010004'),('010004'),('010005'),('010005'),('010005'),('010005'),('010006'),('010006'),('010006'),('010006'),('010006'),('010006'),('010006'),('010006'),('010006'),('010007'),('010007'),('010007'),('010007'),('010007'),('010007'),('010008'),('010008'),('010008'),('010008'),('010008'),('010008'),('010008'),('010009'),('010009'),('010009'),('010009'),('010009'),('010009'),('010010'),('010010'),('010010'),('010010'),('010010'),('010010'),('010010'),('010011'),('010011'),('010011'),('010011'),('010011'),('010011'),('010011'),('010011'),('010012'),('010012'),('010012'),('010012'),('010012'),('010012'),('010012'),('010013'),('010013'),('010013'),('010013'),('010013'),('010013'),('010015'),('010016'),('010016'),('010016'),('010016'),('010016'),('010016'),('010016'),('010016'),('010017'),('010017'),('010017'),('010017'),('010017'),('010017'),('010018'),('010018'),('010018'),('010018'),('010018'),('010018'),('010018'),('010018'),('010018'),('010019'),('010019'),('010019'),('010019'),('010019'),('010019'),('010020'),('010020'),('010020'),('010021'),('010021'),('010021'),('010021'),('010021'),('010021'),('010022'),('010022'),('010022'),('010022'),('010022'),('010022'),('010022'),('010022'),('010023'),('010023'),('010023'),('010023'),('010023'),('010023'),('010023'),('010023'),('010026'),('010027'),('010028'),('010028'),('011001'),('011001'),('011001'),('011001'),('011001'),('011001'),('011001'),('011002'),('011002'),('011002'),('011002'),('011002'),('011002'),('011002'),('011003'),('011003'),('011003'),('011003'),('011003'),('011003'),('011003'),('011003'),('011004'),('011004'),('011004'),('011004'),('011004'),('011004'),('011004'),('011006'),('011006'),('011006'),('011006'),('011006'),('011006'),('011006'),('011012'),('011012'),('011012'),('011013'),('011013'),('011013'),('011013'),('011013'),('011013'),('011014'),('011014'),('011014'),('011014'),('011015'),('011015'),('011015'),('011015'),('011015'),('011016'),('011016'),('011016'),('011016'),('011016'),('012017'),('012017'),('012027'),('012027'),('012032'),('012034'),('012036'),('012036'),('012037'),('012037'),('012038'),('012039'),('014001'),('014001'),('016016'),('016016'),('016016'),('016019'),('016020'),('016020'),('016020'),('016020'),('016020'),('016020'),('016020'),('016020'),('016021'),('016021'),('016021'),('016021'),('016021'),('016021'),('016021'),('016022'),('016022'),('016022'),('016023'),('016023'),('016023'),('016024'),('016024'),('016024'),('016024'),('016024'),('016024'),('016024'),('016026'),('016026'),('016026'),('016026'),('016026'),('016026'),('016028'),('016028'),('016028'),('016028'),('016028'),('016028'),('016028'),('016029'),('016029'),('016030'),('016031'),('016032'),('016032'),('016032'),('016032'),('016032'),('016032'),('016032'),('016033'),('016033'),('016033'),('016033'),('016033'),('016034'),('016034'),('016034'),('016034'),('016034'),('017002'),('017002'),('017002'),('017002'),('017002'),('018001'),('018001'),('018001'),('018001'),('018001'),('018001'),('018001'),('018001'),('019002'),('019002'),('019002'),('019002'),('019002'),('019002'),('019004'),('019004'),('019004'),('019004'),('019004'),('019004'),('020001'),('020001'),('020001'),('020001'),('020004'),('020006'),('020006'),('020006'),('020006'),('020006'),('020006'),('020008'),('020009'),('020009'),('020009'),('020009'),('020009'),('022001'),('022001'),('022001'),('022001'),('022002'),('022002'),('022002'),('022002'),('022003'),('022003'),('022003'),('022003'),('023001'),('023002'),('023002'),('023002'),('023002'),('023002'),('023002'),('023003'),('023003'),('023003'),('023003'),('023004'),('023004'),('023005'),('023005'),('023006'),('023006'),('023006'),('023006'),('023006'),('023006'),('023007'),('023007'),('023010'),('023010'),('023011'),('023011'),('023017'),('023019'),('023019'),('023019'),('023020'),('023020'),('023025'),('023025'),('023025'),('023026'),('023026'),('023026'),('023027'),('023027'),('023027'),('023028'),('023028'),('023029'),('023029'),('023030'),('023030'),('023032'),('023033'),('023033'),('023033'),('023033'),('023033'),('023033'),('023034'),('023035'),('023035'),('025001'),('025001'),('025001'),('025001'),('025001'),('025001'),('025001'),('025003'),('025003'),('025004'),('025004'),('025005'),('025005'),('025007'),('025007'),('025008'),('025008'),('025009'),('025010'),('025010'),('025010'),('025011'),('025011'),('025012'),('025012'),('025013'),('025013'),('025013'),('025014'),('025015'),('025016'),('025018'),('025018'),('025019'),('025019'),('025020'),('025020'),('025021'),('025022'),('025022'),('025023'),('025023'),('025024'),('025025'),('025025'),('025026'),('025026'),('025027'),('025027'),('025027'),('025028'),('025030'),('025031'),('025033'),('025034'),('025035'),('025037'),('025041'),('025042'),('025043'),('025046'),('025048'),('025048'),('025048'),('025049'),('025049'),('025049'),('025050'),('025050'),('025050'),('025051'),('025051'),('025052'),('025052'),('025052'),('025053'),('025053'),('025054'),('025054'),('025054'),('025054'),('025055'),('025056'),('025056'),('025056'),('025056'),('025056'),('025056'),('025056'),('025056'),('025056'),('025057'),('025057'),('025058'),('025058'),('025060'),('025060'),('025061'),('025062'),('025063'),('027001'),('027002'),('027011'),('036001'),('036001'),('036001'),('036001'),('036001'),('037003'),('037006'),('037007'),('037008'),('037008'),('038009'),('039001'),('039001'),('039001'),('039001'),('039001'),('039001'),('039002'),('039002'),('039002'),('039002'),('039002'),('039003'),('039003'),('039003'),('039003'),('039003'),('039003'),('039004'),('039004'),('039004'),('039004'),('039004'),('039005'),('039005'),('039005'),('039005'),('039005'),('039006'),('039006'),('039006'),('039006'),('046001'),('046001'),('046001'),('046001'),('046001'),('046001'),('046001'),('046001'),('046002'),('046002'),('046002'),('046002'),('046002'),('046002'),('046002'),('046002'),('046003'),('046003'),('046003'),('046003'),('046003'),('046003'),('046003'),('046005'),('046005'),('046005'),('046005'),('046005'),('046005'),('046005'),('046007'),('046007'),('046007'),('046007'),('046007'),('046007'),('046008'),('046008'),('046008'),('046008'),('046008'),('046009'),('046009'),('046009'),('046010'),('046012'),('046012'),('046012'),('046013'),('046014'),('046014'),('046014'),('047001'),('047001'),('047001'),('047001'),('047001'),('047001'),('047001'),('047001'),('047002'),('047002'),('047002'),('047002'),('047002'),('047002'),('047002'),('047002'),('048001'),('048001'),('048001'),('048001'),('048001'),('048001'),('048001'),('048001'),('051003'),('051003'),('051003'),('051003'),('051003'),('051004'),('051004'),('051004'),('051004'),('052001'),('052001'),('052001'),('052001'),('052001'),('052001'),('052001'),('052001'),('052002'),('052002'),('052005'),('052005'),('052005'),('052005'),('052005'),('052005'),('053016'),('053019'),('053019'),('053023'),('053023'),('053023'),('053023'),('053024'),('053024'),('053024'),('053026'),('053026'),('053026'),('053026'),('053028'),('053028'),('053029'),('053029'),('053029'),('053029'),('053033'),('053033'),('053033'),('053045'),('053046'),('053051'),('053051'),('053051'),('053054'),('053054'),('053054'),('053054'),('053057'),('053069'),('053069'),('053097'),('053107'),('053125'),('053125'),('053127'),('054001'),('054001'),('054001'),('054001'),('054001'),('054001'),('054001'),('054002'),('054002'),('054002'),('054002'),('054002'),('054002'),('054003'),('054003'),('054003'),('054003'),('054003'),('054003'),('054003'),('054004'),('054004'),('054004'),('054004'),('054004'),('054004'),('054004'),('054006'),('054006'),('054006'),('054007'),('054007'),('054007'),('054007'),('054007'),('054009'),('054009'),('054009'),('054009'),('054010'),('054010'),('054010'),('054010'),('054010'),('054010'),('054010'),('056001'),('056001'),('056001'),('056001'),('056001'),('056001'),('056001'),('056001'),('056001'),('056002'),('056002'),('056002'),('056002'),('056002'),('056002'),('056002'),('056002'),('056003'),('056003'),('056003'),('056003'),('056003'),('056003'),('056004'),('056004'),('056004'),('056004'),('056004'),('056004'),('056004'),('056005'),('056005'),('056005'),('056005'),('056005'),('056005'),('056005'),('056005'),('056005'),('056006'),('056006'),('056006'),('056006'),('056006'),('056006'),('056006'),('056006'),('056006'),('056009'),('056009'),('056009'),('056011'),('056016'),('056016'),('056016'),('056016'),('056016'),('056016'),('056016'),('056017'),('056017'),('056017'),('056017'),('056017'),('056017'),('056017'),('056017'),('056017'),('056018'),('056018'),('056018'),('056018'),('056018'),('056018'),('056019'),('056019'),('056019'),('056019'),('056019'),('056019'),('056019'),('056019'),('056020'),('056020'),('056020'),('056020'),('056022'),('056022'),('056022'),('056022'),('056022'),('057003'),('057003'),('057004'),('058002'),('058002'),('058002'),('058002'),('058003'),('058003'),('058003'),('058003'),('058004'),('058004'),('058004'),('058005'),('058005'),('058005'),('060001'),('060001'),('060001'),('060001'),('060001'),('060004'),('060004'),('060004'),('060004'),('060004'),('060004'),('060005'),('060005'),('060005'),('060005'),('060005'),('060005'),('060007'),('060007'),('060007'),('060007'),('060007'),('060007'),('060007'),('061004'),('061004'),('061004'),('061004'),('061004'),('061004'),('061006'),('061006'),('061006'),('061006'),('061006'),('061006'),('069006'),('069006'),('069006'),('069006'),('069006'),('069006'),('069006'),('069006'),('069006'),('069007'),('069007'),('069007'),('069007'),('069007'),('069007'),('069007'),('069007'),('069010'),('069010'),('069010'),('069010'),('069010'),('069010'),('069011'),('069012'),('069012'),('069012'),('069012'),('069012'),('069012'),('069012'),('069012'),('069012'),('069012'),('069013'),('069013'),('069013'),('069013'),('069013'),('069013'),('069013'),('069013'),('069013'),('069014'),('069014'),('069014'),('069014'),('069014'),('069014'),('069014'),('069014'),('069014'),('069015'),('069015'),('069015'),('069015'),('069015'),('069015'),('069015'),('069015'),('069015'),('069015'),('069016'),('069016'),('069016'),('069016'),('069016'),('069018'),('069018'),('069018'),('069018'),('069018'),('069018'),('069018'),('069018'),('069018'),('069020'),('069020'),('069020'),('069020'),('069021'),('069023'),('071002'),('071002'),('071002'),('071002'),('071002'),('071003'),('071003'),('071003'),('071003'),('071003'),('071004'),('071004'),('071004'),('071004'),('071004'),('071005'),('071005'),('071005'),('071005'),('071005'),('071005'),('071006'),('071006'),('071006'),('071006'),('071008'),('071008'),('071008'),('071008'),('071008'),('071008'),('071011'),('071011'),('071011'),('071011'),('071011'),('071020'),('071020'),('071020'),('071020'),('071020'),('071021'),('071022'),('071022'),('071022'),('072001'),('072001'),('074001'),('074002'),('074002'),('074002'),('074002'),('074002'),('074002'),('074002'),('074002'),('074003'),('074003'),('074003'),('074003'),('074003'),('074003'),('074003'),('074003'),('074004'),('074004'),('074004'),('074004'),('074004'),('074004'),('074004'),('074004'),('074005'),('074005'),('074005'),('074005'),('074005'),('074005'),('074005'),('074005'),('074006'),('074006'),('074006'),('074006'),('074006'),('074006'),('074006'),('074006'),('074007'),('074007'),('074007'),('074007'),('074007'),('074007'),('074007'),('074007'),('074008'),('074008'),('074008'),('074008'),('074008'),('074008'),('074008'),('074008'),('074009'),('074009'),('074009'),('074009'),('074009'),('074009'),('074009'),('074009'),('074010'),('074010'),('074010'),('074010'),('074010'),('074010'),('074010'),('074010'),('074011'),('074011'),('074011'),('074011'),('074011'),('074011'),('074011'),('074011'),('074012'),('074012'),('074012'),('074012'),('074012'),('074012'),('074012'),('075001'),('075001'),('075001'),('075007'),('075007'),('075007'),('075007'),('076101'),('076101'),('076101'),('076101'),('076102'),('076102'),('076102'),('076103'),('076103'),('076103'),('076103'),('076103'),('077001'),('077001'),('077001'),('077002'),('077002'),('077002'),('077002'),('077002'),('077002'),('077002'),('077003'),('077003'),('077003'),('077003'),('077003'),('077003'),('077003'),('077004'),('077004'),('077004'),('077004'),('077004'),('077004'),('077006'),('077006'),('077008'),('077008'),('077008'),('077008'),('077008'),('077008'),('077008'),('077009'),('077009'),('077009'),('077009'),('077009'),('077009'),('077009'),('078005'),('078005'),('078005'),('079002'),('079002'),('079002'),('079002'),('079002'),('079002'),('079002'),('079003'),('079003'),('079004'),('079004'),('079005'),('079005'),('079005'),('079005'),('079005'),('079005'),('079006'),('079006'),('079006'),('079006'),('079007'),('079007'),('079007'),('079007'),('079007'),('081001'),('081001'),('081001'),('081001'),('081001'),('082011'),('082011'),('082011'),('082011'),('082011'),('082013'),('082013'),('082013'),('082013'),('082013'),('082013'),('082014'),('082014'),('082014'),('082014'),('082014'),('082014'),('082014'),('082015'),('082015'),('082015'),('082015'),('082015'),('082016'),('082016'),('082016'),('082016'),('082016'),('082016'),('082017'),('082017'),('082017'),('082017'),('082017'),('082017'),('082017'),('082021'),('082021'),('082022'),('082022'),('082022'),('082022'),('082022'),('082023'),('082023'),('082023'),('082023'),('082023'),('082024'),('082024'),('082024'),('082024'),('082024'),('082025'),('082025'),('082025'),('082025'),('082025'),('082026'),('082026'),('082026'),('082026'),('082026'),('082027'),('082027'),('082027'),('082027'),('082027'),('082028'),('082028'),('082028'),('082028'),('082029'),('082029'),('082029'),('082029'),('082029'),('082030'),('082030'),('082030'),('082030'),('082031'),('082031'),('082031'),('082031'),('082031'),('082032'),('082032'),('082032'),('082033'),('082033'),('082034'),('082034'),('082034'),('082034'),('082034'),('082034'),('082034'),('082035'),('082035'),('082035'),('082036'),('082036'),('082036'),('082036'),('082037'),('082037'),('082037'),('082038'),('082038'),('082038'),('082038'),('082039'),('082039'),('082039'),('082039'),('082040'),('082040'),('082040'),('082040'),('082040'),('082041'),('082041'),('082041'),('082041'),('082042'),('082042'),('082043'),('082043'),('082043'),('082043'),('082043'),('082044'),('082044'),('082044'),('082044'),('084001'),('084002'),('084002'),('084002'),('084002'),('084003'),('084003'),('084003'),('084003'),('084003'),('084003'),('084003'),('084003'),('084004'),('084004'),('084004'),('084004'),('084004'),('084005'),('084005'),('084005'),('084005'),('084005'),('084007'),('084007'),('084007'),('084007'),('084007'),('084007'),('084008'),('084008'),('084008'),('084008'),('084008'),('084008'),('084009'),('084009'),('084009'),('084009'),('084009'),('084009'),('084011'),('084013'),('084013'),('084013'),('084013'),('084013'),('084014'),('084014'),('084014'),('084016'),('084016'),('084016'),('084016'),('084016'),('084016'),('084016'),('084016'),('084017'),('084017'),('084017'),('084017'),('084017'),('084017'),('084017'),('084017'),('084017'),('084027'),('084027'),('084027'),('084027'),('084027'),('084027'),('084032'),('084032'),('084033'),('084033'),('084033'),('084035'),('084035'),('084035'),('084036'),('084036'),('084036'),('084036'),('084036'),('084036'),('084037'),('084037'),('084038'),('084038'),('084038'),('084038'),('084038'),('084038'),('084039'),('084039'),('084039'),('084039'),('084040'),('084040'),('084040'),('084040'),('084040'),('084041'),('084041'),('084041'),('084041'),('084042'),('084042'),('084043'),('084043'),('084043'),('084043'),('084044'),('084044'),('084044'),('084044'),('084044'),('084045'),('084046'),('084046'),('084046'),('084047'),('084048'),('084048'),('084049'),('084049'),('084050'),('084051'),('084051'),('085001'),('085001'),('085001'),('085001'),('085001'),('085001'),('085002'),('085002'),('085002'),('085002'),('085003'),('085003'),('085003'),('085003'),('085003'),('085003'),('085003'),('085004'),('085004'),('085004'),('085004'),('085004'),('085004'),('085004'),('085005'),('085005'),('085005'),('085005'),('085005'),('085005'),('085006'),('085006'),('085006'),('085006'),('085006'),('085006'),('085006'),('085006'),('085007'),('085007'),('085007'),('085007'),('085007'),('085007'),('085007'),('085009'),('085009'),('085009'),('085009'),('085009'),('085009'),('085011'),('085011'),('085011'),('085011'),('085011'),('085011'),('085011'),('085011'),('085012'),('085012'),('085012'),('085012'),('085012'),('085012'),('085012'),('085014'),('085014'),('085014'),('085014'),('085014'),('085014'),('085014'),('085014'),('085014'),('085015'),('085015'),('085015'),('085015'),('085015'),('085015'),('085015'),('085015'),('085016'),('085016'),('085016'),('085016'),('085016'),('085016'),('085016'),('085016'),('085017'),('085017'),('085017'),('085017'),('085017'),('085018'),('085018'),('085018'),('085018'),('085018'),('085019'),('085019'),('085019'),('085019'),('085019'),('085019'),('085019'),('085019'),('085019'),('085020'),('085020'),('085020'),('085020'),('085020'),('085020'),('085022'),('085022'),('085022'),('085022'),('085022'),('085022'),('085023'),('085023'),('085023'),('085023'),('085023'),('085028'),('085028'),('085028'),('085028'),('085028'),('085028'),('085028'),('085029'),('085029'),('085029'),('085029'),('085029'),('085029'),('085029'),('085030'),('085030'),('085030'),('085030'),('085030'),('085030'),('085030'),('085031'),('085031'),('085031'),('085031'),('085031'),('085031'),('085031'),('085033'),('085034'),('085034'),('085034'),('085034'),('085034'),('085034'),('085034'),('085035'),('085035'),('085035'),('085035'),('085035'),('085035'),('085036'),('085036'),('085036'),('085036'),('085036'),('085036'),('085037'),('085037'),('085037'),('085037'),('085037'),('085037'),('085038'),('085038'),('085038'),('085038'),('085038'),('085038'),('085038'),('085040'),('085040'),('085040'),('085040'),('085040'),('085040'),('085040'),('085040'),('085041'),('085041'),('085041'),('085041'),('085041'),('085041'),('085041'),('085041'),('085042'),('085042'),('085042'),('085042'),('085042'),('085042'),('085042'),('085043'),('085043'),('085043'),('085043'),('085043'),('085043'),('085044'),('085044'),('085044'),('085044'),('085044'),('085044'),('085044'),('085045'),('085045'),('085045'),('085045'),('085045'),('085046'),('085046'),('085046'),('085046'),('085046'),('085046'),('085046'),('085046'),('085047'),('085047'),('085047'),('085047'),('085047'),('085047'),('085047'),('085047'),('085048'),('085048'),('085048'),('085048'),('085048'),('085048'),('085048'),('085063'),('085063'),('085063'),('085063'),('085063'),('085064'),('085064'),('085064'),('085064'),('085064'),('085065'),('085065'),('085068'),('085068'),('085068'),('085068'),('085068'),('085068'),('085071'),('085071'),('085071'),('085071'),('085071'),('085071'),('085073'),('085073'),('085082'),('085082'),('085082'),('085082'),('085082'),('085086'),('085086'),('085086'),('085088'),('085088'),('085088'),('085088'),('085088'),('085088'),('085088'),('085089'),('085089'),('085090'),('085090'),('085090'),('085090'),('085090'),('085090'),('085090'),('085090'),('085091'),('085091'),('085091'),('085091'),('085091'),('085092'),('085092'),('085092'),('085093'),('085093'),('085095'),('085095'),('085095'),('085095'),('085095'),('085096'),('085096'),('085096'),('085096'),('085096'),('085096'),('085097'),('085097'),('085097'),('085097'),('085097'),('085098'),('085098'),('085098'),('085098'),('085098'),('085098'),('085098'),('085099'),('085099'),('085099'),('085099'),('085099'),('085099'),('085099'),('085100'),('085100'),('085100'),('085100'),('085100'),('085100'),('085100'),('085100'),('085100'),('085100'),('085101'),('085101'),('085101'),('085101'),('085101'),('085101'),('085101'),('085101'),('085102'),('085102'),('085103'),('085103'),('085103'),('085104'),('085104'),('085104'),('085104'),('085104'),('085105'),('085105'),('085106'),('085106'),('085106'),('085106'),('085106'),('085106'),('085108'),('085108'),('085109'),('085109'),('085109'),('085109'),('085109'),('085109'),('085109'),('085109'),('085110'),('085110'),('085110'),('085110'),('085110'),('085111'),('085111'),('085111'),('085112'),('085112'),('085112'),('085112'),('085113'),('085113'),('085113'),('085113'),('085113'),('085115'),('085120'),('085121'),('085121'),('085121'),('085121'),('085122'),('085122'),('085122'),('085122'),('085122'),('085122'),('085122'),('085122'),('085123'),('085123'),('085123'),('085123'),('085123'),('085123'),('085123'),('085123'),('085125'),('085125'),('085125'),('085125'),('085125'),('085126'),('085126'),('085126'),('085126'),('085126'),('085127'),('085127'),('085127'),('085127'),('085127'),('085127'),('085127'),('085127'),('085128'),('085128'),('085128'),('085128'),('085128'),('085129'),('085129'),('085129'),('085129'),('085129'),('085130'),('085130'),('085130'),('085130'),('085130'),('085132'),('085132'),('085132'),('085132'),('085132'),('085132'),('085133'),('085133'),('085133'),('085133'),('085133'),('085134'),('085134'),('085134'),('085135'),('085135'),('085135'),('085136'),('085136'),('085136'),('085136'),('085137'),('085137'),('085137'),('085137'),('085137'),('085137'),('085137'),('086002'),('086002'),('086002'),('086002'),('086003'),('086003'),('086003'),('086003'),('086005'),('088001'),('088001'),('088001'),('088001'),('088001'),('088003'),('088003'),('088003'),('088003'),('088003'),('088003'),('088005'),('088005'),('088005'),('088005'),('088005'),('088006'),('088006'),('088006'),('088006'),('088006'),('088007'),('088007'),('088007'),('088008'),('088008'),('088008'),('088008'),('088009'),('088009'),('088009'),('088009'),('088009'),('089001'),('089001'),('089001'),('089001'),('089001'),('089001'),('089001'),('090001'),('090001'),('090001'),('090001'),('090001'),('090001'),('090001'),('090002'),('090002'),('090002'),('090002'),('090002'),('090002'),('090003'),('090003'),('090003'),('090003'),('090003'),('090003'),('090003'),('090004'),('090004'),('090004'),('090004'),('090004'),('090004'),('090004'),('090006'),('090006'),('090006'),('090006'),('090006'),('090006'),('090006'),('090008'),('090008'),('090008'),('090008'),('090008'),('090009'),('090009'),('090009'),('090009'),('090009'),('090010'),('090010'),('090013'),('090013'),('090013'),('090016'),('090016'),('090017'),('090018'),('090022'),('090027'),('091001'),('091001'),('091001'),('091001'),('091001'),('091001'),('091002'),('091002'),('091002'),('091002'),('091002'),('091002'),('091009'),('091009'),('091009'),('091009'),('091009'),('091011'),('091011'),('091011'),('091011'),('091011'),('091011'),('091011'),('091012'),('091012'),('091013'),('091013'),('091013'),('091013'),('091013'),('091013'),('091015'),('091015'),('091015'),('091015'),('091015'),('091015'),('091016'),('091016'),('091016'),('091016'),('091016'),('091017'),('091017'),('091018'),('091018'),('091018'),('091018'),('093003'),('093003'),('093003'),('093003'),('093003'),('093003'),('099001'),('099001'),('099001'),('099001'),('099001'),('099001'),('099001'),('100001'),('100001'),('100001'),('100001'),('106001'),('113005'),('113005'),('113005'),('113006'),('113006'),('113018'),('113019'),('113020'),('115001'),('115001'),('115001'),('115002'),('115002'),('115003'),('115004'),('115004'),('115004'),('115004'),('115005'),('115005'),('115005'),('115006'),('115006'),('115006'),('115007'),('115007'),('115007'),('115007'),('115007'),('115008'),('115008'),('115008'),('115009'),('115010'),('115010'),('115010'),('115010'),('115010'),('115011'),('115011'),('115011'),('115011'),('115012'),('115012'),('115013'),('115013'),('115013'),('115014'),('115014'),('115014'),('115014'),('115015'),('115015'),('115015'),('115016'),('115016'),('115016'),('115016'),('115017'),('115017'),('115017'),('115017'),('115017'),('115018'),('115018'),('115020'),('115020'),('115021'),('115021'),('115022'),('115022'),('115022'),('115023'),('115023'),('115023'),('115023'),('115023'),('115025'),('115025'),('115025'),('115026'),('115026'),('115027'),('115027'),('115027'),('115028'),('115028'),('115028'),('115028'),('115029'),('115029'),('115029'),('115030'),('115030'),('115030'),('115031'),('115031'),('115032'),('115032'),('115032'),('115033'),('115033'),('115033'),('115033'),('115034'),('115034'),('115034'),('115035'),('115035'),('115036'),('115036'),('115036'),('115036'),('115036'),('115039'),('115040'),('115040'),('115040'),('115041'),('115041'),('115041'),('115041'),('115041'),('115042'),('115042'),('115042'),('115042'),('115042'),('115043'),('115043'),('115043'),('115044'),('115044'),('115044'),('115044'),('115046'),('115046'),('115046'),('115047'),('115048'),('115050'),('115050'),('115050'),('115050'),('115050'),('115051'),('115051'),('115051'),('115052'),('115053'),('115053'),('115054'),('115054'),('115054'),('115055'),('115055'),('115055'),('115057'),('115059'),('115059'),('115059'),('115059'),('115060'),('115060'),('115060'),('115060'),('115060'),('115060'),('115061'),('115061'),('115061'),('115062'),('115062'),('115062'),('115062'),('115064'),('115064'),('115064'),('115065'),('115065'),('115065'),('115065'),('115066'),('115066'),('115066'),('115067'),('115067'),('115067'),('115068'),('115068'),('115068'),('115069'),('115069'),('115069'),('115069'),('115069'),('115070'),('115070'),('115070'),('115071'),('115071'),('115071'),('115072'),('115072'),('115072'),('115073'),('115073'),('115075'),('115075'),('115075'),('115076'),('115076'),('115076'),('115076'),('115076'),('115076'),('115081'),('115081'),('115081'),('115082'),('115082'),('115082'),('115085'),('115085'),('115085'),('115085'),('115085'),('115086'),('115086'),('115086'),('115087'),('115087'),('115088'),('115088'),('115088'),('115088'),('115088'),('115095'),('115095'),('115095'),('115096'),('115096'),('115097'),('115097'),('115098'),('115098'),('115099'),('115101'),('115102'),('115102'),('115102'),('115103'),('115103'),('115104'),('115104'),('115104'),('115104'),('115105'),('115105'),('115106'),('115106'),('115106'),('115106'),('115106'),('115108'),('115109'),('115111'),('115111'),('115111'),('115111'),('115112'),('115112'),('115112'),('115112'),('115112'),('115113'),('115113'),('115113'),('115114'),('115114'),('115114'),('115114'),('115114'),('115115'),('115115'),('115115'),('115115'),('115116'),('115117'),('115117'),('115117'),('115118'),('115118'),('115119'),('115119'),('115119'),('115119'),('115120'),('115121'),('115121'),('115122'),('115122'),('116001'),('116003'),('116003'),('116003'),('116003'),('116004'),('116004'),('116005'),('116005'),('116006'),('116006'),('116006'),('116007'),('116007'),('116008'),('116008'),('116009'),('116009'),('116009'),('116010'),('116010'),('116010'),('116010'),('116011'),('116011'),('116011'),('116011'),('116012'),('116012'),('123001'),('123001'),('123001'),('123001'),('123001'),('124065'),('126001'),('126001'),('126001'),('126001'),('126001'),('126001'),('126001'),('126001'),('126002'),('126002'),('126002'),('126002'),('126002'),('126002'),('126002'),('126002'),('126003'),('126003'),('126003'),('126003'),('126003'),('126003'),('126003'),('126003'),('126003'),('126004'),('126004'),('126004'),('126004'),('126004'),('126004'),('126004'),('126004'),('126004'),('126004'),('126005'),('126005'),('126005'),('126005'),('126005'),('126005'),('126005'),('126005'),('126005'),('126006'),('126006'),('126006'),('126006'),('126006'),('126006'),('126006'),('126006'),('126006'),('126007'),('126007'),('126007'),('126007'),('126007'),('126007'),('126007'),('126008'),('126008'),('126008'),('126008'),('126008'),('126008'),('126008'),('126008'),('126009'),('126009'),('126009'),('126009'),('126009'),('126009'),('126009'),('126009'),('126010'),('126010'),('126010'),('126010'),('126010'),('126010'),('126010'),('126010'),('126010'),('126011'),('126011'),('126011'),('126011'),('126011'),('126011'),('126011'),('126012'),('126012'),('126012'),('126012'),('130001'),('130001'),('130001'),('130001'),('132001'),('132001'),('132001'),('132001'),('132001'),('132002'),('132002'),('132002'),('132002'),('132002'),('132002'),('132002'),('133001'),('133001'),('133008'),('133009'),('133010'),('133011'),('133011'),('133011'),('133011'),('133011'),('133011'),('133012'),('133015'),('133015'),('133015'),('133015'),('133016'),('133018'),('133018'),('133018'),('133018'),('133018'),('133019'),('133021'),('133021'),('133022'),('133022'),('133023'),('133023'),('133024'),('133024'),('133024'),('133024'),('133024'),('133024'),('133025'),('133027'),('133027'),('133027'),('133027'),('133027'),('133028'),('133028'),('133028'),('133029'),('133029'),('133029'),('133029'),('133029'),('133029'),('133030'),('133030'),('133031'),('133031'),('133031'),('134001'),('134001'),('134001'),('135001'),('135001'),('135001'),('135001'),('135001'),('135002'),('135002'),('135002'),('135004'),('135010'),('135010'),('135010'),('135010'),('135010'),('135010'),('137010'),('137011'),('137012'),('137014'),('137015'),('137015'),('137016'),('137019'),('139001'),('140001'),('140001'),('140001'),('140001'),('140001'),('140001'),('141001'),('141001'),('141001'),('141001'),('141001'),('141002'),('141002'),('141002'),('141002'),('141002'),('141003'),('141003'),('141003'),('141003'),('141003'),('141003'),('141003'),('141003'),('141006'),('141006'),('141006'),('141006'),('141006'),('141006'),('141006'),('141006'),('141007'),('141007'),('141007'),('141007'),('141007'),('141009'),('141009'),('141009'),('141009'),('141009'),('141011'),('141011'),('141011'),('141011'),('141011'),('141011'),('141012'),('141014'),('141014'),('141014'),('141014'),('141014'),('141014'),('141014'),('141014'),('141015'),('141015'),('141015'),('141015'),('141015'),('141016'),('141016'),('141016'),('141016'),('141016'),('141016'),('141017'),('141017'),('141017'),('141017'),('141017'),('141017'),('141018'),('141018'),('141018'),('141018'),('141019'),('141019'),('141019'),('141019'),('141020'),('141020'),('141020'),('141020'),('141020'),('141020'),('141020'),('141021'),('141021'),('141021'),('141021'),('141021'),('141021'),('141022'),('141022'),('141022'),('141022'),('141022'),('141022'),('141023'),('141023'),('141023'),('141023'),('141023'),('141023'),('141023'),('141024'),('141025'),('141025'),('141025'),('141026'),('141026'),('141026'),('141026'),('141026'),('141026'),('141027'),('141027'),('141027'),('141027'),('141027'),('141028'),('141028'),('145001'),('145001'),('145001'),('145001'),('145001'),('145001'),('145001'),('145001'),('145001'),('145002'),('145002'),('145002'),('145002'),('145002'),('145002'),('145002'),('145002'),('145002'),('145003'),('145003'),('145003'),('145003'),('145003'),('145003'),('145003'),('145003'),('145003'),('145003'),('145004'),('145004'),('145004'),('145004'),('145004'),('145004'),('145004'),('145004'),('145004'),('145005'),('145005'),('145005'),('145005'),('145005'),('145005'),('145005'),('145005'),('145005'),('145006'),('145006'),('145006'),('145006'),('145006'),('145006'),('145006'),('145006'),('145006'),('145008'),('145008'),('145008'),('145008'),('145008'),('145008'),('145008'),('145008'),('145009'),('145009'),('145009'),('145009'),('145009'),('145009'),('145009'),('145011'),('145011'),('145011'),('145011'),('145011'),('145011'),('145011'),('145011'),('145012'),('145012'),('145012'),('145012'),('145012'),('145012'),('145012'),('145012'),('145013'),('145013'),('145013'),('145013'),('145013'),('145013'),('145013'),('150009'),('150013'),('150014'),('150015'),('150015'),('150015'),('150016'),('150016'),('150017'),('150017'),('150017'),('150017'),('150020'),('152001'),('152001'),('152001'),('152002'),('152003'),('152003'),('152003'),('152003'),('152004'),('152005'),('152006'),('152006'),('152006'),('152006'),('152007'),('154001'),('154002'),('154002'),('155001'),('155001'),('155002'),('155003'),('155004'),('155004'),('155006'),('159001'),('159003'),('160001'),('160001'),('160001'),('160001'),('160002'),('160002'),('161001'),('162002'),('162002'),('162003'),('162003'),('162003'),('162003'),('162003'),('162007'),('162012'),('162012'),('162012'),('163001'),('163001'),('163001'),('163011'),('163015'),('163016'),('163016'),('165001'),('165001'),('165001'),('165001'),('165002'),('165002'),('165002'),('165002'),('165003'),('165003'),('165003'),('165004'),('165004'),('165004'),('165005'),('165005'),('165005'),('165006'),('165006'),('165006'),('165006'),('165007'),('165007'),('165007'),('165007'),('165008'),('165008'),('165008'),('165008'),('165009'),('165009'),('165009'),('165009'),('165010'),('165010'),('165010'),('165011'),('165011'),('165012'),('165012'),('165012'),('165013'),('165013'),('165013'),('165014'),('165014'),('165014'),('165015'),('165015'),('165015'),('165015'),('165016'),('165016'),('165016'),('165017'),('165017'),('165017'),('165017'),('165018'),('165018'),('165018'),('165018'),('165019'),('165019'),('165019'),('165019'),('165020'),('165020'),('165020'),('165020'),('165021'),('165021'),('165021'),('165021'),('165022'),('165022'),('165022'),('165023'),('165024'),('165024'),('165024'),('165025'),('165025'),('165025'),('165026'),('165026'),('165026'),('165028'),('165029'),('165030'),('165030'),('165030'),('165031'),('165031'),('165033'),('165033'),('165034'),('165034'),('165034'),('165035'),('165035'),('165035'),('165036'),('165036'),('165036'),('168003'),('168003'),('168004'),('168005'),('168014'),('169001'),('169001'),('169001'),('169001'),('169001'),('169001'),('169001'),('169001'),('169001'),('169001'),('169002'),('169002'),('169002'),('169002'),('169002'),('169002'),('169002'),('169002'),('169002'),('169002'),('169003'),('169003'),('169003'),('169003'),('169007'),('169007'),('169007'),('169007'),('169007'),('169007'),('169007'),('169007'),('169007'),('169007'),('169008'),('169008'),('169008'),('169008'),('169008'),('169008'),('169008'),('169009'),('169009'),('169009'),('169009'),('169010'),('171006'),('171006'),('171007'),('171007'),('171008'),('171008'),('171008'),('171009'),('171009'),('171009'),('172001'),('176001'),('176001'),('176001'),('176001'),('176001'),('176001'),('176001'),('176002'),('176002'),('176002'),('176002'),('176002'),('176003'),('176003'),('176003'),('176003'),('176003'),('176003'),('177001'),('177001'),('177001'),('177001'),('177001'),('177001'),('179007'),('179007'),('179012'),('179012'),('179012'),('179012'),('179012'),('179012'),('179013'),('179013'),('179013'),('179013'),('179013'),('179013'),('179042'),('179044'),('179045'),('180001'),('180013'),('180014'),('180014'),('180015'),('180017'),('180018'),('180020'),('180020'),('180021'),('180021'),('180027'),('180030'),('180033'),('180035'),('180036'),('180037'),('180038'),('180041'),('180042'),('180045'),('180045'),('180047'),('180048'),('180049'),('180050'),('180054'),('180060'),('180066'),('180067'),('180068'),('180070'),('182001'),('184001'),('184002'),('184005'),('184005'),('184005'),('184005'),('184006'),('184006'),('184006'),('184006'),('184008'),('184008'),('184008'),('184008'),('184009'),('184009'),('184009'),('184009'),('184010'),('184010'),('184010'),('184010'),('184011'),('184011'),('184011'),('184011'),('185001'),('185001'),('185001'),('185001'),('185001'),('185001'),('185001'),('185003'),('185003'),('185003'),('185003'),('185003'),('185003'),('185003'),('187001'),('191002'),('191002'),('192002'),('194003'),('197001'),('197001'),('197001'),('197001'),('197001'),('197001'),('197001'),('197002'),('197002'),('197002'),('197002'),('197002'),('197002'),('197002'),('197003'),('197003'),('197003'),('197003'),('197003'),('197003'),('197003'),('197004'),('197004'),('197004'),('197004'),('197004'),('197004'),('197004'),('197005'),('197005'),('197005'),('197005'),('197005'),('197005'),('197006'),('197006'),('197006'),('197006'),('197006'),('198001'),('198001'),('198001'),('198001'),('198001'),('198001'),('198003'),('198003'),('198003'),('198004'),('198004'),('198004'),('198004'),('198004'),('198004'),('198005'),('198005'),('198005'),('198005'),('198005'),('198005'),('198005'),('198006'),('198006'),('198006'),('198006'),('198006'),('198006'),('198007'),('198007'),('198007'),('198007'),('198007'),('198007'),('198007'),('198008'),('198008'),('198008'),('198008'),('198008'),('198008'),('198009'),('198009'),('198009'),('198009'),('198009'),('198009'),('198009'),('198010'),('198010'),('198010'),('198010'),('198010'),('198010'),('198011'),('198012'),('198012'),('198012'),('198012'),('198015'),('198015'),('198016'),('198016'),('198016'),('198016'),('198016'),('198016'),('198017'),('198017'),('198017'),('198017'),('198017'),('198017'),('201001'),('201001'),('201001'),('201001'),('201001'),('201002'),('202001'),('202001'),('203001'),('203001'),('203001'),('203001'),('203001'),('203001'),('203001'),('203002'),('203002'),('203002'),('203002'),('203003'),('203003'),('203003'),('203003'),('203003'),('203017'),('203017'),('203017'),('203017'),('203017'),('203017'),('203017'),('203017'),('203017'),('203018'),('203018'),('203018'),('203018'),('203018'),('203019'),('203019'),('203019'),('203019'),('203019'),('204001'),('204002'),('205001'),('205001'),('205001'),('205001'),('205001'),('205001'),('205001'),('208001'),('208001'),('208002'),('208002'),('208002'),('208003'),('208003'),('208003'),('208004'),('208004'),('208004'),('208004'),('208004'),('208004'),('208004'),('208005'),('208005'),('208005'),('208005'),('208005'),('209001'),('209001'),('209001'),('209001'),('209001'),('209002'),('209002'),('209002'),('209002'),('209002'),('209003'),('209003'),('209003'),('209003'),('209003'),('210001'),('210001'),('210001'),('210001'),('210001'),('210004'),('210004'),('210004'),('210004'),('210004'),('210004'),('210009'),('210010'),('212001'),('212001'),('212002'),('212002'),('212002'),('212002'),('212003'),('212003'),('212003'),('212004'),('212004'),('212004'),('212005'),('212005'),('212005'),('212005'),('212005'),('212006'),('212006'),('212006'),('212007'),('212007'),('212008'),('212008'),('212008'),('212008'),('212009'),('212009'),('212009'),('212009'),('212010'),('212010'),('212010'),('212010'),('212011'),('212011'),('212012'),('212012'),('212013'),('212013'),('212013'),('218001'),('218004'),('218009'),('218011'),('218011'),('218015'),('218020'),('218021'),('218021'),('218022'),('218022'),('218022'),('218023'),('218024'),('218025'),('218026'),('218026'),('218027'),('218028'),('218029'),('218029'),('218029'),('218030'),('218031'),('221001'),('221001'),('221001'),('221001'),('221001'),('221001'),('221002'),('221002'),('221002'),('221002'),('221002'),('221002'),('221003'),('221003'),('221003'),('221003'),('221003'),('221003'),('221004'),('221004'),('221004'),('221004'),('221004'),('221004'),('221005'),('221005'),('221005'),('221005'),('221005'),('221006'),('221006'),('221006'),('221006'),('221006'),('221007'),('221007'),('221007'),('221007'),('221007'),('221007'),('221008'),('221008'),('221008'),('221008'),('221008'),('221008'),('221009'),('221009'),('221009'),('221009'),('221009'),('221009'),('221010'),('221010'),('221010'),('221010'),('221011'),('221011'),('221011'),('221011'),('221012'),('221012'),('221012'),('221012'),('221012'),('221012'),('221013'),('221013'),('221013'),('221013'),('221013'),('221013'),('223003'),('223003'),('224001'),('224001'),('224002'),('224002'),('224003'),('224007'),('224008'),('225001'),('225002'),('225002'),('225002'),('225003'),('225003'),('225003'),('225003'),('225004'),('225004'),('225004'),('225005'),('225005'),('225005'),('225005'),('225005'),('225005'),('225006'),('225006'),('225006'),('225007'),('225007'),('225007'),('225008'),('225008'),('225008'),('225008'),('225008'),('225009'),('225009'),('225009'),('225010'),('225010'),('225010'),('225011'),('225011'),('225011'),('225011'),('225011'),('225012'),('225012'),('225012'),('225012'),('225012'),('225012'),('225013'),('225013'),('226001'),('226002'),('226003'),('226003'),('226005'),('226005'),('226006'),('226007'),('226007'),('226007'),('226007'),('227011'),('227015'),('227015'),('227041'),('227045'),('227052'),('227056'),('227063'),('227064'),('227066'),('227067'),('227069'),('227071'),('227073'),('227085'),('227116'),('227119'),('227131'),('227133'),('227147'),('229005'),('229005'),('229005'),('233003'),('233004'),('235001'),('235001'),('235002'),('235003'),('235003'),('235003'),('235004'),('235005'),('235005'),('235005'),('235005'),('235005'),('235005'),('235005'),('236001'),('236001'),('236001'),('236001'),('236002'),('236003'),('236003'),('236003'),('236003'),('236003'),('236003'),('238002'),('238002'),('238002'),('238002'),('238002'),('238002'),('238003'),('238003'),('238003'),('238003'),('238003'),('238003'),('238004'),('238004'),('238004'),('238004'),('238004'),('238005'),('238005'),('238005'),('238007'),('238007'),('238007'),('238007'),('238007'),('238007'),('238007'),('238008'),('238008'),('238008'),('238008'),('238008'),('238008'),('238008'),('334005'),('334006'),('337001'),('337001'),('337001'),('337002'),('337002'),('337003'),('337003'),('337003'),('337004'),('343001'),('343001'),('344001'),('344002'),('344003'),('344004'),('344005'),('344005'),('345001'),('345001'),('348001'),('348004'),('348005'),('348005'),('349001'),('349001'),('349002'),('349002'),('349002'),('350001'),('353002'),('353002'),('353002'),('353003'),('355001'),('355002'),('355005'),('355006'),('355006'),('356001'),('358001'),('358001'),('358001'),('359001'),('359001'),('359002'),('359002'),('359002'),('359002'),('360001'),('360001'),('360002'),('360002'),('360003'),('360003'),('360004'),('360004'),('360005'),('360005'),('360005'),('366001'),('366002'),('366002'),('366003'),('366004'),('369001'),('369001'),('373001'),('373002'),('373002'),('373003'),('373003'),('373005'),('373007'),('373008'),('373009'),('373009'),('373010'),('373010'),('373010'),('373011'),('373011'),('373011'),('373011'),('373012'),('373012'),('373012'),('373013'),('373013'),('373014'),('373014'),('373015'),('373015'),('373015'),('373015'),('373017'),('373017'),('373017'),('373017'),('373018'),('373021'),('374002'),('374004'),('374006'),('374007'),('374008'),('374009'),('374010'),('374011'),('374012'),('374015'),('374016'),('382001'),('382002'),('382002'),('384001'),('386001'),('386001'),('386001'),('386001'),('386001'),('386001'),('386001'),('386002'),('386002'),('386002'),('386002'),('386002'),('386002'),('386002'),('386003'),('386003'),('386003'),('386003'),('386003'),('386003'),('386003'),('386003'),('386003'),('386004'),('386004'),('386004'),('386004'),('386004'),('386004'),('386004'),('386004'),('386005'),('386005'),('386005'),('386005'),('386005'),('386005'),('386005'),('386006'),('386006'),('386006'),('386006'),('386006'),('386006'),('386007'),('386007'),('386007'),('386007'),('386007'),('386007'),('386007'),('386007'),('386007'),('386008'),('386008'),('386008'),('386008'),('386008'),('386008'),('386008'),('386008'),('386009'),('386009'),('386009'),('386010'),('386010'),('386010'),('386010'),('386010'),('386010'),('386010'),('386010'),('386011'),('386011'),('386011'),('386011'),('386011'),('386011'),('386011'),('386011'),('386011'),('386012'),('386012'),('386012'),('386012'),('386012'),('386012'),('386012'),('386012'),('386012'),('386013'),('386013'),('386013'),('386013'),('386013'),('386013'),('386013'),('386014'),('386014'),('386014'),('386014'),('389001'),('389002'),('389002'),('389003'),('389003'),('389003'),('389003'),('389004'),('389004'),('389004'),('389004'),('392001'),('393001'),('393002'),('393002'),('393003'),('393004'),('395001'),('395001'),('397001'),('397001'),('397001'),('397002'),('399001'),('399001'),('399001'),('399001'),('399001'),('399001'),('399001'),('399002'),('399002'),('399002'),('399002'),('399002'),('399002'),('399002'),('399003'),('400001'),('400001'),('400001'),('400001'),('400002'),('403002'),('504001'),('504001'),('504002'),('504002'),('504002'),('504004'),('504004'),('504005'),('504006'),('504007'),('504007'),('504007'),('504008'),('504008'),('504009'),('504009'),('504009'),('504009'),('504009'),('504010'),('504011'),('504011'),('504012'),('504012'),('504014'),('504014'),('504014'),('504014'),('504014'),('504014'),('504014'),('504014'),('504017'),('504017'),('504021'),('504021'),('504021'),('504021'),('504021'),('504021'),('504021'),('504022'),('504023'),('504023'),('504024'),('504024'),('504025'),('504025'),('506001'),('506001'),('506001'),('506001'),('506001'),('506001'),('506002'),('506002'),('506002'),('506002'),('506002'),('511001'),('511001'),('511001'),('511001'),('511001'),('511001'),('511001'),('511002'),('511002'),('511002'),('511002'),('511002'),('511002'),('511002'),('511003'),('511003'),('511003'),('511003'),('511003'),('511003'),('511004'),('511004'),('511004'),('511004'),('511004'),('511004'),('511004'),('511005'),('511005'),('511005'),('511005'),('511005'),('511005'),('511005'),('511006'),('511006'),('511006'),('511006'),('511006'),('511006'),('511006'),('511007'),('511007'),('511007'),('511007'),('511007'),('511008'),('511008'),('511008'),('511008'),('511008'),('511008'),('511009'),('511009'),('511009'),('511009'),('511009'),('511009'),('511010'),('511010'),('511010'),('511010'),('511010'),('511010'),('511011'),('511011'),('511011'),('511011'),('511011'),('511011'),('511012'),('511012'),('511012'),('511012'),('511012'),('511012'),('511012'),('511013'),('511013'),('511013'),('511013'),('511013'),('511013'),('511013'),('511014'),('511014'),('511014'),('511014'),('511014'),('511017'),('511018'),('511020'),('511021'),('511022'),('511024'),('511028'),('511029'),('511029'),('511029'),('511029'),('511029'),('511029'),('513001'),('513001'),('513001'),('513001'),('513001'),('513001'),('513001'),('513001'),('513002'),('513002'),('513002'),('513002'),('513002'),('513002'),('513003'),('513003'),('513003'),('513003'),('513003'),('513003'),('513003'),('513003'),('513004'),('513004'),('513004'),('515001'),('515001'),('515001'),('515001'),('515001'),('515002'),('515002'),('515003'),('515003'),('515007'),('515007'),('515008'),('515011'),('515011'),('515011'),('515011'),('515011'),('515011'),('515012'),('515012'),('515012'),('515012'),('515013'),('515013'),('515013'),('515013'),('515013'),('515014'),('515014'),('515014'),('515014'),('515014'),('515015'),('515015'),('515015'),('515015'),('515015'),('518001'),('518002'),('521001'),('521002'),('521002'),('521002'),('521003'),('521003'),('521003'),('521003'),('521004'),('521004'),('521004'),('521004'),('521005'),('521005'),('521005'),('521005'),('521006'),('521006'),('521006'),('521009'),('521010'),('521010'),('521010'),('521010'),('521011'),('521011'),('521011'),('521011'),('521012'),('521013'),('521013'),('521015'),('521016'),('521016'),('523001'),('523001'),('523001'),('523001'),('523001'),('523001'),('523001'),('523002'),('523002'),('523002'),('523002'),('523002'),('523002'),('523003'),('523003'),('523003'),('523003'),('523003'),('523003'),('523003'),('523004'),('523004'),('523004'),('523004'),('523004'),('523004'),('523005'),('523005'),('523005'),('523005'),('523005'),('523005'),('523005'),('523005'),('523006'),('523006'),('523006'),('523006'),('523006'),('523006'),('523006'),('523007'),('523007'),('523007'),('523007'),('523007'),('523007'),('523007'),('524001'),('700001'),('701001'),('701002'),('701003'),('702001'),('702002'),('702004'),('702005'),('704001'),('704004'),('705001'),('706001'),('706002'),('707001'),('707002'),('707003'),('708001'),('710001'),('710002'),('711001'),('711002'),('712001'),('714001'),('714002'),('715001'),('719001'),('719002'),('991002'),('991002'),('991002'),('991003'),('991003'),('991003'),('991003'),('991003'),('991003'),('991003'),('991004'),('991004'),('991004'),('991005'),('991005'),('991005'),('991006'),('991007'),('995001'),('995001'),('995001'),('995001'),('995001'),('995001'),('995001'),('995001'),('995001'),('995001'),('995001'),('996001'),('996001'),('996001'),('996001'),('996001'),('996001'),('996001'),('996001'),('996002'),('996002'),('996003'),('996003'),('996003'),('996003'),('996003'),('998001'),('998001'),('998001'),('998001'),('998001'),('998001'),('998001'),('998001'),('998001'),('998001'),('998002'),('998002'),('998002'),('998002'),('998002'),('998002'),('998002'),('998002'),('998002'),('998002'),('998003'),('998003'),('998003'),('998003'),('998003'),('998003'),('998003'),('998003'),('998004'),('998004'),('998005'),('998005'),('998006'),('998007'),('999001'),('999001'),('999001'),('999001'),('999001'),('999001'),('999001'),('999001'),('999001'),('999001'),('999001'),('999002'),('999002'),('011017'),('011017'),('011017'),('011017'),('011017'),('011017'),('011017'),('011018'),('011018'),('011018'),('011018'),('034001'),('034001'),('034002'),('034002'),('071010'),('071010'),('071010'),('519001'),('126013'),('126013'),('126013'),('126013'),('126013'),('184012'),('184012'),('184012'),('404001'),('405002'),('405002'),('405001'),('405003'),('405006'),('240011'),('240011'),('240011'),('240011'),('240011'),('240011'),('240010'),('240010'),('240010'),('240009'),('240009'),('240009'),('240009'),('240008'),('240008'),('240008'),('240007'),('240007'),('240007'),('240007'),('240007'),('240007'),('240005'),('240005'),('240005'),('240005'),('240005'),('240004'),('240004'),('240004'),('240004'),('240004'),('240003'),('240003'),('240003'),('240003'),('240002'),('240002'),('240002'),('240002'),('240002'),('240002'),('240002'),('240001'),('240001'),('240001'),('240001'),('240001'),('240012'),('240012'),('240012'),('240012'),('240012'),('240013'),('240014'),('240015'),('240015'),('240015'),('240015'),('240015'),('240015'),('240015'),('240015'),('240016'),('240016'),('240016'),('240016'),('240016'),('240016'),('240017'),('240017'),('240017'),('357001'),('357001'),('235006'),('235006'),('235007'),('235007'),('235007'),('235007'),('235007'),('056023'),('056023'),('056023'),('056023'),('056023'),('046015'),('019005'),('019005'),('126014'),('126014'),('126014'),('126014'),('126014'),('126014'),('241003'),('241003'),('241003'),('241003'),('241003'),('241003'),('241002'),('241002'),('241002'),('241002'),('241002'),('241002'),('241001'),('241001'),('241001'),('241001'),('241001'),('240020'),('240020'),('240020'),('240020'),('240020'),('240020'),('240019'),('240019'),('240019'),('242001'),('242002'),('242004'),('242005'),('242006'),('089002'),('089002'),('089002'),('089002'),('089002'),('089002'),('406001'),('406002'),('406003'),('406004'),('406004'),('243001'),('243005'),('243006'),('243007'),('243008'),('408001'),('408001'),('408001'),('408001'),('408001'),('366005'),('366005'),('016035'),('016035'),('016035'),('016035'),('077010'),('996004'),('996004'),('996004'),('996004'),('996004'),('996004'),('996004'),('996004'),('025064'),('025064'),('025064'),('025064'),('011019'),('011019'),('011019'),('011019'),('011019'),('115123'),('115123'),('504026'),('039007'),('039009'),('039008'),('039008'),('039010'),('039010'),('039011'),('039012'),('180072'),('240021'),('240021'),('240021'),('240021'),('240021'),('240021'),('240021'),('240023'),('240023'),('240023'),('240023'),('405008'),('405008'),('525002'),('410002'),('410002'),('410004'),('410005'),('410005'),('410006'),('410007'),('410007'),('410008'),('410009'),('410010'),('410011'),('410011'),('410012'),('410012'),('410013'),('410013'),('410014'),('410014'),('410016'),('410016'),('344006'),('240031'),('240031'),('240031'),('240031'),('240030'),('240030'),('240030'),('240030'),('240029'),('240029'),('240029'),('240029'),('240028'),('240028'),('240028'),('240028'),('240027'),('240027'),('240026'),('240026'),('240026'),('240025'),('240025'),('240025'),('240025'),('240024'),('240024'),('240034'),('240034'),('240034'),('240033'),('240033'),('240033'),('240032'),('240032'),('240032'),('240032'),('411001'),('411002'),('203020'),('069025'),('069025'),('069025'),('069025'),('069025'),('069025'),('244001'),('244001'),('244001'),('244001'),('244001'),('244001'),('244001'),('244001'),('244001'),('244001'),('244001'),('244002'),('244002'),('244002'),('244002'),('244002'),('244002'),('244002'),('244002'),('244002'),('244002'),('244002'),('244009'),('244009'),('244009'),('244009'),('244009'),('244009'),('244009'),('244009'),('244009'),('244009'),('244009'),('244008'),('244008'),('244008'),('244008'),('244008'),('244008'),('244008'),('244008'),('244008'),('244008'),('244008'),('244007'),('244007'),('244007'),('244007'),('244007'),('244007'),('244007'),('244007'),('244007'),('244007'),('244007'),('244006'),('244006'),('244006'),('244006'),('244006'),('244006'),('244006'),('244006'),('244006'),('244006'),('244006'),('244004'),('244004'),('244004'),('244004'),('244004'),('244004'),('244004'),('244004'),('244004'),('244004'),('244004'),('244003'),('244003'),('244003'),('244003'),('244003'),('244003'),('244003'),('244003'),('244003'),('244003'),('244003'),('244014'),('244014'),('244014'),('244014'),('244014'),('244014'),('244014'),('244014'),('244013'),('244013'),('244013'),('244013'),('244013'),('244013'),('244013'),('244013'),('244012'),('244012'),('244012'),('244012'),('244012'),('244012'),('244012'),('244012'),('244011'),('244011'),('244011'),('244011'),('244011'),('244011'),('244011'),('244011'),('244016'),('244016'),('244016'),('244016'),('244016'),('244016'),('244016'),('244016'),('244016'),('244016'),('244016'),('244017'),('244017'),('244017'),('244017'),('244017'),('244017'),('244017'),('244017'),('244017'),('240040'),('240037'),('405009'),('405009'),('405009'),('405010'),('405010'),('240043'),('240043'),('504028'),('504040'),('800001'),('410019'),('410019'),('410020'),('410020'),('410020'),('410021'),('410021'),('244018'),('244018'),('244018'),('244018'),('244018'),('244018'),('244018'),('244018'),('244018'),('244018'),('244018'),('244019'),('244019'),('244019'),('244019'),('244019'),('244019'),('244019'),('244019'),('244019'),('244019'),('244019'),('244020'),('244020'),('244020'),('244020'),('244020'),('244020'),('244020'),('244020'),('413001'),('344007'),('082045'),('082045'),('082045'),('082045'),('082045'),('010031'),('010031'),('010031'),('010031'),('010032'),('010032'),('010032'),('010032'),('010033'),('010033'),('010033'),('010033'),('010033'),('010034'),('010034'),('010034'),('010034'),('010035'),('010035'),('010035'),('010035'),('504044'),('515016'),('515016'),('515016'),('515016'),('801002'),('801003'),('801004'),('801005'),('802001'),('801001'),('414001'),('141029'),('803001'),('803002'),('803004'),('803005'),('803006'),('803007'),('803008'),('803009'),('803013'),('803014'),('803015'),('803016'),('803017'),('410022'),('410023'),('410023'),('803019'),('415002'),('415001'),('244021'),('244021'),('244021'),('244021'),('244021'),('244021'),('244021'),('011020'),('011020'),('011020'),('011020'),('011023'),('011023'),('011023'),('011023'),('011022'),('011022'),('011022'),('011022'),('011022'),('011022'),('011021'),('011021'),('011021'),('011021'),('025065'),('025065'),('025065'),('025065'),('165037'),('165037'),('165038'),('165038'),('165038'),('165039'),('416001'),('416001'),('416001'),('416001'),('416001'),('416002'),('416003'),('417001'),('418001'),('504045'),('504045'),('504045'),('803022'),('240022'),('240022'),('240022'),('240022'),('420001'),('420001'),('420001'),('420001'),('804010'),('804005'),('804002'),('804018'),('804013'),('511019'),('511016'),('511015'),('511032'),('511031'),('511030'),('511027'),('511026'),('511025'),('511033'),('511023'),('133034'),('133034'),('133034'),('133033'),('169011'),('169011'),('169011'),('169011'),('169011'),('344008'),('244022'),('244022'),('244022'),('244022'),('244022'),('244022'),('244022'),('244026'),('244026'),('244026'),('244026'),('244026'),('244026'),('244025'),('244025'),('244025'),('244025'),('244025'),('244025'),('244025'),('244025'),('244030'),('244030'),('244030'),('244030'),('244030'),('244030'),('244030'),('244030'),('244023'),('244023'),('244023'),('244023'),('244023'),('244023'),('244024'),('244024'),('244024'),('244024'),('244024'),('244024'),('244024'),('244024'),('244027'),('244027'),('244027'),('244027'),('244027'),('244027'),('244027'),('244027'),('244028'),('244028'),('244028'),('244028'),('244028'),('244028'),('244028'),('244028'),('244029'),('244029'),('244029'),('244029'),('244029'),('244029'),('244029'),('244029'),('244031'),('244031'),('244031'),('244031'),('244031'),('244031'),('244031'),('244031'),('082046'),('082046'),('082046'),('082046'),('082047'),('082047'),('082048'),('082048'),('126015'),('126015'),('126016'),('126016'),('126016'),('126016'),('126016'),('416005'),('421001'),('421001'),('421002'),('016037'),('016037'),('016037'),('016037'),('016036'),('016036'),('016036'),('016036'),('115124'),('115124'),('115126'),('240049'),('240049'),('240048'),('240048'),('240047'),('240047'),('240046'),('240046'),('240045'),('240044'),('244032'),('244033'),('422002'),('422004'),('422004'),('422004'),('422005'),('422005'),('184013'),('184013'),('184013'),('805001'),('805002'),('805003'),('805004'),('805005'),('056024'),('056024'),('056024'),('423001'),('344010'),('235009'),('235009'),('235009'),('235009'),('212014'),('212014'),('056025'),('056025'),('056025'),('056026'),('056026'),('056026'),('056026'),('056026'),('056026'),('244034'),('244034'),('244034'),('244034'),('244034'),('244034'),('244035'),('244035'),('244035'),('244035'),('244035'),('244035'),('244035'),('244036'),('244036'),('244036'),('244036'),('244036'),('244036'),('244036'),('244037'),('244037'),('244037'),('244037'),('244037'),('244037'),('244037'),('244038'),('244038'),('244038'),('244038'),('244038'),('244038'),('244038'),('244039'),('244039'),('244039'),('244039'),('244039'),('244039'),('244039'),('203015'),('245002'),('245002'),('245001'),('245001'),('056029'),('056030'),('056032'),('424001'),('056034'),('056034'),('056034'),('056034'),('056033'),('056033'),('056033'),('805006'),('805007'),('805008'),('805009'),('805010'),('422008'),('422008'),('422007'),('422007'),('422006'),('422006'),('422010'),('422009'),('422009'),('422011'),('422011'),('209004'),('209004'),('150022'),('100002'),('056035'),('056035'),('056035'),('023036'),('023036'),('185005'),('246001'),('246001'),('247001'),('247001'),('247001'),('247001'),('247001'),('247001'),('247001'),('247002'),('247002'),('425001'),('416006'),('416006'),('165042'),('165041'),('165040'),('165043'),('010040'),('010039'),('010038'),('010036'),('248001'),('248002'),('248003'),('248004'),('248005'),('249001'),('249003'),('249004'),('249005'),('250007'),('250001'),('250002'),('250003'),('250004'),('250005'),('250006'),('250008'),('250009'),('250010'),('250011'),('250012'),('250013'),('251001'),('251002'),('806001'),('806002'),('235010'),('243009'),('249007'),('249008'),('249009'),('011024'),('011025'),('429001'),('429001'),('429002'),('429002'),('429003'),('429003');
-select field from t1 group by field;
-field
-001001
-001010
-001018
-001020
-001021
-001027
-001028
-001030
-001031
-001100
-002003
-002004
-002005
-002007
-002008
-002009
-002012
-002013
-002014
-003002
-003003
-003004
-003005
-003006
-003007
-003008
-003009
-003010
-003011
-003012
-003013
-003014
-003015
-003016
-003017
-003018
-003019
-004003
-004005
-004006
-004008
-004010
-004012
-004014
-004016
-004017
-004020
-004021
-004022
-004023
-004025
-004026
-006004
-006006
-006010
-006011
-006012
-006014
-007001
-007002
-007003
-007005
-007007
-007008
-007009
-007011
-007012
-007013
-007015
-007016
-007017
-007018
-007019
-007020
-007021
-007022
-007023
-007025
-007027
-007029
-007031
-007032
-007034
-007036
-007037
-007038
-007040
-007043
-009001
-009002
-009004
-009005
-009006
-009007
-009008
-009010
-009011
-009012
-009013
-010002
-010003
-010004
-010005
-010006
-010007
-010008
-010009
-010010
-010011
-010012
-010013
-010015
-010016
-010017
-010018
-010019
-010020
-010021
-010022
-010023
-010026
-010027
-010028
-011001
-011002
-011003
-011004
-011006
-011012
-011013
-011014
-011015
-011016
-012017
-012027
-012032
-012034
-012036
-012037
-012038
-012039
-014001
-016016
-016019
-016020
-016021
-016022
-016023
-016024
-016026
-016028
-016029
-016030
-016031
-016032
-016033
-016034
-017002
-018001
-019002
-019004
-020001
-020004
-020006
-020008
-020009
-022001
-022002
-022003
-023001
-023002
-023003
-023004
-023005
-023006
-023007
-023010
-023011
-023017
-023019
-023020
-023025
-023026
-023027
-023028
-023029
-023030
-023032
-023033
-023034
-023035
-025001
-025003
-025004
-025005
-025007
-025008
-025009
-025010
-025011
-025012
-025013
-025014
-025015
-025016
-025018
-025019
-025020
-025021
-025022
-025023
-025024
-025025
-025026
-025027
-025028
-025030
-025031
-025033
-025034
-025035
-025037
-025041
-025042
-025043
-025046
-025048
-025049
-025050
-025051
-025052
-025053
-025054
-025055
-025056
-025057
-025058
-025060
-025061
-025062
-025063
-027001
-027002
-027011
-036001
-037003
-037006
-037007
-037008
-038009
-039001
-039002
-039003
-039004
-039005
-039006
-046001
-046002
-046003
-046005
-046007
-046008
-046009
-046010
-046012
-046013
-046014
-047001
-047002
-048001
-051003
-051004
-052001
-052002
-052005
-053016
-053019
-053023
-053024
-053026
-053028
-053029
-053033
-053045
-053046
-053051
-053054
-053057
-053069
-053097
-053107
-053125
-053127
-054001
-054002
-054003
-054004
-054006
-054007
-054009
-054010
-056001
-056002
-056003
-056004
-056005
-056006
-056009
-056011
-056016
-056017
-056018
-056019
-056020
-056022
-057003
-057004
-058002
-058003
-058004
-058005
-060001
-060004
-060005
-060007
-061004
-061006
-069006
-069007
-069010
-069011
-069012
-069013
-069014
-069015
-069016
-069018
-069020
-069021
-069023
-071002
-071003
-071004
-071005
-071006
-071008
-071011
-071020
-071021
-071022
-072001
-074001
-074002
-074003
-074004
-074005
-074006
-074007
-074008
-074009
-074010
-074011
-074012
-075001
-075007
-076101
-076102
-076103
-077001
-077002
-077003
-077004
-077006
-077008
-077009
-078005
-079002
-079003
-079004
-079005
-079006
-079007
-081001
-082011
-082013
-082014
-082015
-082016
-082017
-082021
-082022
-082023
-082024
-082025
-082026
-082027
-082028
-082029
-082030
-082031
-082032
-082033
-082034
-082035
-082036
-082037
-082038
-082039
-082040
-082041
-082042
-082043
-082044
-084001
-084002
-084003
-084004
-084005
-084007
-084008
-084009
-084011
-084013
-084014
-084016
-084017
-084027
-084032
-084033
-084035
-084036
-084037
-084038
-084039
-084040
-084041
-084042
-084043
-084044
-084045
-084046
-084047
-084048
-084049
-084050
-084051
-085001
-085002
-085003
-085004
-085005
-085006
-085007
-085009
-085011
-085012
-085014
-085015
-085016
-085017
-085018
-085019
-085020
-085022
-085023
-085028
-085029
-085030
-085031
-085033
-085034
-085035
-085036
-085037
-085038
-085040
-085041
-085042
-085043
-085044
-085045
-085046
-085047
-085048
-085063
-085064
-085065
-085068
-085071
-085073
-085082
-085086
-085088
-085089
-085090
-085091
-085092
-085093
-085095
-085096
-085097
-085098
-085099
-085100
-085101
-085102
-085103
-085104
-085105
-085106
-085108
-085109
-085110
-085111
-085112
-085113
-085115
-085120
-085121
-085122
-085123
-085125
-085126
-085127
-085128
-085129
-085130
-085132
-085133
-085134
-085135
-085136
-085137
-086002
-086003
-086005
-088001
-088003
-088005
-088006
-088007
-088008
-088009
-089001
-090001
-090002
-090003
-090004
-090006
-090008
-090009
-090010
-090013
-090016
-090017
-090018
-090022
-090027
-091001
-091002
-091009
-091011
-091012
-091013
-091015
-091016
-091017
-091018
-093003
-099001
-100001
-106001
-113005
-113006
-113018
-113019
-113020
-115001
-115002
-115003
-115004
-115005
-115006
-115007
-115008
-115009
-115010
-115011
-115012
-115013
-115014
-115015
-115016
-115017
-115018
-115020
-115021
-115022
-115023
-115025
-115026
-115027
-115028
-115029
-115030
-115031
-115032
-115033
-115034
-115035
-115036
-115039
-115040
-115041
-115042
-115043
-115044
-115046
-115047
-115048
-115050
-115051
-115052
-115053
-115054
-115055
-115057
-115059
-115060
-115061
-115062
-115064
-115065
-115066
-115067
-115068
-115069
-115070
-115071
-115072
-115073
-115075
-115076
-115081
-115082
-115085
-115086
-115087
-115088
-115095
-115096
-115097
-115098
-115099
-115101
-115102
-115103
-115104
-115105
-115106
-115108
-115109
-115111
-115112
-115113
-115114
-115115
-115116
-115117
-115118
-115119
-115120
-115121
-115122
-116001
-116003
-116004
-116005
-116006
-116007
-116008
-116009
-116010
-116011
-116012
-123001
-124065
-126001
-126002
-126003
-126004
-126005
-126006
-126007
-126008
-126009
-126010
-126011
-126012
-130001
-132001
-132002
-133001
-133008
-133009
-133010
-133011
-133012
-133015
-133016
-133018
-133019
-133021
-133022
-133023
-133024
-133025
-133027
-133028
-133029
-133030
-133031
-134001
-135001
-135002
-135004
-135010
-137010
-137011
-137012
-137014
-137015
-137016
-137019
-139001
-140001
-141001
-141002
-141003
-141006
-141007
-141009
-141011
-141012
-141014
-141015
-141016
-141017
-141018
-141019
-141020
-141021
-141022
-141023
-141024
-141025
-141026
-141027
-141028
-145001
-145002
-145003
-145004
-145005
-145006
-145008
-145009
-145011
-145012
-145013
-150009
-150013
-150014
-150015
-150016
-150017
-150020
-152001
-152002
-152003
-152004
-152005
-152006
-152007
-154001
-154002
-155001
-155002
-155003
-155004
-155006
-159001
-159003
-160001
-160002
-161001
-162002
-162003
-162007
-162012
-163001
-163011
-163015
-163016
-165001
-165002
-165003
-165004
-165005
-165006
-165007
-165008
-165009
-165010
-165011
-165012
-165013
-165014
-165015
-165016
-165017
-165018
-165019
-165020
-165021
-165022
-165023
-165024
-165025
-165026
-165028
-165029
-165030
-165031
-165033
-165034
-165035
-165036
-168003
-168004
-168005
-168014
-169001
-169002
-169003
-169007
-169008
-169009
-169010
-171006
-171007
-171008
-171009
-172001
-176001
-176002
-176003
-177001
-179007
-179012
-179013
-179042
-179044
-179045
-180001
-180013
-180014
-180015
-180017
-180018
-180020
-180021
-180027
-180030
-180033
-180035
-180036
-180037
-180038
-180041
-180042
-180045
-180047
-180048
-180049
-180050
-180054
-180060
-180066
-180067
-180068
-180070
-182001
-184001
-184002
-184005
-184006
-184008
-184009
-184010
-184011
-185001
-185003
-187001
-191002
-192002
-194003
-197001
-197002
-197003
-197004
-197005
-197006
-198001
-198003
-198004
-198005
-198006
-198007
-198008
-198009
-198010
-198011
-198012
-198015
-198016
-198017
-201001
-201002
-202001
-203001
-203002
-203003
-203017
-203018
-203019
-204001
-204002
-205001
-208001
-208002
-208003
-208004
-208005
-209001
-209002
-209003
-210001
-210004
-210009
-210010
-212001
-212002
-212003
-212004
-212005
-212006
-212007
-212008
-212009
-212010
-212011
-212012
-212013
-218001
-218004
-218009
-218011
-218015
-218020
-218021
-218022
-218023
-218024
-218025
-218026
-218027
-218028
-218029
-218030
-218031
-221001
-221002
-221003
-221004
-221005
-221006
-221007
-221008
-221009
-221010
-221011
-221012
-221013
-223003
-224001
-224002
-224003
-224007
-224008
-225001
-225002
-225003
-225004
-225005
-225006
-225007
-225008
-225009
-225010
-225011
-225012
-225013
-226001
-226002
-226003
-226005
-226006
-226007
-227011
-227015
-227041
-227045
-227052
-227056
-227063
-227064
-227066
-227067
-227069
-227071
-227073
-227085
-227116
-227119
-227131
-227133
-227147
-229005
-233003
-233004
-235001
-235002
-235003
-235004
-235005
-236001
-236002
-236003
-238002
-238003
-238004
-238005
-238007
-238008
-334005
-334006
-337001
-337002
-337003
-337004
-343001
-344001
-344002
-344003
-344004
-344005
-345001
-348001
-348004
-348005
-349001
-349002
-350001
-353002
-353003
-355001
-355002
-355005
-355006
-356001
-358001
-359001
-359002
-360001
-360002
-360003
-360004
-360005
-366001
-366002
-366003
-366004
-369001
-373001
-373002
-373003
-373005
-373007
-373008
-373009
-373010
-373011
-373012
-373013
-373014
-373015
-373017
-373018
-373021
-374002
-374004
-374006
-374007
-374008
-374009
-374010
-374011
-374012
-374015
-374016
-382001
-382002
-384001
-386001
-386002
-386003
-386004
-386005
-386006
-386007
-386008
-386009
-386010
-386011
-386012
-386013
-386014
-389001
-389002
-389003
-389004
-392001
-393001
-393002
-393003
-393004
-395001
-397001
-397002
-399001
-399002
-399003
-400001
-400002
-403002
-504001
-504002
-504004
-504005
-504006
-504007
-504008
-504009
-504010
-504011
-504012
-504014
-504017
-504021
-504022
-504023
-504024
-504025
-506001
-506002
-511001
-511002
-511003
-511004
-511005
-511006
-511007
-511008
-511009
-511010
-511011
-511012
-511013
-511014
-511017
-511018
-511020
-511021
-511022
-511024
-511028
-511029
-513001
-513002
-513003
-513004
-515001
-515002
-515003
-515007
-515008
-515011
-515012
-515013
-515014
-515015
-518001
-518002
-521001
-521002
-521003
-521004
-521005
-521006
-521009
-521010
-521011
-521012
-521013
-521015
-521016
-523001
-523002
-523003
-523004
-523005
-523006
-523007
-524001
-700001
-701001
-701002
-701003
-702001
-702002
-702004
-702005
-704001
-704004
-705001
-706001
-706002
-707001
-707002
-707003
-708001
-710001
-710002
-711001
-711002
-712001
-714001
-714002
-715001
-719001
-719002
-991002
-991003
-991004
-991005
-991006
-991007
-995001
-996001
-996002
-996003
-998001
-998002
-998003
-998004
-998005
-998006
-998007
-999001
-999002
-011017
-011018
-034001
-034002
-071010
-519001
-126013
-184012
-404001
-405002
-405001
-405003
-405006
-240011
-240010
-240009
-240008
-240007
-240005
-240004
-240003
-240002
-240001
-240012
-240013
-240014
-240015
-240016
-240017
-357001
-235006
-235007
-056023
-046015
-019005
-126014
-241003
-241002
-241001
-240020
-240019
-242001
-242002
-242004
-242005
-242006
-089002
-406001
-406002
-406003
-406004
-243001
-243005
-243006
-243007
-243008
-408001
-366005
-016035
-077010
-996004
-025064
-011019
-115123
-504026
-039007
-039009
-039008
-039010
-039011
-039012
-180072
-240021
-240023
-405008
-525002
-410002
-410004
-410005
-410006
-410007
-410008
-410009
-410010
-410011
-410012
-410013
-410014
-410016
-344006
-240031
-240030
-240029
-240028
-240027
-240026
-240025
-240024
-240034
-240033
-240032
-411001
-411002
-203020
-069025
-244001
-244002
-244009
-244008
-244007
-244006
-244004
-244003
-244014
-244013
-244012
-244011
-244016
-244017
-240040
-240037
-405009
-405010
-240043
-504028
-504040
-800001
-410019
-410020
-410021
-244018
-244019
-244020
-413001
-344007
-082045
-010031
-010032
-010033
-010034
-010035
-504044
-515016
-801002
-801003
-801004
-801005
-802001
-801001
-414001
-141029
-803001
-803002
-803004
-803005
-803006
-803007
-803008
-803009
-803013
-803014
-803015
-803016
-803017
-410022
-410023
-803019
-415002
-415001
-244021
-011020
-011023
-011022
-011021
-025065
-165037
-165038
-165039
-416001
-416002
-416003
-417001
-418001
-504045
-803022
-240022
-420001
-804010
-804005
-804002
-804018
-804013
-511019
-511016
-511015
-511032
-511031
-511030
-511027
-511026
-511025
-511033
-511023
-133034
-133033
-169011
-344008
-244022
-244026
-244025
-244030
-244023
-244024
-244027
-244028
-244029
-244031
-082046
-082047
-082048
-126015
-126016
-416005
-421001
-421002
-016037
-016036
-115124
-115126
-240049
-240048
-240047
-240046
-240045
-240044
-244032
-244033
-422002
-422004
-422005
-184013
-805001
-805002
-805003
-805004
-805005
-056024
-423001
-344010
-235009
-212014
-056025
-056026
-244034
-244035
-244036
-244037
-244038
-244039
-203015
-245002
-245001
-056029
-056030
-056032
-424001
-056034
-056033
-805006
-805007
-805008
-805009
-805010
-422008
-422007
-422006
-422010
-422009
-422011
-209004
-150022
-100002
-056035
-023036
-185005
-246001
-247001
-247002
-425001
-416006
-165042
-165041
-165040
-165043
-010040
-010039
-010038
-010036
-248001
-248002
-248003
-248004
-248005
-249001
-249003
-249004
-249005
-250007
-250001
-250002
-250003
-250004
-250005
-250006
-250008
-250009
-250010
-250011
-250012
-250013
-251001
-251002
-806001
-806002
-235010
-243009
-249007
-249008
-249009
-011024
-011025
-429001
-429002
-429003
-drop table t1;
-create table t1 (a enum (' ','a','b') not null);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('','a','b') NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a enum (' ','a','b ') not null default 'b ');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('','a','b') NOT NULL DEFAULT 'b'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a enum ('0','1'));
-insert ignore into t1 set a='foobar';
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-
-update ignore t1 set a = replace(a,'x','y');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-
-drop table t1;
-set names latin1;
-create table t1 (a enum(0xE4, '1', '2') not null default 0xE4);
-show columns from t1;
-Field Type Null Key Default Extra
-a enum('ä','1','2') NO ä
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('ä','1','2') NOT NULL DEFAULT 'ä'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set names latin1;
-CREATE TABLE t1 (
-a INT default 1,
-b ENUM('value','öäü_value','ÊÃÕ') character set latin1 NOT NULL
-);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT 1,
- `b` enum('value','öäü_value','ÊÃÕ') NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show columns from t1;
-Field Type Null Key Default Extra
-a int(11) YES 1
-b enum('value','öäü_value','ÊÃÕ') NO NULL
-drop table t1;
-CREATE TABLE t1 (c enum('a', 'A') BINARY);
-INSERT INTO t1 VALUES ('a'),('A');
-SELECT * FROM t1;
-c
-a
-A
-DROP TABLE t1;
-CREATE TABLE t1 (c enum('ae','oe','ue','ss') collate latin1_german2_ci);
-INSERT INTO t1 VALUES ('ä'),('ö'),('ü'),('ß');
-SELECT * FROM t1;
-c
-ae
-oe
-ue
-ss
-DROP TABLE t1;
-CREATE TABLE t1 (
-a ENUM('ä','ö','ü') character set utf8 default 'ü'
-);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('ä','ö','ü') CHARACTER SET utf8 DEFAULT 'ü'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('ä'), ('ö'), ('ü');
-select a from t1 order by a;
-a
-drop table t1;
-set names utf8;
-CREATE TABLE t1 (
-a ENUM('ä','ö','ü') character set latin1 default 'ü'
-);
-insert into t1 values ('ä'),('ö'),('ü');
-set names latin1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('ä','ö','ü') DEFAULT 'ü'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select a from t1 order by a;
-a
-drop table t1;
-create table t1 (a enum ('Y','N') CHARACTER SET utf8 COLLATE utf8_bin);
-insert into t1 values ('Y');
-alter table t1 add b set ('Y','N') CHARACTER SET utf8 COLLATE utf8_bin;
-alter table t1 add c enum ('Y','N') CHARACTER SET utf8 COLLATE utf8_bin;
-select * from t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 a a 254 1 1 Y 384 0 8
-def test t1 t1 b b 254 3 0 Y 2176 0 8
-def test t1 t1 c c 254 1 0 Y 384 0 8
-a b c
-Y NULL NULL
-drop table t1;
-create table t1 (a enum('x','y') default 'x');
-alter table t1 alter a set default 'z';
-ERROR 42000: Invalid default value for 'a'
-drop table t1;
-create table t1 (a set('x','y') default 'x');
-alter table t1 alter a set default 'z';
-ERROR 42000: Invalid default value for 'a'
-drop table t1;
-create table t1 (f1 int);
-alter table t1 add f2 enum(0xFFFF);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f1` int(11) DEFAULT NULL,
- `f2` enum('ÿÿ') DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1(russian enum('E','F','EÿF','FÿE') NOT NULL DEFAULT'E');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `russian` enum('E','F','EÿF','FÿE') NOT NULL DEFAULT 'E'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1(denormal enum('E','F','E,F','F,E') NOT NULL DEFAULT'E');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `denormal` enum('E','F','E,F','F,E') NOT NULL DEFAULT 'E'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1(russian_deviant enum('E','F','EÿF','F,E') NOT NULL DEFAULT'E');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `russian_deviant` enum('E','F','EÿF','F,E') NOT NULL DEFAULT 'E'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1(exhausting_charset enum('ABCDEFGHIJKLMNOPQRSTUVWXYZ','
-  !"','#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~','xx\','yy\€','zz‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ'));
-ERROR 42000: Field separator argument is not what is expected; check the manual
-CREATE TABLE t1 (
-id INT AUTO_INCREMENT PRIMARY KEY,
-c1 ENUM('a', '', 'b')
-);
-INSERT IGNORE INTO t1 (c1) VALUES (0), ('a'), (''), ('b');
-Warnings:
-Warning 1265 Data truncated for column 'c1' at row 1
-SELECT id, c1 + 0, c1 FROM t1;
-id c1 + 0 c1
-1 0
-2 1 a
-3 2
-4 3 b
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 CHANGE c1 c1 ENUM('a', '') NOT NULL;
-Warnings:
-Warning 1265 Data truncated for column 'c1' at row 4
-SELECT id, c1 + 0, c1 FROM t1;
-id c1 + 0 c1
-1 0
-2 1 a
-3 2
-4 0
-DROP TABLE t1;
-End of 4.1 tests
-SET sql_mode='';
-create table t1(f1 enum('a','b'), index(f1));
-insert into t1 values(''),(''),('a'),('b');
-Warnings:
-Warning 1265 Data truncated for column 'f1' at row 1
-Warning 1265 Data truncated for column 'f1' at row 2
-select * from t1 where f1='';
-f1
-
-
-drop table t1;
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (c1 ENUM('a', '', 'b'));
-INSERT INTO t1 (c1) VALUES ('b');
-INSERT INTO t1 (c1) VALUES ('');
-INSERT IGNORE INTO t1 (c1) VALUES (0);
-Warnings:
-Warning 1265 Data truncated for column 'c1' at row 1
-INSERT INTO t1 (c1) VALUES ('');
-SELECT c1 + 0, COUNT(c1) FROM t1 GROUP BY c1;
-c1 + 0 COUNT(c1)
-0 1
-2 2
-3 1
-CREATE TABLE t2 SELECT * FROM t1;
-SELECT c1 + 0 FROM t2;
-c1 + 0
-3
-2
-0
-2
-DROP TABLE t1,t2;
-CREATE TABLE t1(a enum('a','b','c','d'));
-INSERT INTO t1 VALUES (4),(1),(0),(3);
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 3
-SELECT a FROM t1;
-a
-d
-a
-
-c
-EXPLAIN SELECT a FROM t1 WHERE a=0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-SELECT a FROM t1 WHERE a=0;
-a
-
-ALTER TABLE t1 ADD PRIMARY KEY (a);
-EXPLAIN SELECT a FROM t1 WHERE a=0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 1 const 1 Using index
-SELECT a FROM t1 WHERE a=0;
-a
-
-DROP TABLE t1;
-End of 5.1 tests
-#
-# MDEV-4241: Assertion failure: scale >= 0 && precision > 0 &&
-# scale <= precision in decimal_bin_size
-#
-CREATE TABLE t1 (
-f1 enum('1','2','3','4','5')
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT AVG(f1) FROM t1;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def AVG(f1) 246 7 6 Y 32896 4 63
-AVG(f1)
-1.5000
-drop table t1;
-End of 5.3 tests
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-6950 Bad results with joins comparing DATE/DATETIME and INT/ENUM/VARCHAR columns
-#
-CREATE TABLE t1 (c1 DATE PRIMARY KEY);
-INSERT INTO t1 VALUES ('2001-01-01');
-CREATE TABLE t2 (c1 ENUM('2001-01-01','2001/01/01'));
-INSERT INTO t2 VALUES ('2001-01-01');
-INSERT INTO t2 VALUES ('2001/01/01');
-SELECT t1.* FROM t1,t2 WHERE t1.c1=t2.c1;
-c1
-2001-01-01
-2001-01-01
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1=t2.c1;
-c1
-2001-01-01
-2001-01-01
-ALTER TABLE t2 ADD PRIMARY KEY(c1);
-SELECT t1.* FROM t1,t2 WHERE t1.c1=t2.c1;
-c1
-2001-01-01
-2001-01-01
-EXPLAIN SELECT t1.* FROM t1,t2 WHERE t1.c1=t2.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 1 NULL 2 Using where; Using index
-SELECT t1.* FROM t1 LEFT JOIN t2 USING (c1);
-c1
-2001-01-01
-2001-01-01
-# t2 should NOT be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 USING (c1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 1 NULL 2 Using where; Using index
-DROP TABLE t1, t2;
-#
-# MDEV-6978 Bad results with join comparing case insensitive VARCHAR/ENUM/SET expression to a _bin ENUM column
-#
-CREATE TABLE t1 (c1 ENUM('a') CHARACTER SET latin1 PRIMARY KEY);
-INSERT INTO t1 VALUES ('a');
-CREATE TABLE t2 (c1 ENUM('a','A') CHARACTER SET latin1 COLLATE latin1_bin);
-INSERT INTO t2 VALUES ('a'),('A');
-SELECT t1.* FROM t1 JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-ALTER TABLE t2 ADD PRIMARY KEY(c1);
-SELECT t1.* FROM t1 JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-# t2 should NOT be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 1 NULL 2 Using where; Using index
-DROP TABLE IF EXISTS t1,t2;
-CREATE TABLE t1 (c1 SET('a') CHARACTER SET latin1 PRIMARY KEY);
-INSERT INTO t1 VALUES ('a');
-CREATE TABLE t2 (c1 ENUM('a','A') CHARACTER SET latin1 COLLATE latin1_bin);
-INSERT INTO t2 VALUES ('a'),('A');
-SELECT t1.* FROM t1 JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-ALTER TABLE t2 ADD PRIMARY KEY(c1);
-SELECT t1.* FROM t1 JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-# t2 should NOT be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 1 NULL 2 Using where; Using index
-DROP TABLE IF EXISTS t1,t2;
-CREATE TABLE t1 (c1 VARCHAR(10) CHARACTER SET latin1 PRIMARY KEY);
-INSERT INTO t1 VALUES ('a');
-CREATE TABLE t2 (c1 ENUM('a','A') CHARACTER SET latin1 COLLATE latin1_bin);
-INSERT INTO t2 VALUES ('a'),('A');
-SELECT t1.* FROM t1 JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-ALTER TABLE t2 ADD PRIMARY KEY(c1);
-SELECT t1.* FROM t1 JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-# t2 should NOT be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 1 NULL 2 Using where; Using index
-DROP TABLE IF EXISTS t1,t2;
-#
-# MDEV-6991 GROUP_MIN_MAX optimization is erroneously applied in some cases
-#
-CREATE TABLE t1 (id INT NOT NULL, a ENUM('04','03','02','01')) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'01');
-INSERT INTO t1 VALUES (1,'02');
-INSERT INTO t1 VALUES (1,'03');
-INSERT INTO t1 VALUES (1,'04');
-INSERT INTO t1 VALUES (2,'01');
-INSERT INTO t1 VALUES (2,'02');
-INSERT INTO t1 VALUES (2,'03');
-INSERT INTO t1 VALUES (2,'04');
-INSERT INTO t1 VALUES (3,'01');
-INSERT INTO t1 VALUES (3,'02');
-INSERT INTO t1 VALUES (3,'03');
-INSERT INTO t1 VALUES (3,'04');
-INSERT INTO t1 VALUES (4,'01');
-INSERT INTO t1 VALUES (4,'02');
-INSERT INTO t1 VALUES (4,'03');
-INSERT INTO t1 VALUES (4,'04');
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a>='02' GROUP BY id;
-id MIN(a) MAX(a)
-1 02 04
-2 02 04
-3 02 04
-4 02 04
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a<=3 GROUP BY id;
-id MIN(a) MAX(a)
-1 02 04
-2 02 04
-3 02 04
-4 02 04
-ALTER TABLE t1 ADD KEY(id,a);
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a>='02' GROUP BY id;
-id MIN(a) MAX(a)
-1 02 04
-2 02 04
-3 02 04
-4 02 04
-# Should NOT use group_min_max optimization
-EXPLAIN SELECT id,MIN(a),MAX(a) FROM t1 WHERE a>='02' GROUP BY id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL id 6 NULL 16 Using where; Using index
-SELECT id,MIN(a),MAX(a) FROM t1 WHERE a<=3 GROUP BY id;
-id MIN(a) MAX(a)
-1 02 04
-2 02 04
-3 02 04
-4 02 04
-# Should NOT use group_min_max optimization
-EXPLAIN SELECT id,MIN(a),MAX(a) FROM t1 WHERE a<=3 GROUP BY id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL id 6 NULL 16 Using where; Using index
-DROP TABLE t1;
-#
-# MDEV-6993 Bad results with join comparing DECIMAL and ENUM/SET columns
-#
-CREATE TABLE t1 (c1 DECIMAL(10,1) PRIMARY KEY);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (c1 ENUM('a','b'));
-INSERT INTO t2 VALUES ('a'),('b');
-SELECT t1.* FROM t1 NATURAL JOIN t2;
-c1
-1.0
-2.0
-ALTER TABLE t2 ADD PRIMARY KEY(c1);
-SELECT t1.* FROM t1 NATURAL JOIN t2;
-c1
-1.0
-2.0
-SELECT t1.* FROM t1 LEFT OUTER JOIN t2 USING (c1);
-c1
-1.0
-2.0
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DECIMAL(10,1), b ENUM('1','2'));
-INSERT INTO t1 (a) VALUES (1),(2);
-UPDATE t1 SET b=a;
-SELECT * FROM t1;
-a b
-1.0 1
-2.0 2
-ALTER TABLE t1 MODIFY a ENUM('1','2');
-SELECT * FROM t1;
-a b
-1 1
-2 2
-DROP TABLE t1;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8729 Wrong result for SELECT..WHERE HEX(enum_column)='61' AND enum_column='a '
-#
-CREATE TABLE t1 (a ENUM('a','A') CHARACTER SET latin1 COLLATE latin1_bin);
-INSERT INTO t1 VALUES ('a'),('A');
-SELECT * FROM t1 WHERE a='a ';
-a
-a
-SELECT * FROM t1 WHERE HEX(a)='61';
-a
-a
-SELECT * FROM t1 WHERE HEX(a)='61' AND a='a ';
-a
-a
-# Can't propagate the equality into HEX(a), because binary collations still ignore trailing spaces
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE HEX(a)='61' AND a='a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a ' and hex(`test`.`t1`.`a`) = '61'
-DROP TABLE t1;
-CREATE TABLE t1 (a ENUM('a','a ') CHARACTER SET BINARY);
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE a='a ';
-a
-a
-SELECT * FROM t1 WHERE HEX(a)='61';
-a
-a
-SELECT * FROM t1 WHERE HEX(a)='61' AND a='a';
-a
-a
-SELECT * FROM t1 WHERE HEX(a)='61' AND a='a ';
-a
-# Ok to propagate the equality into HEX(a), because "CHARACTER SET BINARY" does not ignore trailing spaces
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE HEX(a)='61' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE HEX(a)='61' AND a='a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# MDEV-9340 Copying from INT/DOUBLE to ENUM is inconsistent
-#
-CREATE TABLE t1 (a ENUM('9e200','9e100'));
-CREATE TABLE t2 (a DOUBLE);
-INSERT INTO t2 VALUES ('9e100');
-INSERT IGNORE INTO t1 SELECT * FROM t2;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1;
-a
-
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES (9e100);
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 MODIFY a ENUM('9e200','9e100');
-Warnings:
-Warning 1916 Got overflow when converting '9e100' to INT. Value truncated
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1;
-a
-
-DROP TABLE t1;
-CREATE TABLE t1 (a ENUM('200','100'));
-CREATE TABLE t2 (a DOUBLE);
-INSERT INTO t2 VALUES ('100');
-INSERT IGNORE INTO t1 SELECT * FROM t2;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1;
-a
-
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a ENUM('200','100'));
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 VALUES ('100');
-INSERT IGNORE INTO t1 SELECT * FROM t2;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1;
-a
-
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES ('200');
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 MODIFY a ENUM('200','100');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT *FROM t1;
-a
-
-DROP TABLE t1;
-CREATE TABLE t1 (a ENUM('200','100'));
-CREATE TABLE t2 (a INT);
-INSERT INTO t2 VALUES ('100');
-INSERT IGNORE INTO t1 SELECT * FROM t2;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1;
-a
-
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a ENUM('2001','2002'));
-CREATE TABLE t2 (a YEAR);
-INSERT INTO t2 VALUES ('2001');
-INSERT IGNORE INTO t1 SELECT * FROM t2;
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1;
-a
-
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a YEAR);
-INSERT INTO t1 VALUES ('2001');
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 MODIFY a ENUM('2001','2002');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1;
-a
-
-DROP TABLE t1;
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12432 Range optimizer for ENUM and SET does not return "Impossible WHERE" in some case
-#
-CREATE TABLE t1 (a ENUM('a','b','c','1'),KEY(a));
-INSERT INTO t1 VALUES ('a'),('b'),('c'),('1');
-EXPLAIN SELECT * FROM t1 WHERE a='xx';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a='99999999';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a=100.1e0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a=100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a=100.1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a='100';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a='1x';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a='1.0';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a='1.1';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-DROP TABLE t1;
-#
-# MDEV-12656 Crash in CREATE..SELECT..UNION with a ENUM column and NULL
-#
-CREATE TABLE t1 (a ENUM('a'));
-# non-UNION + table column
-CREATE TABLE t2 AS SELECT (SELECT a FROM t1);
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `(SELECT a FROM t1)` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-# UNION + table column
-CREATE TABLE t2 AS SELECT (SELECT a FROM t1 UNION SELECT NULL);
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `(SELECT a FROM t1 UNION SELECT NULL)` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-# UNION + SP variable
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE va ENUM('a');
-CREATE TABLE t2 AS SELECT (SELECT va FROM t1 UNION SELECT NULL);
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-$$
-CALL p1();
-Table Create Table
-t2 CREATE TABLE `t2` (
- `(SELECT va FROM t1 UNION SELECT NULL)` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP PROCEDURE p1;
-# UNION + anchored SP variable
-CREATE PROCEDURE p1()
-BEGIN
-DECLARE va TYPE OF t1.a;
-CREATE TABLE t2 AS SELECT (SELECT va FROM t1 UNION SELECT NULL);
-SHOW CREATE TABLE t2;
-DROP TABLE t2;
-END;
-$$
-CALL p1();
-Table Create Table
-t2 CREATE TABLE `t2` (
- `(SELECT va FROM t1 UNION SELECT NULL)` varchar(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP PROCEDURE p1;
-DROP TABLE t1;
diff --git a/mysql-test/r/type_float.result b/mysql-test/r/type_float.result
deleted file mode 100644
index 57cdd1561df..00000000000
--- a/mysql-test/r/type_float.result
+++ /dev/null
@@ -1,802 +0,0 @@
-drop table if exists t1,t2;
-SELECT 10,10.0,10.,.1e+2,100.0e-1;
-10 10.0 10. .1e+2 100.0e-1
-10 10.0 10 10 10
-SELECT 6e-16, -6e-16, --6e-16, -6e-16+1.000000;
-6e-16 -6e-16 --6e-16 -6e-16+1.000000
-6e-16 -6e-16 6e-16 0.9999999999999994
-SELECT 1e1,1.e1,1.0e1,1e+1,1.e+1,1.0e+1,1e-1,1.e-1,1.0e-1;
-1e1 1.e1 1.0e1 1e+1 1.e+1 1.0e+1 1e-1 1.e-1 1.0e-1
-10 10 10 10 10 10 0.1 0.1 0.1
-SELECT 0.001e+1,0.001e-1, -0.001e+01,-0.001e-01;
-0.001e+1 0.001e-1 -0.001e+01 -0.001e-01
-0.01 0.0001 -0.01 -0.0001
-SELECT 123.23E+02,-123.23E-02,"123.23E+02"+0.0,"-123.23E-02"+0.0;
-123.23E+02 -123.23E-02 "123.23E+02"+0.0 "-123.23E-02"+0.0
-12323 -1.2323 12323 -1.2323
-SELECT 2147483647E+02,21474836.47E+06;
-2147483647E+02 21474836.47E+06
-214748364700 21474836470000
-create table t1 (f1 float(24),f2 float(52));
-show full columns from t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-f1 float NULL YES NULL #
-f2 double NULL YES NULL #
-insert into t1 values(10,10),(1e+5,1e+5),(1234567890,1234567890),(1e+10,1e+10),(1e+15,1e+15),(1e+20,1e+20),(1e+50,1e+50),(1e+150,1e+150);
-Warnings:
-Warning 1264 Out of range value for column 'f1' at row 7
-Warning 1264 Out of range value for column 'f1' at row 8
-insert into t1 values(-10,-10),(1e-5,1e-5),(1e-10,1e-10),(1e-15,1e-15),(1e-20,1e-20),(1e-50,1e-50),(1e-150,1e-150);
-select * from t1;
-f1 f2
-10 10
-100000 100000
-1234570000 1234567890
-10000000000 10000000000
-1e15 1e15
-1e20 1e20
-3.40282e38 1e50
-3.40282e38 1e150
--10 -10
-0.00001 0.00001
-0.0000000001 0.0000000001
-0.000000000000001 0.000000000000001
-1e-20 1e-20
-0 1e-50
-0 1e-150
-drop table t1;
-create table t1 (datum double);
-insert into t1 values (0.5),(1.0),(1.5),(2.0),(2.5);
-select * from t1;
-datum
-0.5
-1
-1.5
-2
-2.5
-select * from t1 where datum < 1.5;
-datum
-0.5
-1
-select * from t1 where datum > 1.5;
-datum
-2
-2.5
-select * from t1 where datum = 1.5;
-datum
-1.5
-drop table t1;
-create table t1 (a decimal(7,3) not null, key (a));
-insert into t1 values ("0"),("-0.00"),("-0.01"),("-0.002"),("1");
-select a from t1 order by a;
-a
--0.010
--0.002
-0.000
-0.000
-1.000
-select min(a) from t1;
-min(a)
--0.010
-drop table t1;
-create table t1 (c1 double, c2 varchar(20));
-insert t1 values (121,"16");
-select c1 + c1 * (c2 / 100) as col from t1;
-col
-140.36
-create table t2 select c1 + c1 * (c2 / 100) as col1, round(c1, 5) as col2, round(c1, 35) as col3, sqrt(c1*1e-15) col4 from t1;
-select * from t2;
-col1 col2 col3 col4
-140.36 121.00000 121 0.00000034785054261852176
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `col1` double DEFAULT NULL,
- `col2` double(22,5) DEFAULT NULL,
- `col3` double DEFAULT NULL,
- `col4` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1,t2;
-create table t1 (a float);
-insert into t1 values (1);
-select max(a),min(a),avg(a) from t1;
-max(a) min(a) avg(a)
-1 1 1
-drop table t1;
-create table t1 (f float, f2 float(24), f3 float(6,2), d double, d2 float(53), d3 double(10,3), de decimal, de2 decimal(6), de3 decimal(5,2), n numeric, n2 numeric(8), n3 numeric(7,6));
-show full columns from t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-f float NULL YES NULL #
-f2 float NULL YES NULL #
-f3 float(6,2) NULL YES NULL #
-d double NULL YES NULL #
-d2 double NULL YES NULL #
-d3 double(10,3) NULL YES NULL #
-de decimal(10,0) NULL YES NULL #
-de2 decimal(6,0) NULL YES NULL #
-de3 decimal(5,2) NULL YES NULL #
-n decimal(10,0) NULL YES NULL #
-n2 decimal(8,0) NULL YES NULL #
-n3 decimal(7,6) NULL YES NULL #
-drop table t1;
-create table t1 (a decimal(7,3) not null, key (a));
-insert into t1 values ("0"),("-0.00"),("-0.01"),("-0.002"),("1");
-select a from t1 order by a;
-a
--0.010
--0.002
-0.000
-0.000
-1.000
-select min(a) from t1;
-min(a)
--0.010
-drop table t1;
-create table t1 (a float(200,100), b double(200,100));
-ERROR 42000: Too big scale 100 specified for 'a'. Maximum is 30
-create table t1 (c20 char);
-insert ignore into t1 values (5000.0);
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-insert ignore into t1 values (0.5e4);
-Warnings:
-Warning 1265 Data truncated for column 'c20' at row 1
-drop table t1;
-create table t1 (f float(54));
-ERROR 42000: Incorrect column specifier for column 'f'
-drop table if exists t1;
-create table t1 (d1 double, d2 double unsigned);
-insert into t1 set d1 = -1.0;
-update ignore t1 set d2 = d1;
-Warnings:
-Warning 1264 Out of range value for column 'd2' at row 1
-select * from t1;
-d1 d2
--1 0
-drop table t1;
-create table t1 (f float(4,3));
-insert ignore into t1 values (-11.0),(-11),("-11"),(11.0),(11),("11");
-Warnings:
-Warning 1264 Out of range value for column 'f' at row 1
-Warning 1264 Out of range value for column 'f' at row 2
-Warning 1264 Out of range value for column 'f' at row 3
-Warning 1264 Out of range value for column 'f' at row 4
-Warning 1264 Out of range value for column 'f' at row 5
-Warning 1264 Out of range value for column 'f' at row 6
-select * from t1;
-f
--9.999
--9.999
--9.999
-9.999
-9.999
-9.999
-drop table if exists t1;
-create table t1 (f double(4,3));
-insert ignore into t1 values (-11.0),(-11),("-11"),(11.0),(11),("11");
-Warnings:
-Warning 1264 Out of range value for column 'f' at row 1
-Warning 1264 Out of range value for column 'f' at row 2
-Warning 1264 Out of range value for column 'f' at row 3
-Warning 1264 Out of range value for column 'f' at row 4
-Warning 1264 Out of range value for column 'f' at row 5
-Warning 1264 Out of range value for column 'f' at row 6
-select * from t1;
-f
--9.999
--9.999
--9.999
-9.999
-9.999
-9.999
-drop table if exists t1;
-create table t1 (c char(20));
-insert into t1 values (5e-28);
-select * from t1;
-c
-5e-28
-drop table t1;
-create table t1 (c char(6));
-insert into t1 values (2e5),(2e6),(2e-4),(2e-5);
-select * from t1;
-c
-200000
-2e6
-0.0002
-2e-5
-drop table t1;
-CREATE TABLE t1 (
-reckey int unsigned NOT NULL,
-recdesc varchar(50) NOT NULL,
-PRIMARY KEY (reckey)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-INSERT INTO t1 VALUES (108, 'Has 108 as key');
-INSERT INTO t1 VALUES (109, 'Has 109 as key');
-select * from t1 where reckey=108;
-reckey recdesc
-108 Has 108 as key
-select * from t1 where reckey=1.08E2;
-reckey recdesc
-108 Has 108 as key
-select * from t1 where reckey=109;
-reckey recdesc
-109 Has 109 as key
-select * from t1 where reckey=1.09E2;
-reckey recdesc
-109 Has 109 as key
-drop table t1;
-create table t1 (d double(10,1));
-create table t2 (d double(10,9));
-insert into t1 values ("100000000.0");
-insert into t2 values ("1.23456780");
-create table t3 select * from t2 union select * from t1;
-select * from t3;
-d
-1.234567800
-100000000.000000000
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `d` double(18,9) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2, t3;
-create table t1 select 105213674794682365.00 + 0.0 x;
-show warnings;
-Level Code Message
-desc t1;
-Field Type Null Key Default Extra
-x decimal(21,2) NO NULL
-drop table t1;
-create table t1 select 0.0 x;
-desc t1;
-Field Type Null Key Default Extra
-x decimal(2,1) NO NULL
-create table t2 select 105213674794682365.00 y;
-desc t2;
-Field Type Null Key Default Extra
-y decimal(20,2) NO NULL
-create table t3 select x+y a from t1,t2;
-show warnings;
-Level Code Message
-desc t3;
-Field Type Null Key Default Extra
-a decimal(21,2) NO NULL
-drop table t1,t2,t3;
-select 1e-308, 1.00000001e-300, 100000000e-300;
-1e-308 1.00000001e-300 100000000e-300
-1e-308 1.00000001e-300 1e-292
-select 10e307;
-10e307
-1e308
-create table t1(a int, b double(8, 2));
-insert into t1 values
-(1, 28.50), (1, 121.85), (1, 157.23), (1, 1351.00), (1, -1965.35), (1, 81.75),
-(1, 217.08), (1, 7.94), (4, 96.07), (4, 6404.65), (4, -6500.72), (2, 100.00),
-(5, 5.00), (5, -2104.80), (5, 2033.80), (5, 0.07), (5, 65.93),
-(3, -4986.24), (3, 5.00), (3, 4857.34), (3, 123.74), (3, 0.16),
-(6, -1695.31), (6, 1003.77), (6, 499.72), (6, 191.82);
-explain select sum(b) s from t1 group by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 26 Using temporary; Using filesort
-select sum(b) s from t1 group by a;
-s
-0.00
-100.00
-0.00
--0.00
--0.00
-0.00
-select sum(b) s from t1 group by a having s <> 0;
-s
-100.00
-select sum(b) s from t1 group by a having s <> 0 order by s;
-s
-100.00
-select sum(b) s from t1 group by a having s <=> 0;
-s
-0.00
-0.00
--0.00
--0.00
-0.00
-select sum(b) s from t1 group by a having s <=> 0 order by s;
-s
--0.00
--0.00
-0.00
-0.00
-0.00
-alter table t1 add key (a, b);
-explain select sum(b) s from t1 group by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL a 14 NULL 26 Using index
-select sum(b) s from t1 group by a;
-s
-0.00
-100.00
-0.00
--0.00
-0.00
-0.00
-select sum(b) s from t1 group by a having s <> 0;
-s
-100.00
-select sum(b) s from t1 group by a having s <> 0 order by s;
-s
-100.00
-select sum(b) s from t1 group by a having s <=> 0;
-s
-0.00
-0.00
--0.00
-0.00
-0.00
-select sum(b) s from t1 group by a having s <=> 0 order by s;
-s
--0.00
-0.00
-0.00
-0.00
-0.00
-drop table t1;
-End of 4.1 tests
-create table t1 (s1 float(0,2));
-ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 's1')
-create table t1 (s1 float(1,2));
-ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 's1')
-CREATE TABLE t1 (
-f1 real zerofill,
-f2 double zerofill,
-f3 float zerofill);
-INSERT INTO t1 VALUES ( 0.314152e+1, 0.314152e+1, 0.314152e+1);
-PREPARE stmt1 FROM 'select f1, f2, f3 FROM t1';
-select f1, f2, f3 FROM t1;
-f1 f2 f3
-0000000000000003.14152 0000000000000003.14152 000003.14152
-select f1, f2, f3 FROM t1;
-f1 f2 f3
-0000000000000003.14152 0000000000000003.14152 000003.14152
-EXECUTE stmt1;
-f1 f2 f3
-0000000000000003.14152 0000000000000003.14152 000003.14152
-DROP TABLE t1;
-create table t1 (f1 double(200, 0));
-insert into t1 values (1e199), (-1e199);
-insert into t1 values (1e200), (-1e200);
-insert ignore into t1 values (2e200), (-2e200);
-Warnings:
-Warning 1264 Out of range value for column 'f1' at row 1
-Warning 1264 Out of range value for column 'f1' at row 2
-select f1 + 0e0 from t1;
-f1 + 0e0
-1e199
--1e199
-1e200
--1e200
-1e200
--1e200
-drop table t1;
-create table t1 (f1 float(30, 0));
-insert into t1 values (1e29), (-1e29);
-insert into t1 values (1e30), (-1e30);
-insert ignore into t1 values (2e30), (-2e30);
-Warnings:
-Warning 1264 Out of range value for column 'f1' at row 1
-Warning 1264 Out of range value for column 'f1' at row 2
-select f1 + 0e0 from t1;
-f1 + 0e0
-1.0000000150474662e29
--1.0000000150474662e29
-1.0000000150474662e30
--1.0000000150474662e30
-1.0000000150474662e30
--1.0000000150474662e30
-drop table t1;
-create table t1 (c char(6));
-insert into t1 values (2e6),(2e-5);
-select * from t1;
-c
-2e6
-2e-5
-drop table t1;
-CREATE TABLE d1 (d DOUBLE);
-INSERT INTO d1 VALUES (1.7976931348623157E+308);
-SELECT * FROM d1;
-d
-1.7976931348623157e308
-INSERT INTO d1 VALUES (1.79769313486232e+308);
-ERROR 22007: Illegal double '1.79769313486232e+308' value found during parsing
-SELECT * FROM d1;
-d
-1.7976931348623157e308
-DROP TABLE d1;
-create table t1 (a char(20));
-insert into t1 values (1.225e-05);
-select a+0 from t1;
-a+0
-0.00001225
-drop table t1;
-create table t1(d double, u bigint unsigned);
-insert into t1(d) values (9.22337203685479e18),
-(1.84e19);
-update t1 set u = d;
-select u from t1;
-u
-9223372036854790144
-18400000000000000000
-drop table t1;
-CREATE TABLE t1 (f1 DOUBLE);
-INSERT INTO t1 VALUES(-1.79769313486231e+308);
-SELECT f1 FROM t1;
-f1
--1.79769313486231e308
-DROP TABLE t1;
-#
-# Bug#12406055 BUFFER OVERFLOW OF VARIABLE 'BUFF' IN STRING::SET_REAL
-#
-# Ignoring output from misc. float operations
-select format(-1.7976931348623157E+307,256) as foo;
-select least(-1.1111111111111111111111111,
-- group_concat(1.7976931348623157E+308)) as foo;
-select concat((truncate((-1.7976931348623157E+307),(0x1e))),
-(99999999999999999999999999999999999999999999999999999999999999999)) into @a;
-End of 5.0 tests
-#
-# Bug#12368853 FORMAT() CRASHES WITH LARGE NUMBERS AFTER TRUNCATE...
-#
-select format(truncate('1.7976931348623157E+308',-12),1,'fr_BE') as foo;
-foo
-0
-#
-# Bug #13500371 63704: CONVERSION OF '1.' TO A NUMBER GIVES ERROR 1265
-# (WARN_DATA_TRUNCATED)
-#
-CREATE TABLE t1 (f FLOAT);
-INSERT INTO t1 VALUES ('1.');
-INSERT IGNORE INTO t1 VALUES ('2.0.');
-Warnings:
-Warning 1265 Data truncated for column 'f' at row 1
-INSERT IGNORE INTO t1 VALUES ('.');
-Warnings:
-Warning 1366 Incorrect double value: '.' for column 'f' at row 1
-SELECT * FROM t1 ORDER BY f;
-f
-0
-1
-2
-DROP TABLE t1;
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-6950 Bad results with joins comparing DATE/DATETIME and INT/DECIMAL/DOUBLE/ENUM/VARCHAR columns
-#
-CREATE TABLE t1 (a DATETIME PRIMARY KEY);
-INSERT INTO t1 VALUES ('1999-01-01 00:00:00');
-CREATE TABLE t2 (a DOUBLE);
-INSERT INTO t2 VALUES (19990101000000);
-INSERT INTO t2 VALUES (990101000000);
-SELECT t1.* FROM t1,t2 WHERE t1.a=t2.a;
-a
-1999-01-01 00:00:00
-1999-01-01 00:00:00
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.a=t2.a;
-a
-1999-01-01 00:00:00
-1999-01-01 00:00:00
-ALTER TABLE t2 ADD PRIMARY KEY(a);
-SELECT t1.* FROM t1,t2 WHERE t1.a=t2.a;
-a
-1999-01-01 00:00:00
-1999-01-01 00:00:00
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.a=t2.a;
-a
-1999-01-01 00:00:00
-1999-01-01 00:00:00
-# t2 should NOT be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 8 NULL 2 Using where; Using index
-DROP TABLE t1,t2;
-#
-# MDEV-6971 Bad results with joins comparing TIME and DOUBLE/DECIMAL columns
-#
-CREATE TABLE t1 (a TIME(6) PRIMARY KEY);
-INSERT INTO t1 VALUES ('10:20:30');
-CREATE TABLE t2 (a DOUBLE);
-INSERT INTO t2 VALUES (102030),(102030.000000001);
-SELECT t1.* FROM t1 JOIN t2 USING(a);
-a
-10:20:30.000000
-10:20:30.000000
-SELECT t1.* FROM t1 LEFT JOIN t2 USING(a);
-a
-10:20:30.000000
-10:20:30.000000
-ALTER TABLE t2 ADD PRIMARY KEY(a);
-SELECT t1.* FROM t1 JOIN t2 USING(a);
-a
-10:20:30.000000
-10:20:30.000000
-SELECT t1.* FROM t1 LEFT JOIN t2 USING(a);
-a
-10:20:30.000000
-10:20:30.000000
-# t2 should NOT be elimitated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 USING(a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 8 NULL 2 Using where; Using index
-DROP TABLE t1,t2;
-#
-# End of 10.0 tests
-#
-#
-# MDEV-8704 Wrong result for SELECT..WHERE LENGTH(double_column)!=6 AND double_column=100e0
-#
-CREATE TABLE t1 (a DOUBLE(9,2));
-INSERT INTO t1 VALUES (100),(110);
-SELECT * FROM t1 WHERE LENGTH(a)!=6;
-a
-SELECT * FROM t1 WHERE LENGTH(a)!=6 AND a=100e0;
-a
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES (100),(110);
-SELECT * FROM t1 WHERE LENGTH(a)!=6;
-a
-100
-110
-SELECT * FROM t1 WHERE LENGTH(a)!=6 AND a=100e0;
-a
-100
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=6 AND a=100e0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 100e0
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=RAND() AND a=100e0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 100e0 and <cache>(octet_length(100)) <> rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE(10,1));
-INSERT INTO t1 VALUES (1.1),(1.2),(1.3);
-SELECT * FROM t1 WHERE LENGTH(a)!=3;
-a
-SELECT * FROM t1 WHERE LENGTH(a)!=3 AND a=1.10e0;
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=3 AND a=1.10e0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-# Notice 1.1 instead of 1.10 in the final WHERE condition
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=RAND() AND a=1.10e0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1.10e0 and <cache>(octet_length(1.1)) <> rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE(10,2));
-INSERT INTO t1 VALUES (1.1),(1.2),(1.3);
-SELECT * FROM t1 WHERE LENGTH(a)!=4;
-a
-SELECT * FROM t1 WHERE LENGTH(a)!=4 AND a=1.10e0;
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=4 AND a=1.10e0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-# Notice 1.10 in the final WHERE condition
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=RAND() AND a=1.10e0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1.10e0 and <cache>(octet_length(1.10)) <> rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE(10,3));
-INSERT INTO t1 VALUES (1.1),(1.2),(1.3);
-SELECT * FROM t1 WHERE LENGTH(a)!=5;
-a
-SELECT * FROM t1 WHERE LENGTH(a)!=5 AND a=1.10e0;
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=5 AND a=1.10e0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-# Notice 1.100 rather than 1.10 in the final WHERE condition
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=RAND() AND a=1.10e0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1.10e0 and <cache>(octet_length(1.100)) <> rand()
-DROP TABLE t1;
-#
-# MDEV-8741 Equal field propagation leaves some remainders after simplifying WHERE zerofill_column=2010 AND zerofill_column>=2010
-#
-CREATE TABLE t1 (a DOUBLE ZEROFILL);
-INSERT INTO t1 VALUES (2010),(2020);
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=2010e0 AND a>=2010e0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2010e0
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-4102 Limitation on DOUBLE or REAL length is ignored with INSERT .. SELECT
-#
-CREATE TABLE t1 (d1 DOUBLE(5,2), d2 DOUBLE(10,2));
-INSERT IGNORE INTO t1 VALUES (10000000.55, 10000000.55);
-Warnings:
-Warning 1264 Out of range value for column 'd1' at row 1
-INSERT IGNORE INTO t1 SELECT d2, d2 FROM t1;
-Warnings:
-Warning 1264 Out of range value for column 'd1' at row 1
-SELECT * FROM t1;
-d1 d2
-999.99 10000000.55
-999.99 10000000.55
-DROP TABLE t1;
-#
-# MDEV-9709 Unexpected modification of value and warning about out of range value upon ALTER
-#
-CREATE TABLE t1 (
-f FLOAT,
-d10_10 DOUBLE PRECISION (10,10),
-d53_10 DOUBLE(53,10)
-);
-INSERT IGNORE INTO t1 (f,d10_10,d53_10) VALUES (
--9999999999999999999999999999999999999999999.9999999999,
--9999999999999999999999999999999999999999999.9999999999,
--9999999999999999999999999999999999999999999.9999999999
-);
-Warnings:
-Warning 1264 Out of range value for column 'f' at row 1
-Warning 1264 Out of range value for column 'd10_10' at row 1
-SELECT * FROM t1;
-f -3.40282e38
-d10_10 -0.9999999999
-d53_10 -10000000000000000000000000000000000000000000.0000000000
-INSERT IGNORE INTO t1 (f,d10_10,d53_10) SELECT d53_10, d53_10, d53_10 FROM t1;
-Warnings:
-Level Warning
-Code 1264
-Message Out of range value for column 'f' at row 1
-Level Warning
-Code 1264
-Message Out of range value for column 'd10_10' at row 1
-SELECT * FROM t1;
-f -3.40282e38
-d10_10 -0.9999999999
-d53_10 -10000000000000000000000000000000000000000000.0000000000
-f -3.40282e38
-d10_10 -0.9999999999
-d53_10 -10000000000000000000000000000000000000000000.0000000000
-ALTER TABLE t1 ADD COLUMN i INT;
-SELECT * FROM t1;
-f -3.40282e38
-d10_10 -0.9999999999
-d53_10 -10000000000000000000000000000000000000000000.0000000000
-i NULL
-f -3.40282e38
-d10_10 -0.9999999999
-d53_10 -10000000000000000000000000000000000000000000.0000000000
-i NULL
-DROP TABLE t1;
-CREATE TABLE t1 (d10_10 DOUBLE (10,10));
-CREATE TABLE t2 (d53_10 DOUBLE (53,10));
-INSERT INTO t2 VALUES (-9999999999999999999999999999999999999999999.9999999999);
-INSERT IGNORE INTO t1 (d10_10) SELECT d53_10 FROM t2;
-Warnings:
-Warning 1264 Out of range value for column 'd10_10' at row 1
-SELECT * FROM t1;
-d10_10
--0.9999999999
-DROP TABLE t1,t2;
-CREATE TABLE t1 (d2_2 FLOAT (2,2));
-CREATE TABLE t2 (d4_2 FLOAT (4,2));
-INSERT INTO t2 VALUES (99.99);
-INSERT IGNORE INTO t1 (d2_2) SELECT d4_2 FROM t2;
-Warnings:
-Warning 1264 Out of range value for column 'd2_2' at row 1
-SELECT * FROM t1;
-d2_2
-0.99
-DROP TABLE t1,t2;
-#
-# Test of using wrong scale
-#
-create or replace table t1 (a double(40,30));
-create or replace table t1 (a double(40,31));
-ERROR 42000: Too big scale 31 specified for 'a'. Maximum is 30
-create or replace table t1 as select 1.01e1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `1.01e1` double NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 as select truncate(10.000000000001e1, 30) as t;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t` double(47,30) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 as select truncate(10.000000000001e1, 31) as t;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t` double NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 as select truncate(10.000000000001e1, 39) as t;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t` double NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 as select truncate(10.000000000001e1, 51) as t;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t` double NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 as select truncate(10.000000000001e1, 20)/2 as t;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t` double(41,24) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 as select truncate(10.000000000001e1, 28)/2 as t;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table if exists t1;
-#
-# MDEV-11586 UNION of FLOAT type results in erroneous precision
-#
-CREATE TABLE t1 (f FLOAT);
-INSERT INTO t1 VALUES (1.1);
-SELECT f FROM t1 UNION SELECT 1;
-f
-1.100000023841858
-1
-SELECT 1 UNION SELECT f FROM t1;
-1
-1
-1.100000023841858
-SELECT f FROM t1 UNION SELECT 2147483647;
-f
-1.100000023841858
-2147483647
-SELECT 2147483647 UNION SELECT f FROM t1;
-2147483647
-2147483647
-1.100000023841858
-SELECT CASE WHEN 0 THEN (SELECT f FROM t1) ELSE 2147483647 END AS c1,
-CASE WHEN 1 THEN 2147483647 ELSE (SELECT f FROM t1) END AS c2;
-c1 c2
-2147483647 2147483647
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/type_int.result b/mysql-test/r/type_int.result
deleted file mode 100644
index 39e2e91ecc7..00000000000
--- a/mysql-test/r/type_int.result
+++ /dev/null
@@ -1,95 +0,0 @@
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8741 Equal field propagation leaves some remainders after simplifying WHERE zerofill_column=2010 AND zerofill_column>=2010
-#
-CREATE TABLE t1 (a INT ZEROFILL);
-INSERT INTO t1 VALUES (2010),(2020);
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=2010 AND a>=2010;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2010
-DROP TABLE t1;
-#
-# MDEV-8369 Unexpected impossible WHERE for a condition on a ZEROFILL field
-#
-CREATE TABLE t1 (a INT ZEROFILL);
-INSERT INTO t1 VALUES (128),(129);
-SELECT * FROM t1 WHERE a=128;
-a
-0000000128
-SELECT * FROM t1 WHERE hex(a)='80';
-a
-0000000128
-SELECT * FROM t1 WHERE a=128 AND hex(a)='80';
-a
-0000000128
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a=128 AND hex(a)='80';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 128 and hex(`test`.`t1`.`a`) = '80'
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9393 Split Copy_field::get_copy_func() into virtual methods in Field
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10.1),(10.9);
-SELECT * FROM t1;
-a
-10
-11
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a DECIMAL(10,2));
-INSERT INTO t2 VALUES (10.1),(10.9);
-INSERT INTO t1 SELECT a FROM t2;
-SELECT * FROM t1;
-a
-10
-11
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DECIMAL(10,2));
-INSERT INTO t1 VALUES (10.1),(10.9);
-ALTER TABLE t1 MODIFY a INT;
-SELECT * FROM t1;
-a
-10
-11
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (TIME'00:00:10.1'),(TIME'00:00:10.9');
-SELECT * FROM t1;
-a
-10
-10
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a TIME(1));
-INSERT INTO t2 VALUES (10.1),(10.9);
-INSERT INTO t1 SELECT a FROM t2;
-SELECT * FROM t1;
-a
-10
-10
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a TIME(1));
-INSERT INTO t1 VALUES (10.1),(10.9);
-ALTER TABLE t1 MODIFY a INT;
-SELECT * FROM t1;
-a
-10
-10
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/type_json.result b/mysql-test/r/type_json.result
deleted file mode 100644
index 2c1fdbe2b95..00000000000
--- a/mysql-test/r/type_json.result
+++ /dev/null
@@ -1,39 +0,0 @@
-create or replace table t1(a json);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1(a json character set utf8);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'character set utf8)' at line 1
-create or replace table t1(a json default '{a:1}');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '{a:1}'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1(a json not null check (json_valid(a)));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`a`))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert t1 values ('[]');
-insert t1 values ('a');
-ERROR 23000: CONSTRAINT `a` failed for `test`.`t1`
-set timestamp=unix_timestamp('2010:11:12 13:14:15');
-create or replace table t1(a json default(json_object('now', now())));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT json_object('now',current_timestamp())
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert t1 values ();
-select * from t1;
-a
-{"now": "2010-11-12 13:14:15"}
-drop table t1;
-select cast('{a:1}' as text);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'text)' at line 1
-select cast('{a:1}' as json);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'json)' at line 1
diff --git a/mysql-test/r/type_nchar.result b/mysql-test/r/type_nchar.result
deleted file mode 100644
index 95741d37e2a..00000000000
--- a/mysql-test/r/type_nchar.result
+++ /dev/null
@@ -1,50 +0,0 @@
-drop table if exists t1;
-create table t1 (c nchar(10));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (c national char(10));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` char(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (c national varchar(10));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (c nvarchar(10));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (c nchar varchar(10));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (c national character varying(10));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (c nchar varying(10));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c` varchar(10) CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
diff --git a/mysql-test/r/type_newdecimal-big.result b/mysql-test/r/type_newdecimal-big.result
deleted file mode 100644
index 4e694702d14..00000000000
--- a/mysql-test/r/type_newdecimal-big.result
+++ /dev/null
@@ -1,26 +0,0 @@
-drop procedure if exists sp1;
-CREATE PROCEDURE sp1()
-BEGIN
-DECLARE v1, v2, v3, v4 DECIMAL(28,12);
-DECLARE v3_2, v4_2 DECIMAL(28, 12);
-DECLARE counter INT;
-SET v1 = 1;
-SET v2 = 2;
-SET v3 = 1000000000000;
-SET v4 = 2000000000000;
-SET counter = 0;
-WHILE counter < 100000 DO
-SET v1 = v1 + 0.000000000001;
-SET v2 = v2 - 0.000000000001;
-SET v3 = v3 + 1;
-SET v4 = v4 - 1;
-SET counter = counter + 1;
-END WHILE;
-SET v3_2 = v3 * 0.000000000001;
-SET v4_2 = v4 * 0.000000000001;
-SELECT v1, v2, v3, v3_2, v4, v4_2;
-END//
-call sp1()//
-v1 v2 v3 v3_2 v4 v4_2
-1.000000100000 1.999999900000 1000000100000.000000000000 1.000000100000 1999999900000.000000000000 1.999999900000
-drop procedure sp1;
diff --git a/mysql-test/r/type_newdecimal.result b/mysql-test/r/type_newdecimal.result
deleted file mode 100644
index ba84ff50504..00000000000
--- a/mysql-test/r/type_newdecimal.result
+++ /dev/null
@@ -1,2307 +0,0 @@
-drop table if exists t1;
-select 1.1 IN (1.0, 1.2);
-1.1 IN (1.0, 1.2)
-0
-select 1.1 IN (1.0, 1.2, 1.1, 1.4, 0.5);
-1.1 IN (1.0, 1.2, 1.1, 1.4, 0.5)
-1
-select 1.1 IN (1.0, 1.2, NULL, 1.4, 0.5);
-1.1 IN (1.0, 1.2, NULL, 1.4, 0.5)
-NULL
-select 0.5 IN (1.0, 1.2, NULL, 1.4, 0.5);
-0.5 IN (1.0, 1.2, NULL, 1.4, 0.5)
-1
-select 1 IN (1.11, 1.2, 1.1, 1.4, 1, 0.5);
-1 IN (1.11, 1.2, 1.1, 1.4, 1, 0.5)
-1
-select 1 IN (1.11, 1.2, 1.1, 1.4, NULL, 0.5);
-1 IN (1.11, 1.2, 1.1, 1.4, NULL, 0.5)
-NULL
-select case 1.0 when 0.1 then "a" when 1.0 then "b" else "c" END;
-case 1.0 when 0.1 then "a" when 1.0 then "b" else "c" END
-b
-select case 0.1 when 0.1 then "a" when 1.0 then "b" else "c" END;
-case 0.1 when 0.1 then "a" when 1.0 then "b" else "c" END
-a
-select case 1 when 0.1 then "a" when 1.0 then "b" else "c" END;
-case 1 when 0.1 then "a" when 1.0 then "b" else "c" END
-b
-select case 1.0 when 0.1 then "a" when 1 then "b" else "c" END;
-case 1.0 when 0.1 then "a" when 1 then "b" else "c" END
-b
-select case 1.001 when 0.1 then "a" when 1 then "b" else "c" END;
-case 1.001 when 0.1 then "a" when 1 then "b" else "c" END
-c
-create table t1 (a decimal(6,3));
-insert into t1 values (1.0), (NULL), (0.1);
-select * from t1;
-a
-1.000
-NULL
-0.100
-select 0.1 in (1.0, 1.2, 1.1, a, 1.4, 0.5) from t1;
-0.1 in (1.0, 1.2, 1.1, a, 1.4, 0.5)
-0
-NULL
-1
-drop table t1;
-create table t1 select if(1, 1.1, 1.2), if(0, 1.1, 1.2), if(0.1, 1.1, 1.2), if(0, 1, 1.1), if(0, NULL, 1.2), if(1, 0.22e1, 1.1), if(1E0, 1.1, 1.2);
-select * from t1;
-if(1, 1.1, 1.2) if(0, 1.1, 1.2) if(0.1, 1.1, 1.2) if(0, 1, 1.1) if(0, NULL, 1.2) if(1, 0.22e1, 1.1) if(1E0, 1.1, 1.2)
-1.1 1.2 1.1 1.1 1.2 2.2 1.1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `if(1, 1.1, 1.2)` decimal(2,1) NOT NULL,
- `if(0, 1.1, 1.2)` decimal(2,1) NOT NULL,
- `if(0.1, 1.1, 1.2)` decimal(2,1) NOT NULL,
- `if(0, 1, 1.1)` decimal(2,1) NOT NULL,
- `if(0, NULL, 1.2)` decimal(2,1) DEFAULT NULL,
- `if(1, 0.22e1, 1.1)` double NOT NULL,
- `if(1E0, 1.1, 1.2)` decimal(2,1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 select nullif(1.1, 1.1), nullif(1.1, 1.2), nullif(1.1, 0.11e1), nullif(1.0, 1), nullif(1, 1.0), nullif(1, 1.1);
-select * from t1;
-nullif(1.1, 1.1) nullif(1.1, 1.2) nullif(1.1, 0.11e1) nullif(1.0, 1) nullif(1, 1.0) nullif(1, 1.1)
-NULL 1.1 NULL NULL NULL 1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `nullif(1.1, 1.1)` decimal(2,1) DEFAULT NULL,
- `nullif(1.1, 1.2)` decimal(2,1) DEFAULT NULL,
- `nullif(1.1, 0.11e1)` decimal(2,1) DEFAULT NULL,
- `nullif(1.0, 1)` decimal(2,1) DEFAULT NULL,
- `nullif(1, 1.0)` int(1) DEFAULT NULL,
- `nullif(1, 1.1)` int(1) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a decimal(4,2));
-insert ignore into t1 value (10000), (1.1e10), ("11111"), (100000.1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-Warning 1264 Out of range value for column 'a' at row 4
-insert ignore into t1 value (-10000), (-1.1e10), ("-11111"), (-100000.1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-Warning 1264 Out of range value for column 'a' at row 4
-select a from t1;
-a
-99.99
-99.99
-99.99
-99.99
--99.99
--99.99
--99.99
--99.99
-drop table t1;
-create table t1 (a decimal(4,2) unsigned);
-insert ignore into t1 value (10000), (1.1e10), ("11111"), (100000.1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-Warning 1264 Out of range value for column 'a' at row 4
-insert ignore into t1 value (-10000), (-1.1e10), ("-11111"), (-100000.1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-Warning 1264 Out of range value for column 'a' at row 4
-select a from t1;
-a
-99.99
-99.99
-99.99
-99.99
-0.00
-0.00
-0.00
-0.00
-drop table t1;
-create table t1 (a bigint);
-insert ignore into t1 values (18446744073709551615.0);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-insert ignore into t1 values (9223372036854775808.0);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-insert ignore into t1 values (-18446744073709551615.0);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-9223372036854775807
-9223372036854775807
--9223372036854775808
-drop table t1;
-create table t1 (a bigint unsigned);
-insert into t1 values (18446744073709551615.0);
-insert into t1 values (9223372036854775808.0);
-insert ignore into t1 values (9999999999999999999999999.000);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-insert ignore into t1 values (-1.0);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-18446744073709551615
-9223372036854775808
-18446744073709551615
-0
-drop table t1;
-create table t1 (a tinyint);
-insert ignore into t1 values (18446744073709551615.0);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 1
-insert ignore into t1 values (9223372036854775808.0);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-127
-127
-drop table t1;
-create table t1 select round(15.4,-1), truncate(-5678.123451,-3), abs(-1.1), -(-1.1);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `round(15.4,-1)` decimal(3,0) NOT NULL,
- `truncate(-5678.123451,-3)` decimal(4,0) NOT NULL,
- `abs(-1.1)` decimal(2,1) NOT NULL,
- `-(-1.1)` decimal(2,1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set session sql_mode='traditional';
-select 1e10/0e0;
-1e10/0e0
-NULL
-Warnings:
-Warning 1365 Division by 0
-create table wl1612 (col1 int, col2 decimal(38,10), col3 numeric(38,10));
-insert into wl1612 values(1,12345678901234567890.1234567890,12345678901234567890.1234567890);
-select * from wl1612;
-col1 col2 col3
-1 12345678901234567890.1234567890 12345678901234567890.1234567890
-insert into wl1612 values(2,01234567890123456789.0123456789,01234567890123456789.0123456789);
-select * from wl1612 where col1=2;
-col1 col2 col3
-2 1234567890123456789.0123456789 1234567890123456789.0123456789
-insert into wl1612 values(3,1234567890123456789012345678.0123456789,1234567890123456789012345678.0123456789);
-select * from wl1612 where col1=3;
-col1 col2 col3
-3 1234567890123456789012345678.0123456789 1234567890123456789012345678.0123456789
-select col1/0 from wl1612;
-col1/0
-NULL
-NULL
-NULL
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-select col2/0 from wl1612;
-col2/0
-NULL
-NULL
-NULL
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-select col3/0 from wl1612;
-col3/0
-NULL
-NULL
-NULL
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-insert into wl1612 values(5,5000.0005,5000.0005);
-insert into wl1612 values(6,5000.0005,5000.0005);
-select sum(col2),sum(col3) from wl1612;
-sum(col2) sum(col3)
-1234567903703703580370380357.1491481468 1234567903703703580370380357.1491481468
-insert into wl1612 values(7,500000.000005,500000.000005);
-insert into wl1612 values(8,500000.000005,500000.000005);
-select sum(col2),sum(col3) from wl1612 where col1>4;
-sum(col2) sum(col3)
-1010000.0010100000 1010000.0010100000
-insert into wl1612 (col1, col2) values(9,1.01234567891);
-Warnings:
-Note 1265 Data truncated for column 'col2' at row 1
-insert into wl1612 (col1, col2) values(10,1.01234567894);
-Warnings:
-Note 1265 Data truncated for column 'col2' at row 1
-insert into wl1612 (col1, col2) values(11,1.01234567895);
-Warnings:
-Note 1265 Data truncated for column 'col2' at row 1
-insert into wl1612 (col1, col2) values(12,1.01234567896);
-Warnings:
-Note 1265 Data truncated for column 'col2' at row 1
-select col1,col2 from wl1612 where col1>8;
-col1 col2
-9 1.0123456789
-10 1.0123456789
-11 1.0123456790
-12 1.0123456790
-insert into wl1612 (col1, col3) values(13,1.01234567891);
-Warnings:
-Note 1265 Data truncated for column 'col3' at row 1
-insert into wl1612 (col1, col3) values(14,1.01234567894);
-Warnings:
-Note 1265 Data truncated for column 'col3' at row 1
-insert into wl1612 (col1, col3) values(15,1.01234567895);
-Warnings:
-Note 1265 Data truncated for column 'col3' at row 1
-insert into wl1612 (col1, col3) values(16,1.01234567896);
-Warnings:
-Note 1265 Data truncated for column 'col3' at row 1
-select col1,col3 from wl1612 where col1>12;
-col1 col3
-13 1.0123456789
-14 1.0123456789
-15 1.0123456790
-16 1.0123456790
-select col1 from wl1612 where col1>4 and col2=1.01234567891;
-col1
-select col1 from wl1612 where col1>4 and col2=1.0123456789;
-col1
-9
-10
-select col1 from wl1612 where col1>4 and col2<>1.0123456789;
-col1
-5
-6
-7
-8
-11
-12
-select col1 from wl1612 where col1>4 and col2<1.0123456789;
-col1
-select col1 from wl1612 where col1>4 and col2<=1.0123456789;
-col1
-9
-10
-select col1 from wl1612 where col1>4 and col2>1.0123456789;
-col1
-5
-6
-7
-8
-11
-12
-select col1 from wl1612 where col1>4 and col2>=1.0123456789;
-col1
-5
-6
-7
-8
-9
-10
-11
-12
-select col1 from wl1612 where col1>4 and col2=1.012345679;
-col1
-11
-12
-select col1 from wl1612 where col1>4 and col2<>1.012345679;
-col1
-5
-6
-7
-8
-9
-10
-select col1 from wl1612 where col1>4 and col3=1.01234567891;
-col1
-select col1 from wl1612 where col1>4 and col3=1.0123456789;
-col1
-13
-14
-select col1 from wl1612 where col1>4 and col3<>1.0123456789;
-col1
-5
-6
-7
-8
-15
-16
-select col1 from wl1612 where col1>4 and col3<1.0123456789;
-col1
-select col1 from wl1612 where col1>4 and col3<=1.0123456789;
-col1
-13
-14
-select col1 from wl1612 where col1>4 and col3>1.0123456789;
-col1
-5
-6
-7
-8
-15
-16
-select col1 from wl1612 where col1>4 and col3>=1.0123456789;
-col1
-5
-6
-7
-8
-13
-14
-15
-16
-select col1 from wl1612 where col1>4 and col3=1.012345679;
-col1
-15
-16
-select col1 from wl1612 where col1>4 and col3<>1.012345679;
-col1
-5
-6
-7
-8
-13
-14
-drop table wl1612;
-select 1/3;
-1/3
-0.3333
-select 0.8=0.7+0.1;
-0.8=0.7+0.1
-1
-select 0.7+0.1;
-0.7+0.1
-0.8
-create table wl1612_1 (col1 int);
-insert into wl1612_1 values(10);
-select * from wl1612_1 where 0.8=0.7+0.1;
-col1
-10
-select 0.07+0.07 from wl1612_1;
-0.07+0.07
-0.14
-select 0.07-0.07 from wl1612_1;
-0.07-0.07
-0.00
-select 0.07*0.07 from wl1612_1;
-0.07*0.07
-0.0049
-select 0.07/0.07 from wl1612_1;
-0.07/0.07
-1.000000
-drop table wl1612_1;
-create table wl1612_2 (col1 decimal(10,2), col2 numeric(10,2));
-insert into wl1612_2 values(1,1);
-insert into wl1612_2 values(+1,+1);
-insert into wl1612_2 values(+01,+01);
-insert into wl1612_2 values(+001,+001);
-select col1,count(*) from wl1612_2 group by col1;
-col1 count(*)
-1.00 4
-select col2,count(*) from wl1612_2 group by col2;
-col2 count(*)
-1.00 4
-drop table wl1612_2;
-create table wl1612_3 (col1 decimal(10,2), col2 numeric(10,2));
-insert into wl1612_3 values('1','1');
-insert into wl1612_3 values('+1','+1');
-insert into wl1612_3 values('+01','+01');
-insert into wl1612_3 values('+001','+001');
-select col1,count(*) from wl1612_3 group by col1;
-col1 count(*)
-1.00 4
-select col2,count(*) from wl1612_3 group by col2;
-col2 count(*)
-1.00 4
-drop table wl1612_3;
-select mod(234,10) ;
-mod(234,10)
-4
-select mod(234.567,10.555);
-mod(234.567,10.555)
-2.357
-select mod(-234.567,10.555);
-mod(-234.567,10.555)
--2.357
-select mod(234.567,-10.555);
-mod(234.567,-10.555)
-2.357
-select round(15.1);
-round(15.1)
-15
-select round(15.4);
-round(15.4)
-15
-select round(15.5);
-round(15.5)
-16
-select round(15.6);
-round(15.6)
-16
-select round(15.9);
-round(15.9)
-16
-select round(-15.1);
-round(-15.1)
--15
-select round(-15.4);
-round(-15.4)
--15
-select round(-15.5);
-round(-15.5)
--16
-select round(-15.6);
-round(-15.6)
--16
-select round(-15.9);
-round(-15.9)
--16
-select round(15.1,1);
-round(15.1,1)
-15.1
-select round(15.4,1);
-round(15.4,1)
-15.4
-select round(15.5,1);
-round(15.5,1)
-15.5
-select round(15.6,1);
-round(15.6,1)
-15.6
-select round(15.9,1);
-round(15.9,1)
-15.9
-select round(-15.1,1);
-round(-15.1,1)
--15.1
-select round(-15.4,1);
-round(-15.4,1)
--15.4
-select round(-15.5,1);
-round(-15.5,1)
--15.5
-select round(-15.6,1);
-round(-15.6,1)
--15.6
-select round(-15.9,1);
-round(-15.9,1)
--15.9
-select round(15.1,0);
-round(15.1,0)
-15
-select round(15.4,0);
-round(15.4,0)
-15
-select round(15.5,0);
-round(15.5,0)
-16
-select round(15.6,0);
-round(15.6,0)
-16
-select round(15.9,0);
-round(15.9,0)
-16
-select round(-15.1,0);
-round(-15.1,0)
--15
-select round(-15.4,0);
-round(-15.4,0)
--15
-select round(-15.5,0);
-round(-15.5,0)
--16
-select round(-15.6,0);
-round(-15.6,0)
--16
-select round(-15.9,0);
-round(-15.9,0)
--16
-select round(15.1,-1);
-round(15.1,-1)
-20
-select round(15.4,-1);
-round(15.4,-1)
-20
-select round(15.5,-1);
-round(15.5,-1)
-20
-select round(15.6,-1);
-round(15.6,-1)
-20
-select round(15.9,-1);
-round(15.9,-1)
-20
-select round(-15.1,-1);
-round(-15.1,-1)
--20
-select round(-15.4,-1);
-round(-15.4,-1)
--20
-select round(-15.5,-1);
-round(-15.5,-1)
--20
-select round(-15.6,-1);
-round(-15.6,-1)
--20
-select round(-15.91,-1);
-round(-15.91,-1)
--20
-select truncate(5678.123451,0);
-truncate(5678.123451,0)
-5678
-select truncate(5678.123451,1);
-truncate(5678.123451,1)
-5678.1
-select truncate(5678.123451,2);
-truncate(5678.123451,2)
-5678.12
-select truncate(5678.123451,3);
-truncate(5678.123451,3)
-5678.123
-select truncate(5678.123451,4);
-truncate(5678.123451,4)
-5678.1234
-select truncate(5678.123451,5);
-truncate(5678.123451,5)
-5678.12345
-select truncate(5678.123451,6);
-truncate(5678.123451,6)
-5678.123451
-select truncate(5678.123451,-1);
-truncate(5678.123451,-1)
-5670
-select truncate(5678.123451,-2);
-truncate(5678.123451,-2)
-5600
-select truncate(5678.123451,-3);
-truncate(5678.123451,-3)
-5000
-select truncate(5678.123451,-4);
-truncate(5678.123451,-4)
-0
-select truncate(-5678.123451,0);
-truncate(-5678.123451,0)
--5678
-select truncate(-5678.123451,1);
-truncate(-5678.123451,1)
--5678.1
-select truncate(-5678.123451,2);
-truncate(-5678.123451,2)
--5678.12
-select truncate(-5678.123451,3);
-truncate(-5678.123451,3)
--5678.123
-select truncate(-5678.123451,4);
-truncate(-5678.123451,4)
--5678.1234
-select truncate(-5678.123451,5);
-truncate(-5678.123451,5)
--5678.12345
-select truncate(-5678.123451,6);
-truncate(-5678.123451,6)
--5678.123451
-select truncate(-5678.123451,-1);
-truncate(-5678.123451,-1)
--5670
-select truncate(-5678.123451,-2);
-truncate(-5678.123451,-2)
--5600
-select truncate(-5678.123451,-3);
-truncate(-5678.123451,-3)
--5000
-select truncate(-5678.123451,-4);
-truncate(-5678.123451,-4)
-0
-create table wl1612_4 (col1 int, col2 decimal(30,25), col3 numeric(30,25));
-insert into wl1612_4 values(1,0.0123456789012345678912345,0.0123456789012345678912345);
-select col2/9999999999 from wl1612_4 where col1=1;
-col2/9999999999
-0.00000000000123456789024691358
-select col3/9999999999 from wl1612_4 where col1=1;
-col3/9999999999
-0.00000000000123456789024691358
-select 9999999999/col2 from wl1612_4 where col1=1;
-9999999999/col2
-810000007209.0001
-select 9999999999/col3 from wl1612_4 where col1=1;
-9999999999/col3
-810000007209.0001
-select col2*9999999999 from wl1612_4 where col1=1;
-col2*9999999999
-123456789.0000000000111104321087655
-select col3*9999999999 from wl1612_4 where col1=1;
-col3*9999999999
-123456789.0000000000111104321087655
-insert into wl1612_4 values(2,55555.0123456789012345678912345,55555.0123456789012345678912345);
-select col2/9999999999 from wl1612_4 where col1=2;
-col2/9999999999
-0.00000555550123512344024696913
-select col3/9999999999 from wl1612_4 where col1=2;
-col3/9999999999
-0.00000555550123512344024696913
-select 9999999999/col2 from wl1612_4 where col1=2;
-9999999999/col2
-180001.7600
-select 9999999999/col3 from wl1612_4 where col1=2;
-9999999999/col3
-180001.7600
-select col2*9999999999 from wl1612_4 where col1=2;
-col2*9999999999
-555550123401234.0000000000111104321087655
-select col3*9999999999 from wl1612_4 where col1=2;
-col3*9999999999
-555550123401234.0000000000111104321087655
-drop table wl1612_4;
-set sql_mode='';
-select 23.4 + (-41.7), 23.4 - (41.7) = -18.3;
-23.4 + (-41.7) 23.4 - (41.7) = -18.3
--18.3 1
-select -18.3=-18.3;
--18.3=-18.3
-1
-select 18.3=18.3;
-18.3=18.3
-1
-select -18.3=18.3;
--18.3=18.3
-0
-select 0.8 = 0.7 + 0.1;
-0.8 = 0.7 + 0.1
-1
-drop table if exists t1;
-Warnings:
-Note 1051 Unknown table 'test.t1'
-create table t1 (col1 decimal(38));
-insert into t1 values (12345678901234567890123456789012345678);
-select * from t1;
-col1
-12345678901234567890123456789012345678
-drop table t1;
-create table t1 (col1 decimal(31,30));
-insert into t1 values (0.00000000001);
-select * from t1;
-col1
-0.000000000010000000000000000000
-drop table t1;
-select 7777777777777777777777777777777777777 * 10;
-7777777777777777777777777777777777777 * 10
-77777777777777777777777777777777777770
-select .7777777777777777777777777777777777777 *
-1000000000000000000;
-.7777777777777777777777777777777777777 *
-1000000000000000000
-777777777777777777.7777777777777777777000000000000000000
-select .7777777777777777777777777777777777777 - 0.1;
-.7777777777777777777777777777777777777 - 0.1
-0.6777777777777777777777777777777777777
-select .343434343434343434 + .343434343434343434;
-.343434343434343434 + .343434343434343434
-0.686868686868686868
-select abs(9999999999999999999999);
-abs(9999999999999999999999)
-9999999999999999999999
-select abs(-9999999999999999999999);
-abs(-9999999999999999999999)
-9999999999999999999999
-select ceiling(999999999999999999);
-ceiling(999999999999999999)
-999999999999999999
-select ceiling(99999999999999999999);
-ceiling(99999999999999999999)
-99999999999999999999
-select ceiling(9.9999999999999999999);
-ceiling(9.9999999999999999999)
-10
-select ceiling(-9.9999999999999999999);
-ceiling(-9.9999999999999999999)
--9
-select floor(999999999999999999);
-floor(999999999999999999)
-999999999999999999
-select floor(9999999999999999999999);
-floor(9999999999999999999999)
-9999999999999999999999
-select floor(9.999999999999999999999);
-floor(9.999999999999999999999)
-9
-select floor(-9.999999999999999999999);
-floor(-9.999999999999999999999)
--10
-select floor(-999999999999999999999.999);
-floor(-999999999999999999999.999)
--1000000000000000000000
-select ceiling(999999999999999999999.999);
-ceiling(999999999999999999999.999)
-1000000000000000000000
-select 99999999999999999999999999999999999999 mod 3;
-99999999999999999999999999999999999999 mod 3
-0
-select round(99999999999999999.999);
-round(99999999999999999.999)
-100000000000000000
-select round(-99999999999999999.999);
-round(-99999999999999999.999)
--100000000000000000
-select round(99999999999999999.999,3);
-round(99999999999999999.999,3)
-99999999999999999.999
-select round(-99999999999999999.999,3);
-round(-99999999999999999.999,3)
--99999999999999999.999
-select truncate(99999999999999999999999999999999999999,49);
-truncate(99999999999999999999999999999999999999,49)
-99999999999999999999999999999999999999.000000000000000000000000000000000000
-select truncate(99.999999999999999999999999999999999999,49);
-truncate(99.999999999999999999999999999999999999,49)
-99.99999999999999999999999999999999999900
-select truncate(99999999999999999999999999999999999999,-31);
-truncate(99999999999999999999999999999999999999,-31)
-99999990000000000000000000000000000000
-create table t1 as select 0.5;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `0.5` decimal(2,1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-select round(1.5),round(2.5);
-round(1.5) round(2.5)
-2 3
-select 0.07 * 0.07;
-0.07 * 0.07
-0.0049
-set sql_mode='traditional';
-select 1E-500 = 0;
-1E-500 = 0
-1
-select 1 / 1E-500;
-1 / 1E-500
-NULL
-Warnings:
-Warning 1365 Division by 0
-select 1 / 0;
-1 / 0
-NULL
-Warnings:
-Warning 1365 Division by 0
-set sql_mode='ansi,traditional';
-CREATE TABLE Sow6_2f (col1 NUMERIC(4,2));
-INSERT INTO Sow6_2f VALUES (10.55);
-INSERT INTO Sow6_2f VALUES (10.5555);
-Warnings:
-Note 1265 Data truncated for column 'col1' at row 1
-INSERT INTO Sow6_2f VALUES (-10.55);
-INSERT INTO Sow6_2f VALUES (-10.5555);
-Warnings:
-Note 1265 Data truncated for column 'col1' at row 1
-INSERT INTO Sow6_2f VALUES (11);
-INSERT INTO Sow6_2f VALUES (101.55);
-ERROR 22003: Out of range value for column 'col1' at row 1
-UPDATE Sow6_2f SET col1 = col1 * 50 WHERE col1 = 11;
-ERROR 22003: Out of range value for column 'col1' at row 5
-UPDATE Sow6_2f SET col1 = col1 / 0 WHERE col1 > 0;
-ERROR 22012: Division by 0
-SELECT MOD(col1,0) FROM Sow6_2f;
-MOD(col1,0)
-NULL
-NULL
-NULL
-NULL
-NULL
-Warnings:
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-Warning 1365 Division by 0
-INSERT INTO Sow6_2f VALUES ('a59b');
-ERROR 22007: Incorrect decimal value: 'a59b' for column 'col1' at row 1
-drop table Sow6_2f;
-select 10.3330000000000/12.34500000;
-10.3330000000000/12.34500000
-0.83701903604698258
-set sql_mode='';
-select 0/0;
-0/0
-NULL
-select 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 as x;
-x
-99999999999999999999999999999999999999999999999999999999999999999
-Warnings:
-Warning 1916 Got overflow when converting '' to DECIMAL. Value truncated
-select 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 + 1 as x;
-x
-100000000000000000000000000000000000000000000000000000000000000000
-Warnings:
-Warning 1916 Got overflow when converting '' to DECIMAL. Value truncated
-select 0.190287977636363637 + 0.040372670 * 0 - 0;
-0.190287977636363637 + 0.040372670 * 0 - 0
-0.190287977636363637
-select -0.123 * 0;
--0.123 * 0
-0.000
-CREATE TABLE t1 (f1 DECIMAL (12,9), f2 DECIMAL(2,2));
-INSERT INTO t1 VALUES (10.5, 0);
-UPDATE t1 SET f1 = 4.5;
-SELECT * FROM t1;
-f1 f2
-4.500000000 0.00
-DROP TABLE t1;
-CREATE TABLE t1 (f1 DECIMAL (64,20), f2 DECIMAL(2,2));
-INSERT INTO t1 VALUES (9999999999999999999999999999999999, 0);
-SELECT * FROM t1;
-f1 f2
-9999999999999999999999999999999999.00000000000000000000 0.00
-DROP TABLE t1;
-select abs(10/0);
-abs(10/0)
-NULL
-select abs(NULL);
-abs(NULL)
-NULL
-set @@sql_mode='traditional';
-create table t1( d1 decimal(18) unsigned, d2 decimal(20) unsigned, d3 decimal (22) unsigned);
-insert into t1 values(1,-1,-1);
-ERROR 22003: Out of range value for column 'd2' at row 1
-drop table t1;
-create table t1 (col1 decimal(5,2), col2 numeric(5,2));
-insert into t1 values (999.999,999.999);
-ERROR 22003: Out of range value for column 'col1' at row 1
-insert into t1 values (-999.999,-999.999);
-ERROR 22003: Out of range value for column 'col1' at row 1
-select * from t1;
-col1 col2
-drop table t1;
-set sql_mode='';
-set @sav_dpi= @@div_precision_increment;
-set @@div_precision_increment=15;
-create table t1 (col1 int, col2 decimal(30,25), col3 numeric(30,25));
-insert into t1 values (1,0.0123456789012345678912345,0.0123456789012345678912345);
-select col2/9999999999 from t1 where col1=1;
-col2/9999999999
-0.00000000000123456789024691357814814136
-select 9999999999/col2 from t1 where col1=1;
-9999999999/col2
-810000007209.000065537105051
-select 77777777/7777777;
-77777777/7777777
-10.000000900000090
-drop table t1;
-set div_precision_increment= @sav_dpi;
-create table t1 (a decimal(4,2));
-insert into t1 values (0.00);
-select * from t1 where a > -0.00;
-a
-select * from t1 where a = -0.00;
-a
-0.00
-drop table t1;
-create table t1 (col1 bigint default -9223372036854775808);
-insert into t1 values (default);
-select * from t1;
-col1
--9223372036854775808
-drop table t1;
-select cast('1.00000001335143196001808973960578441619873046875E-10' as decimal(30,15));
-cast('1.00000001335143196001808973960578441619873046875E-10' as decimal(30,15))
-0.000000000100000
-select ln(14000) c1, convert(ln(14000),decimal(5,3)) c2, cast(ln(14000) as decimal(5,3)) c3;
-c1 c2 c3
-9.546812608597396 9.547 9.547
-select convert(ln(14000),decimal(2,3)) c1;
-ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column '')
-select cast(ln(14000) as decimal(2,3)) c1;
-ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column '')
-create table t1 (sl decimal(70,30));
-ERROR 42000: Too big precision 70 specified for 'sl'. Maximum is 65
-create table t1 (sl decimal(32,39));
-ERROR 42000: Too big scale 39 specified for 'sl'. Maximum is 38
-create table t1 (sl decimal(67,38));
-ERROR 42000: Too big precision 67 specified for 'sl'. Maximum is 65
-create table t1 (sl decimal(0,50));
-ERROR 42000: Too big scale 50 specified for 'sl'. Maximum is 38
-create table t1 (sl decimal(0,30));
-ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 'sl')
-create table t1 (sl decimal(5, 5));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `sl` decimal(5,5) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (sl decimal(65, 38));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `sl` decimal(65,38) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (
-f1 decimal unsigned not null default 17.49,
-f2 decimal unsigned not null default 17.68,
-f3 decimal unsigned not null default 99.2,
-f4 decimal unsigned not null default 99.7,
-f5 decimal unsigned not null default 104.49,
-f6 decimal unsigned not null default 199.91,
-f7 decimal unsigned not null default 999.9,
-f8 decimal unsigned not null default 9999.99);
-Warnings:
-Note 1265 Data truncated for column 'f1' at row 1
-Note 1265 Data truncated for column 'f2' at row 1
-Note 1265 Data truncated for column 'f3' at row 1
-Note 1265 Data truncated for column 'f4' at row 1
-Note 1265 Data truncated for column 'f5' at row 1
-Note 1265 Data truncated for column 'f6' at row 1
-Note 1265 Data truncated for column 'f7' at row 1
-Note 1265 Data truncated for column 'f8' at row 1
-insert into t1 (f1) values (1);
-select * from t1;
-f1 f2 f3 f4 f5 f6 f7 f8
-1 18 99 100 104 200 1000 10000
-drop table t1;
-create table t1 (
-f0 decimal (30,30) zerofill not null DEFAULT 0,
-f1 decimal (0,0) zerofill not null default 0);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f0` decimal(30,30) unsigned zerofill NOT NULL DEFAULT 0.000000000000000000000000000000,
- `f1` decimal(10,0) unsigned zerofill NOT NULL DEFAULT 0000000000
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-drop procedure if exists wg2;
-create procedure wg2()
-begin
-declare v int default 1;
-declare tdec decimal(5) default 0;
-while v <= 9 do set tdec =tdec * 10;
-select v, tdec;
-set v = v + 1;
-end while;
-end//
-call wg2()//
-v tdec
-1 0
-v tdec
-2 0
-v tdec
-3 0
-v tdec
-4 0
-v tdec
-5 0
-v tdec
-6 0
-v tdec
-7 0
-v tdec
-8 0
-v tdec
-9 0
-drop procedure wg2;
-select cast(@non_existing_user_var/2 as DECIMAL);
-cast(@non_existing_user_var/2 as DECIMAL)
-NULL
-create table t (d decimal(0,10));
-ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 'd')
-CREATE TABLE t1 (
-my_float FLOAT,
-my_double DOUBLE,
-my_varchar VARCHAR(50),
-my_decimal DECIMAL(65,30)
-);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `my_float` float DEFAULT NULL,
- `my_double` double DEFAULT NULL,
- `my_varchar` varchar(50) DEFAULT NULL,
- `my_decimal` decimal(65,30) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 SET my_float = 1.175494345e-32,
-my_double = 1.175494345e-32,
-my_varchar = '1.175494345e-32';
-INSERT INTO t1 SET my_float = 1.175494345e-31,
-my_double = 1.175494345e-31,
-my_varchar = '1.175494345e-31';
-INSERT INTO t1 SET my_float = 1.175494345e-30,
-my_double = 1.175494345e-30,
-my_varchar = '1.175494345e-30';
-INSERT INTO t1 SET my_float = 1.175494345e-29,
-my_double = 1.175494345e-29,
-my_varchar = '1.175494345e-29';
-INSERT INTO t1 SET my_float = 1.175494345e-28,
-my_double = 1.175494345e-28,
-my_varchar = '1.175494345e-28';
-INSERT INTO t1 SET my_float = 1.175494345e-27,
-my_double = 1.175494345e-27,
-my_varchar = '1.175494345e-27';
-INSERT INTO t1 SET my_float = 1.175494345e-26,
-my_double = 1.175494345e-26,
-my_varchar = '1.175494345e-26';
-INSERT INTO t1 SET my_float = 1.175494345e-25,
-my_double = 1.175494345e-25,
-my_varchar = '1.175494345e-25';
-INSERT INTO t1 SET my_float = 1.175494345e-24,
-my_double = 1.175494345e-24,
-my_varchar = '1.175494345e-24';
-INSERT INTO t1 SET my_float = 1.175494345e-23,
-my_double = 1.175494345e-23,
-my_varchar = '1.175494345e-23';
-INSERT INTO t1 SET my_float = 1.175494345e-22,
-my_double = 1.175494345e-22,
-my_varchar = '1.175494345e-22';
-INSERT INTO t1 SET my_float = 1.175494345e-21,
-my_double = 1.175494345e-21,
-my_varchar = '1.175494345e-21';
-INSERT INTO t1 SET my_float = 1.175494345e-20,
-my_double = 1.175494345e-20,
-my_varchar = '1.175494345e-20';
-INSERT INTO t1 SET my_float = 1.175494345e-19,
-my_double = 1.175494345e-19,
-my_varchar = '1.175494345e-19';
-INSERT INTO t1 SET my_float = 1.175494345e-18,
-my_double = 1.175494345e-18,
-my_varchar = '1.175494345e-18';
-INSERT INTO t1 SET my_float = 1.175494345e-17,
-my_double = 1.175494345e-17,
-my_varchar = '1.175494345e-17';
-INSERT INTO t1 SET my_float = 1.175494345e-16,
-my_double = 1.175494345e-16,
-my_varchar = '1.175494345e-16';
-INSERT INTO t1 SET my_float = 1.175494345e-15,
-my_double = 1.175494345e-15,
-my_varchar = '1.175494345e-15';
-INSERT INTO t1 SET my_float = 1.175494345e-14,
-my_double = 1.175494345e-14,
-my_varchar = '1.175494345e-14';
-INSERT INTO t1 SET my_float = 1.175494345e-13,
-my_double = 1.175494345e-13,
-my_varchar = '1.175494345e-13';
-INSERT INTO t1 SET my_float = 1.175494345e-12,
-my_double = 1.175494345e-12,
-my_varchar = '1.175494345e-12';
-INSERT INTO t1 SET my_float = 1.175494345e-11,
-my_double = 1.175494345e-11,
-my_varchar = '1.175494345e-11';
-INSERT INTO t1 SET my_float = 1.175494345e-10,
-my_double = 1.175494345e-10,
-my_varchar = '1.175494345e-10';
-INSERT INTO t1 SET my_float = 1.175494345e-9,
-my_double = 1.175494345e-9,
-my_varchar = '1.175494345e-9';
-INSERT INTO t1 SET my_float = 1.175494345e-8,
-my_double = 1.175494345e-8,
-my_varchar = '1.175494345e-8';
-INSERT INTO t1 SET my_float = 1.175494345e-7,
-my_double = 1.175494345e-7,
-my_varchar = '1.175494345e-7';
-INSERT INTO t1 SET my_float = 1.175494345e-6,
-my_double = 1.175494345e-6,
-my_varchar = '1.175494345e-6';
-INSERT INTO t1 SET my_float = 1.175494345e-5,
-my_double = 1.175494345e-5,
-my_varchar = '1.175494345e-5';
-INSERT INTO t1 SET my_float = 1.175494345e-4,
-my_double = 1.175494345e-4,
-my_varchar = '1.175494345e-4';
-INSERT INTO t1 SET my_float = 1.175494345e-3,
-my_double = 1.175494345e-3,
-my_varchar = '1.175494345e-3';
-INSERT INTO t1 SET my_float = 1.175494345e-2,
-my_double = 1.175494345e-2,
-my_varchar = '1.175494345e-2';
-INSERT INTO t1 SET my_float = 1.175494345e-1,
-my_double = 1.175494345e-1,
-my_varchar = '1.175494345e-1';
-SELECT my_float, my_double, my_varchar FROM t1;
-my_float my_double my_varchar
-1.17549e-32 1.175494345e-32 1.175494345e-32
-1.17549e-31 1.175494345e-31 1.175494345e-31
-1.17549e-30 1.175494345e-30 1.175494345e-30
-1.17549e-29 1.175494345e-29 1.175494345e-29
-1.17549e-28 1.175494345e-28 1.175494345e-28
-1.17549e-27 1.175494345e-27 1.175494345e-27
-1.17549e-26 1.175494345e-26 1.175494345e-26
-1.17549e-25 1.175494345e-25 1.175494345e-25
-1.17549e-24 1.175494345e-24 1.175494345e-24
-1.17549e-23 1.175494345e-23 1.175494345e-23
-1.17549e-22 1.175494345e-22 1.175494345e-22
-1.17549e-21 1.175494345e-21 1.175494345e-21
-1.17549e-20 1.175494345e-20 1.175494345e-20
-1.17549e-19 1.175494345e-19 1.175494345e-19
-1.17549e-18 1.175494345e-18 1.175494345e-18
-1.17549e-17 1.175494345e-17 1.175494345e-17
-1.17549e-16 1.175494345e-16 1.175494345e-16
-0.00000000000000117549 0.000000000000001175494345 1.175494345e-15
-0.0000000000000117549 0.00000000000001175494345 1.175494345e-14
-0.000000000000117549 0.0000000000001175494345 1.175494345e-13
-0.00000000000117549 0.000000000001175494345 1.175494345e-12
-0.0000000000117549 0.00000000001175494345 1.175494345e-11
-0.000000000117549 0.0000000001175494345 1.175494345e-10
-0.00000000117549 0.000000001175494345 1.175494345e-9
-0.0000000117549 0.00000001175494345 1.175494345e-8
-0.000000117549 0.0000001175494345 1.175494345e-7
-0.00000117549 0.000001175494345 1.175494345e-6
-0.0000117549 0.00001175494345 1.175494345e-5
-0.000117549 0.0001175494345 1.175494345e-4
-0.00117549 0.001175494345 1.175494345e-3
-0.0117549 0.01175494345 1.175494345e-2
-0.117549 0.1175494345 1.175494345e-1
-SELECT CAST(my_float AS DECIMAL(65,30)), my_float FROM t1;
-CAST(my_float AS DECIMAL(65,30)) my_float
-0.000000000000000000000000000000 1.17549e-32
-0.000000000000000000000000000000 1.17549e-31
-0.000000000000000000000000000001 1.17549e-30
-0.000000000000000000000000000012 1.17549e-29
-0.000000000000000000000000000118 1.17549e-28
-0.000000000000000000000000001175 1.17549e-27
-0.000000000000000000000000011755 1.17549e-26
-0.000000000000000000000000117549 1.17549e-25
-0.000000000000000000000001175494 1.17549e-24
-0.000000000000000000000011754943 1.17549e-23
-0.000000000000000000000117549438 1.17549e-22
-0.000000000000000000001175494332 1.17549e-21
-0.000000000000000000011754943324 1.17549e-20
-0.000000000000000000117549434853 1.17549e-19
-0.000000000000000001175494374380 1.17549e-18
-0.000000000000000011754943743802 1.17549e-17
-0.000000000000000117549432474939 1.17549e-16
-0.000000000000001175494324749389 0.00000000000000117549
-0.000000000000011754943671010362 0.0000000000000117549
-0.000000000000117549429933840040 0.000000000000117549
-0.000000000001175494380653563400 0.00000000000117549
-0.000000000011754943372854765000 0.0000000000117549
-0.000000000117549428524377220000 0.000000000117549
-0.000000001175494368510499000000 0.00000000117549
-0.000000011754943685104990000000 0.0000000117549
-0.000000117549433298336230000000 0.000000117549
-0.000001175494389826781100000000 0.00000117549
-0.000011754943443520460000000000 0.0000117549
-0.000117549432616215200000000000 0.000117549
-0.001175494398921728100000000000 0.00117549
-0.011754943057894707000000000000 0.0117549
-0.117549434304237370000000000000 0.117549
-SELECT CAST(my_double AS DECIMAL(65,30)), my_double FROM t1;
-CAST(my_double AS DECIMAL(65,30)) my_double
-0.000000000000000000000000000000 1.175494345e-32
-0.000000000000000000000000000000 1.175494345e-31
-0.000000000000000000000000000001 1.175494345e-30
-0.000000000000000000000000000012 1.175494345e-29
-0.000000000000000000000000000118 1.175494345e-28
-0.000000000000000000000000001175 1.175494345e-27
-0.000000000000000000000000011755 1.175494345e-26
-0.000000000000000000000000117549 1.175494345e-25
-0.000000000000000000000001175494 1.175494345e-24
-0.000000000000000000000011754943 1.175494345e-23
-0.000000000000000000000117549435 1.175494345e-22
-0.000000000000000000001175494345 1.175494345e-21
-0.000000000000000000011754943450 1.175494345e-20
-0.000000000000000000117549434500 1.175494345e-19
-0.000000000000000001175494345000 1.175494345e-18
-0.000000000000000011754943450000 1.175494345e-17
-0.000000000000000117549434500000 1.175494345e-16
-0.000000000000001175494345000000 0.000000000000001175494345
-0.000000000000011754943450000000 0.00000000000001175494345
-0.000000000000117549434500000000 0.0000000000001175494345
-0.000000000001175494345000000000 0.000000000001175494345
-0.000000000011754943450000000000 0.00000000001175494345
-0.000000000117549434500000000000 0.0000000001175494345
-0.000000001175494345000000000000 0.000000001175494345
-0.000000011754943450000000000000 0.00000001175494345
-0.000000117549434500000000000000 0.0000001175494345
-0.000001175494345000000000000000 0.000001175494345
-0.000011754943450000000000000000 0.00001175494345
-0.000117549434500000000000000000 0.0001175494345
-0.001175494345000000000000000000 0.001175494345
-0.011754943450000000000000000000 0.01175494345
-0.117549434500000000000000000000 0.1175494345
-SELECT CAST(my_varchar AS DECIMAL(65,30)), my_varchar FROM t1;
-CAST(my_varchar AS DECIMAL(65,30)) my_varchar
-0.000000000000000000000000000000 1.175494345e-32
-0.000000000000000000000000000000 1.175494345e-31
-0.000000000000000000000000000001 1.175494345e-30
-0.000000000000000000000000000012 1.175494345e-29
-0.000000000000000000000000000118 1.175494345e-28
-0.000000000000000000000000001175 1.175494345e-27
-0.000000000000000000000000011755 1.175494345e-26
-0.000000000000000000000000117549 1.175494345e-25
-0.000000000000000000000001175494 1.175494345e-24
-0.000000000000000000000011754943 1.175494345e-23
-0.000000000000000000000117549435 1.175494345e-22
-0.000000000000000000001175494345 1.175494345e-21
-0.000000000000000000011754943450 1.175494345e-20
-0.000000000000000000117549434500 1.175494345e-19
-0.000000000000000001175494345000 1.175494345e-18
-0.000000000000000011754943450000 1.175494345e-17
-0.000000000000000117549434500000 1.175494345e-16
-0.000000000000001175494345000000 1.175494345e-15
-0.000000000000011754943450000000 1.175494345e-14
-0.000000000000117549434500000000 1.175494345e-13
-0.000000000001175494345000000000 1.175494345e-12
-0.000000000011754943450000000000 1.175494345e-11
-0.000000000117549434500000000000 1.175494345e-10
-0.000000001175494345000000000000 1.175494345e-9
-0.000000011754943450000000000000 1.175494345e-8
-0.000000117549434500000000000000 1.175494345e-7
-0.000001175494345000000000000000 1.175494345e-6
-0.000011754943450000000000000000 1.175494345e-5
-0.000117549434500000000000000000 1.175494345e-4
-0.001175494345000000000000000000 1.175494345e-3
-0.011754943450000000000000000000 1.175494345e-2
-0.117549434500000000000000000000 1.175494345e-1
-UPDATE t1 SET my_decimal = my_float;
-SELECT my_decimal, my_float FROM t1;
-my_decimal my_float
-0.000000000000000000000000000000 1.17549e-32
-0.000000000000000000000000000000 1.17549e-31
-0.000000000000000000000000000001 1.17549e-30
-0.000000000000000000000000000012 1.17549e-29
-0.000000000000000000000000000118 1.17549e-28
-0.000000000000000000000000001175 1.17549e-27
-0.000000000000000000000000011755 1.17549e-26
-0.000000000000000000000000117549 1.17549e-25
-0.000000000000000000000001175494 1.17549e-24
-0.000000000000000000000011754943 1.17549e-23
-0.000000000000000000000117549438 1.17549e-22
-0.000000000000000000001175494332 1.17549e-21
-0.000000000000000000011754943324 1.17549e-20
-0.000000000000000000117549434853 1.17549e-19
-0.000000000000000001175494374380 1.17549e-18
-0.000000000000000011754943743802 1.17549e-17
-0.000000000000000117549432474939 1.17549e-16
-0.000000000000001175494324749389 0.00000000000000117549
-0.000000000000011754943671010362 0.0000000000000117549
-0.000000000000117549429933840040 0.000000000000117549
-0.000000000001175494380653563400 0.00000000000117549
-0.000000000011754943372854765000 0.0000000000117549
-0.000000000117549428524377220000 0.000000000117549
-0.000000001175494368510499000000 0.00000000117549
-0.000000011754943685104990000000 0.0000000117549
-0.000000117549433298336230000000 0.000000117549
-0.000001175494389826781100000000 0.00000117549
-0.000011754943443520460000000000 0.0000117549
-0.000117549432616215200000000000 0.000117549
-0.001175494398921728100000000000 0.00117549
-0.011754943057894707000000000000 0.0117549
-0.117549434304237370000000000000 0.117549
-UPDATE t1 SET my_decimal = my_double;
-SELECT my_decimal, my_double FROM t1;
-my_decimal my_double
-0.000000000000000000000000000000 1.175494345e-32
-0.000000000000000000000000000000 1.175494345e-31
-0.000000000000000000000000000001 1.175494345e-30
-0.000000000000000000000000000012 1.175494345e-29
-0.000000000000000000000000000118 1.175494345e-28
-0.000000000000000000000000001175 1.175494345e-27
-0.000000000000000000000000011755 1.175494345e-26
-0.000000000000000000000000117549 1.175494345e-25
-0.000000000000000000000001175494 1.175494345e-24
-0.000000000000000000000011754943 1.175494345e-23
-0.000000000000000000000117549435 1.175494345e-22
-0.000000000000000000001175494345 1.175494345e-21
-0.000000000000000000011754943450 1.175494345e-20
-0.000000000000000000117549434500 1.175494345e-19
-0.000000000000000001175494345000 1.175494345e-18
-0.000000000000000011754943450000 1.175494345e-17
-0.000000000000000117549434500000 1.175494345e-16
-0.000000000000001175494345000000 0.000000000000001175494345
-0.000000000000011754943450000000 0.00000000000001175494345
-0.000000000000117549434500000000 0.0000000000001175494345
-0.000000000001175494345000000000 0.000000000001175494345
-0.000000000011754943450000000000 0.00000000001175494345
-0.000000000117549434500000000000 0.0000000001175494345
-0.000000001175494345000000000000 0.000000001175494345
-0.000000011754943450000000000000 0.00000001175494345
-0.000000117549434500000000000000 0.0000001175494345
-0.000001175494345000000000000000 0.000001175494345
-0.000011754943450000000000000000 0.00001175494345
-0.000117549434500000000000000000 0.0001175494345
-0.001175494345000000000000000000 0.001175494345
-0.011754943450000000000000000000 0.01175494345
-0.117549434500000000000000000000 0.1175494345
-UPDATE t1 SET my_decimal = my_varchar;
-Warnings:
-Note 1265 Data truncated for column 'my_decimal' at row 1
-Note 1265 Data truncated for column 'my_decimal' at row 2
-Note 1265 Data truncated for column 'my_decimal' at row 3
-Note 1265 Data truncated for column 'my_decimal' at row 4
-Note 1265 Data truncated for column 'my_decimal' at row 5
-Note 1265 Data truncated for column 'my_decimal' at row 6
-Note 1265 Data truncated for column 'my_decimal' at row 7
-Note 1265 Data truncated for column 'my_decimal' at row 8
-Note 1265 Data truncated for column 'my_decimal' at row 9
-Note 1265 Data truncated for column 'my_decimal' at row 10
-Note 1265 Data truncated for column 'my_decimal' at row 11
-SELECT my_decimal, my_varchar FROM t1;
-my_decimal my_varchar
-0.000000000000000000000000000000 1.175494345e-32
-0.000000000000000000000000000000 1.175494345e-31
-0.000000000000000000000000000001 1.175494345e-30
-0.000000000000000000000000000012 1.175494345e-29
-0.000000000000000000000000000118 1.175494345e-28
-0.000000000000000000000000001175 1.175494345e-27
-0.000000000000000000000000011755 1.175494345e-26
-0.000000000000000000000000117549 1.175494345e-25
-0.000000000000000000000001175494 1.175494345e-24
-0.000000000000000000000011754943 1.175494345e-23
-0.000000000000000000000117549435 1.175494345e-22
-0.000000000000000000001175494345 1.175494345e-21
-0.000000000000000000011754943450 1.175494345e-20
-0.000000000000000000117549434500 1.175494345e-19
-0.000000000000000001175494345000 1.175494345e-18
-0.000000000000000011754943450000 1.175494345e-17
-0.000000000000000117549434500000 1.175494345e-16
-0.000000000000001175494345000000 1.175494345e-15
-0.000000000000011754943450000000 1.175494345e-14
-0.000000000000117549434500000000 1.175494345e-13
-0.000000000001175494345000000000 1.175494345e-12
-0.000000000011754943450000000000 1.175494345e-11
-0.000000000117549434500000000000 1.175494345e-10
-0.000000001175494345000000000000 1.175494345e-9
-0.000000011754943450000000000000 1.175494345e-8
-0.000000117549434500000000000000 1.175494345e-7
-0.000001175494345000000000000000 1.175494345e-6
-0.000011754943450000000000000000 1.175494345e-5
-0.000117549434500000000000000000 1.175494345e-4
-0.001175494345000000000000000000 1.175494345e-3
-0.011754943450000000000000000000 1.175494345e-2
-0.117549434500000000000000000000 1.175494345e-1
-DROP TABLE t1;
-create table t1 (c1 decimal(64));
-insert into t1 values(
-89000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);
-Warnings:
-Warning 1916 Got overflow when converting '' to DECIMAL. Value truncated
-Warning 1264 Out of range value for column 'c1' at row 1
-insert into t1 values(
-99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 *
-99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999);
-ERROR 22003: DECIMAL value is out of range in '99999999999999999999999999999999999999999999999999999999999999999 * 99999999999999999999999999999999999999999999999999999999999999999'
-insert into t1 values(1e100);
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-select * from t1;
-c1
-9999999999999999999999999999999999999999999999999999999999999999
-9999999999999999999999999999999999999999999999999999999999999999
-drop table t1;
-create table t1(a decimal(7,2));
-insert into t1 values(123.12);
-select * from t1;
-a
-123.12
-alter table t1 modify a decimal(10,2);
-select * from t1;
-a
-123.12
-drop table t1;
-create table t1 (i int, j int);
-insert into t1 values (1,1), (1,2), (2,3), (2,4);
-select i, count(distinct j) from t1 group by i;
-i count(distinct j)
-1 2
-2 2
-select i+0.0 as i2, count(distinct j) from t1 group by i2;
-i2 count(distinct j)
-1.0 2
-2.0 2
-drop table t1;
-create table t1(f1 decimal(20,6));
-insert into t1 values (CAST('10:11:12' AS date) + interval 14 microsecond);
-insert into t1 values (CAST('10:11:12' AS time));
-select * from t1;
-f1
-20101112000000.000014
-101112.000000
-drop table t1;
-select cast(19999999999999999999 as unsigned);
-cast(19999999999999999999 as unsigned)
-18446744073709551615
-Warnings:
-Warning 1916 Got overflow when converting '19999999999999999999' to UNSIGNED INT. Value truncated
-create table t1(a decimal(18));
-insert into t1 values(123456789012345678);
-alter table t1 modify column a decimal(19);
-select * from t1;
-a
-123456789012345678
-drop table t1;
-select cast(11.1234 as DECIMAL(3,2));
-cast(11.1234 as DECIMAL(3,2))
-9.99
-Warnings:
-Warning 1264 Out of range value for column 'cast(11.1234 as DECIMAL(3,2))' at row 1
-select * from (select cast(11.1234 as DECIMAL(3,2))) t;
-cast(11.1234 as DECIMAL(3,2))
-9.99
-Warnings:
-Warning 1264 Out of range value for column 'cast(11.1234 as DECIMAL(3,2))' at row 1
-select cast(a as DECIMAL(3,2))
-from (select 11.1233 as a
-UNION select 11.1234
-UNION select 12.1234
-) t;
-cast(a as DECIMAL(3,2))
-9.99
-9.99
-9.99
-Warnings:
-Warning 1264 Out of range value for column 'cast(a as DECIMAL(3,2))' at row 1
-Warning 1264 Out of range value for column 'cast(a as DECIMAL(3,2))' at row 1
-Warning 1264 Out of range value for column 'cast(a as DECIMAL(3,2))' at row 1
-select cast(a as DECIMAL(3,2)), count(*)
-from (select 11.1233 as a
-UNION select 11.1234
-UNION select 12.1234
-) t group by 1;
-cast(a as DECIMAL(3,2)) count(*)
-9.99 3
-Warnings:
-Warning 1264 Out of range value for column 'cast(a as DECIMAL(3,2))' at row 1
-Warning 1264 Out of range value for column 'cast(a as DECIMAL(3,2))' at row 1
-Warning 1264 Out of range value for column 'cast(a as DECIMAL(3,2))' at row 1
-Warning 1264 Out of range value for column 'cast(a as DECIMAL(3,2))' at row 1
-create table t1 (s varchar(100));
-insert into t1 values (0.00000000010000000000000000364321973154977415791655470655996396089904010295867919921875);
-drop table t1;
-SELECT 1.000000000000 * 99.999999999998 / 100 a,1.000000000000 * (99.999999999998 / 100) b;
-a b
-0.9999999999999800000000000000 0.9999999999999800000000000000
-SELECT CAST(1 AS decimal(65,10));
-CAST(1 AS decimal(65,10))
-1.0000000000
-SELECT CAST(1 AS decimal(66,10));
-ERROR 42000: Too big precision 66 specified for '1'. Maximum is 65
-SELECT CAST(1 AS decimal(65,38));
-CAST(1 AS decimal(65,38))
-1.00000000000000000000000000000000000000
-SELECT CAST(1 AS decimal(65,39));
-ERROR 42000: Too big scale 39 specified for '1'. Maximum is 38
-CREATE TABLE t1 (a int DEFAULT NULL, b int DEFAULT NULL);
-INSERT INTO t1 VALUES (3,30), (1,10), (2,10);
-SELECT a+CAST(1 AS decimal(65,30)) AS aa, SUM(b) FROM t1 GROUP BY aa;
-aa SUM(b)
-2.000000000000000000000000000000 10
-3.000000000000000000000000000000 10
-4.000000000000000000000000000000 30
-SELECT a+CAST(1 AS decimal(65,49)) AS aa, SUM(b) FROM t1 GROUP BY aa;
-ERROR 42000: Too big scale 49 specified for '1'. Maximum is 38
-DROP TABLE t1;
-CREATE TABLE t1 (a int DEFAULT NULL, b int DEFAULT NULL);
-INSERT INTO t1 VALUES (3,30), (1,10), (2,10);
-SET @a= CAST(1 AS decimal);
-SELECT 1 FROM t1 GROUP BY @b := @a, @b;
-1
-1
-1
-DROP TABLE t1;
-CREATE TABLE t1 SELECT 0.1234567890123456789012345678901234567890123456789 AS f1;
-Warnings:
-Note 1265 Data truncated for column 'f1' at row 1
-DESC t1;
-Field Type Null Key Default Extra
-f1 decimal(39,38) NO NULL
-SELECT f1 FROM t1;
-f1
-0.12345678901234567890123456789012345679
-DROP TABLE t1;
-CREATE TABLE t1 SELECT 123451234512345123451234512345123451234512345.678906789067890678906789067890678906789067890 AS f1;
-Warnings:
-Warning 1264 Out of range value for column 'f1' at row 1
-DESC t1;
-Field Type Null Key Default Extra
-f1 decimal(65,36) NO NULL
-SELECT f1 FROM t1;
-f1
-99999999999999999999999999999.999999999999999999999999999999999999
-DROP TABLE t1;
-select (1.20396873 * 0.89550000 * 0.68000000 * 1.08721696 * 0.99500000 *
-1.01500000 * 1.01500000 * 0.99500000);
-(1.20396873 * 0.89550000 * 0.68000000 * 1.08721696 * 0.99500000 *
-1.01500000 * 1.01500000 * 0.99500000)
-0.81298807395367312459230693948000000000
-create table t1 as select 5.05 / 0.014;
-Warnings:
-Note 1265 Data truncated for column '5.05 / 0.014' at row 1
-show warnings;
-Level Code Message
-Note 1265 Data truncated for column '5.05 / 0.014' at row 1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `5.05 / 0.014` decimal(10,6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t1;
-5.05 / 0.014
-360.714286
-DROP TABLE t1;
-#
-# Bug#12563865
-# ROUNDED,TMP_BUF,DECIMAL_VALUE STACK CORRUPTION IN ALL VERSIONS >=5.0
-#
-SELECT substring(('M') FROM (999999999999999999999999999999999999999999999999999999999999999999999999999999999)) AS foo;
-foo
-
-Warnings:
-Warning 1916 Got overflow when converting '999999999999999999999999999999999999999999999999999999999999999999999999999999999' to INT. Value truncated
-Warning 1916 Got overflow when converting '999999999999999999999999999999999999999999999999999999999999999999999999999999999' to INT. Value truncated
-SELECT min(999999999999999999999999999999999999999999999999999999999999999999999999999999999) AS foo;
-foo
-999999999999999999999999999999999999999999999999999999999999999999999999999999999
-SELECT multipolygonfromtext(('4294967294.1'),(999999999999999999999999999999999999999999999999999999999999999999999999999999999)) AS foo;
-foo
-NULL
-Warnings:
-Warning 1916 Got overflow when converting '999999999999999999999999999999999999999999999999999999999999999999999999999999999' to INT. Value truncated
-SELECT convert((999999999999999999999999999999999999999999999999999999999999999999999999999999999), decimal(30,30)) AS foo;
-foo
-0.999999999999999999999999999999
-Warnings:
-Warning 1264 Out of range value for column 'foo' at row 1
-SELECT bit_xor(999999999999999999999999999999999999999999999999999999999999999999999999999999999) AS foo;
-foo
-9223372036854775807
-Warnings:
-Warning 1916 Got overflow when converting '999999999999999999999999999999999999999999999999999999999999999999999999999999999' to INT. Value truncated
-SELECT -(999999999999999999999999999999999999999999999999999999999999999999999999999999999) AS foo;
-foo
--999999999999999999999999999999999999999999999999999999999999999999999999999999999
-SELECT date_sub((999999999999999999999999999999999999999999999999999999999999999999999999999999999),
-interval ((SELECT date_add((0x77500000),
-interval ('Oml') second)))
-day_minute)
-AS foo;
-foo
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '999999999999999999999999999999999999999999999999999999999999999999999999999999999'
-SELECT truncate(999999999999999999999999999999999999999999999999999999999999999999999999999999999, 28) AS foo;
-foo
-999999999999999999999999999999999999999999999999999999999999999999999999999999999
-End of 5.0 tests
-select cast(143.481 as decimal(4,1));
-cast(143.481 as decimal(4,1))
-143.5
-select cast(143.481 as decimal(4,0));
-cast(143.481 as decimal(4,0))
-143
-select cast(143.481 as decimal(2,1));
-cast(143.481 as decimal(2,1))
-9.9
-Warnings:
-Warning 1264 Out of range value for column 'cast(143.481 as decimal(2,1))' at row 1
-select cast(-3.4 as decimal(2,1));
-cast(-3.4 as decimal(2,1))
--3.4
-select cast(99.6 as decimal(2,0));
-cast(99.6 as decimal(2,0))
-99
-Warnings:
-Warning 1264 Out of range value for column 'cast(99.6 as decimal(2,0))' at row 1
-select cast(-13.4 as decimal(2,1));
-cast(-13.4 as decimal(2,1))
--9.9
-Warnings:
-Warning 1264 Out of range value for column 'cast(-13.4 as decimal(2,1))' at row 1
-select cast(98.6 as decimal(2,0));
-cast(98.6 as decimal(2,0))
-99
-#
-# Bug #45262: Bad effects with CREATE TABLE and DECIMAL
-#
-CREATE TABLE t1 SELECT .123456789123456789123456789123456789123456789123456789123456789123456789123456789 AS my_col;
-Warnings:
-Note 1265 Data truncated for column 'my_col' at row 1
-DESCRIBE t1;
-Field Type Null Key Default Extra
-my_col decimal(38,38) NO NULL
-SELECT my_col FROM t1;
-my_col
-0.12345678912345678912345678912345678912
-DROP TABLE t1;
-CREATE TABLE t1 SELECT 1 + .123456789123456789123456789123456789123456789123456789123456789123456789123456789 AS my_col;
-Warnings:
-Note 1265 Data truncated for column 'my_col' at row 1
-DESCRIBE t1;
-Field Type Null Key Default Extra
-my_col decimal(65,38) NO NULL
-SELECT my_col FROM t1;
-my_col
-1.12345678912345678912345678912345678912
-DROP TABLE t1;
-CREATE TABLE t1 SELECT 1 * .123456789123456789123456789123456789123456789123456789123456789123456789123456789 AS my_col;
-Warnings:
-Note 1265 Data truncated for column 'my_col' at row 1
-DESCRIBE t1;
-Field Type Null Key Default Extra
-my_col decimal(65,38) NO NULL
-SELECT my_col FROM t1;
-my_col
-0.12345678912345678912345678912345678912
-DROP TABLE t1;
-CREATE TABLE t1 SELECT 1 / .123456789123456789123456789123456789123456789123456789123456789123456789123456789 AS my_col;
-Warnings:
-Note 1265 Data truncated for column 'my_col' at row 1
-DESCRIBE t1;
-Field Type Null Key Default Extra
-my_col decimal(65,4) YES NULL
-SELECT my_col FROM t1;
-my_col
-8.1000
-DROP TABLE t1;
-CREATE TABLE t1 SELECT 1 % .123456789123456789123456789123456789123456789123456789123456789123456789123456789 AS my_col;
-Warnings:
-Note 1265 Data truncated for column 'my_col' at row 1
-DESCRIBE t1;
-Field Type Null Key Default Extra
-my_col decimal(65,38) YES NULL
-SELECT my_col FROM t1;
-my_col
-0.01234568701234568701234568701234568701
-DROP TABLE t1;
-#
-# Bug#45261: Crash, stored procedure + decimal
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 SELECT
-/* 81 */ 100000000000000000000000000000000000000000000000000000000000000000000000000000001
-AS c1;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(65,0) NO NULL
-SELECT * FROM t1;
-c1
-99999999999999999999999999999999999999999999999999999999999999999
-DROP TABLE t1;
-CREATE TABLE t1 SELECT
-/* 81 */ 100000000000000000000000000000000000000000000000000000000000000000000000000000001.
-AS c1;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(65,0) NO NULL
-SELECT * FROM t1;
-c1
-99999999999999999999999999999999999999999999999999999999999999999
-DROP TABLE t1;
-CREATE TABLE t1 SELECT
-/* 81 */ 100000000000000000000000000000000000000000000000000000000000000000000000000000001.1 /* 1 */
-AS c1;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(65,0) NO NULL
-SELECT * FROM t1;
-c1
-99999999999999999999999999999999999999999999999999999999999999999
-DROP TABLE t1;
-CREATE TABLE t1 SELECT
-/* 82 */ 1000000000000000000000000000000000000000000000000000000000000000000000000000000001
-AS c1;
-Warnings:
-Warning 1916 Got overflow when converting '' to DECIMAL. Value truncated
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(65,0) NO NULL
-SELECT * FROM t1;
-c1
-99999999999999999999999999999999999999999999999999999999999999999
-DROP TABLE t1;
-CREATE TABLE t1 SELECT
-/* 40 */ 1000000000000000000000000000000000000001.1000000000000000000000000000000000000001 /* 40 */
-AS c1;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(65,36) NO NULL
-SELECT * FROM t1;
-c1
-99999999999999999999999999999.999999999999999999999999999999999999
-DROP TABLE t1;
-CREATE TABLE t1 SELECT
-/* 1 */ 1.10000000000000000000000000000000000000000000000000000000000000000000000000000001 /* 80 */
-AS c1;
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(39,38) NO NULL
-SELECT * FROM t1;
-c1
-1.10000000000000000000000000000000000000
-DROP TABLE t1;
-CREATE TABLE t1 SELECT
-/* 1 */ 1.100000000000000000000000000000000000000000000000000000000000000000000000000000001 /* 81 */
-AS c1;
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(39,38) NO NULL
-SELECT * FROM t1;
-c1
-1.10000000000000000000000000000000000000
-DROP TABLE t1;
-CREATE TABLE t1 SELECT
-.100000000000000000000000000000000000000000000000000000000000000000000000000000001 /* 81 */
-AS c1;
-Warnings:
-Note 1265 Data truncated for column 'c1' at row 1
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(38,38) NO NULL
-SELECT * FROM t1;
-c1
-0.10000000000000000000000000000000000000
-DROP TABLE t1;
-CREATE TABLE t1 SELECT
-/* 45 */ 123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345 /* 45 */
-AS c1;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(65,36) NO NULL
-SELECT * FROM t1;
-c1
-99999999999999999999999999999.999999999999999999999999999999999999
-DROP TABLE t1;
-CREATE TABLE t1 SELECT
-/* 65 */ 12345678901234567890123456789012345678901234567890123456789012345.1 /* 1 */
-AS c1;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(65,1) NO NULL
-SELECT * FROM t1;
-c1
-9999999999999999999999999999999999999999999999999999999999999999.9
-DROP TABLE t1;
-CREATE TABLE t1 SELECT
-/* 66 */ 123456789012345678901234567890123456789012345678901234567890123456.1 /* 1 */
-AS c1;
-Warnings:
-Warning 1264 Out of range value for column 'c1' at row 1
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(65,1) NO NULL
-SELECT * FROM t1;
-c1
-9999999999999999999999999999999999999999999999999999999999999999.9
-DROP TABLE t1;
-CREATE TABLE t1 SELECT
-.123456789012345678901234567890123456789012345678901234567890123456 /* 66 */
-AS c1;
-Warnings:
-Note 1265 Data truncated for column 'c1' at row 1
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(38,38) NO NULL
-SELECT * FROM t1;
-c1
-0.12345678901234567890123456789012345679
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT 123.1234567890123456789012345678901 /* 31 */ AS c1;
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(34,31) NO NULL
-SELECT * FROM t1;
-c1
-123.1234567890123456789012345678901
-DROP TABLE t1;
-CREATE TABLE t1 SELECT 1.1 + CAST(1 AS DECIMAL(65,30)) AS c1;
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(65,30) NO NULL
-SELECT * FROM t1;
-c1
-2.100000000000000000000000000000
-DROP TABLE t1;
-#
-# Test that the integer and decimal parts are properly calculated.
-#
-CREATE TABLE t1 (a DECIMAL(30,30));
-INSERT INTO t1 VALUES (0.1),(0.2),(0.3);
-CREATE TABLE t2 SELECT MIN(a + 0.0000000000000000000000000000001) AS c1 FROM t1;
-DESC t2;
-Field Type Null Key Default Extra
-c1 decimal(33,31) YES NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DECIMAL(30,30));
-INSERT INTO t1 VALUES (0.1),(0.2),(0.3);
-CREATE TABLE t2 SELECT IFNULL(a + 0.00000000000000000000000000000000000000000000000001, NULL) AS c1 FROM t1;
-Warnings:
-Note 1265 Data truncated for column 'c1' at row 1
-Note 1265 Data truncated for column 'c1' at row 2
-Note 1265 Data truncated for column 'c1' at row 3
-DESC t2;
-Field Type Null Key Default Extra
-c1 decimal(52,38) YES NULL
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DECIMAL(30,30));
-INSERT INTO t1 VALUES (0.1),(0.2),(0.3);
-CREATE TABLE t2 SELECT CASE a WHEN 0.1 THEN 0.0000000000000000000000000000000000000000000000000000000000000000001 END AS c1 FROM t1;
-Warnings:
-Note 1265 Data truncated for column 'c1' at row 1
-DESC t2;
-Field Type Null Key Default Extra
-c1 decimal(65,38) YES NULL
-DROP TABLE t1,t2;
-#
-# Test that variables get maximum precision.
-#
-SET @decimal= 1.1;
-CREATE TABLE t1 SELECT @decimal AS c1;
-DESC t1;
-Field Type Null Key Default Extra
-c1 decimal(65,38) YES NULL
-SELECT * FROM t1;
-c1
-1.10000000000000000000000000000000000000
-DROP TABLE t1;
-#
-# Bug #45261 : Crash, stored procedure + decimal
-# Original test by the reporter.
-#
-# should not crash
-CREATE TABLE t1
-SELECT .123456789012345678901234567890123456789012345678901234567890123456 AS a;
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE PROCEDURE test_proc()
-BEGIN
-# The las non critical CUSER definition is:
-# DECLARE mycursor CURSOR FOR SELECT 1 %
-# .12345678912345678912345678912345678912345678912345678912345678912 AS my_col;
-DECLARE mycursor CURSOR FOR
-SELECT 1 %
-.123456789123456789123456789123456789123456789123456789123456789123456789123456789
-AS my_col;
-OPEN mycursor;
-CLOSE mycursor;
-END|
-# should not crash
-CALL test_proc();
-DROP PROCEDURE test_proc;
-#
-# Bug #48370 Absolutely wrong calculations with GROUP BY and
-# decimal fields when using IF
-#
-CREATE TABLE currencies (id int, rate decimal(16,4),
-PRIMARY KEY (id), KEY (rate));
-INSERT INTO currencies VALUES (11,0.7028);
-INSERT INTO currencies VALUES (1,1);
-CREATE TABLE payments (
-id int,
-supplier_id int,
-status int,
-currency_id int,
-vat decimal(7,4),
-PRIMARY KEY (id),
-KEY currency_id (currency_id),
-KEY supplier_id (supplier_id)
-);
-INSERT INTO payments (id,status,vat,supplier_id,currency_id) VALUES
-(3001,2,0.0000,344,11), (1,2,0.0000,1,1);
-CREATE TABLE sub_tasks (
-id int,
-currency_id int,
-price decimal(16,4),
-discount decimal(10,4),
-payment_id int,
-PRIMARY KEY (id),
-KEY currency_id (currency_id),
-KEY payment_id (payment_id)
-) ;
-INSERT INTO sub_tasks (id, price, discount, payment_id, currency_id) VALUES
-(52, 12.60, 0, 3001, 11), (56, 14.58, 0, 3001, 11);
-# should return 1 and the same values in col 2 and 3
-select STRAIGHT_JOIN
-(1 + PAY.vat) AS mult,
-SUM(ROUND((SUB.price - ROUND(ROUND(SUB.price, 2) * SUB.discount, 2)) *
-CUR.rate / CUR.rate, 2)
-) v_net_with_discount,
-SUM(ROUND((SUB.price - ROUND(ROUND(SUB.price, 2) * SUB.discount, 1)) *
-CUR.rate / CUR.rate , 2)
-* (1 + PAY.vat)
-) v_total
-from
-currencies CUR, payments PAY, sub_tasks SUB
-where
-SUB.payment_id = PAY.id and
-PAY.currency_id = CUR.id and
-PAY.id > 2
-group by PAY.id + 1;
-mult v_net_with_discount v_total
-1.0000 27.18 27.180000
-DROP TABLE currencies, payments, sub_tasks;
-#
-# BUG#52171: distinct aggregates on unsigned decimal fields trigger assertions
-#
-CREATE TABLE t1 (a DECIMAL(4,4) UNSIGNED);
-INSERT INTO t1 VALUES (0);
-SELECT AVG(DISTINCT a) FROM t1;
-AVG(DISTINCT a)
-0.00000000
-SELECT SUM(DISTINCT a) FROM t1;
-SUM(DISTINCT a)
-0.0000
-DROP TABLE t1;
-#
-# Bug#55436: buffer overflow in debug binary of dbug_buff in
-# Field_new_decimal::store_value
-#
-SET SQL_MODE='';
-CREATE TABLE t1(f1 DECIMAL(44,24)) ENGINE=MYISAM;
-INSERT INTO t1 SET f1 = -64878E-85;
-Warnings:
-Note 1265 Data truncated for column 'f1' at row 1
-SELECT f1 FROM t1;
-f1
-0.000000000000000000000000
-DROP TABLE IF EXISTS t1;
-End of 5.1 tests
-#
-# BUG#12911710 - VALGRIND FAILURE IN
-# ROW-DEBUG:PERFSCHEMA.SOCKET_SUMMARY_BY_INSTANCE_FUNC
-#
-CREATE TABLE t1(d1 DECIMAL(60,0) NOT NULL,
-d2 DECIMAL(60,0) NOT NULL);
-INSERT INTO t1 (d1, d2) VALUES(0.0, 0.0);
-SELECT d1 * d2 FROM t1;
-d1 * d2
-0
-DROP TABLE t1;
-select 0.000000000000000000000000000000000000000000000000001 mod 1;
-0.000000000000000000000000000000000000000000000000001 mod 1
-0.00000000000000000000000000000000000000
-select 0.0000000001 mod 1;
-0.0000000001 mod 1
-0.0000000001
-select 0.01 mod 1;
-0.01 mod 1
-0.01
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-6950 Bad results with joins comparing DATE and INT/ENUM/VARCHAR columns
-#
-CREATE TABLE t1 (a DATETIME PRIMARY KEY);
-INSERT INTO t1 VALUES ('1999-01-01 00:00:00');
-CREATE TABLE t2 (a DECIMAL(30,1));
-INSERT INTO t2 VALUES (19990101000000);
-INSERT INTO t2 VALUES (990101000000);
-SELECT t1.* FROM t1,t2 WHERE t1.a=t2.a;
-a
-1999-01-01 00:00:00
-1999-01-01 00:00:00
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.a=t2.a;
-a
-1999-01-01 00:00:00
-1999-01-01 00:00:00
-ALTER TABLE t2 ADD PRIMARY KEY(a);
-SELECT t1.* FROM t1,t2 WHERE t1.a=t2.a;
-a
-1999-01-01 00:00:00
-1999-01-01 00:00:00
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.a=t2.a;
-a
-1999-01-01 00:00:00
-1999-01-01 00:00:00
-# t2 should NOT be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 14 NULL 2 Using where; Using index
-DROP TABLE t1,t2;
-#
-# MDEV-6971 Bad results with joins comparing TIME and DOUBLE/DECIMAL columns
-#
-CREATE TABLE t1 (a TIME(6) PRIMARY KEY);
-INSERT INTO t1 VALUES ('10:20:30');
-CREATE TABLE t2 (a DECIMAL(30,10));
-INSERT INTO t2 VALUES (102030),(102030.000000001);
-SELECT t1.* FROM t1 JOIN t2 USING(a);
-a
-10:20:30.000000
-10:20:30.000000
-SELECT t1.* FROM t1 LEFT JOIN t2 USING(a);
-a
-10:20:30.000000
-10:20:30.000000
-ALTER TABLE t2 ADD PRIMARY KEY(a);
-SELECT t1.* FROM t1 JOIN t2 USING(a);
-a
-10:20:30.000000
-10:20:30.000000
-SELECT t1.* FROM t1 LEFT JOIN t2 USING(a);
-a
-10:20:30.000000
-10:20:30.000000
-# t2 should NOT be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 USING(a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 14 NULL 2 Using where; Using index
-DROP TABLE t1,t2;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8703 Wrong result for SELECT..WHERE LENGTH(decimal_10_1_column)!=3 AND decimal_10_1_column=1.10
-#
-CREATE TABLE t1 (a DECIMAL(10,1));
-INSERT INTO t1 VALUES (1.1),(1.2),(1.3);
-SELECT * FROM t1 WHERE LENGTH(a)!=3;
-a
-SELECT * FROM t1 WHERE LENGTH(a)!=3 AND a=1.10;
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=3 AND a=1.10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-# Notice 1.1 instead of 1.10 in the final WHERE condition
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=rand() AND a=1.10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1.10 and <cache>(octet_length(1.1)) <> rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL(10,2));
-INSERT INTO t1 VALUES (1.1),(1.2),(1.3);
-SELECT * FROM t1 WHERE LENGTH(a)!=4;
-a
-SELECT * FROM t1 WHERE LENGTH(a)!=4 AND a=1.10;
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=4 AND a=1.10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-# Notice 1.10 in the final WHERE condition
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=rand() AND a=1.10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1.10 and <cache>(octet_length(1.10)) <> rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL(10,3));
-INSERT INTO t1 VALUES (1.1),(1.2),(1.3);
-SELECT * FROM t1 WHERE LENGTH(a)!=5;
-a
-SELECT * FROM t1 WHERE LENGTH(a)!=5 AND a=1.10;
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=5 AND a=1.10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-# Notice 1.100 rather than 1.10 in the final WHERE condition
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=rand() AND a=1.10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1.10 and <cache>(octet_length(1.100)) <> rand()
-DROP TABLE t1;
-#
-# MDEV-8741 Equal field propagation leaves some remainders after simplifying WHERE zerofill_column=2010 AND zerofill_column>=2010
-#
-CREATE TABLE t1 (a DECIMAL(10,1) ZEROFILL);
-INSERT INTO t1 VALUES (2010),(2020);
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=2010.0 AND a>=2010.0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2010.0
-DROP TABLE t1;
-#
-# MDEV-8635 Redundant warnings on WHERE decimal_column='ax'
-#
-CREATE TABLE t1 (a DECIMAL, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
-EXPLAIN SELECT * FROM t1 WHERE a='ax' ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 6 const 1 Using where; Using index; Using filesort
-DROP TABLE t1;
-#
-# MDEV-8502 DECIMAL accepts out of range DEFAULT values
-#
-CREATE TABLE t1 (a DECIMAL(2,1) DEFAULT 10000);
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a DECIMAL(2,1) DEFAULT 10000.0);
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a DECIMAL(2,1) DEFAULT 10000e0);
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a DECIMAL(2,1) DEFAULT '10000.0');
-ERROR 42000: Invalid default value for 'a'
-CREATE TABLE t1 (a DECIMAL(2,1) DEFAULT '10000.1');
-ERROR 42000: Invalid default value for 'a'
-#
-# MDEV-10277 Redundant NOTE when inserting '0.00001 ' into a DECIMAL(2,1) column
-#
-CREATE TABLE t1 (a DECIMAL(2,1));
-INSERT INTO t1 VALUES ('0.00001 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-INSERT INTO t1 VALUES ('1e-10000 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-INSERT INTO t1 VALUES ('0.1 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-INSERT INTO t1 VALUES ('0.111 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1;
-a
-0.0
-0.0
-0.1
-0.1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL(2,1) DEFAULT '1e-10000');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(2,1) DEFAULT 0.0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL(2,1) DEFAULT '0.1 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(2,1) DEFAULT 0.1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL(2,1) DEFAULT '0.10001 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(2,1) DEFAULT 0.1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL(2,1) DEFAULT '0.10001');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(2,1) DEFAULT 0.1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL(2,1) DEFAULT 0.10001);
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(2,1) DEFAULT 0.1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL(2,1) DEFAULT 0.10001e0);
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(2,1) DEFAULT 0.1
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# Bug#18408499 UNSIGNED BIGINT HIGH VALUES
-# WRONG NUMERICAL COMPARISON RESULTS
-#
-CREATE TABLE t1(value DECIMAL(24,0) NOT NULL);
-INSERT INTO t1(value)
-VALUES('100000000000000000000001'),
-('100000000000000000000002'),
-('100000000000000000000003');
-SELECT * FROM t1 WHERE value = '100000000000000000000002';
-value
-100000000000000000000002
-SELECT * FROM t1 WHERE '100000000000000000000002' = value;
-value
-100000000000000000000002
-SELECT * FROM t1 WHERE value + 0 = '100000000000000000000002';
-value
-100000000000000000000002
-SELECT * FROM t1 WHERE value = 100000000000000000000002;
-value
-100000000000000000000002
-SELECT * FROM t1 WHERE value + 0 = 100000000000000000000002;
-value
-100000000000000000000002
-PREPARE stmt FROM 'SELECT * FROM t1 WHERE value = ?';
-set @a="100000000000000000000002";
-EXECUTE stmt using @a;
-value
-100000000000000000000002
-set @a=100000000000000000000002;
-EXECUTE stmt using @a;
-value
-100000000000000000000002
-DEALLOCATE PREPARE stmt;
-ALTER TABLE t1 ADD INDEX value (value);
-SELECT * FROM t1 WHERE value = '100000000000000000000002';
-value
-100000000000000000000002
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Test CREATE .. SELECT
-#
-create or replace table t1 as select 1.000000000000000000000000000000000 as a;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(34,33) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 as select 1.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 as a;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(39,38) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 as select 1.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 as a;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(39,38) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/type_num.result b/mysql-test/r/type_num.result
deleted file mode 100644
index 966d94ee385..00000000000
--- a/mysql-test/r/type_num.result
+++ /dev/null
@@ -1,1260 +0,0 @@
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-8468 CAST and INSERT work differently for DECIMAL/INT vs DOUBLE for a string with trailing spaces
-#
-SET sql_mode='STRICT_ALL_TABLES';
-CREATE TABLE t1 (a FLOAT);
-INSERT INTO t1 VALUES ('1 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES ('1 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYINT);
-INSERT INTO t1 VALUES ('1 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES ('1 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES ('1 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES ('1 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL);
-INSERT INTO t1 VALUES ('1 ');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a FLOAT);
-INSERT INTO t1 VALUES ('');
-ERROR 22007: Incorrect double value: '' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES ('');
-ERROR 22007: Incorrect double value: '' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYINT);
-INSERT INTO t1 VALUES ('');
-ERROR 22007: Incorrect integer value: '' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES ('');
-ERROR 22007: Incorrect integer value: '' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES ('');
-ERROR 22007: Incorrect integer value: '' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES ('');
-ERROR 22007: Incorrect integer value: '' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL);
-INSERT INTO t1 VALUES ('');
-ERROR 22007: Incorrect decimal value: '' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a FLOAT);
-INSERT INTO t1 VALUES ('x');
-ERROR 22007: Incorrect double value: 'x' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES ('x');
-ERROR 22007: Incorrect double value: 'x' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYINT);
-INSERT INTO t1 VALUES ('x');
-ERROR 22007: Incorrect integer value: 'x' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES ('x');
-ERROR 22007: Incorrect integer value: 'x' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES ('x');
-ERROR 22007: Incorrect integer value: 'x' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES ('x');
-ERROR 22007: Incorrect integer value: 'x' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL);
-INSERT INTO t1 VALUES ('x');
-ERROR 22007: Incorrect decimal value: 'x' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a FLOAT);
-INSERT INTO t1 VALUES (' x');
-ERROR 22007: Incorrect double value: ' x' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES (' x');
-ERROR 22007: Incorrect double value: ' x' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYINT);
-INSERT INTO t1 VALUES (' x');
-ERROR 22007: Incorrect integer value: ' x' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES (' x');
-ERROR 22007: Incorrect integer value: ' x' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (' x');
-ERROR 22007: Incorrect integer value: ' x' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES (' x');
-ERROR 22007: Incorrect integer value: ' x' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL);
-INSERT INTO t1 VALUES (' x');
-ERROR 22007: Incorrect decimal value: ' x' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a FLOAT);
-INSERT INTO t1 VALUES ('.');
-ERROR 22007: Incorrect double value: '.' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES ('.');
-ERROR 22007: Incorrect double value: '.' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYINT);
-INSERT INTO t1 VALUES ('.');
-ERROR 22007: Incorrect integer value: '.' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES ('.');
-ERROR 22007: Incorrect integer value: '.' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES ('.');
-ERROR 22007: Incorrect integer value: '.' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES ('.');
-ERROR 22007: Incorrect integer value: '.' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL);
-INSERT INTO t1 VALUES ('.');
-ERROR 22007: Incorrect decimal value: '.' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a FLOAT);
-INSERT INTO t1 VALUES ('-');
-ERROR 22007: Incorrect double value: '-' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES ('-');
-ERROR 22007: Incorrect double value: '-' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYINT);
-INSERT INTO t1 VALUES ('-');
-ERROR 22007: Incorrect integer value: '-' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES ('-');
-ERROR 22007: Incorrect integer value: '-' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES ('-');
-ERROR 22007: Incorrect integer value: '-' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES ('-');
-ERROR 22007: Incorrect integer value: '-' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL);
-INSERT INTO t1 VALUES ('-');
-ERROR 22007: Incorrect decimal value: '-' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a FLOAT);
-INSERT INTO t1 VALUES ('+');
-ERROR 22007: Incorrect double value: '+' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES ('+');
-ERROR 22007: Incorrect double value: '+' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYINT);
-INSERT INTO t1 VALUES ('+');
-ERROR 22007: Incorrect integer value: '+' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES ('+');
-ERROR 22007: Incorrect integer value: '+' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES ('+');
-ERROR 22007: Incorrect integer value: '+' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES ('+');
-ERROR 22007: Incorrect integer value: '+' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL);
-INSERT INTO t1 VALUES ('+');
-ERROR 22007: Incorrect decimal value: '+' for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a FLOAT);
-INSERT INTO t1 VALUES ('1x');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES ('1x');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYINT);
-INSERT INTO t1 VALUES ('1x');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES ('1x');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES ('1x');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES ('1x');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL);
-INSERT INTO t1 VALUES ('1x');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a FLOAT);
-INSERT INTO t1 VALUES ('1e');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES ('1e');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYINT);
-INSERT INTO t1 VALUES ('1e');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES ('1e');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES ('1e');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES ('1e');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL);
-INSERT INTO t1 VALUES ('1e');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a FLOAT);
-INSERT INTO t1 VALUES ('1e+');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES ('1e+');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYINT);
-INSERT INTO t1 VALUES ('1e+');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES ('1e+');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES ('1e+');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES ('1e+');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL);
-INSERT INTO t1 VALUES ('1e+');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a FLOAT);
-INSERT INTO t1 VALUES ('1E-');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES ('1E-');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYINT);
-INSERT INTO t1 VALUES ('1E-');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES ('1E-');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES ('1E-');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES ('1E-');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL);
-INSERT INTO t1 VALUES ('1E-');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a FLOAT);
-INSERT INTO t1 VALUES ('1Ex');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES ('1Ex');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYINT);
-INSERT INTO t1 VALUES ('1Ex');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES ('1Ex');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES ('1Ex');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES ('1Ex');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL);
-INSERT INTO t1 VALUES ('1Ex');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a FLOAT);
-INSERT INTO t1 VALUES ('1e+x');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES ('1e+x');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYINT);
-INSERT INTO t1 VALUES ('1e+x');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES ('1e+x');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES ('1e+x');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES ('1e+x');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL);
-INSERT INTO t1 VALUES ('1e+x');
-ERROR 01000: Data truncated for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a FLOAT);
-INSERT INTO t1 VALUES ('1e1000');
-ERROR 22003: Out of range value for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES ('1e1000');
-ERROR 22003: Out of range value for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a TINYINT);
-INSERT INTO t1 VALUES ('1e1000');
-ERROR 22003: Out of range value for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a SMALLINT);
-INSERT INTO t1 VALUES ('1e1000');
-ERROR 22003: Out of range value for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES ('1e1000');
-ERROR 22003: Out of range value for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES ('1e1000');
-ERROR 22003: Out of range value for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL);
-INSERT INTO t1 VALUES ('1e1000');
-ERROR 22003: Out of range value for column 'a' at row 1
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (
-f4 FLOAT,
-f8 DOUBLE,
-i1 TINYINT,
-i2 SMALLINT,
-i4 INT,
-i8 BIGINT,
-d DECIMAL
-);
-INSERT INTO t1 VALUES ('1 ','1 ','1 ','1 ','1 ','1 ','1 ');
-Warnings:
-Note 1265 Data truncated for column 'f4' at row 1
-Note 1265 Data truncated for column 'f8' at row 1
-Note 1265 Data truncated for column 'i1' at row 1
-Note 1265 Data truncated for column 'i2' at row 1
-Note 1265 Data truncated for column 'i4' at row 1
-Note 1265 Data truncated for column 'i8' at row 1
-Note 1265 Data truncated for column 'd' at row 1
-INSERT IGNORE INTO t1 VALUES ('','','','','','','');
-Warnings:
-Warning 1366 Incorrect double value: '' for column 'f4' at row 1
-Warning 1366 Incorrect double value: '' for column 'f8' at row 1
-Warning 1366 Incorrect integer value: '' for column 'i1' at row 1
-Warning 1366 Incorrect integer value: '' for column 'i2' at row 1
-Warning 1366 Incorrect integer value: '' for column 'i4' at row 1
-Warning 1366 Incorrect integer value: '' for column 'i8' at row 1
-Warning 1366 Incorrect decimal value: '' for column 'd' at row 1
-INSERT IGNORE INTO t1 VALUES ('x','x','x','x','x','x','x');
-Warnings:
-Warning 1366 Incorrect double value: 'x' for column 'f4' at row 1
-Warning 1366 Incorrect double value: 'x' for column 'f8' at row 1
-Warning 1366 Incorrect integer value: 'x' for column 'i1' at row 1
-Warning 1366 Incorrect integer value: 'x' for column 'i2' at row 1
-Warning 1366 Incorrect integer value: 'x' for column 'i4' at row 1
-Warning 1366 Incorrect integer value: 'x' for column 'i8' at row 1
-Warning 1366 Incorrect decimal value: 'x' for column 'd' at row 1
-INSERT IGNORE INTO t1 VALUES (' x',' x',' x',' x',' x',' x',' x');
-Warnings:
-Warning 1366 Incorrect double value: ' x' for column 'f4' at row 1
-Warning 1366 Incorrect double value: ' x' for column 'f8' at row 1
-Warning 1366 Incorrect integer value: ' x' for column 'i1' at row 1
-Warning 1366 Incorrect integer value: ' x' for column 'i2' at row 1
-Warning 1366 Incorrect integer value: ' x' for column 'i4' at row 1
-Warning 1366 Incorrect integer value: ' x' for column 'i8' at row 1
-Warning 1366 Incorrect decimal value: ' x' for column 'd' at row 1
-INSERT IGNORE INTO t1 VALUES ('.','.','.','.','.','.','.');
-Warnings:
-Warning 1366 Incorrect double value: '.' for column 'f4' at row 1
-Warning 1366 Incorrect double value: '.' for column 'f8' at row 1
-Warning 1366 Incorrect integer value: '.' for column 'i1' at row 1
-Warning 1366 Incorrect integer value: '.' for column 'i2' at row 1
-Warning 1366 Incorrect integer value: '.' for column 'i4' at row 1
-Warning 1366 Incorrect integer value: '.' for column 'i8' at row 1
-Warning 1366 Incorrect decimal value: '.' for column 'd' at row 1
-INSERT IGNORE INTO t1 VALUES ('-','-','-','-','-','-','-');
-Warnings:
-Warning 1366 Incorrect double value: '-' for column 'f4' at row 1
-Warning 1366 Incorrect double value: '-' for column 'f8' at row 1
-Warning 1366 Incorrect integer value: '-' for column 'i1' at row 1
-Warning 1366 Incorrect integer value: '-' for column 'i2' at row 1
-Warning 1366 Incorrect integer value: '-' for column 'i4' at row 1
-Warning 1366 Incorrect integer value: '-' for column 'i8' at row 1
-Warning 1366 Incorrect decimal value: '-' for column 'd' at row 1
-INSERT IGNORE INTO t1 VALUES ('+','+','+','+','+','+','+');
-Warnings:
-Warning 1366 Incorrect double value: '+' for column 'f4' at row 1
-Warning 1366 Incorrect double value: '+' for column 'f8' at row 1
-Warning 1366 Incorrect integer value: '+' for column 'i1' at row 1
-Warning 1366 Incorrect integer value: '+' for column 'i2' at row 1
-Warning 1366 Incorrect integer value: '+' for column 'i4' at row 1
-Warning 1366 Incorrect integer value: '+' for column 'i8' at row 1
-Warning 1366 Incorrect decimal value: '+' for column 'd' at row 1
-INSERT IGNORE INTO t1 VALUES ('1x','1x','1x','1x','1x','1x','1x');
-Warnings:
-Warning 1265 Data truncated for column 'f4' at row 1
-Warning 1265 Data truncated for column 'f8' at row 1
-Warning 1265 Data truncated for column 'i1' at row 1
-Warning 1265 Data truncated for column 'i2' at row 1
-Warning 1265 Data truncated for column 'i4' at row 1
-Warning 1265 Data truncated for column 'i8' at row 1
-Warning 1265 Data truncated for column 'd' at row 1
-INSERT IGNORE INTO t1 VALUES ('1e','1e','1e','1e','1e','1e','1e');
-Warnings:
-Warning 1265 Data truncated for column 'f4' at row 1
-Warning 1265 Data truncated for column 'f8' at row 1
-Warning 1265 Data truncated for column 'i1' at row 1
-Warning 1265 Data truncated for column 'i2' at row 1
-Warning 1265 Data truncated for column 'i4' at row 1
-Warning 1265 Data truncated for column 'i8' at row 1
-Warning 1265 Data truncated for column 'd' at row 1
-INSERT IGNORE INTO t1 VALUES ('1e-','1e-','1e-','1e-','1e-','1e-','1e-');
-Warnings:
-Warning 1265 Data truncated for column 'f4' at row 1
-Warning 1265 Data truncated for column 'f8' at row 1
-Warning 1265 Data truncated for column 'i1' at row 1
-Warning 1265 Data truncated for column 'i2' at row 1
-Warning 1265 Data truncated for column 'i4' at row 1
-Warning 1265 Data truncated for column 'i8' at row 1
-Warning 1265 Data truncated for column 'd' at row 1
-INSERT IGNORE INTO t1 VALUES ('1E+','1E+','1E+','1E+','1E+','1E+','1E+');
-Warnings:
-Warning 1265 Data truncated for column 'f4' at row 1
-Warning 1265 Data truncated for column 'f8' at row 1
-Warning 1265 Data truncated for column 'i1' at row 1
-Warning 1265 Data truncated for column 'i2' at row 1
-Warning 1265 Data truncated for column 'i4' at row 1
-Warning 1265 Data truncated for column 'i8' at row 1
-Warning 1265 Data truncated for column 'd' at row 1
-INSERT IGNORE INTO t1 VALUES ('1e1000','1e1000','1e1000','1e1000','1e1000','1e1000','1e1000');
-Warnings:
-Warning 1264 Out of range value for column 'f4' at row 1
-Warning 1264 Out of range value for column 'f4' at row 1
-Warning 1264 Out of range value for column 'f8' at row 1
-Warning 1264 Out of range value for column 'i1' at row 1
-Warning 1264 Out of range value for column 'i2' at row 1
-Warning 1264 Out of range value for column 'i4' at row 1
-Warning 1264 Out of range value for column 'i8' at row 1
-Warning 1264 Out of range value for column 'd' at row 1
-DELETE FROM t1;
-INSERT INTO t1 VALUES (0,0,0,0,0,0,0);
-INSERT INTO t1 VALUES (0,0,0,0,0,0,0);
-INSERT INTO t1 VALUES (1,1,1,1,1,1,1);
-INSERT INTO t1 VALUES (1,1,1,1,1,1,1);
-INSERT INTO t1 VALUES (2,2,2,2,2,2,2);
-INSERT INTO t1 VALUES (2,2,2,2,2,2,2);
-INSERT INTO t1 VALUES (3,3,3,3,3,3,3);
-INSERT INTO t1 VALUES (3,3,3,3,3,3,3);
-INSERT INTO t1 VALUES (4,4,4,4,4,4,4);
-INSERT INTO t1 VALUES (4,4,4,4,4,4,4);
-INSERT INTO t1 VALUES (5,5,5,5,5,5,5);
-INSERT INTO t1 VALUES (5,5,5,5,5,5,5);
-SELECT COUNT(*) FROM t1 WHERE f4='1 ';
-COUNT(*)
-2
-Warnings:
-Note 1292 Truncated incorrect DOUBLE value: '1 '
-SELECT COUNT(*) FROM t1 WHERE f8='1 ';
-COUNT(*)
-2
-Warnings:
-Note 1292 Truncated incorrect DOUBLE value: '1 '
-SELECT COUNT(*) FROM t1 WHERE i1='1 ';
-COUNT(*)
-2
-Warnings:
-Note 1292 Truncated incorrect DOUBLE value: '1 '
-SELECT COUNT(*) FROM t1 WHERE i2='1 ';
-COUNT(*)
-2
-Warnings:
-Note 1292 Truncated incorrect DOUBLE value: '1 '
-SELECT COUNT(*) FROM t1 WHERE i4='1 ';
-COUNT(*)
-2
-Warnings:
-Note 1292 Truncated incorrect DOUBLE value: '1 '
-SELECT COUNT(*) FROM t1 WHERE i8='1 ';
-COUNT(*)
-2
-Warnings:
-Note 1292 Truncated incorrect DOUBLE value: '1 '
-SELECT COUNT(*) FROM t1 WHERE d='1 ';
-COUNT(*)
-2
-Warnings:
-Note 1292 Truncated incorrect DECIMAL value: '1 '
-SELECT COUNT(*) FROM t1 WHERE f4='';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT COUNT(*) FROM t1 WHERE f8='';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT COUNT(*) FROM t1 WHERE i1='';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT COUNT(*) FROM t1 WHERE i2='';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT COUNT(*) FROM t1 WHERE i4='';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT COUNT(*) FROM t1 WHERE i8='';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT COUNT(*) FROM t1 WHERE d='';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: ''
-SELECT COUNT(*) FROM t1 WHERE f4='x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-SELECT COUNT(*) FROM t1 WHERE f8='x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-SELECT COUNT(*) FROM t1 WHERE i1='x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-SELECT COUNT(*) FROM t1 WHERE i2='x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-SELECT COUNT(*) FROM t1 WHERE i4='x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-SELECT COUNT(*) FROM t1 WHERE i8='x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-SELECT COUNT(*) FROM t1 WHERE d='x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: 'x'
-SELECT COUNT(*) FROM t1 WHERE f4=' x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ' x'
-SELECT COUNT(*) FROM t1 WHERE f8=' x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ' x'
-SELECT COUNT(*) FROM t1 WHERE i1=' x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ' x'
-SELECT COUNT(*) FROM t1 WHERE i2=' x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ' x'
-SELECT COUNT(*) FROM t1 WHERE i4=' x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ' x'
-SELECT COUNT(*) FROM t1 WHERE i8=' x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ' x'
-SELECT COUNT(*) FROM t1 WHERE d=' x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: ' x'
-SELECT COUNT(*) FROM t1 WHERE f4='.';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '.'
-SELECT COUNT(*) FROM t1 WHERE f8='.';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '.'
-SELECT COUNT(*) FROM t1 WHERE i1='.';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '.'
-SELECT COUNT(*) FROM t1 WHERE i2='.';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '.'
-SELECT COUNT(*) FROM t1 WHERE i4='.';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '.'
-SELECT COUNT(*) FROM t1 WHERE i8='.';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '.'
-SELECT COUNT(*) FROM t1 WHERE d='.';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '.'
-SELECT COUNT(*) FROM t1 WHERE f4='-';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '-'
-SELECT COUNT(*) FROM t1 WHERE f8='-';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '-'
-SELECT COUNT(*) FROM t1 WHERE i1='-';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '-'
-SELECT COUNT(*) FROM t1 WHERE i2='-';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '-'
-SELECT COUNT(*) FROM t1 WHERE i4='-';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '-'
-SELECT COUNT(*) FROM t1 WHERE i8='-';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '-'
-SELECT COUNT(*) FROM t1 WHERE d='-';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '-'
-SELECT COUNT(*) FROM t1 WHERE f4='+';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '+'
-SELECT COUNT(*) FROM t1 WHERE f8='+';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '+'
-SELECT COUNT(*) FROM t1 WHERE i1='+';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '+'
-SELECT COUNT(*) FROM t1 WHERE i2='+';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '+'
-SELECT COUNT(*) FROM t1 WHERE i4='+';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '+'
-SELECT COUNT(*) FROM t1 WHERE i8='+';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '+'
-SELECT COUNT(*) FROM t1 WHERE d='+';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '+'
-SELECT COUNT(*) FROM t1 WHERE f4='1x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1x'
-SELECT COUNT(*) FROM t1 WHERE f8='1x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1x'
-SELECT COUNT(*) FROM t1 WHERE i1='1x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1x'
-SELECT COUNT(*) FROM t1 WHERE i2='1x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1x'
-SELECT COUNT(*) FROM t1 WHERE i4='1x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1x'
-SELECT COUNT(*) FROM t1 WHERE i8='1x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1x'
-SELECT COUNT(*) FROM t1 WHERE d='1x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '1x'
-SELECT COUNT(*) FROM t1 WHERE f4='1e';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e'
-SELECT COUNT(*) FROM t1 WHERE f8='1e';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e'
-SELECT COUNT(*) FROM t1 WHERE i1='1e';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e'
-SELECT COUNT(*) FROM t1 WHERE i2='1e';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e'
-SELECT COUNT(*) FROM t1 WHERE i4='1e';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e'
-SELECT COUNT(*) FROM t1 WHERE i8='1e';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e'
-SELECT COUNT(*) FROM t1 WHERE d='1e';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '1e'
-SELECT COUNT(*) FROM t1 WHERE f4='1e+';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e+'
-SELECT COUNT(*) FROM t1 WHERE f8='1e+';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e+'
-SELECT COUNT(*) FROM t1 WHERE i1='1e+';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e+'
-SELECT COUNT(*) FROM t1 WHERE i2='1e+';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e+'
-SELECT COUNT(*) FROM t1 WHERE i4='1e+';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e+'
-SELECT COUNT(*) FROM t1 WHERE i8='1e+';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e+'
-SELECT COUNT(*) FROM t1 WHERE d='1e+';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '1e+'
-SELECT COUNT(*) FROM t1 WHERE f4='1E-';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1E-'
-SELECT COUNT(*) FROM t1 WHERE f8='1E-';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1E-'
-SELECT COUNT(*) FROM t1 WHERE i1='1E-';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1E-'
-SELECT COUNT(*) FROM t1 WHERE i2='1E-';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1E-'
-SELECT COUNT(*) FROM t1 WHERE i4='1E-';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1E-'
-SELECT COUNT(*) FROM t1 WHERE i8='1E-';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1E-'
-SELECT COUNT(*) FROM t1 WHERE d='1E-';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '1E-'
-SELECT COUNT(*) FROM t1 WHERE f4='1Ex';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1Ex'
-SELECT COUNT(*) FROM t1 WHERE f8='1Ex';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1Ex'
-SELECT COUNT(*) FROM t1 WHERE i1='1Ex';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1Ex'
-SELECT COUNT(*) FROM t1 WHERE i2='1Ex';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1Ex'
-SELECT COUNT(*) FROM t1 WHERE i4='1Ex';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1Ex'
-SELECT COUNT(*) FROM t1 WHERE i8='1Ex';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1Ex'
-SELECT COUNT(*) FROM t1 WHERE d='1Ex';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '1Ex'
-SELECT COUNT(*) FROM t1 WHERE f4='1e+x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e+x'
-SELECT COUNT(*) FROM t1 WHERE f8='1e+x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e+x'
-SELECT COUNT(*) FROM t1 WHERE i1='1e+x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e+x'
-SELECT COUNT(*) FROM t1 WHERE i2='1e+x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e+x'
-SELECT COUNT(*) FROM t1 WHERE i4='1e+x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e+x'
-SELECT COUNT(*) FROM t1 WHERE i8='1e+x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e+x'
-SELECT COUNT(*) FROM t1 WHERE d='1e+x';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '1e+x'
-SELECT COUNT(*) FROM t1 WHERE f4='1e1000';
-COUNT(*)
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e1000'
-SELECT COUNT(*) FROM t1 WHERE f8='1e1000';
-COUNT(*)
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e1000'
-SELECT COUNT(*) FROM t1 WHERE i1='1e1000';
-COUNT(*)
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e1000'
-SELECT COUNT(*) FROM t1 WHERE i2='1e1000';
-COUNT(*)
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e1000'
-SELECT COUNT(*) FROM t1 WHERE i4='1e1000';
-COUNT(*)
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e1000'
-SELECT COUNT(*) FROM t1 WHERE i8='1e1000';
-COUNT(*)
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1e1000'
-SELECT COUNT(*) FROM t1 WHERE d='1e1000';
-COUNT(*)
-0
-Warnings:
-Warning 1916 Got overflow when converting '' to DECIMAL. Value truncated
-Warning 1292 Truncated incorrect DECIMAL value: '1e1000'
-ALTER TABLE t1
-ADD KEY f4(f4),
-ADD KEY f8(f8),
-ADD KEY i1(i1),
-ADD KEY i2(i2),
-ADD KEY i4(i4),
-ADD KEY i8(i8),
-ADD KEY d(d);
-SELECT COUNT(*) FROM t1 FORCE INDEX(f4) WHERE f4='1 ';
-COUNT(*)
-2
-Warnings:
-Note 1292 Truncated incorrect DOUBLE value: '1 '
-SELECT COUNT(*) FROM t1 FORCE INDEX(f8) WHERE f8='1 ';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 FORCE INDEX(i1) WHERE i1='1 ';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 FORCE INDEX(i2) WHERE i2='1 ';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 FORCE INDEX(i4) WHERE i4='1 ';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 FORCE INDEX(i8) WHERE i8='1 ';
-COUNT(*)
-2
-Warnings:
-Note 1292 Truncated incorrect DOUBLE value: '1 '
-SELECT COUNT(*) FROM t1 FORCE INDEX(d) WHERE d='1 ';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 FORCE INDEX(f4) WHERE f4='';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT COUNT(*) FROM t1 FORCE INDEX(f8) WHERE f8='';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 FORCE INDEX(i1) WHERE i1='';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 FORCE INDEX(i2) WHERE i2='';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 FORCE INDEX(i4) WHERE i4='';
-COUNT(*)
-2
-SELECT COUNT(*) FROM t1 FORCE INDEX(i8) WHERE i8='';
-COUNT(*)
-2
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT COUNT(*) FROM t1 FORCE INDEX(d) WHERE d='';
-COUNT(*)
-2
-DROP TABLE t1;
-SELECT
-CAST('1 ' AS SIGNED),
-CAST('1 ' AS UNSIGNED),
-CAST('1 ' AS DECIMAL),
-CAST('1 ' AS DOUBLE);
-CAST('1 ' AS SIGNED) CAST('1 ' AS UNSIGNED) CAST('1 ' AS DECIMAL) CAST('1 ' AS DOUBLE)
-1 1 1 1
-Warnings:
-Note 1292 Truncated incorrect INTEGER value: '1 '
-Note 1292 Truncated incorrect INTEGER value: '1 '
-Note 1292 Truncated incorrect DECIMAL value: '1 '
-Note 1292 Truncated incorrect DOUBLE value: '1 '
-SELECT
-CAST('' AS SIGNED),
-CAST('' AS UNSIGNED),
-CAST('' AS DECIMAL),
-CAST('' AS DOUBLE);
-CAST('' AS SIGNED) CAST('' AS UNSIGNED) CAST('' AS DECIMAL) CAST('' AS DOUBLE)
-0 0 0 0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: ''
-Warning 1292 Truncated incorrect INTEGER value: ''
-Warning 1292 Truncated incorrect DECIMAL value: ''
-Warning 1292 Truncated incorrect DOUBLE value: ''
-SELECT
-CAST('x' AS SIGNED),
-CAST('x' AS UNSIGNED),
-CAST('x' AS DECIMAL),
-CAST('x' AS DOUBLE);
-CAST('x' AS SIGNED) CAST('x' AS UNSIGNED) CAST('x' AS DECIMAL) CAST('x' AS DOUBLE)
-0 0 0 0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'x'
-Warning 1292 Truncated incorrect INTEGER value: 'x'
-Warning 1292 Truncated incorrect DECIMAL value: 'x'
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-SELECT
-CAST(' x' AS SIGNED),
-CAST(' x' AS UNSIGNED),
-CAST(' x' AS DECIMAL),
-CAST(' x' AS DOUBLE);
-CAST(' x' AS SIGNED) CAST(' x' AS UNSIGNED) CAST(' x' AS DECIMAL) CAST(' x' AS DOUBLE)
-0 0 0 0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: ' x'
-Warning 1292 Truncated incorrect INTEGER value: ' x'
-Warning 1292 Truncated incorrect DECIMAL value: ' x'
-Warning 1292 Truncated incorrect DOUBLE value: ' x'
-SELECT
-CAST('.' AS SIGNED),
-CAST('.' AS UNSIGNED),
-CAST('.' AS DECIMAL),
-CAST('.' AS DOUBLE);
-CAST('.' AS SIGNED) CAST('.' AS UNSIGNED) CAST('.' AS DECIMAL) CAST('.' AS DOUBLE)
-0 0 0 0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '.'
-Warning 1292 Truncated incorrect INTEGER value: '.'
-Warning 1292 Truncated incorrect DECIMAL value: '.'
-Warning 1292 Truncated incorrect DOUBLE value: '.'
-SELECT
-CAST('-' AS SIGNED),
-CAST('-' AS UNSIGNED),
-CAST('-' AS DECIMAL),
-CAST('-' AS DOUBLE);
-CAST('-' AS SIGNED) CAST('-' AS UNSIGNED) CAST('-' AS DECIMAL) CAST('-' AS DOUBLE)
-0 0 0 0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '-'
-Warning 1292 Truncated incorrect INTEGER value: '-'
-Warning 1292 Truncated incorrect DECIMAL value: '-'
-Warning 1292 Truncated incorrect DOUBLE value: '-'
-SELECT
-CAST('+' AS SIGNED),
-CAST('+' AS UNSIGNED),
-CAST('+' AS DECIMAL),
-CAST('+' AS DOUBLE);
-CAST('+' AS SIGNED) CAST('+' AS UNSIGNED) CAST('+' AS DECIMAL) CAST('+' AS DOUBLE)
-0 0 0 0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '+'
-Warning 1292 Truncated incorrect INTEGER value: '+'
-Warning 1292 Truncated incorrect DECIMAL value: '+'
-Warning 1292 Truncated incorrect DOUBLE value: '+'
-SELECT
-CAST('1x' AS SIGNED),
-CAST('1x' AS UNSIGNED),
-CAST('1x' AS DECIMAL),
-CAST('1x' AS DOUBLE);
-CAST('1x' AS SIGNED) CAST('1x' AS UNSIGNED) CAST('1x' AS DECIMAL) CAST('1x' AS DOUBLE)
-1 1 1 1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1x'
-Warning 1292 Truncated incorrect INTEGER value: '1x'
-Warning 1292 Truncated incorrect DECIMAL value: '1x'
-Warning 1292 Truncated incorrect DOUBLE value: '1x'
-SELECT
-CAST('1e' AS SIGNED),
-CAST('1e' AS UNSIGNED),
-CAST('1e' AS DECIMAL),
-CAST('1e' AS DOUBLE);
-CAST('1e' AS SIGNED) CAST('1e' AS UNSIGNED) CAST('1e' AS DECIMAL) CAST('1e' AS DOUBLE)
-1 1 1 1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1e'
-Warning 1292 Truncated incorrect INTEGER value: '1e'
-Warning 1292 Truncated incorrect DECIMAL value: '1e'
-Warning 1292 Truncated incorrect DOUBLE value: '1e'
-SELECT
-CAST('1e-' AS SIGNED),
-CAST('1e-' AS UNSIGNED),
-CAST('1e-' AS DECIMAL),
-CAST('1e-' AS DOUBLE);
-CAST('1e-' AS SIGNED) CAST('1e-' AS UNSIGNED) CAST('1e-' AS DECIMAL) CAST('1e-' AS DOUBLE)
-1 1 1 1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1e-'
-Warning 1292 Truncated incorrect INTEGER value: '1e-'
-Warning 1292 Truncated incorrect DECIMAL value: '1e-'
-Warning 1292 Truncated incorrect DOUBLE value: '1e-'
-SELECT
-CAST('1E+' AS SIGNED),
-CAST('1E+' AS UNSIGNED),
-CAST('1E+' AS DECIMAL),
-CAST('1E+' AS DOUBLE);
-CAST('1E+' AS SIGNED) CAST('1E+' AS UNSIGNED) CAST('1E+' AS DECIMAL) CAST('1E+' AS DOUBLE)
-1 1 1 1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1E+'
-Warning 1292 Truncated incorrect INTEGER value: '1E+'
-Warning 1292 Truncated incorrect DECIMAL value: '1E+'
-Warning 1292 Truncated incorrect DOUBLE value: '1E+'
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-9653 Assertion `length || !scale' failed in uint my_decimal_length_to_precision(uint, uint, bool)
-#
-SELECT NULL+1 AS c0,
-COALESCE(NULL)+1 AS c2,
-COALESCE(COALESCE(NULL))+1 AS c3,
-''+1 AS c4,
-COALESCE('')+1 AS c5,
-COALESCE(COALESCE(''))+1 AS c6;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def c0 5 17 0 Y 32896 0 63
-def c2 5 17 0 Y 32896 0 63
-def c3 5 17 0 Y 32896 0 63
-def c4 5 23 1 N 32897 31 63
-def c5 5 17 1 N 32897 0 63
-def c6 5 17 1 N 32897 0 63
-c0 c2 c3 c4 c5 c6
-NULL NULL NULL 1 1 1
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-Warning 1292 Truncated incorrect DOUBLE value: ''
-Warning 1292 Truncated incorrect DOUBLE value: ''
-#
-# Start of 10.2 tests
-#
-CREATE TABLE t1 (a INT SIGNED ZEROFILL);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ZEROFILL)' at line 1
-CREATE TABLE t1 (a INT SIGNED UNSIGNED);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNSIGNED)' at line 1
-CREATE TABLE t1 (a INT ZEROFILL UNSIGNED ZEROFILL);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ZEROFILL)' at line 1
-CREATE OR REPLACE TABLE t1 (a INT SIGNED);
-CREATE OR REPLACE TABLE t1 (a INT UNSIGNED);
-CREATE OR REPLACE TABLE t1 (a INT ZEROFILL);
-CREATE OR REPLACE TABLE t1 (a INT UNSIGNED ZEROFILL);
-CREATE OR REPLACE TABLE t1 (a INT ZEROFILL UNSIGNED);
-DROP TABLE t1;
diff --git a/mysql-test/r/type_num_innodb.result b/mysql-test/r/type_num_innodb.result
deleted file mode 100644
index 581a387b2e8..00000000000
--- a/mysql-test/r/type_num_innodb.result
+++ /dev/null
@@ -1,107 +0,0 @@
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9391 InnoDB does not produce warnings when doing WHERE int_column=varchar_column
-#
-CREATE TABLE t1 (
-a DOUBLE, b VARCHAR(1), c INT,
-KEY(a), KEY(b)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-(1,'v',9),(2,'v',8),(3,'c',7),(4,'m',6),(5,'x',5),
-(6,'i',4),(7,'e',3),(8,'p',2),(9,'s',1),(10,'j',9),
-(11,'z',8),(12,'c',7),(13,'a',6),(14,'q',5),(15,'y',4),
-(16,'n',3),(17,'r',2),(18,'v',1),(19,'p',0);
-CREATE TABLE t2 (
-pk INT, d VARCHAR(1), e INT,
-PRIMARY KEY(pk), KEY(d,e)
-) ENGINE=InnoDB;
-INSERT INTO t2 VALUES
-(1,'x',1),(2,'d',2),(3,'r',3),(4,'f',4),(5,'y',5),
-(6,'u',6),(7,'m',7),(8,'k',8),(9,'o',9),(10,'w',1),
-(11,'m',2),(12,'q',3),(13,'m',4),(14,'d',5),
-(15,'g',6),(16,'x',7),(17,'f',8);
-SELECT * FROM t1,t2 WHERE a=d;
-a b c pk d e
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'd'
-Warning 1292 Truncated incorrect DOUBLE value: 'd'
-Warning 1292 Truncated incorrect DOUBLE value: 'f'
-Warning 1292 Truncated incorrect DOUBLE value: 'f'
-Warning 1292 Truncated incorrect DOUBLE value: 'g'
-Warning 1292 Truncated incorrect DOUBLE value: 'k'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'o'
-Warning 1292 Truncated incorrect DOUBLE value: 'q'
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-Warning 1292 Truncated incorrect DOUBLE value: 'u'
-Warning 1292 Truncated incorrect DOUBLE value: 'w'
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-Warning 1292 Truncated incorrect DOUBLE value: 'y'
-ALTER TABLE t1 MODIFY a DECIMAL(10,0);
-SELECT * FROM t1,t2 WHERE a=d;
-a b c pk d e
-Warnings:
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'd'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'd'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'f'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'f'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'g'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'k'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'm'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'm'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'm'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'o'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'q'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'r'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'u'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'w'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'x'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'x'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 'y'
-ALTER TABLE t1 MODIFY a DOUBLE;
-SELECT * FROM t1,t2 WHERE a=d;
-a b c pk d e
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'd'
-Warning 1292 Truncated incorrect DOUBLE value: 'd'
-Warning 1292 Truncated incorrect DOUBLE value: 'f'
-Warning 1292 Truncated incorrect DOUBLE value: 'f'
-Warning 1292 Truncated incorrect DOUBLE value: 'g'
-Warning 1292 Truncated incorrect DOUBLE value: 'k'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'm'
-Warning 1292 Truncated incorrect DOUBLE value: 'o'
-Warning 1292 Truncated incorrect DOUBLE value: 'q'
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-Warning 1292 Truncated incorrect DOUBLE value: 'u'
-Warning 1292 Truncated incorrect DOUBLE value: 'w'
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-Warning 1292 Truncated incorrect DOUBLE value: 'x'
-Warning 1292 Truncated incorrect DOUBLE value: 'y'
-DROP TABLE t1,t2;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/type_ranges.result b/mysql-test/r/type_ranges.result
deleted file mode 100644
index 784a394d8b5..00000000000
--- a/mysql-test/r/type_ranges.result
+++ /dev/null
@@ -1,346 +0,0 @@
-drop table if exists t1,t2,t3;
-SET SQL_WARNINGS=1;
-CREATE TABLE t1 (
-auto int(5) unsigned NOT NULL auto_increment,
-string char(10) default "hello",
-tiny tinyint(4) DEFAULT '0' NOT NULL ,
-short smallint(6) DEFAULT '1' NOT NULL ,
-medium mediumint(8) DEFAULT '0' NOT NULL,
-long_int int(11) DEFAULT '0' NOT NULL,
-longlong bigint(13) DEFAULT '0' NOT NULL,
-real_float float(13,1) DEFAULT 0.0 NOT NULL,
-real_double double(16,4),
-utiny tinyint(3) unsigned DEFAULT '0' NOT NULL,
-ushort smallint(5) unsigned zerofill DEFAULT '00000' NOT NULL,
-umedium mediumint(8) unsigned DEFAULT '0' NOT NULL,
-ulong int(11) unsigned DEFAULT '0' NOT NULL,
-ulonglong bigint(13) unsigned DEFAULT '0' NOT NULL,
-time_stamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-date_field date,
-time_field time,
-date_time datetime,
-blob_col blob,
-tinyblob_col tinyblob,
-mediumblob_col mediumblob not null default '',
-longblob_col longblob not null default '',
-options enum('one','two','tree') not null ,
-flags set('one','two','tree') not null default '',
-PRIMARY KEY (auto),
-KEY (utiny),
-KEY (tiny),
-KEY (short),
-KEY any_name (medium),
-KEY (longlong),
-KEY (real_float),
-KEY (ushort),
-KEY (umedium),
-KEY (ulong),
-KEY (ulonglong,ulong),
-KEY (options,flags)
-);
-show full fields from t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-auto int(5) unsigned NULL NO PRI NULL auto_increment #
-string char(10) latin1_swedish_ci YES hello #
-tiny tinyint(4) NULL NO MUL 0 #
-short smallint(6) NULL NO MUL 1 #
-medium mediumint(8) NULL NO MUL 0 #
-long_int int(11) NULL NO 0 #
-longlong bigint(13) NULL NO MUL 0 #
-real_float float(13,1) NULL NO MUL 0.0 #
-real_double double(16,4) NULL YES NULL #
-utiny tinyint(3) unsigned NULL NO MUL 0 #
-ushort smallint(5) unsigned zerofill NULL NO MUL 00000 #
-umedium mediumint(8) unsigned NULL NO MUL 0 #
-ulong int(11) unsigned NULL NO MUL 0 #
-ulonglong bigint(13) unsigned NULL NO MUL 0 #
-time_stamp timestamp NULL NO current_timestamp() on update current_timestamp() #
-date_field date NULL YES NULL #
-time_field time NULL YES NULL #
-date_time datetime NULL YES NULL #
-blob_col blob NULL YES NULL #
-tinyblob_col tinyblob NULL YES NULL #
-mediumblob_col mediumblob NULL NO '' #
-longblob_col longblob NULL NO '' #
-options enum('one','two','tree') latin1_swedish_ci NO MUL NULL #
-flags set('one','two','tree') latin1_swedish_ci NO #
-show keys from t1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-t1 0 PRIMARY 1 auto A 0 NULL NULL BTREE
-t1 1 utiny 1 utiny A NULL NULL NULL BTREE
-t1 1 tiny 1 tiny A NULL NULL NULL BTREE
-t1 1 short 1 short A NULL NULL NULL BTREE
-t1 1 any_name 1 medium A NULL NULL NULL BTREE
-t1 1 longlong 1 longlong A NULL NULL NULL BTREE
-t1 1 real_float 1 real_float A NULL NULL NULL BTREE
-t1 1 ushort 1 ushort A NULL NULL NULL BTREE
-t1 1 umedium 1 umedium A NULL NULL NULL BTREE
-t1 1 ulong 1 ulong A NULL NULL NULL BTREE
-t1 1 ulonglong 1 ulonglong A NULL NULL NULL BTREE
-t1 1 ulonglong 2 ulong A NULL NULL NULL BTREE
-t1 1 options 1 options A NULL NULL NULL BTREE
-t1 1 options 2 flags A NULL NULL NULL BTREE
-CREATE UNIQUE INDEX test on t1 ( auto ) ;
-CREATE INDEX test2 on t1 ( ulonglong,ulong) ;
-Warnings:
-Note 1831 Duplicate index `test2`. This is deprecated and will be disallowed in a future release
-CREATE INDEX test3 on t1 ( medium ) ;
-Warnings:
-Note 1831 Duplicate index `test3`. This is deprecated and will be disallowed in a future release
-DROP INDEX test ON t1;
-insert into t1 values (10, 1,1,1,1,1,1,1,1,1,1,1,1,1,NULL,0,0,0,1,1,1,1,'one','one');
-insert into t1 values (NULL,2,2,2,2,2,2,2,2,2,2,2,2,2,NULL,NULL,NULL,NULL,NULL,NULL,2,2,'two','two,one');
-insert ignore into t1 values (0,1/3,3,3,3,3,3,3,3,3,3,3,3,3,NULL,'19970303','10:10:10','19970303101010','','','','3',3,3);
-Warnings:
-Warning 1265 Data truncated for column 'string' at row 1
-insert ignore into t1 values (0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,NULL,19970807,080706,19970403090807,-1,-1,-1,'-1',-1,-1);
-Warnings:
-Warning 1264 Out of range value for column 'utiny' at row 1
-Warning 1264 Out of range value for column 'ushort' at row 1
-Warning 1264 Out of range value for column 'umedium' at row 1
-Warning 1264 Out of range value for column 'ulong' at row 1
-Warning 1264 Out of range value for column 'ulonglong' at row 1
-Warning 1265 Data truncated for column 'options' at row 1
-Warning 1265 Data truncated for column 'flags' at row 1
-insert ignore into t1 values (0,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,NULL,0,0,0,-4294967295,-4294967295,-4294967295,'-4294967295',0,"one,two,tree");
-Warnings:
-Warning 1265 Data truncated for column 'string' at row 1
-Warning 1264 Out of range value for column 'tiny' at row 1
-Warning 1264 Out of range value for column 'short' at row 1
-Warning 1264 Out of range value for column 'medium' at row 1
-Warning 1264 Out of range value for column 'long_int' at row 1
-Warning 1264 Out of range value for column 'utiny' at row 1
-Warning 1264 Out of range value for column 'ushort' at row 1
-Warning 1264 Out of range value for column 'umedium' at row 1
-Warning 1264 Out of range value for column 'ulong' at row 1
-Warning 1264 Out of range value for column 'ulonglong' at row 1
-Warning 1265 Data truncated for column 'options' at row 1
-insert ignore into t1 values (0,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,NULL,0,0,0,4294967295,4294967295,4294967295,'4294967295',0,0);
-Warnings:
-Warning 1264 Out of range value for column 'tiny' at row 1
-Warning 1264 Out of range value for column 'short' at row 1
-Warning 1264 Out of range value for column 'medium' at row 1
-Warning 1264 Out of range value for column 'long_int' at row 1
-Warning 1264 Out of range value for column 'utiny' at row 1
-Warning 1264 Out of range value for column 'ushort' at row 1
-Warning 1264 Out of range value for column 'umedium' at row 1
-Warning 1265 Data truncated for column 'options' at row 1
-insert into t1 (tiny) values (1);
-select auto,string,tiny,short,medium,long_int,longlong,real_float,real_double,utiny,ushort,umedium,ulong,ulonglong,mod(floor(time_stamp/1000000),1000000)-mod(curdate(),1000000),date_field,time_field,date_time,blob_col,tinyblob_col,mediumblob_col,longblob_col from t1;
-auto string tiny short medium long_int longlong real_float real_double utiny ushort umedium ulong ulonglong mod(floor(time_stamp/1000000),1000000)-mod(curdate(),1000000) date_field time_field date_time blob_col tinyblob_col mediumblob_col longblob_col
-10 1 1 1 1 1 1 1.0 1.0000 1 00001 1 1 1 0 0000-00-00 00:00:00 0000-00-00 00:00:00 1 1 1 1
-11 2 2 2 2 2 2 2.0 2.0000 2 00002 2 2 2 0 NULL NULL NULL NULL NULL 2 2
-12 0.33333333 3 3 3 3 3 3.0 3.0000 3 00003 3 3 3 0 1997-03-03 10:10:10 1997-03-03 10:10:10 3
-13 -1 -1 -1 -1 -1 -1 -1.0 -1.0000 0 00000 0 0 0 0 1997-08-07 08:07:06 1997-04-03 09:08:07 -1 -1 -1 -1
-14 -429496729 -128 -32768 -8388608 -2147483648 -4294967295 -4294967296.0 -4294967295.0000 0 00000 0 0 0 0 0000-00-00 00:00:00 0000-00-00 00:00:00 -4294967295 -4294967295 -4294967295 -4294967295
-15 4294967295 127 32767 8388607 2147483647 4294967295 4294967296.0 4294967295.0000 255 65535 16777215 4294967295 4294967295 0 0000-00-00 00:00:00 0000-00-00 00:00:00 4294967295 4294967295 4294967295 4294967295
-16 hello 1 1 0 0 0 0.0 NULL 0 00000 0 0 0 0 NULL NULL NULL NULL NULL
-ALTER TABLE t1
-add new_field char(10) default "new" not null,
-change blob_col new_blob_col varchar(20),
-change date_field date_field char(10),
-alter column string set default "newdefault",
-alter short drop default,
-DROP INDEX utiny,
-DROP INDEX ushort,
-DROP PRIMARY KEY,
-DROP FOREIGN KEY any_name,
-ADD INDEX (auto);
-LOCK TABLES t1 WRITE;
-ALTER TABLE t1
-RENAME as t2,
-DROP longblob_col;
-UNLOCK TABLES;
-ALTER TABLE t2 rename as t3;
-LOCK TABLES t3 WRITE ;
-ALTER TABLE t3 rename as t1;
-UNLOCK TABLES;
-select auto,new_field,new_blob_col,date_field from t1 ;
-auto new_field new_blob_col date_field
-10 new 1 0000-00-00
-11 new NULL NULL
-12 new 1997-03-03
-13 new -1 1997-08-07
-14 new -4294967295 0000-00-00
-15 new 4294967295 0000-00-00
-16 new NULL NULL
-CREATE TABLE t2 (
-auto int(5) unsigned NOT NULL auto_increment,
-string char(20),
-mediumblob_col mediumblob not null,
-new_field char(2),
-PRIMARY KEY (auto)
-);
-INSERT IGNORE INTO t2 (string,mediumblob_col,new_field) SELECT string,mediumblob_col,new_field from t1 where auto > 10;
-Warnings:
-Warning 1265 Data truncated for column 'new_field' at row 2
-Warning 1265 Data truncated for column 'new_field' at row 3
-Warning 1265 Data truncated for column 'new_field' at row 4
-Warning 1265 Data truncated for column 'new_field' at row 5
-Warning 1265 Data truncated for column 'new_field' at row 6
-Warning 1265 Data truncated for column 'new_field' at row 7
-select * from t2;
-auto string mediumblob_col new_field
-1 2 2 ne
-2 0.33333333 ne
-3 -1 -1 ne
-4 -429496729 -4294967295 ne
-5 4294967295 4294967295 ne
-6 hello ne
-select distinct flags from t1;
-flags
-
-one,two,tree
-one
-one,two
-select flags from t1 where find_in_set("two",flags)>0;
-flags
-one,two,tree
-one,two,tree
-one,two
-one,two
-select flags from t1 where find_in_set("unknown",flags)>0;
-flags
-select options,flags from t1 where options="ONE" and flags="ONE";
-options flags
-one one
-select options,flags from t1 where options="one" and flags="one";
-options flags
-one one
-drop table t2;
-create table t2 select * from t1;
-update t2 set string="changed" where auto=16;
-show full columns from t1;
-Field Type Collation Null Key Default Extra Privileges Comment
-auto int(5) unsigned NULL NO MUL NULL auto_increment #
-string char(10) latin1_swedish_ci YES newdefault #
-tiny tinyint(4) NULL NO MUL 0 #
-short smallint(6) NULL NO MUL NULL #
-medium mediumint(8) NULL NO MUL 0 #
-long_int int(11) NULL NO 0 #
-longlong bigint(13) NULL NO MUL 0 #
-real_float float(13,1) NULL NO MUL 0.0 #
-real_double double(16,4) NULL YES NULL #
-utiny tinyint(3) unsigned NULL NO 0 #
-ushort smallint(5) unsigned zerofill NULL NO 00000 #
-umedium mediumint(8) unsigned NULL NO MUL 0 #
-ulong int(11) unsigned NULL NO MUL 0 #
-ulonglong bigint(13) unsigned NULL NO MUL 0 #
-time_stamp timestamp NULL NO current_timestamp() on update current_timestamp() #
-date_field char(10) latin1_swedish_ci YES NULL #
-time_field time NULL YES NULL #
-date_time datetime NULL YES NULL #
-new_blob_col varchar(20) latin1_swedish_ci YES NULL #
-tinyblob_col tinyblob NULL YES NULL #
-mediumblob_col mediumblob NULL NO '' #
-options enum('one','two','tree') latin1_swedish_ci NO MUL NULL #
-flags set('one','two','tree') latin1_swedish_ci NO #
-new_field char(10) latin1_swedish_ci NO new #
-show full columns from t2;
-Field Type Collation Null Key Default Extra Privileges Comment
-auto int(5) unsigned NULL NO 0 #
-string char(10) latin1_swedish_ci YES newdefault #
-tiny tinyint(4) NULL NO 0 #
-short smallint(6) NULL NO NULL #
-medium mediumint(8) NULL NO 0 #
-long_int int(11) NULL NO 0 #
-longlong bigint(13) NULL NO 0 #
-real_float float(13,1) NULL NO 0.0 #
-real_double double(16,4) NULL YES NULL #
-utiny tinyint(3) unsigned NULL NO 0 #
-ushort smallint(5) unsigned zerofill NULL NO 00000 #
-umedium mediumint(8) unsigned NULL NO 0 #
-ulong int(11) unsigned NULL NO 0 #
-ulonglong bigint(13) unsigned NULL NO 0 #
-time_stamp timestamp NULL NO current_timestamp() on update current_timestamp() #
-date_field char(10) latin1_swedish_ci YES NULL #
-time_field time NULL YES NULL #
-date_time datetime NULL YES NULL #
-new_blob_col varchar(20) latin1_swedish_ci YES NULL #
-tinyblob_col tinyblob NULL YES NULL #
-mediumblob_col mediumblob NULL NO '' #
-options enum('one','two','tree') latin1_swedish_ci NO NULL #
-flags set('one','two','tree') latin1_swedish_ci NO #
-new_field char(10) latin1_swedish_ci NO new #
-select t1.auto,t2.auto from t1,t2 where t1.auto=t2.auto and ((t1.string<>t2.string and (t1.string is not null or t2.string is not null)) or (t1.tiny<>t2.tiny and (t1.tiny is not null or t2.tiny is not null)) or (t1.short<>t2.short and (t1.short is not null or t2.short is not null)) or (t1.medium<>t2.medium and (t1.medium is not null or t2.medium is not null)) or (t1.long_int<>t2.long_int and (t1.long_int is not null or t2.long_int is not null)) or (t1.longlong<>t2.longlong and (t1.longlong is not null or t2.longlong is not null)) or (t1.real_float<>t2.real_float and (t1.real_float is not null or t2.real_float is not null)) or (t1.real_double<>t2.real_double and (t1.real_double is not null or t2.real_double is not null)) or (t1.utiny<>t2.utiny and (t1.utiny is not null or t2.utiny is not null)) or (t1.ushort<>t2.ushort and (t1.ushort is not null or t2.ushort is not null)) or (t1.umedium<>t2.umedium and (t1.umedium is not null or t2.umedium is not null)) or (t1.ulong<>t2.ulong and (t1.ulong is not null or t2.ulong is not null)) or (t1.ulonglong<>t2.ulonglong and (t1.ulonglong is not null or t2.ulonglong is not null)) or (t1.time_stamp<>t2.time_stamp and (t1.time_stamp is not null or t2.time_stamp is not null)) or (t1.date_field<>t2.date_field and (t1.date_field is not null or t2.date_field is not null)) or (t1.time_field<>t2.time_field and (t1.time_field is not null or t2.time_field is not null)) or (t1.date_time<>t2.date_time and (t1.date_time is not null or t2.date_time is not null)) or (t1.new_blob_col<>t2.new_blob_col and (t1.new_blob_col is not null or t2.new_blob_col is not null)) or (t1.tinyblob_col<>t2.tinyblob_col and (t1.tinyblob_col is not null or t2.tinyblob_col is not null)) or (t1.mediumblob_col<>t2.mediumblob_col and (t1.mediumblob_col is not null or t2.mediumblob_col is not null)) or (t1.options<>t2.options and (t1.options is not null or t2.options is not null)) or (t1.flags<>t2.flags and (t1.flags is not null or t2.flags is not null)) or (t1.new_field<>t2.new_field and (t1.new_field is not null or t2.new_field is not null)));
-auto auto
-16 16
-select t1.auto,t2.auto from t1,t2 where t1.auto=t2.auto and not (t1.string<=>t2.string and t1.tiny<=>t2.tiny and t1.short<=>t2.short and t1.medium<=>t2.medium and t1.long_int<=>t2.long_int and t1.longlong<=>t2.longlong and t1.real_float<=>t2.real_float and t1.real_double<=>t2.real_double and t1.utiny<=>t2.utiny and t1.ushort<=>t2.ushort and t1.umedium<=>t2.umedium and t1.ulong<=>t2.ulong and t1.ulonglong<=>t2.ulonglong and t1.time_stamp<=>t2.time_stamp and t1.date_field<=>t2.date_field and t1.time_field<=>t2.time_field and t1.date_time<=>t2.date_time and t1.new_blob_col<=>t2.new_blob_col and t1.tinyblob_col<=>t2.tinyblob_col and t1.mediumblob_col<=>t2.mediumblob_col and t1.options<=>t2.options and t1.flags<=>t2.flags and t1.new_field<=>t2.new_field);
-auto auto
-16 16
-drop table t2;
-create table t2 (primary key (auto)) select auto+1 as auto,1 as t1, 'a' as t2, repeat('a',256) as t3, binary repeat('b',256) as t4, repeat('a',4096) as t5, binary repeat('b',4096) as t6, '' as t7, binary '' as t8 from t1;
-show full columns from t2;
-Field Type Collation Null Key Default Extra Privileges Comment
-auto bigint(11) unsigned NULL NO PRI NULL #
-t1 int(1) NULL NO NULL #
-t2 varchar(1) latin1_swedish_ci NO NULL #
-t3 varchar(256) latin1_swedish_ci YES NULL #
-t4 varbinary(256) NULL YES NULL #
-t5 text latin1_swedish_ci YES NULL #
-t6 blob NULL YES NULL #
-t7 char(0) latin1_swedish_ci NO NULL #
-t8 binary(0) NULL YES NULL #
-select t1,t2,length(t3),length(t4),length(t5),length(t6),t7,t8 from t2;
-t1 t2 length(t3) length(t4) length(t5) length(t6) t7 t8
-1 a 256 256 4096 4096
-1 a 256 256 4096 4096
-1 a 256 256 4096 4096
-1 a 256 256 4096 4096
-1 a 256 256 4096 4096
-1 a 256 256 4096 4096
-1 a 256 256 4096 4096
-drop table t1,t2;
-create table t1 (c int);
-insert into t1 values(1),(2);
-create table t2 select * from t1;
-create table t3 select * from t1, t2;
-ERROR 42S21: Duplicate column name 'c'
-create table t3 select t1.c AS c1, t2.c AS c2,1 as "const" from t1, t2;
-show full columns from t3;
-Field Type Collation Null Key Default Extra Privileges Comment
-c1 int(11) NULL YES NULL #
-c2 int(11) NULL YES NULL #
-const int(1) NULL NO NULL #
-drop table t1,t2,t3;
-create table t1 ( myfield INT NOT NULL, UNIQUE INDEX (myfield), unique (myfield), index(myfield));
-Warnings:
-Note 1831 Duplicate index `myfield_2`. This is deprecated and will be disallowed in a future release
-drop table t1;
-create table t1 ( id integer unsigned not null primary key );
-create table t2 ( id integer unsigned not null primary key );
-insert into t1 values (1), (2);
-insert into t2 values (1);
-select t1.id as id_A, t2.id as id_B from t1 left join t2 using ( id );
-id_A id_B
-1 1
-2 NULL
-select t1.id as id_A, t2.id as id_B from t1 left join t2 on (t1.id = t2.id);
-id_A id_B
-1 1
-2 NULL
-create table t3 (id_A integer unsigned not null, id_B integer unsigned null );
-insert into t3 select t1.id as id_A, t2.id as id_B from t1 left join t2 using ( id );
-select * from t3;
-id_A id_B
-1 1
-2 NULL
-truncate table t3;
-insert into t3 select t1.id as id_A, t2.id as id_B from t1 left join t2 on (t1.id = t2.id);
-select * from t3;
-id_A id_B
-1 1
-2 NULL
-drop table t3;
-create table t3 select t1.id as id_A, t2.id as id_B from t1 left join t2 using ( id );
-select * from t3;
-id_A id_B
-1 1
-2 NULL
-drop table t3;
-create table t3 select t1.id as id_A, t2.id as id_B from t1 left join t2 on (t1.id = t2.id);
-select * from t3;
-id_A id_B
-1 1
-2 NULL
-drop table t1,t2,t3;
diff --git a/mysql-test/r/type_set.result b/mysql-test/r/type_set.result
deleted file mode 100644
index ae72619b5ae..00000000000
--- a/mysql-test/r/type_set.result
+++ /dev/null
@@ -1,360 +0,0 @@
-drop table if exists t1;
-create table t1 (a set (' ','a','b') not null);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` set('','a','b') NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (a set (' ','a','b ') not null default 'b ');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` set('','a','b') NOT NULL DEFAULT 'b'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1 ( user varchar(64) NOT NULL default '', path varchar(255) NOT NULL default '', privilege set('select','RESERVED30','RESERVED29','RESERVED28','RESERVED27','RESERVED26', 'RESERVED25','RESERVED24','data.delete','RESERVED22','RESERVED21', 'RESERVED20','data.insert.none','data.insert.approve', 'data.insert.delete','data.insert.move','data.insert.propose', 'data.insert.reject','RESERVED13','RESERVED12','RESERVED11','RESERVED10', 'RESERVED09','data.update','RESERVED07','RESERVED06','RESERVED05', 'RESERVED04','metadata.delete','metadata.put','RESERVED01','RESERVED00') NOT NULL default '', KEY user (user) ) ENGINE=MyISAM CHARSET=utf8;
-DROP TABLE t1;
-set names latin1;
-create table t1 (s set ('a','A') character set latin1 collate latin1_bin);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `s` set('a','A') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('a'),('a,A'),('A,a'),('A');
-select s from t1 order by s;
-s
-a
-A
-a,A
-a,A
-select s from t1 order by concat(s);
-s
-A
-a
-a,A
-a,A
-drop table t1;
-CREATE TABLE t1 (c set('ae','oe','ue','ss') collate latin1_german2_ci);
-INSERT INTO t1 VALUES ('ä'),('ö'),('ü'),('ß');
-INSERT INTO t1 VALUES ('ae'),('oe'),('ue'),('ss');
-INSERT INTO t1 VALUES ('ä,ö,ü,ß');
-INSERT INTO t1 VALUES ('ae,oe,ue,ss');
-SELECT c FROM t1 ORDER BY c;
-c
-ae
-ae
-oe
-oe
-ue
-ue
-ss
-ss
-ae,oe,ue,ss
-ae,oe,ue,ss
-SELECT c FROM t1 ORDER BY concat(c);
-c
-ae
-ae
-ae,oe,ue,ss
-ae,oe,ue,ss
-oe
-oe
-ss
-ss
-ue
-ue
-DROP TABLE t1;
-create table t1(f1
-set('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17',
-'18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33',
-'34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49',
-'50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','128'));
-ERROR HY000: Too many strings for column f1 and SET
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-create table t1(f1
-set('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17',
-'18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33',
-'34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49',
-'50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','1'));
-Warnings:
-Note 1291 Column 'f1' has duplicated value '1' in SET
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f1` set('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','1') DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-CREATE TABLE t1(c set('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59','60','61','62','63','64'));
-INSERT INTO t1 VALUES(7);
-INSERT INTO t1 VALUES(9223372036854775808);
-SELECT * FROM t1;
-c
-1,2,3
-64
-DROP TABLE t1;
-CREATE TABLE t1 (
-set_unique_utf8 set ('a','b','c','d','e','f','g','h','i','j','k','l',
-'m','n','o','p','q','r','s','t','u','v','w','x',
-'y','z') CHARACTER SET utf8,
-unique (set_unique_utf8)
-);
-INSERT INTO t1 ( set_unique_utf8 ) VALUES ( '' );
-INSERT INTO t1 ( set_unique_utf8 ) VALUES ( '' );
-ERROR 23000: Duplicate entry '' for key 'set_unique_utf8'
-DROP TABLE t1;
-End of 5.0 tests
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-6950 Bad results with joins compating DATE and INT/ENUM/VARCHAR columns
-#
-CREATE TABLE t1 (c1 DATE PRIMARY KEY);
-INSERT INTO t1 VALUES ('2001-01-01');
-CREATE TABLE t2 (c1 SET('2001-01-01','2001/01/01'));
-INSERT INTO t2 VALUES ('2001-01-01');
-INSERT INTO t2 VALUES ('2001/01/01');
-SELECT t1.* FROM t1,t2 WHERE t1.c1=t2.c1;
-c1
-2001-01-01
-2001-01-01
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1=t2.c1;
-c1
-2001-01-01
-2001-01-01
-ALTER TABLE t2 ADD PRIMARY KEY(c1);
-SELECT t1.* FROM t1,t2 WHERE t1.c1=t2.c1;
-c1
-2001-01-01
-2001-01-01
-EXPLAIN SELECT t1.* FROM t1,t2 WHERE t1.c1=t2.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 1 NULL 2 Using where; Using index
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1=t2.c1;
-c1
-2001-01-01
-2001-01-01
-# t2 should NOT be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1=t2.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 1 NULL 2 Using where; Using index
-DROP TABLE t1, t2;
-#
-# MDEV-6978 Bad results with join comparing case insensitive VARCHAR/ENUM/SET expression to a _bin ENUM column
-#
-CREATE TABLE t1 (c1 ENUM('a') CHARACTER SET latin1 PRIMARY KEY);
-INSERT INTO t1 VALUES ('a');
-CREATE TABLE t2 (c1 SET('a','A') CHARACTER SET latin1 COLLATE latin1_bin);
-INSERT INTO t2 VALUES ('a'),('A');
-SELECT t1.* FROM t1 JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-ALTER TABLE t2 ADD PRIMARY KEY(c1);
-SELECT t1.* FROM t1 JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-# t2 should NOT be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 1 NULL 2 Using where; Using index
-DROP TABLE IF EXISTS t1,t2;
-CREATE TABLE t1 (c1 SET('a') CHARACTER SET latin1 PRIMARY KEY);
-INSERT INTO t1 VALUES ('a');
-CREATE TABLE t2 (c1 SET('a','A') CHARACTER SET latin1 COLLATE latin1_bin);
-INSERT INTO t2 VALUES ('a'),('A');
-SELECT t1.* FROM t1 JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-ALTER TABLE t2 ADD PRIMARY KEY(c1);
-SELECT t1.* FROM t1 JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-# t2 should NOT be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 1 NULL 2 Using where; Using index
-DROP TABLE IF EXISTS t1,t2;
-CREATE TABLE t1 (c1 VARCHAR(10) CHARACTER SET latin1 PRIMARY KEY);
-INSERT INTO t1 VALUES ('a');
-CREATE TABLE t2 (c1 SET('a','A') CHARACTER SET latin1 COLLATE latin1_bin);
-INSERT INTO t2 VALUES ('a'),('A');
-SELECT t1.* FROM t1 JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-ALTER TABLE t2 ADD PRIMARY KEY(c1);
-SELECT t1.* FROM t1 JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-c1
-a
-a
-# t2 should NOT be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1 COLLATE latin1_swedish_ci=t2.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 1 NULL 2 Using where; Using index
-DROP TABLE IF EXISTS t1,t2;
-#
-# MDEV-6993 Bad results with join comparing DECIMAL and ENUM/SET columns
-#
-CREATE TABLE t1 (c1 DECIMAL(10,1) PRIMARY KEY);
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (c1 SET('a','b'));
-INSERT INTO t2 VALUES ('a'),('b');
-SELECT t1.* FROM t1 NATURAL JOIN t2;
-c1
-1.0
-2.0
-ALTER TABLE t2 ADD PRIMARY KEY(c1);
-SELECT t1.* FROM t1 NATURAL JOIN t2;
-c1
-1.0
-2.0
-SELECT t1.* FROM t1 LEFT OUTER JOIN t2 USING (c1);
-c1
-1.0
-2.0
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DECIMAL(10,1), b SET('1','2'));
-INSERT INTO t1 (a) VALUES (1),(2);
-UPDATE t1 SET b=a;
-SELECT * FROM t1;
-a b
-1.0 1
-2.0 2
-ALTER TABLE t1 MODIFY a SET('1','2');
-SELECT * FROM t1;
-a b
-1 1
-2 2
-DROP TABLE t1;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8729 Wrong result for SELECT..WHERE HEX(enum_column)='61' AND enum_column='a '
-#
-CREATE TABLE t1 (a SET('a','A') CHARACTER SET latin1 COLLATE latin1_bin);
-INSERT INTO t1 VALUES ('a'),('A');
-SELECT * FROM t1 WHERE a='a ';
-a
-a
-SELECT * FROM t1 WHERE HEX(a)='61';
-a
-a
-SELECT * FROM t1 WHERE HEX(a)='61' AND a='a ';
-a
-a
-# Can't propagate the equality into HEX(a), because binary collations still ignore trailing spaces
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE HEX(a)='61' AND a='a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a ' and hex(`test`.`t1`.`a`) = '61'
-DROP TABLE t1;
-CREATE TABLE t1 (a SET('a','a ') CHARACTER SET BINARY);
-INSERT INTO t1 VALUES ('a'),('a ');
-SELECT * FROM t1 WHERE a='a ';
-a
-a
-SELECT * FROM t1 WHERE HEX(a)='61';
-a
-a
-SELECT * FROM t1 WHERE HEX(a)='61' AND a='a';
-a
-a
-SELECT * FROM t1 WHERE HEX(a)='61' AND a='a ';
-a
-# Ok to propagate the equality into HEX(a), because "CHARACTER SET BINARY" does not ignore trailing spaces
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE HEX(a)='61' AND a='a';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a'
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE HEX(a)='61' AND a='a ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12432 Range optimizer for ENUM and SET does not return "Impossible WHERE" in some case
-#
-CREATE TABLE t1 (a SET('a','b','c','1'),KEY(a));
-INSERT INTO t1 VALUES ('a'),('b'),('c'),('1');
-EXPLAIN SELECT * FROM t1 WHERE a='xx';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a='99999999';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a=100.1e0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a=100;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a=100.1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a='100';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a='1x';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a='1.0';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-EXPLAIN SELECT * FROM t1 WHERE a='1.1';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-DROP TABLE t1;
-#
-# MDEV-11155 Bad error message when creating a SET column with comma and non-ASCII characters
-#
-SET NAMES utf8;
-CREATE TABLE t1 (a SET('a,bü'));
-ERROR 22007: Illegal set 'a,bü' value found during parsing
diff --git a/mysql-test/r/type_temporal_innodb.result b/mysql-test/r/type_temporal_innodb.result
deleted file mode 100644
index b869822722d..00000000000
--- a/mysql-test/r/type_temporal_innodb.result
+++ /dev/null
@@ -1,162 +0,0 @@
-#
-# MDEV-9604 crash in Item::save_in_field with empty enum value
-#
-SELECT TIME'00:00:00'='';
-TIME'00:00:00'=''
-1
-Warnings:
-Warning 1292 Truncated incorrect time value: ''
-CREATE TABLE t1 (a ENUM('a'), b TIME, c INT, KEY(b)) ENGINE=InnoDB;
-INSERT IGNORE INTO t1 VALUES ('','00:00:00',0);
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1 WHERE b='';
-a b c
- 00:00:00 0
-Warnings:
-Warning 1292 Truncated incorrect time value: ''
-SELECT * FROM t1 IGNORE KEY (b) WHERE b='';
-a b c
- 00:00:00 0
-Warnings:
-Warning 1292 Truncated incorrect time value: ''
-SELECT * FROM t1 WHERE a=b;
-a b c
- 00:00:00 0
-Warnings:
-Warning 1292 Truncated incorrect time value: ''
-SELECT 1 FROM t1 WHERE (SELECT a FROM t1 group by c) = b;
-1
-1
-Warnings:
-Warning 1292 Truncated incorrect time value: ''
-ALTER TABLE t1 ENGINE=MyISAM;
-SELECT * FROM t1 WHERE b='';
-a b c
- 00:00:00 0
-Warnings:
-Warning 1292 Truncated incorrect time value: ''
-SELECT * FROM t1 IGNORE KEY (b) WHERE b='';
-a b c
- 00:00:00 0
-Warnings:
-Warning 1292 Truncated incorrect time value: ''
-SELECT * FROM t1 WHERE a=b;
-a b c
- 00:00:00 0
-Warnings:
-Warning 1292 Truncated incorrect time value: ''
-SELECT 1 FROM t1 WHERE (SELECT a FROM t1 group by c) = b;
-1
-1
-Warnings:
-Warning 1292 Truncated incorrect time value: ''
-DROP TABLE t1;
-SELECT DATE'0000-00-00'='';
-DATE'0000-00-00'=''
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-CREATE TABLE t1 (a ENUM('a'), b DATE, c INT, KEY(b)) ENGINE=InnoDB;
-INSERT IGNORE INTO t1 VALUES ('','0000-00-00',0);
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1 WHERE b='';
-a b c
- 0000-00-00 0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT * FROM t1 IGNORE KEY (b) WHERE b='';
-a b c
- 0000-00-00 0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT * FROM t1 WHERE a=b;
-a b c
- 0000-00-00 0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT 1 FROM t1 WHERE (SELECT a FROM t1 group by c) = b;
-1
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-ALTER TABLE t1 ENGINE=MyISAM;
-SELECT * FROM t1 WHERE b='';
-a b c
- 0000-00-00 0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT * FROM t1 IGNORE KEY (b) WHERE b='';
-a b c
- 0000-00-00 0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT * FROM t1 WHERE a=b;
-a b c
- 0000-00-00 0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT 1 FROM t1 WHERE (SELECT a FROM t1 group by c) = b;
-1
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-DROP TABLE t1;
-SELECT TIMESTAMP'0000-00-00 00:00:00'='';
-TIMESTAMP'0000-00-00 00:00:00'=''
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-CREATE TABLE t1 (a ENUM('a'), b DATETIME, c INT, KEY(b)) ENGINE=InnoDB;
-INSERT IGNORE INTO t1 VALUES ('','0000-00-00 00:00:00',0);
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-SELECT * FROM t1 WHERE b='';
-a b c
- 0000-00-00 00:00:00 0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT * FROM t1 IGNORE KEY (b) WHERE b='';
-a b c
- 0000-00-00 00:00:00 0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT * FROM t1 WHERE a=b;
-a b c
- 0000-00-00 00:00:00 0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT 1 FROM t1 WHERE (SELECT a FROM t1 group by c) = b;
-1
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-ALTER TABLE t1 ENGINE=MyISAM;
-SELECT * FROM t1 WHERE b='';
-a b c
- 0000-00-00 00:00:00 0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT * FROM t1 IGNORE KEY (b) WHERE b='';
-a b c
- 0000-00-00 00:00:00 0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT * FROM t1 WHERE a=b;
-a b c
- 0000-00-00 00:00:00 0
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-SELECT 1 FROM t1 WHERE (SELECT a FROM t1 group by c) = b;
-1
-1
-Warnings:
-Warning 1292 Incorrect datetime value: ''
-DROP TABLE t1;
-CREATE TABLE t1 (d DATE) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('2012-12-21');
-SELECT * FROM t1 WHERE LEAST( UTC_TIME(), d );
-d
-2012-12-21
-DROP TABLE t1;
diff --git a/mysql-test/r/type_temporal_mysql56.result b/mysql-test/r/type_temporal_mysql56.result
deleted file mode 100644
index cdc951dac14..00000000000
--- a/mysql-test/r/type_temporal_mysql56.result
+++ /dev/null
@@ -1,89 +0,0 @@
-SHOW CREATE TABLE mysql56time;
-Table Create Table
-mysql56time CREATE TABLE `mysql56time` (
- `t0` time DEFAULT NULL,
- `t1` time(1) DEFAULT NULL,
- `t2` time(2) DEFAULT NULL,
- `t3` time(3) DEFAULT NULL,
- `t4` time(4) DEFAULT NULL,
- `t5` time(5) DEFAULT NULL,
- `t6` time(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql56time;
-t0 838:59:59
-t1 838:59:59.0
-t2 838:59:59.00
-t3 838:59:59.000
-t4 838:59:59.0000
-t5 838:59:59.00000
-t6 838:59:59.000000
-t0 00:00:00
-t1 00:00:00.0
-t2 00:00:00.00
-t3 00:00:00.000
-t4 00:00:00.0000
-t5 00:00:00.00000
-t6 00:00:00.000000
-t0 -838:59:59
-t1 -838:59:59.0
-t2 -838:59:59.00
-t3 -838:59:59.000
-t4 -838:59:59.0000
-t5 -838:59:59.00000
-t6 -838:59:59.000000
-DROP TABLE mysql56time;
-SHOW CREATE TABLE mysql56datetime;
-Table Create Table
-mysql56datetime CREATE TABLE `mysql56datetime` (
- `dt0` datetime DEFAULT NULL,
- `dt1` datetime(1) DEFAULT NULL,
- `dt2` datetime(2) DEFAULT NULL,
- `dt3` datetime(3) DEFAULT NULL,
- `dt4` datetime(4) DEFAULT NULL,
- `dt5` datetime(5) DEFAULT NULL,
- `dt6` datetime(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql56datetime;
-dt0 0000-00-00 00:00:00
-dt1 0000-00-00 00:00:00.0
-dt2 0000-00-00 00:00:00.00
-dt3 0000-00-00 00:00:00.000
-dt4 0000-00-00 00:00:00.0000
-dt5 0000-00-00 00:00:00.00000
-dt6 0000-00-00 00:00:00.000000
-dt0 9999-12-31 23:59:59
-dt1 9999-12-31 23:59:59.9
-dt2 9999-12-31 23:59:59.99
-dt3 9999-12-31 23:59:59.999
-dt4 9999-12-31 23:59:59.9999
-dt5 9999-12-31 23:59:59.99999
-dt6 9999-12-31 23:59:59.999999
-DROP TABLE mysql56datetime;
-SET TIME_ZONE='+00:00';
-SHOW CREATE TABLE mysql56timestamp;
-Table Create Table
-mysql56timestamp CREATE TABLE `mysql56timestamp` (
- `ts0` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `ts1` timestamp(1) NOT NULL DEFAULT '0000-00-00 00:00:00.0',
- `ts2` timestamp(2) NOT NULL DEFAULT '0000-00-00 00:00:00.00',
- `ts3` timestamp(3) NOT NULL DEFAULT '0000-00-00 00:00:00.000',
- `ts4` timestamp(4) NOT NULL DEFAULT '0000-00-00 00:00:00.0000',
- `ts5` timestamp(5) NOT NULL DEFAULT '0000-00-00 00:00:00.00000',
- `ts6` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM mysql56timestamp;
-ts0 1970-01-01 00:00:01
-ts1 1970-01-01 00:00:01.0
-ts2 1970-01-01 00:00:01.00
-ts3 1970-01-01 00:00:01.000
-ts4 1970-01-01 00:00:01.0000
-ts5 1970-01-01 00:00:01.00000
-ts6 1970-01-01 00:00:01.000000
-ts0 2038-01-19 03:14:07
-ts1 2038-01-19 03:14:07.9
-ts2 2038-01-19 03:14:07.99
-ts3 2038-01-19 03:14:07.999
-ts4 2038-01-19 03:14:07.9999
-ts5 2038-01-19 03:14:07.99999
-ts6 2038-01-19 03:14:07.999999
-DROP TABLE mysql56timestamp;
diff --git a/mysql-test/r/type_time.result b/mysql-test/r/type_time.result
deleted file mode 100644
index 5cdd3b00924..00000000000
--- a/mysql-test/r/type_time.result
+++ /dev/null
@@ -1,1955 +0,0 @@
-drop table if exists t1;
-create table t1 (t time);
-insert into t1 values("10:22:33"),("12:34:56.78"),(10),(1234),(123456.78),(1234559.99),("1"),("1:23"),("1:23:45"), ("10.22"), ("-10 1:22:33.45"),("20 10:22:33"),("1999-02-03 20:33:34");
-Warnings:
-Note 1265 Data truncated for column 't' at row 13
-insert t1 values (30),(1230),("1230"),("12:30"),("12:30:35"),("1 12:30:31.32");
-select * from t1;
-t
-10:22:33
-12:34:56
-00:00:10
-00:12:34
-12:34:56
-123:45:59
-00:00:01
-01:23:00
-01:23:45
-00:00:10
--241:22:33
-490:22:33
-20:33:34
-00:00:30
-00:12:30
-00:12:30
-12:30:00
-12:30:35
-36:30:31
-insert ignore into t1 values("10.22.22"),(1234567),(123456789),(123456789.10),("10 22:22"),("12.45a");
-Warnings:
-Warning 1265 Data truncated for column 't' at row 1
-Warning 1265 Data truncated for column 't' at row 2
-Warning 1265 Data truncated for column 't' at row 3
-Warning 1265 Data truncated for column 't' at row 4
-Warning 1265 Data truncated for column 't' at row 6
-select * from t1;
-t
-10:22:33
-12:34:56
-00:00:10
-00:12:34
-12:34:56
-123:45:59
-00:00:01
-01:23:00
-01:23:45
-00:00:10
--241:22:33
-490:22:33
-20:33:34
-00:00:30
-00:12:30
-00:12:30
-12:30:00
-12:30:35
-36:30:31
-00:00:10
-00:00:00
-00:00:00
-00:00:00
-262:22:00
-00:00:12
-drop table t1;
-create table t1 (t time);
-insert into t1 values ('09:00:00'),('13:00:00'),('19:38:34'), ('13:00:00'),('09:00:00'),('09:00:00'),('13:00:00'),('13:00:00'),('13:00:00'),('09:00:00');
-select t, time_to_sec(t),sec_to_time(time_to_sec(t)) from t1;
-t time_to_sec(t) sec_to_time(time_to_sec(t))
-09:00:00 32400 09:00:00
-13:00:00 46800 13:00:00
-19:38:34 70714 19:38:34
-13:00:00 46800 13:00:00
-09:00:00 32400 09:00:00
-09:00:00 32400 09:00:00
-13:00:00 46800 13:00:00
-13:00:00 46800 13:00:00
-13:00:00 46800 13:00:00
-09:00:00 32400 09:00:00
-select sec_to_time(time_to_sec(t)) from t1;
-sec_to_time(time_to_sec(t))
-09:00:00
-13:00:00
-19:38:34
-13:00:00
-09:00:00
-09:00:00
-13:00:00
-13:00:00
-13:00:00
-09:00:00
-drop table t1;
-End of 4.1 tests
-select cast('100:55:50' as time) < cast('24:00:00' as time);
-cast('100:55:50' as time) < cast('24:00:00' as time)
-0
-select cast('100:55:50' as time) < cast('024:00:00' as time);
-cast('100:55:50' as time) < cast('024:00:00' as time)
-0
-select cast('300:55:50' as time) < cast('240:00:00' as time);
-cast('300:55:50' as time) < cast('240:00:00' as time)
-0
-select cast('100:55:50' as time) > cast('24:00:00' as time);
-cast('100:55:50' as time) > cast('24:00:00' as time)
-1
-select cast('100:55:50' as time) > cast('024:00:00' as time);
-cast('100:55:50' as time) > cast('024:00:00' as time)
-1
-select cast('300:55:50' as time) > cast('240:00:00' as time);
-cast('300:55:50' as time) > cast('240:00:00' as time)
-1
-create table t1 (f1 time);
-insert into t1 values ('24:00:00');
-select cast('24:00:00' as time) = (select f1 from t1);
-cast('24:00:00' as time) = (select f1 from t1)
-1
-drop table t1;
-create table t1(f1 time, f2 time);
-insert into t1 values('20:00:00','150:00:00');
-select 1 from t1 where cast('100:00:00' as time) between f1 and f2;
-1
-1
-drop table t1;
-CREATE TABLE t1 (
-f2 date NOT NULL,
-f3 int(11) unsigned NOT NULL default '0',
-PRIMARY KEY (f3, f2)
-);
-insert into t1 values('2007-07-01', 1);
-insert into t1 values('2007-07-01', 2);
-insert into t1 values('2007-07-02', 1);
-insert into t1 values('2007-07-02', 2);
-SELECT sum(f3) FROM t1 where f2='2007-07-01 00:00:00' group by f2;
-sum(f3)
-3
-drop table t1;
-#
-# Bug #44792: valgrind warning when casting from time to time
-#
-CREATE TABLE t1 (c TIME);
-INSERT INTO t1 VALUES ('0:00:00');
-SELECT CAST(c AS TIME) FROM t1;
-CAST(c AS TIME)
-00:00:00
-DROP TABLE t1;
-End of 5.0 tests
-#
-# Bug#53942 valgrind warnings with timestamp() function and incomplete datetime values
-#
-SET timestamp=unix_timestamp('2001-02-03 10:20:30');
-CREATE TABLE t1(f1 TIME);
-INSERT INTO t1 VALUES ('23:38:57');
-SELECT TIMESTAMP(f1,'1') FROM t1;
-TIMESTAMP(f1,'1')
-2001-02-03 23:38:58
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-End of 5.1 tests
-create table t1 (a time);
-insert t1 values (-131415);
-select * from t1;
-a
--13:14:15
-drop table t1;
-create table t1 (f1 time , f2 varchar(5), key(f1));
-insert into t1 values ('00:20:01','a'),('00:20:03','b');
-select * from t1 force key (f1) where f1 < curdate();
-f1 f2
-select * from t1 ignore key (f1) where f1 < curdate();
-f1 f2
-select * from t1 force key (f1) where f1 > curdate();
-f1 f2
-00:20:01 a
-00:20:03 b
-select * from t1 ignore key (f1) where f1 > curdate();
-f1 f2
-00:20:01 a
-00:20:03 b
-delete from t1;
-insert into t1 values ('-00:20:01','a'),('-00:20:03','b');
-select * from t1 force key (f1) where f1 < curdate();
-f1 f2
--00:20:01 a
--00:20:03 b
-select * from t1 ignore key (f1) where f1 < curdate();
-f1 f2
--00:20:01 a
--00:20:03 b
-drop table t1;
-create table t1(f1 time);
-insert into t1 values ('23:38:57');
-select f1, f1 = '2010-10-11 23:38:57' from t1;
-f1 f1 = '2010-10-11 23:38:57'
-23:38:57 0
-drop table t1;
-#
-# MDEV-4634 Crash in CONVERT_TZ
-#
-SET timestamp=unix_timestamp('2001-02-03 10:20:30');
-SELECT CONVERT_TZ(GREATEST(TIME('00:00:00'),TIME('00:00:00')),'+00:00','+7:5');
-CONVERT_TZ(GREATEST(TIME('00:00:00'),TIME('00:00:00')),'+00:00','+7:5')
-2001-02-03 07:05:00
-SET timestamp=DEFAULT;
-#
-# MDEV-4652 Wrong result for CONCAT(GREATEST(TIME('00:00:01'),TIME('00:00:00')))
-#
-SELECT CONCAT(GREATEST(TIME('00:00:01'),TIME('00:00:00')));
-CONCAT(GREATEST(TIME('00:00:01'),TIME('00:00:00')))
-00:00:01
-SELECT CONCAT(GREATEST(TIME('32 00:00:01'),TIME('00:00:00')));
-CONCAT(GREATEST(TIME('32 00:00:01'),TIME('00:00:00')))
-768:00:01
-#
-# MDEV-4859 Wrong value and data type of "SELECT MAX(time_column) + 1 FROM t1"
-#
-CREATE TABLE t1 (t0 TIME);
-INSERT INTO t1 VALUES ('10:10:10');
-SELECT MAX(t0)+1 FROM t1;
-MAX(t0)+1
-101011
-CREATE TABLE t2 AS SELECT MAX(t0)+1 FROM t1;
-SELECT * FROM t2;
-MAX(t0)+1
-101011
-SHOW COLUMNS FROM t2;
-Field Type Null Key Default Extra
-MAX(t0)+1 int(9) YES NULL
-DROP TABLE t2,t1;
-CREATE TABLE t1 (t0 TIME);
-INSERT INTO t1 VALUES ('10:10:10');
-SELECT MAX(t0)+1.1 FROM t1;
-MAX(t0)+1.1
-101011.1
-CREATE TABLE t2 AS SELECT MAX(t0)+1.1 FROM t1;
-SELECT * FROM t2;
-MAX(t0)+1.1
-101011.1
-SHOW COLUMNS FROM t2;
-Field Type Null Key Default Extra
-MAX(t0)+1.1 decimal(9,1) YES NULL
-DROP TABLE t2,t1;
-CREATE TABLE t1 (t0 TIME);
-INSERT INTO t1 VALUES ('10:10:10');
-SELECT MAX(t0)+1e0 FROM t1;
-MAX(t0)+1e0
-101011
-CREATE TABLE t2 AS SELECT MAX(t0)+1e0 FROM t1;
-SELECT * FROM t2;
-MAX(t0)+1e0
-101011
-SHOW COLUMNS FROM t2;
-Field Type Null Key Default Extra
-MAX(t0)+1e0 double YES NULL
-DROP TABLE t2,t1;
-CREATE TABLE t1 (t1 TIME(1));
-INSERT INTO t1 VALUES ('10:10:10');
-SELECT MAX(t1)+1 FROM t1;
-MAX(t1)+1
-101011.0
-CREATE TABLE t2 AS SELECT MAX(t1)+1 FROM t1;
-SELECT * FROM t2;
-MAX(t1)+1
-101011.0
-SHOW COLUMNS FROM t2;
-Field Type Null Key Default Extra
-MAX(t1)+1 decimal(9,1) YES NULL
-DROP TABLE t2,t1;
-CREATE TABLE t1 (t0 DATETIME);
-INSERT INTO t1 VALUES ('2001-01-01 10:10:10');
-SELECT MAX(t0)+1 FROM t1;
-MAX(t0)+1
-20010101101011
-CREATE TABLE t2 AS SELECT MAX(t0)+1 FROM t1;
-SELECT * FROM t2;
-MAX(t0)+1
-20010101101011
-SHOW COLUMNS FROM t2;
-Field Type Null Key Default Extra
-MAX(t0)+1 bigint(16) YES NULL
-DROP TABLE t2,t1;
-CREATE TABLE t1 (t0 DATETIME);
-INSERT INTO t1 VALUES ('2001-01-01 10:10:10');
-SELECT MAX(t0)+1.1 FROM t1;
-MAX(t0)+1.1
-20010101101011.1
-CREATE TABLE t2 AS SELECT MAX(t0)+1.1 FROM t1;
-SELECT * FROM t2;
-MAX(t0)+1.1
-20010101101011.1
-SHOW COLUMNS FROM t2;
-Field Type Null Key Default Extra
-MAX(t0)+1.1 decimal(16,1) YES NULL
-DROP TABLE t2,t1;
-CREATE TABLE t1 (t0 DATETIME);
-INSERT INTO t1 VALUES ('2001-01-01 10:10:10');
-SELECT MAX(t0)+1e0 FROM t1;
-MAX(t0)+1e0
-20010101101011
-CREATE TABLE t2 AS SELECT MAX(t0)+1e0 FROM t1;
-SELECT * FROM t2;
-MAX(t0)+1e0
-20010101101011
-SHOW COLUMNS FROM t2;
-Field Type Null Key Default Extra
-MAX(t0)+1e0 double YES NULL
-DROP TABLE t2,t1;
-CREATE TABLE t1 (t1 DATETIME(1));
-INSERT INTO t1 VALUES ('2001-01-01 10:10:10');
-SELECT MAX(t1)+1 FROM t1;
-MAX(t1)+1
-20010101101011.0
-CREATE TABLE t2 AS SELECT MAX(t1)+1 FROM t1;
-SELECT * FROM t2;
-MAX(t1)+1
-20010101101011.0
-SHOW COLUMNS FROM t2;
-Field Type Null Key Default Extra
-MAX(t1)+1 decimal(16,1) YES NULL
-DROP TABLE t2,t1;
-#
-# MDEV-4858 Wrong results for a huge unsigned value inserted into a TIME column
-#
-SET sql_mode=traditional;
-CREATE TABLE t1 (a TIME(6));
-INSERT INTO t1 VALUES (CAST(0xFFFFFFFF00000000 AS UNSIGNED));
-ERROR 22007: Incorrect time value: '18446744069414584320' for column 'a' at row 1
-SET sql_mode=DEFAULT;
-INSERT IGNORE INTO t1 VALUES (CAST(0xFFFFFFFF00000000 AS UNSIGNED));
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-SELECT * FROM t1;
-a
-838:59:59.999999
-DROP TABLE t1;
-SELECT TIME'00:00:00'> CAST(0xFFFFFFFF00000000 AS UNSIGNED);
-TIME'00:00:00'> CAST(0xFFFFFFFF00000000 AS UNSIGNED)
-0
-Warnings:
-Warning 1292 Truncated incorrect time value: '18446744069414584320'
-#
-# MDEV-6100 No warning on CAST(9000000 AS TIME)
-#
-SELECT CAST(9000000 AS TIME);
-CAST(9000000 AS TIME)
-838:59:59
-Warnings:
-Warning 1292 Truncated incorrect time value: '9000000'
-#
-# End of 5.3 tests
-#
-CREATE TABLE t1 (f1 TIME);
-INSERT INTO t1 VALUES ('24:00:00');
-SELECT '24:00:00' = (SELECT f1 FROM t1);
-'24:00:00' = (SELECT f1 FROM t1)
-1
-SELECT CAST('24:00:00' AS TIME) = (SELECT f1 FROM t1);
-CAST('24:00:00' AS TIME) = (SELECT f1 FROM t1)
-1
-SELECT CAST('-24:00:00' AS TIME) = (SELECT f1 FROM t1);
-CAST('-24:00:00' AS TIME) = (SELECT f1 FROM t1)
-0
-TRUNCATE t1;
-INSERT INTO t1 VALUES ('-24:00:00');
-SELECT CAST('24:00:00' AS TIME) = (SELECT f1 FROM t1);
-CAST('24:00:00' AS TIME) = (SELECT f1 FROM t1)
-0
-SELECT CAST('-24:00:00' AS TIME) = (SELECT f1 FROM t1);
-CAST('-24:00:00' AS TIME) = (SELECT f1 FROM t1)
-1
-SELECT '-24:00:00' = (SELECT f1 FROM t1);
-'-24:00:00' = (SELECT f1 FROM t1)
-1
-DROP TABLE t1;
-#
-# MDEV-6592 Assertion `ltime->day == 0' failed with TIMESTAMP, MAKETIME
-#
-CREATE TABLE t1 (d DATE, c VARCHAR(10), KEY(d)) engine=myisam;
-INSERT INTO t1 VALUES ('2008-10-02','2008-10-02'), ('2008-10-02','2008-10-02');
-SELECT * FROM t1 WHERE TIMESTAMP(c,'02:04:42') AND d <=> MAKETIME(97,0,7);
-d c
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-6102 Comparison between TIME and DATETIME does not use CURRENT_DATE
-#
-SET timestamp=UNIX_TIMESTAMP('2014-04-14 01:02:03');
-SELECT CAST(TIME'10:20:30' AS DATETIME), TIME'10:20:30'=TIMESTAMP'2014-04-14 10:20:30' AS cmp;
-CAST(TIME'10:20:30' AS DATETIME) cmp
-2014-04-14 10:20:30 1
-SET timestamp=DEFAULT;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8699 Wrong result for SELECT..WHERE HEX(date_column)!='323030312D30312D3031' AND date_column='2001-01-01x'
-#
-# Trailing garbage in string literals
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('00:00:00'),('00:00:01');
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-00:00:00
-00:00:01
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a='00:00:00x';
-a
-00:00:00
-Warnings:
-Warning 1292 Truncated incorrect time value: '00:00:00x'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a='00:00:00x';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Warning 1292 Truncated incorrect time value: '00:00:00x'
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a='00:00:00x';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Warning 1292 Truncated incorrect time value: '00:00:00x'
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00' and <cache>(octet_length(TIME'00:00:00')) = 30 + rand()
-DROP TABLE t1;
-# Trailing fractional digits in string literals
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('00:00:00'),('00:00:01');
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-00:00:00
-00:00:01
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a='00:00:00.000000';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a='00:00:00.000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a='00:00:00.000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00' and <cache>(octet_length(TIME'00:00:00')) = 30 + rand()
-DROP TABLE t1;
-# Trailing fractional digits in temporal literals
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('00:00:00'),('00:00:01');
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-00:00:00
-00:00:01
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIME'00:00:00.000000';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIME'00:00:00.000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00.000000'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIME'00:00:00.000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00.000000' and <cache>(octet_length(TIME'00:00:00')) = 30 + rand()
-DROP TABLE t1;
-# Trailing fractional digits in temporal literals, same precision
-CREATE TABLE t1 (a TIME(6));
-INSERT INTO t1 VALUES ('00:00:00'),('00:00:01');
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIME'00:00:00.000000';
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIME'00:00:00.000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIME'00:00:00.000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00.000000' and <cache>(octet_length(TIME'00:00:00.000000')) = 30 + rand()
-DROP TABLE t1;
-# Leading spaces in string literals
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('00:00:00'),('00:00:01');
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-00:00:00
-00:00:01
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=' 00:00:00';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=' 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=' 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00' and <cache>(octet_length(TIME'00:00:00')) = 30 + rand()
-DROP TABLE t1;
-# Numeric format in string literals
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('00:00:00'),('00:00:01');
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-00:00:00
-00:00:01
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a='000000';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a='000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a='000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00' and <cache>(octet_length(TIME'00:00:00')) = 30 + rand()
-DROP TABLE t1;
-#
-# MDEV-8766 Wrong result for SELECT..WHERE LENGTH(time_column)=8 AND time_column=TIMESTAMP'2001-01-01 10:20:31'
-#
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 01:02:03');
-# TIMESTAMP literal with the same scale, ok to propagate
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('10:20:31'),('-10:20:31');
-SELECT * FROM t1 WHERE a=TIMESTAMP'2001-01-01 10:20:31';
-a
-10:20:31
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-10:20:31
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIMESTAMP'2001-01-01 10:20:31';
-a
-10:20:31
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIMESTAMP'2001-01-01 10:20:31';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIMESTAMP'2001-01-01 10:20:31';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31' and <cache>(octet_length(TIME'10:20:31')) = 30 + rand()
-DROP TABLE t1;
-# TIMESTAMP literal with a bigger scale and fractional second truncation
-# Ok to propagate with precision truncation
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('10:20:31'),('-10:20:31');
-SELECT * FROM t1 WHERE a=TIMESTAMP'2001-01-01 10:20:31.123';
-a
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-10:20:31
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIMESTAMP'2001-01-01 10:20:31.123';
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIMESTAMP'2001-01-01 10:20:31.123';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31.123000'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIMESTAMP'2001-01-01 10:20:31.123';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31.123000' and <cache>(octet_length(TIME'10:20:31')) = 30 + rand()
-DROP TABLE t1;
-# TIMESTAMP literal with a bigger scale and no fractional second truncation
-# Ok to propagate
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('10:20:31'),('-10:20:31');
-SELECT * FROM t1 WHERE a=TIMESTAMP'2001-01-01 10:20:31.000';
-a
-10:20:31
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-10:20:31
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIMESTAMP'2001-01-01 10:20:31.000';
-a
-10:20:31
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIMESTAMP'2001-01-01 10:20:31.000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIMESTAMP'2001-01-01 10:20:31.000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31' and <cache>(octet_length(TIME'10:20:31')) = 30 + rand()
-DROP TABLE t1;
-# TIMESTAMP literal with a smaller scale
-# Ok to propagate
-CREATE TABLE t1 (a TIME(6));
-INSERT INTO t1 VALUES ('10:20:31'),('-10:20:31');
-SELECT * FROM t1 WHERE a=TIMESTAMP'2001-01-01 10:20:31.123';
-a
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIMESTAMP'2001-01-01 10:20:31.123';
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIMESTAMP'2001-01-01 10:20:31.123';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIMESTAMP'2001-01-01 10:20:31.123';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31.123000' and <cache>(octet_length(TIME'10:20:31.123000')) = 30 + rand()
-DROP TABLE t1;
-# TIME literal with a bigger scale and fractional second truncation
-# Ok to propagate with precision truncation
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('10:20:31'),('-10:20:31');
-SELECT * FROM t1 WHERE a=TIME'10:20:31.123';
-a
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-10:20:31
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIME'10:20:31.123';
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIME'10:20:31.123';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31.123'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIME'10:20:31.123';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31.123' and <cache>(octet_length(TIME'10:20:31')) = 30 + rand()
-DROP TABLE t1;
-# TIME literal with a bigger scale and no fractional second truncation
-# Ok to propagate
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('10:20:31'),('-10:20:31');
-SELECT * FROM t1 WHERE a=TIME'10:20:31.000';
-a
-10:20:31
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-10:20:31
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIME'10:20:31.000';
-a
-10:20:31
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIME'10:20:31.000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31.000'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIME'10:20:31.000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31.000' and <cache>(octet_length(TIME'10:20:31')) = 30 + rand()
-DROP TABLE t1;
-# TIME literal with a smaller scale
-# Ok to propagate
-CREATE TABLE t1 (a TIME(6));
-INSERT INTO t1 VALUES ('10:20:31'),('-10:20:31');
-SELECT * FROM t1 WHERE a=TIME'10:20:31.123';
-a
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIME'10:20:31.123';
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIME'10:20:31.123';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIME'10:20:31.123';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31.123' and <cache>(octet_length(TIME'10:20:31.123000')) = 30 + rand()
-DROP TABLE t1;
-# TIME-alike string literal with a bigger scale and fractional second truncation
-# Ok to propagate with precision truncation
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('10:20:31'),('-10:20:31');
-SELECT * FROM t1 WHERE a='10:20:31.123';
-a
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-10:20:31
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a='10:20:31.123';
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a='10:20:31.123';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31.123000'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a='10:20:31.123';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31.123000' and <cache>(octet_length(TIME'10:20:31')) = 30 + rand()
-DROP TABLE t1;
-# TIME-alike string literal with a bigger scale and no fractional second truncation
-# Ok to propagate
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('10:20:31'),('-10:20:31');
-SELECT * FROM t1 WHERE a='10:20:31.000';
-a
-10:20:31
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-10:20:31
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a='10:20:31.000';
-a
-10:20:31
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a='10:20:31.000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a='10:20:31.000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31' and <cache>(octet_length(TIME'10:20:31')) = 30 + rand()
-DROP TABLE t1;
-# TIME-alike string literal with a smaller scale
-# Ok to propagate
-CREATE TABLE t1 (a TIME(6));
-INSERT INTO t1 VALUES ('10:20:31'),('-10:20:31');
-SELECT * FROM t1 WHERE a='10:20:31.123';
-a
-SELECT * FROM t1 WHERE LENGTH(a)=8;
-a
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a='10:20:31.123';
-a
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=8 AND a='10:20:31.123';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a='10:20:31.123';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31.123000' and <cache>(octet_length(TIME'10:20:31.123000')) = 30 + rand()
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-SET @@old_mode=zero_date_time_cast;
-# TIMESTAMP literal, old mode
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('0000-00-00 10:20:30'),('0000-00-00 10:20:31');
-INSERT INTO t1 VALUES ('0000-00-01 10:20:30'),('0000-00-01 10:20:31');
-INSERT INTO t1 VALUES ('31 10:20:30'),('32 10:20:30'),('33 10:20:30'),('34 10:20:30');
-SELECT * FROM t1;
-a
-10:20:30
-10:20:31
-34:20:30
-34:20:31
-754:20:30
-778:20:30
-802:20:30
-826:20:30
-# Old mode, TIMESTAMP literal, zero YYYYMMDD, Ok to propagate
-SELECT * FROM t1 WHERE a=TIMESTAMP'0000-00-00 10:20:30';
-a
-10:20:30
-SELECT * FROM t1 WHERE a=TIMESTAMP'0000-00-00 10:20:30' AND LENGTH(a)=8;
-a
-10:20:30
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a=TIMESTAMP'0000-00-00 10:20:30' AND LENGTH(a)=8;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:30'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a=TIMESTAMP'0000-00-00 10:20:30' AND LENGTH(a)=30+RAND();
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:30' and <cache>(octet_length(TIME'10:20:30')) = 30 + rand()
-# Old mode, TIMESTAMP literal, non-zero YYYYMMDD, no propagation
-SELECT * FROM t1 WHERE a=TIMESTAMP'0000-00-01 10:20:30';
-a
-34:20:30
-SELECT * FROM t1 WHERE a=TIMESTAMP'0000-00-01 10:20:30' AND LENGTH(a)=8;
-a
-34:20:30
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a=TIMESTAMP'0000-00-01 10:20:30' AND LENGTH(a)=8;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'0000-00-01 10:20:30' and octet_length(`test`.`t1`.`a`) = 8
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a=TIMESTAMP'0000-00-01 10:20:30' AND LENGTH(a)=30+RAND();
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'0000-00-01 10:20:30' and octet_length(`test`.`t1`.`a`) = 30 + rand()
-# Old mode, TIMESTAMP-alike string literal, zero YYYYMMDD, Ok to propagate
-SELECT * FROM t1 WHERE a='0000-00-00 10:20:30';
-a
-10:20:30
-SELECT * FROM t1 WHERE a='0000-00-00 10:20:30' AND LENGTH(a)=8;
-a
-10:20:30
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a='0000-00-00 10:20:30' AND LENGTH(a)=8;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:30'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a='0000-00-00 10:20:30' AND LENGTH(a)=30+RAND();
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:30' and <cache>(octet_length(TIME'10:20:30')) = 30 + rand()
-# Old mode, TIMESTAMP-alike literal, non-zero YYYYMMDD, no propagation
-SELECT * FROM t1 WHERE a='0000-00-01 10:20:30';
-a
-34:20:30
-SELECT * FROM t1 WHERE a='0000-00-01 10:20:30' AND LENGTH(a)=8;
-a
-34:20:30
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a='0000-00-01 10:20:30' AND LENGTH(a)=8;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '0000-00-01 10:20:30' and octet_length(`test`.`t1`.`a`) = 8
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a='0000-00-01 10:20:30' AND LENGTH(a)=30+RAND();
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '0000-00-01 10:20:30' and octet_length(`test`.`t1`.`a`) = 30 + rand()
-DROP TABLE t1;
-SET @@old_mode=DEFAULT;
-#
-# MDEV-8706 Wrong result for SELECT..WHERE time_column=TIMESTAMP'2015-08-30 00:00:00' AND time_column='00:00:00'
-#
-SET timestamp=UNIX_TIMESTAMP('2015-08-30 10:20:30');
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('00:00:00'),('00:00:01');
-SELECT * FROM t1 WHERE a=TIMESTAMP'2015-08-30 00:00:00';
-a
-00:00:00
-SELECT * FROM t1 WHERE a='00:00:00';
-a
-00:00:00
-SELECT * FROM t1 WHERE a=TIMESTAMP'2015-08-30 00:00:00' AND a='00:00:00';
-a
-00:00:00
-SELECT * FROM t1 WHERE a>=TIMESTAMP'2015-08-30 00:00:00' AND a='00:00:00';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a>=TIMESTAMP'2015-08-30 00:00:00' AND a='00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00'
-DROP TABLE t1;
-SET timestamp=UNIX_TIMESTAMP('2015-08-30 10:20:30');
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('00:00:00'),('00:00:01');
-SELECT * FROM t1 WHERE DATE(a)<=TIMESTAMP'2015-08-30 00:00:00.1' AND a='00:00:00';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE DATE(a)<=TIMESTAMP'2015-08-30 00:00:00.1' AND a='00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE TIMESTAMP('2015-08-08',a+RAND())<=TIMESTAMP'2015-08-30 00:00:00.1' AND a='00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00' and timestamp('2015-08-08',TIME'00:00:00' + rand()) <= TIMESTAMP'2015-08-30 00:00:00.1'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE TIMESTAMP('2015-08-08',a+RAND())<=TIMESTAMP'2015-08-30 00:00:00.1' AND a='00:00:00.1';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00.100000' and timestamp('2015-08-08',TIME'00:00:00' + rand()) <= TIMESTAMP'2015-08-30 00:00:00.1'
-DROP TABLE t1;
-SET timestamp=UNIX_TIMESTAMP('2015-08-30 10:20:30');
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('00:00:00'),('00:00:01');
-SELECT * FROM t1 WHERE DATE(a)<=DATE'2015-08-30' AND a='00:00:00';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE DATE(a)<=DATE'2015-08-30' AND a='00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE TIMESTAMP('2015-08-08',a+RAND())<=DATE'2015-08-30' AND a='00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00' and timestamp('2015-08-08',TIME'00:00:00' + rand()) <= DATE'2015-08-30'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE TIMESTAMP('2015-08-08',a+RAND())<=DATE'2015-08-30' AND a='00:00:00.1';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00.100000' and timestamp('2015-08-08',TIME'00:00:00' + rand()) <= DATE'2015-08-30'
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-# MDEV-8795 Equal expression propagation does not work for temporal literals
-#
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('00:00:01'),('00:00:02');
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE COALESCE(a)=TIME'00:00:01' AND COALESCE(a)>=TIME'00:00:01';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = TIME'00:00:01'
-DROP TABLE t1;
-#
-# MDEV-8793 Wrong result set for SELECT ... WHERE COALESCE(time_column)=TIME('00:00:00') AND COALESCE(time_column)=DATE('2015-09-11')
-#
-SET timestamp=UNIX_TIMESTAMP('2015-09-11 20:20:20');
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES('10:20:30'),('00:00:00');
-SELECT * FROM t1 WHERE COALESCE(a)=TIME('00:00:00');
-a
-00:00:00
-SELECT * FROM t1 WHERE COALESCE(a)=DATE('2015-09-11');
-a
-00:00:00
-# TIME cast + DATE cast
-SELECT * FROM t1 WHERE COALESCE(a)=TIME('00:00:00') AND COALESCE(a)=DATE('2015-09-11');
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)=TIME('00:00:00') AND COALESCE(a)=DATE('2015-09-11');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = '00:00:00'
-# TIME cast + DATE literal
-SELECT * FROM t1 WHERE COALESCE(a)=TIME('00:00:00') AND COALESCE(a)=DATE'2015-09-11';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)=TIME('00:00:00') AND COALESCE(a)=DATE'2015-09-11';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = '00:00:00'
-# TIME literal + DATE cast
-SELECT * FROM t1 WHERE COALESCE(a)=TIME'00:00:00' AND COALESCE(a)=DATE('2015-09-11');
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)=TIME'00:00:00' AND COALESCE(a)=DATE('2015-09-11');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = TIME'00:00:00'
-# TIME literal + DATE literal
-SELECT * FROM t1 WHERE COALESCE(a)=TIME'00:00:00' AND COALESCE(a)=DATE'2015-09-11';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)=TIME'00:00:00' AND COALESCE(a)=DATE'2015-09-11';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = TIME'00:00:00'
-# TIME-alike string literal + DATE cast
-SELECT * FROM t1 WHERE COALESCE(a)='00:00:00' AND COALESCE(a)=DATE('2015-09-11');
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)='00:00:00' AND COALESCE(a)=DATE('2015-09-11');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = '00:00:00' and coalesce(`test`.`t1`.`a`) = '2015-09-11 00:00:00'
-# TIME-alike string literal + DATE literal
-SELECT * FROM t1 WHERE COALESCE(a)='00:00:00' AND COALESCE(a)=DATE'2015-09-11';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)='00:00:00' AND COALESCE(a)=DATE'2015-09-11';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = '00:00:00' and coalesce(`test`.`t1`.`a`) = DATE'2015-09-11'
-# TIME-alike integer literal + DATE cast
-SELECT * FROM t1 WHERE COALESCE(a)=0 AND COALESCE(a)=DATE('2015-09-11');
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)=0 AND COALESCE(a)=DATE('2015-09-11');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = 0 and coalesce(`test`.`t1`.`a`) = '2015-09-11 00:00:00'
-# TIME-alike integer literal + DATE literal
-SELECT * FROM t1 WHERE COALESCE(a)=0 AND COALESCE(a)=DATE'2015-09-11';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)=0 AND COALESCE(a)=DATE'2015-09-11';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = 0 and coalesce(`test`.`t1`.`a`) = DATE'2015-09-11'
-# DATE cast + TIME cast
-SELECT * FROM t1 WHERE COALESCE(a)=DATE('2015-09-11') AND COALESCE(a)=TIME('00:00:00');
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)=DATE('2015-09-11') AND COALESCE(a)=TIME('00:00:00');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = '2015-09-11 00:00:00'
-# DATE cast + TIME literal
-SELECT * FROM t1 WHERE COALESCE(a)=DATE('2015-09-11') AND COALESCE(a)=TIME'00:00:00';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)=DATE('2015-09-11') AND COALESCE(a)=TIME'00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = '2015-09-11 00:00:00'
-# DATE cast + TIME-alike string literal
-SELECT * FROM t1 WHERE COALESCE(a)=DATE('2015-09-11') AND COALESCE(a)='00:00:00';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)=DATE('2015-09-11') AND COALESCE(a)='00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = '2015-09-11 00:00:00' and coalesce(`test`.`t1`.`a`) = '00:00:00'
-# DATE cast + TIME-alike integer literal
-SELECT * FROM t1 WHERE COALESCE(a)=DATE('2015-09-11') AND COALESCE(a)=0;
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)=DATE('2015-09-11') AND COALESCE(a)=0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = '2015-09-11 00:00:00' and coalesce(`test`.`t1`.`a`) = 0
-# DATE literal + TIME cast
-SELECT * FROM t1 WHERE COALESCE(a)=DATE'2015-09-11' AND COALESCE(a)=TIME('00:00:00');
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)=DATE'2015-09-11' AND COALESCE(a)=TIME('00:00:00');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = DATE'2015-09-11'
-# DATE literal + TIME literal
-SELECT * FROM t1 WHERE COALESCE(a)=DATE'2015-09-11' AND COALESCE(a)=TIME'00:00:00';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)=DATE'2015-09-11' AND COALESCE(a)=TIME'00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = DATE'2015-09-11'
-# DATE literal + TIME-alike string literal
-SELECT * FROM t1 WHERE COALESCE(a)=DATE'2015-09-11' AND COALESCE(a)='00:00:00';
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)=DATE'2015-09-11' AND COALESCE(a)='00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = DATE'2015-09-11' and coalesce(`test`.`t1`.`a`) = '00:00:00'
-# DATE literal + TIME-alike integer literal
-SELECT * FROM t1 WHERE COALESCE(a)=DATE'2015-09-11' AND COALESCE(a)=0;
-a
-00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE COALESCE(a)=DATE'2015-09-11' AND COALESCE(a)=0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = DATE'2015-09-11' and coalesce(`test`.`t1`.`a`) = 0
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-# MDEV-8814 Wrong result for WHERE datetime_column > TIME('00:00:00')
-#
-CREATE TABLE t1 (a DATETIME);
-INSERT INTO t1 VALUES ('2000-09-12 00:00:00'), ('2007-04-25 05:08:49');
-SELECT * FROM t1 WHERE a>TIME'00:00:00';
-a
-SELECT * FROM t1 WHERE a>TIME('00:00:00');
-a
-DROP TABLE t1;
-#
-# MDEV-8660 TIME(int_zerofill_column) returns a wrong result
-#
-CREATE TABLE t1 (a BIGINT(15), b BIGINT(15) ZEROFILL);
-INSERT INTO t1 VALUES (9,9);
-SELECT TIME(a),TIME(b) FROM t1;
-TIME(a) TIME(b)
-00:00:09 00:00:09
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT);
-INSERT INTO t1 VALUES (-9223372036854775808);
-SELECT CAST(a AS TIME), CAST(-9223372036854775808 AS TIME) FROM t1;
-CAST(a AS TIME) CAST(-9223372036854775808 AS TIME)
--838:59:59 -838:59:59
-Warnings:
-Warning 1292 Incorrect time value: '-9223372036854775808' for column 'a' at row 1
-Warning 1292 Truncated incorrect time value: '-9223372036854775808'
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b DECIMAL, c DOUBLE);
-INSERT INTO t1 VALUES (-9000000,-9000000,-9000000);
-INSERT INTO t1 VALUES (-1,-1,-1);
-INSERT INTO t1 VALUES (0,0,0),(1,1,1),(9,9,9);
-INSERT INTO t1 VALUES (9000000,9000000,9000000);
-SELECT a, TIME(a),TIME(b),TIME(c) FROM t1 ORDER BY a;
-a TIME(a) TIME(b) TIME(c)
--9000000 -838:59:59 -838:59:59 -838:59:59.999999
--1 -00:00:01 -00:00:01 -00:00:01.000000
-0 00:00:00 00:00:00 00:00:00.000000
-1 00:00:01 00:00:01 00:00:01.000000
-9 00:00:09 00:00:09 00:00:09.000000
-9000000 838:59:59 838:59:59 838:59:59.999999
-Warnings:
-Warning 1292 Incorrect time value: '-9000000' for column 'a' at row 1
-Warning 1292 Incorrect time value: '-9000000' for column 'b' at row 1
-Warning 1292 Incorrect time value: '-9000000' for column 'c' at row 1
-Warning 1292 Incorrect time value: '9000000' for column 'a' at row 6
-Warning 1292 Incorrect time value: '9000000' for column 'b' at row 6
-Warning 1292 Incorrect time value: '9000000' for column 'c' at row 6
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b DECIMAL, c DOUBLE);
-INSERT INTO t1 VALUES (0,0,0),(1,1,1),(9,9,9);
-INSERT INTO t1 VALUES (9000000,9000000,9000000);
-SELECT a, TIME(a),TIME(b),TIME(c) FROM t1 ORDER BY a;
-a TIME(a) TIME(b) TIME(c)
-0 00:00:00 00:00:00 00:00:00.000000
-1 00:00:01 00:00:01 00:00:01.000000
-9 00:00:09 00:00:09 00:00:09.000000
-9000000 838:59:59 838:59:59 838:59:59.999999
-Warnings:
-Warning 1292 Incorrect time value: '9000000' for column 'a' at row 4
-Warning 1292 Incorrect time value: '9000000' for column 'b' at row 4
-Warning 1292 Incorrect time value: '9000000' for column 'c' at row 4
-DROP TABLE t1;
-#
-# MDEV-8862 Wrong field type for MAX(COALESCE(datetime_column))
-#
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('10:10:10'),('10:20:30');
-SELECT MAX(a), MAX(COALESCE(a)) FROM t1;
-MAX(a) MAX(COALESCE(a))
-10:20:30 10:20:30
-DROP TABLE t1;
-#
-# MDEV-15321: different results when using value of optimizer_use_condition_selectivity=4 and =1
-#
-SET @save_old_mode=@@old_mode;
-SET @@old_mode=zero_date_time_cast;
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('0000-00-00 10:20:30'),('0000-00-00 10:20:31');
-INSERT INTO t1 VALUES ('0000-00-01 10:20:30'),('0000-00-01 10:20:31');
-INSERT INTO t1 VALUES ('31 10:20:30'),('32 10:20:30'),('33 10:20:30'),('34 10:20:30');
-SET @save_optimizer_use_condition_selectivity= @@optimizer_use_condition_selectivity;
-SET @@optimizer_use_condition_selectivity=1;
-SELECT * FROM t1 WHERE a='0000-00-01 10:20:30' AND LENGTH(a)=8;
-a
-34:20:30
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='0000-00-01 10:20:30' AND LENGTH(a)=8;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '0000-00-01 10:20:30' and octet_length(`test`.`t1`.`a`) = 8
-SET @@optimizer_use_condition_selectivity=4;
-SELECT * FROM t1 WHERE a='0000-00-01 10:20:30' AND LENGTH(a)=8;
-a
-34:20:30
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='0000-00-01 10:20:30' AND LENGTH(a)=8;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 8 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '0000-00-01 10:20:30' and octet_length(`test`.`t1`.`a`) = 8
-drop table t1;
-SET @@optimizer_use_condition_selectivity= @save_optimizer_use_condition_selectivity;
-set @@old_mode= @save_old_mode;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9393 Split Copy_field::get_copy_func() into virtual methods in Field
-#
-CREATE TABLE t1 (a YEAR, b TIME, c YEAR);
-CREATE TABLE t2 (a YEAR);
-INSERT INTO t2 VALUES (0),(1999),(2000),(2030),(2050),(2070);
-INSERT INTO t1 (a,b,c) SELECT a,a,a FROM t2;
-Warnings:
-Warning 1265 Data truncated for column 'b' at row 2
-Warning 1265 Data truncated for column 'b' at row 6
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 MODIFY c TIME;
-Warnings:
-Warning 1265 Data truncated for column 'c' at row 2
-Warning 1265 Data truncated for column 'c' at row 6
-SELECT * FROM t1;
-a b c
-0000 00:00:00 00:00:00
-1999 00:00:00 00:00:00
-2000 00:20:00 00:20:00
-2030 00:20:30 00:20:30
-2050 00:20:50 00:20:50
-2070 00:00:00 00:00:00
-DROP TABLE t1,t2;
-#
-# MDEV-10817 CAST(MAX(DATE'2001-01-01') AS TIME) returns a wrong result
-#
-SELECT CAST(DATE'2001-01-01' AS TIME);
-CAST(DATE'2001-01-01' AS TIME)
-00:00:00
-SELECT CAST(MAX(DATE'2001-01-01') AS TIME);
-CAST(MAX(DATE'2001-01-01') AS TIME)
-00:00:00
-CREATE FUNCTION f1() RETURNS DATE RETURN DATE'2001-01-01';
-SELECT CAST(f1() AS TIME);
-CAST(f1() AS TIME)
-00:00:00
-DROP FUNCTION f1;
-#
-# End of 10.2 tests
-#
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-11514 IN with a mixture of TIME and DATETIME returns a wrong result
-#
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 00:00:00');
-SELECT TIME'10:20:30' IN (102030,TIME'10:20:31');
-TIME'10:20:30' IN (102030,TIME'10:20:31')
-1
-SELECT TIME'10:20:30' IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32');
-TIME'10:20:30' IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32')
-1
-CREATE TABLE t1 (a TIME);
-INSERT INTO t1 VALUES ('10:20:30'),('10:20:31'),('10:20:32');
-SELECT a FROM t1 WHERE a IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32') ORDER BY a;
-a
-10:20:30
-10:20:31
-10:20:32
-DROP TABLE t1;
-SET timestamp=DEFAULT;
-#
-# MDEV-15176 Storing DATETIME-alike VARCHAR data into TIME produces wrong results
-#
-SET sql_mode='';
-CREATE OR REPLACE TABLE t0 (d VARCHAR(64));
-INSERT INTO t0 VALUES ('0000-00-00 10:20:30');
-INSERT INTO t0 VALUES ('0000-00-01 10:20:30');
-INSERT INTO t0 VALUES ('0000-01-00 10:20:30');
-INSERT INTO t0 VALUES ('0000-01-01 10:20:30');
-INSERT INTO t0 VALUES ('0001-00-00 10:20:30');
-INSERT INTO t0 VALUES ('0001-00-01 10:20:30');
-INSERT INTO t0 VALUES ('0001-01-00 10:20:30');
-INSERT INTO t0 VALUES ('0001-01-01 10:20:30');
-SET @@global.mysql56_temporal_format=false;
-CREATE OR REPLACE TABLE t1 (d VARCHAR(64), t0 TIME(0), t1 TIME(1));
-INSERT INTO t1 SELECT d,d,d FROM t0;
-Warnings:
-Note 1265 Data truncated for column 't0' at row 3
-Note 1265 Data truncated for column 't1' at row 3
-Note 1265 Data truncated for column 't0' at row 4
-Note 1265 Data truncated for column 't1' at row 4
-Note 1265 Data truncated for column 't0' at row 5
-Note 1265 Data truncated for column 't1' at row 5
-Note 1265 Data truncated for column 't0' at row 6
-Note 1265 Data truncated for column 't1' at row 6
-Note 1265 Data truncated for column 't0' at row 7
-Note 1265 Data truncated for column 't1' at row 7
-Note 1265 Data truncated for column 't0' at row 8
-Note 1265 Data truncated for column 't1' at row 8
-SELECT * FROM t1 ORDER BY d;
-d t0 t1
-0000-00-00 10:20:30 10:20:30 10:20:30.0
-0000-00-01 10:20:30 34:20:30 34:20:30.0
-0000-01-00 10:20:30 10:20:30 10:20:30.0
-0000-01-01 10:20:30 10:20:30 10:20:30.0
-0001-00-00 10:20:30 10:20:30 10:20:30.0
-0001-00-01 10:20:30 10:20:30 10:20:30.0
-0001-01-00 10:20:30 10:20:30 10:20:30.0
-0001-01-01 10:20:30 10:20:30 10:20:30.0
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 (d VARCHAR(64), t0 TIME(0), t1 TIME(1));
-INSERT INTO t1 SELECT CONCAT(d,'x'),CONCAT(d,'x'),CONCAT(d,'x') FROM t0;
-Warnings:
-Warning 1265 Data truncated for column 't0' at row 1
-Warning 1265 Data truncated for column 't1' at row 1
-Warning 1265 Data truncated for column 't0' at row 2
-Warning 1265 Data truncated for column 't1' at row 2
-Warning 1265 Data truncated for column 't0' at row 3
-Warning 1265 Data truncated for column 't1' at row 3
-Warning 1265 Data truncated for column 't0' at row 4
-Warning 1265 Data truncated for column 't1' at row 4
-Warning 1265 Data truncated for column 't0' at row 5
-Warning 1265 Data truncated for column 't1' at row 5
-Warning 1265 Data truncated for column 't0' at row 6
-Warning 1265 Data truncated for column 't1' at row 6
-Warning 1265 Data truncated for column 't0' at row 7
-Warning 1265 Data truncated for column 't1' at row 7
-Warning 1265 Data truncated for column 't0' at row 8
-Warning 1265 Data truncated for column 't1' at row 8
-SELECT * FROM t1;
-d t0 t1
-0000-00-00 10:20:30x 10:20:30 10:20:30.0
-0000-00-01 10:20:30x 34:20:30 34:20:30.0
-0000-01-00 10:20:30x 10:20:30 10:20:30.0
-0000-01-01 10:20:30x 10:20:30 10:20:30.0
-0001-00-00 10:20:30x 10:20:30 10:20:30.0
-0001-00-01 10:20:30x 10:20:30 10:20:30.0
-0001-01-00 10:20:30x 10:20:30 10:20:30.0
-0001-01-01 10:20:30x 10:20:30 10:20:30.0
-DROP TABLE t1;
-SET @@global.mysql56_temporal_format=true;
-CREATE OR REPLACE TABLE t1 (d VARCHAR(64), t0 TIME(0), t1 TIME(1));
-INSERT INTO t1 SELECT d,d,d FROM t0;
-Warnings:
-Note 1265 Data truncated for column 't0' at row 3
-Note 1265 Data truncated for column 't1' at row 3
-Note 1265 Data truncated for column 't0' at row 4
-Note 1265 Data truncated for column 't1' at row 4
-Note 1265 Data truncated for column 't0' at row 5
-Note 1265 Data truncated for column 't1' at row 5
-Note 1265 Data truncated for column 't0' at row 6
-Note 1265 Data truncated for column 't1' at row 6
-Note 1265 Data truncated for column 't0' at row 7
-Note 1265 Data truncated for column 't1' at row 7
-Note 1265 Data truncated for column 't0' at row 8
-Note 1265 Data truncated for column 't1' at row 8
-SELECT * FROM t1;
-d t0 t1
-0000-00-00 10:20:30 10:20:30 10:20:30.0
-0000-00-01 10:20:30 34:20:30 34:20:30.0
-0000-01-00 10:20:30 10:20:30 10:20:30.0
-0000-01-01 10:20:30 10:20:30 10:20:30.0
-0001-00-00 10:20:30 10:20:30 10:20:30.0
-0001-00-01 10:20:30 10:20:30 10:20:30.0
-0001-01-00 10:20:30 10:20:30 10:20:30.0
-0001-01-01 10:20:30 10:20:30 10:20:30.0
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 (d VARCHAR(64), t0 TIME(0), t1 TIME(1));
-INSERT INTO t1 SELECT CONCAT(d,'x'),CONCAT(d,'x'),CONCAT(d,'x') FROM t0;
-Warnings:
-Warning 1265 Data truncated for column 't0' at row 1
-Warning 1265 Data truncated for column 't1' at row 1
-Warning 1265 Data truncated for column 't0' at row 2
-Warning 1265 Data truncated for column 't1' at row 2
-Warning 1265 Data truncated for column 't0' at row 3
-Warning 1265 Data truncated for column 't1' at row 3
-Warning 1265 Data truncated for column 't0' at row 4
-Warning 1265 Data truncated for column 't1' at row 4
-Warning 1265 Data truncated for column 't0' at row 5
-Warning 1265 Data truncated for column 't1' at row 5
-Warning 1265 Data truncated for column 't0' at row 6
-Warning 1265 Data truncated for column 't1' at row 6
-Warning 1265 Data truncated for column 't0' at row 7
-Warning 1265 Data truncated for column 't1' at row 7
-Warning 1265 Data truncated for column 't0' at row 8
-Warning 1265 Data truncated for column 't1' at row 8
-SELECT * FROM t1 ORDER BY d;
-d t0 t1
-0000-00-00 10:20:30x 10:20:30 10:20:30.0
-0000-00-01 10:20:30x 34:20:30 34:20:30.0
-0000-01-00 10:20:30x 10:20:30 10:20:30.0
-0000-01-01 10:20:30x 10:20:30 10:20:30.0
-0001-00-00 10:20:30x 10:20:30 10:20:30.0
-0001-00-01 10:20:30x 10:20:30 10:20:30.0
-0001-01-00 10:20:30x 10:20:30 10:20:30.0
-0001-01-01 10:20:30x 10:20:30 10:20:30.0
-DROP TABLE t1;
-DROP TABLE t0;
-SET sql_mode=DEFAULT;
-#
-# MDEV-15287 Bad result for LEAST/GREATEST(datetime_alike_string, time)
-#
-SELECT
-GREATEST('2010-01-01 10:10:10',TIME('-20:20:20')) AS gt_minus20_implicit,
-GREATEST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('-20:20:20')) AS gt_minis20_explicit,
-GREATEST('2010-01-01 10:10:10',TIME('20:20:20')) AS gt_plus20_implicit,
-GREATEST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('20:20:20')) AS gt_plus20_explicit;
-gt_minus20_implicit 10:10:10.000000
-gt_minis20_explicit 10:10:10.000000
-gt_plus20_implicit 20:20:20.000000
-gt_plus20_explicit 20:20:20.000000
-SELECT
-HOUR(GREATEST('2010-01-01 10:10:10',TIME('-20:20:20'))) AS gt_minus20_implicit,
-HOUR(GREATEST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('-20:20:20'))) AS gt_minis20_explicit,
-HOUR(GREATEST('2010-01-01 10:10:10',TIME('20:20:20'))) AS gt_plus20_implicit,
-HOUR(GREATEST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('20:20:20'))) AS gt_plus20_explicit;
-gt_minus20_implicit 10
-gt_minis20_explicit 10
-gt_plus20_implicit 20
-gt_plus20_explicit 20
-SELECT
-LEAST('2010-01-01 10:10:10',TIME('-20:20:20')) AS lt_minus20_implicit,
-LEAST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('-20:20:20')) AS lt_minus20_explicit,
-LEAST('2010-01-01 10:10:10',TIME('20:20:20')) AS lt_plus20_implicit,
-LEAST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('20:20:20')) AS lt_plus20_explicit;
-lt_minus20_implicit -20:20:20.000000
-lt_minus20_explicit -20:20:20.000000
-lt_plus20_implicit 10:10:10.000000
-lt_plus20_explicit 10:10:10.000000
-SELECT
-HOUR(LEAST('2010-01-01 10:10:10',TIME('-20:20:20'))) AS lt_minus20_implicit,
-HOUR(LEAST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('-20:20:20'))) AS lt_minus20_explicit,
-HOUR(LEAST('2010-01-01 10:10:10',TIME('20:20:20'))) AS lt_plus20_implicit,
-HOUR(LEAST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('20:20:20'))) AS lt_plus20_explicit;
-lt_minus20_implicit 20
-lt_minus20_explicit 20
-lt_plus20_implicit 10
-lt_plus20_explicit 10
-SELECT
-GREATEST('2010-01-01 10:10:10',TIME('-200:20:20')) AS gt_minus200_implicit,
-GREATEST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('-200:20:20')) AS gt_minus200_explictit,
-GREATEST('2010-01-01 10:10:10',TIME('200:20:20')) AS gt_plus200_implicit,
-GREATEST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('200:20:20')) AS gt_plus200_explicit;
-gt_minus200_implicit 10:10:10.000000
-gt_minus200_explictit 10:10:10.000000
-gt_plus200_implicit 200:20:20.000000
-gt_plus200_explicit 200:20:20.000000
-SELECT
-HOUR(GREATEST('2010-01-01 10:10:10',TIME('-200:20:20'))) AS gt_minus200_implicit,
-HOUR(GREATEST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('-200:20:20'))) AS gt_minus200_explictit,
-HOUR(GREATEST('2010-01-01 10:10:10',TIME('200:20:20'))) AS gt_plus200_implicit,
-HOUR(GREATEST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('200:20:20'))) AS gt_plus200_explicit;
-gt_minus200_implicit 10
-gt_minus200_explictit 10
-gt_plus200_implicit 200
-gt_plus200_explicit 200
-SELECT
-LEAST('2010-01-01 10:10:10',TIME('-200:20:20')) AS lt_minus200_implicit,
-LEAST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('-200:20:20')) AS lt_minus200_explictit,
-LEAST('2010-01-01 10:10:10',TIME('200:20:20')) AS lt_plus200_implicit,
-LEAST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('200:20:20')) AS lt_plus200_explicit;
-lt_minus200_implicit -200:20:20.000000
-lt_minus200_explictit -200:20:20.000000
-lt_plus200_implicit 10:10:10.000000
-lt_plus200_explicit 10:10:10.000000
-SELECT
-HOUR(LEAST('2010-01-01 10:10:10',TIME('-200:20:20'))) AS lt_minus200_implicit,
-HOUR(LEAST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('-200:20:20'))) AS lt_minus200_explictit,
-HOUR(LEAST('2010-01-01 10:10:10',TIME('200:20:20'))) AS lt_plus200_implicit,
-HOUR(LEAST(CAST('2010-01-01 10:10:10' AS TIME(6)),TIME('200:20:20'))) AS lt_plus200_explicit;
-lt_minus200_implicit 200
-lt_minus200_explictit 200
-lt_plus200_implicit 10
-lt_plus200_explicit 10
-#
-# MDEV-15293 CAST(AS TIME) returns bad results for LAST_VALUE(),NAME_CONST(),SP variable
-#
-SELECT CAST(DATE'2001-01-01' AS TIME);
-CAST(DATE'2001-01-01' AS TIME)
-00:00:00
-SELECT CAST(LAST_VALUE(DATE'2001-01-01') AS TIME);
-CAST(LAST_VALUE(DATE'2001-01-01') AS TIME)
-00:00:00
-SELECT CAST(NAME_CONST('name',DATE'2001-01-01') AS TIME);
-CAST(NAME_CONST('name',DATE'2001-01-01') AS TIME)
-00:00:00
-BEGIN NOT ATOMIC
-DECLARE a DATE DEFAULT '2001-01-01';
-SELECT CAST(a AS TIME);
-END;
-$$
-CAST(a AS TIME)
-00:00:00
-CREATE OR REPLACE TABLE t1 (dt DATE,country VARCHAR(10), amount INT);
-INSERT INTO t1 VALUES ('2000-01-01','DE',102);
-SELECT
-dt, country, amount,
-FIRST_VALUE(dt) OVER () AS first,
-MINUTE(FIRST_VALUE(dt) OVER ()) AS m_first,
-LAST_VALUE(dt) OVER () AS last,
-MINUTE(LAST_VALUE(dt) OVER ()) AS m_last
-FROM t1
-ORDER BY country, dt;
-dt country amount first m_first last m_last
-2000-01-01 DE 102 2000-01-01 0 2000-01-01 0
-SELECT
-dt, country, amount,
-FIRST_VALUE(dt) OVER () AS first,
-CAST(FIRST_VALUE(dt) OVER () AS TIME) AS t_first,
-LAST_VALUE(dt) OVER () AS last,
-CAST(LAST_VALUE(dt) OVER () AS TIME) AS t_last
-FROM t1
-ORDER BY country, dt;
-dt country amount first t_first last t_last
-2000-01-01 DE 102 2000-01-01 00:00:00 2000-01-01 00:00:00
-DROP TABLE t1;
-#
-# MDEV-15310 Range optimizer does not work well for "WHERE temporal_column NOT IN (const_list)"
-#
-#
-# TIME(0), positive within 24 hour
-#
-CREATE TABLE t1 (a TIME, filler CHAR(200), KEY(a));
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:01', 'no');
-INSERT INTO t1 VALUES ('23:00:02', 'no');
-INSERT INTO t1 VALUES ('23:00:03', 'yes');
-INSERT INTO t1 VALUES ('23:00:04', 'yes');
-EXPLAIN SELECT * FROM t1 WHERE a NOT IN ('23:00:01','23:00:02');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 4 NULL 5 Using index condition
-SELECT * FROM t1 WHERE a NOT IN ('23:00:01','23:00:02');
-a filler
-23:00:03 yes
-23:00:04 yes
-DROP TABLE t1;
-#
-# TIME(0), negative
-#
-CREATE TABLE t1 (a TIME, filler CHAR(200), KEY(a));
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:01', 'no');
-INSERT INTO t1 VALUES ('-23:00:02', 'no');
-INSERT INTO t1 VALUES ('-23:00:03', 'yes');
-INSERT INTO t1 VALUES ('-23:00:04', 'yes');
-EXPLAIN SELECT * FROM t1 WHERE a NOT IN ('-23:00:01','-23:00:02');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 4 NULL 4 Using index condition
-SELECT * FROM t1 WHERE a NOT IN ('-23:00:01','-23:00:02');
-a filler
--23:00:04 yes
--23:00:03 yes
-DROP TABLE t1;
-#
-# TIME(0), positive ouside 24 hours
-#
-CREATE TABLE t1 (a TIME, filler CHAR(200), KEY(a));
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:01', 'no');
-INSERT INTO t1 VALUES ('24:00:02', 'no');
-INSERT INTO t1 VALUES ('24:00:03', 'yes');
-INSERT INTO t1 VALUES ('24:00:04', 'yes');
-EXPLAIN SELECT * FROM t1 WHERE a NOT IN ('24:00:01','24:00:02');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 4 NULL 5 Using index condition
-SELECT * FROM t1 WHERE a NOT IN ('24:00:01','24:00:02');
-a filler
-24:00:03 yes
-24:00:04 yes
-DROP TABLE t1;
-#
-# TIME(0), negative, ouside 24 hours
-#
-CREATE TABLE t1 (a TIME, filler CHAR(200), KEY(a));
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:01', 'no');
-INSERT INTO t1 VALUES ('-24:00:02', 'no');
-INSERT INTO t1 VALUES ('-24:00:03', 'yes');
-INSERT INTO t1 VALUES ('-24:00:04', 'yes');
-EXPLAIN SELECT * FROM t1 WHERE a NOT IN ('-24:00:01','-24:00:02');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 4 NULL 4 Using index condition
-SELECT * FROM t1 WHERE a NOT IN ('-24:00:01','-24:00:02');
-a filler
--24:00:04 yes
--24:00:03 yes
-DROP TABLE t1;
-#
-# TIME(0), positive, huge
-#
-CREATE TABLE t1 (a TIME, filler CHAR(200), KEY(a));
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:01', 'no');
-INSERT INTO t1 VALUES ('838:00:02', 'no');
-INSERT INTO t1 VALUES ('838:00:03', 'yes');
-INSERT INTO t1 VALUES ('838:00:04', 'yes');
-EXPLAIN SELECT * FROM t1 WHERE a NOT IN ('838:00:01','838:00:02');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 4 NULL 5 Using index condition
-SELECT * FROM t1 WHERE a NOT IN ('838:00:01','838:00:02');
-a filler
-838:00:03 yes
-838:00:04 yes
-DROP TABLE t1;
-#
-# TIME(0), negative, huge
-#
-CREATE TABLE t1 (a TIME, filler CHAR(200), KEY(a));
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:01', 'no');
-INSERT INTO t1 VALUES ('-838:00:02', 'no');
-INSERT INTO t1 VALUES ('-838:00:03', 'yes');
-INSERT INTO t1 VALUES ('-838:00:04', 'yes');
-EXPLAIN SELECT * FROM t1 WHERE a NOT IN ('-838:00:01','-838:00:02');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 4 NULL 4 Using index condition
-SELECT * FROM t1 WHERE a NOT IN ('-838:00:01','-838:00:02');
-a filler
--838:00:04 yes
--838:00:03 yes
-DROP TABLE t1;
-#
-# TIME(1), positive within 24 hours
-#
-CREATE TABLE t1 (a TIME(1), filler CHAR(200), KEY(a));
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('23:00:02.1', 'no');
-INSERT INTO t1 VALUES ('23:00:03.1', 'yes');
-INSERT INTO t1 VALUES ('23:00:04.1', 'yes');
-EXPLAIN SELECT * FROM t1 WHERE a NOT IN ('23:00:01.1','23:00:02.1');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 5 Using index condition
-SELECT * FROM t1 WHERE a NOT IN ('23:00:01.1','23:00:02.1');
-a filler
-23:00:03.1 yes
-23:00:04.1 yes
-DROP TABLE t1;
-#
-# TIME(1), negative within 24 hours
-#
-CREATE TABLE t1 (a TIME(1), filler CHAR(200), KEY(a));
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:02.1', 'no');
-INSERT INTO t1 VALUES ('-23:00:03.1', 'yes');
-INSERT INTO t1 VALUES ('-23:00:04.1', 'yes');
-EXPLAIN SELECT * FROM t1 WHERE a NOT IN ('-23:00:01.1','-23:00:02.1');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 4 Using index condition
-SELECT * FROM t1 WHERE a NOT IN ('-23:00:01.1','-23:00:02.1');
-a filler
--23:00:04.1 yes
--23:00:03.1 yes
-DROP TABLE t1;
-#
-# TIME(1), positive, huge
-#
-CREATE TABLE t1 (a TIME(1), filler CHAR(200), KEY(a));
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('838:00:02.1', 'no');
-INSERT INTO t1 VALUES ('838:00:03.1', 'yes');
-INSERT INTO t1 VALUES ('838:00:04.1', 'yes');
-EXPLAIN SELECT * FROM t1 WHERE a NOT IN ('838:00:01.1','838:00:02.1');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 5 Using index condition
-SELECT * FROM t1 WHERE a NOT IN ('838:00:01.1','838:00:02.1');
-a filler
-838:00:03.1 yes
-838:00:04.1 yes
-DROP TABLE t1;
-#
-# TIME(1), negative, huge
-#
-CREATE TABLE t1 (a TIME(1), filler CHAR(200), KEY(a));
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:01.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:02.1', 'no');
-INSERT INTO t1 VALUES ('-838:00:03.1', 'yes');
-INSERT INTO t1 VALUES ('-838:00:04.1', 'yes');
-EXPLAIN SELECT * FROM t1 WHERE a NOT IN ('-838:00:01.1','-838:00:02.1');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range a a 5 NULL 4 Using index condition
-SELECT * FROM t1 WHERE a NOT IN ('-838:00:01.1','-838:00:02.1');
-a filler
--838:00:04.1 yes
--838:00:03.1 yes
-DROP TABLE t1;
diff --git a/mysql-test/r/type_time_6065.result b/mysql-test/r/type_time_6065.result
deleted file mode 100644
index 56de96870b6..00000000000
--- a/mysql-test/r/type_time_6065.result
+++ /dev/null
@@ -1,2354 +0,0 @@
-SET TIMESTAMP=UNIX_TIMESTAMP('2012-01-31 10:14:35');
-CREATE TABLE t1 (col_time_key TIME, KEY(col_time_key));
-INSERT INTO t1 VALUES ('00:00:00'),('-24:00:00'),('-48:00:00'),('24:00:00'),('48:00:00');
-CREATE TABLE t2 (col_datetime_key DATETIME, KEY(col_datetime_key));
-INSERT INTO t2 SELECT * FROM t1;
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key = col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` = `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key = col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key = col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` = `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key = col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key = col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-1 SIMPLE t2 ref col_datetime_key col_datetime_key 6 test.t1.col_time_key 1 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` = `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key = col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key = col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-1 SIMPLE t2 ref col_datetime_key col_datetime_key 6 test.t1.col_time_key 1 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` = `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key = col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key = col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` = `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key = col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key = col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` = `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key = col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key = col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using where; Using index
-1 SIMPLE t2 ref col_datetime_key col_datetime_key 6 test.t1.col_time_key 1 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` = `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key = col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key = col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using where; Using index
-1 SIMPLE t2 ref col_datetime_key col_datetime_key 6 test.t1.col_time_key 1 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` = `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key = col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key = col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` = `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key = col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key = col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` = `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key = col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key = col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-1 SIMPLE t1 ref col_time_key col_time_key 4 test.t2.col_datetime_key 2 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` = `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key = col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key = col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where
-1 SIMPLE t1 ref col_time_key col_time_key 4 test.t2.col_datetime_key 2 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` = `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key = col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key = col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` = `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key = col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key = col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` = `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key = col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key = col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using where; Using index
-1 SIMPLE t1 ref col_time_key col_time_key 4 test.t2.col_datetime_key 2 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` = `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key = col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key = col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using where; Using index
-1 SIMPLE t1 ref col_time_key col_time_key 4 test.t2.col_datetime_key 2 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` = `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key = col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key >= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` >= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key >= col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key >= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` >= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key >= col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-29 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-01-31 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-01 00:00:00
-24:00:00 2012-02-02 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key >= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` >= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key >= col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key >= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` >= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key >= col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-29 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-01-31 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-01 00:00:00
-24:00:00 2012-02-02 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key >= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` >= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key >= col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key >= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` >= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key >= col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-29 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-01-31 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-01 00:00:00
-24:00:00 2012-02-02 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key >= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` >= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key >= col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key >= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` >= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key >= col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-29 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-01-31 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-01 00:00:00
-24:00:00 2012-02-02 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key >= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` >= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key >= col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 -48:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-01 00:00:00 48:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key >= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` >= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key >= col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key >= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` >= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key >= col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 -48:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-01 00:00:00 48:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key >= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` >= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key >= col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key >= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` >= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key >= col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 -48:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-01 00:00:00 48:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key >= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` >= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key >= col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key >= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` >= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key >= col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 -48:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-01 00:00:00 48:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key >= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` >= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key >= col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key > col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` > `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key > col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key > col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` > `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key > col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key > col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` > `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key > col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key > col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` > `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key > col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key > col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` > `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key > col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key > col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` > `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key > col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key > col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` > `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key > col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key > col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` > `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key > col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key > col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` > `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key > col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key > col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` > `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key > col_time_key;
-col_datetime_key col_time_key
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key > col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` > `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key > col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key > col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` > `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key > col_time_key;
-col_datetime_key col_time_key
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key > col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` > `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key > col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key > col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` > `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key > col_time_key;
-col_datetime_key col_time_key
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key > col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` > `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key > col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key > col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` > `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key > col_time_key;
-col_datetime_key col_time_key
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key <= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` <= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key <= col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-29 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-01-31 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-01 00:00:00
-24:00:00 2012-02-02 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key <= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` <= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key <= col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key <= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` <= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key <= col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-29 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-01-31 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-01 00:00:00
-24:00:00 2012-02-02 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key <= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` <= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key <= col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key <= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` <= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key <= col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-29 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-01-31 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-01 00:00:00
-24:00:00 2012-02-02 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key <= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` <= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key <= col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key <= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` <= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key <= col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-30 00:00:00
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-29 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-01-31 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-01 00:00:00
-24:00:00 2012-02-02 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key <= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` <= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key <= col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
--24:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-00:00:00 2012-01-31 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-24:00:00 2012-02-01 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-48:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key <= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` <= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key <= col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key <= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` <= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key <= col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 -48:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-01 00:00:00 48:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key <= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` <= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key <= col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key <= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` <= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key <= col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 -48:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-01 00:00:00 48:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key <= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` <= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key <= col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key <= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` <= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key <= col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 -48:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-01 00:00:00 48:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key <= col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` <= `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key <= col_datetime_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key <= col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` <= `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key <= col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 -48:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 -24:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 00:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 24:00:00
-2012-02-01 00:00:00 48:00:00
-2012-02-02 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key < col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` < `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key < col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key < col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` < `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key < col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key < col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` < `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key < col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key < col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` IGNORE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` < `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 ignore INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key < col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key < col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` < `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_time_key < col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key < col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` IGNORE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` < `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 ignore INDEX (col_datetime_key)
-WHERE col_datetime_key < col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key < col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t1`.`col_time_key` < `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_time_key < col_datetime_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-31 00:00:00
--24:00:00 2012-02-01 00:00:00
--24:00:00 2012-02-02 00:00:00
--48:00:00 2012-01-30 00:00:00
--48:00:00 2012-01-31 00:00:00
--48:00:00 2012-02-01 00:00:00
--48:00:00 2012-02-02 00:00:00
-00:00:00 2012-02-01 00:00:00
-00:00:00 2012-02-02 00:00:00
-24:00:00 2012-02-02 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key < col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 index col_time_key col_time_key 4 NULL 5 100.00 Using index
-1 SIMPLE t2 ALL col_datetime_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t1`.`col_time_key` AS `col_time_key`,`test`.`t2`.`col_datetime_key` AS `col_datetime_key` from `test`.`t1` FORCE INDEX (`col_time_key`) straight_join `test`.`t2` FORCE INDEX (`col_datetime_key`) where `test`.`t2`.`col_datetime_key` < `test`.`t1`.`col_time_key`
-SELECT * FROM
-t1 force INDEX (col_time_key)
-STRAIGHT_JOIN
-t2 force INDEX (col_datetime_key)
-WHERE col_datetime_key < col_time_key;
-col_time_key col_datetime_key
--24:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-29 00:00:00
-00:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-29 00:00:00
-24:00:00 2012-01-30 00:00:00
-24:00:00 2012-01-31 00:00:00
-48:00:00 2012-01-29 00:00:00
-48:00:00 2012-01-30 00:00:00
-48:00:00 2012-01-31 00:00:00
-48:00:00 2012-02-01 00:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key < col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` < `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key < col_datetime_key;
-col_datetime_key col_time_key
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key < col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` < `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key < col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key < col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` < `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key < col_datetime_key;
-col_datetime_key col_time_key
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key < col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 ALL NULL NULL NULL NULL 5 100.00
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` IGNORE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` < `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 ignore INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key < col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key < col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` < `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_time_key < col_datetime_key;
-col_datetime_key col_time_key
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key < col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` IGNORE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` < `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 ignore INDEX (col_time_key)
-WHERE col_datetime_key < col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 48:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key < col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t1`.`col_time_key` < `test`.`t2`.`col_datetime_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_time_key < col_datetime_key;
-col_datetime_key col_time_key
-2012-01-30 00:00:00 -48:00:00
-2012-01-31 00:00:00 -24:00:00
-2012-01-31 00:00:00 -48:00:00
-2012-02-01 00:00:00 -24:00:00
-2012-02-01 00:00:00 -48:00:00
-2012-02-01 00:00:00 00:00:00
-2012-02-02 00:00:00 -24:00:00
-2012-02-02 00:00:00 -48:00:00
-2012-02-02 00:00:00 00:00:00
-2012-02-02 00:00:00 24:00:00
-EXPLAIN EXTENDED SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key < col_time_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 index col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index
-1 SIMPLE t1 ALL col_time_key NULL NULL NULL 5 100.00 Range checked for each record (index map: 0x1)
-Warnings:
-Note 1003 select `test`.`t2`.`col_datetime_key` AS `col_datetime_key`,`test`.`t1`.`col_time_key` AS `col_time_key` from `test`.`t2` FORCE INDEX (`col_datetime_key`) straight_join `test`.`t1` FORCE INDEX (`col_time_key`) where `test`.`t2`.`col_datetime_key` < `test`.`t1`.`col_time_key`
-SELECT * FROM
-t2 force INDEX (col_datetime_key)
-STRAIGHT_JOIN
-t1 force INDEX (col_time_key)
-WHERE col_datetime_key < col_time_key;
-col_datetime_key col_time_key
-2012-01-29 00:00:00 -24:00:00
-2012-01-29 00:00:00 00:00:00
-2012-01-29 00:00:00 24:00:00
-2012-01-29 00:00:00 48:00:00
-2012-01-30 00:00:00 00:00:00
-2012-01-30 00:00:00 24:00:00
-2012-01-30 00:00:00 48:00:00
-2012-01-31 00:00:00 24:00:00
-2012-01-31 00:00:00 48:00:00
-2012-02-01 00:00:00 48:00:00
-DROP TABLE t1,t2;
-CREATE TABLE t1 (
-pk INT NOT NULL AUTO_INCREMENT,
-col_int_nokey INT,
-col_int_key INT NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key)
-);
-INSERT INTO t1 VALUES (10,1,7), (11,7,0), (12,4,9), (13,7,3),
-(14,0,4), (15,2,2), (16,9,5), (17,4,3), (18,0,1), (19,9,3), (20,1,6),
-(21,3,7), (22,8,5), (23,8,1), (24,18,204), (25,84,224), (26,6,9),
-(27,3,5), (28,6,0), (29,6,3);
-CREATE TABLE t2 (
-col_int_nokey INT NOT NULL,
-col_datetime_key DATETIME NOT NULL,
-col_varchar_key VARCHAR(1) NOT NULL,
-KEY col_datetime_key (col_datetime_key),
-KEY col_varchar_key (col_varchar_key)
-);
-INSERT INTO t2 VALUES (1,'2001-11-04 19:07:55','k');
-CREATE TABLE t3 (
-col_time_key TIME,
-KEY col_time_key (col_time_key)
-);
-INSERT INTO t3 VALUES ('21:22:34'), ('10:50:38'), ('00:21:38'),
-('04:08:02'), ('16:25:11'), ('10:14:58'), ('19:47:59'), ('11:14:24'),
-('00:00:00'), ('00:00:00'), ('15:57:25'), ('07:05:51'), ('19:22:21'),
-('03:53:16'), ('09:16:38'), ('15:37:26'), ('00:00:00'), ('05:03:03'),
-('02:59:24'), ('00:01:58');
-EXPLAIN EXTENDED SELECT * FROM t2 STRAIGHT_JOIN t3 FORCE INDEX (col_time_key)
-ON t3.col_time_key > t2.col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system col_datetime_key NULL NULL NULL 1 100.00
-1 SIMPLE t3 index col_time_key col_time_key 4 NULL 20 100.00 Using where; Using index
-Warnings:
-Note 1003 select 1 AS `col_int_nokey`,'2001-11-04 19:07:55' AS `col_datetime_key`,'k' AS `col_varchar_key`,`test`.`t3`.`col_time_key` AS `col_time_key` from `test`.`t3` FORCE INDEX (`col_time_key`) where `test`.`t3`.`col_time_key` > '2001-11-04 19:07:55'
-SELECT * FROM t2 STRAIGHT_JOIN t3 FORCE INDEX (col_time_key)
-ON t3.col_time_key > t2.col_datetime_key;
-col_int_nokey col_datetime_key col_varchar_key col_time_key
-1 2001-11-04 19:07:55 k 00:00:00
-1 2001-11-04 19:07:55 k 00:00:00
-1 2001-11-04 19:07:55 k 00:00:00
-1 2001-11-04 19:07:55 k 00:01:58
-1 2001-11-04 19:07:55 k 00:21:38
-1 2001-11-04 19:07:55 k 02:59:24
-1 2001-11-04 19:07:55 k 03:53:16
-1 2001-11-04 19:07:55 k 04:08:02
-1 2001-11-04 19:07:55 k 05:03:03
-1 2001-11-04 19:07:55 k 07:05:51
-1 2001-11-04 19:07:55 k 09:16:38
-1 2001-11-04 19:07:55 k 10:14:58
-1 2001-11-04 19:07:55 k 10:50:38
-1 2001-11-04 19:07:55 k 11:14:24
-1 2001-11-04 19:07:55 k 15:37:26
-1 2001-11-04 19:07:55 k 15:57:25
-1 2001-11-04 19:07:55 k 16:25:11
-1 2001-11-04 19:07:55 k 19:22:21
-1 2001-11-04 19:07:55 k 19:47:59
-1 2001-11-04 19:07:55 k 21:22:34
-EXPLAIN EXTENDED SELECT * FROM t2 STRAIGHT_JOIN t3 IGNORE INDEX (col_time_key)
-ON t3.col_time_key > t2.col_datetime_key;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t2 system col_datetime_key NULL NULL NULL 1 100.00
-1 SIMPLE t3 ALL NULL NULL NULL NULL 20 100.00 Using where
-Warnings:
-Note 1003 select 1 AS `col_int_nokey`,'2001-11-04 19:07:55' AS `col_datetime_key`,'k' AS `col_varchar_key`,`test`.`t3`.`col_time_key` AS `col_time_key` from `test`.`t3` IGNORE INDEX (`col_time_key`) where `test`.`t3`.`col_time_key` > '2001-11-04 19:07:55'
-SELECT * FROM t2 STRAIGHT_JOIN t3 IGNORE INDEX (col_time_key)
-ON t3.col_time_key > t2.col_datetime_key;
-col_int_nokey col_datetime_key col_varchar_key col_time_key
-1 2001-11-04 19:07:55 k 00:00:00
-1 2001-11-04 19:07:55 k 00:00:00
-1 2001-11-04 19:07:55 k 00:00:00
-1 2001-11-04 19:07:55 k 00:01:58
-1 2001-11-04 19:07:55 k 00:21:38
-1 2001-11-04 19:07:55 k 02:59:24
-1 2001-11-04 19:07:55 k 03:53:16
-1 2001-11-04 19:07:55 k 04:08:02
-1 2001-11-04 19:07:55 k 05:03:03
-1 2001-11-04 19:07:55 k 07:05:51
-1 2001-11-04 19:07:55 k 09:16:38
-1 2001-11-04 19:07:55 k 10:14:58
-1 2001-11-04 19:07:55 k 10:50:38
-1 2001-11-04 19:07:55 k 11:14:24
-1 2001-11-04 19:07:55 k 15:37:26
-1 2001-11-04 19:07:55 k 15:57:25
-1 2001-11-04 19:07:55 k 16:25:11
-1 2001-11-04 19:07:55 k 19:22:21
-1 2001-11-04 19:07:55 k 19:47:59
-1 2001-11-04 19:07:55 k 21:22:34
-EXPLAIN EXTENDED SELECT outr.col_int_nokey
-FROM t2 as outr
-STRAIGHT_JOIN t3 AS outr2
-ON outr2.col_time_key > outr.col_datetime_key
-WHERE outr.col_int_nokey IN (
-SELECT col_int_key
-FROM t1 AS innr
-WHERE innr.pk >= innr.col_int_nokey
-) AND (
-outr.col_int_nokey <= 6
-OR
-outr.col_varchar_key IS NULL
-);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY outr system col_datetime_key NULL NULL NULL 1 100.00
-1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
-1 PRIMARY outr2 index col_time_key col_time_key 4 NULL 20 100.00 Using where; Using index; Using join buffer (flat, BNL join)
-2 MATERIALIZED innr ref col_int_key col_int_key 4 const 2 100.00 Using where
-Warnings:
-Note 1003 select 1 AS `col_int_nokey` from `test`.`t3` `outr2` semi join (`test`.`t1` `innr`) where `test`.`innr`.`col_int_key` = 1 and `test`.`innr`.`pk` >= `test`.`innr`.`col_int_nokey` and `test`.`outr2`.`col_time_key` > '2001-11-04 19:07:55'
-SELECT outr.col_int_nokey
-FROM t2 as outr
-STRAIGHT_JOIN t3 AS outr2
-ON outr2.col_time_key > outr.col_datetime_key
-WHERE outr.col_int_nokey IN (
-SELECT col_int_key
-FROM t1 AS innr
-WHERE innr.pk >= innr.col_int_nokey
-) AND (
-outr.col_int_nokey <= 6
-OR
-outr.col_varchar_key IS NULL
-);
-col_int_nokey
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-DROP TABLE t1,t2,t3;
-SET TIMESTAMP=0;
-#
-# MDEV-15262 Wrong results for SELECT..WHERE non_indexed_datetime_column=indexed_time_column
-#
-SET TIMESTAMP=UNIX_TIMESTAMP('2012-01-31 10:14:35');
-CREATE TABLE t1 (col_time_key TIME, KEY(col_time_key));
-CREATE TABLE t2 (col_datetime_key DATETIME);
-INSERT INTO t1 VALUES ('-760:00:00'),('760:00:00');
-INSERT INTO t1 VALUES ('-770:00:00'),('770:00:00');
-INSERT INTO t2 SELECT * FROM t1;
-SELECT * FROM t2 STRAIGHT_JOIN t1 IGNORE INDEX(col_time_key) WHERE col_time_key = col_datetime_key;
-col_datetime_key col_time_key
-2011-12-30 08:00:00 -760:00:00
-2012-03-02 16:00:00 760:00:00
-2011-12-29 22:00:00 -770:00:00
-2012-03-03 02:00:00 770:00:00
-SELECT * FROM t2 STRAIGHT_JOIN t1 FORCE INDEX (col_time_key) WHERE col_time_key = col_datetime_key;
-col_datetime_key col_time_key
-2011-12-29 22:00:00 -770:00:00
-2011-12-30 08:00:00 -760:00:00
-2012-03-02 16:00:00 760:00:00
-2012-03-03 02:00:00 770:00:00
-INSERT INTO t1 VALUES ('-838:59:59'),('838:59:59');
-INSERT INTO t2 VALUES (DATE_ADD(CURRENT_DATE, INTERVAL '-838:59:59' HOUR_SECOND));
-INSERT INTO t2 VALUES (DATE_ADD(CURRENT_DATE, INTERVAL '838:59:59' HOUR_SECOND));
-INSERT INTO t2 VALUES (DATE_ADD(CURRENT_DATE, INTERVAL '-839:00:00' HOUR_SECOND));
-INSERT INTO t2 VALUES (DATE_ADD(CURRENT_DATE, INTERVAL '839:00:00' HOUR_SECOND));
-SELECT * FROM t2 STRAIGHT_JOIN t1 IGNORE INDEX(col_time_key) WHERE col_time_key = col_datetime_key;
-col_datetime_key col_time_key
-2011-12-30 08:00:00 -760:00:00
-2012-03-02 16:00:00 760:00:00
-2011-12-29 22:00:00 -770:00:00
-2012-03-03 02:00:00 770:00:00
-2011-12-27 01:00:01 -838:59:59
-2012-03-05 22:59:59 838:59:59
-SELECT * FROM t2 STRAIGHT_JOIN t1 FORCE INDEX (col_time_key) WHERE col_time_key = col_datetime_key;
-col_datetime_key col_time_key
-2011-12-29 22:00:00 -770:00:00
-2011-12-30 08:00:00 -760:00:00
-2012-03-02 16:00:00 760:00:00
-2012-03-03 02:00:00 770:00:00
-2011-12-27 01:00:01 -838:59:59
-2012-03-05 22:59:59 838:59:59
-DROP TABLE t1, t2;
-SET TIMESTAMP=DEFAULT;
diff --git a/mysql-test/r/type_time_hires.result b/mysql-test/r/type_time_hires.result
deleted file mode 100644
index 47185116bea..00000000000
--- a/mysql-test/r/type_time_hires.result
+++ /dev/null
@@ -1,354 +0,0 @@
-SET timestamp=UNIX_TIMESTAMP('2001-02-03 10:20:30');
-drop table if exists t1, t2, t3;
-create table t1 (a time(7));
-ERROR 42000: Too big precision 7 specified for 'a'. Maximum is 6
-create table t1 (a time(3), key(a));
-insert t1 values ('2010-12-11 00:20:03.1234');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-insert t1 values ('2010-12-11 15:47:11.1234');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-insert t1 values (20101211010203.45678);
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-insert t1 values (20101211030405.789e0);
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-insert ignore t1 values (99991231235959e1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-select * from t1;
-a
-00:20:03.123
-01:02:03.456
-03:04:05.789
-15:47:11.123
-838:59:59.999
-select truncate(a, 6) from t1;
-truncate(a, 6)
-2003.123000
-10203.456000
-30405.789062
-154711.123000
-8385959.999000
-select a DIV 1 from t1;
-a DIV 1
-2003
-10203
-30405
-154711
-8385959
-select group_concat(distinct a) from t1;
-group_concat(distinct a)
-00:20:03.123,01:02:03.456,03:04:05.789,15:47:11.123,838:59:59.999
-alter table t1 engine=innodb;
-select * from t1 order by a;
-a
-00:20:03.123
-01:02:03.456
-03:04:05.789
-15:47:11.123
-838:59:59.999
-select * from t1 order by a+0;
-a
-00:20:03.123
-01:02:03.456
-03:04:05.789
-15:47:11.123
-838:59:59.999
-drop table t1;
-create table t1 (a time(4)) engine=innodb;
-insert t1 values ('2010-12-11 01:02:03.456789');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-01:02:03.4567
-select extract(microsecond from a + interval 100 microsecond) from t1 where a>'2010-11-12 01:02:03.456';
-extract(microsecond from a + interval 100 microsecond)
-select a from t1 where a>'2010-11-12 01:02:03.456' group by a;
-a
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` time(4) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-show columns from t1;
-Field Type Null Key Default Extra
-a time(4) YES NULL
-select table_name, column_name, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, datetime_precision, character_set_name, collation_name, column_type, column_key, extra from information_schema.columns where table_name='t1';
-table_name t1
-column_name a
-column_default NULL
-is_nullable YES
-data_type time
-character_maximum_length NULL
-character_octet_length NULL
-numeric_precision NULL
-numeric_scale NULL
-datetime_precision 4
-character_set_name NULL
-collation_name NULL
-column_type time(4)
-column_key
-extra
-select a, a+interval 9876543 microsecond from t1;
-a a+interval 9876543 microsecond
-01:02:03.4567 01:02:13.333243
-update t1 set a=a+interval 9876543 microsecond;
-select * from t1;
-a
-01:02:13.3332
-select a, a + interval 2 year from t1;
-a a + interval 2 year
-01:02:13.3332 NULL
-Warnings:
-Warning 1441 Datetime function: time field overflow
-insert ignore t1 select a + interval 2 year from t1;
-Warnings:
-Warning 1441 Datetime function: time field overflow
-select * from t1;
-a
-01:02:13.3332
-NULL
-delete from t1 where a < 20110101;
-select * from t1;
-a
-NULL
-create table t2 select * from t1;
-create table t3 like t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` time(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` time(4) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-drop table t2, t3;
-insert t1 values ('2010-12-13 14:15:16.222222');
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-select a, a+0, a-1, a*1, a/2 from t1;
-a a+0 a-1 a*1 a/2
-NULL NULL NULL NULL NULL
-14:15:16.2222 141516.2222 141515.2222 141516.2222 70758.11110000
-select max(a), min(a), sum(a), avg(a) from t1;
-max(a) min(a) sum(a) avg(a)
-14:15:16.2222 14:15:16.2222 141516.2222 141516.22220000
-create table t2 select a, a+0, a-1, a*1, a/2 from t1;
-create table t3 select max(a), min(a), sum(a), avg(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` time(4) DEFAULT NULL,
- `a+0` decimal(12,4) DEFAULT NULL,
- `a-1` decimal(12,4) DEFAULT NULL,
- `a*1` decimal(12,4) DEFAULT NULL,
- `a/2` decimal(15,8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `max(a)` time(4) DEFAULT NULL,
- `min(a)` time(4) DEFAULT NULL,
- `sum(a)` decimal(33,4) DEFAULT NULL,
- `avg(a)` decimal(15,8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2, t3;
-create table t1 (f0_time time(0), f1_time time(1), f2_time time(2), f3_time time(3), f4_time time(4), f5_time time(5), f6_time time(6));
-insert t1 values ( '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432');
-Warnings:
-Level Note
-Code 1265
-Message Data truncated for column 'f0_time' at row 1
-Level Note
-Code 1265
-Message Data truncated for column 'f1_time' at row 1
-Level Note
-Code 1265
-Message Data truncated for column 'f2_time' at row 1
-Level Note
-Code 1265
-Message Data truncated for column 'f3_time' at row 1
-Level Note
-Code 1265
-Message Data truncated for column 'f4_time' at row 1
-Level Note
-Code 1265
-Message Data truncated for column 'f5_time' at row 1
-Level Note
-Code 1265
-Message Data truncated for column 'f6_time' at row 1
-select * from t1;
-f0_time 11:14:17
-f1_time 11:14:17.7
-f2_time 11:14:17.76
-f3_time 11:14:17.765
-f4_time 11:14:17.7654
-f5_time 11:14:17.76543
-f6_time 11:14:17.765432
-select cast(f0_time as time(4)) time4_f0_time, cast(f1_time as datetime(3)) datetime3_f1_time, cast(f2_time as date) date_f2_time, cast(f4_time as double) double_f3_time, cast(f4_time as decimal(40,5)) decimal5_f4_time, cast(f5_time as signed) bigint_f5_time, cast(f6_time as char(255)) varchar_f6_time from t1;
-time4_f0_time 11:14:17.0000
-datetime3_f1_time 2001-02-03 11:14:17.700
-date_f2_time 2001-02-03
-double_f3_time 111417.7654
-decimal5_f4_time 111417.76540
-bigint_f5_time 111417
-varchar_f6_time 11:14:17.765432
-create table t2 (time4_f0_time time(4), datetime3_f1_time datetime(3), date_f2_time date, double_f3_time double, decimal5_f4_time decimal(40,5), bigint_f5_time bigint, varchar_f6_time varchar(255));
-insert t2 select * from t1;
-Warnings:
-Level Note
-Code 1265
-Message Data truncated for column 'date_f2_time' at row 1
-select * from t2;
-time4_f0_time 11:14:17.0000
-datetime3_f1_time 2001-02-03 11:14:17.700
-date_f2_time 2001-02-03
-double_f3_time 111417.765
-decimal5_f4_time 111417.76540
-bigint_f5_time 111417
-varchar_f6_time 11:14:17.765432
-alter table t1 change f0_time time4_f0_time time(4), change f1_time datetime3_f1_time datetime(3), change f2_time date_f2_time date, change f3_time double_f3_time double, change f4_time decimal5_f4_time decimal(40,5), change f5_time bigint_f5_time bigint, change f6_time varchar_f6_time varchar(255);
-Warnings:
-Level Note
-Code 1265
-Message Data truncated for column 'date_f2_time' at row 1
-select * from t1;
-time4_f0_time 11:14:17.0000
-datetime3_f1_time 2001-02-03 11:14:17.700
-date_f2_time 2001-02-03
-double_f3_time 111417.765
-decimal5_f4_time 111417.76540
-bigint_f5_time 111417
-varchar_f6_time 11:14:17.765432
-alter table t1 modify time4_f0_time time(0), modify datetime3_f1_time time(1), modify date_f2_time time(2), modify double_f3_time time(3), modify decimal5_f4_time time(4), modify bigint_f5_time time(5), modify varchar_f6_time time(6);
-Warnings:
-Level Note
-Code 1265
-Message Data truncated for column 'datetime3_f1_time' at row 1
-Level Note
-Code 1265
-Message Data truncated for column 'date_f2_time' at row 1
-select * from t1;
-time4_f0_time 11:14:17
-datetime3_f1_time 11:14:17.7
-date_f2_time 00:00:00.00
-double_f3_time 11:14:17.765
-decimal5_f4_time 11:14:17.7654
-bigint_f5_time 11:14:17.00000
-varchar_f6_time 11:14:17.765432
-delete from t1;
-insert t1 select * from t2;
-Warnings:
-Level Note
-Code 1265
-Message Data truncated for column 'datetime3_f1_time' at row 1
-Level Note
-Code 1265
-Message Data truncated for column 'date_f2_time' at row 1
-select * from t1;
-time4_f0_time 11:14:17
-datetime3_f1_time 11:14:17.7
-date_f2_time 00:00:00.00
-double_f3_time 11:14:17.764
-decimal5_f4_time 11:14:17.7654
-bigint_f5_time 11:14:17.00000
-varchar_f6_time 11:14:17.765432
-drop table t1, t2;
-create table t1 (a time(6), b time(6));
-create procedure foo(x time, y time(4)) insert into t1 values (x, y);
-call foo('2010-02-03 4:5:6.789123', '2010-02-03 4:5:6.789123');
-Warnings:
-Note 1265 Data truncated for column 'x' at row 1
-Note 1265 Data truncated for column 'y' at row 1
-select * from t1;
-a b
-04:05:06.000000 04:05:06.789100
-create procedure bar(a int, c time(5))
-begin
-declare b time(4);
-set b = c + interval a microsecond;
-insert t1 values (b, c + interval a microsecond);
-end|
-call bar(1111111, '2011-01-02 3:4:5.123456');
-Warnings:
-Note 1265 Data truncated for column 'c' at row 1
-select * from t1;
-a b
-04:05:06.000000 04:05:06.789100
-03:04:06.234500 03:04:06.234561
-drop procedure foo;
-drop procedure bar;
-create function xyz(s char(20)) returns time(4)
-return addtime('2010-10-10 10:10:10.101010', s);
-select xyz('1:1:1.010101');
-xyz('1:1:1.010101')
-11:11:11.1111
-Warnings:
-Note 1265 Data truncated for column 'xyz('1:1:1.010101')' at row 1
-drop function xyz;
-create view v1 as select * from t1 group by a,b;
-select * from v1;
-a b
-03:04:06.234500 03:04:06.234561
-04:05:06.000000 04:05:06.789100
-show columns from v1;
-Field Type Null Key Default Extra
-a time(6) YES NULL
-b time(6) YES NULL
-create table t2 select * from v1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` time(6) DEFAULT NULL,
- `b` time(6) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t2;
-a b
-03:04:06.234500 03:04:06.234561
-04:05:06.000000 04:05:06.789100
-drop view v1;
-drop table t1, t2;
-SET timestamp=DEFAULT;
-create table t1 (a time(4) not null, key(a));
-insert into t1 values ('1:2:3.001'),('1:2:3'), ('-00:00:00.6'),('-00:00:00.7'),('-00:00:00.8'),('-00:00:00.9'),('-00:00:01.0'),('-00:00:01.1'),('-00:00:01.000000'),('-00:00:01.100001'),('-00:00:01.000002'),('-00:00:01.090000');
-select * from t1 order by a;
-a
--00:00:01.1000
--00:00:01.1000
--00:00:01.0900
--00:00:01.0000
--00:00:01.0000
--00:00:01.0000
--00:00:00.9000
--00:00:00.8000
--00:00:00.7000
--00:00:00.6000
-01:02:03.0000
-01:02:03.0010
-select * from t1 order by a desc;
-a
-01:02:03.0010
-01:02:03.0000
--00:00:00.6000
--00:00:00.7000
--00:00:00.8000
--00:00:00.9000
--00:00:01.0000
--00:00:01.0000
--00:00:01.0000
--00:00:01.0900
--00:00:01.1000
--00:00:01.1000
-select min(a - interval 1 hour), max(a - interval 1 hour) from t1 where a < 0;
-min(a - interval 1 hour) max(a - interval 1 hour)
--01:00:01.1000 -01:00:00.6000
-drop table t1;
-select cast(1e-6 as time(6));
-cast(1e-6 as time(6))
-00:00:00.000001
diff --git a/mysql-test/r/type_timestamp.result b/mysql-test/r/type_timestamp.result
deleted file mode 100644
index b0405bc4ad7..00000000000
--- a/mysql-test/r/type_timestamp.result
+++ /dev/null
@@ -1,1016 +0,0 @@
-drop table if exists t1,t2;
-set time_zone="+03:00";
-CREATE TABLE t1 (a int, t timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-CREATE TABLE t2 (a int, t datetime);
-SET TIMESTAMP=1234;
-insert into t1 values(1,NULL);
-insert into t1 values(2,"2002-03-03");
-SET TIMESTAMP=1235;
-insert into t1 values(3,NULL);
-SET TIMESTAMP=1236;
-insert into t1 (a) values(4);
-insert into t2 values(5,"2002-03-04"),(6,NULL),(7,"2002-03-05"),(8,"00-00-00");
-SET TIMESTAMP=1237;
-insert into t1 select * from t2;
-SET TIMESTAMP=1238;
-insert into t1 (a) select a+1 from t2 where a=8;
-select * from t1;
-a t
-1 1970-01-01 03:20:34
-2 2002-03-03 00:00:00
-3 1970-01-01 03:20:35
-4 1970-01-01 03:20:36
-5 2002-03-04 00:00:00
-6 1970-01-01 03:20:37
-7 2002-03-05 00:00:00
-8 0000-00-00 00:00:00
-9 1970-01-01 03:20:38
-drop table t1,t2;
-SET TIMESTAMP=1234;
-CREATE TABLE t1 (value TEXT NOT NULL, id VARCHAR(32) NOT NULL, stamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (id));
-INSERT INTO t1 VALUES ("my value", "myKey","1999-04-02 00:00:00");
-SELECT stamp FROM t1 WHERE id="myKey";
-stamp
-1999-04-02 00:00:00
-UPDATE t1 SET value="my value" WHERE id="myKey";
-SELECT stamp FROM t1 WHERE id="myKey";
-stamp
-1999-04-02 00:00:00
-UPDATE t1 SET id="myKey" WHERE value="my value";
-SELECT stamp FROM t1 WHERE id="myKey";
-stamp
-1999-04-02 00:00:00
-drop table t1;
-create table t1 (a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values (now());
-select date_format(a,"%Y %y"),year(a),year(now()) from t1;
-date_format(a,"%Y %y") year(a) year(now())
-1970 70 1970 1970
-drop table t1;
-create table t1 (ix timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values (19991101000000),(19990102030405),(19990630232922),(19990601000000),(19990930232922),(19990531232922),(19990501000000),(19991101000000),(19990501000000);
-select ix+0 from t1;
-ix+0
-19991101000000
-19990102030405
-19990630232922
-19990601000000
-19990930232922
-19990531232922
-19990501000000
-19991101000000
-19990501000000
-truncate table t1;
-insert into t1 values ("19991101000000"),("19990102030405"),("19990630232922"),("19990601000000");
-select ix+0 from t1;
-ix+0
-19991101000000
-19990102030405
-19990630232922
-19990601000000
-drop table t1;
-CREATE TABLE t1 (date date, date_time datetime, time_stamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-INSERT INTO t1 VALUES ("1998-12-31","1998-12-31 23:59:59",19981231235959);
-INSERT INTO t1 VALUES ("1999-01-01","1999-01-01 00:00:00",19990101000000);
-INSERT INTO t1 VALUES ("1999-09-09","1999-09-09 23:59:59",19990909235959);
-INSERT INTO t1 VALUES ("2000-01-01","2000-01-01 00:00:00",20000101000000);
-INSERT INTO t1 VALUES ("2000-02-28","2000-02-28 00:00:00",20000228000000);
-INSERT INTO t1 VALUES ("2000-02-29","2000-02-29 00:00:00",20000229000000);
-INSERT INTO t1 VALUES ("2000-03-01","2000-03-01 00:00:00",20000301000000);
-INSERT INTO t1 VALUES ("2000-12-31","2000-12-31 23:59:59",20001231235959);
-INSERT INTO t1 VALUES ("2001-01-01","2001-01-01 00:00:00",20010101000000);
-INSERT INTO t1 VALUES ("2004-12-31","2004-12-31 23:59:59",20041231235959);
-INSERT INTO t1 VALUES ("2005-01-01","2005-01-01 00:00:00",20050101000000);
-INSERT INTO t1 VALUES ("2030-01-01","2030-01-01 00:00:00",20300101000000);
-SELECT * FROM t1;
-date date_time time_stamp
-1998-12-31 1998-12-31 23:59:59 1998-12-31 23:59:59
-1999-01-01 1999-01-01 00:00:00 1999-01-01 00:00:00
-1999-09-09 1999-09-09 23:59:59 1999-09-09 23:59:59
-2000-01-01 2000-01-01 00:00:00 2000-01-01 00:00:00
-2000-02-28 2000-02-28 00:00:00 2000-02-28 00:00:00
-2000-02-29 2000-02-29 00:00:00 2000-02-29 00:00:00
-2000-03-01 2000-03-01 00:00:00 2000-03-01 00:00:00
-2000-12-31 2000-12-31 23:59:59 2000-12-31 23:59:59
-2001-01-01 2001-01-01 00:00:00 2001-01-01 00:00:00
-2004-12-31 2004-12-31 23:59:59 2004-12-31 23:59:59
-2005-01-01 2005-01-01 00:00:00 2005-01-01 00:00:00
-2030-01-01 2030-01-01 00:00:00 2030-01-01 00:00:00
-drop table t1;
-create table t1 (ix timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values (0),(20030101010160),(20030101016001),(20030101240101),(20030132010101),(20031301010101),(20031200000000),(20030000000000);
-Warnings:
-Warning 1265 Data truncated for column 'ix' at row 2
-Warning 1265 Data truncated for column 'ix' at row 3
-Warning 1265 Data truncated for column 'ix' at row 4
-Warning 1265 Data truncated for column 'ix' at row 5
-Warning 1265 Data truncated for column 'ix' at row 6
-Warning 1265 Data truncated for column 'ix' at row 7
-Warning 1265 Data truncated for column 'ix' at row 8
-select ix+0 from t1;
-ix+0
-0
-0
-0
-0
-0
-0
-0
-0
-truncate table t1;
-insert into t1 values ("00000000000000"),("20030101010160"),("20030101016001"),("20030101240101"),("20030132010101"),("20031301010101"),("20031200000000"),("20030000000000");
-Warnings:
-Warning 1265 Data truncated for column 'ix' at row 2
-Warning 1265 Data truncated for column 'ix' at row 3
-Warning 1265 Data truncated for column 'ix' at row 4
-Warning 1265 Data truncated for column 'ix' at row 5
-Warning 1265 Data truncated for column 'ix' at row 6
-Warning 1265 Data truncated for column 'ix' at row 7
-Warning 1265 Data truncated for column 'ix' at row 8
-select ix+0 from t1;
-ix+0
-0
-0
-0
-0
-0
-0
-0
-0
-truncate table t1;
-insert ignore into t1 values ("0000-00-00 00:00:00 some trailer"),("2003-01-01 00:00:00 some trailer");
-Warnings:
-Warning 1265 Data truncated for column 'ix' at row 1
-Warning 1265 Data truncated for column 'ix' at row 2
-select ix+0 from t1;
-ix+0
-0
-20030101000000
-drop table t1;
-create table t1 (t1 timestamp, t2 timestamp default now());
-drop table t1;
-create table t1 (t1 timestamp, t2 timestamp on update now());
-drop table t1;
-create table t1 (t1 timestamp, t2 timestamp default now() on update now());
-drop table t1;
-create table t1 (t1 timestamp default now(), t2 timestamp on update now());
-drop table t1;
-create table t1 (t1 timestamp on update now(), t2 timestamp default now() on update now());
-drop table t1;
-create table t1 (t1 timestamp not null default '2003-01-01 00:00:00', t2 datetime, t3 timestamp NOT NULL DEFAULT '0000-00-00 00:00:00');
-SET TIMESTAMP=1000000000;
-insert into t1 values ();
-SET TIMESTAMP=1000000001;
-update t1 set t2=now();
-SET TIMESTAMP=1000000002;
-insert into t1 (t1,t3) values (default, default);
-select * from t1;
-t1 t2 t3
-2003-01-01 00:00:00 2001-09-09 04:46:41 0000-00-00 00:00:00
-2003-01-01 00:00:00 NULL 0000-00-00 00:00:00
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t1` timestamp NOT NULL DEFAULT '2003-01-01 00:00:00',
- `t2` datetime DEFAULT NULL,
- `t3` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show columns from t1;
-Field Type Null Key Default Extra
-t1 timestamp NO 2003-01-01 00:00:00
-t2 datetime YES NULL
-t3 timestamp NO 0000-00-00 00:00:00
-drop table t1;
-create table t1 (t1 timestamp not null default now(), t2 datetime, t3 timestamp NOT NULL DEFAULT '0000-00-00 00:00:00');
-SET TIMESTAMP=1000000002;
-insert into t1 values ();
-SET TIMESTAMP=1000000003;
-update t1 set t2=now();
-SET TIMESTAMP=1000000003;
-insert into t1 (t1,t3) values (default, default);
-select * from t1;
-t1 t2 t3
-2001-09-09 04:46:42 2001-09-09 04:46:43 0000-00-00 00:00:00
-2001-09-09 04:46:43 NULL 0000-00-00 00:00:00
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t1` timestamp NOT NULL DEFAULT current_timestamp(),
- `t2` datetime DEFAULT NULL,
- `t3` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show columns from t1;
-Field Type Null Key Default Extra
-t1 timestamp NO current_timestamp()
-t2 datetime YES NULL
-t3 timestamp NO 0000-00-00 00:00:00
-drop table t1;
-create table t1 (t1 timestamp not null default '2003-01-01 00:00:00' on update now(), t2 datetime);
-SET TIMESTAMP=1000000004;
-insert into t1 values ();
-select * from t1;
-t1 t2
-2003-01-01 00:00:00 NULL
-SET TIMESTAMP=1000000005;
-update t1 set t2=now();
-SET TIMESTAMP=1000000005;
-insert into t1 (t1) values (default);
-select * from t1;
-t1 t2
-2001-09-09 04:46:45 2001-09-09 04:46:45
-2003-01-01 00:00:00 NULL
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t1` timestamp NOT NULL DEFAULT '2003-01-01 00:00:00' ON UPDATE current_timestamp(),
- `t2` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show columns from t1;
-Field Type Null Key Default Extra
-t1 timestamp NO 2003-01-01 00:00:00 on update current_timestamp()
-t2 datetime YES NULL
-drop table t1;
-create table t1 (t1 timestamp not null default now() on update now(), t2 datetime);
-SET TIMESTAMP=1000000006;
-insert into t1 values ();
-select * from t1;
-t1 t2
-2001-09-09 04:46:46 NULL
-SET TIMESTAMP=1000000007;
-update t1 set t2=now();
-SET TIMESTAMP=1000000007;
-insert into t1 (t1) values (default);
-select * from t1;
-t1 t2
-2001-09-09 04:46:47 2001-09-09 04:46:47
-2001-09-09 04:46:47 NULL
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t1` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `t2` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show columns from t1;
-Field Type Null Key Default Extra
-t1 timestamp NO current_timestamp() on update current_timestamp()
-t2 datetime YES NULL
-drop table t1;
-create table t1 (t1 timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, t2 datetime, t3 timestamp NOT NULL DEFAULT '0000-00-00 00:00:00');
-SET TIMESTAMP=1000000007;
-insert into t1 values ();
-select * from t1;
-t1 t2 t3
-2001-09-09 04:46:47 NULL 0000-00-00 00:00:00
-SET TIMESTAMP=1000000008;
-update t1 set t2=now();
-SET TIMESTAMP=1000000008;
-insert into t1 (t1,t3) values (default, default);
-select * from t1;
-t1 t2 t3
-2001-09-09 04:46:48 2001-09-09 04:46:48 0000-00-00 00:00:00
-2001-09-09 04:46:48 NULL 0000-00-00 00:00:00
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t1` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `t2` datetime DEFAULT NULL,
- `t3` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show columns from t1;
-Field Type Null Key Default Extra
-t1 timestamp NO current_timestamp() on update current_timestamp()
-t2 datetime YES NULL
-t3 timestamp NO 0000-00-00 00:00:00
-drop table t1;
-create table t1 (t1 timestamp not null default current_timestamp on update current_timestamp, t2 datetime);
-SET TIMESTAMP=1000000009;
-insert into t1 values ();
-select * from t1;
-t1 t2
-2001-09-09 04:46:49 NULL
-SET TIMESTAMP=1000000010;
-update t1 set t2=now();
-SET TIMESTAMP=1000000011;
-insert into t1 (t1) values (default);
-select * from t1;
-t1 t2
-2001-09-09 04:46:50 2001-09-09 04:46:50
-2001-09-09 04:46:51 NULL
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `t1` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `t2` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show columns from t1;
-Field Type Null Key Default Extra
-t1 timestamp NO current_timestamp() on update current_timestamp()
-t2 datetime YES NULL
-truncate table t1;
-insert into t1 values ('2004-04-01 00:00:00', '2004-04-01 00:00:00');
-SET TIMESTAMP=1000000012;
-update t1 set t1= '2004-04-02 00:00:00';
-select * from t1;
-t1 t2
-2004-04-02 00:00:00 2004-04-01 00:00:00
-update t1 as ta, t1 as tb set tb.t1= '2004-04-03 00:00:00';
-select * from t1;
-t1 t2
-2004-04-03 00:00:00 2004-04-01 00:00:00
-drop table t1;
-create table t1 (pk int primary key, t1 timestamp not null default current_timestamp on update current_timestamp, bulk int);
-insert into t1 values (1, '2004-04-01 00:00:00', 10);
-SET TIMESTAMP=1000000013;
-replace into t1 set pk = 1, bulk= 20;
-select * from t1;
-pk t1 bulk
-1 2001-09-09 04:46:53 20
-drop table t1;
-create table t1 (pk int primary key, t1 timestamp not null default '2003-01-01 00:00:00' on update current_timestamp, bulk int);
-insert into t1 values (1, '2004-04-01 00:00:00', 10);
-SET TIMESTAMP=1000000014;
-replace into t1 set pk = 1, bulk= 20;
-select * from t1;
-pk t1 bulk
-1 2003-01-01 00:00:00 20
-drop table t1;
-create table t1 (pk int primary key, t1 timestamp not null default current_timestamp on update current_timestamp, bulk int);
-insert into t1 values (1, '2004-04-01 00:00:00', 10);
-SET TIMESTAMP=1000000015;
-replace into t1 set pk = 1, bulk= 20;
-select * from t1;
-pk t1 bulk
-1 2001-09-09 04:46:55 20
-drop table t1;
-create table t1 (t1 timestamp not null default current_timestamp on update current_timestamp);
-insert into t1 values ('2004-04-01 00:00:00');
-SET TIMESTAMP=1000000016;
-alter table t1 add i int default 10;
-select * from t1;
-t1 i
-2004-04-01 00:00:00 10
-drop table t1;
-create table t1 (a timestamp null, b timestamp null);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp NULL DEFAULT NULL,
- `b` timestamp NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values (NULL, NULL);
-SET TIMESTAMP=1000000017;
-insert into t1 values ();
-select * from t1;
-a b
-NULL NULL
-NULL NULL
-drop table t1;
-create table t1 (a timestamp null default current_timestamp on update current_timestamp, b timestamp null);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `b` timestamp NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values (NULL, NULL);
-SET TIMESTAMP=1000000018;
-insert into t1 values ();
-select * from t1;
-a b
-NULL NULL
-2001-09-09 04:46:58 NULL
-drop table t1;
-create table t1 (a timestamp null default null, b timestamp null default '2003-01-01 00:00:00');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp NULL DEFAULT NULL,
- `b` timestamp NULL DEFAULT '2003-01-01 00:00:00'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values (NULL, NULL);
-insert into t1 values (DEFAULT, DEFAULT);
-select * from t1;
-a b
-NULL NULL
-NULL 2003-01-01 00:00:00
-drop table t1;
-create table t1 (a bigint, b bigint);
-insert into t1 values (NULL, NULL), (20030101000000, 20030102000000);
-set timestamp=1000000019;
-alter table t1 modify a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, modify b timestamp NOT NULL DEFAULT '0000-00-00 00:00:0';
-select * from t1;
-a b
-2001-09-09 04:46:59 2001-09-09 04:46:59
-2003-01-01 00:00:00 2003-01-02 00:00:00
-drop table t1;
-create table t1 (a char(2), t timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 values ('a', '2004-01-01 00:00:00'), ('a', '2004-01-01 01:00:00'),
-('b', '2004-02-01 00:00:00');
-select max(t) from t1 group by a;
-max(t)
-2004-01-01 01:00:00
-2004-02-01 00:00:00
-drop table t1;
-set sql_mode='maxdb';
-create table t1 (a timestamp, b timestamp(5));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE "t1" (
- "a" datetime DEFAULT NULL,
- "b" datetime(5) DEFAULT NULL
-)
-set sql_mode='';
-drop table t1;
-create table t1 (a int auto_increment primary key, b int, c timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-insert into t1 (a, b, c) values (1, 0, '2001-01-01 01:01:01'),
-(2, 0, '2002-02-02 02:02:02'), (3, 0, '2003-03-03 03:03:03');
-select * from t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 0 2002-02-02 02:02:02
-3 0 2003-03-03 03:03:03
-update t1 set b = 2, c = c where a = 2;
-select * from t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 0 2003-03-03 03:03:03
-insert into t1 (a) values (4);
-select * from t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 0 2003-03-03 03:03:03
-4 NULL 2001-09-09 04:46:59
-update t1 set c = '2004-04-04 04:04:04' where a = 4;
-select * from t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 0 2003-03-03 03:03:03
-4 NULL 2004-04-04 04:04:04
-insert into t1 (a) values (3), (5) on duplicate key update b = 3, c = c;
-select * from t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 3 2003-03-03 03:03:03
-4 NULL 2004-04-04 04:04:04
-5 NULL 2001-09-09 04:46:59
-insert into t1 (a, c) values (4, '2004-04-04 00:00:00'),
-(6, '2006-06-06 06:06:06') on duplicate key update b = 4;
-select * from t1;
-a b c
-1 0 2001-01-01 01:01:01
-2 2 2002-02-02 02:02:02
-3 3 2003-03-03 03:03:03
-4 4 2001-09-09 04:46:59
-5 NULL 2001-09-09 04:46:59
-6 NULL 2006-06-06 06:06:06
-drop table t1;
-End of 4.1 tests
-set time_zone= @@global.time_zone;
-CREATE TABLE t1 (
-`id` int(11) NOT NULL auto_increment,
-`username` varchar(80) NOT NULL default '',
-`posted_on` timestamp NOT NULL default '0000-00-00 00:00:00',
-PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
-show fields from t1;
-Field Type Null Key Default Extra
-id int(11) NO PRI NULL auto_increment
-username varchar(80) NO
-posted_on timestamp NO 0000-00-00 00:00:00
-select is_nullable from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME='t1' and COLUMN_NAME='posted_on';
-is_nullable
-NO
-drop table t1;
-CREATE TABLE t1 ( f1 INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
-f2 TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-f3 TIMESTAMP NOT NULL default '0000-00-00 00:00:00');
-INSERT INTO t1 (f2,f3) VALUES (NOW(), "0000-00-00 00:00:00");
-INSERT INTO t1 (f2,f3) VALUES (NOW(), NULL);
-INSERT INTO t1 (f2,f3) VALUES (NOW(), ASCII(NULL));
-INSERT INTO t1 (f2,f3) VALUES (NOW(), FROM_UNIXTIME('9999999999'));
-INSERT INTO t1 (f2,f3) VALUES (NOW(), TIME(NULL));
-UPDATE t1 SET f2=NOW(), f3=FROM_UNIXTIME('9999999999') WHERE f1=1;
-SELECT f1,f2-f3 FROM t1;
-f1 f2-f3
-1 0
-2 0
-3 0
-4 0
-5 0
-DROP TABLE t1;
-End of 5.0 tests
-#
-# Bug #55779: select does not work properly in mysql server
-# Version "5.1.42 SUSE MySQL RPM"
-#
-CREATE TABLE t1 (a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, KEY (a));
-INSERT INTO t1 VALUES ('2000-01-01 00:00:00'), ('2000-01-01 00:00:00'),
-('2000-01-01 00:00:01'), ('2000-01-01 00:00:01');
-SELECT a FROM t1 WHERE a >= 20000101000000;
-a
-2000-01-01 00:00:00
-2000-01-01 00:00:00
-2000-01-01 00:00:01
-2000-01-01 00:00:01
-SELECT a FROM t1 WHERE a >= '20000101000000';
-a
-2000-01-01 00:00:00
-2000-01-01 00:00:00
-2000-01-01 00:00:01
-2000-01-01 00:00:01
-DROP TABLE t1;
-#
-# Bug#50774: failed to get the correct resultset when timestamp values
-# are appended with .0
-#
-CREATE TABLE t1 ( a TIMESTAMP, KEY ( a ) );
-INSERT INTO t1 VALUES( '2010-02-01 09:31:01' );
-INSERT INTO t1 VALUES( '2010-02-01 09:31:02' );
-INSERT INTO t1 VALUES( '2010-02-01 09:31:03' );
-INSERT INTO t1 VALUES( '2010-02-01 09:31:04' );
-SELECT * FROM t1 WHERE a >= '2010-02-01 09:31:02.0';
-a
-2010-02-01 09:31:02
-2010-02-01 09:31:03
-2010-02-01 09:31:04
-SELECT * FROM t1 WHERE '2010-02-01 09:31:02.0' <= a;
-a
-2010-02-01 09:31:02
-2010-02-01 09:31:03
-2010-02-01 09:31:04
-SELECT * FROM t1 WHERE a <= '2010-02-01 09:31:02.0';
-a
-2010-02-01 09:31:01
-2010-02-01 09:31:02
-SELECT * FROM t1 WHERE '2010-02-01 09:31:02.0' >= a;
-a
-2010-02-01 09:31:01
-2010-02-01 09:31:02
-EXPLAIN
-SELECT * FROM t1 WHERE a >= '2010-02-01 09:31:02.0';
-id select_type table type possible_keys key key_len ref rows Extra
-x x x range x x x x x x
-SELECT * FROM t1 WHERE a >= '2010-02-01 09:31:02.0';
-a
-2010-02-01 09:31:02
-2010-02-01 09:31:03
-2010-02-01 09:31:04
-CREATE TABLE t2 ( a TIMESTAMP, KEY ( a DESC ) );
-INSERT INTO t2 VALUES( '2010-02-01 09:31:01' );
-INSERT INTO t2 VALUES( '2010-02-01 09:31:02' );
-INSERT INTO t2 VALUES( '2010-02-01 09:31:03' );
-INSERT INTO t2 VALUES( '2010-02-01 09:31:04' );
-INSERT INTO t2 VALUES( '2010-02-01 09:31:05' );
-INSERT INTO t2 VALUES( '2010-02-01 09:31:06' );
-INSERT INTO t2 VALUES( '2010-02-01 09:31:07' );
-INSERT INTO t2 VALUES( '2010-02-01 09:31:08' );
-INSERT INTO t2 VALUES( '2010-02-01 09:31:09' );
-INSERT INTO t2 VALUES( '2010-02-01 09:31:10' );
-INSERT INTO t2 VALUES( '2010-02-01 09:31:11' );
-# The bug would cause the range optimizer's comparison to use an open
-# interval here. This reveals itself only in the number of reads
-# performed.
-FLUSH STATUS;
-EXPLAIN
-SELECT * FROM t2 WHERE a < '2010-02-01 09:31:02.0';
-id select_type table type possible_keys key key_len ref rows Extra
-x x x range x x x x x x
-SELECT * FROM t2 WHERE a < '2010-02-01 09:31:02.0';
-a
-2010-02-01 09:31:01
-SHOW STATUS LIKE 'Handler_read_next';
-Variable_name Value
-Handler_read_next 1
-DROP TABLE t1, t2;
-End of 5.1 tests
-#
-# lp:923429 Crash in decimal_cmp on using UNIX_TIMESTAMP with a wrongly formatted timestamp
-#
-SELECT UNIX_TIMESTAMP('abc') > 0;
-UNIX_TIMESTAMP('abc') > 0
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: 'abc'
-SELECT UNIX_TIMESTAMP('abc');
-UNIX_TIMESTAMP('abc')
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: 'abc'
-
-Bug#50888 valgrind warnings in Field_timestamp::val_str
-
-SET TIMESTAMP=0;
-CREATE TABLE t1(a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
-INSERT INTO t1 VALUES ('2008-02-23 09:23:45'), ('2010-03-05 11:08:02');
-FLUSH TABLES t1;
-SELECT MAX(a) FROM t1;
-MAX(a)
-2010-03-05 11:08:02
-SELECT a FROM t1;
-a
-2008-02-23 09:23:45
-2010-03-05 11:08:02
-DROP TABLE t1;
-End of Bug#50888
-#
-# Bug59330: Incorrect result when comparing an aggregate
-# function with TIMESTAMP
-#
-CREATE TABLE t1 (dt DATETIME, ts TIMESTAMP);
-INSERT INTO t1 VALUES('2011-01-06 12:34:30', '2011-01-06 12:34:30');
-SELECT MAX(dt), MAX(ts) FROM t1;
-MAX(dt) MAX(ts)
-2011-01-06 12:34:30 2011-01-06 12:34:30
-SELECT MAX(ts) < '2010-01-01 00:00:00' FROM t1;
-MAX(ts) < '2010-01-01 00:00:00'
-0
-SELECT MAX(dt) < '2010-01-01 00:00:00' FROM t1;
-MAX(dt) < '2010-01-01 00:00:00'
-0
-SELECT MAX(ts) > '2010-01-01 00:00:00' FROM t1;
-MAX(ts) > '2010-01-01 00:00:00'
-1
-SELECT MAX(dt) > '2010-01-01 00:00:00' FROM t1;
-MAX(dt) > '2010-01-01 00:00:00'
-1
-SELECT MAX(ts) = '2011-01-06 12:34:30' FROM t1;
-MAX(ts) = '2011-01-06 12:34:30'
-1
-SELECT MAX(dt) = '2011-01-06 12:34:30' FROM t1;
-MAX(dt) = '2011-01-06 12:34:30'
-1
-DROP TABLE t1;
-#
-# MDEV-9413 "datetime >= coalesce(c1(NULL))" doesn't return expected NULL
-#
-CREATE TABLE t1(c1 TIMESTAMP(6) NULL DEFAULT NULL);
-INSERT INTO t1 VALUES(NULL);
-SELECT c1, '2016-06-13 20:00:00.000003' >= COALESCE( c1 ) FROM t1;
-c1 '2016-06-13 20:00:00.000003' >= COALESCE( c1 )
-NULL NULL
-DROP TABLE t1;
-End of 5.5 tests
-#
-# MDEV-7254: Assigned expression is evaluated twice when updating column TIMESTAMP NOT NULL
-#
-SET time_zone='+02:00';
-create table t1(value timestamp not null);
-set @a:=0;
-create function f1 () returns timestamp
-begin
-set @a = @a + 1;
-return NULL;
-end//
-set timestamp=12340;
-insert t1 values (f1());
-select @a, value from t1;
-@a value
-1 1970-01-01 05:25:40
-set timestamp=12350;
-update t1 set value = f1();
-select @a, value from t1;
-@a value
-2 1970-01-01 05:25:50
-drop table t1;
-drop function f1;
-set timestamp=0;
-create table t1(value timestamp null);
-set @a:=0;
-create function f1 () returns timestamp
-begin
-set @a = @a + 1;
-return NULL;
-end//
-set timestamp=12340;
-insert t1 values (f1());
-select @a, value from t1;
-@a value
-1 NULL
-set timestamp=12350;
-update t1 set value = f1();
-select @a, value from t1;
-@a value
-2 NULL
-drop table t1;
-drop function f1;
-set timestamp=0;
-SET time_zone=DEFAULT;
-#
-# MDEV-7778 impossible create copy of table, if table contain default value for timestamp field
-#
-SET sql_mode="NO_ZERO_DATE";
-CREATE TABLE t1 (
-ts timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
-);
-CREATE TABLE t2 AS SELECT * from t1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `ts` timestamp NOT NULL DEFAULT current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `ts` timestamp NOT NULL DEFAULT current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1,t2;
-SET sql_mode=DEFAULT;
-#
-# MDEV-8082 ON UPDATE is not preserved by CREATE TABLE .. SELECT
-#
-CREATE TABLE t1 (
-vc VARCHAR(10) NOT NULL DEFAULT 'test',
-ts timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
-);
-CREATE TABLE t2 AS SELECT * FROM t1 LIMIT 0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `vc` varchar(10) NOT NULL DEFAULT 'test',
- `ts` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `vc` varchar(10) NOT NULL DEFAULT 'test',
- `ts` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp()
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1,t2;
-End of 10.0 tests
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-7831 Bad warning for DATE_ADD(timestamp_column, INTERVAL 10 SECOND)
-#
-CREATE TABLE t1 (a TIMESTAMP);
-INSERT INTO t1 VALUES ('0000-00-00 00:00:00');
-SELECT DATE_ADD(a, INTERVAL 10 SECOND) FROM t1;
-DATE_ADD(a, INTERVAL 10 SECOND)
-NULL
-Warnings:
-Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00'
-DROP TABLE t1;
-#
-# MDEV-7824 [Bug #68041] Zero date can be inserted in strict no-zero mode through a default value
-#
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a TIMESTAMP DEFAULT '0000-00-00 00:00:00');
-SET sql_mode=TRADITIONAL;
-INSERT INTO t1 VALUES ('0000-00-00 00:00:00');
-ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'a' at row 1
-INSERT INTO t1 VALUES ();
-ERROR 22007: Incorrect default value '0000-00-00 00:00:00' for column 'a'
-INSERT INTO t1 VALUES (DEFAULT);
-ERROR 22007: Incorrect default value '0000-00-00 00:00:00' for column 'a'
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00', b TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00');
-CREATE TABLE t2 (a TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00');
-INSERT INTO t2 VALUES ('0000-00-00 00:00:00');
-SET sql_mode=TRADITIONAL;
-INSERT INTO t1 (a) SELECT a FROM t2;
-ERROR 22007: Incorrect default value '0000-00-00 00:00:00' for column 'b'
-DROP TABLE t1, t2;
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a TIMESTAMP DEFAULT '0000-00-00 00:00:00', b TIMESTAMP DEFAULT '0000-00-00 00:00:00');
-INSERT INTO t1 VALUES (DEFAULT,DEFAULT);;
-SELECT a INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/mdev-7824.txt' FROM t1;
-DELETE FROM t1;
-SET sql_mode=TRADITIONAL;
-LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/mdev-7824.txt' INTO TABLE t1 (a);
-ERROR 22007: Incorrect default value '0000-00-00 00:00:00' for column 'b'
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a TIMESTAMP DEFAULT '0000-00-00 00:00:00');;
-SET sql_mode='NO_ZERO_DATE';
-ALTER TABLE t1 ADD b INT NOT NULL;
-ERROR 42000: Invalid default value for 'a'
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
-#
-# End of MDEV-7824 [Bug #68041] Zero date can be inserted in strict no-zero mode through a default value
-#
-#
-# MDEV-8373 Zero date can be inserted in strict no-zero mode through CREATE TABLE AS SELECT timestamp_field
-#
-SET sql_mode=DEFAULT;
-CREATE TABLE t1 (a TIMESTAMP);;
-INSERT INTO t1 VALUES (0);
-SET sql_mode='TRADITIONAL';
-CREATE TABLE t2 AS SELECT * FROM t1;
-ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'a' at row 1
-DROP TABLE t1;
-#
-# End of MDEV-8373 Zero date can be inserted in strict no-zero mode through CREATE TABLE AS SELECT timestamp_field
-#
-#
-# MDEV-8699 Wrong result for SELECT..WHERE HEX(date_column)!='323030312D30312D3031' AND date_column='2001-01-01x'
-#
-CREATE TABLE t1 (a TIMESTAMP);;
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00'),('2001-01-01 00:00:01');
-SELECT * FROM t1 WHERE a='2001-01-01 00:00:00x';
-a
-2001-01-01 00:00:00
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2001-01-01 00:00:00x'
-SELECT * FROM t1 WHERE LENGTH(a) != 20;
-a
-2001-01-01 00:00:00
-2001-01-01 00:00:01
-SELECT * FROM t1 WHERE LENGTH(a) != 20 AND a='2001-01-01 00:00:00x';
-a
-2001-01-01 00:00:00
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2001-01-01 00:00:00x'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a) != 20 AND a='2001-01-01 00:00:00x';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2001-01-01 00:00:00x'
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)!=30+RAND() AND a='2001-01-01 00:00:00x';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Warning 1292 Truncated incorrect datetime value: '2001-01-01 00:00:00x'
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00' and <cache>(octet_length(TIMESTAMP'2001-01-01 00:00:00')) <> 30 + rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a TIMESTAMP);;
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00'),('2001-01-01 00:00:01');
-SELECT * FROM t1 WHERE LENGTH(a)=19;
-a
-2001-01-01 00:00:00
-2001-01-01 00:00:01
-SELECT * FROM t1 WHERE LENGTH(a)=19 AND a=' 2001-01-01 00:00:00';
-a
-2001-01-01 00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=19 AND a=' 2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=19+RAND() AND a=' 2001-01-01 00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00' and <cache>(octet_length(TIMESTAMP'2001-01-01 00:00:00')) = 19 + rand()
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=' garbage ';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Warning 1292 Incorrect datetime value: ' garbage '
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'0000-00-00 00:00:00' and <cache>(octet_length(TIMESTAMP'0000-00-00 00:00:00')) = 30 + rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a TIMESTAMP);;
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00'),('2001-01-01 00:00:01');
-SELECT * FROM t1 WHERE a=TIMESTAMP'2001-01-01 00:00:00.000000';
-a
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE LENGTH(a)=19;
-a
-2001-01-01 00:00:00
-2001-01-01 00:00:01
-SELECT * FROM t1 WHERE LENGTH(a)=19 AND a=TIMESTAMP'2001-01-01 00:00:00.000000';
-a
-2001-01-01 00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=19 AND a=TIMESTAMP'2001-01-01 00:00:00.000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00.000000'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIMESTAMP'2001-01-01 00:00:00.000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00.000000' and <cache>(octet_length(TIMESTAMP'2001-01-01 00:00:00')) = 30 + rand()
-DROP TABLE t1;
-CREATE TABLE t1 (a TIMESTAMP(6));;
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00.000000'),('2001-01-01 00:00:01.000000');
-SELECT * FROM t1 WHERE a=TIMESTAMP'2001-01-01 00:00:00.000000';
-a
-2001-01-01 00:00:00.000000
-SELECT * FROM t1 WHERE LENGTH(a)=26;
-a
-2001-01-01 00:00:00.000000
-2001-01-01 00:00:01.000000
-SELECT * FROM t1 WHERE LENGTH(a)=26 AND a=TIMESTAMP'2001-01-01 00:00:00.000000';
-a
-2001-01-01 00:00:00.000000
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=26 AND a=TIMESTAMP'2001-01-01 00:00:00.000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00.000000'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=40+RAND() AND a=TIMESTAMP'2001-01-01 00:00:00.000000';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00.000000' and <cache>(octet_length(TIMESTAMP'2001-01-01 00:00:00.000000')) = 40 + rand()
-DROP TABLE t1;
-SET timestamp=UNIX_TIMESTAMP('2001-01-01 10:20:30');
-CREATE TABLE t1 (a TIMESTAMP);;
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00'),('2001-01-01 00:00:01');
-SELECT * FROM t1 WHERE a=TIME'00:00:00';
-a
-2001-01-01 00:00:00
-SELECT * FROM t1 WHERE LENGTH(a)=19;
-a
-2001-01-01 00:00:00
-2001-01-01 00:00:01
-SELECT * FROM t1 WHERE LENGTH(a)=19 AND a=TIME'00:00:00';
-a
-2001-01-01 00:00:00
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=19 AND a=TIME'00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00'
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE LENGTH(a)=40+RAND() AND a=TIME'00:00:00';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00' and <cache>(octet_length(TIMESTAMP'2001-01-01 00:00:00')) = 40 + rand()
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-11333 MDEV-11333 Expect "Impossible where condition" for WHERE timestamp_field>=DATE_ADD(TIMESTAMP'9999-01-01 00:00:00',INTERVAL 1000 YEAR)
-#
-SELECT DATE_ADD(TIMESTAMP'9999-01-01 00:00:00',INTERVAL 1000 YEAR);
-DATE_ADD(TIMESTAMP'9999-01-01 00:00:00',INTERVAL 1000 YEAR)
-NULL
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-CREATE TABLE t1 (a TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, KEY(a)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES('2001-01-01'),('2002-02-02'),('2003-03-03');
-INSERT INTO t1 VALUES('2001-01-01'),('2002-02-02'),('2003-03-03');
-INSERT INTO t1 VALUES('2001-01-01'),('2002-02-02'),('2003-03-03');
-INSERT INTO t1 VALUES('2001-01-01'),('2002-02-02'),('2003-03-03');
-INSERT INTO t1 VALUES('2001-01-01'),('2002-02-02'),('2003-03-03');
-INSERT INTO t1 VALUES('2001-01-01'),('2002-02-02'),('2003-03-03');
-EXPLAIN SELECT * FROM t1 WHERE a >= DATE_ADD(TIMESTAMP'9999-01-01 00:00:00',INTERVAL 1000 YEAR);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-EXPLAIN SELECT * FROM t1 WHERE a >= COALESCE(DATE_ADD(TIMESTAMP'9999-01-01 00:00:00',INTERVAL 1000 YEAR));
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-Warnings:
-Warning 1441 Datetime function: datetime field overflow
-DROP TABLE t1;
-#
-# MDEV-11482 Incorrect result for (time_expr BETWEEN timestamp_exp1 AND timestamp_expr2)
-#
-SET @@sql_mode=DEFAULT;
-SET @@timestamp=UNIX_TIMESTAMP('2001-01-01 10:20:30');
-CREATE TABLE t1 (a TIMESTAMP,b TIMESTAMP);
-INSERT INTO t1 VALUES ('2001-01-01 00:00:00','2001-01-01 23:59:59');
-SELECT * FROM t1 WHERE TIME'10:20:30' BETWEEN a and b;
-a b
-2001-01-01 00:00:00 2001-01-01 23:59:59
-DROP TABLE t1;
-SET @@timestamp=DEFAULT;
-#
-# MDEV-12582 Wrong data type for CREATE..SELECT MAX(COALESCE(timestamp_column))
-#
-CREATE TABLE t1 (a TIMESTAMP);
-CREATE TABLE t2 AS SELECT
-MAX(a),
-COALESCE(a),
-COALESCE(MAX(a)),
-MAX(COALESCE(a))
-FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `MAX(a)` timestamp NULL DEFAULT NULL,
- `COALESCE(a)` timestamp NULL DEFAULT NULL,
- `COALESCE(MAX(a))` timestamp NULL DEFAULT NULL,
- `MAX(COALESCE(a))` timestamp NULL DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# End of 10.3 tests
-#
diff --git a/mysql-test/r/type_timestamp_hires.result b/mysql-test/r/type_timestamp_hires.result
deleted file mode 100644
index fa6adc075ed..00000000000
--- a/mysql-test/r/type_timestamp_hires.result
+++ /dev/null
@@ -1,335 +0,0 @@
-SET timestamp=UNIX_TIMESTAMP('2001-02-03 10:20:30');
-drop table if exists t1, t2, t3;
-create table t1 (a timestamp(7));
-ERROR 42000: Too big precision 7 specified for 'a'. Maximum is 6
-create table t1 (a timestamp(3), key(a));
-insert t1 values ('2010-12-11 00:20:03.1234');
-insert t1 values ('2010-12-11 15:47:11.1234');
-insert t1 values (20101211010203.45678);
-insert t1 values (20101211030405.789e0);
-insert ignore t1 values (99991231235959e1);
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 1
-select * from t1;
-a
-0000-00-00 00:00:00.000
-2010-12-11 00:20:03.123
-2010-12-11 01:02:03.456
-2010-12-11 03:04:05.789
-2010-12-11 15:47:11.123
-select truncate(a, 6) from t1;
-truncate(a, 6)
-0.000000
-20101211002003.120000
-20101211010203.457031
-20101211030405.790000
-20101211154711.120000
-select a DIV 1 from t1;
-a DIV 1
-0
-20101211002003
-20101211010203
-20101211030405
-20101211154711
-select group_concat(distinct a) from t1;
-group_concat(distinct a)
-0000-00-00 00:00:00.000,2010-12-11 00:20:03.123,2010-12-11 01:02:03.456,2010-12-11 03:04:05.789,2010-12-11 15:47:11.123
-alter table t1 engine=innodb;
-select * from t1 order by a;
-a
-0000-00-00 00:00:00.000
-2010-12-11 00:20:03.123
-2010-12-11 01:02:03.456
-2010-12-11 03:04:05.789
-2010-12-11 15:47:11.123
-select * from t1 order by a+0;
-a
-0000-00-00 00:00:00.000
-2010-12-11 00:20:03.123
-2010-12-11 01:02:03.456
-2010-12-11 03:04:05.789
-2010-12-11 15:47:11.123
-drop table t1;
-create table t1 (a timestamp(4)NOT NULL DEFAULT CURRENT_TIMESTAMP(4) ON UPDATE CURRENT_TIMESTAMP(4)) engine=innodb;
-insert t1 values ('2010-12-11 01:02:03.456789');
-select * from t1;
-a
-2010-12-11 01:02:03.4567
-select extract(microsecond from a + interval 100 microsecond) from t1 where a>'2010-11-12 01:02:03.456';
-extract(microsecond from a + interval 100 microsecond)
-456800
-select a from t1 where a>'2010-11-12 01:02:03.456' group by a;
-a
-2010-12-11 01:02:03.4567
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(4) NOT NULL DEFAULT current_timestamp(4) ON UPDATE current_timestamp(4)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-show columns from t1;
-Field Type Null Key Default Extra
-a timestamp(4) NO current_timestamp(4) on update current_timestamp(4)
-select table_name, column_name, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, datetime_precision, character_set_name, collation_name, column_type, column_key, extra from information_schema.columns where table_name='t1';
-table_name t1
-column_name a
-column_default current_timestamp(4)
-is_nullable NO
-data_type timestamp
-character_maximum_length NULL
-character_octet_length NULL
-numeric_precision NULL
-numeric_scale NULL
-datetime_precision 4
-character_set_name NULL
-collation_name NULL
-column_type timestamp(4)
-column_key
-extra on update current_timestamp(4)
-select a, a+interval 9876543 microsecond from t1;
-a a+interval 9876543 microsecond
-2010-12-11 01:02:03.4567 2010-12-11 01:02:13.333243
-update t1 set a=a+interval 9876543 microsecond;
-select * from t1;
-a
-2010-12-11 01:02:13.3332
-select a, a + interval 2 year from t1;
-a a + interval 2 year
-2010-12-11 01:02:13.3332 2012-12-11 01:02:13.3332
-insert ignore t1 select a + interval 2 year from t1;
-select * from t1;
-a
-2010-12-11 01:02:13.3332
-2012-12-11 01:02:13.3332
-delete from t1 where a < 20110101;
-select * from t1;
-a
-2012-12-11 01:02:13.3332
-create table t2 select * from t1;
-create table t3 like t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` timestamp(4) NOT NULL DEFAULT current_timestamp(4) ON UPDATE current_timestamp(4)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` timestamp(4) NOT NULL DEFAULT current_timestamp(4) ON UPDATE current_timestamp(4)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-drop table t2, t3;
-insert t1 values ('2010-12-13 14:15:16.222222');
-select a, a+0, a-1, a*1, a/2 from t1;
-a a+0 a-1 a*1 a/2
-2012-12-11 01:02:13.3332 20121211010213.3332 20121211010212.3332 20121211010213.3332 10060605505106.66660000
-2010-12-13 14:15:16.2222 20101213141516.2222 20101213141515.2222 20101213141516.2222 10050606570758.11110000
-select max(a), min(a), sum(a), avg(a) from t1;
-max(a) min(a) sum(a) avg(a)
-2012-12-11 01:02:13.3332 2010-12-13 14:15:16.2222 40222424151729.5554 20111212075864.77770000
-create table t2 select a, a+0, a-1, a*1, a/2 from t1;
-create table t3 select max(a), min(a), sum(a), avg(a) from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` timestamp(4) NOT NULL DEFAULT current_timestamp(4) ON UPDATE current_timestamp(4),
- `a+0` decimal(19,4) NOT NULL,
- `a-1` decimal(19,4) NOT NULL,
- `a*1` decimal(19,4) NOT NULL,
- `a/2` decimal(22,8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `max(a)` timestamp(4) NULL DEFAULT NULL,
- `min(a)` timestamp(4) NULL DEFAULT NULL,
- `sum(a)` decimal(40,4) DEFAULT NULL,
- `avg(a)` decimal(22,8) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2, t3;
-create table t1 (f0_timestamp timestamp(0), f1_timestamp timestamp(1), f2_timestamp timestamp(2), f3_timestamp timestamp(3), f4_timestamp timestamp(4), f5_timestamp timestamp(5), f6_timestamp timestamp(6));
-insert t1 values ( '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432', '2010-11-12 11:14:17.765432');
-select * from t1;
-f0_timestamp 2010-11-12 11:14:17
-f1_timestamp 2010-11-12 11:14:17.7
-f2_timestamp 2010-11-12 11:14:17.76
-f3_timestamp 2010-11-12 11:14:17.765
-f4_timestamp 2010-11-12 11:14:17.7654
-f5_timestamp 2010-11-12 11:14:17.76543
-f6_timestamp 2010-11-12 11:14:17.765432
-select cast(f0_timestamp as time(4)) time4_f0_timestamp, cast(f1_timestamp as datetime(3)) datetime3_f1_timestamp, cast(f2_timestamp as date) date_f2_timestamp, cast(f4_timestamp as double) double_f3_timestamp, cast(f4_timestamp as decimal(40,5)) decimal5_f4_timestamp, cast(f5_timestamp as signed) bigint_f5_timestamp, cast(f6_timestamp as char(255)) varchar_f6_timestamp from t1;
-time4_f0_timestamp 11:14:17.0000
-datetime3_f1_timestamp 2010-11-12 11:14:17.700
-date_f2_timestamp 2010-11-12
-double_f3_timestamp 20101112111417.766
-decimal5_f4_timestamp 20101112111417.76540
-bigint_f5_timestamp 20101112111417
-varchar_f6_timestamp 2010-11-12 11:14:17.765432
-create table t2 (time4_f0_timestamp time(4), datetime3_f1_timestamp datetime(3), date_f2_timestamp date, double_f3_timestamp double, decimal5_f4_timestamp decimal(40,5), bigint_f5_timestamp bigint, varchar_f6_timestamp varchar(255));
-insert t2 select * from t1;
-Warnings:
-Level Note
-Code 1265
-Message Data truncated for column 'time4_f0_timestamp' at row 1
-Level Note
-Code 1265
-Message Data truncated for column 'date_f2_timestamp' at row 1
-select * from t2;
-time4_f0_timestamp 11:14:17.0000
-datetime3_f1_timestamp 2010-11-12 11:14:17.700
-date_f2_timestamp 2010-11-12
-double_f3_timestamp 20101112111417.766
-decimal5_f4_timestamp 20101112111417.76540
-bigint_f5_timestamp 20101112111417
-varchar_f6_timestamp 2010-11-12 11:14:17.765432
-alter table t1 change f0_timestamp time4_f0_timestamp time(4), change f1_timestamp datetime3_f1_timestamp datetime(3), change f2_timestamp date_f2_timestamp date, change f3_timestamp double_f3_timestamp double, change f4_timestamp decimal5_f4_timestamp decimal(40,5), change f5_timestamp bigint_f5_timestamp bigint, change f6_timestamp varchar_f6_timestamp varchar(255);
-Warnings:
-Level Note
-Code 1265
-Message Data truncated for column 'time4_f0_timestamp' at row 1
-Level Note
-Code 1265
-Message Data truncated for column 'date_f2_timestamp' at row 1
-select * from t1;
-time4_f0_timestamp 11:14:17.0000
-datetime3_f1_timestamp 2010-11-12 11:14:17.700
-date_f2_timestamp 2010-11-12
-double_f3_timestamp 20101112111417.766
-decimal5_f4_timestamp 20101112111417.76540
-bigint_f5_timestamp 20101112111417
-varchar_f6_timestamp 2010-11-12 11:14:17.765432
-alter table t1 modify time4_f0_timestamp timestamp(0), modify datetime3_f1_timestamp timestamp(1), modify date_f2_timestamp timestamp(2), modify double_f3_timestamp timestamp(3), modify decimal5_f4_timestamp timestamp(4), modify bigint_f5_timestamp timestamp(5), modify varchar_f6_timestamp timestamp(6);
-select * from t1;
-time4_f0_timestamp 2001-02-03 11:14:17
-datetime3_f1_timestamp 2010-11-12 11:14:17.7
-date_f2_timestamp 2010-11-12 00:00:00.00
-double_f3_timestamp 2010-11-12 11:14:17.766
-decimal5_f4_timestamp 2010-11-12 11:14:17.7654
-bigint_f5_timestamp 2010-11-12 11:14:17.00000
-varchar_f6_timestamp 2010-11-12 11:14:17.765432
-delete from t1;
-insert t1 select * from t2;
-select * from t1;
-time4_f0_timestamp 2001-02-03 11:14:17
-datetime3_f1_timestamp 2010-11-12 11:14:17.7
-date_f2_timestamp 2010-11-12 00:00:00.00
-double_f3_timestamp 2010-11-12 11:14:17.765
-decimal5_f4_timestamp 2010-11-12 11:14:17.7654
-bigint_f5_timestamp 2010-11-12 11:14:17.00000
-varchar_f6_timestamp 2010-11-12 11:14:17.765432
-drop table t1, t2;
-create table t1 (a timestamp(6)NOT NULL DEFAULT '0000-00-00 00:00:00.000000', b timestamp(6)NOT NULL DEFAULT '0000-00-00 00:00:00.000000');
-create procedure foo(x timestamp, y timestamp(4)) insert into t1 values (x, y);
-call foo('2010-02-03 4:5:6.789123', '2010-02-03 4:5:6.789123');
-select * from t1;
-a b
-2010-02-03 04:05:06.000000 2010-02-03 04:05:06.789100
-create procedure bar(a int, c timestamp(5))
-begin
-declare b timestamp(4);
-set b = c + interval a microsecond;
-insert t1 values (b, c + interval a microsecond);
-end|
-call bar(1111111, '2011-01-02 3:4:5.123456');
-select * from t1;
-a b
-2010-02-03 04:05:06.000000 2010-02-03 04:05:06.789100
-2011-01-02 03:04:06.234500 2011-01-02 03:04:06.234561
-drop procedure foo;
-drop procedure bar;
-create function xyz(s char(20)) returns timestamp(4)
-return addtime('2010-10-10 10:10:10.101010', s);
-select xyz('1:1:1.010101');
-xyz('1:1:1.010101')
-2010-10-10 11:11:11.1111
-drop function xyz;
-create view v1 as select * from t1 group by a,b;
-select * from v1;
-a b
-2010-02-03 04:05:06.000000 2010-02-03 04:05:06.789100
-2011-01-02 03:04:06.234500 2011-01-02 03:04:06.234561
-show columns from v1;
-Field Type Null Key Default Extra
-a timestamp(6) NO 0000-00-00 00:00:00.000000
-b timestamp(6) NO 0000-00-00 00:00:00.000000
-create table t2 select * from v1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000',
- `b` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000'
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t2;
-a b
-2010-02-03 04:05:06.000000 2010-02-03 04:05:06.789100
-2011-01-02 03:04:06.234500 2011-01-02 03:04:06.234561
-drop view v1;
-drop table t1, t2;
-SET timestamp=DEFAULT;
-set time_zone='+03:00';
-set timestamp=unix_timestamp('2011-01-01 01:01:01') + 0.123456;
-create table t1 (a timestamp(5) DEFAULT CURRENT_TIMESTAMP);
-insert t1 values ();
-select * from t1;
-a
-2011-01-01 01:01:01.12345
-drop table t1;
-create or replace table t1 (a timestamp(5) default current_timestamp);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(5) NOT NULL DEFAULT current_timestamp(5)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 (a timestamp(5) default current_timestamp());
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(5) NOT NULL DEFAULT current_timestamp(5)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 (a timestamp(5) default current_timestamp(2));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(5) NOT NULL DEFAULT current_timestamp(2)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert t1 () values ();
-select * from t1;
-a
-2011-01-01 01:01:01.12000
-create or replace table t1 (a timestamp(5) default current_timestamp(5));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(5) NOT NULL DEFAULT current_timestamp(5)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 (a timestamp(5) default current_timestamp(6));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(5) NOT NULL DEFAULT current_timestamp(5)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 (a timestamp(5) on update current_timestamp);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(5) NOT NULL DEFAULT '0000-00-00 00:00:00.00000' ON UPDATE current_timestamp(5)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 (a timestamp(5) on update current_timestamp());
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(5) NOT NULL DEFAULT '0000-00-00 00:00:00.00000' ON UPDATE current_timestamp(5)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 (a timestamp(5) on update current_timestamp(3));
-ERROR HY000: Invalid ON UPDATE clause for 'a' column
-create or replace table t1 (a timestamp(5) on update current_timestamp(5));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(5) NOT NULL DEFAULT '0000-00-00 00:00:00.00000' ON UPDATE current_timestamp(5)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create or replace table t1 (a timestamp(5) on update current_timestamp(6));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` timestamp(5) NOT NULL DEFAULT '0000-00-00 00:00:00.00000' ON UPDATE current_timestamp(5)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
diff --git a/mysql-test/r/type_uint.result b/mysql-test/r/type_uint.result
deleted file mode 100644
index ef7a7ed98ca..00000000000
--- a/mysql-test/r/type_uint.result
+++ /dev/null
@@ -1,72 +0,0 @@
-drop table if exists t1;
-SET SQL_WARNINGS=1;
-create table t1 (this int unsigned);
-insert into t1 values (1);
-insert ignore into t1 values (-1);
-Warnings:
-Warning 1264 Out of range value for column 'this' at row 1
-insert ignore into t1 values ('5000000000');
-Warnings:
-Warning 1264 Out of range value for column 'this' at row 1
-select * from t1;
-this
-1
-0
-4294967295
-drop table t1;
-create table t1 (a bigint unsigned, b mediumint unsigned);
-insert t1 values (1,2),(0xffffffffffffffff,0xffffff);
-select coalesce(a,b), coalesce(b,a) from t1;
-coalesce(a,b) coalesce(b,a)
-1 2
-18446744073709551615 16777215
-create table t2 as select a from t1 union select b from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` bigint(20) unsigned DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select * from t2;
-a
-1
-18446744073709551615
-2
-16777215
-drop table t1, t2;
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-6950 Bad results with joins comparing DATE and INT/ENUM/VARCHAR columns
-#
-CREATE TABLE t1 (a DATE PRIMARY KEY);
-INSERT INTO t1 VALUES ('1999-01-01');
-CREATE TABLE t2 (a INT UNSIGNED);
-INSERT INTO t2 VALUES (19990101);
-INSERT INTO t2 VALUES (990101);
-SELECT t1.* FROM t1,t2 WHERE t1.a=t2.a;
-a
-1999-01-01
-1999-01-01
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.a=t2.a;
-a
-1999-01-01
-1999-01-01
-ALTER TABLE t2 ADD PRIMARY KEY(a);
-SELECT t1.* FROM t1,t2 WHERE t1.a=t2.a;
-a
-1999-01-01
-1999-01-01
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.a=t2.a;
-a
-1999-01-01
-1999-01-01
-# t2 should NOT be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.a=t2.a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 4 NULL 2 Using where; Using index
-DROP TABLE t1,t2;
-#
-# End of 10.0 tests
-#
diff --git a/mysql-test/r/type_varchar.result b/mysql-test/r/type_varchar.result
deleted file mode 100644
index 0b2a5b54d08..00000000000
--- a/mysql-test/r/type_varchar.result
+++ /dev/null
@@ -1,688 +0,0 @@
-drop table if exists t1, t2;
-create table t1 (v varchar(30), c char(3), e enum('abc','def','ghi'), t text);
-truncate table vchar;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `v` varchar(30) DEFAULT NULL,
- `c` char(3) DEFAULT NULL,
- `e` enum('abc','def','ghi') DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-show create table vchar;
-Table Create Table
-vchar CREATE TABLE `vchar` (
- `v` varchar(30) DEFAULT NULL,
- `c` char(3) DEFAULT NULL,
- `e` enum('abc','def','ghi') DEFAULT NULL,
- `t` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('abc', 'de', 'ghi', 'jkl');
-insert into t1 values ('abc ', 'de ', 'ghi', 'jkl ');
-insert into t1 values ('abc ', 'd ', 'ghi', 'jkl ');
-insert into vchar values ('abc', 'de', 'ghi', 'jkl');
-insert into vchar values ('abc ', 'de ', 'ghi', 'jkl ');
-insert into vchar values ('abc ', 'd ', 'ghi', 'jkl ');
-select length(v),length(c),length(e),length(t) from t1;
-length(v) length(c) length(e) length(t)
-3 2 3 3
-4 2 3 4
-7 1 3 7
-select length(v),length(c),length(e),length(t) from vchar;
-length(v) length(c) length(e) length(t)
-3 2 3 3
-3 2 3 4
-3 1 3 7
-alter table vchar add i int;
-show create table vchar;
-Table Create Table
-vchar CREATE TABLE `vchar` (
- `v` varchar(30) DEFAULT NULL,
- `c` char(3) DEFAULT NULL,
- `e` enum('abc','def','ghi') DEFAULT NULL,
- `t` text DEFAULT NULL,
- `i` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select length(v),length(c),length(e),length(t) from vchar;
-length(v) length(c) length(e) length(t)
-3 2 3 3
-3 2 3 4
-3 1 3 7
-drop table t1, vchar;
-create table t1 (v varchar(20));
-insert into t1 values('a ');
-select v='a' from t1;
-v='a'
-1
-select binary v='a' from t1;
-binary v='a'
-0
-select binary v='a ' from t1;
-binary v='a '
-1
-insert into t1 values('a');
-alter table t1 add primary key (v);
-ERROR 23000: Duplicate entry 'a' for key 'PRIMARY'
-drop table t1;
-create table t1 (v varbinary(20));
-insert into t1 values('a');
-insert into t1 values('a ');
-alter table t1 add primary key (v);
-drop table t1;
-create table t1 (v varchar(254), index (v));
-insert into t1 values ("This is a test ");
-insert into t1 values ("Some sample data");
-insert into t1 values (" garbage ");
-insert into t1 values (" This is a test ");
-insert into t1 values ("This is a test");
-insert into t1 values ("Hello world");
-insert into t1 values ("Foo bar");
-insert into t1 values ("This is a test");
-insert into t1 values ("MySQL varchar test");
-insert into t1 values ("test MySQL varchar");
-insert into t1 values ("This is a long string to have some random length data included");
-insert into t1 values ("Short string");
-insert into t1 values ("VSS");
-insert into t1 values ("Some samples");
-insert into t1 values ("Bar foo");
-insert into t1 values ("Bye");
-select * from t1 where v like 'This is a test' order by v;
-v
-This is a test
-This is a test
-select * from t1 where v='This is a test' order by v;
-v
-This is a test
-This is a test
-This is a test
-select * from t1 where v like 'S%' order by v;
-v
-Short string
-Some sample data
-Some samples
-explain select * from t1 where v like 'This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 257 NULL 3 Using where; Using index
-explain select * from t1 where v='This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 257 const 3 Using where; Using index
-explain select * from t1 where v like 'S%' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 257 NULL 2 Using where; Using index
-alter table t1 change v v varchar(255);
-select * from t1 where v like 'This is a test' order by v;
-v
-This is a test
-This is a test
-select * from t1 where v='This is a test' order by v;
-v
-This is a test
-This is a test
-This is a test
-select * from t1 where v like 'S%' order by v;
-v
-Short string
-Some sample data
-Some samples
-explain select * from t1 where v like 'This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 258 NULL 3 Using where; Using index
-explain select * from t1 where v='This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 258 const 3 Using where; Using index
-explain select * from t1 where v like 'S%' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 258 NULL 2 Using where; Using index
-alter table t1 change v v varchar(256);
-select * from t1 where v like 'This is a test' order by v;
-v
-This is a test
-This is a test
-select * from t1 where v='This is a test' order by v;
-v
-This is a test
-This is a test
-This is a test
-select * from t1 where v like 'S%' order by v;
-v
-Short string
-Some sample data
-Some samples
-explain select * from t1 where v like 'This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 259 NULL 3 Using where; Using index
-explain select * from t1 where v='This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 259 const 3 Using where; Using index
-explain select * from t1 where v like 'S%' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 259 NULL 2 Using where; Using index
-alter table t1 change v v varchar(257);
-select * from t1 where v like 'This is a test' order by v;
-v
-This is a test
-This is a test
-select * from t1 where v='This is a test' order by v;
-v
-This is a test
-This is a test
-This is a test
-select * from t1 where v like 'S%' order by v;
-v
-Short string
-Some sample data
-Some samples
-explain select * from t1 where v like 'This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 260 NULL 3 Using where; Using index
-explain select * from t1 where v='This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 260 const 3 Using where; Using index
-explain select * from t1 where v like 'S%' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 260 NULL 2 Using where; Using index
-alter table t1 change v v varchar(258);
-select * from t1 where v like 'This is a test' order by v;
-v
-This is a test
-This is a test
-select * from t1 where v='This is a test' order by v;
-v
-This is a test
-This is a test
-This is a test
-select * from t1 where v like 'S%' order by v;
-v
-Short string
-Some sample data
-Some samples
-explain select * from t1 where v like 'This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 261 NULL 3 Using where; Using index
-explain select * from t1 where v='This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 261 const 3 Using where; Using index
-explain select * from t1 where v like 'S%' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 261 NULL 2 Using where; Using index
-alter table t1 change v v varchar(259);
-select * from t1 where v like 'This is a test' order by v;
-v
-This is a test
-This is a test
-select * from t1 where v='This is a test' order by v;
-v
-This is a test
-This is a test
-This is a test
-select * from t1 where v like 'S%' order by v;
-v
-Short string
-Some sample data
-Some samples
-explain select * from t1 where v like 'This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 262 NULL 3 Using where; Using index
-explain select * from t1 where v='This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 262 const 3 Using where; Using index
-explain select * from t1 where v like 'S%' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 262 NULL 2 Using where; Using index
-alter table t1 change v v varchar(258);
-select * from t1 where v like 'This is a test' order by v;
-v
-This is a test
-This is a test
-select * from t1 where v='This is a test' order by v;
-v
-This is a test
-This is a test
-This is a test
-select * from t1 where v like 'S%' order by v;
-v
-Short string
-Some sample data
-Some samples
-explain select * from t1 where v like 'This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 261 NULL 3 Using where; Using index
-explain select * from t1 where v='This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 261 const 3 Using where; Using index
-explain select * from t1 where v like 'S%' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 261 NULL 2 Using where; Using index
-alter table t1 change v v varchar(257);
-select * from t1 where v like 'This is a test' order by v;
-v
-This is a test
-This is a test
-select * from t1 where v='This is a test' order by v;
-v
-This is a test
-This is a test
-This is a test
-select * from t1 where v like 'S%' order by v;
-v
-Short string
-Some sample data
-Some samples
-explain select * from t1 where v like 'This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 260 NULL 3 Using where; Using index
-explain select * from t1 where v='This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 260 const 3 Using where; Using index
-explain select * from t1 where v like 'S%' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 260 NULL 2 Using where; Using index
-alter table t1 change v v varchar(256);
-select * from t1 where v like 'This is a test' order by v;
-v
-This is a test
-This is a test
-select * from t1 where v='This is a test' order by v;
-v
-This is a test
-This is a test
-This is a test
-select * from t1 where v like 'S%' order by v;
-v
-Short string
-Some sample data
-Some samples
-explain select * from t1 where v like 'This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 259 NULL 3 Using where; Using index
-explain select * from t1 where v='This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 259 const 3 Using where; Using index
-explain select * from t1 where v like 'S%' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 259 NULL 2 Using where; Using index
-alter table t1 change v v varchar(255);
-select * from t1 where v like 'This is a test' order by v;
-v
-This is a test
-This is a test
-select * from t1 where v='This is a test' order by v;
-v
-This is a test
-This is a test
-This is a test
-select * from t1 where v like 'S%' order by v;
-v
-Short string
-Some sample data
-Some samples
-explain select * from t1 where v like 'This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 258 NULL 3 Using where; Using index
-explain select * from t1 where v='This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 258 const 3 Using where; Using index
-explain select * from t1 where v like 'S%' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 258 NULL 2 Using where; Using index
-alter table t1 change v v varchar(254);
-select * from t1 where v like 'This is a test' order by v;
-v
-This is a test
-This is a test
-select * from t1 where v='This is a test' order by v;
-v
-This is a test
-This is a test
-This is a test
-select * from t1 where v like 'S%' order by v;
-v
-Short string
-Some sample data
-Some samples
-explain select * from t1 where v like 'This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 257 NULL 3 Using where; Using index
-explain select * from t1 where v='This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 257 const 3 Using where; Using index
-explain select * from t1 where v like 'S%' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 257 NULL 2 Using where; Using index
-alter table t1 change v v varchar(253);
-alter table t1 change v v varchar(254), drop key v;
-alter table t1 change v v varchar(300), add key (v(10));
-select * from t1 where v like 'This is a test' order by v;
-v
-This is a test
-This is a test
-select * from t1 where v='This is a test' order by v;
-v
-This is a test
-This is a test
-This is a test
-select * from t1 where v like 'S%' order by v;
-v
-Short string
-Some sample data
-Some samples
-explain select * from t1 where v like 'This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 13 NULL 4 Using where; Using filesort
-explain select * from t1 where v='This is a test' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref v v 13 const 4 Using where
-explain select * from t1 where v like 'S%' order by v;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range v v 13 NULL 2 Using where; Using filesort
-drop table t1;
-create table t1 (pkcol varchar(16), othercol varchar(16), primary key (pkcol));
-insert into t1 values ('test', 'something');
-update t1 set othercol='somethingelse' where pkcol='test';
-select * from t1;
-pkcol othercol
-test somethingelse
-drop table t1;
-create table t1 (a int, b varchar(12));
-insert into t1 values (1, 'A'), (22, NULL);
-create table t2 (a int);
-insert into t2 values (22), (22);
-select t1.a, t1.b, min(t1.b) from t1 inner join t2 ON t2.a = t1.a
-group by t1.b, t1.a;
-a b min(t1.b)
-22 NULL NULL
-drop table t1, t2;
-create table t1 (f1 varchar(65500));
-create index index1 on t1(f1(10));
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f1` varchar(65500) DEFAULT NULL,
- KEY `index1` (`f1`(10))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 modify f1 varchar(255);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f1` varchar(255) DEFAULT NULL,
- KEY `index1` (`f1`(10))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-alter table t1 modify f1 tinytext;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f1` tinytext DEFAULT NULL,
- KEY `index1` (`f1`(10))
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(f1 VARCHAR(100) DEFAULT 'test');
-INSERT INTO t1 VALUES(SUBSTR(f1, 1, 3));
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(f1 CHAR(100) DEFAULT 'test');
-INSERT INTO t1 VALUES(SUBSTR(f1, 1, 3));
-DROP TABLE IF EXISTS t1;
-drop table if exists t1, t2, t3;
-create table t3 (
-id int(11),
-en varchar(255) character set utf8,
-cz varchar(255) character set utf8
-);
-truncate table t3;
-insert into t3 (id, en, cz) values
-(1,'en string 1','cz string 1'),
-(2,'en string 2','cz string 2'),
-(3,'en string 3','cz string 3');
-create table t1 (
-id int(11),
-name_id int(11)
-);
-insert into t1 (id, name_id) values (1,1), (2,3), (3,3);
-create table t2 (id int(11));
-insert into t2 (id) values (1), (2), (3);
-select t1.*, t2.id, t3.en, t3.cz from t1 left join t2 on t1.id=t2.id
-left join t3 on t1.id=t3.id order by t3.id;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def test t1 t1 id id 3 11 1 Y 32768 0 63
-def test t1 t1 name_id name_id 3 11 1 Y 32768 0 63
-def test t2 t2 id id 3 11 1 Y 32768 0 63
-def test t3 t3 en en 253 255 11 Y 0 0 8
-def test t3 t3 cz cz 253 255 11 Y 0 0 8
-id name_id id en cz
-1 1 1 en string 1 cz string 1
-2 3 2 en string 2 cz string 2
-3 3 3 en string 3 cz string 3
-drop table t1, t2, t3;
-CREATE TABLE t1 (a CHAR(2));
-INSERT INTO t1 VALUES (10), (50), (30), ('1a'), (60), ('t');
-SELECT a,(a + 0) FROM t1 ORDER BY a;
-a (a + 0)
-10 10
-1a 1
-30 30
-50 50
-60 60
-t 0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '1a'
-Warning 1292 Truncated incorrect DOUBLE value: 't '
-SELECT a,(a DIV 2) FROM t1 ORDER BY a;
-a (a DIV 2)
-10 5
-1a 0
-30 15
-50 25
-60 30
-t 0
-Warnings:
-Warning 1292 Truncated incorrect DECIMAL value: '1a'
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: 't '
-SELECT a,CAST(a AS SIGNED) FROM t1 ORDER BY a;
-a CAST(a AS SIGNED)
-10 10
-1a 1
-30 30
-50 50
-60 60
-t 0
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1a'
-Warning 1292 Truncated incorrect INTEGER value: 't'
-DROP TABLE t1;
-CREATE TABLE t1 (a VARCHAR(16));
-INSERT INTO t1 VALUES ('5'), ('s'), ('');
-SELECT 5 = a FROM t1;
-5 = a
-1
-0
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 's'
-Warning 1292 Truncated incorrect DOUBLE value: ''
-DROP TABLE t1;
-CREATE TABLE t1 (a CHAR(16));
-INSERT INTO t1 VALUES ('5'), ('s'), ('');
-SELECT 5 = a FROM t1;
-5 = a
-1
-0
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 's '
-Warning 1292 Truncated incorrect DOUBLE value: ' '
-DROP TABLE t1;
-#
-# MDEV-13530 VARBINARY doesn't convert to to BLOB for sizes 65533, 65534 and 65535
-#
-set sql_mode='';
-CREATE TABLE t1 (c1 VARBINARY(65532));
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 varbinary(65532) YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARBINARY(65533));
-Warnings:
-Note 1246 Converting column 'c1' from VARBINARY to BLOB
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 blob YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARBINARY(65534));
-Warnings:
-Note 1246 Converting column 'c1' from VARBINARY to BLOB
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 blob YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARBINARY(65535));
-Warnings:
-Note 1246 Converting column 'c1' from VARBINARY to BLOB
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 blob YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARBINARY(65536));
-Warnings:
-Note 1246 Converting column 'c1' from VARBINARY to BLOB
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 mediumblob YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(65532));
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 varchar(65532) YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(65533));
-Warnings:
-Note 1246 Converting column 'c1' from VARCHAR to TEXT
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 text YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(65534));
-Warnings:
-Note 1246 Converting column 'c1' from VARCHAR to TEXT
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 text YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(65535));
-Warnings:
-Note 1246 Converting column 'c1' from VARCHAR to TEXT
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 text YES NULL
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(65536));
-Warnings:
-Note 1246 Converting column 'c1' from VARCHAR to TEXT
-DESCRIBE t1;
-Field Type Null Key Default Extra
-c1 mediumtext YES NULL
-DROP TABLE t1;
-set sql_mode=default;
-CREATE TABLE t1 (c1 VARCHAR(65536));
-ERROR 42000: Column length too big for column 'c1' (max = 65532); use BLOB or TEXT instead
-#
-# End of 5.5 tests
-#
-#
-# MDEV-6950 Bad results with joins comparing DATE and INT/ENUM/VARCHAR columns
-#
-CREATE TABLE t1 (c1 DATE PRIMARY KEY);
-INSERT INTO t1 VALUES ('2001-01-01');
-CREATE TABLE t2 (c1 VARCHAR(20));
-INSERT INTO t2 VALUES ('2001-01-01');
-INSERT INTO t2 VALUES ('2001/01/01');
-SELECT t1.* FROM t1,t2 WHERE t1.c1=t2.c1;
-c1
-2001-01-01
-2001-01-01
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1=t2.c1;
-c1
-2001-01-01
-2001-01-01
-ALTER TABLE t2 ADD PRIMARY KEY(c1);
-SELECT t1.* FROM t1,t2 WHERE t1.c1=t2.c1;
-c1
-2001-01-01
-2001-01-01
-EXPLAIN SELECT t1.* FROM t1,t2 WHERE t1.c1=t2.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system PRIMARY NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 22 NULL 2 Using where; Using index
-SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1=t2.c1;
-c1
-2001-01-01
-2001-01-01
-# t2 should NOT be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.c1=t2.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 index PRIMARY PRIMARY 22 NULL 2 Using where; Using index
-DROP TABLE IF EXISTS t1,t2;
-#
-# MDEV-6989 BINARY and COLLATE xxx_bin comparisions are not used for optimization in some cases
-#
-CREATE TABLE t1 (c1 VARCHAR(20) CHARACTER SET latin1, PRIMARY KEY(c1));
-INSERT INTO t1 VALUES ('a'),('b'),('c'),('d');
-SELECT * FROM t1 WHERE c1=BINARY 'a';
-c1
-a
-EXPLAIN SELECT * FROM t1 WHERE c1=BINARY 'a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 22 const 1 Using index
-SELECT * FROM t1 WHERE c1=_latin1'a' COLLATE latin1_bin;
-c1
-a
-EXPLAIN SELECT * FROM t1 WHERE c1=_latin1'a' COLLATE latin1_bin;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 const PRIMARY PRIMARY 22 const 1 Using index
-DROP TABLE t1;
-CREATE TABLE t1 (c1 VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_bin);
-INSERT INTO t1 VALUES ('a');
-CREATE TABLE t2 (c1 VARCHAR(10) CHARACTER SET latin1, PRIMARY KEY(c1));
-INSERT INTO t2 VALUES ('a'),('b');
-SELECT * FROM t1, t2 WHERE t1.c1=t2.c1;
-c1 c1
-a a
-EXPLAIN SELECT * FROM t1, t2 WHERE t1.c1=t2.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 const PRIMARY PRIMARY 12 const 1 Using index
-ALTER TABLE t1 MODIFY c1 VARBINARY(10);
-SELECT * FROM t1, t2 WHERE t1.c1=t2.c1;
-c1 c1
-a a
-EXPLAIN SELECT * FROM t1, t2 WHERE t1.c1=t2.c1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1
-1 SIMPLE t2 const PRIMARY PRIMARY 12 const 1 Using index
-DROP TABLE t1, t2;
-CREATE TABLE t1 (c1 VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_bin);
-INSERT INTO t1 VALUES ('a'),('c');
-CREATE TABLE t2 (c1 VARCHAR(10) CHARACTER SET latin1, PRIMARY KEY(c1));
-INSERT INTO t2 VALUES ('a'),('b');
-SELECT t1.* FROM t1 LEFT JOIN t2 USING (c1);
-c1
-a
-c
-# t2 should be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 USING (c1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-ALTER TABLE t1 MODIFY c1 VARBINARY(10);
-SELECT t1.* FROM t1 LEFT JOIN t2 USING (c1);
-c1
-a
-c
-# t2 should be eliminated
-EXPLAIN SELECT t1.* FROM t1 LEFT JOIN t2 USING (c1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2
-DROP TABLE t1,t2;
-#
-# End of 10.0 tests
-#
diff --git a/mysql-test/r/type_year.result b/mysql-test/r/type_year.result
deleted file mode 100644
index 8d58659769e..00000000000
--- a/mysql-test/r/type_year.result
+++ /dev/null
@@ -1,488 +0,0 @@
-drop table if exists t1;
-create table t1 (y year,y2 year(2));
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-insert into t1 values (0,0),(1999,1999),(2000,2000),(2001,2001),(70,70),(69,69);
-select * from t1;
-y y2
-0000 00
-1999 99
-2000 00
-2001 01
-1970 70
-2069 69
-select * from t1 order by y;
-y y2
-0000 00
-1970 70
-1999 99
-2000 00
-2001 01
-2069 69
-select * from t1 order by y2;
-y y2
-1970 70
-1999 99
-0000 00
-2000 00
-2001 01
-2069 69
-drop table t1;
-create table t1 (y year);
-insert ignore into t1 values (now());
-Warnings:
-Warning 1265 Data truncated for column 'y' at row 1
-select if(y = now(), 1, 0) from t1;
-if(y = now(), 1, 0)
-1
-drop table t1;
-create table t1(a year);
-insert into t1 values (2000.5), ('2000.5'), ('2001a'), ('2.001E3');
-Warnings:
-Warning 1265 Data truncated for column 'a' at row 3
-select * from t1;
-a
-2001
-2001
-2001
-2001
-drop table t1;
-End of 5.0 tests
-#
-# Bug #49480: WHERE using YEAR columns returns unexpected results
-#
-CREATE TABLE t2(yy YEAR(2), c2 CHAR(4));
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-CREATE TABLE t4(yyyy YEAR(4), c4 CHAR(4));
-INSERT INTO t2 (c2) VALUES (NULL),(1970),(1999),(2000),(2001),(2069);
-INSERT INTO t4 (c4) SELECT c2 FROM t2;
-UPDATE t2 SET yy = c2;
-UPDATE t4 SET yyyy = c4;
-SELECT * FROM t2;
-yy c2
-NULL NULL
-70 1970
-99 1999
-00 2000
-01 2001
-69 2069
-SELECT * FROM t4;
-yyyy c4
-NULL NULL
-1970 1970
-1999 1999
-2000 2000
-2001 2001
-2069 2069
-# Comparison of YEAR(2) with YEAR(4)
-SELECT * FROM t2, t4 WHERE yy = yyyy;
-yy c2 yyyy c4
-70 1970 1970 1970
-99 1999 1999 1999
-00 2000 2000 2000
-01 2001 2001 2001
-69 2069 2069 2069
-SELECT * FROM t2, t4 WHERE yy <=> yyyy;
-yy c2 yyyy c4
-NULL NULL NULL NULL
-70 1970 1970 1970
-99 1999 1999 1999
-00 2000 2000 2000
-01 2001 2001 2001
-69 2069 2069 2069
-SELECT * FROM t2, t4 WHERE yy < yyyy;
-yy c2 yyyy c4
-70 1970 1999 1999
-70 1970 2000 2000
-99 1999 2000 2000
-70 1970 2001 2001
-99 1999 2001 2001
-00 2000 2001 2001
-70 1970 2069 2069
-99 1999 2069 2069
-00 2000 2069 2069
-01 2001 2069 2069
-SELECT * FROM t2, t4 WHERE yy > yyyy;
-yy c2 yyyy c4
-99 1999 1970 1970
-00 2000 1970 1970
-01 2001 1970 1970
-69 2069 1970 1970
-00 2000 1999 1999
-01 2001 1999 1999
-69 2069 1999 1999
-01 2001 2000 2000
-69 2069 2000 2000
-69 2069 2001 2001
-# Comparison of YEAR(2) with YEAR(2)
-SELECT * FROM t2 a, t2 b WHERE a.yy = b.yy;
-yy c2 yy c2
-70 1970 70 1970
-99 1999 99 1999
-00 2000 00 2000
-01 2001 01 2001
-69 2069 69 2069
-SELECT * FROM t2 a, t2 b WHERE a.yy <=> b.yy;
-yy c2 yy c2
-NULL NULL NULL NULL
-70 1970 70 1970
-99 1999 99 1999
-00 2000 00 2000
-01 2001 01 2001
-69 2069 69 2069
-SELECT * FROM t2 a, t2 b WHERE a.yy < b.yy;
-yy c2 yy c2
-70 1970 99 1999
-70 1970 00 2000
-99 1999 00 2000
-70 1970 01 2001
-99 1999 01 2001
-00 2000 01 2001
-70 1970 69 2069
-99 1999 69 2069
-00 2000 69 2069
-01 2001 69 2069
-# Comparison of YEAR(4) with YEAR(4)
-SELECT * FROM t4 a, t4 b WHERE a.yyyy = b.yyyy;
-yyyy c4 yyyy c4
-1970 1970 1970 1970
-1999 1999 1999 1999
-2000 2000 2000 2000
-2001 2001 2001 2001
-2069 2069 2069 2069
-SELECT * FROM t4 a, t4 b WHERE a.yyyy <=> b.yyyy;
-yyyy c4 yyyy c4
-NULL NULL NULL NULL
-1970 1970 1970 1970
-1999 1999 1999 1999
-2000 2000 2000 2000
-2001 2001 2001 2001
-2069 2069 2069 2069
-SELECT * FROM t4 a, t4 b WHERE a.yyyy < b.yyyy;
-yyyy c4 yyyy c4
-1970 1970 1999 1999
-1970 1970 2000 2000
-1999 1999 2000 2000
-1970 1970 2001 2001
-1999 1999 2001 2001
-2000 2000 2001 2001
-1970 1970 2069 2069
-1999 1999 2069 2069
-2000 2000 2069 2069
-2001 2001 2069 2069
-# Comparison with constants:
-SELECT * FROM t2 WHERE yy = NULL;
-yy c2
-SELECT * FROM t4 WHERE yyyy = NULL;
-yyyy c4
-SELECT * FROM t2 WHERE yy <=> NULL;
-yy c2
-NULL NULL
-SELECT * FROM t4 WHERE yyyy <=> NULL;
-yyyy c4
-NULL NULL
-SELECT * FROM t2 WHERE yy < NULL;
-yy c2
-SELECT * FROM t2 WHERE yy > NULL;
-yy c2
-SELECT * FROM t2 WHERE yy = NOW();
-yy c2
-SELECT * FROM t4 WHERE yyyy = NOW();
-yyyy c4
-SELECT * FROM t2 WHERE yy = 99;
-yy c2
-99 1999
-SELECT * FROM t2 WHERE 99 = yy;
-yy c2
-99 1999
-SELECT * FROM t4 WHERE yyyy = 99;
-yyyy c4
-1999 1999
-SELECT * FROM t2 WHERE yy = 'test';
-yy c2
-00 2000
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'test'
-SELECT * FROM t4 WHERE yyyy = 'test';
-yyyy c4
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'test'
-SELECT * FROM t2 WHERE yy = '1999';
-yy c2
-99 1999
-SELECT * FROM t4 WHERE yyyy = '1999';
-yyyy c4
-1999 1999
-SELECT * FROM t2 WHERE yy = 1999;
-yy c2
-99 1999
-SELECT * FROM t4 WHERE yyyy = 1999;
-yyyy c4
-1999 1999
-SELECT * FROM t2 WHERE yy = 1999.1;
-yy c2
-99 1999
-SELECT * FROM t4 WHERE yyyy = 1999.1;
-yyyy c4
-1999 1999
-SELECT * FROM t2 WHERE yy = 1998.9;
-yy c2
-99 1999
-SELECT * FROM t4 WHERE yyyy = 1998.9;
-yyyy c4
-1999 1999
-# Coverage tests for YEAR with zero/2000 constants:
-SELECT * FROM t2 WHERE yy = 0;
-yy c2
-00 2000
-SELECT * FROM t2 WHERE yy = '0';
-yy c2
-00 2000
-SELECT * FROM t2 WHERE yy = '0000';
-yy c2
-00 2000
-SELECT * FROM t2 WHERE yy = '2000';
-yy c2
-00 2000
-SELECT * FROM t2 WHERE yy = 2000;
-yy c2
-00 2000
-SELECT * FROM t4 WHERE yyyy = 0;
-yyyy c4
-SELECT * FROM t4 WHERE yyyy = '0';
-yyyy c4
-2000 2000
-SELECT * FROM t4 WHERE yyyy = '0000';
-yyyy c4
-SELECT * FROM t4 WHERE yyyy = '2000';
-yyyy c4
-2000 2000
-SELECT * FROM t4 WHERE yyyy = 2000;
-yyyy c4
-2000 2000
-# Comparison with constants those are out of YEAR range
-# (coverage test for backward compatibility)
-SELECT COUNT(yy) FROM t2;
-COUNT(yy)
-5
-SELECT COUNT(yyyy) FROM t4;
-COUNT(yyyy)
-5
-SELECT COUNT(*) FROM t2 WHERE yy = -1;
-COUNT(*)
-0
-SELECT COUNT(*) FROM t4 WHERE yyyy > -1;
-COUNT(*)
-5
-SELECT COUNT(*) FROM t2 WHERE yy > -1000000000000000000;
-COUNT(*)
-5
-SELECT COUNT(*) FROM t4 WHERE yyyy > -1000000000000000000;
-COUNT(*)
-5
-SELECT COUNT(*) FROM t2 WHERE yy < 2156;
-COUNT(*)
-5
-SELECT COUNT(*) FROM t4 WHERE yyyy < 2156;
-COUNT(*)
-5
-SELECT COUNT(*) FROM t2 WHERE yy < 1000000000000000000;
-COUNT(*)
-5
-SELECT COUNT(*) FROM t4 WHERE yyyy < 1000000000000000000;
-COUNT(*)
-5
-SELECT * FROM t2 WHERE yy < 123;
-yy c2
-70 1970
-99 1999
-00 2000
-01 2001
-69 2069
-SELECT * FROM t2 WHERE yy > 123;
-yy c2
-SELECT * FROM t4 WHERE yyyy < 123;
-yyyy c4
-SELECT * FROM t4 WHERE yyyy > 123;
-yyyy c4
-1970 1970
-1999 1999
-2000 2000
-2001 2001
-2069 2069
-DROP TABLE t2, t4;
-#
-# Bug #49910: Behavioural change in SELECT/WHERE on YEAR(4) data type
-#
-CREATE TABLE t1 (y YEAR NOT NULL, s VARCHAR(4));
-INSERT IGNORE INTO t1 (s) VALUES ('bad');
-Warnings:
-Warning 1364 Field 'y' doesn't have a default value
-INSERT INTO t1 (y, s) VALUES (0, 0), (2000, 2000), (2001, 2001);
-SELECT * FROM t1 ta, t1 tb WHERE ta.y = tb.y;
-y s y s
-0000 bad 0000 bad
-0000 0 0000 bad
-0000 bad 0000 0
-0000 0 0000 0
-2000 2000 2000 2000
-2001 2001 2001 2001
-SELECT * FROM t1 WHERE t1.y = 0;
-y s
-0000 bad
-0000 0
-SELECT * FROM t1 WHERE t1.y = 2000;
-y s
-2000 2000
-SELECT ta.y AS ta_y, ta.s, tb.y AS tb_y, tb.s FROM t1 ta, t1 tb HAVING ta_y = tb_y;
-ta_y s tb_y s
-0000 bad 0000 bad
-0000 0 0000 bad
-0000 bad 0000 0
-0000 0 0000 0
-2000 2000 2000 2000
-2001 2001 2001 2001
-DROP TABLE t1;
-#
-# Bug #59211: Select Returns Different Value for min(year) Function
-#
-CREATE TABLE t1(c1 YEAR(4));
-INSERT INTO t1 VALUES (1901),(2155),(0000);
-SELECT * FROM t1;
-c1
-1901
-2155
-0000
-SELECT COUNT(*) AS total_rows, MIN(c1) AS min_value, MAX(c1) FROM t1;
-total_rows min_value MAX(c1)
-3 0 2155
-SELECT COUNT(*) AS total_rows, MIN(c1+0) AS min_value, MAX(c1+0) FROM t1;
-total_rows min_value MAX(c1+0)
-3 0 2155
-DROP TABLE t1;
-#
-# WL#6219: Deprecate and remove YEAR(2) type
-#
-CREATE TABLE t1 (c1 YEAR(2), c2 YEAR(4));
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-ALTER TABLE t1 MODIFY COLUMN c2 YEAR(2);
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-DROP TABLE t1;
-#
-End of 5.1 tests
-create function y2k() returns int deterministic return 2000;
-create table t1 (a year(2), b int);
-Warnings:
-Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
-insert t1 values (0,2000);
-select a from t1 where a=2000;
-a
-00
-select a from t1 where a=1000+1000;
-a
-00
-select a from t1 where a=(select 2000 from dual where 1);
-a
-00
-select a from t1 where a=y2k();
-a
-00
-select a from t1 where a=b;
-a
-drop table t1;
-drop function y2k;
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8741 Equal field propagation leaves some remainders after simplifying WHERE zerofill_column=2010 AND zerofill_column>=2010
-#
-CREATE TABLE t1 (a YEAR);
-INSERT INTO t1 VALUES (2010),(2020);
-SELECT * FROM t1 WHERE a=2010 AND a>=2010;
-a
-2010
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=2010 AND a>=2010;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2010
-SELECT * FROM t1 WHERE a=2010 AND a>=10;
-a
-2010
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=2010 AND a>=10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2010
-SELECT * FROM t1 WHERE a=10 AND a>=2010;
-a
-2010
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=10 AND a>=2010;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2010
-SELECT * FROM t1 WHERE a=10 AND a>=10;
-a
-2010
-EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=10 AND a>=10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2010
-DROP TABLE t1;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-9392 Copying from DECIMAL to YEAR is not consistent about warnings
-#
-CREATE TABLE t1 (a YEAR);
-INSERT IGNORE INTO t1 VALUES (-0.1);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a YEAR);
-CREATE TABLE t2 (a DECIMAL(10,1));
-INSERT INTO t2 VALUES (-0.1);
-INSERT IGNORE INTO t1 SELECT * FROM t2;
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DECIMAL(10,1));
-INSERT INTO t1 VALUES (-0.1);
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 MODIFY a YEAR;
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a YEAR);
-INSERT IGNORE INTO t1 VALUES (-0.1e0);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-DROP TABLE t1;
-CREATE TABLE t1 (a YEAR);
-CREATE TABLE t2 (a DOUBLE);
-INSERT INTO t2 VALUES (-0.1);
-INSERT IGNORE INTO t1 SELECT * FROM t2;
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a DOUBLE);
-INSERT INTO t1 VALUES (-0.1);
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-ALTER TABLE t1 MODIFY a YEAR;
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 1
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/udf.result b/mysql-test/r/udf.result
deleted file mode 100644
index 6af6b167511..00000000000
--- a/mysql-test/r/udf.result
+++ /dev/null
@@ -1,467 +0,0 @@
-drop table if exists t1;
-CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-CREATE FUNCTION myfunc_double RETURNS REAL SONAME "UDF_EXAMPLE_LIB";
-CREATE FUNCTION myfunc_nonexist RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
-ERROR HY000: Can't find symbol 'myfunc_nonexist' in library
-CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
-CREATE FUNCTION udf_sequence RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
-CREATE FUNCTION lookup RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-CREATE FUNCTION reverse_lookup
-RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-CREATE AGGREGATE FUNCTION avgcost
-RETURNS REAL SONAME "UDF_EXAMPLE_LIB";
-select myfunc_double();
-ERROR HY000: Can't initialize function 'myfunc_double'; myfunc_double must have at least one argument
-select myfunc_double(1);
-myfunc_double(1)
-49.00
-select myfunc_double(78654);
-myfunc_double(78654)
-54.00
-select myfunc_nonexist();
-ERROR 42000: FUNCTION test.myfunc_nonexist does not exist
-select myfunc_int();
-myfunc_int()
-0
-select lookup();
-ERROR HY000: Can't initialize function 'lookup'; Wrong arguments to lookup; Use the source
-select lookup("127.0.0.1");
-lookup("127.0.0.1")
-127.0.0.1
-select lookup(127,0,0,1);
-ERROR HY000: Can't initialize function 'lookup'; Wrong arguments to lookup; Use the source
-select lookup("localhost");
-lookup("localhost")
-127.0.0.1
-select reverse_lookup();
-ERROR HY000: Can't initialize function 'reverse_lookup'; Wrong number of arguments to reverse_lookup; Use the source
-select reverse_lookup("127.0.0.1");
-select reverse_lookup(127,0,0,1);
-select reverse_lookup("localhost");
-select avgcost();
-ERROR HY000: Can't initialize function 'avgcost'; wrong number of arguments: AVGCOST() requires two arguments
-select avgcost(100,23.76);
-ERROR HY000: Can't initialize function 'avgcost'; wrong argument type: AVGCOST() requires an INT and a REAL
-create table t1(sum int, price float(24));
-insert into t1 values(100, 50.00), (100, 100.00);
-select avgcost(sum, price) from t1;
-avgcost(sum, price)
-75.0000
-delete from t1;
-insert into t1 values(100, 54.33), (200, 199.99);
-select avgcost(sum, price) from t1;
-avgcost(sum, price)
-151.4367
-drop table t1;
-select metaphon('hello');
-metaphon('hello')
-HL
-CREATE PROCEDURE `XXX1`(in testval varchar(10))
-begin
-select metaphon(testval);
-end//
-call XXX1('hello');
-metaphon(testval)
-HL
-drop procedure xxx1;
-CREATE PROCEDURE `XXX2`()
-begin
-declare testval varchar(10);
-set testval = 'hello';
-select metaphon(testval);
-end//
-call XXX2();
-metaphon(testval)
-HL
-drop procedure xxx2;
-CREATE TABLE bug19904(n INT, v varchar(10));
-INSERT INTO bug19904 VALUES (1,'one'),(2,'two'),(NULL,NULL),(3,'three'),(4,'four');
-SELECT myfunc_double(n) AS f FROM bug19904;
-f
-49.00
-50.00
-NULL
-51.00
-52.00
-SELECT metaphon(v) AS f FROM bug19904;
-f
-ON
-TW
-NULL
-0R
-FR
-DROP TABLE bug19904;
-CREATE DEFINER=CURRENT_USER() FUNCTION should_not_parse
-RETURNS STRING SONAME "should_not_parse.so";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RETURNS STRING SONAME "should_not_parse.so"' at line 2
-CREATE DEFINER=someone@somewhere FUNCTION should_not_parse
-RETURNS STRING SONAME "should_not_parse.so";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RETURNS STRING SONAME "should_not_parse.so"' at line 2
-create table t1(f1 int);
-insert into t1 values(1),(2);
-explain select myfunc_int(f1) from t1 order by 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort
-drop table t1;
-CREATE TABLE t1(a INT, b INT);
-INSERT INTO t1 values (1,1),(2,2);
-CREATE FUNCTION fn(a int) RETURNS int DETERMINISTIC
-BEGIN
-RETURN a;
-END
-||
-CREATE VIEW v1 AS SELECT a, fn(MIN(b)) as c FROM t1 GROUP BY a;
-SELECT myfunc_int(a AS attr_name) FROM t1;
-myfunc_int(a AS attr_name)
-1
-2
-EXPLAIN EXTENDED SELECT myfunc_int(a AS attr_name) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 select myfunc_int(`test`.`t1`.`a` AS `attr_name`) AS `myfunc_int(a AS attr_name)` from `test`.`t1`
-EXPLAIN EXTENDED SELECT myfunc_int(a) FROM t1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1003 select myfunc_int(`test`.`t1`.`a` AS `a`) AS `myfunc_int(a)` from `test`.`t1`
-SELECT a,c FROM v1;
-a c
-1 1
-2 2
-SELECT a, fn(MIN(b) xx) as c FROM t1 GROUP BY a;
-ERROR 42000: Incorrect parameters in the call to stored function 'fn'
-SELECT myfunc_int(fn(MIN(b) xx)) as c FROM t1 GROUP BY a;
-ERROR 42000: Incorrect parameters in the call to stored function 'fn'
-SELECT myfunc_int(test.fn(MIN(b) xx)) as c FROM t1 GROUP BY a;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'xx)) as c FROM t1 GROUP BY a' at line 1
-SELECT myfunc_int(fn(MIN(b)) xx) as c FROM t1 GROUP BY a;
-c
-1
-2
-SELECT myfunc_int(test.fn(MIN(b)) xx) as c FROM t1 GROUP BY a;
-c
-1
-2
-EXPLAIN EXTENDED SELECT myfunc_int(MIN(b) xx) as c FROM t1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 select myfunc_int(min(`test`.`t1`.`b`) AS `xx`) AS `c` from `test`.`t1` group by `test`.`t1`.`a`
-EXPLAIN EXTENDED SELECT test.fn(MIN(b)) as c FROM t1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 select `test`.`fn`(min(`test`.`t1`.`b`)) AS `c` from `test`.`t1` group by `test`.`t1`.`a`
-EXPLAIN EXTENDED SELECT myfunc_int(fn(MIN(b))) as c FROM t1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 select myfunc_int(`fn`(min(`test`.`t1`.`b`)) AS `fn(MIN(b))`) AS `c` from `test`.`t1` group by `test`.`t1`.`a`
-EXPLAIN EXTENDED SELECT myfunc_int(test.fn(MIN(b))) as c FROM t1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-Warnings:
-Note 1003 select myfunc_int(`test`.`fn`(min(`test`.`t1`.`b`)) AS `test.fn(MIN(b))`) AS `c` from `test`.`t1` group by `test`.`t1`.`a`
-SELECT myfunc_int(MIN(b) xx) as c FROM t1 GROUP BY a;
-c
-1
-2
-SELECT test.fn(MIN(b)) as c FROM t1 GROUP BY a;
-c
-1
-2
-SELECT myfunc_int(fn(MIN(b))) as c FROM t1 GROUP BY a;
-c
-1
-2
-SELECT myfunc_int(test.fn(MIN(b))) as c FROM t1 GROUP BY a;
-c
-1
-2
-DROP VIEW v1;
-DROP TABLE t1;
-DROP FUNCTION fn;
-End of 5.0 tests.
-select myfunc_double(3);
-myfunc_double(3)
-51.00
-select myfunc_double(3 AS three);
-myfunc_double(3 AS three)
-51.00
-select myfunc_double(abs(3));
-myfunc_double(abs(3))
-51.00
-select myfunc_double(abs(3) AS named_param);
-myfunc_double(abs(3) AS named_param)
-51.00
-select abs(myfunc_double(3));
-abs(myfunc_double(3))
-51.00
-select abs(myfunc_double(3 AS three));
-abs(myfunc_double(3 AS three))
-51.00
-select myfunc_double(abs(3 AS wrong));
-ERROR 42000: Incorrect parameters in the call to native function 'abs'
-select abs(myfunc_double(3) AS wrong);
-ERROR 42000: Incorrect parameters in the call to native function 'abs'
-drop function if exists pi;
-CREATE FUNCTION pi RETURNS STRING SONAME "should_not_parse.so";
-ERROR HY000: This function 'pi' has the same name as a native function
-DROP FUNCTION IF EXISTS metaphon;
-CREATE FUNCTION metaphon(a int) RETURNS int
-return 0;
-CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-DROP FUNCTION metaphon;
-DROP FUNCTION metaphon;
-CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-CREATE FUNCTION metaphon(a int) RETURNS int
-return 0;
-ERROR HY000: Function 'metaphon' already exists
-CREATE FUNCTION test.metaphon(a int) RETURNS int
-return 0;
-ERROR HY000: Function 'metaphon' already exists
-DROP FUNCTION metaphon;
-DROP FUNCTION myfunc_double;
-DROP FUNCTION myfunc_nonexist;
-ERROR 42000: FUNCTION test.myfunc_nonexist does not exist
-DROP FUNCTION myfunc_int;
-DROP FUNCTION udf_sequence;
-DROP FUNCTION lookup;
-DROP FUNCTION reverse_lookup;
-DROP FUNCTION avgcost;
-select * from mysql.func;
-name ret dl type
-CREATE FUNCTION is_const RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-select IS_const(3);
-IS_const(3)
-const
-drop function IS_const;
-select * from mysql.func;
-name ret dl type
-select is_const(3);
-ERROR 42000: FUNCTION test.is_const does not exist
-CREATE FUNCTION is_const RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-select
-is_const(3) as const,
-is_const(3.14) as const,
-is_const('fnord') as const,
-is_const(2+3) as const,
-is_const(rand()) as 'nc rand()',
-is_const(sin(3.14)) as const,
-is_const(upper('test')) as const;
-const const const const nc rand() const const
-const const const const not const const const
-create table bug18761 (n int);
-insert into bug18761 values (null),(2);
-select
-is_const(3) as const,
-is_const(3.14) as const,
-is_const('fnord') as const,
-is_const(2+3) as const,
-is_const(2+n) as 'nc 2+n ',
-is_const(sin(n)) as 'nc sin(n)',
-is_const(sin(3.14)) as const,
-is_const(upper('test')) as const,
-is_const(rand()) as 'nc rand()',
-is_const(n) as 'nc n ',
-is_const(is_const(n)) as 'nc ic?(n)',
-is_const(is_const('c')) as const
-from
-bug18761;
-const const const const nc 2+n nc sin(n) const const nc rand() nc n nc ic?(n) const
-const const const const not const not const const const not const not const not const const
-const const const const not const not const const const not const not const not const const
-drop table bug18761;
-select is_const((1,2,3));
-ERROR 21000: Operand should contain 1 column(s)
-drop function if exists is_const;
-CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-CREATE FUNCTION myfunc_double RETURNS REAL SONAME "UDF_EXAMPLE_LIB";
-CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
-create function f1(p1 varchar(255))
-returns varchar(255)
-begin
-return metaphon(p1);
-end//
-create function f2(p1 varchar(255))
-returns double
-begin
-return myfunc_double(p1);
-end//
-create function f3(p1 varchar(255))
-returns double
-begin
-return myfunc_int(p1);
-end//
-select f3(NULL);
-f3(NULL)
-0
-select f2(NULL);
-f2(NULL)
-NULL
-select f1(NULL);
-f1(NULL)
-NULL
-drop function f1;
-drop function f2;
-drop function f3;
-drop function metaphon;
-drop function myfunc_double;
-drop function myfunc_int;
-DROP DATABASE IF EXISTS mysqltest;
-CREATE DATABASE mysqltest;
-USE mysqltest;
-DROP DATABASE mysqltest;
-CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-DROP FUNCTION metaphon;
-USE test;
-CREATE TABLE const_len_bug (
-str_const varchar(4000),
-result1 varchar(4000),
-result2 varchar(4000)
-);
-CREATE TRIGGER check_const_len_trigger BEFORE INSERT ON const_len_bug FOR EACH ROW BEGIN
-set NEW.str_const = 'bar';
-set NEW.result2 = check_const_len(NEW.str_const);
-END |
-CREATE PROCEDURE check_const_len_sp (IN str_const VARCHAR(4000))
-BEGIN
-DECLARE result VARCHAR(4000);
-SET result = check_const_len(str_const);
-insert into const_len_bug values(str_const, result, "");
-END |
-CREATE FUNCTION check_const_len RETURNS string SONAME "UDF_EXAMPLE_LIB";
-CALL check_const_len_sp("foo");
-SELECT * from const_len_bug;
-str_const result1 result2
-bar Correct length Correct length
-DROP FUNCTION check_const_len;
-DROP PROCEDURE check_const_len_sp;
-DROP TRIGGER check_const_len_trigger;
-DROP TABLE const_len_bug;
-CREATE FUNCTION udf_sequence RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT PRIMARY KEY);
-INSERT INTO t1 VALUES (4),(3),(2),(1);
-INSERT INTO t2 SELECT * FROM t1;
-SELECT udf_sequence() AS seq, a FROM t1 ORDER BY seq ASC;
-seq a
-1 4
-2 3
-3 2
-4 1
-SELECT udf_sequence() AS seq, a FROM t1 ORDER BY seq DESC;
-seq a
-4 1
-3 2
-2 3
-1 4
-SELECT * FROM t1 WHERE a = udf_sequence();
-a
-SELECT * FROM t2 WHERE a = udf_sequence();
-a
-1
-2
-3
-4
-DROP FUNCTION udf_sequence;
-DROP TABLE t1,t2;
-drop function if exists test.metaphon;
-drop function if exists metaphon;
-CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-select metaphon("Hello");
-metaphon("Hello")
-HL
-drop function if exists test.metaphon;
-Warnings:
-Note 1305 FUNCTION test.metaphon does not exist
-select metaphon("Hello");
-metaphon("Hello")
-HL
-drop function metaphon;
-CREATE FUNCTION test.metaphon(a TEXT) RETURNS TEXT return "This is a SF";
-create database db_31767;
-use db_31767;
-CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-use test;
-select metaphon("Hello");
-metaphon("Hello")
-HL
-select test.metaphon("Hello");
-test.metaphon("Hello")
-This is a SF
-drop function metaphon;
-select metaphon("Hello");
-metaphon("Hello")
-This is a SF
-drop function metaphon;
-use db_31767;
-drop database db_31767;
-drop function if exists no_such_func;
-Warnings:
-Note 1305 FUNCTION (UDF) no_such_func does not exist
-drop function no_such_func;
-ERROR 42000: FUNCTION (UDF) no_such_func does not exist
-drop function if exists test.no_such_func;
-Warnings:
-Note 1305 FUNCTION test.no_such_func does not exist
-drop function test.no_such_func;
-ERROR 42000: FUNCTION test.no_such_func does not exist
-drop procedure if exists no_such_proc;
-ERROR 3D000: No database selected
-drop procedure no_such_proc;
-ERROR 3D000: No database selected
-use test;
-#
-# Bug#46259: 5.0.83 -> 5.1.36, query doesn't work
-#
-CREATE TABLE t1 ( a INT );
-INSERT INTO t1 VALUES (1), (2), (3);
-SELECT IF( a = 1, a, a ) AS `b` FROM t1 ORDER BY field( `b` + 1, 1 );
-b
-1
-2
-3
-SELECT IF( a = 1, a, a ) AS `b` FROM t1 ORDER BY field( `b`, 1 );
-b
-2
-3
-1
-DROP TABLE t1;
-End of 5.0 tests.
-#
-# Bug#33546: Slowdown on re-evaluation of constant expressions.
-#
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES(1),(50);
-CREATE FUNCTION myfunc_double RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
-EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE f1=1 + myfunc_double(1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select 1 AS `1` from `test`.`t1` where `test`.`t1`.`f1` = <cache>(1 + myfunc_double(1 AS `1`))
-DROP FUNCTION myfunc_double;
-DROP TABLE t1;
-#
-End of 5.1 tests.
-#
-# MDEV-10134 Add full support for DEFAULT
-#
-CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-SELECT METAPHON('Hello');
-METAPHON('Hello')
-HL
-CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(10) DEFAULT METAPHON(a));
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(10) DEFAULT NULL,
- `b` varchar(10) DEFAULT metaphon(`a` AS `a`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-INSERT INTO t1 (a) VALUES ('Hello');
-SELECT * FROM t1;
-a b
-Hello HL
-DROP FUNCTION METAPHON;
-DROP TABLE t1;
diff --git a/mysql-test/r/udf_debug_sync.result b/mysql-test/r/udf_debug_sync.result
deleted file mode 100644
index 8ce6dbdd5c0..00000000000
--- a/mysql-test/r/udf_debug_sync.result
+++ /dev/null
@@ -1,28 +0,0 @@
-CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
-CREATE VIEW v1 AS SELECT myfunc_int(1);
-connect con1, localhost, root,,;
-connection con1;
-SET debug_sync='mysql_create_function_after_lock SIGNAL locked WAIT_FOR go';
-CREATE FUNCTION myfunc_double RETURNS REAL SONAME "UDF_EXAMPLE_LIB";
-connection default;
-SET debug_sync='now WAIT_FOR locked';
-SET debug_sync='find_udf_before_lock SIGNAL go';
-SELECT * FROM v1;
-myfunc_int(1)
-1
-FLUSH TABLES;
-connection con1;
-SET debug_sync='mysql_drop_function_after_lock SIGNAL locked WAIT_FOR go';
-DROP FUNCTION myfunc_double;
-connection default;
-SET debug_sync='now WAIT_FOR locked';
-SET debug_sync='find_udf_before_lock SIGNAL go';
-SELECT * FROM v1;
-myfunc_int(1)
-1
-connection con1;
-disconnect con1;
-connection default;
-SET debug_sync='RESET';
-DROP VIEW v1;
-DROP FUNCTION myfunc_int;
diff --git a/mysql-test/r/udf_notembedded.result b/mysql-test/r/udf_notembedded.result
deleted file mode 100644
index 377af563d3e..00000000000
--- a/mysql-test/r/udf_notembedded.result
+++ /dev/null
@@ -1,6 +0,0 @@
-create function udf_sequence returns integer soname "UDF_EXAMPLE_LIB";
-create table t1 (n int key not null auto_increment, msg int as (udf_sequence()) virtual);
-select * from t1;
-n msg
-drop table t1;
-drop function udf_sequence;
diff --git a/mysql-test/r/udf_query_cache.result b/mysql-test/r/udf_query_cache.result
deleted file mode 100644
index 8c25c127012..00000000000
--- a/mysql-test/r/udf_query_cache.result
+++ /dev/null
@@ -1,25 +0,0 @@
-drop table if exists t1;
-CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
-create table t1 (a char);
-set GLOBAL query_cache_size=1355776;
-reset query cache;
-flush status;
-select metaphon('MySQL') from t1;
-metaphon('MySQL')
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-select metaphon('MySQL') from t1;
-metaphon('MySQL')
-show status like "Qcache_hits";
-Variable_name Value
-Qcache_hits 0
-show status like "Qcache_queries_in_cache";
-Variable_name Value
-Qcache_queries_in_cache 0
-drop table t1;
-drop function metaphon;
-set GLOBAL query_cache_size=default;
diff --git a/mysql-test/r/udf_skip_grants.result b/mysql-test/r/udf_skip_grants.result
deleted file mode 100644
index 8d7081ebf6f..00000000000
--- a/mysql-test/r/udf_skip_grants.result
+++ /dev/null
@@ -1,5 +0,0 @@
-CREATE FUNCTION a RETURNS STRING SONAME '';
-ERROR HY000: Can't initialize function 'a'; UDFs are unavailable with the --skip-grant-tables option
-DROP FUNCTION a;
-ERROR 42000: FUNCTION test.a does not exist
-End of 5.0 tests
diff --git a/mysql-test/r/union.result b/mysql-test/r/union.result
deleted file mode 100644
index 4e5f9312e03..00000000000
--- a/mysql-test/r/union.result
+++ /dev/null
@@ -1,2504 +0,0 @@
-drop table if exists t1,t2,t3,t4,t5,t6;
-CREATE TABLE t1 (a int not null, b char (10) not null);
-insert into t1 values(1,'a'),(2,'b'),(3,'c'),(3,'c');
-CREATE TABLE t2 (a int not null, b char (10) not null);
-insert into t2 values (3,'c'),(4,'d'),(5,'f'),(6,'e');
-select a,b from t1 union distinct select a,b from t2;
-a b
-1 a
-2 b
-3 c
-4 d
-5 f
-6 e
-select a,b from t1 union all select a,b from t2;
-a b
-1 a
-2 b
-3 c
-3 c
-3 c
-4 d
-5 f
-6 e
-select a,b from t1 union all select a,b from t2 order by b;
-a b
-1 a
-2 b
-3 c
-3 c
-3 c
-4 d
-6 e
-5 f
-select a,b from t1 union all select a,b from t2 union select 7,'g';
-a b
-1 a
-2 b
-3 c
-4 d
-5 f
-6 e
-7 g
-select 0,'#' union select a,b from t1 union all select a,b from t2 union select 7,'gg';
-0 #
-0 #
-1 a
-2 b
-3 c
-4 d
-5 f
-6 e
-7 gg
-select a,b from t1 union select a,b from t1;
-a b
-1 a
-2 b
-3 c
-select 't1',b,count(*) from t1 group by b UNION select 't2',b,count(*) from t2 group by b;
-t1 b count(*)
-t1 a 1
-t1 b 1
-t1 c 2
-t2 c 1
-t2 d 1
-t2 e 1
-t2 f 1
-(select a,b from t1 limit 2) union all (select a,b from t2 order by a) limit 4;
-a b
-1 a
-2 b
-3 c
-4 d
-(select a,b from t1 limit 2) union all (select a,b from t2 order by a limit 1);
-a b
-1 a
-2 b
-3 c
-(select a,b from t1 limit 2) union all (select a,b from t2 order by a limit 1) order by b desc;
-a b
-3 c
-2 b
-1 a
-(select a,b from t1 limit 2) union all (select a,b from t2 order by a limit 1) order by t1.b;
-ERROR 42000: Table 't1' from one of the SELECTs cannot be used in global ORDER clause
-explain extended (select a,b from t1 limit 2) union all (select a,b from t2 order by a limit 1) order by b desc;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4 100.00
-2 UNION t2 ALL NULL NULL NULL NULL 4 100.00 Using filesort
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL NULL Using filesort
-Warnings:
-Note 1003 (/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` limit 2) union all (/* select#2 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` order by `test`.`t2`.`a` limit 1) order by `b` desc
-select count(*) from (
-(select a,b from t1 limit 2) union all (select a,b from t2 order by a)) q;
-count(*)
-6
-(select sql_calc_found_rows a,b from t1 limit 2) union all (select a,b from t2 order by a) limit 2;
-a b
-1 a
-2 b
-select found_rows();
-found_rows()
-6
-select count(*) from (
-select a,b from t1 union all select a,b from t2) q;
-count(*)
-8
-select sql_calc_found_rows a,b from t1 union all select a,b from t2 limit 2;
-a b
-1 a
-2 b
-select found_rows();
-found_rows()
-8
-explain select a,b from t1 union all select a,b from t2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 UNION t2 ALL NULL NULL NULL NULL 4
-explain select xx from t1 union select 1;
-ERROR 42S22: Unknown column 'xx' in 'field list'
-explain select a,b from t1 union select 1;
-ERROR 21000: The used SELECT statements have a different number of columns
-explain select 1 union select a,b from t1 union select 1;
-ERROR 21000: The used SELECT statements have a different number of columns
-explain select a,b from t1 union select 1 limit 0;
-ERROR 21000: The used SELECT statements have a different number of columns
-select a,b from t1 into outfile 'skr' union select a,b from t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'union select a,b from t2' at line 1
-select a,b from t1 order by a union select a,b from t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'union select a,b from t2' at line 1
-insert into t3 select a from t1 order by a union select a from t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'union select a from t2' at line 1
-create table t3 select a,b from t1 union select a from t2;
-ERROR 21000: The used SELECT statements have a different number of columns
-select a,b from t1 union select a from t2;
-ERROR 21000: The used SELECT statements have a different number of columns
-select * from t1 union select a from t2;
-ERROR 21000: The used SELECT statements have a different number of columns
-select a from t1 union select * from t2;
-ERROR 21000: The used SELECT statements have a different number of columns
-select * from t1 union select SQL_BUFFER_RESULT * from t2;
-ERROR 42000: Incorrect usage/placement of 'SQL_BUFFER_RESULT'
-create table t3 select a,b from t1 union all select a,b from t2;
-insert into t3 select a,b from t1 union all select a,b from t2;
-replace into t3 select a,b as c from t1 union all select a,b from t2;
-drop table t1,t2,t3;
-select * union select 1;
-ERROR HY000: No tables used
-select 1 as a,(select a union select a);
-a (select a union select a)
-1 1
-(select 1) union (select 2) order by 0;
-ERROR 42S22: Unknown column '0' in 'order clause'
-SELECT @a:=1 UNION SELECT @a:=@a+1;
-@a:=1
-1
-2
-(SELECT 1) UNION (SELECT 2) ORDER BY (SELECT a);
-ERROR 42S22: Unknown column 'a' in 'field list'
-(SELECT 1,3) UNION (SELECT 2,1) ORDER BY (SELECT 2);
-1 3
-1 3
-2 1
-CREATE TABLE t1 (
-`pseudo` char(35) NOT NULL default '',
-`pseudo1` char(35) NOT NULL default '',
-`same` tinyint(1) unsigned NOT NULL default '1',
-PRIMARY KEY (`pseudo1`),
-KEY `pseudo` (`pseudo`)
-) ENGINE=MyISAM;
-INSERT INTO t1 (pseudo,pseudo1,same) VALUES ('joce', 'testtt', 1),('joce', 'tsestset', 1),('dekad', 'joce', 1);
-SELECT pseudo FROM t1 WHERE pseudo1='joce' UNION SELECT pseudo FROM t1 WHERE pseudo='joce';
-pseudo
-dekad
-joce
-SELECT pseudo1 FROM t1 WHERE pseudo1='joce' UNION SELECT pseudo1 FROM t1 WHERE pseudo='joce';
-pseudo1
-joce
-testtt
-tsestset
-SELECT * FROM t1 WHERE pseudo1='joce' UNION SELECT * FROM t1 WHERE pseudo='joce' order by pseudo desc,pseudo1 desc;
-pseudo pseudo1 same
-joce tsestset 1
-joce testtt 1
-dekad joce 1
-SELECT pseudo1 FROM t1 WHERE pseudo='joce' UNION SELECT pseudo FROM t1 WHERE pseudo1='joce';
-pseudo1
-testtt
-tsestset
-dekad
-SELECT pseudo1 FROM t1 WHERE pseudo='joce' UNION ALL SELECT pseudo FROM t1 WHERE pseudo1='joce';
-pseudo1
-testtt
-tsestset
-dekad
-SELECT pseudo1 FROM t1 WHERE pseudo='joce' UNION SELECT 1;
-pseudo1
-testtt
-tsestset
-1
-drop table t1;
-create table t1 (a int);
-create table t2 (a int);
-insert into t1 values (1),(2),(3),(4),(5);
-insert into t2 values (11),(12),(13),(14),(15);
-(select * from t1 limit 2) union (select * from t2 limit 3) limit 4;
-a
-1
-2
-11
-12
-(select * from t1 limit 2) union (select * from t2 limit 3);
-a
-1
-2
-11
-12
-13
-(select * from t1 limit 2) union (select * from t2 limit 20,3);
-a
-1
-2
-set SQL_SELECT_LIMIT=2;
-(select * from t1 limit 1) union (select * from t2 limit 3);
-a
-1
-11
-set SQL_SELECT_LIMIT=DEFAULT;
-drop table t1,t2;
-CREATE TABLE t1 (
-cid smallint(5) unsigned NOT NULL default '0',
-cv varchar(250) NOT NULL default '',
-PRIMARY KEY (cid),
-UNIQUE KEY cv (cv)
-) ;
-INSERT INTO t1 VALUES (8,'dummy');
-CREATE TABLE t2 (
-cid bigint(20) unsigned NOT NULL auto_increment,
-cap varchar(255) NOT NULL default '',
-PRIMARY KEY (cid),
-KEY cap (cap)
-) ;
-CREATE TABLE t3 (
-gid bigint(20) unsigned NOT NULL auto_increment,
-gn varchar(255) NOT NULL default '',
-must tinyint(4) default NULL,
-PRIMARY KEY (gid),
-KEY gn (gn)
-) ;
-INSERT INTO t3 VALUES (1,'V1',NULL);
-CREATE TABLE t4 (
-uid bigint(20) unsigned NOT NULL default '0',
-gid bigint(20) unsigned default NULL,
-rid bigint(20) unsigned default NULL,
-cid bigint(20) unsigned default NULL,
-UNIQUE KEY m (uid,gid,rid,cid),
-KEY uid (uid),
-KEY rid (rid),
-KEY cid (cid),
-KEY container (gid,rid,cid)
-) ;
-INSERT INTO t4 VALUES (1,1,NULL,NULL);
-CREATE TABLE t5 (
-rid bigint(20) unsigned NOT NULL auto_increment,
-rl varchar(255) NOT NULL default '',
-PRIMARY KEY (rid),
-KEY rl (rl)
-) ;
-CREATE TABLE t6 (
-uid bigint(20) unsigned NOT NULL auto_increment,
-un varchar(250) NOT NULL default '',
-uc smallint(5) unsigned NOT NULL default '0',
-PRIMARY KEY (uid),
-UNIQUE KEY nc (un,uc),
-KEY un (un)
-) ;
-INSERT INTO t6 VALUES (1,'test',8);
-SELECT t4.uid, t5.rl, t3.gn as g1, t4.cid, t4.gid as gg FROM t3, t6, t1, t4 left join t5 on t5.rid = t4.rid left join t2 on t2.cid = t4.cid WHERE t3.gid=t4.gid AND t6.uid = t4.uid AND t6.uc = t1.cid AND t1.cv = "dummy" AND t6.un = "test";
-uid rl g1 cid gg
-1 NULL V1 NULL 1
-SELECT t4.uid, t5.rl, t3.gn as g1, t4.cid, t4.gid as gg FROM t3, t6, t1, t4 left join t5 on t5.rid = t4.rid left join t2 on t2.cid = t4.cid WHERE t3.gid=t4.gid AND t6.uid = t4.uid AND t3.must IS NOT NULL AND t6.uc = t1.cid AND t1.cv = "dummy" AND t6.un = "test";
-uid rl g1 cid gg
-(SELECT t4.uid, t5.rl, t3.gn as g1, t4.cid, t4.gid as gg FROM t3, t6, t1, t4 left join t5 on t5.rid = t4.rid left join t2 on t2.cid = t4.cid WHERE t3.gid=t4.gid AND t6.uid = t4.uid AND t3.must IS NOT NULL AND t6.uc = t1.cid AND t1.cv = "dummy" AND t6.un = "test") UNION (SELECT t4.uid, t5.rl, t3.gn as g1, t4.cid, t4.gid as gg FROM t3, t6, t1, t4 left join t5 on t5.rid = t4.rid left join t2 on t2.cid = t4.cid WHERE t3.gid=t4.gid AND t6.uid = t4.uid AND t6.uc = t1.cid AND t1.cv = "dummy" AND t6.un = "test");
-uid rl g1 cid gg
-1 NULL V1 NULL 1
-drop table t1,t2,t3,t4,t5,t6;
-CREATE TABLE t1 (a int not null, b char (10) not null);
-insert into t1 values(1,'a'),(2,'b'),(3,'c'),(3,'c');
-CREATE TABLE t2 (a int not null, b char (10) not null);
-insert into t2 values (3,'c'),(4,'d'),(5,'f'),(6,'e');
-create table t3 select a,b from t1 union select a,b from t2;
-create table t4 (select a,b from t1) union (select a,b from t2) limit 2;
-insert into t4 select a,b from t1 union select a,b from t2;
-insert into t3 (select a,b from t1) union (select a,b from t2) limit 2;
-select * from t3;
-a b
-1 a
-2 b
-3 c
-4 d
-5 f
-6 e
-1 a
-2 b
-select * from t4;
-a b
-1 a
-2 b
-1 a
-2 b
-3 c
-4 d
-5 f
-6 e
-drop table t1,t2,t3,t4;
-create table t1 (a int);
-insert into t1 values (1),(2),(3);
-create table t2 (a int);
-insert into t2 values (3),(4),(5);
-SELECT COUNT(*) FROM (
-(SELECT * FROM t1) UNION all (SELECT * FROM t2)) q;
-COUNT(*)
-6
-(SELECT SQL_CALC_FOUND_ROWS * FROM t1) UNION all (SELECT * FROM t2) LIMIT 1;
-a
-1
-select found_rows();
-found_rows()
-6
-SELECT COUNT(*) FROM (
-(SELECT * FROM t1 LIMIT 1) UNION all (SELECT * FROM t2)) q;
-COUNT(*)
-4
-(SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 1) UNION all (SELECT * FROM t2) LIMIT 2;
-a
-1
-3
-select found_rows();
-found_rows()
-4
-SELECT COUNT(*) FROM (
-(SELECT * FROM t1 LIMIT 1) UNION all (SELECT * FROM t2)) q;
-COUNT(*)
-4
-(SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 1) UNION all (SELECT * FROM t2);
-a
-1
-3
-4
-5
-select found_rows();
-found_rows()
-4
-SELECT COUNT(*) FROM (
-(SELECT * FROM t1) UNION all (SELECT * FROM t2 LIMIT 1)) q;
-COUNT(*)
-4
-(SELECT SQL_CALC_FOUND_ROWS * FROM t1) UNION all (SELECT * FROM t2 LIMIT 1);
-a
-1
-2
-3
-3
-select found_rows();
-found_rows()
-4
-(SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 1) UNION SELECT * FROM t2 LIMIT 1;
-a
-1
-select found_rows();
-found_rows()
-4
-SELECT COUNT(*) FROM (
-(SELECT * FROM t1 LIMIT 1) UNION SELECT * FROM t2) q;
-COUNT(*)
-4
-(SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 1) UNION SELECT * FROM t2 LIMIT 1;
-a
-1
-select found_rows();
-found_rows()
-4
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 1 UNION all SELECT * FROM t2 LIMIT 2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION all SELECT * FROM t2 LIMIT 2' at line 1
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 UNION all SELECT * FROM t2 LIMIT 2;
-a
-1
-2
-select found_rows();
-found_rows()
-6
-SELECT COUNT(*) FROM (
-SELECT * FROM t1 UNION SELECT * FROM t2) q;
-COUNT(*)
-5
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 UNION SELECT * FROM t2 LIMIT 2;
-a
-1
-2
-SELECT COUNT(*) FROM (
-(SELECT * FROM t1 LIMIT 1) UNION all SELECT * FROM t2) q;
-COUNT(*)
-4
-(SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 1) UNION all SELECT * FROM t2 LIMIT 2;
-a
-1
-3
-select found_rows();
-found_rows()
-4
-SELECT COUNT(*) FROM (
-SELECT * FROM t1 UNION all SELECT * FROM t2) q;
-COUNT(*)
-6
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 UNION SELECT * FROM t2 LIMIT 100;
-a
-1
-2
-3
-4
-5
-select found_rows();
-found_rows()
-5
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 100 UNION SELECT * FROM t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT * FROM t2' at line 1
-SELECT COUNT(*) FROM (
-(SELECT * FROM t1 LIMIT 100) UNION SELECT * FROM t2) q;
-COUNT(*)
-5
-(SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 100) UNION SELECT * FROM t2;
-a
-1
-2
-3
-4
-5
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 1 UNION SELECT * FROM t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT * FROM t2' at line 1
-SELECT COUNT(*) FROM (
-(SELECT * FROM t1 LIMIT 1) UNION SELECT * FROM t2) q;
-COUNT(*)
-4
-(SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 1) UNION SELECT * FROM t2;
-a
-1
-3
-4
-5
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 1 UNION SELECT * FROM t2 LIMIT 2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT * FROM t2 LIMIT 2' at line 1
-SELECT COUNT(*) FROM (
-(SELECT * FROM t1 LIMIT 1) UNION SELECT * FROM t2) q;
-COUNT(*)
-4
-(SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 1) UNION SELECT * FROM t2 LIMIT 2;
-a
-1
-3
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 UNION SELECT * FROM t2 LIMIT 2,2;
-a
-3
-4
-select found_rows();
-found_rows()
-5
-SELECT COUNT(*) FROM (
-SELECT * FROM t1 UNION SELECT * FROM t2) q;
-COUNT(*)
-5
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 limit 2,2 UNION SELECT * FROM t2;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT * FROM t2' at line 1
-SELECT COUNT(*) FROM (
-(SELECT * FROM t1 limit 2,2) UNION SELECT * FROM t2) q;
-COUNT(*)
-3
-(SELECT SQL_CALC_FOUND_ROWS * FROM t1 limit 2,2) UNION SELECT * FROM t2;
-a
-3
-4
-5
-SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a desc LIMIT 1;
-a
-5
-(SELECT * FROM t1 ORDER by a) UNION ALL (SELECT * FROM t2 ORDER BY a) ORDER BY A desc LIMIT 4;
-a
-5
-4
-3
-3
-(SELECT * FROM t1) UNION all (SELECT SQL_CALC_FOUND_ROWS * FROM t2) LIMIT 1;
-ERROR 42000: Incorrect usage/placement of 'SQL_CALC_FOUND_ROWS'
-create temporary table t1 select a from t1 union select a from t2;
-drop temporary table t1;
-create table t1 select a from t1 union select a from t2;
-ERROR 42S01: Table 't1' already exists
-select a from t1 union select a from t2 order by t2.a;
-ERROR 42000: Table 't2' from one of the SELECTs cannot be used in field list
-drop table t1,t2;
-select length(version()) > 1 as `*` UNION select 2;
-*
-1
-2
-create table t1 (a int);
-insert into t1 values (0), (3), (1), (2);
-explain (select * from t1) union (select * from t1) order by a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 4
-2 UNION t1 ALL NULL NULL NULL NULL 4
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL Using filesort
-drop table t1;
-CREATE TABLE t1 ( id int(3) unsigned default '0') ENGINE=MyISAM;
-INSERT INTO t1 (id) VALUES("1");
-CREATE TABLE t2 ( id int(3) unsigned default '0', id_master int(5) default '0', text1 varchar(5) default NULL, text2 varchar(5) default NULL) ENGINE=MyISAM;
-INSERT INTO t2 (id, id_master, text1, text2) VALUES("1", "1",
-"foo1", "bar1");
-INSERT INTO t2 (id, id_master, text1, text2) VALUES("2", "1",
-"foo2", "bar2");
-INSERT INTO t2 (id, id_master, text1, text2) VALUES("3", "1", NULL,
-"bar3");
-INSERT INTO t2 (id, id_master, text1, text2) VALUES("4", "1",
-"foo4", "bar4");
-SELECT 1 AS id_master, 1 AS id, NULL AS text1, 'ABCDE' AS text2 UNION SELECT id_master, t2.id, text1, text2 FROM t1 LEFT JOIN t2 ON t1.id = t2.id_master;
-id_master id text1 text2
-1 1 NULL ABCDE
-1 1 foo1 bar1
-1 2 foo2 bar2
-1 3 NULL bar3
-1 4 foo4 bar4
-SELECT 1 AS id_master, 1 AS id, 'ABCDE' AS text1, 'ABCDE' AS text2 UNION SELECT id_master, t2.id, text1, text2 FROM t1 LEFT JOIN t2 ON t1.id = t2.id_master;
-id_master id text1 text2
-1 1 ABCDE ABCDE
-1 1 foo1 bar1
-1 2 foo2 bar2
-1 3 NULL bar3
-1 4 foo4 bar4
-drop table if exists t1,t2;
-create table t1 (a int not null primary key auto_increment, b int, key(b));
-create table t2 (a int not null primary key auto_increment, b int);
-insert into t1 (b) values (1),(2),(2),(3);
-insert into t2 (b) values (10),(11),(12),(13);
-explain extended (select * from t1 where a=1) union (select * from t2 where a=1);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 const PRIMARY PRIMARY 4 const 1 100.00
-2 UNION t2 const PRIMARY PRIMARY 4 const 1 100.00
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL NULL
-Warnings:
-Note 1003 (/* select#1 */ select 1 AS `a`,1 AS `b` from `test`.`t1` where 1) union (/* select#2 */ select 1 AS `a`,10 AS `b` from `test`.`t2` where 1)
-(select * from t1 where a=5) union (select * from t2 where a=1);
-a b
-1 10
-(select * from t1 where a=5 and a=6) union (select * from t2 where a=1);
-a b
-1 10
-(select t1.a,t1.b from t1,t2 where t1.a=5) union (select * from t2 where a=1);
-a b
-1 10
-(select * from t1 where a=1) union (select t1.a,t2.a from t1,t2 where t1.a=t2.a);
-a b
-1 1
-2 2
-3 3
-4 4
-explain (select * from t1 where a=1 and b=10) union (select straight_join t1.a,t2.a from t1,t2 where t1.a=t2.a);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 UNION t1 index PRIMARY PRIMARY 4 NULL 4 Using index
-2 UNION t2 index PRIMARY PRIMARY 4 NULL 4 Using where; Using index; Using join buffer (flat, BNL join)
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-explain (select * from t1 where a=1) union (select * from t1 where b=1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 const PRIMARY PRIMARY 4 const 1
-2 UNION t1 ref b b 5 const 1
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-drop table t1,t2;
-create table t1 ( id int not null auto_increment, primary key (id) ,user_name text );
-create table t2 ( id int not null auto_increment, primary key (id) ,group_name text );
-create table t3 ( id int not null auto_increment, primary key (id) ,user_id int ,index user_idx (user_id) ,foreign key (user_id) references users(id) ,group_id int ,index group_idx (group_id) ,foreign key (group_id) references groups(id) );
-insert into t1 (user_name) values ('Tester');
-insert into t2 (group_name) values ('Group A');
-insert into t2 (group_name) values ('Group B');
-insert into t3 (user_id, group_id) values (1,1);
-select 1 'is_in_group', a.user_name, c.group_name, b.id from t1 a, t3 b, t2 c where a.id = b.user_id and b.group_id = c.id UNION select 0 'is_in_group', a.user_name, c.group_name, null from t1 a, t2 c;
-is_in_group user_name group_name id
-1 Tester Group A 1
-0 Tester Group A NULL
-0 Tester Group B NULL
-drop table t1, t2, t3;
-create table t1 (mat_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, matintnum CHAR(6) NOT NULL, test MEDIUMINT UNSIGNED NULL);
-create table t2 (mat_id MEDIUMINT UNSIGNED NOT NULL, pla_id MEDIUMINT UNSIGNED NOT NULL);
-insert into t1 values (NULL, 'a', 1), (NULL, 'b', 2), (NULL, 'c', 3), (NULL, 'd', 4), (NULL, 'e', 5), (NULL, 'f', 6), (NULL, 'g', 7), (NULL, 'h', 8), (NULL, 'i', 9);
-insert into t2 values (1, 100), (1, 101), (1, 102), (2, 100), (2, 103), (2, 104), (3, 101), (3, 102), (3, 105);
-SELECT mp.pla_id, MIN(m1.matintnum) AS matintnum FROM t2 mp INNER JOIN t1 m1 ON mp.mat_id=m1.mat_id GROUP BY mp.pla_id union SELECT 0, 0;
-pla_id matintnum
-100 a
-101 a
-102 a
-103 b
-104 b
-105 c
-0 0
-drop table t1, t2;
-create table t1 SELECT "a" as a UNION select "aa" as a;
-select * from t1;
-a
-a
-aa
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(2) NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT 12 as a UNION select "aa" as a;
-select * from t1;
-a
-12
-aa
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(2) NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT 12 as a UNION select 12.2 as a;
-select * from t1;
-a
-12.0
-12.2
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(3,1) NOT NULL DEFAULT 0.0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t2 (it1 tinyint, it2 tinyint not null, i int not null, ib bigint, f float, d double, y year, da date, dt datetime, sc char(10), sv varchar(10), b blob, tx text);
-insert into t2 values (NULL, 1, 3, 4, 1.5, 2.5, 1972, '1972-10-22', '1972-10-22 11:50', 'testc', 'testv', 'tetetetetest', 'teeeeeeeeeeeest');
-create table t1 SELECT it2 from t2 UNION select it1 from t2;
-select * from t1;
-it2
-1
-NULL
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `it2` tinyint(4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT it2 from t2 UNION select i from t2;
-select * from t1;
-it2
-1
-3
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `it2` int(11) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT i from t2 UNION select f from t2;
-select * from t1;
-i
-3
-1.5
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT f from t2 UNION select d from t2;
-select * from t1;
-f
-1.5
-2.5
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT ib from t2 UNION select f from t2;
-select * from t1;
-ib
-4
-1.5
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `ib` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT ib from t2 UNION select d from t2;
-select * from t1;
-ib
-4
-2.5
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `ib` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT f from t2 UNION select y from t2;
-select * from t1;
-f
-1.5
-1972
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f` float DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT f from t2 UNION select da from t2;
-select * from t1;
-f
-1.5
-1972-10-22
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `f` varchar(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT y from t2 UNION select da from t2;
-select * from t1;
-y
-1972
-1972-10-22
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `y` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT y from t2 UNION select dt from t2;
-select * from t1;
-y
-1972
-1972-10-22 11:50:00
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `y` varchar(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT da from t2 UNION select dt from t2;
-select * from t1;
-da
-1972-10-22 00:00:00
-1972-10-22 11:50:00
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `da` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT dt from t2 UNION select trim(sc) from t2;
-select trim(dt) from t1;
-trim(dt)
-1972-10-22 11:50:00
-testc
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dt` varchar(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT dt from t2 UNION select sv from t2;
-select * from t1;
-dt
-1972-10-22 11:50:00
-testv
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dt` varchar(19) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT sc from t2 UNION select sv from t2;
-select * from t1;
-sc
-testc
-testv
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `sc` varchar(10) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT dt from t2 UNION select b from t2;
-select * from t1;
-dt
-1972-10-22 11:50:00
-tetetetetest
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `dt` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT sv from t2 UNION select b from t2;
-select * from t1;
-sv
-testv
-tetetetetest
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `sv` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT i from t2 UNION select d from t2 UNION select b from t2;
-select * from t1;
-i
-3
-2.5
-tetetetetest
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `i` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT sv from t2 UNION select tx from t2;
-select * from t1;
-sv
-testv
-teeeeeeeeeeeest
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `sv` text DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 SELECT b from t2 UNION select tx from t2;
-select * from t1;
-b
-tetetetetest
-teeeeeeeeeeeest
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `b` blob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1,t2;
-create table t1 select 1 union select -1;
-select * from t1;
-1
-1
--1
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `1` int(2) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 select _latin1"test" union select _latin2"testt" ;
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (latin2_general_ci,COERCIBLE) for operation 'UNION'
-create table t1 select _latin2"test" union select _latin2"testt" ;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `test` varchar(5) CHARACTER SET latin2 NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 (s char(200));
-insert into t1 values (repeat("1",200));
-create table t2 select * from t1;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-insert into t1 select * from t2;
-insert into t2 select * from t1;
-set local tmp_table_size=1024;
-select count(*) from (select * from t1 union all select * from t2 order by 1) b;
-count(*)
-21
-select count(*) from t1;
-count(*)
-8
-select count(*) from t2;
-count(*)
-13
-drop table t1,t2;
-set local tmp_table_size=default;
-create table t1 (a int, index (a), b int);
-insert t1 values (1,1),(2,2),(3,3),(4,4),(5,5);
-insert t1 select a+1, a+b from t1;
-insert t1 select a+1, a+b from t1;
-insert t1 select a+1, a+b from t1;
-insert t1 select a+1, a+b from t1;
-insert t1 select a+1, a+b from t1;
-FLUSH STATUS;
-show status like 'Slow_queries';
-Variable_name Value
-Slow_queries 0
-select count(*) from t1 where a=7;
-count(*)
-26
-show status like 'Slow_queries';
-Variable_name Value
-Slow_queries 0
-select count(*) from t1 where b=13;
-count(*)
-10
-show status like 'Slow_queries';
-Variable_name Value
-Slow_queries 1
-select count(*) from t1 where b=13 union select count(*) from t1 where a=7;
-count(*)
-10
-26
-show status like 'Slow_queries';
-Variable_name Value
-Slow_queries 2
-select count(*) from t1 where a=7 union select count(*) from t1 where b=13;
-count(*)
-26
-10
-show status like 'Slow_queries';
-Variable_name Value
-Slow_queries 3
-flush status;
-select a from t1 where b not in (1,2,3) union select a from t1 where b not in (4,5,6);
-a
-4
-5
-3
-6
-7
-8
-9
-10
-1
-2
-show status like 'Slow_queries';
-Variable_name Value
-Slow_queries 1
-drop table t1;
-create table t1 ( RID int(11) not null default '0', IID int(11) not null default '0', nada varchar(50) not null,NAME varchar(50) not null,PHONE varchar(50) not null) engine=MyISAM;
-insert into t1 ( RID,IID,nada,NAME,PHONE) values (1, 1, 'main', 'a', '111'), (2, 1, 'main', 'b', '222'), (3, 1, 'main', 'c', '333'), (4, 1, 'main', 'd', '444'), (5, 1, 'main', 'e', '555'), (6, 2, 'main', 'c', '333'), (7, 2, 'main', 'd', '454'), (8, 2, 'main', 'e', '555'), (9, 2, 'main', 'f', '666'), (10, 2, 'main', 'g', '777');
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-select A.NAME, A.PHONE, B.NAME, B.PHONE from t1 A left join t1 B on A.NAME = B.NAME and B.IID = 2 where A.IID = 1 and (A.PHONE <> B.PHONE or B.NAME is null) union select A.NAME, A.PHONE, B.NAME, B.PHONE from t1 B left join t1 A on B.NAME = A.NAME and A.IID = 1 where B.IID = 2 and (A.PHONE <> B.PHONE or A.NAME is null);
-NAME PHONE NAME PHONE
-a 111 NULL NULL
-b 222 NULL NULL
-d 444 d 454
-NULL NULL f 666
-NULL NULL g 777
-SET optimizer_switch=@save_optimizer_switch;
-drop table t1;
-create table t1 (col1 tinyint unsigned, col2 tinyint unsigned);
-insert into t1 values (1,2),(3,4),(5,6),(7,8),(9,10);
-select col1 n from t1 union select col2 n from t1 order by n;
-n
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-alter table t1 add index myindex (col2);
-select col1 n from t1 union select col2 n from t1 order by n;
-n
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-drop table t1;
-create table t1 (i int);
-insert into t1 values (1);
-select * from t1 UNION select * from t1;
-i
-1
-select * from t1 UNION ALL select * from t1;
-i
-1
-1
-select * from t1 UNION select * from t1 UNION ALL select * from t1;
-i
-1
-1
-drop table t1;
-select 1 as a union all select 1 union all select 2 union select 1 union all select 2;
-a
-1
-2
-2
-set sql_select_limit=1;
-select 1 union select 2;
-1
-1
-(select 1) union (select 2);
-1
-1
-(select 1) union (select 2) union (select 3) limit 2;
-1
-1
-2
-set sql_select_limit=default;
-create table t1 (a int);
-insert into t1 values (100), (1);
-create table t2 (a int);
-insert into t2 values (100);
-select a from t1 union select a from t2 order by a;
-a
-1
-100
-SET SQL_SELECT_LIMIT=1;
-select a from t1 union select a from t2 order by a;
-a
-1
-drop table t1, t2;
-set sql_select_limit=default;
-CREATE TABLE t1 (i int(11) default NULL,c char(1) default NULL,KEY i (i));
-CREATE TABLE t2 (i int(11) default NULL,c char(1) default NULL,KEY i (i));
-explain (select * from t1) union (select * from t2) order by not_existing_column;
-ERROR 42S22: Unknown column 'not_existing_column' in 'order clause'
-drop table t1, t2;
-CREATE TABLE t1 (uid int(1));
-INSERT INTO t1 SELECT 150;
-SELECT 'a' UNION SELECT uid FROM t1;
-a
-a
-150
-drop table t1;
-CREATE TABLE t1 ( ID1 int(10) unsigned NOT NULL DEFAULT '0' , ID2 datetime NOT NULL DEFAULT '0000-00-00 00:00:00' , DATA1 varchar(10) , DATA2 double(5,4) , DATA3 datetime , PRIMARY KEY (ID1,ID2));
-CREATE TABLE t2 ( ID int(3) unsigned NOT NULL DEFAULT '0' , DATA1 timestamp DEFAULT '0000-00-00 00:00:00' , PRIMARY KEY (ID));
-(SELECT * FROM t1 AS PARTITIONED, t2 AS
-PARTITIONED_B WHERE PARTITIONED_B.ID=PARTITIONED.ID1) UNION
-(SELECT * FROM t1 AS PARTITIONED, t2 AS
-PARTITIONED_B WHERE PARTITIONED_B.ID=PARTITIONED.ID1) UNION
-(SELECT * FROM t1 AS PARTITIONED, t2 AS
-PARTITIONED_B WHERE PARTITIONED_B.ID=PARTITIONED.ID1) UNION
-(SELECT * FROM t1 AS PARTITIONED, t2 AS
-PARTITIONED_B WHERE PARTITIONED_B.ID=PARTITIONED.ID1) UNION
-(SELECT * FROM t1 AS PARTITIONED, t2 AS
-PARTITIONED_B WHERE PARTITIONED_B.ID=PARTITIONED.ID1) UNION
-(SELECT * FROM t1 AS PARTITIONED, t2 AS
-PARTITIONED_B WHERE PARTITIONED_B.ID=PARTITIONED.ID1) UNION
-(SELECT * FROM t1 AS PARTITIONED, t2 AS
-PARTITIONED_B WHERE PARTITIONED_B.ID=PARTITIONED.ID1) UNION
-(SELECT * FROM t1 AS PARTITIONED, t2 AS
-PARTITIONED_B WHERE PARTITIONED_B.ID=PARTITIONED.ID1) UNION
-(SELECT * FROM t1 AS PARTITIONED, t2 AS
-PARTITIONED_B WHERE PARTITIONED_B.ID=PARTITIONED.ID1) UNION
-(SELECT * FROM t1 AS PARTITIONED, t2 AS
-PARTITIONED_B WHERE PARTITIONED_B.ID=PARTITIONED.ID1) UNION
-(SELECT * FROM t1 AS PARTITIONED, t2 AS
-PARTITIONED_B WHERE PARTITIONED_B.ID=PARTITIONED.ID1) UNION
-(SELECT * FROM t1 AS PARTITIONED, t2 AS
-PARTITIONED_B WHERE PARTITIONED_B.ID=PARTITIONED.ID1);
-ID1 ID2 DATA1 DATA2 DATA3 ID DATA1
-drop table t1,t2;
-create table t1 (a ENUM('Yes', 'No') NOT NULL);
-create table t2 (a ENUM('aaa', 'bbb') NOT NULL);
-insert into t1 values ('No');
-insert into t2 values ('bbb');
-create table t3 (a SET('Yes', 'No') NOT NULL);
-create table t4 (a SET('aaa', 'bbb') NOT NULL);
-insert into t3 values (1);
-insert into t4 values (3);
-select "1" as a union select a from t1;
-a
-1
-No
-select a as a from t1 union select "1";
-a
-No
-1
-select a as a from t2 union select a from t1;
-a
-bbb
-No
-select "1" as a union select a from t3;
-a
-1
-Yes
-select a as a from t3 union select "1";
-a
-Yes
-1
-select a as a from t4 union select a from t3;
-a
-aaa,bbb
-Yes
-select a as a from t1 union select a from t4;
-a
-No
-aaa,bbb
-drop table t1,t2,t3,t4;
-create table t1 as
-(select _latin1'test') union
-(select _latin1'TEST') union
-(select _latin1'TeST');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `test` varchar(4) NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select count(*) from t1;
-count(*)
-1
-drop table t1;
-create table t1 as
-(select _latin1'test' collate latin1_bin) union
-(select _latin1'TEST') union
-(select _latin1'TeST');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `_latin1'test' collate latin1_bin` varchar(4) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select count(*) from t1;
-count(*)
-3
-drop table t1;
-create table t1 as
-(select _latin1'test') union
-(select _latin1'TEST' collate latin1_bin) union
-(select _latin1'TeST');
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `test` varchar(4) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select count(*) from t1;
-count(*)
-3
-drop table t1;
-create table t1 as
-(select _latin1'test') union
-(select _latin1'TEST') union
-(select _latin1'TeST' collate latin1_bin);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `test` varchar(4) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select count(*) from t1;
-count(*)
-3
-drop table t1;
-create table t2 (
-a char character set latin1 collate latin1_swedish_ci,
-b char character set latin1 collate latin1_german1_ci);
-create table t1 as
-(select a from t2) union
-(select b from t2);
-ERROR HY000: Illegal mix of collations for operation 'UNION'
-create table t1 as
-(select a collate latin1_german1_ci from t2) union
-(select b from t2);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a collate latin1_german1_ci` varchar(1) CHARACTER SET latin1 COLLATE latin1_german1_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as
-(select a from t2) union
-(select b collate latin1_german1_ci from t2);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET latin1 COLLATE latin1_german1_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-create table t1 as
-(select a from t2) union
-(select b from t2) union
-(select 'c' collate latin1_german1_ci from t2);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varchar(1) CHARACTER SET latin1 COLLATE latin1_german1_ci DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-drop table t2;
-create table t1(a1 int, f1 char(10));
-create table t2
-select f2,a1 from (select a1, CAST('2004-12-31' AS DATE) f2 from t1) a
-union
-select f2,a1 from (select a1, CAST('2004-12-31' AS DATE) f2 from t1) a
-order by f2, a1;
-show columns from t2;
-Field Type Null Key Default Extra
-f2 date YES NULL
-a1 int(11) YES NULL
-drop table t1, t2;
-create table t1 (f1 int);
-create table t2 (f1 int, f2 int ,f3 date);
-create table t3 (f1 int, f2 char(10));
-create table t4
-(
-select t2.f3 as sdate
-from t1
-left outer join t2 on (t1.f1 = t2.f1)
-inner join t3 on (t2.f2 = t3.f1)
-order by t1.f1, t3.f1, t2.f3
-)
-union
-(
-select cast('2004-12-31' as date) as sdate
-from t1
-left outer join t2 on (t1.f1 = t2.f1)
-inner join t3 on (t2.f2 = t3.f1)
-group by t1.f1
-order by t1.f1, t3.f1, t2.f3
-)
-order by sdate;
-show columns from t4;
-Field Type Null Key Default Extra
-sdate date YES NULL
-drop table t1, t2, t3, t4;
-create table t1 (a int not null, b char (10) not null);
-insert into t1 values(1,'a'),(2,'b'),(3,'c'),(3,'c');
-select * from ((select * from t1 limit 1)) a;
-a b
-1 a
-select * from ((select * from t1 limit 1) union (select * from t1 limit 1)) a;
-a b
-1 a
-select * from ((select * from t1 limit 1) union (select * from t1 limit 1) union (select * from t1 limit 1)) a;
-a b
-1 a
-select * from ((((select * from t1))) union (select * from t1) union (select * from t1)) a;
-a b
-1 a
-2 b
-3 c
-select * from ((select * from t1) union (((select * from t1))) union (select * from t1)) a;
-a b
-1 a
-2 b
-3 c
-drop table t1;
-set @val:=6;
-select concat('value is: ', @val) union select 'some text';
-concat('value is: ', @val)
-value is: 6
-some text
-select concat(_latin1'a', _ascii'b' collate ascii_bin);
-concat(_latin1'a', _ascii'b' collate ascii_bin)
-ab
-create table t1 (foo varchar(100)) collate ascii_bin;
-insert into t1 (foo) values ("foo");
-select foo from t1 union select 'bar' as foo from dual;
-foo
-foo
-bar
-drop table t1;
-CREATE TABLE t1 (
-a ENUM('ä','ö','ü') character set utf8 not null default 'ü',
-b ENUM("one", "two") character set utf8,
-c ENUM("one", "two")
-);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` enum('ä','ö','ü') CHARACTER SET utf8 NOT NULL DEFAULT 'ü',
- `b` enum('one','two') CHARACTER SET utf8 DEFAULT NULL,
- `c` enum('one','two') DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-insert into t1 values ('ä', 'one', 'one'), ('ö', 'two', 'one'), ('ü', NULL, NULL);
-create table t2 select NULL union select a from t1;
-show columns from t2;
-Field Type Null Key Default Extra
-NULL enum('ä','ö','ü') YES NULL
-drop table t2;
-create table t2 select a from t1 union select NULL;
-show columns from t2;
-Field Type Null Key Default Extra
-a enum('ä','ö','ü') YES NULL
-drop table t2;
-create table t2 select a from t1 union select a from t1;
-show columns from t2;
-Field Type Null Key Default Extra
-a varchar(2) NO
-drop table t2;
-create table t2 select a from t1 union select c from t1;
-drop table t2;
-create table t2 select a from t1 union select b from t1;
-show columns from t2;
-Field Type Null Key Default Extra
-a varchar(3) YES NULL
-drop table t2, t1;
-create table t1 (f1 decimal(60,25), f2 decimal(60,25));
-insert into t1 values (0.0,0.0);
-select f1 from t1 union all select f2 from t1;
-f1
-0.0000000000000000000000000
-0.0000000000000000000000000
-select 'XXXXXXXXXXXXXXXXXXXX' as description, f1 from t1
-union all
-select 'YYYYYYYYYYYYYYYYYYYY' as description, f2 from t1;
-description f1
-XXXXXXXXXXXXXXXXXXXX 0.0000000000000000000000000
-YYYYYYYYYYYYYYYYYYYY 0.0000000000000000000000000
-drop table t1;
-create table t1 (f1 decimal(60,24), f2 decimal(60,24));
-insert into t1 values (0.0,0.0);
-select f1 from t1 union all select f2 from t1;
-f1
-0.000000000000000000000000
-0.000000000000000000000000
-select 'XXXXXXXXXXXXXXXXXXXX' as description, f1 from t1
-union all
-select 'YYYYYYYYYYYYYYYYYYYY' as description, f2 from t1;
-description f1
-XXXXXXXXXXXXXXXXXXXX 0.000000000000000000000000
-YYYYYYYYYYYYYYYYYYYY 0.000000000000000000000000
-drop table t1;
-create table t1 (a varchar(5));
-create table t2 select * from t1 union select 'abcdefghijkl';
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select row_format from information_schema.TABLES where table_schema="test" and table_name="t2";
-row_format
-Dynamic
-alter table t2 ROW_FORMAT=fixed;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(12) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED
-drop table t1,t2;
-CREATE TABLE t1 (a mediumtext);
-CREATE TABLE t2 (b varchar(20));
-INSERT INTO t1 VALUES ('a'),('b');
-SELECT left(a,100000000) FROM t1 UNION SELECT b FROM t2;
-left(a,100000000)
-a
-b
-create table t3 SELECT left(a,100000000) FROM t1 UNION SELECT b FROM t2;
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `left(a,100000000)` mediumtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop tables t1,t2,t3;
-CREATE TABLE t1 (a longtext);
-CREATE TABLE t2 (b varchar(20));
-INSERT INTO t1 VALUES ('a'),('b');
-SELECT left(a,100000000) FROM t1 UNION SELECT b FROM t2;
-left(a,100000000)
-a
-b
-create table t3 SELECT left(a,100000000) FROM t1 UNION SELECT b FROM t2;
-show create table t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `left(a,100000000)` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop tables t1,t2,t3;
-SELECT @tmp_max:= @@global.max_allowed_packet;
-@tmp_max:= @@global.max_allowed_packet
-16777216
-SET @@global.max_allowed_packet=25000000;
-Warnings:
-Warning 1292 Truncated incorrect max_allowed_packet value: '25000000'
-connect newconn, localhost, root,,;
-CREATE TABLE t1 (a mediumtext);
-CREATE TABLE t2 (b varchar(20));
-INSERT INTO t1 VALUES ('a');
-CREATE TABLE t3 SELECT REPEAT(a,20000000) AS a FROM t1 UNION SELECT b FROM t2;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLES t1,t3;
-CREATE TABLE t1 (a tinytext);
-INSERT INTO t1 VALUES ('a');
-CREATE TABLE t3 SELECT REPEAT(a,2) AS a FROM t1 UNION SELECT b FROM t2;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` varchar(510) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLES t1,t3;
-CREATE TABLE t1 (a mediumtext);
-INSERT INTO t1 VALUES ('a');
-CREATE TABLE t3 SELECT REPEAT(a,2) AS a FROM t1 UNION SELECT b FROM t2;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLES t1,t3;
-CREATE TABLE t1 (a tinyblob);
-INSERT INTO t1 VALUES ('a');
-CREATE TABLE t3 SELECT REPEAT(a,2) AS a FROM t1 UNION SELECT b FROM t2;
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `a` varbinary(510) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLES t1,t2,t3;
-connection default;
-SET @@global.max_allowed_packet:= @tmp_max;
-disconnect newconn;
-create table t1 ( id int not null auto_increment, primary key (id), col1 int);
-insert into t1 (col1) values (2),(3),(4),(5),(6);
-select 99 union all select id from t1 order by 1;
-99
-1
-2
-3
-4
-5
-99
-select id from t1 union all select 99 order by 1;
-id
-1
-2
-3
-4
-5
-99
-drop table t1;
-create table t1(f1 char(1), f2 char(5), f3 binary(1), f4 binary(5), f5 timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', f6 varchar(1) character set utf8 collate utf8_general_ci, f7 text);
-create table t2 as select *, f6 as f8 from t1 union select *, f7 from t1;
-show create table t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `f1` char(1) DEFAULT NULL,
- `f2` char(5) DEFAULT NULL,
- `f3` binary(1) DEFAULT NULL,
- `f4` binary(5) DEFAULT NULL,
- `f5` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `f6` varchar(1) CHARACTER SET utf8 DEFAULT NULL,
- `f7` text DEFAULT NULL,
- `f8` mediumtext CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1, t2;
-CREATE TABLE t1
-(
-c_varchar varchar(1) character set utf8 collate utf8_general_ci,
-c_tinytext tinytext,
-c_text text,
-c_mediumtext mediumtext,
-c_longtext longtext
-);
-CREATE TABLE t2 AS
-SELECT c_tinytext, c_text, c_mediumtext, c_longtext FROM t1
-UNION
-SELECT c_varchar, c_varchar, c_varchar, c_varchar FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c_tinytext` text CHARACTER SET utf8 DEFAULT NULL,
- `c_text` mediumtext CHARACTER SET utf8 DEFAULT NULL,
- `c_mediumtext` longtext CHARACTER SET utf8 DEFAULT NULL,
- `c_longtext` longtext CHARACTER SET utf8 DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1)) union
-(select avg(1)) union (select avg(1)) union (select avg(1));
-avg(1)
-1.0000
-select _utf8'12' union select _latin1'12345';
-12
-12
-12345
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (3),(1),(2),(4),(1);
-SELECT a FROM (SELECT a FROM t1 UNION SELECT a FROM t1 ORDER BY a) AS test;
-a
-1
-2
-3
-4
-SELECT a FROM (SELECT a FROM t1 UNION SELECT a FROM t1 ORDER BY c) AS test;
-ERROR 42S22: Unknown column 'c' in 'order clause'
-DROP TABLE t1;
-(select 1 into @var) union (select 1);
-ERROR HY000: Incorrect usage of UNION and INTO
-(select 1) union (select 1 into @var);
-select @var;
-@var
-1
-(select 2) union (select 1 into @var);
-ERROR 42000: Result consisted of more than one row
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (10), (20);
-CREATE TABLE t2 (b int);
-INSERT INTO t2 VALUES (10), (50), (50);
-SELECT a,1 FROM t1
-UNION
-SELECT b, COUNT(*) FROM t2 GROUP BY b WITH ROLLUP
-ORDER BY a;
-a 1
-NULL 3
-10 1
-20 1
-50 2
-SELECT a,1 FROM t1
-UNION
-SELECT b, COUNT(*) FROM t2 GROUP BY b WITH ROLLUP
-ORDER BY a DESC;
-a 1
-50 2
-20 1
-10 1
-NULL 3
-SELECT a,1 FROM t1
-UNION
-SELECT b, COUNT(*) FROM t2 GROUP BY b WITH ROLLUP
-ORDER BY a ASC LIMIT 3;
-a 1
-NULL 3
-10 1
-20 1
-SELECT a,1 FROM t1
-UNION ALL
-SELECT b, COUNT(*) FROM t2 GROUP BY b WITH ROLLUP
-ORDER BY a DESC;
-a 1
-50 2
-20 1
-10 1
-10 1
-NULL 3
-SELECT a,1 FROM t1
-UNION
-(SELECT b, COUNT(*) FROM t2 GROUP BY b WITH ROLLUP ORDER BY a);
-ERROR HY000: Incorrect usage of CUBE/ROLLUP and ORDER BY
-SELECT a,1 FROM t1
-UNION ALL
-SELECT b, COUNT(*) FROM t2 GROUP BY b WITH ROLLUP ORDER BY a
-UNION
-SELECT 1,1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION
-SELECT 1,1' at line 4
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE TABLE t2 SELECT * FROM (SELECT NULL) a UNION SELECT a FROM t1;
-DESC t2;
-Field Type Null Key Default Extra
-NULL int(11) YES NULL
-CREATE TABLE t3 SELECT a FROM t1 UNION SELECT * FROM (SELECT NULL) a;
-DESC t3;
-Field Type Null Key Default Extra
-a int(11) YES NULL
-CREATE TABLE t4 SELECT NULL;
-DESC t4;
-Field Type Null Key Default Extra
-NULL binary(0) YES NULL
-CREATE TABLE t5 SELECT NULL UNION SELECT NULL;
-DESC t5;
-Field Type Null Key Default Extra
-NULL null YES NULL
-CREATE TABLE t6
-SELECT * FROM (SELECT * FROM (SELECT NULL)a) b UNION SELECT a FROM t1;
-DESC t6;
-Field Type Null Key Default Extra
-NULL int(11) YES NULL
-DROP TABLE t1, t2, t3, t4, t5, t6;
-CREATE TABLE t1 (f FLOAT(9,6));
-CREATE TABLE t2 AS SELECT f FROM t1 UNION SELECT f FROM t1;
-SHOW FIELDS FROM t2;
-Field Type Null Key Default Extra
-f float(9,6) YES NULL
-DROP TABLE t1, t2;
-CREATE TABLE t1(d DOUBLE(9,6));
-CREATE TABLE t2 AS SELECT d FROM t1 UNION SELECT d FROM t1;
-SHOW FIELDS FROM t2;
-Field Type Null Key Default Extra
-d double(9,6) YES NULL
-DROP TABLE t1, t2;
-CREATE TABLE t1(a INT);
-EXPLAIN EXTENDED
-SELECT a FROM t1
-UNION
-SELECT a FROM t1
-ORDER BY a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 UNION t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL NULL Using filesort
-Warnings:
-Note 1003 /* select#1 */ select NULL AS `a` from `test`.`t1` union /* select#2 */ select NULL AS `a` from `test`.`t1` order by `a`
-DROP TABLE t1;
-#
-# Bug#32858: Error: "Incorrect usage of UNION and INTO" does not take
-# subselects into account
-#
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1);
-# Tests fix in parser rule select_derived_union.
-SELECT a INTO @v FROM (
-SELECT a FROM t1
-UNION
-SELECT a FROM t1
-) alias;
-SELECT a INTO OUTFILE 'union.out.file' FROM (
-SELECT a FROM t1
-UNION
-SELECT a FROM t1 WHERE 0
-) alias;
-SELECT a INTO DUMPFILE 'union.out.file2' FROM (
-SELECT a FROM t1
-UNION
-SELECT a FROM t1 WHERE 0
-) alias;
-SELECT a FROM t1 UNION SELECT a INTO @v FROM t1;
-SELECT a FROM t1 UNION SELECT a INTO OUTFILE 'union.out.file5' FROM t1;
-SELECT a FROM t1 UNION SELECT a INTO OUTFILE 'union.out.file6' FROM t1;
-SELECT a INTO @v FROM t1 UNION SELECT a FROM t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT a FROM t1' at line 1
-SELECT a INTO OUTFILE 'union.out.file7' FROM t1 UNION SELECT a FROM t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT a FROM t1' at line 1
-SELECT a INTO DUMPFILE 'union.out.file8' FROM t1 UNION SELECT a FROM t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT a FROM t1' at line 1
-# Tests fix in parser rule query_expression_body.
-SELECT ( SELECT a UNION SELECT a ) INTO @v FROM t1;
-SELECT ( SELECT a UNION SELECT a ) INTO OUTFILE 'union.out.file3' FROM t1;
-SELECT ( SELECT a UNION SELECT a ) INTO DUMPFILE 'union.out.file4' FROM t1;
-DROP TABLE t1;
-#
-# Bug #49734: Crash on EXPLAIN EXTENDED UNION ... ORDER BY
-# <any non-const-function>
-#
-CREATE TABLE t1 (a VARCHAR(10), FULLTEXT KEY a (a));
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT);
-INSERT INTO t2 VALUES (1),(2);
-# Should not crash
-EXPLAIN EXTENDED
-SELECT * FROM t1 UNION SELECT * FROM t1 ORDER BY a + 12;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 UNION t1 ALL NULL NULL NULL NULL 2 100.00
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL NULL Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` union /* select#2 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` order by `a` + 12
-# Should not crash
-SELECT * FROM t1 UNION SELECT * FROM t1 ORDER BY a + 12;
-a
-1
-2
-# Should not crash
-EXPLAIN EXTENDED
-SELECT * FROM t1 UNION SELECT * FROM t1
-ORDER BY MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 UNION t1 ALL NULL NULL NULL NULL 2 100.00
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL NULL Using filesort
-Warnings:
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` union /* select#2 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` order by (match `a` against ('+abc' in boolean mode))
-# Should not crash
-SELECT * FROM t1 UNION SELECT * FROM t1
-ORDER BY MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE);
-a
-1
-2
-# Should not crash
-(SELECT * FROM t1) UNION (SELECT * FROM t1)
-ORDER BY MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE);
-a
-1
-2
-# Should not crash
-EXPLAIN EXTENDED
-SELECT * FROM t1 UNION SELECT * FROM t1
-ORDER BY (SELECT a FROM t2 WHERE b = 12);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
-2 UNION t1 ALL NULL NULL NULL NULL 2 100.00
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL NULL Using filesort
-3 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'a' of SELECT #3 was resolved in SELECT #-1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` union /* select#2 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` order by <expr_cache><`a`>((/* select#3 */ select `a` from `test`.`t2` where `test`.`t2`.`b` = 12))
-# Should not crash
-SELECT * FROM t1 UNION SELECT * FROM t1
-ORDER BY (SELECT a FROM t2 WHERE b = 12);
-# Should not crash
-SELECT * FROM t2 UNION SELECT * FROM t2
-ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE));
-b
-1
-2
-DROP TABLE t1,t2;
-create table t1 (a int);
-insert into t1 values (10),(10),(10),(2),(3),(4),(5),(6),(7),(8),(9),(1),(10);
-select a from t1 where false UNION select a from t1 limit 8;
-a
-10
-2
-3
-4
-5
-6
-7
-8
-(select a from t1 where false) UNION (select a from t1) limit 8;
-a
-10
-2
-3
-4
-5
-6
-7
-8
-drop table t1;
-#
-# Bug#11765255 58201:
-# VALGRIND/CRASH WHEN ORDERING BY MULTIPLE AGGREGATE FUNCTIONS
-#
-select 1 as foo
-union
-select 2
-union
-select 3
-union
-select 4
-order by max(42) + max(1) + max(1) + max(1) + max(1) + max(1)
-;
-foo
-1
-prepare stmt1 from 'select 1 as foo
-union
-select 2
-union
-select 3
-union
-select 4
-order by max(42) + max(1) + max(1) + max(1) + max(1) + max(1)
-';
-execute stmt1;
-foo
-1
-execute stmt1;
-foo
-1
-select 1 as foo
-union
-select 2
-union
-select 3
-union
-(select 4)
-order by max(42) + max(1) + max(1) + max(1) + max(1) + max(1)
-;
-foo
-1
-prepare stmt1 from 'select 1 as foo
-union
-select 2
-union
-select 3
-union
-(select 4)
-order by max(42) + max(1) + max(1) + max(1) + max(1) + max(1)
-';
-execute stmt1;
-foo
-1
-execute stmt1;
-foo
-1
-deallocate prepare stmt1;
-End of 5.1 tests
-#
-# mdev-5091: Asseirtion failure for UNION with ORDER BY
-# in one of selects
-#
-CREATE TABLE t1 (i int, c char(1)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (6,'b');
-CREATE VIEW v1 AS SELECT * FROM t1;
-( SELECT i FROM v1 GROUP BY i ORDER BY CONCAT( c, c ) LIMIT 1 )
-UNION
-( SELECT i FROM t1 );
-i
-6
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# mdev-5382: UNION with ORDER BY in subselect
-#
-CREATE TABLE t1 (a int DEFAULT NULL);
-INSERT INTO t1 VALUES (2), (4);
-CREATE TABLE t2 (b int DEFAULT NULL);
-INSERT INTO t2 VALUES (1), (3);
-SELECT c1 FROM (SELECT (SELECT a FROM t1 WHERE t1.a <= t2.b
-UNION ALL
-SELECT a FROM t1 WHERE t1.a+3<= t2.b
-ORDER BY a DESC) AS c1 FROM t2) t3;
-c1
-NULL
-2
-DROP TABLE t1,t2;
-End of 5.3 tests
-#
-# Bug#57986 ORDER BY clause is not used after a UNION,
-# if embedded in a SELECT
-#
-CREATE TABLE t1 (c1 VARCHAR(10) NOT NULL, c2 INT NOT NULL);
-CREATE TABLE t2 (c1 VARCHAR(10) NOT NULL, c2 INT NOT NULL);
-INSERT INTO t1 (c1, c2) VALUES ('t1a', 1), ('t1a', 2), ('t1a', 3), ('t1b', 2), ('t1b', 1);
-INSERT INTO t2 (c1, c2) VALUES ('t2a', 1), ('t2a', 2), ('t2a', 3), ('t2b', 2), ('t2b', 1);
-SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY c2, c1;
-c1 c2
-t1a 1
-t1b 1
-t2a 1
-t2b 1
-t1a 2
-t1b 2
-t2a 2
-t2b 2
-t1a 3
-t2a 3
-SELECT * FROM t1 UNION (SELECT * FROM t2) ORDER BY c2, c1;
-c1 c2
-t1a 1
-t1b 1
-t2a 1
-t2b 1
-t1a 2
-t1b 2
-t2a 2
-t2b 2
-t1a 3
-t2a 3
-SELECT * FROM t1 UNION (SELECT * FROM t2 ORDER BY c2, c1);
-c1 c2
-t1a 1
-t1a 2
-t1a 3
-t1b 2
-t1b 1
-t2a 1
-t2a 2
-t2a 3
-t2b 2
-t2b 1
-SELECT c1, c2 FROM (
-SELECT c1, c2 FROM t1
-UNION
-(SELECT c1, c2 FROM t2)
-ORDER BY c2, c1
-) AS res;
-c1 c2
-t1a 1
-t1b 1
-t2a 1
-t2b 1
-t1a 2
-t1b 2
-t2a 2
-t2b 2
-t1a 3
-t2a 3
-SELECT c1, c2 FROM (
-SELECT c1, c2 FROM t1
-UNION
-(SELECT c1, c2 FROM t2)
-ORDER BY c2 DESC, c1 LIMIT 1
-) AS res;
-c1 c2
-t1a 3
-SELECT c1, c2 FROM (
-SELECT c1, c2 FROM t1
-UNION
-(SELECT c1, c2 FROM t2 ORDER BY c2 DESC, c1 LIMIT 1)
-) AS res;
-c1 c2
-t1a 1
-t1a 2
-t1a 3
-t1b 2
-t1b 1
-t2a 3
-SELECT c1, c2 FROM (
-SELECT c1, c2 FROM t1
-UNION
-SELECT c1, c2 FROM t2
-ORDER BY c2 DESC, c1 DESC LIMIT 1
-) AS res;
-c1 c2
-t2a 3
-SELECT c1, c2 FROM (
-(
-(SELECT c1, c2 FROM t1)
-UNION
-(SELECT c1, c2 FROM t2)
-)
-ORDER BY c2 DESC, c1 ASC LIMIT 1
-) AS res;
-c1 c2
-t1a 3
-DROP TABLE t1, t2;
-#
-# Bug #58970 Problem Subquery (without referencing a table)
-# and Order By
-#
-SELECT(SELECT 0 AS a UNION SELECT 1 AS a ORDER BY a ASC LIMIT 1) AS dev;
-dev
-0
-SELECT(SELECT 0 AS a UNION SELECT 1 AS a ORDER BY a DESC LIMIT 1) AS dev;
-dev
-1
-SELECT(SELECT 0 AS a FROM dual UNION SELECT 1 AS a FROM dual ORDER BY a ASC LIMIT 1) AS dev;
-dev
-0
-SELECT(SELECT 0 AS a FROM dual UNION SELECT 1 AS a FROM dual ORDER BY a DESC LIMIT 1) AS dev;
-dev
-1
-SELECT(SELECT 1 AS a ORDER BY a) AS dev;
-dev
-1
-SELECT(SELECT 1 AS a LIMIT 1) AS dev;
-dev
-1
-SELECT(SELECT 1 AS a FROM dual ORDER BY a DESC LIMIT 1) AS dev;
-dev
-1
-#
-# Bug #17059925 : UNIONS COMPUTES ROWS_EXAMINED INCORRECTLY
-#
-SET @old_slow_query_log= @@global.slow_query_log;
-SET @old_log_output= @@global.log_output;
-SET @old_long_query_time= @@long_query_time;
-SET GLOBAL log_output= "TABLE";
-SET GLOBAL slow_query_log= ON;
-SET SESSION long_query_time= 0;
-CREATE TABLE t17059925 (a INT);
-CREATE TABLE t2 (b INT);
-CREATE TABLE t3 (c INT);
-INSERT INTO t17059925 VALUES (1), (2), (3);
-INSERT INTO t2 VALUES (4), (5), (6);
-INSERT INTO t3 VALUES (7), (8), (9);
-TRUNCATE table mysql.slow_log;
-SELECT * FROM t17059925 UNION SELECT * FROM t2 UNION SELECT * FROM t3;
-a
-1
-2
-3
-4
-5
-6
-7
-8
-9
-SELECT sql_text, rows_examined FROM mysql.slow_log WHERE sql_text LIKE '%SELECT%t17059925%';
-sql_text rows_examined
-SELECT * FROM t17059925 UNION SELECT * FROM t2 UNION SELECT * FROM t3 18
-DROP TABLE t17059925, t2, t3;
-SET @@long_query_time= @old_long_query_time;
-SET @@global.log_output= @old_log_output;
-SET @@global.slow_query_log= @old_slow_query_log;
-#
-# lp:1010729: Unexpected syntax error from UNION
-# (bug #54382) with single-table join nest
-#
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (b int);
-CREATE TABLE t3 (c int);
-SELECT a FROM t1 UNION SELECT b FROM t2 JOIN (t3) ON ( t2.b = t3.c );
-a
-DROP TABLE t1, t2, t3;
-CREATE TABLE t1 (pk int NOT NULL);
-CREATE TABLE t2 (pk int NOT NULL, fk int NOT NULL);
-SELECT t1.pk FROM t1 LEFT JOIN (t2) ON (t1.pk = t2.fk)
-UNION
-SELECT t1.pk FROM t1 LEFT JOIN (t2) ON (t1.pk = t2.fk);
-pk
-DROP TABLE t1,t2;
-create table t1 (a int);
-insert t1 values (1),(2),(3),(1);
-explain select 1 from dual where exists (select max(a) from t1 group by a union select a+2 from t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 4 Using temporary; Using filesort
-3 UNION t1 ALL NULL NULL NULL NULL 4
-NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL
-drop table t1;
-#
-# MDEV-6868:MariaDB server crash ( select with union and order by
-# with subquery )
-#
-CREATE TABLE t1 ( id INTEGER, sample_name1 VARCHAR(100), sample_name2 VARCHAR(100), PRIMARY KEY(id) );
-INSERT INTO t1 ( id, sample_name1, sample_name2 ) VALUES ( 1, 'aaaa', 'bbbb' ), ( 2, 'cccc', 'dddd' );
-(
-SELECT sample_name1 AS testname FROM t1
-)
-UNION
-(
-SELECT sample_name2 AS testname FROM t1 C ORDER BY (SELECT T.sample_name1 FROM t1 T WHERE T.id = C.id)
-)
-;
-testname
-aaaa
-cccc
-bbbb
-dddd
-drop table t1;
-#
-# MDEV-10172: UNION query returns incorrect rows outside
-# conditional evaluation
-#
-create table t1 (d datetime not null primary key);
-insert into t1(d) values ('2016-06-01'),('2016-06-02'),('2016-06-03'),('2016-06-04');
-select * from
-(
-select * from t1 where d between '2016-06-02' and '2016-06-05'
- union
-(select * from t1 where d < '2016-06-05' order by d desc limit 1)
-) onlyJun2toJun4
-order by d;
-d
-2016-06-02 00:00:00
-2016-06-03 00:00:00
-2016-06-04 00:00:00
-drop table t1;
-End of 5.0 tests
-create table t1 (a int, b int);
-insert into t1 values (1,1),(2,2),(3,3);
-create table t2 (c varchar(30), d varchar(30));
-insert into t1 values ('1','1'),('2','2'),('4','4');
-create table t3 (e int, f int);
-insert into t3 values (1,1),(2,2),(31,31),(32,32);
-select e,f, (e , f) in (select e,b from t1 union select c,d from t2) as sub from t3;
-e f sub
-1 1 1
-2 2 1
-31 31 0
-32 32 0
-select avg(f), (e , f) in (select e,b from t1 union select c,d from t2) as sub from t3 group by sub;
-avg(f) sub
-31.5000 0
-1.5000 1
-drop table t1,t2,t3;
-#
-# MDEV-14715 Assertion `!table || (!table->read_set ||
-# bitmap_is_set(table->read_set, field_index))'
-# failed in Field_num::val_decimal
-#
-CREATE TABLE t1 (a INT, b INT) ENGINE=MyISAM;
-CREATE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES (1, NULL),(3, 4);
-(SELECT a, sum(a) AS f FROM v1 group by a ORDER BY b + sum(a))
-UNION
-(SELECT 2, 2);
-a f
-1 1
-3 3
-2 2
-(SELECT a, sum(a) AS f FROM v1 group by a ORDER BY b + 1)
-UNION
-(SELECT 2, 2);
-a f
-1 1
-3 3
-2 2
-SELECT a, b FROM t1
-UNION
-(SELECT a, VAR_POP(a) AS f FROM v1 GROUP BY a ORDER BY b/a );
-a b
-1 NULL
-3 4.0000
-1 0.0000
-3 0.0000
-DROP TABLE t1;
-(SELECT a, sum(a) AS f FROM v1 group by a ORDER BY b + 1)
-UNION
-(SELECT 2, 2);
-ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-DROP VIEW v1;
-(SELECT a, sum(a) AS f FROM v1 group by a ORDER BY b + 1)
-UNION
-(SELECT 2, 2);
-ERROR 42S02: Table 'test.v1' doesn't exist
-End of 5.5 tests
-#
-# WL#1763 Avoid creating temporary table in UNION ALL
-#
-EXPLAIN SELECT 1 UNION ALL SELECT 1 LIMIT 1 OFFSET 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL No tables used
-# Bug #17579498 CHANGES IN DATATYPE OF THE RESULT QUERY IN UNION.
-CREATE TABLE t1 (a TIME);
-CREATE TABLE t2 (b DATETIME);
-CREATE TABLE t3
-SELECT a FROM t1 UNION ALL SELECT b FROM t2;
-SELECT column_name, column_type
-FROM information_schema.columns
-WHERE TABLE_NAME='t3';
-column_name column_type
-a datetime
-DROP TABLE t1, t2, t3;
-# Bug #17602922 RESULT DIFFERENCES IN UNION QUERIES WITH IN
-# (SUBQUERY-UNION ALL)
-CREATE TABLE t1 (a VARCHAR(1));
-INSERT INTO t1 VALUES (NULL);
-INSERT INTO t1 VALUES (NULL);
-INSERT INTO t1 VALUES ('j');
-INSERT INTO t1 VALUES ('k');
-INSERT INTO t1 VALUES ('r');
-INSERT INTO t1 VALUES ('r');
-INSERT INTO t1 VALUES ('h');
-SELECT a FROM t1 WHERE a IN (SELECT 'r' FROM t1 UNION ALL SELECT 'j');
-a
-j
-r
-r
-CREATE TABLE t2
-SELECT a FROM t1 WHERE a IN (SELECT 'r' FROM t1 UNION ALL SELECT 'j');
-SELECT * FROM t2;
-a
-j
-r
-r
-DROP TABLE t1, t2;
-CREATE TABLE t1 (a INT PRIMARY KEY);
-CREATE TABLE t2 (a INT PRIMARY KEY);
-INSERT INTO t2 VALUES (1);
-SELECT a, SUM(a) FROM t2 UNION ALL SELECT a, MIN(a) FROM t1 ;
-a SUM(a)
-1 1
-NULL NULL
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-2
-DROP TABLE t1, t2;
-# Bug #17669551 CRASH/ASSERT AT SELECT_CREATE::PREPARE2 AT
-# SQL_INSERT.CC
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 SELECT a, a FROM t1 UNION ALL SELECT a, a FROM t1;
-ERROR 42S21: Duplicate column name 'a'
-DROP TABLE t1;
-# Bug #17694956 RESULT DIFFERENCES IN UNION ALL QUERIES WITH LIMIT
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1);
-(SELECT a FROM t1 ORDER BY a LIMIT 0) UNION ALL SELECT a FROM t1;
-a
-1
-DROP TABLE t1;
-# Bug #17708480 FOUND_ROWS() VALUE DO NOT MATCH WITH UNION ALL QUERIES
-CREATE TABLE t1 (a INT) ENGINE=MEMORY;
-CREATE TABLE t2 (a INT) ENGINE=MEMORY;
-INSERT INTO t2 VALUES (1);
-SELECT COUNT(*) FROM (
-SELECT * FROM t2 UNION ALL SELECT * FROM t1) q;
-COUNT(*)
-1
-SELECT SQL_CALC_FOUND_ROWS * FROM t2 UNION ALL SELECT * FROM t1;
-a
-1
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-1
-SELECT COUNT(*) FROM (
-SELECT * FROM t1 UNION ALL SELECT * FROM t2) q;
-COUNT(*)
-1
-SELECT SQL_CALC_FOUND_ROWS * FROM t1 UNION ALL SELECT * FROM t2;
-a
-1
-SELECT FOUND_ROWS();
-FOUND_ROWS()
-1
-DROP TABLE t1, t2;
-# End of WL1763 tests
-#
-# Bug mdev-6874: crash with UNION ALL in a subquery
-#
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (1,1), (2,8);
-SELECT * FROM t1 t1_1 LEFT JOIN t1 t1_2 ON ( t1_2.b = t1_1.a )
-WHERE t1_2.b NOT IN ( SELECT 4 UNION ALL SELECT 5 );
-a b a b
-1 1 1 1
-DROP TABLE t1;
-# Bug mdev-12788: UNION ALL + impossible having for derived
-# with IN subquery in WHERE
-#
-CREATE TABLE t1 (i int) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1);
-CREATE TABLE t2 (pk int PRIMARY KEY) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1),(2);
-SELECT 1, 2
-UNION ALL
-SELECT i, COUNT(*) FROM (
-SELECT * FROM t1 WHERE i IN ( SELECT pk FROM t2 )
-) AS sq
-GROUP BY i
-HAVING i = 10;
-1 2
-1 2
-EXPLAIN EXTENDED SELECT 1, 2
-UNION ALL
-SELECT i, COUNT(*) FROM (
-SELECT * FROM t1 WHERE i IN ( SELECT pk FROM t2 )
-) AS sq
-GROUP BY i
-HAVING i = 10;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-2 UNION NULL NULL NULL NULL NULL NULL NULL NULL Impossible HAVING noticed after reading const tables
-Warnings:
-Note 1003 /* select#1 */ select 1 AS `1`,2 AS `2` union all /* select#2 */ select 1 AS `i`,count(0) AS `COUNT(*)` from `test`.`t2` where 1 group by 1 having 0
-DROP TABLE t1,t2;
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12619 UNION creates excessive integer column types for integer literals
-#
-CREATE TABLE t1 AS SELECT 1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `1` int(1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 AS SELECT 1 UNION SELECT 1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `1` int(1) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 AS SELECT * FROM (SELECT 1 UNION SELECT 1) AS t0;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `1` int(1) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# MDEV-9495 Wrong field type for a UNION of a signed and an unsigned INT expression
-#
-CREATE TABLE t1 (a INT, b INT UNSIGNED);
-INSERT INTO t1 VALUES (0x7FFFFFFF,0xFFFFFFFF);
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t2 ORDER BY a;
-a
-2147483647
-4294967295
-DROP TABLE t2;
-CREATE TABLE t2 AS SELECT COALESCE(a,b), COALESCE(b,a) FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `COALESCE(a,b)` decimal(10,0) DEFAULT NULL,
- `COALESCE(b,a)` decimal(10,0) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t2;
-COALESCE(a,b) COALESCE(b,a)
-2147483647 4294967295
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# MDEV-9497 UNION and COALESCE produce different field types for DECIMAL+INT
-#
-CREATE TABLE t1 AS SELECT COALESCE(10.1,CAST(10 AS UNSIGNED)) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(3,1) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 AS SELECT 10.1 AS a UNION SELECT CAST(10 AS UNSIGNED);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` decimal(3,1) NOT NULL DEFAULT 0.0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# MDEV-12594 UNION between fixed length double columns does not always preserve scale
-#
-CREATE TABLE t1 (a FLOAT(20,4), b FLOAT(20,3), c FLOAT(20,4));
-INSERT INTO t1 VALUES (1111,2222,3333);
-CREATE TABLE t2 AS SELECT a FROM t1 UNION SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` float(20,4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE OR REPLACE TABLE t2 SELECT a FROM t1 UNION SELECT c FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` float(20,4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE OR REPLACE TABLE t2 SELECT b FROM t1 UNION SELECT b FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `b` float(20,3) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE OR REPLACE TABLE t2 SELECT c FROM t1 UNION SELECT c FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c` float(20,4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE OR REPLACE TABLE t2 SELECT c FROM t1 UNION SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `c` float(20,4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE OR REPLACE TABLE t2 AS SELECT a FROM t1 UNION SELECT b FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` float(21,4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-CREATE OR REPLACE TABLE t2 AS SELECT b FROM t1 UNION SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `b` float(21,4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-# Corner case
-CREATE TABLE t1 (a FLOAT(255,4), b FLOAT(255,3));
-INSERT INTO t1 VALUES (1111,2222);
-CREATE OR REPLACE TABLE t2 AS SELECT b FROM t1 UNION SELECT a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `b` float(255,4) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# MDEV-12595 UNION converts INT to BIGINT
-#
-CREATE TABLE t1 AS SELECT
-1,
--1,
-COALESCE(1,1),
-COALESCE(-1,-1),
-COALESCE(1,-1),
-COALESCE(-1,1);
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `1` int(1) NOT NULL,
- `-1` int(2) NOT NULL,
- `COALESCE(1,1)` int(1) NOT NULL,
- `COALESCE(-1,-1)` int(2) NOT NULL,
- `COALESCE(1,-1)` int(2) NOT NULL,
- `COALESCE(-1,1)` int(2) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 AS SELECT 1 AS c1,1 AS c2,-1 AS c3,-1 AS c4 UNION SELECT 1,-1,1,-1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` int(1) NOT NULL DEFAULT 0,
- `c2` int(2) NOT NULL DEFAULT 0,
- `c3` int(2) NOT NULL DEFAULT 0,
- `c4` int(2) NOT NULL DEFAULT 0
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-#
-# MDEV-12599 UNION is not symmetric when mixing INT and CHAR
-#
-CREATE OR REPLACE TABLE t1 AS SELECT 1 AS c1, 'a' AS c2 UNION SELECT 'a', 1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(1) NOT NULL DEFAULT '',
- `c2` varchar(1) NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 AS SELECT 11112222 AS c1, 'a' AS c2 UNION SELECT 'a', 11112222;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(8) NOT NULL DEFAULT '',
- `c2` varchar(8) NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 AS SELECT 111122223333 AS c1, 'a' AS c2 UNION SELECT 'a', 111122223333;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(12) NOT NULL DEFAULT '',
- `c2` varchar(12) NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE OR REPLACE TABLE t1 AS SELECT 1111222233334444 AS c1, 'a' AS c2 UNION SELECT 'a', 1111222233334444;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` varchar(16) NOT NULL DEFAULT '',
- `c2` varchar(16) NOT NULL DEFAULT ''
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-CREATE TABLE t1 (a INT(3), b VARCHAR(1));
-CREATE TABLE t2 AS SELECT a,b FROM t1 UNION SELECT b,a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(11) DEFAULT NULL,
- `b` varchar(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT(3), b VARCHAR(1));
-CREATE TABLE t2 AS SELECT a,b FROM t1 UNION SELECT b,a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(20) DEFAULT NULL,
- `b` varchar(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-CREATE TABLE t1 (a BIGINT(12), b VARCHAR(1));
-CREATE TABLE t2 AS SELECT a,b FROM t1 UNION SELECT b,a FROM t1;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` varchar(20) DEFAULT NULL,
- `b` varchar(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2;
-DROP TABLE t1;
-#
-# End of 10.3 tests
-#
diff --git a/mysql-test/r/union_crash-714.result b/mysql-test/r/union_crash-714.result
deleted file mode 100644
index 4a51f88b76f..00000000000
--- a/mysql-test/r/union_crash-714.result
+++ /dev/null
@@ -1,5 +0,0 @@
-create table t1 (i tinyint);
-set debug_dbug='+d,bug11747970_raise_error';
-insert into t1 (i) select i from t1 union select i from t1;
-ERROR 70100: Query execution was interrupted
-drop table t1;
diff --git a/mysql-test/r/uniques_crash-7912.result b/mysql-test/r/uniques_crash-7912.result
deleted file mode 100644
index bf3aab684ae..00000000000
--- a/mysql-test/r/uniques_crash-7912.result
+++ /dev/null
@@ -1,11 +0,0 @@
-call mtr.add_suppression("Out of memory");
-set sql_mode="";
-drop table if exists t1,t2;
-create table `t1` (`a` datetime not null) engine=InnoDB;
-create table `t2` (`a` int not null) engine=innodb;
-replace into t1 values (),();
-insert into t2 values(0);
-set session sort_buffer_size = 1024*1024*1024*1024;
-delete d2 from t2 as d1, t1 as d2 where d1.a <=> d2.a;
-drop table t2;
-drop table t1;
diff --git a/mysql-test/r/unsafe_binlog_innodb.result b/mysql-test/r/unsafe_binlog_innodb.result
deleted file mode 100644
index 0fe3d38035b..00000000000
--- a/mysql-test/r/unsafe_binlog_innodb.result
+++ /dev/null
@@ -1,189 +0,0 @@
-drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
-create table t1 (id int not null, f_id int not null, f int not null,
-primary key(f_id, id)) engine = InnoDB;
-create table t2 (id int not null,s_id int not null,s varchar(200),
-primary key(id)) engine = InnoDB;
-INSERT INTO t1 VALUES (8, 1, 3);
-INSERT INTO t1 VALUES (1, 2, 1);
-INSERT INTO t2 VALUES (1, 0, '');
-INSERT INTO t2 VALUES (8, 1, '');
-commit;
-DELETE ml.* FROM t1 AS ml LEFT JOIN t2 AS mm ON (mm.id=ml.id)
-WHERE mm.id IS NULL;
-select ml.* from t1 as ml left join t2 as mm on (mm.id=ml.id)
-where mm.id is null lock in share mode;
-id f_id f
-drop table t1,t2;
-connect a,localhost,root,,;
-connect b,localhost,root,,;
-connection a;
-create table t1(a int not null, b int, primary key(a)) engine = InnoDB;
-insert into t1 values(1,1),(2,2),(3,1),(4,2),(5,1),(6,2),(7,3);
-commit;
-set autocommit = 0;
-select * from t1 lock in share mode;
-a b
-1 1
-2 2
-3 1
-4 2
-5 1
-6 2
-7 3
-update t1 set b = 5 where b = 1;
-connection b;
-set autocommit = 0;
-select * from t1 where a = 2 and b = 2 for update;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection a;
-commit;
-connection b;
-commit;
-drop table t1;
-connection default;
-disconnect a;
-disconnect b;
-connect a,localhost,root,,;
-connect b,localhost,root,,;
-connection a;
-create table t1(a int not null, b int, primary key(a)) engine = InnoDB;
-insert into t1 values(1,1),(2,2),(3,1),(4,2),(5,1),(6,2),(7,3);
-commit;
-set autocommit = 0;
-update t1 set b = 5 where b = 1;
-connection b;
-set autocommit = 0;
-select * from t1 where a = 7 and b = 3 for update;
-a b
-7 3
-commit;
-connection a;
-commit;
-drop table t1;
-connection default;
-disconnect a;
-disconnect b;
-connect a,localhost,root,,;
-connect b,localhost,root,,;
-connection a;
-create table t1(a int not null, b int, primary key(a)) engine = InnoDB;
-insert into t1 values (1,2),(5,3),(4,2);
-create table t2(d int not null, e int, primary key(d)) engine = InnoDB;
-insert into t2 values (8,6),(12,1),(3,1);
-commit;
-set autocommit = 0;
-select * from t2 for update;
-d e
-3 1
-8 6
-12 1
-connection b;
-set autocommit = 0;
-insert into t1 select * from t2;
-update t1 set b = (select e from t2 where a = d);
-create table t3(d int not null, e int, primary key(d)) engine = InnoDB
-select * from t2;
-commit;
-connection a;
-commit;
-connection default;
-disconnect a;
-disconnect b;
-drop table t1, t2, t3;
-connect a,localhost,root,,;
-connect b,localhost,root,,;
-connect c,localhost,root,,;
-connect d,localhost,root,,;
-SET SESSION STORAGE_ENGINE = InnoDB;
-connect e,localhost,root,,;
-connect f,localhost,root,,;
-connect g,localhost,root,,;
-SET SESSION STORAGE_ENGINE = InnoDB;
-connect h,localhost,root,,;
-connect i,localhost,root,,;
-connect j,localhost,root,,;
-SET SESSION STORAGE_ENGINE = InnoDB;
-connection a;
-create table t1(a int not null, b int, primary key(a)) engine = InnoDB;
-insert into t1 values (1,2),(5,3),(4,2);
-create table t2(a int not null, b int, primary key(a)) engine = InnoDB;
-insert into t2 values (8,6),(12,1),(3,1);
-create table t3(d int not null, b int, primary key(d)) engine = InnoDB;
-insert into t3 values (8,6),(12,1),(3,1);
-create table t5(a int not null, b int, primary key(a)) engine = InnoDB;
-insert into t5 values (1,2),(5,3),(4,2);
-create table t6(d int not null, e int, primary key(d)) engine = InnoDB;
-insert into t6 values (8,6),(12,1),(3,1);
-create table t8(a int not null, b int, primary key(a)) engine = InnoDB;
-insert into t8 values (1,2),(5,3),(4,2);
-create table t9(d int not null, e int, primary key(d)) engine = InnoDB;
-insert into t9 values (8,6),(12,1),(3,1);
-commit;
-set autocommit = 0;
-select * from t2 for update;
-a b
-3 1
-8 6
-12 1
-connection b;
-set autocommit = 0;
-SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE;
-insert into t1 select * from t2;
-connection c;
-set autocommit = 0;
-SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE;
-update t3 set b = (select b from t2 where a = d);
-connection d;
-set autocommit = 0;
-SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE;
-create table t4(a int not null, b int, primary key(a)) select * from t2;
-connection e;
-set autocommit = 0;
-insert into t5 (select * from t2 lock in share mode);
-connection f;
-set autocommit = 0;
-update t6 set e = (select b from t2 where a = d lock in share mode);
-connection g;
-set autocommit = 0;
-create table t7(a int not null, b int, primary key(a)) select * from t2 lock in share mode;
-connection h;
-set autocommit = 0;
-insert into t8 (select * from t2 for update);
-connection i;
-set autocommit = 0;
-update t9 set e = (select b from t2 where a = d for update);
-connection j;
-set autocommit = 0;
-create table t10(a int not null, b int, primary key(a)) select * from t2 for update;
-connection b;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection c;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection d;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection e;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection f;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection g;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection h;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection i;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection j;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-connection a;
-commit;
-connection default;
-disconnect a;
-disconnect b;
-disconnect c;
-disconnect d;
-disconnect e;
-disconnect f;
-disconnect g;
-disconnect h;
-disconnect i;
-disconnect j;
-drop table t1, t2, t3, t5, t6, t8, t9;
diff --git a/mysql-test/r/update.result b/mysql-test/r/update.result
deleted file mode 100644
index 73ebb73e313..00000000000
--- a/mysql-test/r/update.result
+++ /dev/null
@@ -1,721 +0,0 @@
-drop table if exists t1,t2;
-create table t1 (a int auto_increment , primary key (a));
-insert into t1 values (NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL);
-update t1 set a=a+10 where a > 34;
-update t1 set a=a+100 where a > 0;
-update t1 set a=a+100 where a=1 and a=2;
-update t1 set a=b+100 where a=1 and a=2;
-ERROR 42S22: Unknown column 'b' in 'field list'
-update t1 set a=b+100 where c=1 and a=2;
-ERROR 42S22: Unknown column 'c' in 'where clause'
-update t1 set d=a+100 where a=1;
-ERROR 42S22: Unknown column 'd' in 'field list'
-select * from t1;
-a
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126
-127
-128
-129
-130
-131
-132
-133
-134
-145
-146
-drop table t1;
-CREATE TABLE t1
-(
-place_id int (10) unsigned NOT NULL,
-shows int(10) unsigned DEFAULT '0' NOT NULL,
-ishows int(10) unsigned DEFAULT '0' NOT NULL,
-ushows int(10) unsigned DEFAULT '0' NOT NULL,
-clicks int(10) unsigned DEFAULT '0' NOT NULL,
-iclicks int(10) unsigned DEFAULT '0' NOT NULL,
-uclicks int(10) unsigned DEFAULT '0' NOT NULL,
-ts timestamp,
-PRIMARY KEY (place_id,ts)
-);
-INSERT INTO t1 (place_id,shows,ishows,ushows,clicks,iclicks,uclicks,ts)
-VALUES (1,0,0,0,0,0,0,20000928174434);
-UPDATE t1 SET shows=shows+1,ishows=ishows+1,ushows=ushows+1,clicks=clicks+1,iclicks=iclicks+1,uclicks=uclicks+1 WHERE place_id=1 AND ts>="2000-09-28 00:00:00";
-select place_id,shows from t1;
-place_id shows
-1 1
-drop table t1;
-CREATE TABLE t1 (
-lfdnr int(10) unsigned NOT NULL default '0',
-ticket int(10) unsigned NOT NULL default '0',
-client varchar(255) NOT NULL default '',
-replyto varchar(255) NOT NULL default '',
-subject varchar(100) NOT NULL default '',
-timestamp int(10) unsigned NOT NULL default '0',
-tstamp timestamp NOT NULL,
-status int(3) NOT NULL default '0',
-type varchar(15) NOT NULL default '',
-assignment int(10) unsigned NOT NULL default '0',
-fupcount int(4) unsigned NOT NULL default '0',
-parent int(10) unsigned NOT NULL default '0',
-activity int(10) unsigned NOT NULL default '0',
-priority tinyint(1) unsigned NOT NULL default '1',
-cc varchar(255) NOT NULL default '',
-bcc varchar(255) NOT NULL default '',
-body text NOT NULL,
-comment text,
-header text,
-PRIMARY KEY (lfdnr),
-KEY k1 (timestamp),
-KEY k2 (type),
-KEY k3 (parent),
-KEY k4 (assignment),
-KEY ticket (ticket)
-) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (773,773,'','','',980257344,20010318180652,0,'Open',10,0,0,0,1,'','','','','');
-alter table t1 change lfdnr lfdnr int(10) unsigned not null auto_increment;
-update t1 set status=1 where type='Open';
-select status from t1;
-status
-1
-drop table t1;
-create table t1 (a int not null, b int not null, key (a));
-insert into t1 values (1,1),(1,2),(1,3),(3,1),(3,2),(3,3),(3,1),(3,2),(3,3),(2,1),(2,2),(2,3);
-SET @tmp=0;
-update t1 set b=(@tmp:=@tmp+1) order by a;
-update t1 set b=99 where a=1 order by b asc limit 1;
-select * from t1 order by a,b;
-a b
-1 2
-1 3
-1 99
-2 4
-2 5
-2 6
-3 7
-3 8
-3 9
-3 10
-3 11
-3 12
-update t1 set b=100 where a=1 order by b desc limit 2;
-update t1 set a=a+10+b where a=1 order by b;
-select * from t1 order by a,b;
-a b
-2 4
-2 5
-2 6
-3 7
-3 8
-3 9
-3 10
-3 11
-3 12
-13 2
-111 100
-111 100
-create table t2 (a int not null, b int not null);
-insert into t2 values (1,1),(1,2),(1,3);
-update t1 set b=(select distinct 1 from (select * from t2) a);
-drop table t1,t2;
-CREATE TABLE t1 (
-`id_param` smallint(3) unsigned NOT NULL default '0',
-`nom_option` char(40) NOT NULL default '',
-`valid` tinyint(1) NOT NULL default '0',
-KEY `id_param` (`id_param`,`nom_option`)
-) ENGINE=MyISAM;
-INSERT INTO t1 (id_param,nom_option,valid) VALUES (185,'600x1200',1);
-UPDATE t1 SET nom_option='test' WHERE id_param=185 AND nom_option='600x1200' AND valid=1 LIMIT 1;
-select * from t1;
-id_param nom_option valid
-185 test 1
-drop table t1;
-create table t1 (F1 VARCHAR(30), F2 VARCHAR(30), F3 VARCHAR(30), cnt int, groupid int, KEY groupid_index (groupid));
-insert into t1 (F1,F2,F3,cnt,groupid) values ('0','0','0',1,6),
-('0','1','2',1,5), ('0','2','0',1,3), ('1','0','1',1,2),
-('1','2','1',1,1), ('1','2','2',1,1), ('2','0','1',2,4),
-('2','2','0',1,7);
-delete from m1 using t1 m1,t1 m2 where m1.groupid=m2.groupid and (m1.cnt < m2.cnt or m1.cnt=m2.cnt and m1.F3>m2.F3);
-select * from t1;
-F1 F2 F3 cnt groupid
-0 0 0 1 6
-0 1 2 1 5
-0 2 0 1 3
-1 0 1 1 2
-1 2 1 1 1
-2 0 1 2 4
-2 2 0 1 7
-drop table t1;
-CREATE TABLE t1 (
-`colA` int(10) unsigned NOT NULL auto_increment,
-`colB` int(11) NOT NULL default '0',
-PRIMARY KEY (`colA`)
-);
-INSERT INTO t1 VALUES (4433,5424);
-CREATE TABLE t2 (
-`colC` int(10) unsigned NOT NULL default '0',
-`colA` int(10) unsigned NOT NULL default '0',
-`colD` int(10) unsigned NOT NULL default '0',
-`colE` int(10) unsigned NOT NULL default '0',
-`colF` int(10) unsigned NOT NULL default '0',
-PRIMARY KEY (`colC`,`colA`,`colD`,`colE`)
-);
-INSERT INTO t2 VALUES (3,4433,10005,495,500);
-INSERT INTO t2 VALUES (3,4433,10005,496,500);
-INSERT INTO t2 VALUES (3,4433,10009,494,500);
-INSERT INTO t2 VALUES (3,4433,10011,494,500);
-INSERT INTO t2 VALUES (3,4433,10005,497,500);
-INSERT INTO t2 VALUES (3,4433,10013,489,500);
-INSERT INTO t2 VALUES (3,4433,10005,494,500);
-INSERT INTO t2 VALUES (3,4433,10005,493,500);
-INSERT INTO t2 VALUES (3,4433,10005,492,500);
-UPDATE IGNORE t2,t1 set t2.colE = t2.colE + 1,colF=0 WHERE t1.colA = t2.colA AND (t1.colB & 4096) > 0 AND (colE + 1) < colF;
-SELECT * FROM t2;
-colC colA colD colE colF
-3 4433 10005 495 500
-3 4433 10005 496 500
-3 4433 10009 495 0
-3 4433 10011 495 0
-3 4433 10005 498 0
-3 4433 10013 490 0
-3 4433 10005 494 500
-3 4433 10005 493 500
-3 4433 10005 492 500
-DROP TABLE t1;
-DROP TABLE t2;
-create table t1 (c1 int, c2 char(6), c3 int);
-create table t2 (c1 int, c2 char(6));
-insert into t1 values (1, "t1c2-1", 10), (2, "t1c2-2", 20);
-update t1 left join t2 on t1.c1 = t2.c1 set t2.c2 = "t2c2-1";
-update t1 left join t2 on t1.c1 = t2.c1 set t2.c2 = "t2c2-1" where t1.c3 = 10;
-drop table t1, t2;
-create table t1 (id int not null auto_increment primary key, id_str varchar(32));
-insert into t1 (id_str) values ("test");
-update t1 set id_str = concat(id_str, id) where id = last_insert_id();
-select * from t1;
-id id_str
-1 test1
-drop table t1;
-create table t1 (a int, b char(255), key(a, b(20)));
-insert into t1 values (0, '1');
-update t1 set b = b + 1 where a = 0;
-select * from t1;
-a b
-0 2
-drop table t1;
-create table t1 (a int, b varchar(10), key b(b(5))) engine=myisam;
-create table t2 (a int, b varchar(10)) engine=myisam;
-insert into t1 values ( 1, 'abcd1e');
-insert into t1 values ( 2, 'abcd2e');
-insert into t2 values ( 1, 'abcd1e');
-insert into t2 values ( 2, 'abcd2e');
-analyze table t1,t2;
-Table Op Msg_type Msg_text
-test.t1 analyze status OK
-test.t2 analyze status OK
-update t1, t2 set t1.a = t2.a where t2.b = t1.b;
-show warnings;
-Level Code Message
-drop table t1, t2;
-create table t1(f1 int, f2 int);
-create table t2(f3 int, f4 int);
-create index idx on t2(f3);
-insert into t1 values(1,0),(2,0);
-insert into t2 values(1,1),(2,2);
-UPDATE t1 SET t1.f2=(SELECT MAX(t2.f4) FROM t2 WHERE t2.f3=t1.f1);
-select * from t1;
-f1 f2
-1 1
-2 2
-drop table t1,t2;
-create table t1(f1 int);
-select DATABASE();
-DATABASE()
-test
-update t1 set f1=1 where count(*)=1;
-ERROR HY000: Invalid use of group function
-select DATABASE();
-DATABASE()
-test
-delete from t1 where count(*)=1;
-ERROR HY000: Invalid use of group function
-drop table t1;
-create table t1 ( a int, b int default 0, index (a) );
-insert into t1 (a) values (0),(0),(0),(0),(0),(0),(0),(0);
-flush status;
-select a from t1 order by a limit 1;
-a
-0
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 1
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-flush status;
-update t1 set a=9999 order by a limit 1;
-update t1 set b=9999 order by a limit 1;
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 1
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 2
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 9
-flush status;
-delete from t1 order by a limit 1;
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 1
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-flush status;
-delete from t1 order by a desc limit 1;
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 1
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-alter table t1 disable keys;
-flush status;
-delete from t1 order by a limit 1;
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 0
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 1
-Handler_read_rnd_deleted 2
-Handler_read_rnd_next 7
-select * from t1;
-a b
-0 0
-0 0
-0 0
-0 0
-0 0
-update t1 set a=a+10,b=1 order by a limit 3;
-update t1 set a=a+11,b=2 order by a limit 3;
-update t1 set a=a+12,b=3 order by a limit 3;
-select * from t1 order by a;
-a b
-11 2
-21 2
-22 3
-22 3
-23 3
-drop table t1;
-create table t1 (f1 date not null);
-insert into t1 values('2000-01-01'),('0000-00-00');
-update t1 set f1='2002-02-02' where f1 is null;
-select * from t1;
-f1
-2000-01-01
-2002-02-02
-drop table t1;
-create table t1 (f1 int);
-create table t2 (f2 int);
-insert into t1 values(1),(2);
-insert into t2 values(1),(1);
-update t1,t2 set f1=3,f2=3 where f1=f2 and f1=1;
-affected rows: 3
-info: Rows matched: 3 Changed: 3 Warnings: 0
-update t2 set f2=1;
-update t1 set f1=1 where f1=3;
-update t2,t1 set f1=3,f2=3 where f1=f2 and f1=1;
-affected rows: 3
-info: Rows matched: 3 Changed: 3 Warnings: 0
-drop table t1,t2;
-create table t1 (a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (a int, filler1 char(200), filler2 char(200), key(a));
-insert into t2 select A.a + 10*B.a, 'filler','filler' from t1 A, t1 B;
-flush status;
-update t2 set a=3 where a=2;
-show status like 'handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 1
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 1
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-drop table t1, t2;
-create table t1(f1 int, `*f2` int);
-insert into t1 values (1,1);
-update t1 set `*f2`=1;
-drop table t1;
-create table t1(f1 int);
-update t1 set f2=1 order by f2;
-ERROR 42S22: Unknown column 'f2' in 'order clause'
-drop table t1;
-CREATE TABLE t1 (
-request_id int unsigned NOT NULL auto_increment,
-user_id varchar(12) default NULL,
-time_stamp datetime NOT NULL default '0000-00-00 00:00:00',
-ip_address varchar(15) default NULL,
-PRIMARY KEY (request_id),
-KEY user_id_2 (user_id,time_stamp)
-);
-INSERT INTO t1 (user_id) VALUES ('user1');
-INSERT INTO t1(user_id) SELECT user_id FROM t1;
-INSERT INTO t1(user_id) SELECT user_id FROM t1;
-INSERT INTO t1(user_id) SELECT user_id FROM t1;
-INSERT INTO t1(user_id) SELECT user_id FROM t1;
-INSERT INTO t1(user_id) SELECT user_id FROM t1;
-INSERT INTO t1(user_id) SELECT user_id FROM t1;
-INSERT INTO t1(user_id) SELECT user_id FROM t1;
-INSERT INTO t1(user_id) SELECT user_id FROM t1;
-flush status;
-SELECT user_id FROM t1 WHERE request_id=9999999999999;
-user_id
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-SELECT user_id FROM t1 WHERE request_id=999999999999999999999999999999;
-user_id
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 2
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-UPDATE t1 SET user_id=null WHERE request_id=9999999999999;
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 3
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-UPDATE t1 SET user_id=null WHERE request_id=999999999999999999999999999999;
-show status like '%Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 3
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-DROP TABLE t1;
-CREATE TABLE t1 (
-a INT(11),
-quux decimal( 31, 30 ),
-UNIQUE KEY bar (a),
-KEY quux (quux)
-);
-INSERT INTO
-t1 ( a, quux )
-VALUES
-( 1, 1 ),
-( 2, 0.1 );
-INSERT INTO t1( a )
-SELECT @newA := 1 + a FROM t1 WHERE quux <= 0.1;
-SELECT * FROM t1;
-a quux
-1 1.000000000000000000000000000000
-2 0.100000000000000000000000000000
-3 NULL
-DROP TABLE t1;
-connect con1,localhost,root,,test;
-connection con1;
-set tmp_table_size=1024;
-create table t1 (id int, a int, key idx(a));
-create table t2 (id int unsigned not null auto_increment primary key, a int);
-insert into t2(a) values(1),(2),(3),(4),(5),(6),(7),(8);
-insert into t2(a) select a from t2;
-insert into t2(a) select a from t2;
-insert into t2(a) select a from t2;
-update t2 set a=id;
-insert into t1 select * from t2;
-select count(*) from t1 join t2 on (t1.a=t2.a);
-count(*)
-64
-update t1 join t2 on (t1.a=t2.a) set t1.id=t2.id;
-affected rows: 0
-info: Rows matched: 64 Changed: 0 Warnings: 0
-insert into t2(a) select a from t2;
-update t2 set a=id;
-truncate t1;
-insert into t1 select * from t2;
-select count(*) from t1 join t2 on (t1.a=t2.a);
-count(*)
-128
-update t1 join t2 on (t1.a=t2.a) set t1.id=t2.id;
-affected rows: 0
-info: Rows matched: 128 Changed: 0 Warnings: 0
-update t1 set a=1;
-update t2 set a=1;
-select count(*) from t1 join t2 on (t1.a=t2.a);
-count(*)
-16384
-update t1 join t2 on (t1.a=t2.a) set t1.id=t2.id;
-affected rows: 127
-info: Rows matched: 128 Changed: 127 Warnings: 0
-drop table t1,t2;
-connection default;
-disconnect con1;
-DROP TABLE IF EXISTS t1;
-DROP FUNCTION IF EXISTS f1;
-CREATE FUNCTION f1() RETURNS INT RETURN f1();
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1);
-UPDATE t1 SET i = 3 WHERE f1();
-ERROR HY000: Recursive stored functions and triggers are not allowed
-UPDATE t1 SET i = f1();
-ERROR HY000: Recursive stored functions and triggers are not allowed
-DROP TABLE t1;
-DROP FUNCTION f1;
-End of 5.0 tests
-#
-# Bug #47919 assert in open_table during ALTER temporary table
-#
-CREATE TABLE t1 (f1 INTEGER AUTO_INCREMENT, PRIMARY KEY (f1));
-CREATE TEMPORARY TABLE t2 LIKE t1;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (1);
-ALTER TABLE t2 COMMENT = 'ABC';
-UPDATE t2, t1 SET t2.f1 = 2, t1.f1 = 9;
-ALTER TABLE t2 COMMENT = 'DEF';
-DROP TABLE t1, t2;
-#
-# Bug#50545: Single table UPDATE IGNORE crashes on join view in
-# sql_safe_updates mode.
-#
-CREATE TABLE t1 ( a INT, KEY( a ) );
-INSERT INTO t1 VALUES (0), (1);
-CREATE VIEW v1 AS SELECT t11.a, t12.a AS b FROM t1 t11, t1 t12;
-SET SESSION sql_safe_updates = 1;
-UPDATE IGNORE v1 SET a = 1;
-ERROR HY000: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
-SET SESSION sql_safe_updates = DEFAULT;
-DROP TABLE t1;
-DROP VIEW v1;
-#
-# Bug#54734 assert in Diagnostics_area::set_ok_status
-#
-DROP TABLE IF EXISTS t1, not_exists;
-DROP FUNCTION IF EXISTS f1;
-DROP VIEW IF EXISTS v1;
-CREATE TABLE t1 (PRIMARY KEY(pk)) AS SELECT 1 AS pk;
-CREATE FUNCTION f1() RETURNS INTEGER RETURN (SELECT 1 FROM not_exists);
-CREATE VIEW v1 AS SELECT pk FROM t1 WHERE f1() = 13;
-UPDATE v1 SET pk = 7 WHERE pk > 0;
-ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-DROP VIEW v1;
-DROP FUNCTION f1;
-DROP TABLE t1;
-# Bug #21143080: UPDATE ON VARCHAR AND TEXT COLUMNS PRODUCE INCORRECT
-# RESULTS
-CREATE TABLE t1 (a VARCHAR(50), b TEXT, c CHAR(50)) ENGINE=INNODB;
-INSERT INTO t1 (a, b, c) VALUES ('start trail', '', 'even longer string');
-UPDATE t1 SET b = a, a = 'inject';
-SELECT a, b FROM t1;
-a b
-inject start trail
-UPDATE t1 SET b = c, c = 'inject';
-SELECT c, b FROM t1;
-c b
-inject even longer string
-DROP TABLE t1;
-#
-# MDEV-3948 Assertion `records_are_comparable(table)' fails in compare_record(const TABLE*) on UPDATE with simple AND condition, index_merge+index_merge_intersection, InnoDB
-#
-# Verify that UPDATE does the same number of handler_update
-# operations, no matter if there is ORDER BY or not.
-#
-CREATE TABLE t1 (i INT) ENGINE=INNODB;
-INSERT INTO t1 VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19),
-(20),(21),(22),(23),(24),(25),(26),(27),(28),(29),
-(30),(31),(32),(33),(34),(35);
-CREATE TABLE t2 (a CHAR(2), b CHAR(2), c CHAR(2), d CHAR(2),
-INDEX idx (a,b(1),c)) ENGINE=INNODB;
-INSERT INTO t2 SELECT i, i, i, i FROM t1;
-FLUSH STATUS;
-START TRANSACTION;
-UPDATE t2 SET d = 10 WHERE b = 10 LIMIT 5;
-SHOW STATUS LIKE 'HANDLER_UPDATE';
-Variable_name Value
-Handler_update 1
-ROLLBACK;
-FLUSH STATUS;
-START TRANSACTION;
-UPDATE t2 SET d = 10 WHERE b = 10 ORDER BY a, c LIMIT 5;
-SHOW STATUS LIKE 'HANDLER_UPDATE';
-Variable_name Value
-Handler_update 1
-ROLLBACK;
-Same test with a different UPDATE.
-ALTER TABLE t2 DROP INDEX idx, ADD INDEX idx2 (a, b);
-FLUSH STATUS;
-START TRANSACTION;
-UPDATE t2 SET c = 10 LIMIT 5;
-SHOW STATUS LIKE 'HANDLER_UPDATE';
-Variable_name Value
-Handler_update 5
-ROLLBACK;
-FLUSH STATUS;
-START TRANSACTION;
-UPDATE t2 SET c = 10 ORDER BY a, b DESC LIMIT 5;
-SHOW STATUS LIKE 'HANDLER_UPDATE';
-Variable_name Value
-Handler_update 5
-ROLLBACK;
-DROP TABLE t1, t2;
-#
-# MDEV-8938: Server Crash on Update with joins
-#
-CREATE TABLE `t1` (
-`name` varchar(255) NOT NULL,
-`value` varchar(4095) DEFAULT NULL,
-PRIMARY KEY (`name`)
-);
-UPDATE `t1` SET value = CONCAT("*.",(SELECT `temptable`.`value` FROM (SELECT * FROM `t1` WHERE `name`="consoleproxy.url.domain") AS `temptable` WHERE `temptable`.`name`="consoleproxy.url.domain")) WHERE `name`="consoleproxy.url.domain";
-drop table t1;
-CREATE TABLE `t1` (
-`name` varchar(255) NOT NULL,
-`value` varchar(4095) DEFAULT NULL,
-PRIMARY KEY (`name`)
-);
-create table t2 (
-`name` varchar(255) NOT NULL,
-`value` varchar(4095) DEFAULT NULL,
-PRIMARY KEY (`name`)
-);
-UPDATE t1
-SET value = (SELECT value FROM t2 WHERE `name`= t1.name)
-WHERE value is null ;
-drop table t1,t2;
-#
-#MDEV-8701: Crash on derived query
-#
-CREATE TABLE t1 (
-data_exit_entry_id int(11) NOT NULL,
-data_entry_id int(11) NOT NULL,
-data_entry_exit_id int(11) NOT NULL,
-data_exit_entry_quantity double NOT NULL
-) DEFAULT CHARSET=utf8;
-CREATE TABLE t2 (
-data_entry_id int(11) NOT NULL,
-data_entry_cost double NOT NULL,
-data_entry_quantity double NOT NULL
-) DEFAULT CHARSET=utf8;
-create algorithm=temptable view v1 as SELECT data_entry_exit_id, data_exit_entry_quantity, data_entry_cost
-FROM t1 INNER JOIN t2 as dt ON dt.data_entry_id = t1.data_entry_id;
-UPDATE t2
-SET data_entry_cost
-= ( ( SELECT SUM(data_exit_entry_quantity * data_entry_cost)
-FROM
-v1 AS query
-WHERE data_entry_exit_id = t2.data_entry_id
-)
-);
-UPDATE t2
-SET data_entry_cost
-= ( ( SELECT SUM(data_exit_entry_quantity * data_entry_cost)
-FROM
-( SELECT data_entry_exit_id, data_exit_entry_quantity, data_entry_cost
-FROM t1 INNER JOIN t2 as dt ON dt.data_entry_id = t1.data_entry_id) AS query
-WHERE data_entry_exit_id = t2.data_entry_id
-)
-);
-drop view v1;
-drop table t1, t2;
-#
-# MDEV-4410: update does not want to use a covering index, but select uses it.
-#
-create table t2(a int);
-insert into t2 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (key1 int, col1 int, key(key1));
-insert into t1
-select A.a + 10 * B.a + 100 * C.a, 1234 from t2 A, t2 B, t2 C;
-# This must not have "Using filesort":
-explain
-update t1 set key1=key1+1 where key1 between 10 and 110 order by key1 limit 2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range key1 key1 5 NULL 2 Using where; Using buffer
-flush status;
-update t1 set key1=key1+1 where key1 between 10 and 110 order by key1 limit 2;
-show status like 'Handler_read%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 1
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 2
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 0
-drop table t1, t2;
-# End of MariaDB 10.0 tests
diff --git a/mysql-test/r/update_ignore_216.result b/mysql-test/r/update_ignore_216.result
deleted file mode 100644
index 4abc1eae06e..00000000000
--- a/mysql-test/r/update_ignore_216.result
+++ /dev/null
@@ -1,9 +0,0 @@
-CREATE TABLE t1 ( a INT, b CHAR(3) );
-INSERT INTO t1 VALUES ( 1, 'foo' );
-CREATE TABLE t2 ( c CHAR(3), d INT );
-INSERT INTO t2 VALUES ( 'foo', 1 );
-UPDATE IGNORE t1, t2 SET b = 'bar', c = 'bar'
- WHERE a != ( SELECT 1 UNION SELECT 2 );
-Warnings:
-Warning 1242 Subquery returns more than 1 row
-DROP TABLE t1, t2;
diff --git a/mysql-test/r/update_innodb.result b/mysql-test/r/update_innodb.result
deleted file mode 100644
index 0a85c6dab3e..00000000000
--- a/mysql-test/r/update_innodb.result
+++ /dev/null
@@ -1,67 +0,0 @@
-CREATE TABLE `t1` (
-`c1` int(11) NOT NULL,
-`c2` datetime DEFAULT NULL,
-PRIMARY KEY (`c1`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-CREATE TABLE `t2` (
-`c0` varchar(10) NOT NULL,
-`c1` int(11) NOT NULL,
-`c2` int(11) NOT NULL,
-PRIMARY KEY (`c0`,`c1`),
-KEY `c1` (`c1`),
-KEY `c2` (`c2`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-CREATE TABLE `t3` (
-`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
-`c1` datetime NOT NULL,
-`c2` bigint(20) NOT NULL,
-`c3` int(4) unsigned NOT NULL,
-PRIMARY KEY (`id`),
-KEY `c2` (`c2`),
-KEY `c3` (`c3`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-CREATE TABLE `t4` (
-`c1` int(11) NOT NULL,
-`c2` bigint(20) DEFAULT NULL,
-`c3` int(11) NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-CREATE ALGORITHM=UNDEFINED VIEW `v1` AS select `t4`.`c1` AS `c1`,`t4`.`c2` AS `c2`,`t4`.`c3` AS `c3` from `t4`;
-UPDATE t1 a JOIN t2 b ON a.c1 = b.c1 JOIN v1 vw ON b.c2 = vw.c1 JOIN t3 del ON vw.c2 = del.c2 SET a.c2 = ( SELECT max(t.c1) FROM t3 t, v1 i WHERE del.c2 = t.c2 AND vw.c3 = i.c3 AND t.c3 = 4 ) WHERE a.c2 IS NULL OR a.c2 < '2011-05-01';
-drop view v1;
-drop table t1,t2,t3,t4;
-#
-# MDEV-14862: Server crashes in Bitmap<64u>::merge / add_key_field
-#
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-CREATE VIEW v1 AS SELECT * FROM t1;
-CREATE TABLE t2 (b INT) ENGINE=InnoDB;
-DELETE FROM v1 WHERE a IN ( SELECT a FROM t2 );
-DELETE FROM v1 WHERE (a,a) IN ( SELECT a,a FROM t2 );
-drop view v1;
-drop table t1,t2;
-#
-# MDEV-10232 Scalar result of subquery changes after adding an outer select stmt
-#
-CREATE TABLE t1 (
-a_id INT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-b_id INT(20) UNSIGNED NULL DEFAULT NULL,
-c_id VARCHAR(255) NULL DEFAULT NULL,
-PRIMARY KEY (a_id))COLLATE = 'utf8_general_ci' ENGINE = InnoDB;
-CREATE TABLE t2 (
-b_id INT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-c_id VARCHAR(255) NULL DEFAULT NULL,
-PRIMARY KEY (b_id),
-INDEX idx_c_id (c_id))COLLATE = 'utf8_general_ci' ENGINE = InnoDB;
-INSERT INTO t1 (b_id, c_id) VALUES (NULL, NULL);
-INSERT INTO t2 (c_id) VALUES (NULL);
-INSERT INTO t2 (c_id) VALUES (NULL);
-SELECT * FROM t1;
-a_id b_id c_id
-1 NULL NULL
-SELECT t2.b_id FROM t1,t2 WHERE t2.c_id = t1.c_id;
-b_id
-UPDATE t1 SET b_id = (SELECT t2.b_id FROM t2 t2 WHERE t2.c_id = t1.c_id);
-SELECT * FROM t1;
-a_id b_id c_id
-1 NULL NULL
-drop table t1,t2;
diff --git a/mysql-test/r/update_use_source.result b/mysql-test/r/update_use_source.result
deleted file mode 100644
index e5585fcee5d..00000000000
--- a/mysql-test/r/update_use_source.result
+++ /dev/null
@@ -1,1201 +0,0 @@
-create table t1 (old_c1 integer, old_c2 integer,c1 integer, c2 integer, c3 integer) engine=InnoDb;
-create view v1 as select * from t1 where c2=2;
-create trigger trg_t1 before update on t1 for each row
-begin
-set new.old_c1=old.c1;
-set new.old_c2=old.c2;
-end;
-/
-insert into t1(c1,c2,c3) values (1,1,1);
-insert into t1(c1,c2,c3) values (1,2,2);
-insert into t1(c1,c2,c3) values (1,3,3);
-insert into t1(c1,c2,c3) values (2,1,4);
-insert into t1(c1,c2,c3) values (2,2,5);
-insert into t1(c1,c2,c3) values (2,3,6);
-insert into t1(c1,c2,c3) values (2,4,7);
-insert into t1(c1,c2,c3) values (2,5,8);
-commit;
-select * from t1;
-old_c1 old_c2 c1 c2 c3
-NULL NULL 1 1 1
-NULL NULL 1 2 2
-NULL NULL 1 3 3
-NULL NULL 2 1 4
-NULL NULL 2 2 5
-NULL NULL 2 3 6
-NULL NULL 2 4 7
-NULL NULL 2 5 8
-Test without any index
-#
-# Update a with value from subquery on the same table, no search clause. ALL access
-#
-start transaction;
-update t1
-set c1=(select a.c3
-from t1 a
-where a.c3 = t1.c3);
-affected rows: 8
-info: Rows matched: 8 Changed: 8 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-1->1 1
-1->2 2 *
-1->3 3 *
-2->4 4 *
-2->5 5 *
-2->6 6 *
-2->7 7 *
-2->8 8 *
-rollback;
-#
-# Update with search clause on the same table
-#
-start transaction;
-update t1
-set c1=10
-where c1 <2
-and exists (select 'X'
- from t1 a
-where a.c1 = t1.c1);
-affected rows: 3
-info: Rows matched: 3 Changed: 3 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-1->10 1 *
-1->10 2 *
-1->10 3 *
-NULL 4
-NULL 5
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update via RANGE or INDEX access if an index or a primary key exists
-#
-explain update t1 set c1=0 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 > 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8 Using where
-2 DEPENDENT SUBQUERY a ALL NULL NULL NULL NULL 8 Using where
-start transaction;
-update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
-affected rows: 4
-info: Rows matched: 4 Changed: 4 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-1->11 3 *
-NULL 4
-NULL 5
-2->12 6 *
-2->12 7 *
-2->12 8 *
-rollback;
-#
-# Update with order by
-#
-start transaction;
-update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3 order by c2;
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-1->11 3 *
-NULL 4
-NULL 5
-2->12 6 *
-2->12 7 *
-2->12 8 *
-rollback;
-#
-Update using a view in subquery
-#
-start transaction;
-update t1
-set c1=c1 +(select max(a.c2)
-from v1 a
-where a.c1 = t1.c1) ;
-affected rows: 8
-info: Rows matched: 8 Changed: 8 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-1->3 1 *
-1->3 2 *
-1->3 3 *
-2->4 4 *
-2->4 5 *
-2->4 6 *
-2->4 7 *
-2->4 8 *
-rollback;
-#
-# Update throw a view
-#
-start transaction;
-update v1
-set c1=c1 + (select max(a.c2)
-from t1 a
-where a.c1 = v1.c1) +10
-where c3 > 3;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-NULL 3
-NULL 4
-2->17 5 *
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update through a view and using the view in subquery
-#
-start transaction;
-update v1
-set c1=c1 + 1
-where c1 <2
-and exists (select 'X'
- from v1 a
-where a.c1 = v1.c1);
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-1->2 2 *
-NULL 3
-NULL 4
-NULL 5
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update through a view and using the view in subquery
-#
-start transaction;
-update v1
-set c1=(select max(a.c1)+10
-from v1 a
-where a.c1 = v1.c1)
-where c1 <10
-and exists (select 'X'
- from v1 a
-where a.c2 = v1.c2);
-affected rows: 2
-info: Rows matched: 2 Changed: 2 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-1->11 2 *
-NULL 3
-NULL 4
-2->12 5 *
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update of the index or primary key (c3)
-#
-start transaction;
-explain update t1 set c3=c3+10 where c2 in (select distinct a.c2 from t1 a where t1.c1=a.c1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 8
-1 PRIMARY a ALL NULL NULL NULL NULL 8 Using where; FirstMatch(t1)
-update t1 set c3=c3+10 where c2 in (select distinct a.c2 from t1 a where t1.c1=a.c1);
-affected rows: 8
-info: Rows matched: 8 Changed: 8 Warnings: 0
-select c3 from t1;
-c3
-11
-12
-13
-14
-15
-16
-17
-18
-rollback;
-#
-# update with a limit
-#
-start transaction;
-update t1
-set c1=(select a.c3
-from t1 a
-where a.c3 = t1.c3)
-limit 2;
-affected rows: 2
-info: Rows matched: 2 Changed: 2 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-1->1 1
-1->2 2 *
-NULL 3
-NULL 4
-NULL 5
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# update with a limit and an order by
-#
-start transaction;
-update t1
-set c1=(select a.c3
-from t1 a
-where a.c3 = t1.c3)
-order by c3 desc limit 2;
-affected rows: 2
-info: Rows matched: 2 Changed: 2 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-NULL 3
-NULL 4
-NULL 5
-NULL 6
-2->7 7 *
-2->8 8 *
-rollback;
-Test with an index on updated columns
-create index t1_c2 on t1 (c2,c1);
-#
-# Update a with value from subquery on the same table, no search clause. ALL access
-#
-start transaction;
-update t1
-set c1=(select a.c3
-from t1 a
-where a.c3 = t1.c3);
-affected rows: 8
-info: Rows matched: 8 Changed: 8 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-1->1 1
-1->2 2 *
-1->3 3 *
-2->4 4 *
-2->5 5 *
-2->6 6 *
-2->7 7 *
-2->8 8 *
-rollback;
-#
-# Update with search clause on the same table
-#
-start transaction;
-update t1
-set c1=10
-where c1 <2
-and exists (select 'X'
- from t1 a
-where a.c1 = t1.c1);
-affected rows: 3
-info: Rows matched: 3 Changed: 3 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-1->10 1 *
-1->10 2 *
-1->10 3 *
-NULL 4
-NULL 5
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update via RANGE or INDEX access if an index or a primary key exists
-#
-explain update t1 set c1=0 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 > 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range t1_c2 t1_c2 5 NULL 2 Using where
-2 DEPENDENT SUBQUERY a ref t1_c2 t1_c2 5 test.t1.c2 4 Using index
-start transaction;
-update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
-affected rows: 4
-info: Rows matched: 4 Changed: 4 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-1->11 3 *
-NULL 4
-NULL 5
-2->12 6 *
-2->12 7 *
-2->12 8 *
-rollback;
-#
-# Update with order by
-#
-start transaction;
-update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3 order by c2;
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-1->11 3 *
-NULL 4
-NULL 5
-2->12 6 *
-2->12 7 *
-2->12 8 *
-rollback;
-#
-Update using a view in subquery
-#
-start transaction;
-update t1
-set c1=c1 +(select max(a.c2)
-from v1 a
-where a.c1 = t1.c1) ;
-affected rows: 8
-info: Rows matched: 8 Changed: 8 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-1->3 1 *
-1->3 2 *
-1->3 3 *
-2->4 4 *
-2->4 5 *
-2->4 6 *
-2->4 7 *
-2->4 8 *
-rollback;
-#
-# Update throw a view
-#
-start transaction;
-update v1
-set c1=c1 + (select max(a.c2)
-from t1 a
-where a.c1 = v1.c1) +10
-where c3 > 3;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-NULL 3
-NULL 4
-2->17 5 *
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update through a view and using the view in subquery
-#
-start transaction;
-update v1
-set c1=c1 + 1
-where c1 <2
-and exists (select 'X'
- from v1 a
-where a.c1 = v1.c1);
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-1->2 2 *
-NULL 3
-NULL 4
-NULL 5
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update through a view and using the view in subquery
-#
-start transaction;
-update v1
-set c1=(select max(a.c1)+10
-from v1 a
-where a.c1 = v1.c1)
-where c1 <10
-and exists (select 'X'
- from v1 a
-where a.c2 = v1.c2);
-affected rows: 2
-info: Rows matched: 2 Changed: 2 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-1->11 2 *
-NULL 3
-NULL 4
-2->12 5 *
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update of the index or primary key (c3)
-#
-start transaction;
-explain update t1 set c3=c3+10 where c2 in (select distinct a.c2 from t1 a where t1.c1=a.c1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL t1_c2 NULL NULL NULL 8 Using where
-1 PRIMARY a ref t1_c2 t1_c2 10 test.t1.c2,test.t1.c1 1 Using index; FirstMatch(t1)
-update t1 set c3=c3+10 where c2 in (select distinct a.c2 from t1 a where t1.c1=a.c1);
-affected rows: 8
-info: Rows matched: 8 Changed: 8 Warnings: 0
-select c3 from t1;
-c3
-11
-12
-13
-14
-15
-16
-17
-18
-rollback;
-#
-# update with a limit
-#
-start transaction;
-update t1
-set c1=(select a.c3
-from t1 a
-where a.c3 = t1.c3)
-limit 2;
-affected rows: 2
-info: Rows matched: 2 Changed: 2 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-1->1 1
-1->2 2 *
-NULL 3
-NULL 4
-NULL 5
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# update with a limit and an order by
-#
-start transaction;
-update t1
-set c1=(select a.c3
-from t1 a
-where a.c3 = t1.c3)
-order by c3 desc limit 2;
-affected rows: 2
-info: Rows matched: 2 Changed: 2 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-NULL 3
-NULL 4
-NULL 5
-NULL 6
-2->7 7 *
-2->8 8 *
-rollback;
-Test with an index on updated columns
-create index t1_c3 on t1 (c3);
-#
-# Update a with value from subquery on the same table, no search clause. ALL access
-#
-start transaction;
-update t1
-set c1=(select a.c3
-from t1 a
-where a.c3 = t1.c3);
-affected rows: 8
-info: Rows matched: 8 Changed: 8 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-1->1 1
-1->2 2 *
-1->3 3 *
-2->4 4 *
-2->5 5 *
-2->6 6 *
-2->7 7 *
-2->8 8 *
-rollback;
-#
-# Update with search clause on the same table
-#
-start transaction;
-update t1
-set c1=10
-where c1 <2
-and exists (select 'X'
- from t1 a
-where a.c1 = t1.c1);
-affected rows: 3
-info: Rows matched: 3 Changed: 3 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-1->10 1 *
-1->10 2 *
-1->10 3 *
-NULL 4
-NULL 5
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update via RANGE or INDEX access if an index or a primary key exists
-#
-explain update t1 set c1=0 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 > 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range t1_c2 t1_c2 5 NULL 2 Using where
-2 DEPENDENT SUBQUERY a ref t1_c2 t1_c2 5 test.t1.c2 1 Using index
-start transaction;
-update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
-affected rows: 4
-info: Rows matched: 4 Changed: 4 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-1->11 3 *
-NULL 4
-NULL 5
-2->12 6 *
-2->12 7 *
-2->12 8 *
-rollback;
-#
-# Update with order by
-#
-start transaction;
-update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3 order by c2;
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-1->11 3 *
-NULL 4
-NULL 5
-2->12 6 *
-2->12 7 *
-2->12 8 *
-rollback;
-#
-Update using a view in subquery
-#
-start transaction;
-update t1
-set c1=c1 +(select max(a.c2)
-from v1 a
-where a.c1 = t1.c1) ;
-affected rows: 8
-info: Rows matched: 8 Changed: 8 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-1->3 1 *
-1->3 2 *
-1->3 3 *
-2->4 4 *
-2->4 5 *
-2->4 6 *
-2->4 7 *
-2->4 8 *
-rollback;
-#
-# Update throw a view
-#
-start transaction;
-update v1
-set c1=c1 + (select max(a.c2)
-from t1 a
-where a.c1 = v1.c1) +10
-where c3 > 3;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-NULL 3
-NULL 4
-2->17 5 *
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update through a view and using the view in subquery
-#
-start transaction;
-update v1
-set c1=c1 + 1
-where c1 <2
-and exists (select 'X'
- from v1 a
-where a.c1 = v1.c1);
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-1->2 2 *
-NULL 3
-NULL 4
-NULL 5
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update through a view and using the view in subquery
-#
-start transaction;
-update v1
-set c1=(select max(a.c1)+10
-from v1 a
-where a.c1 = v1.c1)
-where c1 <10
-and exists (select 'X'
- from v1 a
-where a.c2 = v1.c2);
-affected rows: 2
-info: Rows matched: 2 Changed: 2 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-1->11 2 *
-NULL 3
-NULL 4
-2->12 5 *
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update of the index or primary key (c3)
-#
-start transaction;
-explain update t1 set c3=c3+10 where c2 in (select distinct a.c2 from t1 a where t1.c1=a.c1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL t1_c2 NULL NULL NULL 8 Using where
-1 PRIMARY a ref t1_c2 t1_c2 10 test.t1.c2,test.t1.c1 1 Using index; FirstMatch(t1)
-update t1 set c3=c3+10 where c2 in (select distinct a.c2 from t1 a where t1.c1=a.c1);
-affected rows: 8
-info: Rows matched: 8 Changed: 8 Warnings: 0
-select c3 from t1;
-c3
-11
-12
-13
-14
-15
-16
-17
-18
-rollback;
-#
-# update with a limit
-#
-start transaction;
-update t1
-set c1=(select a.c3
-from t1 a
-where a.c3 = t1.c3)
-limit 2;
-affected rows: 2
-info: Rows matched: 2 Changed: 2 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-1->1 1
-1->2 2 *
-NULL 3
-NULL 4
-NULL 5
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# update with a limit and an order by
-#
-start transaction;
-update t1
-set c1=(select a.c3
-from t1 a
-where a.c3 = t1.c3)
-order by c3 desc limit 2;
-affected rows: 2
-info: Rows matched: 2 Changed: 2 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-NULL 3
-NULL 4
-NULL 5
-NULL 6
-2->7 7 *
-2->8 8 *
-rollback;
-Test with a primary key on updated columns
-drop index t1_c3 on t1;
-alter table t1 add primary key (c3);
-#
-# Update a with value from subquery on the same table, no search clause. ALL access
-#
-start transaction;
-update t1
-set c1=(select a.c3
-from t1 a
-where a.c3 = t1.c3);
-affected rows: 8
-info: Rows matched: 8 Changed: 8 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-1->1 1
-1->2 2 *
-1->3 3 *
-2->4 4 *
-2->5 5 *
-2->6 6 *
-2->7 7 *
-2->8 8 *
-rollback;
-#
-# Update with search clause on the same table
-#
-start transaction;
-update t1
-set c1=10
-where c1 <2
-and exists (select 'X'
- from t1 a
-where a.c1 = t1.c1);
-affected rows: 3
-info: Rows matched: 3 Changed: 3 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-1->10 1 *
-1->10 2 *
-1->10 3 *
-NULL 4
-NULL 5
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update via RANGE or INDEX access if an index or a primary key exists
-#
-explain update t1 set c1=0 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 > 3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 range t1_c2 t1_c2 5 NULL 2 Using where
-2 DEPENDENT SUBQUERY a ref t1_c2 t1_c2 5 test.t1.c2 1 Using index
-start transaction;
-update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
-affected rows: 4
-info: Rows matched: 4 Changed: 4 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-1->11 3 *
-NULL 4
-NULL 5
-2->12 6 *
-2->12 7 *
-2->12 8 *
-rollback;
-#
-# Update with order by
-#
-start transaction;
-update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3 order by c2;
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-1->11 3 *
-NULL 4
-NULL 5
-2->12 6 *
-2->12 7 *
-2->12 8 *
-rollback;
-#
-Update using a view in subquery
-#
-start transaction;
-update t1
-set c1=c1 +(select max(a.c2)
-from v1 a
-where a.c1 = t1.c1) ;
-affected rows: 8
-info: Rows matched: 8 Changed: 8 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-1->3 1 *
-1->3 2 *
-1->3 3 *
-2->4 4 *
-2->4 5 *
-2->4 6 *
-2->4 7 *
-2->4 8 *
-rollback;
-#
-# Update throw a view
-#
-start transaction;
-update v1
-set c1=c1 + (select max(a.c2)
-from t1 a
-where a.c1 = v1.c1) +10
-where c3 > 3;
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-NULL 3
-NULL 4
-2->17 5 *
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update through a view and using the view in subquery
-#
-start transaction;
-update v1
-set c1=c1 + 1
-where c1 <2
-and exists (select 'X'
- from v1 a
-where a.c1 = v1.c1);
-affected rows: 1
-info: Rows matched: 1 Changed: 1 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-1->2 2 *
-NULL 3
-NULL 4
-NULL 5
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update through a view and using the view in subquery
-#
-start transaction;
-update v1
-set c1=(select max(a.c1)+10
-from v1 a
-where a.c1 = v1.c1)
-where c1 <10
-and exists (select 'X'
- from v1 a
-where a.c2 = v1.c2);
-affected rows: 2
-info: Rows matched: 2 Changed: 2 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-1->11 2 *
-NULL 3
-NULL 4
-2->12 5 *
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# Update of the index or primary key (c3)
-#
-start transaction;
-explain update t1 set c3=c3+10 where c2 in (select distinct a.c2 from t1 a where t1.c1=a.c1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL t1_c2 NULL NULL NULL 8 Using where
-1 PRIMARY a ref t1_c2 t1_c2 10 test.t1.c2,test.t1.c1 1 Using index; FirstMatch(t1)
-update t1 set c3=c3+10 where c2 in (select distinct a.c2 from t1 a where t1.c1=a.c1);
-affected rows: 8
-info: Rows matched: 8 Changed: 8 Warnings: 0
-select c3 from t1;
-c3
-11
-14
-12
-15
-13
-16
-17
-18
-rollback;
-#
-# update with a limit
-#
-start transaction;
-update t1
-set c1=(select a.c3
-from t1 a
-where a.c3 = t1.c3)
-limit 2;
-affected rows: 2
-info: Rows matched: 2 Changed: 2 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-1->1 1
-1->2 2 *
-NULL 3
-NULL 4
-NULL 5
-NULL 6
-NULL 7
-NULL 8
-rollback;
-#
-# update with a limit and an order by
-#
-start transaction;
-update t1
-set c1=(select a.c3
-from t1 a
-where a.c3 = t1.c3)
-order by c3 desc limit 2;
-affected rows: 2
-info: Rows matched: 2 Changed: 2 Warnings: 0
-select concat(old_c1,'->',c1),c3, case when c1 != old_c1 then '*' else ' ' end "Changed" from t1 ;
-concat(old_c1,'->',c1) c3 Changed
-NULL 1
-NULL 2
-NULL 3
-NULL 4
-NULL 5
-NULL 6
-2->7 7 *
-2->8 8 *
-rollback;
-# Update with error "Subquery returns more than 1 row"
-update t1 set c2=(select c2 from t1);
-ERROR 21000: Subquery returns more than 1 row
-# Update with error "Subquery returns more than 1 row" and order by
-update t1 set c2=(select c2 from t1) order by c3;
-ERROR 21000: Subquery returns more than 1 row
-Duplicate value on update a primary key
-start transaction;
-update t1 set c3=0 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
-ERROR 23000: Duplicate entry '0' for key 'PRIMARY'
-rollback;
-Duplicate value on update a primary key with ignore
-start transaction;
-update ignore t1 set c3=0 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
-affected rows: 4
-info: Rows matched: 4 Changed: 4 Warnings: 0
-rollback;
-Duplicate value on update a primary key and limit
-start transaction;
-update t1 set c3=0 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3 limit 2;
-ERROR 23000: Duplicate entry '0' for key 'PRIMARY'
-rollback;
-Duplicate value on update a primary key with ignore and limit
-start transaction;
-update ignore t1 set c3=0 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3 limit 2;
-affected rows: 2
-info: Rows matched: 2 Changed: 2 Warnings: 0
-rollback;
-# Update no rows found
-update t1
-set c1=10
-where c1 <2
-and exists (select 'X'
- from t1 a
-where a.c1 = t1.c1 + 10);
-affected rows: 0
-info: Rows matched: 0 Changed: 0 Warnings: 0
-# Update no rows changed
-drop trigger trg_t1;
-start transaction;
-update t1
-set c1=c1
-where c1 <2
-and exists (select 'X'
- from t1 a
-where a.c1 = t1.c1);
-affected rows: 0
-info: Rows matched: 3 Changed: 0 Warnings: 0
-rollback;
-#
-# Check call of after trigger
-#
-create or replace trigger trg_t2 after update on t1 for each row
-begin
-declare msg varchar(100);
-if (new.c3 = 5) then
-set msg=concat('in after update trigger on ',new.c3);
-SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = msg;
-end if;
-end;
-/
-update t1 set c1=2 where c3 in (select distinct a.c3 from t1 a where a.c1=t1.c1);
-ERROR 45000: in after update trigger on 5
-#
-# Check update with order by and after trigger
-#
-update t1 set c1=2 where c3 in (select distinct a.c3 from t1 a where a.c1=t1.c1) order by t1.c2;
-ERROR 45000: in after update trigger on 5
-drop view v1;
-#
-# Check update on view with check option
-#
-create view v1 as select * from t1 where c2=2 with check option;
-start transaction;
-update v1 set c2=3 where c1=1;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-rollback;
-start transaction;
-update v1 set c2=(select max(c3) from v1) where c1=1;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-rollback;
-start transaction;
-update v1 set c2=(select min(va.c3) from v1 va), c1=0 where c1=1;
-rollback;
-drop view v1;
-drop table t1;
-#
-# Test with a temporary table
-#
-create temporary table t1 (c1 integer, c2 integer, c3 integer) engine=InnoDb;
-insert into t1(c1,c2,c3) values (1,1,1);
-insert into t1(c1,c2,c3) values (1,2,2);
-insert into t1(c1,c2,c3) values (1,3,3);
-insert into t1(c1,c2,c3) values (2,1,4);
-insert into t1(c1,c2,c3) values (2,2,5);
-insert into t1(c1,c2,c3) values (2,3,6);
-insert into t1(c1,c2,c3) values (2,4,7);
-insert into t1(c1,c2,c3) values (2,5,8);
-start transaction;
-update t1
-set c1=(select a.c2
-from t1 a
-where a.c3 = t1.c3) limit 3;
-affected rows: 2
-info: Rows matched: 3 Changed: 2 Warnings: 0
-select * from t1 ;
-c1 c2 c3
-1 1 1
-2 2 2
-3 3 3
-2 1 4
-2 2 5
-2 3 6
-2 4 7
-2 5 8
-rollback;
-drop table t1;
-#
-# Test on dynamic columns (blob)
-#
-create table assets (
-item_name varchar(32) primary key, -- A common attribute for all items
-dynamic_cols blob -- Dynamic columns will be stored here
-);
-INSERT INTO assets VALUES ('MariaDB T-shirt', COLUMN_CREATE('color', 'blue', 'size', 'XL'));
-INSERT INTO assets VALUES ('Thinkpad Laptop', COLUMN_CREATE('color', 'black', 'price', 500));
-SELECT item_name, COLUMN_GET(dynamic_cols, 'color' as char) AS color FROM assets;
-item_name color
-MariaDB T-shirt blue
-Thinkpad Laptop black
-UPDATE assets SET dynamic_cols=COLUMN_ADD(dynamic_cols, 'warranty', '3 years') WHERE item_name='Thinkpad Laptop';
-SELECT item_name, COLUMN_GET(dynamic_cols, 'warranty' as char) AS color FROM assets;
-item_name color
-MariaDB T-shirt NULL
-Thinkpad Laptop 3 years
-UPDATE assets SET dynamic_cols=COLUMN_ADD(dynamic_cols, 'warranty', '4 years')
-WHERE item_name in (select b.item_name
-from assets b
-where COLUMN_GET(b.dynamic_cols, 'color' as char) ='black');
-SELECT item_name, COLUMN_GET(dynamic_cols, 'warranty' as char) AS color FROM assets;
-item_name color
-MariaDB T-shirt NULL
-Thinkpad Laptop 4 years
-UPDATE assets SET dynamic_cols=COLUMN_ADD(dynamic_cols, 'warranty', (select COLUMN_GET(b.dynamic_cols, 'color' as char)
-from assets b
-where assets.item_name = item_name));
-SELECT item_name, COLUMN_GET(dynamic_cols, 'warranty' as char) AS color FROM assets;
-item_name color
-MariaDB T-shirt blue
-Thinkpad Laptop black
-drop table assets ;
-#
-# Test on fulltext columns
-#
-CREATE TABLE ft2(copy TEXT,FULLTEXT(copy)) ENGINE=MyISAM;
-INSERT INTO ft2(copy) VALUES
-('MySQL vs MariaDB database'),
-('Oracle vs MariaDB database'),
-('PostgreSQL vs MariaDB database'),
-('MariaDB overview'),
-('Foreign keys'),
-('Primary keys'),
-('Indexes'),
-('Transactions'),
-('Triggers');
-SELECT * FROM ft2 WHERE MATCH(copy) AGAINST('database');
-copy
-MySQL vs MariaDB database
-Oracle vs MariaDB database
-PostgreSQL vs MariaDB database
-update ft2 set copy = (select max(concat('mykeyword ',substr(b.copy,1,5))) from ft2 b WHERE MATCH(b.copy) AGAINST('database'))
-where MATCH(copy) AGAINST('keys');
-SELECT * FROM ft2 WHERE MATCH(copy) AGAINST('mykeyword');
-copy
-mykeyword Postg
-mykeyword Postg
-drop table ft2;
-#
-# Test with MyISAM
-#
-create table t1 (old_c1 integer, old_c2 integer,c1 integer, c2 integer, c3 integer) engine=MyISAM;
-insert t1 (c1,c2,c3) select 0,seq,seq%10 from seq_1_to_500;
-insert t1 (c1,c2,c3) select 1,seq,seq%10 from seq_1_to_400;
-insert t1 (c1,c2,c3) select 2,seq,seq%10 from seq_1_to_300;
-insert t1 (c1,c2,c3) select 3,seq,seq%10 from seq_1_to_200;
-create index t1_idx1 on t1(c3);
-analyze table t1;
-Table Op Msg_type Msg_text
-test.t1 analyze status Table is already up to date
-update t1 set c1=2 where exists (select 'x' from t1);
-select count(*) from t1 where c1=2;
-count(*)
-1400
-update t1 set c1=3 where c3 in (select c3 from t1 b where t1.c3=b.c1);
-select count(*) from t1 where c1=3;
-count(*)
-140
-drop table t1;
-#
-# Test error on multi_update conversion on view with order by or limit
-#
-create table t1 (c1 integer) engine=InnoDb;
-create table t2 (c1 integer) engine=InnoDb;
-create view v1 as select t1.c1 as "t1c1" ,t2.c1 as "t2c1" from t1,t2 where t1.c1=t2.c1;
-update v1 set t1c1=2 order by 1;
-ERROR 42S22: Unknown column '1' in 'order clause'
-update v1 set t1c1=2 limit 1;
-drop table t1;
-drop table t2;
-drop view v1;
diff --git a/mysql-test/r/upgrade.result b/mysql-test/r/upgrade.result
deleted file mode 100644
index 887a53887fe..00000000000
--- a/mysql-test/r/upgrade.result
+++ /dev/null
@@ -1,153 +0,0 @@
-call mtr.add_suppression("Invalid .old.. table or database name");
-drop database if exists `mysqltest1`;
-drop database if exists `mysqltest-1`;
-drop database if exists `#mysql50#mysqltest-1`;
-create database `mysqltest1`;
-create database `#mysql50#mysqltest-1`;
-create table `mysqltest1`.`t1` (a int);
-create table `mysqltest1`.`#mysql50#t-1` (a int);
-create table `#mysql50#mysqltest-1`.`t1` (a int);
-create table `#mysql50#mysqltest-1`.`#mysql50#t-1` (a int);
-show create database `mysqltest1`;
-Database Create Database
-mysqltest1 CREATE DATABASE `mysqltest1` /*!40100 DEFAULT CHARACTER SET latin1 */
-show create database `mysqltest-1`;
-ERROR 42000: Unknown database 'mysqltest-1'
-show create database `#mysql50#mysqltest-1`;
-Database Create Database
-#mysql50#mysqltest-1 CREATE DATABASE `#mysql50#mysqltest-1` /*!40100 DEFAULT CHARACTER SET latin1 */
-show tables in `mysqltest1`;
-Tables_in_mysqltest1
-#mysql50#t-1
-t1
-show tables in `#mysql50#mysqltest-1`;
-Tables_in_#mysql50#mysqltest-1
-#mysql50#t-1
-t1
-show create database `mysqltest1`;
-Database Create Database
-mysqltest1 CREATE DATABASE `mysqltest1` /*!40100 DEFAULT CHARACTER SET latin1 */
-show create database `mysqltest-1`;
-Database Create Database
-mysqltest-1 CREATE DATABASE `mysqltest-1` /*!40100 DEFAULT CHARACTER SET latin1 */
-show create database `#mysql50#mysqltest-1`;
-ERROR 42000: Unknown database '#mysql50#mysqltest-1'
-show tables in `mysqltest1`;
-Tables_in_mysqltest1
-t-1
-t1
-show tables in `mysqltest-1`;
-Tables_in_mysqltest-1
-t-1
-t1
-drop database `mysqltest1`;
-drop database `mysqltest-1`;
-create table `txu#p#p1` (s1 int);
-insert into `txu#p#p1` values (1);
-select * from `txu@0023p@0023p1`;
-ERROR 42S02: Table 'test.txu@0023p@0023p1' doesn't exist
-create table `txu@0023p@0023p1` (s1 int);
-show tables;
-Tables_in_test
-txu#p#p1
-txu@0023p@0023p1
-insert into `txu@0023p@0023p1` values (2);
-select * from `txu@0023p@0023p1`;
-s1
-2
-select * from `txu#p#p1`;
-s1
-1
-drop table `txu#p#p1`;
-drop table `txu@0023p@0023p1`;
-#
-# Bug#37631 Incorrect key file for table after upgrading from 5.0 to 5.1
-#
-# copy table created using mysql4.0 into the data dir
-# check the table created using mysql 4.0
-CHECK TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 check error Upgrade required. Please do "REPAIR TABLE `t1`" or dump/reload to fix it!
-# query the table created using mysql 4.0
-SELECT * FROM t1;
-c1 c2 c3
-DROP TABLE t1;
-truncate t1;
-drop table t1;
-drop database if exists `tabc`;
-drop database if exists `a-b-c`;
-create database `tabc` default character set latin2;
-create table tabc.t1 (a int);
-FLUSH TABLES;
-show databases like '%a-b-c%';
-Database (%a-b-c%)
-#mysql50#a-b-c
-ALTER DATABASE `#mysql50#a-b-c` UPGRADE DATA DIRECTORY NAME;
-show databases like '%a-b-c%';
-Database (%a-b-c%)
-a-b-c
-show create database `a-b-c`;
-Database Create Database
-a-b-c CREATE DATABASE `a-b-c` /*!40100 DEFAULT CHARACTER SET latin2 */
-show tables in `a-b-c`;
-Tables_in_a-b-c
-t1
-show create table `a-b-c`.`t1`;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin2
-drop database `a-b-c`;
-drop database `tabc`;
-use `#mysql50#a-b-c`;
-create table t1(f1 char(10));
-show databases like '%a-b-c%';
-Database (%a-b-c%)
-#mysql50#a-b-c
-ALTER DATABASE `#mysql50#a-b-c` UPGRADE DATA DIRECTORY NAME;
-show databases like '%a-b-c%';
-Database (%a-b-c%)
-a-b-c
-show create view `a-b-c`.v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `a`.`f1` AS `f1` from (`a-b-c`.`t1` `a` join `information_schema`.`tables` `b`) where convert(`a`.`f1` using utf8) = `b`.`TABLE_NAME` utf8 utf8_general_ci
-select * from `a-b-c`.v1;
-f1
-drop database `a-b-c`;
-use test;
-# End of 5.0 tests
-#
-# Bug #53804: serious flaws in the alter database .. upgrade data
-# directory name command
-#
-ALTER DATABASE `#mysql50#:` UPGRADE DATA DIRECTORY NAME;
-ERROR 42000: Unknown database '#mysql50#:'
-ALTER DATABASE `#mysql50#.` UPGRADE DATA DIRECTORY NAME;
-ERROR 42000: Incorrect database name '#mysql50#.'
-ALTER DATABASE `#mysql50#../` UPGRADE DATA DIRECTORY NAME;
-ERROR 42000: Incorrect database name '#mysql50#../'
-ALTER DATABASE `#mysql50#../..` UPGRADE DATA DIRECTORY NAME;
-ERROR 42000: Incorrect database name '#mysql50#../..'
-ALTER DATABASE `#mysql50#../../` UPGRADE DATA DIRECTORY NAME;
-ERROR 42000: Incorrect database name '#mysql50#../../'
-ALTER DATABASE `#mysql50#./blablabla` UPGRADE DATA DIRECTORY NAME;
-ERROR 42000: Incorrect database name '#mysql50#./blablabla'
-ALTER DATABASE `#mysql50#../blablabla` UPGRADE DATA DIRECTORY NAME;
-ERROR 42000: Incorrect database name '#mysql50#../blablabla'
-ALTER DATABASE `#mysql50#/` UPGRADE DATA DIRECTORY NAME;
-ERROR 42000: Incorrect database name '#mysql50#/'
-ALTER DATABASE `#mysql50#/.` UPGRADE DATA DIRECTORY NAME;
-ERROR 42000: Incorrect database name '#mysql50#/.'
-USE `#mysql50#.`;
-ERROR 42000: Incorrect database name '#mysql50#.'
-USE `#mysql50#../blablabla`;
-ERROR 42000: Incorrect database name '#mysql50#../blablabla'
-show full tables;
-Tables_in_test Table_type
-#mysql50#ltoriaeinnovacionendesarrolloempres#9120761097220077376#cio_com BASE TABLE
-rename table `#mysql50#ltoriaeinnovacionendesarrolloempres#9120761097220077376#cio_com` to `ltoriaeinnovacionendesarrolloempres#9120761097220077376#cio_com`;
-show full tables;
-Tables_in_test Table_type
-ltoriaeinnovacionendesarrolloempres#9120761097220077376#cio_com BASE TABLE
-drop table `ltoriaeinnovacionendesarrolloempres#9120761097220077376#cio_com`;
-# End of 5.1 tests
diff --git a/mysql-test/r/user_limits.result b/mysql-test/r/user_limits.result
deleted file mode 100644
index bbf73d7c617..00000000000
--- a/mysql-test/r/user_limits.result
+++ /dev/null
@@ -1,188 +0,0 @@
-set @my_max_user_connections= @@global.max_user_connections;
-drop table if exists t1;
-create table t1 (i int);
-delete from mysql.user where user like 'mysqltest\_%';
-delete from mysql.db where user like 'mysqltest\_%';
-delete from mysql.tables_priv where user like 'mysqltest\_%';
-delete from mysql.columns_priv where user like 'mysqltest\_%';
-flush privileges;
-create user mysqltest_1@localhost;
-grant usage on *.* to mysqltest_1@localhost with max_queries_per_hour 2;
-flush user_resources;
-connect mqph, localhost, mysqltest_1,,;
-connection mqph;
-select * from t1;
-i
-select * from t1;
-i
-select * from t1;
-ERROR 42000: User 'mysqltest_1' has exceeded the 'max_queries_per_hour' resource (current value: 2)
-connect mqph2, localhost, mysqltest_1,,;
-connection mqph2;
-select * from t1;
-ERROR 42000: User 'mysqltest_1' has exceeded the 'max_queries_per_hour' resource (current value: 2)
-connection default;
-drop user mysqltest_1@localhost;
-disconnect mqph;
-disconnect mqph2;
-create user mysqltest_1@localhost;
-grant usage on *.* to mysqltest_1@localhost with max_updates_per_hour 2;
-flush user_resources;
-connect muph, localhost, mysqltest_1,,;
-connection muph;
-select * from t1;
-i
-select * from t1;
-i
-select * from t1;
-i
-delete from t1;
-delete from t1;
-delete from t1;
-ERROR 42000: User 'mysqltest_1' has exceeded the 'max_updates_per_hour' resource (current value: 2)
-select * from t1;
-i
-connect muph2, localhost, mysqltest_1,,;
-connection muph2;
-delete from t1;
-ERROR 42000: User 'mysqltest_1' has exceeded the 'max_updates_per_hour' resource (current value: 2)
-select * from t1;
-i
-connection default;
-drop user mysqltest_1@localhost;
-disconnect muph;
-disconnect muph2;
-create user mysqltest_1@localhost;
-grant usage on *.* to mysqltest_1@localhost with max_connections_per_hour 2;
-flush user_resources;
-connect mcph1, localhost, mysqltest_1,,;
-connection mcph1;
-select * from t1;
-i
-connect mcph2, localhost, mysqltest_1,,;
-connection mcph2;
-select * from t1;
-i
-connect(localhost,mysqltest_1,,test,MYSQL_PORT,MYSQL_SOCK);
-connect mcph3, localhost, mysqltest_1,,;
-ERROR 42000: User 'mysqltest_1' has exceeded the 'max_connections_per_hour' resource (current value: 2)
-select * from t1;
-i
-disconnect mcph1;
-disconnect mcph2;
-connect(localhost,mysqltest_1,,test,MYSQL_PORT,MYSQL_SOCK);
-connect mcph3, localhost, mysqltest_1,,;
-ERROR 42000: User 'mysqltest_1' has exceeded the 'max_connections_per_hour' resource (current value: 2)
-connection default;
-drop user mysqltest_1@localhost;
-flush privileges;
-create user mysqltest_1@localhost;
-grant usage on *.* to mysqltest_1@localhost with max_user_connections 2;
-flush user_resources;
-connect muc1, localhost, mysqltest_1,,;
-connection muc1;
-select * from t1;
-i
-connect muc2, localhost, mysqltest_1,,;
-connection muc2;
-select * from t1;
-i
-connect(localhost,mysqltest_1,,test,MYSQL_PORT,MYSQL_SOCK);
-connect muc3, localhost, mysqltest_1,,;
-ERROR 42000: User 'mysqltest_1' has exceeded the 'max_user_connections' resource (current value: 2)
-disconnect muc1;
-connect muc3, localhost, mysqltest_1,,;
-select * from t1;
-i
-connection default;
-grant usage on *.* to mysqltest_1@localhost with max_user_connections 3;
-flush user_resources;
-connect muc4, localhost, mysqltest_1,,;
-connection muc4;
-select * from t1;
-i
-connect(localhost,mysqltest_1,,test,MYSQL_PORT,MYSQL_SOCK);
-connect muc5, localhost, mysqltest_1,,;
-ERROR 42000: User 'mysqltest_1' has exceeded the 'max_user_connections' resource (current value: 3)
-connection default;
-grant usage on *.* to mysqltest_1@localhost with max_user_connections -1;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' WITH MAX_USER_CONNECTIONS -1
-flush user_resources;
-show grants for mysqltest_1@localhost;
-Grants for mysqltest_1@localhost
-GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' WITH MAX_USER_CONNECTIONS -1
-connect(localhost,mysqltest_1,,test,MYSQL_PORT,MYSQL_SOCK);
-connect muc5, localhost, mysqltest_1,,;
-ERROR 42000: User 'mysqltest_1' has exceeded the 'max_user_connections' resource (current value: -1)
-disconnect muc2;
-disconnect muc3;
-disconnect muc4;
-drop user mysqltest_1@localhost;
-select @@session.max_user_connections, @@global.max_user_connections;
-@@session.max_user_connections @@global.max_user_connections
-1000 1000
-set session max_user_connections= 2;
-ERROR HY000: SESSION variable 'max_user_connections' is read-only. Use SET GLOBAL to assign the value
-set global max_user_connections= 2;
-select @@session.max_user_connections, @@global.max_user_connections;
-@@session.max_user_connections @@global.max_user_connections
-2 2
-create user mysqltest_1@localhost;
-grant usage on *.* to mysqltest_1@localhost;
-flush user_resources;
-connect muca1, localhost, mysqltest_1,,;
-connection muca1;
-select @@session.max_user_connections, @@global.max_user_connections;
-@@session.max_user_connections @@global.max_user_connections
-2 2
-connect muca2, localhost, mysqltest_1,,;
-connection muca2;
-select * from t1;
-i
-connect(localhost,mysqltest_1,,test,MYSQL_PORT,MYSQL_SOCK);
-connect muca3, localhost, mysqltest_1,,;
-ERROR 42000: User mysqltest_1 already has more than 'max_user_connections' active connections
-connection default;
-grant usage on *.* to mysqltest_1@localhost with max_user_connections 3;
-flush user_resources;
-connect muca3, localhost, mysqltest_1,,;
-connection muca3;
-select @@session.max_user_connections, @@global.max_user_connections;
-@@session.max_user_connections @@global.max_user_connections
-3 2
-connect(localhost,mysqltest_1,,test,MYSQL_PORT,MYSQL_SOCK);
-connect muca4, localhost, mysqltest_1,,;
-ERROR 42000: User 'mysqltest_1' has exceeded the 'max_user_connections' resource (current value: 3)
-connection default;
-disconnect muca1;
-disconnect muca2;
-disconnect muca3;
-set global max_user_connections= 0;
-grant usage on *.* to mysqltest_1@localhost with max_user_connections 0;
-set global max_user_connections=-1;
-show variables like "max_user_user_connections";
-Variable_name Value
-select @@max_user_connections;
-@@max_user_connections
--1
-select @@global.max_user_connections;
-@@global.max_user_connections
--1
-connect(localhost,mysqltest_1,,test,MYSQL_PORT,MYSQL_SOCK);
-connect muca2, localhost, mysqltest_1,,;
-ERROR 42000: User mysqltest_1 already has more than 'max_user_connections' active connections
-connect muca2, localhost, root,,;
-disconnect muca2;
-connection default;
-set global max_user_connections=1;
-connect muca2, localhost, mysqltest_1,,;
-connect(localhost,mysqltest_1,,test,MYSQL_PORT,MYSQL_SOCK);
-connect muca3, localhost, mysqltest_1,,;
-ERROR 42000: User mysqltest_1 already has more than 'max_user_connections' active connections
-disconnect muca2;
-connection default;
-drop user mysqltest_1@localhost;
-drop table t1;
-set global max_user_connections= @my_max_user_connections;
diff --git a/mysql-test/r/user_var-binlog.result b/mysql-test/r/user_var-binlog.result
deleted file mode 100644
index 6066da2481a..00000000000
--- a/mysql-test/r/user_var-binlog.result
+++ /dev/null
@@ -1,59 +0,0 @@
-create table t1 (a varchar(50));
-reset master;
-SET TIMESTAMP=10000;
-SET @`a b`='hello';
-INSERT INTO t1 VALUES(@`a b`);
-set @var1= "';aaa";
-SET @var2=char(ascii('a'));
-insert into t1 values (@var1),(@var2);
-include/show_binlog_events.inc
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # User var # # @`a b`=_latin1 X'68656C6C6F' COLLATE latin1_swedish_ci
-master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES(@`a b`)
-master-bin.000001 # Query # # COMMIT
-master-bin.000001 # Gtid # # BEGIN GTID #-#-#
-master-bin.000001 # User var # # @`var1`=_latin1 X'273B616161' COLLATE latin1_swedish_ci
-master-bin.000001 # User var # # @`var2`=_binary X'61' COLLATE binary
-master-bin.000001 # Query # # use `test`; insert into t1 values (@var1),(@var2)
-master-bin.000001 # Query # # COMMIT
-flush logs;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
-/*!40019 SET @@session.max_insert_delayed_threads=0*/;
-/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
-DELIMITER /*!*/;
-ROLLBACK/*!*/;
-BEGIN
-/*!*/;
-SET @`a b`:=_latin1 X'68656C6C6F' COLLATE `latin1_swedish_ci`/*!*/;
-use `test`/*!*/;
-SET TIMESTAMP=10000/*!*/;
-SET @@session.pseudo_thread_id=999999999/*!*/;
-SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
-SET @@session.sql_mode=1411383296/*!*/;
-SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
-/*!\C latin1 *//*!*/;
-SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
-SET @@session.lc_time_names=0/*!*/;
-SET @@session.collation_database=DEFAULT/*!*/;
-INSERT INTO t1 VALUES(@`a b`)
-/*!*/;
-SET TIMESTAMP=10000/*!*/;
-COMMIT
-/*!*/;
-BEGIN
-/*!*/;
-SET @`var1`:=_latin1 X'273B616161' COLLATE `latin1_swedish_ci`/*!*/;
-SET @`var2`:=_binary X'61' COLLATE `binary`/*!*/;
-SET TIMESTAMP=10000/*!*/;
-insert into t1 values (@var1),(@var2)
-/*!*/;
-SET TIMESTAMP=10000/*!*/;
-COMMIT
-/*!*/;
-DELIMITER ;
-# End of log file
-ROLLBACK /* added by mysqlbinlog */;
-/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
-/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
-drop table t1;
diff --git a/mysql-test/r/user_var.result b/mysql-test/r/user_var.result
deleted file mode 100644
index bf3d4f6dada..00000000000
--- a/mysql-test/r/user_var.result
+++ /dev/null
@@ -1,593 +0,0 @@
-set @a := foo;
-ERROR 42S22: Unknown column 'foo' in 'field list'
-set @a := connection_id() + 3;
-select @a - connection_id();
-@a - connection_id()
-3
-set @b := 1;
-select @b;
-@b
-1
-CREATE TABLE t1 ( i int not null, v int not null,index (i));
-insert into t1 values (1,1),(1,3),(2,1);
-create table t2 (i int not null, unique (i));
-insert into t2 select distinct i from t1;
-select * from t2;
-i
-1
-2
-select distinct t2.i,@vv1:=if(sv1.i,1,0),@vv2:=if(sv2.i,1,0),@vv3:=if(sv3.i,1,0), @vv1+@vv2+@vv3 from t2 left join t1 as sv1 on sv1.i=t2.i and sv1.v=1 left join t1 as sv2 on sv2.i=t2.i and sv2.v=2 left join t1 as sv3 on sv3.i=t2.i and sv3.v=3;
-i @vv1:=if(sv1.i,1,0) @vv2:=if(sv2.i,1,0) @vv3:=if(sv3.i,1,0) @vv1+@vv2+@vv3
-1 1 0 1 2
-2 1 0 0 1
-explain select * from t1 where i=@vv1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref i i 4 const 1
-select @vv1,i,v from t1 where i=@vv1;
-@vv1 i v
-1 1 1
-1 1 3
-explain select * from t1 where @vv1:=@vv1+1 and i=@vv1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
-explain select @vv1:=i from t1 where i=@vv1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL i 4 NULL 3 Using where; Using index
-explain select * from t1 where i=@vv1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref i i 4 const 1
-drop table t1,t2;
-set @a=0,@b=0;
-select @a:=10, @b:=1, @a > @b, @a < @b;
-@a:=10 @b:=1 @a > @b @a < @b
-10 1 1 0
-select @a:="10", @b:="1", @a > @b, @a < @b;
-@a:="10" @b:="1" @a > @b @a < @b
-10 1 1 0
-select @a:=10, @b:=2, @a > @b, @a < @b;
-@a:=10 @b:=2 @a > @b @a < @b
-10 2 0 1
-select @a:="10", @b:="2", @a > @b, @a < @b;
-@a:="10" @b:="2" @a > @b @a < @b
-10 2 1 0
-select @a:=1;
-@a:=1
-1
-select @a, @a:=1;
-@a @a:=1
-1 1
-create table t1 (id int, d double, c char(10));
-insert into t1 values (1,2.0, "test");
-select @c:=0;
-@c:=0
-0
-update t1 SET id=(@c:=@c+1);
-select @c;
-@c
-1
-select @c:=0;
-@c:=0
-0
-update t1 set id=(@c:=@c+1);
-select @c;
-@c
-1
-select @c:=0;
-@c:=0
-0
-select @c:=@c+1;
-@c:=@c+1
-1
-select @d,(@d:=id),@d from t1;
-@d (@d:=id) @d
-NULL 1 1
-select @e,(@e:=d),@e from t1;
-@e (@e:=d) @e
-NULL 2 2
-select @f,(@f:=c),@f from t1;
-@f (@f:=c) @f
-NULL test test
-set @g=1;
-select @g,(@g:=c),@g from t1;
-@g (@g:=c) @g
-1 test 0
-select @c, @d, @e, @f;
-@c @d @e @f
-1 1 2 test
-select @d:=id, @e:=id, @f:=id, @g:=@id from t1;
-@d:=id @e:=id @f:=id @g:=@id
-1 1 1 NULL
-select @c, @d, @e, @f, @g;
-@c @d @e @f @g
-1 1 1 1 NULL
-drop table t1;
-select @a:=10, @b:=2, @a>@b, @a:="10", @b:="2", @a>@b, @a:=10, @b:=2, @a>@b, @a:="10", @b:="2", @a>@b;
-@a:=10 @b:=2 @a>@b @a:="10" @b:="2" @a>@b @a:=10 @b:=2 @a>@b @a:="10" @b:="2" @a>@b
-10 2 1 10 2 1 10 2 1 10 2 1
-create table t1 (i int not null);
-insert t1 values (1),(2),(2),(3),(3),(3);
-select @a:=0;
-@a:=0
-0
-select @a, @a:=@a+count(*), count(*), @a from t1 group by i;
-@a @a:=@a+count(*) count(*) @a
-0 1 1 0
-0 2 2 0
-0 3 3 0
-select @a:=0;
-@a:=0
-0
-select @a+0, @a:=@a+0+count(*), count(*), @a+0 from t1 group by i;
-@a+0 @a:=@a+0+count(*) count(*) @a+0
-0 1 1 0
-0 2 2 0
-0 3 3 0
-set @a=0;
-select @a,@a:="hello",@a,@a:=3,@a,@a:="hello again" from t1 group by i;
-@a @a:="hello" @a @a:=3 @a @a:="hello again"
-0 hello 0 3 0 hello again
-0 hello 0 3 0 hello again
-0 hello 0 3 0 hello again
-select @a,@a:="hello",@a,@a:=3,@a,@a:="hello again" from t1 group by i;
-@a @a:="hello" @a @a:=3 @a @a:="hello again"
-hello again hello hello again 3 hello again hello again
-hello again hello hello again 3 hello again hello again
-hello again hello hello again 3 hello again hello again
-drop table t1;
-set @a=_latin2'test';
-select charset(@a),collation(@a),coercibility(@a);
-charset(@a) collation(@a) coercibility(@a)
-latin2 latin2_general_ci 2
-select @a=_latin2'TEST';
-@a=_latin2'TEST'
-1
-select @a=_latin2'TEST' collate latin2_bin;
-@a=_latin2'TEST' collate latin2_bin
-0
-set @a=_latin2'test' collate latin2_general_ci;
-select charset(@a),collation(@a),coercibility(@a);
-charset(@a) collation(@a) coercibility(@a)
-latin2 latin2_general_ci 2
-select @a=_latin2'TEST';
-@a=_latin2'TEST'
-1
-select @a=_latin2'TEST' collate latin2_bin;
-@a=_latin2'TEST' collate latin2_bin
-0
-select charset(@a:=_latin2'test');
-charset(@a:=_latin2'test')
-latin2
-select collation(@a:=_latin2'test');
-collation(@a:=_latin2'test')
-latin2_general_ci
-select coercibility(@a:=_latin2'test');
-coercibility(@a:=_latin2'test')
-2
-select collation(@a:=_latin2'test' collate latin2_bin);
-collation(@a:=_latin2'test' collate latin2_bin)
-latin2_bin
-select coercibility(@a:=_latin2'test' collate latin2_bin);
-coercibility(@a:=_latin2'test' collate latin2_bin)
-2
-select (@a:=_latin2'test' collate latin2_bin) = _latin2'TEST';
-(@a:=_latin2'test' collate latin2_bin) = _latin2'TEST'
-0
-select charset(@a),collation(@a),coercibility(@a);
-charset(@a) collation(@a) coercibility(@a)
-latin2 latin2_bin 2
-select (@a:=_latin2'test' collate latin2_bin) = _latin2'TEST' collate latin2_general_ci;
-(@a:=_latin2'test' collate latin2_bin) = _latin2'TEST' collate latin2_general_ci
-1
-set @var= NULL ;
-select FIELD( @var,'1it','Hit') as my_column;
-my_column
-0
-select @v, coercibility(@v);
-@v coercibility(@v)
-NULL 2
-set @v1=null, @v2=1, @v3=1.1, @v4=now();
-select coercibility(@v1),coercibility(@v2),coercibility(@v3),coercibility(@v4);
-coercibility(@v1) coercibility(@v2) coercibility(@v3) coercibility(@v4)
-2 2 2 2
-set session @honk=99;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@honk=99' at line 1
-select @@local.max_allowed_packet;
-@@local.max_allowed_packet
-#
-select @@session.max_allowed_packet;
-@@session.max_allowed_packet
-#
-select @@global.max_allowed_packet;
-@@global.max_allowed_packet
-#
-select @@max_allowed_packet;
-@@max_allowed_packet
-#
-select @@Max_Allowed_Packet;
-@@Max_Allowed_Packet
-#
-select @@version;
-@@version
-#
-select @@global.version;
-@@global.version
-#
-End of 4.1 tests
-set @first_var= NULL;
-create table t1 select @first_var;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `@first_var` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @first_var= cast(NULL as signed integer);
-create table t1 select @first_var;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `@first_var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @first_var= NULL;
-create table t1 select @first_var;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `@first_var` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @first_var= concat(NULL);
-create table t1 select @first_var;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `@first_var` longblob DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @first_var=1;
-set @first_var= cast(NULL as CHAR);
-create table t1 select @first_var;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `@first_var` longtext DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @a=18446744071710965857;
-select @a;
-@a
-18446744071710965857
-CREATE TABLE `bigfailure` (
-`afield` BIGINT UNSIGNED NOT NULL
-);
-INSERT INTO `bigfailure` VALUES (18446744071710965857);
-SELECT * FROM bigfailure;
-afield
-18446744071710965857
-select * from (SELECT afield FROM bigfailure) as b;
-afield
-18446744071710965857
-select * from bigfailure where afield = (SELECT afield FROM bigfailure);
-afield
-18446744071710965857
-select * from bigfailure where afield = 18446744071710965857;
-afield
-18446744071710965857
-select * from bigfailure where afield = 18446744071710965856+1;
-afield
-18446744071710965857
-SET @a := (SELECT afield FROM bigfailure);
-SELECT @a;
-@a
-18446744071710965857
-SET @a := (select afield from (SELECT afield FROM bigfailure) as b);
-SELECT @a;
-@a
-18446744071710965857
-SET @a := (select * from bigfailure where afield = (SELECT afield FROM bigfailure));
-SELECT @a;
-@a
-18446744071710965857
-drop table bigfailure;
-create table t1(f1 int, f2 int);
-insert into t1 values (1,2),(2,3),(3,1);
-select @var:=f2 from t1 group by f1 order by f2 desc limit 1;
-@var:=f2
-3
-select @var;
-@var
-3
-create table t2 as select @var:=f2 from t1 group by f1 order by f2 desc limit 1;
-select * from t2;
-@var:=f2
-3
-select @var;
-@var
-3
-drop table t1,t2;
-insert into city 'blah';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''blah'' at line 1
-SHOW COUNT(*) WARNINGS;
-@@session.warning_count
-1
-SHOW COUNT(*) ERRORS;
-@@session.error_count
-1
-create table t1(f1 int, f2 varchar(2), f3 float, f4 decimal(2,1));
-insert into t1 values
-(1, "a", 1.5, 1.6), (1, "a", 1.5, 1.6), (2, "b", 2.5, 2.6),
-(3, "c", 3.5, 3.6), (4, "d", 4.5, 4.6), (1, "a", 1.5, 1.6),
-(3, "c", 3.5, 3.6), (1, "a", 1.5, 1.6);
-select @a:=f1, count(f1) from t1 group by 1 desc;
-@a:=f1 count(f1)
-4 1
-3 2
-2 1
-1 4
-select @a:=f1, count(f1) from t1 group by 1 asc;
-@a:=f1 count(f1)
-1 4
-2 1
-3 2
-4 1
-select @a:=f2, count(f2) from t1 group by 1 desc;
-@a:=f2 count(f2)
-d 1
-c 2
-b 1
-a 4
-select @a:=f3, count(f3) from t1 group by 1 desc;
-@a:=f3 count(f3)
-4.5 1
-3.5 2
-2.5 1
-1.5 4
-select @a:=f4, count(f4) from t1 group by 1 desc;
-@a:=f4 count(f4)
-4.6 1
-3.6 2
-2.6 1
-1.6 4
-drop table t1;
-create table t1 (f1 int);
-insert into t1 values (2), (1);
-select @i := f1 as j from t1 order by 1;
-j
-1
-2
-drop table t1;
-create table t1(a int);
-insert into t1 values(5),(4),(4),(3),(2),(2),(2),(1);
-set @rownum := 0;
-set @rank := 0;
-set @prev_score := NULL;
-select @rownum := @rownum + 1 as row,
-@rank := IF(@prev_score!=a, @rownum, @rank) as rank,
-@prev_score := a as score
-from t1 order by score desc;
-drop table t1;
-create table t1(b bigint);
-insert into t1 (b) values (10), (30), (10);
-set @var := 0;
-select if(b=@var, 999, b) , @var := b from t1 order by b;
-if(b=@var, 999, b) @var := b
-10 10
-999 10
-30 30
-drop table t1;
-create temporary table t1 (id int);
-insert into t1 values (2), (3), (3), (4);
-set @lastid=-1;
-select @lastid != id, @lastid, @lastid := id from t1;
-@lastid != id @lastid @lastid := id
-1 -1 2
-1 2 3
-0 3 3
-1 3 4
-drop table t1;
-create temporary table t1 (id bigint);
-insert into t1 values (2), (3), (3), (4);
-set @lastid=-1;
-select @lastid != id, @lastid, @lastid := id from t1;
-@lastid != id @lastid @lastid := id
-1 -1 2
-1 2 3
-0 3 3
-1 3 4
-drop table t1;
-CREATE TABLE t1(a INT, b INT);
-INSERT INTO t1 VALUES (0, 0), (2, 1), (2, 3), (1, 1), (30, 20);
-SELECT a, b INTO @a, @b FROM t1 WHERE a=2 AND b=3 GROUP BY a, b;
-SELECT @a, @b;
-@a @b
-2 3
-SELECT a, b FROM t1 WHERE a=2 AND b=3 GROUP BY a, b;
-a b
-2 3
-DROP TABLE t1;
-CREATE TABLE t1 (f1 int(11) default NULL, f2 int(11) default NULL);
-CREATE TABLE t2 (f1 int(11) default NULL, f2 int(11) default NULL, foo int(11));
-CREATE TABLE t3 (f1 int(11) default NULL, f2 int(11) default NULL);
-INSERT INTO t1 VALUES(10, 10);
-INSERT INTO t1 VALUES(10, 10);
-INSERT INTO t2 VALUES(10, 10, 10);
-INSERT INTO t2 VALUES(10, 10, 10);
-INSERT INTO t3 VALUES(10, 10);
-INSERT INTO t3 VALUES(10, 10);
-SELECT MIN(t2.f1),
-@bar:= (SELECT MIN(t3.f2) FROM t3 WHERE t3.f2 > foo)
-FROM t1,t2 WHERE t1.f1 = t2.f1 ORDER BY t2.f1;
-MIN(t2.f1) @bar:= (SELECT MIN(t3.f2) FROM t3 WHERE t3.f2 > foo)
-10 NULL
-DROP TABLE t1, t2, t3;
-End of 5.0 tests
-CREATE TABLE t1 (i INT);
-CREATE TRIGGER t_after_insert AFTER INSERT ON t1 FOR EACH ROW SET @bug42188 = 10;
-INSERT INTO t1 VALUES (1);
-INSERT INTO t1 VALUES (1);
-DROP TABLE t1;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (0),(0);
-# BUG#55615 : should not crash
-SELECT (@a:=(SELECT @a:=1 FROM t1 LIMIT 1)) AND COUNT(1) FROM t1 GROUP BY @a;
-(@a:=(SELECT @a:=1 FROM t1 LIMIT 1)) AND COUNT(1)
-1
-1
-# BUG#55564 : should not crash
-SELECT IF(
-@v:=LEAST((SELECT 1 FROM t1 t2 LEFT JOIN t1 ON (@v) GROUP BY t1.a), a),
-count(*), 1)
-FROM t1 GROUP BY a LIMIT 1;
-IF(
-@v:=LEAST((SELECT 1 FROM t1 t2 LEFT JOIN t1 ON (@v) GROUP BY t1.a), a),
-count(*), 1)
-1
-DROP TABLE t1;
-select @v:=@v:=sum(1) from dual;
-@v:=@v:=sum(1)
-1
-CREATE TABLE t1(a DECIMAL(31,21));
-INSERT INTO t1 VALUES (0);
-SELECT (@v:=a) <> (@v:=1) FROM t1;
-(@v:=a) <> (@v:=1)
-1
-DROP TABLE t1;
-CREATE TABLE t1(a int);
-INSERT INTO t1 VALUES (1), (2);
-SELECT DISTINCT @a:=MIN(t1.a) FROM t1, t1 AS t2
-GROUP BY @b:=(SELECT COUNT(*) > t2.a);
-@a:=MIN(t1.a)
-1
-DROP TABLE t1;
-SET @bug12408412=1;
-SELECT GROUP_CONCAT(@bug12408412 ORDER BY 1) INTO @bug12408412;
-End of 5.1 tests
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (0);
-SELECT DISTINCT POW(COUNT(*), @a:=(SELECT 1 FROM t1 LEFT JOIN t1 AS t2 ON @a))
-AS b FROM t1 GROUP BY a;
-b
-1
-SELECT @a;
-@a
-1
-DROP TABLE t1;
-CREATE TABLE t1(f1 INT, f2 INT);
-INSERT INTO t1 VALUES (1,2),(2,3),(3,1);
-CREATE TABLE t2(a INT);
-INSERT INTO t2 VALUES (1);
-SET @var=NULL;
-SELECT @var:=(SELECT f2 FROM t2 WHERE @var) FROM t1 GROUP BY f1 ORDER BY f2 DESC
-LIMIT 1;
-@var:=(SELECT f2 FROM t2 WHERE @var)
-NULL
-SELECT @var;
-@var
-NULL
-DROP TABLE t1, t2;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (0),(1),(3);
-SELECT DISTINCT POW(COUNT(distinct a), @a:=(SELECT 1 FROM t1 LEFT JOIN t1 AS t2 ON @a limit 1)) AS b FROM t1 GROUP BY a;
-b
-1
-SELECT @a;
-@a
-1
-DROP TABLE t1;
-End of 5.2 tests
-CREATE TABLE t1(f1 INT AUTO_INCREMENT, PRIMARY KEY(f1));
-INSERT INTO t1 SET f1 = NULL ;
-SET @aux = NULL ;
-INSERT INTO t1 SET f1 = @aux ;
-SET @aux1 = 0.123E-1;
-SET @aux1 = NULL;
-INSERT INTO t1 SET f1 = @aux1 ;
-SELECT * FROM t1;
-f1
-1
-2
-3
-DROP TABLE t1;
-CREATE TABLE t1(f1 VARCHAR(257) , f2 INT, PRIMARY KEY(f2));
-CREATE TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW SET @aux = 1;
-SET @aux = 1;
-SET @aux = NULL;
-INSERT INTO test.t1 (f1, f2) VALUES (1, 1), (@aux, 2);
-SET @aux = 'text';
-SET @aux = NULL;
-INSERT INTO t1(f1, f2) VALUES (1, 3), (@aux, 4);
-SELECT f1, f2 FROM t1 ORDER BY f2;
-f1 f2
-1 1
-1 2
-1 3
-1 4
-DROP TRIGGER trg1;
-DROP TABLE t1;
-#
-# Bug #12408412: GROUP_CONCAT + ORDER BY + INPUT/OUTPUT
-# SAME USER VARIABLE = CRASH
-#
-SET @bug12408412=1;
-SELECT GROUP_CONCAT(@bug12408412 ORDER BY 1) INTO @bug12408412;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (0);
-SELECT DISTINCT POW(COUNT(*), @a:=(SELECT 1 FROM t1 LEFT JOIN t1 AS t2 ON @a))
-AS b FROM t1 GROUP BY a;
-b
-1
-SELECT @a;
-@a
-1
-DROP TABLE t1;
-CREATE TABLE t1(f1 INT, f2 INT);
-INSERT INTO t1 VALUES (1,2),(2,3),(3,1);
-CREATE TABLE t2(a INT);
-INSERT INTO t2 VALUES (1);
-SET @var=NULL;
-SELECT @var:=(SELECT f2 FROM t2 WHERE @var) FROM t1 GROUP BY f1 ORDER BY f2 DESC
-LIMIT 1;
-@var:=(SELECT f2 FROM t2 WHERE @var)
-NULL
-SELECT @var;
-@var
-NULL
-DROP TABLE t1, t2;
-CREATE TABLE t1(a INT);
-INSERT INTO t1 VALUES (0),(1),(3);
-SELECT DISTINCT POW(COUNT(distinct a), @a:=(SELECT 1 FROM t1 LEFT JOIN t1 AS t2 ON @a limit 1)) AS b FROM t1 GROUP BY a;
-b
-1
-SELECT @a;
-@a
-1
-DROP TABLE t1;
-End of 5.5 tests
-#
-# Check that used memory extends if we set a variable
-#
-set @var= repeat('a',20000);
-1
-explain select @a:=max(seq) from seq_1_to_1000000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-12859 Out-of-range error for CREATE..SELECT @a:=EXTRACT(MINUTE_MICROSECOND FROM..
-#
-SET sql_mode=STRICT_ALL_TABLES;
-CREATE OR REPLACE TABLE t1 AS
-SELECT @a:=EXTRACT(MINUTE_MICROSECOND FROM '2001-01-01 11:22:33.999999') AS c1;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` bigint(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-c1
-2233999999
-DROP TABLE t1;
-SET sql_mode=DEFAULT;
diff --git a/mysql-test/r/userstat-badlogin-4824.result b/mysql-test/r/userstat-badlogin-4824.result
deleted file mode 100644
index 6a38c2bd601..00000000000
--- a/mysql-test/r/userstat-badlogin-4824.result
+++ /dev/null
@@ -1,21 +0,0 @@
-create user foo@localhost identified by 'foo';
-flush user_statistics;
-set global userstat=1;
-connect foo, localhost, foo, foo;
-select 1;
-1
-1
-disconnect foo;
-connection default;
-select user, bytes_received from information_schema.user_statistics where user = 'foo';
-user bytes_received
-foo 18
-connect(localhost,foo,bar,test,MASTER_PORT,MASTER_SOCKET);
-connect foo, localhost, foo, bar;
-ERROR 28000: Access denied for user 'foo'@'localhost' (using password: YES)
-connection default;
-select user, bytes_received from information_schema.user_statistics where user = 'foo';
-user bytes_received
-foo 18
-drop user foo@localhost;
-set global userstat=0;
diff --git a/mysql-test/r/userstat.result b/mysql-test/r/userstat.result
deleted file mode 100644
index 1db891e0184..00000000000
--- a/mysql-test/r/userstat.result
+++ /dev/null
@@ -1,233 +0,0 @@
-DROP TABLE IF EXISTS t1;
-select variable_value from information_schema.global_status where variable_name="handler_read_key" into @global_read_key;
-show columns from information_schema.client_statistics;
-Field Type Null Key Default Extra
-CLIENT varchar(64) NO
-TOTAL_CONNECTIONS bigint(21) NO 0
-CONCURRENT_CONNECTIONS bigint(21) NO 0
-CONNECTED_TIME bigint(21) NO 0
-BUSY_TIME double NO 0
-CPU_TIME double NO 0
-BYTES_RECEIVED bigint(21) NO 0
-BYTES_SENT bigint(21) NO 0
-BINLOG_BYTES_WRITTEN bigint(21) NO 0
-ROWS_READ bigint(21) NO 0
-ROWS_SENT bigint(21) NO 0
-ROWS_DELETED bigint(21) NO 0
-ROWS_INSERTED bigint(21) NO 0
-ROWS_UPDATED bigint(21) NO 0
-SELECT_COMMANDS bigint(21) NO 0
-UPDATE_COMMANDS bigint(21) NO 0
-OTHER_COMMANDS bigint(21) NO 0
-COMMIT_TRANSACTIONS bigint(21) NO 0
-ROLLBACK_TRANSACTIONS bigint(21) NO 0
-DENIED_CONNECTIONS bigint(21) NO 0
-LOST_CONNECTIONS bigint(21) NO 0
-ACCESS_DENIED bigint(21) NO 0
-EMPTY_QUERIES bigint(21) NO 0
-TOTAL_SSL_CONNECTIONS bigint(21) unsigned NO 0
-MAX_STATEMENT_TIME_EXCEEDED bigint(21) NO 0
-show columns from information_schema.user_statistics;
-Field Type Null Key Default Extra
-USER varchar(128) NO
-TOTAL_CONNECTIONS int(11) NO 0
-CONCURRENT_CONNECTIONS int(11) NO 0
-CONNECTED_TIME int(11) NO 0
-BUSY_TIME double NO 0
-CPU_TIME double NO 0
-BYTES_RECEIVED bigint(21) NO 0
-BYTES_SENT bigint(21) NO 0
-BINLOG_BYTES_WRITTEN bigint(21) NO 0
-ROWS_READ bigint(21) NO 0
-ROWS_SENT bigint(21) NO 0
-ROWS_DELETED bigint(21) NO 0
-ROWS_INSERTED bigint(21) NO 0
-ROWS_UPDATED bigint(21) NO 0
-SELECT_COMMANDS bigint(21) NO 0
-UPDATE_COMMANDS bigint(21) NO 0
-OTHER_COMMANDS bigint(21) NO 0
-COMMIT_TRANSACTIONS bigint(21) NO 0
-ROLLBACK_TRANSACTIONS bigint(21) NO 0
-DENIED_CONNECTIONS bigint(21) NO 0
-LOST_CONNECTIONS bigint(21) NO 0
-ACCESS_DENIED bigint(21) NO 0
-EMPTY_QUERIES bigint(21) NO 0
-TOTAL_SSL_CONNECTIONS bigint(21) unsigned NO 0
-MAX_STATEMENT_TIME_EXCEEDED bigint(21) NO 0
-show columns from information_schema.index_statistics;
-Field Type Null Key Default Extra
-TABLE_SCHEMA varchar(192) NO
-TABLE_NAME varchar(192) NO
-INDEX_NAME varchar(192) NO
-ROWS_READ bigint(21) NO 0
-show columns from information_schema.table_statistics;
-Field Type Null Key Default Extra
-TABLE_SCHEMA varchar(192) NO
-TABLE_NAME varchar(192) NO
-ROWS_READ bigint(21) NO 0
-ROWS_CHANGED bigint(21) NO 0
-ROWS_CHANGED_X_INDEXES bigint(21) NO 0
-set @save_general_log=@@global.general_log;
-set @@global.general_log=0;
-set @@global.userstat=1;
-flush status;
-create table t1 (a int, primary key (a), b int default 0) engine=innodb;
-insert into t1 (a) values (1),(2),(3),(4);
-update t1 set b=1;
-update t1 set b=5 where a=2;
-delete from t1 where a=3;
-/* Empty query */
-select * from t1 where a=999;
-a b
-drop table t1;
-connect ssl_con,localhost,root,,,,,SSL;
-SELECT (VARIABLE_VALUE <> '') AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher';
-have_ssl
-1
-connection default;
-create table t1 (a int, primary key (a), b int default 0) engine=innodb;
-begin;
-insert into t1 values(1,1);
-commit;
-begin;
-insert into t1 values(2,2);
-commit;
-begin;
-insert into t1 values(3,3);
-rollback;
-drop table t1;
-select sleep(1);
-sleep(1)
-0
-show status like "rows%";
-Variable_name Value
-Rows_read 6
-Rows_sent 1
-Rows_tmp_read 0
-show status like "ha%";
-Variable_name Value
-Handler_commit 19
-Handler_delete 1
-Handler_discover 0
-Handler_external_lock 0
-Handler_icp_attempts 0
-Handler_icp_match 0
-Handler_mrr_init 0
-Handler_mrr_key_refills 0
-Handler_mrr_rowid_refills 0
-Handler_prepare 18
-Handler_read_first 0
-Handler_read_key 9
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 5
-Handler_rollback 2
-Handler_savepoint 0
-Handler_savepoint_rollback 0
-Handler_tmp_delete 0
-Handler_tmp_update 0
-Handler_tmp_write 0
-Handler_update 5
-Handler_write 7
-select variable_value - @global_read_key as "handler_read_key" from information_schema.global_status where variable_name="handler_read_key";
-handler_read_key
-9
-disconnect ssl_con;
-set @@global.userstat=0;
-select * from information_schema.index_statistics;
-TABLE_SCHEMA TABLE_NAME INDEX_NAME ROWS_READ
-select * from information_schema.table_statistics;
-TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES
-show table_statistics;
-Table_schema Table_name Rows_read Rows_changed Rows_changed_x_#indexes
-show index_statistics;
-Table_schema Table_name Index_name Rows_read
-select TOTAL_CONNECTIONS, TOTAL_SSL_CONNECTIONS, CONCURRENT_CONNECTIONS, ROWS_READ, ROWS_SENT, ROWS_DELETED, ROWS_INSERTED, ROWS_UPDATED, SELECT_COMMANDS, UPDATE_COMMANDS, OTHER_COMMANDS, COMMIT_TRANSACTIONS, ROLLBACK_TRANSACTIONS, DENIED_CONNECTIONS, LOST_CONNECTIONS, ACCESS_DENIED, EMPTY_QUERIES from information_schema.client_statistics;;
-TOTAL_CONNECTIONS 2
-TOTAL_SSL_CONNECTIONS 1
-CONCURRENT_CONNECTIONS 0
-ROWS_READ 6
-ROWS_SENT 3
-ROWS_DELETED 1
-ROWS_INSERTED 7
-ROWS_UPDATED 5
-SELECT_COMMANDS 4
-UPDATE_COMMANDS 11
-OTHER_COMMANDS 7
-COMMIT_TRANSACTIONS 19
-ROLLBACK_TRANSACTIONS 2
-DENIED_CONNECTIONS 0
-LOST_CONNECTIONS 0
-ACCESS_DENIED 0
-EMPTY_QUERIES 1
-select TOTAL_CONNECTIONS, TOTAL_SSL_CONNECTIONS, CONCURRENT_CONNECTIONS, ROWS_READ, ROWS_SENT, ROWS_DELETED, ROWS_INSERTED, ROWS_UPDATED, SELECT_COMMANDS, UPDATE_COMMANDS, OTHER_COMMANDS, COMMIT_TRANSACTIONS, ROLLBACK_TRANSACTIONS, DENIED_CONNECTIONS, LOST_CONNECTIONS, ACCESS_DENIED, EMPTY_QUERIES from information_schema.user_statistics;;
-TOTAL_CONNECTIONS 2
-TOTAL_SSL_CONNECTIONS 1
-CONCURRENT_CONNECTIONS 0
-ROWS_READ 6
-ROWS_SENT 3
-ROWS_DELETED 1
-ROWS_INSERTED 7
-ROWS_UPDATED 5
-SELECT_COMMANDS 4
-UPDATE_COMMANDS 11
-OTHER_COMMANDS 7
-COMMIT_TRANSACTIONS 19
-ROLLBACK_TRANSACTIONS 2
-DENIED_CONNECTIONS 0
-LOST_CONNECTIONS 0
-ACCESS_DENIED 0
-EMPTY_QUERIES 1
-flush table_statistics;
-flush index_statistics;
-select * from information_schema.index_statistics;
-TABLE_SCHEMA TABLE_NAME INDEX_NAME ROWS_READ
-select * from information_schema.table_statistics;
-TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES
-show status like "%generic%";
-Variable_name Value
-Com_show_generic 2
-select connected_time <> 0, busy_time <> 0, bytes_received <> 0,
-bytes_sent <> 0, binlog_bytes_written <> 0
-from information_schema.user_statistics;
-connected_time <> 0 busy_time <> 0 bytes_received <> 0 bytes_sent <> 0 binlog_bytes_written <> 0
-1 1 1 1 1
-select connected_time <> 0, busy_time <> 0, bytes_received <> 0,
-bytes_sent <> 0, binlog_bytes_written <> 0
-from information_schema.client_statistics;
-connected_time <> 0 busy_time <> 0 bytes_received <> 0 bytes_sent <> 0 binlog_bytes_written <> 0
-1 1 1 1 1
-create table t1 (a int) engine=innodb;
-select @@in_transaction;
-@@in_transaction
-0
-begin;
-select @@in_transaction;
-@@in_transaction
-1
-insert into t1 values (1);
-select @@in_transaction;
-@@in_transaction
-1
-commit;
-select @@in_transaction;
-@@in_transaction
-0
-set @@autocommit=0;
-select @@in_transaction;
-@@in_transaction
-0
-insert into t1 values (2);
-select @@in_transaction;
-@@in_transaction
-1
-set @@autocommit=1;
-select @@in_transaction;
-@@in_transaction
-0
-drop table t1;
-set @@global.general_log=@save_general_log;
diff --git a/mysql-test/r/varbinary.result b/mysql-test/r/varbinary.result
deleted file mode 100644
index 58cab5ad1ca..00000000000
--- a/mysql-test/r/varbinary.result
+++ /dev/null
@@ -1,183 +0,0 @@
-drop table if exists t1;
-select 0x41,0x41+0,0x41 | 0x7fffffffffffffff | 0,0xffffffffffffffff | 0 ;
-0x41 0x41+0 0x41 | 0x7fffffffffffffff | 0 0xffffffffffffffff | 0
-A 65 9223372036854775807 18446744073709551615
-select 0x31+1,concat(0x31)+1,-0xf;
-0x31+1 concat(0x31)+1 -0xf
-50 2 -15
-select x'31',0xffff+0;
-x'31' 0xffff+0
-1 65535
-select X'FFFF'+0;
-X'FFFF'+0
-0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '\xFF\xFF'
-SELECT x'31'+0, 0x31+0;
-x'31'+0 0x31+0
-1 49
-SELECT x'31'+0.1e0, 0x31+0.1e0;
-x'31'+0.1e0 0x31+0.1e0
-1.1 49.1
-SELECT x'312E39'+0e0, 0x312E39+0e0;
-x'312E39'+0e0 0x312E39+0e0
-1.9 3223097
-SELECT CAST(x'31' AS SIGNED), CAST(0x31 AS SIGNED);
-CAST(x'31' AS SIGNED) CAST(0x31 AS SIGNED)
-1 49
-SELECT CAST(x'31' AS DECIMAL(10,1)), CAST(0x31 AS DECIMAL(10,1));
-CAST(x'31' AS DECIMAL(10,1)) CAST(0x31 AS DECIMAL(10,1))
-1.0 49.0
-SELECT CAST(x'312E39' AS SIGNED), CAST(0x312E39 AS SIGNED);
-CAST(x'312E39' AS SIGNED) CAST(0x312E39 AS SIGNED)
-1 3223097
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1.9'
-SELECT CAST(x'312E39' AS DECIMAL(10,1)), CAST(0x312E39 AS DECIMAL(10,1));
-CAST(x'312E39' AS DECIMAL(10,1)) CAST(0x312E39 AS DECIMAL(10,1))
-1.9 3223097.0
-EXPLAIN EXTENDED SELECT X'FFFF', 0xFFFF;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select X'ffff' AS `X'FFFF'`,0xffff AS `0xFFFF`
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (X'31'),(0x31);
-INSERT INTO t1 VALUES (X'312E39'),(0x312E39);
-SELECT * FROM t1;
-a
-1
-49
-2
-3223097
-DROP TABLE t1;
-CREATE TABLE t1 (a DECIMAL(10,1));
-INSERT INTO t1 VALUES (X'31'),(0x31);
-INSERT INTO t1 VALUES (X'312E39'),(0x312E39);
-SELECT * FROM t1;
-a
-1.0
-49.0
-1.9
-3223097.0
-DROP TABLE t1;
-create table t1 (ID int(8) unsigned zerofill not null auto_increment,UNIQ bigint(21) unsigned zerofill not null,primary key (ID),unique (UNIQ) );
-insert into t1 set UNIQ=0x38afba1d73e6a18a;
-insert into t1 set UNIQ=123;
-explain extended select * from t1 where UNIQ=0x38afba1d73e6a18a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 const UNIQ UNIQ 8 const 1 100.00
-Warnings:
-Note 1003 select 00000001 AS `ID`,004084688022709641610 AS `UNIQ` from `test`.`t1` where 1
-drop table t1;
-select x'hello';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'x'hello'' at line 1
-select 0xfg;
-ERROR 42S22: Unknown column '0xfg' in 'field list'
-create table t1 select 1 as x, 2 as xx;
-select x,xx from t1;
-x xx
-1 2
-drop table t1;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varbinary(255) DEFAULT NULL,
- `b` varchar(255) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select length(a), length(b) from t1;
-length(a) length(b)
-255 3
-255 3
-CHECK TABLE t1 FOR UPGRADE;
-Table Op Msg_type Msg_text
-test.t1 check error Upgrade required. Please do "REPAIR TABLE `t1`" or dump/reload to fix it!
-REPAIR TABLE t1;
-Table Op Msg_type Msg_text
-test.t1 repair status OK
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` varbinary(255) DEFAULT NULL,
- `b` varchar(255) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-select length(a), length(b) from t1;
-length(a) length(b)
-3 3
-3 3
-insert into t1 values("ccc", "ddd");
-select length(a), length(b) from t1;
-length(a) length(b)
-3 3
-3 3
-3 3
-select hex(a), hex(b) from t1;
-hex(a) hex(b)
-616161 636363
-626262 646464
-636363 646464
-select concat("'", a, "'"), concat("'", b, "'") from t1;
-concat("'", a, "'") concat("'", b, "'")
-'aaa' 'ccc'
-'bbb' 'ddd'
-'ccc' 'ddd'
-drop table t1;
-create table t1(a varbinary(255));
-insert into t1 values("aaa ");
-select length(a) from t1;
-length(a)
-6
-alter table t1 modify a varchar(255);
-select length(a) from t1;
-length(a)
-6
-drop table t1;
-drop table if exists table_28127_a;
-drop table if exists table_28127_b;
-create table table_28127_a(0b02 int);
-show create table table_28127_a;
-Table Create Table
-table_28127_a CREATE TABLE `table_28127_a` (
- `0b02` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-create table table_28127_b(0b2 int);
-show create table table_28127_b;
-Table Create Table
-table_28127_b CREATE TABLE `table_28127_b` (
- `0b2` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table table_28127_a;
-drop table table_28127_b;
-select 0b01000001;
-0b01000001
-A
-select 0x41;
-0x41
-A
-select b'01000001';
-b'01000001'
-A
-select x'41', 0+x'3635';
-x'41' 0+x'3635'
-A 65
-select N'abc', length(N'abc');
-abc length(N'abc')
-abc 3
-select N'', length(N'');
- length(N'')
- 0
-select '', length('');
- length('')
- 0
-select b'', 0+b'';
-b'' 0+b''
- 0
-select x'', 0+x'';
-x'' 0+x''
- 0
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-select 0x;
-ERROR 42S22: Unknown column '0x' in 'field list'
-select 0b;
-ERROR 42S22: Unknown column '0b' in 'field list'
diff --git a/mysql-test/r/variables-notembedded.result b/mysql-test/r/variables-notembedded.result
deleted file mode 100644
index a8bf7ecc429..00000000000
--- a/mysql-test/r/variables-notembedded.result
+++ /dev/null
@@ -1,176 +0,0 @@
----- Init ----
-set @my_slave_net_timeout =@@global.slave_net_timeout;
----- Test ----
-set global slave_net_timeout=100;
-set global sql_slave_skip_counter=100;
-show variables like 'slave_compressed_protocol';
-Variable_name Value
-slave_compressed_protocol OFF
-show variables like 'slave_load_tmpdir';
-Variable_name Value
-slave_load_tmpdir SLAVE_LOAD_TMPDIR
-show variables like 'slave_skip_errors';
-Variable_name Value
-slave_skip_errors 0,3,100,137,643,1752
----- Clean Up ----
-set global slave_net_timeout=default;
-set global sql_slave_skip_counter= 0;
-set @@global.slave_net_timeout= @my_slave_net_timeout;
-
-#
-SHOW VARIABLES like 'log_slave_updates';
-Variable_name Value
-log_slave_updates OFF
-SELECT @@session.log_slave_updates;
-ERROR HY000: Variable 'log_slave_updates' is a GLOBAL variable
-SELECT @@global.log_slave_updates;
-@@global.log_slave_updates
-0
-SET @@session.log_slave_updates= true;
-ERROR HY000: Variable 'log_slave_updates' is a read only variable
-SET @@global.log_slave_updates= true;
-ERROR HY000: Variable 'log_slave_updates' is a read only variable
-#
-SHOW VARIABLES like 'relay_log';
-Variable_name Value
-relay_log mysqld-relay-bin
-SELECT @@session.relay_log;
-ERROR HY000: Variable 'relay_log' is a GLOBAL variable
-SELECT @@global.relay_log;
-@@global.relay_log
-mysqld-relay-bin
-SET @@session.relay_log= 'x';
-ERROR HY000: Variable 'relay_log' is a read only variable
-SET @@global.relay_log= 'x';
-ERROR HY000: Variable 'relay_log' is a read only variable
-#
-SHOW VARIABLES like 'relay_log_basename';
-Variable_name Value
-relay_log_basename MYSQLTEST_VARDIR/mysqld.1/data/mysqld-relay-bin
-SELECT @@session.relay_log_basename;
-ERROR HY000: Variable 'relay_log_basename' is a GLOBAL variable
-SELECT @@global.relay_log_basename;
-@@global.relay_log_basename
-MYSQLTEST_VARDIR/mysqld.1/data/mysqld-relay-bin
-SET @@session.relay_log_basename= 'x';
-ERROR HY000: Variable 'relay_log_basename' is a read only variable
-SET @@global.relay_log_basename= 'x';
-ERROR HY000: Variable 'relay_log_basename' is a read only variable
-#
-SHOW VARIABLES like 'log_bin_basename';
-Variable_name Value
-log_bin_basename
-SELECT @@session.log_bin_basename;
-ERROR HY000: Variable 'log_bin_basename' is a GLOBAL variable
-SELECT @@global.log_bin_basename;
-@@global.log_bin_basename
-NULL
-SET @@session.log_bin_basename= 'x';
-ERROR HY000: Variable 'log_bin_basename' is a read only variable
-SET @@global.log_bin_basename= 'x';
-ERROR HY000: Variable 'log_bin_basename' is a read only variable
-#
-SHOW VARIABLES like 'relay_log_index';
-Variable_name Value
-relay_log_index MYSQLTEST_VARDIR/mysqld.1/data/mysqld-relay-bin.index
-SELECT @@session.relay_log_index;
-ERROR HY000: Variable 'relay_log_index' is a GLOBAL variable
-SELECT @@global.relay_log_index;
-@@global.relay_log_index
-MYSQLTEST_VARDIR/mysqld.1/data/mysqld-relay-bin.index
-SET @@session.relay_log_index= 'x';
-ERROR HY000: Variable 'relay_log_index' is a read only variable
-SET @@global.relay_log_index= 'x';
-ERROR HY000: Variable 'relay_log_index' is a read only variable
-#
-SHOW VARIABLES like 'log_bin_index';
-Variable_name Value
-log_bin_index
-SELECT @@session.log_bin_index;
-ERROR HY000: Variable 'log_bin_index' is a GLOBAL variable
-SELECT @@global.log_bin_index;
-@@global.log_bin_index
-NULL
-SET @@session.log_bin_index= 'x';
-ERROR HY000: Variable 'log_bin_index' is a read only variable
-SET @@global.log_bin_index= 'x';
-ERROR HY000: Variable 'log_bin_index' is a read only variable
-#
-SHOW VARIABLES like 'relay_log_info_file';
-Variable_name Value
-relay_log_info_file relay-log.info
-SELECT @@session.relay_log_info_file;
-ERROR HY000: Variable 'relay_log_info_file' is a GLOBAL variable
-SELECT @@global.relay_log_info_file;
-@@global.relay_log_info_file
-relay-log.info
-SET @@session.relay_log_info_file= 'x';
-ERROR HY000: Variable 'relay_log_info_file' is a read only variable
-SET @@global.relay_log_info_file= 'x';
-ERROR HY000: Variable 'relay_log_info_file' is a read only variable
-#
-SHOW VARIABLES like 'relay_log_space_limit';
-Variable_name Value
-relay_log_space_limit 0
-SELECT @@session.relay_log_space_limit;
-ERROR HY000: Variable 'relay_log_space_limit' is a GLOBAL variable
-SELECT @@global.relay_log_space_limit;
-@@global.relay_log_space_limit
-0
-SET @@session.relay_log_space_limit= 7;
-ERROR HY000: Variable 'relay_log_space_limit' is a read only variable
-SET @@global.relay_log_space_limit= 7;
-ERROR HY000: Variable 'relay_log_space_limit' is a read only variable
-#
-SHOW VARIABLES like 'slave_load_tmpdir';
-Variable_name Value
-slave_load_tmpdir #
-SELECT @@session.slave_load_tmpdir;
-ERROR HY000: Variable 'slave_load_tmpdir' is a GLOBAL variable
-SELECT @@global.slave_load_tmpdir;
-@@global.slave_load_tmpdir
-#
-SET @@session.slave_load_tmpdir= 'x';
-ERROR HY000: Variable 'slave_load_tmpdir' is a read only variable
-SET @@global.slave_load_tmpdir= 'x';
-ERROR HY000: Variable 'slave_load_tmpdir' is a read only variable
-#
-SHOW VARIABLES like 'slave_skip_errors';
-Variable_name Value
-slave_skip_errors 0,3,100,137,643,1752
-SELECT @@session.slave_skip_errors;
-ERROR HY000: Variable 'slave_skip_errors' is a GLOBAL variable
-SELECT @@global.slave_skip_errors;
-@@global.slave_skip_errors
-0,3,100,137,643,1752
-SET @@session.slave_skip_errors= 7;
-ERROR HY000: Variable 'slave_skip_errors' is a read only variable
-SET @@global.slave_skip_errors= 7;
-ERROR HY000: Variable 'slave_skip_errors' is a read only variable
-#
-# Bug #11766769 : 59959: SMALL VALUES OF --MAX-ALLOWED-PACKET
-# ARE NOT BEING HONORED
-#
-CREATE TABLE t1 (a MEDIUMTEXT);
-SET GLOBAL max_allowed_packet=2048;
-Warnings:
-Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
-SET GLOBAL net_buffer_length=4096;
-Warnings:
-Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
-CONNECT con1,localhost,root,,test;
-SHOW SESSION VARIABLES LIKE 'max_allowed_packet';
-Variable_name Value
-max_allowed_packet 2048
-SHOW SESSION VARIABLES LIKE 'net_buffer_length';
-Variable_name Value
-net_buffer_length 4096
-Got one of the listed errors
-connection default;
-disconnect con1;
-SELECT LENGTH(a) FROM t1;
-LENGTH(a)
-SET GLOBAL max_allowed_packet=default;
-SET GLOBAL net_buffer_length=default;
-DROP TABLE t1;
-End of 5.1 tests
diff --git a/mysql-test/r/variables.result b/mysql-test/r/variables.result
deleted file mode 100644
index 89b2367cec8..00000000000
--- a/mysql-test/r/variables.result
+++ /dev/null
@@ -1,1828 +0,0 @@
-drop table if exists t1,t2;
-set @my_binlog_cache_size =@@global.binlog_cache_size;
-set @my_connect_timeout =@@global.connect_timeout;
-set @my_delayed_insert_timeout =@@global.delayed_insert_timeout;
-set @my_delayed_queue_size =@@global.delayed_queue_size;
-set @my_flush =@@global.flush;
-set @my_flush_time =@@global.flush_time;
-set @my_key_buffer_size =@@global.key_buffer_size;
-set @my_max_binlog_cache_size =@@global.max_binlog_cache_size;
-set @my_max_binlog_size =@@global.max_binlog_size;
-set @my_max_connect_errors =@@global.max_connect_errors;
-set @my_max_connections =@@global.max_connections;
-set @my_max_delayed_threads =@@global.max_delayed_threads;
-set @my_max_heap_table_size =@@global.max_heap_table_size;
-set @my_max_insert_delayed_threads=@@global.max_insert_delayed_threads;
-set @my_max_join_size =@@global.max_join_size;
-set @my_max_user_connections =@@global.max_user_connections;
-set @my_myisam_data_pointer_size =@@global.myisam_data_pointer_size;
-set @my_myisam_max_sort_file_size =@@global.myisam_max_sort_file_size;
-set @my_net_buffer_length =@@global.net_buffer_length;
-set @my_net_write_timeout =@@global.net_write_timeout;
-set @my_net_read_timeout =@@global.net_read_timeout;
-set @my_server_id =@@global.server_id;
-set @my_slow_launch_time =@@global.slow_launch_time;
-set @my_storage_engine =@@global.default_storage_engine;
-set @my_thread_cache_size =@@global.thread_cache_size;
-set @my_max_allowed_packet =@@global.max_allowed_packet;
-set @my_delay_key_write =@@global.delay_key_write;
-set @my_join_buffer_size =@@global.join_buffer_size;
-set @my_log_warnings =@@global.log_warnings;
-set @`test`=1;
-select @test, @`test`, @TEST, @`TEST`, @"teSt";
-@test @`test` @TEST @`TEST` @"teSt"
-1 1 1 1 1
-set @TEST=2;
-select @test, @`test`, @TEST, @`TEST`, @"teSt";
-@test @`test` @TEST @`TEST` @"teSt"
-2 2 2 2 2
-set @"tEST"=3;
-select @test, @`test`, @TEST, @`TEST`, @"teSt";
-@test @`test` @TEST @`TEST` @"teSt"
-3 3 3 3 3
-set @`TeST`=4;
-select @test, @`test`, @TEST, @`TEST`, @"teSt";
-@test @`test` @TEST @`TEST` @"teSt"
-4 4 4 4 4
-select @`teST`:=5;
-@`teST`:=5
-5
-select @test, @`test`, @TEST, @`TEST`, @"teSt";
-@test @`test` @TEST @`TEST` @"teSt"
-5 5 5 5 5
-set @select=2,@t5=1.23456;
-select @`select`,@not_used;
-@`select` @not_used
-2 NULL
-set @test_int=10,@test_double=1e-10,@test_string="abcdeghi",@test_string2="abcdefghij",@select=NULL;
-select @test_int,@test_double,@test_string,@test_string2,@select;
-@test_int @test_double @test_string @test_string2 @select
-10 0.0000000001 abcdeghi abcdefghij NULL
-set @test_int="hello",@test_double="hello",@test_string="hello",@test_string2="hello";
-select @test_int,@test_double,@test_string,@test_string2;
-@test_int @test_double @test_string @test_string2
-hello hello hello hello
-set @test_int="hellohello",@test_double="hellohello",@test_string="hellohello",@test_string2="hellohello";
-select @test_int,@test_double,@test_string,@test_string2;
-@test_int @test_double @test_string @test_string2
-hellohello hellohello hellohello hellohello
-set @test_int=null,@test_double=null,@test_string=null,@test_string2=null;
-select @test_int,@test_double,@test_string,@test_string2;
-@test_int @test_double @test_string @test_string2
-NULL NULL NULL NULL
-select @t1:=(@t2:=1)+@t3:=4,@t1,@t2,@t3;
-@t1:=(@t2:=1)+@t3:=4 @t1 @t2 @t3
-5 5 1 4
-explain extended select @t1:=(@t2:=1)+@t3:=4,@t1,@t2,@t3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select @t1:=(@t2:=1) + (@t3:=4) AS `@t1:=(@t2:=1)+@t3:=4`,@`t1` AS `@t1`,@`t2` AS `@t2`,@`t3` AS `@t3`
-select @t5;
-@t5
-1.23456
-CREATE TABLE t1 (c_id INT(4) NOT NULL, c_name CHAR(20), c_country CHAR(3), PRIMARY KEY(c_id));
-INSERT INTO t1 VALUES (1,'Bozo','USA'),(2,'Ronald','USA'),(3,'Kinko','IRE'),(4,'Mr. Floppy','GB');
-SELECT @min_cid:=min(c_id), @max_cid:=max(c_id) from t1;
-@min_cid:=min(c_id) @max_cid:=max(c_id)
-1 4
-SELECT * FROM t1 WHERE c_id=@min_cid OR c_id=@max_cid;
-c_id c_name c_country
-1 Bozo USA
-4 Mr. Floppy GB
-SELECT * FROM t1 WHERE c_id=@min_cid OR c_id=@max_cid OR c_id=666;
-c_id c_name c_country
-1 Bozo USA
-4 Mr. Floppy GB
-ALTER TABLE t1 DROP PRIMARY KEY;
-select * from t1 where c_id=@min_cid OR c_id=@max_cid;
-c_id c_name c_country
-1 Bozo USA
-4 Mr. Floppy GB
-drop table t1;
-set GLOBAL max_join_size=10;
-set max_join_size=100;
-show variables like 'max_join_size';
-Variable_name Value
-max_join_size 100
-select * from information_schema.session_variables where variable_name like 'max_join_size';
-VARIABLE_NAME VARIABLE_VALUE
-MAX_JOIN_SIZE 100
-show global variables like 'max_join_size';
-Variable_name Value
-max_join_size 10
-select * from information_schema.global_variables where variable_name like 'max_join_size';
-VARIABLE_NAME VARIABLE_VALUE
-MAX_JOIN_SIZE 10
-set GLOBAL max_join_size=2000;
-show global variables like 'max_join_size';
-Variable_name Value
-max_join_size 2000
-select * from information_schema.global_variables where variable_name like 'max_join_size';
-VARIABLE_NAME VARIABLE_VALUE
-MAX_JOIN_SIZE 2000
-set max_join_size=DEFAULT;
-show variables like 'max_join_size';
-Variable_name Value
-max_join_size 2000
-select * from information_schema.session_variables where variable_name like 'max_join_size';
-VARIABLE_NAME VARIABLE_VALUE
-MAX_JOIN_SIZE 2000
-set GLOBAL max_join_size=DEFAULT;
-show global variables like 'max_join_size';
-Variable_name Value
-max_join_size HA_POS_ERROR
-select * from information_schema.global_variables where variable_name like 'max_join_size';
-VARIABLE_NAME VARIABLE_VALUE
-MAX_JOIN_SIZE HA_POS_ERROR
-set @@max_join_size=1000, @@global.max_join_size=2000;
-select @@local.max_join_size, @@global.max_join_size;
-@@local.max_join_size @@global.max_join_size
-1000 2000
-select @@identity, length(@@version)>0;
-@@identity length(@@version)>0
-0 1
-select @@VERSION=version();
-@@VERSION=version()
-1
-select last_insert_id(345);
-last_insert_id(345)
-345
-explain extended select last_insert_id(345);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select last_insert_id(345) AS `last_insert_id(345)`
-select @@IDENTITY,last_insert_id(), @@identity;
-@@IDENTITY last_insert_id() @@identity
-345 345 345
-explain extended select @@IDENTITY,last_insert_id(), @@identity;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select @@IDENTITY AS `@@IDENTITY`,last_insert_id() AS `last_insert_id()`,@@identity AS `@@identity`
-set big_tables=OFF, big_tables=ON, big_tables=0, big_tables=1, big_tables="OFF", big_tables="ON";
-set global concurrent_insert=2;
-show variables like 'concurrent_insert';
-Variable_name Value
-concurrent_insert ALWAYS
-select * from information_schema.session_variables where variable_name like 'concurrent_insert';
-VARIABLE_NAME VARIABLE_VALUE
-CONCURRENT_INSERT ALWAYS
-set global concurrent_insert=1;
-show variables like 'concurrent_insert';
-Variable_name Value
-concurrent_insert AUTO
-select * from information_schema.session_variables where variable_name like 'concurrent_insert';
-VARIABLE_NAME VARIABLE_VALUE
-CONCURRENT_INSERT AUTO
-set global concurrent_insert=0;
-show variables like 'concurrent_insert';
-Variable_name Value
-concurrent_insert NEVER
-select * from information_schema.session_variables where variable_name like 'concurrent_insert';
-VARIABLE_NAME VARIABLE_VALUE
-CONCURRENT_INSERT NEVER
-set global concurrent_insert=DEFAULT;
-select @@concurrent_insert;
-@@concurrent_insert
-AUTO
-set global timed_mutexes=ON;
-Warnings:
-Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release
-show variables like 'timed_mutexes';
-Variable_name Value
-timed_mutexes ON
-select * from information_schema.session_variables where variable_name like 'timed_mutexes';
-VARIABLE_NAME VARIABLE_VALUE
-TIMED_MUTEXES ON
-set global timed_mutexes=0;
-Warnings:
-Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release
-show variables like 'timed_mutexes';
-Variable_name Value
-timed_mutexes OFF
-select * from information_schema.session_variables where variable_name like 'timed_mutexes';
-VARIABLE_NAME VARIABLE_VALUE
-TIMED_MUTEXES OFF
-set default_storage_engine=MYISAM, default_storage_engine="HEAP", global default_storage_engine="MERGE";
-show local variables like 'default_storage_engine';
-Variable_name Value
-default_storage_engine MEMORY
-select * from information_schema.session_variables where variable_name like 'default_storage_engine';
-VARIABLE_NAME VARIABLE_VALUE
-DEFAULT_STORAGE_ENGINE MEMORY
-show global variables like 'default_storage_engine';
-Variable_name Value
-default_storage_engine MRG_MyISAM
-select * from information_schema.global_variables where variable_name like 'default_storage_engine';
-VARIABLE_NAME VARIABLE_VALUE
-DEFAULT_STORAGE_ENGINE MRG_MyISAM
-set GLOBAL myisam_max_sort_file_size=2000000;
-Warnings:
-Warning 1292 Truncated incorrect myisam_max_sort_file_size value: '2000000'
-show global variables like 'myisam_max_sort_file_size';
-Variable_name Value
-myisam_max_sort_file_size 1048576
-select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
-VARIABLE_NAME VARIABLE_VALUE
-MYISAM_MAX_SORT_FILE_SIZE 1048576
-set GLOBAL myisam_max_sort_file_size=default;
-show global variables like 'myisam_max_sort_file_size';
-Variable_name Value
-myisam_max_sort_file_size FILE_SIZE
-select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
-VARIABLE_NAME VARIABLE_VALUE
-MYISAM_MAX_SORT_FILE_SIZE FILE_SIZE
-set global net_retry_count=10, session net_retry_count=10;
-set global net_buffer_length=1024, net_write_timeout=200, net_read_timeout=300;
-show global variables like 'net_%';
-Variable_name Value
-net_buffer_length 1024
-net_read_timeout 300
-net_retry_count 10
-net_write_timeout 200
-select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
-VARIABLE_NAME VARIABLE_VALUE
-NET_BUFFER_LENGTH 1024
-NET_READ_TIMEOUT 300
-NET_RETRY_COUNT 10
-NET_WRITE_TIMEOUT 200
-show session variables like 'net_%';
-Variable_name Value
-net_buffer_length 16384
-net_read_timeout 30
-net_retry_count 10
-net_write_timeout 60
-select * from information_schema.session_variables where variable_name like 'net_%' order by 1;
-VARIABLE_NAME VARIABLE_VALUE
-NET_BUFFER_LENGTH 16384
-NET_READ_TIMEOUT 30
-NET_RETRY_COUNT 10
-NET_WRITE_TIMEOUT 60
-set global net_buffer_length=8000, global net_read_timeout=900, net_write_timeout=1000;
-Warnings:
-Warning 1292 Truncated incorrect net_buffer_length value: '8000'
-show global variables like 'net_%';
-Variable_name Value
-net_buffer_length 7168
-net_read_timeout 900
-net_retry_count 10
-net_write_timeout 1000
-select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
-VARIABLE_NAME VARIABLE_VALUE
-NET_BUFFER_LENGTH 7168
-NET_READ_TIMEOUT 900
-NET_RETRY_COUNT 10
-NET_WRITE_TIMEOUT 1000
-set global net_buffer_length=1;
-Warnings:
-Warning 1292 Truncated incorrect net_buffer_length value: '1'
-show global variables like 'net_buffer_length';
-Variable_name Value
-net_buffer_length 1024
-select * from information_schema.global_variables where variable_name like 'net_buffer_length';
-VARIABLE_NAME VARIABLE_VALUE
-NET_BUFFER_LENGTH 1024
-set global net_buffer_length=2000000000;
-Warnings:
-Warning 1292 Truncated incorrect net_buffer_length value: '2000000000'
-show global variables like 'net_buffer_length';
-Variable_name Value
-net_buffer_length 1048576
-select * from information_schema.global_variables where variable_name like 'net_buffer_length';
-VARIABLE_NAME VARIABLE_VALUE
-NET_BUFFER_LENGTH 1048576
-set character set cp1251_koi8;
-show variables like "character_set_client";
-Variable_name Value
-character_set_client cp1251
-select * from information_schema.session_variables where variable_name like 'character_set_client';
-VARIABLE_NAME VARIABLE_VALUE
-CHARACTER_SET_CLIENT cp1251
-select @@timestamp>0;
-@@timestamp>0
-1
-set @@rand_seed1=10000000,@@rand_seed2=1000000;
-select ROUND(RAND(),5);
-ROUND(RAND(),5)
-0.02887
-
-==+ Testing %alloc% system variables +==
-==+ NOTE: These values *must* be a multiple of 1024 +==
-==+ Other values will be rounded down to nearest multiple +==
-
-==+ Show initial values +==
-SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
-'query_alloc_block_size', 'query_prealloc_size',
-'transaction_alloc_block_size', 'transaction_prealloc_size');
-Variable_name Value
-query_alloc_block_size 16384
-query_prealloc_size 24576
-range_alloc_block_size 4096
-transaction_alloc_block_size 8192
-transaction_prealloc_size 4096
-==+ information_schema data +==
-SELECT * FROM information_schema.session_variables
-WHERE variable_name IN ('range_alloc_block_size',
-'query_alloc_block_size', 'query_prealloc_size',
-'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1;
-VARIABLE_NAME VARIABLE_VALUE
-QUERY_ALLOC_BLOCK_SIZE 16384
-QUERY_PREALLOC_SIZE 24576
-RANGE_ALLOC_BLOCK_SIZE 4096
-TRANSACTION_ALLOC_BLOCK_SIZE 8192
-TRANSACTION_PREALLOC_SIZE 4096
-Testing values that are multiples of 1024
-set @@range_alloc_block_size=1024*15+1024;
-set @@query_alloc_block_size=1024*15+1024*2;
-set @@query_prealloc_size=1024*18-1024;
-set @@transaction_alloc_block_size=1024*21-1024*1;
-set @@transaction_prealloc_size=1024*21-2048;
-==+ Check manipulated values ==+
-select @@query_alloc_block_size;
-@@query_alloc_block_size
-17408
-SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
-'query_alloc_block_size', 'query_prealloc_size',
-'transaction_alloc_block_size', 'transaction_prealloc_size');
-Variable_name Value
-query_alloc_block_size 17408
-query_prealloc_size 17408
-range_alloc_block_size 16384
-transaction_alloc_block_size 20480
-transaction_prealloc_size 19456
-==+ information_schema data +==
-SELECT * FROM information_schema.session_variables
-WHERE variable_name IN ('range_alloc_block_size',
-'query_alloc_block_size', 'query_prealloc_size',
-'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1;
-VARIABLE_NAME VARIABLE_VALUE
-QUERY_ALLOC_BLOCK_SIZE 17408
-QUERY_PREALLOC_SIZE 17408
-RANGE_ALLOC_BLOCK_SIZE 16384
-TRANSACTION_ALLOC_BLOCK_SIZE 20480
-TRANSACTION_PREALLOC_SIZE 19456
-==+ Manipulate variable values +==
-Testing values that are not 1024 multiples
-set @@range_alloc_block_size=1024*16+1023;
-Warnings:
-Warning 1292 Truncated incorrect range_alloc_block_size value: '17407'
-set @@query_alloc_block_size=1024*17+2;
-Warnings:
-Warning 1292 Truncated incorrect query_alloc_block_size value: '17410'
-set @@query_prealloc_size=1024*18-1023;
-Warnings:
-Warning 1292 Truncated incorrect query_prealloc_size value: '17409'
-set @@transaction_alloc_block_size=1024*20-1;
-Warnings:
-Warning 1292 Truncated incorrect transaction_alloc_block_size value: '20479'
-set @@transaction_prealloc_size=1024*21-1;
-Warnings:
-Warning 1292 Truncated incorrect transaction_prealloc_size value: '21503'
-==+ Check manipulated values ==+
-SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
-'query_alloc_block_size', 'query_prealloc_size',
-'transaction_alloc_block_size', 'transaction_prealloc_size');
-Variable_name Value
-query_alloc_block_size 17408
-query_prealloc_size 17408
-range_alloc_block_size 16384
-transaction_alloc_block_size 19456
-transaction_prealloc_size 20480
-==+ information_schema data +==
-SELECT * FROM information_schema.session_variables
-WHERE variable_name IN ('range_alloc_block_size',
-'query_alloc_block_size', 'query_prealloc_size',
-'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1;
-VARIABLE_NAME VARIABLE_VALUE
-QUERY_ALLOC_BLOCK_SIZE 17408
-QUERY_PREALLOC_SIZE 17408
-RANGE_ALLOC_BLOCK_SIZE 16384
-TRANSACTION_ALLOC_BLOCK_SIZE 19456
-TRANSACTION_PREALLOC_SIZE 20480
-==+ Set values back to the default values +==
-set @@range_alloc_block_size=default;
-set @@query_alloc_block_size=default, @@query_prealloc_size=default;
-set transaction_alloc_block_size=default, @@transaction_prealloc_size=default;
-==+ Check the values now that they are reset +==
-SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
-'query_alloc_block_size', 'query_prealloc_size',
-'transaction_alloc_block_size', 'transaction_prealloc_size');
-Variable_name Value
-query_alloc_block_size 16384
-query_prealloc_size 24576
-range_alloc_block_size 4096
-transaction_alloc_block_size 8192
-transaction_prealloc_size 4096
-SELECT @@version LIKE 'non-existent';
-@@version LIKE 'non-existent'
-0
-SELECT @@version_compile_os LIKE 'non-existent';
-@@version_compile_os LIKE 'non-existent'
-0
-set big_tables=OFFF;
-ERROR 42000: Variable 'big_tables' can't be set to the value of 'OFFF'
-set big_tables="OFFF";
-ERROR 42000: Variable 'big_tables' can't be set to the value of 'OFFF'
-set unknown_variable=1;
-ERROR HY000: Unknown system variable 'unknown_variable'
-set max_join_size="hello";
-ERROR 42000: Incorrect argument type to variable 'max_join_size'
-set default_storage_engine=UNKNOWN_TABLE_TYPE;
-ERROR 42000: Unknown storage engine 'UNKNOWN_TABLE_TYPE'
-set default_storage_engine=MERGE, big_tables=2;
-ERROR 42000: Variable 'big_tables' can't be set to the value of '2'
-show local variables like 'default_storage_engine';
-Variable_name Value
-default_storage_engine MEMORY
-set character_set_client=UNKNOWN_CHARACTER_SET;
-ERROR 42000: Unknown character set: 'UNKNOWN_CHARACTER_SET'
-set collation_connection=UNKNOWN_COLLATION;
-ERROR HY000: Unknown collation: 'UNKNOWN_COLLATION'
-set character_set_client=NULL;
-ERROR 42000: Variable 'character_set_client' can't be set to the value of 'NULL'
-set collation_connection=NULL;
-ERROR 42000: Variable 'collation_connection' can't be set to the value of 'NULL'
-select @@global.timestamp;
-ERROR HY000: Variable 'timestamp' is a SESSION variable
-set @@version='';
-ERROR HY000: Variable 'version' is a read only variable
-set @@concurrent_insert=1;
-ERROR HY000: Variable 'concurrent_insert' is a GLOBAL variable and should be set with SET GLOBAL
-set myisam_max_sort_file_size=100;
-ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set with SET GLOBAL
-set @@SQL_WARNINGS=NULL;
-ERROR 42000: Variable 'sql_warnings' can't be set to the value of 'NULL'
-set autocommit=1;
-set big_tables=1;
-select @@autocommit, @@big_tables;
-@@autocommit @@big_tables
-1 1
-set global binlog_cache_size=100;
-Warnings:
-Warning 1292 Truncated incorrect binlog_cache_size value: '100'
-set bulk_insert_buffer_size=100;
-set character set cp1251_koi8;
-set character set default;
-set @@global.concurrent_insert=1;
-set global connect_timeout=100;
-select @@delay_key_write;
-@@delay_key_write
-ON
-set global delay_key_write="OFF";
-select @@delay_key_write;
-@@delay_key_write
-OFF
-set global delay_key_write=ALL;
-select @@delay_key_write;
-@@delay_key_write
-ALL
-set global delay_key_write=1;
-select @@delay_key_write;
-@@delay_key_write
-ON
-set global delayed_insert_limit=100;
-set global delayed_insert_timeout=100;
-set global delayed_queue_size=100;
-set global flush=1;
-set global flush_time=100;
-set insert_id=1;
-set interactive_timeout=100;
-set join_buffer_size=100;
-Warnings:
-Warning 1292 Truncated incorrect join_buffer_size value: '100'
-set last_insert_id=1;
-set global local_infile=1;
-set long_query_time=0.000001;
-select @@long_query_time;
-@@long_query_time
-0.000001
-set long_query_time=100.000001;
-select @@long_query_time;
-@@long_query_time
-100.000001
-set low_priority_updates=1;
-set global max_allowed_packet=100;
-Warnings:
-Warning 1292 Truncated incorrect max_allowed_packet value: '100'
-Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
-set global max_binlog_cache_size=100;
-Warnings:
-Warning 1292 Truncated incorrect max_binlog_cache_size value: '100'
-set global max_binlog_size=100;
-Warnings:
-Warning 1292 Truncated incorrect max_binlog_size value: '100'
-set global max_connect_errors=100;
-set global max_connections=100;
-set global max_delayed_threads=100;
-set max_heap_table_size=100;
-Warnings:
-Warning 1292 Truncated incorrect max_heap_table_size value: '100'
-set max_join_size=100;
-set max_sort_length=100;
-set global max_user_connections=100;
-select @@max_user_connections;
-@@max_user_connections
-100
-set global max_write_lock_count=100;
-set myisam_sort_buffer_size=100;
-Warnings:
-Warning 1292 Truncated incorrect myisam_sort_buffer_size value: '100'
-set global net_buffer_length=100;
-Warnings:
-Warning 1292 Truncated incorrect net_buffer_length value: '100'
-set net_read_timeout=100;
-set net_write_timeout=100;
-set read_buffer_size=100;
-Warnings:
-Warning 1292 Truncated incorrect read_buffer_size value: '100'
-set read_rnd_buffer_size=100;
-set global server_id=100;
-set global slow_launch_time=100;
-set sort_buffer_size=100;
-Warnings:
-Warning 1292 Truncated incorrect sort_buffer_size value: '100'
-set @@max_sp_recursion_depth=10;
-select @@max_sp_recursion_depth;
-@@max_sp_recursion_depth
-10
-set @@max_sp_recursion_depth=0;
-select @@max_sp_recursion_depth;
-@@max_sp_recursion_depth
-0
-set sql_auto_is_null=1;
-select @@sql_auto_is_null;
-@@sql_auto_is_null
-1
-set @@sql_auto_is_null=0;
-select @@sql_auto_is_null;
-@@sql_auto_is_null
-0
-set sql_big_selects=1;
-set sql_buffer_result=1;
-set sql_log_bin=1;
-set sql_log_off=1;
-set sql_quote_show_create=1;
-set sql_safe_updates=1;
-set sql_select_limit=1;
-set sql_select_limit=default;
-set sql_warnings=1;
-set global table_open_cache=100;
-set default_storage_engine=myisam;
-set global thread_cache_size=100;
-set timestamp=1, timestamp=default;
-set tmp_table_size=1024;
-set tx_isolation="READ-COMMITTED";
-set wait_timeout=100;
-set log_warnings=1;
-set global log_warnings=1;
-select @@session.insert_id;
-@@session.insert_id
-1
-set @save_insert_id=@@session.insert_id;
-set session insert_id=20;
-select @@session.insert_id;
-@@session.insert_id
-20
-set session last_insert_id=100;
-select @@session.insert_id;
-@@session.insert_id
-20
-select @@session.last_insert_id;
-@@session.last_insert_id
-100
-select @@session.insert_id;
-@@session.insert_id
-20
-set @@session.insert_id=@save_insert_id;
-select @@session.insert_id;
-@@session.insert_id
-1
-create table t1 (a int not null auto_increment, primary key(a));
-create table t2 (a int not null auto_increment, primary key(a));
-insert into t1 values(null),(null),(null);
-insert into t2 values(null),(null),(null);
-set global key_buffer_size=100000;
-Warnings:
-Warning 1292 Truncated incorrect key_buffer_size value: '100000'
-select @@key_buffer_size;
-@@key_buffer_size
-98304
-select * from t1 where a=2;
-a
-2
-select * from t2 where a=3;
-a
-3
-check table t1,t2;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-test.t2 check status OK
-select max(a) +1, max(a) +2 into @xx,@yy from t1;
-drop table t1,t2;
-select @@xxxxxxxxxx;
-ERROR HY000: Unknown system variable 'xxxxxxxxxx'
-select 1;
-1
-1
-select @@session.key_buffer_size;
-ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable
-set ft_boolean_syntax = @@init_connect;
-ERROR HY000: Variable 'ft_boolean_syntax' is a GLOBAL variable and should be set with SET GLOBAL
-set global ft_boolean_syntax = @@init_connect;
-ERROR 42000: Variable 'ft_boolean_syntax' can't be set to the value of ''
-set init_connect = NULL;
-ERROR HY000: Variable 'init_connect' is a GLOBAL variable and should be set with SET GLOBAL
-set global init_connect = NULL;
-set ft_boolean_syntax = @@init_connect;
-ERROR HY000: Variable 'ft_boolean_syntax' is a GLOBAL variable and should be set with SET GLOBAL
-set global ft_boolean_syntax = @@init_connect;
-ERROR 42000: Variable 'ft_boolean_syntax' can't be set to the value of ''
-set global myisam_max_sort_file_size=4294967296;
-show global variables like 'myisam_max_sort_file_size';
-Variable_name Value
-myisam_max_sort_file_size MAX_FILE_SIZE
-select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
-VARIABLE_NAME VARIABLE_VALUE
-MYISAM_MAX_SORT_FILE_SIZE MAX_FILE_SIZE
-set global myisam_max_sort_file_size=default;
-select @@global.max_user_connections,@@local.max_join_size;
-@@global.max_user_connections @@local.max_join_size
-100 100
-set @svc=@@global.max_user_connections, @svj=@@local.max_join_size;
-select @@global.max_user_connections,@@local.max_join_size;
-@@global.max_user_connections @@local.max_join_size
-100 100
-set @@global.max_user_connections=111,@@local.max_join_size=222;
-select @@global.max_user_connections,@@local.max_join_size;
-@@global.max_user_connections @@local.max_join_size
-111 222
-set @@global.max_user_connections=@@local.max_join_size,@@local.max_join_size=@@global.max_user_connections;
-select @@global.max_user_connections,@@local.max_join_size;
-@@global.max_user_connections @@local.max_join_size
-222 111
-set @@global.max_user_connections=@svc, @@local.max_join_size=@svj;
-select @@global.max_user_connections,@@local.max_join_size;
-@@global.max_user_connections @@local.max_join_size
-100 100
-set @a=1, @b=2;
-set @a=@b, @b=@a;
-select @a, @b;
-@a @b
-2 1
-set @@global.global.key_buffer_size= 1;
-ERROR HY000: Unknown structured system variable or ROW routine variable 'global'
-set GLOBAL global.key_buffer_size= 1;
-ERROR HY000: Unknown structured system variable or ROW routine variable 'global'
-SELECT @@global.global.key_buffer_size;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_buffer_size' at line 1
-SELECT @@global.session.key_buffer_size;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_buffer_size' at line 1
-SELECT @@global.local.key_buffer_size;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_buffer_size' at line 1
-set @tstlw = @@log_warnings;
-show global variables like 'log_warnings';
-Variable_name Value
-log_warnings 1
-select * from information_schema.global_variables where variable_name like 'log_warnings';
-VARIABLE_NAME VARIABLE_VALUE
-LOG_WARNINGS 1
-set global log_warnings = 0;
-show global variables like 'log_warnings';
-Variable_name Value
-log_warnings 0
-select * from information_schema.global_variables where variable_name like 'log_warnings';
-VARIABLE_NAME VARIABLE_VALUE
-LOG_WARNINGS 0
-set global log_warnings = 42;
-show global variables like 'log_warnings';
-Variable_name Value
-log_warnings 42
-select * from information_schema.global_variables where variable_name like 'log_warnings';
-VARIABLE_NAME VARIABLE_VALUE
-LOG_WARNINGS 42
-set global log_warnings = @tstlw;
-show global variables like 'log_warnings';
-Variable_name Value
-log_warnings 1
-select * from information_schema.global_variables where variable_name like 'log_warnings';
-VARIABLE_NAME VARIABLE_VALUE
-LOG_WARNINGS 1
-create table t1 (
-c1 tinyint,
-c2 smallint,
-c3 mediumint,
-c4 int,
-c5 bigint);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` tinyint(4) DEFAULT NULL,
- `c2` smallint(6) DEFAULT NULL,
- `c3` mediumint(9) DEFAULT NULL,
- `c4` int(11) DEFAULT NULL,
- `c5` bigint(20) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-set @arg00= 8, @arg01= 8.8, @arg02= 'a string', @arg03= 0.2e0;
-create table t1 as select @arg00 as c1, @arg01 as c2, @arg02 as c3, @arg03 as c4;
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `c1` bigint(20) DEFAULT NULL,
- `c2` decimal(65,38) DEFAULT NULL,
- `c3` longtext DEFAULT NULL,
- `c4` double DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-drop table t1;
-SET GLOBAL MYISAM_DATA_POINTER_SIZE= 7;
-SHOW VARIABLES LIKE 'MYISAM_DATA_POINTER_SIZE';
-Variable_name Value
-myisam_data_pointer_size 7
-SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'MYISAM_DATA_POINTER_SIZE';
-VARIABLE_NAME VARIABLE_VALUE
-MYISAM_DATA_POINTER_SIZE 7
-SET GLOBAL table_open_cache=-1;
-Warnings:
-Warning 1292 Truncated incorrect table_open_cache value: '-1'
-SHOW VARIABLES LIKE 'table_open_cache';
-Variable_name Value
-table_open_cache 1
-SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
-VARIABLE_NAME VARIABLE_VALUE
-TABLE_OPEN_CACHE 1
-SET GLOBAL table_open_cache=DEFAULT;
-set character_set_results=NULL;
-select ifnull(@@character_set_results,"really null");
-ifnull(@@character_set_results,"really null")
-really null
-set names latin1;
-*** Various tests with LC_TIME_NAMES
-*** LC_TIME_NAMES: testing case insensitivity
-set @@lc_time_names='ru_ru';
-select @@lc_time_names;
-@@lc_time_names
-ru_RU
-*** LC_TIME_NAMES: testing with a user variable
-set @lc='JA_JP';
-set @@lc_time_names=@lc;
-select @@lc_time_names;
-@@lc_time_names
-ja_JP
-*** LC_TIME_NAMES: testing with string expressions
-set lc_time_names=concat('de','_','DE');
-select @@lc_time_names;
-@@lc_time_names
-de_DE
-set lc_time_names=concat('de','+','DE');
-ERROR HY000: Unknown locale: 'de+DE'
-select @@lc_time_names;
-@@lc_time_names
-de_DE
-LC_TIME_NAMES: testing with numeric expressions
-set @@lc_time_names=1+2;
-select @@lc_time_names;
-@@lc_time_names
-sv_SE
-set @@lc_time_names=1/0;
-ERROR 42000: Incorrect argument type to variable 'lc_time_names'
-select @@lc_time_names;
-@@lc_time_names
-sv_SE
-set lc_time_names=en_US;
-LC_TIME_NAMES: testing NULL and a negative number:
-set lc_time_names=NULL;
-ERROR 42000: Variable 'lc_time_names' can't be set to the value of 'NULL'
-set lc_time_names=-1;
-ERROR HY000: Unknown locale: '-1'
-select @@lc_time_names;
-@@lc_time_names
-en_US
-LC_TIME_NAMES: testing locale with the last ID:
-set lc_time_names=110;
-select @@lc_time_names;
-@@lc_time_names
-rm_CH
-LC_TIME_NAMES: testing a number beyond the valid ID range:
-set lc_time_names=111;
-ERROR HY000: Unknown locale: '111'
-select @@lc_time_names;
-@@lc_time_names
-rm_CH
-LC_TIME_NAMES: testing that 0 is en_US:
-set lc_time_names=0;
-select @@lc_time_names;
-@@lc_time_names
-en_US
-select @@global.lc_time_names, @@lc_time_names;
-@@global.lc_time_names @@lc_time_names
-en_US en_US
-set @@global.lc_time_names=fr_FR;
-select @@global.lc_time_names, @@lc_time_names;
-@@global.lc_time_names @@lc_time_names
-fr_FR en_US
-connect con1,localhost,root,,;
-connection con1;
-select @@global.lc_time_names, @@lc_time_names;
-@@global.lc_time_names @@lc_time_names
-fr_FR fr_FR
-set @@lc_time_names=ru_RU;
-select @@global.lc_time_names, @@lc_time_names;
-@@global.lc_time_names @@lc_time_names
-fr_FR ru_RU
-disconnect con1;
-connection default;
-select @@global.lc_time_names, @@lc_time_names;
-@@global.lc_time_names @@lc_time_names
-fr_FR en_US
-set lc_time_names=default;
-select @@global.lc_time_names, @@lc_time_names;
-@@global.lc_time_names @@lc_time_names
-fr_FR fr_FR
-set @@global.lc_time_names=default;
-select @@global.lc_time_names, @@lc_time_names;
-@@global.lc_time_names @@lc_time_names
-en_US fr_FR
-set @@lc_time_names=default;
-select @@global.lc_time_names, @@lc_time_names;
-@@global.lc_time_names @@lc_time_names
-en_US en_US
-set @test = @@query_prealloc_size;
-set @@query_prealloc_size = @test;
-select @@query_prealloc_size = @test;
-@@query_prealloc_size = @test
-1
-set global sql_mode=repeat('a',80);
-ERROR 42000: Variable 'sql_mode' can't be set to the value of 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
-End of 4.1 tests
-create table t1 (a int);
-select a into @x from t1;
-Warnings:
-Warning 1329 No data - zero rows fetched, selected, or processed
-show warnings;
-Level Code Message
-Warning 1329 No data - zero rows fetched, selected, or processed
-drop table t1;
-set @@warning_count=1;
-ERROR HY000: Variable 'warning_count' is a read only variable
-set @@global.error_count=1;
-ERROR HY000: Variable 'error_count' is a read only variable
-set @@max_heap_table_size= 4294967296;
-select @@max_heap_table_size > 0;
-@@max_heap_table_size > 0
-1
-set global max_heap_table_size= 4294967296;
-select @@max_heap_table_size > 0;
-@@max_heap_table_size > 0
-1
-set @@max_heap_table_size= 4294967296;
-select @@max_heap_table_size > 0;
-@@max_heap_table_size > 0
-1
-select @@character_set_system;
-@@character_set_system
-utf8
-set global character_set_system = latin1;
-ERROR HY000: Variable 'character_set_system' is a read only variable
-set @@global.version_compile_os='234';
-ERROR HY000: Variable 'version_compile_os' is a read only variable
-set character_set_filesystem=latin1;
-select @@character_set_filesystem;
-@@character_set_filesystem
-latin1
-set @@global.character_set_filesystem=latin2;
-set character_set_filesystem=latin1;
-select @@character_set_filesystem;
-@@character_set_filesystem
-latin1
-set @@global.character_set_filesystem=latin2;
-set character_set_filesystem=default;
-select @@character_set_filesystem;
-@@character_set_filesystem
-latin2
-set @@global.character_set_filesystem=default;
-select @@global.character_set_filesystem;
-@@global.character_set_filesystem
-binary
-set @old_sql_big_selects = @@sql_big_selects;
-set @@sql_big_selects = 1;
-show variables like 'sql_big_selects';
-Variable_name Value
-sql_big_selects ON
-select * from information_schema.session_variables where variable_name like 'sql_big_selects';
-VARIABLE_NAME VARIABLE_VALUE
-SQL_BIG_SELECTS ON
-set @@sql_big_selects = @old_sql_big_selects;
-set @@sql_notes = 0, @@sql_warnings = 0;
-show variables like 'sql_notes';
-Variable_name Value
-sql_notes OFF
-select * from information_schema.session_variables where variable_name like 'sql_notes';
-VARIABLE_NAME VARIABLE_VALUE
-SQL_NOTES OFF
-show variables like 'sql_warnings';
-Variable_name Value
-sql_warnings OFF
-select * from information_schema.session_variables where variable_name like 'sql_warnings';
-VARIABLE_NAME VARIABLE_VALUE
-SQL_WARNINGS OFF
-set @@sql_notes = 1, @@sql_warnings = 1;
-show variables like 'sql_notes';
-Variable_name Value
-sql_notes ON
-select * from information_schema.session_variables where variable_name like 'sql_notes';
-VARIABLE_NAME VARIABLE_VALUE
-SQL_NOTES ON
-show variables like 'sql_warnings';
-Variable_name Value
-sql_warnings ON
-select * from information_schema.session_variables where variable_name like 'sql_warnings';
-VARIABLE_NAME VARIABLE_VALUE
-SQL_WARNINGS ON
-select @@system_time_zone;
-@@system_time_zone
-#
-select @@version, @@version_comment, @@version_compile_machine,
-@@version_compile_os;
-@@version @@version_comment @@version_compile_machine @@version_compile_os
-# # # #
-select @@basedir, @@datadir, @@tmpdir;
-@@basedir @@datadir @@tmpdir
-# # #
-show variables like 'basedir';
-Variable_name Value
-basedir #
-select * from information_schema.session_variables where variable_name like 'basedir';
-VARIABLE_NAME VARIABLE_VALUE
-BASEDIR #
-show variables like 'datadir';
-Variable_name Value
-datadir #
-select * from information_schema.session_variables where variable_name like 'datadir';
-VARIABLE_NAME VARIABLE_VALUE
-DATADIR #
-show variables like 'tmpdir';
-Variable_name Value
-tmpdir #
-select * from information_schema.session_variables where variable_name like 'tmpdir';
-VARIABLE_NAME VARIABLE_VALUE
-TMPDIR #
-set sort_buffer_size=1024*8;
-select @@ssl_ca, @@ssl_capath, @@ssl_cert, @@ssl_cipher, @@ssl_key;
-@@ssl_ca @@ssl_capath @@ssl_cert @@ssl_cipher @@ssl_key
-# # # # #
-show variables like 'ssl%';
-Variable_name Value
-ssl_ca #
-ssl_capath #
-ssl_cert #
-ssl_cipher #
-ssl_crl #
-ssl_crlpath #
-ssl_key #
-select * from information_schema.session_variables where variable_name like 'ssl%' order by 1;
-VARIABLE_NAME VARIABLE_VALUE
-SSL_CA #
-SSL_CAPATH #
-SSL_CERT #
-SSL_CIPHER #
-SSL_CRL #
-SSL_CRLPATH #
-SSL_KEY #
-select @@log_queries_not_using_indexes;
-@@log_queries_not_using_indexes
-0
-show variables like 'log_queries_not_using_indexes';
-Variable_name Value
-log_queries_not_using_indexes OFF
-select * from information_schema.session_variables where variable_name like 'log_queries_not_using_indexes';
-VARIABLE_NAME VARIABLE_VALUE
-LOG_QUERIES_NOT_USING_INDEXES OFF
-select @@"";
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '""' at line 1
-select @@&;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '&' at line 1
-select @@@;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@' at line 1
-select @@hostname;
-@@hostname
-#
-set @@hostname= "anothername";
-ERROR HY000: Variable 'hostname' is a read only variable
-show variables like 'hostname';
-Variable_name Value
-hostname #
-#
-# BUG#37408 - Compressed MyISAM files should not require/use mmap()
-#
-# Test 'myisam_mmap_size' option is not dynamic
-SET @@myisam_mmap_size= 500M;
-ERROR HY000: Variable 'myisam_mmap_size' is a read only variable
-#
-# Bug #52315: utc_date() crashes when system time > year 2037
-#
-SET TIMESTAMP=2*1024*1024*1024;
-Warnings:
-Warning 1292 Truncated incorrect timestamp value: '2147483648'
-#Should not crash
-SELECT UTC_DATE();
-SET TIMESTAMP=DEFAULT;
-End of 5.0 tests
-set join_buffer_size=1;
-Warnings:
-Warning 1292 Truncated incorrect join_buffer_size value: '1'
-set @save_join_buffer_size=@@join_buffer_size;
-set join_buffer_size=@save_join_buffer_size;
-set global binlog_cache_size =@my_binlog_cache_size;
-set global connect_timeout =@my_connect_timeout;
-set global delayed_insert_timeout =@my_delayed_insert_timeout;
-set global delayed_queue_size =@my_delayed_queue_size;
-set global flush =@my_flush;
-set global flush_time =@my_flush_time;
-set global key_buffer_size =@my_key_buffer_size;
-set global max_binlog_cache_size =@my_max_binlog_cache_size;
-set global max_binlog_size =@my_max_binlog_size;
-set global max_connect_errors =@my_max_connect_errors;
-set global max_connections =@my_max_connections;
-set global max_delayed_threads =@my_max_delayed_threads;
-set global max_heap_table_size =@my_max_heap_table_size;
-set global max_insert_delayed_threads=@my_max_insert_delayed_threads;
-set global max_join_size =@my_max_join_size;
-set global max_user_connections =@my_max_user_connections;
-set global max_write_lock_count =default;
-set global myisam_data_pointer_size =@my_myisam_data_pointer_size;
-set global myisam_max_sort_file_size =@my_myisam_max_sort_file_size;
-set global net_buffer_length =@my_net_buffer_length;
-Warnings:
-Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
-set global net_write_timeout =@my_net_write_timeout;
-set global net_read_timeout =@my_net_read_timeout;
-set global server_id =@my_server_id;
-set global slow_launch_time =@my_slow_launch_time;
-set global default_storage_engine =@my_storage_engine;
-set global thread_cache_size =@my_thread_cache_size;
-set global max_allowed_packet = default;
-set global delay_key_write =@my_delay_key_write;
-set global join_buffer_size =@my_join_buffer_size;
-set global log_warnings =@my_log_warnings;
-show global variables where Variable_name='table_definition_cache';
-Variable_name Value
-table_definition_cache #
-
-# --
-# -- Bug#34820: log_output can be set to illegal value.
-# --
-SET GLOBAL log_output = '';
-ERROR 42000: Variable 'log_output' can't be set to the value of ''
-SET GLOBAL log_output = 0;
-ERROR 42000: Variable 'log_output' can't be set to the value of '0'
-
-# -- End of Bug#34820.
-
-#
-SHOW VARIABLES like 'ft_max_word_len';
-Variable_name Value
-ft_max_word_len 84
-SELECT @@session.ft_max_word_len;
-ERROR HY000: Variable 'ft_max_word_len' is a GLOBAL variable
-SELECT @@global.ft_max_word_len;
-@@global.ft_max_word_len
-84
-SET @@session.ft_max_word_len= 7;
-ERROR HY000: Variable 'ft_max_word_len' is a read only variable
-SET @@global.ft_max_word_len= 7;
-ERROR HY000: Variable 'ft_max_word_len' is a read only variable
-#
-SHOW VARIABLES like 'ft_min_word_len';
-Variable_name Value
-ft_min_word_len 4
-SELECT @@session.ft_min_word_len;
-ERROR HY000: Variable 'ft_min_word_len' is a GLOBAL variable
-SELECT @@global.ft_min_word_len;
-@@global.ft_min_word_len
-4
-SET @@session.ft_min_word_len= 7;
-ERROR HY000: Variable 'ft_min_word_len' is a read only variable
-SET @@global.ft_min_word_len= 7;
-ERROR HY000: Variable 'ft_min_word_len' is a read only variable
-#
-SHOW VARIABLES like 'ft_query_expansion_limit';
-Variable_name Value
-ft_query_expansion_limit 20
-SELECT @@session.ft_query_expansion_limit;
-ERROR HY000: Variable 'ft_query_expansion_limit' is a GLOBAL variable
-SELECT @@global.ft_query_expansion_limit;
-@@global.ft_query_expansion_limit
-20
-SET @@session.ft_query_expansion_limit= 7;
-ERROR HY000: Variable 'ft_query_expansion_limit' is a read only variable
-SET @@global.ft_query_expansion_limit= 7;
-ERROR HY000: Variable 'ft_query_expansion_limit' is a read only variable
-#
-SHOW VARIABLES like 'ft_stopword_file';
-Variable_name Value
-ft_stopword_file (built-in)
-SELECT @@session.ft_stopword_file;
-ERROR HY000: Variable 'ft_stopword_file' is a GLOBAL variable
-SELECT @@global.ft_stopword_file;
-@@global.ft_stopword_file
-(built-in)
-SET @@session.ft_stopword_file= 'x';
-ERROR HY000: Variable 'ft_stopword_file' is a read only variable
-SET @@global.ft_stopword_file= 'x';
-ERROR HY000: Variable 'ft_stopword_file' is a read only variable
-#
-SHOW VARIABLES like 'back_log';
-Variable_name Value
-back_log 80
-SELECT @@session.back_log;
-ERROR HY000: Variable 'back_log' is a GLOBAL variable
-SELECT @@global.back_log;
-@@global.back_log
-80
-SET @@session.back_log= 7;
-ERROR HY000: Variable 'back_log' is a read only variable
-SET @@global.back_log= 7;
-ERROR HY000: Variable 'back_log' is a read only variable
-#
-SHOW VARIABLES like 'large_files_support';
-Variable_name Value
-large_files_support #
-SELECT @@session.large_files_support;
-ERROR HY000: Variable 'large_files_support' is a GLOBAL variable
-SELECT @@global.large_files_support;
-@@global.large_files_support
-#
-SET @@session.large_files_support= true;
-ERROR HY000: Variable 'large_files_support' is a read only variable
-SET @@global.large_files_support= true;
-ERROR HY000: Variable 'large_files_support' is a read only variable
-#
-SHOW VARIABLES like 'character_sets_dir';
-Variable_name Value
-character_sets_dir #
-SELECT @@session.character_sets_dir;
-ERROR HY000: Variable 'character_sets_dir' is a GLOBAL variable
-SELECT @@global.character_sets_dir;
-@@global.character_sets_dir
-#
-SET @@session.character_sets_dir= 'x';
-ERROR HY000: Variable 'character_sets_dir' is a read only variable
-SET @@global.character_sets_dir= 'x';
-ERROR HY000: Variable 'character_sets_dir' is a read only variable
-#
-SHOW VARIABLES like 'init_file';
-Variable_name Value
-init_file #
-SELECT @@session.init_file;
-ERROR HY000: Variable 'init_file' is a GLOBAL variable
-SELECT @@global.init_file;
-@@global.init_file
-#
-SET @@session.init_file= 'x';
-ERROR HY000: Variable 'init_file' is a read only variable
-SET @@global.init_file= 'x';
-ERROR HY000: Variable 'init_file' is a read only variable
-#
-SHOW VARIABLES like 'lc_messages_dir';
-Variable_name Value
-lc_messages_dir #
-SELECT @@session.lc_messages_dir;
-ERROR HY000: Variable 'lc_messages_dir' is a GLOBAL variable
-SELECT @@global.lc_messages_dir;
-@@global.lc_messages_dir
-#
-SET @@session.lc_messages_dir= 'x';
-ERROR HY000: Variable 'lc_messages_dir' is a read only variable
-SET @@global.lc_messages_dir= 'x';
-ERROR HY000: Variable 'lc_messages_dir' is a read only variable
-#
-SHOW VARIABLES like 'large_page_size';
-Variable_name Value
-large_page_size #
-SELECT @@session.large_page_size;
-ERROR HY000: Variable 'large_page_size' is a GLOBAL variable
-SELECT @@global.large_page_size;
-@@global.large_page_size
-#
-SET @@session.large_page_size= 7;
-ERROR HY000: Variable 'large_page_size' is a read only variable
-SET @@global.large_page_size= 7;
-ERROR HY000: Variable 'large_page_size' is a read only variable
-#
-SHOW VARIABLES like 'large_pages';
-Variable_name Value
-large_pages #
-SELECT @@session.large_pages;
-ERROR HY000: Variable 'large_pages' is a GLOBAL variable
-SELECT @@global.large_pages;
-@@global.large_pages
-#
-SET @@session.large_pages= true;
-ERROR HY000: Variable 'large_pages' is a read only variable
-SET @@global.large_pages= true;
-ERROR HY000: Variable 'large_pages' is a read only variable
-#
-SHOW VARIABLES like 'log_bin';
-Variable_name Value
-log_bin OFF
-SELECT @@session.log_bin;
-ERROR HY000: Variable 'log_bin' is a GLOBAL variable
-SELECT @@global.log_bin;
-@@global.log_bin
-0
-SET @@session.log_bin= true;
-ERROR HY000: Variable 'log_bin' is a read only variable
-SET @@global.log_bin= true;
-ERROR HY000: Variable 'log_bin' is a read only variable
-#
-SHOW VARIABLES like 'log_error';
-Variable_name Value
-log_error #
-SELECT @@session.log_error;
-ERROR HY000: Variable 'log_error' is a GLOBAL variable
-SELECT @@global.log_error;
-@@global.log_error
-#
-SET @@session.log_error= 'x';
-ERROR HY000: Variable 'log_error' is a read only variable
-SET @@global.log_error= 'x';
-ERROR HY000: Variable 'log_error' is a read only variable
-#
-SHOW VARIABLES like 'lower_case_file_system';
-Variable_name Value
-lower_case_file_system #
-SELECT @@session.lower_case_file_system;
-ERROR HY000: Variable 'lower_case_file_system' is a GLOBAL variable
-SELECT @@global.lower_case_file_system;
-@@global.lower_case_file_system
-#
-SET @@session.lower_case_file_system= true;
-ERROR HY000: Variable 'lower_case_file_system' is a read only variable
-SET @@global.lower_case_file_system= true;
-ERROR HY000: Variable 'lower_case_file_system' is a read only variable
-#
-SHOW VARIABLES like 'lower_case_table_names';
-Variable_name Value
-lower_case_table_names #
-SELECT @@session.lower_case_table_names;
-ERROR HY000: Variable 'lower_case_table_names' is a GLOBAL variable
-SELECT @@global.lower_case_table_names;
-@@global.lower_case_table_names
-#
-SET @@session.lower_case_table_names= 7;
-ERROR HY000: Variable 'lower_case_table_names' is a read only variable
-SET @@global.lower_case_table_names= 7;
-ERROR HY000: Variable 'lower_case_table_names' is a read only variable
-#
-SHOW VARIABLES like 'myisam_recover_options';
-Variable_name Value
-myisam_recover_options BACKUP,QUICK
-SELECT @@session.myisam_recover_options;
-ERROR HY000: Variable 'myisam_recover_options' is a GLOBAL variable
-SELECT @@global.myisam_recover_options;
-@@global.myisam_recover_options
-BACKUP,QUICK
-SET @@session.myisam_recover_options= 'x';
-ERROR HY000: Variable 'myisam_recover_options' is a read only variable
-SET @@global.myisam_recover_options= 'x';
-ERROR HY000: Variable 'myisam_recover_options' is a read only variable
-#
-SHOW VARIABLES like 'open_files_limit';
-Variable_name Value
-open_files_limit #
-SELECT @@session.open_files_limit;
-ERROR HY000: Variable 'open_files_limit' is a GLOBAL variable
-SELECT @@global.open_files_limit;
-@@global.open_files_limit
-#
-SET @@session.open_files_limit= 7;
-ERROR HY000: Variable 'open_files_limit' is a read only variable
-SET @@global.open_files_limit= 7;
-ERROR HY000: Variable 'open_files_limit' is a read only variable
-#
-SHOW VARIABLES like 'pid_file';
-Variable_name Value
-pid_file #
-SELECT @@session.pid_file;
-ERROR HY000: Variable 'pid_file' is a GLOBAL variable
-SELECT @@global.pid_file;
-@@global.pid_file
-#
-SET @@session.pid_file= 'x';
-ERROR HY000: Variable 'pid_file' is a read only variable
-SET @@global.pid_file= 'x';
-ERROR HY000: Variable 'pid_file' is a read only variable
-#
-SHOW VARIABLES like 'plugin_dir';
-Variable_name Value
-plugin_dir #
-SELECT @@session.plugin_dir;
-ERROR HY000: Variable 'plugin_dir' is a GLOBAL variable
-SELECT @@global.plugin_dir;
-@@global.plugin_dir
-#
-SET @@session.plugin_dir= 'x';
-ERROR HY000: Variable 'plugin_dir' is a read only variable
-SET @@global.plugin_dir= 'x';
-ERROR HY000: Variable 'plugin_dir' is a read only variable
-#
-SHOW VARIABLES like 'port';
-Variable_name Value
-port #
-SELECT @@session.port;
-ERROR HY000: Variable 'port' is a GLOBAL variable
-SELECT @@global.port;
-@@global.port
-#
-SET @@session.port= 7;
-ERROR HY000: Variable 'port' is a read only variable
-SET @@global.port= 7;
-ERROR HY000: Variable 'port' is a read only variable
-#
-SHOW VARIABLES like 'protocol_version';
-Variable_name Value
-protocol_version 10
-SELECT @@session.protocol_version;
-ERROR HY000: Variable 'protocol_version' is a GLOBAL variable
-SELECT @@global.protocol_version;
-@@global.protocol_version
-10
-SET @@session.protocol_version= 7;
-ERROR HY000: Variable 'protocol_version' is a read only variable
-SET @@global.protocol_version= 7;
-ERROR HY000: Variable 'protocol_version' is a read only variable
-#
-SHOW VARIABLES like 'skip_external_locking';
-Variable_name Value
-skip_external_locking ON
-SELECT @@session.skip_external_locking;
-ERROR HY000: Variable 'skip_external_locking' is a GLOBAL variable
-SELECT @@global.skip_external_locking;
-@@global.skip_external_locking
-1
-SET @@session.skip_external_locking= true;
-ERROR HY000: Variable 'skip_external_locking' is a read only variable
-SET @@global.skip_external_locking= true;
-ERROR HY000: Variable 'skip_external_locking' is a read only variable
-#
-SHOW VARIABLES like 'skip_networking';
-Variable_name Value
-skip_networking OFF
-SELECT @@session.skip_networking;
-ERROR HY000: Variable 'skip_networking' is a GLOBAL variable
-SELECT @@global.skip_networking;
-@@global.skip_networking
-0
-SET @@session.skip_networking= true;
-ERROR HY000: Variable 'skip_networking' is a read only variable
-SET @@global.skip_networking= true;
-ERROR HY000: Variable 'skip_networking' is a read only variable
-#
-SHOW VARIABLES like 'skip_show_database';
-Variable_name Value
-skip_show_database OFF
-SELECT @@session.skip_show_database;
-ERROR HY000: Variable 'skip_show_database' is a GLOBAL variable
-SELECT @@global.skip_show_database;
-@@global.skip_show_database
-0
-SET @@session.skip_show_database= true;
-ERROR HY000: Variable 'skip_show_database' is a read only variable
-SET @@global.skip_show_database= true;
-ERROR HY000: Variable 'skip_show_database' is a read only variable
-#
-SHOW VARIABLES like 'thread_stack';
-Variable_name Value
-thread_stack #
-SELECT @@session.thread_stack;
-ERROR HY000: Variable 'thread_stack' is a GLOBAL variable
-SELECT @@global.thread_stack;
-@@global.thread_stack
-#
-SET @@session.thread_stack= 7;
-ERROR HY000: Variable 'thread_stack' is a read only variable
-SET @@global.thread_stack= 7;
-ERROR HY000: Variable 'thread_stack' is a read only variable
-SELECT @@global.expire_logs_days INTO @old_eld;
-SET GLOBAL expire_logs_days = -1;
-Warnings:
-Warning 1292 Truncated incorrect expire_logs_days value: '-1'
-needs to've been adjusted (0)
-SELECT @@global.expire_logs_days;
-@@global.expire_logs_days
-0
-SET GLOBAL expire_logs_days = 11;
-SET @old_mode=@@sql_mode;
-SET SESSION sql_mode = 'TRADITIONAL';
-SET GLOBAL expire_logs_days = 100;
-ERROR 42000: Variable 'expire_logs_days' can't be set to the value of '100'
-needs to be unchanged (11)
-SELECT @@global.expire_logs_days;
-@@global.expire_logs_days
-11
-SET SESSION sql_mode = @old_mode;
-SET GLOBAL expire_logs_days = 100;
-Warnings:
-Warning 1292 Truncated incorrect expire_logs_days value: '100'
-needs to've been adjusted (99)
-SELECT @@global.expire_logs_days;
-@@global.expire_logs_days
-99
-SET GLOBAL expire_logs_days = 11;
-SET GLOBAL expire_logs_days = 99;
-needs to pass with no warnings (99)
-SELECT @@global.expire_logs_days;
-@@global.expire_logs_days
-99
-SET GLOBAL expire_logs_days = @old_eld;
-SET GLOBAL auto_increment_offset=-1;
-Warnings:
-Warning 1292 Truncated incorrect auto_increment_offset value: '-1'
-SET GLOBAL auto_increment_offset=0;
-Warnings:
-Warning 1292 Truncated incorrect auto_increment_offset value: '0'
-select @@default_storage_engine;
-Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
-def @@default_storage_engine 253 6 6 Y 0 39 8
-@@default_storage_engine
-MyISAM
-SET @old_server_id = @@GLOBAL.server_id;
-SET GLOBAL server_id = (1 << 32) - 1;
-SELECT @@GLOBAL.server_id;
-@@GLOBAL.server_id
-4294967295
-SET GLOBAL server_id = (1 << 32);
-Warnings:
-Warning 1292 Truncated incorrect server_id value: '4294967296'
-SELECT @@GLOBAL.server_id;
-@@GLOBAL.server_id
-4294967295
-SET GLOBAL server_id = (1 << 60);
-Warnings:
-Warning 1292 Truncated incorrect server_id value: '1152921504606846976'
-SELECT @@GLOBAL.server_id;
-@@GLOBAL.server_id
-4294967295
-SET GLOBAL server_id = 0;
-Warnings:
-Warning 1292 Truncated incorrect server_id value: '0'
-SELECT @@GLOBAL.server_id;
-@@GLOBAL.server_id
-1
-SET GLOBAL server_id = -1;
-Warnings:
-Warning 1292 Truncated incorrect server_id value: '-1'
-SELECT @@GLOBAL.server_id;
-@@GLOBAL.server_id
-1
-SET GLOBAL server_id = @old_server_id;
-#
-# BUG#10206 - InnoDB: Transaction requiring Max_BinLog_Cache_size > 4GB always rollsback
-#
-SET @old_max_binlog_cache_size = @@GLOBAL.max_binlog_cache_size;
-# Set the max_binlog_cache_size to size more than 4GB.
-SET GLOBAL max_binlog_cache_size = 5 * 1024 * 1024 * 1024;
-SELECT @@GLOBAL.max_binlog_cache_size;
-@@GLOBAL.max_binlog_cache_size
-max_size
-SET GLOBAL max_binlog_cache_size = @old_max_binlog_cache_size;
-#
-# Bug #37168 : Missing variable - skip_name_resolve
-#
-SELECT @@skip_name_resolve;
-@@skip_name_resolve
-0
-SHOW VARIABLES LIKE 'skip_name_resolve';
-Variable_name Value
-skip_name_resolve OFF
-#
-# Bug #43233 : Some server variables are clipped during "update,"
-# not "check" stage
-#
-SET @kbs=@@global.key_buffer_size;
-SET @kcbs=@@global.key_cache_block_size;
-throw errors in STRICT mode
-SET SQL_MODE=STRICT_ALL_TABLES;
-SET @@global.max_binlog_cache_size=-1;
-ERROR 42000: Variable 'max_binlog_cache_size' can't be set to the value of '-1'
-SET @@global.max_join_size=0;
-ERROR 42000: Variable 'max_join_size' can't be set to the value of '0'
-SET @@global.key_buffer_size=0;
-ERROR HY000: Cannot drop default keycache
-SET @@global.key_cache_block_size=0;
-ERROR 42000: Variable 'key_cache_block_size' can't be set to the value of '0'
-throw warnings in default mode
-SET SQL_MODE=DEFAULT;
-SET @@global.max_binlog_cache_size=-1;
-Warnings:
-Warning 1292 Truncated incorrect max_binlog_cache_size value: '-1'
-SET @@global.max_join_size=0;
-Warnings:
-Warning 1292 Truncated incorrect max_join_size value: '0'
-SET @@global.key_buffer_size=0;
-ERROR HY000: Cannot drop default keycache
-SET @@global.key_cache_block_size=0;
-Warnings:
-Warning 1292 Truncated incorrect key_cache_block_size value: '0'
-SET @@global.max_binlog_cache_size=DEFAULT;
-SET @@global.max_join_size=DEFAULT;
-SET @@global.key_buffer_size=@kbs;
-SET @@global.key_cache_block_size=@kcbs;
-select @@max_long_data_size;
-@@max_long_data_size
-16777216
-#
-# Bug#11766424 59527:
-# Assert in DECIMAL_BIN_SIZE:
-# `SCALE >= 0 && PRECISION > 0 && SCALE <= PRE
-# This test also exposed a bug with sql_buffer_result
-#
-CREATE TABLE t1(f1 DECIMAL(1,1) UNSIGNED);
-INSERT INTO t1 VALUES (0.2),(0.1);
-set @a=NULL;
-set sql_buffer_result=0;
-SELECT 1 as 'one' FROM t1 GROUP BY @a:= ROUND(f1);
-one
-1
-explain SELECT 1 as 'one' FROM t1 GROUP BY @a:= (SELECT ROUND(f1) FROM t1 WHERE f1 = 0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT 1 as 'one' FROM t1 GROUP BY @a:= (SELECT ROUND(f1) FROM t1 WHERE f1 = 0);
-one
-1
-SELECT 1 as 'one' FROM t1 GROUP BY @a:= (SELECT ROUND(f1) FROM t1 WHERE @a=f1);
-one
-1
-set sql_buffer_result=1;
-explain SELECT 1 as 'one' FROM t1 GROUP BY @a:= (SELECT ROUND(f1) FROM t1 WHERE f1 = 0);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using temporary
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
-SELECT 1 as 'one' FROM t1 GROUP BY @a:= (SELECT ROUND(f1) FROM t1 WHERE f1 = 0);
-one
-1
-SELECT 1 as 'one' FROM t1 GROUP BY @a:= (SELECT ROUND(f1) FROM t1 WHERE @a=f1);
-one
-1
-DROP TABLE t1;
-set sql_buffer_result=0;
-CREATE TABLE t1 AS SELECT @a:= CAST(1 AS UNSIGNED) AS a;
-SHOW CREATE TABLE t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(1) unsigned NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t1;
-End of 5.1 tests
-
-#
-# Bug#34828: OF is taken as OFF and a value of 0 is set for variable SQL_notes.
-#
-
-# Checking sql_notes...
-SET @sql_notes_saved = @@sql_notes;
-
-SET @@sql_notes = ON;
-SELECT @@sql_notes;
-@@sql_notes
-1
-
-SET @@sql_notes = OF;
-ERROR 42000: Variable 'sql_notes' can't be set to the value of 'OF'
-SELECT @@sql_notes;
-@@sql_notes
-1
-
-SET @@sql_notes = OFF;
-SELECT @@sql_notes;
-@@sql_notes
-0
-
-SET @@sql_notes = @sql_notes_saved;
-
-# Checking delay_key_write...
-SET @delay_key_write_saved = @@delay_key_write;
-
-SET GLOBAL delay_key_write = ON;
-SELECT @@delay_key_write;
-@@delay_key_write
-ON
-
-SET GLOBAL delay_key_write = OF;
-ERROR 42000: Variable 'delay_key_write' can't be set to the value of 'OF'
-SELECT @@delay_key_write;
-@@delay_key_write
-ON
-
-SET GLOBAL delay_key_write = AL;
-ERROR 42000: Variable 'delay_key_write' can't be set to the value of 'AL'
-SELECT @@delay_key_write;
-@@delay_key_write
-ON
-
-SET GLOBAL delay_key_write = OFF;
-SELECT @@delay_key_write;
-@@delay_key_write
-OFF
-
-SET GLOBAL delay_key_write = ALL;
-SELECT @@delay_key_write;
-@@delay_key_write
-ALL
-
-SET GLOBAL delay_key_write = @delay_key_write_saved;
-
-# Checking sql_safe_updates...
-SET @sql_safe_updates_saved = @@sql_safe_updates;
-
-SET @@sql_safe_updates = ON;
-SELECT @@sql_safe_updates;
-@@sql_safe_updates
-1
-
-SET @@sql_safe_updates = OF;
-ERROR 42000: Variable 'sql_safe_updates' can't be set to the value of 'OF'
-SELECT @@sql_safe_updates;
-@@sql_safe_updates
-1
-
-SET @@sql_safe_updates = OFF;
-SELECT @@sql_safe_updates;
-@@sql_safe_updates
-0
-
-SET @@sql_safe_updates = @sql_safe_updates_saved;
-
-# Checking foreign_key_checks...
-SET @foreign_key_checks_saved = @@foreign_key_checks;
-
-SET @@foreign_key_checks = ON;
-SELECT @@foreign_key_checks;
-@@foreign_key_checks
-1
-
-SET @@foreign_key_checks = OF;
-ERROR 42000: Variable 'foreign_key_checks' can't be set to the value of 'OF'
-SELECT @@foreign_key_checks;
-@@foreign_key_checks
-1
-
-SET @@foreign_key_checks = OFF;
-SELECT @@foreign_key_checks;
-@@foreign_key_checks
-0
-
-SET @@foreign_key_checks = @foreign_key_checks_saved;
-
-# Checking unique_checks...
-SET @unique_checks_saved = @@unique_checks;
-
-SET @@unique_checks = ON;
-SELECT @@unique_checks;
-@@unique_checks
-1
-
-SET @@unique_checks = OF;
-ERROR 42000: Variable 'unique_checks' can't be set to the value of 'OF'
-SELECT @@unique_checks;
-@@unique_checks
-1
-
-SET @@unique_checks = OFF;
-SELECT @@unique_checks;
-@@unique_checks
-0
-
-SET @@unique_checks = @unique_checks_saved;
-
-# Checking sql_buffer_result...
-SET @sql_buffer_result_saved = @@sql_buffer_result;
-
-SET @@sql_buffer_result = ON;
-SELECT @@sql_buffer_result;
-@@sql_buffer_result
-1
-
-SET @@sql_buffer_result = OF;
-ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of 'OF'
-SELECT @@sql_buffer_result;
-@@sql_buffer_result
-1
-
-SET @@sql_buffer_result = OFF;
-SELECT @@sql_buffer_result;
-@@sql_buffer_result
-0
-
-SET @@sql_buffer_result = @sql_buffer_result_saved;
-
-# Checking sql_quote_show_create...
-SET @sql_quote_show_create_saved = @@sql_quote_show_create;
-
-SET @@sql_quote_show_create = ON;
-SELECT @@sql_quote_show_create;
-@@sql_quote_show_create
-1
-
-SET @@sql_quote_show_create = OF;
-ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'OF'
-SELECT @@sql_quote_show_create;
-@@sql_quote_show_create
-1
-
-SET @@sql_quote_show_create = OFF;
-SELECT @@sql_quote_show_create;
-@@sql_quote_show_create
-0
-
-SET @@sql_quote_show_create = @sql_quote_show_create_saved;
-
-# End of Bug#34828.
-
-# Make sure we can manipulate with autocommit in the
-# along with other variables.
-drop table if exists t1;
-drop function if exists t1_max;
-drop function if exists t1_min;
-set sql_mode="";
-create table t1 (a int) engine=innodb;
-set sql_mode=default;
-insert into t1(a) values (0), (1);
-create function t1_max() returns int return (select max(a) from t1);
-create function t1_min() returns int return (select min(a) from t1);
-select t1_min();
-t1_min()
-0
-select t1_max();
-t1_max()
-1
-set @@session.autocommit=t1_min(), @@session.autocommit=t1_max(),
-@@session.autocommit=t1_min(), @@session.autocommit=t1_max(),
-@@session.autocommit=t1_min(), @@session.autocommit=t1_max();
-# Cleanup.
-drop table t1;
-drop function t1_min;
-drop function t1_max;
-#
-# Bug #59884: setting charset to 2048 crashes
-#
-set session character_set_results = 2048;
-ERROR 42000: Unknown character set: '2048'
-set session character_set_client=2048;
-ERROR 42000: Unknown character set: '2048'
-set session character_set_connection=2048;
-ERROR 42000: Unknown character set: '2048'
-set session character_set_server=2048;
-ERROR 42000: Unknown character set: '2048'
-set session collation_server=2048;
-ERROR HY000: Unknown collation: '2048'
-set session character_set_filesystem=2048;
-ERROR 42000: Unknown character set: '2048'
-set session character_set_database=2048;
-ERROR 42000: Unknown character set: '2048'
-set session collation_connection=2048;
-ERROR HY000: Unknown collation: '2048'
-set session collation_database=2048;
-ERROR HY000: Unknown collation: '2048'
-set session rand_seed1=DEFAULT;
-ERROR 42000: Variable 'rand_seed1' doesn't have a default value
-set autocommit = value(v);
-ERROR 42S22: Unknown column 'v' in 'field list'
-set session sql_mode=ansi_quotes;
-select * from information_schema.session_variables where variable_name='sql_mode';
-VARIABLE_NAME VARIABLE_VALUE
-SQL_MODE ANSI_QUOTES
-show global status like 'foobar';
-Variable_name Value
-select * from information_schema.session_variables where variable_name='sql_mode';
-VARIABLE_NAME VARIABLE_VALUE
-SQL_MODE ANSI_QUOTES
-End of 5.5 tests
-explain extended select @@VERsion from dual where rand() > @@verSION;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select @@VERsion AS "@@VERsion" from DUAL where rand() > @@version
-explain extended select @@SESsion.SQL_mode from dual where rand() > @@sesSION.sql_MODE;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select @@SESsion.SQL_mode AS "@@SESsion.SQL_mode" from DUAL where rand() > @@sql_mode
-explain extended select @@GLObal.COLLATION_connection from dual where rand() > @@gloBAL.collation_CONNECTION;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select @@GLObal.COLLATION_connection AS "@@GLObal.COLLATION_connection" from DUAL where rand() > @@global.collation_connection
-explain extended select @@FOObar.KEY_BUFfer_size from dual where rand() > @@fooBAR.key_bufFER_SIZE;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
-Warnings:
-Note 1003 select @@FOObar.KEY_BUFfer_size AS "@@FOObar.KEY_BUFfer_size" from DUAL where rand() > @@fooBAR.key_buffer_size
-#
-# MDEV-15316 Assertion `(thd->lex)->var_list.is_empty()' failed in MYSQLparse
-#
-SET GLOBAL mc.key_cache_age_threshold=100, mc.key_cache_block_size=1024;
-SET GLOBAL mc.key_buffer_size= 0 /*cleanup*/;
diff --git a/mysql-test/r/variables_community.result b/mysql-test/r/variables_community.result
deleted file mode 100644
index 7a2976d1267..00000000000
--- a/mysql-test/r/variables_community.result
+++ /dev/null
@@ -1,7 +0,0 @@
-show global status like "Uptime_%";
-Variable_name Value
-Uptime_since_flush_status #
-flush status;
-show global status like "Uptime_%";
-Variable_name Value
-Uptime_since_flush_status #
diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result
deleted file mode 100644
index e61e2d2663d..00000000000
--- a/mysql-test/r/view.result
+++ /dev/null
@@ -1,6512 +0,0 @@
-SET @save_optimizer_switch=@@optimizer_switch;
-SET optimizer_switch='outer_join_with_cache=off';
-create view v1 (c,d) as select a,b from t1;
-ERROR 42S02: Table 'test.t1' doesn't exist
-create temporary table t1 (a int, b int);
-create view v1 (c) as select b+1 from t1;
-ERROR HY000: View's SELECT refers to a temporary table 't1'
-drop table t1;
-create table t1 (a int, b int);
-insert into t1 values (1,2), (1,3), (2,4), (2,5), (3,10);
-create view v1 (c,d) as select a,b+@@global.max_user_connections from t1;
-ERROR HY000: View's SELECT contains a variable or parameter
-create view v1 (c,d) as select a,b from t1
-where a = @@global.max_user_connections;
-ERROR HY000: View's SELECT contains a variable or parameter
-create view v1 (c) as select b+1 from t1;
-select c from v1;
-c
-3
-4
-5
-6
-11
-select is_updatable from information_schema.views where table_name='v1';
-is_updatable
-NO
-create temporary table t1 (a int, b int);
-select * from t1;
-a b
-select c from v1;
-c
-3
-4
-5
-6
-11
-show create table v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`b` + 1 AS `c` from `t1` latin1 latin1_swedish_ci
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`b` + 1 AS `c` from `t1` latin1 latin1_swedish_ci
-show create view t1;
-ERROR HY000: 'test.t1' is not of type 'VIEW'
-drop table t1;
-select a from v1;
-ERROR 42S22: Unknown column 'a' in 'field list'
-select v1.a from v1;
-ERROR 42S22: Unknown column 'v1.a' in 'field list'
-select b from v1;
-ERROR 42S22: Unknown column 'b' in 'field list'
-select v1.b from v1;
-ERROR 42S22: Unknown column 'v1.b' in 'field list'
-explain extended select c from v1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`b` + 1 AS `c` from `test`.`t1`
-create algorithm=temptable view v2 (c) as select b+1 from t1;
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=TEMPTABLE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t1`.`b` + 1 AS `c` from `t1` latin1 latin1_swedish_ci
-select c from v2;
-c
-3
-4
-5
-6
-11
-explain extended select c from v2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 5 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1003 /* select#1 */ select `v2`.`c` AS `c` from `test`.`v2`
-create view v3 (c) as select a+1 from v1;
-ERROR 42S22: Unknown column 'a' in 'field list'
-create view v3 (c) as select b+1 from v1;
-ERROR 42S22: Unknown column 'b' in 'field list'
-create view v3 (c) as select c+1 from v1;
-select c from v3;
-c
-4
-5
-6
-7
-12
-explain extended select c from v3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`b` + 1 + 1 AS `c` from `test`.`t1`
-create algorithm=temptable view v4 (c) as select c+1 from v2;
-select c from v4;
-c
-4
-5
-6
-7
-12
-explain extended select c from v4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 5 100.00
-2 DERIVED <derived3> ALL NULL NULL NULL NULL 5 100.00
-3 DERIVED t1 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1003 /* select#1 */ select `v4`.`c` AS `c` from `test`.`v4`
-create view v5 (c) as select c+1 from v2;
-select c from v5;
-c
-4
-5
-6
-7
-12
-explain extended select c from v5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 5 100.00
-3 DERIVED t1 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1003 /* select#1 */ select `v2`.`c` + 1 AS `c` from `test`.`v2`
-create algorithm=temptable view v6 (c) as select c+1 from v1;
-select c from v6;
-c
-4
-5
-6
-7
-12
-explain extended select c from v6;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 5 100.00
-2 DERIVED t1 ALL NULL NULL NULL NULL 5 100.00
-Warnings:
-Note 1003 /* select#1 */ select `v6`.`c` AS `c` from `test`.`v6`
-show tables;
-Tables_in_test
-t1
-v1
-v2
-v3
-v4
-v5
-v6
-show full tables;
-Tables_in_test Table_type
-t1 BASE TABLE
-v1 VIEW
-v2 VIEW
-v3 VIEW
-v4 VIEW
-v5 VIEW
-v6 VIEW
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 5 9 45 # 1024 0 NULL # # # latin1_swedish_ci NULL # N
-v1 NULL NULL NULL NULL NULL NULL # NULL NULL NULL # # # NULL NULL NULL VIEW # NULL
-v2 NULL NULL NULL NULL NULL NULL # NULL NULL NULL # # # NULL NULL NULL VIEW # NULL
-v3 NULL NULL NULL NULL NULL NULL # NULL NULL NULL # # # NULL NULL NULL VIEW # NULL
-v4 NULL NULL NULL NULL NULL NULL # NULL NULL NULL # # # NULL NULL NULL VIEW # NULL
-v5 NULL NULL NULL NULL NULL NULL # NULL NULL NULL # # # NULL NULL NULL VIEW # NULL
-v6 NULL NULL NULL NULL NULL NULL # NULL NULL NULL # # # NULL NULL NULL VIEW # NULL
-drop view v1,v2,v3,v4,v5,v6;
-create view v1 (c,d,e,f) as select a,b,
-a in (select a+2 from t1), a = all (select a from t1) from t1;
-create view v2 as select c, d from v1;
-select * from v1;
-c d e f
-1 2 0 0
-1 3 0 0
-2 4 0 0
-2 5 0 0
-3 10 1 0
-select * from v2;
-c d
-1 2
-1 3
-2 4
-2 5
-3 10
-create view v1 (c,d,e,f) as select a,b, a in (select a+2 from t1), a = all (select a from t1) from t1;
-ERROR 42S01: Table 'v1' already exists
-create or replace view v1 (c,d,e,f) as select a,b, a in (select a+2 from t1), a = all (select a from t1) from t1;
-drop view v2;
-alter view v2 as select c, d from v1;
-ERROR 42S02: Table 'test.v2' doesn't exist
-create or replace view v2 as select c, d from v1;
-alter view v1 (c,d) as select a,max(b) from t1 group by a;
-select * from v1;
-c d
-1 3
-2 5
-3 10
-select * from v2;
-c d
-1 3
-2 5
-3 10
-drop view v100;
-ERROR 42S02: Unknown VIEW: 'test.v100'
-drop view t1;
-ERROR HY000: 'test.t1' is not of type 'VIEW'
-drop table v1;
-ERROR 42S02: 'test.v1' is a view
-drop view v1,v2;
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1), (2), (3);
-create view v1 (a) as select a+1 from t1;
-create view v2 (a) as select a-1 from t1;
-select * from t1 natural left join v1;
-a
-1
-2
-3
-select * from v2 natural left join t1;
-a
-0
-1
-2
-select * from v2 natural left join v1;
-a
-0
-1
-2
-drop view v1, v2;
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1), (2), (3), (1), (2), (3);
-create view v1 as select distinct a from t1;
-select * from v1;
-a
-1
-2
-3
-explain select * from v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 6
-2 DERIVED t1 ALL NULL NULL NULL NULL 6 Using temporary
-select * from t1;
-a
-1
-2
-3
-1
-2
-3
-drop view v1;
-drop table t1;
-create table t1 (a int);
-create view v1 as select distinct a from t1 WITH CHECK OPTION;
-ERROR HY000: CHECK OPTION on non-updatable view `test`.`v1`
-create view v1 as select a from t1 WITH CHECK OPTION;
-create view v2 as select a from t1 WITH CASCADED CHECK OPTION;
-create view v3 as select a from t1 WITH LOCAL CHECK OPTION;
-drop view v3 RESTRICT;
-drop view v2 CASCADE;
-drop view v1;
-drop table t1;
-create table t1 (a int, b int);
-insert into t1 values (1,2), (1,3), (2,4), (2,5), (3,10);
-create view v1 (c) as select b+1 from t1;
-select test.c from v1 test;
-c
-3
-4
-5
-6
-11
-create algorithm=temptable view v2 (c) as select b+1 from t1;
-select test.c from v2 test;
-c
-3
-4
-5
-6
-11
-select test1.* from v1 test1, v2 test2 where test1.c=test2.c;
-c
-3
-4
-5
-6
-11
-select test2.* from v1 test1, v2 test2 where test1.c=test2.c;
-c
-3
-4
-5
-6
-11
-drop table t1;
-drop view v1,v2;
-create table t1 (a int);
-insert into t1 values (1), (2), (3), (4);
-create view v1 as select a+1 from t1 order by 1 desc limit 2;
-select * from v1;
-a+1
-5
-4
-explain select * from v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
-2 DERIVED t1 ALL NULL NULL NULL NULL 4 Using filesort
-drop view v1;
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1), (2), (3), (4);
-create view v1 as select a+1 from t1;
-create table t2 select * from v1;
-show columns from t2;
-Field Type Null Key Default Extra
-a+1 bigint(12) YES NULL
-select * from t2;
-a+1
-2
-3
-4
-5
-drop view v1;
-drop table t1,t2;
-create table t1 (a int, b int, primary key(a));
-insert into t1 values (10,2), (20,3), (30,4), (40,5), (50,10);
-create view v1 (a,c) as select a, b+1 from t1;
-create algorithm=temptable view v2 (a,c) as select a, b+1 from t1;
-select is_updatable from information_schema.views where table_name='v2';
-is_updatable
-NO
-select is_updatable from information_schema.views where table_name='v1';
-is_updatable
-YES
-update v1 set c=a+c;
-ERROR HY000: Column 'c' is not updatable
-update v2 set a=a+c;
-ERROR HY000: The target table v2 of the UPDATE is not updatable
-update v1 set a=a+c;
-select * from v1;
-a c
-13 3
-24 4
-35 5
-46 6
-61 11
-select * from t1;
-a b
-13 2
-24 3
-35 4
-46 5
-61 10
-drop table t1;
-drop view v1,v2;
-create table t1 (a int, b int, primary key(a));
-insert into t1 values (10,2), (20,3), (30,4), (40,5), (50,10);
-create table t2 (x int);
-insert into t2 values (10), (20);
-create view v1 (a,c) as select a, b+1 from t1;
-create algorithm=temptable view v2 (a,c) as select a, b+1 from t1;
-update t2,v1 set v1.c=v1.a+v1.c where t2.x=v1.a;
-ERROR HY000: Column 'c' is not updatable
-update t2,v2 set v2.a=v2.v2.a+c where t2.x=v2.a;
-ERROR HY000: The target table v2 of the UPDATE is not updatable
-update t2,v1 set v1.a=v1.a+v1.c where t2.x=v1.a;
-select * from v1;
-a c
-13 3
-24 4
-30 5
-40 6
-50 11
-select * from t1;
-a b
-13 2
-24 3
-30 4
-40 5
-50 10
-drop table t1,t2;
-drop view v1,v2;
-create table t1 (a int, b int, primary key(b));
-insert into t1 values (1,20), (2,30), (3,40), (4,50), (5,100);
-create view v1 (c) as select b from t1 where a<3;
-select * from v1;
-c
-20
-30
-explain extended select * from v1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`b` AS `c` from `test`.`t1` where `test`.`t1`.`a` < 3
-update v1 set c=c+1;
-select * from t1;
-a b
-1 21
-2 31
-3 40
-4 50
-5 100
-create view v2 (c) as select b from t1 where a>=3;
-select * from v1, v2;
-c c
-21 40
-31 40
-21 50
-31 50
-21 100
-31 100
-drop view v1, v2;
-drop table t1;
-create table t1 (a int, b int, primary key(a));
-insert into t1 values (1,2), (2,3), (3,4), (4,5), (5,10);
-create view v1 (a,c) as select a, b+1 from t1;
-create algorithm=temptable view v2 (a,c) as select a, b+1 from t1;
-delete from v2 where c < 4;
-ERROR HY000: The target table v2 of the DELETE is not updatable
-delete from v1 where c < 4;
-select * from v1;
-a c
-2 4
-3 5
-4 6
-5 11
-select * from t1;
-a b
-2 3
-3 4
-4 5
-5 10
-drop table t1;
-drop view v1,v2;
-create table t1 (a int, b int, primary key(a));
-insert into t1 values (1,2), (2,3), (3,4), (4,5), (5,10);
-create table t2 (x int);
-insert into t2 values (1), (2), (3), (4);
-create view v1 (a,c) as select a, b+1 from t1;
-create algorithm=temptable view v2 (a,c) as select a, b+1 from t1;
-delete v2 from t2,v2 where t2.x=v2.a;
-ERROR HY000: The target table v2 of the DELETE is not updatable
-delete v1 from t2,v1 where t2.x=v1.a;
-select * from v1;
-a c
-5 11
-select * from t1;
-a b
-5 10
-drop table t1,t2;
-drop view v1,v2;
-create table t1 (a int, b int, c int, primary key(a,b));
-insert into t1 values (10,2,-1), (20,3,-2), (30,4,-3), (40,5,-4), (50,10,-5);
-create view v1 (x,y) as select a, b from t1;
-create view v2 (x,y) as select a, c from t1;
-set updatable_views_with_limit=NO;
-update v1 set x=x+1;
-update v2 set x=x+1;
-update v1 set x=x+1 limit 1;
-update v2 set x=x+1 limit 1;
-ERROR HY000: The target table v2 of the UPDATE is not updatable
-set updatable_views_with_limit=YES;
-update v1 set x=x+1 limit 1;
-update v2 set x=x+1 limit 1;
-Warnings:
-Note 1355 View being updated does not have complete key of underlying table in it
-set updatable_views_with_limit=DEFAULT;
-show variables like "updatable_views_with_limit";
-Variable_name Value
-updatable_views_with_limit YES
-select * from t1;
-a b c
-15 2 -1
-22 3 -2
-32 4 -3
-42 5 -4
-52 10 -5
-drop table t1;
-drop view v1,v2;
-create table t1 (a int, b int, c int, primary key(a,b));
-insert into t1 values (10,2,-1), (20,3,-2);
-create view v1 (x,y,z) as select c, b, a from t1;
-create view v2 (x,y) as select b, a from t1;
-create view v3 (x,y,z) as select b, a, b from t1;
-create view v4 (x,y,z) as select c+1, b, a from t1;
-create algorithm=temptable view v5 (x,y,z) as select c, b, a from t1;
-insert into v3 values (-60,4,30);
-ERROR HY000: The target table v3 of the INSERT is not insertable-into
-insert into v4 values (-60,4,30);
-ERROR HY000: The target table v4 of the INSERT is not insertable-into
-insert into v5 values (-60,4,30);
-ERROR HY000: The target table v5 of the INSERT is not insertable-into
-insert into v1 values (-60,4,30);
-insert into v1 (z,y,x) values (50,6,-100);
-insert into v2 values (5,40);
-select * from t1;
-a b c
-10 2 -1
-20 3 -2
-30 4 -60
-50 6 -100
-40 5 NULL
-drop table t1;
-drop view v1,v2,v3,v4,v5;
-create table t1 (a int, b int, c int, primary key(a,b));
-insert into t1 values (10,2,-1), (20,3,-2);
-create table t2 (a int, b int, c int, primary key(a,b));
-insert into t2 values (30,4,-60);
-create view v1 (x,y,z) as select c, b, a from t1;
-create view v2 (x,y) as select b, a from t1;
-create view v3 (x,y,z) as select b, a, b from t1;
-create view v4 (x,y,z) as select c+1, b, a from t1;
-create algorithm=temptable view v5 (x,y,z) as select c, b, a from t1;
-insert into v3 select c, b, a from t2;
-ERROR HY000: The target table v3 of the INSERT is not insertable-into
-insert into v4 select c, b, a from t2;
-ERROR HY000: The target table v4 of the INSERT is not insertable-into
-insert into v5 select c, b, a from t2;
-ERROR HY000: The target table v5 of the INSERT is not insertable-into
-insert into v1 select c, b, a from t2;
-insert into v1 (z,y,x) select a+20,b+2,-100 from t2;
-insert into v2 select b+1, a+10 from t2;
-select * from t1;
-a b c
-10 2 -1
-20 3 -2
-30 4 -60
-50 6 -100
-40 5 NULL
-drop table t1, t2;
-drop view v1,v2,v3,v4,v5;
-create table t1 (a int, primary key(a));
-insert into t1 values (1), (2), (3);
-create view v1 (x) as select a from t1 where a > 1;
-select t1.a, v1.x from t1 left join v1 on (t1.a= v1.x);
-a x
-1 NULL
-2 2
-3 3
-drop table t1;
-drop view v1;
-create table t1 (a int, primary key(a));
-insert into t1 values (1), (2), (3), (200);
-create view v1 (x) as select a from t1 where a > 1;
-create view v2 (y) as select x from v1 where x < 100;
-select * from v2;
-y
-2
-3
-drop table t1;
-drop view v1,v2;
-create table t1 (a int, primary key(a));
-insert into t1 values (1), (2), (3), (200);
-create ALGORITHM=TEMPTABLE view v1 (x) as select a from t1;
-create view v2 (y) as select x from v1;
-update v2 set y=10 where y=2;
-ERROR HY000: The target table v2 of the UPDATE is not updatable
-drop table t1;
-drop view v1,v2;
-create table t1 (a int not null auto_increment, b int not null, primary key(a), unique(b));
-create view v1 (x) as select b from t1;
-insert into v1 values (1);
-select last_insert_id();
-last_insert_id()
-0
-insert into t1 (b) values (2);
-select last_insert_id();
-last_insert_id()
-2
-select * from t1;
-a b
-1 1
-2 2
-drop view v1;
-drop table t1;
-set sql_mode='ansi';
-create table t1 ("a*b" int);
-create view v1 as select "a*b" from t1;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE VIEW "v1" AS select "t1"."a*b" AS "a*b" from "t1" latin1 latin1_swedish_ci
-drop view v1;
-drop table t1;
-set sql_mode=default;
-create table t1 (t_column int);
-create view v1 as select 'a';
-select * from v1, t1;
-a t_column
-drop view v1;
-drop table t1;
-create table `t1a``b` (col1 char(2));
-create view v1 as select * from `t1a``b`;
-select * from v1;
-col1
-describe v1;
-Field Type Null Key Default Extra
-col1 char(2) YES NULL
-drop view v1;
-drop table `t1a``b`;
-create table t1 (col1 char(5),col2 char(5));
-create view v1 as select * from t1;
-drop table t1;
-create table t1 (col1 char(5),newcol2 char(5));
-insert into v1 values('a','aa');
-ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-drop table t1;
-select * from v1;
-ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-drop view v1;
-create view v1 (a,a) as select 'a','a';
-ERROR 42S21: Duplicate column name 'a'
-create table t1 (col1 int,col2 char(22));
-insert into t1 values(5,'Hello, world of views');
-create view v1 as select * from t1;
-create view v2 as select * from v1;
-update v2 set col2='Hello, view world';
-select is_updatable from information_schema.views;
-is_updatable
-YES
-YES
-select * from t1;
-col1 col2
-5 Hello, view world
-drop view v2, v1;
-drop table t1;
-create table t1 (a int, b int);
-create view v1 as select a, sum(b) from t1 group by a;
-select b from v1 use index (some_index) where b=1;
-ERROR 42000: Key 'some_index' doesn't exist in table 'v1'
-drop view v1;
-drop table t1;
-create table t1 (col1 char(5),col2 char(5));
-create view v1 (col1,col2) as select col1,col2 from t1;
-insert into v1 values('s1','p1'),('s1','p2'),('s1','p3'),('s1','p4'),('s2','p1'),('s3','p2'),('s4','p4');
-select distinct first.col2 from t1 first where first.col2 in (select second.col2 from t1 second where second.col1<>first.col1);
-col2
-p1
-p2
-p4
-select distinct first.col2 from v1 first where first.col2 in (select second.col2 from t1 second where second.col1<>first.col1);
-col2
-p1
-p2
-p4
-drop view v1;
-drop table t1;
-create table t1 (a int);
-create view v1 as select a from t1;
-insert into t1 values (1);
-SET @v0 = '2';
-PREPARE stmt FROM 'UPDATE v1 SET a = ?';
-EXECUTE stmt USING @v0;
-DEALLOCATE PREPARE stmt;
-SET @v0 = '3';
-PREPARE stmt FROM 'insert into v1 values (?)';
-EXECUTE stmt USING @v0;
-DEALLOCATE PREPARE stmt;
-SET @v0 = '4';
-PREPARE stmt FROM 'insert into v1 (a) values (?)';
-EXECUTE stmt USING @v0;
-DEALLOCATE PREPARE stmt;
-select * from t1;
-a
-2
-3
-4
-drop view v1;
-drop table t1;
-CREATE VIEW v02 AS SELECT * FROM DUAL;
-ERROR HY000: No tables used
-SHOW TABLES;
-Tables_in_test
-CREATE VIEW v1 AS SELECT EXISTS (SELECT 1 UNION SELECT 2);
-select * from v1;
-EXISTS (SELECT 1 UNION SELECT 2)
-1
-drop view v1;
-create table t1 (col1 int,col2 char(22));
-create view v1 as select * from t1;
-create index i1 on v1 (col1);
-ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
-drop view v1;
-drop table t1;
-CREATE VIEW v1 (f1,f2,f3,f4) AS SELECT connection_id(), pi(), current_user(), version();
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select connection_id() AS `f1`,pi() AS `f2`,current_user() AS `f3`,version() AS `f4` latin1 latin1_swedish_ci
-drop view v1;
-create table t1 (s1 int);
-create table t2 (s2 int);
-insert into t1 values (1), (2);
-insert into t2 values (2), (3);
-create view v1 as select * from t1,t2 union all select * from t1,t2;
-select * from v1;
-s1 s2
-1 2
-2 2
-1 3
-2 3
-1 2
-2 2
-1 3
-2 3
-drop view v1;
-drop tables t1, t2;
-create table t1 (col1 int);
-insert into t1 values (1);
-create view v1 as select count(*) from t1;
-insert into t1 values (null);
-select * from v1;
-count(*)
-2
-drop view v1;
-drop table t1;
-create table t1 (a int);
-create table t2 (a int);
-create view v1 as select a from t1;
-create view v2 as select a from t2 where a in (select a from v1);
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t2`.`a` AS `a` from `t2` where `t2`.`a` in (select `v1`.`a` from `v1`) latin1 latin1_swedish_ci
-drop view v2, v1;
-drop table t1, t2;
-CREATE VIEW `v 1` AS select 5 AS `5`;
-show create view `v 1`;
-View Create View character_set_client collation_connection
-v 1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v 1` AS select 5 AS `5` latin1 latin1_swedish_ci
-drop view `v 1`;
-create database mysqltest;
-create table mysqltest.t1 (a int, b int);
-create view mysqltest.v1 as select a from mysqltest.t1;
-alter view mysqltest.v1 as select b from mysqltest.t1;
-alter view mysqltest.v1 as select a from mysqltest.t1;
-drop database mysqltest;
-CREATE TABLE t1 (c1 int not null auto_increment primary key, c2 varchar(20), fulltext(c2));
-insert into t1 (c2) VALUES ('real Beer'),('Water'),('Kossu'),('Coca-Cola'),('Vodka'),('Wine'),('almost real Beer');
-select * from t1 WHERE match (c2) against ('Beer');
-c1 c2
-1 real Beer
-7 almost real Beer
-CREATE VIEW v1 AS SELECT * from t1 WHERE match (c2) against ('Beer');
-select * from v1;
-c1 c2
-1 real Beer
-7 almost real Beer
-drop view v1;
-drop table t1;
-create table t1 (a int);
-insert into t1 values (1),(1),(2),(2),(3),(3);
-create view v1 as select a from t1;
-select distinct a from v1;
-a
-1
-2
-3
-select distinct a from v1 limit 2;
-a
-1
-2
-select distinct a from t1 limit 2;
-a
-1
-2
-prepare stmt1 from "select distinct a from v1 limit 2";
-execute stmt1;
-a
-1
-2
-execute stmt1;
-a
-1
-2
-deallocate prepare stmt1;
-drop view v1;
-drop table t1;
-create table t1 (tg_column bigint);
-create view v1 as select count(tg_column) as vg_column from t1;
-select avg(vg_column) from v1;
-avg(vg_column)
-0.0000
-drop view v1;
-drop table t1;
-create table t1 (col1 bigint not null, primary key (col1));
-create table t2 (col1 bigint not null, key (col1));
-create view v1 as select * from t1;
-create view v2 as select * from t2;
-insert into v1 values (1);
-insert into v2 values (1);
-create view v3 (a,b) as select v1.col1 as a, v2.col1 as b from v1, v2 where v1.col1 = v2.col1;
-select * from v3;
-a b
-1 1
-show create view v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select `v1`.`col1` AS `a`,`v2`.`col1` AS `b` from (`v1` join `v2`) where `v1`.`col1` = `v2`.`col1` latin1 latin1_swedish_ci
-drop view v3, v2, v1;
-drop table t2, t1;
-create function `f``1` () returns int return 5;
-create view v1 as select test.`f``1` ();
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `test`.`f``1`() AS `test.``f````1`` ()` latin1 latin1_swedish_ci
-select * from v1;
-test.`f``1` ()
-5
-drop view v1;
-drop function `f``1`;
-create function a() returns int return 5;
-create view v1 as select a();
-select * from v1;
-a()
-5
-drop view v1;
-drop function a;
-create table t2 (col1 char collate latin1_german2_ci);
-create view v2 as select col1 collate latin1_german1_ci from t2;
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t2`.`col1` collate latin1_german1_ci AS `col1 collate latin1_german1_ci` from `t2` latin1 latin1_swedish_ci
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t2`.`col1` collate latin1_german1_ci AS `col1 collate latin1_german1_ci` from `t2` latin1 latin1_swedish_ci
-drop view v2;
-drop table t2;
-create table t1 (a int);
-insert into t1 values (1), (2);
-create view v1 as select 5 from t1 order by 1;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 5 AS `5` from `t1` order by 1 latin1 latin1_swedish_ci
-select * from v1;
-5
-5
-5
-drop view v1;
-drop table t1;
-create function x1 () returns int return 5;
-create table t1 (s1 int);
-create view v1 as select x1() from t1;
-drop function x1;
-select * from v1;
-ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 0 0 0 # 1024 0 NULL # # NULL latin1_swedish_ci NULL # N
-v1 NULL NULL NULL NULL NULL NULL # NULL NULL NULL # # NULL NULL NULL NULL View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them # NULL
-Warnings:
-Warning 1356 View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-drop view v1;
-drop table t1;
-create table t1 (a varchar(20));
-create view v1 as select a from t1;
-alter table t1 change a aa int;
-select * from v1;
-ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-show table status;
-Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
-t1 MyISAM 10 Fixed 0 0 0 # 1024 0 NULL # # NULL latin1_swedish_ci NULL # N
-v1 NULL NULL NULL NULL NULL NULL # NULL NULL NULL # # NULL NULL NULL NULL View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them # NULL
-Warnings:
-Warning 1356 View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `test`.`t1`.`a` AS `a` from `t1` latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-drop view v1;
-drop table t1;
-create view v1 as select 99999999999999999999999999999999999999999999999999999 as col1;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 99999999999999999999999999999999999999999999999999999 AS `col1` latin1 latin1_swedish_ci
-drop view v1;
-SET @old_cs_client = @@character_set_client;
-SET @old_cs_results = @@character_set_results;
-SET @old_cs_connection = @@character_set_connection;
-set names utf8;
-create table tü (cü char);
-create view vü as select cü from tü;
-insert into vü values ('ü');
-select * from vü;
-cü
-ü
-drop view vü;
-drop table tü;
-SET character_set_client = @old_cs_client;
-SET character_set_results = @old_cs_results;
-SET character_set_connection = @old_cs_connection;
-create table t1 (a int, b int);
-insert into t1 values (1,2), (1,3), (2,4), (2,5), (3,10);
-create view v1(c) as select a+1 from t1 where b >= 4;
-select c from v1 where exists (select * from t1 where a=2 and b=c);
-c
-4
-drop view v1;
-drop table t1;
-create view v1 as select cast(1 as char(3));
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(1 as char(3) charset latin1) AS `cast(1 as char(3))` latin1 latin1_swedish_ci
-select * from v1;
-cast(1 as char(3))
-1
-drop view v1;
-create table t1 (a int);
-create view v1 as select a from t1;
-create view v3 as select a from t1;
-create database mysqltest;
-rename table v1 to mysqltest.v1;
-ERROR HY000: Changing schema from 'test' to 'mysqltest' is not allowed
-rename table v1 to v2;
-rename table v3 to v1, v2 to t1;
-ERROR 42S01: Table 't1' already exists
-drop table t1;
-drop view v2,v3;
-drop database mysqltest;
-create view v1 as select 'a',1;
-create view v2 as select * from v1 union all select * from v1;
-create view v3 as select * from v2 where 1 = (select `1` from v2);
-create view v4 as select * from v3;
-select * from v4;
-ERROR 21000: Subquery returns more than 1 row
-drop view v4, v3, v2, v1;
-create view v1 as select 5 into @w;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'into @w' at line 1
-create view v1 as select 5 into outfile 'ttt';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'into outfile 'ttt'' at line 1
-create table t1 (a int);
-create view v1 as select a from t1 procedure analyse();
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'procedure analyse()' at line 1
-create view v1 as select 1 from (select 1) as d1;
-drop view v1;
-drop table t1;
-create table t1 (s1 int, primary key (s1));
-create view v1 as select * from t1;
-insert into v1 values (1) on duplicate key update s1 = 7;
-insert into v1 values (1) on duplicate key update s1 = 7;
-select * from t1;
-s1
-7
-drop view v1;
-drop table t1;
-create table t1 (col1 int);
-create table t2 (col1 int);
-create table t3 (col1 datetime not null);
-create view v1 as select * from t1;
-create view v2 as select * from v1;
-create view v3 as select v2.col1 from v2,t2 where v2.col1 = t2.col1;
-insert into v2 values ((select max(col1) from v1));
-ERROR HY000: The definition of table 'v1' prevents operation INSERT on table 'v2'
-insert into t1 values ((select max(col1) from v1));
-ERROR HY000: The definition of table 'v1' prevents operation INSERT on table 't1'
-insert into v2 values ((select max(col1) from v1));
-ERROR HY000: The definition of table 'v1' prevents operation INSERT on table 'v2'
-insert into v2 values ((select max(col1) from t1));
-ERROR HY000: The definition of table 'v2' prevents operation INSERT on table 'v2'
-insert into t1 values ((select max(col1) from t1));
-ERROR HY000: Table 't1' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into v2 values ((select max(col1) from t1));
-ERROR HY000: The definition of table 'v2' prevents operation INSERT on table 'v2'
-insert into v2 values ((select max(col1) from v2));
-ERROR HY000: Table 'v2' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into t1 values ((select max(col1) from v2));
-ERROR HY000: The definition of table 'v2' prevents operation INSERT on table 't1'
-insert into v2 values ((select max(col1) from v2));
-ERROR HY000: Table 'v2' is specified twice, both as a target for 'INSERT' and as a separate source for data
-insert into v3 (col1) values ((select max(col1) from v1));
-ERROR HY000: The definition of table 'v1' prevents operation INSERT on table 'v3'
-insert into v3 (col1) values ((select max(col1) from t1));
-ERROR HY000: The definition of table 'v3' prevents operation INSERT on table 'v3'
-insert into v3 (col1) values ((select max(col1) from v2));
-ERROR HY000: The definition of table 'v2' prevents operation INSERT on table 'v3'
-insert into v3 (col1) values ((select CONVERT_TZ('20050101000000','UTC','MET') from v2));
-ERROR HY000: The definition of table 'v2' prevents operation INSERT on table 'v3'
-insert into v3 (col1) values ((select CONVERT_TZ('20050101000000','UTC','MET') from t2));
-insert into t3 values ((select CONVERT_TZ('20050101000000','UTC','MET') from t2));
-ERROR 23000: Column 'col1' cannot be null
-create algorithm=temptable view v4 as select * from t1;
-insert into t1 values (1),(2),(3);
-insert into t1 (col1) values ((select max(col1) from v4));
-select * from t1;
-col1
-NULL
-1
-2
-3
-3
-drop view v4,v3,v2,v1;
-drop table t1,t2,t3;
-create table t1 (s1 int);
-create view v1 as select * from t1;
-handler v1 open as xx;
-ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
-drop view v1;
-drop table t1;
-create table t1(a int);
-insert into t1 values (0), (1), (2), (3);
-create table t2 (a int);
-insert into t2 select a from t1 where a > 1;
-create view v1 as select a from t1 where a > 1;
-select * from t1 left join (t2 as t, v1) on v1.a=t1.a;
-a a a
-0 NULL NULL
-1 NULL NULL
-2 2 2
-2 3 2
-3 2 3
-3 3 3
-select * from t1 left join (t2 as t, t2) on t2.a=t1.a;
-a a a
-0 NULL NULL
-1 NULL NULL
-2 2 2
-2 3 2
-3 2 3
-3 3 3
-drop view v1;
-drop table t1, t2;
-create table t1 (s1 char);
-create view v1 as select s1 collate latin1_german1_ci as s1 from t1;
-insert into v1 values ('a');
-select * from v1;
-s1
-a
-update v1 set s1='b';
-select * from v1;
-s1
-b
-update v1,t1 set v1.s1='c' where t1.s1=v1.s1;
-select * from v1;
-s1
-c
-prepare stmt1 from "update v1,t1 set v1.s1=? where t1.s1=v1.s1";
-set @arg='d';
-execute stmt1 using @arg;
-select * from v1;
-s1
-d
-set @arg='e';
-execute stmt1 using @arg;
-select * from v1;
-s1
-e
-deallocate prepare stmt1;
-drop view v1;
-drop table t1;
-create table t1 (a int);
-create table t2 (a int);
-create view v1 as select * from t1;
-lock tables t1 read, v1 read;
-select * from v1;
-a
-select * from t2;
-ERROR HY000: Table 't2' was not locked with LOCK TABLES
-unlock tables;
-drop view v1;
-drop table t1, t2;
-create table t1 (a int);
-create view v1 as select * from t1 where a < 2 with check option;
-insert into v1 values(1);
-insert into v1 values(3);
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-insert ignore into v1 values (2),(3),(0);
-Warnings:
-Warning 1369 CHECK OPTION failed `test`.`v1`
-Warning 1369 CHECK OPTION failed `test`.`v1`
-select * from t1;
-a
-1
-0
-delete from t1;
-insert into v1 SELECT 1;
-insert into v1 SELECT 3;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-create table t2 (a int);
-insert into t2 values (2),(3),(0);
-insert ignore into v1 SELECT a from t2;
-Warnings:
-Warning 1369 CHECK OPTION failed `test`.`v1`
-Warning 1369 CHECK OPTION failed `test`.`v1`
-select * from t1 order by a desc;
-a
-1
-0
-update v1 set a=-1 where a=0;
-update v1 set a=2 where a=1;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-select * from t1 order by a desc;
-a
-1
--1
-update v1 set a=0 where a=0;
-insert into t2 values (1);
-update v1,t2 set v1.a=v1.a-1 where v1.a=t2.a;
-select * from t1 order by a desc;
-a
-0
--1
-update v1 set a=a+1;
-update ignore v1,t2 set v1.a=v1.a+1 where v1.a=t2.a;
-Warnings:
-Warning 1369 CHECK OPTION failed `test`.`v1`
-select * from t1;
-a
-1
-1
-drop view v1;
-drop table t1, t2;
-create table t1 (a int);
-create view v1 as select * from t1 where a < 2 with check option;
-create view v2 as select * from v1 where a > 0 with local check option;
-create view v3 as select * from v1 where a > 0 with cascaded check option;
-insert into v2 values (1);
-insert into v3 values (1);
-insert into v2 values (0);
-ERROR 44000: CHECK OPTION failed `test`.`v2`
-insert into v3 values (0);
-ERROR 44000: CHECK OPTION failed `test`.`v3`
-insert into v2 values (2);
-insert into v3 values (2);
-ERROR 44000: CHECK OPTION failed `test`.`v3`
-select * from t1;
-a
-1
-1
-2
-drop view v3,v2,v1;
-drop table t1;
-create table t1 (a int, primary key (a));
-create view v1 as select * from t1 where a < 2 with check option;
-insert into v1 values (1) on duplicate key update a=2;
-insert into v1 values (1) on duplicate key update a=2;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-insert ignore into v1 values (1) on duplicate key update a=2;
-Warnings:
-Warning 1369 CHECK OPTION failed `test`.`v1`
-select * from t1;
-a
-1
-drop view v1;
-drop table t1;
-create table t1 (s1 int);
-create view v1 as select * from t1;
-create view v2 as select * from v1;
-alter view v1 as select * from v2;
-ERROR 42S02: Table 'test.v1' doesn't exist
-alter view v1 as select * from v1;
-ERROR 42S02: Table 'test.v1' doesn't exist
-create or replace view v1 as select * from v2;
-ERROR 42S02: Table 'test.v1' doesn't exist
-create or replace view v1 as select * from v1;
-ERROR 42S02: Table 'test.v1' doesn't exist
-drop view v2,v1;
-drop table t1;
-create table t1 (a int);
-create view v1 as select * from t1;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` latin1 latin1_swedish_ci
-alter algorithm=undefined view v1 as select * from t1 with check option;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` WITH CASCADED CHECK OPTION latin1 latin1_swedish_ci
-alter algorithm=merge view v1 as select * from t1 with cascaded check option;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=MERGE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` WITH CASCADED CHECK OPTION latin1 latin1_swedish_ci
-alter algorithm=temptable view v1 as select * from t1;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=TEMPTABLE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` latin1 latin1_swedish_ci
-drop view v1;
-drop table t1;
-create table t1 (s1 int);
-create table t2 (s1 int);
-create view v2 as select * from t2 where s1 in (select s1 from t1);
-insert into v2 values (5);
-insert into t1 values (5);
-select * from v2;
-s1
-5
-update v2 set s1 = 0;
-select * from v2;
-s1
-select * from t2;
-s1
-0
-alter view v2 as select * from t2 where s1 in (select s1 from t1) with check option;
-insert into v2 values (5);
-update v2 set s1 = 1;
-ERROR 44000: CHECK OPTION failed `test`.`v2`
-insert into t1 values (1);
-update v2 set s1 = 1;
-select * from v2;
-s1
-1
-select * from t2;
-s1
-0
-1
-prepare stmt1 from "select * from v2;";
-execute stmt1;
-s1
-1
-insert into t1 values (0);
-execute stmt1;
-s1
-0
-1
-deallocate prepare stmt1;
-drop view v2;
-drop table t1, t2;
-create table t1 (t time);
-create view v1 as select substring_index(t,':',2) as t from t1;
-insert into t1 (t) values ('12:24:10');
-select substring_index(t,':',2) from t1;
-substring_index(t,':',2)
-12:24
-select substring_index(t,':',2) from v1;
-substring_index(t,':',2)
-12:24
-drop view v1;
-drop table t1;
-create table t1 (s1 tinyint);
-create view v1 as select * from t1 where s1 <> 0 with local check option;
-create view v2 as select * from v1 with cascaded check option;
-insert into v2 values (0);
-ERROR 44000: CHECK OPTION failed `test`.`v2`
-drop view v2, v1;
-drop table t1;
-create table t1 (s1 int);
-create view v1 as select * from t1 where s1 < 5 with check option;
-insert ignore into v1 values (6);
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-insert ignore into v1 values (6),(3);
-Warnings:
-Warning 1369 CHECK OPTION failed `test`.`v1`
-select * from t1;
-s1
-3
-drop view v1;
-drop table t1;
-SET sql_mode = 'NO_ENGINE_SUBSTITUTION';
-create table t1 (s1 tinyint);
-create trigger t1_bi before insert on t1 for each row set new.s1 = 500;
-create view v1 as select * from t1 where s1 <> 127 with check option;
-insert into v1 values (0);
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-select * from v1;
-s1
-select * from t1;
-s1
-drop trigger t1_bi;
-drop view v1;
-drop table t1;
-SET sql_mode = default;
-create table t1 (s1 tinyint);
-create view v1 as select * from t1 where s1 <> 0;
-create view v2 as select * from v1 where s1 <> 1 with cascaded check option;
-insert into v2 values (0);
-ERROR 44000: CHECK OPTION failed `test`.`v2`
-select * from v2;
-s1
-select * from t1;
-s1
-drop view v2, v1;
-drop table t1;
-create table t1 (a int, b char(10));
-create view v1 as select * from t1 where a != 0 with check option;
-load data infile '../../std_data/loaddata3.dat' into table v1 fields terminated by '' enclosed by '' ignore 1 lines;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-select * from t1;
-a b
-1 row 1
-2 row 2
-select * from v1;
-a b
-1 row 1
-2 row 2
-delete from t1;
-load data infile '../../std_data/loaddata3.dat' ignore into table v1 fields terminated by '' enclosed by '' ignore 1 lines;
-Warnings:
-Note 1265 Data truncated for column 'a' at row 1
-Note 1265 Data truncated for column 'a' at row 2
-Warning 1366 Incorrect integer value: 'error ' for column 'a' at row 3
-Warning 1369 CHECK OPTION failed `test`.`v1`
-Note 1265 Data truncated for column 'a' at row 3
-Warning 1366 Incorrect integer value: 'wrong end ' for column 'a' at row 4
-Warning 1369 CHECK OPTION failed `test`.`v1`
-select * from t1 order by a,b;
-a b
-1 row 1
-2 row 2
-3 row 3
-select * from v1 order by a,b;
-a b
-1 row 1
-2 row 2
-3 row 3
-drop view v1;
-drop table t1;
-create table t1 (a text, b text);
-create view v1 as select * from t1 where a <> 'Field A' with check option;
-load data infile '../../std_data/loaddata2.dat' into table v1 fields terminated by ',' enclosed by '''';
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-select concat('|',a,'|'), concat('|',b,'|') from t1;
-concat('|',a,'|') concat('|',b,'|')
-select concat('|',a,'|'), concat('|',b,'|') from v1;
-concat('|',a,'|') concat('|',b,'|')
-delete from t1;
-load data infile '../../std_data/loaddata2.dat' ignore into table v1 fields terminated by ',' enclosed by '''';
-Warnings:
-Warning 1369 CHECK OPTION failed `test`.`v1`
-Warning 1261 Row 2 doesn't contain data for all columns
-select concat('|',a,'|'), concat('|',b,'|') from t1;
-concat('|',a,'|') concat('|',b,'|')
-|Field 1| |Field 2'
-Field 3,'Field 4|
-|Field 5' ,'Field 6| NULL
-|Field 6| | 'Field 7'|
-select concat('|',a,'|'), concat('|',b,'|') from v1;
-concat('|',a,'|') concat('|',b,'|')
-|Field 1| |Field 2'
-Field 3,'Field 4|
-|Field 5' ,'Field 6| NULL
-|Field 6| | 'Field 7'|
-drop view v1;
-drop table t1;
-create table t1 (s1 smallint);
-create view v1 as select * from t1 where 20 < (select (s1) from t1);
-insert into v1 values (30);
-ERROR HY000: The target table v1 of the INSERT is not insertable-into
-create view v2 as select * from t1;
-create view v3 as select * from t1 where 20 < (select (s1) from v2);
-insert into v3 values (30);
-ERROR HY000: The target table v3 of the INSERT is not insertable-into
-create view v4 as select * from v2 where 20 < (select (s1) from t1);
-insert into v4 values (30);
-ERROR HY000: The target table v4 of the INSERT is not insertable-into
-drop view v4, v3, v2, v1;
-drop table t1;
-create table t1 (a int);
-create view v1 as select * from t1;
-check table t1,v1;
-Table Op Msg_type Msg_text
-test.t1 check status OK
-test.v1 check status OK
-check table v1,t1;
-Table Op Msg_type Msg_text
-test.v1 check status OK
-test.t1 check status OK
-drop table t1;
-check table v1;
-Table Op Msg_type Msg_text
-test.v1 check Error Table 'test.t1' doesn't exist
-test.v1 check Error View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-test.v1 check error Corrupt
-drop view v1;
-create table t1 (a int);
-create table t2 (a int);
-create table t3 (a int);
-insert into t1 values (1), (2), (3);
-insert into t2 values (1), (3);
-insert into t3 values (1), (2), (4);
-create view v3 (a,b) as select t1.a as a, t2.a as b from t1 left join t2 on (t1.a=t2.a);
-select * from t3 left join v3 on (t3.a = v3.a);
-a a b
-1 1 1
-2 2 NULL
-4 NULL NULL
-explain extended select * from t3 left join v3 on (t3.a = v3.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 3 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t3`.`a` AS `a`,`test`.`t1`.`a` AS `a`,`test`.`t2`.`a` AS `b` from `test`.`t3` left join (`test`.`t1` left join `test`.`t2` on(`test`.`t2`.`a` = `test`.`t3`.`a`)) on(`test`.`t1`.`a` = `test`.`t3`.`a`) where 1
-create view v1 (a) as select a from t1;
-create view v2 (a) as select a from t2;
-create view v4 (a,b) as select v1.a as a, v2.a as b from v1 left join v2 on (v1.a=v2.a);
-select * from t3 left join v4 on (t3.a = v4.a);
-a a b
-1 1 1
-2 2 NULL
-4 NULL NULL
-explain extended select * from t3 left join v4 on (t3.a = v4.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t3 ALL NULL NULL NULL NULL 3 100.00
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t3`.`a` AS `a`,`test`.`t1`.`a` AS `a`,`test`.`t2`.`a` AS `b` from `test`.`t3` left join (`test`.`t1` left join (`test`.`t2`) on(`test`.`t2`.`a` = `test`.`t3`.`a`)) on(`test`.`t1`.`a` = `test`.`t3`.`a`) where 1
-prepare stmt1 from "select * from t3 left join v4 on (t3.a = v4.a);";
-execute stmt1;
-a a b
-1 1 1
-2 2 NULL
-4 NULL NULL
-execute stmt1;
-a a b
-1 1 1
-2 2 NULL
-4 NULL NULL
-deallocate prepare stmt1;
-drop view v4,v3,v2,v1;
-drop tables t1,t2,t3;
-create table t1 (a int, primary key (a), b int);
-create table t2 (a int, primary key (a));
-insert into t1 values (1,100), (2,200);
-insert into t2 values (1), (3);
-create view v3 (a,b) as select t1.a as a, t2.a as b from t1, t2;
-update v3 set a= 10 where a=1;
-select * from t1;
-a b
-10 100
-2 200
-select * from t2;
-a
-1
-3
-create view v2 (a,b) as select t1.b as a, t2.a as b from t1, t2;
-set updatable_views_with_limit=NO;
-update v2 set a= 10 where a=200 limit 1;
-ERROR HY000: The target table v2 of the UPDATE is not updatable
-set updatable_views_with_limit=DEFAULT;
-select * from v3;
-a b
-2 1
-10 1
-2 3
-10 3
-select * from v2;
-a b
-100 1
-200 1
-100 3
-200 3
-set @a= 10;
-set @b= 100;
-prepare stmt1 from "update v3 set a= ? where a=?";
-execute stmt1 using @a,@b;
-select * from v3;
-a b
-2 1
-10 1
-2 3
-10 3
-set @a= 300;
-set @b= 10;
-execute stmt1 using @a,@b;
-select * from v3;
-a b
-2 1
-300 1
-2 3
-300 3
-deallocate prepare stmt1;
-drop view v3,v2;
-drop tables t1,t2;
-create table t1 (a int, primary key (a), b int);
-create table t2 (a int, primary key (a), b int);
-insert into t2 values (1000, 2000);
-create view v3 (a,b) as select t1.a as a, t2.a as b from t1, t2;
-insert into v3 values (1,2);
-ERROR HY000: Can not insert into join view 'test.v3' without fields list
-insert into v3 select * from t2;
-ERROR HY000: Can not insert into join view 'test.v3' without fields list
-insert into v3(a,b) values (1,2);
-ERROR HY000: Can not modify more than one base table through a join view 'test.v3'
-insert into v3(a,b) select * from t2;
-ERROR HY000: Can not modify more than one base table through a join view 'test.v3'
-insert into v3(a) values (1);
-insert into v3(b) values (10);
-insert into v3(a) select a from t2;
-insert into v3(b) select b from t2;
-Warnings:
-Warning 1048 Column 'a' cannot be null
-insert into v3(a) values (1) on duplicate key update a=a+10000+VALUES(a);
-select * from t1;
-a b
-10002 NULL
-10 NULL
-1000 NULL
-select * from t2;
-a b
-1000 2000
-10 NULL
-2000 NULL
-0 NULL
-delete from v3;
-ERROR HY000: Can not delete from join view 'test.v3'
-delete v3,t1 from v3,t1;
-ERROR HY000: Can not delete from join view 'test.v3'
-delete t1,v3 from t1,v3;
-ERROR HY000: Can not delete from join view 'test.v3'
-delete from t1;
-prepare stmt1 from "insert into v3(a) values (?);";
-set @a= 100;
-execute stmt1 using @a;
-set @a= 300;
-execute stmt1 using @a;
-deallocate prepare stmt1;
-prepare stmt1 from "insert into v3(a) select ?;";
-set @a= 101;
-execute stmt1 using @a;
-set @a= 301;
-execute stmt1 using @a;
-deallocate prepare stmt1;
-select * from v3;
-a b
-100 0
-100 10
-100 1000
-100 2000
-101 0
-101 10
-101 1000
-101 2000
-300 0
-300 10
-300 1000
-300 2000
-301 0
-301 10
-301 1000
-301 2000
-drop view v3;
-drop tables t1,t2;
-create table t1(f1 int);
-create view v1 as select f1 from t1;
-select * from v1 where F1 = 1;
-f1
-drop view v1;
-drop table t1;
-create table t1(c1 int);
-create table t2(c2 int);
-insert into t1 values (1),(2),(3);
-insert into t2 values (1);
-SELECT c1 FROM t1 WHERE c1 IN (SELECT c2 FROM t2);
-c1
-1
-SELECT c1 FROM t1 WHERE EXISTS (SELECT c2 FROM t2 WHERE c2 = c1);
-c1
-1
-create view v1 as SELECT c1 FROM t1 WHERE c1 IN (SELECT c2 FROM t2);
-create view v2 as SELECT c1 FROM t1 WHERE EXISTS (SELECT c2 FROM t2 WHERE c2 = c1);
-select * from v1;
-c1
-1
-select * from v2;
-c1
-1
-select * from (select c1 from v2) X;
-c1
-1
-drop view v2, v1;
-drop table t1, t2;
-CREATE TABLE t1 (C1 INT, C2 INT);
-CREATE TABLE t2 (C2 INT);
-CREATE VIEW v1 AS SELECT C2 FROM t2;
-CREATE VIEW v2 AS SELECT C1 FROM t1 LEFT OUTER JOIN v1 USING (C2);
-SELECT * FROM v2;
-C1
-drop view v2, v1;
-drop table t1, t2;
-create table t1 (col1 char(5),col2 int,col3 int);
-insert into t1 values ('one',10,25), ('two',10,50), ('two',10,50), ('one',20,25), ('one',30,25);
-create view v1 as select * from t1;
-select col1,group_concat(col2,col3) from t1 group by col1;
-col1 group_concat(col2,col3)
-one 1025,2025,3025
-two 1050,1050
-select col1,group_concat(col2,col3) from v1 group by col1;
-col1 group_concat(col2,col3)
-one 1025,2025,3025
-two 1050,1050
-drop view v1;
-drop table t1;
-create table t1 (s1 int, s2 char);
-create view v1 as select s1, s2 from t1;
-select s2 from v1 vq1 where 2 = (select count(*) from v1 vq2 having vq1.s2 = vq2.s2);
-ERROR 42S22: Unknown column 'vq2.s2' in 'having clause'
-select s2 from v1 vq1 where 2 = (select count(*) aa from v1 vq2 having vq1.s2 = aa);
-s2
-drop view v1;
-drop table t1;
-CREATE TABLE t1 (a1 int);
-CREATE TABLE t2 (a2 int);
-INSERT INTO t1 VALUES (1), (2), (3), (4);
-INSERT INTO t2 VALUES (1), (2), (3);
-CREATE VIEW v1(a,b) AS SELECT a1,a2 FROM t1 JOIN t2 ON a1=a2 WHERE a1>1;
-SELECT * FROM v1;
-a b
-2 2
-3 3
-CREATE TABLE t3 SELECT * FROM v1;
-SELECT * FROM t3;
-a b
-2 2
-3 3
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-create table t1 (a int);
-create table t2 like t1;
-create table t3 like t1;
-create view v1 as select t1.a x, t2.a y from t1 join t2 where t1.a=t2.a;
-insert into t3 select x from v1;
-insert into t2 select x from v1;
-drop view v1;
-drop table t1,t2,t3;
-CREATE TABLE t1 (col1 int PRIMARY KEY, col2 varchar(10));
-INSERT INTO t1 VALUES(1,'trudy');
-INSERT INTO t1 VALUES(2,'peter');
-INSERT INTO t1 VALUES(3,'sanja');
-INSERT INTO t1 VALUES(4,'monty');
-INSERT INTO t1 VALUES(5,'david');
-INSERT INTO t1 VALUES(6,'kent');
-INSERT INTO t1 VALUES(7,'carsten');
-INSERT INTO t1 VALUES(8,'ranger');
-INSERT INTO t1 VALUES(10,'matt');
-CREATE TABLE t2 (col1 int, col2 int, col3 char(1));
-INSERT INTO t2 VALUES (1,1,'y');
-INSERT INTO t2 VALUES (1,2,'y');
-INSERT INTO t2 VALUES (2,1,'n');
-INSERT INTO t2 VALUES (3,1,'n');
-INSERT INTO t2 VALUES (4,1,'y');
-INSERT INTO t2 VALUES (4,2,'n');
-INSERT INTO t2 VALUES (4,3,'n');
-INSERT INTO t2 VALUES (6,1,'n');
-INSERT INTO t2 VALUES (8,1,'y');
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT a.col1,a.col2,b.col2,b.col3
-FROM t1 a LEFT JOIN t2 b ON a.col1=b.col1
-WHERE b.col2 IS NULL OR
-b.col2=(SELECT MAX(col2) FROM t2 b WHERE b.col1=a.col1);
-col1 col2 col2 col3
-1 trudy 2 y
-2 peter 1 n
-3 sanja 1 n
-4 monty 3 n
-5 david NULL NULL
-6 kent 1 n
-7 carsten NULL NULL
-8 ranger 1 y
-10 matt NULL NULL
-SELECT a.col1,a.col2,b.col2,b.col3
-FROM v1 a LEFT JOIN t2 b ON a.col1=b.col1
-WHERE b.col2 IS NULL OR
-b.col2=(SELECT MAX(col2) FROM t2 b WHERE b.col1=a.col1);
-col1 col2 col2 col3
-1 trudy 2 y
-2 peter 1 n
-3 sanja 1 n
-4 monty 3 n
-5 david NULL NULL
-6 kent 1 n
-7 carsten NULL NULL
-8 ranger 1 y
-10 matt NULL NULL
-CREATE VIEW v2 AS SELECT * FROM t2;
-SELECT a.col1,a.col2,b.col2,b.col3
-FROM v2 b RIGHT JOIN v1 a ON a.col1=b.col1
-WHERE b.col2 IS NULL OR
-b.col2=(SELECT MAX(col2) FROM v2 b WHERE b.col1=a.col1);
-col1 col2 col2 col3
-1 trudy 2 y
-2 peter 1 n
-3 sanja 1 n
-4 monty 3 n
-5 david NULL NULL
-6 kent 1 n
-7 carsten NULL NULL
-8 ranger 1 y
-10 matt NULL NULL
-SELECT a.col1,a.col2,b.col2,b.col3
-FROM v2 b RIGHT JOIN v1 a ON a.col1=b.col1
-WHERE a.col1 IN (1,5,9) AND
-(b.col2 IS NULL OR
-b.col2=(SELECT MAX(col2) FROM v2 b WHERE b.col1=a.col1));
-col1 col2 col2 col3
-1 trudy 2 y
-5 david NULL NULL
-CREATE VIEW v3 AS SELECT * FROM t1 WHERE col1 IN (1,5,9);
-SELECT a.col1,a.col2,b.col2,b.col3
-FROM v2 b RIGHT JOIN v3 a ON a.col1=b.col1
-WHERE b.col2 IS NULL OR
-b.col2=(SELECT MAX(col2) FROM v2 b WHERE b.col1=a.col1);
-col1 col2 col2 col3
-1 trudy 2 y
-5 david NULL NULL
-DROP VIEW v1,v2,v3;
-DROP TABLE t1,t2;
-create table t1 as select 1 A union select 2 union select 3;
-create table t2 as select * from t1;
-create view v1 as select * from t1 where a in (select * from t2);
-select * from v1 A, v1 B where A.a = B.a;
-A A
-1 1
-2 2
-3 3
-create table t3 as select a a,a b from t2;
-create view v2 as select * from t3 where
-a in (select * from t1) or b in (select * from t2);
-select * from v2 A, v2 B where A.a = B.b;
-a b a b
-1 1 1 1
-2 2 2 2
-3 3 3 3
-drop view v1, v2;
-drop table t1, t2, t3;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (b int);
-INSERT INTO t1 VALUES (1), (2), (3), (4);
-INSERT INTO t2 VALUES (4), (2);
-CREATE VIEW v1 AS SELECT * FROM t1,t2 WHERE t1.a=t2.b;
-SELECT * FROM v1;
-a b
-2 2
-4 4
-CREATE VIEW v2 AS SELECT * FROM v1;
-SELECT * FROM v2;
-a b
-2 2
-4 4
-DROP VIEW v2,v1;
-DROP TABLE t1, t2;
-create table t1 (a int);
-create view v1 as select sum(a) from t1 group by a;
-create procedure p1()
-begin
-select * from v1;
-end//
-call p1();
-sum(a)
-call p1();
-sum(a)
-drop procedure p1;
-drop view v1;
-drop table t1;
-CREATE TABLE t1(a char(2) primary key, b char(2));
-CREATE TABLE t2(a char(2), b char(2), index i(a));
-INSERT INTO t1 VALUES ('a','1'), ('b','2');
-INSERT INTO t2 VALUES ('a','5'), ('a','6'), ('b','5'), ('b','6');
-CREATE VIEW v1 AS
-SELECT t1.b as c, t2.b as d FROM t1,t2 WHERE t1.a=t2.a;
-SELECT d, c FROM v1 ORDER BY d,c;
-d c
-5 1
-5 2
-6 1
-6 2
-DROP VIEW v1;
-DROP TABLE t1, t2;
-create table t1 (s1 int);
-create view v1 as select sum(distinct s1) from t1;
-select * from v1;
-sum(distinct s1)
-NULL
-drop view v1;
-create view v1 as select avg(distinct s1) from t1;
-select * from v1;
-avg(distinct s1)
-NULL
-drop view v1;
-drop table t1;
-create view v1 as select cast(1 as decimal);
-select * from v1;
-cast(1 as decimal)
-1
-drop view v1;
-create table t1(f1 int);
-create table t2(f2 int);
-insert into t1 values(1),(2),(3);
-insert into t2 values(1),(2),(3);
-create view v1 as select * from t1,t2 where f1=f2;
-create table t3 (f1 int, f2 int);
-insert into t3 select * from v1 order by 1;
-select * from t3;
-f1 f2
-1 1
-2 2
-3 3
-drop view v1;
-drop table t1,t2,t3;
-create view v1 as select '\\','\\shazam';
-select * from v1;
-\ \shazam
-\ \shazam
-drop view v1;
-create view v1 as select '\'','\shazam';
-select * from v1;
-' shazam
-' shazam
-drop view v1;
-create view v1 as select 'k','K';
-select * from v1;
-k My_exp_K
-k K
-drop view v1;
-create table t1 (s1 int);
-create view v1 as select s1, 's1' from t1;
-select * from v1;
-s1 My_exp_s1
-drop view v1;
-create view v1 as select 's1', s1 from t1;
-select * from v1;
-My_exp_s1 s1
-drop view v1;
-create view v1 as select 's1', s1, 1 as My_exp_s1 from t1;
-select * from v1;
-My_exp_1_s1 s1 My_exp_s1
-drop view v1;
-create view v1 as select 1 as My_exp_s1, 's1', s1 from t1;
-select * from v1;
-My_exp_s1 My_exp_1_s1 s1
-drop view v1;
-create view v1 as select 1 as s1, 's1', 's1' from t1;
-select * from v1;
-s1 My_exp_s1 My_exp_1_s1
-drop view v1;
-create view v1 as select 's1', 's1', 1 as s1 from t1;
-select * from v1;
-My_exp_1_s1 My_exp_s1 s1
-drop view v1;
-create view v1 as select s1, 's1', 's1' from t1;
-select * from v1;
-s1 My_exp_s1 My_exp_1_s1
-drop view v1;
-create view v1 as select 's1', 's1', s1 from t1;
-select * from v1;
-My_exp_1_s1 My_exp_s1 s1
-drop view v1;
-create view v1 as select 1 as s1, 's1', s1 from t1;
-ERROR 42S21: Duplicate column name 's1'
-create view v1 as select 's1', s1, 1 as s1 from t1;
-ERROR 42S21: Duplicate column name 's1'
-drop table t1;
-create view v1(k, K) as select 1,2;
-ERROR 42S21: Duplicate column name 'K'
-create view v1 as SELECT TIME_FORMAT(SEC_TO_TIME(3600),'%H:%i') as t;
-select * from v1;
-t
-01:00
-drop view v1;
-create table t1 (a timestamp default now());
-create table t2 (b timestamp default now());
-create view v1 as select a,b,t1.a < now() from t1,t2 where t1.a < now();
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t2`.`b` AS `b`,`t1`.`a` < current_timestamp() AS `t1.a < now()` from (`t1` join `t2`) where `t1`.`a` < current_timestamp() latin1 latin1_swedish_ci
-drop view v1;
-drop table t1, t2;
-CREATE TABLE t1 ( a varchar(50) );
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE a = CURRENT_USER();
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` where `t1`.`a` = current_user() latin1 latin1_swedish_ci
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE a = VERSION();
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` where `t1`.`a` = version() latin1 latin1_swedish_ci
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE a = DATABASE();
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` where `t1`.`a` = database() latin1 latin1_swedish_ci
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (col1 time);
-CREATE TABLE t2 (col1 time);
-CREATE VIEW v1 AS SELECT CONVERT_TZ(col1,'GMT','MET') FROM t1;
-CREATE VIEW v2 AS SELECT CONVERT_TZ(col1,'GMT','MET') FROM t2;
-CREATE VIEW v3 AS SELECT CONVERT_TZ(col1,'GMT','MET') FROM t1;
-CREATE VIEW v4 AS SELECT CONVERT_TZ(col1,'GMT','MET') FROM t2;
-CREATE VIEW v5 AS SELECT CONVERT_TZ(col1,'GMT','MET') FROM t1;
-CREATE VIEW v6 AS SELECT CONVERT_TZ(col1,'GMT','MET') FROM t2;
-DROP TABLE t1;
-CHECK TABLE v1, v2, v3, v4, v5, v6;
-Table Op Msg_type Msg_text
-test.v1 check Error Table 'test.t1' doesn't exist
-test.v1 check Error View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-test.v1 check error Corrupt
-test.v2 check status OK
-test.v3 check Error Table 'test.t1' doesn't exist
-test.v3 check Error View 'test.v3' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-test.v3 check error Corrupt
-test.v4 check status OK
-test.v5 check Error Table 'test.t1' doesn't exist
-test.v5 check Error View 'test.v5' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-test.v5 check error Corrupt
-test.v6 check status OK
-drop view v1, v2, v3, v4, v5, v6;
-drop table t2;
-drop function if exists f1;
-drop function if exists f2;
-CREATE TABLE t1 (col1 time);
-CREATE TABLE t2 (col1 time);
-CREATE TABLE t3 (col1 time);
-create function f1 () returns int return (select max(col1) from t1);
-create function f2 () returns int return (select max(col1) from t2);
-CREATE VIEW v1 AS SELECT f1() FROM t3;
-CREATE VIEW v2 AS SELECT f2() FROM t3;
-CREATE VIEW v3 AS SELECT f1() FROM t3;
-CREATE VIEW v4 AS SELECT f2() FROM t3;
-CREATE VIEW v5 AS SELECT f1() FROM t3;
-CREATE VIEW v6 AS SELECT f2() FROM t3;
-drop function f1;
-CHECK TABLE v1, v2, v3, v4, v5, v6;
-Table Op Msg_type Msg_text
-test.v1 check Error FUNCTION test.f1 does not exist
-test.v1 check Error View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-test.v1 check error Corrupt
-test.v2 check status OK
-test.v3 check Error FUNCTION test.f1 does not exist
-test.v3 check Error View 'test.v3' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-test.v3 check error Corrupt
-test.v4 check status OK
-test.v5 check Error FUNCTION test.f1 does not exist
-test.v5 check Error View 'test.v5' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-test.v5 check error Corrupt
-test.v6 check status OK
-create function f1 () returns int return (select max(col1) from t1);
-DROP TABLE t1;
-CHECK TABLE v1, v2, v3, v4, v5, v6;
-Table Op Msg_type Msg_text
-test.v1 check status OK
-test.v2 check status OK
-test.v3 check status OK
-test.v4 check status OK
-test.v5 check status OK
-test.v6 check status OK
-drop function f1;
-drop function f2;
-drop view v1, v2, v3, v4, v5, v6;
-drop table t2,t3;
-create table t1 (f1 date);
-insert into t1 values ('2005-01-01'),('2005-02-02');
-create view v1 as select * from t1;
-select * from v1 where f1='2005.02.02';
-f1
-2005-02-02
-select * from v1 where '2005.02.02'=f1;
-f1
-2005-02-02
-drop view v1;
-drop table t1;
-CREATE VIEW v1 AS SELECT ENCRYPT("dhgdhgd");
-SELECT * FROM v1;
-drop view v1;
-CREATE VIEW v1 AS SELECT SUBSTRING_INDEX("dkjhgd:kjhdjh", ":", 1);
-SELECT * FROM v1;
-SUBSTRING_INDEX("dkjhgd:kjhdjh", ":", 1)
-dkjhgd
-drop view v1;
-create table t1 (f59 int, f60 int, f61 int);
-insert into t1 values (19,41,32);
-create view v1 as select f59, f60 from t1 where f59 in
-(select f59 from t1);
-update v1 set f60=2345;
-ERROR HY000: The target table v1 of the UPDATE is not updatable
-drop view v1;
-drop table t1;
-create table t1 (s1 int);
-create view v1 as select var_samp(s1) from t1;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select var_samp(`t1`.`s1`) AS `var_samp(s1)` from `t1` latin1 latin1_swedish_ci
-drop view v1;
-drop table t1;
-set sql_mode='strict_all_tables';
-CREATE TABLE t1 (col1 INT NOT NULL, col2 INT NOT NULL);
-CREATE VIEW v1 (vcol1) AS SELECT col1 FROM t1;
-CREATE VIEW v2 (vcol1) AS SELECT col1 FROM t1 WHERE col2 > 2;
-INSERT INTO t1 (col1) VALUES(12);
-ERROR HY000: Field 'col2' doesn't have a default value
-INSERT INTO v1 (vcol1) VALUES(12);
-ERROR HY000: Field of view 'test.v1' underlying table doesn't have a default value
-INSERT INTO v2 (vcol1) VALUES(12);
-ERROR HY000: Field of view 'test.v2' underlying table doesn't have a default value
-set sql_mode=default;
-drop view v2,v1;
-drop table t1;
-create table t1 (f1 int);
-insert into t1 values (1);
-create view v1 as select f1 from t1;
-select f1 as alias from v1;
-alias
-1
-drop view v1;
-drop table t1;
-CREATE TABLE t1 (s1 int, s2 int);
-INSERT INTO t1 VALUES (1,2);
-CREATE VIEW v1 AS SELECT s2 AS s1, s1 AS s2 FROM t1;
-SELECT * FROM v1;
-s1 s2
-2 1
-CREATE PROCEDURE p1 () SELECT * FROM v1;
-CALL p1();
-s1 s2
-2 1
-ALTER VIEW v1 AS SELECT s1 AS s1, s2 AS s2 FROM t1;
-CALL p1();
-s1 s2
-1 2
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT s2 AS s1, s1 AS s2 FROM t1;
-CALL p1();
-s1 s2
-2 1
-DROP PROCEDURE p1;
-DROP VIEW v1;
-DROP TABLE t1;
-create table t1 (f1 int, f2 int);
-create view v1 as select f1 as f3, f2 as f1 from t1;
-insert into t1 values (1,3),(2,1),(3,2);
-select * from v1 order by f1;
-f3 f1
-2 1
-3 2
-1 3
-drop view v1;
-drop table t1;
-CREATE TABLE t1 (f1 char);
-INSERT INTO t1 VALUES ('A');
-CREATE VIEW v1 AS SELECT * FROM t1;
-INSERT INTO t1 VALUES('B');
-SELECT * FROM v1;
-f1
-A
-B
-SELECT * FROM t1;
-f1
-A
-B
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 ( bug_table_seq INTEGER NOT NULL);
-CREATE OR REPLACE VIEW v1 AS SELECT * from t1;
-DROP PROCEDURE IF EXISTS p1;
-Warnings:
-Note 1305 PROCEDURE test.p1 does not exist
-CREATE PROCEDURE p1 ( )
-BEGIN
-DO (SELECT @next := IFNULL(max(bug_table_seq),0) + 1 FROM v1);
-INSERT INTO t1 VALUES (1);
-END //
-CALL p1();
-DROP PROCEDURE p1;
-DROP VIEW v1;
-DROP TABLE t1;
-create table t1(f1 datetime);
-insert into t1 values('2005.01.01 12:0:0');
-create view v1 as select f1, subtime(f1, '1:1:1') as sb from t1;
-select * from v1;
-f1 sb
-2005-01-01 12:00:00 2005-01-01 10:58:59
-drop view v1;
-drop table t1;
-CREATE TABLE t1 (
-aid int PRIMARY KEY,
-fn varchar(20) NOT NULL,
-ln varchar(20) NOT NULL
-);
-CREATE TABLE t2 (
-aid int NOT NULL,
-pid int NOT NULL
-);
-INSERT INTO t1 VALUES(1,'a','b'), (2,'c','d');
-INSERT INTO t2 values (1,1), (2,1), (2,2);
-CREATE VIEW v1 AS SELECT t1.*,t2.pid FROM t1,t2 WHERE t1.aid = t2.aid;
-SELECT pid,GROUP_CONCAT(CONCAT(fn,' ',ln) ORDER BY 1) FROM t1,t2
-WHERE t1.aid = t2.aid GROUP BY pid;
-pid GROUP_CONCAT(CONCAT(fn,' ',ln) ORDER BY 1)
-1 a b,c d
-2 c d
-SELECT pid,GROUP_CONCAT(CONCAT(fn,' ',ln) ORDER BY 1) FROM v1 GROUP BY pid;
-pid GROUP_CONCAT(CONCAT(fn,' ',ln) ORDER BY 1)
-1 a b,c d
-2 c d
-DROP VIEW v1;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (id int PRIMARY KEY, f varchar(255));
-CREATE VIEW v1 AS SELECT id, f FROM t1 WHERE id <= 2;
-INSERT INTO t1 VALUES (2, 'foo2');
-INSERT INTO t1 VALUES (1, 'foo1');
-SELECT * FROM v1;
-id f
-1 foo1
-2 foo2
-SELECT * FROM v1;
-id f
-1 foo1
-2 foo2
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (pk int PRIMARY KEY, b int);
-CREATE TABLE t2 (pk int PRIMARY KEY, fk int, INDEX idx(fk));
-CREATE TABLE t3 (pk int PRIMARY KEY, fk int, INDEX idx(fk));
-CREATE TABLE t4 (pk int PRIMARY KEY, fk int, INDEX idx(fk));
-CREATE TABLE t5 (pk int PRIMARY KEY, fk int, INDEX idx(fk));
-CREATE VIEW v1 AS
-SELECT t1.pk as a FROM t1,t2,t3,t4,t5
-WHERE t1.b IS NULL AND
-t1.pk=t2.fk AND t2.pk=t3.fk AND t3.pk=t4.fk AND t4.pk=t5.fk;
-SELECT a FROM v1;
-a
-DROP VIEW v1;
-DROP TABLE t1,t2,t3,t4,t5;
-create view v1 as select timestampdiff(day,'1997-01-01 00:00:00','1997-01-02 00:00:00') as f1;
-select * from v1;
-f1
-1
-drop view v1;
-create table t1(a int);
-create procedure p1() create view v1 as select * from t1;
-drop table t1;
-call p1();
-ERROR 42S02: Table 'test.t1' doesn't exist
-call p1();
-ERROR 42S02: Table 'test.t1' doesn't exist
-drop procedure p1;
-create table t1 (f1 int);
-create table t2 (f1 int);
-insert into t1 values (1);
-insert into t2 values (2);
-create view v1 as select * from t1 union select * from t2 union all select * from t2;
-select * from v1;
-f1
-1
-2
-2
-drop view v1;
-drop table t1,t2;
-CREATE TEMPORARY TABLE t1 (a int);
-CREATE FUNCTION f1 () RETURNS int RETURN (SELECT COUNT(*) FROM t1);
-CREATE VIEW v1 AS SELECT f1();
-ERROR HY000: View's SELECT refers to a temporary table 't1'
-DROP FUNCTION f1;
-DROP TABLE t1;
-DROP TABLE IF EXISTS t1;
-DROP VIEW IF EXISTS v1;
-CREATE TABLE t1 (f4 CHAR(5));
-CREATE VIEW v1 AS SELECT * FROM t1;
-DESCRIBE v1;
-Field Type Null Key Default Extra
-f4 char(5) YES NULL
-ALTER TABLE t1 CHANGE COLUMN f4 f4x CHAR(5);
-DESCRIBE v1;
-ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-DROP TABLE t1;
-DROP VIEW v1;
-create table t1 (f1 char);
-create view v1 as select strcmp(f1,'a') from t1;
-select * from v1;
-strcmp(f1,'a')
-drop view v1;
-drop table t1;
-create table t1 (f1 int, f2 int,f3 int);
-insert into t1 values (1,10,20),(2,0,0);
-create view v1 as select * from t1;
-select if(sum(f1)>1,f2,f3) from v1 group by f1;
-if(sum(f1)>1,f2,f3)
-20
-0
-drop view v1;
-drop table t1;
-create table t1 (
-r_object_id char(16) NOT NULL,
-group_name varchar(32) NOT NULL
-);
-create table t2 (
-r_object_id char(16) NOT NULL,
-i_position int(11) NOT NULL,
-users_names varchar(32) default NULL
-);
-create view v1 as select r_object_id, group_name from t1;
-create view v2 as select r_object_id, i_position, users_names from t2;
-create unique index r_object_id on t1(r_object_id);
-create index group_name on t1(group_name);
-create unique index r_object_id_i_position on t2(r_object_id,i_position);
-create index users_names on t2(users_names);
-insert into t1 values('120001a080000542','tstgroup1');
-insert into t2 values('120001a080000542',-1, 'guser01');
-insert into t2 values('120001a080000542',-2, 'guser02');
-select v1.r_object_id, v2.users_names from v1, v2
-where (v1.group_name='tstgroup1') and v2.r_object_id=v1.r_object_id
-order by users_names;
-r_object_id users_names
-120001a080000542 guser01
-120001a080000542 guser02
-drop view v1, v2;
-drop table t1, t2;
-create table t1 (s1 int);
-create view abc as select * from t1 as abc;
-drop table t1;
-drop view abc;
-flush status;
-create table t1(f1 char(1));
-create view v1 as select * from t1;
-select * from (select f1 as f2, f1 as f3 from v1) v where v.f2='a';
-f2 f3
-show status like "Created_tmp%";
-Variable_name Value
-Created_tmp_disk_tables 0
-Created_tmp_files 0
-Created_tmp_tables 0
-drop view v1;
-drop table t1;
-set @tmp=@@optimizer_switch;
-set @@optimizer_switch='derived_merge=OFF';
-create table t1(f1 char(1));
-create view v1 as select * from t1;
-select * from (select f1 as f2, f1 as f3 from v1) v where v.f2='a';
-f2 f3
-show status like "Created_tmp%";
-Variable_name Value
-Created_tmp_disk_tables 0
-Created_tmp_files 0
-Created_tmp_tables 1
-drop view v1;
-drop table t1;
-set @@optimizer_switch=@tmp;
-create view v1 as SELECT CONVERT_TZ('2004-01-01 12:00:00','GMT','MET');
-select * from v1;
-CONVERT_TZ('2004-01-01 12:00:00','GMT','MET')
-NULL
-drop view v1;
-CREATE TABLE t1 (date DATE NOT NULL);
-INSERT INTO t1 VALUES ('2005-09-06');
-CREATE VIEW v1 AS SELECT DAYNAME(date) FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select dayname(`t1`.`date`) AS `DAYNAME(date)` from `t1` latin1 latin1_swedish_ci
-CREATE VIEW v2 AS SELECT DAYOFWEEK(date) FROM t1;
-SHOW CREATE VIEW v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select dayofweek(`t1`.`date`) AS `DAYOFWEEK(date)` from `t1` latin1 latin1_swedish_ci
-CREATE VIEW v3 AS SELECT WEEKDAY(date) FROM t1;
-SHOW CREATE VIEW v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select weekday(`t1`.`date`) AS `WEEKDAY(date)` from `t1` latin1 latin1_swedish_ci
-SELECT DAYNAME('2005-09-06');
-DAYNAME('2005-09-06')
-Tuesday
-SELECT DAYNAME(date) FROM t1;
-DAYNAME(date)
-Tuesday
-SELECT * FROM v1;
-DAYNAME(date)
-Tuesday
-SELECT DAYOFWEEK('2005-09-06');
-DAYOFWEEK('2005-09-06')
-3
-SELECT DAYOFWEEK(date) FROM t1;
-DAYOFWEEK(date)
-3
-SELECT * FROM v2;
-DAYOFWEEK(date)
-3
-SELECT WEEKDAY('2005-09-06');
-WEEKDAY('2005-09-06')
-1
-SELECT WEEKDAY(date) FROM t1;
-WEEKDAY(date)
-1
-SELECT * FROM v3;
-WEEKDAY(date)
-1
-DROP TABLE t1;
-DROP VIEW v1, v2, v3;
-CREATE TABLE t1 ( a int, b int );
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-CREATE VIEW v1 AS SELECT a,b FROM t1;
-SELECT t1.a FROM t1 GROUP BY t1.a HAVING a > 1;
-a
-2
-3
-SELECT v1.a FROM v1 GROUP BY v1.a HAVING a > 1;
-a
-2
-3
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 ( a int, b int );
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-CREATE VIEW v1 AS SELECT a,b FROM t1;
-SELECT t1.a FROM t1 GROUP BY t1.a HAVING t1.a > 1;
-a
-2
-3
-SELECT v1.a FROM v1 GROUP BY v1.a HAVING v1.a > 1;
-a
-2
-3
-SELECT t_1.a FROM t1 AS t_1 GROUP BY t_1.a HAVING t_1.a IN (1,2,3);
-a
-1
-2
-3
-SELECT v_1.a FROM v1 AS v_1 GROUP BY v_1.a HAVING v_1.a IN (1,2,3);
-a
-1
-2
-3
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (a INT, b INT, INDEX(a,b));
-CREATE TABLE t2 LIKE t1;
-CREATE TABLE t3 (a INT);
-INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
-INSERT INTO t2 VALUES (1,1),(2,2),(3,3);
-INSERT INTO t3 VALUES (1),(2),(3);
-CREATE VIEW v1 AS SELECT t1.* FROM t1,t2 WHERE t1.a=t2.a AND t1.b=t2.b;
-CREATE VIEW v2 AS SELECT t3.* FROM t1,t3 WHERE t1.a=t3.a;
-EXPLAIN SELECT t1.* FROM t1 JOIN t2 WHERE t1.a=t2.a AND t1.b=t2.b AND t1.a=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 5 const 1 Using where; Using index
-1 SIMPLE t2 ref a a 10 const,test.t1.b 1 Using index
-EXPLAIN SELECT * FROM v1 WHERE a=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 5 const 1 Using where; Using index
-1 SIMPLE t2 ref a a 10 const,test.t1.b 1 Using index
-EXPLAIN SELECT * FROM v2 WHERE a=1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ref a a 5 const 1 Using index
-1 SIMPLE t3 ALL NULL NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
-DROP VIEW v1,v2;
-DROP TABLE t1,t2,t3;
-create table t1 (f1 int);
-create view v1 as select t1.f1 as '123
-456' from t1;
-select * from v1;
-123
-456
-drop view v1;
-drop table t1;
-create table t1 (f1 int, f2 int);
-insert into t1 values(1,1),(1,2),(1,3);
-create view v1 as select f1 ,group_concat(f2 order by f2 asc) from t1 group by f1;
-create view v2 as select f1 ,group_concat(f2 order by f2 desc) from t1 group by f1;
-select * from v1;
-f1 group_concat(f2 order by f2 asc)
-1 1,2,3
-select * from v2;
-f1 group_concat(f2 order by f2 desc)
-1 3,2,1
-drop view v1,v2;
-drop table t1;
-create table t1 (x int, y int);
-create table t2 (x int, y int, z int);
-create table t3 (x int, y int, z int);
-create table t4 (x int, y int, z int);
-create view v1 as
-select t1.x
-from (
-(t1 join t2 on ((t1.y = t2.y)))
-join
-(t3 left join t4 on (t3.y = t4.y) and (t3.z = t4.z))
-);
-prepare stmt1 from "select count(*) from v1 where x = ?";
-set @parm1=1;
-execute stmt1 using @parm1;
-count(*)
-0
-execute stmt1 using @parm1;
-count(*)
-0
-drop view v1;
-drop table t1,t2,t3,t4;
-CREATE TABLE t1(id INT);
-CREATE VIEW v1 AS SELECT id FROM t1;
-OPTIMIZE TABLE v1;
-Table Op Msg_type Msg_text
-test.v1 optimize Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 optimize status Operation failed
-ANALYZE TABLE v1;
-Table Op Msg_type Msg_text
-test.v1 analyze Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 analyze status Operation failed
-REPAIR TABLE v1;
-Table Op Msg_type Msg_text
-test.v1 repair Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 repair status Operation failed
-DROP TABLE t1;
-OPTIMIZE TABLE v1;
-Table Op Msg_type Msg_text
-test.v1 optimize Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 optimize status Operation failed
-ANALYZE TABLE v1;
-Table Op Msg_type Msg_text
-test.v1 analyze Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 analyze status Operation failed
-REPAIR TABLE v1;
-Table Op Msg_type Msg_text
-test.v1 repair Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 repair status Operation failed
-DROP VIEW v1;
-create definer = current_user() sql security invoker view v1 as select 1;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY INVOKER VIEW `v1` AS select 1 AS `1` latin1 latin1_swedish_ci
-drop view v1;
-create definer = current_user sql security invoker view v1 as select 1;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY INVOKER VIEW `v1` AS select 1 AS `1` latin1 latin1_swedish_ci
-drop view v1;
-create table t1 (id INT, primary key(id));
-insert into t1 values (1),(2);
-create view v1 as select * from t1;
-explain select id from v1 order by id;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 2 Using index
-drop view v1;
-drop table t1;
-create table t1(f1 int, f2 int);
-insert into t1 values (null, 10), (null,2);
-select f1, sum(f2) from t1 group by f1;
-f1 sum(f2)
-NULL 12
-create view v1 as select * from t1;
-select f1, sum(f2) from v1 group by f1;
-f1 sum(f2)
-NULL 12
-drop view v1;
-drop table t1;
-drop procedure if exists p1;
-create procedure p1 () deterministic
-begin
-create view v1 as select 1;
-end;
-//
-call p1();
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 AS `1` latin1 latin1_swedish_ci
-drop view v1;
-drop procedure p1;
-CREATE VIEW v1 AS SELECT 42 AS Meaning;
-DROP FUNCTION IF EXISTS f1;
-CREATE FUNCTION f1() RETURNS INTEGER
-BEGIN
-DECLARE retn INTEGER;
-SELECT Meaning FROM v1 INTO retn;
-RETURN retn;
-END
-//
-CREATE VIEW v2 AS SELECT f1();
-select * from v2;
-f1()
-42
-drop view v2,v1;
-drop function f1;
-create table t1 (id numeric, warehouse_id numeric);
-create view v1 as select id from t1;
-create view v2 as
-select t1.warehouse_id, v1.id as receipt_id
-from t1, v1 where t1.id = v1.id;
-insert into t1 (id, warehouse_id) values(3, 2);
-insert into t1 (id, warehouse_id) values(4, 2);
-insert into t1 (id, warehouse_id) values(5, 1);
-select v2.receipt_id as alias1, v2.receipt_id as alias2 from v2
-order by v2.receipt_id;
-alias1 alias2
-3 3
-4 4
-5 5
-drop view v2, v1;
-drop table t1;
-CREATE TABLE t1 (a int PRIMARY KEY, b int);
-INSERT INTO t1 VALUES (2,20), (3,10), (1,10), (0,30), (5,10);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT MAX(a) FROM t1;
-MAX(a)
-5
-SELECT MAX(a) FROM v1;
-MAX(a)
-5
-EXPLAIN SELECT MAX(a) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-EXPLAIN SELECT MAX(a) FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-SELECT MIN(a) FROM t1;
-MIN(a)
-0
-SELECT MIN(a) FROM v1;
-MIN(a)
-0
-EXPLAIN SELECT MIN(a) FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-EXPLAIN SELECT MIN(a) FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (x varchar(10));
-INSERT INTO t1 VALUES (null), ('foo'), ('bar'), (null);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT IF(x IS NULL, 'blank', 'not blank') FROM v1 GROUP BY x;
-IF(x IS NULL, 'blank', 'not blank')
-blank
-not blank
-not blank
-SELECT IF(x IS NULL, 'blank', 'not blank') AS x FROM t1 GROUP BY x;
-x
-blank
-not blank
-not blank
-Warnings:
-Warning 1052 Column 'x' in group statement is ambiguous
-SELECT IF(x IS NULL, 'blank', 'not blank') AS x FROM v1;
-x
-blank
-not blank
-not blank
-blank
-SELECT IF(x IS NULL, 'blank', 'not blank') AS y FROM v1 GROUP BY y;
-y
-blank
-not blank
-SELECT IF(x IS NULL, 'blank', 'not blank') AS x FROM v1 GROUP BY x;
-x
-blank
-not blank
-not blank
-Warnings:
-Warning 1052 Column 'x' in group statement is ambiguous
-DROP VIEW v1;
-DROP TABLE t1;
-drop table if exists t1;
-drop view if exists v1;
-create table t1 (id int);
-create view v1 as select * from t1;
-drop table t1;
-show create view v1;
-drop view v1;
-//
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `test`.`t1`.`id` AS `id` from `t1` latin1 latin1_swedish_ci
-create table t1(f1 int, f2 int);
-create view v1 as select ta.f1 as a, tb.f1 as b from t1 ta, t1 tb where ta.f1=tb
-.f1 and ta.f2=tb.f2;
-insert into t1 values(1,1),(2,2);
-create view v2 as select * from v1 where a > 1 with local check option;
-select * from v2;
-a b
-2 2
-update v2 set b=3 where a=2;
-select * from v2;
-a b
-3 3
-drop view v2, v1;
-drop table t1;
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (1), (2);
-CREATE VIEW v1 AS SELECT SQRT(a) my_sqrt FROM t1;
-SELECT my_sqrt FROM v1 ORDER BY my_sqrt;
-my_sqrt
-1
-1.4142135623730951
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (id int PRIMARY KEY);
-CREATE TABLE t2 (id int PRIMARY KEY);
-INSERT INTO t1 VALUES (1), (3);
-INSERT INTO t2 VALUES (1), (2), (3);
-CREATE VIEW v2 AS SELECT * FROM t2;
-SELECT COUNT(*) FROM t1 LEFT JOIN t2 ON t1.id=t2.id;
-COUNT(*)
-2
-SELECT * FROM t1 LEFT JOIN t2 ON t1.id=t2.id;
-id id
-1 1
-3 3
-SELECT COUNT(*) FROM t1 LEFT JOIN v2 ON t1.id=v2.id;
-COUNT(*)
-2
-DROP VIEW v2;
-DROP TABLE t1, t2;
-CREATE TABLE t1 (id int NOT NULL PRIMARY KEY,
-td date DEFAULT NULL, KEY idx(td));
-INSERT INTO t1 VALUES
-(1, '2005-01-01'), (2, '2005-01-02'), (3, '2005-01-02'),
-(4, '2005-01-03'), (5, '2005-01-04'), (6, '2005-01-05'),
-(7, '2005-01-05'), (8, '2005-01-05'), (9, '2005-01-06');
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM t1 WHERE td BETWEEN CAST('2005.01.02' AS DATE) AND CAST('2005.01.04' AS DATE);
-id td
-2 2005-01-02
-3 2005-01-02
-4 2005-01-03
-5 2005-01-04
-SELECT * FROM v1 WHERE td BETWEEN CAST('2005.01.02' AS DATE) AND CAST('2005.01.04' AS DATE);
-id td
-2 2005-01-02
-3 2005-01-02
-4 2005-01-03
-5 2005-01-04
-DROP VIEW v1;
-DROP TABLE t1;
-create table t1 (a int);
-create view v1 as select * from t1;
-create view v2 as select * from v1;
-drop table t1;
-rename table v2 to t1;
-select * from v1;
-ERROR HY000: `test`.`v1` contains view recursion
-drop view t1, v1;
-create table t1 (a int);
-create function f1() returns int
-begin
-declare mx int;
-select max(a) from t1 into mx;
-return mx;
-end//
-create view v1 as select f1() as a;
-create view v2 as select * from v1;
-drop table t1;
-rename table v2 to t1;
-select * from v1;
-ERROR HY000: Recursive stored functions and triggers are not allowed
-drop function f1;
-drop view t1, v1;
-create table t1 (dt datetime);
-insert into t1 values (20040101000000), (20050101000000), (20060101000000);
-create view v1 as select convert_tz(dt, 'UTC', 'Europe/Moscow') as ldt from t1;
-select * from v1;
-ldt
-2004-01-01 03:00:00
-2005-01-01 03:00:00
-2006-01-01 03:00:00
-drop view v1;
-create view v1 as select * from t1 where convert_tz(dt, 'UTC', 'Europe/Moscow') >= 20050101000000;
-select * from v1;
-dt
-2005-01-01 00:00:00
-2006-01-01 00:00:00
-create view v2 as select * from v1 where dt < 20060101000000;
-select * from v2;
-dt
-2005-01-01 00:00:00
-drop view v2;
-create view v2 as select convert_tz(dt, 'UTC', 'Europe/Moscow') as ldt from v1;
-select * from v2;
-ldt
-2005-01-01 03:00:00
-2006-01-01 03:00:00
-drop view v1, v2;
-drop table t1;
-CREATE TABLE t1 (id int NOT NULL PRIMARY KEY, d datetime);
-CREATE VIEW v1 AS
-SELECT id, date(d) + INTERVAL TIME_TO_SEC(d) SECOND AS t, COUNT(*)
-FROM t1 GROUP BY id, t;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`id` AS `id`,cast(`t1`.`d` as date) + interval time_to_sec(`t1`.`d`) second AS `t`,count(0) AS `COUNT(*)` from `t1` group by `t1`.`id`,cast(`t1`.`d` as date) + interval time_to_sec(`t1`.`d`) second latin1 latin1_swedish_ci
-SELECT * FROM v1;
-id t COUNT(*)
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (i INT, j BIGINT);
-INSERT INTO t1 VALUES (1, 2), (2, 2), (3, 2);
-CREATE VIEW v1 AS SELECT MIN(j) AS j FROM t1;
-CREATE VIEW v2 AS SELECT MIN(i) FROM t1 WHERE j = ( SELECT * FROM v1 );
-SELECT * FROM v2;
-MIN(i)
-1
-DROP VIEW v2, v1;
-DROP TABLE t1;
-CREATE TABLE t1(
-fName varchar(25) NOT NULL,
-lName varchar(25) NOT NULL,
-DOB date NOT NULL,
-test_date date NOT NULL,
-uID int unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY);
-INSERT INTO t1(fName, lName, DOB, test_date) VALUES
-('Hank', 'Hill', '1964-09-29', '2007-01-01'),
-('Tom', 'Adams', '1908-02-14', '2007-01-01'),
-('Homer', 'Simpson', '1968-03-05', '2007-01-01');
-CREATE VIEW v1 AS
-SELECT (year(test_date)-year(DOB)) AS Age
-FROM t1 HAVING Age < 75;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select year(`t1`.`test_date`) - year(`t1`.`DOB`) AS `Age` from `t1` having `Age` < 75 latin1 latin1_swedish_ci
-SELECT (year(test_date)-year(DOB)) AS Age FROM t1 HAVING Age < 75;
-Age
-43
-39
-SELECT * FROM v1;
-Age
-43
-39
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (id int NOT NULL PRIMARY KEY, a char(6) DEFAULT 'xxx');
-INSERT INTO t1(id) VALUES (1), (2), (3), (4);
-INSERT INTO t1 VALUES (5,'yyy'), (6,'yyy');
-SELECT * FROM t1;
-id a
-1 xxx
-2 xxx
-3 xxx
-4 xxx
-5 yyy
-6 yyy
-CREATE VIEW v1(a, m) AS SELECT a, MIN(id) FROM t1 GROUP BY a;
-SELECT * FROM v1;
-a m
-xxx 1
-yyy 5
-CREATE TABLE t2 SELECT * FROM v1;
-INSERT INTO t2(m) VALUES (0);
-SELECT * FROM t2;
-a m
-xxx 1
-yyy 5
-xxx 0
-DROP VIEW v1;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (id int PRIMARY KEY, e ENUM('a','b') NOT NULL DEFAULT 'b');
-INSERT INTO t1(id) VALUES (1), (2), (3);
-INSERT INTO t1 VALUES (4,'a');
-SELECT * FROM t1;
-id e
-1 b
-2 b
-3 b
-4 a
-CREATE VIEW v1(m, e) AS SELECT MIN(id), e FROM t1 GROUP BY e;
-CREATE TABLE t2 SELECT * FROM v1;
-SELECT * FROM t2;
-m e
-4 a
-1 b
-DROP VIEW v1;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a INT NOT NULL, b INT NULL DEFAULT NULL);
-CREATE VIEW v1 AS SELECT a, b FROM t1;
-INSERT IGNORE INTO v1 (b) VALUES (2);
-Warnings:
-Warning 1423 Field of view 'test.v1' underlying table doesn't have a default value
-SET SQL_MODE = STRICT_ALL_TABLES;
-INSERT INTO v1 (b) VALUES (4);
-ERROR HY000: Field of view 'test.v1' underlying table doesn't have a default value
-SET SQL_MODE = '';
-SELECT * FROM t1;
-a b
-0 2
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (firstname text, surname text);
-INSERT INTO t1 VALUES
-("Bart","Simpson"),("Milhouse","van Houten"),("Montgomery","Burns");
-CREATE VIEW v1 AS SELECT CONCAT(firstname," ",surname) AS name FROM t1;
-SELECT CONCAT(LEFT(name,LENGTH(name)-INSTR(REVERSE(name)," ")),
-LEFT(name,LENGTH(name)-INSTR(REVERSE(name)," "))) AS f1
-FROM v1;
-f1
-BartBart
-Milhouse vanMilhouse van
-MontgomeryMontgomery
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (i int, j int);
-CREATE VIEW v1 AS SELECT COALESCE(i,j) FROM t1;
-DESCRIBE v1;
-Field Type Null Key Default Extra
-COALESCE(i,j) int(11) YES NULL
-CREATE TABLE t2 SELECT COALESCE(i,j) FROM t1;
-DESCRIBE t2;
-Field Type Null Key Default Extra
-COALESCE(i,j) int(11) YES NULL
-DROP VIEW v1;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (s varchar(10));
-INSERT INTO t1 VALUES ('yadda'), ('yady');
-SELECT TRIM(BOTH 'y' FROM s) FROM t1;
-TRIM(BOTH 'y' FROM s)
-adda
-ad
-CREATE VIEW v1 AS SELECT TRIM(BOTH 'y' FROM s) FROM t1;
-SELECT * FROM v1;
-TRIM(BOTH 'y' FROM s)
-adda
-ad
-DROP VIEW v1;
-SELECT TRIM(LEADING 'y' FROM s) FROM t1;
-TRIM(LEADING 'y' FROM s)
-adda
-ady
-CREATE VIEW v1 AS SELECT TRIM(LEADING 'y' FROM s) FROM t1;
-SELECT * FROM v1;
-TRIM(LEADING 'y' FROM s)
-adda
-ady
-DROP VIEW v1;
-SELECT TRIM(TRAILING 'y' FROM s) FROM t1;
-TRIM(TRAILING 'y' FROM s)
-yadda
-yad
-CREATE VIEW v1 AS SELECT TRIM(TRAILING 'y' FROM s) FROM t1;
-SELECT * FROM v1;
-TRIM(TRAILING 'y' FROM s)
-yadda
-yad
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (x INT, y INT);
-CREATE ALGORITHM=TEMPTABLE SQL SECURITY INVOKER VIEW v1 AS SELECT x FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=TEMPTABLE DEFINER=`root`@`localhost` SQL SECURITY INVOKER VIEW `v1` AS select `t1`.`x` AS `x` from `t1` latin1 latin1_swedish_ci
-ALTER VIEW v1 AS SELECT x, y FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=TEMPTABLE DEFINER=`root`@`localhost` SQL SECURITY INVOKER VIEW `v1` AS select `t1`.`x` AS `x`,`t1`.`y` AS `y` from `t1` latin1 latin1_swedish_ci
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (s1 char);
-INSERT INTO t1 VALUES ('Z');
-CREATE VIEW v1 AS SELECT s1 collate latin1_german1_ci AS col FROM t1;
-CREATE VIEW v2 (col) AS SELECT s1 collate latin1_german1_ci FROM t1;
-INSERT INTO v1 (col) VALUES ('b');
-INSERT INTO v2 (col) VALUES ('c');
-SELECT s1 FROM t1;
-s1
-Z
-b
-c
-DROP VIEW v1, v2;
-DROP TABLE t1;
-CREATE TABLE t1 (id INT);
-CREATE VIEW v1 AS SELECT id FROM t1;
-SHOW TABLES;
-Tables_in_test
-t1
-v1
-DROP VIEW v2,v1;
-ERROR 42S02: Unknown VIEW: 'test.v2'
-SHOW TABLES;
-Tables_in_test
-t1
-CREATE VIEW v1 AS SELECT id FROM t1;
-DROP VIEW t1,v1;
-ERROR HY000: 'test.t1' is not of type 'VIEW'
-SHOW TABLES;
-Tables_in_test
-t1
-DROP TABLE t1;
-DROP VIEW IF EXISTS v1;
-set GLOBAL sql_mode="";
-set LOCAL sql_mode="";
-CREATE DATABASE bug21261DB;
-USE bug21261DB;
-connect root,localhost,root,,bug21261DB;
-connection root;
-CREATE TABLE t1 (x INT);
-CREATE SQL SECURITY INVOKER VIEW v1 AS SELECT x FROM t1;
-GRANT INSERT, UPDATE ON v1 TO 'user21261'@'localhost';
-GRANT INSERT, UPDATE ON t1 TO 'user21261'@'localhost';
-CREATE TABLE t2 (y INT);
-GRANT SELECT ON t2 TO 'user21261'@'localhost';
-connect user21261, localhost, user21261,, bug21261DB;
-connection user21261;
-INSERT INTO v1 (x) VALUES (5);
-UPDATE v1 SET x=1;
-connection root;
-GRANT SELECT ON v1 TO 'user21261'@'localhost';
-GRANT SELECT ON t1 TO 'user21261'@'localhost';
-connection user21261;
-UPDATE v1,t2 SET x=1 WHERE x=y;
-connection root;
-SELECT * FROM t1;
-x
-1
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'user21261'@'localhost';
-DROP USER 'user21261'@'localhost';
-DROP VIEW v1;
-DROP TABLE t1;
-DROP DATABASE bug21261DB;
-connection default;
-USE test;
-disconnect root;
-disconnect user21261;
-set GLOBAL sql_mode=default;
-set LOCAL sql_mode=default;
-create table t1 (f1 datetime);
-create view v1 as select * from t1 where f1 between now() and now() + interval 1 minute;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `f1` from `t1` where `t1`.`f1` between current_timestamp() and current_timestamp() + interval 1 minute latin1 latin1_swedish_ci
-drop view v1;
-drop table t1;
-DROP TABLE IF EXISTS t1;
-DROP VIEW IF EXISTS v1;
-DROP VIEW IF EXISTS v2;
-CREATE TABLE t1(a INT, b INT);
-CREATE DEFINER=longer_than_80_456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789@localhost
-VIEW v1 AS SELECT a FROM t1;
-ERROR HY000: String 'longer_than_80_4567890123456789012345678901234567890123456789012345678' is too long for user name (should be no longer than 80)
-CREATE DEFINER=some_user_name@1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY
-VIEW v2 AS SELECT b FROM t1;
-ERROR HY000: String '1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY' is too long for host name (should be no longer than 60)
-DROP TABLE t1;
-DROP FUNCTION IF EXISTS f1;
-DROP FUNCTION IF EXISTS f2;
-DROP VIEW IF EXISTS v1, v2;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (i INT);
-CREATE VIEW v1 AS SELECT * FROM t1;
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-INSERT INTO v1 VALUES (0);
-RETURN 0;
-END |
-SELECT f1();
-f1()
-0
-CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t1;
-CREATE FUNCTION f2() RETURNS INT
-BEGIN
-INSERT INTO v2 VALUES (0);
-RETURN 0;
-END |
-SELECT f2();
-ERROR HY000: The target table v2 of the INSERT is not insertable-into
-DROP FUNCTION f1;
-DROP FUNCTION f2;
-DROP VIEW v1, v2;
-DROP TABLE t1;
-CREATE TABLE t1 (s1 int);
-CREATE VIEW v1 AS SELECT * FROM t1;
-EXPLAIN SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 Const row not found
-EXPLAIN SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 Const row not found
-INSERT INTO t1 VALUES (1), (3), (2);
-EXPLAIN SELECT * FROM t1 t WHERE t.s1+1 < (SELECT MAX(t1.s1) FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t ALL NULL NULL NULL NULL 3 Using where
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 3
-EXPLAIN SELECT * FROM v1 t WHERE t.s1+1 < (SELECT MAX(t1.s1) FROM t1);
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
-2 SUBQUERY t1 ALL NULL NULL NULL NULL 3
-DROP VIEW v1;
-DROP TABLE t1;
-create table t1 (s1 int);
-create view v1 as select s1 as a, s1 as b from t1;
-insert into v1 values (1,1);
-ERROR HY000: The target table v1 of the INSERT is not insertable-into
-update v1 set a = 5;
-drop view v1;
-drop table t1;
-CREATE TABLE t1(pk int PRIMARY KEY);
-CREATE TABLE t2(pk int PRIMARY KEY, fk int, ver int, org int);
-CREATE ALGORITHM=MERGE VIEW v1 AS
-SELECT t1.*
-FROM t1 JOIN t2
-ON t2.fk = t1.pk AND
-t2.ver = (SELECT MAX(t.ver) FROM t2 t WHERE t.org = t2.org);
-SHOW WARNINGS;
-Level Code Message
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=MERGE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`pk` AS `pk` from (`t1` join `t2` on(`t2`.`fk` = `t1`.`pk` and `t2`.`ver` = (select max(`t`.`ver`) from `t2` `t` where `t`.`org` = `t2`.`org`))) latin1 latin1_swedish_ci
-DROP VIEW v1;
-DROP TABLE t1, t2;
-DROP FUNCTION IF EXISTS f1;
-DROP VIEW IF EXISTS v1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1);
-CREATE VIEW v1 AS SELECT MAX(i) FROM t1;
-CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW
-SET NEW.i = (SELECT * FROM v1) + 1;
-INSERT INTO t1 VALUES (1);
-CREATE FUNCTION f1() RETURNS INT RETURN (SELECT * FROM v1);
-UPDATE t1 SET i= f1();
-DROP FUNCTION f1;
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1(id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, val INT UNSIGNED NOT NULL);
-CREATE VIEW v1 AS SELECT id, val FROM t1 WHERE val >= 1 AND val <= 5 WITH CHECK OPTION;
-INSERT INTO v1 (val) VALUES (2);
-INSERT INTO v1 (val) VALUES (4);
-INSERT INTO v1 (val) VALUES (6);
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-UPDATE v1 SET val=6 WHERE id=2;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-DROP VIEW v1;
-DROP TABLE t1;
-DROP VIEW IF EXISTS v1, v2;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (i INT AUTO_INCREMENT PRIMARY KEY, j INT);
-CREATE VIEW v1 AS SELECT j FROM t1;
-CREATE VIEW v2 AS SELECT * FROM t1;
-INSERT INTO t1 (j) VALUES (1);
-SELECT LAST_INSERT_ID();
-LAST_INSERT_ID()
-1
-INSERT INTO v1 (j) VALUES (2);
-# LAST_INSERT_ID() should not change.
-SELECT LAST_INSERT_ID();
-LAST_INSERT_ID()
-1
-INSERT INTO v2 (j) VALUES (3);
-# LAST_INSERT_ID() should be updated.
-SELECT LAST_INSERT_ID();
-LAST_INSERT_ID()
-3
-INSERT INTO v1 (j) SELECT j FROM t1;
-# LAST_INSERT_ID() should not change.
-SELECT LAST_INSERT_ID();
-LAST_INSERT_ID()
-3
-SELECT * FROM t1;
-i j
-1 1
-2 2
-3 3
-4 1
-5 2
-6 3
-DROP VIEW v1, v2;
-DROP TABLE t1;
-CREATE VIEW v AS SELECT !0 * 5 AS x FROM DUAL;
-SHOW CREATE VIEW v;
-View Create View character_set_client collation_connection
-v CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v` AS select !0 * 5 AS `x` latin1 latin1_swedish_ci
-SELECT !0 * 5 AS x FROM DUAL;
-x
-5
-SELECT * FROM v;
-x
-5
-DROP VIEW v;
-DROP VIEW IF EXISTS v1;
-CREATE VIEW v1 AS SELECT 'The\ZEnd';
-SELECT * FROM v1;
-TheEnd
-TheEnd
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 'The\ZEnd' AS `TheEnd` latin1 latin1_swedish_ci
-DROP VIEW v1;
-CREATE TABLE t1 (mydate DATETIME);
-INSERT INTO t1 VALUES
-('2007-01-01'), ('2007-01-02'), ('2007-01-30'), ('2007-01-31');
-CREATE VIEW v1 AS SELECT mydate from t1;
-SELECT * FROM t1 WHERE mydate BETWEEN '2007-01-01' AND '2007-01-31';
-mydate
-2007-01-01 00:00:00
-2007-01-02 00:00:00
-2007-01-30 00:00:00
-2007-01-31 00:00:00
-SELECT * FROM v1 WHERE mydate BETWEEN '2007-01-01' AND '2007-01-31';
-mydate
-2007-01-01 00:00:00
-2007-01-02 00:00:00
-2007-01-30 00:00:00
-2007-01-31 00:00:00
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 (b int);
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (1), (2);
-CREATE VIEW v1 AS
-SELECT t2.b FROM t1,t2 WHERE t1.a = t2.b WITH CHECK OPTION;
-SELECT * FROM v1;
-b
-1
-2
-UPDATE v1 SET b=3;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-SELECT * FROM v1;
-b
-1
-2
-SELECT * FROM t1;
-a
-1
-2
-SELECT * FROM t2;
-b
-1
-2
-DROP VIEW v1;
-DROP TABLE t1,t2;
-create table t1(f1 int, f2 int);
-insert into t1 values(1,2),(1,3),(1,1),(2,3),(2,1),(2,2);
-select * from t1;
-f1 f2
-1 2
-1 3
-1 1
-2 3
-2 1
-2 2
-create view v1 as select * from t1 order by f2;
-select * from v1;
-f1 f2
-1 1
-2 1
-1 2
-2 2
-1 3
-2 3
-explain extended select * from v1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 100.00 Using filesort
-Warnings:
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2` from `test`.`t1` order by `test`.`t1`.`f2`
-select * from v1 order by f1;
-f1 f2
-1 2
-1 3
-1 1
-2 3
-2 1
-2 2
-explain extended select * from v1 order by f1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 100.00 Using filesort
-Warnings:
-Note 1926 View 'test'.'v1' ORDER BY clause ignored because there is other ORDER BY clause already
-Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2` from `test`.`t1` order by `test`.`t1`.`f1`
-drop view v1;
-drop table t1;
-CREATE TABLE t1 (
-id int(11) NOT NULL PRIMARY KEY,
-country varchar(32),
-code int(11) default NULL
-);
-INSERT INTO t1 VALUES
-(1,'ITALY',100),(2,'ITALY',200),(3,'FRANCE',100), (4,'ITALY',100);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT code, COUNT(DISTINCT country) FROM t1 GROUP BY code ORDER BY MAX(id);
-code COUNT(DISTINCT country)
-200 1
-100 2
-SELECT code, COUNT(DISTINCT country) FROM v1 GROUP BY code ORDER BY MAX(id);
-code COUNT(DISTINCT country)
-200 1
-100 2
-DROP VIEW v1;
-DROP TABLE t1;
-DROP VIEW IF EXISTS v1;
-SELECT * FROM (SELECT 1) AS t into @w;
-CREATE VIEW v1 AS SELECT * FROM (SELECT 1) AS t into @w;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'into @w' at line 1
-# Previously the following would fail.
-SELECT * FROM (SELECT 1) AS t into @w;
-drop view if exists view_24532_a;
-drop view if exists view_24532_b;
-drop table if exists table_24532;
-create table table_24532 (
-a int,
-b bigint,
-c int(4),
-d bigint(48)
-);
-create view view_24532_a as
-select
-a IS TRUE,
-a IS NOT TRUE,
-a IS FALSE,
-a IS NOT FALSE,
-a IS UNKNOWN,
-a IS NOT UNKNOWN,
-a is NULL,
-a IS NOT NULL,
-ISNULL(a),
-b IS TRUE,
-b IS NOT TRUE,
-b IS FALSE,
-b IS NOT FALSE,
-b IS UNKNOWN,
-b IS NOT UNKNOWN,
-b is NULL,
-b IS NOT NULL,
-ISNULL(b),
-c IS TRUE,
-c IS NOT TRUE,
-c IS FALSE,
-c IS NOT FALSE,
-c IS UNKNOWN,
-c IS NOT UNKNOWN,
-c is NULL,
-c IS NOT NULL,
-ISNULL(c),
-d IS TRUE,
-d IS NOT TRUE,
-d IS FALSE,
-d IS NOT FALSE,
-d IS UNKNOWN,
-d IS NOT UNKNOWN,
-d is NULL,
-d IS NOT NULL,
-ISNULL(d)
-from table_24532;
-describe view_24532_a;
-Field Type Null Key Default Extra
-a IS TRUE int(1) NO 0
-a IS NOT TRUE int(1) NO 0
-a IS FALSE int(1) NO 0
-a IS NOT FALSE int(1) NO 0
-a IS UNKNOWN int(1) NO 0
-a IS NOT UNKNOWN int(1) NO 0
-a is NULL int(1) NO 0
-a IS NOT NULL int(1) NO 0
-ISNULL(a) int(1) NO 0
-b IS TRUE int(1) NO 0
-b IS NOT TRUE int(1) NO 0
-b IS FALSE int(1) NO 0
-b IS NOT FALSE int(1) NO 0
-b IS UNKNOWN int(1) NO 0
-b IS NOT UNKNOWN int(1) NO 0
-b is NULL int(1) NO 0
-b IS NOT NULL int(1) NO 0
-ISNULL(b) int(1) NO 0
-c IS TRUE int(1) NO 0
-c IS NOT TRUE int(1) NO 0
-c IS FALSE int(1) NO 0
-c IS NOT FALSE int(1) NO 0
-c IS UNKNOWN int(1) NO 0
-c IS NOT UNKNOWN int(1) NO 0
-c is NULL int(1) NO 0
-c IS NOT NULL int(1) NO 0
-ISNULL(c) int(1) NO 0
-d IS TRUE int(1) NO 0
-d IS NOT TRUE int(1) NO 0
-d IS FALSE int(1) NO 0
-d IS NOT FALSE int(1) NO 0
-d IS UNKNOWN int(1) NO 0
-d IS NOT UNKNOWN int(1) NO 0
-d is NULL int(1) NO 0
-d IS NOT NULL int(1) NO 0
-ISNULL(d) int(1) NO 0
-create view view_24532_b as
-select
-a IS TRUE,
-if(ifnull(a, 0), 1, 0) as old_istrue,
-a IS NOT TRUE,
-if(ifnull(a, 0), 0, 1) as old_isnottrue,
-a IS FALSE,
-if(ifnull(a, 1), 0, 1) as old_isfalse,
-a IS NOT FALSE,
-if(ifnull(a, 1), 1, 0) as old_isnotfalse
-from table_24532;
-describe view_24532_b;
-Field Type Null Key Default Extra
-a IS TRUE int(1) NO 0
-old_istrue int(1) NO 0
-a IS NOT TRUE int(1) NO 0
-old_isnottrue int(1) NO 0
-a IS FALSE int(1) NO 0
-old_isfalse int(1) NO 0
-a IS NOT FALSE int(1) NO 0
-old_isnotfalse int(1) NO 0
-show create view view_24532_b;
-View Create View character_set_client collation_connection
-view_24532_b CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_24532_b` AS select `table_24532`.`a` is true AS `a IS TRUE`,if(ifnull(`table_24532`.`a`,0),1,0) AS `old_istrue`,`table_24532`.`a` is not true AS `a IS NOT TRUE`,if(ifnull(`table_24532`.`a`,0),0,1) AS `old_isnottrue`,`table_24532`.`a` is false AS `a IS FALSE`,if(ifnull(`table_24532`.`a`,1),0,1) AS `old_isfalse`,`table_24532`.`a` is not false AS `a IS NOT FALSE`,if(ifnull(`table_24532`.`a`,1),1,0) AS `old_isnotfalse` from `table_24532` latin1 latin1_swedish_ci
-insert into table_24532 values (0, 0, 0, 0);
-select * from view_24532_b;
-a IS TRUE old_istrue a IS NOT TRUE old_isnottrue a IS FALSE old_isfalse a IS NOT FALSE old_isnotfalse
-0 0 1 1 1 1 0 0
-update table_24532 set a=1;
-select * from view_24532_b;
-a IS TRUE old_istrue a IS NOT TRUE old_isnottrue a IS FALSE old_isfalse a IS NOT FALSE old_isnotfalse
-1 1 0 0 0 0 1 1
-update table_24532 set a=NULL;
-select * from view_24532_b;
-a IS TRUE old_istrue a IS NOT TRUE old_isnottrue a IS FALSE old_isfalse a IS NOT FALSE old_isnotfalse
-0 0 1 1 0 0 1 1
-drop view view_24532_a;
-drop view view_24532_b;
-drop table table_24532;
-CREATE TABLE t1 (
-lid int NOT NULL PRIMARY KEY,
-name char(10) NOT NULL
-);
-INSERT INTO t1 (lid, name) VALUES
-(1, 'YES'), (2, 'NO');
-CREATE TABLE t2 (
-id int NOT NULL PRIMARY KEY,
-gid int NOT NULL,
-lid int NOT NULL,
-dt date
-);
-INSERT INTO t2 (id, gid, lid, dt) VALUES
-(1, 1, 1, '2007-01-01'),(2, 1, 2, '2007-01-02'),
-(3, 2, 2, '2007-02-01'),(4, 2, 1, '2007-02-02');
-SELECT DISTINCT t2.gid AS lgid,
-(SELECT t1.name FROM t1, t2
-WHERE t1.lid = t2.lid AND t2.gid = lgid
-ORDER BY t2.dt DESC LIMIT 1
-) as clid
-FROM t2;
-lgid clid
-1 NO
-2 YES
-CREATE VIEW v1 AS
-SELECT DISTINCT t2.gid AS lgid,
-(SELECT t1.name FROM t1, t2
-WHERE t1.lid = t2.lid AND t2.gid = lgid
-ORDER BY t2.dt DESC LIMIT 1
-) as clid
-FROM t2;
-SELECT * FROM v1;
-lgid clid
-1 NO
-2 YES
-DROP VIEW v1;
-DROP table t1,t2;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2),(3);
-CREATE VIEW v1 AS SELECT a FROM t1 ORDER BY a;
-SELECT * FROM t1 UNION SELECT * FROM v1;
-a
-1
-2
-3
-EXPLAIN SELECT * FROM t1 UNION SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-2 UNION t1 ALL NULL NULL NULL NULL 3
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-SELECT * FROM v1 UNION SELECT * FROM t1;
-a
-1
-2
-3
-EXPLAIN SELECT * FROM v1 UNION SELECT * FROM t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-2 UNION t1 ALL NULL NULL NULL NULL 3
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
-SELECT * FROM t1 UNION SELECT * FROM v1 ORDER BY a;
-a
-1
-2
-3
-EXPLAIN SELECT * FROM t1 UNION SELECT * FROM v1 ORDER BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 3
-2 UNION t1 ALL NULL NULL NULL NULL 3
-NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL Using filesort
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE VIEW v1 AS SELECT CAST( 1.23456789 AS DECIMAL( 7,5 ) ) AS col;
-SELECT * FROM v1;
-col
-1.23457
-DESCRIBE v1;
-Field Type Null Key Default Extra
-col decimal(7,5) NO 0.00000
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT CAST(1.23456789 AS DECIMAL(8,0)) AS col;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(1.23456789 as decimal(8,0)) AS `col` latin1 latin1_swedish_ci
-DROP VIEW v1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (b INT, c INT DEFAULT 0);
-INSERT INTO t1 (a) VALUES (1), (2);
-INSERT INTO t2 (b) VALUES (1), (2);
-CREATE VIEW v1 AS SELECT t2.b,t2.c FROM t1, t2
-WHERE t1.a=t2.b AND t2.b < 3 WITH CHECK OPTION;
-SELECT * FROM v1;
-b c
-1 0
-2 0
-UPDATE v1 SET c=1 WHERE b=1;
-SELECT * FROM v1;
-b c
-1 1
-2 0
-DROP VIEW v1;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (id int);
-CREATE TABLE t2 (id int, c int DEFAULT 0);
-INSERT INTO t1 (id) VALUES (1);
-INSERT INTO t2 (id) VALUES (1);
-CREATE VIEW v1 AS
-SELECT t2.c FROM t1, t2
-WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
-UPDATE v1 SET c=1;
-DROP VIEW v1;
-DROP TABLE t1,t2;
-CREATE TABLE t1 (a1 INT, c INT DEFAULT 0);
-CREATE TABLE t2 (a2 INT);
-CREATE TABLE t3 (a3 INT);
-CREATE TABLE t4 (a4 INT);
-INSERT INTO t1 (a1) VALUES (1),(2);
-INSERT INTO t2 (a2) VALUES (1),(2);
-INSERT INTO t3 (a3) VALUES (1),(2);
-INSERT INTO t4 (a4) VALUES (1),(2);
-CREATE VIEW v1 AS
-SELECT t1.a1, t1.c FROM t1 JOIN t2 ON t1.a1=t2.a2 AND t1.c < 3
-WITH CHECK OPTION;
-SELECT * FROM v1;
-a1 c
-1 0
-2 0
-UPDATE v1 SET c=3;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-PREPARE t FROM 'UPDATE v1 SET c=3';
-EXECUTE t;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-EXECUTE t;
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-INSERT INTO v1(a1, c) VALUES (3, 3);
-ERROR 44000: CHECK OPTION failed `test`.`v1`
-UPDATE v1 SET c=1 WHERE a1=1;
-SELECT * FROM v1;
-a1 c
-1 1
-2 0
-SELECT * FROM t1;
-a1 c
-1 1
-2 0
-CREATE VIEW v2 AS SELECT t1.a1, t1.c
-FROM (t1 JOIN t2 ON t1.a1=t2.a2 AND t1.c < 3)
-JOIN (t3 JOIN t4 ON t3.a3=t4.a4)
-ON t2.a2=t3.a3 WITH CHECK OPTION;
-SELECT * FROM v2;
-a1 c
-1 1
-2 0
-UPDATE v2 SET c=3;
-ERROR 44000: CHECK OPTION failed `test`.`v2`
-PREPARE t FROM 'UPDATE v2 SET c=3';
-EXECUTE t;
-ERROR 44000: CHECK OPTION failed `test`.`v2`
-EXECUTE t;
-ERROR 44000: CHECK OPTION failed `test`.`v2`
-INSERT INTO v2(a1, c) VALUES (3, 3);
-ERROR 44000: CHECK OPTION failed `test`.`v2`
-UPDATE v2 SET c=2 WHERE a1=1;
-SELECT * FROM v2;
-a1 c
-1 2
-2 0
-SELECT * FROM t1;
-a1 c
-1 2
-2 0
-DROP VIEW v1,v2;
-DROP TABLE t1,t2,t3,t4;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (1,2), (2,2), (1,3), (1,2);
-CREATE VIEW v1 AS SELECT a, b+1 as b FROM t1;
-SELECT b, SUM(a) FROM v1 WHERE b=3 GROUP BY b;
-b SUM(a)
-3 4
-EXPLAIN SELECT b, SUM(a) FROM v1 WHERE b=3 GROUP BY b;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-SELECT a, SUM(b) FROM v1 WHERE b=3 GROUP BY a;
-a SUM(b)
-1 6
-2 3
-EXPLAIN SELECT a, SUM(b) FROM v1 WHERE b=3 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where; Using temporary; Using filesort
-SELECT a, SUM(b) FROM v1 WHERE a=1 GROUP BY a;
-a SUM(b)
-1 10
-EXPLAIN SELECT a, SUM(b) FROM v1 WHERE a=1 GROUP BY a;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (
-person_id int NOT NULL PRIMARY KEY,
-username varchar(40) default NULL,
-status_flg char(1) NOT NULL default 'A'
-);
-CREATE TABLE t2 (
-person_role_id int NOT NULL auto_increment PRIMARY KEY,
-role_id int NOT NULL,
-person_id int NOT NULL,
-INDEX idx_person_id (person_id),
-INDEX idx_role_id (role_id)
-);
-CREATE TABLE t3 (
-role_id int NOT NULL auto_increment PRIMARY KEY,
-role_name varchar(100) default NULL,
-app_name varchar(40) NOT NULL,
-INDEX idx_app_name(app_name)
-);
-CREATE VIEW v1 AS
-SELECT profile.person_id AS person_id
-FROM t1 profile, t2 userrole, t3 role
-WHERE userrole.person_id = profile.person_id AND
-role.role_id = userrole.role_id AND
-profile.status_flg = 'A'
- ORDER BY profile.person_id,role.app_name,role.role_name;
-INSERT INTO t1 VALUES
-(6,'Sw','A'), (-1136332546,'ols','e'), (0,' *\n','0'),
-(-717462680,'ENTS Ta','0'), (-904346964,'ndard SQL\n','0');
-INSERT INTO t2 VALUES
-(1,3,6),(2,4,7),(3,5,8),(4,6,9),(5,1,6),(6,1,7),(7,1,8),(8,1,9),(9,1,10);
-INSERT INTO t3 VALUES
-(1,'NUCANS_APP_USER','NUCANSAPP'),(2,'NUCANS_TRGAPP_USER','NUCANSAPP'),
-(3,'IA_INTAKE_COORDINATOR','IACANS'),(4,'IA_SCREENER','IACANS'),
-(5,'IA_SUPERVISOR','IACANS'),(6,'IA_READONLY','IACANS'),
-(7,'SOC_USER','SOCCANS'),(8,'CAYIT_USER','CAYITCANS'),
-(9,'RTOS_DCFSPOS_SUPERVISOR','RTOS');
-EXPLAIN SELECT t.person_id AS a, t.person_id AS b FROM v1 t WHERE t.person_id=6;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE profile const PRIMARY PRIMARY 4 const 1 Using temporary; Using filesort
-1 SIMPLE userrole ref idx_person_id,idx_role_id idx_person_id 4 const 2
-1 SIMPLE role eq_ref PRIMARY PRIMARY 4 test.userrole.role_id 1
-SELECT t.person_id AS a, t.person_id AS b FROM v1 t WHERE t.person_id=6;
-a b
-6 6
-6 6
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-create table t1 (i int);
-insert into t1 values (1), (2), (1), (3), (2), (4);
-create view v1 as select distinct i from t1;
-select * from v1;
-i
-1
-2
-3
-4
-select table_name, is_updatable from information_schema.views
-where table_name = 'v1';
-table_name is_updatable
-v1 NO
-drop view v1;
-drop table t1;
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (1),(2);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM v1 USE KEY(non_existant);
-ERROR 42000: Key 'non_existant' doesn't exist in table 'v1'
-SELECT * FROM v1 FORCE KEY(non_existant);
-ERROR 42000: Key 'non_existant' doesn't exist in table 'v1'
-SELECT * FROM v1 IGNORE KEY(non_existant);
-ERROR 42000: Key 'non_existant' doesn't exist in table 'v1'
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT, b INT NOT NULL DEFAULT 0,
-PRIMARY KEY(a), KEY (b));
-INSERT INTO t1 VALUES (),(),(),(),(),(),(),(),(),(),(),(),(),(),();
-CREATE VIEW v1 AS SELECT * FROM t1 FORCE KEY (PRIMARY,b) ORDER BY a;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` FORCE INDEX (PRIMARY) FORCE INDEX (`b`) order by `t1`.`a` latin1 latin1_swedish_ci
-EXPLAIN SELECT * FROM v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 15
-CREATE VIEW v2 AS SELECT * FROM t1 USE KEY () ORDER BY a;
-SHOW CREATE VIEW v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` USE INDEX () order by `t1`.`a` latin1 latin1_swedish_ci
-EXPLAIN SELECT * FROM v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 15 Using filesort
-CREATE VIEW v3 AS SELECT * FROM t1 IGNORE KEY (b) ORDER BY a;
-SHOW CREATE VIEW v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` IGNORE INDEX (`b`) order by `t1`.`a` latin1 latin1_swedish_ci
-EXPLAIN SELECT * FROM v3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 15 Using filesort
-DROP VIEW v1;
-DROP VIEW v2;
-DROP VIEW v3;
-DROP TABLE t1;
-#
-# Bug#29477 Not all fields of the target table were checked to have
-# a default value when inserting into a view.
-#
-create table t1(f1 int, f2 int not null);
-create view v1 as select f1 from t1;
-insert ignore into v1 values(1);
-Warnings:
-Warning 1423 Field of view 'test.v1' underlying table doesn't have a default value
-set @old_mode=@@sql_mode;
-set @@sql_mode=traditional;
-insert into v1 values(1);
-ERROR HY000: Field of view 'test.v1' underlying table doesn't have a default value
-set @@sql_mode=@old_mode;
-drop view v1;
-drop table t1;
-create table t1 (a int, key(a));
-create table t2 (c int);
-create view v1 as select a b from t1;
-create view v2 as select 1 a from t2, v1 where c in
-(select 1 from t1 where b = a);
-insert into t1 values (1), (1);
-insert into t2 values (1), (1);
-prepare stmt from "select * from v2 where a = 1";
-execute stmt;
-a
-1
-1
-1
-1
-drop view v1, v2;
-drop table t1, t2;
-CREATE TABLE t1 (a INT);
-CREATE VIEW v1 AS SELECT p.a AS a FROM t1 p, t1 q;
-INSERT INTO t1 VALUES (1), (1);
-SELECT MAX(a), COUNT(DISTINCT a) FROM v1 GROUP BY a;
-MAX(a) COUNT(DISTINCT a)
-1 1
-DROP VIEW v1;
-DROP TABLE t1;
-# -----------------------------------------------------------------
-# -- Bug#34337 Server crash when Altering a view using a table name.
-# -----------------------------------------------------------------
-
-DROP TABLE IF EXISTS t1;
-
-CREATE TABLE t1(c1 INT);
-
-SELECT * FROM t1;
-c1
-ALTER ALGORITHM=TEMPTABLE SQL SECURITY INVOKER VIEW t1 (c2) AS SELECT (1);
-ERROR HY000: 'test.t1' is not of type 'VIEW'
-
-DROP TABLE t1;
-
-# -- End of test case for Bug#34337.
-
-# -----------------------------------------------------------------
-# -- Bug#35193 VIEW query is rewritten without "FROM DUAL",
-# -- causing syntax error
-# -----------------------------------------------------------------
-
-CREATE VIEW v1 AS SELECT 1 FROM DUAL WHERE 1;
-
-SELECT * FROM v1;
-1
-1
-SHOW CREATE TABLE v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 AS `1` from DUAL where 1 latin1 latin1_swedish_ci
-
-DROP VIEW v1;
-
-# -- End of test case for Bug#35193.
-
-CREATE VIEW v1 AS SELECT 1;
-DROP VIEW v1;
-CREATE TABLE t1 (c1 INT PRIMARY KEY, c2 INT, INDEX (c2));
-INSERT INTO t1 VALUES (1,1), (2,2), (3,3);
-SELECT * FROM t1 USE INDEX (PRIMARY) WHERE c1=2;
-c1 c2
-2 2
-SELECT * FROM t1 USE INDEX (c2) WHERE c2=2;
-c1 c2
-2 2
-CREATE VIEW v1 AS SELECT c1, c2 FROM t1;
-SHOW INDEX FROM v1;
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
-SELECT * FROM v1 USE INDEX (PRIMARY) WHERE c1=2;
-ERROR 42000: Key 'PRIMARY' doesn't exist in table 'v1'
-SELECT * FROM v1 FORCE INDEX (PRIMARY) WHERE c1=2;
-ERROR 42000: Key 'PRIMARY' doesn't exist in table 'v1'
-SELECT * FROM v1 IGNORE INDEX (PRIMARY) WHERE c1=2;
-ERROR 42000: Key 'PRIMARY' doesn't exist in table 'v1'
-SELECT * FROM v1 USE INDEX (c2) WHERE c2=2;
-ERROR 42000: Key 'c2' doesn't exist in table 'v1'
-SELECT * FROM v1 FORCE INDEX (c2) WHERE c2=2;
-ERROR 42000: Key 'c2' doesn't exist in table 'v1'
-SELECT * FROM v1 IGNORE INDEX (c2) WHERE c2=2;
-ERROR 42000: Key 'c2' doesn't exist in table 'v1'
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug #45806 crash when replacing into a view with a join!
-#
-CREATE TABLE t1(a INT UNIQUE);
-CREATE VIEW v1 AS SELECT t1.a FROM t1, t1 AS a;
-INSERT INTO t1 VALUES (1), (2);
-REPLACE INTO v1(a) SELECT 1 FROM t1,t1 AS c;
-SELECT * FROM v1;
-a
-1
-2
-1
-2
-REPLACE INTO v1(a) SELECT 3 FROM t1,t1 AS c;
-SELECT * FROM v1;
-a
-1
-2
-3
-1
-2
-3
-1
-2
-3
-DELETE FROM t1 WHERE a=3;
-INSERT INTO v1(a) SELECT 1 FROM t1,t1 AS c
-ON DUPLICATE KEY UPDATE `v1`.`a`= 1;
-SELECT * FROM v1;
-a
-1
-2
-1
-2
-CREATE VIEW v2 AS SELECT t1.a FROM t1, v1 AS a;
-REPLACE INTO v2(a) SELECT 1 FROM t1,t1 AS c;
-SELECT * FROM v2;
-a
-1
-2
-1
-2
-1
-2
-1
-2
-REPLACE INTO v2(a) SELECT 3 FROM t1,t1 AS c;
-SELECT * FROM v2;
-a
-1
-2
-3
-1
-2
-3
-1
-2
-3
-1
-2
-3
-1
-2
-3
-1
-2
-3
-1
-2
-3
-1
-2
-3
-1
-2
-3
-INSERT INTO v2(a) SELECT 1 FROM t1,t1 AS c
-ON DUPLICATE KEY UPDATE `v2`.`a`= 1;
-SELECT * FROM v2;
-a
-1
-2
-3
-1
-2
-3
-1
-2
-3
-1
-2
-3
-1
-2
-3
-1
-2
-3
-1
-2
-3
-1
-2
-3
-1
-2
-3
-DROP VIEW v1;
-DROP VIEW v2;
-DROP TABLE t1;
-# -- End of test case for Bug#45806
-# -----------------------------------------------------------------
-# -- Bug#40825: Error 1356 while selecting from a view
-# -- with a "HAVING" clause though query works
-# -----------------------------------------------------------------
-
-CREATE TABLE t1 (c INT);
-
-CREATE VIEW v1 (view_column) AS SELECT c AS alias FROM t1 HAVING alias;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`c` AS `view_column` from `t1` having `view_column` <> 0 latin1 latin1_swedish_ci
-SELECT * FROM v1;
-view_column
-
-DROP VIEW v1;
-DROP TABLE t1;
-
-# -- End of test case for Bug#40825
-
-# -----------------------------------------------------------------
-# -- End of 5.0 tests.
-# -----------------------------------------------------------------
-DROP DATABASE IF EXISTS `d-1`;
-CREATE DATABASE `d-1`;
-USE `d-1`;
-CREATE TABLE `t-1` (c1 INT);
-CREATE VIEW `v-1` AS SELECT c1 FROM `t-1`;
-SHOW TABLES;
-Tables_in_d-1
-t-1
-v-1
-RENAME TABLE `t-1` TO `t-2`;
-RENAME TABLE `v-1` TO `v-2`;
-SHOW TABLES;
-Tables_in_d-1
-t-2
-v-2
-DROP TABLE `t-2`;
-DROP VIEW `v-2`;
-DROP DATABASE `d-1`;
-USE test;
-
-#
-# Bug#26676 VIEW using old table schema in a session.
-#
-
-DROP VIEW IF EXISTS v1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(c1 INT, c2 INT);
-INSERT INTO t1 VALUES (1, 2), (3, 4);
-
-SELECT * FROM t1;
-c1 c2
-1 2
-3 4
-
-CREATE VIEW v1 AS SELECT * FROM t1;
-
-SELECT * FROM v1;
-c1 c2
-1 2
-3 4
-
-ALTER TABLE t1 ADD COLUMN c3 INT AFTER c2;
-
-SELECT * FROM t1;
-c1 c2 c3
-1 2 NULL
-3 4 NULL
-
-SELECT * FROM v1;
-c1 c2
-1 2
-3 4
-
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`c1` AS `c1`,`t1`.`c2` AS `c2` from `t1` latin1 latin1_swedish_ci
-
-DROP VIEW v1;
-DROP TABLE t1;
-
-# End of test case for Bug#26676.
-
-# -----------------------------------------------------------------
-# -- Bug#32538 View definition picks up character set, but not collation
-# -----------------------------------------------------------------
-
-DROP VIEW IF EXISTS v1;
-
-SET collation_connection = latin1_general_ci;
-CREATE VIEW v1 AS SELECT _latin1 'text1' AS c1, 'text2' AS c2;
-
-SELECT COLLATION(c1), COLLATION(c2) FROM v1;
-COLLATION(c1) COLLATION(c2)
-latin1_swedish_ci latin1_general_ci
-
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select _latin1'text1' AS `c1`,'text2' AS `c2` latin1 latin1_general_ci
-
-SELECT * FROM v1 WHERE c1 = 'text1';
-ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (latin1_general_ci,COERCIBLE) for operation '='
-
-SELECT * FROM v1 WHERE c2 = 'text2';
-c1 c2
-text1 text2
-
-use test;
-SET names latin1;
-
-SELECT COLLATION(c1), COLLATION(c2) FROM v1;
-COLLATION(c1) COLLATION(c2)
-latin1_swedish_ci latin1_general_ci
-
-SELECT * FROM v1 WHERE c1 = 'text1';
-c1 c2
-text1 text2
-
-SELECT * FROM v1 WHERE c2 = 'text2';
-ERROR HY000: Illegal mix of collations (latin1_general_ci,COERCIBLE) and (latin1_swedish_ci,COERCIBLE) for operation '='
-
-DROP VIEW v1;
-
-# -- End of test case for Bug#32538.
-
-drop view if exists a;
-drop procedure if exists p;
-create procedure p()
-begin
-declare continue handler for sqlexception begin end;
-create view a as select 1;
-end|
-call p();
-call p();
-drop view a;
-drop procedure p;
-#
-# Bug #44860: ALTER TABLE on view crashes server
-#
-CREATE TABLE t1 (a INT);
-CREATE VIEW v1 AS SELECT a FROM t1;
-ALTER TABLE v1;
-ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug#48449: hang on show create view after upgrading when
-# view contains function of view
-#
-DROP VIEW IF EXISTS v1,v2;
-DROP TABLE IF EXISTS t1,t2;
-DROP FUNCTION IF EXISTS f1;
-CREATE TABLE t1 (a INT);
-CREATE TABLE t2 (a INT);
-CREATE FUNCTION f1() RETURNS INT
-BEGIN
-SELECT a FROM v2 INTO @a;
-RETURN @a;
-END//
-# Trigger pre-locking when opening v2.
-CREATE VIEW v1 AS SELECT f1() FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `f1`() AS `f1()` from `t1` latin1 latin1_swedish_ci
-Warnings:
-Note 1599 View `test`.`v2` has no creation context
-DROP VIEW v1,v2;
-DROP TABLE t1,t2;
-DROP FUNCTION f1;
-CREATE TABLE t1(f1 INT);
-INSERT INTO t1 VALUES ();
-CREATE VIEW v1 AS SELECT 1 FROM t1 WHERE
-ROW(1,1) >= ROW(1, (SELECT 1 FROM t1 WHERE f1 >= ANY ( SELECT '1' )));
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug#52120 create view cause Assertion failed: 0, file .\item_subselect.cc, line 817
-#
-CREATE TABLE t1 (a CHAR(1) CHARSET latin1, b CHAR(1) CHARSET utf8);
-CREATE VIEW v1 AS SELECT 1 from t1
-WHERE t1.b <=> (SELECT a FROM t1 WHERE a < SOME(SELECT '1'));
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug#57703 create view cause Assertion failed: 0, file .\item_subselect.cc, line 846
-#
-CREATE TABLE t1(a int);
-CREATE VIEW v1 AS SELECT 1 FROM t1 GROUP BY
-SUBSTRING(1 FROM (SELECT 3 FROM t1 WHERE a >= ANY(SELECT 1)));
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug#57352 valgrind warnings when creating view
-#
-CREATE VIEW v1 AS SELECT 1 IN (1 LIKE 2,0) AS f;
-DROP VIEW v1;
-#
-# Bug 11829681 - 60295: ERROR 1356 ON VIEW THAT EXECUTES FINE AS A QUERY
-#
-CREATE TABLE t1 (a INT);
-CREATE VIEW v1 AS SELECT s.* FROM t1 s, t1 b HAVING a;
-SELECT * FROM v1;
-a
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# LP BUG#777809 (a retrograded condition for view ON)
-#
-CREATE TABLE t1 ( f1 int NOT NULL , f6 int NOT NULL ) ;
-INSERT IGNORE INTO t1 VALUES (20, 2);
-CREATE TABLE t2 ( f3 int NOT NULL ) ;
-INSERT IGNORE INTO t2 VALUES (7);
-CREATE OR REPLACE VIEW v2 AS SELECT * FROM t2;
-PREPARE prep_stmt FROM 'SELECT t1.f6 FROM t1 RIGHT JOIN v2 ON v2.f3 WHERE t1.f1 != 0';
-EXECUTE prep_stmt;
-f6
-2
-EXECUTE prep_stmt;
-f6
-2
-drop view v2;
-drop table t1,t2;
-# -----------------------------------------------------------------
-# -- End of 5.1 tests.
-# -----------------------------------------------------------------
-#
-# Bug #794005: crash in st_table::mark_virtual_columns_for_write
-#
-CREATE TABLE t1 (a int);
-insert into t1 values (1);
-CREATE TABLE t2 (a int);
-insert into t2 values (1);
-CREATE VIEW v2 AS SELECT * FROM t2;
-CREATE VIEW v1 AS SELECT * FROM v2;
-CREATE VIEW v3 AS SELECT t2.a,v1.a as b FROM t2,v1 where t2.a=v1.a;
-CREATE OR REPLACE ALGORITHM = TEMPTABLE VIEW v2 AS SELECT * FROM t1;
-UPDATE v1 SET a = 10;
-ERROR HY000: The target table v1 of the UPDATE is not updatable
-REPLACE v1 SET a = 10;
-ERROR HY000: The target table v1 of the INSERT is not insertable-into
-INSERT into v1 values (20);
-ERROR HY000: The target table v1 of the INSERT is not insertable-into
-DELETE from v1;
-ERROR HY000: The target table v1 of the DELETE is not updatable
-UPDATE v3 SET b= 10;
-ERROR HY000: The target table v3 of the UPDATE is not updatable
-REPLACE v3 SET b= 10;
-ERROR HY000: The target table v3 of the INSERT is not insertable-into
-INSERT into v3(b) values (20);
-ERROR HY000: The target table v3 of the INSERT is not insertable-into
-DELETE from v3 where b=20;
-ERROR HY000: Can not delete from join view 'test.v3'
-DELETE from v3 where a=20;
-ERROR HY000: Can not delete from join view 'test.v3'
-DELETE v1 from v1,t1 where v1.a=t1.a;
-ERROR HY000: The target table v1 of the DELETE is not updatable
-UPDATE v3 SET a = 10;
-REPLACE v3 SET a = 11;
-INSERT INTO v3(a) values (20);
-select * from t1;
-a
-1
-select * from t2;
-a
-10
-11
-20
-CREATE OR REPLACE ALGORITHM = MERGE VIEW v2 AS SELECT * FROM t2;
-DELETE from v1 where a=11;
-DELETE v1 from v1,t1 where v1.a=t1.a;
-select * from t1;
-a
-1
-select * from t2;
-a
-10
-20
-DROP VIEW v1,v2,v3;
-DROP TABLE t1,t2;
-#
-# MDEV-6251: SIGSEGV in query optimizer (in set_check_materialized
-# with MERGE view)
-#
-CREATE TABLE t1 (a1 INT(11) NOT NULL DEFAULT NULL AUTO_INCREMENT PRIMARY KEY);
-CREATE TABLE t2 (b1 INT(11) NOT NULL DEFAULT NULL AUTO_INCREMENT PRIMARY KEY);
-CREATE TABLE t3 (c1 INT(11) NOT NULL DEFAULT NULL AUTO_INCREMENT PRIMARY KEY);
-CREATE TABLE t4 (d1 INT(11) NOT NULL DEFAULT NULL AUTO_INCREMENT PRIMARY KEY);
-CREATE TABLE t5 (e1 INT(11) NOT NULL DEFAULT NULL AUTO_INCREMENT PRIMARY KEY);
-CREATE TABLE t6 (f1 INT(11) NOT NULL DEFAULT NULL AUTO_INCREMENT PRIMARY KEY);
-CREATE OR REPLACE view v1 AS
-SELECT 1
-FROM t1 a_alias_1
-LEFT JOIN (t2 b_alias_1 JOIN t1 a_alias_2) ON b_alias_1.b1 = a_alias_1.a1 AND a_alias_2.a1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_1 ON c_alias_1.c1 = a_alias_1.a1
-LEFT JOIN t4 d_alias_1 ON d_alias_1.d1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_2 ON c_alias_2.c1 = a_alias_1.a1
-LEFT JOIN t5 e_alias_1 ON e_alias_1.e1 = a_alias_1.a1
-LEFT JOIN t6 f_alias_1 ON f_alias_1.f1 = a_alias_1.a1
-;
-SELECT 1
-FROM (( SELECT 1
-FROM t1 a_alias_1
-LEFT JOIN (t2 b_alias_1 JOIN t1 a_alias_2) ON b_alias_1.b1 = a_alias_1.a1 AND a_alias_2.a1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_1 ON c_alias_1.c1 = a_alias_1.a1
-LEFT JOIN t4 d_alias_1 ON d_alias_1.d1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_2 ON c_alias_2.c1 = a_alias_1.a1
-LEFT JOIN t5 e_alias_1 ON e_alias_1.e1 = a_alias_1.a1
-LEFT JOIN t6 f_alias_1 ON f_alias_1.f1 = a_alias_1.a1
-) t1)
-LEFT OUTER JOIN (( SELECT 1
-FROM t1 a_alias_1
-LEFT JOIN (t2 b_alias_1 JOIN t1 a_alias_2) ON b_alias_1.b1 = a_alias_1.a1 AND a_alias_2.a1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_1 ON c_alias_1.c1 = a_alias_1.a1
-LEFT JOIN t4 d_alias_1 ON d_alias_1.d1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_2 ON c_alias_2.c1 = a_alias_1.a1
-LEFT JOIN t5 e_alias_1 ON e_alias_1.e1 = a_alias_1.a1
-LEFT JOIN t6 f_alias_1 ON f_alias_1.f1 = a_alias_1.a1
-) t2) ON 1=1
-LEFT OUTER JOIN (( SELECT 1
-FROM t1 a_alias_1
-LEFT JOIN (t2 b_alias_1 JOIN t1 a_alias_2) ON b_alias_1.b1 = a_alias_1.a1 AND a_alias_2.a1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_1 ON c_alias_1.c1 = a_alias_1.a1
-LEFT JOIN t4 d_alias_1 ON d_alias_1.d1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_2 ON c_alias_2.c1 = a_alias_1.a1
-LEFT JOIN t5 e_alias_1 ON e_alias_1.e1 = a_alias_1.a1
-LEFT JOIN t6 f_alias_1 ON f_alias_1.f1 = a_alias_1.a1
-) t3) ON 1=1
-LEFT OUTER JOIN (( SELECT 1
-FROM t1 a_alias_1
-LEFT JOIN (t2 b_alias_1 JOIN t1 a_alias_2) ON b_alias_1.b1 = a_alias_1.a1 AND a_alias_2.a1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_1 ON c_alias_1.c1 = a_alias_1.a1
-LEFT JOIN t4 d_alias_1 ON d_alias_1.d1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_2 ON c_alias_2.c1 = a_alias_1.a1
-LEFT JOIN t5 e_alias_1 ON e_alias_1.e1 = a_alias_1.a1
-LEFT JOIN t6 f_alias_1 ON f_alias_1.f1 = a_alias_1.a1
-) t4) ON 1=1
-LEFT OUTER JOIN (( SELECT 1
-FROM t1 a_alias_1
-LEFT JOIN (t2 b_alias_1 JOIN t1 a_alias_2) ON b_alias_1.b1 = a_alias_1.a1 AND a_alias_2.a1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_1 ON c_alias_1.c1 = a_alias_1.a1
-LEFT JOIN t4 d_alias_1 ON d_alias_1.d1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_2 ON c_alias_2.c1 = a_alias_1.a1
-LEFT JOIN t5 e_alias_1 ON e_alias_1.e1 = a_alias_1.a1
-LEFT JOIN t6 f_alias_1 ON f_alias_1.f1 = a_alias_1.a1
-) t5) ON 1=1
-LEFT OUTER JOIN (( SELECT 1
-FROM t1 a_alias_1
-LEFT JOIN (t2 b_alias_1 JOIN t1 a_alias_2) ON b_alias_1.b1 = a_alias_1.a1 AND a_alias_2.a1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_1 ON c_alias_1.c1 = a_alias_1.a1
-LEFT JOIN t4 d_alias_1 ON d_alias_1.d1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_2 ON c_alias_2.c1 = a_alias_1.a1
-LEFT JOIN t5 e_alias_1 ON e_alias_1.e1 = a_alias_1.a1
-LEFT JOIN t6 f_alias_1 ON f_alias_1.f1 = a_alias_1.a1
-) t6) ON 1=1
-LEFT OUTER JOIN (( SELECT 1
-FROM t1 a_alias_1
-LEFT JOIN (t2 b_alias_1 JOIN t1 a_alias_2) ON b_alias_1.b1 = a_alias_1.a1 AND a_alias_2.a1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_1 ON c_alias_1.c1 = a_alias_1.a1
-LEFT JOIN t4 d_alias_1 ON d_alias_1.d1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_2 ON c_alias_2.c1 = a_alias_1.a1
-LEFT JOIN t5 e_alias_1 ON e_alias_1.e1 = a_alias_1.a1
-LEFT JOIN t6 f_alias_1 ON f_alias_1.f1 = a_alias_1.a1
-) t7) ON 1=1
-LEFT OUTER JOIN (( SELECT 1
-FROM t1 a_alias_1
-LEFT JOIN (t2 b_alias_1 JOIN t1 a_alias_2) ON b_alias_1.b1 = a_alias_1.a1 AND a_alias_2.a1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_1 ON c_alias_1.c1 = a_alias_1.a1
-LEFT JOIN t4 d_alias_1 ON d_alias_1.d1 = a_alias_1.a1
-LEFT JOIN t3 c_alias_2 ON c_alias_2.c1 = a_alias_1.a1
-LEFT JOIN t5 e_alias_1 ON e_alias_1.e1 = a_alias_1.a1
-LEFT JOIN t6 f_alias_1 ON f_alias_1.f1 = a_alias_1.a1
-) t8) ON 1=1
-;
-1
-SELECT 1
-FROM (v1 t1)
-LEFT OUTER JOIN (v1 t2) ON 1=1
-LEFT OUTER JOIN (v1 t3) ON 1=1
-LEFT OUTER JOIN (v1 t4) ON 1=1
-LEFT OUTER JOIN (v1 t5) ON 1=1
-LEFT OUTER JOIN (v1 t6) ON 1=1
-LEFT OUTER JOIN (v1 t7) ON 1=1
-LEFT OUTER JOIN (v1 t8) ON 1=1
-;
-1
-drop view v1;
-drop table t1,t2,t3,t4,t5,t6;
-# -----------------------------------------------------------------
-# -- End of 5.2 tests.
-# -----------------------------------------------------------------
-#
-# Bug #59696 Optimizer does not use equalities for conditions over view
-#
-CREATE TABLE t1 (a int NOT NULL);
-INSERT INTO t1 VALUES
-(9), (2), (8), (1), (3), (4), (2), (5),
-(9), (2), (8), (1), (3), (4), (2), (5);
-CREATE TABLE t2 (pk int PRIMARY KEY, c int NOT NULL);
-INSERT INTO t2 VALUES
-(9,90), (16, 160), (11,110), (1,10), (18,180), (2,20),
-(14,140), (15, 150), (12,120), (3,30), (17,170), (19,190);
-EXPLAIN EXTENDED
-SELECT t1.a,t2.c FROM t1,t2 WHERE t2.pk = t1.a AND t2.pk > 8;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16 100.00 Using where
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`pk` = `test`.`t1`.`a` and `test`.`t1`.`a` > 8
-FLUSH STATUS;
-SELECT t1.a,t2.c FROM t1,t2 WHERE t2.pk = t1.a AND t2.pk > 8;
-a c
-9 90
-9 90
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-CREATE VIEW v AS SELECT * FROM t2;
-EXPLAIN EXTENDED
-SELECT t1.a,v.c FROM t1,v WHERE v.pk = t1.a AND v.pk > 8;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 16 100.00 Using where
-1 SIMPLE t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 100.00
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`pk` = `test`.`t1`.`a` and `test`.`t1`.`a` > 8
-FLUSH STATUS;
-SELECT t1.a,v.c FROM t1,v WHERE v.pk = t1.a AND v.pk > 8;
-a c
-9 90
-9 90
-SHOW STATUS LIKE 'Handler_read_%';
-Variable_name Value
-Handler_read_first 0
-Handler_read_key 1
-Handler_read_last 0
-Handler_read_next 0
-Handler_read_prev 0
-Handler_read_retry 0
-Handler_read_rnd 0
-Handler_read_rnd_deleted 0
-Handler_read_rnd_next 17
-DROP VIEW v;
-DROP TABLE t1, t2;
-#
-# Bug#702403: crash with multiple equalities and a view
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (10);
-CREATE TABLE t2 (pk int PRIMARY KEY, b int, INDEX idx (b));
-INSERT INTO t2 VALUES (1,2), (3,4);
-CREATE TABLE t3 (pk int PRIMARY KEY, b int, INDEX idx (b));
-INSERT INTO t3 VALUES (1,2), (3,4);
-CREATE VIEW v1 AS SELECT * FROM t1;
-EXPLAIN
-SELECT * FROM v1, t2, t3
-WHERE t3.pk = v1.a AND t2.b = 1 AND t2.b = t3.pk AND v1.a BETWEEN 2 AND 5;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-SELECT * FROM v1, t2, t3
-WHERE t3.pk = v1.a AND t2.b = 1 AND t2.b = t3.pk AND v1.a BETWEEN 2 AND 5;
-a pk b pk b
-DROP VIEW v1;
-DROP TABLE t1, t2, t3;
-#
-# Bug#717577: substitution for best field in a query over a view and
-# with OR in the WHERE condition
-#
-create table t1 (a int, b int);
-insert into t1 values (2,4), (1,3);
-create table t2 (c int);
-insert into t2 values (6), (4), (1), (3), (8), (3), (4), (2);
-select * from t1,t2 where t2.c=t1.a and t2.c < 3 or t2.c=t1.b and t2.c >=4;
-a b c
-2 4 4
-1 3 1
-2 4 4
-2 4 2
-explain extended
-select * from t1,t2 where t2.c=t1.a and t2.c < 3 or t2.c=t1.b and t2.c >=4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`c` = `test`.`t1`.`a` and `test`.`t1`.`a` < 3 or `test`.`t2`.`c` = `test`.`t1`.`b` and `test`.`t1`.`b` >= 4
-create view v1 as select * from t2;
-select * from t1,v1 where v1.c=t1.a and v1.c < 3 or v1.c=t1.b and v1.c >=4;
-a b c
-2 4 4
-1 3 1
-2 4 4
-2 4 2
-explain extended
-select * from t1,v1 where v1.c=t1.a and v1.c < 3 or v1.c=t1.b and v1.c >=4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`c` = `test`.`t1`.`a` and `test`.`t1`.`a` < 3 or `test`.`t2`.`c` = `test`.`t1`.`b` and `test`.`t1`.`b` >= 4
-create view v2 as select * from v1;
-select * from t1,v2 where v2.c=t1.a and v2.c < 3 or v2.c=t1.b and v2.c >=4;
-a b c
-2 4 4
-1 3 1
-2 4 4
-2 4 2
-explain extended
-select * from t1,v2 where v2.c=t1.a and v2.c < 3 or v2.c=t1.b and v2.c >=4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`c` = `test`.`t1`.`a` and `test`.`t1`.`a` < 3 or `test`.`t2`.`c` = `test`.`t1`.`b` and `test`.`t1`.`b` >= 4
-create view v3 as select * from t1;
-select * from v3,v2 where v2.c=v3.a and v2.c < 3 or v2.c=v3.b and v2.c >=4;
-a b c
-2 4 4
-1 3 1
-2 4 4
-2 4 2
-explain extended
-select * from v3,v2 where v2.c=v3.a and v2.c < 3 or v2.c=v3.b and v2.c >=4;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 8 100.00 Using where; Using join buffer (flat, BNL join)
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`c` = `test`.`t1`.`a` and `test`.`t1`.`a` < 3 or `test`.`t2`.`c` = `test`.`t1`.`b` and `test`.`t1`.`b` >= 4
-drop view v1,v2,v3;
-drop table t1,t2;
-#
-# Bug#724942: substitution of the constant into a view field
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (2), (9), (9), (6), (5), (4), (7);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM v1 WHERE a > -1 OR a > 6 AND a = 3;
-a
-2
-9
-9
-6
-5
-4
-7
-EXPLAIN EXTENDED
-SELECT * FROM v1 WHERE a > -1 OR a > 6 AND a = 3;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > -1
-SELECT * FROM v1 WHERE a > -1 OR a AND a = 0;
-a
-2
-9
-9
-6
-5
-4
-7
-EXPLAIN EXTENDED
-SELECT * FROM v1 WHERE a > -1 OR a AND a = 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > -1
-CREATE VIEW v2 AS SELECT * FROM v1;
-SELECT * FROM v2 WHERE a > -1 OR a AND a = 0;
-a
-2
-9
-9
-6
-5
-4
-7
-EXPLAIN EXTENDED
-SELECT * FROM v2 WHERE a > -1 OR a AND a = 0;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 7 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > -1
-DROP VIEW v1,v2;
-DROP TABLE t1;
-CREATE TABLE t1 (a varchar(10), KEY (a)) ;
-INSERT INTO t1 VALUES
-('DD'), ('ZZ'), ('ZZ'), ('KK'), ('FF'), ('HH'),('MM');
-CREATE VIEW v1 AS SELECT * FROM t1;
-# t1 and v1 should return the same result set
-SELECT * FROM v1 WHERE a > 'JJ' OR a <> 0 AND a = 'VV';
-a
-KK
-MM
-ZZ
-ZZ
-SELECT * FROM t1 WHERE a > 'JJ' OR a <> 0 AND a = 'VV';
-a
-KK
-MM
-ZZ
-ZZ
-# t1 and v1 should propagate constants in the same way
-EXPLAIN EXTENDED
-SELECT * FROM v1 WHERE a > 'JJ' OR a <> 0 AND a = 'VV';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range a a 13 NULL 4 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 'JJ' or `test`.`t1`.`a` = 'VV' and `test`.`t1`.`a` <> 0
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a > 'JJ' OR a <> 0 AND a = 'VV';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range a a 13 NULL 4 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 'JJ' or `test`.`t1`.`a` = 'VV' and `test`.`t1`.`a` <> 0
-# t1 and v1 should return the same result set
-SELECT * FROM v1 WHERE a > 'JJ' OR a AND a = 'VV';
-a
-KK
-MM
-ZZ
-ZZ
-SELECT * FROM t1 WHERE a > 'JJ' OR a AND a = 'VV';
-a
-KK
-MM
-ZZ
-ZZ
-# t1 and v1 should propagate constants in the same way
-EXPLAIN EXTENDED
-SELECT * FROM v1 WHERE a > 'JJ' OR a AND a = 'VV';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range a a 13 NULL 4 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 'JJ' or `test`.`t1`.`a` = 'VV' and `test`.`t1`.`a` <> 0
-EXPLAIN EXTENDED
-SELECT * FROM t1 WHERE a > 'JJ' OR a AND a = 'VV';
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range a a 13 NULL 4 100.00 Using where; Using index
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 'JJ' or `test`.`t1`.`a` = 'VV' and `test`.`t1`.`a` <> 0
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug#777745: crash with equality propagation
-# over view fields
-#
-CREATE TABLE t1 (a int NOT NULL ) ;
-INSERT INTO t1 VALUES (2), (1);
-CREATE TABLE t2 (a int NOT NULL , b int NOT NULL) ;
-INSERT INTO t2 VALUES (2,20),(2,30);
-CREATE VIEW v2 AS SELECT * FROM t2;
-EXPLAIN
-SELECT * FROM t1,v2
-WHERE v2.a = t1.a AND v2.a = 2 AND v2.a IS NULL AND t1.a != 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
-SELECT * FROM t1,v2
-WHERE v2.a = t1.a AND v2.a = 2 AND v2.a IS NULL AND t1.a != 0;
-a a b
-EXPLAIN
-SELECT * FROM t1,v2
-WHERE v2.a = t1.a AND v2.a = 2 AND v2.a+1 > 2 AND t1.a != 0;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
-SELECT * FROM t1,v2
-WHERE v2.a = t1.a AND v2.a = 2 AND v2.a+1 > 2 AND t1.a != 0;
-a a b
-2 2 20
-2 2 30
-DROP VIEW v2;
-DROP TABLE t1,t2;
-#
-# Bug#794038: crash with INSERT/UPDATE/DELETE
-# over a non-updatable view
-#
-CREATE TABLE t1 (a int);
-CREATE ALGORITHM = TEMPTABLE VIEW v1 AS SELECT * FROM t1;
-CREATE ALGORITHM = MERGE VIEW v2 AS SELECT * FROM v1;
-CREATE ALGORITHM = TEMPTABLE VIEW v3 AS SELECT * FROM v2;
-INSERT INTO v3 VALUES (1);
-ERROR HY000: The target table v3 of the INSERT is not insertable-into
-UPDATE v3 SET a=0;
-ERROR HY000: The target table v3 of the UPDATE is not updatable
-DELETE FROM v3;
-ERROR HY000: The target table v3 of the DELETE is not updatable
-DROP VIEW v1,v2,v3;
-DROP TABLE t1;
-#
-# Bug#798621: crash with a view string field equal
-# to a constant
-#
-CREATE TABLE t1 (a varchar(32), b int) ;
-INSERT INTO t1 VALUES ('j', NULL), ('c', 8), ('c', 1);
-CREATE VIEW v1 AS SELECT * FROM t1;
-CREATE TABLE t2 (a varchar(32)) ;
-INSERT INTO t2 VALUES ('j'), ('c');
-SELECT * FROM v1 LEFT JOIN t2 ON t2.a = v1.a
-WHERE v1.b = 1 OR v1.a = 'a' AND LENGTH(v1.a) >= v1.b;
-a b a
-c 1 c
-EXPLAIN EXTENDED
-SELECT * FROM v1 LEFT JOIN t2 ON t2.a = v1.a
-WHERE v1.b = 1 OR v1.a = 'a' AND LENGTH(v1.a) >= v1.b;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
-1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a` from `test`.`t1` left join `test`.`t2` on(`test`.`t2`.`a` = `test`.`t1`.`a`) where `test`.`t1`.`b` = 1 or `test`.`t1`.`a` = 'a' and octet_length(`test`.`t1`.`a`) >= `test`.`t1`.`b`
-DROP VIEW v1;
-DROP TABLE t1,t2;
-# Bug#798625: duplicate of the previous one, but without crash
-CREATE TABLE t1 (f1 int NOT NULL, f2 int, f3 int, f4 varchar(32), f5 int) ;
-INSERT INTO t1 VALUES (20,5,2,'r', 0);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT v1.f4 FROM v1
-WHERE f1<>0 OR f2<>0 AND f4='v' AND (f2<>0 OR f3<>0 AND f5<>0 OR f4 LIKE '%b%');
-f4
-r
-EXPLAIN EXTENDED
-SELECT v1.f4 FROM v1
-WHERE f1<>0 OR f2<>0 AND f4='v' AND (f2<>0 OR f3<>0 AND f5<>0 OR f4 LIKE '%b%');
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 1 100.00
-Warnings:
-Note 1003 select 'r' AS `f4` from dual where 1
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# Bug#798576: abort on a GROUP BY query over a view with left join
-# that can be converted to inner join
-#
-CREATE TABLE t1 (a int NOT NULL , b int NOT NULL) ;
-INSERT INTO t1 VALUES (214,0), (6,6), (6,0), (7,0);
-CREATE TABLE t2 (b int) ;
-INSERT INTO t2 VALUES (88), (78), (6);
-CREATE ALGORITHM=MERGE VIEW v1 AS
-SELECT t1.a, t2.b FROM (t2 LEFT JOIN t1 ON t2.b > t1.a) WHERE t1.b <= 0;
-SELECT * FROM v1;
-a b
-6 88
-6 78
-7 88
-7 78
-SELECT a, MIN(b) FROM v1 GROUP BY a;
-a MIN(b)
-6 78
-7 78
-DROP VIEW v1;
-DROP TABLE t1,t2;
-#
-# LP bug #793386: unexpected 'Duplicate column name ''' error
-# at the second execution of a PS using a view
-#
-CREATE TABLE t1 (f1 int, f2 int, f3 int, f4 int);
-CREATE VIEW v1 AS
-SELECT t.f1, t.f2, s.f3, s.f4 FROM t1 t, t1 s
-WHERE t.f4 >= s.f2 AND s.f3 < 0;
-PREPARE stmt1 FROM
-"SELECT s.f1 AS f1, s.f2 AS f2, s.f3 AS f3, t.f4 AS f4
- FROM v1 AS t LEFT JOIN v1 AS s ON t.f4=s.f4 WHERE t.f2 <> 1225";
-EXECUTE stmt1;
-f1 f2 f3 f4
-EXECUTE stmt1;
-f1 f2 f3 f4
-DEALLOCATE PREPARE stmt1;
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# LP BUG#806071 (2 views with ORDER BY)
-#
-CREATE TABLE t1 (f1 int);
-INSERT INTO t1 VALUES (1),(1);
-CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT f1 FROM t1;
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT f1 FROM v1 ORDER BY f1;
-SELECT * FROM v2 AS a1, v2 AS a2;
-f1 f1
-1 1
-1 1
-1 1
-1 1
-EXPLAIN EXTENDED SELECT * FROM v2 AS a1, v2 AS a2;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY <derived3> ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
-1 PRIMARY <derived5> ALL NULL NULL NULL NULL 2 100.00 Using join buffer (flat, BNL join)
-5 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00
-3 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00
-Warnings:
-Note 1926 View 'test'.'v2' ORDER BY clause ignored because there is other ORDER BY clause already
-Note 1003 /* select#1 */ select `v1`.`f1` AS `f1`,`v1`.`f1` AS `f1` from `test`.`v1` join `test`.`v1` order by `v1`.`f1`
-DROP VIEW v1, v2;
-DROP TABLE t1;
-#
-# LP bug #823189: dependent subquery with RIGHT JOIN
-# referencing view in WHERE
-#
-CREATE TABLE t1 (a varchar(32));
-INSERT INTO t1 VALUES ('y'), ('w');
-CREATE TABLE t2 (a int);
-INSERT INTO t2 VALUES (10);
-CREATE TABLE t3 (a varchar(32), b int);
-CREATE TABLE t4 (a varchar(32));
-INSERT INTO t4 VALUES ('y'), ('w');
-CREATE VIEW v1 AS SELECT * FROM t1;
-EXPLAIN EXTENDED
-SELECT * FROM t1, t2
-WHERE t2.a NOT IN (SELECT t3.b FROM t3 RIGHT JOIN t4 ON (t4.a = t3.a)
-WHERE t4.a >= t1.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t3 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 DEPENDENT SUBQUERY t4 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,10 AS `a` from `test`.`t1` where !<expr_cache><10,`test`.`t1`.`a`>(<in_optimizer>(10,<exists>(/* select#2 */ select NULL from `test`.`t4` where `test`.`t4`.`a` >= `test`.`t1`.`a` and trigcond(<cache>(10) = NULL or <cache>(NULL is null)) having trigcond(NULL is null))))
-SELECT * FROM t1, t2
-WHERE t2.a NOT IN (SELECT t3.b FROM t3 RIGHT JOIN t4 ON (t4.a = t3.a)
-WHERE t4.a >= t1.a);
-a a
-EXPLAIN EXTENDED
-SELECT * FROM v1, t2
-WHERE t2.a NOT IN (SELECT t3.b FROM t3 RIGHT JOIN t4 ON (t4.a = t3.a)
-WHERE t4.a >= v1.a);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t3 system NULL NULL NULL NULL 0 0.00 Const row not found
-2 DEPENDENT SUBQUERY t4 ALL NULL NULL NULL NULL 2 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'v1.a' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,10 AS `a` from `test`.`t1` where !<expr_cache><10,`test`.`t1`.`a`>(<in_optimizer>(10,<exists>(/* select#2 */ select NULL from `test`.`t4` where `test`.`t4`.`a` >= `test`.`t1`.`a` and trigcond(<cache>(10) = NULL or <cache>(NULL is null)) having trigcond(NULL is null))))
-SELECT * FROM v1, t2
-WHERE t2.a NOT IN (SELECT t3.b FROM t3 RIGHT JOIN t4 ON (t4.a = t3.a)
-WHERE t4.a >= v1.a);
-a a
-DROP VIEW v1;
-DROP TABLE t1,t2,t3,t4;
-#
-# LP bug #823237: dependent subquery with LEFT JOIN
-# referencing view in WHERE
-# (duplicate of LP bug #823189)
-#
-CREATE TABLE t1 (a int);
-CREATE TABLE t2 ( b int, d int, e int);
-INSERT INTO t2 VALUES (7,8,0);
-CREATE TABLE t3 ( c int);
-INSERT INTO t3 VALUES (0);
-CREATE TABLE t4 (a int, b int, c int);
-INSERT INTO t4 VALUES (93,1,0), (95,NULL,0);
-CREATE VIEW v4 AS SELECT * FROM t4;
-EXPLAIN EXTENDED
-SELECT * FROM t3 , t4
-WHERE t4.c <= (SELECT t2.e FROM t2 LEFT JOIN t1 ON ( t1.a = t2.d )
-WHERE t2.b > t4.b);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t4 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t2 system NULL NULL NULL NULL 1 100.00
-2 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1276 Field or reference 'test.t4.b' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 0 AS `c`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t4`.`c` AS `c` from `test`.`t4` where `test`.`t4`.`c` <= <expr_cache><`test`.`t4`.`b`>((/* select#2 */ select 0 from dual where 7 > `test`.`t4`.`b`))
-SELECT * FROM t3 , t4
-WHERE t4.c <= (SELECT t2.e FROM t2 LEFT JOIN t1 ON ( t1.a = t2.d )
-WHERE t2.b > t4.b);
-c a b c
-0 93 1 0
-EXPLAIN EXTENDED
-SELECT * FROM t3, v4
-WHERE v4.c <= (SELECT t2.e FROM t2 LEFT JOIN t1 ON ( t1.a = t2.d )
-WHERE t2.b > v4.b);
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t3 system NULL NULL NULL NULL 1 100.00
-1 PRIMARY t4 ALL NULL NULL NULL NULL 2 100.00 Using where
-2 DEPENDENT SUBQUERY t2 system NULL NULL NULL NULL 1 100.00
-2 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 0 0.00 Const row not found
-Warnings:
-Note 1276 Field or reference 'v4.b' of SELECT #2 was resolved in SELECT #1
-Note 1003 /* select#1 */ select 0 AS `c`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t4`.`c` AS `c` from `test`.`t4` where `test`.`t4`.`c` <= <expr_cache><`test`.`t4`.`b`>((/* select#2 */ select 0 from dual where 7 > `test`.`t4`.`b`))
-SELECT * FROM t3, v4
-WHERE v4.c <= (SELECT t2.e FROM t2 LEFT JOIN t1 ON ( t1.a = t2.d )
-WHERE t2.b > v4.b);
-c a b c
-0 93 1 0
-DROP VIEW v4;
-DROP TABLE t1,t2,t3,t4;
-drop table if exists t_9801;
-drop view if exists v_9801;
-create table t_9801 (s1 int);
-create view v_9801 as
-select sum(s1) from t_9801 with check option;
-ERROR HY000: CHECK OPTION on non-updatable view `test`.`v_9801`
-create view v_9801 as
-select sum(s1) from t_9801 group by s1 with check option;
-ERROR HY000: CHECK OPTION on non-updatable view `test`.`v_9801`
-create view v_9801 as
-select sum(s1) from t_9801 group by s1 with rollup with check option;
-ERROR HY000: CHECK OPTION on non-updatable view `test`.`v_9801`
-drop table t_9801;
-#
-# Bug #47335 assert in get_table_share
-#
-DROP TABLE IF EXISTS t1;
-DROP VIEW IF EXISTS v1;
-CREATE TEMPORARY TABLE t1 (id INT);
-ALTER VIEW t1 AS SELECT 1 AS f1;
-ERROR 42S02: Table 'test.t1' doesn't exist
-DROP TABLE t1;
-CREATE VIEW v1 AS SELECT 1 AS f1;
-CREATE TEMPORARY TABLE v1 (id INT);
-ALTER VIEW v1 AS SELECT 2 AS f1;
-DROP TABLE v1;
-SELECT * FROM v1;
-f1
-2
-DROP VIEW v1;
-#
-# Bug #47635 assert in start_waiting_global_read_lock
-# during CREATE VIEW
-#
-DROP TABLE IF EXISTS t1, t2;
-DROP VIEW IF EXISTS t2;
-CREATE TABLE t1 (f1 integer);
-CREATE TEMPORARY TABLE IF NOT EXISTS t1 (f1 integer);
-CREATE TEMPORARY TABLE t2 (f1 integer);
-DROP TABLE t1;
-FLUSH TABLES WITH READ LOCK;
-CREATE VIEW t2 AS SELECT * FROM t1;
-ERROR HY000: Can't execute the query because you have a conflicting read lock
-UNLOCK TABLES;
-DROP TABLE t1, t2;
-#
-# Bug#48315 Metadata lock is not taken for merged views that
-# use an INFORMATION_SCHEMA table
-#
-DROP VIEW IF EXISTS v1;
-DROP PROCEDURE IF EXISTS p1;
-connect con2, localhost, root;
-connect con3, localhost, root;
-connection default;
-CREATE VIEW v1 AS SELECT schema_name FROM information_schema.schemata;
-CREATE PROCEDURE p1() SELECT COUNT(*), GET_LOCK('blocker', 100) FROM v1;
-# CALL p1() so the view is merged.
-CALL p1();
-SELECT RELEASE_LOCK('blocker');
-RELEASE_LOCK('blocker')
-1
-connection con3;
-SELECT GET_LOCK('blocker', 100);
-GET_LOCK('blocker', 100)
-1
-connection default;
-# Try to CALL p1() again, this time it should block on "blocker".
-# Sending:
-CALL p1();
-connection con2;
-# ... then try to drop the view. This should block.
-# Sending:
-DROP VIEW v1;
-connection con3;
-# Now allow CALL p1() to complete
-SELECT RELEASE_LOCK('blocker');
-RELEASE_LOCK('blocker')
-1
-connection default;
-# Reaping: CALL p1()
-SELECT RELEASE_LOCK('blocker');
-RELEASE_LOCK('blocker')
-1
-connection con2;
-# Reaping: DROP VIEW v1
-connection default;
-DROP PROCEDURE p1;
-disconnect con2;
-disconnect con3;
-#
-# Bug#12626844: WRONG ERROR MESSAGE WHILE CREATING A VIEW ON A
-# NON EXISTING DATABASE
-#
-DROP DATABASE IF EXISTS nodb;
-CREATE VIEW nodb.a AS SELECT 1;
-ERROR 42000: Unknown database 'nodb'
-#
-# BUG#14117018 - MYSQL SERVER CREATES INVALID VIEW DEFINITION
-# BUG#18405221 - SHOW CREATE VIEW OUTPUT INCORRECT
-#
-CREATE VIEW v1 AS (SELECT '' FROM DUAL);
-CREATE VIEW v2 AS (SELECT 'BUG#14117018' AS col1 FROM DUAL) UNION ALL
-(SELECT '' FROM DUAL);
-CREATE VIEW v3 AS (SELECT 'BUG#14117018' AS col1 FROM DUAL) UNION ALL
-(SELECT '' FROM DUAL) UNION ALL
-(SELECT '' FROM DUAL);
-CREATE VIEW v4 AS (SELECT 'BUG#14117018' AS col1 FROM DUAL) UNION ALL
-(SELECT '' AS col2 FROM DUAL) UNION ALL
-(SELECT '' FROM DUAL);
-CREATE VIEW v5 AS (SELECT 'buggy' AS col1, 'fix' as col2 FROM DUAL) UNION ALL
-(SELECT 'buggy' as a, 'fix' as a FROM DUAL);
-# Name for the column in select1 is set properly with or
-# without this fix.
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS (select '' AS `Name_exp_1`) latin1 latin1_swedish_ci
-# Name for the column in select2 is set with this fix.
-# Without this fix, name would not have set for the
-# columns in select2.
-SHOW CREATE VIEW v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS (select 'BUG#14117018' AS `col1`) union all (select '' AS `Name_exp_1`) latin1 latin1_swedish_ci
-# Name for the field item in select2 & select3 is set with this fix.
-# Without this fix, name would not have set for the
-# columns in select2 & select3.
-SHOW CREATE VIEW v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS (select 'BUG#14117018' AS `col1`) union all (select '' AS `Name_exp_1`) union all (select '' AS `Name_exp_1`) latin1 latin1_swedish_ci
-# Name for the field item in select3 is set with this fix.
-# Without this fix, name would not have set for the
-# columns in select3.
-SHOW CREATE VIEW v4;
-View Create View character_set_client collation_connection
-v4 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v4` AS (select 'BUG#14117018' AS `col1`) union all (select '' AS `col2`) union all (select '' AS `Name_exp_1`) latin1 latin1_swedish_ci
-DROP VIEW v1, v2, v3, v4, v5;
-#
-# BUG#19886430: VIEW CREATION WITH NAMED COLUMNS, OVER UNION,
-# IS REJECTED
-# Without the patch, reports an error.
-CREATE VIEW v1 (fld1, fld2) AS
-SELECT 1 AS a, 2 AS b
-UNION ALL
-SELECT 1 AS a, 1 AS a;
-# The column names are explicitly specified and not duplicates, hence
-# succeeds.
-CREATE VIEW v2 (fld1, fld2) AS
-SELECT 1 AS a, 2 AS a
-UNION ALL
-SELECT 1 AS a, 1 AS a;
-# The column name in the first SELECT are not duplicates, hence succeeds.
-CREATE VIEW v3 AS
-SELECT 1 AS a, 2 AS b
-UNION ALL
-SELECT 1 AS a, 1 AS a;
-# Should report an error, since the explicitly specified column names are
-# duplicates.
-CREATE VIEW v4 (fld1, fld1) AS
-SELECT 1 AS a, 2 AS b
-UNION ALL
-SELECT 1 AS a, 1 AS a;
-ERROR 42S21: Duplicate column name 'fld1'
-# Should report an error, since duplicate column name is specified in the
-# First SELECT.
-CREATE VIEW v4 AS
-SELECT 1 AS a, 2 AS a
-UNION ALL
-SELECT 1 AS a, 1 AS a;
-ERROR 42S21: Duplicate column name 'a'
-# Cleanup
-DROP VIEW v1, v2, v3;
-#
-# lp:833600 Wrong result with view + outer join + uncorrelated subquery (non-semijoin)
-#
-CREATE TABLE t1 ( a int, b int );
-INSERT INTO t1 VALUES (0,0),(0,0);
-CREATE TABLE t2 ( a int, b int );
-INSERT IGNORE INTO t2 VALUES (1,0),(1,0);
-CREATE TABLE t3 ( b int );
-INSERT IGNORE INTO t3 VALUES (0),(0);
-CREATE OR REPLACE VIEW v2 AS SELECT * FROM t2;
-SELECT * FROM t1 RIGHT JOIN v2 ON ( v2.a = t1.a ) WHERE v2.b IN ( SELECT b FROM t3 ) AND t1.b IS NULL ;
-a b a b
-NULL NULL 1 0
-NULL NULL 1 0
-SELECT * FROM t1 RIGHT JOIN v2 ON ( v2.a = t1.a ) WHERE v2.b IN ( SELECT b FROM t3 ) AND t1.b IS NULL ;
-a b a b
-NULL NULL 1 0
-NULL NULL 1 0
-DROP VIEW v2;
-DROP TABLE t1, t2, t3;
-#
-# BUG#915222: Valgrind complains or crashes with INSERT SELECT
-# within a trigger that uses a view
-#
-CREATE TABLE t1 (a char(1));
-CREATE TABLE t2 (d int, e char(1));
-INSERT INTO t2 VALUES (13,'z');
-CREATE TRIGGER tr AFTER UPDATE ON t2
-FOR EACH ROW
-REPLACE INTO t3
-SELECT f, a AS alias FROM t3, v;
-CREATE TABLE t3 (f int, g char(8));
-CREATE VIEW v AS SELECT a, e FROM t2, t1;
-UPDATE t2 SET d=7;
-UPDATE t2 SET d=7;
-UPDATE t2 SET d=7;
-UPDATE t2 SET d=7;
-DROP TRIGGER tr;
-DROP VIEW v;
-DROP TABLE t1,t2,t3;
-#
-# BUG#972943: Assertion failure with INSERT SELECT within a trigger
-# that uses derived table and materialized view
-#
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (1,0), (2,8);
-CREATE ALGORITHM=TEMPTABLE VIEW v1
-AS SELECT * FROM t1;
-CREATE TABLE t2 (c int);
-CREATE TABLE t3 (d int, e int);
-CREATE TRIGGER tr BEFORE INSERT ON t2 FOR EACH ROW
-INSERT INTO t3
-SELECT t1.*
-FROM (SELECT * FROM t1 WHERE b IN (SELECT b FROM v1)) AS alias1, t1
-WHERE t1.a = 3 OR t1.a > 5;
-INSERT INTO t2 VALUES (1);
-DROP TRIGGER tr;
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# LP bug#1007622 Server crashes in handler::increment_statistics on
-# inserting into a view over a view
-#
-flush status;
-CREATE TABLE t1 (a INT);
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT a1.* FROM t1 AS a1, t1 AS a2;
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM v1;
-INSERT INTO v2 (a) VALUES (1) ;
-select * from t1;
-a
-1
-drop view v2,v1;
-drop table t1;
-show status like '%view%';
-Variable_name Value
-Com_create_view 2
-Com_drop_view 1
-Opened_views 3
-show status like 'Opened_table%';
-Variable_name Value
-Opened_table_definitions 2
-Opened_tables 2
-#
-# MDEV-486 LP BUG#1010116 Incorrect query results in
-# view and derived tables
-#
-SELECT
-`Derived1`.`id`,
-`Derived2`.`Val1`
-FROM (select 30631 as `id`) AS `Derived1` LEFT OUTER JOIN (SELECT
-2 as `id`,
-1 AS `Val1`
-FROM (select 30631 as `id`) AS `Derived3`) AS `Derived2` ON `Derived1`.`id` = `Derived2`.`id`;
-id Val1
-30631 NULL
-create table t1 ( id int );
-insert into t1 values (30631);
-create table t2 ( id int );
-insert into t2 values (30631);
-create algorithm=MERGE view v2 as select 2 as id, 1 as val1 from t2;
-select t1.*, v2.* from t1 left join v2 on t1.id = v2.id;
-id id val1
-30631 NULL NULL
-drop view v2;
-drop table t1,t2;
-create table t1 ( id int );
-insert into t1 values (30631);
-create table t2 ( id int );
-insert into t2 values (30631);
-create algorithm=MERGE view v2 as select 2 as id, id is null as bbb, id as iddqd, 1 as val1 from t2;
-select t1.*, v2.* from t1 left join v2 on t1.id = v2.id;
-id id bbb iddqd val1
-30631 NULL NULL NULL NULL
-drop view v2;
-drop table t1,t2;
-#
-# MDEV-3914: Wrong result (NULLs instead of real values)
-# with INNER and RIGHT JOIN in a FROM subquery, derived_merge=on
-# (fix of above MDEV-486 fix)
-#
-SET @save_optimizer_switch_MDEV_3914=@@optimizer_switch;
-SET optimizer_switch = 'derived_merge=on';
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3),(4);
-CREATE TABLE t3 (c INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (5),(6);
-SELECT * FROM ( SELECT c FROM ( t1 INNER JOIN t2 ) RIGHT JOIN t3 ON a = c ) AS alias;
-c
-5
-6
-SET optimizer_switch = 'derived_merge=off';
-SELECT * FROM ( SELECT c FROM ( t1 INNER JOIN t2 ) RIGHT JOIN t3 ON a = c ) AS alias;
-c
-5
-6
-SET optimizer_switch=@save_optimizer_switch_MDEV_3914;
-drop table t1,t2,t3;
-#
-# MDEV-589 (LP BUG#1007647) :
-# Assertion `vcol_table == 0 || vcol_table == table' failed in
-# fill_record(THD*, List<Item>&, List<Item>&, bool)
-#
-CREATE TABLE t1 (f1 INT, f2 INT);
-CREATE TABLE t2 (f1 INT, f2 INT);
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT a1.f1, a2.f2 FROM t1 AS a1, t1 AS a2;
-CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM v1;
-CREATE ALGORITHM=MERGE VIEW v3 AS SELECT a1.f1, a2.f2 FROM t1 AS a1, t2 AS a2;
-CREATE ALGORITHM=MERGE VIEW v4 AS SELECT * FROM v3;
-INSERT INTO v3 (f1, f2) VALUES (1, 2);
-ERROR HY000: Can not modify more than one base table through a join view 'test.v3'
-INSERT INTO v1 (f1, f2) VALUES (1, 2);
-ERROR HY000: Can not modify more than one base table through a join view 'test.v1'
-INSERT INTO v4 (f1, f2) VALUES (1, 2);
-ERROR HY000: Can not modify more than one base table through a join view 'test.v4'
-INSERT INTO v2 (f1, f2) VALUES (1, 2);
-ERROR HY000: Can not modify more than one base table through a join view 'test.v2'
-drop view v4,v3,v2,v1;
-drop table t1,t2;
-#
-# MDEV-3799 fix of above bugfix (MDEV-589)
-# Wrong result (NULLs instead of real values) with RIGHT JOIN
-# in a FROM subquery and derived_merge=on
-#
-CREATE TABLE t1 (f1 INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (4),(6);
-CREATE TABLE t2 (f2 INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (7),(8);
-SELECT * FROM (
-SELECT * FROM t1 RIGHT JOIN t2 ON f1 = f2
-) AS alias;
-f1 f2
-NULL 7
-NULL 8
-SELECT * FROM (
-SELECT * FROM t2 LEFT JOIN t1 ON f1 = f2
-) AS alias;
-f2 f1
-7 NULL
-8 NULL
-drop tables t1,t2;
-#
-# MDEV-3876 Wrong result (extra rows) with ALL subquery
-# from a MERGE view (duplicate of MDEV-3873)
-#
-CREATE TABLE t1 (a INT NOT NULL) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT NOT NULL) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (1),(3);
-CREATE OR REPLACE ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t2;
-SELECT a FROM t1 AS alias
-WHERE a >= ALL (
-SELECT b FROM t1 LEFT JOIN v1 ON (a = b)
-WHERE a = alias.a );
-a
-1
-drop view v1;
-drop table t1,t2;
-#
-# MDEV-4593: p_s: crash in simplify_joins with delete using subselect
-# from view
-#
-create table `t1`(`a` int);
-create table `t2`(`a` int);
-create or replace view `v1` as select `a` from `t1`;
-prepare s from "delete from `t2` order by (select 1 from `v1`)";
-execute s;
-deallocate prepare s;
-drop view v1;
-drop tables t1,t2;
-#
-# MDEV-5034 (duplicate of MDEV-5107):
-# Left Join Yields All Nulls Instead of Appropriate Matches
-#
-# test #1
-CREATE TABLE t1 (state VARCHAR(32), INDEX(state));
-INSERT INTO t1 VALUES ('Indiana'),('Vermont');
-CREATE TABLE t2 (state VARCHAR(32));
-INSERT INTO t2 VALUES ('Hawaii'),('Oregon'),('Vermont');
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT t1.* FROM t2, t1;
-SELECT * FROM t1 AS outer_t1 LEFT JOIN v1 AS joined_t1
-ON (joined_t1.state = outer_t1.state AND joined_t1.state IN ( SELECT 'Vermont' UNION SELECT 'Florida' ) );
-state state
-Indiana NULL
-Vermont Vermont
-Vermont Vermont
-Vermont Vermont
-SELECT * FROM t1 AS outer_t1 LEFT JOIN (SELECT t1.* FROM t2, t1) AS joined_t1 ON (joined_t1.state = outer_t1.state AND joined_t1.state IN ( SELECT 'Vermont' UNION SELECT 'Florida' ) );
-state state
-Indiana NULL
-Vermont Vermont
-Vermont Vermont
-Vermont Vermont
-drop view v1;
-drop table t1, t2;
-# test #1
-CREATE TABLE t1 (a INT, b VARCHAR(1), INDEX(b,a));
-INSERT INTO t1 VALUES (4,'p'),(1,'q'),(9,'w');
-CREATE TABLE t2 (c VARCHAR(1), INDEX(c));
-INSERT INTO t2 VALUES ('q'),('a');
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT t1a.* FROM t1, t1 AS t1a;
-SELECT * FROM t2 LEFT JOIN v1 ON ( c=b AND a IN ( 1,6 ) );
-c a b
-a NULL NULL
-q 1 q
-q 1 q
-q 1 q
-CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT t1a.* FROM t1, t1 AS t1a;
-SELECT * FROM t2 LEFT JOIN v1 ON ( c=b AND a IN ( 1,6 ) );
-c a b
-a NULL NULL
-q 1 q
-q 1 q
-q 1 q
-drop view v1;
-drop table t1,t2;
-#
-# MDEV-5153: Server crashes in Item_ref::fix_fields on 2nd execution
-# of PS with LEFT JOIN and MERGE view or SELECT SQ
-#
-CREATE TABLE t1 (i1 INT, c1 VARCHAR(6)) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1,'foo'),(2,'bar');
-CREATE TABLE t2 (c2 VARCHAR(6)) ENGINE=MyISAM;
-INSERT INTO t2 VALUES ('foobar'),('qux');
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1 WHERE ( c1 ) IN ( SELECT c2 FROM t2 ) AND i1 <= 2 ;
-PREPARE stmt FROM 'SELECT * FROM t1 LEFT JOIN v1 ON (v1.i1 = t1.i1)';
-EXECUTE stmt;
-i1 c1 i1 c1
-1 foo NULL NULL
-2 bar NULL NULL
-EXECUTE stmt;
-i1 c1 i1 c1
-1 foo NULL NULL
-2 bar NULL NULL
-drop view v1;
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1 WHERE ( c1, c1 ) IN ( SELECT c2, c2 FROM t2 ) AND i1 <= 2 ;
-EXECUTE stmt;
-i1 c1 i1 c1
-1 foo NULL NULL
-2 bar NULL NULL
-EXECUTE stmt;
-i1 c1 i1 c1
-1 foo NULL NULL
-2 bar NULL NULL
-deallocate prepare stmt;
-drop view v1;
-drop table t1,t2;
-create table t1 (a int);
-insert into t1 values (1),(2);
-create view v1 (a,r) as select a,rand() from t1;
-create table t2 select a, r as r1, r as r2, r as r3 from v1;
-select a, r1 = r2, r2 = r3 from t2;
-a r1 = r2 r2 = r3
-1 1 1
-2 1 1
-drop view v1;
-drop table t1,t2;
-#
-# MDEV-5515: 2nd execution of a prepared statement returns wrong results
-#
-CREATE TABLE t1 (i1 INT, j1 INT NOT NULL, PRIMARY KEY (i1));
-INSERT INTO t1 VALUES (30,300),(40,400);
-CREATE TABLE t2 (i2 INT);
-INSERT INTO t2 VALUES (50),(60);
-CREATE TABLE t3 (c3 VARCHAR(20), i3 INT);
-INSERT INTO t3 VALUES ('a',10),('b',2);
-CREATE TABLE t4 (i4 INT);
-INSERT INTO t4 VALUES (1),(2);
-DROP VIEW IF EXISTS v1;
-Warnings:
-Note 4092 Unknown VIEW: 'test.v1'
-CREATE VIEW v1 AS select coalesce(j1,i3) AS v1_field1 from t2 join t3 left join t1 on ( i1 = i2 );
-CREATE VIEW v2 AS select v1_field1 from t4 join v1;
-prepare my_stmt from "select v1_field1 from v2";
-execute my_stmt;
-v1_field1
-10
-10
-10
-10
-2
-2
-2
-2
-execute my_stmt;
-v1_field1
-10
-10
-10
-10
-2
-2
-2
-2
-deallocate prepare my_stmt;
-DROP VIEW v1,v2;
-DROP TABLE t1,t2,t3,t4;
-#
-#MDEV-5717: Server crash with insert statement containing DEFAULT into
-#view
-#
-CREATE TABLE t1 (
-`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
-`test` tinyint(3) unsigned NOT NULL DEFAULT '0',
-PRIMARY KEY (`id`)
-);
-CREATE VIEW v1 AS (select t1.id AS id, t1.test AS test from t1);
-INSERT INTO v1 SET test = DEFAULT;
-select * from v1;
-id test
-1 0
-drop view v1;
-drop table t1;
-#
-# MDEV-5981: name resolution issues with views and multi-update
-# in ps-protocol
-#
-create table t1 (id1 int primary key, val1 varchar(20));
-insert into t1 values (1, 'test1');
-create table t2 (id2 int primary key, val2 varchar(20));
-insert into t2 values (1, 'test2');
-create algorithm=merge view v1 as select id1 as id1v1, val1 as val1v1 from t1;
-create algorithm=merge view v2 as
-select t2.id2 as id2v2, t2.val2 as val2v2
-from t2, v1
-where t2.id2 = v1.id1v1;
-prepare stmt1 from "update v2 set val2v2 = 'test19' where 1 = id2v2";
-execute stmt1;
-deallocate prepare stmt1;
-drop view v1,v2;
-drop table t1,t2;
-# -----------------------------------------------------------------
-# -- End of 5.3 tests.
-# -----------------------------------------------------------------
-#
-# MDEV-3874: Server crashes in Item_field::print on a SELECT
-# from a MERGE view with materialization+semijoin, subquery, ORDER BY
-#
-SET @save_optimizer_switch_MDEV_3874=@@optimizer_switch;
-SET optimizer_switch = 'materialization=on,semijoin=on';
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(7);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (4),(6);
-CREATE TABLE t3 (c INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (1),(2);
-CREATE ALGORITHM=MERGE VIEW v1 AS SELECT
-( SELECT a FROM t1 WHERE ( 1, 1 ) IN (
-SELECT b, c FROM t2, t3 HAVING c > 2 ) ) AS field1,
-b + c AS field2
-FROM t2, t3 AS table1
-GROUP BY field1, field2 ORDER BY field1;
-Warnings:
-Warning 1354 View merge algorithm can't be used here for now (assumed undefined algorithm)
-SELECT * FROM v1;
-field1 field2
-NULL 5
-NULL 7
-NULL 6
-NULL 8
-drop view v1;
-drop table t1,t2,t3;
-SET optimizer_switch=@save_optimizer_switch_MDEV_3874;
-CREATE TABLE `t1` (
-`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
-`f0` int(11) unsigned NOT NULL DEFAULT '0',
-`f1` int(11) unsigned NOT NULL DEFAULT '0',
-PRIMARY KEY (`id`),
-UNIQUE KEY `id` (`id`)
-);
-CREATE TABLE `t2` (
-`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
-`f02` bigint(20) unsigned NOT NULL DEFAULT '0',
-`f03` int(11) unsigned NOT NULL DEFAULT '0',
-PRIMARY KEY (`id`),
-UNIQUE KEY `id` (`id`)
-);
-CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `v1` AS
-SELECT
-`t1`.`f0` AS `f0`,
-`t1`.`f1` AS `f1`,
-`t2`.`f02` AS `f02`,
-`t2`.`f03` AS `f03`
-FROM
-(`t1` LEFT JOIN `t2` ON((`t1`.`id` = `t2`.`f02`)));
-CREATE FUNCTION `f1`(
-p0 BIGINT(20) UNSIGNED
-)
-RETURNS bigint(20) unsigned
-DETERMINISTIC
-CONTAINS SQL
-SQL SECURITY DEFINER
-COMMENT ''
-BEGIN
-DECLARE k0 INTEGER UNSIGNED DEFAULT 0;
-DECLARE lResult INTEGER UNSIGNED DEFAULT 0;
-SET k0 = 0;
-WHILE k0 < 1 DO
-SELECT COUNT(*) as `f00` INTO lResult FROM `v1` WHERE `v1`.`f0` = p0; -- BUG
-SET k0 = k0 + 1;
-END WHILE;
-RETURN(k0);
-END|
-SELECT `f1`(1);
-`f1`(1)
-1
-SELECT `f1`(1);
-`f1`(1)
-1
-SELECT `f1`(1);
-`f1`(1)
-1
-SELECT `f1`(1);
-`f1`(1)
-1
-DROP FUNCTION f1;
-DROP VIEW v1;
-DROP TABLE t1, t2;
-create view v1 as select 1;
-FOUND 1 /mariadb-version/ in v1.frm
-drop view v1;
-#
-# MDEV-7260: Crash in get_best_combination when executing multi-table
-# UPDATE with nested views
-#
-CREATE TABLE `t1` (`id` bigint(20));
-INSERT INTO `t1` VALUES (1),(2);
-CREATE TABLE `t2` (`id` bigint(20));
-CREATE TABLE `t3` (`id` bigint(20), `flag` tinyint(4));
-create view v1 as select id from t1;
-create view v2 as select t2.* from (t2 left join v1 using (id));
-update t3 left join v2 using (id) set flag=flag+1;
-drop view v2, v1;
-drop table t1, t2, t3;
-#
-# MDEV-7207 - ALTER VIEW does not change ALGORITM
-#
-create table t1 (a int, b int);
-create algorithm=temptable view v2 (c) as select b+1 from t1;
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=TEMPTABLE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t1`.`b` + 1 AS `c` from `t1` latin1 latin1_swedish_ci
-alter algorithm=undefined view v2 (c) as select b+1 from t1;
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t1`.`b` + 1 AS `c` from `t1` latin1 latin1_swedish_ci
-alter algorithm=merge view v2 (c) as select b+1 from t1;
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=MERGE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t1`.`b` + 1 AS `c` from `t1` latin1 latin1_swedish_ci
-drop view v2;
-drop table t1;
-#
-# MDEV-8554: Server crashes in base_list_iterator::next_fast on 1st execution of PS with a multi-table update
-#
-CREATE TABLE t1 (a INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-CREATE TABLE t2 (b INT) ENGINE=MyISAM;
-INSERT INTO t2 VALUES (3),(4);
-CREATE TABLE t3 (c INT) ENGINE=MyISAM;
-INSERT INTO t3 VALUES (5),(6);
-CREATE OR REPLACE ALGORITHM=MERGE VIEW v3 AS SELECT * FROM t3;
-PREPARE stmt FROM 'UPDATE t1, t2 SET a = 1 WHERE a IN ( SELECT 0 FROM t3 )';
-UPDATE t1, t2 SET a = 1 WHERE a IN ( SELECT 0 FROM v3 );
-EXECUTE stmt;
-DROP TABLE t1, t2, t3;
-DROP VIEW v3;
-#
-# MDEV-8632: Segmentation fault on INSERT
-#
-CREATE TABLE `t1` (
-`id` int(10) unsigned NOT NULL,
-`r` float NOT NULL,
-PRIMARY KEY (`id`)
-) DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-create view v1 as select id, if(r=r,1,2) as d from t1;
-create view v2 as
-select id,
-d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d as p
-from v1;
-insert into t1 (id, r)
-select id,p from
-(
-select id,
-d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d as p
-from (
-select id, if(r=r,1,2) as d
-from t1
-) a
-) b
-on duplicate key update r=p;
-insert into t1 (id, r)
-select id,p from v2
-on duplicate key update r=p;
-prepare stmt from "insert into t1 (id, r) select id,p from v2 on duplicate key update r=p";
-execute stmt;
-execute stmt;
-deallocate prepare stmt;
-drop view v1,v2;
-drop table `t1`;
-create table t1 (a int, b int);
-create view v1 as select a+b from t1;
-alter table v1 check partition p1;
-Table Op Msg_type Msg_text
-test.v1 check Error 'test.v1' is not of type 'BASE TABLE'
-test.v1 check status Operation failed
-drop view v1;
-drop table t1;
-#
-# MDEV-10419: crash in mariadb 10.1.16-MariaDB-1~trusty
-#
-CREATE TABLE t1 (c1 CHAR(13));
-CREATE TABLE t2 (c2 CHAR(13));
-CREATE FUNCTION f() RETURNS INT RETURN 0;
-CREATE OR REPLACE VIEW v1 AS select f() from t1 where c1 in (select c2 from t2);
-DROP FUNCTION f;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `f`() AS `f()` from `t1` where `test`.`t1`.`c1` in (select `test`.`t2`.`c2` from `t2`) latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-drop view v1;
-drop table t1,t2;
-#
-# MDEV-12099: usage of mergeable view with LEFT JOIN
-# that can be converted to INNER JOIN
-#
-create table t1 (a int, b int, key(a)) engine=myisam;
-insert into t1 values
-(3,20), (7,10), (2,10), (4,30), (8,70),
-(7,70), (9,100), (9,60), (8,80), (7,60);
-create table t2 (c int, d int, key (c)) engine=myisam;
-insert into t2 values
-(50,100), (20, 200), (10,300),
-(150,100), (120, 200), (110,300),
-(250,100), (220, 200), (210,300);
-create table t3(e int, f int not null, key(e), unique (f)) engine=myisam;
-insert into t3 values
-(100, 3), (300, 5), (400, 4), (300,7),
-(300,2), (600, 13), (800, 15), (700, 14),
-(600, 23), (800, 25), (700, 24);
-create view v1 as
-select * from t2 left join t3 on t3.e=t2.d where t3.f is not null;
-select *
-from t1 left join v1 on v1.c=t1.b
-where t1.a < 5;
-a b c d e f
-2 10 10 300 300 5
-2 10 10 300 300 7
-2 10 10 300 300 2
-3 20 NULL NULL NULL NULL
-4 30 NULL NULL NULL NULL
-select *
-from t1 left join ( t2 left join t3 on t3.e=t2.d )
-on t2.c=t1.b and t3.f is not null
-where t1.a < 5;
-a b c d e f
-2 10 10 300 300 5
-2 10 10 300 300 7
-2 10 10 300 300 2
-3 20 NULL NULL NULL NULL
-4 30 NULL NULL NULL NULL
-explain extended
-select *
-from t1 left join v1 on v1.c=t1.b
-where t1.a < 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range a a 5 NULL 3 100.00 Using index condition
-1 SIMPLE t2 ref c c 5 test.t1.b 2 100.00 Using where
-1 SIMPLE t3 ref f,e e 5 test.t2.d 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d`,`test`.`t3`.`e` AS `e`,`test`.`t3`.`f` AS `f` from `test`.`t1` left join (`test`.`t2` join `test`.`t3`) on(`test`.`t2`.`c` = `test`.`t1`.`b` and `test`.`t3`.`e` = `test`.`t2`.`d` and `test`.`t3`.`f` is not null and `test`.`t1`.`b` is not null and `test`.`t2`.`d` is not null) where `test`.`t1`.`a` < 5
-explain extended
-select *
-from t1 left join ( t2 left join t3 on t3.e=t2.d )
-on t2.c=t1.b and t3.f is not null
-where t1.a < 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range a a 5 NULL 3 100.00 Using index condition
-1 SIMPLE t2 ref c c 5 test.t1.b 2 100.00 Using where
-1 SIMPLE t3 ref f,e e 5 test.t2.d 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d`,`test`.`t3`.`e` AS `e`,`test`.`t3`.`f` AS `f` from `test`.`t1` left join (`test`.`t2` join `test`.`t3`) on(`test`.`t2`.`c` = `test`.`t1`.`b` and `test`.`t3`.`e` = `test`.`t2`.`d` and `test`.`t3`.`f` is not null and `test`.`t1`.`b` is not null and `test`.`t2`.`d` is not null) where `test`.`t1`.`a` < 5
-explain extended
-select *
-from t1 left join v1 on v1.c=t1.b and v1.f=t1.a
-where t1.a < 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range a a 5 NULL 3 100.00 Using index condition
-1 SIMPLE t3 eq_ref f,e f 4 test.t1.a 1 100.00 Using where
-1 SIMPLE t2 ref c c 5 test.t1.b 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d`,`test`.`t3`.`e` AS `e`,`test`.`t3`.`f` AS `f` from `test`.`t1` left join (`test`.`t2` join `test`.`t3`) on(`test`.`t2`.`c` = `test`.`t1`.`b` and `test`.`t3`.`f` = `test`.`t1`.`a` and `test`.`t2`.`d` = `test`.`t3`.`e` and `test`.`t1`.`a` is not null and `test`.`t1`.`a` is not null and `test`.`t1`.`b` is not null) where `test`.`t1`.`a` < 5
-explain extended
-select *
-from t1 left join ( t2 left join t3 on t3.e=t2.d )
-on t2.c=t1.b and t3.f=t1.a and t3.f is not null
-where t1.a < 5;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 SIMPLE t1 range a a 5 NULL 3 100.00 Using index condition
-1 SIMPLE t3 eq_ref f,e f 4 test.t1.a 1 100.00 Using where
-1 SIMPLE t2 ref c c 5 test.t1.b 2 100.00 Using where
-Warnings:
-Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d`,`test`.`t3`.`e` AS `e`,`test`.`t3`.`f` AS `f` from `test`.`t1` left join (`test`.`t2` join `test`.`t3`) on(`test`.`t2`.`c` = `test`.`t1`.`b` and `test`.`t3`.`f` = `test`.`t1`.`a` and `test`.`t2`.`d` = `test`.`t3`.`e` and `test`.`t1`.`a` is not null and `test`.`t1`.`a` is not null and `test`.`t1`.`b` is not null) where `test`.`t1`.`a` < 5
-drop view v1;
-drop table t1,t2,t3;
-#
-# MDEV-11240: Server crashes in check_view_single_update or
-# Assertion `derived->table' failed in mysql_derived_merge_for_insert
-#
-CREATE TABLE t3 (a INT);
-CREATE ALGORITHM = MERGE VIEW v1 AS SELECT t2.a FROM t3 AS t1, t3 AS t2;
-CREATE ALGORITHM = MERGE VIEW v2 AS SELECT * FROM v1;
-PREPARE stmt FROM 'REPLACE INTO v2 SELECT a FROM t3';
-ERROR HY000: Can not insert into join view 'test.v2' without fields list
-drop view v1,v2;
-drop table t3;
-#
-# MDEV-14619: VIEW and GROUP_CONCAT
-#
-CREATE TABLE t1 (str text);
-INSERT INTO t1 VALUES ("My"),("SQL");
-CREATE VIEW v1 AS SELECT GROUP_CONCAT(str SEPARATOR '\\') FROM t1;
-SELECT * FROM v1;
-GROUP_CONCAT(str SEPARATOR '\\')
-My\SQL
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select group_concat(`t1`.`str` separator '\\') AS `GROUP_CONCAT(str SEPARATOR '\\')` from `t1` latin1 latin1_swedish_ci
-drop view v1;
-drop table t1;
-# -----------------------------------------------------------------
-# -- End of 5.5 tests.
-# -----------------------------------------------------------------
-# some subqueries in SELECT list test
-create table t1 (a int, b int);
-create table t2 (a int, b int);
-insert into t1 values (1,2), (3,4), (3,3), (5,6), (7,8), (9,10);
-insert into t2 values (1,2), (3,4), (3,3), (5,6), (7,8), (9,10);
-create algorithm=merge view v1 as select t1.a as a, (select max(b) from t2 where t1.a=t2.a) as c from t1;
-explain extended
-select * from v1;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00
-3 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 6 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #2
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,<expr_cache><`test`.`t1`.`a`>((/* select#3 */ select max(`test`.`t2`.`b`) from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`)) AS `c` from `test`.`t1`
-select * from v1;
-a c
-1 2
-3 4
-3 4
-5 6
-7 8
-9 10
-explain extended
-select * from t2, v1 where t2.a=v1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 6 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-3 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 6 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #2
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t1`.`a` AS `a`,<expr_cache><`test`.`t1`.`a`>((/* select#3 */ select max(`test`.`t2`.`b`) from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`)) AS `c` from `test`.`t2` join `test`.`t1` where `test`.`t1`.`a` = `test`.`t2`.`a`
-select * from t2, v1 where t2.a=v1.a;
-a b a c
-1 2 1 2
-3 4 3 4
-3 3 3 4
-3 4 3 4
-3 3 3 4
-5 6 5 6
-7 8 7 8
-9 10 9 10
-explain extended
-select * from t1, v1 where t1.a=v1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-3 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 6 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #2
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`a` AS `a`,<expr_cache><`test`.`t1`.`a`>((/* select#3 */ select max(`test`.`t2`.`b`) from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`)) AS `c` from `test`.`t1` join `test`.`t1` where `test`.`t1`.`a` = `test`.`t1`.`a`
-select * from t1, v1 where t1.a=v1.a;
-a b a c
-1 2 1 2
-3 4 3 4
-3 3 3 4
-3 4 3 4
-3 3 3 4
-5 6 5 6
-7 8 7 8
-9 10 9 10
-explain extended
-select * from t1, v1 where t1.b=v1.c;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-3 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 6 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #2
-Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`a` AS `a`,<expr_cache><`test`.`t1`.`a`>((/* select#3 */ select max(`test`.`t2`.`b`) from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`)) AS `c` from `test`.`t1` join `test`.`t1` where `test`.`t1`.`b` = <expr_cache><`test`.`t1`.`a`>((/* select#3 */ select max(`test`.`t2`.`b`) from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`))
-select * from t1, v1 where t1.b=v1.c;
-a b a c
-1 2 1 2
-3 4 3 4
-3 4 3 4
-5 6 5 6
-7 8 7 8
-9 10 9 10
-explain extended
-select * from t2, t1, v1 where t1.a=t2.a and t1.a=v1.a;
-id select_type table type possible_keys key key_len ref rows filtered Extra
-1 PRIMARY t2 ALL NULL NULL NULL NULL 6 100.00
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (flat, BNL join)
-1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00 Using where; Using join buffer (incremental, BNL join)
-3 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 6 100.00 Using where
-Warnings:
-Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #2
-Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`a` AS `a`,<expr_cache><`test`.`t1`.`a`>((/* select#3 */ select max(`test`.`t2`.`b`) from `test`.`t2` where `test`.`t1`.`a` = `test`.`t2`.`a`)) AS `c` from `test`.`t2` join `test`.`t1` join `test`.`t1` where `test`.`t1`.`a` = `test`.`t2`.`a` and `test`.`t1`.`a` = `test`.`t2`.`a`
-select * from t2, t1, v1 where t1.a=t2.a and t1.a=v1.a;
-a b a b a c
-1 2 1 2 1 2
-3 4 3 4 3 4
-3 3 3 4 3 4
-3 4 3 3 3 4
-3 3 3 3 3 4
-3 4 3 4 3 4
-3 3 3 4 3 4
-3 4 3 3 3 4
-3 3 3 3 3 4
-5 6 5 6 5 6
-7 8 7 8 7 8
-9 10 9 10 9 10
-drop view v1;
-drop table t1,t2;
-create table t1 (i int not null);
-insert into t1 values (1),(2);
-create table t2 (j int not null);
-insert into t2 values (11),(12);
-create algorithm=merge view v3 as select t1.* from t2 left join t1 on (t2.j = t1.i);
-prepare stmt from 'select count(v3.i) from t1, v3';
-execute stmt;
-count(v3.i)
-0
-execute stmt;
-count(v3.i)
-0
-drop table t1, t2;
-drop view v3;
-#
-# MDEV-8525: mariadb 10.0.20 crashing when data is read by Kodi
-# media center (http://kodi.tv).
-#
-CREATE TABLE `t1` (
-`idSong` int(11) NOT NULL AUTO_INCREMENT,
-`idAlbum` int(11) DEFAULT NULL,
-`idPath` int(11) DEFAULT NULL,
-`strArtists` text,
-`strGenres` text,
-`strTitle` varchar(512) DEFAULT NULL,
-`iTrack` int(11) DEFAULT NULL,
-`iDuration` int(11) DEFAULT NULL,
-`iYear` int(11) DEFAULT NULL,
-`dwFileNameCRC` text,
-`strFileName` text,
-`strMusicBrainzTrackID` text,
-`iTimesPlayed` int(11) DEFAULT NULL,
-`iStartOffset` int(11) DEFAULT NULL,
-`iEndOffset` int(11) DEFAULT NULL,
-`idThumb` int(11) DEFAULT NULL,
-`lastplayed` varchar(20) DEFAULT NULL,
-`rating` char(1) DEFAULT '0',
-`comment` text,
-`mood` text,
-PRIMARY KEY (`idSong`),
-UNIQUE KEY `idxSong7` (`idAlbum`,`strMusicBrainzTrackID`(36)),
-KEY `idxSong` (`strTitle`(255)),
-KEY `idxSong1` (`iTimesPlayed`),
-KEY `idxSong2` (`lastplayed`),
-KEY `idxSong3` (`idAlbum`),
-KEY `idxSong6` (`idPath`,`strFileName`(255))
-) DEFAULT CHARSET=utf8;
-INSERT INTO `t1` VALUES (1,1,1,'strArtists1','strGenres1','strTitle1',1,100,2000,NULL,'strFileName1','strMusicBrainzTrackID1',0,0,0,NULL,NULL,'0','',''),(2,2,2,'strArtists2','strGenres2','strTitle2',2,200,2001,NULL,'strFileName2','strMusicBrainzTrackID2',0,0,0,NULL,NULL,'0','','');
-CREATE TABLE `t2` (
-`idAlbum` int(11) NOT NULL AUTO_INCREMENT,
-`strAlbum` varchar(256) DEFAULT NULL,
-`strMusicBrainzAlbumID` text,
-`strArtists` text,
-`strGenres` text,
-`iYear` int(11) DEFAULT NULL,
-`idThumb` int(11) DEFAULT NULL,
-`bCompilation` int(11) NOT NULL DEFAULT '0',
-`strMoods` text,
-`strStyles` text,
-`strThemes` text,
-`strReview` text,
-`strImage` text,
-`strLabel` text,
-`strType` text,
-`iRating` int(11) DEFAULT NULL,
-`lastScraped` varchar(20) DEFAULT NULL,
-`dateAdded` varchar(20) DEFAULT NULL,
-`strReleaseType` text,
-PRIMARY KEY (`idAlbum`),
-UNIQUE KEY `idxAlbum_2` (`strMusicBrainzAlbumID`(36)),
-KEY `idxAlbum` (`strAlbum`(255)),
-KEY `idxAlbum_1` (`bCompilation`)
-) DEFAULT CHARSET=utf8;
-INSERT INTO `t2` VALUES (1,'strAlbum1','strMusicBrainzAlbumID1','strArtists1','strGenres1',2000,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'album');
-CREATE TABLE `t3` (
-`idArtist` int(11) DEFAULT NULL,
-`idAlbum` int(11) DEFAULT NULL,
-`strJoinPhrase` text,
-`boolFeatured` int(11) DEFAULT NULL,
-`iOrder` int(11) DEFAULT NULL,
-`strArtist` text,
-UNIQUE KEY `idxAlbumArtist_1` (`idAlbum`,`idArtist`),
-UNIQUE KEY `idxAlbumArtist_2` (`idArtist`,`idAlbum`),
-KEY `idxAlbumArtist_3` (`boolFeatured`)
-) DEFAULT CHARSET=utf8;
-INSERT INTO `t3` VALUES (1,1,'',0,0,'strArtist1');
-CREATE TABLE `t4` (
-`idArtist` int(11) NOT NULL AUTO_INCREMENT,
-`strArtist` varchar(256) DEFAULT NULL,
-`strMusicBrainzArtistID` text,
-`strBorn` text,
-`strFormed` text,
-`strGenres` text,
-`strMoods` text,
-`strStyles` text,
-`strInstruments` text,
-`strBiography` text,
-`strDied` text,
-`strDisbanded` text,
-`strYearsActive` text,
-`strImage` text,
-`strFanart` text,
-`lastScraped` varchar(20) DEFAULT NULL,
-`dateAdded` varchar(20) DEFAULT NULL,
-PRIMARY KEY (`idArtist`),
-UNIQUE KEY `idxArtist1` (`strMusicBrainzArtistID`(36)),
-KEY `idxArtist` (`strArtist`(255))
-) DEFAULT CHARSET=utf8;
-INSERT INTO `t4` VALUES (1,'strArtist1','strMusicBrainzArtistID',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
-CREATE VIEW `v1` AS select `t2`.`idAlbum` AS `idAlbum`,`t2`.`strAlbum` AS `strAlbum`,`t2`.`strMusicBrainzAlbumID` AS `strMusicBrainzAlbumID`,`t2`.`strArtists` AS `strArtists`,`t2`.`strGenres` AS `strGenres`,`t2`.`iYear` AS `iYear`,`t2`.`strMoods` AS `strMoods`,`t2`.`strStyles` AS `strStyles`,`t2`.`strThemes` AS `strThemes`,`t2`.`strReview` AS `strReview`,`t2`.`strLabel` AS `strLabel`,`t2`.`strType` AS `strType`,`t2`.`strImage` AS `strImage`,`t2`.`iRating` AS `iRating`,`t2`.`bCompilation` AS `bCompilation`,(select min(`t1`.`iTimesPlayed`) from `t1` where (`t1`.`idAlbum` = `t2`.`idAlbum`)) AS `iTimesPlayed`,`t2`.`strReleaseType` AS `strReleaseType` from `t2`;
-CREATE VIEW `v2` AS select `t3`.`idAlbum` AS `idAlbum`,`t3`.`idArtist` AS `idArtist`,`t4`.`strArtist` AS `strArtist`,`t4`.`strMusicBrainzArtistID` AS `strMusicBrainzArtistID`,`t3`.`boolFeatured` AS `boolFeatured`,`t3`.`strJoinPhrase` AS `strJoinPhrase`,`t3`.`iOrder` AS `iOrder` from (`t3` join `t4` on((`t3`.`idArtist` = `t4`.`idArtist`)));
-SELECT v1.*,v2.* FROM v1 LEFT JOIN v2 ON v1.idAlbum = v2.idAlbum WHERE v1.idAlbum = 1 ORDER BY v2.iOrder;
-idAlbum strAlbum strMusicBrainzAlbumID strArtists strGenres iYear strMoods strStyles strThemes strReview strLabel strType strImage iRating bCompilation iTimesPlayed strReleaseType idAlbum idArtist strArtist strMusicBrainzArtistID boolFeatured strJoinPhrase iOrder
-1 strAlbum1 strMusicBrainzAlbumID1 strArtists1 strGenres1 2000 NULL NULL NULL NULL NULL NULL NULL NULL 0 0 album 1 1 strArtist1 strMusicBrainzArtistID 0 0
-drop view v1,v2;
-drop table t1,t2,t3,t4;
-#
-# MDEV-8913: Derived queries with same column names as final
-# projection causes issues when using Order By
-#
-create table t1 (field int);
-insert into t1 values (10),(5),(3),(8),(20);
-SELECT sq.f2 AS f1, sq.f1 AS f2
-FROM ( SELECT field AS f1, 1 AS f2 FROM t1) AS sq
-ORDER BY sq.f1;
-f1 f2
-1 3
-1 5
-1 8
-1 10
-1 20
-create view v1 as SELECT field AS f1, 1 AS f2 FROM t1;
-SELECT sq.f2 AS f1, sq.f1 AS f2
-FROM v1 AS sq
-ORDER BY sq.f1;
-f1 f2
-1 3
-1 5
-1 8
-1 10
-1 20
-drop view v1;
-create table t2 SELECT field AS f1, 1 AS f2 FROM t1;
-SELECT
-sq.f2 AS f1,
-sq.f1 AS f2
-FROM t2 AS sq
-ORDER BY sq.f1;
-f1 f2
-1 3
-1 5
-1 8
-1 10
-1 20
-drop table t1, t2;
-SELECT 1 FROM (SELECT 1 as a) AS b HAVING (SELECT `SOME_GARBAGE`.b.a)=1;
-ERROR 42S22: Unknown column 'SOME_GARBAGE.b.a' in 'field list'
-#
-# MDEV-10035: DBUG_ASSERT on CREATE VIEW v1 AS SELECT * FROM t1
-# FOR UPDATE
-#
-CREATE TABLE t1 (a INT);
-insert into t1 values (1),(2);
-CREATE VIEW v1 AS SELECT * FROM t1 FOR UPDATE;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` for update latin1 latin1_swedish_ci
-select * from v1;
-a
-1
-2
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT * FROM t1 LOCK IN SHARE MODE;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` lock in share mode latin1 latin1_swedish_ci
-select * from v1;
-a
-1
-2
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-8642: WHERE Clause not applied on View - Empty result set returned
-#
-CREATE TABLE `t1` (
-`id` int(20) NOT NULL AUTO_INCREMENT,
-`use_case` int(11) DEFAULT NULL,
-`current_deadline` date DEFAULT NULL,
-`ts_create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
-PRIMARY KEY (`id`),
-UNIQUE KEY `id_UNIQUE` (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=13976 DEFAULT CHARSET=latin1;
-INSERT INTO `t1` VALUES (1,10,'2015-12-18','2015-08-18 08:38:16');
-INSERT INTO `t1` VALUES (2,20,'2015-10-18','2015-08-18 08:43:30');
-CREATE VIEW v1 AS SELECT
-use_case as use_case_id,
-(
-SELECT
-deadline_sub.current_deadline
-FROM
-t1 deadline_sub
-WHERE
-deadline_sub.use_case = use_case_id
-AND ts_create = (SELECT
-MIN(ts_create)
-FROM
-t1 startdate_sub
-WHERE
-startdate_sub.use_case = use_case_id
-)
-) AS InitialDeadline
-FROM
-t1;
-SELECT * FROM v1 where use_case_id = 10;
-use_case_id InitialDeadline
-10 2015-12-18
-drop view v1;
-drop table t1;
-#
-# MDEV-12666: CURRENT_ROLE() and DATABASE() does not work in a view
-#
-# DATABASE() fails only when the initial view creation features a NULL
-# default database.
-#
-# CREATE, USE and DROP database so that we have no "default" database.
-#
-CREATE DATABASE temporary;
-USE temporary;
-DROP DATABASE temporary;
-SELECT DATABASE();
-DATABASE()
-NULL
-CREATE VIEW test.v_no_db AS SELECT DATABASE() = 'temporary_two';
-SHOW CREATE VIEW test.v_no_db;
-View Create View character_set_client collation_connection
-v_no_db CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `test`.`v_no_db` AS select database() = 'temporary_two' AS `DATABASE() = 'temporary_two'` latin1 latin1_swedish_ci
-PREPARE prepared_no_database FROM "SELECT DATABASE() = 'temporary_two'";
-#
-# All statements should return NULL
-#
-EXECUTE prepared_no_database;
-DATABASE() = 'temporary_two'
-NULL
-SELECT DATABASE() = 'temporary_two';
-DATABASE() = 'temporary_two'
-NULL
-SELECT * FROM test.v_no_db;
-DATABASE() = 'temporary_two'
-NULL
-CREATE DATABASE temporary_two;
-USE temporary_two;
-CREATE VIEW test.v_with_db AS SELECT DATABASE() = 'temporary_two';
-PREPARE prepared_with_database FROM "SELECT DATABASE() = 'temporary_two'";
-#
-# All statements should return 1;
-#
-SELECT DATABASE() = 'temporary_two';
-DATABASE() = 'temporary_two'
-1
-SELECT * FROM test.v_no_db;
-DATABASE() = 'temporary_two'
-1
-SELECT * FROM test.v_with_db;
-DATABASE() = 'temporary_two'
-1
-EXECUTE prepared_with_database;
-DATABASE() = 'temporary_two'
-1
-#
-# Prepared statements maintain default database to be the same
-# during on creation so this should return NULL still.
-# See MySQL bug #25843
-#
-EXECUTE prepared_no_database;
-DATABASE() = 'temporary_two'
-NULL
-DROP DATABASE temporary_two;
-DROP VIEW test.v_no_db;
-DROP VIEW test.v_with_db;
-USE test;
-# -----------------------------------------------------------------
-# -- End of 10.0 tests.
-# -----------------------------------------------------------------
-SET optimizer_switch=@save_optimizer_switch;
-#
-# Start of 10.1 tests
-#
-#
-# MDEV-8747 Wrong result for SELECT..WHERE derived_table_column='a' AND derived_table_column<>_latin1'A' COLLATE latin1_bin
-#
-CREATE TABLE t1 (a varchar(10) character set cp1251 collate cp1251_ukrainian_ci, KEY (a)) ;
-INSERT INTO t1 VALUES ('DD'), ('ZZ'), ('ZZ'), ('KK'), ('FF'), ('HH'),('MM'),('`1');
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM t1 WHERE a <> 0 AND a = ' 1';
-a
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '`1'
-SELECT * FROM v1 WHERE a <> 0 AND a = ' 1';
-a
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '`1'
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (a ENUM('5','6'));
-INSERT INTO t1 VALUES ('5'),('6');
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM t1 WHERE a='5' AND a<2;
-a
-5
-SELECT * FROM v1 WHERE a='5' AND a<2;
-a
-5
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-8749 Wrong result for SELECT..WHERE derived_table_enum_column='number' AND derived_table_enum_column OP number2
-#
-CREATE TABLE t1 (a varchar(10) character set cp1251 collate cp1251_ukrainian_ci, KEY (a));
-INSERT INTO t1 VALUES ('DD'), ('ZZ'), ('ZZ'), ('KK'), ('FF'), ('HH'),('MM'),('`1');
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM t1 WHERE a <> 0 AND a = ' 1';
-a
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '`1'
-SELECT * FROM v1 WHERE a <> 0 AND a = ' 1';
-a
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: '`1'
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE TABLE t1 (a ENUM('5','6'));
-INSERT INTO t1 VALUES ('5'),('6');
-CREATE VIEW v1 AS SELECT * FROM t1;
-SELECT * FROM t1 WHERE a='5' AND a<2;
-a
-5
-SELECT * FROM v1 WHERE a='5' AND a<2;
-a
-5
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-8742 Wrong result for SELECT..WHERE view_latin1_swedish_ci_field='a' COLLATE latin1_bin
-#
-CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1);
-INSERT INTO t1 VALUES ('a'),('A');
-CREATE VIEW v1 AS SELECT * FROM t1 WHERE a='a';
-SELECT * FROM v1 WHERE a=_latin1'a' COLLATE latin1_bin;
-a
-a
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-9701: CREATE VIEW with GROUP BY or ORDER BY and constant
-# produces invalid definition
-#
-CREATE TABLE t1 ( i INT );
-INSERT INTO t1 VALUES (1),(2);
-CREATE VIEW v1 AS
-SELECT 3 AS three, COUNT(*) FROM t1 GROUP BY three;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 3 AS `three`,count(0) AS `COUNT(*)` from `t1` group by '' latin1 latin1_swedish_ci
-SELECT * FROM v1;
-three COUNT(*)
-3 2
-drop view v1;
-drop table t1;
-#
-# MDEV-12819: order by ordering expression changed to empty string
-# when creatin view with union
-#
-create table t1 (t1col1 int, t1col2 int,t1col3 int );
-create table t2 (t2col1 int, t2col2 int, t2col3 int);
-create view v1 as
-select t1col1,t1col2,t1col3 from t1
-union all
-select t2col1,t2col2,t2col3 from t2
-order by 2,3;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`t1col1` AS `t1col1`,`t1`.`t1col2` AS `t1col2`,`t1`.`t1col3` AS `t1col3` from `t1` union all select `t2`.`t2col1` AS `t2col1`,`t2`.`t2col2` AS `t2col2`,`t2`.`t2col3` AS `t2col3` from `t2` order by 2,3 latin1 latin1_swedish_ci
-select * from v1;
-t1col1 t1col2 t1col3
-drop view v1;
-drop table t1,t2;
-#
-# End of 10.1 tests
-#
-#
-# Start of 10.2 tests
-#
-# Checking that SHOW CREATE VIEW preserve parentheses
-CREATE TABLE t1 (a INT);
-INSERT INTO t1 VALUES (10),(20),(30);
-CREATE VIEW v1 AS SELECT 1 AS a UNION SELECT a FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 AS `a` union select `t1`.`a` AS `a` from `t1` latin1 latin1_swedish_ci
-SELECT * FROM v1;
-a
-1
-10
-20
-30
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT 1 AS a UNION SELECT a FROM t1 LIMIT 1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 AS `a` union select `t1`.`a` AS `a` from `t1` limit 1 latin1 latin1_swedish_ci
-SELECT * FROM v1;
-a
-1
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT 1 AS a UNION (SELECT a FROM t1);
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 AS `a` union (select `t1`.`a` AS `a` from `t1`) latin1 latin1_swedish_ci
-SELECT * FROM v1;
-a
-1
-10
-20
-30
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT 1 AS a UNION (SELECT a FROM t1 LIMIT 1);
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 AS `a` union (select `t1`.`a` AS `a` from `t1` limit 1) latin1 latin1_swedish_ci
-SELECT * FROM v1;
-a
-1
-10
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT 1 AS a UNION (SELECT a FROM t1) LIMIT 1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 AS `a` union (select `t1`.`a` AS `a` from `t1`) limit 1 latin1 latin1_swedish_ci
-SELECT * FROM v1;
-a
-1
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-9408 CREATE TABLE SELECT MAX(int_column) creates different columns for table vs view
-#
-CREATE TABLE t1 (
-id int(11) NOT NULL PRIMARY KEY,
-country varchar(32),
-code int(11) default NULL
-);
-INSERT INTO t1 VALUES (1,'ITALY',100),(2,'ITALY',200),(3,'FRANCE',100), (4,'ITALY',100);
-CREATE VIEW v1 AS SELECT * FROM t1;
-CREATE TABLE t2 AS
-SELECT code, COUNT(DISTINCT country), MAX(id) FROM t1 GROUP BY code ORDER BY MAX(id);
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `code` int(11) DEFAULT NULL,
- `COUNT(DISTINCT country)` bigint(21) NOT NULL,
- `MAX(id)` int(11)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-CREATE TABLE t3 AS
-SELECT code, COUNT(DISTINCT country), MAX(id) FROM v1 GROUP BY code ORDER BY MAX(id);
-SHOW CREATE TABLE t3;
-Table Create Table
-t3 CREATE TABLE `t3` (
- `code` int(11) DEFAULT NULL,
- `COUNT(DISTINCT country)` bigint(21) NOT NULL,
- `MAX(id)` int(11) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP VIEW v1;
-DROP TABLE t1,t2,t3;
-#
-# MDEV-3944: Allow derived tables in VIEWS
-#
-create table t1 (s1 int);
-insert into t1 values (1),(2),(3);
-CREATE VIEW v1 AS SELECT * FROM (SELECT s1 FROM t1 WHERE s1>1) AS x;
-CREATE VIEW v2 AS SELECT * FROM (SELECT s1 FROM t1 WHERE s1<3) AS x;
-select * from v1;
-s1
-2
-3
-select * from v2;
-s1
-1
-2
-select * from v1 natural join v2;
-s1
-2
-select * from v1 natural join t1;
-s1
-2
-3
-select * from v1 natural join (SELECT s1 FROM t1 WHERE s1<3) as x;
-s1
-2
-select * from v1 left join v2 on (v1.s1=v2.s1);
-s1 s1
-2 2
-3 NULL
-select * from v1 left join t1 on (v1.s1=t1.s1);
-s1 s1
-2 2
-3 3
-select * from t1 left join v2 on (t1.s1=v2.s1);
-s1 s1
-1 1
-2 2
-3 NULL
-select * from v1 left join (SELECT s1 FROM t1 WHERE s1<3) as x on (v1.s1=x.s1);
-s1 s1
-2 2
-3 NULL
-select * from (SELECT s1 FROM t1 WHERE s1>1) AS x left join v2 on (x.s1=v2.s1);
-s1 s1
-2 2
-3 NULL
-drop view v1,v2;
-CREATE VIEW v1 AS SELECT * FROM (SELECT s1 FROM (SELECT s1 FROM t1 WHERE s1
-< 100) as xx WHERE s1>1) AS x;
-CREATE VIEW v2 AS SELECT * FROM (SELECT s1 FROM (SELECT s1 FROM t1 WHERE s1
-> -100) as xx WHERE s1<3) AS x;
-insert into t1 values (200),(-200);
-select * from t1;
-s1
--200
-1
-2
-200
-3
-select * from v1;
-s1
-2
-3
-select * from v2;
-s1
-1
-2
-select * from v1 natural join v2;
-s1
-2
-select * from v1 natural join t1;
-s1
-2
-3
-select * from v1 natural join (SELECT s1 FROM t1 WHERE s1<3) as x;
-s1
-2
-select * from v1 left join v2 on (v1.s1=v2.s1);
-s1 s1
-2 2
-3 NULL
-select * from v1 left join t1 on (v1.s1=t1.s1);
-s1 s1
-2 2
-3 3
-select * from t1 left join v2 on (t1.s1=v2.s1);
-s1 s1
--200 NULL
-1 1
-2 2
-200 NULL
-3 NULL
-select * from v1 left join (SELECT s1 FROM t1 WHERE s1<3) as x on (v1.s1=x.s1);
-s1 s1
-2 2
-3 NULL
-select * from (SELECT s1 FROM t1 WHERE s1>1) AS x left join v2 on (x.s1=v2.s1);
-s1 s1
-2 2
-200 NULL
-3 NULL
-drop view v1,v2;
-CREATE algorithm=temptable VIEW v1 AS SELECT * FROM (SELECT s1 FROM (SELECT s1 FROM t1 WHERE s1
-< 100) as xx WHERE s1>1) AS x;
-CREATE algorithm=temptable VIEW v2 AS SELECT * FROM (SELECT s1 FROM (SELECT s1 FROM t1 WHERE s1
-> -100) as xx WHERE s1<3) AS x;
-select * from t1;
-s1
--200
-1
-2
-200
-3
-select * from v1;
-s1
-2
-3
-select * from v2;
-s1
-1
-2
-select * from v1 natural join v2;
-s1
-2
-select * from v1 natural join t1;
-s1
-2
-3
-select * from v1 natural join (SELECT s1 FROM t1 WHERE s1<3) as x;
-s1
-2
-select * from v1 left join v2 on (v1.s1=v2.s1);
-s1 s1
-2 2
-3 NULL
-select * from v1 left join t1 on (v1.s1=t1.s1);
-s1 s1
-2 2
-3 3
-select * from t1 left join v2 on (t1.s1=v2.s1);
-s1 s1
--200 NULL
-1 1
-2 2
-200 NULL
-3 NULL
-select * from v1 left join (SELECT s1 FROM t1 WHERE s1<3) as x on (v1.s1=x.s1);
-s1 s1
-2 2
-3 NULL
-select * from (SELECT s1 FROM t1 WHERE s1>1) AS x left join v2 on (x.s1=v2.s1);
-s1 s1
-2 2
-200 NULL
-3 NULL
-drop view v1,v2;
-CREATE VIEW v1 AS SELECT * FROM (SELECT s1 FROM (SELECT s1 FROM t1 WHERE s1
-< 100) as xx WHERE s1>1) AS x;
-insert into v1 values (-300);
-ERROR HY000: The target table v1 of the INSERT is not insertable-into
-update v1 set s1=s1+1;
-ERROR HY000: The target table v1 of the UPDATE is not updatable
-drop view v1;
-CREATE VIEW v1 AS SELECT s1,s2 FROM (SELECT s1 as s2 FROM t1 WHERE s1 <
-100) x, t1 WHERE t1.s1=x.s2;
-select * from v1;
-s1 s2
-1 1
-2 2
-3 3
--200 -200
-insert into v1 (s1) values (-300);
-update v1 set s1=s1+1;
-select * from v1;
-s1 s2
-2 2
-3 3
-4 4
--199 -199
--299 -299
-select * from t1;
-s1
-2
-3
-4
-200
--199
--299
-insert into v1(s2) values (-300);
-ERROR HY000: The target table v1 of the INSERT is not insertable-into
-update v1 set s2=s2+1;
-ERROR HY000: The target table v1 of the UPDATE is not updatable
-drop view v1;
-CREATE VIEW v1 AS SELECT * FROM (SELECT s1 FROM t1 WHERE s1
-< 100) AS x;
-insert into v1 values (-300);
-ERROR HY000: The target table v1 of the INSERT is not insertable-into
-update v1 set s1=s1+1;
-ERROR HY000: The target table v1 of the UPDATE is not updatable
-drop view v1;
-CREATE VIEW v1 AS SELECT * FROM (SELECT s1 FROM (SELECT s1 FROM t1 WHERE s1
-< 100) as xx WHERE s1>1) AS x;
-insert into v1 values (-300);
-ERROR HY000: The target table v1 of the INSERT is not insertable-into
-update v1 set s1=s1+1;
-ERROR HY000: The target table v1 of the UPDATE is not updatable
-create view v2 as select * from v1;
-insert into v2 values (-300);
-ERROR HY000: The target table v2 of the INSERT is not insertable-into
-update v2 set s1=s1+1;
-ERROR HY000: The target table v2 of the UPDATE is not updatable
-drop view v1, v2;
-drop table t1;
-#
-# MDEV-9671:Wrong result upon select from a view with a FROM subquery
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (3),(2);
-CREATE TABLE t2 (j INT);
-INSERT INTO t2 VALUES (8),(3),(3);
-CREATE TABLE t3 (k INT);
-INSERT INTO t3 VALUES (1),(8);
-CREATE VIEW v1 AS SELECT * FROM t1 LEFT JOIN ( SELECT t2.* FROM t2 INNER JOIN t3 ON ( k = j ) ) AS alias1 ON ( i = j );
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `test`.`t1`.`i` AS `i`,`alias1`.`j` AS `j` from (`test`.`t1` left join (select `test`.`t2`.`j` AS `j` from (`test`.`t2` join `test`.`t3` on(`test`.`t3`.`k` = `test`.`t2`.`j`))) `alias1` on(`test`.`t1`.`i` = `alias1`.`j`)) latin1 latin1_swedish_ci
-SELECT * FROM t1 LEFT JOIN ( SELECT t2.* FROM t2 INNER JOIN t3 ON ( k = j ) ) AS alias1 ON ( i = j );
-i j
-3 NULL
-2 NULL
-SELECT * FROM v1;
-i j
-3 NULL
-2 NULL
-DROP VIEW v1;
-DROP TABLE t1, t2, t3;
-#
-# MDEV-10035: DBUG_ASSERT on CREATE VIEW v1 AS SELECT * FROM t1
-# FOR UPDATE
-#
-CREATE TABLE t1 (a INT);
-insert into t1 values (1),(2);
-CREATE VIEW v1 AS SELECT * FROM t1 FOR UPDATE;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` for update latin1 latin1_swedish_ci
-select * from v1;
-a
-1
-2
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT * FROM t1 LOCK IN SHARE MODE;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` lock in share mode latin1 latin1_swedish_ci
-select * from v1;
-a
-1
-2
-DROP VIEW v1;
-DROP TABLE t1;
-#
-# MDEV-10724:Assertion `vcol_table == 0 || vcol_table == table'
-# failed in fill_record(THD*, TABLE*, List<Item>&, List<Item>&,
-# bool, bool)
-#
-CREATE TABLE t1 (f1 INT);
-CREATE TABLE t2 (f2 INT);
-CREATE TABLE t3 (f3 INT);
-CREATE ALGORITHM = MERGE VIEW v AS SELECT f1, f3 FROM t1,
-( SELECT f3 FROM t2, t3 ) AS sq;
-INSERT INTO v (f1, f3) VALUES (1,1), (2,2);
-ERROR HY000: Can not modify more than one base table through a join view 'test.v'
-drop view v;
-drop tables t1,t2,t3;
-create table t1 (i int, j int);
-insert t1 values (1,1),(2,2);
-create view v1 as select (2, 3) not in (select i, j from t1);
-select * from v1;
-(2, 3) not in (select i, j from t1)
-1
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select !((2,3) in (select `t1`.`i`,`t1`.`j` from `t1`)) AS `(2, 3) not in (select i, j from t1)` latin1 latin1_swedish_ci
-drop view v1;
-drop table t1;
-#
-# MDEV-10704: Assertion `field->field->table == table_arg'
-# failed in fill_record(THD*, TABLE*, List<Item>&, List<Item>&,
-# bool, bool)
-#
-CREATE TABLE t1 (i INT);
-CREATE TABLE t2 (j INT);
-CREATE TABLE t3 (k INT);
-CREATE ALGORITHM = MERGE VIEW v AS SELECT j AS f1, k AS f2 FROM ( SELECT j FROM t1, t2 ) sq, t3;
-REPLACE INTO v (f1,f2) VALUES (1,1);
-ERROR HY000: Can not modify more than one base table through a join view 'test.v'
-drop view v;
-drop table t1,t2,t3;
-#
-# MDEV-12379: Server crashes in TABLE_LIST::is_with_table on
-# SHOW CREATE VIEW
-#
-CREATE TABLE t (i INT);
-CREATE VIEW v AS SELECT * FROM ( SELECT * FROM t ) sq;
-DROP TABLE IF EXISTS t;
-SHOW CREATE VIEW v;
-View Create View character_set_client collation_connection
-v CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v` AS select `sq`.`i` AS `i` from (select `test`.`t`.`i` AS `i` from `test`.`t`) `sq` latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'test.v' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-DROP VIEW v;
-#
-# MDEV-13439: Database permissions are not enough to run a subquery
-# with GROUP BY within a view
-#
-create database test_db;
-use test_db;
-create table t (i int);
-create user foo@localhost;
-grant all on test_db.* to foo@localhost;
-connect con1,localhost,foo,,;
-use test_db;
-create view v as select * from (select i from t group by i) sq;
-select * from v;
-i
-disconnect con1;
-connection default;
-use test;
-drop database test_db;
-drop user foo@localhost;
-#
-# MDEV-13523: Group By in a View, called within a Stored Routine
-# causes Error Code 1356 when a non-root user runs the routine for
-# a second time
-#
-CREATE DATABASE bugTest;
-USE bugTest;
-CREATE TABLE `procViewTable` (`id` int(10), `someText` varchar(50) NOT NULL);
-insert into `procViewTable` values (1,'Test'), (2,'Test 2');
-CREATE USER 'procView'@'%';
-GRANT ALL PRIVILEGES ON `bugTest`.* TO 'procView'@'%';
-CREATE DEFINER=`procView`@`%` VIEW `procViewSimple` AS (
-select * from (
-select `id` from `bugTest`.`procViewTable`
- ) `innerQuery`
- group by `innerQuery`.`id`
-);
-connect con1,localhost,procView,,;
-use bugTest;
-prepare stmt from "SELECT * FROM procViewSimple";
-execute stmt;
-id
-1
-2
-execute stmt;
-id
-1
-2
-disconnect con1;
-connection default;
-drop user procView;
-drop view procViewSimple;
-drop table procViewTable;
-use test;
-drop database bugTest;
-#
-# MDEV-13436: PREPARE doesn't work as expected & throws errors but
-# MySQL is working fine
-#
-create table t1 (a int);
-insert into t1 values (1),(2);
-SET @sql_query = "
- CREATE VIEW v1 AS
- SELECT * FROM (
- SELECT CASE WHEN 1 IN (SELECT a from t1 where a < 2) THEN TRUE END AS testcase
- ) testalias
-";
-PREPARE stmt FROM @sql_query;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `testalias`.`testcase` AS `testcase` from (select case when 1 in (select `test`.`t1`.`a` from `test`.`t1` where `test`.`t1`.`a` < 2) then 1 end AS `testcase`) `testalias` latin1 latin1_swedish_ci
-SELECT * FROM v1;
-testcase
-1
-drop view v1;
-drop table t1;
-#
-# End of 10.2 tests
-#
-#
-# Start of 10.3 tests
-#
-#
-# MDEV-13197 Parser refactoring for CREATE VIEW,TRIGGER,SP,UDF,EVENT
-#
-ALTER VIEW IF NOT EXISTS v1 AS SELECT 1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IF NOT EXISTS v1 AS SELECT 1' at line 1
-#
-# End of 10.3 tests
-#
diff --git a/mysql-test/r/view_alias.result b/mysql-test/r/view_alias.result
deleted file mode 100644
index f3ae7aef3a6..00000000000
--- a/mysql-test/r/view_alias.result
+++ /dev/null
@@ -1,119 +0,0 @@
-#
-# Bug#40277 SHOW CREATE VIEW returns invalid SQL
-# Bug#41999 SHOW CREATE VIEW returns invalid SQL if subquery is used in SELECT list
-#
-# 65 characters exceed the maximum length of a column identifier. The system cannot derive the name from statement.
-# Constant with length = 65 . Expect to get the identifier 'Name_exp_1'.
-CREATE VIEW v1 AS SELECT '<--- 65 char including the arrows --->';
-SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME = 'v1';
-COLUMN_NAME
-Name_exp_1
-DROP VIEW v1;
-CREATE VIEW v1 AS select '<--- 65 char including the arrows --->' AS `Name_exp_1`;
-DROP VIEW v1;
-CREATE VIEW v1 AS select '<--- 65 char including the arrows --->' AS `Name_exp_1`;
-DROP VIEW v1;
-# Subquery with length = 65 . Expect to get the identifier 'Name_exp_1'.
-# Attention: Identifier for the column within the subquery will be not generated.
-CREATE VIEW v1 AS SELECT (SELECT '<--- 54 char including the arrows (+ 11 outside) -->');
-SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME = 'v1';
-COLUMN_NAME
-Name_exp_1
-DROP VIEW v1;
-CREATE VIEW v1 AS select (select '<--- 54 char including the arrows (+ 11 outside) -->') AS `Name_exp_1`;
-DROP VIEW v1;
-CREATE VIEW v1 AS select (select '<--- 54 char including the arrows (+ 11 outside) -->') AS `Name_exp_1`;
-DROP VIEW v1;
-# -----------------------------------------------------------------------------------------------------------------
-# 64 characters are the maximum length of a column identifier. The system can derive the name from the statement.
-CREATE VIEW v1 AS SELECT '<--- 64 char including the arrows --->';
-SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME = 'v1';
-COLUMN_NAME
-<--- 64 char including the arrows --->
-DROP VIEW v1;
-CREATE VIEW v1 AS select '<--- 64 char including the arrows --->' AS `<--- 64 char including the arrows --->`;
-DROP VIEW v1;
-CREATE VIEW v1 AS select '<--- 64 char including the arrows --->' AS `<--- 64 char including the arrows --->`;
-DROP VIEW v1;
-CREATE VIEW v1 AS SELECT (SELECT '<--- 53 char including the arrows (+ 11 outside) --->');
-SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME = 'v1';
-COLUMN_NAME
-(SELECT '<--- 53 char including the arrows (+ 11 outside) --->')
-DROP VIEW v1;
-CREATE VIEW v1 AS select (select '<--- 53 char including the arrows (+ 11 outside) --->') AS `(SELECT '<--- 53 char including the arrows (+ 11 outside) --->')`;
-DROP VIEW v1;
-CREATE VIEW v1 AS select (select '<--- 53 char including the arrows (+ 11 outside) --->') AS `(SELECT '<--- 53 char including the arrows (+ 11 outside) --->')`;
-DROP VIEW v1;
-# -----------------------------------------------------------------------------------------------------------------
-# Identifiers must not have trailing spaces. The system cannot derive the name from a constant with trailing space.
-# Generated identifiers have at their end the position within the select column list.
-# 'c2 ' -> 'Name_exp_1' , ' c4 ' -> 'Name_exp_2'
-CREATE VIEW v1 AS SELECT 'c1', 'c2 ', ' c3', ' c4 ';
-SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME = 'v1';
-COLUMN_NAME
-c1
-Name_exp_2
-c3
-Name_exp_4
-DROP VIEW v1;
-CREATE VIEW v1 AS select 'c1' AS `c1`,'c2 ' AS `Name_exp_2`,' c3' AS `c3`,' c4 ' AS `Name_exp_4`;
-DROP VIEW v1;
-CREATE VIEW v1 AS select 'c1' AS `c1`,'c2 ' AS `Name_exp_2`,' c3' AS `c3`,' c4 ' AS `Name_exp_4`;
-DROP VIEW v1;
-#
-# Bug#40277 SHOW CREATE VIEW returns invalid SQL
-#
-DROP VIEW IF EXISTS v1;
-DROP TABLE IF EXISTS t1,t2;
-# Column name exceeds the maximum length.
-CREATE VIEW v1 AS SELECT '0000000000 1111111111 2222222222 3333333333 4444444444 5555555555';
-DROP VIEW v1;
-CREATE VIEW v1 AS select '0000000000 1111111111 2222222222 3333333333 4444444444 5555555555' AS `Name_exp_1`;
-DROP VIEW v1;
-# Column names with leading trailing spaces.
-CREATE VIEW v1 AS SELECT 'c1', 'c2 ', ' c3', ' c4 ';
-DROP VIEW v1;
-CREATE VIEW v1 AS select 'c1' AS `c1`,'c2 ' AS `Name_exp_2`,' c3' AS `c3`,' c4 ' AS `Name_exp_4`;
-DROP VIEW v1;
-# Column name conflicts with a auto-generated one.
-CREATE VIEW v1 AS SELECT 'c1', 'c2 ', ' c3', ' c4 ', 'Name_exp_2';
-DROP VIEW v1;
-CREATE VIEW v1 AS select 'c1' AS `c1`,'c2 ' AS `Name_exp_2`,' c3' AS `c3`,' c4 ' AS `Name_exp_4`,'Name_exp_2' AS `My_exp_Name_exp_2`;
-DROP VIEW v1;
-# Invalid conlumn name in subquery.
-CREATE VIEW v1 AS SELECT (SELECT ' c1 ');
-DROP VIEW v1;
-CREATE VIEW v1 AS select (select ' c1 ') AS `(SELECT ' c1 ')`;
-DROP VIEW v1;
-CREATE TABLE t1(a INT);
-CREATE TABLE t2 LIKE t1;
-# Test alias in subquery
-CREATE VIEW v1 AS SELECT a FROM t1 WHERE EXISTS (SELECT 1 FROM t2 AS b WHERE b.a = 0);
-DROP VIEW v1;
-CREATE VIEW v1 AS select `test`.`t1`.`a` AS `a` from `test`.`t1` where exists(select 1 from `test`.`t2` `b` where `b`.`a` = 0);
-DROP VIEW v1;
-# Test column alias in subquery
-CREATE VIEW v1 AS SELECT a FROM t1 WHERE EXISTS (SELECT a AS alias FROM t1 GROUP BY alias);
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` where exists(select `t1`.`a` AS `alias` from `t1` group by `t1`.`a`) latin1 latin1_swedish_ci
-DROP VIEW v1;
-CREATE VIEW v1 AS select `test`.`t1`.`a` AS `a` from `test`.`t1` where exists(select `test`.`t1`.`a` AS `alias` from `test`.`t1` group by `test`.`t1`.`a`);
-DROP VIEW v1;
-# Alias as the expression column name.
-CREATE VIEW v1 AS SELECT a FROM t1 WHERE EXISTS (SELECT ' a ' AS alias FROM t1 GROUP BY alias);
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a` from `t1` where exists(select ' a ' AS `alias` from `t1` group by ' a ') latin1 latin1_swedish_ci
-DROP VIEW v1;
-CREATE VIEW v1 AS select `test`.`t1`.`a` AS `a` from `test`.`t1` where exists(select ' a ' AS `alias` from `test`.`t1` group by ' a ');
-DROP VIEW v1;
-DROP TABLE t1, t2;
-create view v1 as select interval(55,10) as my_col;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select interval(55,10) AS `my_col` latin1 latin1_swedish_ci
-select * from v1;
-my_col
-1
-drop view v1;
diff --git a/mysql-test/r/view_debug.result b/mysql-test/r/view_debug.result
deleted file mode 100644
index cfb70b5e74c..00000000000
--- a/mysql-test/r/view_debug.result
+++ /dev/null
@@ -1,25 +0,0 @@
-#
-#MDEV-8087:Server crashed in Time_and_counter_tracker::incr_loops
-#
-CREATE PROCEDURE proc() SELECT * FROM v2;
-CREATE ALGORITHM = UNDEFINED VIEW v1 AS SELECT 1;
-CREATE ALGORITHM = TEMPTABLE VIEW v2 AS SELECT 3 FROM v1;
-DROP VIEW v1;
-connect con1,localhost,root,,test;
-connect con2,localhost,root,,test;
-connection con1;
-CALL proc();
-ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-SET DEBUG_SYNC= 'after_cached_view_opened SIGNAL oppp WAIT_FOR created';
-CALL proc();
-connection con2;
-SET DEBUG_SYNC= 'now WAIT_FOR oppp';
-SET DEBUG_SYNC= 'RESET';
-CREATE ALGORITHM = TEMPTABLE VIEW v1 AS SELECT 2;
-SET DEBUG_SYNC= 'now SIGNAL created';
-connection con1;
-3
-3
-SET DEBUG_SYNC= 'RESET';
-drop procedure proc;
-drop view v1,v2;
diff --git a/mysql-test/r/view_grant.result b/mysql-test/r/view_grant.result
deleted file mode 100644
index 82594128d85..00000000000
--- a/mysql-test/r/view_grant.result
+++ /dev/null
@@ -1,1937 +0,0 @@
-drop database if exists mysqltest;
-drop view if exists v1,v2,v3;
-create user test@localhost;
-grant create view on test.* to test@localhost;
-show grants for test@localhost;
-Grants for test@localhost
-GRANT USAGE ON *.* TO 'test'@'localhost'
-GRANT CREATE VIEW ON `test`.* TO 'test'@'localhost'
-revoke create view on test.* from test@localhost;
-show grants for test@localhost;
-Grants for test@localhost
-GRANT USAGE ON *.* TO 'test'@'localhost'
-drop user test@localhost;
-connect root,localhost,root,,test;
-connection root;
-create database mysqltest;
-create table mysqltest.t1 (a int, b int);
-create table mysqltest.t2 (a int, b int);
-create user mysqltest_1@localhost;
-grant select on mysqltest.t1 to mysqltest_1@localhost;
-grant create view,select on test.* to mysqltest_1@localhost;
-connect user1,localhost,mysqltest_1,,test;
-connection user1;
-create definer=root@localhost view v1 as select * from mysqltest.t1;
-ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
-create view v1 as select * from mysqltest.t1;
-alter view v1 as select * from mysqltest.t1;
-ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table 'v1'
-create or replace view v1 as select * from mysqltest.t1;
-ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table 'v1'
-create view mysqltest.v2 as select * from mysqltest.t1;
-ERROR 42000: CREATE VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v2'
-create view v2 as select * from mysqltest.t2;
-ERROR 42000: ANY command denied to user 'mysqltest_1'@'localhost' for table 't2'
-connection root;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqltest_1`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `mysqltest`.`t1`.`a` AS `a`,`mysqltest`.`t1`.`b` AS `b` from `mysqltest`.`t1` latin1 latin1_swedish_ci
-grant create view,drop,select on test.* to mysqltest_1@localhost;
-connection user1;
-use test;
-alter view v1 as select * from mysqltest.t1;
-create or replace view v1 as select * from mysqltest.t1;
-connection root;
-revoke all privileges on mysqltest.t1 from mysqltest_1@localhost;
-revoke all privileges on test.* from mysqltest_1@localhost;
-drop database mysqltest;
-drop view test.v1;
-create database mysqltest;
-create table mysqltest.t1 (a int, b int);
-create view mysqltest.v1 (c,d) as select a+1,b+1 from mysqltest.t1;
-grant select (c) on mysqltest.v1 to mysqltest_1@localhost;
-connection user1;
-select c from mysqltest.v1;
-c
-select d from mysqltest.v1;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'd' in table 'v1'
-connection root;
-revoke all privileges on mysqltest.v1 from mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-create database mysqltest;
-create table mysqltest.t1 (a int, b int);
-create algorithm=temptable view mysqltest.v1 (c,d) as select a+1,b+1 from mysqltest.t1;
-create user mysqltest_1@localhost;
-grant select (c) on mysqltest.v1 to mysqltest_1@localhost;
-connection user1;
-select c from mysqltest.v1;
-c
-select d from mysqltest.v1;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'd' in table 'v1'
-connection root;
-revoke all privileges on mysqltest.v1 from mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-connection root;
-create database mysqltest;
-create table mysqltest.t1 (a int, b int);
-create table mysqltest.t2 (a int, b int);
-create view mysqltest.v1 (c,d) as select a+1,b+1 from mysqltest.t1;
-create algorithm=temptable view mysqltest.v2 (c,d) as select a+1,b+1 from mysqltest.t1;
-create view mysqltest.v3 (c,d) as select a+1,b+1 from mysqltest.t2;
-create algorithm=temptable view mysqltest.v4 (c,d) as select a+1,b+1 from mysqltest.t2;
-create view mysqltest.v5 (c,d) as select a+1,b+1 from mysqltest.t1;
-create user mysqltest_1@localhost;
-grant select on mysqltest.v1 to mysqltest_1@localhost;
-grant select on mysqltest.v2 to mysqltest_1@localhost;
-grant select on mysqltest.v3 to mysqltest_1@localhost;
-grant select on mysqltest.v4 to mysqltest_1@localhost;
-grant show view on mysqltest.v5 to mysqltest_1@localhost;
-connection user1;
-select c from mysqltest.v1;
-c
-select c from mysqltest.v2;
-c
-select c from mysqltest.v3;
-c
-select c from mysqltest.v4;
-c
-select c from mysqltest.v5;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'v5'
-show columns from mysqltest.v1;
-Field Type Null Key Default Extra
-c bigint(12) YES NULL
-d bigint(12) YES NULL
-show columns from mysqltest.v2;
-Field Type Null Key Default Extra
-c bigint(12) YES NULL
-d bigint(12) YES NULL
-explain select c from mysqltest.v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-show create view mysqltest.v1;
-ERROR 42000: SHOW VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v1'
-explain select c from mysqltest.v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-show create view mysqltest.v2;
-ERROR 42000: SHOW VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v2'
-explain select c from mysqltest.v3;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-show create view mysqltest.v3;
-ERROR 42000: SHOW VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v3'
-explain select c from mysqltest.v4;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-show create view mysqltest.v4;
-ERROR 42000: SHOW VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v4'
-explain select c from mysqltest.v5;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'v5'
-show create view mysqltest.v5;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'v5'
-connection root;
-grant select on mysqltest.v5 to mysqltest_1@localhost;
-connection user1;
-show create view mysqltest.v5;
-View Create View character_set_client collation_connection
-v5 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest`.`v5` AS select `mysqltest`.`t1`.`a` + 1 AS `c`,`mysqltest`.`t1`.`b` + 1 AS `d` from `mysqltest`.`t1` latin1 latin1_swedish_ci
-explain select c from mysqltest.v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-show create view mysqltest.v1;
-ERROR 42000: SHOW VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v1'
-connection root;
-grant show view on mysqltest.v1 to mysqltest_1@localhost;
-grant select on mysqltest.t1 to mysqltest_1@localhost;
-revoke select on mysqltest.v5 from mysqltest_1@localhost;
-connection user1;
-explain select c from mysqltest.v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 Const row not found
-show create view mysqltest.v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest`.`v1` AS select `mysqltest`.`t1`.`a` + 1 AS `c`,`mysqltest`.`t1`.`b` + 1 AS `d` from `mysqltest`.`t1` latin1 latin1_swedish_ci
-explain select c from mysqltest.v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-show create view mysqltest.v2;
-ERROR 42000: SHOW VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v2'
-explain select c from mysqltest.v3;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-show create view mysqltest.v3;
-ERROR 42000: SHOW VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v3'
-explain select c from mysqltest.v4;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-show create view mysqltest.v4;
-ERROR 42000: SHOW VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v4'
-explain select c from mysqltest.v5;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'v5'
-connection root;
-grant show view on mysqltest.* to mysqltest_1@localhost;
-connection user1;
-explain select c from mysqltest.v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 Const row not found
-show create view mysqltest.v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest`.`v1` AS select `mysqltest`.`t1`.`a` + 1 AS `c`,`mysqltest`.`t1`.`b` + 1 AS `d` from `mysqltest`.`t1` latin1 latin1_swedish_ci
-explain select c from mysqltest.v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> system NULL NULL NULL NULL 0 Const row not found
-2 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table
-show create view mysqltest.v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=TEMPTABLE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest`.`v2` AS select `mysqltest`.`t1`.`a` + 1 AS `c`,`mysqltest`.`t1`.`b` + 1 AS `d` from `mysqltest`.`t1` latin1 latin1_swedish_ci
-explain select c from mysqltest.v3;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-show create view mysqltest.v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest`.`v3` AS select `mysqltest`.`t2`.`a` + 1 AS `c`,`mysqltest`.`t2`.`b` + 1 AS `d` from `mysqltest`.`t2` latin1 latin1_swedish_ci
-explain select c from mysqltest.v4;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-show create view mysqltest.v4;
-View Create View character_set_client collation_connection
-v4 CREATE ALGORITHM=TEMPTABLE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest`.`v4` AS select `mysqltest`.`t2`.`a` + 1 AS `c`,`mysqltest`.`t2`.`b` + 1 AS `d` from `mysqltest`.`t2` latin1 latin1_swedish_ci
-connection root;
-revoke all privileges on mysqltest.* from mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-connection root;
-create database mysqltest;
-create table mysqltest.t1 (a int, b int, primary key(a));
-insert into mysqltest.t1 values (10,2), (20,3), (30,4), (40,5), (50,10);
-create table mysqltest.t2 (x int);
-insert into mysqltest.t2 values (3), (4), (5), (6);
-create view mysqltest.v1 (a,c) as select a, b+1 from mysqltest.t1;
-create view mysqltest.v2 (a,c) as select a, b from mysqltest.t1;
-create view mysqltest.v3 (a,c) as select a, b+1 from mysqltest.t1;
-create user mysqltest_1@localhost;
-grant update (a) on mysqltest.v2 to mysqltest_1@localhost;
-grant update on mysqltest.v1 to mysqltest_1@localhost;
-grant select on mysqltest.* to mysqltest_1@localhost;
-connection user1;
-use mysqltest;
-update t2,v1 set v1.a=v1.a+v1.c where t2.x=v1.c;
-select * from t1;
-a b
-13 2
-24 3
-35 4
-46 5
-50 10
-update v1 set a=a+c;
-select * from t1;
-a b
-16 2
-28 3
-40 4
-52 5
-61 10
-update t2,v2 set v2.a=v2.a+v2.c where t2.x=v2.c;
-select * from t1;
-a b
-16 2
-31 3
-44 4
-57 5
-61 10
-update v2 set a=a+c;
-select * from t1;
-a b
-18 2
-34 3
-48 4
-62 5
-71 10
-update t2,v2 set v2.c=v2.a+v2.c where t2.x=v2.c;
-ERROR 42000: UPDATE command denied to user 'mysqltest_1'@'localhost' for column 'c' in table 'v2'
-update v2 set c=a+c;
-ERROR 42000: UPDATE command denied to user 'mysqltest_1'@'localhost' for column 'c' in table 'v2'
-update t2,v3 set v3.a=v3.a+v3.c where t2.x=v3.c;
-ERROR 42000: UPDATE command denied to user 'mysqltest_1'@'localhost' for table 'v3'
-update v3 set a=a+c;
-ERROR 42000: UPDATE command denied to user 'mysqltest_1'@'localhost' for table 'v3'
-use test;
-connection root;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-connection root;
-create database mysqltest;
-create table mysqltest.t1 (a int, b int, primary key(a));
-insert into mysqltest.t1 values (1,2), (2,3), (3,4), (4,5), (5,10);
-create table mysqltest.t2 (x int);
-insert into mysqltest.t2 values (3), (4), (5), (6);
-create view mysqltest.v1 (a,c) as select a, b+1 from mysqltest.t1;
-create view mysqltest.v2 (a,c) as select a, b+1 from mysqltest.t1;
-create user mysqltest_1@localhost;
-grant delete on mysqltest.v1 to mysqltest_1@localhost;
-grant select on mysqltest.* to mysqltest_1@localhost;
-connection user1;
-use mysqltest;
-delete from v1 where c < 4;
-select * from t1;
-a b
-2 3
-3 4
-4 5
-5 10
-delete v1 from t2,v1 where t2.x=v1.c;
-select * from t1;
-a b
-5 10
-delete v2 from t2,v2 where t2.x=v2.c;
-ERROR 42000: DELETE command denied to user 'mysqltest_1'@'localhost' for table 'v2'
-delete from v2 where c < 4;
-ERROR 42000: DELETE command denied to user 'mysqltest_1'@'localhost' for table 'v2'
-use test;
-connection root;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-connection root;
-create database mysqltest;
-create table mysqltest.t1 (a int, b int, primary key(a));
-insert into mysqltest.t1 values (1,2), (2,3);
-create table mysqltest.t2 (x int, y int);
-insert into mysqltest.t2 values (3,4);
-create view mysqltest.v1 (a,c) as select a, b from mysqltest.t1;
-create view mysqltest.v2 (a,c) as select a, b from mysqltest.t1;
-create user mysqltest_1@localhost;
-grant insert on mysqltest.v1 to mysqltest_1@localhost;
-grant select on mysqltest.* to mysqltest_1@localhost;
-connection user1;
-use mysqltest;
-insert into v1 values (5,6);
-select * from t1;
-a b
-1 2
-2 3
-5 6
-insert into v1 select x,y from t2;
-select * from t1;
-a b
-1 2
-2 3
-5 6
-3 4
-insert into v2 values (5,6);
-ERROR 42000: INSERT command denied to user 'mysqltest_1'@'localhost' for table 'v2'
-insert into v2 select x,y from t2;
-ERROR 42000: INSERT command denied to user 'mysqltest_1'@'localhost' for table 'v2'
-use test;
-connection root;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-connection root;
-create database mysqltest;
-create table mysqltest.t1 (a int, b int);
-create table mysqltest.t2 (a int, b int);
-create user mysqltest_1@localhost;
-grant update on mysqltest.t1 to mysqltest_1@localhost;
-grant update(b) on mysqltest.t2 to mysqltest_1@localhost;
-grant create view,update on test.* to mysqltest_1@localhost;
-connection user1;
-create view v1 as select * from mysqltest.t1;
-create view v2 as select b from mysqltest.t2;
-create view mysqltest.v1 as select * from mysqltest.t1;
-ERROR 42000: CREATE VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v1'
-create view v3 as select a from mysqltest.t2;
-ERROR 42000: ANY command denied to user 'mysqltest_1'@'localhost' for column 'a' in table 't2'
-connection root;
-create table mysqltest.v3 (b int);
-grant create view on mysqltest.v3 to mysqltest_1@localhost;
-drop table mysqltest.v3;
-connection user1;
-create view mysqltest.v3 as select b from mysqltest.t2;
-connection root;
-grant create view, update on mysqltest.v3 to mysqltest_1@localhost;
-drop view mysqltest.v3;
-connection user1;
-create view mysqltest.v3 as select b from mysqltest.t2;
-create view v4 as select b+1 from mysqltest.t2;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'b' in table 't2'
-connection root;
-grant create view,update,select on test.* to mysqltest_1@localhost;
-connection user1;
-create view v4 as select b+1 from mysqltest.t2;
-ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'b' in table 't2'
-connection root;
-grant update,select(b) on mysqltest.t2 to mysqltest_1@localhost;
-connection user1;
-create view v4 as select b+1 from mysqltest.t2;
-connection root;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-drop view v1,v2,v4;
-connection root;
-create database mysqltest;
-create table mysqltest.t1 (a int);
-create user mysqltest_1@localhost;
-grant all privileges on mysqltest.* to mysqltest_1@localhost;
-connection user1;
-use mysqltest;
-create view v1 as select * from t1;
-use test;
-connection root;
-revoke all privileges on mysqltest.* from mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-connection root;
-create database mysqltest;
-create table mysqltest.t1 (a int, b int);
-create user mysqltest_1@localhost;
-grant select on mysqltest.t1 to mysqltest_1@localhost;
-grant create view,select on test.* to mysqltest_1@localhost;
-connection user1;
-create view v1 as select * from mysqltest.t1;
-connection root;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqltest_1`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `mysqltest`.`t1`.`a` AS `a`,`mysqltest`.`t1`.`b` AS `b` from `mysqltest`.`t1` latin1 latin1_swedish_ci
-revoke select on mysqltest.t1 from mysqltest_1@localhost;
-select * from v1;
-ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-grant select on mysqltest.t1 to mysqltest_1@localhost;
-select * from v1;
-a b
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop view v1;
-drop database mysqltest;
-connection root;
-create database mysqltest;
-use mysqltest;
-create table t1 (a int);
-insert into t1 values (1);
-create table t2 (s1 int);
-drop function if exists f2;
-create function f2 () returns int begin declare v int; select s1 from t2
-into v; return v; end//
-create algorithm=TEMPTABLE view v1 as select f2() from t1;
-create algorithm=MERGE view v2 as select f2() from t1;
-create algorithm=TEMPTABLE SQL SECURITY INVOKER view v3 as select f2() from t1;
-create algorithm=MERGE SQL SECURITY INVOKER view v4 as select f2() from t1;
-create SQL SECURITY INVOKER view v5 as select * from v4;
-create user mysqltest_1@localhost;
-grant select on v1 to mysqltest_1@localhost;
-grant select on v2 to mysqltest_1@localhost;
-grant select on v3 to mysqltest_1@localhost;
-grant select on v4 to mysqltest_1@localhost;
-grant select on v5 to mysqltest_1@localhost;
-connection user1;
-use mysqltest;
-select * from v1;
-f2()
-NULL
-select * from v2;
-f2()
-NULL
-select * from v3;
-ERROR HY000: View 'mysqltest.v3' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-select * from v4;
-ERROR HY000: View 'mysqltest.v4' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-select * from v5;
-ERROR HY000: View 'mysqltest.v5' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-use test;
-connection root;
-drop view v1, v2, v3, v4, v5;
-drop function f2;
-drop table t1, t2;
-use test;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-connection root;
-create database mysqltest;
-use mysqltest;
-create table t1 (a int);
-insert into t1 values (1);
-create table t2 (s1 int);
-drop function if exists f2;
-create function f2 () returns int begin declare v int; select s1 from t2
-into v; return v; end//
-create user mysqltest_1@localhost;
-grant select on t1 to mysqltest_1@localhost;
-grant execute on function f2 to mysqltest_1@localhost;
-grant create view on mysqltest.* to mysqltest_1@localhost;
-connection user1;
-use mysqltest;
-create algorithm=TEMPTABLE view v1 as select f2() from t1;
-create algorithm=MERGE view v2 as select f2() from t1;
-create algorithm=TEMPTABLE SQL SECURITY INVOKER view v3 as select f2() from t1;
-create algorithm=MERGE SQL SECURITY INVOKER view v4 as select f2() from t1;
-use test;
-connection root;
-create view v5 as select * from v1;
-revoke execute on function f2 from mysqltest_1@localhost;
-select * from v1;
-ERROR HY000: View 'mysqltest.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-select * from v2;
-ERROR HY000: View 'mysqltest.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-select * from v3;
-f2()
-NULL
-select * from v4;
-f2()
-NULL
-select * from v5;
-ERROR HY000: View 'mysqltest.v5' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-drop view v1, v2, v3, v4, v5;
-drop function f2;
-drop table t1, t2;
-use test;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-connection root;
-create database mysqltest;
-use mysqltest;
-create table t1 (a int);
-create table v1 (a int);
-insert into t1 values (1);
-create user mysqltest_1@localhost;
-grant select on t1 to mysqltest_1@localhost;
-grant select on v1 to mysqltest_1@localhost;
-grant create view on mysqltest.* to mysqltest_1@localhost;
-drop table v1;
-connection user1;
-use mysqltest;
-create algorithm=TEMPTABLE view v1 as select *, a as b from t1;
-create algorithm=MERGE view v2 as select *, a as b from t1;
-create algorithm=TEMPTABLE SQL SECURITY INVOKER view v3 as select *, a as b from t1;
-create algorithm=MERGE SQL SECURITY INVOKER view v4 as select *, a as b from t1;
-create view v5 as select * from v1;
-use test;
-connection root;
-revoke select on t1 from mysqltest_1@localhost;
-select * from v1;
-ERROR HY000: View 'mysqltest.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-select * from v2;
-ERROR HY000: View 'mysqltest.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-select * from v3;
-a b
-1 1
-select * from v4;
-a b
-1 1
-select * from v5;
-ERROR HY000: View 'mysqltest.v5' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-drop table t1;
-use test;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-connection root;
-create database mysqltest;
-use mysqltest;
-create table t1 (a int);
-insert into t1 values (1);
-create algorithm=TEMPTABLE view v1 as select *, a as b from t1;
-create algorithm=MERGE view v2 as select *, a as b from t1;
-create algorithm=TEMPTABLE SQL SECURITY INVOKER view v3 as select *, a as b from t1;
-create algorithm=MERGE SQL SECURITY INVOKER view v4 as select *, a as b from t1;
-create SQL SECURITY INVOKER view v5 as select * from v4;
-create user mysqltest_1@localhost;
-grant select on v1 to mysqltest_1@localhost;
-grant select on v2 to mysqltest_1@localhost;
-grant select on v3 to mysqltest_1@localhost;
-grant select on v4 to mysqltest_1@localhost;
-grant select on v5 to mysqltest_1@localhost;
-connection user1;
-use mysqltest;
-select * from v1;
-a b
-1 1
-select * from v2;
-a b
-1 1
-select * from v3;
-ERROR HY000: View 'mysqltest.v3' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-select * from v4;
-ERROR HY000: View 'mysqltest.v4' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-select * from v5;
-ERROR HY000: View 'mysqltest.v5' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-use test;
-connection root;
-drop view v1, v2, v3, v4, v5;
-drop table t1;
-use test;
-REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_1@localhost;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-drop view if exists v1;
-drop table if exists t1;
-create table t1 as select * from mysql.user where user='';
-delete from mysql.user where user='';
-flush privileges;
-create user 'test14256'@'%';
-grant all on test.* to 'test14256'@'%';
-connect test14256,localhost,test14256,,test;
-connection test14256;
-use test;
-create view v1 as select 42;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`test14256`@`%` SQL SECURITY DEFINER VIEW `v1` AS select 42 AS `42` latin1 latin1_swedish_ci
-select definer into @v1def1 from information_schema.views
-where table_schema = 'test' and table_name='v1';
-drop view v1;
-create definer=`test14256`@`%` view v1 as select 42;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`test14256`@`%` SQL SECURITY DEFINER VIEW `v1` AS select 42 AS `42` latin1 latin1_swedish_ci
-select definer into @v1def2 from information_schema.views
-where table_schema = 'test' and table_name='v1';
-drop view v1;
-select @v1def1, @v1def2, @v1def1=@v1def2;
-@v1def1 @v1def2 @v1def1=@v1def2
-test14256@% test14256@% 1
-connection root;
-disconnect test14256;
-drop user test14256;
-insert into mysql.user select * from t1;
-flush privileges;
-drop table t1;
-connection root;
-create database mysqltest;
-use mysqltest;
-CREATE TABLE t1 (i INT);
-CREATE VIEW v1 AS SELECT * FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i` from `t1` latin1 latin1_swedish_ci
-create user mysqltest_1@localhost;
-GRANT SELECT, LOCK TABLES ON mysqltest.* TO mysqltest_1@localhost;
-connection user1;
-use mysqltest;
-LOCK TABLES v1 READ;
-SHOW CREATE TABLE v1;
-ERROR 42000: SHOW VIEW command denied to user 'mysqltest_1'@'localhost' for table 'v1'
-UNLOCK TABLES;
-use test;
-connection root;
-use test;
-drop user mysqltest_1@localhost;
-drop database mysqltest;
-disconnect user1;
-disconnect root;
-connection default;
-create definer=some_user@`` sql security invoker view v1 as select 1;
-Warnings:
-Note 1449 The user specified as a definer ('some_user'@'%') does not exist
-create definer=some_user@localhost sql security invoker view v2 as select 1;
-Warnings:
-Note 1449 The user specified as a definer ('some_user'@'localhost') does not exist
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`some_user`@`%` SQL SECURITY INVOKER VIEW `v1` AS select 1 AS `1` latin1 latin1_swedish_ci
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`some_user`@`localhost` SQL SECURITY INVOKER VIEW `v2` AS select 1 AS `1` latin1 latin1_swedish_ci
-drop view v1;
-drop view v2;
-CREATE DATABASE mysqltest1;
-CREATE USER readonly@localhost;
-CREATE TABLE mysqltest1.t1 (x INT);
-INSERT INTO mysqltest1.t1 VALUES (1), (2);
-CREATE SQL SECURITY INVOKER VIEW mysqltest1.v_t1 AS SELECT * FROM mysqltest1.t1;
-CREATE SQL SECURITY DEFINER VIEW mysqltest1.v_ts AS SELECT * FROM mysqltest1.t1;
-CREATE SQL SECURITY DEFINER VIEW mysqltest1.v_ti AS SELECT * FROM mysqltest1.t1;
-CREATE SQL SECURITY DEFINER VIEW mysqltest1.v_tu AS SELECT * FROM mysqltest1.t1;
-CREATE SQL SECURITY DEFINER VIEW mysqltest1.v_tus AS SELECT * FROM mysqltest1.t1;
-CREATE SQL SECURITY DEFINER VIEW mysqltest1.v_td AS SELECT * FROM mysqltest1.t1;
-CREATE SQL SECURITY DEFINER VIEW mysqltest1.v_tds AS SELECT * FROM mysqltest1.t1;
-GRANT SELECT, INSERT, UPDATE, DELETE ON mysqltest1.v_t1 TO readonly@localhost;
-GRANT SELECT ON mysqltest1.v_ts TO readonly@localhost;
-GRANT INSERT ON mysqltest1.v_ti TO readonly@localhost;
-GRANT UPDATE ON mysqltest1.v_tu TO readonly@localhost;
-GRANT UPDATE,SELECT ON mysqltest1.v_tus TO readonly@localhost;
-GRANT DELETE ON mysqltest1.v_td TO readonly@localhost;
-GRANT DELETE,SELECT ON mysqltest1.v_tds TO readonly@localhost;
-connect n1,localhost,readonly,,;
-connection n1;
-SELECT * FROM mysqltest1.v_t1;
-ERROR HY000: View 'mysqltest1.v_t1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-INSERT INTO mysqltest1.v_t1 VALUES(4);
-ERROR HY000: View 'mysqltest1.v_t1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-DELETE FROM mysqltest1.v_t1 WHERE x = 1;
-ERROR HY000: View 'mysqltest1.v_t1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-UPDATE mysqltest1.v_t1 SET x = 3 WHERE x = 2;
-ERROR HY000: View 'mysqltest1.v_t1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-UPDATE mysqltest1.v_t1 SET x = 3;
-ERROR HY000: View 'mysqltest1.v_t1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-DELETE FROM mysqltest1.v_t1;
-ERROR HY000: View 'mysqltest1.v_t1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-SELECT 1 FROM mysqltest1.v_t1;
-ERROR HY000: View 'mysqltest1.v_t1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-SELECT * FROM mysqltest1.t1;
-ERROR 42000: SELECT command denied to user 'readonly'@'localhost' for table 't1'
-SELECT * FROM mysqltest1.v_ts;
-x
-1
-2
-SELECT * FROM mysqltest1.v_ts, mysqltest1.t1 WHERE mysqltest1.t1.x = mysqltest1.v_ts.x;
-ERROR 42000: SELECT command denied to user 'readonly'@'localhost' for table 't1'
-SELECT * FROM mysqltest1.v_ti;
-ERROR 42000: SELECT command denied to user 'readonly'@'localhost' for table 'v_ti'
-INSERT INTO mysqltest1.v_ts VALUES (100);
-ERROR 42000: INSERT command denied to user 'readonly'@'localhost' for table 'v_ts'
-INSERT INTO mysqltest1.v_ti VALUES (100);
-UPDATE mysqltest1.v_ts SET x= 200 WHERE x = 100;
-ERROR 42000: UPDATE command denied to user 'readonly'@'localhost' for table 'v_ts'
-UPDATE mysqltest1.v_ts SET x= 200;
-ERROR 42000: UPDATE command denied to user 'readonly'@'localhost' for table 'v_ts'
-UPDATE mysqltest1.v_tu SET x= 200 WHERE x = 100;
-UPDATE mysqltest1.v_tus SET x= 200 WHERE x = 100;
-UPDATE mysqltest1.v_tu SET x= 200;
-DELETE FROM mysqltest1.v_ts WHERE x= 200;
-ERROR 42000: DELETE command denied to user 'readonly'@'localhost' for table 'v_ts'
-DELETE FROM mysqltest1.v_ts;
-ERROR 42000: DELETE command denied to user 'readonly'@'localhost' for table 'v_ts'
-DELETE FROM mysqltest1.v_td WHERE x= 200;
-ERROR 42000: SELECT command denied to user 'readonly'@'localhost' for column 'x' in table 'v_td'
-DELETE FROM mysqltest1.v_tds WHERE x= 200;
-DELETE FROM mysqltest1.v_td;
-connection default;
-disconnect n1;
-DROP VIEW mysqltest1.v_tds;
-DROP VIEW mysqltest1.v_td;
-DROP VIEW mysqltest1.v_tus;
-DROP VIEW mysqltest1.v_tu;
-DROP VIEW mysqltest1.v_ti;
-DROP VIEW mysqltest1.v_ts;
-DROP VIEW mysqltest1.v_t1;
-DROP TABLE mysqltest1.t1;
-DROP USER readonly@localhost;
-DROP DATABASE mysqltest1;
-CREATE TABLE t1 (a INT PRIMARY KEY);
-INSERT INTO t1 VALUES (1), (2), (3);
-CREATE DEFINER = 'no-such-user'@localhost VIEW v AS SELECT a from t1;
-Warnings:
-Note 1449 The user specified as a definer ('no-such-user'@'localhost') does not exist
-SHOW CREATE VIEW v;
-View Create View character_set_client collation_connection
-v CREATE ALGORITHM=UNDEFINED DEFINER=`no-such-user`@`localhost` SQL SECURITY DEFINER VIEW `v` AS select `test`.`t1`.`a` AS `a` from `t1` latin1 latin1_swedish_ci
-Warnings:
-Note 1449 The user specified as a definer ('no-such-user'@'localhost') does not exist
-SELECT * FROM v;
-ERROR HY000: The user specified as a definer ('no-such-user'@'localhost') does not exist
-DROP VIEW v;
-DROP TABLE t1;
-USE test;
-CREATE USER mysqltest_db1@localhost identified by 'PWD';
-GRANT ALL ON mysqltest_db1.* TO mysqltest_db1@localhost WITH GRANT OPTION;
-connect session1,localhost,mysqltest_db1,PWD,test;
-CREATE SCHEMA mysqltest_db1 ;
-USE mysqltest_db1 ;
-CREATE TABLE t1 (f1 INTEGER);
-CREATE VIEW view1 AS
-SELECT * FROM t1;
-SHOW CREATE VIEW view1;
-View Create View character_set_client collation_connection
-view1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqltest_db1`@`localhost` SQL SECURITY DEFINER VIEW `view1` AS select `t1`.`f1` AS `f1` from `t1` latin1 latin1_swedish_ci
-CREATE VIEW view2 AS
-SELECT * FROM view1;
-# Here comes a suspicious warning
-SHOW CREATE VIEW view2;
-View Create View character_set_client collation_connection
-view2 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqltest_db1`@`localhost` SQL SECURITY DEFINER VIEW `view2` AS select `view1`.`f1` AS `f1` from `view1` latin1 latin1_swedish_ci
-# But the view view2 is usable
-SELECT * FROM view2;
-f1
-CREATE VIEW view3 AS
-SELECT * FROM view2;
-SELECT * from view3;
-f1
-connection default;
-disconnect session1;
-DROP VIEW mysqltest_db1.view3;
-DROP VIEW mysqltest_db1.view2;
-DROP VIEW mysqltest_db1.view1;
-DROP TABLE mysqltest_db1.t1;
-DROP SCHEMA mysqltest_db1;
-DROP USER mysqltest_db1@localhost;
-CREATE DATABASE test1;
-CREATE DATABASE test2;
-CREATE TABLE test1.t0 (a VARCHAR(20));
-CREATE TABLE test2.t1 (a VARCHAR(20));
-CREATE VIEW test2.t3 AS SELECT * FROM test1.t0;
-CREATE OR REPLACE VIEW test.v1 AS
-SELECT ta.a AS col1, tb.a AS col2 FROM test2.t3 ta, test2.t1 tb;
-DROP VIEW test.v1;
-DROP VIEW test2.t3;
-DROP TABLE test2.t1, test1.t0;
-DROP DATABASE test2;
-DROP DATABASE test1;
-DROP VIEW IF EXISTS v1;
-DROP VIEW IF EXISTS v2;
-DROP VIEW IF EXISTS v3;
-DROP FUNCTION IF EXISTS f1;
-DROP FUNCTION IF EXISTS f2;
-DROP PROCEDURE IF EXISTS p1;
-CREATE SQL SECURITY DEFINER VIEW v1 AS SELECT CURRENT_USER() AS cu;
-CREATE FUNCTION f1() RETURNS VARCHAR(77) SQL SECURITY INVOKER
-RETURN CURRENT_USER();
-CREATE SQL SECURITY DEFINER VIEW v2 AS SELECT f1() AS cu;
-CREATE PROCEDURE p1(OUT cu VARCHAR(77)) SQL SECURITY INVOKER
-SET cu= CURRENT_USER();
-CREATE FUNCTION f2() RETURNS VARCHAR(77) SQL SECURITY INVOKER
-BEGIN
-DECLARE cu VARCHAR(77);
-CALL p1(cu);
-RETURN cu;
-END|
-CREATE SQL SECURITY DEFINER VIEW v3 AS SELECT f2() AS cu;
-CREATE USER mysqltest_u1@localhost;
-GRANT ALL ON test.* TO mysqltest_u1@localhost;
-connect conn1, localhost, mysqltest_u1,,;
-
-The following tests should all return 1.
-
-SELECT CURRENT_USER() = 'mysqltest_u1@localhost';
-CURRENT_USER() = 'mysqltest_u1@localhost'
-1
-SELECT f1() = 'mysqltest_u1@localhost';
-f1() = 'mysqltest_u1@localhost'
-1
-CALL p1(@cu);
-SELECT @cu = 'mysqltest_u1@localhost';
-@cu = 'mysqltest_u1@localhost'
-1
-SELECT f2() = 'mysqltest_u1@localhost';
-f2() = 'mysqltest_u1@localhost'
-1
-SELECT cu = 'root@localhost' FROM v1;
-cu = 'root@localhost'
-1
-SELECT cu = 'root@localhost' FROM v2;
-cu = 'root@localhost'
-1
-SELECT cu = 'root@localhost' FROM v3;
-cu = 'root@localhost'
-1
-disconnect conn1;
-connection default;
-DROP VIEW v3;
-DROP FUNCTION f2;
-DROP PROCEDURE p1;
-DROP FUNCTION f1;
-DROP VIEW v2;
-DROP VIEW v1;
-DROP USER mysqltest_u1@localhost;
-connect root,localhost,root,,;
-connection root;
-CREATE DATABASE db17254;
-USE db17254;
-CREATE TABLE t1 (f1 INT);
-INSERT INTO t1 VALUES (10),(20);
-CREATE USER def_17254@localhost;
-GRANT SELECT ON db17254.* TO def_17254@localhost;
-CREATE USER inv_17254@localhost;
-GRANT SELECT ON db17254.t1 TO inv_17254@localhost;
-GRANT CREATE VIEW ON db17254.* TO def_17254@localhost;
-connect def,localhost,def_17254,,db17254;
-connection def;
-CREATE VIEW v1 AS SELECT * FROM t1;
-connection root;
-DROP USER def_17254@localhost;
-connect inv,localhost,inv_17254,,db17254;
-connection inv;
-for a user
-SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'inv_17254'@'localhost' for table 'v1'
-connection root;
-for a superuser
-SELECT * FROM v1;
-ERROR HY000: The user specified as a definer ('def_17254'@'localhost') does not exist
-DROP USER inv_17254@localhost;
-DROP DATABASE db17254;
-disconnect def;
-disconnect inv;
-DROP DATABASE IF EXISTS mysqltest_db1;
-DROP DATABASE IF EXISTS mysqltest_db2;
-DROP USER mysqltest_u1;
-DROP USER mysqltest_u2;
-CREATE USER mysqltest_u1@localhost;
-CREATE USER mysqltest_u2@localhost;
-CREATE DATABASE mysqltest_db1;
-CREATE DATABASE mysqltest_db2;
-GRANT ALL ON mysqltest_db1.* TO mysqltest_u1@localhost WITH GRANT OPTION;
-GRANT ALL ON mysqltest_db2.* TO mysqltest_u2@localhost;
-connect conn1, localhost, mysqltest_u1, , mysqltest_db1;
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1);
-CREATE VIEW v1 AS SELECT i FROM t1 WHERE 1 IN (SELECT * FROM t1);
-CREATE TABLE t2 (s CHAR(7));
-INSERT INTO t2 VALUES ('public');
-GRANT SELECT ON v1 TO mysqltest_u2@localhost;
-GRANT SELECT ON t2 TO mysqltest_u2@localhost;
-connect conn2, localhost, mysqltest_u2, , mysqltest_db2;
-SELECT * FROM mysqltest_db1.v1, mysqltest_db1.t2;
-i s
-1 public
-PREPARE stmt1 FROM "SELECT * FROM mysqltest_db1.t2";
-EXECUTE stmt1;
-s
-public
-PREPARE stmt2 FROM "SELECT * FROM mysqltest_db1.v1, mysqltest_db1.t2";
-EXECUTE stmt2;
-i s
-1 public
-connection conn1;
-REVOKE SELECT ON t2 FROM mysqltest_u2@localhost;
-UPDATE t2 SET s = 'private' WHERE s = 'public';
-connection conn2;
-SELECT * FROM mysqltest_db1.v1, mysqltest_db1.t2;
-ERROR 42000: SELECT command denied to user 'mysqltest_u2'@'localhost' for table 't2'
-EXECUTE stmt1;
-ERROR 42000: SELECT command denied to user 'mysqltest_u2'@'localhost' for table 't2'
-EXECUTE stmt2;
-ERROR 42000: SELECT command denied to user 'mysqltest_u2'@'localhost' for table 't2'
-disconnect conn2;
-disconnect conn1;
-connection default;
-REVOKE ALL ON mysqltest_db1.* FROM mysqltest_u1@localhost;
-REVOKE ALL ON mysqltest_db2.* FROM mysqltest_u2@localhost;
-DROP DATABASE mysqltest_db1;
-DROP DATABASE mysqltest_db2;
-DROP USER mysqltest_u1@localhost;
-DROP USER mysqltest_u2@localhost;
-connection root;
-CREATE DATABASE db26813;
-USE db26813;
-CREATE TABLE t1(f1 INT, f2 INT);
-CREATE VIEW v1 AS SELECT f1 FROM t1;
-CREATE VIEW v2 AS SELECT f1 FROM t1;
-CREATE VIEW v3 AS SELECT f1 FROM t1;
-CREATE USER u26813@localhost;
-GRANT DROP ON db26813.v1 TO u26813@localhost;
-GRANT CREATE VIEW ON db26813.v2 TO u26813@localhost;
-GRANT DROP, CREATE VIEW ON db26813.v3 TO u26813@localhost;
-GRANT SELECT ON db26813.t1 TO u26813@localhost;
-connect u1,localhost,u26813,,db26813;
-connection u1;
-ALTER VIEW v1 AS SELECT f2 FROM t1;
-ERROR 42000: CREATE VIEW command denied to user 'u26813'@'localhost' for table 'v1'
-ALTER VIEW v2 AS SELECT f2 FROM t1;
-ERROR 42000: DROP command denied to user 'u26813'@'localhost' for table 'v2'
-ALTER VIEW v3 AS SELECT f2 FROM t1;
-ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
-connection root;
-SHOW CREATE VIEW v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select `t1`.`f1` AS `f1` from `t1` latin1 latin1_swedish_ci
-DROP USER u26813@localhost;
-DROP DATABASE db26813;
-disconnect u1;
-#
-# Bug#29908 A user can gain additional access through the ALTER VIEW.
-#
-connection root;
-CREATE DATABASE mysqltest_29908;
-USE mysqltest_29908;
-CREATE TABLE t1(f1 INT, f2 INT);
-CREATE USER u29908_1@localhost;
-CREATE DEFINER = u29908_1@localhost VIEW v1 AS SELECT f1 FROM t1;
-CREATE DEFINER = u29908_1@localhost SQL SECURITY INVOKER VIEW v2 AS
-SELECT f1 FROM t1;
-GRANT SELECT, DROP, CREATE VIEW, SHOW VIEW ON mysqltest_29908.v1 TO u29908_1@localhost;
-GRANT SELECT, DROP, CREATE VIEW, SHOW VIEW ON mysqltest_29908.v2 TO u29908_1@localhost;
-GRANT SELECT ON mysqltest_29908.t1 TO u29908_1@localhost;
-CREATE USER u29908_2@localhost;
-GRANT SELECT, DROP, CREATE VIEW ON mysqltest_29908.v1 TO u29908_2@localhost;
-GRANT SELECT, DROP, CREATE VIEW, SHOW VIEW ON mysqltest_29908.v2 TO u29908_2@localhost;
-GRANT SELECT ON mysqltest_29908.t1 TO u29908_2@localhost;
-connect u2,localhost,u29908_2,,mysqltest_29908;
-ALTER VIEW v1 AS SELECT f2 FROM t1;
-ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
-ALTER VIEW v2 AS SELECT f2 FROM t1;
-ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
-SHOW CREATE VIEW v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY INVOKER VIEW `v2` AS select `t1`.`f1` AS `f1` from `t1` latin1 latin1_swedish_ci
-connect u1,localhost,u29908_1,,mysqltest_29908;
-ALTER VIEW v1 AS SELECT f2 FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f2` AS `f2` from `t1` latin1 latin1_swedish_ci
-ALTER VIEW v2 AS SELECT f2 FROM t1;
-SHOW CREATE VIEW v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY INVOKER VIEW `v2` AS select `t1`.`f2` AS `f2` from `t1` latin1 latin1_swedish_ci
-connection root;
-ALTER VIEW v1 AS SELECT f1 FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `f1` from `t1` latin1 latin1_swedish_ci
-ALTER VIEW v2 AS SELECT f1 FROM t1;
-SHOW CREATE VIEW v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY INVOKER VIEW `v2` AS select `t1`.`f1` AS `f1` from `t1` latin1 latin1_swedish_ci
-DROP USER u29908_1@localhost;
-DROP USER u29908_2@localhost;
-DROP DATABASE mysqltest_29908;
-disconnect u1;
-disconnect u2;
-#######################################################################
-DROP DATABASE IF EXISTS mysqltest1;
-DROP DATABASE IF EXISTS mysqltest2;
-CREATE DATABASE mysqltest1;
-CREATE DATABASE mysqltest2;
-CREATE TABLE mysqltest1.t1(c1 INT);
-CREATE TABLE mysqltest1.t2(c2 INT);
-CREATE TABLE mysqltest1.t3(c3 INT);
-CREATE TABLE mysqltest1.t4(c4 INT);
-INSERT INTO mysqltest1.t1 VALUES (11), (12), (13), (14);
-INSERT INTO mysqltest1.t2 VALUES (21), (22), (23), (24);
-INSERT INTO mysqltest1.t3 VALUES (31), (32), (33), (34);
-INSERT INTO mysqltest1.t4 VALUES (41), (42), (43), (44);
-CREATE USER mysqltest_u1@localhost;
-GRANT SELECT ON mysqltest1.t1 TO mysqltest_u1@localhost;
-GRANT INSERT ON mysqltest1.t2 TO mysqltest_u1@localhost;
-GRANT SELECT, UPDATE ON mysqltest1.t3 TO mysqltest_u1@localhost;
-GRANT SELECT, DELETE ON mysqltest1.t4 TO mysqltest_u1@localhost;
-GRANT ALL PRIVILEGES ON mysqltest2.* TO mysqltest_u1@localhost;
-connect bug24040_con,localhost,mysqltest_u1,,mysqltest2;
-SELECT * FROM mysqltest1.t1;
-c1
-11
-12
-13
-14
-INSERT INTO mysqltest1.t2 VALUES(25);
-UPDATE mysqltest1.t3 SET c3 = 331 WHERE c3 = 31;
-DELETE FROM mysqltest1.t4 WHERE c4 = 44;
-CREATE VIEW v1 AS SELECT * FROM mysqltest1.t1;
-CREATE VIEW v2 AS SELECT * FROM mysqltest1.t2;
-CREATE VIEW v3 AS SELECT * FROM mysqltest1.t3;
-CREATE VIEW v4 AS SELECT * FROM mysqltest1.t4;
-SELECT * FROM v1;
-c1
-11
-12
-13
-14
-INSERT INTO v2 VALUES(26);
-UPDATE v3 SET c3 = 332 WHERE c3 = 32;
-DELETE FROM v4 WHERE c4 = 43;
-CREATE VIEW v12 AS SELECT c1, c2 FROM mysqltest1.t1, mysqltest1.t2;
-ERROR 42000: create view command denied to user 'mysqltest_u1'@'localhost' for column 'c2' in table 'v12'
-CREATE VIEW v13 AS SELECT c1, c3 FROM mysqltest1.t1, mysqltest1.t3;
-CREATE VIEW v14 AS SELECT c1, c4 FROM mysqltest1.t1, mysqltest1.t4;
-CREATE VIEW v21 AS SELECT c2, c1 FROM mysqltest1.t2, mysqltest1.t1;
-ERROR 42000: create view command denied to user 'mysqltest_u1'@'localhost' for column 'c1' in table 'v21'
-CREATE VIEW v23 AS SELECT c2, c3 FROM mysqltest1.t2, mysqltest1.t3;
-ERROR 42000: create view command denied to user 'mysqltest_u1'@'localhost' for column 'c3' in table 'v23'
-CREATE VIEW v24 AS SELECT c2, c4 FROM mysqltest1.t2, mysqltest1.t4;
-ERROR 42000: create view command denied to user 'mysqltest_u1'@'localhost' for column 'c4' in table 'v24'
-CREATE VIEW v31 AS SELECT c3, c1 FROM mysqltest1.t3, mysqltest1.t1;
-CREATE VIEW v32 AS SELECT c3, c2 FROM mysqltest1.t3, mysqltest1.t2;
-ERROR 42000: create view command denied to user 'mysqltest_u1'@'localhost' for column 'c2' in table 'v32'
-CREATE VIEW v34 AS SELECT c3, c4 FROM mysqltest1.t3, mysqltest1.t4;
-CREATE VIEW v41 AS SELECT c4, c1 FROM mysqltest1.t4, mysqltest1.t1;
-CREATE VIEW v42 AS SELECT c4, c2 FROM mysqltest1.t4, mysqltest1.t2;
-ERROR 42000: create view command denied to user 'mysqltest_u1'@'localhost' for column 'c2' in table 'v42'
-CREATE VIEW v43 AS SELECT c4, c3 FROM mysqltest1.t4, mysqltest1.t3;
-connection default;
-SELECT * FROM mysqltest1.t1;
-c1
-11
-12
-13
-14
-SELECT * FROM mysqltest1.t2;
-c2
-21
-22
-23
-24
-25
-26
-SELECT * FROM mysqltest1.t3;
-c3
-331
-332
-33
-34
-SELECT * FROM mysqltest1.t4;
-c4
-41
-42
-disconnect bug24040_con;
-DROP DATABASE mysqltest1;
-DROP DATABASE mysqltest2;
-DROP USER mysqltest_u1@localhost;
-CREATE DATABASE db1;
-USE db1;
-CREATE TABLE t1(f1 INT, f2 INT);
-CREATE VIEW v1 AS SELECT f1, f2 FROM t1;
-CREATE USER foo;
-GRANT SELECT (f1) ON t1 TO foo;
-GRANT SELECT (f1) ON v1 TO foo;
-connect addconfoo, localhost, foo,,;
-connection addconfoo;
-USE db1;
-SELECT f1 FROM t1;
-f1
-SELECT f2 FROM t1;
-ERROR 42000: SELECT command denied to user 'foo'@'localhost' for column 'f2' in table 't1'
-SELECT * FROM t1;
-ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 't1'
-SELECT f1 FROM v1;
-f1
-SELECT f2 FROM v1;
-ERROR 42000: SELECT command denied to user 'foo'@'localhost' for column 'f2' in table 'v1'
-SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 'v1'
-connection default;
-disconnect root;
-disconnect addconfoo;
-USE test;
-REVOKE SELECT (f1) ON db1.t1 FROM foo;
-REVOKE SELECT (f1) ON db1.v1 FROM foo;
-DROP USER foo;
-DROP VIEW db1.v1;
-DROP TABLE db1.t1;
-DROP DATABASE db1;
-connection default;
-Bug #11765687/#58677:
-No privilege on table/view, but can know #rows / underlying table's name
-connect root,localhost,root,,test;
-connection root;
-create database mysqltest1;
-create table mysqltest1.t1 (i int);
-create table mysqltest1.t2 (j int);
-create table mysqltest1.t3 (k int, secret int);
-create user alice@localhost;
-create user bob@localhost;
-create user cecil@localhost;
-create user dan@localhost;
-create user eugene@localhost;
-create user fiona@localhost;
-create user greg@localhost;
-create user han@localhost;
-create user inga@localhost;
-create user jamie@localhost;
-create user karl@localhost;
-create user lena@localhost;
-create user mhairi@localhost;
-create user noam@localhost;
-create user olga@localhost;
-create user pjotr@localhost;
-create user quintessa@localhost;
-grant all privileges on mysqltest1.* to alice@localhost with grant option;
-... as alice
-connect test11765687,localhost,alice,,mysqltest1;
-connection test11765687;
-create view v1 as select * from t1;
-create view v2 as select * from v1, t2;
-create view v3 as select k from t3;
-grant select on mysqltest1.v1 to bob@localhost;
-grant show view on mysqltest1.v1 to cecil@localhost;
-grant select, show view on mysqltest1.v1 to dan@localhost;
-grant select on mysqltest1.t1 to dan@localhost;
-grant select on mysqltest1.* to eugene@localhost;
-grant select, show view on mysqltest1.v2 to fiona@localhost;
-grant select, show view on mysqltest1.v2 to greg@localhost;
-grant show view on mysqltest1.v1 to greg@localhost;
-grant select(k) on mysqltest1.t3 to han@localhost;
-grant select, show view on mysqltest1.v3 to han@localhost;
-grant select on mysqltest1.t1 to inga@localhost;
-grant select on mysqltest1.t2 to inga@localhost;
-grant select on mysqltest1.v1 to inga@localhost;
-grant select, show view on mysqltest1.v2 to inga@localhost;
-grant select on mysqltest1.t1 to jamie@localhost;
-grant select on mysqltest1.t2 to jamie@localhost;
-grant show view on mysqltest1.v1 to jamie@localhost;
-grant select, show view on mysqltest1.v2 to jamie@localhost;
-grant select on mysqltest1.t1 to karl@localhost;
-grant select on mysqltest1.t2 to karl@localhost;
-grant select, show view on mysqltest1.v1 to karl@localhost;
-grant select on mysqltest1.v2 to karl@localhost;
-grant select on mysqltest1.t1 to lena@localhost;
-grant select on mysqltest1.t2 to lena@localhost;
-grant select, show view on mysqltest1.v1 to lena@localhost;
-grant show view on mysqltest1.v2 to lena@localhost;
-grant select on mysqltest1.t1 to mhairi@localhost;
-grant select on mysqltest1.t2 to mhairi@localhost;
-grant select, show view on mysqltest1.v1 to mhairi@localhost;
-grant select, show view on mysqltest1.v2 to mhairi@localhost;
-grant select on mysqltest1.t1 to noam@localhost;
-grant select, show view on mysqltest1.v1 to noam@localhost;
-grant select, show view on mysqltest1.v2 to noam@localhost;
-grant select on mysqltest1.t2 to olga@localhost;
-grant select, show view on mysqltest1.v1 to olga@localhost;
-grant select, show view on mysqltest1.v2 to olga@localhost;
-grant select on mysqltest1.t1 to pjotr@localhost;
-grant select on mysqltest1.t2 to pjotr@localhost;
-grant select, show view on mysqltest1.v2 to pjotr@localhost;
-grant select, show view on mysqltest1.v1 to quintessa@localhost;
-disconnect test11765687;
-... as bob
-connect test11765687,localhost,bob,,mysqltest1;
-connection test11765687;
-select * from v1;
-i
-explain select * from v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-disconnect test11765687;
-... as cecil
-connect test11765687,localhost,cecil,,mysqltest1;
-connection test11765687;
-select * from v1;
-ERROR 42000: SELECT command denied to user 'cecil'@'localhost' for table 'v1'
-explain select * from v1;
-ERROR 42000: SELECT command denied to user 'cecil'@'localhost' for table 'v1'
-disconnect test11765687;
-... as dan
-connect test11765687,localhost,dan,,mysqltest1;
-connection test11765687;
-select * from v1;
-i
-explain select * from v1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 Const row not found
-disconnect test11765687;
-... as eugene
-connect test11765687,localhost,eugene,,mysqltest1;
-connection test11765687;
-select * from v1;
-i
-explain select * from v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-disconnect test11765687;
-... as fiona
-connect test11765687,localhost,fiona,,mysqltest1;
-connection test11765687;
-select * from v2;
-i j
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`alice`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `v1`.`i` AS `i`,`t2`.`j` AS `j` from (`v1` join `t2`) latin1 latin1_swedish_ci
-explain select * from t1;
-ERROR 42000: SELECT command denied to user 'fiona'@'localhost' for table 't1'
-explain select * from v1;
-ERROR 42000: SELECT command denied to user 'fiona'@'localhost' for table 'v1'
-explain select * from t2;
-ERROR 42000: SELECT command denied to user 'fiona'@'localhost' for table 't2'
-explain select * from v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-disconnect test11765687;
-... as greg
-connect test11765687,localhost,greg,,mysqltest1;
-connection test11765687;
-select * from v2;
-i j
-explain select * from v1;
-ERROR 42000: SELECT command denied to user 'greg'@'localhost' for table 'v1'
-explain select * from v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-disconnect test11765687;
-... as han
-connect test11765687,localhost,han,,mysqltest1;
-connection test11765687;
-select * from t3;
-ERROR 42000: SELECT command denied to user 'han'@'localhost' for table 't3'
-explain select * from t3;
-ERROR 42000: SELECT command denied to user 'han'@'localhost' for table 't3'
-select k from t3;
-k
-explain select k from t3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 system NULL NULL NULL NULL 0 Const row not found
-select * from v3;
-k
-explain select * from v3;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 system NULL NULL NULL NULL 0 Const row not found
-disconnect test11765687;
-... as inga
-connect test11765687,localhost,inga,,mysqltest1;
-connection test11765687;
-select * from v2;
-i j
-explain select * from v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-disconnect test11765687;
-... as jamie
-connect test11765687,localhost,jamie,,mysqltest1;
-connection test11765687;
-select * from v2;
-i j
-explain select * from v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-disconnect test11765687;
-... as karl
-connect test11765687,localhost,karl,,mysqltest1;
-connection test11765687;
-select * from v2;
-i j
-explain select * from v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-disconnect test11765687;
-... as lena
-connect test11765687,localhost,lena,,mysqltest1;
-connection test11765687;
-select * from v2;
-ERROR 42000: SELECT command denied to user 'lena'@'localhost' for table 'v2'
-explain select * from v2;
-ERROR 42000: SELECT command denied to user 'lena'@'localhost' for table 'v2'
-disconnect test11765687;
-... as mhairi
-connect test11765687,localhost,mhairi,,mysqltest1;
-connection test11765687;
-select * from v2;
-i j
-explain select * from v2;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 system NULL NULL NULL NULL 0 Const row not found
-1 SIMPLE t2 system NULL NULL NULL NULL 0 Const row not found
-disconnect test11765687;
-... as noam
-connect test11765687,localhost,noam,,mysqltest1;
-connection test11765687;
-select * from v2;
-i j
-explain select * from v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-disconnect test11765687;
-... as olga
-connect test11765687,localhost,olga,,mysqltest1;
-connection test11765687;
-select * from v2;
-i j
-explain select * from v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-disconnect test11765687;
-... as pjotr
-connect test11765687,localhost,pjotr,,mysqltest1;
-connection test11765687;
-select * from v2;
-i j
-explain select * from v2;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-disconnect test11765687;
-... as quintessa
-connect test11765687,localhost,quintessa,,mysqltest1;
-connection test11765687;
-select * from v1;
-i
-explain select * from v1;
-ERROR HY000: ANALYZE/EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
-disconnect test11765687;
-... as root again at last: clean-up time!
-connection root;
-drop user alice@localhost;
-drop user bob@localhost;
-drop user cecil@localhost;
-drop user dan@localhost;
-drop user eugene@localhost;
-drop user fiona@localhost;
-drop user greg@localhost;
-drop user han@localhost;
-drop user inga@localhost;
-drop user jamie@localhost;
-drop user karl@localhost;
-drop user lena@localhost;
-drop user mhairi@localhost;
-drop user noam@localhost;
-drop user olga@localhost;
-drop user pjotr@localhost;
-drop user quintessa@localhost;
-drop database mysqltest1;
-disconnect root;
-connection default;
-select * from information_schema.table_privileges;
-GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
-End of 5.0 tests.
-connection default;
-DROP VIEW IF EXISTS v1;
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1 (i INT);
-CREATE VIEW v1 AS SELECT * FROM t1;
-ALTER VIEW v1 AS SELECT * FROM t1;
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i` from `t1` latin1 latin1_swedish_ci
-ALTER DEFINER=no_such@user_1 VIEW v1 AS SELECT * FROM t1;
-Warnings:
-Note 1449 The user specified as a definer ('no_such'@'user_1') does not exist
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`no_such`@`user_1` SQL SECURITY DEFINER VIEW `v1` AS select `test`.`t1`.`i` AS `i` from `t1` latin1 latin1_swedish_ci
-Warnings:
-Note 1449 The user specified as a definer ('no_such'@'user_1') does not exist
-ALTER ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1;
-Warnings:
-Note 1449 The user specified as a definer ('no_such'@'user_1') does not exist
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=MERGE DEFINER=`no_such`@`user_1` SQL SECURITY DEFINER VIEW `v1` AS select `test`.`t1`.`i` AS `i` from `t1` latin1 latin1_swedish_ci
-Warnings:
-Note 1449 The user specified as a definer ('no_such'@'user_1') does not exist
-ALTER ALGORITHM=TEMPTABLE DEFINER=no_such@user_2 VIEW v1 AS SELECT * FROM t1;
-Warnings:
-Note 1449 The user specified as a definer ('no_such'@'user_2') does not exist
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=TEMPTABLE DEFINER=`no_such`@`user_2` SQL SECURITY DEFINER VIEW `v1` AS select `test`.`t1`.`i` AS `i` from `t1` latin1 latin1_swedish_ci
-Warnings:
-Note 1449 The user specified as a definer ('no_such'@'user_2') does not exist
-DROP VIEW v1;
-DROP TABLE t1;
-CREATE USER mysqluser1@localhost;
-CREATE DATABASE mysqltest1;
-USE mysqltest1;
-CREATE TABLE t1 ( a INT );
-CREATE TABLE t2 ( b INT );
-INSERT INTO t1 VALUES (1), (2);
-INSERT INTO t2 VALUES (1), (2);
-GRANT CREATE VIEW ON mysqltest1.* TO mysqluser1@localhost;
-GRANT SELECT ON t1 TO mysqluser1@localhost;
-GRANT INSERT ON t2 TO mysqluser1@localhost;
-connect connection1, localhost, mysqluser1, , mysqltest1;
-This would lead to failed assertion.
-CREATE VIEW v1 AS SELECT a, b FROM t1, t2;
-SELECT * FROM v1;
-ERROR 42000: SELECT command denied to user 'mysqluser1'@'localhost' for table 'v1'
-SELECT b FROM v1;
-ERROR 42000: SELECT command denied to user 'mysqluser1'@'localhost' for table 'v1'
-disconnect connection1;
-connection default;
-DROP TABLE t1, t2;
-DROP VIEW v1;
-DROP DATABASE mysqltest1;
-DROP USER mysqluser1@localhost;
-USE test;
-End of 5.1 tests.
-CREATE USER mysqluser1@localhost;
-CREATE DATABASE mysqltest1;
-USE mysqltest1;
-CREATE TABLE t1 ( a INT, b INT );
-CREATE TABLE t2 ( a INT, b INT );
-CREATE VIEW v1 AS SELECT a, b FROM t1;
-GRANT SELECT( a ) ON v1 TO mysqluser1@localhost;
-GRANT UPDATE( b ) ON t2 TO mysqluser1@localhost;
-connect connection1, localhost, mysqluser1, , test;
-SELECT * FROM mysqltest1.v1;
-ERROR 42000: SELECT command denied to user 'mysqluser1'@'localhost' for table 'v1'
-CREATE VIEW v1 AS SELECT * FROM mysqltest1.t2;
-ERROR 42000: ANY command denied to user 'mysqluser1'@'localhost' for table 't2'
-disconnect connection1;
-connection default;
-DROP TABLE t1, t2;
-DROP VIEW v1;
-DROP DATABASE mysqltest1;
-DROP USER mysqluser1@localhost;
-CREATE USER mysqluser1@localhost;
-CREATE DATABASE mysqltest1;
-USE mysqltest1;
-CREATE VIEW v1 AS SELECT * FROM information_schema.tables LIMIT 1;
-CREATE ALGORITHM = TEMPTABLE VIEW v2 AS SELECT 1 AS A;
-CREATE VIEW test.v3 AS SELECT 1 AS a;
-connection default;
-GRANT SELECT ON mysqltest1.* to mysqluser1@localhost;
-GRANT ALL ON test.* TO mysqluser1@localhost;
-connect connection1, localhost, mysqluser1, , test;
-PREPARE stmt_v1 FROM "SELECT * FROM mysqltest1.v1";
-PREPARE stmt_v2 FROM "SELECT * FROM mysqltest1.v2";
-connection default;
-REVOKE SELECT ON mysqltest1.* FROM mysqluser1@localhost;
-connection connection1;
-EXECUTE stmt_v1;
-ERROR 42000: SELECT command denied to user 'mysqluser1'@'localhost' for table 'v1'
-EXECUTE stmt_v2;
-ERROR 42000: SELECT command denied to user 'mysqluser1'@'localhost' for table 'v2'
-disconnect connection1;
-connect connection2, localhost, mysqluser1,,;
-PREPARE stmt FROM "SELECT a FROM v3";
-EXECUTE stmt;
-a
-1
-disconnect connection2;
-connection default;
-DROP VIEW v1, v2;
-DROP DATABASE mysqltest1;
-DROP VIEW test.v3;
-DROP USER mysqluser1@localhost;
-USE test;
-#
-# Bug#35996: SELECT + SHOW VIEW should be enough to display view
-# definition
-#
-CREATE USER mysqluser1@localhost;
-CREATE DATABASE mysqltest1;
-CREATE DATABASE mysqltest2;
-GRANT USAGE, SELECT, CREATE VIEW, SHOW VIEW
-ON mysqltest2.* TO mysqluser1@localhost;
-USE mysqltest1;
-CREATE TABLE t1( a INT );
-CREATE TABLE t2( a INT, b INT );
-CREATE FUNCTION f1() RETURNS INT RETURN 1;
-CREATE VIEW v1 AS SELECT 1 AS a;
-CREATE VIEW v2 AS SELECT 1 AS a, 2 AS b;
-GRANT SELECT ON TABLE t1 TO mysqluser1@localhost;
-GRANT SELECT (a, b) ON TABLE t2 TO mysqluser1@localhost;
-GRANT EXECUTE ON FUNCTION f1 TO mysqluser1@localhost;
-GRANT SELECT ON TABLE v1 TO mysqluser1@localhost;
-GRANT SELECT (a, b) ON TABLE v2 TO mysqluser1@localhost;
-CREATE VIEW v_t1 AS SELECT * FROM t1;
-CREATE VIEW v_t2 AS SELECT * FROM t2;
-CREATE VIEW v_f1 AS SELECT f1() AS a;
-CREATE VIEW v_v1 AS SELECT * FROM v1;
-CREATE VIEW v_v2 AS SELECT * FROM v2;
-GRANT SELECT, SHOW VIEW ON v_t1 TO mysqluser1@localhost;
-GRANT SELECT, SHOW VIEW ON v_t2 TO mysqluser1@localhost;
-GRANT SELECT, SHOW VIEW ON v_f1 TO mysqluser1@localhost;
-GRANT SELECT, SHOW VIEW ON v_v1 TO mysqluser1@localhost;
-GRANT SELECT, SHOW VIEW ON v_v2 TO mysqluser1@localhost;
-connect connection1, localhost, mysqluser1,, mysqltest2;
-CREATE VIEW v_mysqluser1_t1 AS SELECT * FROM mysqltest1.t1;
-CREATE VIEW v_mysqluser1_t2 AS SELECT * FROM mysqltest1.t2;
-CREATE VIEW v_mysqluser1_f1 AS SELECT mysqltest1.f1() AS a;
-CREATE VIEW v_mysqluser1_v1 AS SELECT * FROM mysqltest1.v1;
-CREATE VIEW v_mysqluser1_v2 AS SELECT * FROM mysqltest1.v2;
-SHOW CREATE VIEW mysqltest1.v_t1;
-View Create View character_set_client collation_connection
-v_t1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest1`.`v_t1` AS select `mysqltest1`.`t1`.`a` AS `a` from `mysqltest1`.`t1` latin1 latin1_swedish_ci
-SHOW CREATE VIEW mysqltest1.v_t2;
-View Create View character_set_client collation_connection
-v_t2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest1`.`v_t2` AS select `mysqltest1`.`t2`.`a` AS `a`,`mysqltest1`.`t2`.`b` AS `b` from `mysqltest1`.`t2` latin1 latin1_swedish_ci
-SHOW CREATE VIEW mysqltest1.v_f1;
-View Create View character_set_client collation_connection
-v_f1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest1`.`v_f1` AS select `f1`() AS `a` latin1 latin1_swedish_ci
-SHOW CREATE VIEW mysqltest1.v_v1;
-View Create View character_set_client collation_connection
-v_v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest1`.`v_v1` AS select `v1`.`a` AS `a` from `mysqltest1`.`v1` latin1 latin1_swedish_ci
-SHOW CREATE VIEW mysqltest1.v_v2;
-View Create View character_set_client collation_connection
-v_v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest1`.`v_v2` AS select `v2`.`a` AS `a`,`v2`.`b` AS `b` from `mysqltest1`.`v2` latin1 latin1_swedish_ci
-SHOW CREATE VIEW v_mysqluser1_t1;
-View Create View character_set_client collation_connection
-v_mysqluser1_t1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_t1` AS select `mysqltest1`.`t1`.`a` AS `a` from `mysqltest1`.`t1` latin1 latin1_swedish_ci
-SHOW CREATE VIEW v_mysqluser1_t2;
-View Create View character_set_client collation_connection
-v_mysqluser1_t2 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_t2` AS select `mysqltest1`.`t2`.`a` AS `a`,`mysqltest1`.`t2`.`b` AS `b` from `mysqltest1`.`t2` latin1 latin1_swedish_ci
-SHOW CREATE VIEW v_mysqluser1_f1;
-View Create View character_set_client collation_connection
-v_mysqluser1_f1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_f1` AS select `mysqltest1`.`f1`() AS `a` latin1 latin1_swedish_ci
-SHOW CREATE VIEW v_mysqluser1_v1;
-View Create View character_set_client collation_connection
-v_mysqluser1_v1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_v1` AS select `v1`.`a` AS `a` from `mysqltest1`.`v1` latin1 latin1_swedish_ci
-SHOW CREATE VIEW v_mysqluser1_v2;
-View Create View character_set_client collation_connection
-v_mysqluser1_v2 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_v2` AS select `v2`.`a` AS `a`,`v2`.`b` AS `b` from `mysqltest1`.`v2` latin1 latin1_swedish_ci
-connection default;
-REVOKE SELECT ON TABLE t1 FROM mysqluser1@localhost;
-REVOKE SELECT (a) ON TABLE t2 FROM mysqluser1@localhost;
-REVOKE EXECUTE ON FUNCTION f1 FROM mysqluser1@localhost;
-REVOKE SELECT ON TABLE v1 FROM mysqluser1@localhost;
-connection connection1;
-SHOW CREATE VIEW mysqltest1.v_t1;
-View Create View character_set_client collation_connection
-v_t1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest1`.`v_t1` AS select `mysqltest1`.`t1`.`a` AS `a` from `mysqltest1`.`t1` latin1 latin1_swedish_ci
-SHOW CREATE VIEW mysqltest1.v_t2;
-View Create View character_set_client collation_connection
-v_t2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest1`.`v_t2` AS select `mysqltest1`.`t2`.`a` AS `a`,`mysqltest1`.`t2`.`b` AS `b` from `mysqltest1`.`t2` latin1 latin1_swedish_ci
-SHOW CREATE VIEW mysqltest1.v_f1;
-View Create View character_set_client collation_connection
-v_f1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest1`.`v_f1` AS select `f1`() AS `a` latin1 latin1_swedish_ci
-SHOW CREATE VIEW mysqltest1.v_v1;
-View Create View character_set_client collation_connection
-v_v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest1`.`v_v1` AS select `v1`.`a` AS `a` from `mysqltest1`.`v1` latin1 latin1_swedish_ci
-SHOW CREATE VIEW mysqltest1.v_v2;
-View Create View character_set_client collation_connection
-v_v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest1`.`v_v2` AS select `v2`.`a` AS `a`,`v2`.`b` AS `b` from `mysqltest1`.`v2` latin1 latin1_swedish_ci
-SHOW CREATE VIEW v_mysqluser1_t1;
-View Create View character_set_client collation_connection
-v_mysqluser1_t1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_t1` AS select `mysqltest1`.`t1`.`a` AS `a` from `mysqltest1`.`t1` latin1 latin1_swedish_ci
-SHOW CREATE VIEW v_mysqluser1_t2;
-View Create View character_set_client collation_connection
-v_mysqluser1_t2 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_t2` AS select `mysqltest1`.`t2`.`a` AS `a`,`mysqltest1`.`t2`.`b` AS `b` from `mysqltest1`.`t2` latin1 latin1_swedish_ci
-SHOW CREATE VIEW v_mysqluser1_f1;
-View Create View character_set_client collation_connection
-v_mysqluser1_f1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_f1` AS select `mysqltest1`.`f1`() AS `a` latin1 latin1_swedish_ci
-SHOW CREATE VIEW v_mysqluser1_v1;
-View Create View character_set_client collation_connection
-v_mysqluser1_v1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_v1` AS select `v1`.`a` AS `a` from `mysqltest1`.`v1` latin1 latin1_swedish_ci
-SHOW CREATE VIEW v_mysqluser1_v2;
-View Create View character_set_client collation_connection
-v_mysqluser1_v2 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_v2` AS select `v2`.`a` AS `a`,`v2`.`b` AS `b` from `mysqltest1`.`v2` latin1 latin1_swedish_ci
-connection default;
-# Testing the case when the views reference missing objects.
-# Obviously, there are no privileges to check for, so we
-# need only each object type once.
-DROP TABLE t1;
-DROP FUNCTION f1;
-DROP VIEW v1;
-connection connection1;
-SHOW CREATE VIEW mysqltest1.v_t1;
-View Create View character_set_client collation_connection
-v_t1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest1`.`v_t1` AS select `mysqltest1`.`t1`.`a` AS `a` from `mysqltest1`.`t1` latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'mysqltest1.v_t1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-SHOW CREATE VIEW mysqltest1.v_f1;
-View Create View character_set_client collation_connection
-v_f1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest1`.`v_f1` AS select `f1`() AS `a` latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'mysqltest1.v_f1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-SHOW CREATE VIEW mysqltest1.v_v1;
-View Create View character_set_client collation_connection
-v_v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest1`.`v_v1` AS select `v1`.`a` AS `a` from `mysqltest1`.`v1` latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'mysqltest1.v_v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-SHOW CREATE VIEW v_mysqluser1_t1;
-View Create View character_set_client collation_connection
-v_mysqluser1_t1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_t1` AS select `mysqltest1`.`t1`.`a` AS `a` from `mysqltest1`.`t1` latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'mysqltest2.v_mysqluser1_t1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-SHOW CREATE VIEW v_mysqluser1_f1;
-View Create View character_set_client collation_connection
-v_mysqluser1_f1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_f1` AS select `mysqltest1`.`f1`() AS `a` latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'mysqltest2.v_mysqluser1_f1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-SHOW CREATE VIEW v_mysqluser1_v1;
-View Create View character_set_client collation_connection
-v_mysqluser1_v1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_v1` AS select `v1`.`a` AS `a` from `mysqltest1`.`v1` latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'mysqltest2.v_mysqluser1_v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-connection default;
-REVOKE SHOW VIEW ON v_t1 FROM mysqluser1@localhost;
-REVOKE SHOW VIEW ON v_f1 FROM mysqluser1@localhost;
-REVOKE SHOW VIEW ON v_v1 FROM mysqluser1@localhost;
-connection connection1;
-SHOW CREATE VIEW mysqltest1.v_t1;
-ERROR 42000: SHOW VIEW command denied to user 'mysqluser1'@'localhost' for table 'v_t1'
-SHOW CREATE VIEW mysqltest1.v_f1;
-ERROR 42000: SHOW VIEW command denied to user 'mysqluser1'@'localhost' for table 'v_f1'
-SHOW CREATE VIEW mysqltest1.v_v1;
-ERROR 42000: SHOW VIEW command denied to user 'mysqluser1'@'localhost' for table 'v_v1'
-SHOW CREATE VIEW v_mysqluser1_t1;
-View Create View character_set_client collation_connection
-v_mysqluser1_t1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_t1` AS select `mysqltest1`.`t1`.`a` AS `a` from `mysqltest1`.`t1` latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'mysqltest2.v_mysqluser1_t1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-SHOW CREATE VIEW v_mysqluser1_f1;
-View Create View character_set_client collation_connection
-v_mysqluser1_f1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_f1` AS select `mysqltest1`.`f1`() AS `a` latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'mysqltest2.v_mysqluser1_f1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-SHOW CREATE VIEW v_mysqluser1_v1;
-View Create View character_set_client collation_connection
-v_mysqluser1_v1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqluser1`@`localhost` SQL SECURITY DEFINER VIEW `v_mysqluser1_v1` AS select `v1`.`a` AS `a` from `mysqltest1`.`v1` latin1 latin1_swedish_ci
-Warnings:
-Warning 1356 View 'mysqltest2.v_mysqluser1_v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-disconnect connection1;
-connection default;
-DROP USER mysqluser1@localhost;
-DROP DATABASE mysqltest1;
-DROP DATABASE mysqltest2;
-USE test;
-CREATE TABLE t1( a INT );
-CREATE DEFINER = no_such_user@no_such_host VIEW v1 AS SELECT * FROM t1;
-Warnings:
-Note 1449 The user specified as a definer ('no_such_user'@'no_such_host') does not exist
-SHOW CREATE VIEW v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`no_such_user`@`no_such_host` SQL SECURITY DEFINER VIEW `v1` AS select `test`.`t1`.`a` AS `a` from `t1` latin1 latin1_swedish_ci
-Warnings:
-Note 1449 The user specified as a definer ('no_such_user'@'no_such_host') does not exist
-DROP TABLE t1;
-DROP VIEW v1;
-#
-# Bug #46019: ERROR 1356 When selecting from within another
-# view that has Group By
-#
-CREATE DATABASE mysqltest1;
-USE mysqltest1;
-CREATE TABLE t1 (a INT);
-CREATE SQL SECURITY INVOKER VIEW v1 AS SELECT a FROM t1 GROUP BY a;
-CREATE SQL SECURITY INVOKER VIEW v2 AS SELECT a FROM v1;
-CREATE USER mysqluser1;
-GRANT SELECT ON TABLE t1 TO mysqluser1;
-GRANT SELECT, SHOW VIEW ON TABLE v1 TO mysqluser1;
-GRANT SELECT, SHOW VIEW ON TABLE v2 TO mysqluser1;
-connect mysqluser1, localhost, mysqluser1,,mysqltest1;
-SELECT a FROM v1;
-a
-SELECT a FROM v2;
-a
-connection default;
-disconnect mysqluser1;
-DROP USER mysqluser1;
-DROP DATABASE mysqltest1;
-USE test;
-#
-# Bug#47734: Assertion failed: ! is_set() when locking a view with non-existing definer
-#
-DROP VIEW IF EXISTS v1;
-CREATE DEFINER=`unknown`@`unknown` SQL SECURITY DEFINER VIEW v1 AS SELECT 1;
-Warnings:
-Note 1449 The user specified as a definer ('unknown'@'unknown') does not exist
-LOCK TABLES v1 READ;
-ERROR HY000: The user specified as a definer ('unknown'@'unknown') does not exist
-DROP VIEW v1;
-#
-# Bug #58499 "DEFINER-security view selecting from INVOKER-security view
-# access check wrong".
-#
-# Check that we correctly handle privileges for various combinations
-# of INVOKER and DEFINER-security views using each other.
-DROP DATABASE IF EXISTS mysqltest1;
-CREATE DATABASE mysqltest1;
-USE mysqltest1;
-CREATE TABLE t1 (i INT);
-CREATE TABLE t2 (j INT);
-INSERT INTO t1 VALUES (1);
-INSERT INTO t2 VALUES (2);
-#
-# 1) DEFINER-security view uses INVOKER-security view (covers
-# scenario originally described in the bug report).
-CREATE SQL SECURITY INVOKER VIEW v1_uses_t1 AS SELECT * FROM t1;
-CREATE SQL SECURITY INVOKER VIEW v1_uses_t2 AS SELECT * FROM t2;
-CREATE USER 'mysqluser1'@'%';
-GRANT CREATE VIEW ON mysqltest1.* TO 'mysqluser1'@'%';
-GRANT SELECT ON t1 TO 'mysqluser1'@'%';
-# To be able create 'v2_uses_t2' we also need select on t2.
-GRANT SELECT ON t2 TO 'mysqluser1'@'%';
-GRANT SELECT ON v1_uses_t1 TO 'mysqluser1'@'%';
-GRANT SELECT ON v1_uses_t2 TO 'mysqluser1'@'%';
-connect mysqluser1, localhost, mysqluser1,,mysqltest1;
-CREATE SQL SECURITY DEFINER VIEW v2_uses_t1 AS SELECT * FROM v1_uses_t1;
-CREATE SQL SECURITY DEFINER VIEW v2_uses_t2 AS SELECT * FROM v1_uses_t2;
-connection default;
-CREATE USER 'mysqluser2'@'%';
-GRANT SELECT ON v2_uses_t1 TO 'mysqluser2'@'%';
-GRANT SELECT ON v2_uses_t2 TO 'mysqluser2'@'%';
-GRANT SELECT ON t2 TO 'mysqluser2'@'%';
-GRANT CREATE VIEW ON mysqltest1.* TO 'mysqluser2'@'%';
-# Make 'mysqluser1' unable to access t2.
-REVOKE SELECT ON t2 FROM 'mysqluser1'@'%';
-connect mysqluser2, localhost, mysqluser2,,mysqltest1;
-# The below statement should succeed thanks to suid nature of v2_uses_t1.
-SELECT * FROM v2_uses_t1;
-i
-1
-# The below statement should fail due to suid nature of v2_uses_t2.
-SELECT * FROM v2_uses_t2;
-ERROR HY000: View 'mysqltest1.v2_uses_t2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-#
-# 2) INVOKER-security view uses INVOKER-security view.
-connection default;
-DROP VIEW v2_uses_t1, v2_uses_t2;
-CREATE SQL SECURITY INVOKER VIEW v2_uses_t1 AS SELECT * FROM v1_uses_t1;
-CREATE SQL SECURITY INVOKER VIEW v2_uses_t2 AS SELECT * FROM v1_uses_t2;
-GRANT SELECT ON v2_uses_t1 TO 'mysqluser1'@'%';
-GRANT SELECT ON v2_uses_t2 TO 'mysqluser1'@'%';
-GRANT SELECT ON v1_uses_t1 TO 'mysqluser2'@'%';
-GRANT SELECT ON v1_uses_t2 TO 'mysqluser2'@'%';
-connection mysqluser1;
-# For both versions of 'v2' 'mysqluser1' privileges should be used.
-SELECT * FROM v2_uses_t1;
-i
-1
-SELECT * FROM v2_uses_t2;
-ERROR HY000: View 'mysqltest1.v2_uses_t2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-connection mysqluser2;
-# And now for both versions of 'v2' 'mysqluser2' privileges should
-# be used.
-SELECT * FROM v2_uses_t1;
-ERROR HY000: View 'mysqltest1.v2_uses_t1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-SELECT * FROM v2_uses_t2;
-j
-2
-#
-# 3) INVOKER-security view uses DEFINER-security view.
-connection default;
-DROP VIEW v1_uses_t1, v1_uses_t2;
-# To be able create 'v1_uses_t2' we also need select on t2.
-GRANT SELECT ON t2 TO 'mysqluser1'@'%';
-connection mysqluser1;
-CREATE SQL SECURITY DEFINER VIEW v1_uses_t1 AS SELECT * FROM t1;
-CREATE SQL SECURITY DEFINER VIEW v1_uses_t2 AS SELECT * FROM t2;
-connection default;
-# Make 'mysqluser1' unable to access t2.
-REVOKE SELECT ON t2 FROM 'mysqluser1'@'%';
-connection mysqluser2;
-# Due to suid nature of v1_uses_t1 and v1_uses_t2 the first
-# select should succeed and the second select should fail.
-SELECT * FROM v2_uses_t1;
-i
-1
-SELECT * FROM v2_uses_t2;
-ERROR HY000: View 'mysqltest1.v2_uses_t2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-#
-# 4) DEFINER-security view uses DEFINER-security view.
-connection default;
-DROP VIEW v2_uses_t1, v2_uses_t2;
-# To be able create 'v2_uses_t2' we also need select on t2.
-GRANT SELECT ON t2 TO 'mysqluser1'@'%';
-connection mysqluser2;
-CREATE SQL SECURITY DEFINER VIEW v2_uses_t1 AS SELECT * FROM v1_uses_t1;
-CREATE SQL SECURITY DEFINER VIEW v2_uses_t2 AS SELECT * FROM v1_uses_t2;
-connection default;
-# Make 'mysqluser1' unable to access t2.
-REVOKE SELECT ON t2 FROM 'mysqluser1'@'%';
-connection mysqluser2;
-# Again privileges of creator of innermost views should apply.
-SELECT * FROM v2_uses_t1;
-i
-1
-SELECT * FROM v2_uses_t2;
-ERROR HY000: View 'mysqltest1.v2_uses_t2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-disconnect mysqluser1;
-disconnect mysqluser2;
-connection default;
-USE test;
-DROP DATABASE mysqltest1;
-DROP USER 'mysqluser1'@'%';
-DROP USER 'mysqluser2'@'%';
-#
-# Test for bug #11766767 - "59957: VIEW USING MERGE PERMISSIONS
-# IN MULTI-TABLE UPDATE".
-#
-drop database if exists mysqltest1;
-drop database if exists mysqltest2;
-#
-# Prepare playground.
-create database mysqltest1;
-create database mysqltest2;
-create user user_11766767;
-grant select on mysqltest1.* to user_11766767;
-grant all on mysqltest2.* to user_11766767;
-use mysqltest1;
-create table t1 (id int primary key, val varchar(20));
-insert into t1 values (1, 'test1');
-create table t11 (id int primary key);
-insert into t11 values (1);
-create algorithm=temptable view v1_temp as select * from t1;
-create algorithm=merge view v1_merge as select * from t1;
-create algorithm=temptable view v11_temp as
-select t1.id as id, t1.val as val from t1, t11 where t1.id= t11.id;
-create algorithm=merge view v11_merge as
-select t1.id as id, t1.val as val from t1, t11 where t1.id= t11.id;
-use mysqltest2;
-create table t2 (id int primary key, val varchar(20));
-insert into t2 values (1, 'test2');
-create table t21 (id int primary key);
-insert into t21 values (1);
-create algorithm=temptable view v2_temp as select * from t2;
-create algorithm=merge view v2_merge as select * from t2;
-create algorithm=temptable view v21_temp as
-select t2.id as id, t2.val as val from t2, t21 where t2.id= t21.id;
-create algorithm=merge view v21_merge as
-select t2.id as id, t2.val as val from t2, t21 where t2.id= t21.id;
-create algorithm=temptable sql security invoker view v3_temp as
-select t1.id as id, t1.val as val from mysqltest1.t1 as t1, mysqltest1.t11 as t11
-where t1.id = t11.id;
-create algorithm=merge sql security invoker view v3_merge as
-select t1.id as id, t1.val as val from mysqltest1.t1 as t1, mysqltest1.t11 as t11
-where t1.id = t11.id;
-create sql security invoker view v31 as
-select t2.id as id, t2.val as val from mysqltest2.t2 as t2, mysqltest1.t11 as t11
-where t2.id = t11.id;
-create sql security invoker view v4 as
-select t2.id as id, t2.val as val from mysqltest2.t2 as t2, mysqltest1.v1_merge as v1
-where t2.id = v1.id;
-create sql security invoker view v41 as
-select v1.id as id, v1.val as val from mysqltest2.t2 as t2, mysqltest1.v1_merge as v1
-where t2.id = v1.id;
-create sql security invoker view v42 as
-select v2.id as id, v2.val as val from mysqltest2.t2 as t2, mysqltest2.v2_merge as v2
-where t2.id = v2.id;
-connect conn_11766767, localhost, user_11766767,,;
-#
-# A) Check how we handle privilege checking in multi-update for
-# directly used views.
-#
-# A.1) Originally reported problem, view is used in read-only mode.
-# This should work with only SELECT privilege for both mergeable
-# and temptable algorithms.
-update mysqltest2.t2 as t2, mysqltest1.v1_merge as v1 set t2.val= 'test3'
- where t2.id= v1.id;
-update mysqltest2.t2 as t2, mysqltest1.v1_temp as v1 set t2.val= 'test4'
- where t2.id= v1.id;
-#
-# A.2) If view is updated an UPDATE privilege on it is required.
-# Temptable views can't be updated.
-update mysqltest2.t2 as t2, mysqltest1.v1_merge as v1 set v1.val= 'test5'
- where t2.id= v1.id;
-ERROR 42000: UPDATE command denied to user 'user_11766767'@'localhost' for table 'v1_merge'
-update mysqltest1.t1 as t1, mysqltest2.v2_merge as v2 set v2.val= 'test6'
- where t1.id= v2.id;
-#
-# Note that the below error is OK even though user lacks UPDATE
-# privilege on v1_temp since he/she still has SELECT privilege on
-# this view.
-update mysqltest2.t2 as t2, mysqltest1.v1_temp as v1 set v1.val= 'test7'
- where t2.id= v1.id;
-ERROR HY000: The target table v1 of the UPDATE is not updatable
-update mysqltest1.t1 as t1, mysqltest2.v2_temp as v2 set v2.val= 'test8'
- where t1.id= v2.id;
-ERROR HY000: The target table v2 of the UPDATE is not updatable
-#
-# A.3) This also works for correctly for multi-table views.
-# When usage is read-only SELECT is enough.
-update mysqltest2.t2 as t2, mysqltest1.v11_merge as v11 set t2.val= 'test9'
- where t2.id= v11.id;
-update mysqltest2.t2 as t2, mysqltest1.v11_temp as v11 set t2.val= 'test10'
- where t2.id= v11.id;
-# When one of view's tables is updated, UPDATE is required
-# on a view.
-update mysqltest2.t2 as t2, mysqltest1.v11_merge as v11 set v11.val= 'test11'
- where t2.id= v11.id;
-ERROR 42000: UPDATE command denied to user 'user_11766767'@'localhost' for table 'v11_merge'
-update mysqltest1.t1 as t1, mysqltest2.v21_merge as v21 set v21.val= 'test12'
- where t1.id= v21.id;
-# As before, temptable views are not updateable.
-update mysqltest2.t2 as t2, mysqltest1.v11_temp as v11 set v11.val= 'test13'
- where t2.id= v11.id;
-ERROR HY000: The target table v11 of the UPDATE is not updatable
-update mysqltest1.t1 as t1, mysqltest2.v21_temp as v21 set v21.val= 'test14'
- where t1.id= v21.id;
-ERROR HY000: The target table v21 of the UPDATE is not updatable
-#
-# B) Now check that correct privileges are required on underlying
-# tables. To simplify this part of test we will use SECURITY
-# INVOKER views in it.
-#
-# B.1) In case when view is used for read only it is enough to have
-# SELECT on its underlying tables.
-update mysqltest2.t2 as t2, mysqltest2.v3_merge as v3 set t2.val= 'test15'
- where t2.id= v3.id;
-update mysqltest2.t2 as t2, mysqltest2.v3_temp as v3 set t2.val= 'test16'
- where t2.id= v3.id;
-#
-# B.2) If view is updated, UPDATE privilege on the table being updated
-# is required (since we already checked that temptable views are
-# not updateable we don't test them here).
-update mysqltest2.t2 as t2, mysqltest2.v3_merge as v3 set v3.val= 'test17'
- where t2.id= v3.id;
-ERROR HY000: View 'mysqltest2.v3_merge' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-update mysqltest1.t11 as t11, mysqltest2.v31 as v31 set v31.val= 'test18'
- where t11.id= v31.id;
-#
-# C) Finally, check how we handle privilege checking in case when
-# view is used through another view. Again we will use SECURITY
-# INVOKER views for simplicity.
-#
-# C.1) As usual, when a view used by another view is going to be used
-# in read-only fashion, only SELECT privilege is necessary.
-update mysqltest1.t11 as t11, mysqltest2.v4 as v4 set v4.val= 'test19'
- where t11.id= v4.id;
-#
-# C.2) If one of underlying tables of the view is updated then
-# UPDATE on a view is necessary.
-update mysqltest1.t11 as t11, mysqltest2.v41 as v4 set v4.val= 'test20'
- where t11.id= v4.id;
-ERROR HY000: View 'mysqltest2.v41' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-update mysqltest1.t11 as t11, mysqltest2.v42 as v4 set v4.val= 'test20'
- where t11.id= v4.id;
-#
-# Clean-up.
-#
-disconnect conn_11766767;
-connection default;
-drop user user_11766767;
-drop database mysqltest1;
-drop database mysqltest2;
diff --git a/mysql-test/r/wait_timeout.result b/mysql-test/r/wait_timeout.result
deleted file mode 100644
index 8e5e5147f8b..00000000000
--- a/mysql-test/r/wait_timeout.result
+++ /dev/null
@@ -1,43 +0,0 @@
-SET @@global.wait_timeout= 2;
-disconnect default;
-connect wait_con,localhost,root,,test,,;
-connection wait_con;
-connect default,localhost,root,,test,,;
-connection default;
---disable_reconnect;
-SELECT 1;
-1
-1
-connection wait_con;
-connection default;
-SELECT 2;
-Got one of the listed errors
---enable_reconnect;
-SELECT 3;
-3
-3
-disconnect default;
-connection wait_con;
-connect con1,127.0.0.1,root,,test,$MASTER_MYPORT,;
---disable_reconnect;
-SELECT 1;
-1
-1
-connection wait_con;
-disconnect wait_con;
-connection con1;
-SELECT 2;
-Got one of the listed errors
---enable_reconnect;
-SELECT 3;
-3
-3
-SET @@global.wait_timeout= <start_value>;
-disconnect con1;
-connect default,localhost,root,,test,,;
-set global log_warnings=2;
-connect foo,localhost,root;
-set @@wait_timeout=1;
-connection default;
-FOUND 1 /Aborted.*Got timeout reading communication packets/ in mysqld.1.err
-set global log_warnings=@@log_warnings;
diff --git a/mysql-test/r/warnings.result b/mysql-test/r/warnings.result
deleted file mode 100644
index 7c7e049ff2d..00000000000
--- a/mysql-test/r/warnings.result
+++ /dev/null
@@ -1,372 +0,0 @@
-drop table if exists t1, t2;
-SET SQL_WARNINGS=1;
-create table t1 (a int);
-create table t1 (a int);
-ERROR 42S01: Table 't1' already exists
-show count(*) errors;
-@@session.error_count
-1
-show errors;
-Level Code Message
-Error 1050 Table 't1' already exists
-show warnings;
-Level Code Message
-Error 1050 Table 't1' already exists
-create table t2(a int) default charset qwerty;
-ERROR 42000: Unknown character set: 'qwerty'
-show count(*) errors;
-@@session.error_count
-1
-show errors;
-Level Code Message
-Error 1115 Unknown character set: 'qwerty'
-create table t (i);
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1
-show count(*) errors;
-@@session.error_count
-1
-show errors;
-Level Code Message
-Error 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1
-insert into t1 values (1);
-insert ignore into t1 values ("hej");
-Warnings:
-Warning 1366 Incorrect integer value: 'hej' for column 'a' at row 1
-insert ignore into t1 values ("hej"),("då");
-Warnings:
-Warning 1366 Incorrect integer value: 'hej' for column 'a' at row 1
-Warning 1366 Incorrect integer value: 'då' for column 'a' at row 2
-set SQL_WARNINGS=1;
-insert ignore into t1 values ("hej");
-Warnings:
-Warning 1366 Incorrect integer value: 'hej' for column 'a' at row 1
-insert ignore into t1 values ("hej"),("då");
-Warnings:
-Warning 1366 Incorrect integer value: 'hej' for column 'a' at row 1
-Warning 1366 Incorrect integer value: 'då' for column 'a' at row 2
-drop table t1;
-set SQL_WARNINGS=0;
-drop temporary table if exists not_exists;
-Warnings:
-Note 1051 Unknown table 'test.not_exists'
-drop table if exists not_exists_table;
-Warnings:
-Note 1051 Unknown table 'test.not_exists_table'
-show warnings limit 1;
-Level Code Message
-Note 1051 Unknown table 'test.not_exists_table'
-drop database if exists not_exists_db;
-Warnings:
-Note 1008 Can't drop database 'not_exists_db'; database doesn't exist
-show count(*) warnings;
-@@session.warning_count
-1
-create table t1(id int);
-create table if not exists t1(id int);
-Warnings:
-Note 1050 Table 't1' already exists
-select @@warning_count;
-@@warning_count
-1
-drop table t1;
-create table t1(a tinyint, b int not null, c date, d char(5));
-load data infile '../../std_data/warnings_loaddata.dat' into table t1 fields terminated by ',';
-Warnings:
-Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'b' at row 2
-Warning 1406 Data too long for column 'd' at row 3
-Warning 1265 Data truncated for column 'c' at row 4
-Warning 1261 Row 5 doesn't contain data for all columns
-Warning 1265 Data truncated for column 'b' at row 6
-Warning 1262 Row 7 was truncated; it contained more data than there were input columns
-Warning 1264 Out of range value for column 'a' at row 8
-select @@warning_count;
-@@warning_count
-7
-drop table t1;
-create table t1(a tinyint NOT NULL, b tinyint unsigned, c char(5));
-insert ignore into t1 values(NULL,100,'mysql'),(10,-1,'mysql ab'),(500,256,'open source'),(20,NULL,'test');
-Warnings:
-Warning 1048 Column 'a' cannot be null
-Warning 1264 Out of range value for column 'b' at row 2
-Warning 1265 Data truncated for column 'c' at row 2
-Warning 1264 Out of range value for column 'a' at row 3
-Warning 1264 Out of range value for column 'b' at row 3
-Warning 1265 Data truncated for column 'c' at row 3
-SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
-alter table t1 modify c char(4);
-Warnings:
-Warning 1265 Data truncated for column 'c' at row 1
-Warning 1265 Data truncated for column 'c' at row 2
-alter table t1 add d char(2);
-update ignore t1 set a=NULL where a=10;
-Warnings:
-Warning 1048 Column 'a' cannot be null
-update ignore t1 set c='mysql ab' where c='test';
-Warnings:
-Warning 1265 Data truncated for column 'c' at row 4
-update ignore t1 set d=c;
-Warnings:
-Warning 1265 Data truncated for column 'd' at row 1
-Warning 1265 Data truncated for column 'd' at row 2
-Warning 1265 Data truncated for column 'd' at row 3
-Warning 1265 Data truncated for column 'd' at row 4
-create table t2(a tinyint NOT NULL, b char(3));
-insert ignore into t2 select b,c from t1;
-Warnings:
-Warning 1265 Data truncated for column 'b' at row 1
-Warning 1265 Data truncated for column 'b' at row 2
-Warning 1265 Data truncated for column 'b' at row 3
-Warning 1048 Column 'a' cannot be null
-Warning 1265 Data truncated for column 'b' at row 4
-insert ignore into t2(b) values('mysqlab');
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-Warning 1265 Data truncated for column 'b' at row 1
-set sql_warnings=1;
-insert ignore into t2(b) values('mysqlab');
-Warnings:
-Warning 1364 Field 'a' doesn't have a default value
-Warning 1265 Data truncated for column 'b' at row 1
-set sql_warnings=0;
-drop table t1, t2;
-create table t1(a char(10));
-alter table t1 add b char;
-set max_error_count=10;
-update ignore t1 set b=a;
-Warnings:
-Warning 1265 Data truncated for column 'b' at row 1
-Warning 1265 Data truncated for column 'b' at row 2
-Warning 1265 Data truncated for column 'b' at row 3
-Warning 1265 Data truncated for column 'b' at row 4
-Warning 1265 Data truncated for column 'b' at row 5
-Warning 1265 Data truncated for column 'b' at row 6
-Warning 1265 Data truncated for column 'b' at row 7
-Warning 1265 Data truncated for column 'b' at row 8
-Warning 1265 Data truncated for column 'b' at row 9
-Warning 1265 Data truncated for column 'b' at row 10
-select @@warning_count;
-@@warning_count
-50
-set max_error_count=0;
-show variables like 'max_error_count';
-Variable_name Value
-max_error_count 0
-update ignore t1 set b='hi';
-Warnings:
-select @@warning_count;
-@@warning_count
-50
-show warnings;
-Level Code Message
-set max_error_count=65535;
-show variables like 'max_error_count';
-Variable_name Value
-max_error_count 65535
-set max_error_count=10;
-show variables like 'max_error_count';
-Variable_name Value
-max_error_count 10
-drop table t1;
-create table t1 (a int);
-insert into t1 (a) values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
-update ignore t1 set a='abc';
-Warnings:
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 1
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 2
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 3
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 4
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 5
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 6
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 7
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 8
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 9
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 10
-show warnings limit 2, 1;
-Level Code Message
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 3
-show warnings limit 0, 10;
-Level Code Message
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 1
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 2
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 3
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 4
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 5
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 6
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 7
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 8
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 9
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 10
-show warnings limit 9, 1;
-Level Code Message
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 10
-show warnings limit 10, 1;
-Level Code Message
-show warnings limit 9, 2;
-Level Code Message
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 10
-show warnings limit 0, 0;
-Level Code Message
-show warnings limit 1;
-Level Code Message
-Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 1
-show warnings limit 0;
-Level Code Message
-show warnings limit 1, 0;
-Level Code Message
-select * from t1 limit 0;
-a
-select * from t1 limit 1, 0;
-a
-select * from t1 limit 0, 0;
-a
-drop table t1;
-End of 4.1 tests
-CREATE TABLE t1( f1 CHAR(20) );
-CREATE TABLE t2( f1 CHAR(20), f2 CHAR(25) );
-CREATE TABLE t3( f1 CHAR(20), f2 CHAR(25), f3 DATE );
-INSERT INTO t1 VALUES ( 'a`' );
-INSERT INTO t2 VALUES ( 'a`', 'a`' );
-INSERT INTO t3 VALUES ( 'a`', 'a`', '1000-01-1' );
-DROP PROCEDURE IF EXISTS sp1;
-Warnings:
-Note 1305 PROCEDURE test.sp1 does not exist
-DROP PROCEDURE IF EXISTS sp2;
-Warnings:
-Note 1305 PROCEDURE test.sp2 does not exist
-DROP PROCEDURE IF EXISTS sp3;
-Warnings:
-Note 1305 PROCEDURE test.sp3 does not exist
-SET sql_mode = '';
-CREATE PROCEDURE sp1()
-BEGIN
-DECLARE x NUMERIC ZEROFILL;
-SELECT f1 INTO x FROM t1 LIMIT 1;
-END//
-CREATE PROCEDURE sp2()
-BEGIN
-DECLARE x NUMERIC ZEROFILL;
-SELECT f1 INTO x FROM t2 LIMIT 1;
-END//
-CREATE PROCEDURE sp3()
-BEGIN
-DECLARE x NUMERIC ZEROFILL;
-SELECT f1 INTO x FROM t3 LIMIT 1;
-END//
-CALL sp1();
-Warnings:
-Warning 1366 Incorrect decimal value: 'a`' for column 'x' at row 1
-CALL sp2();
-Warnings:
-Warning 1366 Incorrect decimal value: 'a`' for column 'x' at row 1
-CALL sp3();
-Warnings:
-Warning 1366 Incorrect decimal value: 'a`' for column 'x' at row 1
-SET sql_mode = DEFAULT;
-DROP PROCEDURE IF EXISTS sp1;
-SET sql_mode = '';
-CREATE PROCEDURE sp1()
-BEGIN
-declare x numeric unsigned zerofill;
-SELECT f1 into x from t2 limit 1;
-END//
-CALL sp1();
-Warnings:
-Warning 1366 Incorrect decimal value: 'a`' for column 'x' at row 1
-SET sql_mode = DEFAULT;
-DROP TABLE t1;
-DROP TABLE t2;
-DROP TABLE t3;
-DROP PROCEDURE sp1;
-DROP PROCEDURE sp2;
-DROP PROCEDURE sp3;
-create table t1 (c_char char(255), c_varchar varchar(255), c_tinytext tinytext);
-create table t2 (c_tinyblob tinyblob);
-set @c = repeat(' ', 256);
-set @q = repeat('q', 256);
-set sql_mode = '';
-insert into t1 values(@c, @c, @c);
-Warnings:
-Note 1265 Data truncated for column 'c_varchar' at row 1
-Note 1265 Data truncated for column 'c_tinytext' at row 1
-insert into t2 values(@c);
-Warnings:
-Warning 1265 Data truncated for column 'c_tinyblob' at row 1
-insert into t1 values(@q, @q, @q);
-Warnings:
-Warning 1265 Data truncated for column 'c_char' at row 1
-Warning 1265 Data truncated for column 'c_varchar' at row 1
-Warning 1265 Data truncated for column 'c_tinytext' at row 1
-insert into t2 values(@q);
-Warnings:
-Warning 1265 Data truncated for column 'c_tinyblob' at row 1
-set sql_mode = 'traditional';
-insert into t1 values(@c, @c, @c);
-Warnings:
-Note 1265 Data truncated for column 'c_varchar' at row 1
-Note 1265 Data truncated for column 'c_tinytext' at row 1
-insert into t2 values(@c);
-ERROR 22001: Data too long for column 'c_tinyblob' at row 1
-insert into t1 values(@q, NULL, NULL);
-ERROR 22001: Data too long for column 'c_char' at row 1
-insert into t1 values(NULL, @q, NULL);
-ERROR 22001: Data too long for column 'c_varchar' at row 1
-insert into t1 values(NULL, NULL, @q);
-ERROR 22001: Data too long for column 'c_tinytext' at row 1
-insert into t2 values(@q);
-ERROR 22001: Data too long for column 'c_tinyblob' at row 1
-drop table t1, t2;
-DROP TABLE t1;
-ERROR 42S02: Unknown table 'test.t1'
-SHOW ERRORS;
-Level Code Message
-Error 1051 Unknown table 'test.t1'
-End of 5.0 tests
-set sql_mode = default;
-select CAST(a AS DECIMAL(13,5)) FROM (SELECT '' as a) t;
-CAST(a AS DECIMAL(13,5))
-0.00000
-Warnings:
-Warning 1918 Encountered illegal value '' when converting to DECIMAL
-Warning 1292 Truncated incorrect DECIMAL value: ''
-create table t1 (a integer unsigned);
-insert into t1 values (1),(-1),(0),(-2);
-Warnings:
-Warning 1264 Out of range value for column 'a' at row 2
-Warning 1264 Out of range value for column 'a' at row 4
-drop table t1;
-End of 5.1 tests
-
--- Bug#55847
-
-DROP TABLE IF EXISTS t1;
-DROP FUNCTION IF EXISTS f1;
-CREATE TABLE t1(a INT UNIQUE);
-CREATE FUNCTION f1(x INT) RETURNS INT
-BEGIN
-INSERT INTO t1 VALUES(x);
-INSERT INTO t1 VALUES(x);
-RETURN x;
-END|
-
-SHOW TABLES WHERE f1(11) = 11;
-ERROR 23000: Duplicate entry '11' for key 'a'
-
-SHOW WARNINGS;
-Level Code Message
-Note 4094 At line 4 in test.f1
-Error 1062 Duplicate entry '11' for key 'a'
-
-DROP TABLE t1;
-DROP FUNCTION f1;
-connect con1,localhost,root,,;
-SELECT TIME('10:10:10.11111111111');
-TIME('10:10:10.11111111111')
-10:10:10.111111
-Warnings:
-Note 1292 Truncated incorrect time value: '10:10:10.11111111111'
-disconnect con1;
-connect con2,localhost,root,,;
-SHOW WARNINGS;
-Level Code Message
-disconnect con2;
-connection default;
diff --git a/mysql-test/r/warnings_debug.result b/mysql-test/r/warnings_debug.result
deleted file mode 100644
index 4cdce7a5feb..00000000000
--- a/mysql-test/r/warnings_debug.result
+++ /dev/null
@@ -1,10 +0,0 @@
-drop table if exists t1;
-create table t1 (a int primary key) engine=innodb;
-SET SESSION debug_dbug="+d,warn_during_ha_commit_trans";
-INSERT INTO t1 VALUES (1);
-Warnings:
-Warning 1196 Some non-transactional changed tables couldn't be rolled back
-SHOW WARNINGS;
-Level Code Message
-Warning 1196 Some non-transactional changed tables couldn't be rolled back
-drop table t1;
diff --git a/mysql-test/r/warnings_engine_disabled.result b/mysql-test/r/warnings_engine_disabled.result
deleted file mode 100644
index d9e490ba18f..00000000000
--- a/mysql-test/r/warnings_engine_disabled.result
+++ /dev/null
@@ -1,16 +0,0 @@
-set sql_mode="";
-create table t1 (id int) engine=InnoDB;
-Warnings:
-Warning 1286 Unknown storage engine 'InnoDB'
-Warning 1266 Using storage engine MyISAM for table 't1'
-alter table t1 engine=InnoDB;
-Warnings:
-Warning 1286 Unknown storage engine 'InnoDB'
-drop table t1;
-set sql_mode=default;
-SELECT ENGINE, SUPPORT FROM INFORMATION_SCHEMA.ENGINES WHERE ENGINE='InnoDB';
-ENGINE SUPPORT
-InnoDB NO
-SELECT PLUGIN_NAME, PLUGIN_STATUS FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_NAME='InnoDB';
-PLUGIN_NAME PLUGIN_STATUS
-InnoDB DISABLED
diff --git a/mysql-test/r/win.result b/mysql-test/r/win.result
deleted file mode 100644
index dd4d09bb1eb..00000000000
--- a/mysql-test/r/win.result
+++ /dev/null
@@ -1,3304 +0,0 @@
-drop table if exists t1,t2;
-drop view if exists v1;
-# ########################################################################
-# # Parser tests
-# ########################################################################
-#
-# Check what happens when one attempts to use window function without OVER clause
-create table t1 (a int, b int);
-insert into t1 values (1,1),(2,2);
-select row_number() from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'from t1' at line 1
-select rank() from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'from t1' at line 1
-# Attempt to use window function in the WHERE clause
-select * from t1 where 1=rank() over (order by a);
-ERROR HY000: Window function is allowed only in SELECT list and ORDER BY clause
-select * from t1 where 1>row_number() over (partition by b order by a);
-ERROR HY000: Window function is allowed only in SELECT list and ORDER BY clause
-drop table t1;
-# ########################################################################
-# # Functionality tests
-# ########################################################################
-#
-# Check if ROW_NUMBER() works in basic cases
-create table t1(a int, b int, x char(32));
-insert into t1 values (2, 10, 'xx');
-insert into t1 values (2, 10, 'zz');
-insert into t1 values (2, 20, 'yy');
-insert into t1 values (3, 10, 'xxx');
-insert into t1 values (3, 20, 'vvv');
-select a, row_number() over (partition by a order by b) from t1;
-a row_number() over (partition by a order by b)
-2 1
-2 2
-2 3
-3 1
-3 2
-select a, b, x, row_number() over (partition by a order by x) from t1;
-a b x row_number() over (partition by a order by x)
-2 10 xx 1
-2 10 zz 3
-2 20 yy 2
-3 10 xxx 2
-3 20 vvv 1
-drop table t1;
-create table t1 (pk int primary key, a int, b int);
-insert into t1 values
-(1, 10, 22),
-(2, 11, 21),
-(3, 12, 20),
-(4, 13, 19),
-(5, 14, 18);
-select
-pk, a, b,
-row_number() over (order by a),
-row_number() over (order by b)
-from t1;
-pk a b row_number() over (order by a) row_number() over (order by b)
-1 10 22 1 5
-2 11 21 2 4
-3 12 20 3 3
-4 13 19 4 2
-5 14 18 5 1
-drop table t1;
-#
-# Try RANK() function
-#
-create table t2 (
-pk int primary key,
-a int
-);
-insert into t2 values
-( 1 , 0),
-( 2 , 0),
-( 3 , 1),
-( 4 , 1),
-( 8 , 2),
-( 5 , 2),
-( 6 , 2),
-( 7 , 2),
-( 9 , 4),
-(10 , 4);
-select pk, a, rank() over (order by a) from t2;
-pk a rank() over (order by a)
-1 0 1
-10 4 9
-2 0 1
-3 1 3
-4 1 3
-5 2 5
-6 2 5
-7 2 5
-8 2 5
-9 4 9
-select pk, a, rank() over (order by a desc) from t2;
-pk a rank() over (order by a desc)
-1 0 9
-10 4 1
-2 0 9
-3 1 7
-4 1 7
-5 2 3
-6 2 3
-7 2 3
-8 2 3
-9 4 1
-drop table t2;
-#
-# Try Aggregates as window functions. With frames.
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (pk int, c int);
-insert into t1 select a+1,1 from t0;
-update t1 set c=2 where pk not in (1,2,3,4);
-select * from t1;
-pk c
-1 1
-2 1
-3 1
-4 1
-5 2
-6 2
-7 2
-8 2
-9 2
-10 2
-select
-pk, c,
-count(*) over (partition by c order by pk
-rows between 2 preceding and 2 following) as CNT
-from t1;
-pk c CNT
-1 1 3
-2 1 4
-3 1 4
-4 1 3
-5 2 3
-6 2 4
-7 2 5
-8 2 5
-9 2 4
-10 2 3
-select
-pk, c,
-count(*) over (partition by c order by pk
-rows between 1 preceding and 2 following) as CNT
-from t1;
-pk c CNT
-1 1 3
-2 1 4
-3 1 3
-4 1 2
-5 2 3
-6 2 4
-7 2 4
-8 2 4
-9 2 3
-10 2 2
-select
-pk, c,
-count(*) over (partition by c order by pk
-rows between 2 preceding and current row) as CNT
-from t1;
-pk c CNT
-1 1 1
-2 1 2
-3 1 3
-4 1 3
-5 2 1
-6 2 2
-7 2 3
-8 2 3
-9 2 3
-10 2 3
-select
-pk,c,
-count(*) over (partition by c order by pk rows
-between 1 following and 2 following) as CNT
-from t1;
-pk c CNT
-1 1 2
-2 1 2
-3 1 1
-4 1 0
-5 2 2
-6 2 2
-7 2 2
-8 2 2
-9 2 1
-10 2 0
-select
-pk,c,
-count(*) over (partition by c order by pk rows
-between 2 preceding and 1 preceding) as CNT
-from t1;
-pk c CNT
-1 1 0
-2 1 1
-3 1 2
-4 1 2
-5 2 0
-6 2 1
-7 2 2
-8 2 2
-9 2 2
-10 2 2
-select
-pk, c,
-count(*) over (partition by c order by pk
-rows between current row and 1 following) as CNT
-from t1;
-pk c CNT
-1 1 2
-2 1 2
-3 1 2
-4 1 1
-5 2 2
-6 2 2
-7 2 2
-8 2 2
-9 2 2
-10 2 1
-# Check ORDER BY DESC
-select
-pk, c,
-count(*) over (partition by c order by pk desc
-rows between 2 preceding and 2 following) as CNT
-from t1;
-pk c CNT
-1 1 3
-2 1 4
-3 1 4
-4 1 3
-5 2 3
-6 2 4
-7 2 5
-8 2 5
-9 2 4
-10 2 3
-drop table t0,t1;
-#
-# Resolution of window names
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (pk int, c int);
-insert into t1 select a+1,1 from t0;
-update t1 set c=2 where pk not in (1,2,3,4);
-select * from t1;
-pk c
-1 1
-2 1
-3 1
-4 1
-5 2
-6 2
-7 2
-8 2
-9 2
-10 2
-select
-pk, c,
-count(*) over w1 as CNT
-from t1
-window w1 as (partition by c order by pk
-rows between 2 preceding and 2 following);
-pk c CNT
-1 1 3
-2 1 4
-3 1 4
-4 1 3
-5 2 3
-6 2 4
-7 2 5
-8 2 5
-9 2 4
-10 2 3
-select
-pk, c,
-count(*) over (w1 rows between 2 preceding and 2 following) as CNT
-from t1
-window w1 as (partition by c order by pk);
-pk c CNT
-1 1 3
-2 1 4
-3 1 4
-4 1 3
-5 2 3
-6 2 4
-7 2 5
-8 2 5
-9 2 4
-10 2 3
-select
-pk, c,
-count(*) over (w1 order by pk rows between 2 preceding and 2 following) as CNT
-from t1
-window w1 as (partition by c);
-pk c CNT
-1 1 3
-2 1 4
-3 1 4
-4 1 3
-5 2 3
-6 2 4
-7 2 5
-8 2 5
-9 2 4
-10 2 3
-select
-pk, c,
-count(*) over (w2 rows between 2 preceding and 2 following) as CNT
-from t1
-window w1 as (partition by c), w2 as (w1 order by pk);
-pk c CNT
-1 1 3
-2 1 4
-3 1 4
-4 1 3
-5 2 3
-6 2 4
-7 2 5
-8 2 5
-9 2 4
-10 2 3
-select
-pk, c,
-count(*) over w3 as CNT
-from t1
-window
-w1 as (partition by c),
-w2 as (w1 order by pk),
-w3 as (w2 rows between 2 preceding and 2 following);
-pk c CNT
-1 1 3
-2 1 4
-3 1 4
-4 1 3
-5 2 3
-6 2 4
-7 2 5
-8 2 5
-9 2 4
-10 2 3
-select
-pk, c,
-count(*) over w as CNT
-from t1
-window w1 as (partition by c order by pk
-rows between 2 preceding and 2 following);
-ERROR HY000: Window specification with name 'w' is not defined
-select
-pk, c,
-count(*) over (w2 rows between 2 preceding and 2 following) as CNT
-from t1
-window w1 as (partition by c), w1 as (order by pk);
-ERROR HY000: Multiple window specifications with the same name 'w1'
-select
-pk, c,
-count(*) over (w2 rows between 2 preceding and 2 following) as CNT
-from t1
-window w1 as (partition by c), w2 as (w partition by c order by pk);
-ERROR HY000: Window specification with name 'w' is not defined
-select
-pk, c,
-count(*) over (w2 rows between 2 preceding and 2 following) as CNT
-from t1
-window w1 as (partition by c), w2 as (w1 partition by c order by pk);
-ERROR HY000: Window specification referencing another one 'w1' cannot contain partition list
-select
-pk, c,
-count(*) over (w2 rows between 2 preceding and 2 following) as CNT
-from t1
-window w1 as (partition by c order by pk), w2 as (w1 order by pk);
-ERROR HY000: Referenced window specification 'w1' already contains order list
-select
-pk, c,
-count(*) over w3 as CNT
-from t1
-window
-w1 as (partition by c),
-w2 as (w1 order by pk rows between 3 preceding and 2 following),
-w3 as (w2 rows between 2 preceding and 2 following);
-ERROR HY000: Referenced window specification 'w2' cannot contain window frame
-select
-pk, c,
-count(*) over w1 as CNT
-from t1
-window w1 as (partition by c order by pk
-rows between unbounded following and 2 following);
-ERROR HY000: Unacceptable combination of window frame bound specifications
-select
-pk, c,
-count(*) over (w1 rows between 2 preceding and unbounded preceding) as CNT
-from t1
-window w1 as (partition by c order by pk);
-ERROR HY000: Unacceptable combination of window frame bound specifications
-select
-pk, c,
-count(*) over (w1 order by pk rows between current row and 2 preceding) as CNT
-from t1
-window w1 as (partition by c);
-ERROR HY000: Unacceptable combination of window frame bound specifications
-select
-pk, c,
-count(*) over (w2 rows between 2 following and current row) as CNT
-from t1
-window w1 as (partition by c), w2 as (w1 order by pk);
-ERROR HY000: Unacceptable combination of window frame bound specifications
-select
-pk, c
-from t1 where rank() over w1 > 2
-window w1 as (partition by c order by pk);
-ERROR HY000: Window function is allowed only in SELECT list and ORDER BY clause
-select
-c, max(pk) as m
-from t1
-group by c + rank() over w1
-window w1 as (order by m);
-ERROR HY000: Window function is allowed only in SELECT list and ORDER BY clause
-select
-c, max(pk) as m, rank() over w1 as r
-from t1
-group by c+r
-window w1 as (order by m);
-ERROR HY000: Window function is allowed only in SELECT list and ORDER BY clause
-select
-c, max(pk) as m, rank() over w1 as r
-from t1
-group by c having c+r > 3
-window w1 as (order by m);
-ERROR HY000: Window function is allowed only in SELECT list and ORDER BY clause
-select
-c, max(pk) as m, rank() over w1 as r,
-rank() over (partition by r+1 order by m)
-from t1
-group by c
-window w1 as (order by m);
-ERROR HY000: Window function is not allowed in window specification
-select
-c, max(pk) as m, rank() over w1 as r,
-rank() over (partition by m order by r)
-from t1
-group by c
-window w1 as (order by m);
-ERROR HY000: Window function is not allowed in window specification
-select
-c, max(pk) as m, rank() over w1 as r, dense_rank() over w2 as dr
-from t1
-group by c
-window w1 as (order by m), w2 as (partition by r order by m);
-ERROR HY000: Window function is not allowed in window specification
-select
-pk, c,
-row_number() over (partition by c order by pk
-range between unbounded preceding and current row) as r
-from t1;
-ERROR HY000: Window frame is not allowed with 'row_number'
-select
-pk, c,
-rank() over w1 as r
-from t1
-window w1 as (partition by c order by pk
-rows between 2 preceding and 2 following);
-ERROR HY000: Window frame is not allowed with 'rank'
-select
-pk, c,
-dense_rank() over (partition by c order by pk
-rows between 1 preceding and 1 following) as r
-from t1;
-ERROR HY000: Window frame is not allowed with 'dense_rank'
-select
-pk, c,
-rank() over w1 as r
-from t1
-window w1 as (partition by c);
-ERROR HY000: No order list in window specification for 'rank'
-select
-pk, c,
-dense_rank() over (partition by c) as r
-from t1;
-ERROR HY000: No order list in window specification for 'dense_rank'
-drop table t0,t1;
-#
-# MDEV-9634: Window function produces incorrect value
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2 (part_id int, pk int, a int);
-insert into t2 select
-if(a<5, 0, 1), a, if(a<5, NULL, 1) from t0;
-select * from t2;
-part_id pk a
-0 0 NULL
-0 1 NULL
-0 2 NULL
-0 3 NULL
-0 4 NULL
-1 5 1
-1 6 1
-1 7 1
-1 8 1
-1 9 1
-select
-part_id, pk, a,
-count(a) over (partition by part_id order by pk
-rows between 1 preceding and 1 following) as CNT
-from t2;
-part_id pk a CNT
-0 0 NULL 0
-0 1 NULL 0
-0 2 NULL 0
-0 3 NULL 0
-0 4 NULL 0
-1 5 1 2
-1 6 1 3
-1 7 1 3
-1 8 1 3
-1 9 1 2
-drop table t0, t2;
-#
-# RANGE-type bounds
-#
-create table t3 (
-pk int,
-val int
-);
-insert into t3 values
-(0, 1),
-(1, 1),
-(2, 1),
-(3, 2),
-(4, 2),
-(5, 2),
-(6, 2);
-select
-pk,
-val,
-count(val) over (order by val
-range between current row and
-current row)
-as CNT
-from t3;
-pk val CNT
-0 1 3
-1 1 3
-2 1 3
-3 2 4
-4 2 4
-5 2 4
-6 2 4
-insert into t3 values
-(7, 3),
-(8, 3);
-select
-pk,
-val,
-count(val) over (order by val
-range between current row and
-current row)
-as CNT
-from t3;
-pk val CNT
-0 1 3
-1 1 3
-2 1 3
-3 2 4
-4 2 4
-5 2 4
-6 2 4
-7 3 2
-8 3 2
-drop table t3;
-# Now, check with PARTITION BY
-create table t4 (
-part_id int,
-pk int,
-val int
-);
-insert into t4 values
-(1234, 100, 1),
-(1234, 101, 1),
-(1234, 102, 1),
-(1234, 103, 2),
-(1234, 104, 2),
-(1234, 105, 2),
-(1234, 106, 2),
-(1234, 107, 3),
-(1234, 108, 3),
-(5678, 200, 1),
-(5678, 201, 1),
-(5678, 202, 1),
-(5678, 203, 2),
-(5678, 204, 2),
-(5678, 205, 2),
-(5678, 206, 2),
-(5678, 207, 3),
-(5678, 208, 3);
-select
-part_id,
-pk,
-val,
-count(val) over (partition by part_id
-order by val
-range between current row and
-current row)
-as CNT
-from t4;
-part_id pk val CNT
-1234 100 1 3
-1234 101 1 3
-1234 102 1 3
-1234 103 2 4
-1234 104 2 4
-1234 105 2 4
-1234 106 2 4
-1234 107 3 2
-1234 108 3 2
-5678 200 1 3
-5678 201 1 3
-5678 202 1 3
-5678 203 2 4
-5678 204 2 4
-5678 205 2 4
-5678 206 2 4
-5678 207 3 2
-5678 208 3 2
-#
-# Try RANGE UNBOUNDED PRECEDING | FOLLOWING
-#
-select
-part_id,
-pk,
-val,
-count(val) over (partition by part_id
-order by val
-range between unbounded preceding and
-current row)
-as CNT
-from t4;
-part_id pk val CNT
-1234 100 1 3
-1234 101 1 3
-1234 102 1 3
-1234 103 2 7
-1234 104 2 7
-1234 105 2 7
-1234 106 2 7
-1234 107 3 9
-1234 108 3 9
-5678 200 1 3
-5678 201 1 3
-5678 202 1 3
-5678 203 2 7
-5678 204 2 7
-5678 205 2 7
-5678 206 2 7
-5678 207 3 9
-5678 208 3 9
-select
-part_id,
-pk,
-val,
-count(val) over (partition by part_id
-order by val
-range between current row and
-unbounded following)
-as CNT
-from t4;
-part_id pk val CNT
-1234 100 1 9
-1234 101 1 9
-1234 102 1 9
-1234 103 2 6
-1234 104 2 6
-1234 105 2 6
-1234 106 2 6
-1234 107 3 2
-1234 108 3 2
-5678 200 1 9
-5678 201 1 9
-5678 202 1 9
-5678 203 2 6
-5678 204 2 6
-5678 205 2 6
-5678 206 2 6
-5678 207 3 2
-5678 208 3 2
-select
-part_id,
-pk,
-val,
-count(val) over (partition by part_id
-order by val
-range between unbounded preceding and
-unbounded following)
-as CNT
-from t4;
-part_id pk val CNT
-1234 100 1 9
-1234 101 1 9
-1234 102 1 9
-1234 103 2 9
-1234 104 2 9
-1234 105 2 9
-1234 106 2 9
-1234 107 3 9
-1234 108 3 9
-5678 200 1 9
-5678 201 1 9
-5678 202 1 9
-5678 203 2 9
-5678 204 2 9
-5678 205 2 9
-5678 206 2 9
-5678 207 3 9
-5678 208 3 9
-drop table t4;
-#
-# MDEV-9695: Wrong window frame when using RANGE BETWEEN N FOLLOWING AND PRECEDING
-#
-create table t1 (pk int, a int, b int);
-insert into t1 values
-( 1 , 0, 1),
-( 2 , 0, 2),
-( 3 , 1, 4),
-( 4 , 1, 8),
-( 5 , 2, 32),
-( 6 , 2, 64),
-( 7 , 2, 128),
-( 8 , 2, 16);
-select pk, a, b,
-bit_or(b) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING) as bit_or
-from t1;
-pk a b bit_or
-1 0 1 3
-2 0 2 3
-3 1 4 12
-4 1 8 12
-5 2 32 96
-6 2 64 224
-7 2 128 208
-8 2 16 144
-# Extra ROWS n PRECEDING tests
-select pk, a, b,
-bit_or(b) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 PRECEDING) as bit_or
-from t1;
-pk a b bit_or
-1 0 1 0
-2 0 2 1
-3 1 4 0
-4 1 8 4
-5 2 32 0
-6 2 64 32
-7 2 128 64
-8 2 16 128
-drop table t1;
-create table t2 (
-pk int,
-a int,
-b int
-);
-insert into t2 values
-( 1, 0, 1),
-( 2, 0, 2),
-( 3, 0, 4),
-( 4, 0, 8),
-( 5, 1, 16),
-( 6, 1, 32),
-( 7, 1, 64),
-( 8, 1, 128),
-( 9, 2, 256),
-(10, 2, 512),
-(11, 2, 1024),
-(12, 2, 2048);
-select pk, a, b,
-bit_or(b) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 PRECEDING) as bit_or
-from t2;
-pk a b bit_or
-1 0 1 0
-2 0 2 1
-3 0 4 2
-4 0 8 4
-5 1 16 0
-6 1 32 16
-7 1 64 32
-8 1 128 64
-9 2 256 0
-10 2 512 256
-11 2 1024 512
-12 2 2048 1024
-select pk, a, b,
-bit_or(b) over (partition by a order by pk ROWS BETWEEN 2 PRECEDING AND 2 PRECEDING) as bit_or
-from t2;
-pk a b bit_or
-1 0 1 0
-2 0 2 0
-3 0 4 1
-4 0 8 2
-5 1 16 0
-6 1 32 0
-7 1 64 16
-8 1 128 32
-9 2 256 0
-10 2 512 0
-11 2 1024 256
-12 2 2048 512
-select pk, a, b,
-bit_or(b) over (partition by a order by pk ROWS BETWEEN 2 PRECEDING AND 1 PRECEDING) as bit_or
-from t2;
-pk a b bit_or
-1 0 1 0
-2 0 2 1
-3 0 4 3
-4 0 8 6
-5 1 16 0
-6 1 32 16
-7 1 64 48
-8 1 128 96
-9 2 256 0
-10 2 512 256
-11 2 1024 768
-12 2 2048 1536
-# Check CURRENT ROW
-select pk, a, b,
-bit_or(b) over (partition by a order by pk ROWS BETWEEN CURRENT ROW AND CURRENT ROW) as bit_or
-from t2;
-pk a b bit_or
-1 0 1 1
-2 0 2 2
-3 0 4 4
-4 0 8 8
-5 1 16 16
-6 1 32 32
-7 1 64 64
-8 1 128 128
-9 2 256 256
-10 2 512 512
-11 2 1024 1024
-12 2 2048 2048
-drop table t2;
-#
-# Try RANGE PRECEDING|FOLLWING n
-#
-create table t1 (
-part_id int,
-pk int,
-a int
-);
-insert into t1 values
-(10, 1, 1),
-(10, 2, 2),
-(10, 3, 4),
-(10, 4, 8),
-(10, 5,26),
-(10, 6,27),
-(10, 7,40),
-(10, 8,71),
-(10, 9,72);
-select
-pk, a,
-count(a) over (ORDER BY a
-RANGE BETWEEN UNBOUNDED PRECEDING
-AND 10 FOLLOWING) as cnt
-from t1;
-pk a cnt
-1 1 4
-2 2 4
-3 4 4
-4 8 4
-5 26 6
-6 27 6
-7 40 7
-8 71 9
-9 72 9
-select
-pk, a,
-count(a) over (ORDER BY a DESC
-RANGE BETWEEN UNBOUNDED PRECEDING
-AND 10 FOLLOWING) as cnt
-from t1;
-pk a cnt
-1 1 9
-2 2 9
-3 4 9
-4 8 9
-5 26 5
-6 27 5
-7 40 3
-8 71 2
-9 72 2
-select
-pk, a,
-count(a) over (ORDER BY a
-RANGE BETWEEN UNBOUNDED PRECEDING
-AND 1 FOLLOWING) as cnt
-from t1;
-pk a cnt
-1 1 2
-2 2 2
-3 4 3
-4 8 4
-5 26 6
-6 27 6
-7 40 7
-8 71 9
-9 72 9
-select
-pk, a,
-count(a) over (ORDER BY a
-RANGE BETWEEN UNBOUNDED PRECEDING
-AND 10 PRECEDING) as cnt
-from t1;
-pk a cnt
-1 1 0
-2 2 0
-3 4 0
-4 8 0
-5 26 4
-6 27 4
-7 40 6
-8 71 7
-9 72 7
-select
-pk, a,
-count(a) over (ORDER BY a DESC
-RANGE BETWEEN UNBOUNDED PRECEDING
-AND 10 PRECEDING) as cnt
-from t1;
-pk a cnt
-1 1 5
-2 2 5
-3 4 5
-4 8 5
-5 26 3
-6 27 3
-7 40 2
-8 71 0
-9 72 0
-select
-pk, a,
-count(a) over (ORDER BY a
-RANGE BETWEEN UNBOUNDED PRECEDING
-AND 1 PRECEDING) as cnt
-from t1;
-pk a cnt
-1 1 0
-2 2 1
-3 4 2
-4 8 3
-5 26 4
-6 27 5
-7 40 6
-8 71 7
-9 72 8
-select
-pk, a,
-count(a) over (ORDER BY a
-RANGE BETWEEN 1 PRECEDING
-AND CURRENT ROW) as cnt
-from t1;
-pk a cnt
-1 1 1
-2 2 2
-3 4 1
-4 8 1
-5 26 1
-6 27 2
-7 40 1
-8 71 1
-9 72 2
-select
-pk, a,
-count(a) over (ORDER BY a DESC
-RANGE BETWEEN 1 PRECEDING
-AND CURRENT ROW) as cnt
-from t1;
-pk a cnt
-1 1 2
-2 2 1
-3 4 1
-4 8 1
-5 26 2
-6 27 1
-7 40 1
-8 71 2
-9 72 1
-select
-pk, a,
-count(a) over (ORDER BY a
-RANGE BETWEEN 1 FOLLOWING
-AND 3 FOLLOWING) as cnt
-from t1;
-pk a cnt
-1 1 2
-2 2 1
-3 4 0
-4 8 0
-5 26 1
-6 27 0
-7 40 0
-8 71 1
-9 72 0
-# Try CURRENT ROW with[out] DESC
-select
-pk, a,
-count(a) over (ORDER BY a
-RANGE BETWEEN CURRENT ROW
-AND 1 FOLLOWING) as cnt
-from t1;
-pk a cnt
-1 1 2
-2 2 1
-3 4 1
-4 8 1
-5 26 2
-6 27 1
-7 40 1
-8 71 2
-9 72 1
-select
-pk, a,
-count(a) over (order by a desc
-range between current row
-and 1 following) as cnt
-from t1;
-pk a cnt
-1 1 1
-2 2 2
-3 4 1
-4 8 1
-5 26 1
-6 27 2
-7 40 1
-8 71 1
-9 72 2
-insert into t1 select 22, pk, a from t1;
-select
-part_id, pk, a,
-count(a) over (PARTITION BY part_id
-ORDER BY a
-RANGE BETWEEN UNBOUNDED PRECEDING
-AND 10 FOLLOWING) as cnt
-from t1;
-part_id pk a cnt
-10 1 1 4
-10 2 2 4
-10 3 4 4
-10 4 8 4
-10 5 26 6
-10 6 27 6
-10 7 40 7
-10 8 71 9
-10 9 72 9
-22 1 1 4
-22 2 2 4
-22 3 4 4
-22 4 8 4
-22 5 26 6
-22 6 27 6
-22 7 40 7
-22 8 71 9
-22 9 72 9
-select
-pk, a,
-count(a) over (PARTITION BY part_id
-ORDER BY a
-RANGE BETWEEN UNBOUNDED PRECEDING
-AND 1 PRECEDING) as cnt
-from t1;
-pk a cnt
-1 1 0
-2 2 1
-3 4 2
-4 8 3
-5 26 4
-6 27 5
-7 40 6
-8 71 7
-9 72 8
-1 1 0
-2 2 1
-3 4 2
-4 8 3
-5 26 4
-6 27 5
-7 40 6
-8 71 7
-9 72 8
-drop table t1;
-# Try a RANGE frame over non-integer datatype:
-create table t1 (
-col1 int,
-a decimal(5,3)
-);
-insert into t1 values (1, 0.45);
-insert into t1 values (1, 0.5);
-insert into t1 values (1, 0.55);
-insert into t1 values (1, 1.21);
-insert into t1 values (1, 1.22);
-insert into t1 values (1, 3.33);
-select
-a,
-count(col1) over (order by a
-range between 0.1 preceding
-and 0.1 following)
-from t1;
-a count(col1) over (order by a
-range between 0.1 preceding
-and 0.1 following)
-0.450 3
-0.500 3
-0.550 3
-1.210 2
-1.220 2
-3.330 1
-drop table t1;
-#
-# RANGE-type frames and NULL values
-#
-create table t1 (
-pk int,
-a int,
-b int
-);
-insert into t1 values (1, NULL,1);
-insert into t1 values (2, NULL,1);
-insert into t1 values (3, NULL,1);
-insert into t1 values (4, 10 ,1);
-insert into t1 values (5, 11 ,1);
-insert into t1 values (6, 12 ,1);
-insert into t1 values (7, 13 ,1);
-insert into t1 values (8, 14 ,1);
-select
-pk, a,
-count(b) over (order by a
-range between 2 preceding
-and 2 following) as CNT
-from t1;
-pk a CNT
-1 NULL 3
-2 NULL 3
-3 NULL 3
-4 10 3
-5 11 4
-6 12 5
-7 13 4
-8 14 3
-drop table t1;
-#
-# Try ranges that have bound1 > bound2. The standard actually allows them
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (pk int, c int);
-insert into t1 select a+1,1 from t0;
-update t1 set c=2 where pk not in (1,2,3,4);
-select * from t1;
-pk c
-1 1
-2 1
-3 1
-4 1
-5 2
-6 2
-7 2
-8 2
-9 2
-10 2
-select
-pk, c,
-count(*) over (partition by c
-order by pk
-rows between 1 preceding
-and 2 preceding)
-as cnt
-from t1;
-pk c cnt
-1 1 0
-2 1 0
-3 1 0
-4 1 0
-5 2 0
-6 2 0
-7 2 0
-8 2 0
-9 2 0
-10 2 0
-select
-pk, c,
-sum(c) over (partition by c
-order by pk
-rows between 1 preceding
-and 2 preceding)
-as sum
-from t1;
-pk c sum
-1 1 NULL
-2 1 NULL
-3 1 NULL
-4 1 NULL
-5 2 NULL
-6 2 NULL
-7 2 NULL
-8 2 NULL
-9 2 NULL
-10 2 NULL
-select
-pk, c,
-sum(c) over (partition by c
-order by pk
-rows between 2 following
-and 1 following)
-as sum
-from t1;
-pk c sum
-1 1 NULL
-2 1 NULL
-3 1 NULL
-4 1 NULL
-5 2 NULL
-6 2 NULL
-7 2 NULL
-8 2 NULL
-9 2 NULL
-10 2 NULL
-select
-pk, c,
-count(*) over (partition by c
-order by pk
-range between 1 preceding
-and 2 preceding)
-as cnt
-from t1;
-pk c cnt
-1 1 0
-2 1 0
-3 1 0
-4 1 0
-5 2 0
-6 2 0
-7 2 0
-8 2 0
-9 2 0
-10 2 0
-drop table t0, t1;
-#
-# Error checking for frame bounds
-#
-create table t1 (a int, b int, c varchar(32));
-insert into t1 values (1,1,'foo');
-insert into t1 values (2,2,'bar');
-select
-count(*) over (order by a,b
-range between unbounded preceding and current row)
-from t1;
-ERROR HY000: RANGE-type frame requires ORDER BY clause with single sort key
-select
-count(*) over (order by c
-range between unbounded preceding and current row)
-from t1;
-ERROR HY000: Numeric datatype is required for RANGE-type frame
-select
-count(*) over (order by a
-range between 'abcd' preceding and current row)
-from t1;
-ERROR HY000: Numeric datatype is required for RANGE-type frame
-select
-count(*) over (order by a
-range between current row and 'foo' following)
-from t1;
-ERROR HY000: Numeric datatype is required for RANGE-type frame
-# Try range frame with invalid bounds
-select
-count(*) over (order by a
-rows between 0.5 preceding and current row)
-from t1;
-ERROR HY000: Integer is required for ROWS-type frame
-select
-count(*) over (order by a
-rows between current row and 3.14 following)
-from t1;
-ERROR HY000: Integer is required for ROWS-type frame
-#
-# EXCLUDE clause is parsed but not supported
-#
-select
-count(*) over (order by a
-rows between 1 preceding and 1 following
-exclude current row)
-from t1;
-ERROR HY000: Frame exclusion is not supported yet
-select
-count(*) over (order by a
-range between 1 preceding and 1 following
-exclude ties)
-from t1;
-ERROR HY000: Frame exclusion is not supported yet
-select
-count(*) over (order by a
-range between 1 preceding and 1 following
-exclude group)
-from t1;
-ERROR HY000: Frame exclusion is not supported yet
-select
-count(*) over (order by a
-rows between 1 preceding and 1 following
-exclude no others)
-from t1;
-count(*) over (order by a
-rows between 1 preceding and 1 following
-exclude no others)
-2
-2
-drop table t1;
-#
-# Window function in grouping query
-#
-create table t1 (
-username varchar(32),
-amount int
-);
-insert into t1 values
-('user1',1),
-('user1',5),
-('user1',3),
-('user2',10),
-('user2',20),
-('user2',30);
-select
-username,
-sum(amount) as s,
-rank() over (order by s desc)
-from t1
-group by username;
-username s rank() over (order by s desc)
-user1 9 2
-user2 60 1
-drop table t1;
-#
-# mdev-9719: Window function in prepared statement
-#
-create table t1(a int, b int, x char(32));
-insert into t1 values (2, 10, 'xx');
-insert into t1 values (2, 10, 'zz');
-insert into t1 values (2, 20, 'yy');
-insert into t1 values (3, 10, 'xxx');
-insert into t1 values (3, 20, 'vvv');
-prepare stmt from 'select a, row_number() over (partition by a order by b) from t1';
-execute stmt;
-a row_number() over (partition by a order by b)
-2 1
-2 2
-2 3
-3 1
-3 2
-drop table t1;
-#
-# mdev-9754: Window name resolution in prepared statement
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (pk int, c int);
-insert into t1 select a+1,1 from t0;
-update t1 set c=2 where pk not in (1,2,3,4);
-select * from t1;
-pk c
-1 1
-2 1
-3 1
-4 1
-5 2
-6 2
-7 2
-8 2
-9 2
-10 2
-prepare stmt from
-'select
- pk, c,
- count(*) over w1 as CNT
-from t1
-window w1 as (partition by c order by pk
- rows between 2 preceding and 2 following)';
-execute stmt;
-pk c CNT
-1 1 3
-2 1 4
-3 1 4
-4 1 3
-5 2 3
-6 2 4
-7 2 5
-8 2 5
-9 2 4
-10 2 3
-drop table t0,t1;
-#
-# EXPLAIN FORMAT=JSON support for window functions
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-explain format=json select rank() over (order by a) from t0;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t0.a"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t0",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
- }
- }
-}
-create table t1 (a int, b int, c int);
-insert into t1 select a,a,a from t0;
-explain format=json
-select
-a,
-rank() over (order by sum(b))
-from t1
-group by a;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "filesort": {
- "sort_key": "t1.a",
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "sum(t1.b)"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
- }
- }
- }
-}
-explain format=json
-select
-a,
-rank() over (order by sum(b))
-from t1
-group by a
-order by null;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "sum(t1.b)"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
- }
- }
-}
-#
-# Check how window function works together with GROUP BY and HAVING
-#
-select b,max(a) as MX, rank() over (order by b) from t1 group by b having MX in (3,5,7);
-b MX rank() over (order by b)
-3 3 1
-5 5 2
-7 7 3
-explain format=json
-select b,max(a) as MX, rank() over (order by b) from t1 group by b having MX in (3,5,7);
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "having_condition": "MX in (3,5,7)",
- "filesort": {
- "sort_key": "t1.b",
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t1.b"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 10,
- "filtered": 100
- }
- }
- }
- }
- }
-}
-drop table t1;
-drop table t0;
-#
-# Building ordering index for window functions
-#
-create table t1 (
-pk int primary key,
-a int,
-b int,
-c int
-);
-insert into t1 values
-(101 , 0, 10, 1),
-(102 , 0, 10, 2),
-(103 , 1, 10, 3),
-(104 , 1, 10, 4),
-(108 , 2, 10, 5),
-(105 , 2, 20, 6),
-(106 , 2, 20, 7),
-(107 , 2, 20, 8),
-(109 , 4, 20, 9),
-(110 , 4, 20, 10),
-(111 , 5, NULL, 11),
-(112 , 5, 1, 12),
-(113 , 5, NULL, 13),
-(114 , 5, NULL, 14),
-(115 , 5, NULL, 15),
-(116 , 6, 1, NULL),
-(117 , 6, 1, 10),
-(118 , 6, 1, 1),
-(119 , 6, 1, NULL),
-(120 , 6, 1, NULL),
-(121 , 6, 1, NULL),
-(122 , 6, 1, 2),
-(123 , 6, 1, 20),
-(124 , 6, 1, -10),
-(125 , 6, 1, NULL),
-(126 , 6, 1, NULL),
-(127 , 6, 1, NULL);
-select sum(b) over (partition by a order by b,pk
-rows between unbounded preceding and current row) as c1,
-avg(b) over (w1 rows between 1 preceding and 1 following) as c2,
-sum(c) over (w2 rows between 1 preceding and 1 following) as c5,
-avg(b) over (w1 rows between 5 preceding and 5 following) as c3,
-sum(b) over (w1 rows between 1 preceding and 1 following) as c4
-from t1
-window w1 as (partition by a order by b,pk),
-w2 as (partition by b order by c,pk);
-c1 c2 c5 c3 c4
-1 1.0000 42 1.0000 1
-1 1.0000 NULL 1.0000 2
-10 1.0000 NULL 1.0000 3
-10 10.0000 3 10.0000 20
-10 10.0000 9 10.0000 20
-10 15.0000 9 17.5000 30
-11 1.0000 NULL 1.0000 3
-12 1.0000 -10 1.0000 2
-2 1.0000 24 1.0000 3
-20 10.0000 12 10.0000 20
-20 10.0000 6 10.0000 20
-20 20.0000 27 20.0000 40
-3 1.0000 -7 1.0000 3
-30 16.6667 13 17.5000 50
-4 1.0000 NULL 1.0000 3
-40 20.0000 19 20.0000 40
-5 1.0000 NULL 1.0000 3
-50 20.0000 21 17.5000 60
-6 1.0000 NULL 1.0000 3
-7 1.0000 13 1.0000 3
-70 20.0000 24 17.5000 40
-8 1.0000 32 1.0000 3
-9 1.0000 -9 1.0000 3
-NULL 1.0000 29 1.0000 1
-NULL NULL 24 1.0000 NULL
-NULL NULL 38 1.0000 NULL
-NULL NULL 42 1.0000 NULL
-drop table t1;
-#
-# MDEV-9848: Window functions: reuse sorting and/or scanning
-#
-create table t1 (a int, b int, c int);
-insert into t1 values
-(1,3,1),
-(2,2,1),
-(3,1,1);
-# Check using counters
-flush status;
-select
-rank() over (partition by c order by a),
-rank() over (partition by c order by b)
-from t1;
-rank() over (partition by c order by a) rank() over (partition by c order by b)
-1 3
-2 2
-3 1
-show status like '%sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 6
-Sort_scan 2
-flush status;
-select
-rank() over (partition by c order by a),
-rank() over (partition by c order by a)
-from t1;
-rank() over (partition by c order by a) rank() over (partition by c order by a)
-1 1
-2 2
-3 3
-show status like '%sort%';
-Variable_name Value
-Sort_merge_passes 0
-Sort_priority_queue_sorts 0
-Sort_range 0
-Sort_rows 3
-Sort_scan 1
-explain format=json
-select
-rank() over (partition by c order by a),
-rank() over (partition by c order by a)
-from t1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t1.c, t1.a"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- }
- }
-}
-explain format=json
-select
-rank() over (order by a),
-row_number() over (order by a)
-from t1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t1.a"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- }
- }
-}
-explain format=json
-select
-rank() over (partition by c order by a),
-count(*) over (partition by c)
-from t1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t1.c, t1.a"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- }
- }
-}
-explain format=json
-select
-count(*) over (partition by c),
-rank() over (partition by c order by a)
-from t1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t1.c, t1.a"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 3,
- "filtered": 100
- }
- }
- }
- }
-}
-drop table t1;
-#
-# MDEV-9847: Window functions: crash with big_tables=1
-#
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-set @tmp=@@big_tables;
-set big_tables=1;
-select rank() over (order by a) from t1;
-rank() over (order by a)
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-set big_tables=@tmp;
-drop table t1;
-#
-# Check if "ORDER BY window_func" works
-#
-create table t1 (s1 int, s2 char(5));
-insert into t1 values (1,'a');
-insert into t1 values (null,null);
-insert into t1 values (1,null);
-insert into t1 values (null,'a');
-insert into t1 values (2,'b');
-insert into t1 values (-1,'');
-explain format=json
-select *, row_number() over (order by s1, s2) as X from t1 order by X desc;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "filesort": {
- "sort_key": "row_number() over ( order by t1.s1,t1.s2) desc",
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t1.s1, t1.s2"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 6,
- "filtered": 100
- }
- }
- }
- }
- }
-}
-select *, row_number() over (order by s1, s2) as X from t1 order by X desc;
-s1 s2 X
-2 b 6
-1 a 5
-1 NULL 4
--1 3
-NULL a 2
-NULL NULL 1
-drop table t1;
-#
-# Try window functions that are not directly present in the select list
-#
-create table t1 (a int, b int);
-insert into t1 values
-(1,3),
-(2,2),
-(3,1);
-select
-a, b,
-rank() over (order by a), rank() over (order by b),
-rank() over (order by a) - rank() over (order by b) as diff
-from
-t1;
-a b rank() over (order by a) rank() over (order by b) diff
-1 3 1 3 -2
-2 2 2 2 0
-3 1 3 1 2
-drop table t1;
-create table t1 (i int);
-insert into t1 values (1),(2);
-SELECT MAX(i) OVER (PARTITION BY (i)) FROM t1;
-MAX(i) OVER (PARTITION BY (i))
-1
-2
-drop table t1;
-#
-# Check the 0 in ROWS 0 PRECEDING
-#
-create table t1 (
-part_id int,
-pk int,
-a int
-);
-insert into t1 values (1, 1, 1);
-insert into t1 values (1, 2, 2);
-insert into t1 values (1, 3, 4);
-insert into t1 values (1, 4, 8);
-select
-pk, a,
-sum(a) over (order by pk rows between 0 preceding and current row)
-from t1;
-pk a sum(a) over (order by pk rows between 0 preceding and current row)
-1 1 1
-2 2 2
-3 4 4
-4 8 8
-select
-pk, a,
-sum(a) over (order by pk rows between 1 preceding and 0 preceding)
-from t1;
-pk a sum(a) over (order by pk rows between 1 preceding and 0 preceding)
-1 1 1
-2 2 3
-3 4 6
-4 8 12
-insert into t1 values (200, 1, 1);
-insert into t1 values (200, 2, 2);
-insert into t1 values (200, 3, 4);
-insert into t1 values (200, 4, 8);
-select
-part_id, pk, a,
-sum(a) over (partition by part_id order by pk rows between 0 preceding and current row)
-from t1;
-part_id pk a sum(a) over (partition by part_id order by pk rows between 0 preceding and current row)
-1 1 1 1
-1 2 2 2
-1 3 4 4
-1 4 8 8
-200 1 1 1
-200 2 2 2
-200 3 4 4
-200 4 8 8
-select
-part_id, pk, a,
-sum(a) over (partition by part_id order by pk rows between 1 preceding and 0 preceding)
-from t1;
-part_id pk a sum(a) over (partition by part_id order by pk rows between 1 preceding and 0 preceding)
-1 1 1 1
-1 2 2 3
-1 3 4 6
-1 4 8 12
-200 1 1 1
-200 2 2 3
-200 3 4 6
-200 4 8 12
-drop table t1;
-#
-# MDEV-9780, The "DISTINCT must not bet converted into GROUP BY when
-# window functions are present" part
-#
-create table t1 (part_id int, a int);
-insert into t1 values
-(100, 1),
-(100, 2),
-(100, 2),
-(100, 3),
-(2000, 1),
-(2000, 2),
-(2000, 3),
-(2000, 3),
-(2000, 3);
-select rank() over (partition by part_id order by a) from t1;
-rank() over (partition by part_id order by a)
-1
-2
-2
-4
-1
-2
-3
-3
-3
-select distinct rank() over (partition by part_id order by a) from t1;
-rank() over (partition by part_id order by a)
-1
-2
-4
-3
-explain format=json
-select distinct rank() over (partition by part_id order by a) from t1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "duplicate_removal": {
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t1.part_id, t1.a"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 9,
- "filtered": 100
- }
- }
- }
- }
- }
-}
-drop table t1;
-#
-# MDEV-9893: Window functions with different ORDER BY lists,
-# one of these lists containing an expression
-#
-create table t1 (s1 int, s2 char(5));
-insert into t1 values (1,'a');
-insert into t1 values (null,null);
-insert into t1 values (3,null);
-insert into t1 values (4,'a');
-insert into t1 values (2,'b');
-insert into t1 values (-1,'');
-select
-*,
-ROW_NUMBER() OVER (order by s1),
-CUME_DIST() OVER (order by -s1)
-from t1;
-s1 s2 ROW_NUMBER() OVER (order by s1) CUME_DIST() OVER (order by -s1)
-1 a 3 0.8333333333
-NULL NULL 1 0.1666666667
-3 NULL 5 0.5000000000
-4 a 6 0.3333333333
-2 b 4 0.6666666667
--1 2 1.0000000000
-drop table t1;
-#
-# MDEV-9925: Wrong result with aggregate function as a window function
-#
-create table t1 (i int);
-insert into t1 values (1),(2);
-select i, sum(i) over (partition by i) from t1;
-i sum(i) over (partition by i)
-1 1
-2 2
-drop table t1;
-#
-# MDEV-9922: Assertion `!join->only_const_tables() && fsort' failed in int create_sort_index
-#
-create view v1 as select 1 as i;
-select rank() over (order by i) from v1;
-rank() over (order by i)
-1
-drop view v1;
-#
-# MDEV-10097: Assertion `count > 0' failed in Item_sum_sum::add_helper(bool)
-#
-CREATE TABLE `orders` (
-`o_orderkey` int(11) NOT NULL,
-`o_custkey` int(11) DEFAULT NULL,
-PRIMARY KEY (`o_orderkey`)
-) DEFAULT CHARSET=latin1;
-INSERT INTO `orders` VALUES (59908,242);
-INSERT INTO `orders` VALUES (59940,238);
-SELECT o_custkey, avg(o_custkey) OVER (PARTITION BY abs(o_custkey)
-ORDER BY o_custkey
-RANGE BETWEEN 15 FOLLOWING
-AND 15 FOLLOWING) from orders;
-o_custkey avg(o_custkey) OVER (PARTITION BY abs(o_custkey)
-ORDER BY o_custkey
-RANGE BETWEEN 15 FOLLOWING
-AND 15 FOLLOWING)
-242 NULL
-238 NULL
-DROP table orders;
-#
-# MDEV-10842: window functions with the same order column
-# but different directions
-#
-create table t1 (
-pk int primary key,
-a int,
-b int,
-c char(10)
-);
-insert into t1 values
-( 1, 0, 1, 'one'),
-( 2, 0, 2, 'two'),
-( 3, 0, 3, 'three'),
-( 4, 1, 1, 'one'),
-( 5, 1, 1, 'two'),
-( 6, 1, 2, 'three'),
-( 7, 2, NULL, 'n_one'),
-( 8, 2, 1, 'n_two'),
-( 9, 2, 2, 'n_three'),
-(10, 2, 0, 'n_four'),
-(11, 2, 10, NULL);
-select pk,
-row_number() over (order by pk desc) as r_desc,
-row_number() over (order by pk asc) as r_asc
-from t1;
-pk r_desc r_asc
-1 11 1
-2 10 2
-3 9 3
-4 8 4
-5 7 5
-6 6 6
-7 5 7
-8 4 8
-9 3 9
-10 2 10
-11 1 11
-drop table t1;
-#
-# MDEV-10874: two window functions with ccompatible sorting
-#
-create table t1 (
-pk int primary key,
-a int,
-b int,
-c char(10),
-d decimal(10, 3),
-e real
-);
-insert into t1 values
-( 1, 0, 1, 'one', 0.1, 0.001),
-( 2, 0, 2, 'two', 0.2, 0.002),
-( 3, 0, 3, 'three', 0.3, 0.003),
-( 4, 1, 2, 'three', 0.4, 0.004),
-( 5, 1, 1, 'two', 0.5, 0.005),
-( 6, 1, 1, 'one', 0.6, 0.006),
-( 7, 2, NULL, 'n_one', 0.5, 0.007),
-( 8, 2, 1, 'n_two', NULL, 0.008),
-( 9, 2, 2, NULL, 0.7, 0.009),
-(10, 2, 0, 'n_four', 0.8, 0.010),
-(11, 2, 10, NULL, 0.9, NULL);
-select pk, a, d,
-sum(d) over (partition by a order by pk
-ROWS between 1 preceding and current row) as sum_1,
-sum(d) over (order by a
-ROWS BETWEEN 1 preceding and 2 following) as sum_2
-from t1;
-pk a d sum_1 sum_2
-1 0 0.100 0.100 0.600
-2 0 0.200 0.300 1.000
-3 0 0.300 0.500 1.400
-4 1 0.400 0.400 1.800
-5 1 0.500 0.900 2.000
-6 1 0.600 1.100 1.600
-7 2 0.500 0.500 1.800
-8 2 NULL 0.500 2.000
-9 2 0.700 0.700 2.400
-10 2 0.800 1.500 2.400
-11 2 0.900 1.700 1.700
-explain format=json
-select pk, a, d,
-sum(d) over (partition by a order by pk
-ROWS between 1 preceding and current row) as sum_1,
-sum(d) over (order by a
-ROWS BETWEEN 1 preceding and 2 following) as sum_2
-from t1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t1.a, t1.pk"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 11,
- "filtered": 100
- }
- }
- }
- }
-}
-select pk, a, d,
-sum(d) over (partition by a order by pk desc
-ROWS between 1 preceding and current row) as sum_1,
-sum(d) over (order by a
-ROWS BETWEEN 1 preceding and 2 following) as sum_2
-from t1;
-pk a d sum_1 sum_2
-1 0 0.100 0.300 1.400
-2 0 0.200 0.500 1.200
-3 0 0.300 0.300 0.600
-4 1 0.400 0.900 2.600
-5 1 0.500 1.100 2.400
-6 1 0.600 0.600 1.600
-7 2 0.500 0.500 0.500
-8 2 NULL 0.700 1.200
-9 2 0.700 1.500 2.000
-10 2 0.800 1.700 2.400
-11 2 0.900 0.900 2.800
-drop table t1;
-#
-# MDEV-9941: two window functions with compatible partitions
-#
-create table t1 (
-a int,
-b int,
-c int
-);
-insert into t1 values
-(10, 1, 1),
-(10, 3, 10),
-(10, 1, 10),
-(10, 3, 100),
-(10, 5, 1000),
-(10, 1, 100);
-explain format=json
-select
-a,b,c,
-row_number() over (partition by a),
-row_number() over (partition by a, b)
-from t1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "t1.a, t1.b"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "ALL",
- "rows": 6,
- "filtered": 100
- }
- }
- }
- }
-}
-drop table t1;
-#
-# MDEV-10815: Window Function Expressions Wrong Results
-#
-create table t(a decimal(35,10), b int);
-insert into t(a,b) values(1,1);
-insert into t(a,b) values(2,1);
-insert into t(a,b) values(0,1);
-insert into t(a,b) values(1, 2);
-insert into t(a,b) values(1.5,2);
-insert into t(a,b) values(3, 2);
-insert into t(a,b) values(4.5,2);
-select a, b,
-sum(t.a) over (partition by t.b order by a) as simple_sum,
-sum(t.a) over (partition by t.b order by a) + 1 as sum_and_const,
-sum(t.b) over (partition by t.b order by a) + sum(t.a) over (partition by t.b order by a) as sum_and_sum
-from t
-order by t.b, t.a;
-a b simple_sum sum_and_const sum_and_sum
-0.0000000000 1 0.0000000000 1.0000000000 1.0000000000
-1.0000000000 1 1.0000000000 2.0000000000 3.0000000000
-2.0000000000 1 3.0000000000 4.0000000000 6.0000000000
-1.0000000000 2 1.0000000000 2.0000000000 3.0000000000
-1.5000000000 2 2.5000000000 3.5000000000 6.5000000000
-3.0000000000 2 5.5000000000 6.5000000000 11.5000000000
-4.5000000000 2 10.0000000000 11.0000000000 18.0000000000
-drop table t;
-#
-# MDEV-10669: Crash in SELECT with window function used
-#
-create table t(a decimal(35,10), b int);
-insert into t(a,b) values(1,1);
-insert into t(a,b) values(2,1);
-insert into t(a,b) values(0,1);
-SELECT (CASE WHEN sum(t.a) over (partition by t.b)=0 THEN null ELSE null END) AS a FROM t;
-a
-NULL
-NULL
-NULL
-SELECT ifnull(((t.a) / CASE WHEN sum(t.a) over(partition by t.b) =0 then null else null end) ,0) from t;
-ifnull(((t.a) / CASE WHEN sum(t.a) over(partition by t.b) =0 then null else null end) ,0)
-0.00000000000000
-0.00000000000000
-0.00000000000000
-SELECT sum(t.a) over (partition by t.b order by a),
-sqrt(ifnull((sum(t.a) over (partition by t.b order by a)), 0))
-from t;
-sum(t.a) over (partition by t.b order by a) sqrt(ifnull((sum(t.a) over (partition by t.b order by a)), 0))
-1.0000000000 1
-3.0000000000 1.7320508075688772
-0.0000000000 0
-drop table t;
-#
-# MDEV-10868: view definitions with window functions
-#
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1 (pk int, c int);
-insert into t1 select a+1,1 from t0;
-update t1 set c=2 where pk not in (1,2,3,4);
-select * from t1;
-pk c
-1 1
-2 1
-3 1
-4 1
-5 2
-6 2
-7 2
-8 2
-9 2
-10 2
-select pk, c, c/count(*) over (partition by c order by pk
-rows between 1 preceding and 2 following) as CNT
-from t1;
-pk c CNT
-1 1 0.3333
-2 1 0.2500
-3 1 0.3333
-4 1 0.5000
-5 2 0.6667
-6 2 0.5000
-7 2 0.5000
-8 2 0.5000
-9 2 0.6667
-10 2 1.0000
-create view v1 as select pk, c, c/count(*) over (partition by c order by pk
-rows between 1 preceding and 2 following) as CNT
-from t1;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`pk` AS `pk`,`t1`.`c` AS `c`,`t1`.`c` / count(0) over ( partition by `t1`.`c` order by `t1`.`pk` rows between 1 preceding and 2 following ) AS `CNT` from `t1` latin1 latin1_swedish_ci
-select * from v1;
-pk c CNT
-1 1 0.3333
-2 1 0.2500
-3 1 0.3333
-4 1 0.5000
-5 2 0.6667
-6 2 0.5000
-7 2 0.5000
-8 2 0.5000
-9 2 0.6667
-10 2 1.0000
-select pk, c, c/count(*) over w1 as CNT from t1
-window w1 as (partition by c order by pk rows between 1 preceding and 2 following);
-pk c CNT
-1 1 0.3333
-2 1 0.2500
-3 1 0.3333
-4 1 0.5000
-5 2 0.6667
-6 2 0.5000
-7 2 0.5000
-8 2 0.5000
-9 2 0.6667
-10 2 1.0000
-create view v2 as select pk, c, c/count(*) over w1 as CNT from t1
-window w1 as (partition by c order by pk rows between 1 preceding and 2 following);
-show create view v2;
-View Create View character_set_client collation_connection
-v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `t1`.`pk` AS `pk`,`t1`.`c` AS `c`,`t1`.`c` / count(0) over ( partition by `t1`.`c` order by `t1`.`pk` rows between 1 preceding and 2 following ) AS `CNT` from `t1` latin1 latin1_swedish_ci
-select * from v2;
-pk c CNT
-1 1 0.3333
-2 1 0.2500
-3 1 0.3333
-4 1 0.5000
-5 2 0.6667
-6 2 0.5000
-7 2 0.5000
-8 2 0.5000
-9 2 0.6667
-10 2 1.0000
-select pk, c, c/count(*) over w1 as CNT from t1
-window w1 as (partition by c order by pk rows unbounded preceding);
-pk c CNT
-1 1 1.0000
-2 1 0.5000
-3 1 0.3333
-4 1 0.2500
-5 2 2.0000
-6 2 1.0000
-7 2 0.6667
-8 2 0.5000
-9 2 0.4000
-10 2 0.3333
-create view v3 as select pk, c, c/count(*) over w1 as CNT from t1
-window w1 as (partition by c order by pk rows unbounded preceding);
-show create view v3;
-View Create View character_set_client collation_connection
-v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select `t1`.`pk` AS `pk`,`t1`.`c` AS `c`,`t1`.`c` / count(0) over ( partition by `t1`.`c` order by `t1`.`pk` rows between unbounded preceding and current row ) AS `CNT` from `t1` latin1 latin1_swedish_ci
-select * from v3;
-pk c CNT
-1 1 1.0000
-2 1 0.5000
-3 1 0.3333
-4 1 0.2500
-5 2 2.0000
-6 2 1.0000
-7 2 0.6667
-8 2 0.5000
-9 2 0.4000
-10 2 0.3333
-select pk, c, c/count(*) over (partition by c order by pk
-range between 3 preceding and current row) as CNT
-from t1;
-pk c CNT
-1 1 1.0000
-2 1 0.5000
-3 1 0.3333
-4 1 0.2500
-5 2 2.0000
-6 2 1.0000
-7 2 0.6667
-8 2 0.5000
-9 2 0.5000
-10 2 0.5000
-create view v4 as select pk, c, c/count(*) over (partition by c order by pk
-range between 3 preceding and current row) as CNT
-from t1;
-show create view v4;
-View Create View character_set_client collation_connection
-v4 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v4` AS select `t1`.`pk` AS `pk`,`t1`.`c` AS `c`,`t1`.`c` / count(0) over ( partition by `t1`.`c` order by `t1`.`pk` range between 3 preceding and current row ) AS `CNT` from `t1` latin1 latin1_swedish_ci
-select * from v4;
-pk c CNT
-1 1 1.0000
-2 1 0.5000
-3 1 0.3333
-4 1 0.2500
-5 2 2.0000
-6 2 1.0000
-7 2 0.6667
-8 2 0.5000
-9 2 0.5000
-10 2 0.5000
-drop view v1,v2,v3,v4;
-drop table t0,t1;
-#
-# MDEV-10875: window function in subquery
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (3),(1);
-CREATE TABLE t2 (c VARCHAR(8));
-INSERT INTO t2 VALUES ('foo'),('bar'),('foo');
-SELECT COUNT(*) OVER (PARTITION BY c) FROM t2;
-COUNT(*) OVER (PARTITION BY c)
-2
-1
-2
-SELECT * FROM t1 WHERE i IN ( SELECT COUNT(*) OVER (PARTITION BY c) FROM t2 );
-i
-1
-DROP TABLE t1, t2;
-#
-# MDEV-9976: window function without PARTITION BY and ORDER BY
-#
-CREATE TABLE t1 (id int, a int);
-INSERT INTO t1 VALUES
-(1,1000), (2,1100), (3,1800), (4,1500), (5,1700), (6,1200),
-(7,2000), (8,2100), (9,1600);
-SELECT id, sum(a) OVER (PARTITION BY id
-ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING)
-FROM t1;
-id sum(a) OVER (PARTITION BY id
-1 1000
-2 1100
-3 1800
-4 1500
-5 1700
-6 1200
-7 2000
-8 2100
-9 1600
-ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING)
-SELECT id, sum(a) OVER (ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING)
-FROM t1;
-id sum(a) OVER (ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING)
-1 14000
-2 13000
-3 5900
-4 10700
-5 7600
-6 11900
-7 4100
-8 2100
-9 9200
-DROP TABLE t1;
-#
-# MDEV-11867: window function with aggregation
-# over the result of grouping
-#
-create table t1 (
-username varchar(32),
-amount int
-);
-insert into t1 values
-('user1',1),
-('user1',5),
-('user1',3),
-('user2',10),
-('user2',20),
-('user2',30);
-select username, sum(amount) as s, avg(sum(amount)) over (order by s desc)
-from t1
-group by username;
-username s avg(sum(amount)) over (order by s desc)
-user1 9 34.5000
-user2 60 60.0000
-select username, sum(amount), avg(sum(amount)) over (order by sum(amount) desc)
-from t1
-group by username;
-username sum(amount) avg(sum(amount)) over (order by sum(amount) desc)
-user1 9 34.5000
-user2 60 60.0000
-drop table t1;
-#
-# MDEV-11594: window function over implicit grouping
-#
-create table t1 (id int);
-insert into t1 values (1), (2), (3), (2);
-select sum(id) over (order by sum(id)) from t1;
-sum(id) over (order by sum(id))
-1
-select sum(sum(id)) over (order by sum(id)) from t1;
-sum(sum(id)) over (order by sum(id))
-8
-drop table t1;
-#
-# MDEV-9923: integer constant in order by list
-# of window specification
-#
-create table t1 (id int);
-insert into t1 values (1), (2), (3), (2);
-select rank() over (order by 1) from t1;
-rank() over (order by 1)
-1
-1
-1
-1
-select rank() over (order by 2) from t1;
-rank() over (order by 2)
-1
-1
-1
-1
-select rank() over (partition by id order by 2) from t1;
-rank() over (partition by id order by 2)
-1
-1
-1
-1
-drop table t1;
-#
-# MDEV-10660: view using a simple window function
-#
-create table t1 (id int);
-insert into t1 values (1), (2), (3), (2);
-create view v1(id,rnk) as
-select id, rank() over (order by id) from t1;
-show create view v1;
-View Create View character_set_client collation_connection
-v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`id` AS `id`,rank() over ( order by `t1`.`id`) AS `rnk` from `t1` latin1 latin1_swedish_ci
-select id, rank() over (order by id) from t1;
-id rank() over (order by id)
-1 1
-2 2
-3 4
-2 2
-select * from v1;
-id rnk
-1 1
-2 2
-3 4
-2 2
-drop view v1;
-drop table t1;
-#
-# MDEV-11138: window function in the query without tables
-#
-select row_number() over ();
-row_number() over ()
-1
-select count(*) over ();
-count(*) over ()
-1
-select sum(5) over ();
-sum(5) over ()
-5
-select row_number() over (), sum(5) over ();
-row_number() over () sum(5) over ()
-1 5
-select row_number() over (order by 2);
-row_number() over (order by 2)
-1
-select row_number() over (partition by 2);
-row_number() over (partition by 2)
-1
-select row_number() over (partition by 4 order by 1+2);
-row_number() over (partition by 4 order by 1+2)
-1
-#
-# MDEV-11999: execution of prepared statement for
-# tableless query with window functions
-#
-prepare stmt from
-"select row_number() over (partition by 4 order by 1+2)";
-execute stmt;
-row_number() over (partition by 4 order by 1+2)
-1
-execute stmt;
-row_number() over (partition by 4 order by 1+2)
-1
-deallocate prepare stmt;
-#
-# MDEV-11745: window function with min/max
-#
-create table t1 (i int, b int);
-insert into t1 values
-(1,1),(2,1),(3,1),(4,4),(5,4),(6,4),(7,8),(8,8),(9,8),(10,8);
-select b, min(i) over (partition by b) as f
-from t1 as tt
-order by i;
-b f
-1 1
-1 1
-1 1
-4 4
-4 4
-4 4
-8 7
-8 7
-8 7
-8 7
-select b, min(i) over (partition by b) as f
-from (select * from t1) as tt
-order by i;
-b f
-1 1
-1 1
-1 1
-4 4
-4 4
-4 4
-8 7
-8 7
-8 7
-8 7
-select b, min(i+10) over (partition by b) as f
-from t1 as tt
-order by i;
-b f
-1 11
-1 11
-1 11
-4 14
-4 14
-4 14
-8 17
-8 17
-8 17
-8 17
-select b, min(i) over (partition by b) as f
-from (select i+10 as i, b from t1) as tt
-order by i;
-b f
-1 11
-1 11
-1 11
-4 14
-4 14
-4 14
-8 17
-8 17
-8 17
-8 17
-select b, min(i+20) over (partition by b) as f
-from (select i+10 as i, b from t1) as tt
-order by i;
-b f
-1 31
-1 31
-1 31
-4 34
-4 34
-4 34
-8 37
-8 37
-8 37
-8 37
-select b, max(i) over (partition by b) as f
-from t1 as tt
-order by i;
-b f
-1 3
-1 3
-1 3
-4 6
-4 6
-4 6
-8 10
-8 10
-8 10
-8 10
-select b, max(i) over (partition by b) as f
-from (select * from t1) as tt
-order by i;
-b f
-1 3
-1 3
-1 3
-4 6
-4 6
-4 6
-8 10
-8 10
-8 10
-8 10
-select b, max(i+10) over (partition by b) as f
-from t1 as tt
-order by i;
-b f
-1 13
-1 13
-1 13
-4 16
-4 16
-4 16
-8 20
-8 20
-8 20
-8 20
-select b, max(i) over (partition by b) as f
-from (select i+10 as i, b from t1) as tt
-order by i;
-b f
-1 13
-1 13
-1 13
-4 16
-4 16
-4 16
-8 20
-8 20
-8 20
-8 20
-select b, max(i+20) over (partition by b) as f
-from (select i+10 as i, b from t1) as tt
-order by i;
-b f
-1 33
-1 33
-1 33
-4 36
-4 36
-4 36
-8 40
-8 40
-8 40
-8 40
-select max(i), max(i), sum(i), count(i)
-from t1 as tt
-group by b;
-max(i) max(i) sum(i) count(i)
-3 3 6 3
-6 6 15 3
-10 10 34 4
-select max(i), min(sum(i)) over (partition by count(i)) f
-from t1 as tt
-group by b;
-max(i) f
-3 6
-6 6
-10 34
-select max(i), min(sum(i)) over (partition by count(i)) f
-from (select * from t1) as tt
-group by b;
-max(i) f
-3 6
-6 6
-10 34
-select max(i+10), min(sum(i)+10) over (partition by count(i)) f
-from t1 as tt
-group by b;
-max(i+10) f
-13 16
-16 16
-20 44
-select max(i), max(i), sum(i), count(i)
-from (select i+10 as i, b from t1) as tt
-group by b;
-max(i) max(i) sum(i) count(i)
-13 13 36 3
-16 16 45 3
-20 20 74 4
-select max(i), min(sum(i)) over (partition by count(i)) f
-from (select i+10 as i, b from t1) as tt
-group by b;
-max(i) f
-13 36
-16 36
-20 74
-select max(i), min(i), min(max(i)-min(i)) over (partition by count(i)) f
-from (select i+10 as i, b from t1) as tt
-group by b;
-max(i) min(i) f
-13 11 2
-16 14 2
-20 17 3
-drop table t1;
-#
-# MDEV-12015: window function over select with WHERE
-# that is always FALSE
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (3), (1), (2);
-SELECT i, ROW_NUMBER() OVER () FROM t1 WHERE 1 = 2;
-i ROW_NUMBER() OVER ()
-SELECT i, COUNT(*) OVER () FROM t1 WHERE 1 = 2;
-i COUNT(*) OVER ()
-DROP TABLE t1;
-#
-# MDEV-12051: window function in query with implicit grouping
-# on always empty set
-#
-create table t1 (a int, b varchar(8));
-insert into t1 values (1,'foo'),(2,'bar');
-select max(a), row_number() over () from t1 where a > 10;
-max(a) row_number() over ()
-NULL 1
-select max(a), sum(max(a)) over () from t1 where a > 10;
-max(a) sum(max(a)) over ()
-NULL NULL
-select max(a), sum(max(a)) over (partition by max(a)) from t1 where a > 10;
-max(a) sum(max(a)) over (partition by max(a))
-NULL NULL
-select max(a), row_number() over () from t1 where 1 = 2;
-max(a) row_number() over ()
-NULL 1
-select max(a), sum(max(a)) over () from t1 where 1 = 2;
-max(a) sum(max(a)) over ()
-NULL NULL
-select max(a), sum(max(a)) over (partition by max(a)) from t1 where 1 = 2;
-max(a) sum(max(a)) over (partition by max(a))
-NULL NULL
-select max(a), row_number() over () from t1 where 1 = 2
-having max(a) is not null;
-max(a) row_number() over ()
-select max(a), sum(max(a)) over () from t1 where 1 = 2
-having max(a) is not null;
-max(a) sum(max(a)) over ()
-drop table t1;
-#
-# MDEV-10885: window function in query with implicit grouping
-# with constant condition evaluated to false
-#
-CREATE TABLE t1 (a INT, b VARCHAR(8));
-INSERT INTO t1 VALUES (1,'foo'),(2,'bar');
-CREATE TABLE t2 (c INT);
-INSERT INTO t2 VALUES (3),(4);
-CREATE TABLE t3 (d INT);
-INSERT INTO t3 VALUES (5),(6);
-SELECT MAX(a), ROW_NUMBER() OVER (PARTITION BY MAX(a)) FROM t1
-WHERE EXISTS ( SELECT * FROM t2 WHERE c IN ( SELECT MAX(d) FROM t3 ) );
-MAX(a) ROW_NUMBER() OVER (PARTITION BY MAX(a))
-NULL 1
-SELECT MAX(a), COUNT(MAX(a)) OVER (PARTITION BY MAX(a)) FROM t1
-WHERE EXISTS ( SELECT * FROM t2 WHERE c IN ( SELECT MAX(d) FROM t3 ) );
-MAX(a) COUNT(MAX(a)) OVER (PARTITION BY MAX(a))
-NULL 0
-SELECT MAX(a), SUM(MAX(a)) OVER (PARTITION BY MAX(a)) FROM t1
-WHERE EXISTS ( SELECT * FROM t2 WHERE c IN ( SELECT MAX(d) FROM t3 ) );
-MAX(a) SUM(MAX(a)) OVER (PARTITION BY MAX(a))
-NULL NULL
-SELECT MAX(a), ROW_NUMBER() OVER (PARTITION BY MAX(a)) FROM t1
-WHERE EXISTS ( SELECT * FROM t2 WHERE c IN ( SELECT MAX(d) FROM t3 ) )
-HAVING MAX(a) IS NOT NULL;
-MAX(a) ROW_NUMBER() OVER (PARTITION BY MAX(a))
-SELECT a, MAX(a), ROW_NUMBER() OVER (PARTITION BY b) FROM t1
-WHERE EXISTS ( SELECT * FROM t2 WHERE c IN ( SELECT MAX(d) FROM t3 ) );
-a MAX(a) ROW_NUMBER() OVER (PARTITION BY b)
-NULL NULL 1
-SELECT a, COUNT(a), AVG(a) OVER (PARTITION BY b) FROM t1
-WHERE EXISTS ( SELECT * FROM t2 WHERE c IN ( SELECT MAX(d) FROM t3 ) );
-a COUNT(a) AVG(a) OVER (PARTITION BY b)
-NULL 0 NULL
-SELECT a, MAX(a), AVG(a) OVER (PARTITION BY b) FROM t1
-WHERE EXISTS ( SELECT * FROM t2 WHERE c IN ( SELECT MAX(d) FROM t3 ) );
-a MAX(a) AVG(a) OVER (PARTITION BY b)
-NULL NULL NULL
-DROP TABLE t1,t2,t3;
-#
-# MDEV-10859: Wrong result of aggregate window function in query
-# with HAVING and no ORDER BY
-#
-create table empsalary (depname varchar(32), empno smallint primary key, salary int);
-insert into empsalary values
-('develop', 1, 5000), ('develop', 2, 4000),('sales', 3, '6000'),('sales', 4, 5000);
-SELECT depname, empno, salary, avg(salary) OVER (PARTITION BY depname) FROM empsalary;
-depname empno salary avg(salary) OVER (PARTITION BY depname)
-develop 1 5000 4500.0000
-develop 2 4000 4500.0000
-sales 3 6000 5500.0000
-sales 4 5000 5500.0000
-SELECT depname, empno, salary, avg(salary) OVER (PARTITION BY depname) FROM empsalary ORDER BY depname;
-depname empno salary avg(salary) OVER (PARTITION BY depname)
-develop 1 5000 4500.0000
-develop 2 4000 4500.0000
-sales 3 6000 5500.0000
-sales 4 5000 5500.0000
-#
-# These last 2 should have the same row results, ignoring order.
-#
-SELECT depname, empno, salary, avg(salary) OVER (PARTITION BY depname) FROM empsalary HAVING empno > 1;
-depname empno salary avg(salary) OVER (PARTITION BY depname)
-develop 2 4000 4000.0000
-sales 3 6000 5500.0000
-sales 4 5000 5500.0000
-SELECT depname, empno, salary, avg(salary) OVER (PARTITION BY depname) FROM empsalary HAVING empno > 1 ORDER BY depname;
-depname empno salary avg(salary) OVER (PARTITION BY depname)
-develop 2 4000 4000.0000
-sales 3 6000 5500.0000
-sales 4 5000 5500.0000
-drop table empsalary;
-#
-# MDEV-11868: min(distinct) over () returns wrong value
-#
-create table TDEC (CDEC int, RNUM int);
-create view VDEC as select * from TDEC;
-insert into TDEC (CDEC) values (null),(-1),(0),(1),(0),(10);
-select TDEC.CDEC, min(TDEC.CDEC) over () from TDEC;
-CDEC min(TDEC.CDEC) over ()
-NULL -1
--1 -1
-0 -1
-1 -1
-0 -1
-10 -1
-select VDEC.CDEC, min(VDEC.CDEC) over () from VDEC;
-CDEC min(VDEC.CDEC) over ()
-NULL -1
--1 -1
-0 -1
-1 -1
-0 -1
-10 -1
-select TDEC.CDEC, max(TDEC.CDEC) over () from TDEC;
-CDEC max(TDEC.CDEC) over ()
-NULL 10
--1 10
-0 10
-1 10
-0 10
-10 10
-select VDEC.CDEC, max(VDEC.CDEC) over () from VDEC;
-CDEC max(VDEC.CDEC) over ()
-NULL 10
--1 10
-0 10
-1 10
-0 10
-10 10
-select TDEC.CDEC, min(distinct TDEC.CDEC) over () from TDEC;
-CDEC min(distinct TDEC.CDEC) over ()
-NULL -1
--1 -1
-0 -1
-1 -1
-0 -1
-10 -1
-select VDEC.CDEC, min(distinct VDEC.CDEC) over () from VDEC;
-CDEC min(distinct VDEC.CDEC) over ()
-NULL -1
--1 -1
-0 -1
-1 -1
-0 -1
-10 -1
-select TDEC.CDEC, max(distinct TDEC.CDEC) over () from TDEC;
-CDEC max(distinct TDEC.CDEC) over ()
-NULL 10
--1 10
-0 10
-1 10
-0 10
-10 10
-select VDEC.CDEC, max(distinct VDEC.CDEC) over () from VDEC;
-CDEC max(distinct VDEC.CDEC) over ()
-NULL 10
--1 10
-0 10
-1 10
-0 10
-10 10
-#
-# These should be removed once support for them is added.
-#
-select TDEC.CDEC, count(distinct TDEC.CDEC) over () from TDEC;
-ERROR 42000: This version of MariaDB doesn't yet support 'COUNT(DISTINCT) aggregate as window function'
-select VDEC.CDEC, count(distinct VDEC.CDEC) over () from VDEC;
-ERROR 42000: This version of MariaDB doesn't yet support 'COUNT(DISTINCT) aggregate as window function'
-select TDEC.CDEC, sum(distinct TDEC.CDEC) over () from TDEC;
-ERROR 42000: This version of MariaDB doesn't yet support 'SUM(DISTINCT) aggregate as window function'
-select VDEC.CDEC, sum(distinct VDEC.CDEC) over () from VDEC;
-ERROR 42000: This version of MariaDB doesn't yet support 'SUM(DISTINCT) aggregate as window function'
-select TDEC.CDEC, avg(distinct TDEC.CDEC) over () from TDEC;
-ERROR 42000: This version of MariaDB doesn't yet support 'AVG(DISTINCT) aggregate as window function'
-select VDEC.CDEC, avg(distinct VDEC.CDEC) over () from VDEC;
-ERROR 42000: This version of MariaDB doesn't yet support 'AVG(DISTINCT) aggregate as window function'
-select TDEC.CDEC, GROUP_CONCAT(TDEC.CDEC) over () from TDEC;
-ERROR 42000: This version of MariaDB doesn't yet support 'GROUP_CONCAT() aggregate as window function'
-select VDEC.CDEC, GROUP_CONCAT(distinct VDEC.CDEC) over () from VDEC;
-ERROR 42000: This version of MariaDB doesn't yet support 'GROUP_CONCAT() aggregate as window function'
-drop table TDEC;
-drop view VDEC;
-#
-# MDEV-10700: 10.2.2 windowing function returns incorrect result
-#
-create table t(a int,b int, c int , d int);
-insert into t(a,b,c,d) values(1, rand(10)*1000, rand(10)*1000, rand(10)*1000);
-insert into t(a,b,c,d) values(1, rand(10)*1000, rand(10)*1000, rand(10)*1000);
-replace into t(a,b,c,d) select 1, rand(10)*1000, rand(10)*1000, rand(10)*1000 from t t1, t t2, t t3, t t4, t t5, t t6, t t7, t t8, t t9, t t10, t t11, t t12, t t13, t t14, t t15, t t16, t t17;
-select count(distinct s) from (select sum(d) over(partition by a,b,c) as s from t) Z where s > 0;
-count(distinct s)
-993
-select count(distinct s) from (select sum(d) as s from t group by a,b,c) Z where s > 0;
-count(distinct s)
-993
-select count(distinct s) from (select sum(d) over(partition by a,b) as s from t) Z where s > 0;
-count(distinct s)
-993
-select count(distinct s) from (select sum(d) as s from t group by a,b) Z where s > 0;
-count(distinct s)
-993
-select count(distinct s) from (select sum(d) over(partition by a) as s from t) Z where s > 0;
-count(distinct s)
-1
-select count(distinct s) from (select sum(d) as s from t group by a) Z where s > 0;
-count(distinct s)
-1
-drop table t;
-#
-# MDEV-9924: window function in query with group by optimized away
-#
-create table t1 (i int);
-insert into t1 values (2),(3),(1);
-select row_number() over () from t1 group by 1+2;
-row_number() over ()
-1
-select max(i), row_number() over () from t1 group by 1+2;
-max(i) row_number() over ()
-3 1
-select rank() over (order by max(i)) from t1 group by 1+2;
-rank() over (order by max(i))
-1
-select i, row_number() over () from t1 group by 1+2;
-i row_number() over ()
-2 1
-select i, rank() over (order by i) rnk from t1 group by 1+2;
-i rnk
-2 1
-drop table t1;
-#
-# MDEV-11907: window function as the second operand of division
-#
-create table t1 (pk int, c int);
-insert into t1 values (1,1),(2,1),(3,1),(4,1),(5,2);
-set @sql_mode_save= @@sql_mode;
-set sql_mode='ERROR_FOR_DIVISION_BY_ZERO';
-select pk, c, c/count(*) over
-(partition by c order by pk
-rows between 1 preceding and 2 following) as CNT
-from t1;
-pk c CNT
-1 1 0.3333
-2 1 0.2500
-3 1 0.3333
-4 1 0.5000
-5 2 2.0000
-show warnings;
-Level Code Message
-set sql_mode=@sql_mode_save;
-drop table t1;
-#
-# MDEV-12336: several functions over a window function
-#
-create table t1 (name varchar(10), cnt int);
-insert into t1 values ('Fred', 23), ('Fred', 35), ('Joe', 10);
-select q.name, q.row_cnt,
-round( 100 * ( q.row_cnt /
-sum(q.row_cnt) over
-(
-order by q.name
-rows between
-unbounded preceding and
-unbounded following
-)
-),2
-) pct_of_total
-from
-(
-select name, count(*) row_cnt, sum(cnt) sum_cnt
-from t1
-group by 1
-) q;
-name row_cnt pct_of_total
-Fred 2 66.67
-Joe 1 33.33
-drop table t1;
-#
-# MDEV-11990: window function over min/max aggregation
-#
-create table t1 (id int);
-insert into t1 values (1), (2), (3), (2), (4), (2);
-select sum(max(id)) over (order by max(id)) from t1;
-sum(max(id)) over (order by max(id))
-4
-explain
-select sum(max(id)) over (order by max(id)) from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using temporary
-create index idx on t1(id);
-select sum(max(id)) over (order by max(id)) from t1;
-sum(max(id)) over (order by max(id))
-4
-explain
-select sum(max(id)) over (order by max(id)) from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
-select sum(max(id)) over (order by max(id)) from t1 where id < 3;
-sum(max(id)) over (order by max(id))
-2
-select count(max(id)) over (order by max(id)) from t1 where id < 3;
-count(max(id)) over (order by max(id))
-1
-select max(id), rank() over (order by max(id)) from t1 where id < 3;
-max(id) rank() over (order by max(id))
-2 1
-drop table t1;
-#
-# main.win failure post MDEV-12336
-#
-create table t(a decimal(35,10), b int);
-insert into t values (1, 10), (2, 20), (3, 30);
-prepare stmt from "SELECT (CASE WHEN sum(t.a) over (partition by t.b)=1 THEN 1000 ELSE 300 END) AS a FROM t";
-execute stmt;
-a
-1000
-300
-300
-drop table t;
-#
-# MDEV-12851 case with window functions query crashes server
-#
-create table t1(dt datetime);
-insert into t1 values ('2017-05-17'), ('2017-05-18');
-select dt,
-case when (max(dt) over (order by dt rows between 1 following and 1 following) is null)
-then '9999-12-31 12:00:00'
- else max(dt) over (order by dt rows between 1 following and 1 following)
-end x,
-case when (max(dt) over (order by dt rows between 1 following and 1 following) is not null)
-then '9999-12-31 12:00:00'
- else max(dt) over (order by dt rows between 1 following and 1 following)
-end x
-from t1;
-dt x x
-2017-05-17 00:00:00 2017-05-18 00:00:00 9999-12-31 12:00:00
-2017-05-18 00:00:00 9999-12-31 12:00:00 NULL
-drop table t1;
-create table t1(i int);
-insert into t1 values (null),(1),(2);
-select max(i) over (order by i),
-max(i) over (order by i) is null,
-max(i) over (order by i) is not null
-from t1;
-max(i) over (order by i) max(i) over (order by i) is null max(i) over (order by i) is not null
-NULL 1 0
-1 0 1
-2 0 1
-drop table t1;
-#
-# MDEV-13189: Window functions crash when using INTERVAL function
-#
-create table t1(i int);
-insert into t1 values (1),(2),(10),(20),(30);
-select sum(i) over (order by i), interval(sum(i) over (order by i), 10, 20)
-from t1;
-sum(i) over (order by i) interval(sum(i) over (order by i), 10, 20)
-1 0
-3 0
-13 1
-33 2
-63 2
-drop table t1;
-#
-# MDEV-13352: Server crashes in st_join_table::remove_duplicates
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1),(2);
-SELECT DISTINCT ROW_NUMBER() OVER(), i FROM t1 WHERE 0;
-ROW_NUMBER() OVER() i
-SELECT ROW_NUMBER() OVER(), i FROM t1 WHERE 0;
-ROW_NUMBER() OVER() i
-DROP TABLE t1;
-#
-# MDEV-13344: Server crashes in in AGGR_OP::put_record on subquery
-# with window function and constant table
-# (Testcase only)
-#
-CREATE TABLE t1 (c CHAR(8)) ENGINE=MyISAM;
-INSERT IGNORE INTO t1 VALUES ('foo');
-SELECT ('bar',1) IN ( SELECT c, ROW_NUMBER() OVER (PARTITION BY c) FROM t1);
-('bar',1) IN ( SELECT c, ROW_NUMBER() OVER (PARTITION BY c) FROM t1)
-0
-DROP TABLE t1;
-#
-# MDEV-13351: Server crashes in st_select_lex::set_explain_type upon UNION with window function
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1),(2);
-SELECT Nth_value(i,1) OVER() FROM t1
-UNION ALL
-( SELECT Nth_value(i,2) OVER() FROM t1 LIMIT 0 )
-;
-Nth_value(i,1) OVER()
-1
-1
-DROP TABLE t1;
-#
-# A regression after MDEV-13351:
-# MDEV-13374 : Server crashes in first_linear_tab / st_select_lex::set_explain_type
-# upon UNION with aggregate function
-#
-CREATE TABLE t1 (i INT) ENGINE=MyISAM;
-INSERT INTO t1 VALUES (1),(2);
-SELECT i AS fld FROM t1 UNION SELECT COUNT(*) AS fld FROM t1;
-fld
-1
-2
-DROP TABLE t1;
-#
-# MDEV-13240 Wrong warning with MAX(datetime_field) OVER (...)
-#
-CREATE TABLE t1 (dt DATETIME);
-INSERT INTO t1 VALUES ('2017-05-17');
-SELECT MAX(dt) OVER (ORDER BY dt ROWS BETWEEN 1 FOLLOWING AND 1 FOLLOWING) FROM t1;
-MAX(dt) OVER (ORDER BY dt ROWS BETWEEN 1 FOLLOWING AND 1 FOLLOWING)
-NULL
-DROP TABLE t1;
-#
-# MDEV-13358 FIRST_VALUE throws SQL Error (1292): Incorrect datetime value
-#
-CREATE TABLE IF NOT EXISTS `fv_test` (
-`SOME_DATE` datetime NOT NULL
-);
-INSERT INTO `fv_test` (`SOME_DATE`) VALUES ('2017-07-20 12:47:56');
-CREATE TABLE fv_result
-SELECT
-FIRST_VALUE(SOME_DATE) OVER(ORDER BY SOME_DATE DESC) AS somedate
-FROM fv_test;
-SHOW CREATE TABLE fv_result;
-Table Create Table
-fv_result CREATE TABLE `fv_result` (
- `somedate` datetime DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-SELECT * FROM fv_result;
-somedate
-2017-07-20 12:47:56
-DROP TABLE fv_test, fv_result;
-#
-# MDEV-13649: Server crashes in set_field_to_null_with_conversions or in Field::set_notnull
-#
-CREATE TABLE t1 (a int);
-INSERT INTO t1 VALUES (0),(1),(2);
-SELECT LEAD(a) OVER (PARTITION BY a) as lead,
-a AND LEAD(a) OVER (PARTITION BY a) AS a_and_lead_part
-FROM t1;
-lead a_and_lead_part
-NULL 0
-NULL NULL
-NULL NULL
-SELECT a OR LEAD(a) OVER (ORDER BY a) AS a_or_lead_order
-FROM t1
-ORDER BY a;
-a_or_lead_order
-1
-1
-1
-SELECT a AND LEAD(a) OVER (ORDER BY a) AS a_and_lead_order
-FROM t1
-ORDER BY a;
-a_and_lead_order
-0
-1
-NULL
-SELECT a XOR LEAD(a) OVER (ORDER BY a) AS a_xor_lead_order
-FROM t1
-ORDER BY a;
-a_xor_lead_order
-1
-0
-NULL
-SELECT NOT LEAD(a) OVER (ORDER BY a) AS not_lead_order
-FROM t1
-ORDER BY a;
-not_lead_order
-0
-0
-NULL
-SELECT LEAD(a) OVER (ORDER BY a) is not null AS is_not_null_lead_order
-FROM t1
-ORDER BY a;
-is_not_null_lead_order
-1
-1
-0
-drop table t1;
-#
-# MDEV-13354: Server crashes in find_field_in_tables upon PS with window function and subquery
-#
-CREATE TABLE t1 (i INT, a char);
-INSERT INTO t1 VALUES (1, 'a'),(2, 'b');
-PREPARE stmt FROM "SELECT row_number() over (partition by i order by i), i FROM (SELECT * from t1) as sq";
-EXECUTE stmt;
-row_number() over (partition by i order by i) i
-1 1
-1 2
-DROP TABLE t1;
-#
-# MDEV-13384: "window" seems like a reserved column name but it's not listed as one
-#
-# Currently we allow window as an identifier, except for table aliases.
-#
-CREATE TABLE door (id INT, window VARCHAR(10));
-SELECT id
-FROM door as window;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'window' at line 2
-SELECT id, window
-FROM door;
-id window
-SELECT id, window
-FROM door as window;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'window' at line 2
-DROP TABLE door;
-#
-# MDEV-13352: Server crashes in st_join_table::remove_duplicates
-#
-CREATE TABLE t1 (i INT);
-INSERT INTO t1 VALUES (1),(2);
-SELECT DISTINCT ROW_NUMBER() OVER(), i FROM t1 WHERE 0;
-ROW_NUMBER() OVER() i
-SELECT ROW_NUMBER() OVER(), i FROM t1 WHERE 0;
-ROW_NUMBER() OVER() i
-DROP TABLE t1;
-#
-# Start of 10.3 tests
-#
diff --git a/mysql-test/r/win_as_arg_to_aggregate_func.result b/mysql-test/r/win_as_arg_to_aggregate_func.result
deleted file mode 100644
index e3f0091d6d2..00000000000
--- a/mysql-test/r/win_as_arg_to_aggregate_func.result
+++ /dev/null
@@ -1,114 +0,0 @@
-create table t1 (i int);
-insert into t1 values (5),(6),(0);
-#
-# Try out all set functions with window functions as arguments.
-# Any such usage should return an error.
-#
-select MIN( SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select MIN(DISTINCT SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select MAX( SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select MAX(DISTINCT SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select SUM( SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select SUM(DISTINCT SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select AVG( SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select AVG(DISTINCT SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select COUNT( SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select COUNT(DISTINCT SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select BIT_AND( SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select BIT_OR( SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select BIT_XOR( SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select STD( SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select STDDEV( SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select STDDEV_POP( SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select STDDEV_SAMP(SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select VARIANCE(SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select VAR_POP(SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select VAR_SAMP(SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select GROUP_CONCAT(SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-select GROUP_CONCAT(DISTINCT SUM(i) OVER (order by i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-#
-# Test that partition instead of order by in over doesn't change result.
-#
-select SUM( SUM(i) OVER (PARTITION BY i) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-#
-# Test that no arguments in OVER() clause lead to crash in this case.
-#
-select SUM( SUM(i) OVER () )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-drop table t1;
-#
-# MDEV-13774: Server Crash on Execuate of SQL Statement
-#
-create table t1 (i int);
-insert into t1 values (5),(6),(0);
-select SUM(
-IF( SUM( IF(i,1,0)) OVER (PARTITION BY i) > 0
-AND
-SUM( IF(i,1,0)) OVER (PARTITION BY i) > 0,
-1,
-0) )
-from t1;
-ERROR HY000: Window functions can not be used as arguments to group functions.
-#
-# A way to get the aggregation result.
-#
-select i, IF(SUM(IF(i,1,0)) OVER (PARTITION BY i) > 0 AND SUM( IF(i,1,0)) OVER (PARTITION BY i) > 0,1,0) AS if_col
-from t1
-order by i;
-i if_col
-0 0
-5 1
-6 1
-select sum(if_col)
-from (select IF(SUM(IF(i,1,0)) OVER (PARTITION BY i) > 0 AND SUM( IF(i,1,0)) OVER (PARTITION BY i) > 0,1,0) AS if_col
-from t1) tmp;
-sum(if_col)
-2
-drop table t1;
diff --git a/mysql-test/r/win_avg.result b/mysql-test/r/win_avg.result
deleted file mode 100644
index 7e539d933d8..00000000000
--- a/mysql-test/r/win_avg.result
+++ /dev/null
@@ -1,95 +0,0 @@
-create table t1 (
-pk int primary key,
-a int,
-b int,
-c real
-);
-insert into t1 values
-(101 , 0, 10, 1.1),
-(102 , 0, 10, 2.1),
-(103 , 1, 10, 3.1),
-(104 , 1, 10, 4.1),
-(108 , 2, 10, 5.1),
-(105 , 2, 20, 6.1),
-(106 , 2, 20, 7.1),
-(107 , 2, 20, 8.15),
-(109 , 4, 20, 9.15),
-(110 , 4, 20, 10.15),
-(111 , 5, NULL, 11.15),
-(112 , 5, 1, 12.25),
-(113 , 5, NULL, 13.35),
-(114 , 5, NULL, 14.50),
-(115 , 5, NULL, 15.65),
-(116 , 6, 1, NULL),
-(117 , 6, 1, 10),
-(118 , 6, 1, 1.1),
-(119 , 6, 1, NULL),
-(120 , 6, 1, NULL),
-(121 , 6, 1, NULL),
-(122 , 6, 1, 2.2),
-(123 , 6, 1, 20.1),
-(124 , 6, 1, -10.4),
-(125 , 6, 1, NULL),
-(126 , 6, 1, NULL),
-(127 , 6, 1, NULL);
-select pk, a, b, avg(b) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING)
-from t1;
-pk a b avg(b) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING)
-101 0 10 10.0000
-102 0 10 10.0000
-103 1 10 10.0000
-104 1 10 10.0000
-105 2 20 20.0000
-106 2 20 20.0000
-107 2 20 16.6667
-108 2 10 15.0000
-109 4 20 20.0000
-110 4 20 20.0000
-111 5 NULL 1.0000
-112 5 1 1.0000
-113 5 NULL 1.0000
-114 5 NULL NULL
-115 5 NULL NULL
-116 6 1 1.0000
-117 6 1 1.0000
-118 6 1 1.0000
-119 6 1 1.0000
-120 6 1 1.0000
-121 6 1 1.0000
-122 6 1 1.0000
-123 6 1 1.0000
-124 6 1 1.0000
-125 6 1 1.0000
-126 6 1 1.0000
-127 6 1 1.0000
-select pk, a, c, avg(c) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING)
-from t1;
-pk a c avg(c) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING)
-101 0 1.1 1.6
-102 0 2.1 1.6
-103 1 3.1 3.5999999999999996
-104 1 4.1 3.5999999999999996
-105 2 6.1 6.6
-106 2 7.1 7.116666666666667
-107 2 8.15 6.783333333333334
-108 2 5.1 6.625000000000001
-109 4 9.15 9.65
-110 4 10.15 9.65
-111 5 11.15 11.7
-112 5 12.25 12.25
-113 5 13.35 13.366666666666667
-114 5 14.5 14.5
-115 5 15.65 15.075
-116 6 NULL 10
-117 6 10 5.55
-118 6 1.1 5.55
-119 6 NULL 1.0999999999999996
-120 6 NULL NULL
-121 6 NULL 2.1999999999999997
-122 6 2.2 11.15
-123 6 20.1 3.966666666666667
-124 6 -10.4 4.85
-125 6 NULL -10.400000000000002
-126 6 NULL NULL
-127 6 NULL NULL
-drop table t1;
diff --git a/mysql-test/r/win_big-mdev-10092.result b/mysql-test/r/win_big-mdev-10092.result
deleted file mode 100644
index dc8b7b9c3bd..00000000000
--- a/mysql-test/r/win_big-mdev-10092.result
+++ /dev/null
@@ -1,328 +0,0 @@
-#
-# MDEV-10092: Server crashes in in ha_heap::rnd_pos / Table_read_cursor::get_next
-#
-CREATE TABLE `orders` (
-`o_orderkey` int(11) NOT NULL,
-`o_custkey` double DEFAULT NULL,
-`o_orderstatus` char(1) DEFAULT NULL,
-`o_totalprice` double DEFAULT NULL,
-`o_orderDATE` date DEFAULT NULL,
-`o_orderpriority` char(15) DEFAULT NULL,
-`o_clerk` char(15) DEFAULT NULL,
-`o_shippriority` int(11) DEFAULT NULL,
-`o_comment` varchar(79) DEFAULT NULL,
-KEY `i_o_orderdate` (`o_orderDATE`),
-KEY `i_o_custkey` (`o_custkey`)
-) DEFAULT CHARSET=latin1;
-create procedure add_data()
-begin
-INSERT INTO `orders` VALUES (593793,3220,'O',181553.02,'1996-10-12','5-LOW','Clerk#000000921',0,'carefully unusual instructions are final pl');
-INSERT INTO `orders` VALUES (593794,4681,'F',32306.35,'1994-03-15','2-HIGH','Clerk#000000776',0,'slyly ironic depths are blithely. final excuses across the unusual instruction');
-INSERT INTO `orders` VALUES (593795,7213,'O',206579.47,'1998-03-04','2-HIGH','Clerk#000000746',0,'ruthlessly regular theodolites atop the blith');
-INSERT INTO `orders` VALUES (593796,10486,'F',181299.81,'1993-01-13','3-MEDIUM','Clerk#000000787',0,'special theodolites detect slyly. p');
-INSERT INTO `orders` VALUES (593797,3316,'O',208149.32,'1996-12-22','1-URGENT','Clerk#000000355',0,'carefully silent theodolites use blithely acco');
-INSERT INTO `orders` VALUES (593798,1613,'F',254625.5,'1995-01-26','2-HIGH','Clerk#000000504',0,'fluffily even requests ar');
-INSERT INTO `orders` VALUES (593799,4418,'F',45122.99,'1993-07-12','1-URGENT','Clerk#000000838',0,'blithely ironic ideas boost furiously above the ironic foxes. special pac');
-INSERT INTO `orders` VALUES (593824,12013,'F',216314.23,'1992-02-28','1-URGENT','Clerk#000000074',0,'quickly furious requests play above the fur');
-INSERT INTO `orders` VALUES (593825,8101,'O',123101.26,'1997-01-23','5-LOW','Clerk#000000649',0,'regular deposits haggle after the carefully i');
-INSERT INTO `orders` VALUES (593826,6958,'O',280097.59,'1995-12-14','2-HIGH','Clerk#000000080',0,'slyly even ideas about the slyly pending escapades cajole above th');
-INSERT INTO `orders` VALUES (593827,14116,'O',103011.78,'1995-12-16','3-MEDIUM','Clerk#000000567',0,'blithely bold decoys are furiously. fluffy deposits serve flu');
-INSERT INTO `orders` VALUES (593828,6839,'F',106697.51,'1993-12-11','4-NOT SPECIFIED','Clerk#000000065',0,'carefully final theodolites wake quickly final theodolites! unus');
-INSERT INTO `orders` VALUES (593829,14605,'O',44147.73,'1997-02-18','3-MEDIUM','Clerk#000000474',0,'ironic requests use carefully against the iro');
-INSERT INTO `orders` VALUES (593830,12976,'F',167393.6,'1994-06-21','1-URGENT','Clerk#000000424',0,'dolphins haggle careful');
-INSERT INTO `orders` VALUES (593831,14107,'O',208417.51,'1997-11-18','4-NOT SPECIFIED','Clerk#000000336',0,'furiously express pinto beans after the blithely pending requests need to ');
-INSERT INTO `orders` VALUES (593856,5623,'O',143236.09,'1998-03-24','5-LOW','Clerk#000000382',0,'carefully ironic accounts impress slyly according to the ironic');
-INSERT INTO `orders` VALUES (593857,1828,'O',217673.82,'1996-01-12','1-URGENT','Clerk#000000060',0,'special, special pinto beans haggle blithely. blithel');
-INSERT INTO `orders` VALUES (593858,14755,'O',8032.07,'1997-07-20','4-NOT SPECIFIED','Clerk#000000110',0,'regular excuses use ironic pinto ');
-INSERT INTO `orders` VALUES (593859,8780,'F',356852.14,'1992-10-09','2-HIGH','Clerk#000000510',0,'furiously regular accounts eat across the carefully ');
-INSERT INTO `orders` VALUES (593860,13318,'O',18413.14,'1998-01-10','2-HIGH','Clerk#000000673',0,'pending pains cajole furiously alo');
-INSERT INTO `orders` VALUES (593861,1175,'O',28859.21,'1996-09-10','4-NOT SPECIFIED','Clerk#000000680',0,'carefully silent instructi');
-INSERT INTO `orders` VALUES (593862,7787,'F',202891.72,'1992-02-27','5-LOW','Clerk#000000988',0,'slyly express requests sleep. express dependencies wake bli');
-INSERT INTO `orders` VALUES (593863,1897,'O',33062.05,'1998-06-29','1-URGENT','Clerk#000000117',0,'accounts integrate carefully across the fluffily even warhorses');
-INSERT INTO `orders` VALUES (593888,5656,'O',20952.26,'1997-02-04','3-MEDIUM','Clerk#000000735',0,'requests could have to cajole about the special, final ');
-INSERT INTO `orders` VALUES (593889,2692,'F',282718.42,'1992-08-02','4-NOT SPECIFIED','Clerk#000000669',0,'regular deposits haggle fluff');
-INSERT INTO `orders` VALUES (593890,3685,'O',34012.74,'1996-06-17','5-LOW','Clerk#000000993',0,'furiously even requests');
-INSERT INTO `orders` VALUES (593891,10333,'F',182791.4,'1993-01-23','4-NOT SPECIFIED','Clerk#000000098',0,'slyly final platelets doubt');
-INSERT INTO `orders` VALUES (593892,5687,'F',224381.48,'1994-09-18','2-HIGH','Clerk#000000294',0,'blithely bold epitaphs sleep after the carefully express in');
-INSERT INTO `orders` VALUES (593893,5437,'F',124300.91,'1993-08-04','4-NOT SPECIFIED','Clerk#000000302',0,'daring instructions alongside of the si');
-INSERT INTO `orders` VALUES (593894,1732,'F',150438.64,'1993-11-07','3-MEDIUM','Clerk#000000046',0,'quickly special accounts integrate by the even, dogged platelets? slowly ');
-INSERT INTO `orders` VALUES (593895,12230,'O',47380.97,'1997-03-23','2-HIGH','Clerk#000000168',0,'fluffily permanent instructions alongside of the furiously even pack');
-INSERT INTO `orders` VALUES (593920,13871,'F',2919.68,'1992-01-29','5-LOW','Clerk#000000597',0,'quickly regular foxes across the furiously bold accounts wake car');
-INSERT INTO `orders` VALUES (593921,6664,'F',139065.79,'1992-04-21','5-LOW','Clerk#000000017',0,'fluffily final deposits are carefully. quickly special pinto beans bel');
-INSERT INTO `orders` VALUES (593922,2504,'O',179041.45,'1997-04-05','2-HIGH','Clerk#000000902',0,'final pinto beans are furiously. ');
-INSERT INTO `orders` VALUES (593923,4978,'O',258843,'1998-02-27','1-URGENT','Clerk#000000654',0,'carefully final asymptotes according to the regular dependencie');
-INSERT INTO `orders` VALUES (593924,7550,'O',232280.81,'1995-10-28','3-MEDIUM','Clerk#000000063',0,'fluffily ironic packages haggle carefully pending platelets. q');
-INSERT INTO `orders` VALUES (593925,12226,'O',319755.48,'1995-09-01','3-MEDIUM','Clerk#000000308',0,'quickly pending packages throughout the quickly unusual requests');
-INSERT INTO `orders` VALUES (593926,2819,'F',204662.4,'1994-11-07','4-NOT SPECIFIED','Clerk#000000298',0,'blithely special grouches cajole ironic instructions. slyly pendin');
-INSERT INTO `orders` VALUES (593927,593,'F',188162.64,'1995-03-04','1-URGENT','Clerk#000000263',0,'express, unusual deposits boost furiously after the unusual dolphi');
-INSERT INTO `orders` VALUES (593952,9362,'P',318688.16,'1995-03-05','4-NOT SPECIFIED','Clerk#000000468',0,'ruthless requests must have to are carefully? special pa');
-INSERT INTO `orders` VALUES (593953,11410,'O',166717.28,'1998-07-29','5-LOW','Clerk#000000509',0,'even, regular instructions snooze. slyly ironic packages nag fluffily.');
-INSERT INTO `orders` VALUES (593954,8875,'O',132909.37,'1996-08-29','3-MEDIUM','Clerk#000000825',0,'special decoys integrate carefully. care');
-INSERT INTO `orders` VALUES (593955,12494,'O',73329.07,'1995-08-05','1-URGENT','Clerk#000000561',0,'quickly special request');
-INSERT INTO `orders` VALUES (593956,1390,'O',187837.11,'1995-10-17','5-LOW','Clerk#000000797',0,'silent, pending foxes');
-INSERT INTO `orders` VALUES (593957,10106,'F',196969.46,'1993-04-03','2-HIGH','Clerk#000000566',0,'blithely ruthless excuses boost slyly about the requests. careful');
-INSERT INTO `orders` VALUES (593958,14770,'F',103528.82,'1993-12-27','3-MEDIUM','Clerk#000000598',0,'carefully special deposits eat above the q');
-INSERT INTO `orders` VALUES (593959,14566,'O',156600.32,'1996-11-16','2-HIGH','Clerk#000000030',0,'accounts are quickly bold packages. carefully ironic depos');
-INSERT INTO `orders` VALUES (593984,4924,'O',47149.15,'1995-05-06','3-MEDIUM','Clerk#000000120',0,'regular asymptotes haggle slyly abo');
-INSERT INTO `orders` VALUES (593985,5185,'O',152533.91,'1997-08-04','3-MEDIUM','Clerk#000000575',0,'blithely special dolphins are even requests. carefully eve');
-INSERT INTO `orders` VALUES (593986,14257,'O',109734.28,'1998-06-05','3-MEDIUM','Clerk#000000930',0,'carefully final instructions against the slyly');
-INSERT INTO `orders` VALUES (593987,5818,'F',64541.52,'1994-04-13','3-MEDIUM','Clerk#000000259',0,'slyly pending deposits are furiously. regular requests h');
-INSERT INTO `orders` VALUES (593988,1178,'F',249608.42,'1994-10-01','2-HIGH','Clerk#000000266',0,'fluffily regular foxes toward the furiously bold accounts sleep furiously');
-INSERT INTO `orders` VALUES (593989,5173,'P',61508.55,'1995-03-02','2-HIGH','Clerk#000000374',0,'slyly express deposits wake between ');
-INSERT INTO `orders` VALUES (593990,8395,'O',129696.17,'1997-12-30','4-NOT SPECIFIED','Clerk#000000570',0,'carefully final requests haggle furiously fluffily final accou');
-INSERT INTO `orders` VALUES (593991,1894,'O',145691.27,'1998-04-09','5-LOW','Clerk#000000294',0,'slyly final notornis haggle carefull');
-INSERT INTO `orders` VALUES (594016,14935,'F',144592.29,'1992-10-20','3-MEDIUM','Clerk#000000602',0,'furiously express ideas cajole quickl');
-INSERT INTO `orders` VALUES (594017,892,'F',147267.55,'1994-12-10','1-URGENT','Clerk#000000419',0,'close, pending packages affix blithely. slyly regular reque');
-end;
-//
-call add_data();
-call add_data();
-set sort_buffer_size = 1024;
-flush status;
-select o_custkey, Avg(o_custkey) OVER ( ORDER BY o_custkey ) from orders;
-o_custkey Avg(o_custkey) OVER ( ORDER BY o_custkey )
-593 593
-593 593
-892 742.5
-892 742.5
-1175 886.6666666666666
-1175 886.6666666666666
-1178 959.5
-1178 959.5
-1390 1045.6
-1390 1045.6
-1613 1140.1666666666667
-1613 1140.1666666666667
-1732 1224.7142857142858
-1732 1224.7142857142858
-1828 1300.125
-1828 1300.125
-1894 1366.111111111111
-1894 1366.111111111111
-1897 1419.2
-1897 1419.2
-2504 1517.8181818181818
-2504 1517.8181818181818
-2692 1615.6666666666667
-2692 1615.6666666666667
-2819 1708.2307692307693
-2819 1708.2307692307693
-3220 1816.2142857142858
-3220 1816.2142857142858
-3316 1916.2
-3316 1916.2
-3685 2026.75
-3685 2026.75
-4418 2167.4117647058824
-4418 2167.4117647058824
-4681 2307.0555555555557
-4681 2307.0555555555557
-4924 2444.7894736842104
-4924 2444.7894736842104
-4978 2571.45
-4978 2571.45
-5173 2695.3333333333335
-5173 2695.3333333333335
-5185 2808.5
-5185 2808.5
-5437 2922.782608695652
-5437 2922.782608695652
-5623 3035.2916666666665
-5623 3035.2916666666665
-5656 3140.12
-5656 3140.12
-5687 3238.076923076923
-5687 3238.076923076923
-5818 3333.6296296296296
-5818 3333.6296296296296
-6664 3452.5714285714284
-6664 3452.5714285714284
-6839 3569.344827586207
-6839 3569.344827586207
-6958 3682.3
-6958 3682.3
-7213 3796.1935483870966
-7213 3796.1935483870966
-7550 3913.5
-7550 3913.5
-7787 4030.878787878788
-7787 4030.878787878788
-8101 4150.588235294118
-8101 4150.588235294118
-8395 4271.857142857143
-8395 4271.857142857143
-8780 4397.083333333333
-8780 4397.083333333333
-8875 4518.108108108108
-8875 4518.108108108108
-9362 4645.578947368421
-9362 4645.578947368421
-10106 4785.589743589743
-10106 4785.589743589743
-10333 4924.275
-10333 4924.275
-10486 5059.926829268293
-10486 5059.926829268293
-11410 5211.119047619048
-11410 5211.119047619048
-12013 5369.302325581395
-12013 5369.302325581395
-12226 5525.136363636364
-12226 5525.136363636364
-12230 5674.133333333333
-12230 5674.133333333333
-12494 5822.391304347826
-12494 5822.391304347826
-12976 5974.595744680851
-12976 5974.595744680851
-13318 6127.583333333333
-13318 6127.583333333333
-13871 6285.6122448979595
-13871 6285.6122448979595
-14107 6442.04
-14107 6442.04
-14116 6592.509803921569
-14116 6592.509803921569
-14257 6739.903846153846
-14257 6739.903846153846
-14566 6887.566037735849
-14566 6887.566037735849
-14605 7030.481481481482
-14605 7030.481481481482
-14755 7170.927272727273
-14755 7170.927272727273
-14770 7306.625
-14770 7306.625
-14935 7440.456140350877
-14935 7440.456140350877
-select variable_name,
-case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-from information_schema.session_status
-where variable_name like 'Sort_merge_passes';
-variable_name case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-SORT_MERGE_PASSES WITH PASSES
-flush status;
-select o_custkey, Avg(o_custkey) OVER ( ORDER BY o_custkey RANGE CURRENT ROW ) from orders;
-o_custkey Avg(o_custkey) OVER ( ORDER BY o_custkey RANGE CURRENT ROW )
-593 593
-593 593
-892 892
-892 892
-1175 1175
-1175 1175
-1178 1178
-1178 1178
-1390 1390
-1390 1390
-1613 1613
-1613 1613
-1732 1732
-1732 1732
-1828 1828
-1828 1828
-1894 1894
-1894 1894
-1897 1897
-1897 1897
-2504 2504
-2504 2504
-2692 2692
-2692 2692
-2819 2819
-2819 2819
-3220 3220
-3220 3220
-3316 3316
-3316 3316
-3685 3685
-3685 3685
-4418 4418
-4418 4418
-4681 4681
-4681 4681
-4924 4924
-4924 4924
-4978 4978
-4978 4978
-5173 5173
-5173 5173
-5185 5185
-5185 5185
-5437 5437
-5437 5437
-5623 5623
-5623 5623
-5656 5656
-5656 5656
-5687 5687
-5687 5687
-5818 5818
-5818 5818
-6664 6664
-6664 6664
-6839 6839
-6839 6839
-6958 6958
-6958 6958
-7213 7213
-7213 7213
-7550 7550
-7550 7550
-7787 7787
-7787 7787
-8101 8101
-8101 8101
-8395 8395
-8395 8395
-8780 8780
-8780 8780
-8875 8875
-8875 8875
-9362 9362
-9362 9362
-10106 10106
-10106 10106
-10333 10333
-10333 10333
-10486 10486
-10486 10486
-11410 11410
-11410 11410
-12013 12013
-12013 12013
-12226 12226
-12226 12226
-12230 12230
-12230 12230
-12494 12494
-12494 12494
-12976 12976
-12976 12976
-13318 13318
-13318 13318
-13871 13871
-13871 13871
-14107 14107
-14107 14107
-14116 14116
-14116 14116
-14257 14257
-14257 14257
-14566 14566
-14566 14566
-14605 14605
-14605 14605
-14755 14755
-14755 14755
-14770 14770
-14770 14770
-14935 14935
-14935 14935
-select variable_name,
-case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-from information_schema.session_status
-where variable_name like 'Sort_merge_passes';
-variable_name case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-SORT_MERGE_PASSES WITH PASSES
-drop table orders;
-drop procedure add_data;
diff --git a/mysql-test/r/win_big-mdev-11697.result b/mysql-test/r/win_big-mdev-11697.result
deleted file mode 100644
index e5dc271839c..00000000000
--- a/mysql-test/r/win_big-mdev-11697.result
+++ /dev/null
@@ -1,71 +0,0 @@
-create table test_table (id int, random_data varchar(36), static_int int, static_varchar varchar(10));
-insert into test_table(id, random_data, static_int, static_varchar)
-select id, random_data, 42, 'Hello'
- from (
-with recursive data_generator(id, random_data) as (
-select 1 as id, uuid() as random_data
-union all
-select id + 1, uuid() from data_generator where id < 1000
-)
-select * from data_generator
-) as a;
-commit;
-analyze table test_table;
-Table Op Msg_type Msg_text
-test.test_table analyze status OK
-explain select * from (select id, lead(id) over(order by id) next_id from test_table order by id) a limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 1000
-2 DERIVED test_table ALL NULL NULL NULL NULL 1000 Using temporary; Using filesort
-select * from (select id, lead(id) over(order by id) next_id from test_table order by id) a limit 10;
-id next_id
-1 2
-2 3
-3 4
-4 5
-5 6
-6 7
-7 8
-8 9
-9 10
-10 11
-drop table if exists test_table;
-create table test_table (id int, random_data varchar(36), static_int int, static_varchar varchar(10));
-insert into test_table(id, random_data, static_int, static_varchar)
-select id, random_data, 42, 'Hello'
- from (
-with recursive data_generator(id, random_data) as (
-select 1 as id, uuid() as random_data
-union all
-select id + 1, uuid() from data_generator where id < 100000
-)
-select * from data_generator
-) as a;
-commit;
-analyze table test_table;
-Table Op Msg_type Msg_text
-test.test_table analyze status OK
-explain select * from (select id, lead(id) over(order by id) next_id from test_table order by id) a limit 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY <derived2> ALL NULL NULL NULL NULL 100000
-2 DERIVED test_table ALL NULL NULL NULL NULL 100000 Using temporary; Using filesort
-flush status;
-select * from (select id, lead(id) over(order by id) next_id from test_table order by id) a limit 10;
-id next_id
-1 2
-2 3
-3 4
-4 5
-5 6
-6 7
-7 8
-8 9
-9 10
-10 11
-select variable_name,
-case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-from information_schema.session_status
-where variable_name like 'Sort_merge_passes';
-variable_name case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-SORT_MERGE_PASSES WITH PASSES
-drop table test_table;
diff --git a/mysql-test/r/win_big.result b/mysql-test/r/win_big.result
deleted file mode 100644
index c8b27b9a1aa..00000000000
--- a/mysql-test/r/win_big.result
+++ /dev/null
@@ -1,111 +0,0 @@
-create table t0 (a int);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(a int);
-insert into t1 select A.a + B.a* 10 + C.a * 100 from t0 A, t0 B, t0 C;
-create table t10 (a int, b int, c int);
-insert into t10
-select
-A.a + 1000*B.a,
-A.a + 1000*B.a,
-A.a + 1000*B.a
-from t1 A, t0 B
-order by A.a+1000*B.a;
-#################################################################
-## Try a basic example
-flush status;
-create table t21 as
-select
-sum(b) over (order by a rows between 2 preceding and 2 following) as SUM_B
-from
-t10;
-select variable_name,
-case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-from information_schema.session_status
-where variable_name like 'Sort_merge_passes';
-variable_name case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-SORT_MERGE_PASSES NO PASSES
-set sort_buffer_size=1024;
-flush status;
-create table t22 as
-select
-sum(b) over (order by a rows between 2 preceding and 2 following) as SUM_B
-from
-t10;
-select variable_name,
-case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-from information_schema.session_status
-where variable_name like 'Sort_merge_passes';
-variable_name case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-SORT_MERGE_PASSES WITH PASSES
-include/diff_tables.inc [t21, t22]
-drop table t21, t22;
-#################################################################
-# Try many cursors
-set sort_buffer_size=default;
-flush status;
-create table t21 as
-select
-sum(b) over (order by a rows between 2 preceding and 2 following) as SUM_B1,
-sum(b) over (order by a rows between 5 preceding and 5 following) as SUM_B2,
-sum(b) over (order by a rows between 20 preceding and 20 following) as SUM_B3
-from
-t10;
-select variable_name,
-case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-from information_schema.session_status
-where variable_name like 'Sort_merge_passes';
-variable_name case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-SORT_MERGE_PASSES NO PASSES
-set sort_buffer_size=1024;
-flush status;
-create table t22 as
-select
-sum(b) over (order by a rows between 2 preceding and 2 following) as SUM_B1,
-sum(b) over (order by a rows between 5 preceding and 5 following) as SUM_B2,
-sum(b) over (order by a rows between 20 preceding and 20 following) as SUM_B3
-from
-t10;
-select variable_name,
-case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-from information_schema.session_status
-where variable_name like 'Sort_merge_passes';
-variable_name case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-SORT_MERGE_PASSES WITH PASSES
-include/diff_tables.inc [t21, t22]
-drop table t21, t22;
-#################################################################
-# Try having cursors pointing at different IO_CACHE pages
-# in the IO_CACHE
-set sort_buffer_size=default;
-flush status;
-create table t21 as
-select
-a,
-sum(b) over (order by a range between 5000 preceding and 5000 following) as SUM_B1
-from
-t10;
-select variable_name,
-case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-from information_schema.session_status
-where variable_name like 'Sort_merge_passes';
-variable_name case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-SORT_MERGE_PASSES NO PASSES
-set sort_buffer_size=1024;
-flush status;
-create table t22 as
-select
-a,
-sum(b) over (order by a range between 5000 preceding and 5000 following) as SUM_B1
-from
-t10;
-select variable_name,
-case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-from information_schema.session_status
-where variable_name like 'Sort_merge_passes';
-variable_name case when variable_value > 0 then 'WITH PASSES' else 'NO PASSES' end
-SORT_MERGE_PASSES WITH PASSES
-include/diff_tables.inc [t21, t22]
-drop table t21, t22;
-#################################################################
-drop table t10;
-drop table t0,t1;
diff --git a/mysql-test/r/win_bit.result b/mysql-test/r/win_bit.result
deleted file mode 100644
index ac7625beb90..00000000000
--- a/mysql-test/r/win_bit.result
+++ /dev/null
@@ -1,117 +0,0 @@
-create table t1 (
-pk int primary key,
-a int,
-b int
-);
-create table t2 (
-pk int primary key,
-a int,
-b int
-);
-insert into t1 values
-( 1 , 0, 1),
-( 2 , 0, 2),
-( 3 , 1, 4),
-( 4 , 1, 8),
-( 5 , 2, 32),
-( 6 , 2, 64),
-( 7 , 2, 128),
-( 8 , 2, 16);
-insert into t2 values
-( 1 , 0, 2),
-( 2 , 0, 2),
-( 3 , 1, 4),
-( 4 , 1, 4),
-( 5 , 2, 16),
-( 6 , 2, 64),
-( 7 , 2, 128),
-( 8 , 2, 16);
-# Test bit functions on only one partition.
-select pk, a, b,
-bit_or(b) over (order by pk) as bit_or,
-bit_and(b) over (order by pk) as bit_and,
-bit_xor(b) over (order by pk) as bit_xor
-from t1;
-pk a b bit_or bit_and bit_xor
-1 0 1 1 1 1
-2 0 2 3 0 3
-3 1 4 7 0 7
-4 1 8 15 0 15
-5 2 32 47 0 47
-6 2 64 111 0 111
-7 2 128 239 0 239
-8 2 16 255 0 255
-select pk, a, b,
-bit_or(b) over (order by pk) as bit_or,
-bit_and(b) over (order by pk) as bit_and,
-bit_xor(b) over (order by pk) as bit_xor
-from t2;
-pk a b bit_or bit_and bit_xor
-1 0 2 2 2 2
-2 0 2 2 2 0
-3 1 4 6 0 4
-4 1 4 6 0 0
-5 2 16 22 0 16
-6 2 64 86 0 80
-7 2 128 214 0 208
-8 2 16 214 0 192
-# Test multiple partitions with bit functions.
-select pk, a, b,
-bit_or(b) over (partition by a order by pk) as bit_or,
-bit_and(b) over (partition by a order by pk) as bit_and,
-bit_xor(b) over (partition by a order by pk) as bit_xor
-from t1;
-pk a b bit_or bit_and bit_xor
-1 0 1 1 1 1
-2 0 2 3 0 3
-3 1 4 4 4 4
-4 1 8 12 0 12
-5 2 32 32 32 32
-6 2 64 96 0 96
-7 2 128 224 0 224
-8 2 16 240 0 240
-select pk, a, b,
-bit_or(b) over (partition by a order by pk) as bit_or,
-bit_and(b) over (partition by a order by pk) as bit_and,
-bit_xor(b) over (partition by a order by pk) as bit_xor
-from t2;
-pk a b bit_or bit_and bit_xor
-1 0 2 2 2 2
-2 0 2 2 2 0
-3 1 4 4 4 4
-4 1 4 4 4 0
-5 2 16 16 16 16
-6 2 64 80 0 80
-7 2 128 208 0 208
-8 2 16 208 0 192
-# Test remove function for bit functions using a sliding window.
-select pk, a, b,
-bit_or(b) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING) as bit_or,
-bit_and(b) over (partition by a order by pk) as bit_and,
-bit_xor(b) over (partition by a order by pk) as bit_xor
-from t1;
-pk a b bit_or bit_and bit_xor
-1 0 1 3 1 1
-2 0 2 3 0 3
-3 1 4 12 4 4
-4 1 8 12 0 12
-5 2 32 96 32 32
-6 2 64 224 0 96
-7 2 128 208 0 224
-8 2 16 144 0 240
-select pk, a, b,
-bit_or(b) over (partition by a order by pk) as bit_or,
-bit_and(b) over (partition by a order by pk) as bit_and,
-bit_xor(b) over (partition by a order by pk) as bit_xor
-from t2;
-pk a b bit_or bit_and bit_xor
-1 0 2 2 2 2
-2 0 2 2 2 0
-3 1 4 4 4 4
-4 1 4 4 4 0
-5 2 16 16 16 16
-6 2 64 80 0 80
-7 2 128 208 0 208
-8 2 16 208 0 192
-drop table t1;
-drop table t2;
diff --git a/mysql-test/r/win_empty_over.result b/mysql-test/r/win_empty_over.result
deleted file mode 100644
index a5ee74b943a..00000000000
--- a/mysql-test/r/win_empty_over.result
+++ /dev/null
@@ -1,145 +0,0 @@
-create table t1 (
-pk int primary key,
-a int,
-b int,
-c char(10),
-d decimal(10, 3),
-e real
-);
-insert into t1 values
-( 1, 0, 1, 'one', 0.1, 0.001),
-( 2, 0, 2, 'two', 0.2, 0.002),
-( 3, 0, 3, 'three', 0.3, 0.003),
-( 4, 1, 2, 'three', 0.4, 0.004),
-( 5, 1, 1, 'two', 0.5, 0.005),
-( 6, 1, 1, 'one', 0.6, 0.006),
-( 7, 2, NULL, 'n_one', 0.5, 0.007),
-( 8, 2, 1, 'n_two', NULL, 0.008),
-( 9, 2, 2, NULL, 0.7, 0.009),
-(10, 2, 0, 'n_four', 0.8, 0.010),
-(11, 2, 10, NULL, 0.9, NULL);
-select pk, row_number() over () from t1;
-pk row_number() over ()
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 9
-10 10
-11 11
-explain FORMAT=JSON select pk, row_number() over () from t1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "pk"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "index",
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["pk"],
- "rows": 11,
- "filtered": 100,
- "using_index": true
- }
- }
- }
- }
-}
-explain FORMAT=JSON select row_number() over (), pk from t1;
-EXPLAIN
-{
- "query_block": {
- "select_id": 1,
- "window_functions_computation": {
- "sorts": {
- "filesort": {
- "sort_key": "`row_number() over ()`"
- }
- },
- "temporary_table": {
- "table": {
- "table_name": "t1",
- "access_type": "index",
- "key": "PRIMARY",
- "key_length": "4",
- "used_key_parts": ["pk"],
- "rows": 11,
- "filtered": 100,
- "using_index": true
- }
- }
- }
- }
-}
-select row_number() over () from (select 4) as t;
-row_number() over ()
-1
-select min(a) over (), max(a) over (), a, row_number() over ()
-from t1
-where a = 0;
-min(a) over () max(a) over () a row_number() over ()
-0 0 0 1
-0 0 0 2
-0 0 0 3
-select a, min(a) over (), max(a) over (), row_number() over ()
-from t1
-where a = 0;
-a min(a) over () max(a) over () row_number() over ()
-0 0 0 1
-0 0 0 2
-0 0 0 3
-select min(a) over () + 1, max(a) over (), row_number() over ()
-from t1
-where a = 0;
-min(a) over () + 1 max(a) over () row_number() over ()
-1 0 1
-1 0 2
-1 0 3
-select min(a) over () + a, max(a) over (), row_number() over ()
-from t1
-where a = 1;
-min(a) over () + a max(a) over () row_number() over ()
-2 1 1
-2 1 2
-2 1 3
-select a + min(a) over (), max(a) over (), row_number() over ()
-from t1
-where a = 1;
-a + min(a) over () max(a) over () row_number() over ()
-2 1 1
-2 1 2
-2 1 3
-select a + min(a) over () from t1 where a = 1;
-a + min(a) over ()
-2
-2
-2
-create view win_view
-as (select a, min(a) over () from t1 where a = 1);
-select * from win_view;
-a min(a) over ()
-1 1
-1 1
-1 1
-drop view win_view;
-create view win_view
-as (select a, max(a + 1) over () from t1 where a = 1);
-select * from win_view;
-a max(a + 1) over ()
-1 2
-1 2
-1 2
-drop view win_view;
-drop table t1;
diff --git a/mysql-test/r/win_first_last_value.result b/mysql-test/r/win_first_last_value.result
deleted file mode 100644
index 9de394ef9e0..00000000000
--- a/mysql-test/r/win_first_last_value.result
+++ /dev/null
@@ -1,145 +0,0 @@
-create table t1 (
-pk int primary key,
-a int,
-b int,
-c char(10),
-d decimal(10, 3),
-e real
-);
-insert into t1 values
-( 1, 0, 1, 'one', 0.1, 0.001),
-( 2, 0, 2, 'two', 0.2, 0.002),
-( 3, 0, 3, 'three', 0.3, 0.003),
-( 4, 1, 2, 'three', 0.4, 0.004),
-( 5, 1, 1, 'two', 0.5, 0.005),
-( 6, 1, 1, 'one', 0.6, 0.006),
-( 7, 2, NULL, 'n_one', 0.5, 0.007),
-( 8, 2, 1, 'n_two', NULL, 0.008),
-( 9, 2, 2, NULL, 0.7, 0.009),
-(10, 2, 0, 'n_four', 0.8, 0.010),
-(11, 2, 10, NULL, 0.9, NULL);
-select pk, first_value(pk) over (order by pk),
-last_value(pk) over (order by pk),
-first_value(pk) over (order by pk desc),
-last_value(pk) over (order by pk desc)
-from t1
-order by pk desc;
-pk first_value(pk) over (order by pk) last_value(pk) over (order by pk) first_value(pk) over (order by pk desc) last_value(pk) over (order by pk desc)
-11 1 11 11 11
-10 1 10 11 10
-9 1 9 11 9
-8 1 8 11 8
-7 1 7 11 7
-6 1 6 11 6
-5 1 5 11 5
-4 1 4 11 4
-3 1 3 11 3
-2 1 2 11 2
-1 1 1 11 1
-select pk,
-first_value(pk) over (order by pk
-RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING),
-last_value(pk) over (order by pk
-RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING),
-first_value(pk) over (order by pk desc
-RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING),
-last_value(pk) over (order by pk desc
-RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)
-from t1
-order by pk;
-pk first_value(pk) over (order by pk
-RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) last_value(pk) over (order by pk
-RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) first_value(pk) over (order by pk desc
-RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) last_value(pk) over (order by pk desc
-RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)
-1 1 11 11 1
-2 1 11 11 1
-3 1 11 11 1
-4 1 11 11 1
-5 1 11 11 1
-6 1 11 11 1
-7 1 11 11 1
-8 1 11 11 1
-9 1 11 11 1
-10 1 11 11 1
-11 1 11 11 1
-select pk,
-first_value(pk) over (order by pk desc),
-last_value(pk) over (order by pk desc)
-from t1;
-pk first_value(pk) over (order by pk desc) last_value(pk) over (order by pk desc)
-1 11 1
-2 11 2
-3 11 3
-4 11 4
-5 11 5
-6 11 6
-7 11 7
-8 11 8
-9 11 9
-10 11 10
-11 11 11
-select pk, a, b, c, d, e,
-first_value(b) over (partition by a order by pk) as fst_b,
-last_value(b) over (partition by a order by pk) as lst_b,
-first_value(c) over (partition by a order by pk) as fst_c,
-last_value(c) over (partition by a order by pk) as lst_c,
-first_value(d) over (partition by a order by pk) as fst_d,
-last_value(d) over (partition by a order by pk) as lst_d,
-first_value(e) over (partition by a order by pk) as fst_e,
-last_value(e) over (partition by a order by pk) as lst_e
-from t1;
-pk a b c d e fst_b lst_b fst_c lst_c fst_d lst_d fst_e lst_e
-1 0 1 one 0.100 0.001 1 1 one one 0.100 0.100 0.001 0.001
-2 0 2 two 0.200 0.002 1 2 one two 0.100 0.200 0.001 0.002
-3 0 3 three 0.300 0.003 1 3 one three 0.100 0.300 0.001 0.003
-4 1 2 three 0.400 0.004 2 2 three three 0.400 0.400 0.004 0.004
-5 1 1 two 0.500 0.005 2 1 three two 0.400 0.500 0.004 0.005
-6 1 1 one 0.600 0.006 2 1 three one 0.400 0.600 0.004 0.006
-7 2 NULL n_one 0.500 0.007 NULL NULL n_one n_one 0.500 0.500 0.007 0.007
-8 2 1 n_two NULL 0.008 NULL 1 n_one n_two 0.500 NULL 0.007 0.008
-9 2 2 NULL 0.700 0.009 NULL 2 n_one NULL 0.500 0.700 0.007 0.009
-10 2 0 n_four 0.800 0.01 NULL 0 n_one n_four 0.500 0.800 0.007 0.01
-11 2 10 NULL 0.900 NULL NULL 10 n_one NULL 0.500 0.900 0.007 NULL
-drop table t1;
-#
-# MDEV-11746: Wrong result upon using FIRST_VALUE with a window frame
-#
-create table t1 (i int);
-insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
-select i,
-first_value(i) OVER (order by i rows between CURRENT ROW and 1 FOLLOWING) as fst_1f,
-last_value(i) OVER (order by i rows between CURRENT ROW and 1 FOLLOWING) as last_1f,
-first_value(i) OVER (order by i rows between 1 PRECEDING AND 1 FOLLOWING) as fst_1p1f,
-last_value(i) OVER (order by i rows between 1 PRECEDING AND 1 FOLLOWING) as fst_1p1f,
-first_value(i) OVER (order by i rows between 2 PRECEDING AND 1 PRECEDING) as fst_2p1p,
-last_value(i) OVER (order by i rows between 2 PRECEDING AND 1 PRECEDING) as fst_2p1p,
-first_value(i) OVER (order by i rows between 1 FOLLOWING AND 2 FOLLOWING) as fst_1f2f,
-last_value(i) OVER (order by i rows between 1 FOLLOWING AND 2 FOLLOWING) as fst_1f2f
-from t1;
-i fst_1f last_1f fst_1p1f fst_1p1f fst_2p1p fst_2p1p fst_1f2f fst_1f2f
-1 1 2 1 2 NULL NULL 2 3
-2 2 3 1 3 1 1 3 4
-3 3 4 2 4 1 2 4 5
-4 4 5 3 5 2 3 5 6
-5 5 6 4 6 3 4 6 7
-6 6 7 5 7 4 5 7 8
-7 7 8 6 8 5 6 8 9
-8 8 9 7 9 6 7 9 10
-9 9 10 8 10 7 8 10 10
-10 10 10 9 10 8 9 NULL NULL
-drop table t1;
-#
-# MDEV-12861 FIRST_VALUE() does not preserve the exact data type
-#
-CREATE TABLE t1 (a INT, b INT, c FLOAT);
-INSERT INTO t1 VALUES (1,1,1),(1,2,2),(2,1,1),(2,2,2);
-CREATE TABLE t2 AS SELECT a, FIRST_VALUE(b) OVER(), FIRST_VALUE(c) OVER() FROM t1 GROUP BY a;
-SHOW CREATE TABLE t2;
-Table Create Table
-t2 CREATE TABLE `t2` (
- `a` int(11) DEFAULT NULL,
- `FIRST_VALUE(b) OVER()` int(11) DEFAULT NULL,
- `FIRST_VALUE(c) OVER()` float DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1
-DROP TABLE t2,t1;
diff --git a/mysql-test/r/win_i_s.result b/mysql-test/r/win_i_s.result
deleted file mode 100644
index 8678c455b45..00000000000
--- a/mysql-test/r/win_i_s.result
+++ /dev/null
@@ -1,38 +0,0 @@
-show status like '%window%';
-Variable_name Value
-Feature_window_functions 0
-create table t1 (a int, b int);
-insert into t1 values (1, 10), (2, 20), (3, 30);
-select a, b, rank() over (order by a) from t1;
-a b rank() over (order by a)
-1 10 1
-2 20 2
-3 30 3
-show status like '%window%';
-Variable_name Value
-Feature_window_functions 1
-select a, b, rank() over (order by a), sum(a) over (order by a) from t1;
-a b rank() over (order by a) sum(a) over (order by a)
-1 10 1 1
-2 20 2 3
-3 30 3 6
-show status like '%window%';
-Variable_name Value
-Feature_window_functions 2
-select t_a.r1, t_b.r2
-from (select a, b, rank() over (order by a) as r1 from t1) t_a,
-(select a, b, row_number() over (order by a) as r2 from t1) t_b;
-r1 r2
-1 1
-1 2
-1 3
-2 1
-2 2
-2 3
-3 1
-3 2
-3 3
-show status like '%window%';
-Variable_name Value
-Feature_window_functions 4
-drop table t1;
diff --git a/mysql-test/r/win_insert_select.result b/mysql-test/r/win_insert_select.result
deleted file mode 100644
index bb25d052840..00000000000
--- a/mysql-test/r/win_insert_select.result
+++ /dev/null
@@ -1,93 +0,0 @@
-CREATE TABLE t1 (c1 INT, c2 VARCHAR(30));
-PREPARE populate_table FROM "INSERT into t1 values (1, 'manual_insert_1'),
- (4, 'manual_insert_2')";
-INSERT INTO t1 SELECT row_number() over(), "should_not_add_any_rows" FROM t1;
-INSERT INTO t1 SELECT 1 + row_number() over(), "should_not_add_any_rows" FROM t1;
-EXECUTE populate_table;
-INSERT INTO t1 SELECT 10 + row_number() over(), "should repeat 2 times [11-12]" FROM t1;
-SELECT c1, c2 FROM t1 ORDER BY c2, c1;
-c1 c2
-1 manual_insert_1
-4 manual_insert_2
-11 should repeat 2 times [11-12]
-12 should repeat 2 times [11-12]
-DELETE FROM t1;
-EXECUTE populate_table;
-INSERT INTO t1
-SELECT 10 + (dense_rank() over(order by c1)), "dense_rank_insert" from t1;
-SELECT c1, c2 FROM t1 ORDER BY c2, c1;
-c1 c2
-11 dense_rank_insert
-12 dense_rank_insert
-1 manual_insert_1
-4 manual_insert_2
-DELETE FROM t1;
-EXECUTE populate_table;
-INSERT INTO t1
-SELECT 100 + (rank() over(order by c1)), "rank_insert" from t1;
-SELECT c1, c2 FROM t1 ORDER BY c2, c1;
-c1 c2
-1 manual_insert_1
-4 manual_insert_2
-101 rank_insert
-102 rank_insert
-DELETE FROM t1;
-EXECUTE populate_table;
-INSERT INTO t1
-SELECT 100 + (ntile(10) over(order by c1)), "ntile_insert" from t1;
-SELECT c1, c2 FROM t1 ORDER BY c2, c1;
-c1 c2
-1 manual_insert_1
-4 manual_insert_2
-101 ntile_insert
-102 ntile_insert
-DELETE FROM t1;
-EXECUTE populate_table;
-INSERT INTO t1
-SELECT 1000 + (percent_rank() over(order by c1)), "percent_rank_insert" from t1;
-SELECT c1, c2 FROM t1 ORDER BY c2, c1;
-c1 c2
-1 manual_insert_1
-4 manual_insert_2
-1000 percent_rank_insert
-1001 percent_rank_insert
-DELETE FROM t1;
-EXECUTE populate_table;
-INSERT INTO t1
-SELECT 1000 + (count(*) over(order by c1)), "count_insert" from t1;
-SELECT c1, c2 FROM t1 ORDER BY c2, c1;
-c1 c2
-1001 count_insert
-1002 count_insert
-1 manual_insert_1
-4 manual_insert_2
-DELETE FROM t1;
-EXECUTE populate_table;
-#
-# Test how avg interacts when the results need to be rounded.
-#
-SELECT 1000 + (avg(c1) over(order by c1)) as avg_expr, c1, "This will be inserted into t1" from t1;
-avg_expr c1 This will be inserted into t1
-1001.0000 1 This will be inserted into t1
-1002.5000 4 This will be inserted into t1
-INSERT INTO t1
-SELECT 1000 + (avg(c1) over(order by c1)), "avg_insert" from t1;
-SELECT c1, c2 FROM t1 ORDER BY c2, c1;
-c1 c2
-1001 avg_insert
-1003 avg_insert
-1 manual_insert_1
-4 manual_insert_2
-DELETE FROM t1;
-EXECUTE populate_table;
-INSERT INTO t1
-SELECT 1000 + (sum(c1) over(order by c1)), "sum_insert" from t1;
-SELECT c1, c2
-FROM t1
-ORDER BY c2, c1;
-c1 c2
-1 manual_insert_1
-4 manual_insert_2
-1001 sum_insert
-1005 sum_insert
-DROP table t1;
diff --git a/mysql-test/r/win_lead_lag.result b/mysql-test/r/win_lead_lag.result
deleted file mode 100644
index 5ead58fa11a..00000000000
--- a/mysql-test/r/win_lead_lag.result
+++ /dev/null
@@ -1,229 +0,0 @@
-create table t1 (
-pk int primary key,
-a int,
-b int,
-c char(10),
-d decimal(10, 3),
-e real
-);
-insert into t1 values
-( 1, 0, 1, 'one', 0.1, 0.001),
-( 2, 0, 2, 'two', 0.2, 0.002),
-( 3, 0, 3, 'three', 0.3, 0.003),
-( 4, 1, 2, 'three', 0.4, 0.004),
-( 5, 1, 1, 'two', 0.5, 0.005),
-( 6, 1, 1, 'one', 0.6, 0.006),
-( 7, 2, NULL, 'n_one', 0.5, 0.007),
-( 8, 2, 1, 'n_two', NULL, 0.008),
-( 9, 2, 2, NULL, 0.7, 0.009),
-(10, 2, 0, 'n_four', 0.8, 0.010),
-(11, 2, 10, NULL, 0.9, NULL);
-select pk,
-lead(pk) over (order by pk),
-lead(pk, 1) over (order by pk),
-lead(pk, 2) over (order by pk),
-lead(pk, 0) over (order by pk),
-lead(pk, -1) over (order by pk),
-lead(pk, -2) over (order by pk)
-from t1
-order by pk asc;
-pk lead(pk) over (order by pk) lead(pk, 1) over (order by pk) lead(pk, 2) over (order by pk) lead(pk, 0) over (order by pk) lead(pk, -1) over (order by pk) lead(pk, -2) over (order by pk)
-1 2 2 3 1 NULL NULL
-2 3 3 4 2 1 NULL
-3 4 4 5 3 2 1
-4 5 5 6 4 3 2
-5 6 6 7 5 4 3
-6 7 7 8 6 5 4
-7 8 8 9 7 6 5
-8 9 9 10 8 7 6
-9 10 10 11 9 8 7
-10 11 11 NULL 10 9 8
-11 NULL NULL NULL 11 10 9
-select pk,
-lag(pk) over (order by pk),
-lag(pk, 1) over (order by pk),
-lag(pk, 2) over (order by pk),
-lag(pk, 0) over (order by pk),
-lag(pk, -1) over (order by pk),
-lag(pk, -2) over (order by pk)
-from t1
-order by pk asc;
-pk lag(pk) over (order by pk) lag(pk, 1) over (order by pk) lag(pk, 2) over (order by pk) lag(pk, 0) over (order by pk) lag(pk, -1) over (order by pk) lag(pk, -2) over (order by pk)
-1 NULL NULL NULL 1 2 3
-2 1 1 NULL 2 3 4
-3 2 2 1 3 4 5
-4 3 3 2 4 5 6
-5 4 4 3 5 6 7
-6 5 5 4 6 7 8
-7 6 6 5 7 8 9
-8 7 7 6 8 9 10
-9 8 8 7 9 10 11
-10 9 9 8 10 11 NULL
-11 10 10 9 11 NULL NULL
-select pk, pk - 2,
-lag(pk, pk - 2) over (order by pk),
-lead(pk, pk - 2) over (order by pk)
-from t1
-order by pk asc;
-pk pk - 2 lag(pk, pk - 2) over (order by pk) lead(pk, pk - 2) over (order by pk)
-1 -1 2 NULL
-2 0 2 2
-3 1 2 4
-4 2 2 6
-5 3 2 8
-6 4 2 10
-7 5 2 NULL
-8 6 2 NULL
-9 7 2 NULL
-10 8 2 NULL
-11 9 2 NULL
-select pk, pk - 2,
-lag(pk, pk + 2) over (order by pk),
-lead(pk, pk + 2) over (order by pk)
-from t1
-order by pk asc;
-pk pk - 2 lag(pk, pk + 2) over (order by pk) lead(pk, pk + 2) over (order by pk)
-1 -1 NULL 4
-2 0 NULL 6
-3 1 NULL 8
-4 2 NULL 10
-5 3 NULL NULL
-6 4 NULL NULL
-7 5 NULL NULL
-8 6 NULL NULL
-9 7 NULL NULL
-10 8 NULL NULL
-11 9 NULL NULL
-select pk, a,
-lead(pk) over (partition by a order by pk),
-lead(pk, 1) over (partition by a order by pk),
-lead(pk, 2) over (partition by a order by pk),
-lead(pk, 0) over (partition by a order by pk),
-lead(pk, -1) over (partition by a order by pk),
-lead(pk, -2) over (partition by a order by pk)
-from t1
-order by pk asc;
-pk a lead(pk) over (partition by a order by pk) lead(pk, 1) over (partition by a order by pk) lead(pk, 2) over (partition by a order by pk) lead(pk, 0) over (partition by a order by pk) lead(pk, -1) over (partition by a order by pk) lead(pk, -2) over (partition by a order by pk)
-1 0 2 2 3 1 NULL NULL
-2 0 3 3 NULL 2 1 NULL
-3 0 NULL NULL NULL 3 2 1
-4 1 5 5 6 4 NULL NULL
-5 1 6 6 NULL 5 4 NULL
-6 1 NULL NULL NULL 6 5 4
-7 2 8 8 9 7 NULL NULL
-8 2 9 9 10 8 7 NULL
-9 2 10 10 11 9 8 7
-10 2 11 11 NULL 10 9 8
-11 2 NULL NULL NULL 11 10 9
-select pk, a,
-lag(pk) over (partition by a order by pk),
-lag(pk, 1) over (partition by a order by pk),
-lag(pk, 2) over (partition by a order by pk),
-lag(pk, 0) over (partition by a order by pk),
-lag(pk, -1) over (partition by a order by pk),
-lag(pk, -2) over (partition by a order by pk)
-from t1
-order by pk asc;
-pk a lag(pk) over (partition by a order by pk) lag(pk, 1) over (partition by a order by pk) lag(pk, 2) over (partition by a order by pk) lag(pk, 0) over (partition by a order by pk) lag(pk, -1) over (partition by a order by pk) lag(pk, -2) over (partition by a order by pk)
-1 0 NULL NULL NULL 1 2 3
-2 0 1 1 NULL 2 3 NULL
-3 0 2 2 1 3 NULL NULL
-4 1 NULL NULL NULL 4 5 6
-5 1 4 4 NULL 5 6 NULL
-6 1 5 5 4 6 NULL NULL
-7 2 NULL NULL NULL 7 8 9
-8 2 7 7 NULL 8 9 10
-9 2 8 8 7 9 10 11
-10 2 9 9 8 10 11 NULL
-11 2 10 10 9 11 NULL NULL
-select pk, a, pk - 2,
-lag(pk, pk - 2) over (partition by a order by pk),
-lead(pk, pk - 2) over (partition by a order by pk),
-lag(pk, a - 2) over (partition by a order by pk),
-lead(pk, a - 2) over (partition by a order by pk)
-from t1
-order by pk asc;
-pk a pk - 2 lag(pk, pk - 2) over (partition by a order by pk) lead(pk, pk - 2) over (partition by a order by pk) lag(pk, a - 2) over (partition by a order by pk) lead(pk, a - 2) over (partition by a order by pk)
-1 0 -1 2 NULL 3 NULL
-2 0 0 2 2 NULL NULL
-3 0 1 2 NULL NULL 1
-4 1 2 NULL 6 5 NULL
-5 1 3 NULL NULL 6 4
-6 1 4 NULL NULL NULL 5
-7 2 5 NULL NULL 7 7
-8 2 6 NULL NULL 8 8
-9 2 7 NULL NULL 9 9
-10 2 8 NULL NULL 10 10
-11 2 9 NULL NULL 11 11
-select pk, a, pk - 2,
-lag(pk, pk + 2) over (partition by a order by pk),
-lead(pk, pk + 2) over (partition by a order by pk),
-lag(pk, a + 2) over (partition by a order by pk),
-lead(pk, a + 2) over (partition by a order by pk)
-from t1
-order by pk asc;
-pk a pk - 2 lag(pk, pk + 2) over (partition by a order by pk) lead(pk, pk + 2) over (partition by a order by pk) lag(pk, a + 2) over (partition by a order by pk) lead(pk, a + 2) over (partition by a order by pk)
-1 0 -1 NULL NULL NULL 3
-2 0 0 NULL NULL NULL NULL
-3 0 1 NULL NULL 1 NULL
-4 1 2 NULL NULL NULL NULL
-5 1 3 NULL NULL NULL NULL
-6 1 4 NULL NULL NULL NULL
-7 2 5 NULL NULL NULL 11
-8 2 6 NULL NULL NULL NULL
-9 2 7 NULL NULL NULL NULL
-10 2 8 NULL NULL NULL NULL
-11 2 9 NULL NULL 7 NULL
-select pk, a, b, c, d, e,
-lag(a) over (partition by a order by pk),
-lag(b) over (partition by a order by pk),
-lag(c) over (partition by a order by pk),
-lag(d) over (partition by a order by pk),
-lag(e) over (partition by a order by pk)
-from t1
-order by pk asc;
-pk a b c d e lag(a) over (partition by a order by pk) lag(b) over (partition by a order by pk) lag(c) over (partition by a order by pk) lag(d) over (partition by a order by pk) lag(e) over (partition by a order by pk)
-1 0 1 one 0.100 0.001 NULL NULL NULL NULL NULL
-2 0 2 two 0.200 0.002 0 1 one 0.100 0.001
-3 0 3 three 0.300 0.003 0 2 two 0.200 0.002
-4 1 2 three 0.400 0.004 NULL NULL NULL NULL NULL
-5 1 1 two 0.500 0.005 1 2 three 0.400 0.004
-6 1 1 one 0.600 0.006 1 1 two 0.500 0.005
-7 2 NULL n_one 0.500 0.007 NULL NULL NULL NULL NULL
-8 2 1 n_two NULL 0.008 2 NULL n_one 0.500 0.007
-9 2 2 NULL 0.700 0.009 2 1 n_two NULL 0.008
-10 2 0 n_four 0.800 0.01 2 2 NULL 0.700 0.009
-11 2 10 NULL 0.900 NULL 2 0 n_four 0.800 0.01
-select pk, a, b, a+b,
-lag(a + b) over (partition by a order by pk)
-from t1
-order by pk asc;
-pk a b a+b lag(a + b) over (partition by a order by pk)
-1 0 1 1 NULL
-2 0 2 2 1
-3 0 3 3 2
-4 1 2 3 NULL
-5 1 1 2 3
-6 1 1 2 2
-7 2 NULL NULL NULL
-8 2 1 3 NULL
-9 2 2 4 3
-10 2 0 2 4
-11 2 10 12 2
-select pk, a, b, a+b,
-lag(a + b) over (partition by a order by pk) + pk
-from t1
-order by pk asc;
-pk a b a+b lag(a + b) over (partition by a order by pk) + pk
-1 0 1 1 NULL
-2 0 2 2 3
-3 0 3 3 5
-4 1 2 3 NULL
-5 1 1 2 8
-6 1 1 2 8
-7 2 NULL NULL NULL
-8 2 1 3 NULL
-9 2 2 4 12
-10 2 0 2 14
-11 2 10 12 13
-drop table t1;
diff --git a/mysql-test/r/win_min_max.result b/mysql-test/r/win_min_max.result
deleted file mode 100644
index b3a90262bf7..00000000000
--- a/mysql-test/r/win_min_max.result
+++ /dev/null
@@ -1,864 +0,0 @@
-create table t1 (
-pk int primary key,
-a int,
-b int,
-c real
-);
-insert into t1 values
-(101 , 0, 10, 1.1),
-(102 , 0, 10, 2.1),
-(103 , 1, 10, 3.1),
-(104 , 1, 10, 4.1),
-(108 , 2, 10, 5.1),
-(105 , 2, 20, 6.1),
-(106 , 2, 20, 7.1),
-(107 , 2, 20, 8.15),
-(109 , 4, 20, 9.15),
-(110 , 4, 20, 10.15),
-(111 , 5, NULL, 11.15),
-(112 , 5, 1, 12.25),
-(113 , 5, NULL, 13.35),
-(114 , 5, NULL, 14.50),
-(115 , 5, NULL, 15.65),
-(116 , 6, 1, NULL),
-(117 , 6, 1, 10),
-(118 , 6, 1, 1.1),
-(119 , 6, 1, NULL),
-(120 , 6, 1, NULL),
-(121 , 6, 1, NULL),
-(122 , 6, 1, 2.2),
-(123 , 6, 1, 20.1),
-(124 , 6, 1, -10.4),
-(125 , 6, 1, NULL),
-(126 , 6, 1, NULL),
-(127 , 6, 1, NULL);
-select pk, a, b, min(b) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING) as min,
-max(b) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING) as max
-from t1;
-pk a b min max
-101 0 10 10 10
-102 0 10 10 10
-103 1 10 10 10
-104 1 10 10 10
-105 2 20 20 20
-106 2 20 20 20
-107 2 20 10 20
-108 2 10 10 20
-109 4 20 20 20
-110 4 20 20 20
-111 5 NULL 1 1
-112 5 1 1 1
-113 5 NULL 1 1
-114 5 NULL NULL NULL
-115 5 NULL NULL NULL
-116 6 1 1 1
-117 6 1 1 1
-118 6 1 1 1
-119 6 1 1 1
-120 6 1 1 1
-121 6 1 1 1
-122 6 1 1 1
-123 6 1 1 1
-124 6 1 1 1
-125 6 1 1 1
-126 6 1 1 1
-127 6 1 1 1
-select pk, a, c, min(c) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING) as min,
-max(c) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING) as max
-from t1;
-pk a c min max
-101 0 1.1 1.1 2.1
-102 0 2.1 1.1 2.1
-103 1 3.1 3.1 4.1
-104 1 4.1 3.1 4.1
-105 2 6.1 6.1 7.1
-106 2 7.1 6.1 8.15
-107 2 8.15 5.1 8.15
-108 2 5.1 5.1 8.15
-109 4 9.15 9.15 10.15
-110 4 10.15 9.15 10.15
-111 5 11.15 11.15 12.25
-112 5 12.25 11.15 13.35
-113 5 13.35 12.25 14.5
-114 5 14.5 13.35 15.65
-115 5 15.65 14.5 15.65
-116 6 NULL 10 10
-117 6 10 1.1 10
-118 6 1.1 1.1 10
-119 6 NULL 1.1 1.1
-120 6 NULL NULL NULL
-121 6 NULL 2.2 2.2
-122 6 2.2 2.2 20.1
-123 6 20.1 -10.4 20.1
-124 6 -10.4 -10.4 20.1
-125 6 NULL -10.4 -10.4
-126 6 NULL NULL NULL
-127 6 NULL NULL NULL
-create table t2 (
-pk int primary key,
-a int,
-b int,
-c char(10)
-);
-insert into t2 values
-( 1, 0, 1, 'one'),
-( 2, 0, 2, 'two'),
-( 3, 0, 3, 'three'),
-( 4, 1, 20, 'four'),
-( 5, 1, 10, 'five'),
-( 6, 1, 40, 'six'),
-( 7, 1, 30, 'seven'),
-( 8, 4,300, 'eight'),
-( 9, 4,100, 'nine'),
-(10, 4,200, 'ten'),
-(11, 4,200, 'eleven');
-# First try some invalid argument queries.
-select pk, a, b, c,
-min(c) over (order by pk),
-max(c) over (order by pk),
-min(c) over (partition by a order by pk),
-max(c) over (partition by a order by pk)
-from t2;
-pk a b c min(c) over (order by pk) max(c) over (order by pk) min(c) over (partition by a order by pk) max(c) over (partition by a order by pk)
-1 0 1 one one one one one
-2 0 2 two one two one two
-3 0 3 three one two one two
-4 1 20 four four two four four
-5 1 10 five five two five four
-6 1 40 six five two five six
-7 1 30 seven five two five six
-8 4 300 eight eight two eight eight
-9 4 100 nine eight two eight nine
-10 4 200 ten eight two eight ten
-11 4 200 eleven eight two eight ten
-# Empty frame
-select pk, a, b, c,
-min(b) over (order by pk rows between 2 following and 1 following) as min1,
-max(b) over (order by pk rows between 2 following and 1 following) as max1,
-min(b) over (partition by a order by pk rows between 2 following and 1 following) as min2,
-max(b) over (partition by a order by pk rows between 2 following and 1 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one NULL NULL NULL NULL
-2 0 2 two NULL NULL NULL NULL
-3 0 3 three NULL NULL NULL NULL
-4 1 20 four NULL NULL NULL NULL
-5 1 10 five NULL NULL NULL NULL
-6 1 40 six NULL NULL NULL NULL
-7 1 30 seven NULL NULL NULL NULL
-8 4 300 eight NULL NULL NULL NULL
-9 4 100 nine NULL NULL NULL NULL
-10 4 200 ten NULL NULL NULL NULL
-11 4 200 eleven NULL NULL NULL NULL
-select pk, a, b, c,
-min(b) over (order by pk range between 2 following and 1 following) as min1,
-max(b) over (order by pk range between 2 following and 1 following) as max1,
-min(b) over (partition by a order by pk range between 2 following and 1 following) as min2,
-max(b) over (partition by a order by pk range between 2 following and 1 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one NULL NULL NULL NULL
-2 0 2 two NULL NULL NULL NULL
-3 0 3 three NULL NULL NULL NULL
-4 1 20 four NULL NULL NULL NULL
-5 1 10 five NULL NULL NULL NULL
-6 1 40 six NULL NULL NULL NULL
-7 1 30 seven NULL NULL NULL NULL
-8 4 300 eight NULL NULL NULL NULL
-9 4 100 nine NULL NULL NULL NULL
-10 4 200 ten NULL NULL NULL NULL
-11 4 200 eleven NULL NULL NULL NULL
-select pk, a, b, c,
-min(b) over (order by pk rows between 1 preceding and 2 preceding) as min1,
-max(b) over (order by pk rows between 1 preceding and 2 preceding) as max1,
-min(b) over (partition by a order by pk rows between 1 preceding and 2 preceding) as min2,
-max(b) over (partition by a order by pk rows between 1 preceding and 2 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one NULL NULL NULL NULL
-2 0 2 two NULL NULL NULL NULL
-3 0 3 three NULL NULL NULL NULL
-4 1 20 four NULL NULL NULL NULL
-5 1 10 five NULL NULL NULL NULL
-6 1 40 six NULL NULL NULL NULL
-7 1 30 seven NULL NULL NULL NULL
-8 4 300 eight NULL NULL NULL NULL
-9 4 100 nine NULL NULL NULL NULL
-10 4 200 ten NULL NULL NULL NULL
-11 4 200 eleven NULL NULL NULL NULL
-select pk, a, b, c,
-min(b) over (order by pk range between 1 preceding and 2 preceding) as min1,
-max(b) over (order by pk range between 1 preceding and 2 preceding) as max1,
-min(b) over (partition by a order by pk range between 1 preceding and 2 preceding) as min2,
-max(b) over (partition by a order by pk range between 1 preceding and 2 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one NULL NULL NULL NULL
-2 0 2 two NULL NULL NULL NULL
-3 0 3 three NULL NULL NULL NULL
-4 1 20 four NULL NULL NULL NULL
-5 1 10 five NULL NULL NULL NULL
-6 1 40 six NULL NULL NULL NULL
-7 1 30 seven NULL NULL NULL NULL
-8 4 300 eight NULL NULL NULL NULL
-9 4 100 nine NULL NULL NULL NULL
-10 4 200 ten NULL NULL NULL NULL
-11 4 200 eleven NULL NULL NULL NULL
-select pk, a, b, c,
-min(b) over (order by pk rows between 1 following and 0 following) as min1,
-max(b) over (order by pk rows between 1 following and 0 following) as max1,
-min(b) over (partition by a order by pk rows between 1 following and 0 following) as min2,
-max(b) over (partition by a order by pk rows between 1 following and 0 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one NULL NULL NULL NULL
-2 0 2 two NULL NULL NULL NULL
-3 0 3 three NULL NULL NULL NULL
-4 1 20 four NULL NULL NULL NULL
-5 1 10 five NULL NULL NULL NULL
-6 1 40 six NULL NULL NULL NULL
-7 1 30 seven NULL NULL NULL NULL
-8 4 300 eight NULL NULL NULL NULL
-9 4 100 nine NULL NULL NULL NULL
-10 4 200 ten NULL NULL NULL NULL
-11 4 200 eleven NULL NULL NULL NULL
-select pk, a, b, c,
-min(b) over (order by pk range between 1 following and 0 following) as min1,
-max(b) over (order by pk range between 1 following and 0 following) as max1,
-min(b) over (partition by a order by pk range between 1 following and 0 following) as min2,
-max(b) over (partition by a order by pk range between 1 following and 0 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one NULL NULL NULL NULL
-2 0 2 two NULL NULL NULL NULL
-3 0 3 three NULL NULL NULL NULL
-4 1 20 four NULL NULL NULL NULL
-5 1 10 five NULL NULL NULL NULL
-6 1 40 six NULL NULL NULL NULL
-7 1 30 seven NULL NULL NULL NULL
-8 4 300 eight NULL NULL NULL NULL
-9 4 100 nine NULL NULL NULL NULL
-10 4 200 ten NULL NULL NULL NULL
-11 4 200 eleven NULL NULL NULL NULL
-select pk, a, b, c,
-min(b) over (order by pk rows between 1 following and 0 preceding) as min1,
-max(b) over (order by pk rows between 1 following and 0 preceding) as max1,
-min(b) over (partition by a order by pk rows between 1 following and 0 preceding) as min2,
-max(b) over (partition by a order by pk rows between 1 following and 0 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one NULL NULL NULL NULL
-2 0 2 two NULL NULL NULL NULL
-3 0 3 three NULL NULL NULL NULL
-4 1 20 four NULL NULL NULL NULL
-5 1 10 five NULL NULL NULL NULL
-6 1 40 six NULL NULL NULL NULL
-7 1 30 seven NULL NULL NULL NULL
-8 4 300 eight NULL NULL NULL NULL
-9 4 100 nine NULL NULL NULL NULL
-10 4 200 ten NULL NULL NULL NULL
-11 4 200 eleven NULL NULL NULL NULL
-select pk, a, b, c,
-min(b) over (order by pk range between 1 following and 0 preceding) as min1,
-max(b) over (order by pk range between 1 following and 0 preceding) as max1,
-min(b) over (partition by a order by pk range between 1 following and 0 preceding) as min2,
-max(b) over (partition by a order by pk range between 1 following and 0 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one NULL NULL NULL NULL
-2 0 2 two NULL NULL NULL NULL
-3 0 3 three NULL NULL NULL NULL
-4 1 20 four NULL NULL NULL NULL
-5 1 10 five NULL NULL NULL NULL
-6 1 40 six NULL NULL NULL NULL
-7 1 30 seven NULL NULL NULL NULL
-8 4 300 eight NULL NULL NULL NULL
-9 4 100 nine NULL NULL NULL NULL
-10 4 200 ten NULL NULL NULL NULL
-11 4 200 eleven NULL NULL NULL NULL
-select pk, a, b, c,
-min(b) over (order by pk rows between 0 following and 1 preceding) as min1,
-max(b) over (order by pk rows between 0 following and 1 preceding) as max1,
-min(b) over (partition by a order by pk rows between 0 following and 1 preceding) as min2,
-max(b) over (partition by a order by pk rows between 0 following and 1 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one NULL NULL NULL NULL
-2 0 2 two NULL NULL NULL NULL
-3 0 3 three NULL NULL NULL NULL
-4 1 20 four NULL NULL NULL NULL
-5 1 10 five NULL NULL NULL NULL
-6 1 40 six NULL NULL NULL NULL
-7 1 30 seven NULL NULL NULL NULL
-8 4 300 eight NULL NULL NULL NULL
-9 4 100 nine NULL NULL NULL NULL
-10 4 200 ten NULL NULL NULL NULL
-11 4 200 eleven NULL NULL NULL NULL
-select pk, a, b, c,
-min(b) over (order by pk range between 0 following and 1 preceding) as min1,
-max(b) over (order by pk range between 0 following and 1 preceding) as max1,
-min(b) over (partition by a order by pk range between 0 following and 1 preceding) as min2,
-max(b) over (partition by a order by pk range between 0 following and 1 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one NULL NULL NULL NULL
-2 0 2 two NULL NULL NULL NULL
-3 0 3 three NULL NULL NULL NULL
-4 1 20 four NULL NULL NULL NULL
-5 1 10 five NULL NULL NULL NULL
-6 1 40 six NULL NULL NULL NULL
-7 1 30 seven NULL NULL NULL NULL
-8 4 300 eight NULL NULL NULL NULL
-9 4 100 nine NULL NULL NULL NULL
-10 4 200 ten NULL NULL NULL NULL
-11 4 200 eleven NULL NULL NULL NULL
-# 1 row frame.
-select pk, a, b, c,
-min(b) over (order by pk rows between current row and current row) as min1,
-max(b) over (order by pk rows between current row and current row) as max1,
-min(b) over (partition by a order by pk rows between current row and current row) as min2,
-max(b) over (partition by a order by pk rows between current row and current row) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 1 1 1
-2 0 2 two 2 2 2 2
-3 0 3 three 3 3 3 3
-4 1 20 four 20 20 20 20
-5 1 10 five 10 10 10 10
-6 1 40 six 40 40 40 40
-7 1 30 seven 30 30 30 30
-8 4 300 eight 300 300 300 300
-9 4 100 nine 100 100 100 100
-10 4 200 ten 200 200 200 200
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk rows between 0 preceding and current row) as min1,
-max(b) over (order by pk rows between 0 preceding and current row) as max1,
-min(b) over (partition by a order by pk rows between 0 preceding and current row) as min2,
-max(b) over (partition by a order by pk rows between 0 preceding and current row) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 1 1 1
-2 0 2 two 2 2 2 2
-3 0 3 three 3 3 3 3
-4 1 20 four 20 20 20 20
-5 1 10 five 10 10 10 10
-6 1 40 six 40 40 40 40
-7 1 30 seven 30 30 30 30
-8 4 300 eight 300 300 300 300
-9 4 100 nine 100 100 100 100
-10 4 200 ten 200 200 200 200
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk rows between 0 preceding and 0 preceding) as min1,
-max(b) over (order by pk rows between 0 preceding and 0 preceding) as max1,
-min(b) over (partition by a order by pk rows between 0 preceding and 0 preceding) as min2,
-max(b) over (partition by a order by pk rows between 0 preceding and 0 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 1 1 1
-2 0 2 two 2 2 2 2
-3 0 3 three 3 3 3 3
-4 1 20 four 20 20 20 20
-5 1 10 five 10 10 10 10
-6 1 40 six 40 40 40 40
-7 1 30 seven 30 30 30 30
-8 4 300 eight 300 300 300 300
-9 4 100 nine 100 100 100 100
-10 4 200 ten 200 200 200 200
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk rows between 1 preceding and 1 preceding) as min1,
-max(b) over (order by pk rows between 1 preceding and 1 preceding) as max1,
-min(b) over (partition by a order by pk rows between 1 preceding and 1 preceding) as min2,
-max(b) over (partition by a order by pk rows between 1 preceding and 1 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one NULL NULL NULL NULL
-2 0 2 two 1 1 1 1
-3 0 3 three 2 2 2 2
-4 1 20 four 3 3 NULL NULL
-5 1 10 five 20 20 20 20
-6 1 40 six 10 10 10 10
-7 1 30 seven 40 40 40 40
-8 4 300 eight 30 30 NULL NULL
-9 4 100 nine 300 300 300 300
-10 4 200 ten 100 100 100 100
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk rows between 1 following and 1 following) as min1,
-max(b) over (order by pk rows between 1 following and 1 following) as max1,
-min(b) over (partition by a order by pk rows between 1 following and 1 following) as min2,
-max(b) over (partition by a order by pk rows between 1 following and 1 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 2 2 2 2
-2 0 2 two 3 3 3 3
-3 0 3 three 20 20 NULL NULL
-4 1 20 four 10 10 10 10
-5 1 10 five 40 40 40 40
-6 1 40 six 30 30 30 30
-7 1 30 seven 300 300 NULL NULL
-8 4 300 eight 100 100 100 100
-9 4 100 nine 200 200 200 200
-10 4 200 ten 200 200 200 200
-11 4 200 eleven NULL NULL NULL NULL
-# Try a larger offset.
-select pk, a, b, c,
-min(b) over (order by pk rows between 3 following and 3 following) as min1,
-max(b) over (order by pk rows between 3 following and 3 following) as max1,
-min(b) over (partition by a order by pk rows between 3 following and 3 following) as min2,
-max(b) over (partition by a order by pk rows between 3 following and 3 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 20 20 NULL NULL
-2 0 2 two 10 10 NULL NULL
-3 0 3 three 40 40 NULL NULL
-4 1 20 four 30 30 30 30
-5 1 10 five 300 300 NULL NULL
-6 1 40 six 100 100 NULL NULL
-7 1 30 seven 200 200 NULL NULL
-8 4 300 eight 200 200 200 200
-9 4 100 nine NULL NULL NULL NULL
-10 4 200 ten NULL NULL NULL NULL
-11 4 200 eleven NULL NULL NULL NULL
-select pk, a, b, c,
-min(b) over (order by pk rows between 3 preceding and 3 preceding) as min1,
-max(b) over (order by pk rows between 3 preceding and 3 preceding) as max1,
-min(b) over (partition by a order by pk rows between 3 preceding and 3 preceding) as min2,
-max(b) over (partition by a order by pk rows between 3 preceding and 3 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one NULL NULL NULL NULL
-2 0 2 two NULL NULL NULL NULL
-3 0 3 three NULL NULL NULL NULL
-4 1 20 four 1 1 NULL NULL
-5 1 10 five 2 2 NULL NULL
-6 1 40 six 3 3 NULL NULL
-7 1 30 seven 20 20 20 20
-8 4 300 eight 10 10 NULL NULL
-9 4 100 nine 40 40 NULL NULL
-10 4 200 ten 30 30 NULL NULL
-11 4 200 eleven 300 300 300 300
-# 2 row frame.
-select pk, a, b, c,
-min(b) over (order by pk rows between current row and 1 following) as min1,
-max(b) over (order by pk rows between current row and 1 following) as max1,
-min(b) over (partition by a order by pk rows between current row and 1 following) as min2,
-max(b) over (partition by a order by pk rows between current row and 1 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 2 1 2
-2 0 2 two 2 3 2 3
-3 0 3 three 3 20 3 3
-4 1 20 four 10 20 10 20
-5 1 10 five 10 40 10 40
-6 1 40 six 30 40 30 40
-7 1 30 seven 30 300 30 30
-8 4 300 eight 100 300 100 300
-9 4 100 nine 100 200 100 200
-10 4 200 ten 200 200 200 200
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk rows between 0 preceding and 1 following) as min1,
-max(b) over (order by pk rows between 0 preceding and 1 following) as max1,
-min(b) over (partition by a order by pk rows between 0 preceding and 1 following) as min2,
-max(b) over (partition by a order by pk rows between 0 preceding and 1 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 2 1 2
-2 0 2 two 2 3 2 3
-3 0 3 three 3 20 3 3
-4 1 20 four 10 20 10 20
-5 1 10 five 10 40 10 40
-6 1 40 six 30 40 30 40
-7 1 30 seven 30 300 30 30
-8 4 300 eight 100 300 100 300
-9 4 100 nine 100 200 100 200
-10 4 200 ten 200 200 200 200
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk rows between 1 preceding and current row) as min1,
-max(b) over (order by pk rows between 1 preceding and current row) as max1,
-min(b) over (partition by a order by pk rows between 1 preceding and current row) as min2,
-max(b) over (partition by a order by pk rows between 1 preceding and current row) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 1 1 1
-2 0 2 two 1 2 1 2
-3 0 3 three 2 3 2 3
-4 1 20 four 3 20 20 20
-5 1 10 five 10 20 10 20
-6 1 40 six 10 40 10 40
-7 1 30 seven 30 40 30 40
-8 4 300 eight 30 300 300 300
-9 4 100 nine 100 300 100 300
-10 4 200 ten 100 200 100 200
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk rows between 1 preceding and 0 preceding) as min1,
-max(b) over (order by pk rows between 1 preceding and 0 preceding) as max1,
-min(b) over (partition by a order by pk rows between 1 preceding and 0 preceding) as min2,
-max(b) over (partition by a order by pk rows between 1 preceding and 0 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 1 1 1
-2 0 2 two 1 2 1 2
-3 0 3 three 2 3 2 3
-4 1 20 four 3 20 20 20
-5 1 10 five 10 20 10 20
-6 1 40 six 10 40 10 40
-7 1 30 seven 30 40 30 40
-8 4 300 eight 30 300 300 300
-9 4 100 nine 100 300 100 300
-10 4 200 ten 100 200 100 200
-11 4 200 eleven 200 200 200 200
-# Try a larger frame/offset.
-select pk, a, b, c,
-min(b) over (order by pk rows between current row and 3 following) as min1,
-max(b) over (order by pk rows between current row and 3 following) as max1,
-min(b) over (partition by a order by pk rows between current row and 3 following) as min2,
-max(b) over (partition by a order by pk rows between current row and 3 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 20 1 3
-2 0 2 two 2 20 2 3
-3 0 3 three 3 40 3 3
-4 1 20 four 10 40 10 40
-5 1 10 five 10 300 10 40
-6 1 40 six 30 300 30 40
-7 1 30 seven 30 300 30 30
-8 4 300 eight 100 300 100 300
-9 4 100 nine 100 200 100 200
-10 4 200 ten 200 200 200 200
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk rows between 2 preceding and 1 following) as min1,
-max(b) over (order by pk rows between 2 preceding and 1 following) as max1,
-min(b) over (partition by a order by pk rows between 2 preceding and 1 following) as min2,
-max(b) over (partition by a order by pk rows between 2 preceding and 1 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 2 1 2
-2 0 2 two 1 3 1 3
-3 0 3 three 1 20 1 3
-4 1 20 four 2 20 10 20
-5 1 10 five 3 40 10 40
-6 1 40 six 10 40 10 40
-7 1 30 seven 10 300 10 40
-8 4 300 eight 30 300 100 300
-9 4 100 nine 30 300 100 300
-10 4 200 ten 100 300 100 300
-11 4 200 eleven 100 200 100 200
-select pk, a, b, c,
-min(b) over (order by pk rows between 3 preceding and current row) as min1,
-max(b) over (order by pk rows between 3 preceding and current row) as max1,
-min(b) over (partition by a order by pk rows between 3 preceding and current row) as min2,
-max(b) over (partition by a order by pk rows between 3 preceding and current row) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 1 1 1
-2 0 2 two 1 2 1 2
-3 0 3 three 1 3 1 3
-4 1 20 four 1 20 20 20
-5 1 10 five 2 20 10 20
-6 1 40 six 3 40 10 40
-7 1 30 seven 10 40 10 40
-8 4 300 eight 10 300 300 300
-9 4 100 nine 30 300 100 300
-10 4 200 ten 30 300 100 300
-11 4 200 eleven 100 300 100 300
-select pk, a, b, c,
-min(b) over (order by pk rows between 3 preceding and 0 preceding) as min1,
-max(b) over (order by pk rows between 3 preceding and 0 preceding) as max1,
-min(b) over (partition by a order by pk rows between 3 preceding and 0 preceding) as min2,
-max(b) over (partition by a order by pk rows between 3 preceding and 0 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 1 1 1
-2 0 2 two 1 2 1 2
-3 0 3 three 1 3 1 3
-4 1 20 four 1 20 20 20
-5 1 10 five 2 20 10 20
-6 1 40 six 3 40 10 40
-7 1 30 seven 10 40 10 40
-8 4 300 eight 10 300 300 300
-9 4 100 nine 30 300 100 300
-10 4 200 ten 30 300 100 300
-11 4 200 eleven 100 300 100 300
-# Check range frame bounds
-select pk, a, b, c,
-min(b) over (order by pk range between current row and current row) as min1,
-max(b) over (order by pk range between current row and current row) as max1,
-min(b) over (partition by a order by pk range between current row and current row) as min2,
-max(b) over (partition by a order by pk range between current row and current row) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 1 1 1
-2 0 2 two 2 2 2 2
-3 0 3 three 3 3 3 3
-4 1 20 four 20 20 20 20
-5 1 10 five 10 10 10 10
-6 1 40 six 40 40 40 40
-7 1 30 seven 30 30 30 30
-8 4 300 eight 300 300 300 300
-9 4 100 nine 100 100 100 100
-10 4 200 ten 200 200 200 200
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk range between 0 preceding and current row) as min1,
-max(b) over (order by pk range between 0 preceding and current row) as max1,
-min(b) over (partition by a order by pk range between 0 preceding and current row) as min2,
-max(b) over (partition by a order by pk range between 0 preceding and current row) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 1 1 1
-2 0 2 two 2 2 2 2
-3 0 3 three 3 3 3 3
-4 1 20 four 20 20 20 20
-5 1 10 five 10 10 10 10
-6 1 40 six 40 40 40 40
-7 1 30 seven 30 30 30 30
-8 4 300 eight 300 300 300 300
-9 4 100 nine 100 100 100 100
-10 4 200 ten 200 200 200 200
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk range between 0 preceding and 0 preceding) as min1,
-max(b) over (order by pk range between 0 preceding and 0 preceding) as max1,
-min(b) over (partition by a order by pk range between 0 preceding and 0 preceding) as min2,
-max(b) over (partition by a order by pk range between 0 preceding and 0 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 1 1 1
-2 0 2 two 2 2 2 2
-3 0 3 three 3 3 3 3
-4 1 20 four 20 20 20 20
-5 1 10 five 10 10 10 10
-6 1 40 six 40 40 40 40
-7 1 30 seven 30 30 30 30
-8 4 300 eight 300 300 300 300
-9 4 100 nine 100 100 100 100
-10 4 200 ten 200 200 200 200
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk range between 1 preceding and 1 preceding) as min1,
-max(b) over (order by pk range between 1 preceding and 1 preceding) as max1,
-min(b) over (partition by a order by pk range between 1 preceding and 1 preceding) as min2,
-max(b) over (partition by a order by pk range between 1 preceding and 1 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one NULL NULL NULL NULL
-2 0 2 two 1 1 1 1
-3 0 3 three 2 2 2 2
-4 1 20 four 3 3 NULL NULL
-5 1 10 five 20 20 20 20
-6 1 40 six 10 10 10 10
-7 1 30 seven 40 40 40 40
-8 4 300 eight 30 30 NULL NULL
-9 4 100 nine 300 300 300 300
-10 4 200 ten 100 100 100 100
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk range between 1 following and 1 following) as min1,
-max(b) over (order by pk range between 1 following and 1 following) as max1,
-min(b) over (partition by a order by pk range between 1 following and 1 following) as min2,
-max(b) over (partition by a order by pk range between 1 following and 1 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 2 2 2 2
-2 0 2 two 3 3 3 3
-3 0 3 three 20 20 NULL NULL
-4 1 20 four 10 10 10 10
-5 1 10 five 40 40 40 40
-6 1 40 six 30 30 30 30
-7 1 30 seven 300 300 NULL NULL
-8 4 300 eight 100 100 100 100
-9 4 100 nine 200 200 200 200
-10 4 200 ten 200 200 200 200
-11 4 200 eleven NULL NULL NULL NULL
-# Try a larger offset.
-select pk, a, b, c,
-min(b) over (order by pk range between 3 following and 3 following) as min1,
-max(b) over (order by pk range between 3 following and 3 following) as max1,
-min(b) over (partition by a order by pk range between 3 following and 3 following) as min2,
-max(b) over (partition by a order by pk range between 3 following and 3 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 20 20 NULL NULL
-2 0 2 two 10 10 NULL NULL
-3 0 3 three 40 40 NULL NULL
-4 1 20 four 30 30 30 30
-5 1 10 five 300 300 NULL NULL
-6 1 40 six 100 100 NULL NULL
-7 1 30 seven 200 200 NULL NULL
-8 4 300 eight 200 200 200 200
-9 4 100 nine NULL NULL NULL NULL
-10 4 200 ten NULL NULL NULL NULL
-11 4 200 eleven NULL NULL NULL NULL
-select pk, a, b, c,
-min(b) over (order by pk range between 3 preceding and 3 preceding) as min1,
-max(b) over (order by pk range between 3 preceding and 3 preceding) as max1,
-min(b) over (partition by a order by pk range between 3 preceding and 3 preceding) as min2,
-max(b) over (partition by a order by pk range between 3 preceding and 3 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one NULL NULL NULL NULL
-2 0 2 two NULL NULL NULL NULL
-3 0 3 three NULL NULL NULL NULL
-4 1 20 four 1 1 NULL NULL
-5 1 10 five 2 2 NULL NULL
-6 1 40 six 3 3 NULL NULL
-7 1 30 seven 20 20 20 20
-8 4 300 eight 10 10 NULL NULL
-9 4 100 nine 40 40 NULL NULL
-10 4 200 ten 30 30 NULL NULL
-11 4 200 eleven 300 300 300 300
-# 2 row frame.
-select pk, a, b, c,
-min(b) over (order by pk range between current row and 1 following) as min1,
-max(b) over (order by pk range between current row and 1 following) as max1,
-min(b) over (partition by a order by pk range between current row and 1 following) as min2,
-max(b) over (partition by a order by pk range between current row and 1 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 2 1 2
-2 0 2 two 2 3 2 3
-3 0 3 three 3 20 3 3
-4 1 20 four 10 20 10 20
-5 1 10 five 10 40 10 40
-6 1 40 six 30 40 30 40
-7 1 30 seven 30 300 30 30
-8 4 300 eight 100 300 100 300
-9 4 100 nine 100 200 100 200
-10 4 200 ten 200 200 200 200
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk range between 0 preceding and 1 following) as min1,
-max(b) over (order by pk range between 0 preceding and 1 following) as max1,
-min(b) over (partition by a order by pk range between 0 preceding and 1 following) as min2,
-max(b) over (partition by a order by pk range between 0 preceding and 1 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 2 1 2
-2 0 2 two 2 3 2 3
-3 0 3 three 3 20 3 3
-4 1 20 four 10 20 10 20
-5 1 10 five 10 40 10 40
-6 1 40 six 30 40 30 40
-7 1 30 seven 30 300 30 30
-8 4 300 eight 100 300 100 300
-9 4 100 nine 100 200 100 200
-10 4 200 ten 200 200 200 200
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk range between 1 preceding and current row) as min1,
-max(b) over (order by pk range between 1 preceding and current row) as max1,
-min(b) over (partition by a order by pk range between 1 preceding and current row) as min2,
-max(b) over (partition by a order by pk range between 1 preceding and current row) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 1 1 1
-2 0 2 two 1 2 1 2
-3 0 3 three 2 3 2 3
-4 1 20 four 3 20 20 20
-5 1 10 five 10 20 10 20
-6 1 40 six 10 40 10 40
-7 1 30 seven 30 40 30 40
-8 4 300 eight 30 300 300 300
-9 4 100 nine 100 300 100 300
-10 4 200 ten 100 200 100 200
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk range between 1 preceding and 0 preceding) as min1,
-max(b) over (order by pk range between 1 preceding and 0 preceding) as max1,
-min(b) over (partition by a order by pk range between 1 preceding and 0 preceding) as min2,
-max(b) over (partition by a order by pk range between 1 preceding and 0 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 1 1 1
-2 0 2 two 1 2 1 2
-3 0 3 three 2 3 2 3
-4 1 20 four 3 20 20 20
-5 1 10 five 10 20 10 20
-6 1 40 six 10 40 10 40
-7 1 30 seven 30 40 30 40
-8 4 300 eight 30 300 300 300
-9 4 100 nine 100 300 100 300
-10 4 200 ten 100 200 100 200
-11 4 200 eleven 200 200 200 200
-# Try a larger frame/offset.
-select pk, a, b, c,
-min(b) over (order by pk range between current row and 3 following) as min1,
-max(b) over (order by pk range between current row and 3 following) as max1,
-min(b) over (partition by a order by pk range between current row and 3 following) as min2,
-max(b) over (partition by a order by pk range between current row and 3 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 20 1 3
-2 0 2 two 2 20 2 3
-3 0 3 three 3 40 3 3
-4 1 20 four 10 40 10 40
-5 1 10 five 10 300 10 40
-6 1 40 six 30 300 30 40
-7 1 30 seven 30 300 30 30
-8 4 300 eight 100 300 100 300
-9 4 100 nine 100 200 100 200
-10 4 200 ten 200 200 200 200
-11 4 200 eleven 200 200 200 200
-select pk, a, b, c,
-min(b) over (order by pk range between 2 preceding and 1 following) as min1,
-max(b) over (order by pk range between 2 preceding and 1 following) as max1,
-min(b) over (partition by a order by pk range between 2 preceding and 1 following) as min2,
-max(b) over (partition by a order by pk range between 2 preceding and 1 following) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 2 1 2
-2 0 2 two 1 3 1 3
-3 0 3 three 1 20 1 3
-4 1 20 four 2 20 10 20
-5 1 10 five 3 40 10 40
-6 1 40 six 10 40 10 40
-7 1 30 seven 10 300 10 40
-8 4 300 eight 30 300 100 300
-9 4 100 nine 30 300 100 300
-10 4 200 ten 100 300 100 300
-11 4 200 eleven 100 200 100 200
-select pk, a, b, c,
-min(b) over (order by pk range between 3 preceding and current row) as min1,
-max(b) over (order by pk range between 3 preceding and current row) as max1,
-min(b) over (partition by a order by pk range between 3 preceding and current row) as min2,
-max(b) over (partition by a order by pk range between 3 preceding and current row) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 1 1 1
-2 0 2 two 1 2 1 2
-3 0 3 three 1 3 1 3
-4 1 20 four 1 20 20 20
-5 1 10 five 2 20 10 20
-6 1 40 six 3 40 10 40
-7 1 30 seven 10 40 10 40
-8 4 300 eight 10 300 300 300
-9 4 100 nine 30 300 100 300
-10 4 200 ten 30 300 100 300
-11 4 200 eleven 100 300 100 300
-select pk, a, b, c,
-min(b) over (order by pk range between 3 preceding and 0 preceding) as min1,
-max(b) over (order by pk range between 3 preceding and 0 preceding) as max1,
-min(b) over (partition by a order by pk range between 3 preceding and 0 preceding) as min2,
-max(b) over (partition by a order by pk range between 3 preceding and 0 preceding) as max2
-from t2;
-pk a b c min1 max1 min2 max2
-1 0 1 one 1 1 1 1
-2 0 2 two 1 2 1 2
-3 0 3 three 1 3 1 3
-4 1 20 four 1 20 20 20
-5 1 10 five 2 20 10 20
-6 1 40 six 3 40 10 40
-7 1 30 seven 10 40 10 40
-8 4 300 eight 10 300 300 300
-9 4 100 nine 30 300 100 300
-10 4 200 ten 30 300 100 300
-11 4 200 eleven 100 300 100 300
-drop table t2;
-drop table t1;
diff --git a/mysql-test/r/win_nth_value.result b/mysql-test/r/win_nth_value.result
deleted file mode 100644
index abda1a2377f..00000000000
--- a/mysql-test/r/win_nth_value.result
+++ /dev/null
@@ -1,120 +0,0 @@
-create table t1 (
-pk int primary key,
-a int,
-b int,
-c char(10),
-d decimal(10, 3),
-e real
-);
-insert into t1 values
-( 1, 0, 1, 'one', 0.1, 0.001),
-( 2, 0, 2, 'two', 0.2, 0.002),
-( 3, 0, 3, 'three', 0.3, 0.003),
-( 4, 1, 2, 'three', 0.4, 0.004),
-( 5, 1, 1, 'two', 0.5, 0.005),
-( 6, 1, 1, 'one', 0.6, 0.006),
-( 7, 2, NULL, 'n_one', 0.5, 0.007),
-( 8, 2, 1, 'n_two', NULL, 0.008),
-( 9, 2, 2, NULL, 0.7, 0.009),
-(10, 2, 0, 'n_four', 0.8, 0.010),
-(11, 2, 10, NULL, 0.9, NULL);
-select pk,
-nth_value(pk, 1) over (order by pk),
-nth_value(pk, 2) over (order by pk),
-nth_value(pk, 0) over (order by pk),
-nth_value(pk, -1) over (order by pk),
-nth_value(pk, -2) over (order by pk)
-from t1
-order by pk asc;
-pk nth_value(pk, 1) over (order by pk) nth_value(pk, 2) over (order by pk) nth_value(pk, 0) over (order by pk) nth_value(pk, -1) over (order by pk) nth_value(pk, -2) over (order by pk)
-1 1 NULL NULL NULL NULL
-2 1 2 NULL NULL NULL
-3 1 2 NULL NULL NULL
-4 1 2 NULL NULL NULL
-5 1 2 NULL NULL NULL
-6 1 2 NULL NULL NULL
-7 1 2 NULL NULL NULL
-8 1 2 NULL NULL NULL
-9 1 2 NULL NULL NULL
-10 1 2 NULL NULL NULL
-11 1 2 NULL NULL NULL
-select pk,
-nth_value(pk, pk) over (order by pk),
-nth_value(pk / 0.1, pk) over (order by pk)
-from t1
-order by pk asc;
-pk nth_value(pk, pk) over (order by pk) nth_value(pk / 0.1, pk) over (order by pk)
-1 1 10.0000
-2 2 20.0000
-3 3 30.0000
-4 4 40.0000
-5 5 50.0000
-6 6 60.0000
-7 7 70.0000
-8 8 80.0000
-9 9 90.0000
-10 10 100.0000
-11 11 110.0000
-select pk,
-a,
-nth_value(pk, pk) over (partition by a order by pk),
-nth_value(pk, a + 1) over (partition by a order by pk)
-from t1
-order by pk asc;
-pk a nth_value(pk, pk) over (partition by a order by pk) nth_value(pk, a + 1) over (partition by a order by pk)
-1 0 1 1
-2 0 2 1
-3 0 3 1
-4 1 NULL NULL
-5 1 NULL 5
-6 1 NULL 5
-7 2 NULL NULL
-8 2 NULL NULL
-9 2 NULL 9
-10 2 NULL 9
-11 2 NULL 9
-select pk,
-a,
-nth_value(pk, 1) over (partition by a order by pk ROWS between 1 preceding and 1 following)
-from t1;
-pk a nth_value(pk, 1) over (partition by a order by pk ROWS between 1 preceding and 1 following)
-1 0 1
-2 0 1
-3 0 2
-4 1 4
-5 1 4
-6 1 5
-7 2 7
-8 2 7
-9 2 8
-10 2 9
-11 2 10
-select pk,
-a,
-nth_value(a, 1) over (order by a RANGE BETWEEN 1 preceding and 1 following),
-nth_value(a, 2) over (order by a RANGE BETWEEN 1 preceding and 1 following),
-nth_value(a, 3) over (order by a RANGE BETWEEN 1 preceding and 1 following),
-nth_value(a, 4) over (order by a RANGE BETWEEN 1 preceding and 1 following),
-nth_value(a, 5) over (order by a RANGE BETWEEN 1 preceding and 1 following),
-nth_value(a, 6) over (order by a RANGE BETWEEN 1 preceding and 1 following),
-nth_value(a, 7) over (order by a RANGE BETWEEN 1 preceding and 1 following),
-nth_value(a, 8) over (order by a RANGE BETWEEN 1 preceding and 1 following),
-nth_value(a, 9) over (order by a RANGE BETWEEN 1 preceding and 1 following),
-nth_value(a, 10) over (order by a RANGE BETWEEN 1 preceding and 1 following),
-nth_value(a, 11) over (order by a RANGE BETWEEN 1 preceding and 1 following),
-nth_value(a, 12) over (order by a RANGE BETWEEN 1 preceding and 1 following)
-from t1
-order by pk asc;
-pk a nth_value(a, 1) over (order by a RANGE BETWEEN 1 preceding and 1 following) nth_value(a, 2) over (order by a RANGE BETWEEN 1 preceding and 1 following) nth_value(a, 3) over (order by a RANGE BETWEEN 1 preceding and 1 following) nth_value(a, 4) over (order by a RANGE BETWEEN 1 preceding and 1 following) nth_value(a, 5) over (order by a RANGE BETWEEN 1 preceding and 1 following) nth_value(a, 6) over (order by a RANGE BETWEEN 1 preceding and 1 following) nth_value(a, 7) over (order by a RANGE BETWEEN 1 preceding and 1 following) nth_value(a, 8) over (order by a RANGE BETWEEN 1 preceding and 1 following) nth_value(a, 9) over (order by a RANGE BETWEEN 1 preceding and 1 following) nth_value(a, 10) over (order by a RANGE BETWEEN 1 preceding and 1 following) nth_value(a, 11) over (order by a RANGE BETWEEN 1 preceding and 1 following) nth_value(a, 12) over (order by a RANGE BETWEEN 1 preceding and 1 following)
-1 0 0 0 0 1 1 1 NULL NULL NULL NULL NULL NULL
-2 0 0 0 0 1 1 1 NULL NULL NULL NULL NULL NULL
-3 0 0 0 0 1 1 1 NULL NULL NULL NULL NULL NULL
-4 1 0 0 0 1 1 1 2 2 2 2 2 NULL
-5 1 0 0 0 1 1 1 2 2 2 2 2 NULL
-6 1 0 0 0 1 1 1 2 2 2 2 2 NULL
-7 2 1 1 1 2 2 2 2 2 NULL NULL NULL NULL
-8 2 1 1 1 2 2 2 2 2 NULL NULL NULL NULL
-9 2 1 1 1 2 2 2 2 2 NULL NULL NULL NULL
-10 2 1 1 1 2 2 2 2 2 NULL NULL NULL NULL
-11 2 1 1 1 2 2 2 2 2 NULL NULL NULL NULL
-drop table t1;
diff --git a/mysql-test/r/win_ntile.result b/mysql-test/r/win_ntile.result
deleted file mode 100644
index 41cb1a594bf..00000000000
--- a/mysql-test/r/win_ntile.result
+++ /dev/null
@@ -1,435 +0,0 @@
-create table t1 (
-pk int primary key,
-a int,
-b int
-);
-insert into t1 values
-(11 , 0, 10),
-(12 , 0, 10),
-(13 , 1, 10),
-(14 , 1, 10),
-(18 , 2, 10),
-(15 , 2, 20),
-(16 , 2, 20),
-(17 , 2, 20),
-(19 , 4, 20),
-(20 , 4, 20);
-select pk, a, b, ntile(-1) over (order by a)
-from t1;
-ERROR HY000: Argument of NTILE must be greater than 0
-select pk, a, b,
-ntile(0) over (order by a)
-from t1;
-ERROR HY000: Argument of NTILE must be greater than 0
-select pk, a, b,
-ntile(1) over (order by pk)
-from t1;
-pk a b ntile(1) over (order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 1
-14 1 10 1
-15 2 20 1
-16 2 20 1
-17 2 20 1
-18 2 10 1
-19 4 20 1
-20 4 20 1
-select pk, a, b,
-ntile(2) over (order by pk)
-from t1;
-pk a b ntile(2) over (order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 1
-14 1 10 1
-15 2 20 1
-16 2 20 2
-17 2 20 2
-18 2 10 2
-19 4 20 2
-20 4 20 2
-select pk, a, b,
-ntile(3) over (order by pk)
-from t1;
-pk a b ntile(3) over (order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 1
-14 1 10 1
-15 2 20 2
-16 2 20 2
-17 2 20 2
-18 2 10 3
-19 4 20 3
-20 4 20 3
-select pk, a, b,
-ntile(4) over (order by pk)
-from t1;
-pk a b ntile(4) over (order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 1
-14 1 10 2
-15 2 20 2
-16 2 20 2
-17 2 20 3
-18 2 10 3
-19 4 20 4
-20 4 20 4
-select pk, a, b,
-ntile(5) over (order by pk)
-from t1;
-pk a b ntile(5) over (order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 2
-14 1 10 2
-15 2 20 3
-16 2 20 3
-17 2 20 4
-18 2 10 4
-19 4 20 5
-20 4 20 5
-select pk, a, b,
-ntile(6) over (order by pk)
-from t1;
-pk a b ntile(6) over (order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 2
-14 1 10 2
-15 2 20 3
-16 2 20 3
-17 2 20 4
-18 2 10 4
-19 4 20 5
-20 4 20 6
-select pk, a, b,
-ntile(7) over (order by pk)
-from t1;
-pk a b ntile(7) over (order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 2
-14 1 10 2
-15 2 20 3
-16 2 20 3
-17 2 20 4
-18 2 10 5
-19 4 20 6
-20 4 20 7
-select pk, a, b,
-ntile(8) over (order by pk)
-from t1;
-pk a b ntile(8) over (order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 2
-14 1 10 2
-15 2 20 3
-16 2 20 4
-17 2 20 5
-18 2 10 6
-19 4 20 7
-20 4 20 8
-select pk, a, b,
-ntile(9) over (order by pk)
-from t1;
-pk a b ntile(9) over (order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 2
-14 1 10 3
-15 2 20 4
-16 2 20 5
-17 2 20 6
-18 2 10 7
-19 4 20 8
-20 4 20 9
-select pk, a, b,
-ntile(10) over (order by pk)
-from t1;
-pk a b ntile(10) over (order by pk)
-11 0 10 1
-12 0 10 2
-13 1 10 3
-14 1 10 4
-15 2 20 5
-16 2 20 6
-17 2 20 7
-18 2 10 8
-19 4 20 9
-20 4 20 10
-select pk, a, b,
-ntile(11) over (order by pk)
-from t1;
-pk a b ntile(11) over (order by pk)
-11 0 10 1
-12 0 10 2
-13 1 10 3
-14 1 10 4
-15 2 20 5
-16 2 20 6
-17 2 20 7
-18 2 10 8
-19 4 20 9
-20 4 20 10
-select pk, a, b,
-ntile(20) over (order by pk)
-from t1;
-pk a b ntile(20) over (order by pk)
-11 0 10 1
-12 0 10 2
-13 1 10 3
-14 1 10 4
-15 2 20 5
-16 2 20 6
-17 2 20 7
-18 2 10 8
-19 4 20 9
-20 4 20 10
-select pk, a, b,
-ntile(1) over (partition by b order by pk)
-from t1;
-pk a b ntile(1) over (partition by b order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 1
-14 1 10 1
-18 2 10 1
-15 2 20 1
-16 2 20 1
-17 2 20 1
-19 4 20 1
-20 4 20 1
-select pk, a, b,
-ntile(2) over (partition by b order by pk)
-from t1;
-pk a b ntile(2) over (partition by b order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 1
-14 1 10 2
-18 2 10 2
-15 2 20 1
-16 2 20 1
-17 2 20 1
-19 4 20 2
-20 4 20 2
-select pk, a, b,
-ntile(3) over (partition by b order by pk)
-from t1;
-pk a b ntile(3) over (partition by b order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 2
-14 1 10 2
-18 2 10 3
-15 2 20 1
-16 2 20 1
-17 2 20 2
-19 4 20 2
-20 4 20 3
-select pk, a, b,
-ntile(4) over (partition by b order by pk)
-from t1;
-pk a b ntile(4) over (partition by b order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 2
-14 1 10 3
-18 2 10 4
-15 2 20 1
-16 2 20 1
-17 2 20 2
-19 4 20 3
-20 4 20 4
-select pk, a, b,
-ntile(5) over (partition by b order by pk)
-from t1;
-pk a b ntile(5) over (partition by b order by pk)
-11 0 10 1
-12 0 10 2
-13 1 10 3
-14 1 10 4
-18 2 10 5
-15 2 20 1
-16 2 20 2
-17 2 20 3
-19 4 20 4
-20 4 20 5
-select pk, a, b,
-ntile(6) over (partition by b order by pk)
-from t1;
-pk a b ntile(6) over (partition by b order by pk)
-11 0 10 1
-12 0 10 2
-13 1 10 3
-14 1 10 4
-18 2 10 5
-15 2 20 1
-16 2 20 2
-17 2 20 3
-19 4 20 4
-20 4 20 5
-select pk, a, b,
-ntile(7) over (partition by b order by pk)
-from t1;
-pk a b ntile(7) over (partition by b order by pk)
-11 0 10 1
-12 0 10 2
-13 1 10 3
-14 1 10 4
-18 2 10 5
-15 2 20 1
-16 2 20 2
-17 2 20 3
-19 4 20 4
-20 4 20 5
-select pk, a, b,
-ntile(8) over (partition by b order by pk)
-from t1;
-pk a b ntile(8) over (partition by b order by pk)
-11 0 10 1
-12 0 10 2
-13 1 10 3
-14 1 10 4
-18 2 10 5
-15 2 20 1
-16 2 20 2
-17 2 20 3
-19 4 20 4
-20 4 20 5
-select pk, a, b,
-ntile(9) over (partition by b order by pk)
-from t1;
-pk a b ntile(9) over (partition by b order by pk)
-11 0 10 1
-12 0 10 2
-13 1 10 3
-14 1 10 4
-18 2 10 5
-15 2 20 1
-16 2 20 2
-17 2 20 3
-19 4 20 4
-20 4 20 5
-select pk, a, b,
-ntile(10) over (partition by b order by pk)
-from t1;
-pk a b ntile(10) over (partition by b order by pk)
-11 0 10 1
-12 0 10 2
-13 1 10 3
-14 1 10 4
-18 2 10 5
-15 2 20 1
-16 2 20 2
-17 2 20 3
-19 4 20 4
-20 4 20 5
-select pk, a, b,
-ntile(11) over (partition by b order by pk)
-from t1;
-pk a b ntile(11) over (partition by b order by pk)
-11 0 10 1
-12 0 10 2
-13 1 10 3
-14 1 10 4
-18 2 10 5
-15 2 20 1
-16 2 20 2
-17 2 20 3
-19 4 20 4
-20 4 20 5
-select pk, a, b,
-ntile(20) over (partition by b order by pk)
-from t1;
-pk a b ntile(20) over (partition by b order by pk)
-11 0 10 1
-12 0 10 2
-13 1 10 3
-14 1 10 4
-18 2 10 5
-15 2 20 1
-16 2 20 2
-17 2 20 3
-19 4 20 4
-20 4 20 5
-select pk, a, b,
-ntile(1 + 3) over (partition by b order by pk)
-from t1;
-pk a b ntile(1 + 3) over (partition by b order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 2
-14 1 10 3
-18 2 10 4
-15 2 20 1
-16 2 20 1
-17 2 20 2
-19 4 20 3
-20 4 20 4
-select pk, a, b,
-ntile((select 4)) over (partition by b order by pk)
-from t1;
-pk a b ntile((select 4)) over (partition by b order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 2
-14 1 10 3
-18 2 10 4
-15 2 20 1
-16 2 20 1
-17 2 20 2
-19 4 20 3
-20 4 20 4
-select t1.a from t1 where pk = 11;
-a
-0
-select pk, a, b,
-ntile((select a from t1 where pk=11)) over (partition by b order by pk)
-from t1;
-ERROR HY000: Argument of NTILE must be greater than 0
-select t1.a from t1 where pk = 13;
-a
-1
-select pk, a, b,
-ntile((select a from t1 where pk=13)) over (partition by b order by pk)
-from t1;
-pk a b ntile((select a from t1 where pk=13)) over (partition by b order by pk)
-11 0 10 1
-12 0 10 1
-13 1 10 1
-14 1 10 1
-18 2 10 1
-15 2 20 1
-16 2 20 1
-17 2 20 1
-19 4 20 1
-20 4 20 1
-explain
-select pk, a, b,
-ntile((select a from t1 where pk=13)) over (partition by b order by pk)
-from t1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY t1 ALL NULL NULL NULL NULL 10 Using temporary
-2 SUBQUERY t1 const PRIMARY PRIMARY 4 const 1
-select a from t1;
-a
-0
-0
-1
-1
-2
-2
-2
-2
-4
-4
-select pk, a, b,
-ntile((select a from t1)) over (partition by b order by pk)
-from t1;
-ERROR 21000: Subquery returns more than 1 row
-drop table t1;
diff --git a/mysql-test/r/win_orderby.result b/mysql-test/r/win_orderby.result
deleted file mode 100644
index bf4a40a4db3..00000000000
--- a/mysql-test/r/win_orderby.result
+++ /dev/null
@@ -1,26 +0,0 @@
-drop table if exists t0,t1;
-create table t0(a int primary key);
-insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t1(
-pk int,
-a int,
-key(pk)
-);
-insert into t1
-select
-A.a + B.a* 10 + C.a * 100,
-1
-from t0 A, t0 B, t0 C;
-select
-pk,
-count(a) over (order by pk rows between 2 preceding and 2 following)
-from t1
-where pk between 1 and 30
-order by pk desc
-limit 4;
-pk count(a) over (order by pk rows between 2 preceding and 2 following)
-30 3
-29 4
-28 5
-27 5
-drop table t0,t1;
diff --git a/mysql-test/r/win_percent_cume.result b/mysql-test/r/win_percent_cume.result
deleted file mode 100644
index d38c95c9ea7..00000000000
--- a/mysql-test/r/win_percent_cume.result
+++ /dev/null
@@ -1,62 +0,0 @@
-create table t1 (
-pk int primary key,
-a int,
-b int
-);
-insert into t1 values
-( 1 , 0, 10),
-( 2 , 0, 10),
-( 3 , 1, 10),
-( 4 , 1, 10),
-( 8 , 2, 10),
-( 5 , 2, 20),
-( 6 , 2, 20),
-( 7 , 2, 20),
-( 9 , 4, 20),
-(10 , 4, 20);
-select pk, a, b,
-percent_rank() over (order by a),
-cume_dist() over (order by a)
-from t1;
-pk a b percent_rank() over (order by a) cume_dist() over (order by a)
-1 0 10 0.0000000000 0.2000000000
-2 0 10 0.0000000000 0.2000000000
-3 1 10 0.2222222222 0.4000000000
-4 1 10 0.2222222222 0.4000000000
-8 2 10 0.4444444444 0.8000000000
-5 2 20 0.4444444444 0.8000000000
-6 2 20 0.4444444444 0.8000000000
-7 2 20 0.4444444444 0.8000000000
-9 4 20 0.8888888889 1.0000000000
-10 4 20 0.8888888889 1.0000000000
-select pk, a, b,
-percent_rank() over (order by pk),
-cume_dist() over (order by pk)
-from t1 order by pk;
-pk a b percent_rank() over (order by pk) cume_dist() over (order by pk)
-1 0 10 0.0000000000 0.1000000000
-2 0 10 0.1111111111 0.2000000000
-3 1 10 0.2222222222 0.3000000000
-4 1 10 0.3333333333 0.4000000000
-5 2 20 0.4444444444 0.5000000000
-6 2 20 0.5555555556 0.6000000000
-7 2 20 0.6666666667 0.7000000000
-8 2 10 0.7777777778 0.8000000000
-9 4 20 0.8888888889 0.9000000000
-10 4 20 1.0000000000 1.0000000000
-select pk, a, b,
-percent_rank() over (partition by a order by a),
-cume_dist() over (partition by a order by a)
-from t1;
-pk a b percent_rank() over (partition by a order by a) cume_dist() over (partition by a order by a)
-1 0 10 0.0000000000 1.0000000000
-2 0 10 0.0000000000 1.0000000000
-3 1 10 0.0000000000 1.0000000000
-4 1 10 0.0000000000 1.0000000000
-8 2 10 0.0000000000 1.0000000000
-5 2 20 0.0000000000 1.0000000000
-6 2 20 0.0000000000 1.0000000000
-7 2 20 0.0000000000 1.0000000000
-9 4 20 0.0000000000 1.0000000000
-10 4 20 0.0000000000 1.0000000000
-drop table t1;
diff --git a/mysql-test/r/win_percentile.result b/mysql-test/r/win_percentile.result
deleted file mode 100644
index c51e2e6bd51..00000000000
--- a/mysql-test/r/win_percentile.result
+++ /dev/null
@@ -1,326 +0,0 @@
-CREATE TABLE t1 (name CHAR(10), test double, score DECIMAL(19,4));
-INSERT INTO t1 VALUES
-('Chun', 0, 3), ('Chun', 0, 7),
-('Kaolin', 0.5, 3), ('Kaolin', 0.6, 7),
-('Kaolin', 0.5, 4),
-('Tatiana', 0.8, 4), ('Tata', 0.8, 4);
-#
-# Test invalid syntax
-#
-# Order by clause has more than one element
-select percentile_disc(0.5) within group(order by score,test) over (partition by name) from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'test) over (partition by name) from t1' at line 1
-select percentile_cont(0.5) within group(order by score,test) over (partition by name) from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'test) over (partition by name) from t1' at line 1
-# Order by clause has no element
-select percentile_disc(0.5) within group() over (partition by name) from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') over (partition by name) from t1' at line 1
-select percentile_cont(0.5) within group() over (partition by name) from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') over (partition by name) from t1' at line 1
-# No parameters to the percentile functions
-select percentile_disc() within group() over (partition by name) from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') within group() over (partition by name) from t1' at line 1
-select percentile_cont() within group() over (partition by name) from t1;
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') within group() over (partition by name) from t1' at line 1
-#
-# Test simple syntax
-#
-select name, percentile_cont(0.5) within group(order by score) over (partition by name) as c from t1;
-name c
-Chun 5.0000000000
-Chun 5.0000000000
-Kaolin 4.0000000000
-Kaolin 4.0000000000
-Kaolin 4.0000000000
-Tatiana 4.0000000000
-Tata 4.0000000000
-select name, percentile_disc(0.5) within group(order by score) over (partition by name) as c from t1;
-name c
-Chun 3.0000000000
-Chun 3.0000000000
-Kaolin 4.0000000000
-Kaolin 4.0000000000
-Kaolin 4.0000000000
-Tatiana 4.0000000000
-Tata 4.0000000000
-# no partition clause
-select name, percentile_disc(0.5) within group(order by score) over () from t1;
-name percentile_disc(0.5) within group(order by score) over ()
-Chun 4.0000000000
-Chun 4.0000000000
-Kaolin 4.0000000000
-Kaolin 4.0000000000
-Kaolin 4.0000000000
-Tatiana 4.0000000000
-Tata 4.0000000000
-select name, percentile_cont(0.5) within group(order by score) over () from t1;
-name percentile_cont(0.5) within group(order by score) over ()
-Chun 4.0000000000
-Chun 4.0000000000
-Kaolin 4.0000000000
-Kaolin 4.0000000000
-Kaolin 4.0000000000
-Tatiana 4.0000000000
-Tata 4.0000000000
-# argument set to null
-select name, percentile_cont(null) within group(order by score) over (partition by name) from t1;
-ERROR HY000: percentile_cont function only accepts arguments that can be converted to numerical types
-select name, percentile_disc(null) within group(order by score) over (partition by name) from t1;
-ERROR HY000: percentile_disc function only accepts arguments that can be converted to numerical types
-#subqueries having percentile functions
-select * from ( select name , percentile_cont(0.5) within group ( order by score) over (partition by name ) from t1 ) as t;
-name percentile_cont(0.5) within group ( order by score) over (partition by name )
-Chun 5.0000000000
-Chun 5.0000000000
-Kaolin 4.0000000000
-Kaolin 4.0000000000
-Kaolin 4.0000000000
-Tatiana 4.0000000000
-Tata 4.0000000000
-select * from ( select name , percentile_disc(0.5) within group ( order by score) over (partition by name ) from t1 ) as t;
-name percentile_disc(0.5) within group ( order by score) over (partition by name )
-Chun 3.0000000000
-Chun 3.0000000000
-Kaolin 4.0000000000
-Kaolin 4.0000000000
-Kaolin 4.0000000000
-Tatiana 4.0000000000
-Tata 4.0000000000
-select name from t1 a where (select percentile_disc(0.5) within group (order by score) over (partition by name) from t1 b limit 1) >= 0.5;
-name
-Chun
-Chun
-Kaolin
-Kaolin
-Kaolin
-Tatiana
-Tata
-#disallowed fields in order by
-select score, percentile_cont(0.5) within group(order by name) over (partition by score) from t1;
-ERROR HY000: Numeric datatype is required for percentile_cont function
-select score, percentile_disc(0.5) within group(order by name) over (partition by score) from t1;
-ERROR HY000: Numeric datatype is required for percentile_disc function
-#parameter value should be in the range of [0,1]
-select percentile_disc(1.5) within group(order by score) over (partition by name) from t1;
-ERROR HY000: Argument to the percentile_disc function does not belong to the range [0,1]
-select percentile_cont(1.5) within group(order by score) over (partition by name) from t1;
-ERROR HY000: Argument to the percentile_cont function does not belong to the range [0,1]
-#Argument should remain constant for the entire partition
-select name,percentile_cont(test) within group(order by score) over (partition by name) from t1;
-ERROR HY000: Argument to the percentile_cont function is not a constant for a partition
-select name, percentile_disc(test) within group(order by score) over (partition by name) from t1;
-ERROR HY000: Argument to the percentile_disc function is not a constant for a partition
-#only numerical types are allowed as argument to percentile functions
-select name, percentile_cont(name) within group(order by score) over (partition by name) from t1;
-ERROR HY000: percentile_cont function only accepts arguments that can be converted to numerical types
-select name, percentile_disc(name) within group(order by score) over (partition by name) from t1;
-ERROR HY000: percentile_disc function only accepts arguments that can be converted to numerical types
-#complete query with partition column
-select name,cume_dist() over (partition by name order by score), percentile_disc(0.5) within group(order by score) over (partition by name) as c from t1;
-name cume_dist() over (partition by name order by score) c
-Chun 0.5000000000 3.0000000000
-Chun 1.0000000000 3.0000000000
-Kaolin 0.3333333333 4.0000000000
-Kaolin 1.0000000000 4.0000000000
-Kaolin 0.6666666667 4.0000000000
-Tatiana 1.0000000000 4.0000000000
-Tata 1.0000000000 4.0000000000
-select name, percentile_cont(0.5) within group(order by score) over (partition by name) as c from t1;
-name c
-Chun 5.0000000000
-Chun 5.0000000000
-Kaolin 4.0000000000
-Kaolin 4.0000000000
-Kaolin 4.0000000000
-Tatiana 4.0000000000
-Tata 4.0000000000
-select name,cume_dist() over (partition by name order by score) as b, percentile_disc(0.1) within group(order by score) over (partition by name) as c from t1;
-name b c
-Chun 0.5000000000 3.0000000000
-Chun 1.0000000000 3.0000000000
-Kaolin 0.3333333333 3.0000000000
-Kaolin 1.0000000000 3.0000000000
-Kaolin 0.6666666667 3.0000000000
-Tatiana 1.0000000000 4.0000000000
-Tata 1.0000000000 4.0000000000
-select name,cume_dist() over (partition by name order by score) as b, percentile_disc(0.2) within group(order by score) over (partition by name) as c from t1;
-name b c
-Chun 0.5000000000 3.0000000000
-Chun 1.0000000000 3.0000000000
-Kaolin 0.3333333333 3.0000000000
-Kaolin 1.0000000000 3.0000000000
-Kaolin 0.6666666667 3.0000000000
-Tatiana 1.0000000000 4.0000000000
-Tata 1.0000000000 4.0000000000
-select name,cume_dist() over (partition by name order by score) as b, percentile_disc(0.3) within group(order by score) over (partition by name) as c from t1;
-name b c
-Chun 0.5000000000 3.0000000000
-Chun 1.0000000000 3.0000000000
-Kaolin 0.3333333333 3.0000000000
-Kaolin 1.0000000000 3.0000000000
-Kaolin 0.6666666667 3.0000000000
-Tatiana 1.0000000000 4.0000000000
-Tata 1.0000000000 4.0000000000
-select name,cume_dist() over (partition by name order by score) as b, percentile_disc(0.4) within group(order by score) over (partition by name) as c from t1;
-name b c
-Chun 0.5000000000 3.0000000000
-Chun 1.0000000000 3.0000000000
-Kaolin 0.3333333333 4.0000000000
-Kaolin 1.0000000000 4.0000000000
-Kaolin 0.6666666667 4.0000000000
-Tatiana 1.0000000000 4.0000000000
-Tata 1.0000000000 4.0000000000
-select name,cume_dist() over (partition by name order by score) as b, percentile_disc(0.5) within group(order by score) over (partition by name) as c from t1;
-name b c
-Chun 0.5000000000 3.0000000000
-Chun 1.0000000000 3.0000000000
-Kaolin 0.3333333333 4.0000000000
-Kaolin 1.0000000000 4.0000000000
-Kaolin 0.6666666667 4.0000000000
-Tatiana 1.0000000000 4.0000000000
-Tata 1.0000000000 4.0000000000
-select name,cume_dist() over (partition by name order by score) as b, percentile_disc(0.6) within group(order by score) over (partition by name) as c from t1;
-name b c
-Chun 0.5000000000 7.0000000000
-Chun 1.0000000000 7.0000000000
-Kaolin 0.3333333333 4.0000000000
-Kaolin 1.0000000000 4.0000000000
-Kaolin 0.6666666667 4.0000000000
-Tatiana 1.0000000000 4.0000000000
-Tata 1.0000000000 4.0000000000
-select name,cume_dist() over (partition by name order by score) as b, percentile_disc(0.7) within group(order by score) over (partition by name) as c from t1;
-name b c
-Chun 0.5000000000 7.0000000000
-Chun 1.0000000000 7.0000000000
-Kaolin 0.3333333333 7.0000000000
-Kaolin 1.0000000000 7.0000000000
-Kaolin 0.6666666667 7.0000000000
-Tatiana 1.0000000000 4.0000000000
-Tata 1.0000000000 4.0000000000
-select name,cume_dist() over (partition by name order by score) as b, percentile_disc(0.8) within group(order by score) over (partition by name) as c from t1;
-name b c
-Chun 0.5000000000 7.0000000000
-Chun 1.0000000000 7.0000000000
-Kaolin 0.3333333333 7.0000000000
-Kaolin 1.0000000000 7.0000000000
-Kaolin 0.6666666667 7.0000000000
-Tatiana 1.0000000000 4.0000000000
-Tata 1.0000000000 4.0000000000
-select name,cume_dist() over (partition by name order by score) as b, percentile_disc(0.9) within group(order by score) over (partition by name) as c from t1;
-name b c
-Chun 0.5000000000 7.0000000000
-Chun 1.0000000000 7.0000000000
-Kaolin 0.3333333333 7.0000000000
-Kaolin 1.0000000000 7.0000000000
-Kaolin 0.6666666667 7.0000000000
-Tatiana 1.0000000000 4.0000000000
-Tata 1.0000000000 4.0000000000
-select name,cume_dist() over (partition by name order by score) as b, percentile_disc(1) within group(order by score) over (partition by name) as c from t1;
-name b c
-Chun 0.5000000000 7.0000000000
-Chun 1.0000000000 7.0000000000
-Kaolin 0.3333333333 7.0000000000
-Kaolin 1.0000000000 7.0000000000
-Kaolin 0.6666666667 7.0000000000
-Tatiana 1.0000000000 4.0000000000
-Tata 1.0000000000 4.0000000000
-select median(score) over (partition by name), percentile_cont(0) within group(order by score) over (partition by name) as c from t1;
-median(score) over (partition by name) c
-5.0000000000 3.0000000000
-5.0000000000 3.0000000000
-4.0000000000 3.0000000000
-4.0000000000 3.0000000000
-4.0000000000 3.0000000000
-4.0000000000 4.0000000000
-4.0000000000 4.0000000000
-select median(score) over (partition by name), percentile_cont(0.1) within group(order by score) over (partition by name) as c from t1;
-median(score) over (partition by name) c
-5.0000000000 3.4000000000
-5.0000000000 3.4000000000
-4.0000000000 3.2000000000
-4.0000000000 3.2000000000
-4.0000000000 3.2000000000
-4.0000000000 4.0000000000
-4.0000000000 4.0000000000
-select median(score) over (partition by name), percentile_cont(0.2) within group(order by score) over (partition by name) as c from t1;
-median(score) over (partition by name) c
-5.0000000000 3.8000000000
-5.0000000000 3.8000000000
-4.0000000000 3.4000000000
-4.0000000000 3.4000000000
-4.0000000000 3.4000000000
-4.0000000000 4.0000000000
-4.0000000000 4.0000000000
-select median(score) over (partition by name), percentile_cont(0.3) within group(order by score) over (partition by name) as c from t1;
-median(score) over (partition by name) c
-5.0000000000 4.2000000000
-5.0000000000 4.2000000000
-4.0000000000 3.6000000000
-4.0000000000 3.6000000000
-4.0000000000 3.6000000000
-4.0000000000 4.0000000000
-4.0000000000 4.0000000000
-select median(score) over (partition by name), percentile_cont(0.4) within group(order by score) over (partition by name) as c from t1;
-median(score) over (partition by name) c
-5.0000000000 4.6000000000
-5.0000000000 4.6000000000
-4.0000000000 3.8000000000
-4.0000000000 3.8000000000
-4.0000000000 3.8000000000
-4.0000000000 4.0000000000
-4.0000000000 4.0000000000
-select median(score) over (partition by name), percentile_cont(0.5) within group(order by score) over (partition by name) as c from t1;
-median(score) over (partition by name) c
-5.0000000000 5.0000000000
-5.0000000000 5.0000000000
-4.0000000000 4.0000000000
-4.0000000000 4.0000000000
-4.0000000000 4.0000000000
-4.0000000000 4.0000000000
-4.0000000000 4.0000000000
-select median(score) over (partition by name), percentile_cont(0.6) within group(order by score) over (partition by name) as c from t1;
-median(score) over (partition by name) c
-5.0000000000 5.4000000000
-5.0000000000 5.4000000000
-4.0000000000 4.6000000000
-4.0000000000 4.6000000000
-4.0000000000 4.6000000000
-4.0000000000 4.0000000000
-4.0000000000 4.0000000000
-select median(score) over (partition by name), percentile_cont(0.7) within group(order by score) over (partition by name) as c from t1;
-median(score) over (partition by name) c
-5.0000000000 5.8000000000
-5.0000000000 5.8000000000
-4.0000000000 5.2000000000
-4.0000000000 5.2000000000
-4.0000000000 5.2000000000
-4.0000000000 4.0000000000
-4.0000000000 4.0000000000
-select median(score) over (partition by name), percentile_cont(0.8) within group(order by score) over (partition by name) as c from t1;
-median(score) over (partition by name) c
-5.0000000000 6.2000000000
-5.0000000000 6.2000000000
-4.0000000000 5.8000000000
-4.0000000000 5.8000000000
-4.0000000000 5.8000000000
-4.0000000000 4.0000000000
-4.0000000000 4.0000000000
-select median(score) over (partition by name), percentile_cont(0.9) within group(order by score) over (partition by name) as c from t1;
-median(score) over (partition by name) c
-5.0000000000 6.6000000000
-5.0000000000 6.6000000000
-4.0000000000 6.4000000000
-4.0000000000 6.4000000000
-4.0000000000 6.4000000000
-4.0000000000 4.0000000000
-4.0000000000 4.0000000000
-select median(score) over (partition by name), percentile_cont(1) within group(order by score) over (partition by name) as c from t1;
-median(score) over (partition by name) c
-5.0000000000 7.0000000000
-5.0000000000 7.0000000000
-4.0000000000 7.0000000000
-4.0000000000 7.0000000000
-4.0000000000 7.0000000000
-4.0000000000 4.0000000000
-4.0000000000 4.0000000000
-drop table t1;
diff --git a/mysql-test/r/win_rank.result b/mysql-test/r/win_rank.result
deleted file mode 100644
index 725683d3869..00000000000
--- a/mysql-test/r/win_rank.result
+++ /dev/null
@@ -1,104 +0,0 @@
-#
-# Try DENSE_RANK() function
-#
-create table t1 (
-pk int primary key,
-a int,
-b int
-);
-insert into t1 values
-( 1 , 0, 10),
-( 2 , 0, 10),
-( 3 , 1, 10),
-( 4 , 1, 10),
-( 8 , 2, 10),
-( 5 , 2, 20),
-( 6 , 2, 20),
-( 7 , 2, 20),
-( 9 , 4, 20),
-(10 , 4, 20);
-select pk, a, b, rank() over (order by a) as rank,
-dense_rank() over (order by a) as dense_rank
-from t1;
-pk a b rank dense_rank
-1 0 10 1 1
-2 0 10 1 1
-3 1 10 3 2
-4 1 10 3 2
-8 2 10 5 3
-5 2 20 5 3
-6 2 20 5 3
-7 2 20 5 3
-9 4 20 9 4
-10 4 20 9 4
-select pk, a, b, rank() over (partition by b order by a) as rank,
-dense_rank() over (partition by b order by a) as dense_rank
-from t1;
-pk a b rank dense_rank
-1 0 10 1 1
-2 0 10 1 1
-3 1 10 3 2
-4 1 10 3 2
-8 2 10 5 3
-5 2 20 1 1
-6 2 20 1 1
-7 2 20 1 1
-9 4 20 4 2
-10 4 20 4 2
-drop table t1;
-#
-# Test with null values in the table.
-#
-create table t2 (s1 int, s2 char(5));
-insert into t2 values (1,'a');
-insert into t2 values (null,null);
-insert into t2 values (1,null);
-insert into t2 values (null,'a');
-insert into t2 values (null,'c');
-insert into t2 values (2,'b');
-insert into t2 values (-1,'');
-select *, rank() over (order by s1) as rank,
-dense_rank() over (order by s1) as dense_rank
-from t2;
-s1 s2 rank dense_rank
-1 a 5 3
-NULL NULL 1 1
-1 NULL 5 3
-NULL a 1 1
-NULL c 1 1
-2 b 7 4
--1 4 2
-select *, rank() over (partition by s2 order by s1) as rank,
-dense_rank() over (partition by s2 order by s1) as dense_rank
-from t2;
-s1 s2 rank dense_rank
-1 a 2 2
-NULL NULL 1 1
-1 NULL 2 2
-NULL a 1 1
-NULL c 1 1
-2 b 1 1
--1 1 1
-select *, rank() over (order by s2) as rank,
-dense_rank() over (order by s2) as dense_rank
-from t2;
-s1 s2 rank dense_rank
-1 a 4 3
-NULL NULL 1 1
-1 NULL 1 1
-NULL a 4 3
-NULL c 7 5
-2 b 6 4
--1 3 2
-select *, rank() over (partition by s1 order by s2) as rank,
-dense_rank() over (partition by s1 order by s2) as dense_rank
-from t2;
-s1 s2 rank dense_rank
-1 a 2 2
-NULL NULL 1 1
-1 NULL 1 1
-NULL a 2 2
-NULL c 3 3
-2 b 1 1
--1 1 1
-drop table t2;
diff --git a/mysql-test/r/win_std.result b/mysql-test/r/win_std.result
deleted file mode 100644
index 36d99eec425..00000000000
--- a/mysql-test/r/win_std.result
+++ /dev/null
@@ -1,293 +0,0 @@
-create table t1 (
-pk int primary key,
-a int,
-b int
-);
-create table t2 (
-pk int primary key,
-a int,
-b int,
-c char(10)
-);
-insert into t2 values
-( 1, 0, 1, 'one'),
-( 2, 0, 2, 'two'),
-( 3, 0, 3, 'three'),
-( 4, 1, 1, 'one'),
-( 5, 1, 1, 'two'),
-( 6, 1, 2, 'three');
-# First try some invalid queries.
-select std(c) over (order by a)
-from t2;
-std(c) over (order by a)
-0
-0
-0
-0
-0
-0
-# Empty frame.
-select std(b) over (order by a rows between 2 following and 1 following)
-from t2;
-std(b) over (order by a rows between 2 following and 1 following)
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-select std(b) over (order by a range between 2 following and 1 following)
-from t2;
-std(b) over (order by a range between 2 following and 1 following)
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-select std(b) over (order by a rows between 1 preceding and 2 preceding)
-from t2;
-std(b) over (order by a rows between 1 preceding and 2 preceding)
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-select std(b) over (order by a range between 1 preceding and 2 preceding)
-from t2;
-std(b) over (order by a range between 1 preceding and 2 preceding)
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-select std(b) over (order by a rows between 1 following and 0 following)
-from t2;
-std(b) over (order by a rows between 1 following and 0 following)
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-select std(b) over (order by a range between 1 following and 0 following)
-from t2;
-std(b) over (order by a range between 1 following and 0 following)
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-select std(b) over (order by a rows between 1 following and 0 preceding)
-from t2;
-std(b) over (order by a rows between 1 following and 0 preceding)
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-select std(b) over (order by a range between 1 following and 0 preceding)
-from t2;
-std(b) over (order by a range between 1 following and 0 preceding)
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-select std(b) over (order by a rows between 0 following and 1 preceding)
-from t2;
-std(b) over (order by a rows between 0 following and 1 preceding)
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-select std(b) over (order by a range between 0 following and 1 preceding)
-from t2;
-std(b) over (order by a range between 0 following and 1 preceding)
-NULL
-NULL
-NULL
-NULL
-NULL
-NULL
-# 1 row frame.
-select std(b) over (order by a rows between current row and current row)
-from t2;
-std(b) over (order by a rows between current row and current row)
-0.0000
-0.0000
-0.0000
-0.0000
-0.0000
-0.0000
-select std(b) over (order by a rows between 0 preceding and current row)
-from t2;
-std(b) over (order by a rows between 0 preceding and current row)
-0.0000
-0.0000
-0.0000
-0.0000
-0.0000
-0.0000
-select std(b) over (order by a rows between 0 preceding and 0 preceding)
-from t2;
-std(b) over (order by a rows between 0 preceding and 0 preceding)
-0.0000
-0.0000
-0.0000
-0.0000
-0.0000
-0.0000
-select std(b) over (order by a rows between 0 preceding and 0 following)
-from t2;
-std(b) over (order by a rows between 0 preceding and 0 following)
-0.0000
-0.0000
-0.0000
-0.0000
-0.0000
-0.0000
-select std(b) over (order by a rows between 0 following and 0 preceding)
-from t2;
-std(b) over (order by a rows between 0 following and 0 preceding)
-0.0000
-0.0000
-0.0000
-0.0000
-0.0000
-0.0000
-select std(b) over (order by a rows between 0 following and current row)
-from t2;
-ERROR HY000: Unacceptable combination of window frame bound specifications
-select std(b) over (order by a rows between current row and 0 following)
-from t2;
-std(b) over (order by a rows between current row and 0 following)
-0.0000
-0.0000
-0.0000
-0.0000
-0.0000
-0.0000
-# Only peers frame.
-select a, b, std(b) over (order by a range between 0 preceding and 0 preceding)
-from t2;
-a b std(b) over (order by a range between 0 preceding and 0 preceding)
-0 1 0.8165
-0 2 0.8165
-0 3 0.8165
-1 1 0.4714
-1 1 0.4714
-1 2 0.4714
-select a, b, std(b) over (order by a range between 0 preceding and current row)
-from t2;
-a b std(b) over (order by a range between 0 preceding and current row)
-0 1 0.8165
-0 2 0.8165
-0 3 0.8165
-1 1 0.4714
-1 1 0.4714
-1 2 0.4714
-select a, b, std(b) over (order by a range between current row and 0 preceding)
-from t2;
-ERROR HY000: Unacceptable combination of window frame bound specifications
-select a, b, std(b) over (order by a range between current row and 0 following)
-from t2;
-a b std(b) over (order by a range between current row and 0 following)
-0 1 0.8165
-0 2 0.8165
-0 3 0.8165
-1 1 0.4714
-1 1 0.4714
-1 2 0.4714
-select a, b, std(b) over (order by a range between 0 following and 0 following)
-from t2;
-a b std(b) over (order by a range between 0 following and 0 following)
-0 1 0.8165
-0 2 0.8165
-0 3 0.8165
-1 1 0.4714
-1 1 0.4714
-1 2 0.4714
-# 2 rows frame.
-select pk, a, b, std(b) over (order by a, b, pk rows between 1 preceding and current row)
-from t2;
-pk a b std(b) over (order by a, b, pk rows between 1 preceding and current row)
-1 0 1 0.0000
-2 0 2 0.5000
-3 0 3 0.5000
-4 1 1 1.0000
-5 1 1 0.0000
-6 1 2 0.5000
-select pk, a, b, std(b) over (order by a, b, pk rows between 1 preceding and 0 preceding)
-from t2;
-pk a b std(b) over (order by a, b, pk rows between 1 preceding and 0 preceding)
-1 0 1 0.0000
-2 0 2 0.5000
-3 0 3 0.5000
-4 1 1 1.0000
-5 1 1 0.0000
-6 1 2 0.5000
-select pk, a, b, std(b) over (order by a, b, pk rows between current row and 1 following)
-from t2;
-pk a b std(b) over (order by a, b, pk rows between current row and 1 following)
-1 0 1 0.5000
-2 0 2 0.5000
-3 0 3 1.0000
-4 1 1 0.0000
-5 1 1 0.5000
-6 1 2 0.0000
-select pk, a, b, std(b) over (order by a, b, pk rows between 0 following and 1 following)
-from t2;
-pk a b std(b) over (order by a, b, pk rows between 0 following and 1 following)
-1 0 1 0.5000
-2 0 2 0.5000
-3 0 3 1.0000
-4 1 1 0.0000
-5 1 1 0.5000
-6 1 2 0.0000
-# 2 peers frame.
-select pk, a, b, std(b) over (order by a range between 1 preceding and current row)
-from t2;
-pk a b std(b) over (order by a range between 1 preceding and current row)
-1 0 1 0.8165
-2 0 2 0.8165
-3 0 3 0.8165
-4 1 1 0.7454
-5 1 1 0.7454
-6 1 2 0.7454
-select pk, a, b, std(b) over (order by a range between 1 preceding and 0 preceding)
-from t2;
-pk a b std(b) over (order by a range between 1 preceding and 0 preceding)
-1 0 1 0.8165
-2 0 2 0.8165
-3 0 3 0.8165
-4 1 1 0.7454
-5 1 1 0.7454
-6 1 2 0.7454
-select pk, a, b, std(b) over (order by a range between current row and 1 following)
-from t2;
-pk a b std(b) over (order by a range between current row and 1 following)
-1 0 1 0.7454
-2 0 2 0.7454
-3 0 3 0.7454
-4 1 1 0.4714
-5 1 1 0.4714
-6 1 2 0.4714
-select pk, a, b, std(b) over (order by a range between 0 following and 1 following)
-from t2;
-pk a b std(b) over (order by a range between 0 following and 1 following)
-1 0 1 0.7454
-2 0 2 0.7454
-3 0 3 0.7454
-4 1 1 0.4714
-5 1 1 0.4714
-6 1 2 0.4714
-drop table t1;
-drop table t2;
diff --git a/mysql-test/r/win_sum.result b/mysql-test/r/win_sum.result
deleted file mode 100644
index 66a48fe8293..00000000000
--- a/mysql-test/r/win_sum.result
+++ /dev/null
@@ -1,95 +0,0 @@
-create table t1 (
-pk int primary key,
-a int,
-b int,
-c real
-);
-insert into t1 values
-(101 , 0, 10, 1.1),
-(102 , 0, 10, 2.1),
-(103 , 1, 10, 3.1),
-(104 , 1, 10, 4.1),
-(108 , 2, 10, 5.1),
-(105 , 2, 20, 6.1),
-(106 , 2, 20, 7.1),
-(107 , 2, 20, 8.15),
-(109 , 4, 20, 9.15),
-(110 , 4, 20, 10.15),
-(111 , 5, NULL, 11.15),
-(112 , 5, 1, 12.25),
-(113 , 5, NULL, 13.35),
-(114 , 5, NULL, 14.50),
-(115 , 5, NULL, 15.65),
-(116 , 6, 1, NULL),
-(117 , 6, 1, 10),
-(118 , 6, 1, 1.1),
-(119 , 6, 1, NULL),
-(120 , 6, 1, NULL),
-(121 , 6, 1, NULL),
-(122 , 6, 1, 2.2),
-(123 , 6, 1, 20.1),
-(124 , 6, 1, -10.4),
-(125 , 6, 1, NULL),
-(126 , 6, 1, NULL),
-(127 , 6, 1, NULL);
-select pk, a, b, sum(b) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING)
-from t1;
-pk a b sum(b) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING)
-101 0 10 20
-102 0 10 20
-103 1 10 20
-104 1 10 20
-105 2 20 40
-106 2 20 60
-107 2 20 50
-108 2 10 30
-109 4 20 40
-110 4 20 40
-111 5 NULL 1
-112 5 1 1
-113 5 NULL 1
-114 5 NULL NULL
-115 5 NULL NULL
-116 6 1 2
-117 6 1 3
-118 6 1 3
-119 6 1 3
-120 6 1 3
-121 6 1 3
-122 6 1 3
-123 6 1 3
-124 6 1 3
-125 6 1 3
-126 6 1 3
-127 6 1 2
-select pk, a, c, sum(c) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING)
-from t1;
-pk a c sum(c) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING)
-101 0 1.1 3.2
-102 0 2.1 3.2
-103 1 3.1 7.199999999999999
-104 1 4.1 7.199999999999999
-105 2 6.1 13.2
-106 2 7.1 21.35
-107 2 8.15 20.35
-108 2 5.1 13.250000000000002
-109 4 9.15 19.3
-110 4 10.15 19.3
-111 5 11.15 23.4
-112 5 12.25 36.75
-113 5 13.35 40.1
-114 5 14.5 43.5
-115 5 15.65 30.15
-116 6 NULL 10
-117 6 10 11.1
-118 6 1.1 11.1
-119 6 NULL 1.0999999999999996
-120 6 NULL NULL
-121 6 NULL 2.1999999999999997
-122 6 2.2 22.3
-123 6 20.1 11.9
-124 6 -10.4 9.7
-125 6 NULL -10.400000000000002
-126 6 NULL NULL
-127 6 NULL NULL
-drop table t1;
diff --git a/mysql-test/r/windows.result b/mysql-test/r/windows.result
deleted file mode 100644
index 05e4600f4b7..00000000000
--- a/mysql-test/r/windows.result
+++ /dev/null
@@ -1,67 +0,0 @@
-use lpt1;
-ERROR 42000: Unknown database 'lpt1'
-use com1;
-ERROR 42000: Unknown database 'com1'
-use prn;
-ERROR 42000: Unknown database 'prn'
-create table nu (a int);
-drop table nu;
-drop table if exists t1;
-CREATE TABLE t1 ( `ID` int(6) ) data directory 'c:/tmp/' index directory 'c:/tmp/' engine=MyISAM;
-Warnings:
-Warning 1618 <DATA DIRECTORY> option ignored
-Warning 1618 <INDEX DIRECTORY> option ignored
-drop table t1;
-CREATE TABLE t1 (a int, b int);
-INSERT INTO t1 VALUES (1,1);
-EXPLAIN SELECT * FROM t1 WHERE b = (SELECT max(2));
-id select_type table type possible_keys key key_len ref rows Extra
-1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
-DROP TABLE t1;
-CREATE DATABASE `TESTDB`;
-USE `TESTDB`;
-CREATE FUNCTION test_fn() RETURNS INTEGER
-BEGIN
-DECLARE rId bigint;
-RETURN rId;
-END
-//
-CREATE FUNCTION test_fn2() RETURNS INTEGER
-BEGIN
-DECLARE rId bigint;
-RETURN rId;
-END
-//
-DROP FUNCTION `TESTDB`.`test_fn`;
-DROP FUNCTION `testdb`.`test_fn2`;
-USE test;
-DROP DATABASE `TESTDB`;
-End of 5.0 tests.
-drop procedure if exists proc_1;
-create procedure proc_1() install plugin my_plug soname '\\root\\some_plugin.dll';
-call proc_1();
-ERROR HY000: No paths allowed for shared library
-call proc_1();
-ERROR HY000: No paths allowed for shared library
-call proc_1();
-ERROR HY000: No paths allowed for shared library
-drop procedure proc_1;
-prepare abc from "install plugin my_plug soname '\\\\root\\\\some_plugin.dll'";
-execute abc;
-ERROR HY000: No paths allowed for shared library
-execute abc;
-ERROR HY000: No paths allowed for shared library
-deallocate prepare abc;
-#
-# Bug#45498: Socket variable not available on Windows
-#
-SELECT VARIABLE_NAME FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
-WHERE VARIABLE_NAME = 'socket';
-VARIABLE_NAME
-SOCKET
-#
-# Bug#16581605: REPLACE.EXE UTILITY IS BROKEN IN 5.5
-#
-xyz
-def
diff --git a/mysql-test/r/xa.result b/mysql-test/r/xa.result
deleted file mode 100644
index 46bfa6e962a..00000000000
--- a/mysql-test/r/xa.result
+++ /dev/null
@@ -1,346 +0,0 @@
-call mtr.add_suppression("Deadlock found when trying to get lock; try restarting transaction");
-drop table if exists t1, t2;
-create table t1 (a int) engine=innodb;
-xa start 'test1';
-insert t1 values (10);
-xa end 'test1';
-xa prepare 'test1';
-xa rollback 'test1';
-select * from t1;
-a
-xa start 'test2';
-xa start 'test-bad';
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state
-insert t1 values (20);
-xa prepare 'test2';
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state
-xa end 'test2';
-xa prepare 'test2';
-xa commit 'test2';
-select * from t1;
-a
-20
-xa start 'testa','testb';
-insert t1 values (30);
-commit;
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state
-xa end 'testa','testb';
-begin;
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the IDLE state
-create table t2 (a int);
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the IDLE state
-connect con1,localhost,root,,;
-connection con1;
-xa start 'testa','testb';
-ERROR XAE08: XAER_DUPID: The XID already exists
-xa start 'testa','testb', 123;
-ERROR XAE08: XAER_DUPID: The XID already exists
-xa start 0x7465737462, 0x2030405060, 0xb;
-insert t1 values (40);
-xa end 'testb',' 0@P`',11;
-xa prepare 'testb',0x2030405060,11;
-start transaction;
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the PREPARED state
-xa recover;
-formatID gtrid_length bqual_length data
-11 5 5 testb 0@P`
-connection default;
-xa prepare 'testa','testb';
-xa recover;
-formatID gtrid_length bqual_length data
-11 5 5 testb 0@P`
-1 5 5 testatestb
-xa commit 'testb',0x2030405060,11;
-ERROR XAE04: XAER_NOTA: Unknown XID
-xa rollback 'testa','testb';
-xa start 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz';
-ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
-select * from t1;
-a
-20
-disconnect con1;
-connection default;
-xa start 'tr1';
-insert t1 values (40);
-xa end 'tr1';
-xa prepare 'tr1';
-xa recover format='SQL';
-formatID gtrid_length bqual_length data
-1 3 0 'tr1'
-xa rollback 'tr1';
-xa start 'tr1', 'bq';
-insert t1 values (40);
-xa end 'tr1', 'bq';
-xa prepare 'tr1', 'bq';
-xa recover format='SQL';
-formatID gtrid_length bqual_length data
-1 3 2 'tr1','bq'
-xa rollback 'tr1', 'bq';
-xa start 'tr1', 'bq', 3;
-insert t1 values (40);
-xa end 'tr1', 'bq', 3;
-xa prepare 'tr1', 'bq', 3;
-xa recover format='SQL';
-formatID gtrid_length bqual_length data
-3 3 2 'tr1','bq',3
-xa rollback 'tr1', 'bq', 3;
-xa start 'tr1#$';
-insert t1 values (40);
-xa end 'tr1#$';
-xa prepare 'tr1#$';
-xa recover format='SQL';
-formatID gtrid_length bqual_length data
-1 5 0 X'7472312324'
-xa rollback 'tr1#$';
-xa start 'tr1#$', 'bq';
-insert t1 values (40);
-xa end 'tr1#$', 'bq';
-xa prepare 'tr1#$', 'bq';
-xa recover format='SQL';
-formatID gtrid_length bqual_length data
-1 5 2 X'7472312324',X'6271'
-xa rollback 'tr1#$', 'bq';
-xa start 'tr1#$', 'bq', 3;
-insert t1 values (40);
-xa end 'tr1#$', 'bq', 3;
-xa prepare 'tr1#$', 'bq', 3;
-xa recover format='RAW';
-formatID gtrid_length bqual_length data
-3 5 2 tr1#$bq
-xa recover format='PLAIN';
-ERROR HY000: Unknown XA RECOVER format name: 'PLAIN'
-xa recover format='SQL';
-formatID gtrid_length bqual_length data
-3 5 2 X'7472312324',X'6271',3
-xa rollback 'tr1#$', 'bq', 3;
-drop table t1;
-drop table if exists t1;
-create table t1(a int, b int, c varchar(20), primary key(a)) engine = innodb;
-insert into t1 values(1, 1, 'a');
-insert into t1 values(2, 2, 'b');
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connection con1;
-xa start 'a','b';
-update t1 set c = 'aa' where a = 1;
-connection con2;
-xa start 'a','c';
-update t1 set c = 'bb' where a = 2;
-connection con1;
-update t1 set c = 'bb' where a = 2;
-connection con2;
-update t1 set c = 'aa' where a = 1;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-select count(*) from t1;
-count(*)
-2
-xa end 'a','c';
-ERROR XA102: XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected
-xa rollback 'a','c';
-disconnect con2;
-connect con3,localhost,root,,;
-connection con3;
-xa start 'a','c';
-disconnect con1;
-disconnect con3;
-connection default;
-drop table t1;
-#
-# BUG#51342 - more xid crashing
-#
-CREATE TABLE t1(a INT) ENGINE=InnoDB;
-XA START 'x';
-SET SESSION autocommit=0;
-INSERT INTO t1 VALUES(1);
-SET SESSION autocommit=1;
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state
-SELECT @@autocommit;
-@@autocommit
-0
-INSERT INTO t1 VALUES(1);
-XA END 'x';
-XA COMMIT 'x' ONE PHASE;
-DROP TABLE t1;
-SET SESSION autocommit=1;
-End of 5.0 tests
-xa start 'a';
-xa end 'a';
-xa rollback 'a';
-xa start 'a';
-xa end 'a';
-xa rollback 'a';
-xa start 'a';
-xa end 'a';
-xa prepare 'a';
-xa commit 'a';
-xa start 'a';
-xa end 'a';
-xa prepare 'a';
-xa commit 'a';
-CREATE TABLE t1(a INT, KEY(a)) ENGINE=InnoDB;
-INSERT INTO t1 VALUES(1),(2);
-connect con1,localhost,root,,;
-BEGIN;
-UPDATE t1 SET a=3 WHERE a=1;
-connection default;
-BEGIN;
-UPDATE t1 SET a=4 WHERE a=2;
-connection con1;
-UPDATE t1 SET a=5 WHERE a=2;
-connection default;
-UPDATE t1 SET a=5 WHERE a=1;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-ROLLBACK;
-connection con1;
-ROLLBACK;
-BEGIN;
-UPDATE t1 SET a=3 WHERE a=1;
-connection default;
-XA START 'xid1';
-UPDATE t1 SET a=4 WHERE a=2;
-connection con1;
-UPDATE t1 SET a=5 WHERE a=2;
-connection default;
-UPDATE t1 SET a=5 WHERE a=1;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-XA END 'xid1';
-ERROR XA102: XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected
-XA ROLLBACK 'xid1';
-XA START 'xid1';
-XA END 'xid1';
-XA ROLLBACK 'xid1';
-disconnect con1;
-DROP TABLE t1;
-#
-# Bug#56448 Assertion failed: ! is_set() with second xa end
-#
-XA START 'x';
-XA END 'x';
-XA END 'x';
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the IDLE state
-XA PREPARE 'x';
-XA PREPARE 'x';
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the PREPARED state
-XA ROLLBACK 'x';
-#
-# Bug#59986 Assert in Diagnostics_area::set_ok_status() for XA COMMIT
-#
-DROP TABLE IF EXISTS t1;
-CREATE TABLE t1(a INT, b INT, PRIMARY KEY(a)) engine=InnoDB;
-INSERT INTO t1 VALUES (1, 1), (2, 2);
-connect con1, localhost, root;
-XA START 'a';
-UPDATE t1 SET b= 3 WHERE a=1;
-connection default;
-XA START 'b';
-UPDATE t1 SET b=4 WHERE a=2;
-# Sending:
-UPDATE t1 SET b=5 WHERE a=1;
-connection con1;
-UPDATE t1 SET b=6 WHERE a=2;
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-XA COMMIT 'a';
-ERROR XA102: XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected
-connection default;
-# Reaping: UPDATE t1 SET b=5 WHERE a=1
-XA END 'b';
-XA ROLLBACK 'b';
-DROP TABLE t1;
-disconnect con1;
-#
-# Bug#11766752 59936: multiple xa assertions - transactional
-# statement fuzzer
-#
-CREATE TABLE t1 (a INT) engine=InnoDB;
-XA START 'a';
-INSERT INTO t1 VALUES (1);
-SAVEPOINT savep;
-XA END 'a';
-SELECT * FROM t1;
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the IDLE state
-INSERT INTO t1 VALUES (2);
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the IDLE state
-SAVEPOINT savep;
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the IDLE state
-SET @a=(SELECT * FROM t1);
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the IDLE state
-XA PREPARE 'a';
-SELECT * FROM t1;
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the PREPARED state
-INSERT INTO t1 VALUES (2);
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the PREPARED state
-SAVEPOINT savep;
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the PREPARED state
-SET @a=(SELECT * FROM t1);
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the PREPARED state
-UPDATE t1 SET a=1 WHERE a=2;
-ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the PREPARED state
-XA COMMIT 'a';
-SELECT * FROM t1;
-a
-1
-DROP TABLE t1;
-#
-# MDEV-14609 XA Transction unable to ROLLBACK TO SAVEPOINT
-#
-CREATE TABLE t1 (c1 INT) ENGINE=INNODB;
-XA START 'xa1';
-SAVEPOINT savepoint1;
-INSERT INTO t1 (c1) VALUES (1),(2),(3),(4);
-ROLLBACK TO SAVEPOINT savepoint1;
-XA END 'xa1';
-XA ROLLBACK 'xa1';
-DROP TABLE t1;
-#
-# Bug#12352846 - TRANS_XA_START(THD*):
-# ASSERTION THD->TRANSACTION.XID_STATE.XID.IS_NULL()
-# FAILED
-#
-DROP TABLE IF EXISTS t1, t2;
-CREATE TABLE t1 (a INT) ENGINE=InnoDB;
-CREATE TABLE t2 (a INT) ENGINE=InnoDB;
-START TRANSACTION;
-INSERT INTO t1 VALUES (1);
-connect con2,localhost,root;
-XA START 'xid1';
-# Sending:
-INSERT INTO t2 SELECT a FROM t1;
-connection default;
-# Waiting until INSERT ... is blocked
-DELETE FROM t1;
-connection con2;
-# Reaping: INSERT INTO t2 SELECT a FROM t1
-ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
-XA COMMIT 'xid1';
-ERROR XA102: XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected
-connection default;
-COMMIT;
-connection con2;
-XA START 'xid1';
-XA END 'xid1';
-XA PREPARE 'xid1';
-XA ROLLBACK 'xid1';
-connection default;
-DROP TABLE t1, t2;
-disconnect con2;
-CREATE TABLE t1 (pk INT PRIMARY KEY) ENGINE=InnoDB;
-CREATE TABLE t2 (pk INT PRIMARY KEY) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (1),(2);
-CREATE TABLE t3 (i INT) ENGINE=InnoDB;
-XA BEGIN 'xid1';
-REPLACE INTO t1 SELECT * FROM t2;
-connect con1,localhost,root,,test;
-XA BEGIN 'xid2';
-INSERT INTO t1 SELECT * FROM t2;
-connection default;
-REPLACE INTO t2 SELECT * FROM t2;
-connection con1;
-disconnect con1;
-connect con2,localhost,root,,test;
-INSERT INTO t3 VALUES (1);
-XA BEGIN 'xid3';
-disconnect con2;
-connection default;
-XA END 'xid1';
-XA ROLLBACK 'xid1';
-DROP TABLE t1, t2, t3;
diff --git a/mysql-test/r/xa_binlog.result b/mysql-test/r/xa_binlog.result
deleted file mode 100644
index 619a6e08b20..00000000000
--- a/mysql-test/r/xa_binlog.result
+++ /dev/null
@@ -1,32 +0,0 @@
-CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
-SET binlog_format= mixed;
-RESET MASTER;
-XA START 'xatest';
-INSERT INTO t1 VALUES (1);
-XA END 'xatest';
-XA PREPARE 'xatest';
-XA COMMIT 'xatest';
-XA START 'xatest';
-INSERT INTO t1 VALUES (2);
-XA END 'xatest';
-XA COMMIT 'xatest' ONE PHASE;
-BEGIN;
-INSERT INTO t1 VALUES (3);
-COMMIT;
-SELECT * FROM t1 ORDER BY a;
-a
-1
-2
-3
-SHOW BINLOG EVENTS LIMIT 3,9;
-Log_name Pos Event_type Server_id End_log_pos Info
-master-bin.000001 # Gtid 1 # BEGIN GTID #-#-#
-master-bin.000001 # Query 1 # use `test`; INSERT INTO t1 VALUES (1)
-master-bin.000001 # Query 1 # COMMIT
-master-bin.000001 # Gtid 1 # BEGIN GTID #-#-#
-master-bin.000001 # Query 1 # use `test`; INSERT INTO t1 VALUES (2)
-master-bin.000001 # Query 1 # COMMIT
-master-bin.000001 # Gtid 1 # BEGIN GTID #-#-#
-master-bin.000001 # Query 1 # use `test`; INSERT INTO t1 VALUES (3)
-master-bin.000001 # Xid 1 # COMMIT /* xid=XX */
-DROP TABLE t1;
diff --git a/mysql-test/r/xa_sync.result b/mysql-test/r/xa_sync.result
deleted file mode 100644
index 1482ff5cacf..00000000000
--- a/mysql-test/r/xa_sync.result
+++ /dev/null
@@ -1,42 +0,0 @@
-#
-# MDEV-7793 - Race condition between XA COMMIT/ROLLBACK and disconnect
-#
-# Note that this test is meaningful only with valgrind.
-connect con1, localhost, root;
-connect con2, localhost, root;
-connection con1;
-XA START 'xatest';
-XA END 'xatest';
-XA PREPARE 'xatest';
-connection con2;
-SET debug_sync='xa_after_search SIGNAL parked WAIT_FOR go';
-XA COMMIT 'xatest';
-connection default;
-SET debug_sync='now WAIT_FOR parked';
-disconnect con1;
-# Waiting for thread to get deleted
-SET debug_sync='now SIGNAL go';
-connection con2;
-ERROR XAE04: XAER_NOTA: Unknown XID
-disconnect con2;
-connection default;
-SET debug_sync='RESET';
-connect con1, localhost, root;
-connect con2, localhost, root;
-connection con1;
-XA START 'xatest';
-XA END 'xatest';
-XA PREPARE 'xatest';
-connection con2;
-SET debug_sync='xa_after_search SIGNAL parked WAIT_FOR go';
-XA ROLLBACK 'xatest';
-connection default;
-SET debug_sync='now WAIT_FOR parked';
-disconnect con1;
-# Waiting for thread to get deleted
-SET debug_sync='now SIGNAL go';
-connection con2;
-ERROR XAE04: XAER_NOTA: Unknown XID
-disconnect con2;
-connection default;
-SET debug_sync='RESET';
diff --git a/mysql-test/r/xml.result b/mysql-test/r/xml.result
deleted file mode 100644
index 2cd70c08a94..00000000000
--- a/mysql-test/r/xml.result
+++ /dev/null
@@ -1,1311 +0,0 @@
-SET @xml='<a aa1="aa1" aa2="aa2">a1<b ba1="ba1">b1<c>c1</c>b2</b>a2</a>';
-SELECT extractValue(@xml,'/a');
-extractValue(@xml,'/a')
-a1 a2
-SELECT extractValue(@xml,'/a/b');
-extractValue(@xml,'/a/b')
-b1 b2
-SELECT extractValue(@xml,'/a/b/c');
-extractValue(@xml,'/a/b/c')
-c1
-SELECT extractValue(@xml,'/a/@aa1');
-extractValue(@xml,'/a/@aa1')
-aa1
-SELECT extractValue(@xml,'/a/@aa2');
-extractValue(@xml,'/a/@aa2')
-aa2
-SELECT extractValue(@xml,'/a/@*');
-extractValue(@xml,'/a/@*')
-aa1 aa2
-SELECT extractValue(@xml,'//@ba1');
-extractValue(@xml,'//@ba1')
-ba1
-SELECT extractValue(@xml,'//a');
-extractValue(@xml,'//a')
-a1 a2
-SELECT extractValue(@xml,'//b');
-extractValue(@xml,'//b')
-b1 b2
-SELECT extractValue(@xml,'//c');
-extractValue(@xml,'//c')
-c1
-SELECT extractValue(@xml,'/a//b');
-extractValue(@xml,'/a//b')
-b1 b2
-SELECT extractValue(@xml,'/a//c');
-extractValue(@xml,'/a//c')
-c1
-SELECT extractValue(@xml,'//*');
-extractValue(@xml,'//*')
-a1 b1 c1 b2 a2
-SELECT extractValue(@xml,'/a//*');
-extractValue(@xml,'/a//*')
-b1 c1 b2
-SELECT extractValue(@xml,'/./a');
-extractValue(@xml,'/./a')
-a1 a2
-SELECT extractValue(@xml,'/a/b/.');
-extractValue(@xml,'/a/b/.')
-b1 b2
-SELECT extractValue(@xml,'/a/b/..');
-extractValue(@xml,'/a/b/..')
-a1 a2
-SELECT extractValue(@xml,'/a/b/../@aa1');
-extractValue(@xml,'/a/b/../@aa1')
-aa1
-SELECT extractValue(@xml,'/*');
-extractValue(@xml,'/*')
-a1 a2
-SELECT extractValue(@xml,'/*/*');
-extractValue(@xml,'/*/*')
-b1 b2
-SELECT extractValue(@xml,'/*/*/*');
-extractValue(@xml,'/*/*/*')
-c1
-SELECT extractValue(@xml,'/a/child::*');
-extractValue(@xml,'/a/child::*')
-b1 b2
-SELECT extractValue(@xml,'/a/self::*');
-extractValue(@xml,'/a/self::*')
-a1 a2
-SELECT extractValue(@xml,'/a/descendant::*');
-extractValue(@xml,'/a/descendant::*')
-b1 c1 b2
-SELECT extractValue(@xml,'/a/descendant-or-self::*');
-extractValue(@xml,'/a/descendant-or-self::*')
-a1 b1 c1 b2 a2
-SELECT extractValue(@xml,'/a/attribute::*');
-extractValue(@xml,'/a/attribute::*')
-aa1 aa2
-SELECT extractValue(@xml,'/a/b/c/parent::*');
-extractValue(@xml,'/a/b/c/parent::*')
-b1 b2
-SELECT extractValue(@xml,'/a/b/c/ancestor::*');
-extractValue(@xml,'/a/b/c/ancestor::*')
-a1 b1 b2 a2
-SELECT extractValue(@xml,'/a/b/c/ancestor-or-self::*');
-extractValue(@xml,'/a/b/c/ancestor-or-self::*')
-a1 b1 c1 b2 a2
-SELECT extractValue(@xml,'/descendant-or-self::*');
-extractValue(@xml,'/descendant-or-self::*')
-a1 b1 c1 b2 a2
-SET @xml='<a>a11<b ba="ba11" ba="ba12">b11</b><b ba="ba21" ba="ba22">b21<c>c1</c>b22</b>a12</a>';
-SELECT extractValue(@xml,'/a/b/c/ancestor-or-self::*');
-extractValue(@xml,'/a/b/c/ancestor-or-self::*')
-a11 b21 c1 b22 a12
-SELECT extractValue(@xml,'//@ba');
-extractValue(@xml,'//@ba')
-ba11 ba12 ba21 ba22
-SET @xml='<a><b>b</b><c>c</c></a>';
-SELECT extractValue(@xml,'/a/b');
-extractValue(@xml,'/a/b')
-b
-SELECT extractValue(@xml,'/a/c');
-extractValue(@xml,'/a/c')
-c
-SELECT extractValue(@xml,'/a/child::b');
-extractValue(@xml,'/a/child::b')
-b
-SELECT extractValue(@xml,'/a/child::c');
-extractValue(@xml,'/a/child::c')
-c
-SET @xml='<a><b>b1</b><c>c1</c><b>b2</b><c>c2</c></a>';
-SELECT extractValue(@xml,'/a/b[1]');
-extractValue(@xml,'/a/b[1]')
-b1
-SELECT extractValue(@xml,'/a/b[2]');
-extractValue(@xml,'/a/b[2]')
-b2
-SELECT extractValue(@xml,'/a/c[1]');
-extractValue(@xml,'/a/c[1]')
-c1
-SELECT extractValue(@xml,'/a/c[2]');
-extractValue(@xml,'/a/c[2]')
-c2
-SET @xml='<a><b x="xb1" x="xb2"/><c x="xc1" x="xc2"/></a>';
-SELECT extractValue(@xml,'/a//@x');
-extractValue(@xml,'/a//@x')
-xb1 xb2 xc1 xc2
-SELECT extractValue(@xml,'/a//@x[1]');
-extractValue(@xml,'/a//@x[1]')
-xb1 xc1
-SELECT extractValue(@xml,'/a//@x[2]');
-extractValue(@xml,'/a//@x[2]')
-xb2 xc2
-SET @xml='<a><b>b1</b><b>b2</b><c><b>c1b1</b><b>c1b2</b></c><c><b>c2b1</b></c></a>';
-SELECT extractValue(@xml,'//b[1]');
-extractValue(@xml,'//b[1]')
-b1 c1b1 c2b1
-SELECT extractValue(@xml,'/descendant::b[1]');
-extractValue(@xml,'/descendant::b[1]')
-b1
-SET @xml='<a><b>b1</b><b>b2</b></a>';
-SELECT extractValue(@xml,'/a/b[1+0]');
-extractValue(@xml,'/a/b[1+0]')
-b1
-SELECT extractValue(@xml,'/a/b[1*1]');
-extractValue(@xml,'/a/b[1*1]')
-b1
-SELECT extractValue(@xml,'/a/b[--1]');
-extractValue(@xml,'/a/b[--1]')
-b1
-SELECT extractValue(@xml,'/a/b[2*1-1]');
-extractValue(@xml,'/a/b[2*1-1]')
-b1
-SELECT extractValue(@xml,'/a/b[1+1]');
-extractValue(@xml,'/a/b[1+1]')
-b2
-SELECT extractValue(@xml,'/a/b[1*2]');
-extractValue(@xml,'/a/b[1*2]')
-b2
-SELECT extractValue(@xml,'/a/b[--2]');
-extractValue(@xml,'/a/b[--2]')
-b2
-SELECT extractValue(@xml,'/a/b[1*(3-1)]');
-extractValue(@xml,'/a/b[1*(3-1)]')
-b2
-SELECT extractValue(@xml,'//*[1=1]');
-extractValue(@xml,'//*[1=1]')
-b1 b2
-SELECT extractValue(@xml,'//*[1!=1]');
-extractValue(@xml,'//*[1!=1]')
-
-SELECT extractValue(@xml,'//*[1>1]');
-extractValue(@xml,'//*[1>1]')
-
-SELECT extractValue(@xml,'//*[2>1]');
-extractValue(@xml,'//*[2>1]')
-b1 b2
-SELECT extractValue(@xml,'//*[1>2]');
-extractValue(@xml,'//*[1>2]')
-
-SELECT extractValue(@xml,'//*[1>=1]');
-extractValue(@xml,'//*[1>=1]')
-b1 b2
-SELECT extractValue(@xml,'//*[2>=1]');
-extractValue(@xml,'//*[2>=1]')
-b1 b2
-SELECT extractValue(@xml,'//*[1>=2]');
-extractValue(@xml,'//*[1>=2]')
-
-SELECT extractValue(@xml,'//*[1<1]');
-extractValue(@xml,'//*[1<1]')
-
-SELECT extractValue(@xml,'//*[2<1]');
-extractValue(@xml,'//*[2<1]')
-
-SELECT extractValue(@xml,'//*[1<2]');
-extractValue(@xml,'//*[1<2]')
-b1 b2
-SELECT extractValue(@xml,'//*[1<=1]');
-extractValue(@xml,'//*[1<=1]')
-b1 b2
-SELECT extractValue(@xml,'//*[2<=1]');
-extractValue(@xml,'//*[2<=1]')
-
-SELECT extractValue(@xml,'//*[1<=2]');
-extractValue(@xml,'//*[1<=2]')
-b1 b2
-SET @xml='<a><b>b11<c>c11</c></b><b>b21<c>c21</c></b></a>';
-SELECT extractValue(@xml,'/a/b[c="c11"]');
-extractValue(@xml,'/a/b[c="c11"]')
-b11
-SELECT extractValue(@xml,'/a/b[c="c21"]');
-extractValue(@xml,'/a/b[c="c21"]')
-b21
-SET @xml='<a><b c="c11">b11</b><b c="c21">b21</b></a>';
-SELECT extractValue(@xml,'/a/b[@c="c11"]');
-extractValue(@xml,'/a/b[@c="c11"]')
-b11
-SELECT extractValue(@xml,'/a/b[@c="c21"]');
-extractValue(@xml,'/a/b[@c="c21"]')
-b21
-SET @xml='<a>a1<b c="c11">b11<d>d11</d></b><b c="c21">b21<d>d21</d></b></a>';
-SELECT extractValue(@xml, '/a/b[@c="c11"]/d');
-extractValue(@xml, '/a/b[@c="c11"]/d')
-d11
-SELECT extractValue(@xml, '/a/b[@c="c21"]/d');
-extractValue(@xml, '/a/b[@c="c21"]/d')
-d21
-SELECT extractValue(@xml, '/a/b[d="d11"]/@c');
-extractValue(@xml, '/a/b[d="d11"]/@c')
-c11
-SELECT extractValue(@xml, '/a/b[d="d21"]/@c');
-extractValue(@xml, '/a/b[d="d21"]/@c')
-c21
-SELECT extractValue(@xml, '/a[b="b11"]');
-extractValue(@xml, '/a[b="b11"]')
-a1
-SELECT extractValue(@xml, '/a[b/@c="c11"]');
-extractValue(@xml, '/a[b/@c="c11"]')
-a1
-SELECT extractValue(@xml, '/a[b/d="d11"]');
-extractValue(@xml, '/a[b/d="d11"]')
-a1
-SELECT extractValue(@xml, '/a[/a/b="b11"]');
-extractValue(@xml, '/a[/a/b="b11"]')
-a1
-SELECT extractValue(@xml, '/a[/a/b/@c="c11"]');
-extractValue(@xml, '/a[/a/b/@c="c11"]')
-a1
-SELECT extractValue(@xml, '/a[/a/b/d="d11"]');
-extractValue(@xml, '/a[/a/b/d="d11"]')
-a1
-SELECT extractValue('<a>a</a>', '/a[false()]');
-extractValue('<a>a</a>', '/a[false()]')
-
-SELECT extractValue('<a>a</a>', '/a[true()]');
-extractValue('<a>a</a>', '/a[true()]')
-a
-SELECT extractValue('<a>a</a>', '/a[not(false())]');
-extractValue('<a>a</a>', '/a[not(false())]')
-a
-SELECT extractValue('<a>a</a>', '/a[not(true())]');
-extractValue('<a>a</a>', '/a[not(true())]')
-
-SELECT extractValue('<a>a</a>', '/a[true() and true()]');
-extractValue('<a>a</a>', '/a[true() and true()]')
-a
-SELECT extractValue('<a>a</a>', '/a[true() and false()]');
-extractValue('<a>a</a>', '/a[true() and false()]')
-
-SELECT extractValue('<a>a</a>', '/a[false()and false()]');
-extractValue('<a>a</a>', '/a[false()and false()]')
-
-SELECT extractValue('<a>a</a>', '/a[false()and true()]');
-extractValue('<a>a</a>', '/a[false()and true()]')
-
-SELECT extractValue('<a>a</a>', '/a[true() or true()]');
-extractValue('<a>a</a>', '/a[true() or true()]')
-a
-SELECT extractValue('<a>a</a>', '/a[true() or false()]');
-extractValue('<a>a</a>', '/a[true() or false()]')
-a
-SELECT extractValue('<a>a</a>', '/a[false()or false()]');
-extractValue('<a>a</a>', '/a[false()or false()]')
-
-SELECT extractValue('<a>a</a>', '/a[false()or true()]');
-extractValue('<a>a</a>', '/a[false()or true()]')
-a
-SET @xml='<a>ab<b c="c" c="e">b1</b><b c="d">b2</b><b c="f" c="e">b3</b></a>';
-select extractValue(@xml,'/a/b[@c="c"]');
-extractValue(@xml,'/a/b[@c="c"]')
-b1
-select extractValue(@xml,'/a/b[@c="d"]');
-extractValue(@xml,'/a/b[@c="d"]')
-b2
-select extractValue(@xml,'/a/b[@c="e"]');
-extractValue(@xml,'/a/b[@c="e"]')
-b1 b3
-select extractValue(@xml,'/a/b[not(@c="e")]');
-extractValue(@xml,'/a/b[not(@c="e")]')
-b2
-select extractValue(@xml,'/a/b[@c!="e"]');
-extractValue(@xml,'/a/b[@c!="e"]')
-b1 b2 b3
-select extractValue(@xml,'/a/b[@c="c" or @c="d"]');
-extractValue(@xml,'/a/b[@c="c" or @c="d"]')
-b1 b2
-select extractValue(@xml,'/a/b[@c="c" and @c="e"]');
-extractValue(@xml,'/a/b[@c="c" and @c="e"]')
-b1
-SET @xml='<a><b c="c" d="d">b1</b><b d="d" e="e">b2</b></a>';
-select extractValue(@xml,'/a/b[@c]');
-extractValue(@xml,'/a/b[@c]')
-b1
-select extractValue(@xml,'/a/b[@d]');
-extractValue(@xml,'/a/b[@d]')
-b1 b2
-select extractValue(@xml,'/a/b[@e]');
-extractValue(@xml,'/a/b[@e]')
-b2
-select extractValue(@xml,'/a/b[not(@c)]');
-extractValue(@xml,'/a/b[not(@c)]')
-b2
-select extractValue(@xml,'/a/b[not(@d)]');
-extractValue(@xml,'/a/b[not(@d)]')
-
-select extractValue(@xml,'/a/b[not(@e)]');
-extractValue(@xml,'/a/b[not(@e)]')
-b1
-select extractValue(@xml, '/a/b[boolean(@c) or boolean(@d)]');
-extractValue(@xml, '/a/b[boolean(@c) or boolean(@d)]')
-b1 b2
-select extractValue(@xml, '/a/b[boolean(@c) or boolean(@e)]');
-extractValue(@xml, '/a/b[boolean(@c) or boolean(@e)]')
-b1 b2
-select extractValue(@xml, '/a/b[boolean(@d) or boolean(@e)]');
-extractValue(@xml, '/a/b[boolean(@d) or boolean(@e)]')
-b1 b2
-select extractValue(@xml, '/a/b[boolean(@c) and boolean(@d)]');
-extractValue(@xml, '/a/b[boolean(@c) and boolean(@d)]')
-b1
-select extractValue(@xml, '/a/b[boolean(@c) and boolean(@e)]');
-extractValue(@xml, '/a/b[boolean(@c) and boolean(@e)]')
-
-select extractValue(@xml, '/a/b[boolean(@d) and boolean(@e)]');
-extractValue(@xml, '/a/b[boolean(@d) and boolean(@e)]')
-b2
-select extractValue(@xml, '/a/b[@c or @d]');
-extractValue(@xml, '/a/b[@c or @d]')
-b1 b2
-select extractValue(@xml, '/a/b[@c or @e]');
-extractValue(@xml, '/a/b[@c or @e]')
-b1 b2
-select extractValue(@xml, '/a/b[@d or @e]');
-extractValue(@xml, '/a/b[@d or @e]')
-b1 b2
-select extractValue(@xml, '/a/b[@c and @d]');
-extractValue(@xml, '/a/b[@c and @d]')
-b1
-select extractValue(@xml, '/a/b[@c and @e]');
-extractValue(@xml, '/a/b[@c and @e]')
-
-select extractValue(@xml, '/a/b[@d and @e]');
-extractValue(@xml, '/a/b[@d and @e]')
-b2
-SET @xml='<a><b c="c">b1</b><b>b2</b></a>';
-SELECT extractValue(@xml,'/a/b[@*]');
-extractValue(@xml,'/a/b[@*]')
-b1
-SELECT extractValue(@xml,'/a/b[not(@*)]');
-extractValue(@xml,'/a/b[not(@*)]')
-b2
-SELECT extractValue('<a>a</a>', '/a[ceiling(3.1)=4]');
-extractValue('<a>a</a>', '/a[ceiling(3.1)=4]')
-a
-SELECT extractValue('<a>a</a>', '/a[floor(3.1)=3]');
-extractValue('<a>a</a>', '/a[floor(3.1)=3]')
-a
-SELECT extractValue('<a>a</a>', '/a[round(3.1)=3]');
-extractValue('<a>a</a>', '/a[round(3.1)=3]')
-a
-SELECT extractValue('<a>a</a>', '/a[round(3.8)=4]');
-extractValue('<a>a</a>', '/a[round(3.8)=4]')
-a
-SELECT extractValue('<a><b>b</b><c>c</c></a>', '/a/b | /a/c');
-extractValue('<a><b>b</b><c>c</c></a>', '/a/b | /a/c')
-b c
-select extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[position()=1]');
-extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[position()=1]')
-b1
-select extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[position()=2]');
-extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[position()=2]')
-b2
-select extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[position()=3]');
-extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[position()=3]')
-b3
-select extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[1=position()]');
-extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[1=position()]')
-b1
-select extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[2=position()]');
-extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[2=position()]')
-b2
-select extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[3=position()]');
-extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[3=position()]')
-b3
-select extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[2>=position()]');
-extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[2>=position()]')
-b1 b2
-select extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[2<=position()]');
-extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[2<=position()]')
-b2 b3
-select extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[position()=3 or position()=2]');
-extractValue('<a b="b1" b="b2" b="b3"/>','/a/@b[position()=3 or position()=2]')
-b2 b3
-SELECT extractValue('<a>a<b>a1<c>c1</c></b><b>a2</b></a>','/a/b[count(c)=0]');
-extractValue('<a>a<b>a1<c>c1</c></b><b>a2</b></a>','/a/b[count(c)=0]')
-a2
-SELECT extractValue('<a>a<b>a1<c>c1</c></b><b>a2</b></a>','/a/b[count(c)=1]');
-extractValue('<a>a<b>a1<c>c1</c></b><b>a2</b></a>','/a/b[count(c)=1]')
-a1
-select extractValue('<a>a1<b ba="1" ba="2">b1</b><b>b2</b>4</a>','/a/b[sum(@ba)=3]');
-extractValue('<a>a1<b ba="1" ba="2">b1</b><b>b2</b>4</a>','/a/b[sum(@ba)=3]')
-b1
-select extractValue('<a><b>b1</b><b>b2</b></a>','/a/b[1]');
-extractValue('<a><b>b1</b><b>b2</b></a>','/a/b[1]')
-b1
-select extractValue('<a><b>b1</b><b>b2</b></a>','/a/b[boolean(1)]');
-extractValue('<a><b>b1</b><b>b2</b></a>','/a/b[boolean(1)]')
-b1 b2
-select extractValue('<a><b>b1</b><b>b2</b></a>','/a/b[true()]');
-extractValue('<a><b>b1</b><b>b2</b></a>','/a/b[true()]')
-b1 b2
-select extractValue('<a><b>b1</b><b>b2</b></a>','/a/b[number(true())]');
-extractValue('<a><b>b1</b><b>b2</b></a>','/a/b[number(true())]')
-b1
-select extractValue('<a>ab</a>','/a[contains("abc","b")]');
-extractValue('<a>ab</a>','/a[contains("abc","b")]')
-ab
-select extractValue('<a>ab</a>','/a[contains(.,"a")]');
-extractValue('<a>ab</a>','/a[contains(.,"a")]')
-ab
-select extractValue('<a>ab</a>','/a[contains(.,"b")]');
-extractValue('<a>ab</a>','/a[contains(.,"b")]')
-ab
-select extractValue('<a>ab</a>','/a[contains(.,"c")]');
-extractValue('<a>ab</a>','/a[contains(.,"c")]')
-
-select extractValue('<a b="1">ab</a>','/a[concat(@b,"2")="12"]');
-extractValue('<a b="1">ab</a>','/a[concat(@b,"2")="12"]')
-ab
-SET @xml='<a b="11" b="12" b="21" b="22">ab</a>';
-select extractValue(@xml, '/a/@b[substring(.,2)="1"]');
-extractValue(@xml, '/a/@b[substring(.,2)="1"]')
-11 21
-select extractValue(@xml, '/a/@b[substring(.,2)="2"]');
-extractValue(@xml, '/a/@b[substring(.,2)="2"]')
-12 22
-select extractValue(@xml, '/a/@b[substring(.,1,1)="1"]');
-extractValue(@xml, '/a/@b[substring(.,1,1)="1"]')
-11 12
-select extractValue(@xml, '/a/@b[substring(.,1,1)="2"]');
-extractValue(@xml, '/a/@b[substring(.,1,1)="2"]')
-21 22
-select extractValue(@xml, '/a/@b[substring(.,2,1)="1"]');
-extractValue(@xml, '/a/@b[substring(.,2,1)="1"]')
-11 21
-select extractValue(@xml, '/a/@b[substring(.,2,1)="2"]');
-extractValue(@xml, '/a/@b[substring(.,2,1)="2"]')
-12 22
-SET @xml='<a><b>b1</b><b>b2</b></a>';
-SELECT extractValue(@xml, '/a/b[string-length("x")=1]');
-extractValue(@xml, '/a/b[string-length("x")=1]')
-b1 b2
-SELECT extractValue(@xml, '/a/b[string-length("xx")=2]');
-extractValue(@xml, '/a/b[string-length("xx")=2]')
-b1 b2
-SELECT extractValue(@xml, '/a/b[string-length("xxx")=2]');
-extractValue(@xml, '/a/b[string-length("xxx")=2]')
-
-SELECT extractValue(@xml, '/a/b[string-length("x")]');
-extractValue(@xml, '/a/b[string-length("x")]')
-b1
-SELECT extractValue(@xml, '/a/b[string-length("xx")]');
-extractValue(@xml, '/a/b[string-length("xx")]')
-b2
-SELECT extractValue(@xml, '/a/b[string-length()]');
-extractValue(@xml, '/a/b[string-length()]')
-b2
-SELECT extractValue(@xml, 'string-length()');
-ERROR HY000: XPATH syntax error: ''
-SELECT extractValue(@xml, 'string-length("x")');
-extractValue(@xml, 'string-length("x")')
-1
-SET @xml='<a b="b11" b="b12" b="b21" b="22"/>';
-select extractValue(@xml,'/a/@b');
-extractValue(@xml,'/a/@b')
-b11 b12 b21 22
-select extractValue(@xml,'/a/@b[contains(.,"1")]');
-extractValue(@xml,'/a/@b[contains(.,"1")]')
-b11 b12 b21
-select extractValue(@xml,'/a/@b[contains(.,"1")][contains(.,"2")]');
-extractValue(@xml,'/a/@b[contains(.,"1")][contains(.,"2")]')
-b12 b21
-select extractValue(@xml,'/a/@b[contains(.,"1")][contains(.,"2")][2]');
-extractValue(@xml,'/a/@b[contains(.,"1")][contains(.,"2")][2]')
-b21
-SET @xml='<a>a1<b>b1<c>c1</c>b2</b>a2</a>';
-select UpdateXML('<a>a1<b>b1<c>c1</c>b2</b>a2</a>','/a/b/c','+++++++++');
-UpdateXML('<a>a1<b>b1<c>c1</c>b2</b>a2</a>','/a/b/c','+++++++++')
-<a>a1<b>b1+++++++++b2</b>a2</a>
-select UpdateXML('<a>a1<b>b1<c>c1</c>b2</b>a2</a>','/a/b/c','<c1>+++++++++</c1>');
-UpdateXML('<a>a1<b>b1<c>c1</c>b2</b>a2</a>','/a/b/c','<c1>+++++++++</c1>')
-<a>a1<b>b1<c1>+++++++++</c1>b2</b>a2</a>
-select UpdateXML('<a>a1<b>b1<c>c1</c>b2</b>a2</a>','/a/b/c','<c1/>');
-UpdateXML('<a>a1<b>b1<c>c1</c>b2</b>a2</a>','/a/b/c','<c1/>')
-<a>a1<b>b1<c1/>b2</b>a2</a>
-SET @xml='<a><b>bb</b></a>';
-select UpdateXML(@xml, '/a/b', '<b>ccc</b>');
-UpdateXML(@xml, '/a/b', '<b>ccc</b>')
-<a><b>ccc</b></a>
-SET @xml='<a aa1="aa1" aa2="aa2"><b bb1="bb1" bb2="bb2">bb</b></a>';
-select UpdateXML(@xml, '/a/b', '<b>ccc</b>');
-UpdateXML(@xml, '/a/b', '<b>ccc</b>')
-<a aa1="aa1" aa2="aa2"><b>ccc</b></a>
-select UpdateXML(@xml, '/a/@aa1', '');
-UpdateXML(@xml, '/a/@aa1', '')
-<a aa2="aa2"><b bb1="bb1" bb2="bb2">bb</b></a>
-select UpdateXML(@xml, '/a/@aa1', 'aa3="aa3"');
-UpdateXML(@xml, '/a/@aa1', 'aa3="aa3"')
-<a aa3="aa3" aa2="aa2"><b bb1="bb1" bb2="bb2">bb</b></a>
-select UpdateXML(@xml, '/a/@aa2', '');
-UpdateXML(@xml, '/a/@aa2', '')
-<a aa1="aa1" ><b bb1="bb1" bb2="bb2">bb</b></a>
-select UpdateXML(@xml, '/a/@aa2', 'aa3="aa3"');
-UpdateXML(@xml, '/a/@aa2', 'aa3="aa3"')
-<a aa1="aa1" aa3="aa3"><b bb1="bb1" bb2="bb2">bb</b></a>
-select UpdateXML(@xml, '/a/b/@bb1', '');
-UpdateXML(@xml, '/a/b/@bb1', '')
-<a aa1="aa1" aa2="aa2"><b bb2="bb2">bb</b></a>
-select UpdateXML(@xml, '/a/b/@bb1', 'bb3="bb3"');
-UpdateXML(@xml, '/a/b/@bb1', 'bb3="bb3"')
-<a aa1="aa1" aa2="aa2"><b bb3="bb3" bb2="bb2">bb</b></a>
-select UpdateXML(@xml, '/a/b/@bb2', '');
-UpdateXML(@xml, '/a/b/@bb2', '')
-<a aa1="aa1" aa2="aa2"><b bb1="bb1" >bb</b></a>
-select UpdateXML(@xml, '/a/b/@bb2', 'bb3="bb3"');
-UpdateXML(@xml, '/a/b/@bb2', 'bb3="bb3"')
-<a aa1="aa1" aa2="aa2"><b bb1="bb1" bb3="bb3">bb</b></a>
-select updatexml('<div><div><span>1</span><span>2</span></div></div>',
-'/','<tr><td>1</td><td>2</td></tr>') as upd1;
-upd1
-<tr><td>1</td><td>2</td></tr>
-select updatexml('', '/', '') as upd2;
-upd2
-
-SET @xml= '<order><clerk>lesser wombat</clerk></order>';
-select extractvalue(@xml,'order/clerk');
-extractvalue(@xml,'order/clerk')
-lesser wombat
-select extractvalue(@xml,'/order/clerk');
-extractvalue(@xml,'/order/clerk')
-lesser wombat
-select extractvalue('<a><b>B</b></a>','/a|/b');
-extractvalue('<a><b>B</b></a>','/a|/b')
-
-select extractvalue('<a><b>B</b></a>','/a|b');
-extractvalue('<a><b>B</b></a>','/a|b')
-
-select extractvalue('<a>a<b>B</b></a>','/a|/b');
-extractvalue('<a>a<b>B</b></a>','/a|/b')
-a
-select extractvalue('<a>a<b>B</b></a>','/a|b');
-extractvalue('<a>a<b>B</b></a>','/a|b')
-a
-select extractvalue('<a>a<b>B</b></a>','a|/b');
-extractvalue('<a>a<b>B</b></a>','a|/b')
-a
-select extractvalue('<a>A</a>','/<a>');
-ERROR HY000: XPATH error: comparison of two nodesets is not supported: '<a>'
-select extractvalue('<a><b>b</b><b!>b!</b!></a>','//b!');
-ERROR HY000: XPATH syntax error: '!'
-select extractvalue('<a>A<b>B<c>C</c></b></a>','/a/descendant::*');
-extractvalue('<a>A<b>B<c>C</c></b></a>','/a/descendant::*')
-B C
-select extractvalue('<a>A<b>B<c>C</c></b></a>','/a/self::*');
-extractvalue('<a>A<b>B<c>C</c></b></a>','/a/self::*')
-A
-select extractvalue('<a>A<b>B<c>C</c></b></a>','/a/descendant-or-self::*');
-extractvalue('<a>A<b>B<c>C</c></b></a>','/a/descendant-or-self::*')
-A B C
-select extractvalue('<A_B>A</A_B>','/A_B');
-extractvalue('<A_B>A</A_B>','/A_B')
-A
-select extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[position()]');
-extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[position()]')
-B1 B2
-select extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[count(.)=last()]');
-extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[count(.)=last()]')
-B1 B2
-select extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[last()]');
-extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[last()]')
-B2
-select extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[last()-1]');
-extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[last()-1]')
-B1
-select extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[last()=1]');
-extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[last()=1]')
-
-select extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[last()=2]');
-extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[last()=2]')
-B1 B2
-select extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[last()=position()]');
-extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[last()=position()]')
-B2
-select extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[count(.)]');
-extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[count(.)]')
-B2
-select extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[count(.)-1]');
-extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[count(.)-1]')
-B1
-select extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[count(.)=1]');
-extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[count(.)=1]')
-
-select extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[count(.)=2]');
-extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[count(.)=2]')
-B1 B2
-select extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[count(.)=position()]');
-extractvalue('<a>A<b>B1</b><b>B2</b></a>','/a/b[count(.)=position()]')
-B2
-select extractvalue('<a>Jack</a>','/a[contains(../a,"J")]');
-extractvalue('<a>Jack</a>','/a[contains(../a,"J")]')
-Jack
-select extractvalue('<a>Jack</a>','/a[contains(../a,"j")]');
-extractvalue('<a>Jack</a>','/a[contains(../a,"j")]')
-Jack
-select extractvalue('<a>Jack</a>','/a[contains(../a,"j")]' collate latin1_bin);
-extractvalue('<a>Jack</a>','/a[contains(../a,"j")]' collate latin1_bin)
-
-select extractvalue('<a>Jack</a>' collate latin1_bin,'/a[contains(../a,"j")]');
-extractvalue('<a>Jack</a>' collate latin1_bin,'/a[contains(../a,"j")]')
-
-select ExtractValue('<tag1><![CDATA[test]]></tag1>','/tag1');
-ExtractValue('<tag1><![CDATA[test]]></tag1>','/tag1')
-test
-select extractValue('<a>a','/a');
-extractValue('<a>a','/a')
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 5: unexpected END-OF-INPUT'
-select extractValue('<a>a<','/a');
-extractValue('<a>a<','/a')
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 6: END-OF-INPUT unexpected (ident or '/' wanted)'
-select extractValue('<a>a</','/a');
-extractValue('<a>a</','/a')
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 7: END-OF-INPUT unexpected (ident wanted)'
-select extractValue('<a>a</a','/a');
-extractValue('<a>a</a','/a')
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 8: END-OF-INPUT unexpected ('>' wanted)'
-select extractValue('<a>a</a></b>','/a');
-extractValue('<a>a</a></b>','/a')
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 12: '</b>' unexpected (END-OF-INPUT wanted)'
-select extractValue('<a b=>a</a>','/a');
-extractValue('<a b=>a</a>','/a')
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 7: '>' unexpected (ident or string wanted)'
-select extractValue('<e>1</e>','position()');
-ERROR HY000: XPATH syntax error: ''
-select extractValue('<e>1</e>','last()');
-ERROR HY000: XPATH syntax error: ''
-select extractValue('<e><a>1</a></e>','/e/');
-ERROR HY000: XPATH syntax error: ''
-set names utf8;
-select extractValue('<Ñ><r>r</r></Ñ>','/Ñ/r');
-extractValue('<Ñ><r>r</r></Ñ>','/Ñ/r')
-r
-select extractValue('<r><Ñ>Ñ</Ñ></r>','/r/Ñ');
-extractValue('<r><Ñ>Ñ</Ñ></r>','/r/Ñ')
-Ñ
-select extractValue('<Ñ r="r"/>','/Ñ/@r');
-extractValue('<Ñ r="r"/>','/Ñ/@r')
-r
-select extractValue('<r Ñ="Ñ"/>','/r/@Ñ');
-extractValue('<r Ñ="Ñ"/>','/r/@Ñ')
-Ñ
-DROP PROCEDURE IF EXISTS p2;
-CREATE PROCEDURE p2 ()
-BEGIN
-DECLARE p LONGTEXT CHARACTER SET UTF8 DEFAULT '<Ñ><r>A</r></Ñ>';
-SELECT EXTRACTVALUE(p,'/Ñ/r');
-END//
-CALL p2();
-EXTRACTVALUE(p,'/Ñ/r')
-A
-DROP PROCEDURE p2;
-select extractValue('<ns:element xmlns:ns="myns"/>','count(ns:element)');
-extractValue('<ns:element xmlns:ns="myns"/>','count(ns:element)')
-1
-select extractValue('<ns:element xmlns:ns="myns">a</ns:element>','/ns:element');
-extractValue('<ns:element xmlns:ns="myns">a</ns:element>','/ns:element')
-a
-select extractValue('<ns:element xmlns:ns="myns">a</ns:element>','/ns:element/@xmlns:ns');
-extractValue('<ns:element xmlns:ns="myns">a</ns:element>','/ns:element/@xmlns:ns')
-myns
-select extractValue('<foo><foo.bar>Data</foo.bar><something>Otherdata</something></foo>','/foo/foo.bar');
-extractValue('<foo><foo.bar>Data</foo.bar><something>Otherdata</something></foo>','/foo/foo.bar')
-Data
-select extractValue('<foo><foo.bar>Data</foo.bar><something>Otherdata</something></foo>','/foo/something');
-extractValue('<foo><foo.bar>Data</foo.bar><something>Otherdata</something></foo>','/foo/something')
-Otherdata
-select extractValue('<zot><tim0><01>10:39:15</01><02>140</02></tim0></zot>','/zot/tim0/02');
-ERROR HY000: XPATH syntax error: '02'
-select extractValue('<zot><tim0><01>10:39:15</01><02>140</02></tim0></zot>','//*');
-extractValue('<zot><tim0><01>10:39:15</01><02>140</02></tim0></zot>','//*')
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 13: unknown token unexpected (ident or '/' wanted)'
-select extractValue('<.>test</.>','//*');
-extractValue('<.>test</.>','//*')
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 2: unknown token unexpected (ident or '/' wanted)'
-select extractValue('<->test</->','//*');
-extractValue('<->test</->','//*')
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 2: unknown token unexpected (ident or '/' wanted)'
-select extractValue('<:>test</:>','//*');
-extractValue('<:>test</:>','//*')
-test
-select extractValue('<_>test</_>','//*');
-extractValue('<_>test</_>','//*')
-test
-select extractValue('<x.-_:>test</x.-_:>','//*');
-extractValue('<x.-_:>test</x.-_:>','//*')
-test
-set @xml= "<entry><id>pt10</id><pt>10</pt></entry><entry><id>pt50</id><pt>50</pt></entry>";
-select ExtractValue(@xml, "/entry[(pt=10)]/id");
-ExtractValue(@xml, "/entry[(pt=10)]/id")
-pt10
-select ExtractValue(@xml, "/entry[(pt!=10)]/id");
-ExtractValue(@xml, "/entry[(pt!=10)]/id")
-pt50
-select ExtractValue(@xml, "/entry[(pt<10)]/id");
-ExtractValue(@xml, "/entry[(pt<10)]/id")
-
-select ExtractValue(@xml, "/entry[(pt<=10)]/id");
-ExtractValue(@xml, "/entry[(pt<=10)]/id")
-pt10
-select ExtractValue(@xml, "/entry[(pt>10)]/id");
-ExtractValue(@xml, "/entry[(pt>10)]/id")
-pt50
-select ExtractValue(@xml, "/entry[(pt>=10)]/id");
-ExtractValue(@xml, "/entry[(pt>=10)]/id")
-pt10 pt50
-select ExtractValue(@xml, "/entry[(pt=50)]/id");
-ExtractValue(@xml, "/entry[(pt=50)]/id")
-pt50
-select ExtractValue(@xml, "/entry[(pt!=50)]/id");
-ExtractValue(@xml, "/entry[(pt!=50)]/id")
-pt10
-select ExtractValue(@xml, "/entry[(pt<50)]/id");
-ExtractValue(@xml, "/entry[(pt<50)]/id")
-pt10
-select ExtractValue(@xml, "/entry[(pt<=50)]/id");
-ExtractValue(@xml, "/entry[(pt<=50)]/id")
-pt10 pt50
-select ExtractValue(@xml, "/entry[(pt>50)]/id");
-ExtractValue(@xml, "/entry[(pt>50)]/id")
-
-select ExtractValue(@xml, "/entry[(pt>=50)]/id");
-ExtractValue(@xml, "/entry[(pt>=50)]/id")
-pt50
-select ExtractValue(@xml, "/entry[(10=pt)]/id");
-ExtractValue(@xml, "/entry[(10=pt)]/id")
-pt10
-select ExtractValue(@xml, "/entry[(10!=pt)]/id");
-ExtractValue(@xml, "/entry[(10!=pt)]/id")
-pt50
-select ExtractValue(@xml, "/entry[(10>pt)]/id");
-ExtractValue(@xml, "/entry[(10>pt)]/id")
-
-select ExtractValue(@xml, "/entry[(10>=pt)]/id");
-ExtractValue(@xml, "/entry[(10>=pt)]/id")
-pt10
-select ExtractValue(@xml, "/entry[(10<pt)]/id");
-ExtractValue(@xml, "/entry[(10<pt)]/id")
-pt50
-select ExtractValue(@xml, "/entry[(10<=pt)]/id");
-ExtractValue(@xml, "/entry[(10<=pt)]/id")
-pt10 pt50
-select ExtractValue(@xml, "/entry[(50=pt)]/id");
-ExtractValue(@xml, "/entry[(50=pt)]/id")
-pt50
-select ExtractValue(@xml, "/entry[(50!=pt)]/id");
-ExtractValue(@xml, "/entry[(50!=pt)]/id")
-pt10
-select ExtractValue(@xml, "/entry[(50>pt)]/id");
-ExtractValue(@xml, "/entry[(50>pt)]/id")
-pt10
-select ExtractValue(@xml, "/entry[(50>=pt)]/id");
-ExtractValue(@xml, "/entry[(50>=pt)]/id")
-pt10 pt50
-select ExtractValue(@xml, "/entry[(50<pt)]/id");
-ExtractValue(@xml, "/entry[(50<pt)]/id")
-
-select ExtractValue(@xml, "/entry[(50<=pt)]/id");
-ExtractValue(@xml, "/entry[(50<=pt)]/id")
-pt50
-select ExtractValue('<a><b><Text>test</Text></b></a>','/a/b/Text');
-ExtractValue('<a><b><Text>test</Text></b></a>','/a/b/Text')
-test
-select ExtractValue('<a><b><comment>test</comment></b></a>','/a/b/comment');
-ExtractValue('<a><b><comment>test</comment></b></a>','/a/b/comment')
-test
-select ExtractValue('<a><b><node>test</node></b></a>','/a/b/node');
-ExtractValue('<a><b><node>test</node></b></a>','/a/b/node')
-test
-select ExtractValue('<a><b><processing-instruction>test</processing-instruction></b></a>','/a/b/processing-instruction');
-ExtractValue('<a><b><processing-instruction>test</processing-instruction></b></a>','/a/b/processing-instruction')
-test
-select ExtractValue('<a><and>test</and></a>', '/a/and');
-ExtractValue('<a><and>test</and></a>', '/a/and')
-test
-select ExtractValue('<a><or>test</or></a>', '/a/or');
-ExtractValue('<a><or>test</or></a>', '/a/or')
-test
-select ExtractValue('<a><mod>test</mod></a>', '/a/mod');
-ExtractValue('<a><mod>test</mod></a>', '/a/mod')
-test
-select ExtractValue('<a><div>test</div></a>', '/a/div');
-ExtractValue('<a><div>test</div></a>', '/a/div')
-test
-select ExtractValue('<a><and:and>test</and:and></a>', '/a/and:and');
-ExtractValue('<a><and:and>test</and:and></a>', '/a/and:and')
-test
-select ExtractValue('<a><or:or>test</or:or></a>', '/a/or:or');
-ExtractValue('<a><or:or>test</or:or></a>', '/a/or:or')
-test
-select ExtractValue('<a><mod:mod>test</mod:mod></a>', '/a/mod:mod');
-ExtractValue('<a><mod:mod>test</mod:mod></a>', '/a/mod:mod')
-test
-select ExtractValue('<a><div:div>test</div:div></a>', '/a/div:div');
-ExtractValue('<a><div:div>test</div:div></a>', '/a/div:div')
-test
-select ExtractValue('<a><ancestor>test</ancestor></a>', '/a/ancestor');
-ExtractValue('<a><ancestor>test</ancestor></a>', '/a/ancestor')
-test
-select ExtractValue('<a><ancestor-or-self>test</ancestor-or-self></a>', '/a/ancestor-or-self');
-ExtractValue('<a><ancestor-or-self>test</ancestor-or-self></a>', '/a/ancestor-or-self')
-test
-select ExtractValue('<a><attribute>test</attribute></a>', '/a/attribute');
-ExtractValue('<a><attribute>test</attribute></a>', '/a/attribute')
-test
-select ExtractValue('<a><child>test</child></a>', '/a/child');
-ExtractValue('<a><child>test</child></a>', '/a/child')
-test
-select ExtractValue('<a><descendant>test</descendant></a>', '/a/descendant');
-ExtractValue('<a><descendant>test</descendant></a>', '/a/descendant')
-test
-select ExtractValue('<a><descendant-or-self>test</descendant-or-self></a>', '/a/descendant-or-self');
-ExtractValue('<a><descendant-or-self>test</descendant-or-self></a>', '/a/descendant-or-self')
-test
-select ExtractValue('<a><following>test</following></a>', '/a/following');
-ExtractValue('<a><following>test</following></a>', '/a/following')
-test
-select ExtractValue('<a><following-sibling>test</following-sibling></a>', '/a/following-sibling');
-ExtractValue('<a><following-sibling>test</following-sibling></a>', '/a/following-sibling')
-test
-select ExtractValue('<a><namespace>test</namespace></a>', '/a/namespace');
-ExtractValue('<a><namespace>test</namespace></a>', '/a/namespace')
-test
-select ExtractValue('<a><parent>test</parent></a>', '/a/parent');
-ExtractValue('<a><parent>test</parent></a>', '/a/parent')
-test
-select ExtractValue('<a><preceding>test</preceding></a>', '/a/preceding');
-ExtractValue('<a><preceding>test</preceding></a>', '/a/preceding')
-test
-select ExtractValue('<a><preceding-sibling>test</preceding-sibling></a>', '/a/preceding-sibling');
-ExtractValue('<a><preceding-sibling>test</preceding-sibling></a>', '/a/preceding-sibling')
-test
-select ExtractValue('<a><self>test</self></a>', '/a/self');
-ExtractValue('<a><self>test</self></a>', '/a/self')
-test
-set @i=1;
-select ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[$@i]');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[$@i]')
-b1
-set @i=2;
-select ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[$@i]');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[$@i]')
-b2
-set @i=NULL;
-select ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[$@i]');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[$@i]')
-
-CREATE PROCEDURE spxml(xml VARCHAR(128))
-BEGIN
-DECLARE c INT;
-DECLARE i INT DEFAULT 1;
-SET c= ExtractValue(xml,'count(/a/b)');
-SET @i= c;
-WHILE i <= c DO
-BEGIN
-SELECT i, @i, ExtractValue(xml,'/a/b[$i]'), ExtractValue(xml,'/a/b[$@i]');
-SET i= i + 1;
-SET @i= @i - 1;
-END;
-END WHILE;
-END|
-call spxml('<a><b>b1</b><b>b2</b><b>b3</b></a>');
-i @i ExtractValue(xml,'/a/b[$i]') ExtractValue(xml,'/a/b[$@i]')
-1 3 b1 b3
-i @i ExtractValue(xml,'/a/b[$i]') ExtractValue(xml,'/a/b[$@i]')
-2 2 b2 b2
-i @i ExtractValue(xml,'/a/b[$i]') ExtractValue(xml,'/a/b[$@i]')
-3 1 b3 b1
-drop procedure spxml;
-Multiple matches, but no index specification
-SELECT ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b')
-b1 b2
-No matches
-SELECT ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/c');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/c')
-
-Index out of range
-SELECT ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[-1]');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[-1]')
-
-SELECT ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[10]');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[10]')
-
-With string-to-number conversion
-SELECT ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b["1"]');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b["1"]')
-b1
-SELECT ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b["1 and string"]');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b["1 and string"]')
-b1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1 and string'
-Warning 1292 Truncated incorrect INTEGER value: '1 and string'
-SELECT ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b["string and 1"]');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b["string and 1"]')
-
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'string and 1'
-Warning 1292 Truncated incorrect INTEGER value: 'string and 1'
-SELECT ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b["string"]');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b["string"]')
-
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'string'
-Warning 1292 Truncated incorrect INTEGER value: 'string'
-String-to-number conversion from a user variable
-SET @i='1';
-SELECT ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[$@i]');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[$@i]')
-b1
-SET @i='1 and string';
-SELECT ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[$@i]');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[$@i]')
-b1
-SET @i='string and 1';
-SELECT ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[$@i]');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[$@i]')
-
-SET @i='string';
-SELECT ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[$@i]');
-ExtractValue('<a><b>b1</b><b>b2</b></a>','/a/b[$@i]')
-
-String-to-number conversion with a CHAR SP variable
-CREATE PROCEDURE spxml(xml VARCHAR(128), i CHAR(16))
-BEGIN
-SELECT ExtractValue(xml,'/a/b[$i]');
-END|
-CALL spxml('<a><b>b1</b><b>b2</b></a>', '1');
-ExtractValue(xml,'/a/b[$i]')
-b1
-CALL spxml('<a><b>b1</b><b>b2</b></a>', '1 and string');
-ExtractValue(xml,'/a/b[$i]')
-b1
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: '1 and string '
-Warning 1292 Truncated incorrect INTEGER value: '1 and string '
-CALL spxml('<a><b>b1</b><b>b2</b></a>', 'string and 1');
-ExtractValue(xml,'/a/b[$i]')
-
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'string and 1 '
-Warning 1292 Truncated incorrect INTEGER value: 'string and 1 '
-CALL spxml('<a><b>b1</b><b>b2</b></a>', 'string');
-ExtractValue(xml,'/a/b[$i]')
-
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: 'string '
-Warning 1292 Truncated incorrect INTEGER value: 'string '
-DROP PROCEDURE spxml;
-select UpdateXML('<a>a</a>',repeat('a b ',1000),'');
-ERROR HY000: XPATH syntax error: 'b a b a b a b a b a b a b a b a '
-select ExtractValue('<a>a</a>', '/a[@x=@y0123456789_0123456789_0123456789_0123456789]');
-ERROR HY000: XPATH error: comparison of two nodesets is not supported: '=@y0123456789_0123456789_0123456'
-select ExtractValue('<a>a</a>', '/a[@x=$y0123456789_0123456789_0123456789_0123456789]');
-ERROR HY000: Unknown XPATH variable at: '$y0123456789_0123456789_01234567'
-select updatexml(NULL, 1, 1), updatexml(1, NULL, 1), updatexml(1, 1, NULL);
-updatexml(NULL, 1, 1) updatexml(1, NULL, 1) updatexml(1, 1, NULL)
-NULL NULL NULL
-select updatexml(NULL, NULL, 1), updatexml(1, NULL, NULL),
-updatexml(NULL, 1, NULL);
-updatexml(NULL, NULL, 1) updatexml(1, NULL, NULL) updatexml(NULL, 1, NULL)
-NULL NULL NULL
-select updatexml(NULL, NULL, NULL);
-updatexml(NULL, NULL, NULL)
-NULL
-CREATE TABLE t1(a INT NOT NULL);
-INSERT INTO t1 VALUES (0), (0);
-SELECT 1 FROM t1 ORDER BY(UPDATEXML(a, '1', '1'));
-1
-1
-1
-DROP TABLE t1;
-SET @xml=
-'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html>
- <head>
- <title> Title - document with document declaration</title>
- </head>
- <body> Hi, Im a webpage with document a declaration </body>
-</html>';
-SELECT ExtractValue(@xml, 'html/head/title');
-ExtractValue(@xml, 'html/head/title')
- Title - document with document declaration
-SELECT ExtractValue(@xml, 'html/body');
-ExtractValue(@xml, 'html/body')
- Hi, Im a webpage with document a declaration
-SELECT ExtractValue('<xml "xxx" "yyy">CharData</xml>', '/xml');
-ExtractValue('<xml "xxx" "yyy">CharData</xml>', '/xml')
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 11: STRING unexpected ('>' wanted)'
-SELECT ExtractValue('<xml xxx "yyy">CharData</xml>', '/xml');
-ExtractValue('<xml xxx "yyy">CharData</xml>', '/xml')
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 17: STRING unexpected ('>' wanted)'
-set @x=10;
-select extractvalue('<a></a>','$@x/a');
-ERROR HY000: XPATH syntax error: '/a'
-select extractvalue('<a></a>','round(123.4)/a');
-ERROR HY000: XPATH syntax error: '/a'
-select extractvalue('<a></a>','1/a');
-ERROR HY000: XPATH syntax error: '/a'
-select extractvalue('<a></a>','"b"/a');
-ERROR HY000: XPATH syntax error: '/a'
-select extractvalue('<a></a>','(1)/a');
-ERROR HY000: XPATH syntax error: '/a'
-CREATE TABLE IF NOT EXISTS t1 (
-id int(10) unsigned NOT NULL AUTO_INCREMENT,
-xml text,
-PRIMARY KEY (id)
-) ENGINE=MyISAM;
-INSERT INTO t1 (id, xml) VALUES
-(15, '<?xml version="1.0"?><bla name="blubb"></bla>'),
-(14, '<xml version="kaputt">');
-SELECT
-extractvalue( xml, '/bla/@name' ),
-extractvalue( xml, '/bla/@name' )
-FROM t1 ORDER BY t1.id;
-extractvalue( xml, '/bla/@name' ) extractvalue( xml, '/bla/@name' )
-NULL NULL
-blubb blubb
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 23: unexpected END-OF-INPUT'
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 23: unexpected END-OF-INPUT'
-SELECT
-UpdateXML(xml, '/bla/@name', 'test'),
-UpdateXML(xml, '/bla/@name', 'test')
-FROM t1 ORDER BY t1.id;
-UpdateXML(xml, '/bla/@name', 'test') UpdateXML(xml, '/bla/@name', 'test')
-NULL NULL
-<?xml version="1.0"?><bla test></bla> <?xml version="1.0"?><bla test></bla>
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 23: unexpected END-OF-INPUT'
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 23: unexpected END-OF-INPUT'
-DROP TABLE t1;
-#
-# Bug#57257 Replace(ExtractValue(...)) causes MySQL crash
-#
-SET NAMES utf8;
-SELECT REPLACE(EXTRACTVALUE('1', '/a'),'ds','');
-REPLACE(EXTRACTVALUE('1', '/a'),'ds','')
-
-#
-# Bug #57820 extractvalue crashes
-#
-SELECT AVG(DISTINCT EXTRACTVALUE((''),('$@k')));
-AVG(DISTINCT EXTRACTVALUE((''),('$@k')))
-NULL
-#
-# Bug#57279 updatexml dies with: Assertion failed: str_arg[length] == 0
-#
-SELECT UPDATEXML(NULL, (LPAD(0.1111E-15, '2011', 1)), 1);
-ERROR 22007: Illegal double '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111' value found during parsing
-SELECT EXTRACTVALUE('', LPAD(0.1111E-15, '2011', 1));
-ERROR 22007: Illegal double '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111' value found during parsing
-#
-# Bug #44332 my_xml_scan reads behind the end of buffer
-#
-SELECT UPDATEXML(CONVERT(_latin1'<' USING utf8),'1','1');
-UPDATEXML(CONVERT(_latin1'<' USING utf8),'1','1')
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 2: END-OF-INPUT unexpected (ident or '/' wanted)'
-SELECT UPDATEXML(CONVERT(_latin1'<!--' USING utf8),'1','1');
-UPDATEXML(CONVERT(_latin1'<!--' USING utf8),'1','1')
-NULL
-#
-# Bug#11766725 (bug#59901): EXTRACTVALUE STILL BROKEN AFTER FIX FOR BUG #44332
-#
-SELECT ExtractValue(CONVERT('<\"', BINARY(10)), 1);
-ExtractValue(CONVERT('<\"', BINARY(10)), 1)
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 11: STRING unexpected (ident or '/' wanted)'
-End of 5.1 tests
-#
-# Start of 5.3 tests
-#
-#
-# MDEV-5338 XML parser accepts malformed data
-#
-SELECT ExtractValue('<a>xxx</c>','/a/b');
-ExtractValue('<a>xxx</c>','/a/b')
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 10: '</c>' unexpected ('</a>' wanted)'
-SELECT ExtractValue('<a><b>xxx</c></a>','/a/b');
-ExtractValue('<a><b>xxx</c></a>','/a/b')
-NULL
-Warnings:
-Warning 1525 Incorrect XML value: 'parse error at line 1 pos 13: '</c>' unexpected ('</b>' wanted)'
-#
-# End of 5.3 tests
-#
-# Start of 5.5 tests
-#
-#
-# Bug#58175 xml functions read initialized bytes when conversions happen
-#
-SET NAMES latin1;
-SELECT UPDATEXML(CONVERT('' USING swe7), TRUNCATE('',1), 0);
-UPDATEXML(CONVERT('' USING swe7), TRUNCATE('',1), 0)
-NULL
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: ''
-#
-# Bug#12375190: UPDATEXML CRASHES ON SIMPLE INPUTS
-#
-SELECT UPDATEXML('','(a)/a','');
-UPDATEXML('','(a)/a','')
-
-SELECT UPDATEXML('<a><a>x</a></a>','(a)/a','<b />');
-UPDATEXML('<a><a>x</a></a>','(a)/a','<b />')
-<a><b /></a>
-SELECT UPDATEXML('<a><c><a>x</a></c></a>','(a)/a','<b />');
-UPDATEXML('<a><c><a>x</a></c></a>','(a)/a','<b />')
-<a><c><a>x</a></c></a>
-SELECT UPDATEXML('<a><c><a>x</a></c></a>','(a)//a','<b />');
-UPDATEXML('<a><c><a>x</a></c></a>','(a)//a','<b />')
-<a><c><b /></c></a>
-SELECT ExtractValue('<a><a>aa</a><b>bb</b></a>','(a)/a|(a)/b');
-ExtractValue('<a><a>aa</a><b>bb</b></a>','(a)/a|(a)/b')
-aa bb
-SELECT ExtractValue('<a><b>abc</b><c>2</c><d>1</d></a>','substring(/a/b,..)');
-ExtractValue('<a><b>abc</b><c>2</c><d>1</d></a>','substring(/a/b,..)')
-
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: ''
-#
-# Bug#62429 XML: ExtractValue, UpdateXML max arg length 127 chars
-#
-CREATE TABLE t1 (id INT AUTO_INCREMENT, txt VARCHAR(1000), PRIMARY KEY(id));
-INSERT INTO t1 (txt) VALUES
-(CONCAT('<', REPEAT('a',127), '>127</', REPEAT('a',127), '>')),
-(CONCAT('<', REPEAT('a',128), '>128</', REPEAT('a',128), '>')),
-(CONCAT('<', REPEAT('a',63), '><', REPEAT('b',63), '>63/63</', REPEAT('b',63), '></', REPEAT('a',63),'>')),
-(CONCAT('<', REPEAT('a',63), '><', REPEAT('b',64), '>63/64</', REPEAT('b',64), '></', REPEAT('a',63),'>'));
-SELECT
-txt,
-EXTRACTVALUE(txt, CONCAT('/', REPEAT('a', 127))) as a127,
-EXTRACTVALUE(txt, CONCAT('/', REPEAT('a', 128))) as a128,
-EXTRACTVALUE(txt, CONCAT('//', REPEAT('b', 63))) as a63b63,
-EXTRACTVALUE(txt, CONCAT('//', REPEAT('b', 64))) as a63b64
-FROM t1;
-txt <aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>127</aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>
-a127 127
-a128
-a63b63
-a63b64
-txt <aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>128</aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>
-a127
-a128 128
-a63b63
-a63b64
-txt <aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa><bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb>63/63</bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb></aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>
-a127
-a128
-a63b63 63/63
-a63b64
-txt <aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa><bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb>63/64</bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb></aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>
-a127
-a128
-a63b63
-a63b64 63/64
-SELECT UPDATEXML(txt, CONCAT('//', REPEAT('b', 63)), '63/63+') FROM t1;
-UPDATEXML(txt, CONCAT('//', REPEAT('b', 63)), '63/63+') <aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>127</aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>
-UPDATEXML(txt, CONCAT('//', REPEAT('b', 63)), '63/63+') <aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>128</aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>
-UPDATEXML(txt, CONCAT('//', REPEAT('b', 63)), '63/63+') <aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>63/63+</aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>
-UPDATEXML(txt, CONCAT('//', REPEAT('b', 63)), '63/63+') <aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa><bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb>63/64</bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb></aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>
-DROP TABLE t1;
-CREATE TABLE t1 (a TEXT);
-INSERT INTO t1 VALUES (CONCAT('<a><', REPEAT('b',128),'>b128</',REPEAT('b',128),'><',REPEAT('c',512),'>c512</',REPEAT('c',512),'></a>'));
-SELECT ExtractValue (a, CONCAT('//',REPEAT('c',512))) AS c512 FROM t1;
-c512 c512
-DROP TABLE t1;
-#
-# End of 5.5 tests
-#
-#
-# Start of 10.0 tests
-#
-#
-# MDEV-5689 ExtractValue(xml, 'substring(/x,/y)') crashes
-#
-SELECT ExtractValue('<a><b>abc</b><c>2</c><d>1</d></a>','substring(/a/b,..)') AS e;
-e
-
-Warnings:
-Warning 1292 Truncated incorrect INTEGER value: ''
-SELECT ExtractValue('<a><b>abc</b><c>2</c><d>1</d></a>','substring(/a/b,/a/c)') AS e;
-e
-bc
-SELECT ExtractValue('<a><b>abc</b><c>2</c><d>1</d></a>','substring(/a/b,/a/d)') AS e;
-e
-abc
-SELECT ExtractValue('<a><b>abc</b><c>2</c><d>1</d></a>','substring(/a/b,/a/c,/a/d)') AS e;
-e
-b
-SELECT ExtractValue('<a><b>abc</b><c>2</c><d>1</d></a>','substring(/a/b,/a/d,/a/c)') AS e;
-e
-ab
-#
-# MDEV-5709 ExtractValue() with XPath variable references returns wrong result
-#
-CREATE TABLE t1 (c1 INT, c2 VARCHAR(10));
-INSERT INTO t1 VALUES (1,'b1'),(2,'b2');
-SELECT *,IF(@i:=c1,ExtractValue('<a><b>b1</b><b>b2</b></a>','//b[$@i]'),0) AS xpath FROM t1;
-c1 c2 xpath
-1 b1 b1
-2 b2 b2
-SELECT * FROM t1 WHERE c2=IF(@i:=c1,ExtractValue('<a><b>b1</b><b>b2</b></a>','//b[$@i]'),0);
-c1 c2
-1 b1
-2 b2
-DROP TABLE t1;
-#
-# MDEV-15118 ExtractValue(xml,something_complex) does not work
-#
-CREATE TABLE t1 (a TEXT);
-INSERT INTO t1 VALUES (CONCAT('<a>aaa</a>'));
-SELECT ExtractValue(a, '/a') AS a FROM t1;
-a
-aaa
-SELECT ExtractValue(a, FROM_BASE64(TO_BASE64('/a'))) AS a FROM t1;
-a
-aaa
-DROP TABLE t1;
-#
-# End of 10.0 tests
-#
-#
-# Start of 10.2 tests
-#
-#
-# MDEV-10134 Add full support for DEFAULT
-#
-CREATE TABLE t1 (a TEXT, b TEXT DEFAULT ExtractValue(a, '/a/b'));
-INSERT INTO t1 (a) VALUES ('<a><b>bbb</b></a>');
-SELECT b FROM t1;
-b
-bbb
-DROP TABLE t1;
-CREATE TABLE t1 (a TEXT, b TEXT DEFAULT UpdateXML(a, '/a/b','<b>xxx</b>'));
-INSERT INTO t1 (a) VALUES ('<a><b>bbb</b></a>');
-SELECT b FROM t1;
-b
-<a><b>xxx</b></a>
-DROP TABLE t1;
-#
-# End of 10.2 tests
-#
diff --git a/mysql-test/r/xtradb_mrr.result b/mysql-test/r/xtradb_mrr.result
deleted file mode 100644
index f49207c0e41..00000000000
--- a/mysql-test/r/xtradb_mrr.result
+++ /dev/null
@@ -1,851 +0,0 @@
-drop table if exists t1,t2,t3,t4;
-set @save_storage_engine= @@storage_engine;
-set storage_engine=InnoDB;
-set @innodb_mrr_tmp=@@optimizer_switch;
-set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
-create table t1(a int);
-show create table t1;
-Table Create Table
-t1 CREATE TABLE `t1` (
- `a` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2(a int);
-insert into t2 select A.a + 10*(B.a + 10*C.a) from t1 A, t1 B, t1 C;
-create table t3 (
-a char(8) not null, b char(8) not null, filler char(200),
-key(a)
-);
-insert into t3 select @a:=concat('c-', 1000+ A.a, '=w'), @a, 'filler' from t2 A;
-insert into t3 select concat('c-', 1000+A.a, '=w'), concat('c-', 2000+A.a, '=w'),
-'filler-1' from t2 A;
-insert into t3 select concat('c-', 1000+A.a, '=w'), concat('c-', 3000+A.a, '=w'),
-'filler-2' from t2 A;
-select a,filler from t3 where a >= 'c-9011=w';
-a filler
-select a,filler from t3 where a >= 'c-1011=w' and a <= 'c-1015=w';
-a filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1011=w filler-1
-c-1012=w filler-1
-c-1013=w filler-1
-c-1014=w filler-1
-c-1015=w filler-1
-c-1011=w filler-2
-c-1012=w filler-2
-c-1013=w filler-2
-c-1014=w filler-2
-c-1015=w filler-2
-select a,filler from t3 where (a>='c-1011=w' and a <= 'c-1013=w') or
-(a>='c-1014=w' and a <= 'c-1015=w');
-a filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1011=w filler-1
-c-1012=w filler-1
-c-1013=w filler-1
-c-1014=w filler-1
-c-1015=w filler-1
-c-1011=w filler-2
-c-1012=w filler-2
-c-1013=w filler-2
-c-1014=w filler-2
-c-1015=w filler-2
-insert into t3 values ('c-1013=z', 'c-1013=z', 'err');
-insert into t3 values ('a-1014=w', 'a-1014=w', 'err');
-select a,filler from t3 where (a>='c-1011=w' and a <= 'c-1013=w') or
-(a>='c-1014=w' and a <= 'c-1015=w');
-a filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1011=w filler-1
-c-1012=w filler-1
-c-1013=w filler-1
-c-1014=w filler-1
-c-1015=w filler-1
-c-1011=w filler-2
-c-1012=w filler-2
-c-1013=w filler-2
-c-1014=w filler-2
-c-1015=w filler-2
-delete from t3 where b in ('c-1013=z', 'a-1014=w');
-select a,filler from t3 where a='c-1011=w' or a='c-1012=w' or a='c-1013=w' or
-a='c-1014=w' or a='c-1015=w';
-a filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1011=w filler-1
-c-1012=w filler-1
-c-1013=w filler-1
-c-1014=w filler-1
-c-1015=w filler-1
-c-1011=w filler-2
-c-1012=w filler-2
-c-1013=w filler-2
-c-1014=w filler-2
-c-1015=w filler-2
-insert into t3 values ('c-1013=w', 'del-me', 'inserted');
-select a,filler from t3 where a='c-1011=w' or a='c-1012=w' or a='c-1013=w' or
-a='c-1014=w' or a='c-1015=w';
-a filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1011=w filler-1
-c-1012=w filler-1
-c-1013=w filler-1
-c-1014=w filler-1
-c-1015=w filler-1
-c-1011=w filler-2
-c-1012=w filler-2
-c-1013=w filler-2
-c-1014=w filler-2
-c-1015=w filler-2
-c-1013=w inserted
-delete from t3 where b='del-me';
-alter table t3 add primary key(b);
-select b,filler from t3 where (b>='c-1011=w' and b<= 'c-1018=w') or
-b IN ('c-1019=w', 'c-1020=w', 'c-1021=w',
-'c-1022=w', 'c-1023=w', 'c-1024=w');
-b filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1016=w filler
-c-1017=w filler
-c-1018=w filler
-c-1019=w filler
-c-1020=w filler
-c-1021=w filler
-c-1022=w filler
-c-1023=w filler
-c-1024=w filler
-select b,filler from t3 where (b>='c-1011=w' and b<= 'c-1020=w') or
-b IN ('c-1021=w', 'c-1022=w', 'c-1023=w');
-b filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1016=w filler
-c-1017=w filler
-c-1018=w filler
-c-1019=w filler
-c-1020=w filler
-c-1021=w filler
-c-1022=w filler
-c-1023=w filler
-select b,filler from t3 where (b>='c-1011=w' and b<= 'c-1018=w') or
-b IN ('c-1019=w', 'c-1020=w') or
-(b>='c-1021=w' and b<= 'c-1023=w');
-b filler
-c-1011=w filler
-c-1012=w filler
-c-1013=w filler
-c-1014=w filler
-c-1015=w filler
-c-1016=w filler
-c-1017=w filler
-c-1018=w filler
-c-1019=w filler
-c-1020=w filler
-c-1021=w filler
-c-1022=w filler
-c-1023=w filler
-drop table if exists t4;
-create table t4 (a varchar(10), b int, c char(10), filler char(200),
-key idx1 (a, b, c));
-insert into t4 (filler) select concat('NULL-', 15-a) from t2 order by a limit 15;
-insert into t4 (a,b,c,filler)
-select 'b-1',NULL,'c-1', concat('NULL-', 15-a) from t2 order by a limit 15;
-insert into t4 (a,b,c,filler)
-select 'b-1',NULL,'c-222', concat('NULL-', 15-a) from t2 order by a limit 15;
-insert into t4 (a,b,c,filler)
-select 'bb-1',NULL,'cc-2', concat('NULL-', 15-a) from t2 order by a limit 15;
-insert into t4 (a,b,c,filler)
-select 'zz-1',NULL,'cc-2', 'filler-data' from t2 order by a limit 500;
-explain
-select * from t4 where a IS NULL and b IS NULL and (c IS NULL or c='no-such-row1'
- or c='no-such-row2');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 range idx1 idx1 29 NULL 16 Using index condition; Using where; Rowid-ordered scan
-select * from t4 where a IS NULL and b IS NULL and (c IS NULL or c='no-such-row1'
- or c='no-such-row2');
-a b c filler
-NULL NULL NULL NULL-15
-NULL NULL NULL NULL-14
-NULL NULL NULL NULL-13
-NULL NULL NULL NULL-12
-NULL NULL NULL NULL-11
-NULL NULL NULL NULL-10
-NULL NULL NULL NULL-9
-NULL NULL NULL NULL-8
-NULL NULL NULL NULL-7
-NULL NULL NULL NULL-6
-NULL NULL NULL NULL-5
-NULL NULL NULL NULL-4
-NULL NULL NULL NULL-3
-NULL NULL NULL NULL-2
-NULL NULL NULL NULL-1
-explain
-select * from t4 where (a ='b-1' or a='bb-1') and b IS NULL and (c='c-1' or c='cc-2');
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t4 range idx1 idx1 29 NULL 32 Using index condition; Using where; Rowid-ordered scan
-select * from t4 where (a ='b-1' or a='bb-1') and b IS NULL and (c='c-1' or c='cc-2');
-a b c filler
-b-1 NULL c-1 NULL-15
-b-1 NULL c-1 NULL-14
-b-1 NULL c-1 NULL-13
-b-1 NULL c-1 NULL-12
-b-1 NULL c-1 NULL-11
-b-1 NULL c-1 NULL-10
-b-1 NULL c-1 NULL-9
-b-1 NULL c-1 NULL-8
-b-1 NULL c-1 NULL-7
-b-1 NULL c-1 NULL-6
-b-1 NULL c-1 NULL-5
-b-1 NULL c-1 NULL-4
-b-1 NULL c-1 NULL-3
-b-1 NULL c-1 NULL-2
-b-1 NULL c-1 NULL-1
-bb-1 NULL cc-2 NULL-15
-bb-1 NULL cc-2 NULL-14
-bb-1 NULL cc-2 NULL-13
-bb-1 NULL cc-2 NULL-12
-bb-1 NULL cc-2 NULL-11
-bb-1 NULL cc-2 NULL-10
-bb-1 NULL cc-2 NULL-9
-bb-1 NULL cc-2 NULL-8
-bb-1 NULL cc-2 NULL-7
-bb-1 NULL cc-2 NULL-6
-bb-1 NULL cc-2 NULL-5
-bb-1 NULL cc-2 NULL-4
-bb-1 NULL cc-2 NULL-3
-bb-1 NULL cc-2 NULL-2
-bb-1 NULL cc-2 NULL-1
-select * from t4 ignore index(idx1) where (a ='b-1' or a='bb-1') and b IS NULL and (c='c-1' or c='cc-2');
-a b c filler
-b-1 NULL c-1 NULL-15
-b-1 NULL c-1 NULL-14
-b-1 NULL c-1 NULL-13
-b-1 NULL c-1 NULL-12
-b-1 NULL c-1 NULL-11
-b-1 NULL c-1 NULL-10
-b-1 NULL c-1 NULL-9
-b-1 NULL c-1 NULL-8
-b-1 NULL c-1 NULL-7
-b-1 NULL c-1 NULL-6
-b-1 NULL c-1 NULL-5
-b-1 NULL c-1 NULL-4
-b-1 NULL c-1 NULL-3
-b-1 NULL c-1 NULL-2
-b-1 NULL c-1 NULL-1
-bb-1 NULL cc-2 NULL-15
-bb-1 NULL cc-2 NULL-14
-bb-1 NULL cc-2 NULL-13
-bb-1 NULL cc-2 NULL-12
-bb-1 NULL cc-2 NULL-11
-bb-1 NULL cc-2 NULL-10
-bb-1 NULL cc-2 NULL-9
-bb-1 NULL cc-2 NULL-8
-bb-1 NULL cc-2 NULL-7
-bb-1 NULL cc-2 NULL-6
-bb-1 NULL cc-2 NULL-5
-bb-1 NULL cc-2 NULL-4
-bb-1 NULL cc-2 NULL-3
-bb-1 NULL cc-2 NULL-2
-bb-1 NULL cc-2 NULL-1
-drop table t1, t2, t3, t4;
-create table t1 (a int, b int not null,unique key (a,b),index(b));
-insert ignore into t1 values (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(null,7),(9,9),(8,8),(7,7),(null,9),(null,9),(6,6);
-Warnings:
-Warning 1062 Duplicate entry '6-6' for key 'a'
-create table t2 like t1;
-insert into t2 select * from t1;
-alter table t1 modify b blob not null, add c int not null, drop key a, add unique key (a,b(20),c), drop key b, add key (b(10));
-select * from t1 where a is null;
-a b c
-NULL 7 0
-NULL 9 0
-NULL 9 0
-select * from t1 where (a is null or a > 0 and a < 3) and b > 7 limit 3;
-a b c
-NULL 9 0
-NULL 9 0
-select * from t1 where a is null and b=9 or a is null and b=7 limit 3;
-a b c
-NULL 7 0
-NULL 9 0
-NULL 9 0
-drop table t1, t2;
-set storage_engine= @save_storage_engine;
-set @mrr_buffer_size_save= @@mrr_buffer_size;
-set mrr_buffer_size=64;
-Warnings:
-Warning 1292 Truncated incorrect mrr_buffer_size value: '64'
-create table t1(a int);
-insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-create table t2(a char(8), b char(8), c char(8), filler char(100), key(a,b,c) ) engine=InnoDB;
-insert into t2 select
-concat('a-', 1000 + A.a, '-a'),
-concat('b-', 1000 + B.a, '-b'),
-concat('c-', 1000 + C.a, '-c'),
-'filler'
-from t1 A, t1 B, t1 C;
-explain
-select count(length(a) + length(filler)) from t2 force index (a) where a>='a-1000-a' and a <'a-1001-a';
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range a a 9 NULL 100 Using index condition; Rowid-ordered scan
-select count(length(a) + length(filler)) from t2 force index (a) where a>='a-1000-a' and a <'a-1001-a';
-count(length(a) + length(filler))
-100
-drop table t2;
-create table t2 (a char(100), b char(100), c char(100), d int,
-filler char(10), key(d), primary key (a,b,c)) engine= innodb;
-insert into t2 select A.a, B.a, B.a, A.a, 'filler' from t1 A, t1 B;
-explain select * from t2 force index (d) where d < 10;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t2 range d d 5 NULL # Using index condition; Rowid-ordered scan
-drop table t2;
-drop table t1;
-set @@mrr_buffer_size= @mrr_buffer_size_save;
-create table t1 (f1 int not null, f2 int not null,f3 int not null, f4 char(1), primary key (f1,f2), key ix(f3))Engine=InnoDB;
-select * from t1 where (f3>=5 and f3<=10) or (f3>=1 and f3<=4);
-f1 f2 f3 f4
-1 1 1 A
-2 2 2 A
-3 3 3 A
-4 4 4 A
-5 5 5 A
-6 6 6 A
-7 7 7 A
-8 8 8 A
-9 9 9 A
-10 10 10 A
-drop table t1;
-
-BUG#37977: Wrong result returned on GROUP BY + OR + Innodb
-
-CREATE TABLE t1 (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`int_nokey` int(11) NOT NULL,
-`int_key` int(11) NOT NULL,
-`date_key` date NOT NULL,
-`date_nokey` date NOT NULL,
-`time_key` time NOT NULL,
-`time_nokey` time NOT NULL,
-`datetime_key` datetime NOT NULL,
-`datetime_nokey` datetime NOT NULL,
-`varchar_key` varchar(5) DEFAULT NULL,
-`varchar_nokey` varchar(5) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `int_key` (`int_key`),
-KEY `date_key` (`date_key`),
-KEY `time_key` (`time_key`),
-KEY `datetime_key` (`datetime_key`),
-KEY `varchar_key` (`varchar_key`)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-(1,5,5,'2009-10-16','2009-10-16','09:28:15','09:28:15','2007-09-14 05:34:08','2007-09-14 05:34:08','qk','qk'),
-(2,6,6,'0000-00-00','0000-00-00','23:06:39','23:06:39','0000-00-00 00:00:00','0000-00-00 00:00:00','j','j'),
-(3,10,10,'2000-12-18','2000-12-18','22:16:19','22:16:19','2006-11-04 15:42:50','2006-11-04 15:42:50','aew','aew'),
-(4,0,0,'2001-09-18','2001-09-18','00:00:00','00:00:00','2004-03-23 13:23:35','2004-03-23 13:23:35',NULL,NULL),
-(5,6,6,'2007-08-16','2007-08-16','22:13:38','22:13:38','2004-08-19 11:01:28','2004-08-19 11:01:28','qu','qu');
-select pk from t1 WHERE `varchar_key` > 'kr' group by pk;
-pk
-1
-5
-select pk from t1 WHERE `int_nokey` IS NULL OR `varchar_key` > 'kr' group by pk;
-pk
-1
-5
-drop table t1;
-#
-# BUG#39447: Error with NOT NULL condition and LIMIT 1
-#
-CREATE TABLE t1 (
-id int(11) NOT NULL,
-parent_id int(11) DEFAULT NULL,
-name varchar(10) DEFAULT NULL,
-PRIMARY KEY (id),
-KEY ind_parent_id (parent_id)
-) ENGINE=InnoDB;
-insert into t1 (id, parent_id, name) values
-(10,NULL,'A'),
-(20,10,'B'),
-(30,10,'C'),
-(40,NULL,'D'),
-(50,40,'E'),
-(60,40,'F'),
-(70,NULL,'J');
-SELECT id FROM t1 WHERE parent_id IS NOT NULL ORDER BY id DESC LIMIT 1;
-id
-60
-This must show type=index, extra=Using where
-explain SELECT * FROM t1 FORCE INDEX (PRIMARY) WHERE parent_id IS NOT NULL ORDER BY id DESC LIMIT 1;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index NULL PRIMARY 4 NULL 1 Using where
-SELECT * FROM t1 WHERE parent_id IS NOT NULL ORDER BY id DESC LIMIT 1;
-id parent_id name
-60 40 F
-drop table t1;
-#
-# BUG#628785: multi_range_read.cc:430: int DsMrr_impl::dsmrr_init(): Assertion `do_sort_keys || do_rowid_fetch' failed
-#
-set @save_join_cache_level= @@join_cache_level;
-set @save_optimizer_switch= @@optimizer_switch;
-SET SESSION join_cache_level=9;
-Warnings:
-Warning 1292 Truncated incorrect join_cache_level value: '9'
-SET SESSION optimizer_switch='mrr_sort_keys=off';
-CREATE TABLE `t1` (
-`pk` int(11) NOT NULL AUTO_INCREMENT,
-`col_int_nokey` int(11) DEFAULT NULL,
-`col_int_key` int(11) DEFAULT NULL,
-`col_varchar_key` varchar(1) DEFAULT NULL,
-`col_varchar_nokey` varchar(1) DEFAULT NULL,
-PRIMARY KEY (`pk`),
-KEY `col_varchar_key` (`col_varchar_key`,`col_int_key`)
-) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=latin1;
-INSERT INTO `t1` VALUES (1,6,NULL,'r','r');
-INSERT INTO `t1` VALUES (2,8,0,'c','c');
-INSERT INTO `t1` VALUES (97,7,0,'z','z');
-INSERT INTO `t1` VALUES (98,1,1,'j','j');
-INSERT INTO `t1` VALUES (99,7,8,'c','c');
-INSERT INTO `t1` VALUES (100,2,5,'f','f');
-SELECT table1 .`col_varchar_key`
-FROM t1 table1 STRAIGHT_JOIN ( t1 table3 JOIN t1 table4 ON table4 .`pk` = table3 .`col_int_nokey` ) ON table4 .`col_varchar_nokey` ;
-col_varchar_key
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-Warning 1292 Truncated incorrect DOUBLE value: 'r'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-Warning 1292 Truncated incorrect DOUBLE value: 'c'
-DROP TABLE t1;
-set join_cache_level=@save_join_cache_level;
-set optimizer_switch=@save_optimizer_switch;
-#
-# BUG#623300: Query with join_cache_level = 6 returns extra rows in maria-5.3-dsmrr-cpk
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_int_nokey int(11) DEFAULT NULL,
-PRIMARY KEY (pk)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (10,7);
-INSERT INTO t1 VALUES (11,1);
-INSERT INTO t1 VALUES (12,5);
-INSERT INTO t1 VALUES (13,3);
-INSERT INTO t1 VALUES (14,6);
-INSERT INTO t1 VALUES (15,92);
-INSERT INTO t1 VALUES (16,7);
-INSERT INTO t1 VALUES (17,NULL);
-INSERT INTO t1 VALUES (18,3);
-INSERT INTO t1 VALUES (19,5);
-INSERT INTO t1 VALUES (20,1);
-INSERT INTO t1 VALUES (21,2);
-INSERT INTO t1 VALUES (22,NULL);
-INSERT INTO t1 VALUES (23,1);
-INSERT INTO t1 VALUES (24,0);
-INSERT INTO t1 VALUES (25,210);
-INSERT INTO t1 VALUES (26,8);
-INSERT INTO t1 VALUES (27,7);
-INSERT INTO t1 VALUES (28,5);
-INSERT INTO t1 VALUES (29,NULL);
-CREATE TABLE t2 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_int_nokey int(11) DEFAULT NULL,
-PRIMARY KEY (pk)
-) ENGINE=InnoDB;
-INSERT INTO t2 VALUES (1,NULL);
-INSERT INTO t2 VALUES (2,7);
-INSERT INTO t2 VALUES (3,9);
-INSERT INTO t2 VALUES (4,7);
-INSERT INTO t2 VALUES (5,4);
-INSERT INTO t2 VALUES (6,2);
-INSERT INTO t2 VALUES (7,6);
-INSERT INTO t2 VALUES (8,8);
-INSERT INTO t2 VALUES (9,NULL);
-INSERT INTO t2 VALUES (10,5);
-INSERT INTO t2 VALUES (11,NULL);
-INSERT INTO t2 VALUES (12,6);
-INSERT INTO t2 VALUES (13,188);
-INSERT INTO t2 VALUES (14,2);
-INSERT INTO t2 VALUES (15,1);
-INSERT INTO t2 VALUES (16,1);
-INSERT INTO t2 VALUES (17,0);
-INSERT INTO t2 VALUES (18,9);
-INSERT INTO t2 VALUES (19,NULL);
-INSERT INTO t2 VALUES (20,4);
-set @my_save_join_cache_level= @@join_cache_level;
-SET join_cache_level = 0;
-SELECT table2.col_int_nokey
-FROM t1 table1 JOIN t2 table2 ON table2.pk = table1.col_int_nokey
-WHERE table1.pk ;
-col_int_nokey
-2
-4
-4
-4
-6
-6
-6
-7
-8
-9
-9
-NULL
-NULL
-NULL
-SET join_cache_level = 6;
-SELECT table2.col_int_nokey
-FROM t1 table1 JOIN t2 table2 ON table2.pk = table1.col_int_nokey
-WHERE table1.pk ;
-col_int_nokey
-2
-4
-4
-4
-6
-6
-6
-7
-8
-9
-9
-NULL
-NULL
-NULL
-set join_cache_level= @my_save_join_cache_level;
-drop table t1, t2;
-#
-# BUG#623315: Query returns less rows when run with join_cache_level=6 on maria-5.3-dsmrr-cpk
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_int_nokey int(11) DEFAULT NULL,
-col_int_key int(11) DEFAULT NULL,
-col_varchar_key varchar(1) DEFAULT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES (10,7,8,'v');
-INSERT INTO t1 VALUES (11,1,9,'r');
-INSERT INTO t1 VALUES (12,5,9,'a');
-INSERT INTO t1 VALUES (13,3,186,'m');
-INSERT INTO t1 VALUES (14,6,NULL,'y');
-INSERT INTO t1 VALUES (15,92,2,'j');
-INSERT INTO t1 VALUES (16,7,3,'d');
-INSERT INTO t1 VALUES (17,NULL,0,'z');
-INSERT INTO t1 VALUES (18,3,133,'e');
-INSERT INTO t1 VALUES (19,5,1,'h');
-INSERT INTO t1 VALUES (20,1,8,'b');
-INSERT INTO t1 VALUES (21,2,5,'s');
-INSERT INTO t1 VALUES (22,NULL,5,'e');
-INSERT INTO t1 VALUES (23,1,8,'j');
-INSERT INTO t1 VALUES (24,0,6,'e');
-INSERT INTO t1 VALUES (25,210,51,'f');
-INSERT INTO t1 VALUES (26,8,4,'v');
-INSERT INTO t1 VALUES (27,7,7,'x');
-INSERT INTO t1 VALUES (28,5,6,'m');
-INSERT INTO t1 VALUES (29,NULL,4,'c');
-set @my_save_join_cache_level= @@join_cache_level;
-SET join_cache_level=6;
-select count(*) from
-(SELECT table2.pk FROM
-t1 LEFT JOIN t1 table2 JOIN t1 table3 ON table3.col_varchar_key = table2.col_varchar_key
-ON table3.col_int_nokey) foo;
-count(*)
-480
-SET join_cache_level=0;
-select count(*) from
-(SELECT table2.pk FROM
-t1 LEFT JOIN t1 table2 JOIN t1 table3 ON table3.col_varchar_key = table2.col_varchar_key
-ON table3.col_int_nokey) foo;
-count(*)
-480
-set join_cache_level= @my_save_join_cache_level;
-drop table t1;
-#
-# BUG#671340: Diverging results in with mrr_sort_keys=ON|OFF and join_cache_level=5
-#
-CREATE TABLE t1 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_int_key int(11) NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-(10,8,'v','v'),
-(11,8,'f','f'),
-(12,5,'v','v'),
-(13,8,'s','s'),
-(14,8,'a','a'),
-(15,6,'p','p'),
-(16,7,'z','z'),
-(17,2,'a','a'),
-(18,5,'h','h'),
-(19,7,'h','h'),
-(20,2,'v','v'),
-(21,9,'v','v'),
-(22,142,'b','b'),
-(23,3,'y','y'),
-(24,0,'v','v'),
-(25,3,'m','m'),
-(26,5,'z','z'),
-(27,9,'n','n'),
-(28,1,'d','d'),
-(29,107,'a','a');
-CREATE TABLE t2 (
-pk int(11) NOT NULL AUTO_INCREMENT,
-col_int_key int(11) NOT NULL,
-col_varchar_key varchar(1) NOT NULL,
-col_varchar_nokey varchar(1) NOT NULL,
-PRIMARY KEY (pk),
-KEY col_int_key (col_int_key),
-KEY col_varchar_key (col_varchar_key,col_int_key)
-) ENGINE=InnoDB;
-INSERT INTO t2 VALUES
-(1,9,'x','x'),
-(2,5,'g','g'),
-(3,1,'o','o'),
-(4,0,'g','g'),
-(5,1,'v','v'),
-(6,190,'m','m'),
-(7,6,'x','x'),
-(8,3,'c','c'),
-(9,4,'z','z'),
-(10,3,'i','i'),
-(11,186,'x','x'),
-(12,1,'g','g'),
-(13,8,'q','q'),
-(14,226,'m','m'),
-(15,133,'p','p'),
-(16,6,'e','e'),
-(17,3,'t','t'),
-(18,8,'j','j'),
-(19,5,'h','h'),
-(20,7,'w','w');
-SELECT count(*), sum(table1.col_int_key*table2.pk)
-FROM
-t2 AS table1, t1 AS table2, t2 AS table3
-WHERE
-table3.col_varchar_nokey = table2.col_varchar_key AND table3.pk > table2.col_varchar_nokey ;
-count(*) sum(table1.col_int_key*table2.pk)
-240 185955
-Warnings:
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-Warning 1292 Truncated incorrect DOUBLE value: 'v'
-set @my_save_join_cache_level= @@join_cache_level;
-set @my_save_join_buffer_size= @@join_buffer_size;
-set join_cache_level=6;
-set join_buffer_size=1536;
-SELECT count(*), sum(table1.col_int_key*table2.pk)
-FROM
-t2 AS table1, t1 AS table2, t2 AS table3
-WHERE
-table3.col_varchar_nokey = table2.col_varchar_key AND table3.pk > table2.col_varchar_nokey ;
-count(*) sum(table1.col_int_key*table2.pk)
-240 185955
-drop table t1,t2;
-set join_cache_level=@my_save_join_cache_level;
-set join_buffer_size=@my_save_join_buffer_size;
-#
-# BUG#665669: Result differences on query re-execution
-#
-create table t1 (pk int primary key, b int, c int default 0, index idx(b)) engine=innodb;
-insert into t1(pk,b) values (3, 30), (2, 20), (9, 90), (7, 70), (4, 40), (5, 50), (10, 100), (12, 120);
-set @bug665669_tmp=@@optimizer_switch;
-set optimizer_switch='mrr=off';
-explain select * from t1 where b > 1000;
-id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 range idx idx 5 NULL 1 Using index condition
-# The following two must produce indentical results:
-select * from t1 where pk < 2 or pk between 3 and 4;
-pk b c
-3 30 0
-4 40 0
-select * from t1 where pk < 2 or pk between 3 and 4;
-pk b c
-3 30 0
-4 40 0
-drop table t1;
-set optimizer_switch = @bug665669_tmp;
-#
-# Bug#43360 - Server crash with a simple multi-table update
-#
-CREATE TABLE t1 (
-a CHAR(2) NOT NULL PRIMARY KEY,
-b VARCHAR(20) NOT NULL,
-KEY (b)
-) ENGINE=InnoDB;
-CREATE TABLE t2 (
-a CHAR(2) NOT NULL PRIMARY KEY,
-b VARCHAR(20) NOT NULL,
-KEY (b)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES
-('AB','MySQLAB'),
-('JA','Sun Microsystems'),
-('MS','Microsoft'),
-('IB','IBM- Inc.'),
-('GO','Google Inc.');
-INSERT IGNORE INTO t2 VALUES
-('AB','Sweden'),
-('JA','USA'),
-('MS','United States of America'),
-('IB','North America'),
-('GO','South America');
-Warnings:
-Warning 1265 Data truncated for column 'b' at row 3
-UPDATE t1,t2 SET t1.b=UPPER(t1.b) WHERE t1.b LIKE 'United%';
-SELECT * FROM t1;
-a b
-GO Google Inc.
-IB IBM- Inc.
-MS Microsoft
-AB MySQLAB
-JA Sun Microsystems
-SELECT * FROM t2;
-a b
-IB North America
-GO South America
-AB Sweden
-MS United States of Ame
-JA USA
-DROP TABLE t1,t2;
-#
-# Testcase backport: Bug#43249
-# (Note: Fixed by patch for BUG#42580)
-#
-CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NULL, c3 DATE, PRIMARY KEY(c1), UNIQUE INDEX(c2)) engine=innodb;
-INSERT INTO t1 VALUES('8:29:45',NULL,'2009-02-01');
-SELECT * FROM t1 WHERE c2 <=> NULL ORDER BY c2 LIMIT 2;
-c1 c2 c3
-08:29:45 NULL 2009-02-01
-SELECT * FROM t1 WHERE c2 <=> NULL ORDER BY c2 LIMIT 2;
-c1 c2 c3
-08:29:45 NULL 2009-02-01
-drop table `t1`;
-#
-# BUG#707925: Wrong result with join_cache_level=6 optimizer_use_mrr =
-# force (incremental, BKA join)
-#
-set @_save_join_cache_level= @@join_cache_level;
-set join_cache_level = 6;
-CREATE TABLE t1 (
-f1 int(11), f2 int(11), f3 varchar(1), f4 varchar(1),
-PRIMARY KEY (f1),
-KEY (f3),
-KEY (f2)
-) ENGINE=InnoDB;
-INSERT INTO t1 VALUES ('11','8','f','f'),('12','5','v','v'),('13','8','s','s'),
-('14','8','a','a'),('15','6','p','p'),('16','7','z','z'),('17','2','a','a'),
-('18','5','h','h'),('19','7','h','h'),('20','2','v','v'),('21','9','v','v'),
-('22','142','b','b'),('23','3','y','y'),('24','0','v','v'),('25','3','m','m'),
-('26','5','z','z'),('27','9','n','n'),('28','1','d','d'),('29','107','a','a');
-select count(*) from (
-SELECT alias1.f2
-FROM
-t1 AS alias1 JOIN (
-t1 AS alias2 FORCE KEY (f3) JOIN
-t1 AS alias3 FORCE KEY (f2) ON alias3.f2 = alias2.f2 AND alias3.f4 = alias2.f3
-) ON alias3.f1 <= alias2.f1
-) X;
-count(*)
-361
-set join_cache_level=@_save_join_cache_level;
-set optimizer_switch= @innodb_mrr_tmp;
-drop table t1;